@nswds/app 3.0.2 → 4.0.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.cts CHANGED
@@ -18,7 +18,8 @@ import * as CollapsiblePrimitive from '@radix-ui/react-collapsible';
18
18
  import { Command as Command$1 } from 'cmdk';
19
19
  import * as DialogPrimitive from '@radix-ui/react-dialog';
20
20
  import * as ContextMenuPrimitive from '@radix-ui/react-context-menu';
21
- import { Table as Table$1, ColumnDef, SortingState, Column } from '@tanstack/react-table';
21
+ import { RowData, ReactTable, ColumnDef, SortingState, Column } from '@tanstack/react-table';
22
+ import * as _tanstack_table_core from '@tanstack/table-core';
22
23
  import { Drawer as Drawer$1 } from 'vaul';
23
24
  import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
24
25
  import * as react_hook_form from 'react-hook-form';
@@ -958,6 +959,50 @@ declare function ContextMenuLabel({ className, inset, ...props }: react.Componen
958
959
  declare function ContextMenuSeparator({ className, ...props }: react.ComponentProps<typeof ContextMenuPrimitive.Separator>): react.JSX.Element;
959
960
  declare function ContextMenuShortcut({ className, ...props }: react.ComponentProps<'span'>): react.JSX.Element;
960
961
 
962
+ declare const dataTableFeatures: {
963
+ rowSortingFeature: _tanstack_table_core.TableFeature;
964
+ columnFilteringFeature: _tanstack_table_core.TableFeature;
965
+ globalFilteringFeature: _tanstack_table_core.TableFeature;
966
+ columnVisibilityFeature: _tanstack_table_core.TableFeature;
967
+ rowSelectionFeature: _tanstack_table_core.TableFeature;
968
+ rowPaginationFeature: _tanstack_table_core.TableFeature;
969
+ columnFacetingFeature: _tanstack_table_core.TableFeature;
970
+ sortedRowModel: (table: _tanstack_table_core.Table<any, any>) => () => _tanstack_table_core.RowModel<any, any>;
971
+ filteredRowModel: (table: _tanstack_table_core.Table<any, any>) => () => _tanstack_table_core.RowModel<any, any>;
972
+ paginatedRowModel: (table: _tanstack_table_core.Table<any, any>) => () => _tanstack_table_core.RowModel<any, any>;
973
+ facetedRowModel: (table: _tanstack_table_core.Table<any, any>, columnId: string) => () => _tanstack_table_core.RowModel<any, any>;
974
+ facetedUniqueValues: (table: _tanstack_table_core.Table<_tanstack_table_core.TableFeatures, any>, columnId: string) => () => Map<any, number>;
975
+ filterFns: {
976
+ arrIncludes: _tanstack_table_core.CreatedFilterFn<any, any>;
977
+ arrIncludesAll: _tanstack_table_core.CreatedFilterFn<any, any>;
978
+ arrHas: _tanstack_table_core.CreatedFilterFn<any, any>;
979
+ arrIncludesSome: _tanstack_table_core.CreatedFilterFn<any, any>;
980
+ between: _tanstack_table_core.CreatedFilterFn<any, any>;
981
+ betweenInclusive: _tanstack_table_core.CreatedFilterFn<any, any>;
982
+ empty: _tanstack_table_core.CreatedFilterFn<any, any>;
983
+ endsWith: _tanstack_table_core.CreatedFilterFn<any, any>;
984
+ equals: _tanstack_table_core.CreatedFilterFn<any, any>;
985
+ equalsString: _tanstack_table_core.CreatedFilterFn<any, any>;
986
+ equalsStringSensitive: _tanstack_table_core.CreatedFilterFn<any, any>;
987
+ inDateRange: _tanstack_table_core.CreatedFilterFn<any, any>;
988
+ inNumberRange: _tanstack_table_core.CreatedFilterFn<any, any>;
989
+ includesString: _tanstack_table_core.CreatedFilterFn<any, any>;
990
+ includesStringSensitive: _tanstack_table_core.CreatedFilterFn<any, any>;
991
+ notEmpty: _tanstack_table_core.CreatedFilterFn<any, any>;
992
+ startsWith: _tanstack_table_core.CreatedFilterFn<any, any>;
993
+ weakEquals: _tanstack_table_core.CreatedFilterFn<any, any>;
994
+ };
995
+ sortFns: {
996
+ alphanumeric: _tanstack_table_core.CreatedSortFn<any, any>;
997
+ alphanumericCaseSensitive: _tanstack_table_core.CreatedSortFn<any, any>;
998
+ basic: _tanstack_table_core.CreatedSortFn<any, any>;
999
+ datetime: _tanstack_table_core.CreatedSortFn<any, any>;
1000
+ text: _tanstack_table_core.CreatedSortFn<any, any>;
1001
+ textCaseSensitive: _tanstack_table_core.CreatedSortFn<any, any>;
1002
+ };
1003
+ };
1004
+ type DataTableFeatures = typeof dataTableFeatures;
1005
+
961
1006
  type ToolbarValue = {
962
1007
  value: string;
963
1008
  label: string;
@@ -970,17 +1015,17 @@ interface FacetGroup {
970
1015
  title: string;
971
1016
  values: ToolbarValue[];
972
1017
  }
973
- interface DataTableToolbarProps<TData> {
974
- table: Table$1<TData>;
1018
+ interface DataTableToolbarProps<TData extends RowData> {
1019
+ table: ReactTable<DataTableFeatures, TData>;
975
1020
  toolbar?: FacetGroup[];
976
1021
  search?: {
977
1022
  placeholder?: string;
978
1023
  };
979
1024
  }
980
- declare function DataTableToolbar<TData>({ search, toolbar, table }: DataTableToolbarProps<TData>): react.JSX.Element;
1025
+ declare function DataTableToolbar<TData extends RowData>({ search, toolbar, table, }: DataTableToolbarProps<TData>): react.JSX.Element;
981
1026
 
982
- interface DataTableProps<TData, TValue> {
983
- columns: ColumnDef<TData, TValue>[];
1027
+ interface DataTableProps<TData extends RowData> {
1028
+ columns: ColumnDef<DataTableFeatures, TData>[];
984
1029
  data: TData[];
985
1030
  toolbar?: FacetGroup[];
986
1031
  search?: {
@@ -988,17 +1033,17 @@ interface DataTableProps<TData, TValue> {
988
1033
  };
989
1034
  initialSorting?: SortingState;
990
1035
  }
991
- declare function DataTable<TData, TValue>({ search, toolbar, columns, data, initialSorting, }: DataTableProps<TData, TValue>): react.JSX.Element;
1036
+ declare function DataTable<TData extends RowData>({ search, toolbar, columns, data, initialSorting, }: DataTableProps<TData>): react.JSX.Element;
992
1037
 
993
- interface DataTableColumnHeaderProps<TData, TValue> extends React.HTMLAttributes<HTMLDivElement> {
994
- column: Column<TData, TValue>;
1038
+ interface DataTableColumnHeaderProps<TData extends RowData, TValue> extends React.HTMLAttributes<HTMLDivElement> {
1039
+ column: Column<DataTableFeatures, TData, TValue>;
995
1040
  title: string;
996
1041
  sortType?: 'string' | 'number' | 'date';
997
1042
  }
998
- declare function DataTableColumnHeader<TData, TValue>({ column, title, className, sortType, }: DataTableColumnHeaderProps<TData, TValue>): react.JSX.Element;
1043
+ declare function DataTableColumnHeader<TData extends RowData, TValue>({ column, title, className, sortType, }: DataTableColumnHeaderProps<TData, TValue>): react.JSX.Element;
999
1044
 
1000
- interface DataTableFacetedFilterProps<TData, TValue> {
1001
- column?: Column<TData, TValue>;
1045
+ interface DataTableFacetedFilterProps<TData extends RowData, TValue> {
1046
+ column?: Column<DataTableFeatures, TData, TValue>;
1002
1047
  title?: string;
1003
1048
  options: {
1004
1049
  label: string;
@@ -1008,17 +1053,17 @@ interface DataTableFacetedFilterProps<TData, TValue> {
1008
1053
  }>;
1009
1054
  }[];
1010
1055
  }
1011
- declare function DataTableFacetedFilter<TData, TValue>({ column, title, options, }: DataTableFacetedFilterProps<TData, TValue>): react.JSX.Element;
1056
+ declare function DataTableFacetedFilter<TData extends RowData, TValue>({ column, title, options, }: DataTableFacetedFilterProps<TData, TValue>): react.JSX.Element;
1012
1057
 
1013
- interface DataTablePaginationProps<TData> {
1014
- table: Table$1<TData>;
1058
+ interface DataTablePaginationProps<TData extends RowData> {
1059
+ table: ReactTable<DataTableFeatures, TData>;
1015
1060
  }
1016
- declare function DataTablePagination<TData>({ table }: DataTablePaginationProps<TData>): react.JSX.Element;
1061
+ declare function DataTablePagination<TData extends RowData>({ table, }: DataTablePaginationProps<TData>): react.JSX.Element;
1017
1062
 
1018
- interface DataTableViewOptionsProps<TData> {
1019
- table: Table$1<TData>;
1063
+ interface DataTableViewOptionsProps<TData extends RowData> {
1064
+ table: ReactTable<DataTableFeatures, TData>;
1020
1065
  }
1021
- declare function DataTableViewOptions<TData>({ table }: DataTableViewOptionsProps<TData>): react.JSX.Element;
1066
+ declare function DataTableViewOptions<TData extends RowData>({ table, }: DataTableViewOptionsProps<TData>): react.JSX.Element;
1022
1067
 
1023
1068
  declare function DescriptionList({ className, ...props }: React.ComponentPropsWithoutRef<'dl'>): react.JSX.Element;
1024
1069
  declare function DescriptionTerm({ className, ...props }: React.ComponentPropsWithoutRef<'dt'>): react.JSX.Element;
@@ -6580,4 +6625,4 @@ declare const focusInput: string[];
6580
6625
  declare const hasErrorInput: string[];
6581
6626
  declare const focusRing: string[];
6582
6627
 
6583
- export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Action, Actions, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, type AnimationState, AreaChart, type AreaChartEventProps, Artifact, ArtifactAction, ArtifactActions, ArtifactContent, ArtifactDescription, ArtifactHeader, ArtifactTitle, AspectRatio, type AuthButtonProps, AuthLayout, AvailableChartColors, type AvailableChartColorsKeys, Avatar, AvatarFallback, AvatarImage, Badge$1 as Badge, BadgeButton, BarChart, type BarChartEventProps, BarList, type BarListProps, type BaseCodeData, BaseColorSwatches, Branch, BranchMessages, BranchNext, BranchPage, BranchPrevious, BranchSelector, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Breadcrumbs, type BreadcrumbsProps, Button$2 as Button, Calendar, CalendarDayButton, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel$1 as Carousel, type CarouselApi$1 as CarouselApi, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, CategoryBar, type CategoryBarProps, ChainOfThought, ChainOfThoughtContent, ChainOfThoughtHeader, ChainOfThoughtImage, ChainOfThoughtSearchResult, ChainOfThoughtSearchResults, ChainOfThoughtStep, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Checkbox, CheckboxSmall, Code, CodeBlock, CodeBlockCopyButton, type CodeData, CodeDemo, type CodeDemoProps, CodeHighlight, type CodeHighlightProps, type CodeItem, type CodeVariant, Collapsible$1 as Collapsible, CollapsibleContent$1 as CollapsibleContent, CollapsibleTrigger$1 as CollapsibleTrigger, type Color$1 as Color, ColorCard, type ColorCardProps, type ColorData, ColorPairingTool, type ColorProperty, ColorSwatches, type ColorSwatchesProps, type ColorTheme, type ColorThemes, type ColorUtility, type ColorsDisplayProps, type ColourOutputProps, ColourScale, type ColourScaleProps, ComboChart, type ComboChartEventProps, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, Context, ContextCacheUsage, ContextContent, ContextContentBody, ContextContentFooter, ContextContentHeader, ContextInputUsage, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, ContextOutputUsage, ContextReasoningUsage, ContextTrigger, Conversation, ConversationContent, ConversationEmptyState, ConversationScrollButton, DataTable, DataTableColumnHeader, DataTableFacetedFilter, DataTablePagination, DataTableToolbar, DataTableViewOptions, type DataType, type DataTypeSelectProps, Description, DescriptionDetails, DescriptionList, DescriptionTerm, type DesignTokensShades, type DesignTokensTheme, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DonutChart, type DonutChartEventProps, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu$1 as DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent$1 as DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem$1 as DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger$1 as DropdownMenuTrigger, DynamicFavicon, ErrorMessage, ExpandableSearch, ExpandableSearchField, Field, FieldGroup, FieldLabel, Fieldset, Footer, FooterAcknowledgement, FooterLegalLinks, FooterSmallPrint, FooterSocialLink, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, type FormStatus, type FormStatusHook, type FormStore, type Format, FormatToggle, type FormatToggleProps, GenerateInterpolatedColors, Header, Heading, type HeadingNode, type HeadingTypeProps, HeroBannerSimple, HeroBannerSupportingImage, HoverCard$1 as HoverCard, HoverCardContent$1 as HoverCardContent, HoverCardTrigger, type IFrameData, type IFrameMap, type IFrameOptions, type IFrameProps, type IconProps, Icons, Image, InlineCitation, InlineCitationCard, InlineCitationCardBody, InlineCitationCardTrigger, InlineCitationCarousel, InlineCitationCarouselContent, InlineCitationCarouselHeader, InlineCitationCarouselIndex, InlineCitationCarouselItem, InlineCitationSource, InlineCitationText, Input$1 as Input, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, Label, type Language, type LayoutProps, Legend, LineChart, type LineChartEventProps, Link$1 as Link, _List as List, Listbox, ListboxDescription, ListboxLabel, ListboxOption, Loader, Loading, Logo, MainNavigation, Masthead, MegaMenu, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, Message, MessageContent, MobileHeader, MobileSearch, MultiLevelPushMenu, type MultiLevelPushMenuProps, NSWCard, NSWCardArrow, NSWCardDescription, NSWCardIcon, NSWCardImg, NSWCardTitle, Navbar, NavbarDivider, NavbarItem, NavbarLabel, NavbarSection, NavbarSpacer, Navigation, type NavigationItem, type NavigationLink, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuMainNavigation, NavigationMenuTrigger, NavigationMenuViewport, type NavigationSection, NotFound, OpenIn, OpenInChatGPT, OpenInClaude, OpenInContent, OpenInScira, OpenInT3, OpenInTrigger, OpenInv0, type Output, PageHeading, Pagination, PaginationGap, PaginationList, PaginationNext, PaginationPage, PaginationPrevious, type Palette, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, PreWithCopy, PrevNextLinks, PrevNextLinksPageLink, type PrevNextLinksProps, Progress, ProgressBar, type ProgressBarProps, ProgressCircle, type ProgressCircleProps, PromptInput, PromptInputActionAddAttachments, PromptInputActionMenu, PromptInputActionMenuContent, PromptInputActionMenuItem, PromptInputActionMenuTrigger, PromptInputAttachment, PromptInputAttachments, PromptInputBody, PromptInputButton, PromptInputSubmit, PromptInputTextarea, PromptInputToolbar, PromptInputTools, Prose, type PushNavigationItem, type PushNavigationLevel, RadioGroup, RadioGroupItem, Reasoning, ReasoningContent, ReasoningTrigger, ResizableHandle, ResizablePanel, ResizablePanelGroup, Response, ScrollArea$1 as ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarLink, type SidebarLinkProps, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarNavigation, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, type SimpleNode, type SingleCodeData, SiteSearch, Skeleton, Slider, Social, Source, Sources, SourcesContent, SourcesTrigger, SparkAreaChart, SparkBarChart, SparkLineChart, Spinner, StepIndicator, StepNavigation, Strong, type StructuredColor, SubmitButton, Suggestion, Suggestions, Switch, SwitchField, SwitchGroup, TabNavigation, TabNavigationLink, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableOfContents, type TableOfContentsItem, type TableOfContentsProps, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Task, TaskContent, TaskItem, TaskItemFile, TaskTrigger, Text, TextLink, type TextTypeProps, Textarea$1 as Textarea, type ThemeCategory, ThemeColorPalette, type ThemeMessage, type ThemeOption, ThemeProvider, ThemeSelector, type ThemeSelectorDropDownProps, type ThemeSelectorProps, ThemeSwitcher, Toaster, TocContext, type TocContextType, TocProvider, Toggle, ToggleGroup, ToggleGroupItem, Tool, ToolContent, ToolHeader, ToolInput, ToolOutput, Tooltip$1 as Tooltip, TooltipContent, type TooltipProps$5 as TooltipProps, TooltipProvider, TooltipTrigger, TopLevel, TouchTarget, Tracker, type TrackerBlockProps, Tooltip as TremorTooltip, type TypeExampleProps, type TypeSpecs, type Variant, type VariantCodeData, type Variants, type View, type ViewMode, ViewToggle, type ViewToggleProps, WebPreview, WebPreviewBody, WebPreviewNavigation, WebPreviewUrl, Wrapper, aboriginal, addStartStopToColorArray, allPalettes, badgeVariants$1 as badgeVariants, brand, buttonVariants$2 as buttonVariants, camelCase, chartColors, cn, type colorCategories, colorDataArray, colorThemes, colors, constructCategoryColors, createColorArray, createColorData, createFormStore, darkenColor, diverging, domToSimple, focusInput, focusRing, generateColorThemes, generateDataVisColors, getColorClassName, getColorValue, getHeadings, getNodeText, getSurroundingColors, getYAxisDomain, hasErrorInput, hasOnlyOneValueForKey, humaniseVariant, interpolateColors, isLightColor, kebabCase, languages, lightenColor, navigationMenuTriggerStyle, oklchConverter, progressBarVariants, renderColorOutput, renderColorOutputToDTFM, semantic, sequential, shades, themeIndices, themeTokens, toggleVariants, truncate, useActiveSectionObserver, useDisableToc, useFormField, useIsMobile, useOnWindowResize, usePageHeadings, usePromptInputAttachments, useSelectorHeight, useSidebar, useStickyOffset, useToc };
6628
+ export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Action, Actions, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, type AnimationState, AreaChart, type AreaChartEventProps, Artifact, ArtifactAction, ArtifactActions, ArtifactContent, ArtifactDescription, ArtifactHeader, ArtifactTitle, AspectRatio, type AuthButtonProps, AuthLayout, AvailableChartColors, type AvailableChartColorsKeys, Avatar, AvatarFallback, AvatarImage, Badge$1 as Badge, BadgeButton, BarChart, type BarChartEventProps, BarList, type BarListProps, type BaseCodeData, BaseColorSwatches, Branch, BranchMessages, BranchNext, BranchPage, BranchPrevious, BranchSelector, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Breadcrumbs, type BreadcrumbsProps, Button$2 as Button, Calendar, CalendarDayButton, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel$1 as Carousel, type CarouselApi$1 as CarouselApi, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, CategoryBar, type CategoryBarProps, ChainOfThought, ChainOfThoughtContent, ChainOfThoughtHeader, ChainOfThoughtImage, ChainOfThoughtSearchResult, ChainOfThoughtSearchResults, ChainOfThoughtStep, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Checkbox, CheckboxSmall, Code, CodeBlock, CodeBlockCopyButton, type CodeData, CodeDemo, type CodeDemoProps, CodeHighlight, type CodeHighlightProps, type CodeItem, type CodeVariant, Collapsible$1 as Collapsible, CollapsibleContent$1 as CollapsibleContent, CollapsibleTrigger$1 as CollapsibleTrigger, type Color$1 as Color, ColorCard, type ColorCardProps, type ColorData, ColorPairingTool, type ColorProperty, ColorSwatches, type ColorSwatchesProps, type ColorTheme, type ColorThemes, type ColorUtility, type ColorsDisplayProps, type ColourOutputProps, ColourScale, type ColourScaleProps, ComboChart, type ComboChartEventProps, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, Context, ContextCacheUsage, ContextContent, ContextContentBody, ContextContentFooter, ContextContentHeader, ContextInputUsage, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, ContextOutputUsage, ContextReasoningUsage, ContextTrigger, Conversation, ConversationContent, ConversationEmptyState, ConversationScrollButton, DataTable, DataTableColumnHeader, DataTableFacetedFilter, type DataTableFeatures, DataTablePagination, DataTableToolbar, DataTableViewOptions, type DataType, type DataTypeSelectProps, Description, DescriptionDetails, DescriptionList, DescriptionTerm, type DesignTokensShades, type DesignTokensTheme, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DonutChart, type DonutChartEventProps, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu$1 as DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent$1 as DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem$1 as DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger$1 as DropdownMenuTrigger, DynamicFavicon, ErrorMessage, ExpandableSearch, ExpandableSearchField, Field, FieldGroup, FieldLabel, Fieldset, Footer, FooterAcknowledgement, FooterLegalLinks, FooterSmallPrint, FooterSocialLink, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, type FormStatus, type FormStatusHook, type FormStore, type Format, FormatToggle, type FormatToggleProps, GenerateInterpolatedColors, Header, Heading, type HeadingNode, type HeadingTypeProps, HeroBannerSimple, HeroBannerSupportingImage, HoverCard$1 as HoverCard, HoverCardContent$1 as HoverCardContent, HoverCardTrigger, type IFrameData, type IFrameMap, type IFrameOptions, type IFrameProps, type IconProps, Icons, Image, InlineCitation, InlineCitationCard, InlineCitationCardBody, InlineCitationCardTrigger, InlineCitationCarousel, InlineCitationCarouselContent, InlineCitationCarouselHeader, InlineCitationCarouselIndex, InlineCitationCarouselItem, InlineCitationSource, InlineCitationText, Input$1 as Input, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, Label, type Language, type LayoutProps, Legend, LineChart, type LineChartEventProps, Link$1 as Link, _List as List, Listbox, ListboxDescription, ListboxLabel, ListboxOption, Loader, Loading, Logo, MainNavigation, Masthead, MegaMenu, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, Message, MessageContent, MobileHeader, MobileSearch, MultiLevelPushMenu, type MultiLevelPushMenuProps, NSWCard, NSWCardArrow, NSWCardDescription, NSWCardIcon, NSWCardImg, NSWCardTitle, Navbar, NavbarDivider, NavbarItem, NavbarLabel, NavbarSection, NavbarSpacer, Navigation, type NavigationItem, type NavigationLink, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuMainNavigation, NavigationMenuTrigger, NavigationMenuViewport, type NavigationSection, NotFound, OpenIn, OpenInChatGPT, OpenInClaude, OpenInContent, OpenInScira, OpenInT3, OpenInTrigger, OpenInv0, type Output, PageHeading, Pagination, PaginationGap, PaginationList, PaginationNext, PaginationPage, PaginationPrevious, type Palette, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, PreWithCopy, PrevNextLinks, PrevNextLinksPageLink, type PrevNextLinksProps, Progress, ProgressBar, type ProgressBarProps, ProgressCircle, type ProgressCircleProps, PromptInput, PromptInputActionAddAttachments, PromptInputActionMenu, PromptInputActionMenuContent, PromptInputActionMenuItem, PromptInputActionMenuTrigger, PromptInputAttachment, PromptInputAttachments, PromptInputBody, PromptInputButton, PromptInputSubmit, PromptInputTextarea, PromptInputToolbar, PromptInputTools, Prose, type PushNavigationItem, type PushNavigationLevel, RadioGroup, RadioGroupItem, Reasoning, ReasoningContent, ReasoningTrigger, ResizableHandle, ResizablePanel, ResizablePanelGroup, Response, ScrollArea$1 as ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarLink, type SidebarLinkProps, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarNavigation, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, type SimpleNode, type SingleCodeData, SiteSearch, Skeleton, Slider, Social, Source, Sources, SourcesContent, SourcesTrigger, SparkAreaChart, SparkBarChart, SparkLineChart, Spinner, StepIndicator, StepNavigation, Strong, type StructuredColor, SubmitButton, Suggestion, Suggestions, Switch, SwitchField, SwitchGroup, TabNavigation, TabNavigationLink, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableOfContents, type TableOfContentsItem, type TableOfContentsProps, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Task, TaskContent, TaskItem, TaskItemFile, TaskTrigger, Text, TextLink, type TextTypeProps, Textarea$1 as Textarea, type ThemeCategory, ThemeColorPalette, type ThemeMessage, type ThemeOption, ThemeProvider, ThemeSelector, type ThemeSelectorDropDownProps, type ThemeSelectorProps, ThemeSwitcher, Toaster, TocContext, type TocContextType, TocProvider, Toggle, ToggleGroup, ToggleGroupItem, Tool, ToolContent, ToolHeader, ToolInput, ToolOutput, Tooltip$1 as Tooltip, TooltipContent, type TooltipProps$5 as TooltipProps, TooltipProvider, TooltipTrigger, TopLevel, TouchTarget, Tracker, type TrackerBlockProps, Tooltip as TremorTooltip, type TypeExampleProps, type TypeSpecs, type Variant, type VariantCodeData, type Variants, type View, type ViewMode, ViewToggle, type ViewToggleProps, WebPreview, WebPreviewBody, WebPreviewNavigation, WebPreviewUrl, Wrapper, aboriginal, addStartStopToColorArray, allPalettes, badgeVariants$1 as badgeVariants, brand, buttonVariants$2 as buttonVariants, camelCase, chartColors, cn, type colorCategories, colorDataArray, colorThemes, colors, constructCategoryColors, createColorArray, createColorData, createFormStore, darkenColor, dataTableFeatures, diverging, domToSimple, focusInput, focusRing, generateColorThemes, generateDataVisColors, getColorClassName, getColorValue, getHeadings, getNodeText, getSurroundingColors, getYAxisDomain, hasErrorInput, hasOnlyOneValueForKey, humaniseVariant, interpolateColors, isLightColor, kebabCase, languages, lightenColor, navigationMenuTriggerStyle, oklchConverter, progressBarVariants, renderColorOutput, renderColorOutputToDTFM, semantic, sequential, shades, themeIndices, themeTokens, toggleVariants, truncate, useActiveSectionObserver, useDisableToc, useFormField, useIsMobile, useOnWindowResize, usePageHeadings, usePromptInputAttachments, useSelectorHeight, useSidebar, useStickyOffset, useToc };
package/dist/index.d.ts CHANGED
@@ -18,7 +18,8 @@ import * as CollapsiblePrimitive from '@radix-ui/react-collapsible';
18
18
  import { Command as Command$1 } from 'cmdk';
19
19
  import * as DialogPrimitive from '@radix-ui/react-dialog';
20
20
  import * as ContextMenuPrimitive from '@radix-ui/react-context-menu';
21
- import { Table as Table$1, ColumnDef, SortingState, Column } from '@tanstack/react-table';
21
+ import { RowData, ReactTable, ColumnDef, SortingState, Column } from '@tanstack/react-table';
22
+ import * as _tanstack_table_core from '@tanstack/table-core';
22
23
  import { Drawer as Drawer$1 } from 'vaul';
23
24
  import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
24
25
  import * as react_hook_form from 'react-hook-form';
@@ -958,6 +959,50 @@ declare function ContextMenuLabel({ className, inset, ...props }: react.Componen
958
959
  declare function ContextMenuSeparator({ className, ...props }: react.ComponentProps<typeof ContextMenuPrimitive.Separator>): react.JSX.Element;
959
960
  declare function ContextMenuShortcut({ className, ...props }: react.ComponentProps<'span'>): react.JSX.Element;
960
961
 
962
+ declare const dataTableFeatures: {
963
+ rowSortingFeature: _tanstack_table_core.TableFeature;
964
+ columnFilteringFeature: _tanstack_table_core.TableFeature;
965
+ globalFilteringFeature: _tanstack_table_core.TableFeature;
966
+ columnVisibilityFeature: _tanstack_table_core.TableFeature;
967
+ rowSelectionFeature: _tanstack_table_core.TableFeature;
968
+ rowPaginationFeature: _tanstack_table_core.TableFeature;
969
+ columnFacetingFeature: _tanstack_table_core.TableFeature;
970
+ sortedRowModel: (table: _tanstack_table_core.Table<any, any>) => () => _tanstack_table_core.RowModel<any, any>;
971
+ filteredRowModel: (table: _tanstack_table_core.Table<any, any>) => () => _tanstack_table_core.RowModel<any, any>;
972
+ paginatedRowModel: (table: _tanstack_table_core.Table<any, any>) => () => _tanstack_table_core.RowModel<any, any>;
973
+ facetedRowModel: (table: _tanstack_table_core.Table<any, any>, columnId: string) => () => _tanstack_table_core.RowModel<any, any>;
974
+ facetedUniqueValues: (table: _tanstack_table_core.Table<_tanstack_table_core.TableFeatures, any>, columnId: string) => () => Map<any, number>;
975
+ filterFns: {
976
+ arrIncludes: _tanstack_table_core.CreatedFilterFn<any, any>;
977
+ arrIncludesAll: _tanstack_table_core.CreatedFilterFn<any, any>;
978
+ arrHas: _tanstack_table_core.CreatedFilterFn<any, any>;
979
+ arrIncludesSome: _tanstack_table_core.CreatedFilterFn<any, any>;
980
+ between: _tanstack_table_core.CreatedFilterFn<any, any>;
981
+ betweenInclusive: _tanstack_table_core.CreatedFilterFn<any, any>;
982
+ empty: _tanstack_table_core.CreatedFilterFn<any, any>;
983
+ endsWith: _tanstack_table_core.CreatedFilterFn<any, any>;
984
+ equals: _tanstack_table_core.CreatedFilterFn<any, any>;
985
+ equalsString: _tanstack_table_core.CreatedFilterFn<any, any>;
986
+ equalsStringSensitive: _tanstack_table_core.CreatedFilterFn<any, any>;
987
+ inDateRange: _tanstack_table_core.CreatedFilterFn<any, any>;
988
+ inNumberRange: _tanstack_table_core.CreatedFilterFn<any, any>;
989
+ includesString: _tanstack_table_core.CreatedFilterFn<any, any>;
990
+ includesStringSensitive: _tanstack_table_core.CreatedFilterFn<any, any>;
991
+ notEmpty: _tanstack_table_core.CreatedFilterFn<any, any>;
992
+ startsWith: _tanstack_table_core.CreatedFilterFn<any, any>;
993
+ weakEquals: _tanstack_table_core.CreatedFilterFn<any, any>;
994
+ };
995
+ sortFns: {
996
+ alphanumeric: _tanstack_table_core.CreatedSortFn<any, any>;
997
+ alphanumericCaseSensitive: _tanstack_table_core.CreatedSortFn<any, any>;
998
+ basic: _tanstack_table_core.CreatedSortFn<any, any>;
999
+ datetime: _tanstack_table_core.CreatedSortFn<any, any>;
1000
+ text: _tanstack_table_core.CreatedSortFn<any, any>;
1001
+ textCaseSensitive: _tanstack_table_core.CreatedSortFn<any, any>;
1002
+ };
1003
+ };
1004
+ type DataTableFeatures = typeof dataTableFeatures;
1005
+
961
1006
  type ToolbarValue = {
962
1007
  value: string;
963
1008
  label: string;
@@ -970,17 +1015,17 @@ interface FacetGroup {
970
1015
  title: string;
971
1016
  values: ToolbarValue[];
972
1017
  }
973
- interface DataTableToolbarProps<TData> {
974
- table: Table$1<TData>;
1018
+ interface DataTableToolbarProps<TData extends RowData> {
1019
+ table: ReactTable<DataTableFeatures, TData>;
975
1020
  toolbar?: FacetGroup[];
976
1021
  search?: {
977
1022
  placeholder?: string;
978
1023
  };
979
1024
  }
980
- declare function DataTableToolbar<TData>({ search, toolbar, table }: DataTableToolbarProps<TData>): react.JSX.Element;
1025
+ declare function DataTableToolbar<TData extends RowData>({ search, toolbar, table, }: DataTableToolbarProps<TData>): react.JSX.Element;
981
1026
 
982
- interface DataTableProps<TData, TValue> {
983
- columns: ColumnDef<TData, TValue>[];
1027
+ interface DataTableProps<TData extends RowData> {
1028
+ columns: ColumnDef<DataTableFeatures, TData>[];
984
1029
  data: TData[];
985
1030
  toolbar?: FacetGroup[];
986
1031
  search?: {
@@ -988,17 +1033,17 @@ interface DataTableProps<TData, TValue> {
988
1033
  };
989
1034
  initialSorting?: SortingState;
990
1035
  }
991
- declare function DataTable<TData, TValue>({ search, toolbar, columns, data, initialSorting, }: DataTableProps<TData, TValue>): react.JSX.Element;
1036
+ declare function DataTable<TData extends RowData>({ search, toolbar, columns, data, initialSorting, }: DataTableProps<TData>): react.JSX.Element;
992
1037
 
993
- interface DataTableColumnHeaderProps<TData, TValue> extends React.HTMLAttributes<HTMLDivElement> {
994
- column: Column<TData, TValue>;
1038
+ interface DataTableColumnHeaderProps<TData extends RowData, TValue> extends React.HTMLAttributes<HTMLDivElement> {
1039
+ column: Column<DataTableFeatures, TData, TValue>;
995
1040
  title: string;
996
1041
  sortType?: 'string' | 'number' | 'date';
997
1042
  }
998
- declare function DataTableColumnHeader<TData, TValue>({ column, title, className, sortType, }: DataTableColumnHeaderProps<TData, TValue>): react.JSX.Element;
1043
+ declare function DataTableColumnHeader<TData extends RowData, TValue>({ column, title, className, sortType, }: DataTableColumnHeaderProps<TData, TValue>): react.JSX.Element;
999
1044
 
1000
- interface DataTableFacetedFilterProps<TData, TValue> {
1001
- column?: Column<TData, TValue>;
1045
+ interface DataTableFacetedFilterProps<TData extends RowData, TValue> {
1046
+ column?: Column<DataTableFeatures, TData, TValue>;
1002
1047
  title?: string;
1003
1048
  options: {
1004
1049
  label: string;
@@ -1008,17 +1053,17 @@ interface DataTableFacetedFilterProps<TData, TValue> {
1008
1053
  }>;
1009
1054
  }[];
1010
1055
  }
1011
- declare function DataTableFacetedFilter<TData, TValue>({ column, title, options, }: DataTableFacetedFilterProps<TData, TValue>): react.JSX.Element;
1056
+ declare function DataTableFacetedFilter<TData extends RowData, TValue>({ column, title, options, }: DataTableFacetedFilterProps<TData, TValue>): react.JSX.Element;
1012
1057
 
1013
- interface DataTablePaginationProps<TData> {
1014
- table: Table$1<TData>;
1058
+ interface DataTablePaginationProps<TData extends RowData> {
1059
+ table: ReactTable<DataTableFeatures, TData>;
1015
1060
  }
1016
- declare function DataTablePagination<TData>({ table }: DataTablePaginationProps<TData>): react.JSX.Element;
1061
+ declare function DataTablePagination<TData extends RowData>({ table, }: DataTablePaginationProps<TData>): react.JSX.Element;
1017
1062
 
1018
- interface DataTableViewOptionsProps<TData> {
1019
- table: Table$1<TData>;
1063
+ interface DataTableViewOptionsProps<TData extends RowData> {
1064
+ table: ReactTable<DataTableFeatures, TData>;
1020
1065
  }
1021
- declare function DataTableViewOptions<TData>({ table }: DataTableViewOptionsProps<TData>): react.JSX.Element;
1066
+ declare function DataTableViewOptions<TData extends RowData>({ table, }: DataTableViewOptionsProps<TData>): react.JSX.Element;
1022
1067
 
1023
1068
  declare function DescriptionList({ className, ...props }: React.ComponentPropsWithoutRef<'dl'>): react.JSX.Element;
1024
1069
  declare function DescriptionTerm({ className, ...props }: React.ComponentPropsWithoutRef<'dt'>): react.JSX.Element;
@@ -6580,4 +6625,4 @@ declare const focusInput: string[];
6580
6625
  declare const hasErrorInput: string[];
6581
6626
  declare const focusRing: string[];
6582
6627
 
6583
- export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Action, Actions, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, type AnimationState, AreaChart, type AreaChartEventProps, Artifact, ArtifactAction, ArtifactActions, ArtifactContent, ArtifactDescription, ArtifactHeader, ArtifactTitle, AspectRatio, type AuthButtonProps, AuthLayout, AvailableChartColors, type AvailableChartColorsKeys, Avatar, AvatarFallback, AvatarImage, Badge$1 as Badge, BadgeButton, BarChart, type BarChartEventProps, BarList, type BarListProps, type BaseCodeData, BaseColorSwatches, Branch, BranchMessages, BranchNext, BranchPage, BranchPrevious, BranchSelector, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Breadcrumbs, type BreadcrumbsProps, Button$2 as Button, Calendar, CalendarDayButton, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel$1 as Carousel, type CarouselApi$1 as CarouselApi, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, CategoryBar, type CategoryBarProps, ChainOfThought, ChainOfThoughtContent, ChainOfThoughtHeader, ChainOfThoughtImage, ChainOfThoughtSearchResult, ChainOfThoughtSearchResults, ChainOfThoughtStep, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Checkbox, CheckboxSmall, Code, CodeBlock, CodeBlockCopyButton, type CodeData, CodeDemo, type CodeDemoProps, CodeHighlight, type CodeHighlightProps, type CodeItem, type CodeVariant, Collapsible$1 as Collapsible, CollapsibleContent$1 as CollapsibleContent, CollapsibleTrigger$1 as CollapsibleTrigger, type Color$1 as Color, ColorCard, type ColorCardProps, type ColorData, ColorPairingTool, type ColorProperty, ColorSwatches, type ColorSwatchesProps, type ColorTheme, type ColorThemes, type ColorUtility, type ColorsDisplayProps, type ColourOutputProps, ColourScale, type ColourScaleProps, ComboChart, type ComboChartEventProps, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, Context, ContextCacheUsage, ContextContent, ContextContentBody, ContextContentFooter, ContextContentHeader, ContextInputUsage, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, ContextOutputUsage, ContextReasoningUsage, ContextTrigger, Conversation, ConversationContent, ConversationEmptyState, ConversationScrollButton, DataTable, DataTableColumnHeader, DataTableFacetedFilter, DataTablePagination, DataTableToolbar, DataTableViewOptions, type DataType, type DataTypeSelectProps, Description, DescriptionDetails, DescriptionList, DescriptionTerm, type DesignTokensShades, type DesignTokensTheme, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DonutChart, type DonutChartEventProps, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu$1 as DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent$1 as DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem$1 as DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger$1 as DropdownMenuTrigger, DynamicFavicon, ErrorMessage, ExpandableSearch, ExpandableSearchField, Field, FieldGroup, FieldLabel, Fieldset, Footer, FooterAcknowledgement, FooterLegalLinks, FooterSmallPrint, FooterSocialLink, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, type FormStatus, type FormStatusHook, type FormStore, type Format, FormatToggle, type FormatToggleProps, GenerateInterpolatedColors, Header, Heading, type HeadingNode, type HeadingTypeProps, HeroBannerSimple, HeroBannerSupportingImage, HoverCard$1 as HoverCard, HoverCardContent$1 as HoverCardContent, HoverCardTrigger, type IFrameData, type IFrameMap, type IFrameOptions, type IFrameProps, type IconProps, Icons, Image, InlineCitation, InlineCitationCard, InlineCitationCardBody, InlineCitationCardTrigger, InlineCitationCarousel, InlineCitationCarouselContent, InlineCitationCarouselHeader, InlineCitationCarouselIndex, InlineCitationCarouselItem, InlineCitationSource, InlineCitationText, Input$1 as Input, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, Label, type Language, type LayoutProps, Legend, LineChart, type LineChartEventProps, Link$1 as Link, _List as List, Listbox, ListboxDescription, ListboxLabel, ListboxOption, Loader, Loading, Logo, MainNavigation, Masthead, MegaMenu, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, Message, MessageContent, MobileHeader, MobileSearch, MultiLevelPushMenu, type MultiLevelPushMenuProps, NSWCard, NSWCardArrow, NSWCardDescription, NSWCardIcon, NSWCardImg, NSWCardTitle, Navbar, NavbarDivider, NavbarItem, NavbarLabel, NavbarSection, NavbarSpacer, Navigation, type NavigationItem, type NavigationLink, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuMainNavigation, NavigationMenuTrigger, NavigationMenuViewport, type NavigationSection, NotFound, OpenIn, OpenInChatGPT, OpenInClaude, OpenInContent, OpenInScira, OpenInT3, OpenInTrigger, OpenInv0, type Output, PageHeading, Pagination, PaginationGap, PaginationList, PaginationNext, PaginationPage, PaginationPrevious, type Palette, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, PreWithCopy, PrevNextLinks, PrevNextLinksPageLink, type PrevNextLinksProps, Progress, ProgressBar, type ProgressBarProps, ProgressCircle, type ProgressCircleProps, PromptInput, PromptInputActionAddAttachments, PromptInputActionMenu, PromptInputActionMenuContent, PromptInputActionMenuItem, PromptInputActionMenuTrigger, PromptInputAttachment, PromptInputAttachments, PromptInputBody, PromptInputButton, PromptInputSubmit, PromptInputTextarea, PromptInputToolbar, PromptInputTools, Prose, type PushNavigationItem, type PushNavigationLevel, RadioGroup, RadioGroupItem, Reasoning, ReasoningContent, ReasoningTrigger, ResizableHandle, ResizablePanel, ResizablePanelGroup, Response, ScrollArea$1 as ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarLink, type SidebarLinkProps, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarNavigation, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, type SimpleNode, type SingleCodeData, SiteSearch, Skeleton, Slider, Social, Source, Sources, SourcesContent, SourcesTrigger, SparkAreaChart, SparkBarChart, SparkLineChart, Spinner, StepIndicator, StepNavigation, Strong, type StructuredColor, SubmitButton, Suggestion, Suggestions, Switch, SwitchField, SwitchGroup, TabNavigation, TabNavigationLink, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableOfContents, type TableOfContentsItem, type TableOfContentsProps, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Task, TaskContent, TaskItem, TaskItemFile, TaskTrigger, Text, TextLink, type TextTypeProps, Textarea$1 as Textarea, type ThemeCategory, ThemeColorPalette, type ThemeMessage, type ThemeOption, ThemeProvider, ThemeSelector, type ThemeSelectorDropDownProps, type ThemeSelectorProps, ThemeSwitcher, Toaster, TocContext, type TocContextType, TocProvider, Toggle, ToggleGroup, ToggleGroupItem, Tool, ToolContent, ToolHeader, ToolInput, ToolOutput, Tooltip$1 as Tooltip, TooltipContent, type TooltipProps$5 as TooltipProps, TooltipProvider, TooltipTrigger, TopLevel, TouchTarget, Tracker, type TrackerBlockProps, Tooltip as TremorTooltip, type TypeExampleProps, type TypeSpecs, type Variant, type VariantCodeData, type Variants, type View, type ViewMode, ViewToggle, type ViewToggleProps, WebPreview, WebPreviewBody, WebPreviewNavigation, WebPreviewUrl, Wrapper, aboriginal, addStartStopToColorArray, allPalettes, badgeVariants$1 as badgeVariants, brand, buttonVariants$2 as buttonVariants, camelCase, chartColors, cn, type colorCategories, colorDataArray, colorThemes, colors, constructCategoryColors, createColorArray, createColorData, createFormStore, darkenColor, diverging, domToSimple, focusInput, focusRing, generateColorThemes, generateDataVisColors, getColorClassName, getColorValue, getHeadings, getNodeText, getSurroundingColors, getYAxisDomain, hasErrorInput, hasOnlyOneValueForKey, humaniseVariant, interpolateColors, isLightColor, kebabCase, languages, lightenColor, navigationMenuTriggerStyle, oklchConverter, progressBarVariants, renderColorOutput, renderColorOutputToDTFM, semantic, sequential, shades, themeIndices, themeTokens, toggleVariants, truncate, useActiveSectionObserver, useDisableToc, useFormField, useIsMobile, useOnWindowResize, usePageHeadings, usePromptInputAttachments, useSelectorHeight, useSidebar, useStickyOffset, useToc };
6628
+ export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Action, Actions, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, type AnimationState, AreaChart, type AreaChartEventProps, Artifact, ArtifactAction, ArtifactActions, ArtifactContent, ArtifactDescription, ArtifactHeader, ArtifactTitle, AspectRatio, type AuthButtonProps, AuthLayout, AvailableChartColors, type AvailableChartColorsKeys, Avatar, AvatarFallback, AvatarImage, Badge$1 as Badge, BadgeButton, BarChart, type BarChartEventProps, BarList, type BarListProps, type BaseCodeData, BaseColorSwatches, Branch, BranchMessages, BranchNext, BranchPage, BranchPrevious, BranchSelector, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Breadcrumbs, type BreadcrumbsProps, Button$2 as Button, Calendar, CalendarDayButton, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel$1 as Carousel, type CarouselApi$1 as CarouselApi, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, CategoryBar, type CategoryBarProps, ChainOfThought, ChainOfThoughtContent, ChainOfThoughtHeader, ChainOfThoughtImage, ChainOfThoughtSearchResult, ChainOfThoughtSearchResults, ChainOfThoughtStep, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Checkbox, CheckboxSmall, Code, CodeBlock, CodeBlockCopyButton, type CodeData, CodeDemo, type CodeDemoProps, CodeHighlight, type CodeHighlightProps, type CodeItem, type CodeVariant, Collapsible$1 as Collapsible, CollapsibleContent$1 as CollapsibleContent, CollapsibleTrigger$1 as CollapsibleTrigger, type Color$1 as Color, ColorCard, type ColorCardProps, type ColorData, ColorPairingTool, type ColorProperty, ColorSwatches, type ColorSwatchesProps, type ColorTheme, type ColorThemes, type ColorUtility, type ColorsDisplayProps, type ColourOutputProps, ColourScale, type ColourScaleProps, ComboChart, type ComboChartEventProps, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, Context, ContextCacheUsage, ContextContent, ContextContentBody, ContextContentFooter, ContextContentHeader, ContextInputUsage, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, ContextOutputUsage, ContextReasoningUsage, ContextTrigger, Conversation, ConversationContent, ConversationEmptyState, ConversationScrollButton, DataTable, DataTableColumnHeader, DataTableFacetedFilter, type DataTableFeatures, DataTablePagination, DataTableToolbar, DataTableViewOptions, type DataType, type DataTypeSelectProps, Description, DescriptionDetails, DescriptionList, DescriptionTerm, type DesignTokensShades, type DesignTokensTheme, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DonutChart, type DonutChartEventProps, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu$1 as DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent$1 as DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem$1 as DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger$1 as DropdownMenuTrigger, DynamicFavicon, ErrorMessage, ExpandableSearch, ExpandableSearchField, Field, FieldGroup, FieldLabel, Fieldset, Footer, FooterAcknowledgement, FooterLegalLinks, FooterSmallPrint, FooterSocialLink, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, type FormStatus, type FormStatusHook, type FormStore, type Format, FormatToggle, type FormatToggleProps, GenerateInterpolatedColors, Header, Heading, type HeadingNode, type HeadingTypeProps, HeroBannerSimple, HeroBannerSupportingImage, HoverCard$1 as HoverCard, HoverCardContent$1 as HoverCardContent, HoverCardTrigger, type IFrameData, type IFrameMap, type IFrameOptions, type IFrameProps, type IconProps, Icons, Image, InlineCitation, InlineCitationCard, InlineCitationCardBody, InlineCitationCardTrigger, InlineCitationCarousel, InlineCitationCarouselContent, InlineCitationCarouselHeader, InlineCitationCarouselIndex, InlineCitationCarouselItem, InlineCitationSource, InlineCitationText, Input$1 as Input, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, Label, type Language, type LayoutProps, Legend, LineChart, type LineChartEventProps, Link$1 as Link, _List as List, Listbox, ListboxDescription, ListboxLabel, ListboxOption, Loader, Loading, Logo, MainNavigation, Masthead, MegaMenu, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, Message, MessageContent, MobileHeader, MobileSearch, MultiLevelPushMenu, type MultiLevelPushMenuProps, NSWCard, NSWCardArrow, NSWCardDescription, NSWCardIcon, NSWCardImg, NSWCardTitle, Navbar, NavbarDivider, NavbarItem, NavbarLabel, NavbarSection, NavbarSpacer, Navigation, type NavigationItem, type NavigationLink, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuMainNavigation, NavigationMenuTrigger, NavigationMenuViewport, type NavigationSection, NotFound, OpenIn, OpenInChatGPT, OpenInClaude, OpenInContent, OpenInScira, OpenInT3, OpenInTrigger, OpenInv0, type Output, PageHeading, Pagination, PaginationGap, PaginationList, PaginationNext, PaginationPage, PaginationPrevious, type Palette, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, PreWithCopy, PrevNextLinks, PrevNextLinksPageLink, type PrevNextLinksProps, Progress, ProgressBar, type ProgressBarProps, ProgressCircle, type ProgressCircleProps, PromptInput, PromptInputActionAddAttachments, PromptInputActionMenu, PromptInputActionMenuContent, PromptInputActionMenuItem, PromptInputActionMenuTrigger, PromptInputAttachment, PromptInputAttachments, PromptInputBody, PromptInputButton, PromptInputSubmit, PromptInputTextarea, PromptInputToolbar, PromptInputTools, Prose, type PushNavigationItem, type PushNavigationLevel, RadioGroup, RadioGroupItem, Reasoning, ReasoningContent, ReasoningTrigger, ResizableHandle, ResizablePanel, ResizablePanelGroup, Response, ScrollArea$1 as ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarLink, type SidebarLinkProps, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarNavigation, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, type SimpleNode, type SingleCodeData, SiteSearch, Skeleton, Slider, Social, Source, Sources, SourcesContent, SourcesTrigger, SparkAreaChart, SparkBarChart, SparkLineChart, Spinner, StepIndicator, StepNavigation, Strong, type StructuredColor, SubmitButton, Suggestion, Suggestions, Switch, SwitchField, SwitchGroup, TabNavigation, TabNavigationLink, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableOfContents, type TableOfContentsItem, type TableOfContentsProps, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Task, TaskContent, TaskItem, TaskItemFile, TaskTrigger, Text, TextLink, type TextTypeProps, Textarea$1 as Textarea, type ThemeCategory, ThemeColorPalette, type ThemeMessage, type ThemeOption, ThemeProvider, ThemeSelector, type ThemeSelectorDropDownProps, type ThemeSelectorProps, ThemeSwitcher, Toaster, TocContext, type TocContextType, TocProvider, Toggle, ToggleGroup, ToggleGroupItem, Tool, ToolContent, ToolHeader, ToolInput, ToolOutput, Tooltip$1 as Tooltip, TooltipContent, type TooltipProps$5 as TooltipProps, TooltipProvider, TooltipTrigger, TopLevel, TouchTarget, Tracker, type TrackerBlockProps, Tooltip as TremorTooltip, type TypeExampleProps, type TypeSpecs, type Variant, type VariantCodeData, type Variants, type View, type ViewMode, ViewToggle, type ViewToggleProps, WebPreview, WebPreviewBody, WebPreviewNavigation, WebPreviewUrl, Wrapper, aboriginal, addStartStopToColorArray, allPalettes, badgeVariants$1 as badgeVariants, brand, buttonVariants$2 as buttonVariants, camelCase, chartColors, cn, type colorCategories, colorDataArray, colorThemes, colors, constructCategoryColors, createColorArray, createColorData, createFormStore, darkenColor, dataTableFeatures, diverging, domToSimple, focusInput, focusRing, generateColorThemes, generateDataVisColors, getColorClassName, getColorValue, getHeadings, getNodeText, getSurroundingColors, getYAxisDomain, hasErrorInput, hasOnlyOneValueForKey, humaniseVariant, interpolateColors, isLightColor, kebabCase, languages, lightenColor, navigationMenuTriggerStyle, oklchConverter, progressBarVariants, renderColorOutput, renderColorOutputToDTFM, semantic, sequential, shades, themeIndices, themeTokens, toggleVariants, truncate, useActiveSectionObserver, useDisableToc, useFormField, useIsMobile, useOnWindowResize, usePageHeadings, usePromptInputAttachments, useSelectorHeight, useSidebar, useStickyOffset, useToc };
package/dist/index.js CHANGED
@@ -46,7 +46,7 @@ import * as CollapsiblePrimitive from '@radix-ui/react-collapsible';
46
46
  import { Command as Command$1 } from 'cmdk';
47
47
  import * as DialogPrimitive from '@radix-ui/react-dialog';
48
48
  import * as ContextMenuPrimitive from '@radix-ui/react-context-menu';
49
- import { useReactTable, getFacetedUniqueValues, getFacetedRowModel, getSortedRowModel, getPaginationRowModel, getFilteredRowModel, getCoreRowModel, flexRender } from '@tanstack/react-table';
49
+ import { tableFeatures, sortFns, filterFns, columnFacetingFeature, rowPaginationFeature, rowSelectionFeature, columnVisibilityFeature, globalFilteringFeature, columnFilteringFeature, rowSortingFeature, createFacetedUniqueValues, createFacetedRowModel, createPaginatedRowModel, createFilteredRowModel, createSortedRowModel, useTable, flexRender } from '@tanstack/react-table';
50
50
  import * as SeparatorPrimitive from '@radix-ui/react-separator';
51
51
  import { Drawer as Drawer$1 } from 'vaul';
52
52
  import { FormProvider, Controller, useFormContext, useFormState } from 'react-hook-form';
@@ -12850,7 +12850,9 @@ function ContextMenuShortcut({ className, ...props }) {
12850
12850
  }
12851
12851
  );
12852
12852
  }
12853
- function DataTablePagination({ table }) {
12853
+ function DataTablePagination({
12854
+ table
12855
+ }) {
12854
12856
  return /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between px-2", children: [
12855
12857
  /* @__PURE__ */ jsxs("div", { className: "flex-1 text-sm text-muted-foreground", children: [
12856
12858
  table.getFilteredSelectedRowModel().rows.length,
@@ -12865,12 +12867,12 @@ function DataTablePagination({ table }) {
12865
12867
  /* @__PURE__ */ jsxs(
12866
12868
  Select,
12867
12869
  {
12868
- value: `${table.getState().pagination.pageSize}`,
12870
+ value: `${table.state.pagination.pageSize}`,
12869
12871
  onValueChange: (value) => {
12870
12872
  table.setPageSize(Number(value));
12871
12873
  },
12872
12874
  children: [
12873
- /* @__PURE__ */ jsx(SelectTrigger, { className: "w-[80px]", children: /* @__PURE__ */ jsx(SelectValue, { placeholder: table.getState().pagination.pageSize }) }),
12875
+ /* @__PURE__ */ jsx(SelectTrigger, { className: "w-[80px]", children: /* @__PURE__ */ jsx(SelectValue, { placeholder: table.state.pagination.pageSize }) }),
12874
12876
  /* @__PURE__ */ jsx(SelectContent, { side: "top", children: [10, 20, 30, 40, 50].map((pageSize) => /* @__PURE__ */ jsx(SelectItem, { value: `${pageSize}`, children: pageSize }, pageSize)) })
12875
12877
  ]
12876
12878
  }
@@ -12878,7 +12880,7 @@ function DataTablePagination({ table }) {
12878
12880
  ] }),
12879
12881
  /* @__PURE__ */ jsxs("div", { className: "flex w-[100px] items-center justify-center text-sm font-medium", children: [
12880
12882
  "Page ",
12881
- table.getState().pagination.pageIndex + 1,
12883
+ table.state.pagination.pageIndex + 1,
12882
12884
  " of ",
12883
12885
  table.getPageCount()
12884
12886
  ] }),
@@ -13043,7 +13045,9 @@ function DataTableFacetedFilter({
13043
13045
  ] }) })
13044
13046
  ] });
13045
13047
  }
13046
- function DataTableViewOptions({ table }) {
13048
+ function DataTableViewOptions({
13049
+ table
13050
+ }) {
13047
13051
  return /* @__PURE__ */ jsxs(DropdownMenu, { children: [
13048
13052
  /* @__PURE__ */ jsx(DropdownMenuTrigger$1, { asChild: true, children: /* @__PURE__ */ jsxs(Button2, { variant: "outline", size: "sm", className: "nsw:ml-auto nsw:hidden nsw:lg:flex", children: [
13049
13053
  /* @__PURE__ */ jsx(Icons.tune, {}),
@@ -13096,8 +13100,12 @@ function Input({ className, type, ...props }) {
13096
13100
  }
13097
13101
  );
13098
13102
  }
13099
- function DataTableToolbar({ search, toolbar, table }) {
13100
- const isFiltered = table.getState().columnFilters.length > 0;
13103
+ function DataTableToolbar({
13104
+ search,
13105
+ toolbar,
13106
+ table
13107
+ }) {
13108
+ const isFiltered = table.state.columnFilters.length > 0;
13101
13109
  return /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
13102
13110
  /* @__PURE__ */ jsxs("div", { className: "flex flex-1 items-center space-x-2", children: [
13103
13111
  /* @__PURE__ */ jsx(
@@ -13106,7 +13114,7 @@ function DataTableToolbar({ search, toolbar, table }) {
13106
13114
  type: "search",
13107
13115
  name: "global-filter",
13108
13116
  placeholder: search?.placeholder ?? `Filter...`,
13109
- value: table.getState().globalFilter ?? "",
13117
+ value: table.state.globalFilter ?? "",
13110
13118
  onChange: (event) => table.setGlobalFilter(event.target.value),
13111
13119
  className: "h-10 w-[184px] lg:w-[280px]"
13112
13120
  }
@@ -13210,6 +13218,22 @@ function TableCaption({ className, ...props }) {
13210
13218
  }
13211
13219
  );
13212
13220
  }
13221
+ var dataTableFeatures = tableFeatures({
13222
+ rowSortingFeature,
13223
+ columnFilteringFeature,
13224
+ globalFilteringFeature,
13225
+ columnVisibilityFeature,
13226
+ rowSelectionFeature,
13227
+ rowPaginationFeature,
13228
+ columnFacetingFeature,
13229
+ sortedRowModel: createSortedRowModel(),
13230
+ filteredRowModel: createFilteredRowModel(),
13231
+ paginatedRowModel: createPaginatedRowModel(),
13232
+ facetedRowModel: createFacetedRowModel(),
13233
+ facetedUniqueValues: createFacetedUniqueValues(),
13234
+ filterFns,
13235
+ sortFns
13236
+ });
13213
13237
  function DataTable({
13214
13238
  search,
13215
13239
  toolbar,
@@ -13222,7 +13246,8 @@ function DataTable({
13222
13246
  const [columnFilters, setColumnFilters] = React5.useState([]);
13223
13247
  const [sorting, setSorting] = React5.useState(initialSorting);
13224
13248
  const [globalFilter, setGlobalFilter] = React5.useState("");
13225
- const table = useReactTable({
13249
+ const table = useTable({
13250
+ features: dataTableFeatures,
13226
13251
  data,
13227
13252
  columns,
13228
13253
  state: {
@@ -13233,18 +13258,14 @@ function DataTable({
13233
13258
  columnFilters
13234
13259
  },
13235
13260
  enableRowSelection: true,
13261
+ // v9 enables shift-click range selection by default; keep v8 behavior
13262
+ enableRowRangeSelection: false,
13236
13263
  onRowSelectionChange: setRowSelection,
13237
13264
  onSortingChange: setSorting,
13238
13265
  onColumnFiltersChange: setColumnFilters,
13239
13266
  onColumnVisibilityChange: setColumnVisibility,
13240
13267
  onGlobalFilterChange: setGlobalFilter,
13241
- globalFilterFn: "includesString",
13242
- getCoreRowModel: getCoreRowModel(),
13243
- getFilteredRowModel: getFilteredRowModel(),
13244
- getPaginationRowModel: getPaginationRowModel(),
13245
- getSortedRowModel: getSortedRowModel(),
13246
- getFacetedRowModel: getFacetedRowModel(),
13247
- getFacetedUniqueValues: getFacetedUniqueValues()
13268
+ globalFilterFn: "includesString"
13248
13269
  });
13249
13270
  return /* @__PURE__ */ jsxs("div", { className: "space-y-4 p-1", children: [
13250
13271
  /* @__PURE__ */ jsx(DataTableToolbar, { table, search, toolbar }),
@@ -14414,7 +14435,7 @@ function FormatToggle({ format, setFormat }) {
14414
14435
 
14415
14436
  // package.json
14416
14437
  var package_default = {
14417
- version: "3.0.2"};
14438
+ version: "4.0.0"};
14418
14439
  var SluggerContext = React5__default.createContext(null);
14419
14440
  function flattenText(nodes) {
14420
14441
  if (nodes == null || typeof nodes === "boolean") return "";
@@ -31760,6 +31781,6 @@ var languages = [
31760
31781
  "html"
31761
31782
  ];
31762
31783
 
31763
- export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Action2 as Action, Actions, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AreaChart, Artifact, ArtifactAction, ArtifactActions, ArtifactContent, ArtifactDescription, ArtifactHeader, ArtifactTitle, AspectRatio, AuthLayout, AvailableChartColors, Avatar, AvatarFallback, AvatarImage, Badge, BadgeButton, BarChart, BarList, BaseColorSwatches, Branch, BranchMessages, BranchNext, BranchPage, BranchPrevious, BranchSelector, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Breadcrumbs, Button2 as Button, Calendar, CalendarDayButton, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, CategoryBar, ChainOfThought, ChainOfThoughtContent, ChainOfThoughtHeader, ChainOfThoughtImage, ChainOfThoughtSearchResult, ChainOfThoughtSearchResults, ChainOfThoughtStep, ChartContainer, ChartLegend3 as ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip3 as ChartTooltip, ChartTooltipContent, Checkbox, CheckboxSmall, Code, CodeBlock, CodeBlockCopyButton, CodeDemo, CodeHighlight, Collapsible, CollapsibleContent2 as CollapsibleContent, CollapsibleTrigger2 as CollapsibleTrigger, ColorCard, ColorPairingTool, ColorSwatches, ColourScale, ComboChart, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, Context, ContextCacheUsage, ContextContent, ContextContentBody, ContextContentFooter, ContextContentHeader, ContextInputUsage, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, ContextOutputUsage, ContextReasoningUsage, ContextTrigger, Conversation, ConversationContent, ConversationEmptyState, ConversationScrollButton, DataTable, DataTableColumnHeader, DataTableFacetedFilter, DataTablePagination, DataTableToolbar, DataTableViewOptions, Description4 as Description, DescriptionDetails, DescriptionList, DescriptionTerm, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DonutChart, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, DynamicFavicon, ErrorMessage, ExpandableSearch, ExpandableSearchField, Field2 as Field, FieldGroup, FieldLabel, Fieldset2 as Fieldset, Footer, FooterAcknowledgement, FooterLegalLinks, FooterSmallPrint, FooterSocialLink, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, FormatToggle, GenerateInterpolatedColors, Header2 as Header, Heading, HeroBannerSimple, HeroBannerSupportingImage, HoverCard, HoverCardContent, HoverCardTrigger, Icons, Image4 as Image, InlineCitation, InlineCitationCard, InlineCitationCardBody, InlineCitationCardTrigger, InlineCitationCarousel, InlineCitationCarouselContent, InlineCitationCarouselHeader, InlineCitationCarouselIndex, InlineCitationCarouselItem, InlineCitationSource, InlineCitationText, Input, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, Label5 as Label, Legend6 as Legend, LineChart, Link, _List as List, Listbox2 as Listbox, ListboxDescription, ListboxLabel, ListboxOption2 as ListboxOption, Loader, Loading, Logo, MainNavigation, Masthead, MegaMenu, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, Message, MessageContent, MobileHeader, MobileSearch, MultiLevelPushMenu, NSWCard, NSWCardArrow, NSWCardDescription, NSWCardIcon, NSWCardImg, NSWCardTitle, Navbar, NavbarDivider, NavbarItem, NavbarLabel, NavbarSection, NavbarSpacer, Navigation, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuMainNavigation, NavigationMenuTrigger, NavigationMenuViewport, NotFound, OpenIn, OpenInChatGPT, OpenInClaude, OpenInContent, OpenInScira, OpenInT3, OpenInTrigger, OpenInv0, PageHeading, Pagination, PaginationGap, PaginationList, PaginationNext, PaginationPage, PaginationPrevious, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, PreWithCopy, PrevNextLinks, PrevNextLinksPageLink, Progress, ProgressBar, ProgressCircle, PromptInput, PromptInputActionAddAttachments, PromptInputActionMenu, PromptInputActionMenuContent, PromptInputActionMenuItem, PromptInputActionMenuTrigger, PromptInputAttachment, PromptInputAttachments, PromptInputBody, PromptInputButton, PromptInputSubmit, PromptInputTextarea, PromptInputToolbar, PromptInputTools, Prose, RadioGroup2 as RadioGroup, RadioGroupItem, Reasoning, ReasoningContent, ReasoningTrigger, ResizableHandle, ResizablePanel, ResizablePanelGroup, Response, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator4 as Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarLink, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarNavigation, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, SiteSearch, Skeleton, Slider, Social, Source, Sources, SourcesContent, SourcesTrigger, SparkAreaChart, SparkBarChart, SparkLineChart, Spinner, StepIndicator, StepNavigation, Strong, SubmitButton, Suggestion, Suggestions, Switch2 as Switch, SwitchField, SwitchGroup, TabNavigation, TabNavigationLink, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableOfContents, TableRow, Tabs2 as Tabs, TabsContent, TabsList, TabsTrigger, Task, TaskContent, TaskItem, TaskItemFile, TaskTrigger, Text, TextLink, Textarea, ThemeColorPalette, ThemeProvider, ThemeSelector, ThemeSwitcher, Toaster, TocContext, TocProvider, Toggle, ToggleGroup, ToggleGroupItem, Tool, ToolContent, ToolHeader, ToolInput, ToolOutput, Tooltip5 as Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, TopLevel, TouchTarget, Tracker, Tooltip3 as TremorTooltip, ViewToggle, WebPreview, WebPreviewBody, WebPreviewNavigation, WebPreviewUrl, Wrapper, aboriginal, addStartStopToColorArray, allPalettes, badgeVariants, brand, buttonVariants, camelCase, chartColors, cn, colorDataArray, colorThemes, colors, constructCategoryColors, createColorArray, createColorData, createFormStore, darkenColor, diverging, domToSimple, focusInput, focusRing, generateColorThemes, generateDataVisColors, getColorClassName, getColorValue, getHeadings, getNodeText, getSurroundingColors, getYAxisDomain, hasErrorInput, hasOnlyOneValueForKey, humaniseVariant, interpolateColors, isLightColor, kebabCase, languages, lightenColor, navigationMenuTriggerStyle, oklchConverter, progressBarVariants, renderColorOutput, renderColorOutputToDTFM, semantic, sequential, shades, themeIndices, themeTokens, toggleVariants, truncate, useActiveSectionObserver, useDisableToc, useFormField, useIsMobile, useOnWindowResize, usePageHeadings, usePromptInputAttachments, useSelectorHeight, useSidebar, useStickyOffset, useToc };
31784
+ export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Action2 as Action, Actions, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AreaChart, Artifact, ArtifactAction, ArtifactActions, ArtifactContent, ArtifactDescription, ArtifactHeader, ArtifactTitle, AspectRatio, AuthLayout, AvailableChartColors, Avatar, AvatarFallback, AvatarImage, Badge, BadgeButton, BarChart, BarList, BaseColorSwatches, Branch, BranchMessages, BranchNext, BranchPage, BranchPrevious, BranchSelector, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Breadcrumbs, Button2 as Button, Calendar, CalendarDayButton, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, CategoryBar, ChainOfThought, ChainOfThoughtContent, ChainOfThoughtHeader, ChainOfThoughtImage, ChainOfThoughtSearchResult, ChainOfThoughtSearchResults, ChainOfThoughtStep, ChartContainer, ChartLegend3 as ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip3 as ChartTooltip, ChartTooltipContent, Checkbox, CheckboxSmall, Code, CodeBlock, CodeBlockCopyButton, CodeDemo, CodeHighlight, Collapsible, CollapsibleContent2 as CollapsibleContent, CollapsibleTrigger2 as CollapsibleTrigger, ColorCard, ColorPairingTool, ColorSwatches, ColourScale, ComboChart, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, Context, ContextCacheUsage, ContextContent, ContextContentBody, ContextContentFooter, ContextContentHeader, ContextInputUsage, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, ContextOutputUsage, ContextReasoningUsage, ContextTrigger, Conversation, ConversationContent, ConversationEmptyState, ConversationScrollButton, DataTable, DataTableColumnHeader, DataTableFacetedFilter, DataTablePagination, DataTableToolbar, DataTableViewOptions, Description4 as Description, DescriptionDetails, DescriptionList, DescriptionTerm, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DonutChart, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, DynamicFavicon, ErrorMessage, ExpandableSearch, ExpandableSearchField, Field2 as Field, FieldGroup, FieldLabel, Fieldset2 as Fieldset, Footer, FooterAcknowledgement, FooterLegalLinks, FooterSmallPrint, FooterSocialLink, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, FormatToggle, GenerateInterpolatedColors, Header2 as Header, Heading, HeroBannerSimple, HeroBannerSupportingImage, HoverCard, HoverCardContent, HoverCardTrigger, Icons, Image4 as Image, InlineCitation, InlineCitationCard, InlineCitationCardBody, InlineCitationCardTrigger, InlineCitationCarousel, InlineCitationCarouselContent, InlineCitationCarouselHeader, InlineCitationCarouselIndex, InlineCitationCarouselItem, InlineCitationSource, InlineCitationText, Input, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, Label5 as Label, Legend6 as Legend, LineChart, Link, _List as List, Listbox2 as Listbox, ListboxDescription, ListboxLabel, ListboxOption2 as ListboxOption, Loader, Loading, Logo, MainNavigation, Masthead, MegaMenu, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, Message, MessageContent, MobileHeader, MobileSearch, MultiLevelPushMenu, NSWCard, NSWCardArrow, NSWCardDescription, NSWCardIcon, NSWCardImg, NSWCardTitle, Navbar, NavbarDivider, NavbarItem, NavbarLabel, NavbarSection, NavbarSpacer, Navigation, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuMainNavigation, NavigationMenuTrigger, NavigationMenuViewport, NotFound, OpenIn, OpenInChatGPT, OpenInClaude, OpenInContent, OpenInScira, OpenInT3, OpenInTrigger, OpenInv0, PageHeading, Pagination, PaginationGap, PaginationList, PaginationNext, PaginationPage, PaginationPrevious, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, PreWithCopy, PrevNextLinks, PrevNextLinksPageLink, Progress, ProgressBar, ProgressCircle, PromptInput, PromptInputActionAddAttachments, PromptInputActionMenu, PromptInputActionMenuContent, PromptInputActionMenuItem, PromptInputActionMenuTrigger, PromptInputAttachment, PromptInputAttachments, PromptInputBody, PromptInputButton, PromptInputSubmit, PromptInputTextarea, PromptInputToolbar, PromptInputTools, Prose, RadioGroup2 as RadioGroup, RadioGroupItem, Reasoning, ReasoningContent, ReasoningTrigger, ResizableHandle, ResizablePanel, ResizablePanelGroup, Response, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator4 as Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarLink, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarNavigation, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, SiteSearch, Skeleton, Slider, Social, Source, Sources, SourcesContent, SourcesTrigger, SparkAreaChart, SparkBarChart, SparkLineChart, Spinner, StepIndicator, StepNavigation, Strong, SubmitButton, Suggestion, Suggestions, Switch2 as Switch, SwitchField, SwitchGroup, TabNavigation, TabNavigationLink, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableOfContents, TableRow, Tabs2 as Tabs, TabsContent, TabsList, TabsTrigger, Task, TaskContent, TaskItem, TaskItemFile, TaskTrigger, Text, TextLink, Textarea, ThemeColorPalette, ThemeProvider, ThemeSelector, ThemeSwitcher, Toaster, TocContext, TocProvider, Toggle, ToggleGroup, ToggleGroupItem, Tool, ToolContent, ToolHeader, ToolInput, ToolOutput, Tooltip5 as Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, TopLevel, TouchTarget, Tracker, Tooltip3 as TremorTooltip, ViewToggle, WebPreview, WebPreviewBody, WebPreviewNavigation, WebPreviewUrl, Wrapper, aboriginal, addStartStopToColorArray, allPalettes, badgeVariants, brand, buttonVariants, camelCase, chartColors, cn, colorDataArray, colorThemes, colors, constructCategoryColors, createColorArray, createColorData, createFormStore, darkenColor, dataTableFeatures, diverging, domToSimple, focusInput, focusRing, generateColorThemes, generateDataVisColors, getColorClassName, getColorValue, getHeadings, getNodeText, getSurroundingColors, getYAxisDomain, hasErrorInput, hasOnlyOneValueForKey, humaniseVariant, interpolateColors, isLightColor, kebabCase, languages, lightenColor, navigationMenuTriggerStyle, oklchConverter, progressBarVariants, renderColorOutput, renderColorOutputToDTFM, semantic, sequential, shades, themeIndices, themeTokens, toggleVariants, truncate, useActiveSectionObserver, useDisableToc, useFormField, useIsMobile, useOnWindowResize, usePageHeadings, usePromptInputAttachments, useSelectorHeight, useSidebar, useStickyOffset, useToc };
31764
31785
  //# sourceMappingURL=index.js.map
31765
31786
  //# sourceMappingURL=index.js.map