@lglab/compose-ui 0.13.1 → 0.15.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/popover.d.ts +60 -0
- package/dist/components/popover.d.ts.map +1 -0
- package/dist/components/separator.d.ts +10 -0
- package/dist/components/separator.d.ts.map +1 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.es.js +470 -344
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,25 +1,27 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as t, jsxs as
|
|
2
|
+
import { jsx as t, jsxs as w } from "react/jsx-runtime";
|
|
3
3
|
import { Button as S } from "@base-ui/react/button";
|
|
4
|
-
import { cva as
|
|
5
|
-
import { clsx as
|
|
6
|
-
import { twMerge as
|
|
4
|
+
import { cva as u } from "class-variance-authority";
|
|
5
|
+
import { clsx as L } from "clsx";
|
|
6
|
+
import { twMerge as _ } from "tailwind-merge";
|
|
7
7
|
import { Collapsible as D } from "@base-ui/react/collapsible";
|
|
8
|
-
import { AlertDialog as
|
|
9
|
-
import { AlertDialog as
|
|
8
|
+
import { AlertDialog as m } from "@base-ui/react/alert-dialog";
|
|
9
|
+
import { AlertDialog as nt } from "@base-ui/react/alert-dialog";
|
|
10
10
|
import { Avatar as T } from "@base-ui/react/avatar";
|
|
11
|
-
import * as
|
|
12
|
-
import { ScrollArea as
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
11
|
+
import * as k from "react";
|
|
12
|
+
import { ScrollArea as g } from "@base-ui/react/scroll-area";
|
|
13
|
+
import { Separator as H } from "@base-ui/react/separator";
|
|
14
|
+
import { Switch as C } from "@base-ui/react/switch";
|
|
15
|
+
import { Toggle as z } from "@base-ui/react/toggle";
|
|
16
|
+
import { Tabs as y } from "@base-ui/react/tabs";
|
|
16
17
|
import { Dialog as n } from "@base-ui/react/dialog";
|
|
17
|
-
import { Accordion as
|
|
18
|
-
import { Meter as
|
|
18
|
+
import { Accordion as h } from "@base-ui/react/accordion";
|
|
19
|
+
import { Meter as N } from "@base-ui/react/meter";
|
|
19
20
|
import { Menu as l } from "@base-ui/react/menu";
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
|
|
21
|
+
import { Popover as i } from "@base-ui/react/popover";
|
|
22
|
+
import { Progress as x } from "@base-ui/react/progress";
|
|
23
|
+
import { ToggleGroup as B } from "@base-ui/react/toggle-group";
|
|
24
|
+
const d = u(
|
|
23
25
|
[
|
|
24
26
|
"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"
|
|
25
27
|
],
|
|
@@ -49,36 +51,36 @@ const i = c(
|
|
|
49
51
|
}
|
|
50
52
|
);
|
|
51
53
|
function r(...e) {
|
|
52
|
-
return L(
|
|
54
|
+
return _(L(e));
|
|
53
55
|
}
|
|
54
56
|
const j = ({
|
|
55
57
|
className: e,
|
|
56
58
|
variant: a,
|
|
57
59
|
size: o,
|
|
58
60
|
disabled: s,
|
|
59
|
-
children:
|
|
60
|
-
...
|
|
61
|
+
children: c,
|
|
62
|
+
...p
|
|
61
63
|
}) => /* @__PURE__ */ t(
|
|
62
64
|
S,
|
|
63
65
|
{
|
|
64
|
-
className: r(
|
|
66
|
+
className: r(d({ variant: a, size: o }), e),
|
|
65
67
|
disabled: s,
|
|
66
|
-
...
|
|
67
|
-
children:
|
|
68
|
+
...p,
|
|
69
|
+
children: c
|
|
68
70
|
}
|
|
69
71
|
);
|
|
70
72
|
j.displayName = "Button";
|
|
71
73
|
const F = ({ className: e, ...a }) => /* @__PURE__ */ t(D.Root, { className: r("w-full", e), ...a });
|
|
72
74
|
F.displayName = "CollapsibleRoot";
|
|
73
|
-
const
|
|
75
|
+
const G = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
74
76
|
D.Trigger,
|
|
75
77
|
{
|
|
76
78
|
className: r("flex items-center justify-between font-medium", e),
|
|
77
79
|
...a
|
|
78
80
|
}
|
|
79
81
|
);
|
|
80
|
-
|
|
81
|
-
const
|
|
82
|
+
G.displayName = "CollapsibleTrigger";
|
|
83
|
+
const q = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
82
84
|
D.Panel,
|
|
83
85
|
{
|
|
84
86
|
className: r(
|
|
@@ -91,26 +93,26 @@ const G = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
|
91
93
|
...a
|
|
92
94
|
}
|
|
93
95
|
);
|
|
94
|
-
|
|
95
|
-
const
|
|
96
|
-
|
|
97
|
-
const
|
|
96
|
+
q.displayName = "CollapsiblePanel";
|
|
97
|
+
const Z = (e) => /* @__PURE__ */ t(m.Root, { ...e });
|
|
98
|
+
Z.displayName = "AlertDialogRoot";
|
|
99
|
+
const $ = ({
|
|
98
100
|
className: e,
|
|
99
101
|
variant: a,
|
|
100
102
|
size: o,
|
|
101
103
|
...s
|
|
102
104
|
}) => /* @__PURE__ */ t(
|
|
103
|
-
|
|
105
|
+
m.Trigger,
|
|
104
106
|
{
|
|
105
|
-
className: r(
|
|
107
|
+
className: r(d({ variant: a, size: o }), e),
|
|
106
108
|
...s
|
|
107
109
|
}
|
|
108
110
|
);
|
|
109
|
-
|
|
110
|
-
const E = (e) => /* @__PURE__ */ t(
|
|
111
|
+
$.displayName = "AlertDialogTrigger";
|
|
112
|
+
const E = (e) => /* @__PURE__ */ t(m.Portal, { ...e });
|
|
111
113
|
E.displayName = "AlertDialogPortal";
|
|
112
|
-
const
|
|
113
|
-
|
|
114
|
+
const O = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
115
|
+
m.Backdrop,
|
|
114
116
|
{
|
|
115
117
|
className: r(
|
|
116
118
|
"fixed inset-0 z-50 bg-black/50 backdrop-blur-sm",
|
|
@@ -121,16 +123,16 @@ const Z = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
|
121
123
|
...a
|
|
122
124
|
}
|
|
123
125
|
);
|
|
124
|
-
|
|
125
|
-
const
|
|
126
|
-
|
|
126
|
+
O.displayName = "AlertDialogBackdrop";
|
|
127
|
+
const J = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
128
|
+
m.Viewport,
|
|
127
129
|
{
|
|
128
130
|
className: r("fixed inset-0 z-50 flex items-center justify-center p-4", e),
|
|
129
131
|
...a
|
|
130
132
|
}
|
|
131
133
|
);
|
|
132
|
-
|
|
133
|
-
const
|
|
134
|
+
J.displayName = "AlertDialogViewport";
|
|
135
|
+
const K = u(
|
|
134
136
|
[
|
|
135
137
|
"fixed left-1/2 top-1/2 z-50 -translate-x-1/2 -translate-y-1/2",
|
|
136
138
|
"w-full max-w-[calc(100vw-2rem)] rounded-lg border border-border bg-background p-6 shadow-lg",
|
|
@@ -154,38 +156,38 @@ const O = c(
|
|
|
154
156
|
size: "default"
|
|
155
157
|
}
|
|
156
158
|
}
|
|
157
|
-
),
|
|
158
|
-
|
|
159
|
+
), Q = ({ className: e, size: a, ...o }) => /* @__PURE__ */ t(
|
|
160
|
+
m.Popup,
|
|
159
161
|
{
|
|
160
|
-
className: r(
|
|
162
|
+
className: r(K({ size: a }), e),
|
|
161
163
|
...o
|
|
162
164
|
}
|
|
163
165
|
);
|
|
164
|
-
|
|
165
|
-
const
|
|
166
|
-
|
|
166
|
+
Q.displayName = "AlertDialogPopup";
|
|
167
|
+
const U = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
168
|
+
m.Title,
|
|
167
169
|
{
|
|
168
170
|
className: r("text-lg font-semibold leading-none tracking-tight", e),
|
|
169
171
|
...a
|
|
170
172
|
}
|
|
171
173
|
);
|
|
172
|
-
|
|
173
|
-
const
|
|
174
|
-
|
|
175
|
-
const
|
|
174
|
+
U.displayName = "AlertDialogTitle";
|
|
175
|
+
const W = ({ className: e, ...a }) => /* @__PURE__ */ t(m.Description, { className: r("mt-2", e), ...a });
|
|
176
|
+
W.displayName = "AlertDialogDescription";
|
|
177
|
+
const X = ({
|
|
176
178
|
className: e,
|
|
177
179
|
variant: a,
|
|
178
180
|
size: o,
|
|
179
181
|
...s
|
|
180
182
|
}) => /* @__PURE__ */ t(
|
|
181
|
-
|
|
183
|
+
m.Close,
|
|
182
184
|
{
|
|
183
|
-
className: r(
|
|
185
|
+
className: r(d({ variant: a ?? "outline", size: o }), e),
|
|
184
186
|
...s
|
|
185
187
|
}
|
|
186
188
|
);
|
|
187
|
-
|
|
188
|
-
const
|
|
189
|
+
X.displayName = "AlertDialogClose";
|
|
190
|
+
const M = u(
|
|
189
191
|
[
|
|
190
192
|
"relative flex shrink-0 items-center justify-center overflow-hidden rounded-full",
|
|
191
193
|
"bg-muted text-foreground",
|
|
@@ -203,17 +205,17 @@ const z = c(
|
|
|
203
205
|
size: "default"
|
|
204
206
|
}
|
|
205
207
|
}
|
|
206
|
-
),
|
|
207
|
-
|
|
208
|
-
const
|
|
208
|
+
), R = ({ className: e, size: a, ...o }) => /* @__PURE__ */ t(T.Root, { className: r(M({ size: a }), e), ...o });
|
|
209
|
+
R.displayName = "AvatarRoot";
|
|
210
|
+
const Y = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
209
211
|
T.Image,
|
|
210
212
|
{
|
|
211
213
|
className: r("aspect-square h-full w-full object-cover", e),
|
|
212
214
|
...a
|
|
213
215
|
}
|
|
214
216
|
);
|
|
215
|
-
|
|
216
|
-
const
|
|
217
|
+
Y.displayName = "AvatarImage";
|
|
218
|
+
const ee = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
217
219
|
T.Fallback,
|
|
218
220
|
{
|
|
219
221
|
className: r(
|
|
@@ -223,55 +225,55 @@ const X = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
|
223
225
|
...a
|
|
224
226
|
}
|
|
225
227
|
);
|
|
226
|
-
|
|
227
|
-
const
|
|
228
|
+
ee.displayName = "AvatarFallback";
|
|
229
|
+
const ae = ({
|
|
228
230
|
"aria-label": e,
|
|
229
231
|
maxVisible: a,
|
|
230
232
|
className: o,
|
|
231
233
|
children: s
|
|
232
234
|
}) => {
|
|
233
|
-
const
|
|
234
|
-
const
|
|
235
|
-
return
|
|
235
|
+
const c = k.Children.toArray(s), p = c.length, f = a !== void 0 ? Math.min(a, p) : p, v = p - f, P = c.slice(0, f), I = (() => {
|
|
236
|
+
const b = c[0];
|
|
237
|
+
return k.isValidElement(b) && b.type === R ? b.props.size ?? "default" : "default";
|
|
236
238
|
})();
|
|
237
|
-
return /* @__PURE__ */
|
|
238
|
-
|
|
239
|
-
|
|
239
|
+
return /* @__PURE__ */ w("ul", { "aria-label": e, className: r("flex -space-x-2", o), children: [
|
|
240
|
+
P.map((b, A) => /* @__PURE__ */ t("li", { children: b }, A)),
|
|
241
|
+
v > 0 && /* @__PURE__ */ t("li", { children: /* @__PURE__ */ w(
|
|
240
242
|
"span",
|
|
241
243
|
{
|
|
242
244
|
className: r(
|
|
243
245
|
"relative flex shrink-0 items-center justify-center overflow-hidden rounded-full",
|
|
244
246
|
"bg-muted text-foreground border-2 border-background",
|
|
245
247
|
"font-medium",
|
|
246
|
-
|
|
248
|
+
M({ size: I })
|
|
247
249
|
),
|
|
248
250
|
children: [
|
|
249
251
|
"+",
|
|
250
|
-
|
|
252
|
+
v
|
|
251
253
|
]
|
|
252
254
|
}
|
|
253
255
|
) })
|
|
254
256
|
] });
|
|
255
257
|
};
|
|
256
|
-
|
|
257
|
-
const
|
|
258
|
-
|
|
259
|
-
const
|
|
260
|
-
|
|
258
|
+
ae.displayName = "AvatarStack";
|
|
259
|
+
const te = ({ className: e, ...a }) => /* @__PURE__ */ t(g.Root, { className: r("relative", e), ...a });
|
|
260
|
+
te.displayName = "ScrollAreaRoot";
|
|
261
|
+
const re = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
262
|
+
g.Viewport,
|
|
261
263
|
{
|
|
262
264
|
className: r("h-full overscroll-contain pr-3", e),
|
|
263
265
|
...a
|
|
264
266
|
}
|
|
265
267
|
);
|
|
266
|
-
|
|
267
|
-
const
|
|
268
|
-
|
|
269
|
-
const
|
|
268
|
+
re.displayName = "ScrollAreaViewport";
|
|
269
|
+
const oe = ({ className: e, ...a }) => /* @__PURE__ */ t(g.Content, { className: r("min-w-full", e), ...a });
|
|
270
|
+
oe.displayName = "ScrollAreaContent";
|
|
271
|
+
const se = ({
|
|
270
272
|
className: e,
|
|
271
273
|
orientation: a = "vertical",
|
|
272
274
|
...o
|
|
273
275
|
}) => /* @__PURE__ */ t(
|
|
274
|
-
|
|
276
|
+
g.Scrollbar,
|
|
275
277
|
{
|
|
276
278
|
className: r(
|
|
277
279
|
"flex touch-none select-none p-0.5 transition-colors duration-200 ease-out",
|
|
@@ -284,9 +286,9 @@ const re = ({
|
|
|
284
286
|
...o
|
|
285
287
|
}
|
|
286
288
|
);
|
|
287
|
-
|
|
288
|
-
const
|
|
289
|
-
|
|
289
|
+
se.displayName = "ScrollAreaScrollbar";
|
|
290
|
+
const le = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
291
|
+
g.Thumb,
|
|
290
292
|
{
|
|
291
293
|
className: r(
|
|
292
294
|
"relative flex-1 rounded-full bg-border transition-colors",
|
|
@@ -296,11 +298,28 @@ const oe = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
|
296
298
|
...a
|
|
297
299
|
}
|
|
298
300
|
);
|
|
299
|
-
|
|
300
|
-
const
|
|
301
|
-
|
|
302
|
-
const
|
|
303
|
-
|
|
301
|
+
le.displayName = "ScrollAreaThumb";
|
|
302
|
+
const ne = ({ className: e, ...a }) => /* @__PURE__ */ t(g.Corner, { className: r("bg-muted/50", e), ...a });
|
|
303
|
+
ne.displayName = "ScrollAreaCorner";
|
|
304
|
+
const ie = ({
|
|
305
|
+
className: e,
|
|
306
|
+
orientation: a = "horizontal",
|
|
307
|
+
...o
|
|
308
|
+
}) => /* @__PURE__ */ t(
|
|
309
|
+
H,
|
|
310
|
+
{
|
|
311
|
+
orientation: a,
|
|
312
|
+
className: r(
|
|
313
|
+
"shrink-0 bg-border",
|
|
314
|
+
a === "horizontal" ? "h-px w-full" : "h-full w-px",
|
|
315
|
+
e
|
|
316
|
+
),
|
|
317
|
+
...o
|
|
318
|
+
}
|
|
319
|
+
);
|
|
320
|
+
ie.displayName = "Separator";
|
|
321
|
+
const de = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
322
|
+
C.Root,
|
|
304
323
|
{
|
|
305
324
|
className: r(
|
|
306
325
|
"relative flex h-6 w-10 rounded-full",
|
|
@@ -315,9 +334,9 @@ const le = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
|
315
334
|
...a
|
|
316
335
|
}
|
|
317
336
|
);
|
|
318
|
-
|
|
319
|
-
const
|
|
320
|
-
|
|
337
|
+
de.displayName = "SwitchRoot";
|
|
338
|
+
const ce = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
339
|
+
C.Thumb,
|
|
321
340
|
{
|
|
322
341
|
className: r(
|
|
323
342
|
"aspect-square h-full rounded-full bg-background",
|
|
@@ -331,8 +350,8 @@ const ne = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
|
331
350
|
...a
|
|
332
351
|
}
|
|
333
352
|
);
|
|
334
|
-
|
|
335
|
-
const
|
|
353
|
+
ce.displayName = "SwitchThumb";
|
|
354
|
+
const V = u(
|
|
336
355
|
[
|
|
337
356
|
"inline-flex items-center justify-center gap-2 rounded-md",
|
|
338
357
|
"text-sm font-medium",
|
|
@@ -363,11 +382,11 @@ const C = c(
|
|
|
363
382
|
size: "default"
|
|
364
383
|
}
|
|
365
384
|
}
|
|
366
|
-
),
|
|
367
|
-
|
|
368
|
-
const
|
|
369
|
-
|
|
370
|
-
const
|
|
385
|
+
), ue = ({ className: e, variant: a, size: o, ...s }) => /* @__PURE__ */ t(z, { className: r(V({ variant: a, size: o }), e), ...s });
|
|
386
|
+
ue.displayName = "Toggle";
|
|
387
|
+
const me = ({ className: e, ...a }) => /* @__PURE__ */ t(y.Root, { className: r("flex flex-col", e), ...a });
|
|
388
|
+
me.displayName = "TabsRoot";
|
|
389
|
+
const pe = u(
|
|
371
390
|
["relative inline-flex w-fit items-center gap-1", "rounded-lg bg-muted p-1"],
|
|
372
391
|
{
|
|
373
392
|
variants: {
|
|
@@ -380,15 +399,15 @@ const ce = c(
|
|
|
380
399
|
orientation: "horizontal"
|
|
381
400
|
}
|
|
382
401
|
}
|
|
383
|
-
),
|
|
384
|
-
|
|
402
|
+
), ge = ({ className: e, orientation: a = "horizontal", ...o }) => /* @__PURE__ */ t(
|
|
403
|
+
y.List,
|
|
385
404
|
{
|
|
386
|
-
className: r(
|
|
405
|
+
className: r(pe({ orientation: a }), e),
|
|
387
406
|
...o
|
|
388
407
|
}
|
|
389
408
|
);
|
|
390
|
-
|
|
391
|
-
const
|
|
409
|
+
ge.displayName = "TabsList";
|
|
410
|
+
const fe = u(
|
|
392
411
|
[
|
|
393
412
|
"relative z-10 inline-flex items-center justify-center whitespace-nowrap",
|
|
394
413
|
"rounded-md px-3 py-1.5 text-sm font-medium",
|
|
@@ -409,9 +428,9 @@ const me = c(
|
|
|
409
428
|
size: "default"
|
|
410
429
|
}
|
|
411
430
|
}
|
|
412
|
-
),
|
|
413
|
-
|
|
414
|
-
const
|
|
431
|
+
), be = ({ className: e, size: a, ...o }) => /* @__PURE__ */ t(y.Tab, { className: r(fe({ size: a }), e), ...o });
|
|
432
|
+
be.displayName = "TabsTab";
|
|
433
|
+
const ye = u(
|
|
415
434
|
["absolute rounded-md bg-background shadow-sm", "transition-all duration-200 ease-out"],
|
|
416
435
|
{
|
|
417
436
|
variants: {
|
|
@@ -424,33 +443,33 @@ const ge = c(
|
|
|
424
443
|
orientation: "horizontal"
|
|
425
444
|
}
|
|
426
445
|
}
|
|
427
|
-
),
|
|
446
|
+
), he = ({
|
|
428
447
|
className: e,
|
|
429
448
|
orientation: a = "horizontal",
|
|
430
449
|
...o
|
|
431
450
|
}) => /* @__PURE__ */ t(
|
|
432
|
-
|
|
451
|
+
y.Indicator,
|
|
433
452
|
{
|
|
434
|
-
className: r(
|
|
453
|
+
className: r(ye({ orientation: a }), e),
|
|
435
454
|
...o
|
|
436
455
|
}
|
|
437
456
|
);
|
|
438
|
-
|
|
439
|
-
const
|
|
440
|
-
|
|
441
|
-
const
|
|
442
|
-
|
|
443
|
-
const
|
|
457
|
+
he.displayName = "TabsIndicator";
|
|
458
|
+
const Ne = ({ className: e, ...a }) => /* @__PURE__ */ t(y.Panel, { className: r("mt-2 ring-offset-background", e), ...a });
|
|
459
|
+
Ne.displayName = "TabsPanel";
|
|
460
|
+
const xe = (e) => /* @__PURE__ */ t(n.Root, { ...e });
|
|
461
|
+
xe.displayName = "DialogRoot";
|
|
462
|
+
const ve = ({ className: e, variant: a, size: o, ...s }) => /* @__PURE__ */ t(
|
|
444
463
|
n.Trigger,
|
|
445
464
|
{
|
|
446
|
-
className: r(
|
|
465
|
+
className: r(d({ variant: a, size: o }), e),
|
|
447
466
|
...s
|
|
448
467
|
}
|
|
449
468
|
);
|
|
450
|
-
|
|
451
|
-
const
|
|
452
|
-
|
|
453
|
-
const
|
|
469
|
+
ve.displayName = "DialogTrigger";
|
|
470
|
+
const we = (e) => /* @__PURE__ */ t(n.Portal, { ...e });
|
|
471
|
+
we.displayName = "DialogPortal";
|
|
472
|
+
const ke = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
454
473
|
n.Backdrop,
|
|
455
474
|
{
|
|
456
475
|
className: r(
|
|
@@ -462,8 +481,8 @@ const xe = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
|
462
481
|
...a
|
|
463
482
|
}
|
|
464
483
|
);
|
|
465
|
-
|
|
466
|
-
const
|
|
484
|
+
ke.displayName = "DialogBackdrop";
|
|
485
|
+
const Pe = u(
|
|
467
486
|
[
|
|
468
487
|
"fixed left-1/2 top-1/2 z-50 -translate-x-1/2 -translate-y-1/2",
|
|
469
488
|
"w-full max-w-[calc(100vw-2rem)] rounded-lg border border-border bg-background p-6 shadow-lg",
|
|
@@ -487,34 +506,34 @@ const ve = c(
|
|
|
487
506
|
size: "default"
|
|
488
507
|
}
|
|
489
508
|
}
|
|
490
|
-
),
|
|
509
|
+
), De = ({ className: e, size: a, ...o }) => /* @__PURE__ */ t(
|
|
491
510
|
n.Popup,
|
|
492
511
|
{
|
|
493
|
-
className: r(
|
|
512
|
+
className: r(Pe({ size: a }), e),
|
|
494
513
|
...o
|
|
495
514
|
}
|
|
496
515
|
);
|
|
497
|
-
|
|
498
|
-
const
|
|
516
|
+
De.displayName = "DialogPopup";
|
|
517
|
+
const Te = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
499
518
|
n.Title,
|
|
500
519
|
{
|
|
501
520
|
className: r("text-lg font-semibold leading-none tracking-tight", e),
|
|
502
521
|
...a
|
|
503
522
|
}
|
|
504
523
|
);
|
|
505
|
-
|
|
506
|
-
const
|
|
507
|
-
|
|
508
|
-
const
|
|
524
|
+
Te.displayName = "DialogTitle";
|
|
525
|
+
const Ae = ({ className: e, ...a }) => /* @__PURE__ */ t(n.Description, { className: r("mt-2", e), ...a });
|
|
526
|
+
Ae.displayName = "DialogDescription";
|
|
527
|
+
const Ce = ({ className: e, variant: a, size: o, ...s }) => /* @__PURE__ */ t(
|
|
509
528
|
n.Close,
|
|
510
529
|
{
|
|
511
|
-
className: r(
|
|
530
|
+
className: r(d({ variant: a ?? "outline", size: o }), e),
|
|
512
531
|
...s
|
|
513
532
|
}
|
|
514
533
|
);
|
|
515
|
-
|
|
516
|
-
const
|
|
517
|
-
|
|
534
|
+
Ce.displayName = "DialogClose";
|
|
535
|
+
const ze = ({ className: e, ...a }) => /* @__PURE__ */ t("div", { className: r("flex flex-col space-y-1 mb-5", e), ...a });
|
|
536
|
+
ze.displayName = "DialogHeader";
|
|
518
537
|
const Me = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
519
538
|
"div",
|
|
520
539
|
{
|
|
@@ -528,17 +547,17 @@ const Me = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
|
528
547
|
Me.displayName = "DialogFooter";
|
|
529
548
|
const Re = (e) => /* @__PURE__ */ t(n.Root, { ...e });
|
|
530
549
|
Re.displayName = "DrawerRoot";
|
|
531
|
-
const
|
|
550
|
+
const Ve = ({ className: e, variant: a, size: o, ...s }) => /* @__PURE__ */ t(
|
|
532
551
|
n.Trigger,
|
|
533
552
|
{
|
|
534
|
-
className: r(
|
|
553
|
+
className: r(d({ variant: a, size: o }), e),
|
|
535
554
|
...s
|
|
536
555
|
}
|
|
537
556
|
);
|
|
538
|
-
|
|
539
|
-
const
|
|
540
|
-
|
|
541
|
-
const
|
|
557
|
+
Ve.displayName = "DrawerTrigger";
|
|
558
|
+
const Ie = (e) => /* @__PURE__ */ t(n.Portal, { ...e });
|
|
559
|
+
Ie.displayName = "DrawerPortal";
|
|
560
|
+
const Se = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
542
561
|
n.Backdrop,
|
|
543
562
|
{
|
|
544
563
|
className: r(
|
|
@@ -550,8 +569,8 @@ const Ce = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
|
550
569
|
...a
|
|
551
570
|
}
|
|
552
571
|
);
|
|
553
|
-
|
|
554
|
-
const
|
|
572
|
+
Se.displayName = "DrawerBackdrop";
|
|
573
|
+
const Le = u(
|
|
555
574
|
[
|
|
556
575
|
"fixed z-50 flex flex-col bg-background p-6 shadow-lg",
|
|
557
576
|
"transition-transform duration-300 ease-out",
|
|
@@ -587,52 +606,52 @@ const Ie = c(
|
|
|
587
606
|
side: "right"
|
|
588
607
|
}
|
|
589
608
|
}
|
|
590
|
-
),
|
|
609
|
+
), _e = ({ className: e, side: a, ...o }) => /* @__PURE__ */ t(
|
|
591
610
|
n.Popup,
|
|
592
611
|
{
|
|
593
|
-
className: r(
|
|
612
|
+
className: r(Le({ side: a }), e),
|
|
594
613
|
...o
|
|
595
614
|
}
|
|
596
615
|
);
|
|
597
|
-
|
|
598
|
-
const
|
|
616
|
+
_e.displayName = "DrawerPopup";
|
|
617
|
+
const He = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
599
618
|
n.Title,
|
|
600
619
|
{
|
|
601
620
|
className: r("text-lg font-semibold leading-none tracking-tight", e),
|
|
602
621
|
...a
|
|
603
622
|
}
|
|
604
623
|
);
|
|
605
|
-
|
|
606
|
-
const
|
|
607
|
-
|
|
608
|
-
const
|
|
624
|
+
He.displayName = "DrawerTitle";
|
|
625
|
+
const Be = ({ className: e, ...a }) => /* @__PURE__ */ t(n.Description, { className: r("", e), ...a });
|
|
626
|
+
Be.displayName = "DrawerDescription";
|
|
627
|
+
const je = ({ className: e, variant: a, size: o, ...s }) => /* @__PURE__ */ t(
|
|
609
628
|
n.Close,
|
|
610
629
|
{
|
|
611
|
-
className: r(
|
|
630
|
+
className: r(d({ variant: a ?? "outline", size: o }), e),
|
|
612
631
|
...s
|
|
613
632
|
}
|
|
614
633
|
);
|
|
615
|
-
|
|
616
|
-
const
|
|
617
|
-
|
|
618
|
-
const
|
|
619
|
-
|
|
620
|
-
const
|
|
621
|
-
|
|
622
|
-
const
|
|
623
|
-
|
|
624
|
-
const
|
|
625
|
-
|
|
634
|
+
je.displayName = "DrawerClose";
|
|
635
|
+
const Fe = ({ className: e, ...a }) => /* @__PURE__ */ t("div", { className: r("flex flex-col space-y-1.5", e), ...a });
|
|
636
|
+
Fe.displayName = "DrawerHeader";
|
|
637
|
+
const Ge = ({ className: e, ...a }) => /* @__PURE__ */ t("div", { className: r("py-5", e), ...a });
|
|
638
|
+
Ge.displayName = "DrawerContent";
|
|
639
|
+
const qe = ({ className: e, ...a }) => /* @__PURE__ */ t("div", { className: r("", e), ...a });
|
|
640
|
+
qe.displayName = "DrawerFooter";
|
|
641
|
+
const Ze = ({ className: e, ...a }) => /* @__PURE__ */ t(h.Root, { className: r("w-full", e), ...a });
|
|
642
|
+
Ze.displayName = "AccordionRoot";
|
|
643
|
+
const $e = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
644
|
+
h.Item,
|
|
626
645
|
{
|
|
627
646
|
className: r("border-b border-border last:border-b-0", e),
|
|
628
647
|
...a
|
|
629
648
|
}
|
|
630
649
|
);
|
|
631
|
-
|
|
632
|
-
const
|
|
633
|
-
|
|
634
|
-
const
|
|
635
|
-
|
|
650
|
+
$e.displayName = "AccordionItem";
|
|
651
|
+
const Ee = ({ className: e, ...a }) => /* @__PURE__ */ t(h.Header, { className: r("flex", e), ...a });
|
|
652
|
+
Ee.displayName = "AccordionHeader";
|
|
653
|
+
const Oe = ({ className: e, children: a, ...o }) => /* @__PURE__ */ t(
|
|
654
|
+
h.Trigger,
|
|
636
655
|
{
|
|
637
656
|
className: r(
|
|
638
657
|
"flex flex-1 items-center justify-between py-3 font-medium",
|
|
@@ -642,9 +661,9 @@ const Ee = ({ className: e, children: a, ...o }) => /* @__PURE__ */ t(
|
|
|
642
661
|
children: a
|
|
643
662
|
}
|
|
644
663
|
);
|
|
645
|
-
|
|
646
|
-
const
|
|
647
|
-
|
|
664
|
+
Oe.displayName = "AccordionTrigger";
|
|
665
|
+
const Je = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
666
|
+
h.Panel,
|
|
648
667
|
{
|
|
649
668
|
className: r(
|
|
650
669
|
"overflow-hidden duration-200 h-(--accordion-panel-height) transition-height ease-out data-ending-style:h-0 data-starting-style:h-0",
|
|
@@ -653,25 +672,25 @@ const Ze = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
|
653
672
|
...a
|
|
654
673
|
}
|
|
655
674
|
);
|
|
656
|
-
|
|
657
|
-
const
|
|
658
|
-
const
|
|
659
|
-
return
|
|
675
|
+
Je.displayName = "AccordionPanel";
|
|
676
|
+
const Ke = ({ className: e, animated: a, value: o, ...s }) => {
|
|
677
|
+
const c = o ?? 0, [p, f] = k.useState(a ? 0 : c);
|
|
678
|
+
return k.useEffect(() => {
|
|
660
679
|
if (a) {
|
|
661
|
-
const
|
|
662
|
-
const
|
|
663
|
-
|
|
680
|
+
const v = requestAnimationFrame(() => {
|
|
681
|
+
const P = requestAnimationFrame(() => {
|
|
682
|
+
f(c ?? 0);
|
|
664
683
|
});
|
|
665
|
-
return () => cancelAnimationFrame(
|
|
684
|
+
return () => cancelAnimationFrame(P);
|
|
666
685
|
});
|
|
667
|
-
return () => cancelAnimationFrame(
|
|
686
|
+
return () => cancelAnimationFrame(v);
|
|
668
687
|
} else
|
|
669
|
-
|
|
670
|
-
}, [a,
|
|
688
|
+
f(c ?? 0);
|
|
689
|
+
}, [a, c]), /* @__PURE__ */ t(N.Root, { className: r("w-full", e), value: p, ...s });
|
|
671
690
|
};
|
|
672
|
-
|
|
673
|
-
const
|
|
674
|
-
|
|
691
|
+
Ke.displayName = "MeterRoot";
|
|
692
|
+
const Qe = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
693
|
+
N.Track,
|
|
675
694
|
{
|
|
676
695
|
className: r(
|
|
677
696
|
"relative h-2 w-full overflow-hidden rounded-full bg-primary/20",
|
|
@@ -680,9 +699,9 @@ const Oe = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
|
680
699
|
...a
|
|
681
700
|
}
|
|
682
701
|
);
|
|
683
|
-
|
|
684
|
-
const
|
|
685
|
-
|
|
702
|
+
Qe.displayName = "MeterTrack";
|
|
703
|
+
const Ue = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
704
|
+
N.Indicator,
|
|
686
705
|
{
|
|
687
706
|
className: r(
|
|
688
707
|
"h-full rounded-full bg-primary transition-all duration-1000 ease-out-expo",
|
|
@@ -691,30 +710,30 @@ const Je = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
|
691
710
|
...a
|
|
692
711
|
}
|
|
693
712
|
);
|
|
694
|
-
|
|
695
|
-
const
|
|
696
|
-
|
|
713
|
+
Ue.displayName = "MeterIndicator";
|
|
714
|
+
const We = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
715
|
+
N.Value,
|
|
697
716
|
{
|
|
698
717
|
className: r("text-sm font-medium text-foreground", e),
|
|
699
718
|
...a
|
|
700
719
|
}
|
|
701
720
|
);
|
|
702
|
-
|
|
703
|
-
const
|
|
704
|
-
|
|
721
|
+
We.displayName = "MeterValue";
|
|
722
|
+
const Xe = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
723
|
+
N.Label,
|
|
705
724
|
{
|
|
706
725
|
className: r("text-sm font-medium text-foreground", e),
|
|
707
726
|
...a
|
|
708
727
|
}
|
|
709
728
|
);
|
|
710
|
-
|
|
711
|
-
const
|
|
712
|
-
|
|
713
|
-
const
|
|
714
|
-
|
|
715
|
-
const
|
|
716
|
-
|
|
717
|
-
const
|
|
729
|
+
Xe.displayName = "MeterLabel";
|
|
730
|
+
const Ye = (e) => /* @__PURE__ */ t(l.Root, { ...e });
|
|
731
|
+
Ye.displayName = "MenuRoot";
|
|
732
|
+
const ea = ({ className: e, ...a }) => /* @__PURE__ */ t(l.Trigger, { className: r(e), ...a });
|
|
733
|
+
ea.displayName = "MenuTrigger";
|
|
734
|
+
const aa = (e) => /* @__PURE__ */ t(l.Portal, { ...e });
|
|
735
|
+
aa.displayName = "MenuPortal";
|
|
736
|
+
const ta = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
718
737
|
l.Positioner,
|
|
719
738
|
{
|
|
720
739
|
className: r("z-50 outline-none", e),
|
|
@@ -722,20 +741,20 @@ const Ye = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
|
722
741
|
...a
|
|
723
742
|
}
|
|
724
743
|
);
|
|
725
|
-
|
|
726
|
-
const
|
|
744
|
+
ta.displayName = "MenuPositioner";
|
|
745
|
+
const ra = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
727
746
|
l.Popup,
|
|
728
747
|
{
|
|
729
748
|
className: r(
|
|
730
|
-
"rounded-md bg-background p-1 text-foreground shadow-sm
|
|
749
|
+
"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",
|
|
731
750
|
"min-w-[8rem]",
|
|
732
751
|
e
|
|
733
752
|
),
|
|
734
753
|
...a
|
|
735
754
|
}
|
|
736
755
|
);
|
|
737
|
-
|
|
738
|
-
const
|
|
756
|
+
ra.displayName = "MenuPopup";
|
|
757
|
+
const oa = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
739
758
|
l.Arrow,
|
|
740
759
|
{
|
|
741
760
|
className: r(
|
|
@@ -743,11 +762,11 @@ const aa = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
|
743
762
|
e
|
|
744
763
|
),
|
|
745
764
|
...a,
|
|
746
|
-
children: /* @__PURE__ */ t(
|
|
765
|
+
children: /* @__PURE__ */ t(sa, {})
|
|
747
766
|
}
|
|
748
767
|
);
|
|
749
|
-
function
|
|
750
|
-
return /* @__PURE__ */
|
|
768
|
+
function sa(e) {
|
|
769
|
+
return /* @__PURE__ */ w("svg", { width: "20", height: "10", viewBox: "0 0 20 10", fill: "none", ...e, children: [
|
|
751
770
|
/* @__PURE__ */ t(
|
|
752
771
|
"path",
|
|
753
772
|
{
|
|
@@ -764,92 +783,187 @@ function ta(e) {
|
|
|
764
783
|
)
|
|
765
784
|
] });
|
|
766
785
|
}
|
|
767
|
-
|
|
768
|
-
const
|
|
786
|
+
oa.displayName = "MenuArrow";
|
|
787
|
+
const la = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
769
788
|
l.Item,
|
|
770
789
|
{
|
|
771
790
|
className: r(
|
|
772
|
-
|
|
791
|
+
d({ variant: "ghost", size: "sm" }),
|
|
773
792
|
"flex justify-start",
|
|
774
793
|
e
|
|
775
794
|
),
|
|
776
795
|
...a
|
|
777
796
|
}
|
|
778
797
|
);
|
|
779
|
-
|
|
780
|
-
const
|
|
798
|
+
la.displayName = "MenuItem";
|
|
799
|
+
const na = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
781
800
|
l.Separator,
|
|
782
801
|
{
|
|
783
802
|
className: r("-mx-1 my-1 h-px bg-border", e),
|
|
784
803
|
...a
|
|
785
804
|
}
|
|
786
805
|
);
|
|
787
|
-
|
|
788
|
-
const
|
|
789
|
-
|
|
790
|
-
const
|
|
806
|
+
na.displayName = "MenuSeparator";
|
|
807
|
+
const ia = ({ className: e, ...a }) => /* @__PURE__ */ t(l.Group, { className: r(e), ...a });
|
|
808
|
+
ia.displayName = "MenuGroup";
|
|
809
|
+
const da = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
791
810
|
l.GroupLabel,
|
|
792
811
|
{
|
|
793
812
|
className: r("px-3 py-1.5 text-sm font-semibold", e),
|
|
794
813
|
...a
|
|
795
814
|
}
|
|
796
815
|
);
|
|
797
|
-
|
|
798
|
-
const
|
|
799
|
-
|
|
800
|
-
const
|
|
816
|
+
da.displayName = "MenuGroupLabel";
|
|
817
|
+
const ca = ({ className: e, ...a }) => /* @__PURE__ */ t(l.RadioGroup, { className: r(e), ...a });
|
|
818
|
+
ca.displayName = "MenuRadioGroup";
|
|
819
|
+
const ua = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
801
820
|
l.RadioItem,
|
|
802
821
|
{
|
|
803
822
|
className: r(
|
|
804
|
-
|
|
823
|
+
d({ variant: "ghost", size: "sm" }),
|
|
805
824
|
"grid grid-cols-[0.75rem_1fr] gap-2",
|
|
806
825
|
e
|
|
807
826
|
),
|
|
808
827
|
...a
|
|
809
828
|
}
|
|
810
829
|
);
|
|
811
|
-
|
|
812
|
-
const
|
|
830
|
+
ua.displayName = "MenuRadioItem";
|
|
831
|
+
const ma = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
813
832
|
l.CheckboxItem,
|
|
814
833
|
{
|
|
815
834
|
className: r(
|
|
816
|
-
|
|
835
|
+
d({ variant: "ghost", size: "sm" }),
|
|
817
836
|
"grid grid-cols-[0.75rem_1fr] gap-2",
|
|
818
837
|
e
|
|
819
838
|
),
|
|
820
839
|
...a
|
|
821
840
|
}
|
|
822
841
|
);
|
|
823
|
-
|
|
824
|
-
const
|
|
825
|
-
|
|
826
|
-
const
|
|
842
|
+
ma.displayName = "MenuCheckboxItem";
|
|
843
|
+
const pa = ({ className: e, ...a }) => /* @__PURE__ */ t(l.RadioItemIndicator, { className: r("col-start-1", e), ...a });
|
|
844
|
+
pa.displayName = "MenuRadioItemIndicator";
|
|
845
|
+
const ga = ({
|
|
827
846
|
className: e,
|
|
828
847
|
...a
|
|
829
848
|
}) => /* @__PURE__ */ t(l.CheckboxItemIndicator, { className: r("col-start-1", e), ...a });
|
|
830
|
-
|
|
831
|
-
const
|
|
832
|
-
|
|
833
|
-
const
|
|
834
|
-
|
|
835
|
-
const
|
|
849
|
+
ga.displayName = "MenuCheckboxItemIndicator";
|
|
850
|
+
const fa = ({ className: e, ...a }) => /* @__PURE__ */ t("span", { className: r("col-start-2", e), ...a });
|
|
851
|
+
fa.displayName = "MenuCheckboxItemLabel";
|
|
852
|
+
const ba = ({ className: e, ...a }) => /* @__PURE__ */ t("span", { className: r("col-start-2", e), ...a });
|
|
853
|
+
ba.displayName = "MenuRadioItemLabel";
|
|
854
|
+
const ya = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
836
855
|
l.SubmenuTrigger,
|
|
837
856
|
{
|
|
838
857
|
className: r(
|
|
839
|
-
|
|
858
|
+
d({ variant: "ghost", size: "sm" }),
|
|
840
859
|
"flex justify-between",
|
|
841
860
|
e
|
|
842
861
|
),
|
|
843
862
|
...a
|
|
844
863
|
}
|
|
845
864
|
);
|
|
846
|
-
|
|
847
|
-
const
|
|
848
|
-
|
|
849
|
-
const
|
|
850
|
-
|
|
851
|
-
const
|
|
852
|
-
|
|
865
|
+
ya.displayName = "MenuSubmenuTrigger";
|
|
866
|
+
const ha = (e) => /* @__PURE__ */ t(l.SubmenuRoot, { ...e });
|
|
867
|
+
ha.displayName = "MenuSubmenuRoot";
|
|
868
|
+
const Na = (e) => /* @__PURE__ */ t(i.Root, { ...e });
|
|
869
|
+
Na.displayName = "PopoverRoot";
|
|
870
|
+
const xa = ({ className: e, ...a }) => /* @__PURE__ */ t(i.Trigger, { className: r(e), ...a });
|
|
871
|
+
xa.displayName = "PopoverTrigger";
|
|
872
|
+
const va = (e) => /* @__PURE__ */ t(i.Portal, { ...e });
|
|
873
|
+
va.displayName = "PopoverPortal";
|
|
874
|
+
const wa = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
875
|
+
i.Backdrop,
|
|
876
|
+
{
|
|
877
|
+
className: r(
|
|
878
|
+
"fixed inset-0 z-50 bg-black/50 backdrop-blur-sm",
|
|
879
|
+
"transition-opacity duration-200",
|
|
880
|
+
"data-starting-style:opacity-0 data-ending-style:opacity-0",
|
|
881
|
+
e
|
|
882
|
+
),
|
|
883
|
+
...a
|
|
884
|
+
}
|
|
885
|
+
);
|
|
886
|
+
wa.displayName = "PopoverBackdrop";
|
|
887
|
+
const ka = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
888
|
+
i.Positioner,
|
|
889
|
+
{
|
|
890
|
+
className: r(
|
|
891
|
+
"z-50 outline-none",
|
|
892
|
+
"h-(--positioner-height) w-(--positioner-width)",
|
|
893
|
+
"max-w-(--available-width)",
|
|
894
|
+
"transition-[top,left,right,bottom,transform]",
|
|
895
|
+
"duration-[0.35s]",
|
|
896
|
+
"ease-[cubic-bezier(0.22,1,0.36,1)]",
|
|
897
|
+
"data-instant:transition-none",
|
|
898
|
+
e
|
|
899
|
+
),
|
|
900
|
+
sideOffset: 8,
|
|
901
|
+
...a
|
|
902
|
+
}
|
|
903
|
+
);
|
|
904
|
+
ka.displayName = "PopoverPositioner";
|
|
905
|
+
const Pa = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
906
|
+
i.Popup,
|
|
907
|
+
{
|
|
908
|
+
className: r(
|
|
909
|
+
"rounded-md bg-background px-4 py-3 text-foreground shadow-sm border relative",
|
|
910
|
+
"h-(--popup-height,auto) w-(--popup-width,auto)",
|
|
911
|
+
"max-w-[500px]",
|
|
912
|
+
"origin-(--transform-origin)",
|
|
913
|
+
"border-border",
|
|
914
|
+
"transition-[transform,scale,opacity]",
|
|
915
|
+
"data-ending-style:scale-90 data-ending-style:opacity-0",
|
|
916
|
+
"data-starting-style:scale-90 data-starting-style:opacity-0",
|
|
917
|
+
"dark:shadow-none",
|
|
918
|
+
"origin-(--transform-origin)",
|
|
919
|
+
e
|
|
920
|
+
),
|
|
921
|
+
...a
|
|
922
|
+
}
|
|
923
|
+
);
|
|
924
|
+
Pa.displayName = "PopoverPopup";
|
|
925
|
+
const Da = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
926
|
+
i.Arrow,
|
|
927
|
+
{
|
|
928
|
+
className: r(
|
|
929
|
+
"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
|
+
e
|
|
931
|
+
),
|
|
932
|
+
...a,
|
|
933
|
+
children: /* @__PURE__ */ t(Ta, {})
|
|
934
|
+
}
|
|
935
|
+
);
|
|
936
|
+
function Ta(e) {
|
|
937
|
+
return /* @__PURE__ */ w("svg", { width: "20", height: "10", viewBox: "0 0 20 10", fill: "none", ...e, children: [
|
|
938
|
+
/* @__PURE__ */ t(
|
|
939
|
+
"path",
|
|
940
|
+
{
|
|
941
|
+
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",
|
|
942
|
+
className: "fill-background"
|
|
943
|
+
}
|
|
944
|
+
),
|
|
945
|
+
/* @__PURE__ */ t(
|
|
946
|
+
"path",
|
|
947
|
+
{
|
|
948
|
+
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",
|
|
949
|
+
className: "fill-border"
|
|
950
|
+
}
|
|
951
|
+
)
|
|
952
|
+
] });
|
|
953
|
+
}
|
|
954
|
+
Da.displayName = "PopoverArrow";
|
|
955
|
+
const Aa = ({ className: e, ...a }) => /* @__PURE__ */ t(i.Title, { className: r("text-sm font-semibold", e), ...a });
|
|
956
|
+
Aa.displayName = "PopoverTitle";
|
|
957
|
+
const Ca = ({ className: e, ...a }) => /* @__PURE__ */ t(i.Description, { className: r("text-sm", e), ...a });
|
|
958
|
+
Ca.displayName = "PopoverDescription";
|
|
959
|
+
const za = ({ className: e, ...a }) => /* @__PURE__ */ t(i.Close, { className: r(e), ...a });
|
|
960
|
+
za.displayName = "PopoverClose";
|
|
961
|
+
const Ma = ({ className: e, ...a }) => /* @__PURE__ */ t(i.Viewport, { className: r(e), ...a });
|
|
962
|
+
Ma.displayName = "PopoverViewport";
|
|
963
|
+
const Ra = ({ className: e, ...a }) => /* @__PURE__ */ t(x.Root, { className: r("w-full", e), ...a });
|
|
964
|
+
Ra.displayName = "ProgressRoot";
|
|
965
|
+
const Va = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
966
|
+
x.Track,
|
|
853
967
|
{
|
|
854
968
|
className: r(
|
|
855
969
|
"relative h-2 w-full overflow-hidden rounded-full bg-primary/20",
|
|
@@ -858,9 +972,9 @@ const ya = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
|
858
972
|
...a
|
|
859
973
|
}
|
|
860
974
|
);
|
|
861
|
-
|
|
862
|
-
const
|
|
863
|
-
|
|
975
|
+
Va.displayName = "ProgressTrack";
|
|
976
|
+
const Ia = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
977
|
+
x.Indicator,
|
|
864
978
|
{
|
|
865
979
|
className: r(
|
|
866
980
|
"h-full rounded-full bg-primary transition-all duration-1000 ease-out-expo",
|
|
@@ -869,25 +983,25 @@ const ha = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
|
869
983
|
...a
|
|
870
984
|
}
|
|
871
985
|
);
|
|
872
|
-
|
|
873
|
-
const
|
|
874
|
-
|
|
986
|
+
Ia.displayName = "ProgressIndicator";
|
|
987
|
+
const Sa = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
988
|
+
x.Value,
|
|
875
989
|
{
|
|
876
990
|
className: r("text-sm font-medium text-foreground", e),
|
|
877
991
|
...a
|
|
878
992
|
}
|
|
879
993
|
);
|
|
880
|
-
|
|
881
|
-
const
|
|
882
|
-
|
|
994
|
+
Sa.displayName = "ProgressValue";
|
|
995
|
+
const La = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
996
|
+
x.Label,
|
|
883
997
|
{
|
|
884
998
|
className: r("text-sm font-medium text-foreground", e),
|
|
885
999
|
...a
|
|
886
1000
|
}
|
|
887
1001
|
);
|
|
888
|
-
|
|
889
|
-
const
|
|
890
|
-
|
|
1002
|
+
La.displayName = "ProgressLabel";
|
|
1003
|
+
const _a = ({ className: e, orientation: a, ...o }) => /* @__PURE__ */ t(
|
|
1004
|
+
B,
|
|
891
1005
|
{
|
|
892
1006
|
orientation: a,
|
|
893
1007
|
className: r(
|
|
@@ -903,17 +1017,17 @@ const va = ({ className: e, orientation: a, ...o }) => /* @__PURE__ */ t(
|
|
|
903
1017
|
...o
|
|
904
1018
|
}
|
|
905
1019
|
);
|
|
906
|
-
|
|
907
|
-
const
|
|
1020
|
+
_a.displayName = "ToggleGroupRoot";
|
|
1021
|
+
const Ha = ({
|
|
908
1022
|
className: e,
|
|
909
1023
|
variant: a,
|
|
910
1024
|
size: o,
|
|
911
1025
|
...s
|
|
912
1026
|
}) => /* @__PURE__ */ t(
|
|
913
|
-
|
|
1027
|
+
z,
|
|
914
1028
|
{
|
|
915
1029
|
className: r(
|
|
916
|
-
|
|
1030
|
+
V({ variant: a, size: o }),
|
|
917
1031
|
// Ghost variant in toggle-group: add borders, no background when pressed
|
|
918
1032
|
a === "ghost" && "border border-border",
|
|
919
1033
|
e
|
|
@@ -921,95 +1035,107 @@ const wa = ({
|
|
|
921
1035
|
...s
|
|
922
1036
|
}
|
|
923
1037
|
);
|
|
924
|
-
|
|
1038
|
+
Ha.displayName = "ToggleGroupItem";
|
|
925
1039
|
export {
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
1040
|
+
Ee as AccordionHeader,
|
|
1041
|
+
$e as AccordionItem,
|
|
1042
|
+
Je as AccordionPanel,
|
|
1043
|
+
Ze as AccordionRoot,
|
|
1044
|
+
Oe as AccordionTrigger,
|
|
1045
|
+
nt as AlertDialog,
|
|
1046
|
+
O as AlertDialogBackdrop,
|
|
1047
|
+
X as AlertDialogClose,
|
|
1048
|
+
W as AlertDialogDescription,
|
|
1049
|
+
Q as AlertDialogPopup,
|
|
936
1050
|
E as AlertDialogPortal,
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
1051
|
+
Z as AlertDialogRoot,
|
|
1052
|
+
U as AlertDialogTitle,
|
|
1053
|
+
$ as AlertDialogTrigger,
|
|
1054
|
+
J as AlertDialogViewport,
|
|
1055
|
+
ee as AvatarFallback,
|
|
1056
|
+
Y as AvatarImage,
|
|
1057
|
+
R as AvatarRoot,
|
|
1058
|
+
ae as AvatarStack,
|
|
945
1059
|
j as Button,
|
|
946
|
-
|
|
1060
|
+
q as CollapsiblePanel,
|
|
947
1061
|
F as CollapsibleRoot,
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
1062
|
+
G as CollapsibleTrigger,
|
|
1063
|
+
ke as DialogBackdrop,
|
|
1064
|
+
Ce as DialogClose,
|
|
1065
|
+
Ae as DialogDescription,
|
|
952
1066
|
Me as DialogFooter,
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
1067
|
+
ze as DialogHeader,
|
|
1068
|
+
De as DialogPopup,
|
|
1069
|
+
we as DialogPortal,
|
|
1070
|
+
xe as DialogRoot,
|
|
1071
|
+
Te as DialogTitle,
|
|
1072
|
+
ve as DialogTrigger,
|
|
1073
|
+
Se as DrawerBackdrop,
|
|
1074
|
+
je as DrawerClose,
|
|
1075
|
+
Ge as DrawerContent,
|
|
1076
|
+
Be as DrawerDescription,
|
|
1077
|
+
qe as DrawerFooter,
|
|
1078
|
+
Fe as DrawerHeader,
|
|
1079
|
+
_e as DrawerPopup,
|
|
1080
|
+
Ie as DrawerPortal,
|
|
967
1081
|
Re as DrawerRoot,
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1082
|
+
He as DrawerTitle,
|
|
1083
|
+
Ve as DrawerTrigger,
|
|
1084
|
+
oa as MenuArrow,
|
|
1085
|
+
ma as MenuCheckboxItem,
|
|
1086
|
+
ga as MenuCheckboxItemIndicator,
|
|
1087
|
+
fa as MenuCheckboxItemLabel,
|
|
1088
|
+
ia as MenuGroup,
|
|
1089
|
+
da as MenuGroupLabel,
|
|
1090
|
+
la as MenuItem,
|
|
1091
|
+
ra as MenuPopup,
|
|
1092
|
+
aa as MenuPortal,
|
|
1093
|
+
ta as MenuPositioner,
|
|
1094
|
+
ca as MenuRadioGroup,
|
|
1095
|
+
ua as MenuRadioItem,
|
|
1096
|
+
pa as MenuRadioItemIndicator,
|
|
1097
|
+
ba as MenuRadioItemLabel,
|
|
1098
|
+
Ye as MenuRoot,
|
|
1099
|
+
na as MenuSeparator,
|
|
1100
|
+
ha as MenuSubmenuRoot,
|
|
1101
|
+
ya as MenuSubmenuTrigger,
|
|
1102
|
+
ea as MenuTrigger,
|
|
1103
|
+
Ue as MeterIndicator,
|
|
1104
|
+
Xe as MeterLabel,
|
|
1105
|
+
Ke as MeterRoot,
|
|
1106
|
+
Qe as MeterTrack,
|
|
1107
|
+
We as MeterValue,
|
|
1108
|
+
Da as PopoverArrow,
|
|
1109
|
+
wa as PopoverBackdrop,
|
|
1110
|
+
za as PopoverClose,
|
|
1111
|
+
Ca as PopoverDescription,
|
|
1112
|
+
Pa as PopoverPopup,
|
|
1113
|
+
va as PopoverPortal,
|
|
1114
|
+
ka as PopoverPositioner,
|
|
1115
|
+
Na as PopoverRoot,
|
|
1116
|
+
Aa as PopoverTitle,
|
|
1117
|
+
xa as PopoverTrigger,
|
|
1118
|
+
Ma as PopoverViewport,
|
|
1119
|
+
Ia as ProgressIndicator,
|
|
1120
|
+
La as ProgressLabel,
|
|
1121
|
+
Ra as ProgressRoot,
|
|
1122
|
+
Va as ProgressTrack,
|
|
1123
|
+
Sa as ProgressValue,
|
|
1124
|
+
oe as ScrollAreaContent,
|
|
1125
|
+
ne as ScrollAreaCorner,
|
|
1126
|
+
te as ScrollAreaRoot,
|
|
1127
|
+
se as ScrollAreaScrollbar,
|
|
1128
|
+
le as ScrollAreaThumb,
|
|
1129
|
+
re as ScrollAreaViewport,
|
|
1130
|
+
ie as Separator,
|
|
1131
|
+
de as SwitchRoot,
|
|
1132
|
+
ce as SwitchThumb,
|
|
1133
|
+
he as TabsIndicator,
|
|
1134
|
+
ge as TabsList,
|
|
1135
|
+
Ne as TabsPanel,
|
|
1136
|
+
me as TabsRoot,
|
|
1137
|
+
be as TabsTab,
|
|
1138
|
+
ue as Toggle,
|
|
1139
|
+
Ha as ToggleGroupItem,
|
|
1140
|
+
_a as ToggleGroupRoot
|
|
1015
1141
|
};
|