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