ui-mathilde-web 0.11.18 → 0.12.1
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.
- package/dist/style.css +1 -1
- package/dist/ui-mathilde-web.d.ts +27 -2
- package/dist/ui-mathilde-web.js +7075 -6977
- package/dist/ui-mathilde-web.umd.cjs +48 -48
- package/package.json +1 -1
|
@@ -240,10 +240,11 @@ export declare const Checkbox: default_2.FC<CheckboxProps>;
|
|
|
240
240
|
|
|
241
241
|
declare interface CheckboxProps {
|
|
242
242
|
label?: default_2.ReactNode;
|
|
243
|
-
value: string;
|
|
243
|
+
value: string | number;
|
|
244
244
|
checked: boolean;
|
|
245
245
|
isTerms?: boolean;
|
|
246
246
|
onChange: (e: default_2.ChangeEvent<HTMLInputElement>) => void;
|
|
247
|
+
icono?: string;
|
|
247
248
|
}
|
|
248
249
|
|
|
249
250
|
declare interface ChipColors {
|
|
@@ -433,7 +434,14 @@ declare interface DropdownItemProps {
|
|
|
433
434
|
checked?: boolean;
|
|
434
435
|
}
|
|
435
436
|
|
|
436
|
-
|
|
437
|
+
declare interface DropdownItemWithCheckbox {
|
|
438
|
+
id: string | number;
|
|
439
|
+
label: string;
|
|
440
|
+
value: string | number;
|
|
441
|
+
icono?: string;
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
export declare const DropdownList: ({ onSelect, items, placeholder, fetchItems, minCharsToSearch, debounceMs, classIncludes, disabled, }: DropdownListProps) => JSX_2.Element;
|
|
437
445
|
|
|
438
446
|
declare interface DropdownListProps {
|
|
439
447
|
items?: DropdownItem[];
|
|
@@ -448,6 +456,23 @@ declare interface DropdownListProps {
|
|
|
448
456
|
disabled?: boolean;
|
|
449
457
|
}
|
|
450
458
|
|
|
459
|
+
export declare const DropdownListWithCheckbox: ({ onSelect, items, placeholder, fetchItems, minCharsToSearch, debounceMs, classIncludes, iconSearch, disabled, selectedItems, selectAll, }: DropdownListWithCheckboxProps) => JSX_2.Element;
|
|
460
|
+
|
|
461
|
+
declare interface DropdownListWithCheckboxProps {
|
|
462
|
+
items?: DropdownItemWithCheckbox[];
|
|
463
|
+
placeholder?: string;
|
|
464
|
+
onSelect?: (items: DropdownItemWithCheckbox[]) => void;
|
|
465
|
+
selectedItems?: DropdownItemWithCheckbox[];
|
|
466
|
+
selectAll?: boolean;
|
|
467
|
+
onSelectAllChange?: (isSelectAll: boolean) => void;
|
|
468
|
+
fetchItems?: (query: string) => Promise<DropdownItemWithCheckbox[]>;
|
|
469
|
+
minCharsToSearch?: number;
|
|
470
|
+
debounceMs?: number;
|
|
471
|
+
classIncludes?: string;
|
|
472
|
+
iconSearch?: boolean;
|
|
473
|
+
disabled?: boolean;
|
|
474
|
+
}
|
|
475
|
+
|
|
451
476
|
declare type DropdownMode = 'simple' | 'checkbox';
|
|
452
477
|
|
|
453
478
|
declare interface DropdownProps {
|