// @flow // Type definitions for @kiwicom/orbit-components // Project: http://github.com/kiwicom/orbit import * as React from "react"; import * as Common from "../common/common.js.flow"; type Option = {| +group?: string, +title: string, +value: string | number, +description?: string, +prefix?: React.Node, |}; export type Props = {| +name?: string, +label?: Common.Translation, +placeholder?: string, +help?: React.Node, +error?: React.Node, +showAll?: boolean, +showAllLabel?: string, +disabled?: boolean, +maxHeight?: string, +maxWidth?: string, +width?: string, +options: Option[], +defaultValue?: Option["value"], +prevSelected?: Option, +prevSelectedLabel?: string, +required?: boolean, +tabIndex?: string | number, +readOnly: boolean, +id?: string, +insideInputGroup?: boolean, +helpClosable?: boolean, +emptyState?: React.Node, +labelClose?: string, +onChange?: (ev: SyntheticInputEvent) => void | Promise, +onFocus?: (ev: SyntheticInputEvent) => void | Promise, +onBlur?: (ev: SyntheticInputEvent) => void | Promise, +onSelect?: (ev: SyntheticInputEvent) => void | Promise, +onMouseUp?: (ev: SyntheticEvent) => void | Promise, +onMouseDown?: (ev: SyntheticEvent) => void | Promise, +onKeyDown?: (ev: SyntheticKeyboardEvent) => void | Promise, +onKeyUp?: (ev: SyntheticKeyboardEvent) => void | Promise, +onOptionSelect?: (opt: Option | null) => void, +onClose?: (opt: Option | null) => void, ...Common.Globals, ...Common.DataAttrs, |}; declare export default React.AbstractComponent;