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