@lglab/compose-ui 0.16.0 → 0.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/context-menu.d.ts +100 -0
- package/dist/components/context-menu.d.ts.map +1 -0
- package/dist/components/menubar.d.ts +112 -0
- package/dist/components/menubar.d.ts.map +1 -0
- package/dist/components/toggle-group.d.ts +3 -3
- package/dist/components/toggle-group.d.ts.map +1 -1
- package/dist/components/toggle.d.ts +3 -3
- package/dist/components/toggle.d.ts.map +1 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.es.js +808 -448
- package/dist/lib/control-variants.d.ts +7 -0
- package/dist/lib/control-variants.d.ts.map +1 -0
- package/package.json +4 -4
- package/dist/lib/toggle-variants.d.ts +0 -7
- package/dist/lib/toggle-variants.d.ts.map +0 -1
package/dist/index.es.js
CHANGED
|
@@ -1,27 +1,29 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as t, jsxs as
|
|
3
|
-
import { Button as
|
|
4
|
-
import { cva as
|
|
5
|
-
import { clsx as
|
|
6
|
-
import { twMerge as
|
|
7
|
-
import { Collapsible as
|
|
8
|
-
import { AlertDialog as
|
|
9
|
-
import { AlertDialog as
|
|
10
|
-
import { Avatar as
|
|
11
|
-
import * as
|
|
12
|
-
import { ScrollArea as
|
|
2
|
+
import { jsx as t, jsxs as b } from "react/jsx-runtime";
|
|
3
|
+
import { Button as V } from "@base-ui/react/button";
|
|
4
|
+
import { cva as m } from "class-variance-authority";
|
|
5
|
+
import { clsx as H } from "clsx";
|
|
6
|
+
import { twMerge as G } from "tailwind-merge";
|
|
7
|
+
import { Collapsible as P } from "@base-ui/react/collapsible";
|
|
8
|
+
import { AlertDialog as p } from "@base-ui/react/alert-dialog";
|
|
9
|
+
import { AlertDialog as ir } from "@base-ui/react/alert-dialog";
|
|
10
|
+
import { Avatar as I } from "@base-ui/react/avatar";
|
|
11
|
+
import * as x from "react";
|
|
12
|
+
import { ScrollArea as f } from "@base-ui/react/scroll-area";
|
|
13
13
|
import { Separator as _ } from "@base-ui/react/separator";
|
|
14
|
-
import { Switch as
|
|
15
|
-
import { Toggle as
|
|
16
|
-
import { Tabs as
|
|
17
|
-
import { Dialog as
|
|
18
|
-
import { Accordion as
|
|
19
|
-
import { Meter as
|
|
20
|
-
import { Menu as
|
|
21
|
-
import { Popover as
|
|
22
|
-
import { Progress as
|
|
23
|
-
import { ToggleGroup as
|
|
24
|
-
|
|
14
|
+
import { Switch as D } from "@base-ui/react/switch";
|
|
15
|
+
import { Toggle as A } from "@base-ui/react/toggle";
|
|
16
|
+
import { Tabs as h } from "@base-ui/react/tabs";
|
|
17
|
+
import { Dialog as d } from "@base-ui/react/dialog";
|
|
18
|
+
import { Accordion as v } from "@base-ui/react/accordion";
|
|
19
|
+
import { Meter as w } from "@base-ui/react/meter";
|
|
20
|
+
import { Menu as s } from "@base-ui/react/menu";
|
|
21
|
+
import { Popover as c } from "@base-ui/react/popover";
|
|
22
|
+
import { Progress as C } from "@base-ui/react/progress";
|
|
23
|
+
import { ToggleGroup as j } from "@base-ui/react/toggle-group";
|
|
24
|
+
import { ContextMenu as l } from "@base-ui/react/context-menu";
|
|
25
|
+
import { Menubar as B } from "@base-ui/react/menubar";
|
|
26
|
+
const i = m(
|
|
25
27
|
[
|
|
26
28
|
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all select-none [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive"
|
|
27
29
|
],
|
|
@@ -51,37 +53,37 @@ const d = u(
|
|
|
51
53
|
}
|
|
52
54
|
);
|
|
53
55
|
function r(...e) {
|
|
54
|
-
return H(
|
|
56
|
+
return G(H(e));
|
|
55
57
|
}
|
|
56
58
|
const F = ({
|
|
57
59
|
className: e,
|
|
58
60
|
variant: a,
|
|
59
61
|
size: o,
|
|
60
|
-
disabled:
|
|
61
|
-
children:
|
|
62
|
-
...
|
|
62
|
+
disabled: n,
|
|
63
|
+
children: u,
|
|
64
|
+
...g
|
|
63
65
|
}) => /* @__PURE__ */ t(
|
|
64
|
-
|
|
66
|
+
V,
|
|
65
67
|
{
|
|
66
|
-
className: r(
|
|
67
|
-
disabled:
|
|
68
|
-
...
|
|
69
|
-
children:
|
|
68
|
+
className: r(i({ variant: a, size: o }), e),
|
|
69
|
+
disabled: n,
|
|
70
|
+
...g,
|
|
71
|
+
children: u
|
|
70
72
|
}
|
|
71
73
|
);
|
|
72
74
|
F.displayName = "Button";
|
|
73
|
-
const
|
|
74
|
-
|
|
75
|
-
const
|
|
76
|
-
|
|
75
|
+
const Z = ({ className: e, ...a }) => /* @__PURE__ */ t(P.Root, { className: r("w-full", e), ...a });
|
|
76
|
+
Z.displayName = "CollapsibleRoot";
|
|
77
|
+
const $ = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
78
|
+
P.Trigger,
|
|
77
79
|
{
|
|
78
80
|
className: r("flex items-center justify-between font-medium", e),
|
|
79
81
|
...a
|
|
80
82
|
}
|
|
81
83
|
);
|
|
82
|
-
|
|
84
|
+
$.displayName = "CollapsibleTrigger";
|
|
83
85
|
const q = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
84
|
-
|
|
86
|
+
P.Panel,
|
|
85
87
|
{
|
|
86
88
|
className: r(
|
|
87
89
|
'[&[hidden]:not([hidden="until-found"])]:hidden h-(--collapsible-panel-height)',
|
|
@@ -94,25 +96,25 @@ const q = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
|
94
96
|
}
|
|
95
97
|
);
|
|
96
98
|
q.displayName = "CollapsiblePanel";
|
|
97
|
-
const
|
|
98
|
-
|
|
99
|
-
const
|
|
99
|
+
const O = (e) => /* @__PURE__ */ t(p.Root, { ...e });
|
|
100
|
+
O.displayName = "AlertDialogRoot";
|
|
101
|
+
const E = ({
|
|
100
102
|
className: e,
|
|
101
103
|
variant: a,
|
|
102
104
|
size: o,
|
|
103
|
-
...
|
|
105
|
+
...n
|
|
104
106
|
}) => /* @__PURE__ */ t(
|
|
105
|
-
|
|
107
|
+
p.Trigger,
|
|
106
108
|
{
|
|
107
|
-
className: r(
|
|
108
|
-
...
|
|
109
|
+
className: r(i({ variant: a, size: o }), e),
|
|
110
|
+
...n
|
|
109
111
|
}
|
|
110
112
|
);
|
|
111
|
-
|
|
112
|
-
const
|
|
113
|
-
|
|
114
|
-
const
|
|
115
|
-
|
|
113
|
+
E.displayName = "AlertDialogTrigger";
|
|
114
|
+
const J = (e) => /* @__PURE__ */ t(p.Portal, { ...e });
|
|
115
|
+
J.displayName = "AlertDialogPortal";
|
|
116
|
+
const K = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
117
|
+
p.Backdrop,
|
|
116
118
|
{
|
|
117
119
|
className: r(
|
|
118
120
|
"fixed inset-0 z-50 bg-black/50 backdrop-blur-sm",
|
|
@@ -123,16 +125,16 @@ const O = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
|
123
125
|
...a
|
|
124
126
|
}
|
|
125
127
|
);
|
|
126
|
-
|
|
127
|
-
const
|
|
128
|
-
|
|
128
|
+
K.displayName = "AlertDialogBackdrop";
|
|
129
|
+
const Q = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
130
|
+
p.Viewport,
|
|
129
131
|
{
|
|
130
132
|
className: r("fixed inset-0 z-50 flex items-center justify-center p-4", e),
|
|
131
133
|
...a
|
|
132
134
|
}
|
|
133
135
|
);
|
|
134
|
-
|
|
135
|
-
const
|
|
136
|
+
Q.displayName = "AlertDialogViewport";
|
|
137
|
+
const U = m(
|
|
136
138
|
[
|
|
137
139
|
"fixed left-1/2 top-1/2 z-50 -translate-x-1/2 -translate-y-1/2",
|
|
138
140
|
"w-full max-w-[calc(100vw-2rem)] rounded-lg border border-border bg-background p-6 shadow-lg",
|
|
@@ -156,38 +158,38 @@ const K = u(
|
|
|
156
158
|
size: "default"
|
|
157
159
|
}
|
|
158
160
|
}
|
|
159
|
-
),
|
|
160
|
-
|
|
161
|
+
), W = ({ className: e, size: a, ...o }) => /* @__PURE__ */ t(
|
|
162
|
+
p.Popup,
|
|
161
163
|
{
|
|
162
|
-
className: r(
|
|
164
|
+
className: r(U({ size: a }), e),
|
|
163
165
|
...o
|
|
164
166
|
}
|
|
165
167
|
);
|
|
166
|
-
|
|
167
|
-
const
|
|
168
|
-
|
|
168
|
+
W.displayName = "AlertDialogPopup";
|
|
169
|
+
const X = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
170
|
+
p.Title,
|
|
169
171
|
{
|
|
170
172
|
className: r("text-lg font-semibold leading-none tracking-tight", e),
|
|
171
173
|
...a
|
|
172
174
|
}
|
|
173
175
|
);
|
|
174
|
-
|
|
175
|
-
const
|
|
176
|
-
|
|
177
|
-
const
|
|
176
|
+
X.displayName = "AlertDialogTitle";
|
|
177
|
+
const Y = ({ className: e, ...a }) => /* @__PURE__ */ t(p.Description, { className: r("mt-2", e), ...a });
|
|
178
|
+
Y.displayName = "AlertDialogDescription";
|
|
179
|
+
const ee = ({
|
|
178
180
|
className: e,
|
|
179
181
|
variant: a,
|
|
180
182
|
size: o,
|
|
181
|
-
...
|
|
183
|
+
...n
|
|
182
184
|
}) => /* @__PURE__ */ t(
|
|
183
|
-
|
|
185
|
+
p.Close,
|
|
184
186
|
{
|
|
185
|
-
className: r(
|
|
186
|
-
...
|
|
187
|
+
className: r(i({ variant: a ?? "outline", size: o }), e),
|
|
188
|
+
...n
|
|
187
189
|
}
|
|
188
190
|
);
|
|
189
|
-
|
|
190
|
-
const
|
|
191
|
+
ee.displayName = "AlertDialogClose";
|
|
192
|
+
const z = m(
|
|
191
193
|
[
|
|
192
194
|
"relative flex shrink-0 items-center justify-center overflow-hidden rounded-full",
|
|
193
195
|
"bg-muted text-foreground",
|
|
@@ -205,18 +207,18 @@ const M = u(
|
|
|
205
207
|
size: "default"
|
|
206
208
|
}
|
|
207
209
|
}
|
|
208
|
-
),
|
|
209
|
-
|
|
210
|
-
const
|
|
211
|
-
|
|
210
|
+
), S = ({ className: e, size: a, ...o }) => /* @__PURE__ */ t(I.Root, { className: r(z({ size: a }), e), ...o });
|
|
211
|
+
S.displayName = "AvatarRoot";
|
|
212
|
+
const ae = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
213
|
+
I.Image,
|
|
212
214
|
{
|
|
213
215
|
className: r("aspect-square h-full w-full object-cover", e),
|
|
214
216
|
...a
|
|
215
217
|
}
|
|
216
218
|
);
|
|
217
|
-
|
|
218
|
-
const
|
|
219
|
-
|
|
219
|
+
ae.displayName = "AvatarImage";
|
|
220
|
+
const te = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
221
|
+
I.Fallback,
|
|
220
222
|
{
|
|
221
223
|
className: r(
|
|
222
224
|
"flex h-full w-full items-center justify-center font-medium",
|
|
@@ -225,55 +227,55 @@ const ee = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
|
225
227
|
...a
|
|
226
228
|
}
|
|
227
229
|
);
|
|
228
|
-
|
|
229
|
-
const
|
|
230
|
+
te.displayName = "AvatarFallback";
|
|
231
|
+
const re = ({
|
|
230
232
|
"aria-label": e,
|
|
231
233
|
maxVisible: a,
|
|
232
234
|
className: o,
|
|
233
|
-
children:
|
|
235
|
+
children: n
|
|
234
236
|
}) => {
|
|
235
|
-
const
|
|
236
|
-
const
|
|
237
|
-
return
|
|
237
|
+
const u = x.Children.toArray(n), g = u.length, y = a !== void 0 ? Math.min(a, g) : g, M = g - y, k = u.slice(0, y), L = (() => {
|
|
238
|
+
const N = u[0];
|
|
239
|
+
return x.isValidElement(N) && N.type === S ? N.props.size ?? "default" : "default";
|
|
238
240
|
})();
|
|
239
|
-
return /* @__PURE__ */
|
|
240
|
-
|
|
241
|
-
|
|
241
|
+
return /* @__PURE__ */ b("ul", { "aria-label": e, className: r("flex -space-x-2", o), children: [
|
|
242
|
+
k.map((N, T) => /* @__PURE__ */ t("li", { children: N }, T)),
|
|
243
|
+
M > 0 && /* @__PURE__ */ t("li", { children: /* @__PURE__ */ b(
|
|
242
244
|
"span",
|
|
243
245
|
{
|
|
244
246
|
className: r(
|
|
245
247
|
"relative flex shrink-0 items-center justify-center overflow-hidden rounded-full",
|
|
246
248
|
"bg-muted text-foreground border-2 border-background",
|
|
247
249
|
"font-medium",
|
|
248
|
-
|
|
250
|
+
z({ size: L })
|
|
249
251
|
),
|
|
250
252
|
children: [
|
|
251
253
|
"+",
|
|
252
|
-
|
|
254
|
+
M
|
|
253
255
|
]
|
|
254
256
|
}
|
|
255
257
|
) })
|
|
256
258
|
] });
|
|
257
259
|
};
|
|
258
|
-
|
|
259
|
-
const
|
|
260
|
-
|
|
261
|
-
const
|
|
262
|
-
|
|
260
|
+
re.displayName = "AvatarStack";
|
|
261
|
+
const oe = ({ className: e, ...a }) => /* @__PURE__ */ t(f.Root, { className: r("relative", e), ...a });
|
|
262
|
+
oe.displayName = "ScrollAreaRoot";
|
|
263
|
+
const se = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
264
|
+
f.Viewport,
|
|
263
265
|
{
|
|
264
266
|
className: r("h-full overscroll-contain pr-3", e),
|
|
265
267
|
...a
|
|
266
268
|
}
|
|
267
269
|
);
|
|
268
|
-
|
|
269
|
-
const
|
|
270
|
-
|
|
271
|
-
const
|
|
270
|
+
se.displayName = "ScrollAreaViewport";
|
|
271
|
+
const ne = ({ className: e, ...a }) => /* @__PURE__ */ t(f.Content, { className: r("min-w-full", e), ...a });
|
|
272
|
+
ne.displayName = "ScrollAreaContent";
|
|
273
|
+
const ie = ({
|
|
272
274
|
className: e,
|
|
273
275
|
orientation: a = "vertical",
|
|
274
276
|
...o
|
|
275
277
|
}) => /* @__PURE__ */ t(
|
|
276
|
-
|
|
278
|
+
f.Scrollbar,
|
|
277
279
|
{
|
|
278
280
|
className: r(
|
|
279
281
|
"flex touch-none select-none p-0.5 transition-colors duration-200 ease-out",
|
|
@@ -286,9 +288,9 @@ const se = ({
|
|
|
286
288
|
...o
|
|
287
289
|
}
|
|
288
290
|
);
|
|
289
|
-
|
|
291
|
+
ie.displayName = "ScrollAreaScrollbar";
|
|
290
292
|
const le = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
291
|
-
|
|
293
|
+
f.Thumb,
|
|
292
294
|
{
|
|
293
295
|
className: r(
|
|
294
296
|
"relative flex-1 rounded-full bg-border transition-colors",
|
|
@@ -299,9 +301,9 @@ const le = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
|
299
301
|
}
|
|
300
302
|
);
|
|
301
303
|
le.displayName = "ScrollAreaThumb";
|
|
302
|
-
const
|
|
303
|
-
|
|
304
|
-
const
|
|
304
|
+
const de = ({ className: e, ...a }) => /* @__PURE__ */ t(f.Corner, { className: r("bg-muted/50", e), ...a });
|
|
305
|
+
de.displayName = "ScrollAreaCorner";
|
|
306
|
+
const ce = ({
|
|
305
307
|
className: e,
|
|
306
308
|
orientation: a = "horizontal",
|
|
307
309
|
...o
|
|
@@ -317,9 +319,9 @@ const ie = ({
|
|
|
317
319
|
...o
|
|
318
320
|
}
|
|
319
321
|
);
|
|
320
|
-
|
|
321
|
-
const
|
|
322
|
-
|
|
322
|
+
ce.displayName = "Separator";
|
|
323
|
+
const ue = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
324
|
+
D.Root,
|
|
323
325
|
{
|
|
324
326
|
className: r(
|
|
325
327
|
"relative flex h-6 w-10 rounded-full",
|
|
@@ -334,9 +336,9 @@ const de = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
|
334
336
|
...a
|
|
335
337
|
}
|
|
336
338
|
);
|
|
337
|
-
|
|
338
|
-
const
|
|
339
|
-
|
|
339
|
+
ue.displayName = "SwitchRoot";
|
|
340
|
+
const me = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
341
|
+
D.Thumb,
|
|
340
342
|
{
|
|
341
343
|
className: r(
|
|
342
344
|
"aspect-square h-full rounded-full bg-background",
|
|
@@ -350,21 +352,22 @@ const ce = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
|
350
352
|
...a
|
|
351
353
|
}
|
|
352
354
|
);
|
|
353
|
-
|
|
354
|
-
const
|
|
355
|
+
me.displayName = "SwitchThumb";
|
|
356
|
+
const R = m(
|
|
355
357
|
[
|
|
356
358
|
"inline-flex items-center justify-center gap-2 rounded-md",
|
|
357
359
|
"text-sm font-medium",
|
|
358
360
|
"[&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0",
|
|
359
|
-
"select-none transition-colors duration-200"
|
|
361
|
+
"select-none transition-colors duration-200",
|
|
362
|
+
"border border-border bg-background shadow-xs"
|
|
360
363
|
],
|
|
361
364
|
{
|
|
362
365
|
variants: {
|
|
363
366
|
variant: {
|
|
364
367
|
default: [
|
|
365
|
-
"border border-border bg-background shadow-xs",
|
|
366
368
|
"hover:bg-accent hover:text-accent-foreground",
|
|
367
|
-
"data-pressed:border-primary data-pressed:bg-primary data-pressed:text-primary-foreground data-pressed:shadow-none"
|
|
369
|
+
"data-pressed:border-primary data-pressed:bg-primary data-pressed:text-primary-foreground data-pressed:shadow-none",
|
|
370
|
+
"data-popup-open:border-primary data-popup-open:bg-primary data-popup-open:text-primary-foreground data-popup-open:shadow-none"
|
|
368
371
|
],
|
|
369
372
|
ghost: ["hover:bg-accent"]
|
|
370
373
|
},
|
|
@@ -382,11 +385,17 @@ const V = u(
|
|
|
382
385
|
size: "default"
|
|
383
386
|
}
|
|
384
387
|
}
|
|
385
|
-
),
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
388
|
+
), pe = ({ className: e, variant: a, size: o, ...n }) => /* @__PURE__ */ t(
|
|
389
|
+
A,
|
|
390
|
+
{
|
|
391
|
+
className: r(R({ variant: a, size: o }), e),
|
|
392
|
+
...n
|
|
393
|
+
}
|
|
394
|
+
);
|
|
395
|
+
pe.displayName = "Toggle";
|
|
396
|
+
const ge = ({ className: e, ...a }) => /* @__PURE__ */ t(h.Root, { className: r("flex flex-col", e), ...a });
|
|
397
|
+
ge.displayName = "TabsRoot";
|
|
398
|
+
const be = m(
|
|
390
399
|
["relative inline-flex w-fit items-center gap-1", "rounded-lg bg-muted p-1"],
|
|
391
400
|
{
|
|
392
401
|
variants: {
|
|
@@ -399,15 +408,15 @@ const pe = u(
|
|
|
399
408
|
orientation: "horizontal"
|
|
400
409
|
}
|
|
401
410
|
}
|
|
402
|
-
),
|
|
403
|
-
|
|
411
|
+
), fe = ({ className: e, orientation: a = "horizontal", ...o }) => /* @__PURE__ */ t(
|
|
412
|
+
h.List,
|
|
404
413
|
{
|
|
405
|
-
className: r(
|
|
414
|
+
className: r(be({ orientation: a }), e),
|
|
406
415
|
...o
|
|
407
416
|
}
|
|
408
417
|
);
|
|
409
|
-
|
|
410
|
-
const
|
|
418
|
+
fe.displayName = "TabsList";
|
|
419
|
+
const ye = m(
|
|
411
420
|
[
|
|
412
421
|
"relative z-10 inline-flex items-center justify-center whitespace-nowrap",
|
|
413
422
|
"rounded-md px-3 py-1.5 text-sm font-medium",
|
|
@@ -428,9 +437,9 @@ const fe = u(
|
|
|
428
437
|
size: "default"
|
|
429
438
|
}
|
|
430
439
|
}
|
|
431
|
-
),
|
|
432
|
-
|
|
433
|
-
const
|
|
440
|
+
), Ne = ({ className: e, size: a, ...o }) => /* @__PURE__ */ t(h.Tab, { className: r(ye({ size: a }), e), ...o });
|
|
441
|
+
Ne.displayName = "TabsTab";
|
|
442
|
+
const xe = m(
|
|
434
443
|
["absolute rounded-md bg-background shadow-sm", "transition-all duration-200 ease-out"],
|
|
435
444
|
{
|
|
436
445
|
variants: {
|
|
@@ -443,34 +452,34 @@ const ye = u(
|
|
|
443
452
|
orientation: "horizontal"
|
|
444
453
|
}
|
|
445
454
|
}
|
|
446
|
-
),
|
|
455
|
+
), he = ({
|
|
447
456
|
className: e,
|
|
448
457
|
orientation: a = "horizontal",
|
|
449
458
|
...o
|
|
450
459
|
}) => /* @__PURE__ */ t(
|
|
451
|
-
|
|
460
|
+
h.Indicator,
|
|
452
461
|
{
|
|
453
|
-
className: r(
|
|
462
|
+
className: r(xe({ orientation: a }), e),
|
|
454
463
|
...o
|
|
455
464
|
}
|
|
456
465
|
);
|
|
457
|
-
|
|
458
|
-
const
|
|
459
|
-
|
|
460
|
-
const
|
|
461
|
-
|
|
462
|
-
const
|
|
463
|
-
|
|
466
|
+
he.displayName = "TabsIndicator";
|
|
467
|
+
const ve = ({ className: e, ...a }) => /* @__PURE__ */ t(h.Panel, { className: r("mt-2 ring-offset-background", e), ...a });
|
|
468
|
+
ve.displayName = "TabsPanel";
|
|
469
|
+
const we = (e) => /* @__PURE__ */ t(d.Root, { ...e });
|
|
470
|
+
we.displayName = "DialogRoot";
|
|
471
|
+
const Ce = ({ className: e, variant: a, size: o, ...n }) => /* @__PURE__ */ t(
|
|
472
|
+
d.Trigger,
|
|
464
473
|
{
|
|
465
|
-
className: r(
|
|
466
|
-
...
|
|
474
|
+
className: r(i({ variant: a, size: o }), e),
|
|
475
|
+
...n
|
|
467
476
|
}
|
|
468
477
|
);
|
|
469
|
-
|
|
470
|
-
const
|
|
471
|
-
|
|
478
|
+
Ce.displayName = "DialogTrigger";
|
|
479
|
+
const Me = (e) => /* @__PURE__ */ t(d.Portal, { ...e });
|
|
480
|
+
Me.displayName = "DialogPortal";
|
|
472
481
|
const ke = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
473
|
-
|
|
482
|
+
d.Backdrop,
|
|
474
483
|
{
|
|
475
484
|
className: r(
|
|
476
485
|
"fixed inset-0 z-50 bg-black/50 backdrop-blur-sm",
|
|
@@ -482,7 +491,7 @@ const ke = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
|
482
491
|
}
|
|
483
492
|
);
|
|
484
493
|
ke.displayName = "DialogBackdrop";
|
|
485
|
-
const Pe =
|
|
494
|
+
const Pe = m(
|
|
486
495
|
[
|
|
487
496
|
"fixed left-1/2 top-1/2 z-50 -translate-x-1/2 -translate-y-1/2",
|
|
488
497
|
"w-full max-w-[calc(100vw-2rem)] rounded-lg border border-border bg-background p-6 shadow-lg",
|
|
@@ -506,35 +515,35 @@ const Pe = u(
|
|
|
506
515
|
size: "default"
|
|
507
516
|
}
|
|
508
517
|
}
|
|
509
|
-
),
|
|
510
|
-
|
|
518
|
+
), Ie = ({ className: e, size: a, ...o }) => /* @__PURE__ */ t(
|
|
519
|
+
d.Popup,
|
|
511
520
|
{
|
|
512
521
|
className: r(Pe({ size: a }), e),
|
|
513
522
|
...o
|
|
514
523
|
}
|
|
515
524
|
);
|
|
516
|
-
|
|
517
|
-
const
|
|
518
|
-
|
|
525
|
+
Ie.displayName = "DialogPopup";
|
|
526
|
+
const Re = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
527
|
+
d.Title,
|
|
519
528
|
{
|
|
520
529
|
className: r("text-lg font-semibold leading-none tracking-tight", e),
|
|
521
530
|
...a
|
|
522
531
|
}
|
|
523
532
|
);
|
|
524
|
-
|
|
525
|
-
const Te = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
533
|
+
Re.displayName = "DialogTitle";
|
|
534
|
+
const Te = ({ className: e, ...a }) => /* @__PURE__ */ t(d.Description, { className: r("mt-2", e), ...a });
|
|
526
535
|
Te.displayName = "DialogDescription";
|
|
527
|
-
const
|
|
528
|
-
|
|
536
|
+
const De = ({ className: e, variant: a, size: o, ...n }) => /* @__PURE__ */ t(
|
|
537
|
+
d.Close,
|
|
529
538
|
{
|
|
530
|
-
className: r(
|
|
531
|
-
...
|
|
539
|
+
className: r(i({ variant: a ?? "outline", size: o }), e),
|
|
540
|
+
...n
|
|
532
541
|
}
|
|
533
542
|
);
|
|
534
|
-
|
|
535
|
-
const
|
|
536
|
-
|
|
537
|
-
const
|
|
543
|
+
De.displayName = "DialogClose";
|
|
544
|
+
const Ae = ({ className: e, ...a }) => /* @__PURE__ */ t("div", { className: r("flex flex-col space-y-1 mb-5", e), ...a });
|
|
545
|
+
Ae.displayName = "DialogHeader";
|
|
546
|
+
const ze = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
538
547
|
"div",
|
|
539
548
|
{
|
|
540
549
|
className: r(
|
|
@@ -544,21 +553,21 @@ const Me = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
|
544
553
|
...a
|
|
545
554
|
}
|
|
546
555
|
);
|
|
547
|
-
|
|
548
|
-
const
|
|
549
|
-
|
|
550
|
-
const
|
|
551
|
-
|
|
556
|
+
ze.displayName = "DialogFooter";
|
|
557
|
+
const Se = (e) => /* @__PURE__ */ t(d.Root, { ...e });
|
|
558
|
+
Se.displayName = "DrawerRoot";
|
|
559
|
+
const Le = ({ className: e, variant: a, size: o, ...n }) => /* @__PURE__ */ t(
|
|
560
|
+
d.Trigger,
|
|
552
561
|
{
|
|
553
|
-
className: r(
|
|
554
|
-
...
|
|
562
|
+
className: r(i({ variant: a, size: o }), e),
|
|
563
|
+
...n
|
|
555
564
|
}
|
|
556
565
|
);
|
|
557
|
-
|
|
558
|
-
const
|
|
559
|
-
|
|
560
|
-
const
|
|
561
|
-
|
|
566
|
+
Le.displayName = "DrawerTrigger";
|
|
567
|
+
const Ve = (e) => /* @__PURE__ */ t(d.Portal, { ...e });
|
|
568
|
+
Ve.displayName = "DrawerPortal";
|
|
569
|
+
const He = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
570
|
+
d.Backdrop,
|
|
562
571
|
{
|
|
563
572
|
className: r(
|
|
564
573
|
"fixed inset-0 z-50 bg-black/50 backdrop-blur-sm",
|
|
@@ -569,8 +578,8 @@ const Ie = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
|
569
578
|
...a
|
|
570
579
|
}
|
|
571
580
|
);
|
|
572
|
-
|
|
573
|
-
const
|
|
581
|
+
He.displayName = "DrawerBackdrop";
|
|
582
|
+
const Ge = m(
|
|
574
583
|
[
|
|
575
584
|
"fixed z-50 flex flex-col bg-background p-6 shadow-lg",
|
|
576
585
|
"transition-transform duration-300 ease-out",
|
|
@@ -606,52 +615,52 @@ const Le = u(
|
|
|
606
615
|
side: "right"
|
|
607
616
|
}
|
|
608
617
|
}
|
|
609
|
-
),
|
|
610
|
-
|
|
618
|
+
), _e = ({ className: e, side: a, ...o }) => /* @__PURE__ */ t(
|
|
619
|
+
d.Popup,
|
|
611
620
|
{
|
|
612
|
-
className: r(
|
|
621
|
+
className: r(Ge({ side: a }), e),
|
|
613
622
|
...o
|
|
614
623
|
}
|
|
615
624
|
);
|
|
616
|
-
|
|
617
|
-
const
|
|
618
|
-
|
|
625
|
+
_e.displayName = "DrawerPopup";
|
|
626
|
+
const je = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
627
|
+
d.Title,
|
|
619
628
|
{
|
|
620
629
|
className: r("text-lg font-semibold leading-none tracking-tight", e),
|
|
621
630
|
...a
|
|
622
631
|
}
|
|
623
632
|
);
|
|
624
|
-
|
|
625
|
-
const Be = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
633
|
+
je.displayName = "DrawerTitle";
|
|
634
|
+
const Be = ({ className: e, ...a }) => /* @__PURE__ */ t(d.Description, { className: r("", e), ...a });
|
|
626
635
|
Be.displayName = "DrawerDescription";
|
|
627
|
-
const Fe = ({ className: e, variant: a, size: o, ...
|
|
628
|
-
|
|
636
|
+
const Fe = ({ className: e, variant: a, size: o, ...n }) => /* @__PURE__ */ t(
|
|
637
|
+
d.Close,
|
|
629
638
|
{
|
|
630
|
-
className: r(
|
|
631
|
-
...
|
|
639
|
+
className: r(i({ variant: a ?? "outline", size: o }), e),
|
|
640
|
+
...n
|
|
632
641
|
}
|
|
633
642
|
);
|
|
634
643
|
Fe.displayName = "DrawerClose";
|
|
635
|
-
const
|
|
636
|
-
|
|
637
|
-
const
|
|
638
|
-
|
|
644
|
+
const Ze = ({ className: e, ...a }) => /* @__PURE__ */ t("div", { className: r("flex flex-col space-y-1.5", e), ...a });
|
|
645
|
+
Ze.displayName = "DrawerHeader";
|
|
646
|
+
const $e = ({ className: e, ...a }) => /* @__PURE__ */ t("div", { className: r("py-5", e), ...a });
|
|
647
|
+
$e.displayName = "DrawerContent";
|
|
639
648
|
const qe = ({ className: e, ...a }) => /* @__PURE__ */ t("div", { className: r("", e), ...a });
|
|
640
649
|
qe.displayName = "DrawerFooter";
|
|
641
|
-
const
|
|
642
|
-
|
|
643
|
-
const
|
|
644
|
-
|
|
650
|
+
const Oe = ({ className: e, ...a }) => /* @__PURE__ */ t(v.Root, { className: r("w-full", e), ...a });
|
|
651
|
+
Oe.displayName = "AccordionRoot";
|
|
652
|
+
const Ee = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
653
|
+
v.Item,
|
|
645
654
|
{
|
|
646
655
|
className: r("border-b border-border last:border-b-0", e),
|
|
647
656
|
...a
|
|
648
657
|
}
|
|
649
658
|
);
|
|
650
|
-
|
|
651
|
-
const
|
|
652
|
-
|
|
653
|
-
const
|
|
654
|
-
|
|
659
|
+
Ee.displayName = "AccordionItem";
|
|
660
|
+
const Je = ({ className: e, ...a }) => /* @__PURE__ */ t(v.Header, { className: r("flex", e), ...a });
|
|
661
|
+
Je.displayName = "AccordionHeader";
|
|
662
|
+
const Ke = ({ className: e, children: a, ...o }) => /* @__PURE__ */ t(
|
|
663
|
+
v.Trigger,
|
|
655
664
|
{
|
|
656
665
|
className: r(
|
|
657
666
|
"flex flex-1 items-center justify-between py-3 font-medium",
|
|
@@ -661,9 +670,9 @@ const Oe = ({ className: e, children: a, ...o }) => /* @__PURE__ */ t(
|
|
|
661
670
|
children: a
|
|
662
671
|
}
|
|
663
672
|
);
|
|
664
|
-
|
|
665
|
-
const
|
|
666
|
-
|
|
673
|
+
Ke.displayName = "AccordionTrigger";
|
|
674
|
+
const Qe = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
675
|
+
v.Panel,
|
|
667
676
|
{
|
|
668
677
|
className: r(
|
|
669
678
|
"overflow-hidden duration-200 h-(--accordion-panel-height) transition-height ease-out data-ending-style:h-0 data-starting-style:h-0",
|
|
@@ -672,25 +681,25 @@ const Je = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
|
672
681
|
...a
|
|
673
682
|
}
|
|
674
683
|
);
|
|
675
|
-
|
|
676
|
-
const
|
|
677
|
-
const
|
|
678
|
-
return
|
|
684
|
+
Qe.displayName = "AccordionPanel";
|
|
685
|
+
const Ue = ({ className: e, animated: a, value: o, ...n }) => {
|
|
686
|
+
const u = o ?? 0, [g, y] = x.useState(a ? 0 : u);
|
|
687
|
+
return x.useEffect(() => {
|
|
679
688
|
if (a) {
|
|
680
|
-
const
|
|
681
|
-
const
|
|
682
|
-
|
|
689
|
+
const M = requestAnimationFrame(() => {
|
|
690
|
+
const k = requestAnimationFrame(() => {
|
|
691
|
+
y(u ?? 0);
|
|
683
692
|
});
|
|
684
|
-
return () => cancelAnimationFrame(
|
|
693
|
+
return () => cancelAnimationFrame(k);
|
|
685
694
|
});
|
|
686
|
-
return () => cancelAnimationFrame(
|
|
695
|
+
return () => cancelAnimationFrame(M);
|
|
687
696
|
} else
|
|
688
|
-
|
|
689
|
-
}, [a,
|
|
697
|
+
y(u ?? 0);
|
|
698
|
+
}, [a, u]), /* @__PURE__ */ t(w.Root, { className: r("w-full", e), value: g, ...n });
|
|
690
699
|
};
|
|
691
|
-
|
|
692
|
-
const
|
|
693
|
-
|
|
700
|
+
Ue.displayName = "MeterRoot";
|
|
701
|
+
const We = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
702
|
+
w.Track,
|
|
694
703
|
{
|
|
695
704
|
className: r(
|
|
696
705
|
"relative h-2 w-full overflow-hidden rounded-full bg-primary/20",
|
|
@@ -699,9 +708,9 @@ const Qe = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
|
699
708
|
...a
|
|
700
709
|
}
|
|
701
710
|
);
|
|
702
|
-
|
|
703
|
-
const
|
|
704
|
-
|
|
711
|
+
We.displayName = "MeterTrack";
|
|
712
|
+
const Xe = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
713
|
+
w.Indicator,
|
|
705
714
|
{
|
|
706
715
|
className: r(
|
|
707
716
|
"h-full rounded-full bg-primary transition-all duration-1000 ease-out-expo",
|
|
@@ -710,40 +719,40 @@ const Ue = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
|
710
719
|
...a
|
|
711
720
|
}
|
|
712
721
|
);
|
|
713
|
-
|
|
714
|
-
const
|
|
715
|
-
|
|
722
|
+
Xe.displayName = "MeterIndicator";
|
|
723
|
+
const Ye = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
724
|
+
w.Value,
|
|
716
725
|
{
|
|
717
726
|
className: r("text-sm font-medium text-foreground", e),
|
|
718
727
|
...a
|
|
719
728
|
}
|
|
720
729
|
);
|
|
721
|
-
|
|
722
|
-
const
|
|
723
|
-
|
|
730
|
+
Ye.displayName = "MeterValue";
|
|
731
|
+
const ea = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
732
|
+
w.Label,
|
|
724
733
|
{
|
|
725
734
|
className: r("text-sm font-medium text-foreground", e),
|
|
726
735
|
...a
|
|
727
736
|
}
|
|
728
737
|
);
|
|
729
|
-
|
|
730
|
-
const
|
|
731
|
-
|
|
732
|
-
const
|
|
733
|
-
|
|
734
|
-
const
|
|
735
|
-
|
|
736
|
-
const
|
|
737
|
-
|
|
738
|
+
ea.displayName = "MeterLabel";
|
|
739
|
+
const aa = (e) => /* @__PURE__ */ t(s.Root, { ...e });
|
|
740
|
+
aa.displayName = "MenuRoot";
|
|
741
|
+
const ta = ({ className: e, ...a }) => /* @__PURE__ */ t(s.Trigger, { className: r(e), ...a });
|
|
742
|
+
ta.displayName = "MenuTrigger";
|
|
743
|
+
const ra = (e) => /* @__PURE__ */ t(s.Portal, { ...e });
|
|
744
|
+
ra.displayName = "MenuPortal";
|
|
745
|
+
const oa = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
746
|
+
s.Positioner,
|
|
738
747
|
{
|
|
739
748
|
className: r("z-50 outline-none", e),
|
|
740
749
|
sideOffset: 8,
|
|
741
750
|
...a
|
|
742
751
|
}
|
|
743
752
|
);
|
|
744
|
-
|
|
745
|
-
const
|
|
746
|
-
|
|
753
|
+
oa.displayName = "MenuPositioner";
|
|
754
|
+
const sa = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
755
|
+
s.Popup,
|
|
747
756
|
{
|
|
748
757
|
className: r(
|
|
749
758
|
"rounded-md bg-background p-1 text-foreground shadow-sm border border-border transition-[transform,scale,opacity] data-ending-style:scale-90 data-ending-style:opacity-0 data-starting-style:scale-0 data-starting-style:opacity-0 dark:shadow-none",
|
|
@@ -753,20 +762,20 @@ const ra = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
|
753
762
|
...a
|
|
754
763
|
}
|
|
755
764
|
);
|
|
756
|
-
|
|
757
|
-
const
|
|
758
|
-
|
|
765
|
+
sa.displayName = "MenuPopup";
|
|
766
|
+
const na = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
767
|
+
s.Arrow,
|
|
759
768
|
{
|
|
760
769
|
className: r(
|
|
761
770
|
"flex data-[side=bottom]:top-[-8px] data-[side=left]:right-[-13px] data-[side=left]:rotate-90 data-[side=right]:left-[-13px] data-[side=right]:-rotate-90 data-[side=top]:bottom-[-8px] data-[side=top]:rotate-180",
|
|
762
771
|
e
|
|
763
772
|
),
|
|
764
773
|
...a,
|
|
765
|
-
children: /* @__PURE__ */ t(
|
|
774
|
+
children: /* @__PURE__ */ t(ia, {})
|
|
766
775
|
}
|
|
767
776
|
);
|
|
768
|
-
function
|
|
769
|
-
return /* @__PURE__ */
|
|
777
|
+
function ia(e) {
|
|
778
|
+
return /* @__PURE__ */ b("svg", { width: "20", height: "10", viewBox: "0 0 20 10", fill: "none", ...e, children: [
|
|
770
779
|
/* @__PURE__ */ t(
|
|
771
780
|
"path",
|
|
772
781
|
{
|
|
@@ -783,12 +792,12 @@ function sa(e) {
|
|
|
783
792
|
)
|
|
784
793
|
] });
|
|
785
794
|
}
|
|
786
|
-
|
|
795
|
+
na.displayName = "MenuArrow";
|
|
787
796
|
const la = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
788
|
-
|
|
797
|
+
s.Item,
|
|
789
798
|
{
|
|
790
799
|
className: r(
|
|
791
|
-
|
|
800
|
+
i({ variant: "ghost", size: "sm" }),
|
|
792
801
|
"flex justify-start",
|
|
793
802
|
e
|
|
794
803
|
),
|
|
@@ -796,83 +805,83 @@ const la = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
|
796
805
|
}
|
|
797
806
|
);
|
|
798
807
|
la.displayName = "MenuItem";
|
|
799
|
-
const
|
|
800
|
-
|
|
808
|
+
const da = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
809
|
+
s.Separator,
|
|
801
810
|
{
|
|
802
811
|
className: r("-mx-1 my-1 h-px bg-border", e),
|
|
803
812
|
...a
|
|
804
813
|
}
|
|
805
814
|
);
|
|
806
|
-
|
|
807
|
-
const
|
|
808
|
-
|
|
809
|
-
const
|
|
810
|
-
|
|
815
|
+
da.displayName = "MenuSeparator";
|
|
816
|
+
const ca = ({ className: e, ...a }) => /* @__PURE__ */ t(s.Group, { className: r(e), ...a });
|
|
817
|
+
ca.displayName = "MenuGroup";
|
|
818
|
+
const ua = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
819
|
+
s.GroupLabel,
|
|
811
820
|
{
|
|
812
821
|
className: r("px-3 py-1.5 text-sm font-semibold", e),
|
|
813
822
|
...a
|
|
814
823
|
}
|
|
815
824
|
);
|
|
816
|
-
|
|
817
|
-
const
|
|
818
|
-
|
|
819
|
-
const
|
|
820
|
-
|
|
825
|
+
ua.displayName = "MenuGroupLabel";
|
|
826
|
+
const ma = ({ className: e, ...a }) => /* @__PURE__ */ t(s.RadioGroup, { className: r(e), ...a });
|
|
827
|
+
ma.displayName = "MenuRadioGroup";
|
|
828
|
+
const pa = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
829
|
+
s.RadioItem,
|
|
821
830
|
{
|
|
822
831
|
className: r(
|
|
823
|
-
|
|
832
|
+
i({ variant: "ghost", size: "sm" }),
|
|
824
833
|
"grid grid-cols-[0.75rem_1fr] gap-2",
|
|
825
834
|
e
|
|
826
835
|
),
|
|
827
836
|
...a
|
|
828
837
|
}
|
|
829
838
|
);
|
|
830
|
-
|
|
831
|
-
const
|
|
832
|
-
|
|
839
|
+
pa.displayName = "MenuRadioItem";
|
|
840
|
+
const ga = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
841
|
+
s.CheckboxItem,
|
|
833
842
|
{
|
|
834
843
|
className: r(
|
|
835
|
-
|
|
844
|
+
i({ variant: "ghost", size: "sm" }),
|
|
836
845
|
"grid grid-cols-[0.75rem_1fr] gap-2",
|
|
837
846
|
e
|
|
838
847
|
),
|
|
839
848
|
...a
|
|
840
849
|
}
|
|
841
850
|
);
|
|
842
|
-
|
|
843
|
-
const
|
|
844
|
-
|
|
845
|
-
const
|
|
851
|
+
ga.displayName = "MenuCheckboxItem";
|
|
852
|
+
const ba = ({ className: e, ...a }) => /* @__PURE__ */ t(s.RadioItemIndicator, { className: r("col-start-1", e), ...a });
|
|
853
|
+
ba.displayName = "MenuRadioItemIndicator";
|
|
854
|
+
const fa = ({
|
|
846
855
|
className: e,
|
|
847
856
|
...a
|
|
848
|
-
}) => /* @__PURE__ */ t(
|
|
849
|
-
|
|
850
|
-
const
|
|
851
|
-
|
|
852
|
-
const
|
|
853
|
-
|
|
854
|
-
const
|
|
855
|
-
|
|
857
|
+
}) => /* @__PURE__ */ t(s.CheckboxItemIndicator, { className: r("col-start-1", e), ...a });
|
|
858
|
+
fa.displayName = "MenuCheckboxItemIndicator";
|
|
859
|
+
const ya = ({ className: e, ...a }) => /* @__PURE__ */ t("span", { className: r("col-start-2", e), ...a });
|
|
860
|
+
ya.displayName = "MenuCheckboxItemLabel";
|
|
861
|
+
const Na = ({ className: e, ...a }) => /* @__PURE__ */ t("span", { className: r("col-start-2", e), ...a });
|
|
862
|
+
Na.displayName = "MenuRadioItemLabel";
|
|
863
|
+
const xa = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
864
|
+
s.SubmenuTrigger,
|
|
856
865
|
{
|
|
857
866
|
className: r(
|
|
858
|
-
|
|
867
|
+
i({ variant: "ghost", size: "sm" }),
|
|
859
868
|
"flex justify-between",
|
|
860
869
|
e
|
|
861
870
|
),
|
|
862
871
|
...a
|
|
863
872
|
}
|
|
864
873
|
);
|
|
865
|
-
|
|
866
|
-
const
|
|
867
|
-
|
|
868
|
-
const
|
|
869
|
-
|
|
870
|
-
const
|
|
871
|
-
|
|
872
|
-
const
|
|
873
|
-
|
|
874
|
-
const
|
|
875
|
-
|
|
874
|
+
xa.displayName = "MenuSubmenuTrigger";
|
|
875
|
+
const ha = (e) => /* @__PURE__ */ t(s.SubmenuRoot, { ...e });
|
|
876
|
+
ha.displayName = "MenuSubmenuRoot";
|
|
877
|
+
const va = (e) => /* @__PURE__ */ t(c.Root, { ...e });
|
|
878
|
+
va.displayName = "PopoverRoot";
|
|
879
|
+
const wa = ({ className: e, ...a }) => /* @__PURE__ */ t(c.Trigger, { className: r(e), ...a });
|
|
880
|
+
wa.displayName = "PopoverTrigger";
|
|
881
|
+
const Ca = (e) => /* @__PURE__ */ t(c.Portal, { ...e });
|
|
882
|
+
Ca.displayName = "PopoverPortal";
|
|
883
|
+
const Ma = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
884
|
+
c.Backdrop,
|
|
876
885
|
{
|
|
877
886
|
className: r(
|
|
878
887
|
"fixed inset-0 z-50 bg-black/50 backdrop-blur-sm",
|
|
@@ -883,9 +892,9 @@ const wa = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
|
883
892
|
...a
|
|
884
893
|
}
|
|
885
894
|
);
|
|
886
|
-
|
|
895
|
+
Ma.displayName = "PopoverBackdrop";
|
|
887
896
|
const ka = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
888
|
-
|
|
897
|
+
c.Positioner,
|
|
889
898
|
{
|
|
890
899
|
className: r(
|
|
891
900
|
"z-50 outline-none",
|
|
@@ -903,7 +912,7 @@ const ka = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
|
903
912
|
);
|
|
904
913
|
ka.displayName = "PopoverPositioner";
|
|
905
914
|
const Pa = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
906
|
-
|
|
915
|
+
c.Popup,
|
|
907
916
|
{
|
|
908
917
|
className: r(
|
|
909
918
|
"rounded-md bg-background px-4 py-3 text-foreground shadow-sm border relative",
|
|
@@ -922,19 +931,19 @@ const Pa = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
|
922
931
|
}
|
|
923
932
|
);
|
|
924
933
|
Pa.displayName = "PopoverPopup";
|
|
925
|
-
const
|
|
926
|
-
|
|
934
|
+
const Ia = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
935
|
+
c.Arrow,
|
|
927
936
|
{
|
|
928
937
|
className: r(
|
|
929
938
|
"flex data-[side=bottom]:top-[-8px] data-[side=left]:right-[-13px] data-[side=left]:rotate-90 data-[side=right]:left-[-13px] data-[side=right]:-rotate-90 data-[side=top]:bottom-[-8px] data-[side=top]:rotate-180",
|
|
930
939
|
e
|
|
931
940
|
),
|
|
932
941
|
...a,
|
|
933
|
-
children: /* @__PURE__ */ t(
|
|
942
|
+
children: /* @__PURE__ */ t(Ra, {})
|
|
934
943
|
}
|
|
935
944
|
);
|
|
936
|
-
function
|
|
937
|
-
return /* @__PURE__ */
|
|
945
|
+
function Ra(e) {
|
|
946
|
+
return /* @__PURE__ */ b("svg", { width: "20", height: "10", viewBox: "0 0 20 10", fill: "none", ...e, children: [
|
|
938
947
|
/* @__PURE__ */ t(
|
|
939
948
|
"path",
|
|
940
949
|
{
|
|
@@ -951,19 +960,19 @@ function Ca(e) {
|
|
|
951
960
|
)
|
|
952
961
|
] });
|
|
953
962
|
}
|
|
954
|
-
|
|
955
|
-
const Ta = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
963
|
+
Ia.displayName = "PopoverArrow";
|
|
964
|
+
const Ta = ({ className: e, ...a }) => /* @__PURE__ */ t(c.Title, { className: r("text-sm font-semibold", e), ...a });
|
|
956
965
|
Ta.displayName = "PopoverTitle";
|
|
957
|
-
const
|
|
958
|
-
|
|
959
|
-
const
|
|
960
|
-
|
|
961
|
-
const
|
|
962
|
-
|
|
963
|
-
const
|
|
964
|
-
|
|
965
|
-
const
|
|
966
|
-
|
|
966
|
+
const Da = ({ className: e, ...a }) => /* @__PURE__ */ t(c.Description, { className: r("text-sm", e), ...a });
|
|
967
|
+
Da.displayName = "PopoverDescription";
|
|
968
|
+
const Aa = ({ className: e, ...a }) => /* @__PURE__ */ t(c.Close, { className: r(e), ...a });
|
|
969
|
+
Aa.displayName = "PopoverClose";
|
|
970
|
+
const za = ({ className: e, ...a }) => /* @__PURE__ */ t(c.Viewport, { className: r(e), ...a });
|
|
971
|
+
za.displayName = "PopoverViewport";
|
|
972
|
+
const Sa = ({ className: e, ...a }) => /* @__PURE__ */ t(C.Root, { className: r("w-full", e), ...a });
|
|
973
|
+
Sa.displayName = "ProgressRoot";
|
|
974
|
+
const La = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
975
|
+
C.Track,
|
|
967
976
|
{
|
|
968
977
|
className: r(
|
|
969
978
|
"relative h-2 w-full overflow-hidden rounded-full bg-primary/20",
|
|
@@ -972,9 +981,9 @@ const Va = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
|
972
981
|
...a
|
|
973
982
|
}
|
|
974
983
|
);
|
|
975
|
-
|
|
976
|
-
const
|
|
977
|
-
|
|
984
|
+
La.displayName = "ProgressTrack";
|
|
985
|
+
const Va = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
986
|
+
C.Indicator,
|
|
978
987
|
{
|
|
979
988
|
className: r(
|
|
980
989
|
"h-full rounded-full bg-primary transition-all duration-1000 ease-out-expo",
|
|
@@ -983,60 +992,49 @@ const Sa = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
|
983
992
|
...a
|
|
984
993
|
}
|
|
985
994
|
);
|
|
986
|
-
|
|
987
|
-
const
|
|
988
|
-
|
|
995
|
+
Va.displayName = "ProgressIndicator";
|
|
996
|
+
const Ha = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
997
|
+
C.Value,
|
|
989
998
|
{
|
|
990
999
|
className: r("text-sm font-medium text-foreground", e),
|
|
991
1000
|
...a
|
|
992
1001
|
}
|
|
993
1002
|
);
|
|
994
|
-
|
|
995
|
-
const
|
|
996
|
-
|
|
1003
|
+
Ha.displayName = "ProgressValue";
|
|
1004
|
+
const Ga = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
1005
|
+
C.Label,
|
|
997
1006
|
{
|
|
998
1007
|
className: r("text-sm font-medium text-foreground", e),
|
|
999
1008
|
...a
|
|
1000
1009
|
}
|
|
1001
1010
|
);
|
|
1002
|
-
|
|
1003
|
-
const
|
|
1004
|
-
|
|
1011
|
+
Ga.displayName = "ProgressLabel";
|
|
1012
|
+
const _a = ({ className: e, orientation: a, ...o }) => /* @__PURE__ */ t(
|
|
1013
|
+
j,
|
|
1005
1014
|
{
|
|
1006
1015
|
orientation: a,
|
|
1007
1016
|
className: r(
|
|
1008
1017
|
"inline-flex",
|
|
1009
1018
|
a === "vertical" && "flex-col",
|
|
1010
1019
|
// Connected items: collapse borders, round only outer corners
|
|
1011
|
-
"
|
|
1012
|
-
"[
|
|
1020
|
+
"[&>button]:rounded-none [&>button:not(:first-of-type)]:-ml-px",
|
|
1021
|
+
"[&>button:first-of-type]:rounded-l-md [&>button:last-of-type]:rounded-r-md",
|
|
1013
1022
|
// Vertical orientation adjustments
|
|
1014
|
-
a === "vertical" && "[
|
|
1023
|
+
a === "vertical" && "[&>button:not(:first-of-type)]:ml-0 [&>button:not(:first-of-type)]:-mt-px [&>button:first-of-type]:rounded-bl-none [&>button:last-of-type]:rounded-r-none [&>button:first-of-type]:rounded-t-md [&>button:last-of-type]:rounded-b-md",
|
|
1015
1024
|
e
|
|
1016
1025
|
),
|
|
1017
1026
|
...o
|
|
1018
1027
|
}
|
|
1019
1028
|
);
|
|
1020
|
-
|
|
1021
|
-
const
|
|
1029
|
+
_a.displayName = "ToggleGroupRoot";
|
|
1030
|
+
const ja = ({
|
|
1022
1031
|
className: e,
|
|
1023
1032
|
variant: a,
|
|
1024
1033
|
size: o,
|
|
1025
|
-
...
|
|
1026
|
-
}) => /* @__PURE__ */ t(
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
className: r(
|
|
1030
|
-
V({ variant: a, size: o }),
|
|
1031
|
-
// Ghost variant in toggle-group: add borders, no background when pressed
|
|
1032
|
-
a === "ghost" && "border border-border",
|
|
1033
|
-
e
|
|
1034
|
-
),
|
|
1035
|
-
...s
|
|
1036
|
-
}
|
|
1037
|
-
);
|
|
1038
|
-
_a.displayName = "ToggleGroupItem";
|
|
1039
|
-
const Ba = u("rounded-lg bg-card text-card-foreground transition-colors", {
|
|
1034
|
+
...n
|
|
1035
|
+
}) => /* @__PURE__ */ t(A, { className: r(R({ variant: a, size: o }), e), ...n });
|
|
1036
|
+
ja.displayName = "ToggleGroupItem";
|
|
1037
|
+
const Ba = m("rounded-lg bg-card text-card-foreground transition-colors", {
|
|
1040
1038
|
variants: {
|
|
1041
1039
|
variant: {
|
|
1042
1040
|
default: "border shadow-sm",
|
|
@@ -1047,18 +1045,18 @@ const Ba = u("rounded-lg bg-card text-card-foreground transition-colors", {
|
|
|
1047
1045
|
defaultVariants: {
|
|
1048
1046
|
variant: "default"
|
|
1049
1047
|
}
|
|
1050
|
-
}), Fa =
|
|
1051
|
-
({ className: e, variant: a, ...o },
|
|
1048
|
+
}), Fa = x.forwardRef(
|
|
1049
|
+
({ className: e, variant: a, ...o }, n) => /* @__PURE__ */ t(
|
|
1052
1050
|
"article",
|
|
1053
1051
|
{
|
|
1054
|
-
ref:
|
|
1052
|
+
ref: n,
|
|
1055
1053
|
className: r(Ba({ variant: a }), e),
|
|
1056
1054
|
...o
|
|
1057
1055
|
}
|
|
1058
1056
|
)
|
|
1059
1057
|
);
|
|
1060
1058
|
Fa.displayName = "CardRoot";
|
|
1061
|
-
const
|
|
1059
|
+
const Za = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
1062
1060
|
"div",
|
|
1063
1061
|
{
|
|
1064
1062
|
className: r(
|
|
@@ -1069,9 +1067,9 @@ const ja = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
|
1069
1067
|
...a
|
|
1070
1068
|
}
|
|
1071
1069
|
);
|
|
1072
|
-
|
|
1073
|
-
const
|
|
1074
|
-
|
|
1070
|
+
Za.displayName = "CardMedia";
|
|
1071
|
+
const $a = ({ className: e, ...a }) => /* @__PURE__ */ t("header", { className: r("flex flex-col gap-1 p-4", e), ...a });
|
|
1072
|
+
$a.displayName = "CardHeader";
|
|
1075
1073
|
const qa = ({ as: e = "h3", className: a, ...o }) => /* @__PURE__ */ t(
|
|
1076
1074
|
e,
|
|
1077
1075
|
{
|
|
@@ -1080,122 +1078,484 @@ const qa = ({ as: e = "h3", className: a, ...o }) => /* @__PURE__ */ t(
|
|
|
1080
1078
|
}
|
|
1081
1079
|
);
|
|
1082
1080
|
qa.displayName = "CardTitle";
|
|
1083
|
-
const
|
|
1084
|
-
|
|
1085
|
-
const
|
|
1086
|
-
|
|
1087
|
-
const
|
|
1088
|
-
|
|
1089
|
-
const
|
|
1090
|
-
|
|
1081
|
+
const Oa = ({ className: e, ...a }) => /* @__PURE__ */ t("p", { className: r("text-sm", e), ...a });
|
|
1082
|
+
Oa.displayName = "CardDescription";
|
|
1083
|
+
const Ea = ({ className: e, ...a }) => /* @__PURE__ */ t("div", { className: r("p-4 pt-0", e), ...a });
|
|
1084
|
+
Ea.displayName = "CardContent";
|
|
1085
|
+
const Ja = ({ className: e, ...a }) => /* @__PURE__ */ t("section", { className: r("p-4", e), ...a });
|
|
1086
|
+
Ja.displayName = "CardSection";
|
|
1087
|
+
const Ka = ({ className: e, ...a }) => /* @__PURE__ */ t("footer", { className: r("flex items-center p-4", e), ...a });
|
|
1088
|
+
Ka.displayName = "CardFooter";
|
|
1089
|
+
const Qa = (e) => /* @__PURE__ */ t(l.Root, { ...e });
|
|
1090
|
+
Qa.displayName = "ContextMenuRoot";
|
|
1091
|
+
const Ua = ({ className: e, ...a }) => /* @__PURE__ */ t(l.Trigger, { className: r(e), ...a });
|
|
1092
|
+
Ua.displayName = "ContextMenuTrigger";
|
|
1093
|
+
const Wa = (e) => /* @__PURE__ */ t(l.Portal, { ...e });
|
|
1094
|
+
Wa.displayName = "ContextMenuPortal";
|
|
1095
|
+
const Xa = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
1096
|
+
l.Positioner,
|
|
1097
|
+
{
|
|
1098
|
+
className: r("z-50 outline-none", e),
|
|
1099
|
+
sideOffset: 3,
|
|
1100
|
+
...a
|
|
1101
|
+
}
|
|
1102
|
+
);
|
|
1103
|
+
Xa.displayName = "ContextMenuPositioner";
|
|
1104
|
+
const Ya = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
1105
|
+
l.Popup,
|
|
1106
|
+
{
|
|
1107
|
+
className: r(
|
|
1108
|
+
"rounded-md bg-background p-1 text-foreground shadow-sm border border-border transition-[transform,scale,opacity] data-ending-style:scale-90 data-ending-style:opacity-0 data-starting-style:scale-0 data-starting-style:opacity-0 dark:shadow-none",
|
|
1109
|
+
"min-w-[8rem]",
|
|
1110
|
+
e
|
|
1111
|
+
),
|
|
1112
|
+
...a
|
|
1113
|
+
}
|
|
1114
|
+
);
|
|
1115
|
+
Ya.displayName = "ContextMenuPopup";
|
|
1116
|
+
const et = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
1117
|
+
l.Arrow,
|
|
1118
|
+
{
|
|
1119
|
+
className: r(
|
|
1120
|
+
"flex data-[side=bottom]:top-[-8px] data-[side=left]:right-[-13px] data-[side=left]:rotate-90 data-[side=right]:left-[-13px] data-[side=right]:-rotate-90 data-[side=top]:bottom-[-8px] data-[side=top]:rotate-180",
|
|
1121
|
+
e
|
|
1122
|
+
),
|
|
1123
|
+
...a,
|
|
1124
|
+
children: /* @__PURE__ */ t(at, {})
|
|
1125
|
+
}
|
|
1126
|
+
);
|
|
1127
|
+
function at(e) {
|
|
1128
|
+
return /* @__PURE__ */ b("svg", { width: "20", height: "10", viewBox: "0 0 20 10", fill: "none", ...e, children: [
|
|
1129
|
+
/* @__PURE__ */ t(
|
|
1130
|
+
"path",
|
|
1131
|
+
{
|
|
1132
|
+
d: "M9.66437 2.60207L4.80758 6.97318C4.07308 7.63423 3.11989 8 2.13172 8H0V10H20V8H18.5349C17.5468 8 16.5936 7.63423 15.8591 6.97318L11.0023 2.60207C10.622 2.2598 10.0447 2.25979 9.66437 2.60207Z",
|
|
1133
|
+
className: "fill-background"
|
|
1134
|
+
}
|
|
1135
|
+
),
|
|
1136
|
+
/* @__PURE__ */ t(
|
|
1137
|
+
"path",
|
|
1138
|
+
{
|
|
1139
|
+
d: "M10.3333 3.34539L5.47654 7.71648C4.55842 8.54279 3.36693 9 2.13172 9H0V8H2.13172C3.11989 8 4.07308 7.63423 4.80758 6.97318L9.66437 2.60207C10.0447 2.25979 10.622 2.2598 11.0023 2.60207L15.8591 6.97318C16.5936 7.63423 17.5468 8 18.5349 8H20V9H18.5349C17.2998 9 16.1083 8.54278 15.1901 7.71648L10.3333 3.34539Z",
|
|
1140
|
+
className: "fill-border"
|
|
1141
|
+
}
|
|
1142
|
+
)
|
|
1143
|
+
] });
|
|
1144
|
+
}
|
|
1145
|
+
et.displayName = "ContextMenuArrow";
|
|
1146
|
+
const tt = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
1147
|
+
l.Item,
|
|
1148
|
+
{
|
|
1149
|
+
className: r(
|
|
1150
|
+
i({ variant: "ghost", size: "sm" }),
|
|
1151
|
+
"flex justify-start",
|
|
1152
|
+
e
|
|
1153
|
+
),
|
|
1154
|
+
...a
|
|
1155
|
+
}
|
|
1156
|
+
);
|
|
1157
|
+
tt.displayName = "ContextMenuItem";
|
|
1158
|
+
const rt = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
1159
|
+
l.Separator,
|
|
1160
|
+
{
|
|
1161
|
+
className: r("-mx-1 my-1 h-px bg-border", e),
|
|
1162
|
+
...a
|
|
1163
|
+
}
|
|
1164
|
+
);
|
|
1165
|
+
rt.displayName = "ContextMenuSeparator";
|
|
1166
|
+
const ot = ({ className: e, ...a }) => /* @__PURE__ */ t(l.Group, { className: r(e), ...a });
|
|
1167
|
+
ot.displayName = "ContextMenuGroup";
|
|
1168
|
+
const st = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
1169
|
+
l.GroupLabel,
|
|
1170
|
+
{
|
|
1171
|
+
className: r("px-3 py-1.5 text-sm font-semibold", e),
|
|
1172
|
+
...a
|
|
1173
|
+
}
|
|
1174
|
+
);
|
|
1175
|
+
st.displayName = "ContextMenuGroupLabel";
|
|
1176
|
+
const nt = ({ className: e, ...a }) => /* @__PURE__ */ t(l.RadioGroup, { className: r(e), ...a });
|
|
1177
|
+
nt.displayName = "ContextMenuRadioGroup";
|
|
1178
|
+
const it = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
1179
|
+
l.RadioItem,
|
|
1180
|
+
{
|
|
1181
|
+
className: r(
|
|
1182
|
+
i({ variant: "ghost", size: "sm" }),
|
|
1183
|
+
"grid grid-cols-[0.75rem_1fr] gap-2",
|
|
1184
|
+
e
|
|
1185
|
+
),
|
|
1186
|
+
...a
|
|
1187
|
+
}
|
|
1188
|
+
);
|
|
1189
|
+
it.displayName = "ContextMenuRadioItem";
|
|
1190
|
+
const lt = ({
|
|
1191
|
+
className: e,
|
|
1192
|
+
...a
|
|
1193
|
+
}) => /* @__PURE__ */ t(
|
|
1194
|
+
l.CheckboxItem,
|
|
1195
|
+
{
|
|
1196
|
+
className: r(
|
|
1197
|
+
i({ variant: "ghost", size: "sm" }),
|
|
1198
|
+
"grid grid-cols-[0.75rem_1fr] gap-2",
|
|
1199
|
+
e
|
|
1200
|
+
),
|
|
1201
|
+
...a
|
|
1202
|
+
}
|
|
1203
|
+
);
|
|
1204
|
+
lt.displayName = "ContextMenuCheckboxItem";
|
|
1205
|
+
const dt = ({
|
|
1206
|
+
className: e,
|
|
1207
|
+
...a
|
|
1208
|
+
}) => /* @__PURE__ */ t(
|
|
1209
|
+
l.RadioItemIndicator,
|
|
1210
|
+
{
|
|
1211
|
+
className: r("col-start-1", e),
|
|
1212
|
+
...a
|
|
1213
|
+
}
|
|
1214
|
+
);
|
|
1215
|
+
dt.displayName = "ContextMenuRadioItemIndicator";
|
|
1216
|
+
const ct = ({
|
|
1217
|
+
className: e,
|
|
1218
|
+
...a
|
|
1219
|
+
}) => /* @__PURE__ */ t(
|
|
1220
|
+
l.CheckboxItemIndicator,
|
|
1221
|
+
{
|
|
1222
|
+
className: r("col-start-1", e),
|
|
1223
|
+
...a
|
|
1224
|
+
}
|
|
1225
|
+
);
|
|
1226
|
+
ct.displayName = "ContextMenuCheckboxItemIndicator";
|
|
1227
|
+
const ut = ({
|
|
1228
|
+
className: e,
|
|
1229
|
+
...a
|
|
1230
|
+
}) => /* @__PURE__ */ t("span", { className: r("col-start-2", e), ...a });
|
|
1231
|
+
ut.displayName = "ContextMenuCheckboxItemLabel";
|
|
1232
|
+
const mt = ({
|
|
1233
|
+
className: e,
|
|
1234
|
+
...a
|
|
1235
|
+
}) => /* @__PURE__ */ t("span", { className: r("col-start-2", e), ...a });
|
|
1236
|
+
mt.displayName = "ContextMenuRadioItemLabel";
|
|
1237
|
+
const pt = ({
|
|
1238
|
+
className: e,
|
|
1239
|
+
...a
|
|
1240
|
+
}) => /* @__PURE__ */ t(
|
|
1241
|
+
l.SubmenuTrigger,
|
|
1242
|
+
{
|
|
1243
|
+
className: r(
|
|
1244
|
+
i({ variant: "ghost", size: "sm" }),
|
|
1245
|
+
"flex justify-between",
|
|
1246
|
+
e
|
|
1247
|
+
),
|
|
1248
|
+
...a
|
|
1249
|
+
}
|
|
1250
|
+
);
|
|
1251
|
+
pt.displayName = "ContextMenuSubmenuTrigger";
|
|
1252
|
+
const gt = (e) => /* @__PURE__ */ t(l.SubmenuRoot, { ...e });
|
|
1253
|
+
gt.displayName = "ContextMenuSubmenuRoot";
|
|
1254
|
+
const bt = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
1255
|
+
B,
|
|
1256
|
+
{
|
|
1257
|
+
className: r(
|
|
1258
|
+
"inline-flex",
|
|
1259
|
+
// Connected items: collapse borders, round only outer corners
|
|
1260
|
+
"[&>button]:rounded-none [&>button:not(:first-of-type)]:-ml-px",
|
|
1261
|
+
"[&>button:first-of-type]:rounded-l-md [&>button:last-of-type]:rounded-r-md",
|
|
1262
|
+
e
|
|
1263
|
+
),
|
|
1264
|
+
...a
|
|
1265
|
+
}
|
|
1266
|
+
);
|
|
1267
|
+
bt.displayName = "MenubarRoot";
|
|
1268
|
+
const ft = (e) => /* @__PURE__ */ t(s.Root, { ...e });
|
|
1269
|
+
ft.displayName = "MenubarMenu";
|
|
1270
|
+
const yt = ({ className: e, variant: a, size: o, ...n }) => /* @__PURE__ */ t(
|
|
1271
|
+
s.Trigger,
|
|
1272
|
+
{
|
|
1273
|
+
className: r(R({ variant: a, size: o }), e),
|
|
1274
|
+
...n
|
|
1275
|
+
}
|
|
1276
|
+
);
|
|
1277
|
+
yt.displayName = "MenubarTrigger";
|
|
1278
|
+
const Nt = (e) => /* @__PURE__ */ t(s.Portal, { ...e });
|
|
1279
|
+
Nt.displayName = "MenubarPortal";
|
|
1280
|
+
const xt = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
1281
|
+
s.Positioner,
|
|
1282
|
+
{
|
|
1283
|
+
className: r("z-50 outline-none", e),
|
|
1284
|
+
sideOffset: 8,
|
|
1285
|
+
...a
|
|
1286
|
+
}
|
|
1287
|
+
);
|
|
1288
|
+
xt.displayName = "MenubarPositioner";
|
|
1289
|
+
const ht = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
1290
|
+
s.Popup,
|
|
1291
|
+
{
|
|
1292
|
+
className: r(
|
|
1293
|
+
"rounded-md bg-background p-1 text-foreground shadow-sm border border-border transition-[transform,scale,opacity] data-ending-style:scale-90 data-ending-style:opacity-0 data-starting-style:scale-0 data-starting-style:opacity-0 dark:shadow-none",
|
|
1294
|
+
"min-w-[8rem]",
|
|
1295
|
+
e
|
|
1296
|
+
),
|
|
1297
|
+
...a
|
|
1298
|
+
}
|
|
1299
|
+
);
|
|
1300
|
+
ht.displayName = "MenubarPopup";
|
|
1301
|
+
const vt = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
1302
|
+
s.Arrow,
|
|
1303
|
+
{
|
|
1304
|
+
className: r(
|
|
1305
|
+
"flex data-[side=bottom]:top-[-8px] data-[side=left]:right-[-13px] data-[side=left]:rotate-90 data-[side=right]:left-[-13px] data-[side=right]:-rotate-90 data-[side=top]:bottom-[-8px] data-[side=top]:rotate-180",
|
|
1306
|
+
e
|
|
1307
|
+
),
|
|
1308
|
+
...a,
|
|
1309
|
+
children: /* @__PURE__ */ t(wt, {})
|
|
1310
|
+
}
|
|
1311
|
+
);
|
|
1312
|
+
function wt(e) {
|
|
1313
|
+
return /* @__PURE__ */ b("svg", { width: "20", height: "10", viewBox: "0 0 20 10", fill: "none", ...e, children: [
|
|
1314
|
+
/* @__PURE__ */ t(
|
|
1315
|
+
"path",
|
|
1316
|
+
{
|
|
1317
|
+
d: "M9.66437 2.60207L4.80758 6.97318C4.07308 7.63423 3.11989 8 2.13172 8H0V10H20V8H18.5349C17.5468 8 16.5936 7.63423 15.8591 6.97318L11.0023 2.60207C10.622 2.2598 10.0447 2.25979 9.66437 2.60207Z",
|
|
1318
|
+
className: "fill-background"
|
|
1319
|
+
}
|
|
1320
|
+
),
|
|
1321
|
+
/* @__PURE__ */ t(
|
|
1322
|
+
"path",
|
|
1323
|
+
{
|
|
1324
|
+
d: "M10.3333 3.34539L5.47654 7.71648C4.55842 8.54279 3.36693 9 2.13172 9H0V8H2.13172C3.11989 8 4.07308 7.63423 4.80758 6.97318L9.66437 2.60207C10.0447 2.25979 10.622 2.2598 11.0023 2.60207L15.8591 6.97318C16.5936 7.63423 17.5468 8 18.5349 8H20V9H18.5349C17.2998 9 16.1083 8.54278 15.1901 7.71648L10.3333 3.34539Z",
|
|
1325
|
+
className: "fill-border"
|
|
1326
|
+
}
|
|
1327
|
+
)
|
|
1328
|
+
] });
|
|
1329
|
+
}
|
|
1330
|
+
vt.displayName = "MenubarArrow";
|
|
1331
|
+
const Ct = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
1332
|
+
s.Item,
|
|
1333
|
+
{
|
|
1334
|
+
className: r(
|
|
1335
|
+
i({ variant: "ghost", size: "sm" }),
|
|
1336
|
+
"flex justify-start",
|
|
1337
|
+
e
|
|
1338
|
+
),
|
|
1339
|
+
...a
|
|
1340
|
+
}
|
|
1341
|
+
);
|
|
1342
|
+
Ct.displayName = "MenubarItem";
|
|
1343
|
+
const Mt = ({ className: e, ...a }) => /* @__PURE__ */ t(s.Separator, { className: r("-mx-1 my-1 h-px bg-border", e), ...a });
|
|
1344
|
+
Mt.displayName = "MenubarSeparator";
|
|
1345
|
+
const kt = ({ className: e, ...a }) => /* @__PURE__ */ t(s.Group, { className: r(e), ...a });
|
|
1346
|
+
kt.displayName = "MenubarGroup";
|
|
1347
|
+
const Pt = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
1348
|
+
s.GroupLabel,
|
|
1349
|
+
{
|
|
1350
|
+
className: r("px-3 py-1.5 text-sm font-semibold", e),
|
|
1351
|
+
...a
|
|
1352
|
+
}
|
|
1353
|
+
);
|
|
1354
|
+
Pt.displayName = "MenubarGroupLabel";
|
|
1355
|
+
const It = ({ className: e, ...a }) => /* @__PURE__ */ t(s.RadioGroup, { className: r(e), ...a });
|
|
1356
|
+
It.displayName = "MenubarRadioGroup";
|
|
1357
|
+
const Rt = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
1358
|
+
s.RadioItem,
|
|
1359
|
+
{
|
|
1360
|
+
className: r(
|
|
1361
|
+
i({ variant: "ghost", size: "sm" }),
|
|
1362
|
+
"grid grid-cols-[0.75rem_1fr] gap-2",
|
|
1363
|
+
e
|
|
1364
|
+
),
|
|
1365
|
+
...a
|
|
1366
|
+
}
|
|
1367
|
+
);
|
|
1368
|
+
Rt.displayName = "MenubarRadioItem";
|
|
1369
|
+
const Tt = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
1370
|
+
s.CheckboxItem,
|
|
1371
|
+
{
|
|
1372
|
+
className: r(
|
|
1373
|
+
i({ variant: "ghost", size: "sm" }),
|
|
1374
|
+
"grid grid-cols-[0.75rem_1fr] gap-2",
|
|
1375
|
+
e
|
|
1376
|
+
),
|
|
1377
|
+
...a
|
|
1378
|
+
}
|
|
1379
|
+
);
|
|
1380
|
+
Tt.displayName = "MenubarCheckboxItem";
|
|
1381
|
+
const Dt = ({
|
|
1382
|
+
className: e,
|
|
1383
|
+
...a
|
|
1384
|
+
}) => /* @__PURE__ */ t(s.RadioItemIndicator, { className: r("col-start-1", e), ...a });
|
|
1385
|
+
Dt.displayName = "MenubarRadioItemIndicator";
|
|
1386
|
+
const At = ({
|
|
1387
|
+
className: e,
|
|
1388
|
+
...a
|
|
1389
|
+
}) => /* @__PURE__ */ t(s.CheckboxItemIndicator, { className: r("col-start-1", e), ...a });
|
|
1390
|
+
At.displayName = "MenubarCheckboxItemIndicator";
|
|
1391
|
+
const zt = ({
|
|
1392
|
+
className: e,
|
|
1393
|
+
...a
|
|
1394
|
+
}) => /* @__PURE__ */ t("span", { className: r("col-start-2", e), ...a });
|
|
1395
|
+
zt.displayName = "MenubarCheckboxItemLabel";
|
|
1396
|
+
const St = ({ className: e, ...a }) => /* @__PURE__ */ t("span", { className: r("col-start-2", e), ...a });
|
|
1397
|
+
St.displayName = "MenubarRadioItemLabel";
|
|
1398
|
+
const Lt = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
1399
|
+
s.SubmenuTrigger,
|
|
1400
|
+
{
|
|
1401
|
+
className: r(
|
|
1402
|
+
i({ variant: "ghost", size: "sm" }),
|
|
1403
|
+
"flex justify-between",
|
|
1404
|
+
e
|
|
1405
|
+
),
|
|
1406
|
+
...a
|
|
1407
|
+
}
|
|
1408
|
+
);
|
|
1409
|
+
Lt.displayName = "MenubarSubmenuTrigger";
|
|
1410
|
+
const Vt = (e) => /* @__PURE__ */ t(s.SubmenuRoot, { ...e });
|
|
1411
|
+
Vt.displayName = "MenubarSubmenuRoot";
|
|
1091
1412
|
export {
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1413
|
+
Je as AccordionHeader,
|
|
1414
|
+
Ee as AccordionItem,
|
|
1415
|
+
Qe as AccordionPanel,
|
|
1416
|
+
Oe as AccordionRoot,
|
|
1417
|
+
Ke as AccordionTrigger,
|
|
1418
|
+
ir as AlertDialog,
|
|
1419
|
+
K as AlertDialogBackdrop,
|
|
1420
|
+
ee as AlertDialogClose,
|
|
1421
|
+
Y as AlertDialogDescription,
|
|
1422
|
+
W as AlertDialogPopup,
|
|
1423
|
+
J as AlertDialogPortal,
|
|
1424
|
+
O as AlertDialogRoot,
|
|
1425
|
+
X as AlertDialogTitle,
|
|
1426
|
+
E as AlertDialogTrigger,
|
|
1427
|
+
Q as AlertDialogViewport,
|
|
1428
|
+
te as AvatarFallback,
|
|
1429
|
+
ae as AvatarImage,
|
|
1430
|
+
S as AvatarRoot,
|
|
1431
|
+
re as AvatarStack,
|
|
1111
1432
|
F as Button,
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1433
|
+
Ea as CardContent,
|
|
1434
|
+
Oa as CardDescription,
|
|
1435
|
+
Ka as CardFooter,
|
|
1436
|
+
$a as CardHeader,
|
|
1437
|
+
Za as CardMedia,
|
|
1117
1438
|
Fa as CardRoot,
|
|
1118
|
-
|
|
1439
|
+
Ja as CardSection,
|
|
1119
1440
|
qa as CardTitle,
|
|
1120
1441
|
q as CollapsiblePanel,
|
|
1121
|
-
|
|
1122
|
-
|
|
1442
|
+
Z as CollapsibleRoot,
|
|
1443
|
+
$ as CollapsibleTrigger,
|
|
1444
|
+
et as ContextMenuArrow,
|
|
1445
|
+
lt as ContextMenuCheckboxItem,
|
|
1446
|
+
ct as ContextMenuCheckboxItemIndicator,
|
|
1447
|
+
ut as ContextMenuCheckboxItemLabel,
|
|
1448
|
+
ot as ContextMenuGroup,
|
|
1449
|
+
st as ContextMenuGroupLabel,
|
|
1450
|
+
tt as ContextMenuItem,
|
|
1451
|
+
Ya as ContextMenuPopup,
|
|
1452
|
+
Wa as ContextMenuPortal,
|
|
1453
|
+
Xa as ContextMenuPositioner,
|
|
1454
|
+
nt as ContextMenuRadioGroup,
|
|
1455
|
+
it as ContextMenuRadioItem,
|
|
1456
|
+
dt as ContextMenuRadioItemIndicator,
|
|
1457
|
+
mt as ContextMenuRadioItemLabel,
|
|
1458
|
+
Qa as ContextMenuRoot,
|
|
1459
|
+
rt as ContextMenuSeparator,
|
|
1460
|
+
gt as ContextMenuSubmenuRoot,
|
|
1461
|
+
pt as ContextMenuSubmenuTrigger,
|
|
1462
|
+
Ua as ContextMenuTrigger,
|
|
1123
1463
|
ke as DialogBackdrop,
|
|
1124
|
-
|
|
1464
|
+
De as DialogClose,
|
|
1125
1465
|
Te as DialogDescription,
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1466
|
+
ze as DialogFooter,
|
|
1467
|
+
Ae as DialogHeader,
|
|
1468
|
+
Ie as DialogPopup,
|
|
1469
|
+
Me as DialogPortal,
|
|
1470
|
+
we as DialogRoot,
|
|
1471
|
+
Re as DialogTitle,
|
|
1472
|
+
Ce as DialogTrigger,
|
|
1473
|
+
He as DrawerBackdrop,
|
|
1134
1474
|
Fe as DrawerClose,
|
|
1135
|
-
|
|
1475
|
+
$e as DrawerContent,
|
|
1136
1476
|
Be as DrawerDescription,
|
|
1137
1477
|
qe as DrawerFooter,
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1478
|
+
Ze as DrawerHeader,
|
|
1479
|
+
_e as DrawerPopup,
|
|
1480
|
+
Ve as DrawerPortal,
|
|
1481
|
+
Se as DrawerRoot,
|
|
1482
|
+
je as DrawerTitle,
|
|
1483
|
+
Le as DrawerTrigger,
|
|
1484
|
+
na as MenuArrow,
|
|
1485
|
+
ga as MenuCheckboxItem,
|
|
1486
|
+
fa as MenuCheckboxItemIndicator,
|
|
1487
|
+
ya as MenuCheckboxItemLabel,
|
|
1488
|
+
ca as MenuGroup,
|
|
1489
|
+
ua as MenuGroupLabel,
|
|
1150
1490
|
la as MenuItem,
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1491
|
+
sa as MenuPopup,
|
|
1492
|
+
ra as MenuPortal,
|
|
1493
|
+
oa as MenuPositioner,
|
|
1494
|
+
ma as MenuRadioGroup,
|
|
1495
|
+
pa as MenuRadioItem,
|
|
1496
|
+
ba as MenuRadioItemIndicator,
|
|
1497
|
+
Na as MenuRadioItemLabel,
|
|
1498
|
+
aa as MenuRoot,
|
|
1499
|
+
da as MenuSeparator,
|
|
1500
|
+
ha as MenuSubmenuRoot,
|
|
1501
|
+
xa as MenuSubmenuTrigger,
|
|
1502
|
+
ta as MenuTrigger,
|
|
1503
|
+
vt as MenubarArrow,
|
|
1504
|
+
Tt as MenubarCheckboxItem,
|
|
1505
|
+
At as MenubarCheckboxItemIndicator,
|
|
1506
|
+
zt as MenubarCheckboxItemLabel,
|
|
1507
|
+
kt as MenubarGroup,
|
|
1508
|
+
Pt as MenubarGroupLabel,
|
|
1509
|
+
Ct as MenubarItem,
|
|
1510
|
+
ft as MenubarMenu,
|
|
1511
|
+
ht as MenubarPopup,
|
|
1512
|
+
Nt as MenubarPortal,
|
|
1513
|
+
xt as MenubarPositioner,
|
|
1514
|
+
It as MenubarRadioGroup,
|
|
1515
|
+
Rt as MenubarRadioItem,
|
|
1516
|
+
Dt as MenubarRadioItemIndicator,
|
|
1517
|
+
St as MenubarRadioItemLabel,
|
|
1518
|
+
bt as MenubarRoot,
|
|
1519
|
+
Mt as MenubarSeparator,
|
|
1520
|
+
Vt as MenubarSubmenuRoot,
|
|
1521
|
+
Lt as MenubarSubmenuTrigger,
|
|
1522
|
+
yt as MenubarTrigger,
|
|
1523
|
+
Xe as MeterIndicator,
|
|
1524
|
+
ea as MeterLabel,
|
|
1525
|
+
Ue as MeterRoot,
|
|
1526
|
+
We as MeterTrack,
|
|
1527
|
+
Ye as MeterValue,
|
|
1528
|
+
Ia as PopoverArrow,
|
|
1529
|
+
Ma as PopoverBackdrop,
|
|
1530
|
+
Aa as PopoverClose,
|
|
1531
|
+
Da as PopoverDescription,
|
|
1172
1532
|
Pa as PopoverPopup,
|
|
1173
|
-
|
|
1533
|
+
Ca as PopoverPortal,
|
|
1174
1534
|
ka as PopoverPositioner,
|
|
1175
|
-
|
|
1535
|
+
va as PopoverRoot,
|
|
1176
1536
|
Ta as PopoverTitle,
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1537
|
+
wa as PopoverTrigger,
|
|
1538
|
+
za as PopoverViewport,
|
|
1539
|
+
Va as ProgressIndicator,
|
|
1540
|
+
Ga as ProgressLabel,
|
|
1541
|
+
Sa as ProgressRoot,
|
|
1542
|
+
La as ProgressTrack,
|
|
1543
|
+
Ha as ProgressValue,
|
|
1544
|
+
ne as ScrollAreaContent,
|
|
1545
|
+
de as ScrollAreaCorner,
|
|
1546
|
+
oe as ScrollAreaRoot,
|
|
1547
|
+
ie as ScrollAreaScrollbar,
|
|
1188
1548
|
le as ScrollAreaThumb,
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1549
|
+
se as ScrollAreaViewport,
|
|
1550
|
+
ce as Separator,
|
|
1551
|
+
ue as SwitchRoot,
|
|
1552
|
+
me as SwitchThumb,
|
|
1553
|
+
he as TabsIndicator,
|
|
1554
|
+
fe as TabsList,
|
|
1555
|
+
ve as TabsPanel,
|
|
1556
|
+
ge as TabsRoot,
|
|
1557
|
+
Ne as TabsTab,
|
|
1558
|
+
pe as Toggle,
|
|
1559
|
+
ja as ToggleGroupItem,
|
|
1560
|
+
_a as ToggleGroupRoot
|
|
1201
1561
|
};
|