@overmap-ai/blocks 1.0.43 → 1.0.44-gcs.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/Layout/context.d.ts +1 -2
- package/dist/Layout/hooks.d.ts +3 -1
- package/dist/Table/Root.d.ts +1 -0
- package/dist/Table/context.d.ts +1 -0
- package/dist/Table/cva.d.ts +1 -0
- package/dist/Table/typings.d.ts +1 -0
- package/dist/blocks.js +926 -882
- package/dist/blocks.umd.cjs +1 -1
- package/package.json +3 -2
package/dist/blocks.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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 v, cx as x } from "class-variance-authority";
|
|
4
|
-
import { createContext as
|
|
4
|
+
import { createContext as P, useContext as j, memo as u, useMemo as w, useState as E, useCallback as h, useRef as q, useEffect as B, useId as Ye, useLayoutEffect as ue, use as b } from "react";
|
|
5
5
|
import * as Qe from "@radix-ui/react-avatar";
|
|
6
6
|
import * as ze from "@radix-ui/react-checkbox";
|
|
7
7
|
import { useMediaQuery as be } from "react-responsive";
|
|
@@ -9,27 +9,28 @@ import { CommandItem as Ns, CommandRoot as ws, CommandEmpty as Is, CommandGroup
|
|
|
9
9
|
import * as H from "@radix-ui/react-dialog";
|
|
10
10
|
import { DialogPortal as kt, DialogContent as Ms, DialogTitle as Os, DialogDescription as Vs, DialogOverlay as Ls, DialogTrigger as As } from "@radix-ui/react-dialog";
|
|
11
11
|
import { DayPicker as Ds } from "react-day-picker";
|
|
12
|
-
import { ChevronRight as Gs, ChevronLeft as Es, ChevronDown as Fs, ChevronUp as _s, AlertTriangle as Hs, RotateCcw as Bs, X as
|
|
12
|
+
import { ChevronRight as Gs, ChevronLeft as Es, ChevronDown as Fs, ChevronUp as _s, AlertTriangle as Hs, RotateCcw as Bs, X as $s, CircleAlertIcon as js, TriangleAlertIcon as qs, InfoIcon as Us, Check as Ws } from "lucide-react";
|
|
13
13
|
import * as ye from "@radix-ui/react-hover-card";
|
|
14
|
+
import { createContext as Ks, useContext as Xs, useContextSelector as Ys } from "use-context-selector";
|
|
14
15
|
import { Slot as me } from "@radix-ui/react-slot";
|
|
15
|
-
import { CSSTransition as
|
|
16
|
+
import { CSSTransition as Qs } from "react-transition-group";
|
|
16
17
|
import "react-transition-group/CSSTransition";
|
|
17
|
-
import
|
|
18
|
-
import { useListItem as Rt, useMergeRefs as ge, FloatingNode as Pt, FloatingPortal as Tt, FloatingOverlay as
|
|
18
|
+
import Js from "react-dom";
|
|
19
|
+
import { useListItem as Rt, useMergeRefs as ge, FloatingNode as Pt, FloatingPortal as Tt, FloatingOverlay as Zs, FloatingFocusManager as Mt, FloatingList as Ot, useFloatingNodeId as Vt, useFloating as Lt, offset as At, size as Dt, flip as Gt, shift as Et, hide as Ft, autoUpdate as _t, useRole as eo, useDismiss as Ht, useClick as Bt, useListNavigation as $t, useInteractions as jt, FloatingTree as to, useHover as ao, safePolygon as no } from "@floating-ui/react";
|
|
19
20
|
import * as Je from "@radix-ui/react-separator";
|
|
20
21
|
import * as Ze from "@radix-ui/react-one-time-password-field";
|
|
21
|
-
import { useErrorBoundary as
|
|
22
|
-
import * as
|
|
22
|
+
import { useErrorBoundary as so, ErrorBoundary as oo } from "react-error-boundary";
|
|
23
|
+
import * as Te from "@radix-ui/react-popover";
|
|
23
24
|
import * as Nt from "@radix-ui/react-progress";
|
|
24
25
|
import * as ae from "@radix-ui/react-radio-group";
|
|
25
|
-
import * as
|
|
26
|
+
import * as Oe from "@radix-ui/react-toggle-group";
|
|
26
27
|
import * as ne from "@radix-ui/react-tabs";
|
|
27
|
-
import * as
|
|
28
|
+
import * as Pe from "@radix-ui/react-slider";
|
|
28
29
|
import * as qt from "@radix-ui/react-switch";
|
|
29
|
-
import { toast as K, Toaster as
|
|
30
|
-
import * as
|
|
30
|
+
import { toast as K, Toaster as ro } from "sonner";
|
|
31
|
+
import * as co from "@radix-ui/react-toggle";
|
|
31
32
|
import * as de from "@radix-ui/react-tooltip";
|
|
32
|
-
const
|
|
33
|
+
const Ve = v(
|
|
33
34
|
[
|
|
34
35
|
"data-[state=open]:animate-in",
|
|
35
36
|
"data-[state=open]:fade-in-0",
|
|
@@ -93,12 +94,12 @@ const Oe = v(
|
|
|
93
94
|
className: ["rounded-full"]
|
|
94
95
|
}
|
|
95
96
|
]
|
|
96
|
-
}), Ut =
|
|
97
|
+
}), Ut = P({}), M = () => {
|
|
97
98
|
const n = j(Ut);
|
|
98
99
|
if (!n)
|
|
99
100
|
throw new Error("useProvider must be used within a Provider");
|
|
100
101
|
return n;
|
|
101
|
-
},
|
|
102
|
+
}, io = u((n) => {
|
|
102
103
|
const { accentColor: a, radius: t = "md", children: e } = n, s = w(
|
|
103
104
|
() => ({
|
|
104
105
|
accentColor: a,
|
|
@@ -106,9 +107,9 @@ const Oe = v(
|
|
|
106
107
|
}),
|
|
107
108
|
[a, t]
|
|
108
109
|
);
|
|
109
|
-
return /* @__PURE__ */
|
|
110
|
+
return /* @__PURE__ */ i(Ut.Provider, { value: s, children: e });
|
|
110
111
|
});
|
|
111
|
-
|
|
112
|
+
io.displayName = "Provider";
|
|
112
113
|
const Wt = v([
|
|
113
114
|
"fixed",
|
|
114
115
|
"inset-0",
|
|
@@ -165,37 +166,37 @@ const Wt = v([
|
|
|
165
166
|
}
|
|
166
167
|
}
|
|
167
168
|
), et = u((n) => {
|
|
168
|
-
const { radius: a } = M(), { ref: t, children: e, className: s, size: o, container: r, ...
|
|
169
|
+
const { radius: a } = M(), { ref: t, children: e, className: s, size: o, container: r, ...c } = n;
|
|
169
170
|
return /* @__PURE__ */ W($.Portal, { container: r, children: [
|
|
170
|
-
/* @__PURE__ */
|
|
171
|
-
/* @__PURE__ */
|
|
171
|
+
/* @__PURE__ */ i($.Overlay, { className: Wt({}), "data-floating-content": "" }),
|
|
172
|
+
/* @__PURE__ */ i(
|
|
172
173
|
$.Content,
|
|
173
174
|
{
|
|
174
175
|
className: x(Kt({ size: o }), k({ radius: a, maxLarge: !0 }), s),
|
|
175
176
|
ref: t,
|
|
176
177
|
"data-floating-content": "",
|
|
177
|
-
...
|
|
178
|
+
...c,
|
|
178
179
|
children: e
|
|
179
180
|
}
|
|
180
181
|
)
|
|
181
182
|
] });
|
|
182
183
|
});
|
|
183
184
|
et.displayName = "AlertDialogContent";
|
|
184
|
-
const Xt =
|
|
185
|
+
const Xt = P(() => {
|
|
185
186
|
throw new Error("No AlertDialogProvider found");
|
|
186
|
-
}),
|
|
187
|
+
}), Vc = () => {
|
|
187
188
|
const n = j(Xt);
|
|
188
189
|
if (!n)
|
|
189
190
|
throw new Error("No AlertDialogProvider found");
|
|
190
191
|
return n;
|
|
191
|
-
}, Yt =
|
|
192
|
+
}, Yt = P({}), lo = u((n) => {
|
|
192
193
|
const a = M(), {
|
|
193
194
|
children: t,
|
|
194
195
|
variant: e = "solid",
|
|
195
196
|
size: s = "md",
|
|
196
197
|
radius: o = a.radius,
|
|
197
198
|
accentColor: r = a.accentColor,
|
|
198
|
-
...
|
|
199
|
+
...c
|
|
199
200
|
} = n, l = w(
|
|
200
201
|
() => ({
|
|
201
202
|
variant: e,
|
|
@@ -205,9 +206,9 @@ const Xt = R(() => {
|
|
|
205
206
|
}),
|
|
206
207
|
[r, o, s, e]
|
|
207
208
|
);
|
|
208
|
-
return /* @__PURE__ */
|
|
209
|
+
return /* @__PURE__ */ i("div", { ...c, children: /* @__PURE__ */ i(Yt.Provider, { value: l, children: t }) });
|
|
209
210
|
});
|
|
210
|
-
|
|
211
|
+
lo.displayName = "Buttons";
|
|
211
212
|
const Qt = () => j(Yt), Jt = v(
|
|
212
213
|
[
|
|
213
214
|
"inline-flex",
|
|
@@ -366,15 +367,15 @@ const Qt = () => j(Yt), Jt = v(
|
|
|
366
367
|
children: s,
|
|
367
368
|
className: o,
|
|
368
369
|
variant: r = t.variant,
|
|
369
|
-
size:
|
|
370
|
+
size: c = t.size,
|
|
370
371
|
radius: l = t.radius ?? a.radius,
|
|
371
372
|
accentColor: d = t.accentColor ?? a.accentColor,
|
|
372
373
|
...m
|
|
373
374
|
} = n;
|
|
374
|
-
return /* @__PURE__ */
|
|
375
|
+
return /* @__PURE__ */ i(
|
|
375
376
|
"button",
|
|
376
377
|
{
|
|
377
|
-
className: x(Jt({ size:
|
|
378
|
+
className: x(Jt({ size: c, icon: !1, variant: r }), k({ radius: l, maxLarge: !1 }), o),
|
|
378
379
|
ref: e,
|
|
379
380
|
"data-accent-color": d,
|
|
380
381
|
...m,
|
|
@@ -389,15 +390,15 @@ const tt = u((n) => {
|
|
|
389
390
|
children: s,
|
|
390
391
|
className: o,
|
|
391
392
|
variant: r = t.variant,
|
|
392
|
-
size:
|
|
393
|
+
size: c = t.size,
|
|
393
394
|
radius: l = t.radius ?? a.radius,
|
|
394
395
|
accentColor: d = t.accentColor ?? a.accentColor,
|
|
395
396
|
...m
|
|
396
397
|
} = n;
|
|
397
|
-
return /* @__PURE__ */
|
|
398
|
+
return /* @__PURE__ */ i(
|
|
398
399
|
"button",
|
|
399
400
|
{
|
|
400
|
-
className: x(Jt({ size:
|
|
401
|
+
className: x(Jt({ size: c, icon: !0, variant: r }), k({ radius: l, maxLarge: !1 }), o),
|
|
401
402
|
ref: e,
|
|
402
403
|
"data-accent-color": d,
|
|
403
404
|
...m,
|
|
@@ -406,14 +407,14 @@ const tt = u((n) => {
|
|
|
406
407
|
);
|
|
407
408
|
});
|
|
408
409
|
tt.displayName = "IconButton";
|
|
409
|
-
const
|
|
410
|
+
const uo = u((n) => {
|
|
410
411
|
const { children: a } = n, [t, e] = E(!1), [s, o] = E(null), r = h(
|
|
411
412
|
(l) => {
|
|
412
413
|
var d;
|
|
413
414
|
e(l), !l && ((d = s == null ? void 0 : s.onClose) == null || d.call(s));
|
|
414
415
|
},
|
|
415
416
|
[s]
|
|
416
|
-
),
|
|
417
|
+
), c = h(
|
|
417
418
|
(l) => {
|
|
418
419
|
if (t) throw new Error("AlertDialog is already open");
|
|
419
420
|
e(!0), o({
|
|
@@ -425,22 +426,22 @@ const io = u((n) => {
|
|
|
425
426
|
},
|
|
426
427
|
[t]
|
|
427
428
|
);
|
|
428
|
-
return /* @__PURE__ */ W(Xt.Provider, { value:
|
|
429
|
+
return /* @__PURE__ */ W(Xt.Provider, { value: c, children: [
|
|
429
430
|
a,
|
|
430
|
-
/* @__PURE__ */
|
|
431
|
+
/* @__PURE__ */ i($.Root, { open: t, onOpenChange: r, children: /* @__PURE__ */ i(et, { size: s == null ? void 0 : s.size, children: /* @__PURE__ */ W("div", { className: "flex flex-col gap-4", children: [
|
|
431
432
|
/* @__PURE__ */ W("div", { className: "flex flex-col gap-1", children: [
|
|
432
|
-
/* @__PURE__ */
|
|
433
|
-
/* @__PURE__ */
|
|
433
|
+
/* @__PURE__ */ i($.Title, { className: "font-medium", children: s == null ? void 0 : s.title }),
|
|
434
|
+
/* @__PURE__ */ i($.Description, { children: s == null ? void 0 : s.description })
|
|
434
435
|
] }),
|
|
435
436
|
/* @__PURE__ */ W("div", { className: "flex justify-end gap-2", children: [
|
|
436
|
-
/* @__PURE__ */
|
|
437
|
-
/* @__PURE__ */
|
|
437
|
+
/* @__PURE__ */ i($.Cancel, { onClick: s == null ? void 0 : s.onCancel, children: /* @__PURE__ */ i(We, { variant: "soft", size: s == null ? void 0 : s.size, accentColor: "base", children: s == null ? void 0 : s.cancel }) }),
|
|
438
|
+
/* @__PURE__ */ i($.Action, { onClick: s == null ? void 0 : s.onAction, children: /* @__PURE__ */ i(We, { variant: "solid", size: s == null ? void 0 : s.size, children: s == null ? void 0 : s.action }) })
|
|
438
439
|
] })
|
|
439
440
|
] }) }) })
|
|
440
441
|
] });
|
|
441
442
|
});
|
|
442
|
-
|
|
443
|
-
const
|
|
443
|
+
uo.displayName = "AlertDialogProvider";
|
|
444
|
+
const Lc = {
|
|
444
445
|
Content: et,
|
|
445
446
|
Trigger: $.Trigger,
|
|
446
447
|
Root: $.Root,
|
|
@@ -448,7 +449,7 @@ const Ti = {
|
|
|
448
449
|
Description: $.Description,
|
|
449
450
|
Action: $.Action,
|
|
450
451
|
Cancel: $.Cancel
|
|
451
|
-
}, Zt =
|
|
452
|
+
}, Zt = P({}), mo = v(["shrink-0", "select-none", "inline-block", "align-middle"], {
|
|
452
453
|
variants: {
|
|
453
454
|
size: {
|
|
454
455
|
xs: ["h-6", "w-6", "text-xs"],
|
|
@@ -461,7 +462,7 @@ const Ti = {
|
|
|
461
462
|
defaultVariants: {
|
|
462
463
|
size: "md"
|
|
463
464
|
}
|
|
464
|
-
}),
|
|
465
|
+
}), go = v(["flex", "items-center", "justify-center", "size-full", "rounded-[inherit]"], {
|
|
465
466
|
variants: {
|
|
466
467
|
variant: {
|
|
467
468
|
solid: ["bg-(--accent-9)", "text-(--accent-contrast)"],
|
|
@@ -475,12 +476,12 @@ const Ti = {
|
|
|
475
476
|
}
|
|
476
477
|
}), ea = u((n) => {
|
|
477
478
|
const { ref: a, children: t, className: e, ...s } = n, { variant: o } = j(Zt);
|
|
478
|
-
return /* @__PURE__ */
|
|
479
|
+
return /* @__PURE__ */ i(Qe.AvatarFallback, { className: x(go({ variant: o }), e), ref: a, ...s, children: t });
|
|
479
480
|
});
|
|
480
481
|
ea.displayName = "AvatarFallback";
|
|
481
482
|
const ta = u((n) => {
|
|
482
483
|
const { ref: a, className: t, ...e } = n;
|
|
483
|
-
return /* @__PURE__ */
|
|
484
|
+
return /* @__PURE__ */ i(
|
|
484
485
|
Qe.Image,
|
|
485
486
|
{
|
|
486
487
|
className: x("object-cover", "rounded-[inherit]", "w-full", "h-full", t),
|
|
@@ -497,27 +498,27 @@ const aa = u((n) => {
|
|
|
497
498
|
className: s,
|
|
498
499
|
size: o,
|
|
499
500
|
variant: r = "solid",
|
|
500
|
-
accentColor:
|
|
501
|
+
accentColor: c = a.accentColor,
|
|
501
502
|
radius: l = a.radius,
|
|
502
503
|
...d
|
|
503
504
|
} = n;
|
|
504
|
-
return /* @__PURE__ */
|
|
505
|
+
return /* @__PURE__ */ i(
|
|
505
506
|
Qe.Root,
|
|
506
507
|
{
|
|
507
|
-
className: x(
|
|
508
|
+
className: x(mo({ size: o }), k({ radius: l, maxLarge: !1 }), s),
|
|
508
509
|
ref: t,
|
|
509
|
-
"data-accent-color":
|
|
510
|
+
"data-accent-color": c,
|
|
510
511
|
...d,
|
|
511
|
-
children: /* @__PURE__ */
|
|
512
|
+
children: /* @__PURE__ */ i(Zt.Provider, { value: { variant: r }, children: e })
|
|
512
513
|
}
|
|
513
514
|
);
|
|
514
515
|
});
|
|
515
516
|
aa.displayName = "AvatarRoot";
|
|
516
|
-
const
|
|
517
|
+
const Ac = {
|
|
517
518
|
Fallback: ea,
|
|
518
519
|
Image: ta,
|
|
519
520
|
Root: aa
|
|
520
|
-
},
|
|
521
|
+
}, po = v(["inline-flex", "items-center", "shrink-0", "whitespace-nowrap"], {
|
|
521
522
|
variants: {
|
|
522
523
|
icon: {
|
|
523
524
|
true: ["justify-center"],
|
|
@@ -595,22 +596,22 @@ const Mi = {
|
|
|
595
596
|
variant: "solid",
|
|
596
597
|
icon: !1
|
|
597
598
|
}
|
|
598
|
-
}),
|
|
599
|
+
}), xo = u((n) => {
|
|
599
600
|
const a = M(), {
|
|
600
601
|
ref: t,
|
|
601
602
|
children: e,
|
|
602
603
|
className: s,
|
|
603
604
|
accentColor: o = a.accentColor,
|
|
604
605
|
radius: r = a.radius,
|
|
605
|
-
variant:
|
|
606
|
+
variant: c,
|
|
606
607
|
size: l,
|
|
607
608
|
icon: d,
|
|
608
609
|
...m
|
|
609
610
|
} = n;
|
|
610
|
-
return /* @__PURE__ */
|
|
611
|
+
return /* @__PURE__ */ i(
|
|
611
612
|
"span",
|
|
612
613
|
{
|
|
613
|
-
className: x(
|
|
614
|
+
className: x(po({ variant: c, size: l, icon: d }), k({ radius: r, maxLarge: !1 }), s),
|
|
614
615
|
ref: t,
|
|
615
616
|
"data-accent-color": o,
|
|
616
617
|
...m,
|
|
@@ -618,8 +619,8 @@ const Mi = {
|
|
|
618
619
|
}
|
|
619
620
|
);
|
|
620
621
|
});
|
|
621
|
-
|
|
622
|
-
const
|
|
622
|
+
xo.displayName = "Badge";
|
|
623
|
+
const fo = v([], {
|
|
623
624
|
variants: {
|
|
624
625
|
variant: {
|
|
625
626
|
soft: ["bg-(--accent-a2)"],
|
|
@@ -638,32 +639,32 @@ const go = v([], {
|
|
|
638
639
|
size: "md",
|
|
639
640
|
variant: "surface"
|
|
640
641
|
}
|
|
641
|
-
}),
|
|
642
|
+
}), ho = u((n) => {
|
|
642
643
|
const a = M(), {
|
|
643
644
|
ref: t,
|
|
644
645
|
children: e,
|
|
645
646
|
className: s,
|
|
646
647
|
size: o = "md",
|
|
647
648
|
variant: r = "surface",
|
|
648
|
-
accentColor:
|
|
649
|
+
accentColor: c = "base",
|
|
649
650
|
radius: l = a.radius,
|
|
650
651
|
...d
|
|
651
652
|
} = n;
|
|
652
|
-
return /* @__PURE__ */
|
|
653
|
+
return /* @__PURE__ */ i(
|
|
653
654
|
"div",
|
|
654
655
|
{
|
|
655
656
|
ref: t,
|
|
656
|
-
className: x(
|
|
657
|
-
"data-accent-color":
|
|
657
|
+
className: x(fo({ size: o, variant: r }), k({ radius: l, maxLarge: !0 }), s),
|
|
658
|
+
"data-accent-color": c,
|
|
658
659
|
...d,
|
|
659
660
|
children: e
|
|
660
661
|
}
|
|
661
662
|
);
|
|
662
663
|
});
|
|
663
|
-
|
|
664
|
+
ho.displayName = "Card";
|
|
664
665
|
const na = u((n) => {
|
|
665
666
|
const { ref: a, children: t, className: e, ...s } = n;
|
|
666
|
-
return /* @__PURE__ */
|
|
667
|
+
return /* @__PURE__ */ i(
|
|
667
668
|
ze.CheckboxIndicator,
|
|
668
669
|
{
|
|
669
670
|
className: x("flex items-center justify-center", e),
|
|
@@ -723,14 +724,14 @@ const at = v(
|
|
|
723
724
|
className: s,
|
|
724
725
|
variant: o,
|
|
725
726
|
size: r,
|
|
726
|
-
radius:
|
|
727
|
+
radius: c = a.radius,
|
|
727
728
|
accentColor: l = a.accentColor,
|
|
728
729
|
...d
|
|
729
730
|
} = n;
|
|
730
|
-
return /* @__PURE__ */
|
|
731
|
+
return /* @__PURE__ */ i(
|
|
731
732
|
ze.Root,
|
|
732
733
|
{
|
|
733
|
-
className: x(at({ variant: o, size: r }), k({ radius:
|
|
734
|
+
className: x(at({ variant: o, size: r }), k({ radius: c, maxLarge: !0 }), s),
|
|
734
735
|
ref: t,
|
|
735
736
|
"data-accent-color": l,
|
|
736
737
|
...d,
|
|
@@ -739,16 +740,16 @@ const at = v(
|
|
|
739
740
|
);
|
|
740
741
|
});
|
|
741
742
|
sa.displayName = "CheckboxRoot";
|
|
742
|
-
const
|
|
743
|
+
const Dc = {
|
|
743
744
|
Root: sa,
|
|
744
745
|
Indicator: na
|
|
745
|
-
}, Ne =
|
|
746
|
-
const { xs: a, sm: t, md: e, lg: s, xl: o } = n, [r,
|
|
746
|
+
}, Ne = P({}), Z = P({}), Gc = (n) => {
|
|
747
|
+
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 });
|
|
747
748
|
return ue(() => {
|
|
748
|
-
d((S) => (
|
|
749
|
+
d((S) => (c(S), C ? "xl" : f ? "lg" : p ? "md" : g ? "sm" : m ? "xs" : "initial"));
|
|
749
750
|
}, [f, p, g, C, m]), { size: l, prevSize: r, xs: m, sm: g, md: p, lg: f, xl: C };
|
|
750
751
|
};
|
|
751
|
-
function
|
|
752
|
+
function Ec(n, a) {
|
|
752
753
|
const [t, e] = E([]), [s, o] = E("");
|
|
753
754
|
return B(() => {
|
|
754
755
|
e(n.filter((r) => a(r, s)));
|
|
@@ -765,7 +766,7 @@ function X(n, a, t) {
|
|
|
765
766
|
a !== void 0 && s(a);
|
|
766
767
|
}, [a]), [a ?? e, o];
|
|
767
768
|
}
|
|
768
|
-
function
|
|
769
|
+
function vo(n) {
|
|
769
770
|
const a = Ye();
|
|
770
771
|
return n ?? a;
|
|
771
772
|
}
|
|
@@ -797,7 +798,7 @@ function we(n) {
|
|
|
797
798
|
};
|
|
798
799
|
};
|
|
799
800
|
}
|
|
800
|
-
const
|
|
801
|
+
const bo = (n) => {
|
|
801
802
|
n.stopPropagation();
|
|
802
803
|
};
|
|
803
804
|
function oe(n) {
|
|
@@ -806,7 +807,7 @@ function oe(n) {
|
|
|
806
807
|
function Ie(n) {
|
|
807
808
|
return n === !0 ? "checked" : n === !1 ? "unchecked" : "indeterminate";
|
|
808
809
|
}
|
|
809
|
-
function
|
|
810
|
+
function Le(n) {
|
|
810
811
|
return n ? "active" : "inactive";
|
|
811
812
|
}
|
|
812
813
|
function Q(n) {
|
|
@@ -815,10 +816,10 @@ function Q(n) {
|
|
|
815
816
|
function pe(n) {
|
|
816
817
|
return n ? "open" : "closed";
|
|
817
818
|
}
|
|
818
|
-
const
|
|
819
|
-
const { children: t, defaultValues: e, values: s, onValuesChange: o, equalityFn: r } = a,
|
|
820
|
-
(y, V) =>
|
|
821
|
-
[
|
|
819
|
+
const Ae = _(function(a) {
|
|
820
|
+
const { children: t, defaultValues: e, values: s, onValuesChange: o, equalityFn: r } = a, c = nt(r), [l, d] = E(/* @__PURE__ */ new Set()), [m, g] = X(e ?? [], s, o), p = h(
|
|
821
|
+
(y, V) => c.current ? V.some((A) => c.current(A, y)) : V.includes(y),
|
|
822
|
+
[c]
|
|
822
823
|
), f = h((y) => (d((V) => {
|
|
823
824
|
const A = new Set(V);
|
|
824
825
|
return A.add(y), A;
|
|
@@ -830,47 +831,47 @@ const Le = _(function(a) {
|
|
|
830
831
|
}), []), C = h((y) => p(y, m), [p, m]), S = h(
|
|
831
832
|
(y) => {
|
|
832
833
|
C(y) ? g(
|
|
833
|
-
m.filter((V) =>
|
|
834
|
+
m.filter((V) => c.current ? !c.current(V, y) : V !== y)
|
|
834
835
|
) : g([...m, y]);
|
|
835
836
|
},
|
|
836
|
-
[
|
|
837
|
+
[c, C, g, m]
|
|
837
838
|
), 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]), T = h(() => {
|
|
838
839
|
g(z ? [] : Array.from(l.values()));
|
|
839
840
|
}, [z, l, g]), L = w(
|
|
840
841
|
() => ({ selected: C, selectValue: S, allSelected: z, someSelected: N, toggleSelectAll: T, registerValue: f }),
|
|
841
842
|
[z, f, S, C, N, T]
|
|
842
843
|
);
|
|
843
|
-
return /* @__PURE__ */
|
|
844
|
+
return /* @__PURE__ */ i(Z, { value: L, children: t });
|
|
844
845
|
}), st = _(function(a) {
|
|
845
|
-
const { children: t, defaultValue: e, value: s, onValueChange: o, equalityFn: r } = a,
|
|
846
|
-
(f) =>
|
|
847
|
-
[l,
|
|
846
|
+
const { children: t, defaultValue: e, value: s, onValueChange: o, equalityFn: r } = a, c = nt(r), [l, d] = X(e, s, o), m = h(
|
|
847
|
+
(f) => c.current ? c.current(f, l) : f === l,
|
|
848
|
+
[l, c]
|
|
848
849
|
), g = h(
|
|
849
850
|
(f) => {
|
|
850
851
|
m(f) || d(f);
|
|
851
852
|
},
|
|
852
853
|
[m, d]
|
|
853
854
|
), p = w(() => ({ selected: m, selectValue: g }), [g, m]);
|
|
854
|
-
return /* @__PURE__ */
|
|
855
|
+
return /* @__PURE__ */ i(Ne, { value: p, children: t });
|
|
855
856
|
}), ot = _(function(a) {
|
|
856
|
-
const { children: t, defaultValue: e = void 0, value: s, onValueChange: o, equalityFn: r } = a,
|
|
857
|
-
(f) => l !== void 0 && (
|
|
858
|
-
[l,
|
|
857
|
+
const { children: t, defaultValue: e = void 0, value: s, onValueChange: o, equalityFn: r } = a, c = nt(r), [l, d] = X(e, s, o), m = h(
|
|
858
|
+
(f) => l !== void 0 && (c.current ? c.current(f, l) : f === l),
|
|
859
|
+
[l, c]
|
|
859
860
|
), g = h(
|
|
860
861
|
(f) => {
|
|
861
862
|
d(m(f) ? void 0 : f);
|
|
862
863
|
},
|
|
863
864
|
[m, d]
|
|
864
865
|
), p = w(() => ({ selected: m, selectValue: g }), [m, g]);
|
|
865
|
-
return /* @__PURE__ */
|
|
866
|
-
}), rt =
|
|
866
|
+
return /* @__PURE__ */ i(Ne, { value: p, children: t });
|
|
867
|
+
}), rt = P({}), oa = u((n) => {
|
|
867
868
|
const a = b(rt), {
|
|
868
869
|
ref: t,
|
|
869
870
|
className: e,
|
|
870
871
|
value: s,
|
|
871
872
|
disabled: o,
|
|
872
873
|
accentColor: r = a.accentColor,
|
|
873
|
-
variant:
|
|
874
|
+
variant: c = a.variant,
|
|
874
875
|
size: l = a.size,
|
|
875
876
|
radius: d = a.radius,
|
|
876
877
|
...m
|
|
@@ -879,11 +880,11 @@ const Le = _(function(a) {
|
|
|
879
880
|
const C = g(s), S = a.disabled || o, z = h(() => {
|
|
880
881
|
p(s);
|
|
881
882
|
}, [p, s]);
|
|
882
|
-
return /* @__PURE__ */
|
|
883
|
+
return /* @__PURE__ */ i(
|
|
883
884
|
ze.Root,
|
|
884
885
|
{
|
|
885
886
|
ref: t,
|
|
886
|
-
className: x(at({ variant:
|
|
887
|
+
className: x(at({ variant: c, size: l }), k({ radius: d, maxLarge: !0 }), e),
|
|
887
888
|
name: a.name,
|
|
888
889
|
required: a.required,
|
|
889
890
|
disabled: S,
|
|
@@ -898,17 +899,17 @@ const Le = _(function(a) {
|
|
|
898
899
|
oa.displayName = "CheckboxGroupItem";
|
|
899
900
|
const ra = u((n) => {
|
|
900
901
|
const { ref: a, className: t, ...e } = n;
|
|
901
|
-
return /* @__PURE__ */
|
|
902
|
+
return /* @__PURE__ */ i(ze.Indicator, { className: x("flex items-center justify-center", t), ref: a, ...e });
|
|
902
903
|
});
|
|
903
904
|
ra.displayName = "CheckboxGroupItemIndicator";
|
|
904
|
-
const
|
|
905
|
+
const ca = u((n) => {
|
|
905
906
|
const a = M(), {
|
|
906
907
|
ref: t,
|
|
907
908
|
defaultValues: e,
|
|
908
909
|
values: s,
|
|
909
910
|
onValuesChange: o,
|
|
910
911
|
children: r,
|
|
911
|
-
name:
|
|
912
|
+
name: c,
|
|
912
913
|
required: l,
|
|
913
914
|
disabled: d,
|
|
914
915
|
accentColor: m = a.accentColor,
|
|
@@ -918,7 +919,7 @@ const ia = u((n) => {
|
|
|
918
919
|
...C
|
|
919
920
|
} = n, S = w(
|
|
920
921
|
() => ({
|
|
921
|
-
name:
|
|
922
|
+
name: c,
|
|
922
923
|
required: l,
|
|
923
924
|
disabled: d,
|
|
924
925
|
// style props
|
|
@@ -927,9 +928,9 @@ const ia = u((n) => {
|
|
|
927
928
|
variant: p,
|
|
928
929
|
radius: g
|
|
929
930
|
}),
|
|
930
|
-
[m, d,
|
|
931
|
+
[m, d, c, g, l, f, p]
|
|
931
932
|
);
|
|
932
|
-
return /* @__PURE__ */
|
|
933
|
+
return /* @__PURE__ */ i(
|
|
933
934
|
"div",
|
|
934
935
|
{
|
|
935
936
|
ref: t,
|
|
@@ -938,8 +939,8 @@ const ia = u((n) => {
|
|
|
938
939
|
"data-accent-color": m,
|
|
939
940
|
"aria-disabled": Q(!!d),
|
|
940
941
|
...C,
|
|
941
|
-
children: /* @__PURE__ */
|
|
942
|
-
|
|
942
|
+
children: /* @__PURE__ */ i(rt.Provider, { value: S, children: /* @__PURE__ */ i(
|
|
943
|
+
Ae,
|
|
943
944
|
{
|
|
944
945
|
defaultValues: e,
|
|
945
946
|
values: s,
|
|
@@ -950,23 +951,23 @@ const ia = u((n) => {
|
|
|
950
951
|
}
|
|
951
952
|
);
|
|
952
953
|
});
|
|
953
|
-
|
|
954
|
-
const
|
|
954
|
+
ca.displayName = "CheckboxGroupRoot";
|
|
955
|
+
const ia = u((n) => {
|
|
955
956
|
const a = b(rt), {
|
|
956
957
|
ref: t,
|
|
957
958
|
className: e,
|
|
958
959
|
disabled: s,
|
|
959
960
|
accentColor: o = a.accentColor,
|
|
960
961
|
variant: r = a.variant,
|
|
961
|
-
size:
|
|
962
|
+
size: c = a.size,
|
|
962
963
|
radius: l = a.radius,
|
|
963
964
|
...d
|
|
964
965
|
} = n, { allSelected: m, someSelected: g, toggleSelectAll: p } = b(Z), f = m ? !0 : g ? "indeterminate" : !1, C = a.disabled || s;
|
|
965
|
-
return /* @__PURE__ */
|
|
966
|
+
return /* @__PURE__ */ i(
|
|
966
967
|
ze.Root,
|
|
967
968
|
{
|
|
968
969
|
ref: t,
|
|
969
|
-
className: x(at({ variant: r, size:
|
|
970
|
+
className: x(at({ variant: r, size: c }), k({ radius: l, maxLarge: !0 }), e),
|
|
970
971
|
name: a.name,
|
|
971
972
|
required: a.required,
|
|
972
973
|
disabled: C,
|
|
@@ -977,15 +978,15 @@ const ca = u((n) => {
|
|
|
977
978
|
}
|
|
978
979
|
);
|
|
979
980
|
});
|
|
980
|
-
|
|
981
|
-
const
|
|
982
|
-
Root:
|
|
981
|
+
ia.displayName = "CheckboxGroupSelectAllItem";
|
|
982
|
+
const Fc = {
|
|
983
|
+
Root: ca,
|
|
983
984
|
Item: oa,
|
|
984
|
-
SelectAllItem:
|
|
985
|
+
SelectAllItem: ia,
|
|
985
986
|
ItemIndicator: ra
|
|
986
|
-
}, Se =
|
|
987
|
+
}, Se = P({}), De = u((n) => {
|
|
987
988
|
const { children: a, ref: t, className: e, ...s } = n, o = b(Se), r = typeof a == "function" ? a(o) : a;
|
|
988
|
-
return /* @__PURE__ */
|
|
989
|
+
return /* @__PURE__ */ i(
|
|
989
990
|
"span",
|
|
990
991
|
{
|
|
991
992
|
ref: t,
|
|
@@ -1002,13 +1003,13 @@ const Ai = {
|
|
|
1002
1003
|
}
|
|
1003
1004
|
);
|
|
1004
1005
|
});
|
|
1005
|
-
|
|
1006
|
+
De.displayName = "CheckedIndicator";
|
|
1006
1007
|
const la = u((n) => {
|
|
1007
1008
|
const { ref: a, children: t, ...e } = n;
|
|
1008
|
-
return /* @__PURE__ */
|
|
1009
|
+
return /* @__PURE__ */ i(De, { ref: a, ...e, children: t });
|
|
1009
1010
|
});
|
|
1010
1011
|
la.displayName = "CommandMenuCheckboxIndicator";
|
|
1011
|
-
const re =
|
|
1012
|
+
const re = P({}), ct = P(!1), da = P(!1), it = P({}), ua = P({}), Co = v(
|
|
1012
1013
|
[
|
|
1013
1014
|
"ring",
|
|
1014
1015
|
"ring-(--base-6)",
|
|
@@ -1043,7 +1044,7 @@ const re = R({}), it = R(!1), da = R(!1), ct = R({}), ua = R({}), ho = v(
|
|
|
1043
1044
|
size: "md"
|
|
1044
1045
|
}
|
|
1045
1046
|
}
|
|
1046
|
-
),
|
|
1047
|
+
), yo = v([
|
|
1047
1048
|
"fixed",
|
|
1048
1049
|
"inset-0",
|
|
1049
1050
|
"duration-200",
|
|
@@ -1053,7 +1054,7 @@ const re = R({}), it = R(!1), da = R(!1), ct = R({}), ua = R({}), ho = v(
|
|
|
1053
1054
|
"data-[state='open']:fade-in-0",
|
|
1054
1055
|
"data-[state='closed']:animate-out",
|
|
1055
1056
|
"data-[state='closed']:fade-out-0"
|
|
1056
|
-
]),
|
|
1057
|
+
]), zo = v(
|
|
1057
1058
|
["[scrollbar-width:thin]", "[scrollbar-color:var(--base-6)_transparent]", "overflow-auto", "h-max", "max-h-100"],
|
|
1058
1059
|
{
|
|
1059
1060
|
variants: {
|
|
@@ -1069,7 +1070,7 @@ const re = R({}), it = R(!1), da = R(!1), ct = R({}), ua = R({}), ho = v(
|
|
|
1069
1070
|
size: "md"
|
|
1070
1071
|
}
|
|
1071
1072
|
}
|
|
1072
|
-
),
|
|
1073
|
+
), No = v(["outline-none", "w-full", "placeholder-(--base-a9)"], {
|
|
1073
1074
|
variants: {
|
|
1074
1075
|
size: {
|
|
1075
1076
|
xs: ["h-12", "px-5.25", "text-base"],
|
|
@@ -1079,7 +1080,7 @@ const re = R({}), it = R(!1), da = R(!1), ct = R({}), ua = R({}), ho = v(
|
|
|
1079
1080
|
xl: ["h-16", "px-9.25", "text-xl"]
|
|
1080
1081
|
}
|
|
1081
1082
|
}
|
|
1082
|
-
}),
|
|
1083
|
+
}), wo = v(["h-px", "bg-(--base-a6)", "w-full"], {
|
|
1083
1084
|
variants: {
|
|
1084
1085
|
spacing: {
|
|
1085
1086
|
true: [],
|
|
@@ -1100,7 +1101,7 @@ const re = R({}), it = R(!1), da = R(!1), ct = R({}), ua = R({}), ho = v(
|
|
|
1100
1101
|
{ spacing: !0, size: "lg", className: ["my-2.5"] },
|
|
1101
1102
|
{ spacing: !0, size: "xl", className: ["my-2.75"] }
|
|
1102
1103
|
]
|
|
1103
|
-
}),
|
|
1104
|
+
}), Io = v(
|
|
1104
1105
|
[
|
|
1105
1106
|
"relative",
|
|
1106
1107
|
"flex",
|
|
@@ -1156,7 +1157,7 @@ const re = R({}), it = R(!1), da = R(!1), ct = R({}), ua = R({}), ho = v(
|
|
|
1156
1157
|
variant: "soft"
|
|
1157
1158
|
}
|
|
1158
1159
|
}
|
|
1159
|
-
),
|
|
1160
|
+
), So = v(["flex", "justify-center", "text-(--base-a11)"], {
|
|
1160
1161
|
variants: {
|
|
1161
1162
|
size: {
|
|
1162
1163
|
xs: ["py-3.5"],
|
|
@@ -1166,7 +1167,7 @@ const re = R({}), it = R(!1), da = R(!1), ct = R({}), ua = R({}), ho = v(
|
|
|
1166
1167
|
xl: ["py-5.5"]
|
|
1167
1168
|
}
|
|
1168
1169
|
}
|
|
1169
|
-
}),
|
|
1170
|
+
}), ko = v(
|
|
1170
1171
|
[
|
|
1171
1172
|
"[&_[cmdk-group-heading]]:text-(--base-a10)",
|
|
1172
1173
|
"[&_[cmdk-group-heading]]:flex",
|
|
@@ -1208,14 +1209,14 @@ const re = R({}), it = R(!1), da = R(!1), ct = R({}), ua = R({}), ho = v(
|
|
|
1208
1209
|
}
|
|
1209
1210
|
}
|
|
1210
1211
|
}
|
|
1211
|
-
),
|
|
1212
|
-
const { className: a, ref: t, closeOnSelect: e = !0, onSelect: s, filterValue: o, ...r } = n, { size:
|
|
1212
|
+
), ce = u((n) => {
|
|
1213
|
+
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(ua), g = h(() => {
|
|
1213
1214
|
s == null || s(), e && m(!1);
|
|
1214
1215
|
}, [e, s, m]);
|
|
1215
|
-
return /* @__PURE__ */
|
|
1216
|
+
return /* @__PURE__ */ i(
|
|
1216
1217
|
Ns,
|
|
1217
1218
|
{
|
|
1218
|
-
className: x(
|
|
1219
|
+
className: x(Io({ size: c, variant: l, radius: d }), a),
|
|
1219
1220
|
ref: t,
|
|
1220
1221
|
onSelect: g,
|
|
1221
1222
|
value: o,
|
|
@@ -1223,12 +1224,12 @@ const re = R({}), it = R(!1), da = R(!1), ct = R({}), ua = R({}), ho = v(
|
|
|
1223
1224
|
}
|
|
1224
1225
|
);
|
|
1225
1226
|
});
|
|
1226
|
-
|
|
1227
|
+
ce.displayName = "CommandMenuItem";
|
|
1227
1228
|
const ma = u((n) => {
|
|
1228
|
-
const { children: a, ref: t, checked: e, onCheckedChange: s, onSelect: o, ...r } = n,
|
|
1229
|
+
const { children: a, ref: t, checked: e, onCheckedChange: s, onSelect: o, ...r } = n, c = h(() => {
|
|
1229
1230
|
o == null || o(), s(e !== !0);
|
|
1230
1231
|
}, [e, s, o]);
|
|
1231
|
-
return /* @__PURE__ */
|
|
1232
|
+
return /* @__PURE__ */ i(da, { value: e, children: /* @__PURE__ */ i(ce, { ref: t, onSelect: c, "data-state": Ie(e), ...r, children: a }) });
|
|
1232
1233
|
});
|
|
1233
1234
|
ma.displayName = "CommandMenuCheckboxItem";
|
|
1234
1235
|
const ga = u((n) => {
|
|
@@ -1239,7 +1240,7 @@ const ga = u((n) => {
|
|
|
1239
1240
|
// DialogContent props
|
|
1240
1241
|
forceMount: o,
|
|
1241
1242
|
onOpenAutoFocus: r,
|
|
1242
|
-
onCloseAutoFocus:
|
|
1243
|
+
onCloseAutoFocus: c,
|
|
1243
1244
|
onEscapeKeyDown: l,
|
|
1244
1245
|
onPointerDownOutside: d,
|
|
1245
1246
|
onInteractOutside: m,
|
|
@@ -1255,12 +1256,12 @@ const ga = u((n) => {
|
|
|
1255
1256
|
radius: C,
|
|
1256
1257
|
accentColor: f
|
|
1257
1258
|
}), [f, C, p, g]);
|
|
1258
|
-
return /* @__PURE__ */
|
|
1259
|
+
return /* @__PURE__ */ i(kt, { children: /* @__PURE__ */ i(
|
|
1259
1260
|
Ms,
|
|
1260
1261
|
{
|
|
1261
1262
|
forceMount: o,
|
|
1262
1263
|
onOpenAutoFocus: r,
|
|
1263
|
-
onCloseAutoFocus:
|
|
1264
|
+
onCloseAutoFocus: c,
|
|
1264
1265
|
onEscapeKeyDown: l,
|
|
1265
1266
|
onPointerDownOutside: d,
|
|
1266
1267
|
onInteractOutside: m,
|
|
@@ -1269,14 +1270,14 @@ const ga = u((n) => {
|
|
|
1269
1270
|
children: /* @__PURE__ */ W(
|
|
1270
1271
|
ws,
|
|
1271
1272
|
{
|
|
1272
|
-
className: x(
|
|
1273
|
+
className: x(Co({ size: p }), k({ radius: C, maxLarge: !0 }), e),
|
|
1273
1274
|
ref: s,
|
|
1274
1275
|
"data-accent-color": f,
|
|
1275
1276
|
...S,
|
|
1276
1277
|
children: [
|
|
1277
|
-
/* @__PURE__ */
|
|
1278
|
-
/* @__PURE__ */
|
|
1279
|
-
/* @__PURE__ */
|
|
1278
|
+
/* @__PURE__ */ i(Os, { className: "sr-only", children: n.label }),
|
|
1279
|
+
/* @__PURE__ */ i(Vs, { className: "sr-only", children: "Use the command menu to trigger commands." }),
|
|
1280
|
+
/* @__PURE__ */ i(re, { value: z, children: t })
|
|
1280
1281
|
]
|
|
1281
1282
|
}
|
|
1282
1283
|
)
|
|
@@ -1286,25 +1287,25 @@ const ga = u((n) => {
|
|
|
1286
1287
|
ga.displayName = "CommandMenuContent";
|
|
1287
1288
|
const pa = u((n) => {
|
|
1288
1289
|
const { className: a, ref: t, ...e } = n, { size: s } = b(re);
|
|
1289
|
-
return /* @__PURE__ */
|
|
1290
|
+
return /* @__PURE__ */ i(Is, { className: x(So({ size: s }), a), ref: t, ...e });
|
|
1290
1291
|
});
|
|
1291
1292
|
pa.displayName = "CommandMenuEmpty";
|
|
1292
|
-
const
|
|
1293
|
+
const Ge = u((n) => {
|
|
1293
1294
|
const { className: a, ref: t, ...e } = n, { size: s } = b(re);
|
|
1294
|
-
return /* @__PURE__ */
|
|
1295
|
+
return /* @__PURE__ */ i(Ss, { className: x(ko({ size: s }), a), ref: t, ...e });
|
|
1295
1296
|
});
|
|
1296
|
-
|
|
1297
|
+
Ge.displayName = "CommandMenuGroup";
|
|
1297
1298
|
const xa = u((n) => {
|
|
1298
1299
|
const { className: a, ref: t, ...e } = n, { size: s } = b(re);
|
|
1299
|
-
return /* @__PURE__ */
|
|
1300
|
+
return /* @__PURE__ */ i(ks, { className: x(No({ size: s }), a), ref: t, ...e });
|
|
1300
1301
|
});
|
|
1301
1302
|
xa.displayName = "CommandMenuInput";
|
|
1302
1303
|
const fa = u((n) => {
|
|
1303
1304
|
const { className: a, ref: t, ...e } = n, { size: s } = b(re), o = Rs((r) => r.filtered.count);
|
|
1304
|
-
return /* @__PURE__ */
|
|
1305
|
+
return /* @__PURE__ */ i(
|
|
1305
1306
|
Ps,
|
|
1306
1307
|
{
|
|
1307
|
-
className: x(
|
|
1308
|
+
className: x(zo({ size: s }), a),
|
|
1308
1309
|
ref: t,
|
|
1309
1310
|
hidden: o === 0,
|
|
1310
1311
|
...e
|
|
@@ -1312,21 +1313,21 @@ const fa = u((n) => {
|
|
|
1312
1313
|
);
|
|
1313
1314
|
});
|
|
1314
1315
|
fa.displayName = "CommandMenuList";
|
|
1315
|
-
const
|
|
1316
|
-
const { children: t, ref: e, defaultValues: s, values: o, onValuesChange: r, ...
|
|
1317
|
-
return /* @__PURE__ */
|
|
1318
|
-
}),
|
|
1316
|
+
const Ro = _(function(a) {
|
|
1317
|
+
const { children: t, ref: e, defaultValues: s, values: o, onValuesChange: r, ...c } = a;
|
|
1318
|
+
return /* @__PURE__ */ i(Ae, { values: o, onValuesChange: r, defaultValues: s, children: /* @__PURE__ */ i(Ge, { ref: e, "aria-multiselectable": !0, ...c, children: t }) });
|
|
1319
|
+
}), Po = _(function(n) {
|
|
1319
1320
|
const { children: a, ref: t, value: e, onSelect: s, closeOnSelect: o = !1, ...r } = n, {
|
|
1320
|
-
selected:
|
|
1321
|
+
selected: c,
|
|
1321
1322
|
selectValue: l,
|
|
1322
1323
|
registerValue: d
|
|
1323
1324
|
} = b(Z);
|
|
1324
1325
|
ue(() => d(e), [d, e]);
|
|
1325
1326
|
const m = h(() => {
|
|
1326
1327
|
s == null || s(), l(e);
|
|
1327
|
-
}, [l, s, e]), g =
|
|
1328
|
-
return /* @__PURE__ */
|
|
1329
|
-
|
|
1328
|
+
}, [l, s, e]), g = c(e);
|
|
1329
|
+
return /* @__PURE__ */ i(ct, { value: g, children: /* @__PURE__ */ i(
|
|
1330
|
+
ce,
|
|
1330
1331
|
{
|
|
1331
1332
|
ref: t,
|
|
1332
1333
|
onSelect: m,
|
|
@@ -1339,59 +1340,59 @@ const Io = _(function(a) {
|
|
|
1339
1340
|
) });
|
|
1340
1341
|
}), ha = u((n) => {
|
|
1341
1342
|
const { container: a, className: t, ...e } = n;
|
|
1342
|
-
return /* @__PURE__ */
|
|
1343
|
+
return /* @__PURE__ */ i(kt, { container: a, children: /* @__PURE__ */ i(Ls, { className: x(yo(), t), "data-floating-content": "", ...e }) });
|
|
1343
1344
|
});
|
|
1344
1345
|
ha.displayName = "CommandMenuOverlay";
|
|
1345
1346
|
const va = u((n) => {
|
|
1346
|
-
const { children: a, ref: t, page: e, ...s } = n, { page: o } = b(
|
|
1347
|
-
return /* @__PURE__ */
|
|
1347
|
+
const { children: a, ref: t, page: e, ...s } = n, { page: o } = b(it), r = w(() => e === o, [e, o]);
|
|
1348
|
+
return /* @__PURE__ */ i("div", { ref: t, "data-active": Le(r), hidden: !r, ...s, children: r ? a : null });
|
|
1348
1349
|
});
|
|
1349
1350
|
va.displayName = "CommandMenuPage";
|
|
1350
1351
|
const ba = u((n) => {
|
|
1351
1352
|
const { children: a, defaultPage: t = "", page: e, onPageChange: s } = n, [o, r] = X(t, e, s);
|
|
1352
|
-
return /* @__PURE__ */
|
|
1353
|
+
return /* @__PURE__ */ i(it, { value: { page: o, setPage: r }, children: a });
|
|
1353
1354
|
});
|
|
1354
1355
|
ba.displayName = "CommandMenuPages";
|
|
1355
1356
|
const Ca = u((n) => {
|
|
1356
|
-
const { ref: a, page: t, onSelect: e, closeOnSelect: s = !1, ...o } = n, { page: r, setPage:
|
|
1357
|
-
e == null || e(),
|
|
1358
|
-
}, [e, t,
|
|
1359
|
-
return /* @__PURE__ */
|
|
1360
|
-
|
|
1357
|
+
const { ref: a, page: t, onSelect: e, closeOnSelect: s = !1, ...o } = n, { page: r, setPage: c } = b(it), l = w(() => t === r, [t, r]), d = h(() => {
|
|
1358
|
+
e == null || e(), c(t);
|
|
1359
|
+
}, [e, t, c]);
|
|
1360
|
+
return /* @__PURE__ */ i(ct, { value: l, children: /* @__PURE__ */ i(
|
|
1361
|
+
ce,
|
|
1361
1362
|
{
|
|
1362
1363
|
ref: a,
|
|
1363
1364
|
onSelect: d,
|
|
1364
|
-
"data-state":
|
|
1365
|
+
"data-state": Le(l),
|
|
1365
1366
|
closeOnSelect: s,
|
|
1366
1367
|
...o
|
|
1367
1368
|
}
|
|
1368
1369
|
) });
|
|
1369
1370
|
});
|
|
1370
1371
|
Ca.displayName = "CommandMenuPageTriggerItem";
|
|
1371
|
-
const
|
|
1372
|
-
const { children: t, ref: e, required: s, defaultValue: o, value: r, onValueChange:
|
|
1373
|
-
return /* @__PURE__ */
|
|
1372
|
+
const To = _(function(a) {
|
|
1373
|
+
const { children: t, ref: e, required: s, defaultValue: o, value: r, onValueChange: c, ...l } = a;
|
|
1374
|
+
return /* @__PURE__ */ i(Ge, { ref: e, role: "radiogroup", ...l, children: s ? /* @__PURE__ */ i(
|
|
1374
1375
|
st,
|
|
1375
1376
|
{
|
|
1376
1377
|
defaultValue: o,
|
|
1377
1378
|
value: r,
|
|
1378
|
-
onValueChange:
|
|
1379
|
+
onValueChange: c,
|
|
1379
1380
|
children: t
|
|
1380
1381
|
}
|
|
1381
|
-
) : /* @__PURE__ */
|
|
1382
|
+
) : /* @__PURE__ */ i(
|
|
1382
1383
|
ot,
|
|
1383
1384
|
{
|
|
1384
1385
|
defaultValue: o,
|
|
1385
1386
|
value: r,
|
|
1386
|
-
onValueChange:
|
|
1387
|
+
onValueChange: c,
|
|
1387
1388
|
children: t
|
|
1388
1389
|
}
|
|
1389
1390
|
) });
|
|
1390
|
-
}),
|
|
1391
|
-
const { children: a, ref: t, value: e, onSelect: s, ...o } = n, { selected: r, selectValue:
|
|
1392
|
-
s == null || s(),
|
|
1393
|
-
}, [s,
|
|
1394
|
-
return /* @__PURE__ */
|
|
1391
|
+
}), Mo = _(function(n) {
|
|
1392
|
+
const { children: a, ref: t, value: e, onSelect: s, ...o } = n, { selected: r, selectValue: c } = b(Ne), l = h(() => {
|
|
1393
|
+
s == null || s(), c(e);
|
|
1394
|
+
}, [s, c, e]), d = r(e);
|
|
1395
|
+
return /* @__PURE__ */ i(ct, { value: d, children: /* @__PURE__ */ i(ce, { ref: t, onSelect: l, "data-state": oe(d), ...o, children: a }) });
|
|
1395
1396
|
}), ya = u((n) => {
|
|
1396
1397
|
const {
|
|
1397
1398
|
children: a,
|
|
@@ -1400,19 +1401,19 @@ const ko = _(function(a) {
|
|
|
1400
1401
|
// oxlint-disable-next-line typescript/unbound-method
|
|
1401
1402
|
onOpenChange: s,
|
|
1402
1403
|
modal: o
|
|
1403
|
-
} = n, [r,
|
|
1404
|
+
} = n, [r, c] = X(t ?? !1, e, s), l = w(() => ({
|
|
1404
1405
|
open: r,
|
|
1405
|
-
setOpen:
|
|
1406
|
-
}), [r,
|
|
1407
|
-
return /* @__PURE__ */
|
|
1406
|
+
setOpen: c
|
|
1407
|
+
}), [r, c]);
|
|
1408
|
+
return /* @__PURE__ */ i(H.Root, { defaultOpen: t, open: r, onOpenChange: c, modal: o, children: /* @__PURE__ */ i(ua, { value: l, children: a }) });
|
|
1408
1409
|
});
|
|
1409
1410
|
ya.displayName = "CommandMenuRoot";
|
|
1410
|
-
const
|
|
1411
|
-
const { ref: a, onSelect: t, closeOnSelect: e = !1, ...s } = n, { allSelected: o, someSelected: r, toggleSelectAll:
|
|
1412
|
-
t == null || t(),
|
|
1413
|
-
}, [t,
|
|
1414
|
-
return /* @__PURE__ */
|
|
1415
|
-
|
|
1411
|
+
const Oo = _(function(n) {
|
|
1412
|
+
const { ref: a, onSelect: t, closeOnSelect: e = !1, ...s } = n, { allSelected: o, someSelected: r, toggleSelectAll: c } = b(Z), l = h(() => {
|
|
1413
|
+
t == null || t(), c();
|
|
1414
|
+
}, [t, c]), d = o ? !0 : r ? "indeterminate" : !1;
|
|
1415
|
+
return /* @__PURE__ */ i(da, { value: d, children: /* @__PURE__ */ i(
|
|
1416
|
+
ce,
|
|
1416
1417
|
{
|
|
1417
1418
|
ref: a,
|
|
1418
1419
|
role: "menuitemcheckbox",
|
|
@@ -1422,9 +1423,9 @@ const Po = _(function(n) {
|
|
|
1422
1423
|
...s
|
|
1423
1424
|
}
|
|
1424
1425
|
) });
|
|
1425
|
-
}), xe =
|
|
1426
|
+
}), xe = P(!1), Ee = u((n) => {
|
|
1426
1427
|
const { ref: a, children: t, className: e, ...s } = n, o = b(xe), r = typeof t == "function" ? t(o) : t;
|
|
1427
|
-
return /* @__PURE__ */
|
|
1428
|
+
return /* @__PURE__ */ i(
|
|
1428
1429
|
"span",
|
|
1429
1430
|
{
|
|
1430
1431
|
ref: a,
|
|
@@ -1441,38 +1442,38 @@ const Po = _(function(n) {
|
|
|
1441
1442
|
}
|
|
1442
1443
|
);
|
|
1443
1444
|
});
|
|
1444
|
-
|
|
1445
|
+
Ee.displayName = "SelectedIndicator";
|
|
1445
1446
|
const za = u((n) => {
|
|
1446
1447
|
const { ref: a, children: t, ...e } = n;
|
|
1447
|
-
return /* @__PURE__ */
|
|
1448
|
+
return /* @__PURE__ */ i(Ee, { ref: a, ...e, children: t });
|
|
1448
1449
|
});
|
|
1449
1450
|
za.displayName = "CommandMenuSelectedIndicator";
|
|
1450
1451
|
const Na = u((n) => {
|
|
1451
1452
|
const { className: a, ref: t, spacing: e = !1, ...s } = n, { size: o } = b(re);
|
|
1452
|
-
return /* @__PURE__ */
|
|
1453
|
+
return /* @__PURE__ */ i(Ts, { ref: t, className: x(wo({ size: o, spacing: e }), a), ...s });
|
|
1453
1454
|
});
|
|
1454
1455
|
Na.displayName = "CommandMenuSeparator";
|
|
1455
|
-
const wa = u((n) => /* @__PURE__ */
|
|
1456
|
+
const wa = u((n) => /* @__PURE__ */ i(As, { ...n }));
|
|
1456
1457
|
wa.displayName = "CommandMenuTrigger";
|
|
1457
|
-
const
|
|
1458
|
+
const _c = {
|
|
1458
1459
|
Root: ya,
|
|
1459
1460
|
Overlay: ha,
|
|
1460
1461
|
Content: ga,
|
|
1461
1462
|
Trigger: wa,
|
|
1462
1463
|
Input: xa,
|
|
1463
1464
|
List: fa,
|
|
1464
|
-
Group:
|
|
1465
|
-
Item:
|
|
1465
|
+
Group: Ge,
|
|
1466
|
+
Item: ce,
|
|
1466
1467
|
Separator: Na,
|
|
1467
1468
|
Empty: pa,
|
|
1468
1469
|
// Multi select
|
|
1469
|
-
MultiSelectGroup:
|
|
1470
|
-
MultiSelectItem:
|
|
1471
|
-
SelectAllItem:
|
|
1470
|
+
MultiSelectGroup: Ro,
|
|
1471
|
+
MultiSelectItem: Po,
|
|
1472
|
+
SelectAllItem: Oo,
|
|
1472
1473
|
SelectedIndicator: za,
|
|
1473
1474
|
// Radio / single select
|
|
1474
|
-
RadioGroup:
|
|
1475
|
-
RadioItem:
|
|
1475
|
+
RadioGroup: To,
|
|
1476
|
+
RadioItem: Mo,
|
|
1476
1477
|
// Checkbox
|
|
1477
1478
|
CheckboxItem: ma,
|
|
1478
1479
|
CheckboxIndicator: la,
|
|
@@ -1482,22 +1483,22 @@ const Di = {
|
|
|
1482
1483
|
PageTriggerItem: Ca
|
|
1483
1484
|
}, U = u((n) => {
|
|
1484
1485
|
const { ref: a, icon: t, className: e, size: s = "1em", ...o } = n;
|
|
1485
|
-
return /* @__PURE__ */
|
|
1486
|
+
return /* @__PURE__ */ i(t, { ref: a, className: x("shrink-0", e), size: s, ...o });
|
|
1486
1487
|
});
|
|
1487
1488
|
U.displayName = "LuIcon";
|
|
1488
|
-
const
|
|
1489
|
+
const Vo = (n) => {
|
|
1489
1490
|
const { orientation: a, ...t } = n;
|
|
1490
1491
|
switch (a) {
|
|
1491
1492
|
case "up":
|
|
1492
|
-
return /* @__PURE__ */
|
|
1493
|
+
return /* @__PURE__ */ i(U, { icon: _s, ...t });
|
|
1493
1494
|
case "down":
|
|
1494
|
-
return /* @__PURE__ */
|
|
1495
|
+
return /* @__PURE__ */ i(U, { icon: Fs, ...t });
|
|
1495
1496
|
case "left":
|
|
1496
|
-
return /* @__PURE__ */
|
|
1497
|
+
return /* @__PURE__ */ i(U, { icon: Es, ...t });
|
|
1497
1498
|
default:
|
|
1498
|
-
return /* @__PURE__ */
|
|
1499
|
+
return /* @__PURE__ */ i(U, { icon: Gs, ...t });
|
|
1499
1500
|
}
|
|
1500
|
-
},
|
|
1501
|
+
}, Lo = v(["relative", "size-max"], {
|
|
1501
1502
|
variants: {
|
|
1502
1503
|
size: {
|
|
1503
1504
|
xs: ["text-xs"],
|
|
@@ -1507,7 +1508,7 @@ const To = (n) => {
|
|
|
1507
1508
|
xl: ["text-xl"]
|
|
1508
1509
|
}
|
|
1509
1510
|
}
|
|
1510
|
-
}),
|
|
1511
|
+
}), Ao = v(
|
|
1511
1512
|
[
|
|
1512
1513
|
"relative",
|
|
1513
1514
|
"transition-[background,text]",
|
|
@@ -1584,7 +1585,7 @@ const To = (n) => {
|
|
|
1584
1585
|
}
|
|
1585
1586
|
}
|
|
1586
1587
|
}
|
|
1587
|
-
),
|
|
1588
|
+
), Do = v(["font-medium", "text-(--base-a11)"], {
|
|
1588
1589
|
variants: {
|
|
1589
1590
|
size: {
|
|
1590
1591
|
xs: ["size-6"],
|
|
@@ -1594,7 +1595,7 @@ const To = (n) => {
|
|
|
1594
1595
|
xl: ["size-10"]
|
|
1595
1596
|
}
|
|
1596
1597
|
}
|
|
1597
|
-
}),
|
|
1598
|
+
}), Go = v(
|
|
1598
1599
|
[
|
|
1599
1600
|
"*:after:absolute",
|
|
1600
1601
|
"*:after:bg-(--base-12)",
|
|
@@ -1619,7 +1620,7 @@ const To = (n) => {
|
|
|
1619
1620
|
}
|
|
1620
1621
|
}
|
|
1621
1622
|
}
|
|
1622
|
-
),
|
|
1623
|
+
), Eo = v(["font-medium", "w-full", "flex", "justify-center", "items-center"], {
|
|
1623
1624
|
variants: {
|
|
1624
1625
|
size: {
|
|
1625
1626
|
xs: ["h-5"],
|
|
@@ -1629,48 +1630,48 @@ const To = (n) => {
|
|
|
1629
1630
|
xl: ["h-9"]
|
|
1630
1631
|
}
|
|
1631
1632
|
}
|
|
1632
|
-
}), It = { Chevron:
|
|
1633
|
+
}), It = { Chevron: Vo }, Fo = u((n) => {
|
|
1633
1634
|
const a = M(), {
|
|
1634
1635
|
components: t,
|
|
1635
1636
|
classNames: e,
|
|
1636
1637
|
accentColor: s = a.accentColor,
|
|
1637
1638
|
size: o = "md",
|
|
1638
1639
|
variant: r = "soft",
|
|
1639
|
-
radius:
|
|
1640
|
+
radius: c = a.radius,
|
|
1640
1641
|
showOutsideDays: l = !0,
|
|
1641
1642
|
...d
|
|
1642
1643
|
} = n, m = w(() => ({
|
|
1643
1644
|
...e,
|
|
1644
|
-
root: x(e == null ? void 0 : e.root,
|
|
1645
|
+
root: x(e == null ? void 0 : e.root, Lo({ size: o })),
|
|
1645
1646
|
nav: x(e == null ? void 0 : e.nav, ["absolute", "top-0", "w-full", "flex", "justify-between"]),
|
|
1646
1647
|
month: x(e == null ? void 0 : e.month, ["flex", "flex-col", "gap-1"]),
|
|
1647
|
-
month_caption: x(e == null ? void 0 : e.month_caption,
|
|
1648
|
+
month_caption: x(e == null ? void 0 : e.month_caption, Eo({ size: o })),
|
|
1648
1649
|
button_next: x(
|
|
1649
1650
|
e == null ? void 0 : e.button_next,
|
|
1650
1651
|
wt({ size: o }),
|
|
1651
|
-
k({ radius:
|
|
1652
|
+
k({ radius: c, maxLarge: !1 })
|
|
1652
1653
|
),
|
|
1653
1654
|
button_previous: x(
|
|
1654
1655
|
e == null ? void 0 : e.button_previous,
|
|
1655
1656
|
wt({ size: o }),
|
|
1656
|
-
k({ radius:
|
|
1657
|
+
k({ radius: c, maxLarge: !1 })
|
|
1657
1658
|
),
|
|
1658
|
-
weekday: x(e == null ? void 0 : e.weekday,
|
|
1659
|
-
today: x(e == null ? void 0 : e.today,
|
|
1659
|
+
weekday: x(e == null ? void 0 : e.weekday, Do({ size: o })),
|
|
1660
|
+
today: x(e == null ? void 0 : e.today, Go({ size: o, variant: r })),
|
|
1660
1661
|
day: x(e == null ? void 0 : e.day, ["group/day"]),
|
|
1661
1662
|
day_button: x(
|
|
1662
1663
|
e == null ? void 0 : e.day_button,
|
|
1663
|
-
|
|
1664
|
-
k({ radius:
|
|
1664
|
+
Ao({ size: o, variant: r }),
|
|
1665
|
+
k({ radius: c, maxLarge: !1 })
|
|
1665
1666
|
),
|
|
1666
1667
|
range_start: x(e == null ? void 0 : e.range_start, "rdp-range-start"),
|
|
1667
1668
|
range_middle: x(e == null ? void 0 : e.range_middle, "rdp-range-middle"),
|
|
1668
1669
|
range_end: x(e == null ? void 0 : e.range_end, "rdp-range-end")
|
|
1669
|
-
}), [e,
|
|
1670
|
+
}), [e, c, o, r]), g = w(
|
|
1670
1671
|
() => t ? { ...It, ...t } : It,
|
|
1671
1672
|
[t]
|
|
1672
1673
|
);
|
|
1673
|
-
return /* @__PURE__ */
|
|
1674
|
+
return /* @__PURE__ */ i(
|
|
1674
1675
|
Ds,
|
|
1675
1676
|
{
|
|
1676
1677
|
"data-accent-color": s,
|
|
@@ -1681,18 +1682,18 @@ const To = (n) => {
|
|
|
1681
1682
|
}
|
|
1682
1683
|
);
|
|
1683
1684
|
});
|
|
1684
|
-
|
|
1685
|
-
const Ia =
|
|
1685
|
+
Fo.displayName = "DayPicker";
|
|
1686
|
+
const Ia = P({}), _o = () => {
|
|
1686
1687
|
const n = j(Ia);
|
|
1687
1688
|
if (!n)
|
|
1688
1689
|
throw new Error("useDialog must be used within a DialogRoot");
|
|
1689
1690
|
return n;
|
|
1690
1691
|
}, Sa = u((n) => {
|
|
1691
|
-
const { radius: a } = M(), t =
|
|
1692
|
-
return /* @__PURE__ */
|
|
1692
|
+
const { radius: a } = M(), t = _o(), { ref: e, children: s, container: o, className: r, size: c, ...l } = n, d = w(() => typeof s == "function" ? s(t) : s, [s, t]);
|
|
1693
|
+
return /* @__PURE__ */ i(H.Portal, { container: o, children: /* @__PURE__ */ i(
|
|
1693
1694
|
H.Content,
|
|
1694
1695
|
{
|
|
1695
|
-
className: x(Kt({ size:
|
|
1696
|
+
className: x(Kt({ size: c }), k({ radius: a, maxLarge: !0 }), r),
|
|
1696
1697
|
ref: e,
|
|
1697
1698
|
"data-floating-content": "",
|
|
1698
1699
|
...l,
|
|
@@ -1703,7 +1704,7 @@ const Ia = R({}), Go = () => {
|
|
|
1703
1704
|
Sa.displayName = "DialogContent";
|
|
1704
1705
|
const ka = u((n) => {
|
|
1705
1706
|
const { ref: a, children: t, className: e, container: s, ...o } = n;
|
|
1706
|
-
return /* @__PURE__ */
|
|
1707
|
+
return /* @__PURE__ */ i(H.Portal, { container: s, children: /* @__PURE__ */ i(
|
|
1707
1708
|
H.Overlay,
|
|
1708
1709
|
{
|
|
1709
1710
|
ref: a,
|
|
@@ -1724,10 +1725,10 @@ const Ra = u((n) => {
|
|
|
1724
1725
|
onCloseInterrupt: o,
|
|
1725
1726
|
open: r,
|
|
1726
1727
|
// oxlint-disable-next-line typescript/unbound-method
|
|
1727
|
-
onOpenChange:
|
|
1728
|
+
onOpenChange: c
|
|
1728
1729
|
} = n, [l, d] = E(s ?? !1), m = r ?? l, g = h(
|
|
1729
1730
|
(f) => {
|
|
1730
|
-
if (
|
|
1731
|
+
if (c) return c(f);
|
|
1731
1732
|
if (f && t)
|
|
1732
1733
|
t();
|
|
1733
1734
|
else {
|
|
@@ -1739,7 +1740,7 @@ const Ra = u((n) => {
|
|
|
1739
1740
|
}
|
|
1740
1741
|
d(f);
|
|
1741
1742
|
},
|
|
1742
|
-
[
|
|
1743
|
+
[c, t, e, o]
|
|
1743
1744
|
), p = h(
|
|
1744
1745
|
(f) => {
|
|
1745
1746
|
if (f != null && f.force)
|
|
@@ -1748,10 +1749,10 @@ const Ra = u((n) => {
|
|
|
1748
1749
|
},
|
|
1749
1750
|
[g]
|
|
1750
1751
|
);
|
|
1751
|
-
return /* @__PURE__ */
|
|
1752
|
+
return /* @__PURE__ */ i(H.Root, { open: m, onOpenChange: g, children: /* @__PURE__ */ i(Ia.Provider, { value: p, children: a }) });
|
|
1752
1753
|
});
|
|
1753
1754
|
Ra.displayName = "DialogRoot";
|
|
1754
|
-
const
|
|
1755
|
+
const Hc = {
|
|
1755
1756
|
Root: Ra,
|
|
1756
1757
|
Content: Sa,
|
|
1757
1758
|
Overlay: ka,
|
|
@@ -1759,14 +1760,14 @@ const Gi = {
|
|
|
1759
1760
|
Description: H.Description,
|
|
1760
1761
|
Trigger: H.Trigger,
|
|
1761
1762
|
Close: H.Close
|
|
1762
|
-
},
|
|
1763
|
+
}, Ho = {
|
|
1763
1764
|
1: "h1",
|
|
1764
1765
|
2: "h2",
|
|
1765
1766
|
3: "h3",
|
|
1766
1767
|
4: "h4",
|
|
1767
1768
|
5: "h5",
|
|
1768
1769
|
6: "h6"
|
|
1769
|
-
},
|
|
1770
|
+
}, Bo = v([], {
|
|
1770
1771
|
variants: {
|
|
1771
1772
|
size: {
|
|
1772
1773
|
xs: ["text-xs"],
|
|
@@ -1795,7 +1796,7 @@ const Gi = {
|
|
|
1795
1796
|
right: ["text-right"]
|
|
1796
1797
|
}
|
|
1797
1798
|
}
|
|
1798
|
-
}),
|
|
1799
|
+
}), $o = u((n) => {
|
|
1799
1800
|
const {
|
|
1800
1801
|
ref: a,
|
|
1801
1802
|
children: t,
|
|
@@ -1803,17 +1804,17 @@ const Gi = {
|
|
|
1803
1804
|
level: s = "1",
|
|
1804
1805
|
size: o,
|
|
1805
1806
|
weight: r,
|
|
1806
|
-
align:
|
|
1807
|
+
align: c,
|
|
1807
1808
|
highContrast: l = !1,
|
|
1808
1809
|
accentColor: d,
|
|
1809
1810
|
...m
|
|
1810
|
-
} = n, g =
|
|
1811
|
-
return /* @__PURE__ */
|
|
1811
|
+
} = n, g = Ho[s];
|
|
1812
|
+
return /* @__PURE__ */ i(
|
|
1812
1813
|
g,
|
|
1813
1814
|
{
|
|
1814
1815
|
ref: a,
|
|
1815
1816
|
className: x(
|
|
1816
|
-
|
|
1817
|
+
Bo({ size: o, weight: r, align: c }),
|
|
1817
1818
|
{
|
|
1818
1819
|
"text-(--accent-a11)": !!d,
|
|
1819
1820
|
"text-(--accent-a12)": l
|
|
@@ -1826,13 +1827,13 @@ const Gi = {
|
|
|
1826
1827
|
}
|
|
1827
1828
|
);
|
|
1828
1829
|
});
|
|
1829
|
-
|
|
1830
|
+
$o.displayName = "Heading";
|
|
1830
1831
|
const Pa = u((n) => {
|
|
1831
1832
|
const { ref: a, children: t, className: e, ...s } = n;
|
|
1832
|
-
return /* @__PURE__ */
|
|
1833
|
+
return /* @__PURE__ */ i(ye.Arrow, { className: x("fill-(--base-6)", e), ref: a, ...s, children: t });
|
|
1833
1834
|
});
|
|
1834
1835
|
Pa.displayName = "HoverCardArrow";
|
|
1835
|
-
const
|
|
1836
|
+
const jo = v(["bg-(--color-background)", "dark:bg-(--base-2)", "ring-1", "ring-(--base-6)"], {
|
|
1836
1837
|
variants: {
|
|
1837
1838
|
size: {
|
|
1838
1839
|
xs: ["p-2"],
|
|
@@ -1852,19 +1853,19 @@ const Ho = v(["bg-(--color-background)", "dark:bg-(--base-2)", "ring-1", "ring-(
|
|
|
1852
1853
|
className: s,
|
|
1853
1854
|
size: o,
|
|
1854
1855
|
side: r,
|
|
1855
|
-
radius:
|
|
1856
|
+
radius: c = a.radius,
|
|
1856
1857
|
accentColor: l = a.accentColor,
|
|
1857
1858
|
sideOffset: d = 4,
|
|
1858
1859
|
container: m,
|
|
1859
1860
|
...g
|
|
1860
1861
|
} = n;
|
|
1861
|
-
return /* @__PURE__ */
|
|
1862
|
+
return /* @__PURE__ */ i(ye.Portal, { container: m, children: /* @__PURE__ */ i(
|
|
1862
1863
|
ye.Content,
|
|
1863
1864
|
{
|
|
1864
1865
|
className: x(
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
k({ radius:
|
|
1866
|
+
jo({ size: o }),
|
|
1867
|
+
Ve({ side: r, shadow: "3" }),
|
|
1868
|
+
k({ radius: c, maxLarge: !0 }),
|
|
1868
1869
|
s
|
|
1869
1870
|
),
|
|
1870
1871
|
ref: t,
|
|
@@ -1878,12 +1879,12 @@ const Ho = v(["bg-(--color-background)", "dark:bg-(--base-2)", "ring-1", "ring-(
|
|
|
1878
1879
|
) });
|
|
1879
1880
|
});
|
|
1880
1881
|
Ta.displayName = "HoverCardContent";
|
|
1881
|
-
const
|
|
1882
|
+
const Bc = {
|
|
1882
1883
|
Arrow: Pa,
|
|
1883
1884
|
Content: Ta,
|
|
1884
1885
|
Root: ye.Root,
|
|
1885
1886
|
Trigger: ye.Trigger
|
|
1886
|
-
},
|
|
1887
|
+
}, qo = u(({ children: n, forceHover: a }) => {
|
|
1887
1888
|
const [t, e] = E(!1), s = h(() => {
|
|
1888
1889
|
e(!0);
|
|
1889
1890
|
}, []), o = h(() => {
|
|
@@ -1895,8 +1896,8 @@ const Ei = {
|
|
|
1895
1896
|
onPointerLeave: o
|
|
1896
1897
|
});
|
|
1897
1898
|
});
|
|
1898
|
-
|
|
1899
|
-
const lt =
|
|
1899
|
+
qo.displayName = "HoverUtility";
|
|
1900
|
+
const lt = P({}), Uo = v(
|
|
1900
1901
|
[
|
|
1901
1902
|
"flex",
|
|
1902
1903
|
"items-stretch",
|
|
@@ -1928,7 +1929,7 @@ const lt = R({}), jo = v(
|
|
|
1928
1929
|
variant: "surface"
|
|
1929
1930
|
}
|
|
1930
1931
|
}
|
|
1931
|
-
),
|
|
1932
|
+
), Wo = v(["peer-[.slot]/slot:px-0"], {
|
|
1932
1933
|
variants: {
|
|
1933
1934
|
variant: {
|
|
1934
1935
|
surface: ["placeholder-(--accent-12)", "placeholder:opacity-60", "selection:bg-(--accent-a5)"],
|
|
@@ -1948,7 +1949,7 @@ const lt = R({}), jo = v(
|
|
|
1948
1949
|
size: "md",
|
|
1949
1950
|
variant: "surface"
|
|
1950
1951
|
}
|
|
1951
|
-
}),
|
|
1952
|
+
}), Ko = v(["peer/slot", "slot"], {
|
|
1952
1953
|
variants: {
|
|
1953
1954
|
size: {
|
|
1954
1955
|
xs: ["px-1.5"],
|
|
@@ -1969,10 +1970,10 @@ const lt = R({}), jo = v(
|
|
|
1969
1970
|
}
|
|
1970
1971
|
}), Ma = u((n) => {
|
|
1971
1972
|
const { ref: a, className: t, ...e } = n, { size: s, variant: o } = j(lt);
|
|
1972
|
-
return /* @__PURE__ */
|
|
1973
|
+
return /* @__PURE__ */ i(
|
|
1973
1974
|
"input",
|
|
1974
1975
|
{
|
|
1975
|
-
className: x(
|
|
1976
|
+
className: x(Wo({ size: s, variant: o }), "grow bg-transparent outline-0", t),
|
|
1976
1977
|
ref: a,
|
|
1977
1978
|
...e
|
|
1978
1979
|
}
|
|
@@ -1986,16 +1987,16 @@ const Oa = u((n) => {
|
|
|
1986
1987
|
className: s,
|
|
1987
1988
|
variant: o = "surface",
|
|
1988
1989
|
size: r = "md",
|
|
1989
|
-
accentColor:
|
|
1990
|
+
accentColor: c = a.accentColor,
|
|
1990
1991
|
radius: l = a.radius,
|
|
1991
1992
|
...d
|
|
1992
1993
|
} = n, m = w(() => ({ size: r, variant: o }), [r, o]);
|
|
1993
|
-
return /* @__PURE__ */
|
|
1994
|
+
return /* @__PURE__ */ i(lt.Provider, { value: m, children: /* @__PURE__ */ i(
|
|
1994
1995
|
"div",
|
|
1995
1996
|
{
|
|
1996
|
-
className: x(
|
|
1997
|
+
className: x(Uo({ variant: o, size: r }), k({ radius: l, maxLarge: !1 }), s),
|
|
1997
1998
|
ref: t,
|
|
1998
|
-
"data-accent-color":
|
|
1999
|
+
"data-accent-color": c,
|
|
1999
2000
|
...d,
|
|
2000
2001
|
children: e
|
|
2001
2002
|
}
|
|
@@ -2004,59 +2005,63 @@ const Oa = u((n) => {
|
|
|
2004
2005
|
Oa.displayName = "InputRoot";
|
|
2005
2006
|
const Va = u((n) => {
|
|
2006
2007
|
const { ref: a, children: t, className: e, ...s } = n, { size: o, variant: r } = j(lt);
|
|
2007
|
-
return /* @__PURE__ */
|
|
2008
|
+
return /* @__PURE__ */ i("div", { className: x(Ko({ size: o, variant: r }), "flex items-center", e), ref: a, ...s, children: t });
|
|
2008
2009
|
});
|
|
2009
2010
|
Va.displayName = "InputSlot";
|
|
2010
|
-
const
|
|
2011
|
+
const $c = {
|
|
2011
2012
|
Field: Ma,
|
|
2012
2013
|
Root: Oa,
|
|
2013
2014
|
Slot: Va
|
|
2014
|
-
},
|
|
2015
|
-
|
|
2016
|
-
return
|
|
2015
|
+
}, dt = Ks({}), ke = () => Xs(dt);
|
|
2016
|
+
function jc(n) {
|
|
2017
|
+
return Ys(dt, n);
|
|
2018
|
+
}
|
|
2019
|
+
const La = u((n) => {
|
|
2020
|
+
const { ref: a, children: t, ...e } = n, { hideLayout: s = !1 } = ke();
|
|
2021
|
+
return !s && /* @__PURE__ */ i("div", { ref: a, ...e, children: t });
|
|
2017
2022
|
});
|
|
2018
2023
|
La.displayName = "LayoutContainer";
|
|
2019
2024
|
const Aa = u((n) => {
|
|
2020
2025
|
const { children: a, small: t = !1, hideLayout: e = !1 } = n, [s, o] = E({}), r = h(
|
|
2021
2026
|
(d) => s[d] ?? !1,
|
|
2022
2027
|
[s]
|
|
2023
|
-
),
|
|
2028
|
+
), c = h((d, m) => {
|
|
2024
2029
|
o((g) => ({ ...g, [d]: m }));
|
|
2025
2030
|
}, []), l = w(
|
|
2026
2031
|
() => ({
|
|
2027
2032
|
small: t,
|
|
2028
2033
|
hideLayout: e,
|
|
2029
2034
|
isOpen: r,
|
|
2030
|
-
setOpen:
|
|
2035
|
+
setOpen: c
|
|
2031
2036
|
}),
|
|
2032
|
-
[e, r,
|
|
2037
|
+
[e, r, c, t]
|
|
2033
2038
|
);
|
|
2034
|
-
return /* @__PURE__ */
|
|
2039
|
+
return /* @__PURE__ */ i(dt.Provider, { value: l, children: a });
|
|
2035
2040
|
});
|
|
2036
2041
|
Aa.displayName = "LayoutRoot";
|
|
2037
|
-
const fe =
|
|
2042
|
+
const fe = P({}), Da = P({}), ut = u((n) => {
|
|
2038
2043
|
const { ref: a, onClick: t, disabled: e, ...s } = n, { setOpen: o } = b(fe), r = h(
|
|
2039
|
-
(
|
|
2040
|
-
t == null || t(
|
|
2044
|
+
(c) => {
|
|
2045
|
+
t == null || t(c), !c.defaultPrevented && o(!1);
|
|
2041
2046
|
},
|
|
2042
2047
|
[t, o]
|
|
2043
2048
|
);
|
|
2044
|
-
return /* @__PURE__ */
|
|
2049
|
+
return /* @__PURE__ */ i(me, { ref: a, onClick: r, "data-disabled": e ?? !1, ...s });
|
|
2045
2050
|
});
|
|
2046
2051
|
ut.displayName = "SlideOutClose";
|
|
2047
|
-
const
|
|
2048
|
-
function
|
|
2049
|
-
const t =
|
|
2052
|
+
const Xo = 200;
|
|
2053
|
+
function Yo(n, a = globalThis == null ? void 0 : globalThis.document.body) {
|
|
2054
|
+
const t = Zo(n), e = q(!1), s = q(() => {
|
|
2050
2055
|
});
|
|
2051
2056
|
return B(() => {
|
|
2052
|
-
const o = (
|
|
2053
|
-
if (
|
|
2054
|
-
const l = { originalEvent:
|
|
2055
|
-
|
|
2057
|
+
const o = (c) => {
|
|
2058
|
+
if (c.target && !e.current) {
|
|
2059
|
+
const l = { originalEvent: c }, d = () => {
|
|
2060
|
+
Jo("pointerDownOutside", t, l, {
|
|
2056
2061
|
discrete: !0
|
|
2057
2062
|
});
|
|
2058
2063
|
};
|
|
2059
|
-
|
|
2064
|
+
c.pointerType === "touch" ? (a.removeEventListener("click", s.current), s.current = d, a.addEventListener("click", s.current, { once: !0 })) : d();
|
|
2060
2065
|
} else
|
|
2061
2066
|
a.removeEventListener("click", s.current);
|
|
2062
2067
|
e.current = !1;
|
|
@@ -2071,14 +2076,14 @@ function Wo(n, a = globalThis == null ? void 0 : globalThis.document.body) {
|
|
|
2071
2076
|
onPointerDownCapture: () => e.current = !0
|
|
2072
2077
|
};
|
|
2073
2078
|
}
|
|
2074
|
-
function
|
|
2075
|
-
n &&
|
|
2079
|
+
function Qo(n, a) {
|
|
2080
|
+
n && Js.flushSync(() => n.dispatchEvent(a));
|
|
2076
2081
|
}
|
|
2077
|
-
function
|
|
2082
|
+
function Jo(n, a, t, { discrete: e }) {
|
|
2078
2083
|
const s = t.originalEvent.target, o = new CustomEvent(n, { bubbles: !1, cancelable: !0, detail: t });
|
|
2079
|
-
a && s.addEventListener(n, a, { once: !0 }),
|
|
2084
|
+
a && s.addEventListener(n, a, { once: !0 }), Qo(s, o);
|
|
2080
2085
|
}
|
|
2081
|
-
function
|
|
2086
|
+
function Zo(n) {
|
|
2082
2087
|
const a = q(n);
|
|
2083
2088
|
return B(() => {
|
|
2084
2089
|
a.current = n;
|
|
@@ -2087,7 +2092,7 @@ function Yo(n) {
|
|
|
2087
2092
|
return (e = a.current) == null ? void 0 : e.call(a, ...t);
|
|
2088
2093
|
}, []);
|
|
2089
2094
|
}
|
|
2090
|
-
const
|
|
2095
|
+
const er = {
|
|
2091
2096
|
left: {
|
|
2092
2097
|
enter: "-ml-(--slide-out-size)",
|
|
2093
2098
|
enterActive: "ease-linear duration-200 transition-[margin-left] ml-0",
|
|
@@ -2117,9 +2122,9 @@ const Qo = {
|
|
|
2117
2122
|
exitDone: "-mb-(--slide-out-size)"
|
|
2118
2123
|
}
|
|
2119
2124
|
}, mt = u((n) => {
|
|
2120
|
-
const { ref: a, children: t, style: e, side: s, type: o, resizeable: r = !1, initialSize:
|
|
2125
|
+
const { ref: a, children: t, style: e, side: s, type: o, resizeable: r = !1, initialSize: c, minSize: l, maxSize: d, ...m } = n, g = q(null), { open: p, setOpen: f, parentElement: C, modal: S, hide: z } = b(fe), [N, T] = E(null), L = h(() => {
|
|
2121
2126
|
S && f(!1);
|
|
2122
|
-
}, [S, f]), { onPointerDownCapture: y } =
|
|
2127
|
+
}, [S, f]), { onPointerDownCapture: y } = Yo(
|
|
2123
2128
|
L,
|
|
2124
2129
|
C ?? void 0
|
|
2125
2130
|
);
|
|
@@ -2142,7 +2147,7 @@ const Qo = {
|
|
|
2142
2147
|
return {
|
|
2143
2148
|
...e,
|
|
2144
2149
|
left: 0,
|
|
2145
|
-
width: N ??
|
|
2150
|
+
width: N ?? c,
|
|
2146
2151
|
maxWidth: d,
|
|
2147
2152
|
minWidth: l,
|
|
2148
2153
|
position: o === "inline" ? "relative" : "absolute",
|
|
@@ -2152,7 +2157,7 @@ const Qo = {
|
|
|
2152
2157
|
return {
|
|
2153
2158
|
...e,
|
|
2154
2159
|
right: 0,
|
|
2155
|
-
width: N ??
|
|
2160
|
+
width: N ?? c,
|
|
2156
2161
|
maxWidth: d,
|
|
2157
2162
|
minWidth: l,
|
|
2158
2163
|
position: o === "inline" ? "relative" : "absolute",
|
|
@@ -2162,7 +2167,7 @@ const Qo = {
|
|
|
2162
2167
|
return {
|
|
2163
2168
|
...e,
|
|
2164
2169
|
top: 0,
|
|
2165
|
-
height: N ??
|
|
2170
|
+
height: N ?? c,
|
|
2166
2171
|
maxHeight: d,
|
|
2167
2172
|
minHeight: l,
|
|
2168
2173
|
position: o === "inline" ? "relative" : "absolute",
|
|
@@ -2172,14 +2177,14 @@ const Qo = {
|
|
|
2172
2177
|
return {
|
|
2173
2178
|
...e,
|
|
2174
2179
|
bottom: 0,
|
|
2175
|
-
height: N ??
|
|
2180
|
+
height: N ?? c,
|
|
2176
2181
|
maxHeight: d,
|
|
2177
2182
|
minHeight: l,
|
|
2178
2183
|
position: o === "inline" ? "relative" : "absolute",
|
|
2179
2184
|
"--slide-out-size": `${N}px`
|
|
2180
2185
|
};
|
|
2181
2186
|
}
|
|
2182
|
-
}, [N,
|
|
2187
|
+
}, [N, c, d, l, s, e, o]), A = er[s], G = w(
|
|
2183
2188
|
() => ({
|
|
2184
2189
|
side: s,
|
|
2185
2190
|
type: o,
|
|
@@ -2192,16 +2197,16 @@ const Qo = {
|
|
|
2192
2197
|
return z ? null : (
|
|
2193
2198
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
2194
2199
|
// @ts-ignore
|
|
2195
|
-
/* @__PURE__ */
|
|
2196
|
-
|
|
2200
|
+
/* @__PURE__ */ i(
|
|
2201
|
+
Qs,
|
|
2197
2202
|
{
|
|
2198
2203
|
classNames: A,
|
|
2199
2204
|
in: p,
|
|
2200
|
-
timeout:
|
|
2205
|
+
timeout: Xo,
|
|
2201
2206
|
unmountOnExit: !0,
|
|
2202
2207
|
mountOnEnter: !0,
|
|
2203
2208
|
nodeRef: g,
|
|
2204
|
-
children: /* @__PURE__ */
|
|
2209
|
+
children: /* @__PURE__ */ i(
|
|
2205
2210
|
"div",
|
|
2206
2211
|
{
|
|
2207
2212
|
ref: we([a, g]),
|
|
@@ -2211,7 +2216,7 @@ const Qo = {
|
|
|
2211
2216
|
"data-type": o,
|
|
2212
2217
|
style: V,
|
|
2213
2218
|
...m,
|
|
2214
|
-
children: /* @__PURE__ */
|
|
2219
|
+
children: /* @__PURE__ */ i(Da, { value: G, children: t })
|
|
2215
2220
|
}
|
|
2216
2221
|
)
|
|
2217
2222
|
}
|
|
@@ -2220,7 +2225,7 @@ const Qo = {
|
|
|
2220
2225
|
});
|
|
2221
2226
|
mt.displayName = "SlideOutContent";
|
|
2222
2227
|
const gt = u((n) => {
|
|
2223
|
-
const { ref: a, onMouseDown: t, disabled: e, ...s } = n, o = q(null), [r,
|
|
2228
|
+
const { ref: a, onMouseDown: t, disabled: e, ...s } = n, o = q(null), [r, c] = E(!1), { side: l, resizeable: d, computedSize: m, setComputedSize: g } = b(Da), p = e ?? !d, f = h(
|
|
2224
2229
|
(N, T) => {
|
|
2225
2230
|
switch (l) {
|
|
2226
2231
|
case "left":
|
|
@@ -2240,7 +2245,7 @@ const gt = u((n) => {
|
|
|
2240
2245
|
[l]
|
|
2241
2246
|
), C = h(
|
|
2242
2247
|
(N) => {
|
|
2243
|
-
t == null || t(N), !(N.defaultPrevented || p) && (N.preventDefault(), f(N.clientX, N.clientY),
|
|
2248
|
+
t == null || t(N), !(N.defaultPrevented || p) && (N.preventDefault(), f(N.clientX, N.clientY), c(!0));
|
|
2244
2249
|
},
|
|
2245
2250
|
[p, t, f]
|
|
2246
2251
|
), S = h(
|
|
@@ -2267,11 +2272,11 @@ const gt = u((n) => {
|
|
|
2267
2272
|
},
|
|
2268
2273
|
[p, m, r, g, f, l]
|
|
2269
2274
|
), z = h(() => {
|
|
2270
|
-
!r || p || (o.current = null,
|
|
2275
|
+
!r || p || (o.current = null, c(!1));
|
|
2271
2276
|
}, [p, r]);
|
|
2272
2277
|
return B(() => (document.addEventListener("pointermove", S), document.addEventListener("pointerup", z), () => {
|
|
2273
2278
|
document.removeEventListener("pointermove", S), document.removeEventListener("pointerup", z);
|
|
2274
|
-
}), [S, z]), /* @__PURE__ */
|
|
2279
|
+
}), [S, z]), /* @__PURE__ */ i(
|
|
2275
2280
|
"div",
|
|
2276
2281
|
{
|
|
2277
2282
|
ref: a,
|
|
@@ -2286,7 +2291,7 @@ const gt = u((n) => {
|
|
|
2286
2291
|
gt.displayName = "SlideOutHandle";
|
|
2287
2292
|
const pt = u((n) => {
|
|
2288
2293
|
const { ref: a, ...t } = n, { open: e, hide: s } = b(fe);
|
|
2289
|
-
return e && !s ? /* @__PURE__ */
|
|
2294
|
+
return e && !s ? /* @__PURE__ */ i("div", { ref: a, "data-open": e, ...t }) : null;
|
|
2290
2295
|
});
|
|
2291
2296
|
pt.displayName = "SlideOutOverlay";
|
|
2292
2297
|
const xt = u((n) => {
|
|
@@ -2297,7 +2302,7 @@ const xt = u((n) => {
|
|
|
2297
2302
|
open: s,
|
|
2298
2303
|
onOpenChange: o,
|
|
2299
2304
|
modal: r = !1,
|
|
2300
|
-
hide:
|
|
2305
|
+
hide: c = !1,
|
|
2301
2306
|
...l
|
|
2302
2307
|
} = n, [d, m] = E(null), [g, p] = X(e, s, o), f = w(
|
|
2303
2308
|
() => ({
|
|
@@ -2305,35 +2310,35 @@ const xt = u((n) => {
|
|
|
2305
2310
|
open: g,
|
|
2306
2311
|
setOpen: p,
|
|
2307
2312
|
modal: r,
|
|
2308
|
-
hide:
|
|
2313
|
+
hide: c
|
|
2309
2314
|
}),
|
|
2310
|
-
[
|
|
2315
|
+
[c, r, g, d, p]
|
|
2311
2316
|
);
|
|
2312
|
-
return /* @__PURE__ */
|
|
2317
|
+
return /* @__PURE__ */ i("div", { ref: we([a, m]), ...l, children: /* @__PURE__ */ i(fe, { value: f, children: t }) });
|
|
2313
2318
|
});
|
|
2314
2319
|
xt.displayName = "SlideOutRoot";
|
|
2315
2320
|
const Ga = u((n) => {
|
|
2316
2321
|
const { ref: a, onClick: t, ...e } = n, { open: s, setOpen: o } = b(fe), r = h(
|
|
2317
|
-
(
|
|
2318
|
-
t == null || t(
|
|
2322
|
+
(c) => {
|
|
2323
|
+
t == null || t(c), !c.defaultPrevented && o(!s);
|
|
2319
2324
|
},
|
|
2320
2325
|
[t, s, o]
|
|
2321
2326
|
);
|
|
2322
|
-
return /* @__PURE__ */
|
|
2327
|
+
return /* @__PURE__ */ i(me, { ref: a, onClick: r, "data-disabled": n.disabled ?? !1, ...e });
|
|
2323
2328
|
});
|
|
2324
2329
|
Ga.displayName = "SlideOutTrigger";
|
|
2325
2330
|
const ft = u((n) => {
|
|
2326
2331
|
const { ref: a, ...t } = n, e = q(null), { open: s, modal: o, parentElement: r } = b(fe);
|
|
2327
2332
|
return B(() => {
|
|
2328
2333
|
if (!e.current) return;
|
|
2329
|
-
const
|
|
2330
|
-
return s && o && (
|
|
2331
|
-
|
|
2334
|
+
const c = e.current, l = c.style.pointerEvents;
|
|
2335
|
+
return s && o && (c.style.pointerEvents = "none"), () => {
|
|
2336
|
+
c.style.pointerEvents = l;
|
|
2332
2337
|
};
|
|
2333
|
-
}, [o, s, r == null ? void 0 : r.style]), /* @__PURE__ */
|
|
2338
|
+
}, [o, s, r == null ? void 0 : r.style]), /* @__PURE__ */ i("div", { ref: we([a, e]), ...t });
|
|
2334
2339
|
});
|
|
2335
2340
|
ft.displayName = "SlideOutViewport";
|
|
2336
|
-
const
|
|
2341
|
+
const qc = {
|
|
2337
2342
|
Close: ut,
|
|
2338
2343
|
Content: mt,
|
|
2339
2344
|
Handle: gt,
|
|
@@ -2343,34 +2348,34 @@ const _i = {
|
|
|
2343
2348
|
Viewport: ft
|
|
2344
2349
|
}, Ea = u((n) => {
|
|
2345
2350
|
const { ref: a, ...t } = n;
|
|
2346
|
-
return /* @__PURE__ */
|
|
2351
|
+
return /* @__PURE__ */ i(ut, { ref: a, ...t });
|
|
2347
2352
|
});
|
|
2348
2353
|
Ea.displayName = "LayoutSlideOutClose";
|
|
2349
2354
|
const Fa = u((n) => {
|
|
2350
|
-
const { ref: a, type: t, ...e } = n, { small: s } =
|
|
2351
|
-
return /* @__PURE__ */
|
|
2355
|
+
const { ref: a, type: t, ...e } = n, { small: s } = ke();
|
|
2356
|
+
return /* @__PURE__ */ i(mt, { ref: a, type: t ?? (s ? "overlay" : "inline"), ...e });
|
|
2352
2357
|
});
|
|
2353
2358
|
Fa.displayName = "LayoutSlideOutContent";
|
|
2354
2359
|
const _a = u((n) => {
|
|
2355
2360
|
const { ref: a, ...t } = n;
|
|
2356
|
-
return /* @__PURE__ */
|
|
2361
|
+
return /* @__PURE__ */ i(gt, { ref: a, ...t });
|
|
2357
2362
|
});
|
|
2358
2363
|
_a.displayName = "LayoutSlideOutHandle";
|
|
2359
2364
|
const Ha = u((n) => {
|
|
2360
|
-
const { ref: a, smallModeOnly: t = !1, ...e } = n, { small: s, hideLayout: o } =
|
|
2361
|
-
return w(() => !(o || t && !s), [o, s, t]) ? /* @__PURE__ */
|
|
2365
|
+
const { ref: a, smallModeOnly: t = !1, ...e } = n, { small: s, hideLayout: o } = ke();
|
|
2366
|
+
return w(() => !(o || t && !s), [o, s, t]) ? /* @__PURE__ */ i(pt, { ref: a, ...e }) : null;
|
|
2362
2367
|
});
|
|
2363
2368
|
Ha.displayName = "SlideOutOverlay";
|
|
2364
2369
|
const Ba = u((n) => {
|
|
2365
|
-
const { ref: a, slideOutId: t, defaultOpen: e, hide: s, ...o } = n, { isOpen: r, setOpen:
|
|
2370
|
+
const { ref: a, slideOutId: t, defaultOpen: e, hide: s, ...o } = n, { isOpen: r, setOpen: c, small: l, hideLayout: d } = ke(), m = r(t), g = h(
|
|
2366
2371
|
(p) => {
|
|
2367
|
-
p ||
|
|
2372
|
+
p || c(t, !1);
|
|
2368
2373
|
},
|
|
2369
|
-
[
|
|
2374
|
+
[c, t]
|
|
2370
2375
|
);
|
|
2371
2376
|
return B(() => {
|
|
2372
|
-
l && (e == null ? void 0 : e.small) !== void 0 ?
|
|
2373
|
-
}, [e, t,
|
|
2377
|
+
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);
|
|
2378
|
+
}, [e, t, c, l]), /* @__PURE__ */ i(
|
|
2374
2379
|
xt,
|
|
2375
2380
|
{
|
|
2376
2381
|
ref: a,
|
|
@@ -2383,19 +2388,19 @@ const Ba = u((n) => {
|
|
|
2383
2388
|
);
|
|
2384
2389
|
});
|
|
2385
2390
|
Ba.displayName = "LayoutSlideOutRoot";
|
|
2386
|
-
const ja = u((n) => {
|
|
2387
|
-
const { ref: a, slideOutId: t, children: e, ...s } = n, { isOpen: o, setOpen: r } = dt(), i = o(t), l = h(() => {
|
|
2388
|
-
r(t, !i);
|
|
2389
|
-
}, [i, r, t]);
|
|
2390
|
-
return /* @__PURE__ */ c(me, { "data-state": pe(i), ref: a, onClick: l, ...s, children: e });
|
|
2391
|
-
});
|
|
2392
|
-
ja.displayName = "LayoutSlideOutTrigger";
|
|
2393
2391
|
const $a = u((n) => {
|
|
2392
|
+
const { ref: a, slideOutId: t, children: e, ...s } = n, { isOpen: o, setOpen: r } = ke(), c = o(t), l = h(() => {
|
|
2393
|
+
r(t, !c);
|
|
2394
|
+
}, [c, r, t]);
|
|
2395
|
+
return /* @__PURE__ */ i(me, { "data-state": pe(c), ref: a, onClick: l, ...s, children: e });
|
|
2396
|
+
});
|
|
2397
|
+
$a.displayName = "LayoutSlideOutTrigger";
|
|
2398
|
+
const ja = u((n) => {
|
|
2394
2399
|
const { ref: a, ...t } = n;
|
|
2395
|
-
return /* @__PURE__ */
|
|
2400
|
+
return /* @__PURE__ */ i(ft, { ref: a, ...t });
|
|
2396
2401
|
});
|
|
2397
|
-
|
|
2398
|
-
const
|
|
2402
|
+
ja.displayName = "LayoutSlideOutViewport";
|
|
2403
|
+
const Uc = {
|
|
2399
2404
|
Root: Aa,
|
|
2400
2405
|
Container: La,
|
|
2401
2406
|
SlideOutClose: Ea,
|
|
@@ -2403,9 +2408,9 @@ const Hi = {
|
|
|
2403
2408
|
SlideOutHandle: _a,
|
|
2404
2409
|
SlideOutOverlay: Ha,
|
|
2405
2410
|
SlideOutRoot: Ba,
|
|
2406
|
-
SlideOutTrigger:
|
|
2407
|
-
SlideOutViewport:
|
|
2408
|
-
},
|
|
2411
|
+
SlideOutTrigger: $a,
|
|
2412
|
+
SlideOutViewport: ja
|
|
2413
|
+
}, tr = v(["cursor-pointer"], {
|
|
2409
2414
|
variants: {
|
|
2410
2415
|
size: {
|
|
2411
2416
|
none: ["[font-size:inherit]", "leading-[inherit]"],
|
|
@@ -2440,24 +2445,24 @@ const Hi = {
|
|
|
2440
2445
|
weight: "regular",
|
|
2441
2446
|
align: "left"
|
|
2442
2447
|
}
|
|
2443
|
-
}),
|
|
2448
|
+
}), ar = u((n) => {
|
|
2444
2449
|
const a = M(), {
|
|
2445
2450
|
ref: t,
|
|
2446
2451
|
children: e,
|
|
2447
2452
|
className: s,
|
|
2448
2453
|
size: o,
|
|
2449
2454
|
weight: r = "regular",
|
|
2450
|
-
align:
|
|
2455
|
+
align: c = "left",
|
|
2451
2456
|
highContrast: l = !1,
|
|
2452
2457
|
accentColor: d = a.accentColor,
|
|
2453
2458
|
...m
|
|
2454
2459
|
} = n;
|
|
2455
|
-
return /* @__PURE__ */
|
|
2460
|
+
return /* @__PURE__ */ i(
|
|
2456
2461
|
"a",
|
|
2457
2462
|
{
|
|
2458
2463
|
ref: t,
|
|
2459
2464
|
className: x(
|
|
2460
|
-
|
|
2465
|
+
tr({ size: o, weight: r, align: c }),
|
|
2461
2466
|
{
|
|
2462
2467
|
"text-(--accent-a11)": !l,
|
|
2463
2468
|
"text-(--accent-a12)": l
|
|
@@ -2470,8 +2475,8 @@ const Hi = {
|
|
|
2470
2475
|
}
|
|
2471
2476
|
);
|
|
2472
2477
|
});
|
|
2473
|
-
|
|
2474
|
-
const
|
|
2478
|
+
ar.displayName = "Link";
|
|
2479
|
+
const nr = v(
|
|
2475
2480
|
[
|
|
2476
2481
|
"select-none",
|
|
2477
2482
|
"relative",
|
|
@@ -2511,7 +2516,7 @@ const er = v(
|
|
|
2511
2516
|
variant: "soft"
|
|
2512
2517
|
}
|
|
2513
2518
|
}
|
|
2514
|
-
),
|
|
2519
|
+
), sr = v(["text-(--base-a10)", "flex", "items-center", "select-none", "py-1"], {
|
|
2515
2520
|
variants: {
|
|
2516
2521
|
size: {
|
|
2517
2522
|
xs: ["gap-1.5", "px-3", "text-xs"],
|
|
@@ -2524,7 +2529,7 @@ const er = v(
|
|
|
2524
2529
|
defaultVariants: {
|
|
2525
2530
|
size: "md"
|
|
2526
2531
|
}
|
|
2527
|
-
}),
|
|
2532
|
+
}), or = v(["h-px", "bg-(--base-a6)", "w-auto", "shrink-0"], {
|
|
2528
2533
|
variants: {
|
|
2529
2534
|
size: {
|
|
2530
2535
|
xs: ["-mx-0.5", "my-0.5"],
|
|
@@ -2574,7 +2579,7 @@ const er = v(
|
|
|
2574
2579
|
size: "md"
|
|
2575
2580
|
}
|
|
2576
2581
|
}
|
|
2577
|
-
),
|
|
2582
|
+
), rr = v(["overflow-hidden", "touch-manipulation"], {
|
|
2578
2583
|
variants: {
|
|
2579
2584
|
modal: {
|
|
2580
2585
|
true: ["pointer-events-auto"],
|
|
@@ -2584,7 +2589,7 @@ const er = v(
|
|
|
2584
2589
|
defaultVariants: {
|
|
2585
2590
|
modal: !1
|
|
2586
2591
|
}
|
|
2587
|
-
}),
|
|
2592
|
+
}), cr = v(
|
|
2588
2593
|
[
|
|
2589
2594
|
"flex",
|
|
2590
2595
|
"items-stretch",
|
|
@@ -2610,8 +2615,8 @@ const er = v(
|
|
|
2610
2615
|
size: "md"
|
|
2611
2616
|
}
|
|
2612
2617
|
}
|
|
2613
|
-
), J =
|
|
2614
|
-
const a = b(
|
|
2618
|
+
), J = P({}), ie = P({}), Fe = P({}), ir = ["Enter", " "], se = u((n) => {
|
|
2619
|
+
const a = b(ie), { getItemProps: t, activeIndex: e, setOpen: s, size: o, variant: r, radius: c } = b(J), { closeRoot: l } = b(Fe), {
|
|
2615
2620
|
ref: d,
|
|
2616
2621
|
className: m,
|
|
2617
2622
|
children: g,
|
|
@@ -2628,14 +2633,14 @@ const er = v(
|
|
|
2628
2633
|
[S, l, z, a, f, p, s]
|
|
2629
2634
|
), A = h(
|
|
2630
2635
|
(F) => {
|
|
2631
|
-
z || (C == null || C(F),
|
|
2636
|
+
z || (C == null || C(F), ir.includes(F.key) && (p == null || p(), S && s(!1)));
|
|
2632
2637
|
},
|
|
2633
2638
|
[S, z, C, p, s]
|
|
2634
2639
|
), G = w(() => L === e, [e, L]), O = w(() => typeof g == "function" ? g({ active: G, selected: !1 }) : g, [g, G]);
|
|
2635
|
-
return /* @__PURE__ */
|
|
2640
|
+
return /* @__PURE__ */ i(
|
|
2636
2641
|
"li",
|
|
2637
2642
|
{
|
|
2638
|
-
className: x(
|
|
2643
|
+
className: x(nr({ size: o, variant: r }), k({ radius: c, maxLarge: !0 }), m),
|
|
2639
2644
|
ref: y,
|
|
2640
2645
|
role: "menuitem",
|
|
2641
2646
|
"data-disabled": Q(z),
|
|
@@ -2664,25 +2669,25 @@ const Ua = u((n) => {
|
|
|
2664
2669
|
break;
|
|
2665
2670
|
}
|
|
2666
2671
|
}, [t, e, s]);
|
|
2667
|
-
return /* @__PURE__ */
|
|
2672
|
+
return /* @__PURE__ */ i(Se.Provider, { value: t, children: /* @__PURE__ */ i(se, { ref: a, onSelect: r, ...o }) });
|
|
2668
2673
|
});
|
|
2669
2674
|
Ua.displayName = "MenuCheckboxItem";
|
|
2670
2675
|
const Wa = u((n) => {
|
|
2671
2676
|
const { ref: a, children: t, ...e } = n;
|
|
2672
|
-
return /* @__PURE__ */
|
|
2677
|
+
return /* @__PURE__ */ i(De, { ref: a, ...e, children: t });
|
|
2673
2678
|
});
|
|
2674
2679
|
Wa.displayName = "MenuCheckboxItemIndicator";
|
|
2675
2680
|
const Ka = u((n) => {
|
|
2676
|
-
const { ref: a, children: t, disabled: e = !1 } = n, { getReferenceProps: s, refs: o, setTriggerType: r, open:
|
|
2681
|
+
const { ref: a, children: t, disabled: e = !1 } = n, { getReferenceProps: s, refs: o, setTriggerType: r, open: c } = b(ie), l = ge([o.setReference, a]);
|
|
2677
2682
|
return B(() => {
|
|
2678
2683
|
r("click");
|
|
2679
|
-
}, [r]), /* @__PURE__ */
|
|
2684
|
+
}, [r]), /* @__PURE__ */ i(
|
|
2680
2685
|
me,
|
|
2681
2686
|
{
|
|
2682
2687
|
ref: l,
|
|
2683
2688
|
"aria-disabled": e,
|
|
2684
2689
|
"data-disabled": Q(e),
|
|
2685
|
-
"data-state": pe(
|
|
2690
|
+
"data-state": pe(c),
|
|
2686
2691
|
...s({ disabled: e }),
|
|
2687
2692
|
children: t
|
|
2688
2693
|
}
|
|
@@ -2690,14 +2695,14 @@ const Ka = u((n) => {
|
|
|
2690
2695
|
});
|
|
2691
2696
|
Ka.displayName = "MenuClickTrigger";
|
|
2692
2697
|
const Xa = u((n) => {
|
|
2693
|
-
var
|
|
2698
|
+
var R;
|
|
2694
2699
|
const a = M(), {
|
|
2695
2700
|
ref: t,
|
|
2696
2701
|
className: e,
|
|
2697
2702
|
children: s,
|
|
2698
2703
|
size: o = "md",
|
|
2699
2704
|
variant: r = "soft",
|
|
2700
|
-
radius:
|
|
2705
|
+
radius: c = a.radius,
|
|
2701
2706
|
accentColor: l = "base",
|
|
2702
2707
|
...d
|
|
2703
2708
|
} = n, {
|
|
@@ -2715,15 +2720,15 @@ const Xa = u((n) => {
|
|
|
2715
2720
|
floatingStyles: V,
|
|
2716
2721
|
modal: A,
|
|
2717
2722
|
side: G
|
|
2718
|
-
} = b(
|
|
2723
|
+
} = b(ie), O = w(() => {
|
|
2719
2724
|
var I;
|
|
2720
2725
|
return {
|
|
2721
2726
|
...V,
|
|
2722
2727
|
visibility: (I = p.hide) != null && I.referenceHidden ? "hidden" : "visible"
|
|
2723
2728
|
};
|
|
2724
|
-
}, [V, (
|
|
2729
|
+
}, [V, (R = p.hide) == null ? void 0 : R.referenceHidden]), F = h(
|
|
2725
2730
|
(I) => {
|
|
2726
|
-
A &&
|
|
2731
|
+
A && bo(I);
|
|
2727
2732
|
},
|
|
2728
2733
|
[A]
|
|
2729
2734
|
), ee = w(
|
|
@@ -2738,7 +2743,7 @@ const Xa = u((n) => {
|
|
|
2738
2743
|
size: o,
|
|
2739
2744
|
variant: r,
|
|
2740
2745
|
accentColor: l,
|
|
2741
|
-
radius:
|
|
2746
|
+
radius: c
|
|
2742
2747
|
}),
|
|
2743
2748
|
[
|
|
2744
2749
|
z,
|
|
@@ -2751,17 +2756,17 @@ const Xa = u((n) => {
|
|
|
2751
2756
|
o,
|
|
2752
2757
|
r,
|
|
2753
2758
|
l,
|
|
2754
|
-
|
|
2759
|
+
c
|
|
2755
2760
|
]
|
|
2756
2761
|
);
|
|
2757
|
-
return /* @__PURE__ */
|
|
2758
|
-
|
|
2762
|
+
return /* @__PURE__ */ i(Pt, { id: L, children: N && /* @__PURE__ */ i(Tt, { children: /* @__PURE__ */ i(
|
|
2763
|
+
Zs,
|
|
2759
2764
|
{
|
|
2760
|
-
className:
|
|
2765
|
+
className: rr({ modal: A }),
|
|
2761
2766
|
onClick: F,
|
|
2762
2767
|
lockScroll: !0,
|
|
2763
2768
|
"data-floating-content": "",
|
|
2764
|
-
children: /* @__PURE__ */
|
|
2769
|
+
children: /* @__PURE__ */ i(Mt, { context: y, children: /* @__PURE__ */ i(Ot, { elementsRef: f, children: /* @__PURE__ */ i(J.Provider, { value: ee, children: /* @__PURE__ */ i(
|
|
2765
2770
|
"div",
|
|
2766
2771
|
{
|
|
2767
2772
|
className: "border-box w-max outline-none",
|
|
@@ -2770,13 +2775,13 @@ const Xa = u((n) => {
|
|
|
2770
2775
|
style: O,
|
|
2771
2776
|
"data-floating-content": "",
|
|
2772
2777
|
...g(),
|
|
2773
|
-
children: /* @__PURE__ */
|
|
2778
|
+
children: /* @__PURE__ */ i(
|
|
2774
2779
|
"ul",
|
|
2775
2780
|
{
|
|
2776
2781
|
className: x(
|
|
2777
2782
|
qa({ size: o }),
|
|
2778
|
-
|
|
2779
|
-
k({ radius:
|
|
2783
|
+
Ve({ side: G, shadow: "3" }),
|
|
2784
|
+
k({ radius: c, maxLarge: !0 }),
|
|
2780
2785
|
"max-h-(--overmap-menu-available-height)",
|
|
2781
2786
|
e
|
|
2782
2787
|
),
|
|
@@ -2795,10 +2800,10 @@ const Xa = u((n) => {
|
|
|
2795
2800
|
});
|
|
2796
2801
|
Xa.displayName = "Menu.Content";
|
|
2797
2802
|
const Ya = u((n) => {
|
|
2798
|
-
const { ref: a, children: t, disabled: e = !1 } = n, s = q(null), { setOpen: o, refs: r, setTriggerType:
|
|
2803
|
+
const { ref: a, children: t, disabled: e = !1 } = n, s = q(null), { setOpen: o, refs: r, setTriggerType: c, open: l } = b(ie), d = ge([a, s]);
|
|
2799
2804
|
B(() => {
|
|
2800
|
-
|
|
2801
|
-
}, [
|
|
2805
|
+
c("context");
|
|
2806
|
+
}, [c]);
|
|
2802
2807
|
const m = h(
|
|
2803
2808
|
(g) => {
|
|
2804
2809
|
const { clientY: p, clientX: f } = g;
|
|
@@ -2820,7 +2825,7 @@ const Ya = u((n) => {
|
|
|
2820
2825
|
},
|
|
2821
2826
|
[e, r, o]
|
|
2822
2827
|
);
|
|
2823
|
-
return /* @__PURE__ */
|
|
2828
|
+
return /* @__PURE__ */ i(
|
|
2824
2829
|
me,
|
|
2825
2830
|
{
|
|
2826
2831
|
ref: d,
|
|
@@ -2836,11 +2841,11 @@ const Ya = u((n) => {
|
|
|
2836
2841
|
Ya.displayName = "MenuContextTrigger";
|
|
2837
2842
|
const _e = u((n) => {
|
|
2838
2843
|
const { ref: a, children: t, ...e } = n;
|
|
2839
|
-
return /* @__PURE__ */
|
|
2844
|
+
return /* @__PURE__ */ i("div", { ref: a, role: "group", ...e, children: t });
|
|
2840
2845
|
});
|
|
2841
2846
|
_e.displayName = "MenuGroup";
|
|
2842
2847
|
const Qa = u((n) => {
|
|
2843
|
-
const { ref: a, className: t, onValueChange: e, onChange: s, disabled: o = !1, ...r } = n, { activeIndex:
|
|
2848
|
+
const { ref: a, className: t, onValueChange: e, onChange: s, disabled: o = !1, ...r } = n, { activeIndex: c, getItemProps: l } = b(J), { index: d, ref: m } = Rt(), g = ge([m, a]), p = h(
|
|
2844
2849
|
(f) => {
|
|
2845
2850
|
s == null || s(f), e == null || e(f.target.value);
|
|
2846
2851
|
},
|
|
@@ -2848,7 +2853,7 @@ const Qa = u((n) => {
|
|
|
2848
2853
|
);
|
|
2849
2854
|
return B(() => () => {
|
|
2850
2855
|
e == null || e("");
|
|
2851
|
-
}, []), /* @__PURE__ */
|
|
2856
|
+
}, []), /* @__PURE__ */ i(
|
|
2852
2857
|
"input",
|
|
2853
2858
|
{
|
|
2854
2859
|
className: x("placeholder-(--base-a9)", "selection:bg-(--accent-a5)", "outline-none", t),
|
|
@@ -2857,7 +2862,7 @@ const Qa = u((n) => {
|
|
|
2857
2862
|
"data-disabled": Q(o),
|
|
2858
2863
|
...l({
|
|
2859
2864
|
...r,
|
|
2860
|
-
tabIndex: d ===
|
|
2865
|
+
tabIndex: d === c ? 0 : -1,
|
|
2861
2866
|
onChange: p
|
|
2862
2867
|
})
|
|
2863
2868
|
}
|
|
@@ -2866,29 +2871,29 @@ const Qa = u((n) => {
|
|
|
2866
2871
|
Qa.displayName = "MenuInputField";
|
|
2867
2872
|
const Ja = u((n) => {
|
|
2868
2873
|
const { ref: a, className: t, ...e } = n, { size: s } = b(J);
|
|
2869
|
-
return /* @__PURE__ */
|
|
2874
|
+
return /* @__PURE__ */ i("div", { className: x(cr({ size: s }), t), ref: a, ...e });
|
|
2870
2875
|
});
|
|
2871
2876
|
Ja.displayName = "MenuInputRoot";
|
|
2872
2877
|
const Za = u((n) => {
|
|
2873
2878
|
const { ref: a, className: t, ...e } = n;
|
|
2874
|
-
return /* @__PURE__ */
|
|
2879
|
+
return /* @__PURE__ */ i("div", { className: x("flex", "items-center", "text-(--base-a11)", t), ref: a, ...e });
|
|
2875
2880
|
});
|
|
2876
2881
|
Za.displayName = "MenuInputSlot";
|
|
2877
2882
|
const en = u((n) => {
|
|
2878
2883
|
const { ref: a, className: t, ...e } = n, { size: s } = b(J);
|
|
2879
|
-
return /* @__PURE__ */
|
|
2884
|
+
return /* @__PURE__ */ i("div", { ref: a, className: x(sr({ size: s }), t), ...e });
|
|
2880
2885
|
});
|
|
2881
2886
|
en.displayName = "MenuLabel";
|
|
2882
|
-
const
|
|
2883
|
-
const { ref: t, children: e, defaultValues: s, values: o, onValuesChange: r, ...
|
|
2884
|
-
return /* @__PURE__ */
|
|
2885
|
-
}),
|
|
2886
|
-
const { ref: a, onSelect: t, children: e, closeOnSelect: s = !1, value: o, ...r } = n, { selected:
|
|
2887
|
+
const lr = _(function(a) {
|
|
2888
|
+
const { ref: t, children: e, defaultValues: s, values: o, onValuesChange: r, ...c } = a;
|
|
2889
|
+
return /* @__PURE__ */ i(_e, { ref: t, ...c, children: /* @__PURE__ */ i(Ae, { defaultValues: s, values: o, onValuesChange: r, children: e }) });
|
|
2890
|
+
}), dr = _(function(n) {
|
|
2891
|
+
const { ref: a, onSelect: t, children: e, closeOnSelect: s = !1, value: o, ...r } = n, { selected: c, selectValue: l, registerValue: d } = b(Z);
|
|
2887
2892
|
ue(() => d(o), [d, o]);
|
|
2888
|
-
const m =
|
|
2893
|
+
const m = c(o), g = h(() => {
|
|
2889
2894
|
t == null || t(), l(o);
|
|
2890
2895
|
}, [t, l, o]), p = w(() => typeof e == "function" ? ({ active: f }) => e({ selected: m, active: f }) : e, [e, m]);
|
|
2891
|
-
return /* @__PURE__ */
|
|
2896
|
+
return /* @__PURE__ */ i(xe.Provider, { value: m, children: /* @__PURE__ */ i(
|
|
2892
2897
|
se,
|
|
2893
2898
|
{
|
|
2894
2899
|
ref: a,
|
|
@@ -2900,25 +2905,25 @@ const rr = _(function(a) {
|
|
|
2900
2905
|
children: p
|
|
2901
2906
|
}
|
|
2902
2907
|
) });
|
|
2903
|
-
}), ht =
|
|
2908
|
+
}), ht = P({}), tn = u((n) => {
|
|
2904
2909
|
const { page: a, children: t } = n, { activePage: e } = b(ht);
|
|
2905
2910
|
return e === a ? t : null;
|
|
2906
2911
|
});
|
|
2907
2912
|
tn.displayName = "PageContent";
|
|
2908
2913
|
const an = u((n) => {
|
|
2909
|
-
const { children: a, defaultPage: t, page: e, onPageChange: s } = n, [o, r] = X(t ?? "", e, s),
|
|
2910
|
-
return /* @__PURE__ */
|
|
2914
|
+
const { children: a, defaultPage: t, page: e, onPageChange: s } = n, [o, r] = X(t ?? "", e, s), c = w(() => ({ activePage: o, setActivePage: r }), [o, r]);
|
|
2915
|
+
return /* @__PURE__ */ i(ht.Provider, { value: c, children: a });
|
|
2911
2916
|
});
|
|
2912
2917
|
an.displayName = "MenuPages";
|
|
2913
2918
|
const nn = u((n) => {
|
|
2914
|
-
const { ref: a, onSelect: t, page: e, ...s } = n, { refs: o, setActiveIndex: r } = b(J), { setActivePage:
|
|
2919
|
+
const { ref: a, onSelect: t, page: e, ...s } = n, { refs: o, setActiveIndex: r } = b(J), { setActivePage: c } = b(ht), l = h(() => {
|
|
2915
2920
|
var d;
|
|
2916
|
-
t == null || t(),
|
|
2917
|
-
}, [t, e, o.floating, r,
|
|
2918
|
-
return /* @__PURE__ */
|
|
2921
|
+
t == null || t(), c(e), (d = o.floating.current) == null || d.focus(), r(null);
|
|
2922
|
+
}, [t, e, o.floating, r, c]);
|
|
2923
|
+
return /* @__PURE__ */ i(se, { ref: a, onSelect: l, closeOnSelect: !1, ...s });
|
|
2919
2924
|
});
|
|
2920
2925
|
nn.displayName = "MenuPageTrigger";
|
|
2921
|
-
const
|
|
2926
|
+
const Me = 20, Y = 8, sn = 250, ur = 5, on = u((n) => {
|
|
2922
2927
|
const {
|
|
2923
2928
|
children: a,
|
|
2924
2929
|
side: t = "bottom",
|
|
@@ -2927,10 +2932,10 @@ const Te = 20, Y = 8, sn = 250, cr = 5, on = u((n) => {
|
|
|
2927
2932
|
loop: o = !1,
|
|
2928
2933
|
modal: r = !1,
|
|
2929
2934
|
// open state related props
|
|
2930
|
-
open:
|
|
2935
|
+
open: c,
|
|
2931
2936
|
onOpenChange: l,
|
|
2932
2937
|
defaultOpen: d
|
|
2933
|
-
} = n, [m, g] = X(d ?? !1,
|
|
2938
|
+
} = n, [m, g] = X(d ?? !1, c, l), [p, f] = E(null), [C, S] = E(null), z = q([]), N = Vt(), { refs: T, floatingStyles: L, context: y, middlewareData: V } = Lt({
|
|
2934
2939
|
nodeId: N,
|
|
2935
2940
|
strategy: "fixed",
|
|
2936
2941
|
// TODO: probably some way with template string types to not need the "as Placement"
|
|
@@ -2939,7 +2944,7 @@ const Te = 20, Y = 8, sn = 250, cr = 5, on = u((n) => {
|
|
|
2939
2944
|
open: m,
|
|
2940
2945
|
onOpenChange: g,
|
|
2941
2946
|
middleware: [
|
|
2942
|
-
At({ mainAxis: s ??
|
|
2947
|
+
At({ mainAxis: s ?? ur }),
|
|
2943
2948
|
Dt({
|
|
2944
2949
|
apply({ availableHeight: he, elements: ve }) {
|
|
2945
2950
|
ve.floating.style.setProperty(
|
|
@@ -2947,25 +2952,25 @@ const Te = 20, Y = 8, sn = 250, cr = 5, on = u((n) => {
|
|
|
2947
2952
|
`${Math.max(he, sn)}px`
|
|
2948
2953
|
);
|
|
2949
2954
|
},
|
|
2950
|
-
padding:
|
|
2955
|
+
padding: Me
|
|
2951
2956
|
}),
|
|
2952
2957
|
Gt({ fallbackStrategy: "initialPlacement" }),
|
|
2953
|
-
Et({ padding:
|
|
2958
|
+
Et({ padding: Me }),
|
|
2954
2959
|
Ft()
|
|
2955
2960
|
]
|
|
2956
|
-
}), A =
|
|
2961
|
+
}), A = eo(y, {
|
|
2957
2962
|
role: "menu"
|
|
2958
2963
|
}), G = Ht(y, {
|
|
2959
2964
|
capture: !0,
|
|
2960
2965
|
ancestorScroll: C === "context" || C === "virtual"
|
|
2961
2966
|
}), O = Bt(y, {
|
|
2962
2967
|
enabled: C === "click"
|
|
2963
|
-
}), F =
|
|
2968
|
+
}), F = $t(y, {
|
|
2964
2969
|
listRef: z,
|
|
2965
2970
|
activeIndex: p,
|
|
2966
2971
|
onNavigate: f,
|
|
2967
2972
|
loop: o
|
|
2968
|
-
}), { getFloatingProps: ee, getItemProps:
|
|
2973
|
+
}), { getFloatingProps: ee, getItemProps: R, getReferenceProps: I } = jt([
|
|
2969
2974
|
G,
|
|
2970
2975
|
F,
|
|
2971
2976
|
O,
|
|
@@ -2979,7 +2984,7 @@ const Te = 20, Y = 8, sn = 250, cr = 5, on = u((n) => {
|
|
|
2979
2984
|
floatingStyles: L,
|
|
2980
2985
|
elementsRef: z,
|
|
2981
2986
|
getFloatingProps: ee,
|
|
2982
|
-
getItemProps:
|
|
2987
|
+
getItemProps: R,
|
|
2983
2988
|
getReferenceProps: I,
|
|
2984
2989
|
nodeId: N,
|
|
2985
2990
|
activeIndex: p,
|
|
@@ -2997,7 +3002,7 @@ const Te = 20, Y = 8, sn = 250, cr = 5, on = u((n) => {
|
|
|
2997
3002
|
L,
|
|
2998
3003
|
z,
|
|
2999
3004
|
ee,
|
|
3000
|
-
|
|
3005
|
+
R,
|
|
3001
3006
|
I,
|
|
3002
3007
|
N,
|
|
3003
3008
|
p,
|
|
@@ -3008,12 +3013,12 @@ const Te = 20, Y = 8, sn = 250, cr = 5, on = u((n) => {
|
|
|
3008
3013
|
S
|
|
3009
3014
|
]
|
|
3010
3015
|
);
|
|
3011
|
-
return /* @__PURE__ */
|
|
3016
|
+
return /* @__PURE__ */ i(to, { children: /* @__PURE__ */ i(ie.Provider, { value: D, children: a }) });
|
|
3012
3017
|
});
|
|
3013
3018
|
on.displayName = "Root";
|
|
3014
3019
|
const rn = u((n) => {
|
|
3015
3020
|
const { ref: a, className: t, ...e } = n;
|
|
3016
|
-
return /* @__PURE__ */
|
|
3021
|
+
return /* @__PURE__ */ i(
|
|
3017
3022
|
"div",
|
|
3018
3023
|
{
|
|
3019
3024
|
ref: a,
|
|
@@ -3026,11 +3031,11 @@ const rn = u((n) => {
|
|
|
3026
3031
|
);
|
|
3027
3032
|
});
|
|
3028
3033
|
rn.displayName = "MenuScroll";
|
|
3029
|
-
const
|
|
3030
|
-
const { ref: a, children: t, onSelect: e, closeOnSelect: s = !1, ...o } = n, { allSelected: r, someSelected:
|
|
3034
|
+
const mr = _((n) => {
|
|
3035
|
+
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 = h(() => {
|
|
3031
3036
|
e == null || e(), l();
|
|
3032
3037
|
}, [e, l]), g = w(() => typeof t == "function" ? ({ active: p }) => t({ selected: d, active: p }) : t, [t, d]);
|
|
3033
|
-
return /* @__PURE__ */
|
|
3038
|
+
return /* @__PURE__ */ i(Se, { value: d, children: /* @__PURE__ */ i(
|
|
3034
3039
|
se,
|
|
3035
3040
|
{
|
|
3036
3041
|
onSelect: m,
|
|
@@ -3043,25 +3048,25 @@ const lr = _((n) => {
|
|
|
3043
3048
|
) });
|
|
3044
3049
|
}), cn = u((n) => {
|
|
3045
3050
|
const { ref: a, children: t, ...e } = n;
|
|
3046
|
-
return /* @__PURE__ */
|
|
3051
|
+
return /* @__PURE__ */ i(Ee, { ref: a, ...e, children: t });
|
|
3047
3052
|
});
|
|
3048
3053
|
cn.displayName = "MenuSelectedIndicator";
|
|
3049
|
-
const
|
|
3050
|
-
const { ref: t, children: e, required: s, defaultValue: o, value: r, onValueChange:
|
|
3051
|
-
return /* @__PURE__ */
|
|
3054
|
+
const gr = _(function(a) {
|
|
3055
|
+
const { ref: t, children: e, required: s, defaultValue: o, value: r, onValueChange: c, ...l } = a;
|
|
3056
|
+
return /* @__PURE__ */ i(_e, { ref: t, ...l, children: s ? /* @__PURE__ */ i(st, { defaultValue: o, value: r, onValueChange: c, children: e }) : /* @__PURE__ */ i(
|
|
3052
3057
|
ot,
|
|
3053
3058
|
{
|
|
3054
3059
|
defaultValue: o,
|
|
3055
3060
|
value: r,
|
|
3056
|
-
onValueChange:
|
|
3061
|
+
onValueChange: c,
|
|
3057
3062
|
children: e
|
|
3058
3063
|
}
|
|
3059
3064
|
) });
|
|
3060
|
-
}),
|
|
3061
|
-
const { ref: a, value: t, onSelect: e, children: s, closeOnSelect: o = !0, ...r } = n, { selected:
|
|
3065
|
+
}), pr = _(function(n) {
|
|
3066
|
+
const { ref: a, value: t, onSelect: e, children: s, closeOnSelect: o = !0, ...r } = n, { selected: c, selectValue: l } = b(Ne), d = c(t), m = h(() => {
|
|
3062
3067
|
e == null || e(), l(t);
|
|
3063
3068
|
}, [e, l, t]), g = w(() => typeof s == "function" ? ({ active: p }) => s({ selected: d, active: p }) : s, [s, d]);
|
|
3064
|
-
return /* @__PURE__ */
|
|
3069
|
+
return /* @__PURE__ */ i(xe.Provider, { value: d, children: /* @__PURE__ */ i(
|
|
3065
3070
|
se,
|
|
3066
3071
|
{
|
|
3067
3072
|
ref: a,
|
|
@@ -3075,15 +3080,15 @@ const dr = _(function(a) {
|
|
|
3075
3080
|
) });
|
|
3076
3081
|
}), ln = u((n) => {
|
|
3077
3082
|
const { ref: a, className: t, ...e } = n, { size: s } = b(J);
|
|
3078
|
-
return /* @__PURE__ */
|
|
3083
|
+
return /* @__PURE__ */ i(Je.Root, { className: x(or({ size: s }), t), ref: a, ...e });
|
|
3079
3084
|
});
|
|
3080
3085
|
ln.displayName = "MenuSeparator";
|
|
3081
|
-
const
|
|
3086
|
+
const xr = { mainAxis: Y + 1, crossAxis: 0 }, fr = {
|
|
3082
3087
|
"right-start": { mainAxis: Y + 1, crossAxis: -Y },
|
|
3083
3088
|
"right-end": { mainAxis: Y + 1, crossAxis: Y },
|
|
3084
3089
|
"left-start": { mainAxis: Y + 1, crossAxis: -Y },
|
|
3085
3090
|
"left-end": { mainAxis: Y + 1, crossAxis: Y }
|
|
3086
|
-
},
|
|
3091
|
+
}, hr = (n, a) => fr[`${n}-${a}`] ?? xr, dn = u((n) => {
|
|
3087
3092
|
const {
|
|
3088
3093
|
children: a,
|
|
3089
3094
|
disabled: t = !1,
|
|
@@ -3091,7 +3096,7 @@ const mr = { mainAxis: Y + 1, crossAxis: 0 }, gr = {
|
|
|
3091
3096
|
align: s = "start",
|
|
3092
3097
|
closeRoot: o = !1,
|
|
3093
3098
|
loop: r = !1,
|
|
3094
|
-
modal:
|
|
3099
|
+
modal: c = !1,
|
|
3095
3100
|
// open state related props
|
|
3096
3101
|
open: l,
|
|
3097
3102
|
onOpenChange: d,
|
|
@@ -3101,51 +3106,51 @@ const mr = { mainAxis: Y + 1, crossAxis: 0 }, gr = {
|
|
|
3101
3106
|
strategy: "fixed",
|
|
3102
3107
|
whileElementsMounted: _t,
|
|
3103
3108
|
open: g,
|
|
3104
|
-
onOpenChange: (
|
|
3105
|
-
D && p(
|
|
3109
|
+
onOpenChange: (R, I, D) => {
|
|
3110
|
+
D && p(R);
|
|
3106
3111
|
},
|
|
3107
3112
|
placement: e + (s !== "center" ? "-" + s : ""),
|
|
3108
3113
|
middleware: [
|
|
3109
|
-
At({ ...
|
|
3114
|
+
At({ ...hr(e, s) }),
|
|
3110
3115
|
Dt({
|
|
3111
|
-
padding:
|
|
3112
|
-
apply({ availableHeight:
|
|
3116
|
+
padding: Me,
|
|
3117
|
+
apply({ availableHeight: R, elements: I }) {
|
|
3113
3118
|
I.floating.style.setProperty(
|
|
3114
3119
|
"--overmap-menu-available-height",
|
|
3115
|
-
`${Math.max(
|
|
3120
|
+
`${Math.max(R, sn)}px`
|
|
3116
3121
|
);
|
|
3117
3122
|
}
|
|
3118
3123
|
}),
|
|
3119
3124
|
Gt(),
|
|
3120
|
-
Et({ padding:
|
|
3125
|
+
Et({ padding: Me }),
|
|
3121
3126
|
Ft()
|
|
3122
3127
|
]
|
|
3123
3128
|
}), N = Ht(z, {
|
|
3124
3129
|
bubbles: o,
|
|
3125
3130
|
outsidePress: o
|
|
3126
|
-
}), T =
|
|
3131
|
+
}), T = ao(z, {
|
|
3127
3132
|
restMs: 50,
|
|
3128
|
-
handleClose:
|
|
3133
|
+
handleClose: no({
|
|
3129
3134
|
blockPointerEvents: !0,
|
|
3130
3135
|
requireIntent: !1
|
|
3131
3136
|
}),
|
|
3132
3137
|
enabled: !t
|
|
3133
3138
|
}), L = Bt(z, {
|
|
3134
3139
|
enabled: !t
|
|
3135
|
-
}), y = q([]), [V, A] = E(null), G =
|
|
3140
|
+
}), y = q([]), [V, A] = E(null), G = $t(z, {
|
|
3136
3141
|
listRef: y,
|
|
3137
3142
|
nested: !0,
|
|
3138
3143
|
activeIndex: V,
|
|
3139
3144
|
onNavigate: A,
|
|
3140
3145
|
loop: r,
|
|
3141
3146
|
rtl: e === "left"
|
|
3142
|
-
}), { getFloatingProps: O, getItemProps: F, getReferenceProps: ee } =
|
|
3147
|
+
}), { getFloatingProps: O, getItemProps: F, getReferenceProps: ee } = jt([
|
|
3143
3148
|
G,
|
|
3144
3149
|
N,
|
|
3145
3150
|
T,
|
|
3146
3151
|
L
|
|
3147
3152
|
]);
|
|
3148
|
-
return /* @__PURE__ */
|
|
3153
|
+
return /* @__PURE__ */ i(
|
|
3149
3154
|
Fe.Provider,
|
|
3150
3155
|
{
|
|
3151
3156
|
value: {
|
|
@@ -3164,7 +3169,7 @@ const mr = { mainAxis: Y + 1, crossAxis: 0 }, gr = {
|
|
|
3164
3169
|
disabled: t,
|
|
3165
3170
|
side: e,
|
|
3166
3171
|
closeRoot: o,
|
|
3167
|
-
modal:
|
|
3172
|
+
modal: c
|
|
3168
3173
|
},
|
|
3169
3174
|
children: a
|
|
3170
3175
|
}
|
|
@@ -3173,7 +3178,7 @@ const mr = { mainAxis: Y + 1, crossAxis: 0 }, gr = {
|
|
|
3173
3178
|
dn.displayName = "SubMenu";
|
|
3174
3179
|
const un = u((n) => {
|
|
3175
3180
|
var O;
|
|
3176
|
-
const { ref: a, children: t, ...e } = n, { middlewareData: s } = b(
|
|
3181
|
+
const { ref: a, children: t, ...e } = n, { middlewareData: s } = b(ie), { accentColor: o, radius: r, variant: c, size: l } = b(J), {
|
|
3177
3182
|
open: d,
|
|
3178
3183
|
nodeId: m,
|
|
3179
3184
|
refs: g,
|
|
@@ -3193,7 +3198,7 @@ const un = u((n) => {
|
|
|
3193
3198
|
visibility: (F = s.hide) != null && F.referenceHidden ? "hidden" : "visible"
|
|
3194
3199
|
};
|
|
3195
3200
|
}, [T, (O = s.hide) == null ? void 0 : O.referenceHidden]);
|
|
3196
|
-
return /* @__PURE__ */
|
|
3201
|
+
return /* @__PURE__ */ i(Pt, { id: m, children: d && /* @__PURE__ */ i(Tt, { children: /* @__PURE__ */ i(Mt, { context: p, initialFocus: V, children: /* @__PURE__ */ i(Ot, { elementsRef: N, children: /* @__PURE__ */ i(
|
|
3197
3202
|
J.Provider,
|
|
3198
3203
|
{
|
|
3199
3204
|
value: {
|
|
@@ -3207,22 +3212,22 @@ const un = u((n) => {
|
|
|
3207
3212
|
size: l,
|
|
3208
3213
|
radius: r,
|
|
3209
3214
|
accentColor: o,
|
|
3210
|
-
variant:
|
|
3215
|
+
variant: c
|
|
3211
3216
|
},
|
|
3212
|
-
children: /* @__PURE__ */
|
|
3217
|
+
children: /* @__PURE__ */ i(
|
|
3213
3218
|
"div",
|
|
3214
3219
|
{
|
|
3215
3220
|
className: "outline-none",
|
|
3216
3221
|
ref: A,
|
|
3217
3222
|
style: G,
|
|
3218
3223
|
...f(),
|
|
3219
|
-
children: /* @__PURE__ */
|
|
3224
|
+
children: /* @__PURE__ */ i(
|
|
3220
3225
|
"ul",
|
|
3221
3226
|
{
|
|
3222
3227
|
className: x(
|
|
3223
3228
|
"overmap-menu-sub-content",
|
|
3224
3229
|
qa({ size: l }),
|
|
3225
|
-
|
|
3230
|
+
Ve({ side: y, shadow: "3" }),
|
|
3226
3231
|
k({ radius: r, maxLarge: !0 }),
|
|
3227
3232
|
"max-h-(--overmap-menu-available-height)"
|
|
3228
3233
|
),
|
|
@@ -3241,15 +3246,15 @@ const un = u((n) => {
|
|
|
3241
3246
|
});
|
|
3242
3247
|
un.displayName = "MenuSubContent";
|
|
3243
3248
|
const mn = u((n) => {
|
|
3244
|
-
const { ref: a, children: t, ...e } = n, { refs: s, getReferenceProps: o, open: r, disabled:
|
|
3245
|
-
return /* @__PURE__ */
|
|
3249
|
+
const { ref: a, children: t, ...e } = n, { refs: s, getReferenceProps: o, open: r, disabled: c } = b(Fe), l = ge([a, s.setReference]);
|
|
3250
|
+
return /* @__PURE__ */ i(
|
|
3246
3251
|
se,
|
|
3247
3252
|
{
|
|
3248
3253
|
ref: l,
|
|
3249
3254
|
closeOnSelect: !1,
|
|
3250
3255
|
"aria-haspopup": "menu",
|
|
3251
3256
|
"data-state": pe(r),
|
|
3252
|
-
disabled:
|
|
3257
|
+
disabled: c,
|
|
3253
3258
|
...o(e),
|
|
3254
3259
|
children: t
|
|
3255
3260
|
}
|
|
@@ -3257,7 +3262,7 @@ const mn = u((n) => {
|
|
|
3257
3262
|
});
|
|
3258
3263
|
mn.displayName = "MenuSubTrigger";
|
|
3259
3264
|
const gn = u((n) => {
|
|
3260
|
-
const { virtualElement: a, disabled: t } = n, { refs: e, setTriggerType: s, setOpen: o } = b(
|
|
3265
|
+
const { virtualElement: a, disabled: t } = n, { refs: e, setTriggerType: s, setOpen: o } = b(ie);
|
|
3261
3266
|
return B(() => {
|
|
3262
3267
|
s("virtual");
|
|
3263
3268
|
}, [s]), B(() => {
|
|
@@ -3265,7 +3270,7 @@ const gn = u((n) => {
|
|
|
3265
3270
|
}, [t, e, o, a]), null;
|
|
3266
3271
|
});
|
|
3267
3272
|
gn.displayName = "VirtualTrigger";
|
|
3268
|
-
const
|
|
3273
|
+
const Wc = {
|
|
3269
3274
|
Root: on,
|
|
3270
3275
|
Content: Xa,
|
|
3271
3276
|
// sub
|
|
@@ -3282,13 +3287,13 @@ const Bi = {
|
|
|
3282
3287
|
VirtualTrigger: gn,
|
|
3283
3288
|
// groups
|
|
3284
3289
|
Group: _e,
|
|
3285
|
-
SelectGroup:
|
|
3286
|
-
MultiSelectGroup:
|
|
3290
|
+
SelectGroup: gr,
|
|
3291
|
+
MultiSelectGroup: lr,
|
|
3287
3292
|
// items
|
|
3288
3293
|
Item: se,
|
|
3289
|
-
SelectItem:
|
|
3290
|
-
MultiSelectItem:
|
|
3291
|
-
SelectAllItem:
|
|
3294
|
+
SelectItem: pr,
|
|
3295
|
+
MultiSelectItem: dr,
|
|
3296
|
+
SelectAllItem: mr,
|
|
3292
3297
|
CheckboxItem: Ua,
|
|
3293
3298
|
// indicators
|
|
3294
3299
|
SelectedIndicator: cn,
|
|
@@ -3307,7 +3312,7 @@ const Bi = {
|
|
|
3307
3312
|
first: "PageUp",
|
|
3308
3313
|
last: "PageDown",
|
|
3309
3314
|
selectItem: "Enter"
|
|
3310
|
-
}, te = "menu-item", Ke = "menu-group", He =
|
|
3315
|
+
}, te = "menu-item", Ke = "menu-group", He = P({}), pn = P({}), vt = P({}), vr = v(["w-full", "outline-none"], {
|
|
3311
3316
|
variants: {
|
|
3312
3317
|
size: {
|
|
3313
3318
|
xs: ["p-0.5", "text-xs", "min-w-30"],
|
|
@@ -3326,7 +3331,7 @@ const Bi = {
|
|
|
3326
3331
|
full: ["rounded-lg"]
|
|
3327
3332
|
}
|
|
3328
3333
|
}
|
|
3329
|
-
}),
|
|
3334
|
+
}), br = v(
|
|
3330
3335
|
[
|
|
3331
3336
|
"select-none",
|
|
3332
3337
|
"relative",
|
|
@@ -3361,7 +3366,7 @@ const Bi = {
|
|
|
3361
3366
|
}
|
|
3362
3367
|
}
|
|
3363
3368
|
}
|
|
3364
|
-
),
|
|
3369
|
+
), Cr = v(["text-(--base-a11)", "flex", "items-center", "select-none", "py-1"], {
|
|
3365
3370
|
variants: {
|
|
3366
3371
|
size: {
|
|
3367
3372
|
xs: ["gap-1.5", "px-3", "text-xs"],
|
|
@@ -3371,7 +3376,7 @@ const Bi = {
|
|
|
3371
3376
|
xl: ["gap-2.5", "px-5", "text-lg"]
|
|
3372
3377
|
}
|
|
3373
3378
|
}
|
|
3374
|
-
}),
|
|
3379
|
+
}), yr = v(["h-px", "bg-(--base-a6)", "w-auto", "shrink-0"], {
|
|
3375
3380
|
variants: {
|
|
3376
3381
|
size: {
|
|
3377
3382
|
xs: ["-mx-0.5", "my-0.5"],
|
|
@@ -3389,7 +3394,7 @@ const Bi = {
|
|
|
3389
3394
|
disabled: s = !1,
|
|
3390
3395
|
onClick: o,
|
|
3391
3396
|
onSelect: r,
|
|
3392
|
-
onPointerEnter:
|
|
3397
|
+
onPointerEnter: c,
|
|
3393
3398
|
onPointerLeave: l,
|
|
3394
3399
|
onPointerMove: d,
|
|
3395
3400
|
...m
|
|
@@ -3405,9 +3410,9 @@ const Bi = {
|
|
|
3405
3410
|
[L, o]
|
|
3406
3411
|
), V = h(
|
|
3407
3412
|
(O) => {
|
|
3408
|
-
|
|
3413
|
+
c == null || c(O), !O.defaultPrevented && C(p);
|
|
3409
3414
|
},
|
|
3410
|
-
[
|
|
3415
|
+
[c, C, p]
|
|
3411
3416
|
), A = h(
|
|
3412
3417
|
(O) => {
|
|
3413
3418
|
l == null || l(O), !O.defaultPrevented && C(null);
|
|
@@ -3425,11 +3430,11 @@ const Bi = {
|
|
|
3425
3430
|
return O.addEventListener("menu-select", L), () => {
|
|
3426
3431
|
O.removeEventListener("menu-select", L);
|
|
3427
3432
|
};
|
|
3428
|
-
}, [L]), /* @__PURE__ */
|
|
3433
|
+
}, [L]), /* @__PURE__ */ i(
|
|
3429
3434
|
"div",
|
|
3430
3435
|
{
|
|
3431
3436
|
ref: we([a, g]),
|
|
3432
|
-
className: x(
|
|
3437
|
+
className: x(br({ size: S, variant: z }), k({ radius: N, maxLarge: !0 }), e),
|
|
3433
3438
|
role: "menuitem",
|
|
3434
3439
|
onClick: y,
|
|
3435
3440
|
onPointerEnter: V,
|
|
@@ -3447,8 +3452,8 @@ const Bi = {
|
|
|
3447
3452
|
le.displayName = "MenuItem";
|
|
3448
3453
|
const xn = u((n) => {
|
|
3449
3454
|
const { ref: a, checked: t, onCheckedChange: e, onSelect: s, ...o } = n, r = h(
|
|
3450
|
-
(
|
|
3451
|
-
if (s == null || s(
|
|
3455
|
+
(c) => {
|
|
3456
|
+
if (s == null || s(c), !c.defaultPrevented)
|
|
3452
3457
|
switch (t) {
|
|
3453
3458
|
case !0:
|
|
3454
3459
|
e(!1);
|
|
@@ -3463,53 +3468,53 @@ const xn = u((n) => {
|
|
|
3463
3468
|
},
|
|
3464
3469
|
[t, e, s]
|
|
3465
3470
|
);
|
|
3466
|
-
return /* @__PURE__ */
|
|
3471
|
+
return /* @__PURE__ */ i(Se.Provider, { value: t, children: /* @__PURE__ */ i(le, { ref: a, onSelect: r, ...o }) });
|
|
3467
3472
|
});
|
|
3468
3473
|
xn.displayName = "MenuCheckboxItem";
|
|
3469
3474
|
const fn = u((n) => {
|
|
3470
3475
|
const { ref: a, children: t, ...e } = n;
|
|
3471
|
-
return /* @__PURE__ */
|
|
3476
|
+
return /* @__PURE__ */ i(De, { ref: a, ...e, children: t });
|
|
3472
3477
|
});
|
|
3473
3478
|
fn.displayName = "MenuCheckboxItemIndicator";
|
|
3474
3479
|
const Be = u((n) => {
|
|
3475
|
-
const { ref: a, children: t, ...e } = n, s = Ye(), [o, r] = E(null),
|
|
3480
|
+
const { ref: a, children: t, ...e } = n, s = Ye(), [o, r] = E(null), c = w(
|
|
3476
3481
|
() => ({
|
|
3477
3482
|
labelId: o,
|
|
3478
3483
|
setLabelId: r
|
|
3479
3484
|
}),
|
|
3480
3485
|
[o]
|
|
3481
3486
|
);
|
|
3482
|
-
return /* @__PURE__ */
|
|
3487
|
+
return /* @__PURE__ */ i("div", { ref: a, role: "group", [Ke]: s, "aria-labelledby": o ?? void 0, ...e, children: /* @__PURE__ */ i(pn, { value: c, children: t }) });
|
|
3483
3488
|
});
|
|
3484
3489
|
Be.displayName = "MenuGroup";
|
|
3485
3490
|
const hn = u((n) => {
|
|
3486
|
-
const { ref: a, children: t, id: e, className: s, ...o } = n, r =
|
|
3491
|
+
const { ref: a, children: t, id: e, className: s, ...o } = n, r = vo(e), { size: c } = b(He), { setLabelId: l } = b(pn);
|
|
3487
3492
|
return B(() => {
|
|
3488
3493
|
l(r);
|
|
3489
|
-
}, [r, l]), /* @__PURE__ */
|
|
3494
|
+
}, [r, l]), /* @__PURE__ */ i("div", { ref: a, id: r, className: x(Cr({ size: c }), s), ...o, children: t });
|
|
3490
3495
|
});
|
|
3491
3496
|
hn.displayName = "MenuGroupLabel";
|
|
3492
|
-
const
|
|
3493
|
-
const { ref: a, children: t, onSelect: e, ...s } = n, { allSelected: o, someSelected: r, toggleSelectAll:
|
|
3497
|
+
const zr = _((n) => {
|
|
3498
|
+
const { ref: a, children: t, onSelect: e, ...s } = n, { allSelected: o, someSelected: r, toggleSelectAll: c } = b(Z), l = o ? !0 : r ? "indeterminate" : !1, d = h(
|
|
3494
3499
|
(m) => {
|
|
3495
|
-
e == null || e(m), !m.defaultPrevented &&
|
|
3500
|
+
e == null || e(m), !m.defaultPrevented && c();
|
|
3496
3501
|
},
|
|
3497
|
-
[e,
|
|
3502
|
+
[e, c]
|
|
3498
3503
|
);
|
|
3499
|
-
return /* @__PURE__ */
|
|
3500
|
-
}),
|
|
3501
|
-
const { ref: t, children: e, defaultValues: s, values: o, onValuesChange: r, ...
|
|
3502
|
-
return /* @__PURE__ */
|
|
3503
|
-
}),
|
|
3504
|
-
const { ref: a, onSelect: t, children: e, value: s, ...o } = n, { selected: r, selectValue:
|
|
3504
|
+
return /* @__PURE__ */ i(le, { onSelect: d, ref: a, "data-state": Ie(l), ...s, children: /* @__PURE__ */ i(Se, { value: l, children: t }) });
|
|
3505
|
+
}), Nr = _(function(a) {
|
|
3506
|
+
const { ref: t, children: e, defaultValues: s, values: o, onValuesChange: r, ...c } = a;
|
|
3507
|
+
return /* @__PURE__ */ i(Be, { ref: t, ...c, children: /* @__PURE__ */ i(Ae, { defaultValues: s, values: o, onValuesChange: r, children: e }) });
|
|
3508
|
+
}), wr = _(function(n) {
|
|
3509
|
+
const { ref: a, onSelect: t, children: e, value: s, ...o } = n, { selected: r, selectValue: c, registerValue: l } = b(Z);
|
|
3505
3510
|
ue(() => l(s), [l, s]);
|
|
3506
3511
|
const d = r(s), m = h(
|
|
3507
3512
|
(g) => {
|
|
3508
|
-
t == null || t(g), !g.defaultPrevented &&
|
|
3513
|
+
t == null || t(g), !g.defaultPrevented && c(s);
|
|
3509
3514
|
},
|
|
3510
|
-
[t,
|
|
3515
|
+
[t, c, s]
|
|
3511
3516
|
);
|
|
3512
|
-
return /* @__PURE__ */
|
|
3517
|
+
return /* @__PURE__ */ i(
|
|
3513
3518
|
le,
|
|
3514
3519
|
{
|
|
3515
3520
|
ref: a,
|
|
@@ -3517,33 +3522,33 @@ const br = _((n) => {
|
|
|
3517
3522
|
onSelect: m,
|
|
3518
3523
|
"data-state": oe(d),
|
|
3519
3524
|
...o,
|
|
3520
|
-
children: /* @__PURE__ */
|
|
3525
|
+
children: /* @__PURE__ */ i(xe, { value: d, children: e })
|
|
3521
3526
|
}
|
|
3522
3527
|
);
|
|
3523
3528
|
}), vn = u((n) => {
|
|
3524
3529
|
const { children: a, ref: t, page: e, ...s } = n, { page: o } = b(vt), r = e === o;
|
|
3525
|
-
return /* @__PURE__ */
|
|
3530
|
+
return /* @__PURE__ */ i("div", { ref: t, "data-active": Le(r), hidden: !r, ...s, children: r ? a : null });
|
|
3526
3531
|
});
|
|
3527
3532
|
vn.displayName = "MenuPage";
|
|
3528
3533
|
const bn = u((n) => {
|
|
3529
|
-
const { children: a, defaultPage: t = "", page: e, onPageChange: s } = n, [o, r] = X(t, e, s),
|
|
3534
|
+
const { children: a, defaultPage: t = "", page: e, onPageChange: s } = n, [o, r] = X(t, e, s), c = w(
|
|
3530
3535
|
() => ({
|
|
3531
3536
|
page: o,
|
|
3532
3537
|
setPage: r
|
|
3533
3538
|
}),
|
|
3534
3539
|
[o, r]
|
|
3535
3540
|
);
|
|
3536
|
-
return /* @__PURE__ */
|
|
3541
|
+
return /* @__PURE__ */ i(vt, { value: c, children: a });
|
|
3537
3542
|
});
|
|
3538
3543
|
bn.displayName = "MenuPages";
|
|
3539
3544
|
const Cn = u((n) => {
|
|
3540
|
-
const { ref: a, children: t, page: e, onSelect: s, ...o } = n, { page: r, setPage:
|
|
3545
|
+
const { ref: a, children: t, page: e, onSelect: s, ...o } = n, { page: r, setPage: c } = b(vt), l = e === r, d = h(
|
|
3541
3546
|
(m) => {
|
|
3542
|
-
s == null || s(m), !m.defaultPrevented &&
|
|
3547
|
+
s == null || s(m), !m.defaultPrevented && c(e);
|
|
3543
3548
|
},
|
|
3544
|
-
[s, e,
|
|
3549
|
+
[s, e, c]
|
|
3545
3550
|
);
|
|
3546
|
-
return /* @__PURE__ */
|
|
3551
|
+
return /* @__PURE__ */ i(le, { ref: a, onSelect: d, "data-state": Le(l), ...o, children: /* @__PURE__ */ i(xe, { value: l, children: t }) });
|
|
3547
3552
|
});
|
|
3548
3553
|
Cn.displayName = "CommandMenuPageTriggerItem";
|
|
3549
3554
|
const St = (n, a, t, e) => {
|
|
@@ -3561,39 +3566,39 @@ const St = (n, a, t, e) => {
|
|
|
3561
3566
|
onKeyDown: o,
|
|
3562
3567
|
loop: r = !1,
|
|
3563
3568
|
// style props
|
|
3564
|
-
radius:
|
|
3569
|
+
radius: c = a.radius,
|
|
3565
3570
|
accentColor: l = "base",
|
|
3566
3571
|
size: d = "md",
|
|
3567
3572
|
variant: m = "soft",
|
|
3568
3573
|
...g
|
|
3569
|
-
} = n, p = q(null), [f, C] = E(null), S = h((
|
|
3570
|
-
(
|
|
3574
|
+
} = n, p = q(null), [f, C] = E(null), S = h((R) => Array.from(R.querySelectorAll(`[${te}]:not([data-disabled=true]`)), []), z = h(
|
|
3575
|
+
(R) => S(R).at(0),
|
|
3571
3576
|
[S]
|
|
3572
3577
|
), N = h(
|
|
3573
|
-
(
|
|
3578
|
+
(R) => S(R).at(-1),
|
|
3574
3579
|
[S]
|
|
3575
3580
|
), T = h(
|
|
3576
|
-
(
|
|
3581
|
+
(R) => S(R).find((I) => I.getAttribute(te) === f),
|
|
3577
3582
|
[f, S]
|
|
3578
3583
|
), L = h(
|
|
3579
|
-
(
|
|
3580
|
-
const D = S(
|
|
3584
|
+
(R, I) => {
|
|
3585
|
+
const D = S(R), he = T(R), ve = D.findIndex((zs) => zs === he), qe = St(ve, D.length, I, r);
|
|
3581
3586
|
return D[qe];
|
|
3582
3587
|
},
|
|
3583
3588
|
[T, S, r]
|
|
3584
3589
|
), y = h(() => p.current ? Array.from(p.current.querySelectorAll(`[${Ke}]`)) : [], []), V = h(() => {
|
|
3585
|
-
var
|
|
3586
|
-
return ((
|
|
3590
|
+
var R;
|
|
3591
|
+
return ((R = T(p.current)) == null ? void 0 : R.closest(`[${Ke}]`)) ?? void 0;
|
|
3587
3592
|
}, [T]), A = h(
|
|
3588
|
-
(
|
|
3589
|
-
const I = y(), D = V(), he = I.findIndex((qe) => qe === D), ve = St(he, I.length,
|
|
3593
|
+
(R) => {
|
|
3594
|
+
const I = y(), D = V(), he = I.findIndex((qe) => qe === D), ve = St(he, I.length, R, r);
|
|
3590
3595
|
return I[ve];
|
|
3591
3596
|
},
|
|
3592
3597
|
[V, y, r]
|
|
3593
3598
|
), G = h(() => y().at(0), [y]), O = h(() => y().at(-1), [y]), F = h(
|
|
3594
|
-
(
|
|
3595
|
-
if (o == null || o(
|
|
3596
|
-
switch (
|
|
3599
|
+
(R) => {
|
|
3600
|
+
if (o == null || o(R), !R.defaultPrevented)
|
|
3601
|
+
switch (R.code) {
|
|
3597
3602
|
case Ce.selectItem: {
|
|
3598
3603
|
const I = T(p.current);
|
|
3599
3604
|
I && I.dispatchEvent(new Event("menu-select"));
|
|
@@ -3601,7 +3606,7 @@ const St = (n, a, t, e) => {
|
|
|
3601
3606
|
}
|
|
3602
3607
|
case Ce.next: {
|
|
3603
3608
|
let I;
|
|
3604
|
-
if (
|
|
3609
|
+
if (R.shiftKey) {
|
|
3605
3610
|
const D = A("next");
|
|
3606
3611
|
if (!D) return;
|
|
3607
3612
|
I = z(D);
|
|
@@ -3613,7 +3618,7 @@ const St = (n, a, t, e) => {
|
|
|
3613
3618
|
}
|
|
3614
3619
|
case Ce.prev: {
|
|
3615
3620
|
let I;
|
|
3616
|
-
if (
|
|
3621
|
+
if (R.shiftKey) {
|
|
3617
3622
|
const D = A("prev");
|
|
3618
3623
|
if (!D) return;
|
|
3619
3624
|
I = z(D);
|
|
@@ -3625,7 +3630,7 @@ const St = (n, a, t, e) => {
|
|
|
3625
3630
|
}
|
|
3626
3631
|
case Ce.first: {
|
|
3627
3632
|
let I;
|
|
3628
|
-
if (
|
|
3633
|
+
if (R.shiftKey) {
|
|
3629
3634
|
const D = G();
|
|
3630
3635
|
if (!D) return;
|
|
3631
3636
|
I = z(D);
|
|
@@ -3637,7 +3642,7 @@ const St = (n, a, t, e) => {
|
|
|
3637
3642
|
}
|
|
3638
3643
|
case Ce.last: {
|
|
3639
3644
|
let I;
|
|
3640
|
-
if (
|
|
3645
|
+
if (R.shiftKey) {
|
|
3641
3646
|
const D = O();
|
|
3642
3647
|
if (!D) return;
|
|
3643
3648
|
I = z(D);
|
|
@@ -3653,8 +3658,8 @@ const St = (n, a, t, e) => {
|
|
|
3653
3658
|
);
|
|
3654
3659
|
B(() => {
|
|
3655
3660
|
var I;
|
|
3656
|
-
const
|
|
3657
|
-
|
|
3661
|
+
const R = z(p.current);
|
|
3662
|
+
R && ((I = p.current) == null || I.focus(), C(R.getAttribute(te)));
|
|
3658
3663
|
}, [z]);
|
|
3659
3664
|
const ee = w(
|
|
3660
3665
|
() => ({
|
|
@@ -3662,52 +3667,52 @@ const St = (n, a, t, e) => {
|
|
|
3662
3667
|
setActiveItemId: C,
|
|
3663
3668
|
// style props
|
|
3664
3669
|
accentColor: l,
|
|
3665
|
-
radius:
|
|
3670
|
+
radius: c,
|
|
3666
3671
|
variant: m,
|
|
3667
3672
|
size: d
|
|
3668
3673
|
}),
|
|
3669
|
-
[l, f,
|
|
3674
|
+
[l, f, c, d, m]
|
|
3670
3675
|
);
|
|
3671
|
-
return /* @__PURE__ */
|
|
3676
|
+
return /* @__PURE__ */ i(
|
|
3672
3677
|
"div",
|
|
3673
3678
|
{
|
|
3674
3679
|
ref: we([t, p]),
|
|
3675
|
-
className: x(
|
|
3680
|
+
className: x(vr({ size: d }), k({ radius: c, maxLarge: !0 }), s),
|
|
3676
3681
|
role: "menu",
|
|
3677
3682
|
onKeyDown: F,
|
|
3678
3683
|
tabIndex: 0,
|
|
3679
3684
|
"aria-activedescendant": f ?? void 0,
|
|
3680
3685
|
"data-accent-color": l,
|
|
3681
3686
|
...g,
|
|
3682
|
-
children: /* @__PURE__ */
|
|
3687
|
+
children: /* @__PURE__ */ i(He, { value: ee, children: e })
|
|
3683
3688
|
}
|
|
3684
3689
|
);
|
|
3685
3690
|
});
|
|
3686
3691
|
yn.displayName = "MenuRoot";
|
|
3687
3692
|
const zn = u((n) => {
|
|
3688
3693
|
const { ref: a, children: t, ...e } = n;
|
|
3689
|
-
return /* @__PURE__ */
|
|
3694
|
+
return /* @__PURE__ */ i(Ee, { ref: a, ...e, children: t });
|
|
3690
3695
|
});
|
|
3691
3696
|
zn.displayName = "MenuCheckboxItemIndicator";
|
|
3692
|
-
const
|
|
3693
|
-
const { ref: t, children: e, required: s, defaultValue: o, value: r, onValueChange:
|
|
3694
|
-
return /* @__PURE__ */
|
|
3697
|
+
const Ir = _(function(a) {
|
|
3698
|
+
const { ref: t, children: e, required: s, defaultValue: o, value: r, onValueChange: c, ...l } = a;
|
|
3699
|
+
return /* @__PURE__ */ i(Be, { ref: t, ...l, children: s ? /* @__PURE__ */ i(st, { defaultValue: o, value: r, onValueChange: c, children: e }) : /* @__PURE__ */ i(
|
|
3695
3700
|
ot,
|
|
3696
3701
|
{
|
|
3697
3702
|
defaultValue: o,
|
|
3698
3703
|
value: r,
|
|
3699
|
-
onValueChange:
|
|
3704
|
+
onValueChange: c,
|
|
3700
3705
|
children: e
|
|
3701
3706
|
}
|
|
3702
3707
|
) });
|
|
3703
|
-
}),
|
|
3704
|
-
const { ref: a, value: t, onSelect: e, children: s, ...o } = n, { selected: r, selectValue:
|
|
3708
|
+
}), Sr = _(function(n) {
|
|
3709
|
+
const { ref: a, value: t, onSelect: e, children: s, ...o } = n, { selected: r, selectValue: c } = b(Ne), l = r(t), d = h(
|
|
3705
3710
|
(m) => {
|
|
3706
|
-
e == null || e(m), !m.defaultPrevented &&
|
|
3711
|
+
e == null || e(m), !m.defaultPrevented && c(t);
|
|
3707
3712
|
},
|
|
3708
|
-
[e,
|
|
3713
|
+
[e, c, t]
|
|
3709
3714
|
);
|
|
3710
|
-
return /* @__PURE__ */
|
|
3715
|
+
return /* @__PURE__ */ i(
|
|
3711
3716
|
le,
|
|
3712
3717
|
{
|
|
3713
3718
|
ref: a,
|
|
@@ -3715,34 +3720,34 @@ const zr = _(function(a) {
|
|
|
3715
3720
|
onSelect: d,
|
|
3716
3721
|
"data-state": oe(l),
|
|
3717
3722
|
...o,
|
|
3718
|
-
children: /* @__PURE__ */
|
|
3723
|
+
children: /* @__PURE__ */ i(xe, { value: l, children: s })
|
|
3719
3724
|
}
|
|
3720
3725
|
);
|
|
3721
3726
|
}), Nn = u((n) => {
|
|
3722
3727
|
const { ref: a, className: t, ...e } = n, { size: s } = b(He);
|
|
3723
|
-
return /* @__PURE__ */
|
|
3728
|
+
return /* @__PURE__ */ i(Je.Root, { className: x(yr({ size: s }), t), ref: a, ...e });
|
|
3724
3729
|
});
|
|
3725
3730
|
Nn.displayName = "MenuSeparator";
|
|
3726
|
-
const
|
|
3731
|
+
const Kc = {
|
|
3727
3732
|
Root: yn,
|
|
3728
3733
|
Group: Be,
|
|
3729
3734
|
GroupLabel: hn,
|
|
3730
3735
|
Item: le,
|
|
3731
3736
|
Separator: Nn,
|
|
3732
|
-
SelectGroup:
|
|
3733
|
-
SelectItem:
|
|
3734
|
-
MultiSelectGroup:
|
|
3735
|
-
MultiSelectItem:
|
|
3736
|
-
SelectAllItem:
|
|
3737
|
+
SelectGroup: Ir,
|
|
3738
|
+
SelectItem: Sr,
|
|
3739
|
+
MultiSelectGroup: Nr,
|
|
3740
|
+
MultiSelectItem: wr,
|
|
3741
|
+
SelectAllItem: zr,
|
|
3737
3742
|
SelectedIndicator: zn,
|
|
3738
3743
|
CheckboxItem: xn,
|
|
3739
3744
|
CheckedIndicator: fn,
|
|
3740
3745
|
Pages: bn,
|
|
3741
3746
|
Page: vn,
|
|
3742
3747
|
PageTriggerItem: Cn
|
|
3743
|
-
}, wn = u((n) => /* @__PURE__ */
|
|
3748
|
+
}, wn = u((n) => /* @__PURE__ */ i(Ze.HiddenInput, { ...n }));
|
|
3744
3749
|
wn.displayName = "OneTimePasswordFieldHiddenInput";
|
|
3745
|
-
const In =
|
|
3750
|
+
const In = P({}), kr = v(
|
|
3746
3751
|
[
|
|
3747
3752
|
"flex",
|
|
3748
3753
|
"items-center",
|
|
@@ -3798,17 +3803,17 @@ const In = R({}), wr = v(
|
|
|
3798
3803
|
}
|
|
3799
3804
|
}
|
|
3800
3805
|
), Sn = u((n) => {
|
|
3801
|
-
const { ref: a, className: t, ...e } = n, { variant: s, size: o, radius: r, accentColor:
|
|
3802
|
-
return /* @__PURE__ */
|
|
3806
|
+
const { ref: a, className: t, ...e } = n, { variant: s, size: o, radius: r, accentColor: c } = b(In);
|
|
3807
|
+
return /* @__PURE__ */ i(
|
|
3803
3808
|
Ze.Input,
|
|
3804
3809
|
{
|
|
3805
3810
|
ref: a,
|
|
3806
3811
|
className: x(
|
|
3807
|
-
|
|
3812
|
+
kr({ variant: s, size: o }),
|
|
3808
3813
|
k({ radius: r, maxLarge: !0 }),
|
|
3809
3814
|
t
|
|
3810
3815
|
),
|
|
3811
|
-
"data-accent-color":
|
|
3816
|
+
"data-accent-color": c,
|
|
3812
3817
|
...e
|
|
3813
3818
|
}
|
|
3814
3819
|
);
|
|
@@ -3821,22 +3826,22 @@ const kn = u((n) => {
|
|
|
3821
3826
|
variant: s = "surface",
|
|
3822
3827
|
size: o = "md",
|
|
3823
3828
|
radius: r = a.radius,
|
|
3824
|
-
accentColor:
|
|
3829
|
+
accentColor: c = a.accentColor,
|
|
3825
3830
|
...l
|
|
3826
|
-
} = n, d = w(() => ({ variant: s, size: o, radius: r, accentColor:
|
|
3827
|
-
return /* @__PURE__ */
|
|
3831
|
+
} = n, d = w(() => ({ variant: s, size: o, radius: r, accentColor: c }), [c, r, o, s]);
|
|
3832
|
+
return /* @__PURE__ */ i(Ze.Root, { ref: t, "data-accent-color": c, ...l, children: /* @__PURE__ */ i(In, { value: d, children: e }) });
|
|
3828
3833
|
});
|
|
3829
3834
|
kn.displayName = "OneTimePasswordFieldRoot";
|
|
3830
|
-
const
|
|
3835
|
+
const Xc = {
|
|
3831
3836
|
HiddenInput: wn,
|
|
3832
3837
|
Input: Sn,
|
|
3833
3838
|
Root: kn
|
|
3834
3839
|
}, Rn = u((n) => {
|
|
3835
3840
|
const { ref: a, ...t } = n;
|
|
3836
|
-
return /* @__PURE__ */
|
|
3841
|
+
return /* @__PURE__ */ i(H.Close, { ref: a, ...t });
|
|
3837
3842
|
});
|
|
3838
3843
|
Rn.displayName = "OverlayClose";
|
|
3839
|
-
const
|
|
3844
|
+
const Rr = v([
|
|
3840
3845
|
"fixed",
|
|
3841
3846
|
"inset-0",
|
|
3842
3847
|
"bg-(--color-background)",
|
|
@@ -3848,10 +3853,10 @@ const Ir = v([
|
|
|
3848
3853
|
"data-[state='open']:zoom-in-95"
|
|
3849
3854
|
]), Pn = u((n) => {
|
|
3850
3855
|
const { ref: a, container: t, className: e, ...s } = n;
|
|
3851
|
-
return /* @__PURE__ */
|
|
3856
|
+
return /* @__PURE__ */ i(H.Portal, { container: t, children: /* @__PURE__ */ i(
|
|
3852
3857
|
H.Content,
|
|
3853
3858
|
{
|
|
3854
|
-
className: x(
|
|
3859
|
+
className: x(Rr(), e),
|
|
3855
3860
|
ref: a,
|
|
3856
3861
|
"data-floating-content": "",
|
|
3857
3862
|
...s
|
|
@@ -3861,22 +3866,22 @@ const Ir = v([
|
|
|
3861
3866
|
Pn.displayName = "OverlayContent";
|
|
3862
3867
|
const Tn = u((n) => {
|
|
3863
3868
|
const { ref: a, ...t } = n;
|
|
3864
|
-
return /* @__PURE__ */
|
|
3869
|
+
return /* @__PURE__ */ i(H.Description, { ref: a, ...t });
|
|
3865
3870
|
});
|
|
3866
3871
|
Tn.displayName = "OverlayDescription";
|
|
3867
|
-
const Mn = u((n) => /* @__PURE__ */
|
|
3872
|
+
const Mn = u((n) => /* @__PURE__ */ i(H.Root, { ...n }));
|
|
3868
3873
|
Mn.displayName = "OverlayRoot";
|
|
3869
3874
|
const On = u((n) => {
|
|
3870
3875
|
const { ref: a, ...t } = n;
|
|
3871
|
-
return /* @__PURE__ */
|
|
3876
|
+
return /* @__PURE__ */ i(H.Title, { ref: a, ...t });
|
|
3872
3877
|
});
|
|
3873
3878
|
On.displayName = "OverlayTitle";
|
|
3874
3879
|
const Vn = u((n) => {
|
|
3875
3880
|
const { ref: a, ...t } = n;
|
|
3876
|
-
return /* @__PURE__ */
|
|
3881
|
+
return /* @__PURE__ */ i(H.Trigger, { ref: a, ...t });
|
|
3877
3882
|
});
|
|
3878
3883
|
Vn.displayName = "OverlayTrigger";
|
|
3879
|
-
const
|
|
3884
|
+
const Yc = {
|
|
3880
3885
|
Root: Mn,
|
|
3881
3886
|
Content: Pn,
|
|
3882
3887
|
Title: On,
|
|
@@ -3884,41 +3889,41 @@ const qi = {
|
|
|
3884
3889
|
Trigger: Vn,
|
|
3885
3890
|
Close: Rn
|
|
3886
3891
|
}, Ue = { placeSelf: "center" }, Ln = u((n) => {
|
|
3887
|
-
const { absoluteCentering: a, message: t = "Something went wrong", onRetry: e } = n, { resetBoundary: s } =
|
|
3892
|
+
const { absoluteCentering: a, message: t = "Something went wrong", onRetry: e } = n, { resetBoundary: s } = so(), o = "20px", r = a ? { position: "absolute", top: "50%", transform: "translateY(-50%)" } : void 0, c = h(() => {
|
|
3888
3893
|
s(), e();
|
|
3889
3894
|
}, [e, s]);
|
|
3890
3895
|
return /* @__PURE__ */ W("div", { className: "flex w-full gap-2", style: r, children: [
|
|
3891
|
-
/* @__PURE__ */
|
|
3892
|
-
/* @__PURE__ */
|
|
3893
|
-
/* @__PURE__ */
|
|
3894
|
-
/* @__PURE__ */
|
|
3895
|
-
/* @__PURE__ */
|
|
3896
|
+
/* @__PURE__ */ i("div", { style: { flexGrow: 1 } }),
|
|
3897
|
+
/* @__PURE__ */ i(U, { icon: Hs, size: o, style: Ue }),
|
|
3898
|
+
/* @__PURE__ */ i("span", { style: { lineHeight: o, ...Ue }, children: t }),
|
|
3899
|
+
/* @__PURE__ */ i(tt, { "aria-label": "Try again", variant: "soft", onClick: c, style: Ue, children: /* @__PURE__ */ i(U, { icon: Bs, size: o }) }),
|
|
3900
|
+
/* @__PURE__ */ i("div", { style: { flexGrow: 1 } })
|
|
3896
3901
|
] });
|
|
3897
3902
|
});
|
|
3898
3903
|
Ln.displayName = "ErrorFallback";
|
|
3899
|
-
const
|
|
3900
|
-
const { absoluteCentering: a, message: t } = n, [e, s] = E(0), o = h((
|
|
3901
|
-
console.error("Error in OvermapErrorBoundary:",
|
|
3904
|
+
const Pr = u((n) => {
|
|
3905
|
+
const { absoluteCentering: a, message: t } = n, [e, s] = E(0), o = h((c, l) => {
|
|
3906
|
+
console.error("Error in OvermapErrorBoundary:", c, l), s((d) => d + 1);
|
|
3902
3907
|
}, []), r = h(() => {
|
|
3903
|
-
s((
|
|
3908
|
+
s((c) => c + 1);
|
|
3904
3909
|
}, []);
|
|
3905
|
-
return /* @__PURE__ */
|
|
3906
|
-
|
|
3910
|
+
return /* @__PURE__ */ i(
|
|
3911
|
+
oo,
|
|
3907
3912
|
{
|
|
3908
|
-
fallback: /* @__PURE__ */
|
|
3913
|
+
fallback: /* @__PURE__ */ i(Ln, { absoluteCentering: a, message: t, onRetry: r }),
|
|
3909
3914
|
onError: o,
|
|
3910
3915
|
children: n.children
|
|
3911
3916
|
},
|
|
3912
3917
|
e
|
|
3913
3918
|
);
|
|
3914
3919
|
});
|
|
3915
|
-
|
|
3920
|
+
Pr.displayName = "OvermapErrorBoundary";
|
|
3916
3921
|
const An = u((n) => {
|
|
3917
3922
|
const { ref: a, children: t, className: e, ...s } = n;
|
|
3918
|
-
return /* @__PURE__ */
|
|
3923
|
+
return /* @__PURE__ */ i(Te.Arrow, { className: x("fill-(--base-6)", e), ref: a, ...s, children: t });
|
|
3919
3924
|
});
|
|
3920
3925
|
An.displayName = "PopoverArrow";
|
|
3921
|
-
const
|
|
3926
|
+
const Tr = v(["bg-(--color-background)", "dark:bg-(--base-2)", "ring-1", "ring-(--base-6)"], {
|
|
3922
3927
|
variants: {
|
|
3923
3928
|
size: {
|
|
3924
3929
|
xs: ["p-2"],
|
|
@@ -3938,17 +3943,17 @@ const kr = v(["bg-(--color-background)", "dark:bg-(--base-2)", "ring-1", "ring-(
|
|
|
3938
3943
|
className: s,
|
|
3939
3944
|
radius: o = a.radius,
|
|
3940
3945
|
accentColor: r = a.accentColor,
|
|
3941
|
-
size:
|
|
3946
|
+
size: c = "md",
|
|
3942
3947
|
sideOffset: l = 5,
|
|
3943
3948
|
container: d,
|
|
3944
3949
|
...m
|
|
3945
3950
|
} = n;
|
|
3946
|
-
return /* @__PURE__ */
|
|
3947
|
-
|
|
3951
|
+
return /* @__PURE__ */ i(Te.Portal, { container: d, children: /* @__PURE__ */ i(
|
|
3952
|
+
Te.Content,
|
|
3948
3953
|
{
|
|
3949
3954
|
className: x(
|
|
3950
|
-
|
|
3951
|
-
|
|
3955
|
+
Tr({ size: c }),
|
|
3956
|
+
Ve({ shadow: "3" }),
|
|
3952
3957
|
k({ radius: o, maxLarge: !0 }),
|
|
3953
3958
|
s
|
|
3954
3959
|
),
|
|
@@ -3962,11 +3967,11 @@ const kr = v(["bg-(--color-background)", "dark:bg-(--base-2)", "ring-1", "ring-(
|
|
|
3962
3967
|
) });
|
|
3963
3968
|
});
|
|
3964
3969
|
Dn.displayName = "PopoverContent";
|
|
3965
|
-
const
|
|
3966
|
-
...
|
|
3970
|
+
const Qc = {
|
|
3971
|
+
...Te,
|
|
3967
3972
|
Content: Dn,
|
|
3968
3973
|
Arrow: An
|
|
3969
|
-
},
|
|
3974
|
+
}, Mr = v(["relative", "overflow-hidden", "grow"], {
|
|
3970
3975
|
variants: {
|
|
3971
3976
|
size: {
|
|
3972
3977
|
xs: ["h-1.5"],
|
|
@@ -3980,7 +3985,7 @@ const Ui = {
|
|
|
3980
3985
|
soft: ["bg-(--base-a4)"]
|
|
3981
3986
|
}
|
|
3982
3987
|
}
|
|
3983
|
-
}),
|
|
3988
|
+
}), Or = v(
|
|
3984
3989
|
[
|
|
3985
3990
|
"size-full",
|
|
3986
3991
|
"transform-[scaleX(calc(var(--progress-value)/var(--progress-max)))]",
|
|
@@ -4002,14 +4007,14 @@ const Ui = {
|
|
|
4002
4007
|
}
|
|
4003
4008
|
}
|
|
4004
4009
|
}
|
|
4005
|
-
),
|
|
4010
|
+
), Vr = u((n) => {
|
|
4006
4011
|
const a = M(), {
|
|
4007
4012
|
ref: t,
|
|
4008
4013
|
className: e,
|
|
4009
4014
|
style: s,
|
|
4010
4015
|
radius: o = a.radius,
|
|
4011
4016
|
variant: r = "surface",
|
|
4012
|
-
size:
|
|
4017
|
+
size: c = "md",
|
|
4013
4018
|
accentColor: l = a.accentColor,
|
|
4014
4019
|
...d
|
|
4015
4020
|
} = n, m = w(
|
|
@@ -4020,20 +4025,20 @@ const Ui = {
|
|
|
4020
4025
|
}),
|
|
4021
4026
|
[d.max, d.value, s]
|
|
4022
4027
|
);
|
|
4023
|
-
return /* @__PURE__ */
|
|
4028
|
+
return /* @__PURE__ */ i(
|
|
4024
4029
|
Nt.Root,
|
|
4025
4030
|
{
|
|
4026
4031
|
ref: t,
|
|
4027
|
-
className: x(
|
|
4032
|
+
className: x(Mr({ variant: r, size: c }), k({ radius: o, maxLarge: !1 }), e),
|
|
4028
4033
|
style: m,
|
|
4029
4034
|
"data-accent-color": l,
|
|
4030
4035
|
...d,
|
|
4031
|
-
children: /* @__PURE__ */
|
|
4036
|
+
children: /* @__PURE__ */ i(Nt.ProgressIndicator, { className: Or({ variant: r, size: c }) })
|
|
4032
4037
|
}
|
|
4033
4038
|
);
|
|
4034
4039
|
});
|
|
4035
|
-
|
|
4036
|
-
const Gn =
|
|
4040
|
+
Vr.displayName = "Progress";
|
|
4041
|
+
const Gn = P({}), Lr = v([], {
|
|
4037
4042
|
variants: {
|
|
4038
4043
|
size: {
|
|
4039
4044
|
xs: ["text-xs"],
|
|
@@ -4047,7 +4052,7 @@ const Gn = R({}), Mr = v([], {
|
|
|
4047
4052
|
outline: []
|
|
4048
4053
|
}
|
|
4049
4054
|
}
|
|
4050
|
-
}),
|
|
4055
|
+
}), Ar = v(
|
|
4051
4056
|
[
|
|
4052
4057
|
"block",
|
|
4053
4058
|
"overflow-hidden",
|
|
@@ -4092,10 +4097,10 @@ const Gn = R({}), Mr = v([], {
|
|
|
4092
4097
|
}
|
|
4093
4098
|
), En = u((n) => {
|
|
4094
4099
|
const { variant: a, size: t, radius: e } = b(Gn), { className: s, accentColor: o, ...r } = n;
|
|
4095
|
-
return /* @__PURE__ */
|
|
4100
|
+
return /* @__PURE__ */ i(
|
|
4096
4101
|
ae.Item,
|
|
4097
4102
|
{
|
|
4098
|
-
className: x(
|
|
4103
|
+
className: x(Ar({ variant: a, size: t }), k({ radius: e, maxLarge: !0 }), s),
|
|
4099
4104
|
"data-accent-color": o,
|
|
4100
4105
|
...r
|
|
4101
4106
|
}
|
|
@@ -4109,7 +4114,7 @@ const Fn = u((n) => {
|
|
|
4109
4114
|
variant: s = "surface",
|
|
4110
4115
|
size: o = "md",
|
|
4111
4116
|
radius: r = a.radius,
|
|
4112
|
-
accentColor:
|
|
4117
|
+
accentColor: c = a.accentColor,
|
|
4113
4118
|
...l
|
|
4114
4119
|
} = n, d = w(
|
|
4115
4120
|
() => ({
|
|
@@ -4119,23 +4124,23 @@ const Fn = u((n) => {
|
|
|
4119
4124
|
}),
|
|
4120
4125
|
[r, o, s]
|
|
4121
4126
|
);
|
|
4122
|
-
return /* @__PURE__ */
|
|
4127
|
+
return /* @__PURE__ */ i(
|
|
4123
4128
|
ae.Root,
|
|
4124
4129
|
{
|
|
4125
|
-
className: x(
|
|
4126
|
-
"data-accent-color":
|
|
4130
|
+
className: x(Lr({ size: o, variant: s }), t),
|
|
4131
|
+
"data-accent-color": c,
|
|
4127
4132
|
...l,
|
|
4128
|
-
children: /* @__PURE__ */
|
|
4133
|
+
children: /* @__PURE__ */ i(Gn, { value: d, children: e })
|
|
4129
4134
|
}
|
|
4130
4135
|
);
|
|
4131
4136
|
});
|
|
4132
4137
|
Fn.displayName = "RadioCardsRoot";
|
|
4133
|
-
const
|
|
4138
|
+
const Jc = {
|
|
4134
4139
|
Root: Fn,
|
|
4135
4140
|
Item: En
|
|
4136
4141
|
}, _n = u((n) => {
|
|
4137
4142
|
const { ref: a, children: t, className: e, ...s } = n;
|
|
4138
|
-
return /* @__PURE__ */
|
|
4143
|
+
return /* @__PURE__ */ i(
|
|
4139
4144
|
ae.Indicator,
|
|
4140
4145
|
{
|
|
4141
4146
|
className: x("inline-flex items-center justify-center", e),
|
|
@@ -4146,7 +4151,7 @@ const Wi = {
|
|
|
4146
4151
|
);
|
|
4147
4152
|
});
|
|
4148
4153
|
_n.displayName = "RadioGroupIndicator";
|
|
4149
|
-
const Hn =
|
|
4154
|
+
const Hn = P({}), Dr = v(
|
|
4150
4155
|
[
|
|
4151
4156
|
"inline-flex",
|
|
4152
4157
|
"justify-center",
|
|
@@ -4195,41 +4200,41 @@ const Hn = R({}), Vr = v(
|
|
|
4195
4200
|
className: s,
|
|
4196
4201
|
size: o = a.size,
|
|
4197
4202
|
variant: r = a.variant,
|
|
4198
|
-
...
|
|
4203
|
+
...c
|
|
4199
4204
|
} = n;
|
|
4200
|
-
return /* @__PURE__ */
|
|
4205
|
+
return /* @__PURE__ */ i(ae.Item, { className: x(Dr({ size: o, variant: r }), s), ref: t, ...c, children: e });
|
|
4201
4206
|
});
|
|
4202
4207
|
Bn.displayName = "RadioGroupItem";
|
|
4203
|
-
const
|
|
4208
|
+
const $n = u((n) => {
|
|
4204
4209
|
const a = M(), {
|
|
4205
4210
|
ref: t,
|
|
4206
4211
|
className: e,
|
|
4207
4212
|
accentColor: s = a.accentColor,
|
|
4208
4213
|
variant: o = "surface",
|
|
4209
4214
|
size: r = "md",
|
|
4210
|
-
children:
|
|
4215
|
+
children: c,
|
|
4211
4216
|
...l
|
|
4212
4217
|
} = n, d = w(() => ({ variant: o, size: r }), [o, r]);
|
|
4213
|
-
return /* @__PURE__ */
|
|
4218
|
+
return /* @__PURE__ */ i(ae.Root, { className: x(e), ref: t, "data-accent-color": s, ...l, children: /* @__PURE__ */ i(Hn.Provider, { value: d, children: c }) });
|
|
4214
4219
|
});
|
|
4215
|
-
|
|
4216
|
-
const
|
|
4220
|
+
$n.displayName = "RadioGroupRoot";
|
|
4221
|
+
const Zc = {
|
|
4217
4222
|
Indicator: _n,
|
|
4218
4223
|
Item: Bn,
|
|
4219
|
-
Root:
|
|
4220
|
-
}, bt =
|
|
4221
|
-
const { ref: a, children: t, value: e, ...s } = n, { value: o } = b(bt), r = !!o && e <= o,
|
|
4222
|
-
return /* @__PURE__ */
|
|
4224
|
+
Root: $n
|
|
4225
|
+
}, bt = P({}), jn = P({}), qn = u((n) => {
|
|
4226
|
+
const { ref: a, children: t, value: e, ...s } = n, { value: o } = b(bt), r = !!o && e <= o, c = w(() => ({ value: e }), [e]);
|
|
4227
|
+
return /* @__PURE__ */ i(ae.Item, { ref: a, value: e.toString(), "data-active": r, ...s, children: /* @__PURE__ */ i(jn, { value: c, children: t }) });
|
|
4223
4228
|
});
|
|
4224
4229
|
qn.displayName = "RatingItem";
|
|
4225
4230
|
const Un = u((n) => {
|
|
4226
|
-
const { ref: a, children: t, forceMount: e, ...s } = n, { value: o } = b(bt), { value: r } = b(
|
|
4227
|
-
return /* @__PURE__ */
|
|
4231
|
+
const { ref: a, children: t, forceMount: e, ...s } = n, { value: o } = b(bt), { value: r } = b(jn), c = !!o && r <= o;
|
|
4232
|
+
return /* @__PURE__ */ i(
|
|
4228
4233
|
ae.Indicator,
|
|
4229
4234
|
{
|
|
4230
4235
|
ref: a,
|
|
4231
|
-
forceMount: e ?? (
|
|
4232
|
-
"data-active":
|
|
4236
|
+
forceMount: e ?? (c || void 0),
|
|
4237
|
+
"data-active": c,
|
|
4233
4238
|
...s,
|
|
4234
4239
|
children: t
|
|
4235
4240
|
}
|
|
@@ -4237,34 +4242,34 @@ const Un = u((n) => {
|
|
|
4237
4242
|
});
|
|
4238
4243
|
Un.displayName = "RatingItemIndicator";
|
|
4239
4244
|
const Wn = u((n) => {
|
|
4240
|
-
const { ref: a, children: t, defaultValue: e, value: s, onValueChange: o, ...r } = n, [
|
|
4245
|
+
const { ref: a, children: t, defaultValue: e, value: s, onValueChange: o, ...r } = n, [c, l] = X(e ?? null, s, o), d = h(
|
|
4241
4246
|
(g) => {
|
|
4242
4247
|
l(parseInt(g));
|
|
4243
4248
|
},
|
|
4244
4249
|
[l]
|
|
4245
4250
|
), m = w(
|
|
4246
4251
|
() => ({
|
|
4247
|
-
value:
|
|
4252
|
+
value: c
|
|
4248
4253
|
}),
|
|
4249
|
-
[
|
|
4254
|
+
[c]
|
|
4250
4255
|
);
|
|
4251
|
-
return /* @__PURE__ */
|
|
4256
|
+
return /* @__PURE__ */ i(
|
|
4252
4257
|
ae.Root,
|
|
4253
4258
|
{
|
|
4254
4259
|
ref: a,
|
|
4255
|
-
value:
|
|
4260
|
+
value: c ? c.toString() : null,
|
|
4256
4261
|
onValueChange: d,
|
|
4257
4262
|
...r,
|
|
4258
|
-
children: /* @__PURE__ */
|
|
4263
|
+
children: /* @__PURE__ */ i(bt, { value: m, children: t })
|
|
4259
4264
|
}
|
|
4260
4265
|
);
|
|
4261
4266
|
});
|
|
4262
4267
|
Wn.displayName = "RatingRoot";
|
|
4263
|
-
const
|
|
4268
|
+
const ei = {
|
|
4264
4269
|
Item: qn,
|
|
4265
4270
|
ItemIndicator: Un,
|
|
4266
4271
|
Root: Wn
|
|
4267
|
-
},
|
|
4272
|
+
}, Gr = v(
|
|
4268
4273
|
["shrink-0", "transition-colors", "inline-flex", "box-border", "min-w-max", "text-center"],
|
|
4269
4274
|
{
|
|
4270
4275
|
variants: {
|
|
@@ -4282,7 +4287,7 @@ const Xi = {
|
|
|
4282
4287
|
}
|
|
4283
4288
|
}
|
|
4284
4289
|
}
|
|
4285
|
-
),
|
|
4290
|
+
), Er = v(
|
|
4286
4291
|
[
|
|
4287
4292
|
"h-full",
|
|
4288
4293
|
"grow",
|
|
@@ -4405,18 +4410,18 @@ const Xi = {
|
|
|
4405
4410
|
icon: !1
|
|
4406
4411
|
}
|
|
4407
4412
|
}
|
|
4408
|
-
), Kn =
|
|
4413
|
+
), Kn = P({}), Fr = () => {
|
|
4409
4414
|
const n = j(Kn);
|
|
4410
4415
|
if (!n)
|
|
4411
4416
|
throw new Error("useSegmentedControl must be used within a SegmentedControlProvider");
|
|
4412
4417
|
return n;
|
|
4413
4418
|
}, Xn = u((n) => {
|
|
4414
|
-
const { ref: a, className: t, ...e } = n, { size: s, radius: o, variant: r, icon:
|
|
4415
|
-
return /* @__PURE__ */
|
|
4416
|
-
|
|
4419
|
+
const { ref: a, className: t, ...e } = n, { size: s, radius: o, variant: r, icon: c } = Fr();
|
|
4420
|
+
return /* @__PURE__ */ i(
|
|
4421
|
+
Oe.Item,
|
|
4417
4422
|
{
|
|
4418
4423
|
ref: a,
|
|
4419
|
-
className: x(
|
|
4424
|
+
className: x(Er({ size: s, variant: r, icon: c, radius: o }), t),
|
|
4420
4425
|
...e
|
|
4421
4426
|
}
|
|
4422
4427
|
);
|
|
@@ -4429,32 +4434,32 @@ const Yn = u((n) => {
|
|
|
4429
4434
|
className: s,
|
|
4430
4435
|
size: o = "md",
|
|
4431
4436
|
variant: r = "surface",
|
|
4432
|
-
icon:
|
|
4437
|
+
icon: c = !1,
|
|
4433
4438
|
radius: l = a.radius,
|
|
4434
4439
|
accentColor: d = a.accentColor,
|
|
4435
4440
|
...m
|
|
4436
4441
|
} = n;
|
|
4437
|
-
return /* @__PURE__ */
|
|
4438
|
-
|
|
4442
|
+
return /* @__PURE__ */ i(
|
|
4443
|
+
Oe.Root,
|
|
4439
4444
|
{
|
|
4440
4445
|
ref: t,
|
|
4441
4446
|
className: x(
|
|
4442
|
-
|
|
4447
|
+
Gr({ size: o, variant: r }),
|
|
4443
4448
|
k({ radius: l, maxLarge: !1 }),
|
|
4444
4449
|
s
|
|
4445
4450
|
),
|
|
4446
4451
|
type: "single",
|
|
4447
4452
|
"data-accent-color": d,
|
|
4448
4453
|
...m,
|
|
4449
|
-
children: /* @__PURE__ */
|
|
4454
|
+
children: /* @__PURE__ */ i(Kn.Provider, { value: { size: o, variant: r, radius: l, icon: c }, children: e })
|
|
4450
4455
|
}
|
|
4451
4456
|
);
|
|
4452
4457
|
});
|
|
4453
4458
|
Yn.displayName = "SegmentedControlRoot";
|
|
4454
|
-
const
|
|
4459
|
+
const ti = {
|
|
4455
4460
|
Item: Xn,
|
|
4456
4461
|
Root: Yn
|
|
4457
|
-
}, Qn =
|
|
4462
|
+
}, Qn = P({}), _r = v(
|
|
4458
4463
|
["shrink-0", "transition-colors", "inline-flex", "box-border", "min-w-max", "text-center"],
|
|
4459
4464
|
{
|
|
4460
4465
|
variants: {
|
|
@@ -4476,7 +4481,7 @@ const Yi = {
|
|
|
4476
4481
|
size: "md"
|
|
4477
4482
|
}
|
|
4478
4483
|
}
|
|
4479
|
-
),
|
|
4484
|
+
), Hr = v(
|
|
4480
4485
|
[
|
|
4481
4486
|
"h-full",
|
|
4482
4487
|
"grow",
|
|
@@ -4606,53 +4611,53 @@ const Yi = {
|
|
|
4606
4611
|
className: s,
|
|
4607
4612
|
size: o = "md",
|
|
4608
4613
|
variant: r = "surface",
|
|
4609
|
-
radius:
|
|
4614
|
+
radius: c = a.radius,
|
|
4610
4615
|
accentColor: l = a.accentColor,
|
|
4611
4616
|
...d
|
|
4612
4617
|
} = n, m = w(
|
|
4613
4618
|
() => ({
|
|
4614
4619
|
size: o,
|
|
4615
4620
|
variant: r,
|
|
4616
|
-
radius:
|
|
4621
|
+
radius: c
|
|
4617
4622
|
}),
|
|
4618
|
-
[
|
|
4623
|
+
[c, o, r]
|
|
4619
4624
|
);
|
|
4620
|
-
return /* @__PURE__ */
|
|
4625
|
+
return /* @__PURE__ */ i(
|
|
4621
4626
|
ne.List,
|
|
4622
4627
|
{
|
|
4623
4628
|
ref: t,
|
|
4624
|
-
className: x(
|
|
4629
|
+
className: x(_r({ size: o, variant: r }), k({ radius: c, maxLarge: !1 }), s),
|
|
4625
4630
|
"data-accent-color": l,
|
|
4626
4631
|
...d,
|
|
4627
|
-
children: /* @__PURE__ */
|
|
4632
|
+
children: /* @__PURE__ */ i(Qn.Provider, { value: m, children: e })
|
|
4628
4633
|
}
|
|
4629
4634
|
);
|
|
4630
4635
|
});
|
|
4631
4636
|
Jn.displayName = "TabsList";
|
|
4632
4637
|
const Zn = u((n) => {
|
|
4633
4638
|
const { ref: a, className: t, ...e } = n;
|
|
4634
|
-
return /* @__PURE__ */
|
|
4639
|
+
return /* @__PURE__ */ i(ne.Root, { ref: a, className: x("flex flex-col", t), ...e });
|
|
4635
4640
|
});
|
|
4636
4641
|
Zn.displayName = "TabsRoot";
|
|
4637
4642
|
const es = u((n) => {
|
|
4638
|
-
const { ref: a, children: t, className: e, ...s } = n, { size: o, radius: r, variant:
|
|
4639
|
-
return /* @__PURE__ */
|
|
4643
|
+
const { ref: a, children: t, className: e, ...s } = n, { size: o, radius: r, variant: c } = b(Qn);
|
|
4644
|
+
return /* @__PURE__ */ i(
|
|
4640
4645
|
ne.Trigger,
|
|
4641
4646
|
{
|
|
4642
4647
|
ref: a,
|
|
4643
|
-
className: x(
|
|
4648
|
+
className: x(Hr({ size: o, radius: r, variant: c }), e),
|
|
4644
4649
|
...s,
|
|
4645
4650
|
children: t
|
|
4646
4651
|
}
|
|
4647
4652
|
);
|
|
4648
4653
|
});
|
|
4649
4654
|
es.displayName = "TabsTrigger";
|
|
4650
|
-
const
|
|
4655
|
+
const ai = {
|
|
4651
4656
|
Root: Zn,
|
|
4652
4657
|
List: Jn,
|
|
4653
4658
|
Trigger: es,
|
|
4654
4659
|
Content: ne.Content
|
|
4655
|
-
},
|
|
4660
|
+
}, Br = v(["shrink-0", "bg-(--accent-6)"], {
|
|
4656
4661
|
variants: {
|
|
4657
4662
|
size: {
|
|
4658
4663
|
xs: [],
|
|
@@ -4733,20 +4738,20 @@ const Qi = {
|
|
|
4733
4738
|
size: "md",
|
|
4734
4739
|
orientation: "horizontal"
|
|
4735
4740
|
}
|
|
4736
|
-
}),
|
|
4741
|
+
}), $r = u((n) => {
|
|
4737
4742
|
const { ref: a, className: t, accentColor: e = "base", orientation: s, size: o, ...r } = n;
|
|
4738
|
-
return /* @__PURE__ */
|
|
4743
|
+
return /* @__PURE__ */ i(
|
|
4739
4744
|
Je.Root,
|
|
4740
4745
|
{
|
|
4741
|
-
className: x(
|
|
4746
|
+
className: x(Br({ orientation: s, size: o }), t),
|
|
4742
4747
|
"data-accent-color": e,
|
|
4743
4748
|
ref: a,
|
|
4744
4749
|
...r
|
|
4745
4750
|
}
|
|
4746
4751
|
);
|
|
4747
4752
|
});
|
|
4748
|
-
|
|
4749
|
-
const
|
|
4753
|
+
$r.displayName = "Separator";
|
|
4754
|
+
const jr = v(["relative", "select-none", "touch-none", "flex", "items-center"], {
|
|
4750
4755
|
variants: {
|
|
4751
4756
|
size: {
|
|
4752
4757
|
xs: [],
|
|
@@ -4818,7 +4823,7 @@ const Hr = v(["relative", "select-none", "touch-none", "flex", "items-center"],
|
|
|
4818
4823
|
className: ["w-8"]
|
|
4819
4824
|
}
|
|
4820
4825
|
]
|
|
4821
|
-
}),
|
|
4826
|
+
}), qr = v(
|
|
4822
4827
|
[
|
|
4823
4828
|
"overflow-hidden",
|
|
4824
4829
|
"relative",
|
|
@@ -4901,7 +4906,7 @@ const Hr = v(["relative", "select-none", "touch-none", "flex", "items-center"],
|
|
|
4901
4906
|
}
|
|
4902
4907
|
]
|
|
4903
4908
|
}
|
|
4904
|
-
),
|
|
4909
|
+
), Ur = v(
|
|
4905
4910
|
["absolute", "rounded-[inherit]", "data-disabled:opacity-50", "disabled:pointer-events-none"],
|
|
4906
4911
|
{
|
|
4907
4912
|
variants: {
|
|
@@ -4922,7 +4927,7 @@ const Hr = v(["relative", "select-none", "touch-none", "flex", "items-center"],
|
|
|
4922
4927
|
}
|
|
4923
4928
|
}
|
|
4924
4929
|
}
|
|
4925
|
-
),
|
|
4930
|
+
), Wr = v(
|
|
4926
4931
|
[
|
|
4927
4932
|
"block",
|
|
4928
4933
|
"shrink-0",
|
|
@@ -4951,22 +4956,22 @@ const Hr = v(["relative", "select-none", "touch-none", "flex", "items-center"],
|
|
|
4951
4956
|
}
|
|
4952
4957
|
}
|
|
4953
4958
|
}
|
|
4954
|
-
),
|
|
4959
|
+
), Kr = u((n) => {
|
|
4955
4960
|
const a = M(), {
|
|
4956
4961
|
className: t,
|
|
4957
4962
|
size: e = "md",
|
|
4958
4963
|
orientation: s = "horizontal",
|
|
4959
4964
|
accentColor: o = a.accentColor,
|
|
4960
4965
|
radius: r = a.radius,
|
|
4961
|
-
variant:
|
|
4966
|
+
variant: c = "surface",
|
|
4962
4967
|
tabIndex: l,
|
|
4963
4968
|
...d
|
|
4964
4969
|
} = n;
|
|
4965
4970
|
return /* @__PURE__ */ W(
|
|
4966
|
-
|
|
4971
|
+
Pe.Root,
|
|
4967
4972
|
{
|
|
4968
4973
|
className: x(
|
|
4969
|
-
|
|
4974
|
+
jr({ size: e, variant: c, orientation: s }),
|
|
4970
4975
|
k({ radius: r, maxLarge: !1 }),
|
|
4971
4976
|
t
|
|
4972
4977
|
),
|
|
@@ -4974,11 +4979,11 @@ const Hr = v(["relative", "select-none", "touch-none", "flex", "items-center"],
|
|
|
4974
4979
|
"data-accent-color": o,
|
|
4975
4980
|
...d,
|
|
4976
4981
|
children: [
|
|
4977
|
-
/* @__PURE__ */
|
|
4978
|
-
(n.value ?? d.defaultValue ?? []).map((m, g) => /* @__PURE__ */
|
|
4979
|
-
|
|
4982
|
+
/* @__PURE__ */ i(Pe.Track, { className: qr({ size: e, variant: c, orientation: s }), children: /* @__PURE__ */ i(Pe.Range, { className: Ur({ size: e, variant: c, orientation: s }) }) }),
|
|
4983
|
+
(n.value ?? d.defaultValue ?? []).map((m, g) => /* @__PURE__ */ i(
|
|
4984
|
+
Pe.Thumb,
|
|
4980
4985
|
{
|
|
4981
|
-
className: x(
|
|
4986
|
+
className: x(Wr({ size: e, variant: c }), k({ radius: r, maxLarge: !1 })),
|
|
4982
4987
|
...l !== void 0 ? { tabIndex: l } : void 0
|
|
4983
4988
|
},
|
|
4984
4989
|
`${g}-${m}`
|
|
@@ -4987,10 +4992,10 @@ const Hr = v(["relative", "select-none", "touch-none", "flex", "items-center"],
|
|
|
4987
4992
|
}
|
|
4988
4993
|
);
|
|
4989
4994
|
});
|
|
4990
|
-
|
|
4991
|
-
const
|
|
4992
|
-
|
|
4993
|
-
const ts =
|
|
4995
|
+
Kr.displayName = "Slider";
|
|
4996
|
+
const Xr = u(() => /* @__PURE__ */ i("div", { className: "size-6 animate-spin rounded-full border-2 border-(--base-a12) border-b-transparent" }));
|
|
4997
|
+
Xr.displayName = "Spinner";
|
|
4998
|
+
const ts = P({}), Yr = v(
|
|
4994
4999
|
[
|
|
4995
5000
|
"shrink-0",
|
|
4996
5001
|
// select
|
|
@@ -5023,7 +5028,7 @@ const ts = R({}), Wr = v(
|
|
|
5023
5028
|
size: "md"
|
|
5024
5029
|
}
|
|
5025
5030
|
}
|
|
5026
|
-
),
|
|
5031
|
+
), Qr = v(
|
|
5027
5032
|
[
|
|
5028
5033
|
"flex",
|
|
5029
5034
|
"items-center",
|
|
@@ -5054,42 +5059,42 @@ const ts = R({}), Wr = v(
|
|
|
5054
5059
|
className: s,
|
|
5055
5060
|
size: o = "md",
|
|
5056
5061
|
radius: r = a.radius,
|
|
5057
|
-
accentColor:
|
|
5062
|
+
accentColor: c = a.accentColor,
|
|
5058
5063
|
...l
|
|
5059
5064
|
} = n, d = w(() => ({ size: o, radius: r }), [o, r]);
|
|
5060
|
-
return /* @__PURE__ */
|
|
5065
|
+
return /* @__PURE__ */ i(
|
|
5061
5066
|
qt.Root,
|
|
5062
5067
|
{
|
|
5063
|
-
className: x(
|
|
5068
|
+
className: x(Yr({ size: o }), k({ radius: r, maxLarge: !1 }), s),
|
|
5064
5069
|
ref: t,
|
|
5065
|
-
"data-accent-color":
|
|
5070
|
+
"data-accent-color": c,
|
|
5066
5071
|
...l,
|
|
5067
|
-
children: /* @__PURE__ */
|
|
5072
|
+
children: /* @__PURE__ */ i(ts.Provider, { value: d, children: e })
|
|
5068
5073
|
}
|
|
5069
5074
|
);
|
|
5070
5075
|
});
|
|
5071
5076
|
as.displayName = "SwitchRoot";
|
|
5072
5077
|
const ns = u((n) => {
|
|
5073
5078
|
const { ref: a, className: t, ...e } = n, { size: s, radius: o } = j(ts);
|
|
5074
|
-
return /* @__PURE__ */
|
|
5079
|
+
return /* @__PURE__ */ i(
|
|
5075
5080
|
qt.Thumb,
|
|
5076
5081
|
{
|
|
5077
|
-
className: x(
|
|
5082
|
+
className: x(Qr({ size: s }), k({ radius: o, maxLarge: !1 }), t),
|
|
5078
5083
|
ref: a,
|
|
5079
5084
|
...e
|
|
5080
5085
|
}
|
|
5081
5086
|
);
|
|
5082
5087
|
});
|
|
5083
5088
|
ns.displayName = "SwitchThumb";
|
|
5084
|
-
const
|
|
5089
|
+
const ni = {
|
|
5085
5090
|
Root: as,
|
|
5086
5091
|
Thumb: ns
|
|
5087
5092
|
}, ss = u((n) => {
|
|
5088
5093
|
const { ref: a, className: t, ...e } = n;
|
|
5089
|
-
return /* @__PURE__ */
|
|
5094
|
+
return /* @__PURE__ */ i("tbody", { ref: a, className: x(t), ...e });
|
|
5090
5095
|
});
|
|
5091
5096
|
ss.displayName = "TableBody";
|
|
5092
|
-
const
|
|
5097
|
+
const $e = P({}), Jr = v(["border-collapse text-left"], {
|
|
5093
5098
|
variants: {
|
|
5094
5099
|
variant: {
|
|
5095
5100
|
ghost: [],
|
|
@@ -5109,16 +5114,20 @@ const je = R({}), Xr = v(["border-collapse text-left"], {
|
|
|
5109
5114
|
surface: [],
|
|
5110
5115
|
ghost: []
|
|
5111
5116
|
},
|
|
5117
|
+
compact: {
|
|
5118
|
+
true: [],
|
|
5119
|
+
false: []
|
|
5120
|
+
},
|
|
5112
5121
|
cell: {
|
|
5113
5122
|
true: [],
|
|
5114
5123
|
false: []
|
|
5115
5124
|
},
|
|
5116
5125
|
size: {
|
|
5117
|
-
xs: [
|
|
5118
|
-
sm: [
|
|
5119
|
-
md: [
|
|
5120
|
-
lg: [
|
|
5121
|
-
xl: [
|
|
5126
|
+
xs: [],
|
|
5127
|
+
sm: [],
|
|
5128
|
+
md: [],
|
|
5129
|
+
lg: [],
|
|
5130
|
+
xl: []
|
|
5122
5131
|
},
|
|
5123
5132
|
border: {
|
|
5124
5133
|
grid: ["box-border", "border", "border-(--accent-a6)"],
|
|
@@ -5126,27 +5135,53 @@ const je = R({}), Xr = v(["border-collapse text-left"], {
|
|
|
5126
5135
|
col: ["box-border", "border-x", "border-(--accent-a6)"],
|
|
5127
5136
|
none: []
|
|
5128
5137
|
}
|
|
5129
|
-
}
|
|
5138
|
+
},
|
|
5139
|
+
compoundVariants: [
|
|
5140
|
+
{ size: "xs", compact: !0, className: ["px-2", "py-1"] },
|
|
5141
|
+
{ size: "xs", compact: !1, className: ["p-2"] },
|
|
5142
|
+
{ size: "sm", compact: !0, className: ["px-4", "py-2"] },
|
|
5143
|
+
{ size: "sm", compact: !1, className: ["p-4"] },
|
|
5144
|
+
{ size: "md", compact: !0, className: ["px-6", "py-3"] },
|
|
5145
|
+
{ size: "md", compact: !1, className: ["p-6"] },
|
|
5146
|
+
{ size: "lg", compact: !0, className: ["px-8", "py-4"] },
|
|
5147
|
+
{ size: "lg", compact: !1, className: ["p-8"] },
|
|
5148
|
+
{ size: "xl", compact: !0, className: ["px-10", "py-5"] },
|
|
5149
|
+
{ size: "xl", compact: !1, className: ["p-10"] }
|
|
5150
|
+
]
|
|
5130
5151
|
}), os = u((n) => {
|
|
5131
|
-
const { ref: a, className: t, ...e } = n, { size: s, border: o, variant: r } = j(
|
|
5132
|
-
return /* @__PURE__ */
|
|
5152
|
+
const { ref: a, className: t, ...e } = n, { size: s, border: o, variant: r, compact: c } = j($e);
|
|
5153
|
+
return /* @__PURE__ */ i(
|
|
5154
|
+
"td",
|
|
5155
|
+
{
|
|
5156
|
+
ref: a,
|
|
5157
|
+
className: x(Ct({ size: s, border: o, cell: !0, variant: r, compact: c }), t),
|
|
5158
|
+
...e
|
|
5159
|
+
}
|
|
5160
|
+
);
|
|
5133
5161
|
});
|
|
5134
5162
|
os.displayName = "TableCell";
|
|
5135
5163
|
const rs = u((n) => {
|
|
5136
|
-
const { ref: a, className: t, ...e } = n, { size: s, border: o, variant: r } = j(
|
|
5137
|
-
return /* @__PURE__ */
|
|
5164
|
+
const { ref: a, className: t, ...e } = n, { size: s, border: o, variant: r, compact: c } = j($e);
|
|
5165
|
+
return /* @__PURE__ */ i(
|
|
5166
|
+
"th",
|
|
5167
|
+
{
|
|
5168
|
+
ref: a,
|
|
5169
|
+
className: x(Ct({ size: s, border: o, cell: !1, variant: r, compact: c }), t),
|
|
5170
|
+
...e
|
|
5171
|
+
}
|
|
5172
|
+
);
|
|
5138
5173
|
});
|
|
5139
5174
|
rs.displayName = "TableColumnHeaderCell";
|
|
5140
|
-
const
|
|
5175
|
+
const cs = u((n) => {
|
|
5141
5176
|
const { ref: a, className: t, ...e } = n;
|
|
5142
|
-
return /* @__PURE__ */
|
|
5177
|
+
return /* @__PURE__ */ i("tfoot", { ref: a, className: x(t), ...e });
|
|
5143
5178
|
});
|
|
5144
|
-
|
|
5145
|
-
const
|
|
5179
|
+
cs.displayName = "TableFooter";
|
|
5180
|
+
const is = u((n) => {
|
|
5146
5181
|
const { ref: a, className: t, ...e } = n;
|
|
5147
|
-
return /* @__PURE__ */
|
|
5182
|
+
return /* @__PURE__ */ i("thead", { ref: a, className: x(t), ...e });
|
|
5148
5183
|
});
|
|
5149
|
-
|
|
5184
|
+
is.displayName = "TableHeader";
|
|
5150
5185
|
const ls = u((n) => {
|
|
5151
5186
|
const a = M(), {
|
|
5152
5187
|
ref: t,
|
|
@@ -5154,46 +5189,54 @@ const ls = u((n) => {
|
|
|
5154
5189
|
className: s,
|
|
5155
5190
|
size: o = "md",
|
|
5156
5191
|
border: r = "row",
|
|
5157
|
-
accentColor:
|
|
5192
|
+
accentColor: c = "base",
|
|
5158
5193
|
variant: l = "ghost",
|
|
5159
|
-
|
|
5160
|
-
|
|
5161
|
-
|
|
5194
|
+
compact: d = !1,
|
|
5195
|
+
...m
|
|
5196
|
+
} = n, g = w(() => ({ size: o, border: r, variant: l, compact: d }), [o, r, l, d]);
|
|
5197
|
+
return /* @__PURE__ */ i(
|
|
5162
5198
|
"table",
|
|
5163
5199
|
{
|
|
5164
5200
|
ref: t,
|
|
5165
5201
|
className: x(
|
|
5166
|
-
|
|
5202
|
+
Jr({ size: o, variant: l }),
|
|
5167
5203
|
k({ radius: a.radius, maxLarge: !0 }),
|
|
5168
5204
|
s
|
|
5169
5205
|
),
|
|
5170
|
-
"data-accent-color":
|
|
5171
|
-
...
|
|
5172
|
-
children: /* @__PURE__ */
|
|
5206
|
+
"data-accent-color": c,
|
|
5207
|
+
...m,
|
|
5208
|
+
children: /* @__PURE__ */ i($e.Provider, { value: g, children: e })
|
|
5173
5209
|
}
|
|
5174
5210
|
);
|
|
5175
5211
|
});
|
|
5176
5212
|
ls.displayName = "TableRoot";
|
|
5177
5213
|
const ds = u((n) => {
|
|
5178
5214
|
const { ref: a, className: t, ...e } = n;
|
|
5179
|
-
return /* @__PURE__ */
|
|
5215
|
+
return /* @__PURE__ */ i("tr", { ref: a, className: x(t), ...e });
|
|
5180
5216
|
});
|
|
5181
5217
|
ds.displayName = "TableRow";
|
|
5182
5218
|
const us = u((n) => {
|
|
5183
|
-
const { ref: a, className: t, ...e } = n, { size: s, border: o, variant: r } = j(
|
|
5184
|
-
return /* @__PURE__ */
|
|
5219
|
+
const { ref: a, className: t, ...e } = n, { size: s, border: o, variant: r, compact: c } = j($e);
|
|
5220
|
+
return /* @__PURE__ */ i(
|
|
5221
|
+
"th",
|
|
5222
|
+
{
|
|
5223
|
+
ref: a,
|
|
5224
|
+
className: x(Ct({ size: s, border: o, cell: !0, variant: r, compact: c }), t),
|
|
5225
|
+
...e
|
|
5226
|
+
}
|
|
5227
|
+
);
|
|
5185
5228
|
});
|
|
5186
5229
|
us.displayName = "TableRowHeaderCell";
|
|
5187
|
-
const
|
|
5230
|
+
const si = {
|
|
5188
5231
|
Root: ls,
|
|
5189
|
-
Header:
|
|
5232
|
+
Header: is,
|
|
5190
5233
|
Body: ss,
|
|
5191
|
-
Footer:
|
|
5234
|
+
Footer: cs,
|
|
5192
5235
|
Row: ds,
|
|
5193
5236
|
Cell: os,
|
|
5194
5237
|
RowHeaderCell: us,
|
|
5195
5238
|
ColumnHeaderCell: rs
|
|
5196
|
-
}, ms =
|
|
5239
|
+
}, ms = P({}), Zr = v(["flex", "border-box", "inset-shadow-[0_-1px_0_0_var(--base-a6)]"], {
|
|
5197
5240
|
variants: {
|
|
5198
5241
|
size: {
|
|
5199
5242
|
xs: ["h-6", "text-xs"],
|
|
@@ -5206,7 +5249,7 @@ const Zi = {
|
|
|
5206
5249
|
defaultVariants: {
|
|
5207
5250
|
size: "md"
|
|
5208
5251
|
}
|
|
5209
|
-
}),
|
|
5252
|
+
}), ec = v(
|
|
5210
5253
|
[
|
|
5211
5254
|
"select-none",
|
|
5212
5255
|
"shrink-0",
|
|
@@ -5241,40 +5284,40 @@ const Zi = {
|
|
|
5241
5284
|
}
|
|
5242
5285
|
}
|
|
5243
5286
|
), gs = u((n) => {
|
|
5244
|
-
const a = M(), { ref: t, children: e, className: s, size: o = "md", accentColor: r = a.accentColor, ...
|
|
5245
|
-
return /* @__PURE__ */
|
|
5287
|
+
const a = M(), { ref: t, children: e, className: s, size: o = "md", accentColor: r = a.accentColor, ...c } = n;
|
|
5288
|
+
return /* @__PURE__ */ i(
|
|
5246
5289
|
ne.List,
|
|
5247
5290
|
{
|
|
5248
5291
|
ref: t,
|
|
5249
|
-
className: x(
|
|
5292
|
+
className: x(Zr({ size: o }), s),
|
|
5250
5293
|
"data-accent-color": r,
|
|
5251
|
-
...
|
|
5252
|
-
children: /* @__PURE__ */
|
|
5294
|
+
...c,
|
|
5295
|
+
children: /* @__PURE__ */ i(ms.Provider, { value: { size: o }, children: e })
|
|
5253
5296
|
}
|
|
5254
5297
|
);
|
|
5255
5298
|
});
|
|
5256
5299
|
gs.displayName = "TabsList";
|
|
5257
5300
|
const ps = u((n) => {
|
|
5258
5301
|
const { ref: a, className: t, ...e } = n;
|
|
5259
|
-
return /* @__PURE__ */
|
|
5302
|
+
return /* @__PURE__ */ i(ne.Root, { ref: a, className: x("flex flex-col", t), ...e });
|
|
5260
5303
|
});
|
|
5261
5304
|
ps.displayName = "TabsRoot";
|
|
5262
|
-
const
|
|
5305
|
+
const tc = () => {
|
|
5263
5306
|
const n = j(ms);
|
|
5264
5307
|
if (!n)
|
|
5265
5308
|
throw new Error("useTabsList must be used within a TabsList component");
|
|
5266
5309
|
return n;
|
|
5267
5310
|
}, xs = u((n) => {
|
|
5268
|
-
const { ref: a, children: t, className: e, ...s } = n, { size: o } =
|
|
5269
|
-
return /* @__PURE__ */
|
|
5311
|
+
const { ref: a, children: t, className: e, ...s } = n, { size: o } = tc();
|
|
5312
|
+
return /* @__PURE__ */ i(ne.Trigger, { ref: a, className: x(ec({ size: o }), e), ...s, children: t });
|
|
5270
5313
|
});
|
|
5271
5314
|
xs.displayName = "TabsTrigger";
|
|
5272
|
-
const
|
|
5315
|
+
const oi = {
|
|
5273
5316
|
Root: ps,
|
|
5274
5317
|
List: gs,
|
|
5275
5318
|
Trigger: xs,
|
|
5276
5319
|
Content: ne.Content
|
|
5277
|
-
},
|
|
5320
|
+
}, ac = v([], {
|
|
5278
5321
|
variants: {
|
|
5279
5322
|
size: {
|
|
5280
5323
|
xs: ["text-xs"],
|
|
@@ -5304,16 +5347,16 @@ const ec = {
|
|
|
5304
5347
|
}
|
|
5305
5348
|
}
|
|
5306
5349
|
}), Xe = u((n) => {
|
|
5307
|
-
const { ref: a, className: t, size: e, weight: s, align: o, accentColor: r, highContrast:
|
|
5308
|
-
return /* @__PURE__ */
|
|
5350
|
+
const { ref: a, className: t, size: e, weight: s, align: o, accentColor: r, highContrast: c = !1, ...l } = n;
|
|
5351
|
+
return /* @__PURE__ */ i(
|
|
5309
5352
|
"span",
|
|
5310
5353
|
{
|
|
5311
5354
|
ref: a,
|
|
5312
5355
|
className: x(
|
|
5313
|
-
|
|
5356
|
+
ac({ size: e, weight: s, align: o }),
|
|
5314
5357
|
{
|
|
5315
5358
|
"text-(--accent-a11)": !!r,
|
|
5316
|
-
"text-(--accent-a12)":
|
|
5359
|
+
"text-(--accent-a12)": c
|
|
5317
5360
|
},
|
|
5318
5361
|
t
|
|
5319
5362
|
),
|
|
@@ -5323,7 +5366,7 @@ const ec = {
|
|
|
5323
5366
|
);
|
|
5324
5367
|
});
|
|
5325
5368
|
Xe.displayName = "Text";
|
|
5326
|
-
const
|
|
5369
|
+
const nc = v(
|
|
5327
5370
|
[
|
|
5328
5371
|
"focus:outline-(--accent-a8)",
|
|
5329
5372
|
"focus:outline-2",
|
|
@@ -5383,29 +5426,29 @@ const ei = v(
|
|
|
5383
5426
|
resize: "none"
|
|
5384
5427
|
}
|
|
5385
5428
|
}
|
|
5386
|
-
),
|
|
5429
|
+
), sc = u((n) => {
|
|
5387
5430
|
const a = M(), {
|
|
5388
5431
|
ref: t,
|
|
5389
5432
|
className: e,
|
|
5390
5433
|
size: s,
|
|
5391
5434
|
variant: o,
|
|
5392
5435
|
radius: r = a.radius,
|
|
5393
|
-
accentColor:
|
|
5436
|
+
accentColor: c = a.accentColor,
|
|
5394
5437
|
...l
|
|
5395
5438
|
} = n;
|
|
5396
|
-
return /* @__PURE__ */
|
|
5439
|
+
return /* @__PURE__ */ i(
|
|
5397
5440
|
"textarea",
|
|
5398
5441
|
{
|
|
5399
|
-
className: x(
|
|
5442
|
+
className: x(nc({ size: s, variant: o }), k({ radius: r, maxLarge: !0 }), e),
|
|
5400
5443
|
ref: t,
|
|
5401
|
-
"data-accent-color":
|
|
5444
|
+
"data-accent-color": c,
|
|
5402
5445
|
...l
|
|
5403
5446
|
}
|
|
5404
5447
|
);
|
|
5405
5448
|
});
|
|
5406
|
-
|
|
5407
|
-
const
|
|
5408
|
-
const { toastId: a, title: t, description: e, icon: s, accentColor: o, closeButton: r, action:
|
|
5449
|
+
sc.displayName = "TextArea";
|
|
5450
|
+
const Re = u((n) => {
|
|
5451
|
+
const { toastId: a, title: t, description: e, icon: s, accentColor: o, closeButton: r, action: c } = n, { radius: l } = M(), d = h(() => {
|
|
5409
5452
|
K.dismiss(a);
|
|
5410
5453
|
}, [a]), m = h(() => {
|
|
5411
5454
|
K.dismiss(a);
|
|
@@ -5422,12 +5465,12 @@ const ke = u((n) => {
|
|
|
5422
5465
|
/* @__PURE__ */ W("div", { className: "flex items-center gap-4 grow min-w-0", children: [
|
|
5423
5466
|
s,
|
|
5424
5467
|
/* @__PURE__ */ W("div", { className: "flex flex-col min-w-0 select-none", children: [
|
|
5425
|
-
/* @__PURE__ */
|
|
5426
|
-
e && /* @__PURE__ */
|
|
5468
|
+
/* @__PURE__ */ i(Xe, { className: "truncate", children: t }),
|
|
5469
|
+
e && /* @__PURE__ */ i(Xe, { accentColor: "base", size: "sm", weight: "regular", children: e })
|
|
5427
5470
|
] })
|
|
5428
5471
|
] }),
|
|
5429
|
-
/* @__PURE__ */
|
|
5430
|
-
r && /* @__PURE__ */
|
|
5472
|
+
/* @__PURE__ */ i(me, { onClick: d, children: c }),
|
|
5473
|
+
r && /* @__PURE__ */ i(
|
|
5431
5474
|
tt,
|
|
5432
5475
|
{
|
|
5433
5476
|
type: "button",
|
|
@@ -5436,24 +5479,24 @@ const ke = u((n) => {
|
|
|
5436
5479
|
accentColor: "base",
|
|
5437
5480
|
variant: "ghost",
|
|
5438
5481
|
size: "xs",
|
|
5439
|
-
children: /* @__PURE__ */
|
|
5482
|
+
children: /* @__PURE__ */ i(U, { icon: $s })
|
|
5440
5483
|
}
|
|
5441
5484
|
)
|
|
5442
5485
|
]
|
|
5443
5486
|
}
|
|
5444
5487
|
);
|
|
5445
|
-
}),
|
|
5446
|
-
success: /* @__PURE__ */
|
|
5447
|
-
info: /* @__PURE__ */
|
|
5448
|
-
warning: /* @__PURE__ */
|
|
5449
|
-
error: /* @__PURE__ */
|
|
5450
|
-
},
|
|
5488
|
+
}), je = {
|
|
5489
|
+
success: /* @__PURE__ */ i(U, { icon: Ws, color: "var(--accent-9)" }),
|
|
5490
|
+
info: /* @__PURE__ */ i(U, { icon: Us, color: "var(--base-11)" }),
|
|
5491
|
+
warning: /* @__PURE__ */ i(U, { icon: qs, color: "var(--accent-9)" }),
|
|
5492
|
+
error: /* @__PURE__ */ i(U, { icon: js, color: "var(--accent-9)" })
|
|
5493
|
+
}, oc = (n) => {
|
|
5451
5494
|
const { icon: a, description: t, title: e, closeButton: s, action: o, ...r } = n;
|
|
5452
5495
|
return K.custom(
|
|
5453
|
-
(
|
|
5454
|
-
|
|
5496
|
+
(c) => /* @__PURE__ */ i(
|
|
5497
|
+
Re,
|
|
5455
5498
|
{
|
|
5456
|
-
toastId:
|
|
5499
|
+
toastId: c,
|
|
5457
5500
|
icon: a,
|
|
5458
5501
|
description: t,
|
|
5459
5502
|
title: e,
|
|
@@ -5463,15 +5506,15 @@ const ke = u((n) => {
|
|
|
5463
5506
|
),
|
|
5464
5507
|
r
|
|
5465
5508
|
);
|
|
5466
|
-
},
|
|
5509
|
+
}, rc = (n) => {
|
|
5467
5510
|
const { icon: a, description: t, title: e, closeButton: s, action: o, ...r } = n;
|
|
5468
5511
|
return K.custom(
|
|
5469
|
-
(
|
|
5470
|
-
|
|
5512
|
+
(c) => /* @__PURE__ */ i(
|
|
5513
|
+
Re,
|
|
5471
5514
|
{
|
|
5472
5515
|
accentColor: "success",
|
|
5473
|
-
toastId:
|
|
5474
|
-
icon: a ??
|
|
5516
|
+
toastId: c,
|
|
5517
|
+
icon: a ?? je.success,
|
|
5475
5518
|
description: t,
|
|
5476
5519
|
title: e,
|
|
5477
5520
|
closeButton: s,
|
|
@@ -5480,15 +5523,15 @@ const ke = u((n) => {
|
|
|
5480
5523
|
),
|
|
5481
5524
|
r
|
|
5482
5525
|
);
|
|
5483
|
-
},
|
|
5526
|
+
}, cc = (n) => {
|
|
5484
5527
|
const { icon: a, description: t, title: e, closeButton: s, action: o, ...r } = n;
|
|
5485
5528
|
return K.custom(
|
|
5486
|
-
(
|
|
5487
|
-
|
|
5529
|
+
(c) => /* @__PURE__ */ i(
|
|
5530
|
+
Re,
|
|
5488
5531
|
{
|
|
5489
5532
|
accentColor: "base",
|
|
5490
|
-
toastId:
|
|
5491
|
-
icon: a ??
|
|
5533
|
+
toastId: c,
|
|
5534
|
+
icon: a ?? je.info,
|
|
5492
5535
|
description: t,
|
|
5493
5536
|
title: e,
|
|
5494
5537
|
closeButton: s,
|
|
@@ -5497,15 +5540,15 @@ const ke = u((n) => {
|
|
|
5497
5540
|
),
|
|
5498
5541
|
r
|
|
5499
5542
|
);
|
|
5500
|
-
},
|
|
5543
|
+
}, ic = (n) => {
|
|
5501
5544
|
const { icon: a, description: t, title: e, closeButton: s, action: o, ...r } = n;
|
|
5502
5545
|
return K.custom(
|
|
5503
|
-
(
|
|
5504
|
-
|
|
5546
|
+
(c) => /* @__PURE__ */ i(
|
|
5547
|
+
Re,
|
|
5505
5548
|
{
|
|
5506
5549
|
accentColor: "warning",
|
|
5507
|
-
toastId:
|
|
5508
|
-
icon: a ??
|
|
5550
|
+
toastId: c,
|
|
5551
|
+
icon: a ?? je.warning,
|
|
5509
5552
|
description: t,
|
|
5510
5553
|
title: e,
|
|
5511
5554
|
closeButton: s,
|
|
@@ -5514,15 +5557,15 @@ const ke = u((n) => {
|
|
|
5514
5557
|
),
|
|
5515
5558
|
r
|
|
5516
5559
|
);
|
|
5517
|
-
},
|
|
5560
|
+
}, lc = (n) => {
|
|
5518
5561
|
const { icon: a, description: t, title: e, closeButton: s, action: o, ...r } = n;
|
|
5519
5562
|
return K.custom(
|
|
5520
|
-
(
|
|
5521
|
-
|
|
5563
|
+
(c) => /* @__PURE__ */ i(
|
|
5564
|
+
Re,
|
|
5522
5565
|
{
|
|
5523
5566
|
accentColor: "danger",
|
|
5524
|
-
toastId:
|
|
5525
|
-
icon: a ??
|
|
5567
|
+
toastId: c,
|
|
5568
|
+
icon: a ?? je.error,
|
|
5526
5569
|
description: t,
|
|
5527
5570
|
title: e,
|
|
5528
5571
|
closeButton: s,
|
|
@@ -5531,22 +5574,22 @@ const ke = u((n) => {
|
|
|
5531
5574
|
),
|
|
5532
5575
|
r
|
|
5533
5576
|
);
|
|
5534
|
-
},
|
|
5535
|
-
|
|
5577
|
+
}, ri = Object.assign(
|
|
5578
|
+
oc,
|
|
5536
5579
|
{
|
|
5537
|
-
success:
|
|
5538
|
-
info:
|
|
5539
|
-
warning:
|
|
5540
|
-
error:
|
|
5580
|
+
success: rc,
|
|
5581
|
+
info: cc,
|
|
5582
|
+
warning: ic,
|
|
5583
|
+
error: lc,
|
|
5541
5584
|
custom: K.custom,
|
|
5542
5585
|
dismiss: K.dismiss
|
|
5543
5586
|
},
|
|
5544
5587
|
{ getHistory: K.getHistory, getToasts: K.getToasts }
|
|
5545
|
-
),
|
|
5588
|
+
), dc = {
|
|
5546
5589
|
unstyled: !0
|
|
5547
|
-
},
|
|
5548
|
-
|
|
5549
|
-
const
|
|
5590
|
+
}, uc = u((n) => /* @__PURE__ */ i(ro, { toastOptions: dc, richColors: !1, closeButton: !1, theme: "system", ...n }));
|
|
5591
|
+
uc.displayName = "Toaster";
|
|
5592
|
+
const mc = v(
|
|
5550
5593
|
[
|
|
5551
5594
|
"flex",
|
|
5552
5595
|
"items-center",
|
|
@@ -5672,26 +5715,26 @@ const li = v(
|
|
|
5672
5715
|
size: s,
|
|
5673
5716
|
icon: o,
|
|
5674
5717
|
variant: r,
|
|
5675
|
-
radius:
|
|
5718
|
+
radius: c = a.radius,
|
|
5676
5719
|
accentColor: l = a.accentColor,
|
|
5677
5720
|
...d
|
|
5678
5721
|
} = n;
|
|
5679
|
-
return /* @__PURE__ */
|
|
5680
|
-
|
|
5722
|
+
return /* @__PURE__ */ i(
|
|
5723
|
+
co.Root,
|
|
5681
5724
|
{
|
|
5682
5725
|
ref: t,
|
|
5683
|
-
className: x(
|
|
5726
|
+
className: x(mc({ size: s, variant: r, icon: o }), k({ radius: c, maxLarge: !1 }), e),
|
|
5684
5727
|
"data-accent-color": l,
|
|
5685
5728
|
...d
|
|
5686
5729
|
}
|
|
5687
5730
|
);
|
|
5688
5731
|
});
|
|
5689
5732
|
yt.displayName = "BaseToggleButton";
|
|
5690
|
-
const
|
|
5691
|
-
|
|
5692
|
-
const
|
|
5693
|
-
|
|
5694
|
-
const fs =
|
|
5733
|
+
const gc = u((n) => /* @__PURE__ */ i(yt, { icon: !0, ...n }));
|
|
5734
|
+
gc.displayName = "IconToggleButton";
|
|
5735
|
+
const pc = u((n) => /* @__PURE__ */ i(yt, { icon: !1, ...n }));
|
|
5736
|
+
pc.displayName = "ToggleButton";
|
|
5737
|
+
const fs = P({}), xc = v(
|
|
5695
5738
|
[
|
|
5696
5739
|
"flex",
|
|
5697
5740
|
"items-center",
|
|
@@ -5812,16 +5855,16 @@ const fs = R({}), mi = v(
|
|
|
5812
5855
|
icon: s,
|
|
5813
5856
|
accentColor: o = a.accentColor,
|
|
5814
5857
|
radius: r = a.radius,
|
|
5815
|
-
variant:
|
|
5858
|
+
variant: c = a.variant,
|
|
5816
5859
|
size: l = a.size,
|
|
5817
5860
|
...d
|
|
5818
5861
|
} = n;
|
|
5819
|
-
return /* @__PURE__ */
|
|
5820
|
-
|
|
5862
|
+
return /* @__PURE__ */ i(
|
|
5863
|
+
Oe.Item,
|
|
5821
5864
|
{
|
|
5822
5865
|
ref: t,
|
|
5823
5866
|
className: x(
|
|
5824
|
-
|
|
5867
|
+
xc({ icon: s, variant: c, size: l }),
|
|
5825
5868
|
k({ radius: r, maxLarge: !1 }),
|
|
5826
5869
|
e
|
|
5827
5870
|
),
|
|
@@ -5831,9 +5874,9 @@ const fs = R({}), mi = v(
|
|
|
5831
5874
|
);
|
|
5832
5875
|
});
|
|
5833
5876
|
zt.displayName = "ToggleGroupBaseItem";
|
|
5834
|
-
const hs = u((n) => /* @__PURE__ */
|
|
5877
|
+
const hs = u((n) => /* @__PURE__ */ i(zt, { icon: !0, ...n }));
|
|
5835
5878
|
hs.displayName = "ToggleGroupIconItem";
|
|
5836
|
-
const vs = u((n) => /* @__PURE__ */
|
|
5879
|
+
const vs = u((n) => /* @__PURE__ */ i(zt, { icon: !1, ...n }));
|
|
5837
5880
|
vs.displayName = "ToggleGroupItem";
|
|
5838
5881
|
const bs = u((n) => {
|
|
5839
5882
|
const a = M(), {
|
|
@@ -5842,30 +5885,30 @@ const bs = u((n) => {
|
|
|
5842
5885
|
accentColor: s = a.accentColor,
|
|
5843
5886
|
radius: o = a.radius,
|
|
5844
5887
|
variant: r = "soft",
|
|
5845
|
-
size:
|
|
5888
|
+
size: c = "md",
|
|
5846
5889
|
...l
|
|
5847
5890
|
} = n, d = w(
|
|
5848
5891
|
() => ({
|
|
5849
5892
|
variant: r,
|
|
5850
|
-
size:
|
|
5893
|
+
size: c,
|
|
5851
5894
|
radius: o,
|
|
5852
5895
|
accentColor: s
|
|
5853
5896
|
}),
|
|
5854
|
-
[s, o,
|
|
5897
|
+
[s, o, c, r]
|
|
5855
5898
|
);
|
|
5856
|
-
return /* @__PURE__ */
|
|
5899
|
+
return /* @__PURE__ */ i(Oe.Root, { ref: t, "data-accent-color": s, ...l, children: /* @__PURE__ */ i(fs, { value: d, children: e }) });
|
|
5857
5900
|
});
|
|
5858
5901
|
bs.displayName = "ToggleGroupRoot";
|
|
5859
|
-
const
|
|
5902
|
+
const ci = {
|
|
5860
5903
|
Root: bs,
|
|
5861
5904
|
Item: vs,
|
|
5862
5905
|
IconItem: hs
|
|
5863
5906
|
}, Cs = u((n) => {
|
|
5864
5907
|
const { ref: a, className: t, ...e } = n;
|
|
5865
|
-
return /* @__PURE__ */
|
|
5908
|
+
return /* @__PURE__ */ i(de.Arrow, { className: x("fill-(--base-6)", t), ref: a, ...e });
|
|
5866
5909
|
});
|
|
5867
5910
|
Cs.displayName = "TooltipArrow";
|
|
5868
|
-
const
|
|
5911
|
+
const fc = v(
|
|
5869
5912
|
[
|
|
5870
5913
|
"data-[state=delayed-open]:animate-in",
|
|
5871
5914
|
"data-[state=delayed-open]:fade-in-0",
|
|
@@ -5908,15 +5951,15 @@ const gi = v(
|
|
|
5908
5951
|
className: s,
|
|
5909
5952
|
side: o = "top",
|
|
5910
5953
|
size: r,
|
|
5911
|
-
radius:
|
|
5954
|
+
radius: c = a.radius,
|
|
5912
5955
|
sideOffset: l = 2,
|
|
5913
5956
|
container: d,
|
|
5914
5957
|
...m
|
|
5915
5958
|
} = n;
|
|
5916
|
-
return /* @__PURE__ */
|
|
5959
|
+
return /* @__PURE__ */ i(de.Portal, { container: d, children: /* @__PURE__ */ i(
|
|
5917
5960
|
de.Content,
|
|
5918
5961
|
{
|
|
5919
|
-
className: x(
|
|
5962
|
+
className: x(fc({ size: r, side: o }), k({ radius: c, maxLarge: !1 }), s),
|
|
5920
5963
|
ref: t,
|
|
5921
5964
|
sideOffset: l,
|
|
5922
5965
|
"data-floating-content": "",
|
|
@@ -5926,7 +5969,7 @@ const gi = v(
|
|
|
5926
5969
|
) });
|
|
5927
5970
|
});
|
|
5928
5971
|
ys.displayName = "TooltipContent";
|
|
5929
|
-
const
|
|
5972
|
+
const ii = {
|
|
5930
5973
|
Arrow: Cs,
|
|
5931
5974
|
Content: ys,
|
|
5932
5975
|
Root: de.Root,
|
|
@@ -5934,64 +5977,64 @@ const nc = {
|
|
|
5934
5977
|
Provider: de.Provider
|
|
5935
5978
|
};
|
|
5936
5979
|
export {
|
|
5937
|
-
|
|
5980
|
+
Lc as AlertDialog,
|
|
5938
5981
|
et as AlertDialogContent,
|
|
5939
|
-
|
|
5940
|
-
|
|
5982
|
+
uo as AlertDialogProvider,
|
|
5983
|
+
Ac as Avatar,
|
|
5941
5984
|
ea as AvatarFallback,
|
|
5942
5985
|
ta as AvatarImage,
|
|
5943
5986
|
aa as AvatarRoot,
|
|
5944
|
-
|
|
5987
|
+
xo as Badge,
|
|
5945
5988
|
We as Button,
|
|
5946
|
-
|
|
5947
|
-
|
|
5948
|
-
|
|
5949
|
-
|
|
5989
|
+
lo as ButtonGroup,
|
|
5990
|
+
ho as Card,
|
|
5991
|
+
Dc as Checkbox,
|
|
5992
|
+
Fc as CheckboxGroup,
|
|
5950
5993
|
oa as CheckboxGroupItem,
|
|
5951
5994
|
ra as CheckboxGroupItemIndicator,
|
|
5952
|
-
|
|
5953
|
-
|
|
5995
|
+
ca as CheckboxGroupRoot,
|
|
5996
|
+
ia as CheckboxGroupSelectAllItem,
|
|
5954
5997
|
na as CheckboxIndicator,
|
|
5955
5998
|
sa as CheckboxRoot,
|
|
5956
|
-
|
|
5999
|
+
_c as CommandMenu,
|
|
5957
6000
|
la as CommandMenuCheckboxIndicator,
|
|
5958
6001
|
ma as CommandMenuCheckboxItem,
|
|
5959
6002
|
ga as CommandMenuContent,
|
|
5960
6003
|
pa as CommandMenuEmpty,
|
|
5961
|
-
|
|
6004
|
+
Ge as CommandMenuGroup,
|
|
5962
6005
|
xa as CommandMenuInput,
|
|
5963
|
-
|
|
6006
|
+
ce as CommandMenuItem,
|
|
5964
6007
|
fa as CommandMenuList,
|
|
5965
|
-
|
|
5966
|
-
|
|
6008
|
+
Ro as CommandMenuMultiSelectGroup,
|
|
6009
|
+
Po as CommandMenuMultiSelectItem,
|
|
5967
6010
|
ha as CommandMenuOverlay,
|
|
5968
6011
|
va as CommandMenuPage,
|
|
5969
6012
|
Ca as CommandMenuPageTriggerItem,
|
|
5970
6013
|
ba as CommandMenuPages,
|
|
5971
|
-
|
|
5972
|
-
|
|
6014
|
+
To as CommandMenuRadioGroup,
|
|
6015
|
+
Mo as CommandMenuRadioItem,
|
|
5973
6016
|
ya as CommandMenuRoot,
|
|
5974
|
-
|
|
6017
|
+
Oo as CommandMenuSelectAllItem,
|
|
5975
6018
|
za as CommandMenuSelectedIndicator,
|
|
5976
6019
|
Na as CommandMenuSeparator,
|
|
5977
6020
|
wa as CommandMenuTrigger,
|
|
5978
|
-
|
|
5979
|
-
|
|
6021
|
+
Fo as DayPicker,
|
|
6022
|
+
Hc as Dialog,
|
|
5980
6023
|
Sa as DialogContent,
|
|
5981
6024
|
ka as DialogOverlay,
|
|
5982
6025
|
Ra as DialogRoot,
|
|
5983
|
-
|
|
5984
|
-
|
|
6026
|
+
$o as Heading,
|
|
6027
|
+
Bc as HoverCard,
|
|
5985
6028
|
Pa as HoverCardArrow,
|
|
5986
6029
|
Ta as HoverCardContent,
|
|
5987
|
-
|
|
6030
|
+
qo as HoverUtility,
|
|
5988
6031
|
tt as IconButton,
|
|
5989
|
-
|
|
5990
|
-
|
|
6032
|
+
gc as IconToggleButton,
|
|
6033
|
+
$c as Input,
|
|
5991
6034
|
Ma as InputField,
|
|
5992
6035
|
Oa as InputRoot,
|
|
5993
6036
|
Va as InputSlot,
|
|
5994
|
-
|
|
6037
|
+
Uc as Layout,
|
|
5995
6038
|
La as LayoutContainer,
|
|
5996
6039
|
Aa as LayoutRoot,
|
|
5997
6040
|
Ea as LayoutSlideOutClose,
|
|
@@ -5999,10 +6042,10 @@ export {
|
|
|
5999
6042
|
_a as LayoutSlideOutHandle,
|
|
6000
6043
|
Ha as LayoutSlideOutOverlay,
|
|
6001
6044
|
Ba as LayoutSlideOutRoot,
|
|
6002
|
-
|
|
6003
|
-
|
|
6045
|
+
$a as LayoutSlideOutTrigger,
|
|
6046
|
+
ar as Link,
|
|
6004
6047
|
U as LuIcon,
|
|
6005
|
-
|
|
6048
|
+
Wc as Menu,
|
|
6006
6049
|
Ua as MenuCheckboxItem,
|
|
6007
6050
|
Wa as MenuCheckboxItemIndicator,
|
|
6008
6051
|
Ka as MenuClickTrigger,
|
|
@@ -6014,76 +6057,76 @@ export {
|
|
|
6014
6057
|
Za as MenuInputSlot,
|
|
6015
6058
|
se as MenuItem,
|
|
6016
6059
|
en as MenuLabel,
|
|
6017
|
-
|
|
6018
|
-
|
|
6060
|
+
lr as MenuMultiSelectGroup,
|
|
6061
|
+
dr as MenuMultiSelectItem,
|
|
6019
6062
|
tn as MenuPageContent,
|
|
6020
6063
|
nn as MenuPageTrigger,
|
|
6021
6064
|
an as MenuPages,
|
|
6022
6065
|
on as MenuRoot,
|
|
6023
6066
|
rn as MenuScroll,
|
|
6024
|
-
|
|
6025
|
-
|
|
6026
|
-
|
|
6067
|
+
mr as MenuSelectAllItem,
|
|
6068
|
+
gr as MenuSelectGroup,
|
|
6069
|
+
pr as MenuSelectItem,
|
|
6027
6070
|
cn as MenuSelectedIndicator,
|
|
6028
6071
|
ln as MenuSeparator,
|
|
6029
6072
|
dn as MenuSub,
|
|
6030
6073
|
un as MenuSubContent,
|
|
6031
6074
|
mn as MenuSubTrigger,
|
|
6032
|
-
|
|
6075
|
+
Kc as MenuV2,
|
|
6033
6076
|
xn as MenuV2CheckboxItem,
|
|
6034
6077
|
fn as MenuV2CheckedIndicator,
|
|
6035
6078
|
Be as MenuV2Group,
|
|
6036
6079
|
hn as MenuV2GroupLabel,
|
|
6037
6080
|
le as MenuV2Item,
|
|
6038
|
-
|
|
6039
|
-
|
|
6081
|
+
Nr as MenuV2MultiSelectGroup,
|
|
6082
|
+
wr as MenuV2MultiSelectItem,
|
|
6040
6083
|
vn as MenuV2Page,
|
|
6041
6084
|
Cn as MenuV2PageTriggerItem,
|
|
6042
6085
|
bn as MenuV2Pages,
|
|
6043
6086
|
yn as MenuV2Root,
|
|
6044
|
-
|
|
6045
|
-
|
|
6046
|
-
|
|
6087
|
+
zr as MenuV2SelectAllItem,
|
|
6088
|
+
Ir as MenuV2SelectGroup,
|
|
6089
|
+
Sr as MenuV2SelectItem,
|
|
6047
6090
|
zn as MenuV2SelectedIndicator,
|
|
6048
6091
|
Nn as MenuV2Separator,
|
|
6049
6092
|
gn as MenuVirtualTrigger,
|
|
6050
|
-
|
|
6093
|
+
Xc as OneTimePasswordField,
|
|
6051
6094
|
wn as OneTimePasswordFieldHiddenInput,
|
|
6052
6095
|
Sn as OneTimePasswordFieldInput,
|
|
6053
6096
|
kn as OneTimePasswordFieldRoot,
|
|
6054
|
-
|
|
6097
|
+
Yc as Overlay,
|
|
6055
6098
|
Rn as OverlayClose,
|
|
6056
6099
|
Pn as OverlayContent,
|
|
6057
6100
|
Tn as OverlayDescription,
|
|
6058
6101
|
Mn as OverlayRoot,
|
|
6059
6102
|
On as OverlayTitle,
|
|
6060
6103
|
Vn as OverlayTrigger,
|
|
6061
|
-
|
|
6062
|
-
|
|
6104
|
+
Pr as OvermapErrorBoundary,
|
|
6105
|
+
Qc as Popover,
|
|
6063
6106
|
An as PopoverArrow,
|
|
6064
6107
|
Dn as PopoverContent,
|
|
6065
|
-
|
|
6066
|
-
|
|
6067
|
-
|
|
6108
|
+
Vr as Progress,
|
|
6109
|
+
io as Provider,
|
|
6110
|
+
Jc as RadioCards,
|
|
6068
6111
|
En as RadioCardsItem,
|
|
6069
6112
|
Fn as RadioCardsRoot,
|
|
6070
|
-
|
|
6113
|
+
Zc as RadioGroup,
|
|
6071
6114
|
_n as RadioGroupIndicator,
|
|
6072
6115
|
Bn as RadioGroupItem,
|
|
6073
|
-
|
|
6074
|
-
|
|
6116
|
+
$n as RadioGroupRoot,
|
|
6117
|
+
ei as Rating,
|
|
6075
6118
|
qn as RatingItem,
|
|
6076
6119
|
Un as RatingItemIndicator,
|
|
6077
6120
|
Wn as RatingRoot,
|
|
6078
|
-
|
|
6121
|
+
ti as SegmentedControl,
|
|
6079
6122
|
Xn as SegmentedControlItem,
|
|
6080
6123
|
Yn as SegmentedControlRoot,
|
|
6081
|
-
|
|
6124
|
+
ai as SegmentedTabs,
|
|
6082
6125
|
Jn as SegmentedTabsList,
|
|
6083
6126
|
Zn as SegmentedTabsRoot,
|
|
6084
6127
|
es as SegmentedTabsTrigger,
|
|
6085
|
-
|
|
6086
|
-
|
|
6128
|
+
$r as Separator,
|
|
6129
|
+
qc as SlideOut,
|
|
6087
6130
|
ut as SlideOutClose,
|
|
6088
6131
|
mt as SlideOutContent,
|
|
6089
6132
|
gt as SlideOutHandle,
|
|
@@ -6091,55 +6134,56 @@ export {
|
|
|
6091
6134
|
xt as SlideOutRoot,
|
|
6092
6135
|
Ga as SlideOutTrigger,
|
|
6093
6136
|
ft as SlideOutViewport,
|
|
6094
|
-
|
|
6095
|
-
|
|
6096
|
-
|
|
6137
|
+
Kr as Slider,
|
|
6138
|
+
Xr as Spinner,
|
|
6139
|
+
ni as Switch,
|
|
6097
6140
|
as as SwitchRoot,
|
|
6098
6141
|
ns as SwitchThumb,
|
|
6099
|
-
|
|
6142
|
+
si as Table,
|
|
6100
6143
|
ss as TableBody,
|
|
6101
6144
|
os as TableCell,
|
|
6102
6145
|
rs as TableColumnHeaderCell,
|
|
6103
|
-
|
|
6104
|
-
|
|
6146
|
+
cs as TableFooter,
|
|
6147
|
+
is as TableHeader,
|
|
6105
6148
|
ls as TableRoot,
|
|
6106
6149
|
ds as TableRow,
|
|
6107
6150
|
us as TableRowHeaderCell,
|
|
6108
|
-
|
|
6151
|
+
oi as Tabs,
|
|
6109
6152
|
gs as TabsList,
|
|
6110
6153
|
ps as TabsRoot,
|
|
6111
6154
|
xs as TabsTrigger,
|
|
6112
6155
|
Xe as Text,
|
|
6113
|
-
|
|
6114
|
-
|
|
6115
|
-
|
|
6116
|
-
|
|
6156
|
+
sc as TextArea,
|
|
6157
|
+
uc as Toaster,
|
|
6158
|
+
pc as ToggleButton,
|
|
6159
|
+
ci as ToggleGroup,
|
|
6117
6160
|
hs as ToggleGroupIconItem,
|
|
6118
6161
|
vs as ToggleGroupItem,
|
|
6119
6162
|
bs as ToggleGroupRoot,
|
|
6120
|
-
|
|
6163
|
+
ii as Tooltip,
|
|
6121
6164
|
Cs as TooltipArrow,
|
|
6122
6165
|
ys as TooltipContent,
|
|
6123
|
-
|
|
6166
|
+
po as badge,
|
|
6124
6167
|
Jt as buttonCva,
|
|
6125
|
-
|
|
6168
|
+
Ve as floating,
|
|
6126
6169
|
_ as genericMemo,
|
|
6127
|
-
|
|
6170
|
+
Le as getActiveState,
|
|
6128
6171
|
Q as getBooleanState,
|
|
6129
6172
|
Ie as getCheckedState,
|
|
6130
6173
|
pe as getOpenState,
|
|
6131
6174
|
oe as getSelectedState,
|
|
6132
6175
|
we as mergeRefs,
|
|
6133
6176
|
k as radiusCva,
|
|
6134
|
-
|
|
6135
|
-
|
|
6136
|
-
|
|
6177
|
+
bo as stopPropagation,
|
|
6178
|
+
ri as toast,
|
|
6179
|
+
Vc as useAlertDialog,
|
|
6137
6180
|
Qt as useButtonGroup,
|
|
6138
6181
|
X as useControlledState,
|
|
6139
|
-
|
|
6182
|
+
vo as useFallbackId,
|
|
6140
6183
|
nt as useLatest,
|
|
6141
|
-
|
|
6184
|
+
ke as useLayoutContext,
|
|
6185
|
+
jc as useLayoutContextSelector,
|
|
6142
6186
|
M as useProvider,
|
|
6143
|
-
|
|
6144
|
-
|
|
6187
|
+
Ec as useTextFilter,
|
|
6188
|
+
Gc as useViewportSize
|
|
6145
6189
|
};
|