@chaibuilder/sdk 1.2.115 → 2.0.0-beta.2

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.
package/dist/ui.js CHANGED
@@ -1,12 +1,14 @@
1
- import { j as o } from "./jsx-runtime-Sp0orL4X.js";
2
- import * as n from "react";
3
- import * as m from "@radix-ui/react-toggle";
4
- import { cva as c } from "class-variance-authority";
5
- import { c as r } from "./context-menu-FPX89OKr.js";
6
- import { A as ye, f as Ne, d as ve, e as we, i as Se, p as Me, q as je, k as De, o as Te, m as Re, l as Ie, n as Ae, j as ke, g as Pe, B as ze, C as Ge, F as Le, E as He, y as Ve, x as Fe, z as Be, ar as Oe, as as Ee, av as qe, aw as Je, at as Ke, ax as _e, au as Qe, az as Ue, ay as We, aA as Xe, aE as Ye, aC as Ze, aJ as $e, aD as ea, aG as aa, aK as ta, aO as oa, aF as sa, aH as ra, aI as na, aL as ia, aM as da, aN as la, aB as ca, D as ma, s as pa, w as ua, u as fa, t as ga, v as xa, r as ba, a6 as ha, aa as Ca, a8 as ya, af as Na, a9 as va, ac as wa, ag as Sa, ak as Ma, ab as ja, ad as Da, ae as Ta, ah as Ra, ai as Ia, aj as Aa, a7 as ka, X as Pa, Z as za, Y as Ga, I as La, L as Ha, U as Va, W as Fa, V as Ba, S as Oa, G as Ea, _ as qa, a2 as Ja, $ as Ka, a4 as _a, a3 as Qa, a5 as Ua, a1 as Wa, a0 as Xa, al as Ya, aq as Za, a as $a, H as et, M as at, J as tt, K as ot, T as st, ap as rt, N as nt, P as it, R as dt, Q as lt, O as ct, h as mt, b as pt, am as ut, ao as ft, an as gt } from "./context-menu-FPX89OKr.js";
7
- import { ChevronRightIcon as g, CheckIcon as x, DotFilledIcon as b, Cross2Icon as h } from "@radix-ui/react-icons";
8
- import * as s from "@radix-ui/react-menubar";
9
- import * as d from "@radix-ui/react-dialog";
1
+ import { j as t } from "./jsx-runtime-Sp0orL4X.js";
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";
10
12
  import "@radix-ui/react-switch";
11
13
  import "@radix-ui/react-accordion";
12
14
  import "@radix-ui/react-alert-dialog";
@@ -17,15 +19,13 @@ import "@radix-ui/react-tabs";
17
19
  import "@radix-ui/react-tooltip";
18
20
  import "@radix-ui/react-popover";
19
21
  import "@radix-ui/react-hover-card";
20
- import "@radix-ui/react-select";
21
22
  import "@radix-ui/react-dropdown-menu";
22
23
  import "@radix-ui/react-separator";
23
24
  import "@radix-ui/react-toast";
24
- import "cmdk";
25
25
  import "@radix-ui/react-context-menu";
26
26
  import "clsx";
27
27
  import "tailwind-merge";
28
- const C = c(
28
+ const M = p(
29
29
  "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
30
  {
31
31
  variants: {
@@ -44,9 +44,9 @@ const C = c(
44
44
  size: "default"
45
45
  }
46
46
  }
47
- ), y = n.forwardRef(({ className: e, variant: a, size: t, ...i }, l) => /* @__PURE__ */ o.jsx(m.Root, { ref: l, className: r(C({ variant: a, size: t, className: e })), ...i }));
48
- y.displayName = m.Root.displayName;
49
- const N = c(
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(
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",
51
51
  {
52
52
  variants: {
@@ -59,155 +59,215 @@ const N = c(
59
59
  variant: "default"
60
60
  }
61
61
  }
62
- ), v = n.forwardRef(({ className: e, variant: a, ...t }, i) => /* @__PURE__ */ o.jsx("div", { ref: i, role: "alert", className: r(N({ variant: a }), e), ...t }));
63
- v.displayName = "Alert";
64
- const w = n.forwardRef(
65
- ({ className: e, ...a }, t) => /* @__PURE__ */ o.jsx("h5", { ref: t, className: r("mb-1 font-medium leading-none tracking-tight", e), ...a })
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(
65
+ ({ className: e, ...a }, o) => /* @__PURE__ */ t.jsx("h5", { ref: o, className: s("mb-1 font-medium leading-none tracking-tight", e), ...a })
66
66
  );
67
- w.displayName = "AlertTitle";
68
- const S = n.forwardRef(
69
- ({ className: e, ...a }, t) => /* @__PURE__ */ o.jsx("div", { ref: t, className: r("text-sm [&_p]:leading-relaxed", e), ...a })
67
+ 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 })
70
70
  );
71
- S.displayName = "AlertDescription";
72
- const ce = s.Menu, me = s.Group, pe = s.Portal, ue = s.Sub, fe = s.RadioGroup, M = n.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o.jsx(
73
- s.Root,
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
74
  {
75
- ref: t,
76
- className: r("flex h-9 items-center space-x-1 rounded-md border bg-background p-1 shadow-sm", e),
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
77
  ...a
78
78
  }
79
79
  ));
80
- M.displayName = s.Root.displayName;
81
- const j = n.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o.jsx(
82
- s.Trigger,
80
+ _.displayName = n.Root.displayName;
81
+ const A = r.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ t.jsx(
82
+ n.Trigger,
83
83
  {
84
- ref: t,
85
- className: r(
84
+ ref: o,
85
+ className: s(
86
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
87
  e
88
88
  ),
89
89
  ...a
90
90
  }
91
91
  ));
92
- j.displayName = s.Trigger.displayName;
93
- const D = n.forwardRef(({ className: e, inset: a, children: t, ...i }, l) => /* @__PURE__ */ o.jsxs(
94
- s.SubTrigger,
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
95
  {
96
- ref: l,
97
- className: r(
96
+ ref: c,
97
+ className: s(
98
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
99
  a && "pl-8",
100
100
  e
101
101
  ),
102
- ...i,
102
+ ...d,
103
103
  children: [
104
- t,
105
- /* @__PURE__ */ o.jsx(g, { className: "ml-auto h-4 w-4" })
104
+ o,
105
+ /* @__PURE__ */ t.jsx(w, { className: "ml-auto h-4 w-4" })
106
106
  ]
107
107
  }
108
108
  ));
109
- D.displayName = s.SubTrigger.displayName;
110
- const T = n.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o.jsx(
111
- s.SubContent,
109
+ P.displayName = n.SubTrigger.displayName;
110
+ const G = r.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ t.jsx(
111
+ n.SubContent,
112
112
  {
113
- ref: t,
114
- className: r(
113
+ ref: o,
114
+ className: s(
115
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
116
  e
117
117
  ),
118
118
  ...a
119
119
  }
120
120
  ));
121
- T.displayName = s.SubContent.displayName;
122
- const R = n.forwardRef(({ className: e, align: a = "start", alignOffset: t = -4, sideOffset: i = 8, ...l }, f) => /* @__PURE__ */ o.jsx(s.Portal, { children: /* @__PURE__ */ o.jsx(
123
- s.Content,
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
124
  {
125
- ref: f,
125
+ ref: h,
126
126
  align: a,
127
- alignOffset: t,
128
- sideOffset: i,
129
- className: r(
127
+ alignOffset: o,
128
+ sideOffset: d,
129
+ className: s(
130
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
131
  e
132
132
  ),
133
- ...l
133
+ ...c
134
134
  }
135
135
  ) }));
136
- R.displayName = s.Content.displayName;
137
- const I = n.forwardRef(({ className: e, inset: a, ...t }, i) => /* @__PURE__ */ o.jsx(
138
- s.Item,
136
+ z.displayName = n.Content.displayName;
137
+ const L = r.forwardRef(({ className: e, inset: a, ...o }, d) => /* @__PURE__ */ t.jsx(
138
+ n.Item,
139
139
  {
140
- ref: i,
141
- className: r(
140
+ ref: d,
141
+ className: s(
142
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
143
  a && "pl-8",
144
144
  e
145
145
  ),
146
- ...t
146
+ ...o
147
147
  }
148
148
  ));
149
- I.displayName = s.Item.displayName;
150
- const A = n.forwardRef(({ className: e, children: a, checked: t, ...i }, l) => /* @__PURE__ */ o.jsxs(
151
- s.CheckboxItem,
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
152
  {
153
- ref: l,
154
- className: r(
153
+ ref: c,
154
+ className: s(
155
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
156
  e
157
157
  ),
158
- checked: t,
159
- ...i,
158
+ checked: o,
159
+ ...d,
160
160
  children: [
161
- /* @__PURE__ */ o.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ o.jsx(s.ItemIndicator, { children: /* @__PURE__ */ o.jsx(x, { className: "h-4 w-4" }) }) }),
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
162
  a
163
163
  ]
164
164
  }
165
165
  ));
166
- A.displayName = s.CheckboxItem.displayName;
167
- const k = n.forwardRef(({ className: e, children: a, ...t }, i) => /* @__PURE__ */ o.jsxs(
168
- s.RadioItem,
166
+ V.displayName = n.CheckboxItem.displayName;
167
+ const H = r.forwardRef(({ className: e, children: a, ...o }, d) => /* @__PURE__ */ t.jsxs(
168
+ n.RadioItem,
169
169
  {
170
- ref: i,
171
- className: r(
170
+ ref: d,
171
+ className: s(
172
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
173
  e
174
174
  ),
175
- ...t,
175
+ ...o,
176
176
  children: [
177
- /* @__PURE__ */ o.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ o.jsx(s.ItemIndicator, { children: /* @__PURE__ */ o.jsx(b, { className: "h-4 w-4 fill-current" }) }) }),
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
178
  a
179
179
  ]
180
180
  }
181
181
  ));
182
- k.displayName = s.RadioItem.displayName;
183
- const P = n.forwardRef(({ className: e, inset: a, ...t }, i) => /* @__PURE__ */ o.jsx(
184
- s.Label,
182
+ H.displayName = n.RadioItem.displayName;
183
+ const F = r.forwardRef(({ className: e, inset: a, ...o }, d) => /* @__PURE__ */ t.jsx(
184
+ n.Label,
185
185
  {
186
- ref: i,
187
- className: r("px-2 py-1.5 text-sm font-semibold", a && "pl-8", e),
188
- ...t
186
+ ref: d,
187
+ className: s("px-2 py-1.5 text-sm font-semibold", a && "pl-8", e),
188
+ ...o
189
189
  }
190
190
  ));
191
- P.displayName = s.Label.displayName;
192
- const z = n.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o.jsx(s.Separator, { ref: t, className: r("-mx-1 my-1 h-px bg-muted", e), ...a }));
193
- z.displayName = s.Separator.displayName;
194
- const G = ({ className: e, ...a }) => /* @__PURE__ */ o.jsx("span", { className: r("ml-auto text-xs tracking-widest text-muted-foreground", e), ...a });
195
- G.displayname = "MenubarShortcut";
196
- const ge = d.Root, xe = d.Trigger, be = d.Close, p = ({ className: e, ...a }) => /* @__PURE__ */ o.jsx(d.Portal, { className: r(e), ...a });
197
- p.displayName = d.Portal.displayName;
198
- const u = n.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o.jsx(
199
- d.Overlay,
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,
200
198
  {
201
- className: r(
199
+ ref: d,
200
+ className: s(
201
+ "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
+ e
203
+ ),
204
+ ...o,
205
+ children: [
206
+ a,
207
+ /* @__PURE__ */ t.jsx(i.Icon, { asChild: !0, children: /* @__PURE__ */ t.jsx(C, { className: "h-4 w-4 opacity-50" }) })
208
+ ]
209
+ }
210
+ ));
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,
214
+ {
215
+ ref: c,
216
+ className: s(
217
+ "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",
219
+ e
220
+ ),
221
+ position: o,
222
+ ...d,
223
+ children: /* @__PURE__ */ t.jsx(
224
+ i.Viewport,
225
+ {
226
+ className: s(
227
+ "p-1",
228
+ o === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"
229
+ ),
230
+ children: a
231
+ }
232
+ )
233
+ }
234
+ ) }));
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,
240
+ {
241
+ ref: d,
242
+ className: s(
243
+ "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
+ e
245
+ ),
246
+ ...o,
247
+ 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 })
250
+ ]
251
+ }
252
+ ));
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,
260
+ {
261
+ className: s(
202
262
  "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",
203
263
  e
204
264
  ),
205
265
  ...a,
206
- ref: t
266
+ ref: o
207
267
  }
208
268
  ));
209
- u.displayName = d.Overlay.displayName;
210
- const L = c(
269
+ x.displayName = l.Overlay.displayName;
270
+ const Q = p(
211
271
  "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",
212
272
  {
213
273
  variants: {
@@ -222,159 +282,225 @@ const L = c(
222
282
  side: "right"
223
283
  }
224
284
  }
225
- ), H = n.forwardRef(
226
- ({ side: e = "right", className: a, children: t, ...i }, l) => /* @__PURE__ */ o.jsxs(p, { children: [
227
- /* @__PURE__ */ o.jsx(u, {}),
228
- /* @__PURE__ */ o.jsxs(d.Content, { ref: l, className: r(L({ side: e }), a), ...i, children: [
229
- t,
230
- /* @__PURE__ */ o.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: [
231
- /* @__PURE__ */ o.jsx(h, { className: "h-4 w-4" }),
232
- /* @__PURE__ */ o.jsx("span", { className: "sr-only", children: "Close" })
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" })
233
293
  ] })
234
294
  ] })
235
295
  ] })
236
296
  );
237
- H.displayName = d.Content.displayName;
238
- const V = ({ className: e, ...a }) => /* @__PURE__ */ o.jsx("div", { className: r("flex flex-col space-y-2 text-center sm:text-left", e), ...a });
239
- V.displayName = "SheetHeader";
240
- const F = ({ className: e, ...a }) => /* @__PURE__ */ o.jsx("div", { className: r("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", e), ...a });
241
- F.displayName = "SheetFooter";
242
- const B = n.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o.jsx(d.Title, { ref: t, className: r("text-lg font-semibold text-foreground", e), ...a }));
243
- B.displayName = d.Title.displayName;
244
- const O = n.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o.jsx(d.Description, { ref: t, className: r("text-sm text-muted-foreground", e), ...a }));
245
- O.displayName = d.Description.displayName;
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,
308
+ {
309
+ ref: o,
310
+ className: s(
311
+ "flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",
312
+ e
313
+ ),
314
+ ...a
315
+ }
316
+ ));
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,
322
+ {
323
+ ref: o,
324
+ className: s(
325
+ "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
+ e
327
+ ),
328
+ ...a
329
+ }
330
+ )
331
+ ] }));
332
+ ee.displayName = m.Input.displayName;
333
+ const ae = r.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ t.jsx(
334
+ m.List,
335
+ {
336
+ ref: o,
337
+ className: s("max-h-[300px] overflow-y-auto overflow-x-hidden", e),
338
+ ...a
339
+ }
340
+ ));
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,
346
+ {
347
+ ref: o,
348
+ className: s(
349
+ "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
+ e
351
+ ),
352
+ ...a
353
+ }
354
+ ));
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,
360
+ {
361
+ ref: o,
362
+ className: s(
363
+ "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
+ e
365
+ ),
366
+ ...a
367
+ }
368
+ ));
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";
246
372
  export {
247
- ye as Accordion,
248
- Ne as AccordionContent,
249
- ve as AccordionItem,
250
- we as AccordionTrigger,
251
- v as Alert,
252
- S as AlertDescription,
253
- Se as AlertDialog,
254
- Me as AlertDialogAction,
255
- je as AlertDialogCancel,
256
- De as AlertDialogContent,
257
- Te as AlertDialogDescription,
258
- Re as AlertDialogFooter,
259
- Ie as AlertDialogHeader,
260
- Ae as AlertDialogTitle,
261
- ke as AlertDialogTrigger,
262
- w as AlertTitle,
263
- Pe as Badge,
264
- ze as Button,
265
- Ge as Card,
266
- Le as CardContent,
267
- He as CardDescription,
268
- Ve as CardFooter,
269
- Fe as CardHeader,
270
- Be as CardTitle,
271
- Oe as Command,
272
- Ee as CommandDialog,
273
- qe as CommandEmpty,
274
- Je as CommandGroup,
275
- Ke as CommandInput,
276
- _e as CommandItem,
277
- Qe as CommandList,
278
- Ue as CommandSeparator,
279
- We as CommandShortcut,
280
- Xe as ContextMenu,
281
- Ye as ContextMenuCheckboxItem,
282
- Ze as ContextMenuContent,
283
- $e as ContextMenuGroup,
284
- ea as ContextMenuItem,
285
- aa as ContextMenuLabel,
286
- ta as ContextMenuPortal,
287
- oa as ContextMenuRadioGroup,
288
- sa as ContextMenuRadioItem,
289
- ra as ContextMenuSeparator,
290
- na as ContextMenuShortcut,
291
- ia as ContextMenuSub,
292
- da as ContextMenuSubContent,
293
- la as ContextMenuSubTrigger,
294
- ca as ContextMenuTrigger,
295
- ma as Dialog,
296
- pa as DialogContent,
297
- ua as DialogDescription,
298
- fa as DialogFooter,
299
- ga as DialogHeader,
300
- xa as DialogTitle,
301
- ba as DialogTrigger,
302
- ha as DropdownMenu,
303
- Ca as DropdownMenuCheckboxItem,
304
- ya as DropdownMenuContent,
305
- Na as DropdownMenuGroup,
306
- va as DropdownMenuItem,
307
- wa as DropdownMenuLabel,
308
- Sa as DropdownMenuPortal,
309
- Ma as DropdownMenuRadioGroup,
310
- ja as DropdownMenuRadioItem,
311
- Da as DropdownMenuSeparator,
312
- Ta as DropdownMenuShortcut,
313
- Ra as DropdownMenuSub,
314
- Ia as DropdownMenuSubContent,
315
- Aa as DropdownMenuSubTrigger,
316
- ka as DropdownMenuTrigger,
317
- Pa as HoverCard,
318
- za as HoverCardContent,
319
- Ga as HoverCardTrigger,
320
- La as Input,
321
- Ha as Label,
322
- M as Menubar,
323
- A as MenubarCheckboxItem,
324
- R as MenubarContent,
325
- me as MenubarGroup,
326
- I as MenubarItem,
327
- P as MenubarLabel,
328
- ce as MenubarMenu,
329
- pe as MenubarPortal,
330
- fe as MenubarRadioGroup,
331
- k as MenubarRadioItem,
332
- z as MenubarSeparator,
333
- G as MenubarShortcut,
334
- ue as MenubarSub,
335
- T as MenubarSubContent,
336
- D as MenubarSubTrigger,
337
- j as MenubarTrigger,
338
- Va as Popover,
339
- Fa as PopoverContent,
340
- Ba as PopoverTrigger,
341
- Oa as ScrollArea,
342
- Ea as ScrollBar,
343
- qa as Select,
344
- Ja as SelectContent,
345
- Ka as SelectGroup,
346
- _a as SelectItem,
347
- Qa as SelectLabel,
348
- Ua as SelectSeparator,
349
- Wa as SelectTrigger,
350
- Xa as SelectValue,
351
- Ya as Separator,
352
- ge as Sheet,
353
- be as SheetClose,
354
- H as SheetContent,
355
- O as SheetDescription,
356
- F as SheetFooter,
357
- V as SheetHeader,
358
- B as SheetTitle,
359
- xe as SheetTrigger,
360
- Za as Skeleton,
361
- $a as Switch,
362
- et as Tabs,
363
- at as TabsContent,
364
- tt as TabsList,
365
- ot as TabsTrigger,
366
- st as Textarea,
367
- rt as Toaster,
368
- y as Toggle,
369
- nt as Tooltip,
370
- it as TooltipContent,
371
- dt as TooltipPortal,
372
- lt as TooltipProvider,
373
- ct as TooltipTrigger,
374
- mt as badgeVariants,
375
- pt as buttonVariants,
376
- ut as reducer,
377
- ft as toast,
378
- C as toggleVariants,
379
- gt as useToast
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
380
506
  };