@yusr_systems/ui 6.0.10 → 6.0.11
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 +26 -0
- package/dist/yusr-ui.js +1864 -1795
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -219,6 +219,8 @@ declare type CarouselProps = {
|
|
|
219
219
|
setApi?: (api: CarouselApi) => void;
|
|
220
220
|
};
|
|
221
221
|
|
|
222
|
+
export declare const categorizePermissions: (systemPermissions: string[], order: string[], delimiter?: string) => PermissionGroup[];
|
|
223
|
+
|
|
222
224
|
export declare function ChangeDialog<T extends BaseEntity>({ title, description, className, formData, dialogMode, service, disable, onSuccess, validate, children }: ChangeDialogProps<T>): JSX.Element;
|
|
223
225
|
|
|
224
226
|
export declare interface ChangeDialogProps<T extends BaseEntity> extends SaveButtonProps<T>, PropsWithChildren {
|
|
@@ -863,6 +865,30 @@ export declare function PaginationPrevious({ className, text, ...props }: React_
|
|
|
863
865
|
|
|
864
866
|
export declare function PasswordField(props: InputFieldProps): JSX.Element;
|
|
865
867
|
|
|
868
|
+
export declare function PermissionCard({ resourceId, label, masterPermission, actions, selectedPermissions, onToggle, isMasterRequired }: PermissionCardProps): JSX.Element;
|
|
869
|
+
|
|
870
|
+
export declare interface PermissionCardProps {
|
|
871
|
+
resourceId: string;
|
|
872
|
+
label: string;
|
|
873
|
+
masterPermission?: string | null;
|
|
874
|
+
actions: {
|
|
875
|
+
id: string;
|
|
876
|
+
label: string;
|
|
877
|
+
icon?: React.ReactNode;
|
|
878
|
+
}[];
|
|
879
|
+
selectedPermissions: string[];
|
|
880
|
+
onToggle: (updated: string[]) => void;
|
|
881
|
+
isMasterRequired?: boolean;
|
|
882
|
+
}
|
|
883
|
+
|
|
884
|
+
export declare interface PermissionGroup {
|
|
885
|
+
resource: string;
|
|
886
|
+
get: string | null;
|
|
887
|
+
actions: string[];
|
|
888
|
+
}
|
|
889
|
+
|
|
890
|
+
export declare const PermissionSkeleton: () => JSX.Element;
|
|
891
|
+
|
|
866
892
|
export declare function PhoneField(props: InputFieldProps): JSX.Element;
|
|
867
893
|
|
|
868
894
|
export declare function Popover({ ...props }: React_2.ComponentProps<typeof PopoverPrimitive.Root>): JSX.Element;
|