@duro-app/ui 0.6.1 → 0.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Input/Input.d.ts.map +1 -1
- package/dist/components/Input/styles.css.d.ts +5 -0
- package/dist/components/Input/styles.css.d.ts.map +1 -1
- package/dist/components/InputGroup/InputGroup.d.ts +18 -0
- package/dist/components/InputGroup/InputGroup.d.ts.map +1 -0
- package/dist/components/InputGroup/InputGroup.stories.d.ts +11 -0
- package/dist/components/InputGroup/InputGroup.stories.d.ts.map +1 -0
- package/dist/components/InputGroup/InputGroupContext.d.ts +7 -0
- package/dist/components/InputGroup/InputGroupContext.d.ts.map +1 -0
- package/dist/components/InputGroup/styles.css.d.ts +51 -0
- package/dist/components/InputGroup/styles.css.d.ts.map +1 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +633 -547
- 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
|
|
2
|
-
import { useState as T, useCallback as I, useContext as
|
|
1
|
+
import { jsx as s, jsxs as G, Fragment as X } from "react/jsx-runtime";
|
|
2
|
+
import { useState as T, useCallback as I, useContext as H, createContext as C, useId as Y, useMemo as ie, useRef as y, useEffect as W, Children as $e } from "react";
|
|
3
3
|
/**
|
|
4
4
|
* @license react-strict-dom
|
|
5
5
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
@@ -7,81 +7,81 @@ import { useState as T, useCallback as I, useContext as G, createContext as O, 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 ke = {};
|
|
11
|
+
Object.defineProperty(ke, "__esModule", {
|
|
12
12
|
value: !0
|
|
13
13
|
});
|
|
14
|
-
var
|
|
15
|
-
function
|
|
14
|
+
var be = ke.styleq = void 0, He = /* @__PURE__ */ new WeakMap(), Ee = "$$css";
|
|
15
|
+
function we(e) {
|
|
16
16
|
var t, r, n;
|
|
17
17
|
return e != null && (t = e.disableCache === !0, r = e.disableMix === !0, n = e.transform), function() {
|
|
18
|
-
for (var
|
|
19
|
-
|
|
20
|
-
for (;
|
|
21
|
-
var v =
|
|
18
|
+
for (var c = [], l = "", x = null, d = "", i = t ? null : He, a = new Array(arguments.length), g = 0; g < arguments.length; g++)
|
|
19
|
+
a[g] = arguments[g];
|
|
20
|
+
for (; a.length > 0; ) {
|
|
21
|
+
var v = a.pop();
|
|
22
22
|
if (!(v == null || v === !1)) {
|
|
23
23
|
if (Array.isArray(v)) {
|
|
24
24
|
for (var w = 0; w < v.length; w++)
|
|
25
|
-
|
|
25
|
+
a.push(v[w]);
|
|
26
26
|
continue;
|
|
27
27
|
}
|
|
28
|
-
var
|
|
29
|
-
if (
|
|
28
|
+
var p = n != null ? n(v) : v;
|
|
29
|
+
if (p.$$css != null) {
|
|
30
30
|
var m = "";
|
|
31
|
-
if (i != null && i.has(
|
|
32
|
-
var
|
|
33
|
-
|
|
31
|
+
if (i != null && i.has(p)) {
|
|
32
|
+
var f = i.get(p);
|
|
33
|
+
f != null && (m = f[0], d = f[2], c.push.apply(c, f[1]), i = f[3]);
|
|
34
34
|
} else {
|
|
35
35
|
var $ = [];
|
|
36
|
-
for (var h in
|
|
37
|
-
var b =
|
|
38
|
-
if (h ===
|
|
39
|
-
var L =
|
|
36
|
+
for (var h in p) {
|
|
37
|
+
var b = p[h];
|
|
38
|
+
if (h === Ee) {
|
|
39
|
+
var L = p[h];
|
|
40
40
|
L !== !0 && (d = d ? L + "; " + d : L);
|
|
41
41
|
continue;
|
|
42
42
|
}
|
|
43
|
-
typeof b == "string" || b === null ?
|
|
43
|
+
typeof b == "string" || b === null ? c.includes(h) || (c.push(h), i != null && $.push(h), typeof b == "string" && (m += m ? " " + b : b)) : console.error("styleq: ".concat(h, " typeof ").concat(String(b), ' is not "string" or "null".'));
|
|
44
44
|
}
|
|
45
45
|
if (i != null) {
|
|
46
46
|
var q = /* @__PURE__ */ new WeakMap();
|
|
47
|
-
i.set(
|
|
47
|
+
i.set(p, [m, $, d, q]), i = q;
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
|
-
m && (
|
|
50
|
+
m && (l = l ? m + " " + l : m);
|
|
51
51
|
} else if (r)
|
|
52
|
-
|
|
52
|
+
x == null && (x = {}), x = Object.assign({}, p, x);
|
|
53
53
|
else {
|
|
54
54
|
var j = null;
|
|
55
|
-
for (var M in
|
|
56
|
-
var z =
|
|
57
|
-
z !== void 0 && (
|
|
55
|
+
for (var M in p) {
|
|
56
|
+
var z = p[M];
|
|
57
|
+
z !== void 0 && (c.includes(M) || (z != null && (x == null && (x = {}), j == null && (j = {}), j[M] = z), c.push(M), i = null));
|
|
58
58
|
}
|
|
59
|
-
j != null && (
|
|
59
|
+
j != null && (x = Object.assign(j, x));
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
|
-
var
|
|
64
|
-
return
|
|
63
|
+
var N = [l, x, d];
|
|
64
|
+
return N;
|
|
65
65
|
};
|
|
66
66
|
}
|
|
67
|
-
var
|
|
68
|
-
|
|
69
|
-
const
|
|
67
|
+
var Re = be = ke.styleq = we();
|
|
68
|
+
Re.factory = we;
|
|
69
|
+
const Ce = be.factory({
|
|
70
70
|
disableMix: !0
|
|
71
71
|
});
|
|
72
72
|
function k(...e) {
|
|
73
|
-
const [t, r, n] =
|
|
73
|
+
const [t, r, n] = Ce(e), o = {};
|
|
74
74
|
if (t != null && t !== "" && (o.className = t), r != null && (o.style = r), n != null && n !== "") {
|
|
75
|
-
const
|
|
76
|
-
for (const
|
|
77
|
-
const d =
|
|
78
|
-
|
|
75
|
+
const c = n.split(";"), l = {};
|
|
76
|
+
for (const x of c) {
|
|
77
|
+
const d = x.trim(), [i, a] = d.split(":");
|
|
78
|
+
a != null && (l[i] = l[i] != null ? `${l[i]},${a}` : a);
|
|
79
79
|
}
|
|
80
|
-
o["data-style-src"] = Object.keys(
|
|
80
|
+
o["data-style-src"] = Object.keys(l).map((x) => `${x}:${l[x]}`).join("; ");
|
|
81
81
|
}
|
|
82
82
|
return o;
|
|
83
83
|
}
|
|
84
|
-
const
|
|
84
|
+
const R = {
|
|
85
85
|
block: {
|
|
86
86
|
kogj98: "x1ghz6dp",
|
|
87
87
|
kmVPX3: "x1717udv",
|
|
@@ -116,17 +116,17 @@ const V = {
|
|
|
116
116
|
kHenm0: "x288g5",
|
|
117
117
|
$$css: !0
|
|
118
118
|
}
|
|
119
|
-
},
|
|
120
|
-
a:
|
|
121
|
-
button:
|
|
122
|
-
div:
|
|
123
|
-
input:
|
|
124
|
-
label:
|
|
125
|
-
nav:
|
|
126
|
-
p:
|
|
127
|
-
span:
|
|
128
|
-
textarea:
|
|
129
|
-
},
|
|
119
|
+
}, Ne = R.inline, Ve = [R.inlineblock, R.button], Oe = R.block, Le = [R.inlineblock, R.input], De = R.inline, Be = R.block, Pe = R.block, Ye = R.inline, Xe = [R.inlineblock, R.textarea], u = {
|
|
120
|
+
a: Ne,
|
|
121
|
+
button: Ve,
|
|
122
|
+
div: Oe,
|
|
123
|
+
input: Le,
|
|
124
|
+
label: De,
|
|
125
|
+
nav: Be,
|
|
126
|
+
p: Pe,
|
|
127
|
+
span: Ye,
|
|
128
|
+
textarea: Xe
|
|
129
|
+
}, fe = {
|
|
130
130
|
base: {
|
|
131
131
|
kmVPX3: "x16ixvul",
|
|
132
132
|
kaIpWk: "x1gbengz",
|
|
@@ -161,13 +161,13 @@ const V = {
|
|
|
161
161
|
$$css: !0
|
|
162
162
|
}
|
|
163
163
|
};
|
|
164
|
-
function
|
|
164
|
+
function Ft({
|
|
165
165
|
variant: e = "info",
|
|
166
166
|
children: t
|
|
167
167
|
}) {
|
|
168
|
-
return /* @__PURE__ */
|
|
168
|
+
return /* @__PURE__ */ s("div", { role: "alert", ...k(u.div, fe.base, fe[e]), children: t });
|
|
169
169
|
}
|
|
170
|
-
const
|
|
170
|
+
const ee = {
|
|
171
171
|
base: {
|
|
172
172
|
k1xSpc: "x3nfvp2",
|
|
173
173
|
kGNEyG: "x6s0dn4",
|
|
@@ -220,18 +220,18 @@ const Z = {
|
|
|
220
220
|
kMwMTN: "xmooqzt",
|
|
221
221
|
$$css: !0
|
|
222
222
|
}
|
|
223
|
-
},
|
|
224
|
-
sm:
|
|
225
|
-
md:
|
|
223
|
+
}, Ke = {
|
|
224
|
+
sm: ee.sizeSm,
|
|
225
|
+
md: ee.sizeMd
|
|
226
226
|
};
|
|
227
|
-
function
|
|
227
|
+
function Zt({
|
|
228
228
|
variant: e = "default",
|
|
229
229
|
size: t = "md",
|
|
230
230
|
children: r
|
|
231
231
|
}) {
|
|
232
|
-
return /* @__PURE__ */
|
|
232
|
+
return /* @__PURE__ */ s("span", { ...k(u.span, ee.base, Ke[t], ee[e]), children: r });
|
|
233
233
|
}
|
|
234
|
-
const
|
|
234
|
+
const J = {
|
|
235
235
|
base: {
|
|
236
236
|
k1xSpc: "x3nfvp2",
|
|
237
237
|
kGNEyG: "x6s0dn4",
|
|
@@ -306,22 +306,22 @@ const U = {
|
|
|
306
306
|
kkrTdU: "x1h6gzvc",
|
|
307
307
|
$$css: !0
|
|
308
308
|
}
|
|
309
|
-
},
|
|
310
|
-
default:
|
|
311
|
-
small:
|
|
309
|
+
}, Ue = {
|
|
310
|
+
default: J.sizeDefault,
|
|
311
|
+
small: J.sizeSmall
|
|
312
312
|
};
|
|
313
|
-
function
|
|
313
|
+
function er({
|
|
314
314
|
variant: e = "primary",
|
|
315
315
|
size: t = "default",
|
|
316
316
|
fullWidth: r = !1,
|
|
317
317
|
disabled: n = !1,
|
|
318
318
|
type: o = "button",
|
|
319
|
-
onClick:
|
|
320
|
-
children:
|
|
319
|
+
onClick: c,
|
|
320
|
+
children: l
|
|
321
321
|
}) {
|
|
322
|
-
return /* @__PURE__ */
|
|
322
|
+
return /* @__PURE__ */ s("button", { type: o, disabled: n, onClick: c, ...k(u.button, J.base, Ue[t], J[e], r && J.fullWidth, n && J.disabled), children: l });
|
|
323
323
|
}
|
|
324
|
-
const
|
|
324
|
+
const Q = {
|
|
325
325
|
base: {
|
|
326
326
|
kWkggS: "xl5mw0s",
|
|
327
327
|
kMwMTN: "xg6mlj0",
|
|
@@ -378,20 +378,20 @@ const J = {
|
|
|
378
378
|
k1K539: "x2mrtcw",
|
|
379
379
|
$$css: !0
|
|
380
380
|
}
|
|
381
|
-
},
|
|
382
|
-
default:
|
|
383
|
-
compact:
|
|
384
|
-
full:
|
|
381
|
+
}, Je = {
|
|
382
|
+
default: Q.sizeDefault,
|
|
383
|
+
compact: Q.sizeCompact,
|
|
384
|
+
full: Q.sizeFull
|
|
385
385
|
};
|
|
386
|
-
function
|
|
386
|
+
function tr({
|
|
387
387
|
variant: e = "outlined",
|
|
388
388
|
size: t = "default",
|
|
389
389
|
header: r,
|
|
390
390
|
onClick: n,
|
|
391
391
|
children: o
|
|
392
392
|
}) {
|
|
393
|
-
return /* @__PURE__ */
|
|
394
|
-
r && /* @__PURE__ */
|
|
393
|
+
return /* @__PURE__ */ G("div", { onClick: n, ...k(u.div, Q.base, Q[e], Je[t]), children: [
|
|
394
|
+
r && /* @__PURE__ */ s("div", { ...k(u.div, Q.header), children: r }),
|
|
395
395
|
o
|
|
396
396
|
] });
|
|
397
397
|
}
|
|
@@ -445,27 +445,27 @@ const K = {
|
|
|
445
445
|
$$css: !0
|
|
446
446
|
}
|
|
447
447
|
};
|
|
448
|
-
function
|
|
448
|
+
function rr({
|
|
449
449
|
name: e,
|
|
450
450
|
value: t,
|
|
451
451
|
checked: r,
|
|
452
452
|
defaultChecked: n = !1,
|
|
453
453
|
disabled: o = !1,
|
|
454
|
-
onChange:
|
|
455
|
-
children:
|
|
454
|
+
onChange: c,
|
|
455
|
+
children: l
|
|
456
456
|
}) {
|
|
457
|
-
const
|
|
458
|
-
|
|
459
|
-
}, [
|
|
460
|
-
return /* @__PURE__ */
|
|
461
|
-
/* @__PURE__ */
|
|
462
|
-
/* @__PURE__ */
|
|
463
|
-
opacity:
|
|
464
|
-
}, children: /* @__PURE__ */
|
|
465
|
-
|
|
457
|
+
const x = r !== void 0, [d, i] = T(n), a = x ? r : d, g = I((v) => {
|
|
458
|
+
x || i(v.target.checked), c?.(v);
|
|
459
|
+
}, [x, c]);
|
|
460
|
+
return /* @__PURE__ */ G("label", { ...k(u.label, K.root, o && K.rootDisabled), children: [
|
|
461
|
+
/* @__PURE__ */ s("input", { type: "checkbox", name: e, value: t, checked: x ? r : void 0, defaultChecked: x ? void 0 : n, disabled: o, onChange: g, ...k(u.input, K.input), dir: "auto" }),
|
|
462
|
+
/* @__PURE__ */ s("span", { ...k(u.span, K.box, a ? K.boxChecked : K.boxUnchecked), "aria-hidden": !0, children: /* @__PURE__ */ s("svg", { width: 12, height: 12, viewBox: "0 0 12 12", fill: "none", style: {
|
|
463
|
+
opacity: a ? 1 : 0
|
|
464
|
+
}, children: /* @__PURE__ */ s("polyline", { points: "2.5 6 5 8.5 9.5 3.5", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }) }) }),
|
|
465
|
+
l && /* @__PURE__ */ s("span", { ...k(u.span), children: l })
|
|
466
466
|
] });
|
|
467
467
|
}
|
|
468
|
-
const
|
|
468
|
+
const ce = {
|
|
469
469
|
root: {
|
|
470
470
|
k1xSpc: "x78zum5",
|
|
471
471
|
kXwgrk: "xdt5ytf",
|
|
@@ -488,22 +488,22 @@ const se = {
|
|
|
488
488
|
$$css: !0
|
|
489
489
|
}
|
|
490
490
|
};
|
|
491
|
-
function
|
|
491
|
+
function nr({
|
|
492
492
|
message: e,
|
|
493
493
|
icon: t,
|
|
494
494
|
action: r
|
|
495
495
|
}) {
|
|
496
|
-
return /* @__PURE__ */
|
|
496
|
+
return /* @__PURE__ */ G("div", { ...k(u.div, ce.root), children: [
|
|
497
497
|
t,
|
|
498
|
-
/* @__PURE__ */
|
|
499
|
-
r && /* @__PURE__ */
|
|
498
|
+
/* @__PURE__ */ s("p", { ...k(u.p, ce.message), children: e }),
|
|
499
|
+
r && /* @__PURE__ */ s("div", { ...k(u.div, ce.action), children: r })
|
|
500
500
|
] });
|
|
501
501
|
}
|
|
502
|
-
const
|
|
503
|
-
function
|
|
504
|
-
return
|
|
502
|
+
const ye = C(null);
|
|
503
|
+
function Z() {
|
|
504
|
+
return H(ye);
|
|
505
505
|
}
|
|
506
|
-
const
|
|
506
|
+
const te = {
|
|
507
507
|
root: {
|
|
508
508
|
k1xSpc: "x78zum5",
|
|
509
509
|
kXwgrk: "xdt5ytf",
|
|
@@ -527,42 +527,46 @@ const ee = {
|
|
|
527
527
|
$$css: !0
|
|
528
528
|
}
|
|
529
529
|
};
|
|
530
|
-
function
|
|
530
|
+
function Qe({
|
|
531
531
|
invalid: e = !1,
|
|
532
532
|
children: t
|
|
533
533
|
}) {
|
|
534
|
-
const r =
|
|
534
|
+
const r = Y(), n = ie(() => ({
|
|
535
535
|
controlId: `${r}-control`,
|
|
536
536
|
descriptionId: `${r}-description`,
|
|
537
537
|
errorId: `${r}-error`,
|
|
538
538
|
invalid: e
|
|
539
539
|
}), [r, e]);
|
|
540
|
-
return /* @__PURE__ */
|
|
540
|
+
return /* @__PURE__ */ s(ye.Provider, { value: n, children: /* @__PURE__ */ s("div", { ...k(u.div, te.root), children: t }) });
|
|
541
541
|
}
|
|
542
|
-
function
|
|
542
|
+
function _e({
|
|
543
543
|
children: e
|
|
544
544
|
}) {
|
|
545
|
-
const t =
|
|
546
|
-
return /* @__PURE__ */
|
|
545
|
+
const t = Z();
|
|
546
|
+
return /* @__PURE__ */ s("label", { htmlFor: t?.controlId, ...k(u.label, te.label), children: e });
|
|
547
547
|
}
|
|
548
|
-
function
|
|
548
|
+
function Fe({
|
|
549
549
|
children: e
|
|
550
550
|
}) {
|
|
551
|
-
const t =
|
|
552
|
-
return /* @__PURE__ */
|
|
551
|
+
const t = Z();
|
|
552
|
+
return /* @__PURE__ */ s("span", { id: t?.descriptionId, ...k(u.span, te.description), children: e });
|
|
553
553
|
}
|
|
554
|
-
function
|
|
554
|
+
function Ze({
|
|
555
555
|
children: e
|
|
556
556
|
}) {
|
|
557
|
-
const t =
|
|
558
|
-
return !t?.invalid && !e ? null : /* @__PURE__ */
|
|
559
|
-
}
|
|
560
|
-
const
|
|
561
|
-
Root:
|
|
562
|
-
Label:
|
|
563
|
-
Description:
|
|
564
|
-
Error:
|
|
565
|
-
},
|
|
557
|
+
const t = Z();
|
|
558
|
+
return !t?.invalid && !e ? null : /* @__PURE__ */ s("span", { id: t?.errorId, role: "alert", ...k(u.span, te.error), children: e });
|
|
559
|
+
}
|
|
560
|
+
const or = {
|
|
561
|
+
Root: Qe,
|
|
562
|
+
Label: _e,
|
|
563
|
+
Description: Fe,
|
|
564
|
+
Error: Ze
|
|
565
|
+
}, Me = C(null);
|
|
566
|
+
function et() {
|
|
567
|
+
return H(Me);
|
|
568
|
+
}
|
|
569
|
+
const xe = {
|
|
566
570
|
base: {
|
|
567
571
|
kzqmXN: "xh8yej3",
|
|
568
572
|
kLKAdn: "x1y6gaq4",
|
|
@@ -593,28 +597,109 @@ const Zt = {
|
|
|
593
597
|
error: {
|
|
594
598
|
kVAM5u: "x1bhh8t3 x1dqxl7v",
|
|
595
599
|
$$css: !0
|
|
600
|
+
},
|
|
601
|
+
inGroup: {
|
|
602
|
+
kMzoRj: "xc342km",
|
|
603
|
+
kaIpWk: "x2u8bby",
|
|
604
|
+
kMeerF: "x1k57tk5",
|
|
605
|
+
$$css: !0
|
|
596
606
|
}
|
|
597
607
|
};
|
|
598
|
-
function
|
|
608
|
+
function sr({
|
|
599
609
|
variant: e = "default",
|
|
600
610
|
type: t = "text",
|
|
601
611
|
name: r,
|
|
602
612
|
placeholder: n,
|
|
603
613
|
required: o,
|
|
604
|
-
minLength:
|
|
605
|
-
pattern:
|
|
606
|
-
autoComplete:
|
|
614
|
+
minLength: c,
|
|
615
|
+
pattern: l,
|
|
616
|
+
autoComplete: x,
|
|
607
617
|
value: d,
|
|
608
618
|
defaultValue: i,
|
|
609
|
-
disabled:
|
|
619
|
+
disabled: a,
|
|
610
620
|
onChange: g
|
|
611
621
|
}) {
|
|
612
|
-
const v =
|
|
613
|
-
pattern:
|
|
622
|
+
const v = Z(), w = et(), p = l !== void 0 ? {
|
|
623
|
+
pattern: l
|
|
614
624
|
} : void 0;
|
|
615
|
-
return /* @__PURE__ */
|
|
625
|
+
return /* @__PURE__ */ s("input", { id: v?.controlId, type: t, name: r, placeholder: n, required: o, minLength: c, autoComplete: x, value: d, defaultValue: i, disabled: a, "aria-describedby": v ? `${v.descriptionId} ${v.invalid ? v.errorId : ""}`.trim() : void 0, "aria-invalid": v?.invalid || e === "error" || void 0, onChange: g, ...k(u.input, xe.base, xe[e], w?.inGroup && xe.inGroup), ...p, dir: "auto" });
|
|
616
626
|
}
|
|
617
|
-
const
|
|
627
|
+
const U = {
|
|
628
|
+
wrapper: {
|
|
629
|
+
k1xSpc: "x78zum5",
|
|
630
|
+
kGNEyG: "x1qjc9v5",
|
|
631
|
+
kMzoRj: "xmkeg23",
|
|
632
|
+
ksu8eU: "x1y0btm7",
|
|
633
|
+
kVAM5u: "xa6hqta x1eag9q1",
|
|
634
|
+
kaIpWk: "x1gbengz",
|
|
635
|
+
kVQacm: "xb3r6kr",
|
|
636
|
+
k1ekBW: "xshfolx",
|
|
637
|
+
kIyJzY: "xx6bhzk",
|
|
638
|
+
kAMwcw: "xwji4o3",
|
|
639
|
+
$$css: !0
|
|
640
|
+
},
|
|
641
|
+
addon: {
|
|
642
|
+
k1xSpc: "x3nfvp2",
|
|
643
|
+
kGNEyG: "x6s0dn4",
|
|
644
|
+
kjj79g: "xl56j7k",
|
|
645
|
+
kmuXW: "x2lah0s",
|
|
646
|
+
kE3dHu: "x107tsa6",
|
|
647
|
+
kpe85a: "x1degllg",
|
|
648
|
+
kWkggS: "x17a2q59",
|
|
649
|
+
kMv6JI: "x2nsvjj",
|
|
650
|
+
kGuDYH: "xh6m7d2",
|
|
651
|
+
kMwMTN: "x19e7f62",
|
|
652
|
+
kfSwDN: "x87ps6o",
|
|
653
|
+
kMzoRj: "xc342km",
|
|
654
|
+
$$css: !0
|
|
655
|
+
},
|
|
656
|
+
addonStart: {
|
|
657
|
+
kWqL5O: "xs1s249",
|
|
658
|
+
kSWEuD: "x32b0ac",
|
|
659
|
+
k26BEO: "x17pkic5",
|
|
660
|
+
$$css: !0
|
|
661
|
+
},
|
|
662
|
+
addonEnd: {
|
|
663
|
+
kZ1KPB: "xe0pwq",
|
|
664
|
+
k4WBpm: "x19ypqd9",
|
|
665
|
+
kaZRDh: "x9m7tm4",
|
|
666
|
+
$$css: !0
|
|
667
|
+
},
|
|
668
|
+
addonClickable: {
|
|
669
|
+
kkrTdU: "x1ypdohk",
|
|
670
|
+
kWkggS: "x17a2q59 xs77ekg xkuhks1",
|
|
671
|
+
k1ekBW: "x15406qy",
|
|
672
|
+
kIyJzY: "xx6bhzk",
|
|
673
|
+
kAMwcw: "xwji4o3",
|
|
674
|
+
$$css: !0
|
|
675
|
+
},
|
|
676
|
+
addonDisabled: {
|
|
677
|
+
kSiTet: "xti2d7y",
|
|
678
|
+
kkrTdU: "x1h6gzvc",
|
|
679
|
+
$$css: !0
|
|
680
|
+
}
|
|
681
|
+
};
|
|
682
|
+
function tt({
|
|
683
|
+
children: e
|
|
684
|
+
}) {
|
|
685
|
+
const t = ie(() => ({
|
|
686
|
+
inGroup: !0
|
|
687
|
+
}), []);
|
|
688
|
+
return /* @__PURE__ */ s(Me.Provider, { value: t, children: /* @__PURE__ */ s("div", { ...k(u.div, U.wrapper), children: e }) });
|
|
689
|
+
}
|
|
690
|
+
function rt({
|
|
691
|
+
position: e = "end",
|
|
692
|
+
onClick: t,
|
|
693
|
+
disabled: r,
|
|
694
|
+
children: n
|
|
695
|
+
}) {
|
|
696
|
+
const o = e === "start" ? U.addonStart : U.addonEnd, c = [U.addon, o, t && !r && U.addonClickable, r && U.addonDisabled];
|
|
697
|
+
return t ? /* @__PURE__ */ s("button", { type: "button", onClick: t, disabled: r, ...k(u.button, c), children: n }) : /* @__PURE__ */ s("span", { ...k(u.span, c), children: n });
|
|
698
|
+
}
|
|
699
|
+
const cr = {
|
|
700
|
+
Root: tt,
|
|
701
|
+
Addon: rt
|
|
702
|
+
}, F = {
|
|
618
703
|
base: {
|
|
619
704
|
k1xSpc: "x3nfvp2",
|
|
620
705
|
kGNEyG: "x6s0dn4",
|
|
@@ -664,20 +749,20 @@ const _ = {
|
|
|
664
749
|
kzqmXN: "xh8yej3",
|
|
665
750
|
$$css: !0
|
|
666
751
|
}
|
|
667
|
-
},
|
|
668
|
-
default:
|
|
669
|
-
small:
|
|
752
|
+
}, nt = {
|
|
753
|
+
default: F.sizeDefault,
|
|
754
|
+
small: F.sizeSmall
|
|
670
755
|
};
|
|
671
|
-
function
|
|
756
|
+
function xr({
|
|
672
757
|
href: e,
|
|
673
758
|
variant: t = "primary",
|
|
674
759
|
size: r = "default",
|
|
675
760
|
fullWidth: n = !1,
|
|
676
761
|
target: o,
|
|
677
|
-
rel:
|
|
678
|
-
children:
|
|
762
|
+
rel: c,
|
|
763
|
+
children: l
|
|
679
764
|
}) {
|
|
680
|
-
return /* @__PURE__ */
|
|
765
|
+
return /* @__PURE__ */ s("a", { href: e, target: o, rel: c, ...k(u.a, F.base, nt[r], F[t], n && F.fullWidth), children: l });
|
|
681
766
|
}
|
|
682
767
|
const D = {
|
|
683
768
|
root: {
|
|
@@ -763,103 +848,103 @@ const D = {
|
|
|
763
848
|
kMwMTN: "xg6mlj0 x1c35pte",
|
|
764
849
|
$$css: !0
|
|
765
850
|
}
|
|
766
|
-
},
|
|
767
|
-
function
|
|
768
|
-
const e =
|
|
851
|
+
}, je = C(null);
|
|
852
|
+
function re() {
|
|
853
|
+
const e = H(je);
|
|
769
854
|
if (!e) throw new Error("Menu compound components must be used within Menu.Root");
|
|
770
855
|
return e;
|
|
771
856
|
}
|
|
772
|
-
function
|
|
773
|
-
const [e, t] = T(!1), [r, n] = T(null), o =
|
|
774
|
-
t(!1), n(null), i.current = !1,
|
|
857
|
+
function ot() {
|
|
858
|
+
const [e, t] = T(!1), [r, n] = T(null), o = Y(), c = y(null), l = y(null), x = y(/* @__PURE__ */ new Map()), d = y([]), i = y(!1), a = I(() => {
|
|
859
|
+
t(!1), n(null), i.current = !1, l.current?.focus();
|
|
775
860
|
}, []), g = I(() => {
|
|
776
|
-
t((
|
|
861
|
+
t((p) => (p ? (n(null), i.current = !1) : i.current = !0, !p));
|
|
777
862
|
}, []);
|
|
778
863
|
W(() => {
|
|
779
864
|
if (e && i.current) {
|
|
780
865
|
i.current = !1;
|
|
781
|
-
const
|
|
782
|
-
|
|
866
|
+
const p = d.current;
|
|
867
|
+
p.length > 0 && n(p[0]);
|
|
783
868
|
}
|
|
784
869
|
}, [e]);
|
|
785
|
-
const v = I((
|
|
786
|
-
|
|
787
|
-
const
|
|
870
|
+
const v = I((p, m) => {
|
|
871
|
+
x.current.set(p, m);
|
|
872
|
+
const f = x.current, $ = [...f.keys()];
|
|
788
873
|
return $.sort((h, b) => {
|
|
789
|
-
const L =
|
|
874
|
+
const L = f.get(h), q = f.get(b);
|
|
790
875
|
return !L || !q ? 0 : L.compareDocumentPosition(q) & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : 1;
|
|
791
876
|
}), d.current = $, () => {
|
|
792
|
-
|
|
877
|
+
x.current.delete(p), d.current = d.current.filter((h) => h !== p);
|
|
793
878
|
};
|
|
794
879
|
}, []);
|
|
795
880
|
return W(() => {
|
|
796
|
-
const
|
|
797
|
-
if (!
|
|
798
|
-
function m(
|
|
881
|
+
const p = c.current;
|
|
882
|
+
if (!p || !e) return;
|
|
883
|
+
function m(f) {
|
|
799
884
|
const $ = d.current;
|
|
800
885
|
if ($.length !== 0)
|
|
801
|
-
switch (
|
|
886
|
+
switch (f.key) {
|
|
802
887
|
case "ArrowDown": {
|
|
803
|
-
|
|
888
|
+
f.preventDefault(), n((h) => {
|
|
804
889
|
const b = h ? $.indexOf(h) : -1;
|
|
805
890
|
return $[(b + 1) % $.length];
|
|
806
891
|
});
|
|
807
892
|
break;
|
|
808
893
|
}
|
|
809
894
|
case "ArrowUp": {
|
|
810
|
-
|
|
895
|
+
f.preventDefault(), n((h) => {
|
|
811
896
|
const b = h ? $.indexOf(h) : 0;
|
|
812
897
|
return $[(b - 1 + $.length) % $.length];
|
|
813
898
|
});
|
|
814
899
|
break;
|
|
815
900
|
}
|
|
816
901
|
case "Home": {
|
|
817
|
-
|
|
902
|
+
f.preventDefault(), n($[0]);
|
|
818
903
|
break;
|
|
819
904
|
}
|
|
820
905
|
case "End": {
|
|
821
|
-
|
|
906
|
+
f.preventDefault(), n($[$.length - 1]);
|
|
822
907
|
break;
|
|
823
908
|
}
|
|
824
909
|
case "Enter":
|
|
825
910
|
case " ": {
|
|
826
|
-
|
|
827
|
-
const h =
|
|
911
|
+
f.preventDefault();
|
|
912
|
+
const h = x.current;
|
|
828
913
|
n((b) => (b && h.get(b)?.click(), b));
|
|
829
914
|
break;
|
|
830
915
|
}
|
|
831
916
|
case "Escape":
|
|
832
917
|
case "Tab": {
|
|
833
|
-
|
|
918
|
+
a();
|
|
834
919
|
break;
|
|
835
920
|
}
|
|
836
921
|
}
|
|
837
922
|
}
|
|
838
|
-
return
|
|
839
|
-
}, [e,
|
|
923
|
+
return p.addEventListener("keydown", m), () => p.removeEventListener("keydown", m);
|
|
924
|
+
}, [e, a]), {
|
|
840
925
|
ctx: {
|
|
841
926
|
open: e,
|
|
842
927
|
toggle: g,
|
|
843
|
-
close:
|
|
928
|
+
close: a,
|
|
844
929
|
menuId: o,
|
|
845
930
|
highlightedId: r,
|
|
846
931
|
setHighlightedId: n,
|
|
847
932
|
registerItem: v,
|
|
848
|
-
triggerRef:
|
|
933
|
+
triggerRef: l
|
|
849
934
|
},
|
|
850
|
-
rootRef:
|
|
935
|
+
rootRef: c
|
|
851
936
|
};
|
|
852
937
|
}
|
|
853
|
-
function
|
|
938
|
+
function st({
|
|
854
939
|
children: e
|
|
855
940
|
}) {
|
|
856
941
|
const {
|
|
857
942
|
ctx: t,
|
|
858
943
|
rootRef: r
|
|
859
|
-
} =
|
|
860
|
-
return /* @__PURE__ */
|
|
944
|
+
} = ot();
|
|
945
|
+
return /* @__PURE__ */ s(je.Provider, { value: t, children: /* @__PURE__ */ s("div", { ref: r, ...k(u.div, D.root), children: e }) });
|
|
861
946
|
}
|
|
862
|
-
function
|
|
947
|
+
function ct({
|
|
863
948
|
children: e
|
|
864
949
|
}) {
|
|
865
950
|
const {
|
|
@@ -867,12 +952,12 @@ function tt({
|
|
|
867
952
|
toggle: r,
|
|
868
953
|
menuId: n,
|
|
869
954
|
triggerRef: o
|
|
870
|
-
} =
|
|
955
|
+
} = re(), c = y(null);
|
|
871
956
|
return W(() => {
|
|
872
|
-
o.current =
|
|
873
|
-
}), /* @__PURE__ */
|
|
957
|
+
o.current = c.current;
|
|
958
|
+
}), /* @__PURE__ */ s("button", { ref: c, type: "button", onClick: r, "aria-expanded": t, "aria-haspopup": "menu", "aria-controls": t ? n : void 0, ...k(u.button, D.trigger), children: e });
|
|
874
959
|
}
|
|
875
|
-
function
|
|
960
|
+
function xt({
|
|
876
961
|
children: e,
|
|
877
962
|
align: t = "start"
|
|
878
963
|
}) {
|
|
@@ -880,14 +965,14 @@ function rt({
|
|
|
880
965
|
open: r,
|
|
881
966
|
close: n,
|
|
882
967
|
menuId: o,
|
|
883
|
-
highlightedId:
|
|
884
|
-
} =
|
|
885
|
-
return r ? /* @__PURE__ */
|
|
886
|
-
/* @__PURE__ */
|
|
887
|
-
/* @__PURE__ */
|
|
968
|
+
highlightedId: c
|
|
969
|
+
} = re();
|
|
970
|
+
return r ? /* @__PURE__ */ G(X, { children: [
|
|
971
|
+
/* @__PURE__ */ s("div", { ...k(u.div, D.backdrop), onClick: n }),
|
|
972
|
+
/* @__PURE__ */ s("div", { id: o, role: "menu", "aria-activedescendant": c ?? void 0, ...k(u.div, D.popup, t === "end" && D.popupEnd), children: e })
|
|
888
973
|
] }) : null;
|
|
889
974
|
}
|
|
890
|
-
function
|
|
975
|
+
function lt({
|
|
891
976
|
onClick: e,
|
|
892
977
|
children: t
|
|
893
978
|
}) {
|
|
@@ -895,17 +980,17 @@ function nt({
|
|
|
895
980
|
close: r,
|
|
896
981
|
highlightedId: n,
|
|
897
982
|
setHighlightedId: o,
|
|
898
|
-
registerItem:
|
|
899
|
-
} =
|
|
983
|
+
registerItem: c
|
|
984
|
+
} = re(), l = Y(), x = y(null), d = n === l;
|
|
900
985
|
return W(() => {
|
|
901
|
-
const
|
|
902
|
-
if (
|
|
903
|
-
return
|
|
904
|
-
}, [
|
|
986
|
+
const a = x.current;
|
|
987
|
+
if (a)
|
|
988
|
+
return c(l, a);
|
|
989
|
+
}, [l, c]), /* @__PURE__ */ s("div", { ref: x, id: l, role: "menuitem", onClick: () => {
|
|
905
990
|
e?.(), r();
|
|
906
|
-
}, onPointerEnter: () => o(
|
|
991
|
+
}, onPointerEnter: () => o(l), ...k(u.div, D.item, d && D.itemHighlighted), children: t });
|
|
907
992
|
}
|
|
908
|
-
function
|
|
993
|
+
function it({
|
|
909
994
|
href: e,
|
|
910
995
|
children: t
|
|
911
996
|
}) {
|
|
@@ -913,20 +998,20 @@ function ot({
|
|
|
913
998
|
close: r,
|
|
914
999
|
highlightedId: n,
|
|
915
1000
|
setHighlightedId: o,
|
|
916
|
-
registerItem:
|
|
917
|
-
} =
|
|
1001
|
+
registerItem: c
|
|
1002
|
+
} = re(), l = Y(), x = y(null), d = n === l;
|
|
918
1003
|
return W(() => {
|
|
919
|
-
const i =
|
|
1004
|
+
const i = x.current;
|
|
920
1005
|
if (i)
|
|
921
|
-
return
|
|
922
|
-
}, [
|
|
923
|
-
}
|
|
924
|
-
const
|
|
925
|
-
Root:
|
|
926
|
-
Trigger:
|
|
927
|
-
Popup:
|
|
928
|
-
Item:
|
|
929
|
-
LinkItem:
|
|
1006
|
+
return c(l, i);
|
|
1007
|
+
}, [l, c]), /* @__PURE__ */ s("a", { ref: x, id: l, href: e, onClick: r, role: "menuitem", onPointerEnter: () => o(l), ...k(u.a, D.item, D.linkItem, d && D.itemHighlighted), children: t });
|
|
1008
|
+
}
|
|
1009
|
+
const lr = {
|
|
1010
|
+
Root: st,
|
|
1011
|
+
Trigger: ct,
|
|
1012
|
+
Popup: xt,
|
|
1013
|
+
Item: lt,
|
|
1014
|
+
LinkItem: it
|
|
930
1015
|
}, E = {
|
|
931
1016
|
root: {
|
|
932
1017
|
kVAEAm: "x1n2onr6",
|
|
@@ -1018,24 +1103,24 @@ const rr = {
|
|
|
1018
1103
|
"--x-width": ((r) => typeof r == "number" ? r + "px" : r ?? void 0)(e),
|
|
1019
1104
|
"--x-transform": t ?? void 0
|
|
1020
1105
|
}]
|
|
1021
|
-
},
|
|
1022
|
-
function
|
|
1023
|
-
const e =
|
|
1106
|
+
}, ze = C(null);
|
|
1107
|
+
function ne() {
|
|
1108
|
+
const e = H(ze);
|
|
1024
1109
|
if (!e) throw new Error("ScrollArea compound components must be used within ScrollArea.Root");
|
|
1025
1110
|
return e;
|
|
1026
1111
|
}
|
|
1027
|
-
function
|
|
1028
|
-
const e = y(null), t = y(null), [r, n] = T(0), [o,
|
|
1112
|
+
function kt() {
|
|
1113
|
+
const e = y(null), t = y(null), [r, n] = T(0), [o, c] = T(0), [l, x] = T(0), [d, i] = T(0), [a, g] = T(0), [v, w] = T(0), [p, m] = T(!1), f = y(null), $ = I(() => {
|
|
1029
1114
|
const h = e.current;
|
|
1030
|
-
h && (n(h.scrollTop),
|
|
1115
|
+
h && (n(h.scrollTop), c(h.scrollLeft), x(h.scrollHeight), i(h.scrollWidth), g(h.clientHeight), w(h.clientWidth), m(!0), f.current && clearTimeout(f.current), f.current = setTimeout(() => m(!1), 1e3));
|
|
1031
1116
|
}, []);
|
|
1032
1117
|
return W(() => {
|
|
1033
1118
|
const h = e.current;
|
|
1034
1119
|
if (!h) return;
|
|
1035
1120
|
const b = new ResizeObserver(() => {
|
|
1036
|
-
|
|
1121
|
+
x(h.scrollHeight), i(h.scrollWidth), g(h.clientHeight), w(h.clientWidth);
|
|
1037
1122
|
});
|
|
1038
|
-
return b.observe(h),
|
|
1123
|
+
return b.observe(h), x(h.scrollHeight), i(h.scrollWidth), g(h.clientHeight), w(h.clientWidth), () => b.disconnect();
|
|
1039
1124
|
}, []), W(() => {
|
|
1040
1125
|
const h = e.current;
|
|
1041
1126
|
if (h)
|
|
@@ -1047,37 +1132,37 @@ function st() {
|
|
|
1047
1132
|
contentRef: t,
|
|
1048
1133
|
scrollTop: r,
|
|
1049
1134
|
scrollLeft: o,
|
|
1050
|
-
scrollHeight:
|
|
1135
|
+
scrollHeight: l,
|
|
1051
1136
|
scrollWidth: d,
|
|
1052
|
-
clientHeight:
|
|
1137
|
+
clientHeight: a,
|
|
1053
1138
|
clientWidth: v,
|
|
1054
|
-
scrolling:
|
|
1139
|
+
scrolling: p
|
|
1055
1140
|
};
|
|
1056
1141
|
}
|
|
1057
|
-
function
|
|
1142
|
+
function ut({
|
|
1058
1143
|
children: e
|
|
1059
1144
|
}) {
|
|
1060
|
-
const t =
|
|
1061
|
-
return /* @__PURE__ */
|
|
1145
|
+
const t = kt();
|
|
1146
|
+
return /* @__PURE__ */ s(ze.Provider, { value: t, children: /* @__PURE__ */ s("div", { ...k(u.div, E.root), children: e }) });
|
|
1062
1147
|
}
|
|
1063
|
-
function
|
|
1148
|
+
function at({
|
|
1064
1149
|
children: e,
|
|
1065
1150
|
maxHeight: t
|
|
1066
1151
|
}) {
|
|
1067
1152
|
const {
|
|
1068
1153
|
viewportRef: r
|
|
1069
|
-
} =
|
|
1070
|
-
return /* @__PURE__ */
|
|
1154
|
+
} = ne();
|
|
1155
|
+
return /* @__PURE__ */ s("div", { ref: r, ...k(u.div, E.viewport, t != null && E.viewportMaxHeight(t)), children: e });
|
|
1071
1156
|
}
|
|
1072
|
-
function
|
|
1157
|
+
function dt({
|
|
1073
1158
|
children: e
|
|
1074
1159
|
}) {
|
|
1075
1160
|
const {
|
|
1076
1161
|
contentRef: t
|
|
1077
|
-
} =
|
|
1078
|
-
return /* @__PURE__ */
|
|
1162
|
+
} = ne();
|
|
1163
|
+
return /* @__PURE__ */ s("div", { ref: t, ...k(u.div, E.content), children: e });
|
|
1079
1164
|
}
|
|
1080
|
-
function
|
|
1165
|
+
function gt({
|
|
1081
1166
|
orientation: e = "vertical",
|
|
1082
1167
|
children: t
|
|
1083
1168
|
}) {
|
|
@@ -1085,12 +1170,12 @@ function it({
|
|
|
1085
1170
|
scrolling: r,
|
|
1086
1171
|
scrollHeight: n,
|
|
1087
1172
|
scrollWidth: o,
|
|
1088
|
-
clientHeight:
|
|
1089
|
-
clientWidth:
|
|
1090
|
-
} =
|
|
1091
|
-
return (e === "vertical" ? n >
|
|
1173
|
+
clientHeight: c,
|
|
1174
|
+
clientWidth: l
|
|
1175
|
+
} = ne();
|
|
1176
|
+
return (e === "vertical" ? n > c : o > l) ? /* @__PURE__ */ s("div", { ...k(u.div, E.scrollbar, e === "vertical" ? E.scrollbarVertical : E.scrollbarHorizontal, r ? E.scrollbarVisible : E.scrollbarHidden), children: t }) : null;
|
|
1092
1177
|
}
|
|
1093
|
-
function
|
|
1178
|
+
function ht({
|
|
1094
1179
|
orientation: e = "vertical"
|
|
1095
1180
|
}) {
|
|
1096
1181
|
const {
|
|
@@ -1098,29 +1183,29 @@ function ut({
|
|
|
1098
1183
|
scrollTop: r,
|
|
1099
1184
|
scrollLeft: n,
|
|
1100
1185
|
scrollHeight: o,
|
|
1101
|
-
scrollWidth:
|
|
1102
|
-
clientHeight:
|
|
1103
|
-
clientWidth:
|
|
1104
|
-
} =
|
|
1105
|
-
j.preventDefault(), d.current = !0, i.current = g ? j.clientY : j.clientX,
|
|
1186
|
+
scrollWidth: c,
|
|
1187
|
+
clientHeight: l,
|
|
1188
|
+
clientWidth: x
|
|
1189
|
+
} = ne(), d = y(!1), i = y(0), a = y(0), g = e === "vertical", v = Math.max(g ? l / o * 100 : x / c * 100, 10), w = g ? o - l : c - x, p = g ? l : x, m = v / 100 * p, f = g ? r : n, $ = w > 0 ? f / w * (p - m) : 0, h = g ? E.thumbVertical(`${v}%`, `translateY(${$}px)`) : E.thumbHorizontal(`${v}%`, `translateX(${$}px)`), b = I((j) => {
|
|
1190
|
+
j.preventDefault(), d.current = !0, i.current = g ? j.clientY : j.clientX, a.current = g ? t.current?.scrollTop ?? 0 : t.current?.scrollLeft ?? 0, j.target.setPointerCapture(j.pointerId);
|
|
1106
1191
|
}, [g, t]), L = I((j) => {
|
|
1107
1192
|
if (!d.current) return;
|
|
1108
1193
|
const M = t.current;
|
|
1109
1194
|
if (!M) return;
|
|
1110
|
-
const z = (g ? j.clientY : j.clientX) - i.current,
|
|
1111
|
-
g ? M.scrollTop =
|
|
1112
|
-
}, [g, w,
|
|
1195
|
+
const z = (g ? j.clientY : j.clientX) - i.current, N = w / (p - m), S = z * N;
|
|
1196
|
+
g ? M.scrollTop = a.current + S : M.scrollLeft = a.current + S;
|
|
1197
|
+
}, [g, w, p, m, t]), q = I(() => {
|
|
1113
1198
|
d.current = !1;
|
|
1114
1199
|
}, []);
|
|
1115
|
-
return /* @__PURE__ */
|
|
1116
|
-
}
|
|
1117
|
-
const
|
|
1118
|
-
Root:
|
|
1119
|
-
Viewport:
|
|
1120
|
-
Content:
|
|
1121
|
-
Scrollbar:
|
|
1122
|
-
Thumb:
|
|
1123
|
-
},
|
|
1200
|
+
return /* @__PURE__ */ s("div", { onPointerDown: b, onPointerMove: L, onPointerUp: q, ...k(u.div, E.thumb, h) });
|
|
1201
|
+
}
|
|
1202
|
+
const ir = {
|
|
1203
|
+
Root: ut,
|
|
1204
|
+
Viewport: at,
|
|
1205
|
+
Content: dt,
|
|
1206
|
+
Scrollbar: gt,
|
|
1207
|
+
Thumb: ht
|
|
1208
|
+
}, O = {
|
|
1124
1209
|
root: {
|
|
1125
1210
|
kVAEAm: "x1n2onr6",
|
|
1126
1211
|
k1xSpc: "x3nfvp2",
|
|
@@ -1218,40 +1303,40 @@ const nr = {
|
|
|
1218
1303
|
k1xSpc: "x1s85apg",
|
|
1219
1304
|
$$css: !0
|
|
1220
1305
|
}
|
|
1221
|
-
},
|
|
1222
|
-
function
|
|
1223
|
-
const e =
|
|
1306
|
+
}, qe = C(null);
|
|
1307
|
+
function oe() {
|
|
1308
|
+
const e = H(qe);
|
|
1224
1309
|
if (!e) throw new Error("Select compound components must be used within Select.Root");
|
|
1225
1310
|
return e;
|
|
1226
1311
|
}
|
|
1227
|
-
function
|
|
1228
|
-
const [n, o] = T(t),
|
|
1229
|
-
e === void 0 && o(
|
|
1312
|
+
function ue(e, t, r) {
|
|
1313
|
+
const [n, o] = T(t), c = e !== void 0 ? e : n, l = I((x) => {
|
|
1314
|
+
e === void 0 && o(x), r?.(x);
|
|
1230
1315
|
}, [e, r]);
|
|
1231
|
-
return [
|
|
1316
|
+
return [c, l];
|
|
1232
1317
|
}
|
|
1233
|
-
function
|
|
1318
|
+
function pt({
|
|
1234
1319
|
defaultValue: e,
|
|
1235
1320
|
value: t,
|
|
1236
1321
|
onValueChange: r
|
|
1237
1322
|
}) {
|
|
1238
|
-
const [n, o] =
|
|
1239
|
-
|
|
1323
|
+
const [n, o] = ue(t, e ?? null, r), [c, l] = T(!1), [x, d] = T({}), [i, a] = T(null), g = Y(), v = y(null), w = y(null), p = y(/* @__PURE__ */ new Map()), m = y([]), f = I(() => {
|
|
1324
|
+
l(!1), a(null), w.current?.focus();
|
|
1240
1325
|
}, []), $ = I(() => {
|
|
1241
|
-
|
|
1326
|
+
l((q) => {
|
|
1242
1327
|
if (q)
|
|
1243
|
-
|
|
1328
|
+
a(null);
|
|
1244
1329
|
else {
|
|
1245
|
-
const j =
|
|
1330
|
+
const j = p.current, M = m.current;
|
|
1246
1331
|
let z = null;
|
|
1247
|
-
for (const
|
|
1248
|
-
const S = j.get(
|
|
1332
|
+
for (const N of M) {
|
|
1333
|
+
const S = j.get(N);
|
|
1249
1334
|
if (S && S.value === n) {
|
|
1250
|
-
z =
|
|
1335
|
+
z = N;
|
|
1251
1336
|
break;
|
|
1252
1337
|
}
|
|
1253
1338
|
}
|
|
1254
|
-
|
|
1339
|
+
a(z ?? (M.length > 0 ? M[0] : null));
|
|
1255
1340
|
}
|
|
1256
1341
|
return !q;
|
|
1257
1342
|
});
|
|
@@ -1261,53 +1346,53 @@ function kt({
|
|
|
1261
1346
|
[q]: j
|
|
1262
1347
|
});
|
|
1263
1348
|
}, []), b = I((q, j, M) => {
|
|
1264
|
-
|
|
1349
|
+
p.current.set(q, {
|
|
1265
1350
|
value: j,
|
|
1266
1351
|
element: M
|
|
1267
1352
|
});
|
|
1268
|
-
const z =
|
|
1269
|
-
return
|
|
1270
|
-
const
|
|
1271
|
-
return !
|
|
1272
|
-
}), m.current =
|
|
1273
|
-
|
|
1353
|
+
const z = p.current, N = [...z.keys()];
|
|
1354
|
+
return N.sort((S, B) => {
|
|
1355
|
+
const he = z.get(S)?.element, pe = z.get(B)?.element;
|
|
1356
|
+
return !he || !pe ? 0 : he.compareDocumentPosition(pe) & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : 1;
|
|
1357
|
+
}), m.current = N, () => {
|
|
1358
|
+
p.current.delete(q), m.current = m.current.filter((S) => S !== q);
|
|
1274
1359
|
};
|
|
1275
1360
|
}, []);
|
|
1276
1361
|
return W(() => {
|
|
1277
1362
|
const q = v.current;
|
|
1278
|
-
if (!q || !
|
|
1363
|
+
if (!q || !c) return;
|
|
1279
1364
|
function j(M) {
|
|
1280
|
-
const z = m.current,
|
|
1365
|
+
const z = m.current, N = p.current;
|
|
1281
1366
|
if (z.length !== 0)
|
|
1282
1367
|
switch (M.key) {
|
|
1283
1368
|
case "ArrowDown": {
|
|
1284
|
-
M.preventDefault(),
|
|
1369
|
+
M.preventDefault(), a((S) => {
|
|
1285
1370
|
const B = S ? z.indexOf(S) : -1;
|
|
1286
1371
|
return z[(B + 1) % z.length];
|
|
1287
1372
|
});
|
|
1288
1373
|
break;
|
|
1289
1374
|
}
|
|
1290
1375
|
case "ArrowUp": {
|
|
1291
|
-
M.preventDefault(),
|
|
1376
|
+
M.preventDefault(), a((S) => {
|
|
1292
1377
|
const B = S ? z.indexOf(S) : 0;
|
|
1293
1378
|
return z[(B - 1 + z.length) % z.length];
|
|
1294
1379
|
});
|
|
1295
1380
|
break;
|
|
1296
1381
|
}
|
|
1297
1382
|
case "Home": {
|
|
1298
|
-
M.preventDefault(),
|
|
1383
|
+
M.preventDefault(), a(z[0]);
|
|
1299
1384
|
break;
|
|
1300
1385
|
}
|
|
1301
1386
|
case "End": {
|
|
1302
|
-
M.preventDefault(),
|
|
1387
|
+
M.preventDefault(), a(z[z.length - 1]);
|
|
1303
1388
|
break;
|
|
1304
1389
|
}
|
|
1305
1390
|
case "Enter":
|
|
1306
1391
|
case " ": {
|
|
1307
|
-
M.preventDefault(),
|
|
1392
|
+
M.preventDefault(), a((S) => {
|
|
1308
1393
|
if (S) {
|
|
1309
|
-
const B =
|
|
1310
|
-
B && (o(B.value),
|
|
1394
|
+
const B = N.get(S);
|
|
1395
|
+
B && (o(B.value), f());
|
|
1311
1396
|
}
|
|
1312
1397
|
return S;
|
|
1313
1398
|
});
|
|
@@ -1315,31 +1400,31 @@ function kt({
|
|
|
1315
1400
|
}
|
|
1316
1401
|
case "Escape":
|
|
1317
1402
|
case "Tab": {
|
|
1318
|
-
|
|
1403
|
+
f();
|
|
1319
1404
|
break;
|
|
1320
1405
|
}
|
|
1321
1406
|
}
|
|
1322
1407
|
}
|
|
1323
1408
|
return q.addEventListener("keydown", j), () => q.removeEventListener("keydown", j);
|
|
1324
|
-
}, [
|
|
1325
|
-
ctx:
|
|
1326
|
-
open:
|
|
1409
|
+
}, [c, f, o]), {
|
|
1410
|
+
ctx: ie(() => ({
|
|
1411
|
+
open: c,
|
|
1327
1412
|
toggle: $,
|
|
1328
|
-
close:
|
|
1413
|
+
close: f,
|
|
1329
1414
|
value: n,
|
|
1330
1415
|
setValue: o,
|
|
1331
|
-
labels:
|
|
1416
|
+
labels: x,
|
|
1332
1417
|
registerLabel: h,
|
|
1333
1418
|
listboxId: g,
|
|
1334
1419
|
highlightedId: i,
|
|
1335
|
-
setHighlightedId:
|
|
1420
|
+
setHighlightedId: a,
|
|
1336
1421
|
registerItem: b,
|
|
1337
1422
|
triggerRef: w
|
|
1338
|
-
}), [
|
|
1423
|
+
}), [c, $, f, n, o, x, h, g, i, a, b]),
|
|
1339
1424
|
rootRef: v
|
|
1340
1425
|
};
|
|
1341
1426
|
}
|
|
1342
|
-
function
|
|
1427
|
+
function ft({
|
|
1343
1428
|
name: e,
|
|
1344
1429
|
defaultValue: t,
|
|
1345
1430
|
value: r,
|
|
@@ -1347,19 +1432,19 @@ function at({
|
|
|
1347
1432
|
children: o
|
|
1348
1433
|
}) {
|
|
1349
1434
|
const {
|
|
1350
|
-
ctx:
|
|
1351
|
-
rootRef:
|
|
1352
|
-
} =
|
|
1435
|
+
ctx: c,
|
|
1436
|
+
rootRef: l
|
|
1437
|
+
} = pt({
|
|
1353
1438
|
defaultValue: t,
|
|
1354
1439
|
value: r,
|
|
1355
1440
|
onValueChange: n
|
|
1356
1441
|
});
|
|
1357
|
-
return /* @__PURE__ */
|
|
1358
|
-
e && /* @__PURE__ */
|
|
1442
|
+
return /* @__PURE__ */ s(qe.Provider, { value: c, children: /* @__PURE__ */ G("div", { ref: l, ...k(u.div, O.root), children: [
|
|
1443
|
+
e && /* @__PURE__ */ s("input", { type: "hidden", name: e, value: c.value ?? "", dir: "auto", ...k(u.input) }),
|
|
1359
1444
|
o
|
|
1360
1445
|
] }) });
|
|
1361
1446
|
}
|
|
1362
|
-
function
|
|
1447
|
+
function vt({
|
|
1363
1448
|
children: e
|
|
1364
1449
|
}) {
|
|
1365
1450
|
const {
|
|
@@ -1367,40 +1452,40 @@ function dt({
|
|
|
1367
1452
|
toggle: r,
|
|
1368
1453
|
listboxId: n,
|
|
1369
1454
|
highlightedId: o,
|
|
1370
|
-
triggerRef:
|
|
1371
|
-
} =
|
|
1455
|
+
triggerRef: c
|
|
1456
|
+
} = oe(), l = y(null);
|
|
1372
1457
|
return W(() => {
|
|
1373
|
-
|
|
1374
|
-
}), /* @__PURE__ */
|
|
1458
|
+
c.current = l.current;
|
|
1459
|
+
}), /* @__PURE__ */ s("button", { ref: l, type: "button", role: "combobox", onClick: r, "aria-expanded": t, "aria-haspopup": "listbox", "aria-controls": t ? n : void 0, "aria-activedescendant": o ?? void 0, ...k(u.button, O.trigger), children: e });
|
|
1375
1460
|
}
|
|
1376
|
-
function
|
|
1461
|
+
function mt({
|
|
1377
1462
|
placeholder: e
|
|
1378
1463
|
}) {
|
|
1379
1464
|
const {
|
|
1380
1465
|
value: t,
|
|
1381
1466
|
labels: r
|
|
1382
|
-
} =
|
|
1383
|
-
return /* @__PURE__ */
|
|
1467
|
+
} = oe(), n = t ? r[t] ?? t : null;
|
|
1468
|
+
return /* @__PURE__ */ s("span", { ...k(u.span, n ? O.value : O.placeholder), children: n ?? e });
|
|
1384
1469
|
}
|
|
1385
|
-
function
|
|
1470
|
+
function $t({
|
|
1386
1471
|
children: e
|
|
1387
1472
|
}) {
|
|
1388
|
-
return /* @__PURE__ */
|
|
1473
|
+
return /* @__PURE__ */ s("span", { ...k(u.span, O.icon), children: e ?? /* @__PURE__ */ s("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__ */ s("path", { d: "M6 9l6 6 6-6" }) }) });
|
|
1389
1474
|
}
|
|
1390
|
-
function
|
|
1475
|
+
function bt({
|
|
1391
1476
|
children: e
|
|
1392
1477
|
}) {
|
|
1393
1478
|
const {
|
|
1394
1479
|
open: t,
|
|
1395
1480
|
close: r,
|
|
1396
1481
|
listboxId: n
|
|
1397
|
-
} =
|
|
1398
|
-
return /* @__PURE__ */
|
|
1399
|
-
t && /* @__PURE__ */
|
|
1400
|
-
/* @__PURE__ */
|
|
1482
|
+
} = oe();
|
|
1483
|
+
return /* @__PURE__ */ G(X, { children: [
|
|
1484
|
+
t && /* @__PURE__ */ s("div", { ...k(u.div, O.backdrop), onClick: r }),
|
|
1485
|
+
/* @__PURE__ */ s("div", { id: n, role: "listbox", "aria-hidden": !t, ...k(u.div, O.popup, !t && O.hidden), children: e })
|
|
1401
1486
|
] });
|
|
1402
1487
|
}
|
|
1403
|
-
function
|
|
1488
|
+
function wt({
|
|
1404
1489
|
value: e,
|
|
1405
1490
|
children: t
|
|
1406
1491
|
}) {
|
|
@@ -1408,37 +1493,37 @@ function pt({
|
|
|
1408
1493
|
value: r,
|
|
1409
1494
|
setValue: n,
|
|
1410
1495
|
close: o,
|
|
1411
|
-
registerLabel:
|
|
1412
|
-
highlightedId:
|
|
1413
|
-
setHighlightedId:
|
|
1496
|
+
registerLabel: c,
|
|
1497
|
+
highlightedId: l,
|
|
1498
|
+
setHighlightedId: x,
|
|
1414
1499
|
registerItem: d
|
|
1415
|
-
} =
|
|
1500
|
+
} = oe(), i = Y(), a = y(null), g = r === e, v = l === i;
|
|
1416
1501
|
return W(() => {
|
|
1417
|
-
const
|
|
1418
|
-
if (!
|
|
1419
|
-
const m =
|
|
1420
|
-
m &&
|
|
1421
|
-
}, [e,
|
|
1422
|
-
const
|
|
1423
|
-
if (
|
|
1424
|
-
return d(i, e,
|
|
1425
|
-
}, [i, e, d]), /* @__PURE__ */
|
|
1502
|
+
const p = a.current;
|
|
1503
|
+
if (!p) return;
|
|
1504
|
+
const m = p.textContent;
|
|
1505
|
+
m && c(e, m);
|
|
1506
|
+
}, [e, c]), W(() => {
|
|
1507
|
+
const p = a.current;
|
|
1508
|
+
if (p)
|
|
1509
|
+
return d(i, e, p);
|
|
1510
|
+
}, [i, e, d]), /* @__PURE__ */ s("div", { ref: a, id: i, role: "option", "aria-selected": g, onClick: () => {
|
|
1426
1511
|
n(e), o();
|
|
1427
|
-
}, onPointerEnter: () =>
|
|
1512
|
+
}, onPointerEnter: () => x(i), ...k(u.div, O.item, g && O.itemSelected, v && O.itemHighlighted), children: t });
|
|
1428
1513
|
}
|
|
1429
|
-
function
|
|
1514
|
+
function yt({
|
|
1430
1515
|
children: e
|
|
1431
1516
|
}) {
|
|
1432
|
-
return /* @__PURE__ */
|
|
1517
|
+
return /* @__PURE__ */ s("span", { ...k(u.span), children: e });
|
|
1433
1518
|
}
|
|
1434
|
-
const
|
|
1435
|
-
Root:
|
|
1436
|
-
Trigger:
|
|
1437
|
-
Value:
|
|
1438
|
-
Icon:
|
|
1439
|
-
Popup:
|
|
1440
|
-
Item:
|
|
1441
|
-
ItemText:
|
|
1519
|
+
const kr = {
|
|
1520
|
+
Root: ft,
|
|
1521
|
+
Trigger: vt,
|
|
1522
|
+
Value: mt,
|
|
1523
|
+
Icon: $t,
|
|
1524
|
+
Popup: bt,
|
|
1525
|
+
Item: wt,
|
|
1526
|
+
ItemText: yt
|
|
1442
1527
|
}, P = {
|
|
1443
1528
|
root: {
|
|
1444
1529
|
k1xSpc: "x78zum5",
|
|
@@ -1518,68 +1603,68 @@ const or = {
|
|
|
1518
1603
|
k63SB2: "x9n8r49",
|
|
1519
1604
|
$$css: !0
|
|
1520
1605
|
}
|
|
1521
|
-
},
|
|
1522
|
-
function
|
|
1523
|
-
const e =
|
|
1606
|
+
}, Se = C(null);
|
|
1607
|
+
function Ie() {
|
|
1608
|
+
const e = H(Se);
|
|
1524
1609
|
if (!e) throw new Error("SideNav compound components must be used within SideNav.Root");
|
|
1525
1610
|
return e;
|
|
1526
1611
|
}
|
|
1527
|
-
function
|
|
1612
|
+
function Mt({
|
|
1528
1613
|
children: e,
|
|
1529
1614
|
value: t,
|
|
1530
1615
|
defaultValue: r,
|
|
1531
1616
|
onValueChange: n
|
|
1532
1617
|
}) {
|
|
1533
|
-
const [o,
|
|
1618
|
+
const [o, c] = ue(t, r ?? null, n ? (g) => {
|
|
1534
1619
|
g !== null && n(g);
|
|
1535
|
-
} : void 0), [
|
|
1536
|
-
|
|
1620
|
+
} : void 0), [l, x] = T(/* @__PURE__ */ new Set()), d = y([]), i = I((g) => {
|
|
1621
|
+
x((v) => {
|
|
1537
1622
|
const w = new Set(v);
|
|
1538
1623
|
return w.has(g) ? w.delete(g) : w.add(g), w;
|
|
1539
1624
|
});
|
|
1540
|
-
}, []),
|
|
1625
|
+
}, []), a = I((g) => (d.current.includes(g) || d.current.push(g), () => {
|
|
1541
1626
|
d.current = d.current.filter((v) => v !== g);
|
|
1542
1627
|
}), []);
|
|
1543
1628
|
return W(() => {
|
|
1544
|
-
o &&
|
|
1545
|
-
}, [o]), /* @__PURE__ */
|
|
1629
|
+
o && x((g) => g);
|
|
1630
|
+
}, [o]), /* @__PURE__ */ s(Se.Provider, { value: {
|
|
1546
1631
|
activeValue: o,
|
|
1547
|
-
onSelect:
|
|
1548
|
-
expandedGroups:
|
|
1632
|
+
onSelect: c,
|
|
1633
|
+
expandedGroups: l,
|
|
1549
1634
|
toggleGroup: i,
|
|
1550
|
-
registerItem:
|
|
1635
|
+
registerItem: a,
|
|
1551
1636
|
orderRef: d
|
|
1552
|
-
}, children: /* @__PURE__ */
|
|
1637
|
+
}, children: /* @__PURE__ */ s("nav", { role: "navigation", ...k(u.nav, P.root), children: e }) });
|
|
1553
1638
|
}
|
|
1554
|
-
function
|
|
1639
|
+
function jt({
|
|
1555
1640
|
children: e,
|
|
1556
1641
|
label: t,
|
|
1557
1642
|
groupKey: r,
|
|
1558
1643
|
defaultExpanded: n
|
|
1559
1644
|
}) {
|
|
1560
1645
|
const o = r ?? t, {
|
|
1561
|
-
expandedGroups:
|
|
1562
|
-
toggleGroup:
|
|
1563
|
-
activeValue:
|
|
1564
|
-
} =
|
|
1646
|
+
expandedGroups: c,
|
|
1647
|
+
toggleGroup: l,
|
|
1648
|
+
activeValue: x
|
|
1649
|
+
} = Ie(), d = c.has(o), i = y(null);
|
|
1565
1650
|
W(() => {
|
|
1566
|
-
if (!
|
|
1651
|
+
if (!x || c.has(o)) return;
|
|
1567
1652
|
const g = i.current;
|
|
1568
1653
|
if (!g) return;
|
|
1569
|
-
g.querySelector(`[data-nav-value="${
|
|
1570
|
-
}, [
|
|
1571
|
-
n && !
|
|
1654
|
+
g.querySelector(`[data-nav-value="${x}"]`) && l(o);
|
|
1655
|
+
}, [x, o, c, l]), W(() => {
|
|
1656
|
+
n && !c.has(o) && l(o);
|
|
1572
1657
|
}, []);
|
|
1573
|
-
const
|
|
1574
|
-
return /* @__PURE__ */
|
|
1575
|
-
/* @__PURE__ */
|
|
1576
|
-
/* @__PURE__ */
|
|
1658
|
+
const a = !x || !i.current ? !1 : !!i.current.querySelector(`[data-nav-value="${x}"]`);
|
|
1659
|
+
return /* @__PURE__ */ G("div", { ref: i, ...k(u.div, P.group), children: [
|
|
1660
|
+
/* @__PURE__ */ G("button", { type: "button", onClick: () => l(o), ...k(u.button, P.groupTrigger, a && P.groupTriggerActive), "aria-expanded": d, children: [
|
|
1661
|
+
/* @__PURE__ */ s("span", { ...k(u.span, P.chevron, d && P.chevronOpen), children: /* @__PURE__ */ s("svg", { width: 10, height: 10, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2.5, strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ s("path", { d: "M9 18l6-6-6-6" }) }) }),
|
|
1577
1662
|
t
|
|
1578
1663
|
] }),
|
|
1579
1664
|
d && e
|
|
1580
1665
|
] });
|
|
1581
1666
|
}
|
|
1582
|
-
function
|
|
1667
|
+
function zt({
|
|
1583
1668
|
value: e,
|
|
1584
1669
|
children: t
|
|
1585
1670
|
}) {
|
|
@@ -1587,14 +1672,14 @@ function bt({
|
|
|
1587
1672
|
activeValue: r,
|
|
1588
1673
|
onSelect: n,
|
|
1589
1674
|
registerItem: o
|
|
1590
|
-
} =
|
|
1591
|
-
return W(() => o(e), [e, o]), /* @__PURE__ */
|
|
1592
|
-
}
|
|
1593
|
-
const
|
|
1594
|
-
Root:
|
|
1595
|
-
Group:
|
|
1596
|
-
Item:
|
|
1597
|
-
},
|
|
1675
|
+
} = Ie(), c = r === e;
|
|
1676
|
+
return W(() => o(e), [e, o]), /* @__PURE__ */ s("button", { type: "button", "data-nav-value": e, onClick: () => n(e), ...k(u.button, P.item, c && P.itemActive), "aria-current": c ? "page" : void 0, children: t });
|
|
1677
|
+
}
|
|
1678
|
+
const ur = {
|
|
1679
|
+
Root: Mt,
|
|
1680
|
+
Group: jt,
|
|
1681
|
+
Item: zt
|
|
1682
|
+
}, _ = {
|
|
1598
1683
|
root: {
|
|
1599
1684
|
k1xSpc: "x3nfvp2",
|
|
1600
1685
|
kGNEyG: "x6s0dn4",
|
|
@@ -1638,21 +1723,21 @@ const sr = {
|
|
|
1638
1723
|
kMcinP: "xzpqnlu",
|
|
1639
1724
|
$$css: !0
|
|
1640
1725
|
}
|
|
1641
|
-
},
|
|
1642
|
-
sm:
|
|
1643
|
-
md:
|
|
1644
|
-
lg:
|
|
1726
|
+
}, qt = {
|
|
1727
|
+
sm: _.sm,
|
|
1728
|
+
md: _.md,
|
|
1729
|
+
lg: _.lg
|
|
1645
1730
|
};
|
|
1646
|
-
function
|
|
1731
|
+
function ar({
|
|
1647
1732
|
size: e = "md",
|
|
1648
1733
|
label: t = "Loading"
|
|
1649
1734
|
}) {
|
|
1650
|
-
return /* @__PURE__ */
|
|
1651
|
-
/* @__PURE__ */
|
|
1652
|
-
/* @__PURE__ */
|
|
1735
|
+
return /* @__PURE__ */ G("div", { role: "status", ...k(u.div, _.root), children: [
|
|
1736
|
+
/* @__PURE__ */ s("div", { ...k(u.div, _.spinner, qt[e]), "aria-hidden": !0 }),
|
|
1737
|
+
/* @__PURE__ */ s("span", { ...k(u.span, _.srOnly), children: t })
|
|
1653
1738
|
] });
|
|
1654
1739
|
}
|
|
1655
|
-
const
|
|
1740
|
+
const ve = {
|
|
1656
1741
|
root: {
|
|
1657
1742
|
k1xSpc: "x3nfvp2",
|
|
1658
1743
|
kGNEyG: "x6s0dn4",
|
|
@@ -1676,37 +1761,37 @@ const fe = {
|
|
|
1676
1761
|
kMwMTN: "x19e7f62",
|
|
1677
1762
|
$$css: !0
|
|
1678
1763
|
}
|
|
1679
|
-
},
|
|
1680
|
-
"x-circle": /* @__PURE__ */
|
|
1681
|
-
/* @__PURE__ */
|
|
1682
|
-
/* @__PURE__ */
|
|
1683
|
-
/* @__PURE__ */
|
|
1764
|
+
}, St = {
|
|
1765
|
+
"x-circle": /* @__PURE__ */ G(X, { children: [
|
|
1766
|
+
/* @__PURE__ */ s("circle", { cx: "12", cy: "12", r: "10" }),
|
|
1767
|
+
/* @__PURE__ */ s("line", { x1: "15", y1: "9", x2: "9", y2: "15" }),
|
|
1768
|
+
/* @__PURE__ */ s("line", { x1: "9", y1: "9", x2: "15", y2: "15" })
|
|
1684
1769
|
] }),
|
|
1685
|
-
"check-circle": /* @__PURE__ */
|
|
1686
|
-
/* @__PURE__ */
|
|
1687
|
-
/* @__PURE__ */
|
|
1770
|
+
"check-circle": /* @__PURE__ */ G(X, { children: [
|
|
1771
|
+
/* @__PURE__ */ s("circle", { cx: "12", cy: "12", r: "10" }),
|
|
1772
|
+
/* @__PURE__ */ s("polyline", { points: "16 10 11 15 8 12" })
|
|
1688
1773
|
] }),
|
|
1689
|
-
"check-done": /* @__PURE__ */
|
|
1690
|
-
/* @__PURE__ */
|
|
1691
|
-
/* @__PURE__ */
|
|
1774
|
+
"check-done": /* @__PURE__ */ G(X, { children: [
|
|
1775
|
+
/* @__PURE__ */ s("path", { d: "M22 11.08V12a10 10 0 1 1-5.93-9.14" }),
|
|
1776
|
+
/* @__PURE__ */ s("polyline", { points: "22 4 12 14.01 9 11.01" })
|
|
1692
1777
|
] }),
|
|
1693
|
-
clock: /* @__PURE__ */
|
|
1694
|
-
/* @__PURE__ */
|
|
1695
|
-
/* @__PURE__ */
|
|
1778
|
+
clock: /* @__PURE__ */ G(X, { children: [
|
|
1779
|
+
/* @__PURE__ */ s("circle", { cx: "12", cy: "12", r: "10" }),
|
|
1780
|
+
/* @__PURE__ */ s("polyline", { points: "12 6 12 12 16 14" })
|
|
1696
1781
|
] }),
|
|
1697
|
-
forbidden: /* @__PURE__ */
|
|
1698
|
-
/* @__PURE__ */
|
|
1699
|
-
/* @__PURE__ */
|
|
1782
|
+
forbidden: /* @__PURE__ */ G(X, { children: [
|
|
1783
|
+
/* @__PURE__ */ s("circle", { cx: "12", cy: "12", r: "10" }),
|
|
1784
|
+
/* @__PURE__ */ s("line", { x1: "4.93", y1: "4.93", x2: "19.07", y2: "19.07" })
|
|
1700
1785
|
] })
|
|
1701
1786
|
};
|
|
1702
|
-
function
|
|
1787
|
+
function dr({
|
|
1703
1788
|
name: e,
|
|
1704
1789
|
size: t = 48,
|
|
1705
1790
|
variant: r = "muted"
|
|
1706
1791
|
}) {
|
|
1707
|
-
return /* @__PURE__ */
|
|
1792
|
+
return /* @__PURE__ */ s("div", { ...k(u.div, ve.root, ve[r]), children: /* @__PURE__ */ s("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", width: t, height: t, children: St[e] }) });
|
|
1708
1793
|
}
|
|
1709
|
-
const
|
|
1794
|
+
const It = {
|
|
1710
1795
|
kumcoG: "xqketvx",
|
|
1711
1796
|
$$css: !0
|
|
1712
1797
|
}, A = {
|
|
@@ -1785,91 +1870,91 @@ const Mt = {
|
|
|
1785
1870
|
kWqL5O: "xgfja2r",
|
|
1786
1871
|
$$css: !0
|
|
1787
1872
|
},
|
|
1788
|
-
gridColumns: (e) => [
|
|
1873
|
+
gridColumns: (e) => [It, {
|
|
1789
1874
|
"--x-gridTemplateColumns": `repeat(${e}, 1fr)` != null ? `repeat(${e}, 1fr)` : void 0
|
|
1790
1875
|
}]
|
|
1791
|
-
},
|
|
1792
|
-
function
|
|
1793
|
-
const e =
|
|
1876
|
+
}, We = C(null);
|
|
1877
|
+
function se() {
|
|
1878
|
+
const e = H(We);
|
|
1794
1879
|
if (!e) throw new Error("Table compound components must be used within Table.Root");
|
|
1795
1880
|
return e;
|
|
1796
1881
|
}
|
|
1797
|
-
const
|
|
1798
|
-
function
|
|
1882
|
+
const ae = C(!1);
|
|
1883
|
+
function Wt({
|
|
1799
1884
|
children: e,
|
|
1800
1885
|
variant: t = "default",
|
|
1801
1886
|
size: r = "md",
|
|
1802
1887
|
columns: n
|
|
1803
1888
|
}) {
|
|
1804
|
-
return /* @__PURE__ */
|
|
1889
|
+
return /* @__PURE__ */ s(We.Provider, { value: {
|
|
1805
1890
|
variant: t,
|
|
1806
1891
|
size: r,
|
|
1807
1892
|
columns: n,
|
|
1808
1893
|
isHeader: !1
|
|
1809
|
-
}, children: /* @__PURE__ */
|
|
1894
|
+
}, children: /* @__PURE__ */ s("div", { role: "table", ...k(u.div, A.root), children: e }) });
|
|
1810
1895
|
}
|
|
1811
|
-
function
|
|
1896
|
+
function Tt({
|
|
1812
1897
|
children: e
|
|
1813
1898
|
}) {
|
|
1814
|
-
return /* @__PURE__ */
|
|
1899
|
+
return /* @__PURE__ */ s(ae.Provider, { value: !0, children: /* @__PURE__ */ s("div", { role: "rowgroup", ...k(u.div, A.header), children: e }) });
|
|
1815
1900
|
}
|
|
1816
|
-
function
|
|
1901
|
+
function At({
|
|
1817
1902
|
children: e
|
|
1818
1903
|
}) {
|
|
1819
1904
|
const {
|
|
1820
1905
|
variant: t
|
|
1821
|
-
} =
|
|
1822
|
-
return /* @__PURE__ */
|
|
1906
|
+
} = se(), r = $e.toArray(e);
|
|
1907
|
+
return /* @__PURE__ */ s(ae.Provider, { value: !1, children: /* @__PURE__ */ s("div", { role: "rowgroup", ...k(u.div), children: r.map((n, o) => t === "striped" ? /* @__PURE__ */ s(Te.Provider, { value: o, children: n }, o) : n) }) });
|
|
1823
1908
|
}
|
|
1824
|
-
const
|
|
1825
|
-
function
|
|
1909
|
+
const Te = C(-1);
|
|
1910
|
+
function Gt({
|
|
1826
1911
|
children: e
|
|
1827
1912
|
}) {
|
|
1828
1913
|
const {
|
|
1829
1914
|
variant: t,
|
|
1830
1915
|
columns: r
|
|
1831
|
-
} =
|
|
1832
|
-
return /* @__PURE__ */
|
|
1916
|
+
} = se(), n = H(ae), o = H(Te), c = o >= 0 && o % 2 === 1, l = $e.toArray(e);
|
|
1917
|
+
return /* @__PURE__ */ s("div", { role: "row", ...k(u.div, A.row, A.gridColumns(r), !n && A.bodyRow, !n && t === "striped" && c && A.stripedEven), children: t === "bordered" ? l.map((x, d) => /* @__PURE__ */ s(de.Provider, { value: {
|
|
1833
1918
|
index: d,
|
|
1834
|
-
total:
|
|
1835
|
-
}, children:
|
|
1919
|
+
total: l.length
|
|
1920
|
+
}, children: x }, d)) : e });
|
|
1836
1921
|
}
|
|
1837
|
-
const
|
|
1922
|
+
const de = C({
|
|
1838
1923
|
index: 0,
|
|
1839
1924
|
total: 0
|
|
1840
1925
|
});
|
|
1841
|
-
function
|
|
1926
|
+
function Ht({
|
|
1842
1927
|
children: e
|
|
1843
1928
|
}) {
|
|
1844
1929
|
const {
|
|
1845
1930
|
size: t,
|
|
1846
1931
|
variant: r
|
|
1847
|
-
} =
|
|
1932
|
+
} = se(), {
|
|
1848
1933
|
index: n,
|
|
1849
1934
|
total: o
|
|
1850
|
-
} =
|
|
1851
|
-
return /* @__PURE__ */
|
|
1935
|
+
} = H(de), c = r === "bordered" && n === o - 1;
|
|
1936
|
+
return /* @__PURE__ */ s("div", { role: "columnheader", ...k(u.div, A.headerCell, t === "sm" ? A.cellSm : A.cellMd, r === "bordered" && A.borderedCell, c && A.borderedCellLast), children: e });
|
|
1852
1937
|
}
|
|
1853
|
-
function
|
|
1938
|
+
function Et({
|
|
1854
1939
|
children: e
|
|
1855
1940
|
}) {
|
|
1856
1941
|
const {
|
|
1857
1942
|
size: t,
|
|
1858
1943
|
variant: r
|
|
1859
|
-
} =
|
|
1944
|
+
} = se(), {
|
|
1860
1945
|
index: n,
|
|
1861
1946
|
total: o
|
|
1862
|
-
} =
|
|
1863
|
-
return /* @__PURE__ */
|
|
1864
|
-
}
|
|
1865
|
-
const
|
|
1866
|
-
Root:
|
|
1867
|
-
Header:
|
|
1868
|
-
Body:
|
|
1869
|
-
Row:
|
|
1870
|
-
HeaderCell:
|
|
1871
|
-
Cell:
|
|
1872
|
-
},
|
|
1947
|
+
} = H(de), c = r === "bordered" && n === o - 1;
|
|
1948
|
+
return /* @__PURE__ */ s("div", { role: "cell", ...k(u.div, A.cell, t === "sm" ? A.cellSm : A.cellMd, r === "bordered" && A.borderedCell, c && A.borderedCellLast), children: e });
|
|
1949
|
+
}
|
|
1950
|
+
const gr = {
|
|
1951
|
+
Root: Wt,
|
|
1952
|
+
Header: Tt,
|
|
1953
|
+
Body: At,
|
|
1954
|
+
Row: Gt,
|
|
1955
|
+
HeaderCell: Ht,
|
|
1956
|
+
Cell: Et
|
|
1957
|
+
}, V = {
|
|
1873
1958
|
root: {
|
|
1874
1959
|
k1xSpc: "x78zum5",
|
|
1875
1960
|
kXwgrk: "xdt5ytf",
|
|
@@ -1957,48 +2042,48 @@ const xr = {
|
|
|
1957
2042
|
kE3dHu: "x107tsa6",
|
|
1958
2043
|
$$css: !0
|
|
1959
2044
|
}
|
|
1960
|
-
},
|
|
1961
|
-
function
|
|
1962
|
-
const e =
|
|
2045
|
+
}, Ae = C(null);
|
|
2046
|
+
function ge() {
|
|
2047
|
+
const e = H(Ae);
|
|
1963
2048
|
if (!e) throw new Error("Tabs compound components must be used within Tabs.Root");
|
|
1964
2049
|
return e;
|
|
1965
2050
|
}
|
|
1966
|
-
function
|
|
2051
|
+
function Rt({
|
|
1967
2052
|
value: e,
|
|
1968
2053
|
defaultValue: t,
|
|
1969
2054
|
onValueChange: r,
|
|
1970
2055
|
orientation: n = "horizontal"
|
|
1971
2056
|
}) {
|
|
1972
|
-
const [o,
|
|
2057
|
+
const [o, c] = ue(e, t ?? null, r ? (i) => {
|
|
1973
2058
|
i !== null && r(i);
|
|
1974
|
-
} : void 0),
|
|
1975
|
-
|
|
2059
|
+
} : void 0), l = y(/* @__PURE__ */ new Map()), x = y([]), d = I((i, a) => (l.current.set(i, a), x.current.includes(i) || x.current.push(i), () => {
|
|
2060
|
+
l.current.delete(i), x.current = x.current.filter((g) => g !== i);
|
|
1976
2061
|
}), []);
|
|
1977
2062
|
return {
|
|
1978
2063
|
activeValue: o,
|
|
1979
|
-
onSelect:
|
|
2064
|
+
onSelect: c,
|
|
1980
2065
|
orientation: n,
|
|
1981
2066
|
registerTab: d,
|
|
1982
|
-
tabsRef:
|
|
1983
|
-
orderRef:
|
|
2067
|
+
tabsRef: l,
|
|
2068
|
+
orderRef: x
|
|
1984
2069
|
};
|
|
1985
2070
|
}
|
|
1986
|
-
function
|
|
2071
|
+
function Ct({
|
|
1987
2072
|
children: e,
|
|
1988
2073
|
value: t,
|
|
1989
2074
|
defaultValue: r,
|
|
1990
2075
|
onValueChange: n,
|
|
1991
2076
|
orientation: o = "horizontal"
|
|
1992
2077
|
}) {
|
|
1993
|
-
const
|
|
2078
|
+
const c = Rt({
|
|
1994
2079
|
value: t,
|
|
1995
2080
|
defaultValue: r,
|
|
1996
2081
|
onValueChange: n,
|
|
1997
2082
|
orientation: o
|
|
1998
2083
|
});
|
|
1999
|
-
return /* @__PURE__ */
|
|
2084
|
+
return /* @__PURE__ */ s(Ae.Provider, { value: c, children: /* @__PURE__ */ s("div", { ...k(u.div, V.root, o === "vertical" && V.rootVertical), children: e }) });
|
|
2000
2085
|
}
|
|
2001
|
-
function
|
|
2086
|
+
function Nt({
|
|
2002
2087
|
children: e
|
|
2003
2088
|
}) {
|
|
2004
2089
|
const {
|
|
@@ -2006,22 +2091,22 @@ function Ht({
|
|
|
2006
2091
|
activeValue: r,
|
|
2007
2092
|
onSelect: n,
|
|
2008
2093
|
tabsRef: o,
|
|
2009
|
-
orderRef:
|
|
2010
|
-
} =
|
|
2094
|
+
orderRef: c
|
|
2095
|
+
} = ge(), l = y(null);
|
|
2011
2096
|
return W(() => {
|
|
2012
|
-
const
|
|
2013
|
-
if (!
|
|
2097
|
+
const x = l.current;
|
|
2098
|
+
if (!x) return;
|
|
2014
2099
|
function d(i) {
|
|
2015
|
-
const
|
|
2016
|
-
if (
|
|
2017
|
-
const v = this, w = t === "horizontal" ? "ArrowLeft" : "ArrowUp",
|
|
2100
|
+
const a = c.current, g = o.current;
|
|
2101
|
+
if (a.length === 0) return;
|
|
2102
|
+
const v = this, w = t === "horizontal" ? "ArrowLeft" : "ArrowUp", p = t === "horizontal" ? "ArrowRight" : "ArrowDown";
|
|
2018
2103
|
let m = null;
|
|
2019
2104
|
switch (i.key) {
|
|
2020
|
-
case
|
|
2105
|
+
case p: {
|
|
2021
2106
|
i.preventDefault();
|
|
2022
|
-
const
|
|
2023
|
-
for (let $ = 1; $ <=
|
|
2024
|
-
const h = (
|
|
2107
|
+
const f = r ? a.indexOf(r) : -1;
|
|
2108
|
+
for (let $ = 1; $ <= a.length; $++) {
|
|
2109
|
+
const h = (f + $) % a.length, b = a[h];
|
|
2025
2110
|
if (!g.get(b)) {
|
|
2026
2111
|
m = b;
|
|
2027
2112
|
break;
|
|
@@ -2031,9 +2116,9 @@ function Ht({
|
|
|
2031
2116
|
}
|
|
2032
2117
|
case w: {
|
|
2033
2118
|
i.preventDefault();
|
|
2034
|
-
const
|
|
2035
|
-
for (let $ = 1; $ <=
|
|
2036
|
-
const h = (
|
|
2119
|
+
const f = r ? a.indexOf(r) : 0;
|
|
2120
|
+
for (let $ = 1; $ <= a.length; $++) {
|
|
2121
|
+
const h = (f - $ + a.length) % a.length, b = a[h];
|
|
2037
2122
|
if (!g.get(b)) {
|
|
2038
2123
|
m = b;
|
|
2039
2124
|
break;
|
|
@@ -2043,18 +2128,18 @@ function Ht({
|
|
|
2043
2128
|
}
|
|
2044
2129
|
case "Home": {
|
|
2045
2130
|
i.preventDefault();
|
|
2046
|
-
for (const
|
|
2047
|
-
if (!g.get(
|
|
2048
|
-
m =
|
|
2131
|
+
for (const f of a)
|
|
2132
|
+
if (!g.get(f)) {
|
|
2133
|
+
m = f;
|
|
2049
2134
|
break;
|
|
2050
2135
|
}
|
|
2051
2136
|
break;
|
|
2052
2137
|
}
|
|
2053
2138
|
case "End": {
|
|
2054
2139
|
i.preventDefault();
|
|
2055
|
-
for (let
|
|
2056
|
-
if (!g.get(
|
|
2057
|
-
m =
|
|
2140
|
+
for (let f = a.length - 1; f >= 0; f--)
|
|
2141
|
+
if (!g.get(a[f])) {
|
|
2142
|
+
m = a[f];
|
|
2058
2143
|
break;
|
|
2059
2144
|
}
|
|
2060
2145
|
break;
|
|
@@ -2062,10 +2147,10 @@ function Ht({
|
|
|
2062
2147
|
}
|
|
2063
2148
|
m && (n(m), v.querySelector(`[data-tab-value="${m}"]`)?.focus());
|
|
2064
2149
|
}
|
|
2065
|
-
return
|
|
2066
|
-
}, [t, r, n, o,
|
|
2150
|
+
return x.addEventListener("keydown", d), () => x.removeEventListener("keydown", d);
|
|
2151
|
+
}, [t, r, n, o, c]), /* @__PURE__ */ s("div", { ref: l, role: "tablist", "aria-orientation": t, ...k(u.div, V.list, t === "vertical" && V.listVertical), children: e });
|
|
2067
2152
|
}
|
|
2068
|
-
function
|
|
2153
|
+
function Vt({
|
|
2069
2154
|
value: e,
|
|
2070
2155
|
disabled: t = !1,
|
|
2071
2156
|
children: r
|
|
@@ -2073,29 +2158,29 @@ function Et({
|
|
|
2073
2158
|
const {
|
|
2074
2159
|
activeValue: n,
|
|
2075
2160
|
onSelect: o,
|
|
2076
|
-
orientation:
|
|
2077
|
-
registerTab:
|
|
2078
|
-
} =
|
|
2079
|
-
return W(() =>
|
|
2161
|
+
orientation: c,
|
|
2162
|
+
registerTab: l
|
|
2163
|
+
} = ge(), x = n === e, d = Y(), i = `${d}-panel`;
|
|
2164
|
+
return W(() => l(e, t), [e, t, l]), /* @__PURE__ */ s("button", { type: "button", role: "tab", id: d, "aria-selected": x, "aria-controls": i, "aria-disabled": t || void 0, "data-tab-value": e, tabIndex: x ? 0 : -1, onClick: () => {
|
|
2080
2165
|
t || o(e);
|
|
2081
|
-
}, ...k(
|
|
2166
|
+
}, ...k(u.button, V.tab, c === "vertical" && V.tabVertical, x && (c === "vertical" ? V.tabActiveVertical : V.tabActiveHorizontal), t && V.tabDisabled), children: r });
|
|
2082
2167
|
}
|
|
2083
|
-
function
|
|
2168
|
+
function Ot({
|
|
2084
2169
|
value: e,
|
|
2085
2170
|
children: t
|
|
2086
2171
|
}) {
|
|
2087
2172
|
const {
|
|
2088
2173
|
activeValue: r,
|
|
2089
2174
|
orientation: n
|
|
2090
|
-
} =
|
|
2091
|
-
return r !== e ? null : /* @__PURE__ */
|
|
2175
|
+
} = ge();
|
|
2176
|
+
return r !== e ? null : /* @__PURE__ */ s("div", { role: "tabpanel", ...k(u.div, V.panel, n === "vertical" && V.panelVertical), children: t });
|
|
2092
2177
|
}
|
|
2093
|
-
const
|
|
2094
|
-
Root:
|
|
2095
|
-
List:
|
|
2096
|
-
Tab:
|
|
2097
|
-
Panel:
|
|
2098
|
-
},
|
|
2178
|
+
const hr = {
|
|
2179
|
+
Root: Ct,
|
|
2180
|
+
List: Nt,
|
|
2181
|
+
Tab: Vt,
|
|
2182
|
+
Panel: Ot
|
|
2183
|
+
}, me = {
|
|
2099
2184
|
base: {
|
|
2100
2185
|
kzqmXN: "xh8yej3",
|
|
2101
2186
|
kLKAdn: "x1y6gaq4",
|
|
@@ -2129,21 +2214,21 @@ const ir = {
|
|
|
2129
2214
|
$$css: !0
|
|
2130
2215
|
}
|
|
2131
2216
|
};
|
|
2132
|
-
function
|
|
2217
|
+
function pr({
|
|
2133
2218
|
variant: e = "default",
|
|
2134
2219
|
name: t,
|
|
2135
2220
|
placeholder: r,
|
|
2136
2221
|
required: n,
|
|
2137
2222
|
rows: o = 3,
|
|
2138
|
-
value:
|
|
2139
|
-
defaultValue:
|
|
2140
|
-
disabled:
|
|
2223
|
+
value: c,
|
|
2224
|
+
defaultValue: l,
|
|
2225
|
+
disabled: x,
|
|
2141
2226
|
onChange: d
|
|
2142
2227
|
}) {
|
|
2143
|
-
const i =
|
|
2144
|
-
return /* @__PURE__ */
|
|
2228
|
+
const i = Z();
|
|
2229
|
+
return /* @__PURE__ */ s("textarea", { id: i?.controlId, name: t, placeholder: r, required: n, rows: o, value: c, defaultValue: l, disabled: x, "aria-describedby": i ? `${i.descriptionId} ${i.invalid ? i.errorId : ""}`.trim() : void 0, "aria-invalid": i?.invalid || e === "error" || void 0, onChange: d, ...k(u.textarea, me.base, me[e]), dir: "auto" });
|
|
2145
2230
|
}
|
|
2146
|
-
const
|
|
2231
|
+
const fr = {
|
|
2147
2232
|
bg: "var(--bg-xqkwqtp)",
|
|
2148
2233
|
bgCard: "var(--bgCard-xj2l5r)",
|
|
2149
2234
|
bgCardHover: "var(--bgCardHover-xlxk7vw)",
|
|
@@ -2171,7 +2256,7 @@ const kr = {
|
|
|
2171
2256
|
infoBorder: "var(--infoBorder-xnevk3x)",
|
|
2172
2257
|
infoText: "var(--infoText-x19pseus)",
|
|
2173
2258
|
__varGroupHash__: "xjvd03b"
|
|
2174
|
-
},
|
|
2259
|
+
}, vr = {
|
|
2175
2260
|
xs: "var(--xs-xxfyjsd)",
|
|
2176
2261
|
sm: "var(--sm-xbh8y7f)",
|
|
2177
2262
|
md: "var(--md-x3pkb85)",
|
|
@@ -2179,13 +2264,13 @@ const kr = {
|
|
|
2179
2264
|
xl: "var(--xl-xttpygj)",
|
|
2180
2265
|
xxl: "var(--xxl-xbe9eha)",
|
|
2181
2266
|
__varGroupHash__: "x6uc9q"
|
|
2182
|
-
},
|
|
2267
|
+
}, mr = {
|
|
2183
2268
|
sm: "var(--sm-x1bhtfs5)",
|
|
2184
2269
|
md: "var(--md-xx2g89g)",
|
|
2185
2270
|
lg: "var(--lg-xwd56yl)",
|
|
2186
2271
|
full: "var(--full-x9vxdtd)",
|
|
2187
2272
|
__varGroupHash__: "xw3ffwm"
|
|
2188
|
-
},
|
|
2273
|
+
}, $r = {
|
|
2189
2274
|
fontFamily: "var(--fontFamily-xvrmnat)",
|
|
2190
2275
|
fontSizeXs: "var(--fontSizeXs-x1w5m325)",
|
|
2191
2276
|
fontSizeSm: "var(--fontSizeSm-x1bjjs4u)",
|
|
@@ -2199,40 +2284,40 @@ const kr = {
|
|
|
2199
2284
|
fontWeightBold: "var(--fontWeightBold-x1pjkvwg)",
|
|
2200
2285
|
lineHeight: "var(--lineHeight-x1gubzd5)",
|
|
2201
2286
|
__varGroupHash__: "xs62swl"
|
|
2202
|
-
},
|
|
2287
|
+
}, br = {
|
|
2203
2288
|
sm: "var(--sm-x17hhtln)",
|
|
2204
2289
|
md: "var(--md-x1oyt0aw)",
|
|
2205
2290
|
lg: "var(--lg-x1mxd62i)",
|
|
2206
2291
|
__varGroupHash__: "x13v825q"
|
|
2207
|
-
},
|
|
2292
|
+
}, Lt = {
|
|
2208
2293
|
xjvd03b: "x18itf25 xjvd03b",
|
|
2209
2294
|
$$css: !0
|
|
2210
|
-
},
|
|
2295
|
+
}, Dt = {
|
|
2211
2296
|
x13v825q: "xv9ibj0 x13v825q",
|
|
2212
2297
|
$$css: !0
|
|
2213
|
-
},
|
|
2298
|
+
}, Bt = {
|
|
2214
2299
|
xjvd03b: "x1qgt5a2 xjvd03b",
|
|
2215
2300
|
$$css: !0
|
|
2216
|
-
},
|
|
2301
|
+
}, Pt = {
|
|
2217
2302
|
x13v825q: "x15e39jv x13v825q",
|
|
2218
2303
|
$$css: !0
|
|
2219
|
-
},
|
|
2220
|
-
light: [
|
|
2221
|
-
"high-contrast": [
|
|
2222
|
-
},
|
|
2304
|
+
}, Yt = {
|
|
2305
|
+
light: [Lt, Dt],
|
|
2306
|
+
"high-contrast": [Bt, Pt]
|
|
2307
|
+
}, Xt = {
|
|
2223
2308
|
root: {
|
|
2224
2309
|
k1xSpc: "xjp7ctv",
|
|
2225
2310
|
$$css: !0
|
|
2226
2311
|
}
|
|
2227
2312
|
};
|
|
2228
|
-
function
|
|
2313
|
+
function wr({
|
|
2229
2314
|
theme: e = "dark",
|
|
2230
2315
|
children: t
|
|
2231
2316
|
}) {
|
|
2232
|
-
const r =
|
|
2233
|
-
return /* @__PURE__ */
|
|
2317
|
+
const r = Yt[e], n = [r?.[0], r?.[1], Xt.root];
|
|
2318
|
+
return /* @__PURE__ */ s("div", { ...k(u.div, n), children: t });
|
|
2234
2319
|
}
|
|
2235
|
-
const
|
|
2320
|
+
const le = {
|
|
2236
2321
|
root: {
|
|
2237
2322
|
kVAEAm: "x1n2onr6",
|
|
2238
2323
|
k1xSpc: "x3nfvp2",
|
|
@@ -2287,35 +2372,35 @@ const ce = {
|
|
|
2287
2372
|
koQZXg: "xzhl4zu",
|
|
2288
2373
|
$$css: !0
|
|
2289
2374
|
}
|
|
2290
|
-
},
|
|
2291
|
-
function
|
|
2292
|
-
const e =
|
|
2375
|
+
}, Ge = C(null);
|
|
2376
|
+
function Kt() {
|
|
2377
|
+
const e = H(Ge);
|
|
2293
2378
|
if (!e) throw new Error("Tooltip compound components must be used within Tooltip.Root");
|
|
2294
2379
|
return e;
|
|
2295
2380
|
}
|
|
2296
|
-
function
|
|
2381
|
+
function Ut({
|
|
2297
2382
|
children: e,
|
|
2298
2383
|
content: t,
|
|
2299
2384
|
placement: r = "top",
|
|
2300
2385
|
delay: n = 300
|
|
2301
2386
|
}) {
|
|
2302
|
-
const [o,
|
|
2303
|
-
|
|
2387
|
+
const [o, c] = T(!1), l = Y(), x = y(null), d = I(() => {
|
|
2388
|
+
x.current && clearTimeout(x.current), x.current = setTimeout(() => c(!0), n);
|
|
2304
2389
|
}, [n]), i = I(() => {
|
|
2305
|
-
|
|
2390
|
+
x.current && clearTimeout(x.current), x.current = null, c(!1);
|
|
2306
2391
|
}, []);
|
|
2307
|
-
return /* @__PURE__ */
|
|
2392
|
+
return /* @__PURE__ */ s(Ge.Provider, { value: {
|
|
2308
2393
|
open: o,
|
|
2309
2394
|
show: d,
|
|
2310
2395
|
hide: i,
|
|
2311
|
-
tooltipId:
|
|
2396
|
+
tooltipId: l,
|
|
2312
2397
|
placement: r
|
|
2313
|
-
}, children: /* @__PURE__ */
|
|
2398
|
+
}, children: /* @__PURE__ */ G("div", { ...k(u.div, le.root), children: [
|
|
2314
2399
|
e,
|
|
2315
|
-
o && /* @__PURE__ */
|
|
2400
|
+
o && /* @__PURE__ */ s("div", { id: l, role: "tooltip", ...k(u.div, le.popup, le[r]), children: t })
|
|
2316
2401
|
] }) });
|
|
2317
2402
|
}
|
|
2318
|
-
function
|
|
2403
|
+
function Jt({
|
|
2319
2404
|
children: e
|
|
2320
2405
|
}) {
|
|
2321
2406
|
const {
|
|
@@ -2323,42 +2408,43 @@ function Pt({
|
|
|
2323
2408
|
show: r,
|
|
2324
2409
|
hide: n,
|
|
2325
2410
|
tooltipId: o
|
|
2326
|
-
} =
|
|
2327
|
-
return /* @__PURE__ */
|
|
2411
|
+
} = Kt();
|
|
2412
|
+
return /* @__PURE__ */ s("div", { onPointerEnter: r, onPointerLeave: n, onFocus: r, onBlur: n, "aria-describedby": t ? o : void 0, ...k(u.div), children: e });
|
|
2328
2413
|
}
|
|
2329
|
-
const
|
|
2330
|
-
Root:
|
|
2331
|
-
Trigger:
|
|
2414
|
+
const yr = {
|
|
2415
|
+
Root: Ut,
|
|
2416
|
+
Trigger: Jt
|
|
2332
2417
|
};
|
|
2333
2418
|
export {
|
|
2334
|
-
|
|
2335
|
-
|
|
2336
|
-
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
|
|
2341
|
-
|
|
2342
|
-
|
|
2343
|
-
|
|
2344
|
-
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
|
|
2419
|
+
Ft as Alert,
|
|
2420
|
+
Zt as Badge,
|
|
2421
|
+
er as Button,
|
|
2422
|
+
tr as Card,
|
|
2423
|
+
rr as Checkbox,
|
|
2424
|
+
nr as EmptyState,
|
|
2425
|
+
or as Field,
|
|
2426
|
+
sr as Input,
|
|
2427
|
+
cr as InputGroup,
|
|
2428
|
+
xr as LinkButton,
|
|
2429
|
+
lr as Menu,
|
|
2430
|
+
ir as ScrollArea,
|
|
2431
|
+
kr as Select,
|
|
2432
|
+
ur as SideNav,
|
|
2433
|
+
ar as Spinner,
|
|
2434
|
+
dr as StatusIcon,
|
|
2435
|
+
gr as Table,
|
|
2436
|
+
hr as Tabs,
|
|
2437
|
+
pr as Textarea,
|
|
2438
|
+
wr as ThemeProvider,
|
|
2439
|
+
yr as Tooltip,
|
|
2440
|
+
fr as colors,
|
|
2441
|
+
Pt as highContrastShadows,
|
|
2442
|
+
Bt as highContrastTheme,
|
|
2443
|
+
Dt as lightShadows,
|
|
2444
|
+
Lt as lightTheme,
|
|
2445
|
+
mr as radii,
|
|
2446
|
+
br as shadows,
|
|
2447
|
+
vr as spacing,
|
|
2448
|
+
$r as typography
|
|
2363
2449
|
};
|
|
2364
2450
|
//# sourceMappingURL=index.js.map
|