@chaibuilder/sdk 1.3.0 → 1.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/CodeEditor-4DqYRbd_.js +75 -0
- package/dist/CodeEditor-De5iMQ29.cjs +1 -0
- package/dist/Topbar-CF2ruRG5.js +113 -0
- package/dist/Topbar-DAqH30Vp.cjs +1 -0
- package/dist/UnsplashImages-4CFuSaLJ.js +189 -0
- package/dist/UnsplashImages-8B8DhERl.cjs +1 -0
- package/dist/UploadImages-BxZW3OIT.cjs +1 -0
- package/dist/UploadImages-C6ta5Prd.js +101 -0
- package/dist/{context-menu-BbqLeYFX.js → context-menu-BtcwqA6V.js} +295 -298
- package/dist/context-menu-CYk-Ms8j.cjs +1 -0
- package/dist/core.cjs +1 -1
- package/dist/core.js +1 -1
- package/dist/{index-CcLk7_o6.js → index-Coh4Y4tF.js} +2861 -2915
- package/dist/index-MwShWj1c.cjs +63 -0
- package/dist/render.cjs +2 -2
- package/dist/render.js +70 -70
- package/dist/ui.cjs +1 -1
- package/dist/ui.js +196 -196
- package/dist/web-blocks.cjs +3 -3
- package/dist/web-blocks.js +236 -238
- package/package.json +1 -1
- package/dist/CodeEditor-C94XQmvL.cjs +0 -1
- package/dist/CodeEditor-D5t7A9Po.js +0 -77
- package/dist/Topbar-Bnxt9C5B.js +0 -113
- package/dist/Topbar-DFm3YQZi.cjs +0 -1
- package/dist/UnsplashImages-BWT3eyq3.cjs +0 -1
- package/dist/UnsplashImages-D-9aNQGK.js +0 -189
- package/dist/UploadImages-CntfFAoV.cjs +0 -1
- package/dist/UploadImages-CrAaKlC1.js +0 -101
- package/dist/context-menu-DfAXjmc8.cjs +0 -1
- package/dist/index-C9LOYt3W.cjs +0 -63
- package/dist/jsx-runtime-BYECrxsp.cjs +0 -30
- package/dist/jsx-runtime-DGlMoOmv.js +0 -630
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import * as
|
|
1
|
+
import { jsx as o, jsxs as c } from "react/jsx-runtime";
|
|
2
|
+
import * as I from "@radix-ui/react-switch";
|
|
3
3
|
import * as r from "react";
|
|
4
|
-
import * as
|
|
5
|
-
import { ChevronDownIcon as Y, Cross2Icon as
|
|
6
|
-
import { cva as
|
|
7
|
-
import * as
|
|
4
|
+
import * as x from "@radix-ui/react-accordion";
|
|
5
|
+
import { ChevronDownIcon as Y, Cross2Icon as P, CaretSortIcon as $, CheckIcon as A, ChevronRightIcon as _, DotFilledIcon as O, MagnifyingGlassIcon as W } from "@radix-ui/react-icons";
|
|
6
|
+
import { cva as R } from "class-variance-authority";
|
|
7
|
+
import * as p from "@radix-ui/react-alert-dialog";
|
|
8
8
|
import { Slot as Z } from "@radix-ui/react-slot";
|
|
9
|
-
import * as
|
|
10
|
-
import * as
|
|
11
|
-
import * as
|
|
12
|
-
import * as
|
|
13
|
-
import * as
|
|
14
|
-
import * as
|
|
15
|
-
import * as
|
|
9
|
+
import * as L from "@radix-ui/react-label";
|
|
10
|
+
import * as b from "@radix-ui/react-scroll-area";
|
|
11
|
+
import * as y from "@radix-ui/react-tabs";
|
|
12
|
+
import * as N from "@radix-ui/react-tooltip";
|
|
13
|
+
import * as w from "@radix-ui/react-popover";
|
|
14
|
+
import * as T from "@radix-ui/react-hover-card";
|
|
15
|
+
import * as m from "@radix-ui/react-select";
|
|
16
16
|
import * as n from "@radix-ui/react-dropdown-menu";
|
|
17
|
-
import * as
|
|
18
|
-
import * as
|
|
19
|
-
import { Command as
|
|
20
|
-
import * as
|
|
17
|
+
import * as V from "@radix-ui/react-separator";
|
|
18
|
+
import * as g from "@radix-ui/react-toast";
|
|
19
|
+
import { Command as f } from "cmdk";
|
|
20
|
+
import * as u from "@radix-ui/react-dialog";
|
|
21
21
|
import * as i from "@radix-ui/react-context-menu";
|
|
22
22
|
import { clsx as ee } from "clsx";
|
|
23
23
|
import { twMerge as te } from "tailwind-merge";
|
|
24
|
-
const s = (...e) => te(ee(e)), ae = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o
|
|
25
|
-
|
|
24
|
+
const s = (...e) => te(ee(e)), ae = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(
|
|
25
|
+
I.Root,
|
|
26
26
|
{
|
|
27
27
|
className: s(
|
|
28
28
|
"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,8 +30,8 @@ const s = (...e) => te(ee(e)), ae = r.forwardRef(({ className: e, ...t }, a) =>
|
|
|
30
30
|
),
|
|
31
31
|
...t,
|
|
32
32
|
ref: a,
|
|
33
|
-
children: /* @__PURE__ */ o
|
|
34
|
-
|
|
33
|
+
children: /* @__PURE__ */ o(
|
|
34
|
+
I.Thumb,
|
|
35
35
|
{
|
|
36
36
|
className: s(
|
|
37
37
|
"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"
|
|
@@ -40,8 +40,8 @@ const s = (...e) => te(ee(e)), ae = r.forwardRef(({ className: e, ...t }, a) =>
|
|
|
40
40
|
)
|
|
41
41
|
}
|
|
42
42
|
));
|
|
43
|
-
ae.displayName =
|
|
44
|
-
const
|
|
43
|
+
ae.displayName = I.Root.displayName;
|
|
44
|
+
const M = R(
|
|
45
45
|
"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",
|
|
46
46
|
{
|
|
47
47
|
variants: {
|
|
@@ -66,16 +66,13 @@ const I = j(
|
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
68
|
), oe = r.forwardRef(
|
|
69
|
-
({ className: e, variant: t, size: a, asChild: d = !1, ...l },
|
|
70
|
-
const X = d ? Z : "button";
|
|
71
|
-
return /* @__PURE__ */ o.jsx(X, { className: s(I({ variant: t, size: a, className: e })), ref: R, ...l });
|
|
72
|
-
}
|
|
69
|
+
({ className: e, variant: t, size: a, asChild: d = !1, ...l }, S) => /* @__PURE__ */ o(d ? Z : "button", { className: s(M({ variant: t, size: a, className: e })), ref: S, ...l })
|
|
73
70
|
);
|
|
74
71
|
oe.displayName = "Button";
|
|
75
|
-
const
|
|
72
|
+
const Mt = x.Root, se = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(x.Item, { ref: a, className: s("border-b", e), ...t }));
|
|
76
73
|
se.displayName = "AccordionItem";
|
|
77
|
-
const re = r.forwardRef(({ className: e, children: t, ...a }, d) => /* @__PURE__ */ o
|
|
78
|
-
|
|
74
|
+
const re = r.forwardRef(({ className: e, children: t, ...a }, d) => /* @__PURE__ */ o(x.Header, { className: "flex", children: /* @__PURE__ */ c(
|
|
75
|
+
x.Trigger,
|
|
79
76
|
{
|
|
80
77
|
ref: d,
|
|
81
78
|
className: s(
|
|
@@ -85,13 +82,13 @@ const re = r.forwardRef(({ className: e, children: t, ...a }, d) => /* @__PURE__
|
|
|
85
82
|
...a,
|
|
86
83
|
children: [
|
|
87
84
|
t,
|
|
88
|
-
a.hideArrow ? null : /* @__PURE__ */ o
|
|
85
|
+
a.hideArrow ? null : /* @__PURE__ */ o(Y, { className: "h-4 w-4 shrink-0 text-muted-foreground transition-transform duration-200" })
|
|
89
86
|
]
|
|
90
87
|
}
|
|
91
88
|
) }));
|
|
92
|
-
re.displayName =
|
|
93
|
-
const de = r.forwardRef(({ className: e, children: t, ...a }, d) => /* @__PURE__ */ o
|
|
94
|
-
|
|
89
|
+
re.displayName = x.Trigger.displayName;
|
|
90
|
+
const de = r.forwardRef(({ className: e, children: t, ...a }, d) => /* @__PURE__ */ o(
|
|
91
|
+
x.Content,
|
|
95
92
|
{
|
|
96
93
|
ref: d,
|
|
97
94
|
className: s(
|
|
@@ -99,11 +96,11 @@ const de = r.forwardRef(({ className: e, children: t, ...a }, d) => /* @__PURE__
|
|
|
99
96
|
e
|
|
100
97
|
),
|
|
101
98
|
...a,
|
|
102
|
-
children: /* @__PURE__ */ o
|
|
99
|
+
children: /* @__PURE__ */ o("div", { className: "pb-4 pt-0", children: t })
|
|
103
100
|
}
|
|
104
101
|
));
|
|
105
|
-
de.displayName =
|
|
106
|
-
const ne =
|
|
102
|
+
de.displayName = x.Content.displayName;
|
|
103
|
+
const ne = R(
|
|
107
104
|
"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",
|
|
108
105
|
{
|
|
109
106
|
variants: {
|
|
@@ -118,10 +115,10 @@ const ne = j(
|
|
|
118
115
|
variant: "default"
|
|
119
116
|
}
|
|
120
117
|
}
|
|
121
|
-
),
|
|
122
|
-
|
|
123
|
-
const E = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o
|
|
124
|
-
|
|
118
|
+
), zt = ({ className: e, variant: t, ...a }) => /* @__PURE__ */ o("div", { className: s(ne({ variant: t }), e), ...a }), Pt = p.Root, _t = p.Trigger, j = ({ className: e, ...t }) => /* @__PURE__ */ o(p.Portal, { className: s(e), ...t });
|
|
119
|
+
j.displayName = p.Portal.displayName;
|
|
120
|
+
const E = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(
|
|
121
|
+
p.Overlay,
|
|
125
122
|
{
|
|
126
123
|
className: s(
|
|
127
124
|
"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",
|
|
@@ -131,11 +128,11 @@ const E = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o.jsx(
|
|
|
131
128
|
ref: a
|
|
132
129
|
}
|
|
133
130
|
));
|
|
134
|
-
E.displayName =
|
|
135
|
-
const ie = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */
|
|
136
|
-
/* @__PURE__ */ o
|
|
137
|
-
/* @__PURE__ */ o
|
|
138
|
-
|
|
131
|
+
E.displayName = p.Overlay.displayName;
|
|
132
|
+
const ie = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ c(j, { children: [
|
|
133
|
+
/* @__PURE__ */ o(E, {}),
|
|
134
|
+
/* @__PURE__ */ o(
|
|
135
|
+
p.Content,
|
|
139
136
|
{
|
|
140
137
|
ref: a,
|
|
141
138
|
className: s(
|
|
@@ -146,30 +143,30 @@ const ie = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o.jsxs(L,
|
|
|
146
143
|
}
|
|
147
144
|
)
|
|
148
145
|
] }));
|
|
149
|
-
ie.displayName =
|
|
150
|
-
const le = ({ className: e, ...t }) => /* @__PURE__ */ o
|
|
146
|
+
ie.displayName = p.Content.displayName;
|
|
147
|
+
const le = ({ className: e, ...t }) => /* @__PURE__ */ o("div", { className: s("flex flex-col space-y-2 text-center sm:text-left", e), ...t });
|
|
151
148
|
le.displayName = "AlertDialogHeader";
|
|
152
|
-
const ce = ({ className: e, ...t }) => /* @__PURE__ */ o
|
|
149
|
+
const ce = ({ className: e, ...t }) => /* @__PURE__ */ o("div", { className: s("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", e), ...t });
|
|
153
150
|
ce.displayName = "AlertDialogFooter";
|
|
154
|
-
const me = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o
|
|
155
|
-
me.displayName =
|
|
156
|
-
const pe = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o
|
|
157
|
-
pe.displayName =
|
|
158
|
-
const fe = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o
|
|
159
|
-
fe.displayName =
|
|
160
|
-
const ue = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o
|
|
161
|
-
|
|
151
|
+
const me = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(p.Title, { ref: a, className: s("text-lg font-semibold", e), ...t }));
|
|
152
|
+
me.displayName = p.Title.displayName;
|
|
153
|
+
const pe = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(p.Description, { ref: a, className: s("text-sm text-muted-foreground", e), ...t }));
|
|
154
|
+
pe.displayName = p.Description.displayName;
|
|
155
|
+
const fe = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(p.Action, { ref: a, className: s(M(), e), ...t }));
|
|
156
|
+
fe.displayName = p.Action.displayName;
|
|
157
|
+
const ue = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(
|
|
158
|
+
p.Cancel,
|
|
162
159
|
{
|
|
163
160
|
ref: a,
|
|
164
|
-
className: s(
|
|
161
|
+
className: s(M({ variant: "outline" }), "mt-2 sm:mt-0", e),
|
|
165
162
|
...t
|
|
166
163
|
}
|
|
167
164
|
));
|
|
168
|
-
ue.displayName =
|
|
169
|
-
const
|
|
170
|
-
|
|
171
|
-
const
|
|
172
|
-
|
|
165
|
+
ue.displayName = p.Cancel.displayName;
|
|
166
|
+
const ge = u.Root, Ot = u.Trigger, G = ({ className: e, ...t }) => /* @__PURE__ */ o(u.Portal, { className: s(e), ...t });
|
|
167
|
+
G.displayName = u.Portal.displayName;
|
|
168
|
+
const H = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(
|
|
169
|
+
u.Overlay,
|
|
173
170
|
{
|
|
174
171
|
ref: a,
|
|
175
172
|
className: s(
|
|
@@ -179,11 +176,11 @@ const G = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o.jsx(
|
|
|
179
176
|
...t
|
|
180
177
|
}
|
|
181
178
|
));
|
|
182
|
-
|
|
183
|
-
const
|
|
184
|
-
/* @__PURE__ */ o
|
|
185
|
-
/* @__PURE__ */
|
|
186
|
-
|
|
179
|
+
H.displayName = u.Overlay.displayName;
|
|
180
|
+
const F = r.forwardRef(({ className: e, children: t, ...a }, d) => /* @__PURE__ */ c(G, { children: [
|
|
181
|
+
/* @__PURE__ */ o(H, {}),
|
|
182
|
+
/* @__PURE__ */ c(
|
|
183
|
+
u.Content,
|
|
187
184
|
{
|
|
188
185
|
ref: d,
|
|
189
186
|
className: s(
|
|
@@ -193,53 +190,53 @@ const H = r.forwardRef(({ className: e, children: t, ...a }, d) => /* @__PURE__
|
|
|
193
190
|
...a,
|
|
194
191
|
children: [
|
|
195
192
|
t,
|
|
196
|
-
/* @__PURE__ */
|
|
197
|
-
/* @__PURE__ */ o
|
|
198
|
-
/* @__PURE__ */ o
|
|
193
|
+
/* @__PURE__ */ c(u.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: [
|
|
194
|
+
/* @__PURE__ */ o(P, { className: "h-4 w-4" }),
|
|
195
|
+
/* @__PURE__ */ o("span", { className: "sr-only", children: "Close" })
|
|
199
196
|
] })
|
|
200
197
|
]
|
|
201
198
|
}
|
|
202
199
|
)
|
|
203
200
|
] }));
|
|
204
|
-
|
|
205
|
-
const
|
|
206
|
-
|
|
207
|
-
const
|
|
208
|
-
|
|
209
|
-
const ye = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o
|
|
210
|
-
|
|
201
|
+
F.displayName = u.Content.displayName;
|
|
202
|
+
const be = ({ className: e, ...t }) => /* @__PURE__ */ o("div", { className: s("flex flex-col space-y-1.5 text-center sm:text-left", e), ...t });
|
|
203
|
+
be.displayName = "DialogHeader";
|
|
204
|
+
const xe = ({ className: e, ...t }) => /* @__PURE__ */ o("div", { className: s("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", e), ...t });
|
|
205
|
+
xe.displayName = "DialogFooter";
|
|
206
|
+
const ye = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(
|
|
207
|
+
u.Title,
|
|
211
208
|
{
|
|
212
209
|
ref: a,
|
|
213
210
|
className: s("text-lg font-semibold leading-none tracking-tight", e),
|
|
214
211
|
...t
|
|
215
212
|
}
|
|
216
213
|
));
|
|
217
|
-
ye.displayName =
|
|
218
|
-
const Ne = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o
|
|
219
|
-
Ne.displayName =
|
|
220
|
-
const he = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o
|
|
214
|
+
ye.displayName = u.Title.displayName;
|
|
215
|
+
const Ne = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(u.Description, { ref: a, className: s("text-sm text-muted-foreground", e), ...t }));
|
|
216
|
+
Ne.displayName = u.Description.displayName;
|
|
217
|
+
const he = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o("div", { ref: a, className: s("rounded-xl border bg-card text-card-foreground shadow", e), ...t }));
|
|
221
218
|
he.displayName = "Card";
|
|
222
219
|
const we = r.forwardRef(
|
|
223
|
-
({ className: e, ...t }, a) => /* @__PURE__ */ o
|
|
220
|
+
({ className: e, ...t }, a) => /* @__PURE__ */ o("div", { ref: a, className: s("flex flex-col space-y-1.5 p-6", e), ...t })
|
|
224
221
|
);
|
|
225
222
|
we.displayName = "CardHeader";
|
|
226
223
|
const ve = r.forwardRef(
|
|
227
|
-
({ className: e, ...t }, a) => /* @__PURE__ */ o
|
|
224
|
+
({ className: e, ...t }, a) => /* @__PURE__ */ o("h3", { ref: a, className: s("font-semibold leading-none tracking-tight", e), ...t })
|
|
228
225
|
);
|
|
229
226
|
ve.displayName = "CardTitle";
|
|
230
|
-
const je = r.forwardRef(
|
|
231
|
-
({ className: e, ...t }, a) => /* @__PURE__ */ o.jsx("p", { ref: a, className: s("text-sm text-muted-foreground", e), ...t })
|
|
232
|
-
);
|
|
233
|
-
je.displayName = "CardDescription";
|
|
234
227
|
const Ce = r.forwardRef(
|
|
235
|
-
({ className: e, ...t }, a) => /* @__PURE__ */ o
|
|
228
|
+
({ className: e, ...t }, a) => /* @__PURE__ */ o("p", { ref: a, className: s("text-sm text-muted-foreground", e), ...t })
|
|
236
229
|
);
|
|
237
|
-
Ce.displayName = "
|
|
230
|
+
Ce.displayName = "CardDescription";
|
|
238
231
|
const Re = r.forwardRef(
|
|
239
|
-
({ className: e, ...t }, a) => /* @__PURE__ */ o
|
|
232
|
+
({ className: e, ...t }, a) => /* @__PURE__ */ o("div", { ref: a, className: s("p-6 pt-0", e), ...t })
|
|
240
233
|
);
|
|
241
|
-
Re.displayName = "
|
|
242
|
-
const Te = r.forwardRef(
|
|
234
|
+
Re.displayName = "CardContent";
|
|
235
|
+
const Te = r.forwardRef(
|
|
236
|
+
({ className: e, ...t }, a) => /* @__PURE__ */ o("div", { ref: a, className: s(" flex items-center p-6 pt-0", e), ...t })
|
|
237
|
+
);
|
|
238
|
+
Te.displayName = "CardFooter";
|
|
239
|
+
const Se = r.forwardRef(({ className: e, type: t, ...a }, d) => /* @__PURE__ */ o(
|
|
243
240
|
"input",
|
|
244
241
|
{
|
|
245
242
|
type: t,
|
|
@@ -254,10 +251,10 @@ const Te = r.forwardRef(({ className: e, type: t, ...a }, d) => /* @__PURE__ */
|
|
|
254
251
|
spellCheck: "false"
|
|
255
252
|
}
|
|
256
253
|
));
|
|
257
|
-
|
|
258
|
-
const
|
|
259
|
-
|
|
260
|
-
const
|
|
254
|
+
Se.displayName = "Input";
|
|
255
|
+
const ke = R("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"), De = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(L.Root, { ref: a, className: s(ke(), e), ...t }));
|
|
256
|
+
De.displayName = L.Root.displayName;
|
|
257
|
+
const Ie = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(
|
|
261
258
|
"textarea",
|
|
262
259
|
{
|
|
263
260
|
className: s(
|
|
@@ -271,15 +268,15 @@ const De = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o.jsx(
|
|
|
271
268
|
spellCheck: "false"
|
|
272
269
|
}
|
|
273
270
|
));
|
|
274
|
-
|
|
275
|
-
const
|
|
276
|
-
/* @__PURE__ */ o
|
|
277
|
-
/* @__PURE__ */ o
|
|
278
|
-
/* @__PURE__ */ o
|
|
271
|
+
Ie.displayName = "Textarea";
|
|
272
|
+
const Ae = r.forwardRef(({ className: e, children: t, ...a }, d) => /* @__PURE__ */ c(b.Root, { ref: d, className: s("relative overflow-hidden", e), ...a, children: [
|
|
273
|
+
/* @__PURE__ */ o(b.Viewport, { className: "h-full w-full rounded-[inherit]", children: t }),
|
|
274
|
+
/* @__PURE__ */ o(B, {}),
|
|
275
|
+
/* @__PURE__ */ o(b.Corner, {})
|
|
279
276
|
] }));
|
|
280
|
-
|
|
281
|
-
const
|
|
282
|
-
|
|
277
|
+
Ae.displayName = b.Root.displayName;
|
|
278
|
+
const B = r.forwardRef(({ className: e, orientation: t = "vertical", ...a }, d) => /* @__PURE__ */ o(
|
|
279
|
+
b.ScrollAreaScrollbar,
|
|
283
280
|
{
|
|
284
281
|
ref: d,
|
|
285
282
|
orientation: t,
|
|
@@ -290,12 +287,12 @@ const F = r.forwardRef(({ className: e, orientation: t = "vertical", ...a }, d)
|
|
|
290
287
|
e
|
|
291
288
|
),
|
|
292
289
|
...a,
|
|
293
|
-
children: /* @__PURE__ */ o
|
|
290
|
+
children: /* @__PURE__ */ o(b.ScrollAreaThumb, { className: "relative flex-1 rounded-full bg-border" })
|
|
294
291
|
}
|
|
295
292
|
));
|
|
296
|
-
|
|
297
|
-
const
|
|
298
|
-
|
|
293
|
+
B.displayName = b.ScrollAreaScrollbar.displayName;
|
|
294
|
+
const Lt = y.Root, Me = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(
|
|
295
|
+
y.List,
|
|
299
296
|
{
|
|
300
297
|
ref: a,
|
|
301
298
|
className: s(
|
|
@@ -305,9 +302,9 @@ const _t = b.Root, Ae = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__
|
|
|
305
302
|
...t
|
|
306
303
|
}
|
|
307
304
|
));
|
|
308
|
-
|
|
309
|
-
const
|
|
310
|
-
|
|
305
|
+
Me.displayName = y.List.displayName;
|
|
306
|
+
const ze = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(
|
|
307
|
+
y.Trigger,
|
|
311
308
|
{
|
|
312
309
|
ref: a,
|
|
313
310
|
className: s(
|
|
@@ -317,9 +314,9 @@ const Me = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o.jsx(
|
|
|
317
314
|
...t
|
|
318
315
|
}
|
|
319
316
|
));
|
|
320
|
-
|
|
321
|
-
const
|
|
322
|
-
|
|
317
|
+
ze.displayName = y.Trigger.displayName;
|
|
318
|
+
const Pe = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(
|
|
319
|
+
y.Content,
|
|
323
320
|
{
|
|
324
321
|
ref: a,
|
|
325
322
|
className: s(
|
|
@@ -329,9 +326,9 @@ const ze = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o.jsx(
|
|
|
329
326
|
...t
|
|
330
327
|
}
|
|
331
328
|
));
|
|
332
|
-
|
|
333
|
-
const
|
|
334
|
-
|
|
329
|
+
Pe.displayName = y.Content.displayName;
|
|
330
|
+
const Vt = N.Portal, jt = N.Provider, Et = N.Root, Gt = N.Trigger, _e = r.forwardRef(({ className: e, sideOffset: t = 4, ...a }, d) => /* @__PURE__ */ o(
|
|
331
|
+
N.Content,
|
|
335
332
|
{
|
|
336
333
|
ref: d,
|
|
337
334
|
sideOffset: t,
|
|
@@ -342,9 +339,9 @@ const Ot = y.Portal, Lt = y.Provider, Et = y.Root, Vt = y.Trigger, Pe = r.forwar
|
|
|
342
339
|
...a
|
|
343
340
|
}
|
|
344
341
|
));
|
|
345
|
-
|
|
346
|
-
const
|
|
347
|
-
|
|
342
|
+
_e.displayName = N.Content.displayName;
|
|
343
|
+
const Ht = w.Root, Ft = w.Trigger, Oe = r.forwardRef(({ className: e, align: t = "center", sideOffset: a = 4, ...d }, l) => /* @__PURE__ */ o(w.Portal, { children: /* @__PURE__ */ o(
|
|
344
|
+
w.Content,
|
|
348
345
|
{
|
|
349
346
|
ref: l,
|
|
350
347
|
align: t,
|
|
@@ -356,9 +353,9 @@ const Gt = h.Root, Ht = h.Trigger, _e = r.forwardRef(({ className: e, align: t =
|
|
|
356
353
|
...d
|
|
357
354
|
}
|
|
358
355
|
) }));
|
|
359
|
-
|
|
360
|
-
const
|
|
361
|
-
|
|
356
|
+
Oe.displayName = w.Content.displayName;
|
|
357
|
+
const Bt = T.Root, Ut = T.Trigger, Le = r.forwardRef(({ className: e, align: t = "center", sideOffset: a = 4, ...d }, l) => /* @__PURE__ */ o(
|
|
358
|
+
T.Content,
|
|
362
359
|
{
|
|
363
360
|
ref: l,
|
|
364
361
|
align: t,
|
|
@@ -370,9 +367,9 @@ const Ft = C.Root, Bt = C.Trigger, Oe = r.forwardRef(({ className: e, align: t =
|
|
|
370
367
|
...d
|
|
371
368
|
}
|
|
372
369
|
));
|
|
373
|
-
|
|
374
|
-
const
|
|
375
|
-
|
|
370
|
+
Le.displayName = T.Content.displayName;
|
|
371
|
+
const qt = m.Root, Jt = m.Group, Kt = m.Value, Ve = r.forwardRef(({ className: e, children: t, ...a }, d) => /* @__PURE__ */ c(
|
|
372
|
+
m.Trigger,
|
|
376
373
|
{
|
|
377
374
|
ref: d,
|
|
378
375
|
className: s(
|
|
@@ -382,13 +379,13 @@ const Ut = c.Root, qt = c.Group, Jt = c.Value, Le = r.forwardRef(({ className: e
|
|
|
382
379
|
...a,
|
|
383
380
|
children: [
|
|
384
381
|
t,
|
|
385
|
-
/* @__PURE__ */ o
|
|
382
|
+
/* @__PURE__ */ o(m.Icon, { asChild: !0, children: /* @__PURE__ */ o($, { className: "h-4 w-4 opacity-50" }) })
|
|
386
383
|
]
|
|
387
384
|
}
|
|
388
385
|
));
|
|
389
|
-
|
|
390
|
-
const
|
|
391
|
-
|
|
386
|
+
Ve.displayName = m.Trigger.displayName;
|
|
387
|
+
const je = r.forwardRef(({ className: e, children: t, position: a = "popper", ...d }, l) => /* @__PURE__ */ o(m.Portal, { children: /* @__PURE__ */ o(
|
|
388
|
+
m.Content,
|
|
392
389
|
{
|
|
393
390
|
ref: l,
|
|
394
391
|
className: s(
|
|
@@ -398,8 +395,8 @@ const Ee = r.forwardRef(({ className: e, children: t, position: a = "popper", ..
|
|
|
398
395
|
),
|
|
399
396
|
position: a,
|
|
400
397
|
...d,
|
|
401
|
-
children: /* @__PURE__ */ o
|
|
402
|
-
|
|
398
|
+
children: /* @__PURE__ */ o(
|
|
399
|
+
m.Viewport,
|
|
403
400
|
{
|
|
404
401
|
className: s(
|
|
405
402
|
"p-1",
|
|
@@ -410,11 +407,11 @@ const Ee = r.forwardRef(({ className: e, children: t, position: a = "popper", ..
|
|
|
410
407
|
)
|
|
411
408
|
}
|
|
412
409
|
) }));
|
|
413
|
-
|
|
414
|
-
const
|
|
415
|
-
|
|
416
|
-
const Ge = r.forwardRef(({ className: e, children: t, ...a }, d) => /* @__PURE__ */
|
|
417
|
-
|
|
410
|
+
je.displayName = m.Content.displayName;
|
|
411
|
+
const Ee = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(m.Label, { ref: a, className: s("px-2 py-1.5 text-sm font-semibold", e), ...t }));
|
|
412
|
+
Ee.displayName = m.Label.displayName;
|
|
413
|
+
const Ge = r.forwardRef(({ className: e, children: t, ...a }, d) => /* @__PURE__ */ c(
|
|
414
|
+
m.Item,
|
|
418
415
|
{
|
|
419
416
|
ref: d,
|
|
420
417
|
className: s(
|
|
@@ -423,15 +420,15 @@ const Ge = r.forwardRef(({ className: e, children: t, ...a }, d) => /* @__PURE__
|
|
|
423
420
|
),
|
|
424
421
|
...a,
|
|
425
422
|
children: [
|
|
426
|
-
/* @__PURE__ */ o
|
|
427
|
-
/* @__PURE__ */ o
|
|
423
|
+
/* @__PURE__ */ o("span", { className: "absolute right-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ o(m.ItemIndicator, { children: /* @__PURE__ */ o(A, { className: "h-4 w-4" }) }) }),
|
|
424
|
+
/* @__PURE__ */ o(m.ItemText, { children: t })
|
|
428
425
|
]
|
|
429
426
|
}
|
|
430
427
|
));
|
|
431
|
-
Ge.displayName =
|
|
432
|
-
const He = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o
|
|
433
|
-
He.displayName =
|
|
434
|
-
const
|
|
428
|
+
Ge.displayName = m.Item.displayName;
|
|
429
|
+
const He = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(m.Separator, { ref: a, className: s("-mx-1 my-1 h-px bg-muted", e), ...t }));
|
|
430
|
+
He.displayName = m.Separator.displayName;
|
|
431
|
+
const Qt = n.Root, Xt = n.Trigger, Yt = n.Group, $t = n.Portal, Wt = n.Sub, Zt = n.RadioGroup, Fe = r.forwardRef(({ className: e, inset: t, children: a, ...d }, l) => /* @__PURE__ */ c(
|
|
435
432
|
n.SubTrigger,
|
|
436
433
|
{
|
|
437
434
|
ref: l,
|
|
@@ -443,12 +440,12 @@ const Kt = n.Root, Qt = n.Trigger, Xt = n.Group, Yt = n.Portal, $t = n.Sub, Wt =
|
|
|
443
440
|
...d,
|
|
444
441
|
children: [
|
|
445
442
|
a,
|
|
446
|
-
/* @__PURE__ */ o
|
|
443
|
+
/* @__PURE__ */ o(_, { className: "ml-auto h-4 w-4" })
|
|
447
444
|
]
|
|
448
445
|
}
|
|
449
446
|
));
|
|
450
447
|
Fe.displayName = n.SubTrigger.displayName;
|
|
451
|
-
const Be = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o
|
|
448
|
+
const Be = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(
|
|
452
449
|
n.SubContent,
|
|
453
450
|
{
|
|
454
451
|
ref: a,
|
|
@@ -460,7 +457,7 @@ const Be = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o.jsx(
|
|
|
460
457
|
}
|
|
461
458
|
));
|
|
462
459
|
Be.displayName = n.SubContent.displayName;
|
|
463
|
-
const Ue = r.forwardRef(({ className: e, sideOffset: t = 4, ...a }, d) => /* @__PURE__ */ o
|
|
460
|
+
const Ue = r.forwardRef(({ className: e, sideOffset: t = 4, ...a }, d) => /* @__PURE__ */ o(n.Portal, { children: /* @__PURE__ */ o(
|
|
464
461
|
n.Content,
|
|
465
462
|
{
|
|
466
463
|
ref: d,
|
|
@@ -474,7 +471,7 @@ const Ue = r.forwardRef(({ className: e, sideOffset: t = 4, ...a }, d) => /* @__
|
|
|
474
471
|
}
|
|
475
472
|
) }));
|
|
476
473
|
Ue.displayName = n.Content.displayName;
|
|
477
|
-
const qe = r.forwardRef(({ className: e, inset: t, ...a }, d) => /* @__PURE__ */ o
|
|
474
|
+
const qe = r.forwardRef(({ className: e, inset: t, ...a }, d) => /* @__PURE__ */ o(
|
|
478
475
|
n.Item,
|
|
479
476
|
{
|
|
480
477
|
ref: d,
|
|
@@ -487,7 +484,7 @@ const qe = r.forwardRef(({ className: e, inset: t, ...a }, d) => /* @__PURE__ */
|
|
|
487
484
|
}
|
|
488
485
|
));
|
|
489
486
|
qe.displayName = n.Item.displayName;
|
|
490
|
-
const Je = r.forwardRef(({ className: e, children: t, checked: a, ...d }, l) => /* @__PURE__ */
|
|
487
|
+
const Je = r.forwardRef(({ className: e, children: t, checked: a, ...d }, l) => /* @__PURE__ */ c(
|
|
491
488
|
n.CheckboxItem,
|
|
492
489
|
{
|
|
493
490
|
ref: l,
|
|
@@ -498,13 +495,13 @@ const Je = r.forwardRef(({ className: e, children: t, checked: a, ...d }, l) =>
|
|
|
498
495
|
checked: a,
|
|
499
496
|
...d,
|
|
500
497
|
children: [
|
|
501
|
-
/* @__PURE__ */ o
|
|
498
|
+
/* @__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(A, { className: "h-4 w-4" }) }) }),
|
|
502
499
|
t
|
|
503
500
|
]
|
|
504
501
|
}
|
|
505
502
|
));
|
|
506
503
|
Je.displayName = n.CheckboxItem.displayName;
|
|
507
|
-
const Ke = r.forwardRef(({ className: e, children: t, ...a }, d) => /* @__PURE__ */
|
|
504
|
+
const Ke = r.forwardRef(({ className: e, children: t, ...a }, d) => /* @__PURE__ */ c(
|
|
508
505
|
n.RadioItem,
|
|
509
506
|
{
|
|
510
507
|
ref: d,
|
|
@@ -514,13 +511,13 @@ const Ke = r.forwardRef(({ className: e, children: t, ...a }, d) => /* @__PURE__
|
|
|
514
511
|
),
|
|
515
512
|
...a,
|
|
516
513
|
children: [
|
|
517
|
-
/* @__PURE__ */ o
|
|
514
|
+
/* @__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(O, { className: "h-4 w-4 fill-current" }) }) }),
|
|
518
515
|
t
|
|
519
516
|
]
|
|
520
517
|
}
|
|
521
518
|
));
|
|
522
519
|
Ke.displayName = n.RadioItem.displayName;
|
|
523
|
-
const Qe = r.forwardRef(({ className: e, inset: t, ...a }, d) => /* @__PURE__ */ o
|
|
520
|
+
const Qe = r.forwardRef(({ className: e, inset: t, ...a }, d) => /* @__PURE__ */ o(
|
|
524
521
|
n.Label,
|
|
525
522
|
{
|
|
526
523
|
ref: d,
|
|
@@ -529,12 +526,12 @@ const Qe = r.forwardRef(({ className: e, inset: t, ...a }, d) => /* @__PURE__ */
|
|
|
529
526
|
}
|
|
530
527
|
));
|
|
531
528
|
Qe.displayName = n.Label.displayName;
|
|
532
|
-
const Xe = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o
|
|
529
|
+
const Xe = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(n.Separator, { ref: a, className: s("-mx-1 my-1 h-px bg-muted", e), ...t }));
|
|
533
530
|
Xe.displayName = n.Separator.displayName;
|
|
534
|
-
const Ye = ({ className: e, ...t }) => /* @__PURE__ */ o
|
|
531
|
+
const Ye = ({ className: e, ...t }) => /* @__PURE__ */ o("span", { className: s("ml-auto text-xs tracking-widest opacity-60", e), ...t });
|
|
535
532
|
Ye.displayName = "DropdownMenuShortcut";
|
|
536
|
-
const $e = r.forwardRef(({ className: e, orientation: t = "horizontal", decorative: a = !0, ...d }, l) => /* @__PURE__ */ o
|
|
537
|
-
|
|
533
|
+
const $e = r.forwardRef(({ className: e, orientation: t = "horizontal", decorative: a = !0, ...d }, l) => /* @__PURE__ */ o(
|
|
534
|
+
V.Root,
|
|
538
535
|
{
|
|
539
536
|
ref: l,
|
|
540
537
|
decorative: a,
|
|
@@ -543,22 +540,22 @@ const $e = r.forwardRef(({ className: e, orientation: t = "horizontal", decorati
|
|
|
543
540
|
...d
|
|
544
541
|
}
|
|
545
542
|
));
|
|
546
|
-
$e.displayName =
|
|
543
|
+
$e.displayName = V.Root.displayName;
|
|
547
544
|
const We = 1, Ze = 1e6;
|
|
548
|
-
let
|
|
545
|
+
let k = 0;
|
|
549
546
|
function et() {
|
|
550
|
-
return
|
|
547
|
+
return k = (k + 1) % Number.MAX_VALUE, k.toString();
|
|
551
548
|
}
|
|
552
|
-
const
|
|
553
|
-
if (
|
|
549
|
+
const D = /* @__PURE__ */ new Map(), z = (e) => {
|
|
550
|
+
if (D.has(e))
|
|
554
551
|
return;
|
|
555
552
|
const t = setTimeout(() => {
|
|
556
|
-
|
|
553
|
+
D.delete(e), h({
|
|
557
554
|
type: "REMOVE_TOAST",
|
|
558
555
|
toastId: e
|
|
559
556
|
});
|
|
560
557
|
}, Ze);
|
|
561
|
-
|
|
558
|
+
D.set(e, t);
|
|
562
559
|
}, tt = (e, t) => {
|
|
563
560
|
switch (t.type) {
|
|
564
561
|
case "ADD_TOAST":
|
|
@@ -573,8 +570,8 @@ const S = /* @__PURE__ */ new Map(), A = (e) => {
|
|
|
573
570
|
};
|
|
574
571
|
case "DISMISS_TOAST": {
|
|
575
572
|
const { toastId: a } = t;
|
|
576
|
-
return a ?
|
|
577
|
-
|
|
573
|
+
return a ? z(a) : e.toasts.forEach((d) => {
|
|
574
|
+
z(d.id);
|
|
578
575
|
}), {
|
|
579
576
|
...e,
|
|
580
577
|
toasts: e.toasts.map(
|
|
@@ -594,19 +591,19 @@ const S = /* @__PURE__ */ new Map(), A = (e) => {
|
|
|
594
591
|
toasts: e.toasts.filter((a) => a.id !== t.toastId)
|
|
595
592
|
};
|
|
596
593
|
}
|
|
597
|
-
},
|
|
598
|
-
let
|
|
599
|
-
function
|
|
600
|
-
|
|
601
|
-
t(
|
|
594
|
+
}, v = [];
|
|
595
|
+
let C = { toasts: [] };
|
|
596
|
+
function h(e) {
|
|
597
|
+
C = tt(C, e), v.forEach((t) => {
|
|
598
|
+
t(C);
|
|
602
599
|
});
|
|
603
600
|
}
|
|
604
601
|
function at({ ...e }) {
|
|
605
|
-
const t = et(), a = (l) =>
|
|
602
|
+
const t = et(), a = (l) => h({
|
|
606
603
|
type: "UPDATE_TOAST",
|
|
607
604
|
toast: { ...l, id: t }
|
|
608
|
-
}), d = () =>
|
|
609
|
-
return
|
|
605
|
+
}), d = () => h({ type: "DISMISS_TOAST", toastId: t });
|
|
606
|
+
return h({
|
|
610
607
|
type: "ADD_TOAST",
|
|
611
608
|
toast: {
|
|
612
609
|
...e,
|
|
@@ -623,18 +620,18 @@ function at({ ...e }) {
|
|
|
623
620
|
};
|
|
624
621
|
}
|
|
625
622
|
function ot() {
|
|
626
|
-
const [e, t] = r.useState(
|
|
627
|
-
return r.useEffect(() => (
|
|
628
|
-
const a =
|
|
629
|
-
a > -1 &&
|
|
623
|
+
const [e, t] = r.useState(C);
|
|
624
|
+
return r.useEffect(() => (v.push(t), () => {
|
|
625
|
+
const a = v.indexOf(t);
|
|
626
|
+
a > -1 && v.splice(a, 1);
|
|
630
627
|
}), [e]), {
|
|
631
628
|
...e,
|
|
632
629
|
toast: at,
|
|
633
|
-
dismiss: (a) =>
|
|
630
|
+
dismiss: (a) => h({ type: "DISMISS_TOAST", toastId: a })
|
|
634
631
|
};
|
|
635
632
|
}
|
|
636
|
-
const st =
|
|
637
|
-
|
|
633
|
+
const st = g.Provider, U = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(
|
|
634
|
+
g.Viewport,
|
|
638
635
|
{
|
|
639
636
|
ref: a,
|
|
640
637
|
className: s(
|
|
@@ -644,8 +641,8 @@ const st = u.Provider, B = r.forwardRef(({ className: e, ...t }, a) => /* @__PUR
|
|
|
644
641
|
...t
|
|
645
642
|
}
|
|
646
643
|
));
|
|
647
|
-
|
|
648
|
-
const rt =
|
|
644
|
+
U.displayName = g.Viewport.displayName;
|
|
645
|
+
const rt = R(
|
|
649
646
|
"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",
|
|
650
647
|
{
|
|
651
648
|
variants: {
|
|
@@ -658,10 +655,10 @@ const rt = j(
|
|
|
658
655
|
variant: "default"
|
|
659
656
|
}
|
|
660
657
|
}
|
|
661
|
-
),
|
|
662
|
-
|
|
663
|
-
const dt = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o
|
|
664
|
-
|
|
658
|
+
), q = r.forwardRef(({ className: e, variant: t, ...a }, d) => /* @__PURE__ */ o(g.Root, { ref: d, className: s(rt({ variant: t }), e), ...a }));
|
|
659
|
+
q.displayName = g.Root.displayName;
|
|
660
|
+
const dt = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(
|
|
661
|
+
g.Action,
|
|
665
662
|
{
|
|
666
663
|
ref: a,
|
|
667
664
|
className: s(
|
|
@@ -671,9 +668,9 @@ const dt = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o.jsx(
|
|
|
671
668
|
...t
|
|
672
669
|
}
|
|
673
670
|
));
|
|
674
|
-
dt.displayName =
|
|
675
|
-
const
|
|
676
|
-
|
|
671
|
+
dt.displayName = g.Action.displayName;
|
|
672
|
+
const J = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(
|
|
673
|
+
g.Close,
|
|
677
674
|
{
|
|
678
675
|
ref: a,
|
|
679
676
|
className: s(
|
|
@@ -682,30 +679,30 @@ const q = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o.jsx(
|
|
|
682
679
|
),
|
|
683
680
|
"toast-close": "",
|
|
684
681
|
...t,
|
|
685
|
-
children: /* @__PURE__ */ o
|
|
682
|
+
children: /* @__PURE__ */ o(P, { className: "h-4 w-4" })
|
|
686
683
|
}
|
|
687
684
|
));
|
|
688
|
-
|
|
689
|
-
const
|
|
690
|
-
|
|
691
|
-
const
|
|
692
|
-
|
|
693
|
-
function
|
|
685
|
+
J.displayName = g.Close.displayName;
|
|
686
|
+
const K = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(g.Title, { ref: a, className: s("text-sm font-semibold [&+div]:text-xs", e), ...t }));
|
|
687
|
+
K.displayName = g.Title.displayName;
|
|
688
|
+
const Q = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(g.Description, { ref: a, className: s("text-sm opacity-90", e), ...t }));
|
|
689
|
+
Q.displayName = g.Description.displayName;
|
|
690
|
+
function ea() {
|
|
694
691
|
const { toasts: e } = ot();
|
|
695
|
-
return /* @__PURE__ */
|
|
696
|
-
e.map(({ id: t, title: a, description: d, action: l, ...
|
|
697
|
-
/* @__PURE__ */
|
|
698
|
-
a && /* @__PURE__ */ o
|
|
699
|
-
d && /* @__PURE__ */ o
|
|
692
|
+
return /* @__PURE__ */ c(st, { children: [
|
|
693
|
+
e.map(({ id: t, title: a, description: d, action: l, ...S }) => /* @__PURE__ */ c(q, { ...S, children: [
|
|
694
|
+
/* @__PURE__ */ c("div", { className: "grid gap-1", children: [
|
|
695
|
+
a && /* @__PURE__ */ o(K, { children: a }),
|
|
696
|
+
d && /* @__PURE__ */ o(Q, { children: d })
|
|
700
697
|
] }),
|
|
701
698
|
l,
|
|
702
|
-
/* @__PURE__ */ o
|
|
699
|
+
/* @__PURE__ */ o(J, {})
|
|
703
700
|
] }, t)),
|
|
704
|
-
/* @__PURE__ */ o
|
|
701
|
+
/* @__PURE__ */ o(U, {})
|
|
705
702
|
] });
|
|
706
703
|
}
|
|
707
|
-
const
|
|
708
|
-
|
|
704
|
+
const ta = ({ className: e, ...t }) => /* @__PURE__ */ o("div", { className: s("animate-pulse rounded-md bg-primary/10", e), ...t }), X = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(
|
|
705
|
+
f,
|
|
709
706
|
{
|
|
710
707
|
ref: a,
|
|
711
708
|
className: s(
|
|
@@ -715,11 +712,11 @@ const ea = ({ className: e, ...t }) => /* @__PURE__ */ o.jsx("div", { className:
|
|
|
715
712
|
...t
|
|
716
713
|
}
|
|
717
714
|
));
|
|
718
|
-
|
|
719
|
-
const
|
|
720
|
-
/* @__PURE__ */ o
|
|
721
|
-
/* @__PURE__ */ o
|
|
722
|
-
|
|
715
|
+
X.displayName = f.displayName;
|
|
716
|
+
const aa = ({ children: e, ...t }) => /* @__PURE__ */ o(ge, { ...t, children: /* @__PURE__ */ o(F, { className: "overflow-hidden p-0", children: /* @__PURE__ */ o(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 }) }) }), nt = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ c("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
|
|
717
|
+
/* @__PURE__ */ o(W, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }),
|
|
718
|
+
/* @__PURE__ */ o(
|
|
719
|
+
f.Input,
|
|
723
720
|
{
|
|
724
721
|
ref: a,
|
|
725
722
|
className: s(
|
|
@@ -730,20 +727,20 @@ const ta = ({ children: e, ...t }) => /* @__PURE__ */ o.jsx(xe, { ...t, children
|
|
|
730
727
|
}
|
|
731
728
|
)
|
|
732
729
|
] }));
|
|
733
|
-
nt.displayName =
|
|
734
|
-
const it = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o
|
|
735
|
-
|
|
730
|
+
nt.displayName = f.Input.displayName;
|
|
731
|
+
const it = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(
|
|
732
|
+
f.List,
|
|
736
733
|
{
|
|
737
734
|
ref: a,
|
|
738
735
|
className: s("max-h-[300px] overflow-y-auto overflow-x-hidden", e),
|
|
739
736
|
...t
|
|
740
737
|
}
|
|
741
738
|
));
|
|
742
|
-
it.displayName =
|
|
743
|
-
const lt = r.forwardRef((e, t) => /* @__PURE__ */ o
|
|
744
|
-
lt.displayName =
|
|
745
|
-
const ct = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o
|
|
746
|
-
|
|
739
|
+
it.displayName = f.List.displayName;
|
|
740
|
+
const lt = r.forwardRef((e, t) => /* @__PURE__ */ o(f.Empty, { ref: t, className: "py-6 text-center text-sm", ...e }));
|
|
741
|
+
lt.displayName = f.Empty.displayName;
|
|
742
|
+
const ct = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(
|
|
743
|
+
f.Group,
|
|
747
744
|
{
|
|
748
745
|
ref: a,
|
|
749
746
|
className: s(
|
|
@@ -753,11 +750,11 @@ const ct = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o.jsx(
|
|
|
753
750
|
...t
|
|
754
751
|
}
|
|
755
752
|
));
|
|
756
|
-
ct.displayName =
|
|
757
|
-
const mt = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o
|
|
758
|
-
mt.displayName =
|
|
759
|
-
const pt = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o
|
|
760
|
-
|
|
753
|
+
ct.displayName = f.Group.displayName;
|
|
754
|
+
const mt = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(f.Separator, { ref: a, className: s("-mx-1 h-px bg-border", e), ...t }));
|
|
755
|
+
mt.displayName = f.Separator.displayName;
|
|
756
|
+
const pt = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(
|
|
757
|
+
f.Item,
|
|
761
758
|
{
|
|
762
759
|
ref: a,
|
|
763
760
|
className: s(
|
|
@@ -767,10 +764,10 @@ const pt = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o.jsx(
|
|
|
767
764
|
...t
|
|
768
765
|
}
|
|
769
766
|
));
|
|
770
|
-
pt.displayName =
|
|
771
|
-
const ft = ({ className: e, ...t }) => /* @__PURE__ */ o
|
|
767
|
+
pt.displayName = f.Item.displayName;
|
|
768
|
+
const ft = ({ className: e, ...t }) => /* @__PURE__ */ o("span", { className: s("ml-auto text-xs tracking-widest text-muted-foreground", e), ...t });
|
|
772
769
|
ft.displayName = "CommandShortcut";
|
|
773
|
-
const
|
|
770
|
+
const oa = i.Root, sa = i.Trigger, ra = i.Group, da = i.Portal, na = i.Sub, ia = i.RadioGroup, ut = r.forwardRef(({ className: e, inset: t, children: a, ...d }, l) => /* @__PURE__ */ c(
|
|
774
771
|
i.SubTrigger,
|
|
775
772
|
{
|
|
776
773
|
ref: l,
|
|
@@ -782,12 +779,12 @@ const aa = i.Root, oa = i.Trigger, sa = i.Group, ra = i.Portal, da = i.Sub, na =
|
|
|
782
779
|
...d,
|
|
783
780
|
children: [
|
|
784
781
|
a,
|
|
785
|
-
/* @__PURE__ */ o
|
|
782
|
+
/* @__PURE__ */ o(_, { className: "ml-auto h-4 w-4" })
|
|
786
783
|
]
|
|
787
784
|
}
|
|
788
785
|
));
|
|
789
786
|
ut.displayName = i.SubTrigger.displayName;
|
|
790
|
-
const
|
|
787
|
+
const gt = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(
|
|
791
788
|
i.SubContent,
|
|
792
789
|
{
|
|
793
790
|
ref: a,
|
|
@@ -798,8 +795,8 @@ const xt = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o.jsx(
|
|
|
798
795
|
...t
|
|
799
796
|
}
|
|
800
797
|
));
|
|
801
|
-
|
|
802
|
-
const
|
|
798
|
+
gt.displayName = i.SubContent.displayName;
|
|
799
|
+
const bt = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(i.Portal, { children: /* @__PURE__ */ o(
|
|
803
800
|
i.Content,
|
|
804
801
|
{
|
|
805
802
|
ref: a,
|
|
@@ -810,8 +807,8 @@ const gt = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o.jsx(i.P
|
|
|
810
807
|
...t
|
|
811
808
|
}
|
|
812
809
|
) }));
|
|
813
|
-
|
|
814
|
-
const
|
|
810
|
+
bt.displayName = i.Content.displayName;
|
|
811
|
+
const xt = r.forwardRef(({ className: e, inset: t, ...a }, d) => /* @__PURE__ */ o(
|
|
815
812
|
i.Item,
|
|
816
813
|
{
|
|
817
814
|
ref: d,
|
|
@@ -823,8 +820,8 @@ const bt = r.forwardRef(({ className: e, inset: t, ...a }, d) => /* @__PURE__ */
|
|
|
823
820
|
...a
|
|
824
821
|
}
|
|
825
822
|
));
|
|
826
|
-
|
|
827
|
-
const yt = r.forwardRef(({ className: e, children: t, checked: a, ...d }, l) => /* @__PURE__ */
|
|
823
|
+
xt.displayName = i.Item.displayName;
|
|
824
|
+
const yt = r.forwardRef(({ className: e, children: t, checked: a, ...d }, l) => /* @__PURE__ */ c(
|
|
828
825
|
i.CheckboxItem,
|
|
829
826
|
{
|
|
830
827
|
ref: l,
|
|
@@ -835,13 +832,13 @@ const yt = r.forwardRef(({ className: e, children: t, checked: a, ...d }, l) =>
|
|
|
835
832
|
checked: a,
|
|
836
833
|
...d,
|
|
837
834
|
children: [
|
|
838
|
-
/* @__PURE__ */ o
|
|
835
|
+
/* @__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(A, { className: "h-4 w-4" }) }) }),
|
|
839
836
|
t
|
|
840
837
|
]
|
|
841
838
|
}
|
|
842
839
|
));
|
|
843
840
|
yt.displayName = i.CheckboxItem.displayName;
|
|
844
|
-
const Nt = r.forwardRef(({ className: e, children: t, ...a }, d) => /* @__PURE__ */
|
|
841
|
+
const Nt = r.forwardRef(({ className: e, children: t, ...a }, d) => /* @__PURE__ */ c(
|
|
845
842
|
i.RadioItem,
|
|
846
843
|
{
|
|
847
844
|
ref: d,
|
|
@@ -851,13 +848,13 @@ const Nt = r.forwardRef(({ className: e, children: t, ...a }, d) => /* @__PURE__
|
|
|
851
848
|
),
|
|
852
849
|
...a,
|
|
853
850
|
children: [
|
|
854
|
-
/* @__PURE__ */ o
|
|
851
|
+
/* @__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(O, { className: "h-4 w-4 fill-current" }) }) }),
|
|
855
852
|
t
|
|
856
853
|
]
|
|
857
854
|
}
|
|
858
855
|
));
|
|
859
856
|
Nt.displayName = i.RadioItem.displayName;
|
|
860
|
-
const ht = r.forwardRef(({ className: e, inset: t, ...a }, d) => /* @__PURE__ */ o
|
|
857
|
+
const ht = r.forwardRef(({ className: e, inset: t, ...a }, d) => /* @__PURE__ */ o(
|
|
861
858
|
i.Label,
|
|
862
859
|
{
|
|
863
860
|
ref: d,
|
|
@@ -866,84 +863,84 @@ const ht = r.forwardRef(({ className: e, inset: t, ...a }, d) => /* @__PURE__ */
|
|
|
866
863
|
}
|
|
867
864
|
));
|
|
868
865
|
ht.displayName = i.Label.displayName;
|
|
869
|
-
const wt = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o
|
|
866
|
+
const wt = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(i.Separator, { ref: a, className: s("-mx-1 my-1 h-px bg-border", e), ...t }));
|
|
870
867
|
wt.displayName = i.Separator.displayName;
|
|
871
|
-
const vt = ({ className: e, ...t }) => /* @__PURE__ */ o
|
|
868
|
+
const vt = ({ className: e, ...t }) => /* @__PURE__ */ o("span", { className: s("ml-auto text-xs tracking-widest text-muted-foreground", e), ...t });
|
|
872
869
|
vt.displayName = "ContextMenuShortcut";
|
|
873
870
|
export {
|
|
874
|
-
|
|
875
|
-
|
|
871
|
+
Jt as $,
|
|
872
|
+
Mt as A,
|
|
876
873
|
oe as B,
|
|
877
874
|
he as C,
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
875
|
+
ge as D,
|
|
876
|
+
Ce as E,
|
|
877
|
+
Re as F,
|
|
878
|
+
B as G,
|
|
879
|
+
Lt as H,
|
|
880
|
+
Se as I,
|
|
881
|
+
Me as J,
|
|
882
|
+
ze as K,
|
|
883
|
+
De as L,
|
|
884
|
+
Pe as M,
|
|
888
885
|
Et as N,
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
886
|
+
Gt as O,
|
|
887
|
+
_e as P,
|
|
888
|
+
jt as Q,
|
|
889
|
+
Vt as R,
|
|
890
|
+
Ae as S,
|
|
891
|
+
Ie as T,
|
|
892
|
+
Ht as U,
|
|
893
|
+
Ft as V,
|
|
894
|
+
Oe as W,
|
|
895
|
+
Bt as X,
|
|
896
|
+
Ut as Y,
|
|
897
|
+
Le as Z,
|
|
898
|
+
qt as _,
|
|
902
899
|
ae as a,
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
900
|
+
Kt as a0,
|
|
901
|
+
Ve as a1,
|
|
902
|
+
je as a2,
|
|
903
|
+
Ee as a3,
|
|
907
904
|
Ge as a4,
|
|
908
905
|
He as a5,
|
|
909
|
-
|
|
910
|
-
|
|
906
|
+
Qt as a6,
|
|
907
|
+
Xt as a7,
|
|
911
908
|
Ue as a8,
|
|
912
909
|
qe as a9,
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
910
|
+
oa as aA,
|
|
911
|
+
sa as aB,
|
|
912
|
+
bt as aC,
|
|
913
|
+
xt as aD,
|
|
917
914
|
yt as aE,
|
|
918
915
|
Nt as aF,
|
|
919
916
|
ht as aG,
|
|
920
917
|
wt as aH,
|
|
921
918
|
vt as aI,
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
919
|
+
ra as aJ,
|
|
920
|
+
da as aK,
|
|
921
|
+
na as aL,
|
|
922
|
+
gt as aM,
|
|
926
923
|
ut as aN,
|
|
927
|
-
|
|
924
|
+
ia as aO,
|
|
928
925
|
Je as aa,
|
|
929
926
|
Ke as ab,
|
|
930
927
|
Qe as ac,
|
|
931
928
|
Xe as ad,
|
|
932
929
|
Ye as ae,
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
930
|
+
Yt as af,
|
|
931
|
+
$t as ag,
|
|
932
|
+
Wt as ah,
|
|
936
933
|
Be as ai,
|
|
937
934
|
Fe as aj,
|
|
938
|
-
|
|
935
|
+
Zt as ak,
|
|
939
936
|
$e as al,
|
|
940
937
|
tt as am,
|
|
941
938
|
ot as an,
|
|
942
939
|
at as ao,
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
940
|
+
ea as ap,
|
|
941
|
+
ta as aq,
|
|
942
|
+
X as ar,
|
|
943
|
+
aa as as,
|
|
947
944
|
nt as at,
|
|
948
945
|
it as au,
|
|
949
946
|
lt as av,
|
|
@@ -951,15 +948,15 @@ export {
|
|
|
951
948
|
pt as ax,
|
|
952
949
|
ft as ay,
|
|
953
950
|
mt as az,
|
|
954
|
-
|
|
951
|
+
M as b,
|
|
955
952
|
s as c,
|
|
956
953
|
se as d,
|
|
957
954
|
re as e,
|
|
958
955
|
de as f,
|
|
959
|
-
|
|
956
|
+
zt as g,
|
|
960
957
|
ne as h,
|
|
961
|
-
|
|
962
|
-
|
|
958
|
+
Pt as i,
|
|
959
|
+
_t as j,
|
|
963
960
|
ie as k,
|
|
964
961
|
le as l,
|
|
965
962
|
ce as m,
|
|
@@ -967,13 +964,13 @@ export {
|
|
|
967
964
|
pe as o,
|
|
968
965
|
fe as p,
|
|
969
966
|
ue as q,
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
967
|
+
Ot as r,
|
|
968
|
+
F as s,
|
|
969
|
+
be as t,
|
|
970
|
+
xe as u,
|
|
974
971
|
ye as v,
|
|
975
972
|
Ne as w,
|
|
976
973
|
we as x,
|
|
977
|
-
|
|
974
|
+
Te as y,
|
|
978
975
|
ve as z
|
|
979
976
|
};
|