@timbal-ai/timbal-react 0.8.2 → 1.1.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 (43) hide show
  1. package/CHANGELOG.md +49 -0
  2. package/README.md +100 -6
  3. package/dist/app.cjs +2538 -1262
  4. package/dist/app.d.cts +11 -6
  5. package/dist/app.d.ts +11 -6
  6. package/dist/app.esm.js +43 -6
  7. package/dist/{button-ClSgD6OF.d.cts → button-BoyX5pM_.d.cts} +1 -1
  8. package/dist/{button-ClSgD6OF.d.ts → button-BoyX5pM_.d.ts} +1 -1
  9. package/dist/{chart-artifact-Bl67kre7.d.ts → chart-artifact-BZp7nmaf.d.ts} +430 -14
  10. package/dist/{chart-artifact-BzcvblDe.d.cts → chart-artifact-CX-rh9nq.d.cts} +430 -14
  11. package/dist/{chat-Bed4FQSl.d.cts → chat-DCms8pJ_.d.cts} +31 -4
  12. package/dist/{chat-Bed4FQSl.d.ts → chat-DCms8pJ_.d.ts} +31 -4
  13. package/dist/chat.cjs +1111 -776
  14. package/dist/chat.d.cts +1 -1
  15. package/dist/chat.d.ts +1 -1
  16. package/dist/chat.esm.js +3 -3
  17. package/dist/{chunk-QVAUCVQA.esm.js → chunk-4AKJ6FKE.esm.js} +277 -4
  18. package/dist/chunk-6HWMJNZT.esm.js +3439 -0
  19. package/dist/{chunk-VWHHKAHN.esm.js → chunk-FRZOEYBO.esm.js} +4 -4
  20. package/dist/chunk-JEAUF54A.esm.js +52 -0
  21. package/dist/{chunk-OISVICYF.esm.js → chunk-P3KDAYX6.esm.js} +1 -1
  22. package/dist/{chunk-6YVKCVEP.esm.js → chunk-TK2AGIME.esm.js} +1106 -298
  23. package/dist/{chunk-CFU3YDTV.esm.js → chunk-XCM3V6RK.esm.js} +5 -5
  24. package/dist/{chunk-5ZKLPWVN.esm.js → chunk-YXZ22OJN.esm.js} +849 -667
  25. package/dist/index.cjs +6070 -1605
  26. package/dist/index.d.cts +8 -6
  27. package/dist/index.d.ts +8 -6
  28. package/dist/index.esm.js +427 -11
  29. package/dist/pill-segmented-tabs-Ba5q0feL.d.cts +500 -0
  30. package/dist/pill-segmented-tabs-Ba5q0feL.d.ts +500 -0
  31. package/dist/studio.cjs +1333 -998
  32. package/dist/studio.d.cts +2 -2
  33. package/dist/studio.d.ts +2 -2
  34. package/dist/studio.esm.js +5 -5
  35. package/dist/styles.css +220 -0
  36. package/dist/ui.cjs +3592 -89
  37. package/dist/ui.d.cts +72 -96
  38. package/dist/ui.d.ts +72 -96
  39. package/dist/ui.esm.js +400 -6
  40. package/dist/{welcome-COOb05a5.d.cts → welcome-CRqOPKMp.d.cts} +1 -1
  41. package/dist/{welcome-DE08m9ca.d.ts → welcome-DlHUa3OL.d.ts} +1 -1
  42. package/package.json +9 -3
  43. package/dist/chunk-P4SN7M67.esm.js +0 -435
package/dist/ui.d.cts CHANGED
@@ -1,106 +1,82 @@
1
- export { B as Button } from './button-ClSgD6OF.cjs';
1
+ export { B as Button } from './button-BoyX5pM_.cjs';
2
+ export { A as Accordion, a as AccordionContent, b as AccordionItem, c as AccordionTrigger, d as Alert, e as AlertDescription, f as AlertDialog, g as AlertDialogAction, h as AlertDialogCancel, i as AlertDialogContent, j as AlertDialogDescription, k as AlertDialogFooter, l as AlertDialogHeader, m as AlertDialogOverlay, n as AlertDialogPortal, o as AlertDialogTitle, p as AlertDialogTrigger, q as AlertTitle, r as AspectRatio, s as Avatar, t as AvatarFallback, u as AvatarImage, B as Badge, v as Breadcrumb, w as BreadcrumbEllipsis, x as BreadcrumbItem, y as BreadcrumbLink, z as BreadcrumbList, C as BreadcrumbPage, D as BreadcrumbSeparator, E as CONTROL_SIZE, F as Calendar, G as CalendarDayButton, H as Card, I as CardContent, J as CardDescription, K as CardFooter, L as CardHeader, M as CardTitle, N as Checkbox, O as Collapsible, P as CollapsibleContent, Q as CollapsibleTrigger, R as Combobox, S as ComboboxAnchor, T as ComboboxCommand, U as ComboboxContent, V as ComboboxEmpty, W as ComboboxGroup, X as ComboboxInput, Y as ComboboxItem, Z as ComboboxList, _ as ComboboxSeparator, $ as ComboboxShortcut, a0 as ComboboxTrigger, a1 as Command, a2 as CommandDialog, a3 as CommandEmpty, a4 as CommandGroup, a5 as CommandInput, a6 as CommandItem, a7 as CommandList, a8 as CommandSeparator, a9 as CommandShortcut, aa as ContextMenu, ab as ContextMenuCheckboxItem, ac as ContextMenuContent, ad as ContextMenuGroup, ae as ContextMenuItem, af as ContextMenuLabel, ag as ContextMenuRadioGroup, ah as ContextMenuRadioItem, ai as ContextMenuSeparator, aj as ContextMenuShortcut, ak as ContextMenuSub, al as ContextMenuSubContent, am as ContextMenuSubTrigger, an as ContextMenuTrigger, ao as ControlClassOptions, ap as ControlShape, aq as ControlSize, ar as DatePicker, as as DatePickerButton, at as DatePickerCalendar, au as DatePickerContent, av as DatePickerTrigger, aw as Dialog, ax as DialogClose, ay as DialogContent, az as DialogDescription, aA as DialogFooter, aB as DialogHeader, aC as DialogOverlay, aD as DialogPortal, aE as DialogTitle, aF as DialogTrigger, aG as DropdownMenu, aH as DropdownMenuCheckboxItem, aI as DropdownMenuContent, aJ as DropdownMenuGroup, aK as DropdownMenuItem, aL as DropdownMenuLabel, aM as DropdownMenuRadioGroup, aN as DropdownMenuRadioItem, aO as DropdownMenuSeparator, aP as DropdownMenuShortcut, aQ as DropdownMenuSub, aR as DropdownMenuSubContent, aS as DropdownMenuSubTrigger, aT as DropdownMenuTrigger, aU as Form, aV as FormControl, aW as FormField, aX as FormItem, aY as FormLabel, aZ as FormMessage, a_ as FormSubmit, a$ as HoverCard, b0 as HoverCardContent, b1 as HoverCardTrigger, b2 as Input, b3 as InputGroup, b4 as InputGroupAddon, b5 as InputGroupInput, b6 as InputGroupText, b7 as InputOTP, b8 as InputOTPGroup, b9 as InputOTPHiddenInput, ba as InputOTPSeparator, bb as InputOTPSlot, bc as Kbd, bd as KbdGroup, be as Label, bf as MemoPillSegmentedTabs, bg as Menubar, bh as MenubarCheckboxItem, bi as MenubarContent, bj as MenubarItem, bk as MenubarLabel, bl as MenubarMenu, bm as MenubarRadioGroup, bn as MenubarRadioItem, bo as MenubarSeparator, bp as MenubarShortcut, bq as MenubarSub, br as MenubarSubContent, bs as MenubarSubTrigger, bt as MenubarTrigger, bu as NavigationMenu, bv as NavigationMenuContent, bw as NavigationMenuIndicator, bx as NavigationMenuItem, by as NavigationMenuLink, bz as NavigationMenuList, bA as NavigationMenuTrigger, bB as NavigationMenuViewport, bC as Pagination, bD as PaginationContent, bE as PaginationEllipsis, bF as PaginationItem, bG as PaginationLink, bH as PaginationNext, bI as PaginationPrevious, bJ as PillSegmentedTab, bK as PillSegmentedTabs, bL as PillSegmentedTabsProps, bM as Popover, bN as PopoverAnchor, bO as PopoverContent, bP as PopoverTrigger, bQ as Progress, bR as RadioGroup, bS as RadioGroupItem, bT as ScrollArea, bU as ScrollBar, bV as Select, bW as SelectContent, bX as SelectGroup, bY as SelectItem, bZ as SelectLabel, b_ as SelectScrollDownButton, b$ as SelectScrollUpButton, c0 as SelectSeparator, c1 as SelectTrigger, c2 as SelectValue, c3 as Separator, c4 as Sheet, c5 as SheetClose, c6 as SheetContent, c7 as SheetDescription, c8 as SheetFooter, c9 as SheetHeader, ca as SheetTitle, cb as SheetTrigger, cc as Shimmer, cd as Skeleton, ce as Slider, cf as Spinner, cg as Switch, ch as Table, ci as TableBody, cj as TableCaption, ck as TableCell, cl as TableFooter, cm as TableHead, cn as TableHeader, co as TableRow, cp as TextShimmerProps, cq as Textarea, cr as Toast, cs as ToastAction, ct as ToastClose, cu as ToastDescription, cv as ToastProps, cw as ToastProvider, cx as ToastTitle, cy as ToastViewport, cz as Toaster, cA as Toggle, cB as ToggleGroup, cC as ToggleGroupItem, cD as Toolbar, cE as ToolbarButton, cF as ToolbarLink, cG as ToolbarSeparator, cH as ToolbarToggleGroup, cI as ToolbarToggleItem, cJ as Tooltip, cK as TooltipContent, cL as TooltipProvider, cM as TooltipTrigger, cN as alertVariants, cO as badgeVariants, cP as controlClass, cQ as controlSurfaceClass, cR as formatPickerDate, cS as navigationMenuTriggerStyle, cT as overlayAnimationClass, cU as overlayItemClass, cV as overlayListPanelClass, cW as overlaySurfaceClass, cX as toast, cY as toggleVariants, cZ as useToast } from './pill-segmented-tabs-Ba5q0feL.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 } from 'radix-ui';
5
+ import * as RechartsPrimitive from 'recharts';
6
6
  export { a as TimbalV2Button } from './timbal-v2-button-CNfdwGq4.cjs';
7
7
  import 'class-variance-authority/types';
8
8
  import 'class-variance-authority';
9
+ import 'radix-ui';
10
+ import 'cmdk';
11
+ import 'react-day-picker';
9
12
 
10
- declare function TooltipProvider({ delayDuration, ...props }: React.ComponentProps<typeof Tooltip$1.Provider>): react_jsx_runtime.JSX.Element;
11
- declare function Tooltip({ ...props }: React.ComponentProps<typeof Tooltip$1.Root>): react_jsx_runtime.JSX.Element;
12
- declare function TooltipTrigger({ ...props }: React.ComponentProps<typeof Tooltip$1.Trigger>): react_jsx_runtime.JSX.Element;
13
- declare function TooltipContent({ className, sideOffset, children, ...props }: React.ComponentProps<typeof Tooltip$1.Content>): react_jsx_runtime.JSX.Element;
14
-
15
- declare function Avatar({ className, size, ...props }: React.ComponentProps<typeof Avatar$1.Root> & {
16
- size?: "default" | "sm" | "lg";
17
- }): react_jsx_runtime.JSX.Element;
18
- declare function AvatarImage({ className, ...props }: React.ComponentProps<typeof Avatar$1.Image>): react_jsx_runtime.JSX.Element;
19
- declare function AvatarFallback({ className, ...props }: React.ComponentProps<typeof Avatar$1.Fallback>): react_jsx_runtime.JSX.Element;
20
-
21
- declare function Dialog({ ...props }: React.ComponentProps<typeof Dialog$1.Root>): react_jsx_runtime.JSX.Element;
22
- declare function DialogTrigger({ ...props }: React.ComponentProps<typeof Dialog$1.Trigger>): react_jsx_runtime.JSX.Element;
23
- declare function DialogPortal({ ...props }: React.ComponentProps<typeof Dialog$1.Portal>): react_jsx_runtime.JSX.Element;
24
- declare function DialogClose({ ...props }: React.ComponentProps<typeof Dialog$1.Close>): react_jsx_runtime.JSX.Element;
25
- declare function DialogOverlay({ className, ...props }: React.ComponentProps<typeof Dialog$1.Overlay>): react_jsx_runtime.JSX.Element;
26
- declare function DialogContent({ className, children, showCloseButton, ...props }: React.ComponentProps<typeof Dialog$1.Content> & {
27
- showCloseButton?: boolean;
28
- }): react_jsx_runtime.JSX.Element;
29
- declare function DialogTitle({ className, ...props }: React.ComponentProps<typeof Dialog$1.Title>): react_jsx_runtime.JSX.Element;
30
- declare function DialogDescription({ className, ...props }: React.ComponentProps<typeof Dialog$1.Description>): react_jsx_runtime.JSX.Element;
31
- declare function DialogHeader({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
32
- declare function DialogFooter({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
33
-
34
- declare function DropdownMenu({ ...props }: React.ComponentProps<typeof DropdownMenu$1.Root>): react_jsx_runtime.JSX.Element;
35
- declare function DropdownMenuTrigger({ ...props }: React.ComponentProps<typeof DropdownMenu$1.Trigger>): react_jsx_runtime.JSX.Element;
36
- declare function DropdownMenuGroup({ ...props }: React.ComponentProps<typeof DropdownMenu$1.Group>): react_jsx_runtime.JSX.Element;
37
- declare function DropdownMenuContent({ className, sideOffset, ...props }: React.ComponentProps<typeof DropdownMenu$1.Content>): react_jsx_runtime.JSX.Element;
38
- declare function DropdownMenuItem({ className, inset, variant, ...props }: React.ComponentProps<typeof DropdownMenu$1.Item> & {
39
- inset?: boolean;
40
- variant?: "default" | "destructive";
41
- }): react_jsx_runtime.JSX.Element;
42
- declare function DropdownMenuCheckboxItem({ className, children, checked, ...props }: React.ComponentProps<typeof DropdownMenu$1.CheckboxItem>): react_jsx_runtime.JSX.Element;
43
- declare function DropdownMenuRadioGroup({ ...props }: React.ComponentProps<typeof DropdownMenu$1.RadioGroup>): react_jsx_runtime.JSX.Element;
44
- declare function DropdownMenuRadioItem({ className, children, ...props }: React.ComponentProps<typeof DropdownMenu$1.RadioItem>): react_jsx_runtime.JSX.Element;
45
- declare function DropdownMenuLabel({ className, inset, ...props }: React.ComponentProps<typeof DropdownMenu$1.Label> & {
46
- inset?: boolean;
13
+ declare const THEMES: {
14
+ readonly light: "";
15
+ readonly dark: ".dark";
16
+ };
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"];
47
36
  }): react_jsx_runtime.JSX.Element;
48
- declare function DropdownMenuSeparator({ className, ...props }: React.ComponentProps<typeof DropdownMenu$1.Separator>): react_jsx_runtime.JSX.Element;
49
- declare function DropdownMenuShortcut({ className, ...props }: React.ComponentProps<"span">): react_jsx_runtime.JSX.Element;
50
- declare function DropdownMenuSub({ ...props }: React.ComponentProps<typeof DropdownMenu$1.Sub>): react_jsx_runtime.JSX.Element;
51
- declare function DropdownMenuSubTrigger({ className, inset, children, ...props }: React.ComponentProps<typeof DropdownMenu$1.SubTrigger> & {
52
- inset?: boolean;
53
- }): react_jsx_runtime.JSX.Element;
54
- declare function DropdownMenuSubContent({ className, ...props }: React.ComponentProps<typeof DropdownMenu$1.SubContent>): react_jsx_runtime.JSX.Element;
55
-
56
- declare function Popover({ ...props }: React.ComponentProps<typeof Popover$1.Root>): react_jsx_runtime.JSX.Element;
57
- declare function PopoverTrigger({ ...props }: React.ComponentProps<typeof Popover$1.Trigger>): react_jsx_runtime.JSX.Element;
58
- declare function PopoverAnchor({ ...props }: React.ComponentProps<typeof Popover$1.Anchor>): react_jsx_runtime.JSX.Element;
59
- declare function PopoverContent({ className, align, sideOffset, ...props }: React.ComponentProps<typeof Popover$1.Content>): react_jsx_runtime.JSX.Element;
60
-
61
- declare function Select({ ...props }: React.ComponentProps<typeof Select$1.Root>): react_jsx_runtime.JSX.Element;
62
- declare function SelectGroup({ ...props }: React.ComponentProps<typeof Select$1.Group>): react_jsx_runtime.JSX.Element;
63
- declare function SelectValue({ ...props }: React.ComponentProps<typeof Select$1.Value>): react_jsx_runtime.JSX.Element;
64
- declare function SelectTrigger({ className, size, children, ...props }: React.ComponentProps<typeof Select$1.Trigger> & {
65
- size?: "sm" | "default";
66
- }): react_jsx_runtime.JSX.Element;
67
- declare function SelectContent({ className, children, position, ...props }: React.ComponentProps<typeof Select$1.Content>): react_jsx_runtime.JSX.Element;
68
- declare function SelectLabel({ className, ...props }: React.ComponentProps<typeof Select$1.Label>): react_jsx_runtime.JSX.Element;
69
- declare function SelectItem({ className, children, ...props }: React.ComponentProps<typeof Select$1.Item>): react_jsx_runtime.JSX.Element;
70
- declare function SelectSeparator({ className, ...props }: React.ComponentProps<typeof Select$1.Separator>): react_jsx_runtime.JSX.Element;
71
- declare function SelectScrollUpButton({ className, ...props }: React.ComponentProps<typeof Select$1.ScrollUpButton>): react_jsx_runtime.JSX.Element;
72
- declare function SelectScrollDownButton({ className, ...props }: React.ComponentProps<typeof Select$1.ScrollDownButton>): react_jsx_runtime.JSX.Element;
73
-
74
- interface TextShimmerProps {
75
- children: string;
76
- as?: ElementType;
37
+ declare const ChartStyle: ({ id, config }: {
38
+ id: string;
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
+ };
51
+ };
52
+ declare function ChartTooltipContent({ active, payload, className, indicator, hideLabel, hideIndicator, label, labelFormatter, labelClassName, formatter, color, nameKey, labelKey, }: {
53
+ active?: boolean;
54
+ payload?: TooltipPayloadItem[];
77
55
  className?: string;
78
- duration?: number;
79
- spread?: number;
80
- }
81
- declare const Shimmer: React.MemoExoticComponent<({ children, as: Component, className, duration, spread, }: TextShimmerProps) => react_jsx_runtime.JSX.Element>;
82
-
83
- interface PillSegmentedTab {
84
- key: string;
85
- label: ReactNode;
86
- disabled?: boolean;
87
- }
88
- interface PillSegmentedTabsProps {
89
- value: string;
90
- onChange: (key: string) => void;
91
- 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, }: {
92
75
  className?: string;
93
- /** `flush` — Studio topbar / dashboard tabs (Build/Manage). */
94
- trackVariant?: "default" | "flush";
95
- /** Unique per instance when multiple controls share a page (motion layout). */
96
- layoutId?: string;
97
- "aria-label"?: string;
98
- }
99
- /**
100
- * Pill-in-pill segmented control — same visual language as timbal-platform
101
- * `WorkshopPillSegmentedTabs` (Build/Manage, Home Builder tabs).
102
- */
103
- declare const PillSegmentedTabs: FC<PillSegmentedTabsProps>;
104
- 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;
105
81
 
106
- export { Avatar, AvatarFallback, AvatarImage, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, MemoPillSegmentedTabs, type PillSegmentedTab, PillSegmentedTabs, type PillSegmentedTabsProps, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Shimmer, type TextShimmerProps, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger };
82
+ export { type ChartConfig, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, useChart };
package/dist/ui.d.ts CHANGED
@@ -1,106 +1,82 @@
1
- export { B as Button } from './button-ClSgD6OF.js';
1
+ export { B as Button } from './button-BoyX5pM_.js';
2
+ export { A as Accordion, a as AccordionContent, b as AccordionItem, c as AccordionTrigger, d as Alert, e as AlertDescription, f as AlertDialog, g as AlertDialogAction, h as AlertDialogCancel, i as AlertDialogContent, j as AlertDialogDescription, k as AlertDialogFooter, l as AlertDialogHeader, m as AlertDialogOverlay, n as AlertDialogPortal, o as AlertDialogTitle, p as AlertDialogTrigger, q as AlertTitle, r as AspectRatio, s as Avatar, t as AvatarFallback, u as AvatarImage, B as Badge, v as Breadcrumb, w as BreadcrumbEllipsis, x as BreadcrumbItem, y as BreadcrumbLink, z as BreadcrumbList, C as BreadcrumbPage, D as BreadcrumbSeparator, E as CONTROL_SIZE, F as Calendar, G as CalendarDayButton, H as Card, I as CardContent, J as CardDescription, K as CardFooter, L as CardHeader, M as CardTitle, N as Checkbox, O as Collapsible, P as CollapsibleContent, Q as CollapsibleTrigger, R as Combobox, S as ComboboxAnchor, T as ComboboxCommand, U as ComboboxContent, V as ComboboxEmpty, W as ComboboxGroup, X as ComboboxInput, Y as ComboboxItem, Z as ComboboxList, _ as ComboboxSeparator, $ as ComboboxShortcut, a0 as ComboboxTrigger, a1 as Command, a2 as CommandDialog, a3 as CommandEmpty, a4 as CommandGroup, a5 as CommandInput, a6 as CommandItem, a7 as CommandList, a8 as CommandSeparator, a9 as CommandShortcut, aa as ContextMenu, ab as ContextMenuCheckboxItem, ac as ContextMenuContent, ad as ContextMenuGroup, ae as ContextMenuItem, af as ContextMenuLabel, ag as ContextMenuRadioGroup, ah as ContextMenuRadioItem, ai as ContextMenuSeparator, aj as ContextMenuShortcut, ak as ContextMenuSub, al as ContextMenuSubContent, am as ContextMenuSubTrigger, an as ContextMenuTrigger, ao as ControlClassOptions, ap as ControlShape, aq as ControlSize, ar as DatePicker, as as DatePickerButton, at as DatePickerCalendar, au as DatePickerContent, av as DatePickerTrigger, aw as Dialog, ax as DialogClose, ay as DialogContent, az as DialogDescription, aA as DialogFooter, aB as DialogHeader, aC as DialogOverlay, aD as DialogPortal, aE as DialogTitle, aF as DialogTrigger, aG as DropdownMenu, aH as DropdownMenuCheckboxItem, aI as DropdownMenuContent, aJ as DropdownMenuGroup, aK as DropdownMenuItem, aL as DropdownMenuLabel, aM as DropdownMenuRadioGroup, aN as DropdownMenuRadioItem, aO as DropdownMenuSeparator, aP as DropdownMenuShortcut, aQ as DropdownMenuSub, aR as DropdownMenuSubContent, aS as DropdownMenuSubTrigger, aT as DropdownMenuTrigger, aU as Form, aV as FormControl, aW as FormField, aX as FormItem, aY as FormLabel, aZ as FormMessage, a_ as FormSubmit, a$ as HoverCard, b0 as HoverCardContent, b1 as HoverCardTrigger, b2 as Input, b3 as InputGroup, b4 as InputGroupAddon, b5 as InputGroupInput, b6 as InputGroupText, b7 as InputOTP, b8 as InputOTPGroup, b9 as InputOTPHiddenInput, ba as InputOTPSeparator, bb as InputOTPSlot, bc as Kbd, bd as KbdGroup, be as Label, bf as MemoPillSegmentedTabs, bg as Menubar, bh as MenubarCheckboxItem, bi as MenubarContent, bj as MenubarItem, bk as MenubarLabel, bl as MenubarMenu, bm as MenubarRadioGroup, bn as MenubarRadioItem, bo as MenubarSeparator, bp as MenubarShortcut, bq as MenubarSub, br as MenubarSubContent, bs as MenubarSubTrigger, bt as MenubarTrigger, bu as NavigationMenu, bv as NavigationMenuContent, bw as NavigationMenuIndicator, bx as NavigationMenuItem, by as NavigationMenuLink, bz as NavigationMenuList, bA as NavigationMenuTrigger, bB as NavigationMenuViewport, bC as Pagination, bD as PaginationContent, bE as PaginationEllipsis, bF as PaginationItem, bG as PaginationLink, bH as PaginationNext, bI as PaginationPrevious, bJ as PillSegmentedTab, bK as PillSegmentedTabs, bL as PillSegmentedTabsProps, bM as Popover, bN as PopoverAnchor, bO as PopoverContent, bP as PopoverTrigger, bQ as Progress, bR as RadioGroup, bS as RadioGroupItem, bT as ScrollArea, bU as ScrollBar, bV as Select, bW as SelectContent, bX as SelectGroup, bY as SelectItem, bZ as SelectLabel, b_ as SelectScrollDownButton, b$ as SelectScrollUpButton, c0 as SelectSeparator, c1 as SelectTrigger, c2 as SelectValue, c3 as Separator, c4 as Sheet, c5 as SheetClose, c6 as SheetContent, c7 as SheetDescription, c8 as SheetFooter, c9 as SheetHeader, ca as SheetTitle, cb as SheetTrigger, cc as Shimmer, cd as Skeleton, ce as Slider, cf as Spinner, cg as Switch, ch as Table, ci as TableBody, cj as TableCaption, ck as TableCell, cl as TableFooter, cm as TableHead, cn as TableHeader, co as TableRow, cp as TextShimmerProps, cq as Textarea, cr as Toast, cs as ToastAction, ct as ToastClose, cu as ToastDescription, cv as ToastProps, cw as ToastProvider, cx as ToastTitle, cy as ToastViewport, cz as Toaster, cA as Toggle, cB as ToggleGroup, cC as ToggleGroupItem, cD as Toolbar, cE as ToolbarButton, cF as ToolbarLink, cG as ToolbarSeparator, cH as ToolbarToggleGroup, cI as ToolbarToggleItem, cJ as Tooltip, cK as TooltipContent, cL as TooltipProvider, cM as TooltipTrigger, cN as alertVariants, cO as badgeVariants, cP as controlClass, cQ as controlSurfaceClass, cR as formatPickerDate, cS as navigationMenuTriggerStyle, cT as overlayAnimationClass, cU as overlayItemClass, cV as overlayListPanelClass, cW as overlaySurfaceClass, cX as toast, cY as toggleVariants, cZ as useToast } from './pill-segmented-tabs-Ba5q0feL.js';
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 } from 'radix-ui';
5
+ import * as RechartsPrimitive from 'recharts';
6
6
  export { a as TimbalV2Button } from './timbal-v2-button-CNfdwGq4.js';
7
7
  import 'class-variance-authority/types';
8
8
  import 'class-variance-authority';
9
+ import 'radix-ui';
10
+ import 'cmdk';
11
+ import 'react-day-picker';
9
12
 
10
- declare function TooltipProvider({ delayDuration, ...props }: React.ComponentProps<typeof Tooltip$1.Provider>): react_jsx_runtime.JSX.Element;
11
- declare function Tooltip({ ...props }: React.ComponentProps<typeof Tooltip$1.Root>): react_jsx_runtime.JSX.Element;
12
- declare function TooltipTrigger({ ...props }: React.ComponentProps<typeof Tooltip$1.Trigger>): react_jsx_runtime.JSX.Element;
13
- declare function TooltipContent({ className, sideOffset, children, ...props }: React.ComponentProps<typeof Tooltip$1.Content>): react_jsx_runtime.JSX.Element;
14
-
15
- declare function Avatar({ className, size, ...props }: React.ComponentProps<typeof Avatar$1.Root> & {
16
- size?: "default" | "sm" | "lg";
17
- }): react_jsx_runtime.JSX.Element;
18
- declare function AvatarImage({ className, ...props }: React.ComponentProps<typeof Avatar$1.Image>): react_jsx_runtime.JSX.Element;
19
- declare function AvatarFallback({ className, ...props }: React.ComponentProps<typeof Avatar$1.Fallback>): react_jsx_runtime.JSX.Element;
20
-
21
- declare function Dialog({ ...props }: React.ComponentProps<typeof Dialog$1.Root>): react_jsx_runtime.JSX.Element;
22
- declare function DialogTrigger({ ...props }: React.ComponentProps<typeof Dialog$1.Trigger>): react_jsx_runtime.JSX.Element;
23
- declare function DialogPortal({ ...props }: React.ComponentProps<typeof Dialog$1.Portal>): react_jsx_runtime.JSX.Element;
24
- declare function DialogClose({ ...props }: React.ComponentProps<typeof Dialog$1.Close>): react_jsx_runtime.JSX.Element;
25
- declare function DialogOverlay({ className, ...props }: React.ComponentProps<typeof Dialog$1.Overlay>): react_jsx_runtime.JSX.Element;
26
- declare function DialogContent({ className, children, showCloseButton, ...props }: React.ComponentProps<typeof Dialog$1.Content> & {
27
- showCloseButton?: boolean;
28
- }): react_jsx_runtime.JSX.Element;
29
- declare function DialogTitle({ className, ...props }: React.ComponentProps<typeof Dialog$1.Title>): react_jsx_runtime.JSX.Element;
30
- declare function DialogDescription({ className, ...props }: React.ComponentProps<typeof Dialog$1.Description>): react_jsx_runtime.JSX.Element;
31
- declare function DialogHeader({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
32
- declare function DialogFooter({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
33
-
34
- declare function DropdownMenu({ ...props }: React.ComponentProps<typeof DropdownMenu$1.Root>): react_jsx_runtime.JSX.Element;
35
- declare function DropdownMenuTrigger({ ...props }: React.ComponentProps<typeof DropdownMenu$1.Trigger>): react_jsx_runtime.JSX.Element;
36
- declare function DropdownMenuGroup({ ...props }: React.ComponentProps<typeof DropdownMenu$1.Group>): react_jsx_runtime.JSX.Element;
37
- declare function DropdownMenuContent({ className, sideOffset, ...props }: React.ComponentProps<typeof DropdownMenu$1.Content>): react_jsx_runtime.JSX.Element;
38
- declare function DropdownMenuItem({ className, inset, variant, ...props }: React.ComponentProps<typeof DropdownMenu$1.Item> & {
39
- inset?: boolean;
40
- variant?: "default" | "destructive";
41
- }): react_jsx_runtime.JSX.Element;
42
- declare function DropdownMenuCheckboxItem({ className, children, checked, ...props }: React.ComponentProps<typeof DropdownMenu$1.CheckboxItem>): react_jsx_runtime.JSX.Element;
43
- declare function DropdownMenuRadioGroup({ ...props }: React.ComponentProps<typeof DropdownMenu$1.RadioGroup>): react_jsx_runtime.JSX.Element;
44
- declare function DropdownMenuRadioItem({ className, children, ...props }: React.ComponentProps<typeof DropdownMenu$1.RadioItem>): react_jsx_runtime.JSX.Element;
45
- declare function DropdownMenuLabel({ className, inset, ...props }: React.ComponentProps<typeof DropdownMenu$1.Label> & {
46
- inset?: boolean;
13
+ declare const THEMES: {
14
+ readonly light: "";
15
+ readonly dark: ".dark";
16
+ };
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"];
47
36
  }): react_jsx_runtime.JSX.Element;
48
- declare function DropdownMenuSeparator({ className, ...props }: React.ComponentProps<typeof DropdownMenu$1.Separator>): react_jsx_runtime.JSX.Element;
49
- declare function DropdownMenuShortcut({ className, ...props }: React.ComponentProps<"span">): react_jsx_runtime.JSX.Element;
50
- declare function DropdownMenuSub({ ...props }: React.ComponentProps<typeof DropdownMenu$1.Sub>): react_jsx_runtime.JSX.Element;
51
- declare function DropdownMenuSubTrigger({ className, inset, children, ...props }: React.ComponentProps<typeof DropdownMenu$1.SubTrigger> & {
52
- inset?: boolean;
53
- }): react_jsx_runtime.JSX.Element;
54
- declare function DropdownMenuSubContent({ className, ...props }: React.ComponentProps<typeof DropdownMenu$1.SubContent>): react_jsx_runtime.JSX.Element;
55
-
56
- declare function Popover({ ...props }: React.ComponentProps<typeof Popover$1.Root>): react_jsx_runtime.JSX.Element;
57
- declare function PopoverTrigger({ ...props }: React.ComponentProps<typeof Popover$1.Trigger>): react_jsx_runtime.JSX.Element;
58
- declare function PopoverAnchor({ ...props }: React.ComponentProps<typeof Popover$1.Anchor>): react_jsx_runtime.JSX.Element;
59
- declare function PopoverContent({ className, align, sideOffset, ...props }: React.ComponentProps<typeof Popover$1.Content>): react_jsx_runtime.JSX.Element;
60
-
61
- declare function Select({ ...props }: React.ComponentProps<typeof Select$1.Root>): react_jsx_runtime.JSX.Element;
62
- declare function SelectGroup({ ...props }: React.ComponentProps<typeof Select$1.Group>): react_jsx_runtime.JSX.Element;
63
- declare function SelectValue({ ...props }: React.ComponentProps<typeof Select$1.Value>): react_jsx_runtime.JSX.Element;
64
- declare function SelectTrigger({ className, size, children, ...props }: React.ComponentProps<typeof Select$1.Trigger> & {
65
- size?: "sm" | "default";
66
- }): react_jsx_runtime.JSX.Element;
67
- declare function SelectContent({ className, children, position, ...props }: React.ComponentProps<typeof Select$1.Content>): react_jsx_runtime.JSX.Element;
68
- declare function SelectLabel({ className, ...props }: React.ComponentProps<typeof Select$1.Label>): react_jsx_runtime.JSX.Element;
69
- declare function SelectItem({ className, children, ...props }: React.ComponentProps<typeof Select$1.Item>): react_jsx_runtime.JSX.Element;
70
- declare function SelectSeparator({ className, ...props }: React.ComponentProps<typeof Select$1.Separator>): react_jsx_runtime.JSX.Element;
71
- declare function SelectScrollUpButton({ className, ...props }: React.ComponentProps<typeof Select$1.ScrollUpButton>): react_jsx_runtime.JSX.Element;
72
- declare function SelectScrollDownButton({ className, ...props }: React.ComponentProps<typeof Select$1.ScrollDownButton>): react_jsx_runtime.JSX.Element;
73
-
74
- interface TextShimmerProps {
75
- children: string;
76
- as?: ElementType;
37
+ declare const ChartStyle: ({ id, config }: {
38
+ id: string;
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
+ };
51
+ };
52
+ declare function ChartTooltipContent({ active, payload, className, indicator, hideLabel, hideIndicator, label, labelFormatter, labelClassName, formatter, color, nameKey, labelKey, }: {
53
+ active?: boolean;
54
+ payload?: TooltipPayloadItem[];
77
55
  className?: string;
78
- duration?: number;
79
- spread?: number;
80
- }
81
- declare const Shimmer: React.MemoExoticComponent<({ children, as: Component, className, duration, spread, }: TextShimmerProps) => react_jsx_runtime.JSX.Element>;
82
-
83
- interface PillSegmentedTab {
84
- key: string;
85
- label: ReactNode;
86
- disabled?: boolean;
87
- }
88
- interface PillSegmentedTabsProps {
89
- value: string;
90
- onChange: (key: string) => void;
91
- 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, }: {
92
75
  className?: string;
93
- /** `flush` — Studio topbar / dashboard tabs (Build/Manage). */
94
- trackVariant?: "default" | "flush";
95
- /** Unique per instance when multiple controls share a page (motion layout). */
96
- layoutId?: string;
97
- "aria-label"?: string;
98
- }
99
- /**
100
- * Pill-in-pill segmented control — same visual language as timbal-platform
101
- * `WorkshopPillSegmentedTabs` (Build/Manage, Home Builder tabs).
102
- */
103
- declare const PillSegmentedTabs: FC<PillSegmentedTabsProps>;
104
- 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;
105
81
 
106
- export { Avatar, AvatarFallback, AvatarImage, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, MemoPillSegmentedTabs, type PillSegmentedTab, PillSegmentedTabs, type PillSegmentedTabsProps, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Shimmer, type TextShimmerProps, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger };
82
+ export { type ChartConfig, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, useChart };