@chaibuilder/sdk 2.0.0-beta.4 → 2.0.0-beta.40

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-Ba9O-eBT.js +201 -0
  3. package/dist/ChaiThemeFn-DQu-2Eh9.cjs +13 -0
  4. package/dist/CodeEditor-C5hkhszC.cjs +1 -0
  5. package/dist/CodeEditor-DmPiW1eD.js +77 -0
  6. package/dist/STRINGS-DtEft2kY.js +5 -0
  7. package/dist/STRINGS-n7COZtKr.cjs +1 -0
  8. package/dist/Topbar-CTL7UXRB.js +22 -0
  9. package/dist/Topbar-CiOsi4Ut.cjs +1 -0
  10. package/dist/{context-menu-I8woggB3.js → context-menu-BsI3Hqio.js} +66 -66
  11. package/dist/{context-menu-0lRey9QY.cjs → context-menu-dsqhw1Ub.cjs} +1 -1
  12. package/dist/core.cjs +302 -1
  13. package/dist/core.d.ts +121 -81
  14. package/dist/core.js +33557 -122
  15. package/dist/{iconBase-Ief2hJUZ.js → iconBase-DHfFLkem.js} +6 -12
  16. package/dist/jsx-runtime-DGh1k5sI.cjs +31 -0
  17. package/dist/jsx-runtime-Dx-03ztt.js +445 -0
  18. package/dist/mockServiceWorker.js +39 -24
  19. package/dist/plugin-2xcljWGM.cjs +1 -0
  20. package/dist/plugin-Bvqh40K5.js +24 -0
  21. package/dist/render.cjs +2 -2
  22. package/dist/render.d.ts +36 -18
  23. package/dist/render.js +127 -127
  24. package/dist/runtime.cjs +1 -1
  25. package/dist/runtime.d.ts +0 -1
  26. package/dist/runtime.js +0 -20
  27. package/dist/{style.css → sdk.css} +1 -1
  28. package/dist/tailwind.cjs +1 -1
  29. package/dist/tailwind.d.ts +31 -26
  30. package/dist/tailwind.js +5 -7
  31. package/dist/ui.cjs +1 -1
  32. package/dist/ui.d.ts +59 -68
  33. package/dist/ui.js +199 -356
  34. package/dist/web-blocks.cjs +2 -2
  35. package/dist/web-blocks.js +1327 -703
  36. package/package.json +102 -115
  37. package/dist/CodeEditor-fHc8uUZi.js +0 -126
  38. package/dist/CodeEditor-jEPBwyMf.cjs +0 -1
  39. package/dist/STRINGS-Xxstm-7I.js +0 -7
  40. package/dist/STRINGS-Yl7cSWDc.cjs +0 -1
  41. package/dist/Topbar-9ltyM5Cl.js +0 -160
  42. package/dist/Topbar-CbNTH5d8.cjs +0 -1
  43. package/dist/controls-lEwMTdPQ.js +0 -234
  44. package/dist/controls-p9IwFnPx.cjs +0 -1
  45. package/dist/index-UvIwJj5Y.js +0 -8540
  46. package/dist/index-gHOGFo7e.cjs +0 -63
  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 { j as t } from "./jsx-runtime-Dx-03ztt.js";
2
2
  import * as r from "react";
3
- import * as u from "@radix-ui/react-toggle";
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(
3
+ import * as p from "@radix-ui/react-toggle";
4
+ import { cva as c } from "class-variance-authority";
5
+ import { c as s, D as x, a as h } from "./context-menu-BsI3Hqio.js";
6
+ import { A as ne, g as de, e as ie, f as le, j as me, q as ce, r as pe, l as ue, p as ge, n as fe, m as xe, o as he, k as be, h as ye, B as Ne, C as we, F as ve, E as Ce, y as je, x as Se, z as De, aj as Te, an as ke, al as Me, as as Re, am as Ie, ap as _e, at as Ae, ax as Pe, ao as Ve, aq as Ge, ar as Le, au as He, av as ze, aw as Fe, ak as Ee, w as Be, u as Oe, t as qe, v as $e, s as Je, $ as Ke, a3 as Qe, a1 as Ue, a8 as We, a2 as Xe, a5 as Ye, a9 as Ze, ad as ea, a4 as aa, a6 as ta, a7 as oa, aa as sa, ab as ra, ac as na, a0 as da, Y as ia, _ as la, Z as ma, I as ca, L as pa, V as ua, X as ga, W as fa, G as xa, H as ha, ae as ba, S as ya, b as Na, J as wa, N as va, K as Ca, M as ja, T as Sa, ai as Da, O as Ta, Q as ka, U as Ma, R as Ra, P as Ia, i as _a, d as Aa, af as Pa, ah as Va, ag as Ga } from "./context-menu-BsI3Hqio.js";
7
+ import { CaretSortIcon as b, CheckIcon as y, Cross2Icon as N, MagnifyingGlassIcon as w } 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 v = c(
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
+ ), C = r.forwardRef(({ className: e, variant: a, size: o, ...l }, m) => /* @__PURE__ */ t.jsx(p.Root, { ref: m, className: s(v({ variant: a, size: o, className: e })), ...l }));
31
+ C.displayName = p.Root.displayName;
32
+ const j = c(
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,144 +42,20 @@ 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";
64
- const k = r.forwardRef(
45
+ ), S = r.forwardRef(({ className: e, variant: a, ...o }, l) => /* @__PURE__ */ t.jsx("div", { ref: l, role: "alert", className: s(j({ variant: a }), e), ...o }));
46
+ S.displayName = "Alert";
47
+ const D = r.forwardRef(
65
48
  ({ className: e, ...a }, o) => /* @__PURE__ */ t.jsx("h5", { ref: o, className: s("mb-1 font-medium leading-none tracking-tight", e), ...a })
66
49
  );
67
- k.displayName = "AlertTitle";
68
- const I = r.forwardRef(
50
+ D.displayName = "AlertTitle";
51
+ const T = r.forwardRef(
69
52
  ({ className: e, ...a }, o) => /* @__PURE__ */ t.jsx("div", { ref: o, 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
+ T.displayName = "AlertDescription";
55
+ const X = n.Root, Y = n.Group, Z = n.Value, k = r.forwardRef(({ className: e, children: a, ...o }, l) => /* @__PURE__ */ t.jsxs(
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
@@ -204,24 +63,24 @@ const Ae = i.Root, Pe = i.Group, Ge = i.Value, O = r.forwardRef(({ className: e,
204
63
  ...o,
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__ */ t.jsx(n.Icon, { asChild: !0, children: /* @__PURE__ */ t.jsx(b, { 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
+ k.displayName = n.Trigger.displayName;
71
+ const M = r.forwardRef(({ className: e, children: a, position: o = "popper", ...l }, m) => /* @__PURE__ */ t.jsx(n.Portal, { children: /* @__PURE__ */ t.jsx(
72
+ n.Content,
214
73
  {
215
- ref: c,
74
+ ref: m,
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
77
  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",
219
78
  e
220
79
  ),
221
80
  position: o,
222
- ...d,
81
+ ...l,
223
82
  children: /* @__PURE__ */ t.jsx(
224
- i.Viewport,
83
+ n.Viewport,
225
84
  {
226
85
  className: s(
227
86
  "p-1",
@@ -232,31 +91,31 @@ const q = r.forwardRef(({ className: e, children: a, position: o = "popper", ...
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
+ M.displayName = n.Content.displayName;
95
+ const R = r.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ t.jsx(n.Label, { ref: o, className: s("px-2 py-1.5 text-sm font-semibold", e), ...a }));
96
+ R.displayName = n.Label.displayName;
97
+ const I = r.forwardRef(({ className: e, children: a, ...o }, l) => /* @__PURE__ */ t.jsxs(
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
105
  ...o,
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__ */ t.jsx("span", { className: "absolute right-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ t.jsx(n.ItemIndicator, { children: /* @__PURE__ */ t.jsx(y, { className: "h-4 w-4" }) }) }),
108
+ /* @__PURE__ */ t.jsx(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
+ I.displayName = n.Item.displayName;
113
+ const _ = 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 }));
114
+ _.displayName = n.Separator.displayName;
115
+ const ee = d.Root, ae = d.Trigger, te = d.Close, u = ({ className: e, ...a }) => /* @__PURE__ */ t.jsx(d.Portal, { className: s(e), ...a });
116
+ u.displayName = d.Portal.displayName;
117
+ const g = r.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ t.jsx(
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",
@@ -266,8 +125,8 @@ const x = r.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ t.jsx(
266
125
  ref: o
267
126
  }
268
127
  ));
269
- x.displayName = l.Overlay.displayName;
270
- const Q = p(
128
+ g.displayName = d.Overlay.displayName;
129
+ const A = c(
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,29 +141,29 @@ 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: [
144
+ ), P = r.forwardRef(
145
+ ({ side: e = "right", className: a, children: o, ...l }, m) => /* @__PURE__ */ t.jsxs(u, { children: [
146
+ /* @__PURE__ */ t.jsx(g, {}),
147
+ /* @__PURE__ */ t.jsxs(d.Content, { ref: m, className: s(A({ side: e }), a), ...l, children: [
289
148
  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" }),
149
+ /* @__PURE__ */ t.jsxs(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__ */ t.jsx(N, { className: "h-4 w-4" }),
292
151
  /* @__PURE__ */ t.jsx("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
+ P.displayName = d.Content.displayName;
157
+ const V = ({ className: e, ...a }) => /* @__PURE__ */ t.jsx("div", { className: s("flex flex-col space-y-2 text-center sm:text-left", e), ...a });
158
+ V.displayName = "SheetHeader";
159
+ const G = ({ 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 });
160
+ G.displayName = "SheetFooter";
161
+ const L = r.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ t.jsx(d.Title, { ref: o, className: s("text-lg font-semibold text-foreground", e), ...a }));
162
+ L.displayName = d.Title.displayName;
163
+ const H = r.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ t.jsx(d.Description, { ref: o, className: s("text-sm text-muted-foreground", e), ...a }));
164
+ H.displayName = d.Description.displayName;
165
+ const f = r.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ t.jsx(
166
+ i,
308
167
  {
309
168
  ref: o,
310
169
  className: s(
@@ -314,11 +173,11 @@ 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" }),
176
+ f.displayName = i.displayName;
177
+ const oe = ({ children: e, ...a }) => /* @__PURE__ */ t.jsx(x, { ...a, children: /* @__PURE__ */ t.jsx(h, { className: "overflow-hidden p-0", children: /* @__PURE__ */ t.jsx(f, { 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 }) }) }), z = r.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ t.jsxs("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
178
+ /* @__PURE__ */ t.jsx(w, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }),
320
179
  /* @__PURE__ */ t.jsx(
321
- m.Input,
180
+ i.Input,
322
181
  {
323
182
  ref: o,
324
183
  className: s(
@@ -329,20 +188,20 @@ 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
+ z.displayName = i.Input.displayName;
192
+ const F = r.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ t.jsx(
193
+ i.List,
335
194
  {
336
195
  ref: o,
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
+ F.displayName = i.List.displayName;
201
+ const E = r.forwardRef((e, a) => /* @__PURE__ */ t.jsx(i.Empty, { ref: a, className: "py-6 text-center text-sm", ...e }));
202
+ E.displayName = i.Empty.displayName;
203
+ const B = r.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ t.jsx(
204
+ i.Group,
346
205
  {
347
206
  ref: o,
348
207
  className: s(
@@ -352,11 +211,11 @@ 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
+ B.displayName = i.Group.displayName;
215
+ const O = r.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ t.jsx(i.Separator, { ref: o, className: s("-mx-1 h-px bg-border", e), ...a }));
216
+ O.displayName = i.Separator.displayName;
217
+ const q = r.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ t.jsx(
218
+ i.Item,
360
219
  {
361
220
  ref: o,
362
221
  className: s(
@@ -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
+ q.displayName = i.Item.displayName;
229
+ const $ = ({ className: e, ...a }) => /* @__PURE__ */ t.jsx("span", { className: s("ml-auto text-xs tracking-widest text-muted-foreground", e), ...a });
230
+ $.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,
388
- 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
232
+ ne as Accordion,
233
+ de as AccordionContent,
234
+ ie as AccordionItem,
235
+ le as AccordionTrigger,
236
+ S as Alert,
237
+ T as AlertDescription,
238
+ me as AlertDialog,
239
+ ce as AlertDialogAction,
240
+ pe as AlertDialogCancel,
241
+ ue as AlertDialogContent,
242
+ ge as AlertDialogDescription,
243
+ fe as AlertDialogFooter,
244
+ xe as AlertDialogHeader,
245
+ he as AlertDialogTitle,
246
+ be as AlertDialogTrigger,
247
+ D as AlertTitle,
248
+ ye as Badge,
249
+ Ne as Button,
250
+ we as Card,
251
+ ve as CardContent,
252
+ Ce as CardDescription,
253
+ je as CardFooter,
254
+ Se as CardHeader,
255
+ De as CardTitle,
256
+ f as Command,
257
+ oe as CommandDialog,
258
+ E as CommandEmpty,
259
+ B as CommandGroup,
260
+ z as CommandInput,
261
+ q as CommandItem,
262
+ F as CommandList,
263
+ O as CommandSeparator,
264
+ $ as CommandShortcut,
265
+ Te as ContextMenu,
266
+ ke as ContextMenuCheckboxItem,
267
+ Me as ContextMenuContent,
268
+ Re as ContextMenuGroup,
269
+ Ie as ContextMenuItem,
270
+ _e as ContextMenuLabel,
271
+ Ae as ContextMenuPortal,
272
+ Pe as ContextMenuRadioGroup,
273
+ Ve as ContextMenuRadioItem,
274
+ Ge as ContextMenuSeparator,
275
+ Le as ContextMenuShortcut,
276
+ He as ContextMenuSub,
277
+ ze as ContextMenuSubContent,
278
+ Fe as ContextMenuSubTrigger,
279
+ Ee as ContextMenuTrigger,
280
+ x as Dialog,
281
+ h as DialogContent,
282
+ Be as DialogDescription,
283
+ Oe as DialogFooter,
284
+ qe as DialogHeader,
285
+ $e as DialogTitle,
286
+ Je as DialogTrigger,
287
+ Ke as DropdownMenu,
288
+ Qe as DropdownMenuCheckboxItem,
289
+ Ue as DropdownMenuContent,
290
+ We as DropdownMenuGroup,
291
+ Xe as DropdownMenuItem,
292
+ Ye as DropdownMenuLabel,
293
+ Ze as DropdownMenuPortal,
294
+ ea as DropdownMenuRadioGroup,
295
+ aa as DropdownMenuRadioItem,
296
+ ta as DropdownMenuSeparator,
297
+ oa as DropdownMenuShortcut,
298
+ sa as DropdownMenuSub,
299
+ ra as DropdownMenuSubContent,
300
+ na as DropdownMenuSubTrigger,
301
+ da as DropdownMenuTrigger,
302
+ ia as HoverCard,
303
+ la as HoverCardContent,
304
+ ma as HoverCardTrigger,
305
+ ca as Input,
306
+ pa as Label,
307
+ ua as Popover,
308
+ ga as PopoverContent,
309
+ fa as PopoverTrigger,
310
+ xa as ScrollArea,
311
+ ha as ScrollBar,
312
+ X as Select,
313
+ M as SelectContent,
314
+ Y as SelectGroup,
315
+ I as SelectItem,
316
+ R as SelectLabel,
317
+ _ as SelectSeparator,
318
+ k as SelectTrigger,
319
+ Z as SelectValue,
320
+ ba as Separator,
321
+ ee as Sheet,
322
+ te as SheetClose,
323
+ P as SheetContent,
324
+ H as SheetDescription,
325
+ G as SheetFooter,
326
+ V as SheetHeader,
327
+ L as SheetTitle,
328
+ ae as SheetTrigger,
329
+ ya as Skeleton,
330
+ Na as Switch,
331
+ wa as Tabs,
332
+ va as TabsContent,
333
+ Ca as TabsList,
334
+ ja as TabsTrigger,
335
+ Sa as Textarea,
336
+ Da as Toaster,
337
+ C as Toggle,
338
+ Ta as Tooltip,
339
+ ka as TooltipContent,
340
+ Ma as TooltipPortal,
341
+ Ra as TooltipProvider,
342
+ Ia as TooltipTrigger,
343
+ _a as badgeVariants,
344
+ Aa as buttonVariants,
345
+ Pa as reducer,
346
+ Va as toast,
347
+ v as toggleVariants,
348
+ Ga as useToast
506
349
  };