@gouvfr-lasuite/ui-kit 0.18.2 → 0.18.4

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.d.ts CHANGED
@@ -8,6 +8,7 @@ import { HTMLAttributes } from 'react';
8
8
  import { JSX } from 'react/jsx-runtime';
9
9
  import { Key } from 'react-stately';
10
10
  import { LabelHTMLAttributes } from 'react';
11
+ import { MemoExoticComponent } from 'react';
11
12
  import { NodeApi } from 'react-arborist';
12
13
  import { NodeRendererProps } from 'react-arborist';
13
14
  import { Option as Option_2 } from '@openfun/cunningham-react';
@@ -691,7 +692,7 @@ export declare const Label: ({ children, text, ...props }: LabelHTMLAttributes<H
691
692
 
692
693
  export declare const LaGaufre: () => JSX.Element;
693
694
 
694
- export declare const LaGaufreV2: ({ apiUrl, data, ...props }: LaGaufreV2Props) => JSX.Element;
695
+ export declare const LaGaufreV2: MemoExoticComponent<({ apiUrl, data, ...props }: LaGaufreV2Props) => JSX.Element>;
695
696
 
696
697
  export declare type LaGaufreV2Props = {
697
698
  widgetPath: string;
@@ -707,6 +708,8 @@ export declare type LaGaufreV2Props = {
707
708
  loadingText?: string;
708
709
  newWindowLabelSuffix?: string;
709
710
  showMoreLimit?: number;
711
+ viewMoreLabel?: string;
712
+ viewLessLabel?: string;
710
713
  };
711
714
 
712
715
  /**
@@ -887,6 +890,8 @@ export declare const locales: {
887
890
  laGaufre: {
888
891
  label: string;
889
892
  closeLabel: string;
893
+ viewMoreLabel: string;
894
+ viewLessLabel: string;
890
895
  loadingText: string;
891
896
  newWindowLabelSuffix: string;
892
897
  headerLabel: string;
@@ -1051,6 +1056,8 @@ export declare const locales: {
1051
1056
  label: string;
1052
1057
  closeLabel: string;
1053
1058
  loadingText: string;
1059
+ viewMoreLabel: string;
1060
+ viewLessLabel: string;
1054
1061
  newWindowLabelSuffix: string;
1055
1062
  headerLabel: string;
1056
1063
  };
@@ -1510,18 +1517,7 @@ export declare type UserData<T> = T & {
1510
1517
 
1511
1518
  export declare const useResponsive: () => ResponsiveStates;
1512
1519
 
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;
1520
+ export declare const UserMenu: ({ user, settingsCTA, logout, termOfServiceUrl, actions, }: UserMenuProps) => JSX.Element | null;
1525
1521
 
1526
1522
  export declare const UserMenuItem: ({ label, icon, onClick }: UserMenuItemProps) => JSX.Element;
1527
1523
 
@@ -1540,8 +1536,7 @@ export declare type UserMenuProps = {
1540
1536
  logout?: () => void;
1541
1537
  termOfServiceUrl?: string;
1542
1538
  isInitialOpen?: boolean;
1543
- shouldCloseOnInteractOutside?: (element: Element) => boolean;
1544
- footerAction?: ReactElement;
1539
+ actions?: ReactElement;
1545
1540
  };
1546
1541
 
1547
1542
  declare type UserProps = {