@duro-app/ui 0.7.0 → 0.8.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/Cluster/Cluster.d.ts +11 -0
- package/dist/components/Cluster/Cluster.d.ts.map +1 -0
- package/dist/components/Cluster/Cluster.stories.d.ts +9 -0
- package/dist/components/Cluster/Cluster.stories.d.ts.map +1 -0
- package/dist/components/Cluster/styles.css.d.ts +54 -0
- package/dist/components/Cluster/styles.css.d.ts.map +1 -0
- package/dist/components/Grid/Grid.d.ts +11 -0
- package/dist/components/Grid/Grid.d.ts.map +1 -0
- package/dist/components/Grid/Grid.stories.d.ts +10 -0
- package/dist/components/Grid/Grid.stories.d.ts.map +1 -0
- package/dist/components/Grid/styles.css.d.ts +52 -0
- package/dist/components/Grid/styles.css.d.ts.map +1 -0
- package/dist/components/Heading/Heading.d.ts +12 -0
- package/dist/components/Heading/Heading.d.ts.map +1 -0
- package/dist/components/Heading/styles.css.d.ts +22 -0
- package/dist/components/Heading/styles.css.d.ts.map +1 -0
- package/dist/components/Inline/Inline.d.ts +11 -0
- package/dist/components/Inline/Inline.d.ts.map +1 -0
- package/dist/components/Inline/Inline.stories.d.ts +10 -0
- package/dist/components/Inline/Inline.stories.d.ts.map +1 -0
- package/dist/components/Inline/styles.css.d.ts +60 -0
- package/dist/components/Inline/styles.css.d.ts.map +1 -0
- package/dist/components/InputGroup/InputGroup.d.ts +2 -1
- package/dist/components/InputGroup/InputGroup.d.ts.map +1 -1
- package/dist/components/InputGroup/styles.css.d.ts +4 -0
- package/dist/components/InputGroup/styles.css.d.ts.map +1 -1
- package/dist/components/Stack/Stack.d.ts +10 -0
- package/dist/components/Stack/Stack.d.ts.map +1 -0
- package/dist/components/Stack/Stack.stories.d.ts +11 -0
- package/dist/components/Stack/Stack.stories.d.ts.map +1 -0
- package/dist/components/Stack/styles.css.d.ts +44 -0
- package/dist/components/Stack/styles.css.d.ts.map +1 -0
- package/dist/components/Text/Text.d.ts +15 -0
- package/dist/components/Text/Text.d.ts.map +1 -0
- package/dist/components/Text/styles.css.d.ts +48 -0
- package/dist/components/Text/styles.css.d.ts.map +1 -0
- package/dist/docs/Spacing.stories.d.ts +8 -0
- package/dist/docs/Spacing.stories.d.ts.map +1 -0
- package/dist/docs/Typography.stories.d.ts +10 -0
- package/dist/docs/Typography.stories.d.ts.map +1 -0
- package/dist/docs/helpers.d.ts +22 -0
- package/dist/docs/helpers.d.ts.map +1 -0
- package/dist/hooks/useContainerQuery.d.ts +11 -0
- package/dist/hooks/useContainerQuery.d.ts.map +1 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +8 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1737 -920
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { useState as
|
|
1
|
+
import { jsx as o, jsxs as A, Fragment as U } from "react/jsx-runtime";
|
|
2
|
+
import { useState as G, useCallback as W, useContext as N, createContext as D, useId as K, useMemo as ht, useRef as y, useEffect as H, Children as zt } 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 H, createContext as C, 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 ft = {};
|
|
11
|
+
Object.defineProperty(ft, "__esModule", {
|
|
12
12
|
value: !0
|
|
13
13
|
});
|
|
14
|
-
var
|
|
15
|
-
function
|
|
16
|
-
var
|
|
17
|
-
return
|
|
18
|
-
for (var
|
|
19
|
-
|
|
20
|
-
for (;
|
|
21
|
-
var
|
|
22
|
-
if (!(
|
|
23
|
-
if (Array.isArray(
|
|
24
|
-
for (var w = 0; w <
|
|
25
|
-
|
|
14
|
+
var It = ft.styleq = void 0, Ct = /* @__PURE__ */ new WeakMap(), Rt = "$$css";
|
|
15
|
+
function qt(t) {
|
|
16
|
+
var e, n, r;
|
|
17
|
+
return t != null && (e = t.disableCache === !0, n = t.disableMix === !0, r = t.transform), function() {
|
|
18
|
+
for (var i = [], c = "", x = null, d = "", l = e ? null : Ct, u = new Array(arguments.length), g = 0; g < arguments.length; g++)
|
|
19
|
+
u[g] = arguments[g];
|
|
20
|
+
for (; u.length > 0; ) {
|
|
21
|
+
var $ = u.pop();
|
|
22
|
+
if (!($ == null || $ === !1)) {
|
|
23
|
+
if (Array.isArray($)) {
|
|
24
|
+
for (var w = 0; w < $.length; w++)
|
|
25
|
+
u.push($[w]);
|
|
26
26
|
continue;
|
|
27
27
|
}
|
|
28
|
-
var
|
|
29
|
-
if (
|
|
30
|
-
var
|
|
31
|
-
if (
|
|
32
|
-
var f =
|
|
33
|
-
f != null && (
|
|
28
|
+
var h = r != null ? r($) : $;
|
|
29
|
+
if (h.$$css != null) {
|
|
30
|
+
var v = "";
|
|
31
|
+
if (l != null && l.has(h)) {
|
|
32
|
+
var f = l.get(h);
|
|
33
|
+
f != null && (v = f[0], d = f[2], i.push.apply(i, f[1]), l = f[3]);
|
|
34
34
|
} else {
|
|
35
|
-
var
|
|
36
|
-
for (var
|
|
37
|
-
var b = p
|
|
38
|
-
if (
|
|
39
|
-
var
|
|
40
|
-
|
|
35
|
+
var m = [];
|
|
36
|
+
for (var p in h) {
|
|
37
|
+
var b = h[p];
|
|
38
|
+
if (p === Rt) {
|
|
39
|
+
var Y = h[p];
|
|
40
|
+
Y !== !0 && (d = d ? Y + "; " + d : Y);
|
|
41
41
|
continue;
|
|
42
42
|
}
|
|
43
|
-
typeof b == "string" || b === null ?
|
|
43
|
+
typeof b == "string" || b === null ? i.includes(p) || (i.push(p), l != null && m.push(p), typeof b == "string" && (v += v ? " " + b : b)) : console.error("styleq: ".concat(p, " typeof ").concat(String(b), ' is not "string" or "null".'));
|
|
44
44
|
}
|
|
45
|
-
if (
|
|
46
|
-
var
|
|
47
|
-
|
|
45
|
+
if (l != null) {
|
|
46
|
+
var z = /* @__PURE__ */ new WeakMap();
|
|
47
|
+
l.set(h, [v, m, d, z]), l = z;
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
|
-
|
|
51
|
-
} else if (
|
|
52
|
-
x == null && (x = {}), x = Object.assign({},
|
|
50
|
+
v && (c = c ? v + " " + c : v);
|
|
51
|
+
} else if (n)
|
|
52
|
+
x == null && (x = {}), x = Object.assign({}, h, x);
|
|
53
53
|
else {
|
|
54
54
|
var j = null;
|
|
55
|
-
for (var
|
|
56
|
-
var
|
|
57
|
-
|
|
55
|
+
for (var S in h) {
|
|
56
|
+
var M = h[S];
|
|
57
|
+
M !== void 0 && (i.includes(S) || (M != null && (x == null && (x = {}), j == null && (j = {}), j[S] = M), i.push(S), l = null));
|
|
58
58
|
}
|
|
59
59
|
j != null && (x = Object.assign(j, x));
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
|
-
var
|
|
64
|
-
return
|
|
63
|
+
var C = [c, x, d];
|
|
64
|
+
return C;
|
|
65
65
|
};
|
|
66
66
|
}
|
|
67
|
-
var
|
|
68
|
-
|
|
69
|
-
const
|
|
67
|
+
var Xt = It = ft.styleq = qt();
|
|
68
|
+
Xt.factory = qt;
|
|
69
|
+
const Yt = It.factory({
|
|
70
70
|
disableMix: !0
|
|
71
71
|
});
|
|
72
|
-
function k(...
|
|
73
|
-
const [
|
|
74
|
-
if (
|
|
75
|
-
const
|
|
76
|
-
for (const x of
|
|
77
|
-
const d = x.trim(), [
|
|
78
|
-
|
|
72
|
+
function k(...t) {
|
|
73
|
+
const [e, n, r] = Yt(t), s = {};
|
|
74
|
+
if (e != null && e !== "" && (s.className = e), n != null && (s.style = n), r != null && r !== "") {
|
|
75
|
+
const i = r.split(";"), c = {};
|
|
76
|
+
for (const x of i) {
|
|
77
|
+
const d = x.trim(), [l, u] = d.split(":");
|
|
78
|
+
u != null && (c[l] = c[l] != null ? `${c[l]},${u}` : u);
|
|
79
79
|
}
|
|
80
|
-
|
|
80
|
+
s["data-style-src"] = Object.keys(c).map((x) => `${x}:${c[x]}`).join("; ");
|
|
81
81
|
}
|
|
82
|
-
return
|
|
82
|
+
return s;
|
|
83
83
|
}
|
|
84
|
-
const
|
|
84
|
+
const V = {
|
|
85
85
|
block: {
|
|
86
86
|
kogj98: "x1ghz6dp",
|
|
87
87
|
kmVPX3: "x1717udv",
|
|
@@ -105,6 +105,11 @@ const R = {
|
|
|
105
105
|
kMzoRj: "xmkeg23",
|
|
106
106
|
$$css: !0
|
|
107
107
|
},
|
|
108
|
+
heading: {
|
|
109
|
+
kGuDYH: "xngnso2",
|
|
110
|
+
kD5eJx: "x1vvkbs",
|
|
111
|
+
$$css: !0
|
|
112
|
+
},
|
|
108
113
|
input: {
|
|
109
114
|
kMzoRj: "xmkeg23",
|
|
110
115
|
ksu8eU: "x1y0btm7",
|
|
@@ -116,17 +121,23 @@ const R = {
|
|
|
116
121
|
kHenm0: "x288g5",
|
|
117
122
|
$$css: !0
|
|
118
123
|
}
|
|
119
|
-
},
|
|
120
|
-
a:
|
|
121
|
-
button:
|
|
122
|
-
div:
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
124
|
+
}, Jt = V.inline, Pt = [V.inlineblock, V.button], Ft = V.block, _ = [V.block, V.heading], Qt = [V.inlineblock, V.input], Kt = V.inline, Ut = V.block, _t = V.block, Zt = V.inline, te = [V.inlineblock, V.textarea], a = {
|
|
125
|
+
a: Jt,
|
|
126
|
+
button: Pt,
|
|
127
|
+
div: Ft,
|
|
128
|
+
h1: _,
|
|
129
|
+
h2: _,
|
|
130
|
+
h3: _,
|
|
131
|
+
h4: _,
|
|
132
|
+
h5: _,
|
|
133
|
+
h6: _,
|
|
134
|
+
input: Qt,
|
|
135
|
+
label: Kt,
|
|
136
|
+
nav: Ut,
|
|
137
|
+
p: _t,
|
|
138
|
+
span: Zt,
|
|
139
|
+
textarea: te
|
|
140
|
+
}, St = {
|
|
130
141
|
base: {
|
|
131
142
|
kmVPX3: "x16ixvul",
|
|
132
143
|
kaIpWk: "x1gbengz",
|
|
@@ -161,13 +172,13 @@ const R = {
|
|
|
161
172
|
$$css: !0
|
|
162
173
|
}
|
|
163
174
|
};
|
|
164
|
-
function
|
|
165
|
-
variant:
|
|
166
|
-
children:
|
|
175
|
+
function yn({
|
|
176
|
+
variant: t = "info",
|
|
177
|
+
children: e
|
|
167
178
|
}) {
|
|
168
|
-
return /* @__PURE__ */
|
|
179
|
+
return /* @__PURE__ */ o("div", { role: "alert", ...k(a.div, St.base, St[t]), children: e });
|
|
169
180
|
}
|
|
170
|
-
const
|
|
181
|
+
const ct = {
|
|
171
182
|
base: {
|
|
172
183
|
k1xSpc: "x3nfvp2",
|
|
173
184
|
kGNEyG: "x6s0dn4",
|
|
@@ -220,18 +231,18 @@ const ee = {
|
|
|
220
231
|
kMwMTN: "xmooqzt",
|
|
221
232
|
$$css: !0
|
|
222
233
|
}
|
|
223
|
-
},
|
|
224
|
-
sm:
|
|
225
|
-
md:
|
|
234
|
+
}, ee = {
|
|
235
|
+
sm: ct.sizeSm,
|
|
236
|
+
md: ct.sizeMd
|
|
226
237
|
};
|
|
227
|
-
function
|
|
228
|
-
variant:
|
|
229
|
-
size:
|
|
230
|
-
children:
|
|
238
|
+
function wn({
|
|
239
|
+
variant: t = "default",
|
|
240
|
+
size: e = "md",
|
|
241
|
+
children: n
|
|
231
242
|
}) {
|
|
232
|
-
return /* @__PURE__ */
|
|
243
|
+
return /* @__PURE__ */ o("span", { ...k(a.span, ct.base, ee[e], ct[t]), children: n });
|
|
233
244
|
}
|
|
234
|
-
const
|
|
245
|
+
const et = {
|
|
235
246
|
base: {
|
|
236
247
|
k1xSpc: "x3nfvp2",
|
|
237
248
|
kGNEyG: "x6s0dn4",
|
|
@@ -306,22 +317,22 @@ const U = {
|
|
|
306
317
|
kkrTdU: "x1h6gzvc",
|
|
307
318
|
$$css: !0
|
|
308
319
|
}
|
|
309
|
-
},
|
|
310
|
-
default:
|
|
311
|
-
small:
|
|
320
|
+
}, ne = {
|
|
321
|
+
default: et.sizeDefault,
|
|
322
|
+
small: et.sizeSmall
|
|
312
323
|
};
|
|
313
|
-
function
|
|
314
|
-
variant:
|
|
315
|
-
size:
|
|
316
|
-
fullWidth:
|
|
317
|
-
disabled:
|
|
318
|
-
type:
|
|
319
|
-
onClick:
|
|
320
|
-
children:
|
|
324
|
+
function Sn({
|
|
325
|
+
variant: t = "primary",
|
|
326
|
+
size: e = "default",
|
|
327
|
+
fullWidth: n = !1,
|
|
328
|
+
disabled: r = !1,
|
|
329
|
+
type: s = "button",
|
|
330
|
+
onClick: i,
|
|
331
|
+
children: c
|
|
321
332
|
}) {
|
|
322
|
-
return /* @__PURE__ */
|
|
333
|
+
return /* @__PURE__ */ o("button", { type: s, disabled: r, onClick: i, ...k(a.button, et.base, ne[e], et[t], n && et.fullWidth, r && et.disabled), children: c });
|
|
323
334
|
}
|
|
324
|
-
const
|
|
335
|
+
const nt = {
|
|
325
336
|
base: {
|
|
326
337
|
kWkggS: "xl5mw0s",
|
|
327
338
|
kMwMTN: "xg6mlj0",
|
|
@@ -378,24 +389,24 @@ const J = {
|
|
|
378
389
|
k1K539: "x2mrtcw",
|
|
379
390
|
$$css: !0
|
|
380
391
|
}
|
|
381
|
-
},
|
|
382
|
-
default:
|
|
383
|
-
compact:
|
|
384
|
-
full:
|
|
392
|
+
}, re = {
|
|
393
|
+
default: nt.sizeDefault,
|
|
394
|
+
compact: nt.sizeCompact,
|
|
395
|
+
full: nt.sizeFull
|
|
385
396
|
};
|
|
386
|
-
function
|
|
387
|
-
variant:
|
|
388
|
-
size:
|
|
389
|
-
header:
|
|
390
|
-
onClick:
|
|
391
|
-
children:
|
|
397
|
+
function jn({
|
|
398
|
+
variant: t = "outlined",
|
|
399
|
+
size: e = "default",
|
|
400
|
+
header: n,
|
|
401
|
+
onClick: r,
|
|
402
|
+
children: s
|
|
392
403
|
}) {
|
|
393
|
-
return /* @__PURE__ */
|
|
394
|
-
|
|
395
|
-
|
|
404
|
+
return /* @__PURE__ */ A("div", { onClick: r, ...k(a.div, nt.base, nt[t], re[e]), children: [
|
|
405
|
+
n && /* @__PURE__ */ o("div", { ...k(a.div, nt.header), children: n }),
|
|
406
|
+
s
|
|
396
407
|
] });
|
|
397
408
|
}
|
|
398
|
-
const
|
|
409
|
+
const Z = {
|
|
399
410
|
root: {
|
|
400
411
|
k1xSpc: "x3nfvp2",
|
|
401
412
|
kGNEyG: "x6s0dn4",
|
|
@@ -445,27 +456,27 @@ const K = {
|
|
|
445
456
|
$$css: !0
|
|
446
457
|
}
|
|
447
458
|
};
|
|
448
|
-
function
|
|
449
|
-
name:
|
|
450
|
-
value:
|
|
451
|
-
checked:
|
|
452
|
-
defaultChecked:
|
|
453
|
-
disabled:
|
|
454
|
-
onChange:
|
|
455
|
-
children:
|
|
459
|
+
function Mn({
|
|
460
|
+
name: t,
|
|
461
|
+
value: e,
|
|
462
|
+
checked: n,
|
|
463
|
+
defaultChecked: r = !1,
|
|
464
|
+
disabled: s = !1,
|
|
465
|
+
onChange: i,
|
|
466
|
+
children: c
|
|
456
467
|
}) {
|
|
457
|
-
const x =
|
|
458
|
-
x ||
|
|
459
|
-
}, [x,
|
|
460
|
-
return /* @__PURE__ */
|
|
461
|
-
/* @__PURE__ */
|
|
462
|
-
/* @__PURE__ */
|
|
463
|
-
opacity:
|
|
464
|
-
}, children: /* @__PURE__ */
|
|
465
|
-
|
|
468
|
+
const x = n !== void 0, [d, l] = G(r), u = x ? n : d, g = W(($) => {
|
|
469
|
+
x || l($.target.checked), i?.($);
|
|
470
|
+
}, [x, i]);
|
|
471
|
+
return /* @__PURE__ */ A("label", { ...k(a.label, Z.root, s && Z.rootDisabled), children: [
|
|
472
|
+
/* @__PURE__ */ o("input", { type: "checkbox", name: t, value: e, checked: x ? n : void 0, defaultChecked: x ? void 0 : r, disabled: s, onChange: g, ...k(a.input, Z.input), dir: "auto" }),
|
|
473
|
+
/* @__PURE__ */ o("span", { ...k(a.span, Z.box, u ? Z.boxChecked : Z.boxUnchecked), "aria-hidden": !0, children: /* @__PURE__ */ o("svg", { width: 12, height: 12, viewBox: "0 0 12 12", fill: "none", style: {
|
|
474
|
+
opacity: u ? 1 : 0
|
|
475
|
+
}, children: /* @__PURE__ */ o("polyline", { points: "2.5 6 5 8.5 9.5 3.5", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }) }) }),
|
|
476
|
+
c && /* @__PURE__ */ o("span", { ...k(a.span), children: c })
|
|
466
477
|
] });
|
|
467
478
|
}
|
|
468
|
-
const
|
|
479
|
+
const dt = {
|
|
469
480
|
root: {
|
|
470
481
|
k1xSpc: "x78zum5",
|
|
471
482
|
kXwgrk: "xdt5ytf",
|
|
@@ -488,22 +499,183 @@ const ce = {
|
|
|
488
499
|
$$css: !0
|
|
489
500
|
}
|
|
490
501
|
};
|
|
491
|
-
function
|
|
492
|
-
message:
|
|
493
|
-
icon:
|
|
494
|
-
action:
|
|
502
|
+
function zn({
|
|
503
|
+
message: t,
|
|
504
|
+
icon: e,
|
|
505
|
+
action: n
|
|
495
506
|
}) {
|
|
496
|
-
return /* @__PURE__ */
|
|
497
|
-
|
|
498
|
-
/* @__PURE__ */
|
|
499
|
-
|
|
507
|
+
return /* @__PURE__ */ A("div", { ...k(a.div, dt.root), children: [
|
|
508
|
+
e,
|
|
509
|
+
/* @__PURE__ */ o("p", { ...k(a.p, dt.message), children: t }),
|
|
510
|
+
n && /* @__PURE__ */ o("div", { ...k(a.div, dt.action), children: n })
|
|
500
511
|
] });
|
|
501
512
|
}
|
|
502
|
-
const
|
|
503
|
-
|
|
504
|
-
|
|
513
|
+
const Wt = {
|
|
514
|
+
bodySm: {
|
|
515
|
+
kMv6JI: "x2nsvjj",
|
|
516
|
+
kGuDYH: "x1if0jgx",
|
|
517
|
+
kLWn49: "xjet2r4",
|
|
518
|
+
k63SB2: "x18r2jh2",
|
|
519
|
+
kb6lSQ: "xeuwabj",
|
|
520
|
+
$$css: !0
|
|
521
|
+
},
|
|
522
|
+
bodyMd: {
|
|
523
|
+
kMv6JI: "x2nsvjj",
|
|
524
|
+
kGuDYH: "xdio1jr",
|
|
525
|
+
kLWn49: "xr42xmp",
|
|
526
|
+
k63SB2: "x18r2jh2",
|
|
527
|
+
kb6lSQ: "xeuwabj",
|
|
528
|
+
$$css: !0
|
|
529
|
+
},
|
|
530
|
+
bodyLg: {
|
|
531
|
+
kMv6JI: "x2nsvjj",
|
|
532
|
+
kGuDYH: "x1im6ioy",
|
|
533
|
+
kLWn49: "xq792j8",
|
|
534
|
+
k63SB2: "x18r2jh2",
|
|
535
|
+
kb6lSQ: "xeuwabj",
|
|
536
|
+
$$css: !0
|
|
537
|
+
},
|
|
538
|
+
caption: {
|
|
539
|
+
kMv6JI: "x2nsvjj",
|
|
540
|
+
kGuDYH: "x1exbi8",
|
|
541
|
+
kLWn49: "xsst0cm",
|
|
542
|
+
k63SB2: "x18r2jh2",
|
|
543
|
+
kb6lSQ: "xw417u5",
|
|
544
|
+
$$css: !0
|
|
545
|
+
},
|
|
546
|
+
label: {
|
|
547
|
+
kMv6JI: "x2nsvjj",
|
|
548
|
+
kGuDYH: "x1if0jgx",
|
|
549
|
+
kLWn49: "xjet2r4",
|
|
550
|
+
k63SB2: "x9n8r49",
|
|
551
|
+
kb6lSQ: "xeuwabj",
|
|
552
|
+
$$css: !0
|
|
553
|
+
},
|
|
554
|
+
code: {
|
|
555
|
+
kMv6JI: "xwm3oof",
|
|
556
|
+
kGuDYH: "x1if0jgx",
|
|
557
|
+
kLWn49: "xjet2r4",
|
|
558
|
+
k63SB2: "x18r2jh2",
|
|
559
|
+
kb6lSQ: "xeuwabj",
|
|
560
|
+
$$css: !0
|
|
561
|
+
},
|
|
562
|
+
overline: {
|
|
563
|
+
kMv6JI: "x2nsvjj",
|
|
564
|
+
kGuDYH: "x1exbi8",
|
|
565
|
+
kLWn49: "xsst0cm",
|
|
566
|
+
k63SB2: "x17wh69p",
|
|
567
|
+
kb6lSQ: "xw417u5",
|
|
568
|
+
kP9fke: "xtvhhri",
|
|
569
|
+
$$css: !0
|
|
570
|
+
},
|
|
571
|
+
headingSm: {
|
|
572
|
+
kMv6JI: "x2nsvjj",
|
|
573
|
+
kGuDYH: "x1oapjaw",
|
|
574
|
+
kLWn49: "x1u83dz7",
|
|
575
|
+
k63SB2: "x17wh69p",
|
|
576
|
+
kb6lSQ: "xgvl3jc",
|
|
577
|
+
$$css: !0
|
|
578
|
+
},
|
|
579
|
+
headingMd: {
|
|
580
|
+
kMv6JI: "x2nsvjj",
|
|
581
|
+
kGuDYH: "x4mf1k4",
|
|
582
|
+
kLWn49: "xaen94t",
|
|
583
|
+
k63SB2: "x17wh69p",
|
|
584
|
+
kb6lSQ: "xgvl3jc",
|
|
585
|
+
$$css: !0
|
|
586
|
+
},
|
|
587
|
+
headingLg: {
|
|
588
|
+
kMv6JI: "x2nsvjj",
|
|
589
|
+
kGuDYH: "xrvdcq",
|
|
590
|
+
kLWn49: "x1nwb6vd",
|
|
591
|
+
k63SB2: "xkzss2h",
|
|
592
|
+
kb6lSQ: "xgvl3jc",
|
|
593
|
+
$$css: !0
|
|
594
|
+
},
|
|
595
|
+
headingXl: {
|
|
596
|
+
kMv6JI: "x2nsvjj",
|
|
597
|
+
kGuDYH: "x6bxe4h",
|
|
598
|
+
kLWn49: "xdyfji9",
|
|
599
|
+
k63SB2: "xkzss2h",
|
|
600
|
+
kb6lSQ: "xgvl3jc",
|
|
601
|
+
$$css: !0
|
|
602
|
+
},
|
|
603
|
+
displaySm: {
|
|
604
|
+
kMv6JI: "x2nsvjj",
|
|
605
|
+
kGuDYH: "xc0d0us",
|
|
606
|
+
kLWn49: "x1u7k74",
|
|
607
|
+
k63SB2: "xkzss2h",
|
|
608
|
+
kb6lSQ: "xgvl3jc",
|
|
609
|
+
$$css: !0
|
|
610
|
+
},
|
|
611
|
+
displayMd: {
|
|
612
|
+
kMv6JI: "x2nsvjj",
|
|
613
|
+
kGuDYH: "x16w3ugi",
|
|
614
|
+
kLWn49: "x1uo3zyz",
|
|
615
|
+
k63SB2: "xkzss2h",
|
|
616
|
+
kb6lSQ: "xgvl3jc",
|
|
617
|
+
$$css: !0
|
|
618
|
+
},
|
|
619
|
+
displayLg: {
|
|
620
|
+
kMv6JI: "x2nsvjj",
|
|
621
|
+
kGuDYH: "xh3afdc",
|
|
622
|
+
kLWn49: "x1159mfc",
|
|
623
|
+
k63SB2: "xkzss2h",
|
|
624
|
+
kb6lSQ: "xgvl3jc",
|
|
625
|
+
$$css: !0
|
|
626
|
+
}
|
|
627
|
+
}, it = {
|
|
628
|
+
default: {
|
|
629
|
+
kMwMTN: "xg6mlj0",
|
|
630
|
+
$$css: !0
|
|
631
|
+
},
|
|
632
|
+
muted: {
|
|
633
|
+
kMwMTN: "x19e7f62",
|
|
634
|
+
$$css: !0
|
|
635
|
+
},
|
|
636
|
+
accent: {
|
|
637
|
+
kMwMTN: "x8fix86",
|
|
638
|
+
$$css: !0
|
|
639
|
+
},
|
|
640
|
+
alignStart: {
|
|
641
|
+
k9WMMc: "x1yc453h",
|
|
642
|
+
$$css: !0
|
|
643
|
+
},
|
|
644
|
+
alignCenter: {
|
|
645
|
+
k9WMMc: "x2b8uid",
|
|
646
|
+
$$css: !0
|
|
647
|
+
},
|
|
648
|
+
alignEnd: {
|
|
649
|
+
k9WMMc: "xp4054r",
|
|
650
|
+
$$css: !0
|
|
651
|
+
}
|
|
652
|
+
}, se = {
|
|
653
|
+
1: "headingXl",
|
|
654
|
+
2: "headingLg",
|
|
655
|
+
3: "headingMd",
|
|
656
|
+
4: "headingSm",
|
|
657
|
+
5: "headingSm",
|
|
658
|
+
6: "headingSm"
|
|
659
|
+
}, oe = {
|
|
660
|
+
start: it.alignStart,
|
|
661
|
+
center: it.alignCenter,
|
|
662
|
+
end: it.alignEnd
|
|
663
|
+
};
|
|
664
|
+
function In({
|
|
665
|
+
level: t,
|
|
666
|
+
variant: e,
|
|
667
|
+
color: n = "default",
|
|
668
|
+
align: r,
|
|
669
|
+
children: s
|
|
670
|
+
}) {
|
|
671
|
+
const i = e ?? se[t], c = [Wt[i], it[n], r && oe[r]];
|
|
672
|
+
return t === 1 ? /* @__PURE__ */ o("h1", { ...k(a.h1, c), children: s }) : t === 2 ? /* @__PURE__ */ o("h2", { ...k(a.h2, c), children: s }) : t === 3 ? /* @__PURE__ */ o("h3", { ...k(a.h3, c), children: s }) : t === 4 ? /* @__PURE__ */ o("h4", { ...k(a.h4, c), children: s }) : t === 5 ? /* @__PURE__ */ o("h5", { ...k(a.h5, c), children: s }) : /* @__PURE__ */ o("h6", { ...k(a.h6, c), children: s });
|
|
673
|
+
}
|
|
674
|
+
const Ht = D(null);
|
|
675
|
+
function ot() {
|
|
676
|
+
return N(Ht);
|
|
505
677
|
}
|
|
506
|
-
const
|
|
678
|
+
const xt = {
|
|
507
679
|
root: {
|
|
508
680
|
k1xSpc: "x78zum5",
|
|
509
681
|
kXwgrk: "xdt5ytf",
|
|
@@ -527,46 +699,46 @@ const te = {
|
|
|
527
699
|
$$css: !0
|
|
528
700
|
}
|
|
529
701
|
};
|
|
530
|
-
function
|
|
531
|
-
invalid:
|
|
532
|
-
children: t
|
|
533
|
-
}) {
|
|
534
|
-
const r = Y(), n = ie(() => ({
|
|
535
|
-
controlId: `${r}-control`,
|
|
536
|
-
descriptionId: `${r}-description`,
|
|
537
|
-
errorId: `${r}-error`,
|
|
538
|
-
invalid: e
|
|
539
|
-
}), [r, e]);
|
|
540
|
-
return /* @__PURE__ */ s(ye.Provider, { value: n, children: /* @__PURE__ */ s("div", { ...k(u.div, te.root), children: t }) });
|
|
541
|
-
}
|
|
542
|
-
function _e({
|
|
702
|
+
function ie({
|
|
703
|
+
invalid: t = !1,
|
|
543
704
|
children: e
|
|
544
705
|
}) {
|
|
545
|
-
const
|
|
546
|
-
|
|
706
|
+
const n = K(), r = ht(() => ({
|
|
707
|
+
controlId: `${n}-control`,
|
|
708
|
+
descriptionId: `${n}-description`,
|
|
709
|
+
errorId: `${n}-error`,
|
|
710
|
+
invalid: t
|
|
711
|
+
}), [n, t]);
|
|
712
|
+
return /* @__PURE__ */ o(Ht.Provider, { value: r, children: /* @__PURE__ */ o("div", { ...k(a.div, xt.root), children: e }) });
|
|
713
|
+
}
|
|
714
|
+
function ce({
|
|
715
|
+
children: t
|
|
716
|
+
}) {
|
|
717
|
+
const e = ot();
|
|
718
|
+
return /* @__PURE__ */ o("label", { htmlFor: e?.controlId, ...k(a.label, xt.label), children: t });
|
|
547
719
|
}
|
|
548
|
-
function
|
|
549
|
-
children:
|
|
720
|
+
function xe({
|
|
721
|
+
children: t
|
|
550
722
|
}) {
|
|
551
|
-
const
|
|
552
|
-
return /* @__PURE__ */
|
|
723
|
+
const e = ot();
|
|
724
|
+
return /* @__PURE__ */ o("span", { id: e?.descriptionId, ...k(a.span, xt.description), children: t });
|
|
553
725
|
}
|
|
554
|
-
function
|
|
555
|
-
children:
|
|
726
|
+
function le({
|
|
727
|
+
children: t
|
|
556
728
|
}) {
|
|
557
|
-
const
|
|
558
|
-
return !
|
|
559
|
-
}
|
|
560
|
-
const
|
|
561
|
-
Root:
|
|
562
|
-
Label:
|
|
563
|
-
Description:
|
|
564
|
-
Error:
|
|
565
|
-
},
|
|
566
|
-
function
|
|
567
|
-
return
|
|
568
|
-
}
|
|
569
|
-
const
|
|
729
|
+
const e = ot();
|
|
730
|
+
return !e?.invalid && !t ? null : /* @__PURE__ */ o("span", { id: e?.errorId, role: "alert", ...k(a.span, xt.error), children: t });
|
|
731
|
+
}
|
|
732
|
+
const qn = {
|
|
733
|
+
Root: ie,
|
|
734
|
+
Label: ce,
|
|
735
|
+
Description: xe,
|
|
736
|
+
Error: le
|
|
737
|
+
}, Gt = D(null);
|
|
738
|
+
function ke() {
|
|
739
|
+
return N(Gt);
|
|
740
|
+
}
|
|
741
|
+
const gt = {
|
|
570
742
|
base: {
|
|
571
743
|
kzqmXN: "xh8yej3",
|
|
572
744
|
kLKAdn: "x1y6gaq4",
|
|
@@ -605,26 +777,26 @@ const xe = {
|
|
|
605
777
|
$$css: !0
|
|
606
778
|
}
|
|
607
779
|
};
|
|
608
|
-
function
|
|
609
|
-
variant:
|
|
610
|
-
type:
|
|
611
|
-
name:
|
|
612
|
-
placeholder:
|
|
613
|
-
required:
|
|
614
|
-
minLength:
|
|
615
|
-
pattern:
|
|
780
|
+
function Wn({
|
|
781
|
+
variant: t = "default",
|
|
782
|
+
type: e = "text",
|
|
783
|
+
name: n,
|
|
784
|
+
placeholder: r,
|
|
785
|
+
required: s,
|
|
786
|
+
minLength: i,
|
|
787
|
+
pattern: c,
|
|
616
788
|
autoComplete: x,
|
|
617
789
|
value: d,
|
|
618
|
-
defaultValue:
|
|
619
|
-
disabled:
|
|
790
|
+
defaultValue: l,
|
|
791
|
+
disabled: u,
|
|
620
792
|
onChange: g
|
|
621
793
|
}) {
|
|
622
|
-
const
|
|
623
|
-
pattern:
|
|
794
|
+
const $ = ot(), w = ke(), h = c !== void 0 ? {
|
|
795
|
+
pattern: c
|
|
624
796
|
} : void 0;
|
|
625
|
-
return /* @__PURE__ */
|
|
797
|
+
return /* @__PURE__ */ o("input", { id: $?.controlId, type: e, name: n, placeholder: r, required: s, minLength: i, autoComplete: x, value: d, defaultValue: l, disabled: u, "aria-describedby": $ ? `${$.descriptionId} ${$.invalid ? $.errorId : ""}`.trim() : void 0, "aria-invalid": $?.invalid || t === "error" || void 0, onChange: g, ...k(a.input, gt.base, gt[t], w?.inGroup && gt.inGroup), ...h, dir: "auto" });
|
|
626
798
|
}
|
|
627
|
-
const
|
|
799
|
+
const tt = {
|
|
628
800
|
wrapper: {
|
|
629
801
|
k1xSpc: "x78zum5",
|
|
630
802
|
kGNEyG: "x1qjc9v5",
|
|
@@ -672,28 +844,34 @@ const _ = {
|
|
|
672
844
|
kIyJzY: "xx6bhzk",
|
|
673
845
|
kAMwcw: "xwji4o3",
|
|
674
846
|
$$css: !0
|
|
847
|
+
},
|
|
848
|
+
addonDisabled: {
|
|
849
|
+
kSiTet: "xti2d7y",
|
|
850
|
+
kkrTdU: "x1h6gzvc",
|
|
851
|
+
$$css: !0
|
|
675
852
|
}
|
|
676
853
|
};
|
|
677
|
-
function
|
|
678
|
-
children:
|
|
854
|
+
function ae({
|
|
855
|
+
children: t
|
|
679
856
|
}) {
|
|
680
|
-
const
|
|
857
|
+
const e = ht(() => ({
|
|
681
858
|
inGroup: !0
|
|
682
859
|
}), []);
|
|
683
|
-
return /* @__PURE__ */
|
|
860
|
+
return /* @__PURE__ */ o(Gt.Provider, { value: e, children: /* @__PURE__ */ o("div", { ...k(a.div, tt.wrapper), children: t }) });
|
|
684
861
|
}
|
|
685
|
-
function
|
|
686
|
-
position:
|
|
687
|
-
onClick:
|
|
862
|
+
function ue({
|
|
863
|
+
position: t = "end",
|
|
864
|
+
onClick: e,
|
|
865
|
+
disabled: n,
|
|
688
866
|
children: r
|
|
689
867
|
}) {
|
|
690
|
-
const
|
|
691
|
-
return
|
|
868
|
+
const s = t === "start" ? tt.addonStart : tt.addonEnd, i = [tt.addon, s, e && !n && tt.addonClickable, n && tt.addonDisabled];
|
|
869
|
+
return e ? /* @__PURE__ */ o("button", { type: "button", onClick: e, disabled: n, ...k(a.button, i), children: r }) : /* @__PURE__ */ o("span", { ...k(a.span, i), children: r });
|
|
692
870
|
}
|
|
693
|
-
const
|
|
694
|
-
Root:
|
|
695
|
-
Addon:
|
|
696
|
-
},
|
|
871
|
+
const Hn = {
|
|
872
|
+
Root: ae,
|
|
873
|
+
Addon: ue
|
|
874
|
+
}, st = {
|
|
697
875
|
base: {
|
|
698
876
|
k1xSpc: "x3nfvp2",
|
|
699
877
|
kGNEyG: "x6s0dn4",
|
|
@@ -743,22 +921,22 @@ const cr = {
|
|
|
743
921
|
kzqmXN: "xh8yej3",
|
|
744
922
|
$$css: !0
|
|
745
923
|
}
|
|
746
|
-
},
|
|
747
|
-
default:
|
|
748
|
-
small:
|
|
924
|
+
}, de = {
|
|
925
|
+
default: st.sizeDefault,
|
|
926
|
+
small: st.sizeSmall
|
|
749
927
|
};
|
|
750
|
-
function
|
|
751
|
-
href:
|
|
752
|
-
variant:
|
|
753
|
-
size:
|
|
754
|
-
fullWidth:
|
|
755
|
-
target:
|
|
756
|
-
rel:
|
|
757
|
-
children:
|
|
928
|
+
function Gn({
|
|
929
|
+
href: t,
|
|
930
|
+
variant: e = "primary",
|
|
931
|
+
size: n = "default",
|
|
932
|
+
fullWidth: r = !1,
|
|
933
|
+
target: s,
|
|
934
|
+
rel: i,
|
|
935
|
+
children: c
|
|
758
936
|
}) {
|
|
759
|
-
return /* @__PURE__ */
|
|
937
|
+
return /* @__PURE__ */ o("a", { href: t, target: s, rel: i, ...k(a.a, st.base, de[n], st[e], r && st.fullWidth), children: c });
|
|
760
938
|
}
|
|
761
|
-
const
|
|
939
|
+
const J = {
|
|
762
940
|
root: {
|
|
763
941
|
kVAEAm: "x1n2onr6",
|
|
764
942
|
k1xSpc: "x3nfvp2",
|
|
@@ -842,171 +1020,171 @@ const D = {
|
|
|
842
1020
|
kMwMTN: "xg6mlj0 x1c35pte",
|
|
843
1021
|
$$css: !0
|
|
844
1022
|
}
|
|
845
|
-
},
|
|
846
|
-
function
|
|
847
|
-
const
|
|
848
|
-
if (!
|
|
849
|
-
return
|
|
1023
|
+
}, Tt = D(null);
|
|
1024
|
+
function lt() {
|
|
1025
|
+
const t = N(Tt);
|
|
1026
|
+
if (!t) throw new Error("Menu compound components must be used within Menu.Root");
|
|
1027
|
+
return t;
|
|
850
1028
|
}
|
|
851
|
-
function
|
|
852
|
-
const [
|
|
853
|
-
|
|
854
|
-
}, []), g =
|
|
855
|
-
|
|
1029
|
+
function ge() {
|
|
1030
|
+
const [t, e] = G(!1), [n, r] = G(null), s = K(), i = y(null), c = y(null), x = y(/* @__PURE__ */ new Map()), d = y([]), l = y(!1), u = W(() => {
|
|
1031
|
+
e(!1), r(null), l.current = !1, c.current?.focus();
|
|
1032
|
+
}, []), g = W(() => {
|
|
1033
|
+
e((h) => (h ? (r(null), l.current = !1) : l.current = !0, !h));
|
|
856
1034
|
}, []);
|
|
857
|
-
|
|
858
|
-
if (
|
|
859
|
-
|
|
860
|
-
const
|
|
861
|
-
|
|
1035
|
+
H(() => {
|
|
1036
|
+
if (t && l.current) {
|
|
1037
|
+
l.current = !1;
|
|
1038
|
+
const h = d.current;
|
|
1039
|
+
h.length > 0 && r(h[0]);
|
|
862
1040
|
}
|
|
863
|
-
}, [
|
|
864
|
-
const
|
|
865
|
-
x.current.set(
|
|
866
|
-
const f = x.current,
|
|
867
|
-
return
|
|
868
|
-
const
|
|
869
|
-
return !
|
|
870
|
-
}), d.current =
|
|
871
|
-
x.current.delete(
|
|
1041
|
+
}, [t]);
|
|
1042
|
+
const $ = W((h, v) => {
|
|
1043
|
+
x.current.set(h, v);
|
|
1044
|
+
const f = x.current, m = [...f.keys()];
|
|
1045
|
+
return m.sort((p, b) => {
|
|
1046
|
+
const Y = f.get(p), z = f.get(b);
|
|
1047
|
+
return !Y || !z ? 0 : Y.compareDocumentPosition(z) & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : 1;
|
|
1048
|
+
}), d.current = m, () => {
|
|
1049
|
+
x.current.delete(h), d.current = d.current.filter((p) => p !== h);
|
|
872
1050
|
};
|
|
873
1051
|
}, []);
|
|
874
|
-
return
|
|
875
|
-
const
|
|
876
|
-
if (!
|
|
877
|
-
function
|
|
878
|
-
const
|
|
879
|
-
if (
|
|
1052
|
+
return H(() => {
|
|
1053
|
+
const h = i.current;
|
|
1054
|
+
if (!h || !t) return;
|
|
1055
|
+
function v(f) {
|
|
1056
|
+
const m = d.current;
|
|
1057
|
+
if (m.length !== 0)
|
|
880
1058
|
switch (f.key) {
|
|
881
1059
|
case "ArrowDown": {
|
|
882
|
-
f.preventDefault(),
|
|
883
|
-
const b =
|
|
884
|
-
return
|
|
1060
|
+
f.preventDefault(), r((p) => {
|
|
1061
|
+
const b = p ? m.indexOf(p) : -1;
|
|
1062
|
+
return m[(b + 1) % m.length];
|
|
885
1063
|
});
|
|
886
1064
|
break;
|
|
887
1065
|
}
|
|
888
1066
|
case "ArrowUp": {
|
|
889
|
-
f.preventDefault(),
|
|
890
|
-
const b =
|
|
891
|
-
return
|
|
1067
|
+
f.preventDefault(), r((p) => {
|
|
1068
|
+
const b = p ? m.indexOf(p) : 0;
|
|
1069
|
+
return m[(b - 1 + m.length) % m.length];
|
|
892
1070
|
});
|
|
893
1071
|
break;
|
|
894
1072
|
}
|
|
895
1073
|
case "Home": {
|
|
896
|
-
f.preventDefault(),
|
|
1074
|
+
f.preventDefault(), r(m[0]);
|
|
897
1075
|
break;
|
|
898
1076
|
}
|
|
899
1077
|
case "End": {
|
|
900
|
-
f.preventDefault(),
|
|
1078
|
+
f.preventDefault(), r(m[m.length - 1]);
|
|
901
1079
|
break;
|
|
902
1080
|
}
|
|
903
1081
|
case "Enter":
|
|
904
1082
|
case " ": {
|
|
905
1083
|
f.preventDefault();
|
|
906
|
-
const
|
|
907
|
-
|
|
1084
|
+
const p = x.current;
|
|
1085
|
+
r((b) => (b && p.get(b)?.click(), b));
|
|
908
1086
|
break;
|
|
909
1087
|
}
|
|
910
1088
|
case "Escape":
|
|
911
1089
|
case "Tab": {
|
|
912
|
-
|
|
1090
|
+
u();
|
|
913
1091
|
break;
|
|
914
1092
|
}
|
|
915
1093
|
}
|
|
916
1094
|
}
|
|
917
|
-
return
|
|
918
|
-
}, [
|
|
1095
|
+
return h.addEventListener("keydown", v), () => h.removeEventListener("keydown", v);
|
|
1096
|
+
}, [t, u]), {
|
|
919
1097
|
ctx: {
|
|
920
|
-
open:
|
|
1098
|
+
open: t,
|
|
921
1099
|
toggle: g,
|
|
922
|
-
close:
|
|
923
|
-
menuId:
|
|
924
|
-
highlightedId:
|
|
925
|
-
setHighlightedId:
|
|
926
|
-
registerItem:
|
|
927
|
-
triggerRef:
|
|
1100
|
+
close: u,
|
|
1101
|
+
menuId: s,
|
|
1102
|
+
highlightedId: n,
|
|
1103
|
+
setHighlightedId: r,
|
|
1104
|
+
registerItem: $,
|
|
1105
|
+
triggerRef: c
|
|
928
1106
|
},
|
|
929
|
-
rootRef:
|
|
1107
|
+
rootRef: i
|
|
930
1108
|
};
|
|
931
1109
|
}
|
|
932
|
-
function
|
|
933
|
-
children:
|
|
1110
|
+
function pe({
|
|
1111
|
+
children: t
|
|
934
1112
|
}) {
|
|
935
1113
|
const {
|
|
936
|
-
ctx:
|
|
937
|
-
rootRef:
|
|
938
|
-
} =
|
|
939
|
-
return /* @__PURE__ */
|
|
1114
|
+
ctx: e,
|
|
1115
|
+
rootRef: n
|
|
1116
|
+
} = ge();
|
|
1117
|
+
return /* @__PURE__ */ o(Tt.Provider, { value: e, children: /* @__PURE__ */ o("div", { ref: n, ...k(a.div, J.root), children: t }) });
|
|
940
1118
|
}
|
|
941
|
-
function
|
|
942
|
-
children:
|
|
1119
|
+
function he({
|
|
1120
|
+
children: t
|
|
943
1121
|
}) {
|
|
944
1122
|
const {
|
|
945
|
-
open:
|
|
946
|
-
toggle:
|
|
947
|
-
menuId:
|
|
948
|
-
triggerRef:
|
|
949
|
-
} =
|
|
950
|
-
return
|
|
951
|
-
|
|
952
|
-
}), /* @__PURE__ */
|
|
953
|
-
}
|
|
954
|
-
function
|
|
955
|
-
children:
|
|
956
|
-
align:
|
|
1123
|
+
open: e,
|
|
1124
|
+
toggle: n,
|
|
1125
|
+
menuId: r,
|
|
1126
|
+
triggerRef: s
|
|
1127
|
+
} = lt(), i = y(null);
|
|
1128
|
+
return H(() => {
|
|
1129
|
+
s.current = i.current;
|
|
1130
|
+
}), /* @__PURE__ */ o("button", { ref: i, type: "button", onClick: n, "aria-expanded": e, "aria-haspopup": "menu", "aria-controls": e ? r : void 0, ...k(a.button, J.trigger), children: t });
|
|
1131
|
+
}
|
|
1132
|
+
function fe({
|
|
1133
|
+
children: t,
|
|
1134
|
+
align: e = "start"
|
|
957
1135
|
}) {
|
|
958
1136
|
const {
|
|
959
|
-
open:
|
|
960
|
-
close:
|
|
961
|
-
menuId:
|
|
962
|
-
highlightedId:
|
|
963
|
-
} =
|
|
964
|
-
return
|
|
965
|
-
/* @__PURE__ */
|
|
966
|
-
/* @__PURE__ */
|
|
1137
|
+
open: n,
|
|
1138
|
+
close: r,
|
|
1139
|
+
menuId: s,
|
|
1140
|
+
highlightedId: i
|
|
1141
|
+
} = lt();
|
|
1142
|
+
return n ? /* @__PURE__ */ A(U, { children: [
|
|
1143
|
+
/* @__PURE__ */ o("div", { ...k(a.div, J.backdrop), onClick: r }),
|
|
1144
|
+
/* @__PURE__ */ o("div", { id: s, role: "menu", "aria-activedescendant": i ?? void 0, ...k(a.div, J.popup, e === "end" && J.popupEnd), children: t })
|
|
967
1145
|
] }) : null;
|
|
968
1146
|
}
|
|
969
|
-
function
|
|
970
|
-
onClick:
|
|
971
|
-
children:
|
|
1147
|
+
function $e({
|
|
1148
|
+
onClick: t,
|
|
1149
|
+
children: e
|
|
972
1150
|
}) {
|
|
973
1151
|
const {
|
|
974
|
-
close:
|
|
975
|
-
highlightedId:
|
|
976
|
-
setHighlightedId:
|
|
977
|
-
registerItem:
|
|
978
|
-
} =
|
|
979
|
-
return
|
|
980
|
-
const
|
|
981
|
-
if (
|
|
982
|
-
return c
|
|
983
|
-
}, [
|
|
984
|
-
|
|
985
|
-
}, onPointerEnter: () =>
|
|
986
|
-
}
|
|
987
|
-
function
|
|
988
|
-
href:
|
|
989
|
-
children:
|
|
1152
|
+
close: n,
|
|
1153
|
+
highlightedId: r,
|
|
1154
|
+
setHighlightedId: s,
|
|
1155
|
+
registerItem: i
|
|
1156
|
+
} = lt(), c = K(), x = y(null), d = r === c;
|
|
1157
|
+
return H(() => {
|
|
1158
|
+
const u = x.current;
|
|
1159
|
+
if (u)
|
|
1160
|
+
return i(c, u);
|
|
1161
|
+
}, [c, i]), /* @__PURE__ */ o("div", { ref: x, id: c, role: "menuitem", onClick: () => {
|
|
1162
|
+
t?.(), n();
|
|
1163
|
+
}, onPointerEnter: () => s(c), ...k(a.div, J.item, d && J.itemHighlighted), children: e });
|
|
1164
|
+
}
|
|
1165
|
+
function ve({
|
|
1166
|
+
href: t,
|
|
1167
|
+
children: e
|
|
990
1168
|
}) {
|
|
991
1169
|
const {
|
|
992
|
-
close:
|
|
993
|
-
highlightedId:
|
|
994
|
-
setHighlightedId:
|
|
995
|
-
registerItem:
|
|
996
|
-
} =
|
|
997
|
-
return
|
|
998
|
-
const
|
|
999
|
-
if (
|
|
1000
|
-
return c
|
|
1001
|
-
}, [
|
|
1002
|
-
}
|
|
1003
|
-
const
|
|
1004
|
-
Root:
|
|
1005
|
-
Trigger:
|
|
1006
|
-
Popup:
|
|
1007
|
-
Item:
|
|
1008
|
-
LinkItem:
|
|
1009
|
-
},
|
|
1170
|
+
close: n,
|
|
1171
|
+
highlightedId: r,
|
|
1172
|
+
setHighlightedId: s,
|
|
1173
|
+
registerItem: i
|
|
1174
|
+
} = lt(), c = K(), x = y(null), d = r === c;
|
|
1175
|
+
return H(() => {
|
|
1176
|
+
const l = x.current;
|
|
1177
|
+
if (l)
|
|
1178
|
+
return i(c, l);
|
|
1179
|
+
}, [c, i]), /* @__PURE__ */ o("a", { ref: x, id: c, href: t, onClick: n, role: "menuitem", onPointerEnter: () => s(c), ...k(a.a, J.item, J.linkItem, d && J.itemHighlighted), children: e });
|
|
1180
|
+
}
|
|
1181
|
+
const Tn = {
|
|
1182
|
+
Root: pe,
|
|
1183
|
+
Trigger: he,
|
|
1184
|
+
Popup: fe,
|
|
1185
|
+
Item: $e,
|
|
1186
|
+
LinkItem: ve
|
|
1187
|
+
}, B = {
|
|
1010
1188
|
root: {
|
|
1011
1189
|
kVAEAm: "x1n2onr6",
|
|
1012
1190
|
kVQacm: "xb3r6kr",
|
|
@@ -1075,131 +1253,131 @@ const lr = {
|
|
|
1075
1253
|
kIyJzY: "xx6bhzk",
|
|
1076
1254
|
$$css: !0
|
|
1077
1255
|
},
|
|
1078
|
-
viewportMaxHeight: (
|
|
1079
|
-
kskxy:
|
|
1256
|
+
viewportMaxHeight: (t) => [{
|
|
1257
|
+
kskxy: t != null ? "x1jols5v" : t,
|
|
1080
1258
|
$$css: !0
|
|
1081
1259
|
}, {
|
|
1082
|
-
"--x-maxHeight": ((
|
|
1260
|
+
"--x-maxHeight": ((e) => typeof e == "number" ? e + "px" : e ?? void 0)(t)
|
|
1083
1261
|
}],
|
|
1084
|
-
thumbVertical: (
|
|
1085
|
-
kZKoxP:
|
|
1086
|
-
k3aq6I:
|
|
1262
|
+
thumbVertical: (t, e) => [{
|
|
1263
|
+
kZKoxP: t != null ? "x16ye13r" : t,
|
|
1264
|
+
k3aq6I: e != null ? "xsqj5wx" : e,
|
|
1087
1265
|
$$css: !0
|
|
1088
1266
|
}, {
|
|
1089
|
-
"--x-height": ((
|
|
1090
|
-
"--x-transform":
|
|
1267
|
+
"--x-height": ((n) => typeof n == "number" ? n + "px" : n ?? void 0)(t),
|
|
1268
|
+
"--x-transform": e ?? void 0
|
|
1091
1269
|
}],
|
|
1092
|
-
thumbHorizontal: (
|
|
1093
|
-
kzqmXN:
|
|
1094
|
-
k3aq6I:
|
|
1270
|
+
thumbHorizontal: (t, e) => [{
|
|
1271
|
+
kzqmXN: t != null ? "x5lhr3w" : t,
|
|
1272
|
+
k3aq6I: e != null ? "xsqj5wx" : e,
|
|
1095
1273
|
$$css: !0
|
|
1096
1274
|
}, {
|
|
1097
|
-
"--x-width": ((
|
|
1098
|
-
"--x-transform":
|
|
1275
|
+
"--x-width": ((n) => typeof n == "number" ? n + "px" : n ?? void 0)(t),
|
|
1276
|
+
"--x-transform": e ?? void 0
|
|
1099
1277
|
}]
|
|
1100
|
-
},
|
|
1101
|
-
function ne() {
|
|
1102
|
-
const e = H(ze);
|
|
1103
|
-
if (!e) throw new Error("ScrollArea compound components must be used within ScrollArea.Root");
|
|
1104
|
-
return e;
|
|
1105
|
-
}
|
|
1278
|
+
}, Et = D(null);
|
|
1106
1279
|
function kt() {
|
|
1107
|
-
const
|
|
1108
|
-
|
|
1109
|
-
|
|
1280
|
+
const t = N(Et);
|
|
1281
|
+
if (!t) throw new Error("ScrollArea compound components must be used within ScrollArea.Root");
|
|
1282
|
+
return t;
|
|
1283
|
+
}
|
|
1284
|
+
function me() {
|
|
1285
|
+
const t = y(null), e = y(null), [n, r] = G(0), [s, i] = G(0), [c, x] = G(0), [d, l] = G(0), [u, g] = G(0), [$, w] = G(0), [h, v] = G(!1), f = y(null), m = W(() => {
|
|
1286
|
+
const p = t.current;
|
|
1287
|
+
p && (r(p.scrollTop), i(p.scrollLeft), x(p.scrollHeight), l(p.scrollWidth), g(p.clientHeight), w(p.clientWidth), v(!0), f.current && clearTimeout(f.current), f.current = setTimeout(() => v(!1), 1e3));
|
|
1110
1288
|
}, []);
|
|
1111
|
-
return
|
|
1112
|
-
const
|
|
1113
|
-
if (!
|
|
1289
|
+
return H(() => {
|
|
1290
|
+
const p = t.current;
|
|
1291
|
+
if (!p) return;
|
|
1114
1292
|
const b = new ResizeObserver(() => {
|
|
1115
|
-
x(
|
|
1293
|
+
x(p.scrollHeight), l(p.scrollWidth), g(p.clientHeight), w(p.clientWidth);
|
|
1116
1294
|
});
|
|
1117
|
-
return b.observe(
|
|
1118
|
-
}, []),
|
|
1119
|
-
const
|
|
1120
|
-
if (
|
|
1121
|
-
return
|
|
1295
|
+
return b.observe(p), x(p.scrollHeight), l(p.scrollWidth), g(p.clientHeight), w(p.clientWidth), () => b.disconnect();
|
|
1296
|
+
}, []), H(() => {
|
|
1297
|
+
const p = t.current;
|
|
1298
|
+
if (p)
|
|
1299
|
+
return p.addEventListener("scroll", m, {
|
|
1122
1300
|
passive: !0
|
|
1123
|
-
}), () =>
|
|
1124
|
-
}, [
|
|
1125
|
-
viewportRef:
|
|
1126
|
-
contentRef:
|
|
1127
|
-
scrollTop:
|
|
1128
|
-
scrollLeft:
|
|
1129
|
-
scrollHeight:
|
|
1301
|
+
}), () => p.removeEventListener("scroll", m);
|
|
1302
|
+
}, [m]), {
|
|
1303
|
+
viewportRef: t,
|
|
1304
|
+
contentRef: e,
|
|
1305
|
+
scrollTop: n,
|
|
1306
|
+
scrollLeft: s,
|
|
1307
|
+
scrollHeight: c,
|
|
1130
1308
|
scrollWidth: d,
|
|
1131
|
-
clientHeight:
|
|
1132
|
-
clientWidth:
|
|
1133
|
-
scrolling:
|
|
1309
|
+
clientHeight: u,
|
|
1310
|
+
clientWidth: $,
|
|
1311
|
+
scrolling: h
|
|
1134
1312
|
};
|
|
1135
1313
|
}
|
|
1136
|
-
function
|
|
1137
|
-
children:
|
|
1314
|
+
function be({
|
|
1315
|
+
children: t
|
|
1138
1316
|
}) {
|
|
1139
|
-
const
|
|
1140
|
-
return /* @__PURE__ */
|
|
1317
|
+
const e = me();
|
|
1318
|
+
return /* @__PURE__ */ o(Et.Provider, { value: e, children: /* @__PURE__ */ o("div", { ...k(a.div, B.root), children: t }) });
|
|
1141
1319
|
}
|
|
1142
|
-
function
|
|
1143
|
-
children:
|
|
1144
|
-
maxHeight:
|
|
1320
|
+
function ye({
|
|
1321
|
+
children: t,
|
|
1322
|
+
maxHeight: e
|
|
1145
1323
|
}) {
|
|
1146
1324
|
const {
|
|
1147
|
-
viewportRef:
|
|
1148
|
-
} =
|
|
1149
|
-
return /* @__PURE__ */
|
|
1325
|
+
viewportRef: n
|
|
1326
|
+
} = kt();
|
|
1327
|
+
return /* @__PURE__ */ o("div", { ref: n, ...k(a.div, B.viewport, e != null && B.viewportMaxHeight(e)), children: t });
|
|
1150
1328
|
}
|
|
1151
|
-
function
|
|
1152
|
-
children:
|
|
1329
|
+
function we({
|
|
1330
|
+
children: t
|
|
1153
1331
|
}) {
|
|
1154
1332
|
const {
|
|
1155
|
-
contentRef:
|
|
1156
|
-
} =
|
|
1157
|
-
return /* @__PURE__ */
|
|
1333
|
+
contentRef: e
|
|
1334
|
+
} = kt();
|
|
1335
|
+
return /* @__PURE__ */ o("div", { ref: e, ...k(a.div, B.content), children: t });
|
|
1158
1336
|
}
|
|
1159
|
-
function
|
|
1160
|
-
orientation:
|
|
1161
|
-
children:
|
|
1337
|
+
function Se({
|
|
1338
|
+
orientation: t = "vertical",
|
|
1339
|
+
children: e
|
|
1162
1340
|
}) {
|
|
1163
1341
|
const {
|
|
1164
|
-
scrolling:
|
|
1165
|
-
scrollHeight:
|
|
1166
|
-
scrollWidth:
|
|
1167
|
-
clientHeight:
|
|
1168
|
-
clientWidth:
|
|
1169
|
-
} =
|
|
1170
|
-
return (
|
|
1171
|
-
}
|
|
1172
|
-
function
|
|
1173
|
-
orientation:
|
|
1342
|
+
scrolling: n,
|
|
1343
|
+
scrollHeight: r,
|
|
1344
|
+
scrollWidth: s,
|
|
1345
|
+
clientHeight: i,
|
|
1346
|
+
clientWidth: c
|
|
1347
|
+
} = kt();
|
|
1348
|
+
return (t === "vertical" ? r > i : s > c) ? /* @__PURE__ */ o("div", { ...k(a.div, B.scrollbar, t === "vertical" ? B.scrollbarVertical : B.scrollbarHorizontal, n ? B.scrollbarVisible : B.scrollbarHidden), children: e }) : null;
|
|
1349
|
+
}
|
|
1350
|
+
function je({
|
|
1351
|
+
orientation: t = "vertical"
|
|
1174
1352
|
}) {
|
|
1175
1353
|
const {
|
|
1176
|
-
viewportRef:
|
|
1177
|
-
scrollTop:
|
|
1178
|
-
scrollLeft:
|
|
1179
|
-
scrollHeight:
|
|
1180
|
-
scrollWidth:
|
|
1181
|
-
clientHeight:
|
|
1354
|
+
viewportRef: e,
|
|
1355
|
+
scrollTop: n,
|
|
1356
|
+
scrollLeft: r,
|
|
1357
|
+
scrollHeight: s,
|
|
1358
|
+
scrollWidth: i,
|
|
1359
|
+
clientHeight: c,
|
|
1182
1360
|
clientWidth: x
|
|
1183
|
-
} =
|
|
1184
|
-
j.preventDefault(), d.current = !0,
|
|
1185
|
-
}, [g,
|
|
1361
|
+
} = kt(), d = y(!1), l = y(0), u = y(0), g = t === "vertical", $ = Math.max(g ? c / s * 100 : x / i * 100, 10), w = g ? s - c : i - x, h = g ? c : x, v = $ / 100 * h, f = g ? n : r, m = w > 0 ? f / w * (h - v) : 0, p = g ? B.thumbVertical(`${$}%`, `translateY(${m}px)`) : B.thumbHorizontal(`${$}%`, `translateX(${m}px)`), b = W((j) => {
|
|
1362
|
+
j.preventDefault(), d.current = !0, l.current = g ? j.clientY : j.clientX, u.current = g ? e.current?.scrollTop ?? 0 : e.current?.scrollLeft ?? 0, j.target.setPointerCapture(j.pointerId);
|
|
1363
|
+
}, [g, e]), Y = W((j) => {
|
|
1186
1364
|
if (!d.current) return;
|
|
1187
|
-
const
|
|
1188
|
-
if (!
|
|
1189
|
-
const
|
|
1190
|
-
g ?
|
|
1191
|
-
}, [g, w,
|
|
1365
|
+
const S = e.current;
|
|
1366
|
+
if (!S) return;
|
|
1367
|
+
const M = (g ? j.clientY : j.clientX) - l.current, C = w / (h - v), I = M * C;
|
|
1368
|
+
g ? S.scrollTop = u.current + I : S.scrollLeft = u.current + I;
|
|
1369
|
+
}, [g, w, h, v, e]), z = W(() => {
|
|
1192
1370
|
d.current = !1;
|
|
1193
1371
|
}, []);
|
|
1194
|
-
return /* @__PURE__ */
|
|
1195
|
-
}
|
|
1196
|
-
const
|
|
1197
|
-
Root:
|
|
1198
|
-
Viewport:
|
|
1199
|
-
Content:
|
|
1200
|
-
Scrollbar:
|
|
1201
|
-
Thumb:
|
|
1202
|
-
},
|
|
1372
|
+
return /* @__PURE__ */ o("div", { onPointerDown: b, onPointerMove: Y, onPointerUp: z, ...k(a.div, B.thumb, p) });
|
|
1373
|
+
}
|
|
1374
|
+
const En = {
|
|
1375
|
+
Root: be,
|
|
1376
|
+
Viewport: ye,
|
|
1377
|
+
Content: we,
|
|
1378
|
+
Scrollbar: Se,
|
|
1379
|
+
Thumb: je
|
|
1380
|
+
}, X = {
|
|
1203
1381
|
root: {
|
|
1204
1382
|
kVAEAm: "x1n2onr6",
|
|
1205
1383
|
k1xSpc: "x3nfvp2",
|
|
@@ -1297,98 +1475,98 @@ const ir = {
|
|
|
1297
1475
|
k1xSpc: "x1s85apg",
|
|
1298
1476
|
$$css: !0
|
|
1299
1477
|
}
|
|
1300
|
-
},
|
|
1301
|
-
function
|
|
1302
|
-
const
|
|
1303
|
-
if (!
|
|
1304
|
-
return
|
|
1305
|
-
}
|
|
1306
|
-
function
|
|
1307
|
-
const [
|
|
1308
|
-
|
|
1309
|
-
}, [
|
|
1310
|
-
return [
|
|
1311
|
-
}
|
|
1312
|
-
function
|
|
1313
|
-
defaultValue:
|
|
1314
|
-
value:
|
|
1315
|
-
onValueChange:
|
|
1478
|
+
}, Lt = D(null);
|
|
1479
|
+
function at() {
|
|
1480
|
+
const t = N(Lt);
|
|
1481
|
+
if (!t) throw new Error("Select compound components must be used within Select.Root");
|
|
1482
|
+
return t;
|
|
1483
|
+
}
|
|
1484
|
+
function $t(t, e, n) {
|
|
1485
|
+
const [r, s] = G(e), i = t !== void 0 ? t : r, c = W((x) => {
|
|
1486
|
+
t === void 0 && s(x), n?.(x);
|
|
1487
|
+
}, [t, n]);
|
|
1488
|
+
return [i, c];
|
|
1489
|
+
}
|
|
1490
|
+
function Me({
|
|
1491
|
+
defaultValue: t,
|
|
1492
|
+
value: e,
|
|
1493
|
+
onValueChange: n
|
|
1316
1494
|
}) {
|
|
1317
|
-
const [
|
|
1318
|
-
|
|
1319
|
-
}, []),
|
|
1320
|
-
|
|
1321
|
-
if (
|
|
1322
|
-
|
|
1495
|
+
const [r, s] = $t(e, t ?? null, n), [i, c] = G(!1), [x, d] = G({}), [l, u] = G(null), g = K(), $ = y(null), w = y(null), h = y(/* @__PURE__ */ new Map()), v = y([]), f = W(() => {
|
|
1496
|
+
c(!1), u(null), w.current?.focus();
|
|
1497
|
+
}, []), m = W(() => {
|
|
1498
|
+
c((z) => {
|
|
1499
|
+
if (z)
|
|
1500
|
+
u(null);
|
|
1323
1501
|
else {
|
|
1324
|
-
const j =
|
|
1325
|
-
let
|
|
1326
|
-
for (const
|
|
1327
|
-
const
|
|
1328
|
-
if (
|
|
1329
|
-
|
|
1502
|
+
const j = h.current, S = v.current;
|
|
1503
|
+
let M = null;
|
|
1504
|
+
for (const C of S) {
|
|
1505
|
+
const I = j.get(C);
|
|
1506
|
+
if (I && I.value === r) {
|
|
1507
|
+
M = C;
|
|
1330
1508
|
break;
|
|
1331
1509
|
}
|
|
1332
1510
|
}
|
|
1333
|
-
|
|
1511
|
+
u(M ?? (S.length > 0 ? S[0] : null));
|
|
1334
1512
|
}
|
|
1335
|
-
return !
|
|
1513
|
+
return !z;
|
|
1336
1514
|
});
|
|
1337
|
-
}, [
|
|
1338
|
-
d((
|
|
1339
|
-
...
|
|
1340
|
-
[
|
|
1515
|
+
}, [r]), p = W((z, j) => {
|
|
1516
|
+
d((S) => S[z] === j ? S : {
|
|
1517
|
+
...S,
|
|
1518
|
+
[z]: j
|
|
1341
1519
|
});
|
|
1342
|
-
}, []), b =
|
|
1343
|
-
|
|
1520
|
+
}, []), b = W((z, j, S) => {
|
|
1521
|
+
h.current.set(z, {
|
|
1344
1522
|
value: j,
|
|
1345
|
-
element:
|
|
1523
|
+
element: S
|
|
1346
1524
|
});
|
|
1347
|
-
const
|
|
1348
|
-
return
|
|
1349
|
-
const
|
|
1350
|
-
return !
|
|
1351
|
-
}),
|
|
1352
|
-
|
|
1525
|
+
const M = h.current, C = [...M.keys()];
|
|
1526
|
+
return C.sort((I, F) => {
|
|
1527
|
+
const yt = M.get(I)?.element, wt = M.get(F)?.element;
|
|
1528
|
+
return !yt || !wt ? 0 : yt.compareDocumentPosition(wt) & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : 1;
|
|
1529
|
+
}), v.current = C, () => {
|
|
1530
|
+
h.current.delete(z), v.current = v.current.filter((I) => I !== z);
|
|
1353
1531
|
};
|
|
1354
1532
|
}, []);
|
|
1355
|
-
return
|
|
1356
|
-
const
|
|
1357
|
-
if (!
|
|
1358
|
-
function j(
|
|
1359
|
-
const
|
|
1360
|
-
if (
|
|
1361
|
-
switch (
|
|
1533
|
+
return H(() => {
|
|
1534
|
+
const z = $.current;
|
|
1535
|
+
if (!z || !i) return;
|
|
1536
|
+
function j(S) {
|
|
1537
|
+
const M = v.current, C = h.current;
|
|
1538
|
+
if (M.length !== 0)
|
|
1539
|
+
switch (S.key) {
|
|
1362
1540
|
case "ArrowDown": {
|
|
1363
|
-
|
|
1364
|
-
const
|
|
1365
|
-
return
|
|
1541
|
+
S.preventDefault(), u((I) => {
|
|
1542
|
+
const F = I ? M.indexOf(I) : -1;
|
|
1543
|
+
return M[(F + 1) % M.length];
|
|
1366
1544
|
});
|
|
1367
1545
|
break;
|
|
1368
1546
|
}
|
|
1369
1547
|
case "ArrowUp": {
|
|
1370
|
-
|
|
1371
|
-
const
|
|
1372
|
-
return
|
|
1548
|
+
S.preventDefault(), u((I) => {
|
|
1549
|
+
const F = I ? M.indexOf(I) : 0;
|
|
1550
|
+
return M[(F - 1 + M.length) % M.length];
|
|
1373
1551
|
});
|
|
1374
1552
|
break;
|
|
1375
1553
|
}
|
|
1376
1554
|
case "Home": {
|
|
1377
|
-
|
|
1555
|
+
S.preventDefault(), u(M[0]);
|
|
1378
1556
|
break;
|
|
1379
1557
|
}
|
|
1380
1558
|
case "End": {
|
|
1381
|
-
|
|
1559
|
+
S.preventDefault(), u(M[M.length - 1]);
|
|
1382
1560
|
break;
|
|
1383
1561
|
}
|
|
1384
1562
|
case "Enter":
|
|
1385
1563
|
case " ": {
|
|
1386
|
-
|
|
1387
|
-
if (
|
|
1388
|
-
const
|
|
1389
|
-
|
|
1564
|
+
S.preventDefault(), u((I) => {
|
|
1565
|
+
if (I) {
|
|
1566
|
+
const F = C.get(I);
|
|
1567
|
+
F && (s(F.value), f());
|
|
1390
1568
|
}
|
|
1391
|
-
return
|
|
1569
|
+
return I;
|
|
1392
1570
|
});
|
|
1393
1571
|
break;
|
|
1394
1572
|
}
|
|
@@ -1399,126 +1577,126 @@ function pt({
|
|
|
1399
1577
|
}
|
|
1400
1578
|
}
|
|
1401
1579
|
}
|
|
1402
|
-
return
|
|
1403
|
-
}, [
|
|
1404
|
-
ctx:
|
|
1405
|
-
open:
|
|
1406
|
-
toggle:
|
|
1580
|
+
return z.addEventListener("keydown", j), () => z.removeEventListener("keydown", j);
|
|
1581
|
+
}, [i, f, s]), {
|
|
1582
|
+
ctx: ht(() => ({
|
|
1583
|
+
open: i,
|
|
1584
|
+
toggle: m,
|
|
1407
1585
|
close: f,
|
|
1408
|
-
value:
|
|
1409
|
-
setValue:
|
|
1586
|
+
value: r,
|
|
1587
|
+
setValue: s,
|
|
1410
1588
|
labels: x,
|
|
1411
|
-
registerLabel:
|
|
1589
|
+
registerLabel: p,
|
|
1412
1590
|
listboxId: g,
|
|
1413
|
-
highlightedId:
|
|
1414
|
-
setHighlightedId:
|
|
1591
|
+
highlightedId: l,
|
|
1592
|
+
setHighlightedId: u,
|
|
1415
1593
|
registerItem: b,
|
|
1416
1594
|
triggerRef: w
|
|
1417
|
-
}), [
|
|
1418
|
-
rootRef:
|
|
1595
|
+
}), [i, m, f, r, s, x, p, g, l, u, b]),
|
|
1596
|
+
rootRef: $
|
|
1419
1597
|
};
|
|
1420
1598
|
}
|
|
1421
|
-
function
|
|
1422
|
-
name:
|
|
1423
|
-
defaultValue:
|
|
1424
|
-
value:
|
|
1425
|
-
onValueChange:
|
|
1426
|
-
children:
|
|
1599
|
+
function ze({
|
|
1600
|
+
name: t,
|
|
1601
|
+
defaultValue: e,
|
|
1602
|
+
value: n,
|
|
1603
|
+
onValueChange: r,
|
|
1604
|
+
children: s
|
|
1427
1605
|
}) {
|
|
1428
1606
|
const {
|
|
1429
|
-
ctx:
|
|
1430
|
-
rootRef:
|
|
1431
|
-
} =
|
|
1432
|
-
defaultValue:
|
|
1433
|
-
value:
|
|
1434
|
-
onValueChange:
|
|
1607
|
+
ctx: i,
|
|
1608
|
+
rootRef: c
|
|
1609
|
+
} = Me({
|
|
1610
|
+
defaultValue: e,
|
|
1611
|
+
value: n,
|
|
1612
|
+
onValueChange: r
|
|
1435
1613
|
});
|
|
1436
|
-
return /* @__PURE__ */
|
|
1437
|
-
|
|
1438
|
-
|
|
1614
|
+
return /* @__PURE__ */ o(Lt.Provider, { value: i, children: /* @__PURE__ */ A("div", { ref: c, ...k(a.div, X.root), children: [
|
|
1615
|
+
t && /* @__PURE__ */ o("input", { type: "hidden", name: t, value: i.value ?? "", dir: "auto", ...k(a.input) }),
|
|
1616
|
+
s
|
|
1439
1617
|
] }) });
|
|
1440
1618
|
}
|
|
1441
|
-
function
|
|
1442
|
-
children:
|
|
1619
|
+
function Ie({
|
|
1620
|
+
children: t
|
|
1443
1621
|
}) {
|
|
1444
1622
|
const {
|
|
1445
|
-
open:
|
|
1446
|
-
toggle:
|
|
1447
|
-
listboxId:
|
|
1448
|
-
highlightedId:
|
|
1449
|
-
triggerRef:
|
|
1450
|
-
} =
|
|
1451
|
-
return
|
|
1452
|
-
|
|
1453
|
-
}), /* @__PURE__ */
|
|
1454
|
-
}
|
|
1455
|
-
function
|
|
1456
|
-
placeholder:
|
|
1623
|
+
open: e,
|
|
1624
|
+
toggle: n,
|
|
1625
|
+
listboxId: r,
|
|
1626
|
+
highlightedId: s,
|
|
1627
|
+
triggerRef: i
|
|
1628
|
+
} = at(), c = y(null);
|
|
1629
|
+
return H(() => {
|
|
1630
|
+
i.current = c.current;
|
|
1631
|
+
}), /* @__PURE__ */ o("button", { ref: c, type: "button", role: "combobox", onClick: n, "aria-expanded": e, "aria-haspopup": "listbox", "aria-controls": e ? r : void 0, "aria-activedescendant": s ?? void 0, ...k(a.button, X.trigger), children: t });
|
|
1632
|
+
}
|
|
1633
|
+
function qe({
|
|
1634
|
+
placeholder: t
|
|
1457
1635
|
}) {
|
|
1458
1636
|
const {
|
|
1459
|
-
value:
|
|
1460
|
-
labels:
|
|
1461
|
-
} =
|
|
1462
|
-
return /* @__PURE__ */
|
|
1637
|
+
value: e,
|
|
1638
|
+
labels: n
|
|
1639
|
+
} = at(), r = e ? n[e] ?? e : null;
|
|
1640
|
+
return /* @__PURE__ */ o("span", { ...k(a.span, r ? X.value : X.placeholder), children: r ?? t });
|
|
1463
1641
|
}
|
|
1464
|
-
function
|
|
1465
|
-
children:
|
|
1642
|
+
function We({
|
|
1643
|
+
children: t
|
|
1466
1644
|
}) {
|
|
1467
|
-
return /* @__PURE__ */
|
|
1645
|
+
return /* @__PURE__ */ o("span", { ...k(a.span, X.icon), children: t ?? /* @__PURE__ */ o("svg", { width: "12", height: "12", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: /* @__PURE__ */ o("path", { d: "M6 9l6 6 6-6" }) }) });
|
|
1468
1646
|
}
|
|
1469
|
-
function
|
|
1470
|
-
children:
|
|
1647
|
+
function He({
|
|
1648
|
+
children: t
|
|
1471
1649
|
}) {
|
|
1472
1650
|
const {
|
|
1473
|
-
open:
|
|
1474
|
-
close:
|
|
1475
|
-
listboxId:
|
|
1476
|
-
} =
|
|
1477
|
-
return /* @__PURE__ */
|
|
1478
|
-
|
|
1479
|
-
/* @__PURE__ */
|
|
1651
|
+
open: e,
|
|
1652
|
+
close: n,
|
|
1653
|
+
listboxId: r
|
|
1654
|
+
} = at();
|
|
1655
|
+
return /* @__PURE__ */ A(U, { children: [
|
|
1656
|
+
e && /* @__PURE__ */ o("div", { ...k(a.div, X.backdrop), onClick: n }),
|
|
1657
|
+
/* @__PURE__ */ o("div", { id: r, role: "listbox", "aria-hidden": !e, ...k(a.div, X.popup, !e && X.hidden), children: t })
|
|
1480
1658
|
] });
|
|
1481
1659
|
}
|
|
1482
|
-
function
|
|
1483
|
-
value:
|
|
1484
|
-
children:
|
|
1660
|
+
function Ge({
|
|
1661
|
+
value: t,
|
|
1662
|
+
children: e
|
|
1485
1663
|
}) {
|
|
1486
1664
|
const {
|
|
1487
|
-
value:
|
|
1488
|
-
setValue:
|
|
1489
|
-
close:
|
|
1490
|
-
registerLabel:
|
|
1491
|
-
highlightedId:
|
|
1665
|
+
value: n,
|
|
1666
|
+
setValue: r,
|
|
1667
|
+
close: s,
|
|
1668
|
+
registerLabel: i,
|
|
1669
|
+
highlightedId: c,
|
|
1492
1670
|
setHighlightedId: x,
|
|
1493
1671
|
registerItem: d
|
|
1494
|
-
} =
|
|
1495
|
-
return
|
|
1496
|
-
const
|
|
1497
|
-
if (!
|
|
1498
|
-
const
|
|
1499
|
-
|
|
1500
|
-
}, [
|
|
1501
|
-
const
|
|
1502
|
-
if (
|
|
1503
|
-
return d(
|
|
1504
|
-
}, [
|
|
1505
|
-
|
|
1506
|
-
}, onPointerEnter: () => x(
|
|
1672
|
+
} = at(), l = K(), u = y(null), g = n === t, $ = c === l;
|
|
1673
|
+
return H(() => {
|
|
1674
|
+
const h = u.current;
|
|
1675
|
+
if (!h) return;
|
|
1676
|
+
const v = h.textContent;
|
|
1677
|
+
v && i(t, v);
|
|
1678
|
+
}, [t, i]), H(() => {
|
|
1679
|
+
const h = u.current;
|
|
1680
|
+
if (h)
|
|
1681
|
+
return d(l, t, h);
|
|
1682
|
+
}, [l, t, d]), /* @__PURE__ */ o("div", { ref: u, id: l, role: "option", "aria-selected": g, onClick: () => {
|
|
1683
|
+
r(t), s();
|
|
1684
|
+
}, onPointerEnter: () => x(l), ...k(a.div, X.item, g && X.itemSelected, $ && X.itemHighlighted), children: e });
|
|
1507
1685
|
}
|
|
1508
|
-
function
|
|
1509
|
-
children:
|
|
1686
|
+
function Te({
|
|
1687
|
+
children: t
|
|
1510
1688
|
}) {
|
|
1511
|
-
return /* @__PURE__ */
|
|
1512
|
-
}
|
|
1513
|
-
const
|
|
1514
|
-
Root:
|
|
1515
|
-
Trigger:
|
|
1516
|
-
Value:
|
|
1517
|
-
Icon:
|
|
1518
|
-
Popup:
|
|
1519
|
-
Item:
|
|
1520
|
-
ItemText:
|
|
1521
|
-
},
|
|
1689
|
+
return /* @__PURE__ */ o("span", { ...k(a.span), children: t });
|
|
1690
|
+
}
|
|
1691
|
+
const Ln = {
|
|
1692
|
+
Root: ze,
|
|
1693
|
+
Trigger: Ie,
|
|
1694
|
+
Value: qe,
|
|
1695
|
+
Icon: We,
|
|
1696
|
+
Popup: He,
|
|
1697
|
+
Item: Ge,
|
|
1698
|
+
ItemText: Te
|
|
1699
|
+
}, Q = {
|
|
1522
1700
|
root: {
|
|
1523
1701
|
k1xSpc: "x78zum5",
|
|
1524
1702
|
kXwgrk: "xdt5ytf",
|
|
@@ -1597,83 +1775,83 @@ const kr = {
|
|
|
1597
1775
|
k63SB2: "x9n8r49",
|
|
1598
1776
|
$$css: !0
|
|
1599
1777
|
}
|
|
1600
|
-
},
|
|
1601
|
-
function
|
|
1602
|
-
const
|
|
1603
|
-
if (!
|
|
1604
|
-
return
|
|
1605
|
-
}
|
|
1606
|
-
function
|
|
1607
|
-
children:
|
|
1608
|
-
value:
|
|
1609
|
-
defaultValue:
|
|
1610
|
-
onValueChange:
|
|
1778
|
+
}, At = D(null);
|
|
1779
|
+
function Vt() {
|
|
1780
|
+
const t = N(At);
|
|
1781
|
+
if (!t) throw new Error("SideNav compound components must be used within SideNav.Root");
|
|
1782
|
+
return t;
|
|
1783
|
+
}
|
|
1784
|
+
function Ee({
|
|
1785
|
+
children: t,
|
|
1786
|
+
value: e,
|
|
1787
|
+
defaultValue: n,
|
|
1788
|
+
onValueChange: r
|
|
1611
1789
|
}) {
|
|
1612
|
-
const [
|
|
1613
|
-
g !== null &&
|
|
1614
|
-
} : void 0), [
|
|
1615
|
-
x((
|
|
1616
|
-
const w = new Set(
|
|
1790
|
+
const [s, i] = $t(e, n ?? null, r ? (g) => {
|
|
1791
|
+
g !== null && r(g);
|
|
1792
|
+
} : void 0), [c, x] = G(/* @__PURE__ */ new Set()), d = y([]), l = W((g) => {
|
|
1793
|
+
x(($) => {
|
|
1794
|
+
const w = new Set($);
|
|
1617
1795
|
return w.has(g) ? w.delete(g) : w.add(g), w;
|
|
1618
1796
|
});
|
|
1619
|
-
}, []),
|
|
1620
|
-
d.current = d.current.filter((
|
|
1797
|
+
}, []), u = W((g) => (d.current.includes(g) || d.current.push(g), () => {
|
|
1798
|
+
d.current = d.current.filter(($) => $ !== g);
|
|
1621
1799
|
}), []);
|
|
1622
|
-
return
|
|
1623
|
-
|
|
1624
|
-
}, [
|
|
1625
|
-
activeValue:
|
|
1626
|
-
onSelect:
|
|
1627
|
-
expandedGroups:
|
|
1628
|
-
toggleGroup:
|
|
1629
|
-
registerItem:
|
|
1800
|
+
return H(() => {
|
|
1801
|
+
s && x((g) => g);
|
|
1802
|
+
}, [s]), /* @__PURE__ */ o(At.Provider, { value: {
|
|
1803
|
+
activeValue: s,
|
|
1804
|
+
onSelect: i,
|
|
1805
|
+
expandedGroups: c,
|
|
1806
|
+
toggleGroup: l,
|
|
1807
|
+
registerItem: u,
|
|
1630
1808
|
orderRef: d
|
|
1631
|
-
}, children: /* @__PURE__ */
|
|
1809
|
+
}, children: /* @__PURE__ */ o("nav", { role: "navigation", ...k(a.nav, Q.root), children: t }) });
|
|
1632
1810
|
}
|
|
1633
|
-
function
|
|
1634
|
-
children:
|
|
1635
|
-
label:
|
|
1636
|
-
groupKey:
|
|
1637
|
-
defaultExpanded:
|
|
1811
|
+
function Le({
|
|
1812
|
+
children: t,
|
|
1813
|
+
label: e,
|
|
1814
|
+
groupKey: n,
|
|
1815
|
+
defaultExpanded: r
|
|
1638
1816
|
}) {
|
|
1639
|
-
const
|
|
1640
|
-
expandedGroups:
|
|
1641
|
-
toggleGroup:
|
|
1817
|
+
const s = n ?? e, {
|
|
1818
|
+
expandedGroups: i,
|
|
1819
|
+
toggleGroup: c,
|
|
1642
1820
|
activeValue: x
|
|
1643
|
-
} =
|
|
1644
|
-
|
|
1645
|
-
if (!x ||
|
|
1646
|
-
const g =
|
|
1821
|
+
} = Vt(), d = i.has(s), l = y(null);
|
|
1822
|
+
H(() => {
|
|
1823
|
+
if (!x || i.has(s)) return;
|
|
1824
|
+
const g = l.current;
|
|
1647
1825
|
if (!g) return;
|
|
1648
|
-
g.querySelector(`[data-nav-value="${x}"]`) &&
|
|
1649
|
-
}, [x,
|
|
1650
|
-
|
|
1826
|
+
g.querySelector(`[data-nav-value="${x}"]`) && c(s);
|
|
1827
|
+
}, [x, s, i, c]), H(() => {
|
|
1828
|
+
r && !i.has(s) && c(s);
|
|
1651
1829
|
}, []);
|
|
1652
|
-
const
|
|
1653
|
-
return /* @__PURE__ */
|
|
1654
|
-
/* @__PURE__ */
|
|
1655
|
-
/* @__PURE__ */
|
|
1656
|
-
|
|
1830
|
+
const u = !x || !l.current ? !1 : !!l.current.querySelector(`[data-nav-value="${x}"]`);
|
|
1831
|
+
return /* @__PURE__ */ A("div", { ref: l, ...k(a.div, Q.group), children: [
|
|
1832
|
+
/* @__PURE__ */ A("button", { type: "button", onClick: () => c(s), ...k(a.button, Q.groupTrigger, u && Q.groupTriggerActive), "aria-expanded": d, children: [
|
|
1833
|
+
/* @__PURE__ */ o("span", { ...k(a.span, Q.chevron, d && Q.chevronOpen), children: /* @__PURE__ */ o("svg", { width: 10, height: 10, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2.5, strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ o("path", { d: "M9 18l6-6-6-6" }) }) }),
|
|
1834
|
+
e
|
|
1657
1835
|
] }),
|
|
1658
|
-
d &&
|
|
1836
|
+
d && t
|
|
1659
1837
|
] });
|
|
1660
1838
|
}
|
|
1661
|
-
function
|
|
1662
|
-
value:
|
|
1663
|
-
children:
|
|
1839
|
+
function Ae({
|
|
1840
|
+
value: t,
|
|
1841
|
+
children: e
|
|
1664
1842
|
}) {
|
|
1665
1843
|
const {
|
|
1666
|
-
activeValue:
|
|
1667
|
-
onSelect:
|
|
1668
|
-
registerItem:
|
|
1669
|
-
} =
|
|
1670
|
-
return
|
|
1671
|
-
}
|
|
1672
|
-
const
|
|
1673
|
-
Root:
|
|
1674
|
-
Group:
|
|
1675
|
-
Item:
|
|
1676
|
-
},
|
|
1844
|
+
activeValue: n,
|
|
1845
|
+
onSelect: r,
|
|
1846
|
+
registerItem: s
|
|
1847
|
+
} = Vt(), i = n === t;
|
|
1848
|
+
return H(() => s(t), [t, s]), /* @__PURE__ */ o("button", { type: "button", "data-nav-value": t, onClick: () => r(t), ...k(a.button, Q.item, i && Q.itemActive), "aria-current": i ? "page" : void 0, children: e });
|
|
1849
|
+
}
|
|
1850
|
+
const An = {
|
|
1851
|
+
Root: Ee,
|
|
1852
|
+
Group: Le,
|
|
1853
|
+
Item: Ae
|
|
1854
|
+
}, rt = {
|
|
1677
1855
|
root: {
|
|
1678
1856
|
k1xSpc: "x3nfvp2",
|
|
1679
1857
|
kGNEyG: "x6s0dn4",
|
|
@@ -1717,21 +1895,21 @@ const ur = {
|
|
|
1717
1895
|
kMcinP: "xzpqnlu",
|
|
1718
1896
|
$$css: !0
|
|
1719
1897
|
}
|
|
1720
|
-
},
|
|
1721
|
-
sm:
|
|
1722
|
-
md:
|
|
1723
|
-
lg:
|
|
1898
|
+
}, Ve = {
|
|
1899
|
+
sm: rt.sm,
|
|
1900
|
+
md: rt.md,
|
|
1901
|
+
lg: rt.lg
|
|
1724
1902
|
};
|
|
1725
|
-
function
|
|
1726
|
-
size:
|
|
1727
|
-
label:
|
|
1903
|
+
function Vn({
|
|
1904
|
+
size: t = "md",
|
|
1905
|
+
label: e = "Loading"
|
|
1728
1906
|
}) {
|
|
1729
|
-
return /* @__PURE__ */
|
|
1730
|
-
/* @__PURE__ */
|
|
1731
|
-
/* @__PURE__ */
|
|
1907
|
+
return /* @__PURE__ */ A("div", { role: "status", ...k(a.div, rt.root), children: [
|
|
1908
|
+
/* @__PURE__ */ o("div", { ...k(a.div, rt.spinner, Ve[t]), "aria-hidden": !0 }),
|
|
1909
|
+
/* @__PURE__ */ o("span", { ...k(a.span, rt.srOnly), children: e })
|
|
1732
1910
|
] });
|
|
1733
1911
|
}
|
|
1734
|
-
const
|
|
1912
|
+
const jt = {
|
|
1735
1913
|
root: {
|
|
1736
1914
|
k1xSpc: "x3nfvp2",
|
|
1737
1915
|
kGNEyG: "x6s0dn4",
|
|
@@ -1755,40 +1933,40 @@ const ve = {
|
|
|
1755
1933
|
kMwMTN: "x19e7f62",
|
|
1756
1934
|
$$css: !0
|
|
1757
1935
|
}
|
|
1758
|
-
},
|
|
1759
|
-
"x-circle": /* @__PURE__ */
|
|
1760
|
-
/* @__PURE__ */
|
|
1761
|
-
/* @__PURE__ */
|
|
1762
|
-
/* @__PURE__ */
|
|
1936
|
+
}, Oe = {
|
|
1937
|
+
"x-circle": /* @__PURE__ */ A(U, { children: [
|
|
1938
|
+
/* @__PURE__ */ o("circle", { cx: "12", cy: "12", r: "10" }),
|
|
1939
|
+
/* @__PURE__ */ o("line", { x1: "15", y1: "9", x2: "9", y2: "15" }),
|
|
1940
|
+
/* @__PURE__ */ o("line", { x1: "9", y1: "9", x2: "15", y2: "15" })
|
|
1763
1941
|
] }),
|
|
1764
|
-
"check-circle": /* @__PURE__ */
|
|
1765
|
-
/* @__PURE__ */
|
|
1766
|
-
/* @__PURE__ */
|
|
1942
|
+
"check-circle": /* @__PURE__ */ A(U, { children: [
|
|
1943
|
+
/* @__PURE__ */ o("circle", { cx: "12", cy: "12", r: "10" }),
|
|
1944
|
+
/* @__PURE__ */ o("polyline", { points: "16 10 11 15 8 12" })
|
|
1767
1945
|
] }),
|
|
1768
|
-
"check-done": /* @__PURE__ */
|
|
1769
|
-
/* @__PURE__ */
|
|
1770
|
-
/* @__PURE__ */
|
|
1946
|
+
"check-done": /* @__PURE__ */ A(U, { children: [
|
|
1947
|
+
/* @__PURE__ */ o("path", { d: "M22 11.08V12a10 10 0 1 1-5.93-9.14" }),
|
|
1948
|
+
/* @__PURE__ */ o("polyline", { points: "22 4 12 14.01 9 11.01" })
|
|
1771
1949
|
] }),
|
|
1772
|
-
clock: /* @__PURE__ */
|
|
1773
|
-
/* @__PURE__ */
|
|
1774
|
-
/* @__PURE__ */
|
|
1950
|
+
clock: /* @__PURE__ */ A(U, { children: [
|
|
1951
|
+
/* @__PURE__ */ o("circle", { cx: "12", cy: "12", r: "10" }),
|
|
1952
|
+
/* @__PURE__ */ o("polyline", { points: "12 6 12 12 16 14" })
|
|
1775
1953
|
] }),
|
|
1776
|
-
forbidden: /* @__PURE__ */
|
|
1777
|
-
/* @__PURE__ */
|
|
1778
|
-
/* @__PURE__ */
|
|
1954
|
+
forbidden: /* @__PURE__ */ A(U, { children: [
|
|
1955
|
+
/* @__PURE__ */ o("circle", { cx: "12", cy: "12", r: "10" }),
|
|
1956
|
+
/* @__PURE__ */ o("line", { x1: "4.93", y1: "4.93", x2: "19.07", y2: "19.07" })
|
|
1779
1957
|
] })
|
|
1780
1958
|
};
|
|
1781
|
-
function
|
|
1782
|
-
name:
|
|
1783
|
-
size:
|
|
1784
|
-
variant:
|
|
1959
|
+
function On({
|
|
1960
|
+
name: t,
|
|
1961
|
+
size: e = 48,
|
|
1962
|
+
variant: n = "muted"
|
|
1785
1963
|
}) {
|
|
1786
|
-
return /* @__PURE__ */
|
|
1964
|
+
return /* @__PURE__ */ o("div", { ...k(a.div, jt.root, jt[n]), children: /* @__PURE__ */ o("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", width: e, height: e, children: Oe[t] }) });
|
|
1787
1965
|
}
|
|
1788
|
-
const
|
|
1966
|
+
const Ne = {
|
|
1789
1967
|
kumcoG: "xqketvx",
|
|
1790
1968
|
$$css: !0
|
|
1791
|
-
},
|
|
1969
|
+
}, L = {
|
|
1792
1970
|
root: {
|
|
1793
1971
|
kMzoRj: "xmkeg23",
|
|
1794
1972
|
ksu8eU: "x1y0btm7",
|
|
@@ -1864,91 +2042,91 @@ const It = {
|
|
|
1864
2042
|
kWqL5O: "xgfja2r",
|
|
1865
2043
|
$$css: !0
|
|
1866
2044
|
},
|
|
1867
|
-
gridColumns: (
|
|
1868
|
-
"--x-gridTemplateColumns": `repeat(${
|
|
2045
|
+
gridColumns: (t) => [Ne, {
|
|
2046
|
+
"--x-gridTemplateColumns": `repeat(${t}, 1fr)` != null ? `repeat(${t}, 1fr)` : void 0
|
|
1869
2047
|
}]
|
|
1870
|
-
},
|
|
1871
|
-
function
|
|
1872
|
-
const
|
|
1873
|
-
if (!
|
|
1874
|
-
return
|
|
1875
|
-
}
|
|
1876
|
-
const
|
|
1877
|
-
function
|
|
1878
|
-
children:
|
|
1879
|
-
variant:
|
|
1880
|
-
size:
|
|
1881
|
-
columns:
|
|
2048
|
+
}, Ot = D(null);
|
|
2049
|
+
function ut() {
|
|
2050
|
+
const t = N(Ot);
|
|
2051
|
+
if (!t) throw new Error("Table compound components must be used within Table.Root");
|
|
2052
|
+
return t;
|
|
2053
|
+
}
|
|
2054
|
+
const vt = D(!1);
|
|
2055
|
+
function Be({
|
|
2056
|
+
children: t,
|
|
2057
|
+
variant: e = "default",
|
|
2058
|
+
size: n = "md",
|
|
2059
|
+
columns: r
|
|
1882
2060
|
}) {
|
|
1883
|
-
return /* @__PURE__ */
|
|
1884
|
-
variant:
|
|
1885
|
-
size:
|
|
1886
|
-
columns:
|
|
2061
|
+
return /* @__PURE__ */ o(Ot.Provider, { value: {
|
|
2062
|
+
variant: e,
|
|
2063
|
+
size: n,
|
|
2064
|
+
columns: r,
|
|
1887
2065
|
isHeader: !1
|
|
1888
|
-
}, children: /* @__PURE__ */
|
|
2066
|
+
}, children: /* @__PURE__ */ o("div", { role: "table", ...k(a.div, L.root), children: t }) });
|
|
1889
2067
|
}
|
|
1890
|
-
function
|
|
1891
|
-
children:
|
|
2068
|
+
function De({
|
|
2069
|
+
children: t
|
|
1892
2070
|
}) {
|
|
1893
|
-
return /* @__PURE__ */
|
|
2071
|
+
return /* @__PURE__ */ o(vt.Provider, { value: !0, children: /* @__PURE__ */ o("div", { role: "rowgroup", ...k(a.div, L.header), children: t }) });
|
|
1894
2072
|
}
|
|
1895
|
-
function
|
|
1896
|
-
children:
|
|
2073
|
+
function Ce({
|
|
2074
|
+
children: t
|
|
1897
2075
|
}) {
|
|
1898
2076
|
const {
|
|
1899
|
-
variant:
|
|
1900
|
-
} =
|
|
1901
|
-
return /* @__PURE__ */
|
|
2077
|
+
variant: e
|
|
2078
|
+
} = ut(), n = zt.toArray(t);
|
|
2079
|
+
return /* @__PURE__ */ o(vt.Provider, { value: !1, children: /* @__PURE__ */ o("div", { role: "rowgroup", ...k(a.div), children: n.map((r, s) => e === "striped" ? /* @__PURE__ */ o(Nt.Provider, { value: s, children: r }, s) : r) }) });
|
|
1902
2080
|
}
|
|
1903
|
-
const
|
|
1904
|
-
function
|
|
1905
|
-
children:
|
|
2081
|
+
const Nt = D(-1);
|
|
2082
|
+
function Re({
|
|
2083
|
+
children: t
|
|
1906
2084
|
}) {
|
|
1907
2085
|
const {
|
|
1908
|
-
variant:
|
|
1909
|
-
columns:
|
|
1910
|
-
} =
|
|
1911
|
-
return /* @__PURE__ */
|
|
2086
|
+
variant: e,
|
|
2087
|
+
columns: n
|
|
2088
|
+
} = ut(), r = N(vt), s = N(Nt), i = s >= 0 && s % 2 === 1, c = zt.toArray(t);
|
|
2089
|
+
return /* @__PURE__ */ o("div", { role: "row", ...k(a.div, L.row, L.gridColumns(n), !r && L.bodyRow, !r && e === "striped" && i && L.stripedEven), children: e === "bordered" ? c.map((x, d) => /* @__PURE__ */ o(mt.Provider, { value: {
|
|
1912
2090
|
index: d,
|
|
1913
|
-
total:
|
|
1914
|
-
}, children: x }, d)) :
|
|
2091
|
+
total: c.length
|
|
2092
|
+
}, children: x }, d)) : t });
|
|
1915
2093
|
}
|
|
1916
|
-
const
|
|
2094
|
+
const mt = D({
|
|
1917
2095
|
index: 0,
|
|
1918
2096
|
total: 0
|
|
1919
2097
|
});
|
|
1920
|
-
function
|
|
1921
|
-
children:
|
|
2098
|
+
function Xe({
|
|
2099
|
+
children: t
|
|
1922
2100
|
}) {
|
|
1923
2101
|
const {
|
|
1924
|
-
size:
|
|
1925
|
-
variant:
|
|
1926
|
-
} =
|
|
1927
|
-
index:
|
|
1928
|
-
total:
|
|
1929
|
-
} =
|
|
1930
|
-
return /* @__PURE__ */
|
|
1931
|
-
}
|
|
1932
|
-
function
|
|
1933
|
-
children:
|
|
2102
|
+
size: e,
|
|
2103
|
+
variant: n
|
|
2104
|
+
} = ut(), {
|
|
2105
|
+
index: r,
|
|
2106
|
+
total: s
|
|
2107
|
+
} = N(mt), i = n === "bordered" && r === s - 1;
|
|
2108
|
+
return /* @__PURE__ */ o("div", { role: "columnheader", ...k(a.div, L.headerCell, e === "sm" ? L.cellSm : L.cellMd, n === "bordered" && L.borderedCell, i && L.borderedCellLast), children: t });
|
|
2109
|
+
}
|
|
2110
|
+
function Ye({
|
|
2111
|
+
children: t
|
|
1934
2112
|
}) {
|
|
1935
2113
|
const {
|
|
1936
|
-
size:
|
|
1937
|
-
variant:
|
|
1938
|
-
} =
|
|
1939
|
-
index:
|
|
1940
|
-
total:
|
|
1941
|
-
} =
|
|
1942
|
-
return /* @__PURE__ */
|
|
1943
|
-
}
|
|
1944
|
-
const
|
|
1945
|
-
Root:
|
|
1946
|
-
Header:
|
|
1947
|
-
Body:
|
|
1948
|
-
Row:
|
|
1949
|
-
HeaderCell:
|
|
1950
|
-
Cell:
|
|
1951
|
-
},
|
|
2114
|
+
size: e,
|
|
2115
|
+
variant: n
|
|
2116
|
+
} = ut(), {
|
|
2117
|
+
index: r,
|
|
2118
|
+
total: s
|
|
2119
|
+
} = N(mt), i = n === "bordered" && r === s - 1;
|
|
2120
|
+
return /* @__PURE__ */ o("div", { role: "cell", ...k(a.div, L.cell, e === "sm" ? L.cellSm : L.cellMd, n === "bordered" && L.borderedCell, i && L.borderedCellLast), children: t });
|
|
2121
|
+
}
|
|
2122
|
+
const Nn = {
|
|
2123
|
+
Root: Be,
|
|
2124
|
+
Header: De,
|
|
2125
|
+
Body: Ce,
|
|
2126
|
+
Row: Re,
|
|
2127
|
+
HeaderCell: Xe,
|
|
2128
|
+
Cell: Ye
|
|
2129
|
+
}, R = {
|
|
1952
2130
|
root: {
|
|
1953
2131
|
k1xSpc: "x78zum5",
|
|
1954
2132
|
kXwgrk: "xdt5ytf",
|
|
@@ -2036,145 +2214,145 @@ const gr = {
|
|
|
2036
2214
|
kE3dHu: "x107tsa6",
|
|
2037
2215
|
$$css: !0
|
|
2038
2216
|
}
|
|
2039
|
-
},
|
|
2040
|
-
function
|
|
2041
|
-
const
|
|
2042
|
-
if (!
|
|
2043
|
-
return
|
|
2217
|
+
}, Bt = D(null);
|
|
2218
|
+
function bt() {
|
|
2219
|
+
const t = N(Bt);
|
|
2220
|
+
if (!t) throw new Error("Tabs compound components must be used within Tabs.Root");
|
|
2221
|
+
return t;
|
|
2044
2222
|
}
|
|
2045
|
-
function
|
|
2046
|
-
value:
|
|
2047
|
-
defaultValue:
|
|
2048
|
-
onValueChange:
|
|
2049
|
-
orientation:
|
|
2223
|
+
function Je({
|
|
2224
|
+
value: t,
|
|
2225
|
+
defaultValue: e,
|
|
2226
|
+
onValueChange: n,
|
|
2227
|
+
orientation: r = "horizontal"
|
|
2050
2228
|
}) {
|
|
2051
|
-
const [
|
|
2052
|
-
|
|
2053
|
-
} : void 0),
|
|
2054
|
-
|
|
2229
|
+
const [s, i] = $t(t, e ?? null, n ? (l) => {
|
|
2230
|
+
l !== null && n(l);
|
|
2231
|
+
} : void 0), c = y(/* @__PURE__ */ new Map()), x = y([]), d = W((l, u) => (c.current.set(l, u), x.current.includes(l) || x.current.push(l), () => {
|
|
2232
|
+
c.current.delete(l), x.current = x.current.filter((g) => g !== l);
|
|
2055
2233
|
}), []);
|
|
2056
2234
|
return {
|
|
2057
|
-
activeValue:
|
|
2058
|
-
onSelect:
|
|
2059
|
-
orientation:
|
|
2235
|
+
activeValue: s,
|
|
2236
|
+
onSelect: i,
|
|
2237
|
+
orientation: r,
|
|
2060
2238
|
registerTab: d,
|
|
2061
|
-
tabsRef:
|
|
2239
|
+
tabsRef: c,
|
|
2062
2240
|
orderRef: x
|
|
2063
2241
|
};
|
|
2064
2242
|
}
|
|
2065
|
-
function
|
|
2066
|
-
children:
|
|
2067
|
-
value:
|
|
2068
|
-
defaultValue:
|
|
2069
|
-
onValueChange:
|
|
2070
|
-
orientation:
|
|
2243
|
+
function Pe({
|
|
2244
|
+
children: t,
|
|
2245
|
+
value: e,
|
|
2246
|
+
defaultValue: n,
|
|
2247
|
+
onValueChange: r,
|
|
2248
|
+
orientation: s = "horizontal"
|
|
2071
2249
|
}) {
|
|
2072
|
-
const
|
|
2073
|
-
value:
|
|
2074
|
-
defaultValue:
|
|
2075
|
-
onValueChange:
|
|
2076
|
-
orientation:
|
|
2250
|
+
const i = Je({
|
|
2251
|
+
value: e,
|
|
2252
|
+
defaultValue: n,
|
|
2253
|
+
onValueChange: r,
|
|
2254
|
+
orientation: s
|
|
2077
2255
|
});
|
|
2078
|
-
return /* @__PURE__ */
|
|
2256
|
+
return /* @__PURE__ */ o(Bt.Provider, { value: i, children: /* @__PURE__ */ o("div", { ...k(a.div, R.root, s === "vertical" && R.rootVertical), children: t }) });
|
|
2079
2257
|
}
|
|
2080
|
-
function
|
|
2081
|
-
children:
|
|
2258
|
+
function Fe({
|
|
2259
|
+
children: t
|
|
2082
2260
|
}) {
|
|
2083
2261
|
const {
|
|
2084
|
-
orientation:
|
|
2085
|
-
activeValue:
|
|
2086
|
-
onSelect:
|
|
2087
|
-
tabsRef:
|
|
2088
|
-
orderRef:
|
|
2089
|
-
} =
|
|
2090
|
-
return
|
|
2091
|
-
const x =
|
|
2262
|
+
orientation: e,
|
|
2263
|
+
activeValue: n,
|
|
2264
|
+
onSelect: r,
|
|
2265
|
+
tabsRef: s,
|
|
2266
|
+
orderRef: i
|
|
2267
|
+
} = bt(), c = y(null);
|
|
2268
|
+
return H(() => {
|
|
2269
|
+
const x = c.current;
|
|
2092
2270
|
if (!x) return;
|
|
2093
|
-
function d(
|
|
2094
|
-
const
|
|
2095
|
-
if (
|
|
2096
|
-
const
|
|
2097
|
-
let
|
|
2098
|
-
switch (
|
|
2099
|
-
case
|
|
2100
|
-
|
|
2101
|
-
const f =
|
|
2102
|
-
for (let
|
|
2103
|
-
const
|
|
2271
|
+
function d(l) {
|
|
2272
|
+
const u = i.current, g = s.current;
|
|
2273
|
+
if (u.length === 0) return;
|
|
2274
|
+
const $ = this, w = e === "horizontal" ? "ArrowLeft" : "ArrowUp", h = e === "horizontal" ? "ArrowRight" : "ArrowDown";
|
|
2275
|
+
let v = null;
|
|
2276
|
+
switch (l.key) {
|
|
2277
|
+
case h: {
|
|
2278
|
+
l.preventDefault();
|
|
2279
|
+
const f = n ? u.indexOf(n) : -1;
|
|
2280
|
+
for (let m = 1; m <= u.length; m++) {
|
|
2281
|
+
const p = (f + m) % u.length, b = u[p];
|
|
2104
2282
|
if (!g.get(b)) {
|
|
2105
|
-
|
|
2283
|
+
v = b;
|
|
2106
2284
|
break;
|
|
2107
2285
|
}
|
|
2108
2286
|
}
|
|
2109
2287
|
break;
|
|
2110
2288
|
}
|
|
2111
2289
|
case w: {
|
|
2112
|
-
|
|
2113
|
-
const f =
|
|
2114
|
-
for (let
|
|
2115
|
-
const
|
|
2290
|
+
l.preventDefault();
|
|
2291
|
+
const f = n ? u.indexOf(n) : 0;
|
|
2292
|
+
for (let m = 1; m <= u.length; m++) {
|
|
2293
|
+
const p = (f - m + u.length) % u.length, b = u[p];
|
|
2116
2294
|
if (!g.get(b)) {
|
|
2117
|
-
|
|
2295
|
+
v = b;
|
|
2118
2296
|
break;
|
|
2119
2297
|
}
|
|
2120
2298
|
}
|
|
2121
2299
|
break;
|
|
2122
2300
|
}
|
|
2123
2301
|
case "Home": {
|
|
2124
|
-
|
|
2125
|
-
for (const f of
|
|
2302
|
+
l.preventDefault();
|
|
2303
|
+
for (const f of u)
|
|
2126
2304
|
if (!g.get(f)) {
|
|
2127
|
-
|
|
2305
|
+
v = f;
|
|
2128
2306
|
break;
|
|
2129
2307
|
}
|
|
2130
2308
|
break;
|
|
2131
2309
|
}
|
|
2132
2310
|
case "End": {
|
|
2133
|
-
|
|
2134
|
-
for (let f =
|
|
2135
|
-
if (!g.get(
|
|
2136
|
-
|
|
2311
|
+
l.preventDefault();
|
|
2312
|
+
for (let f = u.length - 1; f >= 0; f--)
|
|
2313
|
+
if (!g.get(u[f])) {
|
|
2314
|
+
v = u[f];
|
|
2137
2315
|
break;
|
|
2138
2316
|
}
|
|
2139
2317
|
break;
|
|
2140
2318
|
}
|
|
2141
2319
|
}
|
|
2142
|
-
|
|
2320
|
+
v && (r(v), $.querySelector(`[data-tab-value="${v}"]`)?.focus());
|
|
2143
2321
|
}
|
|
2144
2322
|
return x.addEventListener("keydown", d), () => x.removeEventListener("keydown", d);
|
|
2145
|
-
}, [
|
|
2323
|
+
}, [e, n, r, s, i]), /* @__PURE__ */ o("div", { ref: c, role: "tablist", "aria-orientation": e, ...k(a.div, R.list, e === "vertical" && R.listVertical), children: t });
|
|
2146
2324
|
}
|
|
2147
|
-
function
|
|
2148
|
-
value:
|
|
2149
|
-
disabled:
|
|
2150
|
-
children:
|
|
2325
|
+
function Qe({
|
|
2326
|
+
value: t,
|
|
2327
|
+
disabled: e = !1,
|
|
2328
|
+
children: n
|
|
2151
2329
|
}) {
|
|
2152
2330
|
const {
|
|
2153
|
-
activeValue:
|
|
2154
|
-
onSelect:
|
|
2155
|
-
orientation:
|
|
2156
|
-
registerTab:
|
|
2157
|
-
} =
|
|
2158
|
-
return
|
|
2159
|
-
|
|
2160
|
-
}, ...k(
|
|
2161
|
-
}
|
|
2162
|
-
function
|
|
2163
|
-
value:
|
|
2164
|
-
children:
|
|
2331
|
+
activeValue: r,
|
|
2332
|
+
onSelect: s,
|
|
2333
|
+
orientation: i,
|
|
2334
|
+
registerTab: c
|
|
2335
|
+
} = bt(), x = r === t, d = K(), l = `${d}-panel`;
|
|
2336
|
+
return H(() => c(t, e), [t, e, c]), /* @__PURE__ */ o("button", { type: "button", role: "tab", id: d, "aria-selected": x, "aria-controls": l, "aria-disabled": e || void 0, "data-tab-value": t, tabIndex: x ? 0 : -1, onClick: () => {
|
|
2337
|
+
e || s(t);
|
|
2338
|
+
}, ...k(a.button, R.tab, i === "vertical" && R.tabVertical, x && (i === "vertical" ? R.tabActiveVertical : R.tabActiveHorizontal), e && R.tabDisabled), children: n });
|
|
2339
|
+
}
|
|
2340
|
+
function Ke({
|
|
2341
|
+
value: t,
|
|
2342
|
+
children: e
|
|
2165
2343
|
}) {
|
|
2166
2344
|
const {
|
|
2167
|
-
activeValue:
|
|
2168
|
-
orientation:
|
|
2169
|
-
} =
|
|
2170
|
-
return
|
|
2171
|
-
}
|
|
2172
|
-
const
|
|
2173
|
-
Root:
|
|
2174
|
-
List:
|
|
2175
|
-
Tab:
|
|
2176
|
-
Panel:
|
|
2177
|
-
},
|
|
2345
|
+
activeValue: n,
|
|
2346
|
+
orientation: r
|
|
2347
|
+
} = bt();
|
|
2348
|
+
return n !== t ? null : /* @__PURE__ */ o("div", { role: "tabpanel", ...k(a.div, R.panel, r === "vertical" && R.panelVertical), children: e });
|
|
2349
|
+
}
|
|
2350
|
+
const Bn = {
|
|
2351
|
+
Root: Pe,
|
|
2352
|
+
List: Fe,
|
|
2353
|
+
Tab: Qe,
|
|
2354
|
+
Panel: Ke
|
|
2355
|
+
}, Mt = {
|
|
2178
2356
|
base: {
|
|
2179
2357
|
kzqmXN: "xh8yej3",
|
|
2180
2358
|
kLKAdn: "x1y6gaq4",
|
|
@@ -2208,21 +2386,21 @@ const hr = {
|
|
|
2208
2386
|
$$css: !0
|
|
2209
2387
|
}
|
|
2210
2388
|
};
|
|
2211
|
-
function
|
|
2212
|
-
variant:
|
|
2213
|
-
name:
|
|
2214
|
-
placeholder:
|
|
2215
|
-
required:
|
|
2216
|
-
rows:
|
|
2217
|
-
value:
|
|
2218
|
-
defaultValue:
|
|
2389
|
+
function Dn({
|
|
2390
|
+
variant: t = "default",
|
|
2391
|
+
name: e,
|
|
2392
|
+
placeholder: n,
|
|
2393
|
+
required: r,
|
|
2394
|
+
rows: s = 3,
|
|
2395
|
+
value: i,
|
|
2396
|
+
defaultValue: c,
|
|
2219
2397
|
disabled: x,
|
|
2220
2398
|
onChange: d
|
|
2221
2399
|
}) {
|
|
2222
|
-
const
|
|
2223
|
-
return /* @__PURE__ */
|
|
2400
|
+
const l = ot();
|
|
2401
|
+
return /* @__PURE__ */ o("textarea", { id: l?.controlId, name: e, placeholder: n, required: r, rows: s, value: i, defaultValue: c, disabled: x, "aria-describedby": l ? `${l.descriptionId} ${l.invalid ? l.errorId : ""}`.trim() : void 0, "aria-invalid": l?.invalid || t === "error" || void 0, onChange: d, ...k(a.textarea, Mt.base, Mt[t]), dir: "auto" });
|
|
2224
2402
|
}
|
|
2225
|
-
const
|
|
2403
|
+
const Cn = {
|
|
2226
2404
|
bg: "var(--bg-xqkwqtp)",
|
|
2227
2405
|
bgCard: "var(--bgCard-xj2l5r)",
|
|
2228
2406
|
bgCardHover: "var(--bgCardHover-xlxk7vw)",
|
|
@@ -2250,22 +2428,39 @@ const fr = {
|
|
|
2250
2428
|
infoBorder: "var(--infoBorder-xnevk3x)",
|
|
2251
2429
|
infoText: "var(--infoText-x19pseus)",
|
|
2252
2430
|
__varGroupHash__: "xjvd03b"
|
|
2253
|
-
},
|
|
2431
|
+
}, Rn = {
|
|
2254
2432
|
xs: "var(--xs-xxfyjsd)",
|
|
2255
2433
|
sm: "var(--sm-xbh8y7f)",
|
|
2434
|
+
ms: "var(--ms-x13y09zs)",
|
|
2256
2435
|
md: "var(--md-x3pkb85)",
|
|
2257
2436
|
lg: "var(--lg-x34mutn)",
|
|
2258
2437
|
xl: "var(--xl-xttpygj)",
|
|
2259
2438
|
xxl: "var(--xxl-xbe9eha)",
|
|
2439
|
+
xxxl: "var(--xxxl-xroalp5)",
|
|
2260
2440
|
__varGroupHash__: "x6uc9q"
|
|
2261
|
-
},
|
|
2441
|
+
}, Xn = {
|
|
2262
2442
|
sm: "var(--sm-x1bhtfs5)",
|
|
2263
2443
|
md: "var(--md-xx2g89g)",
|
|
2264
2444
|
lg: "var(--lg-xwd56yl)",
|
|
2265
2445
|
full: "var(--full-x9vxdtd)",
|
|
2266
2446
|
__varGroupHash__: "xw3ffwm"
|
|
2267
|
-
},
|
|
2447
|
+
}, Yn = {
|
|
2448
|
+
stackXs: "var(--stackXs-x1qfrfo2)",
|
|
2449
|
+
stackSm: "var(--stackSm-x2rk1ut)",
|
|
2450
|
+
stackMd: "var(--stackMd-xhblkt4)",
|
|
2451
|
+
stackLg: "var(--stackLg-xeue779)",
|
|
2452
|
+
stackXl: "var(--stackXl-x7sbbgu)",
|
|
2453
|
+
inlineXs: "var(--inlineXs-xq4tp4f)",
|
|
2454
|
+
inlineSm: "var(--inlineSm-x2o8bbf)",
|
|
2455
|
+
inlineMd: "var(--inlineMd-x1oalkxi)",
|
|
2456
|
+
inlineLg: "var(--inlineLg-xz69o43)",
|
|
2457
|
+
containerSm: "var(--containerSm-x3nosus)",
|
|
2458
|
+
containerMd: "var(--containerMd-x170dvin)",
|
|
2459
|
+
containerLg: "var(--containerLg-x1n6aasq)",
|
|
2460
|
+
__varGroupHash__: "x16nfoyr"
|
|
2461
|
+
}, Jn = {
|
|
2268
2462
|
fontFamily: "var(--fontFamily-xvrmnat)",
|
|
2463
|
+
fontFamilyMono: "var(--fontFamilyMono-x1bzqfky)",
|
|
2269
2464
|
fontSizeXs: "var(--fontSizeXs-x1w5m325)",
|
|
2270
2465
|
fontSizeSm: "var(--fontSizeSm-x1bjjs4u)",
|
|
2271
2466
|
fontSizeMd: "var(--fontSizeMd-xq8d99q)",
|
|
@@ -2278,40 +2473,261 @@ const fr = {
|
|
|
2278
2473
|
fontWeightBold: "var(--fontWeightBold-x1pjkvwg)",
|
|
2279
2474
|
lineHeight: "var(--lineHeight-x1gubzd5)",
|
|
2280
2475
|
__varGroupHash__: "xs62swl"
|
|
2281
|
-
},
|
|
2476
|
+
}, Pn = {
|
|
2477
|
+
fontSize1: "var(--fontSize1-xx27tux)",
|
|
2478
|
+
fontSize2: "var(--fontSize2-x5hag8h)",
|
|
2479
|
+
fontSize3: "var(--fontSize3-x1mf6j39)",
|
|
2480
|
+
fontSize4: "var(--fontSize4-xh0hch2)",
|
|
2481
|
+
fontSize5: "var(--fontSize5-xcllv62)",
|
|
2482
|
+
fontSize6: "var(--fontSize6-xo5veds)",
|
|
2483
|
+
fontSize7: "var(--fontSize7-x1j85tz8)",
|
|
2484
|
+
fontSize8: "var(--fontSize8-x17zhits)",
|
|
2485
|
+
fontSize9: "var(--fontSize9-xveysf7)",
|
|
2486
|
+
lineHeight1: "var(--lineHeight1-x17o1wol)",
|
|
2487
|
+
lineHeight2: "var(--lineHeight2-xinpx5n)",
|
|
2488
|
+
lineHeight3: "var(--lineHeight3-x1163vpm)",
|
|
2489
|
+
lineHeight4: "var(--lineHeight4-x1y0jdbp)",
|
|
2490
|
+
lineHeight5: "var(--lineHeight5-xjln4cz)",
|
|
2491
|
+
lineHeight6: "var(--lineHeight6-x1h1b5wo)",
|
|
2492
|
+
lineHeight7: "var(--lineHeight7-xx3gx0p)",
|
|
2493
|
+
lineHeight8: "var(--lineHeight8-xk1f09j)",
|
|
2494
|
+
lineHeight9: "var(--lineHeight9-xshcxhh)",
|
|
2495
|
+
displaySm: "var(--displaySm-x5inqzv)",
|
|
2496
|
+
displayMd: "var(--displayMd-x1oektom)",
|
|
2497
|
+
displayLg: "var(--displayLg-x6qsr1u)",
|
|
2498
|
+
letterSpacingTight: "var(--letterSpacingTight-xmavxfk)",
|
|
2499
|
+
letterSpacingNormal: "var(--letterSpacingNormal-x1ih41v1)",
|
|
2500
|
+
letterSpacingWide: "var(--letterSpacingWide-xt8z9rj)",
|
|
2501
|
+
__varGroupHash__: "x4cj49w"
|
|
2502
|
+
}, Fn = {
|
|
2503
|
+
bodySm: {
|
|
2504
|
+
"fontFamily-kMv6JI": "fontFamily-xce2pww",
|
|
2505
|
+
"fontSize-kGuDYH": "fontSize-x1hn3ytp",
|
|
2506
|
+
"lineHeight-kLWn49": "lineHeight-xzs5d81",
|
|
2507
|
+
"fontWeight-k63SB2": "fontWeight-xrec02b",
|
|
2508
|
+
"letterSpacing-kb6lSQ": "letterSpacing-x2e73ve",
|
|
2509
|
+
$$css: "tokens/type-presets.css.ts:6"
|
|
2510
|
+
},
|
|
2511
|
+
bodyMd: {
|
|
2512
|
+
"fontFamily-kMv6JI": "fontFamily-xce2pww",
|
|
2513
|
+
"fontSize-kGuDYH": "fontSize-xfzcsg9",
|
|
2514
|
+
"lineHeight-kLWn49": "lineHeight-x80sjjd",
|
|
2515
|
+
"fontWeight-k63SB2": "fontWeight-xrec02b",
|
|
2516
|
+
"letterSpacing-kb6lSQ": "letterSpacing-x2e73ve",
|
|
2517
|
+
$$css: "tokens/type-presets.css.ts:13"
|
|
2518
|
+
},
|
|
2519
|
+
bodyLg: {
|
|
2520
|
+
"fontFamily-kMv6JI": "fontFamily-xce2pww",
|
|
2521
|
+
"fontSize-kGuDYH": "fontSize-x1kws70c",
|
|
2522
|
+
"lineHeight-kLWn49": "lineHeight-x1487en2",
|
|
2523
|
+
"fontWeight-k63SB2": "fontWeight-xrec02b",
|
|
2524
|
+
"letterSpacing-kb6lSQ": "letterSpacing-x2e73ve",
|
|
2525
|
+
$$css: "tokens/type-presets.css.ts:20"
|
|
2526
|
+
},
|
|
2527
|
+
caption: {
|
|
2528
|
+
"fontFamily-kMv6JI": "fontFamily-xce2pww",
|
|
2529
|
+
"fontSize-kGuDYH": "fontSize-x19zw8p8",
|
|
2530
|
+
"lineHeight-kLWn49": "lineHeight-xsnwo96",
|
|
2531
|
+
"fontWeight-k63SB2": "fontWeight-xrec02b",
|
|
2532
|
+
"letterSpacing-kb6lSQ": "letterSpacing-x121swot",
|
|
2533
|
+
$$css: "tokens/type-presets.css.ts:29"
|
|
2534
|
+
},
|
|
2535
|
+
label: {
|
|
2536
|
+
"fontFamily-kMv6JI": "fontFamily-xce2pww",
|
|
2537
|
+
"fontSize-kGuDYH": "fontSize-x1hn3ytp",
|
|
2538
|
+
"lineHeight-kLWn49": "lineHeight-xzs5d81",
|
|
2539
|
+
"fontWeight-k63SB2": "fontWeight-x120ksxs",
|
|
2540
|
+
"letterSpacing-kb6lSQ": "letterSpacing-x2e73ve",
|
|
2541
|
+
$$css: "tokens/type-presets.css.ts:36"
|
|
2542
|
+
},
|
|
2543
|
+
code: {
|
|
2544
|
+
"fontFamily-kMv6JI": "fontFamily-x1kygxdj",
|
|
2545
|
+
"fontSize-kGuDYH": "fontSize-x1hn3ytp",
|
|
2546
|
+
"lineHeight-kLWn49": "lineHeight-xzs5d81",
|
|
2547
|
+
"fontWeight-k63SB2": "fontWeight-xrec02b",
|
|
2548
|
+
"letterSpacing-kb6lSQ": "letterSpacing-x2e73ve",
|
|
2549
|
+
$$css: "tokens/type-presets.css.ts:43"
|
|
2550
|
+
},
|
|
2551
|
+
overline: {
|
|
2552
|
+
"fontFamily-kMv6JI": "fontFamily-xce2pww",
|
|
2553
|
+
"fontSize-kGuDYH": "fontSize-x19zw8p8",
|
|
2554
|
+
"lineHeight-kLWn49": "lineHeight-xsnwo96",
|
|
2555
|
+
"fontWeight-k63SB2": "fontWeight-x1x12jc5",
|
|
2556
|
+
"letterSpacing-kb6lSQ": "letterSpacing-x121swot",
|
|
2557
|
+
"textTransform-kP9fke": "textTransform-xtvhhri",
|
|
2558
|
+
$$css: "tokens/type-presets.css.ts:50"
|
|
2559
|
+
},
|
|
2560
|
+
headingSm: {
|
|
2561
|
+
"fontFamily-kMv6JI": "fontFamily-xce2pww",
|
|
2562
|
+
"fontSize-kGuDYH": "fontSize-xtv95mj",
|
|
2563
|
+
"lineHeight-kLWn49": "lineHeight-xyb71hx",
|
|
2564
|
+
"fontWeight-k63SB2": "fontWeight-x1x12jc5",
|
|
2565
|
+
"letterSpacing-kb6lSQ": "letterSpacing-xql2p2a",
|
|
2566
|
+
$$css: "tokens/type-presets.css.ts:60"
|
|
2567
|
+
},
|
|
2568
|
+
headingMd: {
|
|
2569
|
+
"fontFamily-kMv6JI": "fontFamily-xce2pww",
|
|
2570
|
+
"fontSize-kGuDYH": "fontSize-x1qndi8g",
|
|
2571
|
+
"lineHeight-kLWn49": "lineHeight-x17ovj3u",
|
|
2572
|
+
"fontWeight-k63SB2": "fontWeight-x1x12jc5",
|
|
2573
|
+
"letterSpacing-kb6lSQ": "letterSpacing-xql2p2a",
|
|
2574
|
+
$$css: "tokens/type-presets.css.ts:67"
|
|
2575
|
+
},
|
|
2576
|
+
headingLg: {
|
|
2577
|
+
"fontFamily-kMv6JI": "fontFamily-xce2pww",
|
|
2578
|
+
"fontSize-kGuDYH": "fontSize-xo0rcgw",
|
|
2579
|
+
"lineHeight-kLWn49": "lineHeight-x18micsl",
|
|
2580
|
+
"fontWeight-k63SB2": "fontWeight-xhkckuk",
|
|
2581
|
+
"letterSpacing-kb6lSQ": "letterSpacing-xql2p2a",
|
|
2582
|
+
$$css: "tokens/type-presets.css.ts:74"
|
|
2583
|
+
},
|
|
2584
|
+
headingXl: {
|
|
2585
|
+
"fontFamily-kMv6JI": "fontFamily-xce2pww",
|
|
2586
|
+
"fontSize-kGuDYH": "fontSize-x6ugw34",
|
|
2587
|
+
"lineHeight-kLWn49": "lineHeight-x1f79cfb",
|
|
2588
|
+
"fontWeight-k63SB2": "fontWeight-xhkckuk",
|
|
2589
|
+
"letterSpacing-kb6lSQ": "letterSpacing-xql2p2a",
|
|
2590
|
+
$$css: "tokens/type-presets.css.ts:81"
|
|
2591
|
+
},
|
|
2592
|
+
displaySm: {
|
|
2593
|
+
"fontFamily-kMv6JI": "fontFamily-xce2pww",
|
|
2594
|
+
"fontSize-kGuDYH": "fontSize-x1lwaixd",
|
|
2595
|
+
"lineHeight-kLWn49": "lineHeight-x1u7k74",
|
|
2596
|
+
"fontWeight-k63SB2": "fontWeight-xhkckuk",
|
|
2597
|
+
"letterSpacing-kb6lSQ": "letterSpacing-xql2p2a",
|
|
2598
|
+
$$css: "tokens/type-presets.css.ts:90"
|
|
2599
|
+
},
|
|
2600
|
+
displayMd: {
|
|
2601
|
+
"fontFamily-kMv6JI": "fontFamily-xce2pww",
|
|
2602
|
+
"fontSize-kGuDYH": "fontSize-xrqn33v",
|
|
2603
|
+
"lineHeight-kLWn49": "lineHeight-x1uo3zyz",
|
|
2604
|
+
"fontWeight-k63SB2": "fontWeight-xhkckuk",
|
|
2605
|
+
"letterSpacing-kb6lSQ": "letterSpacing-xql2p2a",
|
|
2606
|
+
$$css: "tokens/type-presets.css.ts:97"
|
|
2607
|
+
},
|
|
2608
|
+
displayLg: {
|
|
2609
|
+
"fontFamily-kMv6JI": "fontFamily-xce2pww",
|
|
2610
|
+
"fontSize-kGuDYH": "fontSize-x1s08cw3",
|
|
2611
|
+
"lineHeight-kLWn49": "lineHeight-x1159mfc",
|
|
2612
|
+
"fontWeight-k63SB2": "fontWeight-xhkckuk",
|
|
2613
|
+
"letterSpacing-kb6lSQ": "letterSpacing-xql2p2a",
|
|
2614
|
+
$$css: "tokens/type-presets.css.ts:104"
|
|
2615
|
+
}
|
|
2616
|
+
}, Qn = {
|
|
2282
2617
|
sm: "var(--sm-x17hhtln)",
|
|
2283
2618
|
md: "var(--md-x1oyt0aw)",
|
|
2284
2619
|
lg: "var(--lg-x1mxd62i)",
|
|
2285
2620
|
__varGroupHash__: "x13v825q"
|
|
2286
|
-
},
|
|
2621
|
+
}, Ue = {
|
|
2287
2622
|
xjvd03b: "x18itf25 xjvd03b",
|
|
2288
2623
|
$$css: !0
|
|
2289
|
-
},
|
|
2624
|
+
}, _e = {
|
|
2290
2625
|
x13v825q: "xv9ibj0 x13v825q",
|
|
2291
2626
|
$$css: !0
|
|
2292
|
-
},
|
|
2627
|
+
}, Ze = {
|
|
2293
2628
|
xjvd03b: "x1qgt5a2 xjvd03b",
|
|
2294
2629
|
$$css: !0
|
|
2295
|
-
},
|
|
2630
|
+
}, tn = {
|
|
2296
2631
|
x13v825q: "x15e39jv x13v825q",
|
|
2297
2632
|
$$css: !0
|
|
2298
|
-
},
|
|
2299
|
-
light: [
|
|
2300
|
-
"high-contrast": [
|
|
2301
|
-
},
|
|
2633
|
+
}, en = {
|
|
2634
|
+
light: [Ue, _e],
|
|
2635
|
+
"high-contrast": [Ze, tn]
|
|
2636
|
+
}, nn = {
|
|
2302
2637
|
root: {
|
|
2303
2638
|
k1xSpc: "xjp7ctv",
|
|
2304
2639
|
$$css: !0
|
|
2305
2640
|
}
|
|
2306
2641
|
};
|
|
2307
|
-
function
|
|
2308
|
-
theme:
|
|
2309
|
-
children:
|
|
2642
|
+
function Kn({
|
|
2643
|
+
theme: t = "dark",
|
|
2644
|
+
children: e
|
|
2310
2645
|
}) {
|
|
2311
|
-
const
|
|
2312
|
-
return /* @__PURE__ */
|
|
2646
|
+
const n = en[t], r = [n?.[0], n?.[1], nn.root];
|
|
2647
|
+
return /* @__PURE__ */ o("div", { ...k(a.div, r), children: e });
|
|
2313
2648
|
}
|
|
2314
|
-
const
|
|
2649
|
+
const P = {
|
|
2650
|
+
default: {
|
|
2651
|
+
kMwMTN: "xg6mlj0",
|
|
2652
|
+
$$css: !0
|
|
2653
|
+
},
|
|
2654
|
+
muted: {
|
|
2655
|
+
kMwMTN: "x19e7f62",
|
|
2656
|
+
$$css: !0
|
|
2657
|
+
},
|
|
2658
|
+
accent: {
|
|
2659
|
+
kMwMTN: "x8fix86",
|
|
2660
|
+
$$css: !0
|
|
2661
|
+
},
|
|
2662
|
+
error: {
|
|
2663
|
+
kMwMTN: "x1gc3xgn",
|
|
2664
|
+
$$css: !0
|
|
2665
|
+
},
|
|
2666
|
+
success: {
|
|
2667
|
+
kMwMTN: "xcrp0t0",
|
|
2668
|
+
$$css: !0
|
|
2669
|
+
},
|
|
2670
|
+
warning: {
|
|
2671
|
+
kMwMTN: "x1e2iipf",
|
|
2672
|
+
$$css: !0
|
|
2673
|
+
},
|
|
2674
|
+
weightNormal: {
|
|
2675
|
+
k63SB2: "x18r2jh2",
|
|
2676
|
+
$$css: !0
|
|
2677
|
+
},
|
|
2678
|
+
weightMedium: {
|
|
2679
|
+
k63SB2: "x9n8r49",
|
|
2680
|
+
$$css: !0
|
|
2681
|
+
},
|
|
2682
|
+
weightSemibold: {
|
|
2683
|
+
k63SB2: "x17wh69p",
|
|
2684
|
+
$$css: !0
|
|
2685
|
+
},
|
|
2686
|
+
weightBold: {
|
|
2687
|
+
k63SB2: "xkzss2h",
|
|
2688
|
+
$$css: !0
|
|
2689
|
+
},
|
|
2690
|
+
alignStart: {
|
|
2691
|
+
k9WMMc: "x1yc453h",
|
|
2692
|
+
$$css: !0
|
|
2693
|
+
},
|
|
2694
|
+
alignCenter: {
|
|
2695
|
+
k9WMMc: "x2b8uid",
|
|
2696
|
+
$$css: !0
|
|
2697
|
+
},
|
|
2698
|
+
alignEnd: {
|
|
2699
|
+
k9WMMc: "xp4054r",
|
|
2700
|
+
$$css: !0
|
|
2701
|
+
},
|
|
2702
|
+
truncate: {
|
|
2703
|
+
kVQacm: "xb3r6kr",
|
|
2704
|
+
kg5iWk: "xlyipyv",
|
|
2705
|
+
khDVqt: "xuxw1ft",
|
|
2706
|
+
$$css: !0
|
|
2707
|
+
}
|
|
2708
|
+
}, rn = {
|
|
2709
|
+
normal: P.weightNormal,
|
|
2710
|
+
medium: P.weightMedium,
|
|
2711
|
+
semibold: P.weightSemibold,
|
|
2712
|
+
bold: P.weightBold
|
|
2713
|
+
}, sn = {
|
|
2714
|
+
start: P.alignStart,
|
|
2715
|
+
center: P.alignCenter,
|
|
2716
|
+
end: P.alignEnd
|
|
2717
|
+
};
|
|
2718
|
+
function Un({
|
|
2719
|
+
variant: t = "bodyMd",
|
|
2720
|
+
color: e = "default",
|
|
2721
|
+
weight: n,
|
|
2722
|
+
align: r,
|
|
2723
|
+
truncate: s,
|
|
2724
|
+
as: i = "span",
|
|
2725
|
+
children: c
|
|
2726
|
+
}) {
|
|
2727
|
+
const x = [Wt[t], P[e], n && rn[n], r && sn[r], s && P.truncate];
|
|
2728
|
+
return i === "p" ? /* @__PURE__ */ o("p", { ...k(a.p, x), children: c }) : i === "div" ? /* @__PURE__ */ o("div", { ...k(a.div, x), children: c }) : /* @__PURE__ */ o("span", { ...k(a.span, x), children: c });
|
|
2729
|
+
}
|
|
2730
|
+
const pt = {
|
|
2315
2731
|
root: {
|
|
2316
2732
|
kVAEAm: "x1n2onr6",
|
|
2317
2733
|
k1xSpc: "x3nfvp2",
|
|
@@ -2366,79 +2782,480 @@ const le = {
|
|
|
2366
2782
|
koQZXg: "xzhl4zu",
|
|
2367
2783
|
$$css: !0
|
|
2368
2784
|
}
|
|
2369
|
-
},
|
|
2370
|
-
function
|
|
2371
|
-
const
|
|
2372
|
-
if (!
|
|
2373
|
-
return
|
|
2374
|
-
}
|
|
2375
|
-
function
|
|
2376
|
-
children:
|
|
2377
|
-
content:
|
|
2378
|
-
placement:
|
|
2379
|
-
delay:
|
|
2785
|
+
}, Dt = D(null);
|
|
2786
|
+
function on() {
|
|
2787
|
+
const t = N(Dt);
|
|
2788
|
+
if (!t) throw new Error("Tooltip compound components must be used within Tooltip.Root");
|
|
2789
|
+
return t;
|
|
2790
|
+
}
|
|
2791
|
+
function cn({
|
|
2792
|
+
children: t,
|
|
2793
|
+
content: e,
|
|
2794
|
+
placement: n = "top",
|
|
2795
|
+
delay: r = 300
|
|
2380
2796
|
}) {
|
|
2381
|
-
const [
|
|
2382
|
-
x.current && clearTimeout(x.current), x.current = setTimeout(() =>
|
|
2383
|
-
}, [
|
|
2384
|
-
x.current && clearTimeout(x.current), x.current = null,
|
|
2797
|
+
const [s, i] = G(!1), c = K(), x = y(null), d = W(() => {
|
|
2798
|
+
x.current && clearTimeout(x.current), x.current = setTimeout(() => i(!0), r);
|
|
2799
|
+
}, [r]), l = W(() => {
|
|
2800
|
+
x.current && clearTimeout(x.current), x.current = null, i(!1);
|
|
2385
2801
|
}, []);
|
|
2386
|
-
return /* @__PURE__ */
|
|
2387
|
-
open:
|
|
2802
|
+
return /* @__PURE__ */ o(Dt.Provider, { value: {
|
|
2803
|
+
open: s,
|
|
2388
2804
|
show: d,
|
|
2389
|
-
hide:
|
|
2390
|
-
tooltipId:
|
|
2391
|
-
placement:
|
|
2392
|
-
}, children: /* @__PURE__ */
|
|
2393
|
-
|
|
2394
|
-
|
|
2805
|
+
hide: l,
|
|
2806
|
+
tooltipId: c,
|
|
2807
|
+
placement: n
|
|
2808
|
+
}, children: /* @__PURE__ */ A("div", { ...k(a.div, pt.root), children: [
|
|
2809
|
+
t,
|
|
2810
|
+
s && /* @__PURE__ */ o("div", { id: c, role: "tooltip", ...k(a.div, pt.popup, pt[n]), children: e })
|
|
2395
2811
|
] }) });
|
|
2396
2812
|
}
|
|
2397
|
-
function
|
|
2398
|
-
children:
|
|
2813
|
+
function xn({
|
|
2814
|
+
children: t
|
|
2399
2815
|
}) {
|
|
2400
2816
|
const {
|
|
2401
|
-
open:
|
|
2402
|
-
show:
|
|
2403
|
-
hide:
|
|
2404
|
-
tooltipId:
|
|
2405
|
-
} =
|
|
2406
|
-
return /* @__PURE__ */
|
|
2407
|
-
}
|
|
2408
|
-
const
|
|
2409
|
-
Root:
|
|
2410
|
-
Trigger:
|
|
2817
|
+
open: e,
|
|
2818
|
+
show: n,
|
|
2819
|
+
hide: r,
|
|
2820
|
+
tooltipId: s
|
|
2821
|
+
} = on();
|
|
2822
|
+
return /* @__PURE__ */ o("div", { onPointerEnter: n, onPointerLeave: r, onFocus: n, onBlur: r, "aria-describedby": e ? s : void 0, ...k(a.div), children: t });
|
|
2823
|
+
}
|
|
2824
|
+
const _n = {
|
|
2825
|
+
Root: cn,
|
|
2826
|
+
Trigger: xn
|
|
2827
|
+
}, O = {
|
|
2828
|
+
base: {
|
|
2829
|
+
k1xSpc: "x78zum5",
|
|
2830
|
+
kXwgrk: "xdt5ytf",
|
|
2831
|
+
$$css: !0
|
|
2832
|
+
},
|
|
2833
|
+
alignStart: {
|
|
2834
|
+
kGNEyG: "x1cy8zhl",
|
|
2835
|
+
$$css: !0
|
|
2836
|
+
},
|
|
2837
|
+
alignCenter: {
|
|
2838
|
+
kGNEyG: "x6s0dn4",
|
|
2839
|
+
$$css: !0
|
|
2840
|
+
},
|
|
2841
|
+
alignEnd: {
|
|
2842
|
+
kGNEyG: "xuk3077",
|
|
2843
|
+
$$css: !0
|
|
2844
|
+
},
|
|
2845
|
+
alignStretch: {
|
|
2846
|
+
kGNEyG: "x1qjc9v5",
|
|
2847
|
+
$$css: !0
|
|
2848
|
+
},
|
|
2849
|
+
gapXs: {
|
|
2850
|
+
kOIVth: "xfrqhcj",
|
|
2851
|
+
$$css: !0
|
|
2852
|
+
},
|
|
2853
|
+
gapSm: {
|
|
2854
|
+
kOIVth: "x1wyuhvo",
|
|
2855
|
+
$$css: !0
|
|
2856
|
+
},
|
|
2857
|
+
gapMs: {
|
|
2858
|
+
kOIVth: "xl437h0",
|
|
2859
|
+
$$css: !0
|
|
2860
|
+
},
|
|
2861
|
+
gapMd: {
|
|
2862
|
+
kOIVth: "x1onxhe9",
|
|
2863
|
+
$$css: !0
|
|
2864
|
+
},
|
|
2865
|
+
gapLg: {
|
|
2866
|
+
kOIVth: "xibzbvl",
|
|
2867
|
+
$$css: !0
|
|
2868
|
+
},
|
|
2869
|
+
gapXl: {
|
|
2870
|
+
kOIVth: "xti5e4g",
|
|
2871
|
+
$$css: !0
|
|
2872
|
+
},
|
|
2873
|
+
gapXxl: {
|
|
2874
|
+
kOIVth: "x17gr5pr",
|
|
2875
|
+
$$css: !0
|
|
2876
|
+
},
|
|
2877
|
+
gapXxxl: {
|
|
2878
|
+
kOIVth: "x281kem",
|
|
2879
|
+
$$css: !0
|
|
2880
|
+
}
|
|
2881
|
+
}, ln = {
|
|
2882
|
+
xs: O.gapXs,
|
|
2883
|
+
sm: O.gapSm,
|
|
2884
|
+
ms: O.gapMs,
|
|
2885
|
+
md: O.gapMd,
|
|
2886
|
+
lg: O.gapLg,
|
|
2887
|
+
xl: O.gapXl,
|
|
2888
|
+
xxl: O.gapXxl,
|
|
2889
|
+
xxxl: O.gapXxxl
|
|
2890
|
+
}, kn = {
|
|
2891
|
+
start: O.alignStart,
|
|
2892
|
+
center: O.alignCenter,
|
|
2893
|
+
end: O.alignEnd,
|
|
2894
|
+
stretch: O.alignStretch
|
|
2895
|
+
};
|
|
2896
|
+
function Zn({
|
|
2897
|
+
gap: t = "md",
|
|
2898
|
+
align: e = "stretch",
|
|
2899
|
+
children: n
|
|
2900
|
+
}) {
|
|
2901
|
+
return /* @__PURE__ */ o("div", { ...k(a.div, O.base, ln[t], kn[e]), children: n });
|
|
2902
|
+
}
|
|
2903
|
+
const q = {
|
|
2904
|
+
base: {
|
|
2905
|
+
k1xSpc: "x78zum5",
|
|
2906
|
+
kXwgrk: "x1q0g3np",
|
|
2907
|
+
kwnvtZ: "xozqiw3",
|
|
2908
|
+
$$css: !0
|
|
2909
|
+
},
|
|
2910
|
+
alignStart: {
|
|
2911
|
+
kGNEyG: "x1cy8zhl",
|
|
2912
|
+
$$css: !0
|
|
2913
|
+
},
|
|
2914
|
+
alignCenter: {
|
|
2915
|
+
kGNEyG: "x6s0dn4",
|
|
2916
|
+
$$css: !0
|
|
2917
|
+
},
|
|
2918
|
+
alignEnd: {
|
|
2919
|
+
kGNEyG: "xuk3077",
|
|
2920
|
+
$$css: !0
|
|
2921
|
+
},
|
|
2922
|
+
alignBaseline: {
|
|
2923
|
+
kGNEyG: "x1pha0wt",
|
|
2924
|
+
$$css: !0
|
|
2925
|
+
},
|
|
2926
|
+
alignStretch: {
|
|
2927
|
+
kGNEyG: "x1qjc9v5",
|
|
2928
|
+
$$css: !0
|
|
2929
|
+
},
|
|
2930
|
+
justifyStart: {
|
|
2931
|
+
kjj79g: "x1nhvcw1",
|
|
2932
|
+
$$css: !0
|
|
2933
|
+
},
|
|
2934
|
+
justifyCenter: {
|
|
2935
|
+
kjj79g: "xl56j7k",
|
|
2936
|
+
$$css: !0
|
|
2937
|
+
},
|
|
2938
|
+
justifyEnd: {
|
|
2939
|
+
kjj79g: "x13a6bvl",
|
|
2940
|
+
$$css: !0
|
|
2941
|
+
},
|
|
2942
|
+
justifyBetween: {
|
|
2943
|
+
kjj79g: "x1qughib",
|
|
2944
|
+
$$css: !0
|
|
2945
|
+
},
|
|
2946
|
+
gapXs: {
|
|
2947
|
+
kOIVth: "xfrqhcj",
|
|
2948
|
+
$$css: !0
|
|
2949
|
+
},
|
|
2950
|
+
gapSm: {
|
|
2951
|
+
kOIVth: "x1wyuhvo",
|
|
2952
|
+
$$css: !0
|
|
2953
|
+
},
|
|
2954
|
+
gapMs: {
|
|
2955
|
+
kOIVth: "xl437h0",
|
|
2956
|
+
$$css: !0
|
|
2957
|
+
},
|
|
2958
|
+
gapMd: {
|
|
2959
|
+
kOIVth: "x1onxhe9",
|
|
2960
|
+
$$css: !0
|
|
2961
|
+
},
|
|
2962
|
+
gapLg: {
|
|
2963
|
+
kOIVth: "xibzbvl",
|
|
2964
|
+
$$css: !0
|
|
2965
|
+
},
|
|
2966
|
+
gapXl: {
|
|
2967
|
+
kOIVth: "xti5e4g",
|
|
2968
|
+
$$css: !0
|
|
2969
|
+
},
|
|
2970
|
+
gapXxl: {
|
|
2971
|
+
kOIVth: "x17gr5pr",
|
|
2972
|
+
$$css: !0
|
|
2973
|
+
},
|
|
2974
|
+
gapXxxl: {
|
|
2975
|
+
kOIVth: "x281kem",
|
|
2976
|
+
$$css: !0
|
|
2977
|
+
}
|
|
2978
|
+
}, an = {
|
|
2979
|
+
xs: q.gapXs,
|
|
2980
|
+
sm: q.gapSm,
|
|
2981
|
+
ms: q.gapMs,
|
|
2982
|
+
md: q.gapMd,
|
|
2983
|
+
lg: q.gapLg,
|
|
2984
|
+
xl: q.gapXl,
|
|
2985
|
+
xxl: q.gapXxl,
|
|
2986
|
+
xxxl: q.gapXxxl
|
|
2987
|
+
}, un = {
|
|
2988
|
+
start: q.alignStart,
|
|
2989
|
+
center: q.alignCenter,
|
|
2990
|
+
end: q.alignEnd,
|
|
2991
|
+
baseline: q.alignBaseline,
|
|
2992
|
+
stretch: q.alignStretch
|
|
2993
|
+
}, dn = {
|
|
2994
|
+
start: q.justifyStart,
|
|
2995
|
+
center: q.justifyCenter,
|
|
2996
|
+
end: q.justifyEnd,
|
|
2997
|
+
between: q.justifyBetween
|
|
2411
2998
|
};
|
|
2999
|
+
function tr({
|
|
3000
|
+
gap: t = "sm",
|
|
3001
|
+
align: e = "center",
|
|
3002
|
+
justify: n = "start",
|
|
3003
|
+
children: r
|
|
3004
|
+
}) {
|
|
3005
|
+
return /* @__PURE__ */ o("div", { ...k(a.div, q.base, an[t], un[e], dn[n]), children: r });
|
|
3006
|
+
}
|
|
3007
|
+
const T = {
|
|
3008
|
+
base: {
|
|
3009
|
+
k1xSpc: "x78zum5",
|
|
3010
|
+
kXwgrk: "x1q0g3np",
|
|
3011
|
+
kwnvtZ: "x1a02dak",
|
|
3012
|
+
$$css: !0
|
|
3013
|
+
},
|
|
3014
|
+
alignStart: {
|
|
3015
|
+
kGNEyG: "x1cy8zhl",
|
|
3016
|
+
$$css: !0
|
|
3017
|
+
},
|
|
3018
|
+
alignCenter: {
|
|
3019
|
+
kGNEyG: "x6s0dn4",
|
|
3020
|
+
$$css: !0
|
|
3021
|
+
},
|
|
3022
|
+
alignEnd: {
|
|
3023
|
+
kGNEyG: "xuk3077",
|
|
3024
|
+
$$css: !0
|
|
3025
|
+
},
|
|
3026
|
+
justifyStart: {
|
|
3027
|
+
kjj79g: "x1nhvcw1",
|
|
3028
|
+
$$css: !0
|
|
3029
|
+
},
|
|
3030
|
+
justifyCenter: {
|
|
3031
|
+
kjj79g: "xl56j7k",
|
|
3032
|
+
$$css: !0
|
|
3033
|
+
},
|
|
3034
|
+
justifyEnd: {
|
|
3035
|
+
kjj79g: "x13a6bvl",
|
|
3036
|
+
$$css: !0
|
|
3037
|
+
},
|
|
3038
|
+
justifyBetween: {
|
|
3039
|
+
kjj79g: "x1qughib",
|
|
3040
|
+
$$css: !0
|
|
3041
|
+
},
|
|
3042
|
+
gapXs: {
|
|
3043
|
+
kOIVth: "xfrqhcj",
|
|
3044
|
+
$$css: !0
|
|
3045
|
+
},
|
|
3046
|
+
gapSm: {
|
|
3047
|
+
kOIVth: "x1wyuhvo",
|
|
3048
|
+
$$css: !0
|
|
3049
|
+
},
|
|
3050
|
+
gapMs: {
|
|
3051
|
+
kOIVth: "xl437h0",
|
|
3052
|
+
$$css: !0
|
|
3053
|
+
},
|
|
3054
|
+
gapMd: {
|
|
3055
|
+
kOIVth: "x1onxhe9",
|
|
3056
|
+
$$css: !0
|
|
3057
|
+
},
|
|
3058
|
+
gapLg: {
|
|
3059
|
+
kOIVth: "xibzbvl",
|
|
3060
|
+
$$css: !0
|
|
3061
|
+
},
|
|
3062
|
+
gapXl: {
|
|
3063
|
+
kOIVth: "xti5e4g",
|
|
3064
|
+
$$css: !0
|
|
3065
|
+
},
|
|
3066
|
+
gapXxl: {
|
|
3067
|
+
kOIVth: "x17gr5pr",
|
|
3068
|
+
$$css: !0
|
|
3069
|
+
},
|
|
3070
|
+
gapXxxl: {
|
|
3071
|
+
kOIVth: "x281kem",
|
|
3072
|
+
$$css: !0
|
|
3073
|
+
}
|
|
3074
|
+
}, gn = {
|
|
3075
|
+
xs: T.gapXs,
|
|
3076
|
+
sm: T.gapSm,
|
|
3077
|
+
ms: T.gapMs,
|
|
3078
|
+
md: T.gapMd,
|
|
3079
|
+
lg: T.gapLg,
|
|
3080
|
+
xl: T.gapXl,
|
|
3081
|
+
xxl: T.gapXxl,
|
|
3082
|
+
xxxl: T.gapXxxl
|
|
3083
|
+
}, pn = {
|
|
3084
|
+
start: T.alignStart,
|
|
3085
|
+
center: T.alignCenter,
|
|
3086
|
+
end: T.alignEnd
|
|
3087
|
+
}, hn = {
|
|
3088
|
+
start: T.justifyStart,
|
|
3089
|
+
center: T.justifyCenter,
|
|
3090
|
+
end: T.justifyEnd,
|
|
3091
|
+
between: T.justifyBetween
|
|
3092
|
+
};
|
|
3093
|
+
function er({
|
|
3094
|
+
gap: t = "sm",
|
|
3095
|
+
align: e = "start",
|
|
3096
|
+
justify: n = "start",
|
|
3097
|
+
children: r
|
|
3098
|
+
}) {
|
|
3099
|
+
return /* @__PURE__ */ o("div", { ...k(a.div, T.base, gn[t], pn[e], hn[n]), children: r });
|
|
3100
|
+
}
|
|
3101
|
+
const fn = {
|
|
3102
|
+
kumcoG: "xqketvx",
|
|
3103
|
+
$$css: !0
|
|
3104
|
+
}, E = {
|
|
3105
|
+
base: {
|
|
3106
|
+
k1xSpc: "xrvj5dj",
|
|
3107
|
+
$$css: !0
|
|
3108
|
+
},
|
|
3109
|
+
col1: {
|
|
3110
|
+
kumcoG: "x1y6fwsi",
|
|
3111
|
+
$$css: !0
|
|
3112
|
+
},
|
|
3113
|
+
col2: {
|
|
3114
|
+
kumcoG: "x1p9eum2",
|
|
3115
|
+
$$css: !0
|
|
3116
|
+
},
|
|
3117
|
+
col3: {
|
|
3118
|
+
kumcoG: "x1wlfl8j",
|
|
3119
|
+
$$css: !0
|
|
3120
|
+
},
|
|
3121
|
+
col4: {
|
|
3122
|
+
kumcoG: "xl501l6",
|
|
3123
|
+
$$css: !0
|
|
3124
|
+
},
|
|
3125
|
+
col5: {
|
|
3126
|
+
kumcoG: "xkgyxu0",
|
|
3127
|
+
$$css: !0
|
|
3128
|
+
},
|
|
3129
|
+
col6: {
|
|
3130
|
+
kumcoG: "xu4o1vd",
|
|
3131
|
+
$$css: !0
|
|
3132
|
+
},
|
|
3133
|
+
autoFit: (t) => [fn, {
|
|
3134
|
+
"--x-gridTemplateColumns": `repeat(auto-fit, minmax(${t}, 1fr))` != null ? `repeat(auto-fit, minmax(${t}, 1fr))` : void 0
|
|
3135
|
+
}],
|
|
3136
|
+
gapXs: {
|
|
3137
|
+
kOIVth: "xfrqhcj",
|
|
3138
|
+
$$css: !0
|
|
3139
|
+
},
|
|
3140
|
+
gapSm: {
|
|
3141
|
+
kOIVth: "x1wyuhvo",
|
|
3142
|
+
$$css: !0
|
|
3143
|
+
},
|
|
3144
|
+
gapMs: {
|
|
3145
|
+
kOIVth: "xl437h0",
|
|
3146
|
+
$$css: !0
|
|
3147
|
+
},
|
|
3148
|
+
gapMd: {
|
|
3149
|
+
kOIVth: "x1onxhe9",
|
|
3150
|
+
$$css: !0
|
|
3151
|
+
},
|
|
3152
|
+
gapLg: {
|
|
3153
|
+
kOIVth: "xibzbvl",
|
|
3154
|
+
$$css: !0
|
|
3155
|
+
},
|
|
3156
|
+
gapXl: {
|
|
3157
|
+
kOIVth: "xti5e4g",
|
|
3158
|
+
$$css: !0
|
|
3159
|
+
},
|
|
3160
|
+
gapXxl: {
|
|
3161
|
+
kOIVth: "x17gr5pr",
|
|
3162
|
+
$$css: !0
|
|
3163
|
+
},
|
|
3164
|
+
gapXxxl: {
|
|
3165
|
+
kOIVth: "x281kem",
|
|
3166
|
+
$$css: !0
|
|
3167
|
+
}
|
|
3168
|
+
}, $n = {
|
|
3169
|
+
xs: E.gapXs,
|
|
3170
|
+
sm: E.gapSm,
|
|
3171
|
+
ms: E.gapMs,
|
|
3172
|
+
md: E.gapMd,
|
|
3173
|
+
lg: E.gapLg,
|
|
3174
|
+
xl: E.gapXl,
|
|
3175
|
+
xxl: E.gapXxl,
|
|
3176
|
+
xxxl: E.gapXxxl
|
|
3177
|
+
}, vn = {
|
|
3178
|
+
1: E.col1,
|
|
3179
|
+
2: E.col2,
|
|
3180
|
+
3: E.col3,
|
|
3181
|
+
4: E.col4,
|
|
3182
|
+
5: E.col5,
|
|
3183
|
+
6: E.col6
|
|
3184
|
+
};
|
|
3185
|
+
function nr({
|
|
3186
|
+
gap: t = "md",
|
|
3187
|
+
columns: e,
|
|
3188
|
+
minColumnWidth: n,
|
|
3189
|
+
children: r
|
|
3190
|
+
}) {
|
|
3191
|
+
const s = n ? E.autoFit(n) : e ? vn[e] : void 0;
|
|
3192
|
+
return /* @__PURE__ */ o("div", { ...k(a.div, E.base, $n[t], s), children: r });
|
|
3193
|
+
}
|
|
3194
|
+
function rr(t = {}) {
|
|
3195
|
+
const {
|
|
3196
|
+
compactBelow: e = 480,
|
|
3197
|
+
spaciousAbove: n = 768
|
|
3198
|
+
} = t, r = y(null), [s, i] = G("default");
|
|
3199
|
+
return H(() => {
|
|
3200
|
+
const c = r.current;
|
|
3201
|
+
if (!c) return;
|
|
3202
|
+
let x = null;
|
|
3203
|
+
const d = new ResizeObserver((l) => {
|
|
3204
|
+
x !== null && cancelAnimationFrame(x), x = requestAnimationFrame(() => {
|
|
3205
|
+
const u = l[0];
|
|
3206
|
+
if (!u) return;
|
|
3207
|
+
const g = u.contentBoxSize?.[0]?.inlineSize ?? u.contentRect.width;
|
|
3208
|
+
g < e ? i("compact") : g >= n ? i("spacious") : i("default");
|
|
3209
|
+
});
|
|
3210
|
+
});
|
|
3211
|
+
return d.observe(c), () => {
|
|
3212
|
+
d.disconnect(), x !== null && cancelAnimationFrame(x);
|
|
3213
|
+
};
|
|
3214
|
+
}, [e, n]), {
|
|
3215
|
+
ref: r,
|
|
3216
|
+
size: s
|
|
3217
|
+
};
|
|
3218
|
+
}
|
|
2412
3219
|
export {
|
|
2413
|
-
|
|
2414
|
-
|
|
2415
|
-
|
|
2416
|
-
|
|
2417
|
-
|
|
2418
|
-
|
|
2419
|
-
|
|
2420
|
-
|
|
2421
|
-
|
|
2422
|
-
|
|
2423
|
-
|
|
2424
|
-
|
|
2425
|
-
|
|
2426
|
-
|
|
2427
|
-
|
|
2428
|
-
|
|
2429
|
-
|
|
2430
|
-
|
|
2431
|
-
|
|
2432
|
-
|
|
2433
|
-
|
|
2434
|
-
|
|
2435
|
-
|
|
2436
|
-
|
|
2437
|
-
|
|
2438
|
-
|
|
2439
|
-
|
|
2440
|
-
|
|
2441
|
-
|
|
2442
|
-
|
|
3220
|
+
yn as Alert,
|
|
3221
|
+
wn as Badge,
|
|
3222
|
+
Sn as Button,
|
|
3223
|
+
jn as Card,
|
|
3224
|
+
Mn as Checkbox,
|
|
3225
|
+
er as Cluster,
|
|
3226
|
+
zn as EmptyState,
|
|
3227
|
+
qn as Field,
|
|
3228
|
+
nr as Grid,
|
|
3229
|
+
In as Heading,
|
|
3230
|
+
tr as Inline,
|
|
3231
|
+
Wn as Input,
|
|
3232
|
+
Hn as InputGroup,
|
|
3233
|
+
Gn as LinkButton,
|
|
3234
|
+
Tn as Menu,
|
|
3235
|
+
En as ScrollArea,
|
|
3236
|
+
Ln as Select,
|
|
3237
|
+
An as SideNav,
|
|
3238
|
+
Vn as Spinner,
|
|
3239
|
+
Zn as Stack,
|
|
3240
|
+
On as StatusIcon,
|
|
3241
|
+
Nn as Table,
|
|
3242
|
+
Bn as Tabs,
|
|
3243
|
+
Un as Text,
|
|
3244
|
+
Dn as Textarea,
|
|
3245
|
+
Kn as ThemeProvider,
|
|
3246
|
+
_n as Tooltip,
|
|
3247
|
+
Cn as colors,
|
|
3248
|
+
tn as highContrastShadows,
|
|
3249
|
+
Ze as highContrastTheme,
|
|
3250
|
+
Yn as layoutSpacing,
|
|
3251
|
+
_e as lightShadows,
|
|
3252
|
+
Ue as lightTheme,
|
|
3253
|
+
Xn as radii,
|
|
3254
|
+
Qn as shadows,
|
|
3255
|
+
Rn as spacing,
|
|
3256
|
+
Fn as typePresets,
|
|
3257
|
+
Pn as typeScale,
|
|
3258
|
+
Jn as typography,
|
|
3259
|
+
rr as useContainerQuery
|
|
2443
3260
|
};
|
|
2444
3261
|
//# sourceMappingURL=index.js.map
|