@6thbridge/hexa 0.0.67 → 0.0.69

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 CHANGED
@@ -57,6 +57,7 @@ declare const buttonVariants: (props?: ({
57
57
  variant?: "primary" | "danger" | "neutral" | "outlined" | "danger-outlined" | "light-outlined" | "dark-text" | "light" | null | undefined;
58
58
  size?: "default" | "sm" | "lg" | "md" | "icon-sm" | "icon" | "icon-lg" | null | undefined;
59
59
  } & class_variance_authority_dist_types.ClassProp) | undefined) => string;
60
+ type ButtonVariant = VariantProps<typeof buttonVariants>["variant"];
60
61
  interface ButtonProps extends DetailedHTMLProps<ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, VariantProps<typeof buttonVariants> {
61
62
  asChild?: boolean;
62
63
  isLoading?: boolean;
@@ -444,6 +445,21 @@ type FilterContentProps = {
444
445
  };
445
446
  type FilterListOptions = FilterListItem[];
446
447
 
448
+ type RowAction = {
449
+ icon: React__default.ReactNode;
450
+ label: React__default.ReactNode;
451
+ onClick: (rowIds: string[]) => void;
452
+ className?: string;
453
+ variant?: ButtonVariant;
454
+ disabled?: boolean;
455
+ showCount?: boolean;
456
+ };
457
+ type TableBulkRowActionsProps = {
458
+ tableBulkActions: RowAction[];
459
+ selectedRows: string[];
460
+ isMobile?: boolean;
461
+ };
462
+
447
463
  type TableSearchProps = {
448
464
  enabled: boolean;
449
465
  debounceRate?: number;
@@ -485,8 +501,12 @@ type TableProps<T extends RowData> = {
485
501
  search?: TableSearchProps;
486
502
  table: Table$1<T>;
487
503
  onFilterChange?: (values: Record<string, any>) => void;
504
+ tableBulkActions?: {
505
+ actions: TableBulkRowActionsProps["tableBulkActions"];
506
+ selectedRows?: TableBulkRowActionsProps["selectedRows"];
507
+ };
488
508
  };
489
- declare const Table: <T extends RowData>({ table, isMobile, onRowClick, id, onRefetch, isRefetching, FilterMenu, ExtraNode, onExport, search, download, isLoading, pagination, filterListOptions, setAppliedFilters, onFilterChange, }: TableProps<T>) => react_jsx_runtime.JSX.Element;
509
+ declare const Table: <T extends RowData>({ table, isMobile, onRowClick, id, onRefetch, isRefetching, FilterMenu, ExtraNode, onExport, search, download, isLoading, pagination, filterListOptions, setAppliedFilters, onFilterChange, tableBulkActions, }: TableProps<T>) => react_jsx_runtime.JSX.Element;
490
510
 
491
511
  type PageDataToolbarProps = {
492
512
  onRefetch?: () => void;
@@ -615,4 +635,4 @@ declare class DateAction {
615
635
 
616
636
  declare function cn(...inputs: ClassValue[]): string;
617
637
 
618
- export { AmountAction, Banner, Button, CalendarInput, CopyableLabel, Country, CurrencySymbolMap, DateAction, DebouncedInput, DevBanner, Dialog, Drawer, DrawerClose, type DrawerPropsType, DrawerRoot, type FilterListItem, type FilterListOptions, FilterPopover, FlagComponent, FormLabel, type FormatCurrencyOptions, HasResourcePermission, Input, Loader, LocaleSelector, OTPInput, PageDataToolbar, Pagination, PasswordInput, PermissionsContext, PermissionsProvider, PhoneInput, Popover, PopoverContent, PopoverRoot, PopoverTrigger, RadioGroup, RadioGroupItem, type ResourcePermission, type ResourcePermissionProps, type ResourcePermissions, ScrollArea, Select, Sidebar, Status, Table, type TablePaginationProps, TextOverflow, type TextOverflowProps, Textarea, Tooltip, TooltipContent, TooltipProvider, TooltipRoot, TooltipTrigger, buttonVariants, cn, useFilterStore, useHasPermission, usePermissions };
638
+ export { AmountAction, Banner, Button, CalendarInput, CopyableLabel, Country, CurrencySymbolMap, DateAction, DebouncedInput, DevBanner, Dialog, Drawer, DrawerClose, type DrawerPropsType, DrawerRoot, type FilterListItem, type FilterListOptions, FilterPopover, FlagComponent, FormLabel, type FormatCurrencyOptions, HasResourcePermission, Input, Loader, LocaleSelector, OTPInput, PageDataToolbar, Pagination, PasswordInput, PermissionsContext, PermissionsProvider, PhoneInput, Popover, PopoverContent, PopoverRoot, PopoverTrigger, RadioGroup, RadioGroupItem, type ResourcePermission, type ResourcePermissionProps, type ResourcePermissions, ScrollArea, Select, Sidebar, Status, Table, type TableBulkRowActionsProps, type TablePaginationProps, TextOverflow, type TextOverflowProps, Textarea, Tooltip, TooltipContent, TooltipProvider, TooltipRoot, TooltipTrigger, buttonVariants, cn, useFilterStore, useHasPermission, usePermissions };
package/dist/index.d.ts CHANGED
@@ -57,6 +57,7 @@ declare const buttonVariants: (props?: ({
57
57
  variant?: "primary" | "danger" | "neutral" | "outlined" | "danger-outlined" | "light-outlined" | "dark-text" | "light" | null | undefined;
58
58
  size?: "default" | "sm" | "lg" | "md" | "icon-sm" | "icon" | "icon-lg" | null | undefined;
59
59
  } & class_variance_authority_dist_types.ClassProp) | undefined) => string;
60
+ type ButtonVariant = VariantProps<typeof buttonVariants>["variant"];
60
61
  interface ButtonProps extends DetailedHTMLProps<ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, VariantProps<typeof buttonVariants> {
61
62
  asChild?: boolean;
62
63
  isLoading?: boolean;
@@ -444,6 +445,21 @@ type FilterContentProps = {
444
445
  };
445
446
  type FilterListOptions = FilterListItem[];
446
447
 
448
+ type RowAction = {
449
+ icon: React__default.ReactNode;
450
+ label: React__default.ReactNode;
451
+ onClick: (rowIds: string[]) => void;
452
+ className?: string;
453
+ variant?: ButtonVariant;
454
+ disabled?: boolean;
455
+ showCount?: boolean;
456
+ };
457
+ type TableBulkRowActionsProps = {
458
+ tableBulkActions: RowAction[];
459
+ selectedRows: string[];
460
+ isMobile?: boolean;
461
+ };
462
+
447
463
  type TableSearchProps = {
448
464
  enabled: boolean;
449
465
  debounceRate?: number;
@@ -485,8 +501,12 @@ type TableProps<T extends RowData> = {
485
501
  search?: TableSearchProps;
486
502
  table: Table$1<T>;
487
503
  onFilterChange?: (values: Record<string, any>) => void;
504
+ tableBulkActions?: {
505
+ actions: TableBulkRowActionsProps["tableBulkActions"];
506
+ selectedRows?: TableBulkRowActionsProps["selectedRows"];
507
+ };
488
508
  };
489
- declare const Table: <T extends RowData>({ table, isMobile, onRowClick, id, onRefetch, isRefetching, FilterMenu, ExtraNode, onExport, search, download, isLoading, pagination, filterListOptions, setAppliedFilters, onFilterChange, }: TableProps<T>) => react_jsx_runtime.JSX.Element;
509
+ declare const Table: <T extends RowData>({ table, isMobile, onRowClick, id, onRefetch, isRefetching, FilterMenu, ExtraNode, onExport, search, download, isLoading, pagination, filterListOptions, setAppliedFilters, onFilterChange, tableBulkActions, }: TableProps<T>) => react_jsx_runtime.JSX.Element;
490
510
 
491
511
  type PageDataToolbarProps = {
492
512
  onRefetch?: () => void;
@@ -615,4 +635,4 @@ declare class DateAction {
615
635
 
616
636
  declare function cn(...inputs: ClassValue[]): string;
617
637
 
618
- export { AmountAction, Banner, Button, CalendarInput, CopyableLabel, Country, CurrencySymbolMap, DateAction, DebouncedInput, DevBanner, Dialog, Drawer, DrawerClose, type DrawerPropsType, DrawerRoot, type FilterListItem, type FilterListOptions, FilterPopover, FlagComponent, FormLabel, type FormatCurrencyOptions, HasResourcePermission, Input, Loader, LocaleSelector, OTPInput, PageDataToolbar, Pagination, PasswordInput, PermissionsContext, PermissionsProvider, PhoneInput, Popover, PopoverContent, PopoverRoot, PopoverTrigger, RadioGroup, RadioGroupItem, type ResourcePermission, type ResourcePermissionProps, type ResourcePermissions, ScrollArea, Select, Sidebar, Status, Table, type TablePaginationProps, TextOverflow, type TextOverflowProps, Textarea, Tooltip, TooltipContent, TooltipProvider, TooltipRoot, TooltipTrigger, buttonVariants, cn, useFilterStore, useHasPermission, usePermissions };
638
+ export { AmountAction, Banner, Button, CalendarInput, CopyableLabel, Country, CurrencySymbolMap, DateAction, DebouncedInput, DevBanner, Dialog, Drawer, DrawerClose, type DrawerPropsType, DrawerRoot, type FilterListItem, type FilterListOptions, FilterPopover, FlagComponent, FormLabel, type FormatCurrencyOptions, HasResourcePermission, Input, Loader, LocaleSelector, OTPInput, PageDataToolbar, Pagination, PasswordInput, PermissionsContext, PermissionsProvider, PhoneInput, Popover, PopoverContent, PopoverRoot, PopoverTrigger, RadioGroup, RadioGroupItem, type ResourcePermission, type ResourcePermissionProps, type ResourcePermissions, ScrollArea, Select, Sidebar, Status, Table, type TableBulkRowActionsProps, type TablePaginationProps, TextOverflow, type TextOverflowProps, Textarea, Tooltip, TooltipContent, TooltipProvider, TooltipRoot, TooltipTrigger, buttonVariants, cn, useFilterStore, useHasPermission, usePermissions };