@lglab/compose-ui 0.13.0 → 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/components/switch.d.ts.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.es.js +463 -358
- package/dist/styles/default.css +1 -1
- 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",
|
|
@@ -310,16 +311,14 @@ const le = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
|
310
311
|
"transition-[background-position,box-shadow] duration-125 ease-[cubic-bezier(0.26,0.75,0.38,0.45)]",
|
|
311
312
|
"data-checked:bg-position-[0%_0%]",
|
|
312
313
|
"dark:from-primary/50 dark:shadow-none",
|
|
313
|
-
"dark:data-checked:bg-foreground",
|
|
314
|
-
"data-disabled:cursor-not-allowed data-disabled:opacity-70",
|
|
315
314
|
e
|
|
316
315
|
),
|
|
317
316
|
...a
|
|
318
317
|
}
|
|
319
318
|
);
|
|
320
319
|
le.displayName = "SwitchRoot";
|
|
321
|
-
const
|
|
322
|
-
|
|
320
|
+
const ie = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
321
|
+
C.Thumb,
|
|
323
322
|
{
|
|
324
323
|
className: r(
|
|
325
324
|
"aspect-square h-full rounded-full bg-background",
|
|
@@ -333,8 +332,8 @@ const ne = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
|
333
332
|
...a
|
|
334
333
|
}
|
|
335
334
|
);
|
|
336
|
-
|
|
337
|
-
const
|
|
335
|
+
ie.displayName = "SwitchThumb";
|
|
336
|
+
const V = u(
|
|
338
337
|
[
|
|
339
338
|
"inline-flex items-center justify-center gap-2 rounded-md",
|
|
340
339
|
"text-sm font-medium",
|
|
@@ -365,11 +364,11 @@ const C = c(
|
|
|
365
364
|
size: "default"
|
|
366
365
|
}
|
|
367
366
|
}
|
|
368
|
-
),
|
|
369
|
-
|
|
370
|
-
const
|
|
371
|
-
|
|
372
|
-
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(
|
|
373
372
|
["relative inline-flex w-fit items-center gap-1", "rounded-lg bg-muted p-1"],
|
|
374
373
|
{
|
|
375
374
|
variants: {
|
|
@@ -382,15 +381,15 @@ const ce = c(
|
|
|
382
381
|
orientation: "horizontal"
|
|
383
382
|
}
|
|
384
383
|
}
|
|
385
|
-
),
|
|
386
|
-
|
|
384
|
+
), me = ({ className: e, orientation: a = "horizontal", ...o }) => /* @__PURE__ */ t(
|
|
385
|
+
y.List,
|
|
387
386
|
{
|
|
388
|
-
className: r(
|
|
387
|
+
className: r(ue({ orientation: a }), e),
|
|
389
388
|
...o
|
|
390
389
|
}
|
|
391
390
|
);
|
|
392
|
-
|
|
393
|
-
const
|
|
391
|
+
me.displayName = "TabsList";
|
|
392
|
+
const pe = u(
|
|
394
393
|
[
|
|
395
394
|
"relative z-10 inline-flex items-center justify-center whitespace-nowrap",
|
|
396
395
|
"rounded-md px-3 py-1.5 text-sm font-medium",
|
|
@@ -411,9 +410,9 @@ const me = c(
|
|
|
411
410
|
size: "default"
|
|
412
411
|
}
|
|
413
412
|
}
|
|
414
|
-
),
|
|
415
|
-
|
|
416
|
-
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(
|
|
417
416
|
["absolute rounded-md bg-background shadow-sm", "transition-all duration-200 ease-out"],
|
|
418
417
|
{
|
|
419
418
|
variants: {
|
|
@@ -426,34 +425,34 @@ const ge = c(
|
|
|
426
425
|
orientation: "horizontal"
|
|
427
426
|
}
|
|
428
427
|
}
|
|
429
|
-
),
|
|
428
|
+
), be = ({
|
|
430
429
|
className: e,
|
|
431
430
|
orientation: a = "horizontal",
|
|
432
431
|
...o
|
|
433
432
|
}) => /* @__PURE__ */ t(
|
|
434
|
-
|
|
433
|
+
y.Indicator,
|
|
435
434
|
{
|
|
436
|
-
className: r(
|
|
435
|
+
className: r(fe({ orientation: a }), e),
|
|
437
436
|
...o
|
|
438
437
|
}
|
|
439
438
|
);
|
|
440
|
-
|
|
441
|
-
const
|
|
442
|
-
|
|
443
|
-
const
|
|
444
|
-
|
|
445
|
-
const
|
|
446
|
-
|
|
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,
|
|
447
446
|
{
|
|
448
|
-
className: r(
|
|
447
|
+
className: r(d({ variant: a, size: o }), e),
|
|
449
448
|
...s
|
|
450
449
|
}
|
|
451
450
|
);
|
|
452
|
-
|
|
453
|
-
const
|
|
454
|
-
|
|
455
|
-
const
|
|
456
|
-
|
|
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,
|
|
457
456
|
{
|
|
458
457
|
className: r(
|
|
459
458
|
"fixed inset-0 z-50 bg-black/50 backdrop-blur-sm",
|
|
@@ -464,8 +463,8 @@ const xe = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
|
464
463
|
...a
|
|
465
464
|
}
|
|
466
465
|
);
|
|
467
|
-
|
|
468
|
-
const
|
|
466
|
+
ve.displayName = "DialogBackdrop";
|
|
467
|
+
const we = u(
|
|
469
468
|
[
|
|
470
469
|
"fixed left-1/2 top-1/2 z-50 -translate-x-1/2 -translate-y-1/2",
|
|
471
470
|
"w-full max-w-[calc(100vw-2rem)] rounded-lg border border-border bg-background p-6 shadow-lg",
|
|
@@ -489,35 +488,35 @@ const ve = c(
|
|
|
489
488
|
size: "default"
|
|
490
489
|
}
|
|
491
490
|
}
|
|
492
|
-
),
|
|
493
|
-
|
|
491
|
+
), ke = ({ className: e, size: a, ...o }) => /* @__PURE__ */ t(
|
|
492
|
+
l.Popup,
|
|
494
493
|
{
|
|
495
|
-
className: r(
|
|
494
|
+
className: r(we({ size: a }), e),
|
|
496
495
|
...o
|
|
497
496
|
}
|
|
498
497
|
);
|
|
499
|
-
|
|
500
|
-
const
|
|
501
|
-
|
|
498
|
+
ke.displayName = "DialogPopup";
|
|
499
|
+
const Pe = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
500
|
+
l.Title,
|
|
502
501
|
{
|
|
503
502
|
className: r("text-lg font-semibold leading-none tracking-tight", e),
|
|
504
503
|
...a
|
|
505
504
|
}
|
|
506
505
|
);
|
|
507
|
-
|
|
508
|
-
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 });
|
|
509
508
|
De.displayName = "DialogDescription";
|
|
510
509
|
const Te = ({ className: e, variant: a, size: o, ...s }) => /* @__PURE__ */ t(
|
|
511
|
-
|
|
510
|
+
l.Close,
|
|
512
511
|
{
|
|
513
|
-
className: r(
|
|
512
|
+
className: r(d({ variant: a ?? "outline", size: o }), e),
|
|
514
513
|
...s
|
|
515
514
|
}
|
|
516
515
|
);
|
|
517
516
|
Te.displayName = "DialogClose";
|
|
518
517
|
const Ae = ({ className: e, ...a }) => /* @__PURE__ */ t("div", { className: r("flex flex-col space-y-1 mb-5", e), ...a });
|
|
519
518
|
Ae.displayName = "DialogHeader";
|
|
520
|
-
const
|
|
519
|
+
const Ce = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
521
520
|
"div",
|
|
522
521
|
{
|
|
523
522
|
className: r(
|
|
@@ -527,21 +526,21 @@ const Me = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
|
527
526
|
...a
|
|
528
527
|
}
|
|
529
528
|
);
|
|
530
|
-
|
|
531
|
-
const
|
|
532
|
-
|
|
533
|
-
const
|
|
534
|
-
|
|
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,
|
|
535
534
|
{
|
|
536
|
-
className: r(
|
|
535
|
+
className: r(d({ variant: a, size: o }), e),
|
|
537
536
|
...s
|
|
538
537
|
}
|
|
539
538
|
);
|
|
540
|
-
|
|
541
|
-
const
|
|
542
|
-
|
|
543
|
-
const
|
|
544
|
-
|
|
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,
|
|
545
544
|
{
|
|
546
545
|
className: r(
|
|
547
546
|
"fixed inset-0 z-50 bg-black/50 backdrop-blur-sm",
|
|
@@ -552,8 +551,8 @@ const Ce = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
|
552
551
|
...a
|
|
553
552
|
}
|
|
554
553
|
);
|
|
555
|
-
|
|
556
|
-
const Ie =
|
|
554
|
+
Ve.displayName = "DrawerBackdrop";
|
|
555
|
+
const Ie = u(
|
|
557
556
|
[
|
|
558
557
|
"fixed z-50 flex flex-col bg-background p-6 shadow-lg",
|
|
559
558
|
"transition-transform duration-300 ease-out",
|
|
@@ -590,51 +589,51 @@ const Ie = c(
|
|
|
590
589
|
}
|
|
591
590
|
}
|
|
592
591
|
), Se = ({ className: e, side: a, ...o }) => /* @__PURE__ */ t(
|
|
593
|
-
|
|
592
|
+
l.Popup,
|
|
594
593
|
{
|
|
595
594
|
className: r(Ie({ side: a }), e),
|
|
596
595
|
...o
|
|
597
596
|
}
|
|
598
597
|
);
|
|
599
598
|
Se.displayName = "DrawerPopup";
|
|
600
|
-
const
|
|
601
|
-
|
|
599
|
+
const Le = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
600
|
+
l.Title,
|
|
602
601
|
{
|
|
603
602
|
className: r("text-lg font-semibold leading-none tracking-tight", e),
|
|
604
603
|
...a
|
|
605
604
|
}
|
|
606
605
|
);
|
|
607
|
-
|
|
608
|
-
const
|
|
609
|
-
|
|
610
|
-
const
|
|
611
|
-
|
|
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,
|
|
612
611
|
{
|
|
613
|
-
className: r(
|
|
612
|
+
className: r(d({ variant: a ?? "outline", size: o }), e),
|
|
614
613
|
...s
|
|
615
614
|
}
|
|
616
615
|
);
|
|
617
|
-
|
|
618
|
-
const
|
|
619
|
-
|
|
620
|
-
const
|
|
621
|
-
|
|
622
|
-
const
|
|
623
|
-
|
|
624
|
-
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 });
|
|
625
624
|
Ge.displayName = "AccordionRoot";
|
|
626
|
-
const
|
|
627
|
-
|
|
625
|
+
const qe = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
626
|
+
h.Item,
|
|
628
627
|
{
|
|
629
628
|
className: r("border-b border-border last:border-b-0", e),
|
|
630
629
|
...a
|
|
631
630
|
}
|
|
632
631
|
);
|
|
633
|
-
|
|
634
|
-
const
|
|
635
|
-
|
|
636
|
-
const
|
|
637
|
-
|
|
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,
|
|
638
637
|
{
|
|
639
638
|
className: r(
|
|
640
639
|
"flex flex-1 items-center justify-between py-3 font-medium",
|
|
@@ -644,9 +643,9 @@ const Ee = ({ className: e, children: a, ...o }) => /* @__PURE__ */ t(
|
|
|
644
643
|
children: a
|
|
645
644
|
}
|
|
646
645
|
);
|
|
647
|
-
|
|
648
|
-
const
|
|
649
|
-
|
|
646
|
+
$e.displayName = "AccordionTrigger";
|
|
647
|
+
const Ee = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
648
|
+
h.Panel,
|
|
650
649
|
{
|
|
651
650
|
className: r(
|
|
652
651
|
"overflow-hidden duration-200 h-(--accordion-panel-height) transition-height ease-out data-ending-style:h-0 data-starting-style:h-0",
|
|
@@ -655,25 +654,25 @@ const Ze = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
|
655
654
|
...a
|
|
656
655
|
}
|
|
657
656
|
);
|
|
658
|
-
|
|
659
|
-
const
|
|
660
|
-
const
|
|
661
|
-
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(() => {
|
|
662
661
|
if (a) {
|
|
663
|
-
const
|
|
664
|
-
const
|
|
665
|
-
|
|
662
|
+
const v = requestAnimationFrame(() => {
|
|
663
|
+
const P = requestAnimationFrame(() => {
|
|
664
|
+
f(c ?? 0);
|
|
666
665
|
});
|
|
667
|
-
return () => cancelAnimationFrame(
|
|
666
|
+
return () => cancelAnimationFrame(P);
|
|
668
667
|
});
|
|
669
|
-
return () => cancelAnimationFrame(
|
|
668
|
+
return () => cancelAnimationFrame(v);
|
|
670
669
|
} else
|
|
671
|
-
|
|
672
|
-
}, [a,
|
|
670
|
+
f(c ?? 0);
|
|
671
|
+
}, [a, c]), /* @__PURE__ */ t(N.Root, { className: r("w-full", e), value: p, ...s });
|
|
673
672
|
};
|
|
674
|
-
|
|
675
|
-
const
|
|
676
|
-
|
|
673
|
+
Oe.displayName = "MeterRoot";
|
|
674
|
+
const Je = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
675
|
+
N.Track,
|
|
677
676
|
{
|
|
678
677
|
className: r(
|
|
679
678
|
"relative h-2 w-full overflow-hidden rounded-full bg-primary/20",
|
|
@@ -682,9 +681,9 @@ const Oe = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
|
682
681
|
...a
|
|
683
682
|
}
|
|
684
683
|
);
|
|
685
|
-
|
|
686
|
-
const
|
|
687
|
-
|
|
684
|
+
Je.displayName = "MeterTrack";
|
|
685
|
+
const Ke = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
686
|
+
N.Indicator,
|
|
688
687
|
{
|
|
689
688
|
className: r(
|
|
690
689
|
"h-full rounded-full bg-primary transition-all duration-1000 ease-out-expo",
|
|
@@ -693,63 +692,63 @@ const Je = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
|
693
692
|
...a
|
|
694
693
|
}
|
|
695
694
|
);
|
|
696
|
-
|
|
697
|
-
const
|
|
698
|
-
|
|
695
|
+
Ke.displayName = "MeterIndicator";
|
|
696
|
+
const Qe = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
697
|
+
N.Value,
|
|
699
698
|
{
|
|
700
699
|
className: r("text-sm font-medium text-foreground", e),
|
|
701
700
|
...a
|
|
702
701
|
}
|
|
703
702
|
);
|
|
704
|
-
|
|
705
|
-
const
|
|
706
|
-
|
|
703
|
+
Qe.displayName = "MeterValue";
|
|
704
|
+
const Ue = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
705
|
+
N.Label,
|
|
707
706
|
{
|
|
708
707
|
className: r("text-sm font-medium text-foreground", e),
|
|
709
708
|
...a
|
|
710
709
|
}
|
|
711
710
|
);
|
|
712
|
-
|
|
713
|
-
const
|
|
714
|
-
|
|
715
|
-
const
|
|
716
|
-
|
|
717
|
-
const
|
|
718
|
-
|
|
719
|
-
const
|
|
720
|
-
|
|
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,
|
|
721
720
|
{
|
|
722
721
|
className: r("z-50 outline-none", e),
|
|
723
722
|
sideOffset: 8,
|
|
724
723
|
...a
|
|
725
724
|
}
|
|
726
725
|
);
|
|
727
|
-
|
|
728
|
-
const
|
|
729
|
-
|
|
726
|
+
ea.displayName = "MenuPositioner";
|
|
727
|
+
const aa = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
728
|
+
n.Popup,
|
|
730
729
|
{
|
|
731
730
|
className: r(
|
|
732
|
-
"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",
|
|
733
732
|
"min-w-[8rem]",
|
|
734
733
|
e
|
|
735
734
|
),
|
|
736
735
|
...a
|
|
737
736
|
}
|
|
738
737
|
);
|
|
739
|
-
|
|
740
|
-
const
|
|
741
|
-
|
|
738
|
+
aa.displayName = "MenuPopup";
|
|
739
|
+
const ta = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
740
|
+
n.Arrow,
|
|
742
741
|
{
|
|
743
742
|
className: r(
|
|
744
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",
|
|
745
744
|
e
|
|
746
745
|
),
|
|
747
746
|
...a,
|
|
748
|
-
children: /* @__PURE__ */ t(
|
|
747
|
+
children: /* @__PURE__ */ t(ra, {})
|
|
749
748
|
}
|
|
750
749
|
);
|
|
751
|
-
function
|
|
752
|
-
return /* @__PURE__ */
|
|
750
|
+
function ra(e) {
|
|
751
|
+
return /* @__PURE__ */ w("svg", { width: "20", height: "10", viewBox: "0 0 20 10", fill: "none", ...e, children: [
|
|
753
752
|
/* @__PURE__ */ t(
|
|
754
753
|
"path",
|
|
755
754
|
{
|
|
@@ -766,92 +765,187 @@ function ta(e) {
|
|
|
766
765
|
)
|
|
767
766
|
] });
|
|
768
767
|
}
|
|
769
|
-
|
|
770
|
-
const
|
|
771
|
-
|
|
768
|
+
ta.displayName = "MenuArrow";
|
|
769
|
+
const oa = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
770
|
+
n.Item,
|
|
772
771
|
{
|
|
773
772
|
className: r(
|
|
774
|
-
|
|
773
|
+
d({ variant: "ghost", size: "sm" }),
|
|
775
774
|
"flex justify-start",
|
|
776
775
|
e
|
|
777
776
|
),
|
|
778
777
|
...a
|
|
779
778
|
}
|
|
780
779
|
);
|
|
781
|
-
|
|
782
|
-
const
|
|
783
|
-
|
|
780
|
+
oa.displayName = "MenuItem";
|
|
781
|
+
const sa = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
782
|
+
n.Separator,
|
|
784
783
|
{
|
|
785
784
|
className: r("-mx-1 my-1 h-px bg-border", e),
|
|
786
785
|
...a
|
|
787
786
|
}
|
|
788
787
|
);
|
|
789
|
-
|
|
790
|
-
const
|
|
791
|
-
|
|
788
|
+
sa.displayName = "MenuSeparator";
|
|
789
|
+
const na = ({ className: e, ...a }) => /* @__PURE__ */ t(n.Group, { className: r(e), ...a });
|
|
790
|
+
na.displayName = "MenuGroup";
|
|
792
791
|
const la = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
793
|
-
|
|
792
|
+
n.GroupLabel,
|
|
794
793
|
{
|
|
795
794
|
className: r("px-3 py-1.5 text-sm font-semibold", e),
|
|
796
795
|
...a
|
|
797
796
|
}
|
|
798
797
|
);
|
|
799
798
|
la.displayName = "MenuGroupLabel";
|
|
800
|
-
const
|
|
801
|
-
|
|
802
|
-
const
|
|
803
|
-
|
|
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,
|
|
804
803
|
{
|
|
805
804
|
className: r(
|
|
806
|
-
|
|
805
|
+
d({ variant: "ghost", size: "sm" }),
|
|
807
806
|
"grid grid-cols-[0.75rem_1fr] gap-2",
|
|
808
807
|
e
|
|
809
808
|
),
|
|
810
809
|
...a
|
|
811
810
|
}
|
|
812
811
|
);
|
|
813
|
-
|
|
814
|
-
const
|
|
815
|
-
|
|
812
|
+
da.displayName = "MenuRadioItem";
|
|
813
|
+
const ca = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
814
|
+
n.CheckboxItem,
|
|
816
815
|
{
|
|
817
816
|
className: r(
|
|
818
|
-
|
|
817
|
+
d({ variant: "ghost", size: "sm" }),
|
|
819
818
|
"grid grid-cols-[0.75rem_1fr] gap-2",
|
|
820
819
|
e
|
|
821
820
|
),
|
|
822
821
|
...a
|
|
823
822
|
}
|
|
824
823
|
);
|
|
825
|
-
|
|
826
|
-
const
|
|
827
|
-
|
|
828
|
-
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 = ({
|
|
829
828
|
className: e,
|
|
830
829
|
...a
|
|
831
|
-
}) => /* @__PURE__ */ t(
|
|
832
|
-
|
|
833
|
-
const ma = ({ className: e, ...a }) => /* @__PURE__ */ t("span", { className: r("col-start-2", e), ...a });
|
|
834
|
-
ma.displayName = "MenuCheckboxItemLabel";
|
|
830
|
+
}) => /* @__PURE__ */ t(n.CheckboxItemIndicator, { className: r("col-start-1", e), ...a });
|
|
831
|
+
ma.displayName = "MenuCheckboxItemIndicator";
|
|
835
832
|
const pa = ({ className: e, ...a }) => /* @__PURE__ */ t("span", { className: r("col-start-2", e), ...a });
|
|
836
|
-
pa.displayName = "
|
|
837
|
-
const ga = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
838
|
-
|
|
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,
|
|
839
838
|
{
|
|
840
839
|
className: r(
|
|
841
|
-
|
|
840
|
+
d({ variant: "ghost", size: "sm" }),
|
|
842
841
|
"flex justify-between",
|
|
843
842
|
e
|
|
844
843
|
),
|
|
845
844
|
...a
|
|
846
845
|
}
|
|
847
846
|
);
|
|
848
|
-
|
|
849
|
-
const
|
|
850
|
-
|
|
851
|
-
const
|
|
852
|
-
|
|
853
|
-
const
|
|
854
|
-
|
|
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,
|
|
855
949
|
{
|
|
856
950
|
className: r(
|
|
857
951
|
"relative h-2 w-full overflow-hidden rounded-full bg-primary/20",
|
|
@@ -860,9 +954,9 @@ const ya = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
|
860
954
|
...a
|
|
861
955
|
}
|
|
862
956
|
);
|
|
863
|
-
|
|
864
|
-
const
|
|
865
|
-
|
|
957
|
+
Ra.displayName = "ProgressTrack";
|
|
958
|
+
const za = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
959
|
+
x.Indicator,
|
|
866
960
|
{
|
|
867
961
|
className: r(
|
|
868
962
|
"h-full rounded-full bg-primary transition-all duration-1000 ease-out-expo",
|
|
@@ -871,25 +965,25 @@ const ha = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
|
871
965
|
...a
|
|
872
966
|
}
|
|
873
967
|
);
|
|
874
|
-
|
|
875
|
-
const
|
|
876
|
-
|
|
968
|
+
za.displayName = "ProgressIndicator";
|
|
969
|
+
const Va = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
970
|
+
x.Value,
|
|
877
971
|
{
|
|
878
972
|
className: r("text-sm font-medium text-foreground", e),
|
|
879
973
|
...a
|
|
880
974
|
}
|
|
881
975
|
);
|
|
882
|
-
|
|
883
|
-
const
|
|
884
|
-
|
|
976
|
+
Va.displayName = "ProgressValue";
|
|
977
|
+
const Ia = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
978
|
+
x.Label,
|
|
885
979
|
{
|
|
886
980
|
className: r("text-sm font-medium text-foreground", e),
|
|
887
981
|
...a
|
|
888
982
|
}
|
|
889
983
|
);
|
|
890
|
-
|
|
891
|
-
const
|
|
892
|
-
|
|
984
|
+
Ia.displayName = "ProgressLabel";
|
|
985
|
+
const Sa = ({ className: e, orientation: a, ...o }) => /* @__PURE__ */ t(
|
|
986
|
+
H,
|
|
893
987
|
{
|
|
894
988
|
orientation: a,
|
|
895
989
|
className: r(
|
|
@@ -905,17 +999,17 @@ const va = ({ className: e, orientation: a, ...o }) => /* @__PURE__ */ t(
|
|
|
905
999
|
...o
|
|
906
1000
|
}
|
|
907
1001
|
);
|
|
908
|
-
|
|
909
|
-
const
|
|
1002
|
+
Sa.displayName = "ToggleGroupRoot";
|
|
1003
|
+
const La = ({
|
|
910
1004
|
className: e,
|
|
911
1005
|
variant: a,
|
|
912
1006
|
size: o,
|
|
913
1007
|
...s
|
|
914
1008
|
}) => /* @__PURE__ */ t(
|
|
915
|
-
|
|
1009
|
+
M,
|
|
916
1010
|
{
|
|
917
1011
|
className: r(
|
|
918
|
-
|
|
1012
|
+
V({ variant: a, size: o }),
|
|
919
1013
|
// Ghost variant in toggle-group: add borders, no background when pressed
|
|
920
1014
|
a === "ghost" && "border border-border",
|
|
921
1015
|
e
|
|
@@ -923,95 +1017,106 @@ const wa = ({
|
|
|
923
1017
|
...s
|
|
924
1018
|
}
|
|
925
1019
|
);
|
|
926
|
-
|
|
1020
|
+
La.displayName = "ToggleGroupItem";
|
|
927
1021
|
export {
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
1022
|
+
Ze as AccordionHeader,
|
|
1023
|
+
qe as AccordionItem,
|
|
1024
|
+
Ee as AccordionPanel,
|
|
931
1025
|
Ge as AccordionRoot,
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
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,
|
|
948
1042
|
G as CollapsiblePanel,
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
1043
|
+
j as CollapsibleRoot,
|
|
1044
|
+
F as CollapsibleTrigger,
|
|
1045
|
+
ve as DialogBackdrop,
|
|
952
1046
|
Te as DialogClose,
|
|
953
1047
|
De as DialogDescription,
|
|
954
|
-
|
|
1048
|
+
Ce as DialogFooter,
|
|
955
1049
|
Ae as DialogHeader,
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
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,
|
|
967
1061
|
Se as DrawerPopup,
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
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,
|
|
977
1071
|
la as MenuGroupLabel,
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
xa as
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
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,
|
|
1007
1112
|
le as SwitchRoot,
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
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
|
|
1017
1122
|
};
|