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