gantri-components 3.0.0-beta.44 → 3.0.0-beta.46

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.
@@ -26,7 +26,7 @@ export interface SearchFieldProps<T = Record<string, unknown>> extends Omit<Drop
26
26
  minSearchLength?: number;
27
27
  name?: string;
28
28
  onBlur?: (event: BlurChangeEvent) => void;
29
- onChange?: (event: DropdownChangeEvent<T>) => void;
29
+ onChange?: (event: DropdownChangeEvent<T> | DropdownChangeEvent<T[keyof T][]>) => void;
30
30
  onFocus?: (event: FocusEvent<HTMLDivElement>) => void;
31
31
  onOpen?: () => void;
32
32
  onTextChange?: (value: string) => void;
@@ -45,7 +45,7 @@ export interface SearchFieldProps<T = Record<string, unknown>> extends Omit<Drop
45
45
  * the new items must be provided after.
46
46
  * */
47
47
  searchMode?: 'internal' | 'external';
48
- selectedItemsList?: T[];
48
+ selectedItemsList?: (keyof T)[];
49
49
  style?: CSSProperties;
50
50
  variant?: 'line' | 'filled';
51
51
  }