// @flow
import type { Element } from 'react';
import type { TypographyProps } from '../../../mixins/typography';
import type { TranslatedContent } from '../../../types';
import type { MarginOnlySpaceProps } from '../../../mixins/spacing';
import type { StackeeProps } from '../../../mixins/stackee';
import type { StylableProps } from '../../../mixins/themes';
import type { TestingProps } from '../../../mixins/testing';

type SizeKey = 's1' | 's2';

export type SizeProps = {|
  sizing?: SizeKey,
|};

export type SelectProps = {|
  ...TestingProps,
  ...StylableProps,
  ...SizeProps,
  ...TypographyProps,
  ...MarginOnlySpaceProps,
  ...StackeeProps,
  children: Array<Element<*>>,
  disabled?: boolean,
  error?: boolean,
  large?: boolean,
  onBlur?: (SyntheticFocusEvent<HTMLInputElement>) => void,
  onChange: (string | void) => void,
  onFocus?: (SyntheticFocusEvent<HTMLInputElement>) => void,
  placeholder?: string,
  /** value is required as undefined, which will show the placeholder for you if it changes from val -> undefined */
  value: string | number | void,
  label: TranslatedContent,
  hideLabel?: boolean,
  id?: string,
|};
