@gouvfr-lasuite/ui-kit 0.18.0 → 0.18.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/index.cjs +26 -26
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +35 -3
- package/dist/index.js +1884 -1859
- package/dist/index.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -700,15 +700,20 @@ export declare const LaGaufre: () => JSX.Element;
|
|
|
700
700
|
* - `size`: The size of the CTA.
|
|
701
701
|
* - `color`: The color of the CTA.
|
|
702
702
|
*/
|
|
703
|
-
export declare const LanguagePicker: ({ languages, onChange, size, color, variant, fullWidth, }: LanguagePickerProps) => JSX.Element;
|
|
703
|
+
export declare const LanguagePicker: ({ languages, onChange, size, color, variant, fullWidth, compact: lightMode, }: LanguagePickerProps) => JSX.Element;
|
|
704
704
|
|
|
705
705
|
export declare type LanguagePickerProps = {
|
|
706
|
-
languages:
|
|
706
|
+
languages: LanguagesOption[];
|
|
707
707
|
onChange?: (language: string) => void;
|
|
708
708
|
color?: ButtonProps["color"];
|
|
709
709
|
variant?: ButtonProps["variant"];
|
|
710
710
|
size?: ButtonProps["size"];
|
|
711
711
|
fullWidth?: ButtonProps["fullWidth"];
|
|
712
|
+
compact?: boolean;
|
|
713
|
+
};
|
|
714
|
+
|
|
715
|
+
export declare type LanguagesOption = DropdownMenuOption & {
|
|
716
|
+
shortLabel?: string;
|
|
712
717
|
};
|
|
713
718
|
|
|
714
719
|
export declare const LeftPanel: ({ children, isOpen, hasHeader, }: PropsWithChildren<LeftPanelProps>) => JSX.Element;
|
|
@@ -861,7 +866,16 @@ export declare const locales: {
|
|
|
861
866
|
};
|
|
862
867
|
};
|
|
863
868
|
};
|
|
869
|
+
laGaufre: {
|
|
870
|
+
label: string;
|
|
871
|
+
closeLabel: string;
|
|
872
|
+
loadingText: string;
|
|
873
|
+
newWindowLabelSuffix: string;
|
|
874
|
+
headerLabel: string;
|
|
875
|
+
};
|
|
864
876
|
userMenu: {
|
|
877
|
+
term_of_service: string;
|
|
878
|
+
manage_account: string;
|
|
865
879
|
open: string;
|
|
866
880
|
close: string;
|
|
867
881
|
accountSettings: string;
|
|
@@ -1015,12 +1029,21 @@ export declare const locales: {
|
|
|
1015
1029
|
};
|
|
1016
1030
|
};
|
|
1017
1031
|
};
|
|
1032
|
+
laGaufre: {
|
|
1033
|
+
label: string;
|
|
1034
|
+
closeLabel: string;
|
|
1035
|
+
loadingText: string;
|
|
1036
|
+
newWindowLabelSuffix: string;
|
|
1037
|
+
headerLabel: string;
|
|
1038
|
+
};
|
|
1018
1039
|
userMenu: {
|
|
1040
|
+
term_of_service: string;
|
|
1019
1041
|
open: string;
|
|
1020
1042
|
close: string;
|
|
1021
1043
|
accountSettings: string;
|
|
1022
1044
|
logout: string;
|
|
1023
1045
|
dialogTitle: string;
|
|
1046
|
+
manage_account: string;
|
|
1024
1047
|
};
|
|
1025
1048
|
treeView: {
|
|
1026
1049
|
viewMore: string;
|
|
@@ -1461,7 +1484,15 @@ export declare const useResponsive: () => ResponsiveStates;
|
|
|
1461
1484
|
* - `shouldCloseOnInteractOutside`: A function to call when the menu should be closed.
|
|
1462
1485
|
* - `footerAction`: The child to render inside the footer.
|
|
1463
1486
|
*/
|
|
1464
|
-
export declare const UserMenu: ({ user, settingsCTA, logout, isInitialOpen, shouldCloseOnInteractOutside, footerAction, }: UserMenuProps) => JSX.Element | null;
|
|
1487
|
+
export declare const UserMenu: ({ user, settingsCTA, logout, isInitialOpen, shouldCloseOnInteractOutside, termOfServiceUrl, footerAction, }: UserMenuProps) => JSX.Element | null;
|
|
1488
|
+
|
|
1489
|
+
export declare const UserMenuItem: ({ label, icon, onClick }: UserMenuItemProps) => JSX.Element;
|
|
1490
|
+
|
|
1491
|
+
declare type UserMenuItemProps = {
|
|
1492
|
+
label: string;
|
|
1493
|
+
icon: string;
|
|
1494
|
+
onClick?: () => void;
|
|
1495
|
+
};
|
|
1465
1496
|
|
|
1466
1497
|
export declare type UserMenuProps = {
|
|
1467
1498
|
user?: {
|
|
@@ -1470,6 +1501,7 @@ export declare type UserMenuProps = {
|
|
|
1470
1501
|
} | null;
|
|
1471
1502
|
settingsCTA?: string | (() => void);
|
|
1472
1503
|
logout?: () => void;
|
|
1504
|
+
termOfServiceUrl?: string;
|
|
1473
1505
|
isInitialOpen?: boolean;
|
|
1474
1506
|
shouldCloseOnInteractOutside?: (element: Element) => boolean;
|
|
1475
1507
|
footerAction?: ReactElement;
|