@kelvininc/ui-components
Version:
Kelvin UI Components
13 lines (12 loc) • 675 B
TypeScript
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;