@duro-app/ui 0.6.0 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/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 +17 -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 +47 -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 +614 -534
- 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,16 +220,16 @@ 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
234
|
const U = {
|
|
235
235
|
base: {
|
|
@@ -306,20 +306,20 @@ const U = {
|
|
|
306
306
|
kkrTdU: "x1h6gzvc",
|
|
307
307
|
$$css: !0
|
|
308
308
|
}
|
|
309
|
-
},
|
|
309
|
+
}, Ue = {
|
|
310
310
|
default: U.sizeDefault,
|
|
311
311
|
small: U.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, U.base, Ue[t], U[e], r && U.fullWidth, n && U.disabled), children: l });
|
|
323
323
|
}
|
|
324
324
|
const J = {
|
|
325
325
|
base: {
|
|
@@ -378,20 +378,20 @@ const J = {
|
|
|
378
378
|
k1K539: "x2mrtcw",
|
|
379
379
|
$$css: !0
|
|
380
380
|
}
|
|
381
|
-
},
|
|
381
|
+
}, Je = {
|
|
382
382
|
default: J.sizeDefault,
|
|
383
383
|
compact: J.sizeCompact,
|
|
384
384
|
full: J.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, J.base, J[e], Je[t]), children: [
|
|
394
|
+
r && /* @__PURE__ */ s("div", { ...k(u.div, J.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,103 @@ 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
627
|
const _ = {
|
|
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
|
+
};
|
|
677
|
+
function tt({
|
|
678
|
+
children: e
|
|
679
|
+
}) {
|
|
680
|
+
const t = ie(() => ({
|
|
681
|
+
inGroup: !0
|
|
682
|
+
}), []);
|
|
683
|
+
return /* @__PURE__ */ s(Me.Provider, { value: t, children: /* @__PURE__ */ s("div", { ...k(u.div, _.wrapper), children: e }) });
|
|
684
|
+
}
|
|
685
|
+
function rt({
|
|
686
|
+
position: e = "end",
|
|
687
|
+
onClick: t,
|
|
688
|
+
children: r
|
|
689
|
+
}) {
|
|
690
|
+
const n = e === "start" ? _.addonStart : _.addonEnd, o = [_.addon, n, t && _.addonClickable];
|
|
691
|
+
return t ? /* @__PURE__ */ s("button", { type: "button", onClick: t, ...k(u.button, o), children: r }) : /* @__PURE__ */ s("span", { ...k(u.span, o), children: r });
|
|
692
|
+
}
|
|
693
|
+
const cr = {
|
|
694
|
+
Root: tt,
|
|
695
|
+
Addon: rt
|
|
696
|
+
}, F = {
|
|
618
697
|
base: {
|
|
619
698
|
k1xSpc: "x3nfvp2",
|
|
620
699
|
kGNEyG: "x6s0dn4",
|
|
@@ -664,20 +743,20 @@ const _ = {
|
|
|
664
743
|
kzqmXN: "xh8yej3",
|
|
665
744
|
$$css: !0
|
|
666
745
|
}
|
|
667
|
-
},
|
|
668
|
-
default:
|
|
669
|
-
small:
|
|
746
|
+
}, nt = {
|
|
747
|
+
default: F.sizeDefault,
|
|
748
|
+
small: F.sizeSmall
|
|
670
749
|
};
|
|
671
|
-
function
|
|
750
|
+
function xr({
|
|
672
751
|
href: e,
|
|
673
752
|
variant: t = "primary",
|
|
674
753
|
size: r = "default",
|
|
675
754
|
fullWidth: n = !1,
|
|
676
755
|
target: o,
|
|
677
|
-
rel:
|
|
678
|
-
children:
|
|
756
|
+
rel: c,
|
|
757
|
+
children: l
|
|
679
758
|
}) {
|
|
680
|
-
return /* @__PURE__ */
|
|
759
|
+
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
760
|
}
|
|
682
761
|
const D = {
|
|
683
762
|
root: {
|
|
@@ -763,103 +842,103 @@ const D = {
|
|
|
763
842
|
kMwMTN: "xg6mlj0 x1c35pte",
|
|
764
843
|
$$css: !0
|
|
765
844
|
}
|
|
766
|
-
},
|
|
767
|
-
function
|
|
768
|
-
const e =
|
|
845
|
+
}, je = C(null);
|
|
846
|
+
function re() {
|
|
847
|
+
const e = H(je);
|
|
769
848
|
if (!e) throw new Error("Menu compound components must be used within Menu.Root");
|
|
770
849
|
return e;
|
|
771
850
|
}
|
|
772
|
-
function
|
|
773
|
-
const [e, t] = T(!1), [r, n] = T(null), o =
|
|
774
|
-
t(!1), n(null), i.current = !1,
|
|
851
|
+
function ot() {
|
|
852
|
+
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(() => {
|
|
853
|
+
t(!1), n(null), i.current = !1, l.current?.focus();
|
|
775
854
|
}, []), g = I(() => {
|
|
776
|
-
t((
|
|
855
|
+
t((p) => (p ? (n(null), i.current = !1) : i.current = !0, !p));
|
|
777
856
|
}, []);
|
|
778
857
|
W(() => {
|
|
779
858
|
if (e && i.current) {
|
|
780
859
|
i.current = !1;
|
|
781
|
-
const
|
|
782
|
-
|
|
860
|
+
const p = d.current;
|
|
861
|
+
p.length > 0 && n(p[0]);
|
|
783
862
|
}
|
|
784
863
|
}, [e]);
|
|
785
|
-
const v = I((
|
|
786
|
-
|
|
787
|
-
const
|
|
864
|
+
const v = I((p, m) => {
|
|
865
|
+
x.current.set(p, m);
|
|
866
|
+
const f = x.current, $ = [...f.keys()];
|
|
788
867
|
return $.sort((h, b) => {
|
|
789
|
-
const L =
|
|
868
|
+
const L = f.get(h), q = f.get(b);
|
|
790
869
|
return !L || !q ? 0 : L.compareDocumentPosition(q) & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : 1;
|
|
791
870
|
}), d.current = $, () => {
|
|
792
|
-
|
|
871
|
+
x.current.delete(p), d.current = d.current.filter((h) => h !== p);
|
|
793
872
|
};
|
|
794
873
|
}, []);
|
|
795
874
|
return W(() => {
|
|
796
|
-
const
|
|
797
|
-
if (!
|
|
798
|
-
function m(
|
|
875
|
+
const p = c.current;
|
|
876
|
+
if (!p || !e) return;
|
|
877
|
+
function m(f) {
|
|
799
878
|
const $ = d.current;
|
|
800
879
|
if ($.length !== 0)
|
|
801
|
-
switch (
|
|
880
|
+
switch (f.key) {
|
|
802
881
|
case "ArrowDown": {
|
|
803
|
-
|
|
882
|
+
f.preventDefault(), n((h) => {
|
|
804
883
|
const b = h ? $.indexOf(h) : -1;
|
|
805
884
|
return $[(b + 1) % $.length];
|
|
806
885
|
});
|
|
807
886
|
break;
|
|
808
887
|
}
|
|
809
888
|
case "ArrowUp": {
|
|
810
|
-
|
|
889
|
+
f.preventDefault(), n((h) => {
|
|
811
890
|
const b = h ? $.indexOf(h) : 0;
|
|
812
891
|
return $[(b - 1 + $.length) % $.length];
|
|
813
892
|
});
|
|
814
893
|
break;
|
|
815
894
|
}
|
|
816
895
|
case "Home": {
|
|
817
|
-
|
|
896
|
+
f.preventDefault(), n($[0]);
|
|
818
897
|
break;
|
|
819
898
|
}
|
|
820
899
|
case "End": {
|
|
821
|
-
|
|
900
|
+
f.preventDefault(), n($[$.length - 1]);
|
|
822
901
|
break;
|
|
823
902
|
}
|
|
824
903
|
case "Enter":
|
|
825
904
|
case " ": {
|
|
826
|
-
|
|
827
|
-
const h =
|
|
905
|
+
f.preventDefault();
|
|
906
|
+
const h = x.current;
|
|
828
907
|
n((b) => (b && h.get(b)?.click(), b));
|
|
829
908
|
break;
|
|
830
909
|
}
|
|
831
910
|
case "Escape":
|
|
832
911
|
case "Tab": {
|
|
833
|
-
|
|
912
|
+
a();
|
|
834
913
|
break;
|
|
835
914
|
}
|
|
836
915
|
}
|
|
837
916
|
}
|
|
838
|
-
return
|
|
839
|
-
}, [e,
|
|
917
|
+
return p.addEventListener("keydown", m), () => p.removeEventListener("keydown", m);
|
|
918
|
+
}, [e, a]), {
|
|
840
919
|
ctx: {
|
|
841
920
|
open: e,
|
|
842
921
|
toggle: g,
|
|
843
|
-
close:
|
|
922
|
+
close: a,
|
|
844
923
|
menuId: o,
|
|
845
924
|
highlightedId: r,
|
|
846
925
|
setHighlightedId: n,
|
|
847
926
|
registerItem: v,
|
|
848
|
-
triggerRef:
|
|
927
|
+
triggerRef: l
|
|
849
928
|
},
|
|
850
|
-
rootRef:
|
|
929
|
+
rootRef: c
|
|
851
930
|
};
|
|
852
931
|
}
|
|
853
|
-
function
|
|
932
|
+
function st({
|
|
854
933
|
children: e
|
|
855
934
|
}) {
|
|
856
935
|
const {
|
|
857
936
|
ctx: t,
|
|
858
937
|
rootRef: r
|
|
859
|
-
} =
|
|
860
|
-
return /* @__PURE__ */
|
|
938
|
+
} = ot();
|
|
939
|
+
return /* @__PURE__ */ s(je.Provider, { value: t, children: /* @__PURE__ */ s("div", { ref: r, ...k(u.div, D.root), children: e }) });
|
|
861
940
|
}
|
|
862
|
-
function
|
|
941
|
+
function ct({
|
|
863
942
|
children: e
|
|
864
943
|
}) {
|
|
865
944
|
const {
|
|
@@ -867,12 +946,12 @@ function tt({
|
|
|
867
946
|
toggle: r,
|
|
868
947
|
menuId: n,
|
|
869
948
|
triggerRef: o
|
|
870
|
-
} =
|
|
949
|
+
} = re(), c = y(null);
|
|
871
950
|
return W(() => {
|
|
872
|
-
o.current =
|
|
873
|
-
}), /* @__PURE__ */
|
|
951
|
+
o.current = c.current;
|
|
952
|
+
}), /* @__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
953
|
}
|
|
875
|
-
function
|
|
954
|
+
function xt({
|
|
876
955
|
children: e,
|
|
877
956
|
align: t = "start"
|
|
878
957
|
}) {
|
|
@@ -880,14 +959,14 @@ function rt({
|
|
|
880
959
|
open: r,
|
|
881
960
|
close: n,
|
|
882
961
|
menuId: o,
|
|
883
|
-
highlightedId:
|
|
884
|
-
} =
|
|
885
|
-
return r ? /* @__PURE__ */
|
|
886
|
-
/* @__PURE__ */
|
|
887
|
-
/* @__PURE__ */
|
|
962
|
+
highlightedId: c
|
|
963
|
+
} = re();
|
|
964
|
+
return r ? /* @__PURE__ */ G(X, { children: [
|
|
965
|
+
/* @__PURE__ */ s("div", { ...k(u.div, D.backdrop), onClick: n }),
|
|
966
|
+
/* @__PURE__ */ s("div", { id: o, role: "menu", "aria-activedescendant": c ?? void 0, ...k(u.div, D.popup, t === "end" && D.popupEnd), children: e })
|
|
888
967
|
] }) : null;
|
|
889
968
|
}
|
|
890
|
-
function
|
|
969
|
+
function lt({
|
|
891
970
|
onClick: e,
|
|
892
971
|
children: t
|
|
893
972
|
}) {
|
|
@@ -895,17 +974,17 @@ function nt({
|
|
|
895
974
|
close: r,
|
|
896
975
|
highlightedId: n,
|
|
897
976
|
setHighlightedId: o,
|
|
898
|
-
registerItem:
|
|
899
|
-
} =
|
|
977
|
+
registerItem: c
|
|
978
|
+
} = re(), l = Y(), x = y(null), d = n === l;
|
|
900
979
|
return W(() => {
|
|
901
|
-
const
|
|
902
|
-
if (
|
|
903
|
-
return
|
|
904
|
-
}, [
|
|
980
|
+
const a = x.current;
|
|
981
|
+
if (a)
|
|
982
|
+
return c(l, a);
|
|
983
|
+
}, [l, c]), /* @__PURE__ */ s("div", { ref: x, id: l, role: "menuitem", onClick: () => {
|
|
905
984
|
e?.(), r();
|
|
906
|
-
}, onPointerEnter: () => o(
|
|
985
|
+
}, onPointerEnter: () => o(l), ...k(u.div, D.item, d && D.itemHighlighted), children: t });
|
|
907
986
|
}
|
|
908
|
-
function
|
|
987
|
+
function it({
|
|
909
988
|
href: e,
|
|
910
989
|
children: t
|
|
911
990
|
}) {
|
|
@@ -913,20 +992,20 @@ function ot({
|
|
|
913
992
|
close: r,
|
|
914
993
|
highlightedId: n,
|
|
915
994
|
setHighlightedId: o,
|
|
916
|
-
registerItem:
|
|
917
|
-
} =
|
|
995
|
+
registerItem: c
|
|
996
|
+
} = re(), l = Y(), x = y(null), d = n === l;
|
|
918
997
|
return W(() => {
|
|
919
|
-
const i =
|
|
998
|
+
const i = x.current;
|
|
920
999
|
if (i)
|
|
921
|
-
return
|
|
922
|
-
}, [
|
|
923
|
-
}
|
|
924
|
-
const
|
|
925
|
-
Root:
|
|
926
|
-
Trigger:
|
|
927
|
-
Popup:
|
|
928
|
-
Item:
|
|
929
|
-
LinkItem:
|
|
1000
|
+
return c(l, i);
|
|
1001
|
+
}, [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 });
|
|
1002
|
+
}
|
|
1003
|
+
const lr = {
|
|
1004
|
+
Root: st,
|
|
1005
|
+
Trigger: ct,
|
|
1006
|
+
Popup: xt,
|
|
1007
|
+
Item: lt,
|
|
1008
|
+
LinkItem: it
|
|
930
1009
|
}, E = {
|
|
931
1010
|
root: {
|
|
932
1011
|
kVAEAm: "x1n2onr6",
|
|
@@ -1018,24 +1097,24 @@ const rr = {
|
|
|
1018
1097
|
"--x-width": ((r) => typeof r == "number" ? r + "px" : r ?? void 0)(e),
|
|
1019
1098
|
"--x-transform": t ?? void 0
|
|
1020
1099
|
}]
|
|
1021
|
-
},
|
|
1022
|
-
function
|
|
1023
|
-
const e =
|
|
1100
|
+
}, ze = C(null);
|
|
1101
|
+
function ne() {
|
|
1102
|
+
const e = H(ze);
|
|
1024
1103
|
if (!e) throw new Error("ScrollArea compound components must be used within ScrollArea.Root");
|
|
1025
1104
|
return e;
|
|
1026
1105
|
}
|
|
1027
|
-
function
|
|
1028
|
-
const e = y(null), t = y(null), [r, n] = T(0), [o,
|
|
1106
|
+
function kt() {
|
|
1107
|
+
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
1108
|
const h = e.current;
|
|
1030
|
-
h && (n(h.scrollTop),
|
|
1109
|
+
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
1110
|
}, []);
|
|
1032
1111
|
return W(() => {
|
|
1033
1112
|
const h = e.current;
|
|
1034
1113
|
if (!h) return;
|
|
1035
1114
|
const b = new ResizeObserver(() => {
|
|
1036
|
-
|
|
1115
|
+
x(h.scrollHeight), i(h.scrollWidth), g(h.clientHeight), w(h.clientWidth);
|
|
1037
1116
|
});
|
|
1038
|
-
return b.observe(h),
|
|
1117
|
+
return b.observe(h), x(h.scrollHeight), i(h.scrollWidth), g(h.clientHeight), w(h.clientWidth), () => b.disconnect();
|
|
1039
1118
|
}, []), W(() => {
|
|
1040
1119
|
const h = e.current;
|
|
1041
1120
|
if (h)
|
|
@@ -1047,37 +1126,37 @@ function st() {
|
|
|
1047
1126
|
contentRef: t,
|
|
1048
1127
|
scrollTop: r,
|
|
1049
1128
|
scrollLeft: o,
|
|
1050
|
-
scrollHeight:
|
|
1129
|
+
scrollHeight: l,
|
|
1051
1130
|
scrollWidth: d,
|
|
1052
|
-
clientHeight:
|
|
1131
|
+
clientHeight: a,
|
|
1053
1132
|
clientWidth: v,
|
|
1054
|
-
scrolling:
|
|
1133
|
+
scrolling: p
|
|
1055
1134
|
};
|
|
1056
1135
|
}
|
|
1057
|
-
function
|
|
1136
|
+
function ut({
|
|
1058
1137
|
children: e
|
|
1059
1138
|
}) {
|
|
1060
|
-
const t =
|
|
1061
|
-
return /* @__PURE__ */
|
|
1139
|
+
const t = kt();
|
|
1140
|
+
return /* @__PURE__ */ s(ze.Provider, { value: t, children: /* @__PURE__ */ s("div", { ...k(u.div, E.root), children: e }) });
|
|
1062
1141
|
}
|
|
1063
|
-
function
|
|
1142
|
+
function at({
|
|
1064
1143
|
children: e,
|
|
1065
1144
|
maxHeight: t
|
|
1066
1145
|
}) {
|
|
1067
1146
|
const {
|
|
1068
1147
|
viewportRef: r
|
|
1069
|
-
} =
|
|
1070
|
-
return /* @__PURE__ */
|
|
1148
|
+
} = ne();
|
|
1149
|
+
return /* @__PURE__ */ s("div", { ref: r, ...k(u.div, E.viewport, t != null && E.viewportMaxHeight(t)), children: e });
|
|
1071
1150
|
}
|
|
1072
|
-
function
|
|
1151
|
+
function dt({
|
|
1073
1152
|
children: e
|
|
1074
1153
|
}) {
|
|
1075
1154
|
const {
|
|
1076
1155
|
contentRef: t
|
|
1077
|
-
} =
|
|
1078
|
-
return /* @__PURE__ */
|
|
1156
|
+
} = ne();
|
|
1157
|
+
return /* @__PURE__ */ s("div", { ref: t, ...k(u.div, E.content), children: e });
|
|
1079
1158
|
}
|
|
1080
|
-
function
|
|
1159
|
+
function gt({
|
|
1081
1160
|
orientation: e = "vertical",
|
|
1082
1161
|
children: t
|
|
1083
1162
|
}) {
|
|
@@ -1085,12 +1164,12 @@ function it({
|
|
|
1085
1164
|
scrolling: r,
|
|
1086
1165
|
scrollHeight: n,
|
|
1087
1166
|
scrollWidth: o,
|
|
1088
|
-
clientHeight:
|
|
1089
|
-
clientWidth:
|
|
1090
|
-
} =
|
|
1091
|
-
return (e === "vertical" ? n >
|
|
1167
|
+
clientHeight: c,
|
|
1168
|
+
clientWidth: l
|
|
1169
|
+
} = ne();
|
|
1170
|
+
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
1171
|
}
|
|
1093
|
-
function
|
|
1172
|
+
function ht({
|
|
1094
1173
|
orientation: e = "vertical"
|
|
1095
1174
|
}) {
|
|
1096
1175
|
const {
|
|
@@ -1098,29 +1177,29 @@ function ut({
|
|
|
1098
1177
|
scrollTop: r,
|
|
1099
1178
|
scrollLeft: n,
|
|
1100
1179
|
scrollHeight: o,
|
|
1101
|
-
scrollWidth:
|
|
1102
|
-
clientHeight:
|
|
1103
|
-
clientWidth:
|
|
1104
|
-
} =
|
|
1105
|
-
j.preventDefault(), d.current = !0, i.current = g ? j.clientY : j.clientX,
|
|
1180
|
+
scrollWidth: c,
|
|
1181
|
+
clientHeight: l,
|
|
1182
|
+
clientWidth: x
|
|
1183
|
+
} = 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) => {
|
|
1184
|
+
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
1185
|
}, [g, t]), L = I((j) => {
|
|
1107
1186
|
if (!d.current) return;
|
|
1108
1187
|
const M = t.current;
|
|
1109
1188
|
if (!M) return;
|
|
1110
|
-
const z = (g ? j.clientY : j.clientX) - i.current,
|
|
1111
|
-
g ? M.scrollTop =
|
|
1112
|
-
}, [g, w,
|
|
1189
|
+
const z = (g ? j.clientY : j.clientX) - i.current, N = w / (p - m), S = z * N;
|
|
1190
|
+
g ? M.scrollTop = a.current + S : M.scrollLeft = a.current + S;
|
|
1191
|
+
}, [g, w, p, m, t]), q = I(() => {
|
|
1113
1192
|
d.current = !1;
|
|
1114
1193
|
}, []);
|
|
1115
|
-
return /* @__PURE__ */
|
|
1116
|
-
}
|
|
1117
|
-
const
|
|
1118
|
-
Root:
|
|
1119
|
-
Viewport:
|
|
1120
|
-
Content:
|
|
1121
|
-
Scrollbar:
|
|
1122
|
-
Thumb:
|
|
1123
|
-
},
|
|
1194
|
+
return /* @__PURE__ */ s("div", { onPointerDown: b, onPointerMove: L, onPointerUp: q, ...k(u.div, E.thumb, h) });
|
|
1195
|
+
}
|
|
1196
|
+
const ir = {
|
|
1197
|
+
Root: ut,
|
|
1198
|
+
Viewport: at,
|
|
1199
|
+
Content: dt,
|
|
1200
|
+
Scrollbar: gt,
|
|
1201
|
+
Thumb: ht
|
|
1202
|
+
}, O = {
|
|
1124
1203
|
root: {
|
|
1125
1204
|
kVAEAm: "x1n2onr6",
|
|
1126
1205
|
k1xSpc: "x3nfvp2",
|
|
@@ -1218,40 +1297,40 @@ const nr = {
|
|
|
1218
1297
|
k1xSpc: "x1s85apg",
|
|
1219
1298
|
$$css: !0
|
|
1220
1299
|
}
|
|
1221
|
-
},
|
|
1222
|
-
function
|
|
1223
|
-
const e =
|
|
1300
|
+
}, qe = C(null);
|
|
1301
|
+
function oe() {
|
|
1302
|
+
const e = H(qe);
|
|
1224
1303
|
if (!e) throw new Error("Select compound components must be used within Select.Root");
|
|
1225
1304
|
return e;
|
|
1226
1305
|
}
|
|
1227
|
-
function
|
|
1228
|
-
const [n, o] = T(t),
|
|
1229
|
-
e === void 0 && o(
|
|
1306
|
+
function ue(e, t, r) {
|
|
1307
|
+
const [n, o] = T(t), c = e !== void 0 ? e : n, l = I((x) => {
|
|
1308
|
+
e === void 0 && o(x), r?.(x);
|
|
1230
1309
|
}, [e, r]);
|
|
1231
|
-
return [
|
|
1310
|
+
return [c, l];
|
|
1232
1311
|
}
|
|
1233
|
-
function
|
|
1312
|
+
function pt({
|
|
1234
1313
|
defaultValue: e,
|
|
1235
1314
|
value: t,
|
|
1236
1315
|
onValueChange: r
|
|
1237
1316
|
}) {
|
|
1238
|
-
const [n, o] =
|
|
1239
|
-
|
|
1317
|
+
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(() => {
|
|
1318
|
+
l(!1), a(null), w.current?.focus();
|
|
1240
1319
|
}, []), $ = I(() => {
|
|
1241
|
-
|
|
1320
|
+
l((q) => {
|
|
1242
1321
|
if (q)
|
|
1243
|
-
|
|
1322
|
+
a(null);
|
|
1244
1323
|
else {
|
|
1245
|
-
const j =
|
|
1324
|
+
const j = p.current, M = m.current;
|
|
1246
1325
|
let z = null;
|
|
1247
|
-
for (const
|
|
1248
|
-
const S = j.get(
|
|
1326
|
+
for (const N of M) {
|
|
1327
|
+
const S = j.get(N);
|
|
1249
1328
|
if (S && S.value === n) {
|
|
1250
|
-
z =
|
|
1329
|
+
z = N;
|
|
1251
1330
|
break;
|
|
1252
1331
|
}
|
|
1253
1332
|
}
|
|
1254
|
-
|
|
1333
|
+
a(z ?? (M.length > 0 ? M[0] : null));
|
|
1255
1334
|
}
|
|
1256
1335
|
return !q;
|
|
1257
1336
|
});
|
|
@@ -1261,53 +1340,53 @@ function kt({
|
|
|
1261
1340
|
[q]: j
|
|
1262
1341
|
});
|
|
1263
1342
|
}, []), b = I((q, j, M) => {
|
|
1264
|
-
|
|
1343
|
+
p.current.set(q, {
|
|
1265
1344
|
value: j,
|
|
1266
1345
|
element: M
|
|
1267
1346
|
});
|
|
1268
|
-
const z =
|
|
1269
|
-
return
|
|
1270
|
-
const
|
|
1271
|
-
return !
|
|
1272
|
-
}), m.current =
|
|
1273
|
-
|
|
1347
|
+
const z = p.current, N = [...z.keys()];
|
|
1348
|
+
return N.sort((S, B) => {
|
|
1349
|
+
const he = z.get(S)?.element, pe = z.get(B)?.element;
|
|
1350
|
+
return !he || !pe ? 0 : he.compareDocumentPosition(pe) & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : 1;
|
|
1351
|
+
}), m.current = N, () => {
|
|
1352
|
+
p.current.delete(q), m.current = m.current.filter((S) => S !== q);
|
|
1274
1353
|
};
|
|
1275
1354
|
}, []);
|
|
1276
1355
|
return W(() => {
|
|
1277
1356
|
const q = v.current;
|
|
1278
|
-
if (!q || !
|
|
1357
|
+
if (!q || !c) return;
|
|
1279
1358
|
function j(M) {
|
|
1280
|
-
const z = m.current,
|
|
1359
|
+
const z = m.current, N = p.current;
|
|
1281
1360
|
if (z.length !== 0)
|
|
1282
1361
|
switch (M.key) {
|
|
1283
1362
|
case "ArrowDown": {
|
|
1284
|
-
M.preventDefault(),
|
|
1363
|
+
M.preventDefault(), a((S) => {
|
|
1285
1364
|
const B = S ? z.indexOf(S) : -1;
|
|
1286
1365
|
return z[(B + 1) % z.length];
|
|
1287
1366
|
});
|
|
1288
1367
|
break;
|
|
1289
1368
|
}
|
|
1290
1369
|
case "ArrowUp": {
|
|
1291
|
-
M.preventDefault(),
|
|
1370
|
+
M.preventDefault(), a((S) => {
|
|
1292
1371
|
const B = S ? z.indexOf(S) : 0;
|
|
1293
1372
|
return z[(B - 1 + z.length) % z.length];
|
|
1294
1373
|
});
|
|
1295
1374
|
break;
|
|
1296
1375
|
}
|
|
1297
1376
|
case "Home": {
|
|
1298
|
-
M.preventDefault(),
|
|
1377
|
+
M.preventDefault(), a(z[0]);
|
|
1299
1378
|
break;
|
|
1300
1379
|
}
|
|
1301
1380
|
case "End": {
|
|
1302
|
-
M.preventDefault(),
|
|
1381
|
+
M.preventDefault(), a(z[z.length - 1]);
|
|
1303
1382
|
break;
|
|
1304
1383
|
}
|
|
1305
1384
|
case "Enter":
|
|
1306
1385
|
case " ": {
|
|
1307
|
-
M.preventDefault(),
|
|
1386
|
+
M.preventDefault(), a((S) => {
|
|
1308
1387
|
if (S) {
|
|
1309
|
-
const B =
|
|
1310
|
-
B && (o(B.value),
|
|
1388
|
+
const B = N.get(S);
|
|
1389
|
+
B && (o(B.value), f());
|
|
1311
1390
|
}
|
|
1312
1391
|
return S;
|
|
1313
1392
|
});
|
|
@@ -1315,31 +1394,31 @@ function kt({
|
|
|
1315
1394
|
}
|
|
1316
1395
|
case "Escape":
|
|
1317
1396
|
case "Tab": {
|
|
1318
|
-
|
|
1397
|
+
f();
|
|
1319
1398
|
break;
|
|
1320
1399
|
}
|
|
1321
1400
|
}
|
|
1322
1401
|
}
|
|
1323
1402
|
return q.addEventListener("keydown", j), () => q.removeEventListener("keydown", j);
|
|
1324
|
-
}, [
|
|
1325
|
-
ctx:
|
|
1326
|
-
open:
|
|
1403
|
+
}, [c, f, o]), {
|
|
1404
|
+
ctx: ie(() => ({
|
|
1405
|
+
open: c,
|
|
1327
1406
|
toggle: $,
|
|
1328
|
-
close:
|
|
1407
|
+
close: f,
|
|
1329
1408
|
value: n,
|
|
1330
1409
|
setValue: o,
|
|
1331
|
-
labels:
|
|
1410
|
+
labels: x,
|
|
1332
1411
|
registerLabel: h,
|
|
1333
1412
|
listboxId: g,
|
|
1334
1413
|
highlightedId: i,
|
|
1335
|
-
setHighlightedId:
|
|
1414
|
+
setHighlightedId: a,
|
|
1336
1415
|
registerItem: b,
|
|
1337
1416
|
triggerRef: w
|
|
1338
|
-
}), [
|
|
1417
|
+
}), [c, $, f, n, o, x, h, g, i, a, b]),
|
|
1339
1418
|
rootRef: v
|
|
1340
1419
|
};
|
|
1341
1420
|
}
|
|
1342
|
-
function
|
|
1421
|
+
function ft({
|
|
1343
1422
|
name: e,
|
|
1344
1423
|
defaultValue: t,
|
|
1345
1424
|
value: r,
|
|
@@ -1347,19 +1426,19 @@ function at({
|
|
|
1347
1426
|
children: o
|
|
1348
1427
|
}) {
|
|
1349
1428
|
const {
|
|
1350
|
-
ctx:
|
|
1351
|
-
rootRef:
|
|
1352
|
-
} =
|
|
1429
|
+
ctx: c,
|
|
1430
|
+
rootRef: l
|
|
1431
|
+
} = pt({
|
|
1353
1432
|
defaultValue: t,
|
|
1354
1433
|
value: r,
|
|
1355
1434
|
onValueChange: n
|
|
1356
1435
|
});
|
|
1357
|
-
return /* @__PURE__ */
|
|
1358
|
-
e && /* @__PURE__ */
|
|
1436
|
+
return /* @__PURE__ */ s(qe.Provider, { value: c, children: /* @__PURE__ */ G("div", { ref: l, ...k(u.div, O.root), children: [
|
|
1437
|
+
e && /* @__PURE__ */ s("input", { type: "hidden", name: e, value: c.value ?? "", dir: "auto", ...k(u.input) }),
|
|
1359
1438
|
o
|
|
1360
1439
|
] }) });
|
|
1361
1440
|
}
|
|
1362
|
-
function
|
|
1441
|
+
function vt({
|
|
1363
1442
|
children: e
|
|
1364
1443
|
}) {
|
|
1365
1444
|
const {
|
|
@@ -1367,40 +1446,40 @@ function dt({
|
|
|
1367
1446
|
toggle: r,
|
|
1368
1447
|
listboxId: n,
|
|
1369
1448
|
highlightedId: o,
|
|
1370
|
-
triggerRef:
|
|
1371
|
-
} =
|
|
1449
|
+
triggerRef: c
|
|
1450
|
+
} = oe(), l = y(null);
|
|
1372
1451
|
return W(() => {
|
|
1373
|
-
|
|
1374
|
-
}), /* @__PURE__ */
|
|
1452
|
+
c.current = l.current;
|
|
1453
|
+
}), /* @__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
1454
|
}
|
|
1376
|
-
function
|
|
1455
|
+
function mt({
|
|
1377
1456
|
placeholder: e
|
|
1378
1457
|
}) {
|
|
1379
1458
|
const {
|
|
1380
1459
|
value: t,
|
|
1381
1460
|
labels: r
|
|
1382
|
-
} =
|
|
1383
|
-
return /* @__PURE__ */
|
|
1461
|
+
} = oe(), n = t ? r[t] ?? t : null;
|
|
1462
|
+
return /* @__PURE__ */ s("span", { ...k(u.span, n ? O.value : O.placeholder), children: n ?? e });
|
|
1384
1463
|
}
|
|
1385
|
-
function
|
|
1464
|
+
function $t({
|
|
1386
1465
|
children: e
|
|
1387
1466
|
}) {
|
|
1388
|
-
return /* @__PURE__ */
|
|
1467
|
+
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
1468
|
}
|
|
1390
|
-
function
|
|
1469
|
+
function bt({
|
|
1391
1470
|
children: e
|
|
1392
1471
|
}) {
|
|
1393
1472
|
const {
|
|
1394
1473
|
open: t,
|
|
1395
1474
|
close: r,
|
|
1396
1475
|
listboxId: n
|
|
1397
|
-
} =
|
|
1398
|
-
return /* @__PURE__ */
|
|
1399
|
-
t && /* @__PURE__ */
|
|
1400
|
-
/* @__PURE__ */
|
|
1476
|
+
} = oe();
|
|
1477
|
+
return /* @__PURE__ */ G(X, { children: [
|
|
1478
|
+
t && /* @__PURE__ */ s("div", { ...k(u.div, O.backdrop), onClick: r }),
|
|
1479
|
+
/* @__PURE__ */ s("div", { id: n, role: "listbox", "aria-hidden": !t, ...k(u.div, O.popup, !t && O.hidden), children: e })
|
|
1401
1480
|
] });
|
|
1402
1481
|
}
|
|
1403
|
-
function
|
|
1482
|
+
function wt({
|
|
1404
1483
|
value: e,
|
|
1405
1484
|
children: t
|
|
1406
1485
|
}) {
|
|
@@ -1408,37 +1487,37 @@ function pt({
|
|
|
1408
1487
|
value: r,
|
|
1409
1488
|
setValue: n,
|
|
1410
1489
|
close: o,
|
|
1411
|
-
registerLabel:
|
|
1412
|
-
highlightedId:
|
|
1413
|
-
setHighlightedId:
|
|
1490
|
+
registerLabel: c,
|
|
1491
|
+
highlightedId: l,
|
|
1492
|
+
setHighlightedId: x,
|
|
1414
1493
|
registerItem: d
|
|
1415
|
-
} =
|
|
1494
|
+
} = oe(), i = Y(), a = y(null), g = r === e, v = l === i;
|
|
1416
1495
|
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__ */
|
|
1496
|
+
const p = a.current;
|
|
1497
|
+
if (!p) return;
|
|
1498
|
+
const m = p.textContent;
|
|
1499
|
+
m && c(e, m);
|
|
1500
|
+
}, [e, c]), W(() => {
|
|
1501
|
+
const p = a.current;
|
|
1502
|
+
if (p)
|
|
1503
|
+
return d(i, e, p);
|
|
1504
|
+
}, [i, e, d]), /* @__PURE__ */ s("div", { ref: a, id: i, role: "option", "aria-selected": g, onClick: () => {
|
|
1426
1505
|
n(e), o();
|
|
1427
|
-
}, onPointerEnter: () =>
|
|
1506
|
+
}, onPointerEnter: () => x(i), ...k(u.div, O.item, g && O.itemSelected, v && O.itemHighlighted), children: t });
|
|
1428
1507
|
}
|
|
1429
|
-
function
|
|
1508
|
+
function yt({
|
|
1430
1509
|
children: e
|
|
1431
1510
|
}) {
|
|
1432
|
-
return /* @__PURE__ */
|
|
1511
|
+
return /* @__PURE__ */ s("span", { ...k(u.span), children: e });
|
|
1433
1512
|
}
|
|
1434
|
-
const
|
|
1435
|
-
Root:
|
|
1436
|
-
Trigger:
|
|
1437
|
-
Value:
|
|
1438
|
-
Icon:
|
|
1439
|
-
Popup:
|
|
1440
|
-
Item:
|
|
1441
|
-
ItemText:
|
|
1513
|
+
const kr = {
|
|
1514
|
+
Root: ft,
|
|
1515
|
+
Trigger: vt,
|
|
1516
|
+
Value: mt,
|
|
1517
|
+
Icon: $t,
|
|
1518
|
+
Popup: bt,
|
|
1519
|
+
Item: wt,
|
|
1520
|
+
ItemText: yt
|
|
1442
1521
|
}, P = {
|
|
1443
1522
|
root: {
|
|
1444
1523
|
k1xSpc: "x78zum5",
|
|
@@ -1518,68 +1597,68 @@ const or = {
|
|
|
1518
1597
|
k63SB2: "x9n8r49",
|
|
1519
1598
|
$$css: !0
|
|
1520
1599
|
}
|
|
1521
|
-
},
|
|
1522
|
-
function
|
|
1523
|
-
const e =
|
|
1600
|
+
}, Se = C(null);
|
|
1601
|
+
function Ie() {
|
|
1602
|
+
const e = H(Se);
|
|
1524
1603
|
if (!e) throw new Error("SideNav compound components must be used within SideNav.Root");
|
|
1525
1604
|
return e;
|
|
1526
1605
|
}
|
|
1527
|
-
function
|
|
1606
|
+
function Mt({
|
|
1528
1607
|
children: e,
|
|
1529
1608
|
value: t,
|
|
1530
1609
|
defaultValue: r,
|
|
1531
1610
|
onValueChange: n
|
|
1532
1611
|
}) {
|
|
1533
|
-
const [o,
|
|
1612
|
+
const [o, c] = ue(t, r ?? null, n ? (g) => {
|
|
1534
1613
|
g !== null && n(g);
|
|
1535
|
-
} : void 0), [
|
|
1536
|
-
|
|
1614
|
+
} : void 0), [l, x] = T(/* @__PURE__ */ new Set()), d = y([]), i = I((g) => {
|
|
1615
|
+
x((v) => {
|
|
1537
1616
|
const w = new Set(v);
|
|
1538
1617
|
return w.has(g) ? w.delete(g) : w.add(g), w;
|
|
1539
1618
|
});
|
|
1540
|
-
}, []),
|
|
1619
|
+
}, []), a = I((g) => (d.current.includes(g) || d.current.push(g), () => {
|
|
1541
1620
|
d.current = d.current.filter((v) => v !== g);
|
|
1542
1621
|
}), []);
|
|
1543
1622
|
return W(() => {
|
|
1544
|
-
o &&
|
|
1545
|
-
}, [o]), /* @__PURE__ */
|
|
1623
|
+
o && x((g) => g);
|
|
1624
|
+
}, [o]), /* @__PURE__ */ s(Se.Provider, { value: {
|
|
1546
1625
|
activeValue: o,
|
|
1547
|
-
onSelect:
|
|
1548
|
-
expandedGroups:
|
|
1626
|
+
onSelect: c,
|
|
1627
|
+
expandedGroups: l,
|
|
1549
1628
|
toggleGroup: i,
|
|
1550
|
-
registerItem:
|
|
1629
|
+
registerItem: a,
|
|
1551
1630
|
orderRef: d
|
|
1552
|
-
}, children: /* @__PURE__ */
|
|
1631
|
+
}, children: /* @__PURE__ */ s("nav", { role: "navigation", ...k(u.nav, P.root), children: e }) });
|
|
1553
1632
|
}
|
|
1554
|
-
function
|
|
1633
|
+
function jt({
|
|
1555
1634
|
children: e,
|
|
1556
1635
|
label: t,
|
|
1557
1636
|
groupKey: r,
|
|
1558
1637
|
defaultExpanded: n
|
|
1559
1638
|
}) {
|
|
1560
1639
|
const o = r ?? t, {
|
|
1561
|
-
expandedGroups:
|
|
1562
|
-
toggleGroup:
|
|
1563
|
-
activeValue:
|
|
1564
|
-
} =
|
|
1640
|
+
expandedGroups: c,
|
|
1641
|
+
toggleGroup: l,
|
|
1642
|
+
activeValue: x
|
|
1643
|
+
} = Ie(), d = c.has(o), i = y(null);
|
|
1565
1644
|
W(() => {
|
|
1566
|
-
if (!
|
|
1645
|
+
if (!x || c.has(o)) return;
|
|
1567
1646
|
const g = i.current;
|
|
1568
1647
|
if (!g) return;
|
|
1569
|
-
g.querySelector(`[data-nav-value="${
|
|
1570
|
-
}, [
|
|
1571
|
-
n && !
|
|
1648
|
+
g.querySelector(`[data-nav-value="${x}"]`) && l(o);
|
|
1649
|
+
}, [x, o, c, l]), W(() => {
|
|
1650
|
+
n && !c.has(o) && l(o);
|
|
1572
1651
|
}, []);
|
|
1573
|
-
const
|
|
1574
|
-
return /* @__PURE__ */
|
|
1575
|
-
/* @__PURE__ */
|
|
1576
|
-
/* @__PURE__ */
|
|
1652
|
+
const a = !x || !i.current ? !1 : !!i.current.querySelector(`[data-nav-value="${x}"]`);
|
|
1653
|
+
return /* @__PURE__ */ G("div", { ref: i, ...k(u.div, P.group), children: [
|
|
1654
|
+
/* @__PURE__ */ G("button", { type: "button", onClick: () => l(o), ...k(u.button, P.groupTrigger, a && P.groupTriggerActive), "aria-expanded": d, children: [
|
|
1655
|
+
/* @__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
1656
|
t
|
|
1578
1657
|
] }),
|
|
1579
1658
|
d && e
|
|
1580
1659
|
] });
|
|
1581
1660
|
}
|
|
1582
|
-
function
|
|
1661
|
+
function zt({
|
|
1583
1662
|
value: e,
|
|
1584
1663
|
children: t
|
|
1585
1664
|
}) {
|
|
@@ -1587,13 +1666,13 @@ function bt({
|
|
|
1587
1666
|
activeValue: r,
|
|
1588
1667
|
onSelect: n,
|
|
1589
1668
|
registerItem: o
|
|
1590
|
-
} =
|
|
1591
|
-
return W(() => o(e), [e, o]), /* @__PURE__ */
|
|
1669
|
+
} = Ie(), c = r === e;
|
|
1670
|
+
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 });
|
|
1592
1671
|
}
|
|
1593
|
-
const
|
|
1594
|
-
Root:
|
|
1595
|
-
Group:
|
|
1596
|
-
Item:
|
|
1672
|
+
const ur = {
|
|
1673
|
+
Root: Mt,
|
|
1674
|
+
Group: jt,
|
|
1675
|
+
Item: zt
|
|
1597
1676
|
}, Q = {
|
|
1598
1677
|
root: {
|
|
1599
1678
|
k1xSpc: "x3nfvp2",
|
|
@@ -1638,21 +1717,21 @@ const sr = {
|
|
|
1638
1717
|
kMcinP: "xzpqnlu",
|
|
1639
1718
|
$$css: !0
|
|
1640
1719
|
}
|
|
1641
|
-
},
|
|
1720
|
+
}, qt = {
|
|
1642
1721
|
sm: Q.sm,
|
|
1643
1722
|
md: Q.md,
|
|
1644
1723
|
lg: Q.lg
|
|
1645
1724
|
};
|
|
1646
|
-
function
|
|
1725
|
+
function ar({
|
|
1647
1726
|
size: e = "md",
|
|
1648
1727
|
label: t = "Loading"
|
|
1649
1728
|
}) {
|
|
1650
|
-
return /* @__PURE__ */
|
|
1651
|
-
/* @__PURE__ */
|
|
1652
|
-
/* @__PURE__ */
|
|
1729
|
+
return /* @__PURE__ */ G("div", { role: "status", ...k(u.div, Q.root), children: [
|
|
1730
|
+
/* @__PURE__ */ s("div", { ...k(u.div, Q.spinner, qt[e]), "aria-hidden": !0 }),
|
|
1731
|
+
/* @__PURE__ */ s("span", { ...k(u.span, Q.srOnly), children: t })
|
|
1653
1732
|
] });
|
|
1654
1733
|
}
|
|
1655
|
-
const
|
|
1734
|
+
const ve = {
|
|
1656
1735
|
root: {
|
|
1657
1736
|
k1xSpc: "x3nfvp2",
|
|
1658
1737
|
kGNEyG: "x6s0dn4",
|
|
@@ -1676,37 +1755,37 @@ const fe = {
|
|
|
1676
1755
|
kMwMTN: "x19e7f62",
|
|
1677
1756
|
$$css: !0
|
|
1678
1757
|
}
|
|
1679
|
-
},
|
|
1680
|
-
"x-circle": /* @__PURE__ */
|
|
1681
|
-
/* @__PURE__ */
|
|
1682
|
-
/* @__PURE__ */
|
|
1683
|
-
/* @__PURE__ */
|
|
1758
|
+
}, St = {
|
|
1759
|
+
"x-circle": /* @__PURE__ */ G(X, { children: [
|
|
1760
|
+
/* @__PURE__ */ s("circle", { cx: "12", cy: "12", r: "10" }),
|
|
1761
|
+
/* @__PURE__ */ s("line", { x1: "15", y1: "9", x2: "9", y2: "15" }),
|
|
1762
|
+
/* @__PURE__ */ s("line", { x1: "9", y1: "9", x2: "15", y2: "15" })
|
|
1684
1763
|
] }),
|
|
1685
|
-
"check-circle": /* @__PURE__ */
|
|
1686
|
-
/* @__PURE__ */
|
|
1687
|
-
/* @__PURE__ */
|
|
1764
|
+
"check-circle": /* @__PURE__ */ G(X, { children: [
|
|
1765
|
+
/* @__PURE__ */ s("circle", { cx: "12", cy: "12", r: "10" }),
|
|
1766
|
+
/* @__PURE__ */ s("polyline", { points: "16 10 11 15 8 12" })
|
|
1688
1767
|
] }),
|
|
1689
|
-
"check-done": /* @__PURE__ */
|
|
1690
|
-
/* @__PURE__ */
|
|
1691
|
-
/* @__PURE__ */
|
|
1768
|
+
"check-done": /* @__PURE__ */ G(X, { children: [
|
|
1769
|
+
/* @__PURE__ */ s("path", { d: "M22 11.08V12a10 10 0 1 1-5.93-9.14" }),
|
|
1770
|
+
/* @__PURE__ */ s("polyline", { points: "22 4 12 14.01 9 11.01" })
|
|
1692
1771
|
] }),
|
|
1693
|
-
clock: /* @__PURE__ */
|
|
1694
|
-
/* @__PURE__ */
|
|
1695
|
-
/* @__PURE__ */
|
|
1772
|
+
clock: /* @__PURE__ */ G(X, { children: [
|
|
1773
|
+
/* @__PURE__ */ s("circle", { cx: "12", cy: "12", r: "10" }),
|
|
1774
|
+
/* @__PURE__ */ s("polyline", { points: "12 6 12 12 16 14" })
|
|
1696
1775
|
] }),
|
|
1697
|
-
forbidden: /* @__PURE__ */
|
|
1698
|
-
/* @__PURE__ */
|
|
1699
|
-
/* @__PURE__ */
|
|
1776
|
+
forbidden: /* @__PURE__ */ G(X, { children: [
|
|
1777
|
+
/* @__PURE__ */ s("circle", { cx: "12", cy: "12", r: "10" }),
|
|
1778
|
+
/* @__PURE__ */ s("line", { x1: "4.93", y1: "4.93", x2: "19.07", y2: "19.07" })
|
|
1700
1779
|
] })
|
|
1701
1780
|
};
|
|
1702
|
-
function
|
|
1781
|
+
function dr({
|
|
1703
1782
|
name: e,
|
|
1704
1783
|
size: t = 48,
|
|
1705
1784
|
variant: r = "muted"
|
|
1706
1785
|
}) {
|
|
1707
|
-
return /* @__PURE__ */
|
|
1786
|
+
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
1787
|
}
|
|
1709
|
-
const
|
|
1788
|
+
const It = {
|
|
1710
1789
|
kumcoG: "xqketvx",
|
|
1711
1790
|
$$css: !0
|
|
1712
1791
|
}, A = {
|
|
@@ -1785,91 +1864,91 @@ const Mt = {
|
|
|
1785
1864
|
kWqL5O: "xgfja2r",
|
|
1786
1865
|
$$css: !0
|
|
1787
1866
|
},
|
|
1788
|
-
gridColumns: (e) => [
|
|
1867
|
+
gridColumns: (e) => [It, {
|
|
1789
1868
|
"--x-gridTemplateColumns": `repeat(${e}, 1fr)` != null ? `repeat(${e}, 1fr)` : void 0
|
|
1790
1869
|
}]
|
|
1791
|
-
},
|
|
1792
|
-
function
|
|
1793
|
-
const e =
|
|
1870
|
+
}, We = C(null);
|
|
1871
|
+
function se() {
|
|
1872
|
+
const e = H(We);
|
|
1794
1873
|
if (!e) throw new Error("Table compound components must be used within Table.Root");
|
|
1795
1874
|
return e;
|
|
1796
1875
|
}
|
|
1797
|
-
const
|
|
1798
|
-
function
|
|
1876
|
+
const ae = C(!1);
|
|
1877
|
+
function Wt({
|
|
1799
1878
|
children: e,
|
|
1800
1879
|
variant: t = "default",
|
|
1801
1880
|
size: r = "md",
|
|
1802
1881
|
columns: n
|
|
1803
1882
|
}) {
|
|
1804
|
-
return /* @__PURE__ */
|
|
1883
|
+
return /* @__PURE__ */ s(We.Provider, { value: {
|
|
1805
1884
|
variant: t,
|
|
1806
1885
|
size: r,
|
|
1807
1886
|
columns: n,
|
|
1808
1887
|
isHeader: !1
|
|
1809
|
-
}, children: /* @__PURE__ */
|
|
1888
|
+
}, children: /* @__PURE__ */ s("div", { role: "table", ...k(u.div, A.root), children: e }) });
|
|
1810
1889
|
}
|
|
1811
|
-
function
|
|
1890
|
+
function Tt({
|
|
1812
1891
|
children: e
|
|
1813
1892
|
}) {
|
|
1814
|
-
return /* @__PURE__ */
|
|
1893
|
+
return /* @__PURE__ */ s(ae.Provider, { value: !0, children: /* @__PURE__ */ s("div", { role: "rowgroup", ...k(u.div, A.header), children: e }) });
|
|
1815
1894
|
}
|
|
1816
|
-
function
|
|
1895
|
+
function At({
|
|
1817
1896
|
children: e
|
|
1818
1897
|
}) {
|
|
1819
1898
|
const {
|
|
1820
1899
|
variant: t
|
|
1821
|
-
} =
|
|
1822
|
-
return /* @__PURE__ */
|
|
1900
|
+
} = se(), r = $e.toArray(e);
|
|
1901
|
+
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
1902
|
}
|
|
1824
|
-
const
|
|
1825
|
-
function
|
|
1903
|
+
const Te = C(-1);
|
|
1904
|
+
function Gt({
|
|
1826
1905
|
children: e
|
|
1827
1906
|
}) {
|
|
1828
1907
|
const {
|
|
1829
1908
|
variant: t,
|
|
1830
1909
|
columns: r
|
|
1831
|
-
} =
|
|
1832
|
-
return /* @__PURE__ */
|
|
1910
|
+
} = se(), n = H(ae), o = H(Te), c = o >= 0 && o % 2 === 1, l = $e.toArray(e);
|
|
1911
|
+
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
1912
|
index: d,
|
|
1834
|
-
total:
|
|
1835
|
-
}, children:
|
|
1913
|
+
total: l.length
|
|
1914
|
+
}, children: x }, d)) : e });
|
|
1836
1915
|
}
|
|
1837
|
-
const
|
|
1916
|
+
const de = C({
|
|
1838
1917
|
index: 0,
|
|
1839
1918
|
total: 0
|
|
1840
1919
|
});
|
|
1841
|
-
function
|
|
1920
|
+
function Ht({
|
|
1842
1921
|
children: e
|
|
1843
1922
|
}) {
|
|
1844
1923
|
const {
|
|
1845
1924
|
size: t,
|
|
1846
1925
|
variant: r
|
|
1847
|
-
} =
|
|
1926
|
+
} = se(), {
|
|
1848
1927
|
index: n,
|
|
1849
1928
|
total: o
|
|
1850
|
-
} =
|
|
1851
|
-
return /* @__PURE__ */
|
|
1929
|
+
} = H(de), c = r === "bordered" && n === o - 1;
|
|
1930
|
+
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
1931
|
}
|
|
1853
|
-
function
|
|
1932
|
+
function Et({
|
|
1854
1933
|
children: e
|
|
1855
1934
|
}) {
|
|
1856
1935
|
const {
|
|
1857
1936
|
size: t,
|
|
1858
1937
|
variant: r
|
|
1859
|
-
} =
|
|
1938
|
+
} = se(), {
|
|
1860
1939
|
index: n,
|
|
1861
1940
|
total: o
|
|
1862
|
-
} =
|
|
1863
|
-
return /* @__PURE__ */
|
|
1864
|
-
}
|
|
1865
|
-
const
|
|
1866
|
-
Root:
|
|
1867
|
-
Header:
|
|
1868
|
-
Body:
|
|
1869
|
-
Row:
|
|
1870
|
-
HeaderCell:
|
|
1871
|
-
Cell:
|
|
1872
|
-
},
|
|
1941
|
+
} = H(de), c = r === "bordered" && n === o - 1;
|
|
1942
|
+
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 });
|
|
1943
|
+
}
|
|
1944
|
+
const gr = {
|
|
1945
|
+
Root: Wt,
|
|
1946
|
+
Header: Tt,
|
|
1947
|
+
Body: At,
|
|
1948
|
+
Row: Gt,
|
|
1949
|
+
HeaderCell: Ht,
|
|
1950
|
+
Cell: Et
|
|
1951
|
+
}, V = {
|
|
1873
1952
|
root: {
|
|
1874
1953
|
k1xSpc: "x78zum5",
|
|
1875
1954
|
kXwgrk: "xdt5ytf",
|
|
@@ -1957,48 +2036,48 @@ const xr = {
|
|
|
1957
2036
|
kE3dHu: "x107tsa6",
|
|
1958
2037
|
$$css: !0
|
|
1959
2038
|
}
|
|
1960
|
-
},
|
|
1961
|
-
function
|
|
1962
|
-
const e =
|
|
2039
|
+
}, Ae = C(null);
|
|
2040
|
+
function ge() {
|
|
2041
|
+
const e = H(Ae);
|
|
1963
2042
|
if (!e) throw new Error("Tabs compound components must be used within Tabs.Root");
|
|
1964
2043
|
return e;
|
|
1965
2044
|
}
|
|
1966
|
-
function
|
|
2045
|
+
function Rt({
|
|
1967
2046
|
value: e,
|
|
1968
2047
|
defaultValue: t,
|
|
1969
2048
|
onValueChange: r,
|
|
1970
2049
|
orientation: n = "horizontal"
|
|
1971
2050
|
}) {
|
|
1972
|
-
const [o,
|
|
2051
|
+
const [o, c] = ue(e, t ?? null, r ? (i) => {
|
|
1973
2052
|
i !== null && r(i);
|
|
1974
|
-
} : void 0),
|
|
1975
|
-
|
|
2053
|
+
} : 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), () => {
|
|
2054
|
+
l.current.delete(i), x.current = x.current.filter((g) => g !== i);
|
|
1976
2055
|
}), []);
|
|
1977
2056
|
return {
|
|
1978
2057
|
activeValue: o,
|
|
1979
|
-
onSelect:
|
|
2058
|
+
onSelect: c,
|
|
1980
2059
|
orientation: n,
|
|
1981
2060
|
registerTab: d,
|
|
1982
|
-
tabsRef:
|
|
1983
|
-
orderRef:
|
|
2061
|
+
tabsRef: l,
|
|
2062
|
+
orderRef: x
|
|
1984
2063
|
};
|
|
1985
2064
|
}
|
|
1986
|
-
function
|
|
2065
|
+
function Ct({
|
|
1987
2066
|
children: e,
|
|
1988
2067
|
value: t,
|
|
1989
2068
|
defaultValue: r,
|
|
1990
2069
|
onValueChange: n,
|
|
1991
2070
|
orientation: o = "horizontal"
|
|
1992
2071
|
}) {
|
|
1993
|
-
const
|
|
2072
|
+
const c = Rt({
|
|
1994
2073
|
value: t,
|
|
1995
2074
|
defaultValue: r,
|
|
1996
2075
|
onValueChange: n,
|
|
1997
2076
|
orientation: o
|
|
1998
2077
|
});
|
|
1999
|
-
return /* @__PURE__ */
|
|
2078
|
+
return /* @__PURE__ */ s(Ae.Provider, { value: c, children: /* @__PURE__ */ s("div", { ...k(u.div, V.root, o === "vertical" && V.rootVertical), children: e }) });
|
|
2000
2079
|
}
|
|
2001
|
-
function
|
|
2080
|
+
function Nt({
|
|
2002
2081
|
children: e
|
|
2003
2082
|
}) {
|
|
2004
2083
|
const {
|
|
@@ -2006,22 +2085,22 @@ function Ht({
|
|
|
2006
2085
|
activeValue: r,
|
|
2007
2086
|
onSelect: n,
|
|
2008
2087
|
tabsRef: o,
|
|
2009
|
-
orderRef:
|
|
2010
|
-
} =
|
|
2088
|
+
orderRef: c
|
|
2089
|
+
} = ge(), l = y(null);
|
|
2011
2090
|
return W(() => {
|
|
2012
|
-
const
|
|
2013
|
-
if (!
|
|
2091
|
+
const x = l.current;
|
|
2092
|
+
if (!x) return;
|
|
2014
2093
|
function d(i) {
|
|
2015
|
-
const
|
|
2016
|
-
if (
|
|
2017
|
-
const v = this, w = t === "horizontal" ? "ArrowLeft" : "ArrowUp",
|
|
2094
|
+
const a = c.current, g = o.current;
|
|
2095
|
+
if (a.length === 0) return;
|
|
2096
|
+
const v = this, w = t === "horizontal" ? "ArrowLeft" : "ArrowUp", p = t === "horizontal" ? "ArrowRight" : "ArrowDown";
|
|
2018
2097
|
let m = null;
|
|
2019
2098
|
switch (i.key) {
|
|
2020
|
-
case
|
|
2099
|
+
case p: {
|
|
2021
2100
|
i.preventDefault();
|
|
2022
|
-
const
|
|
2023
|
-
for (let $ = 1; $ <=
|
|
2024
|
-
const h = (
|
|
2101
|
+
const f = r ? a.indexOf(r) : -1;
|
|
2102
|
+
for (let $ = 1; $ <= a.length; $++) {
|
|
2103
|
+
const h = (f + $) % a.length, b = a[h];
|
|
2025
2104
|
if (!g.get(b)) {
|
|
2026
2105
|
m = b;
|
|
2027
2106
|
break;
|
|
@@ -2031,9 +2110,9 @@ function Ht({
|
|
|
2031
2110
|
}
|
|
2032
2111
|
case w: {
|
|
2033
2112
|
i.preventDefault();
|
|
2034
|
-
const
|
|
2035
|
-
for (let $ = 1; $ <=
|
|
2036
|
-
const h = (
|
|
2113
|
+
const f = r ? a.indexOf(r) : 0;
|
|
2114
|
+
for (let $ = 1; $ <= a.length; $++) {
|
|
2115
|
+
const h = (f - $ + a.length) % a.length, b = a[h];
|
|
2037
2116
|
if (!g.get(b)) {
|
|
2038
2117
|
m = b;
|
|
2039
2118
|
break;
|
|
@@ -2043,18 +2122,18 @@ function Ht({
|
|
|
2043
2122
|
}
|
|
2044
2123
|
case "Home": {
|
|
2045
2124
|
i.preventDefault();
|
|
2046
|
-
for (const
|
|
2047
|
-
if (!g.get(
|
|
2048
|
-
m =
|
|
2125
|
+
for (const f of a)
|
|
2126
|
+
if (!g.get(f)) {
|
|
2127
|
+
m = f;
|
|
2049
2128
|
break;
|
|
2050
2129
|
}
|
|
2051
2130
|
break;
|
|
2052
2131
|
}
|
|
2053
2132
|
case "End": {
|
|
2054
2133
|
i.preventDefault();
|
|
2055
|
-
for (let
|
|
2056
|
-
if (!g.get(
|
|
2057
|
-
m =
|
|
2134
|
+
for (let f = a.length - 1; f >= 0; f--)
|
|
2135
|
+
if (!g.get(a[f])) {
|
|
2136
|
+
m = a[f];
|
|
2058
2137
|
break;
|
|
2059
2138
|
}
|
|
2060
2139
|
break;
|
|
@@ -2062,10 +2141,10 @@ function Ht({
|
|
|
2062
2141
|
}
|
|
2063
2142
|
m && (n(m), v.querySelector(`[data-tab-value="${m}"]`)?.focus());
|
|
2064
2143
|
}
|
|
2065
|
-
return
|
|
2066
|
-
}, [t, r, n, o,
|
|
2144
|
+
return x.addEventListener("keydown", d), () => x.removeEventListener("keydown", d);
|
|
2145
|
+
}, [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
2146
|
}
|
|
2068
|
-
function
|
|
2147
|
+
function Vt({
|
|
2069
2148
|
value: e,
|
|
2070
2149
|
disabled: t = !1,
|
|
2071
2150
|
children: r
|
|
@@ -2073,29 +2152,29 @@ function Et({
|
|
|
2073
2152
|
const {
|
|
2074
2153
|
activeValue: n,
|
|
2075
2154
|
onSelect: o,
|
|
2076
|
-
orientation:
|
|
2077
|
-
registerTab:
|
|
2078
|
-
} =
|
|
2079
|
-
return W(() =>
|
|
2155
|
+
orientation: c,
|
|
2156
|
+
registerTab: l
|
|
2157
|
+
} = ge(), x = n === e, d = Y(), i = `${d}-panel`;
|
|
2158
|
+
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
2159
|
t || o(e);
|
|
2081
|
-
}, ...k(
|
|
2160
|
+
}, ...k(u.button, V.tab, c === "vertical" && V.tabVertical, x && (c === "vertical" ? V.tabActiveVertical : V.tabActiveHorizontal), t && V.tabDisabled), children: r });
|
|
2082
2161
|
}
|
|
2083
|
-
function
|
|
2162
|
+
function Ot({
|
|
2084
2163
|
value: e,
|
|
2085
2164
|
children: t
|
|
2086
2165
|
}) {
|
|
2087
2166
|
const {
|
|
2088
2167
|
activeValue: r,
|
|
2089
2168
|
orientation: n
|
|
2090
|
-
} =
|
|
2091
|
-
return r !== e ? null : /* @__PURE__ */
|
|
2169
|
+
} = ge();
|
|
2170
|
+
return r !== e ? null : /* @__PURE__ */ s("div", { role: "tabpanel", ...k(u.div, V.panel, n === "vertical" && V.panelVertical), children: t });
|
|
2092
2171
|
}
|
|
2093
|
-
const
|
|
2094
|
-
Root:
|
|
2095
|
-
List:
|
|
2096
|
-
Tab:
|
|
2097
|
-
Panel:
|
|
2098
|
-
},
|
|
2172
|
+
const hr = {
|
|
2173
|
+
Root: Ct,
|
|
2174
|
+
List: Nt,
|
|
2175
|
+
Tab: Vt,
|
|
2176
|
+
Panel: Ot
|
|
2177
|
+
}, me = {
|
|
2099
2178
|
base: {
|
|
2100
2179
|
kzqmXN: "xh8yej3",
|
|
2101
2180
|
kLKAdn: "x1y6gaq4",
|
|
@@ -2129,21 +2208,21 @@ const ir = {
|
|
|
2129
2208
|
$$css: !0
|
|
2130
2209
|
}
|
|
2131
2210
|
};
|
|
2132
|
-
function
|
|
2211
|
+
function pr({
|
|
2133
2212
|
variant: e = "default",
|
|
2134
2213
|
name: t,
|
|
2135
2214
|
placeholder: r,
|
|
2136
2215
|
required: n,
|
|
2137
2216
|
rows: o = 3,
|
|
2138
|
-
value:
|
|
2139
|
-
defaultValue:
|
|
2140
|
-
disabled:
|
|
2217
|
+
value: c,
|
|
2218
|
+
defaultValue: l,
|
|
2219
|
+
disabled: x,
|
|
2141
2220
|
onChange: d
|
|
2142
2221
|
}) {
|
|
2143
|
-
const i =
|
|
2144
|
-
return /* @__PURE__ */
|
|
2222
|
+
const i = Z();
|
|
2223
|
+
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
2224
|
}
|
|
2146
|
-
const
|
|
2225
|
+
const fr = {
|
|
2147
2226
|
bg: "var(--bg-xqkwqtp)",
|
|
2148
2227
|
bgCard: "var(--bgCard-xj2l5r)",
|
|
2149
2228
|
bgCardHover: "var(--bgCardHover-xlxk7vw)",
|
|
@@ -2171,7 +2250,7 @@ const kr = {
|
|
|
2171
2250
|
infoBorder: "var(--infoBorder-xnevk3x)",
|
|
2172
2251
|
infoText: "var(--infoText-x19pseus)",
|
|
2173
2252
|
__varGroupHash__: "xjvd03b"
|
|
2174
|
-
},
|
|
2253
|
+
}, vr = {
|
|
2175
2254
|
xs: "var(--xs-xxfyjsd)",
|
|
2176
2255
|
sm: "var(--sm-xbh8y7f)",
|
|
2177
2256
|
md: "var(--md-x3pkb85)",
|
|
@@ -2179,13 +2258,13 @@ const kr = {
|
|
|
2179
2258
|
xl: "var(--xl-xttpygj)",
|
|
2180
2259
|
xxl: "var(--xxl-xbe9eha)",
|
|
2181
2260
|
__varGroupHash__: "x6uc9q"
|
|
2182
|
-
},
|
|
2261
|
+
}, mr = {
|
|
2183
2262
|
sm: "var(--sm-x1bhtfs5)",
|
|
2184
2263
|
md: "var(--md-xx2g89g)",
|
|
2185
2264
|
lg: "var(--lg-xwd56yl)",
|
|
2186
2265
|
full: "var(--full-x9vxdtd)",
|
|
2187
2266
|
__varGroupHash__: "xw3ffwm"
|
|
2188
|
-
},
|
|
2267
|
+
}, $r = {
|
|
2189
2268
|
fontFamily: "var(--fontFamily-xvrmnat)",
|
|
2190
2269
|
fontSizeXs: "var(--fontSizeXs-x1w5m325)",
|
|
2191
2270
|
fontSizeSm: "var(--fontSizeSm-x1bjjs4u)",
|
|
@@ -2199,40 +2278,40 @@ const kr = {
|
|
|
2199
2278
|
fontWeightBold: "var(--fontWeightBold-x1pjkvwg)",
|
|
2200
2279
|
lineHeight: "var(--lineHeight-x1gubzd5)",
|
|
2201
2280
|
__varGroupHash__: "xs62swl"
|
|
2202
|
-
},
|
|
2281
|
+
}, br = {
|
|
2203
2282
|
sm: "var(--sm-x17hhtln)",
|
|
2204
2283
|
md: "var(--md-x1oyt0aw)",
|
|
2205
2284
|
lg: "var(--lg-x1mxd62i)",
|
|
2206
2285
|
__varGroupHash__: "x13v825q"
|
|
2207
|
-
},
|
|
2286
|
+
}, Lt = {
|
|
2208
2287
|
xjvd03b: "x18itf25 xjvd03b",
|
|
2209
2288
|
$$css: !0
|
|
2210
|
-
},
|
|
2289
|
+
}, Dt = {
|
|
2211
2290
|
x13v825q: "xv9ibj0 x13v825q",
|
|
2212
2291
|
$$css: !0
|
|
2213
|
-
},
|
|
2292
|
+
}, Bt = {
|
|
2214
2293
|
xjvd03b: "x1qgt5a2 xjvd03b",
|
|
2215
2294
|
$$css: !0
|
|
2216
|
-
},
|
|
2295
|
+
}, Pt = {
|
|
2217
2296
|
x13v825q: "x15e39jv x13v825q",
|
|
2218
2297
|
$$css: !0
|
|
2219
|
-
},
|
|
2220
|
-
light: [
|
|
2221
|
-
"high-contrast": [
|
|
2222
|
-
},
|
|
2298
|
+
}, Yt = {
|
|
2299
|
+
light: [Lt, Dt],
|
|
2300
|
+
"high-contrast": [Bt, Pt]
|
|
2301
|
+
}, Xt = {
|
|
2223
2302
|
root: {
|
|
2224
2303
|
k1xSpc: "xjp7ctv",
|
|
2225
2304
|
$$css: !0
|
|
2226
2305
|
}
|
|
2227
2306
|
};
|
|
2228
|
-
function
|
|
2307
|
+
function wr({
|
|
2229
2308
|
theme: e = "dark",
|
|
2230
2309
|
children: t
|
|
2231
2310
|
}) {
|
|
2232
|
-
const r =
|
|
2233
|
-
return /* @__PURE__ */
|
|
2311
|
+
const r = Yt[e], n = [r?.[0], r?.[1], Xt.root];
|
|
2312
|
+
return /* @__PURE__ */ s("div", { ...k(u.div, n), children: t });
|
|
2234
2313
|
}
|
|
2235
|
-
const
|
|
2314
|
+
const le = {
|
|
2236
2315
|
root: {
|
|
2237
2316
|
kVAEAm: "x1n2onr6",
|
|
2238
2317
|
k1xSpc: "x3nfvp2",
|
|
@@ -2287,35 +2366,35 @@ const ce = {
|
|
|
2287
2366
|
koQZXg: "xzhl4zu",
|
|
2288
2367
|
$$css: !0
|
|
2289
2368
|
}
|
|
2290
|
-
},
|
|
2291
|
-
function
|
|
2292
|
-
const e =
|
|
2369
|
+
}, Ge = C(null);
|
|
2370
|
+
function Kt() {
|
|
2371
|
+
const e = H(Ge);
|
|
2293
2372
|
if (!e) throw new Error("Tooltip compound components must be used within Tooltip.Root");
|
|
2294
2373
|
return e;
|
|
2295
2374
|
}
|
|
2296
|
-
function
|
|
2375
|
+
function Ut({
|
|
2297
2376
|
children: e,
|
|
2298
2377
|
content: t,
|
|
2299
2378
|
placement: r = "top",
|
|
2300
2379
|
delay: n = 300
|
|
2301
2380
|
}) {
|
|
2302
|
-
const [o,
|
|
2303
|
-
|
|
2381
|
+
const [o, c] = T(!1), l = Y(), x = y(null), d = I(() => {
|
|
2382
|
+
x.current && clearTimeout(x.current), x.current = setTimeout(() => c(!0), n);
|
|
2304
2383
|
}, [n]), i = I(() => {
|
|
2305
|
-
|
|
2384
|
+
x.current && clearTimeout(x.current), x.current = null, c(!1);
|
|
2306
2385
|
}, []);
|
|
2307
|
-
return /* @__PURE__ */
|
|
2386
|
+
return /* @__PURE__ */ s(Ge.Provider, { value: {
|
|
2308
2387
|
open: o,
|
|
2309
2388
|
show: d,
|
|
2310
2389
|
hide: i,
|
|
2311
|
-
tooltipId:
|
|
2390
|
+
tooltipId: l,
|
|
2312
2391
|
placement: r
|
|
2313
|
-
}, children: /* @__PURE__ */
|
|
2392
|
+
}, children: /* @__PURE__ */ G("div", { ...k(u.div, le.root), children: [
|
|
2314
2393
|
e,
|
|
2315
|
-
o && /* @__PURE__ */
|
|
2394
|
+
o && /* @__PURE__ */ s("div", { id: l, role: "tooltip", ...k(u.div, le.popup, le[r]), children: t })
|
|
2316
2395
|
] }) });
|
|
2317
2396
|
}
|
|
2318
|
-
function
|
|
2397
|
+
function Jt({
|
|
2319
2398
|
children: e
|
|
2320
2399
|
}) {
|
|
2321
2400
|
const {
|
|
@@ -2323,42 +2402,43 @@ function Pt({
|
|
|
2323
2402
|
show: r,
|
|
2324
2403
|
hide: n,
|
|
2325
2404
|
tooltipId: o
|
|
2326
|
-
} =
|
|
2327
|
-
return /* @__PURE__ */
|
|
2405
|
+
} = Kt();
|
|
2406
|
+
return /* @__PURE__ */ s("div", { onPointerEnter: r, onPointerLeave: n, onFocus: r, onBlur: n, "aria-describedby": t ? o : void 0, ...k(u.div), children: e });
|
|
2328
2407
|
}
|
|
2329
|
-
const
|
|
2330
|
-
Root:
|
|
2331
|
-
Trigger:
|
|
2408
|
+
const yr = {
|
|
2409
|
+
Root: Ut,
|
|
2410
|
+
Trigger: Jt
|
|
2332
2411
|
};
|
|
2333
2412
|
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
|
-
|
|
2413
|
+
Ft as Alert,
|
|
2414
|
+
Zt as Badge,
|
|
2415
|
+
er as Button,
|
|
2416
|
+
tr as Card,
|
|
2417
|
+
rr as Checkbox,
|
|
2418
|
+
nr as EmptyState,
|
|
2419
|
+
or as Field,
|
|
2420
|
+
sr as Input,
|
|
2421
|
+
cr as InputGroup,
|
|
2422
|
+
xr as LinkButton,
|
|
2423
|
+
lr as Menu,
|
|
2424
|
+
ir as ScrollArea,
|
|
2425
|
+
kr as Select,
|
|
2426
|
+
ur as SideNav,
|
|
2427
|
+
ar as Spinner,
|
|
2428
|
+
dr as StatusIcon,
|
|
2429
|
+
gr as Table,
|
|
2430
|
+
hr as Tabs,
|
|
2431
|
+
pr as Textarea,
|
|
2432
|
+
wr as ThemeProvider,
|
|
2433
|
+
yr as Tooltip,
|
|
2434
|
+
fr as colors,
|
|
2435
|
+
Pt as highContrastShadows,
|
|
2436
|
+
Bt as highContrastTheme,
|
|
2437
|
+
Dt as lightShadows,
|
|
2438
|
+
Lt as lightTheme,
|
|
2439
|
+
mr as radii,
|
|
2440
|
+
br as shadows,
|
|
2441
|
+
vr as spacing,
|
|
2442
|
+
$r as typography
|
|
2363
2443
|
};
|
|
2364
2444
|
//# sourceMappingURL=index.js.map
|