@chaibuilder/sdk 2.0.7 → 2.0.8
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/{CodeEditor-SZJ1H4vl.cjs → CodeEditor-BVHvdz8H.cjs} +1 -1
- package/dist/{CodeEditor-C-jeR5bt.js → CodeEditor-ZtRSywKI.js} +1 -1
- package/dist/{Topbar-DZ2jHLv7.js → Topbar-CX5hnmQJ.js} +1 -1
- package/dist/{Topbar-DSfx67NF.cjs → Topbar-D7QTF9G-.cjs} +1 -1
- package/dist/core.cjs +4 -4
- package/dist/core.js +696 -550
- package/dist/tooltip-BMhhYJb6.cjs +1 -0
- package/dist/{tooltip-PKiP886L.js → tooltip-VMv3Eoxb.js} +243 -219
- package/dist/ui.cjs +1 -1
- package/dist/ui.d.ts +10 -0
- package/dist/ui.js +200 -182
- package/package.json +5 -1
- package/dist/tooltip-1Uu2avkZ.cjs +0 -1
package/dist/ui.js
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import { c as s } from "./tooltip-
|
|
2
|
-
import { A as
|
|
1
|
+
import { c as s } from "./tooltip-VMv3Eoxb.js";
|
|
2
|
+
import { A as ue, d as fe, a as ge, b as be, e as he, l as xe, m as ye, g as Ne, k as ve, i as we, h as Ce, j as Se, f as Te, n as De, o as Re, p as Ie, q as Me, B as Ae, C as ke, x as Pe, w as ze, u as Ve, t as Le, v as je, y as Ge, z as He, F as Fe, G as Be, D as Oe, H as qe, E as Ee, J as _e, I as Je, K as Ke, M as Qe, Q as Ue, O as We, N as Xe, P as Ye, L as Ze, R as $e, W as et, U as tt, $ as at, V as ot, Y as st, a0 as rt, a4 as nt, X as dt, Z as it, _ as lt, a1 as ct, a2 as mt, a3 as pt, T as ut, a5 as ft, a7 as gt, a6 as bt, a8 as ht, a9 as xt, aa as yt, ac as Nt, ab as vt, ad as wt, ae as Ct, af as St, S as Tt, ah as Dt, ai as Rt, al as It, aj as Mt, ak as At, am as kt, ag as Pt, an as zt, ap as Vt, ar as Lt, aq as jt, ao as Gt, r as Ht, s as Ft } from "./tooltip-VMv3Eoxb.js";
|
|
3
3
|
import { jsx as o, jsxs as m } from "react/jsx-runtime";
|
|
4
|
-
import * as
|
|
5
|
-
import { cva as
|
|
4
|
+
import * as n from "react";
|
|
5
|
+
import { cva as u } from "class-variance-authority";
|
|
6
6
|
import * as r from "@radix-ui/react-context-menu";
|
|
7
|
-
import { ChevronRightIcon as x, CheckIcon as
|
|
7
|
+
import { ChevronRightIcon as x, CheckIcon as f, DotFilledIcon as y, CaretSortIcon as N, Cross2Icon as v } from "@radix-ui/react-icons";
|
|
8
8
|
import * as i from "@radix-ui/react-select";
|
|
9
9
|
import * as l from "@radix-ui/react-dialog";
|
|
10
|
-
import * as
|
|
11
|
-
|
|
10
|
+
import * as p from "@radix-ui/react-slider";
|
|
11
|
+
import * as g from "@radix-ui/react-toggle";
|
|
12
|
+
const w = u(
|
|
12
13
|
"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",
|
|
13
14
|
{
|
|
14
15
|
variants: {
|
|
@@ -21,17 +22,17 @@ const v = p(
|
|
|
21
22
|
variant: "default"
|
|
22
23
|
}
|
|
23
24
|
}
|
|
24
|
-
),
|
|
25
|
-
|
|
26
|
-
const
|
|
25
|
+
), C = n.forwardRef(({ className: e, variant: t, ...a }, d) => /* @__PURE__ */ o("div", { ref: d, role: "alert", className: s(w({ variant: t }), e), ...a }));
|
|
26
|
+
C.displayName = "Alert";
|
|
27
|
+
const S = n.forwardRef(
|
|
27
28
|
({ className: e, ...t }, a) => /* @__PURE__ */ o("h5", { ref: a, className: s("mb-1 font-medium leading-none tracking-tight", e), ...t })
|
|
28
29
|
);
|
|
29
|
-
|
|
30
|
-
const
|
|
30
|
+
S.displayName = "AlertTitle";
|
|
31
|
+
const T = n.forwardRef(
|
|
31
32
|
({ className: e, ...t }, a) => /* @__PURE__ */ o("div", { ref: a, className: s("text-sm [&_p]:leading-relaxed", e), ...t })
|
|
32
33
|
);
|
|
33
|
-
|
|
34
|
-
const
|
|
34
|
+
T.displayName = "AlertDescription";
|
|
35
|
+
const $ = r.Root, ee = r.Trigger, te = r.Group, ae = r.Portal, oe = r.Sub, se = r.RadioGroup, D = n.forwardRef(({ className: e, inset: t, children: a, ...d }, c) => /* @__PURE__ */ m(
|
|
35
36
|
r.SubTrigger,
|
|
36
37
|
{
|
|
37
38
|
ref: c,
|
|
@@ -40,7 +41,7 @@ const Y = r.Root, Z = r.Trigger, $ = r.Group, ee = r.Portal, te = r.Sub, ae = r.
|
|
|
40
41
|
t && "pl-8",
|
|
41
42
|
e
|
|
42
43
|
),
|
|
43
|
-
...
|
|
44
|
+
...d,
|
|
44
45
|
children: [
|
|
45
46
|
a,
|
|
46
47
|
/* @__PURE__ */ o(x, { className: "ml-auto h-4 w-4" })
|
|
@@ -48,7 +49,7 @@ const Y = r.Root, Z = r.Trigger, $ = r.Group, ee = r.Portal, te = r.Sub, ae = r.
|
|
|
48
49
|
}
|
|
49
50
|
));
|
|
50
51
|
D.displayName = r.SubTrigger.displayName;
|
|
51
|
-
const
|
|
52
|
+
const R = n.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(
|
|
52
53
|
r.SubContent,
|
|
53
54
|
{
|
|
54
55
|
ref: a,
|
|
@@ -59,8 +60,8 @@ const T = d.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(
|
|
|
59
60
|
...t
|
|
60
61
|
}
|
|
61
62
|
));
|
|
62
|
-
|
|
63
|
-
const
|
|
63
|
+
R.displayName = r.SubContent.displayName;
|
|
64
|
+
const I = n.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(r.Portal, { children: /* @__PURE__ */ o(
|
|
64
65
|
r.Content,
|
|
65
66
|
{
|
|
66
67
|
ref: a,
|
|
@@ -71,11 +72,11 @@ const R = d.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(r.Portal
|
|
|
71
72
|
...t
|
|
72
73
|
}
|
|
73
74
|
) }));
|
|
74
|
-
|
|
75
|
-
const
|
|
75
|
+
I.displayName = r.Content.displayName;
|
|
76
|
+
const M = n.forwardRef(({ className: e, inset: t, ...a }, d) => /* @__PURE__ */ o(
|
|
76
77
|
r.Item,
|
|
77
78
|
{
|
|
78
|
-
ref:
|
|
79
|
+
ref: d,
|
|
79
80
|
className: s(
|
|
80
81
|
"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",
|
|
81
82
|
t && "pl-8",
|
|
@@ -84,8 +85,8 @@ const I = d.forwardRef(({ className: e, inset: t, ...a }, n) => /* @__PURE__ */
|
|
|
84
85
|
...a
|
|
85
86
|
}
|
|
86
87
|
));
|
|
87
|
-
|
|
88
|
-
const
|
|
88
|
+
M.displayName = r.Item.displayName;
|
|
89
|
+
const A = n.forwardRef(({ className: e, children: t, checked: a, ...d }, c) => /* @__PURE__ */ m(
|
|
89
90
|
r.CheckboxItem,
|
|
90
91
|
{
|
|
91
92
|
ref: c,
|
|
@@ -94,47 +95,47 @@ const M = d.forwardRef(({ className: e, children: t, checked: a, ...n }, c) => /
|
|
|
94
95
|
e
|
|
95
96
|
),
|
|
96
97
|
checked: a,
|
|
97
|
-
...
|
|
98
|
+
...d,
|
|
98
99
|
children: [
|
|
99
|
-
/* @__PURE__ */ o("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ o(r.ItemIndicator, { children: /* @__PURE__ */ o(
|
|
100
|
+
/* @__PURE__ */ o("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ o(r.ItemIndicator, { children: /* @__PURE__ */ o(f, { className: "h-4 w-4" }) }) }),
|
|
100
101
|
t
|
|
101
102
|
]
|
|
102
103
|
}
|
|
103
104
|
));
|
|
104
|
-
|
|
105
|
-
const
|
|
105
|
+
A.displayName = r.CheckboxItem.displayName;
|
|
106
|
+
const k = n.forwardRef(({ className: e, children: t, ...a }, d) => /* @__PURE__ */ m(
|
|
106
107
|
r.RadioItem,
|
|
107
108
|
{
|
|
108
|
-
ref:
|
|
109
|
+
ref: d,
|
|
109
110
|
className: s(
|
|
110
111
|
"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",
|
|
111
112
|
e
|
|
112
113
|
),
|
|
113
114
|
...a,
|
|
114
115
|
children: [
|
|
115
|
-
/* @__PURE__ */ o("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ o(r.ItemIndicator, { children: /* @__PURE__ */ o(
|
|
116
|
+
/* @__PURE__ */ o("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ o(r.ItemIndicator, { children: /* @__PURE__ */ o(y, { className: "h-4 w-4 fill-current" }) }) }),
|
|
116
117
|
t
|
|
117
118
|
]
|
|
118
119
|
}
|
|
119
120
|
));
|
|
120
|
-
|
|
121
|
-
const
|
|
121
|
+
k.displayName = r.RadioItem.displayName;
|
|
122
|
+
const P = n.forwardRef(({ className: e, inset: t, ...a }, d) => /* @__PURE__ */ o(
|
|
122
123
|
r.Label,
|
|
123
124
|
{
|
|
124
|
-
ref:
|
|
125
|
+
ref: d,
|
|
125
126
|
className: s("px-2 py-1.5 text-sm font-semibold text-foreground", t && "pl-8", e),
|
|
126
127
|
...a
|
|
127
128
|
}
|
|
128
129
|
));
|
|
129
|
-
|
|
130
|
-
const
|
|
131
|
-
|
|
132
|
-
const
|
|
133
|
-
|
|
134
|
-
const
|
|
130
|
+
P.displayName = r.Label.displayName;
|
|
131
|
+
const z = n.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(r.Separator, { ref: a, className: s("-mx-1 my-1 h-px bg-border", e), ...t }));
|
|
132
|
+
z.displayName = r.Separator.displayName;
|
|
133
|
+
const V = ({ className: e, ...t }) => /* @__PURE__ */ o("span", { className: s("ml-auto text-xs tracking-widest text-muted-foreground", e), ...t });
|
|
134
|
+
V.displayName = "ContextMenuShortcut";
|
|
135
|
+
const re = i.Root, ne = i.Group, de = i.Value, L = n.forwardRef(({ className: e, children: t, ...a }, d) => /* @__PURE__ */ m(
|
|
135
136
|
i.Trigger,
|
|
136
137
|
{
|
|
137
|
-
ref:
|
|
138
|
+
ref: d,
|
|
138
139
|
className: s(
|
|
139
140
|
"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",
|
|
140
141
|
e
|
|
@@ -142,12 +143,12 @@ const oe = i.Root, se = i.Group, re = i.Value, V = d.forwardRef(({ className: e,
|
|
|
142
143
|
...a,
|
|
143
144
|
children: [
|
|
144
145
|
t,
|
|
145
|
-
/* @__PURE__ */ o(i.Icon, { asChild: !0, children: /* @__PURE__ */ o(
|
|
146
|
+
/* @__PURE__ */ o(i.Icon, { asChild: !0, children: /* @__PURE__ */ o(N, { className: "h-4 w-4 opacity-50" }) })
|
|
146
147
|
]
|
|
147
148
|
}
|
|
148
149
|
));
|
|
149
|
-
|
|
150
|
-
const
|
|
150
|
+
L.displayName = i.Trigger.displayName;
|
|
151
|
+
const j = n.forwardRef(({ className: e, children: t, position: a = "popper", ...d }, c) => /* @__PURE__ */ o(i.Portal, { children: /* @__PURE__ */ o(
|
|
151
152
|
i.Content,
|
|
152
153
|
{
|
|
153
154
|
ref: c,
|
|
@@ -157,7 +158,7 @@ const L = d.forwardRef(({ className: e, children: t, position: a = "popper", ...
|
|
|
157
158
|
e
|
|
158
159
|
),
|
|
159
160
|
position: a,
|
|
160
|
-
...
|
|
161
|
+
...d,
|
|
161
162
|
children: /* @__PURE__ */ o(
|
|
162
163
|
i.Viewport,
|
|
163
164
|
{
|
|
@@ -170,30 +171,30 @@ const L = d.forwardRef(({ className: e, children: t, position: a = "popper", ...
|
|
|
170
171
|
)
|
|
171
172
|
}
|
|
172
173
|
) }));
|
|
173
|
-
|
|
174
|
-
const
|
|
175
|
-
|
|
176
|
-
const
|
|
174
|
+
j.displayName = i.Content.displayName;
|
|
175
|
+
const G = n.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(i.Label, { ref: a, className: s("px-2 py-1.5 text-sm font-semibold", e), ...t }));
|
|
176
|
+
G.displayName = i.Label.displayName;
|
|
177
|
+
const H = n.forwardRef(({ className: e, children: t, ...a }, d) => /* @__PURE__ */ m(
|
|
177
178
|
i.Item,
|
|
178
179
|
{
|
|
179
|
-
ref:
|
|
180
|
+
ref: d,
|
|
180
181
|
className: s(
|
|
181
182
|
"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",
|
|
182
183
|
e
|
|
183
184
|
),
|
|
184
185
|
...a,
|
|
185
186
|
children: [
|
|
186
|
-
/* @__PURE__ */ o("span", { className: "absolute right-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ o(i.ItemIndicator, { children: /* @__PURE__ */ o(
|
|
187
|
+
/* @__PURE__ */ o("span", { className: "absolute right-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ o(i.ItemIndicator, { children: /* @__PURE__ */ o(f, { className: "h-4 w-4" }) }) }),
|
|
187
188
|
/* @__PURE__ */ o(i.ItemText, { children: t })
|
|
188
189
|
]
|
|
189
190
|
}
|
|
190
191
|
));
|
|
191
|
-
|
|
192
|
-
const
|
|
193
|
-
|
|
194
|
-
const
|
|
195
|
-
|
|
196
|
-
const
|
|
192
|
+
H.displayName = i.Item.displayName;
|
|
193
|
+
const F = n.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(i.Separator, { ref: a, className: s("-mx-1 my-1 h-px bg-muted", e), ...t }));
|
|
194
|
+
F.displayName = i.Separator.displayName;
|
|
195
|
+
const ie = l.Root, le = l.Trigger, ce = l.Close, b = ({ className: e, ...t }) => /* @__PURE__ */ o(l.Portal, { className: s(e), ...t });
|
|
196
|
+
b.displayName = l.Portal.displayName;
|
|
197
|
+
const h = n.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(
|
|
197
198
|
l.Overlay,
|
|
198
199
|
{
|
|
199
200
|
className: s(
|
|
@@ -204,8 +205,8 @@ const b = d.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(
|
|
|
204
205
|
ref: a
|
|
205
206
|
}
|
|
206
207
|
));
|
|
207
|
-
|
|
208
|
-
const
|
|
208
|
+
h.displayName = l.Overlay.displayName;
|
|
209
|
+
const B = u(
|
|
209
210
|
"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",
|
|
210
211
|
{
|
|
211
212
|
variants: {
|
|
@@ -220,28 +221,41 @@ const F = p(
|
|
|
220
221
|
side: "right"
|
|
221
222
|
}
|
|
222
223
|
}
|
|
223
|
-
),
|
|
224
|
-
({ side: e = "right", className: t, children: a, ...
|
|
225
|
-
/* @__PURE__ */ o(
|
|
226
|
-
/* @__PURE__ */ m(l.Content, { ref: c, className: s(
|
|
224
|
+
), O = n.forwardRef(
|
|
225
|
+
({ side: e = "right", className: t, children: a, ...d }, c) => /* @__PURE__ */ m(b, { children: [
|
|
226
|
+
/* @__PURE__ */ o(h, {}),
|
|
227
|
+
/* @__PURE__ */ m(l.Content, { ref: c, className: s(B({ side: e }), t), ...d, children: [
|
|
227
228
|
a,
|
|
228
229
|
/* @__PURE__ */ m(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: [
|
|
229
|
-
/* @__PURE__ */ o(
|
|
230
|
+
/* @__PURE__ */ o(v, { className: "h-4 w-4" }),
|
|
230
231
|
/* @__PURE__ */ o("span", { className: "sr-only", children: "Close" })
|
|
231
232
|
] })
|
|
232
233
|
] })
|
|
233
234
|
] })
|
|
234
235
|
);
|
|
235
|
-
|
|
236
|
-
const
|
|
237
|
-
|
|
236
|
+
O.displayName = l.Content.displayName;
|
|
237
|
+
const q = ({ className: e, ...t }) => /* @__PURE__ */ o("div", { className: s("flex flex-col space-y-2 text-center sm:text-left", e), ...t });
|
|
238
|
+
q.displayName = "SheetHeader";
|
|
238
239
|
const E = ({ className: e, ...t }) => /* @__PURE__ */ o("div", { className: s("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", e), ...t });
|
|
239
240
|
E.displayName = "SheetFooter";
|
|
240
|
-
const _ =
|
|
241
|
+
const _ = n.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(l.Title, { ref: a, className: s("text-lg font-semibold text-foreground", e), ...t }));
|
|
241
242
|
_.displayName = l.Title.displayName;
|
|
242
|
-
const
|
|
243
|
-
|
|
244
|
-
const
|
|
243
|
+
const J = n.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(l.Description, { ref: a, className: s("text-sm text-muted-foreground", e), ...t }));
|
|
244
|
+
J.displayName = l.Description.displayName;
|
|
245
|
+
const K = n.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ m(
|
|
246
|
+
p.Root,
|
|
247
|
+
{
|
|
248
|
+
ref: a,
|
|
249
|
+
className: s("relative flex w-full touch-none select-none items-center", e),
|
|
250
|
+
...t,
|
|
251
|
+
children: [
|
|
252
|
+
/* @__PURE__ */ o(p.Track, { className: "relative h-1.5 w-full grow overflow-hidden rounded-full bg-primary/20", children: /* @__PURE__ */ o(p.Range, { className: "absolute h-full bg-primary" }) }),
|
|
253
|
+
/* @__PURE__ */ o(p.Thumb, { className: "block h-4 w-4 rounded-full border border-primary/50 bg-background shadow transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50" })
|
|
254
|
+
]
|
|
255
|
+
}
|
|
256
|
+
));
|
|
257
|
+
K.displayName = p.Root.displayName;
|
|
258
|
+
const Q = u(
|
|
245
259
|
"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",
|
|
246
260
|
{
|
|
247
261
|
variants: {
|
|
@@ -260,121 +274,125 @@ const J = p(
|
|
|
260
274
|
size: "default"
|
|
261
275
|
}
|
|
262
276
|
}
|
|
263
|
-
),
|
|
264
|
-
|
|
277
|
+
), U = n.forwardRef(({ className: e, variant: t, size: a, ...d }, c) => /* @__PURE__ */ o(g.Root, { ref: c, className: s(Q({ variant: t, size: a, className: e })), ...d }));
|
|
278
|
+
U.displayName = g.Root.displayName;
|
|
265
279
|
export {
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
$ as
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
280
|
+
ue as Accordion,
|
|
281
|
+
fe as AccordionContent,
|
|
282
|
+
ge as AccordionItem,
|
|
283
|
+
be as AccordionTrigger,
|
|
284
|
+
C as Alert,
|
|
285
|
+
T as AlertDescription,
|
|
286
|
+
he as AlertDialog,
|
|
287
|
+
xe as AlertDialogAction,
|
|
288
|
+
ye as AlertDialogCancel,
|
|
289
|
+
Ne as AlertDialogContent,
|
|
290
|
+
ve as AlertDialogDescription,
|
|
291
|
+
we as AlertDialogFooter,
|
|
292
|
+
Ce as AlertDialogHeader,
|
|
293
|
+
Se as AlertDialogTitle,
|
|
294
|
+
Te as AlertDialogTrigger,
|
|
295
|
+
S as AlertTitle,
|
|
296
|
+
De as Avatar,
|
|
297
|
+
Re as AvatarFallback,
|
|
298
|
+
Ie as AvatarImage,
|
|
299
|
+
Me as Badge,
|
|
300
|
+
Ae as Button,
|
|
301
|
+
ke as Card,
|
|
302
|
+
Pe as CardContent,
|
|
303
|
+
ze as CardDescription,
|
|
304
|
+
Ve as CardFooter,
|
|
305
|
+
Le as CardHeader,
|
|
306
|
+
je as CardTitle,
|
|
307
|
+
Ge as Command,
|
|
308
|
+
He as CommandDialog,
|
|
309
|
+
Fe as CommandEmpty,
|
|
310
|
+
Be as CommandGroup,
|
|
311
|
+
Oe as CommandInput,
|
|
312
|
+
qe as CommandItem,
|
|
313
|
+
Ee as CommandList,
|
|
314
|
+
_e as CommandSeparator,
|
|
315
|
+
Je as CommandShortcut,
|
|
316
|
+
$ as ContextMenu,
|
|
317
|
+
A as ContextMenuCheckboxItem,
|
|
318
|
+
I as ContextMenuContent,
|
|
319
|
+
te as ContextMenuGroup,
|
|
320
|
+
M as ContextMenuItem,
|
|
321
|
+
P as ContextMenuLabel,
|
|
322
|
+
ae as ContextMenuPortal,
|
|
323
|
+
se as ContextMenuRadioGroup,
|
|
324
|
+
k as ContextMenuRadioItem,
|
|
325
|
+
z as ContextMenuSeparator,
|
|
326
|
+
V as ContextMenuShortcut,
|
|
327
|
+
oe as ContextMenuSub,
|
|
328
|
+
R as ContextMenuSubContent,
|
|
312
329
|
D as ContextMenuSubTrigger,
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
330
|
+
ee as ContextMenuTrigger,
|
|
331
|
+
Ke as Dialog,
|
|
332
|
+
Qe as DialogContent,
|
|
333
|
+
Ue as DialogDescription,
|
|
334
|
+
We as DialogFooter,
|
|
335
|
+
Xe as DialogHeader,
|
|
336
|
+
Ye as DialogTitle,
|
|
337
|
+
Ze as DialogTrigger,
|
|
338
|
+
$e as DropdownMenu,
|
|
339
|
+
et as DropdownMenuCheckboxItem,
|
|
340
|
+
tt as DropdownMenuContent,
|
|
341
|
+
at as DropdownMenuGroup,
|
|
342
|
+
ot as DropdownMenuItem,
|
|
343
|
+
st as DropdownMenuLabel,
|
|
344
|
+
rt as DropdownMenuPortal,
|
|
345
|
+
nt as DropdownMenuRadioGroup,
|
|
346
|
+
dt as DropdownMenuRadioItem,
|
|
347
|
+
it as DropdownMenuSeparator,
|
|
348
|
+
lt as DropdownMenuShortcut,
|
|
349
|
+
ct as DropdownMenuSub,
|
|
350
|
+
mt as DropdownMenuSubContent,
|
|
351
|
+
pt as DropdownMenuSubTrigger,
|
|
352
|
+
ut as DropdownMenuTrigger,
|
|
353
|
+
ft as HoverCard,
|
|
354
|
+
gt as HoverCardContent,
|
|
355
|
+
bt as HoverCardTrigger,
|
|
356
|
+
ht as Input,
|
|
357
|
+
xt as Label,
|
|
358
|
+
yt as Popover,
|
|
359
|
+
Nt as PopoverContent,
|
|
360
|
+
vt as PopoverTrigger,
|
|
361
|
+
wt as ScrollArea,
|
|
362
|
+
Ct as ScrollBar,
|
|
363
|
+
re as Select,
|
|
364
|
+
j as SelectContent,
|
|
365
|
+
ne as SelectGroup,
|
|
366
|
+
H as SelectItem,
|
|
367
|
+
G as SelectLabel,
|
|
368
|
+
F as SelectSeparator,
|
|
369
|
+
L as SelectTrigger,
|
|
370
|
+
de as SelectValue,
|
|
371
|
+
St as Separator,
|
|
372
|
+
ie as Sheet,
|
|
373
|
+
ce as SheetClose,
|
|
374
|
+
O as SheetContent,
|
|
375
|
+
J as SheetDescription,
|
|
359
376
|
E as SheetFooter,
|
|
360
|
-
|
|
377
|
+
q as SheetHeader,
|
|
361
378
|
_ as SheetTitle,
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
379
|
+
le as SheetTrigger,
|
|
380
|
+
Tt as Skeleton,
|
|
381
|
+
K as Slider,
|
|
382
|
+
Dt as Switch,
|
|
383
|
+
Rt as Tabs,
|
|
384
|
+
It as TabsContent,
|
|
385
|
+
Mt as TabsList,
|
|
386
|
+
At as TabsTrigger,
|
|
387
|
+
kt as Textarea,
|
|
388
|
+
Pt as Toaster,
|
|
389
|
+
U as Toggle,
|
|
390
|
+
zt as Tooltip,
|
|
391
|
+
Vt as TooltipContent,
|
|
392
|
+
Lt as TooltipPortal,
|
|
393
|
+
jt as TooltipProvider,
|
|
394
|
+
Gt as TooltipTrigger,
|
|
395
|
+
Ht as badgeVariants,
|
|
396
|
+
Ft as buttonVariants,
|
|
397
|
+
Q as toggleVariants
|
|
380
398
|
};
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"author": "Suraj Air",
|
|
6
6
|
"license": "BSD-3-Clause",
|
|
7
7
|
"homepage": "https://chaibuilder.com",
|
|
8
|
-
"version": "2.0.
|
|
8
|
+
"version": "2.0.8",
|
|
9
9
|
"type": "module",
|
|
10
10
|
"repository": {
|
|
11
11
|
"type": "git",
|
|
@@ -69,12 +69,15 @@
|
|
|
69
69
|
}
|
|
70
70
|
},
|
|
71
71
|
"dependencies": {
|
|
72
|
+
"@ai-sdk/react": "^1.2.2",
|
|
72
73
|
"@chaibuilder/runtime": "2.0.1",
|
|
73
74
|
"@floating-ui/dom": "1.6.13",
|
|
74
75
|
"@floating-ui/react-dom": "2.1.2",
|
|
75
76
|
"@mhsdesign/jit-browser-tailwindcss": "0.4.2",
|
|
76
77
|
"@radix-ui/react-accordion": "^1.2.2",
|
|
77
78
|
"@radix-ui/react-alert-dialog": "^1.1.5",
|
|
79
|
+
"@radix-ui/react-avatar": "^1.1.3",
|
|
80
|
+
"@radix-ui/react-checkbox": "^1.1.4",
|
|
78
81
|
"@radix-ui/react-context-menu": "^2.2.5",
|
|
79
82
|
"@radix-ui/react-dialog": "^1.1.5",
|
|
80
83
|
"@radix-ui/react-dropdown-menu": "^2.1.5",
|
|
@@ -87,6 +90,7 @@
|
|
|
87
90
|
"@radix-ui/react-scroll-area": "^1.2.2",
|
|
88
91
|
"@radix-ui/react-select": "^2.1.5",
|
|
89
92
|
"@radix-ui/react-separator": "^1.1.1",
|
|
93
|
+
"@radix-ui/react-slider": "^1.2.3",
|
|
90
94
|
"@radix-ui/react-slot": "^1.1.1",
|
|
91
95
|
"@radix-ui/react-switch": "^1.1.2",
|
|
92
96
|
"@radix-ui/react-tabs": "^1.1.2",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const o=require("react/jsx-runtime"),_e=require("react"),Ae=require("@radix-ui/react-accordion"),x=require("@radix-ui/react-icons"),Ie=require("@radix-ui/react-alert-dialog"),Me=require("@radix-ui/react-slot"),v=require("class-variance-authority"),l=require("cmdk"),ze=require("@radix-ui/react-dialog"),qe=require("@radix-ui/react-dropdown-menu"),He=require("@radix-ui/react-hover-card"),Le=require("@radix-ui/react-label"),Oe=require("@radix-ui/react-popover"),Ge=require("@radix-ui/react-scroll-area"),Fe=require("@radix-ui/react-separator"),Be=require("next-themes"),Ve=require("sonner"),Ee=require("@radix-ui/react-switch"),Je=require("@radix-ui/react-tabs"),Ke=require("@radix-ui/react-tooltip"),Qe=require("clsx"),Ue=require("tailwind-merge");function m(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const n=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,n.get?n:{enumerable:!0,get:()=>e[a]})}}return t.default=e,Object.freeze(t)}const s=m(_e),f=m(Ae),i=m(Ie),c=m(ze),d=m(qe),N=m(He),R=m(Le),y=m(Oe),u=m(Ge),T=m(Fe),h=m(Ee),g=m(Je),b=m(Ke),r=(...e)=>Ue.twMerge(Qe.clsx(e)),We=f.Root,k=s.forwardRef(({className:e,...t},a)=>o.jsx(f.Item,{ref:a,className:r("border-b",e),...t}));k.displayName="AccordionItem";const S=s.forwardRef(({className:e,children:t,...a},n)=>o.jsx(f.Header,{className:"flex",children:o.jsxs(f.Trigger,{ref:n,className:r("flex flex-1 items-center justify-between py-4 text-sm font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180",e),...a,children:[t,a.hideArrow?null:o.jsx(x.ChevronDownIcon,{className:"h-4 w-4 shrink-0 text-muted-foreground transition-transform duration-200"})]})}));S.displayName=f.Trigger.displayName;const P=s.forwardRef(({className:e,children:t,...a},n)=>o.jsx(f.Content,{ref:n,className:r("text-sm data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",e),...a,children:o.jsx("div",{className:"pb-4 pt-0",children:t})}));P.displayName=f.Content.displayName;const w=v.cva("inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),_=s.forwardRef(({className:e,variant:t,size:a,asChild:n=!1,...p},Se)=>{const Pe=n?Me.Slot:"button";return o.jsx(Pe,{className:r(w({variant:t,size:a,className:e})),ref:Se,...p})});_.displayName="Button";const Xe=i.Root,Ye=i.Trigger,A=({className:e,...t})=>o.jsx(i.Portal,{className:r(e),...t});A.displayName=i.Portal.displayName;const I=s.forwardRef(({className:e,...t},a)=>o.jsx(i.Overlay,{className:r("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",e),...t,ref:a}));I.displayName=i.Overlay.displayName;const M=s.forwardRef(({className:e,...t},a)=>o.jsxs(A,{children:[o.jsx(I,{}),o.jsx(i.Content,{ref:a,className:r("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg md:w-full",e),...t})]}));M.displayName=i.Content.displayName;const z=({className:e,...t})=>o.jsx("div",{className:r("flex flex-col space-y-2 text-center sm:text-left",e),...t});z.displayName="AlertDialogHeader";const q=({className:e,...t})=>o.jsx("div",{className:r("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});q.displayName="AlertDialogFooter";const H=s.forwardRef(({className:e,...t},a)=>o.jsx(i.Title,{ref:a,className:r("text-lg font-semibold",e),...t}));H.displayName=i.Title.displayName;const L=s.forwardRef(({className:e,...t},a)=>o.jsx(i.Description,{ref:a,className:r("text-sm text-muted-foreground",e),...t}));L.displayName=i.Description.displayName;const O=s.forwardRef(({className:e,...t},a)=>o.jsx(i.Action,{ref:a,className:r(w(),e),...t}));O.displayName=i.Action.displayName;const G=s.forwardRef(({className:e,...t},a)=>o.jsx(i.Cancel,{ref:a,className:r(w({variant:"outline"}),"mt-2 sm:mt-0",e),...t}));G.displayName=i.Cancel.displayName;const F=v.cva("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",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}}),Ze=({className:e,variant:t,...a})=>o.jsx("div",{className:r(F({variant:t}),e),...a}),B=s.forwardRef(({className:e,...t},a)=>o.jsx("div",{ref:a,className:r("rounded-xl border bg-card text-card-foreground shadow",e),...t}));B.displayName="Card";const V=s.forwardRef(({className:e,...t},a)=>o.jsx("div",{ref:a,className:r("flex flex-col space-y-1.5 p-6",e),...t}));V.displayName="CardHeader";const E=s.forwardRef(({className:e,...t},a)=>o.jsx("h3",{ref:a,className:r("font-semibold leading-none tracking-tight",e),...t}));E.displayName="CardTitle";const J=s.forwardRef(({className:e,...t},a)=>o.jsx("p",{ref:a,className:r("text-sm text-muted-foreground",e),...t}));J.displayName="CardDescription";const K=s.forwardRef(({className:e,...t},a)=>o.jsx("div",{ref:a,className:r("p-6 pt-0",e),...t}));K.displayName="CardContent";const Q=s.forwardRef(({className:e,...t},a)=>o.jsx("div",{ref:a,className:r(" flex items-center p-6 pt-0",e),...t}));Q.displayName="CardFooter";const U=c.Root,$e=c.Trigger,W=({className:e,...t})=>o.jsx(c.Portal,{className:r(e),...t});W.displayName=c.Portal.displayName;const X=s.forwardRef(({className:e,...t},a)=>o.jsx(c.Overlay,{ref:a,className:r("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",e),...t}));X.displayName=c.Overlay.displayName;const C=s.forwardRef(({className:e,children:t,...a},n)=>o.jsxs(W,{children:[o.jsx(X,{}),o.jsxs(c.Content,{ref:n,className:r("fixed left-[50%] top-[50%] z-[999] grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg md:w-full",e),...a,children:[t,o.jsxs(c.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[o.jsx(x.Cross2Icon,{className:"h-4 w-4"}),o.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));C.displayName=c.Content.displayName;const Y=({className:e,...t})=>o.jsx("div",{className:r("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});Y.displayName="DialogHeader";const Z=({className:e,...t})=>o.jsx("div",{className:r("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});Z.displayName="DialogFooter";const $=s.forwardRef(({className:e,...t},a)=>o.jsx(c.Title,{ref:a,className:r("text-lg font-semibold leading-none tracking-tight",e),...t}));$.displayName=c.Title.displayName;const ee=s.forwardRef(({className:e,...t},a)=>o.jsx(c.Description,{ref:a,className:r("text-sm text-muted-foreground",e),...t}));ee.displayName=c.Description.displayName;const j=s.forwardRef(({className:e,...t},a)=>o.jsx(l.Command,{ref:a,className:r("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",e),...t}));j.displayName=l.Command.displayName;const et=({children:e,...t})=>o.jsx(U,{...t,children:o.jsx(C,{className:"overflow-hidden p-0",children:o.jsx(j,{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=s.forwardRef(({className:e,...t},a)=>o.jsxs("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:[o.jsx(x.MagnifyingGlassIcon,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),o.jsx(l.Command.Input,{ref:a,className:r("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",e),...t})]}));te.displayName=l.Command.Input.displayName;const ae=s.forwardRef(({className:e,...t},a)=>o.jsx(l.Command.List,{ref:a,className:r("max-h-[300px] overflow-y-auto overflow-x-hidden",e),...t}));ae.displayName=l.Command.List.displayName;const oe=s.forwardRef((e,t)=>o.jsx(l.Command.Empty,{ref:t,className:"py-6 text-center text-sm",...e}));oe.displayName=l.Command.Empty.displayName;const re=s.forwardRef(({className:e,...t},a)=>o.jsx(l.Command.Group,{ref:a,className:r("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",e),...t}));re.displayName=l.Command.Group.displayName;const se=s.forwardRef(({className:e,...t},a)=>o.jsx(l.Command.Separator,{ref:a,className:r("-mx-1 h-px bg-border",e),...t}));se.displayName=l.Command.Separator.displayName;const ne=s.forwardRef(({className:e,...t},a)=>o.jsx(l.Command.Item,{ref:a,className:r("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",e),...t}));ne.displayName=l.Command.Item.displayName;const de=({className:e,...t})=>o.jsx("span",{className:r("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});de.displayName="CommandShortcut";const tt=d.Root,at=d.Trigger,ot=d.Group,rt=d.Portal,st=d.Sub,nt=d.RadioGroup,ie=s.forwardRef(({className:e,inset:t,children:a,...n},p)=>o.jsxs(d.SubTrigger,{ref:p,className:r("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",t&&"pl-8",e),...n,children:[a,o.jsx(x.ChevronRightIcon,{className:"ml-auto h-4 w-4"})]}));ie.displayName=d.SubTrigger.displayName;const le=s.forwardRef(({className:e,...t},a)=>o.jsx(d.SubContent,{ref:a,className:r("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",e),...t}));le.displayName=d.SubContent.displayName;const ce=s.forwardRef(({className:e,sideOffset:t=4,...a},n)=>o.jsx(d.Portal,{children:o.jsx(d.Content,{ref:n,sideOffset:t,className:r("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 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",e),...a})}));ce.displayName=d.Content.displayName;const me=s.forwardRef(({className:e,inset:t,...a},n)=>o.jsx(d.Item,{ref:n,className:r("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t&&"pl-8",e),...a}));me.displayName=d.Item.displayName;const pe=s.forwardRef(({className:e,children:t,checked:a,...n},p)=>o.jsxs(d.CheckboxItem,{ref:p,className:r("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:a,...n,children:[o.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:o.jsx(d.ItemIndicator,{children:o.jsx(x.CheckIcon,{className:"h-4 w-4"})})}),t]}));pe.displayName=d.CheckboxItem.displayName;const ue=s.forwardRef(({className:e,children:t,...a},n)=>o.jsxs(d.RadioItem,{ref:n,className:r("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...a,children:[o.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:o.jsx(d.ItemIndicator,{children:o.jsx(x.DotFilledIcon,{className:"h-4 w-4 fill-current"})})}),t]}));ue.displayName=d.RadioItem.displayName;const fe=s.forwardRef(({className:e,inset:t,...a},n)=>o.jsx(d.Label,{ref:n,className:r("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...a}));fe.displayName=d.Label.displayName;const ge=s.forwardRef(({className:e,...t},a)=>o.jsx(d.Separator,{ref:a,className:r("-mx-1 my-1 h-px bg-muted",e),...t}));ge.displayName=d.Separator.displayName;const xe=({className:e,...t})=>o.jsx("span",{className:r("ml-auto text-xs tracking-widest opacity-60",e),...t});xe.displayName="DropdownMenuShortcut";const dt=N.Root,it=N.Trigger,be=s.forwardRef(({className:e,align:t="center",sideOffset:a=4,...n},p)=>o.jsx(N.Content,{ref:p,align:t,sideOffset:a,className:r("z-50 w-64 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n}));be.displayName=N.Content.displayName;const ye=s.forwardRef(({className:e,type:t,...a},n)=>o.jsx("input",{type:t,className:r("flex h-9 w-full rounded-md border border-border bg-background px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:n,...a,autoCapitalize:"off",autoCorrect:"off",spellCheck:"false"}));ye.displayName="Input";const lt=v.cva("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Ne=s.forwardRef(({className:e,...t},a)=>o.jsx(R.Root,{ref:a,className:r(lt(),e),...t}));Ne.displayName=R.Root.displayName;const ct=y.Root,mt=y.Trigger,we=s.forwardRef(({className:e,align:t="center",sideOffset:a=4,...n},p)=>o.jsx(y.Portal,{children:o.jsx(y.Content,{ref:p,align:t,sideOffset:a,className:r("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n})}));we.displayName=y.Content.displayName;const he=s.forwardRef(({className:e,children:t,...a},n)=>o.jsxs(u.Root,{ref:n,className:r("relative overflow-hidden",e),...a,children:[o.jsx(u.Viewport,{className:"h-full w-full rounded-[inherit]",children:t}),o.jsx(D,{}),o.jsx(u.Corner,{})]}));he.displayName=u.Root.displayName;const D=s.forwardRef(({className:e,orientation:t="vertical",...a},n)=>o.jsx(u.ScrollAreaScrollbar,{ref:n,orientation:t,className:r("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",t==="horizontal"&&"h-2.5 border-t border-t-transparent p-[1px]",e),...a,children:o.jsx(u.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));D.displayName=u.ScrollAreaScrollbar.displayName;const ve=s.forwardRef(({className:e,orientation:t="horizontal",decorative:a=!0,...n},p)=>o.jsx(T.Root,{ref:p,decorative:a,orientation:t,className:r("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...n}));ve.displayName=T.Root.displayName;const pt=({className:e,...t})=>o.jsx("div",{className:r("animate-pulse rounded-md bg-primary/10",e),...t}),ut=({...e})=>{const{theme:t="system"}=Be.useTheme();return o.jsx(Ve.Toaster,{theme:t,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...e})},Ce=s.forwardRef(({className:e,...t},a)=>o.jsx(h.Root,{className:r("peer inline-flex h-[24px] w-[44px] shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-slate-400 focus-visible:ring-offset-2 focus-visible:ring-offset-white disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-slate-900 data-[state=unchecked]:bg-slate-200 dark:focus-visible:ring-slate-800 dark:focus-visible:ring-offset-slate-950 dark:data-[state=checked]:bg-slate-50 dark:data-[state=unchecked]:bg-slate-800",e),...t,ref:a,children:o.jsx(h.Thumb,{className:r("pointer-events-none block h-5 w-5 rounded-full bg-white shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0 dark:bg-slate-950")})}));Ce.displayName=h.Root.displayName;const ft=g.Root,je=s.forwardRef(({className:e,...t},a)=>o.jsx(g.List,{ref:a,className:r("inline-flex h-9 items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground",e),...t}));je.displayName=g.List.displayName;const De=s.forwardRef(({className:e,...t},a)=>o.jsx(g.Trigger,{ref:a,className:r("inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow",e),...t}));De.displayName=g.Trigger.displayName;const Re=s.forwardRef(({className:e,...t},a)=>o.jsx(g.Content,{ref:a,className:r("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t}));Re.displayName=g.Content.displayName;const Te=s.forwardRef(({className:e,...t},a)=>o.jsx("textarea",{className:r("flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:a,...t,autoCapitalize:"off",autoCorrect:"off",spellCheck:"false"}));Te.displayName="Textarea";const gt=b.Portal,xt=b.Provider,bt=b.Root,yt=b.Trigger,ke=s.forwardRef(({className:e,sideOffset:t=4,...a},n)=>o.jsx(b.Content,{ref:n,sideOffset:t,className:r("z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...a}));ke.displayName=b.Content.displayName;exports.Accordion=We;exports.AccordionContent=P;exports.AccordionItem=k;exports.AccordionTrigger=S;exports.AlertDialog=Xe;exports.AlertDialogAction=O;exports.AlertDialogCancel=G;exports.AlertDialogContent=M;exports.AlertDialogDescription=L;exports.AlertDialogFooter=q;exports.AlertDialogHeader=z;exports.AlertDialogTitle=H;exports.AlertDialogTrigger=Ye;exports.Badge=Ze;exports.Button=_;exports.Card=B;exports.CardContent=K;exports.CardDescription=J;exports.CardFooter=Q;exports.CardHeader=V;exports.CardTitle=E;exports.Command=j;exports.CommandDialog=et;exports.CommandEmpty=oe;exports.CommandGroup=re;exports.CommandInput=te;exports.CommandItem=ne;exports.CommandList=ae;exports.CommandSeparator=se;exports.CommandShortcut=de;exports.Dialog=U;exports.DialogContent=C;exports.DialogDescription=ee;exports.DialogFooter=Z;exports.DialogHeader=Y;exports.DialogTitle=$;exports.DialogTrigger=$e;exports.DropdownMenu=tt;exports.DropdownMenuCheckboxItem=pe;exports.DropdownMenuContent=ce;exports.DropdownMenuGroup=ot;exports.DropdownMenuItem=me;exports.DropdownMenuLabel=fe;exports.DropdownMenuPortal=rt;exports.DropdownMenuRadioGroup=nt;exports.DropdownMenuRadioItem=ue;exports.DropdownMenuSeparator=ge;exports.DropdownMenuShortcut=xe;exports.DropdownMenuSub=st;exports.DropdownMenuSubContent=le;exports.DropdownMenuSubTrigger=ie;exports.DropdownMenuTrigger=at;exports.HoverCard=dt;exports.HoverCardContent=be;exports.HoverCardTrigger=it;exports.Input=ye;exports.Label=Ne;exports.Popover=ct;exports.PopoverContent=we;exports.PopoverTrigger=mt;exports.ScrollArea=he;exports.ScrollBar=D;exports.Separator=ve;exports.Skeleton=pt;exports.Switch=Ce;exports.Tabs=ft;exports.TabsContent=Re;exports.TabsList=je;exports.TabsTrigger=De;exports.Textarea=Te;exports.Toaster=ut;exports.Tooltip=bt;exports.TooltipContent=ke;exports.TooltipPortal=gt;exports.TooltipProvider=xt;exports.TooltipTrigger=yt;exports.badgeVariants=F;exports.buttonVariants=w;exports.cn=r;
|