@chaibuilder/sdk 2.0.0-beta.7 → 2.0.0-beta.72

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/README.md +0 -4
  2. package/dist/ChaiThemeFn-Cort9tch.js +201 -0
  3. package/dist/ChaiThemeFn-DQu-2Eh9.cjs +13 -0
  4. package/dist/CodeEditor-B2x4yruH.cjs +1 -0
  5. package/dist/CodeEditor-VcQsGvTM.js +65 -0
  6. package/dist/Topbar-BQsjWb-A.js +16 -0
  7. package/dist/Topbar-DEw_kBMz.cjs +1 -0
  8. package/dist/chaibuilder-logo.png +0 -0
  9. package/dist/context-menu-C4lLV8gP.cjs +1 -0
  10. package/dist/{context-menu-I8woggB3.js → context-menu-D5ViOi6K.js} +260 -263
  11. package/dist/core.cjs +61 -1
  12. package/dist/core.d.ts +116 -54
  13. package/dist/core.js +8819 -123
  14. package/dist/getSplitClasses-DodqA_KW.cjs +1 -0
  15. package/dist/getSplitClasses-DphwgQiE.js +48 -0
  16. package/dist/{iconBase-Ief2hJUZ.js → iconBase-DHfFLkem.js} +6 -12
  17. package/dist/mockServiceWorker.js +39 -24
  18. package/dist/plugin-2xcljWGM.cjs +1 -0
  19. package/dist/plugin-kUMxtQR5.js +24 -0
  20. package/dist/render.cjs +2 -2
  21. package/dist/render.d.ts +35 -16
  22. package/dist/render.js +144 -134
  23. package/dist/runtime.cjs +1 -1
  24. package/dist/runtime.d.ts +0 -1
  25. package/dist/runtime.js +0 -20
  26. package/dist/{style.css → sdk.css} +1 -1
  27. package/dist/tailwind.cjs +1 -1
  28. package/dist/tailwind.d.ts +31 -26
  29. package/dist/tailwind.js +8 -10
  30. package/dist/ui.cjs +1 -1
  31. package/dist/ui.d.ts +6 -51
  32. package/dist/ui.js +210 -367
  33. package/dist/web-blocks.cjs +29 -2
  34. package/dist/web-blocks.js +1782 -831
  35. package/package.json +133 -132
  36. package/dist/CodeEditor-Bqjwy0VH.js +0 -127
  37. package/dist/CodeEditor-KUfhGPDN.cjs +0 -1
  38. package/dist/STRINGS-Xxstm-7I.js +0 -7
  39. package/dist/STRINGS-Yl7cSWDc.cjs +0 -1
  40. package/dist/Topbar-DQuMCOP6.cjs +0 -1
  41. package/dist/Topbar-g2pI6yGs.js +0 -161
  42. package/dist/context-menu-0lRey9QY.cjs +0 -1
  43. package/dist/controls-lEwMTdPQ.js +0 -234
  44. package/dist/controls-p9IwFnPx.cjs +0 -1
  45. package/dist/index-1_ZADyhv.js +0 -8554
  46. package/dist/index-QyeR27V9.cjs +0 -61
  47. package/dist/jsx-runtime-JYMCiFoE.cjs +0 -27
  48. package/dist/jsx-runtime-Sp0orL4X.js +0 -631
  49. package/dist/plugin-UiUFs2fK.js +0 -44
  50. package/dist/plugin-f6SDZ_Or.js +0 -108
  51. package/dist/plugin-jum1MjXp.cjs +0 -1
  52. package/dist/plugin-xOpS-UNV.cjs +0 -1
  53. /package/dist/{iconBase-aZzpqff_.cjs → iconBase-Cn2BsTrq.cjs} +0 -0
package/dist/ui.js CHANGED
@@ -1,31 +1,14 @@
1
- import { j as t } from "./jsx-runtime-Sp0orL4X.js";
1
+ import { jsx as o, jsxs as m } from "react/jsx-runtime";
2
2
  import * as r from "react";
3
3
  import * as u from "@radix-ui/react-toggle";
4
4
  import { cva as p } from "class-variance-authority";
5
- import { e as s, f as y, g as N } from "./context-menu-I8woggB3.js";
6
- import { A as Be, l as Oe, j as qe, k as $e, o as Je, v as Ke, w as Qe, q as Ue, u as We, s as Xe, r as Ye, t as Ze, p as ea, m as aa, B as ta, F as oa, K as sa, J as ra, H as na, G as da, I as ia, aj as la, an as ma, al as ca, as as pa, am as ua, ap as fa, at as ga, ax as xa, ao as ba, aq as ha, ar as ya, au as Na, av as wa, aw as va, ak as Ca, E as ja, z as Sa, y as Ma, C as Ra, x as Ta, D as Da, a4 as ka, b as Ia, a9 as _a, c as Aa, a6 as Pa, aa as Ga, ae as za, a5 as La, a7 as Va, a8 as Ha, ab as Fa, ac as Ea, ad as Ba, a as Oa, a1 as qa, a3 as $a, a2 as Ja, L as Ka, M as Qa, _ as Ua, a0 as Wa, $ as Xa, N as Ya, O as Za, d as et, S as at, h as tt, P as ot, U as st, Q as rt, R as nt, T as dt, ai as it, V as lt, X as mt, Z as ct, Y as pt, W as ut, n as ft, i as gt, af as xt, ah as bt, ag as ht } from "./context-menu-I8woggB3.js";
7
- import { ChevronRightIcon as w, CheckIcon as f, DotFilledIcon as v, CaretSortIcon as C, Cross2Icon as j, MagnifyingGlassIcon as S } from "@radix-ui/react-icons";
8
- import * as n from "@radix-ui/react-menubar";
9
- import * as i from "@radix-ui/react-select";
10
- import * as l from "@radix-ui/react-dialog";
11
- import { Command as m } from "cmdk";
12
- import "@radix-ui/react-switch";
13
- import "@radix-ui/react-accordion";
14
- import "@radix-ui/react-alert-dialog";
15
- import "@radix-ui/react-slot";
16
- import "@radix-ui/react-label";
17
- import "@radix-ui/react-scroll-area";
18
- import "@radix-ui/react-tabs";
19
- import "@radix-ui/react-tooltip";
20
- import "@radix-ui/react-popover";
21
- import "@radix-ui/react-hover-card";
22
- import "@radix-ui/react-dropdown-menu";
23
- import "@radix-ui/react-separator";
24
- import "@radix-ui/react-toast";
25
- import "@radix-ui/react-context-menu";
26
- import "clsx";
27
- import "tailwind-merge";
28
- const M = p(
5
+ import { c as s, D as h, a as b } from "./context-menu-D5ViOi6K.js";
6
+ import { A as de, g as ie, e as le, f as me, j as ce, q as pe, r as ue, l as ge, p as fe, n as xe, m as he, o as be, k as ye, h as Ne, B as we, C as ve, F as Ce, E as Se, y as De, x as Te, z as ke, aj as Me, an as Re, al as Ie, as as _e, am as Ae, ap as Pe, at as Ve, ax as Ge, ao as Le, aq as He, ar as je, au as ze, av as Fe, aw as Be, ak as Ee, w as Oe, u as qe, t as $e, v as Je, s as Ke, $ as Qe, a3 as Ue, a1 as We, a8 as Xe, a2 as Ye, a5 as Ze, a9 as ea, ad as aa, a4 as ta, a6 as oa, a7 as sa, aa as ra, ab as na, ac as da, a0 as ia, Y as la, _ as ma, Z as ca, I as pa, L as ua, V as ga, X as fa, W as xa, G as ha, H as ba, ae as ya, S as Na, b as wa, J as va, N as Ca, K as Sa, M as Da, T as Ta, ai as ka, O as Ma, Q as Ra, U as Ia, R as _a, P as Aa, i as Pa, d as Va, af as Ga, ah as La, ag as Ha } from "./context-menu-D5ViOi6K.js";
7
+ import { CaretSortIcon as y, CheckIcon as N, Cross2Icon as w, MagnifyingGlassIcon as v } from "@radix-ui/react-icons";
8
+ import * as n from "@radix-ui/react-select";
9
+ import * as d from "@radix-ui/react-dialog";
10
+ import { Command as i } from "cmdk";
11
+ const C = p(
29
12
  "inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors hover:bg-muted hover:text-muted-foreground 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=on]:bg-accent data-[state=on]:text-accent-foreground",
30
13
  {
31
14
  variants: {
@@ -44,9 +27,9 @@ const M = p(
44
27
  size: "default"
45
28
  }
46
29
  }
47
- ), R = r.forwardRef(({ className: e, variant: a, size: o, ...d }, c) => /* @__PURE__ */ t.jsx(u.Root, { ref: c, className: s(M({ variant: a, size: o, className: e })), ...d }));
48
- R.displayName = u.Root.displayName;
49
- const T = p(
30
+ ), S = r.forwardRef(({ className: e, variant: a, size: t, ...l }, c) => /* @__PURE__ */ o(u.Root, { ref: c, className: s(C({ variant: a, size: t, className: e })), ...l }));
31
+ S.displayName = u.Root.displayName;
32
+ const D = p(
50
33
  "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",
51
34
  {
52
35
  variants: {
@@ -59,215 +42,91 @@ const T = p(
59
42
  variant: "default"
60
43
  }
61
44
  }
62
- ), D = r.forwardRef(({ className: e, variant: a, ...o }, d) => /* @__PURE__ */ t.jsx("div", { ref: d, role: "alert", className: s(T({ variant: a }), e), ...o }));
63
- D.displayName = "Alert";
45
+ ), T = r.forwardRef(({ className: e, variant: a, ...t }, l) => /* @__PURE__ */ o("div", { ref: l, role: "alert", className: s(D({ variant: a }), e), ...t }));
46
+ T.displayName = "Alert";
64
47
  const k = r.forwardRef(
65
- ({ className: e, ...a }, o) => /* @__PURE__ */ t.jsx("h5", { ref: o, className: s("mb-1 font-medium leading-none tracking-tight", e), ...a })
48
+ ({ className: e, ...a }, t) => /* @__PURE__ */ o("h5", { ref: t, className: s("mb-1 font-medium leading-none tracking-tight", e), ...a })
66
49
  );
67
50
  k.displayName = "AlertTitle";
68
- const I = r.forwardRef(
69
- ({ className: e, ...a }, o) => /* @__PURE__ */ t.jsx("div", { ref: o, className: s("text-sm [&_p]:leading-relaxed", e), ...a })
51
+ const M = r.forwardRef(
52
+ ({ className: e, ...a }, t) => /* @__PURE__ */ o("div", { ref: t, className: s("text-sm [&_p]:leading-relaxed", e), ...a })
70
53
  );
71
- I.displayName = "AlertDescription";
72
- const Te = n.Menu, De = n.Group, ke = n.Portal, Ie = n.Sub, _e = n.RadioGroup, _ = r.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ t.jsx(
73
- n.Root,
74
- {
75
- ref: o,
76
- className: s("flex h-9 items-center space-x-1 rounded-md border bg-background p-1 shadow-sm", e),
77
- ...a
78
- }
79
- ));
80
- _.displayName = n.Root.displayName;
81
- const A = r.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ t.jsx(
54
+ M.displayName = "AlertDescription";
55
+ const Y = n.Root, Z = n.Group, ee = n.Value, R = r.forwardRef(({ className: e, children: a, ...t }, l) => /* @__PURE__ */ m(
82
56
  n.Trigger,
83
57
  {
84
- ref: o,
85
- className: s(
86
- "flex cursor-default select-none items-center rounded-sm px-3 py-1 text-sm font-medium outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",
87
- e
88
- ),
89
- ...a
90
- }
91
- ));
92
- A.displayName = n.Trigger.displayName;
93
- const P = r.forwardRef(({ className: e, inset: a, children: o, ...d }, c) => /* @__PURE__ */ t.jsxs(
94
- n.SubTrigger,
95
- {
96
- ref: c,
97
- className: s(
98
- "flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",
99
- a && "pl-8",
100
- e
101
- ),
102
- ...d,
103
- children: [
104
- o,
105
- /* @__PURE__ */ t.jsx(w, { className: "ml-auto h-4 w-4" })
106
- ]
107
- }
108
- ));
109
- P.displayName = n.SubTrigger.displayName;
110
- const G = r.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ t.jsx(
111
- n.SubContent,
112
- {
113
- ref: o,
114
- className: s(
115
- "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",
116
- e
117
- ),
118
- ...a
119
- }
120
- ));
121
- G.displayName = n.SubContent.displayName;
122
- const z = r.forwardRef(({ className: e, align: a = "start", alignOffset: o = -4, sideOffset: d = 8, ...c }, h) => /* @__PURE__ */ t.jsx(n.Portal, { children: /* @__PURE__ */ t.jsx(
123
- n.Content,
124
- {
125
- ref: h,
126
- align: a,
127
- alignOffset: o,
128
- sideOffset: d,
129
- className: s(
130
- "z-50 min-w-[12rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in 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",
131
- e
132
- ),
133
- ...c
134
- }
135
- ) }));
136
- z.displayName = n.Content.displayName;
137
- const L = r.forwardRef(({ className: e, inset: a, ...o }, d) => /* @__PURE__ */ t.jsx(
138
- n.Item,
139
- {
140
- ref: d,
141
- className: s(
142
- "relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
143
- a && "pl-8",
144
- e
145
- ),
146
- ...o
147
- }
148
- ));
149
- L.displayName = n.Item.displayName;
150
- const V = r.forwardRef(({ className: e, children: a, checked: o, ...d }, c) => /* @__PURE__ */ t.jsxs(
151
- n.CheckboxItem,
152
- {
153
- ref: c,
154
- className: s(
155
- "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
156
- e
157
- ),
158
- checked: o,
159
- ...d,
160
- children: [
161
- /* @__PURE__ */ t.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ t.jsx(n.ItemIndicator, { children: /* @__PURE__ */ t.jsx(f, { className: "h-4 w-4" }) }) }),
162
- a
163
- ]
164
- }
165
- ));
166
- V.displayName = n.CheckboxItem.displayName;
167
- const H = r.forwardRef(({ className: e, children: a, ...o }, d) => /* @__PURE__ */ t.jsxs(
168
- n.RadioItem,
169
- {
170
- ref: d,
171
- className: s(
172
- "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
173
- e
174
- ),
175
- ...o,
176
- children: [
177
- /* @__PURE__ */ t.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ t.jsx(n.ItemIndicator, { children: /* @__PURE__ */ t.jsx(v, { className: "h-4 w-4 fill-current" }) }) }),
178
- a
179
- ]
180
- }
181
- ));
182
- H.displayName = n.RadioItem.displayName;
183
- const F = r.forwardRef(({ className: e, inset: a, ...o }, d) => /* @__PURE__ */ t.jsx(
184
- n.Label,
185
- {
186
- ref: d,
187
- className: s("px-2 py-1.5 text-sm font-semibold", a && "pl-8", e),
188
- ...o
189
- }
190
- ));
191
- F.displayName = n.Label.displayName;
192
- const E = r.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ t.jsx(n.Separator, { ref: o, className: s("-mx-1 my-1 h-px bg-muted", e), ...a }));
193
- E.displayName = n.Separator.displayName;
194
- const B = ({ className: e, ...a }) => /* @__PURE__ */ t.jsx("span", { className: s("ml-auto text-xs tracking-widest text-muted-foreground", e), ...a });
195
- B.displayname = "MenubarShortcut";
196
- const Ae = i.Root, Pe = i.Group, Ge = i.Value, O = r.forwardRef(({ className: e, children: a, ...o }, d) => /* @__PURE__ */ t.jsxs(
197
- i.Trigger,
198
- {
199
- ref: d,
58
+ ref: l,
200
59
  className: s(
201
60
  "flex h-9 w-full items-center justify-between rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50",
202
61
  e
203
62
  ),
204
- ...o,
63
+ ...t,
205
64
  children: [
206
65
  a,
207
- /* @__PURE__ */ t.jsx(i.Icon, { asChild: !0, children: /* @__PURE__ */ t.jsx(C, { className: "h-4 w-4 opacity-50" }) })
66
+ /* @__PURE__ */ o(n.Icon, { asChild: !0, children: /* @__PURE__ */ o(y, { className: "h-4 w-4 opacity-50" }) })
208
67
  ]
209
68
  }
210
69
  ));
211
- O.displayName = i.Trigger.displayName;
212
- const q = r.forwardRef(({ className: e, children: a, position: o = "popper", ...d }, c) => /* @__PURE__ */ t.jsx(i.Portal, { children: /* @__PURE__ */ t.jsx(
213
- i.Content,
70
+ R.displayName = n.Trigger.displayName;
71
+ const I = r.forwardRef(({ className: e, children: a, position: t = "popper", ...l }, c) => /* @__PURE__ */ o(n.Portal, { children: /* @__PURE__ */ o(
72
+ n.Content,
214
73
  {
215
74
  ref: c,
216
75
  className: s(
217
76
  "relative z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md 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",
218
- o === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
77
+ t === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
219
78
  e
220
79
  ),
221
- position: o,
222
- ...d,
223
- children: /* @__PURE__ */ t.jsx(
224
- i.Viewport,
80
+ position: t,
81
+ ...l,
82
+ children: /* @__PURE__ */ o(
83
+ n.Viewport,
225
84
  {
226
85
  className: s(
227
86
  "p-1",
228
- o === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"
87
+ t === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"
229
88
  ),
230
89
  children: a
231
90
  }
232
91
  )
233
92
  }
234
93
  ) }));
235
- q.displayName = i.Content.displayName;
236
- const $ = r.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ t.jsx(i.Label, { ref: o, className: s("px-2 py-1.5 text-sm font-semibold", e), ...a }));
237
- $.displayName = i.Label.displayName;
238
- const J = r.forwardRef(({ className: e, children: a, ...o }, d) => /* @__PURE__ */ t.jsxs(
239
- i.Item,
94
+ I.displayName = n.Content.displayName;
95
+ const _ = r.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(n.Label, { ref: t, className: s("px-2 py-1.5 text-sm font-semibold", e), ...a }));
96
+ _.displayName = n.Label.displayName;
97
+ const A = r.forwardRef(({ className: e, children: a, ...t }, l) => /* @__PURE__ */ m(
98
+ n.Item,
240
99
  {
241
- ref: d,
100
+ ref: l,
242
101
  className: s(
243
102
  "relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
244
103
  e
245
104
  ),
246
- ...o,
105
+ ...t,
247
106
  children: [
248
- /* @__PURE__ */ t.jsx("span", { className: "absolute right-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ t.jsx(i.ItemIndicator, { children: /* @__PURE__ */ t.jsx(f, { className: "h-4 w-4" }) }) }),
249
- /* @__PURE__ */ t.jsx(i.ItemText, { children: a })
107
+ /* @__PURE__ */ o("span", { className: "absolute right-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ o(n.ItemIndicator, { children: /* @__PURE__ */ o(N, { className: "h-4 w-4" }) }) }),
108
+ /* @__PURE__ */ o(n.ItemText, { children: a })
250
109
  ]
251
110
  }
252
111
  ));
253
- J.displayName = i.Item.displayName;
254
- const K = r.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ t.jsx(i.Separator, { ref: o, className: s("-mx-1 my-1 h-px bg-muted", e), ...a }));
255
- K.displayName = i.Separator.displayName;
256
- const ze = l.Root, Le = l.Trigger, Ve = l.Close, g = ({ className: e, ...a }) => /* @__PURE__ */ t.jsx(l.Portal, { className: s(e), ...a });
257
- g.displayName = l.Portal.displayName;
258
- const x = r.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ t.jsx(
259
- l.Overlay,
112
+ A.displayName = n.Item.displayName;
113
+ const P = r.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(n.Separator, { ref: t, className: s("-mx-1 my-1 h-px bg-muted", e), ...a }));
114
+ P.displayName = n.Separator.displayName;
115
+ const ae = d.Root, te = d.Trigger, oe = d.Close, g = ({ className: e, ...a }) => /* @__PURE__ */ o(d.Portal, { className: s(e), ...a });
116
+ g.displayName = d.Portal.displayName;
117
+ const f = r.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(
118
+ d.Overlay,
260
119
  {
261
120
  className: s(
262
121
  "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",
263
122
  e
264
123
  ),
265
124
  ...a,
266
- ref: o
125
+ ref: t
267
126
  }
268
127
  ));
269
- x.displayName = l.Overlay.displayName;
270
- const Q = p(
128
+ f.displayName = d.Overlay.displayName;
129
+ const V = p(
271
130
  "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",
272
131
  {
273
132
  variants: {
@@ -282,31 +141,31 @@ const Q = p(
282
141
  side: "right"
283
142
  }
284
143
  }
285
- ), U = r.forwardRef(
286
- ({ side: e = "right", className: a, children: o, ...d }, c) => /* @__PURE__ */ t.jsxs(g, { children: [
287
- /* @__PURE__ */ t.jsx(x, {}),
288
- /* @__PURE__ */ t.jsxs(l.Content, { ref: c, className: s(Q({ side: e }), a), ...d, children: [
289
- o,
290
- /* @__PURE__ */ t.jsxs(l.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: [
291
- /* @__PURE__ */ t.jsx(j, { className: "h-4 w-4" }),
292
- /* @__PURE__ */ t.jsx("span", { className: "sr-only", children: "Close" })
144
+ ), G = r.forwardRef(
145
+ ({ side: e = "right", className: a, children: t, ...l }, c) => /* @__PURE__ */ m(g, { children: [
146
+ /* @__PURE__ */ o(f, {}),
147
+ /* @__PURE__ */ m(d.Content, { ref: c, className: s(V({ side: e }), a), ...l, children: [
148
+ t,
149
+ /* @__PURE__ */ m(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: [
150
+ /* @__PURE__ */ o(w, { className: "h-4 w-4" }),
151
+ /* @__PURE__ */ o("span", { className: "sr-only", children: "Close" })
293
152
  ] })
294
153
  ] })
295
154
  ] })
296
155
  );
297
- U.displayName = l.Content.displayName;
298
- const W = ({ className: e, ...a }) => /* @__PURE__ */ t.jsx("div", { className: s("flex flex-col space-y-2 text-center sm:text-left", e), ...a });
299
- W.displayName = "SheetHeader";
300
- const X = ({ className: e, ...a }) => /* @__PURE__ */ t.jsx("div", { className: s("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", e), ...a });
301
- X.displayName = "SheetFooter";
302
- const Y = r.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ t.jsx(l.Title, { ref: o, className: s("text-lg font-semibold text-foreground", e), ...a }));
303
- Y.displayName = l.Title.displayName;
304
- const Z = r.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ t.jsx(l.Description, { ref: o, className: s("text-sm text-muted-foreground", e), ...a }));
305
- Z.displayName = l.Description.displayName;
306
- const b = r.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ t.jsx(
307
- m,
156
+ G.displayName = d.Content.displayName;
157
+ const L = ({ className: e, ...a }) => /* @__PURE__ */ o("div", { className: s("flex flex-col space-y-2 text-center sm:text-left", e), ...a });
158
+ L.displayName = "SheetHeader";
159
+ const H = ({ className: e, ...a }) => /* @__PURE__ */ o("div", { className: s("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", e), ...a });
160
+ H.displayName = "SheetFooter";
161
+ const j = r.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(d.Title, { ref: t, className: s("text-lg font-semibold text-foreground", e), ...a }));
162
+ j.displayName = d.Title.displayName;
163
+ const z = r.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(d.Description, { ref: t, className: s("text-sm text-muted-foreground", e), ...a }));
164
+ z.displayName = d.Description.displayName;
165
+ const x = r.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(
166
+ i,
308
167
  {
309
- ref: o,
168
+ ref: t,
310
169
  className: s(
311
170
  "flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",
312
171
  e
@@ -314,13 +173,13 @@ const b = r.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ t.jsx(
314
173
  ...a
315
174
  }
316
175
  ));
317
- b.displayName = m.displayName;
318
- const He = ({ children: e, ...a }) => /* @__PURE__ */ t.jsx(y, { ...a, children: /* @__PURE__ */ t.jsx(N, { className: "overflow-hidden p-0", children: /* @__PURE__ */ t.jsx(b, { 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: e }) }) }), ee = r.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ t.jsxs("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
319
- /* @__PURE__ */ t.jsx(S, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }),
320
- /* @__PURE__ */ t.jsx(
321
- m.Input,
176
+ x.displayName = i.displayName;
177
+ const se = ({ children: e, ...a }) => /* @__PURE__ */ o(h, { ...a, children: /* @__PURE__ */ o(b, { className: "overflow-hidden p-0", children: /* @__PURE__ */ o(x, { 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: e }) }) }), F = r.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ m("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
178
+ /* @__PURE__ */ o(v, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }),
179
+ /* @__PURE__ */ o(
180
+ i.Input,
322
181
  {
323
- ref: o,
182
+ ref: t,
324
183
  className: s(
325
184
  "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",
326
185
  e
@@ -329,22 +188,22 @@ const He = ({ children: e, ...a }) => /* @__PURE__ */ t.jsx(y, { ...a, children:
329
188
  }
330
189
  )
331
190
  ] }));
332
- ee.displayName = m.Input.displayName;
333
- const ae = r.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ t.jsx(
334
- m.List,
191
+ F.displayName = i.Input.displayName;
192
+ const B = r.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(
193
+ i.List,
335
194
  {
336
- ref: o,
195
+ ref: t,
337
196
  className: s("max-h-[300px] overflow-y-auto overflow-x-hidden", e),
338
197
  ...a
339
198
  }
340
199
  ));
341
- ae.displayName = m.List.displayName;
342
- const te = r.forwardRef((e, a) => /* @__PURE__ */ t.jsx(m.Empty, { ref: a, className: "py-6 text-center text-sm", ...e }));
343
- te.displayName = m.Empty.displayName;
344
- const oe = r.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ t.jsx(
345
- m.Group,
200
+ B.displayName = i.List.displayName;
201
+ const E = r.forwardRef((e, a) => /* @__PURE__ */ o(i.Empty, { ref: a, className: "py-6 text-center text-sm", ...e }));
202
+ E.displayName = i.Empty.displayName;
203
+ const O = r.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(
204
+ i.Group,
346
205
  {
347
- ref: o,
206
+ ref: t,
348
207
  className: s(
349
208
  "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",
350
209
  e
@@ -352,13 +211,13 @@ const oe = r.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ t.jsx(
352
211
  ...a
353
212
  }
354
213
  ));
355
- oe.displayName = m.Group.displayName;
356
- const se = r.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ t.jsx(m.Separator, { ref: o, className: s("-mx-1 h-px bg-border", e), ...a }));
357
- se.displayName = m.Separator.displayName;
358
- const re = r.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ t.jsx(
359
- m.Item,
214
+ O.displayName = i.Group.displayName;
215
+ const q = r.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(i.Separator, { ref: t, className: s("-mx-1 h-px bg-border", e), ...a }));
216
+ q.displayName = i.Separator.displayName;
217
+ const $ = r.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(
218
+ i.Item,
360
219
  {
361
- ref: o,
220
+ ref: t,
362
221
  className: s(
363
222
  "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",
364
223
  e
@@ -366,141 +225,125 @@ const re = r.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ t.jsx(
366
225
  ...a
367
226
  }
368
227
  ));
369
- re.displayName = m.Item.displayName;
370
- const ne = ({ className: e, ...a }) => /* @__PURE__ */ t.jsx("span", { className: s("ml-auto text-xs tracking-widest text-muted-foreground", e), ...a });
371
- ne.displayName = "CommandShortcut";
228
+ $.displayName = i.Item.displayName;
229
+ const J = ({ className: e, ...a }) => /* @__PURE__ */ o("span", { className: s("ml-auto text-xs tracking-widest text-muted-foreground", e), ...a });
230
+ J.displayName = "CommandShortcut";
372
231
  export {
373
- Be as Accordion,
374
- Oe as AccordionContent,
375
- qe as AccordionItem,
376
- $e as AccordionTrigger,
377
- D as Alert,
378
- I as AlertDescription,
379
- Je as AlertDialog,
380
- Ke as AlertDialogAction,
381
- Qe as AlertDialogCancel,
382
- Ue as AlertDialogContent,
383
- We as AlertDialogDescription,
384
- Xe as AlertDialogFooter,
385
- Ye as AlertDialogHeader,
386
- Ze as AlertDialogTitle,
387
- ea as AlertDialogTrigger,
232
+ de as Accordion,
233
+ ie as AccordionContent,
234
+ le as AccordionItem,
235
+ me as AccordionTrigger,
236
+ T as Alert,
237
+ M as AlertDescription,
238
+ ce as AlertDialog,
239
+ pe as AlertDialogAction,
240
+ ue as AlertDialogCancel,
241
+ ge as AlertDialogContent,
242
+ fe as AlertDialogDescription,
243
+ xe as AlertDialogFooter,
244
+ he as AlertDialogHeader,
245
+ be as AlertDialogTitle,
246
+ ye as AlertDialogTrigger,
388
247
  k as AlertTitle,
389
- aa as Badge,
390
- ta as Button,
391
- oa as Card,
392
- sa as CardContent,
393
- ra as CardDescription,
394
- na as CardFooter,
395
- da as CardHeader,
396
- ia as CardTitle,
397
- b as Command,
398
- He as CommandDialog,
399
- te as CommandEmpty,
400
- oe as CommandGroup,
401
- ee as CommandInput,
402
- re as CommandItem,
403
- ae as CommandList,
404
- se as CommandSeparator,
405
- ne as CommandShortcut,
406
- la as ContextMenu,
407
- ma as ContextMenuCheckboxItem,
408
- ca as ContextMenuContent,
409
- pa as ContextMenuGroup,
410
- ua as ContextMenuItem,
411
- fa as ContextMenuLabel,
412
- ga as ContextMenuPortal,
413
- xa as ContextMenuRadioGroup,
414
- ba as ContextMenuRadioItem,
415
- ha as ContextMenuSeparator,
416
- ya as ContextMenuShortcut,
417
- Na as ContextMenuSub,
418
- wa as ContextMenuSubContent,
419
- va as ContextMenuSubTrigger,
420
- Ca as ContextMenuTrigger,
421
- y as Dialog,
422
- N as DialogContent,
423
- ja as DialogDescription,
424
- Sa as DialogFooter,
425
- Ma as DialogHeader,
426
- Ra as DialogTitle,
427
- Ta as DialogTrigger,
428
- Da as DropdownMenu,
429
- ka as DropdownMenuCheckboxItem,
430
- Ia as DropdownMenuContent,
431
- _a as DropdownMenuGroup,
432
- Aa as DropdownMenuItem,
433
- Pa as DropdownMenuLabel,
434
- Ga as DropdownMenuPortal,
435
- za as DropdownMenuRadioGroup,
436
- La as DropdownMenuRadioItem,
437
- Va as DropdownMenuSeparator,
438
- Ha as DropdownMenuShortcut,
439
- Fa as DropdownMenuSub,
440
- Ea as DropdownMenuSubContent,
441
- Ba as DropdownMenuSubTrigger,
442
- Oa as DropdownMenuTrigger,
443
- qa as HoverCard,
444
- $a as HoverCardContent,
445
- Ja as HoverCardTrigger,
446
- Ka as Input,
447
- Qa as Label,
448
- _ as Menubar,
449
- V as MenubarCheckboxItem,
450
- z as MenubarContent,
451
- De as MenubarGroup,
452
- L as MenubarItem,
453
- F as MenubarLabel,
454
- Te as MenubarMenu,
455
- ke as MenubarPortal,
456
- _e as MenubarRadioGroup,
457
- H as MenubarRadioItem,
458
- E as MenubarSeparator,
459
- B as MenubarShortcut,
460
- Ie as MenubarSub,
461
- G as MenubarSubContent,
462
- P as MenubarSubTrigger,
463
- A as MenubarTrigger,
464
- Ua as Popover,
465
- Wa as PopoverContent,
466
- Xa as PopoverTrigger,
467
- Ya as ScrollArea,
468
- Za as ScrollBar,
469
- Ae as Select,
470
- q as SelectContent,
471
- Pe as SelectGroup,
472
- J as SelectItem,
473
- $ as SelectLabel,
474
- K as SelectSeparator,
475
- O as SelectTrigger,
476
- Ge as SelectValue,
477
- et as Separator,
478
- ze as Sheet,
479
- Ve as SheetClose,
480
- U as SheetContent,
481
- Z as SheetDescription,
482
- X as SheetFooter,
483
- W as SheetHeader,
484
- Y as SheetTitle,
485
- Le as SheetTrigger,
486
- at as Skeleton,
487
- tt as Switch,
488
- ot as Tabs,
489
- st as TabsContent,
490
- rt as TabsList,
491
- nt as TabsTrigger,
492
- dt as Textarea,
493
- it as Toaster,
494
- R as Toggle,
495
- lt as Tooltip,
496
- mt as TooltipContent,
497
- ct as TooltipPortal,
498
- pt as TooltipProvider,
499
- ut as TooltipTrigger,
500
- ft as badgeVariants,
501
- gt as buttonVariants,
502
- xt as reducer,
503
- bt as toast,
504
- M as toggleVariants,
505
- ht as useToast
248
+ Ne as Badge,
249
+ we as Button,
250
+ ve as Card,
251
+ Ce as CardContent,
252
+ Se as CardDescription,
253
+ De as CardFooter,
254
+ Te as CardHeader,
255
+ ke as CardTitle,
256
+ x as Command,
257
+ se as CommandDialog,
258
+ E as CommandEmpty,
259
+ O as CommandGroup,
260
+ F as CommandInput,
261
+ $ as CommandItem,
262
+ B as CommandList,
263
+ q as CommandSeparator,
264
+ J as CommandShortcut,
265
+ Me as ContextMenu,
266
+ Re as ContextMenuCheckboxItem,
267
+ Ie as ContextMenuContent,
268
+ _e as ContextMenuGroup,
269
+ Ae as ContextMenuItem,
270
+ Pe as ContextMenuLabel,
271
+ Ve as ContextMenuPortal,
272
+ Ge as ContextMenuRadioGroup,
273
+ Le as ContextMenuRadioItem,
274
+ He as ContextMenuSeparator,
275
+ je as ContextMenuShortcut,
276
+ ze as ContextMenuSub,
277
+ Fe as ContextMenuSubContent,
278
+ Be as ContextMenuSubTrigger,
279
+ Ee as ContextMenuTrigger,
280
+ h as Dialog,
281
+ b as DialogContent,
282
+ Oe as DialogDescription,
283
+ qe as DialogFooter,
284
+ $e as DialogHeader,
285
+ Je as DialogTitle,
286
+ Ke as DialogTrigger,
287
+ Qe as DropdownMenu,
288
+ Ue as DropdownMenuCheckboxItem,
289
+ We as DropdownMenuContent,
290
+ Xe as DropdownMenuGroup,
291
+ Ye as DropdownMenuItem,
292
+ Ze as DropdownMenuLabel,
293
+ ea as DropdownMenuPortal,
294
+ aa as DropdownMenuRadioGroup,
295
+ ta as DropdownMenuRadioItem,
296
+ oa as DropdownMenuSeparator,
297
+ sa as DropdownMenuShortcut,
298
+ ra as DropdownMenuSub,
299
+ na as DropdownMenuSubContent,
300
+ da as DropdownMenuSubTrigger,
301
+ ia as DropdownMenuTrigger,
302
+ la as HoverCard,
303
+ ma as HoverCardContent,
304
+ ca as HoverCardTrigger,
305
+ pa as Input,
306
+ ua as Label,
307
+ ga as Popover,
308
+ fa as PopoverContent,
309
+ xa as PopoverTrigger,
310
+ ha as ScrollArea,
311
+ ba as ScrollBar,
312
+ Y as Select,
313
+ I as SelectContent,
314
+ Z as SelectGroup,
315
+ A as SelectItem,
316
+ _ as SelectLabel,
317
+ P as SelectSeparator,
318
+ R as SelectTrigger,
319
+ ee as SelectValue,
320
+ ya as Separator,
321
+ ae as Sheet,
322
+ oe as SheetClose,
323
+ G as SheetContent,
324
+ z as SheetDescription,
325
+ H as SheetFooter,
326
+ L as SheetHeader,
327
+ j as SheetTitle,
328
+ te as SheetTrigger,
329
+ Na as Skeleton,
330
+ wa as Switch,
331
+ va as Tabs,
332
+ Ca as TabsContent,
333
+ Sa as TabsList,
334
+ Da as TabsTrigger,
335
+ Ta as Textarea,
336
+ ka as Toaster,
337
+ S as Toggle,
338
+ Ma as Tooltip,
339
+ Ra as TooltipContent,
340
+ Ia as TooltipPortal,
341
+ _a as TooltipProvider,
342
+ Aa as TooltipTrigger,
343
+ Pa as badgeVariants,
344
+ Va as buttonVariants,
345
+ Ga as reducer,
346
+ La as toast,
347
+ C as toggleVariants,
348
+ Ha as useToast
506
349
  };