@6thbridge/hexa 0.0.104 → 0.0.106-pr91-201
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 +9 -15
- package/dist/index.d.ts +9 -15
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -5
- package/dist/index.mjs.map +1 -1
- package/dist/output.css +9 -0
- package/package.json +16 -16
package/dist/index.d.mts
CHANGED
|
@@ -106,6 +106,7 @@ type SplitButtonItem = {
|
|
|
106
106
|
disabled?: boolean;
|
|
107
107
|
destructive?: boolean;
|
|
108
108
|
separatorBefore?: boolean;
|
|
109
|
+
className?: string;
|
|
109
110
|
};
|
|
110
111
|
interface SplitButtonProps extends Omit<React$1.ButtonHTMLAttributes<HTMLButtonElement>, "onSelect"> {
|
|
111
112
|
items: SplitButtonItem[];
|
|
@@ -119,13 +120,14 @@ interface SplitButtonProps extends Omit<React$1.ButtonHTMLAttributes<HTMLButtonE
|
|
|
119
120
|
buttonClassName?: string;
|
|
120
121
|
triggerClassName?: string;
|
|
121
122
|
contentClassName?: string;
|
|
123
|
+
itemClassName?: string;
|
|
122
124
|
open?: boolean;
|
|
123
125
|
onOpenChange?: (open: boolean) => void;
|
|
124
126
|
modal?: boolean;
|
|
125
127
|
id?: string;
|
|
126
128
|
}
|
|
127
129
|
declare const SplitButton: {
|
|
128
|
-
({ items, variant, size, isLoading, leftNode, children, disabled, className, buttonClassName, triggerClassName, contentClassName, menuAlign, menuSide, menuTriggerLabel, open, onOpenChange, modal, id, ...props }: SplitButtonProps): React$1.JSX.Element;
|
|
130
|
+
({ items, variant, size, isLoading, leftNode, children, disabled, className, buttonClassName, triggerClassName, contentClassName, itemClassName, menuAlign, menuSide, menuTriggerLabel, open, onOpenChange, modal, id, ...props }: SplitButtonProps): React$1.JSX.Element;
|
|
129
131
|
displayName: string;
|
|
130
132
|
};
|
|
131
133
|
|
|
@@ -458,11 +460,9 @@ type ResourcePermission = {
|
|
|
458
460
|
action: string;
|
|
459
461
|
};
|
|
460
462
|
type ResourcePermissions = ResourcePermission[];
|
|
463
|
+
type ResourcePermissionInput = ResourcePermission | ResourcePermission[];
|
|
461
464
|
type ResourcePermissionProps = {
|
|
462
|
-
permission?:
|
|
463
|
-
resource?: string;
|
|
464
|
-
action?: string;
|
|
465
|
-
};
|
|
465
|
+
permission?: ResourcePermissionInput;
|
|
466
466
|
children: ReactNode;
|
|
467
467
|
};
|
|
468
468
|
|
|
@@ -472,7 +472,7 @@ type SingleLinkType = {
|
|
|
472
472
|
isHidden?: boolean;
|
|
473
473
|
icon?: ReactNode;
|
|
474
474
|
badge?: ReactNode;
|
|
475
|
-
permission?:
|
|
475
|
+
permission?: ResourcePermissionInput;
|
|
476
476
|
key?: string;
|
|
477
477
|
id: string;
|
|
478
478
|
};
|
|
@@ -703,15 +703,9 @@ declare const PermissionsProvider: ({ permissions, children, }: {
|
|
|
703
703
|
}) => React$1.JSX.Element;
|
|
704
704
|
|
|
705
705
|
declare const usePermissions: () => ResourcePermissions | undefined;
|
|
706
|
-
declare const useHasPermission: (permission
|
|
707
|
-
resource?: string;
|
|
708
|
-
action?: string;
|
|
709
|
-
}) => {
|
|
706
|
+
declare const useHasPermission: (permission?: ResourcePermissionInput) => {
|
|
710
707
|
hasPermission: boolean;
|
|
711
|
-
validatePermission: (
|
|
712
|
-
resource?: string;
|
|
713
|
-
action?: string;
|
|
714
|
-
}) => boolean;
|
|
708
|
+
validatePermission: (permissionToCheck?: ResourcePermissionInput) => boolean;
|
|
715
709
|
};
|
|
716
710
|
|
|
717
711
|
declare const HasResourcePermission: ({ permission, children, }: ResourcePermissionProps) => React$1.JSX.Element;
|
|
@@ -984,4 +978,4 @@ declare const TagsInput: ({ value, onChange, options, label, error, placeholder,
|
|
|
984
978
|
|
|
985
979
|
declare function cn(...inputs: ClassValue[]): string;
|
|
986
980
|
|
|
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 };
|
|
981
|
+
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
|
@@ -106,6 +106,7 @@ type SplitButtonItem = {
|
|
|
106
106
|
disabled?: boolean;
|
|
107
107
|
destructive?: boolean;
|
|
108
108
|
separatorBefore?: boolean;
|
|
109
|
+
className?: string;
|
|
109
110
|
};
|
|
110
111
|
interface SplitButtonProps extends Omit<React$1.ButtonHTMLAttributes<HTMLButtonElement>, "onSelect"> {
|
|
111
112
|
items: SplitButtonItem[];
|
|
@@ -119,13 +120,14 @@ interface SplitButtonProps extends Omit<React$1.ButtonHTMLAttributes<HTMLButtonE
|
|
|
119
120
|
buttonClassName?: string;
|
|
120
121
|
triggerClassName?: string;
|
|
121
122
|
contentClassName?: string;
|
|
123
|
+
itemClassName?: string;
|
|
122
124
|
open?: boolean;
|
|
123
125
|
onOpenChange?: (open: boolean) => void;
|
|
124
126
|
modal?: boolean;
|
|
125
127
|
id?: string;
|
|
126
128
|
}
|
|
127
129
|
declare const SplitButton: {
|
|
128
|
-
({ items, variant, size, isLoading, leftNode, children, disabled, className, buttonClassName, triggerClassName, contentClassName, menuAlign, menuSide, menuTriggerLabel, open, onOpenChange, modal, id, ...props }: SplitButtonProps): React$1.JSX.Element;
|
|
130
|
+
({ items, variant, size, isLoading, leftNode, children, disabled, className, buttonClassName, triggerClassName, contentClassName, itemClassName, menuAlign, menuSide, menuTriggerLabel, open, onOpenChange, modal, id, ...props }: SplitButtonProps): React$1.JSX.Element;
|
|
129
131
|
displayName: string;
|
|
130
132
|
};
|
|
131
133
|
|
|
@@ -458,11 +460,9 @@ type ResourcePermission = {
|
|
|
458
460
|
action: string;
|
|
459
461
|
};
|
|
460
462
|
type ResourcePermissions = ResourcePermission[];
|
|
463
|
+
type ResourcePermissionInput = ResourcePermission | ResourcePermission[];
|
|
461
464
|
type ResourcePermissionProps = {
|
|
462
|
-
permission?:
|
|
463
|
-
resource?: string;
|
|
464
|
-
action?: string;
|
|
465
|
-
};
|
|
465
|
+
permission?: ResourcePermissionInput;
|
|
466
466
|
children: ReactNode;
|
|
467
467
|
};
|
|
468
468
|
|
|
@@ -472,7 +472,7 @@ type SingleLinkType = {
|
|
|
472
472
|
isHidden?: boolean;
|
|
473
473
|
icon?: ReactNode;
|
|
474
474
|
badge?: ReactNode;
|
|
475
|
-
permission?:
|
|
475
|
+
permission?: ResourcePermissionInput;
|
|
476
476
|
key?: string;
|
|
477
477
|
id: string;
|
|
478
478
|
};
|
|
@@ -703,15 +703,9 @@ declare const PermissionsProvider: ({ permissions, children, }: {
|
|
|
703
703
|
}) => React$1.JSX.Element;
|
|
704
704
|
|
|
705
705
|
declare const usePermissions: () => ResourcePermissions | undefined;
|
|
706
|
-
declare const useHasPermission: (permission
|
|
707
|
-
resource?: string;
|
|
708
|
-
action?: string;
|
|
709
|
-
}) => {
|
|
706
|
+
declare const useHasPermission: (permission?: ResourcePermissionInput) => {
|
|
710
707
|
hasPermission: boolean;
|
|
711
|
-
validatePermission: (
|
|
712
|
-
resource?: string;
|
|
713
|
-
action?: string;
|
|
714
|
-
}) => boolean;
|
|
708
|
+
validatePermission: (permissionToCheck?: ResourcePermissionInput) => boolean;
|
|
715
709
|
};
|
|
716
710
|
|
|
717
711
|
declare const HasResourcePermission: ({ permission, children, }: ResourcePermissionProps) => React$1.JSX.Element;
|
|
@@ -984,4 +978,4 @@ declare const TagsInput: ({ value, onChange, options, label, error, placeholder,
|
|
|
984
978
|
|
|
985
979
|
declare function cn(...inputs: ClassValue[]): string;
|
|
986
980
|
|
|
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 };
|
|
981
|
+
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 };
|