@sustaina/shared-ui 1.40.4 → 1.42.0

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
@@ -8,6 +8,7 @@ import { VariantProps } from 'class-variance-authority';
8
8
  import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
9
9
  import * as CollapsiblePrimitive from '@radix-ui/react-collapsible';
10
10
  import { Header, RowData as RowData$1, Column as Column$1, Table as Table$1, ColumnDef, ColumnFiltersState, OnChangeFn, FilterFnOption, SortingState, ColumnOrderState, VisibilityState, ColumnPinningState, GroupingState, GroupingOptions, ColumnResizeMode, RowSelectionState, Row, ExpandedState, Cell, HeaderGroup, HeaderContext } from '@tanstack/react-table';
11
+ import { Virtualizer as Virtualizer$1 } from '@tanstack/react-virtual';
11
12
  import * as DialogPrimitive from '@radix-ui/react-dialog';
12
13
  import { DialogContentProps as DialogContentProps$1 } from '@radix-ui/react-dialog';
13
14
  import { Resource } from 'i18next';
@@ -176,10 +177,10 @@ declare function TableHead({ className, ...props }: React$1.ComponentProps<"th">
176
177
  declare function TableCell({ className, ...props }: React$1.ComponentProps<"td">): react_jsx_runtime.JSX.Element;
177
178
  declare function TableCaption({ className, ...props }: React$1.ComponentProps<"caption">): react_jsx_runtime.JSX.Element;
178
179
 
179
- type ColumnResizerProps = {
180
- header: Header<any, any>;
181
- className?: string;
182
- style?: CSSProperties;
180
+ type ContentSlot = {
181
+ content?: React__default.ReactNode;
182
+ icon?: React__default.ReactNode;
183
+ wrapperProps?: React__default.ComponentProps<"div">;
183
184
  };
184
185
 
185
186
  type ColumnSeparatorProps = {
@@ -188,10 +189,10 @@ type ColumnSeparatorProps = {
188
189
  style?: React__default.CSSProperties;
189
190
  };
190
191
 
191
- type ContentSlot = {
192
- content?: React__default.ReactNode;
193
- icon?: React__default.ReactNode;
194
- wrapperProps?: React__default.ComponentProps<"div">;
192
+ type ColumnResizerProps = {
193
+ header: Header<any, any>;
194
+ className?: string;
195
+ style?: CSSProperties;
195
196
  };
196
197
 
197
198
  type DataTableColumnFilterProps<TData extends RowData$1> = {
@@ -265,6 +266,11 @@ type DataTableRowExpansion<TData extends RowData$1> = {
265
266
  isRowExpanded?: (row: Row<TData>) => boolean;
266
267
  canRowExpand?: (row: Row<TData>) => boolean;
267
268
  };
269
+ type DataTableVirtual = {
270
+ enabled: boolean;
271
+ overscan?: number;
272
+ };
273
+ type Virtualizer = Virtualizer$1<HTMLDivElement, Element>;
268
274
  type DataTableColumnGrouping = {
269
275
  manual?: boolean;
270
276
  enabled: boolean;
@@ -376,6 +382,7 @@ type DataTableProps<TData extends RowData$1> = {
376
382
  columnResizing?: DatatableColumnResizing;
377
383
  rowSelection?: DataTableRowSelection<TData>;
378
384
  rowExpansion?: DataTableRowExpansion<TData>;
385
+ virtual?: DataTableVirtual;
379
386
  scrollFetch?: DataTableScrollFetch;
380
387
  components?: DataTableComponentProps<TData>;
381
388
  activeStatusContent?: (StatusContentKey | null) | ((info: {
@@ -383,13 +390,14 @@ type DataTableProps<TData extends RowData$1> = {
383
390
  }) => StatusContentKey | null);
384
391
  statusContent?: DataTableStatusContent;
385
392
  tableRef?: React__default.RefObject<Table$1<TData> | null>;
393
+ virtualizerRef?: React__default.RefObject<Virtualizer>;
386
394
  isInitialLoading?: boolean;
387
395
  debug?: boolean;
388
396
  rowIdKey?: DataTableRowIdKeyHandler<TData>;
389
397
  childrenKey?: DataTableChildrenKeyHandler<TData>;
390
398
  onRowClick?: DataTableRowClickHandler<TData>;
391
399
  };
392
- declare const DataTable: <TData extends RowData$1>({ tableRef, isInitialLoading, columns, data, filters, sorting, columnOrder, columnVisibility, columnPinning, columnGrouping, columnResizing, rowSelection, rowExpansion, scrollFetch, activeStatusContent, statusContent, rowIdKey, childrenKey, onRowClick, debug, components }: DataTableProps<TData>) => react_jsx_runtime.JSX.Element;
400
+ declare const DataTable: <TData extends RowData$1>({ tableRef, virtualizerRef, isInitialLoading, columns, data, filters, sorting, columnOrder, columnVisibility, columnPinning, columnGrouping, columnResizing, rowSelection, rowExpansion, virtual, scrollFetch, activeStatusContent, statusContent, rowIdKey, childrenKey, onRowClick, debug, components }: DataTableProps<TData>) => react_jsx_runtime.JSX.Element;
393
401
 
394
402
  declare module "@tanstack/react-table" {
395
403
  interface ColumnMeta<TData extends RowData> {
@@ -1171,7 +1179,7 @@ type TextareaProps = React$1.ComponentProps<"textarea"> & {
1171
1179
  declare function Textarea({ className, autoResize, ...props }: TextareaProps): react_jsx_runtime.JSX.Element;
1172
1180
 
1173
1181
  declare function TooltipProvider$1({ delayDuration, ...props }: React$1.ComponentProps<typeof TooltipPrimitive.Provider>): react_jsx_runtime.JSX.Element;
1174
- declare function Tooltip$1({ ...props }: React$1.ComponentProps<typeof TooltipPrimitive.Root>): react_jsx_runtime.JSX.Element;
1182
+ declare function Tooltip$1({ children, ...props }: React$1.ComponentProps<typeof TooltipPrimitive.Root>): react_jsx_runtime.JSX.Element;
1175
1183
  declare function TooltipTrigger$1({ ...props }: React$1.ComponentProps<typeof TooltipPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
1176
1184
  declare function TooltipContent$1({ className, arrowClassName, sideOffset, children, ...props }: React$1.ComponentProps<typeof TooltipPrimitive.Content> & {
1177
1185
  arrowClassName?: string;
@@ -1473,6 +1481,7 @@ interface ActionButtonProps {
1473
1481
  label: string;
1474
1482
  onPress?: (id?: any) => void;
1475
1483
  requiredPermission?: PermissionString | string;
1484
+ disabled?: boolean;
1476
1485
  }
1477
1486
  type ActionMenuProps = {
1478
1487
  id: any;
@@ -1726,6 +1735,12 @@ declare const useControllableState: <T = any>({ defaultValue, value }: UseContro
1726
1735
 
1727
1736
  declare const useIsomorphicLayoutEffect: typeof useEffect;
1728
1737
 
1738
+ type UseBindRefProps<T> = {
1739
+ ref?: React$1.RefObject<T | null>;
1740
+ value: T;
1741
+ };
1742
+ declare const useBindRef: <T>({ ref, value }: UseBindRefProps<T>) => void;
1743
+
1729
1744
  type ExtractObjects<T> = T extends infer U ? U extends object ? U : never : never;
1730
1745
  type BrowserNativeObject = Date | FileList | File | null;
1731
1746
  type EmptyObject = {
@@ -1738,4 +1753,4 @@ type DeepPartialNullish<T> = T extends BrowserNativeObject ? T | null : {
1738
1753
  [K in keyof T]?: ExtractObjects<T[K]> extends never ? T[K] | null : DeepPartialNullish<T[K]> | null;
1739
1754
  };
1740
1755
 
1741
- export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, type ActionButtonProps, ActionMenu, type ActionMenuProps, AdministrationIcon, AdvanceSearch, AnalyticsIcon, ApplicationLogIcon, ArrowIcon, AuditFooter, type AuditFooterProps, type Breakpoints, type BrowserNativeObject, Button, Checkbox, Collapsible, CollapsibleContent, CollapsibleTrigger, type Column, Combobox, type ComboboxProps, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, type CroppedImagePayload, type CroppedImagePayloadWithBlobUrl, CropperModal, CropperModalError, type CropperModalErrorType, type CropperModalProps, CustomActionStatusIcon, CustomFieldIcon, DIALOG_ALERT_I18N_SUBNAMESPACE, DIALOG_ALERT_TEMPLATES, DashboardIcon, DataEntryIcon, DataTable, type DataTableChildrenKeyHandler, type DataTableColumnFilter, type DataTableColumnFilterProps, type DataTableColumnGrouping, type DataTableColumnOrdering, type DataTableColumnPinning, type DataTableColumnSeparatorProps, type DataTableColumnSorting, type DataTableColumnVisibility, type DataTableComponentProps, type DataTableFilterConfig, type DataTableFilters, type DataTableGlobalFilter, type DataTableHeaderCell, type DataTableProps, type DataTableRenderHeaderHandler, type DataTableRenderHeaderProps, type DataTableRenderRowHandler, type DataTableRenderRowProps, type DataTableRowCell, type DataTableRowClickHandler, type DataTableRowExpansion, type DataTableRowIdKeyHandler, type DataTableRowSelection, type DataTableScrollFetch, type DataTableStatusContent, type DatatableColumnResizing, DatePicker, type DatePickerProps, type DebounceOptions, type DebouncedFunction, DecreaseIcon, type DeepPartial, type DeepPartialNullish, Dialog$1 as Dialog, DialogAlert, type DialogAlertI18nResource, type DialogAlertProps, DialogAlertProvider, type DialogAlertTemplateUnit, type DialogAlertTemplates, DialogContent, type DialogContentProps, DialogDescription, DialogFooter, DialogTitle, DialogTrigger, type DialogVariant, type DraftGuardState, type DraftSource, type EllipsisConfig, type EmptyObject, ErrorCompression, ErrorCreateCanvas, ErrorGeneratingBlob, ErrorInvalidSVG, ErrorSVGExceedSize, type ExtractObjects, type FieldSchema, type FieldType, FiltersIcon, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, FormulaEditor, type FormulaEditorProps, type FormulaOperator, type FormulaTokenAttributes, type FormulaTokenConfig, type FormulaTokenSuggestion, type FormulaTokenType, type GridPayload, GridSettingsModal, type GridSettingsModalProps, HamburgerMenuIcon, HandymanIcon, HeaderCell, type HeaderCellProps, Image, type ImageLoader, type ImageLoaderProps, type ImageProps, InformationIcon, Input, type InputCustomInputProps, InputNumber, type InputNumberProps, type InputProps$1 as InputProps, Label, LookupSelect, type LookupSelectOption, type LookupSelectProps, MailIcon, MainListContainer, type MainListContainerClassNames, type MainListContainerProps, type MainListContainerSlots, ManIcon, ManagementIcon, MenuIcon, MonthPicker, type MonthPickerProps, _default as Navbar, type NavbarProps, NotFoundIcon, type OptionData, type Params, type PermissionString, PlusIcon, Popover, PopoverAnchor, PopoverArrow, PopoverContent, PopoverTrigger, PowerIcon, type PrefixMap, PreventPageLeave, QuestionIcon, RadioGroupItem, RadioGroupRoot, RadioLabel, type RawFormulaSegment, RichText, RightPanelContainer, type RightPanelContainerClassNames, type RightPanelContainerHeaderProps, type RightPanelContainerProps, type RightPanelContainerSlots, RoleIcon, type RowClickType, type RowState, type ScrollInfo, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, SetupIcon, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarLayout, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, type SorterProps, Spinner, type SpinnerProps, type StatusContentKey, SuiCalendarIcon, SuiCalendarIcon2, SuiCheckIcon, SuiDotsVerticalIcon, SuiEmptyDataIcon, SuiExpandIcon, SuiFilterIcon, SuiSettingIcon, SuiTriangleDownIcon, SuiWarningIcon, Switch, TabSelect, type TabSelectItem, type TemplateKeys, Textarea, ToolBoxIcon, Tooltip, TooltipArrow, TooltipContent, TooltipProvider, TooltipTrigger, TrashIcon, Truncated, TruncatedMouseEnterDiv, type TruncatedMouseEnterDivProps, type TruncatedProps, index as UI, type UseControllableStateOptions, type UseControllableStateResult, type UseHoverResult, type UseMediaQueryOptions, type UseMediaQueryResult, type UsePreventPageLeaveOptions, type UseScreenSizeResult, type UseTruncatedOptions, type UseTruncatedResult, UserAloneIcon, UserFriendIcon, UserIcon, VirtualizedCommand, type VirtualizedCommandFieldNames, type VirtualizedCommandOption, type VirtualizedCommandProps, booleanToSelectValue, buildPrefixMap, buttonVariants, cn, compareAlphanumeric, debounce, defaultOperatorShortcuts, defaultOperators, formatISODate, getDialogAlertControls, inputVariants$1 as inputVariants, isDefined, isEmptyObject, isValidParentheses, mapTokensToOutput, parseFormula, parseFormulaToToken, resetVisibleTableState, selectValueToBoolean, spinnerVariants, splitOperators, stripNullishObject, throttle, tokenizeFormulaString, useControllableState, useDraftGuardStore, useFormField, useGridSettingsStore, useHover, useIntersectionObserver, useIsomorphicLayoutEffect, useMediaQuery, usePreventPageLeave, usePreventPageLeaveStore, useSafeBlocker, useScreenSize, useSidebar, useTruncated, validateTokenPrefixes };
1756
+ export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, type ActionButtonProps, ActionMenu, type ActionMenuProps, AdministrationIcon, AdvanceSearch, AnalyticsIcon, ApplicationLogIcon, ArrowIcon, AuditFooter, type AuditFooterProps, type Breakpoints, type BrowserNativeObject, Button, Checkbox, Collapsible, CollapsibleContent, CollapsibleTrigger, type Column, Combobox, type ComboboxProps, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, type CroppedImagePayload, type CroppedImagePayloadWithBlobUrl, CropperModal, CropperModalError, type CropperModalErrorType, type CropperModalProps, CustomActionStatusIcon, CustomFieldIcon, DIALOG_ALERT_I18N_SUBNAMESPACE, DIALOG_ALERT_TEMPLATES, DashboardIcon, DataEntryIcon, DataTable, type DataTableChildrenKeyHandler, type DataTableColumnFilter, type DataTableColumnFilterProps, type DataTableColumnGrouping, type DataTableColumnOrdering, type DataTableColumnPinning, type DataTableColumnSeparatorProps, type DataTableColumnSorting, type DataTableColumnVisibility, type DataTableComponentProps, type DataTableFilterConfig, type DataTableFilters, type DataTableGlobalFilter, type DataTableHeaderCell, type DataTableProps, type DataTableRenderHeaderHandler, type DataTableRenderHeaderProps, type DataTableRenderRowHandler, type DataTableRenderRowProps, type DataTableRowCell, type DataTableRowClickHandler, type DataTableRowExpansion, type DataTableRowIdKeyHandler, type DataTableRowSelection, type DataTableScrollFetch, type DataTableStatusContent, type DataTableVirtual, type DatatableColumnResizing, DatePicker, type DatePickerProps, type DebounceOptions, type DebouncedFunction, DecreaseIcon, type DeepPartial, type DeepPartialNullish, Dialog$1 as Dialog, DialogAlert, type DialogAlertI18nResource, type DialogAlertProps, DialogAlertProvider, type DialogAlertTemplateUnit, type DialogAlertTemplates, DialogContent, type DialogContentProps, DialogDescription, DialogFooter, DialogTitle, DialogTrigger, type DialogVariant, type DraftGuardState, type DraftSource, type EllipsisConfig, type EmptyObject, ErrorCompression, ErrorCreateCanvas, ErrorGeneratingBlob, ErrorInvalidSVG, ErrorSVGExceedSize, type ExtractObjects, type FieldSchema, type FieldType, FiltersIcon, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, FormulaEditor, type FormulaEditorProps, type FormulaOperator, type FormulaTokenAttributes, type FormulaTokenConfig, type FormulaTokenSuggestion, type FormulaTokenType, type GridPayload, GridSettingsModal, type GridSettingsModalProps, HamburgerMenuIcon, HandymanIcon, HeaderCell, type HeaderCellProps, Image, type ImageLoader, type ImageLoaderProps, type ImageProps, InformationIcon, Input, type InputCustomInputProps, InputNumber, type InputNumberProps, type InputProps$1 as InputProps, Label, LookupSelect, type LookupSelectOption, type LookupSelectProps, MailIcon, MainListContainer, type MainListContainerClassNames, type MainListContainerProps, type MainListContainerSlots, ManIcon, ManagementIcon, MenuIcon, MonthPicker, type MonthPickerProps, _default as Navbar, type NavbarProps, NotFoundIcon, type OptionData, type Params, type PermissionString, PlusIcon, Popover, PopoverAnchor, PopoverArrow, PopoverContent, PopoverTrigger, PowerIcon, type PrefixMap, PreventPageLeave, QuestionIcon, RadioGroupItem, RadioGroupRoot, RadioLabel, type RawFormulaSegment, RichText, RightPanelContainer, type RightPanelContainerClassNames, type RightPanelContainerHeaderProps, type RightPanelContainerProps, type RightPanelContainerSlots, RoleIcon, type RowClickType, type RowState, type ScrollInfo, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, SetupIcon, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarLayout, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, type SorterProps, Spinner, type SpinnerProps, type StatusContentKey, SuiCalendarIcon, SuiCalendarIcon2, SuiCheckIcon, SuiDotsVerticalIcon, SuiEmptyDataIcon, SuiExpandIcon, SuiFilterIcon, SuiSettingIcon, SuiTriangleDownIcon, SuiWarningIcon, Switch, TabSelect, type TabSelectItem, type TemplateKeys, Textarea, ToolBoxIcon, Tooltip, TooltipArrow, TooltipContent, TooltipProvider, TooltipTrigger, TrashIcon, Truncated, TruncatedMouseEnterDiv, type TruncatedMouseEnterDivProps, type TruncatedProps, index as UI, type UseBindRefProps, type UseControllableStateOptions, type UseControllableStateResult, type UseHoverResult, type UseMediaQueryOptions, type UseMediaQueryResult, type UsePreventPageLeaveOptions, type UseScreenSizeResult, type UseTruncatedOptions, type UseTruncatedResult, UserAloneIcon, UserFriendIcon, UserIcon, VirtualizedCommand, type VirtualizedCommandFieldNames, type VirtualizedCommandOption, type VirtualizedCommandProps, type Virtualizer, booleanToSelectValue, buildPrefixMap, buttonVariants, cn, compareAlphanumeric, debounce, defaultOperatorShortcuts, defaultOperators, formatISODate, getDialogAlertControls, inputVariants$1 as inputVariants, isDefined, isEmptyObject, isValidParentheses, mapTokensToOutput, parseFormula, parseFormulaToToken, resetVisibleTableState, selectValueToBoolean, spinnerVariants, splitOperators, stripNullishObject, throttle, tokenizeFormulaString, useBindRef, useControllableState, useDraftGuardStore, useFormField, useGridSettingsStore, useHover, useIntersectionObserver, useIsomorphicLayoutEffect, useMediaQuery, usePreventPageLeave, usePreventPageLeaveStore, useSafeBlocker, useScreenSize, useSidebar, useTruncated, validateTokenPrefixes };
package/dist/index.d.ts CHANGED
@@ -8,6 +8,7 @@ import { VariantProps } from 'class-variance-authority';
8
8
  import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
9
9
  import * as CollapsiblePrimitive from '@radix-ui/react-collapsible';
10
10
  import { Header, RowData as RowData$1, Column as Column$1, Table as Table$1, ColumnDef, ColumnFiltersState, OnChangeFn, FilterFnOption, SortingState, ColumnOrderState, VisibilityState, ColumnPinningState, GroupingState, GroupingOptions, ColumnResizeMode, RowSelectionState, Row, ExpandedState, Cell, HeaderGroup, HeaderContext } from '@tanstack/react-table';
11
+ import { Virtualizer as Virtualizer$1 } from '@tanstack/react-virtual';
11
12
  import * as DialogPrimitive from '@radix-ui/react-dialog';
12
13
  import { DialogContentProps as DialogContentProps$1 } from '@radix-ui/react-dialog';
13
14
  import { Resource } from 'i18next';
@@ -176,10 +177,10 @@ declare function TableHead({ className, ...props }: React$1.ComponentProps<"th">
176
177
  declare function TableCell({ className, ...props }: React$1.ComponentProps<"td">): react_jsx_runtime.JSX.Element;
177
178
  declare function TableCaption({ className, ...props }: React$1.ComponentProps<"caption">): react_jsx_runtime.JSX.Element;
178
179
 
179
- type ColumnResizerProps = {
180
- header: Header<any, any>;
181
- className?: string;
182
- style?: CSSProperties;
180
+ type ContentSlot = {
181
+ content?: React__default.ReactNode;
182
+ icon?: React__default.ReactNode;
183
+ wrapperProps?: React__default.ComponentProps<"div">;
183
184
  };
184
185
 
185
186
  type ColumnSeparatorProps = {
@@ -188,10 +189,10 @@ type ColumnSeparatorProps = {
188
189
  style?: React__default.CSSProperties;
189
190
  };
190
191
 
191
- type ContentSlot = {
192
- content?: React__default.ReactNode;
193
- icon?: React__default.ReactNode;
194
- wrapperProps?: React__default.ComponentProps<"div">;
192
+ type ColumnResizerProps = {
193
+ header: Header<any, any>;
194
+ className?: string;
195
+ style?: CSSProperties;
195
196
  };
196
197
 
197
198
  type DataTableColumnFilterProps<TData extends RowData$1> = {
@@ -265,6 +266,11 @@ type DataTableRowExpansion<TData extends RowData$1> = {
265
266
  isRowExpanded?: (row: Row<TData>) => boolean;
266
267
  canRowExpand?: (row: Row<TData>) => boolean;
267
268
  };
269
+ type DataTableVirtual = {
270
+ enabled: boolean;
271
+ overscan?: number;
272
+ };
273
+ type Virtualizer = Virtualizer$1<HTMLDivElement, Element>;
268
274
  type DataTableColumnGrouping = {
269
275
  manual?: boolean;
270
276
  enabled: boolean;
@@ -376,6 +382,7 @@ type DataTableProps<TData extends RowData$1> = {
376
382
  columnResizing?: DatatableColumnResizing;
377
383
  rowSelection?: DataTableRowSelection<TData>;
378
384
  rowExpansion?: DataTableRowExpansion<TData>;
385
+ virtual?: DataTableVirtual;
379
386
  scrollFetch?: DataTableScrollFetch;
380
387
  components?: DataTableComponentProps<TData>;
381
388
  activeStatusContent?: (StatusContentKey | null) | ((info: {
@@ -383,13 +390,14 @@ type DataTableProps<TData extends RowData$1> = {
383
390
  }) => StatusContentKey | null);
384
391
  statusContent?: DataTableStatusContent;
385
392
  tableRef?: React__default.RefObject<Table$1<TData> | null>;
393
+ virtualizerRef?: React__default.RefObject<Virtualizer>;
386
394
  isInitialLoading?: boolean;
387
395
  debug?: boolean;
388
396
  rowIdKey?: DataTableRowIdKeyHandler<TData>;
389
397
  childrenKey?: DataTableChildrenKeyHandler<TData>;
390
398
  onRowClick?: DataTableRowClickHandler<TData>;
391
399
  };
392
- declare const DataTable: <TData extends RowData$1>({ tableRef, isInitialLoading, columns, data, filters, sorting, columnOrder, columnVisibility, columnPinning, columnGrouping, columnResizing, rowSelection, rowExpansion, scrollFetch, activeStatusContent, statusContent, rowIdKey, childrenKey, onRowClick, debug, components }: DataTableProps<TData>) => react_jsx_runtime.JSX.Element;
400
+ declare const DataTable: <TData extends RowData$1>({ tableRef, virtualizerRef, isInitialLoading, columns, data, filters, sorting, columnOrder, columnVisibility, columnPinning, columnGrouping, columnResizing, rowSelection, rowExpansion, virtual, scrollFetch, activeStatusContent, statusContent, rowIdKey, childrenKey, onRowClick, debug, components }: DataTableProps<TData>) => react_jsx_runtime.JSX.Element;
393
401
 
394
402
  declare module "@tanstack/react-table" {
395
403
  interface ColumnMeta<TData extends RowData> {
@@ -1171,7 +1179,7 @@ type TextareaProps = React$1.ComponentProps<"textarea"> & {
1171
1179
  declare function Textarea({ className, autoResize, ...props }: TextareaProps): react_jsx_runtime.JSX.Element;
1172
1180
 
1173
1181
  declare function TooltipProvider$1({ delayDuration, ...props }: React$1.ComponentProps<typeof TooltipPrimitive.Provider>): react_jsx_runtime.JSX.Element;
1174
- declare function Tooltip$1({ ...props }: React$1.ComponentProps<typeof TooltipPrimitive.Root>): react_jsx_runtime.JSX.Element;
1182
+ declare function Tooltip$1({ children, ...props }: React$1.ComponentProps<typeof TooltipPrimitive.Root>): react_jsx_runtime.JSX.Element;
1175
1183
  declare function TooltipTrigger$1({ ...props }: React$1.ComponentProps<typeof TooltipPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
1176
1184
  declare function TooltipContent$1({ className, arrowClassName, sideOffset, children, ...props }: React$1.ComponentProps<typeof TooltipPrimitive.Content> & {
1177
1185
  arrowClassName?: string;
@@ -1473,6 +1481,7 @@ interface ActionButtonProps {
1473
1481
  label: string;
1474
1482
  onPress?: (id?: any) => void;
1475
1483
  requiredPermission?: PermissionString | string;
1484
+ disabled?: boolean;
1476
1485
  }
1477
1486
  type ActionMenuProps = {
1478
1487
  id: any;
@@ -1726,6 +1735,12 @@ declare const useControllableState: <T = any>({ defaultValue, value }: UseContro
1726
1735
 
1727
1736
  declare const useIsomorphicLayoutEffect: typeof useEffect;
1728
1737
 
1738
+ type UseBindRefProps<T> = {
1739
+ ref?: React$1.RefObject<T | null>;
1740
+ value: T;
1741
+ };
1742
+ declare const useBindRef: <T>({ ref, value }: UseBindRefProps<T>) => void;
1743
+
1729
1744
  type ExtractObjects<T> = T extends infer U ? U extends object ? U : never : never;
1730
1745
  type BrowserNativeObject = Date | FileList | File | null;
1731
1746
  type EmptyObject = {
@@ -1738,4 +1753,4 @@ type DeepPartialNullish<T> = T extends BrowserNativeObject ? T | null : {
1738
1753
  [K in keyof T]?: ExtractObjects<T[K]> extends never ? T[K] | null : DeepPartialNullish<T[K]> | null;
1739
1754
  };
1740
1755
 
1741
- export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, type ActionButtonProps, ActionMenu, type ActionMenuProps, AdministrationIcon, AdvanceSearch, AnalyticsIcon, ApplicationLogIcon, ArrowIcon, AuditFooter, type AuditFooterProps, type Breakpoints, type BrowserNativeObject, Button, Checkbox, Collapsible, CollapsibleContent, CollapsibleTrigger, type Column, Combobox, type ComboboxProps, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, type CroppedImagePayload, type CroppedImagePayloadWithBlobUrl, CropperModal, CropperModalError, type CropperModalErrorType, type CropperModalProps, CustomActionStatusIcon, CustomFieldIcon, DIALOG_ALERT_I18N_SUBNAMESPACE, DIALOG_ALERT_TEMPLATES, DashboardIcon, DataEntryIcon, DataTable, type DataTableChildrenKeyHandler, type DataTableColumnFilter, type DataTableColumnFilterProps, type DataTableColumnGrouping, type DataTableColumnOrdering, type DataTableColumnPinning, type DataTableColumnSeparatorProps, type DataTableColumnSorting, type DataTableColumnVisibility, type DataTableComponentProps, type DataTableFilterConfig, type DataTableFilters, type DataTableGlobalFilter, type DataTableHeaderCell, type DataTableProps, type DataTableRenderHeaderHandler, type DataTableRenderHeaderProps, type DataTableRenderRowHandler, type DataTableRenderRowProps, type DataTableRowCell, type DataTableRowClickHandler, type DataTableRowExpansion, type DataTableRowIdKeyHandler, type DataTableRowSelection, type DataTableScrollFetch, type DataTableStatusContent, type DatatableColumnResizing, DatePicker, type DatePickerProps, type DebounceOptions, type DebouncedFunction, DecreaseIcon, type DeepPartial, type DeepPartialNullish, Dialog$1 as Dialog, DialogAlert, type DialogAlertI18nResource, type DialogAlertProps, DialogAlertProvider, type DialogAlertTemplateUnit, type DialogAlertTemplates, DialogContent, type DialogContentProps, DialogDescription, DialogFooter, DialogTitle, DialogTrigger, type DialogVariant, type DraftGuardState, type DraftSource, type EllipsisConfig, type EmptyObject, ErrorCompression, ErrorCreateCanvas, ErrorGeneratingBlob, ErrorInvalidSVG, ErrorSVGExceedSize, type ExtractObjects, type FieldSchema, type FieldType, FiltersIcon, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, FormulaEditor, type FormulaEditorProps, type FormulaOperator, type FormulaTokenAttributes, type FormulaTokenConfig, type FormulaTokenSuggestion, type FormulaTokenType, type GridPayload, GridSettingsModal, type GridSettingsModalProps, HamburgerMenuIcon, HandymanIcon, HeaderCell, type HeaderCellProps, Image, type ImageLoader, type ImageLoaderProps, type ImageProps, InformationIcon, Input, type InputCustomInputProps, InputNumber, type InputNumberProps, type InputProps$1 as InputProps, Label, LookupSelect, type LookupSelectOption, type LookupSelectProps, MailIcon, MainListContainer, type MainListContainerClassNames, type MainListContainerProps, type MainListContainerSlots, ManIcon, ManagementIcon, MenuIcon, MonthPicker, type MonthPickerProps, _default as Navbar, type NavbarProps, NotFoundIcon, type OptionData, type Params, type PermissionString, PlusIcon, Popover, PopoverAnchor, PopoverArrow, PopoverContent, PopoverTrigger, PowerIcon, type PrefixMap, PreventPageLeave, QuestionIcon, RadioGroupItem, RadioGroupRoot, RadioLabel, type RawFormulaSegment, RichText, RightPanelContainer, type RightPanelContainerClassNames, type RightPanelContainerHeaderProps, type RightPanelContainerProps, type RightPanelContainerSlots, RoleIcon, type RowClickType, type RowState, type ScrollInfo, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, SetupIcon, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarLayout, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, type SorterProps, Spinner, type SpinnerProps, type StatusContentKey, SuiCalendarIcon, SuiCalendarIcon2, SuiCheckIcon, SuiDotsVerticalIcon, SuiEmptyDataIcon, SuiExpandIcon, SuiFilterIcon, SuiSettingIcon, SuiTriangleDownIcon, SuiWarningIcon, Switch, TabSelect, type TabSelectItem, type TemplateKeys, Textarea, ToolBoxIcon, Tooltip, TooltipArrow, TooltipContent, TooltipProvider, TooltipTrigger, TrashIcon, Truncated, TruncatedMouseEnterDiv, type TruncatedMouseEnterDivProps, type TruncatedProps, index as UI, type UseControllableStateOptions, type UseControllableStateResult, type UseHoverResult, type UseMediaQueryOptions, type UseMediaQueryResult, type UsePreventPageLeaveOptions, type UseScreenSizeResult, type UseTruncatedOptions, type UseTruncatedResult, UserAloneIcon, UserFriendIcon, UserIcon, VirtualizedCommand, type VirtualizedCommandFieldNames, type VirtualizedCommandOption, type VirtualizedCommandProps, booleanToSelectValue, buildPrefixMap, buttonVariants, cn, compareAlphanumeric, debounce, defaultOperatorShortcuts, defaultOperators, formatISODate, getDialogAlertControls, inputVariants$1 as inputVariants, isDefined, isEmptyObject, isValidParentheses, mapTokensToOutput, parseFormula, parseFormulaToToken, resetVisibleTableState, selectValueToBoolean, spinnerVariants, splitOperators, stripNullishObject, throttle, tokenizeFormulaString, useControllableState, useDraftGuardStore, useFormField, useGridSettingsStore, useHover, useIntersectionObserver, useIsomorphicLayoutEffect, useMediaQuery, usePreventPageLeave, usePreventPageLeaveStore, useSafeBlocker, useScreenSize, useSidebar, useTruncated, validateTokenPrefixes };
1756
+ export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, type ActionButtonProps, ActionMenu, type ActionMenuProps, AdministrationIcon, AdvanceSearch, AnalyticsIcon, ApplicationLogIcon, ArrowIcon, AuditFooter, type AuditFooterProps, type Breakpoints, type BrowserNativeObject, Button, Checkbox, Collapsible, CollapsibleContent, CollapsibleTrigger, type Column, Combobox, type ComboboxProps, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, type CroppedImagePayload, type CroppedImagePayloadWithBlobUrl, CropperModal, CropperModalError, type CropperModalErrorType, type CropperModalProps, CustomActionStatusIcon, CustomFieldIcon, DIALOG_ALERT_I18N_SUBNAMESPACE, DIALOG_ALERT_TEMPLATES, DashboardIcon, DataEntryIcon, DataTable, type DataTableChildrenKeyHandler, type DataTableColumnFilter, type DataTableColumnFilterProps, type DataTableColumnGrouping, type DataTableColumnOrdering, type DataTableColumnPinning, type DataTableColumnSeparatorProps, type DataTableColumnSorting, type DataTableColumnVisibility, type DataTableComponentProps, type DataTableFilterConfig, type DataTableFilters, type DataTableGlobalFilter, type DataTableHeaderCell, type DataTableProps, type DataTableRenderHeaderHandler, type DataTableRenderHeaderProps, type DataTableRenderRowHandler, type DataTableRenderRowProps, type DataTableRowCell, type DataTableRowClickHandler, type DataTableRowExpansion, type DataTableRowIdKeyHandler, type DataTableRowSelection, type DataTableScrollFetch, type DataTableStatusContent, type DataTableVirtual, type DatatableColumnResizing, DatePicker, type DatePickerProps, type DebounceOptions, type DebouncedFunction, DecreaseIcon, type DeepPartial, type DeepPartialNullish, Dialog$1 as Dialog, DialogAlert, type DialogAlertI18nResource, type DialogAlertProps, DialogAlertProvider, type DialogAlertTemplateUnit, type DialogAlertTemplates, DialogContent, type DialogContentProps, DialogDescription, DialogFooter, DialogTitle, DialogTrigger, type DialogVariant, type DraftGuardState, type DraftSource, type EllipsisConfig, type EmptyObject, ErrorCompression, ErrorCreateCanvas, ErrorGeneratingBlob, ErrorInvalidSVG, ErrorSVGExceedSize, type ExtractObjects, type FieldSchema, type FieldType, FiltersIcon, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, FormulaEditor, type FormulaEditorProps, type FormulaOperator, type FormulaTokenAttributes, type FormulaTokenConfig, type FormulaTokenSuggestion, type FormulaTokenType, type GridPayload, GridSettingsModal, type GridSettingsModalProps, HamburgerMenuIcon, HandymanIcon, HeaderCell, type HeaderCellProps, Image, type ImageLoader, type ImageLoaderProps, type ImageProps, InformationIcon, Input, type InputCustomInputProps, InputNumber, type InputNumberProps, type InputProps$1 as InputProps, Label, LookupSelect, type LookupSelectOption, type LookupSelectProps, MailIcon, MainListContainer, type MainListContainerClassNames, type MainListContainerProps, type MainListContainerSlots, ManIcon, ManagementIcon, MenuIcon, MonthPicker, type MonthPickerProps, _default as Navbar, type NavbarProps, NotFoundIcon, type OptionData, type Params, type PermissionString, PlusIcon, Popover, PopoverAnchor, PopoverArrow, PopoverContent, PopoverTrigger, PowerIcon, type PrefixMap, PreventPageLeave, QuestionIcon, RadioGroupItem, RadioGroupRoot, RadioLabel, type RawFormulaSegment, RichText, RightPanelContainer, type RightPanelContainerClassNames, type RightPanelContainerHeaderProps, type RightPanelContainerProps, type RightPanelContainerSlots, RoleIcon, type RowClickType, type RowState, type ScrollInfo, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, SetupIcon, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarLayout, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, type SorterProps, Spinner, type SpinnerProps, type StatusContentKey, SuiCalendarIcon, SuiCalendarIcon2, SuiCheckIcon, SuiDotsVerticalIcon, SuiEmptyDataIcon, SuiExpandIcon, SuiFilterIcon, SuiSettingIcon, SuiTriangleDownIcon, SuiWarningIcon, Switch, TabSelect, type TabSelectItem, type TemplateKeys, Textarea, ToolBoxIcon, Tooltip, TooltipArrow, TooltipContent, TooltipProvider, TooltipTrigger, TrashIcon, Truncated, TruncatedMouseEnterDiv, type TruncatedMouseEnterDivProps, type TruncatedProps, index as UI, type UseBindRefProps, type UseControllableStateOptions, type UseControllableStateResult, type UseHoverResult, type UseMediaQueryOptions, type UseMediaQueryResult, type UsePreventPageLeaveOptions, type UseScreenSizeResult, type UseTruncatedOptions, type UseTruncatedResult, UserAloneIcon, UserFriendIcon, UserIcon, VirtualizedCommand, type VirtualizedCommandFieldNames, type VirtualizedCommandOption, type VirtualizedCommandProps, type Virtualizer, booleanToSelectValue, buildPrefixMap, buttonVariants, cn, compareAlphanumeric, debounce, defaultOperatorShortcuts, defaultOperators, formatISODate, getDialogAlertControls, inputVariants$1 as inputVariants, isDefined, isEmptyObject, isValidParentheses, mapTokensToOutput, parseFormula, parseFormulaToToken, resetVisibleTableState, selectValueToBoolean, spinnerVariants, splitOperators, stripNullishObject, throttle, tokenizeFormulaString, useBindRef, useControllableState, useDraftGuardStore, useFormField, useGridSettingsStore, useHover, useIntersectionObserver, useIsomorphicLayoutEffect, useMediaQuery, usePreventPageLeave, usePreventPageLeaveStore, useSafeBlocker, useScreenSize, useSidebar, useTruncated, validateTokenPrefixes };