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