@6thbridge/hexa 0.0.0-pr34-19 → 0.0.0-pr36-21
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 +14 -3
- package/dist/index.d.ts +14 -3
- 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 +2 -2
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
@@ -13,6 +13,7 @@ import * as PopoverPrimitive from '@radix-ui/react-popover';
|
|
13
13
|
import { Drawer as Drawer$1 } from 'vaul';
|
14
14
|
import { RowData, Row, Table as Table$1 } from '@tanstack/react-table';
|
15
15
|
import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
|
16
|
+
import * as zustand from 'zustand';
|
16
17
|
import * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area';
|
17
18
|
import dayjs from 'dayjs';
|
18
19
|
import { ClassValue } from 'clsx';
|
@@ -438,6 +439,7 @@ type FilterContentProps = {
|
|
438
439
|
filters: FilterListItem[];
|
439
440
|
values?: Record<string, any>;
|
440
441
|
setAppliedFilters?: (values: Record<string, any>) => void;
|
442
|
+
onChange?: (values: Record<string, any>) => void;
|
441
443
|
id?: string;
|
442
444
|
};
|
443
445
|
type FilterListOptions = FilterListItem[];
|
@@ -494,10 +496,11 @@ type PageDataToolbarProps = {
|
|
494
496
|
download?: TableDownloadProps;
|
495
497
|
isRefetching?: boolean;
|
496
498
|
setAppliedFilters?: (values: Record<string, any>) => void;
|
499
|
+
onFilterChange?: (values: Record<string, any>) => void;
|
497
500
|
filterListOptions?: FilterListItem[];
|
498
501
|
id?: string;
|
499
502
|
};
|
500
|
-
declare const PageDataToolbar: ({ onRefetch, search, FilterMenu, ExtraNode, onExport, download, isRefetching, filterListOptions, setAppliedFilters, id, }: PageDataToolbarProps) => react_jsx_runtime.JSX.Element;
|
503
|
+
declare const PageDataToolbar: ({ onRefetch, search, FilterMenu, ExtraNode, onExport, download, isRefetching, filterListOptions, setAppliedFilters, onFilterChange, id, }: PageDataToolbarProps) => react_jsx_runtime.JSX.Element;
|
501
504
|
|
502
505
|
type ResourcePermission = {
|
503
506
|
resource: string;
|
@@ -553,8 +556,16 @@ type FilterPopoverProps = FilterContentProps & {
|
|
553
556
|
isOpen?: boolean;
|
554
557
|
trigger?: ReactNode;
|
555
558
|
id?: string;
|
559
|
+
onChange?: (values: Record<string, any>) => void;
|
556
560
|
};
|
557
|
-
declare const FilterPopover: ({ filters, setAppliedFilters, isOpen, id, }: FilterPopoverProps) => react_jsx_runtime.JSX.Element | null;
|
561
|
+
declare const FilterPopover: ({ filters, setAppliedFilters, isOpen, onChange, id, }: FilterPopoverProps) => react_jsx_runtime.JSX.Element | null;
|
562
|
+
|
563
|
+
interface FilterSliceType {
|
564
|
+
filters: Record<string, any> | null;
|
565
|
+
upDateFilter: (items: Record<string, any> | ((prev: Record<string, any> | null) => Record<string, any> | null) | null) => void;
|
566
|
+
resetFilters: () => void;
|
567
|
+
}
|
568
|
+
declare const useFilterStore: () => zustand.UseBoundStore<zustand.StoreApi<FilterSliceType>>;
|
558
569
|
|
559
570
|
interface TextOverflowProps extends React__default.HTMLAttributes<HTMLElement> {
|
560
571
|
children: React__default.ReactNode;
|
@@ -603,4 +614,4 @@ declare class DateAction {
|
|
603
614
|
|
604
615
|
declare function cn(...inputs: ClassValue[]): string;
|
605
616
|
|
606
|
-
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, useHasPermission, usePermissions };
|
617
|
+
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 };
|
package/dist/index.d.ts
CHANGED
@@ -13,6 +13,7 @@ import * as PopoverPrimitive from '@radix-ui/react-popover';
|
|
13
13
|
import { Drawer as Drawer$1 } from 'vaul';
|
14
14
|
import { RowData, Row, Table as Table$1 } from '@tanstack/react-table';
|
15
15
|
import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
|
16
|
+
import * as zustand from 'zustand';
|
16
17
|
import * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area';
|
17
18
|
import dayjs from 'dayjs';
|
18
19
|
import { ClassValue } from 'clsx';
|
@@ -438,6 +439,7 @@ type FilterContentProps = {
|
|
438
439
|
filters: FilterListItem[];
|
439
440
|
values?: Record<string, any>;
|
440
441
|
setAppliedFilters?: (values: Record<string, any>) => void;
|
442
|
+
onChange?: (values: Record<string, any>) => void;
|
441
443
|
id?: string;
|
442
444
|
};
|
443
445
|
type FilterListOptions = FilterListItem[];
|
@@ -494,10 +496,11 @@ type PageDataToolbarProps = {
|
|
494
496
|
download?: TableDownloadProps;
|
495
497
|
isRefetching?: boolean;
|
496
498
|
setAppliedFilters?: (values: Record<string, any>) => void;
|
499
|
+
onFilterChange?: (values: Record<string, any>) => void;
|
497
500
|
filterListOptions?: FilterListItem[];
|
498
501
|
id?: string;
|
499
502
|
};
|
500
|
-
declare const PageDataToolbar: ({ onRefetch, search, FilterMenu, ExtraNode, onExport, download, isRefetching, filterListOptions, setAppliedFilters, id, }: PageDataToolbarProps) => react_jsx_runtime.JSX.Element;
|
503
|
+
declare const PageDataToolbar: ({ onRefetch, search, FilterMenu, ExtraNode, onExport, download, isRefetching, filterListOptions, setAppliedFilters, onFilterChange, id, }: PageDataToolbarProps) => react_jsx_runtime.JSX.Element;
|
501
504
|
|
502
505
|
type ResourcePermission = {
|
503
506
|
resource: string;
|
@@ -553,8 +556,16 @@ type FilterPopoverProps = FilterContentProps & {
|
|
553
556
|
isOpen?: boolean;
|
554
557
|
trigger?: ReactNode;
|
555
558
|
id?: string;
|
559
|
+
onChange?: (values: Record<string, any>) => void;
|
556
560
|
};
|
557
|
-
declare const FilterPopover: ({ filters, setAppliedFilters, isOpen, id, }: FilterPopoverProps) => react_jsx_runtime.JSX.Element | null;
|
561
|
+
declare const FilterPopover: ({ filters, setAppliedFilters, isOpen, onChange, id, }: FilterPopoverProps) => react_jsx_runtime.JSX.Element | null;
|
562
|
+
|
563
|
+
interface FilterSliceType {
|
564
|
+
filters: Record<string, any> | null;
|
565
|
+
upDateFilter: (items: Record<string, any> | ((prev: Record<string, any> | null) => Record<string, any> | null) | null) => void;
|
566
|
+
resetFilters: () => void;
|
567
|
+
}
|
568
|
+
declare const useFilterStore: () => zustand.UseBoundStore<zustand.StoreApi<FilterSliceType>>;
|
558
569
|
|
559
570
|
interface TextOverflowProps extends React__default.HTMLAttributes<HTMLElement> {
|
560
571
|
children: React__default.ReactNode;
|
@@ -603,4 +614,4 @@ declare class DateAction {
|
|
603
614
|
|
604
615
|
declare function cn(...inputs: ClassValue[]): string;
|
605
616
|
|
606
|
-
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, useHasPermission, usePermissions };
|
617
|
+
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 };
|