@gouvfr-lasuite/ui-kit 0.5.0 → 0.7.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/cunningham.ts +70 -70
- package/dist/index.cjs +21 -21
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +16 -1
- package/dist/index.js +1374 -1361
- package/dist/index.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +2 -1
package/dist/index.d.ts
CHANGED
|
@@ -431,9 +431,14 @@ export declare type DropdownMenuProps = {
|
|
|
431
431
|
|
|
432
432
|
export declare const Filter: (props: FilterProps) => JSX.Element;
|
|
433
433
|
|
|
434
|
+
export declare type FilterOption = Option_2 & {
|
|
435
|
+
showSeparator?: boolean;
|
|
436
|
+
isChecked?: boolean;
|
|
437
|
+
};
|
|
438
|
+
|
|
434
439
|
export declare type FilterProps = {
|
|
435
440
|
label: string;
|
|
436
|
-
options:
|
|
441
|
+
options: FilterOption[];
|
|
437
442
|
} & SelectProps;
|
|
438
443
|
|
|
439
444
|
export declare const Footer: () => JSX.Element;
|
|
@@ -443,6 +448,16 @@ export declare function getLocales(): {
|
|
|
443
448
|
"fr-FR": any;
|
|
444
449
|
};
|
|
445
450
|
|
|
451
|
+
/**
|
|
452
|
+
* Get a consistent avatar's color according to a hash of the name
|
|
453
|
+
*/
|
|
454
|
+
export declare const getUserColor: (name: string) => string;
|
|
455
|
+
|
|
456
|
+
/**
|
|
457
|
+
* Split the name into parts and return the first two initials
|
|
458
|
+
*/
|
|
459
|
+
export declare const getUserInitials: (name: string) => string;
|
|
460
|
+
|
|
446
461
|
export declare const Header: ({ leftIcon, rightIcon, languages, onTogglePanel, isPanelOpen, }: HeaderProps) => JSX.Element;
|
|
447
462
|
|
|
448
463
|
export declare const headerHeight = 52;
|