ui-mathilde-web 0.11.17 → 0.12.0
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 +25 -2
- package/dist/ui-mathilde-web.js +6708 -6632
- package/dist/ui-mathilde-web.umd.cjs +45 -45
- package/package.json +1 -1
|
@@ -240,7 +240,7 @@ 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;
|
|
@@ -424,6 +424,12 @@ declare interface DropdownItem {
|
|
|
424
424
|
value: string | number;
|
|
425
425
|
}
|
|
426
426
|
|
|
427
|
+
declare interface DropdownItem_2 {
|
|
428
|
+
id: string | number;
|
|
429
|
+
label: string;
|
|
430
|
+
value: string | number;
|
|
431
|
+
}
|
|
432
|
+
|
|
427
433
|
declare interface DropdownItemProps {
|
|
428
434
|
label: string;
|
|
429
435
|
value?: string;
|
|
@@ -433,7 +439,7 @@ declare interface DropdownItemProps {
|
|
|
433
439
|
checked?: boolean;
|
|
434
440
|
}
|
|
435
441
|
|
|
436
|
-
export declare const DropdownList: ({ onSelect, items, placeholder, fetchItems, minCharsToSearch, debounceMs, classIncludes,
|
|
442
|
+
export declare const DropdownList: ({ onSelect, items, placeholder, fetchItems, minCharsToSearch, debounceMs, classIncludes, disabled, }: DropdownListProps) => JSX_2.Element;
|
|
437
443
|
|
|
438
444
|
declare interface DropdownListProps {
|
|
439
445
|
items?: DropdownItem[];
|
|
@@ -448,6 +454,23 @@ declare interface DropdownListProps {
|
|
|
448
454
|
disabled?: boolean;
|
|
449
455
|
}
|
|
450
456
|
|
|
457
|
+
declare interface DropdownListProps_2 {
|
|
458
|
+
items?: DropdownItem_2[];
|
|
459
|
+
placeholder?: string;
|
|
460
|
+
onSelect: (items: DropdownItem_2[]) => void;
|
|
461
|
+
selectedItems?: DropdownItem_2[];
|
|
462
|
+
selectAll?: boolean;
|
|
463
|
+
onSelectAllChange?: (isSelectAll: boolean) => void;
|
|
464
|
+
fetchItems?: (query: string) => Promise<DropdownItem_2[]>;
|
|
465
|
+
minCharsToSearch?: number;
|
|
466
|
+
debounceMs?: number;
|
|
467
|
+
classIncludes?: string;
|
|
468
|
+
iconSearch?: boolean;
|
|
469
|
+
disabled?: boolean;
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
export declare const DropdownListWithCheckbox: ({ onSelect, items, placeholder, fetchItems, minCharsToSearch, debounceMs, classIncludes, iconSearch, disabled, selectedItems, selectAll, }: DropdownListProps_2) => JSX_2.Element;
|
|
473
|
+
|
|
451
474
|
declare type DropdownMode = 'simple' | 'checkbox';
|
|
452
475
|
|
|
453
476
|
declare interface DropdownProps {
|