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