UNPKG

@kelvininc/ui-components

Version:
10 lines (9 loc) 1.16 kB
import { IMultiSelectDropdown, ISelectMultiOptions, ISelectOptionsWithChildren, ISelectSingleOptions } from '../types'; export declare const getSelectableOptions: (options?: ISelectOptionsWithChildren) => ISelectOptionsWithChildren; export declare const getSelectedSelectableOptions: (options?: ISelectMultiOptions, selectedOptions?: Record<string, boolean>) => ISelectMultiOptions; export declare const getFlattenSelectOptions: (selectOptions?: ISelectOptionsWithChildren) => ISelectOptionsWithChildren; export declare const buildSelectedOptions: (options: ISelectMultiOptions, selected: string[]) => Record<string, boolean>; export declare const buildAllOptionsSelected: (options?: ISelectMultiOptions) => Record<string, boolean>; export declare const getPreviousHightlightableOption: (options: IMultiSelectDropdown, highlightedOption?: string) => string | undefined; export declare const getNextHightlightableOption: (options: IMultiSelectDropdown, highlightedOption?: string) => string | undefined; export declare const searchDropdownOptions: (term: string, options?: ISelectSingleOptions | ISelectMultiOptions) => ISelectSingleOptions | ISelectMultiOptions;