@chaibuilder/sdk 2.2.2 → 2.2.4

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