@6thbridge/hexa 0.0.100 → 0.0.104
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 +38 -2
- package/dist/index.d.ts +38 -2
- 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 +54 -0
- package/package.json +4 -3
- package/tsup.config.ts +11 -0
package/dist/index.d.mts
CHANGED
|
@@ -5,6 +5,7 @@ import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
|
|
5
5
|
import * as LabelPrimitive from '@radix-ui/react-label';
|
|
6
6
|
import * as class_variance_authority_dist_types from 'class-variance-authority/dist/types';
|
|
7
7
|
import { VariantProps } from 'class-variance-authority';
|
|
8
|
+
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
8
9
|
import * as RPNInput from 'react-phone-number-input';
|
|
9
10
|
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
10
11
|
import { DialogCloseProps } from '@radix-ui/react-dialog';
|
|
@@ -96,6 +97,38 @@ interface ButtonProps extends DetailedHTMLProps<ButtonHTMLAttributes<HTMLButtonE
|
|
|
96
97
|
}
|
|
97
98
|
declare const Button: React$1.ForwardRefExoticComponent<Omit<ButtonProps, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
98
99
|
|
|
100
|
+
type SplitButtonSize = VariantProps<typeof buttonVariants>["size"];
|
|
101
|
+
type SplitButtonItem = {
|
|
102
|
+
value?: string;
|
|
103
|
+
label: React$1.ReactNode;
|
|
104
|
+
icon?: React$1.ReactNode;
|
|
105
|
+
onSelect?: () => void;
|
|
106
|
+
disabled?: boolean;
|
|
107
|
+
destructive?: boolean;
|
|
108
|
+
separatorBefore?: boolean;
|
|
109
|
+
};
|
|
110
|
+
interface SplitButtonProps extends Omit<React$1.ButtonHTMLAttributes<HTMLButtonElement>, "onSelect"> {
|
|
111
|
+
items: SplitButtonItem[];
|
|
112
|
+
variant?: ButtonVariant;
|
|
113
|
+
size?: SplitButtonSize;
|
|
114
|
+
isLoading?: boolean;
|
|
115
|
+
leftNode?: React$1.ReactNode;
|
|
116
|
+
menuAlign?: DropdownMenuPrimitive.DropdownMenuContentProps["align"];
|
|
117
|
+
menuSide?: DropdownMenuPrimitive.DropdownMenuContentProps["side"];
|
|
118
|
+
menuTriggerLabel?: string;
|
|
119
|
+
buttonClassName?: string;
|
|
120
|
+
triggerClassName?: string;
|
|
121
|
+
contentClassName?: string;
|
|
122
|
+
open?: boolean;
|
|
123
|
+
onOpenChange?: (open: boolean) => void;
|
|
124
|
+
modal?: boolean;
|
|
125
|
+
id?: string;
|
|
126
|
+
}
|
|
127
|
+
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;
|
|
129
|
+
displayName: string;
|
|
130
|
+
};
|
|
131
|
+
|
|
99
132
|
declare const inputVariants: (props?: ({
|
|
100
133
|
status?: "default" | "error" | "neutral" | "loading" | "prefilled" | null | undefined;
|
|
101
134
|
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
@@ -386,8 +419,11 @@ type DrawerPropsType = {
|
|
|
386
419
|
onOpenAutoFocus?: (e: Event) => void;
|
|
387
420
|
onCloseAutoFocus?: (e: Event) => void;
|
|
388
421
|
modal?: boolean;
|
|
422
|
+
size?: "default" | "full";
|
|
423
|
+
usePortal?: boolean;
|
|
424
|
+
showOverlay?: boolean;
|
|
389
425
|
};
|
|
390
|
-
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;
|
|
391
427
|
|
|
392
428
|
type LocaleOption = {
|
|
393
429
|
key: string;
|
|
@@ -948,4 +984,4 @@ declare const TagsInput: ({ value, onChange, options, label, error, placeholder,
|
|
|
948
984
|
|
|
949
985
|
declare function cn(...inputs: ClassValue[]): string;
|
|
950
986
|
|
|
951
|
-
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, 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 };
|
|
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
|
@@ -5,6 +5,7 @@ import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
|
|
5
5
|
import * as LabelPrimitive from '@radix-ui/react-label';
|
|
6
6
|
import * as class_variance_authority_dist_types from 'class-variance-authority/dist/types';
|
|
7
7
|
import { VariantProps } from 'class-variance-authority';
|
|
8
|
+
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
8
9
|
import * as RPNInput from 'react-phone-number-input';
|
|
9
10
|
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
10
11
|
import { DialogCloseProps } from '@radix-ui/react-dialog';
|
|
@@ -96,6 +97,38 @@ interface ButtonProps extends DetailedHTMLProps<ButtonHTMLAttributes<HTMLButtonE
|
|
|
96
97
|
}
|
|
97
98
|
declare const Button: React$1.ForwardRefExoticComponent<Omit<ButtonProps, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
98
99
|
|
|
100
|
+
type SplitButtonSize = VariantProps<typeof buttonVariants>["size"];
|
|
101
|
+
type SplitButtonItem = {
|
|
102
|
+
value?: string;
|
|
103
|
+
label: React$1.ReactNode;
|
|
104
|
+
icon?: React$1.ReactNode;
|
|
105
|
+
onSelect?: () => void;
|
|
106
|
+
disabled?: boolean;
|
|
107
|
+
destructive?: boolean;
|
|
108
|
+
separatorBefore?: boolean;
|
|
109
|
+
};
|
|
110
|
+
interface SplitButtonProps extends Omit<React$1.ButtonHTMLAttributes<HTMLButtonElement>, "onSelect"> {
|
|
111
|
+
items: SplitButtonItem[];
|
|
112
|
+
variant?: ButtonVariant;
|
|
113
|
+
size?: SplitButtonSize;
|
|
114
|
+
isLoading?: boolean;
|
|
115
|
+
leftNode?: React$1.ReactNode;
|
|
116
|
+
menuAlign?: DropdownMenuPrimitive.DropdownMenuContentProps["align"];
|
|
117
|
+
menuSide?: DropdownMenuPrimitive.DropdownMenuContentProps["side"];
|
|
118
|
+
menuTriggerLabel?: string;
|
|
119
|
+
buttonClassName?: string;
|
|
120
|
+
triggerClassName?: string;
|
|
121
|
+
contentClassName?: string;
|
|
122
|
+
open?: boolean;
|
|
123
|
+
onOpenChange?: (open: boolean) => void;
|
|
124
|
+
modal?: boolean;
|
|
125
|
+
id?: string;
|
|
126
|
+
}
|
|
127
|
+
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;
|
|
129
|
+
displayName: string;
|
|
130
|
+
};
|
|
131
|
+
|
|
99
132
|
declare const inputVariants: (props?: ({
|
|
100
133
|
status?: "default" | "error" | "neutral" | "loading" | "prefilled" | null | undefined;
|
|
101
134
|
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
@@ -386,8 +419,11 @@ type DrawerPropsType = {
|
|
|
386
419
|
onOpenAutoFocus?: (e: Event) => void;
|
|
387
420
|
onCloseAutoFocus?: (e: Event) => void;
|
|
388
421
|
modal?: boolean;
|
|
422
|
+
size?: "default" | "full";
|
|
423
|
+
usePortal?: boolean;
|
|
424
|
+
showOverlay?: boolean;
|
|
389
425
|
};
|
|
390
|
-
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;
|
|
391
427
|
|
|
392
428
|
type LocaleOption = {
|
|
393
429
|
key: string;
|
|
@@ -948,4 +984,4 @@ declare const TagsInput: ({ value, onChange, options, label, error, placeholder,
|
|
|
948
984
|
|
|
949
985
|
declare function cn(...inputs: ClassValue[]): string;
|
|
950
986
|
|
|
951
|
-
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, 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 };
|
|
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 };
|