@chaibuilder/sdk 2.0.0-beta.2 → 2.0.0-beta.21

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