@6thbridge/hexa 0.0.0-pr88-185 → 0.0.0-pr89-186
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 +18 -7
- package/dist/index.d.ts +18 -7
- package/dist/index.js +9 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -3
- package/dist/index.mjs.map +1 -1
- package/dist/output.css +9 -5
- package/package.json +3 -3
- package/tsup.config.ts +11 -0
package/dist/index.d.mts
CHANGED
|
@@ -419,8 +419,11 @@ type DrawerPropsType = {
|
|
|
419
419
|
onOpenAutoFocus?: (e: Event) => void;
|
|
420
420
|
onCloseAutoFocus?: (e: Event) => void;
|
|
421
421
|
modal?: boolean;
|
|
422
|
+
size?: "default" | "full";
|
|
423
|
+
usePortal?: boolean;
|
|
424
|
+
showOverlay?: boolean;
|
|
422
425
|
};
|
|
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
|
+
declare const Drawer: ({ trigger, children, open, onOpenChange, hideCloseButton, footer, title, description, contentClassName, headerClassName, titleClassName, descriptionClassName, footerClassName, asChild, onOpenAutoFocus, drawerContentClassName, onCloseAutoFocus, id, modal, size, usePortal, showOverlay, }: Omit<DrawerRootType, "value"> & DrawerPropsType) => React$1.JSX.Element;
|
|
424
427
|
|
|
425
428
|
type LocaleOption = {
|
|
426
429
|
key: string;
|
|
@@ -455,9 +458,11 @@ type ResourcePermission = {
|
|
|
455
458
|
action: string;
|
|
456
459
|
};
|
|
457
460
|
type ResourcePermissions = ResourcePermission[];
|
|
458
|
-
type ResourcePermissionInput = ResourcePermission | ResourcePermission[];
|
|
459
461
|
type ResourcePermissionProps = {
|
|
460
|
-
permission?:
|
|
462
|
+
permission?: {
|
|
463
|
+
resource?: string;
|
|
464
|
+
action?: string;
|
|
465
|
+
};
|
|
461
466
|
children: ReactNode;
|
|
462
467
|
};
|
|
463
468
|
|
|
@@ -467,7 +472,7 @@ type SingleLinkType = {
|
|
|
467
472
|
isHidden?: boolean;
|
|
468
473
|
icon?: ReactNode;
|
|
469
474
|
badge?: ReactNode;
|
|
470
|
-
permission?:
|
|
475
|
+
permission?: ResourcePermissionProps["permission"];
|
|
471
476
|
key?: string;
|
|
472
477
|
id: string;
|
|
473
478
|
};
|
|
@@ -698,9 +703,15 @@ declare const PermissionsProvider: ({ permissions, children, }: {
|
|
|
698
703
|
}) => React$1.JSX.Element;
|
|
699
704
|
|
|
700
705
|
declare const usePermissions: () => ResourcePermissions | undefined;
|
|
701
|
-
declare const useHasPermission: (permission
|
|
706
|
+
declare const useHasPermission: (permission: {
|
|
707
|
+
resource?: string;
|
|
708
|
+
action?: string;
|
|
709
|
+
}) => {
|
|
702
710
|
hasPermission: boolean;
|
|
703
|
-
validatePermission: (
|
|
711
|
+
validatePermission: (permission: {
|
|
712
|
+
resource?: string;
|
|
713
|
+
action?: string;
|
|
714
|
+
}) => boolean;
|
|
704
715
|
};
|
|
705
716
|
|
|
706
717
|
declare const HasResourcePermission: ({ permission, children, }: ResourcePermissionProps) => React$1.JSX.Element;
|
|
@@ -973,4 +984,4 @@ declare const TagsInput: ({ value, onChange, options, label, error, placeholder,
|
|
|
973
984
|
|
|
974
985
|
declare function cn(...inputs: ClassValue[]): string;
|
|
975
986
|
|
|
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
|
|
987
|
+
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 };
|
package/dist/index.d.ts
CHANGED
|
@@ -419,8 +419,11 @@ type DrawerPropsType = {
|
|
|
419
419
|
onOpenAutoFocus?: (e: Event) => void;
|
|
420
420
|
onCloseAutoFocus?: (e: Event) => void;
|
|
421
421
|
modal?: boolean;
|
|
422
|
+
size?: "default" | "full";
|
|
423
|
+
usePortal?: boolean;
|
|
424
|
+
showOverlay?: boolean;
|
|
422
425
|
};
|
|
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
|
+
declare const Drawer: ({ trigger, children, open, onOpenChange, hideCloseButton, footer, title, description, contentClassName, headerClassName, titleClassName, descriptionClassName, footerClassName, asChild, onOpenAutoFocus, drawerContentClassName, onCloseAutoFocus, id, modal, size, usePortal, showOverlay, }: Omit<DrawerRootType, "value"> & DrawerPropsType) => React$1.JSX.Element;
|
|
424
427
|
|
|
425
428
|
type LocaleOption = {
|
|
426
429
|
key: string;
|
|
@@ -455,9 +458,11 @@ type ResourcePermission = {
|
|
|
455
458
|
action: string;
|
|
456
459
|
};
|
|
457
460
|
type ResourcePermissions = ResourcePermission[];
|
|
458
|
-
type ResourcePermissionInput = ResourcePermission | ResourcePermission[];
|
|
459
461
|
type ResourcePermissionProps = {
|
|
460
|
-
permission?:
|
|
462
|
+
permission?: {
|
|
463
|
+
resource?: string;
|
|
464
|
+
action?: string;
|
|
465
|
+
};
|
|
461
466
|
children: ReactNode;
|
|
462
467
|
};
|
|
463
468
|
|
|
@@ -467,7 +472,7 @@ type SingleLinkType = {
|
|
|
467
472
|
isHidden?: boolean;
|
|
468
473
|
icon?: ReactNode;
|
|
469
474
|
badge?: ReactNode;
|
|
470
|
-
permission?:
|
|
475
|
+
permission?: ResourcePermissionProps["permission"];
|
|
471
476
|
key?: string;
|
|
472
477
|
id: string;
|
|
473
478
|
};
|
|
@@ -698,9 +703,15 @@ declare const PermissionsProvider: ({ permissions, children, }: {
|
|
|
698
703
|
}) => React$1.JSX.Element;
|
|
699
704
|
|
|
700
705
|
declare const usePermissions: () => ResourcePermissions | undefined;
|
|
701
|
-
declare const useHasPermission: (permission
|
|
706
|
+
declare const useHasPermission: (permission: {
|
|
707
|
+
resource?: string;
|
|
708
|
+
action?: string;
|
|
709
|
+
}) => {
|
|
702
710
|
hasPermission: boolean;
|
|
703
|
-
validatePermission: (
|
|
711
|
+
validatePermission: (permission: {
|
|
712
|
+
resource?: string;
|
|
713
|
+
action?: string;
|
|
714
|
+
}) => boolean;
|
|
704
715
|
};
|
|
705
716
|
|
|
706
717
|
declare const HasResourcePermission: ({ permission, children, }: ResourcePermissionProps) => React$1.JSX.Element;
|
|
@@ -973,4 +984,4 @@ declare const TagsInput: ({ value, onChange, options, label, error, placeholder,
|
|
|
973
984
|
|
|
974
985
|
declare function cn(...inputs: ClassValue[]): string;
|
|
975
986
|
|
|
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
|
|
987
|
+
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 };
|