@dinofront/design_system 1.20.7 → 1.20.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,11 +1,13 @@
1
1
  import { ClassNamesConfig, GroupBase } from 'react-select';
2
2
  import { SelectV2Option, SelectV2Size } from './SelectV2.types';
3
+ import { OptionValue } from '../../types';
3
4
  export declare const MULTI_VALUE_CLASS = "flex items-center gap-1 rounded-md bg-bg-subtle pl-2 pr-1 py-0.5 max-w-full";
4
5
  export declare const MULTI_VALUE_LABEL_CLASS = "truncate text-p-sm text-fg-default";
5
6
  export declare const MULTI_VALUE_REMOVE_CLASS = "rounded-sm text-fg-secondary hover:bg-bg-container hover:text-fg-default cursor-pointer";
6
7
  export declare const MULTI_VALUE_BADGE_CLASS = "flex items-center rounded-md bg-bg-info-lighter px-2 py-0.5 text-p-sm text-blue-800 dark:text-blue-300 shrink-0";
7
8
  export declare function optionLabelText(option: SelectV2Option): string;
8
9
  export declare function matchesSearch(option: SelectV2Option, inputValue: string): boolean;
10
+ export declare function sortSelectedFirst(options: SelectV2Option[], selectedValues: OptionValue[]): SelectV2Option[];
9
11
  export declare function readStoredSelection(storageKey: string): unknown;
10
12
  export declare function hasStoredSelection(storageKey: string): boolean;
11
13
  export declare function writeStoredSelection(storageKey: string, value: unknown): void;