@timbal-ai/timbal-react 1.0.0 → 1.2.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.
Files changed (42) hide show
  1. package/CHANGELOG.md +35 -0
  2. package/README.md +55 -8
  3. package/dist/app.cjs +2369 -1189
  4. package/dist/app.d.cts +8 -4
  5. package/dist/app.d.ts +8 -4
  6. package/dist/app.esm.js +32 -7
  7. package/dist/{chart-artifact-DOkwSTjQ.d.cts → chart-artifact-E58ve76I.d.cts} +279 -12
  8. package/dist/{chart-artifact-CBo9x8Ch.d.ts → chart-artifact-_PEJgCpQ.d.ts} +279 -12
  9. package/dist/{chat-Bed4FQSl.d.cts → chat-ClmzWzCX.d.cts} +33 -4
  10. package/dist/{chat-Bed4FQSl.d.ts → chat-ClmzWzCX.d.ts} +33 -4
  11. package/dist/chat.cjs +1446 -776
  12. package/dist/chat.d.cts +1 -1
  13. package/dist/chat.d.ts +1 -1
  14. package/dist/chat.esm.js +3 -3
  15. package/dist/{chunk-YEFBANNF.esm.js → chunk-4VULP3CJ.esm.js} +242 -288
  16. package/dist/{chunk-RZ6QC6RG.esm.js → chunk-AGJKK6R7.esm.js} +2 -2
  17. package/dist/{chunk-FOD67Z6G.esm.js → chunk-BMXFXLVV.esm.js} +341 -12
  18. package/dist/chunk-FEYZUVBM.esm.js +52 -0
  19. package/dist/{chunk-C6IXFM4T.esm.js → chunk-MTYXREHK.esm.js} +4 -4
  20. package/dist/{chunk-AYHOVAMI.esm.js → chunk-NAMKO2MU.esm.js} +1 -1
  21. package/dist/{chunk-SNLXVG7H.esm.js → chunk-UY7AKWJL.esm.js} +1108 -656
  22. package/dist/{chunk-GLPOVYEA.esm.js → chunk-XDIY2WSL.esm.js} +669 -279
  23. package/dist/index.cjs +2967 -1824
  24. package/dist/index.d.cts +5 -5
  25. package/dist/index.d.ts +5 -5
  26. package/dist/index.esm.js +41 -11
  27. package/dist/pill-segmented-tabs-BsIOW1Lo.d.cts +528 -0
  28. package/dist/pill-segmented-tabs-BsIOW1Lo.d.ts +528 -0
  29. package/dist/studio.cjs +1685 -1015
  30. package/dist/studio.d.cts +2 -2
  31. package/dist/studio.d.ts +2 -2
  32. package/dist/studio.esm.js +5 -5
  33. package/dist/styles.css +24 -0
  34. package/dist/ui.cjs +387 -49
  35. package/dist/ui.d.cts +71 -491
  36. package/dist/ui.d.ts +71 -491
  37. package/dist/ui.esm.js +26 -6
  38. package/dist/{welcome-COOb05a5.d.cts → welcome-BFGRoNfK.d.cts} +1 -1
  39. package/dist/{welcome-DE08m9ca.d.ts → welcome-DXqsGTwH.d.ts} +1 -1
  40. package/package.json +7 -3
  41. package/vite/local-dev.d.ts +5 -1
  42. package/vite/local-dev.mjs +17 -13
package/dist/ui.d.cts CHANGED
@@ -1,502 +1,82 @@
1
1
  export { B as Button } from './button-BoyX5pM_.cjs';
2
+ export { A as AVATAR_PRIMARY_FALLBACK_CLASS, a as Accordion, b as AccordionContent, c as AccordionItem, d as AccordionTrigger, e as Alert, f as AlertDescription, g as AlertDialog, h as AlertDialogAction, i as AlertDialogCancel, j as AlertDialogContent, k as AlertDialogDescription, l as AlertDialogFooter, m as AlertDialogHeader, n as AlertDialogOverlay, o as AlertDialogPortal, p as AlertDialogTitle, q as AlertDialogTrigger, r as AlertTitle, s as AspectRatio, t as Avatar, u as AvatarFallback, v as AvatarImage, B as Badge, w as Breadcrumb, x as BreadcrumbEllipsis, y as BreadcrumbItem, z as BreadcrumbLink, C as BreadcrumbList, D as BreadcrumbPage, E as BreadcrumbSeparator, F as CONTROL_SIZE, G as Calendar, H as CalendarDayButton, I as Card, J as CardContent, K as CardDescription, L as CardFooter, M as CardHeader, N as CardTitle, O as Checkbox, P as Collapsible, Q as CollapsibleContent, R as CollapsibleTrigger, S as Combobox, T as ComboboxAnchor, U as ComboboxCommand, V as ComboboxContent, W as ComboboxEmpty, X as ComboboxGroup, Y as ComboboxInput, Z as ComboboxItem, _ as ComboboxList, $ as ComboboxSeparator, a0 as ComboboxShortcut, a1 as ComboboxTrigger, a2 as Command, a3 as CommandDialog, a4 as CommandEmpty, a5 as CommandGroup, a6 as CommandInput, a7 as CommandItem, a8 as CommandList, a9 as CommandSeparator, aa as CommandShortcut, ab as ContextMenu, ac as ContextMenuCheckboxItem, ad as ContextMenuContent, ae as ContextMenuGroup, af as ContextMenuItem, ag as ContextMenuLabel, ah as ContextMenuRadioGroup, ai as ContextMenuRadioItem, aj as ContextMenuSeparator, ak as ContextMenuShortcut, al as ContextMenuSub, am as ContextMenuSubContent, an as ContextMenuSubTrigger, ao as ContextMenuTrigger, ap as ControlClassOptions, aq as ControlShape, ar as ControlSize, as as DatePicker, at as DatePickerButton, au as DatePickerCalendar, av as DatePickerContent, aw as DatePickerTrigger, ax as Dialog, ay as DialogClose, az as DialogContent, aA as DialogDescription, aB as DialogFooter, aC as DialogHeader, aD as DialogOverlay, aE as DialogPortal, aF as DialogTitle, aG as DialogTrigger, aH as DropdownMenu, aI as DropdownMenuCheckboxItem, aJ as DropdownMenuContent, aK as DropdownMenuGroup, aL as DropdownMenuItem, aM as DropdownMenuLabel, aN as DropdownMenuRadioGroup, aO as DropdownMenuRadioItem, aP as DropdownMenuSeparator, aQ as DropdownMenuShortcut, aR as DropdownMenuSub, aS as DropdownMenuSubContent, aT as DropdownMenuSubTrigger, aU as DropdownMenuTrigger, aV as Form, aW as FormControl, aX as FormField, aY as FormItem, aZ as FormLabel, a_ as FormMessage, a$ as FormSubmit, b0 as HoverCard, b1 as HoverCardContent, b2 as HoverCardTrigger, b3 as Input, b4 as InputGroup, b5 as InputGroupAddon, b6 as InputGroupInput, b7 as InputGroupText, b8 as InputOTP, b9 as InputOTPGroup, ba as InputOTPHiddenInput, bb as InputOTPSeparator, bc as InputOTPSlot, bd as Kbd, be as KbdGroup, bf as Label, bg as MemoPillSegmentedTabs, bh as Menubar, bi as MenubarCheckboxItem, bj as MenubarContent, bk as MenubarItem, bl as MenubarLabel, bm as MenubarMenu, bn as MenubarRadioGroup, bo as MenubarRadioItem, bp as MenubarSeparator, bq as MenubarShortcut, br as MenubarSub, bs as MenubarSubContent, bt as MenubarSubTrigger, bu as MenubarTrigger, bv as NavigationMenu, bw as NavigationMenuContent, bx as NavigationMenuIndicator, by as NavigationMenuItem, bz as NavigationMenuLink, bA as NavigationMenuList, bB as NavigationMenuTrigger, bC as NavigationMenuViewport, bD as Pagination, bE as PaginationContent, bF as PaginationEllipsis, bG as PaginationItem, bH as PaginationLink, bI as PaginationNext, bJ as PaginationPrevious, bK as PillSegmentedTab, bL as PillSegmentedTabs, bM as PillSegmentedTabsProps, bN as Popover, bO as PopoverAnchor, bP as PopoverContent, bQ as PopoverTrigger, bR as Progress, bS as RadioGroup, bT as RadioGroupItem, bU as ScrollArea, bV as ScrollBar, bW as Select, bX as SelectContent, bY as SelectGroup, bZ as SelectItem, b_ as SelectLabel, b$ as SelectScrollDownButton, c0 as SelectScrollUpButton, c1 as SelectSeparator, c2 as SelectTrigger, c3 as SelectValue, c4 as Separator, c5 as Sheet, c6 as SheetClose, c7 as SheetContent, c8 as SheetDescription, c9 as SheetFooter, ca as SheetHeader, cb as SheetTitle, cc as SheetTrigger, cd as Shimmer, ce as Skeleton, cf as Slider, cg as Spinner, ch as Switch, ci as Table, cj as TableBody, ck as TableCaption, cl as TableCell, cm as TableFooter, cn as TableHead, co as TableHeader, cp as TableRow, cq as TextShimmerProps, cr as Textarea, cs as Toast, ct as ToastAction, cu as ToastClose, cv as ToastDescription, cw as ToastProps, cx as ToastProvider, cy as ToastTitle, cz as ToastViewport, cA as Toaster, cB as Toggle, cC as ToggleGroup, cD as ToggleGroupItem, cE as Toolbar, cF as ToolbarButton, cG as ToolbarLink, cH as ToolbarSeparator, cI as ToolbarToggleGroup, cJ as ToolbarToggleItem, cK as Tooltip, cL as TooltipContent, cM as TooltipProvider, cN as TooltipTrigger, cO as alertVariants, cP as avatarChartVariantClass, cQ as badgeVariants, cR as controlClass, cS as controlSurfaceClass, cT as formatPickerDate, cU as navigationMenuTriggerStyle, cV as overlayAnimationClass, cW as overlayItemClass, cX as overlayListPanelClass, cY as overlaySurfaceClass, cZ as toast, c_ as toggleVariants, c$ as useToast } from './pill-segmented-tabs-BsIOW1Lo.cjs';
2
3
  import * as react_jsx_runtime from 'react/jsx-runtime';
3
4
  import * as React from 'react';
4
- import { ElementType, ReactNode, FC } from 'react';
5
- import { Tooltip as Tooltip$1, Avatar as Avatar$1, Dialog as Dialog$1, DropdownMenu as DropdownMenu$1, Popover as Popover$1, Select as Select$1, Label as Label$1, Checkbox as Checkbox$1, Switch as Switch$1, RadioGroup as RadioGroup$1, Form as Form$1, AspectRatio as AspectRatio$1, Toolbar as Toolbar$1, Menubar as Menubar$1, NavigationMenu as NavigationMenu$1, unstable_OneTimePasswordField, Accordion as Accordion$1, Separator as Separator$1, Slider as Slider$1, Progress as Progress$1, AlertDialog as AlertDialog$1, Collapsible as Collapsible$1, ScrollArea as ScrollArea$1, Toggle as Toggle$1, ToggleGroup as ToggleGroup$1, HoverCard as HoverCard$1, ContextMenu as ContextMenu$1, Toast as Toast$1 } from 'radix-ui';
6
- import * as class_variance_authority_types from 'class-variance-authority/types';
7
- import { Command as Command$1 } from 'cmdk';
8
- import { DayPicker, DayButtonProps } from 'react-day-picker';
9
- import { VariantProps } from 'class-variance-authority';
5
+ import * as RechartsPrimitive from 'recharts';
10
6
  export { a as TimbalV2Button } from './timbal-v2-button-CNfdwGq4.cjs';
11
-
12
- declare function TooltipProvider({ delayDuration, ...props }: React.ComponentProps<typeof Tooltip$1.Provider>): react_jsx_runtime.JSX.Element;
13
- declare function Tooltip({ ...props }: React.ComponentProps<typeof Tooltip$1.Root>): react_jsx_runtime.JSX.Element;
14
- declare function TooltipTrigger({ ...props }: React.ComponentProps<typeof Tooltip$1.Trigger>): react_jsx_runtime.JSX.Element;
15
- declare function TooltipContent({ className, sideOffset, children, ...props }: React.ComponentProps<typeof Tooltip$1.Content>): react_jsx_runtime.JSX.Element;
16
-
17
- declare function Avatar({ className, size, ...props }: React.ComponentProps<typeof Avatar$1.Root> & {
18
- size?: "default" | "sm" | "lg";
19
- }): react_jsx_runtime.JSX.Element;
20
- declare function AvatarImage({ className, ...props }: React.ComponentProps<typeof Avatar$1.Image>): react_jsx_runtime.JSX.Element;
21
- declare function AvatarFallback({ className, ...props }: React.ComponentProps<typeof Avatar$1.Fallback>): react_jsx_runtime.JSX.Element;
22
-
23
- declare function Dialog({ ...props }: React.ComponentProps<typeof Dialog$1.Root>): react_jsx_runtime.JSX.Element;
24
- declare function DialogTrigger({ ...props }: React.ComponentProps<typeof Dialog$1.Trigger>): react_jsx_runtime.JSX.Element;
25
- declare function DialogPortal({ ...props }: React.ComponentProps<typeof Dialog$1.Portal>): react_jsx_runtime.JSX.Element;
26
- declare function DialogClose({ ...props }: React.ComponentProps<typeof Dialog$1.Close>): react_jsx_runtime.JSX.Element;
27
- declare function DialogOverlay({ className, ...props }: React.ComponentProps<typeof Dialog$1.Overlay>): react_jsx_runtime.JSX.Element;
28
- declare function DialogContent({ className, children, showCloseButton, ...props }: React.ComponentProps<typeof Dialog$1.Content> & {
29
- showCloseButton?: boolean;
30
- }): react_jsx_runtime.JSX.Element;
31
- declare function DialogTitle({ className, ...props }: React.ComponentProps<typeof Dialog$1.Title>): react_jsx_runtime.JSX.Element;
32
- declare function DialogDescription({ className, ...props }: React.ComponentProps<typeof Dialog$1.Description>): react_jsx_runtime.JSX.Element;
33
- declare function DialogHeader({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
34
- declare function DialogFooter({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
35
-
36
- declare function DropdownMenu({ ...props }: React.ComponentProps<typeof DropdownMenu$1.Root>): react_jsx_runtime.JSX.Element;
37
- declare function DropdownMenuTrigger({ ...props }: React.ComponentProps<typeof DropdownMenu$1.Trigger>): react_jsx_runtime.JSX.Element;
38
- declare function DropdownMenuGroup({ ...props }: React.ComponentProps<typeof DropdownMenu$1.Group>): react_jsx_runtime.JSX.Element;
39
- declare function DropdownMenuContent({ className, sideOffset, ...props }: React.ComponentProps<typeof DropdownMenu$1.Content>): react_jsx_runtime.JSX.Element;
40
- declare function DropdownMenuItem({ className, inset, variant, ...props }: React.ComponentProps<typeof DropdownMenu$1.Item> & {
41
- inset?: boolean;
42
- variant?: "default" | "destructive";
43
- }): react_jsx_runtime.JSX.Element;
44
- declare function DropdownMenuCheckboxItem({ className, children, checked, ...props }: React.ComponentProps<typeof DropdownMenu$1.CheckboxItem>): react_jsx_runtime.JSX.Element;
45
- declare function DropdownMenuRadioGroup({ ...props }: React.ComponentProps<typeof DropdownMenu$1.RadioGroup>): react_jsx_runtime.JSX.Element;
46
- declare function DropdownMenuRadioItem({ className, children, ...props }: React.ComponentProps<typeof DropdownMenu$1.RadioItem>): react_jsx_runtime.JSX.Element;
47
- declare function DropdownMenuLabel({ className, inset, ...props }: React.ComponentProps<typeof DropdownMenu$1.Label> & {
48
- inset?: boolean;
49
- }): react_jsx_runtime.JSX.Element;
50
- declare function DropdownMenuSeparator({ className, ...props }: React.ComponentProps<typeof DropdownMenu$1.Separator>): react_jsx_runtime.JSX.Element;
51
- declare function DropdownMenuShortcut({ className, ...props }: React.ComponentProps<"span">): react_jsx_runtime.JSX.Element;
52
- declare function DropdownMenuSub({ ...props }: React.ComponentProps<typeof DropdownMenu$1.Sub>): react_jsx_runtime.JSX.Element;
53
- declare function DropdownMenuSubTrigger({ className, inset, children, ...props }: React.ComponentProps<typeof DropdownMenu$1.SubTrigger> & {
54
- inset?: boolean;
55
- }): react_jsx_runtime.JSX.Element;
56
- declare function DropdownMenuSubContent({ className, ...props }: React.ComponentProps<typeof DropdownMenu$1.SubContent>): react_jsx_runtime.JSX.Element;
57
-
58
- declare function Popover({ ...props }: React.ComponentProps<typeof Popover$1.Root>): react_jsx_runtime.JSX.Element;
59
- declare function PopoverTrigger({ ...props }: React.ComponentProps<typeof Popover$1.Trigger>): react_jsx_runtime.JSX.Element;
60
- declare function PopoverAnchor({ ...props }: React.ComponentProps<typeof Popover$1.Anchor>): react_jsx_runtime.JSX.Element;
61
- declare function PopoverContent({ className, align, sideOffset, variant, ...props }: React.ComponentProps<typeof Popover$1.Content> & {
62
- /**
63
- * `default` — padded card (help text, small forms).
64
- * `list` — menu/listbox chrome (pair with `Command`; same skin as `Select`).
65
- */
66
- variant?: "default" | "list";
67
- }): react_jsx_runtime.JSX.Element;
68
-
69
- declare function Select({ ...props }: React.ComponentProps<typeof Select$1.Root>): react_jsx_runtime.JSX.Element;
70
- declare function SelectGroup({ ...props }: React.ComponentProps<typeof Select$1.Group>): react_jsx_runtime.JSX.Element;
71
- declare function SelectValue({ ...props }: React.ComponentProps<typeof Select$1.Value>): react_jsx_runtime.JSX.Element;
72
- declare function SelectTrigger({ className, size, children, ...props }: React.ComponentProps<typeof Select$1.Trigger> & {
73
- size?: "sm" | "default";
74
- }): react_jsx_runtime.JSX.Element;
75
- declare function SelectContent({ className, children, position, ...props }: React.ComponentProps<typeof Select$1.Content>): react_jsx_runtime.JSX.Element;
76
- declare function SelectLabel({ className, ...props }: React.ComponentProps<typeof Select$1.Label>): react_jsx_runtime.JSX.Element;
77
- declare function SelectItem({ className, children, ...props }: React.ComponentProps<typeof Select$1.Item>): react_jsx_runtime.JSX.Element;
78
- declare function SelectSeparator({ className, ...props }: React.ComponentProps<typeof Select$1.Separator>): react_jsx_runtime.JSX.Element;
79
- declare function SelectScrollUpButton({ className, ...props }: React.ComponentProps<typeof Select$1.ScrollUpButton>): react_jsx_runtime.JSX.Element;
80
- declare function SelectScrollDownButton({ className, ...props }: React.ComponentProps<typeof Select$1.ScrollDownButton>): react_jsx_runtime.JSX.Element;
81
-
82
- /**
83
- * The single control-surface contract.
84
- *
85
- * Every input, select / dropdown trigger, and search field in the package reads
86
- * its skin from here, so a `SearchInput` and a `Select` trigger placed side by
87
- * side are visually identical — regardless of whether one was hand-written and
88
- * the other vendored from shadcn. The provenance of a control stops mattering
89
- * because the skin is defined exactly once.
90
- *
91
- * Two axes only, both enumerated (never ad-hoc):
92
- * - **skin** — border, surface gradient, shadow, focus ring, transition.
93
- * Canonical = studio secondary chrome (`TIMBAL_V2_SECONDARY_CHROME`).
94
- * - **shape** — `field` (rounded-lg, the default for form/data controls) or
95
- * `pill` (rounded-full, for topbar/filter chrome rows).
96
- *
97
- * Floating panels share `overlaySurfaceClass` + `overlayListPanelClass` (menus)
98
- * or padded popover chrome + `overlayItemClass` for rows so menus and
99
- * listboxes match too.
100
- *
101
- * Composable public API — exported from `./ui` and the package root so apps can
102
- * build custom controls that match the kit. Do **not** hand-roll a control
103
- * surface (`rounded-* border-input bg-…`) in a component; compose these.
104
- */
105
- type ControlSize = "sm" | "default";
106
- type ControlShape = "field" | "pill";
107
- /** Height + horizontal padding per control size — shared by every control. */
108
- declare const CONTROL_SIZE: Record<ControlSize, string>;
109
- /**
110
- * The control skin — surface, border, shadow, focus ring, disabled, transition.
111
- * No height / width / padding / radius / layout, so it composes onto an
112
- * `<input>`, a `<button>` trigger, or a `<label>` wrapper alike. Add size +
113
- * shape via `controlClass(...)`, or compose directly for bespoke layouts.
114
- */
115
- declare const controlSurfaceClass: string;
116
- interface ControlClassOptions {
117
- /** Height + padding. Default `"default"` (h-10). */
118
- size?: ControlSize;
119
- /** Corner shape. Default `"field"` (rounded-lg). Use `"pill"` for chrome rows. */
120
- shape?: ControlShape;
121
- }
122
- /**
123
- * Build a complete control class: skin + size + shape. The one entry point for
124
- * inputs, triggers, and search fields.
125
- *
126
- * @example
127
- * ```tsx
128
- * <input className={controlClass({}, "w-full")} /> // field, h-10
129
- * <SelectTrigger className={controlClass({ size: "sm" })} /> // field, h-9
130
- * <label className={controlClass({ shape: "pill" })} /> // pill chrome
131
- * ```
132
- */
133
- declare function controlClass(options?: ControlClassOptions, className?: string): string;
134
- /**
135
- * Shared entrance / exit animation for floating panels (popover, menu,
136
- * listbox). Identical across all overlays so they open the same way.
137
- */
138
- declare const overlayAnimationClass = "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2";
139
- /**
140
- * Shared floating-panel surface — popover, dropdown menu, select listbox,
141
- * command. Colors + border + shadow + z-index + animation. Each consumer adds
142
- * its own radius / padding / min-width / transform origin.
143
- */
144
- declare const overlaySurfaceClass: string;
145
- /**
146
- * Listbox / menu / command panel chrome — `Select`, `DropdownMenu`, `Command`,
147
- * `Combobox`. Same radius and zero padding; rows use `overlayItemClass`.
148
- * Rich popovers (help text, forms) use `PopoverContent` default padding instead.
149
- */
150
- declare const overlayListPanelClass: string;
151
- /**
152
- * Shared selectable row inside an overlay (menu item, list option). Consumers
153
- * override padding (e.g. `pl-8` for a leading indicator) on top of this.
154
- */
155
- declare const overlayItemClass = "relative flex cursor-default items-center gap-2 rounded-md px-2 py-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground";
156
-
157
- /**
158
- * Text input on the shared control-surface contract — visually identical to
159
- * `Select` triggers, `SearchInput`, and every other control.
160
- */
161
- declare function Input({ className, type, controlSize, ...props }: React.ComponentProps<"input"> & {
162
- /** Height + padding — matches `SelectTrigger` `size`. Default `"default"`. */
163
- controlSize?: ControlSize;
164
- }): react_jsx_runtime.JSX.Element;
165
-
166
- /**
167
- * Multi-line input on the shared control skin (auto height, not the fixed
168
- * control height).
169
- */
170
- declare function Textarea({ className, ...props }: React.ComponentProps<"textarea">): react_jsx_runtime.JSX.Element;
171
-
172
- declare function Label({ className, ...props }: React.ComponentProps<typeof Label$1.Root>): react_jsx_runtime.JSX.Element;
173
-
174
- /**
175
- * Checkbox — elevated surface off, primary gradient on, matching the switch and
176
- * buttons. Focus ring follows the house `ring-foreground/10` convention.
177
- */
178
- declare function Checkbox({ className, ...props }: React.ComponentProps<typeof Checkbox$1.Root>): react_jsx_runtime.JSX.Element;
179
-
180
- /**
181
- * Switch — shares the exact track/thumb tokens as the app-kit `FieldSwitch`, so
182
- * the bare primitive and the labeled form row are visually identical.
183
- */
184
- declare function Switch({ className, ...props }: React.ComponentProps<typeof Switch$1.Root>): react_jsx_runtime.JSX.Element;
185
-
186
- declare function RadioGroup({ className, ...props }: React.ComponentProps<typeof RadioGroup$1.Root>): react_jsx_runtime.JSX.Element;
187
- declare function RadioGroupItem({ className, ...props }: React.ComponentProps<typeof RadioGroup$1.Item>): react_jsx_runtime.JSX.Element;
188
-
189
- declare function Form({ ...props }: React.ComponentProps<typeof Form$1.Root>): react_jsx_runtime.JSX.Element;
190
- declare function FormField({ ...props }: React.ComponentProps<typeof Form$1.Field>): react_jsx_runtime.JSX.Element;
191
- declare function FormItem({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
192
- declare function FormLabel({ className, ...props }: React.ComponentProps<typeof Form$1.Label>): react_jsx_runtime.JSX.Element;
193
- declare function FormControl({ ...props }: React.ComponentProps<typeof Form$1.Control>): react_jsx_runtime.JSX.Element;
194
- declare function FormMessage({ className, ...props }: React.ComponentProps<typeof Form$1.Message>): react_jsx_runtime.JSX.Element;
195
- declare function FormSubmit({ className, ...props }: React.ComponentProps<typeof Form$1.Submit>): react_jsx_runtime.JSX.Element;
196
-
197
- declare function AspectRatio({ ...props }: React.ComponentProps<typeof AspectRatio$1.Root>): react_jsx_runtime.JSX.Element;
198
-
199
- declare function Breadcrumb({ ...props }: React.ComponentProps<"nav">): react_jsx_runtime.JSX.Element;
200
- declare function BreadcrumbList({ className, ...props }: React.ComponentProps<"ol">): react_jsx_runtime.JSX.Element;
201
- declare function BreadcrumbItem({ className, ...props }: React.ComponentProps<"li">): react_jsx_runtime.JSX.Element;
202
- declare function BreadcrumbLink({ className, asChild, ...props }: React.ComponentProps<"a"> & {
203
- asChild?: boolean;
204
- }): react_jsx_runtime.JSX.Element;
205
- declare function BreadcrumbPage({ className, ...props }: React.ComponentProps<"span">): react_jsx_runtime.JSX.Element;
206
- declare function BreadcrumbSeparator({ children, className, ...props }: React.ComponentProps<"li">): react_jsx_runtime.JSX.Element;
207
- declare function BreadcrumbEllipsis({ className, ...props }: React.ComponentProps<"span">): react_jsx_runtime.JSX.Element;
208
-
209
- declare function Pagination({ className, ...props }: React.ComponentProps<"nav">): react_jsx_runtime.JSX.Element;
210
- declare function PaginationContent({ className, ...props }: React.ComponentProps<"ul">): react_jsx_runtime.JSX.Element;
211
- declare function PaginationItem({ ...props }: React.ComponentProps<"li">): react_jsx_runtime.JSX.Element;
212
- type PaginationLinkProps = React.ComponentProps<"a"> & {
213
- isActive?: boolean;
214
- size?: "default" | "sm" | "lg" | "icon";
7
+ import 'class-variance-authority/types';
8
+ import 'class-variance-authority';
9
+ import 'radix-ui';
10
+ import 'cmdk';
11
+ import 'react-day-picker';
12
+
13
+ declare const THEMES: {
14
+ readonly light: "";
15
+ readonly dark: ".dark";
215
16
  };
216
- declare function PaginationLink({ className, isActive, size, ...props }: PaginationLinkProps): react_jsx_runtime.JSX.Element;
217
- declare function PaginationPrevious({ className, ...props }: React.ComponentProps<typeof PaginationLink>): react_jsx_runtime.JSX.Element;
218
- declare function PaginationNext({ className, ...props }: React.ComponentProps<typeof PaginationLink>): react_jsx_runtime.JSX.Element;
219
- declare function PaginationEllipsis({ className, ...props }: React.ComponentProps<"span">): react_jsx_runtime.JSX.Element;
220
-
221
- declare function Toolbar({ className, ...props }: React.ComponentProps<typeof Toolbar$1.Root>): react_jsx_runtime.JSX.Element;
222
- declare function ToolbarButton({ className, ...props }: React.ComponentProps<typeof Toolbar$1.Button>): react_jsx_runtime.JSX.Element;
223
- declare function ToolbarSeparator({ className, ...props }: React.ComponentProps<typeof Toolbar$1.Separator>): react_jsx_runtime.JSX.Element;
224
- declare function ToolbarToggleGroup({ className, ...props }: React.ComponentProps<typeof Toolbar$1.ToggleGroup>): react_jsx_runtime.JSX.Element;
225
- declare function ToolbarToggleItem({ className, ...props }: React.ComponentProps<typeof Toolbar$1.ToggleItem>): react_jsx_runtime.JSX.Element;
226
- declare function ToolbarLink({ className, ...props }: React.ComponentProps<typeof Toolbar$1.Link>): react_jsx_runtime.JSX.Element;
227
-
228
- declare function Menubar({ className, ...props }: React.ComponentProps<typeof Menubar$1.Root>): react_jsx_runtime.JSX.Element;
229
- declare function MenubarMenu({ ...props }: React.ComponentProps<typeof Menubar$1.Menu>): react_jsx_runtime.JSX.Element;
230
- declare function MenubarTrigger({ className, ...props }: React.ComponentProps<typeof Menubar$1.Trigger>): react_jsx_runtime.JSX.Element;
231
- declare function MenubarContent({ className, align, alignOffset, sideOffset, ...props }: React.ComponentProps<typeof Menubar$1.Content>): react_jsx_runtime.JSX.Element;
232
- declare function MenubarItem({ className, inset, variant, ...props }: React.ComponentProps<typeof Menubar$1.Item> & {
233
- inset?: boolean;
234
- variant?: "default" | "destructive";
235
- }): react_jsx_runtime.JSX.Element;
236
- declare function MenubarCheckboxItem({ className, children, checked, ...props }: React.ComponentProps<typeof Menubar$1.CheckboxItem>): react_jsx_runtime.JSX.Element;
237
- declare function MenubarRadioGroup({ ...props }: React.ComponentProps<typeof Menubar$1.RadioGroup>): react_jsx_runtime.JSX.Element;
238
- declare function MenubarRadioItem({ className, children, ...props }: React.ComponentProps<typeof Menubar$1.RadioItem>): react_jsx_runtime.JSX.Element;
239
- declare function MenubarLabel({ className, inset, ...props }: React.ComponentProps<typeof Menubar$1.Label> & {
240
- inset?: boolean;
241
- }): react_jsx_runtime.JSX.Element;
242
- declare function MenubarSeparator({ className, ...props }: React.ComponentProps<typeof Menubar$1.Separator>): react_jsx_runtime.JSX.Element;
243
- declare function MenubarShortcut({ className, ...props }: React.ComponentProps<"span">): react_jsx_runtime.JSX.Element;
244
- declare function MenubarSub({ ...props }: React.ComponentProps<typeof Menubar$1.Sub>): react_jsx_runtime.JSX.Element;
245
- declare function MenubarSubTrigger({ className, inset, children, ...props }: React.ComponentProps<typeof Menubar$1.SubTrigger> & {
246
- inset?: boolean;
247
- }): react_jsx_runtime.JSX.Element;
248
- declare function MenubarSubContent({ className, ...props }: React.ComponentProps<typeof Menubar$1.SubContent>): react_jsx_runtime.JSX.Element;
249
-
250
- declare function NavigationMenu({ className, children, viewport, ...props }: React.ComponentProps<typeof NavigationMenu$1.Root> & {
251
- viewport?: boolean;
252
- }): react_jsx_runtime.JSX.Element;
253
- declare function NavigationMenuList({ className, ...props }: React.ComponentProps<typeof NavigationMenu$1.List>): react_jsx_runtime.JSX.Element;
254
- declare function NavigationMenuItem({ ...props }: React.ComponentProps<typeof NavigationMenu$1.Item>): react_jsx_runtime.JSX.Element;
255
- declare const navigationMenuTriggerStyle: (props?: class_variance_authority_types.ClassProp | undefined) => string;
256
- declare function NavigationMenuTrigger({ className, children, ...props }: React.ComponentProps<typeof NavigationMenu$1.Trigger>): react_jsx_runtime.JSX.Element;
257
- declare function NavigationMenuContent({ className, ...props }: React.ComponentProps<typeof NavigationMenu$1.Content>): react_jsx_runtime.JSX.Element;
258
- declare function NavigationMenuViewport({ className, ...props }: React.ComponentProps<typeof NavigationMenu$1.Viewport>): react_jsx_runtime.JSX.Element;
259
- declare function NavigationMenuLink({ className, ...props }: React.ComponentProps<typeof NavigationMenu$1.Link>): react_jsx_runtime.JSX.Element;
260
- declare function NavigationMenuIndicator({ className, ...props }: React.ComponentProps<typeof NavigationMenu$1.Indicator>): react_jsx_runtime.JSX.Element;
261
-
262
- declare function Command({ className, ...props }: React.ComponentProps<typeof Command$1>): react_jsx_runtime.JSX.Element;
263
- declare function CommandDialog({ title, description, children, className, showCloseButton, ...props }: React.ComponentProps<typeof Dialog> & {
264
- title?: string;
265
- description?: string;
266
- className?: string;
267
- showCloseButton?: boolean;
268
- }): react_jsx_runtime.JSX.Element;
269
- declare function CommandInput({ className, ...props }: React.ComponentProps<typeof Command$1.Input>): react_jsx_runtime.JSX.Element;
270
- declare function CommandList({ className, ...props }: React.ComponentProps<typeof Command$1.List>): react_jsx_runtime.JSX.Element;
271
- declare function CommandEmpty({ ...props }: React.ComponentProps<typeof Command$1.Empty>): react_jsx_runtime.JSX.Element;
272
- declare function CommandGroup({ className, ...props }: React.ComponentProps<typeof Command$1.Group>): react_jsx_runtime.JSX.Element;
273
- declare function CommandSeparator({ className, ...props }: React.ComponentProps<typeof Command$1.Separator>): react_jsx_runtime.JSX.Element;
274
- declare function CommandItem({ className, ...props }: React.ComponentProps<typeof Command$1.Item>): react_jsx_runtime.JSX.Element;
275
- declare function CommandShortcut({ className, ...props }: React.ComponentProps<"span">): react_jsx_runtime.JSX.Element;
276
-
277
- declare function Calendar({ className, classNames, showOutsideDays, ...props }: React.ComponentProps<typeof DayPicker>): react_jsx_runtime.JSX.Element;
278
- declare function CalendarDayButton({ className, day, modifiers, ...props }: DayButtonProps): react_jsx_runtime.JSX.Element;
279
-
280
- /** Searchable select — `Popover` (`variant="list"`) + `Command`. */
281
- declare function Combobox({ ...props }: React.ComponentProps<typeof Popover>): react_jsx_runtime.JSX.Element;
282
- declare function ComboboxTrigger({ className, size, children, ...props }: React.ComponentProps<typeof PopoverTrigger> & {
283
- size?: ControlSize;
284
- }): react_jsx_runtime.JSX.Element;
285
- declare function ComboboxAnchor({ ...props }: React.ComponentProps<typeof PopoverAnchor>): react_jsx_runtime.JSX.Element;
286
- declare function ComboboxContent({ className, align, ...props }: React.ComponentProps<typeof PopoverContent>): react_jsx_runtime.JSX.Element;
287
- declare function ComboboxCommand({ className, ...props }: React.ComponentProps<typeof Command>): react_jsx_runtime.JSX.Element;
288
- declare function ComboboxInput({ ...props }: React.ComponentProps<typeof CommandInput>): react_jsx_runtime.JSX.Element;
289
- declare function ComboboxList({ ...props }: React.ComponentProps<typeof CommandList>): react_jsx_runtime.JSX.Element;
290
- declare function ComboboxEmpty({ ...props }: React.ComponentProps<typeof CommandEmpty>): react_jsx_runtime.JSX.Element;
291
- declare function ComboboxGroup({ ...props }: React.ComponentProps<typeof CommandGroup>): react_jsx_runtime.JSX.Element;
292
- declare function ComboboxItem({ ...props }: React.ComponentProps<typeof CommandItem>): react_jsx_runtime.JSX.Element;
293
- declare function ComboboxSeparator({ ...props }: React.ComponentProps<typeof CommandSeparator>): react_jsx_runtime.JSX.Element;
294
- declare function ComboboxShortcut({ ...props }: React.ComponentProps<typeof CommandShortcut>): react_jsx_runtime.JSX.Element;
295
-
296
- /** Calendar in a popover — compose with `DatePickerTrigger` + `DatePickerCalendar`. */
297
- declare function DatePicker({ ...props }: React.ComponentProps<typeof Popover>): react_jsx_runtime.JSX.Element;
298
- declare function DatePickerTrigger({ ...props }: React.ComponentProps<typeof PopoverTrigger>): react_jsx_runtime.JSX.Element;
299
- declare function DatePickerContent({ className, align, ...props }: React.ComponentProps<typeof PopoverContent>): react_jsx_runtime.JSX.Element;
300
- declare function DatePickerCalendar({ className, ...props }: React.ComponentProps<typeof Calendar>): react_jsx_runtime.JSX.Element;
301
- declare function formatPickerDate(date: Date): string;
302
- /** Control-surface trigger showing the selected date or placeholder. */
303
- declare function DatePickerButton({ date, placeholder, className, ...props }: React.ComponentProps<"button"> & {
304
- date?: Date;
305
- placeholder?: string;
306
- }): react_jsx_runtime.JSX.Element;
307
-
308
- declare function InputOTP({ className, containerClassName, children, ...props }: React.ComponentProps<typeof unstable_OneTimePasswordField.Root> & {
309
- containerClassName?: string;
310
- }): react_jsx_runtime.JSX.Element;
311
- declare function InputOTPGroup({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
312
- declare function InputOTPSlot({ className, ...props }: React.ComponentProps<typeof unstable_OneTimePasswordField.Input>): react_jsx_runtime.JSX.Element;
313
- declare function InputOTPHiddenInput({ ...props }: React.ComponentProps<typeof unstable_OneTimePasswordField.HiddenInput>): react_jsx_runtime.JSX.Element;
314
- declare function InputOTPSeparator({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
315
-
316
- declare function Kbd({ className, ...props }: React.ComponentProps<"kbd">): react_jsx_runtime.JSX.Element;
317
- declare function KbdGroup({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
318
-
319
- declare function Spinner({ className, ...props }: React.ComponentProps<"svg">): react_jsx_runtime.JSX.Element;
320
-
321
- declare function InputGroup({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
322
- declare function InputGroupAddon({ className, align, ...props }: React.ComponentProps<"div"> & {
323
- align?: "inline-start" | "inline-end";
324
- }): react_jsx_runtime.JSX.Element;
325
- declare function InputGroupInput({ className, ...props }: React.ComponentProps<"input">): react_jsx_runtime.JSX.Element;
326
- declare function InputGroupText({ className, ...props }: React.ComponentProps<"span">): react_jsx_runtime.JSX.Element;
327
-
328
- declare function Accordion({ ...props }: React.ComponentProps<typeof Accordion$1.Root>): react_jsx_runtime.JSX.Element;
329
- declare function AccordionItem({ className, ...props }: React.ComponentProps<typeof Accordion$1.Item>): react_jsx_runtime.JSX.Element;
330
- declare function AccordionTrigger({ className, children, ...props }: React.ComponentProps<typeof Accordion$1.Trigger>): react_jsx_runtime.JSX.Element;
331
- declare function AccordionContent({ className, children, ...props }: React.ComponentProps<typeof Accordion$1.Content>): react_jsx_runtime.JSX.Element;
332
-
333
- declare function Separator({ className, orientation, decorative, ...props }: React.ComponentProps<typeof Separator$1.Root>): react_jsx_runtime.JSX.Element;
334
-
335
- declare function Slider({ className, defaultValue, value, min, max, ...props }: React.ComponentProps<typeof Slider$1.Root>): react_jsx_runtime.JSX.Element;
336
-
337
- declare function Progress({ className, value, ...props }: React.ComponentProps<typeof Progress$1.Root>): react_jsx_runtime.JSX.Element;
338
-
339
- /**
340
- * Generic badge — token-driven variants. For status semantics in the app kit
341
- * prefer `StatusBadge` / `StatusDot` (they pair color with text); use this for
342
- * neutral labels, counts, and tags.
343
- */
344
- declare const badgeVariants: (props?: ({
345
- variant?: "default" | "outline" | "secondary" | "destructive" | null | undefined;
346
- } & class_variance_authority_types.ClassProp) | undefined) => string;
347
- declare function Badge({ className, variant, asChild, ...props }: React.ComponentProps<"span"> & VariantProps<typeof badgeVariants> & {
348
- asChild?: boolean;
349
- }): react_jsx_runtime.JSX.Element;
350
-
351
- declare function Sheet({ ...props }: React.ComponentProps<typeof Dialog$1.Root>): react_jsx_runtime.JSX.Element;
352
- declare function SheetTrigger({ ...props }: React.ComponentProps<typeof Dialog$1.Trigger>): react_jsx_runtime.JSX.Element;
353
- declare function SheetClose({ ...props }: React.ComponentProps<typeof Dialog$1.Close>): react_jsx_runtime.JSX.Element;
354
- declare const sheetContentVariants: (props?: ({
355
- side?: "top" | "bottom" | "left" | "right" | null | undefined;
356
- } & class_variance_authority_types.ClassProp) | undefined) => string;
357
- declare function SheetContent({ className, children, side, showCloseButton, ...props }: React.ComponentProps<typeof Dialog$1.Content> & VariantProps<typeof sheetContentVariants> & {
358
- showCloseButton?: boolean;
359
- }): react_jsx_runtime.JSX.Element;
360
- declare function SheetHeader({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
361
- declare function SheetFooter({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
362
- declare function SheetTitle({ className, ...props }: React.ComponentProps<typeof Dialog$1.Title>): react_jsx_runtime.JSX.Element;
363
- declare function SheetDescription({ className, ...props }: React.ComponentProps<typeof Dialog$1.Description>): react_jsx_runtime.JSX.Element;
364
-
365
- declare function AlertDialog({ ...props }: React.ComponentProps<typeof AlertDialog$1.Root>): react_jsx_runtime.JSX.Element;
366
- declare function AlertDialogTrigger({ ...props }: React.ComponentProps<typeof AlertDialog$1.Trigger>): react_jsx_runtime.JSX.Element;
367
- declare function AlertDialogPortal({ ...props }: React.ComponentProps<typeof AlertDialog$1.Portal>): react_jsx_runtime.JSX.Element;
368
- declare function AlertDialogOverlay({ className, ...props }: React.ComponentProps<typeof AlertDialog$1.Overlay>): react_jsx_runtime.JSX.Element;
369
- declare function AlertDialogContent({ className, ...props }: React.ComponentProps<typeof AlertDialog$1.Content>): react_jsx_runtime.JSX.Element;
370
- declare function AlertDialogHeader({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
371
- declare function AlertDialogFooter({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
372
- declare function AlertDialogTitle({ className, ...props }: React.ComponentProps<typeof AlertDialog$1.Title>): react_jsx_runtime.JSX.Element;
373
- declare function AlertDialogDescription({ className, ...props }: React.ComponentProps<typeof AlertDialog$1.Description>): react_jsx_runtime.JSX.Element;
374
- declare function AlertDialogAction({ className, ...props }: React.ComponentProps<typeof AlertDialog$1.Action>): react_jsx_runtime.JSX.Element;
375
- declare function AlertDialogCancel({ className, ...props }: React.ComponentProps<typeof AlertDialog$1.Cancel>): react_jsx_runtime.JSX.Element;
376
-
377
- declare function Collapsible({ ...props }: React.ComponentProps<typeof Collapsible$1.Root>): react_jsx_runtime.JSX.Element;
378
- declare function CollapsibleTrigger({ ...props }: React.ComponentProps<typeof Collapsible$1.Trigger>): react_jsx_runtime.JSX.Element;
379
- declare function CollapsibleContent({ className, ...props }: React.ComponentProps<typeof Collapsible$1.Content>): react_jsx_runtime.JSX.Element;
380
-
381
- declare function ScrollArea({ className, children, ...props }: React.ComponentProps<typeof ScrollArea$1.Root>): react_jsx_runtime.JSX.Element;
382
- declare function ScrollBar({ className, orientation, ...props }: React.ComponentProps<typeof ScrollArea$1.ScrollAreaScrollbar>): react_jsx_runtime.JSX.Element;
383
-
384
- declare const toggleVariants: (props?: ({
385
- variant?: "default" | "outline" | null | undefined;
386
- size?: "default" | "sm" | "lg" | null | undefined;
387
- } & class_variance_authority_types.ClassProp) | undefined) => string;
388
- declare function Toggle({ className, variant, size, ...props }: React.ComponentProps<typeof Toggle$1.Root> & VariantProps<typeof toggleVariants>): react_jsx_runtime.JSX.Element;
389
-
390
- declare function ToggleGroup({ className, ...props }: React.ComponentProps<typeof ToggleGroup$1.Root>): react_jsx_runtime.JSX.Element;
391
- declare function ToggleGroupItem({ className, ...props }: React.ComponentProps<typeof ToggleGroup$1.Item>): react_jsx_runtime.JSX.Element;
392
-
393
- declare function HoverCard({ ...props }: React.ComponentProps<typeof HoverCard$1.Root>): react_jsx_runtime.JSX.Element;
394
- declare function HoverCardTrigger({ ...props }: React.ComponentProps<typeof HoverCard$1.Trigger>): react_jsx_runtime.JSX.Element;
395
- declare function HoverCardContent({ className, align, sideOffset, ...props }: React.ComponentProps<typeof HoverCard$1.Content>): react_jsx_runtime.JSX.Element;
396
-
397
- declare function ContextMenu({ ...props }: React.ComponentProps<typeof ContextMenu$1.Root>): react_jsx_runtime.JSX.Element;
398
- declare function ContextMenuTrigger({ ...props }: React.ComponentProps<typeof ContextMenu$1.Trigger>): react_jsx_runtime.JSX.Element;
399
- declare function ContextMenuGroup({ ...props }: React.ComponentProps<typeof ContextMenu$1.Group>): react_jsx_runtime.JSX.Element;
400
- declare function ContextMenuContent({ className, ...props }: React.ComponentProps<typeof ContextMenu$1.Content>): react_jsx_runtime.JSX.Element;
401
- declare function ContextMenuItem({ className, inset, variant, ...props }: React.ComponentProps<typeof ContextMenu$1.Item> & {
402
- inset?: boolean;
403
- variant?: "default" | "destructive";
404
- }): react_jsx_runtime.JSX.Element;
405
- declare function ContextMenuCheckboxItem({ className, children, checked, ...props }: React.ComponentProps<typeof ContextMenu$1.CheckboxItem>): react_jsx_runtime.JSX.Element;
406
- declare function ContextMenuRadioGroup({ ...props }: React.ComponentProps<typeof ContextMenu$1.RadioGroup>): react_jsx_runtime.JSX.Element;
407
- declare function ContextMenuRadioItem({ className, children, ...props }: React.ComponentProps<typeof ContextMenu$1.RadioItem>): react_jsx_runtime.JSX.Element;
408
- declare function ContextMenuLabel({ className, inset, ...props }: React.ComponentProps<typeof ContextMenu$1.Label> & {
409
- inset?: boolean;
410
- }): react_jsx_runtime.JSX.Element;
411
- declare function ContextMenuSeparator({ className, ...props }: React.ComponentProps<typeof ContextMenu$1.Separator>): react_jsx_runtime.JSX.Element;
412
- declare function ContextMenuShortcut({ className, ...props }: React.ComponentProps<"span">): react_jsx_runtime.JSX.Element;
413
- declare function ContextMenuSub({ ...props }: React.ComponentProps<typeof ContextMenu$1.Sub>): react_jsx_runtime.JSX.Element;
414
- declare function ContextMenuSubTrigger({ className, inset, children, ...props }: React.ComponentProps<typeof ContextMenu$1.SubTrigger> & {
415
- inset?: boolean;
416
- }): react_jsx_runtime.JSX.Element;
417
- declare function ContextMenuSubContent({ className, ...props }: React.ComponentProps<typeof ContextMenu$1.SubContent>): react_jsx_runtime.JSX.Element;
418
-
419
- declare const alertVariants: (props?: ({
420
- variant?: "default" | "destructive" | null | undefined;
421
- } & class_variance_authority_types.ClassProp) | undefined) => string;
422
- declare function Alert({ className, variant, ...props }: React.ComponentProps<"div"> & VariantProps<typeof alertVariants>): react_jsx_runtime.JSX.Element;
423
- declare function AlertTitle({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
424
- declare function AlertDescription({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
425
-
426
- declare function Card({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
427
- declare function CardHeader({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
428
- declare function CardTitle({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
429
- declare function CardDescription({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
430
- declare function CardContent({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
431
- declare function CardFooter({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
432
-
433
- declare function Skeleton({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
434
-
435
- declare function Table({ className, ...props }: React.ComponentProps<"table">): react_jsx_runtime.JSX.Element;
436
- declare function TableHeader({ className, ...props }: React.ComponentProps<"thead">): react_jsx_runtime.JSX.Element;
437
- declare function TableBody({ className, ...props }: React.ComponentProps<"tbody">): react_jsx_runtime.JSX.Element;
438
- declare function TableFooter({ className, ...props }: React.ComponentProps<"tfoot">): react_jsx_runtime.JSX.Element;
439
- declare function TableRow({ className, ...props }: React.ComponentProps<"tr">): react_jsx_runtime.JSX.Element;
440
- declare function TableHead({ className, ...props }: React.ComponentProps<"th">): react_jsx_runtime.JSX.Element;
441
- declare function TableCell({ className, ...props }: React.ComponentProps<"td">): react_jsx_runtime.JSX.Element;
442
- declare function TableCaption({ className, ...props }: React.ComponentProps<"caption">): react_jsx_runtime.JSX.Element;
443
-
444
- declare function ToastProvider({ ...props }: React.ComponentProps<typeof Toast$1.Provider>): react_jsx_runtime.JSX.Element;
445
- declare function ToastViewport({ className, ...props }: React.ComponentProps<typeof Toast$1.Viewport>): react_jsx_runtime.JSX.Element;
446
- declare function Toast({ className, variant, ...props }: React.ComponentProps<typeof Toast$1.Root> & {
447
- variant?: "default" | "destructive";
17
+ type ChartConfig = {
18
+ [k in string]: {
19
+ label?: React.ReactNode;
20
+ icon?: React.ComponentType;
21
+ } & ({
22
+ color?: string;
23
+ theme?: never;
24
+ } | {
25
+ color?: never;
26
+ theme: Record<keyof typeof THEMES, string>;
27
+ });
28
+ };
29
+ type ChartContextProps = {
30
+ config: ChartConfig;
31
+ };
32
+ declare function useChart(): ChartContextProps;
33
+ declare function ChartContainer({ id, className, children, config, ...props }: React.ComponentProps<"div"> & {
34
+ config: ChartConfig;
35
+ children: React.ComponentProps<typeof RechartsPrimitive.ResponsiveContainer>["children"];
448
36
  }): react_jsx_runtime.JSX.Element;
449
- declare function ToastAction({ className, ...props }: React.ComponentProps<typeof Toast$1.Action>): react_jsx_runtime.JSX.Element;
450
- declare function ToastClose({ className, ...props }: React.ComponentProps<typeof Toast$1.Close>): react_jsx_runtime.JSX.Element;
451
- declare function ToastTitle({ className, ...props }: React.ComponentProps<typeof Toast$1.Title>): react_jsx_runtime.JSX.Element;
452
- declare function ToastDescription({ className, ...props }: React.ComponentProps<typeof Toast$1.Description>): react_jsx_runtime.JSX.Element;
453
-
454
- declare function Toaster(): react_jsx_runtime.JSX.Element;
455
-
456
- type ToastProps = {
37
+ declare const ChartStyle: ({ id, config }: {
457
38
  id: string;
458
- title?: React.ReactNode;
459
- description?: React.ReactNode;
460
- variant?: "default" | "destructive";
461
- duration?: number;
39
+ config: ChartConfig;
40
+ }) => react_jsx_runtime.JSX.Element | null;
41
+ declare const ChartTooltip: typeof RechartsPrimitive.Tooltip;
42
+ type TooltipPayloadItem = {
43
+ type?: string;
44
+ value?: unknown;
45
+ name?: string | number;
46
+ dataKey?: string | number;
47
+ color?: string;
48
+ payload?: Record<string, unknown> & {
49
+ fill?: string;
50
+ };
462
51
  };
463
- declare function toast(input: Omit<ToastProps, "id">): string;
464
- declare function useToast(): {
465
- toasts: ToastProps[];
466
- toast: typeof toast;
467
- dismiss: (id: string) => void;
468
- };
469
-
470
- interface TextShimmerProps {
471
- children: string;
472
- as?: ElementType;
52
+ declare function ChartTooltipContent({ active, payload, className, indicator, hideLabel, hideIndicator, label, labelFormatter, labelClassName, formatter, color, nameKey, labelKey, }: {
53
+ active?: boolean;
54
+ payload?: TooltipPayloadItem[];
473
55
  className?: string;
474
- duration?: number;
475
- spread?: number;
476
- }
477
- declare const Shimmer: React.MemoExoticComponent<({ children, as: Component, className, duration, spread, }: TextShimmerProps) => react_jsx_runtime.JSX.Element>;
478
-
479
- interface PillSegmentedTab {
480
- key: string;
481
- label: ReactNode;
482
- disabled?: boolean;
483
- }
484
- interface PillSegmentedTabsProps {
485
- value: string;
486
- onChange: (key: string) => void;
487
- tabs: PillSegmentedTab[];
56
+ indicator?: "line" | "dot" | "dashed";
57
+ hideLabel?: boolean;
58
+ hideIndicator?: boolean;
59
+ label?: unknown;
60
+ labelFormatter?: (value: unknown, payload: TooltipPayloadItem[]) => React.ReactNode;
61
+ labelClassName?: string;
62
+ formatter?: (value: unknown, name: string | number | undefined, item: TooltipPayloadItem, index: number, payload: unknown) => React.ReactNode;
63
+ color?: string;
64
+ nameKey?: string;
65
+ labelKey?: string;
66
+ }): react_jsx_runtime.JSX.Element | null;
67
+ declare const ChartLegend: React.MemoExoticComponent<(outsideProps: RechartsPrimitive.LegendProps) => React.ReactPortal | null>;
68
+ type LegendPayloadItem = {
69
+ value?: unknown;
70
+ type?: string;
71
+ color?: string;
72
+ dataKey?: string | number;
73
+ };
74
+ declare function ChartLegendContent({ className, hideIcon, payload, verticalAlign, nameKey, }: {
488
75
  className?: string;
489
- /** `flush` — Studio topbar / dashboard tabs (Build/Manage). */
490
- trackVariant?: "default" | "flush";
491
- /** Unique per instance when multiple controls share a page (motion layout). */
492
- layoutId?: string;
493
- "aria-label"?: string;
494
- }
495
- /**
496
- * Pill-in-pill segmented control — same visual language as timbal-platform
497
- * `WorkshopPillSegmentedTabs` (Build/Manage, Home Builder tabs).
498
- */
499
- declare const PillSegmentedTabs: FC<PillSegmentedTabsProps>;
500
- declare const MemoPillSegmentedTabs: React.NamedExoticComponent<PillSegmentedTabsProps>;
76
+ hideIcon?: boolean;
77
+ payload?: LegendPayloadItem[];
78
+ verticalAlign?: "top" | "bottom";
79
+ nameKey?: string;
80
+ }): react_jsx_runtime.JSX.Element | null;
501
81
 
502
- export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AspectRatio, Avatar, AvatarFallback, AvatarImage, Badge, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, CONTROL_SIZE, Calendar, CalendarDayButton, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, Collapsible, CollapsibleContent, CollapsibleTrigger, Combobox, ComboboxAnchor, ComboboxCommand, ComboboxContent, ComboboxEmpty, ComboboxGroup, ComboboxInput, ComboboxItem, ComboboxList, ComboboxSeparator, ComboboxShortcut, ComboboxTrigger, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, type ControlClassOptions, type ControlShape, type ControlSize, DatePicker, DatePickerButton, DatePickerCalendar, DatePickerContent, DatePickerTrigger, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Form, FormControl, FormField, FormItem, FormLabel, FormMessage, FormSubmit, HoverCard, HoverCardContent, HoverCardTrigger, Input, InputGroup, InputGroupAddon, InputGroupInput, InputGroupText, InputOTP, InputOTPGroup, InputOTPHiddenInput, InputOTPSeparator, InputOTPSlot, Kbd, KbdGroup, Label, MemoPillSegmentedTabs, Menubar, MenubarCheckboxItem, MenubarContent, MenubarItem, MenubarLabel, MenubarMenu, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, type PillSegmentedTab, PillSegmentedTabs, type PillSegmentedTabsProps, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, Progress, RadioGroup, RadioGroupItem, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, Shimmer, Skeleton, Slider, Spinner, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, type TextShimmerProps, Textarea, Toast, ToastAction, ToastClose, ToastDescription, type ToastProps, ToastProvider, ToastTitle, ToastViewport, Toaster, Toggle, ToggleGroup, ToggleGroupItem, Toolbar, ToolbarButton, ToolbarLink, ToolbarSeparator, ToolbarToggleGroup, ToolbarToggleItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, alertVariants, badgeVariants, controlClass, controlSurfaceClass, formatPickerDate, navigationMenuTriggerStyle, overlayAnimationClass, overlayItemClass, overlayListPanelClass, overlaySurfaceClass, toast, toggleVariants, useToast };
82
+ export { type ChartConfig, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, useChart };