@overmap-ai/blocks 1.0.48-shadows.0 → 1.0.48-shadows.1
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/blocks.js +641 -659
- package/dist/blocks.umd.cjs +1 -1
- package/package.json +1 -1
package/dist/blocks.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as $ from "@radix-ui/react-alert-dialog";
|
|
2
|
-
import { jsx as
|
|
2
|
+
import { jsx as i, jsxs as W } from "react/jsx-runtime";
|
|
3
3
|
import { cva as h, cx as x } from "class-variance-authority";
|
|
4
4
|
import { createContext as T, useContext as j, memo as u, useMemo as w, useState as E, useCallback as v, useRef as U, useEffect as B, useId as Qe, useLayoutEffect as ue, use as b } from "react";
|
|
5
5
|
import * as Je from "@radix-ui/react-avatar";
|
|
@@ -27,8 +27,8 @@ import * as Oe from "@radix-ui/react-toggle-group";
|
|
|
27
27
|
import * as ne from "@radix-ui/react-tabs";
|
|
28
28
|
import * as Te from "@radix-ui/react-slider";
|
|
29
29
|
import * as qt from "@radix-ui/react-switch";
|
|
30
|
-
import { toast as K, Toaster as
|
|
31
|
-
import * as
|
|
30
|
+
import { toast as K, Toaster as co } from "sonner";
|
|
31
|
+
import * as io from "@radix-ui/react-toggle";
|
|
32
32
|
import * as de from "@radix-ui/react-tooltip";
|
|
33
33
|
const Ve = h(
|
|
34
34
|
[
|
|
@@ -113,7 +113,7 @@ const Ve = h(
|
|
|
113
113
|
}),
|
|
114
114
|
[a, t]
|
|
115
115
|
);
|
|
116
|
-
return /* @__PURE__ */
|
|
116
|
+
return /* @__PURE__ */ i(Wt.Provider, { value: s, children: e });
|
|
117
117
|
});
|
|
118
118
|
lo.displayName = "Provider";
|
|
119
119
|
const Kt = h([
|
|
@@ -172,16 +172,16 @@ const Kt = h([
|
|
|
172
172
|
}
|
|
173
173
|
}
|
|
174
174
|
), tt = u((n) => {
|
|
175
|
-
const { radius: a } = M(), { ref: t, children: e, className: s, size: o, container: r, ...
|
|
175
|
+
const { radius: a } = M(), { ref: t, children: e, className: s, size: o, container: r, ...c } = n;
|
|
176
176
|
return /* @__PURE__ */ W($.Portal, { container: r, children: [
|
|
177
|
-
/* @__PURE__ */
|
|
178
|
-
/* @__PURE__ */
|
|
177
|
+
/* @__PURE__ */ i($.Overlay, { className: Kt({}), "data-floating-content": "" }),
|
|
178
|
+
/* @__PURE__ */ i(
|
|
179
179
|
$.Content,
|
|
180
180
|
{
|
|
181
181
|
className: x(Xt({ size: o }), k({ radius: a, maxLarge: !0 }), s),
|
|
182
182
|
ref: t,
|
|
183
183
|
"data-floating-content": "",
|
|
184
|
-
...
|
|
184
|
+
...c,
|
|
185
185
|
children: e
|
|
186
186
|
}
|
|
187
187
|
)
|
|
@@ -190,7 +190,7 @@ const Kt = h([
|
|
|
190
190
|
tt.displayName = "AlertDialogContent";
|
|
191
191
|
const Yt = T(() => {
|
|
192
192
|
throw new Error("No AlertDialogProvider found");
|
|
193
|
-
}),
|
|
193
|
+
}), _c = () => {
|
|
194
194
|
const n = j(Yt);
|
|
195
195
|
if (!n)
|
|
196
196
|
throw new Error("No AlertDialogProvider found");
|
|
@@ -202,7 +202,7 @@ const Yt = T(() => {
|
|
|
202
202
|
size: s = "md",
|
|
203
203
|
radius: o = a.radius,
|
|
204
204
|
accentColor: r = a.accentColor,
|
|
205
|
-
...
|
|
205
|
+
...c
|
|
206
206
|
} = n, l = w(
|
|
207
207
|
() => ({
|
|
208
208
|
variant: e,
|
|
@@ -212,7 +212,7 @@ const Yt = T(() => {
|
|
|
212
212
|
}),
|
|
213
213
|
[r, o, s, e]
|
|
214
214
|
);
|
|
215
|
-
return /* @__PURE__ */
|
|
215
|
+
return /* @__PURE__ */ i("div", { ...c, children: /* @__PURE__ */ i(Qt.Provider, { value: l, children: t }) });
|
|
216
216
|
});
|
|
217
217
|
uo.displayName = "Buttons";
|
|
218
218
|
const Jt = () => j(Qt), Zt = h(
|
|
@@ -240,51 +240,53 @@ const Jt = () => j(Qt), Zt = h(
|
|
|
240
240
|
variants: {
|
|
241
241
|
variant: {
|
|
242
242
|
solid: [
|
|
243
|
-
"shadow-sm",
|
|
244
243
|
"ring-(--accent-9)",
|
|
245
244
|
"bg-(--accent-9)",
|
|
246
|
-
"hover:bg-(--accent-10)",
|
|
247
245
|
"text-(--accent-contrast)",
|
|
248
246
|
"active:brightness-110",
|
|
247
|
+
"hover:bg-(--accent-10)",
|
|
249
248
|
// trigger state
|
|
250
249
|
"data-[state='open']:bg-(--accent-10)"
|
|
251
250
|
],
|
|
252
251
|
soft: [
|
|
253
|
-
"shadow-sm",
|
|
254
252
|
"bg-(--accent-a3)",
|
|
253
|
+
"text-(--accent-a11)",
|
|
255
254
|
"hover:bg-(--accent-a4)",
|
|
255
|
+
"hover:text-(--accent-a12)",
|
|
256
256
|
"active:bg-(--accent-a5)",
|
|
257
|
-
"text-(--accent-a11)",
|
|
258
257
|
// trigger state
|
|
259
258
|
"data-[state='open']:bg-(--accent-a4)"
|
|
260
259
|
],
|
|
261
260
|
ghost: [
|
|
262
261
|
"bg-transparent",
|
|
262
|
+
"text-(--accent-a11)",
|
|
263
263
|
"hover:bg-(--accent-a3)",
|
|
264
|
+
"hover:text-(--accent-a12)",
|
|
264
265
|
"active:bg-(--accent-a4)",
|
|
265
|
-
"text-(--accent-a11)",
|
|
266
266
|
// trigger state
|
|
267
267
|
"data-[state='open']:bg-(--accent-a3)"
|
|
268
268
|
],
|
|
269
269
|
surface: [
|
|
270
|
-
"shadow-sm",
|
|
271
270
|
"bg-(--accent-surface)",
|
|
272
|
-
"hover:inset-ring-(--accent-a8)",
|
|
273
|
-
"active:bg-(--accent-a3)",
|
|
274
271
|
"inset-ring",
|
|
275
272
|
"inset-ring-(--accent-a7)",
|
|
276
273
|
"text-(--accent-a11)",
|
|
274
|
+
"hover:inset-ring-(--accent-a8)",
|
|
275
|
+
"hover:text-(--accent-a12)",
|
|
276
|
+
"active:bg-(--accent-a3)",
|
|
277
|
+
// trigger state
|
|
277
278
|
"data-[state='open']:bg-(--accent-a4)"
|
|
278
279
|
],
|
|
279
280
|
outline: [
|
|
280
|
-
"shadow-sm",
|
|
281
281
|
"bg-transparent",
|
|
282
282
|
"inset-ring",
|
|
283
283
|
"inset-ring-(--accent-a7)",
|
|
284
|
+
"text-(--accent-a11)",
|
|
284
285
|
"hover:inset-ring-(--accent-a8)",
|
|
285
286
|
"hover:bg-(--accent-a3)",
|
|
287
|
+
"hover:text-(--accent-a12)",
|
|
286
288
|
"active:bg-(--accent-a4)",
|
|
287
|
-
|
|
289
|
+
// trigger state
|
|
288
290
|
"data-[state='open']:inset-ring-(--accent-a8)",
|
|
289
291
|
"data-[state='open']:bg-(--accent-a3)"
|
|
290
292
|
],
|
|
@@ -297,6 +299,7 @@ const Jt = () => j(Qt), Zt = h(
|
|
|
297
299
|
"hover:bg-(--accent-a3)",
|
|
298
300
|
"hover:text-(--accent-a12)",
|
|
299
301
|
"active:bg-(--accent-a4)",
|
|
302
|
+
// trigger state
|
|
300
303
|
"data-[state='open']:inset-ring-0",
|
|
301
304
|
"data-[state='open']:bg-(--accent-a3)"
|
|
302
305
|
]
|
|
@@ -377,15 +380,15 @@ const Jt = () => j(Qt), Zt = h(
|
|
|
377
380
|
children: s,
|
|
378
381
|
className: o,
|
|
379
382
|
variant: r = t.variant,
|
|
380
|
-
size:
|
|
383
|
+
size: c = t.size,
|
|
381
384
|
radius: l = t.radius ?? a.radius,
|
|
382
385
|
accentColor: d = t.accentColor ?? a.accentColor,
|
|
383
386
|
...m
|
|
384
387
|
} = n;
|
|
385
|
-
return /* @__PURE__ */
|
|
388
|
+
return /* @__PURE__ */ i(
|
|
386
389
|
"button",
|
|
387
390
|
{
|
|
388
|
-
className: x(Zt({ size:
|
|
391
|
+
className: x(Zt({ size: c, icon: !1, variant: r }), k({ radius: l, maxLarge: !1 }), o),
|
|
389
392
|
ref: e,
|
|
390
393
|
"data-accent-color": d,
|
|
391
394
|
...m,
|
|
@@ -400,15 +403,15 @@ const at = u((n) => {
|
|
|
400
403
|
children: s,
|
|
401
404
|
className: o,
|
|
402
405
|
variant: r = t.variant,
|
|
403
|
-
size:
|
|
406
|
+
size: c = t.size,
|
|
404
407
|
radius: l = t.radius ?? a.radius,
|
|
405
408
|
accentColor: d = t.accentColor ?? a.accentColor,
|
|
406
409
|
...m
|
|
407
410
|
} = n;
|
|
408
|
-
return /* @__PURE__ */
|
|
411
|
+
return /* @__PURE__ */ i(
|
|
409
412
|
"button",
|
|
410
413
|
{
|
|
411
|
-
className: x(Zt({ size:
|
|
414
|
+
className: x(Zt({ size: c, icon: !0, variant: r }), k({ radius: l, maxLarge: !1 }), o),
|
|
412
415
|
ref: e,
|
|
413
416
|
"data-accent-color": d,
|
|
414
417
|
...m,
|
|
@@ -424,7 +427,7 @@ const mo = u((n) => {
|
|
|
424
427
|
e(l), !l && ((d = s == null ? void 0 : s.onClose) == null || d.call(s));
|
|
425
428
|
},
|
|
426
429
|
[s]
|
|
427
|
-
),
|
|
430
|
+
), c = v(
|
|
428
431
|
(l) => {
|
|
429
432
|
if (t) throw new Error("AlertDialog is already open");
|
|
430
433
|
e(!0), o({
|
|
@@ -436,22 +439,22 @@ const mo = u((n) => {
|
|
|
436
439
|
},
|
|
437
440
|
[t]
|
|
438
441
|
);
|
|
439
|
-
return /* @__PURE__ */ W(Yt.Provider, { value:
|
|
442
|
+
return /* @__PURE__ */ W(Yt.Provider, { value: c, children: [
|
|
440
443
|
a,
|
|
441
|
-
/* @__PURE__ */
|
|
444
|
+
/* @__PURE__ */ i($.Root, { open: t, onOpenChange: r, children: /* @__PURE__ */ i(tt, { size: s == null ? void 0 : s.size, children: /* @__PURE__ */ W("div", { className: "flex flex-col gap-4", children: [
|
|
442
445
|
/* @__PURE__ */ W("div", { className: "flex flex-col gap-1", children: [
|
|
443
|
-
/* @__PURE__ */
|
|
444
|
-
/* @__PURE__ */
|
|
446
|
+
/* @__PURE__ */ i($.Title, { className: "font-medium", children: s == null ? void 0 : s.title }),
|
|
447
|
+
/* @__PURE__ */ i($.Description, { children: s == null ? void 0 : s.description })
|
|
445
448
|
] }),
|
|
446
449
|
/* @__PURE__ */ W("div", { className: "flex justify-end gap-2", children: [
|
|
447
|
-
/* @__PURE__ */
|
|
448
|
-
/* @__PURE__ */
|
|
450
|
+
/* @__PURE__ */ i($.Cancel, { onClick: s == null ? void 0 : s.onCancel, asChild: !0, children: /* @__PURE__ */ i(Ke, { variant: "soft", size: s == null ? void 0 : s.size, accentColor: "base", children: s == null ? void 0 : s.cancel }) }),
|
|
451
|
+
/* @__PURE__ */ i($.Action, { onClick: s == null ? void 0 : s.onAction, asChild: !0, children: /* @__PURE__ */ i(Ke, { variant: "solid", size: s == null ? void 0 : s.size, children: s == null ? void 0 : s.action }) })
|
|
449
452
|
] })
|
|
450
453
|
] }) }) })
|
|
451
454
|
] });
|
|
452
455
|
});
|
|
453
456
|
mo.displayName = "AlertDialogProvider";
|
|
454
|
-
const
|
|
457
|
+
const Fc = {
|
|
455
458
|
Content: tt,
|
|
456
459
|
Trigger: $.Trigger,
|
|
457
460
|
Root: $.Root,
|
|
@@ -459,7 +462,7 @@ const Fi = {
|
|
|
459
462
|
Description: $.Description,
|
|
460
463
|
Action: $.Action,
|
|
461
464
|
Cancel: $.Cancel
|
|
462
|
-
}, ea = T({}), go = h(["shrink-0", "select-none", "inline-block", "align-middle"
|
|
465
|
+
}, ea = T({}), go = h(["shrink-0", "select-none", "inline-block", "align-middle"], {
|
|
463
466
|
variants: {
|
|
464
467
|
size: {
|
|
465
468
|
xs: ["h-6", "w-6", "text-xs"],
|
|
@@ -486,12 +489,12 @@ const Fi = {
|
|
|
486
489
|
}
|
|
487
490
|
}), ta = u((n) => {
|
|
488
491
|
const { ref: a, children: t, className: e, ...s } = n, { variant: o } = j(ea);
|
|
489
|
-
return /* @__PURE__ */
|
|
492
|
+
return /* @__PURE__ */ i(Je.AvatarFallback, { className: x(po({ variant: o }), e), ref: a, ...s, children: t });
|
|
490
493
|
});
|
|
491
494
|
ta.displayName = "AvatarFallback";
|
|
492
495
|
const aa = u((n) => {
|
|
493
496
|
const { ref: a, className: t, ...e } = n;
|
|
494
|
-
return /* @__PURE__ */
|
|
497
|
+
return /* @__PURE__ */ i(
|
|
495
498
|
Je.Image,
|
|
496
499
|
{
|
|
497
500
|
className: x("object-cover", "rounded-[inherit]", "w-full", "h-full", t),
|
|
@@ -508,23 +511,23 @@ const na = u((n) => {
|
|
|
508
511
|
className: s,
|
|
509
512
|
size: o,
|
|
510
513
|
variant: r = "solid",
|
|
511
|
-
accentColor:
|
|
514
|
+
accentColor: c = a.accentColor,
|
|
512
515
|
radius: l = a.radius,
|
|
513
516
|
...d
|
|
514
517
|
} = n;
|
|
515
|
-
return /* @__PURE__ */
|
|
518
|
+
return /* @__PURE__ */ i(
|
|
516
519
|
Je.Root,
|
|
517
520
|
{
|
|
518
521
|
className: x(go({ size: o }), k({ radius: l, maxLarge: !1 }), s),
|
|
519
522
|
ref: t,
|
|
520
|
-
"data-accent-color":
|
|
523
|
+
"data-accent-color": c,
|
|
521
524
|
...d,
|
|
522
|
-
children: /* @__PURE__ */
|
|
525
|
+
children: /* @__PURE__ */ i(ea.Provider, { value: { variant: r }, children: e })
|
|
523
526
|
}
|
|
524
527
|
);
|
|
525
528
|
});
|
|
526
529
|
na.displayName = "AvatarRoot";
|
|
527
|
-
const
|
|
530
|
+
const Hc = {
|
|
528
531
|
Fallback: ta,
|
|
529
532
|
Image: aa,
|
|
530
533
|
Root: na
|
|
@@ -613,15 +616,15 @@ const Hi = {
|
|
|
613
616
|
className: s,
|
|
614
617
|
accentColor: o = a.accentColor,
|
|
615
618
|
radius: r = a.radius,
|
|
616
|
-
variant:
|
|
619
|
+
variant: c,
|
|
617
620
|
size: l,
|
|
618
621
|
icon: d,
|
|
619
622
|
...m
|
|
620
623
|
} = n;
|
|
621
|
-
return /* @__PURE__ */
|
|
624
|
+
return /* @__PURE__ */ i(
|
|
622
625
|
"span",
|
|
623
626
|
{
|
|
624
|
-
className: x(xo({ variant:
|
|
627
|
+
className: x(xo({ variant: c, size: l, icon: d }), k({ radius: r, maxLarge: !1 }), s),
|
|
625
628
|
ref: t,
|
|
626
629
|
"data-accent-color": o,
|
|
627
630
|
...m,
|
|
@@ -630,7 +633,7 @@ const Hi = {
|
|
|
630
633
|
);
|
|
631
634
|
});
|
|
632
635
|
fo.displayName = "Badge";
|
|
633
|
-
const ho = h([
|
|
636
|
+
const ho = h([], {
|
|
634
637
|
variants: {
|
|
635
638
|
variant: {
|
|
636
639
|
soft: ["bg-(--accent-a2)"],
|
|
@@ -656,16 +659,16 @@ const ho = h(["shadow-sm"], {
|
|
|
656
659
|
className: s,
|
|
657
660
|
size: o = "md",
|
|
658
661
|
variant: r = "surface",
|
|
659
|
-
accentColor:
|
|
662
|
+
accentColor: c = "base",
|
|
660
663
|
radius: l = a.radius,
|
|
661
664
|
...d
|
|
662
665
|
} = n;
|
|
663
|
-
return /* @__PURE__ */
|
|
666
|
+
return /* @__PURE__ */ i(
|
|
664
667
|
"div",
|
|
665
668
|
{
|
|
666
669
|
ref: t,
|
|
667
670
|
className: x(ho({ size: o, variant: r }), k({ radius: l, maxLarge: !0 }), s),
|
|
668
|
-
"data-accent-color":
|
|
671
|
+
"data-accent-color": c,
|
|
669
672
|
...d,
|
|
670
673
|
children: e
|
|
671
674
|
}
|
|
@@ -674,7 +677,7 @@ const ho = h(["shadow-sm"], {
|
|
|
674
677
|
vo.displayName = "Card";
|
|
675
678
|
const sa = u((n) => {
|
|
676
679
|
const { ref: a, children: t, className: e, ...s } = n;
|
|
677
|
-
return /* @__PURE__ */
|
|
680
|
+
return /* @__PURE__ */ i(
|
|
678
681
|
ze.CheckboxIndicator,
|
|
679
682
|
{
|
|
680
683
|
className: x("flex items-center justify-center", e),
|
|
@@ -698,8 +701,7 @@ const nt = h(
|
|
|
698
701
|
// disabled
|
|
699
702
|
"disabled:opacity-50",
|
|
700
703
|
"disabled:pointer-events-none",
|
|
701
|
-
"transition-[background,color,box-shadow]"
|
|
702
|
-
"shadow-sm"
|
|
704
|
+
"transition-[background,color,box-shadow]"
|
|
703
705
|
],
|
|
704
706
|
{
|
|
705
707
|
variants: {
|
|
@@ -735,14 +737,14 @@ const nt = h(
|
|
|
735
737
|
className: s,
|
|
736
738
|
variant: o,
|
|
737
739
|
size: r,
|
|
738
|
-
radius:
|
|
740
|
+
radius: c = a.radius,
|
|
739
741
|
accentColor: l = a.accentColor,
|
|
740
742
|
...d
|
|
741
743
|
} = n;
|
|
742
|
-
return /* @__PURE__ */
|
|
744
|
+
return /* @__PURE__ */ i(
|
|
743
745
|
ze.Root,
|
|
744
746
|
{
|
|
745
|
-
className: x(nt({ variant: o, size: r }), k({ radius:
|
|
747
|
+
className: x(nt({ variant: o, size: r }), k({ radius: c, maxLarge: !0 }), s),
|
|
746
748
|
ref: t,
|
|
747
749
|
"data-accent-color": l,
|
|
748
750
|
...d,
|
|
@@ -751,16 +753,16 @@ const nt = h(
|
|
|
751
753
|
);
|
|
752
754
|
});
|
|
753
755
|
oa.displayName = "CheckboxRoot";
|
|
754
|
-
const
|
|
756
|
+
const Bc = {
|
|
755
757
|
Root: oa,
|
|
756
758
|
Indicator: sa
|
|
757
|
-
}, Ne = T({}), Z = T({}), $
|
|
758
|
-
const { xs: a, sm: t, md: e, lg: s, xl: o } = n, [r,
|
|
759
|
+
}, Ne = T({}), Z = T({}), $c = (n) => {
|
|
760
|
+
const { xs: a, sm: t, md: e, lg: s, xl: o } = n, [r, c] = E("initial"), [l, d] = E("initial"), m = be({ minWidth: a }), g = be({ minWidth: t }), p = be({ minWidth: e }), f = be({ minWidth: s }), C = be({ minWidth: o });
|
|
759
761
|
return ue(() => {
|
|
760
|
-
d((S) => (
|
|
762
|
+
d((S) => (c(S), C ? "xl" : f ? "lg" : p ? "md" : g ? "sm" : m ? "xs" : "initial"));
|
|
761
763
|
}, [f, p, g, C, m]), { size: l, prevSize: r, xs: m, sm: g, md: p, lg: f, xl: C };
|
|
762
764
|
};
|
|
763
|
-
function
|
|
765
|
+
function jc(n, a) {
|
|
764
766
|
const [t, e] = E([]), [s, o] = E("");
|
|
765
767
|
return B(() => {
|
|
766
768
|
e(n.filter((r) => a(r, s)));
|
|
@@ -828,9 +830,9 @@ function pe(n) {
|
|
|
828
830
|
return n ? "open" : "closed";
|
|
829
831
|
}
|
|
830
832
|
const De = F(function(a) {
|
|
831
|
-
const { children: t, defaultValues: e, values: s, onValuesChange: o, equalityFn: r } = a,
|
|
832
|
-
(y, V) =>
|
|
833
|
-
[
|
|
833
|
+
const { children: t, defaultValues: e, values: s, onValuesChange: o, equalityFn: r } = a, c = st(r), [l, d] = E(/* @__PURE__ */ new Set()), [m, g] = X(e ?? [], s, o), p = v(
|
|
834
|
+
(y, V) => c.current ? V.some((A) => c.current(A, y)) : V.includes(y),
|
|
835
|
+
[c]
|
|
834
836
|
), f = v((y) => (d((V) => {
|
|
835
837
|
const A = new Set(V);
|
|
836
838
|
return A.add(y), A;
|
|
@@ -842,47 +844,47 @@ const De = F(function(a) {
|
|
|
842
844
|
}), []), C = v((y) => p(y, m), [p, m]), S = v(
|
|
843
845
|
(y) => {
|
|
844
846
|
C(y) ? g(
|
|
845
|
-
m.filter((V) =>
|
|
847
|
+
m.filter((V) => c.current ? !c.current(V, y) : V !== y)
|
|
846
848
|
) : g([...m, y]);
|
|
847
849
|
},
|
|
848
|
-
[
|
|
850
|
+
[c, C, g, m]
|
|
849
851
|
), z = w(() => Array.from(l.values()).every((y) => p(y, m)), [p, l, m]), N = w(() => Array.from(l.values()).some((y) => p(y, m)), [p, l, m]), P = v(() => {
|
|
850
852
|
g(z ? [] : Array.from(l.values()));
|
|
851
853
|
}, [z, l, g]), L = w(
|
|
852
854
|
() => ({ selected: C, selectValue: S, allSelected: z, someSelected: N, toggleSelectAll: P, registerValue: f }),
|
|
853
855
|
[z, f, S, C, N, P]
|
|
854
856
|
);
|
|
855
|
-
return /* @__PURE__ */
|
|
857
|
+
return /* @__PURE__ */ i(Z, { value: L, children: t });
|
|
856
858
|
}), ot = F(function(a) {
|
|
857
|
-
const { children: t, defaultValue: e, value: s, onValueChange: o, equalityFn: r } = a,
|
|
858
|
-
(f) =>
|
|
859
|
-
[l,
|
|
859
|
+
const { children: t, defaultValue: e, value: s, onValueChange: o, equalityFn: r } = a, c = st(r), [l, d] = X(e, s, o), m = v(
|
|
860
|
+
(f) => c.current ? c.current(f, l) : f === l,
|
|
861
|
+
[l, c]
|
|
860
862
|
), g = v(
|
|
861
863
|
(f) => {
|
|
862
864
|
m(f) || d(f);
|
|
863
865
|
},
|
|
864
866
|
[m, d]
|
|
865
867
|
), p = w(() => ({ selected: m, selectValue: g }), [g, m]);
|
|
866
|
-
return /* @__PURE__ */
|
|
868
|
+
return /* @__PURE__ */ i(Ne, { value: p, children: t });
|
|
867
869
|
}), rt = F(function(a) {
|
|
868
|
-
const { children: t, defaultValue: e = void 0, value: s, onValueChange: o, equalityFn: r } = a,
|
|
869
|
-
(f) => l !== void 0 && (
|
|
870
|
-
[l,
|
|
870
|
+
const { children: t, defaultValue: e = void 0, value: s, onValueChange: o, equalityFn: r } = a, c = st(r), [l, d] = X(e, s, o), m = v(
|
|
871
|
+
(f) => l !== void 0 && (c.current ? c.current(f, l) : f === l),
|
|
872
|
+
[l, c]
|
|
871
873
|
), g = v(
|
|
872
874
|
(f) => {
|
|
873
875
|
d(m(f) ? void 0 : f);
|
|
874
876
|
},
|
|
875
877
|
[m, d]
|
|
876
878
|
), p = w(() => ({ selected: m, selectValue: g }), [m, g]);
|
|
877
|
-
return /* @__PURE__ */
|
|
878
|
-
}),
|
|
879
|
-
const a = b(
|
|
879
|
+
return /* @__PURE__ */ i(Ne, { value: p, children: t });
|
|
880
|
+
}), ct = T({}), ra = u((n) => {
|
|
881
|
+
const a = b(ct), {
|
|
880
882
|
ref: t,
|
|
881
883
|
className: e,
|
|
882
884
|
value: s,
|
|
883
885
|
disabled: o,
|
|
884
886
|
accentColor: r = a.accentColor,
|
|
885
|
-
variant:
|
|
887
|
+
variant: c = a.variant,
|
|
886
888
|
size: l = a.size,
|
|
887
889
|
radius: d = a.radius,
|
|
888
890
|
...m
|
|
@@ -891,11 +893,11 @@ const De = F(function(a) {
|
|
|
891
893
|
const C = g(s), S = a.disabled || o, z = v(() => {
|
|
892
894
|
p(s);
|
|
893
895
|
}, [p, s]);
|
|
894
|
-
return /* @__PURE__ */
|
|
896
|
+
return /* @__PURE__ */ i(
|
|
895
897
|
ze.Root,
|
|
896
898
|
{
|
|
897
899
|
ref: t,
|
|
898
|
-
className: x(nt({ variant:
|
|
900
|
+
className: x(nt({ variant: c, size: l }), k({ radius: d, maxLarge: !0 }), e),
|
|
899
901
|
name: a.name,
|
|
900
902
|
required: a.required,
|
|
901
903
|
disabled: S,
|
|
@@ -908,19 +910,19 @@ const De = F(function(a) {
|
|
|
908
910
|
);
|
|
909
911
|
});
|
|
910
912
|
ra.displayName = "CheckboxGroupItem";
|
|
911
|
-
const
|
|
913
|
+
const ca = u((n) => {
|
|
912
914
|
const { ref: a, className: t, ...e } = n;
|
|
913
|
-
return /* @__PURE__ */
|
|
915
|
+
return /* @__PURE__ */ i(ze.Indicator, { className: x("flex items-center justify-center", t), ref: a, ...e });
|
|
914
916
|
});
|
|
915
|
-
|
|
916
|
-
const
|
|
917
|
+
ca.displayName = "CheckboxGroupItemIndicator";
|
|
918
|
+
const ia = u((n) => {
|
|
917
919
|
const a = M(), {
|
|
918
920
|
ref: t,
|
|
919
921
|
defaultValues: e,
|
|
920
922
|
values: s,
|
|
921
923
|
onValuesChange: o,
|
|
922
924
|
children: r,
|
|
923
|
-
name:
|
|
925
|
+
name: c,
|
|
924
926
|
required: l,
|
|
925
927
|
disabled: d,
|
|
926
928
|
accentColor: m = a.accentColor,
|
|
@@ -930,7 +932,7 @@ const ca = u((n) => {
|
|
|
930
932
|
...C
|
|
931
933
|
} = n, S = w(
|
|
932
934
|
() => ({
|
|
933
|
-
name:
|
|
935
|
+
name: c,
|
|
934
936
|
required: l,
|
|
935
937
|
disabled: d,
|
|
936
938
|
// style props
|
|
@@ -939,9 +941,9 @@ const ca = u((n) => {
|
|
|
939
941
|
variant: p,
|
|
940
942
|
radius: g
|
|
941
943
|
}),
|
|
942
|
-
[m, d,
|
|
944
|
+
[m, d, c, g, l, f, p]
|
|
943
945
|
);
|
|
944
|
-
return /* @__PURE__ */
|
|
946
|
+
return /* @__PURE__ */ i(
|
|
945
947
|
"div",
|
|
946
948
|
{
|
|
947
949
|
ref: t,
|
|
@@ -950,7 +952,7 @@ const ca = u((n) => {
|
|
|
950
952
|
"data-accent-color": m,
|
|
951
953
|
"aria-disabled": Q(!!d),
|
|
952
954
|
...C,
|
|
953
|
-
children: /* @__PURE__ */
|
|
955
|
+
children: /* @__PURE__ */ i(ct.Provider, { value: S, children: /* @__PURE__ */ i(
|
|
954
956
|
De,
|
|
955
957
|
{
|
|
956
958
|
defaultValues: e,
|
|
@@ -962,23 +964,23 @@ const ca = u((n) => {
|
|
|
962
964
|
}
|
|
963
965
|
);
|
|
964
966
|
});
|
|
965
|
-
|
|
967
|
+
ia.displayName = "CheckboxGroupRoot";
|
|
966
968
|
const la = u((n) => {
|
|
967
|
-
const a = b(
|
|
969
|
+
const a = b(ct), {
|
|
968
970
|
ref: t,
|
|
969
971
|
className: e,
|
|
970
972
|
disabled: s,
|
|
971
973
|
accentColor: o = a.accentColor,
|
|
972
974
|
variant: r = a.variant,
|
|
973
|
-
size:
|
|
975
|
+
size: c = a.size,
|
|
974
976
|
radius: l = a.radius,
|
|
975
977
|
...d
|
|
976
978
|
} = n, { allSelected: m, someSelected: g, toggleSelectAll: p } = b(Z), f = m ? !0 : g ? "indeterminate" : !1, C = a.disabled || s;
|
|
977
|
-
return /* @__PURE__ */
|
|
979
|
+
return /* @__PURE__ */ i(
|
|
978
980
|
ze.Root,
|
|
979
981
|
{
|
|
980
982
|
ref: t,
|
|
981
|
-
className: x(nt({ variant: r, size:
|
|
983
|
+
className: x(nt({ variant: r, size: c }), k({ radius: l, maxLarge: !0 }), e),
|
|
982
984
|
name: a.name,
|
|
983
985
|
required: a.required,
|
|
984
986
|
disabled: C,
|
|
@@ -990,14 +992,14 @@ const la = u((n) => {
|
|
|
990
992
|
);
|
|
991
993
|
});
|
|
992
994
|
la.displayName = "CheckboxGroupSelectAllItem";
|
|
993
|
-
const
|
|
994
|
-
Root:
|
|
995
|
+
const Uc = {
|
|
996
|
+
Root: ia,
|
|
995
997
|
Item: ra,
|
|
996
998
|
SelectAllItem: la,
|
|
997
|
-
ItemIndicator:
|
|
999
|
+
ItemIndicator: ca
|
|
998
1000
|
}, Se = T({}), Ge = u((n) => {
|
|
999
1001
|
const { children: a, ref: t, className: e, ...s } = n, o = b(Se), r = typeof a == "function" ? a(o) : a;
|
|
1000
|
-
return /* @__PURE__ */
|
|
1002
|
+
return /* @__PURE__ */ i(
|
|
1001
1003
|
"span",
|
|
1002
1004
|
{
|
|
1003
1005
|
ref: t,
|
|
@@ -1017,10 +1019,10 @@ const Ui = {
|
|
|
1017
1019
|
Ge.displayName = "CheckedIndicator";
|
|
1018
1020
|
const da = u((n) => {
|
|
1019
1021
|
const { ref: a, children: t, ...e } = n;
|
|
1020
|
-
return /* @__PURE__ */
|
|
1022
|
+
return /* @__PURE__ */ i(Ge, { ref: a, ...e, children: t });
|
|
1021
1023
|
});
|
|
1022
1024
|
da.displayName = "CommandMenuCheckboxIndicator";
|
|
1023
|
-
const re = T({}),
|
|
1025
|
+
const re = T({}), it = T(!1), ua = T(!1), lt = T({}), ma = T({}), yo = h(
|
|
1024
1026
|
[
|
|
1025
1027
|
"ring",
|
|
1026
1028
|
"ring-(--base-6)",
|
|
@@ -1220,14 +1222,14 @@ const re = T({}), ct = T(!1), ua = T(!1), lt = T({}), ma = T({}), yo = h(
|
|
|
1220
1222
|
}
|
|
1221
1223
|
}
|
|
1222
1224
|
}
|
|
1223
|
-
),
|
|
1224
|
-
const { className: a, ref: t, closeOnSelect: e = !0, onSelect: s, filterValue: o, ...r } = n, { size:
|
|
1225
|
+
), ce = u((n) => {
|
|
1226
|
+
const { className: a, ref: t, closeOnSelect: e = !0, onSelect: s, filterValue: o, ...r } = n, { size: c, variant: l, radius: d } = b(re), { setOpen: m } = b(ma), g = v(() => {
|
|
1225
1227
|
s == null || s(), e && m(!1);
|
|
1226
1228
|
}, [e, s, m]);
|
|
1227
|
-
return /* @__PURE__ */
|
|
1229
|
+
return /* @__PURE__ */ i(
|
|
1228
1230
|
ws,
|
|
1229
1231
|
{
|
|
1230
|
-
className: x(So({ size:
|
|
1232
|
+
className: x(So({ size: c, variant: l, radius: d }), a),
|
|
1231
1233
|
ref: t,
|
|
1232
1234
|
onSelect: g,
|
|
1233
1235
|
value: o,
|
|
@@ -1235,12 +1237,12 @@ const re = T({}), ct = T(!1), ua = T(!1), lt = T({}), ma = T({}), yo = h(
|
|
|
1235
1237
|
}
|
|
1236
1238
|
);
|
|
1237
1239
|
});
|
|
1238
|
-
|
|
1240
|
+
ce.displayName = "CommandMenuItem";
|
|
1239
1241
|
const ga = u((n) => {
|
|
1240
|
-
const { children: a, ref: t, checked: e, onCheckedChange: s, onSelect: o, ...r } = n,
|
|
1242
|
+
const { children: a, ref: t, checked: e, onCheckedChange: s, onSelect: o, ...r } = n, c = v(() => {
|
|
1241
1243
|
o == null || o(), s(e !== !0);
|
|
1242
1244
|
}, [e, s, o]);
|
|
1243
|
-
return /* @__PURE__ */
|
|
1245
|
+
return /* @__PURE__ */ i(ua, { value: e, children: /* @__PURE__ */ i(ce, { ref: t, onSelect: c, "data-state": Ie(e), ...r, children: a }) });
|
|
1244
1246
|
});
|
|
1245
1247
|
ga.displayName = "CommandMenuCheckboxItem";
|
|
1246
1248
|
const pa = u((n) => {
|
|
@@ -1251,7 +1253,7 @@ const pa = u((n) => {
|
|
|
1251
1253
|
// DialogContent props
|
|
1252
1254
|
forceMount: o,
|
|
1253
1255
|
onOpenAutoFocus: r,
|
|
1254
|
-
onCloseAutoFocus:
|
|
1256
|
+
onCloseAutoFocus: c,
|
|
1255
1257
|
onEscapeKeyDown: l,
|
|
1256
1258
|
onPointerDownOutside: d,
|
|
1257
1259
|
onInteractOutside: m,
|
|
@@ -1267,12 +1269,12 @@ const pa = u((n) => {
|
|
|
1267
1269
|
radius: C,
|
|
1268
1270
|
accentColor: f
|
|
1269
1271
|
}), [f, C, p, g]);
|
|
1270
|
-
return /* @__PURE__ */
|
|
1272
|
+
return /* @__PURE__ */ i(Rt, { children: /* @__PURE__ */ i(
|
|
1271
1273
|
Os,
|
|
1272
1274
|
{
|
|
1273
1275
|
forceMount: o,
|
|
1274
1276
|
onOpenAutoFocus: r,
|
|
1275
|
-
onCloseAutoFocus:
|
|
1277
|
+
onCloseAutoFocus: c,
|
|
1276
1278
|
onEscapeKeyDown: l,
|
|
1277
1279
|
onPointerDownOutside: d,
|
|
1278
1280
|
onInteractOutside: m,
|
|
@@ -1286,9 +1288,9 @@ const pa = u((n) => {
|
|
|
1286
1288
|
"data-accent-color": f,
|
|
1287
1289
|
...S,
|
|
1288
1290
|
children: [
|
|
1289
|
-
/* @__PURE__ */
|
|
1290
|
-
/* @__PURE__ */
|
|
1291
|
-
/* @__PURE__ */
|
|
1291
|
+
/* @__PURE__ */ i(Vs, { className: "sr-only", children: n.label }),
|
|
1292
|
+
/* @__PURE__ */ i(Ls, { className: "sr-only", children: "Use the command menu to trigger commands." }),
|
|
1293
|
+
/* @__PURE__ */ i(re, { value: z, children: t })
|
|
1292
1294
|
]
|
|
1293
1295
|
}
|
|
1294
1296
|
)
|
|
@@ -1298,22 +1300,22 @@ const pa = u((n) => {
|
|
|
1298
1300
|
pa.displayName = "CommandMenuContent";
|
|
1299
1301
|
const xa = u((n) => {
|
|
1300
1302
|
const { className: a, ref: t, ...e } = n, { size: s } = b(re);
|
|
1301
|
-
return /* @__PURE__ */
|
|
1303
|
+
return /* @__PURE__ */ i(Ss, { className: x(ko({ size: s }), a), ref: t, ...e });
|
|
1302
1304
|
});
|
|
1303
1305
|
xa.displayName = "CommandMenuEmpty";
|
|
1304
1306
|
const Ee = u((n) => {
|
|
1305
1307
|
const { className: a, ref: t, ...e } = n, { size: s } = b(re);
|
|
1306
|
-
return /* @__PURE__ */
|
|
1308
|
+
return /* @__PURE__ */ i(ks, { className: x(Ro({ size: s }), a), ref: t, ...e });
|
|
1307
1309
|
});
|
|
1308
1310
|
Ee.displayName = "CommandMenuGroup";
|
|
1309
1311
|
const fa = u((n) => {
|
|
1310
1312
|
const { className: a, ref: t, ...e } = n, { size: s } = b(re);
|
|
1311
|
-
return /* @__PURE__ */
|
|
1313
|
+
return /* @__PURE__ */ i(Rs, { className: x(wo({ size: s }), a), ref: t, ...e });
|
|
1312
1314
|
});
|
|
1313
1315
|
fa.displayName = "CommandMenuInput";
|
|
1314
1316
|
const ha = u((n) => {
|
|
1315
1317
|
const { className: a, ref: t, ...e } = n, { size: s } = b(re), o = Ts((r) => r.filtered.count);
|
|
1316
|
-
return /* @__PURE__ */
|
|
1318
|
+
return /* @__PURE__ */ i(
|
|
1317
1319
|
Ps,
|
|
1318
1320
|
{
|
|
1319
1321
|
className: x(No({ size: s }), a),
|
|
@@ -1325,20 +1327,20 @@ const ha = u((n) => {
|
|
|
1325
1327
|
});
|
|
1326
1328
|
ha.displayName = "CommandMenuList";
|
|
1327
1329
|
const To = F(function(a) {
|
|
1328
|
-
const { children: t, ref: e, defaultValues: s, values: o, onValuesChange: r, ...
|
|
1329
|
-
return /* @__PURE__ */
|
|
1330
|
+
const { children: t, ref: e, defaultValues: s, values: o, onValuesChange: r, ...c } = a;
|
|
1331
|
+
return /* @__PURE__ */ i(De, { values: o, onValuesChange: r, defaultValues: s, children: /* @__PURE__ */ i(Ee, { ref: e, "aria-multiselectable": !0, ...c, children: t }) });
|
|
1330
1332
|
}), Po = F(function(n) {
|
|
1331
1333
|
const { children: a, ref: t, value: e, onSelect: s, closeOnSelect: o = !1, ...r } = n, {
|
|
1332
|
-
selected:
|
|
1334
|
+
selected: c,
|
|
1333
1335
|
selectValue: l,
|
|
1334
1336
|
registerValue: d
|
|
1335
1337
|
} = b(Z);
|
|
1336
1338
|
ue(() => d(e), [d, e]);
|
|
1337
1339
|
const m = v(() => {
|
|
1338
1340
|
s == null || s(), l(e);
|
|
1339
|
-
}, [l, s, e]), g =
|
|
1340
|
-
return /* @__PURE__ */
|
|
1341
|
-
|
|
1341
|
+
}, [l, s, e]), g = c(e);
|
|
1342
|
+
return /* @__PURE__ */ i(it, { value: g, children: /* @__PURE__ */ i(
|
|
1343
|
+
ce,
|
|
1342
1344
|
{
|
|
1343
1345
|
ref: t,
|
|
1344
1346
|
onSelect: m,
|
|
@@ -1351,25 +1353,25 @@ const To = F(function(a) {
|
|
|
1351
1353
|
) });
|
|
1352
1354
|
}), va = u((n) => {
|
|
1353
1355
|
const { container: a, className: t, ...e } = n;
|
|
1354
|
-
return /* @__PURE__ */
|
|
1356
|
+
return /* @__PURE__ */ i(Rt, { container: a, children: /* @__PURE__ */ i(As, { className: x(zo(), t), "data-floating-content": "", ...e }) });
|
|
1355
1357
|
});
|
|
1356
1358
|
va.displayName = "CommandMenuOverlay";
|
|
1357
1359
|
const ba = u((n) => {
|
|
1358
1360
|
const { children: a, ref: t, page: e, ...s } = n, { page: o } = b(lt), r = w(() => e === o, [e, o]);
|
|
1359
|
-
return /* @__PURE__ */
|
|
1361
|
+
return /* @__PURE__ */ i("div", { ref: t, "data-active": Ae(r), hidden: !r, ...s, children: r ? a : null });
|
|
1360
1362
|
});
|
|
1361
1363
|
ba.displayName = "CommandMenuPage";
|
|
1362
1364
|
const Ca = u((n) => {
|
|
1363
1365
|
const { children: a, defaultPage: t = "", page: e, onPageChange: s } = n, [o, r] = X(t, e, s);
|
|
1364
|
-
return /* @__PURE__ */
|
|
1366
|
+
return /* @__PURE__ */ i(lt, { value: { page: o, setPage: r }, children: a });
|
|
1365
1367
|
});
|
|
1366
1368
|
Ca.displayName = "CommandMenuPages";
|
|
1367
1369
|
const ya = u((n) => {
|
|
1368
|
-
const { ref: a, page: t, onSelect: e, closeOnSelect: s = !1, ...o } = n, { page: r, setPage:
|
|
1369
|
-
e == null || e(),
|
|
1370
|
-
}, [e, t,
|
|
1371
|
-
return /* @__PURE__ */
|
|
1372
|
-
|
|
1370
|
+
const { ref: a, page: t, onSelect: e, closeOnSelect: s = !1, ...o } = n, { page: r, setPage: c } = b(lt), l = w(() => t === r, [t, r]), d = v(() => {
|
|
1371
|
+
e == null || e(), c(t);
|
|
1372
|
+
}, [e, t, c]);
|
|
1373
|
+
return /* @__PURE__ */ i(it, { value: l, children: /* @__PURE__ */ i(
|
|
1374
|
+
ce,
|
|
1373
1375
|
{
|
|
1374
1376
|
ref: a,
|
|
1375
1377
|
onSelect: d,
|
|
@@ -1381,29 +1383,29 @@ const ya = u((n) => {
|
|
|
1381
1383
|
});
|
|
1382
1384
|
ya.displayName = "CommandMenuPageTriggerItem";
|
|
1383
1385
|
const Mo = F(function(a) {
|
|
1384
|
-
const { children: t, ref: e, required: s, defaultValue: o, value: r, onValueChange:
|
|
1385
|
-
return /* @__PURE__ */
|
|
1386
|
+
const { children: t, ref: e, required: s, defaultValue: o, value: r, onValueChange: c, ...l } = a;
|
|
1387
|
+
return /* @__PURE__ */ i(Ee, { ref: e, role: "radiogroup", ...l, children: s ? /* @__PURE__ */ i(
|
|
1386
1388
|
ot,
|
|
1387
1389
|
{
|
|
1388
1390
|
defaultValue: o,
|
|
1389
1391
|
value: r,
|
|
1390
|
-
onValueChange:
|
|
1392
|
+
onValueChange: c,
|
|
1391
1393
|
children: t
|
|
1392
1394
|
}
|
|
1393
|
-
) : /* @__PURE__ */
|
|
1395
|
+
) : /* @__PURE__ */ i(
|
|
1394
1396
|
rt,
|
|
1395
1397
|
{
|
|
1396
1398
|
defaultValue: o,
|
|
1397
1399
|
value: r,
|
|
1398
|
-
onValueChange:
|
|
1400
|
+
onValueChange: c,
|
|
1399
1401
|
children: t
|
|
1400
1402
|
}
|
|
1401
1403
|
) });
|
|
1402
1404
|
}), Oo = F(function(n) {
|
|
1403
|
-
const { children: a, ref: t, value: e, onSelect: s, ...o } = n, { selected: r, selectValue:
|
|
1404
|
-
s == null || s(),
|
|
1405
|
-
}, [s,
|
|
1406
|
-
return /* @__PURE__ */
|
|
1405
|
+
const { children: a, ref: t, value: e, onSelect: s, ...o } = n, { selected: r, selectValue: c } = b(Ne), l = v(() => {
|
|
1406
|
+
s == null || s(), c(e);
|
|
1407
|
+
}, [s, c, e]), d = r(e);
|
|
1408
|
+
return /* @__PURE__ */ i(it, { value: d, children: /* @__PURE__ */ i(ce, { ref: t, onSelect: l, "data-state": oe(d), ...o, children: a }) });
|
|
1407
1409
|
}), za = u((n) => {
|
|
1408
1410
|
const {
|
|
1409
1411
|
children: a,
|
|
@@ -1412,19 +1414,19 @@ const Mo = F(function(a) {
|
|
|
1412
1414
|
// oxlint-disable-next-line typescript/unbound-method
|
|
1413
1415
|
onOpenChange: s,
|
|
1414
1416
|
modal: o
|
|
1415
|
-
} = n, [r,
|
|
1417
|
+
} = n, [r, c] = X(t ?? !1, e, s), l = w(() => ({
|
|
1416
1418
|
open: r,
|
|
1417
|
-
setOpen:
|
|
1418
|
-
}), [r,
|
|
1419
|
-
return /* @__PURE__ */
|
|
1419
|
+
setOpen: c
|
|
1420
|
+
}), [r, c]);
|
|
1421
|
+
return /* @__PURE__ */ i(H.Root, { defaultOpen: t, open: r, onOpenChange: c, modal: o, children: /* @__PURE__ */ i(ma, { value: l, children: a }) });
|
|
1420
1422
|
});
|
|
1421
1423
|
za.displayName = "CommandMenuRoot";
|
|
1422
1424
|
const Vo = F(function(n) {
|
|
1423
|
-
const { ref: a, onSelect: t, closeOnSelect: e = !1, ...s } = n, { allSelected: o, someSelected: r, toggleSelectAll:
|
|
1424
|
-
t == null || t(),
|
|
1425
|
-
}, [t,
|
|
1426
|
-
return /* @__PURE__ */
|
|
1427
|
-
|
|
1425
|
+
const { ref: a, onSelect: t, closeOnSelect: e = !1, ...s } = n, { allSelected: o, someSelected: r, toggleSelectAll: c } = b(Z), l = v(() => {
|
|
1426
|
+
t == null || t(), c();
|
|
1427
|
+
}, [t, c]), d = o ? !0 : r ? "indeterminate" : !1;
|
|
1428
|
+
return /* @__PURE__ */ i(ua, { value: d, children: /* @__PURE__ */ i(
|
|
1429
|
+
ce,
|
|
1428
1430
|
{
|
|
1429
1431
|
ref: a,
|
|
1430
1432
|
role: "menuitemcheckbox",
|
|
@@ -1436,7 +1438,7 @@ const Vo = F(function(n) {
|
|
|
1436
1438
|
) });
|
|
1437
1439
|
}), xe = T(!1), _e = u((n) => {
|
|
1438
1440
|
const { ref: a, children: t, className: e, ...s } = n, o = b(xe), r = typeof t == "function" ? t(o) : t;
|
|
1439
|
-
return /* @__PURE__ */
|
|
1441
|
+
return /* @__PURE__ */ i(
|
|
1440
1442
|
"span",
|
|
1441
1443
|
{
|
|
1442
1444
|
ref: a,
|
|
@@ -1456,17 +1458,17 @@ const Vo = F(function(n) {
|
|
|
1456
1458
|
_e.displayName = "SelectedIndicator";
|
|
1457
1459
|
const Na = u((n) => {
|
|
1458
1460
|
const { ref: a, children: t, ...e } = n;
|
|
1459
|
-
return /* @__PURE__ */
|
|
1461
|
+
return /* @__PURE__ */ i(_e, { ref: a, ...e, children: t });
|
|
1460
1462
|
});
|
|
1461
1463
|
Na.displayName = "CommandMenuSelectedIndicator";
|
|
1462
1464
|
const wa = u((n) => {
|
|
1463
1465
|
const { className: a, ref: t, spacing: e = !1, ...s } = n, { size: o } = b(re);
|
|
1464
|
-
return /* @__PURE__ */
|
|
1466
|
+
return /* @__PURE__ */ i(Ms, { ref: t, className: x(Io({ size: o, spacing: e }), a), ...s });
|
|
1465
1467
|
});
|
|
1466
1468
|
wa.displayName = "CommandMenuSeparator";
|
|
1467
|
-
const Ia = u((n) => /* @__PURE__ */
|
|
1469
|
+
const Ia = u((n) => /* @__PURE__ */ i(Ds, { ...n }));
|
|
1468
1470
|
Ia.displayName = "CommandMenuTrigger";
|
|
1469
|
-
const
|
|
1471
|
+
const qc = {
|
|
1470
1472
|
Root: za,
|
|
1471
1473
|
Overlay: va,
|
|
1472
1474
|
Content: pa,
|
|
@@ -1474,7 +1476,7 @@ const qi = {
|
|
|
1474
1476
|
Input: fa,
|
|
1475
1477
|
List: ha,
|
|
1476
1478
|
Group: Ee,
|
|
1477
|
-
Item:
|
|
1479
|
+
Item: ce,
|
|
1478
1480
|
Separator: wa,
|
|
1479
1481
|
Empty: xa,
|
|
1480
1482
|
// Multi select
|
|
@@ -1494,20 +1496,20 @@ const qi = {
|
|
|
1494
1496
|
PageTriggerItem: ya
|
|
1495
1497
|
}, q = u((n) => {
|
|
1496
1498
|
const { ref: a, icon: t, className: e, size: s = "1em", ...o } = n;
|
|
1497
|
-
return /* @__PURE__ */
|
|
1499
|
+
return /* @__PURE__ */ i(t, { ref: a, className: x("shrink-0", e), size: s, ...o });
|
|
1498
1500
|
});
|
|
1499
1501
|
q.displayName = "LuIcon";
|
|
1500
1502
|
const Lo = (n) => {
|
|
1501
1503
|
const { orientation: a, ...t } = n;
|
|
1502
1504
|
switch (a) {
|
|
1503
1505
|
case "up":
|
|
1504
|
-
return /* @__PURE__ */
|
|
1506
|
+
return /* @__PURE__ */ i(q, { icon: Hs, ...t });
|
|
1505
1507
|
case "down":
|
|
1506
|
-
return /* @__PURE__ */
|
|
1508
|
+
return /* @__PURE__ */ i(q, { icon: Fs, ...t });
|
|
1507
1509
|
case "left":
|
|
1508
|
-
return /* @__PURE__ */
|
|
1510
|
+
return /* @__PURE__ */ i(q, { icon: _s, ...t });
|
|
1509
1511
|
default:
|
|
1510
|
-
return /* @__PURE__ */
|
|
1512
|
+
return /* @__PURE__ */ i(q, { icon: Es, ...t });
|
|
1511
1513
|
}
|
|
1512
1514
|
}, Ao = h(["relative", "size-max"], {
|
|
1513
1515
|
variants: {
|
|
@@ -1683,7 +1685,7 @@ const Lo = (n) => {
|
|
|
1683
1685
|
accentColor: s = a.accentColor,
|
|
1684
1686
|
size: o = "md",
|
|
1685
1687
|
variant: r = "soft",
|
|
1686
|
-
radius:
|
|
1688
|
+
radius: c = a.radius,
|
|
1687
1689
|
showOutsideDays: l = !0,
|
|
1688
1690
|
startMonth: d = Bo,
|
|
1689
1691
|
endMonth: m = $o,
|
|
@@ -1697,12 +1699,12 @@ const Lo = (n) => {
|
|
|
1697
1699
|
button_next: x(
|
|
1698
1700
|
e == null ? void 0 : e.button_next,
|
|
1699
1701
|
It({ size: o }),
|
|
1700
|
-
k({ radius:
|
|
1702
|
+
k({ radius: c, maxLarge: !1 })
|
|
1701
1703
|
),
|
|
1702
1704
|
button_previous: x(
|
|
1703
1705
|
e == null ? void 0 : e.button_previous,
|
|
1704
1706
|
It({ size: o }),
|
|
1705
|
-
k({ radius:
|
|
1707
|
+
k({ radius: c, maxLarge: !1 })
|
|
1706
1708
|
),
|
|
1707
1709
|
weekday: x(e == null ? void 0 : e.weekday, Go({ size: o })),
|
|
1708
1710
|
today: x(e == null ? void 0 : e.today, Eo({ size: o, variant: r })),
|
|
@@ -1710,7 +1712,7 @@ const Lo = (n) => {
|
|
|
1710
1712
|
day_button: x(
|
|
1711
1713
|
e == null ? void 0 : e.day_button,
|
|
1712
1714
|
Do({ size: o, variant: r }),
|
|
1713
|
-
k({ radius:
|
|
1715
|
+
k({ radius: c, maxLarge: !1 })
|
|
1714
1716
|
),
|
|
1715
1717
|
range_start: x(e == null ? void 0 : e.range_start, "rdp-range-start"),
|
|
1716
1718
|
range_middle: x(e == null ? void 0 : e.range_middle, "rdp-range-middle"),
|
|
@@ -1720,16 +1722,16 @@ const Lo = (n) => {
|
|
|
1720
1722
|
dropdown_root: x(
|
|
1721
1723
|
e == null ? void 0 : e.dropdown_root,
|
|
1722
1724
|
Fo({ size: o }),
|
|
1723
|
-
k({ radius:
|
|
1725
|
+
k({ radius: c, maxLarge: !1 })
|
|
1724
1726
|
),
|
|
1725
1727
|
dropdowns: "flex items-center",
|
|
1726
1728
|
caption_label: x(e == null ? void 0 : e.caption_label, Ho({ size: o })),
|
|
1727
1729
|
chevron: "size-[1em]"
|
|
1728
|
-
}), [e,
|
|
1730
|
+
}), [e, c, o, r]), f = w(
|
|
1729
1731
|
() => t ? { ...St, ...t } : St,
|
|
1730
1732
|
[t]
|
|
1731
1733
|
);
|
|
1732
|
-
return /* @__PURE__ */
|
|
1734
|
+
return /* @__PURE__ */ i(
|
|
1733
1735
|
Gs,
|
|
1734
1736
|
{
|
|
1735
1737
|
"data-accent-color": s,
|
|
@@ -1751,11 +1753,11 @@ const Sa = T({}), Uo = () => {
|
|
|
1751
1753
|
throw new Error("useDialog must be used within a DialogRoot");
|
|
1752
1754
|
return n;
|
|
1753
1755
|
}, ka = u((n) => {
|
|
1754
|
-
const { radius: a } = M(), t = Uo(), { ref: e, children: s, container: o, className: r, size:
|
|
1755
|
-
return /* @__PURE__ */
|
|
1756
|
+
const { radius: a } = M(), t = Uo(), { ref: e, children: s, container: o, className: r, size: c, ...l } = n, d = w(() => typeof s == "function" ? s(t) : s, [s, t]);
|
|
1757
|
+
return /* @__PURE__ */ i(H.Portal, { container: o, children: /* @__PURE__ */ i(
|
|
1756
1758
|
H.Content,
|
|
1757
1759
|
{
|
|
1758
|
-
className: x(Xt({ size:
|
|
1760
|
+
className: x(Xt({ size: c }), k({ radius: a, maxLarge: !0 }), r),
|
|
1759
1761
|
ref: e,
|
|
1760
1762
|
"data-floating-content": "",
|
|
1761
1763
|
...l,
|
|
@@ -1766,7 +1768,7 @@ const Sa = T({}), Uo = () => {
|
|
|
1766
1768
|
ka.displayName = "DialogContent";
|
|
1767
1769
|
const Ra = u((n) => {
|
|
1768
1770
|
const { ref: a, children: t, className: e, container: s, ...o } = n;
|
|
1769
|
-
return /* @__PURE__ */
|
|
1771
|
+
return /* @__PURE__ */ i(H.Portal, { container: s, children: /* @__PURE__ */ i(
|
|
1770
1772
|
H.Overlay,
|
|
1771
1773
|
{
|
|
1772
1774
|
ref: a,
|
|
@@ -1787,10 +1789,10 @@ const Ta = u((n) => {
|
|
|
1787
1789
|
onCloseInterrupt: o,
|
|
1788
1790
|
open: r,
|
|
1789
1791
|
// oxlint-disable-next-line typescript/unbound-method
|
|
1790
|
-
onOpenChange:
|
|
1792
|
+
onOpenChange: c
|
|
1791
1793
|
} = n, [l, d] = E(s ?? !1), m = r ?? l, g = v(
|
|
1792
1794
|
(f) => {
|
|
1793
|
-
if (
|
|
1795
|
+
if (c) return c(f);
|
|
1794
1796
|
if (f && t)
|
|
1795
1797
|
t();
|
|
1796
1798
|
else {
|
|
@@ -1802,7 +1804,7 @@ const Ta = u((n) => {
|
|
|
1802
1804
|
}
|
|
1803
1805
|
d(f);
|
|
1804
1806
|
},
|
|
1805
|
-
[
|
|
1807
|
+
[c, t, e, o]
|
|
1806
1808
|
), p = v(
|
|
1807
1809
|
(f) => {
|
|
1808
1810
|
if (f != null && f.force)
|
|
@@ -1811,10 +1813,10 @@ const Ta = u((n) => {
|
|
|
1811
1813
|
},
|
|
1812
1814
|
[g]
|
|
1813
1815
|
);
|
|
1814
|
-
return /* @__PURE__ */
|
|
1816
|
+
return /* @__PURE__ */ i(H.Root, { open: m, onOpenChange: g, children: /* @__PURE__ */ i(Sa.Provider, { value: p, children: a }) });
|
|
1815
1817
|
});
|
|
1816
1818
|
Ta.displayName = "DialogRoot";
|
|
1817
|
-
const
|
|
1819
|
+
const Wc = {
|
|
1818
1820
|
Root: Ta,
|
|
1819
1821
|
Content: ka,
|
|
1820
1822
|
Overlay: Ra,
|
|
@@ -1866,17 +1868,17 @@ const Wi = {
|
|
|
1866
1868
|
level: s = "1",
|
|
1867
1869
|
size: o,
|
|
1868
1870
|
weight: r,
|
|
1869
|
-
align:
|
|
1871
|
+
align: c,
|
|
1870
1872
|
highContrast: l = !1,
|
|
1871
1873
|
accentColor: d,
|
|
1872
1874
|
...m
|
|
1873
1875
|
} = n, g = qo[s];
|
|
1874
|
-
return /* @__PURE__ */
|
|
1876
|
+
return /* @__PURE__ */ i(
|
|
1875
1877
|
g,
|
|
1876
1878
|
{
|
|
1877
1879
|
ref: a,
|
|
1878
1880
|
className: x(
|
|
1879
|
-
Wo({ size: o, weight: r, align:
|
|
1881
|
+
Wo({ size: o, weight: r, align: c }),
|
|
1880
1882
|
{
|
|
1881
1883
|
"text-(--accent-a11)": !!d,
|
|
1882
1884
|
"text-(--accent-a12)": l
|
|
@@ -1892,7 +1894,7 @@ const Wi = {
|
|
|
1892
1894
|
Ko.displayName = "Heading";
|
|
1893
1895
|
const Pa = u((n) => {
|
|
1894
1896
|
const { ref: a, children: t, className: e, ...s } = n;
|
|
1895
|
-
return /* @__PURE__ */
|
|
1897
|
+
return /* @__PURE__ */ i(ye.Arrow, { className: x("fill-(--base-6)", e), ref: a, ...s, children: t });
|
|
1896
1898
|
});
|
|
1897
1899
|
Pa.displayName = "HoverCardArrow";
|
|
1898
1900
|
const Xo = h(["bg-(--color-background)", "dark:bg-(--base-2)", "ring-1", "ring-(--base-6)"], {
|
|
@@ -1915,20 +1917,20 @@ const Xo = h(["bg-(--color-background)", "dark:bg-(--base-2)", "ring-1", "ring-(
|
|
|
1915
1917
|
className: s,
|
|
1916
1918
|
size: o,
|
|
1917
1919
|
side: r,
|
|
1918
|
-
radius:
|
|
1920
|
+
radius: c = a.radius,
|
|
1919
1921
|
accentColor: l = a.accentColor,
|
|
1920
1922
|
sideOffset: d = 4,
|
|
1921
1923
|
container: m,
|
|
1922
1924
|
...g
|
|
1923
1925
|
} = n;
|
|
1924
|
-
return /* @__PURE__ */
|
|
1926
|
+
return /* @__PURE__ */ i(ye.Portal, { container: m, children: /* @__PURE__ */ i(
|
|
1925
1927
|
ye.Content,
|
|
1926
1928
|
{
|
|
1927
1929
|
className: x(
|
|
1928
1930
|
Xo({ size: o }),
|
|
1929
1931
|
Ve({ side: r }),
|
|
1930
1932
|
Le({ size: "md" }),
|
|
1931
|
-
k({ radius:
|
|
1933
|
+
k({ radius: c, maxLarge: !0 }),
|
|
1932
1934
|
s
|
|
1933
1935
|
),
|
|
1934
1936
|
ref: t,
|
|
@@ -1942,7 +1944,7 @@ const Xo = h(["bg-(--color-background)", "dark:bg-(--base-2)", "ring-1", "ring-(
|
|
|
1942
1944
|
) });
|
|
1943
1945
|
});
|
|
1944
1946
|
Ma.displayName = "HoverCardContent";
|
|
1945
|
-
const
|
|
1947
|
+
const Kc = {
|
|
1946
1948
|
Arrow: Pa,
|
|
1947
1949
|
Content: Ma,
|
|
1948
1950
|
Root: ye.Root,
|
|
@@ -1974,15 +1976,9 @@ const dt = T({}), Qo = h(
|
|
|
1974
1976
|
{
|
|
1975
1977
|
variants: {
|
|
1976
1978
|
variant: {
|
|
1977
|
-
surface: [
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
"bg-(--accent-surface)",
|
|
1981
|
-
"text-(--accent-a12)",
|
|
1982
|
-
"shadow-sm"
|
|
1983
|
-
],
|
|
1984
|
-
soft: ["bg-(--accent-a3)", "text-(--accent-12)", "shadow-sm"],
|
|
1985
|
-
outline: ["inset-ring", "inset-ring-(--base-a7)", "bg-transparent", "text-(--base-12)", "shadow-sm"],
|
|
1979
|
+
surface: ["inset-ring", "inset-ring-(--accent-a7)", "bg-(--accent-surface)", "text-(--accent-a12)"],
|
|
1980
|
+
soft: ["bg-(--accent-a3)", "text-(--accent-12)"],
|
|
1981
|
+
outline: ["inset-ring", "inset-ring-(--base-a7)", "bg-transparent", "text-(--base-12)"],
|
|
1986
1982
|
ghost: ["bg-transparent", "text-(--base-12)"]
|
|
1987
1983
|
},
|
|
1988
1984
|
size: {
|
|
@@ -2039,7 +2035,7 @@ const dt = T({}), Qo = h(
|
|
|
2039
2035
|
}
|
|
2040
2036
|
}), Oa = u((n) => {
|
|
2041
2037
|
const { ref: a, className: t, ...e } = n, { size: s, variant: o } = j(dt);
|
|
2042
|
-
return /* @__PURE__ */
|
|
2038
|
+
return /* @__PURE__ */ i(
|
|
2043
2039
|
"input",
|
|
2044
2040
|
{
|
|
2045
2041
|
className: x(Jo({ size: s, variant: o }), "grow bg-transparent outline-0", t),
|
|
@@ -2056,16 +2052,16 @@ const Va = u((n) => {
|
|
|
2056
2052
|
className: s,
|
|
2057
2053
|
variant: o = "surface",
|
|
2058
2054
|
size: r = "md",
|
|
2059
|
-
accentColor:
|
|
2055
|
+
accentColor: c = a.accentColor,
|
|
2060
2056
|
radius: l = a.radius,
|
|
2061
2057
|
...d
|
|
2062
2058
|
} = n, m = w(() => ({ size: r, variant: o }), [r, o]);
|
|
2063
|
-
return /* @__PURE__ */
|
|
2059
|
+
return /* @__PURE__ */ i(dt.Provider, { value: m, children: /* @__PURE__ */ i(
|
|
2064
2060
|
"div",
|
|
2065
2061
|
{
|
|
2066
2062
|
className: x(Qo({ variant: o, size: r }), k({ radius: l, maxLarge: !1 }), s),
|
|
2067
2063
|
ref: t,
|
|
2068
|
-
"data-accent-color":
|
|
2064
|
+
"data-accent-color": c,
|
|
2069
2065
|
...d,
|
|
2070
2066
|
children: e
|
|
2071
2067
|
}
|
|
@@ -2074,48 +2070,48 @@ const Va = u((n) => {
|
|
|
2074
2070
|
Va.displayName = "InputRoot";
|
|
2075
2071
|
const La = u((n) => {
|
|
2076
2072
|
const { ref: a, children: t, className: e, ...s } = n, { size: o, variant: r } = j(dt);
|
|
2077
|
-
return /* @__PURE__ */
|
|
2073
|
+
return /* @__PURE__ */ i("div", { className: x(Zo({ size: o, variant: r }), "flex items-center", e), ref: a, ...s, children: t });
|
|
2078
2074
|
});
|
|
2079
2075
|
La.displayName = "InputSlot";
|
|
2080
|
-
const
|
|
2076
|
+
const Xc = {
|
|
2081
2077
|
Field: Oa,
|
|
2082
2078
|
Root: Va,
|
|
2083
2079
|
Slot: La
|
|
2084
2080
|
}, ut = Xs({}), ke = () => Ys(ut);
|
|
2085
|
-
function
|
|
2081
|
+
function Yc(n) {
|
|
2086
2082
|
return Qs(ut, n);
|
|
2087
2083
|
}
|
|
2088
2084
|
const Aa = u((n) => {
|
|
2089
2085
|
const { ref: a, children: t, ...e } = n, { hideLayout: s = !1 } = ke();
|
|
2090
|
-
return !s && /* @__PURE__ */
|
|
2086
|
+
return !s && /* @__PURE__ */ i("div", { ref: a, ...e, children: t });
|
|
2091
2087
|
});
|
|
2092
2088
|
Aa.displayName = "LayoutContainer";
|
|
2093
2089
|
const Da = u((n) => {
|
|
2094
2090
|
const { children: a, small: t = !1, hideLayout: e = !1 } = n, [s, o] = E({}), r = v(
|
|
2095
2091
|
(d) => s[d] ?? !1,
|
|
2096
2092
|
[s]
|
|
2097
|
-
),
|
|
2093
|
+
), c = v((d, m) => {
|
|
2098
2094
|
o((g) => ({ ...g, [d]: m }));
|
|
2099
2095
|
}, []), l = w(
|
|
2100
2096
|
() => ({
|
|
2101
2097
|
small: t,
|
|
2102
2098
|
hideLayout: e,
|
|
2103
2099
|
isOpen: r,
|
|
2104
|
-
setOpen:
|
|
2100
|
+
setOpen: c
|
|
2105
2101
|
}),
|
|
2106
|
-
[e, r,
|
|
2102
|
+
[e, r, c, t]
|
|
2107
2103
|
);
|
|
2108
|
-
return /* @__PURE__ */
|
|
2104
|
+
return /* @__PURE__ */ i(ut.Provider, { value: l, children: a });
|
|
2109
2105
|
});
|
|
2110
2106
|
Da.displayName = "LayoutRoot";
|
|
2111
2107
|
const fe = T({}), Ga = T({}), mt = u((n) => {
|
|
2112
2108
|
const { ref: a, onClick: t, disabled: e, ...s } = n, { setOpen: o } = b(fe), r = v(
|
|
2113
|
-
(
|
|
2114
|
-
t == null || t(
|
|
2109
|
+
(c) => {
|
|
2110
|
+
t == null || t(c), !c.defaultPrevented && o(!1);
|
|
2115
2111
|
},
|
|
2116
2112
|
[t, o]
|
|
2117
2113
|
);
|
|
2118
|
-
return /* @__PURE__ */
|
|
2114
|
+
return /* @__PURE__ */ i(me, { ref: a, onClick: r, "data-disabled": e ?? !1, ...s });
|
|
2119
2115
|
});
|
|
2120
2116
|
mt.displayName = "SlideOutClose";
|
|
2121
2117
|
const er = 200;
|
|
@@ -2123,14 +2119,14 @@ function tr(n, a = globalThis == null ? void 0 : globalThis.document.body) {
|
|
|
2123
2119
|
const t = sr(n), e = U(!1), s = U(() => {
|
|
2124
2120
|
});
|
|
2125
2121
|
return B(() => {
|
|
2126
|
-
const o = (
|
|
2127
|
-
if (
|
|
2128
|
-
const l = { originalEvent:
|
|
2122
|
+
const o = (c) => {
|
|
2123
|
+
if (c.target && !e.current) {
|
|
2124
|
+
const l = { originalEvent: c }, d = () => {
|
|
2129
2125
|
nr("pointerDownOutside", t, l, {
|
|
2130
2126
|
discrete: !0
|
|
2131
2127
|
});
|
|
2132
2128
|
};
|
|
2133
|
-
|
|
2129
|
+
c.pointerType === "touch" ? (a.removeEventListener("click", s.current), s.current = d, a.addEventListener("click", s.current, { once: !0 })) : d();
|
|
2134
2130
|
} else
|
|
2135
2131
|
a.removeEventListener("click", s.current);
|
|
2136
2132
|
e.current = !1;
|
|
@@ -2191,7 +2187,7 @@ const or = {
|
|
|
2191
2187
|
exitDone: "-mb-(--slide-out-size)"
|
|
2192
2188
|
}
|
|
2193
2189
|
}, gt = u((n) => {
|
|
2194
|
-
const { ref: a, children: t, style: e, side: s, type: o, resizeable: r = !1, initialSize:
|
|
2190
|
+
const { ref: a, children: t, style: e, side: s, type: o, resizeable: r = !1, initialSize: c, minSize: l, maxSize: d, ...m } = n, g = U(null), { open: p, setOpen: f, parentElement: C, modal: S, hide: z } = b(fe), [N, P] = E(null), L = v(() => {
|
|
2195
2191
|
S && f(!1);
|
|
2196
2192
|
}, [S, f]), { onPointerDownCapture: y } = tr(
|
|
2197
2193
|
L,
|
|
@@ -2216,7 +2212,7 @@ const or = {
|
|
|
2216
2212
|
return {
|
|
2217
2213
|
...e,
|
|
2218
2214
|
left: 0,
|
|
2219
|
-
width: N ??
|
|
2215
|
+
width: N ?? c,
|
|
2220
2216
|
maxWidth: d,
|
|
2221
2217
|
minWidth: l,
|
|
2222
2218
|
position: o === "inline" ? "relative" : "absolute",
|
|
@@ -2226,7 +2222,7 @@ const or = {
|
|
|
2226
2222
|
return {
|
|
2227
2223
|
...e,
|
|
2228
2224
|
right: 0,
|
|
2229
|
-
width: N ??
|
|
2225
|
+
width: N ?? c,
|
|
2230
2226
|
maxWidth: d,
|
|
2231
2227
|
minWidth: l,
|
|
2232
2228
|
position: o === "inline" ? "relative" : "absolute",
|
|
@@ -2236,7 +2232,7 @@ const or = {
|
|
|
2236
2232
|
return {
|
|
2237
2233
|
...e,
|
|
2238
2234
|
top: 0,
|
|
2239
|
-
height: N ??
|
|
2235
|
+
height: N ?? c,
|
|
2240
2236
|
maxHeight: d,
|
|
2241
2237
|
minHeight: l,
|
|
2242
2238
|
position: o === "inline" ? "relative" : "absolute",
|
|
@@ -2246,14 +2242,14 @@ const or = {
|
|
|
2246
2242
|
return {
|
|
2247
2243
|
...e,
|
|
2248
2244
|
bottom: 0,
|
|
2249
|
-
height: N ??
|
|
2245
|
+
height: N ?? c,
|
|
2250
2246
|
maxHeight: d,
|
|
2251
2247
|
minHeight: l,
|
|
2252
2248
|
position: o === "inline" ? "relative" : "absolute",
|
|
2253
2249
|
"--slide-out-size": `${N}px`
|
|
2254
2250
|
};
|
|
2255
2251
|
}
|
|
2256
|
-
}, [N,
|
|
2252
|
+
}, [N, c, d, l, s, e, o]), A = or[s], G = w(
|
|
2257
2253
|
() => ({
|
|
2258
2254
|
side: s,
|
|
2259
2255
|
type: o,
|
|
@@ -2266,7 +2262,7 @@ const or = {
|
|
|
2266
2262
|
return z ? null : (
|
|
2267
2263
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
2268
2264
|
// @ts-ignore
|
|
2269
|
-
/* @__PURE__ */
|
|
2265
|
+
/* @__PURE__ */ i(
|
|
2270
2266
|
Js,
|
|
2271
2267
|
{
|
|
2272
2268
|
classNames: A,
|
|
@@ -2275,7 +2271,7 @@ const or = {
|
|
|
2275
2271
|
unmountOnExit: !0,
|
|
2276
2272
|
mountOnEnter: !0,
|
|
2277
2273
|
nodeRef: g,
|
|
2278
|
-
children: /* @__PURE__ */
|
|
2274
|
+
children: /* @__PURE__ */ i(
|
|
2279
2275
|
"div",
|
|
2280
2276
|
{
|
|
2281
2277
|
ref: we([a, g]),
|
|
@@ -2285,7 +2281,7 @@ const or = {
|
|
|
2285
2281
|
"data-type": o,
|
|
2286
2282
|
style: V,
|
|
2287
2283
|
...m,
|
|
2288
|
-
children: /* @__PURE__ */
|
|
2284
|
+
children: /* @__PURE__ */ i(Ga, { value: G, children: t })
|
|
2289
2285
|
}
|
|
2290
2286
|
)
|
|
2291
2287
|
}
|
|
@@ -2294,7 +2290,7 @@ const or = {
|
|
|
2294
2290
|
});
|
|
2295
2291
|
gt.displayName = "SlideOutContent";
|
|
2296
2292
|
const pt = u((n) => {
|
|
2297
|
-
const { ref: a, onMouseDown: t, disabled: e, ...s } = n, o = U(null), [r,
|
|
2293
|
+
const { ref: a, onMouseDown: t, disabled: e, ...s } = n, o = U(null), [r, c] = E(!1), { side: l, resizeable: d, computedSize: m, setComputedSize: g } = b(Ga), p = e ?? !d, f = v(
|
|
2298
2294
|
(N, P) => {
|
|
2299
2295
|
switch (l) {
|
|
2300
2296
|
case "left":
|
|
@@ -2314,7 +2310,7 @@ const pt = u((n) => {
|
|
|
2314
2310
|
[l]
|
|
2315
2311
|
), C = v(
|
|
2316
2312
|
(N) => {
|
|
2317
|
-
t == null || t(N), !(N.defaultPrevented || p) && (N.preventDefault(), f(N.clientX, N.clientY),
|
|
2313
|
+
t == null || t(N), !(N.defaultPrevented || p) && (N.preventDefault(), f(N.clientX, N.clientY), c(!0));
|
|
2318
2314
|
},
|
|
2319
2315
|
[p, t, f]
|
|
2320
2316
|
), S = v(
|
|
@@ -2341,11 +2337,11 @@ const pt = u((n) => {
|
|
|
2341
2337
|
},
|
|
2342
2338
|
[p, m, r, g, f, l]
|
|
2343
2339
|
), z = v(() => {
|
|
2344
|
-
!r || p || (o.current = null,
|
|
2340
|
+
!r || p || (o.current = null, c(!1));
|
|
2345
2341
|
}, [p, r]);
|
|
2346
2342
|
return B(() => (document.addEventListener("pointermove", S), document.addEventListener("pointerup", z), () => {
|
|
2347
2343
|
document.removeEventListener("pointermove", S), document.removeEventListener("pointerup", z);
|
|
2348
|
-
}), [S, z]), /* @__PURE__ */
|
|
2344
|
+
}), [S, z]), /* @__PURE__ */ i(
|
|
2349
2345
|
"div",
|
|
2350
2346
|
{
|
|
2351
2347
|
ref: a,
|
|
@@ -2360,7 +2356,7 @@ const pt = u((n) => {
|
|
|
2360
2356
|
pt.displayName = "SlideOutHandle";
|
|
2361
2357
|
const xt = u((n) => {
|
|
2362
2358
|
const { ref: a, ...t } = n, { open: e, hide: s } = b(fe);
|
|
2363
|
-
return e && !s ? /* @__PURE__ */
|
|
2359
|
+
return e && !s ? /* @__PURE__ */ i("div", { ref: a, "data-open": e, ...t }) : null;
|
|
2364
2360
|
});
|
|
2365
2361
|
xt.displayName = "SlideOutOverlay";
|
|
2366
2362
|
const ft = u((n) => {
|
|
@@ -2371,7 +2367,7 @@ const ft = u((n) => {
|
|
|
2371
2367
|
open: s,
|
|
2372
2368
|
onOpenChange: o,
|
|
2373
2369
|
modal: r = !1,
|
|
2374
|
-
hide:
|
|
2370
|
+
hide: c = !1,
|
|
2375
2371
|
...l
|
|
2376
2372
|
} = n, [d, m] = E(null), [g, p] = X(e, s, o), f = w(
|
|
2377
2373
|
() => ({
|
|
@@ -2379,35 +2375,35 @@ const ft = u((n) => {
|
|
|
2379
2375
|
open: g,
|
|
2380
2376
|
setOpen: p,
|
|
2381
2377
|
modal: r,
|
|
2382
|
-
hide:
|
|
2378
|
+
hide: c
|
|
2383
2379
|
}),
|
|
2384
|
-
[
|
|
2380
|
+
[c, r, g, d, p]
|
|
2385
2381
|
);
|
|
2386
|
-
return /* @__PURE__ */
|
|
2382
|
+
return /* @__PURE__ */ i("div", { ref: we([a, m]), ...l, children: /* @__PURE__ */ i(fe, { value: f, children: t }) });
|
|
2387
2383
|
});
|
|
2388
2384
|
ft.displayName = "SlideOutRoot";
|
|
2389
2385
|
const Ea = u((n) => {
|
|
2390
2386
|
const { ref: a, onClick: t, ...e } = n, { open: s, setOpen: o } = b(fe), r = v(
|
|
2391
|
-
(
|
|
2392
|
-
t == null || t(
|
|
2387
|
+
(c) => {
|
|
2388
|
+
t == null || t(c), !c.defaultPrevented && o(!s);
|
|
2393
2389
|
},
|
|
2394
2390
|
[t, s, o]
|
|
2395
2391
|
);
|
|
2396
|
-
return /* @__PURE__ */
|
|
2392
|
+
return /* @__PURE__ */ i(me, { ref: a, onClick: r, "data-disabled": n.disabled ?? !1, ...e });
|
|
2397
2393
|
});
|
|
2398
2394
|
Ea.displayName = "SlideOutTrigger";
|
|
2399
2395
|
const ht = u((n) => {
|
|
2400
2396
|
const { ref: a, ...t } = n, e = U(null), { open: s, modal: o, parentElement: r } = b(fe);
|
|
2401
2397
|
return B(() => {
|
|
2402
2398
|
if (!e.current) return;
|
|
2403
|
-
const
|
|
2404
|
-
return s && o && (
|
|
2405
|
-
|
|
2399
|
+
const c = e.current, l = c.style.pointerEvents;
|
|
2400
|
+
return s && o && (c.style.pointerEvents = "none"), () => {
|
|
2401
|
+
c.style.pointerEvents = l;
|
|
2406
2402
|
};
|
|
2407
|
-
}, [o, s, r == null ? void 0 : r.style]), /* @__PURE__ */
|
|
2403
|
+
}, [o, s, r == null ? void 0 : r.style]), /* @__PURE__ */ i("div", { ref: we([a, e]), ...t });
|
|
2408
2404
|
});
|
|
2409
2405
|
ht.displayName = "SlideOutViewport";
|
|
2410
|
-
const
|
|
2406
|
+
const Qc = {
|
|
2411
2407
|
Close: mt,
|
|
2412
2408
|
Content: gt,
|
|
2413
2409
|
Handle: pt,
|
|
@@ -2417,34 +2413,34 @@ const Qi = {
|
|
|
2417
2413
|
Viewport: ht
|
|
2418
2414
|
}, _a = u((n) => {
|
|
2419
2415
|
const { ref: a, ...t } = n;
|
|
2420
|
-
return /* @__PURE__ */
|
|
2416
|
+
return /* @__PURE__ */ i(mt, { ref: a, ...t });
|
|
2421
2417
|
});
|
|
2422
2418
|
_a.displayName = "LayoutSlideOutClose";
|
|
2423
2419
|
const Fa = u((n) => {
|
|
2424
2420
|
const { ref: a, type: t, ...e } = n, { small: s } = ke();
|
|
2425
|
-
return /* @__PURE__ */
|
|
2421
|
+
return /* @__PURE__ */ i(gt, { ref: a, type: t ?? (s ? "overlay" : "inline"), ...e });
|
|
2426
2422
|
});
|
|
2427
2423
|
Fa.displayName = "LayoutSlideOutContent";
|
|
2428
2424
|
const Ha = u((n) => {
|
|
2429
2425
|
const { ref: a, ...t } = n;
|
|
2430
|
-
return /* @__PURE__ */
|
|
2426
|
+
return /* @__PURE__ */ i(pt, { ref: a, ...t });
|
|
2431
2427
|
});
|
|
2432
2428
|
Ha.displayName = "LayoutSlideOutHandle";
|
|
2433
2429
|
const Ba = u((n) => {
|
|
2434
2430
|
const { ref: a, smallModeOnly: t = !1, ...e } = n, { small: s, hideLayout: o } = ke();
|
|
2435
|
-
return w(() => !(o || t && !s), [o, s, t]) ? /* @__PURE__ */
|
|
2431
|
+
return w(() => !(o || t && !s), [o, s, t]) ? /* @__PURE__ */ i(xt, { ref: a, ...e }) : null;
|
|
2436
2432
|
});
|
|
2437
2433
|
Ba.displayName = "SlideOutOverlay";
|
|
2438
2434
|
const $a = u((n) => {
|
|
2439
|
-
const { ref: a, slideOutId: t, defaultOpen: e, hide: s, ...o } = n, { isOpen: r, setOpen:
|
|
2435
|
+
const { ref: a, slideOutId: t, defaultOpen: e, hide: s, ...o } = n, { isOpen: r, setOpen: c, small: l, hideLayout: d } = ke(), m = r(t), g = v(
|
|
2440
2436
|
(p) => {
|
|
2441
|
-
p ||
|
|
2437
|
+
p || c(t, !1);
|
|
2442
2438
|
},
|
|
2443
|
-
[
|
|
2439
|
+
[c, t]
|
|
2444
2440
|
);
|
|
2445
2441
|
return B(() => {
|
|
2446
|
-
l && (e == null ? void 0 : e.small) !== void 0 ?
|
|
2447
|
-
}, [e, t,
|
|
2442
|
+
l && (e == null ? void 0 : e.small) !== void 0 ? c(t, e == null ? void 0 : e.small) : !l && (e == null ? void 0 : e.large) !== void 0 && c(t, e == null ? void 0 : e.large);
|
|
2443
|
+
}, [e, t, c, l]), /* @__PURE__ */ i(
|
|
2448
2444
|
ft,
|
|
2449
2445
|
{
|
|
2450
2446
|
ref: a,
|
|
@@ -2458,18 +2454,18 @@ const $a = u((n) => {
|
|
|
2458
2454
|
});
|
|
2459
2455
|
$a.displayName = "LayoutSlideOutRoot";
|
|
2460
2456
|
const ja = u((n) => {
|
|
2461
|
-
const { ref: a, slideOutId: t, children: e, ...s } = n, { isOpen: o, setOpen: r } = ke(),
|
|
2462
|
-
r(t, !
|
|
2463
|
-
}, [
|
|
2464
|
-
return /* @__PURE__ */
|
|
2457
|
+
const { ref: a, slideOutId: t, children: e, ...s } = n, { isOpen: o, setOpen: r } = ke(), c = o(t), l = v(() => {
|
|
2458
|
+
r(t, !c);
|
|
2459
|
+
}, [c, r, t]);
|
|
2460
|
+
return /* @__PURE__ */ i(me, { "data-state": pe(c), ref: a, onClick: l, ...s, children: e });
|
|
2465
2461
|
});
|
|
2466
2462
|
ja.displayName = "LayoutSlideOutTrigger";
|
|
2467
2463
|
const Ua = u((n) => {
|
|
2468
2464
|
const { ref: a, ...t } = n;
|
|
2469
|
-
return /* @__PURE__ */
|
|
2465
|
+
return /* @__PURE__ */ i(ht, { ref: a, ...t });
|
|
2470
2466
|
});
|
|
2471
2467
|
Ua.displayName = "LayoutSlideOutViewport";
|
|
2472
|
-
const
|
|
2468
|
+
const Jc = {
|
|
2473
2469
|
Root: Da,
|
|
2474
2470
|
Container: Aa,
|
|
2475
2471
|
SlideOutClose: _a,
|
|
@@ -2514,24 +2510,24 @@ const Ji = {
|
|
|
2514
2510
|
weight: "regular",
|
|
2515
2511
|
align: "left"
|
|
2516
2512
|
}
|
|
2517
|
-
}),
|
|
2513
|
+
}), cr = u((n) => {
|
|
2518
2514
|
const a = M(), {
|
|
2519
2515
|
ref: t,
|
|
2520
2516
|
children: e,
|
|
2521
2517
|
className: s,
|
|
2522
2518
|
size: o,
|
|
2523
2519
|
weight: r = "regular",
|
|
2524
|
-
align:
|
|
2520
|
+
align: c = "left",
|
|
2525
2521
|
highContrast: l = !1,
|
|
2526
2522
|
accentColor: d = a.accentColor,
|
|
2527
2523
|
...m
|
|
2528
2524
|
} = n;
|
|
2529
|
-
return /* @__PURE__ */
|
|
2525
|
+
return /* @__PURE__ */ i(
|
|
2530
2526
|
"a",
|
|
2531
2527
|
{
|
|
2532
2528
|
ref: t,
|
|
2533
2529
|
className: x(
|
|
2534
|
-
rr({ size: o, weight: r, align:
|
|
2530
|
+
rr({ size: o, weight: r, align: c }),
|
|
2535
2531
|
{
|
|
2536
2532
|
"text-(--accent-a11)": !l,
|
|
2537
2533
|
"text-(--accent-a12)": l
|
|
@@ -2544,8 +2540,8 @@ const Ji = {
|
|
|
2544
2540
|
}
|
|
2545
2541
|
);
|
|
2546
2542
|
});
|
|
2547
|
-
|
|
2548
|
-
const
|
|
2543
|
+
cr.displayName = "Link";
|
|
2544
|
+
const ir = h(
|
|
2549
2545
|
[
|
|
2550
2546
|
"select-none",
|
|
2551
2547
|
"relative",
|
|
@@ -2684,8 +2680,8 @@ const cr = h(
|
|
|
2684
2680
|
size: "md"
|
|
2685
2681
|
}
|
|
2686
2682
|
}
|
|
2687
|
-
), J = T({}),
|
|
2688
|
-
const a = b(
|
|
2683
|
+
), J = T({}), ie = T({}), Fe = T({}), gr = ["Enter", " "], se = u((n) => {
|
|
2684
|
+
const a = b(ie), { getItemProps: t, activeIndex: e, setOpen: s, size: o, variant: r, radius: c } = b(J), { closeRoot: l } = b(Fe), {
|
|
2689
2685
|
ref: d,
|
|
2690
2686
|
className: m,
|
|
2691
2687
|
children: g,
|
|
@@ -2706,10 +2702,10 @@ const cr = h(
|
|
|
2706
2702
|
},
|
|
2707
2703
|
[S, z, C, p, s]
|
|
2708
2704
|
), G = w(() => L === e, [e, L]), O = w(() => typeof g == "function" ? g({ active: G, selected: !1 }) : g, [g, G]);
|
|
2709
|
-
return /* @__PURE__ */
|
|
2705
|
+
return /* @__PURE__ */ i(
|
|
2710
2706
|
"li",
|
|
2711
2707
|
{
|
|
2712
|
-
className: x(
|
|
2708
|
+
className: x(ir({ size: o, variant: r }), k({ radius: c, maxLarge: !0 }), m),
|
|
2713
2709
|
ref: y,
|
|
2714
2710
|
role: "menuitem",
|
|
2715
2711
|
"data-disabled": Q(z),
|
|
@@ -2738,25 +2734,25 @@ const Wa = u((n) => {
|
|
|
2738
2734
|
break;
|
|
2739
2735
|
}
|
|
2740
2736
|
}, [t, e, s]);
|
|
2741
|
-
return /* @__PURE__ */
|
|
2737
|
+
return /* @__PURE__ */ i(Se.Provider, { value: t, children: /* @__PURE__ */ i(se, { ref: a, onSelect: r, ...o }) });
|
|
2742
2738
|
});
|
|
2743
2739
|
Wa.displayName = "MenuCheckboxItem";
|
|
2744
2740
|
const Ka = u((n) => {
|
|
2745
2741
|
const { ref: a, children: t, ...e } = n;
|
|
2746
|
-
return /* @__PURE__ */
|
|
2742
|
+
return /* @__PURE__ */ i(Ge, { ref: a, ...e, children: t });
|
|
2747
2743
|
});
|
|
2748
2744
|
Ka.displayName = "MenuCheckboxItemIndicator";
|
|
2749
2745
|
const Xa = u((n) => {
|
|
2750
|
-
const { ref: a, children: t, disabled: e = !1 } = n, { getReferenceProps: s, refs: o, setTriggerType: r, open:
|
|
2746
|
+
const { ref: a, children: t, disabled: e = !1 } = n, { getReferenceProps: s, refs: o, setTriggerType: r, open: c } = b(ie), l = ge([o.setReference, a]);
|
|
2751
2747
|
return B(() => {
|
|
2752
2748
|
r("click");
|
|
2753
|
-
}, [r]), /* @__PURE__ */
|
|
2749
|
+
}, [r]), /* @__PURE__ */ i(
|
|
2754
2750
|
me,
|
|
2755
2751
|
{
|
|
2756
2752
|
ref: l,
|
|
2757
2753
|
"aria-disabled": e,
|
|
2758
2754
|
"data-disabled": Q(e),
|
|
2759
|
-
"data-state": pe(
|
|
2755
|
+
"data-state": pe(c),
|
|
2760
2756
|
...s({ disabled: e }),
|
|
2761
2757
|
children: t
|
|
2762
2758
|
}
|
|
@@ -2771,7 +2767,7 @@ const Ya = u((n) => {
|
|
|
2771
2767
|
children: s,
|
|
2772
2768
|
size: o = "md",
|
|
2773
2769
|
variant: r = "soft",
|
|
2774
|
-
radius:
|
|
2770
|
+
radius: c = a.radius,
|
|
2775
2771
|
accentColor: l = "base",
|
|
2776
2772
|
...d
|
|
2777
2773
|
} = n, {
|
|
@@ -2789,7 +2785,7 @@ const Ya = u((n) => {
|
|
|
2789
2785
|
floatingStyles: V,
|
|
2790
2786
|
modal: A,
|
|
2791
2787
|
side: G
|
|
2792
|
-
} = b(
|
|
2788
|
+
} = b(ie), O = w(() => {
|
|
2793
2789
|
var I;
|
|
2794
2790
|
return {
|
|
2795
2791
|
...V,
|
|
@@ -2812,7 +2808,7 @@ const Ya = u((n) => {
|
|
|
2812
2808
|
size: o,
|
|
2813
2809
|
variant: r,
|
|
2814
2810
|
accentColor: l,
|
|
2815
|
-
radius:
|
|
2811
|
+
radius: c
|
|
2816
2812
|
}),
|
|
2817
2813
|
[
|
|
2818
2814
|
z,
|
|
@@ -2825,17 +2821,17 @@ const Ya = u((n) => {
|
|
|
2825
2821
|
o,
|
|
2826
2822
|
r,
|
|
2827
2823
|
l,
|
|
2828
|
-
|
|
2824
|
+
c
|
|
2829
2825
|
]
|
|
2830
2826
|
);
|
|
2831
|
-
return /* @__PURE__ */
|
|
2827
|
+
return /* @__PURE__ */ i(Pt, { id: L, children: N && /* @__PURE__ */ i(Mt, { children: /* @__PURE__ */ i(
|
|
2832
2828
|
eo,
|
|
2833
2829
|
{
|
|
2834
2830
|
className: ur({ modal: A }),
|
|
2835
2831
|
onClick: _,
|
|
2836
2832
|
lockScroll: !0,
|
|
2837
2833
|
"data-floating-content": "",
|
|
2838
|
-
children: /* @__PURE__ */
|
|
2834
|
+
children: /* @__PURE__ */ i(Ot, { context: y, children: /* @__PURE__ */ i(Vt, { elementsRef: f, children: /* @__PURE__ */ i(J.Provider, { value: ee, children: /* @__PURE__ */ i(
|
|
2839
2835
|
"div",
|
|
2840
2836
|
{
|
|
2841
2837
|
className: "border-box w-max outline-none",
|
|
@@ -2844,14 +2840,14 @@ const Ya = u((n) => {
|
|
|
2844
2840
|
style: O,
|
|
2845
2841
|
"data-floating-content": "",
|
|
2846
2842
|
...g(),
|
|
2847
|
-
children: /* @__PURE__ */
|
|
2843
|
+
children: /* @__PURE__ */ i(
|
|
2848
2844
|
"ul",
|
|
2849
2845
|
{
|
|
2850
2846
|
className: x(
|
|
2851
2847
|
qa({ size: o }),
|
|
2852
2848
|
Ve({ side: G }),
|
|
2853
2849
|
Le({ size: "md" }),
|
|
2854
|
-
k({ radius:
|
|
2850
|
+
k({ radius: c, maxLarge: !0 }),
|
|
2855
2851
|
"max-h-(--overmap-menu-available-height)",
|
|
2856
2852
|
e
|
|
2857
2853
|
),
|
|
@@ -2870,10 +2866,10 @@ const Ya = u((n) => {
|
|
|
2870
2866
|
});
|
|
2871
2867
|
Ya.displayName = "Menu.Content";
|
|
2872
2868
|
const Qa = u((n) => {
|
|
2873
|
-
const { ref: a, children: t, disabled: e = !1 } = n, s = U(null), { setOpen: o, refs: r, setTriggerType:
|
|
2869
|
+
const { ref: a, children: t, disabled: e = !1 } = n, s = U(null), { setOpen: o, refs: r, setTriggerType: c, open: l } = b(ie), d = ge([a, s]);
|
|
2874
2870
|
B(() => {
|
|
2875
|
-
|
|
2876
|
-
}, [
|
|
2871
|
+
c("context");
|
|
2872
|
+
}, [c]);
|
|
2877
2873
|
const m = v(
|
|
2878
2874
|
(g) => {
|
|
2879
2875
|
const { clientY: p, clientX: f } = g;
|
|
@@ -2895,7 +2891,7 @@ const Qa = u((n) => {
|
|
|
2895
2891
|
},
|
|
2896
2892
|
[e, r, o]
|
|
2897
2893
|
);
|
|
2898
|
-
return /* @__PURE__ */
|
|
2894
|
+
return /* @__PURE__ */ i(
|
|
2899
2895
|
me,
|
|
2900
2896
|
{
|
|
2901
2897
|
ref: d,
|
|
@@ -2911,11 +2907,11 @@ const Qa = u((n) => {
|
|
|
2911
2907
|
Qa.displayName = "MenuContextTrigger";
|
|
2912
2908
|
const He = u((n) => {
|
|
2913
2909
|
const { ref: a, children: t, ...e } = n;
|
|
2914
|
-
return /* @__PURE__ */
|
|
2910
|
+
return /* @__PURE__ */ i("div", { ref: a, role: "group", ...e, children: t });
|
|
2915
2911
|
});
|
|
2916
2912
|
He.displayName = "MenuGroup";
|
|
2917
2913
|
const Ja = u((n) => {
|
|
2918
|
-
const { ref: a, className: t, onValueChange: e, onChange: s, disabled: o = !1, ...r } = n, { activeIndex:
|
|
2914
|
+
const { ref: a, className: t, onValueChange: e, onChange: s, disabled: o = !1, ...r } = n, { activeIndex: c, getItemProps: l } = b(J), { index: d, ref: m } = Tt(), g = ge([m, a]), p = v(
|
|
2919
2915
|
(f) => {
|
|
2920
2916
|
s == null || s(f), e == null || e(f.target.value);
|
|
2921
2917
|
},
|
|
@@ -2923,7 +2919,7 @@ const Ja = u((n) => {
|
|
|
2923
2919
|
);
|
|
2924
2920
|
return B(() => () => {
|
|
2925
2921
|
e == null || e("");
|
|
2926
|
-
}, []), /* @__PURE__ */
|
|
2922
|
+
}, []), /* @__PURE__ */ i(
|
|
2927
2923
|
"input",
|
|
2928
2924
|
{
|
|
2929
2925
|
className: x("placeholder-(--base-a9)", "selection:bg-(--accent-a5)", "outline-none", t),
|
|
@@ -2932,7 +2928,7 @@ const Ja = u((n) => {
|
|
|
2932
2928
|
"data-disabled": Q(o),
|
|
2933
2929
|
...l({
|
|
2934
2930
|
...r,
|
|
2935
|
-
tabIndex: d ===
|
|
2931
|
+
tabIndex: d === c ? 0 : -1,
|
|
2936
2932
|
onChange: p
|
|
2937
2933
|
})
|
|
2938
2934
|
}
|
|
@@ -2941,29 +2937,29 @@ const Ja = u((n) => {
|
|
|
2941
2937
|
Ja.displayName = "MenuInputField";
|
|
2942
2938
|
const Za = u((n) => {
|
|
2943
2939
|
const { ref: a, className: t, ...e } = n, { size: s } = b(J);
|
|
2944
|
-
return /* @__PURE__ */
|
|
2940
|
+
return /* @__PURE__ */ i("div", { className: x(mr({ size: s }), t), ref: a, ...e });
|
|
2945
2941
|
});
|
|
2946
2942
|
Za.displayName = "MenuInputRoot";
|
|
2947
2943
|
const en = u((n) => {
|
|
2948
2944
|
const { ref: a, className: t, ...e } = n;
|
|
2949
|
-
return /* @__PURE__ */
|
|
2945
|
+
return /* @__PURE__ */ i("div", { className: x("flex", "items-center", "text-(--base-a11)", t), ref: a, ...e });
|
|
2950
2946
|
});
|
|
2951
2947
|
en.displayName = "MenuInputSlot";
|
|
2952
2948
|
const tn = u((n) => {
|
|
2953
2949
|
const { ref: a, className: t, ...e } = n, { size: s } = b(J);
|
|
2954
|
-
return /* @__PURE__ */
|
|
2950
|
+
return /* @__PURE__ */ i("div", { ref: a, className: x(lr({ size: s }), t), ...e });
|
|
2955
2951
|
});
|
|
2956
2952
|
tn.displayName = "MenuLabel";
|
|
2957
2953
|
const pr = F(function(a) {
|
|
2958
|
-
const { ref: t, children: e, defaultValues: s, values: o, onValuesChange: r, ...
|
|
2959
|
-
return /* @__PURE__ */
|
|
2954
|
+
const { ref: t, children: e, defaultValues: s, values: o, onValuesChange: r, ...c } = a;
|
|
2955
|
+
return /* @__PURE__ */ i(He, { ref: t, ...c, children: /* @__PURE__ */ i(De, { defaultValues: s, values: o, onValuesChange: r, children: e }) });
|
|
2960
2956
|
}), xr = F(function(n) {
|
|
2961
|
-
const { ref: a, onSelect: t, children: e, closeOnSelect: s = !1, value: o, ...r } = n, { selected:
|
|
2957
|
+
const { ref: a, onSelect: t, children: e, closeOnSelect: s = !1, value: o, ...r } = n, { selected: c, selectValue: l, registerValue: d } = b(Z);
|
|
2962
2958
|
ue(() => d(o), [d, o]);
|
|
2963
|
-
const m =
|
|
2959
|
+
const m = c(o), g = v(() => {
|
|
2964
2960
|
t == null || t(), l(o);
|
|
2965
2961
|
}, [t, l, o]), p = w(() => typeof e == "function" ? ({ active: f }) => e({ selected: m, active: f }) : e, [e, m]);
|
|
2966
|
-
return /* @__PURE__ */
|
|
2962
|
+
return /* @__PURE__ */ i(xe.Provider, { value: m, children: /* @__PURE__ */ i(
|
|
2967
2963
|
se,
|
|
2968
2964
|
{
|
|
2969
2965
|
ref: a,
|
|
@@ -2981,16 +2977,16 @@ const pr = F(function(a) {
|
|
|
2981
2977
|
});
|
|
2982
2978
|
an.displayName = "PageContent";
|
|
2983
2979
|
const nn = u((n) => {
|
|
2984
|
-
const { children: a, defaultPage: t, page: e, onPageChange: s } = n, [o, r] = X(t ?? "", e, s),
|
|
2985
|
-
return /* @__PURE__ */
|
|
2980
|
+
const { children: a, defaultPage: t, page: e, onPageChange: s } = n, [o, r] = X(t ?? "", e, s), c = w(() => ({ activePage: o, setActivePage: r }), [o, r]);
|
|
2981
|
+
return /* @__PURE__ */ i(vt.Provider, { value: c, children: a });
|
|
2986
2982
|
});
|
|
2987
2983
|
nn.displayName = "MenuPages";
|
|
2988
2984
|
const sn = u((n) => {
|
|
2989
|
-
const { ref: a, onSelect: t, page: e, ...s } = n, { refs: o, setActiveIndex: r } = b(J), { setActivePage:
|
|
2985
|
+
const { ref: a, onSelect: t, page: e, ...s } = n, { refs: o, setActiveIndex: r } = b(J), { setActivePage: c } = b(vt), l = v(() => {
|
|
2990
2986
|
var d;
|
|
2991
|
-
t == null || t(),
|
|
2992
|
-
}, [t, e, o.floating, r,
|
|
2993
|
-
return /* @__PURE__ */
|
|
2987
|
+
t == null || t(), c(e), (d = o.floating.current) == null || d.focus(), r(null);
|
|
2988
|
+
}, [t, e, o.floating, r, c]);
|
|
2989
|
+
return /* @__PURE__ */ i(se, { ref: a, onSelect: l, closeOnSelect: !1, ...s });
|
|
2994
2990
|
});
|
|
2995
2991
|
sn.displayName = "MenuPageTrigger";
|
|
2996
2992
|
const Me = 20, Y = 8, on = 250, fr = 5, rn = u((n) => {
|
|
@@ -3002,10 +2998,10 @@ const Me = 20, Y = 8, on = 250, fr = 5, rn = u((n) => {
|
|
|
3002
2998
|
loop: o = !1,
|
|
3003
2999
|
modal: r = !1,
|
|
3004
3000
|
// open state related props
|
|
3005
|
-
open:
|
|
3001
|
+
open: c,
|
|
3006
3002
|
onOpenChange: l,
|
|
3007
3003
|
defaultOpen: d
|
|
3008
|
-
} = n, [m, g] = X(d ?? !1,
|
|
3004
|
+
} = n, [m, g] = X(d ?? !1, c, l), [p, f] = E(null), [C, S] = E(null), z = U([]), N = Lt(), { refs: P, floatingStyles: L, context: y, middlewareData: V } = At({
|
|
3009
3005
|
nodeId: N,
|
|
3010
3006
|
strategy: "fixed",
|
|
3011
3007
|
// TODO: probably some way with template string types to not need the "as Placement"
|
|
@@ -3083,12 +3079,12 @@ const Me = 20, Y = 8, on = 250, fr = 5, rn = u((n) => {
|
|
|
3083
3079
|
S
|
|
3084
3080
|
]
|
|
3085
3081
|
);
|
|
3086
|
-
return /* @__PURE__ */
|
|
3082
|
+
return /* @__PURE__ */ i(ao, { children: /* @__PURE__ */ i(ie.Provider, { value: D, children: a }) });
|
|
3087
3083
|
});
|
|
3088
3084
|
rn.displayName = "Root";
|
|
3089
3085
|
const cn = u((n) => {
|
|
3090
3086
|
const { ref: a, className: t, ...e } = n;
|
|
3091
|
-
return /* @__PURE__ */
|
|
3087
|
+
return /* @__PURE__ */ i(
|
|
3092
3088
|
"div",
|
|
3093
3089
|
{
|
|
3094
3090
|
ref: a,
|
|
@@ -3102,10 +3098,10 @@ const cn = u((n) => {
|
|
|
3102
3098
|
});
|
|
3103
3099
|
cn.displayName = "MenuScroll";
|
|
3104
3100
|
const hr = F((n) => {
|
|
3105
|
-
const { ref: a, children: t, onSelect: e, closeOnSelect: s = !1, ...o } = n, { allSelected: r, someSelected:
|
|
3101
|
+
const { ref: a, children: t, onSelect: e, closeOnSelect: s = !1, ...o } = n, { allSelected: r, someSelected: c, toggleSelectAll: l } = b(Z), d = r ? !0 : c ? "indeterminate" : !1, m = v(() => {
|
|
3106
3102
|
e == null || e(), l();
|
|
3107
3103
|
}, [e, l]), g = w(() => typeof t == "function" ? ({ active: p }) => t({ selected: d, active: p }) : t, [t, d]);
|
|
3108
|
-
return /* @__PURE__ */
|
|
3104
|
+
return /* @__PURE__ */ i(Se, { value: d, children: /* @__PURE__ */ i(
|
|
3109
3105
|
se,
|
|
3110
3106
|
{
|
|
3111
3107
|
onSelect: m,
|
|
@@ -3118,25 +3114,25 @@ const hr = F((n) => {
|
|
|
3118
3114
|
) });
|
|
3119
3115
|
}), ln = u((n) => {
|
|
3120
3116
|
const { ref: a, children: t, ...e } = n;
|
|
3121
|
-
return /* @__PURE__ */
|
|
3117
|
+
return /* @__PURE__ */ i(_e, { ref: a, ...e, children: t });
|
|
3122
3118
|
});
|
|
3123
3119
|
ln.displayName = "MenuSelectedIndicator";
|
|
3124
3120
|
const vr = F(function(a) {
|
|
3125
|
-
const { ref: t, children: e, required: s, defaultValue: o, value: r, onValueChange:
|
|
3126
|
-
return /* @__PURE__ */
|
|
3121
|
+
const { ref: t, children: e, required: s, defaultValue: o, value: r, onValueChange: c, ...l } = a;
|
|
3122
|
+
return /* @__PURE__ */ i(He, { ref: t, ...l, children: s ? /* @__PURE__ */ i(ot, { defaultValue: o, value: r, onValueChange: c, children: e }) : /* @__PURE__ */ i(
|
|
3127
3123
|
rt,
|
|
3128
3124
|
{
|
|
3129
3125
|
defaultValue: o,
|
|
3130
3126
|
value: r,
|
|
3131
|
-
onValueChange:
|
|
3127
|
+
onValueChange: c,
|
|
3132
3128
|
children: e
|
|
3133
3129
|
}
|
|
3134
3130
|
) });
|
|
3135
3131
|
}), br = F(function(n) {
|
|
3136
|
-
const { ref: a, value: t, onSelect: e, children: s, closeOnSelect: o = !0, ...r } = n, { selected:
|
|
3132
|
+
const { ref: a, value: t, onSelect: e, children: s, closeOnSelect: o = !0, ...r } = n, { selected: c, selectValue: l } = b(Ne), d = c(t), m = v(() => {
|
|
3137
3133
|
e == null || e(), l(t);
|
|
3138
3134
|
}, [e, l, t]), g = w(() => typeof s == "function" ? ({ active: p }) => s({ selected: d, active: p }) : s, [s, d]);
|
|
3139
|
-
return /* @__PURE__ */
|
|
3135
|
+
return /* @__PURE__ */ i(xe.Provider, { value: d, children: /* @__PURE__ */ i(
|
|
3140
3136
|
se,
|
|
3141
3137
|
{
|
|
3142
3138
|
ref: a,
|
|
@@ -3150,7 +3146,7 @@ const vr = F(function(a) {
|
|
|
3150
3146
|
) });
|
|
3151
3147
|
}), dn = u((n) => {
|
|
3152
3148
|
const { ref: a, className: t, ...e } = n, { size: s } = b(J);
|
|
3153
|
-
return /* @__PURE__ */
|
|
3149
|
+
return /* @__PURE__ */ i(Ze.Root, { className: x(dr({ size: s }), t), ref: a, ...e });
|
|
3154
3150
|
});
|
|
3155
3151
|
dn.displayName = "MenuSeparator";
|
|
3156
3152
|
const Cr = { mainAxis: Y + 1, crossAxis: 0 }, yr = {
|
|
@@ -3166,7 +3162,7 @@ const Cr = { mainAxis: Y + 1, crossAxis: 0 }, yr = {
|
|
|
3166
3162
|
align: s = "start",
|
|
3167
3163
|
closeRoot: o = !1,
|
|
3168
3164
|
loop: r = !1,
|
|
3169
|
-
modal:
|
|
3165
|
+
modal: c = !1,
|
|
3170
3166
|
// open state related props
|
|
3171
3167
|
open: l,
|
|
3172
3168
|
onOpenChange: d,
|
|
@@ -3220,7 +3216,7 @@ const Cr = { mainAxis: Y + 1, crossAxis: 0 }, yr = {
|
|
|
3220
3216
|
P,
|
|
3221
3217
|
L
|
|
3222
3218
|
]);
|
|
3223
|
-
return /* @__PURE__ */
|
|
3219
|
+
return /* @__PURE__ */ i(
|
|
3224
3220
|
Fe.Provider,
|
|
3225
3221
|
{
|
|
3226
3222
|
value: {
|
|
@@ -3239,7 +3235,7 @@ const Cr = { mainAxis: Y + 1, crossAxis: 0 }, yr = {
|
|
|
3239
3235
|
disabled: t,
|
|
3240
3236
|
side: e,
|
|
3241
3237
|
closeRoot: o,
|
|
3242
|
-
modal:
|
|
3238
|
+
modal: c
|
|
3243
3239
|
},
|
|
3244
3240
|
children: a
|
|
3245
3241
|
}
|
|
@@ -3248,7 +3244,7 @@ const Cr = { mainAxis: Y + 1, crossAxis: 0 }, yr = {
|
|
|
3248
3244
|
un.displayName = "SubMenu";
|
|
3249
3245
|
const mn = u((n) => {
|
|
3250
3246
|
var O;
|
|
3251
|
-
const { ref: a, children: t, ...e } = n, { middlewareData: s } = b(
|
|
3247
|
+
const { ref: a, children: t, ...e } = n, { middlewareData: s } = b(ie), { accentColor: o, radius: r, variant: c, size: l } = b(J), {
|
|
3252
3248
|
open: d,
|
|
3253
3249
|
nodeId: m,
|
|
3254
3250
|
refs: g,
|
|
@@ -3268,7 +3264,7 @@ const mn = u((n) => {
|
|
|
3268
3264
|
visibility: (_ = s.hide) != null && _.referenceHidden ? "hidden" : "visible"
|
|
3269
3265
|
};
|
|
3270
3266
|
}, [P, (O = s.hide) == null ? void 0 : O.referenceHidden]);
|
|
3271
|
-
return /* @__PURE__ */
|
|
3267
|
+
return /* @__PURE__ */ i(Pt, { id: m, children: d && /* @__PURE__ */ i(Mt, { children: /* @__PURE__ */ i(Ot, { context: p, initialFocus: V, children: /* @__PURE__ */ i(Vt, { elementsRef: N, children: /* @__PURE__ */ i(
|
|
3272
3268
|
J.Provider,
|
|
3273
3269
|
{
|
|
3274
3270
|
value: {
|
|
@@ -3282,16 +3278,16 @@ const mn = u((n) => {
|
|
|
3282
3278
|
size: l,
|
|
3283
3279
|
radius: r,
|
|
3284
3280
|
accentColor: o,
|
|
3285
|
-
variant:
|
|
3281
|
+
variant: c
|
|
3286
3282
|
},
|
|
3287
|
-
children: /* @__PURE__ */
|
|
3283
|
+
children: /* @__PURE__ */ i(
|
|
3288
3284
|
"div",
|
|
3289
3285
|
{
|
|
3290
3286
|
className: "outline-none",
|
|
3291
3287
|
ref: A,
|
|
3292
3288
|
style: G,
|
|
3293
3289
|
...f(),
|
|
3294
|
-
children: /* @__PURE__ */
|
|
3290
|
+
children: /* @__PURE__ */ i(
|
|
3295
3291
|
"ul",
|
|
3296
3292
|
{
|
|
3297
3293
|
className: x(
|
|
@@ -3317,15 +3313,15 @@ const mn = u((n) => {
|
|
|
3317
3313
|
});
|
|
3318
3314
|
mn.displayName = "MenuSubContent";
|
|
3319
3315
|
const gn = u((n) => {
|
|
3320
|
-
const { ref: a, children: t, ...e } = n, { refs: s, getReferenceProps: o, open: r, disabled:
|
|
3321
|
-
return /* @__PURE__ */
|
|
3316
|
+
const { ref: a, children: t, ...e } = n, { refs: s, getReferenceProps: o, open: r, disabled: c } = b(Fe), l = ge([a, s.setReference]);
|
|
3317
|
+
return /* @__PURE__ */ i(
|
|
3322
3318
|
se,
|
|
3323
3319
|
{
|
|
3324
3320
|
ref: l,
|
|
3325
3321
|
closeOnSelect: !1,
|
|
3326
3322
|
"aria-haspopup": "menu",
|
|
3327
3323
|
"data-state": pe(r),
|
|
3328
|
-
disabled:
|
|
3324
|
+
disabled: c,
|
|
3329
3325
|
...o(e),
|
|
3330
3326
|
children: t
|
|
3331
3327
|
}
|
|
@@ -3333,7 +3329,7 @@ const gn = u((n) => {
|
|
|
3333
3329
|
});
|
|
3334
3330
|
gn.displayName = "MenuSubTrigger";
|
|
3335
3331
|
const pn = u((n) => {
|
|
3336
|
-
const { virtualElement: a, disabled: t } = n, { refs: e, setTriggerType: s, setOpen: o } = b(
|
|
3332
|
+
const { virtualElement: a, disabled: t } = n, { refs: e, setTriggerType: s, setOpen: o } = b(ie);
|
|
3337
3333
|
return B(() => {
|
|
3338
3334
|
s("virtual");
|
|
3339
3335
|
}, [s]), B(() => {
|
|
@@ -3341,7 +3337,7 @@ const pn = u((n) => {
|
|
|
3341
3337
|
}, [t, e, o, a]), null;
|
|
3342
3338
|
});
|
|
3343
3339
|
pn.displayName = "VirtualTrigger";
|
|
3344
|
-
const
|
|
3340
|
+
const Zc = {
|
|
3345
3341
|
Root: rn,
|
|
3346
3342
|
Content: Ya,
|
|
3347
3343
|
// sub
|
|
@@ -3465,7 +3461,7 @@ const Zi = {
|
|
|
3465
3461
|
disabled: s = !1,
|
|
3466
3462
|
onClick: o,
|
|
3467
3463
|
onSelect: r,
|
|
3468
|
-
onPointerEnter:
|
|
3464
|
+
onPointerEnter: c,
|
|
3469
3465
|
onPointerLeave: l,
|
|
3470
3466
|
onPointerMove: d,
|
|
3471
3467
|
...m
|
|
@@ -3481,9 +3477,9 @@ const Zi = {
|
|
|
3481
3477
|
[L, o]
|
|
3482
3478
|
), V = v(
|
|
3483
3479
|
(O) => {
|
|
3484
|
-
|
|
3480
|
+
c == null || c(O), !O.defaultPrevented && C(p);
|
|
3485
3481
|
},
|
|
3486
|
-
[
|
|
3482
|
+
[c, C, p]
|
|
3487
3483
|
), A = v(
|
|
3488
3484
|
(O) => {
|
|
3489
3485
|
l == null || l(O), !O.defaultPrevented && C(null);
|
|
@@ -3501,7 +3497,7 @@ const Zi = {
|
|
|
3501
3497
|
return O.addEventListener("menu-select", L), () => {
|
|
3502
3498
|
O.removeEventListener("menu-select", L);
|
|
3503
3499
|
};
|
|
3504
|
-
}, [L]), /* @__PURE__ */
|
|
3500
|
+
}, [L]), /* @__PURE__ */ i(
|
|
3505
3501
|
"div",
|
|
3506
3502
|
{
|
|
3507
3503
|
ref: we([a, g]),
|
|
@@ -3523,8 +3519,8 @@ const Zi = {
|
|
|
3523
3519
|
le.displayName = "MenuItem";
|
|
3524
3520
|
const fn = u((n) => {
|
|
3525
3521
|
const { ref: a, checked: t, onCheckedChange: e, onSelect: s, ...o } = n, r = v(
|
|
3526
|
-
(
|
|
3527
|
-
if (s == null || s(
|
|
3522
|
+
(c) => {
|
|
3523
|
+
if (s == null || s(c), !c.defaultPrevented)
|
|
3528
3524
|
switch (t) {
|
|
3529
3525
|
case !0:
|
|
3530
3526
|
e(!1);
|
|
@@ -3539,53 +3535,53 @@ const fn = u((n) => {
|
|
|
3539
3535
|
},
|
|
3540
3536
|
[t, e, s]
|
|
3541
3537
|
);
|
|
3542
|
-
return /* @__PURE__ */
|
|
3538
|
+
return /* @__PURE__ */ i(Se.Provider, { value: t, children: /* @__PURE__ */ i(le, { ref: a, onSelect: r, ...o }) });
|
|
3543
3539
|
});
|
|
3544
3540
|
fn.displayName = "MenuCheckboxItem";
|
|
3545
3541
|
const hn = u((n) => {
|
|
3546
3542
|
const { ref: a, children: t, ...e } = n;
|
|
3547
|
-
return /* @__PURE__ */
|
|
3543
|
+
return /* @__PURE__ */ i(Ge, { ref: a, ...e, children: t });
|
|
3548
3544
|
});
|
|
3549
3545
|
hn.displayName = "MenuCheckboxItemIndicator";
|
|
3550
3546
|
const $e = u((n) => {
|
|
3551
|
-
const { ref: a, children: t, ...e } = n, s = Qe(), [o, r] = E(null),
|
|
3547
|
+
const { ref: a, children: t, ...e } = n, s = Qe(), [o, r] = E(null), c = w(
|
|
3552
3548
|
() => ({
|
|
3553
3549
|
labelId: o,
|
|
3554
3550
|
setLabelId: r
|
|
3555
3551
|
}),
|
|
3556
3552
|
[o]
|
|
3557
3553
|
);
|
|
3558
|
-
return /* @__PURE__ */
|
|
3554
|
+
return /* @__PURE__ */ i("div", { ref: a, role: "group", [Xe]: s, "aria-labelledby": o ?? void 0, ...e, children: /* @__PURE__ */ i(xn, { value: c, children: t }) });
|
|
3559
3555
|
});
|
|
3560
3556
|
$e.displayName = "MenuGroup";
|
|
3561
3557
|
const vn = u((n) => {
|
|
3562
|
-
const { ref: a, children: t, id: e, className: s, ...o } = n, r = bo(e), { size:
|
|
3558
|
+
const { ref: a, children: t, id: e, className: s, ...o } = n, r = bo(e), { size: c } = b(Be), { setLabelId: l } = b(xn);
|
|
3563
3559
|
return B(() => {
|
|
3564
3560
|
l(r);
|
|
3565
|
-
}, [r, l]), /* @__PURE__ */
|
|
3561
|
+
}, [r, l]), /* @__PURE__ */ i("div", { ref: a, id: r, className: x(Ir({ size: c }), s), ...o, children: t });
|
|
3566
3562
|
});
|
|
3567
3563
|
vn.displayName = "MenuGroupLabel";
|
|
3568
3564
|
const kr = F((n) => {
|
|
3569
|
-
const { ref: a, children: t, onSelect: e, ...s } = n, { allSelected: o, someSelected: r, toggleSelectAll:
|
|
3565
|
+
const { ref: a, children: t, onSelect: e, ...s } = n, { allSelected: o, someSelected: r, toggleSelectAll: c } = b(Z), l = o ? !0 : r ? "indeterminate" : !1, d = v(
|
|
3570
3566
|
(m) => {
|
|
3571
|
-
e == null || e(m), !m.defaultPrevented &&
|
|
3567
|
+
e == null || e(m), !m.defaultPrevented && c();
|
|
3572
3568
|
},
|
|
3573
|
-
[e,
|
|
3569
|
+
[e, c]
|
|
3574
3570
|
);
|
|
3575
|
-
return /* @__PURE__ */
|
|
3571
|
+
return /* @__PURE__ */ i(le, { onSelect: d, ref: a, "data-state": Ie(l), ...s, children: /* @__PURE__ */ i(Se, { value: l, children: t }) });
|
|
3576
3572
|
}), Rr = F(function(a) {
|
|
3577
|
-
const { ref: t, children: e, defaultValues: s, values: o, onValuesChange: r, ...
|
|
3578
|
-
return /* @__PURE__ */
|
|
3573
|
+
const { ref: t, children: e, defaultValues: s, values: o, onValuesChange: r, ...c } = a;
|
|
3574
|
+
return /* @__PURE__ */ i($e, { ref: t, ...c, children: /* @__PURE__ */ i(De, { defaultValues: s, values: o, onValuesChange: r, children: e }) });
|
|
3579
3575
|
}), Tr = F(function(n) {
|
|
3580
|
-
const { ref: a, onSelect: t, children: e, value: s, ...o } = n, { selected: r, selectValue:
|
|
3576
|
+
const { ref: a, onSelect: t, children: e, value: s, ...o } = n, { selected: r, selectValue: c, registerValue: l } = b(Z);
|
|
3581
3577
|
ue(() => l(s), [l, s]);
|
|
3582
3578
|
const d = r(s), m = v(
|
|
3583
3579
|
(g) => {
|
|
3584
|
-
t == null || t(g), !g.defaultPrevented &&
|
|
3580
|
+
t == null || t(g), !g.defaultPrevented && c(s);
|
|
3585
3581
|
},
|
|
3586
|
-
[t,
|
|
3582
|
+
[t, c, s]
|
|
3587
3583
|
);
|
|
3588
|
-
return /* @__PURE__ */
|
|
3584
|
+
return /* @__PURE__ */ i(
|
|
3589
3585
|
le,
|
|
3590
3586
|
{
|
|
3591
3587
|
ref: a,
|
|
@@ -3593,33 +3589,33 @@ const kr = F((n) => {
|
|
|
3593
3589
|
onSelect: m,
|
|
3594
3590
|
"data-state": oe(d),
|
|
3595
3591
|
...o,
|
|
3596
|
-
children: /* @__PURE__ */
|
|
3592
|
+
children: /* @__PURE__ */ i(xe, { value: d, children: e })
|
|
3597
3593
|
}
|
|
3598
3594
|
);
|
|
3599
3595
|
}), bn = u((n) => {
|
|
3600
3596
|
const { children: a, ref: t, page: e, ...s } = n, { page: o } = b(bt), r = e === o;
|
|
3601
|
-
return /* @__PURE__ */
|
|
3597
|
+
return /* @__PURE__ */ i("div", { ref: t, "data-active": Ae(r), hidden: !r, ...s, children: r ? a : null });
|
|
3602
3598
|
});
|
|
3603
3599
|
bn.displayName = "MenuPage";
|
|
3604
3600
|
const Cn = u((n) => {
|
|
3605
|
-
const { children: a, defaultPage: t = "", page: e, onPageChange: s } = n, [o, r] = X(t, e, s),
|
|
3601
|
+
const { children: a, defaultPage: t = "", page: e, onPageChange: s } = n, [o, r] = X(t, e, s), c = w(
|
|
3606
3602
|
() => ({
|
|
3607
3603
|
page: o,
|
|
3608
3604
|
setPage: r
|
|
3609
3605
|
}),
|
|
3610
3606
|
[o, r]
|
|
3611
3607
|
);
|
|
3612
|
-
return /* @__PURE__ */
|
|
3608
|
+
return /* @__PURE__ */ i(bt, { value: c, children: a });
|
|
3613
3609
|
});
|
|
3614
3610
|
Cn.displayName = "MenuPages";
|
|
3615
3611
|
const yn = u((n) => {
|
|
3616
|
-
const { ref: a, children: t, page: e, onSelect: s, ...o } = n, { page: r, setPage:
|
|
3612
|
+
const { ref: a, children: t, page: e, onSelect: s, ...o } = n, { page: r, setPage: c } = b(bt), l = e === r, d = v(
|
|
3617
3613
|
(m) => {
|
|
3618
|
-
s == null || s(m), !m.defaultPrevented &&
|
|
3614
|
+
s == null || s(m), !m.defaultPrevented && c(e);
|
|
3619
3615
|
},
|
|
3620
|
-
[s, e,
|
|
3616
|
+
[s, e, c]
|
|
3621
3617
|
);
|
|
3622
|
-
return /* @__PURE__ */
|
|
3618
|
+
return /* @__PURE__ */ i(le, { ref: a, onSelect: d, "data-state": Ae(l), ...o, children: /* @__PURE__ */ i(xe, { value: l, children: t }) });
|
|
3623
3619
|
});
|
|
3624
3620
|
yn.displayName = "CommandMenuPageTriggerItem";
|
|
3625
3621
|
const kt = (n, a, t, e) => {
|
|
@@ -3637,7 +3633,7 @@ const kt = (n, a, t, e) => {
|
|
|
3637
3633
|
onKeyDown: o,
|
|
3638
3634
|
loop: r = !1,
|
|
3639
3635
|
// style props
|
|
3640
|
-
radius:
|
|
3636
|
+
radius: c = a.radius,
|
|
3641
3637
|
accentColor: l = "base",
|
|
3642
3638
|
size: d = "md",
|
|
3643
3639
|
variant: m = "soft",
|
|
@@ -3738,52 +3734,52 @@ const kt = (n, a, t, e) => {
|
|
|
3738
3734
|
setActiveItemId: C,
|
|
3739
3735
|
// style props
|
|
3740
3736
|
accentColor: l,
|
|
3741
|
-
radius:
|
|
3737
|
+
radius: c,
|
|
3742
3738
|
variant: m,
|
|
3743
3739
|
size: d
|
|
3744
3740
|
}),
|
|
3745
|
-
[l, f,
|
|
3741
|
+
[l, f, c, d, m]
|
|
3746
3742
|
);
|
|
3747
|
-
return /* @__PURE__ */
|
|
3743
|
+
return /* @__PURE__ */ i(
|
|
3748
3744
|
"div",
|
|
3749
3745
|
{
|
|
3750
3746
|
ref: we([t, p]),
|
|
3751
|
-
className: x(Nr({ size: d }), k({ radius:
|
|
3747
|
+
className: x(Nr({ size: d }), k({ radius: c, maxLarge: !0 }), s),
|
|
3752
3748
|
role: "menu",
|
|
3753
3749
|
onKeyDown: _,
|
|
3754
3750
|
tabIndex: 0,
|
|
3755
3751
|
"aria-activedescendant": f ?? void 0,
|
|
3756
3752
|
"data-accent-color": l,
|
|
3757
3753
|
...g,
|
|
3758
|
-
children: /* @__PURE__ */
|
|
3754
|
+
children: /* @__PURE__ */ i(Be, { value: ee, children: e })
|
|
3759
3755
|
}
|
|
3760
3756
|
);
|
|
3761
3757
|
});
|
|
3762
3758
|
zn.displayName = "MenuRoot";
|
|
3763
3759
|
const Nn = u((n) => {
|
|
3764
3760
|
const { ref: a, children: t, ...e } = n;
|
|
3765
|
-
return /* @__PURE__ */
|
|
3761
|
+
return /* @__PURE__ */ i(_e, { ref: a, ...e, children: t });
|
|
3766
3762
|
});
|
|
3767
3763
|
Nn.displayName = "MenuCheckboxItemIndicator";
|
|
3768
3764
|
const Pr = F(function(a) {
|
|
3769
|
-
const { ref: t, children: e, required: s, defaultValue: o, value: r, onValueChange:
|
|
3770
|
-
return /* @__PURE__ */
|
|
3765
|
+
const { ref: t, children: e, required: s, defaultValue: o, value: r, onValueChange: c, ...l } = a;
|
|
3766
|
+
return /* @__PURE__ */ i($e, { ref: t, ...l, children: s ? /* @__PURE__ */ i(ot, { defaultValue: o, value: r, onValueChange: c, children: e }) : /* @__PURE__ */ i(
|
|
3771
3767
|
rt,
|
|
3772
3768
|
{
|
|
3773
3769
|
defaultValue: o,
|
|
3774
3770
|
value: r,
|
|
3775
|
-
onValueChange:
|
|
3771
|
+
onValueChange: c,
|
|
3776
3772
|
children: e
|
|
3777
3773
|
}
|
|
3778
3774
|
) });
|
|
3779
3775
|
}), Mr = F(function(n) {
|
|
3780
|
-
const { ref: a, value: t, onSelect: e, children: s, ...o } = n, { selected: r, selectValue:
|
|
3776
|
+
const { ref: a, value: t, onSelect: e, children: s, ...o } = n, { selected: r, selectValue: c } = b(Ne), l = r(t), d = v(
|
|
3781
3777
|
(m) => {
|
|
3782
|
-
e == null || e(m), !m.defaultPrevented &&
|
|
3778
|
+
e == null || e(m), !m.defaultPrevented && c(t);
|
|
3783
3779
|
},
|
|
3784
|
-
[e,
|
|
3780
|
+
[e, c, t]
|
|
3785
3781
|
);
|
|
3786
|
-
return /* @__PURE__ */
|
|
3782
|
+
return /* @__PURE__ */ i(
|
|
3787
3783
|
le,
|
|
3788
3784
|
{
|
|
3789
3785
|
ref: a,
|
|
@@ -3791,15 +3787,15 @@ const Pr = F(function(a) {
|
|
|
3791
3787
|
onSelect: d,
|
|
3792
3788
|
"data-state": oe(l),
|
|
3793
3789
|
...o,
|
|
3794
|
-
children: /* @__PURE__ */
|
|
3790
|
+
children: /* @__PURE__ */ i(xe, { value: l, children: s })
|
|
3795
3791
|
}
|
|
3796
3792
|
);
|
|
3797
3793
|
}), wn = u((n) => {
|
|
3798
3794
|
const { ref: a, className: t, ...e } = n, { size: s } = b(Be);
|
|
3799
|
-
return /* @__PURE__ */
|
|
3795
|
+
return /* @__PURE__ */ i(Ze.Root, { className: x(Sr({ size: s }), t), ref: a, ...e });
|
|
3800
3796
|
});
|
|
3801
3797
|
wn.displayName = "MenuSeparator";
|
|
3802
|
-
const
|
|
3798
|
+
const ei = {
|
|
3803
3799
|
Root: zn,
|
|
3804
3800
|
Group: $e,
|
|
3805
3801
|
GroupLabel: vn,
|
|
@@ -3816,7 +3812,7 @@ const ec = {
|
|
|
3816
3812
|
Pages: Cn,
|
|
3817
3813
|
Page: bn,
|
|
3818
3814
|
PageTriggerItem: yn
|
|
3819
|
-
}, In = u((n) => /* @__PURE__ */
|
|
3815
|
+
}, In = u((n) => /* @__PURE__ */ i(et.HiddenInput, { ...n }));
|
|
3820
3816
|
In.displayName = "OneTimePasswordFieldHiddenInput";
|
|
3821
3817
|
const Sn = T({}), Or = h(
|
|
3822
3818
|
[
|
|
@@ -3841,16 +3837,14 @@ const Sn = T({}), Or = h(
|
|
|
3841
3837
|
"text-(--accent-a12)",
|
|
3842
3838
|
"placeholder-(--accent-12)",
|
|
3843
3839
|
"placeholder:opacity-60",
|
|
3844
|
-
"selection:bg-(--accent-a5)"
|
|
3845
|
-
"shadow-sm"
|
|
3840
|
+
"selection:bg-(--accent-a5)"
|
|
3846
3841
|
],
|
|
3847
3842
|
soft: [
|
|
3848
3843
|
"bg-(--accent-a3)",
|
|
3849
3844
|
"text-(--accent-12)",
|
|
3850
3845
|
"placeholder-(--accent-12)",
|
|
3851
3846
|
"placeholder:opacity-60",
|
|
3852
|
-
"selection:bg-(--accent-a5)"
|
|
3853
|
-
"shadow-sm"
|
|
3847
|
+
"selection:bg-(--accent-a5)"
|
|
3854
3848
|
],
|
|
3855
3849
|
outline: [
|
|
3856
3850
|
"inset-ring",
|
|
@@ -3858,8 +3852,7 @@ const Sn = T({}), Or = h(
|
|
|
3858
3852
|
"bg-transparent",
|
|
3859
3853
|
"text-(--base-12)",
|
|
3860
3854
|
"placeholder-(--base-a9)",
|
|
3861
|
-
"selection:bg-(--accent-a5)"
|
|
3862
|
-
"shadow-sm"
|
|
3855
|
+
"selection:bg-(--accent-a5)"
|
|
3863
3856
|
],
|
|
3864
3857
|
ghost: ["bg-transparent", "text-(--base-12)", 'placeholder-(--base-a9)", "selection:bg-(--accent-a5)']
|
|
3865
3858
|
},
|
|
@@ -3877,8 +3870,8 @@ const Sn = T({}), Or = h(
|
|
|
3877
3870
|
}
|
|
3878
3871
|
}
|
|
3879
3872
|
), kn = u((n) => {
|
|
3880
|
-
const { ref: a, className: t, ...e } = n, { variant: s, size: o, radius: r, accentColor:
|
|
3881
|
-
return /* @__PURE__ */
|
|
3873
|
+
const { ref: a, className: t, ...e } = n, { variant: s, size: o, radius: r, accentColor: c } = b(Sn);
|
|
3874
|
+
return /* @__PURE__ */ i(
|
|
3882
3875
|
et.Input,
|
|
3883
3876
|
{
|
|
3884
3877
|
ref: a,
|
|
@@ -3887,7 +3880,7 @@ const Sn = T({}), Or = h(
|
|
|
3887
3880
|
k({ radius: r, maxLarge: !0 }),
|
|
3888
3881
|
t
|
|
3889
3882
|
),
|
|
3890
|
-
"data-accent-color":
|
|
3883
|
+
"data-accent-color": c,
|
|
3891
3884
|
...e
|
|
3892
3885
|
}
|
|
3893
3886
|
);
|
|
@@ -3900,19 +3893,19 @@ const Rn = u((n) => {
|
|
|
3900
3893
|
variant: s = "surface",
|
|
3901
3894
|
size: o = "md",
|
|
3902
3895
|
radius: r = a.radius,
|
|
3903
|
-
accentColor:
|
|
3896
|
+
accentColor: c = a.accentColor,
|
|
3904
3897
|
...l
|
|
3905
|
-
} = n, d = w(() => ({ variant: s, size: o, radius: r, accentColor:
|
|
3906
|
-
return /* @__PURE__ */
|
|
3898
|
+
} = n, d = w(() => ({ variant: s, size: o, radius: r, accentColor: c }), [c, r, o, s]);
|
|
3899
|
+
return /* @__PURE__ */ i(et.Root, { ref: t, "data-accent-color": c, ...l, children: /* @__PURE__ */ i(Sn, { value: d, children: e }) });
|
|
3907
3900
|
});
|
|
3908
3901
|
Rn.displayName = "OneTimePasswordFieldRoot";
|
|
3909
|
-
const
|
|
3902
|
+
const ti = {
|
|
3910
3903
|
HiddenInput: In,
|
|
3911
3904
|
Input: kn,
|
|
3912
3905
|
Root: Rn
|
|
3913
3906
|
}, Tn = u((n) => {
|
|
3914
3907
|
const { ref: a, ...t } = n;
|
|
3915
|
-
return /* @__PURE__ */
|
|
3908
|
+
return /* @__PURE__ */ i(H.Close, { ref: a, ...t });
|
|
3916
3909
|
});
|
|
3917
3910
|
Tn.displayName = "OverlayClose";
|
|
3918
3911
|
const Vr = h([
|
|
@@ -3927,7 +3920,7 @@ const Vr = h([
|
|
|
3927
3920
|
"data-[state='open']:zoom-in-95"
|
|
3928
3921
|
]), Pn = u((n) => {
|
|
3929
3922
|
const { ref: a, container: t, className: e, ...s } = n;
|
|
3930
|
-
return /* @__PURE__ */
|
|
3923
|
+
return /* @__PURE__ */ i(H.Portal, { container: t, children: /* @__PURE__ */ i(
|
|
3931
3924
|
H.Content,
|
|
3932
3925
|
{
|
|
3933
3926
|
className: x(Vr(), e),
|
|
@@ -3940,22 +3933,22 @@ const Vr = h([
|
|
|
3940
3933
|
Pn.displayName = "OverlayContent";
|
|
3941
3934
|
const Mn = u((n) => {
|
|
3942
3935
|
const { ref: a, ...t } = n;
|
|
3943
|
-
return /* @__PURE__ */
|
|
3936
|
+
return /* @__PURE__ */ i(H.Description, { ref: a, ...t });
|
|
3944
3937
|
});
|
|
3945
3938
|
Mn.displayName = "OverlayDescription";
|
|
3946
|
-
const On = u((n) => /* @__PURE__ */
|
|
3939
|
+
const On = u((n) => /* @__PURE__ */ i(H.Root, { ...n }));
|
|
3947
3940
|
On.displayName = "OverlayRoot";
|
|
3948
3941
|
const Vn = u((n) => {
|
|
3949
3942
|
const { ref: a, ...t } = n;
|
|
3950
|
-
return /* @__PURE__ */
|
|
3943
|
+
return /* @__PURE__ */ i(H.Title, { ref: a, ...t });
|
|
3951
3944
|
});
|
|
3952
3945
|
Vn.displayName = "OverlayTitle";
|
|
3953
3946
|
const Ln = u((n) => {
|
|
3954
3947
|
const { ref: a, ...t } = n;
|
|
3955
|
-
return /* @__PURE__ */
|
|
3948
|
+
return /* @__PURE__ */ i(H.Trigger, { ref: a, ...t });
|
|
3956
3949
|
});
|
|
3957
3950
|
Ln.displayName = "OverlayTrigger";
|
|
3958
|
-
const
|
|
3951
|
+
const ai = {
|
|
3959
3952
|
Root: On,
|
|
3960
3953
|
Content: Pn,
|
|
3961
3954
|
Title: Vn,
|
|
@@ -3963,28 +3956,28 @@ const ac = {
|
|
|
3963
3956
|
Trigger: Ln,
|
|
3964
3957
|
Close: Tn
|
|
3965
3958
|
}, We = { placeSelf: "center" }, An = u((n) => {
|
|
3966
|
-
const { absoluteCentering: a, message: t = "Something went wrong", onRetry: e } = n, { resetBoundary: s } = oo(), o = "20px", r = a ? { position: "absolute", top: "50%", transform: "translateY(-50%)" } : void 0,
|
|
3959
|
+
const { absoluteCentering: a, message: t = "Something went wrong", onRetry: e } = n, { resetBoundary: s } = oo(), o = "20px", r = a ? { position: "absolute", top: "50%", transform: "translateY(-50%)" } : void 0, c = v(() => {
|
|
3967
3960
|
s(), e();
|
|
3968
3961
|
}, [e, s]);
|
|
3969
3962
|
return /* @__PURE__ */ W("div", { className: "flex w-full gap-2", style: r, children: [
|
|
3970
|
-
/* @__PURE__ */
|
|
3971
|
-
/* @__PURE__ */
|
|
3972
|
-
/* @__PURE__ */
|
|
3973
|
-
/* @__PURE__ */
|
|
3974
|
-
/* @__PURE__ */
|
|
3963
|
+
/* @__PURE__ */ i("div", { style: { flexGrow: 1 } }),
|
|
3964
|
+
/* @__PURE__ */ i(q, { icon: Bs, size: o, style: We }),
|
|
3965
|
+
/* @__PURE__ */ i("span", { style: { lineHeight: o, ...We }, children: t }),
|
|
3966
|
+
/* @__PURE__ */ i(at, { "aria-label": "Try again", variant: "soft", onClick: c, style: We, children: /* @__PURE__ */ i(q, { icon: $s, size: o }) }),
|
|
3967
|
+
/* @__PURE__ */ i("div", { style: { flexGrow: 1 } })
|
|
3975
3968
|
] });
|
|
3976
3969
|
});
|
|
3977
3970
|
An.displayName = "ErrorFallback";
|
|
3978
3971
|
const Lr = u((n) => {
|
|
3979
|
-
const { absoluteCentering: a, message: t } = n, [e, s] = E(0), o = v((
|
|
3980
|
-
console.error("Error in OvermapErrorBoundary:",
|
|
3972
|
+
const { absoluteCentering: a, message: t } = n, [e, s] = E(0), o = v((c, l) => {
|
|
3973
|
+
console.error("Error in OvermapErrorBoundary:", c, l), s((d) => d + 1);
|
|
3981
3974
|
}, []), r = v(() => {
|
|
3982
|
-
s((
|
|
3975
|
+
s((c) => c + 1);
|
|
3983
3976
|
}, []);
|
|
3984
|
-
return /* @__PURE__ */
|
|
3977
|
+
return /* @__PURE__ */ i(
|
|
3985
3978
|
ro,
|
|
3986
3979
|
{
|
|
3987
|
-
fallback: /* @__PURE__ */
|
|
3980
|
+
fallback: /* @__PURE__ */ i(An, { absoluteCentering: a, message: t, onRetry: r }),
|
|
3988
3981
|
onError: o,
|
|
3989
3982
|
children: n.children
|
|
3990
3983
|
},
|
|
@@ -3994,7 +3987,7 @@ const Lr = u((n) => {
|
|
|
3994
3987
|
Lr.displayName = "OvermapErrorBoundary";
|
|
3995
3988
|
const Dn = u((n) => {
|
|
3996
3989
|
const { ref: a, children: t, className: e, ...s } = n;
|
|
3997
|
-
return /* @__PURE__ */
|
|
3990
|
+
return /* @__PURE__ */ i(Pe.Arrow, { className: x("fill-(--base-6)", e), ref: a, ...s, children: t });
|
|
3998
3991
|
});
|
|
3999
3992
|
Dn.displayName = "PopoverArrow";
|
|
4000
3993
|
const Ar = h(["bg-(--color-background)", "dark:bg-(--base-2)", "ring-1", "ring-(--base-6)"], {
|
|
@@ -4017,17 +4010,17 @@ const Ar = h(["bg-(--color-background)", "dark:bg-(--base-2)", "ring-1", "ring-(
|
|
|
4017
4010
|
className: s,
|
|
4018
4011
|
radius: o = a.radius,
|
|
4019
4012
|
accentColor: r = a.accentColor,
|
|
4020
|
-
size:
|
|
4013
|
+
size: c = "md",
|
|
4021
4014
|
sideOffset: l = 5,
|
|
4022
4015
|
container: d,
|
|
4023
4016
|
side: m,
|
|
4024
4017
|
...g
|
|
4025
4018
|
} = n;
|
|
4026
|
-
return /* @__PURE__ */
|
|
4019
|
+
return /* @__PURE__ */ i(Pe.Portal, { container: d, children: /* @__PURE__ */ i(
|
|
4027
4020
|
Pe.Content,
|
|
4028
4021
|
{
|
|
4029
4022
|
className: x(
|
|
4030
|
-
Ar({ size:
|
|
4023
|
+
Ar({ size: c }),
|
|
4031
4024
|
Ve({ side: m }),
|
|
4032
4025
|
Le({ size: "md" }),
|
|
4033
4026
|
k({ radius: o, maxLarge: !0 }),
|
|
@@ -4044,7 +4037,7 @@ const Ar = h(["bg-(--color-background)", "dark:bg-(--base-2)", "ring-1", "ring-(
|
|
|
4044
4037
|
) });
|
|
4045
4038
|
});
|
|
4046
4039
|
Gn.displayName = "PopoverContent";
|
|
4047
|
-
const
|
|
4040
|
+
const ni = {
|
|
4048
4041
|
...Pe,
|
|
4049
4042
|
Content: Gn,
|
|
4050
4043
|
Arrow: Dn
|
|
@@ -4058,8 +4051,8 @@ const nc = {
|
|
|
4058
4051
|
xl: ["h-3.5"]
|
|
4059
4052
|
},
|
|
4060
4053
|
variant: {
|
|
4061
|
-
surface: ["bg-(--base-a3)", "inset-ring", "inset-ring-(--base-a6)"
|
|
4062
|
-
soft: ["bg-(--base-a4)"
|
|
4054
|
+
surface: ["bg-(--base-a3)", "inset-ring", "inset-ring-(--base-a6)"],
|
|
4055
|
+
soft: ["bg-(--base-a4)"]
|
|
4063
4056
|
}
|
|
4064
4057
|
}
|
|
4065
4058
|
}), Gr = h(
|
|
@@ -4091,7 +4084,7 @@ const nc = {
|
|
|
4091
4084
|
style: s,
|
|
4092
4085
|
radius: o = a.radius,
|
|
4093
4086
|
variant: r = "surface",
|
|
4094
|
-
size:
|
|
4087
|
+
size: c = "md",
|
|
4095
4088
|
accentColor: l = a.accentColor,
|
|
4096
4089
|
...d
|
|
4097
4090
|
} = n, m = w(
|
|
@@ -4102,15 +4095,15 @@ const nc = {
|
|
|
4102
4095
|
}),
|
|
4103
4096
|
[d.max, d.value, s]
|
|
4104
4097
|
);
|
|
4105
|
-
return /* @__PURE__ */
|
|
4098
|
+
return /* @__PURE__ */ i(
|
|
4106
4099
|
wt.Root,
|
|
4107
4100
|
{
|
|
4108
4101
|
ref: t,
|
|
4109
|
-
className: x(Dr({ variant: r, size:
|
|
4102
|
+
className: x(Dr({ variant: r, size: c }), k({ radius: o, maxLarge: !1 }), e),
|
|
4110
4103
|
style: m,
|
|
4111
4104
|
"data-accent-color": l,
|
|
4112
4105
|
...d,
|
|
4113
|
-
children: /* @__PURE__ */
|
|
4106
|
+
children: /* @__PURE__ */ i(wt.ProgressIndicator, { className: Gr({ variant: r, size: c }) })
|
|
4114
4107
|
}
|
|
4115
4108
|
);
|
|
4116
4109
|
});
|
|
@@ -4158,8 +4151,7 @@ const En = T({}), _r = h([], {
|
|
|
4158
4151
|
"data-[state=unchecked]:hover:inset-ring-(--base-a8)",
|
|
4159
4152
|
"data-[state=checked]:outline-2",
|
|
4160
4153
|
"data-[state=checked]:outline-(--accent-indicator)",
|
|
4161
|
-
"data-[state=checked]:-outline-offset-1"
|
|
4162
|
-
"shadow-sm"
|
|
4154
|
+
"data-[state=checked]:-outline-offset-1"
|
|
4163
4155
|
],
|
|
4164
4156
|
outline: [
|
|
4165
4157
|
"bg-transparent",
|
|
@@ -4168,15 +4160,14 @@ const En = T({}), _r = h([], {
|
|
|
4168
4160
|
"data-[state=unchecked]:hover:inset-ring-(--base-a8)",
|
|
4169
4161
|
"data-[state=checked]:outline-2",
|
|
4170
4162
|
"data-[state=checked]:outline-(--accent-indicator)",
|
|
4171
|
-
"data-[state=checked]:-outline-offset-1"
|
|
4172
|
-
"shadow-sm"
|
|
4163
|
+
"data-[state=checked]:-outline-offset-1"
|
|
4173
4164
|
]
|
|
4174
4165
|
}
|
|
4175
4166
|
}
|
|
4176
4167
|
}
|
|
4177
4168
|
), _n = u((n) => {
|
|
4178
4169
|
const { variant: a, size: t, radius: e } = b(En), { className: s, accentColor: o, ...r } = n;
|
|
4179
|
-
return /* @__PURE__ */
|
|
4170
|
+
return /* @__PURE__ */ i(
|
|
4180
4171
|
ae.Item,
|
|
4181
4172
|
{
|
|
4182
4173
|
className: x(Fr({ variant: a, size: t }), k({ radius: e, maxLarge: !0 }), s),
|
|
@@ -4193,7 +4184,7 @@ const Fn = u((n) => {
|
|
|
4193
4184
|
variant: s = "surface",
|
|
4194
4185
|
size: o = "md",
|
|
4195
4186
|
radius: r = a.radius,
|
|
4196
|
-
accentColor:
|
|
4187
|
+
accentColor: c = a.accentColor,
|
|
4197
4188
|
...l
|
|
4198
4189
|
} = n, d = w(
|
|
4199
4190
|
() => ({
|
|
@@ -4203,23 +4194,23 @@ const Fn = u((n) => {
|
|
|
4203
4194
|
}),
|
|
4204
4195
|
[r, o, s]
|
|
4205
4196
|
);
|
|
4206
|
-
return /* @__PURE__ */
|
|
4197
|
+
return /* @__PURE__ */ i(
|
|
4207
4198
|
ae.Root,
|
|
4208
4199
|
{
|
|
4209
4200
|
className: x(_r({ size: o, variant: s }), t),
|
|
4210
|
-
"data-accent-color":
|
|
4201
|
+
"data-accent-color": c,
|
|
4211
4202
|
...l,
|
|
4212
|
-
children: /* @__PURE__ */
|
|
4203
|
+
children: /* @__PURE__ */ i(En, { value: d, children: e })
|
|
4213
4204
|
}
|
|
4214
4205
|
);
|
|
4215
4206
|
});
|
|
4216
4207
|
Fn.displayName = "RadioCardsRoot";
|
|
4217
|
-
const
|
|
4208
|
+
const si = {
|
|
4218
4209
|
Root: Fn,
|
|
4219
4210
|
Item: _n
|
|
4220
4211
|
}, Hn = u((n) => {
|
|
4221
4212
|
const { ref: a, children: t, className: e, ...s } = n;
|
|
4222
|
-
return /* @__PURE__ */
|
|
4213
|
+
return /* @__PURE__ */ i(
|
|
4223
4214
|
ae.Indicator,
|
|
4224
4215
|
{
|
|
4225
4216
|
className: x("inline-flex items-center justify-center", e),
|
|
@@ -4255,10 +4246,9 @@ const Bn = T({}), Hr = h(
|
|
|
4255
4246
|
"inset-ring",
|
|
4256
4247
|
"inset-ring-(--base-a7)",
|
|
4257
4248
|
"data-[state='checked']:inset-ring-(--accent-indicator)",
|
|
4258
|
-
"text-(--accent-contrast)"
|
|
4259
|
-
"shadow-sm"
|
|
4249
|
+
"text-(--accent-contrast)"
|
|
4260
4250
|
],
|
|
4261
|
-
soft: ["bg-(--accent-a3)", "text-(--accent-a11)"
|
|
4251
|
+
soft: ["bg-(--accent-a3)", "text-(--accent-a11)"]
|
|
4262
4252
|
},
|
|
4263
4253
|
size: {
|
|
4264
4254
|
xs: ["size-4", "text-[0.625rem]"],
|
|
@@ -4280,9 +4270,9 @@ const Bn = T({}), Hr = h(
|
|
|
4280
4270
|
className: s,
|
|
4281
4271
|
size: o = a.size,
|
|
4282
4272
|
variant: r = a.variant,
|
|
4283
|
-
...
|
|
4273
|
+
...c
|
|
4284
4274
|
} = n;
|
|
4285
|
-
return /* @__PURE__ */
|
|
4275
|
+
return /* @__PURE__ */ i(ae.Item, { className: x(Hr({ size: o, variant: r }), s), ref: t, ...c, children: e });
|
|
4286
4276
|
});
|
|
4287
4277
|
$n.displayName = "RadioGroupItem";
|
|
4288
4278
|
const jn = u((n) => {
|
|
@@ -4292,29 +4282,29 @@ const jn = u((n) => {
|
|
|
4292
4282
|
accentColor: s = a.accentColor,
|
|
4293
4283
|
variant: o = "surface",
|
|
4294
4284
|
size: r = "md",
|
|
4295
|
-
children:
|
|
4285
|
+
children: c,
|
|
4296
4286
|
...l
|
|
4297
4287
|
} = n, d = w(() => ({ variant: o, size: r }), [o, r]);
|
|
4298
|
-
return /* @__PURE__ */
|
|
4288
|
+
return /* @__PURE__ */ i(ae.Root, { className: x(e), ref: t, "data-accent-color": s, ...l, children: /* @__PURE__ */ i(Bn.Provider, { value: d, children: c }) });
|
|
4299
4289
|
});
|
|
4300
4290
|
jn.displayName = "RadioGroupRoot";
|
|
4301
|
-
const
|
|
4291
|
+
const oi = {
|
|
4302
4292
|
Indicator: Hn,
|
|
4303
4293
|
Item: $n,
|
|
4304
4294
|
Root: jn
|
|
4305
4295
|
}, Ct = T({}), Un = T({}), qn = u((n) => {
|
|
4306
|
-
const { ref: a, children: t, value: e, ...s } = n, { value: o } = b(Ct), r = !!o && e <= o,
|
|
4307
|
-
return /* @__PURE__ */
|
|
4296
|
+
const { ref: a, children: t, value: e, ...s } = n, { value: o } = b(Ct), r = !!o && e <= o, c = w(() => ({ value: e }), [e]);
|
|
4297
|
+
return /* @__PURE__ */ i(ae.Item, { ref: a, value: e.toString(), "data-active": r, ...s, children: /* @__PURE__ */ i(Un, { value: c, children: t }) });
|
|
4308
4298
|
});
|
|
4309
4299
|
qn.displayName = "RatingItem";
|
|
4310
4300
|
const Wn = u((n) => {
|
|
4311
|
-
const { ref: a, children: t, forceMount: e, ...s } = n, { value: o } = b(Ct), { value: r } = b(Un),
|
|
4312
|
-
return /* @__PURE__ */
|
|
4301
|
+
const { ref: a, children: t, forceMount: e, ...s } = n, { value: o } = b(Ct), { value: r } = b(Un), c = !!o && r <= o;
|
|
4302
|
+
return /* @__PURE__ */ i(
|
|
4313
4303
|
ae.Indicator,
|
|
4314
4304
|
{
|
|
4315
4305
|
ref: a,
|
|
4316
|
-
forceMount: e ?? (
|
|
4317
|
-
"data-active":
|
|
4306
|
+
forceMount: e ?? (c || void 0),
|
|
4307
|
+
"data-active": c,
|
|
4318
4308
|
...s,
|
|
4319
4309
|
children: t
|
|
4320
4310
|
}
|
|
@@ -4322,30 +4312,30 @@ const Wn = u((n) => {
|
|
|
4322
4312
|
});
|
|
4323
4313
|
Wn.displayName = "RatingItemIndicator";
|
|
4324
4314
|
const Kn = u((n) => {
|
|
4325
|
-
const { ref: a, children: t, defaultValue: e, value: s, onValueChange: o, ...r } = n, [
|
|
4315
|
+
const { ref: a, children: t, defaultValue: e, value: s, onValueChange: o, ...r } = n, [c, l] = X(e ?? null, s, o), d = v(
|
|
4326
4316
|
(g) => {
|
|
4327
4317
|
l(parseInt(g));
|
|
4328
4318
|
},
|
|
4329
4319
|
[l]
|
|
4330
4320
|
), m = w(
|
|
4331
4321
|
() => ({
|
|
4332
|
-
value:
|
|
4322
|
+
value: c
|
|
4333
4323
|
}),
|
|
4334
|
-
[
|
|
4324
|
+
[c]
|
|
4335
4325
|
);
|
|
4336
|
-
return /* @__PURE__ */
|
|
4326
|
+
return /* @__PURE__ */ i(
|
|
4337
4327
|
ae.Root,
|
|
4338
4328
|
{
|
|
4339
4329
|
ref: a,
|
|
4340
|
-
value:
|
|
4330
|
+
value: c ? c.toString() : null,
|
|
4341
4331
|
onValueChange: d,
|
|
4342
4332
|
...r,
|
|
4343
|
-
children: /* @__PURE__ */
|
|
4333
|
+
children: /* @__PURE__ */ i(Ct, { value: m, children: t })
|
|
4344
4334
|
}
|
|
4345
4335
|
);
|
|
4346
4336
|
});
|
|
4347
4337
|
Kn.displayName = "RatingRoot";
|
|
4348
|
-
const
|
|
4338
|
+
const ri = {
|
|
4349
4339
|
Item: qn,
|
|
4350
4340
|
ItemIndicator: Wn,
|
|
4351
4341
|
Root: Kn
|
|
@@ -4354,9 +4344,9 @@ const rc = {
|
|
|
4354
4344
|
{
|
|
4355
4345
|
variants: {
|
|
4356
4346
|
variant: {
|
|
4357
|
-
soft: ["bg-(--accent-a3)"
|
|
4358
|
-
surface: ["bg-(--accent-surface)", "border", "border-(--accent-a7)"
|
|
4359
|
-
outline: ["bg-transparent", "border", "border-(--accent-a7)"
|
|
4347
|
+
soft: ["bg-(--accent-a3)"],
|
|
4348
|
+
surface: ["bg-(--accent-surface)", "border", "border-(--accent-a7)"],
|
|
4349
|
+
outline: ["bg-transparent", "border", "border-(--accent-a7)"]
|
|
4360
4350
|
},
|
|
4361
4351
|
size: {
|
|
4362
4352
|
xs: ["h-6", "text-xs"],
|
|
@@ -4496,12 +4486,12 @@ const rc = {
|
|
|
4496
4486
|
throw new Error("useSegmentedControl must be used within a SegmentedControlProvider");
|
|
4497
4487
|
return n;
|
|
4498
4488
|
}, Yn = u((n) => {
|
|
4499
|
-
const { ref: a, className: t, ...e } = n, { size: s, radius: o, variant: r, icon:
|
|
4500
|
-
return /* @__PURE__ */
|
|
4489
|
+
const { ref: a, className: t, ...e } = n, { size: s, radius: o, variant: r, icon: c } = jr();
|
|
4490
|
+
return /* @__PURE__ */ i(
|
|
4501
4491
|
Oe.Item,
|
|
4502
4492
|
{
|
|
4503
4493
|
ref: a,
|
|
4504
|
-
className: x($r({ size: s, variant: r, icon:
|
|
4494
|
+
className: x($r({ size: s, variant: r, icon: c, radius: o }), t),
|
|
4505
4495
|
...e
|
|
4506
4496
|
}
|
|
4507
4497
|
);
|
|
@@ -4514,12 +4504,12 @@ const Qn = u((n) => {
|
|
|
4514
4504
|
className: s,
|
|
4515
4505
|
size: o = "md",
|
|
4516
4506
|
variant: r = "surface",
|
|
4517
|
-
icon:
|
|
4507
|
+
icon: c = !1,
|
|
4518
4508
|
radius: l = a.radius,
|
|
4519
4509
|
accentColor: d = a.accentColor,
|
|
4520
4510
|
...m
|
|
4521
4511
|
} = n;
|
|
4522
|
-
return /* @__PURE__ */
|
|
4512
|
+
return /* @__PURE__ */ i(
|
|
4523
4513
|
Oe.Root,
|
|
4524
4514
|
{
|
|
4525
4515
|
ref: t,
|
|
@@ -4531,12 +4521,12 @@ const Qn = u((n) => {
|
|
|
4531
4521
|
type: "single",
|
|
4532
4522
|
"data-accent-color": d,
|
|
4533
4523
|
...m,
|
|
4534
|
-
children: /* @__PURE__ */
|
|
4524
|
+
children: /* @__PURE__ */ i(Xn.Provider, { value: { size: o, variant: r, radius: l, icon: c }, children: e })
|
|
4535
4525
|
}
|
|
4536
4526
|
);
|
|
4537
4527
|
});
|
|
4538
4528
|
Qn.displayName = "SegmentedControlRoot";
|
|
4539
|
-
const
|
|
4529
|
+
const ci = {
|
|
4540
4530
|
Item: Yn,
|
|
4541
4531
|
Root: Qn
|
|
4542
4532
|
}, Jn = T({}), Ur = h(
|
|
@@ -4544,9 +4534,9 @@ const ic = {
|
|
|
4544
4534
|
{
|
|
4545
4535
|
variants: {
|
|
4546
4536
|
variant: {
|
|
4547
|
-
soft: ["bg-(--accent-a3)"
|
|
4548
|
-
surface: ["bg-(--accent-surface)", "border", "border-(--accent-a7)"
|
|
4549
|
-
outline: ["bg-transparent", "border", "border-(--accent-a7)"
|
|
4537
|
+
soft: ["bg-(--accent-a3)"],
|
|
4538
|
+
surface: ["bg-(--accent-surface)", "border", "border-(--accent-a7)"],
|
|
4539
|
+
outline: ["bg-transparent", "border", "border-(--accent-a7)"]
|
|
4550
4540
|
},
|
|
4551
4541
|
size: {
|
|
4552
4542
|
xs: ["h-6", "text-xs"],
|
|
@@ -4691,48 +4681,48 @@ const ic = {
|
|
|
4691
4681
|
className: s,
|
|
4692
4682
|
size: o = "md",
|
|
4693
4683
|
variant: r = "surface",
|
|
4694
|
-
radius:
|
|
4684
|
+
radius: c = a.radius,
|
|
4695
4685
|
accentColor: l = a.accentColor,
|
|
4696
4686
|
...d
|
|
4697
4687
|
} = n, m = w(
|
|
4698
4688
|
() => ({
|
|
4699
4689
|
size: o,
|
|
4700
4690
|
variant: r,
|
|
4701
|
-
radius:
|
|
4691
|
+
radius: c
|
|
4702
4692
|
}),
|
|
4703
|
-
[
|
|
4693
|
+
[c, o, r]
|
|
4704
4694
|
);
|
|
4705
|
-
return /* @__PURE__ */
|
|
4695
|
+
return /* @__PURE__ */ i(
|
|
4706
4696
|
ne.List,
|
|
4707
4697
|
{
|
|
4708
4698
|
ref: t,
|
|
4709
|
-
className: x(Ur({ size: o, variant: r }), k({ radius:
|
|
4699
|
+
className: x(Ur({ size: o, variant: r }), k({ radius: c, maxLarge: !1 }), s),
|
|
4710
4700
|
"data-accent-color": l,
|
|
4711
4701
|
...d,
|
|
4712
|
-
children: /* @__PURE__ */
|
|
4702
|
+
children: /* @__PURE__ */ i(Jn.Provider, { value: m, children: e })
|
|
4713
4703
|
}
|
|
4714
4704
|
);
|
|
4715
4705
|
});
|
|
4716
4706
|
Zn.displayName = "TabsList";
|
|
4717
4707
|
const es = u((n) => {
|
|
4718
4708
|
const { ref: a, className: t, ...e } = n;
|
|
4719
|
-
return /* @__PURE__ */
|
|
4709
|
+
return /* @__PURE__ */ i(ne.Root, { ref: a, className: x("flex flex-col", t), ...e });
|
|
4720
4710
|
});
|
|
4721
4711
|
es.displayName = "TabsRoot";
|
|
4722
4712
|
const ts = u((n) => {
|
|
4723
|
-
const { ref: a, children: t, className: e, ...s } = n, { size: o, radius: r, variant:
|
|
4724
|
-
return /* @__PURE__ */
|
|
4713
|
+
const { ref: a, children: t, className: e, ...s } = n, { size: o, radius: r, variant: c } = b(Jn);
|
|
4714
|
+
return /* @__PURE__ */ i(
|
|
4725
4715
|
ne.Trigger,
|
|
4726
4716
|
{
|
|
4727
4717
|
ref: a,
|
|
4728
|
-
className: x(qr({ size: o, radius: r, variant:
|
|
4718
|
+
className: x(qr({ size: o, radius: r, variant: c }), e),
|
|
4729
4719
|
...s,
|
|
4730
4720
|
children: t
|
|
4731
4721
|
}
|
|
4732
4722
|
);
|
|
4733
4723
|
});
|
|
4734
4724
|
ts.displayName = "TabsTrigger";
|
|
4735
|
-
const
|
|
4725
|
+
const ii = {
|
|
4736
4726
|
Root: es,
|
|
4737
4727
|
List: Zn,
|
|
4738
4728
|
Trigger: ts,
|
|
@@ -4820,7 +4810,7 @@ const cc = {
|
|
|
4820
4810
|
}
|
|
4821
4811
|
}), Kr = u((n) => {
|
|
4822
4812
|
const { ref: a, className: t, accentColor: e = "base", orientation: s, size: o, ...r } = n;
|
|
4823
|
-
return /* @__PURE__ */
|
|
4813
|
+
return /* @__PURE__ */ i(
|
|
4824
4814
|
Ze.Root,
|
|
4825
4815
|
{
|
|
4826
4816
|
className: x(Wr({ orientation: s, size: o }), t),
|
|
@@ -4923,8 +4913,8 @@ const Xr = h(["relative", "select-none", "touch-none", "flex", "items-center"],
|
|
|
4923
4913
|
xl: []
|
|
4924
4914
|
},
|
|
4925
4915
|
variant: {
|
|
4926
|
-
surface: ["bg-(--base-a3)", "inset-ring", "inset-ring-(--base-a6)"
|
|
4927
|
-
soft: ["bg-(--base-a4)"
|
|
4916
|
+
surface: ["bg-(--base-a3)", "inset-ring", "inset-ring-(--base-a6)"],
|
|
4917
|
+
soft: ["bg-(--base-a4)"]
|
|
4928
4918
|
},
|
|
4929
4919
|
orientation: {
|
|
4930
4920
|
horizontal: [],
|
|
@@ -5043,7 +5033,7 @@ const Xr = h(["relative", "select-none", "touch-none", "flex", "items-center"],
|
|
|
5043
5033
|
orientation: s = "horizontal",
|
|
5044
5034
|
accentColor: o = a.accentColor,
|
|
5045
5035
|
radius: r = a.radius,
|
|
5046
|
-
variant:
|
|
5036
|
+
variant: c = "surface",
|
|
5047
5037
|
tabIndex: l,
|
|
5048
5038
|
...d
|
|
5049
5039
|
} = n;
|
|
@@ -5051,7 +5041,7 @@ const Xr = h(["relative", "select-none", "touch-none", "flex", "items-center"],
|
|
|
5051
5041
|
Te.Root,
|
|
5052
5042
|
{
|
|
5053
5043
|
className: x(
|
|
5054
|
-
Xr({ size: e, variant:
|
|
5044
|
+
Xr({ size: e, variant: c, orientation: s }),
|
|
5055
5045
|
k({ radius: r, maxLarge: !1 }),
|
|
5056
5046
|
t
|
|
5057
5047
|
),
|
|
@@ -5059,11 +5049,11 @@ const Xr = h(["relative", "select-none", "touch-none", "flex", "items-center"],
|
|
|
5059
5049
|
"data-accent-color": o,
|
|
5060
5050
|
...d,
|
|
5061
5051
|
children: [
|
|
5062
|
-
/* @__PURE__ */
|
|
5063
|
-
(n.value ?? d.defaultValue ?? []).map((m, g) => /* @__PURE__ */
|
|
5052
|
+
/* @__PURE__ */ i(Te.Track, { className: Yr({ size: e, variant: c, orientation: s }), children: /* @__PURE__ */ i(Te.Range, { className: Qr({ size: e, variant: c, orientation: s }) }) }),
|
|
5053
|
+
(n.value ?? d.defaultValue ?? []).map((m, g) => /* @__PURE__ */ i(
|
|
5064
5054
|
Te.Thumb,
|
|
5065
5055
|
{
|
|
5066
|
-
className: x(Jr({ size: e, variant:
|
|
5056
|
+
className: x(Jr({ size: e, variant: c }), k({ radius: r, maxLarge: !1 })),
|
|
5067
5057
|
...l !== void 0 ? { tabIndex: l } : void 0
|
|
5068
5058
|
},
|
|
5069
5059
|
`${g}-${m}`
|
|
@@ -5073,7 +5063,7 @@ const Xr = h(["relative", "select-none", "touch-none", "flex", "items-center"],
|
|
|
5073
5063
|
);
|
|
5074
5064
|
});
|
|
5075
5065
|
Zr.displayName = "Slider";
|
|
5076
|
-
const
|
|
5066
|
+
const ec = h(
|
|
5077
5067
|
["box-border", "shrink-0", "animate-spin", "rounded-full", "border-(--accent-9)", "border-b-transparent"],
|
|
5078
5068
|
{
|
|
5079
5069
|
variants: {
|
|
@@ -5089,12 +5079,12 @@ const ei = h(
|
|
|
5089
5079
|
size: "md"
|
|
5090
5080
|
}
|
|
5091
5081
|
}
|
|
5092
|
-
),
|
|
5082
|
+
), tc = u((n) => {
|
|
5093
5083
|
const a = M(), { ref: t, className: e, size: s = "md", accentColor: o = a.accentColor, ...r } = n;
|
|
5094
|
-
return /* @__PURE__ */
|
|
5084
|
+
return /* @__PURE__ */ i("div", { className: x(ec({ size: s }), e), ref: t, "data-accent-color": o, ...r });
|
|
5095
5085
|
});
|
|
5096
|
-
|
|
5097
|
-
const as = T({}),
|
|
5086
|
+
tc.displayName = "Spinner";
|
|
5087
|
+
const as = T({}), ac = h(
|
|
5098
5088
|
[
|
|
5099
5089
|
"shrink-0",
|
|
5100
5090
|
// select
|
|
@@ -5111,8 +5101,7 @@ const as = T({}), ai = h(
|
|
|
5111
5101
|
// bg
|
|
5112
5102
|
"bg-(--base-4)",
|
|
5113
5103
|
"data-[state=checked]:bg-(--accent-track)",
|
|
5114
|
-
"transition-[background,color,box-shadow]"
|
|
5115
|
-
"shadow-sm"
|
|
5104
|
+
"transition-[background,color,box-shadow]"
|
|
5116
5105
|
],
|
|
5117
5106
|
{
|
|
5118
5107
|
variants: {
|
|
@@ -5128,7 +5117,7 @@ const as = T({}), ai = h(
|
|
|
5128
5117
|
size: "md"
|
|
5129
5118
|
}
|
|
5130
5119
|
}
|
|
5131
|
-
),
|
|
5120
|
+
), nc = h(
|
|
5132
5121
|
[
|
|
5133
5122
|
"flex",
|
|
5134
5123
|
"items-center",
|
|
@@ -5159,42 +5148,42 @@ const as = T({}), ai = h(
|
|
|
5159
5148
|
className: s,
|
|
5160
5149
|
size: o = "md",
|
|
5161
5150
|
radius: r = a.radius,
|
|
5162
|
-
accentColor:
|
|
5151
|
+
accentColor: c = a.accentColor,
|
|
5163
5152
|
...l
|
|
5164
5153
|
} = n, d = w(() => ({ size: o, radius: r }), [o, r]);
|
|
5165
|
-
return /* @__PURE__ */
|
|
5154
|
+
return /* @__PURE__ */ i(
|
|
5166
5155
|
qt.Root,
|
|
5167
5156
|
{
|
|
5168
|
-
className: x(
|
|
5157
|
+
className: x(ac({ size: o }), k({ radius: r, maxLarge: !1 }), s),
|
|
5169
5158
|
ref: t,
|
|
5170
|
-
"data-accent-color":
|
|
5159
|
+
"data-accent-color": c,
|
|
5171
5160
|
...l,
|
|
5172
|
-
children: /* @__PURE__ */
|
|
5161
|
+
children: /* @__PURE__ */ i(as.Provider, { value: d, children: e })
|
|
5173
5162
|
}
|
|
5174
5163
|
);
|
|
5175
5164
|
});
|
|
5176
5165
|
ns.displayName = "SwitchRoot";
|
|
5177
5166
|
const ss = u((n) => {
|
|
5178
5167
|
const { ref: a, className: t, ...e } = n, { size: s, radius: o } = j(as);
|
|
5179
|
-
return /* @__PURE__ */
|
|
5168
|
+
return /* @__PURE__ */ i(
|
|
5180
5169
|
qt.Thumb,
|
|
5181
5170
|
{
|
|
5182
|
-
className: x(
|
|
5171
|
+
className: x(nc({ size: s }), k({ radius: o, maxLarge: !1 }), t),
|
|
5183
5172
|
ref: a,
|
|
5184
5173
|
...e
|
|
5185
5174
|
}
|
|
5186
5175
|
);
|
|
5187
5176
|
});
|
|
5188
5177
|
ss.displayName = "SwitchThumb";
|
|
5189
|
-
const
|
|
5178
|
+
const li = {
|
|
5190
5179
|
Root: ns,
|
|
5191
5180
|
Thumb: ss
|
|
5192
5181
|
}, os = u((n) => {
|
|
5193
5182
|
const { ref: a, className: t, ...e } = n;
|
|
5194
|
-
return /* @__PURE__ */
|
|
5183
|
+
return /* @__PURE__ */ i("tbody", { ref: a, className: x(t), ...e });
|
|
5195
5184
|
});
|
|
5196
5185
|
os.displayName = "TableBody";
|
|
5197
|
-
const je = T({}),
|
|
5186
|
+
const je = T({}), sc = h(["border-collapse text-left"], {
|
|
5198
5187
|
variants: {
|
|
5199
5188
|
variant: {
|
|
5200
5189
|
ghost: [],
|
|
@@ -5249,37 +5238,37 @@ const je = T({}), si = h(["border-collapse text-left"], {
|
|
|
5249
5238
|
{ size: "xl", compact: !1, className: ["p-10"] }
|
|
5250
5239
|
]
|
|
5251
5240
|
}), rs = u((n) => {
|
|
5252
|
-
const { ref: a, className: t, ...e } = n, { size: s, border: o, variant: r, compact:
|
|
5253
|
-
return /* @__PURE__ */
|
|
5241
|
+
const { ref: a, className: t, ...e } = n, { size: s, border: o, variant: r, compact: c } = j(je);
|
|
5242
|
+
return /* @__PURE__ */ i(
|
|
5254
5243
|
"td",
|
|
5255
5244
|
{
|
|
5256
5245
|
ref: a,
|
|
5257
|
-
className: x(yt({ size: s, border: o, cell: !0, variant: r, compact:
|
|
5246
|
+
className: x(yt({ size: s, border: o, cell: !0, variant: r, compact: c }), t),
|
|
5258
5247
|
...e
|
|
5259
5248
|
}
|
|
5260
5249
|
);
|
|
5261
5250
|
});
|
|
5262
5251
|
rs.displayName = "TableCell";
|
|
5263
|
-
const
|
|
5264
|
-
const { ref: a, className: t, ...e } = n, { size: s, border: o, variant: r, compact:
|
|
5265
|
-
return /* @__PURE__ */
|
|
5252
|
+
const cs = u((n) => {
|
|
5253
|
+
const { ref: a, className: t, ...e } = n, { size: s, border: o, variant: r, compact: c } = j(je);
|
|
5254
|
+
return /* @__PURE__ */ i(
|
|
5266
5255
|
"th",
|
|
5267
5256
|
{
|
|
5268
5257
|
ref: a,
|
|
5269
|
-
className: x(yt({ size: s, border: o, cell: !1, variant: r, compact:
|
|
5258
|
+
className: x(yt({ size: s, border: o, cell: !1, variant: r, compact: c }), t),
|
|
5270
5259
|
...e
|
|
5271
5260
|
}
|
|
5272
5261
|
);
|
|
5273
5262
|
});
|
|
5274
|
-
|
|
5275
|
-
const
|
|
5263
|
+
cs.displayName = "TableColumnHeaderCell";
|
|
5264
|
+
const is = u((n) => {
|
|
5276
5265
|
const { ref: a, className: t, ...e } = n;
|
|
5277
|
-
return /* @__PURE__ */
|
|
5266
|
+
return /* @__PURE__ */ i("tfoot", { ref: a, className: x(t), ...e });
|
|
5278
5267
|
});
|
|
5279
|
-
|
|
5268
|
+
is.displayName = "TableFooter";
|
|
5280
5269
|
const ls = u((n) => {
|
|
5281
5270
|
const { ref: a, className: t, ...e } = n;
|
|
5282
|
-
return /* @__PURE__ */
|
|
5271
|
+
return /* @__PURE__ */ i("thead", { ref: a, className: x(t), ...e });
|
|
5283
5272
|
});
|
|
5284
5273
|
ls.displayName = "TableHeader";
|
|
5285
5274
|
const ds = u((n) => {
|
|
@@ -5289,54 +5278,54 @@ const ds = u((n) => {
|
|
|
5289
5278
|
className: s,
|
|
5290
5279
|
size: o = "md",
|
|
5291
5280
|
border: r = "row",
|
|
5292
|
-
accentColor:
|
|
5281
|
+
accentColor: c = "base",
|
|
5293
5282
|
variant: l = "ghost",
|
|
5294
5283
|
compact: d = !1,
|
|
5295
5284
|
...m
|
|
5296
5285
|
} = n, g = w(() => ({ size: o, border: r, variant: l, compact: d }), [o, r, l, d]);
|
|
5297
|
-
return /* @__PURE__ */
|
|
5286
|
+
return /* @__PURE__ */ i(
|
|
5298
5287
|
"table",
|
|
5299
5288
|
{
|
|
5300
5289
|
ref: t,
|
|
5301
5290
|
className: x(
|
|
5302
|
-
|
|
5291
|
+
sc({ size: o, variant: l }),
|
|
5303
5292
|
k({ radius: a.radius, maxLarge: !0 }),
|
|
5304
5293
|
s
|
|
5305
5294
|
),
|
|
5306
|
-
"data-accent-color":
|
|
5295
|
+
"data-accent-color": c,
|
|
5307
5296
|
...m,
|
|
5308
|
-
children: /* @__PURE__ */
|
|
5297
|
+
children: /* @__PURE__ */ i(je.Provider, { value: g, children: e })
|
|
5309
5298
|
}
|
|
5310
5299
|
);
|
|
5311
5300
|
});
|
|
5312
5301
|
ds.displayName = "TableRoot";
|
|
5313
5302
|
const us = u((n) => {
|
|
5314
5303
|
const { ref: a, className: t, ...e } = n;
|
|
5315
|
-
return /* @__PURE__ */
|
|
5304
|
+
return /* @__PURE__ */ i("tr", { ref: a, className: x(t), ...e });
|
|
5316
5305
|
});
|
|
5317
5306
|
us.displayName = "TableRow";
|
|
5318
5307
|
const ms = u((n) => {
|
|
5319
|
-
const { ref: a, className: t, ...e } = n, { size: s, border: o, variant: r, compact:
|
|
5320
|
-
return /* @__PURE__ */
|
|
5308
|
+
const { ref: a, className: t, ...e } = n, { size: s, border: o, variant: r, compact: c } = j(je);
|
|
5309
|
+
return /* @__PURE__ */ i(
|
|
5321
5310
|
"th",
|
|
5322
5311
|
{
|
|
5323
5312
|
ref: a,
|
|
5324
|
-
className: x(yt({ size: s, border: o, cell: !0, variant: r, compact:
|
|
5313
|
+
className: x(yt({ size: s, border: o, cell: !0, variant: r, compact: c }), t),
|
|
5325
5314
|
...e
|
|
5326
5315
|
}
|
|
5327
5316
|
);
|
|
5328
5317
|
});
|
|
5329
5318
|
ms.displayName = "TableRowHeaderCell";
|
|
5330
|
-
const
|
|
5319
|
+
const di = {
|
|
5331
5320
|
Root: ds,
|
|
5332
5321
|
Header: ls,
|
|
5333
5322
|
Body: os,
|
|
5334
|
-
Footer:
|
|
5323
|
+
Footer: is,
|
|
5335
5324
|
Row: us,
|
|
5336
5325
|
Cell: rs,
|
|
5337
5326
|
RowHeaderCell: ms,
|
|
5338
|
-
ColumnHeaderCell:
|
|
5339
|
-
}, gs = T({}),
|
|
5327
|
+
ColumnHeaderCell: cs
|
|
5328
|
+
}, gs = T({}), oc = h(["flex", "border-box", "inset-shadow-[0_-1px_0_0_var(--base-a6)]"], {
|
|
5340
5329
|
variants: {
|
|
5341
5330
|
size: {
|
|
5342
5331
|
xs: ["h-6", "text-xs"],
|
|
@@ -5349,7 +5338,7 @@ const dc = {
|
|
|
5349
5338
|
defaultVariants: {
|
|
5350
5339
|
size: "md"
|
|
5351
5340
|
}
|
|
5352
|
-
}),
|
|
5341
|
+
}), rc = h(
|
|
5353
5342
|
[
|
|
5354
5343
|
"select-none",
|
|
5355
5344
|
"shrink-0",
|
|
@@ -5384,40 +5373,40 @@ const dc = {
|
|
|
5384
5373
|
}
|
|
5385
5374
|
}
|
|
5386
5375
|
), ps = u((n) => {
|
|
5387
|
-
const a = M(), { ref: t, children: e, className: s, size: o = "md", accentColor: r = a.accentColor, ...
|
|
5388
|
-
return /* @__PURE__ */
|
|
5376
|
+
const a = M(), { ref: t, children: e, className: s, size: o = "md", accentColor: r = a.accentColor, ...c } = n;
|
|
5377
|
+
return /* @__PURE__ */ i(
|
|
5389
5378
|
ne.List,
|
|
5390
5379
|
{
|
|
5391
5380
|
ref: t,
|
|
5392
|
-
className: x(
|
|
5381
|
+
className: x(oc({ size: o }), s),
|
|
5393
5382
|
"data-accent-color": r,
|
|
5394
|
-
...
|
|
5395
|
-
children: /* @__PURE__ */
|
|
5383
|
+
...c,
|
|
5384
|
+
children: /* @__PURE__ */ i(gs.Provider, { value: { size: o }, children: e })
|
|
5396
5385
|
}
|
|
5397
5386
|
);
|
|
5398
5387
|
});
|
|
5399
5388
|
ps.displayName = "TabsList";
|
|
5400
5389
|
const xs = u((n) => {
|
|
5401
5390
|
const { ref: a, className: t, ...e } = n;
|
|
5402
|
-
return /* @__PURE__ */
|
|
5391
|
+
return /* @__PURE__ */ i(ne.Root, { ref: a, className: x("flex flex-col", t), ...e });
|
|
5403
5392
|
});
|
|
5404
5393
|
xs.displayName = "TabsRoot";
|
|
5405
|
-
const
|
|
5394
|
+
const cc = () => {
|
|
5406
5395
|
const n = j(gs);
|
|
5407
5396
|
if (!n)
|
|
5408
5397
|
throw new Error("useTabsList must be used within a TabsList component");
|
|
5409
5398
|
return n;
|
|
5410
5399
|
}, fs = u((n) => {
|
|
5411
|
-
const { ref: a, children: t, className: e, ...s } = n, { size: o } =
|
|
5412
|
-
return /* @__PURE__ */
|
|
5400
|
+
const { ref: a, children: t, className: e, ...s } = n, { size: o } = cc();
|
|
5401
|
+
return /* @__PURE__ */ i(ne.Trigger, { ref: a, className: x(rc({ size: o }), e), ...s, children: t });
|
|
5413
5402
|
});
|
|
5414
5403
|
fs.displayName = "TabsTrigger";
|
|
5415
|
-
const
|
|
5404
|
+
const ui = {
|
|
5416
5405
|
Root: xs,
|
|
5417
5406
|
List: ps,
|
|
5418
5407
|
Trigger: fs,
|
|
5419
5408
|
Content: ne.Content
|
|
5420
|
-
},
|
|
5409
|
+
}, ic = h([], {
|
|
5421
5410
|
variants: {
|
|
5422
5411
|
size: {
|
|
5423
5412
|
xs: ["text-xs"],
|
|
@@ -5447,16 +5436,16 @@ const uc = {
|
|
|
5447
5436
|
}
|
|
5448
5437
|
}
|
|
5449
5438
|
}), Ye = u((n) => {
|
|
5450
|
-
const { ref: a, className: t, size: e, weight: s, align: o, accentColor: r, highContrast:
|
|
5451
|
-
return /* @__PURE__ */
|
|
5439
|
+
const { ref: a, className: t, size: e, weight: s, align: o, accentColor: r, highContrast: c = !1, ...l } = n;
|
|
5440
|
+
return /* @__PURE__ */ i(
|
|
5452
5441
|
"span",
|
|
5453
5442
|
{
|
|
5454
5443
|
ref: a,
|
|
5455
5444
|
className: x(
|
|
5456
|
-
|
|
5445
|
+
ic({ size: e, weight: s, align: o }),
|
|
5457
5446
|
{
|
|
5458
5447
|
"text-(--accent-a11)": !!r,
|
|
5459
|
-
"text-(--accent-a12)":
|
|
5448
|
+
"text-(--accent-a12)": c
|
|
5460
5449
|
},
|
|
5461
5450
|
t
|
|
5462
5451
|
),
|
|
@@ -5466,7 +5455,7 @@ const uc = {
|
|
|
5466
5455
|
);
|
|
5467
5456
|
});
|
|
5468
5457
|
Ye.displayName = "Text";
|
|
5469
|
-
const
|
|
5458
|
+
const lc = h(
|
|
5470
5459
|
[
|
|
5471
5460
|
"focus:outline-(--accent-a8)",
|
|
5472
5461
|
"focus:outline-2",
|
|
@@ -5486,8 +5475,7 @@ const li = h(
|
|
|
5486
5475
|
"inset-ring",
|
|
5487
5476
|
"inset-ring-(--base-a7)",
|
|
5488
5477
|
"bg-transparent",
|
|
5489
|
-
"text-(--base-12)"
|
|
5490
|
-
"shadow-sm"
|
|
5478
|
+
"text-(--base-12)"
|
|
5491
5479
|
],
|
|
5492
5480
|
surface: [
|
|
5493
5481
|
"placeholder-(--accent-12)",
|
|
@@ -5496,16 +5484,14 @@ const li = h(
|
|
|
5496
5484
|
"inset-ring",
|
|
5497
5485
|
"inset-ring-(--accent-a7)",
|
|
5498
5486
|
"bg-(--accent-surface)",
|
|
5499
|
-
"text-(--accent-a12)"
|
|
5500
|
-
"shadow-sm"
|
|
5487
|
+
"text-(--accent-a12)"
|
|
5501
5488
|
],
|
|
5502
5489
|
soft: [
|
|
5503
5490
|
"bg-(--accent-a3)",
|
|
5504
5491
|
"text-(--accent-12)",
|
|
5505
5492
|
"placeholder-(--accent-12)",
|
|
5506
5493
|
"placeholder:opacity-60",
|
|
5507
|
-
"selection:bg-(--accent-a5)"
|
|
5508
|
-
"shadow-sm"
|
|
5494
|
+
"selection:bg-(--accent-a5)"
|
|
5509
5495
|
],
|
|
5510
5496
|
ghost: ["placeholder-(--base-a9)", "selection:bg-(--accent-a5)", "bg-transparent", "text-(--base-12)"]
|
|
5511
5497
|
},
|
|
@@ -5529,29 +5515,29 @@ const li = h(
|
|
|
5529
5515
|
resize: "none"
|
|
5530
5516
|
}
|
|
5531
5517
|
}
|
|
5532
|
-
),
|
|
5518
|
+
), dc = u((n) => {
|
|
5533
5519
|
const a = M(), {
|
|
5534
5520
|
ref: t,
|
|
5535
5521
|
className: e,
|
|
5536
5522
|
size: s,
|
|
5537
5523
|
variant: o,
|
|
5538
5524
|
radius: r = a.radius,
|
|
5539
|
-
accentColor:
|
|
5525
|
+
accentColor: c = a.accentColor,
|
|
5540
5526
|
...l
|
|
5541
5527
|
} = n;
|
|
5542
|
-
return /* @__PURE__ */
|
|
5528
|
+
return /* @__PURE__ */ i(
|
|
5543
5529
|
"textarea",
|
|
5544
5530
|
{
|
|
5545
|
-
className: x(
|
|
5531
|
+
className: x(lc({ size: s, variant: o }), k({ radius: r, maxLarge: !0 }), e),
|
|
5546
5532
|
ref: t,
|
|
5547
|
-
"data-accent-color":
|
|
5533
|
+
"data-accent-color": c,
|
|
5548
5534
|
...l
|
|
5549
5535
|
}
|
|
5550
5536
|
);
|
|
5551
5537
|
});
|
|
5552
|
-
|
|
5538
|
+
dc.displayName = "TextArea";
|
|
5553
5539
|
const Re = u((n) => {
|
|
5554
|
-
const { toastId: a, title: t, description: e, icon: s, accentColor: o, closeButton: r, action:
|
|
5540
|
+
const { toastId: a, title: t, description: e, icon: s, accentColor: o, closeButton: r, action: c } = n, { radius: l } = M(), d = v(() => {
|
|
5555
5541
|
K.dismiss(a);
|
|
5556
5542
|
}, [a]), m = v(() => {
|
|
5557
5543
|
K.dismiss(a);
|
|
@@ -5568,12 +5554,12 @@ const Re = u((n) => {
|
|
|
5568
5554
|
/* @__PURE__ */ W("div", { className: "flex items-center gap-4 grow min-w-0", children: [
|
|
5569
5555
|
s,
|
|
5570
5556
|
/* @__PURE__ */ W("div", { className: "flex flex-col min-w-0 select-none", children: [
|
|
5571
|
-
/* @__PURE__ */
|
|
5572
|
-
e && /* @__PURE__ */
|
|
5557
|
+
/* @__PURE__ */ i(Ye, { className: "truncate", children: t }),
|
|
5558
|
+
e && /* @__PURE__ */ i(Ye, { accentColor: "base", size: "sm", weight: "regular", children: e })
|
|
5573
5559
|
] })
|
|
5574
5560
|
] }),
|
|
5575
|
-
/* @__PURE__ */
|
|
5576
|
-
r && /* @__PURE__ */
|
|
5561
|
+
/* @__PURE__ */ i(me, { onClick: d, children: c }),
|
|
5562
|
+
r && /* @__PURE__ */ i(
|
|
5577
5563
|
at,
|
|
5578
5564
|
{
|
|
5579
5565
|
type: "button",
|
|
@@ -5582,24 +5568,24 @@ const Re = u((n) => {
|
|
|
5582
5568
|
accentColor: "base",
|
|
5583
5569
|
variant: "ghost",
|
|
5584
5570
|
size: "xs",
|
|
5585
|
-
children: /* @__PURE__ */
|
|
5571
|
+
children: /* @__PURE__ */ i(q, { icon: js })
|
|
5586
5572
|
}
|
|
5587
5573
|
)
|
|
5588
5574
|
]
|
|
5589
5575
|
}
|
|
5590
5576
|
);
|
|
5591
5577
|
}), Ue = {
|
|
5592
|
-
success: /* @__PURE__ */
|
|
5593
|
-
info: /* @__PURE__ */
|
|
5594
|
-
warning: /* @__PURE__ */
|
|
5595
|
-
error: /* @__PURE__ */
|
|
5596
|
-
},
|
|
5578
|
+
success: /* @__PURE__ */ i(q, { icon: Ks, color: "var(--accent-9)" }),
|
|
5579
|
+
info: /* @__PURE__ */ i(q, { icon: Ws, color: "var(--base-11)" }),
|
|
5580
|
+
warning: /* @__PURE__ */ i(q, { icon: qs, color: "var(--accent-9)" }),
|
|
5581
|
+
error: /* @__PURE__ */ i(q, { icon: Us, color: "var(--accent-9)" })
|
|
5582
|
+
}, uc = (n) => {
|
|
5597
5583
|
const { icon: a, description: t, title: e, closeButton: s, action: o, ...r } = n;
|
|
5598
5584
|
return K.custom(
|
|
5599
|
-
(
|
|
5585
|
+
(c) => /* @__PURE__ */ i(
|
|
5600
5586
|
Re,
|
|
5601
5587
|
{
|
|
5602
|
-
toastId:
|
|
5588
|
+
toastId: c,
|
|
5603
5589
|
icon: a,
|
|
5604
5590
|
description: t,
|
|
5605
5591
|
title: e,
|
|
@@ -5609,14 +5595,14 @@ const Re = u((n) => {
|
|
|
5609
5595
|
),
|
|
5610
5596
|
r
|
|
5611
5597
|
);
|
|
5612
|
-
},
|
|
5598
|
+
}, mc = (n) => {
|
|
5613
5599
|
const { icon: a, description: t, title: e, closeButton: s, action: o, ...r } = n;
|
|
5614
5600
|
return K.custom(
|
|
5615
|
-
(
|
|
5601
|
+
(c) => /* @__PURE__ */ i(
|
|
5616
5602
|
Re,
|
|
5617
5603
|
{
|
|
5618
5604
|
accentColor: "success",
|
|
5619
|
-
toastId:
|
|
5605
|
+
toastId: c,
|
|
5620
5606
|
icon: a ?? Ue.success,
|
|
5621
5607
|
description: t,
|
|
5622
5608
|
title: e,
|
|
@@ -5626,14 +5612,14 @@ const Re = u((n) => {
|
|
|
5626
5612
|
),
|
|
5627
5613
|
r
|
|
5628
5614
|
);
|
|
5629
|
-
},
|
|
5615
|
+
}, gc = (n) => {
|
|
5630
5616
|
const { icon: a, description: t, title: e, closeButton: s, action: o, ...r } = n;
|
|
5631
5617
|
return K.custom(
|
|
5632
|
-
(
|
|
5618
|
+
(c) => /* @__PURE__ */ i(
|
|
5633
5619
|
Re,
|
|
5634
5620
|
{
|
|
5635
5621
|
accentColor: "base",
|
|
5636
|
-
toastId:
|
|
5622
|
+
toastId: c,
|
|
5637
5623
|
icon: a ?? Ue.info,
|
|
5638
5624
|
description: t,
|
|
5639
5625
|
title: e,
|
|
@@ -5643,14 +5629,14 @@ const Re = u((n) => {
|
|
|
5643
5629
|
),
|
|
5644
5630
|
r
|
|
5645
5631
|
);
|
|
5646
|
-
},
|
|
5632
|
+
}, pc = (n) => {
|
|
5647
5633
|
const { icon: a, description: t, title: e, closeButton: s, action: o, ...r } = n;
|
|
5648
5634
|
return K.custom(
|
|
5649
|
-
(
|
|
5635
|
+
(c) => /* @__PURE__ */ i(
|
|
5650
5636
|
Re,
|
|
5651
5637
|
{
|
|
5652
5638
|
accentColor: "warning",
|
|
5653
|
-
toastId:
|
|
5639
|
+
toastId: c,
|
|
5654
5640
|
icon: a ?? Ue.warning,
|
|
5655
5641
|
description: t,
|
|
5656
5642
|
title: e,
|
|
@@ -5660,14 +5646,14 @@ const Re = u((n) => {
|
|
|
5660
5646
|
),
|
|
5661
5647
|
r
|
|
5662
5648
|
);
|
|
5663
|
-
},
|
|
5649
|
+
}, xc = (n) => {
|
|
5664
5650
|
const { icon: a, description: t, title: e, closeButton: s, action: o, ...r } = n;
|
|
5665
5651
|
return K.custom(
|
|
5666
|
-
(
|
|
5652
|
+
(c) => /* @__PURE__ */ i(
|
|
5667
5653
|
Re,
|
|
5668
5654
|
{
|
|
5669
5655
|
accentColor: "danger",
|
|
5670
|
-
toastId:
|
|
5656
|
+
toastId: c,
|
|
5671
5657
|
icon: a ?? Ue.error,
|
|
5672
5658
|
description: t,
|
|
5673
5659
|
title: e,
|
|
@@ -5677,22 +5663,22 @@ const Re = u((n) => {
|
|
|
5677
5663
|
),
|
|
5678
5664
|
r
|
|
5679
5665
|
);
|
|
5680
|
-
},
|
|
5681
|
-
|
|
5666
|
+
}, mi = Object.assign(
|
|
5667
|
+
uc,
|
|
5682
5668
|
{
|
|
5683
|
-
success:
|
|
5684
|
-
info:
|
|
5685
|
-
warning:
|
|
5686
|
-
error:
|
|
5669
|
+
success: mc,
|
|
5670
|
+
info: gc,
|
|
5671
|
+
warning: pc,
|
|
5672
|
+
error: xc,
|
|
5687
5673
|
custom: K.custom,
|
|
5688
5674
|
dismiss: K.dismiss
|
|
5689
5675
|
},
|
|
5690
5676
|
{ getHistory: K.getHistory, getToasts: K.getToasts }
|
|
5691
|
-
),
|
|
5677
|
+
), fc = {
|
|
5692
5678
|
unstyled: !0
|
|
5693
|
-
},
|
|
5694
|
-
|
|
5695
|
-
const
|
|
5679
|
+
}, hc = u((n) => /* @__PURE__ */ i(co, { toastOptions: fc, richColors: !1, closeButton: !1, theme: "system", ...n }));
|
|
5680
|
+
hc.displayName = "Toaster";
|
|
5681
|
+
const vc = h(
|
|
5696
5682
|
[
|
|
5697
5683
|
"flex",
|
|
5698
5684
|
"items-center",
|
|
@@ -5719,8 +5705,7 @@ const vi = h(
|
|
|
5719
5705
|
// bg
|
|
5720
5706
|
"bg-(--accent-a3)",
|
|
5721
5707
|
"data-[state=off]:hover:bg-(--accent-a4)",
|
|
5722
|
-
"data-[state=on]:bg-(--accent-a5)"
|
|
5723
|
-
"shadow-sm"
|
|
5708
|
+
"data-[state=on]:bg-(--accent-a5)"
|
|
5724
5709
|
],
|
|
5725
5710
|
outline: [
|
|
5726
5711
|
// ring
|
|
@@ -5733,8 +5718,7 @@ const vi = h(
|
|
|
5733
5718
|
"data-[state=on]:text-(--accent-a12)",
|
|
5734
5719
|
// bg
|
|
5735
5720
|
"data-[state=off]:hover:bg-(--accent-a3)",
|
|
5736
|
-
"data-[state=on]:bg-(--accent-a4)"
|
|
5737
|
-
"shadow-sm"
|
|
5721
|
+
"data-[state=on]:bg-(--accent-a4)"
|
|
5738
5722
|
],
|
|
5739
5723
|
ghost: [
|
|
5740
5724
|
"text-(--accent-a11)",
|
|
@@ -5820,26 +5804,26 @@ const vi = h(
|
|
|
5820
5804
|
size: s,
|
|
5821
5805
|
icon: o,
|
|
5822
5806
|
variant: r,
|
|
5823
|
-
radius:
|
|
5807
|
+
radius: c = a.radius,
|
|
5824
5808
|
accentColor: l = a.accentColor,
|
|
5825
5809
|
...d
|
|
5826
5810
|
} = n;
|
|
5827
|
-
return /* @__PURE__ */
|
|
5828
|
-
|
|
5811
|
+
return /* @__PURE__ */ i(
|
|
5812
|
+
io.Root,
|
|
5829
5813
|
{
|
|
5830
5814
|
ref: t,
|
|
5831
|
-
className: x(
|
|
5815
|
+
className: x(vc({ size: s, variant: r, icon: o }), k({ radius: c, maxLarge: !1 }), e),
|
|
5832
5816
|
"data-accent-color": l,
|
|
5833
5817
|
...d
|
|
5834
5818
|
}
|
|
5835
5819
|
);
|
|
5836
5820
|
});
|
|
5837
5821
|
zt.displayName = "BaseToggleButton";
|
|
5838
|
-
const
|
|
5839
|
-
|
|
5840
|
-
const
|
|
5841
|
-
|
|
5842
|
-
const hs = T({}),
|
|
5822
|
+
const bc = u((n) => /* @__PURE__ */ i(zt, { icon: !0, ...n }));
|
|
5823
|
+
bc.displayName = "IconToggleButton";
|
|
5824
|
+
const Cc = u((n) => /* @__PURE__ */ i(zt, { icon: !1, ...n }));
|
|
5825
|
+
Cc.displayName = "ToggleButton";
|
|
5826
|
+
const hs = T({}), yc = h(
|
|
5843
5827
|
[
|
|
5844
5828
|
"flex",
|
|
5845
5829
|
"items-center",
|
|
@@ -5866,8 +5850,7 @@ const hs = T({}), yi = h(
|
|
|
5866
5850
|
// bg
|
|
5867
5851
|
"bg-(--accent-a3)",
|
|
5868
5852
|
"data-[state=off]:hover:bg-(--accent-a4)",
|
|
5869
|
-
"data-[state=on]:bg-(--accent-a5)"
|
|
5870
|
-
"shadow-sm"
|
|
5853
|
+
"data-[state=on]:bg-(--accent-a5)"
|
|
5871
5854
|
],
|
|
5872
5855
|
outline: [
|
|
5873
5856
|
// ring
|
|
@@ -5880,8 +5863,7 @@ const hs = T({}), yi = h(
|
|
|
5880
5863
|
"data-[state=on]:text-(--accent-a12)",
|
|
5881
5864
|
// bg
|
|
5882
5865
|
"data-[state=off]:hover:bg-(--accent-a3)",
|
|
5883
|
-
"data-[state=on]:bg-(--accent-a4)"
|
|
5884
|
-
"shadow-sm"
|
|
5866
|
+
"data-[state=on]:bg-(--accent-a4)"
|
|
5885
5867
|
],
|
|
5886
5868
|
ghost: [
|
|
5887
5869
|
"text-(--accent-a11)",
|
|
@@ -5962,16 +5944,16 @@ const hs = T({}), yi = h(
|
|
|
5962
5944
|
icon: s,
|
|
5963
5945
|
accentColor: o = a.accentColor,
|
|
5964
5946
|
radius: r = a.radius,
|
|
5965
|
-
variant:
|
|
5947
|
+
variant: c = a.variant,
|
|
5966
5948
|
size: l = a.size,
|
|
5967
5949
|
...d
|
|
5968
5950
|
} = n;
|
|
5969
|
-
return /* @__PURE__ */
|
|
5951
|
+
return /* @__PURE__ */ i(
|
|
5970
5952
|
Oe.Item,
|
|
5971
5953
|
{
|
|
5972
5954
|
ref: t,
|
|
5973
5955
|
className: x(
|
|
5974
|
-
|
|
5956
|
+
yc({ icon: s, variant: c, size: l }),
|
|
5975
5957
|
k({ radius: r, maxLarge: !1 }),
|
|
5976
5958
|
e
|
|
5977
5959
|
),
|
|
@@ -5981,9 +5963,9 @@ const hs = T({}), yi = h(
|
|
|
5981
5963
|
);
|
|
5982
5964
|
});
|
|
5983
5965
|
Nt.displayName = "ToggleGroupBaseItem";
|
|
5984
|
-
const vs = u((n) => /* @__PURE__ */
|
|
5966
|
+
const vs = u((n) => /* @__PURE__ */ i(Nt, { icon: !0, ...n }));
|
|
5985
5967
|
vs.displayName = "ToggleGroupIconItem";
|
|
5986
|
-
const bs = u((n) => /* @__PURE__ */
|
|
5968
|
+
const bs = u((n) => /* @__PURE__ */ i(Nt, { icon: !1, ...n }));
|
|
5987
5969
|
bs.displayName = "ToggleGroupItem";
|
|
5988
5970
|
const Cs = u((n) => {
|
|
5989
5971
|
const a = M(), {
|
|
@@ -5992,30 +5974,30 @@ const Cs = u((n) => {
|
|
|
5992
5974
|
accentColor: s = a.accentColor,
|
|
5993
5975
|
radius: o = a.radius,
|
|
5994
5976
|
variant: r = "soft",
|
|
5995
|
-
size:
|
|
5977
|
+
size: c = "md",
|
|
5996
5978
|
...l
|
|
5997
5979
|
} = n, d = w(
|
|
5998
5980
|
() => ({
|
|
5999
5981
|
variant: r,
|
|
6000
|
-
size:
|
|
5982
|
+
size: c,
|
|
6001
5983
|
radius: o,
|
|
6002
5984
|
accentColor: s
|
|
6003
5985
|
}),
|
|
6004
|
-
[s, o,
|
|
5986
|
+
[s, o, c, r]
|
|
6005
5987
|
);
|
|
6006
|
-
return /* @__PURE__ */
|
|
5988
|
+
return /* @__PURE__ */ i(Oe.Root, { ref: t, "data-accent-color": s, ...l, children: /* @__PURE__ */ i(hs, { value: d, children: e }) });
|
|
6007
5989
|
});
|
|
6008
5990
|
Cs.displayName = "ToggleGroupRoot";
|
|
6009
|
-
const
|
|
5991
|
+
const gi = {
|
|
6010
5992
|
Root: Cs,
|
|
6011
5993
|
Item: bs,
|
|
6012
5994
|
IconItem: vs
|
|
6013
5995
|
}, ys = u((n) => {
|
|
6014
5996
|
const { ref: a, className: t, ...e } = n;
|
|
6015
|
-
return /* @__PURE__ */
|
|
5997
|
+
return /* @__PURE__ */ i(de.Arrow, { className: x("fill-(--base-6)", t), ref: a, ...e });
|
|
6016
5998
|
});
|
|
6017
5999
|
ys.displayName = "TooltipArrow";
|
|
6018
|
-
const
|
|
6000
|
+
const zc = h(
|
|
6019
6001
|
[
|
|
6020
6002
|
"data-[state=delayed-open]:animate-in",
|
|
6021
6003
|
"data-[state=delayed-open]:fade-in-0",
|
|
@@ -6058,15 +6040,15 @@ const zi = h(
|
|
|
6058
6040
|
className: s,
|
|
6059
6041
|
side: o = "top",
|
|
6060
6042
|
size: r,
|
|
6061
|
-
radius:
|
|
6043
|
+
radius: c = a.radius,
|
|
6062
6044
|
sideOffset: l = 2,
|
|
6063
6045
|
container: d,
|
|
6064
6046
|
...m
|
|
6065
6047
|
} = n;
|
|
6066
|
-
return /* @__PURE__ */
|
|
6048
|
+
return /* @__PURE__ */ i(de.Portal, { container: d, children: /* @__PURE__ */ i(
|
|
6067
6049
|
de.Content,
|
|
6068
6050
|
{
|
|
6069
|
-
className: x(
|
|
6051
|
+
className: x(zc({ size: r, side: o }), k({ radius: c, maxLarge: !1 }), s),
|
|
6070
6052
|
ref: t,
|
|
6071
6053
|
sideOffset: l,
|
|
6072
6054
|
"data-floating-content": "",
|
|
@@ -6076,7 +6058,7 @@ const zi = h(
|
|
|
6076
6058
|
) });
|
|
6077
6059
|
});
|
|
6078
6060
|
zs.displayName = "TooltipContent";
|
|
6079
|
-
const
|
|
6061
|
+
const pi = {
|
|
6080
6062
|
Arrow: ys,
|
|
6081
6063
|
Content: zs,
|
|
6082
6064
|
Root: de.Root,
|
|
@@ -6084,10 +6066,10 @@ const pc = {
|
|
|
6084
6066
|
Provider: de.Provider
|
|
6085
6067
|
};
|
|
6086
6068
|
export {
|
|
6087
|
-
|
|
6069
|
+
Fc as AlertDialog,
|
|
6088
6070
|
tt as AlertDialogContent,
|
|
6089
6071
|
mo as AlertDialogProvider,
|
|
6090
|
-
|
|
6072
|
+
Hc as Avatar,
|
|
6091
6073
|
ta as AvatarFallback,
|
|
6092
6074
|
aa as AvatarImage,
|
|
6093
6075
|
na as AvatarRoot,
|
|
@@ -6095,22 +6077,22 @@ export {
|
|
|
6095
6077
|
Ke as Button,
|
|
6096
6078
|
uo as ButtonGroup,
|
|
6097
6079
|
vo as Card,
|
|
6098
|
-
|
|
6099
|
-
|
|
6080
|
+
Bc as Checkbox,
|
|
6081
|
+
Uc as CheckboxGroup,
|
|
6100
6082
|
ra as CheckboxGroupItem,
|
|
6101
|
-
|
|
6102
|
-
|
|
6083
|
+
ca as CheckboxGroupItemIndicator,
|
|
6084
|
+
ia as CheckboxGroupRoot,
|
|
6103
6085
|
la as CheckboxGroupSelectAllItem,
|
|
6104
6086
|
sa as CheckboxIndicator,
|
|
6105
6087
|
oa as CheckboxRoot,
|
|
6106
|
-
|
|
6088
|
+
qc as CommandMenu,
|
|
6107
6089
|
da as CommandMenuCheckboxIndicator,
|
|
6108
6090
|
ga as CommandMenuCheckboxItem,
|
|
6109
6091
|
pa as CommandMenuContent,
|
|
6110
6092
|
xa as CommandMenuEmpty,
|
|
6111
6093
|
Ee as CommandMenuGroup,
|
|
6112
6094
|
fa as CommandMenuInput,
|
|
6113
|
-
|
|
6095
|
+
ce as CommandMenuItem,
|
|
6114
6096
|
ha as CommandMenuList,
|
|
6115
6097
|
To as CommandMenuMultiSelectGroup,
|
|
6116
6098
|
Po as CommandMenuMultiSelectItem,
|
|
@@ -6126,22 +6108,22 @@ export {
|
|
|
6126
6108
|
wa as CommandMenuSeparator,
|
|
6127
6109
|
Ia as CommandMenuTrigger,
|
|
6128
6110
|
jo as DayPicker,
|
|
6129
|
-
|
|
6111
|
+
Wc as Dialog,
|
|
6130
6112
|
ka as DialogContent,
|
|
6131
6113
|
Ra as DialogOverlay,
|
|
6132
6114
|
Ta as DialogRoot,
|
|
6133
6115
|
Ko as Heading,
|
|
6134
|
-
|
|
6116
|
+
Kc as HoverCard,
|
|
6135
6117
|
Pa as HoverCardArrow,
|
|
6136
6118
|
Ma as HoverCardContent,
|
|
6137
6119
|
Yo as HoverUtility,
|
|
6138
6120
|
at as IconButton,
|
|
6139
|
-
|
|
6140
|
-
|
|
6121
|
+
bc as IconToggleButton,
|
|
6122
|
+
Xc as Input,
|
|
6141
6123
|
Oa as InputField,
|
|
6142
6124
|
Va as InputRoot,
|
|
6143
6125
|
La as InputSlot,
|
|
6144
|
-
|
|
6126
|
+
Jc as Layout,
|
|
6145
6127
|
Aa as LayoutContainer,
|
|
6146
6128
|
Da as LayoutRoot,
|
|
6147
6129
|
_a as LayoutSlideOutClose,
|
|
@@ -6150,9 +6132,9 @@ export {
|
|
|
6150
6132
|
Ba as LayoutSlideOutOverlay,
|
|
6151
6133
|
$a as LayoutSlideOutRoot,
|
|
6152
6134
|
ja as LayoutSlideOutTrigger,
|
|
6153
|
-
|
|
6135
|
+
cr as Link,
|
|
6154
6136
|
q as LuIcon,
|
|
6155
|
-
|
|
6137
|
+
Zc as Menu,
|
|
6156
6138
|
Wa as MenuCheckboxItem,
|
|
6157
6139
|
Ka as MenuCheckboxItemIndicator,
|
|
6158
6140
|
Xa as MenuClickTrigger,
|
|
@@ -6179,7 +6161,7 @@ export {
|
|
|
6179
6161
|
un as MenuSub,
|
|
6180
6162
|
mn as MenuSubContent,
|
|
6181
6163
|
gn as MenuSubTrigger,
|
|
6182
|
-
|
|
6164
|
+
ei as MenuV2,
|
|
6183
6165
|
fn as MenuV2CheckboxItem,
|
|
6184
6166
|
hn as MenuV2CheckedIndicator,
|
|
6185
6167
|
$e as MenuV2Group,
|
|
@@ -6197,11 +6179,11 @@ export {
|
|
|
6197
6179
|
Nn as MenuV2SelectedIndicator,
|
|
6198
6180
|
wn as MenuV2Separator,
|
|
6199
6181
|
pn as MenuVirtualTrigger,
|
|
6200
|
-
|
|
6182
|
+
ti as OneTimePasswordField,
|
|
6201
6183
|
In as OneTimePasswordFieldHiddenInput,
|
|
6202
6184
|
kn as OneTimePasswordFieldInput,
|
|
6203
6185
|
Rn as OneTimePasswordFieldRoot,
|
|
6204
|
-
|
|
6186
|
+
ai as Overlay,
|
|
6205
6187
|
Tn as OverlayClose,
|
|
6206
6188
|
Pn as OverlayContent,
|
|
6207
6189
|
Mn as OverlayDescription,
|
|
@@ -6209,31 +6191,31 @@ export {
|
|
|
6209
6191
|
Vn as OverlayTitle,
|
|
6210
6192
|
Ln as OverlayTrigger,
|
|
6211
6193
|
Lr as OvermapErrorBoundary,
|
|
6212
|
-
|
|
6194
|
+
ni as Popover,
|
|
6213
6195
|
Dn as PopoverArrow,
|
|
6214
6196
|
Gn as PopoverContent,
|
|
6215
6197
|
Er as Progress,
|
|
6216
6198
|
lo as Provider,
|
|
6217
|
-
|
|
6199
|
+
si as RadioCards,
|
|
6218
6200
|
_n as RadioCardsItem,
|
|
6219
6201
|
Fn as RadioCardsRoot,
|
|
6220
|
-
|
|
6202
|
+
oi as RadioGroup,
|
|
6221
6203
|
Hn as RadioGroupIndicator,
|
|
6222
6204
|
$n as RadioGroupItem,
|
|
6223
6205
|
jn as RadioGroupRoot,
|
|
6224
|
-
|
|
6206
|
+
ri as Rating,
|
|
6225
6207
|
qn as RatingItem,
|
|
6226
6208
|
Wn as RatingItemIndicator,
|
|
6227
6209
|
Kn as RatingRoot,
|
|
6228
|
-
|
|
6210
|
+
ci as SegmentedControl,
|
|
6229
6211
|
Yn as SegmentedControlItem,
|
|
6230
6212
|
Qn as SegmentedControlRoot,
|
|
6231
|
-
|
|
6213
|
+
ii as SegmentedTabs,
|
|
6232
6214
|
Zn as SegmentedTabsList,
|
|
6233
6215
|
es as SegmentedTabsRoot,
|
|
6234
6216
|
ts as SegmentedTabsTrigger,
|
|
6235
6217
|
Kr as Separator,
|
|
6236
|
-
|
|
6218
|
+
Qc as SlideOut,
|
|
6237
6219
|
mt as SlideOutClose,
|
|
6238
6220
|
gt as SlideOutContent,
|
|
6239
6221
|
pt as SlideOutHandle,
|
|
@@ -6242,32 +6224,32 @@ export {
|
|
|
6242
6224
|
Ea as SlideOutTrigger,
|
|
6243
6225
|
ht as SlideOutViewport,
|
|
6244
6226
|
Zr as Slider,
|
|
6245
|
-
|
|
6246
|
-
|
|
6227
|
+
tc as Spinner,
|
|
6228
|
+
li as Switch,
|
|
6247
6229
|
ns as SwitchRoot,
|
|
6248
6230
|
ss as SwitchThumb,
|
|
6249
|
-
|
|
6231
|
+
di as Table,
|
|
6250
6232
|
os as TableBody,
|
|
6251
6233
|
rs as TableCell,
|
|
6252
|
-
|
|
6253
|
-
|
|
6234
|
+
cs as TableColumnHeaderCell,
|
|
6235
|
+
is as TableFooter,
|
|
6254
6236
|
ls as TableHeader,
|
|
6255
6237
|
ds as TableRoot,
|
|
6256
6238
|
us as TableRow,
|
|
6257
6239
|
ms as TableRowHeaderCell,
|
|
6258
|
-
|
|
6240
|
+
ui as Tabs,
|
|
6259
6241
|
ps as TabsList,
|
|
6260
6242
|
xs as TabsRoot,
|
|
6261
6243
|
fs as TabsTrigger,
|
|
6262
6244
|
Ye as Text,
|
|
6263
|
-
|
|
6264
|
-
|
|
6265
|
-
|
|
6266
|
-
|
|
6245
|
+
dc as TextArea,
|
|
6246
|
+
hc as Toaster,
|
|
6247
|
+
Cc as ToggleButton,
|
|
6248
|
+
gi as ToggleGroup,
|
|
6267
6249
|
vs as ToggleGroupIconItem,
|
|
6268
6250
|
bs as ToggleGroupItem,
|
|
6269
6251
|
Cs as ToggleGroupRoot,
|
|
6270
|
-
|
|
6252
|
+
pi as Tooltip,
|
|
6271
6253
|
ys as TooltipArrow,
|
|
6272
6254
|
zs as TooltipContent,
|
|
6273
6255
|
xo as badge,
|
|
@@ -6283,15 +6265,15 @@ export {
|
|
|
6283
6265
|
k as radiusCva,
|
|
6284
6266
|
Le as shadowCva,
|
|
6285
6267
|
Co as stopPropagation,
|
|
6286
|
-
|
|
6287
|
-
|
|
6268
|
+
mi as toast,
|
|
6269
|
+
_c as useAlertDialog,
|
|
6288
6270
|
Jt as useButtonGroup,
|
|
6289
6271
|
X as useControlledState,
|
|
6290
6272
|
bo as useFallbackId,
|
|
6291
6273
|
st as useLatest,
|
|
6292
6274
|
ke as useLayoutContext,
|
|
6293
|
-
|
|
6275
|
+
Yc as useLayoutContextSelector,
|
|
6294
6276
|
M as useProvider,
|
|
6295
|
-
|
|
6296
|
-
$
|
|
6277
|
+
jc as useTextFilter,
|
|
6278
|
+
$c as useViewportSize
|
|
6297
6279
|
};
|