UNPKG

@kelvininc/ui-components

Version:
13 lines (12 loc) 675 B
import { ISelectMultiOptions, ISelectOptionsWithChildren } from './select-multi-options.types'; import { ISelectOption } from '../../types'; export declare const buildNewOption: (highlightedOption?: string, createInputPlaceholder?: string) => ISelectOption; export declare const buildSelectOptions: ({ options, allOptions, selectedOptions, highlightedOption, hasAddItem, createInputPlaceholder, level }: { options?: ISelectMultiOptions; allOptions?: ISelectMultiOptions; selectedOptions?: Record<string, boolean>; highlightedOption?: string; hasAddItem?: boolean; createInputPlaceholder?: string; level?: number; }) => ISelectOptionsWithChildren;