@gouvfr-lasuite/ui-kit 0.19.1 → 0.19.2
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 +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +7 -0
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -28,11 +28,18 @@ declare type AbstractSeparatorProps = {
|
|
|
28
28
|
size?: string;
|
|
29
29
|
};
|
|
30
30
|
|
|
31
|
+
/**
|
|
32
|
+
* Represents a user's access to a shared resource.
|
|
33
|
+
*
|
|
34
|
+
* @property is_explicit - When false, indicates inherited/implicit access that cannot be removed directly.
|
|
35
|
+
* @property can_delete - When false, prevents deletion of this access (e.g., last remaining access, current user).
|
|
36
|
+
*/
|
|
31
37
|
export declare type AccessData<UserType, T> = T & {
|
|
32
38
|
id: string;
|
|
33
39
|
role: string;
|
|
34
40
|
user: UserData<UserType>;
|
|
35
41
|
is_explicit?: boolean;
|
|
42
|
+
can_delete?: boolean;
|
|
36
43
|
};
|
|
37
44
|
|
|
38
45
|
export declare const AccessRoleDropdown: ({ roles, onSelect, canUpdate, selectedRole, isOpen, onOpenChange, roleTopMessage, onDelete, }: AccessRoleDropdownProps) => JSX.Element;
|
package/dist/index.js
CHANGED
|
@@ -21289,7 +21289,7 @@ const La = ({
|
|
|
21289
21289
|
onOpenChange: a.setIsOpen,
|
|
21290
21290
|
canUpdate: o,
|
|
21291
21291
|
roleTopMessage: l,
|
|
21292
|
-
onDelete: t.is_explicit !== !1 && i ? () => i(t) : void 0
|
|
21292
|
+
onDelete: t.is_explicit !== !1 && t.can_delete !== !1 && i ? () => i(t) : void 0
|
|
21293
21293
|
}
|
|
21294
21294
|
) })
|
|
21295
21295
|
}
|