/** * @file Select * @description * @author fex * @date 2017-11-07 */ /// import React from 'react'; import { ControllerStateAndHelpers } from 'downshift'; import { ThemeProps } from '../theme'; import { Api } from '../types'; import { LocaleProps } from '../locale'; import { Option, Options } from '../Schema'; import { RemoteOptionsProps } from './WithRemoteConfig'; export { Option, Options }; export interface OptionProps { className?: string; multi?: boolean; multiple?: boolean; valueField?: string; labelField?: string; simpleValue?: boolean; options: Options; loading?: boolean; joinValues?: boolean; extractValue?: boolean; delimiter?: string; clearable?: boolean; resetValue: any; placeholder?: string; disabled?: boolean; creatable?: boolean; onAdd?: (idx?: number | Array, value?: any, skipForm?: boolean) => void; editable?: boolean; onEdit?: (value: Option, origin?: Option, skipForm?: boolean) => void; removable?: boolean; onDelete?: (value: Option) => void; } export declare type OptionValue = string | number | null | undefined | Option; export declare function value2array(value: OptionValue | Array, props: Pick): Array