@gouvfr-lasuite/ui-kit 0.19.0 → 0.19.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/README.md +705 -1
- package/dist/index.cjs +24 -24
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +37 -9
- package/dist/index.js +3144 -3176
- package/dist/index.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -32,9 +32,10 @@ export declare type AccessData<UserType, T> = T & {
|
|
|
32
32
|
id: string;
|
|
33
33
|
role: string;
|
|
34
34
|
user: UserData<UserType>;
|
|
35
|
+
is_explicit?: boolean;
|
|
35
36
|
};
|
|
36
37
|
|
|
37
|
-
export declare const AccessRoleDropdown: ({ roles, onSelect, canUpdate, selectedRole, isOpen, onOpenChange, roleTopMessage, }: AccessRoleDropdownProps) => JSX.Element;
|
|
38
|
+
export declare const AccessRoleDropdown: ({ roles, onSelect, canUpdate, selectedRole, isOpen, onOpenChange, roleTopMessage, onDelete, }: AccessRoleDropdownProps) => JSX.Element;
|
|
38
39
|
|
|
39
40
|
declare type AccessRoleDropdownProps = {
|
|
40
41
|
selectedRole: string;
|
|
@@ -44,6 +45,7 @@ declare type AccessRoleDropdownProps = {
|
|
|
44
45
|
isOpen?: boolean;
|
|
45
46
|
onOpenChange?: (isOpen: boolean) => void;
|
|
46
47
|
roleTopMessage?: DropdownMenuProps["topMessage"];
|
|
48
|
+
onDelete?: () => void;
|
|
47
49
|
};
|
|
48
50
|
|
|
49
51
|
export declare type AddShareUserListProps<UserType> = {
|
|
@@ -1142,10 +1144,18 @@ export declare const LaGaufre: () => JSX.Element;
|
|
|
1142
1144
|
|
|
1143
1145
|
export declare const LaGaufreV2: MemoExoticComponent<({ apiUrl, data, ...props }: LaGaufreV2Props) => JSX.Element>;
|
|
1144
1146
|
|
|
1145
|
-
|
|
1146
|
-
widgetPath: string;
|
|
1147
|
+
declare type LaGaufreV2API = {
|
|
1147
1148
|
apiUrl: string;
|
|
1148
|
-
data?:
|
|
1149
|
+
data?: never;
|
|
1150
|
+
};
|
|
1151
|
+
|
|
1152
|
+
declare type LaGaufreV2Data = {
|
|
1153
|
+
apiUrl?: never;
|
|
1154
|
+
data: ServicesResponse;
|
|
1155
|
+
};
|
|
1156
|
+
|
|
1157
|
+
export declare type LaGaufreV2Props = {
|
|
1158
|
+
widgetPath?: string;
|
|
1149
1159
|
fontFamily?: string;
|
|
1150
1160
|
background?: string;
|
|
1151
1161
|
headerLogo?: string;
|
|
@@ -1158,7 +1168,7 @@ export declare type LaGaufreV2Props = {
|
|
|
1158
1168
|
showMoreLimit?: number;
|
|
1159
1169
|
viewMoreLabel?: string;
|
|
1160
1170
|
viewLessLabel?: string;
|
|
1161
|
-
};
|
|
1171
|
+
} & (LaGaufreV2API | LaGaufreV2Data);
|
|
1162
1172
|
|
|
1163
1173
|
/**
|
|
1164
1174
|
* A DropdownMenu specific to languages.
|
|
@@ -1605,7 +1615,7 @@ export { ModalSize }
|
|
|
1605
1615
|
|
|
1606
1616
|
export { NodeRendererProps }
|
|
1607
1617
|
|
|
1608
|
-
export declare const OnboardingModal: ({ isOpen, size, appName, mainTitle, steps, initialStep, footerLink, onSkip, onComplete, onClose, labels, }: OnboardingModalProps) => JSX.Element | null;
|
|
1618
|
+
export declare const OnboardingModal: ({ isOpen, size, appName, mainTitle, steps, initialStep, footerLink, hideContent, onSkip, onComplete, onClose, labels, }: OnboardingModalProps) => JSX.Element | null;
|
|
1609
1619
|
|
|
1610
1620
|
export declare interface OnboardingModalProps {
|
|
1611
1621
|
/** Whether the modal is open */
|
|
@@ -1636,6 +1646,8 @@ export declare interface OnboardingModalProps {
|
|
|
1636
1646
|
onComplete: () => void;
|
|
1637
1647
|
/** Callback when user clicks the close button */
|
|
1638
1648
|
onClose: () => void;
|
|
1649
|
+
/** Hide the content/preview zone (text-only mode) */
|
|
1650
|
+
hideContent?: boolean;
|
|
1639
1651
|
/** Custom labels for i18n */
|
|
1640
1652
|
labels?: {
|
|
1641
1653
|
skip?: string;
|
|
@@ -1655,7 +1667,7 @@ export declare interface OnboardingStep {
|
|
|
1655
1667
|
/** Step description, visible only when the step is active */
|
|
1656
1668
|
description?: string;
|
|
1657
1669
|
/** Content displayed in the preview zone (image, video, component, etc.) */
|
|
1658
|
-
content
|
|
1670
|
+
content?: ReactNode;
|
|
1659
1671
|
}
|
|
1660
1672
|
|
|
1661
1673
|
export declare interface OnboardingStepItemProps {
|
|
@@ -1761,6 +1773,23 @@ export declare type QuickSearchProps = {
|
|
|
1761
1773
|
children?: ReactNode;
|
|
1762
1774
|
};
|
|
1763
1775
|
|
|
1776
|
+
export declare const ReleaseNoteModal: ({ steps, ...props }: ReleaseNoteModalProps) => JSX.Element;
|
|
1777
|
+
|
|
1778
|
+
export declare interface ReleaseNoteModalProps extends Omit<OnboardingModalProps, "hideContent" | "steps"> {
|
|
1779
|
+
steps: ReleaseNoteStep[];
|
|
1780
|
+
}
|
|
1781
|
+
|
|
1782
|
+
export declare interface ReleaseNoteStep {
|
|
1783
|
+
/** Icon displayed next to the step title */
|
|
1784
|
+
icon: ReactNode;
|
|
1785
|
+
/** Icon displayed when the step is active */
|
|
1786
|
+
activeIcon?: ReactNode;
|
|
1787
|
+
/** Step title */
|
|
1788
|
+
title: string;
|
|
1789
|
+
/** Step description, visible only when the step is active */
|
|
1790
|
+
description?: string;
|
|
1791
|
+
}
|
|
1792
|
+
|
|
1764
1793
|
declare type ResponsiveStates = {
|
|
1765
1794
|
isMobile: boolean;
|
|
1766
1795
|
isTablet: boolean;
|
|
@@ -1786,7 +1815,7 @@ declare type ServicesResponse = {
|
|
|
1786
1815
|
error?: unknown;
|
|
1787
1816
|
};
|
|
1788
1817
|
|
|
1789
|
-
export declare const ShareInvitationItem: <UserType, InvitationType>({ invitation, roles, updateRole, deleteInvitation, canUpdate,
|
|
1818
|
+
export declare const ShareInvitationItem: <UserType, InvitationType>({ invitation, roles, updateRole, deleteInvitation, canUpdate, roleTopMessage, }: ShareInvitationItemProps<UserType, InvitationType>) => JSX.Element;
|
|
1790
1819
|
|
|
1791
1820
|
export declare type ShareInvitationItemProps<UserType, InvitationType> = {
|
|
1792
1821
|
invitation: InvitationData<UserType, InvitationType>;
|
|
@@ -1795,7 +1824,6 @@ export declare type ShareInvitationItemProps<UserType, InvitationType> = {
|
|
|
1795
1824
|
deleteInvitation?: (invitation: InvitationData<UserType, InvitationType>) => void;
|
|
1796
1825
|
canUpdate?: boolean;
|
|
1797
1826
|
roleTopMessage?: string;
|
|
1798
|
-
showMoreActionsButton?: boolean;
|
|
1799
1827
|
};
|
|
1800
1828
|
|
|
1801
1829
|
export declare const ShareMemberItem: <UserType, AccessType>({ accessData, accessRoleKey, roles, updateRole, deleteAccess, canUpdate, roleTopMessage, }: ShareMemberItemProps<UserType, AccessType>) => JSX.Element;
|