@umami/react-zen 1.0.1 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -7,6 +7,7 @@ import { AlertDialog as AlertDialog$1 } from '@base-ui/react/alert-dialog';
7
7
  import { VariantProps } from 'class-variance-authority';
8
8
  import * as class_variance_authority_types from 'class-variance-authority/types';
9
9
  import { Button as Button$1 } from '@base-ui/react/button';
10
+ import { RowData } from '@tanstack/react-table';
10
11
  import { DayPicker, DayButton, Locale } from 'react-day-picker';
11
12
  import { UseFormProps, SubmitHandler, UseFormReturn, ControllerProps, ControllerRenderProps, FieldValues, ControllerFieldState, UseFormStateReturn, RegisterOptions, UseFieldArrayReturn } from 'react-hook-form';
12
13
  import * as zustand from 'zustand';
@@ -55,8 +56,8 @@ type ColorName = 'gray' | 'slate' | 'zinc' | 'neutral' | 'stone' | 'red' | 'oran
55
56
  type ColorShade = '50' | '100' | '200' | '300' | '400' | '500' | '600' | '700' | '800' | '900' | '950';
56
57
  type TailwindColor = `${ColorName}-${ColorShade}`;
57
58
  type StatusColorToken = 'destructive' | 'success' | 'warning' | 'info';
58
- type TextColorToken = 'foreground' | 'muted-foreground' | 'primary' | 'primary-foreground' | 'secondary-foreground' | 'accent-foreground' | 'background' | 'card-foreground' | 'popover-foreground' | StatusColorToken;
59
- type BackgroundColorToken = 'background' | 'card' | 'popover' | 'primary' | 'secondary' | 'muted' | 'accent' | 'foreground' | 'sidebar' | StatusColorToken;
59
+ type TextColorToken = 'foreground' | 'muted' | 'primary' | 'primary-foreground' | 'secondary-foreground' | 'accent-foreground' | 'background' | 'card-foreground' | 'popover-foreground' | StatusColorToken;
60
+ type BackgroundColorToken = 'background' | 'page' | 'card' | 'popover' | 'primary' | 'secondary' | 'muted' | 'accent' | 'foreground' | 'sidebar' | StatusColorToken;
60
61
  type BorderColorToken = 'border' | 'input' | 'ring' | 'primary' | StatusColorToken;
61
62
  type PaletteColor = ColorName | TailwindColor | 'transparent';
62
63
  type FontColor = TextColorToken | PaletteColor | true;
@@ -382,7 +383,11 @@ interface DataCardProps extends GridProps {
382
383
  }[];
383
384
  labelWidth?: string;
384
385
  }
385
- declare function DataCard({ data, labelWidth, ...props }: DataCardProps): react_jsx_runtime.JSX.Element;
386
+ /**
387
+ * Label/value pairs in a bordered card, styled like DataTable: the label column is shaded like
388
+ * the table header, and the row lines run to the card's border.
389
+ */
390
+ declare function DataCard({ data, labelWidth, className, ...props }: DataCardProps): react_jsx_runtime.JSX.Element;
386
391
 
387
392
  declare function Table({ className, ...props }: React$1.ComponentProps<"table">): react_jsx_runtime.JSX.Element;
388
393
  declare function TableHeader({ className, ...props }: React$1.ComponentProps<"thead">): react_jsx_runtime.JSX.Element;
@@ -394,10 +399,17 @@ declare function TableCell({ className, ...props }: React$1.ComponentProps<"td">
394
399
  declare function TableCaption({ className, ...props }: React$1.ComponentProps<"caption">): react_jsx_runtime.JSX.Element;
395
400
 
396
401
  type DataTableSelectionMode = 'none' | 'single' | 'multiple';
397
- interface DataTableProps extends ComponentProps<typeof Table> {
398
- data?: any[];
402
+ /** Sorted columns, in priority order. */
403
+ type DataTableSorting = {
404
+ id: string;
405
+ desc: boolean;
406
+ }[];
407
+ interface DataTableProps<TData extends RowData = any> extends ComponentProps<typeof Table> {
408
+ data?: TData[];
399
409
  displayMode?: 'table' | 'cards';
400
- /** Adds a checkbox column for selecting rows. Rows are keyed by their `id`. */
410
+ /** Returns a row's unique id. Defaults to the row's `id` property, or its index without one. */
411
+ getRowId?: (row: TData, index: number) => string;
412
+ /** Adds a checkbox column for selecting rows. */
401
413
  selectionMode?: DataTableSelectionMode;
402
414
  /** Selected row ids (controlled). */
403
415
  selectedRows?: string[];
@@ -405,18 +417,43 @@ interface DataTableProps extends ComponentProps<typeof Table> {
405
417
  defaultSelectedRows?: string[];
406
418
  /** Called with the new list of selected row ids. */
407
419
  onSelectedRowsChange?: (selectedRows: string[]) => void;
408
- }
409
- declare function DataTable({ data, displayMode, selectionMode, selectedRows: selectedRowsProp, defaultSelectedRows, onSelectedRowsChange, className, children, ...props }: DataTableProps): react_jsx_runtime.JSX.Element;
410
- interface DataColumnProps extends Omit<HTMLAttributes<HTMLTableCellElement>, 'children'> {
420
+ /** Sorted columns (controlled). Columns are sortable by clicking headers when `sortable`. */
421
+ sorting?: DataTableSorting;
422
+ /** Initially sorted columns (uncontrolled). */
423
+ defaultSorting?: DataTableSorting;
424
+ /** Called when the user changes the sorting. */
425
+ onSortingChange?: (sorting: DataTableSorting) => void;
426
+ /** Shows only rows where a filterable column contains this text (case-insensitive). */
427
+ filter?: string;
428
+ /** Splits rows into pages of this size and shows Previous and Next controls. */
429
+ pageSize?: number;
430
+ /** Current page, starting at 0 (controlled). */
431
+ pageIndex?: number;
432
+ /** Initial page, starting at 0 (uncontrolled). */
433
+ defaultPageIndex?: number;
434
+ /** Called when the page changes. */
435
+ onPageIndexChange?: (pageIndex: number) => void;
436
+ /** Shown when there are no rows to display (default: "No results."). */
437
+ emptyState?: ReactNode;
438
+ }
439
+ interface DataColumnProps<TData = any> extends Omit<HTMLAttributes<HTMLTableCellElement>, 'children'> {
411
440
  id: string;
412
441
  label?: ReactNode;
413
442
  align?: 'start' | 'center' | 'end';
414
443
  width?: string;
415
444
  as?: string;
416
445
  hidden?: boolean;
417
- children?: ReactNode | ((row: any, index: number) => ReactNode);
418
- }
419
- declare function DataColumn(_props: DataColumnProps): null;
446
+ /** The column's value for a row, used for sorting, filtering and the default cell. Defaults to `row[id]`. */
447
+ value?: (row: TData) => unknown;
448
+ /** Lets users sort by this column by clicking its header. */
449
+ sortable?: boolean;
450
+ /** Includes this column when matching `filter` (default: true for text and number values). */
451
+ filterable?: boolean;
452
+ children?: ReactNode | ((row: TData, index: number) => ReactNode);
453
+ }
454
+ /** Declares a column of a DataTable. Renders nothing on its own. */
455
+ declare function DataColumn<TData = any>(_props: DataColumnProps<TData>): null;
456
+ declare function DataTable<TData extends RowData = any>({ data, displayMode, getRowId, selectionMode, selectedRows: selectedRowsProp, defaultSelectedRows, onSelectedRowsChange, sorting: sortingProp, defaultSorting, onSortingChange, filter, pageSize, pageIndex: pageIndexProp, defaultPageIndex, onPageIndexChange, emptyState, className, children, ...props }: DataTableProps<TData>): react_jsx_runtime.JSX.Element;
420
457
 
421
458
  declare function Calendar({ className, classNames, showOutsideDays, captionLayout, buttonVariant, locale, formatters, components, ...props }: React$1.ComponentProps<typeof DayPicker> & {
422
459
  buttonVariant?: React$1.ComponentProps<typeof Button>["variant"];
@@ -568,6 +605,8 @@ interface HeadingProps extends Omit<TextProps, 'as' | 'size'> {
568
605
  }
569
606
  declare function Heading({ size, spacing, weight, as, className, children, ...props }: HeadingProps): react_jsx_runtime.JSX.Element;
570
607
 
608
+ declare function useHighlightedCode(value: string, language: string): (string | number | bigint | boolean | React$1.ReactElement<unknown, string | React$1.JSXElementConstructor<any>> | Iterable<React$1.ReactNode> | Promise<string | number | bigint | boolean | React$1.ReactPortal | React$1.ReactElement<unknown, string | React$1.JSXElementConstructor<any>> | Iterable<React$1.ReactNode> | null | undefined> | react_jsx_runtime.JSX.Element[] | null | undefined)[];
609
+
571
610
  declare function useIsMobile(): boolean;
572
611
 
573
612
  declare const breakpoints: {
@@ -831,6 +870,17 @@ interface SearchFieldProps extends Omit<InputHTMLAttributes<HTMLInputElement>, '
831
870
  }
832
871
  declare const SearchField: React$1.ForwardRefExoticComponent<SearchFieldProps & React$1.RefAttributes<HTMLInputElement>>;
833
872
 
873
+ interface SpinnerProps extends ComponentProps<'svg'> {
874
+ /** Hides the faint track behind the spinning arc. */
875
+ quiet?: boolean;
876
+ }
877
+ /**
878
+ * Zen's spinner: an arc that grows and shrinks as it rotates, over a faint track. A drop-in
879
+ * replacement for shadcn's Spinner: an `svg` sized with `size-*` (default `size-4`) and drawn in
880
+ * the current text color, so it works inside Button (`data-icon`) and InputGroup.
881
+ */
882
+ declare function Spinner({ quiet, className, ...props }: SpinnerProps): react_jsx_runtime.JSX.Element;
883
+
834
884
  type StatusLightVariant = 'success' | 'warning' | 'destructive' | 'info' | 'muted';
835
885
  interface StatusLightProps extends HTMLAttributes<HTMLSpanElement> {
836
886
  /** Status color of the dot. Defaults to `muted`. */
@@ -1041,6 +1091,29 @@ declare function CarouselNext({ className, variant, size, ...props }: React$1.Co
1041
1091
 
1042
1092
  declare function Checkbox({ className, ...props }: Checkbox$1.Root.Props): react_jsx_runtime.JSX.Element;
1043
1093
 
1094
+ declare const codeBlockVariants: (props?: ({
1095
+ variant?: "destructive" | "default" | null | undefined;
1096
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
1097
+ declare function CodeBlock({ className, variant, size, ...props }: React$1.ComponentProps<"div"> & VariantProps<typeof codeBlockVariants> & {
1098
+ size?: "default" | "sm";
1099
+ }): react_jsx_runtime.JSX.Element;
1100
+ declare function CodeBlockHeader({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
1101
+ declare function CodeBlockTitle({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
1102
+ declare function CodeBlockActions({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
1103
+ declare function CodeBlockCopyButton({ value, variant, size, className, onClick, ...props }: React$1.ComponentProps<typeof Button> & {
1104
+ value: string;
1105
+ }): react_jsx_runtime.JSX.Element;
1106
+ declare function CodeBlockContent({ className, children, style, wrap, lineNumbers, startLine, ...props }: React$1.ComponentProps<"pre"> & {
1107
+ wrap?: boolean;
1108
+ lineNumbers?: boolean;
1109
+ startLine?: number;
1110
+ }): react_jsx_runtime.JSX.Element;
1111
+ declare const codeBlockLineVariants: (props?: ({
1112
+ variant?: "default" | "added" | "removed" | "highlighted" | null | undefined;
1113
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
1114
+ declare function CodeBlockLine({ className, variant, children, ...props }: React$1.ComponentProps<"span"> & VariantProps<typeof codeBlockLineVariants>): react_jsx_runtime.JSX.Element;
1115
+ declare function CodeBlockFooter({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
1116
+
1044
1117
  declare function Collapsible({ ...props }: Collapsible$1.Root.Props): react_jsx_runtime.JSX.Element;
1045
1118
  declare function CollapsibleTrigger({ ...props }: Collapsible$1.Trigger.Props): react_jsx_runtime.JSX.Element;
1046
1119
  declare function CollapsibleContent({ ...props }: Collapsible$1.Panel.Props): react_jsx_runtime.JSX.Element;
@@ -1364,8 +1437,6 @@ declare function Skeleton({ className, ...props }: React.ComponentProps<"div">):
1364
1437
 
1365
1438
  declare function Slider({ className, defaultValue, value, min, max, ...props }: Slider$1.Root.Props): react_jsx_runtime.JSX.Element;
1366
1439
 
1367
- declare function Spinner({ className, ...props }: React.ComponentProps<"svg">): react_jsx_runtime.JSX.Element;
1368
-
1369
1440
  declare function Switch({ className, size, ...props }: Switch$1.Root.Props & {
1370
1441
  size?: "sm" | "default";
1371
1442
  }): react_jsx_runtime.JSX.Element;
@@ -1403,4 +1474,4 @@ interface ZenProviderProps {
1403
1474
  }
1404
1475
  declare function ZenProvider({ children, theme, colorScheme, palette, toast, tooltip, }: ZenProviderProps): react_jsx_runtime.JSX.Element;
1405
1476
 
1406
- export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertAction, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogMedia, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, type AlignContent, type AlignItems, type AlignSelf, AspectRatio, Autocomplete, type AutocompleteProps, Avatar, AvatarBadge, AvatarFallback, AvatarGroup, AvatarGroupCount, AvatarImage, type BackgroundColor, type BackgroundColorToken, Badge, Blockquote, type BlockquoteProps, type Border, type BorderColor, type BorderColorToken, type BorderRadius, type BorderWidth, type Bottom, Box, type BoxProps, type BoxRenderProps, type BoxShadow, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, type Breakpoint$1 as Breakpoint, type BreakpointKey, Breakpoints, Button, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, Calendar, CalendarDayButton, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, type CarouselApi, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, Checkbox, CheckboxGroup, type CheckboxGroupProps, Code, type CodeProps, Collapsible, CollapsibleContent, CollapsibleTrigger, type ColorName, type ColorShade, Column, type ColumnProps, Combobox, ComboboxChip, ComboboxChips, ComboboxChipsInput, ComboboxCollection, ComboboxContent, ComboboxEmpty, ComboboxGroup, ComboboxInput, ComboboxItem, ComboboxLabel, ComboboxList, ComboboxSeparator, ComboboxTrigger, ComboboxValue, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ConfirmationDialog, type ConfirmationDialogProps, Container, type ContainerProps, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, CopyButton, type CopyButtonProps, type Cursor, DataCard, type DataCardProps, DataColumn, type DataColumnProps, DataTable, type DataTableProps, type DataTableSelectionMode, DatePicker, type DatePickerProps, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, type Display, Dots, type DotsProps, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerSwipeHandle, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, type FillColor, type FlexDirection, type FlexDisplay, type FlexGrow, type FlexShrink, type FlexWrap, Flexbox, type FlexboxProps, FloatingTooltip, type FloatingTooltipProps, type FontColor, type FontSize, type FontWeight, Form, FormButtons, type FormButtonsProps, FormController, type FormControllerProps, FormField, FormFieldArray, type FormFieldArrayProps, type FormFieldProps, type FormFieldRenderProps, type FormProps, FormResetButton, type FormResetButtonProps, FormSubmitButton, type FormSubmitButtonProps, type Fraction, type Gap, Grid, type GridAutoFlow, type GridColumns, type GridDisplay, type GridProps, type GridRows, type GridTemplateAreas, type GridTemplateColumns, type GridTemplateRows, Heading, type HeadingProps, type HeadingSize, type Height, type HeightViewport, HoverCard, HoverCardContent, HoverCardTrigger, Icon, type IconProps, Image, type ImageProps, Input, InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, type JustifyContent, type JustifyItems, type JustifySelf, Kbd, KbdGroup, Label, type Left, type LetterSpacing, type LineHeight, List, ListItem, type ListItemProps, type ListProps, ListSection, type ListSectionProps, ListSeparator, type ListSeparatorProps, Loading, LoadingButton, type LoadingButtonProps, type LoadingProps, type Margin, type MaxHeight, type MaxWidth, type MaxWidthSpecial, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, Meter, type MeterProps, type MinHeight, type MinWidth, Navbar, NavbarItem, type NavbarItemProps, NavbarLink, type NavbarLinkProps, type NavbarProps, type NegativeSpacing, NumberField, type NumberFieldProps, type ObjectFit, type Opacity, type Overflow, PALETTES, type Padding, PageHeader, PageHeaderActions, type PageHeaderActionsProps, type PageHeaderProps, PageHeaderTitle, type PageHeaderTitleProps, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, type Palette, type PaletteColor, PasswordField, type PasswordFieldProps, type PointerEvents, Popover, PopoverContent, PopoverDescription, PopoverHeader, PopoverTitle, PopoverTrigger, type Position, type Primitive, Progress, ProgressCircle, type ProgressCircleProps, ProgressIndicator, ProgressLabel, ProgressTrack, ProgressValue, RadioGroup, RadioGroupItem, type RenderProp, ResizableHandle, ResizablePanel, ResizablePanelGroup, type Responsive$1 as Responsive, type Right, Row, type RowProps, ScrollArea, ScrollBar, SearchField, type SearchFieldProps, 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, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, type SizingSpecial, Skeleton, Slider, type Spacing, Spinner, type StateStyles, type StatusColorToken, StatusLight, type StatusLightProps, type StatusLightVariant, type StrokeColor, type StrokeWidth, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Tag, TagGroup, type TagGroupProps, type TagProps, type TailwindColor, Text, type TextAlign, type TextColorToken, type TextDecorationStyle, TextField, type TextFieldProps, type TextIndent, type TextProps, type TextRenderProps, type TextTransform, type TextWrap, Textarea, type Theme, ThemeButton, type ThemeButtonProps, type ThemeMode, ThemeSwitcher, type ThemeSwitcherProps, Toast, ToastContext, type ToastOptions, type ToastPosition, type ToastProps, ToastProvider, type ToastProviderProps, type ToastState, type ToastVariant, Toaster, type ToasterProps, Toggle, ToggleGroup, ToggleGroupItem, Toolbar, ToolbarButton, type ToolbarButtonProps, ToolbarGroup, type ToolbarGroupProps, ToolbarLink, type ToolbarLinkProps, type ToolbarProps, ToolbarSeparator, type ToolbarSeparatorProps, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, type Top, type VerticalAlign, type Whitespace, type Width, type WidthViewport, type WordBreak, ZenProvider, type ZenProviderProps, badgeVariants, buttonGroupVariants, buttonVariants, getCssColorValue, isHeightPreset, isMaxHeightPreset, isMaxWidthPreset, isMinHeightPreset, isMinWidthPreset, isWidthPreset, mapAlignContent, mapAlignItems, mapAlignSelf, mapBackgroundColor, mapBorder, mapBorderColor, mapBorderRadius, mapBorderWidth, mapCursor, mapDecorationColor, mapDisplay, mapFlexDirection, mapFlexWrap, mapFontSize, mapFontWeight, mapGap, mapGridAutoFlow, mapGridColumns, mapGridRows, mapHeadingSize, mapHeight, mapJustifyContent, mapJustifyItems, mapLetterSpacing, mapLineHeight, mapMargin, mapMaxHeight, mapMaxWidth, mapMinHeight, mapMinWidth, mapOpacity, mapOverflow, mapPadding, mapPointerEvents, mapPosition, mapShadow, mapSpace, mapStateStyles, mapTextAlign, mapTextColor, mapTextDecorationStyle, mapTextIndent, mapTextTransform, mapTextWrap, mapVerticalAlign, mapWhitespace, mapWidth, mapWordBreak, removeToast, resolveRender, tabsListVariants, toggleVariants, useBreakpoint, useCarousel, useComboboxAnchor, useDebounce, useInitTheme, useIsMobile, useSidebar, useTheme, useToast };
1477
+ export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertAction, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogMedia, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, type AlignContent, type AlignItems, type AlignSelf, AspectRatio, Autocomplete, type AutocompleteProps, Avatar, AvatarBadge, AvatarFallback, AvatarGroup, AvatarGroupCount, AvatarImage, type BackgroundColor, type BackgroundColorToken, Badge, Blockquote, type BlockquoteProps, type Border, type BorderColor, type BorderColorToken, type BorderRadius, type BorderWidth, type Bottom, Box, type BoxProps, type BoxRenderProps, type BoxShadow, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, type Breakpoint$1 as Breakpoint, type BreakpointKey, Breakpoints, Button, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, Calendar, CalendarDayButton, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, type CarouselApi, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, Checkbox, CheckboxGroup, type CheckboxGroupProps, Code, CodeBlock, CodeBlockActions, CodeBlockContent, CodeBlockCopyButton, CodeBlockFooter, CodeBlockHeader, CodeBlockLine, CodeBlockTitle, type CodeProps, Collapsible, CollapsibleContent, CollapsibleTrigger, type ColorName, type ColorShade, Column, type ColumnProps, Combobox, ComboboxChip, ComboboxChips, ComboboxChipsInput, ComboboxCollection, ComboboxContent, ComboboxEmpty, ComboboxGroup, ComboboxInput, ComboboxItem, ComboboxLabel, ComboboxList, ComboboxSeparator, ComboboxTrigger, ComboboxValue, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ConfirmationDialog, type ConfirmationDialogProps, Container, type ContainerProps, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, CopyButton, type CopyButtonProps, type Cursor, DataCard, type DataCardProps, DataColumn, type DataColumnProps, DataTable, type DataTableProps, type DataTableSelectionMode, type DataTableSorting, DatePicker, type DatePickerProps, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, type Display, Dots, type DotsProps, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerSwipeHandle, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, type FillColor, type FlexDirection, type FlexDisplay, type FlexGrow, type FlexShrink, type FlexWrap, Flexbox, type FlexboxProps, FloatingTooltip, type FloatingTooltipProps, type FontColor, type FontSize, type FontWeight, Form, FormButtons, type FormButtonsProps, FormController, type FormControllerProps, FormField, FormFieldArray, type FormFieldArrayProps, type FormFieldProps, type FormFieldRenderProps, type FormProps, FormResetButton, type FormResetButtonProps, FormSubmitButton, type FormSubmitButtonProps, type Fraction, type Gap, Grid, type GridAutoFlow, type GridColumns, type GridDisplay, type GridProps, type GridRows, type GridTemplateAreas, type GridTemplateColumns, type GridTemplateRows, Heading, type HeadingProps, type HeadingSize, type Height, type HeightViewport, HoverCard, HoverCardContent, HoverCardTrigger, Icon, type IconProps, Image, type ImageProps, Input, InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, type JustifyContent, type JustifyItems, type JustifySelf, Kbd, KbdGroup, Label, type Left, type LetterSpacing, type LineHeight, List, ListItem, type ListItemProps, type ListProps, ListSection, type ListSectionProps, ListSeparator, type ListSeparatorProps, Loading, LoadingButton, type LoadingButtonProps, type LoadingProps, type Margin, type MaxHeight, type MaxWidth, type MaxWidthSpecial, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, Meter, type MeterProps, type MinHeight, type MinWidth, Navbar, NavbarItem, type NavbarItemProps, NavbarLink, type NavbarLinkProps, type NavbarProps, type NegativeSpacing, NumberField, type NumberFieldProps, type ObjectFit, type Opacity, type Overflow, PALETTES, type Padding, PageHeader, PageHeaderActions, type PageHeaderActionsProps, type PageHeaderProps, PageHeaderTitle, type PageHeaderTitleProps, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, type Palette, type PaletteColor, PasswordField, type PasswordFieldProps, type PointerEvents, Popover, PopoverContent, PopoverDescription, PopoverHeader, PopoverTitle, PopoverTrigger, type Position, type Primitive, Progress, ProgressCircle, type ProgressCircleProps, ProgressIndicator, ProgressLabel, ProgressTrack, ProgressValue, RadioGroup, RadioGroupItem, type RenderProp, ResizableHandle, ResizablePanel, ResizablePanelGroup, type Responsive$1 as Responsive, type Right, Row, type RowProps, ScrollArea, ScrollBar, SearchField, type SearchFieldProps, 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, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, type SizingSpecial, Skeleton, Slider, type Spacing, Spinner, type SpinnerProps, type StateStyles, type StatusColorToken, StatusLight, type StatusLightProps, type StatusLightVariant, type StrokeColor, type StrokeWidth, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Tag, TagGroup, type TagGroupProps, type TagProps, type TailwindColor, Text, type TextAlign, type TextColorToken, type TextDecorationStyle, TextField, type TextFieldProps, type TextIndent, type TextProps, type TextRenderProps, type TextTransform, type TextWrap, Textarea, type Theme, ThemeButton, type ThemeButtonProps, type ThemeMode, ThemeSwitcher, type ThemeSwitcherProps, Toast, ToastContext, type ToastOptions, type ToastPosition, type ToastProps, ToastProvider, type ToastProviderProps, type ToastState, type ToastVariant, Toaster, type ToasterProps, Toggle, ToggleGroup, ToggleGroupItem, Toolbar, ToolbarButton, type ToolbarButtonProps, ToolbarGroup, type ToolbarGroupProps, ToolbarLink, type ToolbarLinkProps, type ToolbarProps, ToolbarSeparator, type ToolbarSeparatorProps, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, type Top, type VerticalAlign, type Whitespace, type Width, type WidthViewport, type WordBreak, ZenProvider, type ZenProviderProps, badgeVariants, buttonGroupVariants, buttonVariants, getCssColorValue, isHeightPreset, isMaxHeightPreset, isMaxWidthPreset, isMinHeightPreset, isMinWidthPreset, isWidthPreset, mapAlignContent, mapAlignItems, mapAlignSelf, mapBackgroundColor, mapBorder, mapBorderColor, mapBorderRadius, mapBorderWidth, mapCursor, mapDecorationColor, mapDisplay, mapFlexDirection, mapFlexWrap, mapFontSize, mapFontWeight, mapGap, mapGridAutoFlow, mapGridColumns, mapGridRows, mapHeadingSize, mapHeight, mapJustifyContent, mapJustifyItems, mapLetterSpacing, mapLineHeight, mapMargin, mapMaxHeight, mapMaxWidth, mapMinHeight, mapMinWidth, mapOpacity, mapOverflow, mapPadding, mapPointerEvents, mapPosition, mapShadow, mapSpace, mapStateStyles, mapTextAlign, mapTextColor, mapTextDecorationStyle, mapTextIndent, mapTextTransform, mapTextWrap, mapVerticalAlign, mapWhitespace, mapWidth, mapWordBreak, removeToast, resolveRender, tabsListVariants, toggleVariants, useBreakpoint, useCarousel, useComboboxAnchor, useDebounce, useHighlightedCode, useInitTheme, useIsMobile, useSidebar, useTheme, useToast };
package/dist/index.d.ts CHANGED
@@ -7,6 +7,7 @@ import { AlertDialog as AlertDialog$1 } from '@base-ui/react/alert-dialog';
7
7
  import { VariantProps } from 'class-variance-authority';
8
8
  import * as class_variance_authority_types from 'class-variance-authority/types';
9
9
  import { Button as Button$1 } from '@base-ui/react/button';
10
+ import { RowData } from '@tanstack/react-table';
10
11
  import { DayPicker, DayButton, Locale } from 'react-day-picker';
11
12
  import { UseFormProps, SubmitHandler, UseFormReturn, ControllerProps, ControllerRenderProps, FieldValues, ControllerFieldState, UseFormStateReturn, RegisterOptions, UseFieldArrayReturn } from 'react-hook-form';
12
13
  import * as zustand from 'zustand';
@@ -55,8 +56,8 @@ type ColorName = 'gray' | 'slate' | 'zinc' | 'neutral' | 'stone' | 'red' | 'oran
55
56
  type ColorShade = '50' | '100' | '200' | '300' | '400' | '500' | '600' | '700' | '800' | '900' | '950';
56
57
  type TailwindColor = `${ColorName}-${ColorShade}`;
57
58
  type StatusColorToken = 'destructive' | 'success' | 'warning' | 'info';
58
- type TextColorToken = 'foreground' | 'muted-foreground' | 'primary' | 'primary-foreground' | 'secondary-foreground' | 'accent-foreground' | 'background' | 'card-foreground' | 'popover-foreground' | StatusColorToken;
59
- type BackgroundColorToken = 'background' | 'card' | 'popover' | 'primary' | 'secondary' | 'muted' | 'accent' | 'foreground' | 'sidebar' | StatusColorToken;
59
+ type TextColorToken = 'foreground' | 'muted' | 'primary' | 'primary-foreground' | 'secondary-foreground' | 'accent-foreground' | 'background' | 'card-foreground' | 'popover-foreground' | StatusColorToken;
60
+ type BackgroundColorToken = 'background' | 'page' | 'card' | 'popover' | 'primary' | 'secondary' | 'muted' | 'accent' | 'foreground' | 'sidebar' | StatusColorToken;
60
61
  type BorderColorToken = 'border' | 'input' | 'ring' | 'primary' | StatusColorToken;
61
62
  type PaletteColor = ColorName | TailwindColor | 'transparent';
62
63
  type FontColor = TextColorToken | PaletteColor | true;
@@ -382,7 +383,11 @@ interface DataCardProps extends GridProps {
382
383
  }[];
383
384
  labelWidth?: string;
384
385
  }
385
- declare function DataCard({ data, labelWidth, ...props }: DataCardProps): react_jsx_runtime.JSX.Element;
386
+ /**
387
+ * Label/value pairs in a bordered card, styled like DataTable: the label column is shaded like
388
+ * the table header, and the row lines run to the card's border.
389
+ */
390
+ declare function DataCard({ data, labelWidth, className, ...props }: DataCardProps): react_jsx_runtime.JSX.Element;
386
391
 
387
392
  declare function Table({ className, ...props }: React$1.ComponentProps<"table">): react_jsx_runtime.JSX.Element;
388
393
  declare function TableHeader({ className, ...props }: React$1.ComponentProps<"thead">): react_jsx_runtime.JSX.Element;
@@ -394,10 +399,17 @@ declare function TableCell({ className, ...props }: React$1.ComponentProps<"td">
394
399
  declare function TableCaption({ className, ...props }: React$1.ComponentProps<"caption">): react_jsx_runtime.JSX.Element;
395
400
 
396
401
  type DataTableSelectionMode = 'none' | 'single' | 'multiple';
397
- interface DataTableProps extends ComponentProps<typeof Table> {
398
- data?: any[];
402
+ /** Sorted columns, in priority order. */
403
+ type DataTableSorting = {
404
+ id: string;
405
+ desc: boolean;
406
+ }[];
407
+ interface DataTableProps<TData extends RowData = any> extends ComponentProps<typeof Table> {
408
+ data?: TData[];
399
409
  displayMode?: 'table' | 'cards';
400
- /** Adds a checkbox column for selecting rows. Rows are keyed by their `id`. */
410
+ /** Returns a row's unique id. Defaults to the row's `id` property, or its index without one. */
411
+ getRowId?: (row: TData, index: number) => string;
412
+ /** Adds a checkbox column for selecting rows. */
401
413
  selectionMode?: DataTableSelectionMode;
402
414
  /** Selected row ids (controlled). */
403
415
  selectedRows?: string[];
@@ -405,18 +417,43 @@ interface DataTableProps extends ComponentProps<typeof Table> {
405
417
  defaultSelectedRows?: string[];
406
418
  /** Called with the new list of selected row ids. */
407
419
  onSelectedRowsChange?: (selectedRows: string[]) => void;
408
- }
409
- declare function DataTable({ data, displayMode, selectionMode, selectedRows: selectedRowsProp, defaultSelectedRows, onSelectedRowsChange, className, children, ...props }: DataTableProps): react_jsx_runtime.JSX.Element;
410
- interface DataColumnProps extends Omit<HTMLAttributes<HTMLTableCellElement>, 'children'> {
420
+ /** Sorted columns (controlled). Columns are sortable by clicking headers when `sortable`. */
421
+ sorting?: DataTableSorting;
422
+ /** Initially sorted columns (uncontrolled). */
423
+ defaultSorting?: DataTableSorting;
424
+ /** Called when the user changes the sorting. */
425
+ onSortingChange?: (sorting: DataTableSorting) => void;
426
+ /** Shows only rows where a filterable column contains this text (case-insensitive). */
427
+ filter?: string;
428
+ /** Splits rows into pages of this size and shows Previous and Next controls. */
429
+ pageSize?: number;
430
+ /** Current page, starting at 0 (controlled). */
431
+ pageIndex?: number;
432
+ /** Initial page, starting at 0 (uncontrolled). */
433
+ defaultPageIndex?: number;
434
+ /** Called when the page changes. */
435
+ onPageIndexChange?: (pageIndex: number) => void;
436
+ /** Shown when there are no rows to display (default: "No results."). */
437
+ emptyState?: ReactNode;
438
+ }
439
+ interface DataColumnProps<TData = any> extends Omit<HTMLAttributes<HTMLTableCellElement>, 'children'> {
411
440
  id: string;
412
441
  label?: ReactNode;
413
442
  align?: 'start' | 'center' | 'end';
414
443
  width?: string;
415
444
  as?: string;
416
445
  hidden?: boolean;
417
- children?: ReactNode | ((row: any, index: number) => ReactNode);
418
- }
419
- declare function DataColumn(_props: DataColumnProps): null;
446
+ /** The column's value for a row, used for sorting, filtering and the default cell. Defaults to `row[id]`. */
447
+ value?: (row: TData) => unknown;
448
+ /** Lets users sort by this column by clicking its header. */
449
+ sortable?: boolean;
450
+ /** Includes this column when matching `filter` (default: true for text and number values). */
451
+ filterable?: boolean;
452
+ children?: ReactNode | ((row: TData, index: number) => ReactNode);
453
+ }
454
+ /** Declares a column of a DataTable. Renders nothing on its own. */
455
+ declare function DataColumn<TData = any>(_props: DataColumnProps<TData>): null;
456
+ declare function DataTable<TData extends RowData = any>({ data, displayMode, getRowId, selectionMode, selectedRows: selectedRowsProp, defaultSelectedRows, onSelectedRowsChange, sorting: sortingProp, defaultSorting, onSortingChange, filter, pageSize, pageIndex: pageIndexProp, defaultPageIndex, onPageIndexChange, emptyState, className, children, ...props }: DataTableProps<TData>): react_jsx_runtime.JSX.Element;
420
457
 
421
458
  declare function Calendar({ className, classNames, showOutsideDays, captionLayout, buttonVariant, locale, formatters, components, ...props }: React$1.ComponentProps<typeof DayPicker> & {
422
459
  buttonVariant?: React$1.ComponentProps<typeof Button>["variant"];
@@ -568,6 +605,8 @@ interface HeadingProps extends Omit<TextProps, 'as' | 'size'> {
568
605
  }
569
606
  declare function Heading({ size, spacing, weight, as, className, children, ...props }: HeadingProps): react_jsx_runtime.JSX.Element;
570
607
 
608
+ declare function useHighlightedCode(value: string, language: string): (string | number | bigint | boolean | React$1.ReactElement<unknown, string | React$1.JSXElementConstructor<any>> | Iterable<React$1.ReactNode> | Promise<string | number | bigint | boolean | React$1.ReactPortal | React$1.ReactElement<unknown, string | React$1.JSXElementConstructor<any>> | Iterable<React$1.ReactNode> | null | undefined> | react_jsx_runtime.JSX.Element[] | null | undefined)[];
609
+
571
610
  declare function useIsMobile(): boolean;
572
611
 
573
612
  declare const breakpoints: {
@@ -831,6 +870,17 @@ interface SearchFieldProps extends Omit<InputHTMLAttributes<HTMLInputElement>, '
831
870
  }
832
871
  declare const SearchField: React$1.ForwardRefExoticComponent<SearchFieldProps & React$1.RefAttributes<HTMLInputElement>>;
833
872
 
873
+ interface SpinnerProps extends ComponentProps<'svg'> {
874
+ /** Hides the faint track behind the spinning arc. */
875
+ quiet?: boolean;
876
+ }
877
+ /**
878
+ * Zen's spinner: an arc that grows and shrinks as it rotates, over a faint track. A drop-in
879
+ * replacement for shadcn's Spinner: an `svg` sized with `size-*` (default `size-4`) and drawn in
880
+ * the current text color, so it works inside Button (`data-icon`) and InputGroup.
881
+ */
882
+ declare function Spinner({ quiet, className, ...props }: SpinnerProps): react_jsx_runtime.JSX.Element;
883
+
834
884
  type StatusLightVariant = 'success' | 'warning' | 'destructive' | 'info' | 'muted';
835
885
  interface StatusLightProps extends HTMLAttributes<HTMLSpanElement> {
836
886
  /** Status color of the dot. Defaults to `muted`. */
@@ -1041,6 +1091,29 @@ declare function CarouselNext({ className, variant, size, ...props }: React$1.Co
1041
1091
 
1042
1092
  declare function Checkbox({ className, ...props }: Checkbox$1.Root.Props): react_jsx_runtime.JSX.Element;
1043
1093
 
1094
+ declare const codeBlockVariants: (props?: ({
1095
+ variant?: "destructive" | "default" | null | undefined;
1096
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
1097
+ declare function CodeBlock({ className, variant, size, ...props }: React$1.ComponentProps<"div"> & VariantProps<typeof codeBlockVariants> & {
1098
+ size?: "default" | "sm";
1099
+ }): react_jsx_runtime.JSX.Element;
1100
+ declare function CodeBlockHeader({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
1101
+ declare function CodeBlockTitle({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
1102
+ declare function CodeBlockActions({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
1103
+ declare function CodeBlockCopyButton({ value, variant, size, className, onClick, ...props }: React$1.ComponentProps<typeof Button> & {
1104
+ value: string;
1105
+ }): react_jsx_runtime.JSX.Element;
1106
+ declare function CodeBlockContent({ className, children, style, wrap, lineNumbers, startLine, ...props }: React$1.ComponentProps<"pre"> & {
1107
+ wrap?: boolean;
1108
+ lineNumbers?: boolean;
1109
+ startLine?: number;
1110
+ }): react_jsx_runtime.JSX.Element;
1111
+ declare const codeBlockLineVariants: (props?: ({
1112
+ variant?: "default" | "added" | "removed" | "highlighted" | null | undefined;
1113
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
1114
+ declare function CodeBlockLine({ className, variant, children, ...props }: React$1.ComponentProps<"span"> & VariantProps<typeof codeBlockLineVariants>): react_jsx_runtime.JSX.Element;
1115
+ declare function CodeBlockFooter({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
1116
+
1044
1117
  declare function Collapsible({ ...props }: Collapsible$1.Root.Props): react_jsx_runtime.JSX.Element;
1045
1118
  declare function CollapsibleTrigger({ ...props }: Collapsible$1.Trigger.Props): react_jsx_runtime.JSX.Element;
1046
1119
  declare function CollapsibleContent({ ...props }: Collapsible$1.Panel.Props): react_jsx_runtime.JSX.Element;
@@ -1364,8 +1437,6 @@ declare function Skeleton({ className, ...props }: React.ComponentProps<"div">):
1364
1437
 
1365
1438
  declare function Slider({ className, defaultValue, value, min, max, ...props }: Slider$1.Root.Props): react_jsx_runtime.JSX.Element;
1366
1439
 
1367
- declare function Spinner({ className, ...props }: React.ComponentProps<"svg">): react_jsx_runtime.JSX.Element;
1368
-
1369
1440
  declare function Switch({ className, size, ...props }: Switch$1.Root.Props & {
1370
1441
  size?: "sm" | "default";
1371
1442
  }): react_jsx_runtime.JSX.Element;
@@ -1403,4 +1474,4 @@ interface ZenProviderProps {
1403
1474
  }
1404
1475
  declare function ZenProvider({ children, theme, colorScheme, palette, toast, tooltip, }: ZenProviderProps): react_jsx_runtime.JSX.Element;
1405
1476
 
1406
- export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertAction, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogMedia, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, type AlignContent, type AlignItems, type AlignSelf, AspectRatio, Autocomplete, type AutocompleteProps, Avatar, AvatarBadge, AvatarFallback, AvatarGroup, AvatarGroupCount, AvatarImage, type BackgroundColor, type BackgroundColorToken, Badge, Blockquote, type BlockquoteProps, type Border, type BorderColor, type BorderColorToken, type BorderRadius, type BorderWidth, type Bottom, Box, type BoxProps, type BoxRenderProps, type BoxShadow, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, type Breakpoint$1 as Breakpoint, type BreakpointKey, Breakpoints, Button, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, Calendar, CalendarDayButton, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, type CarouselApi, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, Checkbox, CheckboxGroup, type CheckboxGroupProps, Code, type CodeProps, Collapsible, CollapsibleContent, CollapsibleTrigger, type ColorName, type ColorShade, Column, type ColumnProps, Combobox, ComboboxChip, ComboboxChips, ComboboxChipsInput, ComboboxCollection, ComboboxContent, ComboboxEmpty, ComboboxGroup, ComboboxInput, ComboboxItem, ComboboxLabel, ComboboxList, ComboboxSeparator, ComboboxTrigger, ComboboxValue, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ConfirmationDialog, type ConfirmationDialogProps, Container, type ContainerProps, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, CopyButton, type CopyButtonProps, type Cursor, DataCard, type DataCardProps, DataColumn, type DataColumnProps, DataTable, type DataTableProps, type DataTableSelectionMode, DatePicker, type DatePickerProps, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, type Display, Dots, type DotsProps, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerSwipeHandle, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, type FillColor, type FlexDirection, type FlexDisplay, type FlexGrow, type FlexShrink, type FlexWrap, Flexbox, type FlexboxProps, FloatingTooltip, type FloatingTooltipProps, type FontColor, type FontSize, type FontWeight, Form, FormButtons, type FormButtonsProps, FormController, type FormControllerProps, FormField, FormFieldArray, type FormFieldArrayProps, type FormFieldProps, type FormFieldRenderProps, type FormProps, FormResetButton, type FormResetButtonProps, FormSubmitButton, type FormSubmitButtonProps, type Fraction, type Gap, Grid, type GridAutoFlow, type GridColumns, type GridDisplay, type GridProps, type GridRows, type GridTemplateAreas, type GridTemplateColumns, type GridTemplateRows, Heading, type HeadingProps, type HeadingSize, type Height, type HeightViewport, HoverCard, HoverCardContent, HoverCardTrigger, Icon, type IconProps, Image, type ImageProps, Input, InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, type JustifyContent, type JustifyItems, type JustifySelf, Kbd, KbdGroup, Label, type Left, type LetterSpacing, type LineHeight, List, ListItem, type ListItemProps, type ListProps, ListSection, type ListSectionProps, ListSeparator, type ListSeparatorProps, Loading, LoadingButton, type LoadingButtonProps, type LoadingProps, type Margin, type MaxHeight, type MaxWidth, type MaxWidthSpecial, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, Meter, type MeterProps, type MinHeight, type MinWidth, Navbar, NavbarItem, type NavbarItemProps, NavbarLink, type NavbarLinkProps, type NavbarProps, type NegativeSpacing, NumberField, type NumberFieldProps, type ObjectFit, type Opacity, type Overflow, PALETTES, type Padding, PageHeader, PageHeaderActions, type PageHeaderActionsProps, type PageHeaderProps, PageHeaderTitle, type PageHeaderTitleProps, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, type Palette, type PaletteColor, PasswordField, type PasswordFieldProps, type PointerEvents, Popover, PopoverContent, PopoverDescription, PopoverHeader, PopoverTitle, PopoverTrigger, type Position, type Primitive, Progress, ProgressCircle, type ProgressCircleProps, ProgressIndicator, ProgressLabel, ProgressTrack, ProgressValue, RadioGroup, RadioGroupItem, type RenderProp, ResizableHandle, ResizablePanel, ResizablePanelGroup, type Responsive$1 as Responsive, type Right, Row, type RowProps, ScrollArea, ScrollBar, SearchField, type SearchFieldProps, 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, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, type SizingSpecial, Skeleton, Slider, type Spacing, Spinner, type StateStyles, type StatusColorToken, StatusLight, type StatusLightProps, type StatusLightVariant, type StrokeColor, type StrokeWidth, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Tag, TagGroup, type TagGroupProps, type TagProps, type TailwindColor, Text, type TextAlign, type TextColorToken, type TextDecorationStyle, TextField, type TextFieldProps, type TextIndent, type TextProps, type TextRenderProps, type TextTransform, type TextWrap, Textarea, type Theme, ThemeButton, type ThemeButtonProps, type ThemeMode, ThemeSwitcher, type ThemeSwitcherProps, Toast, ToastContext, type ToastOptions, type ToastPosition, type ToastProps, ToastProvider, type ToastProviderProps, type ToastState, type ToastVariant, Toaster, type ToasterProps, Toggle, ToggleGroup, ToggleGroupItem, Toolbar, ToolbarButton, type ToolbarButtonProps, ToolbarGroup, type ToolbarGroupProps, ToolbarLink, type ToolbarLinkProps, type ToolbarProps, ToolbarSeparator, type ToolbarSeparatorProps, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, type Top, type VerticalAlign, type Whitespace, type Width, type WidthViewport, type WordBreak, ZenProvider, type ZenProviderProps, badgeVariants, buttonGroupVariants, buttonVariants, getCssColorValue, isHeightPreset, isMaxHeightPreset, isMaxWidthPreset, isMinHeightPreset, isMinWidthPreset, isWidthPreset, mapAlignContent, mapAlignItems, mapAlignSelf, mapBackgroundColor, mapBorder, mapBorderColor, mapBorderRadius, mapBorderWidth, mapCursor, mapDecorationColor, mapDisplay, mapFlexDirection, mapFlexWrap, mapFontSize, mapFontWeight, mapGap, mapGridAutoFlow, mapGridColumns, mapGridRows, mapHeadingSize, mapHeight, mapJustifyContent, mapJustifyItems, mapLetterSpacing, mapLineHeight, mapMargin, mapMaxHeight, mapMaxWidth, mapMinHeight, mapMinWidth, mapOpacity, mapOverflow, mapPadding, mapPointerEvents, mapPosition, mapShadow, mapSpace, mapStateStyles, mapTextAlign, mapTextColor, mapTextDecorationStyle, mapTextIndent, mapTextTransform, mapTextWrap, mapVerticalAlign, mapWhitespace, mapWidth, mapWordBreak, removeToast, resolveRender, tabsListVariants, toggleVariants, useBreakpoint, useCarousel, useComboboxAnchor, useDebounce, useInitTheme, useIsMobile, useSidebar, useTheme, useToast };
1477
+ export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertAction, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogMedia, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, type AlignContent, type AlignItems, type AlignSelf, AspectRatio, Autocomplete, type AutocompleteProps, Avatar, AvatarBadge, AvatarFallback, AvatarGroup, AvatarGroupCount, AvatarImage, type BackgroundColor, type BackgroundColorToken, Badge, Blockquote, type BlockquoteProps, type Border, type BorderColor, type BorderColorToken, type BorderRadius, type BorderWidth, type Bottom, Box, type BoxProps, type BoxRenderProps, type BoxShadow, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, type Breakpoint$1 as Breakpoint, type BreakpointKey, Breakpoints, Button, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, Calendar, CalendarDayButton, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, type CarouselApi, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, Checkbox, CheckboxGroup, type CheckboxGroupProps, Code, CodeBlock, CodeBlockActions, CodeBlockContent, CodeBlockCopyButton, CodeBlockFooter, CodeBlockHeader, CodeBlockLine, CodeBlockTitle, type CodeProps, Collapsible, CollapsibleContent, CollapsibleTrigger, type ColorName, type ColorShade, Column, type ColumnProps, Combobox, ComboboxChip, ComboboxChips, ComboboxChipsInput, ComboboxCollection, ComboboxContent, ComboboxEmpty, ComboboxGroup, ComboboxInput, ComboboxItem, ComboboxLabel, ComboboxList, ComboboxSeparator, ComboboxTrigger, ComboboxValue, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ConfirmationDialog, type ConfirmationDialogProps, Container, type ContainerProps, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, CopyButton, type CopyButtonProps, type Cursor, DataCard, type DataCardProps, DataColumn, type DataColumnProps, DataTable, type DataTableProps, type DataTableSelectionMode, type DataTableSorting, DatePicker, type DatePickerProps, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, type Display, Dots, type DotsProps, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerSwipeHandle, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, type FillColor, type FlexDirection, type FlexDisplay, type FlexGrow, type FlexShrink, type FlexWrap, Flexbox, type FlexboxProps, FloatingTooltip, type FloatingTooltipProps, type FontColor, type FontSize, type FontWeight, Form, FormButtons, type FormButtonsProps, FormController, type FormControllerProps, FormField, FormFieldArray, type FormFieldArrayProps, type FormFieldProps, type FormFieldRenderProps, type FormProps, FormResetButton, type FormResetButtonProps, FormSubmitButton, type FormSubmitButtonProps, type Fraction, type Gap, Grid, type GridAutoFlow, type GridColumns, type GridDisplay, type GridProps, type GridRows, type GridTemplateAreas, type GridTemplateColumns, type GridTemplateRows, Heading, type HeadingProps, type HeadingSize, type Height, type HeightViewport, HoverCard, HoverCardContent, HoverCardTrigger, Icon, type IconProps, Image, type ImageProps, Input, InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, type JustifyContent, type JustifyItems, type JustifySelf, Kbd, KbdGroup, Label, type Left, type LetterSpacing, type LineHeight, List, ListItem, type ListItemProps, type ListProps, ListSection, type ListSectionProps, ListSeparator, type ListSeparatorProps, Loading, LoadingButton, type LoadingButtonProps, type LoadingProps, type Margin, type MaxHeight, type MaxWidth, type MaxWidthSpecial, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, Meter, type MeterProps, type MinHeight, type MinWidth, Navbar, NavbarItem, type NavbarItemProps, NavbarLink, type NavbarLinkProps, type NavbarProps, type NegativeSpacing, NumberField, type NumberFieldProps, type ObjectFit, type Opacity, type Overflow, PALETTES, type Padding, PageHeader, PageHeaderActions, type PageHeaderActionsProps, type PageHeaderProps, PageHeaderTitle, type PageHeaderTitleProps, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, type Palette, type PaletteColor, PasswordField, type PasswordFieldProps, type PointerEvents, Popover, PopoverContent, PopoverDescription, PopoverHeader, PopoverTitle, PopoverTrigger, type Position, type Primitive, Progress, ProgressCircle, type ProgressCircleProps, ProgressIndicator, ProgressLabel, ProgressTrack, ProgressValue, RadioGroup, RadioGroupItem, type RenderProp, ResizableHandle, ResizablePanel, ResizablePanelGroup, type Responsive$1 as Responsive, type Right, Row, type RowProps, ScrollArea, ScrollBar, SearchField, type SearchFieldProps, 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, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, type SizingSpecial, Skeleton, Slider, type Spacing, Spinner, type SpinnerProps, type StateStyles, type StatusColorToken, StatusLight, type StatusLightProps, type StatusLightVariant, type StrokeColor, type StrokeWidth, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Tag, TagGroup, type TagGroupProps, type TagProps, type TailwindColor, Text, type TextAlign, type TextColorToken, type TextDecorationStyle, TextField, type TextFieldProps, type TextIndent, type TextProps, type TextRenderProps, type TextTransform, type TextWrap, Textarea, type Theme, ThemeButton, type ThemeButtonProps, type ThemeMode, ThemeSwitcher, type ThemeSwitcherProps, Toast, ToastContext, type ToastOptions, type ToastPosition, type ToastProps, ToastProvider, type ToastProviderProps, type ToastState, type ToastVariant, Toaster, type ToasterProps, Toggle, ToggleGroup, ToggleGroupItem, Toolbar, ToolbarButton, type ToolbarButtonProps, ToolbarGroup, type ToolbarGroupProps, ToolbarLink, type ToolbarLinkProps, type ToolbarProps, ToolbarSeparator, type ToolbarSeparatorProps, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, type Top, type VerticalAlign, type Whitespace, type Width, type WidthViewport, type WordBreak, ZenProvider, type ZenProviderProps, badgeVariants, buttonGroupVariants, buttonVariants, getCssColorValue, isHeightPreset, isMaxHeightPreset, isMaxWidthPreset, isMinHeightPreset, isMinWidthPreset, isWidthPreset, mapAlignContent, mapAlignItems, mapAlignSelf, mapBackgroundColor, mapBorder, mapBorderColor, mapBorderRadius, mapBorderWidth, mapCursor, mapDecorationColor, mapDisplay, mapFlexDirection, mapFlexWrap, mapFontSize, mapFontWeight, mapGap, mapGridAutoFlow, mapGridColumns, mapGridRows, mapHeadingSize, mapHeight, mapJustifyContent, mapJustifyItems, mapLetterSpacing, mapLineHeight, mapMargin, mapMaxHeight, mapMaxWidth, mapMinHeight, mapMinWidth, mapOpacity, mapOverflow, mapPadding, mapPointerEvents, mapPosition, mapShadow, mapSpace, mapStateStyles, mapTextAlign, mapTextColor, mapTextDecorationStyle, mapTextIndent, mapTextTransform, mapTextWrap, mapVerticalAlign, mapWhitespace, mapWidth, mapWordBreak, removeToast, resolveRender, tabsListVariants, toggleVariants, useBreakpoint, useCarousel, useComboboxAnchor, useDebounce, useHighlightedCode, useInitTheme, useIsMobile, useSidebar, useTheme, useToast };