// @flow
import type { Element } from 'react';
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';
import type { FocusEvents } from '../../../mixins/focus';
import type { AriaProps } from '../../../mixins/aria';

export type SelectProps = {|
  ...TestingProps,
  ...StylableProps,
  ...MarginOnlySpaceProps,
  ...StackeeProps,
  ...FocusEvents,
  ...TestingProps,
  ...AriaProps,
  focusOnMount?: boolean,
  children: Array<Element<*>>,
  disabled?: boolean,
  error?: boolean,
  large?: boolean,
  onChange: (string | void) => 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,
|};
