import { CreateItemMode } from '../lib/create-item'; import { GenericFilterByFn, OptionMapper } from '../lib/normalize-options'; import { SelectOption } from './option'; import { SelectPopoverProps } from './primitives'; export type AssembledSelectBehaviorProps, OptionValue extends string | number = string> = { multiple?: boolean; searchable?: boolean; clearable?: boolean; disabled?: boolean; loading?: boolean; options: GenericOption[]; placeholder?: string; closeOnSelect?: boolean | null; resetSearchOnBlur?: boolean; resetSearchOnSelect?: boolean; hideSelected?: boolean; createItem?: CreateItemMode; filterBy?: GenericFilterByFn; getOptionValue?: OptionMapper["getOptionValue"]; getOptionLabel?: OptionMapper["getOptionLabel"]; }; export type AssembledSelectProps, OptionValue extends string | number = string> = AssembledSelectBehaviorProps & SelectPopoverProps; export type AssembledSelectEmits = { optionSelected: [option: GenericOption]; optionDeselected: [option: GenericOption | null]; menuOpened: []; menuClosed: []; search: [value: string]; create: [value: string]; };