// @flow /* DOCUMENTATION: https://orbit.kiwi/components/select/ */ import type { ReactComponentStyled } from "styled-components"; import type { Globals, Ref, Translation, TranslationString } from "../common/common.js.flow"; import type { spaceAfter } from "../common/getSpacingToken/index"; type Option = {| +value: string | number, +label?: string, +disabled?: boolean, |}; type Size = "small" | "normal"; export type Props = {| ...Globals, ...Ref, ...spaceAfter, +id?: string, +required?: boolean, +size?: Size, +label?: Translation, +placeholder?: TranslationString, +value?: string | number, +disabled?: boolean, +name?: string, +error?: React$Node, +help?: React$Node, tabIndex?: string, +onChange?: (ev: SyntheticInputEvent) => void | Promise, +onFocus?: (ev: SyntheticInputEvent) => void | Promise, +onBlur?: (ev: SyntheticInputEvent) => void | Promise, +options: Option[], +prefix?: React$Node, +customValueText?: Translation, |}; declare export var SelectContainer: ReactComponentStyled; declare export default React$ComponentType;