@kaspersky/components
Version:
Kaspersky Design System UI Kit
6 lines (5 loc) • 469 B
TypeScript
import { SelectProps, LabelValue } from '../select/types.js';
export declare const createUniqueSelectElementFromLabel: (label?: LabelValue | undefined) => Exclude<LabelValue, string>;
export declare const prepareValues: (value: SelectProps['value']) => SelectProps['value'];
export declare const addNewValue: (currenValue: LabelValue[], newValue: unknown) => unknown;
export declare const removeValue: (currenValue: SelectProps['value'], newValue: unknown) => unknown;