@chaibuilder/sdk 2.2.3 → 2.2.5

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 (36) hide show
  1. package/dist/CodeEditor-B7r9YjDC.cjs +1 -0
  2. package/dist/CodeEditor-HKrlrH8b.js +71 -0
  3. package/dist/core.cjs +5 -5
  4. package/dist/core.d.ts +38 -39
  5. package/dist/core.js +4355 -4390
  6. package/dist/get-chai-builder-theme-ByeXCyGx.js +12 -0
  7. package/dist/get-chai-builder-theme-CeaKvOZ8.cjs +1 -0
  8. package/dist/mockServiceWorker.js +1 -1
  9. package/dist/plugin-C01tjI6V.cjs +22 -0
  10. package/dist/{chai-theme-helpers-CfZwxV6S.js → plugin-fnBB3TCm.js} +111 -99
  11. package/dist/render-chai-blocks-6SVNwoLW.js +201 -0
  12. package/dist/render-chai-blocks-Bvl2_fRE.cjs +1 -0
  13. package/dist/render.cjs +2 -2
  14. package/dist/render.d.ts +2 -2
  15. package/dist/render.js +38 -188
  16. package/dist/sooner-AJ7QkeLS.cjs +1 -0
  17. package/dist/sooner-DGhT8-JI.js +831 -0
  18. package/dist/tailwind.cjs +1 -1
  19. package/dist/tailwind.js +3 -2
  20. package/dist/ui.cjs +1 -1
  21. package/dist/ui.d.ts +37 -29
  22. package/dist/ui.js +232 -196
  23. package/dist/web-blocks.cjs +2 -2
  24. package/dist/web-blocks.js +1210 -1069
  25. package/package.json +3 -2
  26. package/dist/CodeEditor-CPR3N3wa.cjs +0 -1
  27. package/dist/CodeEditor-CuhsobXe.js +0 -65
  28. package/dist/chai-theme-helpers-utzv3TbX.cjs +0 -22
  29. package/dist/getSplitClasses-DodqA_KW.cjs +0 -1
  30. package/dist/getSplitClasses-DphwgQiE.js +0 -48
  31. package/dist/plugin-DW1HhfzA.js +0 -24
  32. package/dist/plugin-kqWzHDpF.cjs +0 -1
  33. package/dist/tooltip-BF2E5xPf.cjs +0 -1
  34. package/dist/tooltip-DGVZAvLU.js +0 -755
  35. /package/dist/{Functions-BGzDsf1z.js → common-functions-BGzDsf1z.js} +0 -0
  36. /package/dist/{Functions-BZmyleS1.cjs → common-functions-BZmyleS1.cjs} +0 -0
@@ -0,0 +1,831 @@
1
+ import { jsx as o, jsxs as p } from "react/jsx-runtime";
2
+ import * as i from "@radix-ui/react-dropdown-menu";
3
+ import { ChevronRight as I, Check as M, Circle as H, X as R, Search as j, ChevronDown as F } from "lucide-react";
4
+ import * as r from "react";
5
+ import { Command as m } from "cmdk";
6
+ import * as d from "@radix-ui/react-dialog";
7
+ import * as b from "@radix-ui/react-popover";
8
+ import * as x from "@radix-ui/react-tooltip";
9
+ import { cva as N } from "class-variance-authority";
10
+ import * as u from "@radix-ui/react-accordion";
11
+ import * as h from "@radix-ui/react-hover-card";
12
+ import * as C from "@radix-ui/react-label";
13
+ import * as f from "@radix-ui/react-scroll-area";
14
+ import * as g from "@radix-ui/react-tabs";
15
+ import * as l from "@radix-ui/react-alert-dialog";
16
+ import { Slot as L } from "@radix-ui/react-slot";
17
+ import * as v from "@radix-ui/react-switch";
18
+ import * as y from "@radix-ui/react-avatar";
19
+ import * as k from "@radix-ui/react-separator";
20
+ import { clsx as O } from "clsx";
21
+ import { twMerge as V } from "tailwind-merge";
22
+ import { useTheme as G } from "next-themes";
23
+ import { Toaster as B } from "sonner";
24
+ function s(...a) {
25
+ return V(O(a));
26
+ }
27
+ const w = N(
28
+ "inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
29
+ {
30
+ variants: {
31
+ variant: {
32
+ default: "bg-primary text-primary-foreground shadow hover:bg-primary/90",
33
+ destructive: "bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",
34
+ outline: "border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",
35
+ secondary: "bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",
36
+ ghost: "hover:bg-accent hover:text-accent-foreground",
37
+ link: "text-primary underline-offset-4 hover:underline"
38
+ },
39
+ size: {
40
+ default: "h-9 px-4 py-2",
41
+ sm: "h-8 rounded-md px-3 text-xs",
42
+ lg: "h-10 rounded-md px-8",
43
+ icon: "h-9 w-9"
44
+ }
45
+ },
46
+ defaultVariants: {
47
+ variant: "default",
48
+ size: "default"
49
+ }
50
+ }
51
+ ), E = r.forwardRef(
52
+ ({ className: a, variant: e, size: t, asChild: n = !1, ...c }, P) => /* @__PURE__ */ o(
53
+ n ? L : "button",
54
+ {
55
+ className: s(w({ variant: e, size: t, className: a })),
56
+ ref: P,
57
+ ...c
58
+ }
59
+ )
60
+ );
61
+ E.displayName = "Button";
62
+ const fa = i.Root, ua = i.Trigger, ga = i.Group, ba = i.Portal, xa = i.Sub, ya = i.RadioGroup, q = r.forwardRef(({ className: a, inset: e, children: t, ...n }, c) => /* @__PURE__ */ p(
63
+ i.SubTrigger,
64
+ {
65
+ ref: c,
66
+ className: s(
67
+ "flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
68
+ e && "pl-8",
69
+ a
70
+ ),
71
+ ...n,
72
+ children: [
73
+ t,
74
+ /* @__PURE__ */ o(I, { className: "ml-auto" })
75
+ ]
76
+ }
77
+ ));
78
+ q.displayName = i.SubTrigger.displayName;
79
+ const $ = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
80
+ i.SubContent,
81
+ {
82
+ ref: t,
83
+ className: s(
84
+ "z-50 min-w-[8rem] origin-[--radix-dropdown-menu-content-transform-origin] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg 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",
85
+ a
86
+ ),
87
+ ...e
88
+ }
89
+ ));
90
+ $.displayName = i.SubContent.displayName;
91
+ const J = r.forwardRef(({ className: a, sideOffset: e = 4, ...t }, n) => /* @__PURE__ */ o(i.Portal, { children: /* @__PURE__ */ o(
92
+ i.Content,
93
+ {
94
+ ref: n,
95
+ sideOffset: e,
96
+ className: s(
97
+ "z-50 max-h-[var(--radix-dropdown-menu-content-available-height)] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md",
98
+ "origin-[--radix-dropdown-menu-content-transform-origin] 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",
99
+ a
100
+ ),
101
+ ...t
102
+ }
103
+ ) }));
104
+ J.displayName = i.Content.displayName;
105
+ const X = r.forwardRef(({ className: a, inset: e, ...t }, n) => /* @__PURE__ */ o(
106
+ i.Item,
107
+ {
108
+ ref: n,
109
+ className: s(
110
+ "relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",
111
+ e && "pl-8",
112
+ a
113
+ ),
114
+ ...t
115
+ }
116
+ ));
117
+ X.displayName = i.Item.displayName;
118
+ const K = r.forwardRef(({ className: a, children: e, checked: t, ...n }, c) => /* @__PURE__ */ p(
119
+ i.CheckboxItem,
120
+ {
121
+ ref: c,
122
+ className: s(
123
+ "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
124
+ a
125
+ ),
126
+ checked: t,
127
+ ...n,
128
+ children: [
129
+ /* @__PURE__ */ o("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ o(i.ItemIndicator, { children: /* @__PURE__ */ o(M, { className: "h-4 w-4" }) }) }),
130
+ e
131
+ ]
132
+ }
133
+ ));
134
+ K.displayName = i.CheckboxItem.displayName;
135
+ const Q = r.forwardRef(({ className: a, children: e, ...t }, n) => /* @__PURE__ */ p(
136
+ i.RadioItem,
137
+ {
138
+ ref: n,
139
+ className: s(
140
+ "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
141
+ a
142
+ ),
143
+ ...t,
144
+ children: [
145
+ /* @__PURE__ */ o("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ o(i.ItemIndicator, { children: /* @__PURE__ */ o(H, { className: "h-2 w-2 fill-current" }) }) }),
146
+ e
147
+ ]
148
+ }
149
+ ));
150
+ Q.displayName = i.RadioItem.displayName;
151
+ const U = r.forwardRef(({ className: a, inset: e, ...t }, n) => /* @__PURE__ */ o(
152
+ i.Label,
153
+ {
154
+ ref: n,
155
+ className: s("px-2 py-1.5 text-sm font-semibold", e && "pl-8", a),
156
+ ...t
157
+ }
158
+ ));
159
+ U.displayName = i.Label.displayName;
160
+ const W = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(i.Separator, { ref: t, className: s("-mx-1 my-1 h-px bg-muted", a), ...e }));
161
+ W.displayName = i.Separator.displayName;
162
+ const Y = ({ className: a, ...e }) => /* @__PURE__ */ o("span", { className: s("ml-auto text-xs tracking-widest opacity-60", a), ...e });
163
+ Y.displayName = "DropdownMenuShortcut";
164
+ function Na({
165
+ className: a,
166
+ ...e
167
+ }) {
168
+ return /* @__PURE__ */ o(
169
+ "div",
170
+ {
171
+ className: s("animate-pulse rounded-md bg-primary/10", a),
172
+ ...e
173
+ }
174
+ );
175
+ }
176
+ const Z = d.Root, ha = d.Trigger, ee = d.Portal, va = d.Close, D = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
177
+ d.Overlay,
178
+ {
179
+ ref: t,
180
+ className: s(
181
+ "fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
182
+ a
183
+ ),
184
+ ...e
185
+ }
186
+ ));
187
+ D.displayName = d.Overlay.displayName;
188
+ const T = r.forwardRef(({ className: a, children: e, ...t }, n) => /* @__PURE__ */ p(ee, { children: [
189
+ /* @__PURE__ */ o(D, {}),
190
+ /* @__PURE__ */ p(
191
+ d.Content,
192
+ {
193
+ ref: n,
194
+ className: s(
195
+ "fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 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-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",
196
+ a
197
+ ),
198
+ ...t,
199
+ children: [
200
+ e,
201
+ /* @__PURE__ */ p(d.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground", children: [
202
+ /* @__PURE__ */ o(R, { className: "h-4 w-4" }),
203
+ /* @__PURE__ */ o("span", { className: "sr-only", children: "Close" })
204
+ ] })
205
+ ]
206
+ }
207
+ )
208
+ ] }));
209
+ T.displayName = d.Content.displayName;
210
+ const ae = ({ className: a, ...e }) => /* @__PURE__ */ o("div", { className: s("flex flex-col space-y-1.5 text-center sm:text-left", a), ...e });
211
+ ae.displayName = "DialogHeader";
212
+ const te = ({ className: a, ...e }) => /* @__PURE__ */ o("div", { className: s("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", a), ...e });
213
+ te.displayName = "DialogFooter";
214
+ const oe = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
215
+ d.Title,
216
+ {
217
+ ref: t,
218
+ className: s("text-lg font-semibold leading-none tracking-tight", a),
219
+ ...e
220
+ }
221
+ ));
222
+ oe.displayName = d.Title.displayName;
223
+ const se = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(d.Description, { ref: t, className: s("text-sm text-muted-foreground", a), ...e }));
224
+ se.displayName = d.Description.displayName;
225
+ const S = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
226
+ m,
227
+ {
228
+ ref: t,
229
+ className: s(
230
+ "flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",
231
+ a
232
+ ),
233
+ ...e
234
+ }
235
+ ));
236
+ S.displayName = m.displayName;
237
+ const wa = ({ children: a, ...e }) => /* @__PURE__ */ o(Z, { ...e, children: /* @__PURE__ */ o(T, { className: "overflow-hidden p-0", children: /* @__PURE__ */ o(S, { className: "[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5", children: a }) }) }), re = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ p("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
238
+ /* @__PURE__ */ o(j, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }),
239
+ /* @__PURE__ */ o(
240
+ m.Input,
241
+ {
242
+ ref: t,
243
+ className: s(
244
+ "flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",
245
+ a
246
+ ),
247
+ ...e
248
+ }
249
+ )
250
+ ] }));
251
+ re.displayName = m.Input.displayName;
252
+ const ne = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
253
+ m.List,
254
+ {
255
+ ref: t,
256
+ className: s("max-h-[300px] overflow-y-auto overflow-x-hidden", a),
257
+ ...e
258
+ }
259
+ ));
260
+ ne.displayName = m.List.displayName;
261
+ const de = r.forwardRef((a, e) => /* @__PURE__ */ o(
262
+ m.Empty,
263
+ {
264
+ ref: e,
265
+ className: "py-6 text-center text-sm",
266
+ ...a
267
+ }
268
+ ));
269
+ de.displayName = m.Empty.displayName;
270
+ const ie = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
271
+ m.Group,
272
+ {
273
+ ref: t,
274
+ className: s(
275
+ "overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",
276
+ a
277
+ ),
278
+ ...e
279
+ }
280
+ ));
281
+ ie.displayName = m.Group.displayName;
282
+ const le = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
283
+ m.Separator,
284
+ {
285
+ ref: t,
286
+ className: s("-mx-1 h-px bg-border", a),
287
+ ...e
288
+ }
289
+ ));
290
+ le.displayName = m.Separator.displayName;
291
+ const me = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
292
+ m.Item,
293
+ {
294
+ ref: t,
295
+ className: s(
296
+ "relative flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
297
+ a
298
+ ),
299
+ ...e
300
+ }
301
+ ));
302
+ me.displayName = m.Item.displayName;
303
+ const ce = ({
304
+ className: a,
305
+ ...e
306
+ }) => /* @__PURE__ */ o(
307
+ "span",
308
+ {
309
+ className: s(
310
+ "ml-auto text-xs tracking-widest text-muted-foreground",
311
+ a
312
+ ),
313
+ ...e
314
+ }
315
+ );
316
+ ce.displayName = "CommandShortcut";
317
+ const Ra = b.Root, Ca = b.Trigger, ka = b.Anchor, pe = r.forwardRef(({ className: a, align: e = "center", sideOffset: t = 4, ...n }, c) => /* @__PURE__ */ o(b.Portal, { children: /* @__PURE__ */ o(
318
+ b.Content,
319
+ {
320
+ ref: c,
321
+ align: e,
322
+ sideOffset: t,
323
+ className: s(
324
+ "z-50 w-72 origin-[--radix-popover-content-transform-origin] rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none 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",
325
+ a
326
+ ),
327
+ ...n
328
+ }
329
+ ) }));
330
+ pe.displayName = b.Content.displayName;
331
+ const Da = x.Provider, Ta = x.Root, Sa = x.Trigger, fe = r.forwardRef(({ className: a, sideOffset: e = 4, ...t }, n) => /* @__PURE__ */ o(x.Portal, { children: /* @__PURE__ */ o(
332
+ x.Content,
333
+ {
334
+ ref: n,
335
+ sideOffset: e,
336
+ className: s(
337
+ "z-50 origin-[--radix-tooltip-content-transform-origin] overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-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",
338
+ a
339
+ ),
340
+ ...t
341
+ }
342
+ ) }));
343
+ fe.displayName = x.Content.displayName;
344
+ const ue = N(
345
+ "inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",
346
+ {
347
+ variants: {
348
+ variant: {
349
+ default: "border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",
350
+ secondary: "border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",
351
+ destructive: "border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",
352
+ outline: "text-foreground"
353
+ }
354
+ },
355
+ defaultVariants: {
356
+ variant: "default"
357
+ }
358
+ }
359
+ );
360
+ function Aa({ className: a, variant: e, ...t }) {
361
+ return /* @__PURE__ */ o("div", { className: s(ue({ variant: e }), a), ...t });
362
+ }
363
+ const ge = N(
364
+ "relative w-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground [&>svg~*]:pl-7",
365
+ {
366
+ variants: {
367
+ variant: {
368
+ default: "bg-background text-foreground",
369
+ destructive: "border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"
370
+ }
371
+ },
372
+ defaultVariants: {
373
+ variant: "default"
374
+ }
375
+ }
376
+ ), be = r.forwardRef(({ className: a, variant: e, ...t }, n) => /* @__PURE__ */ o("div", { ref: n, role: "alert", className: s(ge({ variant: e }), a), ...t }));
377
+ be.displayName = "Alert";
378
+ const xe = r.forwardRef(
379
+ ({ className: a, ...e }, t) => /* @__PURE__ */ o("h5", { ref: t, className: s("mb-1 font-medium leading-none tracking-tight", a), ...e })
380
+ );
381
+ xe.displayName = "AlertTitle";
382
+ const ye = r.forwardRef(
383
+ ({ className: a, ...e }, t) => /* @__PURE__ */ o("div", { ref: t, className: s("text-sm [&_p]:leading-relaxed", a), ...e })
384
+ );
385
+ ye.displayName = "AlertDescription";
386
+ const Ne = r.forwardRef(
387
+ ({ className: a, type: e, ...t }, n) => /* @__PURE__ */ o(
388
+ "input",
389
+ {
390
+ type: e,
391
+ className: s(
392
+ "flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
393
+ a
394
+ ),
395
+ ref: n,
396
+ ...t
397
+ }
398
+ )
399
+ );
400
+ Ne.displayName = "Input";
401
+ const za = u.Root, he = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
402
+ u.Item,
403
+ {
404
+ ref: t,
405
+ className: s("border-b", a),
406
+ ...e
407
+ }
408
+ ));
409
+ he.displayName = "AccordionItem";
410
+ const ve = r.forwardRef(({ className: a, children: e, ...t }, n) => /* @__PURE__ */ o(u.Header, { className: "flex", children: /* @__PURE__ */ p(
411
+ u.Trigger,
412
+ {
413
+ ref: n,
414
+ className: s(
415
+ "flex flex-1 items-center justify-between py-4 text-sm font-medium transition-all hover:underline text-left [&[data-state=open]>svg]:rotate-180",
416
+ a
417
+ ),
418
+ ...t,
419
+ children: [
420
+ e,
421
+ /* @__PURE__ */ o(F, { className: "h-4 w-4 shrink-0 text-muted-foreground transition-transform duration-200" })
422
+ ]
423
+ }
424
+ ) }));
425
+ ve.displayName = u.Trigger.displayName;
426
+ const we = r.forwardRef(({ className: a, children: e, ...t }, n) => /* @__PURE__ */ o(
427
+ u.Content,
428
+ {
429
+ ref: n,
430
+ className: "overflow-hidden text-sm data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",
431
+ ...t,
432
+ children: /* @__PURE__ */ o("div", { className: s("pb-4 pt-0", a), children: e })
433
+ }
434
+ ));
435
+ we.displayName = u.Content.displayName;
436
+ const _a = h.Root, Pa = h.Trigger, Re = r.forwardRef(({ className: a, align: e = "center", sideOffset: t = 4, ...n }, c) => /* @__PURE__ */ o(
437
+ h.Content,
438
+ {
439
+ ref: c,
440
+ align: e,
441
+ sideOffset: t,
442
+ className: s(
443
+ "z-50 w-64 origin-[--radix-hover-card-content-transform-origin] rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none 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",
444
+ a
445
+ ),
446
+ ...n
447
+ }
448
+ ));
449
+ Re.displayName = h.Content.displayName;
450
+ const Ce = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
451
+ "textarea",
452
+ {
453
+ className: s(
454
+ "flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
455
+ a
456
+ ),
457
+ ref: t,
458
+ ...e
459
+ }
460
+ ));
461
+ Ce.displayName = "Textarea";
462
+ const ke = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o("div", { ref: t, className: s("rounded-xl border bg-card text-card-foreground shadow", a), ...e }));
463
+ ke.displayName = "Card";
464
+ const De = r.forwardRef(
465
+ ({ className: a, ...e }, t) => /* @__PURE__ */ o("div", { ref: t, className: s("flex flex-col space-y-1.5 p-6", a), ...e })
466
+ );
467
+ De.displayName = "CardHeader";
468
+ const Te = r.forwardRef(
469
+ ({ className: a, ...e }, t) => /* @__PURE__ */ o("div", { ref: t, className: s("font-semibold leading-none tracking-tight", a), ...e })
470
+ );
471
+ Te.displayName = "CardTitle";
472
+ const Se = r.forwardRef(
473
+ ({ className: a, ...e }, t) => /* @__PURE__ */ o("div", { ref: t, className: s("text-sm text-muted-foreground", a), ...e })
474
+ );
475
+ Se.displayName = "CardDescription";
476
+ const Ae = r.forwardRef(
477
+ ({ className: a, ...e }, t) => /* @__PURE__ */ o("div", { ref: t, className: s("p-6 pt-0", a), ...e })
478
+ );
479
+ Ae.displayName = "CardContent";
480
+ const ze = r.forwardRef(
481
+ ({ className: a, ...e }, t) => /* @__PURE__ */ o("div", { ref: t, className: s("flex items-center p-6 pt-0", a), ...e })
482
+ );
483
+ ze.displayName = "CardFooter";
484
+ const _e = N(
485
+ "text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
486
+ ), Pe = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
487
+ C.Root,
488
+ {
489
+ ref: t,
490
+ className: s(_e(), a),
491
+ ...e
492
+ }
493
+ ));
494
+ Pe.displayName = C.Root.displayName;
495
+ const Ie = r.forwardRef(({ className: a, children: e, ...t }, n) => /* @__PURE__ */ p(f.Root, { ref: n, className: s("relative overflow-hidden", a), ...t, children: [
496
+ /* @__PURE__ */ o(f.Viewport, { className: "h-full w-full rounded-[inherit]", children: e }),
497
+ /* @__PURE__ */ o(A, {}),
498
+ /* @__PURE__ */ o(f.Corner, {})
499
+ ] }));
500
+ Ie.displayName = f.Root.displayName;
501
+ const A = r.forwardRef(({ className: a, orientation: e = "vertical", ...t }, n) => /* @__PURE__ */ o(
502
+ f.ScrollAreaScrollbar,
503
+ {
504
+ ref: n,
505
+ orientation: e,
506
+ className: s(
507
+ "flex touch-none select-none transition-colors",
508
+ e === "vertical" && "h-full w-2.5 border-l border-l-transparent p-[1px]",
509
+ e === "horizontal" && "h-2.5 flex-col border-t border-t-transparent p-[1px]",
510
+ a
511
+ ),
512
+ ...t,
513
+ children: /* @__PURE__ */ o(f.ScrollAreaThumb, { className: "relative flex-1 rounded-full bg-border" })
514
+ }
515
+ ));
516
+ A.displayName = f.ScrollAreaScrollbar.displayName;
517
+ const Ia = g.Root, Me = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
518
+ g.List,
519
+ {
520
+ ref: t,
521
+ className: s(
522
+ "inline-flex h-9 items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground",
523
+ a
524
+ ),
525
+ ...e
526
+ }
527
+ ));
528
+ Me.displayName = g.List.displayName;
529
+ const He = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
530
+ g.Trigger,
531
+ {
532
+ ref: t,
533
+ className: s(
534
+ "inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow",
535
+ a
536
+ ),
537
+ ...e
538
+ }
539
+ ));
540
+ He.displayName = g.Trigger.displayName;
541
+ const je = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
542
+ g.Content,
543
+ {
544
+ ref: t,
545
+ className: s(
546
+ "mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
547
+ a
548
+ ),
549
+ ...e
550
+ }
551
+ ));
552
+ je.displayName = g.Content.displayName;
553
+ const Ma = l.Root, Ha = l.Trigger, Fe = l.Portal, z = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
554
+ l.Overlay,
555
+ {
556
+ className: s(
557
+ "fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
558
+ a
559
+ ),
560
+ ...e,
561
+ ref: t
562
+ }
563
+ ));
564
+ z.displayName = l.Overlay.displayName;
565
+ const Le = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ p(Fe, { children: [
566
+ /* @__PURE__ */ o(z, {}),
567
+ /* @__PURE__ */ o(
568
+ l.Content,
569
+ {
570
+ ref: t,
571
+ className: s(
572
+ "fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 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-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",
573
+ a
574
+ ),
575
+ ...e
576
+ }
577
+ )
578
+ ] }));
579
+ Le.displayName = l.Content.displayName;
580
+ const Oe = ({ className: a, ...e }) => /* @__PURE__ */ o("div", { className: s("flex flex-col space-y-2 text-center sm:text-left", a), ...e });
581
+ Oe.displayName = "AlertDialogHeader";
582
+ const Ve = ({ className: a, ...e }) => /* @__PURE__ */ o("div", { className: s("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", a), ...e });
583
+ Ve.displayName = "AlertDialogFooter";
584
+ const Ge = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(l.Title, { ref: t, className: s("text-lg font-semibold", a), ...e }));
585
+ Ge.displayName = l.Title.displayName;
586
+ const Be = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(l.Description, { ref: t, className: s("text-sm text-muted-foreground", a), ...e }));
587
+ Be.displayName = l.Description.displayName;
588
+ const Ee = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(l.Action, { ref: t, className: s(w(), a), ...e }));
589
+ Ee.displayName = l.Action.displayName;
590
+ const qe = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
591
+ l.Cancel,
592
+ {
593
+ ref: t,
594
+ className: s(w({ variant: "outline" }), "mt-2 sm:mt-0", a),
595
+ ...e
596
+ }
597
+ ));
598
+ qe.displayName = l.Cancel.displayName;
599
+ const $e = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
600
+ v.Root,
601
+ {
602
+ className: s(
603
+ "peer inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent shadow-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",
604
+ a
605
+ ),
606
+ ...e,
607
+ ref: t,
608
+ children: /* @__PURE__ */ o(
609
+ v.Thumb,
610
+ {
611
+ className: s(
612
+ "pointer-events-none block h-4 w-4 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0"
613
+ )
614
+ }
615
+ )
616
+ }
617
+ ));
618
+ $e.displayName = v.Root.displayName;
619
+ const Je = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
620
+ y.Root,
621
+ {
622
+ ref: t,
623
+ className: s(
624
+ "relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",
625
+ a
626
+ ),
627
+ ...e
628
+ }
629
+ ));
630
+ Je.displayName = y.Root.displayName;
631
+ const Xe = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
632
+ y.Image,
633
+ {
634
+ ref: t,
635
+ className: s("aspect-square h-full w-full", a),
636
+ ...e
637
+ }
638
+ ));
639
+ Xe.displayName = y.Image.displayName;
640
+ const Ke = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
641
+ y.Fallback,
642
+ {
643
+ ref: t,
644
+ className: s(
645
+ "flex h-full w-full items-center justify-center rounded-full bg-muted",
646
+ a
647
+ ),
648
+ ...e
649
+ }
650
+ ));
651
+ Ke.displayName = y.Fallback.displayName;
652
+ const Qe = r.forwardRef(({ className: a, orientation: e = "horizontal", decorative: t = !0, ...n }, c) => /* @__PURE__ */ o(
653
+ k.Root,
654
+ {
655
+ ref: c,
656
+ decorative: t,
657
+ orientation: e,
658
+ className: s("shrink-0 bg-border", e === "horizontal" ? "h-[1px] w-full" : "h-full w-[1px]", a),
659
+ ...n
660
+ }
661
+ ));
662
+ Qe.displayName = k.Root.displayName;
663
+ const ja = d.Root, Fa = d.Trigger, La = d.Close, Ue = d.Portal, _ = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
664
+ d.Overlay,
665
+ {
666
+ className: s(
667
+ "fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
668
+ a
669
+ ),
670
+ ...e,
671
+ ref: t
672
+ }
673
+ ));
674
+ _.displayName = d.Overlay.displayName;
675
+ const We = N(
676
+ "fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out",
677
+ {
678
+ variants: {
679
+ side: {
680
+ top: "inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",
681
+ bottom: "inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",
682
+ left: "inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",
683
+ right: "inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"
684
+ }
685
+ },
686
+ defaultVariants: {
687
+ side: "right"
688
+ }
689
+ }
690
+ ), Ye = r.forwardRef(
691
+ ({ side: a = "right", className: e, children: t, ...n }, c) => /* @__PURE__ */ p(Ue, { children: [
692
+ /* @__PURE__ */ o(_, {}),
693
+ /* @__PURE__ */ p(d.Content, { ref: c, className: s(We({ side: a }), e), ...n, children: [
694
+ /* @__PURE__ */ p(d.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary", children: [
695
+ /* @__PURE__ */ o(R, { className: "h-4 w-4" }),
696
+ /* @__PURE__ */ o("span", { className: "sr-only", children: "Close" })
697
+ ] }),
698
+ t
699
+ ] })
700
+ ] })
701
+ );
702
+ Ye.displayName = d.Content.displayName;
703
+ const Ze = ({ className: a, ...e }) => /* @__PURE__ */ o("div", { className: s("flex flex-col space-y-2 text-center sm:text-left", a), ...e });
704
+ Ze.displayName = "SheetHeader";
705
+ const ea = ({ className: a, ...e }) => /* @__PURE__ */ o("div", { className: s("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", a), ...e });
706
+ ea.displayName = "SheetFooter";
707
+ const aa = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(d.Title, { ref: t, className: s("text-lg font-semibold text-foreground", a), ...e }));
708
+ aa.displayName = d.Title.displayName;
709
+ const ta = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(d.Description, { ref: t, className: s("text-sm text-muted-foreground", a), ...e }));
710
+ ta.displayName = d.Description.displayName;
711
+ const Oa = ({ ...a }) => {
712
+ const { theme: e = "system" } = G();
713
+ return /* @__PURE__ */ o(
714
+ B,
715
+ {
716
+ theme: e,
717
+ className: "toaster group",
718
+ toastOptions: {
719
+ classNames: {
720
+ toast: "group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",
721
+ description: "group-[.toast]:text-muted-foreground",
722
+ actionButton: "group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",
723
+ cancelButton: "group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"
724
+ }
725
+ },
726
+ ...a
727
+ }
728
+ );
729
+ };
730
+ export {
731
+ J as $,
732
+ za as A,
733
+ E as B,
734
+ ke as C,
735
+ ze as D,
736
+ De as E,
737
+ Te as F,
738
+ S as G,
739
+ wa as H,
740
+ re as I,
741
+ ne as J,
742
+ de as K,
743
+ ie as L,
744
+ me as M,
745
+ ce as N,
746
+ le as O,
747
+ Z as P,
748
+ va as Q,
749
+ T as R,
750
+ se as S,
751
+ te as T,
752
+ ae as U,
753
+ D as V,
754
+ ee as W,
755
+ oe as X,
756
+ ha as Y,
757
+ fa as Z,
758
+ K as _,
759
+ he as a,
760
+ ga as a0,
761
+ X as a1,
762
+ U as a2,
763
+ ba as a3,
764
+ ya as a4,
765
+ Q as a5,
766
+ W as a6,
767
+ Y as a7,
768
+ xa as a8,
769
+ $ as a9,
770
+ $e as aA,
771
+ Ia as aB,
772
+ je as aC,
773
+ Me as aD,
774
+ He as aE,
775
+ Ce as aF,
776
+ Ta as aG,
777
+ fe as aH,
778
+ Da as aI,
779
+ Sa as aJ,
780
+ q as aa,
781
+ ua as ab,
782
+ _a as ac,
783
+ Re as ad,
784
+ Pa as ae,
785
+ Ne as af,
786
+ Pe as ag,
787
+ Ra as ah,
788
+ ka as ai,
789
+ pe as aj,
790
+ Ca as ak,
791
+ Ie as al,
792
+ A as am,
793
+ Qe as an,
794
+ ja as ao,
795
+ La as ap,
796
+ Ye as aq,
797
+ ta as ar,
798
+ ea as as,
799
+ Ze as at,
800
+ _ as au,
801
+ Ue as av,
802
+ aa as aw,
803
+ Fa as ax,
804
+ Na as ay,
805
+ Oa as az,
806
+ ve as b,
807
+ s as c,
808
+ we as d,
809
+ be as e,
810
+ ye as f,
811
+ xe as g,
812
+ Ma as h,
813
+ Ee as i,
814
+ qe as j,
815
+ Le as k,
816
+ Be as l,
817
+ Ve as m,
818
+ Oe as n,
819
+ z as o,
820
+ Fe as p,
821
+ Ge as q,
822
+ Ha as r,
823
+ Je as s,
824
+ Xe as t,
825
+ Ke as u,
826
+ Aa as v,
827
+ ue as w,
828
+ w as x,
829
+ Ae as y,
830
+ Se as z
831
+ };