@gouvfr-lasuite/ui-kit 0.8.2 → 0.9.0
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 +25 -25
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +14 -5
- package/dist/index.js +4956 -4869
- package/dist/index.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -692,7 +692,7 @@ export declare type ShareMemberItemProps<UserType, AccessType> = {
|
|
|
692
692
|
roleTopMessage?: string;
|
|
693
693
|
};
|
|
694
694
|
|
|
695
|
-
export declare const ShareModal: <UserType, InvitationType, AccessType>({ searchUsersResult, children, outsideSearchContent, accesses: members, invitations, hasNextMembers, canUpdate, hasNextInvitations, ...props }: PropsWithChildren<ShareModalProps<UserType, InvitationType, AccessType>>) => JSX.Element;
|
|
695
|
+
export declare const ShareModal: <UserType, InvitationType, AccessType>({ searchUsersResult, children, outsideSearchContent, accesses: members, invitations, hasNextMembers, canUpdate, hasNextInvitations, hideInvitations, hideMembers, ...props }: PropsWithChildren<ShareModalProps<UserType, InvitationType, AccessType>>) => JSX.Element;
|
|
696
696
|
|
|
697
697
|
declare type ShareModalAccessProps<UserType, AccessType> = {
|
|
698
698
|
accesses?: AccessData<UserType, AccessType>[];
|
|
@@ -719,6 +719,13 @@ declare type ShareModalInvitationProps<UserType, InvitationType> = {
|
|
|
719
719
|
invitationRoleTopMessage?: (invitation: InvitationData<UserType, InvitationType>) => string;
|
|
720
720
|
};
|
|
721
721
|
|
|
722
|
+
declare type ShareModalLinkSettingsProps = {
|
|
723
|
+
linkSettings?: boolean;
|
|
724
|
+
linkReachChoices?: Partial<DropdownMenuOption>[];
|
|
725
|
+
onUpdateLinkReach?: (value: string) => void;
|
|
726
|
+
linkReach?: string;
|
|
727
|
+
};
|
|
728
|
+
|
|
722
729
|
/**
|
|
723
730
|
* Only the props for the modal and generic props
|
|
724
731
|
* The modal is generic and can be with all types as long as the types meet the minimum requirements
|
|
@@ -729,16 +736,18 @@ export declare type ShareModalProps<UserType, InvitationType, AccessType> = {
|
|
|
729
736
|
isOpen: boolean;
|
|
730
737
|
canUpdate?: boolean;
|
|
731
738
|
onClose: () => void;
|
|
732
|
-
invitationRoles
|
|
739
|
+
invitationRoles?: DropdownMenuOption[];
|
|
733
740
|
getAccessRoles?: (access: AccessData<UserType, AccessType>) => DropdownMenuOption[];
|
|
734
741
|
outsideSearchContent?: ReactNode;
|
|
735
|
-
|
|
742
|
+
hideInvitations?: boolean;
|
|
743
|
+
hideMembers?: boolean;
|
|
744
|
+
} & ShareModalInvitationProps<UserType, InvitationType> & ShareModalAccessProps<UserType, AccessType> & ShareModalSearchProps<UserType> & ShareModalLinkSettingsProps;
|
|
736
745
|
|
|
737
746
|
declare type ShareModalSearchProps<UserType> = {
|
|
738
747
|
searchUsersResult?: UserData<UserType>[];
|
|
739
|
-
onSearchUsers
|
|
748
|
+
onSearchUsers?: (search: string) => void;
|
|
740
749
|
searchPlaceholder?: string;
|
|
741
|
-
onInviteUser
|
|
750
|
+
onInviteUser?: (users: UserData<UserType>[], role: string) => void;
|
|
742
751
|
loading?: boolean;
|
|
743
752
|
};
|
|
744
753
|
|