@timbal-ai/timbal-react 1.4.0 → 1.5.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 (53) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/README.md +18 -4
  3. package/dist/app.cjs +3532 -1483
  4. package/dist/app.d.cts +75 -30
  5. package/dist/app.d.ts +75 -30
  6. package/dist/app.esm.js +29 -7
  7. package/dist/{chart-artifact-CMnDys2t.d.ts → chart-artifact-2OTDTRwM.d.ts} +194 -40
  8. package/dist/{chart-artifact-C8-Py6lc.d.cts → chart-artifact-CS3qyGIY.d.cts} +194 -40
  9. package/dist/chat.cjs +264 -107
  10. package/dist/chat.d.cts +2 -2
  11. package/dist/chat.d.ts +2 -2
  12. package/dist/chat.esm.js +4 -3
  13. package/dist/chunk-5ECRZ5O7.esm.js +899 -0
  14. package/dist/{chunk-QU7ET55D.esm.js → chunk-AZL2WANO.esm.js} +320 -177
  15. package/dist/{chunk-OH23AX2V.esm.js → chunk-B4XAC4G7.esm.js} +430 -780
  16. package/dist/chunk-EDEKQYSU.esm.js +10 -0
  17. package/dist/{chunk-GQBYZRD7.esm.js → chunk-IGHBLJV3.esm.js} +38 -27
  18. package/dist/{chunk-OFWC4MIY.esm.js → chunk-JYDJRGDE.esm.js} +5 -3
  19. package/dist/{chunk-VOWNCS3F.esm.js → chunk-SZDYIRMB.esm.js} +1567 -490
  20. package/dist/chunk-TZI3ID3C.esm.js +232 -0
  21. package/dist/{chunk-THBA27QY.esm.js → chunk-WMKPT5BV.esm.js} +242 -123
  22. package/dist/{chunk-VXMM2HX7.esm.js → chunk-ZNYAETFD.esm.js} +1 -1
  23. package/dist/{circular-progress-Ci8L-Hfa.d.cts → circular-progress-CDsJwIPF.d.cts} +19 -77
  24. package/dist/{circular-progress-Ci8L-Hfa.d.ts → circular-progress-CDsJwIPF.d.ts} +19 -77
  25. package/dist/index.cjs +5506 -3626
  26. package/dist/index.d.cts +7 -6
  27. package/dist/index.d.ts +7 -6
  28. package/dist/index.esm.js +45 -33
  29. package/dist/kanban-U5xNe9py.d.cts +212 -0
  30. package/dist/kanban-U5xNe9py.d.ts +212 -0
  31. package/dist/{layout-BTJyU8wd.d.ts → layout-B8r6Jbat.d.ts} +1 -1
  32. package/dist/{layout-C2G-FcER.d.cts → layout-Cu7Ijn04.d.cts} +1 -1
  33. package/dist/site.cjs +358 -0
  34. package/dist/site.d.cts +184 -0
  35. package/dist/site.d.ts +184 -0
  36. package/dist/site.esm.js +322 -0
  37. package/dist/studio.cjs +702 -343
  38. package/dist/studio.d.cts +1 -1
  39. package/dist/studio.d.ts +1 -1
  40. package/dist/studio.esm.js +7 -5
  41. package/dist/styles.css +56 -0
  42. package/dist/{timbal-v2-button-CNfdwGq4.d.cts → timbal-v2-button-B7vPs7gg.d.cts} +2 -2
  43. package/dist/{timbal-v2-button-CNfdwGq4.d.ts → timbal-v2-button-B7vPs7gg.d.ts} +2 -2
  44. package/dist/ui.cjs +1504 -659
  45. package/dist/ui.d.cts +11 -4
  46. package/dist/ui.d.ts +11 -4
  47. package/dist/ui.esm.js +35 -26
  48. package/dist/{welcome-DXqsGTwH.d.ts → welcome-DduQAC4K.d.ts} +4 -0
  49. package/dist/{welcome-BFGRoNfK.d.cts → welcome-NXZlcihe.d.cts} +4 -0
  50. package/package.json +9 -1
  51. package/dist/button-BoyX5pM_.d.cts +0 -18
  52. package/dist/button-BoyX5pM_.d.ts +0 -18
  53. package/dist/chunk-UCGVL7ZY.esm.js +0 -52
@@ -0,0 +1,232 @@
1
+ import {
2
+ overlayItemClass,
3
+ overlayListPanelClass
4
+ } from "./chunk-AZL2WANO.esm.js";
5
+ import {
6
+ cn
7
+ } from "./chunk-EDEKQYSU.esm.js";
8
+
9
+ // src/ui/dropdown-menu.tsx
10
+ import { DropdownMenu as DropdownMenuPrimitive } from "radix-ui";
11
+ import { CheckIcon, ChevronRightIcon, CircleIcon } from "lucide-react";
12
+ import { jsx, jsxs } from "react/jsx-runtime";
13
+ function DropdownMenu({
14
+ ...props
15
+ }) {
16
+ return /* @__PURE__ */ jsx(DropdownMenuPrimitive.Root, { "data-slot": "dropdown-menu", ...props });
17
+ }
18
+ function DropdownMenuTrigger({
19
+ ...props
20
+ }) {
21
+ return /* @__PURE__ */ jsx(
22
+ DropdownMenuPrimitive.Trigger,
23
+ {
24
+ "data-slot": "dropdown-menu-trigger",
25
+ ...props
26
+ }
27
+ );
28
+ }
29
+ function DropdownMenuGroup({
30
+ ...props
31
+ }) {
32
+ return /* @__PURE__ */ jsx(DropdownMenuPrimitive.Group, { "data-slot": "dropdown-menu-group", ...props });
33
+ }
34
+ function DropdownMenuContent({
35
+ className,
36
+ sideOffset = 4,
37
+ ...props
38
+ }) {
39
+ return /* @__PURE__ */ jsx(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx(
40
+ DropdownMenuPrimitive.Content,
41
+ {
42
+ "data-slot": "dropdown-menu-content",
43
+ sideOffset,
44
+ className: cn(
45
+ overlayListPanelClass,
46
+ "max-h-[var(--radix-dropdown-menu-content-available-height)] min-w-[8rem] origin-[var(--radix-dropdown-menu-content-transform-origin)] overflow-x-hidden overflow-y-auto p-1",
47
+ className
48
+ ),
49
+ ...props
50
+ }
51
+ ) });
52
+ }
53
+ function DropdownMenuItem({
54
+ className,
55
+ inset,
56
+ variant = "default",
57
+ ...props
58
+ }) {
59
+ return /* @__PURE__ */ jsx(
60
+ DropdownMenuPrimitive.Item,
61
+ {
62
+ "data-slot": "dropdown-menu-item",
63
+ "data-inset": inset,
64
+ "data-variant": variant,
65
+ className: cn(
66
+ overlayItemClass,
67
+ "data-[inset]:pl-8 data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10",
68
+ className
69
+ ),
70
+ ...props
71
+ }
72
+ );
73
+ }
74
+ function DropdownMenuCheckboxItem({
75
+ className,
76
+ children,
77
+ checked,
78
+ ...props
79
+ }) {
80
+ return /* @__PURE__ */ jsxs(
81
+ DropdownMenuPrimitive.CheckboxItem,
82
+ {
83
+ "data-slot": "dropdown-menu-checkbox-item",
84
+ className: cn(overlayItemClass, "py-1.5 pr-2 pl-8", className),
85
+ checked,
86
+ ...props,
87
+ children: [
88
+ /* @__PURE__ */ jsx("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ jsx(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx(CheckIcon, { className: "size-4" }) }) }),
89
+ children
90
+ ]
91
+ }
92
+ );
93
+ }
94
+ function DropdownMenuRadioGroup({
95
+ ...props
96
+ }) {
97
+ return /* @__PURE__ */ jsx(
98
+ DropdownMenuPrimitive.RadioGroup,
99
+ {
100
+ "data-slot": "dropdown-menu-radio-group",
101
+ ...props
102
+ }
103
+ );
104
+ }
105
+ function DropdownMenuRadioItem({
106
+ className,
107
+ children,
108
+ ...props
109
+ }) {
110
+ return /* @__PURE__ */ jsxs(
111
+ DropdownMenuPrimitive.RadioItem,
112
+ {
113
+ "data-slot": "dropdown-menu-radio-item",
114
+ className: cn(overlayItemClass, "py-1.5 pr-2 pl-8", className),
115
+ ...props,
116
+ children: [
117
+ /* @__PURE__ */ jsx("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ jsx(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx(CircleIcon, { className: "size-2 fill-current" }) }) }),
118
+ children
119
+ ]
120
+ }
121
+ );
122
+ }
123
+ function DropdownMenuLabel({
124
+ className,
125
+ inset,
126
+ ...props
127
+ }) {
128
+ return /* @__PURE__ */ jsx(
129
+ DropdownMenuPrimitive.Label,
130
+ {
131
+ "data-slot": "dropdown-menu-label",
132
+ "data-inset": inset,
133
+ className: cn(
134
+ "px-2 py-1.5 text-xs font-medium text-muted-foreground data-[inset]:pl-8",
135
+ className
136
+ ),
137
+ ...props
138
+ }
139
+ );
140
+ }
141
+ function DropdownMenuSeparator({
142
+ className,
143
+ ...props
144
+ }) {
145
+ return /* @__PURE__ */ jsx(
146
+ DropdownMenuPrimitive.Separator,
147
+ {
148
+ "data-slot": "dropdown-menu-separator",
149
+ className: cn("-mx-1 my-1 h-px bg-border", className),
150
+ ...props
151
+ }
152
+ );
153
+ }
154
+ function DropdownMenuShortcut({
155
+ className,
156
+ ...props
157
+ }) {
158
+ return /* @__PURE__ */ jsx(
159
+ "span",
160
+ {
161
+ "data-slot": "dropdown-menu-shortcut",
162
+ className: cn(
163
+ "ml-auto text-xs tracking-widest text-muted-foreground",
164
+ className
165
+ ),
166
+ ...props
167
+ }
168
+ );
169
+ }
170
+ function DropdownMenuSub({
171
+ ...props
172
+ }) {
173
+ return /* @__PURE__ */ jsx(DropdownMenuPrimitive.Sub, { "data-slot": "dropdown-menu-sub", ...props });
174
+ }
175
+ function DropdownMenuSubTrigger({
176
+ className,
177
+ inset,
178
+ children,
179
+ ...props
180
+ }) {
181
+ return /* @__PURE__ */ jsxs(
182
+ DropdownMenuPrimitive.SubTrigger,
183
+ {
184
+ "data-slot": "dropdown-menu-sub-trigger",
185
+ "data-inset": inset,
186
+ className: cn(
187
+ overlayItemClass,
188
+ "data-[state=open]:bg-accent data-[state=open]:text-accent-foreground data-[inset]:pl-8",
189
+ className
190
+ ),
191
+ ...props,
192
+ children: [
193
+ children,
194
+ /* @__PURE__ */ jsx(ChevronRightIcon, { className: "ml-auto size-4" })
195
+ ]
196
+ }
197
+ );
198
+ }
199
+ function DropdownMenuSubContent({
200
+ className,
201
+ ...props
202
+ }) {
203
+ return /* @__PURE__ */ jsx(
204
+ DropdownMenuPrimitive.SubContent,
205
+ {
206
+ "data-slot": "dropdown-menu-sub-content",
207
+ className: cn(
208
+ overlayListPanelClass,
209
+ "min-w-[8rem] origin-[var(--radix-dropdown-menu-content-transform-origin)] overflow-hidden p-1",
210
+ className
211
+ ),
212
+ ...props
213
+ }
214
+ );
215
+ }
216
+
217
+ export {
218
+ DropdownMenu,
219
+ DropdownMenuTrigger,
220
+ DropdownMenuGroup,
221
+ DropdownMenuContent,
222
+ DropdownMenuItem,
223
+ DropdownMenuCheckboxItem,
224
+ DropdownMenuRadioGroup,
225
+ DropdownMenuRadioItem,
226
+ DropdownMenuLabel,
227
+ DropdownMenuSeparator,
228
+ DropdownMenuShortcut,
229
+ DropdownMenuSub,
230
+ DropdownMenuSubTrigger,
231
+ DropdownMenuSubContent
232
+ };