@duro-app/ui 0.8.0 → 0.8.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Cluster/Cluster.d.ts +1 -1
- package/dist/components/Cluster/Cluster.d.ts.map +1 -1
- package/dist/components/Grid/Grid.d.ts.map +1 -1
- package/dist/components/Heading/Heading.d.ts +1 -1
- package/dist/components/Heading/Heading.d.ts.map +1 -1
- package/dist/components/Inline/Inline.d.ts +1 -1
- package/dist/components/Inline/Inline.d.ts.map +1 -1
- package/dist/components/Select/Select.d.ts +2 -1
- package/dist/components/Select/Select.d.ts.map +1 -1
- package/dist/components/Select/useSelectRoot.d.ts +2 -1
- package/dist/components/Select/useSelectRoot.d.ts.map +1 -1
- package/dist/components/Stack/Stack.d.ts.map +1 -1
- package/dist/docs/Typography.stories.d.ts.map +1 -1
- package/dist/docs/helpers.d.ts.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +722 -719
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { jsx as o, jsxs as A, Fragment as
|
|
2
|
-
import { useState as
|
|
1
|
+
import { jsx as o, jsxs as A, Fragment as _ } from "react/jsx-runtime";
|
|
2
|
+
import { useState as H, useCallback as q, useContext as N, createContext as C, useId as U, useMemo as ft, useRef as w, useEffect as W, Children as It } from "react";
|
|
3
3
|
/**
|
|
4
4
|
* @license react-strict-dom
|
|
5
5
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
@@ -7,77 +7,77 @@ import { useState as G, useCallback as W, useContext as N, createContext as D, u
|
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
9
|
*/
|
|
10
|
-
var
|
|
11
|
-
Object.defineProperty(
|
|
10
|
+
var $t = {};
|
|
11
|
+
Object.defineProperty($t, "__esModule", {
|
|
12
12
|
value: !0
|
|
13
13
|
});
|
|
14
|
-
var
|
|
15
|
-
function
|
|
14
|
+
var qt = $t.styleq = void 0, Rt = /* @__PURE__ */ new WeakMap(), Xt = "$$css";
|
|
15
|
+
function Wt(t) {
|
|
16
16
|
var e, n, r;
|
|
17
17
|
return t != null && (e = t.disableCache === !0, n = t.disableMix === !0, r = t.transform), function() {
|
|
18
|
-
for (var
|
|
19
|
-
u
|
|
20
|
-
for (;
|
|
21
|
-
var
|
|
22
|
-
if (!(
|
|
23
|
-
if (Array.isArray(
|
|
24
|
-
for (var
|
|
25
|
-
|
|
18
|
+
for (var x = [], i = "", c = null, d = "", a = e ? null : Rt, g = new Array(arguments.length), u = 0; u < arguments.length; u++)
|
|
19
|
+
g[u] = arguments[u];
|
|
20
|
+
for (; g.length > 0; ) {
|
|
21
|
+
var v = g.pop();
|
|
22
|
+
if (!(v == null || v === !1)) {
|
|
23
|
+
if (Array.isArray(v)) {
|
|
24
|
+
for (var S = 0; S < v.length; S++)
|
|
25
|
+
g.push(v[S]);
|
|
26
26
|
continue;
|
|
27
27
|
}
|
|
28
|
-
var h = r != null ? r(
|
|
28
|
+
var h = r != null ? r(v) : v;
|
|
29
29
|
if (h.$$css != null) {
|
|
30
|
-
var
|
|
31
|
-
if (
|
|
32
|
-
var f =
|
|
33
|
-
f != null && (
|
|
30
|
+
var m = "";
|
|
31
|
+
if (a != null && a.has(h)) {
|
|
32
|
+
var f = a.get(h);
|
|
33
|
+
f != null && (m = f[0], d = f[2], x.push.apply(x, f[1]), a = f[3]);
|
|
34
34
|
} else {
|
|
35
|
-
var
|
|
35
|
+
var $ = [];
|
|
36
36
|
for (var p in h) {
|
|
37
37
|
var b = h[p];
|
|
38
|
-
if (p ===
|
|
39
|
-
var
|
|
40
|
-
|
|
38
|
+
if (p === Xt) {
|
|
39
|
+
var B = h[p];
|
|
40
|
+
B !== !0 && (d = d ? B + "; " + d : B);
|
|
41
41
|
continue;
|
|
42
42
|
}
|
|
43
|
-
typeof b == "string" || b === null ?
|
|
43
|
+
typeof b == "string" || b === null ? x.includes(p) || (x.push(p), a != null && $.push(p), typeof b == "string" && (m += m ? " " + b : b)) : console.error("styleq: ".concat(p, " typeof ").concat(String(b), ' is not "string" or "null".'));
|
|
44
44
|
}
|
|
45
|
-
if (
|
|
46
|
-
var
|
|
47
|
-
|
|
45
|
+
if (a != null) {
|
|
46
|
+
var F = /* @__PURE__ */ new WeakMap();
|
|
47
|
+
a.set(h, [m, $, d, F]), a = F;
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
|
-
|
|
50
|
+
m && (i = i ? m + " " + i : m);
|
|
51
51
|
} else if (n)
|
|
52
|
-
|
|
52
|
+
c == null && (c = {}), c = Object.assign({}, h, c);
|
|
53
53
|
else {
|
|
54
|
-
var
|
|
55
|
-
for (var
|
|
56
|
-
var
|
|
57
|
-
|
|
54
|
+
var y = null;
|
|
55
|
+
for (var z in h) {
|
|
56
|
+
var j = h[z];
|
|
57
|
+
j !== void 0 && (x.includes(z) || (j != null && (c == null && (c = {}), y == null && (y = {}), y[z] = j), x.push(z), a = null));
|
|
58
58
|
}
|
|
59
|
-
|
|
59
|
+
y != null && (c = Object.assign(y, c));
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
|
-
var
|
|
64
|
-
return
|
|
63
|
+
var M = [i, c, d];
|
|
64
|
+
return M;
|
|
65
65
|
};
|
|
66
66
|
}
|
|
67
|
-
var
|
|
68
|
-
|
|
69
|
-
const
|
|
67
|
+
var Yt = qt = $t.styleq = Wt();
|
|
68
|
+
Yt.factory = Wt;
|
|
69
|
+
const Jt = qt.factory({
|
|
70
70
|
disableMix: !0
|
|
71
71
|
});
|
|
72
|
-
function
|
|
73
|
-
const [e, n, r] =
|
|
72
|
+
function l(...t) {
|
|
73
|
+
const [e, n, r] = Jt(t), s = {};
|
|
74
74
|
if (e != null && e !== "" && (s.className = e), n != null && (s.style = n), r != null && r !== "") {
|
|
75
|
-
const
|
|
76
|
-
for (const
|
|
77
|
-
const d =
|
|
78
|
-
|
|
75
|
+
const x = r.split(";"), i = {};
|
|
76
|
+
for (const c of x) {
|
|
77
|
+
const d = c.trim(), [a, g] = d.split(":");
|
|
78
|
+
g != null && (i[a] = i[a] != null ? `${i[a]},${g}` : g);
|
|
79
79
|
}
|
|
80
|
-
s["data-style-src"] = Object.keys(
|
|
80
|
+
s["data-style-src"] = Object.keys(i).map((c) => `${c}:${i[c]}`).join("; ");
|
|
81
81
|
}
|
|
82
82
|
return s;
|
|
83
83
|
}
|
|
@@ -121,23 +121,23 @@ const V = {
|
|
|
121
121
|
kHenm0: "x288g5",
|
|
122
122
|
$$css: !0
|
|
123
123
|
}
|
|
124
|
-
},
|
|
125
|
-
a:
|
|
126
|
-
button:
|
|
127
|
-
div:
|
|
128
|
-
h1:
|
|
129
|
-
h2:
|
|
130
|
-
h3:
|
|
131
|
-
h4:
|
|
132
|
-
h5:
|
|
133
|
-
h6:
|
|
134
|
-
input:
|
|
135
|
-
label:
|
|
136
|
-
nav:
|
|
137
|
-
p:
|
|
138
|
-
span:
|
|
139
|
-
textarea:
|
|
140
|
-
},
|
|
124
|
+
}, Pt = V.inline, Ft = [V.inlineblock, V.button], Qt = V.block, Z = [V.block, V.heading], Kt = [V.inlineblock, V.input], Ut = V.inline, _t = V.block, Zt = V.block, te = V.inline, ee = [V.inlineblock, V.textarea], k = {
|
|
125
|
+
a: Pt,
|
|
126
|
+
button: Ft,
|
|
127
|
+
div: Qt,
|
|
128
|
+
h1: Z,
|
|
129
|
+
h2: Z,
|
|
130
|
+
h3: Z,
|
|
131
|
+
h4: Z,
|
|
132
|
+
h5: Z,
|
|
133
|
+
h6: Z,
|
|
134
|
+
input: Kt,
|
|
135
|
+
label: Ut,
|
|
136
|
+
nav: _t,
|
|
137
|
+
p: Zt,
|
|
138
|
+
span: te,
|
|
139
|
+
textarea: ee
|
|
140
|
+
}, jt = {
|
|
141
141
|
base: {
|
|
142
142
|
kmVPX3: "x16ixvul",
|
|
143
143
|
kaIpWk: "x1gbengz",
|
|
@@ -172,13 +172,13 @@ const V = {
|
|
|
172
172
|
$$css: !0
|
|
173
173
|
}
|
|
174
174
|
};
|
|
175
|
-
function
|
|
175
|
+
function wn({
|
|
176
176
|
variant: t = "info",
|
|
177
177
|
children: e
|
|
178
178
|
}) {
|
|
179
|
-
return /* @__PURE__ */ o("div", { role: "alert", ...k
|
|
179
|
+
return /* @__PURE__ */ o("div", { role: "alert", ...l(k.div, jt.base, jt[t]), children: e });
|
|
180
180
|
}
|
|
181
|
-
const
|
|
181
|
+
const xt = {
|
|
182
182
|
base: {
|
|
183
183
|
k1xSpc: "x3nfvp2",
|
|
184
184
|
kGNEyG: "x6s0dn4",
|
|
@@ -231,18 +231,18 @@ const ct = {
|
|
|
231
231
|
kMwMTN: "xmooqzt",
|
|
232
232
|
$$css: !0
|
|
233
233
|
}
|
|
234
|
-
},
|
|
235
|
-
sm:
|
|
236
|
-
md:
|
|
234
|
+
}, ne = {
|
|
235
|
+
sm: xt.sizeSm,
|
|
236
|
+
md: xt.sizeMd
|
|
237
237
|
};
|
|
238
|
-
function
|
|
238
|
+
function Sn({
|
|
239
239
|
variant: t = "default",
|
|
240
240
|
size: e = "md",
|
|
241
241
|
children: n
|
|
242
242
|
}) {
|
|
243
|
-
return /* @__PURE__ */ o("span", { ...k
|
|
243
|
+
return /* @__PURE__ */ o("span", { ...l(k.span, xt.base, ne[e], xt[t]), children: n });
|
|
244
244
|
}
|
|
245
|
-
const
|
|
245
|
+
const nt = {
|
|
246
246
|
base: {
|
|
247
247
|
k1xSpc: "x3nfvp2",
|
|
248
248
|
kGNEyG: "x6s0dn4",
|
|
@@ -317,22 +317,22 @@ const et = {
|
|
|
317
317
|
kkrTdU: "x1h6gzvc",
|
|
318
318
|
$$css: !0
|
|
319
319
|
}
|
|
320
|
-
},
|
|
321
|
-
default:
|
|
322
|
-
small:
|
|
320
|
+
}, re = {
|
|
321
|
+
default: nt.sizeDefault,
|
|
322
|
+
small: nt.sizeSmall
|
|
323
323
|
};
|
|
324
|
-
function
|
|
324
|
+
function jn({
|
|
325
325
|
variant: t = "primary",
|
|
326
326
|
size: e = "default",
|
|
327
327
|
fullWidth: n = !1,
|
|
328
328
|
disabled: r = !1,
|
|
329
329
|
type: s = "button",
|
|
330
|
-
onClick:
|
|
331
|
-
children:
|
|
330
|
+
onClick: x,
|
|
331
|
+
children: i
|
|
332
332
|
}) {
|
|
333
|
-
return /* @__PURE__ */ o("button", { type: s, disabled: r, onClick:
|
|
333
|
+
return /* @__PURE__ */ o("button", { type: s, disabled: r, onClick: x, ...l(k.button, nt.base, re[e], nt[t], n && nt.fullWidth, r && nt.disabled), children: i });
|
|
334
334
|
}
|
|
335
|
-
const
|
|
335
|
+
const rt = {
|
|
336
336
|
base: {
|
|
337
337
|
kWkggS: "xl5mw0s",
|
|
338
338
|
kMwMTN: "xg6mlj0",
|
|
@@ -389,24 +389,24 @@ const nt = {
|
|
|
389
389
|
k1K539: "x2mrtcw",
|
|
390
390
|
$$css: !0
|
|
391
391
|
}
|
|
392
|
-
},
|
|
393
|
-
default:
|
|
394
|
-
compact:
|
|
395
|
-
full:
|
|
392
|
+
}, se = {
|
|
393
|
+
default: rt.sizeDefault,
|
|
394
|
+
compact: rt.sizeCompact,
|
|
395
|
+
full: rt.sizeFull
|
|
396
396
|
};
|
|
397
|
-
function
|
|
397
|
+
function Mn({
|
|
398
398
|
variant: t = "outlined",
|
|
399
399
|
size: e = "default",
|
|
400
400
|
header: n,
|
|
401
401
|
onClick: r,
|
|
402
402
|
children: s
|
|
403
403
|
}) {
|
|
404
|
-
return /* @__PURE__ */ A("div", { onClick: r, ...k
|
|
405
|
-
n && /* @__PURE__ */ o("div", { ...k
|
|
404
|
+
return /* @__PURE__ */ A("div", { onClick: r, ...l(k.div, rt.base, rt[t], se[e]), children: [
|
|
405
|
+
n && /* @__PURE__ */ o("div", { ...l(k.div, rt.header), children: n }),
|
|
406
406
|
s
|
|
407
407
|
] });
|
|
408
408
|
}
|
|
409
|
-
const
|
|
409
|
+
const tt = {
|
|
410
410
|
root: {
|
|
411
411
|
k1xSpc: "x3nfvp2",
|
|
412
412
|
kGNEyG: "x6s0dn4",
|
|
@@ -456,27 +456,27 @@ const Z = {
|
|
|
456
456
|
$$css: !0
|
|
457
457
|
}
|
|
458
458
|
};
|
|
459
|
-
function
|
|
459
|
+
function zn({
|
|
460
460
|
name: t,
|
|
461
461
|
value: e,
|
|
462
462
|
checked: n,
|
|
463
463
|
defaultChecked: r = !1,
|
|
464
464
|
disabled: s = !1,
|
|
465
|
-
onChange:
|
|
466
|
-
children:
|
|
465
|
+
onChange: x,
|
|
466
|
+
children: i
|
|
467
467
|
}) {
|
|
468
|
-
const
|
|
469
|
-
|
|
470
|
-
}, [
|
|
471
|
-
return /* @__PURE__ */ A("label", { ...k
|
|
472
|
-
/* @__PURE__ */ o("input", { type: "checkbox", name: t, value: e, checked:
|
|
473
|
-
/* @__PURE__ */ o("span", { ...k
|
|
474
|
-
opacity:
|
|
468
|
+
const c = n !== void 0, [d, a] = H(r), g = c ? n : d, u = q((v) => {
|
|
469
|
+
c || a(v.target.checked), x?.(v);
|
|
470
|
+
}, [c, x]);
|
|
471
|
+
return /* @__PURE__ */ A("label", { ...l(k.label, tt.root, s && tt.rootDisabled), children: [
|
|
472
|
+
/* @__PURE__ */ o("input", { type: "checkbox", name: t, value: e, checked: c ? n : void 0, defaultChecked: c ? void 0 : r, disabled: s, onChange: u, ...l(k.input, tt.input), dir: "auto" }),
|
|
473
|
+
/* @__PURE__ */ o("span", { ...l(k.span, tt.box, g ? tt.boxChecked : tt.boxUnchecked), "aria-hidden": !0, children: /* @__PURE__ */ o("svg", { width: 12, height: 12, viewBox: "0 0 12 12", fill: "none", style: {
|
|
474
|
+
opacity: g ? 1 : 0
|
|
475
475
|
}, children: /* @__PURE__ */ o("polyline", { points: "2.5 6 5 8.5 9.5 3.5", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }) }) }),
|
|
476
|
-
|
|
476
|
+
i && /* @__PURE__ */ o("span", { ...l(k.span), children: i })
|
|
477
477
|
] });
|
|
478
478
|
}
|
|
479
|
-
const
|
|
479
|
+
const gt = {
|
|
480
480
|
root: {
|
|
481
481
|
k1xSpc: "x78zum5",
|
|
482
482
|
kXwgrk: "xdt5ytf",
|
|
@@ -499,18 +499,18 @@ const dt = {
|
|
|
499
499
|
$$css: !0
|
|
500
500
|
}
|
|
501
501
|
};
|
|
502
|
-
function
|
|
502
|
+
function In({
|
|
503
503
|
message: t,
|
|
504
504
|
icon: e,
|
|
505
505
|
action: n
|
|
506
506
|
}) {
|
|
507
|
-
return /* @__PURE__ */ A("div", { ...k
|
|
507
|
+
return /* @__PURE__ */ A("div", { ...l(k.div, gt.root), children: [
|
|
508
508
|
e,
|
|
509
|
-
/* @__PURE__ */ o("p", { ...k
|
|
510
|
-
n && /* @__PURE__ */ o("div", { ...k
|
|
509
|
+
/* @__PURE__ */ o("p", { ...l(k.p, gt.message), children: t }),
|
|
510
|
+
n && /* @__PURE__ */ o("div", { ...l(k.div, gt.action), children: n })
|
|
511
511
|
] });
|
|
512
512
|
}
|
|
513
|
-
const
|
|
513
|
+
const Ht = {
|
|
514
514
|
bodySm: {
|
|
515
515
|
kMv6JI: "x2nsvjj",
|
|
516
516
|
kGuDYH: "x1if0jgx",
|
|
@@ -624,7 +624,7 @@ const Wt = {
|
|
|
624
624
|
kb6lSQ: "xgvl3jc",
|
|
625
625
|
$$css: !0
|
|
626
626
|
}
|
|
627
|
-
},
|
|
627
|
+
}, ct = {
|
|
628
628
|
default: {
|
|
629
629
|
kMwMTN: "xg6mlj0",
|
|
630
630
|
$$css: !0
|
|
@@ -649,33 +649,33 @@ const Wt = {
|
|
|
649
649
|
k9WMMc: "xp4054r",
|
|
650
650
|
$$css: !0
|
|
651
651
|
}
|
|
652
|
-
},
|
|
652
|
+
}, oe = {
|
|
653
653
|
1: "headingXl",
|
|
654
654
|
2: "headingLg",
|
|
655
655
|
3: "headingMd",
|
|
656
656
|
4: "headingSm",
|
|
657
657
|
5: "headingSm",
|
|
658
658
|
6: "headingSm"
|
|
659
|
-
},
|
|
660
|
-
start:
|
|
661
|
-
center:
|
|
662
|
-
end:
|
|
659
|
+
}, ie = {
|
|
660
|
+
start: ct.alignStart,
|
|
661
|
+
center: ct.alignCenter,
|
|
662
|
+
end: ct.alignEnd
|
|
663
663
|
};
|
|
664
|
-
function
|
|
664
|
+
function qn({
|
|
665
665
|
level: t,
|
|
666
666
|
variant: e,
|
|
667
667
|
color: n = "default",
|
|
668
668
|
align: r,
|
|
669
669
|
children: s
|
|
670
670
|
}) {
|
|
671
|
-
const
|
|
672
|
-
return t === 1 ? /* @__PURE__ */ o("h1", { ...k
|
|
671
|
+
const x = e ?? oe[t], i = [Ht[x], ct[n], r && ie[r]];
|
|
672
|
+
return t === 1 ? /* @__PURE__ */ o("h1", { ...l(k.h1, i), children: s }) : t === 2 ? /* @__PURE__ */ o("h2", { ...l(k.h2, i), children: s }) : t === 3 ? /* @__PURE__ */ o("h3", { ...l(k.h3, i), children: s }) : t === 4 ? /* @__PURE__ */ o("h4", { ...l(k.h4, i), children: s }) : t === 5 ? /* @__PURE__ */ o("h5", { ...l(k.h5, i), children: s }) : /* @__PURE__ */ o("h6", { ...l(k.h6, i), children: s });
|
|
673
673
|
}
|
|
674
|
-
const
|
|
675
|
-
function
|
|
676
|
-
return N(
|
|
674
|
+
const Gt = C(null);
|
|
675
|
+
function it() {
|
|
676
|
+
return N(Gt);
|
|
677
677
|
}
|
|
678
|
-
const
|
|
678
|
+
const lt = {
|
|
679
679
|
root: {
|
|
680
680
|
k1xSpc: "x78zum5",
|
|
681
681
|
kXwgrk: "xdt5ytf",
|
|
@@ -699,46 +699,46 @@ const xt = {
|
|
|
699
699
|
$$css: !0
|
|
700
700
|
}
|
|
701
701
|
};
|
|
702
|
-
function
|
|
702
|
+
function ce({
|
|
703
703
|
invalid: t = !1,
|
|
704
704
|
children: e
|
|
705
705
|
}) {
|
|
706
|
-
const n =
|
|
706
|
+
const n = U(), r = ft(() => ({
|
|
707
707
|
controlId: `${n}-control`,
|
|
708
708
|
descriptionId: `${n}-description`,
|
|
709
709
|
errorId: `${n}-error`,
|
|
710
710
|
invalid: t
|
|
711
711
|
}), [n, t]);
|
|
712
|
-
return /* @__PURE__ */ o(
|
|
712
|
+
return /* @__PURE__ */ o(Gt.Provider, { value: r, children: /* @__PURE__ */ o("div", { ...l(k.div, lt.root), children: e }) });
|
|
713
713
|
}
|
|
714
|
-
function
|
|
714
|
+
function xe({
|
|
715
715
|
children: t
|
|
716
716
|
}) {
|
|
717
|
-
const e =
|
|
718
|
-
return /* @__PURE__ */ o("label", { htmlFor: e?.controlId, ...k
|
|
717
|
+
const e = it();
|
|
718
|
+
return /* @__PURE__ */ o("label", { htmlFor: e?.controlId, ...l(k.label, lt.label), children: t });
|
|
719
719
|
}
|
|
720
|
-
function
|
|
720
|
+
function le({
|
|
721
721
|
children: t
|
|
722
722
|
}) {
|
|
723
|
-
const e =
|
|
724
|
-
return /* @__PURE__ */ o("span", { id: e?.descriptionId, ...k
|
|
723
|
+
const e = it();
|
|
724
|
+
return /* @__PURE__ */ o("span", { id: e?.descriptionId, ...l(k.span, lt.description), children: t });
|
|
725
725
|
}
|
|
726
|
-
function
|
|
726
|
+
function ke({
|
|
727
727
|
children: t
|
|
728
728
|
}) {
|
|
729
|
-
const e =
|
|
730
|
-
return !e?.invalid && !t ? null : /* @__PURE__ */ o("span", { id: e?.errorId, role: "alert", ...k
|
|
731
|
-
}
|
|
732
|
-
const
|
|
733
|
-
Root:
|
|
734
|
-
Label:
|
|
735
|
-
Description:
|
|
736
|
-
Error:
|
|
737
|
-
},
|
|
738
|
-
function
|
|
739
|
-
return N(
|
|
729
|
+
const e = it();
|
|
730
|
+
return !e?.invalid && !t ? null : /* @__PURE__ */ o("span", { id: e?.errorId, role: "alert", ...l(k.span, lt.error), children: t });
|
|
731
|
+
}
|
|
732
|
+
const Wn = {
|
|
733
|
+
Root: ce,
|
|
734
|
+
Label: xe,
|
|
735
|
+
Description: le,
|
|
736
|
+
Error: ke
|
|
737
|
+
}, Tt = C(null);
|
|
738
|
+
function ae() {
|
|
739
|
+
return N(Tt);
|
|
740
740
|
}
|
|
741
|
-
const
|
|
741
|
+
const pt = {
|
|
742
742
|
base: {
|
|
743
743
|
kzqmXN: "xh8yej3",
|
|
744
744
|
kLKAdn: "x1y6gaq4",
|
|
@@ -777,26 +777,26 @@ const gt = {
|
|
|
777
777
|
$$css: !0
|
|
778
778
|
}
|
|
779
779
|
};
|
|
780
|
-
function
|
|
780
|
+
function Hn({
|
|
781
781
|
variant: t = "default",
|
|
782
782
|
type: e = "text",
|
|
783
783
|
name: n,
|
|
784
784
|
placeholder: r,
|
|
785
785
|
required: s,
|
|
786
|
-
minLength:
|
|
787
|
-
pattern:
|
|
788
|
-
autoComplete:
|
|
786
|
+
minLength: x,
|
|
787
|
+
pattern: i,
|
|
788
|
+
autoComplete: c,
|
|
789
789
|
value: d,
|
|
790
|
-
defaultValue:
|
|
791
|
-
disabled:
|
|
792
|
-
onChange:
|
|
790
|
+
defaultValue: a,
|
|
791
|
+
disabled: g,
|
|
792
|
+
onChange: u
|
|
793
793
|
}) {
|
|
794
|
-
const
|
|
795
|
-
pattern:
|
|
794
|
+
const v = it(), S = ae(), h = i !== void 0 ? {
|
|
795
|
+
pattern: i
|
|
796
796
|
} : void 0;
|
|
797
|
-
return /* @__PURE__ */ o("input", { id:
|
|
797
|
+
return /* @__PURE__ */ o("input", { id: v?.controlId, type: e, name: n, placeholder: r, required: s, minLength: x, autoComplete: c, value: d, defaultValue: a, disabled: g, "aria-describedby": v ? `${v.descriptionId} ${v.invalid ? v.errorId : ""}`.trim() : void 0, "aria-invalid": v?.invalid || t === "error" || void 0, onChange: u, ...l(k.input, pt.base, pt[t], S?.inGroup && pt.inGroup), ...h, dir: "auto" });
|
|
798
798
|
}
|
|
799
|
-
const
|
|
799
|
+
const et = {
|
|
800
800
|
wrapper: {
|
|
801
801
|
k1xSpc: "x78zum5",
|
|
802
802
|
kGNEyG: "x1qjc9v5",
|
|
@@ -851,27 +851,27 @@ const tt = {
|
|
|
851
851
|
$$css: !0
|
|
852
852
|
}
|
|
853
853
|
};
|
|
854
|
-
function
|
|
854
|
+
function ue({
|
|
855
855
|
children: t
|
|
856
856
|
}) {
|
|
857
|
-
const e =
|
|
857
|
+
const e = ft(() => ({
|
|
858
858
|
inGroup: !0
|
|
859
859
|
}), []);
|
|
860
|
-
return /* @__PURE__ */ o(
|
|
860
|
+
return /* @__PURE__ */ o(Tt.Provider, { value: e, children: /* @__PURE__ */ o("div", { ...l(k.div, et.wrapper), children: t }) });
|
|
861
861
|
}
|
|
862
|
-
function
|
|
862
|
+
function de({
|
|
863
863
|
position: t = "end",
|
|
864
864
|
onClick: e,
|
|
865
865
|
disabled: n,
|
|
866
866
|
children: r
|
|
867
867
|
}) {
|
|
868
|
-
const s = t === "start" ?
|
|
869
|
-
return e ? /* @__PURE__ */ o("button", { type: "button", onClick: e, disabled: n, ...k
|
|
868
|
+
const s = t === "start" ? et.addonStart : et.addonEnd, x = [et.addon, s, e && !n && et.addonClickable, n && et.addonDisabled];
|
|
869
|
+
return e ? /* @__PURE__ */ o("button", { type: "button", onClick: e, disabled: n, ...l(k.button, x), children: r }) : /* @__PURE__ */ o("span", { ...l(k.span, x), children: r });
|
|
870
870
|
}
|
|
871
|
-
const
|
|
872
|
-
Root:
|
|
873
|
-
Addon:
|
|
874
|
-
},
|
|
871
|
+
const Gn = {
|
|
872
|
+
Root: ue,
|
|
873
|
+
Addon: de
|
|
874
|
+
}, ot = {
|
|
875
875
|
base: {
|
|
876
876
|
k1xSpc: "x3nfvp2",
|
|
877
877
|
kGNEyG: "x6s0dn4",
|
|
@@ -921,20 +921,20 @@ const Hn = {
|
|
|
921
921
|
kzqmXN: "xh8yej3",
|
|
922
922
|
$$css: !0
|
|
923
923
|
}
|
|
924
|
-
},
|
|
925
|
-
default:
|
|
926
|
-
small:
|
|
924
|
+
}, ge = {
|
|
925
|
+
default: ot.sizeDefault,
|
|
926
|
+
small: ot.sizeSmall
|
|
927
927
|
};
|
|
928
|
-
function
|
|
928
|
+
function Tn({
|
|
929
929
|
href: t,
|
|
930
930
|
variant: e = "primary",
|
|
931
931
|
size: n = "default",
|
|
932
932
|
fullWidth: r = !1,
|
|
933
933
|
target: s,
|
|
934
|
-
rel:
|
|
935
|
-
children:
|
|
934
|
+
rel: x,
|
|
935
|
+
children: i
|
|
936
936
|
}) {
|
|
937
|
-
return /* @__PURE__ */ o("a", { href: t, target: s, rel:
|
|
937
|
+
return /* @__PURE__ */ o("a", { href: t, target: s, rel: x, ...l(k.a, ot.base, ge[n], ot[e], r && ot.fullWidth), children: i });
|
|
938
938
|
}
|
|
939
939
|
const J = {
|
|
940
940
|
root: {
|
|
@@ -1020,103 +1020,103 @@ const J = {
|
|
|
1020
1020
|
kMwMTN: "xg6mlj0 x1c35pte",
|
|
1021
1021
|
$$css: !0
|
|
1022
1022
|
}
|
|
1023
|
-
},
|
|
1024
|
-
function
|
|
1025
|
-
const t = N(
|
|
1023
|
+
}, Et = C(null);
|
|
1024
|
+
function kt() {
|
|
1025
|
+
const t = N(Et);
|
|
1026
1026
|
if (!t) throw new Error("Menu compound components must be used within Menu.Root");
|
|
1027
1027
|
return t;
|
|
1028
1028
|
}
|
|
1029
|
-
function
|
|
1030
|
-
const [t, e] =
|
|
1031
|
-
e(!1), r(null),
|
|
1032
|
-
}, []),
|
|
1033
|
-
e((h) => (h ? (r(null),
|
|
1029
|
+
function pe() {
|
|
1030
|
+
const [t, e] = H(!1), [n, r] = H(null), s = U(), x = w(null), i = w(null), c = w(/* @__PURE__ */ new Map()), d = w([]), a = w(!1), g = q(() => {
|
|
1031
|
+
e(!1), r(null), a.current = !1, i.current?.focus();
|
|
1032
|
+
}, []), u = q(() => {
|
|
1033
|
+
e((h) => (h ? (r(null), a.current = !1) : a.current = !0, !h));
|
|
1034
1034
|
}, []);
|
|
1035
|
-
|
|
1036
|
-
if (t &&
|
|
1037
|
-
|
|
1035
|
+
W(() => {
|
|
1036
|
+
if (t && a.current) {
|
|
1037
|
+
a.current = !1;
|
|
1038
1038
|
const h = d.current;
|
|
1039
1039
|
h.length > 0 && r(h[0]);
|
|
1040
1040
|
}
|
|
1041
1041
|
}, [t]);
|
|
1042
|
-
const
|
|
1043
|
-
|
|
1044
|
-
const f =
|
|
1045
|
-
return
|
|
1046
|
-
const
|
|
1047
|
-
return !
|
|
1048
|
-
}), d.current =
|
|
1049
|
-
|
|
1042
|
+
const v = q((h, m) => {
|
|
1043
|
+
c.current.set(h, m);
|
|
1044
|
+
const f = c.current, $ = [...f.keys()];
|
|
1045
|
+
return $.sort((p, b) => {
|
|
1046
|
+
const B = f.get(p), F = f.get(b);
|
|
1047
|
+
return !B || !F ? 0 : B.compareDocumentPosition(F) & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : 1;
|
|
1048
|
+
}), d.current = $, () => {
|
|
1049
|
+
c.current.delete(h), d.current = d.current.filter((p) => p !== h);
|
|
1050
1050
|
};
|
|
1051
1051
|
}, []);
|
|
1052
|
-
return
|
|
1053
|
-
const h =
|
|
1052
|
+
return W(() => {
|
|
1053
|
+
const h = x.current;
|
|
1054
1054
|
if (!h || !t) return;
|
|
1055
|
-
function
|
|
1056
|
-
const
|
|
1057
|
-
if (
|
|
1055
|
+
function m(f) {
|
|
1056
|
+
const $ = d.current;
|
|
1057
|
+
if ($.length !== 0)
|
|
1058
1058
|
switch (f.key) {
|
|
1059
1059
|
case "ArrowDown": {
|
|
1060
1060
|
f.preventDefault(), r((p) => {
|
|
1061
|
-
const b = p ?
|
|
1062
|
-
return
|
|
1061
|
+
const b = p ? $.indexOf(p) : -1;
|
|
1062
|
+
return $[(b + 1) % $.length];
|
|
1063
1063
|
});
|
|
1064
1064
|
break;
|
|
1065
1065
|
}
|
|
1066
1066
|
case "ArrowUp": {
|
|
1067
1067
|
f.preventDefault(), r((p) => {
|
|
1068
|
-
const b = p ?
|
|
1069
|
-
return
|
|
1068
|
+
const b = p ? $.indexOf(p) : 0;
|
|
1069
|
+
return $[(b - 1 + $.length) % $.length];
|
|
1070
1070
|
});
|
|
1071
1071
|
break;
|
|
1072
1072
|
}
|
|
1073
1073
|
case "Home": {
|
|
1074
|
-
f.preventDefault(), r(
|
|
1074
|
+
f.preventDefault(), r($[0]);
|
|
1075
1075
|
break;
|
|
1076
1076
|
}
|
|
1077
1077
|
case "End": {
|
|
1078
|
-
f.preventDefault(), r(
|
|
1078
|
+
f.preventDefault(), r($[$.length - 1]);
|
|
1079
1079
|
break;
|
|
1080
1080
|
}
|
|
1081
1081
|
case "Enter":
|
|
1082
1082
|
case " ": {
|
|
1083
1083
|
f.preventDefault();
|
|
1084
|
-
const p =
|
|
1084
|
+
const p = c.current;
|
|
1085
1085
|
r((b) => (b && p.get(b)?.click(), b));
|
|
1086
1086
|
break;
|
|
1087
1087
|
}
|
|
1088
1088
|
case "Escape":
|
|
1089
1089
|
case "Tab": {
|
|
1090
|
-
|
|
1090
|
+
g();
|
|
1091
1091
|
break;
|
|
1092
1092
|
}
|
|
1093
1093
|
}
|
|
1094
1094
|
}
|
|
1095
|
-
return h.addEventListener("keydown",
|
|
1096
|
-
}, [t,
|
|
1095
|
+
return h.addEventListener("keydown", m), () => h.removeEventListener("keydown", m);
|
|
1096
|
+
}, [t, g]), {
|
|
1097
1097
|
ctx: {
|
|
1098
1098
|
open: t,
|
|
1099
|
-
toggle:
|
|
1100
|
-
close:
|
|
1099
|
+
toggle: u,
|
|
1100
|
+
close: g,
|
|
1101
1101
|
menuId: s,
|
|
1102
1102
|
highlightedId: n,
|
|
1103
1103
|
setHighlightedId: r,
|
|
1104
|
-
registerItem:
|
|
1105
|
-
triggerRef:
|
|
1104
|
+
registerItem: v,
|
|
1105
|
+
triggerRef: i
|
|
1106
1106
|
},
|
|
1107
|
-
rootRef:
|
|
1107
|
+
rootRef: x
|
|
1108
1108
|
};
|
|
1109
1109
|
}
|
|
1110
|
-
function
|
|
1110
|
+
function he({
|
|
1111
1111
|
children: t
|
|
1112
1112
|
}) {
|
|
1113
1113
|
const {
|
|
1114
1114
|
ctx: e,
|
|
1115
1115
|
rootRef: n
|
|
1116
|
-
} =
|
|
1117
|
-
return /* @__PURE__ */ o(
|
|
1116
|
+
} = pe();
|
|
1117
|
+
return /* @__PURE__ */ o(Et.Provider, { value: e, children: /* @__PURE__ */ o("div", { ref: n, ...l(k.div, J.root), children: t }) });
|
|
1118
1118
|
}
|
|
1119
|
-
function
|
|
1119
|
+
function fe({
|
|
1120
1120
|
children: t
|
|
1121
1121
|
}) {
|
|
1122
1122
|
const {
|
|
@@ -1124,12 +1124,12 @@ function he({
|
|
|
1124
1124
|
toggle: n,
|
|
1125
1125
|
menuId: r,
|
|
1126
1126
|
triggerRef: s
|
|
1127
|
-
} =
|
|
1128
|
-
return
|
|
1129
|
-
s.current =
|
|
1130
|
-
}), /* @__PURE__ */ o("button", { ref:
|
|
1127
|
+
} = kt(), x = w(null);
|
|
1128
|
+
return W(() => {
|
|
1129
|
+
s.current = x.current;
|
|
1130
|
+
}), /* @__PURE__ */ o("button", { ref: x, type: "button", onClick: n, "aria-expanded": e, "aria-haspopup": "menu", "aria-controls": e ? r : void 0, ...l(k.button, J.trigger), children: t });
|
|
1131
1131
|
}
|
|
1132
|
-
function
|
|
1132
|
+
function $e({
|
|
1133
1133
|
children: t,
|
|
1134
1134
|
align: e = "start"
|
|
1135
1135
|
}) {
|
|
@@ -1137,14 +1137,14 @@ function fe({
|
|
|
1137
1137
|
open: n,
|
|
1138
1138
|
close: r,
|
|
1139
1139
|
menuId: s,
|
|
1140
|
-
highlightedId:
|
|
1141
|
-
} =
|
|
1142
|
-
return n ? /* @__PURE__ */ A(
|
|
1143
|
-
/* @__PURE__ */ o("div", { ...k
|
|
1144
|
-
/* @__PURE__ */ o("div", { id: s, role: "menu", "aria-activedescendant":
|
|
1140
|
+
highlightedId: x
|
|
1141
|
+
} = kt();
|
|
1142
|
+
return n ? /* @__PURE__ */ A(_, { children: [
|
|
1143
|
+
/* @__PURE__ */ o("div", { ...l(k.div, J.backdrop), onClick: r }),
|
|
1144
|
+
/* @__PURE__ */ o("div", { id: s, role: "menu", "aria-activedescendant": x ?? void 0, ...l(k.div, J.popup, e === "end" && J.popupEnd), children: t })
|
|
1145
1145
|
] }) : null;
|
|
1146
1146
|
}
|
|
1147
|
-
function
|
|
1147
|
+
function ve({
|
|
1148
1148
|
onClick: t,
|
|
1149
1149
|
children: e
|
|
1150
1150
|
}) {
|
|
@@ -1152,17 +1152,17 @@ function $e({
|
|
|
1152
1152
|
close: n,
|
|
1153
1153
|
highlightedId: r,
|
|
1154
1154
|
setHighlightedId: s,
|
|
1155
|
-
registerItem:
|
|
1156
|
-
} =
|
|
1157
|
-
return
|
|
1158
|
-
const
|
|
1159
|
-
if (
|
|
1160
|
-
return i
|
|
1161
|
-
}, [
|
|
1155
|
+
registerItem: x
|
|
1156
|
+
} = kt(), i = U(), c = w(null), d = r === i;
|
|
1157
|
+
return W(() => {
|
|
1158
|
+
const g = c.current;
|
|
1159
|
+
if (g)
|
|
1160
|
+
return x(i, g);
|
|
1161
|
+
}, [i, x]), /* @__PURE__ */ o("div", { ref: c, id: i, role: "menuitem", onClick: () => {
|
|
1162
1162
|
t?.(), n();
|
|
1163
|
-
}, onPointerEnter: () => s(
|
|
1163
|
+
}, onPointerEnter: () => s(i), ...l(k.div, J.item, d && J.itemHighlighted), children: e });
|
|
1164
1164
|
}
|
|
1165
|
-
function
|
|
1165
|
+
function me({
|
|
1166
1166
|
href: t,
|
|
1167
1167
|
children: e
|
|
1168
1168
|
}) {
|
|
@@ -1170,21 +1170,21 @@ function ve({
|
|
|
1170
1170
|
close: n,
|
|
1171
1171
|
highlightedId: r,
|
|
1172
1172
|
setHighlightedId: s,
|
|
1173
|
-
registerItem:
|
|
1174
|
-
} =
|
|
1175
|
-
return
|
|
1176
|
-
const
|
|
1177
|
-
if (
|
|
1178
|
-
return i
|
|
1179
|
-
}, [
|
|
1180
|
-
}
|
|
1181
|
-
const
|
|
1182
|
-
Root:
|
|
1183
|
-
Trigger:
|
|
1184
|
-
Popup:
|
|
1185
|
-
Item:
|
|
1186
|
-
LinkItem:
|
|
1187
|
-
},
|
|
1173
|
+
registerItem: x
|
|
1174
|
+
} = kt(), i = U(), c = w(null), d = r === i;
|
|
1175
|
+
return W(() => {
|
|
1176
|
+
const a = c.current;
|
|
1177
|
+
if (a)
|
|
1178
|
+
return x(i, a);
|
|
1179
|
+
}, [i, x]), /* @__PURE__ */ o("a", { ref: c, id: i, href: t, onClick: n, role: "menuitem", onPointerEnter: () => s(i), ...l(k.a, J.item, J.linkItem, d && J.itemHighlighted), children: e });
|
|
1180
|
+
}
|
|
1181
|
+
const En = {
|
|
1182
|
+
Root: he,
|
|
1183
|
+
Trigger: fe,
|
|
1184
|
+
Popup: $e,
|
|
1185
|
+
Item: ve,
|
|
1186
|
+
LinkItem: me
|
|
1187
|
+
}, D = {
|
|
1188
1188
|
root: {
|
|
1189
1189
|
kVAEAm: "x1n2onr6",
|
|
1190
1190
|
kVQacm: "xb3r6kr",
|
|
@@ -1275,66 +1275,66 @@ const Tn = {
|
|
|
1275
1275
|
"--x-width": ((n) => typeof n == "number" ? n + "px" : n ?? void 0)(t),
|
|
1276
1276
|
"--x-transform": e ?? void 0
|
|
1277
1277
|
}]
|
|
1278
|
-
},
|
|
1279
|
-
function
|
|
1280
|
-
const t = N(
|
|
1278
|
+
}, Lt = C(null);
|
|
1279
|
+
function at() {
|
|
1280
|
+
const t = N(Lt);
|
|
1281
1281
|
if (!t) throw new Error("ScrollArea compound components must be used within ScrollArea.Root");
|
|
1282
1282
|
return t;
|
|
1283
1283
|
}
|
|
1284
|
-
function
|
|
1285
|
-
const t =
|
|
1284
|
+
function be() {
|
|
1285
|
+
const t = w(null), e = w(null), [n, r] = H(0), [s, x] = H(0), [i, c] = H(0), [d, a] = H(0), [g, u] = H(0), [v, S] = H(0), [h, m] = H(!1), f = w(null), $ = q(() => {
|
|
1286
1286
|
const p = t.current;
|
|
1287
|
-
p && (r(p.scrollTop),
|
|
1287
|
+
p && (r(p.scrollTop), x(p.scrollLeft), c(p.scrollHeight), a(p.scrollWidth), u(p.clientHeight), S(p.clientWidth), m(!0), f.current && clearTimeout(f.current), f.current = setTimeout(() => m(!1), 1e3));
|
|
1288
1288
|
}, []);
|
|
1289
|
-
return
|
|
1289
|
+
return W(() => {
|
|
1290
1290
|
const p = t.current;
|
|
1291
1291
|
if (!p) return;
|
|
1292
1292
|
const b = new ResizeObserver(() => {
|
|
1293
|
-
|
|
1293
|
+
c(p.scrollHeight), a(p.scrollWidth), u(p.clientHeight), S(p.clientWidth);
|
|
1294
1294
|
});
|
|
1295
|
-
return b.observe(p),
|
|
1296
|
-
}, []),
|
|
1295
|
+
return b.observe(p), c(p.scrollHeight), a(p.scrollWidth), u(p.clientHeight), S(p.clientWidth), () => b.disconnect();
|
|
1296
|
+
}, []), W(() => {
|
|
1297
1297
|
const p = t.current;
|
|
1298
1298
|
if (p)
|
|
1299
|
-
return p.addEventListener("scroll",
|
|
1299
|
+
return p.addEventListener("scroll", $, {
|
|
1300
1300
|
passive: !0
|
|
1301
|
-
}), () => p.removeEventListener("scroll",
|
|
1302
|
-
}, [
|
|
1301
|
+
}), () => p.removeEventListener("scroll", $);
|
|
1302
|
+
}, [$]), {
|
|
1303
1303
|
viewportRef: t,
|
|
1304
1304
|
contentRef: e,
|
|
1305
1305
|
scrollTop: n,
|
|
1306
1306
|
scrollLeft: s,
|
|
1307
|
-
scrollHeight:
|
|
1307
|
+
scrollHeight: i,
|
|
1308
1308
|
scrollWidth: d,
|
|
1309
|
-
clientHeight:
|
|
1310
|
-
clientWidth:
|
|
1309
|
+
clientHeight: g,
|
|
1310
|
+
clientWidth: v,
|
|
1311
1311
|
scrolling: h
|
|
1312
1312
|
};
|
|
1313
1313
|
}
|
|
1314
|
-
function
|
|
1314
|
+
function ye({
|
|
1315
1315
|
children: t
|
|
1316
1316
|
}) {
|
|
1317
|
-
const e =
|
|
1318
|
-
return /* @__PURE__ */ o(
|
|
1317
|
+
const e = be();
|
|
1318
|
+
return /* @__PURE__ */ o(Lt.Provider, { value: e, children: /* @__PURE__ */ o("div", { ...l(k.div, D.root), children: t }) });
|
|
1319
1319
|
}
|
|
1320
|
-
function
|
|
1320
|
+
function we({
|
|
1321
1321
|
children: t,
|
|
1322
1322
|
maxHeight: e
|
|
1323
1323
|
}) {
|
|
1324
1324
|
const {
|
|
1325
1325
|
viewportRef: n
|
|
1326
|
-
} =
|
|
1327
|
-
return /* @__PURE__ */ o("div", { ref: n, ...k
|
|
1326
|
+
} = at();
|
|
1327
|
+
return /* @__PURE__ */ o("div", { ref: n, ...l(k.div, D.viewport, e != null && D.viewportMaxHeight(e)), children: t });
|
|
1328
1328
|
}
|
|
1329
|
-
function
|
|
1329
|
+
function Se({
|
|
1330
1330
|
children: t
|
|
1331
1331
|
}) {
|
|
1332
1332
|
const {
|
|
1333
1333
|
contentRef: e
|
|
1334
|
-
} =
|
|
1335
|
-
return /* @__PURE__ */ o("div", { ref: e, ...k
|
|
1334
|
+
} = at();
|
|
1335
|
+
return /* @__PURE__ */ o("div", { ref: e, ...l(k.div, D.content), children: t });
|
|
1336
1336
|
}
|
|
1337
|
-
function
|
|
1337
|
+
function je({
|
|
1338
1338
|
orientation: t = "vertical",
|
|
1339
1339
|
children: e
|
|
1340
1340
|
}) {
|
|
@@ -1342,12 +1342,12 @@ function Se({
|
|
|
1342
1342
|
scrolling: n,
|
|
1343
1343
|
scrollHeight: r,
|
|
1344
1344
|
scrollWidth: s,
|
|
1345
|
-
clientHeight:
|
|
1346
|
-
clientWidth:
|
|
1347
|
-
} =
|
|
1348
|
-
return (t === "vertical" ? r >
|
|
1345
|
+
clientHeight: x,
|
|
1346
|
+
clientWidth: i
|
|
1347
|
+
} = at();
|
|
1348
|
+
return (t === "vertical" ? r > x : s > i) ? /* @__PURE__ */ o("div", { ...l(k.div, D.scrollbar, t === "vertical" ? D.scrollbarVertical : D.scrollbarHorizontal, n ? D.scrollbarVisible : D.scrollbarHidden), children: e }) : null;
|
|
1349
1349
|
}
|
|
1350
|
-
function
|
|
1350
|
+
function Me({
|
|
1351
1351
|
orientation: t = "vertical"
|
|
1352
1352
|
}) {
|
|
1353
1353
|
const {
|
|
@@ -1355,28 +1355,28 @@ function je({
|
|
|
1355
1355
|
scrollTop: n,
|
|
1356
1356
|
scrollLeft: r,
|
|
1357
1357
|
scrollHeight: s,
|
|
1358
|
-
scrollWidth:
|
|
1359
|
-
clientHeight:
|
|
1360
|
-
clientWidth:
|
|
1361
|
-
} =
|
|
1362
|
-
|
|
1363
|
-
}, [
|
|
1358
|
+
scrollWidth: x,
|
|
1359
|
+
clientHeight: i,
|
|
1360
|
+
clientWidth: c
|
|
1361
|
+
} = at(), d = w(!1), a = w(0), g = w(0), u = t === "vertical", v = Math.max(u ? i / s * 100 : c / x * 100, 10), S = u ? s - i : x - c, h = u ? i : c, m = v / 100 * h, f = u ? n : r, $ = S > 0 ? f / S * (h - m) : 0, p = u ? D.thumbVertical(`${v}%`, `translateY(${$}px)`) : D.thumbHorizontal(`${v}%`, `translateX(${$}px)`), b = q((y) => {
|
|
1362
|
+
y.preventDefault(), d.current = !0, a.current = u ? y.clientY : y.clientX, g.current = u ? e.current?.scrollTop ?? 0 : e.current?.scrollLeft ?? 0, y.target.setPointerCapture(y.pointerId);
|
|
1363
|
+
}, [u, e]), B = q((y) => {
|
|
1364
1364
|
if (!d.current) return;
|
|
1365
|
-
const
|
|
1366
|
-
if (!
|
|
1367
|
-
const
|
|
1368
|
-
|
|
1369
|
-
}, [
|
|
1365
|
+
const z = e.current;
|
|
1366
|
+
if (!z) return;
|
|
1367
|
+
const j = (u ? y.clientY : y.clientX) - a.current, M = S / (h - m), Y = j * M;
|
|
1368
|
+
u ? z.scrollTop = g.current + Y : z.scrollLeft = g.current + Y;
|
|
1369
|
+
}, [u, S, h, m, e]), F = q(() => {
|
|
1370
1370
|
d.current = !1;
|
|
1371
1371
|
}, []);
|
|
1372
|
-
return /* @__PURE__ */ o("div", { onPointerDown: b, onPointerMove:
|
|
1372
|
+
return /* @__PURE__ */ o("div", { onPointerDown: b, onPointerMove: B, onPointerUp: F, ...l(k.div, D.thumb, p) });
|
|
1373
1373
|
}
|
|
1374
|
-
const
|
|
1375
|
-
Root:
|
|
1376
|
-
Viewport:
|
|
1377
|
-
Content:
|
|
1378
|
-
Scrollbar:
|
|
1379
|
-
Thumb:
|
|
1374
|
+
const Ln = {
|
|
1375
|
+
Root: ye,
|
|
1376
|
+
Viewport: we,
|
|
1377
|
+
Content: Se,
|
|
1378
|
+
Scrollbar: je,
|
|
1379
|
+
Thumb: Me
|
|
1380
1380
|
}, X = {
|
|
1381
1381
|
root: {
|
|
1382
1382
|
kVAEAm: "x1n2onr6",
|
|
@@ -1475,148 +1475,151 @@ const En = {
|
|
|
1475
1475
|
k1xSpc: "x1s85apg",
|
|
1476
1476
|
$$css: !0
|
|
1477
1477
|
}
|
|
1478
|
-
},
|
|
1479
|
-
function
|
|
1480
|
-
const t = N(
|
|
1478
|
+
}, At = C(null);
|
|
1479
|
+
function ut() {
|
|
1480
|
+
const t = N(At);
|
|
1481
1481
|
if (!t) throw new Error("Select compound components must be used within Select.Root");
|
|
1482
1482
|
return t;
|
|
1483
1483
|
}
|
|
1484
|
-
function
|
|
1485
|
-
const [r, s] =
|
|
1486
|
-
t === void 0 && s(
|
|
1484
|
+
function vt(t, e, n) {
|
|
1485
|
+
const [r, s] = H(e), x = t !== void 0 ? t : r, i = q((c) => {
|
|
1486
|
+
t === void 0 && s(c), n?.(c);
|
|
1487
1487
|
}, [t, n]);
|
|
1488
|
-
return [
|
|
1488
|
+
return [x, i];
|
|
1489
1489
|
}
|
|
1490
|
-
function
|
|
1490
|
+
function ze({
|
|
1491
1491
|
defaultValue: t,
|
|
1492
1492
|
value: e,
|
|
1493
|
-
onValueChange: n
|
|
1493
|
+
onValueChange: n,
|
|
1494
|
+
initialLabels: r
|
|
1494
1495
|
}) {
|
|
1495
|
-
const [
|
|
1496
|
-
c(!1), u(null),
|
|
1497
|
-
}, []),
|
|
1498
|
-
c((
|
|
1499
|
-
if (
|
|
1496
|
+
const [s, x] = vt(e, t ?? null, n), [i, c] = H(!1), [d, a] = H(r ?? {}), [g, u] = H(null), v = U(), S = w(null), h = w(null), m = w(/* @__PURE__ */ new Map()), f = w([]), $ = q(() => {
|
|
1497
|
+
c(!1), u(null), h.current?.focus();
|
|
1498
|
+
}, []), p = q(() => {
|
|
1499
|
+
c((y) => {
|
|
1500
|
+
if (y)
|
|
1500
1501
|
u(null);
|
|
1501
1502
|
else {
|
|
1502
|
-
const
|
|
1503
|
+
const z = m.current, j = f.current;
|
|
1503
1504
|
let M = null;
|
|
1504
|
-
for (const
|
|
1505
|
-
const
|
|
1506
|
-
if (
|
|
1507
|
-
M =
|
|
1505
|
+
for (const Y of j) {
|
|
1506
|
+
const G = z.get(Y);
|
|
1507
|
+
if (G && G.value === s) {
|
|
1508
|
+
M = Y;
|
|
1508
1509
|
break;
|
|
1509
1510
|
}
|
|
1510
1511
|
}
|
|
1511
|
-
u(M ?? (
|
|
1512
|
+
u(M ?? (j.length > 0 ? j[0] : null));
|
|
1512
1513
|
}
|
|
1513
|
-
return !
|
|
1514
|
+
return !y;
|
|
1514
1515
|
});
|
|
1515
|
-
}, [
|
|
1516
|
-
|
|
1517
|
-
...
|
|
1518
|
-
[
|
|
1516
|
+
}, [s]), b = q((y, z) => {
|
|
1517
|
+
a((j) => j[y] === z ? j : {
|
|
1518
|
+
...j,
|
|
1519
|
+
[y]: z
|
|
1519
1520
|
});
|
|
1520
|
-
}, []),
|
|
1521
|
-
|
|
1522
|
-
value:
|
|
1523
|
-
element:
|
|
1521
|
+
}, []), B = q((y, z, j) => {
|
|
1522
|
+
m.current.set(y, {
|
|
1523
|
+
value: z,
|
|
1524
|
+
element: j
|
|
1524
1525
|
});
|
|
1525
|
-
const M =
|
|
1526
|
-
return
|
|
1527
|
-
const
|
|
1528
|
-
return !
|
|
1529
|
-
}),
|
|
1530
|
-
|
|
1526
|
+
const M = m.current, Y = [...M.keys()];
|
|
1527
|
+
return Y.sort((G, Q) => {
|
|
1528
|
+
const wt = M.get(G)?.element, St = M.get(Q)?.element;
|
|
1529
|
+
return !wt || !St ? 0 : wt.compareDocumentPosition(St) & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : 1;
|
|
1530
|
+
}), f.current = Y, () => {
|
|
1531
|
+
m.current.delete(y), f.current = f.current.filter((G) => G !== y);
|
|
1531
1532
|
};
|
|
1532
1533
|
}, []);
|
|
1533
|
-
return
|
|
1534
|
-
const
|
|
1535
|
-
if (!
|
|
1536
|
-
function j
|
|
1537
|
-
const M =
|
|
1534
|
+
return W(() => {
|
|
1535
|
+
const y = S.current;
|
|
1536
|
+
if (!y || !i) return;
|
|
1537
|
+
function z(j) {
|
|
1538
|
+
const M = f.current, Y = m.current;
|
|
1538
1539
|
if (M.length !== 0)
|
|
1539
|
-
switch (
|
|
1540
|
+
switch (j.key) {
|
|
1540
1541
|
case "ArrowDown": {
|
|
1541
|
-
|
|
1542
|
-
const
|
|
1543
|
-
return M[(
|
|
1542
|
+
j.preventDefault(), u((G) => {
|
|
1543
|
+
const Q = G ? M.indexOf(G) : -1;
|
|
1544
|
+
return M[(Q + 1) % M.length];
|
|
1544
1545
|
});
|
|
1545
1546
|
break;
|
|
1546
1547
|
}
|
|
1547
1548
|
case "ArrowUp": {
|
|
1548
|
-
|
|
1549
|
-
const
|
|
1550
|
-
return M[(
|
|
1549
|
+
j.preventDefault(), u((G) => {
|
|
1550
|
+
const Q = G ? M.indexOf(G) : 0;
|
|
1551
|
+
return M[(Q - 1 + M.length) % M.length];
|
|
1551
1552
|
});
|
|
1552
1553
|
break;
|
|
1553
1554
|
}
|
|
1554
1555
|
case "Home": {
|
|
1555
|
-
|
|
1556
|
+
j.preventDefault(), u(M[0]);
|
|
1556
1557
|
break;
|
|
1557
1558
|
}
|
|
1558
1559
|
case "End": {
|
|
1559
|
-
|
|
1560
|
+
j.preventDefault(), u(M[M.length - 1]);
|
|
1560
1561
|
break;
|
|
1561
1562
|
}
|
|
1562
1563
|
case "Enter":
|
|
1563
1564
|
case " ": {
|
|
1564
|
-
|
|
1565
|
-
if (
|
|
1566
|
-
const
|
|
1567
|
-
|
|
1565
|
+
j.preventDefault(), u((G) => {
|
|
1566
|
+
if (G) {
|
|
1567
|
+
const Q = Y.get(G);
|
|
1568
|
+
Q && (x(Q.value), $());
|
|
1568
1569
|
}
|
|
1569
|
-
return
|
|
1570
|
+
return G;
|
|
1570
1571
|
});
|
|
1571
1572
|
break;
|
|
1572
1573
|
}
|
|
1573
1574
|
case "Escape":
|
|
1574
1575
|
case "Tab": {
|
|
1575
|
-
|
|
1576
|
+
$();
|
|
1576
1577
|
break;
|
|
1577
1578
|
}
|
|
1578
1579
|
}
|
|
1579
1580
|
}
|
|
1580
|
-
return
|
|
1581
|
-
}, [i,
|
|
1582
|
-
ctx:
|
|
1581
|
+
return y.addEventListener("keydown", z), () => y.removeEventListener("keydown", z);
|
|
1582
|
+
}, [i, $, x]), {
|
|
1583
|
+
ctx: ft(() => ({
|
|
1583
1584
|
open: i,
|
|
1584
|
-
toggle:
|
|
1585
|
-
close:
|
|
1586
|
-
value:
|
|
1587
|
-
setValue:
|
|
1588
|
-
labels:
|
|
1589
|
-
registerLabel:
|
|
1590
|
-
listboxId:
|
|
1591
|
-
highlightedId:
|
|
1585
|
+
toggle: p,
|
|
1586
|
+
close: $,
|
|
1587
|
+
value: s,
|
|
1588
|
+
setValue: x,
|
|
1589
|
+
labels: d,
|
|
1590
|
+
registerLabel: b,
|
|
1591
|
+
listboxId: v,
|
|
1592
|
+
highlightedId: g,
|
|
1592
1593
|
setHighlightedId: u,
|
|
1593
|
-
registerItem:
|
|
1594
|
-
triggerRef:
|
|
1595
|
-
}), [i,
|
|
1596
|
-
rootRef:
|
|
1594
|
+
registerItem: B,
|
|
1595
|
+
triggerRef: h
|
|
1596
|
+
}), [i, p, $, s, x, d, b, v, g, u, B]),
|
|
1597
|
+
rootRef: S
|
|
1597
1598
|
};
|
|
1598
1599
|
}
|
|
1599
|
-
function
|
|
1600
|
+
function Ie({
|
|
1600
1601
|
name: t,
|
|
1601
1602
|
defaultValue: e,
|
|
1602
1603
|
value: n,
|
|
1603
1604
|
onValueChange: r,
|
|
1604
|
-
|
|
1605
|
+
initialLabels: s,
|
|
1606
|
+
children: x
|
|
1605
1607
|
}) {
|
|
1606
1608
|
const {
|
|
1607
1609
|
ctx: i,
|
|
1608
1610
|
rootRef: c
|
|
1609
|
-
} =
|
|
1611
|
+
} = ze({
|
|
1610
1612
|
defaultValue: e,
|
|
1611
1613
|
value: n,
|
|
1612
|
-
onValueChange: r
|
|
1614
|
+
onValueChange: r,
|
|
1615
|
+
initialLabels: s
|
|
1613
1616
|
});
|
|
1614
|
-
return /* @__PURE__ */ o(
|
|
1615
|
-
t && /* @__PURE__ */ o("input", { type: "hidden", name: t, value: i.value ?? "", dir: "auto", ...k
|
|
1616
|
-
|
|
1617
|
+
return /* @__PURE__ */ o(At.Provider, { value: i, children: /* @__PURE__ */ A("div", { ref: c, ...l(k.div, X.root), children: [
|
|
1618
|
+
t && /* @__PURE__ */ o("input", { type: "hidden", name: t, value: i.value ?? "", dir: "auto", ...l(k.input) }),
|
|
1619
|
+
x
|
|
1617
1620
|
] }) });
|
|
1618
1621
|
}
|
|
1619
|
-
function
|
|
1622
|
+
function qe({
|
|
1620
1623
|
children: t
|
|
1621
1624
|
}) {
|
|
1622
1625
|
const {
|
|
@@ -1624,40 +1627,40 @@ function Ie({
|
|
|
1624
1627
|
toggle: n,
|
|
1625
1628
|
listboxId: r,
|
|
1626
1629
|
highlightedId: s,
|
|
1627
|
-
triggerRef:
|
|
1628
|
-
} =
|
|
1629
|
-
return
|
|
1630
|
-
|
|
1631
|
-
}), /* @__PURE__ */ o("button", { ref:
|
|
1630
|
+
triggerRef: x
|
|
1631
|
+
} = ut(), i = w(null);
|
|
1632
|
+
return W(() => {
|
|
1633
|
+
x.current = i.current;
|
|
1634
|
+
}), /* @__PURE__ */ o("button", { ref: i, type: "button", role: "combobox", onClick: n, "aria-expanded": e, "aria-haspopup": "listbox", "aria-controls": e ? r : void 0, "aria-activedescendant": s ?? void 0, ...l(k.button, X.trigger), children: t });
|
|
1632
1635
|
}
|
|
1633
|
-
function
|
|
1636
|
+
function We({
|
|
1634
1637
|
placeholder: t
|
|
1635
1638
|
}) {
|
|
1636
1639
|
const {
|
|
1637
1640
|
value: e,
|
|
1638
1641
|
labels: n
|
|
1639
|
-
} =
|
|
1640
|
-
return /* @__PURE__ */ o("span", { ...k
|
|
1642
|
+
} = ut(), r = e ? n[e] ?? e : null;
|
|
1643
|
+
return /* @__PURE__ */ o("span", { ...l(k.span, r ? X.value : X.placeholder), children: r ?? t });
|
|
1641
1644
|
}
|
|
1642
|
-
function
|
|
1645
|
+
function He({
|
|
1643
1646
|
children: t
|
|
1644
1647
|
}) {
|
|
1645
|
-
return /* @__PURE__ */ o("span", { ...k
|
|
1648
|
+
return /* @__PURE__ */ o("span", { ...l(k.span, X.icon), children: t ?? /* @__PURE__ */ o("svg", { width: "12", height: "12", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: /* @__PURE__ */ o("path", { d: "M6 9l6 6 6-6" }) }) });
|
|
1646
1649
|
}
|
|
1647
|
-
function
|
|
1650
|
+
function Ge({
|
|
1648
1651
|
children: t
|
|
1649
1652
|
}) {
|
|
1650
1653
|
const {
|
|
1651
1654
|
open: e,
|
|
1652
1655
|
close: n,
|
|
1653
1656
|
listboxId: r
|
|
1654
|
-
} =
|
|
1655
|
-
return /* @__PURE__ */ A(
|
|
1656
|
-
e && /* @__PURE__ */ o("div", { ...k
|
|
1657
|
-
/* @__PURE__ */ o("div", { id: r, role: "listbox", "aria-hidden": !e, ...k
|
|
1657
|
+
} = ut();
|
|
1658
|
+
return /* @__PURE__ */ A(_, { children: [
|
|
1659
|
+
e && /* @__PURE__ */ o("div", { ...l(k.div, X.backdrop), onClick: n }),
|
|
1660
|
+
/* @__PURE__ */ o("div", { id: r, role: "listbox", "aria-hidden": !e, ...l(k.div, X.popup, !e && X.hidden), children: t })
|
|
1658
1661
|
] });
|
|
1659
1662
|
}
|
|
1660
|
-
function
|
|
1663
|
+
function Te({
|
|
1661
1664
|
value: t,
|
|
1662
1665
|
children: e
|
|
1663
1666
|
}) {
|
|
@@ -1665,38 +1668,38 @@ function Ge({
|
|
|
1665
1668
|
value: n,
|
|
1666
1669
|
setValue: r,
|
|
1667
1670
|
close: s,
|
|
1668
|
-
registerLabel:
|
|
1669
|
-
highlightedId:
|
|
1670
|
-
setHighlightedId:
|
|
1671
|
+
registerLabel: x,
|
|
1672
|
+
highlightedId: i,
|
|
1673
|
+
setHighlightedId: c,
|
|
1671
1674
|
registerItem: d
|
|
1672
|
-
} =
|
|
1673
|
-
return
|
|
1674
|
-
const h =
|
|
1675
|
+
} = ut(), a = U(), g = w(null), u = n === t, v = i === a;
|
|
1676
|
+
return W(() => {
|
|
1677
|
+
const h = g.current;
|
|
1675
1678
|
if (!h) return;
|
|
1676
|
-
const
|
|
1677
|
-
|
|
1678
|
-
}, [t,
|
|
1679
|
-
const h =
|
|
1679
|
+
const m = h.textContent;
|
|
1680
|
+
m && x(t, m);
|
|
1681
|
+
}, [t, x]), W(() => {
|
|
1682
|
+
const h = g.current;
|
|
1680
1683
|
if (h)
|
|
1681
|
-
return d(
|
|
1682
|
-
}, [
|
|
1684
|
+
return d(a, t, h);
|
|
1685
|
+
}, [a, t, d]), /* @__PURE__ */ o("div", { ref: g, id: a, role: "option", "aria-selected": u, onClick: () => {
|
|
1683
1686
|
r(t), s();
|
|
1684
|
-
}, onPointerEnter: () =>
|
|
1687
|
+
}, onPointerEnter: () => c(a), ...l(k.div, X.item, u && X.itemSelected, v && X.itemHighlighted), children: e });
|
|
1685
1688
|
}
|
|
1686
|
-
function
|
|
1689
|
+
function Ee({
|
|
1687
1690
|
children: t
|
|
1688
1691
|
}) {
|
|
1689
|
-
return /* @__PURE__ */ o("span", { ...k
|
|
1692
|
+
return /* @__PURE__ */ o("span", { ...l(k.span), children: t });
|
|
1690
1693
|
}
|
|
1691
|
-
const
|
|
1692
|
-
Root:
|
|
1693
|
-
Trigger:
|
|
1694
|
-
Value:
|
|
1695
|
-
Icon:
|
|
1696
|
-
Popup:
|
|
1697
|
-
Item:
|
|
1698
|
-
ItemText:
|
|
1699
|
-
},
|
|
1694
|
+
const An = {
|
|
1695
|
+
Root: Ie,
|
|
1696
|
+
Trigger: qe,
|
|
1697
|
+
Value: We,
|
|
1698
|
+
Icon: He,
|
|
1699
|
+
Popup: Ge,
|
|
1700
|
+
Item: Te,
|
|
1701
|
+
ItemText: Ee
|
|
1702
|
+
}, K = {
|
|
1700
1703
|
root: {
|
|
1701
1704
|
k1xSpc: "x78zum5",
|
|
1702
1705
|
kXwgrk: "xdt5ytf",
|
|
@@ -1775,68 +1778,68 @@ const Ln = {
|
|
|
1775
1778
|
k63SB2: "x9n8r49",
|
|
1776
1779
|
$$css: !0
|
|
1777
1780
|
}
|
|
1778
|
-
},
|
|
1779
|
-
function
|
|
1780
|
-
const t = N(
|
|
1781
|
+
}, Vt = C(null);
|
|
1782
|
+
function Ot() {
|
|
1783
|
+
const t = N(Vt);
|
|
1781
1784
|
if (!t) throw new Error("SideNav compound components must be used within SideNav.Root");
|
|
1782
1785
|
return t;
|
|
1783
1786
|
}
|
|
1784
|
-
function
|
|
1787
|
+
function Le({
|
|
1785
1788
|
children: t,
|
|
1786
1789
|
value: e,
|
|
1787
1790
|
defaultValue: n,
|
|
1788
1791
|
onValueChange: r
|
|
1789
1792
|
}) {
|
|
1790
|
-
const [s,
|
|
1791
|
-
|
|
1792
|
-
} : void 0), [
|
|
1793
|
-
|
|
1794
|
-
const
|
|
1795
|
-
return
|
|
1793
|
+
const [s, x] = vt(e, n ?? null, r ? (u) => {
|
|
1794
|
+
u !== null && r(u);
|
|
1795
|
+
} : void 0), [i, c] = H(/* @__PURE__ */ new Set()), d = w([]), a = q((u) => {
|
|
1796
|
+
c((v) => {
|
|
1797
|
+
const S = new Set(v);
|
|
1798
|
+
return S.has(u) ? S.delete(u) : S.add(u), S;
|
|
1796
1799
|
});
|
|
1797
|
-
}, []),
|
|
1798
|
-
d.current = d.current.filter((
|
|
1800
|
+
}, []), g = q((u) => (d.current.includes(u) || d.current.push(u), () => {
|
|
1801
|
+
d.current = d.current.filter((v) => v !== u);
|
|
1799
1802
|
}), []);
|
|
1800
|
-
return
|
|
1801
|
-
s &&
|
|
1802
|
-
}, [s]), /* @__PURE__ */ o(
|
|
1803
|
+
return W(() => {
|
|
1804
|
+
s && c((u) => u);
|
|
1805
|
+
}, [s]), /* @__PURE__ */ o(Vt.Provider, { value: {
|
|
1803
1806
|
activeValue: s,
|
|
1804
|
-
onSelect:
|
|
1805
|
-
expandedGroups:
|
|
1806
|
-
toggleGroup:
|
|
1807
|
-
registerItem:
|
|
1807
|
+
onSelect: x,
|
|
1808
|
+
expandedGroups: i,
|
|
1809
|
+
toggleGroup: a,
|
|
1810
|
+
registerItem: g,
|
|
1808
1811
|
orderRef: d
|
|
1809
|
-
}, children: /* @__PURE__ */ o("nav", { role: "navigation", ...k
|
|
1812
|
+
}, children: /* @__PURE__ */ o("nav", { role: "navigation", ...l(k.nav, K.root), children: t }) });
|
|
1810
1813
|
}
|
|
1811
|
-
function
|
|
1814
|
+
function Ae({
|
|
1812
1815
|
children: t,
|
|
1813
1816
|
label: e,
|
|
1814
1817
|
groupKey: n,
|
|
1815
1818
|
defaultExpanded: r
|
|
1816
1819
|
}) {
|
|
1817
1820
|
const s = n ?? e, {
|
|
1818
|
-
expandedGroups:
|
|
1819
|
-
toggleGroup:
|
|
1820
|
-
activeValue:
|
|
1821
|
-
} =
|
|
1822
|
-
|
|
1823
|
-
if (!
|
|
1824
|
-
const
|
|
1825
|
-
if (!
|
|
1826
|
-
|
|
1827
|
-
}, [
|
|
1828
|
-
r && !
|
|
1821
|
+
expandedGroups: x,
|
|
1822
|
+
toggleGroup: i,
|
|
1823
|
+
activeValue: c
|
|
1824
|
+
} = Ot(), d = x.has(s), a = w(null);
|
|
1825
|
+
W(() => {
|
|
1826
|
+
if (!c || x.has(s)) return;
|
|
1827
|
+
const u = a.current;
|
|
1828
|
+
if (!u) return;
|
|
1829
|
+
u.querySelector(`[data-nav-value="${c}"]`) && i(s);
|
|
1830
|
+
}, [c, s, x, i]), W(() => {
|
|
1831
|
+
r && !x.has(s) && i(s);
|
|
1829
1832
|
}, []);
|
|
1830
|
-
const
|
|
1831
|
-
return /* @__PURE__ */ A("div", { ref:
|
|
1832
|
-
/* @__PURE__ */ A("button", { type: "button", onClick: () =>
|
|
1833
|
-
/* @__PURE__ */ o("span", { ...k
|
|
1833
|
+
const g = !c || !a.current ? !1 : !!a.current.querySelector(`[data-nav-value="${c}"]`);
|
|
1834
|
+
return /* @__PURE__ */ A("div", { ref: a, ...l(k.div, K.group), children: [
|
|
1835
|
+
/* @__PURE__ */ A("button", { type: "button", onClick: () => i(s), ...l(k.button, K.groupTrigger, g && K.groupTriggerActive), "aria-expanded": d, children: [
|
|
1836
|
+
/* @__PURE__ */ o("span", { ...l(k.span, K.chevron, d && K.chevronOpen), children: /* @__PURE__ */ o("svg", { width: 10, height: 10, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2.5, strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ o("path", { d: "M9 18l6-6-6-6" }) }) }),
|
|
1834
1837
|
e
|
|
1835
1838
|
] }),
|
|
1836
1839
|
d && t
|
|
1837
1840
|
] });
|
|
1838
1841
|
}
|
|
1839
|
-
function
|
|
1842
|
+
function Ve({
|
|
1840
1843
|
value: t,
|
|
1841
1844
|
children: e
|
|
1842
1845
|
}) {
|
|
@@ -1844,14 +1847,14 @@ function Ae({
|
|
|
1844
1847
|
activeValue: n,
|
|
1845
1848
|
onSelect: r,
|
|
1846
1849
|
registerItem: s
|
|
1847
|
-
} =
|
|
1848
|
-
return
|
|
1850
|
+
} = Ot(), x = n === t;
|
|
1851
|
+
return W(() => s(t), [t, s]), /* @__PURE__ */ o("button", { type: "button", "data-nav-value": t, onClick: () => r(t), ...l(k.button, K.item, x && K.itemActive), "aria-current": x ? "page" : void 0, children: e });
|
|
1849
1852
|
}
|
|
1850
|
-
const
|
|
1851
|
-
Root:
|
|
1852
|
-
Group:
|
|
1853
|
-
Item:
|
|
1854
|
-
},
|
|
1853
|
+
const Vn = {
|
|
1854
|
+
Root: Le,
|
|
1855
|
+
Group: Ae,
|
|
1856
|
+
Item: Ve
|
|
1857
|
+
}, st = {
|
|
1855
1858
|
root: {
|
|
1856
1859
|
k1xSpc: "x3nfvp2",
|
|
1857
1860
|
kGNEyG: "x6s0dn4",
|
|
@@ -1895,21 +1898,21 @@ const An = {
|
|
|
1895
1898
|
kMcinP: "xzpqnlu",
|
|
1896
1899
|
$$css: !0
|
|
1897
1900
|
}
|
|
1898
|
-
},
|
|
1899
|
-
sm:
|
|
1900
|
-
md:
|
|
1901
|
-
lg:
|
|
1901
|
+
}, Oe = {
|
|
1902
|
+
sm: st.sm,
|
|
1903
|
+
md: st.md,
|
|
1904
|
+
lg: st.lg
|
|
1902
1905
|
};
|
|
1903
|
-
function
|
|
1906
|
+
function On({
|
|
1904
1907
|
size: t = "md",
|
|
1905
1908
|
label: e = "Loading"
|
|
1906
1909
|
}) {
|
|
1907
|
-
return /* @__PURE__ */ A("div", { role: "status", ...k
|
|
1908
|
-
/* @__PURE__ */ o("div", { ...k
|
|
1909
|
-
/* @__PURE__ */ o("span", { ...k
|
|
1910
|
+
return /* @__PURE__ */ A("div", { role: "status", ...l(k.div, st.root), children: [
|
|
1911
|
+
/* @__PURE__ */ o("div", { ...l(k.div, st.spinner, Oe[t]), "aria-hidden": !0 }),
|
|
1912
|
+
/* @__PURE__ */ o("span", { ...l(k.span, st.srOnly), children: e })
|
|
1910
1913
|
] });
|
|
1911
1914
|
}
|
|
1912
|
-
const
|
|
1915
|
+
const Mt = {
|
|
1913
1916
|
root: {
|
|
1914
1917
|
k1xSpc: "x3nfvp2",
|
|
1915
1918
|
kGNEyG: "x6s0dn4",
|
|
@@ -1933,37 +1936,37 @@ const jt = {
|
|
|
1933
1936
|
kMwMTN: "x19e7f62",
|
|
1934
1937
|
$$css: !0
|
|
1935
1938
|
}
|
|
1936
|
-
},
|
|
1937
|
-
"x-circle": /* @__PURE__ */ A(
|
|
1939
|
+
}, Ne = {
|
|
1940
|
+
"x-circle": /* @__PURE__ */ A(_, { children: [
|
|
1938
1941
|
/* @__PURE__ */ o("circle", { cx: "12", cy: "12", r: "10" }),
|
|
1939
1942
|
/* @__PURE__ */ o("line", { x1: "15", y1: "9", x2: "9", y2: "15" }),
|
|
1940
1943
|
/* @__PURE__ */ o("line", { x1: "9", y1: "9", x2: "15", y2: "15" })
|
|
1941
1944
|
] }),
|
|
1942
|
-
"check-circle": /* @__PURE__ */ A(
|
|
1945
|
+
"check-circle": /* @__PURE__ */ A(_, { children: [
|
|
1943
1946
|
/* @__PURE__ */ o("circle", { cx: "12", cy: "12", r: "10" }),
|
|
1944
1947
|
/* @__PURE__ */ o("polyline", { points: "16 10 11 15 8 12" })
|
|
1945
1948
|
] }),
|
|
1946
|
-
"check-done": /* @__PURE__ */ A(
|
|
1949
|
+
"check-done": /* @__PURE__ */ A(_, { children: [
|
|
1947
1950
|
/* @__PURE__ */ o("path", { d: "M22 11.08V12a10 10 0 1 1-5.93-9.14" }),
|
|
1948
1951
|
/* @__PURE__ */ o("polyline", { points: "22 4 12 14.01 9 11.01" })
|
|
1949
1952
|
] }),
|
|
1950
|
-
clock: /* @__PURE__ */ A(
|
|
1953
|
+
clock: /* @__PURE__ */ A(_, { children: [
|
|
1951
1954
|
/* @__PURE__ */ o("circle", { cx: "12", cy: "12", r: "10" }),
|
|
1952
1955
|
/* @__PURE__ */ o("polyline", { points: "12 6 12 12 16 14" })
|
|
1953
1956
|
] }),
|
|
1954
|
-
forbidden: /* @__PURE__ */ A(
|
|
1957
|
+
forbidden: /* @__PURE__ */ A(_, { children: [
|
|
1955
1958
|
/* @__PURE__ */ o("circle", { cx: "12", cy: "12", r: "10" }),
|
|
1956
1959
|
/* @__PURE__ */ o("line", { x1: "4.93", y1: "4.93", x2: "19.07", y2: "19.07" })
|
|
1957
1960
|
] })
|
|
1958
1961
|
};
|
|
1959
|
-
function
|
|
1962
|
+
function Nn({
|
|
1960
1963
|
name: t,
|
|
1961
1964
|
size: e = 48,
|
|
1962
1965
|
variant: n = "muted"
|
|
1963
1966
|
}) {
|
|
1964
|
-
return /* @__PURE__ */ o("div", { ...k
|
|
1967
|
+
return /* @__PURE__ */ o("div", { ...l(k.div, Mt.root, Mt[n]), children: /* @__PURE__ */ o("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", width: e, height: e, children: Ne[t] }) });
|
|
1965
1968
|
}
|
|
1966
|
-
const
|
|
1969
|
+
const Be = {
|
|
1967
1970
|
kumcoG: "xqketvx",
|
|
1968
1971
|
$$css: !0
|
|
1969
1972
|
}, L = {
|
|
@@ -2042,90 +2045,90 @@ const Ne = {
|
|
|
2042
2045
|
kWqL5O: "xgfja2r",
|
|
2043
2046
|
$$css: !0
|
|
2044
2047
|
},
|
|
2045
|
-
gridColumns: (t) => [
|
|
2048
|
+
gridColumns: (t) => [Be, {
|
|
2046
2049
|
"--x-gridTemplateColumns": `repeat(${t}, 1fr)` != null ? `repeat(${t}, 1fr)` : void 0
|
|
2047
2050
|
}]
|
|
2048
|
-
},
|
|
2049
|
-
function
|
|
2050
|
-
const t = N(
|
|
2051
|
+
}, Nt = C(null);
|
|
2052
|
+
function dt() {
|
|
2053
|
+
const t = N(Nt);
|
|
2051
2054
|
if (!t) throw new Error("Table compound components must be used within Table.Root");
|
|
2052
2055
|
return t;
|
|
2053
2056
|
}
|
|
2054
|
-
const
|
|
2055
|
-
function
|
|
2057
|
+
const mt = C(!1);
|
|
2058
|
+
function De({
|
|
2056
2059
|
children: t,
|
|
2057
2060
|
variant: e = "default",
|
|
2058
2061
|
size: n = "md",
|
|
2059
2062
|
columns: r
|
|
2060
2063
|
}) {
|
|
2061
|
-
return /* @__PURE__ */ o(
|
|
2064
|
+
return /* @__PURE__ */ o(Nt.Provider, { value: {
|
|
2062
2065
|
variant: e,
|
|
2063
2066
|
size: n,
|
|
2064
2067
|
columns: r,
|
|
2065
2068
|
isHeader: !1
|
|
2066
|
-
}, children: /* @__PURE__ */ o("div", { role: "table", ...k
|
|
2069
|
+
}, children: /* @__PURE__ */ o("div", { role: "table", ...l(k.div, L.root), children: t }) });
|
|
2067
2070
|
}
|
|
2068
|
-
function
|
|
2071
|
+
function Ce({
|
|
2069
2072
|
children: t
|
|
2070
2073
|
}) {
|
|
2071
|
-
return /* @__PURE__ */ o(
|
|
2074
|
+
return /* @__PURE__ */ o(mt.Provider, { value: !0, children: /* @__PURE__ */ o("div", { role: "rowgroup", ...l(k.div, L.header), children: t }) });
|
|
2072
2075
|
}
|
|
2073
|
-
function
|
|
2076
|
+
function Re({
|
|
2074
2077
|
children: t
|
|
2075
2078
|
}) {
|
|
2076
2079
|
const {
|
|
2077
2080
|
variant: e
|
|
2078
|
-
} =
|
|
2079
|
-
return /* @__PURE__ */ o(
|
|
2081
|
+
} = dt(), n = It.toArray(t);
|
|
2082
|
+
return /* @__PURE__ */ o(mt.Provider, { value: !1, children: /* @__PURE__ */ o("div", { role: "rowgroup", ...l(k.div), children: n.map((r, s) => e === "striped" ? /* @__PURE__ */ o(Bt.Provider, { value: s, children: r }, s) : r) }) });
|
|
2080
2083
|
}
|
|
2081
|
-
const
|
|
2082
|
-
function
|
|
2084
|
+
const Bt = C(-1);
|
|
2085
|
+
function Xe({
|
|
2083
2086
|
children: t
|
|
2084
2087
|
}) {
|
|
2085
2088
|
const {
|
|
2086
2089
|
variant: e,
|
|
2087
2090
|
columns: n
|
|
2088
|
-
} =
|
|
2089
|
-
return /* @__PURE__ */ o("div", { role: "row", ...k
|
|
2091
|
+
} = dt(), r = N(mt), s = N(Bt), x = s >= 0 && s % 2 === 1, i = It.toArray(t);
|
|
2092
|
+
return /* @__PURE__ */ o("div", { role: "row", ...l(k.div, L.row, L.gridColumns(n), !r && L.bodyRow, !r && e === "striped" && x && L.stripedEven), children: e === "bordered" ? i.map((c, d) => /* @__PURE__ */ o(bt.Provider, { value: {
|
|
2090
2093
|
index: d,
|
|
2091
|
-
total:
|
|
2092
|
-
}, children:
|
|
2094
|
+
total: i.length
|
|
2095
|
+
}, children: c }, d)) : t });
|
|
2093
2096
|
}
|
|
2094
|
-
const
|
|
2097
|
+
const bt = C({
|
|
2095
2098
|
index: 0,
|
|
2096
2099
|
total: 0
|
|
2097
2100
|
});
|
|
2098
|
-
function
|
|
2101
|
+
function Ye({
|
|
2099
2102
|
children: t
|
|
2100
2103
|
}) {
|
|
2101
2104
|
const {
|
|
2102
2105
|
size: e,
|
|
2103
2106
|
variant: n
|
|
2104
|
-
} =
|
|
2107
|
+
} = dt(), {
|
|
2105
2108
|
index: r,
|
|
2106
2109
|
total: s
|
|
2107
|
-
} = N(
|
|
2108
|
-
return /* @__PURE__ */ o("div", { role: "columnheader", ...k
|
|
2110
|
+
} = N(bt), x = n === "bordered" && r === s - 1;
|
|
2111
|
+
return /* @__PURE__ */ o("div", { role: "columnheader", ...l(k.div, L.headerCell, e === "sm" ? L.cellSm : L.cellMd, n === "bordered" && L.borderedCell, x && L.borderedCellLast), children: t });
|
|
2109
2112
|
}
|
|
2110
|
-
function
|
|
2113
|
+
function Je({
|
|
2111
2114
|
children: t
|
|
2112
2115
|
}) {
|
|
2113
2116
|
const {
|
|
2114
2117
|
size: e,
|
|
2115
2118
|
variant: n
|
|
2116
|
-
} =
|
|
2119
|
+
} = dt(), {
|
|
2117
2120
|
index: r,
|
|
2118
2121
|
total: s
|
|
2119
|
-
} = N(
|
|
2120
|
-
return /* @__PURE__ */ o("div", { role: "cell", ...k
|
|
2121
|
-
}
|
|
2122
|
-
const
|
|
2123
|
-
Root:
|
|
2124
|
-
Header:
|
|
2125
|
-
Body:
|
|
2126
|
-
Row:
|
|
2127
|
-
HeaderCell:
|
|
2128
|
-
Cell:
|
|
2122
|
+
} = N(bt), x = n === "bordered" && r === s - 1;
|
|
2123
|
+
return /* @__PURE__ */ o("div", { role: "cell", ...l(k.div, L.cell, e === "sm" ? L.cellSm : L.cellMd, n === "bordered" && L.borderedCell, x && L.borderedCellLast), children: t });
|
|
2124
|
+
}
|
|
2125
|
+
const Bn = {
|
|
2126
|
+
Root: De,
|
|
2127
|
+
Header: Ce,
|
|
2128
|
+
Body: Re,
|
|
2129
|
+
Row: Xe,
|
|
2130
|
+
HeaderCell: Ye,
|
|
2131
|
+
Cell: Je
|
|
2129
2132
|
}, R = {
|
|
2130
2133
|
root: {
|
|
2131
2134
|
k1xSpc: "x78zum5",
|
|
@@ -2214,48 +2217,48 @@ const Nn = {
|
|
|
2214
2217
|
kE3dHu: "x107tsa6",
|
|
2215
2218
|
$$css: !0
|
|
2216
2219
|
}
|
|
2217
|
-
},
|
|
2218
|
-
function
|
|
2219
|
-
const t = N(
|
|
2220
|
+
}, Dt = C(null);
|
|
2221
|
+
function yt() {
|
|
2222
|
+
const t = N(Dt);
|
|
2220
2223
|
if (!t) throw new Error("Tabs compound components must be used within Tabs.Root");
|
|
2221
2224
|
return t;
|
|
2222
2225
|
}
|
|
2223
|
-
function
|
|
2226
|
+
function Pe({
|
|
2224
2227
|
value: t,
|
|
2225
2228
|
defaultValue: e,
|
|
2226
2229
|
onValueChange: n,
|
|
2227
2230
|
orientation: r = "horizontal"
|
|
2228
2231
|
}) {
|
|
2229
|
-
const [s,
|
|
2230
|
-
|
|
2231
|
-
} : void 0),
|
|
2232
|
-
|
|
2232
|
+
const [s, x] = vt(t, e ?? null, n ? (a) => {
|
|
2233
|
+
a !== null && n(a);
|
|
2234
|
+
} : void 0), i = w(/* @__PURE__ */ new Map()), c = w([]), d = q((a, g) => (i.current.set(a, g), c.current.includes(a) || c.current.push(a), () => {
|
|
2235
|
+
i.current.delete(a), c.current = c.current.filter((u) => u !== a);
|
|
2233
2236
|
}), []);
|
|
2234
2237
|
return {
|
|
2235
2238
|
activeValue: s,
|
|
2236
|
-
onSelect:
|
|
2239
|
+
onSelect: x,
|
|
2237
2240
|
orientation: r,
|
|
2238
2241
|
registerTab: d,
|
|
2239
|
-
tabsRef:
|
|
2240
|
-
orderRef:
|
|
2242
|
+
tabsRef: i,
|
|
2243
|
+
orderRef: c
|
|
2241
2244
|
};
|
|
2242
2245
|
}
|
|
2243
|
-
function
|
|
2246
|
+
function Fe({
|
|
2244
2247
|
children: t,
|
|
2245
2248
|
value: e,
|
|
2246
2249
|
defaultValue: n,
|
|
2247
2250
|
onValueChange: r,
|
|
2248
2251
|
orientation: s = "horizontal"
|
|
2249
2252
|
}) {
|
|
2250
|
-
const
|
|
2253
|
+
const x = Pe({
|
|
2251
2254
|
value: e,
|
|
2252
2255
|
defaultValue: n,
|
|
2253
2256
|
onValueChange: r,
|
|
2254
2257
|
orientation: s
|
|
2255
2258
|
});
|
|
2256
|
-
return /* @__PURE__ */ o(
|
|
2259
|
+
return /* @__PURE__ */ o(Dt.Provider, { value: x, children: /* @__PURE__ */ o("div", { ...l(k.div, R.root, s === "vertical" && R.rootVertical), children: t }) });
|
|
2257
2260
|
}
|
|
2258
|
-
function
|
|
2261
|
+
function Qe({
|
|
2259
2262
|
children: t
|
|
2260
2263
|
}) {
|
|
2261
2264
|
const {
|
|
@@ -2263,66 +2266,66 @@ function Fe({
|
|
|
2263
2266
|
activeValue: n,
|
|
2264
2267
|
onSelect: r,
|
|
2265
2268
|
tabsRef: s,
|
|
2266
|
-
orderRef:
|
|
2267
|
-
} =
|
|
2268
|
-
return
|
|
2269
|
-
const
|
|
2270
|
-
if (!
|
|
2271
|
-
function d(
|
|
2272
|
-
const
|
|
2273
|
-
if (
|
|
2274
|
-
const
|
|
2275
|
-
let
|
|
2276
|
-
switch (
|
|
2269
|
+
orderRef: x
|
|
2270
|
+
} = yt(), i = w(null);
|
|
2271
|
+
return W(() => {
|
|
2272
|
+
const c = i.current;
|
|
2273
|
+
if (!c) return;
|
|
2274
|
+
function d(a) {
|
|
2275
|
+
const g = x.current, u = s.current;
|
|
2276
|
+
if (g.length === 0) return;
|
|
2277
|
+
const v = this, S = e === "horizontal" ? "ArrowLeft" : "ArrowUp", h = e === "horizontal" ? "ArrowRight" : "ArrowDown";
|
|
2278
|
+
let m = null;
|
|
2279
|
+
switch (a.key) {
|
|
2277
2280
|
case h: {
|
|
2278
|
-
|
|
2279
|
-
const f = n ?
|
|
2280
|
-
for (let
|
|
2281
|
-
const p = (f +
|
|
2282
|
-
if (!
|
|
2283
|
-
|
|
2281
|
+
a.preventDefault();
|
|
2282
|
+
const f = n ? g.indexOf(n) : -1;
|
|
2283
|
+
for (let $ = 1; $ <= g.length; $++) {
|
|
2284
|
+
const p = (f + $) % g.length, b = g[p];
|
|
2285
|
+
if (!u.get(b)) {
|
|
2286
|
+
m = b;
|
|
2284
2287
|
break;
|
|
2285
2288
|
}
|
|
2286
2289
|
}
|
|
2287
2290
|
break;
|
|
2288
2291
|
}
|
|
2289
|
-
case
|
|
2290
|
-
|
|
2291
|
-
const f = n ?
|
|
2292
|
-
for (let
|
|
2293
|
-
const p = (f -
|
|
2294
|
-
if (!
|
|
2295
|
-
|
|
2292
|
+
case S: {
|
|
2293
|
+
a.preventDefault();
|
|
2294
|
+
const f = n ? g.indexOf(n) : 0;
|
|
2295
|
+
for (let $ = 1; $ <= g.length; $++) {
|
|
2296
|
+
const p = (f - $ + g.length) % g.length, b = g[p];
|
|
2297
|
+
if (!u.get(b)) {
|
|
2298
|
+
m = b;
|
|
2296
2299
|
break;
|
|
2297
2300
|
}
|
|
2298
2301
|
}
|
|
2299
2302
|
break;
|
|
2300
2303
|
}
|
|
2301
2304
|
case "Home": {
|
|
2302
|
-
|
|
2303
|
-
for (const f of
|
|
2304
|
-
if (!
|
|
2305
|
-
|
|
2305
|
+
a.preventDefault();
|
|
2306
|
+
for (const f of g)
|
|
2307
|
+
if (!u.get(f)) {
|
|
2308
|
+
m = f;
|
|
2306
2309
|
break;
|
|
2307
2310
|
}
|
|
2308
2311
|
break;
|
|
2309
2312
|
}
|
|
2310
2313
|
case "End": {
|
|
2311
|
-
|
|
2312
|
-
for (let f =
|
|
2313
|
-
if (!
|
|
2314
|
-
|
|
2314
|
+
a.preventDefault();
|
|
2315
|
+
for (let f = g.length - 1; f >= 0; f--)
|
|
2316
|
+
if (!u.get(g[f])) {
|
|
2317
|
+
m = g[f];
|
|
2315
2318
|
break;
|
|
2316
2319
|
}
|
|
2317
2320
|
break;
|
|
2318
2321
|
}
|
|
2319
2322
|
}
|
|
2320
|
-
|
|
2323
|
+
m && (r(m), v.querySelector(`[data-tab-value="${m}"]`)?.focus());
|
|
2321
2324
|
}
|
|
2322
|
-
return
|
|
2323
|
-
}, [e, n, r, s,
|
|
2325
|
+
return c.addEventListener("keydown", d), () => c.removeEventListener("keydown", d);
|
|
2326
|
+
}, [e, n, r, s, x]), /* @__PURE__ */ o("div", { ref: i, role: "tablist", "aria-orientation": e, ...l(k.div, R.list, e === "vertical" && R.listVertical), children: t });
|
|
2324
2327
|
}
|
|
2325
|
-
function
|
|
2328
|
+
function Ke({
|
|
2326
2329
|
value: t,
|
|
2327
2330
|
disabled: e = !1,
|
|
2328
2331
|
children: n
|
|
@@ -2330,29 +2333,29 @@ function Qe({
|
|
|
2330
2333
|
const {
|
|
2331
2334
|
activeValue: r,
|
|
2332
2335
|
onSelect: s,
|
|
2333
|
-
orientation:
|
|
2334
|
-
registerTab:
|
|
2335
|
-
} =
|
|
2336
|
-
return
|
|
2336
|
+
orientation: x,
|
|
2337
|
+
registerTab: i
|
|
2338
|
+
} = yt(), c = r === t, d = U(), a = `${d}-panel`;
|
|
2339
|
+
return W(() => i(t, e), [t, e, i]), /* @__PURE__ */ o("button", { type: "button", role: "tab", id: d, "aria-selected": c, "aria-controls": a, "aria-disabled": e || void 0, "data-tab-value": t, tabIndex: c ? 0 : -1, onClick: () => {
|
|
2337
2340
|
e || s(t);
|
|
2338
|
-
}, ...k
|
|
2341
|
+
}, ...l(k.button, R.tab, x === "vertical" && R.tabVertical, c && (x === "vertical" ? R.tabActiveVertical : R.tabActiveHorizontal), e && R.tabDisabled), children: n });
|
|
2339
2342
|
}
|
|
2340
|
-
function
|
|
2343
|
+
function Ue({
|
|
2341
2344
|
value: t,
|
|
2342
2345
|
children: e
|
|
2343
2346
|
}) {
|
|
2344
2347
|
const {
|
|
2345
2348
|
activeValue: n,
|
|
2346
2349
|
orientation: r
|
|
2347
|
-
} =
|
|
2348
|
-
return n !== t ? null : /* @__PURE__ */ o("div", { role: "tabpanel", ...k
|
|
2349
|
-
}
|
|
2350
|
-
const
|
|
2351
|
-
Root:
|
|
2352
|
-
List:
|
|
2353
|
-
Tab:
|
|
2354
|
-
Panel:
|
|
2355
|
-
},
|
|
2350
|
+
} = yt();
|
|
2351
|
+
return n !== t ? null : /* @__PURE__ */ o("div", { role: "tabpanel", ...l(k.div, R.panel, r === "vertical" && R.panelVertical), children: e });
|
|
2352
|
+
}
|
|
2353
|
+
const Dn = {
|
|
2354
|
+
Root: Fe,
|
|
2355
|
+
List: Qe,
|
|
2356
|
+
Tab: Ke,
|
|
2357
|
+
Panel: Ue
|
|
2358
|
+
}, zt = {
|
|
2356
2359
|
base: {
|
|
2357
2360
|
kzqmXN: "xh8yej3",
|
|
2358
2361
|
kLKAdn: "x1y6gaq4",
|
|
@@ -2386,21 +2389,21 @@ const Bn = {
|
|
|
2386
2389
|
$$css: !0
|
|
2387
2390
|
}
|
|
2388
2391
|
};
|
|
2389
|
-
function
|
|
2392
|
+
function Cn({
|
|
2390
2393
|
variant: t = "default",
|
|
2391
2394
|
name: e,
|
|
2392
2395
|
placeholder: n,
|
|
2393
2396
|
required: r,
|
|
2394
2397
|
rows: s = 3,
|
|
2395
|
-
value:
|
|
2396
|
-
defaultValue:
|
|
2397
|
-
disabled:
|
|
2398
|
+
value: x,
|
|
2399
|
+
defaultValue: i,
|
|
2400
|
+
disabled: c,
|
|
2398
2401
|
onChange: d
|
|
2399
2402
|
}) {
|
|
2400
|
-
const
|
|
2401
|
-
return /* @__PURE__ */ o("textarea", { id:
|
|
2403
|
+
const a = it();
|
|
2404
|
+
return /* @__PURE__ */ o("textarea", { id: a?.controlId, name: e, placeholder: n, required: r, rows: s, value: x, defaultValue: i, disabled: c, "aria-describedby": a ? `${a.descriptionId} ${a.invalid ? a.errorId : ""}`.trim() : void 0, "aria-invalid": a?.invalid || t === "error" || void 0, onChange: d, ...l(k.textarea, zt.base, zt[t]), dir: "auto" });
|
|
2402
2405
|
}
|
|
2403
|
-
const
|
|
2406
|
+
const Rn = {
|
|
2404
2407
|
bg: "var(--bg-xqkwqtp)",
|
|
2405
2408
|
bgCard: "var(--bgCard-xj2l5r)",
|
|
2406
2409
|
bgCardHover: "var(--bgCardHover-xlxk7vw)",
|
|
@@ -2428,7 +2431,7 @@ const Cn = {
|
|
|
2428
2431
|
infoBorder: "var(--infoBorder-xnevk3x)",
|
|
2429
2432
|
infoText: "var(--infoText-x19pseus)",
|
|
2430
2433
|
__varGroupHash__: "xjvd03b"
|
|
2431
|
-
},
|
|
2434
|
+
}, Xn = {
|
|
2432
2435
|
xs: "var(--xs-xxfyjsd)",
|
|
2433
2436
|
sm: "var(--sm-xbh8y7f)",
|
|
2434
2437
|
ms: "var(--ms-x13y09zs)",
|
|
@@ -2438,13 +2441,13 @@ const Cn = {
|
|
|
2438
2441
|
xxl: "var(--xxl-xbe9eha)",
|
|
2439
2442
|
xxxl: "var(--xxxl-xroalp5)",
|
|
2440
2443
|
__varGroupHash__: "x6uc9q"
|
|
2441
|
-
},
|
|
2444
|
+
}, Yn = {
|
|
2442
2445
|
sm: "var(--sm-x1bhtfs5)",
|
|
2443
2446
|
md: "var(--md-xx2g89g)",
|
|
2444
2447
|
lg: "var(--lg-xwd56yl)",
|
|
2445
2448
|
full: "var(--full-x9vxdtd)",
|
|
2446
2449
|
__varGroupHash__: "xw3ffwm"
|
|
2447
|
-
},
|
|
2450
|
+
}, Jn = {
|
|
2448
2451
|
stackXs: "var(--stackXs-x1qfrfo2)",
|
|
2449
2452
|
stackSm: "var(--stackSm-x2rk1ut)",
|
|
2450
2453
|
stackMd: "var(--stackMd-xhblkt4)",
|
|
@@ -2458,7 +2461,7 @@ const Cn = {
|
|
|
2458
2461
|
containerMd: "var(--containerMd-x170dvin)",
|
|
2459
2462
|
containerLg: "var(--containerLg-x1n6aasq)",
|
|
2460
2463
|
__varGroupHash__: "x16nfoyr"
|
|
2461
|
-
},
|
|
2464
|
+
}, Pn = {
|
|
2462
2465
|
fontFamily: "var(--fontFamily-xvrmnat)",
|
|
2463
2466
|
fontFamilyMono: "var(--fontFamilyMono-x1bzqfky)",
|
|
2464
2467
|
fontSizeXs: "var(--fontSizeXs-x1w5m325)",
|
|
@@ -2473,7 +2476,7 @@ const Cn = {
|
|
|
2473
2476
|
fontWeightBold: "var(--fontWeightBold-x1pjkvwg)",
|
|
2474
2477
|
lineHeight: "var(--lineHeight-x1gubzd5)",
|
|
2475
2478
|
__varGroupHash__: "xs62swl"
|
|
2476
|
-
},
|
|
2479
|
+
}, Fn = {
|
|
2477
2480
|
fontSize1: "var(--fontSize1-xx27tux)",
|
|
2478
2481
|
fontSize2: "var(--fontSize2-x5hag8h)",
|
|
2479
2482
|
fontSize3: "var(--fontSize3-x1mf6j39)",
|
|
@@ -2499,7 +2502,7 @@ const Cn = {
|
|
|
2499
2502
|
letterSpacingNormal: "var(--letterSpacingNormal-x1ih41v1)",
|
|
2500
2503
|
letterSpacingWide: "var(--letterSpacingWide-xt8z9rj)",
|
|
2501
2504
|
__varGroupHash__: "x4cj49w"
|
|
2502
|
-
},
|
|
2505
|
+
}, Qn = {
|
|
2503
2506
|
bodySm: {
|
|
2504
2507
|
"fontFamily-kMv6JI": "fontFamily-xce2pww",
|
|
2505
2508
|
"fontSize-kGuDYH": "fontSize-x1hn3ytp",
|
|
@@ -2613,38 +2616,38 @@ const Cn = {
|
|
|
2613
2616
|
"letterSpacing-kb6lSQ": "letterSpacing-xql2p2a",
|
|
2614
2617
|
$$css: "tokens/type-presets.css.ts:104"
|
|
2615
2618
|
}
|
|
2616
|
-
},
|
|
2619
|
+
}, Kn = {
|
|
2617
2620
|
sm: "var(--sm-x17hhtln)",
|
|
2618
2621
|
md: "var(--md-x1oyt0aw)",
|
|
2619
2622
|
lg: "var(--lg-x1mxd62i)",
|
|
2620
2623
|
__varGroupHash__: "x13v825q"
|
|
2621
|
-
},
|
|
2624
|
+
}, _e = {
|
|
2622
2625
|
xjvd03b: "x18itf25 xjvd03b",
|
|
2623
2626
|
$$css: !0
|
|
2624
|
-
},
|
|
2627
|
+
}, Ze = {
|
|
2625
2628
|
x13v825q: "xv9ibj0 x13v825q",
|
|
2626
2629
|
$$css: !0
|
|
2627
|
-
},
|
|
2630
|
+
}, tn = {
|
|
2628
2631
|
xjvd03b: "x1qgt5a2 xjvd03b",
|
|
2629
2632
|
$$css: !0
|
|
2630
|
-
},
|
|
2633
|
+
}, en = {
|
|
2631
2634
|
x13v825q: "x15e39jv x13v825q",
|
|
2632
2635
|
$$css: !0
|
|
2633
|
-
}, en = {
|
|
2634
|
-
light: [Ue, _e],
|
|
2635
|
-
"high-contrast": [Ze, tn]
|
|
2636
2636
|
}, nn = {
|
|
2637
|
+
light: [_e, Ze],
|
|
2638
|
+
"high-contrast": [tn, en]
|
|
2639
|
+
}, rn = {
|
|
2637
2640
|
root: {
|
|
2638
2641
|
k1xSpc: "xjp7ctv",
|
|
2639
2642
|
$$css: !0
|
|
2640
2643
|
}
|
|
2641
2644
|
};
|
|
2642
|
-
function
|
|
2645
|
+
function Un({
|
|
2643
2646
|
theme: t = "dark",
|
|
2644
2647
|
children: e
|
|
2645
2648
|
}) {
|
|
2646
|
-
const n =
|
|
2647
|
-
return /* @__PURE__ */ o("div", { ...k
|
|
2649
|
+
const n = nn[t], r = [n?.[0], n?.[1], rn.root];
|
|
2650
|
+
return /* @__PURE__ */ o("div", { ...l(k.div, r), children: e });
|
|
2648
2651
|
}
|
|
2649
2652
|
const P = {
|
|
2650
2653
|
default: {
|
|
@@ -2705,29 +2708,29 @@ const P = {
|
|
|
2705
2708
|
khDVqt: "xuxw1ft",
|
|
2706
2709
|
$$css: !0
|
|
2707
2710
|
}
|
|
2708
|
-
},
|
|
2711
|
+
}, sn = {
|
|
2709
2712
|
normal: P.weightNormal,
|
|
2710
2713
|
medium: P.weightMedium,
|
|
2711
2714
|
semibold: P.weightSemibold,
|
|
2712
2715
|
bold: P.weightBold
|
|
2713
|
-
},
|
|
2716
|
+
}, on = {
|
|
2714
2717
|
start: P.alignStart,
|
|
2715
2718
|
center: P.alignCenter,
|
|
2716
2719
|
end: P.alignEnd
|
|
2717
2720
|
};
|
|
2718
|
-
function
|
|
2721
|
+
function _n({
|
|
2719
2722
|
variant: t = "bodyMd",
|
|
2720
2723
|
color: e = "default",
|
|
2721
2724
|
weight: n,
|
|
2722
2725
|
align: r,
|
|
2723
2726
|
truncate: s,
|
|
2724
|
-
as:
|
|
2725
|
-
children:
|
|
2727
|
+
as: x = "span",
|
|
2728
|
+
children: i
|
|
2726
2729
|
}) {
|
|
2727
|
-
const
|
|
2728
|
-
return
|
|
2730
|
+
const c = [Ht[t], P[e], n && sn[n], r && on[r], s && P.truncate];
|
|
2731
|
+
return x === "p" ? /* @__PURE__ */ o("p", { ...l(k.p, c), children: i }) : x === "div" ? /* @__PURE__ */ o("div", { ...l(k.div, c), children: i }) : /* @__PURE__ */ o("span", { ...l(k.span, c), children: i });
|
|
2729
2732
|
}
|
|
2730
|
-
const
|
|
2733
|
+
const ht = {
|
|
2731
2734
|
root: {
|
|
2732
2735
|
kVAEAm: "x1n2onr6",
|
|
2733
2736
|
k1xSpc: "x3nfvp2",
|
|
@@ -2782,35 +2785,35 @@ const pt = {
|
|
|
2782
2785
|
koQZXg: "xzhl4zu",
|
|
2783
2786
|
$$css: !0
|
|
2784
2787
|
}
|
|
2785
|
-
},
|
|
2786
|
-
function
|
|
2787
|
-
const t = N(
|
|
2788
|
+
}, Ct = C(null);
|
|
2789
|
+
function cn() {
|
|
2790
|
+
const t = N(Ct);
|
|
2788
2791
|
if (!t) throw new Error("Tooltip compound components must be used within Tooltip.Root");
|
|
2789
2792
|
return t;
|
|
2790
2793
|
}
|
|
2791
|
-
function
|
|
2794
|
+
function xn({
|
|
2792
2795
|
children: t,
|
|
2793
2796
|
content: e,
|
|
2794
2797
|
placement: n = "top",
|
|
2795
2798
|
delay: r = 300
|
|
2796
2799
|
}) {
|
|
2797
|
-
const [s,
|
|
2798
|
-
|
|
2799
|
-
}, [r]),
|
|
2800
|
-
|
|
2800
|
+
const [s, x] = H(!1), i = U(), c = w(null), d = q(() => {
|
|
2801
|
+
c.current && clearTimeout(c.current), c.current = setTimeout(() => x(!0), r);
|
|
2802
|
+
}, [r]), a = q(() => {
|
|
2803
|
+
c.current && clearTimeout(c.current), c.current = null, x(!1);
|
|
2801
2804
|
}, []);
|
|
2802
|
-
return /* @__PURE__ */ o(
|
|
2805
|
+
return /* @__PURE__ */ o(Ct.Provider, { value: {
|
|
2803
2806
|
open: s,
|
|
2804
2807
|
show: d,
|
|
2805
|
-
hide:
|
|
2806
|
-
tooltipId:
|
|
2808
|
+
hide: a,
|
|
2809
|
+
tooltipId: i,
|
|
2807
2810
|
placement: n
|
|
2808
|
-
}, children: /* @__PURE__ */ A("div", { ...k
|
|
2811
|
+
}, children: /* @__PURE__ */ A("div", { ...l(k.div, ht.root), children: [
|
|
2809
2812
|
t,
|
|
2810
|
-
s && /* @__PURE__ */ o("div", { id:
|
|
2813
|
+
s && /* @__PURE__ */ o("div", { id: i, role: "tooltip", ...l(k.div, ht.popup, ht[n]), children: e })
|
|
2811
2814
|
] }) });
|
|
2812
2815
|
}
|
|
2813
|
-
function
|
|
2816
|
+
function ln({
|
|
2814
2817
|
children: t
|
|
2815
2818
|
}) {
|
|
2816
2819
|
const {
|
|
@@ -2818,12 +2821,12 @@ function xn({
|
|
|
2818
2821
|
show: n,
|
|
2819
2822
|
hide: r,
|
|
2820
2823
|
tooltipId: s
|
|
2821
|
-
} =
|
|
2822
|
-
return /* @__PURE__ */ o("div", { onPointerEnter: n, onPointerLeave: r, onFocus: n, onBlur: r, "aria-describedby": e ? s : void 0, ...k
|
|
2824
|
+
} = cn();
|
|
2825
|
+
return /* @__PURE__ */ o("div", { onPointerEnter: n, onPointerLeave: r, onFocus: n, onBlur: r, "aria-describedby": e ? s : void 0, ...l(k.div), children: t });
|
|
2823
2826
|
}
|
|
2824
|
-
const
|
|
2825
|
-
Root:
|
|
2826
|
-
Trigger:
|
|
2827
|
+
const Zn = {
|
|
2828
|
+
Root: xn,
|
|
2829
|
+
Trigger: ln
|
|
2827
2830
|
}, O = {
|
|
2828
2831
|
base: {
|
|
2829
2832
|
k1xSpc: "x78zum5",
|
|
@@ -2878,7 +2881,7 @@ const _n = {
|
|
|
2878
2881
|
kOIVth: "x281kem",
|
|
2879
2882
|
$$css: !0
|
|
2880
2883
|
}
|
|
2881
|
-
},
|
|
2884
|
+
}, kn = {
|
|
2882
2885
|
xs: O.gapXs,
|
|
2883
2886
|
sm: O.gapSm,
|
|
2884
2887
|
ms: O.gapMs,
|
|
@@ -2887,20 +2890,20 @@ const _n = {
|
|
|
2887
2890
|
xl: O.gapXl,
|
|
2888
2891
|
xxl: O.gapXxl,
|
|
2889
2892
|
xxxl: O.gapXxxl
|
|
2890
|
-
},
|
|
2893
|
+
}, an = {
|
|
2891
2894
|
start: O.alignStart,
|
|
2892
2895
|
center: O.alignCenter,
|
|
2893
2896
|
end: O.alignEnd,
|
|
2894
2897
|
stretch: O.alignStretch
|
|
2895
2898
|
};
|
|
2896
|
-
function
|
|
2899
|
+
function tr({
|
|
2897
2900
|
gap: t = "md",
|
|
2898
2901
|
align: e = "stretch",
|
|
2899
2902
|
children: n
|
|
2900
2903
|
}) {
|
|
2901
|
-
return /* @__PURE__ */ o("div", { ...k
|
|
2904
|
+
return /* @__PURE__ */ o("div", { ...l(k.div, O.base, kn[t], an[e]), children: n });
|
|
2902
2905
|
}
|
|
2903
|
-
const
|
|
2906
|
+
const I = {
|
|
2904
2907
|
base: {
|
|
2905
2908
|
k1xSpc: "x78zum5",
|
|
2906
2909
|
kXwgrk: "x1q0g3np",
|
|
@@ -2975,34 +2978,34 @@ const q = {
|
|
|
2975
2978
|
kOIVth: "x281kem",
|
|
2976
2979
|
$$css: !0
|
|
2977
2980
|
}
|
|
2978
|
-
}, an = {
|
|
2979
|
-
xs: q.gapXs,
|
|
2980
|
-
sm: q.gapSm,
|
|
2981
|
-
ms: q.gapMs,
|
|
2982
|
-
md: q.gapMd,
|
|
2983
|
-
lg: q.gapLg,
|
|
2984
|
-
xl: q.gapXl,
|
|
2985
|
-
xxl: q.gapXxl,
|
|
2986
|
-
xxxl: q.gapXxxl
|
|
2987
2981
|
}, un = {
|
|
2988
|
-
|
|
2989
|
-
|
|
2990
|
-
|
|
2991
|
-
|
|
2992
|
-
|
|
2982
|
+
xs: I.gapXs,
|
|
2983
|
+
sm: I.gapSm,
|
|
2984
|
+
ms: I.gapMs,
|
|
2985
|
+
md: I.gapMd,
|
|
2986
|
+
lg: I.gapLg,
|
|
2987
|
+
xl: I.gapXl,
|
|
2988
|
+
xxl: I.gapXxl,
|
|
2989
|
+
xxxl: I.gapXxxl
|
|
2993
2990
|
}, dn = {
|
|
2994
|
-
start:
|
|
2995
|
-
center:
|
|
2996
|
-
end:
|
|
2997
|
-
|
|
2991
|
+
start: I.alignStart,
|
|
2992
|
+
center: I.alignCenter,
|
|
2993
|
+
end: I.alignEnd,
|
|
2994
|
+
baseline: I.alignBaseline,
|
|
2995
|
+
stretch: I.alignStretch
|
|
2996
|
+
}, gn = {
|
|
2997
|
+
start: I.justifyStart,
|
|
2998
|
+
center: I.justifyCenter,
|
|
2999
|
+
end: I.justifyEnd,
|
|
3000
|
+
between: I.justifyBetween
|
|
2998
3001
|
};
|
|
2999
|
-
function
|
|
3002
|
+
function er({
|
|
3000
3003
|
gap: t = "sm",
|
|
3001
3004
|
align: e = "center",
|
|
3002
3005
|
justify: n = "start",
|
|
3003
3006
|
children: r
|
|
3004
3007
|
}) {
|
|
3005
|
-
return /* @__PURE__ */ o("div", { ...k
|
|
3008
|
+
return /* @__PURE__ */ o("div", { ...l(k.div, I.base, un[t], dn[e], gn[n]), children: r });
|
|
3006
3009
|
}
|
|
3007
3010
|
const T = {
|
|
3008
3011
|
base: {
|
|
@@ -3071,7 +3074,7 @@ const T = {
|
|
|
3071
3074
|
kOIVth: "x281kem",
|
|
3072
3075
|
$$css: !0
|
|
3073
3076
|
}
|
|
3074
|
-
},
|
|
3077
|
+
}, pn = {
|
|
3075
3078
|
xs: T.gapXs,
|
|
3076
3079
|
sm: T.gapSm,
|
|
3077
3080
|
ms: T.gapMs,
|
|
@@ -3080,25 +3083,25 @@ const T = {
|
|
|
3080
3083
|
xl: T.gapXl,
|
|
3081
3084
|
xxl: T.gapXxl,
|
|
3082
3085
|
xxxl: T.gapXxxl
|
|
3083
|
-
},
|
|
3086
|
+
}, hn = {
|
|
3084
3087
|
start: T.alignStart,
|
|
3085
3088
|
center: T.alignCenter,
|
|
3086
3089
|
end: T.alignEnd
|
|
3087
|
-
},
|
|
3090
|
+
}, fn = {
|
|
3088
3091
|
start: T.justifyStart,
|
|
3089
3092
|
center: T.justifyCenter,
|
|
3090
3093
|
end: T.justifyEnd,
|
|
3091
3094
|
between: T.justifyBetween
|
|
3092
3095
|
};
|
|
3093
|
-
function
|
|
3096
|
+
function nr({
|
|
3094
3097
|
gap: t = "sm",
|
|
3095
3098
|
align: e = "start",
|
|
3096
3099
|
justify: n = "start",
|
|
3097
3100
|
children: r
|
|
3098
3101
|
}) {
|
|
3099
|
-
return /* @__PURE__ */ o("div", { ...k
|
|
3102
|
+
return /* @__PURE__ */ o("div", { ...l(k.div, T.base, pn[t], hn[e], fn[n]), children: r });
|
|
3100
3103
|
}
|
|
3101
|
-
const
|
|
3104
|
+
const $n = {
|
|
3102
3105
|
kumcoG: "xqketvx",
|
|
3103
3106
|
$$css: !0
|
|
3104
3107
|
}, E = {
|
|
@@ -3130,7 +3133,7 @@ const fn = {
|
|
|
3130
3133
|
kumcoG: "xu4o1vd",
|
|
3131
3134
|
$$css: !0
|
|
3132
3135
|
},
|
|
3133
|
-
autoFit: (t) => [
|
|
3136
|
+
autoFit: (t) => [$n, {
|
|
3134
3137
|
"--x-gridTemplateColumns": `repeat(auto-fit, minmax(${t}, 1fr))` != null ? `repeat(auto-fit, minmax(${t}, 1fr))` : void 0
|
|
3135
3138
|
}],
|
|
3136
3139
|
gapXs: {
|
|
@@ -3165,7 +3168,7 @@ const fn = {
|
|
|
3165
3168
|
kOIVth: "x281kem",
|
|
3166
3169
|
$$css: !0
|
|
3167
3170
|
}
|
|
3168
|
-
},
|
|
3171
|
+
}, vn = {
|
|
3169
3172
|
xs: E.gapXs,
|
|
3170
3173
|
sm: E.gapSm,
|
|
3171
3174
|
ms: E.gapMs,
|
|
@@ -3174,7 +3177,7 @@ const fn = {
|
|
|
3174
3177
|
xl: E.gapXl,
|
|
3175
3178
|
xxl: E.gapXxl,
|
|
3176
3179
|
xxxl: E.gapXxxl
|
|
3177
|
-
},
|
|
3180
|
+
}, mn = {
|
|
3178
3181
|
1: E.col1,
|
|
3179
3182
|
2: E.col2,
|
|
3180
3183
|
3: E.col3,
|
|
@@ -3182,34 +3185,34 @@ const fn = {
|
|
|
3182
3185
|
5: E.col5,
|
|
3183
3186
|
6: E.col6
|
|
3184
3187
|
};
|
|
3185
|
-
function
|
|
3188
|
+
function rr({
|
|
3186
3189
|
gap: t = "md",
|
|
3187
3190
|
columns: e,
|
|
3188
3191
|
minColumnWidth: n,
|
|
3189
3192
|
children: r
|
|
3190
3193
|
}) {
|
|
3191
|
-
const s = n ? E.autoFit(n) : e ?
|
|
3192
|
-
return /* @__PURE__ */ o("div", { ...k
|
|
3194
|
+
const s = n ? E.autoFit(n) : e ? mn[e] : void 0;
|
|
3195
|
+
return /* @__PURE__ */ o("div", { ...l(k.div, E.base, vn[t], s), children: r });
|
|
3193
3196
|
}
|
|
3194
|
-
function
|
|
3197
|
+
function sr(t = {}) {
|
|
3195
3198
|
const {
|
|
3196
3199
|
compactBelow: e = 480,
|
|
3197
3200
|
spaciousAbove: n = 768
|
|
3198
|
-
} = t, r =
|
|
3199
|
-
return
|
|
3200
|
-
const
|
|
3201
|
-
if (!
|
|
3202
|
-
let
|
|
3203
|
-
const d = new ResizeObserver((
|
|
3204
|
-
|
|
3205
|
-
const
|
|
3206
|
-
if (!
|
|
3207
|
-
const
|
|
3208
|
-
|
|
3201
|
+
} = t, r = w(null), [s, x] = H("default");
|
|
3202
|
+
return W(() => {
|
|
3203
|
+
const i = r.current;
|
|
3204
|
+
if (!i) return;
|
|
3205
|
+
let c = null;
|
|
3206
|
+
const d = new ResizeObserver((a) => {
|
|
3207
|
+
c !== null && cancelAnimationFrame(c), c = requestAnimationFrame(() => {
|
|
3208
|
+
const g = a[0];
|
|
3209
|
+
if (!g) return;
|
|
3210
|
+
const u = g.contentBoxSize?.[0]?.inlineSize ?? g.contentRect.width;
|
|
3211
|
+
u < e ? x("compact") : u >= n ? x("spacious") : x("default");
|
|
3209
3212
|
});
|
|
3210
3213
|
});
|
|
3211
|
-
return d.observe(
|
|
3212
|
-
d.disconnect(),
|
|
3214
|
+
return d.observe(i), () => {
|
|
3215
|
+
d.disconnect(), c !== null && cancelAnimationFrame(c);
|
|
3213
3216
|
};
|
|
3214
3217
|
}, [e, n]), {
|
|
3215
3218
|
ref: r,
|
|
@@ -3217,45 +3220,45 @@ function rr(t = {}) {
|
|
|
3217
3220
|
};
|
|
3218
3221
|
}
|
|
3219
3222
|
export {
|
|
3220
|
-
|
|
3221
|
-
|
|
3222
|
-
|
|
3223
|
-
|
|
3224
|
-
|
|
3225
|
-
|
|
3226
|
-
|
|
3227
|
-
|
|
3228
|
-
|
|
3229
|
-
|
|
3230
|
-
|
|
3231
|
-
|
|
3232
|
-
|
|
3233
|
-
|
|
3234
|
-
|
|
3235
|
-
|
|
3236
|
-
|
|
3237
|
-
|
|
3238
|
-
|
|
3239
|
-
|
|
3240
|
-
|
|
3241
|
-
|
|
3242
|
-
|
|
3243
|
-
|
|
3244
|
-
|
|
3245
|
-
|
|
3246
|
-
|
|
3247
|
-
|
|
3248
|
-
|
|
3249
|
-
|
|
3250
|
-
|
|
3251
|
-
|
|
3252
|
-
|
|
3253
|
-
|
|
3254
|
-
|
|
3255
|
-
|
|
3256
|
-
|
|
3257
|
-
|
|
3258
|
-
|
|
3259
|
-
|
|
3223
|
+
wn as Alert,
|
|
3224
|
+
Sn as Badge,
|
|
3225
|
+
jn as Button,
|
|
3226
|
+
Mn as Card,
|
|
3227
|
+
zn as Checkbox,
|
|
3228
|
+
nr as Cluster,
|
|
3229
|
+
In as EmptyState,
|
|
3230
|
+
Wn as Field,
|
|
3231
|
+
rr as Grid,
|
|
3232
|
+
qn as Heading,
|
|
3233
|
+
er as Inline,
|
|
3234
|
+
Hn as Input,
|
|
3235
|
+
Gn as InputGroup,
|
|
3236
|
+
Tn as LinkButton,
|
|
3237
|
+
En as Menu,
|
|
3238
|
+
Ln as ScrollArea,
|
|
3239
|
+
An as Select,
|
|
3240
|
+
Vn as SideNav,
|
|
3241
|
+
On as Spinner,
|
|
3242
|
+
tr as Stack,
|
|
3243
|
+
Nn as StatusIcon,
|
|
3244
|
+
Bn as Table,
|
|
3245
|
+
Dn as Tabs,
|
|
3246
|
+
_n as Text,
|
|
3247
|
+
Cn as Textarea,
|
|
3248
|
+
Un as ThemeProvider,
|
|
3249
|
+
Zn as Tooltip,
|
|
3250
|
+
Rn as colors,
|
|
3251
|
+
en as highContrastShadows,
|
|
3252
|
+
tn as highContrastTheme,
|
|
3253
|
+
Jn as layoutSpacing,
|
|
3254
|
+
Ze as lightShadows,
|
|
3255
|
+
_e as lightTheme,
|
|
3256
|
+
Yn as radii,
|
|
3257
|
+
Kn as shadows,
|
|
3258
|
+
Xn as spacing,
|
|
3259
|
+
Qn as typePresets,
|
|
3260
|
+
Fn as typeScale,
|
|
3261
|
+
Pn as typography,
|
|
3262
|
+
sr as useContainerQuery
|
|
3260
3263
|
};
|
|
3261
3264
|
//# sourceMappingURL=index.js.map
|