@6thbridge/hexa 0.0.0-pr86-181 → 0.0.0-pr88-183
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.mts +7 -17
- package/dist/index.d.ts +7 -17
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -3
- package/dist/index.mjs.map +1 -1
- package/dist/output.css +0 -12
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -409,8 +409,6 @@ type DrawerPropsType = {
|
|
|
409
409
|
description?: React$1.ReactNode;
|
|
410
410
|
footer?: React$1.ReactNode;
|
|
411
411
|
hideCloseButton?: boolean;
|
|
412
|
-
full?: boolean;
|
|
413
|
-
containerRelative?: boolean;
|
|
414
412
|
contentClassName?: string;
|
|
415
413
|
drawerContentClassName?: string;
|
|
416
414
|
headerClassName?: string;
|
|
@@ -422,7 +420,7 @@ type DrawerPropsType = {
|
|
|
422
420
|
onCloseAutoFocus?: (e: Event) => void;
|
|
423
421
|
modal?: boolean;
|
|
424
422
|
};
|
|
425
|
-
declare const Drawer: ({ trigger, children, open, onOpenChange, hideCloseButton,
|
|
423
|
+
declare const Drawer: ({ trigger, children, open, onOpenChange, hideCloseButton, footer, title, description, contentClassName, headerClassName, titleClassName, descriptionClassName, footerClassName, asChild, onOpenAutoFocus, drawerContentClassName, onCloseAutoFocus, id, modal, }: Omit<DrawerRootType, "value"> & DrawerPropsType) => React$1.JSX.Element;
|
|
426
424
|
|
|
427
425
|
type LocaleOption = {
|
|
428
426
|
key: string;
|
|
@@ -457,11 +455,9 @@ type ResourcePermission = {
|
|
|
457
455
|
action: string;
|
|
458
456
|
};
|
|
459
457
|
type ResourcePermissions = ResourcePermission[];
|
|
458
|
+
type ResourcePermissionInput = ResourcePermission | ResourcePermission[];
|
|
460
459
|
type ResourcePermissionProps = {
|
|
461
|
-
permission?:
|
|
462
|
-
resource?: string;
|
|
463
|
-
action?: string;
|
|
464
|
-
};
|
|
460
|
+
permission?: ResourcePermissionInput;
|
|
465
461
|
children: ReactNode;
|
|
466
462
|
};
|
|
467
463
|
|
|
@@ -471,7 +467,7 @@ type SingleLinkType = {
|
|
|
471
467
|
isHidden?: boolean;
|
|
472
468
|
icon?: ReactNode;
|
|
473
469
|
badge?: ReactNode;
|
|
474
|
-
permission?:
|
|
470
|
+
permission?: ResourcePermissionInput;
|
|
475
471
|
key?: string;
|
|
476
472
|
id: string;
|
|
477
473
|
};
|
|
@@ -702,15 +698,9 @@ declare const PermissionsProvider: ({ permissions, children, }: {
|
|
|
702
698
|
}) => React$1.JSX.Element;
|
|
703
699
|
|
|
704
700
|
declare const usePermissions: () => ResourcePermissions | undefined;
|
|
705
|
-
declare const useHasPermission: (permission
|
|
706
|
-
resource?: string;
|
|
707
|
-
action?: string;
|
|
708
|
-
}) => {
|
|
701
|
+
declare const useHasPermission: (permission?: ResourcePermissionInput) => {
|
|
709
702
|
hasPermission: boolean;
|
|
710
|
-
validatePermission: (
|
|
711
|
-
resource?: string;
|
|
712
|
-
action?: string;
|
|
713
|
-
}) => boolean;
|
|
703
|
+
validatePermission: (permissionToCheck?: ResourcePermissionInput) => boolean;
|
|
714
704
|
};
|
|
715
705
|
|
|
716
706
|
declare const HasResourcePermission: ({ permission, children, }: ResourcePermissionProps) => React$1.JSX.Element;
|
|
@@ -983,4 +973,4 @@ declare const TagsInput: ({ value, onChange, options, label, error, placeholder,
|
|
|
983
973
|
|
|
984
974
|
declare function cn(...inputs: ClassValue[]): string;
|
|
985
975
|
|
|
986
|
-
export { Accordion, type AccordionItemType, type AccordionProps, AmountAction, Banner, Button, CalendarInput, CopyableLabel, Country, type CountryProps, type CountrySelectOption$1 as CountrySelectOption, CurrencySymbolMap, DateAction, DebouncedInput, DevBanner, Dialog, Drawer, DrawerClose, type DrawerPropsType, DrawerRoot, FeatureBanner, type FilterFieldProps, type FilterListItem, type FilterListOptions, FilterPopover, FlagComponent, FormLabel, type FormatCurrencyOptions, HasResourcePermission, Input, Loader, LocaleSelector, MultiSelect, type MultiSelectDataType, MultiSelectTrigger, OTPInput, PageDataToolbar, Pagination, PasswordInput, PermissionsContext, PermissionsProvider, PhoneInput, Popover, PopoverContent, PopoverRoot, PopoverTrigger, RadioGroup, RadioGroupItem, type ResourcePermission, type ResourcePermissionProps, type ResourcePermissions, RichTextEditor, ScrollArea, Select, Sidebar, SplitButton, type SplitButtonItem, type SplitButtonProps, Status, StringAction, Table, type TableBulkRowActionsProps, type TablePaginationProps, Tabs, type TagOption, TagsInput, type TagsInputProps, TextOverflow, type TextOverflowProps, Textarea, Tooltip, TooltipContent, TooltipProvider, TooltipRoot, TooltipTrigger, buttonVariants, cn, useFilterStore, useHasPermission, usePermissions };
|
|
976
|
+
export { Accordion, type AccordionItemType, type AccordionProps, AmountAction, Banner, Button, CalendarInput, CopyableLabel, Country, type CountryProps, type CountrySelectOption$1 as CountrySelectOption, CurrencySymbolMap, DateAction, DebouncedInput, DevBanner, Dialog, Drawer, DrawerClose, type DrawerPropsType, DrawerRoot, FeatureBanner, type FilterFieldProps, type FilterListItem, type FilterListOptions, FilterPopover, FlagComponent, FormLabel, type FormatCurrencyOptions, HasResourcePermission, Input, Loader, LocaleSelector, MultiSelect, type MultiSelectDataType, MultiSelectTrigger, OTPInput, PageDataToolbar, Pagination, PasswordInput, PermissionsContext, PermissionsProvider, PhoneInput, Popover, PopoverContent, PopoverRoot, PopoverTrigger, RadioGroup, RadioGroupItem, type ResourcePermission, type ResourcePermissionInput, type ResourcePermissionProps, type ResourcePermissions, RichTextEditor, ScrollArea, Select, Sidebar, SplitButton, type SplitButtonItem, type SplitButtonProps, Status, StringAction, Table, type TableBulkRowActionsProps, type TablePaginationProps, Tabs, type TagOption, TagsInput, type TagsInputProps, TextOverflow, type TextOverflowProps, Textarea, Tooltip, TooltipContent, TooltipProvider, TooltipRoot, TooltipTrigger, buttonVariants, cn, useFilterStore, useHasPermission, usePermissions };
|
package/dist/index.d.ts
CHANGED
|
@@ -409,8 +409,6 @@ type DrawerPropsType = {
|
|
|
409
409
|
description?: React$1.ReactNode;
|
|
410
410
|
footer?: React$1.ReactNode;
|
|
411
411
|
hideCloseButton?: boolean;
|
|
412
|
-
full?: boolean;
|
|
413
|
-
containerRelative?: boolean;
|
|
414
412
|
contentClassName?: string;
|
|
415
413
|
drawerContentClassName?: string;
|
|
416
414
|
headerClassName?: string;
|
|
@@ -422,7 +420,7 @@ type DrawerPropsType = {
|
|
|
422
420
|
onCloseAutoFocus?: (e: Event) => void;
|
|
423
421
|
modal?: boolean;
|
|
424
422
|
};
|
|
425
|
-
declare const Drawer: ({ trigger, children, open, onOpenChange, hideCloseButton,
|
|
423
|
+
declare const Drawer: ({ trigger, children, open, onOpenChange, hideCloseButton, footer, title, description, contentClassName, headerClassName, titleClassName, descriptionClassName, footerClassName, asChild, onOpenAutoFocus, drawerContentClassName, onCloseAutoFocus, id, modal, }: Omit<DrawerRootType, "value"> & DrawerPropsType) => React$1.JSX.Element;
|
|
426
424
|
|
|
427
425
|
type LocaleOption = {
|
|
428
426
|
key: string;
|
|
@@ -457,11 +455,9 @@ type ResourcePermission = {
|
|
|
457
455
|
action: string;
|
|
458
456
|
};
|
|
459
457
|
type ResourcePermissions = ResourcePermission[];
|
|
458
|
+
type ResourcePermissionInput = ResourcePermission | ResourcePermission[];
|
|
460
459
|
type ResourcePermissionProps = {
|
|
461
|
-
permission?:
|
|
462
|
-
resource?: string;
|
|
463
|
-
action?: string;
|
|
464
|
-
};
|
|
460
|
+
permission?: ResourcePermissionInput;
|
|
465
461
|
children: ReactNode;
|
|
466
462
|
};
|
|
467
463
|
|
|
@@ -471,7 +467,7 @@ type SingleLinkType = {
|
|
|
471
467
|
isHidden?: boolean;
|
|
472
468
|
icon?: ReactNode;
|
|
473
469
|
badge?: ReactNode;
|
|
474
|
-
permission?:
|
|
470
|
+
permission?: ResourcePermissionInput;
|
|
475
471
|
key?: string;
|
|
476
472
|
id: string;
|
|
477
473
|
};
|
|
@@ -702,15 +698,9 @@ declare const PermissionsProvider: ({ permissions, children, }: {
|
|
|
702
698
|
}) => React$1.JSX.Element;
|
|
703
699
|
|
|
704
700
|
declare const usePermissions: () => ResourcePermissions | undefined;
|
|
705
|
-
declare const useHasPermission: (permission
|
|
706
|
-
resource?: string;
|
|
707
|
-
action?: string;
|
|
708
|
-
}) => {
|
|
701
|
+
declare const useHasPermission: (permission?: ResourcePermissionInput) => {
|
|
709
702
|
hasPermission: boolean;
|
|
710
|
-
validatePermission: (
|
|
711
|
-
resource?: string;
|
|
712
|
-
action?: string;
|
|
713
|
-
}) => boolean;
|
|
703
|
+
validatePermission: (permissionToCheck?: ResourcePermissionInput) => boolean;
|
|
714
704
|
};
|
|
715
705
|
|
|
716
706
|
declare const HasResourcePermission: ({ permission, children, }: ResourcePermissionProps) => React$1.JSX.Element;
|
|
@@ -983,4 +973,4 @@ declare const TagsInput: ({ value, onChange, options, label, error, placeholder,
|
|
|
983
973
|
|
|
984
974
|
declare function cn(...inputs: ClassValue[]): string;
|
|
985
975
|
|
|
986
|
-
export { Accordion, type AccordionItemType, type AccordionProps, AmountAction, Banner, Button, CalendarInput, CopyableLabel, Country, type CountryProps, type CountrySelectOption$1 as CountrySelectOption, CurrencySymbolMap, DateAction, DebouncedInput, DevBanner, Dialog, Drawer, DrawerClose, type DrawerPropsType, DrawerRoot, FeatureBanner, type FilterFieldProps, type FilterListItem, type FilterListOptions, FilterPopover, FlagComponent, FormLabel, type FormatCurrencyOptions, HasResourcePermission, Input, Loader, LocaleSelector, MultiSelect, type MultiSelectDataType, MultiSelectTrigger, OTPInput, PageDataToolbar, Pagination, PasswordInput, PermissionsContext, PermissionsProvider, PhoneInput, Popover, PopoverContent, PopoverRoot, PopoverTrigger, RadioGroup, RadioGroupItem, type ResourcePermission, type ResourcePermissionProps, type ResourcePermissions, RichTextEditor, ScrollArea, Select, Sidebar, SplitButton, type SplitButtonItem, type SplitButtonProps, Status, StringAction, Table, type TableBulkRowActionsProps, type TablePaginationProps, Tabs, type TagOption, TagsInput, type TagsInputProps, TextOverflow, type TextOverflowProps, Textarea, Tooltip, TooltipContent, TooltipProvider, TooltipRoot, TooltipTrigger, buttonVariants, cn, useFilterStore, useHasPermission, usePermissions };
|
|
976
|
+
export { Accordion, type AccordionItemType, type AccordionProps, AmountAction, Banner, Button, CalendarInput, CopyableLabel, Country, type CountryProps, type CountrySelectOption$1 as CountrySelectOption, CurrencySymbolMap, DateAction, DebouncedInput, DevBanner, Dialog, Drawer, DrawerClose, type DrawerPropsType, DrawerRoot, FeatureBanner, type FilterFieldProps, type FilterListItem, type FilterListOptions, FilterPopover, FlagComponent, FormLabel, type FormatCurrencyOptions, HasResourcePermission, Input, Loader, LocaleSelector, MultiSelect, type MultiSelectDataType, MultiSelectTrigger, OTPInput, PageDataToolbar, Pagination, PasswordInput, PermissionsContext, PermissionsProvider, PhoneInput, Popover, PopoverContent, PopoverRoot, PopoverTrigger, RadioGroup, RadioGroupItem, type ResourcePermission, type ResourcePermissionInput, type ResourcePermissionProps, type ResourcePermissions, RichTextEditor, ScrollArea, Select, Sidebar, SplitButton, type SplitButtonItem, type SplitButtonProps, Status, StringAction, Table, type TableBulkRowActionsProps, type TablePaginationProps, Tabs, type TagOption, TagsInput, type TagsInputProps, TextOverflow, type TextOverflowProps, Textarea, Tooltip, TooltipContent, TooltipProvider, TooltipRoot, TooltipTrigger, buttonVariants, cn, useFilterStore, useHasPermission, usePermissions };
|