ui-mathilde-web 0.5.0 → 0.5.2

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.
@@ -162,13 +162,17 @@ declare interface DropdownItemProps {
162
162
  checked?: boolean;
163
163
  }
164
164
 
165
- export declare const DropdownList: default_2.FC<DropdownListProps>;
165
+ export declare const DropdownList: ({ onSelect, items, placeholder, fetchItems, minCharsToSearch, debounceMs, classIncludes, }: DropdownListProps) => JSX_2.Element;
166
166
 
167
167
  declare interface DropdownListProps {
168
- items: DropdownItem[];
168
+ items?: DropdownItem[];
169
169
  placeholder?: string;
170
170
  onSelect: (item: DropdownItem) => void;
171
171
  selectedItem?: DropdownItem | null;
172
+ fetchItems?: (query: string) => Promise<DropdownItem[]>;
173
+ minCharsToSearch?: number;
174
+ debounceMs?: number;
175
+ classIncludes?: string;
172
176
  }
173
177
 
174
178
  declare type DropdownMode = 'simple' | 'checkbox';