@chaibuilder/sdk 2.0.12 → 2.1.0
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-BVHvdz8H.cjs → CodeEditor-BG4oToVY.cjs} +1 -1
- package/dist/{CodeEditor-ZtRSywKI.js → CodeEditor-CdNhJvdd.js} +1 -1
- package/dist/core.cjs +6 -6
- package/dist/core.d.ts +174 -168
- package/dist/core.js +7683 -4348
- package/dist/render.d.ts +1 -0
- package/dist/tooltip-CkYl0YhP.cjs +1 -0
- package/dist/tooltip-D9DF_nUo.js +1900 -0
- package/dist/ui.cjs +1 -1
- package/dist/ui.d.ts +36 -3
- package/dist/ui.js +225 -291
- package/dist/web-blocks.cjs +2 -2
- package/dist/web-blocks.js +300 -309
- package/package.json +3 -1
- package/dist/Topbar-CX5hnmQJ.js +0 -16
- package/dist/Topbar-D7QTF9G-.cjs +0 -1
- package/dist/tooltip-BMhhYJb6.cjs +0 -1
- package/dist/tooltip-VMv3Eoxb.js +0 -671
package/dist/tooltip-VMv3Eoxb.js
DELETED
|
@@ -1,671 +0,0 @@
|
|
|
1
|
-
import { jsx as o, jsxs as p } from "react/jsx-runtime";
|
|
2
|
-
import * as r from "react";
|
|
3
|
-
import * as u from "@radix-ui/react-accordion";
|
|
4
|
-
import { ChevronDownIcon as _, Cross2Icon as M, MagnifyingGlassIcon as j, ChevronRightIcon as H, CheckIcon as L, DotFilledIcon as F } from "@radix-ui/react-icons";
|
|
5
|
-
import * as i from "@radix-ui/react-alert-dialog";
|
|
6
|
-
import { Slot as G } from "@radix-ui/react-slot";
|
|
7
|
-
import { cva as w } from "class-variance-authority";
|
|
8
|
-
import * as b from "@radix-ui/react-avatar";
|
|
9
|
-
import { Command as l } from "cmdk";
|
|
10
|
-
import * as m from "@radix-ui/react-dialog";
|
|
11
|
-
import * as n from "@radix-ui/react-dropdown-menu";
|
|
12
|
-
import * as x from "@radix-ui/react-hover-card";
|
|
13
|
-
import * as C from "@radix-ui/react-label";
|
|
14
|
-
import * as N from "@radix-ui/react-popover";
|
|
15
|
-
import * as f from "@radix-ui/react-scroll-area";
|
|
16
|
-
import * as R from "@radix-ui/react-separator";
|
|
17
|
-
import { useTheme as O } from "next-themes";
|
|
18
|
-
import { Toaster as B } from "sonner";
|
|
19
|
-
import * as h from "@radix-ui/react-switch";
|
|
20
|
-
import * as g from "@radix-ui/react-tabs";
|
|
21
|
-
import * as y from "@radix-ui/react-tooltip";
|
|
22
|
-
import { clsx as V } from "clsx";
|
|
23
|
-
import { twMerge as E } from "tailwind-merge";
|
|
24
|
-
const s = (...a) => E(V(a)), aa = u.Root, q = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(u.Item, { ref: t, className: s("border-b", a), ...e }));
|
|
25
|
-
q.displayName = "AccordionItem";
|
|
26
|
-
const $ = r.forwardRef(({ className: a, children: e, ...t }, d) => /* @__PURE__ */ o(u.Header, { className: "flex", children: /* @__PURE__ */ p(
|
|
27
|
-
u.Trigger,
|
|
28
|
-
{
|
|
29
|
-
ref: d,
|
|
30
|
-
className: s(
|
|
31
|
-
"flex flex-1 items-center justify-between py-4 text-sm font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180",
|
|
32
|
-
a
|
|
33
|
-
),
|
|
34
|
-
...t,
|
|
35
|
-
children: [
|
|
36
|
-
e,
|
|
37
|
-
t.hideArrow ? null : /* @__PURE__ */ o(_, { className: "h-4 w-4 shrink-0 text-muted-foreground transition-transform duration-200" })
|
|
38
|
-
]
|
|
39
|
-
}
|
|
40
|
-
) }));
|
|
41
|
-
$.displayName = u.Trigger.displayName;
|
|
42
|
-
const J = r.forwardRef(({ className: a, children: e, ...t }, d) => /* @__PURE__ */ o(
|
|
43
|
-
u.Content,
|
|
44
|
-
{
|
|
45
|
-
ref: d,
|
|
46
|
-
className: s(
|
|
47
|
-
"text-sm data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",
|
|
48
|
-
a
|
|
49
|
-
),
|
|
50
|
-
...t,
|
|
51
|
-
children: /* @__PURE__ */ o("div", { className: "pb-4 pt-0", children: e })
|
|
52
|
-
}
|
|
53
|
-
));
|
|
54
|
-
J.displayName = u.Content.displayName;
|
|
55
|
-
const v = w(
|
|
56
|
-
"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",
|
|
57
|
-
{
|
|
58
|
-
variants: {
|
|
59
|
-
variant: {
|
|
60
|
-
default: "bg-primary text-primary-foreground shadow hover:bg-primary/90",
|
|
61
|
-
destructive: "bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",
|
|
62
|
-
outline: "border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",
|
|
63
|
-
secondary: "bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",
|
|
64
|
-
ghost: "hover:bg-accent hover:text-accent-foreground",
|
|
65
|
-
link: "text-primary underline-offset-4 hover:underline"
|
|
66
|
-
},
|
|
67
|
-
size: {
|
|
68
|
-
default: "h-9 px-4 py-2",
|
|
69
|
-
sm: "h-8 rounded-md px-3 text-xs",
|
|
70
|
-
lg: "h-10 rounded-md px-8",
|
|
71
|
-
icon: "h-9 w-9"
|
|
72
|
-
}
|
|
73
|
-
},
|
|
74
|
-
defaultVariants: {
|
|
75
|
-
variant: "default",
|
|
76
|
-
size: "default"
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
), K = r.forwardRef(
|
|
80
|
-
({ className: a, variant: e, size: t, asChild: d = !1, ...c }, z) => /* @__PURE__ */ o(d ? G : "button", { className: s(v({ variant: e, size: t, className: a })), ref: z, ...c })
|
|
81
|
-
);
|
|
82
|
-
K.displayName = "Button";
|
|
83
|
-
const ta = i.Root, oa = i.Trigger, k = ({ className: a, ...e }) => /* @__PURE__ */ o(i.Portal, { className: s(a), ...e });
|
|
84
|
-
k.displayName = i.Portal.displayName;
|
|
85
|
-
const D = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
|
|
86
|
-
i.Overlay,
|
|
87
|
-
{
|
|
88
|
-
className: s(
|
|
89
|
-
"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",
|
|
90
|
-
a
|
|
91
|
-
),
|
|
92
|
-
...e,
|
|
93
|
-
ref: t
|
|
94
|
-
}
|
|
95
|
-
));
|
|
96
|
-
D.displayName = i.Overlay.displayName;
|
|
97
|
-
const Q = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ p(k, { children: [
|
|
98
|
-
/* @__PURE__ */ o(D, {}),
|
|
99
|
-
/* @__PURE__ */ o(
|
|
100
|
-
i.Content,
|
|
101
|
-
{
|
|
102
|
-
ref: t,
|
|
103
|
-
className: s(
|
|
104
|
-
"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",
|
|
105
|
-
a
|
|
106
|
-
),
|
|
107
|
-
...e
|
|
108
|
-
}
|
|
109
|
-
)
|
|
110
|
-
] }));
|
|
111
|
-
Q.displayName = i.Content.displayName;
|
|
112
|
-
const U = ({ className: a, ...e }) => /* @__PURE__ */ o("div", { className: s("flex flex-col space-y-2 text-center sm:text-left", a), ...e });
|
|
113
|
-
U.displayName = "AlertDialogHeader";
|
|
114
|
-
const W = ({ className: a, ...e }) => /* @__PURE__ */ o("div", { className: s("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", a), ...e });
|
|
115
|
-
W.displayName = "AlertDialogFooter";
|
|
116
|
-
const X = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(i.Title, { ref: t, className: s("text-lg font-semibold", a), ...e }));
|
|
117
|
-
X.displayName = i.Title.displayName;
|
|
118
|
-
const Y = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(i.Description, { ref: t, className: s("text-sm text-muted-foreground", a), ...e }));
|
|
119
|
-
Y.displayName = i.Description.displayName;
|
|
120
|
-
const Z = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(i.Action, { ref: t, className: s(v(), a), ...e }));
|
|
121
|
-
Z.displayName = i.Action.displayName;
|
|
122
|
-
const ee = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
|
|
123
|
-
i.Cancel,
|
|
124
|
-
{
|
|
125
|
-
ref: t,
|
|
126
|
-
className: s(v({ variant: "outline" }), "mt-2 sm:mt-0", a),
|
|
127
|
-
...e
|
|
128
|
-
}
|
|
129
|
-
));
|
|
130
|
-
ee.displayName = i.Cancel.displayName;
|
|
131
|
-
const ae = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
|
|
132
|
-
b.Root,
|
|
133
|
-
{
|
|
134
|
-
ref: t,
|
|
135
|
-
className: s("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full", a),
|
|
136
|
-
...e
|
|
137
|
-
}
|
|
138
|
-
));
|
|
139
|
-
ae.displayName = b.Root.displayName;
|
|
140
|
-
const te = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(b.Image, { ref: t, className: s("aspect-square h-full w-full", a), ...e }));
|
|
141
|
-
te.displayName = b.Image.displayName;
|
|
142
|
-
const oe = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
|
|
143
|
-
b.Fallback,
|
|
144
|
-
{
|
|
145
|
-
ref: t,
|
|
146
|
-
className: s("flex h-full w-full items-center justify-center rounded-full bg-muted", a),
|
|
147
|
-
...e
|
|
148
|
-
}
|
|
149
|
-
));
|
|
150
|
-
oe.displayName = b.Fallback.displayName;
|
|
151
|
-
const se = w(
|
|
152
|
-
"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",
|
|
153
|
-
{
|
|
154
|
-
variants: {
|
|
155
|
-
variant: {
|
|
156
|
-
default: "border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",
|
|
157
|
-
secondary: "border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",
|
|
158
|
-
destructive: "border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",
|
|
159
|
-
outline: "text-foreground"
|
|
160
|
-
}
|
|
161
|
-
},
|
|
162
|
-
defaultVariants: {
|
|
163
|
-
variant: "default"
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
), sa = ({ className: a, variant: e, ...t }) => /* @__PURE__ */ o("div", { className: s(se({ variant: e }), a), ...t }), re = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o("div", { ref: t, className: s("rounded-xl border bg-card text-card-foreground shadow", a), ...e }));
|
|
167
|
-
re.displayName = "Card";
|
|
168
|
-
const de = r.forwardRef(
|
|
169
|
-
({ className: a, ...e }, t) => /* @__PURE__ */ o("div", { ref: t, className: s("flex flex-col space-y-1.5 p-6", a), ...e })
|
|
170
|
-
);
|
|
171
|
-
de.displayName = "CardHeader";
|
|
172
|
-
const ne = r.forwardRef(
|
|
173
|
-
({ className: a, ...e }, t) => /* @__PURE__ */ o("h3", { ref: t, className: s("font-semibold leading-none tracking-tight", a), ...e })
|
|
174
|
-
);
|
|
175
|
-
ne.displayName = "CardTitle";
|
|
176
|
-
const ie = r.forwardRef(
|
|
177
|
-
({ className: a, ...e }, t) => /* @__PURE__ */ o("p", { ref: t, className: s("text-sm text-muted-foreground", a), ...e })
|
|
178
|
-
);
|
|
179
|
-
ie.displayName = "CardDescription";
|
|
180
|
-
const le = r.forwardRef(
|
|
181
|
-
({ className: a, ...e }, t) => /* @__PURE__ */ o("div", { ref: t, className: s("p-6 pt-0", a), ...e })
|
|
182
|
-
);
|
|
183
|
-
le.displayName = "CardContent";
|
|
184
|
-
const me = r.forwardRef(
|
|
185
|
-
({ className: a, ...e }, t) => /* @__PURE__ */ o("div", { ref: t, className: s(" flex items-center p-6 pt-0", a), ...e })
|
|
186
|
-
);
|
|
187
|
-
me.displayName = "CardFooter";
|
|
188
|
-
const ce = m.Root, ra = m.Trigger, T = ({ className: a, ...e }) => /* @__PURE__ */ o(m.Portal, { className: s(a), ...e });
|
|
189
|
-
T.displayName = m.Portal.displayName;
|
|
190
|
-
const A = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
|
|
191
|
-
m.Overlay,
|
|
192
|
-
{
|
|
193
|
-
ref: t,
|
|
194
|
-
className: s(
|
|
195
|
-
"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",
|
|
196
|
-
a
|
|
197
|
-
),
|
|
198
|
-
...e
|
|
199
|
-
}
|
|
200
|
-
));
|
|
201
|
-
A.displayName = m.Overlay.displayName;
|
|
202
|
-
const I = r.forwardRef(({ className: a, children: e, ...t }, d) => /* @__PURE__ */ p(T, { children: [
|
|
203
|
-
/* @__PURE__ */ o(A, {}),
|
|
204
|
-
/* @__PURE__ */ p(
|
|
205
|
-
m.Content,
|
|
206
|
-
{
|
|
207
|
-
ref: d,
|
|
208
|
-
className: s(
|
|
209
|
-
"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",
|
|
210
|
-
a
|
|
211
|
-
),
|
|
212
|
-
...t,
|
|
213
|
-
children: [
|
|
214
|
-
e,
|
|
215
|
-
/* @__PURE__ */ p(m.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: [
|
|
216
|
-
/* @__PURE__ */ o(M, { className: "h-4 w-4" }),
|
|
217
|
-
/* @__PURE__ */ o("span", { className: "sr-only", children: "Close" })
|
|
218
|
-
] })
|
|
219
|
-
]
|
|
220
|
-
}
|
|
221
|
-
)
|
|
222
|
-
] }));
|
|
223
|
-
I.displayName = m.Content.displayName;
|
|
224
|
-
const pe = ({ className: a, ...e }) => /* @__PURE__ */ o("div", { className: s("flex flex-col space-y-1.5 text-center sm:text-left", a), ...e });
|
|
225
|
-
pe.displayName = "DialogHeader";
|
|
226
|
-
const fe = ({ className: a, ...e }) => /* @__PURE__ */ o("div", { className: s("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", a), ...e });
|
|
227
|
-
fe.displayName = "DialogFooter";
|
|
228
|
-
const ue = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
|
|
229
|
-
m.Title,
|
|
230
|
-
{
|
|
231
|
-
ref: t,
|
|
232
|
-
className: s("text-lg font-semibold leading-none tracking-tight", a),
|
|
233
|
-
...e
|
|
234
|
-
}
|
|
235
|
-
));
|
|
236
|
-
ue.displayName = m.Title.displayName;
|
|
237
|
-
const ge = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(m.Description, { ref: t, className: s("text-sm text-muted-foreground", a), ...e }));
|
|
238
|
-
ge.displayName = m.Description.displayName;
|
|
239
|
-
const S = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
|
|
240
|
-
l,
|
|
241
|
-
{
|
|
242
|
-
ref: t,
|
|
243
|
-
className: s(
|
|
244
|
-
"flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",
|
|
245
|
-
a
|
|
246
|
-
),
|
|
247
|
-
...e
|
|
248
|
-
}
|
|
249
|
-
));
|
|
250
|
-
S.displayName = l.displayName;
|
|
251
|
-
const da = ({ children: a, ...e }) => /* @__PURE__ */ o(ce, { ...e, children: /* @__PURE__ */ o(I, { className: "overflow-hidden p-0", children: /* @__PURE__ */ o(S, { 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: a }) }) }), be = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ p("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
|
|
252
|
-
/* @__PURE__ */ o(j, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }),
|
|
253
|
-
/* @__PURE__ */ o(
|
|
254
|
-
l.Input,
|
|
255
|
-
{
|
|
256
|
-
ref: t,
|
|
257
|
-
className: s(
|
|
258
|
-
"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",
|
|
259
|
-
a
|
|
260
|
-
),
|
|
261
|
-
...e
|
|
262
|
-
}
|
|
263
|
-
)
|
|
264
|
-
] }));
|
|
265
|
-
be.displayName = l.Input.displayName;
|
|
266
|
-
const ye = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
|
|
267
|
-
l.List,
|
|
268
|
-
{
|
|
269
|
-
ref: t,
|
|
270
|
-
className: s("max-h-[300px] overflow-y-auto overflow-x-hidden", a),
|
|
271
|
-
...e
|
|
272
|
-
}
|
|
273
|
-
));
|
|
274
|
-
ye.displayName = l.List.displayName;
|
|
275
|
-
const Ne = r.forwardRef((a, e) => /* @__PURE__ */ o(l.Empty, { ref: e, className: "py-6 text-center text-sm", ...a }));
|
|
276
|
-
Ne.displayName = l.Empty.displayName;
|
|
277
|
-
const xe = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
|
|
278
|
-
l.Group,
|
|
279
|
-
{
|
|
280
|
-
ref: t,
|
|
281
|
-
className: s(
|
|
282
|
-
"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",
|
|
283
|
-
a
|
|
284
|
-
),
|
|
285
|
-
...e
|
|
286
|
-
}
|
|
287
|
-
));
|
|
288
|
-
xe.displayName = l.Group.displayName;
|
|
289
|
-
const he = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(l.Separator, { ref: t, className: s("-mx-1 h-px bg-border", a), ...e }));
|
|
290
|
-
he.displayName = l.Separator.displayName;
|
|
291
|
-
const we = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
|
|
292
|
-
l.Item,
|
|
293
|
-
{
|
|
294
|
-
ref: t,
|
|
295
|
-
className: s(
|
|
296
|
-
"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",
|
|
297
|
-
a
|
|
298
|
-
),
|
|
299
|
-
...e
|
|
300
|
-
}
|
|
301
|
-
));
|
|
302
|
-
we.displayName = l.Item.displayName;
|
|
303
|
-
const ve = ({ className: a, ...e }) => /* @__PURE__ */ o("span", { className: s("ml-auto text-xs tracking-widest text-muted-foreground", a), ...e });
|
|
304
|
-
ve.displayName = "CommandShortcut";
|
|
305
|
-
const na = n.Root, ia = n.Trigger, la = n.Group, ma = n.Portal, ca = n.Sub, pa = n.RadioGroup, Ce = r.forwardRef(({ className: a, inset: e, children: t, ...d }, c) => /* @__PURE__ */ p(
|
|
306
|
-
n.SubTrigger,
|
|
307
|
-
{
|
|
308
|
-
ref: c,
|
|
309
|
-
className: s(
|
|
310
|
-
"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",
|
|
311
|
-
e && "pl-8",
|
|
312
|
-
a
|
|
313
|
-
),
|
|
314
|
-
...d,
|
|
315
|
-
children: [
|
|
316
|
-
t,
|
|
317
|
-
/* @__PURE__ */ o(H, { className: "ml-auto h-4 w-4" })
|
|
318
|
-
]
|
|
319
|
-
}
|
|
320
|
-
));
|
|
321
|
-
Ce.displayName = n.SubTrigger.displayName;
|
|
322
|
-
const Re = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
|
|
323
|
-
n.SubContent,
|
|
324
|
-
{
|
|
325
|
-
ref: t,
|
|
326
|
-
className: s(
|
|
327
|
-
"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",
|
|
328
|
-
a
|
|
329
|
-
),
|
|
330
|
-
...e
|
|
331
|
-
}
|
|
332
|
-
));
|
|
333
|
-
Re.displayName = n.SubContent.displayName;
|
|
334
|
-
const ke = r.forwardRef(({ className: a, sideOffset: e = 4, ...t }, d) => /* @__PURE__ */ o(n.Portal, { children: /* @__PURE__ */ o(
|
|
335
|
-
n.Content,
|
|
336
|
-
{
|
|
337
|
-
ref: d,
|
|
338
|
-
sideOffset: e,
|
|
339
|
-
className: s(
|
|
340
|
-
"z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md",
|
|
341
|
-
"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",
|
|
342
|
-
a
|
|
343
|
-
),
|
|
344
|
-
...t
|
|
345
|
-
}
|
|
346
|
-
) }));
|
|
347
|
-
ke.displayName = n.Content.displayName;
|
|
348
|
-
const De = r.forwardRef(({ className: a, inset: e, ...t }, d) => /* @__PURE__ */ o(
|
|
349
|
-
n.Item,
|
|
350
|
-
{
|
|
351
|
-
ref: d,
|
|
352
|
-
className: s(
|
|
353
|
-
"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",
|
|
354
|
-
e && "pl-8",
|
|
355
|
-
a
|
|
356
|
-
),
|
|
357
|
-
...t
|
|
358
|
-
}
|
|
359
|
-
));
|
|
360
|
-
De.displayName = n.Item.displayName;
|
|
361
|
-
const Te = r.forwardRef(({ className: a, children: e, checked: t, ...d }, c) => /* @__PURE__ */ p(
|
|
362
|
-
n.CheckboxItem,
|
|
363
|
-
{
|
|
364
|
-
ref: c,
|
|
365
|
-
className: s(
|
|
366
|
-
"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",
|
|
367
|
-
a
|
|
368
|
-
),
|
|
369
|
-
checked: t,
|
|
370
|
-
...d,
|
|
371
|
-
children: [
|
|
372
|
-
/* @__PURE__ */ o("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ o(n.ItemIndicator, { children: /* @__PURE__ */ o(L, { className: "h-4 w-4" }) }) }),
|
|
373
|
-
e
|
|
374
|
-
]
|
|
375
|
-
}
|
|
376
|
-
));
|
|
377
|
-
Te.displayName = n.CheckboxItem.displayName;
|
|
378
|
-
const Ae = r.forwardRef(({ className: a, children: e, ...t }, d) => /* @__PURE__ */ p(
|
|
379
|
-
n.RadioItem,
|
|
380
|
-
{
|
|
381
|
-
ref: d,
|
|
382
|
-
className: s(
|
|
383
|
-
"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",
|
|
384
|
-
a
|
|
385
|
-
),
|
|
386
|
-
...t,
|
|
387
|
-
children: [
|
|
388
|
-
/* @__PURE__ */ o("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ o(n.ItemIndicator, { children: /* @__PURE__ */ o(F, { className: "h-4 w-4 fill-current" }) }) }),
|
|
389
|
-
e
|
|
390
|
-
]
|
|
391
|
-
}
|
|
392
|
-
));
|
|
393
|
-
Ae.displayName = n.RadioItem.displayName;
|
|
394
|
-
const Ie = r.forwardRef(({ className: a, inset: e, ...t }, d) => /* @__PURE__ */ o(
|
|
395
|
-
n.Label,
|
|
396
|
-
{
|
|
397
|
-
ref: d,
|
|
398
|
-
className: s("px-2 py-1.5 text-sm font-semibold", e && "pl-8", a),
|
|
399
|
-
...t
|
|
400
|
-
}
|
|
401
|
-
));
|
|
402
|
-
Ie.displayName = n.Label.displayName;
|
|
403
|
-
const Se = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(n.Separator, { ref: t, className: s("-mx-1 my-1 h-px bg-muted", a), ...e }));
|
|
404
|
-
Se.displayName = n.Separator.displayName;
|
|
405
|
-
const Pe = ({ className: a, ...e }) => /* @__PURE__ */ o("span", { className: s("ml-auto text-xs tracking-widest opacity-60", a), ...e });
|
|
406
|
-
Pe.displayName = "DropdownMenuShortcut";
|
|
407
|
-
const fa = x.Root, ua = x.Trigger, ze = r.forwardRef(({ className: a, align: e = "center", sideOffset: t = 4, ...d }, c) => /* @__PURE__ */ o(
|
|
408
|
-
x.Content,
|
|
409
|
-
{
|
|
410
|
-
ref: c,
|
|
411
|
-
align: e,
|
|
412
|
-
sideOffset: t,
|
|
413
|
-
className: s(
|
|
414
|
-
"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",
|
|
415
|
-
a
|
|
416
|
-
),
|
|
417
|
-
...d
|
|
418
|
-
}
|
|
419
|
-
));
|
|
420
|
-
ze.displayName = x.Content.displayName;
|
|
421
|
-
const _e = r.forwardRef(({ className: a, type: e, ...t }, d) => /* @__PURE__ */ o(
|
|
422
|
-
"input",
|
|
423
|
-
{
|
|
424
|
-
type: e,
|
|
425
|
-
className: s(
|
|
426
|
-
"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",
|
|
427
|
-
a
|
|
428
|
-
),
|
|
429
|
-
ref: d,
|
|
430
|
-
...t,
|
|
431
|
-
autoCapitalize: "off",
|
|
432
|
-
autoCorrect: "off",
|
|
433
|
-
spellCheck: "false"
|
|
434
|
-
}
|
|
435
|
-
));
|
|
436
|
-
_e.displayName = "Input";
|
|
437
|
-
const Me = w("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"), je = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(C.Root, { ref: t, className: s(Me(), a), ...e }));
|
|
438
|
-
je.displayName = C.Root.displayName;
|
|
439
|
-
const ga = N.Root, ba = N.Trigger, He = r.forwardRef(({ className: a, align: e = "center", sideOffset: t = 4, ...d }, c) => /* @__PURE__ */ o(N.Portal, { children: /* @__PURE__ */ o(
|
|
440
|
-
N.Content,
|
|
441
|
-
{
|
|
442
|
-
ref: c,
|
|
443
|
-
align: e,
|
|
444
|
-
sideOffset: t,
|
|
445
|
-
className: s(
|
|
446
|
-
"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",
|
|
447
|
-
a
|
|
448
|
-
),
|
|
449
|
-
...d
|
|
450
|
-
}
|
|
451
|
-
) }));
|
|
452
|
-
He.displayName = N.Content.displayName;
|
|
453
|
-
const Le = r.forwardRef(({ className: a, children: e, ...t }, d) => /* @__PURE__ */ p(f.Root, { ref: d, className: s("relative overflow-hidden", a), ...t, children: [
|
|
454
|
-
/* @__PURE__ */ o(f.Viewport, { className: "h-full w-full rounded-[inherit]", children: e }),
|
|
455
|
-
/* @__PURE__ */ o(P, {}),
|
|
456
|
-
/* @__PURE__ */ o(f.Corner, {})
|
|
457
|
-
] }));
|
|
458
|
-
Le.displayName = f.Root.displayName;
|
|
459
|
-
const P = r.forwardRef(({ className: a, orientation: e = "vertical", ...t }, d) => /* @__PURE__ */ o(
|
|
460
|
-
f.ScrollAreaScrollbar,
|
|
461
|
-
{
|
|
462
|
-
ref: d,
|
|
463
|
-
orientation: e,
|
|
464
|
-
className: s(
|
|
465
|
-
"flex touch-none select-none transition-colors",
|
|
466
|
-
e === "vertical" && "h-full w-2.5 border-l border-l-transparent p-[1px]",
|
|
467
|
-
e === "horizontal" && "h-2.5 border-t border-t-transparent p-[1px]",
|
|
468
|
-
a
|
|
469
|
-
),
|
|
470
|
-
...t,
|
|
471
|
-
children: /* @__PURE__ */ o(f.ScrollAreaThumb, { className: "relative flex-1 rounded-full bg-border" })
|
|
472
|
-
}
|
|
473
|
-
));
|
|
474
|
-
P.displayName = f.ScrollAreaScrollbar.displayName;
|
|
475
|
-
const Fe = r.forwardRef(({ className: a, orientation: e = "horizontal", decorative: t = !0, ...d }, c) => /* @__PURE__ */ o(
|
|
476
|
-
R.Root,
|
|
477
|
-
{
|
|
478
|
-
ref: c,
|
|
479
|
-
decorative: t,
|
|
480
|
-
orientation: e,
|
|
481
|
-
className: s("shrink-0 bg-border", e === "horizontal" ? "h-[1px] w-full" : "h-full w-[1px]", a),
|
|
482
|
-
...d
|
|
483
|
-
}
|
|
484
|
-
));
|
|
485
|
-
Fe.displayName = R.Root.displayName;
|
|
486
|
-
const ya = ({ className: a, ...e }) => /* @__PURE__ */ o("div", { className: s("animate-pulse rounded-md bg-primary/10", a), ...e }), Na = ({ ...a }) => {
|
|
487
|
-
const { theme: e = "system" } = O();
|
|
488
|
-
return /* @__PURE__ */ o(
|
|
489
|
-
B,
|
|
490
|
-
{
|
|
491
|
-
theme: e,
|
|
492
|
-
className: "toaster group",
|
|
493
|
-
toastOptions: {
|
|
494
|
-
classNames: {
|
|
495
|
-
toast: "group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",
|
|
496
|
-
description: "group-[.toast]:text-muted-foreground",
|
|
497
|
-
actionButton: "group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",
|
|
498
|
-
cancelButton: "group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"
|
|
499
|
-
}
|
|
500
|
-
},
|
|
501
|
-
...a
|
|
502
|
-
}
|
|
503
|
-
);
|
|
504
|
-
}, Ge = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
|
|
505
|
-
h.Root,
|
|
506
|
-
{
|
|
507
|
-
className: s(
|
|
508
|
-
"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",
|
|
509
|
-
a
|
|
510
|
-
),
|
|
511
|
-
...e,
|
|
512
|
-
ref: t,
|
|
513
|
-
children: /* @__PURE__ */ o(
|
|
514
|
-
h.Thumb,
|
|
515
|
-
{
|
|
516
|
-
className: s(
|
|
517
|
-
"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"
|
|
518
|
-
)
|
|
519
|
-
}
|
|
520
|
-
)
|
|
521
|
-
}
|
|
522
|
-
));
|
|
523
|
-
Ge.displayName = h.Root.displayName;
|
|
524
|
-
const xa = g.Root, Oe = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
|
|
525
|
-
g.List,
|
|
526
|
-
{
|
|
527
|
-
ref: t,
|
|
528
|
-
className: s(
|
|
529
|
-
"inline-flex h-9 items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground",
|
|
530
|
-
a
|
|
531
|
-
),
|
|
532
|
-
...e
|
|
533
|
-
}
|
|
534
|
-
));
|
|
535
|
-
Oe.displayName = g.List.displayName;
|
|
536
|
-
const Be = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
|
|
537
|
-
g.Trigger,
|
|
538
|
-
{
|
|
539
|
-
ref: t,
|
|
540
|
-
className: s(
|
|
541
|
-
"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",
|
|
542
|
-
a
|
|
543
|
-
),
|
|
544
|
-
...e
|
|
545
|
-
}
|
|
546
|
-
));
|
|
547
|
-
Be.displayName = g.Trigger.displayName;
|
|
548
|
-
const Ve = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
|
|
549
|
-
g.Content,
|
|
550
|
-
{
|
|
551
|
-
ref: t,
|
|
552
|
-
className: s(
|
|
553
|
-
"mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
|
|
554
|
-
a
|
|
555
|
-
),
|
|
556
|
-
...e
|
|
557
|
-
}
|
|
558
|
-
));
|
|
559
|
-
Ve.displayName = g.Content.displayName;
|
|
560
|
-
const Ee = r.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
|
|
561
|
-
"textarea",
|
|
562
|
-
{
|
|
563
|
-
className: s(
|
|
564
|
-
"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",
|
|
565
|
-
a
|
|
566
|
-
),
|
|
567
|
-
ref: t,
|
|
568
|
-
...e,
|
|
569
|
-
autoCapitalize: "off",
|
|
570
|
-
autoCorrect: "off",
|
|
571
|
-
spellCheck: "false"
|
|
572
|
-
}
|
|
573
|
-
));
|
|
574
|
-
Ee.displayName = "Textarea";
|
|
575
|
-
const ha = y.Portal, wa = y.Provider, va = y.Root, Ca = y.Trigger, qe = r.forwardRef(({ className: a, sideOffset: e = 4, ...t }, d) => /* @__PURE__ */ o(
|
|
576
|
-
y.Content,
|
|
577
|
-
{
|
|
578
|
-
ref: d,
|
|
579
|
-
sideOffset: e,
|
|
580
|
-
className: s(
|
|
581
|
-
"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",
|
|
582
|
-
a
|
|
583
|
-
),
|
|
584
|
-
...t
|
|
585
|
-
}
|
|
586
|
-
));
|
|
587
|
-
qe.displayName = y.Content.displayName;
|
|
588
|
-
export {
|
|
589
|
-
la as $,
|
|
590
|
-
aa as A,
|
|
591
|
-
K as B,
|
|
592
|
-
re as C,
|
|
593
|
-
be as D,
|
|
594
|
-
ye as E,
|
|
595
|
-
Ne as F,
|
|
596
|
-
xe as G,
|
|
597
|
-
we as H,
|
|
598
|
-
ve as I,
|
|
599
|
-
he as J,
|
|
600
|
-
ce as K,
|
|
601
|
-
ra as L,
|
|
602
|
-
I as M,
|
|
603
|
-
pe as N,
|
|
604
|
-
fe as O,
|
|
605
|
-
ue as P,
|
|
606
|
-
ge as Q,
|
|
607
|
-
na as R,
|
|
608
|
-
ya as S,
|
|
609
|
-
ia as T,
|
|
610
|
-
ke as U,
|
|
611
|
-
De as V,
|
|
612
|
-
Te as W,
|
|
613
|
-
Ae as X,
|
|
614
|
-
Ie as Y,
|
|
615
|
-
Se as Z,
|
|
616
|
-
Pe as _,
|
|
617
|
-
q as a,
|
|
618
|
-
ma as a0,
|
|
619
|
-
ca as a1,
|
|
620
|
-
Re as a2,
|
|
621
|
-
Ce as a3,
|
|
622
|
-
pa as a4,
|
|
623
|
-
fa as a5,
|
|
624
|
-
ua as a6,
|
|
625
|
-
ze as a7,
|
|
626
|
-
_e as a8,
|
|
627
|
-
je as a9,
|
|
628
|
-
ga as aa,
|
|
629
|
-
ba as ab,
|
|
630
|
-
He as ac,
|
|
631
|
-
Le as ad,
|
|
632
|
-
P as ae,
|
|
633
|
-
Fe as af,
|
|
634
|
-
Na as ag,
|
|
635
|
-
Ge as ah,
|
|
636
|
-
xa as ai,
|
|
637
|
-
Oe as aj,
|
|
638
|
-
Be as ak,
|
|
639
|
-
Ve as al,
|
|
640
|
-
Ee as am,
|
|
641
|
-
va as an,
|
|
642
|
-
Ca as ao,
|
|
643
|
-
qe as ap,
|
|
644
|
-
wa as aq,
|
|
645
|
-
ha as ar,
|
|
646
|
-
$ as b,
|
|
647
|
-
s as c,
|
|
648
|
-
J as d,
|
|
649
|
-
ta as e,
|
|
650
|
-
oa as f,
|
|
651
|
-
Q as g,
|
|
652
|
-
U as h,
|
|
653
|
-
W as i,
|
|
654
|
-
X as j,
|
|
655
|
-
Y as k,
|
|
656
|
-
Z as l,
|
|
657
|
-
ee as m,
|
|
658
|
-
ae as n,
|
|
659
|
-
oe as o,
|
|
660
|
-
te as p,
|
|
661
|
-
sa as q,
|
|
662
|
-
se as r,
|
|
663
|
-
v as s,
|
|
664
|
-
de as t,
|
|
665
|
-
me as u,
|
|
666
|
-
ne as v,
|
|
667
|
-
ie as w,
|
|
668
|
-
le as x,
|
|
669
|
-
S as y,
|
|
670
|
-
da as z
|
|
671
|
-
};
|