@chaibuilder/sdk 2.0.0-beta.100 → 2.0.0-beta.103
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-B2x4yruH.cjs → CodeEditor-BQTYQosF.cjs} +1 -1
- package/dist/{CodeEditor-VcQsGvTM.js → CodeEditor-DyWk02_x.js} +1 -1
- package/dist/{Topbar-DEw_kBMz.cjs → Topbar-BhwvnJJc.cjs} +1 -1
- package/dist/{Topbar-BQsjWb-A.js → Topbar-BuWEmzZG.js} +1 -1
- package/dist/context-menu-CeqJxblw.cjs +1 -0
- package/dist/{context-menu-D5ViOi6K.js → context-menu-iqXuo9Yt.js} +414 -338
- package/dist/core.cjs +4 -4
- package/dist/core.d.ts +10 -5
- package/dist/core.js +1593 -1370
- package/dist/ui.cjs +1 -1
- package/dist/ui.js +183 -250
- package/package.json +1 -1
- package/dist/context-menu-C4lLV8gP.cjs +0 -1
|
@@ -1,26 +1,27 @@
|
|
|
1
|
-
import { jsx as o, jsxs as
|
|
2
|
-
import * as
|
|
3
|
-
import * as
|
|
4
|
-
import * as
|
|
5
|
-
import { ChevronDownIcon as
|
|
6
|
-
import { cva as
|
|
7
|
-
import * as
|
|
8
|
-
import { Slot as
|
|
9
|
-
import * as f from "@radix-ui/react-dialog";
|
|
1
|
+
import { jsx as o, jsxs as c } from "react/jsx-runtime";
|
|
2
|
+
import * as k from "@radix-ui/react-switch";
|
|
3
|
+
import * as r from "react";
|
|
4
|
+
import * as b from "@radix-ui/react-accordion";
|
|
5
|
+
import { ChevronDownIcon as $, Cross2Icon as M, ChevronRightIcon as P, CheckIcon as z, DotFilledIcon as _, MagnifyingGlassIcon as J } from "@radix-ui/react-icons";
|
|
6
|
+
import { cva as C } from "class-variance-authority";
|
|
7
|
+
import * as m from "@radix-ui/react-alert-dialog";
|
|
8
|
+
import { Slot as K } from "@radix-ui/react-slot";
|
|
10
9
|
import * as O from "@radix-ui/react-label";
|
|
11
|
-
import * as
|
|
12
|
-
import * as
|
|
13
|
-
import * as
|
|
14
|
-
import * as
|
|
15
|
-
import * as
|
|
16
|
-
import * as
|
|
17
|
-
import * as
|
|
18
|
-
import * as
|
|
10
|
+
import * as g from "@radix-ui/react-scroll-area";
|
|
11
|
+
import * as x from "@radix-ui/react-tabs";
|
|
12
|
+
import * as y from "@radix-ui/react-tooltip";
|
|
13
|
+
import * as h from "@radix-ui/react-popover";
|
|
14
|
+
import * as R from "@radix-ui/react-hover-card";
|
|
15
|
+
import * as n from "@radix-ui/react-dropdown-menu";
|
|
16
|
+
import * as E from "@radix-ui/react-separator";
|
|
17
|
+
import * as u from "@radix-ui/react-toast";
|
|
18
|
+
import { Command as p } from "cmdk";
|
|
19
|
+
import * as f from "@radix-ui/react-dialog";
|
|
19
20
|
import * as i from "@radix-ui/react-context-menu";
|
|
20
|
-
import { clsx as
|
|
21
|
-
import { twMerge as
|
|
22
|
-
const s = (...e) =>
|
|
23
|
-
|
|
21
|
+
import { clsx as W } from "clsx";
|
|
22
|
+
import { twMerge as Z } from "tailwind-merge";
|
|
23
|
+
const s = (...e) => Z(W(e)), ee = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(
|
|
24
|
+
k.Root,
|
|
24
25
|
{
|
|
25
26
|
className: s(
|
|
26
27
|
"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",
|
|
@@ -29,7 +30,7 @@ const s = (...e) => J(Y(e)), K = n.forwardRef(({ className: e, ...t }, a) => /*
|
|
|
29
30
|
...t,
|
|
30
31
|
ref: a,
|
|
31
32
|
children: /* @__PURE__ */ o(
|
|
32
|
-
|
|
33
|
+
k.Thumb,
|
|
33
34
|
{
|
|
34
35
|
className: s(
|
|
35
36
|
"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"
|
|
@@ -38,8 +39,8 @@ const s = (...e) => J(Y(e)), K = n.forwardRef(({ className: e, ...t }, a) => /*
|
|
|
38
39
|
)
|
|
39
40
|
}
|
|
40
41
|
));
|
|
41
|
-
|
|
42
|
-
const
|
|
42
|
+
ee.displayName = k.Root.displayName;
|
|
43
|
+
const I = C(
|
|
43
44
|
"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",
|
|
44
45
|
{
|
|
45
46
|
variants: {
|
|
@@ -63,16 +64,16 @@ const A = w(
|
|
|
63
64
|
size: "default"
|
|
64
65
|
}
|
|
65
66
|
}
|
|
66
|
-
),
|
|
67
|
-
({ className: e, variant: t, size: a, asChild:
|
|
67
|
+
), te = r.forwardRef(
|
|
68
|
+
({ className: e, variant: t, size: a, asChild: d = !1, ...l }, T) => /* @__PURE__ */ o(d ? K : "button", { className: s(I({ variant: t, size: a, className: e })), ref: T, ...l })
|
|
68
69
|
);
|
|
69
|
-
|
|
70
|
-
const
|
|
71
|
-
|
|
72
|
-
const
|
|
73
|
-
|
|
70
|
+
te.displayName = "Button";
|
|
71
|
+
const Rt = b.Root, ae = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(b.Item, { ref: a, className: s("border-b", e), ...t }));
|
|
72
|
+
ae.displayName = "AccordionItem";
|
|
73
|
+
const oe = r.forwardRef(({ className: e, children: t, ...a }, d) => /* @__PURE__ */ o(b.Header, { className: "flex", children: /* @__PURE__ */ c(
|
|
74
|
+
b.Trigger,
|
|
74
75
|
{
|
|
75
|
-
ref:
|
|
76
|
+
ref: d,
|
|
76
77
|
className: s(
|
|
77
78
|
"flex flex-1 items-center justify-between py-4 text-sm font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180",
|
|
78
79
|
e
|
|
@@ -80,15 +81,15 @@ const $ = n.forwardRef(({ className: e, children: t, ...a }, r) => /* @__PURE__
|
|
|
80
81
|
...a,
|
|
81
82
|
children: [
|
|
82
83
|
t,
|
|
83
|
-
a.hideArrow ? null : /* @__PURE__ */ o(
|
|
84
|
+
a.hideArrow ? null : /* @__PURE__ */ o($, { className: "h-4 w-4 shrink-0 text-muted-foreground transition-transform duration-200" })
|
|
84
85
|
]
|
|
85
86
|
}
|
|
86
87
|
) }));
|
|
87
|
-
|
|
88
|
-
const
|
|
89
|
-
|
|
88
|
+
oe.displayName = b.Trigger.displayName;
|
|
89
|
+
const se = r.forwardRef(({ className: e, children: t, ...a }, d) => /* @__PURE__ */ o(
|
|
90
|
+
b.Content,
|
|
90
91
|
{
|
|
91
|
-
ref:
|
|
92
|
+
ref: d,
|
|
92
93
|
className: s(
|
|
93
94
|
"text-sm data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",
|
|
94
95
|
e
|
|
@@ -97,8 +98,8 @@ const ee = n.forwardRef(({ className: e, children: t, ...a }, r) => /* @__PURE__
|
|
|
97
98
|
children: /* @__PURE__ */ o("div", { className: "pb-4 pt-0", children: t })
|
|
98
99
|
}
|
|
99
100
|
));
|
|
100
|
-
|
|
101
|
-
const
|
|
101
|
+
se.displayName = b.Content.displayName;
|
|
102
|
+
const re = C(
|
|
102
103
|
"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",
|
|
103
104
|
{
|
|
104
105
|
variants: {
|
|
@@ -113,10 +114,10 @@ const te = w(
|
|
|
113
114
|
variant: "default"
|
|
114
115
|
}
|
|
115
116
|
}
|
|
116
|
-
),
|
|
117
|
-
|
|
118
|
-
const
|
|
119
|
-
|
|
117
|
+
), Tt = ({ className: e, variant: t, ...a }) => /* @__PURE__ */ o("div", { className: s(re({ variant: t }), e), ...a }), St = m.Root, Dt = m.Trigger, L = ({ className: e, ...t }) => /* @__PURE__ */ o(m.Portal, { className: s(e), ...t });
|
|
118
|
+
L.displayName = m.Portal.displayName;
|
|
119
|
+
const j = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(
|
|
120
|
+
m.Overlay,
|
|
120
121
|
{
|
|
121
122
|
className: s(
|
|
122
123
|
"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",
|
|
@@ -126,11 +127,11 @@ const L = n.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(
|
|
|
126
127
|
ref: a
|
|
127
128
|
}
|
|
128
129
|
));
|
|
129
|
-
|
|
130
|
-
const
|
|
131
|
-
/* @__PURE__ */ o(
|
|
130
|
+
j.displayName = m.Overlay.displayName;
|
|
131
|
+
const de = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ c(L, { children: [
|
|
132
|
+
/* @__PURE__ */ o(j, {}),
|
|
132
133
|
/* @__PURE__ */ o(
|
|
133
|
-
|
|
134
|
+
m.Content,
|
|
134
135
|
{
|
|
135
136
|
ref: a,
|
|
136
137
|
className: s(
|
|
@@ -141,29 +142,29 @@ const ae = n.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ m(V, { ch
|
|
|
141
142
|
}
|
|
142
143
|
)
|
|
143
144
|
] }));
|
|
144
|
-
|
|
145
|
-
const
|
|
146
|
-
|
|
147
|
-
const
|
|
148
|
-
|
|
149
|
-
const
|
|
150
|
-
|
|
151
|
-
const
|
|
152
|
-
|
|
153
|
-
const
|
|
154
|
-
|
|
155
|
-
const
|
|
156
|
-
|
|
145
|
+
de.displayName = m.Content.displayName;
|
|
146
|
+
const ne = ({ className: e, ...t }) => /* @__PURE__ */ o("div", { className: s("flex flex-col space-y-2 text-center sm:text-left", e), ...t });
|
|
147
|
+
ne.displayName = "AlertDialogHeader";
|
|
148
|
+
const ie = ({ className: e, ...t }) => /* @__PURE__ */ o("div", { className: s("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", e), ...t });
|
|
149
|
+
ie.displayName = "AlertDialogFooter";
|
|
150
|
+
const le = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(m.Title, { ref: a, className: s("text-lg font-semibold", e), ...t }));
|
|
151
|
+
le.displayName = m.Title.displayName;
|
|
152
|
+
const ce = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(m.Description, { ref: a, className: s("text-sm text-muted-foreground", e), ...t }));
|
|
153
|
+
ce.displayName = m.Description.displayName;
|
|
154
|
+
const me = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(m.Action, { ref: a, className: s(I(), e), ...t }));
|
|
155
|
+
me.displayName = m.Action.displayName;
|
|
156
|
+
const pe = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(
|
|
157
|
+
m.Cancel,
|
|
157
158
|
{
|
|
158
159
|
ref: a,
|
|
159
|
-
className: s(
|
|
160
|
+
className: s(I({ variant: "outline" }), "mt-2 sm:mt-0", e),
|
|
160
161
|
...t
|
|
161
162
|
}
|
|
162
163
|
));
|
|
163
|
-
|
|
164
|
-
const
|
|
165
|
-
|
|
166
|
-
const
|
|
164
|
+
pe.displayName = m.Cancel.displayName;
|
|
165
|
+
const fe = f.Root, kt = f.Trigger, V = ({ className: e, ...t }) => /* @__PURE__ */ o(f.Portal, { className: s(e), ...t });
|
|
166
|
+
V.displayName = f.Portal.displayName;
|
|
167
|
+
const G = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(
|
|
167
168
|
f.Overlay,
|
|
168
169
|
{
|
|
169
170
|
ref: a,
|
|
@@ -174,13 +175,13 @@ const _ = n.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(
|
|
|
174
175
|
...t
|
|
175
176
|
}
|
|
176
177
|
));
|
|
177
|
-
|
|
178
|
-
const
|
|
179
|
-
/* @__PURE__ */ o(
|
|
180
|
-
/* @__PURE__ */
|
|
178
|
+
G.displayName = f.Overlay.displayName;
|
|
179
|
+
const H = r.forwardRef(({ className: e, children: t, ...a }, d) => /* @__PURE__ */ c(V, { children: [
|
|
180
|
+
/* @__PURE__ */ o(G, {}),
|
|
181
|
+
/* @__PURE__ */ c(
|
|
181
182
|
f.Content,
|
|
182
183
|
{
|
|
183
|
-
ref:
|
|
184
|
+
ref: d,
|
|
184
185
|
className: s(
|
|
185
186
|
"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",
|
|
186
187
|
e
|
|
@@ -188,20 +189,20 @@ const le = n.forwardRef(({ className: e, children: t, ...a }, r) => /* @__PURE__
|
|
|
188
189
|
...a,
|
|
189
190
|
children: [
|
|
190
191
|
t,
|
|
191
|
-
/* @__PURE__ */
|
|
192
|
-
/* @__PURE__ */ o(
|
|
192
|
+
/* @__PURE__ */ c(f.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: [
|
|
193
|
+
/* @__PURE__ */ o(M, { className: "h-4 w-4" }),
|
|
193
194
|
/* @__PURE__ */ o("span", { className: "sr-only", children: "Close" })
|
|
194
195
|
] })
|
|
195
196
|
]
|
|
196
197
|
}
|
|
197
198
|
)
|
|
198
199
|
] }));
|
|
199
|
-
|
|
200
|
-
const
|
|
201
|
-
|
|
202
|
-
const
|
|
203
|
-
|
|
204
|
-
const
|
|
200
|
+
H.displayName = f.Content.displayName;
|
|
201
|
+
const ue = ({ className: e, ...t }) => /* @__PURE__ */ o("div", { className: s("flex flex-col space-y-1.5 text-center sm:text-left", e), ...t });
|
|
202
|
+
ue.displayName = "DialogHeader";
|
|
203
|
+
const ge = ({ className: e, ...t }) => /* @__PURE__ */ o("div", { className: s("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", e), ...t });
|
|
204
|
+
ge.displayName = "DialogFooter";
|
|
205
|
+
const be = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(
|
|
205
206
|
f.Title,
|
|
206
207
|
{
|
|
207
208
|
ref: a,
|
|
@@ -209,32 +210,32 @@ const fe = n.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(
|
|
|
209
210
|
...t
|
|
210
211
|
}
|
|
211
212
|
));
|
|
212
|
-
|
|
213
|
-
const
|
|
214
|
-
|
|
215
|
-
const
|
|
216
|
-
|
|
217
|
-
const
|
|
213
|
+
be.displayName = f.Title.displayName;
|
|
214
|
+
const xe = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(f.Description, { ref: a, className: s("text-sm text-muted-foreground", e), ...t }));
|
|
215
|
+
xe.displayName = f.Description.displayName;
|
|
216
|
+
const ye = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o("div", { ref: a, className: s("rounded-xl border bg-card text-card-foreground shadow", e), ...t }));
|
|
217
|
+
ye.displayName = "Card";
|
|
218
|
+
const Ne = r.forwardRef(
|
|
218
219
|
({ className: e, ...t }, a) => /* @__PURE__ */ o("div", { ref: a, className: s("flex flex-col space-y-1.5 p-6", e), ...t })
|
|
219
220
|
);
|
|
220
|
-
|
|
221
|
-
const
|
|
221
|
+
Ne.displayName = "CardHeader";
|
|
222
|
+
const he = r.forwardRef(
|
|
222
223
|
({ className: e, ...t }, a) => /* @__PURE__ */ o("h3", { ref: a, className: s("font-semibold leading-none tracking-tight", e), ...t })
|
|
223
224
|
);
|
|
224
|
-
|
|
225
|
-
const
|
|
225
|
+
he.displayName = "CardTitle";
|
|
226
|
+
const ve = r.forwardRef(
|
|
226
227
|
({ className: e, ...t }, a) => /* @__PURE__ */ o("p", { ref: a, className: s("text-sm text-muted-foreground", e), ...t })
|
|
227
228
|
);
|
|
228
|
-
|
|
229
|
-
const
|
|
229
|
+
ve.displayName = "CardDescription";
|
|
230
|
+
const we = r.forwardRef(
|
|
230
231
|
({ className: e, ...t }, a) => /* @__PURE__ */ o("div", { ref: a, className: s("p-6 pt-0", e), ...t })
|
|
231
232
|
);
|
|
232
|
-
|
|
233
|
-
const
|
|
233
|
+
we.displayName = "CardContent";
|
|
234
|
+
const Ce = r.forwardRef(
|
|
234
235
|
({ className: e, ...t }, a) => /* @__PURE__ */ o("div", { ref: a, className: s(" flex items-center p-6 pt-0", e), ...t })
|
|
235
236
|
);
|
|
236
|
-
|
|
237
|
-
const
|
|
237
|
+
Ce.displayName = "CardFooter";
|
|
238
|
+
const Re = r.forwardRef(({ className: e, type: t, ...a }, d) => /* @__PURE__ */ o(
|
|
238
239
|
"input",
|
|
239
240
|
{
|
|
240
241
|
type: t,
|
|
@@ -242,17 +243,17 @@ const ve = n.forwardRef(({ className: e, type: t, ...a }, r) => /* @__PURE__ */
|
|
|
242
243
|
"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",
|
|
243
244
|
e
|
|
244
245
|
),
|
|
245
|
-
ref:
|
|
246
|
+
ref: d,
|
|
246
247
|
...a,
|
|
247
248
|
autoCapitalize: "off",
|
|
248
249
|
autoCorrect: "off",
|
|
249
250
|
spellCheck: "false"
|
|
250
251
|
}
|
|
251
252
|
));
|
|
252
|
-
|
|
253
|
-
const
|
|
254
|
-
|
|
255
|
-
const
|
|
253
|
+
Re.displayName = "Input";
|
|
254
|
+
const Te = C("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"), Se = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(O.Root, { ref: a, className: s(Te(), e), ...t }));
|
|
255
|
+
Se.displayName = O.Root.displayName;
|
|
256
|
+
const De = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(
|
|
256
257
|
"textarea",
|
|
257
258
|
{
|
|
258
259
|
className: s(
|
|
@@ -266,17 +267,17 @@ const Ce = n.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(
|
|
|
266
267
|
spellCheck: "false"
|
|
267
268
|
}
|
|
268
269
|
));
|
|
269
|
-
|
|
270
|
-
const
|
|
271
|
-
/* @__PURE__ */ o(
|
|
272
|
-
/* @__PURE__ */ o(
|
|
273
|
-
/* @__PURE__ */ o(
|
|
270
|
+
De.displayName = "Textarea";
|
|
271
|
+
const ke = r.forwardRef(({ className: e, children: t, ...a }, d) => /* @__PURE__ */ c(g.Root, { ref: d, className: s("relative overflow-hidden", e), ...a, children: [
|
|
272
|
+
/* @__PURE__ */ o(g.Viewport, { className: "h-full w-full rounded-[inherit]", children: t }),
|
|
273
|
+
/* @__PURE__ */ o(F, {}),
|
|
274
|
+
/* @__PURE__ */ o(g.Corner, {})
|
|
274
275
|
] }));
|
|
275
|
-
|
|
276
|
-
const
|
|
277
|
-
|
|
276
|
+
ke.displayName = g.Root.displayName;
|
|
277
|
+
const F = r.forwardRef(({ className: e, orientation: t = "vertical", ...a }, d) => /* @__PURE__ */ o(
|
|
278
|
+
g.ScrollAreaScrollbar,
|
|
278
279
|
{
|
|
279
|
-
ref:
|
|
280
|
+
ref: d,
|
|
280
281
|
orientation: t,
|
|
281
282
|
className: s(
|
|
282
283
|
"flex touch-none select-none transition-colors",
|
|
@@ -285,12 +286,12 @@ const H = n.forwardRef(({ className: e, orientation: t = "vertical", ...a }, r)
|
|
|
285
286
|
e
|
|
286
287
|
),
|
|
287
288
|
...a,
|
|
288
|
-
children: /* @__PURE__ */ o(
|
|
289
|
+
children: /* @__PURE__ */ o(g.ScrollAreaThumb, { className: "relative flex-1 rounded-full bg-border" })
|
|
289
290
|
}
|
|
290
291
|
));
|
|
291
|
-
|
|
292
|
-
const
|
|
293
|
-
|
|
292
|
+
F.displayName = g.ScrollAreaScrollbar.displayName;
|
|
293
|
+
const It = x.Root, Ie = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(
|
|
294
|
+
x.List,
|
|
294
295
|
{
|
|
295
296
|
ref: a,
|
|
296
297
|
className: s(
|
|
@@ -300,9 +301,9 @@ const yt = b.Root, Te = n.forwardRef(({ className: e, ...t }, a) => /* @__PURE__
|
|
|
300
301
|
...t
|
|
301
302
|
}
|
|
302
303
|
));
|
|
303
|
-
|
|
304
|
-
const
|
|
305
|
-
|
|
304
|
+
Ie.displayName = x.List.displayName;
|
|
305
|
+
const Ae = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(
|
|
306
|
+
x.Trigger,
|
|
306
307
|
{
|
|
307
308
|
ref: a,
|
|
308
309
|
className: s(
|
|
@@ -312,9 +313,9 @@ const De = n.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(
|
|
|
312
313
|
...t
|
|
313
314
|
}
|
|
314
315
|
));
|
|
315
|
-
|
|
316
|
-
const
|
|
317
|
-
|
|
316
|
+
Ae.displayName = x.Trigger.displayName;
|
|
317
|
+
const Me = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(
|
|
318
|
+
x.Content,
|
|
318
319
|
{
|
|
319
320
|
ref: a,
|
|
320
321
|
className: s(
|
|
@@ -324,11 +325,11 @@ const Se = n.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(
|
|
|
324
325
|
...t
|
|
325
326
|
}
|
|
326
327
|
));
|
|
327
|
-
|
|
328
|
-
const
|
|
329
|
-
|
|
328
|
+
Me.displayName = x.Content.displayName;
|
|
329
|
+
const At = y.Portal, Mt = y.Provider, Pt = y.Root, zt = y.Trigger, Pe = r.forwardRef(({ className: e, sideOffset: t = 4, ...a }, d) => /* @__PURE__ */ o(
|
|
330
|
+
y.Content,
|
|
330
331
|
{
|
|
331
|
-
ref:
|
|
332
|
+
ref: d,
|
|
332
333
|
sideOffset: t,
|
|
333
334
|
className: s(
|
|
334
335
|
"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",
|
|
@@ -337,9 +338,9 @@ const Nt = x.Portal, vt = x.Provider, ht = x.Root, wt = x.Trigger, Ae = n.forwar
|
|
|
337
338
|
...a
|
|
338
339
|
}
|
|
339
340
|
));
|
|
340
|
-
|
|
341
|
-
const
|
|
342
|
-
|
|
341
|
+
Pe.displayName = y.Content.displayName;
|
|
342
|
+
const _t = h.Root, Ot = h.Trigger, ze = r.forwardRef(({ className: e, align: t = "center", sideOffset: a = 4, ...d }, l) => /* @__PURE__ */ o(h.Portal, { children: /* @__PURE__ */ o(
|
|
343
|
+
h.Content,
|
|
343
344
|
{
|
|
344
345
|
ref: l,
|
|
345
346
|
align: t,
|
|
@@ -348,12 +349,12 @@ const Ct = N.Root, Rt = N.Trigger, Ie = n.forwardRef(({ className: e, align: t =
|
|
|
348
349
|
"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",
|
|
349
350
|
e
|
|
350
351
|
),
|
|
351
|
-
...
|
|
352
|
+
...d
|
|
352
353
|
}
|
|
353
354
|
) }));
|
|
354
|
-
|
|
355
|
-
const
|
|
356
|
-
|
|
355
|
+
ze.displayName = h.Content.displayName;
|
|
356
|
+
const Et = R.Root, Lt = R.Trigger, _e = r.forwardRef(({ className: e, align: t = "center", sideOffset: a = 4, ...d }, l) => /* @__PURE__ */ o(
|
|
357
|
+
R.Content,
|
|
357
358
|
{
|
|
358
359
|
ref: l,
|
|
359
360
|
align: t,
|
|
@@ -362,12 +363,12 @@ const Tt = C.Root, Dt = C.Trigger, ke = n.forwardRef(({ className: e, align: t =
|
|
|
362
363
|
"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",
|
|
363
364
|
e
|
|
364
365
|
),
|
|
365
|
-
...
|
|
366
|
+
...d
|
|
366
367
|
}
|
|
367
368
|
));
|
|
368
|
-
|
|
369
|
-
const
|
|
370
|
-
|
|
369
|
+
_e.displayName = R.Content.displayName;
|
|
370
|
+
const jt = n.Root, Vt = n.Trigger, Gt = n.Group, Ht = n.Portal, Ft = n.Sub, Bt = n.RadioGroup, Oe = r.forwardRef(({ className: e, inset: t, children: a, ...d }, l) => /* @__PURE__ */ c(
|
|
371
|
+
n.SubTrigger,
|
|
371
372
|
{
|
|
372
373
|
ref: l,
|
|
373
374
|
className: s(
|
|
@@ -375,16 +376,16 @@ const St = d.Root, At = d.Trigger, It = d.Group, kt = d.Portal, Mt = d.Sub, Pt =
|
|
|
375
376
|
t && "pl-8",
|
|
376
377
|
e
|
|
377
378
|
),
|
|
378
|
-
...
|
|
379
|
+
...d,
|
|
379
380
|
children: [
|
|
380
381
|
a,
|
|
381
|
-
/* @__PURE__ */ o(
|
|
382
|
+
/* @__PURE__ */ o(P, { className: "ml-auto h-4 w-4" })
|
|
382
383
|
]
|
|
383
384
|
}
|
|
384
385
|
));
|
|
385
|
-
|
|
386
|
-
const
|
|
387
|
-
|
|
386
|
+
Oe.displayName = n.SubTrigger.displayName;
|
|
387
|
+
const Ee = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(
|
|
388
|
+
n.SubContent,
|
|
388
389
|
{
|
|
389
390
|
ref: a,
|
|
390
391
|
className: s(
|
|
@@ -394,11 +395,11 @@ const Pe = n.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(
|
|
|
394
395
|
...t
|
|
395
396
|
}
|
|
396
397
|
));
|
|
397
|
-
|
|
398
|
-
const
|
|
399
|
-
|
|
398
|
+
Ee.displayName = n.SubContent.displayName;
|
|
399
|
+
const Le = r.forwardRef(({ className: e, sideOffset: t = 4, ...a }, d) => /* @__PURE__ */ o(n.Portal, { children: /* @__PURE__ */ o(
|
|
400
|
+
n.Content,
|
|
400
401
|
{
|
|
401
|
-
ref:
|
|
402
|
+
ref: d,
|
|
402
403
|
sideOffset: t,
|
|
403
404
|
className: s(
|
|
404
405
|
"z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md",
|
|
@@ -408,11 +409,11 @@ const ze = n.forwardRef(({ className: e, sideOffset: t = 4, ...a }, r) => /* @__
|
|
|
408
409
|
...a
|
|
409
410
|
}
|
|
410
411
|
) }));
|
|
411
|
-
|
|
412
|
-
const
|
|
413
|
-
|
|
412
|
+
Le.displayName = n.Content.displayName;
|
|
413
|
+
const je = r.forwardRef(({ className: e, inset: t, ...a }, d) => /* @__PURE__ */ o(
|
|
414
|
+
n.Item,
|
|
414
415
|
{
|
|
415
|
-
ref:
|
|
416
|
+
ref: d,
|
|
416
417
|
className: s(
|
|
417
418
|
"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",
|
|
418
419
|
t && "pl-8",
|
|
@@ -421,9 +422,9 @@ const Oe = n.forwardRef(({ className: e, inset: t, ...a }, r) => /* @__PURE__ */
|
|
|
421
422
|
...a
|
|
422
423
|
}
|
|
423
424
|
));
|
|
424
|
-
|
|
425
|
-
const
|
|
426
|
-
|
|
425
|
+
je.displayName = n.Item.displayName;
|
|
426
|
+
const Ve = r.forwardRef(({ className: e, children: t, checked: a, ...d }, l) => /* @__PURE__ */ c(
|
|
427
|
+
n.CheckboxItem,
|
|
427
428
|
{
|
|
428
429
|
ref: l,
|
|
429
430
|
className: s(
|
|
@@ -431,75 +432,75 @@ const je = n.forwardRef(({ className: e, children: t, checked: a, ...r }, l) =>
|
|
|
431
432
|
e
|
|
432
433
|
),
|
|
433
434
|
checked: a,
|
|
434
|
-
...
|
|
435
|
+
...d,
|
|
435
436
|
children: [
|
|
436
|
-
/* @__PURE__ */ o("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ o(
|
|
437
|
+
/* @__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(z, { className: "h-4 w-4" }) }) }),
|
|
437
438
|
t
|
|
438
439
|
]
|
|
439
440
|
}
|
|
440
441
|
));
|
|
441
|
-
|
|
442
|
-
const
|
|
443
|
-
|
|
442
|
+
Ve.displayName = n.CheckboxItem.displayName;
|
|
443
|
+
const Ge = r.forwardRef(({ className: e, children: t, ...a }, d) => /* @__PURE__ */ c(
|
|
444
|
+
n.RadioItem,
|
|
444
445
|
{
|
|
445
|
-
ref:
|
|
446
|
+
ref: d,
|
|
446
447
|
className: s(
|
|
447
448
|
"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",
|
|
448
449
|
e
|
|
449
450
|
),
|
|
450
451
|
...a,
|
|
451
452
|
children: [
|
|
452
|
-
/* @__PURE__ */ o("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ o(
|
|
453
|
+
/* @__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(_, { className: "h-4 w-4 fill-current" }) }) }),
|
|
453
454
|
t
|
|
454
455
|
]
|
|
455
456
|
}
|
|
456
457
|
));
|
|
457
|
-
|
|
458
|
-
const
|
|
459
|
-
|
|
458
|
+
Ge.displayName = n.RadioItem.displayName;
|
|
459
|
+
const He = r.forwardRef(({ className: e, inset: t, ...a }, d) => /* @__PURE__ */ o(
|
|
460
|
+
n.Label,
|
|
460
461
|
{
|
|
461
|
-
ref:
|
|
462
|
+
ref: d,
|
|
462
463
|
className: s("px-2 py-1.5 text-sm font-semibold", t && "pl-8", e),
|
|
463
464
|
...a
|
|
464
465
|
}
|
|
465
466
|
));
|
|
466
|
-
|
|
467
|
-
const
|
|
468
|
-
|
|
469
|
-
const
|
|
470
|
-
|
|
471
|
-
const
|
|
472
|
-
|
|
467
|
+
He.displayName = n.Label.displayName;
|
|
468
|
+
const Fe = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(n.Separator, { ref: a, className: s("-mx-1 my-1 h-px bg-muted", e), ...t }));
|
|
469
|
+
Fe.displayName = n.Separator.displayName;
|
|
470
|
+
const Be = ({ className: e, ...t }) => /* @__PURE__ */ o("span", { className: s("ml-auto text-xs tracking-widest opacity-60", e), ...t });
|
|
471
|
+
Be.displayName = "DropdownMenuShortcut";
|
|
472
|
+
const Ue = r.forwardRef(({ className: e, orientation: t = "horizontal", decorative: a = !0, ...d }, l) => /* @__PURE__ */ o(
|
|
473
|
+
E.Root,
|
|
473
474
|
{
|
|
474
475
|
ref: l,
|
|
475
476
|
decorative: a,
|
|
476
477
|
orientation: t,
|
|
477
478
|
className: s("shrink-0 bg-border", t === "horizontal" ? "h-[1px] w-full" : "h-full w-[1px]", e),
|
|
478
|
-
...
|
|
479
|
+
...d
|
|
479
480
|
}
|
|
480
481
|
));
|
|
481
|
-
|
|
482
|
-
const
|
|
483
|
-
let
|
|
484
|
-
function
|
|
485
|
-
return
|
|
482
|
+
Ue.displayName = E.Root.displayName;
|
|
483
|
+
const qe = 1, Qe = 1e6;
|
|
484
|
+
let S = 0;
|
|
485
|
+
function Xe() {
|
|
486
|
+
return S = (S + 1) % Number.MAX_VALUE, S.toString();
|
|
486
487
|
}
|
|
487
|
-
const D = /* @__PURE__ */ new Map(),
|
|
488
|
+
const D = /* @__PURE__ */ new Map(), A = (e) => {
|
|
488
489
|
if (D.has(e))
|
|
489
490
|
return;
|
|
490
491
|
const t = setTimeout(() => {
|
|
491
|
-
D.delete(e),
|
|
492
|
+
D.delete(e), N({
|
|
492
493
|
type: "REMOVE_TOAST",
|
|
493
494
|
toastId: e
|
|
494
495
|
});
|
|
495
|
-
},
|
|
496
|
+
}, Qe);
|
|
496
497
|
D.set(e, t);
|
|
497
|
-
},
|
|
498
|
+
}, Ye = (e, t) => {
|
|
498
499
|
switch (t.type) {
|
|
499
500
|
case "ADD_TOAST":
|
|
500
501
|
return {
|
|
501
502
|
...e,
|
|
502
|
-
toasts: [t.toast, ...e.toasts].slice(0,
|
|
503
|
+
toasts: [t.toast, ...e.toasts].slice(0, qe)
|
|
503
504
|
};
|
|
504
505
|
case "UPDATE_TOAST":
|
|
505
506
|
return {
|
|
@@ -508,15 +509,15 @@ const D = /* @__PURE__ */ new Map(), I = (e) => {
|
|
|
508
509
|
};
|
|
509
510
|
case "DISMISS_TOAST": {
|
|
510
511
|
const { toastId: a } = t;
|
|
511
|
-
return a ?
|
|
512
|
-
|
|
512
|
+
return a ? A(a) : e.toasts.forEach((d) => {
|
|
513
|
+
A(d.id);
|
|
513
514
|
}), {
|
|
514
515
|
...e,
|
|
515
516
|
toasts: e.toasts.map(
|
|
516
|
-
(
|
|
517
|
-
...
|
|
517
|
+
(d) => d.id === a || a === void 0 ? {
|
|
518
|
+
...d,
|
|
518
519
|
open: !1
|
|
519
|
-
} :
|
|
520
|
+
} : d
|
|
520
521
|
)
|
|
521
522
|
};
|
|
522
523
|
}
|
|
@@ -530,46 +531,46 @@ const D = /* @__PURE__ */ new Map(), I = (e) => {
|
|
|
530
531
|
};
|
|
531
532
|
}
|
|
532
533
|
}, v = [];
|
|
533
|
-
let
|
|
534
|
-
function
|
|
535
|
-
|
|
536
|
-
t(
|
|
534
|
+
let w = { toasts: [] };
|
|
535
|
+
function N(e) {
|
|
536
|
+
w = Ye(w, e), v.forEach((t) => {
|
|
537
|
+
t(w);
|
|
537
538
|
});
|
|
538
539
|
}
|
|
539
|
-
function
|
|
540
|
-
const t =
|
|
540
|
+
function $e({ ...e }) {
|
|
541
|
+
const t = Xe(), a = (l) => N({
|
|
541
542
|
type: "UPDATE_TOAST",
|
|
542
543
|
toast: { ...l, id: t }
|
|
543
|
-
}),
|
|
544
|
-
return
|
|
544
|
+
}), d = () => N({ type: "DISMISS_TOAST", toastId: t });
|
|
545
|
+
return N({
|
|
545
546
|
type: "ADD_TOAST",
|
|
546
547
|
toast: {
|
|
547
548
|
...e,
|
|
548
549
|
id: t,
|
|
549
550
|
open: !0,
|
|
550
551
|
onOpenChange: (l) => {
|
|
551
|
-
l ||
|
|
552
|
+
l || d();
|
|
552
553
|
}
|
|
553
554
|
}
|
|
554
555
|
}), {
|
|
555
556
|
id: t,
|
|
556
|
-
dismiss:
|
|
557
|
+
dismiss: d,
|
|
557
558
|
update: a
|
|
558
559
|
};
|
|
559
560
|
}
|
|
560
|
-
function
|
|
561
|
-
const [e, t] =
|
|
562
|
-
return
|
|
561
|
+
function Je() {
|
|
562
|
+
const [e, t] = r.useState(w);
|
|
563
|
+
return r.useEffect(() => (v.push(t), () => {
|
|
563
564
|
const a = v.indexOf(t);
|
|
564
565
|
a > -1 && v.splice(a, 1);
|
|
565
566
|
}), [e]), {
|
|
566
567
|
...e,
|
|
567
|
-
toast:
|
|
568
|
-
dismiss: (a) =>
|
|
568
|
+
toast: $e,
|
|
569
|
+
dismiss: (a) => N({ type: "DISMISS_TOAST", toastId: a })
|
|
569
570
|
};
|
|
570
571
|
}
|
|
571
|
-
const
|
|
572
|
-
|
|
572
|
+
const Ke = u.Provider, B = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(
|
|
573
|
+
u.Viewport,
|
|
573
574
|
{
|
|
574
575
|
ref: a,
|
|
575
576
|
className: s(
|
|
@@ -579,8 +580,8 @@ const Xe = p.Provider, G = n.forwardRef(({ className: e, ...t }, a) => /* @__PUR
|
|
|
579
580
|
...t
|
|
580
581
|
}
|
|
581
582
|
));
|
|
582
|
-
|
|
583
|
-
const
|
|
583
|
+
B.displayName = u.Viewport.displayName;
|
|
584
|
+
const We = C(
|
|
584
585
|
"group pointer-events-auto relative flex w-full items-center justify-between space-x-2 overflow-hidden rounded-md border p-4 pr-6 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",
|
|
585
586
|
{
|
|
586
587
|
variants: {
|
|
@@ -593,10 +594,10 @@ const Ye = w(
|
|
|
593
594
|
variant: "default"
|
|
594
595
|
}
|
|
595
596
|
}
|
|
596
|
-
),
|
|
597
|
-
|
|
598
|
-
const
|
|
599
|
-
|
|
597
|
+
), U = r.forwardRef(({ className: e, variant: t, ...a }, d) => /* @__PURE__ */ o(u.Root, { ref: d, className: s(We({ variant: t }), e), ...a }));
|
|
598
|
+
U.displayName = u.Root.displayName;
|
|
599
|
+
const Ze = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(
|
|
600
|
+
u.Action,
|
|
600
601
|
{
|
|
601
602
|
ref: a,
|
|
602
603
|
className: s(
|
|
@@ -606,9 +607,9 @@ const Je = n.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(
|
|
|
606
607
|
...t
|
|
607
608
|
}
|
|
608
609
|
));
|
|
609
|
-
|
|
610
|
-
const
|
|
611
|
-
|
|
610
|
+
Ze.displayName = u.Action.displayName;
|
|
611
|
+
const q = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(
|
|
612
|
+
u.Close,
|
|
612
613
|
{
|
|
613
614
|
ref: a,
|
|
614
615
|
className: s(
|
|
@@ -617,29 +618,95 @@ const B = n.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(
|
|
|
617
618
|
),
|
|
618
619
|
"toast-close": "",
|
|
619
620
|
...t,
|
|
620
|
-
children: /* @__PURE__ */ o(
|
|
621
|
-
}
|
|
622
|
-
));
|
|
623
|
-
|
|
624
|
-
const
|
|
625
|
-
|
|
626
|
-
const
|
|
627
|
-
|
|
628
|
-
function
|
|
629
|
-
const { toasts: e } =
|
|
630
|
-
return /* @__PURE__ */
|
|
631
|
-
e.map(({ id: t, title: a, description:
|
|
632
|
-
/* @__PURE__ */
|
|
633
|
-
a && /* @__PURE__ */ o(
|
|
634
|
-
|
|
621
|
+
children: /* @__PURE__ */ o(M, { className: "h-4 w-4" })
|
|
622
|
+
}
|
|
623
|
+
));
|
|
624
|
+
q.displayName = u.Close.displayName;
|
|
625
|
+
const Q = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(u.Title, { ref: a, className: s("text-sm font-semibold [&+div]:text-xs", e), ...t }));
|
|
626
|
+
Q.displayName = u.Title.displayName;
|
|
627
|
+
const X = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(u.Description, { ref: a, className: s("text-sm opacity-90", e), ...t }));
|
|
628
|
+
X.displayName = u.Description.displayName;
|
|
629
|
+
function Ut() {
|
|
630
|
+
const { toasts: e } = Je();
|
|
631
|
+
return /* @__PURE__ */ c(Ke, { children: [
|
|
632
|
+
e.map(({ id: t, title: a, description: d, action: l, ...T }) => /* @__PURE__ */ c(U, { ...T, children: [
|
|
633
|
+
/* @__PURE__ */ c("div", { className: "grid gap-1", children: [
|
|
634
|
+
a && /* @__PURE__ */ o(Q, { children: a }),
|
|
635
|
+
d && /* @__PURE__ */ o(X, { children: d })
|
|
635
636
|
] }),
|
|
636
637
|
l,
|
|
637
|
-
/* @__PURE__ */ o(
|
|
638
|
+
/* @__PURE__ */ o(q, {})
|
|
638
639
|
] }, t)),
|
|
639
|
-
/* @__PURE__ */ o(
|
|
640
|
+
/* @__PURE__ */ o(B, {})
|
|
640
641
|
] });
|
|
641
642
|
}
|
|
642
|
-
const
|
|
643
|
+
const qt = ({ className: e, ...t }) => /* @__PURE__ */ o("div", { className: s("animate-pulse rounded-md bg-primary/10", e), ...t }), Y = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(
|
|
644
|
+
p,
|
|
645
|
+
{
|
|
646
|
+
ref: a,
|
|
647
|
+
className: s(
|
|
648
|
+
"flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",
|
|
649
|
+
e
|
|
650
|
+
),
|
|
651
|
+
...t
|
|
652
|
+
}
|
|
653
|
+
));
|
|
654
|
+
Y.displayName = p.displayName;
|
|
655
|
+
const Qt = ({ children: e, ...t }) => /* @__PURE__ */ o(fe, { ...t, children: /* @__PURE__ */ o(H, { className: "overflow-hidden p-0", children: /* @__PURE__ */ o(Y, { 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 }) }) }), et = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ c("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
|
|
656
|
+
/* @__PURE__ */ o(J, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }),
|
|
657
|
+
/* @__PURE__ */ o(
|
|
658
|
+
p.Input,
|
|
659
|
+
{
|
|
660
|
+
ref: a,
|
|
661
|
+
className: s(
|
|
662
|
+
"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",
|
|
663
|
+
e
|
|
664
|
+
),
|
|
665
|
+
...t
|
|
666
|
+
}
|
|
667
|
+
)
|
|
668
|
+
] }));
|
|
669
|
+
et.displayName = p.Input.displayName;
|
|
670
|
+
const tt = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(
|
|
671
|
+
p.List,
|
|
672
|
+
{
|
|
673
|
+
ref: a,
|
|
674
|
+
className: s("max-h-[300px] overflow-y-auto overflow-x-hidden", e),
|
|
675
|
+
...t
|
|
676
|
+
}
|
|
677
|
+
));
|
|
678
|
+
tt.displayName = p.List.displayName;
|
|
679
|
+
const at = r.forwardRef((e, t) => /* @__PURE__ */ o(p.Empty, { ref: t, className: "py-6 text-center text-sm", ...e }));
|
|
680
|
+
at.displayName = p.Empty.displayName;
|
|
681
|
+
const ot = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(
|
|
682
|
+
p.Group,
|
|
683
|
+
{
|
|
684
|
+
ref: a,
|
|
685
|
+
className: s(
|
|
686
|
+
"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",
|
|
687
|
+
e
|
|
688
|
+
),
|
|
689
|
+
...t
|
|
690
|
+
}
|
|
691
|
+
));
|
|
692
|
+
ot.displayName = p.Group.displayName;
|
|
693
|
+
const st = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(p.Separator, { ref: a, className: s("-mx-1 h-px bg-border", e), ...t }));
|
|
694
|
+
st.displayName = p.Separator.displayName;
|
|
695
|
+
const rt = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(
|
|
696
|
+
p.Item,
|
|
697
|
+
{
|
|
698
|
+
ref: a,
|
|
699
|
+
className: s(
|
|
700
|
+
"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",
|
|
701
|
+
e
|
|
702
|
+
),
|
|
703
|
+
...t
|
|
704
|
+
}
|
|
705
|
+
));
|
|
706
|
+
rt.displayName = p.Item.displayName;
|
|
707
|
+
const dt = ({ className: e, ...t }) => /* @__PURE__ */ o("span", { className: s("ml-auto text-xs tracking-widest text-muted-foreground", e), ...t });
|
|
708
|
+
dt.displayName = "CommandShortcut";
|
|
709
|
+
const Xt = i.Root, Yt = i.Trigger, $t = i.Group, Jt = i.Portal, Kt = i.Sub, Wt = i.RadioGroup, nt = r.forwardRef(({ className: e, inset: t, children: a, ...d }, l) => /* @__PURE__ */ c(
|
|
643
710
|
i.SubTrigger,
|
|
644
711
|
{
|
|
645
712
|
ref: l,
|
|
@@ -648,15 +715,15 @@ const Ot = ({ className: e, ...t }) => /* @__PURE__ */ o("div", { className: s("
|
|
|
648
715
|
t && "pl-8",
|
|
649
716
|
e
|
|
650
717
|
),
|
|
651
|
-
...
|
|
718
|
+
...d,
|
|
652
719
|
children: [
|
|
653
720
|
a,
|
|
654
|
-
/* @__PURE__ */ o(
|
|
721
|
+
/* @__PURE__ */ o(P, { className: "ml-auto h-4 w-4" })
|
|
655
722
|
]
|
|
656
723
|
}
|
|
657
724
|
));
|
|
658
|
-
|
|
659
|
-
const
|
|
725
|
+
nt.displayName = i.SubTrigger.displayName;
|
|
726
|
+
const it = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(
|
|
660
727
|
i.SubContent,
|
|
661
728
|
{
|
|
662
729
|
ref: a,
|
|
@@ -667,8 +734,8 @@ const We = n.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(
|
|
|
667
734
|
...t
|
|
668
735
|
}
|
|
669
736
|
));
|
|
670
|
-
|
|
671
|
-
const
|
|
737
|
+
it.displayName = i.SubContent.displayName;
|
|
738
|
+
const lt = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(i.Portal, { children: /* @__PURE__ */ o(
|
|
672
739
|
i.Content,
|
|
673
740
|
{
|
|
674
741
|
ref: a,
|
|
@@ -679,11 +746,11 @@ const Ze = n.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(i.Porta
|
|
|
679
746
|
...t
|
|
680
747
|
}
|
|
681
748
|
) }));
|
|
682
|
-
|
|
683
|
-
const
|
|
749
|
+
lt.displayName = i.Content.displayName;
|
|
750
|
+
const ct = r.forwardRef(({ className: e, inset: t, ...a }, d) => /* @__PURE__ */ o(
|
|
684
751
|
i.Item,
|
|
685
752
|
{
|
|
686
|
-
ref:
|
|
753
|
+
ref: d,
|
|
687
754
|
className: s(
|
|
688
755
|
"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",
|
|
689
756
|
t && "pl-8",
|
|
@@ -692,8 +759,8 @@ const $e = n.forwardRef(({ className: e, inset: t, ...a }, r) => /* @__PURE__ */
|
|
|
692
759
|
...a
|
|
693
760
|
}
|
|
694
761
|
));
|
|
695
|
-
|
|
696
|
-
const
|
|
762
|
+
ct.displayName = i.Item.displayName;
|
|
763
|
+
const mt = r.forwardRef(({ className: e, children: t, checked: a, ...d }, l) => /* @__PURE__ */ c(
|
|
697
764
|
i.CheckboxItem,
|
|
698
765
|
{
|
|
699
766
|
ref: l,
|
|
@@ -702,130 +769,139 @@ const et = n.forwardRef(({ className: e, children: t, checked: a, ...r }, l) =>
|
|
|
702
769
|
e
|
|
703
770
|
),
|
|
704
771
|
checked: a,
|
|
705
|
-
...
|
|
772
|
+
...d,
|
|
706
773
|
children: [
|
|
707
|
-
/* @__PURE__ */ o("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ o(i.ItemIndicator, { children: /* @__PURE__ */ o(
|
|
774
|
+
/* @__PURE__ */ o("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ o(i.ItemIndicator, { children: /* @__PURE__ */ o(z, { className: "h-4 w-4" }) }) }),
|
|
708
775
|
t
|
|
709
776
|
]
|
|
710
777
|
}
|
|
711
778
|
));
|
|
712
|
-
|
|
713
|
-
const
|
|
779
|
+
mt.displayName = i.CheckboxItem.displayName;
|
|
780
|
+
const pt = r.forwardRef(({ className: e, children: t, ...a }, d) => /* @__PURE__ */ c(
|
|
714
781
|
i.RadioItem,
|
|
715
782
|
{
|
|
716
|
-
ref:
|
|
783
|
+
ref: d,
|
|
717
784
|
className: s(
|
|
718
785
|
"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",
|
|
719
786
|
e
|
|
720
787
|
),
|
|
721
788
|
...a,
|
|
722
789
|
children: [
|
|
723
|
-
/* @__PURE__ */ o("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ o(i.ItemIndicator, { children: /* @__PURE__ */ o(
|
|
790
|
+
/* @__PURE__ */ o("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ o(i.ItemIndicator, { children: /* @__PURE__ */ o(_, { className: "h-4 w-4 fill-current" }) }) }),
|
|
724
791
|
t
|
|
725
792
|
]
|
|
726
793
|
}
|
|
727
794
|
));
|
|
728
|
-
|
|
729
|
-
const
|
|
795
|
+
pt.displayName = i.RadioItem.displayName;
|
|
796
|
+
const ft = r.forwardRef(({ className: e, inset: t, ...a }, d) => /* @__PURE__ */ o(
|
|
730
797
|
i.Label,
|
|
731
798
|
{
|
|
732
|
-
ref:
|
|
799
|
+
ref: d,
|
|
733
800
|
className: s("px-2 py-1.5 text-sm font-semibold text-foreground", t && "pl-8", e),
|
|
734
801
|
...a
|
|
735
802
|
}
|
|
736
803
|
));
|
|
737
|
-
|
|
738
|
-
const
|
|
739
|
-
|
|
740
|
-
const
|
|
741
|
-
|
|
804
|
+
ft.displayName = i.Label.displayName;
|
|
805
|
+
const ut = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(i.Separator, { ref: a, className: s("-mx-1 my-1 h-px bg-border", e), ...t }));
|
|
806
|
+
ut.displayName = i.Separator.displayName;
|
|
807
|
+
const gt = ({ className: e, ...t }) => /* @__PURE__ */ o("span", { className: s("ml-auto text-xs tracking-widest text-muted-foreground", e), ...t });
|
|
808
|
+
gt.displayName = "ContextMenuShortcut";
|
|
742
809
|
export {
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
H,
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
810
|
+
jt as $,
|
|
811
|
+
Rt as A,
|
|
812
|
+
te as B,
|
|
813
|
+
ye as C,
|
|
814
|
+
fe as D,
|
|
815
|
+
ve as E,
|
|
816
|
+
we as F,
|
|
817
|
+
ke as G,
|
|
818
|
+
F as H,
|
|
819
|
+
Re as I,
|
|
820
|
+
It as J,
|
|
821
|
+
Ie as K,
|
|
822
|
+
Se as L,
|
|
823
|
+
Ae as M,
|
|
824
|
+
Me as N,
|
|
825
|
+
Pt as O,
|
|
826
|
+
zt as P,
|
|
827
|
+
Pe as Q,
|
|
828
|
+
Mt as R,
|
|
829
|
+
qt as S,
|
|
830
|
+
De as T,
|
|
831
|
+
At as U,
|
|
832
|
+
_t as V,
|
|
833
|
+
Ot as W,
|
|
834
|
+
ze as X,
|
|
835
|
+
Et as Y,
|
|
836
|
+
Lt as Z,
|
|
837
|
+
_e as _,
|
|
838
|
+
ee as a,
|
|
839
|
+
Vt as a0,
|
|
840
|
+
Le as a1,
|
|
841
|
+
je as a2,
|
|
842
|
+
Ve as a3,
|
|
843
|
+
Ge as a4,
|
|
844
|
+
He as a5,
|
|
845
|
+
Fe as a6,
|
|
846
|
+
Be as a7,
|
|
847
|
+
Gt as a8,
|
|
848
|
+
Ht as a9,
|
|
849
|
+
gt as aA,
|
|
850
|
+
$t as aB,
|
|
851
|
+
Jt as aC,
|
|
852
|
+
Kt as aD,
|
|
853
|
+
it as aE,
|
|
854
|
+
nt as aF,
|
|
855
|
+
Wt as aG,
|
|
856
|
+
Ft as aa,
|
|
857
|
+
Ee as ab,
|
|
858
|
+
Oe as ac,
|
|
859
|
+
Bt as ad,
|
|
860
|
+
Ue as ae,
|
|
861
|
+
Ye as af,
|
|
862
|
+
Je as ag,
|
|
863
|
+
$e as ah,
|
|
864
|
+
Ut as ai,
|
|
865
|
+
Y as aj,
|
|
866
|
+
Qt as ak,
|
|
867
|
+
et as al,
|
|
868
|
+
tt as am,
|
|
869
|
+
at as an,
|
|
870
|
+
ot as ao,
|
|
871
|
+
rt as ap,
|
|
872
|
+
dt as aq,
|
|
799
873
|
st as ar,
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
874
|
+
Xt as as,
|
|
875
|
+
Yt as at,
|
|
876
|
+
lt as au,
|
|
877
|
+
ct as av,
|
|
878
|
+
mt as aw,
|
|
879
|
+
pt as ax,
|
|
880
|
+
ft as ay,
|
|
881
|
+
ut as az,
|
|
882
|
+
I as b,
|
|
807
883
|
s as c,
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
884
|
+
ae as d,
|
|
885
|
+
oe as e,
|
|
886
|
+
se as f,
|
|
887
|
+
Tt as g,
|
|
888
|
+
re as h,
|
|
889
|
+
St as i,
|
|
890
|
+
Dt as j,
|
|
891
|
+
de as k,
|
|
892
|
+
ne as l,
|
|
893
|
+
ie as m,
|
|
894
|
+
le as n,
|
|
895
|
+
ce as o,
|
|
896
|
+
me as p,
|
|
897
|
+
pe as q,
|
|
898
|
+
kt as r,
|
|
899
|
+
H as s,
|
|
900
|
+
ue as t,
|
|
901
|
+
ge as u,
|
|
902
|
+
be as v,
|
|
903
|
+
xe as w,
|
|
904
|
+
Ne as x,
|
|
905
|
+
Ce as y,
|
|
906
|
+
he as z
|
|
831
907
|
};
|