@gouvfr-lasuite/ui-kit 0.18.2 → 0.18.3
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 +33 -33
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +8 -14
- package/dist/index.js +2699 -2611
- package/dist/index.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -707,6 +707,8 @@ export declare type LaGaufreV2Props = {
|
|
|
707
707
|
loadingText?: string;
|
|
708
708
|
newWindowLabelSuffix?: string;
|
|
709
709
|
showMoreLimit?: number;
|
|
710
|
+
viewMoreLabel?: string;
|
|
711
|
+
viewLessLabel?: string;
|
|
710
712
|
};
|
|
711
713
|
|
|
712
714
|
/**
|
|
@@ -887,6 +889,8 @@ export declare const locales: {
|
|
|
887
889
|
laGaufre: {
|
|
888
890
|
label: string;
|
|
889
891
|
closeLabel: string;
|
|
892
|
+
viewMoreLabel: string;
|
|
893
|
+
viewLessLabel: string;
|
|
890
894
|
loadingText: string;
|
|
891
895
|
newWindowLabelSuffix: string;
|
|
892
896
|
headerLabel: string;
|
|
@@ -1051,6 +1055,8 @@ export declare const locales: {
|
|
|
1051
1055
|
label: string;
|
|
1052
1056
|
closeLabel: string;
|
|
1053
1057
|
loadingText: string;
|
|
1058
|
+
viewMoreLabel: string;
|
|
1059
|
+
viewLessLabel: string;
|
|
1054
1060
|
newWindowLabelSuffix: string;
|
|
1055
1061
|
headerLabel: string;
|
|
1056
1062
|
};
|
|
@@ -1510,18 +1516,7 @@ export declare type UserData<T> = T & {
|
|
|
1510
1516
|
|
|
1511
1517
|
export declare const useResponsive: () => ResponsiveStates;
|
|
1512
1518
|
|
|
1513
|
-
|
|
1514
|
-
* User menu component.
|
|
1515
|
-
*
|
|
1516
|
-
* **Props**
|
|
1517
|
-
* - `user`: An object containing the user information.
|
|
1518
|
-
* - `settingsCTA`: A string or a function to call when the settings button is clicked.
|
|
1519
|
-
* - `logout`: A function to call when the logout button is clicked.
|
|
1520
|
-
* - `isInitialOpen`: Whether the menu should be open by default.
|
|
1521
|
-
* - `shouldCloseOnInteractOutside`: A function to call when the menu should be closed.
|
|
1522
|
-
* - `footerAction`: The child to render inside the footer.
|
|
1523
|
-
*/
|
|
1524
|
-
export declare const UserMenu: ({ user, settingsCTA, logout, isInitialOpen, shouldCloseOnInteractOutside, termOfServiceUrl, footerAction, }: UserMenuProps) => JSX.Element | null;
|
|
1519
|
+
export declare const UserMenu: ({ user, settingsCTA, logout, termOfServiceUrl, actions, }: UserMenuProps) => JSX.Element | null;
|
|
1525
1520
|
|
|
1526
1521
|
export declare const UserMenuItem: ({ label, icon, onClick }: UserMenuItemProps) => JSX.Element;
|
|
1527
1522
|
|
|
@@ -1540,8 +1535,7 @@ export declare type UserMenuProps = {
|
|
|
1540
1535
|
logout?: () => void;
|
|
1541
1536
|
termOfServiceUrl?: string;
|
|
1542
1537
|
isInitialOpen?: boolean;
|
|
1543
|
-
|
|
1544
|
-
footerAction?: ReactElement;
|
|
1538
|
+
actions?: ReactElement;
|
|
1545
1539
|
};
|
|
1546
1540
|
|
|
1547
1541
|
declare type UserProps = {
|