@nswds/app 1.54.7 → 1.55.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/globals.css +70 -0
- package/dist/index.cjs +321 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +62 -1
- package/dist/index.d.ts +62 -1
- package/dist/index.js +317 -2
- package/dist/index.js.map +1 -1
- package/dist/styles.css +70 -0
- package/dist/styles.css.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -45,6 +45,7 @@ import { DayPicker, DayButton } from 'react-day-picker';
|
|
|
45
45
|
import useEmblaCarousel, { UseEmblaCarouselType } from 'embla-carousel-react';
|
|
46
46
|
import * as HoverCardPrimitive from '@radix-ui/react-hover-card';
|
|
47
47
|
import { OTPInput } from 'input-otp';
|
|
48
|
+
import { Table as Table$1, ColumnDef, Column } from '@tanstack/react-table';
|
|
48
49
|
import { ClassValue } from 'clsx';
|
|
49
50
|
import * as _sindresorhus_slugify from '@sindresorhus/slugify';
|
|
50
51
|
|
|
@@ -2007,6 +2008,66 @@ declare function SidebarMenuSubButton({ asChild, size, isActive, className, ...p
|
|
|
2007
2008
|
isActive?: boolean;
|
|
2008
2009
|
}): react_jsx_runtime.JSX.Element;
|
|
2009
2010
|
|
|
2011
|
+
type ToolbarValue = {
|
|
2012
|
+
value: string;
|
|
2013
|
+
label: string;
|
|
2014
|
+
icon?: React.ComponentType<{
|
|
2015
|
+
className?: string;
|
|
2016
|
+
}>;
|
|
2017
|
+
};
|
|
2018
|
+
interface FacetGroup {
|
|
2019
|
+
id: string;
|
|
2020
|
+
title: string;
|
|
2021
|
+
values: ToolbarValue[];
|
|
2022
|
+
}
|
|
2023
|
+
interface DataTableToolbarProps<TData> {
|
|
2024
|
+
table: Table$1<TData>;
|
|
2025
|
+
toolbar?: FacetGroup[];
|
|
2026
|
+
search?: {
|
|
2027
|
+
placeholder?: string;
|
|
2028
|
+
};
|
|
2029
|
+
}
|
|
2030
|
+
declare function DataTableToolbar<TData>({ search, toolbar, table }: DataTableToolbarProps<TData>): react_jsx_runtime.JSX.Element;
|
|
2031
|
+
|
|
2032
|
+
interface DataTableProps<TData, TValue> {
|
|
2033
|
+
columns: ColumnDef<TData, TValue>[];
|
|
2034
|
+
data: TData[];
|
|
2035
|
+
toolbar?: FacetGroup[];
|
|
2036
|
+
search?: {
|
|
2037
|
+
placeholder?: string;
|
|
2038
|
+
};
|
|
2039
|
+
}
|
|
2040
|
+
declare function DataTable<TData, TValue>({ search, toolbar, columns, data, }: DataTableProps<TData, TValue>): react_jsx_runtime.JSX.Element;
|
|
2041
|
+
|
|
2042
|
+
interface DataTableColumnHeaderProps<TData, TValue> extends React.HTMLAttributes<HTMLDivElement> {
|
|
2043
|
+
column: Column<TData, TValue>;
|
|
2044
|
+
title: string;
|
|
2045
|
+
}
|
|
2046
|
+
declare function DataTableColumnHeader<TData, TValue>({ column, title, className, }: DataTableColumnHeaderProps<TData, TValue>): react_jsx_runtime.JSX.Element;
|
|
2047
|
+
|
|
2048
|
+
interface DataTableFacetedFilterProps<TData, TValue> {
|
|
2049
|
+
column?: Column<TData, TValue>;
|
|
2050
|
+
title?: string;
|
|
2051
|
+
options: {
|
|
2052
|
+
label: string;
|
|
2053
|
+
value: string;
|
|
2054
|
+
icon?: React$1.ComponentType<{
|
|
2055
|
+
className?: string;
|
|
2056
|
+
}>;
|
|
2057
|
+
}[];
|
|
2058
|
+
}
|
|
2059
|
+
declare function DataTableFacetedFilter<TData, TValue>({ column, title, options, }: DataTableFacetedFilterProps<TData, TValue>): react_jsx_runtime.JSX.Element;
|
|
2060
|
+
|
|
2061
|
+
interface DataTablePaginationProps<TData> {
|
|
2062
|
+
table: Table$1<TData>;
|
|
2063
|
+
}
|
|
2064
|
+
declare function DataTablePagination<TData>({ table }: DataTablePaginationProps<TData>): react_jsx_runtime.JSX.Element;
|
|
2065
|
+
|
|
2066
|
+
interface DataTableViewOptionsProps<TData> {
|
|
2067
|
+
table: Table$1<TData>;
|
|
2068
|
+
}
|
|
2069
|
+
declare function DataTableViewOptions<TData>({ table }: DataTableViewOptionsProps<TData>): react_jsx_runtime.JSX.Element;
|
|
2070
|
+
|
|
2010
2071
|
declare function useIsMobile(): boolean;
|
|
2011
2072
|
|
|
2012
2073
|
declare function useDisableToc(): void;
|
|
@@ -2073,4 +2134,4 @@ declare const allPalettes: Palette[];
|
|
|
2073
2134
|
declare const colors: ColorThemes;
|
|
2074
2135
|
declare const colorThemes: ColorThemes;
|
|
2075
2136
|
|
|
2076
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, type AnimationState, AreaChart, type AreaChartEventProps, AspectRatio, type AuthButtonProps, AuthLayout, AvailableChartColors, type AvailableChartColorsKeys, Avatar, AvatarFallback, AvatarImage, Badge, BadgeButton, BarChart, type BarChartEventProps, BarList, type BarListProps, type BaseCodeData, BaseColorSwatches, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Breadcrumbs, type BreadcrumbsProps, Button$1 as Button, Calendar, CalendarDayButton, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, type CarouselApi, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, CategoryBar, type CategoryBarProps, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Checkbox, CheckboxSmall, Code, type CodeData, CodeDemo, type CodeDemoProps, CodeHighlight, type CodeHighlightProps, type CodeItem, type CodeVariant, Collapsible, CollapsibleContent, CollapsibleTrigger, type Color$1 as Color, ColorCard, type ColorCardProps, type ColorData, 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, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, 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, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, 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, HoverCard, HoverCardContent, HoverCardTrigger, type IFrameData, type IFrameMap, type IFrameOptions, type IFrameProps, type IconProps, Icons, Input, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, Label, type Language, type LayoutProps, Legend, LineChart, type LineChartEventProps, Link, _List as List, Listbox, ListboxDescription, ListboxLabel, ListboxOption, Logo, MainNavigation, Masthead, MegaMenu, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, MobileHeader, MobileSearch, MultiLevelPushMenu, type MultiLevelPushMenuProps, Navbar, NavbarDivider, NavbarItem, NavbarLabel, NavbarSection, NavbarSpacer, Navigation, type NavigationItem, type NavigationLink, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, type NavigationSection, type Output, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, type Palette, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, PreWithCopy, PrevNextLinks, PrevNextLinksPageLink, type PrevNextLinksProps, Progress, ProgressBar, type ProgressBarProps, ProgressCircle, type ProgressCircleProps, Prose, type PushNavigationItem, type PushNavigationLevel, RadioGroup, RadioGroupItem, ResizableHandle, ResizablePanel, ResizablePanelGroup, 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, SparkAreaChart, SparkBarChart, SparkLineChart, Spinner, StepIndicator, StepNavigation, Strong, type StructuredColor, Switch, SwitchField, SwitchGroup, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableOfContents, type TableOfContentsItem, type TableOfContentsProps, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Text, TextLink, type TextTypeProps, Textarea, type ThemeCategory, ThemeColorPalette, type ThemeMessage, type ThemeOption, ThemeProvider, ThemeSelector, type ThemeSelectorDropDownProps, type ThemeSelectorProps, ThemeSwitcher, Toaster, TocContext, type TocContextType, TocProvider, Toggle, ToggleGroup, ToggleGroupItem, 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, aboriginal, addStartStopToColorArray, allPalettes, badgeVariants, brand, buttonVariants$1 as buttonVariants, camelCase, chartColors, cn, type colorCategories, colorDataArray, colorThemes, colors, constructCategoryColors, createColorArray, createColorData, createFormStore, darkenColor, domToSimple, focusInput, focusRing, generateColorThemes, getColorClassName, getColorValue, getHeadings, getNodeText, getSurroundingColors, getYAxisDomain, hasErrorInput, hasOnlyOneValueForKey, humaniseVariant, interpolateColors, isLightColor, kebabCase, languages, lightenColor, navigationMenuTriggerStyle, oklchConverter, progressBarVariants, renderColorOutput, renderColorOutputToDTFM, semantic, shades, themeIndices, themeTokens, toggleVariants, truncate, useActiveSectionObserver, useDisableToc, useFormField, useIsMobile, useOnWindowResize, usePageHeadings, useSelectorHeight, useSidebar, useToc };
|
|
2137
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, type AnimationState, AreaChart, type AreaChartEventProps, AspectRatio, type AuthButtonProps, AuthLayout, AvailableChartColors, type AvailableChartColorsKeys, Avatar, AvatarFallback, AvatarImage, Badge, BadgeButton, BarChart, type BarChartEventProps, BarList, type BarListProps, type BaseCodeData, BaseColorSwatches, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Breadcrumbs, type BreadcrumbsProps, Button$1 as Button, Calendar, CalendarDayButton, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, type CarouselApi, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, CategoryBar, type CategoryBarProps, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Checkbox, CheckboxSmall, Code, type CodeData, CodeDemo, type CodeDemoProps, CodeHighlight, type CodeHighlightProps, type CodeItem, type CodeVariant, Collapsible, CollapsibleContent, CollapsibleTrigger, type Color$1 as Color, ColorCard, type ColorCardProps, type ColorData, 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, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, 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, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, 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, HoverCard, HoverCardContent, HoverCardTrigger, type IFrameData, type IFrameMap, type IFrameOptions, type IFrameProps, type IconProps, Icons, Input, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, Label, type Language, type LayoutProps, Legend, LineChart, type LineChartEventProps, Link, _List as List, Listbox, ListboxDescription, ListboxLabel, ListboxOption, Logo, MainNavigation, Masthead, MegaMenu, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, MobileHeader, MobileSearch, MultiLevelPushMenu, type MultiLevelPushMenuProps, Navbar, NavbarDivider, NavbarItem, NavbarLabel, NavbarSection, NavbarSpacer, Navigation, type NavigationItem, type NavigationLink, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, type NavigationSection, type Output, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, type Palette, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, PreWithCopy, PrevNextLinks, PrevNextLinksPageLink, type PrevNextLinksProps, Progress, ProgressBar, type ProgressBarProps, ProgressCircle, type ProgressCircleProps, Prose, type PushNavigationItem, type PushNavigationLevel, RadioGroup, RadioGroupItem, ResizableHandle, ResizablePanel, ResizablePanelGroup, 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, SparkAreaChart, SparkBarChart, SparkLineChart, Spinner, StepIndicator, StepNavigation, Strong, type StructuredColor, Switch, SwitchField, SwitchGroup, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableOfContents, type TableOfContentsItem, type TableOfContentsProps, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Text, TextLink, type TextTypeProps, Textarea, type ThemeCategory, ThemeColorPalette, type ThemeMessage, type ThemeOption, ThemeProvider, ThemeSelector, type ThemeSelectorDropDownProps, type ThemeSelectorProps, ThemeSwitcher, Toaster, TocContext, type TocContextType, TocProvider, Toggle, ToggleGroup, ToggleGroupItem, 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, aboriginal, addStartStopToColorArray, allPalettes, badgeVariants, brand, buttonVariants$1 as buttonVariants, camelCase, chartColors, cn, type colorCategories, colorDataArray, colorThemes, colors, constructCategoryColors, createColorArray, createColorData, createFormStore, darkenColor, domToSimple, focusInput, focusRing, generateColorThemes, getColorClassName, getColorValue, getHeadings, getNodeText, getSurroundingColors, getYAxisDomain, hasErrorInput, hasOnlyOneValueForKey, humaniseVariant, interpolateColors, isLightColor, kebabCase, languages, lightenColor, navigationMenuTriggerStyle, oklchConverter, progressBarVariants, renderColorOutput, renderColorOutputToDTFM, semantic, shades, themeIndices, themeTokens, toggleVariants, truncate, useActiveSectionObserver, useDisableToc, useFormField, useIsMobile, useOnWindowResize, usePageHeadings, useSelectorHeight, useSidebar, useToc };
|
package/dist/index.d.ts
CHANGED
|
@@ -45,6 +45,7 @@ import { DayPicker, DayButton } from 'react-day-picker';
|
|
|
45
45
|
import useEmblaCarousel, { UseEmblaCarouselType } from 'embla-carousel-react';
|
|
46
46
|
import * as HoverCardPrimitive from '@radix-ui/react-hover-card';
|
|
47
47
|
import { OTPInput } from 'input-otp';
|
|
48
|
+
import { Table as Table$1, ColumnDef, Column } from '@tanstack/react-table';
|
|
48
49
|
import { ClassValue } from 'clsx';
|
|
49
50
|
import * as _sindresorhus_slugify from '@sindresorhus/slugify';
|
|
50
51
|
|
|
@@ -2007,6 +2008,66 @@ declare function SidebarMenuSubButton({ asChild, size, isActive, className, ...p
|
|
|
2007
2008
|
isActive?: boolean;
|
|
2008
2009
|
}): react_jsx_runtime.JSX.Element;
|
|
2009
2010
|
|
|
2011
|
+
type ToolbarValue = {
|
|
2012
|
+
value: string;
|
|
2013
|
+
label: string;
|
|
2014
|
+
icon?: React.ComponentType<{
|
|
2015
|
+
className?: string;
|
|
2016
|
+
}>;
|
|
2017
|
+
};
|
|
2018
|
+
interface FacetGroup {
|
|
2019
|
+
id: string;
|
|
2020
|
+
title: string;
|
|
2021
|
+
values: ToolbarValue[];
|
|
2022
|
+
}
|
|
2023
|
+
interface DataTableToolbarProps<TData> {
|
|
2024
|
+
table: Table$1<TData>;
|
|
2025
|
+
toolbar?: FacetGroup[];
|
|
2026
|
+
search?: {
|
|
2027
|
+
placeholder?: string;
|
|
2028
|
+
};
|
|
2029
|
+
}
|
|
2030
|
+
declare function DataTableToolbar<TData>({ search, toolbar, table }: DataTableToolbarProps<TData>): react_jsx_runtime.JSX.Element;
|
|
2031
|
+
|
|
2032
|
+
interface DataTableProps<TData, TValue> {
|
|
2033
|
+
columns: ColumnDef<TData, TValue>[];
|
|
2034
|
+
data: TData[];
|
|
2035
|
+
toolbar?: FacetGroup[];
|
|
2036
|
+
search?: {
|
|
2037
|
+
placeholder?: string;
|
|
2038
|
+
};
|
|
2039
|
+
}
|
|
2040
|
+
declare function DataTable<TData, TValue>({ search, toolbar, columns, data, }: DataTableProps<TData, TValue>): react_jsx_runtime.JSX.Element;
|
|
2041
|
+
|
|
2042
|
+
interface DataTableColumnHeaderProps<TData, TValue> extends React.HTMLAttributes<HTMLDivElement> {
|
|
2043
|
+
column: Column<TData, TValue>;
|
|
2044
|
+
title: string;
|
|
2045
|
+
}
|
|
2046
|
+
declare function DataTableColumnHeader<TData, TValue>({ column, title, className, }: DataTableColumnHeaderProps<TData, TValue>): react_jsx_runtime.JSX.Element;
|
|
2047
|
+
|
|
2048
|
+
interface DataTableFacetedFilterProps<TData, TValue> {
|
|
2049
|
+
column?: Column<TData, TValue>;
|
|
2050
|
+
title?: string;
|
|
2051
|
+
options: {
|
|
2052
|
+
label: string;
|
|
2053
|
+
value: string;
|
|
2054
|
+
icon?: React$1.ComponentType<{
|
|
2055
|
+
className?: string;
|
|
2056
|
+
}>;
|
|
2057
|
+
}[];
|
|
2058
|
+
}
|
|
2059
|
+
declare function DataTableFacetedFilter<TData, TValue>({ column, title, options, }: DataTableFacetedFilterProps<TData, TValue>): react_jsx_runtime.JSX.Element;
|
|
2060
|
+
|
|
2061
|
+
interface DataTablePaginationProps<TData> {
|
|
2062
|
+
table: Table$1<TData>;
|
|
2063
|
+
}
|
|
2064
|
+
declare function DataTablePagination<TData>({ table }: DataTablePaginationProps<TData>): react_jsx_runtime.JSX.Element;
|
|
2065
|
+
|
|
2066
|
+
interface DataTableViewOptionsProps<TData> {
|
|
2067
|
+
table: Table$1<TData>;
|
|
2068
|
+
}
|
|
2069
|
+
declare function DataTableViewOptions<TData>({ table }: DataTableViewOptionsProps<TData>): react_jsx_runtime.JSX.Element;
|
|
2070
|
+
|
|
2010
2071
|
declare function useIsMobile(): boolean;
|
|
2011
2072
|
|
|
2012
2073
|
declare function useDisableToc(): void;
|
|
@@ -2073,4 +2134,4 @@ declare const allPalettes: Palette[];
|
|
|
2073
2134
|
declare const colors: ColorThemes;
|
|
2074
2135
|
declare const colorThemes: ColorThemes;
|
|
2075
2136
|
|
|
2076
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, type AnimationState, AreaChart, type AreaChartEventProps, AspectRatio, type AuthButtonProps, AuthLayout, AvailableChartColors, type AvailableChartColorsKeys, Avatar, AvatarFallback, AvatarImage, Badge, BadgeButton, BarChart, type BarChartEventProps, BarList, type BarListProps, type BaseCodeData, BaseColorSwatches, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Breadcrumbs, type BreadcrumbsProps, Button$1 as Button, Calendar, CalendarDayButton, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, type CarouselApi, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, CategoryBar, type CategoryBarProps, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Checkbox, CheckboxSmall, Code, type CodeData, CodeDemo, type CodeDemoProps, CodeHighlight, type CodeHighlightProps, type CodeItem, type CodeVariant, Collapsible, CollapsibleContent, CollapsibleTrigger, type Color$1 as Color, ColorCard, type ColorCardProps, type ColorData, 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, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, 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, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, 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, HoverCard, HoverCardContent, HoverCardTrigger, type IFrameData, type IFrameMap, type IFrameOptions, type IFrameProps, type IconProps, Icons, Input, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, Label, type Language, type LayoutProps, Legend, LineChart, type LineChartEventProps, Link, _List as List, Listbox, ListboxDescription, ListboxLabel, ListboxOption, Logo, MainNavigation, Masthead, MegaMenu, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, MobileHeader, MobileSearch, MultiLevelPushMenu, type MultiLevelPushMenuProps, Navbar, NavbarDivider, NavbarItem, NavbarLabel, NavbarSection, NavbarSpacer, Navigation, type NavigationItem, type NavigationLink, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, type NavigationSection, type Output, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, type Palette, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, PreWithCopy, PrevNextLinks, PrevNextLinksPageLink, type PrevNextLinksProps, Progress, ProgressBar, type ProgressBarProps, ProgressCircle, type ProgressCircleProps, Prose, type PushNavigationItem, type PushNavigationLevel, RadioGroup, RadioGroupItem, ResizableHandle, ResizablePanel, ResizablePanelGroup, 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, SparkAreaChart, SparkBarChart, SparkLineChart, Spinner, StepIndicator, StepNavigation, Strong, type StructuredColor, Switch, SwitchField, SwitchGroup, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableOfContents, type TableOfContentsItem, type TableOfContentsProps, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Text, TextLink, type TextTypeProps, Textarea, type ThemeCategory, ThemeColorPalette, type ThemeMessage, type ThemeOption, ThemeProvider, ThemeSelector, type ThemeSelectorDropDownProps, type ThemeSelectorProps, ThemeSwitcher, Toaster, TocContext, type TocContextType, TocProvider, Toggle, ToggleGroup, ToggleGroupItem, 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, aboriginal, addStartStopToColorArray, allPalettes, badgeVariants, brand, buttonVariants$1 as buttonVariants, camelCase, chartColors, cn, type colorCategories, colorDataArray, colorThemes, colors, constructCategoryColors, createColorArray, createColorData, createFormStore, darkenColor, domToSimple, focusInput, focusRing, generateColorThemes, getColorClassName, getColorValue, getHeadings, getNodeText, getSurroundingColors, getYAxisDomain, hasErrorInput, hasOnlyOneValueForKey, humaniseVariant, interpolateColors, isLightColor, kebabCase, languages, lightenColor, navigationMenuTriggerStyle, oklchConverter, progressBarVariants, renderColorOutput, renderColorOutputToDTFM, semantic, shades, themeIndices, themeTokens, toggleVariants, truncate, useActiveSectionObserver, useDisableToc, useFormField, useIsMobile, useOnWindowResize, usePageHeadings, useSelectorHeight, useSidebar, useToc };
|
|
2137
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, type AnimationState, AreaChart, type AreaChartEventProps, AspectRatio, type AuthButtonProps, AuthLayout, AvailableChartColors, type AvailableChartColorsKeys, Avatar, AvatarFallback, AvatarImage, Badge, BadgeButton, BarChart, type BarChartEventProps, BarList, type BarListProps, type BaseCodeData, BaseColorSwatches, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Breadcrumbs, type BreadcrumbsProps, Button$1 as Button, Calendar, CalendarDayButton, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, type CarouselApi, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, CategoryBar, type CategoryBarProps, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Checkbox, CheckboxSmall, Code, type CodeData, CodeDemo, type CodeDemoProps, CodeHighlight, type CodeHighlightProps, type CodeItem, type CodeVariant, Collapsible, CollapsibleContent, CollapsibleTrigger, type Color$1 as Color, ColorCard, type ColorCardProps, type ColorData, 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, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, 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, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, 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, HoverCard, HoverCardContent, HoverCardTrigger, type IFrameData, type IFrameMap, type IFrameOptions, type IFrameProps, type IconProps, Icons, Input, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, Label, type Language, type LayoutProps, Legend, LineChart, type LineChartEventProps, Link, _List as List, Listbox, ListboxDescription, ListboxLabel, ListboxOption, Logo, MainNavigation, Masthead, MegaMenu, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, MobileHeader, MobileSearch, MultiLevelPushMenu, type MultiLevelPushMenuProps, Navbar, NavbarDivider, NavbarItem, NavbarLabel, NavbarSection, NavbarSpacer, Navigation, type NavigationItem, type NavigationLink, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, type NavigationSection, type Output, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, type Palette, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, PreWithCopy, PrevNextLinks, PrevNextLinksPageLink, type PrevNextLinksProps, Progress, ProgressBar, type ProgressBarProps, ProgressCircle, type ProgressCircleProps, Prose, type PushNavigationItem, type PushNavigationLevel, RadioGroup, RadioGroupItem, ResizableHandle, ResizablePanel, ResizablePanelGroup, 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, SparkAreaChart, SparkBarChart, SparkLineChart, Spinner, StepIndicator, StepNavigation, Strong, type StructuredColor, Switch, SwitchField, SwitchGroup, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableOfContents, type TableOfContentsItem, type TableOfContentsProps, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Text, TextLink, type TextTypeProps, Textarea, type ThemeCategory, ThemeColorPalette, type ThemeMessage, type ThemeOption, ThemeProvider, ThemeSelector, type ThemeSelectorDropDownProps, type ThemeSelectorProps, ThemeSwitcher, Toaster, TocContext, type TocContextType, TocProvider, Toggle, ToggleGroup, ToggleGroupItem, 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, aboriginal, addStartStopToColorArray, allPalettes, badgeVariants, brand, buttonVariants$1 as buttonVariants, camelCase, chartColors, cn, type colorCategories, colorDataArray, colorThemes, colors, constructCategoryColors, createColorArray, createColorData, createFormStore, darkenColor, domToSimple, focusInput, focusRing, generateColorThemes, getColorClassName, getColorValue, getHeadings, getNodeText, getSurroundingColors, getYAxisDomain, hasErrorInput, hasOnlyOneValueForKey, humaniseVariant, interpolateColors, isLightColor, kebabCase, languages, lightenColor, navigationMenuTriggerStyle, oklchConverter, progressBarVariants, renderColorOutput, renderColorOutputToDTFM, semantic, shades, themeIndices, themeTokens, toggleVariants, truncate, useActiveSectionObserver, useDisableToc, useFormField, useIsMobile, useOnWindowResize, usePageHeadings, useSelectorHeight, useSidebar, useToc };
|
package/dist/index.js
CHANGED
|
@@ -14,6 +14,7 @@ import * as culori from 'culori';
|
|
|
14
14
|
import { Slot } from '@radix-ui/react-slot';
|
|
15
15
|
import { usePathname, useRouter, useSearchParams } from 'next/navigation';
|
|
16
16
|
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
17
|
+
import { DropdownMenuTrigger as DropdownMenuTrigger$1 } from '@radix-ui/react-dropdown-menu';
|
|
17
18
|
import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
|
|
18
19
|
import { useTheme, ThemeProvider as ThemeProvider$1 } from 'next-themes';
|
|
19
20
|
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
|
@@ -57,6 +58,7 @@ import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
|
|
|
57
58
|
import { getDefaultClassNames, DayPicker } from 'react-day-picker';
|
|
58
59
|
import useEmblaCarousel from 'embla-carousel-react';
|
|
59
60
|
import { OTPInput, OTPInputContext } from 'input-otp';
|
|
61
|
+
import { useReactTable, getFacetedUniqueValues, getFacetedRowModel, getSortedRowModel, getPaginationRowModel, getFilteredRowModel, getCoreRowModel, flexRender } from '@tanstack/react-table';
|
|
60
62
|
import { slugifyWithCounter } from '@sindresorhus/slugify';
|
|
61
63
|
import { create } from 'zustand';
|
|
62
64
|
import { persist, createJSONStorage } from 'zustand/middleware';
|
|
@@ -7818,7 +7820,7 @@ function Heading({
|
|
|
7818
7820
|
|
|
7819
7821
|
// package.json
|
|
7820
7822
|
var package_default = {
|
|
7821
|
-
version: "1.54.
|
|
7823
|
+
version: "1.54.7"};
|
|
7822
7824
|
function Logo(props) {
|
|
7823
7825
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
7824
7826
|
/* @__PURE__ */ jsx("span", { className: "sr-only", children: "NSW Government" }),
|
|
@@ -24096,6 +24098,319 @@ function SidebarMenuSubButton({
|
|
|
24096
24098
|
}
|
|
24097
24099
|
);
|
|
24098
24100
|
}
|
|
24101
|
+
function DataTablePagination({ table }) {
|
|
24102
|
+
return /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between px-2", children: [
|
|
24103
|
+
/* @__PURE__ */ jsxs("div", { className: "text-muted-foreground flex-1 text-sm", children: [
|
|
24104
|
+
table.getFilteredSelectedRowModel().rows.length,
|
|
24105
|
+
" of",
|
|
24106
|
+
" ",
|
|
24107
|
+
table.getFilteredRowModel().rows.length,
|
|
24108
|
+
" row(s) selected."
|
|
24109
|
+
] }),
|
|
24110
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center space-x-6 lg:space-x-8", children: [
|
|
24111
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center space-x-2", children: [
|
|
24112
|
+
/* @__PURE__ */ jsx("p", { className: "flex-1 text-sm font-medium", children: "Rows per page" }),
|
|
24113
|
+
/* @__PURE__ */ jsxs(
|
|
24114
|
+
Select,
|
|
24115
|
+
{
|
|
24116
|
+
value: `${table.getState().pagination.pageSize}`,
|
|
24117
|
+
onValueChange: (value) => {
|
|
24118
|
+
table.setPageSize(Number(value));
|
|
24119
|
+
},
|
|
24120
|
+
children: [
|
|
24121
|
+
/* @__PURE__ */ jsx(SelectTrigger, { className: "w-[80px]", children: /* @__PURE__ */ jsx(SelectValue, { placeholder: table.getState().pagination.pageSize }) }),
|
|
24122
|
+
/* @__PURE__ */ jsx(SelectContent, { side: "top", children: [10, 20, 30, 40, 50].map((pageSize) => /* @__PURE__ */ jsx(SelectItem, { value: `${pageSize}`, children: pageSize }, pageSize)) })
|
|
24123
|
+
]
|
|
24124
|
+
}
|
|
24125
|
+
)
|
|
24126
|
+
] }),
|
|
24127
|
+
/* @__PURE__ */ jsxs("div", { className: "flex w-[100px] items-center justify-center text-sm font-medium", children: [
|
|
24128
|
+
"Page ",
|
|
24129
|
+
table.getState().pagination.pageIndex + 1,
|
|
24130
|
+
" of ",
|
|
24131
|
+
table.getPageCount()
|
|
24132
|
+
] }),
|
|
24133
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center space-x-2", children: [
|
|
24134
|
+
/* @__PURE__ */ jsxs(
|
|
24135
|
+
Button2,
|
|
24136
|
+
{
|
|
24137
|
+
variant: "outline",
|
|
24138
|
+
size: "icon",
|
|
24139
|
+
className: "hidden p-0 lg:flex",
|
|
24140
|
+
onClick: () => table.setPageIndex(0),
|
|
24141
|
+
disabled: !table.getCanPreviousPage(),
|
|
24142
|
+
children: [
|
|
24143
|
+
/* @__PURE__ */ jsx("span", { className: "sr-only", children: "Go to first page" }),
|
|
24144
|
+
/* @__PURE__ */ jsx(Icons.chevron_left, {})
|
|
24145
|
+
]
|
|
24146
|
+
}
|
|
24147
|
+
),
|
|
24148
|
+
/* @__PURE__ */ jsxs(
|
|
24149
|
+
Button2,
|
|
24150
|
+
{
|
|
24151
|
+
variant: "outline",
|
|
24152
|
+
size: "icon",
|
|
24153
|
+
className: "p-0",
|
|
24154
|
+
onClick: () => table.previousPage(),
|
|
24155
|
+
disabled: !table.getCanPreviousPage(),
|
|
24156
|
+
children: [
|
|
24157
|
+
/* @__PURE__ */ jsx("span", { className: "sr-only", children: "Go to previous page" }),
|
|
24158
|
+
/* @__PURE__ */ jsx(Icons.chevron_left, {})
|
|
24159
|
+
]
|
|
24160
|
+
}
|
|
24161
|
+
),
|
|
24162
|
+
/* @__PURE__ */ jsxs(
|
|
24163
|
+
Button2,
|
|
24164
|
+
{
|
|
24165
|
+
variant: "outline",
|
|
24166
|
+
size: "icon",
|
|
24167
|
+
className: "p-0",
|
|
24168
|
+
onClick: () => table.nextPage(),
|
|
24169
|
+
disabled: !table.getCanNextPage(),
|
|
24170
|
+
children: [
|
|
24171
|
+
/* @__PURE__ */ jsx("span", { className: "sr-only", children: "Go to next page" }),
|
|
24172
|
+
/* @__PURE__ */ jsx(Icons.chevron_right, {})
|
|
24173
|
+
]
|
|
24174
|
+
}
|
|
24175
|
+
),
|
|
24176
|
+
/* @__PURE__ */ jsxs(
|
|
24177
|
+
Button2,
|
|
24178
|
+
{
|
|
24179
|
+
variant: "outline",
|
|
24180
|
+
size: "icon",
|
|
24181
|
+
className: "hidden p-0 lg:flex",
|
|
24182
|
+
onClick: () => table.setPageIndex(table.getPageCount() - 1),
|
|
24183
|
+
disabled: !table.getCanNextPage(),
|
|
24184
|
+
children: [
|
|
24185
|
+
/* @__PURE__ */ jsx("span", { className: "sr-only", children: "Go to last page" }),
|
|
24186
|
+
/* @__PURE__ */ jsx(Icons.chevron_right, {})
|
|
24187
|
+
]
|
|
24188
|
+
}
|
|
24189
|
+
)
|
|
24190
|
+
] })
|
|
24191
|
+
] })
|
|
24192
|
+
] });
|
|
24193
|
+
}
|
|
24194
|
+
function DataTableFacetedFilter({
|
|
24195
|
+
column,
|
|
24196
|
+
title,
|
|
24197
|
+
options
|
|
24198
|
+
}) {
|
|
24199
|
+
const facets = column?.getFacetedUniqueValues();
|
|
24200
|
+
const selectedValues = new Set(column?.getFilterValue());
|
|
24201
|
+
return /* @__PURE__ */ jsxs(Popover, { children: [
|
|
24202
|
+
/* @__PURE__ */ jsx(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsxs(Button2, { variant: "outline", size: "sm", className: "border-dashed", children: [
|
|
24203
|
+
/* @__PURE__ */ jsx(Icons.add, {}),
|
|
24204
|
+
title,
|
|
24205
|
+
selectedValues?.size > 0 && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
24206
|
+
/* @__PURE__ */ jsx(Separator4, { orientation: "vertical", className: "mx-2 h-4" }),
|
|
24207
|
+
/* @__PURE__ */ jsx(Badge, { variant: "soft", className: "hidden lg:block", children: selectedValues.size }),
|
|
24208
|
+
/* @__PURE__ */ jsx("div", { className: "hidden space-x-1 lg:flex", children: selectedValues.size > 2 ? /* @__PURE__ */ jsxs(Badge, { variant: "soft", className: "rounded-sm px-1 font-normal", children: [
|
|
24209
|
+
selectedValues.size,
|
|
24210
|
+
" selected"
|
|
24211
|
+
] }) : options.filter((option) => selectedValues.has(option.value)).map((option) => /* @__PURE__ */ jsx(
|
|
24212
|
+
Badge,
|
|
24213
|
+
{
|
|
24214
|
+
variant: "soft",
|
|
24215
|
+
className: "rounded-sm px-1 font-normal",
|
|
24216
|
+
children: option.label
|
|
24217
|
+
},
|
|
24218
|
+
option.value
|
|
24219
|
+
)) })
|
|
24220
|
+
] })
|
|
24221
|
+
] }) }),
|
|
24222
|
+
/* @__PURE__ */ jsx(PopoverContent, { className: "w-[200px] p-0", align: "start", children: /* @__PURE__ */ jsxs(Command, { children: [
|
|
24223
|
+
/* @__PURE__ */ jsx(CommandInput, { placeholder: title }),
|
|
24224
|
+
/* @__PURE__ */ jsxs(CommandList, { children: [
|
|
24225
|
+
/* @__PURE__ */ jsx(CommandEmpty, { children: "No results found." }),
|
|
24226
|
+
/* @__PURE__ */ jsx(CommandGroup, { children: options.map((option) => {
|
|
24227
|
+
const isSelected = selectedValues.has(option.value);
|
|
24228
|
+
return /* @__PURE__ */ jsxs(
|
|
24229
|
+
CommandItem,
|
|
24230
|
+
{
|
|
24231
|
+
onSelect: () => {
|
|
24232
|
+
if (isSelected) {
|
|
24233
|
+
selectedValues.delete(option.value);
|
|
24234
|
+
} else {
|
|
24235
|
+
selectedValues.add(option.value);
|
|
24236
|
+
}
|
|
24237
|
+
const filterValues = Array.from(selectedValues);
|
|
24238
|
+
column?.setFilterValue(filterValues.length ? filterValues : void 0);
|
|
24239
|
+
},
|
|
24240
|
+
children: [
|
|
24241
|
+
/* @__PURE__ */ jsx(
|
|
24242
|
+
"div",
|
|
24243
|
+
{
|
|
24244
|
+
className: cn(
|
|
24245
|
+
"border-grey-600 mr-2 flex h-4 w-4 items-center justify-center rounded-sm border",
|
|
24246
|
+
isSelected ? "bg-primary-600 border-primary-600 text-primary-foreground" : "opacity-50 [&_svg]:invisible"
|
|
24247
|
+
),
|
|
24248
|
+
children: /* @__PURE__ */ jsx(Icons.check, { className: "text-white" })
|
|
24249
|
+
}
|
|
24250
|
+
),
|
|
24251
|
+
option.icon && /* @__PURE__ */ jsx(option.icon, { className: "text-muted-foreground mr-2 h-4 w-4" }),
|
|
24252
|
+
/* @__PURE__ */ jsx("span", { children: option.label }),
|
|
24253
|
+
facets?.get(option.value) && /* @__PURE__ */ jsx("span", { className: "ml-auto flex h-4 w-4 items-center justify-center font-mono text-xs", children: facets.get(option.value) })
|
|
24254
|
+
]
|
|
24255
|
+
},
|
|
24256
|
+
option.value
|
|
24257
|
+
);
|
|
24258
|
+
}) }),
|
|
24259
|
+
selectedValues.size > 0 && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
24260
|
+
/* @__PURE__ */ jsx(CommandSeparator, {}),
|
|
24261
|
+
/* @__PURE__ */ jsx(CommandGroup, { children: /* @__PURE__ */ jsx(
|
|
24262
|
+
CommandItem,
|
|
24263
|
+
{
|
|
24264
|
+
onSelect: () => column?.setFilterValue(void 0),
|
|
24265
|
+
className: "justify-center text-center",
|
|
24266
|
+
children: "Clear filters"
|
|
24267
|
+
}
|
|
24268
|
+
) })
|
|
24269
|
+
] })
|
|
24270
|
+
] })
|
|
24271
|
+
] }) })
|
|
24272
|
+
] });
|
|
24273
|
+
}
|
|
24274
|
+
function DataTableViewOptions({ table }) {
|
|
24275
|
+
return /* @__PURE__ */ jsxs(DropdownMenu, { children: [
|
|
24276
|
+
/* @__PURE__ */ jsx(DropdownMenuTrigger$1, { asChild: true, children: /* @__PURE__ */ jsxs(Button2, { variant: "outline", size: "sm", className: "nsw:ml-auto nsw:hidden nsw:lg:flex", children: [
|
|
24277
|
+
/* @__PURE__ */ jsx(Icons.tune, {}),
|
|
24278
|
+
"View"
|
|
24279
|
+
] }) }),
|
|
24280
|
+
/* @__PURE__ */ jsxs(DropdownMenuContent, { align: "end", className: "nsw:w-[150px]", children: [
|
|
24281
|
+
/* @__PURE__ */ jsx(DropdownMenuLabel, { children: "Toggle columns" }),
|
|
24282
|
+
/* @__PURE__ */ jsx(DropdownMenuSeparator, {}),
|
|
24283
|
+
table.getAllColumns().filter((column) => typeof column.accessorFn !== "undefined" && column.getCanHide()).map((column) => {
|
|
24284
|
+
return /* @__PURE__ */ jsx(
|
|
24285
|
+
DropdownMenuCheckboxItem,
|
|
24286
|
+
{
|
|
24287
|
+
className: "nsw:capitalize",
|
|
24288
|
+
checked: column.getIsVisible(),
|
|
24289
|
+
onCheckedChange: (value) => column.toggleVisibility(!!value),
|
|
24290
|
+
children: column.id
|
|
24291
|
+
},
|
|
24292
|
+
column.id
|
|
24293
|
+
);
|
|
24294
|
+
})
|
|
24295
|
+
] })
|
|
24296
|
+
] });
|
|
24297
|
+
}
|
|
24298
|
+
function DataTableToolbar({ search, toolbar, table }) {
|
|
24299
|
+
const isFiltered = table.getState().columnFilters.length > 0;
|
|
24300
|
+
return /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
|
|
24301
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-1 items-center space-x-2", children: [
|
|
24302
|
+
/* @__PURE__ */ jsx(
|
|
24303
|
+
Input,
|
|
24304
|
+
{
|
|
24305
|
+
type: "search",
|
|
24306
|
+
name: "global-filter",
|
|
24307
|
+
placeholder: search?.placeholder ?? `Filter...`,
|
|
24308
|
+
value: table.getState().globalFilter ?? "",
|
|
24309
|
+
onChange: (event) => table.setGlobalFilter(event.target.value),
|
|
24310
|
+
className: "h-10 w-[184px] lg:w-[280px]"
|
|
24311
|
+
}
|
|
24312
|
+
),
|
|
24313
|
+
toolbar && toolbar.map((group) => /* @__PURE__ */ jsx(
|
|
24314
|
+
DataTableFacetedFilter,
|
|
24315
|
+
{
|
|
24316
|
+
column: table.getColumn(group.id),
|
|
24317
|
+
title: group.title,
|
|
24318
|
+
options: group.values
|
|
24319
|
+
},
|
|
24320
|
+
group.id
|
|
24321
|
+
)),
|
|
24322
|
+
isFiltered && /* @__PURE__ */ jsxs(Button2, { variant: "ghost", onClick: () => table.resetColumnFilters(), children: [
|
|
24323
|
+
"Reset",
|
|
24324
|
+
/* @__PURE__ */ jsx(Icons.close, {})
|
|
24325
|
+
] })
|
|
24326
|
+
] }),
|
|
24327
|
+
/* @__PURE__ */ jsx(DataTableViewOptions, { table })
|
|
24328
|
+
] });
|
|
24329
|
+
}
|
|
24330
|
+
function DataTable({
|
|
24331
|
+
search,
|
|
24332
|
+
toolbar,
|
|
24333
|
+
columns,
|
|
24334
|
+
data
|
|
24335
|
+
}) {
|
|
24336
|
+
const [rowSelection, setRowSelection] = React18.useState({});
|
|
24337
|
+
const [columnVisibility, setColumnVisibility] = React18.useState({});
|
|
24338
|
+
const [columnFilters, setColumnFilters] = React18.useState([]);
|
|
24339
|
+
const [sorting, setSorting] = React18.useState([]);
|
|
24340
|
+
const [globalFilter, setGlobalFilter] = React18.useState("");
|
|
24341
|
+
const table = useReactTable({
|
|
24342
|
+
data,
|
|
24343
|
+
columns,
|
|
24344
|
+
state: {
|
|
24345
|
+
globalFilter,
|
|
24346
|
+
sorting,
|
|
24347
|
+
columnVisibility,
|
|
24348
|
+
rowSelection,
|
|
24349
|
+
columnFilters
|
|
24350
|
+
},
|
|
24351
|
+
enableRowSelection: true,
|
|
24352
|
+
onRowSelectionChange: setRowSelection,
|
|
24353
|
+
onSortingChange: setSorting,
|
|
24354
|
+
onColumnFiltersChange: setColumnFilters,
|
|
24355
|
+
onColumnVisibilityChange: setColumnVisibility,
|
|
24356
|
+
onGlobalFilterChange: setGlobalFilter,
|
|
24357
|
+
globalFilterFn: "includesString",
|
|
24358
|
+
getCoreRowModel: getCoreRowModel(),
|
|
24359
|
+
getFilteredRowModel: getFilteredRowModel(),
|
|
24360
|
+
getPaginationRowModel: getPaginationRowModel(),
|
|
24361
|
+
getSortedRowModel: getSortedRowModel(),
|
|
24362
|
+
getFacetedRowModel: getFacetedRowModel(),
|
|
24363
|
+
getFacetedUniqueValues: getFacetedUniqueValues()
|
|
24364
|
+
});
|
|
24365
|
+
return /* @__PURE__ */ jsxs("div", { className: "space-y-4 p-1", children: [
|
|
24366
|
+
/* @__PURE__ */ jsx(DataTableToolbar, { table, search, toolbar }),
|
|
24367
|
+
/* @__PURE__ */ jsx("div", { className: "rounded-md border", children: /* @__PURE__ */ jsxs(Table, { children: [
|
|
24368
|
+
/* @__PURE__ */ jsx(TableHeader, { children: table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ jsx(TableRow, { children: headerGroup.headers.map((header) => {
|
|
24369
|
+
return /* @__PURE__ */ jsx(TableHead, { colSpan: header.colSpan, children: header.isPlaceholder ? null : flexRender(header.column.columnDef.header, header.getContext()) }, header.id);
|
|
24370
|
+
}) }, headerGroup.id)) }),
|
|
24371
|
+
/* @__PURE__ */ jsx(TableBody, { children: table.getRowModel().rows?.length ? table.getRowModel().rows.map((row) => /* @__PURE__ */ jsx(
|
|
24372
|
+
TableRow,
|
|
24373
|
+
{
|
|
24374
|
+
"data-state": row.getIsSelected() && "selected",
|
|
24375
|
+
className: "relative",
|
|
24376
|
+
children: row.getVisibleCells().map((cell) => /* @__PURE__ */ jsx(TableCell, { children: flexRender(cell.column.columnDef.cell, cell.getContext()) }, cell.id))
|
|
24377
|
+
},
|
|
24378
|
+
row.id
|
|
24379
|
+
)) : /* @__PURE__ */ jsx(TableRow, { children: /* @__PURE__ */ jsx(TableCell, { colSpan: columns.length, className: "h-24 text-center", children: "No results." }) }) })
|
|
24380
|
+
] }) }),
|
|
24381
|
+
/* @__PURE__ */ jsx(DataTablePagination, { table })
|
|
24382
|
+
] });
|
|
24383
|
+
}
|
|
24384
|
+
function DataTableColumnHeader({
|
|
24385
|
+
column,
|
|
24386
|
+
title,
|
|
24387
|
+
className
|
|
24388
|
+
}) {
|
|
24389
|
+
if (!column.getCanSort()) {
|
|
24390
|
+
return /* @__PURE__ */ jsx("div", { className: cn(className), children: title });
|
|
24391
|
+
}
|
|
24392
|
+
return /* @__PURE__ */ jsx("div", { className: cn("flex items-center space-x-2", className), children: /* @__PURE__ */ jsxs(DropdownMenu, { children: [
|
|
24393
|
+
/* @__PURE__ */ jsx(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsxs(Button2, { variant: "ghost", size: "sm", className: "data-[state=open]:bg-accent -ml-3", children: [
|
|
24394
|
+
/* @__PURE__ */ jsx("span", { children: title }),
|
|
24395
|
+
column.getIsSorted() === "desc" ? /* @__PURE__ */ jsx(Icons.south, {}) : column.getIsSorted() === "asc" ? /* @__PURE__ */ jsx(Icons.north, {}) : /* @__PURE__ */ jsx(Icons.unfold_more, {})
|
|
24396
|
+
] }) }),
|
|
24397
|
+
/* @__PURE__ */ jsxs(DropdownMenuContent, { align: "start", children: [
|
|
24398
|
+
/* @__PURE__ */ jsxs(DropdownMenuItem, { onClick: () => column.toggleSorting(false), children: [
|
|
24399
|
+
/* @__PURE__ */ jsx(Icons.south, { className: "text-muted-foreground/70 h-3.5 w-3.5" }),
|
|
24400
|
+
"Asc"
|
|
24401
|
+
] }),
|
|
24402
|
+
/* @__PURE__ */ jsxs(DropdownMenuItem, { onClick: () => column.toggleSorting(true), children: [
|
|
24403
|
+
/* @__PURE__ */ jsx(Icons.north, { className: "text-muted-foreground/70 h-3.5 w-3.5" }),
|
|
24404
|
+
"Desc"
|
|
24405
|
+
] }),
|
|
24406
|
+
/* @__PURE__ */ jsx(DropdownMenuSeparator, {}),
|
|
24407
|
+
/* @__PURE__ */ jsxs(DropdownMenuItem, { onClick: () => column.toggleVisibility(false), children: [
|
|
24408
|
+
/* @__PURE__ */ jsx(Icons.eye_off, { className: "text-muted-foreground/70 h-3.5 w-3.5" }),
|
|
24409
|
+
"Hide"
|
|
24410
|
+
] })
|
|
24411
|
+
] })
|
|
24412
|
+
] }) });
|
|
24413
|
+
}
|
|
24099
24414
|
var useIsomorphicLayoutEffect2 = typeof window !== "undefined" ? useLayoutEffect : useEffect;
|
|
24100
24415
|
function useDisableToc() {
|
|
24101
24416
|
const { setToc } = useToc();
|
|
@@ -24237,6 +24552,6 @@ var languages = [
|
|
|
24237
24552
|
"html"
|
|
24238
24553
|
];
|
|
24239
24554
|
|
|
24240
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AreaChart, AspectRatio, AuthLayout, AvailableChartColors, Avatar, AvatarFallback, AvatarImage, Badge, BadgeButton, BarChart, BarList, BaseColorSwatches, 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, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Checkbox, CheckboxSmall, Code, CodeDemo, CodeHighlight, Collapsible, CollapsibleContent2 as CollapsibleContent, CollapsibleTrigger2 as CollapsibleTrigger, ColorCard, ColorSwatches, ColourScale, ComboChart, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, Description3 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, HoverCard, HoverCardContent, HoverCardTrigger, Icons, Input, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, Label3 as Label, Legend2 as Legend, LineChart, Link, _List as List, Listbox2 as Listbox, ListboxDescription, ListboxLabel, ListboxOption2 as ListboxOption, Logo, MainNavigation, Masthead, MegaMenu, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, MobileHeader, MobileSearch, MultiLevelPushMenu, Navbar, NavbarDivider, NavbarItem, NavbarLabel, NavbarSection, NavbarSpacer, Navigation, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, PreWithCopy, PrevNextLinks, PrevNextLinksPageLink, Progress, ProgressBar, ProgressCircle, Prose, RadioGroup2 as RadioGroup, RadioGroupItem, ResizableHandle, ResizablePanel, ResizablePanelGroup, 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, SparkAreaChart, SparkBarChart, SparkLineChart, Spinner, StepIndicator, StepNavigation, Strong, Switch2 as Switch, SwitchField, SwitchGroup, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableOfContents, TableRow, Tabs2 as Tabs, TabsContent, TabsList, TabsTrigger, Text, TextLink, Textarea, ThemeColorPalette, ThemeProvider, ThemeSelector, ThemeSwitcher, Toaster, TocContext, TocProvider, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, TopLevel, TouchTarget, Tracker, Tooltip5 as TremorTooltip, ViewToggle, aboriginal, addStartStopToColorArray, allPalettes, badgeVariants, brand, buttonVariants, camelCase, chartColors, cn, colorDataArray, colorThemes, colors, constructCategoryColors, createColorArray, createColorData, createFormStore, darkenColor, domToSimple, focusInput, focusRing, generateColorThemes, getColorClassName, getColorValue, getHeadings, getNodeText, getSurroundingColors, getYAxisDomain, hasErrorInput, hasOnlyOneValueForKey, humaniseVariant, interpolateColors, isLightColor, kebabCase, languages, lightenColor, navigationMenuTriggerStyle, oklchConverter, progressBarVariants, renderColorOutput, renderColorOutputToDTFM, semantic, shades, themeIndices, themeTokens, toggleVariants, truncate, useActiveSectionObserver, useDisableToc, useFormField, useIsMobile, useOnWindowResize, usePageHeadings, useSelectorHeight, useSidebar, useToc };
|
|
24555
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AreaChart, AspectRatio, AuthLayout, AvailableChartColors, Avatar, AvatarFallback, AvatarImage, Badge, BadgeButton, BarChart, BarList, BaseColorSwatches, 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, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Checkbox, CheckboxSmall, Code, CodeDemo, CodeHighlight, Collapsible, CollapsibleContent2 as CollapsibleContent, CollapsibleTrigger2 as CollapsibleTrigger, ColorCard, ColorSwatches, ColourScale, ComboChart, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, DataTable, DataTableColumnHeader, DataTableFacetedFilter, DataTablePagination, DataTableToolbar, DataTableViewOptions, Description3 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, HoverCard, HoverCardContent, HoverCardTrigger, Icons, Input, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, Label3 as Label, Legend2 as Legend, LineChart, Link, _List as List, Listbox2 as Listbox, ListboxDescription, ListboxLabel, ListboxOption2 as ListboxOption, Logo, MainNavigation, Masthead, MegaMenu, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, MobileHeader, MobileSearch, MultiLevelPushMenu, Navbar, NavbarDivider, NavbarItem, NavbarLabel, NavbarSection, NavbarSpacer, Navigation, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, PreWithCopy, PrevNextLinks, PrevNextLinksPageLink, Progress, ProgressBar, ProgressCircle, Prose, RadioGroup2 as RadioGroup, RadioGroupItem, ResizableHandle, ResizablePanel, ResizablePanelGroup, 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, SparkAreaChart, SparkBarChart, SparkLineChart, Spinner, StepIndicator, StepNavigation, Strong, Switch2 as Switch, SwitchField, SwitchGroup, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableOfContents, TableRow, Tabs2 as Tabs, TabsContent, TabsList, TabsTrigger, Text, TextLink, Textarea, ThemeColorPalette, ThemeProvider, ThemeSelector, ThemeSwitcher, Toaster, TocContext, TocProvider, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, TopLevel, TouchTarget, Tracker, Tooltip5 as TremorTooltip, ViewToggle, aboriginal, addStartStopToColorArray, allPalettes, badgeVariants, brand, buttonVariants, camelCase, chartColors, cn, colorDataArray, colorThemes, colors, constructCategoryColors, createColorArray, createColorData, createFormStore, darkenColor, domToSimple, focusInput, focusRing, generateColorThemes, getColorClassName, getColorValue, getHeadings, getNodeText, getSurroundingColors, getYAxisDomain, hasErrorInput, hasOnlyOneValueForKey, humaniseVariant, interpolateColors, isLightColor, kebabCase, languages, lightenColor, navigationMenuTriggerStyle, oklchConverter, progressBarVariants, renderColorOutput, renderColorOutputToDTFM, semantic, shades, themeIndices, themeTokens, toggleVariants, truncate, useActiveSectionObserver, useDisableToc, useFormField, useIsMobile, useOnWindowResize, usePageHeadings, useSelectorHeight, useSidebar, useToc };
|
|
24241
24556
|
//# sourceMappingURL=index.js.map
|
|
24242
24557
|
//# sourceMappingURL=index.js.map
|