@gouvfr-lasuite/ui-kit 0.18.1 → 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 +35 -35
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +45 -14
- package/dist/index.js +3351 -3182
- package/dist/index.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -691,6 +691,26 @@ export declare const Label: ({ children, text, ...props }: LabelHTMLAttributes<H
|
|
|
691
691
|
|
|
692
692
|
export declare const LaGaufre: () => JSX.Element;
|
|
693
693
|
|
|
694
|
+
export declare const LaGaufreV2: ({ apiUrl, data, ...props }: LaGaufreV2Props) => JSX.Element;
|
|
695
|
+
|
|
696
|
+
export declare type LaGaufreV2Props = {
|
|
697
|
+
widgetPath: string;
|
|
698
|
+
apiUrl: string;
|
|
699
|
+
data?: ServicesResponse;
|
|
700
|
+
fontFamily?: string;
|
|
701
|
+
background?: string;
|
|
702
|
+
headerLogo?: string;
|
|
703
|
+
headerUrl?: string;
|
|
704
|
+
label?: string;
|
|
705
|
+
closeLabel?: string;
|
|
706
|
+
headerLabel?: string;
|
|
707
|
+
loadingText?: string;
|
|
708
|
+
newWindowLabelSuffix?: string;
|
|
709
|
+
showMoreLimit?: number;
|
|
710
|
+
viewMoreLabel?: string;
|
|
711
|
+
viewLessLabel?: string;
|
|
712
|
+
};
|
|
713
|
+
|
|
694
714
|
/**
|
|
695
715
|
* A DropdownMenu specific to languages.
|
|
696
716
|
*
|
|
@@ -869,6 +889,8 @@ export declare const locales: {
|
|
|
869
889
|
laGaufre: {
|
|
870
890
|
label: string;
|
|
871
891
|
closeLabel: string;
|
|
892
|
+
viewMoreLabel: string;
|
|
893
|
+
viewLessLabel: string;
|
|
872
894
|
loadingText: string;
|
|
873
895
|
newWindowLabelSuffix: string;
|
|
874
896
|
headerLabel: string;
|
|
@@ -1033,6 +1055,8 @@ export declare const locales: {
|
|
|
1033
1055
|
label: string;
|
|
1034
1056
|
closeLabel: string;
|
|
1035
1057
|
loadingText: string;
|
|
1058
|
+
viewMoreLabel: string;
|
|
1059
|
+
viewLessLabel: string;
|
|
1036
1060
|
newWindowLabelSuffix: string;
|
|
1037
1061
|
headerLabel: string;
|
|
1038
1062
|
};
|
|
@@ -1079,6 +1103,12 @@ export declare type OpenMap = {
|
|
|
1079
1103
|
[id: string]: boolean;
|
|
1080
1104
|
};
|
|
1081
1105
|
|
|
1106
|
+
declare type Organization = {
|
|
1107
|
+
name: string;
|
|
1108
|
+
type: string;
|
|
1109
|
+
siret: string;
|
|
1110
|
+
};
|
|
1111
|
+
|
|
1082
1112
|
export declare type PaginatedChildrenResult<T> = {
|
|
1083
1113
|
children?: TreeViewDataType<T>[];
|
|
1084
1114
|
pagination?: BaseTreeViewData<T>["pagination"];
|
|
@@ -1168,6 +1198,19 @@ declare type SearchUserItemProps<UserType> = {
|
|
|
1168
1198
|
user: UserData<UserType>;
|
|
1169
1199
|
};
|
|
1170
1200
|
|
|
1201
|
+
export declare type Service = {
|
|
1202
|
+
name: string;
|
|
1203
|
+
url: string;
|
|
1204
|
+
maturity?: string;
|
|
1205
|
+
logo?: string;
|
|
1206
|
+
};
|
|
1207
|
+
|
|
1208
|
+
declare type ServicesResponse = {
|
|
1209
|
+
organization?: Organization;
|
|
1210
|
+
services: Service[];
|
|
1211
|
+
error?: unknown;
|
|
1212
|
+
};
|
|
1213
|
+
|
|
1171
1214
|
export declare const ShareInvitationItem: <UserType, InvitationType>({ invitation, roles, updateRole, deleteInvitation, canUpdate, showMoreActionsButton, roleTopMessage, }: ShareInvitationItemProps<UserType, InvitationType>) => JSX.Element;
|
|
1172
1215
|
|
|
1173
1216
|
export declare type ShareInvitationItemProps<UserType, InvitationType> = {
|
|
@@ -1473,18 +1516,7 @@ export declare type UserData<T> = T & {
|
|
|
1473
1516
|
|
|
1474
1517
|
export declare const useResponsive: () => ResponsiveStates;
|
|
1475
1518
|
|
|
1476
|
-
|
|
1477
|
-
* User menu component.
|
|
1478
|
-
*
|
|
1479
|
-
* **Props**
|
|
1480
|
-
* - `user`: An object containing the user information.
|
|
1481
|
-
* - `settingsCTA`: A string or a function to call when the settings button is clicked.
|
|
1482
|
-
* - `logout`: A function to call when the logout button is clicked.
|
|
1483
|
-
* - `isInitialOpen`: Whether the menu should be open by default.
|
|
1484
|
-
* - `shouldCloseOnInteractOutside`: A function to call when the menu should be closed.
|
|
1485
|
-
* - `footerAction`: The child to render inside the footer.
|
|
1486
|
-
*/
|
|
1487
|
-
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;
|
|
1488
1520
|
|
|
1489
1521
|
export declare const UserMenuItem: ({ label, icon, onClick }: UserMenuItemProps) => JSX.Element;
|
|
1490
1522
|
|
|
@@ -1503,8 +1535,7 @@ export declare type UserMenuProps = {
|
|
|
1503
1535
|
logout?: () => void;
|
|
1504
1536
|
termOfServiceUrl?: string;
|
|
1505
1537
|
isInitialOpen?: boolean;
|
|
1506
|
-
|
|
1507
|
-
footerAction?: ReactElement;
|
|
1538
|
+
actions?: ReactElement;
|
|
1508
1539
|
};
|
|
1509
1540
|
|
|
1510
1541
|
declare type UserProps = {
|