@overmap-ai/blocks 1.0.47 → 1.0.48-all-values-select-all-option.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/SelectContext/typings.d.ts +1 -0
- package/dist/blocks.js +1253 -1247
- package/dist/blocks.umd.cjs +1 -1
- package/dist/cva/floating.d.ts +0 -1
- package/dist/cva/index.d.ts +1 -0
- package/dist/cva/surface.d.ts +3 -0
- package/dist/index.d.ts +0 -1
- package/dist/typings.d.ts +1 -0
- package/package.json +1 -1
- package/dist/HoverUtility/HoverUtility.d.ts +0 -15
- package/dist/HoverUtility/index.d.ts +0 -1
package/dist/blocks.js
CHANGED
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
import * as $ from "@radix-ui/react-alert-dialog";
|
|
2
2
|
import { jsx as i, jsxs as W } from "react/jsx-runtime";
|
|
3
|
-
import { cva as
|
|
4
|
-
import { createContext as
|
|
5
|
-
import * as
|
|
3
|
+
import { cva as h, cx as x } from "class-variance-authority";
|
|
4
|
+
import { createContext as O, useContext as j, memo as u, useMemo as z, useState as E, useCallback as v, useRef as q, useEffect as B, useId as Qe, useLayoutEffect as ue, use as b } from "react";
|
|
5
|
+
import * as Je from "@radix-ui/react-avatar";
|
|
6
6
|
import * as ze from "@radix-ui/react-checkbox";
|
|
7
7
|
import { useMediaQuery as be } from "react-responsive";
|
|
8
|
-
import { CommandItem as
|
|
8
|
+
import { CommandItem as ws, CommandRoot as Is, CommandEmpty as Ss, CommandGroup as ks, CommandInput as Rs, useCommandState as Ts, CommandList as Ps, CommandSeparator as Ms } from "cmdk";
|
|
9
9
|
import * as H from "@radix-ui/react-dialog";
|
|
10
|
-
import { DialogPortal as
|
|
11
|
-
import { DayPicker as
|
|
12
|
-
import { ChevronRight as
|
|
10
|
+
import { DialogPortal as Rt, DialogContent as Os, DialogTitle as Vs, DialogDescription as Ls, DialogOverlay as As, DialogTrigger as Ds } from "@radix-ui/react-dialog";
|
|
11
|
+
import { DayPicker as Gs } from "react-day-picker";
|
|
12
|
+
import { ChevronRight as Es, ChevronLeft as _s, ChevronDown as Fs, ChevronUp as Hs, AlertTriangle as Bs, RotateCcw as $s, X as js, CircleAlertIcon as qs, TriangleAlertIcon as Us, InfoIcon as Ws, Check as Ks } from "lucide-react";
|
|
13
13
|
import * as ye from "@radix-ui/react-hover-card";
|
|
14
|
-
import { createContext as
|
|
14
|
+
import { createContext as Xs, useContext as Ys, useContextSelector as Qs } from "use-context-selector";
|
|
15
15
|
import { Slot as me } from "@radix-ui/react-slot";
|
|
16
|
-
import { CSSTransition as
|
|
16
|
+
import { CSSTransition as Js } from "react-transition-group";
|
|
17
17
|
import "react-transition-group/CSSTransition";
|
|
18
|
-
import
|
|
19
|
-
import { useListItem as
|
|
20
|
-
import * as
|
|
21
|
-
import * as
|
|
22
|
-
import { useErrorBoundary as
|
|
18
|
+
import Zs from "react-dom";
|
|
19
|
+
import { useListItem as Tt, useMergeRefs as ge, FloatingNode as Pt, FloatingPortal as Mt, FloatingOverlay as eo, FloatingFocusManager as Ot, FloatingList as Vt, useFloatingNodeId as Lt, useFloating as At, offset as Dt, size as Gt, flip as Et, shift as _t, hide as Ft, autoUpdate as Ht, useRole as to, useDismiss as Bt, useClick as $t, useListNavigation as jt, useInteractions as qt, FloatingTree as ao, useHover as no, safePolygon as so } from "@floating-ui/react";
|
|
20
|
+
import * as Ze from "@radix-ui/react-separator";
|
|
21
|
+
import * as et from "@radix-ui/react-one-time-password-field";
|
|
22
|
+
import { useErrorBoundary as oo, ErrorBoundary as ro } from "react-error-boundary";
|
|
23
23
|
import * as Pe from "@radix-ui/react-popover";
|
|
24
|
-
import * as
|
|
24
|
+
import * as wt from "@radix-ui/react-progress";
|
|
25
25
|
import * as ae from "@radix-ui/react-radio-group";
|
|
26
26
|
import * as Oe from "@radix-ui/react-toggle-group";
|
|
27
27
|
import * as ne from "@radix-ui/react-tabs";
|
|
28
28
|
import * as Te from "@radix-ui/react-slider";
|
|
29
29
|
import * as Ut from "@radix-ui/react-switch";
|
|
30
|
-
import { toast as K, Toaster as
|
|
31
|
-
import * as
|
|
30
|
+
import { toast as K, Toaster as co } from "sonner";
|
|
31
|
+
import * as io from "@radix-ui/react-toggle";
|
|
32
32
|
import * as de from "@radix-ui/react-tooltip";
|
|
33
|
-
const Ve =
|
|
33
|
+
const Ve = h(
|
|
34
34
|
[
|
|
35
35
|
"data-[state=open]:animate-in",
|
|
36
36
|
"data-[state=open]:fade-in-0",
|
|
@@ -41,13 +41,6 @@ const Ve = v(
|
|
|
41
41
|
],
|
|
42
42
|
{
|
|
43
43
|
variants: {
|
|
44
|
-
shadow: {
|
|
45
|
-
1: ["shadow-xs"],
|
|
46
|
-
2: ["shadow-sm"],
|
|
47
|
-
3: ["shadow-md"],
|
|
48
|
-
4: ["shadow-lg"],
|
|
49
|
-
5: ["shadow-xl"]
|
|
50
|
-
},
|
|
51
44
|
side: {
|
|
52
45
|
top: ["data-[side=top]:slide-in-from-bottom-2"],
|
|
53
46
|
right: ["data-[side=right]:slide-in-from-left-2"],
|
|
@@ -56,7 +49,7 @@ const Ve = v(
|
|
|
56
49
|
}
|
|
57
50
|
}
|
|
58
51
|
}
|
|
59
|
-
), k =
|
|
52
|
+
), k = h([], {
|
|
60
53
|
variants: {
|
|
61
54
|
maxLarge: {
|
|
62
55
|
true: [],
|
|
@@ -94,23 +87,36 @@ const Ve = v(
|
|
|
94
87
|
className: ["rounded-full"]
|
|
95
88
|
}
|
|
96
89
|
]
|
|
97
|
-
}),
|
|
98
|
-
|
|
90
|
+
}), Le = h([], {
|
|
91
|
+
variants: {
|
|
92
|
+
size: {
|
|
93
|
+
none: ["shadow-none"],
|
|
94
|
+
"2xs": ["shadow-2xs"],
|
|
95
|
+
xs: ["shadow-xs"],
|
|
96
|
+
sm: ["shadow-sm"],
|
|
97
|
+
md: ["shadow-md"],
|
|
98
|
+
lg: ["shadow-lg"],
|
|
99
|
+
xl: ["shadow-xl"],
|
|
100
|
+
"2xl": ["shadow-2xl"]
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}), Wt = O({}), V = () => {
|
|
104
|
+
const n = j(Wt);
|
|
99
105
|
if (!n)
|
|
100
106
|
throw new Error("useProvider must be used within a Provider");
|
|
101
107
|
return n;
|
|
102
|
-
},
|
|
103
|
-
const { accentColor: a, radius: t = "md", children: e } = n, s =
|
|
108
|
+
}, lo = u((n) => {
|
|
109
|
+
const { accentColor: a, radius: t = "md", children: e } = n, s = z(
|
|
104
110
|
() => ({
|
|
105
111
|
accentColor: a,
|
|
106
112
|
radius: t
|
|
107
113
|
}),
|
|
108
114
|
[a, t]
|
|
109
115
|
);
|
|
110
|
-
return /* @__PURE__ */ i(
|
|
116
|
+
return /* @__PURE__ */ i(Wt.Provider, { value: s, children: e });
|
|
111
117
|
});
|
|
112
|
-
|
|
113
|
-
const
|
|
118
|
+
lo.displayName = "Provider";
|
|
119
|
+
const Kt = h([
|
|
114
120
|
"fixed",
|
|
115
121
|
"inset-0",
|
|
116
122
|
// background
|
|
@@ -122,7 +128,7 @@ const Wt = v([
|
|
|
122
128
|
"data-[state='open']:fade-in-0",
|
|
123
129
|
"data-[state='closed']:animate-out",
|
|
124
130
|
"data-[state='closed']:fade-out-0"
|
|
125
|
-
]),
|
|
131
|
+
]), Xt = h(
|
|
126
132
|
[
|
|
127
133
|
"h-max",
|
|
128
134
|
"max-h-3/4",
|
|
@@ -165,14 +171,14 @@ const Wt = v([
|
|
|
165
171
|
size: "md"
|
|
166
172
|
}
|
|
167
173
|
}
|
|
168
|
-
),
|
|
169
|
-
const { radius: a } =
|
|
174
|
+
), tt = u((n) => {
|
|
175
|
+
const { radius: a } = V(), { ref: t, children: e, className: s, size: o, container: r, ...c } = n;
|
|
170
176
|
return /* @__PURE__ */ W($.Portal, { container: r, children: [
|
|
171
|
-
/* @__PURE__ */ i($.Overlay, { className:
|
|
177
|
+
/* @__PURE__ */ i($.Overlay, { className: Kt({}), "data-floating-content": "" }),
|
|
172
178
|
/* @__PURE__ */ i(
|
|
173
179
|
$.Content,
|
|
174
180
|
{
|
|
175
|
-
className: x(
|
|
181
|
+
className: x(Xt({ size: o }), k({ radius: a, maxLarge: !0 }), s),
|
|
176
182
|
ref: t,
|
|
177
183
|
"data-floating-content": "",
|
|
178
184
|
...c,
|
|
@@ -181,23 +187,23 @@ const Wt = v([
|
|
|
181
187
|
)
|
|
182
188
|
] });
|
|
183
189
|
});
|
|
184
|
-
|
|
185
|
-
const
|
|
190
|
+
tt.displayName = "AlertDialogContent";
|
|
191
|
+
const Yt = O(() => {
|
|
186
192
|
throw new Error("No AlertDialogProvider found");
|
|
187
193
|
}), Ec = () => {
|
|
188
|
-
const n = j(
|
|
194
|
+
const n = j(Yt);
|
|
189
195
|
if (!n)
|
|
190
196
|
throw new Error("No AlertDialogProvider found");
|
|
191
197
|
return n;
|
|
192
|
-
},
|
|
193
|
-
const a =
|
|
198
|
+
}, Qt = O({}), uo = u((n) => {
|
|
199
|
+
const a = V(), {
|
|
194
200
|
children: t,
|
|
195
201
|
variant: e = "solid",
|
|
196
202
|
size: s = "md",
|
|
197
203
|
radius: o = a.radius,
|
|
198
204
|
accentColor: r = a.accentColor,
|
|
199
205
|
...c
|
|
200
|
-
} = n, l =
|
|
206
|
+
} = n, l = z(
|
|
201
207
|
() => ({
|
|
202
208
|
variant: e,
|
|
203
209
|
size: s,
|
|
@@ -206,10 +212,10 @@ const Xt = T(() => {
|
|
|
206
212
|
}),
|
|
207
213
|
[r, o, s, e]
|
|
208
214
|
);
|
|
209
|
-
return /* @__PURE__ */ i("div", { ...c, children: /* @__PURE__ */ i(
|
|
215
|
+
return /* @__PURE__ */ i("div", { ...c, children: /* @__PURE__ */ i(Qt.Provider, { value: l, children: t }) });
|
|
210
216
|
});
|
|
211
|
-
|
|
212
|
-
const
|
|
217
|
+
uo.displayName = "Buttons";
|
|
218
|
+
const Jt = () => j(Qt), Zt = h(
|
|
213
219
|
[
|
|
214
220
|
"inline-flex",
|
|
215
221
|
"items-center",
|
|
@@ -236,45 +242,51 @@ const Qt = () => j(Yt), Jt = v(
|
|
|
236
242
|
solid: [
|
|
237
243
|
"ring-(--accent-9)",
|
|
238
244
|
"bg-(--accent-9)",
|
|
239
|
-
"hover:bg-(--accent-10)",
|
|
240
245
|
"text-(--accent-contrast)",
|
|
241
246
|
"active:brightness-110",
|
|
247
|
+
"hover:bg-(--accent-10)",
|
|
242
248
|
// trigger state
|
|
243
249
|
"data-[state='open']:bg-(--accent-10)"
|
|
244
250
|
],
|
|
245
251
|
soft: [
|
|
246
252
|
"bg-(--accent-a3)",
|
|
253
|
+
"text-(--accent-a11)",
|
|
247
254
|
"hover:bg-(--accent-a4)",
|
|
255
|
+
"hover:text-(--accent-a12)",
|
|
248
256
|
"active:bg-(--accent-a5)",
|
|
249
|
-
"text-(--accent-a11)",
|
|
250
257
|
// trigger state
|
|
251
258
|
"data-[state='open']:bg-(--accent-a4)"
|
|
252
259
|
],
|
|
253
260
|
ghost: [
|
|
254
261
|
"bg-transparent",
|
|
262
|
+
"text-(--accent-a11)",
|
|
255
263
|
"hover:bg-(--accent-a3)",
|
|
264
|
+
"hover:text-(--accent-a12)",
|
|
256
265
|
"active:bg-(--accent-a4)",
|
|
257
|
-
"text-(--accent-a11)",
|
|
258
266
|
// trigger state
|
|
259
267
|
"data-[state='open']:bg-(--accent-a3)"
|
|
260
268
|
],
|
|
261
269
|
surface: [
|
|
262
270
|
"bg-(--accent-surface)",
|
|
263
|
-
"hover:inset-ring-(--accent-a8)",
|
|
264
|
-
"active:bg-(--accent-a3)",
|
|
265
271
|
"inset-ring",
|
|
266
272
|
"inset-ring-(--accent-a7)",
|
|
267
273
|
"text-(--accent-a11)",
|
|
274
|
+
"hover:inset-ring-(--accent-a8)",
|
|
275
|
+
"hover:text-(--accent-a12)",
|
|
276
|
+
"active:bg-(--accent-a3)",
|
|
277
|
+
// trigger state
|
|
268
278
|
"data-[state='open']:bg-(--accent-a4)"
|
|
269
279
|
],
|
|
270
280
|
outline: [
|
|
271
281
|
"bg-transparent",
|
|
272
282
|
"inset-ring",
|
|
273
283
|
"inset-ring-(--accent-a7)",
|
|
284
|
+
"text-(--accent-a11)",
|
|
274
285
|
"hover:inset-ring-(--accent-a8)",
|
|
275
286
|
"hover:bg-(--accent-a3)",
|
|
287
|
+
"hover:text-(--accent-a12)",
|
|
276
288
|
"active:bg-(--accent-a4)",
|
|
277
|
-
|
|
289
|
+
// trigger state
|
|
278
290
|
"data-[state='open']:inset-ring-(--accent-a8)",
|
|
279
291
|
"data-[state='open']:bg-(--accent-a3)"
|
|
280
292
|
],
|
|
@@ -287,6 +299,7 @@ const Qt = () => j(Yt), Jt = v(
|
|
|
287
299
|
"hover:bg-(--accent-a3)",
|
|
288
300
|
"hover:text-(--accent-a12)",
|
|
289
301
|
"active:bg-(--accent-a4)",
|
|
302
|
+
// trigger state
|
|
290
303
|
"data-[state='open']:inset-ring-0",
|
|
291
304
|
"data-[state='open']:bg-(--accent-a3)"
|
|
292
305
|
]
|
|
@@ -361,8 +374,8 @@ const Qt = () => j(Yt), Jt = v(
|
|
|
361
374
|
variant: "solid"
|
|
362
375
|
}
|
|
363
376
|
}
|
|
364
|
-
),
|
|
365
|
-
const a =
|
|
377
|
+
), Ke = u((n) => {
|
|
378
|
+
const a = V(), t = Jt(), {
|
|
366
379
|
ref: e,
|
|
367
380
|
children: s,
|
|
368
381
|
className: o,
|
|
@@ -375,7 +388,7 @@ const Qt = () => j(Yt), Jt = v(
|
|
|
375
388
|
return /* @__PURE__ */ i(
|
|
376
389
|
"button",
|
|
377
390
|
{
|
|
378
|
-
className: x(
|
|
391
|
+
className: x(Zt({ size: c, icon: !1, variant: r }), k({ radius: l, maxLarge: !1 }), o),
|
|
379
392
|
ref: e,
|
|
380
393
|
"data-accent-color": d,
|
|
381
394
|
...m,
|
|
@@ -383,9 +396,9 @@ const Qt = () => j(Yt), Jt = v(
|
|
|
383
396
|
}
|
|
384
397
|
);
|
|
385
398
|
});
|
|
386
|
-
|
|
387
|
-
const
|
|
388
|
-
const a =
|
|
399
|
+
Ke.displayName = "Button";
|
|
400
|
+
const at = u((n) => {
|
|
401
|
+
const a = V(), t = Jt(), {
|
|
389
402
|
ref: e,
|
|
390
403
|
children: s,
|
|
391
404
|
className: o,
|
|
@@ -398,7 +411,7 @@ const tt = u((n) => {
|
|
|
398
411
|
return /* @__PURE__ */ i(
|
|
399
412
|
"button",
|
|
400
413
|
{
|
|
401
|
-
className: x(
|
|
414
|
+
className: x(Zt({ size: c, icon: !0, variant: r }), k({ radius: l, maxLarge: !1 }), o),
|
|
402
415
|
ref: e,
|
|
403
416
|
"data-accent-color": d,
|
|
404
417
|
...m,
|
|
@@ -406,15 +419,15 @@ const tt = u((n) => {
|
|
|
406
419
|
}
|
|
407
420
|
);
|
|
408
421
|
});
|
|
409
|
-
|
|
410
|
-
const
|
|
411
|
-
const { children: a } = n, [t, e] = E(!1), [s, o] = E(null), r =
|
|
422
|
+
at.displayName = "IconButton";
|
|
423
|
+
const mo = u((n) => {
|
|
424
|
+
const { children: a } = n, [t, e] = E(!1), [s, o] = E(null), r = v(
|
|
412
425
|
(l) => {
|
|
413
426
|
var d;
|
|
414
427
|
e(l), !l && ((d = s == null ? void 0 : s.onClose) == null || d.call(s));
|
|
415
428
|
},
|
|
416
429
|
[s]
|
|
417
|
-
), c =
|
|
430
|
+
), c = v(
|
|
418
431
|
(l) => {
|
|
419
432
|
if (t) throw new Error("AlertDialog is already open");
|
|
420
433
|
e(!0), o({
|
|
@@ -426,30 +439,30 @@ const uo = u((n) => {
|
|
|
426
439
|
},
|
|
427
440
|
[t]
|
|
428
441
|
);
|
|
429
|
-
return /* @__PURE__ */ W(
|
|
442
|
+
return /* @__PURE__ */ W(Yt.Provider, { value: c, children: [
|
|
430
443
|
a,
|
|
431
|
-
/* @__PURE__ */ i($.Root, { open: t, onOpenChange: r, children: /* @__PURE__ */ i(
|
|
444
|
+
/* @__PURE__ */ i($.Root, { open: t, onOpenChange: r, children: /* @__PURE__ */ i(tt, { size: s == null ? void 0 : s.size, children: /* @__PURE__ */ W("div", { className: "flex flex-col gap-4", children: [
|
|
432
445
|
/* @__PURE__ */ W("div", { className: "flex flex-col gap-1", children: [
|
|
433
446
|
/* @__PURE__ */ i($.Title, { className: "font-medium", children: s == null ? void 0 : s.title }),
|
|
434
447
|
/* @__PURE__ */ i($.Description, { children: s == null ? void 0 : s.description })
|
|
435
448
|
] }),
|
|
436
449
|
/* @__PURE__ */ W("div", { className: "flex justify-end gap-2", children: [
|
|
437
|
-
/* @__PURE__ */ i($.Cancel, { onClick: s == null ? void 0 : s.onCancel, asChild: !0, children: /* @__PURE__ */ i(
|
|
438
|
-
/* @__PURE__ */ i($.Action, { onClick: s == null ? void 0 : s.onAction, asChild: !0, children: /* @__PURE__ */ i(
|
|
450
|
+
/* @__PURE__ */ i($.Cancel, { onClick: s == null ? void 0 : s.onCancel, asChild: !0, children: /* @__PURE__ */ i(Ke, { variant: "soft", size: s == null ? void 0 : s.size, accentColor: "base", children: s == null ? void 0 : s.cancel }) }),
|
|
451
|
+
/* @__PURE__ */ i($.Action, { onClick: s == null ? void 0 : s.onAction, asChild: !0, children: /* @__PURE__ */ i(Ke, { variant: "solid", size: s == null ? void 0 : s.size, children: s == null ? void 0 : s.action }) })
|
|
439
452
|
] })
|
|
440
453
|
] }) }) })
|
|
441
454
|
] });
|
|
442
455
|
});
|
|
443
|
-
|
|
456
|
+
mo.displayName = "AlertDialogProvider";
|
|
444
457
|
const _c = {
|
|
445
|
-
Content:
|
|
458
|
+
Content: tt,
|
|
446
459
|
Trigger: $.Trigger,
|
|
447
460
|
Root: $.Root,
|
|
448
461
|
Title: $.Title,
|
|
449
462
|
Description: $.Description,
|
|
450
463
|
Action: $.Action,
|
|
451
464
|
Cancel: $.Cancel
|
|
452
|
-
},
|
|
465
|
+
}, ea = O({}), go = h(["shrink-0", "select-none", "inline-block", "align-middle"], {
|
|
453
466
|
variants: {
|
|
454
467
|
size: {
|
|
455
468
|
xs: ["h-6", "w-6", "text-xs"],
|
|
@@ -462,7 +475,7 @@ const _c = {
|
|
|
462
475
|
defaultVariants: {
|
|
463
476
|
size: "md"
|
|
464
477
|
}
|
|
465
|
-
}),
|
|
478
|
+
}), po = h(["flex", "items-center", "justify-center", "size-full", "rounded-[inherit]"], {
|
|
466
479
|
variants: {
|
|
467
480
|
variant: {
|
|
468
481
|
solid: ["bg-(--accent-9)", "text-(--accent-contrast)"],
|
|
@@ -474,15 +487,15 @@ const _c = {
|
|
|
474
487
|
defaultVariants: {
|
|
475
488
|
variant: "solid"
|
|
476
489
|
}
|
|
477
|
-
}),
|
|
478
|
-
const { ref: a, children: t, className: e, ...s } = n, { variant: o } = j(
|
|
479
|
-
return /* @__PURE__ */ i(
|
|
490
|
+
}), ta = u((n) => {
|
|
491
|
+
const { ref: a, children: t, className: e, ...s } = n, { variant: o } = j(ea);
|
|
492
|
+
return /* @__PURE__ */ i(Je.AvatarFallback, { className: x(po({ variant: o }), e), ref: a, ...s, children: t });
|
|
480
493
|
});
|
|
481
|
-
|
|
482
|
-
const
|
|
494
|
+
ta.displayName = "AvatarFallback";
|
|
495
|
+
const aa = u((n) => {
|
|
483
496
|
const { ref: a, className: t, ...e } = n;
|
|
484
497
|
return /* @__PURE__ */ i(
|
|
485
|
-
|
|
498
|
+
Je.Image,
|
|
486
499
|
{
|
|
487
500
|
className: x("object-cover", "rounded-[inherit]", "w-full", "h-full", t),
|
|
488
501
|
ref: a,
|
|
@@ -490,9 +503,9 @@ const ta = u((n) => {
|
|
|
490
503
|
}
|
|
491
504
|
);
|
|
492
505
|
});
|
|
493
|
-
|
|
494
|
-
const
|
|
495
|
-
const a =
|
|
506
|
+
aa.displayName = "AvatarImage";
|
|
507
|
+
const na = u((n) => {
|
|
508
|
+
const a = V(), {
|
|
496
509
|
ref: t,
|
|
497
510
|
children: e,
|
|
498
511
|
className: s,
|
|
@@ -503,22 +516,22 @@ const aa = u((n) => {
|
|
|
503
516
|
...d
|
|
504
517
|
} = n;
|
|
505
518
|
return /* @__PURE__ */ i(
|
|
506
|
-
|
|
519
|
+
Je.Root,
|
|
507
520
|
{
|
|
508
|
-
className: x(
|
|
521
|
+
className: x(go({ size: o }), k({ radius: l, maxLarge: !1 }), s),
|
|
509
522
|
ref: t,
|
|
510
523
|
"data-accent-color": c,
|
|
511
524
|
...d,
|
|
512
|
-
children: /* @__PURE__ */ i(
|
|
525
|
+
children: /* @__PURE__ */ i(ea.Provider, { value: { variant: r }, children: e })
|
|
513
526
|
}
|
|
514
527
|
);
|
|
515
528
|
});
|
|
516
|
-
|
|
529
|
+
na.displayName = "AvatarRoot";
|
|
517
530
|
const Fc = {
|
|
518
|
-
Fallback:
|
|
519
|
-
Image:
|
|
520
|
-
Root:
|
|
521
|
-
},
|
|
531
|
+
Fallback: ta,
|
|
532
|
+
Image: aa,
|
|
533
|
+
Root: na
|
|
534
|
+
}, xo = h(["inline-flex", "items-center", "shrink-0", "whitespace-nowrap"], {
|
|
522
535
|
variants: {
|
|
523
536
|
icon: {
|
|
524
537
|
true: ["justify-center"],
|
|
@@ -596,8 +609,8 @@ const Fc = {
|
|
|
596
609
|
variant: "solid",
|
|
597
610
|
icon: !1
|
|
598
611
|
}
|
|
599
|
-
}),
|
|
600
|
-
const a =
|
|
612
|
+
}), fo = u((n) => {
|
|
613
|
+
const a = V(), {
|
|
601
614
|
ref: t,
|
|
602
615
|
children: e,
|
|
603
616
|
className: s,
|
|
@@ -611,7 +624,7 @@ const Fc = {
|
|
|
611
624
|
return /* @__PURE__ */ i(
|
|
612
625
|
"span",
|
|
613
626
|
{
|
|
614
|
-
className: x(
|
|
627
|
+
className: x(xo({ variant: c, size: l, icon: d }), k({ radius: r, maxLarge: !1 }), s),
|
|
615
628
|
ref: t,
|
|
616
629
|
"data-accent-color": o,
|
|
617
630
|
...m,
|
|
@@ -619,8 +632,8 @@ const Fc = {
|
|
|
619
632
|
}
|
|
620
633
|
);
|
|
621
634
|
});
|
|
622
|
-
|
|
623
|
-
const
|
|
635
|
+
fo.displayName = "Badge";
|
|
636
|
+
const ho = h([], {
|
|
624
637
|
variants: {
|
|
625
638
|
variant: {
|
|
626
639
|
soft: ["bg-(--accent-a2)"],
|
|
@@ -639,8 +652,8 @@ const fo = v([], {
|
|
|
639
652
|
size: "md",
|
|
640
653
|
variant: "surface"
|
|
641
654
|
}
|
|
642
|
-
}),
|
|
643
|
-
const a =
|
|
655
|
+
}), vo = u((n) => {
|
|
656
|
+
const a = V(), {
|
|
644
657
|
ref: t,
|
|
645
658
|
children: e,
|
|
646
659
|
className: s,
|
|
@@ -654,15 +667,15 @@ const fo = v([], {
|
|
|
654
667
|
"div",
|
|
655
668
|
{
|
|
656
669
|
ref: t,
|
|
657
|
-
className: x(
|
|
670
|
+
className: x(ho({ size: o, variant: r }), k({ radius: l, maxLarge: !0 }), s),
|
|
658
671
|
"data-accent-color": c,
|
|
659
672
|
...d,
|
|
660
673
|
children: e
|
|
661
674
|
}
|
|
662
675
|
);
|
|
663
676
|
});
|
|
664
|
-
|
|
665
|
-
const
|
|
677
|
+
vo.displayName = "Card";
|
|
678
|
+
const sa = u((n) => {
|
|
666
679
|
const { ref: a, children: t, className: e, ...s } = n;
|
|
667
680
|
return /* @__PURE__ */ i(
|
|
668
681
|
ze.CheckboxIndicator,
|
|
@@ -674,8 +687,8 @@ const na = u((n) => {
|
|
|
674
687
|
}
|
|
675
688
|
);
|
|
676
689
|
});
|
|
677
|
-
|
|
678
|
-
const
|
|
690
|
+
sa.displayName = "CheckboxIndicator";
|
|
691
|
+
const nt = h(
|
|
679
692
|
[
|
|
680
693
|
"shrink-0",
|
|
681
694
|
"align-top",
|
|
@@ -717,8 +730,8 @@ const at = v(
|
|
|
717
730
|
size: "md"
|
|
718
731
|
}
|
|
719
732
|
}
|
|
720
|
-
),
|
|
721
|
-
const a =
|
|
733
|
+
), oa = u((n) => {
|
|
734
|
+
const a = V(), {
|
|
722
735
|
ref: t,
|
|
723
736
|
children: e,
|
|
724
737
|
className: s,
|
|
@@ -731,7 +744,7 @@ const at = v(
|
|
|
731
744
|
return /* @__PURE__ */ i(
|
|
732
745
|
ze.Root,
|
|
733
746
|
{
|
|
734
|
-
className: x(
|
|
747
|
+
className: x(nt({ variant: o, size: r }), k({ radius: c, maxLarge: !0 }), s),
|
|
735
748
|
ref: t,
|
|
736
749
|
"data-accent-color": l,
|
|
737
750
|
...d,
|
|
@@ -739,14 +752,14 @@ const at = v(
|
|
|
739
752
|
}
|
|
740
753
|
);
|
|
741
754
|
});
|
|
742
|
-
|
|
755
|
+
oa.displayName = "CheckboxRoot";
|
|
743
756
|
const Hc = {
|
|
744
|
-
Root:
|
|
745
|
-
Indicator:
|
|
746
|
-
}, Ne =
|
|
757
|
+
Root: oa,
|
|
758
|
+
Indicator: sa
|
|
759
|
+
}, Ne = O({}), Z = O({}), Bc = (n) => {
|
|
747
760
|
const { xs: a, sm: t, md: e, lg: s, xl: o } = n, [r, c] = E("initial"), [l, d] = E("initial"), m = be({ minWidth: a }), g = be({ minWidth: t }), p = be({ minWidth: e }), f = be({ minWidth: s }), C = be({ minWidth: o });
|
|
748
761
|
return ue(() => {
|
|
749
|
-
d((
|
|
762
|
+
d((N) => (c(N), C ? "xl" : f ? "lg" : p ? "md" : g ? "sm" : m ? "xs" : "initial"));
|
|
750
763
|
}, [f, p, g, C, m]), { size: l, prevSize: r, xs: m, sm: g, md: p, lg: f, xl: C };
|
|
751
764
|
};
|
|
752
765
|
function $c(n, a) {
|
|
@@ -756,7 +769,7 @@ function $c(n, a) {
|
|
|
756
769
|
}, [a, s, n]), [t, s, o];
|
|
757
770
|
}
|
|
758
771
|
function X(n, a, t) {
|
|
759
|
-
const [e, s] = E(n), o =
|
|
772
|
+
const [e, s] = E(n), o = v(
|
|
760
773
|
(r) => {
|
|
761
774
|
s(r), t == null || t(r);
|
|
762
775
|
},
|
|
@@ -766,12 +779,12 @@ function X(n, a, t) {
|
|
|
766
779
|
a !== void 0 && s(a);
|
|
767
780
|
}, [a]), [a ?? e, o];
|
|
768
781
|
}
|
|
769
|
-
function
|
|
770
|
-
const a =
|
|
782
|
+
function bo(n) {
|
|
783
|
+
const a = Qe();
|
|
771
784
|
return n ?? a;
|
|
772
785
|
}
|
|
773
|
-
function
|
|
774
|
-
const a =
|
|
786
|
+
function st(n) {
|
|
787
|
+
const a = q(n);
|
|
775
788
|
return a.current = n, a;
|
|
776
789
|
}
|
|
777
790
|
const F = u;
|
|
@@ -798,7 +811,7 @@ function we(n) {
|
|
|
798
811
|
};
|
|
799
812
|
};
|
|
800
813
|
}
|
|
801
|
-
const
|
|
814
|
+
const Co = (n) => {
|
|
802
815
|
n.stopPropagation();
|
|
803
816
|
};
|
|
804
817
|
function oe(n) {
|
|
@@ -807,7 +820,7 @@ function oe(n) {
|
|
|
807
820
|
function Ie(n) {
|
|
808
821
|
return n === !0 ? "checked" : n === !1 ? "unchecked" : "indeterminate";
|
|
809
822
|
}
|
|
810
|
-
function
|
|
823
|
+
function Ae(n) {
|
|
811
824
|
return n ? "active" : "inactive";
|
|
812
825
|
}
|
|
813
826
|
function Q(n) {
|
|
@@ -816,56 +829,56 @@ function Q(n) {
|
|
|
816
829
|
function pe(n) {
|
|
817
830
|
return n ? "open" : "closed";
|
|
818
831
|
}
|
|
819
|
-
const
|
|
820
|
-
const { children: t, defaultValues: e, values: s, onValuesChange: o,
|
|
821
|
-
(
|
|
822
|
-
[
|
|
823
|
-
),
|
|
824
|
-
const
|
|
825
|
-
return
|
|
832
|
+
const De = F(function(a) {
|
|
833
|
+
const { children: t, defaultValues: e, values: s, onValuesChange: o, allValues: r, equalityFn: c } = a, l = st(c), [d, m] = E(/* @__PURE__ */ new Set()), [g, p] = X(e ?? [], s, o), f = v(
|
|
834
|
+
(T, A) => l.current ? A.some((S) => l.current(S, T)) : A.includes(T),
|
|
835
|
+
[l]
|
|
836
|
+
), C = v((T) => (m((A) => {
|
|
837
|
+
const S = new Set(A);
|
|
838
|
+
return S.add(T), S;
|
|
826
839
|
}), () => {
|
|
827
|
-
|
|
828
|
-
const
|
|
829
|
-
return
|
|
840
|
+
m((A) => {
|
|
841
|
+
const S = new Set(A);
|
|
842
|
+
return S.delete(T), S;
|
|
830
843
|
});
|
|
831
|
-
}), []),
|
|
832
|
-
(
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
) :
|
|
844
|
+
}), []), N = v((T) => f(T, g), [f, g]), w = v(
|
|
845
|
+
(T) => {
|
|
846
|
+
N(T) ? p(
|
|
847
|
+
g.filter((A) => l.current ? !l.current(A, T) : A !== T)
|
|
848
|
+
) : p([...g, T]);
|
|
836
849
|
},
|
|
837
|
-
[
|
|
838
|
-
),
|
|
839
|
-
|
|
840
|
-
}, [
|
|
841
|
-
() => ({ selected:
|
|
842
|
-
[
|
|
850
|
+
[l, N, p, g]
|
|
851
|
+
), y = z(() => r ?? Array.from(d.values()), [r, d]), R = z(() => y.every((T) => f(T, g)), [f, y, g]), L = z(() => y.some((T) => f(T, g)), [f, y, g]), P = v(() => {
|
|
852
|
+
p(R ? [] : y);
|
|
853
|
+
}, [R, y, p]), D = z(
|
|
854
|
+
() => ({ selected: N, selectValue: w, allSelected: R, someSelected: L, toggleSelectAll: P, registerValue: C }),
|
|
855
|
+
[R, C, w, N, L, P]
|
|
843
856
|
);
|
|
844
|
-
return /* @__PURE__ */ i(Z, { value:
|
|
845
|
-
}),
|
|
846
|
-
const { children: t, defaultValue: e, value: s, onValueChange: o, equalityFn: r } = a, c =
|
|
857
|
+
return /* @__PURE__ */ i(Z, { value: D, children: t });
|
|
858
|
+
}), ot = F(function(a) {
|
|
859
|
+
const { children: t, defaultValue: e, value: s, onValueChange: o, equalityFn: r } = a, c = st(r), [l, d] = X(e, s, o), m = v(
|
|
847
860
|
(f) => c.current ? c.current(f, l) : f === l,
|
|
848
861
|
[l, c]
|
|
849
|
-
), g =
|
|
862
|
+
), g = v(
|
|
850
863
|
(f) => {
|
|
851
864
|
m(f) || d(f);
|
|
852
865
|
},
|
|
853
866
|
[m, d]
|
|
854
|
-
), p =
|
|
867
|
+
), p = z(() => ({ selected: m, selectValue: g }), [g, m]);
|
|
855
868
|
return /* @__PURE__ */ i(Ne, { value: p, children: t });
|
|
856
|
-
}),
|
|
857
|
-
const { children: t, defaultValue: e = void 0, value: s, onValueChange: o, equalityFn: r } = a, c =
|
|
869
|
+
}), rt = F(function(a) {
|
|
870
|
+
const { children: t, defaultValue: e = void 0, value: s, onValueChange: o, equalityFn: r } = a, c = st(r), [l, d] = X(e, s, o), m = v(
|
|
858
871
|
(f) => l !== void 0 && (c.current ? c.current(f, l) : f === l),
|
|
859
872
|
[l, c]
|
|
860
|
-
), g =
|
|
873
|
+
), g = v(
|
|
861
874
|
(f) => {
|
|
862
875
|
d(m(f) ? void 0 : f);
|
|
863
876
|
},
|
|
864
877
|
[m, d]
|
|
865
|
-
), p =
|
|
878
|
+
), p = z(() => ({ selected: m, selectValue: g }), [m, g]);
|
|
866
879
|
return /* @__PURE__ */ i(Ne, { value: p, children: t });
|
|
867
|
-
}),
|
|
868
|
-
const a = b(
|
|
880
|
+
}), ct = O({}), ra = u((n) => {
|
|
881
|
+
const a = b(ct), {
|
|
869
882
|
ref: t,
|
|
870
883
|
className: e,
|
|
871
884
|
value: s,
|
|
@@ -877,33 +890,33 @@ const Ae = F(function(a) {
|
|
|
877
890
|
...m
|
|
878
891
|
} = n, { selected: g, selectValue: p, registerValue: f } = b(Z);
|
|
879
892
|
ue(() => f(s), [f, s]);
|
|
880
|
-
const C = g(s),
|
|
893
|
+
const C = g(s), N = a.disabled || o, w = v(() => {
|
|
881
894
|
p(s);
|
|
882
895
|
}, [p, s]);
|
|
883
896
|
return /* @__PURE__ */ i(
|
|
884
897
|
ze.Root,
|
|
885
898
|
{
|
|
886
899
|
ref: t,
|
|
887
|
-
className: x(
|
|
900
|
+
className: x(nt({ variant: c, size: l }), k({ radius: d, maxLarge: !0 }), e),
|
|
888
901
|
name: a.name,
|
|
889
902
|
required: a.required,
|
|
890
|
-
disabled:
|
|
903
|
+
disabled: N,
|
|
891
904
|
value: s,
|
|
892
905
|
checked: C,
|
|
893
|
-
onCheckedChange:
|
|
906
|
+
onCheckedChange: w,
|
|
894
907
|
"data-accent-color": r,
|
|
895
908
|
...m
|
|
896
909
|
}
|
|
897
910
|
);
|
|
898
911
|
});
|
|
899
|
-
|
|
900
|
-
const
|
|
912
|
+
ra.displayName = "CheckboxGroupItem";
|
|
913
|
+
const ca = u((n) => {
|
|
901
914
|
const { ref: a, className: t, ...e } = n;
|
|
902
915
|
return /* @__PURE__ */ i(ze.Indicator, { className: x("flex items-center justify-center", t), ref: a, ...e });
|
|
903
916
|
});
|
|
904
|
-
|
|
905
|
-
const
|
|
906
|
-
const a =
|
|
917
|
+
ca.displayName = "CheckboxGroupItemIndicator";
|
|
918
|
+
const ia = u((n) => {
|
|
919
|
+
const a = V(), {
|
|
907
920
|
ref: t,
|
|
908
921
|
defaultValues: e,
|
|
909
922
|
values: s,
|
|
@@ -917,7 +930,7 @@ const ca = u((n) => {
|
|
|
917
930
|
variant: p = "surface",
|
|
918
931
|
size: f = "md",
|
|
919
932
|
...C
|
|
920
|
-
} = n,
|
|
933
|
+
} = n, N = z(
|
|
921
934
|
() => ({
|
|
922
935
|
name: c,
|
|
923
936
|
required: l,
|
|
@@ -939,8 +952,8 @@ const ca = u((n) => {
|
|
|
939
952
|
"data-accent-color": m,
|
|
940
953
|
"aria-disabled": Q(!!d),
|
|
941
954
|
...C,
|
|
942
|
-
children: /* @__PURE__ */ i(
|
|
943
|
-
|
|
955
|
+
children: /* @__PURE__ */ i(ct.Provider, { value: N, children: /* @__PURE__ */ i(
|
|
956
|
+
De,
|
|
944
957
|
{
|
|
945
958
|
defaultValues: e,
|
|
946
959
|
values: s,
|
|
@@ -951,9 +964,9 @@ const ca = u((n) => {
|
|
|
951
964
|
}
|
|
952
965
|
);
|
|
953
966
|
});
|
|
954
|
-
|
|
955
|
-
const
|
|
956
|
-
const a = b(
|
|
967
|
+
ia.displayName = "CheckboxGroupRoot";
|
|
968
|
+
const la = u((n) => {
|
|
969
|
+
const a = b(ct), {
|
|
957
970
|
ref: t,
|
|
958
971
|
className: e,
|
|
959
972
|
disabled: s,
|
|
@@ -967,7 +980,7 @@ const ia = u((n) => {
|
|
|
967
980
|
ze.Root,
|
|
968
981
|
{
|
|
969
982
|
ref: t,
|
|
970
|
-
className: x(
|
|
983
|
+
className: x(nt({ variant: r, size: c }), k({ radius: l, maxLarge: !0 }), e),
|
|
971
984
|
name: a.name,
|
|
972
985
|
required: a.required,
|
|
973
986
|
disabled: C,
|
|
@@ -978,13 +991,13 @@ const ia = u((n) => {
|
|
|
978
991
|
}
|
|
979
992
|
);
|
|
980
993
|
});
|
|
981
|
-
|
|
994
|
+
la.displayName = "CheckboxGroupSelectAllItem";
|
|
982
995
|
const jc = {
|
|
983
|
-
Root:
|
|
984
|
-
Item:
|
|
985
|
-
SelectAllItem:
|
|
986
|
-
ItemIndicator:
|
|
987
|
-
}, Se =
|
|
996
|
+
Root: ia,
|
|
997
|
+
Item: ra,
|
|
998
|
+
SelectAllItem: la,
|
|
999
|
+
ItemIndicator: ca
|
|
1000
|
+
}, Se = O({}), Ge = u((n) => {
|
|
988
1001
|
const { children: a, ref: t, className: e, ...s } = n, o = b(Se), r = typeof a == "function" ? a(o) : a;
|
|
989
1002
|
return /* @__PURE__ */ i(
|
|
990
1003
|
"span",
|
|
@@ -1003,13 +1016,13 @@ const jc = {
|
|
|
1003
1016
|
}
|
|
1004
1017
|
);
|
|
1005
1018
|
});
|
|
1006
|
-
|
|
1007
|
-
const
|
|
1019
|
+
Ge.displayName = "CheckedIndicator";
|
|
1020
|
+
const da = u((n) => {
|
|
1008
1021
|
const { ref: a, children: t, ...e } = n;
|
|
1009
|
-
return /* @__PURE__ */ i(
|
|
1022
|
+
return /* @__PURE__ */ i(Ge, { ref: a, ...e, children: t });
|
|
1010
1023
|
});
|
|
1011
|
-
|
|
1012
|
-
const re =
|
|
1024
|
+
da.displayName = "CommandMenuCheckboxIndicator";
|
|
1025
|
+
const re = O({}), it = O(!1), ua = O(!1), lt = O({}), ma = O({}), yo = h(
|
|
1013
1026
|
[
|
|
1014
1027
|
"ring",
|
|
1015
1028
|
"ring-(--base-6)",
|
|
@@ -1044,7 +1057,7 @@ const re = T({}), ct = T(!1), da = T(!1), it = T({}), ua = T({}), Co = v(
|
|
|
1044
1057
|
size: "md"
|
|
1045
1058
|
}
|
|
1046
1059
|
}
|
|
1047
|
-
),
|
|
1060
|
+
), zo = h([
|
|
1048
1061
|
"fixed",
|
|
1049
1062
|
"inset-0",
|
|
1050
1063
|
"duration-200",
|
|
@@ -1054,7 +1067,7 @@ const re = T({}), ct = T(!1), da = T(!1), it = T({}), ua = T({}), Co = v(
|
|
|
1054
1067
|
"data-[state='open']:fade-in-0",
|
|
1055
1068
|
"data-[state='closed']:animate-out",
|
|
1056
1069
|
"data-[state='closed']:fade-out-0"
|
|
1057
|
-
]),
|
|
1070
|
+
]), No = h(
|
|
1058
1071
|
["[scrollbar-width:thin]", "[scrollbar-color:var(--base-6)_transparent]", "overflow-auto", "h-max", "max-h-100"],
|
|
1059
1072
|
{
|
|
1060
1073
|
variants: {
|
|
@@ -1070,7 +1083,7 @@ const re = T({}), ct = T(!1), da = T(!1), it = T({}), ua = T({}), Co = v(
|
|
|
1070
1083
|
size: "md"
|
|
1071
1084
|
}
|
|
1072
1085
|
}
|
|
1073
|
-
),
|
|
1086
|
+
), wo = h(["outline-none", "w-full", "placeholder-(--base-a9)"], {
|
|
1074
1087
|
variants: {
|
|
1075
1088
|
size: {
|
|
1076
1089
|
xs: ["h-12", "px-5.25", "text-base"],
|
|
@@ -1080,7 +1093,7 @@ const re = T({}), ct = T(!1), da = T(!1), it = T({}), ua = T({}), Co = v(
|
|
|
1080
1093
|
xl: ["h-16", "px-9.25", "text-xl"]
|
|
1081
1094
|
}
|
|
1082
1095
|
}
|
|
1083
|
-
}),
|
|
1096
|
+
}), Io = h(["h-px", "bg-(--base-a6)", "w-full"], {
|
|
1084
1097
|
variants: {
|
|
1085
1098
|
spacing: {
|
|
1086
1099
|
true: [],
|
|
@@ -1101,7 +1114,7 @@ const re = T({}), ct = T(!1), da = T(!1), it = T({}), ua = T({}), Co = v(
|
|
|
1101
1114
|
{ spacing: !0, size: "lg", className: ["my-2.5"] },
|
|
1102
1115
|
{ spacing: !0, size: "xl", className: ["my-2.75"] }
|
|
1103
1116
|
]
|
|
1104
|
-
}),
|
|
1117
|
+
}), So = h(
|
|
1105
1118
|
[
|
|
1106
1119
|
"relative",
|
|
1107
1120
|
"flex",
|
|
@@ -1157,7 +1170,7 @@ const re = T({}), ct = T(!1), da = T(!1), it = T({}), ua = T({}), Co = v(
|
|
|
1157
1170
|
variant: "soft"
|
|
1158
1171
|
}
|
|
1159
1172
|
}
|
|
1160
|
-
),
|
|
1173
|
+
), ko = h(["flex", "justify-center", "text-(--base-a11)"], {
|
|
1161
1174
|
variants: {
|
|
1162
1175
|
size: {
|
|
1163
1176
|
xs: ["py-3.5"],
|
|
@@ -1167,7 +1180,7 @@ const re = T({}), ct = T(!1), da = T(!1), it = T({}), ua = T({}), Co = v(
|
|
|
1167
1180
|
xl: ["py-5.5"]
|
|
1168
1181
|
}
|
|
1169
1182
|
}
|
|
1170
|
-
}),
|
|
1183
|
+
}), Ro = h(
|
|
1171
1184
|
[
|
|
1172
1185
|
"[&_[cmdk-group-heading]]:text-(--base-a10)",
|
|
1173
1186
|
"[&_[cmdk-group-heading]]:flex",
|
|
@@ -1210,13 +1223,13 @@ const re = T({}), ct = T(!1), da = T(!1), it = T({}), ua = T({}), Co = v(
|
|
|
1210
1223
|
}
|
|
1211
1224
|
}
|
|
1212
1225
|
), 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(
|
|
1226
|
+
const { className: a, ref: t, closeOnSelect: e = !0, onSelect: s, filterValue: o, ...r } = n, { size: c, variant: l, radius: d } = b(re), { setOpen: m } = b(ma), g = v(() => {
|
|
1214
1227
|
s == null || s(), e && m(!1);
|
|
1215
1228
|
}, [e, s, m]);
|
|
1216
1229
|
return /* @__PURE__ */ i(
|
|
1217
|
-
|
|
1230
|
+
ws,
|
|
1218
1231
|
{
|
|
1219
|
-
className: x(
|
|
1232
|
+
className: x(So({ size: c, variant: l, radius: d }), a),
|
|
1220
1233
|
ref: t,
|
|
1221
1234
|
onSelect: g,
|
|
1222
1235
|
value: o,
|
|
@@ -1225,15 +1238,15 @@ const re = T({}), ct = T(!1), da = T(!1), it = T({}), ua = T({}), Co = v(
|
|
|
1225
1238
|
);
|
|
1226
1239
|
});
|
|
1227
1240
|
ce.displayName = "CommandMenuItem";
|
|
1228
|
-
const
|
|
1229
|
-
const { children: a, ref: t, checked: e, onCheckedChange: s, onSelect: o, ...r } = n, c =
|
|
1241
|
+
const ga = u((n) => {
|
|
1242
|
+
const { children: a, ref: t, checked: e, onCheckedChange: s, onSelect: o, ...r } = n, c = v(() => {
|
|
1230
1243
|
o == null || o(), s(e !== !0);
|
|
1231
1244
|
}, [e, s, o]);
|
|
1232
|
-
return /* @__PURE__ */ i(
|
|
1245
|
+
return /* @__PURE__ */ i(ua, { value: e, children: /* @__PURE__ */ i(ce, { ref: t, onSelect: c, "data-state": Ie(e), ...r, children: a }) });
|
|
1233
1246
|
});
|
|
1234
|
-
|
|
1235
|
-
const
|
|
1236
|
-
const a =
|
|
1247
|
+
ga.displayName = "CommandMenuCheckboxItem";
|
|
1248
|
+
const pa = u((n) => {
|
|
1249
|
+
const a = V(), {
|
|
1237
1250
|
children: t,
|
|
1238
1251
|
className: e,
|
|
1239
1252
|
ref: s,
|
|
@@ -1249,15 +1262,15 @@ const ga = u((n) => {
|
|
|
1249
1262
|
size: p = "md",
|
|
1250
1263
|
accentColor: f = "base",
|
|
1251
1264
|
radius: C = a.radius,
|
|
1252
|
-
...
|
|
1253
|
-
} = n,
|
|
1265
|
+
...N
|
|
1266
|
+
} = n, w = z(() => ({
|
|
1254
1267
|
variant: g,
|
|
1255
1268
|
size: p,
|
|
1256
1269
|
radius: C,
|
|
1257
1270
|
accentColor: f
|
|
1258
1271
|
}), [f, C, p, g]);
|
|
1259
|
-
return /* @__PURE__ */ i(
|
|
1260
|
-
|
|
1272
|
+
return /* @__PURE__ */ i(Rt, { children: /* @__PURE__ */ i(
|
|
1273
|
+
Os,
|
|
1261
1274
|
{
|
|
1262
1275
|
forceMount: o,
|
|
1263
1276
|
onOpenAutoFocus: r,
|
|
@@ -1268,65 +1281,65 @@ const ga = u((n) => {
|
|
|
1268
1281
|
"data-floating-content": "",
|
|
1269
1282
|
asChild: !0,
|
|
1270
1283
|
children: /* @__PURE__ */ W(
|
|
1271
|
-
|
|
1284
|
+
Is,
|
|
1272
1285
|
{
|
|
1273
|
-
className: x(
|
|
1286
|
+
className: x(yo({ size: p }), k({ radius: C, maxLarge: !0 }), e),
|
|
1274
1287
|
ref: s,
|
|
1275
1288
|
"data-accent-color": f,
|
|
1276
|
-
...
|
|
1289
|
+
...N,
|
|
1277
1290
|
children: [
|
|
1278
|
-
/* @__PURE__ */ i(
|
|
1279
|
-
/* @__PURE__ */ i(
|
|
1280
|
-
/* @__PURE__ */ i(re, { value:
|
|
1291
|
+
/* @__PURE__ */ i(Vs, { className: "sr-only", children: n.label }),
|
|
1292
|
+
/* @__PURE__ */ i(Ls, { className: "sr-only", children: "Use the command menu to trigger commands." }),
|
|
1293
|
+
/* @__PURE__ */ i(re, { value: w, children: t })
|
|
1281
1294
|
]
|
|
1282
1295
|
}
|
|
1283
1296
|
)
|
|
1284
1297
|
}
|
|
1285
1298
|
) });
|
|
1286
1299
|
});
|
|
1287
|
-
|
|
1288
|
-
const
|
|
1289
|
-
const { className: a, ref: t, ...e } = n, { size: s } = b(re);
|
|
1290
|
-
return /* @__PURE__ */ i(Is, { className: x(So({ size: s }), a), ref: t, ...e });
|
|
1291
|
-
});
|
|
1292
|
-
pa.displayName = "CommandMenuEmpty";
|
|
1293
|
-
const Ge = u((n) => {
|
|
1300
|
+
pa.displayName = "CommandMenuContent";
|
|
1301
|
+
const xa = u((n) => {
|
|
1294
1302
|
const { className: a, ref: t, ...e } = n, { size: s } = b(re);
|
|
1295
1303
|
return /* @__PURE__ */ i(Ss, { className: x(ko({ size: s }), a), ref: t, ...e });
|
|
1296
1304
|
});
|
|
1297
|
-
|
|
1298
|
-
const
|
|
1305
|
+
xa.displayName = "CommandMenuEmpty";
|
|
1306
|
+
const Ee = u((n) => {
|
|
1299
1307
|
const { className: a, ref: t, ...e } = n, { size: s } = b(re);
|
|
1300
|
-
return /* @__PURE__ */ i(ks, { className: x(
|
|
1308
|
+
return /* @__PURE__ */ i(ks, { className: x(Ro({ size: s }), a), ref: t, ...e });
|
|
1301
1309
|
});
|
|
1302
|
-
|
|
1310
|
+
Ee.displayName = "CommandMenuGroup";
|
|
1303
1311
|
const fa = u((n) => {
|
|
1304
|
-
const { className: a, ref: t, ...e } = n, { size: s } = b(re)
|
|
1312
|
+
const { className: a, ref: t, ...e } = n, { size: s } = b(re);
|
|
1313
|
+
return /* @__PURE__ */ i(Rs, { className: x(wo({ size: s }), a), ref: t, ...e });
|
|
1314
|
+
});
|
|
1315
|
+
fa.displayName = "CommandMenuInput";
|
|
1316
|
+
const ha = u((n) => {
|
|
1317
|
+
const { className: a, ref: t, ...e } = n, { size: s } = b(re), o = Ts((r) => r.filtered.count);
|
|
1305
1318
|
return /* @__PURE__ */ i(
|
|
1306
|
-
|
|
1319
|
+
Ps,
|
|
1307
1320
|
{
|
|
1308
|
-
className: x(
|
|
1321
|
+
className: x(No({ size: s }), a),
|
|
1309
1322
|
ref: t,
|
|
1310
1323
|
hidden: o === 0,
|
|
1311
1324
|
...e
|
|
1312
1325
|
}
|
|
1313
1326
|
);
|
|
1314
1327
|
});
|
|
1315
|
-
|
|
1316
|
-
const
|
|
1328
|
+
ha.displayName = "CommandMenuList";
|
|
1329
|
+
const To = F(function(a) {
|
|
1317
1330
|
const { children: t, ref: e, defaultValues: s, values: o, onValuesChange: r, ...c } = a;
|
|
1318
|
-
return /* @__PURE__ */ i(
|
|
1319
|
-
}),
|
|
1331
|
+
return /* @__PURE__ */ i(De, { values: o, onValuesChange: r, defaultValues: s, children: /* @__PURE__ */ i(Ee, { ref: e, "aria-multiselectable": !0, ...c, children: t }) });
|
|
1332
|
+
}), Po = F(function(n) {
|
|
1320
1333
|
const { children: a, ref: t, value: e, onSelect: s, closeOnSelect: o = !1, ...r } = n, {
|
|
1321
1334
|
selected: c,
|
|
1322
1335
|
selectValue: l,
|
|
1323
1336
|
registerValue: d
|
|
1324
1337
|
} = b(Z);
|
|
1325
1338
|
ue(() => d(e), [d, e]);
|
|
1326
|
-
const m =
|
|
1339
|
+
const m = v(() => {
|
|
1327
1340
|
s == null || s(), l(e);
|
|
1328
1341
|
}, [l, s, e]), g = c(e);
|
|
1329
|
-
return /* @__PURE__ */ i(
|
|
1342
|
+
return /* @__PURE__ */ i(it, { value: g, children: /* @__PURE__ */ i(
|
|
1330
1343
|
ce,
|
|
1331
1344
|
{
|
|
1332
1345
|
ref: t,
|
|
@@ -1338,41 +1351,41 @@ const Ro = F(function(a) {
|
|
|
1338
1351
|
children: a
|
|
1339
1352
|
}
|
|
1340
1353
|
) });
|
|
1341
|
-
}),
|
|
1354
|
+
}), va = u((n) => {
|
|
1342
1355
|
const { container: a, className: t, ...e } = n;
|
|
1343
|
-
return /* @__PURE__ */ i(
|
|
1356
|
+
return /* @__PURE__ */ i(Rt, { container: a, children: /* @__PURE__ */ i(As, { className: x(zo(), t), "data-floating-content": "", ...e }) });
|
|
1344
1357
|
});
|
|
1345
|
-
|
|
1346
|
-
const va = u((n) => {
|
|
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 });
|
|
1349
|
-
});
|
|
1350
|
-
va.displayName = "CommandMenuPage";
|
|
1358
|
+
va.displayName = "CommandMenuOverlay";
|
|
1351
1359
|
const ba = u((n) => {
|
|
1352
|
-
const { children: a,
|
|
1353
|
-
return /* @__PURE__ */ i(
|
|
1360
|
+
const { children: a, ref: t, page: e, ...s } = n, { page: o } = b(lt), r = z(() => e === o, [e, o]);
|
|
1361
|
+
return /* @__PURE__ */ i("div", { ref: t, "data-active": Ae(r), hidden: !r, ...s, children: r ? a : null });
|
|
1354
1362
|
});
|
|
1355
|
-
ba.displayName = "
|
|
1363
|
+
ba.displayName = "CommandMenuPage";
|
|
1356
1364
|
const Ca = u((n) => {
|
|
1357
|
-
const {
|
|
1365
|
+
const { children: a, defaultPage: t = "", page: e, onPageChange: s } = n, [o, r] = X(t, e, s);
|
|
1366
|
+
return /* @__PURE__ */ i(lt, { value: { page: o, setPage: r }, children: a });
|
|
1367
|
+
});
|
|
1368
|
+
Ca.displayName = "CommandMenuPages";
|
|
1369
|
+
const ya = u((n) => {
|
|
1370
|
+
const { ref: a, page: t, onSelect: e, closeOnSelect: s = !1, ...o } = n, { page: r, setPage: c } = b(lt), l = z(() => t === r, [t, r]), d = v(() => {
|
|
1358
1371
|
e == null || e(), c(t);
|
|
1359
1372
|
}, [e, t, c]);
|
|
1360
|
-
return /* @__PURE__ */ i(
|
|
1373
|
+
return /* @__PURE__ */ i(it, { value: l, children: /* @__PURE__ */ i(
|
|
1361
1374
|
ce,
|
|
1362
1375
|
{
|
|
1363
1376
|
ref: a,
|
|
1364
1377
|
onSelect: d,
|
|
1365
|
-
"data-state":
|
|
1378
|
+
"data-state": Ae(l),
|
|
1366
1379
|
closeOnSelect: s,
|
|
1367
1380
|
...o
|
|
1368
1381
|
}
|
|
1369
1382
|
) });
|
|
1370
1383
|
});
|
|
1371
|
-
|
|
1372
|
-
const
|
|
1384
|
+
ya.displayName = "CommandMenuPageTriggerItem";
|
|
1385
|
+
const Mo = F(function(a) {
|
|
1373
1386
|
const { children: t, ref: e, required: s, defaultValue: o, value: r, onValueChange: c, ...l } = a;
|
|
1374
|
-
return /* @__PURE__ */ i(
|
|
1375
|
-
|
|
1387
|
+
return /* @__PURE__ */ i(Ee, { ref: e, role: "radiogroup", ...l, children: s ? /* @__PURE__ */ i(
|
|
1388
|
+
ot,
|
|
1376
1389
|
{
|
|
1377
1390
|
defaultValue: o,
|
|
1378
1391
|
value: r,
|
|
@@ -1380,7 +1393,7 @@ const Po = F(function(a) {
|
|
|
1380
1393
|
children: t
|
|
1381
1394
|
}
|
|
1382
1395
|
) : /* @__PURE__ */ i(
|
|
1383
|
-
|
|
1396
|
+
rt,
|
|
1384
1397
|
{
|
|
1385
1398
|
defaultValue: o,
|
|
1386
1399
|
value: r,
|
|
@@ -1388,12 +1401,12 @@ const Po = F(function(a) {
|
|
|
1388
1401
|
children: t
|
|
1389
1402
|
}
|
|
1390
1403
|
) });
|
|
1391
|
-
}),
|
|
1392
|
-
const { children: a, ref: t, value: e, onSelect: s, ...o } = n, { selected: r, selectValue: c } = b(Ne), l =
|
|
1404
|
+
}), Oo = F(function(n) {
|
|
1405
|
+
const { children: a, ref: t, value: e, onSelect: s, ...o } = n, { selected: r, selectValue: c } = b(Ne), l = v(() => {
|
|
1393
1406
|
s == null || s(), c(e);
|
|
1394
1407
|
}, [s, c, e]), d = r(e);
|
|
1395
|
-
return /* @__PURE__ */ i(
|
|
1396
|
-
}),
|
|
1408
|
+
return /* @__PURE__ */ i(it, { value: d, children: /* @__PURE__ */ i(ce, { ref: t, onSelect: l, "data-state": oe(d), ...o, children: a }) });
|
|
1409
|
+
}), za = u((n) => {
|
|
1397
1410
|
const {
|
|
1398
1411
|
children: a,
|
|
1399
1412
|
defaultOpen: t,
|
|
@@ -1401,18 +1414,18 @@ const Po = F(function(a) {
|
|
|
1401
1414
|
// oxlint-disable-next-line typescript/unbound-method
|
|
1402
1415
|
onOpenChange: s,
|
|
1403
1416
|
modal: o
|
|
1404
|
-
} = n, [r, c] = X(t ?? !1, e, s), l =
|
|
1417
|
+
} = n, [r, c] = X(t ?? !1, e, s), l = z(() => ({
|
|
1405
1418
|
open: r,
|
|
1406
1419
|
setOpen: c
|
|
1407
1420
|
}), [r, c]);
|
|
1408
|
-
return /* @__PURE__ */ i(H.Root, { defaultOpen: t, open: r, onOpenChange: c, modal: o, children: /* @__PURE__ */ i(
|
|
1421
|
+
return /* @__PURE__ */ i(H.Root, { defaultOpen: t, open: r, onOpenChange: c, modal: o, children: /* @__PURE__ */ i(ma, { value: l, children: a }) });
|
|
1409
1422
|
});
|
|
1410
|
-
|
|
1411
|
-
const
|
|
1412
|
-
const { ref: a, onSelect: t, closeOnSelect: e = !1, ...s } = n, { allSelected: o, someSelected: r, toggleSelectAll: c } = b(Z), l =
|
|
1423
|
+
za.displayName = "CommandMenuRoot";
|
|
1424
|
+
const Vo = F(function(n) {
|
|
1425
|
+
const { ref: a, onSelect: t, closeOnSelect: e = !1, ...s } = n, { allSelected: o, someSelected: r, toggleSelectAll: c } = b(Z), l = v(() => {
|
|
1413
1426
|
t == null || t(), c();
|
|
1414
1427
|
}, [t, c]), d = o ? !0 : r ? "indeterminate" : !1;
|
|
1415
|
-
return /* @__PURE__ */ i(
|
|
1428
|
+
return /* @__PURE__ */ i(ua, { value: d, children: /* @__PURE__ */ i(
|
|
1416
1429
|
ce,
|
|
1417
1430
|
{
|
|
1418
1431
|
ref: a,
|
|
@@ -1423,7 +1436,7 @@ const Oo = F(function(n) {
|
|
|
1423
1436
|
...s
|
|
1424
1437
|
}
|
|
1425
1438
|
) });
|
|
1426
|
-
}), xe =
|
|
1439
|
+
}), xe = O(!1), _e = u((n) => {
|
|
1427
1440
|
const { ref: a, children: t, className: e, ...s } = n, o = b(xe), r = typeof t == "function" ? t(o) : t;
|
|
1428
1441
|
return /* @__PURE__ */ i(
|
|
1429
1442
|
"span",
|
|
@@ -1442,63 +1455,63 @@ const Oo = F(function(n) {
|
|
|
1442
1455
|
}
|
|
1443
1456
|
);
|
|
1444
1457
|
});
|
|
1445
|
-
|
|
1446
|
-
const
|
|
1458
|
+
_e.displayName = "SelectedIndicator";
|
|
1459
|
+
const Na = u((n) => {
|
|
1447
1460
|
const { ref: a, children: t, ...e } = n;
|
|
1448
|
-
return /* @__PURE__ */ i(
|
|
1461
|
+
return /* @__PURE__ */ i(_e, { ref: a, ...e, children: t });
|
|
1449
1462
|
});
|
|
1450
|
-
|
|
1451
|
-
const
|
|
1463
|
+
Na.displayName = "CommandMenuSelectedIndicator";
|
|
1464
|
+
const wa = u((n) => {
|
|
1452
1465
|
const { className: a, ref: t, spacing: e = !1, ...s } = n, { size: o } = b(re);
|
|
1453
|
-
return /* @__PURE__ */ i(
|
|
1466
|
+
return /* @__PURE__ */ i(Ms, { ref: t, className: x(Io({ size: o, spacing: e }), a), ...s });
|
|
1454
1467
|
});
|
|
1455
|
-
|
|
1456
|
-
const
|
|
1457
|
-
|
|
1458
|
-
const
|
|
1459
|
-
Root:
|
|
1460
|
-
Overlay:
|
|
1461
|
-
Content:
|
|
1462
|
-
Trigger:
|
|
1463
|
-
Input:
|
|
1464
|
-
List:
|
|
1465
|
-
Group:
|
|
1468
|
+
wa.displayName = "CommandMenuSeparator";
|
|
1469
|
+
const Ia = u((n) => /* @__PURE__ */ i(Ds, { ...n }));
|
|
1470
|
+
Ia.displayName = "CommandMenuTrigger";
|
|
1471
|
+
const qc = {
|
|
1472
|
+
Root: za,
|
|
1473
|
+
Overlay: va,
|
|
1474
|
+
Content: pa,
|
|
1475
|
+
Trigger: Ia,
|
|
1476
|
+
Input: fa,
|
|
1477
|
+
List: ha,
|
|
1478
|
+
Group: Ee,
|
|
1466
1479
|
Item: ce,
|
|
1467
|
-
Separator:
|
|
1468
|
-
Empty:
|
|
1480
|
+
Separator: wa,
|
|
1481
|
+
Empty: xa,
|
|
1469
1482
|
// Multi select
|
|
1470
|
-
MultiSelectGroup:
|
|
1471
|
-
MultiSelectItem:
|
|
1472
|
-
SelectAllItem:
|
|
1473
|
-
SelectedIndicator:
|
|
1483
|
+
MultiSelectGroup: To,
|
|
1484
|
+
MultiSelectItem: Po,
|
|
1485
|
+
SelectAllItem: Vo,
|
|
1486
|
+
SelectedIndicator: Na,
|
|
1474
1487
|
// Radio / single select
|
|
1475
|
-
RadioGroup:
|
|
1476
|
-
RadioItem:
|
|
1488
|
+
RadioGroup: Mo,
|
|
1489
|
+
RadioItem: Oo,
|
|
1477
1490
|
// Checkbox
|
|
1478
|
-
CheckboxItem:
|
|
1479
|
-
CheckboxIndicator:
|
|
1491
|
+
CheckboxItem: ga,
|
|
1492
|
+
CheckboxIndicator: da,
|
|
1480
1493
|
// Pages
|
|
1481
|
-
Pages:
|
|
1482
|
-
Page:
|
|
1483
|
-
PageTriggerItem:
|
|
1484
|
-
},
|
|
1494
|
+
Pages: Ca,
|
|
1495
|
+
Page: ba,
|
|
1496
|
+
PageTriggerItem: ya
|
|
1497
|
+
}, U = u((n) => {
|
|
1485
1498
|
const { ref: a, icon: t, className: e, size: s = "1em", ...o } = n;
|
|
1486
1499
|
return /* @__PURE__ */ i(t, { ref: a, className: x("shrink-0", e), size: s, ...o });
|
|
1487
1500
|
});
|
|
1488
|
-
|
|
1489
|
-
const
|
|
1501
|
+
U.displayName = "LuIcon";
|
|
1502
|
+
const Lo = (n) => {
|
|
1490
1503
|
const { orientation: a, ...t } = n;
|
|
1491
1504
|
switch (a) {
|
|
1492
1505
|
case "up":
|
|
1493
|
-
return /* @__PURE__ */ i(
|
|
1506
|
+
return /* @__PURE__ */ i(U, { icon: Hs, ...t });
|
|
1494
1507
|
case "down":
|
|
1495
|
-
return /* @__PURE__ */ i(
|
|
1508
|
+
return /* @__PURE__ */ i(U, { icon: Fs, ...t });
|
|
1496
1509
|
case "left":
|
|
1497
|
-
return /* @__PURE__ */ i(
|
|
1510
|
+
return /* @__PURE__ */ i(U, { icon: _s, ...t });
|
|
1498
1511
|
default:
|
|
1499
|
-
return /* @__PURE__ */ i(
|
|
1512
|
+
return /* @__PURE__ */ i(U, { icon: Es, ...t });
|
|
1500
1513
|
}
|
|
1501
|
-
},
|
|
1514
|
+
}, Ao = h(["relative", "size-max"], {
|
|
1502
1515
|
variants: {
|
|
1503
1516
|
size: {
|
|
1504
1517
|
xs: ["text-xs"],
|
|
@@ -1508,7 +1521,7 @@ const Vo = (n) => {
|
|
|
1508
1521
|
xl: ["text-xl"]
|
|
1509
1522
|
}
|
|
1510
1523
|
}
|
|
1511
|
-
}),
|
|
1524
|
+
}), Do = h(
|
|
1512
1525
|
[
|
|
1513
1526
|
"relative",
|
|
1514
1527
|
"transition-[background,text]",
|
|
@@ -1560,7 +1573,7 @@ const Vo = (n) => {
|
|
|
1560
1573
|
}
|
|
1561
1574
|
}
|
|
1562
1575
|
}
|
|
1563
|
-
),
|
|
1576
|
+
), It = h(
|
|
1564
1577
|
[
|
|
1565
1578
|
"focus-visible:outline-2",
|
|
1566
1579
|
"focus-visible:-outline-offset-1",
|
|
@@ -1585,7 +1598,7 @@ const Vo = (n) => {
|
|
|
1585
1598
|
}
|
|
1586
1599
|
}
|
|
1587
1600
|
}
|
|
1588
|
-
),
|
|
1601
|
+
), Go = h(["font-medium", "text-(--base-a11)"], {
|
|
1589
1602
|
variants: {
|
|
1590
1603
|
size: {
|
|
1591
1604
|
xs: ["size-6"],
|
|
@@ -1595,7 +1608,7 @@ const Vo = (n) => {
|
|
|
1595
1608
|
xl: ["size-10"]
|
|
1596
1609
|
}
|
|
1597
1610
|
}
|
|
1598
|
-
}),
|
|
1611
|
+
}), Eo = h(
|
|
1599
1612
|
[
|
|
1600
1613
|
"*:after:absolute",
|
|
1601
1614
|
"*:after:bg-(--base-12)",
|
|
@@ -1620,7 +1633,7 @@ const Vo = (n) => {
|
|
|
1620
1633
|
}
|
|
1621
1634
|
}
|
|
1622
1635
|
}
|
|
1623
|
-
),
|
|
1636
|
+
), _o = h(["font-medium", "w-full", "flex", "gap-4", "items-center"], {
|
|
1624
1637
|
variants: {
|
|
1625
1638
|
size: {
|
|
1626
1639
|
xs: ["h-6"],
|
|
@@ -1630,7 +1643,7 @@ const Vo = (n) => {
|
|
|
1630
1643
|
xl: ["h-10"]
|
|
1631
1644
|
}
|
|
1632
1645
|
}
|
|
1633
|
-
}),
|
|
1646
|
+
}), Fo = h(
|
|
1634
1647
|
[
|
|
1635
1648
|
"focus-visible:outline-2",
|
|
1636
1649
|
"focus-visible:-outline-offset-1",
|
|
@@ -1655,7 +1668,7 @@ const Vo = (n) => {
|
|
|
1655
1668
|
}
|
|
1656
1669
|
}
|
|
1657
1670
|
}
|
|
1658
|
-
),
|
|
1671
|
+
), Ho = h(["inline-flex", "items-center"], {
|
|
1659
1672
|
variants: {
|
|
1660
1673
|
size: {
|
|
1661
1674
|
xs: ["h-6", "text-xs", "gap-0.5"],
|
|
@@ -1665,8 +1678,8 @@ const Vo = (n) => {
|
|
|
1665
1678
|
xl: ["h-10", "text-xl", "gap-1.5"]
|
|
1666
1679
|
}
|
|
1667
1680
|
}
|
|
1668
|
-
}),
|
|
1669
|
-
const a =
|
|
1681
|
+
}), St = { Chevron: Lo }, Bo = new Date(1969, 0, 1), $o = new Date(2042, 11, 1), jo = u((n) => {
|
|
1682
|
+
const a = V(), {
|
|
1670
1683
|
components: t,
|
|
1671
1684
|
classNames: e,
|
|
1672
1685
|
accentColor: s = a.accentColor,
|
|
@@ -1674,31 +1687,31 @@ const Vo = (n) => {
|
|
|
1674
1687
|
variant: r = "soft",
|
|
1675
1688
|
radius: c = a.radius,
|
|
1676
1689
|
showOutsideDays: l = !0,
|
|
1677
|
-
startMonth: d =
|
|
1678
|
-
endMonth: m =
|
|
1690
|
+
startMonth: d = Bo,
|
|
1691
|
+
endMonth: m = $o,
|
|
1679
1692
|
...g
|
|
1680
|
-
} = n, p =
|
|
1693
|
+
} = n, p = z(() => ({
|
|
1681
1694
|
...e,
|
|
1682
|
-
root: x(e == null ? void 0 : e.root,
|
|
1695
|
+
root: x(e == null ? void 0 : e.root, Ao({ size: o })),
|
|
1683
1696
|
nav: x(e == null ? void 0 : e.nav, ["absolute", "top-0", "w-full", "flex", "justify-end"]),
|
|
1684
1697
|
month: x(e == null ? void 0 : e.month, ["flex", "flex-col", "gap-1"]),
|
|
1685
|
-
month_caption: x(e == null ? void 0 : e.month_caption,
|
|
1698
|
+
month_caption: x(e == null ? void 0 : e.month_caption, _o({ size: o })),
|
|
1686
1699
|
button_next: x(
|
|
1687
1700
|
e == null ? void 0 : e.button_next,
|
|
1688
|
-
|
|
1701
|
+
It({ size: o }),
|
|
1689
1702
|
k({ radius: c, maxLarge: !1 })
|
|
1690
1703
|
),
|
|
1691
1704
|
button_previous: x(
|
|
1692
1705
|
e == null ? void 0 : e.button_previous,
|
|
1693
|
-
|
|
1706
|
+
It({ size: o }),
|
|
1694
1707
|
k({ radius: c, maxLarge: !1 })
|
|
1695
1708
|
),
|
|
1696
|
-
weekday: x(e == null ? void 0 : e.weekday,
|
|
1697
|
-
today: x(e == null ? void 0 : e.today,
|
|
1709
|
+
weekday: x(e == null ? void 0 : e.weekday, Go({ size: o })),
|
|
1710
|
+
today: x(e == null ? void 0 : e.today, Eo({ size: o, variant: r })),
|
|
1698
1711
|
day: x(e == null ? void 0 : e.day, ["group/day"]),
|
|
1699
1712
|
day_button: x(
|
|
1700
1713
|
e == null ? void 0 : e.day_button,
|
|
1701
|
-
|
|
1714
|
+
Do({ size: o, variant: r }),
|
|
1702
1715
|
k({ radius: c, maxLarge: !1 })
|
|
1703
1716
|
),
|
|
1704
1717
|
range_start: x(e == null ? void 0 : e.range_start, "rdp-range-start"),
|
|
@@ -1708,18 +1721,18 @@ const Vo = (n) => {
|
|
|
1708
1721
|
years_dropdown: "opacity-0 absolute z-[1]",
|
|
1709
1722
|
dropdown_root: x(
|
|
1710
1723
|
e == null ? void 0 : e.dropdown_root,
|
|
1711
|
-
|
|
1724
|
+
Fo({ size: o }),
|
|
1712
1725
|
k({ radius: c, maxLarge: !1 })
|
|
1713
1726
|
),
|
|
1714
1727
|
dropdowns: "flex items-center",
|
|
1715
|
-
caption_label: x(e == null ? void 0 : e.caption_label,
|
|
1728
|
+
caption_label: x(e == null ? void 0 : e.caption_label, Ho({ size: o })),
|
|
1716
1729
|
chevron: "size-[1em]"
|
|
1717
|
-
}), [e, c, o, r]), f =
|
|
1718
|
-
() => t ? { ...
|
|
1730
|
+
}), [e, c, o, r]), f = z(
|
|
1731
|
+
() => t ? { ...St, ...t } : St,
|
|
1719
1732
|
[t]
|
|
1720
1733
|
);
|
|
1721
1734
|
return /* @__PURE__ */ i(
|
|
1722
|
-
|
|
1735
|
+
Gs,
|
|
1723
1736
|
{
|
|
1724
1737
|
"data-accent-color": s,
|
|
1725
1738
|
showOutsideDays: l,
|
|
@@ -1733,18 +1746,18 @@ const Vo = (n) => {
|
|
|
1733
1746
|
}
|
|
1734
1747
|
);
|
|
1735
1748
|
});
|
|
1736
|
-
|
|
1737
|
-
const
|
|
1738
|
-
const n = j(
|
|
1749
|
+
jo.displayName = "DayPicker";
|
|
1750
|
+
const Sa = O({}), qo = () => {
|
|
1751
|
+
const n = j(Sa);
|
|
1739
1752
|
if (!n)
|
|
1740
1753
|
throw new Error("useDialog must be used within a DialogRoot");
|
|
1741
1754
|
return n;
|
|
1742
|
-
},
|
|
1743
|
-
const { radius: a } =
|
|
1755
|
+
}, ka = u((n) => {
|
|
1756
|
+
const { radius: a } = V(), t = qo(), { ref: e, children: s, container: o, className: r, size: c, ...l } = n, d = z(() => typeof s == "function" ? s(t) : s, [s, t]);
|
|
1744
1757
|
return /* @__PURE__ */ i(H.Portal, { container: o, children: /* @__PURE__ */ i(
|
|
1745
1758
|
H.Content,
|
|
1746
1759
|
{
|
|
1747
|
-
className: x(
|
|
1760
|
+
className: x(Xt({ size: c }), k({ radius: a, maxLarge: !0 }), r),
|
|
1748
1761
|
ref: e,
|
|
1749
1762
|
"data-floating-content": "",
|
|
1750
1763
|
...l,
|
|
@@ -1752,22 +1765,22 @@ const Ia = T({}), jo = () => {
|
|
|
1752
1765
|
}
|
|
1753
1766
|
) });
|
|
1754
1767
|
});
|
|
1755
|
-
|
|
1756
|
-
const
|
|
1768
|
+
ka.displayName = "DialogContent";
|
|
1769
|
+
const Ra = u((n) => {
|
|
1757
1770
|
const { ref: a, children: t, className: e, container: s, ...o } = n;
|
|
1758
1771
|
return /* @__PURE__ */ i(H.Portal, { container: s, children: /* @__PURE__ */ i(
|
|
1759
1772
|
H.Overlay,
|
|
1760
1773
|
{
|
|
1761
1774
|
ref: a,
|
|
1762
|
-
className: x(
|
|
1775
|
+
className: x(Kt({}), e),
|
|
1763
1776
|
"data-floating-content": "",
|
|
1764
1777
|
...o,
|
|
1765
1778
|
children: t
|
|
1766
1779
|
}
|
|
1767
1780
|
) });
|
|
1768
1781
|
});
|
|
1769
|
-
|
|
1770
|
-
const
|
|
1782
|
+
Ra.displayName = "DialogOverlay";
|
|
1783
|
+
const Ta = u((n) => {
|
|
1771
1784
|
const {
|
|
1772
1785
|
children: a,
|
|
1773
1786
|
onOpen: t,
|
|
@@ -1777,7 +1790,7 @@ const Ra = u((n) => {
|
|
|
1777
1790
|
open: r,
|
|
1778
1791
|
// oxlint-disable-next-line typescript/unbound-method
|
|
1779
1792
|
onOpenChange: c
|
|
1780
|
-
} = n, [l, d] = E(s ?? !1), m = r ?? l, g =
|
|
1793
|
+
} = n, [l, d] = E(s ?? !1), m = r ?? l, g = v(
|
|
1781
1794
|
(f) => {
|
|
1782
1795
|
if (c) return c(f);
|
|
1783
1796
|
if (f && t)
|
|
@@ -1792,7 +1805,7 @@ const Ra = u((n) => {
|
|
|
1792
1805
|
d(f);
|
|
1793
1806
|
},
|
|
1794
1807
|
[c, t, e, o]
|
|
1795
|
-
), p =
|
|
1808
|
+
), p = v(
|
|
1796
1809
|
(f) => {
|
|
1797
1810
|
if (f != null && f.force)
|
|
1798
1811
|
return d(!1);
|
|
@@ -1800,13 +1813,13 @@ const Ra = u((n) => {
|
|
|
1800
1813
|
},
|
|
1801
1814
|
[g]
|
|
1802
1815
|
);
|
|
1803
|
-
return /* @__PURE__ */ i(H.Root, { open: m, onOpenChange: g, children: /* @__PURE__ */ i(
|
|
1816
|
+
return /* @__PURE__ */ i(H.Root, { open: m, onOpenChange: g, children: /* @__PURE__ */ i(Sa.Provider, { value: p, children: a }) });
|
|
1804
1817
|
});
|
|
1805
|
-
|
|
1806
|
-
const
|
|
1807
|
-
Root:
|
|
1808
|
-
Content:
|
|
1809
|
-
Overlay:
|
|
1818
|
+
Ta.displayName = "DialogRoot";
|
|
1819
|
+
const Uc = {
|
|
1820
|
+
Root: Ta,
|
|
1821
|
+
Content: ka,
|
|
1822
|
+
Overlay: Ra,
|
|
1810
1823
|
Title: H.Title,
|
|
1811
1824
|
Description: H.Description,
|
|
1812
1825
|
Trigger: H.Trigger,
|
|
@@ -1818,7 +1831,7 @@ const qc = {
|
|
|
1818
1831
|
4: "h4",
|
|
1819
1832
|
5: "h5",
|
|
1820
1833
|
6: "h6"
|
|
1821
|
-
},
|
|
1834
|
+
}, Wo = h([], {
|
|
1822
1835
|
variants: {
|
|
1823
1836
|
size: {
|
|
1824
1837
|
xs: ["text-xs"],
|
|
@@ -1847,7 +1860,7 @@ const qc = {
|
|
|
1847
1860
|
right: ["text-right"]
|
|
1848
1861
|
}
|
|
1849
1862
|
}
|
|
1850
|
-
}),
|
|
1863
|
+
}), Ko = u((n) => {
|
|
1851
1864
|
const {
|
|
1852
1865
|
ref: a,
|
|
1853
1866
|
children: t,
|
|
@@ -1865,7 +1878,7 @@ const qc = {
|
|
|
1865
1878
|
{
|
|
1866
1879
|
ref: a,
|
|
1867
1880
|
className: x(
|
|
1868
|
-
|
|
1881
|
+
Wo({ size: o, weight: r, align: c }),
|
|
1869
1882
|
{
|
|
1870
1883
|
"text-(--accent-a11)": !!d,
|
|
1871
1884
|
"text-(--accent-a12)": l
|
|
@@ -1878,13 +1891,13 @@ const qc = {
|
|
|
1878
1891
|
}
|
|
1879
1892
|
);
|
|
1880
1893
|
});
|
|
1881
|
-
|
|
1882
|
-
const
|
|
1894
|
+
Ko.displayName = "Heading";
|
|
1895
|
+
const Pa = u((n) => {
|
|
1883
1896
|
const { ref: a, children: t, className: e, ...s } = n;
|
|
1884
1897
|
return /* @__PURE__ */ i(ye.Arrow, { className: x("fill-(--base-6)", e), ref: a, ...s, children: t });
|
|
1885
1898
|
});
|
|
1886
|
-
|
|
1887
|
-
const
|
|
1899
|
+
Pa.displayName = "HoverCardArrow";
|
|
1900
|
+
const Xo = h(["bg-(--color-background)", "dark:bg-(--base-2)", "ring-1", "ring-(--base-6)"], {
|
|
1888
1901
|
variants: {
|
|
1889
1902
|
size: {
|
|
1890
1903
|
xs: ["p-2"],
|
|
@@ -1897,8 +1910,8 @@ const Ko = v(["bg-(--color-background)", "dark:bg-(--base-2)", "ring-1", "ring-(
|
|
|
1897
1910
|
defaultVariants: {
|
|
1898
1911
|
size: "md"
|
|
1899
1912
|
}
|
|
1900
|
-
}),
|
|
1901
|
-
const a =
|
|
1913
|
+
}), Ma = u((n) => {
|
|
1914
|
+
const a = V(), {
|
|
1902
1915
|
ref: t,
|
|
1903
1916
|
children: e,
|
|
1904
1917
|
className: s,
|
|
@@ -1914,8 +1927,9 @@ const Ko = v(["bg-(--color-background)", "dark:bg-(--base-2)", "ring-1", "ring-(
|
|
|
1914
1927
|
ye.Content,
|
|
1915
1928
|
{
|
|
1916
1929
|
className: x(
|
|
1917
|
-
|
|
1918
|
-
Ve({ side: r
|
|
1930
|
+
Xo({ size: o }),
|
|
1931
|
+
Ve({ side: r }),
|
|
1932
|
+
Le({ size: "md" }),
|
|
1919
1933
|
k({ radius: c, maxLarge: !0 }),
|
|
1920
1934
|
s
|
|
1921
1935
|
),
|
|
@@ -1929,26 +1943,13 @@ const Ko = v(["bg-(--color-background)", "dark:bg-(--base-2)", "ring-1", "ring-(
|
|
|
1929
1943
|
}
|
|
1930
1944
|
) });
|
|
1931
1945
|
});
|
|
1932
|
-
|
|
1946
|
+
Ma.displayName = "HoverCardContent";
|
|
1933
1947
|
const Wc = {
|
|
1934
|
-
Arrow:
|
|
1935
|
-
Content:
|
|
1948
|
+
Arrow: Pa,
|
|
1949
|
+
Content: Ma,
|
|
1936
1950
|
Root: ye.Root,
|
|
1937
1951
|
Trigger: ye.Trigger
|
|
1938
|
-
},
|
|
1939
|
-
const [t, e] = E(!1), s = h(() => {
|
|
1940
|
-
e(!0);
|
|
1941
|
-
}, []), o = h(() => {
|
|
1942
|
-
e(!1);
|
|
1943
|
-
}, []);
|
|
1944
|
-
return n({
|
|
1945
|
-
isHovered: a !== void 0 ? a : t,
|
|
1946
|
-
onPointerEnter: s,
|
|
1947
|
-
onPointerLeave: o
|
|
1948
|
-
});
|
|
1949
|
-
});
|
|
1950
|
-
Xo.displayName = "HoverUtility";
|
|
1951
|
-
const lt = T({}), Yo = v(
|
|
1952
|
+
}, dt = O({}), Yo = h(
|
|
1952
1953
|
[
|
|
1953
1954
|
"flex",
|
|
1954
1955
|
"items-stretch",
|
|
@@ -1980,7 +1981,7 @@ const lt = T({}), Yo = v(
|
|
|
1980
1981
|
variant: "surface"
|
|
1981
1982
|
}
|
|
1982
1983
|
}
|
|
1983
|
-
), Qo =
|
|
1984
|
+
), Qo = h(["peer-[.slot]/slot:px-0"], {
|
|
1984
1985
|
variants: {
|
|
1985
1986
|
variant: {
|
|
1986
1987
|
surface: ["placeholder-(--accent-12)", "placeholder:opacity-60", "selection:bg-(--accent-a5)"],
|
|
@@ -2000,7 +2001,7 @@ const lt = T({}), Yo = v(
|
|
|
2000
2001
|
size: "md",
|
|
2001
2002
|
variant: "surface"
|
|
2002
2003
|
}
|
|
2003
|
-
}), Jo =
|
|
2004
|
+
}), Jo = h(["peer/slot", "slot"], {
|
|
2004
2005
|
variants: {
|
|
2005
2006
|
size: {
|
|
2006
2007
|
xs: ["px-1.5"],
|
|
@@ -2019,8 +2020,8 @@ const lt = T({}), Yo = v(
|
|
|
2019
2020
|
defaultVariants: {
|
|
2020
2021
|
size: "md"
|
|
2021
2022
|
}
|
|
2022
|
-
}),
|
|
2023
|
-
const { ref: a, className: t, ...e } = n, { size: s, variant: o } = j(
|
|
2023
|
+
}), Oa = u((n) => {
|
|
2024
|
+
const { ref: a, className: t, ...e } = n, { size: s, variant: o } = j(dt);
|
|
2024
2025
|
return /* @__PURE__ */ i(
|
|
2025
2026
|
"input",
|
|
2026
2027
|
{
|
|
@@ -2030,9 +2031,9 @@ const lt = T({}), Yo = v(
|
|
|
2030
2031
|
}
|
|
2031
2032
|
);
|
|
2032
2033
|
});
|
|
2033
|
-
|
|
2034
|
-
const
|
|
2035
|
-
const a =
|
|
2034
|
+
Oa.displayName = "InputField";
|
|
2035
|
+
const Va = u((n) => {
|
|
2036
|
+
const a = V(), {
|
|
2036
2037
|
ref: t,
|
|
2037
2038
|
children: e,
|
|
2038
2039
|
className: s,
|
|
@@ -2041,8 +2042,8 @@ const Oa = u((n) => {
|
|
|
2041
2042
|
accentColor: c = a.accentColor,
|
|
2042
2043
|
radius: l = a.radius,
|
|
2043
2044
|
...d
|
|
2044
|
-
} = n, m =
|
|
2045
|
-
return /* @__PURE__ */ i(
|
|
2045
|
+
} = n, m = z(() => ({ size: r, variant: o }), [r, o]);
|
|
2046
|
+
return /* @__PURE__ */ i(dt.Provider, { value: m, children: /* @__PURE__ */ i(
|
|
2046
2047
|
"div",
|
|
2047
2048
|
{
|
|
2048
2049
|
className: x(Yo({ variant: o, size: r }), k({ radius: l, maxLarge: !1 }), s),
|
|
@@ -2053,32 +2054,32 @@ const Oa = u((n) => {
|
|
|
2053
2054
|
}
|
|
2054
2055
|
) });
|
|
2055
2056
|
});
|
|
2056
|
-
|
|
2057
|
-
const
|
|
2058
|
-
const { ref: a, children: t, className: e, ...s } = n, { size: o, variant: r } = j(
|
|
2057
|
+
Va.displayName = "InputRoot";
|
|
2058
|
+
const La = u((n) => {
|
|
2059
|
+
const { ref: a, children: t, className: e, ...s } = n, { size: o, variant: r } = j(dt);
|
|
2059
2060
|
return /* @__PURE__ */ i("div", { className: x(Jo({ size: o, variant: r }), "flex items-center", e), ref: a, ...s, children: t });
|
|
2060
2061
|
});
|
|
2061
|
-
|
|
2062
|
+
La.displayName = "InputSlot";
|
|
2062
2063
|
const Kc = {
|
|
2063
|
-
Field:
|
|
2064
|
-
Root:
|
|
2065
|
-
Slot:
|
|
2066
|
-
},
|
|
2064
|
+
Field: Oa,
|
|
2065
|
+
Root: Va,
|
|
2066
|
+
Slot: La
|
|
2067
|
+
}, ut = Xs({}), ke = () => Ys(ut);
|
|
2067
2068
|
function Xc(n) {
|
|
2068
|
-
return
|
|
2069
|
+
return Qs(ut, n);
|
|
2069
2070
|
}
|
|
2070
|
-
const
|
|
2071
|
+
const Aa = u((n) => {
|
|
2071
2072
|
const { ref: a, children: t, ...e } = n, { hideLayout: s = !1 } = ke();
|
|
2072
2073
|
return !s && /* @__PURE__ */ i("div", { ref: a, ...e, children: t });
|
|
2073
2074
|
});
|
|
2074
|
-
|
|
2075
|
-
const
|
|
2076
|
-
const { children: a, small: t = !1, hideLayout: e = !1 } = n, [s, o] = E({}), r =
|
|
2075
|
+
Aa.displayName = "LayoutContainer";
|
|
2076
|
+
const Da = u((n) => {
|
|
2077
|
+
const { children: a, small: t = !1, hideLayout: e = !1 } = n, [s, o] = E({}), r = v(
|
|
2077
2078
|
(d) => s[d] ?? !1,
|
|
2078
2079
|
[s]
|
|
2079
|
-
), c =
|
|
2080
|
+
), c = v((d, m) => {
|
|
2080
2081
|
o((g) => ({ ...g, [d]: m }));
|
|
2081
|
-
}, []), l =
|
|
2082
|
+
}, []), l = z(
|
|
2082
2083
|
() => ({
|
|
2083
2084
|
small: t,
|
|
2084
2085
|
hideLayout: e,
|
|
@@ -2087,11 +2088,11 @@ const Aa = u((n) => {
|
|
|
2087
2088
|
}),
|
|
2088
2089
|
[e, r, c, t]
|
|
2089
2090
|
);
|
|
2090
|
-
return /* @__PURE__ */ i(
|
|
2091
|
+
return /* @__PURE__ */ i(ut.Provider, { value: l, children: a });
|
|
2091
2092
|
});
|
|
2092
|
-
|
|
2093
|
-
const fe =
|
|
2094
|
-
const { ref: a, onClick: t, disabled: e, ...s } = n, { setOpen: o } = b(fe), r =
|
|
2093
|
+
Da.displayName = "LayoutRoot";
|
|
2094
|
+
const fe = O({}), Ga = O({}), mt = u((n) => {
|
|
2095
|
+
const { ref: a, onClick: t, disabled: e, ...s } = n, { setOpen: o } = b(fe), r = v(
|
|
2095
2096
|
(c) => {
|
|
2096
2097
|
t == null || t(c), !c.defaultPrevented && o(!1);
|
|
2097
2098
|
},
|
|
@@ -2099,10 +2100,10 @@ const fe = T({}), Da = T({}), ut = u((n) => {
|
|
|
2099
2100
|
);
|
|
2100
2101
|
return /* @__PURE__ */ i(me, { ref: a, onClick: r, "data-disabled": e ?? !1, ...s });
|
|
2101
2102
|
});
|
|
2102
|
-
|
|
2103
|
+
mt.displayName = "SlideOutClose";
|
|
2103
2104
|
const Zo = 200;
|
|
2104
2105
|
function er(n, a = globalThis == null ? void 0 : globalThis.document.body) {
|
|
2105
|
-
const t = nr(n), e =
|
|
2106
|
+
const t = nr(n), e = q(!1), s = q(() => {
|
|
2106
2107
|
});
|
|
2107
2108
|
return B(() => {
|
|
2108
2109
|
const o = (c) => {
|
|
@@ -2128,17 +2129,17 @@ function er(n, a = globalThis == null ? void 0 : globalThis.document.body) {
|
|
|
2128
2129
|
};
|
|
2129
2130
|
}
|
|
2130
2131
|
function tr(n, a) {
|
|
2131
|
-
n &&
|
|
2132
|
+
n && Zs.flushSync(() => n.dispatchEvent(a));
|
|
2132
2133
|
}
|
|
2133
2134
|
function ar(n, a, t, { discrete: e }) {
|
|
2134
2135
|
const s = t.originalEvent.target, o = new CustomEvent(n, { bubbles: !1, cancelable: !0, detail: t });
|
|
2135
2136
|
a && s.addEventListener(n, a, { once: !0 }), tr(s, o);
|
|
2136
2137
|
}
|
|
2137
2138
|
function nr(n) {
|
|
2138
|
-
const a =
|
|
2139
|
+
const a = q(n);
|
|
2139
2140
|
return B(() => {
|
|
2140
2141
|
a.current = n;
|
|
2141
|
-
}),
|
|
2142
|
+
}), z(() => (...t) => {
|
|
2142
2143
|
var e;
|
|
2143
2144
|
return (e = a.current) == null ? void 0 : e.call(a, ...t);
|
|
2144
2145
|
}, []);
|
|
@@ -2172,86 +2173,86 @@ const sr = {
|
|
|
2172
2173
|
exitActive: "ease-linear duration-200 transition-[margin-bottom] -mb-(--slide-out-size)",
|
|
2173
2174
|
exitDone: "-mb-(--slide-out-size)"
|
|
2174
2175
|
}
|
|
2175
|
-
},
|
|
2176
|
-
const { ref: a, children: t, style: e, side: s, type: o, resizeable: r = !1, initialSize: c, minSize: l, maxSize: d, ...m } = n, g =
|
|
2177
|
-
|
|
2178
|
-
}, [
|
|
2176
|
+
}, gt = u((n) => {
|
|
2177
|
+
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: N, hide: w } = b(fe), [y, R] = E(null), L = v(() => {
|
|
2178
|
+
N && f(!1);
|
|
2179
|
+
}, [N, f]), { onPointerDownCapture: P } = er(
|
|
2179
2180
|
L,
|
|
2180
2181
|
C ?? void 0
|
|
2181
2182
|
);
|
|
2182
2183
|
ue(() => {
|
|
2183
2184
|
if (!p || !g.current) return;
|
|
2184
|
-
const { offsetWidth:
|
|
2185
|
+
const { offsetWidth: S, offsetHeight: _ } = g.current;
|
|
2185
2186
|
switch (s) {
|
|
2186
2187
|
case "left":
|
|
2187
2188
|
case "right":
|
|
2188
|
-
|
|
2189
|
+
R(S);
|
|
2189
2190
|
break;
|
|
2190
2191
|
case "top":
|
|
2191
2192
|
case "bottom":
|
|
2192
|
-
|
|
2193
|
+
R(_);
|
|
2193
2194
|
}
|
|
2194
2195
|
}, [p, s]);
|
|
2195
|
-
const
|
|
2196
|
+
const D = z(() => {
|
|
2196
2197
|
switch (s) {
|
|
2197
2198
|
case "left":
|
|
2198
2199
|
return {
|
|
2199
2200
|
...e,
|
|
2200
2201
|
left: 0,
|
|
2201
|
-
width:
|
|
2202
|
+
width: y ?? c,
|
|
2202
2203
|
maxWidth: d,
|
|
2203
2204
|
minWidth: l,
|
|
2204
2205
|
position: o === "inline" ? "relative" : "absolute",
|
|
2205
|
-
"--slide-out-size": `${
|
|
2206
|
+
"--slide-out-size": `${y}px`
|
|
2206
2207
|
};
|
|
2207
2208
|
case "right":
|
|
2208
2209
|
return {
|
|
2209
2210
|
...e,
|
|
2210
2211
|
right: 0,
|
|
2211
|
-
width:
|
|
2212
|
+
width: y ?? c,
|
|
2212
2213
|
maxWidth: d,
|
|
2213
2214
|
minWidth: l,
|
|
2214
2215
|
position: o === "inline" ? "relative" : "absolute",
|
|
2215
|
-
"--slide-out-size": `${
|
|
2216
|
+
"--slide-out-size": `${y}px`
|
|
2216
2217
|
};
|
|
2217
2218
|
case "top":
|
|
2218
2219
|
return {
|
|
2219
2220
|
...e,
|
|
2220
2221
|
top: 0,
|
|
2221
|
-
height:
|
|
2222
|
+
height: y ?? c,
|
|
2222
2223
|
maxHeight: d,
|
|
2223
2224
|
minHeight: l,
|
|
2224
2225
|
position: o === "inline" ? "relative" : "absolute",
|
|
2225
|
-
"--slide-out-size": `${
|
|
2226
|
+
"--slide-out-size": `${y}px`
|
|
2226
2227
|
};
|
|
2227
2228
|
case "bottom":
|
|
2228
2229
|
return {
|
|
2229
2230
|
...e,
|
|
2230
2231
|
bottom: 0,
|
|
2231
|
-
height:
|
|
2232
|
+
height: y ?? c,
|
|
2232
2233
|
maxHeight: d,
|
|
2233
2234
|
minHeight: l,
|
|
2234
2235
|
position: o === "inline" ? "relative" : "absolute",
|
|
2235
|
-
"--slide-out-size": `${
|
|
2236
|
+
"--slide-out-size": `${y}px`
|
|
2236
2237
|
};
|
|
2237
2238
|
}
|
|
2238
|
-
}, [
|
|
2239
|
+
}, [y, c, d, l, s, e, o]), T = sr[s], A = z(
|
|
2239
2240
|
() => ({
|
|
2240
2241
|
side: s,
|
|
2241
2242
|
type: o,
|
|
2242
2243
|
resizeable: r,
|
|
2243
|
-
computedSize:
|
|
2244
|
-
setComputedSize:
|
|
2244
|
+
computedSize: y,
|
|
2245
|
+
setComputedSize: R
|
|
2245
2246
|
}),
|
|
2246
|
-
[
|
|
2247
|
+
[y, r, s, o]
|
|
2247
2248
|
);
|
|
2248
|
-
return
|
|
2249
|
+
return w ? null : (
|
|
2249
2250
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
2250
2251
|
// @ts-ignore
|
|
2251
2252
|
/* @__PURE__ */ i(
|
|
2252
|
-
|
|
2253
|
+
Js,
|
|
2253
2254
|
{
|
|
2254
|
-
classNames:
|
|
2255
|
+
classNames: T,
|
|
2255
2256
|
in: p,
|
|
2256
2257
|
timeout: Zo,
|
|
2257
2258
|
unmountOnExit: !0,
|
|
@@ -2261,73 +2262,73 @@ const sr = {
|
|
|
2261
2262
|
"div",
|
|
2262
2263
|
{
|
|
2263
2264
|
ref: we([a, g]),
|
|
2264
|
-
onPointerDownCapture:
|
|
2265
|
+
onPointerDownCapture: P,
|
|
2265
2266
|
"data-open": p,
|
|
2266
2267
|
"data-side": s,
|
|
2267
2268
|
"data-type": o,
|
|
2268
|
-
style:
|
|
2269
|
+
style: D,
|
|
2269
2270
|
...m,
|
|
2270
|
-
children: /* @__PURE__ */ i(
|
|
2271
|
+
children: /* @__PURE__ */ i(Ga, { value: A, children: t })
|
|
2271
2272
|
}
|
|
2272
2273
|
)
|
|
2273
2274
|
}
|
|
2274
2275
|
)
|
|
2275
2276
|
);
|
|
2276
2277
|
});
|
|
2277
|
-
|
|
2278
|
-
const
|
|
2279
|
-
const { ref: a, onMouseDown: t, disabled: e, ...s } = n, o =
|
|
2280
|
-
(
|
|
2278
|
+
gt.displayName = "SlideOutContent";
|
|
2279
|
+
const pt = u((n) => {
|
|
2280
|
+
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(Ga), p = e ?? !d, f = v(
|
|
2281
|
+
(y, R) => {
|
|
2281
2282
|
switch (l) {
|
|
2282
2283
|
case "left":
|
|
2283
|
-
o.current =
|
|
2284
|
+
o.current = y;
|
|
2284
2285
|
break;
|
|
2285
2286
|
case "right":
|
|
2286
|
-
o.current =
|
|
2287
|
+
o.current = y;
|
|
2287
2288
|
break;
|
|
2288
2289
|
case "top":
|
|
2289
|
-
o.current =
|
|
2290
|
+
o.current = R;
|
|
2290
2291
|
break;
|
|
2291
2292
|
case "bottom":
|
|
2292
|
-
o.current =
|
|
2293
|
+
o.current = R;
|
|
2293
2294
|
break;
|
|
2294
2295
|
}
|
|
2295
2296
|
},
|
|
2296
2297
|
[l]
|
|
2297
|
-
), C =
|
|
2298
|
-
(
|
|
2299
|
-
t == null || t(
|
|
2298
|
+
), C = v(
|
|
2299
|
+
(y) => {
|
|
2300
|
+
t == null || t(y), !(y.defaultPrevented || p) && (y.preventDefault(), f(y.clientX, y.clientY), c(!0));
|
|
2300
2301
|
},
|
|
2301
2302
|
[p, t, f]
|
|
2302
|
-
),
|
|
2303
|
-
(
|
|
2303
|
+
), N = v(
|
|
2304
|
+
(y) => {
|
|
2304
2305
|
if (!r || !o.current || p) return;
|
|
2305
|
-
|
|
2306
|
-
const { clientX:
|
|
2307
|
-
let
|
|
2306
|
+
y.preventDefault();
|
|
2307
|
+
const { clientX: R, clientY: L } = y;
|
|
2308
|
+
let P = 0;
|
|
2308
2309
|
switch (l) {
|
|
2309
2310
|
case "left":
|
|
2310
|
-
|
|
2311
|
+
P = R - o.current;
|
|
2311
2312
|
break;
|
|
2312
2313
|
case "right":
|
|
2313
|
-
|
|
2314
|
+
P = (R - o.current) * -1;
|
|
2314
2315
|
break;
|
|
2315
2316
|
case "top":
|
|
2316
|
-
|
|
2317
|
+
P = L - o.current;
|
|
2317
2318
|
break;
|
|
2318
2319
|
case "bottom":
|
|
2319
|
-
|
|
2320
|
+
P = (L - o.current) * -1;
|
|
2320
2321
|
break;
|
|
2321
2322
|
}
|
|
2322
|
-
f(
|
|
2323
|
+
f(R, L), g(m + P);
|
|
2323
2324
|
},
|
|
2324
2325
|
[p, m, r, g, f, l]
|
|
2325
|
-
),
|
|
2326
|
+
), w = v(() => {
|
|
2326
2327
|
!r || p || (o.current = null, c(!1));
|
|
2327
2328
|
}, [p, r]);
|
|
2328
|
-
return B(() => (document.addEventListener("pointermove",
|
|
2329
|
-
document.removeEventListener("pointermove",
|
|
2330
|
-
}), [
|
|
2329
|
+
return B(() => (document.addEventListener("pointermove", N), document.addEventListener("pointerup", w), () => {
|
|
2330
|
+
document.removeEventListener("pointermove", N), document.removeEventListener("pointerup", w);
|
|
2331
|
+
}), [N, w]), /* @__PURE__ */ i(
|
|
2331
2332
|
"div",
|
|
2332
2333
|
{
|
|
2333
2334
|
ref: a,
|
|
@@ -2339,13 +2340,13 @@ const gt = u((n) => {
|
|
|
2339
2340
|
}
|
|
2340
2341
|
);
|
|
2341
2342
|
});
|
|
2342
|
-
|
|
2343
|
-
const
|
|
2343
|
+
pt.displayName = "SlideOutHandle";
|
|
2344
|
+
const xt = u((n) => {
|
|
2344
2345
|
const { ref: a, ...t } = n, { open: e, hide: s } = b(fe);
|
|
2345
2346
|
return e && !s ? /* @__PURE__ */ i("div", { ref: a, "data-open": e, ...t }) : null;
|
|
2346
2347
|
});
|
|
2347
|
-
|
|
2348
|
-
const
|
|
2348
|
+
xt.displayName = "SlideOutOverlay";
|
|
2349
|
+
const ft = u((n) => {
|
|
2349
2350
|
const {
|
|
2350
2351
|
ref: a,
|
|
2351
2352
|
children: t,
|
|
@@ -2355,7 +2356,7 @@ const xt = u((n) => {
|
|
|
2355
2356
|
modal: r = !1,
|
|
2356
2357
|
hide: c = !1,
|
|
2357
2358
|
...l
|
|
2358
|
-
} = n, [d, m] = E(null), [g, p] = X(e, s, o), f =
|
|
2359
|
+
} = n, [d, m] = E(null), [g, p] = X(e, s, o), f = z(
|
|
2359
2360
|
() => ({
|
|
2360
2361
|
parentElement: d,
|
|
2361
2362
|
open: g,
|
|
@@ -2367,9 +2368,9 @@ const xt = u((n) => {
|
|
|
2367
2368
|
);
|
|
2368
2369
|
return /* @__PURE__ */ i("div", { ref: we([a, m]), ...l, children: /* @__PURE__ */ i(fe, { value: f, children: t }) });
|
|
2369
2370
|
});
|
|
2370
|
-
|
|
2371
|
-
const
|
|
2372
|
-
const { ref: a, onClick: t, ...e } = n, { open: s, setOpen: o } = b(fe), r =
|
|
2371
|
+
ft.displayName = "SlideOutRoot";
|
|
2372
|
+
const Ea = u((n) => {
|
|
2373
|
+
const { ref: a, onClick: t, ...e } = n, { open: s, setOpen: o } = b(fe), r = v(
|
|
2373
2374
|
(c) => {
|
|
2374
2375
|
t == null || t(c), !c.defaultPrevented && o(!s);
|
|
2375
2376
|
},
|
|
@@ -2377,9 +2378,9 @@ const Ga = u((n) => {
|
|
|
2377
2378
|
);
|
|
2378
2379
|
return /* @__PURE__ */ i(me, { ref: a, onClick: r, "data-disabled": n.disabled ?? !1, ...e });
|
|
2379
2380
|
});
|
|
2380
|
-
|
|
2381
|
-
const
|
|
2382
|
-
const { ref: a, ...t } = n, e =
|
|
2381
|
+
Ea.displayName = "SlideOutTrigger";
|
|
2382
|
+
const ht = u((n) => {
|
|
2383
|
+
const { ref: a, ...t } = n, e = q(null), { open: s, modal: o, parentElement: r } = b(fe);
|
|
2383
2384
|
return B(() => {
|
|
2384
2385
|
if (!e.current) return;
|
|
2385
2386
|
const c = e.current, l = c.style.pointerEvents;
|
|
@@ -2388,37 +2389,37 @@ const ft = u((n) => {
|
|
|
2388
2389
|
};
|
|
2389
2390
|
}, [o, s, r == null ? void 0 : r.style]), /* @__PURE__ */ i("div", { ref: we([a, e]), ...t });
|
|
2390
2391
|
});
|
|
2391
|
-
|
|
2392
|
+
ht.displayName = "SlideOutViewport";
|
|
2392
2393
|
const Yc = {
|
|
2393
|
-
Close:
|
|
2394
|
-
Content:
|
|
2395
|
-
Handle:
|
|
2396
|
-
Overlay:
|
|
2397
|
-
Root:
|
|
2398
|
-
Trigger:
|
|
2399
|
-
Viewport:
|
|
2400
|
-
},
|
|
2394
|
+
Close: mt,
|
|
2395
|
+
Content: gt,
|
|
2396
|
+
Handle: pt,
|
|
2397
|
+
Overlay: xt,
|
|
2398
|
+
Root: ft,
|
|
2399
|
+
Trigger: Ea,
|
|
2400
|
+
Viewport: ht
|
|
2401
|
+
}, _a = u((n) => {
|
|
2401
2402
|
const { ref: a, ...t } = n;
|
|
2402
|
-
return /* @__PURE__ */ i(
|
|
2403
|
+
return /* @__PURE__ */ i(mt, { ref: a, ...t });
|
|
2403
2404
|
});
|
|
2404
|
-
|
|
2405
|
-
const
|
|
2405
|
+
_a.displayName = "LayoutSlideOutClose";
|
|
2406
|
+
const Fa = u((n) => {
|
|
2406
2407
|
const { ref: a, type: t, ...e } = n, { small: s } = ke();
|
|
2407
|
-
return /* @__PURE__ */ i(
|
|
2408
|
+
return /* @__PURE__ */ i(gt, { ref: a, type: t ?? (s ? "overlay" : "inline"), ...e });
|
|
2408
2409
|
});
|
|
2409
|
-
|
|
2410
|
-
const
|
|
2410
|
+
Fa.displayName = "LayoutSlideOutContent";
|
|
2411
|
+
const Ha = u((n) => {
|
|
2411
2412
|
const { ref: a, ...t } = n;
|
|
2412
|
-
return /* @__PURE__ */ i(
|
|
2413
|
+
return /* @__PURE__ */ i(pt, { ref: a, ...t });
|
|
2413
2414
|
});
|
|
2414
|
-
|
|
2415
|
-
const
|
|
2415
|
+
Ha.displayName = "LayoutSlideOutHandle";
|
|
2416
|
+
const Ba = u((n) => {
|
|
2416
2417
|
const { ref: a, smallModeOnly: t = !1, ...e } = n, { small: s, hideLayout: o } = ke();
|
|
2417
|
-
return
|
|
2418
|
+
return z(() => !(o || t && !s), [o, s, t]) ? /* @__PURE__ */ i(xt, { ref: a, ...e }) : null;
|
|
2418
2419
|
});
|
|
2419
|
-
|
|
2420
|
-
const
|
|
2421
|
-
const { ref: a, slideOutId: t, defaultOpen: e, hide: s, ...o } = n, { isOpen: r, setOpen: c, small: l, hideLayout: d } = ke(), m = r(t), g =
|
|
2420
|
+
Ba.displayName = "SlideOutOverlay";
|
|
2421
|
+
const $a = u((n) => {
|
|
2422
|
+
const { ref: a, slideOutId: t, defaultOpen: e, hide: s, ...o } = n, { isOpen: r, setOpen: c, small: l, hideLayout: d } = ke(), m = r(t), g = v(
|
|
2422
2423
|
(p) => {
|
|
2423
2424
|
p || c(t, !1);
|
|
2424
2425
|
},
|
|
@@ -2427,7 +2428,7 @@ const Ba = u((n) => {
|
|
|
2427
2428
|
return B(() => {
|
|
2428
2429
|
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);
|
|
2429
2430
|
}, [e, t, c, l]), /* @__PURE__ */ i(
|
|
2430
|
-
|
|
2431
|
+
ft,
|
|
2431
2432
|
{
|
|
2432
2433
|
ref: a,
|
|
2433
2434
|
open: m,
|
|
@@ -2438,30 +2439,30 @@ const Ba = u((n) => {
|
|
|
2438
2439
|
}
|
|
2439
2440
|
);
|
|
2440
2441
|
});
|
|
2441
|
-
|
|
2442
|
-
const
|
|
2443
|
-
const { ref: a, slideOutId: t, children: e, ...s } = n, { isOpen: o, setOpen: r } = ke(), c = o(t), l =
|
|
2442
|
+
$a.displayName = "LayoutSlideOutRoot";
|
|
2443
|
+
const ja = u((n) => {
|
|
2444
|
+
const { ref: a, slideOutId: t, children: e, ...s } = n, { isOpen: o, setOpen: r } = ke(), c = o(t), l = v(() => {
|
|
2444
2445
|
r(t, !c);
|
|
2445
2446
|
}, [c, r, t]);
|
|
2446
2447
|
return /* @__PURE__ */ i(me, { "data-state": pe(c), ref: a, onClick: l, ...s, children: e });
|
|
2447
2448
|
});
|
|
2448
|
-
|
|
2449
|
-
const
|
|
2449
|
+
ja.displayName = "LayoutSlideOutTrigger";
|
|
2450
|
+
const qa = u((n) => {
|
|
2450
2451
|
const { ref: a, ...t } = n;
|
|
2451
|
-
return /* @__PURE__ */ i(
|
|
2452
|
+
return /* @__PURE__ */ i(ht, { ref: a, ...t });
|
|
2452
2453
|
});
|
|
2453
|
-
|
|
2454
|
+
qa.displayName = "LayoutSlideOutViewport";
|
|
2454
2455
|
const Qc = {
|
|
2455
|
-
Root:
|
|
2456
|
-
Container:
|
|
2457
|
-
SlideOutClose:
|
|
2458
|
-
SlideOutContent:
|
|
2459
|
-
SlideOutHandle:
|
|
2460
|
-
SlideOutOverlay:
|
|
2461
|
-
SlideOutRoot:
|
|
2462
|
-
SlideOutTrigger:
|
|
2463
|
-
SlideOutViewport:
|
|
2464
|
-
}, or =
|
|
2456
|
+
Root: Da,
|
|
2457
|
+
Container: Aa,
|
|
2458
|
+
SlideOutClose: _a,
|
|
2459
|
+
SlideOutContent: Fa,
|
|
2460
|
+
SlideOutHandle: Ha,
|
|
2461
|
+
SlideOutOverlay: Ba,
|
|
2462
|
+
SlideOutRoot: $a,
|
|
2463
|
+
SlideOutTrigger: ja,
|
|
2464
|
+
SlideOutViewport: qa
|
|
2465
|
+
}, or = h(["cursor-pointer"], {
|
|
2465
2466
|
variants: {
|
|
2466
2467
|
size: {
|
|
2467
2468
|
none: ["[font-size:inherit]", "leading-[inherit]"],
|
|
@@ -2497,7 +2498,7 @@ const Qc = {
|
|
|
2497
2498
|
align: "left"
|
|
2498
2499
|
}
|
|
2499
2500
|
}), rr = u((n) => {
|
|
2500
|
-
const a =
|
|
2501
|
+
const a = V(), {
|
|
2501
2502
|
ref: t,
|
|
2502
2503
|
children: e,
|
|
2503
2504
|
className: s,
|
|
@@ -2527,7 +2528,7 @@ const Qc = {
|
|
|
2527
2528
|
);
|
|
2528
2529
|
});
|
|
2529
2530
|
rr.displayName = "Link";
|
|
2530
|
-
const cr =
|
|
2531
|
+
const cr = h(
|
|
2531
2532
|
[
|
|
2532
2533
|
"select-none",
|
|
2533
2534
|
"relative",
|
|
@@ -2567,7 +2568,7 @@ const cr = v(
|
|
|
2567
2568
|
variant: "soft"
|
|
2568
2569
|
}
|
|
2569
2570
|
}
|
|
2570
|
-
), ir =
|
|
2571
|
+
), ir = h(["text-(--base-a10)", "flex", "items-center", "select-none", "py-1"], {
|
|
2571
2572
|
variants: {
|
|
2572
2573
|
size: {
|
|
2573
2574
|
xs: ["gap-1.5", "px-3", "text-xs"],
|
|
@@ -2580,7 +2581,7 @@ const cr = v(
|
|
|
2580
2581
|
defaultVariants: {
|
|
2581
2582
|
size: "md"
|
|
2582
2583
|
}
|
|
2583
|
-
}), lr =
|
|
2584
|
+
}), lr = h(["h-px", "bg-(--base-a6)", "w-auto", "shrink-0"], {
|
|
2584
2585
|
variants: {
|
|
2585
2586
|
size: {
|
|
2586
2587
|
xs: ["-mx-0.5", "my-0.5"],
|
|
@@ -2593,7 +2594,7 @@ const cr = v(
|
|
|
2593
2594
|
defaultVariants: {
|
|
2594
2595
|
size: "md"
|
|
2595
2596
|
}
|
|
2596
|
-
}), Ua =
|
|
2597
|
+
}), Ua = h(
|
|
2597
2598
|
[
|
|
2598
2599
|
"flex",
|
|
2599
2600
|
"flex-col",
|
|
@@ -2630,7 +2631,7 @@ const cr = v(
|
|
|
2630
2631
|
size: "md"
|
|
2631
2632
|
}
|
|
2632
2633
|
}
|
|
2633
|
-
), dr =
|
|
2634
|
+
), dr = h(["overflow-hidden", "touch-manipulation"], {
|
|
2634
2635
|
variants: {
|
|
2635
2636
|
modal: {
|
|
2636
2637
|
true: ["pointer-events-auto"],
|
|
@@ -2640,7 +2641,7 @@ const cr = v(
|
|
|
2640
2641
|
defaultVariants: {
|
|
2641
2642
|
modal: !1
|
|
2642
2643
|
}
|
|
2643
|
-
}), ur =
|
|
2644
|
+
}), ur = h(
|
|
2644
2645
|
[
|
|
2645
2646
|
"flex",
|
|
2646
2647
|
"items-stretch",
|
|
@@ -2666,50 +2667,50 @@ const cr = v(
|
|
|
2666
2667
|
size: "md"
|
|
2667
2668
|
}
|
|
2668
2669
|
}
|
|
2669
|
-
), J =
|
|
2670
|
-
const a = b(ie), { getItemProps: t, activeIndex: e, setOpen: s, size: o, variant: r, radius: c } = b(J), { closeRoot: l } = b(
|
|
2670
|
+
), J = O({}), ie = O({}), Fe = O({}), mr = ["Enter", " "], se = u((n) => {
|
|
2671
|
+
const a = b(ie), { getItemProps: t, activeIndex: e, setOpen: s, size: o, variant: r, radius: c } = b(J), { closeRoot: l } = b(Fe), {
|
|
2671
2672
|
ref: d,
|
|
2672
2673
|
className: m,
|
|
2673
2674
|
children: g,
|
|
2674
2675
|
onSelect: p,
|
|
2675
2676
|
onClick: f,
|
|
2676
2677
|
onKeyDown: C,
|
|
2677
|
-
closeOnSelect:
|
|
2678
|
-
disabled:
|
|
2679
|
-
...
|
|
2680
|
-
} = n, { ref:
|
|
2678
|
+
closeOnSelect: N = !0,
|
|
2679
|
+
disabled: w = !1,
|
|
2680
|
+
...y
|
|
2681
|
+
} = n, { ref: R, index: L } = Tt(), P = ge([R, d]), D = v(
|
|
2681
2682
|
(_) => {
|
|
2682
|
-
_.stopPropagation(), !
|
|
2683
|
+
_.stopPropagation(), !w && (f == null || f(_), p == null || p(), N && s(!1), l && a.setOpen(!1));
|
|
2683
2684
|
},
|
|
2684
|
-
[
|
|
2685
|
-
),
|
|
2685
|
+
[N, l, w, a, f, p, s]
|
|
2686
|
+
), T = v(
|
|
2686
2687
|
(_) => {
|
|
2687
|
-
|
|
2688
|
+
w || (C == null || C(_), mr.includes(_.key) && (p == null || p(), N && s(!1)));
|
|
2688
2689
|
},
|
|
2689
|
-
[
|
|
2690
|
-
),
|
|
2690
|
+
[N, w, C, p, s]
|
|
2691
|
+
), A = z(() => L === e, [e, L]), S = z(() => typeof g == "function" ? g({ active: A, selected: !1 }) : g, [g, A]);
|
|
2691
2692
|
return /* @__PURE__ */ i(
|
|
2692
2693
|
"li",
|
|
2693
2694
|
{
|
|
2694
2695
|
className: x(cr({ size: o, variant: r }), k({ radius: c, maxLarge: !0 }), m),
|
|
2695
|
-
ref:
|
|
2696
|
+
ref: P,
|
|
2696
2697
|
role: "menuitem",
|
|
2697
|
-
"data-disabled": Q(
|
|
2698
|
-
"aria-disabled":
|
|
2699
|
-
"data-highlighted":
|
|
2698
|
+
"data-disabled": Q(w),
|
|
2699
|
+
"aria-disabled": w,
|
|
2700
|
+
"data-highlighted": A ? "" : void 0,
|
|
2700
2701
|
...t({
|
|
2701
|
-
onClick:
|
|
2702
|
-
onKeyDown:
|
|
2703
|
-
tabIndex:
|
|
2704
|
-
...
|
|
2702
|
+
onClick: D,
|
|
2703
|
+
onKeyDown: T,
|
|
2704
|
+
tabIndex: A ? 0 : -1,
|
|
2705
|
+
...y
|
|
2705
2706
|
}),
|
|
2706
|
-
children:
|
|
2707
|
+
children: S
|
|
2707
2708
|
}
|
|
2708
2709
|
);
|
|
2709
2710
|
});
|
|
2710
2711
|
se.displayName = "MenuItem";
|
|
2711
|
-
const
|
|
2712
|
-
const { ref: a, checked: t, onCheckedChange: e, onSelect: s, ...o } = n, r =
|
|
2712
|
+
const Wa = u((n) => {
|
|
2713
|
+
const { ref: a, checked: t, onCheckedChange: e, onSelect: s, ...o } = n, r = v(() => {
|
|
2713
2714
|
switch (s == null || s(), t) {
|
|
2714
2715
|
case !0:
|
|
2715
2716
|
e(!1);
|
|
@@ -2722,13 +2723,13 @@ const qa = u((n) => {
|
|
|
2722
2723
|
}, [t, e, s]);
|
|
2723
2724
|
return /* @__PURE__ */ i(Se.Provider, { value: t, children: /* @__PURE__ */ i(se, { ref: a, onSelect: r, ...o }) });
|
|
2724
2725
|
});
|
|
2725
|
-
|
|
2726
|
-
const
|
|
2726
|
+
Wa.displayName = "MenuCheckboxItem";
|
|
2727
|
+
const Ka = u((n) => {
|
|
2727
2728
|
const { ref: a, children: t, ...e } = n;
|
|
2728
|
-
return /* @__PURE__ */ i(
|
|
2729
|
+
return /* @__PURE__ */ i(Ge, { ref: a, ...e, children: t });
|
|
2729
2730
|
});
|
|
2730
|
-
|
|
2731
|
-
const
|
|
2731
|
+
Ka.displayName = "MenuCheckboxItemIndicator";
|
|
2732
|
+
const Xa = u((n) => {
|
|
2732
2733
|
const { ref: a, children: t, disabled: e = !1 } = n, { getReferenceProps: s, refs: o, setTriggerType: r, open: c } = b(ie), l = ge([o.setReference, a]);
|
|
2733
2734
|
return B(() => {
|
|
2734
2735
|
r("click");
|
|
@@ -2744,10 +2745,10 @@ const Ka = u((n) => {
|
|
|
2744
2745
|
}
|
|
2745
2746
|
);
|
|
2746
2747
|
});
|
|
2747
|
-
|
|
2748
|
-
const
|
|
2749
|
-
var
|
|
2750
|
-
const a =
|
|
2748
|
+
Xa.displayName = "MenuClickTrigger";
|
|
2749
|
+
const Ya = u((n) => {
|
|
2750
|
+
var M;
|
|
2751
|
+
const a = V(), {
|
|
2751
2752
|
ref: t,
|
|
2752
2753
|
className: e,
|
|
2753
2754
|
children: s,
|
|
@@ -2762,68 +2763,68 @@ const Xa = u((n) => {
|
|
|
2762
2763
|
middlewareData: p,
|
|
2763
2764
|
elementsRef: f,
|
|
2764
2765
|
activeIndex: C,
|
|
2765
|
-
setActiveIndex:
|
|
2766
|
-
getItemProps:
|
|
2767
|
-
open:
|
|
2768
|
-
setOpen:
|
|
2766
|
+
setActiveIndex: N,
|
|
2767
|
+
getItemProps: w,
|
|
2768
|
+
open: y,
|
|
2769
|
+
setOpen: R,
|
|
2769
2770
|
nodeId: L,
|
|
2770
|
-
context:
|
|
2771
|
-
floatingStyles:
|
|
2772
|
-
modal:
|
|
2773
|
-
side:
|
|
2774
|
-
} = b(ie),
|
|
2771
|
+
context: P,
|
|
2772
|
+
floatingStyles: D,
|
|
2773
|
+
modal: T,
|
|
2774
|
+
side: A
|
|
2775
|
+
} = b(ie), S = z(() => {
|
|
2775
2776
|
var I;
|
|
2776
2777
|
return {
|
|
2777
|
-
...
|
|
2778
|
+
...D,
|
|
2778
2779
|
visibility: (I = p.hide) != null && I.referenceHidden ? "hidden" : "visible"
|
|
2779
2780
|
};
|
|
2780
|
-
}, [
|
|
2781
|
+
}, [D, (M = p.hide) == null ? void 0 : M.referenceHidden]), _ = v(
|
|
2781
2782
|
(I) => {
|
|
2782
|
-
|
|
2783
|
+
T && Co(I);
|
|
2783
2784
|
},
|
|
2784
|
-
[
|
|
2785
|
-
), ee =
|
|
2785
|
+
[T]
|
|
2786
|
+
), ee = z(
|
|
2786
2787
|
() => ({
|
|
2787
|
-
getItemProps:
|
|
2788
|
+
getItemProps: w,
|
|
2788
2789
|
activeIndex: C,
|
|
2789
2790
|
elementsRef: f,
|
|
2790
|
-
open:
|
|
2791
|
-
setOpen:
|
|
2791
|
+
open: y,
|
|
2792
|
+
setOpen: R,
|
|
2792
2793
|
refs: m,
|
|
2793
|
-
setActiveIndex:
|
|
2794
|
+
setActiveIndex: N,
|
|
2794
2795
|
size: o,
|
|
2795
2796
|
variant: r,
|
|
2796
2797
|
accentColor: l,
|
|
2797
2798
|
radius: c
|
|
2798
2799
|
}),
|
|
2799
2800
|
[
|
|
2800
|
-
|
|
2801
|
+
w,
|
|
2801
2802
|
C,
|
|
2802
2803
|
f,
|
|
2803
|
-
|
|
2804
|
-
|
|
2804
|
+
y,
|
|
2805
|
+
R,
|
|
2805
2806
|
m,
|
|
2806
|
-
|
|
2807
|
+
N,
|
|
2807
2808
|
o,
|
|
2808
2809
|
r,
|
|
2809
2810
|
l,
|
|
2810
2811
|
c
|
|
2811
2812
|
]
|
|
2812
2813
|
);
|
|
2813
|
-
return /* @__PURE__ */ i(
|
|
2814
|
-
|
|
2814
|
+
return /* @__PURE__ */ i(Pt, { id: L, children: y && /* @__PURE__ */ i(Mt, { children: /* @__PURE__ */ i(
|
|
2815
|
+
eo,
|
|
2815
2816
|
{
|
|
2816
|
-
className: dr({ modal:
|
|
2817
|
+
className: dr({ modal: T }),
|
|
2817
2818
|
onClick: _,
|
|
2818
2819
|
lockScroll: !0,
|
|
2819
2820
|
"data-floating-content": "",
|
|
2820
|
-
children: /* @__PURE__ */ i(
|
|
2821
|
+
children: /* @__PURE__ */ i(Ot, { context: P, children: /* @__PURE__ */ i(Vt, { elementsRef: f, children: /* @__PURE__ */ i(J.Provider, { value: ee, children: /* @__PURE__ */ i(
|
|
2821
2822
|
"div",
|
|
2822
2823
|
{
|
|
2823
2824
|
className: "border-box w-max outline-none",
|
|
2824
2825
|
ref: m.setFloating,
|
|
2825
2826
|
tabIndex: -1,
|
|
2826
|
-
style:
|
|
2827
|
+
style: S,
|
|
2827
2828
|
"data-floating-content": "",
|
|
2828
2829
|
...g(),
|
|
2829
2830
|
children: /* @__PURE__ */ i(
|
|
@@ -2831,14 +2832,15 @@ const Xa = u((n) => {
|
|
|
2831
2832
|
{
|
|
2832
2833
|
className: x(
|
|
2833
2834
|
Ua({ size: o }),
|
|
2834
|
-
Ve({ side:
|
|
2835
|
+
Ve({ side: A }),
|
|
2836
|
+
Le({ size: "md" }),
|
|
2835
2837
|
k({ radius: c, maxLarge: !0 }),
|
|
2836
2838
|
"max-h-(--overmap-menu-available-height)",
|
|
2837
2839
|
e
|
|
2838
2840
|
),
|
|
2839
2841
|
ref: t,
|
|
2840
|
-
"data-state": pe(
|
|
2841
|
-
"data-side":
|
|
2842
|
+
"data-state": pe(y),
|
|
2843
|
+
"data-side": A,
|
|
2842
2844
|
"data-accent-color": l,
|
|
2843
2845
|
...d,
|
|
2844
2846
|
children: s
|
|
@@ -2849,13 +2851,13 @@ const Xa = u((n) => {
|
|
|
2849
2851
|
}
|
|
2850
2852
|
) }) });
|
|
2851
2853
|
});
|
|
2852
|
-
|
|
2853
|
-
const
|
|
2854
|
-
const { ref: a, children: t, disabled: e = !1 } = n, s =
|
|
2854
|
+
Ya.displayName = "Menu.Content";
|
|
2855
|
+
const Qa = u((n) => {
|
|
2856
|
+
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]);
|
|
2855
2857
|
B(() => {
|
|
2856
2858
|
c("context");
|
|
2857
2859
|
}, [c]);
|
|
2858
|
-
const m =
|
|
2860
|
+
const m = v(
|
|
2859
2861
|
(g) => {
|
|
2860
2862
|
const { clientY: p, clientX: f } = g;
|
|
2861
2863
|
!e && s.current && (g.preventDefault(), r.setPositionReference({
|
|
@@ -2889,14 +2891,14 @@ const Ya = u((n) => {
|
|
|
2889
2891
|
}
|
|
2890
2892
|
);
|
|
2891
2893
|
});
|
|
2892
|
-
|
|
2893
|
-
const
|
|
2894
|
+
Qa.displayName = "MenuContextTrigger";
|
|
2895
|
+
const He = u((n) => {
|
|
2894
2896
|
const { ref: a, children: t, ...e } = n;
|
|
2895
2897
|
return /* @__PURE__ */ i("div", { ref: a, role: "group", ...e, children: t });
|
|
2896
2898
|
});
|
|
2897
|
-
|
|
2898
|
-
const
|
|
2899
|
-
const { ref: a, className: t, onValueChange: e, onChange: s, disabled: o = !1, ...r } = n, { activeIndex: c, getItemProps: l } = b(J), { index: d, ref: m } =
|
|
2899
|
+
He.displayName = "MenuGroup";
|
|
2900
|
+
const Ja = u((n) => {
|
|
2901
|
+
const { ref: a, className: t, onValueChange: e, onChange: s, disabled: o = !1, ...r } = n, { activeIndex: c, getItemProps: l } = b(J), { index: d, ref: m } = Tt(), g = ge([m, a]), p = v(
|
|
2900
2902
|
(f) => {
|
|
2901
2903
|
s == null || s(f), e == null || e(f.target.value);
|
|
2902
2904
|
},
|
|
@@ -2919,31 +2921,31 @@ const Qa = u((n) => {
|
|
|
2919
2921
|
}
|
|
2920
2922
|
);
|
|
2921
2923
|
});
|
|
2922
|
-
|
|
2923
|
-
const
|
|
2924
|
+
Ja.displayName = "MenuInputField";
|
|
2925
|
+
const Za = u((n) => {
|
|
2924
2926
|
const { ref: a, className: t, ...e } = n, { size: s } = b(J);
|
|
2925
2927
|
return /* @__PURE__ */ i("div", { className: x(ur({ size: s }), t), ref: a, ...e });
|
|
2926
2928
|
});
|
|
2927
|
-
|
|
2928
|
-
const
|
|
2929
|
+
Za.displayName = "MenuInputRoot";
|
|
2930
|
+
const en = u((n) => {
|
|
2929
2931
|
const { ref: a, className: t, ...e } = n;
|
|
2930
2932
|
return /* @__PURE__ */ i("div", { className: x("flex", "items-center", "text-(--base-a11)", t), ref: a, ...e });
|
|
2931
2933
|
});
|
|
2932
|
-
|
|
2933
|
-
const
|
|
2934
|
+
en.displayName = "MenuInputSlot";
|
|
2935
|
+
const tn = u((n) => {
|
|
2934
2936
|
const { ref: a, className: t, ...e } = n, { size: s } = b(J);
|
|
2935
2937
|
return /* @__PURE__ */ i("div", { ref: a, className: x(ir({ size: s }), t), ...e });
|
|
2936
2938
|
});
|
|
2937
|
-
|
|
2939
|
+
tn.displayName = "MenuLabel";
|
|
2938
2940
|
const gr = F(function(a) {
|
|
2939
2941
|
const { ref: t, children: e, defaultValues: s, values: o, onValuesChange: r, ...c } = a;
|
|
2940
|
-
return /* @__PURE__ */ i(
|
|
2942
|
+
return /* @__PURE__ */ i(He, { ref: t, ...c, children: /* @__PURE__ */ i(De, { defaultValues: s, values: o, onValuesChange: r, children: e }) });
|
|
2941
2943
|
}), pr = F(function(n) {
|
|
2942
2944
|
const { ref: a, onSelect: t, children: e, closeOnSelect: s = !1, value: o, ...r } = n, { selected: c, selectValue: l, registerValue: d } = b(Z);
|
|
2943
2945
|
ue(() => d(o), [d, o]);
|
|
2944
|
-
const m = c(o), g =
|
|
2946
|
+
const m = c(o), g = v(() => {
|
|
2945
2947
|
t == null || t(), l(o);
|
|
2946
|
-
}, [t, l, o]), p =
|
|
2948
|
+
}, [t, l, o]), p = z(() => typeof e == "function" ? ({ active: f }) => e({ selected: m, active: f }) : e, [e, m]);
|
|
2947
2949
|
return /* @__PURE__ */ i(xe.Provider, { value: m, children: /* @__PURE__ */ i(
|
|
2948
2950
|
se,
|
|
2949
2951
|
{
|
|
@@ -2956,25 +2958,25 @@ const gr = F(function(a) {
|
|
|
2956
2958
|
children: p
|
|
2957
2959
|
}
|
|
2958
2960
|
) });
|
|
2959
|
-
}),
|
|
2960
|
-
const { page: a, children: t } = n, { activePage: e } = b(
|
|
2961
|
+
}), vt = O({}), an = u((n) => {
|
|
2962
|
+
const { page: a, children: t } = n, { activePage: e } = b(vt);
|
|
2961
2963
|
return e === a ? t : null;
|
|
2962
2964
|
});
|
|
2963
|
-
|
|
2964
|
-
const an = u((n) => {
|
|
2965
|
-
const { children: a, defaultPage: t, page: e, onPageChange: s } = n, [o, r] = X(t ?? "", e, s), c = w(() => ({ activePage: o, setActivePage: r }), [o, r]);
|
|
2966
|
-
return /* @__PURE__ */ i(ht.Provider, { value: c, children: a });
|
|
2967
|
-
});
|
|
2968
|
-
an.displayName = "MenuPages";
|
|
2965
|
+
an.displayName = "PageContent";
|
|
2969
2966
|
const nn = u((n) => {
|
|
2970
|
-
const {
|
|
2967
|
+
const { children: a, defaultPage: t, page: e, onPageChange: s } = n, [o, r] = X(t ?? "", e, s), c = z(() => ({ activePage: o, setActivePage: r }), [o, r]);
|
|
2968
|
+
return /* @__PURE__ */ i(vt.Provider, { value: c, children: a });
|
|
2969
|
+
});
|
|
2970
|
+
nn.displayName = "MenuPages";
|
|
2971
|
+
const sn = u((n) => {
|
|
2972
|
+
const { ref: a, onSelect: t, page: e, ...s } = n, { refs: o, setActiveIndex: r } = b(J), { setActivePage: c } = b(vt), l = v(() => {
|
|
2971
2973
|
var d;
|
|
2972
2974
|
t == null || t(), c(e), (d = o.floating.current) == null || d.focus(), r(null);
|
|
2973
2975
|
}, [t, e, o.floating, r, c]);
|
|
2974
2976
|
return /* @__PURE__ */ i(se, { ref: a, onSelect: l, closeOnSelect: !1, ...s });
|
|
2975
2977
|
});
|
|
2976
|
-
|
|
2977
|
-
const Me = 20, Y = 8,
|
|
2978
|
+
sn.displayName = "MenuPageTrigger";
|
|
2979
|
+
const Me = 20, Y = 8, on = 250, xr = 5, rn = u((n) => {
|
|
2978
2980
|
const {
|
|
2979
2981
|
children: a,
|
|
2980
2982
|
side: t = "bottom",
|
|
@@ -2986,88 +2988,88 @@ const Me = 20, Y = 8, sn = 250, xr = 5, on = u((n) => {
|
|
|
2986
2988
|
open: c,
|
|
2987
2989
|
onOpenChange: l,
|
|
2988
2990
|
defaultOpen: d
|
|
2989
|
-
} = n, [m, g] = X(d ?? !1, c, l), [p, f] = E(null), [C,
|
|
2990
|
-
nodeId:
|
|
2991
|
+
} = n, [m, g] = X(d ?? !1, c, l), [p, f] = E(null), [C, N] = E(null), w = q([]), y = Lt(), { refs: R, floatingStyles: L, context: P, middlewareData: D } = At({
|
|
2992
|
+
nodeId: y,
|
|
2991
2993
|
strategy: "fixed",
|
|
2992
2994
|
// TODO: probably some way with template string types to not need the "as Placement"
|
|
2993
2995
|
placement: t + (e !== "center" ? "-" + e : ""),
|
|
2994
|
-
whileElementsMounted:
|
|
2996
|
+
whileElementsMounted: Ht,
|
|
2995
2997
|
open: m,
|
|
2996
2998
|
onOpenChange: g,
|
|
2997
2999
|
middleware: [
|
|
2998
|
-
|
|
2999
|
-
|
|
3000
|
+
Dt({ mainAxis: s ?? xr }),
|
|
3001
|
+
Gt({
|
|
3000
3002
|
apply({ availableHeight: he, elements: ve }) {
|
|
3001
3003
|
ve.floating.style.setProperty(
|
|
3002
3004
|
"--overmap-menu-available-height",
|
|
3003
|
-
`${Math.max(he,
|
|
3005
|
+
`${Math.max(he, on)}px`
|
|
3004
3006
|
);
|
|
3005
3007
|
},
|
|
3006
3008
|
padding: Me
|
|
3007
3009
|
}),
|
|
3008
|
-
|
|
3009
|
-
|
|
3010
|
-
|
|
3010
|
+
Et({ fallbackStrategy: "initialPlacement" }),
|
|
3011
|
+
_t({ padding: Me }),
|
|
3012
|
+
Ft()
|
|
3011
3013
|
]
|
|
3012
|
-
}),
|
|
3014
|
+
}), T = to(P, {
|
|
3013
3015
|
role: "menu"
|
|
3014
|
-
}),
|
|
3016
|
+
}), A = Bt(P, {
|
|
3015
3017
|
capture: !0,
|
|
3016
3018
|
ancestorScroll: C === "context" || C === "virtual"
|
|
3017
|
-
}),
|
|
3019
|
+
}), S = $t(P, {
|
|
3018
3020
|
enabled: C === "click"
|
|
3019
|
-
}), _ =
|
|
3020
|
-
listRef:
|
|
3021
|
+
}), _ = jt(P, {
|
|
3022
|
+
listRef: w,
|
|
3021
3023
|
activeIndex: p,
|
|
3022
3024
|
onNavigate: f,
|
|
3023
3025
|
loop: o
|
|
3024
|
-
}), { getFloatingProps: ee, getItemProps:
|
|
3025
|
-
|
|
3026
|
+
}), { getFloatingProps: ee, getItemProps: M, getReferenceProps: I } = qt([
|
|
3027
|
+
A,
|
|
3026
3028
|
_,
|
|
3027
|
-
|
|
3028
|
-
|
|
3029
|
-
]),
|
|
3029
|
+
S,
|
|
3030
|
+
T
|
|
3031
|
+
]), G = z(
|
|
3030
3032
|
() => ({
|
|
3031
3033
|
open: m,
|
|
3032
3034
|
setOpen: g,
|
|
3033
|
-
refs:
|
|
3034
|
-
context:
|
|
3035
|
+
refs: R,
|
|
3036
|
+
context: P,
|
|
3035
3037
|
floatingStyles: L,
|
|
3036
|
-
elementsRef:
|
|
3038
|
+
elementsRef: w,
|
|
3037
3039
|
getFloatingProps: ee,
|
|
3038
|
-
getItemProps:
|
|
3040
|
+
getItemProps: M,
|
|
3039
3041
|
getReferenceProps: I,
|
|
3040
|
-
nodeId:
|
|
3042
|
+
nodeId: y,
|
|
3041
3043
|
activeIndex: p,
|
|
3042
3044
|
setActiveIndex: f,
|
|
3043
|
-
middlewareData:
|
|
3045
|
+
middlewareData: D,
|
|
3044
3046
|
side: t,
|
|
3045
3047
|
modal: r,
|
|
3046
|
-
setTriggerType:
|
|
3048
|
+
setTriggerType: N
|
|
3047
3049
|
}),
|
|
3048
3050
|
[
|
|
3049
3051
|
m,
|
|
3050
3052
|
g,
|
|
3053
|
+
R,
|
|
3051
3054
|
P,
|
|
3052
|
-
y,
|
|
3053
3055
|
L,
|
|
3054
|
-
|
|
3056
|
+
w,
|
|
3055
3057
|
ee,
|
|
3056
|
-
|
|
3058
|
+
M,
|
|
3057
3059
|
I,
|
|
3058
|
-
|
|
3060
|
+
y,
|
|
3059
3061
|
p,
|
|
3060
3062
|
f,
|
|
3061
|
-
|
|
3063
|
+
D,
|
|
3062
3064
|
t,
|
|
3063
3065
|
r,
|
|
3064
|
-
|
|
3066
|
+
N
|
|
3065
3067
|
]
|
|
3066
3068
|
);
|
|
3067
|
-
return /* @__PURE__ */ i(
|
|
3069
|
+
return /* @__PURE__ */ i(ao, { children: /* @__PURE__ */ i(ie.Provider, { value: G, children: a }) });
|
|
3068
3070
|
});
|
|
3069
|
-
|
|
3070
|
-
const
|
|
3071
|
+
rn.displayName = "Root";
|
|
3072
|
+
const cn = u((n) => {
|
|
3071
3073
|
const { ref: a, className: t, ...e } = n;
|
|
3072
3074
|
return /* @__PURE__ */ i(
|
|
3073
3075
|
"div",
|
|
@@ -3081,11 +3083,11 @@ const rn = u((n) => {
|
|
|
3081
3083
|
}
|
|
3082
3084
|
);
|
|
3083
3085
|
});
|
|
3084
|
-
|
|
3086
|
+
cn.displayName = "MenuScroll";
|
|
3085
3087
|
const fr = F((n) => {
|
|
3086
|
-
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 =
|
|
3088
|
+
const { ref: a, children: t, onSelect: e, closeOnSelect: s = !1, ...o } = n, { allSelected: r, someSelected: c, toggleSelectAll: l } = b(Z), d = r ? !0 : c ? "indeterminate" : !1, m = v(() => {
|
|
3087
3089
|
e == null || e(), l();
|
|
3088
|
-
}, [e, l]), g =
|
|
3090
|
+
}, [e, l]), g = z(() => typeof t == "function" ? ({ active: p }) => t({ selected: d, active: p }) : t, [t, d]);
|
|
3089
3091
|
return /* @__PURE__ */ i(Se, { value: d, children: /* @__PURE__ */ i(
|
|
3090
3092
|
se,
|
|
3091
3093
|
{
|
|
@@ -3097,15 +3099,15 @@ const fr = F((n) => {
|
|
|
3097
3099
|
children: g
|
|
3098
3100
|
}
|
|
3099
3101
|
) });
|
|
3100
|
-
}),
|
|
3102
|
+
}), ln = u((n) => {
|
|
3101
3103
|
const { ref: a, children: t, ...e } = n;
|
|
3102
|
-
return /* @__PURE__ */ i(
|
|
3104
|
+
return /* @__PURE__ */ i(_e, { ref: a, ...e, children: t });
|
|
3103
3105
|
});
|
|
3104
|
-
|
|
3106
|
+
ln.displayName = "MenuSelectedIndicator";
|
|
3105
3107
|
const hr = F(function(a) {
|
|
3106
3108
|
const { ref: t, children: e, required: s, defaultValue: o, value: r, onValueChange: c, ...l } = a;
|
|
3107
|
-
return /* @__PURE__ */ i(
|
|
3108
|
-
|
|
3109
|
+
return /* @__PURE__ */ i(He, { ref: t, ...l, children: s ? /* @__PURE__ */ i(ot, { defaultValue: o, value: r, onValueChange: c, children: e }) : /* @__PURE__ */ i(
|
|
3110
|
+
rt,
|
|
3109
3111
|
{
|
|
3110
3112
|
defaultValue: o,
|
|
3111
3113
|
value: r,
|
|
@@ -3114,9 +3116,9 @@ const hr = F(function(a) {
|
|
|
3114
3116
|
}
|
|
3115
3117
|
) });
|
|
3116
3118
|
}), vr = F(function(n) {
|
|
3117
|
-
const { ref: a, value: t, onSelect: e, children: s, closeOnSelect: o = !0, ...r } = n, { selected: c, selectValue: l } = b(Ne), d = c(t), m =
|
|
3119
|
+
const { ref: a, value: t, onSelect: e, children: s, closeOnSelect: o = !0, ...r } = n, { selected: c, selectValue: l } = b(Ne), d = c(t), m = v(() => {
|
|
3118
3120
|
e == null || e(), l(t);
|
|
3119
|
-
}, [e, l, t]), g =
|
|
3121
|
+
}, [e, l, t]), g = z(() => typeof s == "function" ? ({ active: p }) => s({ selected: d, active: p }) : s, [s, d]);
|
|
3120
3122
|
return /* @__PURE__ */ i(xe.Provider, { value: d, children: /* @__PURE__ */ i(
|
|
3121
3123
|
se,
|
|
3122
3124
|
{
|
|
@@ -3129,17 +3131,17 @@ const hr = F(function(a) {
|
|
|
3129
3131
|
children: g
|
|
3130
3132
|
}
|
|
3131
3133
|
) });
|
|
3132
|
-
}),
|
|
3134
|
+
}), dn = u((n) => {
|
|
3133
3135
|
const { ref: a, className: t, ...e } = n, { size: s } = b(J);
|
|
3134
|
-
return /* @__PURE__ */ i(
|
|
3136
|
+
return /* @__PURE__ */ i(Ze.Root, { className: x(lr({ size: s }), t), ref: a, ...e });
|
|
3135
3137
|
});
|
|
3136
|
-
|
|
3138
|
+
dn.displayName = "MenuSeparator";
|
|
3137
3139
|
const br = { mainAxis: Y + 1, crossAxis: 0 }, Cr = {
|
|
3138
3140
|
"right-start": { mainAxis: Y + 1, crossAxis: -Y },
|
|
3139
3141
|
"right-end": { mainAxis: Y + 1, crossAxis: Y },
|
|
3140
3142
|
"left-start": { mainAxis: Y + 1, crossAxis: -Y },
|
|
3141
3143
|
"left-end": { mainAxis: Y + 1, crossAxis: Y }
|
|
3142
|
-
}, yr = (n, a) => Cr[`${n}-${a}`] ?? br,
|
|
3144
|
+
}, yr = (n, a) => Cr[`${n}-${a}`] ?? br, un = u((n) => {
|
|
3143
3145
|
const {
|
|
3144
3146
|
children: a,
|
|
3145
3147
|
disabled: t = !1,
|
|
@@ -3152,69 +3154,69 @@ const br = { mainAxis: Y + 1, crossAxis: 0 }, Cr = {
|
|
|
3152
3154
|
open: l,
|
|
3153
3155
|
onOpenChange: d,
|
|
3154
3156
|
defaultOpen: m
|
|
3155
|
-
} = n, [g, p] = X(m ?? !1, l, d), f =
|
|
3157
|
+
} = n, [g, p] = X(m ?? !1, l, d), f = Lt(), { refs: C, floatingStyles: N, context: w } = At({
|
|
3156
3158
|
nodeId: f,
|
|
3157
3159
|
strategy: "fixed",
|
|
3158
|
-
whileElementsMounted:
|
|
3160
|
+
whileElementsMounted: Ht,
|
|
3159
3161
|
open: g,
|
|
3160
|
-
onOpenChange: (
|
|
3161
|
-
|
|
3162
|
+
onOpenChange: (M, I, G) => {
|
|
3163
|
+
G && p(M);
|
|
3162
3164
|
},
|
|
3163
3165
|
placement: e + (s !== "center" ? "-" + s : ""),
|
|
3164
3166
|
middleware: [
|
|
3165
|
-
|
|
3166
|
-
|
|
3167
|
+
Dt({ ...yr(e, s) }),
|
|
3168
|
+
Gt({
|
|
3167
3169
|
padding: Me,
|
|
3168
|
-
apply({ availableHeight:
|
|
3170
|
+
apply({ availableHeight: M, elements: I }) {
|
|
3169
3171
|
I.floating.style.setProperty(
|
|
3170
3172
|
"--overmap-menu-available-height",
|
|
3171
|
-
`${Math.max(
|
|
3173
|
+
`${Math.max(M, on)}px`
|
|
3172
3174
|
);
|
|
3173
3175
|
}
|
|
3174
3176
|
}),
|
|
3175
|
-
|
|
3176
|
-
|
|
3177
|
-
|
|
3177
|
+
Et(),
|
|
3178
|
+
_t({ padding: Me }),
|
|
3179
|
+
Ft()
|
|
3178
3180
|
]
|
|
3179
|
-
}),
|
|
3181
|
+
}), y = Bt(w, {
|
|
3180
3182
|
bubbles: o,
|
|
3181
3183
|
outsidePress: o
|
|
3182
|
-
}),
|
|
3184
|
+
}), R = no(w, {
|
|
3183
3185
|
restMs: 50,
|
|
3184
|
-
handleClose:
|
|
3186
|
+
handleClose: so({
|
|
3185
3187
|
blockPointerEvents: !0,
|
|
3186
3188
|
requireIntent: !1
|
|
3187
3189
|
}),
|
|
3188
3190
|
enabled: !t
|
|
3189
|
-
}), L =
|
|
3191
|
+
}), L = $t(w, {
|
|
3190
3192
|
enabled: !t
|
|
3191
|
-
}),
|
|
3192
|
-
listRef:
|
|
3193
|
+
}), P = q([]), [D, T] = E(null), A = jt(w, {
|
|
3194
|
+
listRef: P,
|
|
3193
3195
|
nested: !0,
|
|
3194
|
-
activeIndex:
|
|
3195
|
-
onNavigate:
|
|
3196
|
+
activeIndex: D,
|
|
3197
|
+
onNavigate: T,
|
|
3196
3198
|
loop: r,
|
|
3197
3199
|
rtl: e === "left"
|
|
3198
|
-
}), { getFloatingProps:
|
|
3199
|
-
|
|
3200
|
-
|
|
3201
|
-
|
|
3200
|
+
}), { getFloatingProps: S, getItemProps: _, getReferenceProps: ee } = qt([
|
|
3201
|
+
A,
|
|
3202
|
+
y,
|
|
3203
|
+
R,
|
|
3202
3204
|
L
|
|
3203
3205
|
]);
|
|
3204
3206
|
return /* @__PURE__ */ i(
|
|
3205
|
-
|
|
3207
|
+
Fe.Provider,
|
|
3206
3208
|
{
|
|
3207
3209
|
value: {
|
|
3208
3210
|
open: g,
|
|
3209
3211
|
setOpen: p,
|
|
3210
3212
|
nodeId: f,
|
|
3211
3213
|
refs: C,
|
|
3212
|
-
floatingStyles:
|
|
3213
|
-
context:
|
|
3214
|
-
elementsRef:
|
|
3215
|
-
activeIndex:
|
|
3216
|
-
setActiveIndex:
|
|
3217
|
-
getFloatingProps:
|
|
3214
|
+
floatingStyles: N,
|
|
3215
|
+
context: w,
|
|
3216
|
+
elementsRef: P,
|
|
3217
|
+
activeIndex: D,
|
|
3218
|
+
setActiveIndex: T,
|
|
3219
|
+
getFloatingProps: S,
|
|
3218
3220
|
getItemProps: _,
|
|
3219
3221
|
getReferenceProps: ee,
|
|
3220
3222
|
disabled: t,
|
|
@@ -3226,9 +3228,9 @@ const br = { mainAxis: Y + 1, crossAxis: 0 }, Cr = {
|
|
|
3226
3228
|
}
|
|
3227
3229
|
);
|
|
3228
3230
|
});
|
|
3229
|
-
|
|
3230
|
-
const
|
|
3231
|
-
var
|
|
3231
|
+
un.displayName = "SubMenu";
|
|
3232
|
+
const mn = u((n) => {
|
|
3233
|
+
var S;
|
|
3232
3234
|
const { ref: a, children: t, ...e } = n, { middlewareData: s } = b(ie), { accentColor: o, radius: r, variant: c, size: l } = b(J), {
|
|
3233
3235
|
open: d,
|
|
3234
3236
|
nodeId: m,
|
|
@@ -3236,27 +3238,27 @@ const un = u((n) => {
|
|
|
3236
3238
|
context: p,
|
|
3237
3239
|
getFloatingProps: f,
|
|
3238
3240
|
getItemProps: C,
|
|
3239
|
-
activeIndex:
|
|
3240
|
-
setActiveIndex:
|
|
3241
|
-
elementsRef:
|
|
3242
|
-
floatingStyles:
|
|
3241
|
+
activeIndex: N,
|
|
3242
|
+
setActiveIndex: w,
|
|
3243
|
+
elementsRef: y,
|
|
3244
|
+
floatingStyles: R,
|
|
3243
3245
|
setOpen: L,
|
|
3244
|
-
side:
|
|
3245
|
-
} = b(
|
|
3246
|
+
side: P
|
|
3247
|
+
} = b(Fe), D = q(null), T = ge([g.setFloating, D]), A = z(() => {
|
|
3246
3248
|
var _;
|
|
3247
3249
|
return {
|
|
3248
|
-
...
|
|
3250
|
+
...R,
|
|
3249
3251
|
visibility: (_ = s.hide) != null && _.referenceHidden ? "hidden" : "visible"
|
|
3250
3252
|
};
|
|
3251
|
-
}, [
|
|
3252
|
-
return /* @__PURE__ */ i(
|
|
3253
|
+
}, [R, (S = s.hide) == null ? void 0 : S.referenceHidden]);
|
|
3254
|
+
return /* @__PURE__ */ i(Pt, { id: m, children: d && /* @__PURE__ */ i(Mt, { children: /* @__PURE__ */ i(Ot, { context: p, initialFocus: D, children: /* @__PURE__ */ i(Vt, { elementsRef: y, children: /* @__PURE__ */ i(
|
|
3253
3255
|
J.Provider,
|
|
3254
3256
|
{
|
|
3255
3257
|
value: {
|
|
3256
3258
|
getItemProps: C,
|
|
3257
|
-
activeIndex:
|
|
3258
|
-
setActiveIndex:
|
|
3259
|
-
elementsRef:
|
|
3259
|
+
activeIndex: N,
|
|
3260
|
+
setActiveIndex: w,
|
|
3261
|
+
elementsRef: y,
|
|
3260
3262
|
open: d,
|
|
3261
3263
|
setOpen: L,
|
|
3262
3264
|
refs: g,
|
|
@@ -3269,8 +3271,8 @@ const un = u((n) => {
|
|
|
3269
3271
|
"div",
|
|
3270
3272
|
{
|
|
3271
3273
|
className: "outline-none",
|
|
3272
|
-
ref:
|
|
3273
|
-
style:
|
|
3274
|
+
ref: T,
|
|
3275
|
+
style: A,
|
|
3274
3276
|
...f(),
|
|
3275
3277
|
children: /* @__PURE__ */ i(
|
|
3276
3278
|
"ul",
|
|
@@ -3278,13 +3280,14 @@ const un = u((n) => {
|
|
|
3278
3280
|
className: x(
|
|
3279
3281
|
"overmap-menu-sub-content",
|
|
3280
3282
|
Ua({ size: l }),
|
|
3281
|
-
Ve({ side:
|
|
3283
|
+
Ve({ side: P }),
|
|
3284
|
+
Le({ size: "md" }),
|
|
3282
3285
|
k({ radius: r, maxLarge: !0 }),
|
|
3283
3286
|
"max-h-(--overmap-menu-available-height)"
|
|
3284
3287
|
),
|
|
3285
3288
|
ref: a,
|
|
3286
3289
|
"data-state": pe(d),
|
|
3287
|
-
"data-side":
|
|
3290
|
+
"data-side": P,
|
|
3288
3291
|
"data-accent-color": o,
|
|
3289
3292
|
...e,
|
|
3290
3293
|
children: t
|
|
@@ -3295,9 +3298,9 @@ const un = u((n) => {
|
|
|
3295
3298
|
}
|
|
3296
3299
|
) }) }) }) });
|
|
3297
3300
|
});
|
|
3298
|
-
|
|
3299
|
-
const
|
|
3300
|
-
const { ref: a, children: t, ...e } = n, { refs: s, getReferenceProps: o, open: r, disabled: c } = b(
|
|
3301
|
+
mn.displayName = "MenuSubContent";
|
|
3302
|
+
const gn = u((n) => {
|
|
3303
|
+
const { ref: a, children: t, ...e } = n, { refs: s, getReferenceProps: o, open: r, disabled: c } = b(Fe), l = ge([a, s.setReference]);
|
|
3301
3304
|
return /* @__PURE__ */ i(
|
|
3302
3305
|
se,
|
|
3303
3306
|
{
|
|
@@ -3311,8 +3314,8 @@ const mn = u((n) => {
|
|
|
3311
3314
|
}
|
|
3312
3315
|
);
|
|
3313
3316
|
});
|
|
3314
|
-
|
|
3315
|
-
const
|
|
3317
|
+
gn.displayName = "MenuSubTrigger";
|
|
3318
|
+
const pn = u((n) => {
|
|
3316
3319
|
const { virtualElement: a, disabled: t } = n, { refs: e, setTriggerType: s, setOpen: o } = b(ie);
|
|
3317
3320
|
return B(() => {
|
|
3318
3321
|
s("virtual");
|
|
@@ -3320,24 +3323,24 @@ const gn = u((n) => {
|
|
|
3320
3323
|
!t && a ? (e.setPositionReference(a), o(!0)) : (e.setPositionReference(null), o(!1));
|
|
3321
3324
|
}, [t, e, o, a]), null;
|
|
3322
3325
|
});
|
|
3323
|
-
|
|
3326
|
+
pn.displayName = "VirtualTrigger";
|
|
3324
3327
|
const Jc = {
|
|
3325
|
-
Root:
|
|
3326
|
-
Content:
|
|
3328
|
+
Root: rn,
|
|
3329
|
+
Content: Ya,
|
|
3327
3330
|
// sub
|
|
3328
|
-
Sub:
|
|
3329
|
-
SubContent:
|
|
3330
|
-
SubTrigger:
|
|
3331
|
+
Sub: un,
|
|
3332
|
+
SubContent: mn,
|
|
3333
|
+
SubTrigger: gn,
|
|
3331
3334
|
// pages
|
|
3332
|
-
Pages:
|
|
3333
|
-
PageContent:
|
|
3334
|
-
PageTrigger:
|
|
3335
|
+
Pages: nn,
|
|
3336
|
+
PageContent: an,
|
|
3337
|
+
PageTrigger: sn,
|
|
3335
3338
|
// triggers
|
|
3336
|
-
ClickTrigger:
|
|
3337
|
-
ContextTrigger:
|
|
3338
|
-
VirtualTrigger:
|
|
3339
|
+
ClickTrigger: Xa,
|
|
3340
|
+
ContextTrigger: Qa,
|
|
3341
|
+
VirtualTrigger: pn,
|
|
3339
3342
|
// groups
|
|
3340
|
-
Group:
|
|
3343
|
+
Group: He,
|
|
3341
3344
|
SelectGroup: hr,
|
|
3342
3345
|
MultiSelectGroup: gr,
|
|
3343
3346
|
// items
|
|
@@ -3345,25 +3348,25 @@ const Jc = {
|
|
|
3345
3348
|
SelectItem: vr,
|
|
3346
3349
|
MultiSelectItem: pr,
|
|
3347
3350
|
SelectAllItem: fr,
|
|
3348
|
-
CheckboxItem:
|
|
3351
|
+
CheckboxItem: Wa,
|
|
3349
3352
|
// indicators
|
|
3350
|
-
SelectedIndicator:
|
|
3351
|
-
CheckboxItemIndicator:
|
|
3353
|
+
SelectedIndicator: ln,
|
|
3354
|
+
CheckboxItemIndicator: Ka,
|
|
3352
3355
|
// input
|
|
3353
|
-
InputRoot:
|
|
3354
|
-
InputField:
|
|
3355
|
-
InputSlot:
|
|
3356
|
+
InputRoot: Za,
|
|
3357
|
+
InputField: Ja,
|
|
3358
|
+
InputSlot: en,
|
|
3356
3359
|
// others
|
|
3357
|
-
Label:
|
|
3358
|
-
Separator:
|
|
3359
|
-
Scroll:
|
|
3360
|
+
Label: tn,
|
|
3361
|
+
Separator: dn,
|
|
3362
|
+
Scroll: cn
|
|
3360
3363
|
}, Ce = {
|
|
3361
3364
|
next: "ArrowDown",
|
|
3362
3365
|
prev: "ArrowUp",
|
|
3363
3366
|
first: "PageUp",
|
|
3364
3367
|
last: "PageDown",
|
|
3365
3368
|
selectItem: "Enter"
|
|
3366
|
-
}, te = "menu-item",
|
|
3369
|
+
}, te = "menu-item", Xe = "menu-group", Be = O({}), xn = O({}), bt = O({}), zr = h(["w-full", "outline-none"], {
|
|
3367
3370
|
variants: {
|
|
3368
3371
|
size: {
|
|
3369
3372
|
xs: ["p-0.5", "text-xs", "min-w-30"],
|
|
@@ -3382,7 +3385,7 @@ const Jc = {
|
|
|
3382
3385
|
full: ["rounded-lg"]
|
|
3383
3386
|
}
|
|
3384
3387
|
}
|
|
3385
|
-
}), Nr =
|
|
3388
|
+
}), Nr = h(
|
|
3386
3389
|
[
|
|
3387
3390
|
"select-none",
|
|
3388
3391
|
"relative",
|
|
@@ -3417,7 +3420,7 @@ const Jc = {
|
|
|
3417
3420
|
}
|
|
3418
3421
|
}
|
|
3419
3422
|
}
|
|
3420
|
-
), wr =
|
|
3423
|
+
), wr = h(["text-(--base-a11)", "flex", "items-center", "select-none", "py-1"], {
|
|
3421
3424
|
variants: {
|
|
3422
3425
|
size: {
|
|
3423
3426
|
xs: ["gap-1.5", "px-3", "text-xs"],
|
|
@@ -3427,7 +3430,7 @@ const Jc = {
|
|
|
3427
3430
|
xl: ["gap-2.5", "px-5", "text-lg"]
|
|
3428
3431
|
}
|
|
3429
3432
|
}
|
|
3430
|
-
}), Ir =
|
|
3433
|
+
}), Ir = h(["h-px", "bg-(--base-a6)", "w-auto", "shrink-0"], {
|
|
3431
3434
|
variants: {
|
|
3432
3435
|
size: {
|
|
3433
3436
|
xs: ["-mx-0.5", "my-0.5"],
|
|
@@ -3449,50 +3452,50 @@ const Jc = {
|
|
|
3449
3452
|
onPointerLeave: l,
|
|
3450
3453
|
onPointerMove: d,
|
|
3451
3454
|
...m
|
|
3452
|
-
} = n, g =
|
|
3453
|
-
(
|
|
3454
|
-
r == null || r(
|
|
3455
|
+
} = n, g = q(null), p = Qe(), { activeItemId: f, setActiveItemId: C, size: N, variant: w, radius: y } = b(Be), R = p === f, L = v(
|
|
3456
|
+
(S) => {
|
|
3457
|
+
r == null || r(S);
|
|
3455
3458
|
},
|
|
3456
3459
|
[r]
|
|
3457
|
-
),
|
|
3458
|
-
(
|
|
3459
|
-
o == null || o(
|
|
3460
|
+
), P = v(
|
|
3461
|
+
(S) => {
|
|
3462
|
+
o == null || o(S), L(new Event("menu-select"));
|
|
3460
3463
|
},
|
|
3461
3464
|
[L, o]
|
|
3462
|
-
),
|
|
3463
|
-
(
|
|
3464
|
-
c == null || c(
|
|
3465
|
+
), D = v(
|
|
3466
|
+
(S) => {
|
|
3467
|
+
c == null || c(S), !S.defaultPrevented && C(p);
|
|
3465
3468
|
},
|
|
3466
3469
|
[c, C, p]
|
|
3467
|
-
),
|
|
3468
|
-
(
|
|
3469
|
-
l == null || l(
|
|
3470
|
+
), T = v(
|
|
3471
|
+
(S) => {
|
|
3472
|
+
l == null || l(S), !S.defaultPrevented && C(null);
|
|
3470
3473
|
},
|
|
3471
3474
|
[l, C]
|
|
3472
|
-
),
|
|
3473
|
-
(
|
|
3474
|
-
d == null || d(
|
|
3475
|
+
), A = v(
|
|
3476
|
+
(S) => {
|
|
3477
|
+
d == null || d(S), !S.defaultPrevented && C(p);
|
|
3475
3478
|
},
|
|
3476
3479
|
[d, p, C]
|
|
3477
3480
|
);
|
|
3478
3481
|
return B(() => {
|
|
3479
3482
|
if (!g.current) return;
|
|
3480
|
-
const
|
|
3481
|
-
return
|
|
3482
|
-
|
|
3483
|
+
const S = g.current;
|
|
3484
|
+
return S.addEventListener("menu-select", L), () => {
|
|
3485
|
+
S.removeEventListener("menu-select", L);
|
|
3483
3486
|
};
|
|
3484
3487
|
}, [L]), /* @__PURE__ */ i(
|
|
3485
3488
|
"div",
|
|
3486
3489
|
{
|
|
3487
3490
|
ref: we([a, g]),
|
|
3488
|
-
className: x(Nr({ size:
|
|
3491
|
+
className: x(Nr({ size: N, variant: w }), k({ radius: y, maxLarge: !0 }), e),
|
|
3489
3492
|
role: "menuitem",
|
|
3490
|
-
onClick:
|
|
3491
|
-
onPointerEnter:
|
|
3492
|
-
onPointerLeave:
|
|
3493
|
-
onPointerMove:
|
|
3493
|
+
onClick: P,
|
|
3494
|
+
onPointerEnter: D,
|
|
3495
|
+
onPointerLeave: T,
|
|
3496
|
+
onPointerMove: A,
|
|
3494
3497
|
[te]: p,
|
|
3495
|
-
"data-active": Q(
|
|
3498
|
+
"data-active": Q(R),
|
|
3496
3499
|
"data-disabled": Q(s),
|
|
3497
3500
|
"aria-disabled": Q(s),
|
|
3498
3501
|
...m,
|
|
@@ -3501,8 +3504,8 @@ const Jc = {
|
|
|
3501
3504
|
);
|
|
3502
3505
|
});
|
|
3503
3506
|
le.displayName = "MenuItem";
|
|
3504
|
-
const
|
|
3505
|
-
const { ref: a, checked: t, onCheckedChange: e, onSelect: s, ...o } = n, r =
|
|
3507
|
+
const fn = u((n) => {
|
|
3508
|
+
const { ref: a, checked: t, onCheckedChange: e, onSelect: s, ...o } = n, r = v(
|
|
3506
3509
|
(c) => {
|
|
3507
3510
|
if (s == null || s(c), !c.defaultPrevented)
|
|
3508
3511
|
switch (t) {
|
|
@@ -3521,32 +3524,32 @@ const xn = u((n) => {
|
|
|
3521
3524
|
);
|
|
3522
3525
|
return /* @__PURE__ */ i(Se.Provider, { value: t, children: /* @__PURE__ */ i(le, { ref: a, onSelect: r, ...o }) });
|
|
3523
3526
|
});
|
|
3524
|
-
|
|
3525
|
-
const
|
|
3527
|
+
fn.displayName = "MenuCheckboxItem";
|
|
3528
|
+
const hn = u((n) => {
|
|
3526
3529
|
const { ref: a, children: t, ...e } = n;
|
|
3527
|
-
return /* @__PURE__ */ i(
|
|
3530
|
+
return /* @__PURE__ */ i(Ge, { ref: a, ...e, children: t });
|
|
3528
3531
|
});
|
|
3529
|
-
|
|
3530
|
-
const
|
|
3531
|
-
const { ref: a, children: t, ...e } = n, s =
|
|
3532
|
+
hn.displayName = "MenuCheckboxItemIndicator";
|
|
3533
|
+
const $e = u((n) => {
|
|
3534
|
+
const { ref: a, children: t, ...e } = n, s = Qe(), [o, r] = E(null), c = z(
|
|
3532
3535
|
() => ({
|
|
3533
3536
|
labelId: o,
|
|
3534
3537
|
setLabelId: r
|
|
3535
3538
|
}),
|
|
3536
3539
|
[o]
|
|
3537
3540
|
);
|
|
3538
|
-
return /* @__PURE__ */ i("div", { ref: a, role: "group", [
|
|
3541
|
+
return /* @__PURE__ */ i("div", { ref: a, role: "group", [Xe]: s, "aria-labelledby": o ?? void 0, ...e, children: /* @__PURE__ */ i(xn, { value: c, children: t }) });
|
|
3539
3542
|
});
|
|
3540
|
-
|
|
3541
|
-
const
|
|
3542
|
-
const { ref: a, children: t, id: e, className: s, ...o } = n, r =
|
|
3543
|
+
$e.displayName = "MenuGroup";
|
|
3544
|
+
const vn = u((n) => {
|
|
3545
|
+
const { ref: a, children: t, id: e, className: s, ...o } = n, r = bo(e), { size: c } = b(Be), { setLabelId: l } = b(xn);
|
|
3543
3546
|
return B(() => {
|
|
3544
3547
|
l(r);
|
|
3545
3548
|
}, [r, l]), /* @__PURE__ */ i("div", { ref: a, id: r, className: x(wr({ size: c }), s), ...o, children: t });
|
|
3546
3549
|
});
|
|
3547
|
-
|
|
3550
|
+
vn.displayName = "MenuGroupLabel";
|
|
3548
3551
|
const Sr = F((n) => {
|
|
3549
|
-
const { ref: a, children: t, onSelect: e, ...s } = n, { allSelected: o, someSelected: r, toggleSelectAll: c } = b(Z), l = o ? !0 : r ? "indeterminate" : !1, d =
|
|
3552
|
+
const { ref: a, children: t, onSelect: e, ...s } = n, { allSelected: o, someSelected: r, toggleSelectAll: c } = b(Z), l = o ? !0 : r ? "indeterminate" : !1, d = v(
|
|
3550
3553
|
(m) => {
|
|
3551
3554
|
e == null || e(m), !m.defaultPrevented && c();
|
|
3552
3555
|
},
|
|
@@ -3555,11 +3558,11 @@ const Sr = F((n) => {
|
|
|
3555
3558
|
return /* @__PURE__ */ i(le, { onSelect: d, ref: a, "data-state": Ie(l), ...s, children: /* @__PURE__ */ i(Se, { value: l, children: t }) });
|
|
3556
3559
|
}), kr = F(function(a) {
|
|
3557
3560
|
const { ref: t, children: e, defaultValues: s, values: o, onValuesChange: r, ...c } = a;
|
|
3558
|
-
return /* @__PURE__ */ i(
|
|
3561
|
+
return /* @__PURE__ */ i($e, { ref: t, ...c, children: /* @__PURE__ */ i(De, { defaultValues: s, values: o, onValuesChange: r, children: e }) });
|
|
3559
3562
|
}), Rr = F(function(n) {
|
|
3560
3563
|
const { ref: a, onSelect: t, children: e, value: s, ...o } = n, { selected: r, selectValue: c, registerValue: l } = b(Z);
|
|
3561
3564
|
ue(() => l(s), [l, s]);
|
|
3562
|
-
const d = r(s), m =
|
|
3565
|
+
const d = r(s), m = v(
|
|
3563
3566
|
(g) => {
|
|
3564
3567
|
t == null || t(g), !g.defaultPrevented && c(s);
|
|
3565
3568
|
},
|
|
@@ -3576,41 +3579,41 @@ const Sr = F((n) => {
|
|
|
3576
3579
|
children: /* @__PURE__ */ i(xe, { value: d, children: e })
|
|
3577
3580
|
}
|
|
3578
3581
|
);
|
|
3579
|
-
}),
|
|
3580
|
-
const { children: a, ref: t, page: e, ...s } = n, { page: o } = b(
|
|
3581
|
-
return /* @__PURE__ */ i("div", { ref: t, "data-active":
|
|
3582
|
+
}), bn = u((n) => {
|
|
3583
|
+
const { children: a, ref: t, page: e, ...s } = n, { page: o } = b(bt), r = e === o;
|
|
3584
|
+
return /* @__PURE__ */ i("div", { ref: t, "data-active": Ae(r), hidden: !r, ...s, children: r ? a : null });
|
|
3582
3585
|
});
|
|
3583
|
-
|
|
3584
|
-
const
|
|
3585
|
-
const { children: a, defaultPage: t = "", page: e, onPageChange: s } = n, [o, r] = X(t, e, s), c =
|
|
3586
|
+
bn.displayName = "MenuPage";
|
|
3587
|
+
const Cn = u((n) => {
|
|
3588
|
+
const { children: a, defaultPage: t = "", page: e, onPageChange: s } = n, [o, r] = X(t, e, s), c = z(
|
|
3586
3589
|
() => ({
|
|
3587
3590
|
page: o,
|
|
3588
3591
|
setPage: r
|
|
3589
3592
|
}),
|
|
3590
3593
|
[o, r]
|
|
3591
3594
|
);
|
|
3592
|
-
return /* @__PURE__ */ i(
|
|
3595
|
+
return /* @__PURE__ */ i(bt, { value: c, children: a });
|
|
3593
3596
|
});
|
|
3594
|
-
|
|
3595
|
-
const
|
|
3596
|
-
const { ref: a, children: t, page: e, onSelect: s, ...o } = n, { page: r, setPage: c } = b(
|
|
3597
|
+
Cn.displayName = "MenuPages";
|
|
3598
|
+
const yn = u((n) => {
|
|
3599
|
+
const { ref: a, children: t, page: e, onSelect: s, ...o } = n, { page: r, setPage: c } = b(bt), l = e === r, d = v(
|
|
3597
3600
|
(m) => {
|
|
3598
3601
|
s == null || s(m), !m.defaultPrevented && c(e);
|
|
3599
3602
|
},
|
|
3600
3603
|
[s, e, c]
|
|
3601
3604
|
);
|
|
3602
|
-
return /* @__PURE__ */ i(le, { ref: a, onSelect: d, "data-state":
|
|
3605
|
+
return /* @__PURE__ */ i(le, { ref: a, onSelect: d, "data-state": Ae(l), ...o, children: /* @__PURE__ */ i(xe, { value: l, children: t }) });
|
|
3603
3606
|
});
|
|
3604
|
-
|
|
3605
|
-
const
|
|
3607
|
+
yn.displayName = "CommandMenuPageTriggerItem";
|
|
3608
|
+
const kt = (n, a, t, e) => {
|
|
3606
3609
|
switch (t) {
|
|
3607
3610
|
case "next":
|
|
3608
3611
|
return n === a - 1 ? e ? 0 : n : n + 1;
|
|
3609
3612
|
case "prev":
|
|
3610
3613
|
return n === 0 ? e ? a - 1 : n : n - 1;
|
|
3611
3614
|
}
|
|
3612
|
-
},
|
|
3613
|
-
const a =
|
|
3615
|
+
}, zn = u((n) => {
|
|
3616
|
+
const a = V(), {
|
|
3614
3617
|
ref: t,
|
|
3615
3618
|
children: e,
|
|
3616
3619
|
className: s,
|
|
@@ -3622,45 +3625,45 @@ const St = (n, a, t, e) => {
|
|
|
3622
3625
|
size: d = "md",
|
|
3623
3626
|
variant: m = "soft",
|
|
3624
3627
|
...g
|
|
3625
|
-
} = n, p =
|
|
3626
|
-
(
|
|
3627
|
-
[
|
|
3628
|
-
),
|
|
3629
|
-
(
|
|
3630
|
-
[
|
|
3631
|
-
),
|
|
3632
|
-
(
|
|
3633
|
-
[f,
|
|
3634
|
-
), L =
|
|
3635
|
-
(
|
|
3636
|
-
const
|
|
3637
|
-
return
|
|
3628
|
+
} = n, p = q(null), [f, C] = E(null), N = v((M) => Array.from(M.querySelectorAll(`[${te}]:not([data-disabled=true]`)), []), w = v(
|
|
3629
|
+
(M) => N(M).at(0),
|
|
3630
|
+
[N]
|
|
3631
|
+
), y = v(
|
|
3632
|
+
(M) => N(M).at(-1),
|
|
3633
|
+
[N]
|
|
3634
|
+
), R = v(
|
|
3635
|
+
(M) => N(M).find((I) => I.getAttribute(te) === f),
|
|
3636
|
+
[f, N]
|
|
3637
|
+
), L = v(
|
|
3638
|
+
(M, I) => {
|
|
3639
|
+
const G = N(M), he = R(M), ve = G.findIndex((Ns) => Ns === he), Ue = kt(ve, G.length, I, r);
|
|
3640
|
+
return G[Ue];
|
|
3638
3641
|
},
|
|
3639
|
-
[
|
|
3640
|
-
),
|
|
3641
|
-
var
|
|
3642
|
-
return ((
|
|
3643
|
-
}, [
|
|
3644
|
-
(
|
|
3645
|
-
const I =
|
|
3642
|
+
[R, N, r]
|
|
3643
|
+
), P = v(() => p.current ? Array.from(p.current.querySelectorAll(`[${Xe}]`)) : [], []), D = v(() => {
|
|
3644
|
+
var M;
|
|
3645
|
+
return ((M = R(p.current)) == null ? void 0 : M.closest(`[${Xe}]`)) ?? void 0;
|
|
3646
|
+
}, [R]), T = v(
|
|
3647
|
+
(M) => {
|
|
3648
|
+
const I = P(), G = D(), he = I.findIndex((Ue) => Ue === G), ve = kt(he, I.length, M, r);
|
|
3646
3649
|
return I[ve];
|
|
3647
3650
|
},
|
|
3648
|
-
[
|
|
3649
|
-
),
|
|
3650
|
-
(
|
|
3651
|
-
if (o == null || o(
|
|
3652
|
-
switch (
|
|
3651
|
+
[D, P, r]
|
|
3652
|
+
), A = v(() => P().at(0), [P]), S = v(() => P().at(-1), [P]), _ = v(
|
|
3653
|
+
(M) => {
|
|
3654
|
+
if (o == null || o(M), !M.defaultPrevented)
|
|
3655
|
+
switch (M.code) {
|
|
3653
3656
|
case Ce.selectItem: {
|
|
3654
|
-
const I =
|
|
3657
|
+
const I = R(p.current);
|
|
3655
3658
|
I && I.dispatchEvent(new Event("menu-select"));
|
|
3656
3659
|
break;
|
|
3657
3660
|
}
|
|
3658
3661
|
case Ce.next: {
|
|
3659
3662
|
let I;
|
|
3660
|
-
if (
|
|
3661
|
-
const
|
|
3662
|
-
if (!
|
|
3663
|
-
I =
|
|
3663
|
+
if (M.shiftKey) {
|
|
3664
|
+
const G = T("next");
|
|
3665
|
+
if (!G) return;
|
|
3666
|
+
I = w(G);
|
|
3664
3667
|
} else
|
|
3665
3668
|
I = L(p.current, "next");
|
|
3666
3669
|
if (!I) return;
|
|
@@ -3669,10 +3672,10 @@ const St = (n, a, t, e) => {
|
|
|
3669
3672
|
}
|
|
3670
3673
|
case Ce.prev: {
|
|
3671
3674
|
let I;
|
|
3672
|
-
if (
|
|
3673
|
-
const
|
|
3674
|
-
if (!
|
|
3675
|
-
I =
|
|
3675
|
+
if (M.shiftKey) {
|
|
3676
|
+
const G = T("prev");
|
|
3677
|
+
if (!G) return;
|
|
3678
|
+
I = w(G);
|
|
3676
3679
|
} else
|
|
3677
3680
|
I = L(p.current, "prev");
|
|
3678
3681
|
if (!I) return;
|
|
@@ -3681,38 +3684,38 @@ const St = (n, a, t, e) => {
|
|
|
3681
3684
|
}
|
|
3682
3685
|
case Ce.first: {
|
|
3683
3686
|
let I;
|
|
3684
|
-
if (
|
|
3685
|
-
const
|
|
3686
|
-
if (!
|
|
3687
|
-
I =
|
|
3687
|
+
if (M.shiftKey) {
|
|
3688
|
+
const G = A();
|
|
3689
|
+
if (!G) return;
|
|
3690
|
+
I = w(G);
|
|
3688
3691
|
} else
|
|
3689
|
-
I =
|
|
3692
|
+
I = w(p.current);
|
|
3690
3693
|
if (!I) return;
|
|
3691
3694
|
C(I.getAttribute(te));
|
|
3692
3695
|
break;
|
|
3693
3696
|
}
|
|
3694
3697
|
case Ce.last: {
|
|
3695
3698
|
let I;
|
|
3696
|
-
if (
|
|
3697
|
-
const
|
|
3698
|
-
if (!
|
|
3699
|
-
I =
|
|
3699
|
+
if (M.shiftKey) {
|
|
3700
|
+
const G = S();
|
|
3701
|
+
if (!G) return;
|
|
3702
|
+
I = w(G);
|
|
3700
3703
|
} else
|
|
3701
|
-
I =
|
|
3704
|
+
I = y(p.current);
|
|
3702
3705
|
if (!I) return;
|
|
3703
3706
|
C(I.getAttribute(te));
|
|
3704
3707
|
break;
|
|
3705
3708
|
}
|
|
3706
3709
|
}
|
|
3707
3710
|
},
|
|
3708
|
-
[
|
|
3711
|
+
[R, A, w, S, y, T, L, o]
|
|
3709
3712
|
);
|
|
3710
3713
|
B(() => {
|
|
3711
3714
|
var I;
|
|
3712
|
-
const
|
|
3713
|
-
|
|
3714
|
-
}, [
|
|
3715
|
-
const ee =
|
|
3715
|
+
const M = w(p.current);
|
|
3716
|
+
M && ((I = p.current) == null || I.focus(), C(M.getAttribute(te)));
|
|
3717
|
+
}, [w]);
|
|
3718
|
+
const ee = z(
|
|
3716
3719
|
() => ({
|
|
3717
3720
|
activeItemId: f,
|
|
3718
3721
|
setActiveItemId: C,
|
|
@@ -3735,20 +3738,20 @@ const St = (n, a, t, e) => {
|
|
|
3735
3738
|
"aria-activedescendant": f ?? void 0,
|
|
3736
3739
|
"data-accent-color": l,
|
|
3737
3740
|
...g,
|
|
3738
|
-
children: /* @__PURE__ */ i(
|
|
3741
|
+
children: /* @__PURE__ */ i(Be, { value: ee, children: e })
|
|
3739
3742
|
}
|
|
3740
3743
|
);
|
|
3741
3744
|
});
|
|
3742
|
-
|
|
3743
|
-
const
|
|
3745
|
+
zn.displayName = "MenuRoot";
|
|
3746
|
+
const Nn = u((n) => {
|
|
3744
3747
|
const { ref: a, children: t, ...e } = n;
|
|
3745
|
-
return /* @__PURE__ */ i(
|
|
3748
|
+
return /* @__PURE__ */ i(_e, { ref: a, ...e, children: t });
|
|
3746
3749
|
});
|
|
3747
|
-
|
|
3750
|
+
Nn.displayName = "MenuCheckboxItemIndicator";
|
|
3748
3751
|
const Tr = F(function(a) {
|
|
3749
3752
|
const { ref: t, children: e, required: s, defaultValue: o, value: r, onValueChange: c, ...l } = a;
|
|
3750
|
-
return /* @__PURE__ */ i(
|
|
3751
|
-
|
|
3753
|
+
return /* @__PURE__ */ i($e, { ref: t, ...l, children: s ? /* @__PURE__ */ i(ot, { defaultValue: o, value: r, onValueChange: c, children: e }) : /* @__PURE__ */ i(
|
|
3754
|
+
rt,
|
|
3752
3755
|
{
|
|
3753
3756
|
defaultValue: o,
|
|
3754
3757
|
value: r,
|
|
@@ -3757,7 +3760,7 @@ const Tr = F(function(a) {
|
|
|
3757
3760
|
}
|
|
3758
3761
|
) });
|
|
3759
3762
|
}), Pr = F(function(n) {
|
|
3760
|
-
const { ref: a, value: t, onSelect: e, children: s, ...o } = n, { selected: r, selectValue: c } = b(Ne), l = r(t), d =
|
|
3763
|
+
const { ref: a, value: t, onSelect: e, children: s, ...o } = n, { selected: r, selectValue: c } = b(Ne), l = r(t), d = v(
|
|
3761
3764
|
(m) => {
|
|
3762
3765
|
e == null || e(m), !m.defaultPrevented && c(t);
|
|
3763
3766
|
},
|
|
@@ -3774,31 +3777,31 @@ const Tr = F(function(a) {
|
|
|
3774
3777
|
children: /* @__PURE__ */ i(xe, { value: l, children: s })
|
|
3775
3778
|
}
|
|
3776
3779
|
);
|
|
3777
|
-
}),
|
|
3778
|
-
const { ref: a, className: t, ...e } = n, { size: s } = b(
|
|
3779
|
-
return /* @__PURE__ */ i(
|
|
3780
|
+
}), wn = u((n) => {
|
|
3781
|
+
const { ref: a, className: t, ...e } = n, { size: s } = b(Be);
|
|
3782
|
+
return /* @__PURE__ */ i(Ze.Root, { className: x(Ir({ size: s }), t), ref: a, ...e });
|
|
3780
3783
|
});
|
|
3781
|
-
|
|
3784
|
+
wn.displayName = "MenuSeparator";
|
|
3782
3785
|
const Zc = {
|
|
3783
|
-
Root:
|
|
3784
|
-
Group:
|
|
3785
|
-
GroupLabel:
|
|
3786
|
+
Root: zn,
|
|
3787
|
+
Group: $e,
|
|
3788
|
+
GroupLabel: vn,
|
|
3786
3789
|
Item: le,
|
|
3787
|
-
Separator:
|
|
3790
|
+
Separator: wn,
|
|
3788
3791
|
SelectGroup: Tr,
|
|
3789
3792
|
SelectItem: Pr,
|
|
3790
3793
|
MultiSelectGroup: kr,
|
|
3791
3794
|
MultiSelectItem: Rr,
|
|
3792
3795
|
SelectAllItem: Sr,
|
|
3793
|
-
SelectedIndicator:
|
|
3794
|
-
CheckboxItem:
|
|
3795
|
-
CheckedIndicator:
|
|
3796
|
-
Pages:
|
|
3797
|
-
Page:
|
|
3798
|
-
PageTriggerItem:
|
|
3799
|
-
},
|
|
3800
|
-
|
|
3801
|
-
const
|
|
3796
|
+
SelectedIndicator: Nn,
|
|
3797
|
+
CheckboxItem: fn,
|
|
3798
|
+
CheckedIndicator: hn,
|
|
3799
|
+
Pages: Cn,
|
|
3800
|
+
Page: bn,
|
|
3801
|
+
PageTriggerItem: yn
|
|
3802
|
+
}, In = u((n) => /* @__PURE__ */ i(et.HiddenInput, { ...n }));
|
|
3803
|
+
In.displayName = "OneTimePasswordFieldHiddenInput";
|
|
3804
|
+
const Sn = O({}), Mr = h(
|
|
3802
3805
|
[
|
|
3803
3806
|
"flex",
|
|
3804
3807
|
"items-center",
|
|
@@ -3853,10 +3856,10 @@ const In = T({}), Mr = v(
|
|
|
3853
3856
|
variant: "surface"
|
|
3854
3857
|
}
|
|
3855
3858
|
}
|
|
3856
|
-
),
|
|
3857
|
-
const { ref: a, className: t, ...e } = n, { variant: s, size: o, radius: r, accentColor: c } = b(
|
|
3859
|
+
), kn = u((n) => {
|
|
3860
|
+
const { ref: a, className: t, ...e } = n, { variant: s, size: o, radius: r, accentColor: c } = b(Sn);
|
|
3858
3861
|
return /* @__PURE__ */ i(
|
|
3859
|
-
|
|
3862
|
+
et.Input,
|
|
3860
3863
|
{
|
|
3861
3864
|
ref: a,
|
|
3862
3865
|
className: x(
|
|
@@ -3869,9 +3872,9 @@ const In = T({}), Mr = v(
|
|
|
3869
3872
|
}
|
|
3870
3873
|
);
|
|
3871
3874
|
});
|
|
3872
|
-
|
|
3873
|
-
const
|
|
3874
|
-
const a =
|
|
3875
|
+
kn.displayName = "OneTimePasswordFieldInput";
|
|
3876
|
+
const Rn = u((n) => {
|
|
3877
|
+
const a = V(), {
|
|
3875
3878
|
ref: t,
|
|
3876
3879
|
children: e,
|
|
3877
3880
|
variant: s = "surface",
|
|
@@ -3879,20 +3882,20 @@ const kn = u((n) => {
|
|
|
3879
3882
|
radius: r = a.radius,
|
|
3880
3883
|
accentColor: c = a.accentColor,
|
|
3881
3884
|
...l
|
|
3882
|
-
} = n, d =
|
|
3883
|
-
return /* @__PURE__ */ i(
|
|
3885
|
+
} = n, d = z(() => ({ variant: s, size: o, radius: r, accentColor: c }), [c, r, o, s]);
|
|
3886
|
+
return /* @__PURE__ */ i(et.Root, { ref: t, "data-accent-color": c, ...l, children: /* @__PURE__ */ i(Sn, { value: d, children: e }) });
|
|
3884
3887
|
});
|
|
3885
|
-
|
|
3888
|
+
Rn.displayName = "OneTimePasswordFieldRoot";
|
|
3886
3889
|
const ei = {
|
|
3887
|
-
HiddenInput:
|
|
3888
|
-
Input:
|
|
3889
|
-
Root:
|
|
3890
|
-
},
|
|
3890
|
+
HiddenInput: In,
|
|
3891
|
+
Input: kn,
|
|
3892
|
+
Root: Rn
|
|
3893
|
+
}, Tn = u((n) => {
|
|
3891
3894
|
const { ref: a, ...t } = n;
|
|
3892
3895
|
return /* @__PURE__ */ i(H.Close, { ref: a, ...t });
|
|
3893
3896
|
});
|
|
3894
|
-
|
|
3895
|
-
const Or =
|
|
3897
|
+
Tn.displayName = "OverlayClose";
|
|
3898
|
+
const Or = h([
|
|
3896
3899
|
"fixed",
|
|
3897
3900
|
"inset-0",
|
|
3898
3901
|
"bg-(--color-background)",
|
|
@@ -3902,7 +3905,7 @@ const Or = v([
|
|
|
3902
3905
|
"data-[state='open']:animate-in",
|
|
3903
3906
|
"data-[state='open']:fade-in-0",
|
|
3904
3907
|
"data-[state='open']:zoom-in-95"
|
|
3905
|
-
]),
|
|
3908
|
+
]), Pn = u((n) => {
|
|
3906
3909
|
const { ref: a, container: t, className: e, ...s } = n;
|
|
3907
3910
|
return /* @__PURE__ */ i(H.Portal, { container: t, children: /* @__PURE__ */ i(
|
|
3908
3911
|
H.Content,
|
|
@@ -3914,54 +3917,54 @@ const Or = v([
|
|
|
3914
3917
|
}
|
|
3915
3918
|
) });
|
|
3916
3919
|
});
|
|
3917
|
-
|
|
3918
|
-
const
|
|
3920
|
+
Pn.displayName = "OverlayContent";
|
|
3921
|
+
const Mn = u((n) => {
|
|
3919
3922
|
const { ref: a, ...t } = n;
|
|
3920
3923
|
return /* @__PURE__ */ i(H.Description, { ref: a, ...t });
|
|
3921
3924
|
});
|
|
3922
|
-
|
|
3923
|
-
const
|
|
3924
|
-
|
|
3925
|
-
const
|
|
3925
|
+
Mn.displayName = "OverlayDescription";
|
|
3926
|
+
const On = u((n) => /* @__PURE__ */ i(H.Root, { ...n }));
|
|
3927
|
+
On.displayName = "OverlayRoot";
|
|
3928
|
+
const Vn = u((n) => {
|
|
3926
3929
|
const { ref: a, ...t } = n;
|
|
3927
3930
|
return /* @__PURE__ */ i(H.Title, { ref: a, ...t });
|
|
3928
3931
|
});
|
|
3929
|
-
|
|
3930
|
-
const
|
|
3932
|
+
Vn.displayName = "OverlayTitle";
|
|
3933
|
+
const Ln = u((n) => {
|
|
3931
3934
|
const { ref: a, ...t } = n;
|
|
3932
3935
|
return /* @__PURE__ */ i(H.Trigger, { ref: a, ...t });
|
|
3933
3936
|
});
|
|
3934
|
-
|
|
3937
|
+
Ln.displayName = "OverlayTrigger";
|
|
3935
3938
|
const ti = {
|
|
3936
|
-
Root:
|
|
3937
|
-
Content:
|
|
3938
|
-
Title:
|
|
3939
|
-
Description:
|
|
3940
|
-
Trigger:
|
|
3941
|
-
Close:
|
|
3942
|
-
},
|
|
3943
|
-
const { absoluteCentering: a, message: t = "Something went wrong", onRetry: e } = n, { resetBoundary: s } =
|
|
3939
|
+
Root: On,
|
|
3940
|
+
Content: Pn,
|
|
3941
|
+
Title: Vn,
|
|
3942
|
+
Description: Mn,
|
|
3943
|
+
Trigger: Ln,
|
|
3944
|
+
Close: Tn
|
|
3945
|
+
}, We = { placeSelf: "center" }, An = u((n) => {
|
|
3946
|
+
const { absoluteCentering: a, message: t = "Something went wrong", onRetry: e } = n, { resetBoundary: s } = oo(), o = "20px", r = a ? { position: "absolute", top: "50%", transform: "translateY(-50%)" } : void 0, c = v(() => {
|
|
3944
3947
|
s(), e();
|
|
3945
3948
|
}, [e, s]);
|
|
3946
3949
|
return /* @__PURE__ */ W("div", { className: "flex w-full gap-2", style: r, children: [
|
|
3947
3950
|
/* @__PURE__ */ i("div", { style: { flexGrow: 1 } }),
|
|
3948
|
-
/* @__PURE__ */ i(
|
|
3949
|
-
/* @__PURE__ */ i("span", { style: { lineHeight: o, ...
|
|
3950
|
-
/* @__PURE__ */ i(
|
|
3951
|
+
/* @__PURE__ */ i(U, { icon: Bs, size: o, style: We }),
|
|
3952
|
+
/* @__PURE__ */ i("span", { style: { lineHeight: o, ...We }, children: t }),
|
|
3953
|
+
/* @__PURE__ */ i(at, { "aria-label": "Try again", variant: "soft", onClick: c, style: We, children: /* @__PURE__ */ i(U, { icon: $s, size: o }) }),
|
|
3951
3954
|
/* @__PURE__ */ i("div", { style: { flexGrow: 1 } })
|
|
3952
3955
|
] });
|
|
3953
3956
|
});
|
|
3954
|
-
|
|
3957
|
+
An.displayName = "ErrorFallback";
|
|
3955
3958
|
const Vr = u((n) => {
|
|
3956
|
-
const { absoluteCentering: a, message: t } = n, [e, s] = E(0), o =
|
|
3959
|
+
const { absoluteCentering: a, message: t } = n, [e, s] = E(0), o = v((c, l) => {
|
|
3957
3960
|
console.error("Error in OvermapErrorBoundary:", c, l), s((d) => d + 1);
|
|
3958
|
-
}, []), r =
|
|
3961
|
+
}, []), r = v(() => {
|
|
3959
3962
|
s((c) => c + 1);
|
|
3960
3963
|
}, []);
|
|
3961
3964
|
return /* @__PURE__ */ i(
|
|
3962
|
-
|
|
3965
|
+
ro,
|
|
3963
3966
|
{
|
|
3964
|
-
fallback: /* @__PURE__ */ i(
|
|
3967
|
+
fallback: /* @__PURE__ */ i(An, { absoluteCentering: a, message: t, onRetry: r }),
|
|
3965
3968
|
onError: o,
|
|
3966
3969
|
children: n.children
|
|
3967
3970
|
},
|
|
@@ -3969,12 +3972,12 @@ const Vr = u((n) => {
|
|
|
3969
3972
|
);
|
|
3970
3973
|
});
|
|
3971
3974
|
Vr.displayName = "OvermapErrorBoundary";
|
|
3972
|
-
const
|
|
3975
|
+
const Dn = u((n) => {
|
|
3973
3976
|
const { ref: a, children: t, className: e, ...s } = n;
|
|
3974
3977
|
return /* @__PURE__ */ i(Pe.Arrow, { className: x("fill-(--base-6)", e), ref: a, ...s, children: t });
|
|
3975
3978
|
});
|
|
3976
|
-
|
|
3977
|
-
const Lr =
|
|
3979
|
+
Dn.displayName = "PopoverArrow";
|
|
3980
|
+
const Lr = h(["bg-(--color-background)", "dark:bg-(--base-2)", "ring-1", "ring-(--base-6)"], {
|
|
3978
3981
|
variants: {
|
|
3979
3982
|
size: {
|
|
3980
3983
|
xs: ["p-2"],
|
|
@@ -3987,8 +3990,8 @@ const Lr = v(["bg-(--color-background)", "dark:bg-(--base-2)", "ring-1", "ring-(
|
|
|
3987
3990
|
defaultVariants: {
|
|
3988
3991
|
size: "md"
|
|
3989
3992
|
}
|
|
3990
|
-
}),
|
|
3991
|
-
const a =
|
|
3993
|
+
}), Gn = u((n) => {
|
|
3994
|
+
const a = V(), {
|
|
3992
3995
|
ref: t,
|
|
3993
3996
|
children: e,
|
|
3994
3997
|
className: s,
|
|
@@ -3997,14 +4000,16 @@ const Lr = v(["bg-(--color-background)", "dark:bg-(--base-2)", "ring-1", "ring-(
|
|
|
3997
4000
|
size: c = "md",
|
|
3998
4001
|
sideOffset: l = 5,
|
|
3999
4002
|
container: d,
|
|
4000
|
-
|
|
4003
|
+
side: m,
|
|
4004
|
+
...g
|
|
4001
4005
|
} = n;
|
|
4002
4006
|
return /* @__PURE__ */ i(Pe.Portal, { container: d, children: /* @__PURE__ */ i(
|
|
4003
4007
|
Pe.Content,
|
|
4004
4008
|
{
|
|
4005
4009
|
className: x(
|
|
4006
4010
|
Lr({ size: c }),
|
|
4007
|
-
Ve({
|
|
4011
|
+
Ve({ side: m }),
|
|
4012
|
+
Le({ size: "md" }),
|
|
4008
4013
|
k({ radius: o, maxLarge: !0 }),
|
|
4009
4014
|
s
|
|
4010
4015
|
),
|
|
@@ -4012,17 +4017,18 @@ const Lr = v(["bg-(--color-background)", "dark:bg-(--base-2)", "ring-1", "ring-(
|
|
|
4012
4017
|
sideOffset: l,
|
|
4013
4018
|
"data-accent-color": r,
|
|
4014
4019
|
"data-floating-content": "",
|
|
4015
|
-
|
|
4020
|
+
side: m,
|
|
4021
|
+
...g,
|
|
4016
4022
|
children: e
|
|
4017
4023
|
}
|
|
4018
4024
|
) });
|
|
4019
4025
|
});
|
|
4020
|
-
|
|
4026
|
+
Gn.displayName = "PopoverContent";
|
|
4021
4027
|
const ai = {
|
|
4022
4028
|
...Pe,
|
|
4023
|
-
Content:
|
|
4024
|
-
Arrow:
|
|
4025
|
-
}, Ar =
|
|
4029
|
+
Content: Gn,
|
|
4030
|
+
Arrow: Dn
|
|
4031
|
+
}, Ar = h(["relative", "overflow-hidden", "grow"], {
|
|
4026
4032
|
variants: {
|
|
4027
4033
|
size: {
|
|
4028
4034
|
xs: ["h-1.5"],
|
|
@@ -4036,7 +4042,7 @@ const ai = {
|
|
|
4036
4042
|
soft: ["bg-(--base-a4)"]
|
|
4037
4043
|
}
|
|
4038
4044
|
}
|
|
4039
|
-
}), Dr =
|
|
4045
|
+
}), Dr = h(
|
|
4040
4046
|
[
|
|
4041
4047
|
"size-full",
|
|
4042
4048
|
"transform-[scaleX(calc(var(--progress-value)/var(--progress-max)))]",
|
|
@@ -4059,7 +4065,7 @@ const ai = {
|
|
|
4059
4065
|
}
|
|
4060
4066
|
}
|
|
4061
4067
|
), Gr = u((n) => {
|
|
4062
|
-
const a =
|
|
4068
|
+
const a = V(), {
|
|
4063
4069
|
ref: t,
|
|
4064
4070
|
className: e,
|
|
4065
4071
|
style: s,
|
|
@@ -4068,7 +4074,7 @@ const ai = {
|
|
|
4068
4074
|
size: c = "md",
|
|
4069
4075
|
accentColor: l = a.accentColor,
|
|
4070
4076
|
...d
|
|
4071
|
-
} = n, m =
|
|
4077
|
+
} = n, m = z(
|
|
4072
4078
|
() => ({
|
|
4073
4079
|
...s,
|
|
4074
4080
|
"--progress-value": d.value ?? 0,
|
|
@@ -4077,19 +4083,19 @@ const ai = {
|
|
|
4077
4083
|
[d.max, d.value, s]
|
|
4078
4084
|
);
|
|
4079
4085
|
return /* @__PURE__ */ i(
|
|
4080
|
-
|
|
4086
|
+
wt.Root,
|
|
4081
4087
|
{
|
|
4082
4088
|
ref: t,
|
|
4083
4089
|
className: x(Ar({ variant: r, size: c }), k({ radius: o, maxLarge: !1 }), e),
|
|
4084
4090
|
style: m,
|
|
4085
4091
|
"data-accent-color": l,
|
|
4086
4092
|
...d,
|
|
4087
|
-
children: /* @__PURE__ */ i(
|
|
4093
|
+
children: /* @__PURE__ */ i(wt.ProgressIndicator, { className: Dr({ variant: r, size: c }) })
|
|
4088
4094
|
}
|
|
4089
4095
|
);
|
|
4090
4096
|
});
|
|
4091
4097
|
Gr.displayName = "Progress";
|
|
4092
|
-
const
|
|
4098
|
+
const En = O({}), Er = h([], {
|
|
4093
4099
|
variants: {
|
|
4094
4100
|
size: {
|
|
4095
4101
|
xs: ["text-xs"],
|
|
@@ -4103,7 +4109,7 @@ const Gn = T({}), Er = v([], {
|
|
|
4103
4109
|
outline: []
|
|
4104
4110
|
}
|
|
4105
4111
|
}
|
|
4106
|
-
}), _r =
|
|
4112
|
+
}), _r = h(
|
|
4107
4113
|
[
|
|
4108
4114
|
"block",
|
|
4109
4115
|
"overflow-hidden",
|
|
@@ -4146,8 +4152,8 @@ const Gn = T({}), Er = v([], {
|
|
|
4146
4152
|
}
|
|
4147
4153
|
}
|
|
4148
4154
|
}
|
|
4149
|
-
),
|
|
4150
|
-
const { variant: a, size: t, radius: e } = b(
|
|
4155
|
+
), _n = u((n) => {
|
|
4156
|
+
const { variant: a, size: t, radius: e } = b(En), { className: s, accentColor: o, ...r } = n;
|
|
4151
4157
|
return /* @__PURE__ */ i(
|
|
4152
4158
|
ae.Item,
|
|
4153
4159
|
{
|
|
@@ -4157,9 +4163,9 @@ const Gn = T({}), Er = v([], {
|
|
|
4157
4163
|
}
|
|
4158
4164
|
);
|
|
4159
4165
|
});
|
|
4160
|
-
|
|
4161
|
-
const
|
|
4162
|
-
const a =
|
|
4166
|
+
_n.displayName = "RadioCardsItem";
|
|
4167
|
+
const Fn = u((n) => {
|
|
4168
|
+
const a = V(), {
|
|
4163
4169
|
className: t,
|
|
4164
4170
|
children: e,
|
|
4165
4171
|
variant: s = "surface",
|
|
@@ -4167,7 +4173,7 @@ const _n = u((n) => {
|
|
|
4167
4173
|
radius: r = a.radius,
|
|
4168
4174
|
accentColor: c = a.accentColor,
|
|
4169
4175
|
...l
|
|
4170
|
-
} = n, d =
|
|
4176
|
+
} = n, d = z(
|
|
4171
4177
|
() => ({
|
|
4172
4178
|
variant: s,
|
|
4173
4179
|
size: o,
|
|
@@ -4181,15 +4187,15 @@ const _n = u((n) => {
|
|
|
4181
4187
|
className: x(Er({ size: o, variant: s }), t),
|
|
4182
4188
|
"data-accent-color": c,
|
|
4183
4189
|
...l,
|
|
4184
|
-
children: /* @__PURE__ */ i(
|
|
4190
|
+
children: /* @__PURE__ */ i(En, { value: d, children: e })
|
|
4185
4191
|
}
|
|
4186
4192
|
);
|
|
4187
4193
|
});
|
|
4188
|
-
|
|
4194
|
+
Fn.displayName = "RadioCardsRoot";
|
|
4189
4195
|
const ni = {
|
|
4190
|
-
Root:
|
|
4191
|
-
Item:
|
|
4192
|
-
},
|
|
4196
|
+
Root: Fn,
|
|
4197
|
+
Item: _n
|
|
4198
|
+
}, Hn = u((n) => {
|
|
4193
4199
|
const { ref: a, children: t, className: e, ...s } = n;
|
|
4194
4200
|
return /* @__PURE__ */ i(
|
|
4195
4201
|
ae.Indicator,
|
|
@@ -4201,8 +4207,8 @@ const ni = {
|
|
|
4201
4207
|
}
|
|
4202
4208
|
);
|
|
4203
4209
|
});
|
|
4204
|
-
|
|
4205
|
-
const
|
|
4210
|
+
Hn.displayName = "RadioGroupIndicator";
|
|
4211
|
+
const Bn = O({}), Fr = h(
|
|
4206
4212
|
[
|
|
4207
4213
|
"inline-flex",
|
|
4208
4214
|
"justify-center",
|
|
@@ -4244,8 +4250,8 @@ const Hn = T({}), Fr = v(
|
|
|
4244
4250
|
size: "md"
|
|
4245
4251
|
}
|
|
4246
4252
|
}
|
|
4247
|
-
),
|
|
4248
|
-
const a = j(
|
|
4253
|
+
), $n = u((n) => {
|
|
4254
|
+
const a = j(Bn), {
|
|
4249
4255
|
ref: t,
|
|
4250
4256
|
children: e,
|
|
4251
4257
|
className: s,
|
|
@@ -4255,9 +4261,9 @@ const Hn = T({}), Fr = v(
|
|
|
4255
4261
|
} = n;
|
|
4256
4262
|
return /* @__PURE__ */ i(ae.Item, { className: x(Fr({ size: o, variant: r }), s), ref: t, ...c, children: e });
|
|
4257
4263
|
});
|
|
4258
|
-
|
|
4259
|
-
const
|
|
4260
|
-
const a =
|
|
4264
|
+
$n.displayName = "RadioGroupItem";
|
|
4265
|
+
const jn = u((n) => {
|
|
4266
|
+
const a = V(), {
|
|
4261
4267
|
ref: t,
|
|
4262
4268
|
className: e,
|
|
4263
4269
|
accentColor: s = a.accentColor,
|
|
@@ -4265,21 +4271,21 @@ const $n = u((n) => {
|
|
|
4265
4271
|
size: r = "md",
|
|
4266
4272
|
children: c,
|
|
4267
4273
|
...l
|
|
4268
|
-
} = n, d =
|
|
4269
|
-
return /* @__PURE__ */ i(ae.Root, { className: x(e), ref: t, "data-accent-color": s, ...l, children: /* @__PURE__ */ i(
|
|
4274
|
+
} = n, d = z(() => ({ variant: o, size: r }), [o, r]);
|
|
4275
|
+
return /* @__PURE__ */ i(ae.Root, { className: x(e), ref: t, "data-accent-color": s, ...l, children: /* @__PURE__ */ i(Bn.Provider, { value: d, children: c }) });
|
|
4270
4276
|
});
|
|
4271
|
-
|
|
4277
|
+
jn.displayName = "RadioGroupRoot";
|
|
4272
4278
|
const si = {
|
|
4273
|
-
Indicator:
|
|
4274
|
-
Item:
|
|
4275
|
-
Root:
|
|
4276
|
-
},
|
|
4277
|
-
const { ref: a, children: t, value: e, ...s } = n, { value: o } = b(
|
|
4278
|
-
return /* @__PURE__ */ i(ae.Item, { ref: a, value: e.toString(), "data-active": r, ...s, children: /* @__PURE__ */ i(
|
|
4279
|
+
Indicator: Hn,
|
|
4280
|
+
Item: $n,
|
|
4281
|
+
Root: jn
|
|
4282
|
+
}, Ct = O({}), qn = O({}), Un = u((n) => {
|
|
4283
|
+
const { ref: a, children: t, value: e, ...s } = n, { value: o } = b(Ct), r = !!o && e <= o, c = z(() => ({ value: e }), [e]);
|
|
4284
|
+
return /* @__PURE__ */ i(ae.Item, { ref: a, value: e.toString(), "data-active": r, ...s, children: /* @__PURE__ */ i(qn, { value: c, children: t }) });
|
|
4279
4285
|
});
|
|
4280
4286
|
Un.displayName = "RatingItem";
|
|
4281
|
-
const
|
|
4282
|
-
const { ref: a, children: t, forceMount: e, ...s } = n, { value: o } = b(
|
|
4287
|
+
const Wn = u((n) => {
|
|
4288
|
+
const { ref: a, children: t, forceMount: e, ...s } = n, { value: o } = b(Ct), { value: r } = b(qn), c = !!o && r <= o;
|
|
4283
4289
|
return /* @__PURE__ */ i(
|
|
4284
4290
|
ae.Indicator,
|
|
4285
4291
|
{
|
|
@@ -4291,14 +4297,14 @@ const qn = u((n) => {
|
|
|
4291
4297
|
}
|
|
4292
4298
|
);
|
|
4293
4299
|
});
|
|
4294
|
-
|
|
4295
|
-
const
|
|
4296
|
-
const { ref: a, children: t, defaultValue: e, value: s, onValueChange: o, ...r } = n, [c, l] = X(e ?? null, s, o), d =
|
|
4300
|
+
Wn.displayName = "RatingItemIndicator";
|
|
4301
|
+
const Kn = u((n) => {
|
|
4302
|
+
const { ref: a, children: t, defaultValue: e, value: s, onValueChange: o, ...r } = n, [c, l] = X(e ?? null, s, o), d = v(
|
|
4297
4303
|
(g) => {
|
|
4298
4304
|
l(parseInt(g));
|
|
4299
4305
|
},
|
|
4300
4306
|
[l]
|
|
4301
|
-
), m =
|
|
4307
|
+
), m = z(
|
|
4302
4308
|
() => ({
|
|
4303
4309
|
value: c
|
|
4304
4310
|
}),
|
|
@@ -4311,16 +4317,16 @@ const Wn = u((n) => {
|
|
|
4311
4317
|
value: c ? c.toString() : null,
|
|
4312
4318
|
onValueChange: d,
|
|
4313
4319
|
...r,
|
|
4314
|
-
children: /* @__PURE__ */ i(
|
|
4320
|
+
children: /* @__PURE__ */ i(Ct, { value: m, children: t })
|
|
4315
4321
|
}
|
|
4316
4322
|
);
|
|
4317
4323
|
});
|
|
4318
|
-
|
|
4324
|
+
Kn.displayName = "RatingRoot";
|
|
4319
4325
|
const oi = {
|
|
4320
4326
|
Item: Un,
|
|
4321
|
-
ItemIndicator:
|
|
4322
|
-
Root:
|
|
4323
|
-
}, Hr =
|
|
4327
|
+
ItemIndicator: Wn,
|
|
4328
|
+
Root: Kn
|
|
4329
|
+
}, Hr = h(
|
|
4324
4330
|
["shrink-0", "transition-colors", "inline-flex", "box-border", "min-w-max", "text-center"],
|
|
4325
4331
|
{
|
|
4326
4332
|
variants: {
|
|
@@ -4338,7 +4344,7 @@ const oi = {
|
|
|
4338
4344
|
}
|
|
4339
4345
|
}
|
|
4340
4346
|
}
|
|
4341
|
-
), Br =
|
|
4347
|
+
), Br = h(
|
|
4342
4348
|
[
|
|
4343
4349
|
"h-full",
|
|
4344
4350
|
"grow",
|
|
@@ -4461,12 +4467,12 @@ const oi = {
|
|
|
4461
4467
|
icon: !1
|
|
4462
4468
|
}
|
|
4463
4469
|
}
|
|
4464
|
-
),
|
|
4465
|
-
const n = j(
|
|
4470
|
+
), Xn = O({}), $r = () => {
|
|
4471
|
+
const n = j(Xn);
|
|
4466
4472
|
if (!n)
|
|
4467
4473
|
throw new Error("useSegmentedControl must be used within a SegmentedControlProvider");
|
|
4468
4474
|
return n;
|
|
4469
|
-
},
|
|
4475
|
+
}, Yn = u((n) => {
|
|
4470
4476
|
const { ref: a, className: t, ...e } = n, { size: s, radius: o, variant: r, icon: c } = $r();
|
|
4471
4477
|
return /* @__PURE__ */ i(
|
|
4472
4478
|
Oe.Item,
|
|
@@ -4477,9 +4483,9 @@ const oi = {
|
|
|
4477
4483
|
}
|
|
4478
4484
|
);
|
|
4479
4485
|
});
|
|
4480
|
-
|
|
4481
|
-
const
|
|
4482
|
-
const a =
|
|
4486
|
+
Yn.displayName = "SegmentedControlItem";
|
|
4487
|
+
const Qn = u((n) => {
|
|
4488
|
+
const a = V(), {
|
|
4483
4489
|
ref: t,
|
|
4484
4490
|
children: e,
|
|
4485
4491
|
className: s,
|
|
@@ -4502,15 +4508,15 @@ const Yn = u((n) => {
|
|
|
4502
4508
|
type: "single",
|
|
4503
4509
|
"data-accent-color": d,
|
|
4504
4510
|
...m,
|
|
4505
|
-
children: /* @__PURE__ */ i(
|
|
4511
|
+
children: /* @__PURE__ */ i(Xn.Provider, { value: { size: o, variant: r, radius: l, icon: c }, children: e })
|
|
4506
4512
|
}
|
|
4507
4513
|
);
|
|
4508
4514
|
});
|
|
4509
|
-
|
|
4515
|
+
Qn.displayName = "SegmentedControlRoot";
|
|
4510
4516
|
const ri = {
|
|
4511
|
-
Item:
|
|
4512
|
-
Root:
|
|
4513
|
-
},
|
|
4517
|
+
Item: Yn,
|
|
4518
|
+
Root: Qn
|
|
4519
|
+
}, Jn = O({}), jr = h(
|
|
4514
4520
|
["shrink-0", "transition-colors", "inline-flex", "box-border", "min-w-max", "text-center"],
|
|
4515
4521
|
{
|
|
4516
4522
|
variants: {
|
|
@@ -4532,7 +4538,7 @@ const ri = {
|
|
|
4532
4538
|
size: "md"
|
|
4533
4539
|
}
|
|
4534
4540
|
}
|
|
4535
|
-
),
|
|
4541
|
+
), qr = h(
|
|
4536
4542
|
[
|
|
4537
4543
|
"h-full",
|
|
4538
4544
|
"grow",
|
|
@@ -4655,8 +4661,8 @@ const ri = {
|
|
|
4655
4661
|
icon: !1
|
|
4656
4662
|
}
|
|
4657
4663
|
}
|
|
4658
|
-
),
|
|
4659
|
-
const a =
|
|
4664
|
+
), Zn = u((n) => {
|
|
4665
|
+
const a = V(), {
|
|
4660
4666
|
ref: t,
|
|
4661
4667
|
children: e,
|
|
4662
4668
|
className: s,
|
|
@@ -4665,7 +4671,7 @@ const ri = {
|
|
|
4665
4671
|
radius: c = a.radius,
|
|
4666
4672
|
accentColor: l = a.accentColor,
|
|
4667
4673
|
...d
|
|
4668
|
-
} = n, m =
|
|
4674
|
+
} = n, m = z(
|
|
4669
4675
|
() => ({
|
|
4670
4676
|
size: o,
|
|
4671
4677
|
variant: r,
|
|
@@ -4680,35 +4686,35 @@ const ri = {
|
|
|
4680
4686
|
className: x(jr({ size: o, variant: r }), k({ radius: c, maxLarge: !1 }), s),
|
|
4681
4687
|
"data-accent-color": l,
|
|
4682
4688
|
...d,
|
|
4683
|
-
children: /* @__PURE__ */ i(
|
|
4689
|
+
children: /* @__PURE__ */ i(Jn.Provider, { value: m, children: e })
|
|
4684
4690
|
}
|
|
4685
4691
|
);
|
|
4686
4692
|
});
|
|
4687
|
-
|
|
4688
|
-
const
|
|
4693
|
+
Zn.displayName = "TabsList";
|
|
4694
|
+
const es = u((n) => {
|
|
4689
4695
|
const { ref: a, className: t, ...e } = n;
|
|
4690
4696
|
return /* @__PURE__ */ i(ne.Root, { ref: a, className: x("flex flex-col", t), ...e });
|
|
4691
4697
|
});
|
|
4692
|
-
|
|
4693
|
-
const
|
|
4694
|
-
const { ref: a, children: t, className: e, ...s } = n, { size: o, radius: r, variant: c } = b(
|
|
4698
|
+
es.displayName = "TabsRoot";
|
|
4699
|
+
const ts = u((n) => {
|
|
4700
|
+
const { ref: a, children: t, className: e, ...s } = n, { size: o, radius: r, variant: c } = b(Jn);
|
|
4695
4701
|
return /* @__PURE__ */ i(
|
|
4696
4702
|
ne.Trigger,
|
|
4697
4703
|
{
|
|
4698
4704
|
ref: a,
|
|
4699
|
-
className: x(
|
|
4705
|
+
className: x(qr({ size: o, radius: r, variant: c }), e),
|
|
4700
4706
|
...s,
|
|
4701
4707
|
children: t
|
|
4702
4708
|
}
|
|
4703
4709
|
);
|
|
4704
4710
|
});
|
|
4705
|
-
|
|
4711
|
+
ts.displayName = "TabsTrigger";
|
|
4706
4712
|
const ci = {
|
|
4707
|
-
Root:
|
|
4708
|
-
List:
|
|
4709
|
-
Trigger:
|
|
4713
|
+
Root: es,
|
|
4714
|
+
List: Zn,
|
|
4715
|
+
Trigger: ts,
|
|
4710
4716
|
Content: ne.Content
|
|
4711
|
-
},
|
|
4717
|
+
}, Ur = h(["shrink-0", "bg-(--accent-6)"], {
|
|
4712
4718
|
variants: {
|
|
4713
4719
|
size: {
|
|
4714
4720
|
xs: [],
|
|
@@ -4792,9 +4798,9 @@ const ci = {
|
|
|
4792
4798
|
}), Wr = u((n) => {
|
|
4793
4799
|
const { ref: a, className: t, accentColor: e = "base", orientation: s, size: o, ...r } = n;
|
|
4794
4800
|
return /* @__PURE__ */ i(
|
|
4795
|
-
|
|
4801
|
+
Ze.Root,
|
|
4796
4802
|
{
|
|
4797
|
-
className: x(
|
|
4803
|
+
className: x(Ur({ orientation: s, size: o }), t),
|
|
4798
4804
|
"data-accent-color": e,
|
|
4799
4805
|
ref: a,
|
|
4800
4806
|
...r
|
|
@@ -4802,7 +4808,7 @@ const ci = {
|
|
|
4802
4808
|
);
|
|
4803
4809
|
});
|
|
4804
4810
|
Wr.displayName = "Separator";
|
|
4805
|
-
const Kr =
|
|
4811
|
+
const Kr = h(["relative", "select-none", "touch-none", "flex", "items-center"], {
|
|
4806
4812
|
variants: {
|
|
4807
4813
|
size: {
|
|
4808
4814
|
xs: [],
|
|
@@ -4874,7 +4880,7 @@ const Kr = v(["relative", "select-none", "touch-none", "flex", "items-center"],
|
|
|
4874
4880
|
className: ["w-8"]
|
|
4875
4881
|
}
|
|
4876
4882
|
]
|
|
4877
|
-
}), Xr =
|
|
4883
|
+
}), Xr = h(
|
|
4878
4884
|
[
|
|
4879
4885
|
"overflow-hidden",
|
|
4880
4886
|
"relative",
|
|
@@ -4957,7 +4963,7 @@ const Kr = v(["relative", "select-none", "touch-none", "flex", "items-center"],
|
|
|
4957
4963
|
}
|
|
4958
4964
|
]
|
|
4959
4965
|
}
|
|
4960
|
-
), Yr =
|
|
4966
|
+
), Yr = h(
|
|
4961
4967
|
["absolute", "rounded-[inherit]", "data-disabled:opacity-50", "disabled:pointer-events-none"],
|
|
4962
4968
|
{
|
|
4963
4969
|
variants: {
|
|
@@ -4978,7 +4984,7 @@ const Kr = v(["relative", "select-none", "touch-none", "flex", "items-center"],
|
|
|
4978
4984
|
}
|
|
4979
4985
|
}
|
|
4980
4986
|
}
|
|
4981
|
-
), Qr =
|
|
4987
|
+
), Qr = h(
|
|
4982
4988
|
[
|
|
4983
4989
|
"block",
|
|
4984
4990
|
"shrink-0",
|
|
@@ -5008,7 +5014,7 @@ const Kr = v(["relative", "select-none", "touch-none", "flex", "items-center"],
|
|
|
5008
5014
|
}
|
|
5009
5015
|
}
|
|
5010
5016
|
), Jr = u((n) => {
|
|
5011
|
-
const a =
|
|
5017
|
+
const a = V(), {
|
|
5012
5018
|
className: t,
|
|
5013
5019
|
size: e = "md",
|
|
5014
5020
|
orientation: s = "horizontal",
|
|
@@ -5044,7 +5050,7 @@ const Kr = v(["relative", "select-none", "touch-none", "flex", "items-center"],
|
|
|
5044
5050
|
);
|
|
5045
5051
|
});
|
|
5046
5052
|
Jr.displayName = "Slider";
|
|
5047
|
-
const Zr =
|
|
5053
|
+
const Zr = h(
|
|
5048
5054
|
["box-border", "shrink-0", "animate-spin", "rounded-full", "border-(--accent-9)", "border-b-transparent"],
|
|
5049
5055
|
{
|
|
5050
5056
|
variants: {
|
|
@@ -5061,11 +5067,11 @@ const Zr = v(
|
|
|
5061
5067
|
}
|
|
5062
5068
|
}
|
|
5063
5069
|
), ec = u((n) => {
|
|
5064
|
-
const a =
|
|
5070
|
+
const a = V(), { ref: t, className: e, size: s = "md", accentColor: o = a.accentColor, ...r } = n;
|
|
5065
5071
|
return /* @__PURE__ */ i("div", { className: x(Zr({ size: s }), e), ref: t, "data-accent-color": o, ...r });
|
|
5066
5072
|
});
|
|
5067
5073
|
ec.displayName = "Spinner";
|
|
5068
|
-
const
|
|
5074
|
+
const as = O({}), tc = h(
|
|
5069
5075
|
[
|
|
5070
5076
|
"shrink-0",
|
|
5071
5077
|
// select
|
|
@@ -5098,7 +5104,7 @@ const ts = T({}), tc = v(
|
|
|
5098
5104
|
size: "md"
|
|
5099
5105
|
}
|
|
5100
5106
|
}
|
|
5101
|
-
), ac =
|
|
5107
|
+
), ac = h(
|
|
5102
5108
|
[
|
|
5103
5109
|
"flex",
|
|
5104
5110
|
"items-center",
|
|
@@ -5122,8 +5128,8 @@ const ts = T({}), tc = v(
|
|
|
5122
5128
|
size: "md"
|
|
5123
5129
|
}
|
|
5124
5130
|
}
|
|
5125
|
-
),
|
|
5126
|
-
const a =
|
|
5131
|
+
), ns = u((n) => {
|
|
5132
|
+
const a = V(), {
|
|
5127
5133
|
ref: t,
|
|
5128
5134
|
children: e,
|
|
5129
5135
|
className: s,
|
|
@@ -5131,7 +5137,7 @@ const ts = T({}), tc = v(
|
|
|
5131
5137
|
radius: r = a.radius,
|
|
5132
5138
|
accentColor: c = a.accentColor,
|
|
5133
5139
|
...l
|
|
5134
|
-
} = n, d =
|
|
5140
|
+
} = n, d = z(() => ({ size: o, radius: r }), [o, r]);
|
|
5135
5141
|
return /* @__PURE__ */ i(
|
|
5136
5142
|
Ut.Root,
|
|
5137
5143
|
{
|
|
@@ -5139,13 +5145,13 @@ const ts = T({}), tc = v(
|
|
|
5139
5145
|
ref: t,
|
|
5140
5146
|
"data-accent-color": c,
|
|
5141
5147
|
...l,
|
|
5142
|
-
children: /* @__PURE__ */ i(
|
|
5148
|
+
children: /* @__PURE__ */ i(as.Provider, { value: d, children: e })
|
|
5143
5149
|
}
|
|
5144
5150
|
);
|
|
5145
5151
|
});
|
|
5146
|
-
|
|
5147
|
-
const
|
|
5148
|
-
const { ref: a, className: t, ...e } = n, { size: s, radius: o } = j(
|
|
5152
|
+
ns.displayName = "SwitchRoot";
|
|
5153
|
+
const ss = u((n) => {
|
|
5154
|
+
const { ref: a, className: t, ...e } = n, { size: s, radius: o } = j(as);
|
|
5149
5155
|
return /* @__PURE__ */ i(
|
|
5150
5156
|
Ut.Thumb,
|
|
5151
5157
|
{
|
|
@@ -5155,16 +5161,16 @@ const ns = u((n) => {
|
|
|
5155
5161
|
}
|
|
5156
5162
|
);
|
|
5157
5163
|
});
|
|
5158
|
-
|
|
5164
|
+
ss.displayName = "SwitchThumb";
|
|
5159
5165
|
const ii = {
|
|
5160
|
-
Root:
|
|
5161
|
-
Thumb:
|
|
5162
|
-
},
|
|
5166
|
+
Root: ns,
|
|
5167
|
+
Thumb: ss
|
|
5168
|
+
}, os = u((n) => {
|
|
5163
5169
|
const { ref: a, className: t, ...e } = n;
|
|
5164
5170
|
return /* @__PURE__ */ i("tbody", { ref: a, className: x(t), ...e });
|
|
5165
5171
|
});
|
|
5166
|
-
|
|
5167
|
-
const
|
|
5172
|
+
os.displayName = "TableBody";
|
|
5173
|
+
const je = O({}), nc = h(["border-collapse text-left"], {
|
|
5168
5174
|
variants: {
|
|
5169
5175
|
variant: {
|
|
5170
5176
|
ghost: [],
|
|
@@ -5178,7 +5184,7 @@ const $e = T({}), nc = v(["border-collapse text-left"], {
|
|
|
5178
5184
|
xl: ["text-xl"]
|
|
5179
5185
|
}
|
|
5180
5186
|
}
|
|
5181
|
-
}),
|
|
5187
|
+
}), yt = h([], {
|
|
5182
5188
|
variants: {
|
|
5183
5189
|
variant: {
|
|
5184
5190
|
surface: [],
|
|
@@ -5218,42 +5224,42 @@ const $e = T({}), nc = v(["border-collapse text-left"], {
|
|
|
5218
5224
|
{ size: "xl", compact: !0, className: ["px-10", "py-5"] },
|
|
5219
5225
|
{ size: "xl", compact: !1, className: ["p-10"] }
|
|
5220
5226
|
]
|
|
5221
|
-
}),
|
|
5222
|
-
const { ref: a, className: t, ...e } = n, { size: s, border: o, variant: r, compact: c } = j(
|
|
5227
|
+
}), rs = u((n) => {
|
|
5228
|
+
const { ref: a, className: t, ...e } = n, { size: s, border: o, variant: r, compact: c } = j(je);
|
|
5223
5229
|
return /* @__PURE__ */ i(
|
|
5224
5230
|
"td",
|
|
5225
5231
|
{
|
|
5226
5232
|
ref: a,
|
|
5227
|
-
className: x(
|
|
5233
|
+
className: x(yt({ size: s, border: o, cell: !0, variant: r, compact: c }), t),
|
|
5228
5234
|
...e
|
|
5229
5235
|
}
|
|
5230
5236
|
);
|
|
5231
5237
|
});
|
|
5232
|
-
|
|
5233
|
-
const
|
|
5234
|
-
const { ref: a, className: t, ...e } = n, { size: s, border: o, variant: r, compact: c } = j(
|
|
5238
|
+
rs.displayName = "TableCell";
|
|
5239
|
+
const cs = u((n) => {
|
|
5240
|
+
const { ref: a, className: t, ...e } = n, { size: s, border: o, variant: r, compact: c } = j(je);
|
|
5235
5241
|
return /* @__PURE__ */ i(
|
|
5236
5242
|
"th",
|
|
5237
5243
|
{
|
|
5238
5244
|
ref: a,
|
|
5239
|
-
className: x(
|
|
5245
|
+
className: x(yt({ size: s, border: o, cell: !1, variant: r, compact: c }), t),
|
|
5240
5246
|
...e
|
|
5241
5247
|
}
|
|
5242
5248
|
);
|
|
5243
5249
|
});
|
|
5244
|
-
|
|
5245
|
-
const
|
|
5250
|
+
cs.displayName = "TableColumnHeaderCell";
|
|
5251
|
+
const is = u((n) => {
|
|
5246
5252
|
const { ref: a, className: t, ...e } = n;
|
|
5247
5253
|
return /* @__PURE__ */ i("tfoot", { ref: a, className: x(t), ...e });
|
|
5248
5254
|
});
|
|
5249
|
-
|
|
5250
|
-
const
|
|
5255
|
+
is.displayName = "TableFooter";
|
|
5256
|
+
const ls = u((n) => {
|
|
5251
5257
|
const { ref: a, className: t, ...e } = n;
|
|
5252
5258
|
return /* @__PURE__ */ i("thead", { ref: a, className: x(t), ...e });
|
|
5253
5259
|
});
|
|
5254
|
-
|
|
5255
|
-
const
|
|
5256
|
-
const a =
|
|
5260
|
+
ls.displayName = "TableHeader";
|
|
5261
|
+
const ds = u((n) => {
|
|
5262
|
+
const a = V(), {
|
|
5257
5263
|
ref: t,
|
|
5258
5264
|
children: e,
|
|
5259
5265
|
className: s,
|
|
@@ -5263,7 +5269,7 @@ const ls = u((n) => {
|
|
|
5263
5269
|
variant: l = "ghost",
|
|
5264
5270
|
compact: d = !1,
|
|
5265
5271
|
...m
|
|
5266
|
-
} = n, g =
|
|
5272
|
+
} = n, g = z(() => ({ size: o, border: r, variant: l, compact: d }), [o, r, l, d]);
|
|
5267
5273
|
return /* @__PURE__ */ i(
|
|
5268
5274
|
"table",
|
|
5269
5275
|
{
|
|
@@ -5275,38 +5281,38 @@ const ls = u((n) => {
|
|
|
5275
5281
|
),
|
|
5276
5282
|
"data-accent-color": c,
|
|
5277
5283
|
...m,
|
|
5278
|
-
children: /* @__PURE__ */ i(
|
|
5284
|
+
children: /* @__PURE__ */ i(je.Provider, { value: g, children: e })
|
|
5279
5285
|
}
|
|
5280
5286
|
);
|
|
5281
5287
|
});
|
|
5282
|
-
|
|
5283
|
-
const
|
|
5288
|
+
ds.displayName = "TableRoot";
|
|
5289
|
+
const us = u((n) => {
|
|
5284
5290
|
const { ref: a, className: t, ...e } = n;
|
|
5285
5291
|
return /* @__PURE__ */ i("tr", { ref: a, className: x(t), ...e });
|
|
5286
5292
|
});
|
|
5287
|
-
|
|
5288
|
-
const
|
|
5289
|
-
const { ref: a, className: t, ...e } = n, { size: s, border: o, variant: r, compact: c } = j(
|
|
5293
|
+
us.displayName = "TableRow";
|
|
5294
|
+
const ms = u((n) => {
|
|
5295
|
+
const { ref: a, className: t, ...e } = n, { size: s, border: o, variant: r, compact: c } = j(je);
|
|
5290
5296
|
return /* @__PURE__ */ i(
|
|
5291
5297
|
"th",
|
|
5292
5298
|
{
|
|
5293
5299
|
ref: a,
|
|
5294
|
-
className: x(
|
|
5300
|
+
className: x(yt({ size: s, border: o, cell: !0, variant: r, compact: c }), t),
|
|
5295
5301
|
...e
|
|
5296
5302
|
}
|
|
5297
5303
|
);
|
|
5298
5304
|
});
|
|
5299
|
-
|
|
5305
|
+
ms.displayName = "TableRowHeaderCell";
|
|
5300
5306
|
const li = {
|
|
5301
|
-
Root:
|
|
5302
|
-
Header:
|
|
5303
|
-
Body:
|
|
5304
|
-
Footer:
|
|
5305
|
-
Row:
|
|
5306
|
-
Cell:
|
|
5307
|
-
RowHeaderCell:
|
|
5308
|
-
ColumnHeaderCell:
|
|
5309
|
-
},
|
|
5307
|
+
Root: ds,
|
|
5308
|
+
Header: ls,
|
|
5309
|
+
Body: os,
|
|
5310
|
+
Footer: is,
|
|
5311
|
+
Row: us,
|
|
5312
|
+
Cell: rs,
|
|
5313
|
+
RowHeaderCell: ms,
|
|
5314
|
+
ColumnHeaderCell: cs
|
|
5315
|
+
}, gs = O({}), sc = h(["flex", "border-box", "inset-shadow-[0_-1px_0_0_var(--base-a6)]"], {
|
|
5310
5316
|
variants: {
|
|
5311
5317
|
size: {
|
|
5312
5318
|
xs: ["h-6", "text-xs"],
|
|
@@ -5319,7 +5325,7 @@ const li = {
|
|
|
5319
5325
|
defaultVariants: {
|
|
5320
5326
|
size: "md"
|
|
5321
5327
|
}
|
|
5322
|
-
}), oc =
|
|
5328
|
+
}), oc = h(
|
|
5323
5329
|
[
|
|
5324
5330
|
"select-none",
|
|
5325
5331
|
"shrink-0",
|
|
@@ -5353,8 +5359,8 @@ const li = {
|
|
|
5353
5359
|
size: "md"
|
|
5354
5360
|
}
|
|
5355
5361
|
}
|
|
5356
|
-
),
|
|
5357
|
-
const a =
|
|
5362
|
+
), ps = u((n) => {
|
|
5363
|
+
const a = V(), { ref: t, children: e, className: s, size: o = "md", accentColor: r = a.accentColor, ...c } = n;
|
|
5358
5364
|
return /* @__PURE__ */ i(
|
|
5359
5365
|
ne.List,
|
|
5360
5366
|
{
|
|
@@ -5362,32 +5368,32 @@ const li = {
|
|
|
5362
5368
|
className: x(sc({ size: o }), s),
|
|
5363
5369
|
"data-accent-color": r,
|
|
5364
5370
|
...c,
|
|
5365
|
-
children: /* @__PURE__ */ i(
|
|
5371
|
+
children: /* @__PURE__ */ i(gs.Provider, { value: { size: o }, children: e })
|
|
5366
5372
|
}
|
|
5367
5373
|
);
|
|
5368
5374
|
});
|
|
5369
|
-
|
|
5370
|
-
const
|
|
5375
|
+
ps.displayName = "TabsList";
|
|
5376
|
+
const xs = u((n) => {
|
|
5371
5377
|
const { ref: a, className: t, ...e } = n;
|
|
5372
5378
|
return /* @__PURE__ */ i(ne.Root, { ref: a, className: x("flex flex-col", t), ...e });
|
|
5373
5379
|
});
|
|
5374
|
-
|
|
5380
|
+
xs.displayName = "TabsRoot";
|
|
5375
5381
|
const rc = () => {
|
|
5376
|
-
const n = j(
|
|
5382
|
+
const n = j(gs);
|
|
5377
5383
|
if (!n)
|
|
5378
5384
|
throw new Error("useTabsList must be used within a TabsList component");
|
|
5379
5385
|
return n;
|
|
5380
|
-
},
|
|
5386
|
+
}, fs = u((n) => {
|
|
5381
5387
|
const { ref: a, children: t, className: e, ...s } = n, { size: o } = rc();
|
|
5382
5388
|
return /* @__PURE__ */ i(ne.Trigger, { ref: a, className: x(oc({ size: o }), e), ...s, children: t });
|
|
5383
5389
|
});
|
|
5384
|
-
|
|
5390
|
+
fs.displayName = "TabsTrigger";
|
|
5385
5391
|
const di = {
|
|
5386
|
-
Root:
|
|
5387
|
-
List:
|
|
5388
|
-
Trigger:
|
|
5392
|
+
Root: xs,
|
|
5393
|
+
List: ps,
|
|
5394
|
+
Trigger: fs,
|
|
5389
5395
|
Content: ne.Content
|
|
5390
|
-
}, cc =
|
|
5396
|
+
}, cc = h([], {
|
|
5391
5397
|
variants: {
|
|
5392
5398
|
size: {
|
|
5393
5399
|
xs: ["text-xs"],
|
|
@@ -5416,7 +5422,7 @@ const di = {
|
|
|
5416
5422
|
right: ["text-right"]
|
|
5417
5423
|
}
|
|
5418
5424
|
}
|
|
5419
|
-
}),
|
|
5425
|
+
}), Ye = u((n) => {
|
|
5420
5426
|
const { ref: a, className: t, size: e, weight: s, align: o, accentColor: r, highContrast: c = !1, ...l } = n;
|
|
5421
5427
|
return /* @__PURE__ */ i(
|
|
5422
5428
|
"span",
|
|
@@ -5435,8 +5441,8 @@ const di = {
|
|
|
5435
5441
|
}
|
|
5436
5442
|
);
|
|
5437
5443
|
});
|
|
5438
|
-
|
|
5439
|
-
const ic =
|
|
5444
|
+
Ye.displayName = "Text";
|
|
5445
|
+
const ic = h(
|
|
5440
5446
|
[
|
|
5441
5447
|
"focus:outline-(--accent-a8)",
|
|
5442
5448
|
"focus:outline-2",
|
|
@@ -5497,7 +5503,7 @@ const ic = v(
|
|
|
5497
5503
|
}
|
|
5498
5504
|
}
|
|
5499
5505
|
), lc = u((n) => {
|
|
5500
|
-
const a =
|
|
5506
|
+
const a = V(), {
|
|
5501
5507
|
ref: t,
|
|
5502
5508
|
className: e,
|
|
5503
5509
|
size: s,
|
|
@@ -5518,9 +5524,9 @@ const ic = v(
|
|
|
5518
5524
|
});
|
|
5519
5525
|
lc.displayName = "TextArea";
|
|
5520
5526
|
const Re = u((n) => {
|
|
5521
|
-
const { toastId: a, title: t, description: e, icon: s, accentColor: o, closeButton: r, action: c } = n, { radius: l } =
|
|
5527
|
+
const { toastId: a, title: t, description: e, icon: s, accentColor: o, closeButton: r, action: c } = n, { radius: l } = V(), d = v(() => {
|
|
5522
5528
|
K.dismiss(a);
|
|
5523
|
-
}, [a]), m =
|
|
5529
|
+
}, [a]), m = v(() => {
|
|
5524
5530
|
K.dismiss(a);
|
|
5525
5531
|
}, [a]);
|
|
5526
5532
|
return /* @__PURE__ */ W(
|
|
@@ -5535,13 +5541,13 @@ const Re = u((n) => {
|
|
|
5535
5541
|
/* @__PURE__ */ W("div", { className: "flex items-center gap-4 grow min-w-0", children: [
|
|
5536
5542
|
s,
|
|
5537
5543
|
/* @__PURE__ */ W("div", { className: "flex flex-col min-w-0 select-none", children: [
|
|
5538
|
-
/* @__PURE__ */ i(
|
|
5539
|
-
e && /* @__PURE__ */ i(
|
|
5544
|
+
/* @__PURE__ */ i(Ye, { className: "truncate", children: t }),
|
|
5545
|
+
e && /* @__PURE__ */ i(Ye, { accentColor: "base", size: "sm", weight: "regular", children: e })
|
|
5540
5546
|
] })
|
|
5541
5547
|
] }),
|
|
5542
5548
|
/* @__PURE__ */ i(me, { onClick: d, children: c }),
|
|
5543
5549
|
r && /* @__PURE__ */ i(
|
|
5544
|
-
|
|
5550
|
+
at,
|
|
5545
5551
|
{
|
|
5546
5552
|
type: "button",
|
|
5547
5553
|
onClick: m,
|
|
@@ -5549,17 +5555,17 @@ const Re = u((n) => {
|
|
|
5549
5555
|
accentColor: "base",
|
|
5550
5556
|
variant: "ghost",
|
|
5551
5557
|
size: "xs",
|
|
5552
|
-
children: /* @__PURE__ */ i(
|
|
5558
|
+
children: /* @__PURE__ */ i(U, { icon: js })
|
|
5553
5559
|
}
|
|
5554
5560
|
)
|
|
5555
5561
|
]
|
|
5556
5562
|
}
|
|
5557
5563
|
);
|
|
5558
|
-
}),
|
|
5559
|
-
success: /* @__PURE__ */ i(
|
|
5560
|
-
info: /* @__PURE__ */ i(
|
|
5561
|
-
warning: /* @__PURE__ */ i(
|
|
5562
|
-
error: /* @__PURE__ */ i(
|
|
5564
|
+
}), qe = {
|
|
5565
|
+
success: /* @__PURE__ */ i(U, { icon: Ks, color: "var(--accent-9)" }),
|
|
5566
|
+
info: /* @__PURE__ */ i(U, { icon: Ws, color: "var(--base-11)" }),
|
|
5567
|
+
warning: /* @__PURE__ */ i(U, { icon: Us, color: "var(--accent-9)" }),
|
|
5568
|
+
error: /* @__PURE__ */ i(U, { icon: qs, color: "var(--accent-9)" })
|
|
5563
5569
|
}, dc = (n) => {
|
|
5564
5570
|
const { icon: a, description: t, title: e, closeButton: s, action: o, ...r } = n;
|
|
5565
5571
|
return K.custom(
|
|
@@ -5584,7 +5590,7 @@ const Re = u((n) => {
|
|
|
5584
5590
|
{
|
|
5585
5591
|
accentColor: "success",
|
|
5586
5592
|
toastId: c,
|
|
5587
|
-
icon: a ??
|
|
5593
|
+
icon: a ?? qe.success,
|
|
5588
5594
|
description: t,
|
|
5589
5595
|
title: e,
|
|
5590
5596
|
closeButton: s,
|
|
@@ -5601,7 +5607,7 @@ const Re = u((n) => {
|
|
|
5601
5607
|
{
|
|
5602
5608
|
accentColor: "base",
|
|
5603
5609
|
toastId: c,
|
|
5604
|
-
icon: a ??
|
|
5610
|
+
icon: a ?? qe.info,
|
|
5605
5611
|
description: t,
|
|
5606
5612
|
title: e,
|
|
5607
5613
|
closeButton: s,
|
|
@@ -5618,7 +5624,7 @@ const Re = u((n) => {
|
|
|
5618
5624
|
{
|
|
5619
5625
|
accentColor: "warning",
|
|
5620
5626
|
toastId: c,
|
|
5621
|
-
icon: a ??
|
|
5627
|
+
icon: a ?? qe.warning,
|
|
5622
5628
|
description: t,
|
|
5623
5629
|
title: e,
|
|
5624
5630
|
closeButton: s,
|
|
@@ -5635,7 +5641,7 @@ const Re = u((n) => {
|
|
|
5635
5641
|
{
|
|
5636
5642
|
accentColor: "danger",
|
|
5637
5643
|
toastId: c,
|
|
5638
|
-
icon: a ??
|
|
5644
|
+
icon: a ?? qe.error,
|
|
5639
5645
|
description: t,
|
|
5640
5646
|
title: e,
|
|
5641
5647
|
closeButton: s,
|
|
@@ -5657,9 +5663,9 @@ const Re = u((n) => {
|
|
|
5657
5663
|
{ getHistory: K.getHistory, getToasts: K.getToasts }
|
|
5658
5664
|
), xc = {
|
|
5659
5665
|
unstyled: !0
|
|
5660
|
-
}, fc = u((n) => /* @__PURE__ */ i(
|
|
5666
|
+
}, fc = u((n) => /* @__PURE__ */ i(co, { toastOptions: xc, richColors: !1, closeButton: !1, theme: "system", ...n }));
|
|
5661
5667
|
fc.displayName = "Toaster";
|
|
5662
|
-
const hc =
|
|
5668
|
+
const hc = h(
|
|
5663
5669
|
[
|
|
5664
5670
|
"flex",
|
|
5665
5671
|
"items-center",
|
|
@@ -5778,8 +5784,8 @@ const hc = v(
|
|
|
5778
5784
|
variant: "outline"
|
|
5779
5785
|
}
|
|
5780
5786
|
}
|
|
5781
|
-
),
|
|
5782
|
-
const a =
|
|
5787
|
+
), zt = u((n) => {
|
|
5788
|
+
const a = V(), {
|
|
5783
5789
|
ref: t,
|
|
5784
5790
|
className: e,
|
|
5785
5791
|
size: s,
|
|
@@ -5790,7 +5796,7 @@ const hc = v(
|
|
|
5790
5796
|
...d
|
|
5791
5797
|
} = n;
|
|
5792
5798
|
return /* @__PURE__ */ i(
|
|
5793
|
-
|
|
5799
|
+
io.Root,
|
|
5794
5800
|
{
|
|
5795
5801
|
ref: t,
|
|
5796
5802
|
className: x(hc({ size: s, variant: r, icon: o }), k({ radius: c, maxLarge: !1 }), e),
|
|
@@ -5799,12 +5805,12 @@ const hc = v(
|
|
|
5799
5805
|
}
|
|
5800
5806
|
);
|
|
5801
5807
|
});
|
|
5802
|
-
|
|
5803
|
-
const vc = u((n) => /* @__PURE__ */ i(
|
|
5808
|
+
zt.displayName = "BaseToggleButton";
|
|
5809
|
+
const vc = u((n) => /* @__PURE__ */ i(zt, { icon: !0, ...n }));
|
|
5804
5810
|
vc.displayName = "IconToggleButton";
|
|
5805
|
-
const bc = u((n) => /* @__PURE__ */ i(
|
|
5811
|
+
const bc = u((n) => /* @__PURE__ */ i(zt, { icon: !1, ...n }));
|
|
5806
5812
|
bc.displayName = "ToggleButton";
|
|
5807
|
-
const
|
|
5813
|
+
const hs = O({}), Cc = h(
|
|
5808
5814
|
[
|
|
5809
5815
|
"flex",
|
|
5810
5816
|
"items-center",
|
|
@@ -5918,8 +5924,8 @@ const fs = T({}), Cc = v(
|
|
|
5918
5924
|
}
|
|
5919
5925
|
]
|
|
5920
5926
|
}
|
|
5921
|
-
),
|
|
5922
|
-
const a = b(
|
|
5927
|
+
), Nt = u((n) => {
|
|
5928
|
+
const a = b(hs), {
|
|
5923
5929
|
ref: t,
|
|
5924
5930
|
className: e,
|
|
5925
5931
|
icon: s,
|
|
@@ -5943,13 +5949,13 @@ const fs = T({}), Cc = v(
|
|
|
5943
5949
|
}
|
|
5944
5950
|
);
|
|
5945
5951
|
});
|
|
5946
|
-
|
|
5947
|
-
const
|
|
5948
|
-
|
|
5949
|
-
const
|
|
5950
|
-
|
|
5951
|
-
const
|
|
5952
|
-
const a =
|
|
5952
|
+
Nt.displayName = "ToggleGroupBaseItem";
|
|
5953
|
+
const vs = u((n) => /* @__PURE__ */ i(Nt, { icon: !0, ...n }));
|
|
5954
|
+
vs.displayName = "ToggleGroupIconItem";
|
|
5955
|
+
const bs = u((n) => /* @__PURE__ */ i(Nt, { icon: !1, ...n }));
|
|
5956
|
+
bs.displayName = "ToggleGroupItem";
|
|
5957
|
+
const Cs = u((n) => {
|
|
5958
|
+
const a = V(), {
|
|
5953
5959
|
ref: t,
|
|
5954
5960
|
children: e,
|
|
5955
5961
|
accentColor: s = a.accentColor,
|
|
@@ -5957,7 +5963,7 @@ const bs = u((n) => {
|
|
|
5957
5963
|
variant: r = "soft",
|
|
5958
5964
|
size: c = "md",
|
|
5959
5965
|
...l
|
|
5960
|
-
} = n, d =
|
|
5966
|
+
} = n, d = z(
|
|
5961
5967
|
() => ({
|
|
5962
5968
|
variant: r,
|
|
5963
5969
|
size: c,
|
|
@@ -5966,19 +5972,19 @@ const bs = u((n) => {
|
|
|
5966
5972
|
}),
|
|
5967
5973
|
[s, o, c, r]
|
|
5968
5974
|
);
|
|
5969
|
-
return /* @__PURE__ */ i(Oe.Root, { ref: t, "data-accent-color": s, ...l, children: /* @__PURE__ */ i(
|
|
5975
|
+
return /* @__PURE__ */ i(Oe.Root, { ref: t, "data-accent-color": s, ...l, children: /* @__PURE__ */ i(hs, { value: d, children: e }) });
|
|
5970
5976
|
});
|
|
5971
|
-
|
|
5977
|
+
Cs.displayName = "ToggleGroupRoot";
|
|
5972
5978
|
const mi = {
|
|
5973
|
-
Root:
|
|
5974
|
-
Item:
|
|
5975
|
-
IconItem:
|
|
5976
|
-
},
|
|
5979
|
+
Root: Cs,
|
|
5980
|
+
Item: bs,
|
|
5981
|
+
IconItem: vs
|
|
5982
|
+
}, ys = u((n) => {
|
|
5977
5983
|
const { ref: a, className: t, ...e } = n;
|
|
5978
5984
|
return /* @__PURE__ */ i(de.Arrow, { className: x("fill-(--base-6)", t), ref: a, ...e });
|
|
5979
5985
|
});
|
|
5980
|
-
|
|
5981
|
-
const yc =
|
|
5986
|
+
ys.displayName = "TooltipArrow";
|
|
5987
|
+
const yc = h(
|
|
5982
5988
|
[
|
|
5983
5989
|
"data-[state=delayed-open]:animate-in",
|
|
5984
5990
|
"data-[state=delayed-open]:fade-in-0",
|
|
@@ -6014,8 +6020,8 @@ const yc = v(
|
|
|
6014
6020
|
side: "top"
|
|
6015
6021
|
}
|
|
6016
6022
|
}
|
|
6017
|
-
),
|
|
6018
|
-
const a =
|
|
6023
|
+
), zs = u((n) => {
|
|
6024
|
+
const a = V(), {
|
|
6019
6025
|
ref: t,
|
|
6020
6026
|
children: e,
|
|
6021
6027
|
className: s,
|
|
@@ -6038,222 +6044,222 @@ const yc = v(
|
|
|
6038
6044
|
}
|
|
6039
6045
|
) });
|
|
6040
6046
|
});
|
|
6041
|
-
|
|
6047
|
+
zs.displayName = "TooltipContent";
|
|
6042
6048
|
const gi = {
|
|
6043
|
-
Arrow:
|
|
6044
|
-
Content:
|
|
6049
|
+
Arrow: ys,
|
|
6050
|
+
Content: zs,
|
|
6045
6051
|
Root: de.Root,
|
|
6046
6052
|
Trigger: de.Trigger,
|
|
6047
6053
|
Provider: de.Provider
|
|
6048
6054
|
};
|
|
6049
6055
|
export {
|
|
6050
6056
|
_c as AlertDialog,
|
|
6051
|
-
|
|
6052
|
-
|
|
6057
|
+
tt as AlertDialogContent,
|
|
6058
|
+
mo as AlertDialogProvider,
|
|
6053
6059
|
Fc as Avatar,
|
|
6054
|
-
|
|
6055
|
-
|
|
6056
|
-
|
|
6057
|
-
|
|
6058
|
-
|
|
6059
|
-
|
|
6060
|
-
|
|
6060
|
+
ta as AvatarFallback,
|
|
6061
|
+
aa as AvatarImage,
|
|
6062
|
+
na as AvatarRoot,
|
|
6063
|
+
fo as Badge,
|
|
6064
|
+
Ke as Button,
|
|
6065
|
+
uo as ButtonGroup,
|
|
6066
|
+
vo as Card,
|
|
6061
6067
|
Hc as Checkbox,
|
|
6062
6068
|
jc as CheckboxGroup,
|
|
6063
|
-
|
|
6064
|
-
|
|
6065
|
-
|
|
6066
|
-
|
|
6067
|
-
|
|
6068
|
-
|
|
6069
|
-
|
|
6070
|
-
|
|
6071
|
-
|
|
6072
|
-
|
|
6073
|
-
|
|
6074
|
-
|
|
6075
|
-
|
|
6069
|
+
ra as CheckboxGroupItem,
|
|
6070
|
+
ca as CheckboxGroupItemIndicator,
|
|
6071
|
+
ia as CheckboxGroupRoot,
|
|
6072
|
+
la as CheckboxGroupSelectAllItem,
|
|
6073
|
+
sa as CheckboxIndicator,
|
|
6074
|
+
oa as CheckboxRoot,
|
|
6075
|
+
qc as CommandMenu,
|
|
6076
|
+
da as CommandMenuCheckboxIndicator,
|
|
6077
|
+
ga as CommandMenuCheckboxItem,
|
|
6078
|
+
pa as CommandMenuContent,
|
|
6079
|
+
xa as CommandMenuEmpty,
|
|
6080
|
+
Ee as CommandMenuGroup,
|
|
6081
|
+
fa as CommandMenuInput,
|
|
6076
6082
|
ce as CommandMenuItem,
|
|
6077
|
-
|
|
6078
|
-
|
|
6079
|
-
|
|
6080
|
-
|
|
6081
|
-
|
|
6082
|
-
|
|
6083
|
-
|
|
6084
|
-
|
|
6085
|
-
|
|
6086
|
-
|
|
6087
|
-
|
|
6088
|
-
|
|
6089
|
-
|
|
6090
|
-
|
|
6091
|
-
|
|
6092
|
-
|
|
6093
|
-
|
|
6094
|
-
|
|
6095
|
-
|
|
6096
|
-
|
|
6083
|
+
ha as CommandMenuList,
|
|
6084
|
+
To as CommandMenuMultiSelectGroup,
|
|
6085
|
+
Po as CommandMenuMultiSelectItem,
|
|
6086
|
+
va as CommandMenuOverlay,
|
|
6087
|
+
ba as CommandMenuPage,
|
|
6088
|
+
ya as CommandMenuPageTriggerItem,
|
|
6089
|
+
Ca as CommandMenuPages,
|
|
6090
|
+
Mo as CommandMenuRadioGroup,
|
|
6091
|
+
Oo as CommandMenuRadioItem,
|
|
6092
|
+
za as CommandMenuRoot,
|
|
6093
|
+
Vo as CommandMenuSelectAllItem,
|
|
6094
|
+
Na as CommandMenuSelectedIndicator,
|
|
6095
|
+
wa as CommandMenuSeparator,
|
|
6096
|
+
Ia as CommandMenuTrigger,
|
|
6097
|
+
jo as DayPicker,
|
|
6098
|
+
Uc as Dialog,
|
|
6099
|
+
ka as DialogContent,
|
|
6100
|
+
Ra as DialogOverlay,
|
|
6101
|
+
Ta as DialogRoot,
|
|
6102
|
+
Ko as Heading,
|
|
6097
6103
|
Wc as HoverCard,
|
|
6098
|
-
|
|
6099
|
-
|
|
6100
|
-
|
|
6101
|
-
tt as IconButton,
|
|
6104
|
+
Pa as HoverCardArrow,
|
|
6105
|
+
Ma as HoverCardContent,
|
|
6106
|
+
at as IconButton,
|
|
6102
6107
|
vc as IconToggleButton,
|
|
6103
6108
|
Kc as Input,
|
|
6104
|
-
|
|
6105
|
-
|
|
6106
|
-
|
|
6109
|
+
Oa as InputField,
|
|
6110
|
+
Va as InputRoot,
|
|
6111
|
+
La as InputSlot,
|
|
6107
6112
|
Qc as Layout,
|
|
6108
|
-
|
|
6109
|
-
|
|
6110
|
-
|
|
6111
|
-
|
|
6112
|
-
|
|
6113
|
-
|
|
6114
|
-
|
|
6115
|
-
|
|
6113
|
+
Aa as LayoutContainer,
|
|
6114
|
+
Da as LayoutRoot,
|
|
6115
|
+
_a as LayoutSlideOutClose,
|
|
6116
|
+
Fa as LayoutSlideOutContent,
|
|
6117
|
+
Ha as LayoutSlideOutHandle,
|
|
6118
|
+
Ba as LayoutSlideOutOverlay,
|
|
6119
|
+
$a as LayoutSlideOutRoot,
|
|
6120
|
+
ja as LayoutSlideOutTrigger,
|
|
6116
6121
|
rr as Link,
|
|
6117
|
-
|
|
6122
|
+
U as LuIcon,
|
|
6118
6123
|
Jc as Menu,
|
|
6119
|
-
|
|
6120
|
-
|
|
6121
|
-
|
|
6122
|
-
|
|
6123
|
-
|
|
6124
|
-
|
|
6125
|
-
|
|
6126
|
-
|
|
6127
|
-
|
|
6124
|
+
Wa as MenuCheckboxItem,
|
|
6125
|
+
Ka as MenuCheckboxItemIndicator,
|
|
6126
|
+
Xa as MenuClickTrigger,
|
|
6127
|
+
Ya as MenuContent,
|
|
6128
|
+
Qa as MenuContextTrigger,
|
|
6129
|
+
He as MenuGroup,
|
|
6130
|
+
Ja as MenuInputField,
|
|
6131
|
+
Za as MenuInputRoot,
|
|
6132
|
+
en as MenuInputSlot,
|
|
6128
6133
|
se as MenuItem,
|
|
6129
|
-
|
|
6134
|
+
tn as MenuLabel,
|
|
6130
6135
|
gr as MenuMultiSelectGroup,
|
|
6131
6136
|
pr as MenuMultiSelectItem,
|
|
6132
|
-
|
|
6133
|
-
|
|
6134
|
-
|
|
6135
|
-
|
|
6136
|
-
|
|
6137
|
+
an as MenuPageContent,
|
|
6138
|
+
sn as MenuPageTrigger,
|
|
6139
|
+
nn as MenuPages,
|
|
6140
|
+
rn as MenuRoot,
|
|
6141
|
+
cn as MenuScroll,
|
|
6137
6142
|
fr as MenuSelectAllItem,
|
|
6138
6143
|
hr as MenuSelectGroup,
|
|
6139
6144
|
vr as MenuSelectItem,
|
|
6140
|
-
|
|
6141
|
-
|
|
6142
|
-
|
|
6143
|
-
|
|
6144
|
-
|
|
6145
|
+
ln as MenuSelectedIndicator,
|
|
6146
|
+
dn as MenuSeparator,
|
|
6147
|
+
un as MenuSub,
|
|
6148
|
+
mn as MenuSubContent,
|
|
6149
|
+
gn as MenuSubTrigger,
|
|
6145
6150
|
Zc as MenuV2,
|
|
6146
|
-
|
|
6147
|
-
|
|
6148
|
-
|
|
6149
|
-
|
|
6151
|
+
fn as MenuV2CheckboxItem,
|
|
6152
|
+
hn as MenuV2CheckedIndicator,
|
|
6153
|
+
$e as MenuV2Group,
|
|
6154
|
+
vn as MenuV2GroupLabel,
|
|
6150
6155
|
le as MenuV2Item,
|
|
6151
6156
|
kr as MenuV2MultiSelectGroup,
|
|
6152
6157
|
Rr as MenuV2MultiSelectItem,
|
|
6153
|
-
|
|
6154
|
-
|
|
6155
|
-
|
|
6156
|
-
|
|
6158
|
+
bn as MenuV2Page,
|
|
6159
|
+
yn as MenuV2PageTriggerItem,
|
|
6160
|
+
Cn as MenuV2Pages,
|
|
6161
|
+
zn as MenuV2Root,
|
|
6157
6162
|
Sr as MenuV2SelectAllItem,
|
|
6158
6163
|
Tr as MenuV2SelectGroup,
|
|
6159
6164
|
Pr as MenuV2SelectItem,
|
|
6160
|
-
|
|
6161
|
-
|
|
6162
|
-
|
|
6165
|
+
Nn as MenuV2SelectedIndicator,
|
|
6166
|
+
wn as MenuV2Separator,
|
|
6167
|
+
pn as MenuVirtualTrigger,
|
|
6163
6168
|
ei as OneTimePasswordField,
|
|
6164
|
-
|
|
6165
|
-
|
|
6166
|
-
|
|
6169
|
+
In as OneTimePasswordFieldHiddenInput,
|
|
6170
|
+
kn as OneTimePasswordFieldInput,
|
|
6171
|
+
Rn as OneTimePasswordFieldRoot,
|
|
6167
6172
|
ti as Overlay,
|
|
6168
|
-
|
|
6169
|
-
|
|
6170
|
-
|
|
6171
|
-
|
|
6172
|
-
|
|
6173
|
-
|
|
6173
|
+
Tn as OverlayClose,
|
|
6174
|
+
Pn as OverlayContent,
|
|
6175
|
+
Mn as OverlayDescription,
|
|
6176
|
+
On as OverlayRoot,
|
|
6177
|
+
Vn as OverlayTitle,
|
|
6178
|
+
Ln as OverlayTrigger,
|
|
6174
6179
|
Vr as OvermapErrorBoundary,
|
|
6175
6180
|
ai as Popover,
|
|
6176
|
-
|
|
6177
|
-
|
|
6181
|
+
Dn as PopoverArrow,
|
|
6182
|
+
Gn as PopoverContent,
|
|
6178
6183
|
Gr as Progress,
|
|
6179
|
-
|
|
6184
|
+
lo as Provider,
|
|
6180
6185
|
ni as RadioCards,
|
|
6181
|
-
|
|
6182
|
-
|
|
6186
|
+
_n as RadioCardsItem,
|
|
6187
|
+
Fn as RadioCardsRoot,
|
|
6183
6188
|
si as RadioGroup,
|
|
6184
|
-
|
|
6185
|
-
|
|
6186
|
-
|
|
6189
|
+
Hn as RadioGroupIndicator,
|
|
6190
|
+
$n as RadioGroupItem,
|
|
6191
|
+
jn as RadioGroupRoot,
|
|
6187
6192
|
oi as Rating,
|
|
6188
6193
|
Un as RatingItem,
|
|
6189
|
-
|
|
6190
|
-
|
|
6194
|
+
Wn as RatingItemIndicator,
|
|
6195
|
+
Kn as RatingRoot,
|
|
6191
6196
|
ri as SegmentedControl,
|
|
6192
|
-
|
|
6193
|
-
|
|
6197
|
+
Yn as SegmentedControlItem,
|
|
6198
|
+
Qn as SegmentedControlRoot,
|
|
6194
6199
|
ci as SegmentedTabs,
|
|
6195
|
-
|
|
6196
|
-
|
|
6197
|
-
|
|
6200
|
+
Zn as SegmentedTabsList,
|
|
6201
|
+
es as SegmentedTabsRoot,
|
|
6202
|
+
ts as SegmentedTabsTrigger,
|
|
6198
6203
|
Wr as Separator,
|
|
6199
6204
|
Yc as SlideOut,
|
|
6200
|
-
|
|
6201
|
-
|
|
6202
|
-
|
|
6203
|
-
|
|
6204
|
-
|
|
6205
|
-
|
|
6206
|
-
|
|
6205
|
+
mt as SlideOutClose,
|
|
6206
|
+
gt as SlideOutContent,
|
|
6207
|
+
pt as SlideOutHandle,
|
|
6208
|
+
xt as SlideOutOverlay,
|
|
6209
|
+
ft as SlideOutRoot,
|
|
6210
|
+
Ea as SlideOutTrigger,
|
|
6211
|
+
ht as SlideOutViewport,
|
|
6207
6212
|
Jr as Slider,
|
|
6208
6213
|
ec as Spinner,
|
|
6209
6214
|
ii as Switch,
|
|
6210
|
-
|
|
6211
|
-
|
|
6215
|
+
ns as SwitchRoot,
|
|
6216
|
+
ss as SwitchThumb,
|
|
6212
6217
|
li as Table,
|
|
6213
|
-
|
|
6214
|
-
|
|
6215
|
-
|
|
6216
|
-
|
|
6217
|
-
|
|
6218
|
-
|
|
6219
|
-
|
|
6220
|
-
|
|
6218
|
+
os as TableBody,
|
|
6219
|
+
rs as TableCell,
|
|
6220
|
+
cs as TableColumnHeaderCell,
|
|
6221
|
+
is as TableFooter,
|
|
6222
|
+
ls as TableHeader,
|
|
6223
|
+
ds as TableRoot,
|
|
6224
|
+
us as TableRow,
|
|
6225
|
+
ms as TableRowHeaderCell,
|
|
6221
6226
|
di as Tabs,
|
|
6222
|
-
|
|
6223
|
-
|
|
6224
|
-
|
|
6225
|
-
|
|
6227
|
+
ps as TabsList,
|
|
6228
|
+
xs as TabsRoot,
|
|
6229
|
+
fs as TabsTrigger,
|
|
6230
|
+
Ye as Text,
|
|
6226
6231
|
lc as TextArea,
|
|
6227
6232
|
fc as Toaster,
|
|
6228
6233
|
bc as ToggleButton,
|
|
6229
6234
|
mi as ToggleGroup,
|
|
6230
|
-
|
|
6231
|
-
|
|
6232
|
-
|
|
6235
|
+
vs as ToggleGroupIconItem,
|
|
6236
|
+
bs as ToggleGroupItem,
|
|
6237
|
+
Cs as ToggleGroupRoot,
|
|
6233
6238
|
gi as Tooltip,
|
|
6234
|
-
|
|
6235
|
-
|
|
6236
|
-
|
|
6237
|
-
|
|
6239
|
+
ys as TooltipArrow,
|
|
6240
|
+
zs as TooltipContent,
|
|
6241
|
+
xo as badge,
|
|
6242
|
+
Zt as buttonCva,
|
|
6238
6243
|
Ve as floating,
|
|
6239
6244
|
F as genericMemo,
|
|
6240
|
-
|
|
6245
|
+
Ae as getActiveState,
|
|
6241
6246
|
Q as getBooleanState,
|
|
6242
6247
|
Ie as getCheckedState,
|
|
6243
6248
|
pe as getOpenState,
|
|
6244
6249
|
oe as getSelectedState,
|
|
6245
6250
|
we as mergeRefs,
|
|
6246
6251
|
k as radiusCva,
|
|
6247
|
-
|
|
6252
|
+
Le as shadowCva,
|
|
6253
|
+
Co as stopPropagation,
|
|
6248
6254
|
ui as toast,
|
|
6249
6255
|
Ec as useAlertDialog,
|
|
6250
|
-
|
|
6256
|
+
Jt as useButtonGroup,
|
|
6251
6257
|
X as useControlledState,
|
|
6252
|
-
|
|
6253
|
-
|
|
6258
|
+
bo as useFallbackId,
|
|
6259
|
+
st as useLatest,
|
|
6254
6260
|
ke as useLayoutContext,
|
|
6255
6261
|
Xc as useLayoutContextSelector,
|
|
6256
|
-
|
|
6262
|
+
V as useProvider,
|
|
6257
6263
|
$c as useTextFilter,
|
|
6258
6264
|
Bc as useViewportSize
|
|
6259
6265
|
};
|