@duro-app/ui 0.9.1 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Alert/Alert.d.ts.map +1 -1
- package/dist/components/Alert/Alert.stories.d.ts +1 -0
- package/dist/components/Alert/Alert.stories.d.ts.map +1 -1
- package/dist/components/Callout/Callout.d.ts +12 -0
- package/dist/components/Callout/Callout.d.ts.map +1 -0
- package/dist/components/Callout/Callout.stories.d.ts +13 -0
- package/dist/components/Callout/Callout.stories.d.ts.map +1 -0
- package/dist/components/Callout/index.d.ts +2 -0
- package/dist/components/Callout/index.d.ts.map +1 -0
- package/dist/components/Callout/styles.css.d.ts +42 -0
- package/dist/components/Callout/styles.css.d.ts.map +1 -0
- package/dist/components/Icon/Icon.d.ts.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +437 -371
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as r, jsxs as z, Fragment as N } from "react/jsx-runtime";
|
|
2
|
-
import { useState as G, useCallback as W, useContext as C, createContext as R, useId as _, useMemo as
|
|
2
|
+
import { useState as G, useCallback as W, useContext as C, createContext as R, useId as _, useMemo as me, useRef as w, useEffect as H, Children as We } from "react";
|
|
3
3
|
/**
|
|
4
4
|
* @license react-strict-dom
|
|
5
5
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
@@ -7,22 +7,22 @@ import { useState as G, useCallback as W, useContext as C, createContext as R, 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 be = {};
|
|
11
|
+
Object.defineProperty(be, "__esModule", {
|
|
12
12
|
value: !0
|
|
13
13
|
});
|
|
14
|
-
var
|
|
15
|
-
function
|
|
14
|
+
var He = be.styleq = void 0, Ye = /* @__PURE__ */ new WeakMap(), Je = "$$css";
|
|
15
|
+
function Ge(e) {
|
|
16
16
|
var t, n, s;
|
|
17
17
|
return e != null && (t = e.disableCache === !0, n = e.disableMix === !0, s = e.transform), function() {
|
|
18
|
-
for (var l = [], i = "", c = null, d = "", a = t ? null :
|
|
18
|
+
for (var l = [], i = "", c = null, d = "", a = t ? null : Ye, g = new Array(arguments.length), u = 0; u < arguments.length; u++)
|
|
19
19
|
g[u] = arguments[u];
|
|
20
20
|
for (; g.length > 0; ) {
|
|
21
21
|
var $ = g.pop();
|
|
22
22
|
if (!($ == null || $ === !1)) {
|
|
23
23
|
if (Array.isArray($)) {
|
|
24
|
-
for (var
|
|
25
|
-
g.push($[
|
|
24
|
+
for (var M = 0; M < $.length; M++)
|
|
25
|
+
g.push($[M]);
|
|
26
26
|
continue;
|
|
27
27
|
}
|
|
28
28
|
var p = s != null ? s($) : $;
|
|
@@ -35,7 +35,7 @@ function He(e) {
|
|
|
35
35
|
var v = [];
|
|
36
36
|
for (var h in p) {
|
|
37
37
|
var b = p[h];
|
|
38
|
-
if (h ===
|
|
38
|
+
if (h === Je) {
|
|
39
39
|
var B = p[h];
|
|
40
40
|
B !== !0 && (d = d ? B + "; " + d : B);
|
|
41
41
|
continue;
|
|
@@ -53,8 +53,8 @@ function He(e) {
|
|
|
53
53
|
else {
|
|
54
54
|
var y = null;
|
|
55
55
|
for (var I in p) {
|
|
56
|
-
var
|
|
57
|
-
|
|
56
|
+
var S = p[I];
|
|
57
|
+
S !== void 0 && (l.includes(I) || (S != null && (c == null && (c = {}), y == null && (y = {}), y[I] = S), l.push(I), a = null));
|
|
58
58
|
}
|
|
59
59
|
y != null && (c = Object.assign(y, c));
|
|
60
60
|
}
|
|
@@ -64,13 +64,13 @@ function He(e) {
|
|
|
64
64
|
return j;
|
|
65
65
|
};
|
|
66
66
|
}
|
|
67
|
-
var
|
|
68
|
-
|
|
69
|
-
const
|
|
67
|
+
var Pe = He = be.styleq = Ge();
|
|
68
|
+
Pe.factory = Ge;
|
|
69
|
+
const Fe = He.factory({
|
|
70
70
|
disableMix: !0
|
|
71
71
|
});
|
|
72
72
|
function x(...e) {
|
|
73
|
-
const [t, n, s] =
|
|
73
|
+
const [t, n, s] = Fe(e), o = {};
|
|
74
74
|
if (t != null && t !== "" && (o.className = t), n != null && (o.style = n), s != null && s !== "") {
|
|
75
75
|
const l = s.split(";"), i = {};
|
|
76
76
|
for (const c of l) {
|
|
@@ -121,23 +121,23 @@ const A = {
|
|
|
121
121
|
kHenm0: "x288g5",
|
|
122
122
|
$$css: !0
|
|
123
123
|
}
|
|
124
|
-
},
|
|
125
|
-
a:
|
|
126
|
-
button:
|
|
127
|
-
div:
|
|
124
|
+
}, Qe = A.inline, Ke = [A.inlineblock, A.button], Ue = A.block, Z = [A.block, A.heading], _e = [A.inlineblock, A.input], Ze = A.inline, et = A.block, tt = A.block, nt = A.inline, rt = [A.inlineblock, A.textarea], k = {
|
|
125
|
+
a: Qe,
|
|
126
|
+
button: Ke,
|
|
127
|
+
div: Ue,
|
|
128
128
|
h1: Z,
|
|
129
129
|
h2: Z,
|
|
130
130
|
h3: Z,
|
|
131
131
|
h4: Z,
|
|
132
132
|
h5: Z,
|
|
133
133
|
h6: Z,
|
|
134
|
-
input:
|
|
135
|
-
label:
|
|
136
|
-
nav:
|
|
137
|
-
p:
|
|
138
|
-
span:
|
|
139
|
-
textarea:
|
|
140
|
-
},
|
|
134
|
+
input: _e,
|
|
135
|
+
label: Ze,
|
|
136
|
+
nav: et,
|
|
137
|
+
p: tt,
|
|
138
|
+
span: nt,
|
|
139
|
+
textarea: rt
|
|
140
|
+
}, st = {
|
|
141
141
|
"x-circle": /* @__PURE__ */ z(N, { children: [
|
|
142
142
|
/* @__PURE__ */ r("circle", { cx: "12", cy: "12", r: "10" }),
|
|
143
143
|
/* @__PURE__ */ r("line", { x1: "15", y1: "9", x2: "9", y2: "15" }),
|
|
@@ -175,7 +175,7 @@ const A = {
|
|
|
175
175
|
/* @__PURE__ */ r("path", { d: "M7 11V7a5 5 0 0 1 10 0v4" })
|
|
176
176
|
] }),
|
|
177
177
|
key: /* @__PURE__ */ r(N, { children: /* @__PURE__ */ r("path", { d: "M21 2l-2 2m-7.61 7.61a5.5 5.5 0 1 1-7.78 7.78 5.5 5.5 0 0 1 7.78-7.78zm0 0L15.5 7.5m0 0l3 3L22 7l-3-3m-3.5 3.5L19 4" }) })
|
|
178
|
-
},
|
|
178
|
+
}, ot = {
|
|
179
179
|
// Filled circle with "i" cutout (dot + line)
|
|
180
180
|
"info-circle-filled": /* @__PURE__ */ r("path", { fillRule: "evenodd", d: "M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm-.75 6a.75.75 0 1 1 1.5 0 .75.75 0 0 1-1.5 0zM11 11a1 1 0 1 1 2 0v5a1 1 0 1 1-2 0v-5z" }),
|
|
181
181
|
// Filled triangle with "!" cutout
|
|
@@ -192,14 +192,14 @@ const A = {
|
|
|
192
192
|
/* @__PURE__ */ r("rect", { x: "3", y: "11", width: "18", height: "11", rx: "2", ry: "2" })
|
|
193
193
|
] })
|
|
194
194
|
};
|
|
195
|
-
function
|
|
195
|
+
function ie({
|
|
196
196
|
name: e,
|
|
197
197
|
size: t = 24
|
|
198
198
|
}) {
|
|
199
|
-
const n =
|
|
200
|
-
return n ? /* @__PURE__ */ r("svg", { viewBox: "0 0 24 24", fill: "currentColor", width: t, height: t, children: n }) : /* @__PURE__ */ r("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", width: t, height: t, children:
|
|
199
|
+
const n = ot[e];
|
|
200
|
+
return n ? /* @__PURE__ */ r("svg", { viewBox: "0 0 24 24", fill: "currentColor", width: t, height: t, children: n }) : /* @__PURE__ */ r("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", width: t, height: t, children: st[e] });
|
|
201
201
|
}
|
|
202
|
-
const
|
|
202
|
+
const le = {
|
|
203
203
|
base: {
|
|
204
204
|
k1xSpc: "x78zum5",
|
|
205
205
|
kXwgrk: "x1q0g3np",
|
|
@@ -250,27 +250,27 @@ const ce = {
|
|
|
250
250
|
kMwMTN: "xmooqzt",
|
|
251
251
|
$$css: !0
|
|
252
252
|
}
|
|
253
|
-
},
|
|
253
|
+
}, it = {
|
|
254
254
|
info: "info-circle-filled",
|
|
255
255
|
warning: "alert-triangle-filled",
|
|
256
256
|
success: "check-circle-filled",
|
|
257
257
|
error: "x-circle-filled"
|
|
258
258
|
};
|
|
259
|
-
function
|
|
260
|
-
return e === !1 ? null : e === void 0 ? /* @__PURE__ */ r(
|
|
259
|
+
function ct(e, t) {
|
|
260
|
+
return e === !1 ? null : e === void 0 ? /* @__PURE__ */ r(ie, { name: it[t], size: 18 }) : typeof e == "string" ? /* @__PURE__ */ r(ie, { name: e, size: 18 }) : e;
|
|
261
261
|
}
|
|
262
|
-
function
|
|
262
|
+
function Wn({
|
|
263
263
|
variant: e = "info",
|
|
264
264
|
icon: t,
|
|
265
265
|
children: n
|
|
266
266
|
}) {
|
|
267
|
-
const s =
|
|
268
|
-
return /* @__PURE__ */ r("div", { role: "alert", ...x(k.div,
|
|
269
|
-
/* @__PURE__ */ r("div", { ...x(k.div,
|
|
270
|
-
/* @__PURE__ */ r("div", { ...x(k.div,
|
|
267
|
+
const s = ct(t, e);
|
|
268
|
+
return /* @__PURE__ */ r("div", { role: "alert", ...x(k.div, le.base, le[e]), children: s ? /* @__PURE__ */ z(N, { children: [
|
|
269
|
+
/* @__PURE__ */ r("div", { ...x(k.div, le.iconWrap), children: s }),
|
|
270
|
+
/* @__PURE__ */ r("div", { ...x(k.div, le.content), children: n })
|
|
271
271
|
] }) : n });
|
|
272
272
|
}
|
|
273
|
-
const
|
|
273
|
+
const ke = {
|
|
274
274
|
base: {
|
|
275
275
|
k1xSpc: "x3nfvp2",
|
|
276
276
|
kGNEyG: "x6s0dn4",
|
|
@@ -323,16 +323,16 @@ const xe = {
|
|
|
323
323
|
kMwMTN: "xmooqzt",
|
|
324
324
|
$$css: !0
|
|
325
325
|
}
|
|
326
|
-
},
|
|
327
|
-
sm:
|
|
328
|
-
md:
|
|
326
|
+
}, lt = {
|
|
327
|
+
sm: ke.sizeSm,
|
|
328
|
+
md: ke.sizeMd
|
|
329
329
|
};
|
|
330
|
-
function
|
|
330
|
+
function Hn({
|
|
331
331
|
variant: e = "default",
|
|
332
332
|
size: t = "md",
|
|
333
333
|
children: n
|
|
334
334
|
}) {
|
|
335
|
-
return /* @__PURE__ */ r("span", { ...x(k.span,
|
|
335
|
+
return /* @__PURE__ */ r("span", { ...x(k.span, ke.base, lt[t], ke[e]), children: n });
|
|
336
336
|
}
|
|
337
337
|
const ne = {
|
|
338
338
|
base: {
|
|
@@ -409,11 +409,11 @@ const ne = {
|
|
|
409
409
|
kkrTdU: "x1h6gzvc",
|
|
410
410
|
$$css: !0
|
|
411
411
|
}
|
|
412
|
-
},
|
|
412
|
+
}, xt = {
|
|
413
413
|
default: ne.sizeDefault,
|
|
414
414
|
small: ne.sizeSmall
|
|
415
415
|
};
|
|
416
|
-
function
|
|
416
|
+
function Gn({
|
|
417
417
|
variant: e = "primary",
|
|
418
418
|
size: t = "default",
|
|
419
419
|
fullWidth: n = !1,
|
|
@@ -422,7 +422,72 @@ function qn({
|
|
|
422
422
|
onClick: l,
|
|
423
423
|
children: i
|
|
424
424
|
}) {
|
|
425
|
-
return /* @__PURE__ */ r("button", { type: o, disabled: s, onClick: l, ...x(k.button, ne.base,
|
|
425
|
+
return /* @__PURE__ */ r("button", { type: o, disabled: s, onClick: l, ...x(k.button, ne.base, xt[t], ne[e], n && ne.fullWidth, s && ne.disabled), children: i });
|
|
426
|
+
}
|
|
427
|
+
const pe = {
|
|
428
|
+
base: {
|
|
429
|
+
kmVPX3: "x16ixvul",
|
|
430
|
+
kaIpWk: "x1gbengz",
|
|
431
|
+
kMzoRj: "xmkeg23",
|
|
432
|
+
ksu8eU: "x1y0btm7",
|
|
433
|
+
kGuDYH: "xh6m7d2",
|
|
434
|
+
kLWn49: "xi1gl5z",
|
|
435
|
+
kVQacm: "xb3r6kr",
|
|
436
|
+
$$css: !0
|
|
437
|
+
},
|
|
438
|
+
icon: {
|
|
439
|
+
kyUFMd: "x1faq86j",
|
|
440
|
+
km5ZXQ: "xxn522s",
|
|
441
|
+
k1K539: "x1r2uyx8",
|
|
442
|
+
keoZOQ: "xr9ek0c",
|
|
443
|
+
k1xSpc: "x3nfvp2",
|
|
444
|
+
kGNEyG: "x6s0dn4",
|
|
445
|
+
kjj79g: "xl56j7k",
|
|
446
|
+
$$css: !0
|
|
447
|
+
},
|
|
448
|
+
error: {
|
|
449
|
+
kWkggS: "x102pa86",
|
|
450
|
+
kVAM5u: "xmuf6iu",
|
|
451
|
+
kMwMTN: "x1gc3xgn",
|
|
452
|
+
$$css: !0
|
|
453
|
+
},
|
|
454
|
+
success: {
|
|
455
|
+
kWkggS: "xqmdxru",
|
|
456
|
+
kVAM5u: "x1q7s2p",
|
|
457
|
+
kMwMTN: "xcrp0t0",
|
|
458
|
+
$$css: !0
|
|
459
|
+
},
|
|
460
|
+
warning: {
|
|
461
|
+
kWkggS: "x1g9he1u",
|
|
462
|
+
kVAM5u: "xsrn1xb",
|
|
463
|
+
kMwMTN: "x1e2iipf",
|
|
464
|
+
$$css: !0
|
|
465
|
+
},
|
|
466
|
+
info: {
|
|
467
|
+
kWkggS: "xzusddy",
|
|
468
|
+
kVAM5u: "x1ke832z",
|
|
469
|
+
kMwMTN: "xmooqzt",
|
|
470
|
+
$$css: !0
|
|
471
|
+
}
|
|
472
|
+
}, kt = {
|
|
473
|
+
info: "info-circle-filled",
|
|
474
|
+
warning: "alert-triangle-filled",
|
|
475
|
+
success: "check-circle-filled",
|
|
476
|
+
error: "x-circle-filled"
|
|
477
|
+
};
|
|
478
|
+
function at(e, t) {
|
|
479
|
+
return e === !1 ? null : e === void 0 ? /* @__PURE__ */ r(ie, { name: kt[t], size: 36 }) : typeof e == "string" ? /* @__PURE__ */ r(ie, { name: e, size: 36 }) : e;
|
|
480
|
+
}
|
|
481
|
+
function Ln({
|
|
482
|
+
variant: e = "info",
|
|
483
|
+
icon: t,
|
|
484
|
+
children: n
|
|
485
|
+
}) {
|
|
486
|
+
const s = at(t, e);
|
|
487
|
+
return /* @__PURE__ */ z("div", { role: "note", ...x(k.div, pe.base, pe[e]), children: [
|
|
488
|
+
s && /* @__PURE__ */ r("span", { ...x(k.span, pe.icon), children: s }),
|
|
489
|
+
n
|
|
490
|
+
] });
|
|
426
491
|
}
|
|
427
492
|
const re = {
|
|
428
493
|
base: {
|
|
@@ -481,19 +546,19 @@ const re = {
|
|
|
481
546
|
k1K539: "x2mrtcw",
|
|
482
547
|
$$css: !0
|
|
483
548
|
}
|
|
484
|
-
},
|
|
549
|
+
}, ut = {
|
|
485
550
|
default: re.sizeDefault,
|
|
486
551
|
compact: re.sizeCompact,
|
|
487
552
|
full: re.sizeFull
|
|
488
553
|
};
|
|
489
|
-
function
|
|
554
|
+
function Tn({
|
|
490
555
|
variant: e = "outlined",
|
|
491
556
|
size: t = "default",
|
|
492
557
|
header: n,
|
|
493
558
|
onClick: s,
|
|
494
559
|
children: o
|
|
495
560
|
}) {
|
|
496
|
-
return /* @__PURE__ */ z("div", { onClick: s, ...x(k.div, re.base, re[e],
|
|
561
|
+
return /* @__PURE__ */ z("div", { onClick: s, ...x(k.div, re.base, re[e], ut[t]), children: [
|
|
497
562
|
n && /* @__PURE__ */ r("div", { ...x(k.div, re.header), children: n }),
|
|
498
563
|
o
|
|
499
564
|
] });
|
|
@@ -548,7 +613,7 @@ const ee = {
|
|
|
548
613
|
$$css: !0
|
|
549
614
|
}
|
|
550
615
|
};
|
|
551
|
-
function
|
|
616
|
+
function En({
|
|
552
617
|
name: e,
|
|
553
618
|
value: t,
|
|
554
619
|
checked: n,
|
|
@@ -568,7 +633,7 @@ function Hn({
|
|
|
568
633
|
i && /* @__PURE__ */ r("span", { ...x(k.span), children: i })
|
|
569
634
|
] });
|
|
570
635
|
}
|
|
571
|
-
const
|
|
636
|
+
const fe = {
|
|
572
637
|
root: {
|
|
573
638
|
k1xSpc: "x78zum5",
|
|
574
639
|
kXwgrk: "xdt5ytf",
|
|
@@ -591,18 +656,18 @@ const he = {
|
|
|
591
656
|
$$css: !0
|
|
592
657
|
}
|
|
593
658
|
};
|
|
594
|
-
function
|
|
659
|
+
function Vn({
|
|
595
660
|
message: e,
|
|
596
661
|
icon: t,
|
|
597
662
|
action: n
|
|
598
663
|
}) {
|
|
599
|
-
return /* @__PURE__ */ z("div", { ...x(k.div,
|
|
664
|
+
return /* @__PURE__ */ z("div", { ...x(k.div, fe.root), children: [
|
|
600
665
|
t,
|
|
601
|
-
/* @__PURE__ */ r("p", { ...x(k.p,
|
|
602
|
-
n && /* @__PURE__ */ r("div", { ...x(k.div,
|
|
666
|
+
/* @__PURE__ */ r("p", { ...x(k.p, fe.message), children: e }),
|
|
667
|
+
n && /* @__PURE__ */ r("div", { ...x(k.div, fe.action), children: n })
|
|
603
668
|
] });
|
|
604
669
|
}
|
|
605
|
-
const
|
|
670
|
+
const Le = {
|
|
606
671
|
bodySm: {
|
|
607
672
|
kMv6JI: "x2nsvjj",
|
|
608
673
|
kGuDYH: "x1if0jgx",
|
|
@@ -716,7 +781,7 @@ const Ge = {
|
|
|
716
781
|
kb6lSQ: "xgvl3jc",
|
|
717
782
|
$$css: !0
|
|
718
783
|
}
|
|
719
|
-
},
|
|
784
|
+
}, xe = {
|
|
720
785
|
default: {
|
|
721
786
|
kMwMTN: "xg6mlj0",
|
|
722
787
|
$$css: !0
|
|
@@ -741,33 +806,33 @@ const Ge = {
|
|
|
741
806
|
k9WMMc: "xp4054r",
|
|
742
807
|
$$css: !0
|
|
743
808
|
}
|
|
744
|
-
},
|
|
809
|
+
}, dt = {
|
|
745
810
|
1: "headingXl",
|
|
746
811
|
2: "headingLg",
|
|
747
812
|
3: "headingMd",
|
|
748
813
|
4: "headingSm",
|
|
749
814
|
5: "headingSm",
|
|
750
815
|
6: "headingSm"
|
|
751
|
-
},
|
|
752
|
-
start:
|
|
753
|
-
center:
|
|
754
|
-
end:
|
|
816
|
+
}, gt = {
|
|
817
|
+
start: xe.alignStart,
|
|
818
|
+
center: xe.alignCenter,
|
|
819
|
+
end: xe.alignEnd
|
|
755
820
|
};
|
|
756
|
-
function
|
|
821
|
+
function An({
|
|
757
822
|
level: e,
|
|
758
823
|
variant: t,
|
|
759
824
|
color: n = "default",
|
|
760
825
|
align: s,
|
|
761
826
|
children: o
|
|
762
827
|
}) {
|
|
763
|
-
const l = t ??
|
|
828
|
+
const l = t ?? dt[e], i = [Le[l], xe[n], s && gt[s]];
|
|
764
829
|
return e === 1 ? /* @__PURE__ */ r("h1", { ...x(k.h1, i), children: o }) : e === 2 ? /* @__PURE__ */ r("h2", { ...x(k.h2, i), children: o }) : e === 3 ? /* @__PURE__ */ r("h3", { ...x(k.h3, i), children: o }) : e === 4 ? /* @__PURE__ */ r("h4", { ...x(k.h4, i), children: o }) : e === 5 ? /* @__PURE__ */ r("h5", { ...x(k.h5, i), children: o }) : /* @__PURE__ */ r("h6", { ...x(k.h6, i), children: o });
|
|
765
830
|
}
|
|
766
|
-
const
|
|
767
|
-
function
|
|
768
|
-
return C(
|
|
831
|
+
const Te = R(null);
|
|
832
|
+
function ce() {
|
|
833
|
+
return C(Te);
|
|
769
834
|
}
|
|
770
|
-
const
|
|
835
|
+
const ae = {
|
|
771
836
|
root: {
|
|
772
837
|
k1xSpc: "x78zum5",
|
|
773
838
|
kXwgrk: "xdt5ytf",
|
|
@@ -791,46 +856,46 @@ const ke = {
|
|
|
791
856
|
$$css: !0
|
|
792
857
|
}
|
|
793
858
|
};
|
|
794
|
-
function
|
|
859
|
+
function ht({
|
|
795
860
|
invalid: e = !1,
|
|
796
861
|
children: t
|
|
797
862
|
}) {
|
|
798
|
-
const n = _(), s =
|
|
863
|
+
const n = _(), s = me(() => ({
|
|
799
864
|
controlId: `${n}-control`,
|
|
800
865
|
descriptionId: `${n}-description`,
|
|
801
866
|
errorId: `${n}-error`,
|
|
802
867
|
invalid: e
|
|
803
868
|
}), [n, e]);
|
|
804
|
-
return /* @__PURE__ */ r(
|
|
869
|
+
return /* @__PURE__ */ r(Te.Provider, { value: s, children: /* @__PURE__ */ r("div", { ...x(k.div, ae.root), children: t }) });
|
|
805
870
|
}
|
|
806
|
-
function
|
|
871
|
+
function pt({
|
|
807
872
|
children: e
|
|
808
873
|
}) {
|
|
809
|
-
const t =
|
|
810
|
-
return /* @__PURE__ */ r("label", { htmlFor: t?.controlId, ...x(k.label,
|
|
874
|
+
const t = ce();
|
|
875
|
+
return /* @__PURE__ */ r("label", { htmlFor: t?.controlId, ...x(k.label, ae.label), children: e });
|
|
811
876
|
}
|
|
812
|
-
function
|
|
877
|
+
function ft({
|
|
813
878
|
children: e
|
|
814
879
|
}) {
|
|
815
|
-
const t =
|
|
816
|
-
return /* @__PURE__ */ r("span", { id: t?.descriptionId, ...x(k.span,
|
|
880
|
+
const t = ce();
|
|
881
|
+
return /* @__PURE__ */ r("span", { id: t?.descriptionId, ...x(k.span, ae.description), children: e });
|
|
817
882
|
}
|
|
818
|
-
function
|
|
883
|
+
function vt({
|
|
819
884
|
children: e
|
|
820
885
|
}) {
|
|
821
|
-
const t =
|
|
822
|
-
return !t?.invalid && !e ? null : /* @__PURE__ */ r("span", { id: t?.errorId, role: "alert", ...x(k.span,
|
|
823
|
-
}
|
|
824
|
-
const Tn = {
|
|
825
|
-
Root: ut,
|
|
826
|
-
Label: dt,
|
|
827
|
-
Description: gt,
|
|
828
|
-
Error: ht
|
|
829
|
-
}, Te = R(null);
|
|
830
|
-
function pt() {
|
|
831
|
-
return C(Te);
|
|
886
|
+
const t = ce();
|
|
887
|
+
return !t?.invalid && !e ? null : /* @__PURE__ */ r("span", { id: t?.errorId, role: "alert", ...x(k.span, ae.error), children: e });
|
|
832
888
|
}
|
|
833
|
-
const
|
|
889
|
+
const Nn = {
|
|
890
|
+
Root: ht,
|
|
891
|
+
Label: pt,
|
|
892
|
+
Description: ft,
|
|
893
|
+
Error: vt
|
|
894
|
+
}, Ee = R(null);
|
|
895
|
+
function $t() {
|
|
896
|
+
return C(Ee);
|
|
897
|
+
}
|
|
898
|
+
const ve = {
|
|
834
899
|
base: {
|
|
835
900
|
kzqmXN: "xh8yej3",
|
|
836
901
|
kLKAdn: "x1y6gaq4",
|
|
@@ -869,7 +934,7 @@ const pe = {
|
|
|
869
934
|
$$css: !0
|
|
870
935
|
}
|
|
871
936
|
};
|
|
872
|
-
function
|
|
937
|
+
function On({
|
|
873
938
|
variant: e = "default",
|
|
874
939
|
type: t = "text",
|
|
875
940
|
name: n,
|
|
@@ -883,10 +948,10 @@ function En({
|
|
|
883
948
|
disabled: g,
|
|
884
949
|
onChange: u
|
|
885
950
|
}) {
|
|
886
|
-
const $ =
|
|
951
|
+
const $ = ce(), M = $t(), p = i !== void 0 ? {
|
|
887
952
|
pattern: i
|
|
888
953
|
} : void 0;
|
|
889
|
-
return /* @__PURE__ */ r("input", { id: $?.controlId, type: t, name: n, placeholder: s, required: o, minLength: l, autoComplete: c, value: d, defaultValue: a, disabled: g, "aria-describedby": $ ? `${$.descriptionId} ${$.invalid ? $.errorId : ""}`.trim() : void 0, "aria-invalid": $?.invalid || e === "error" || void 0, onChange: u, ...x(k.input,
|
|
954
|
+
return /* @__PURE__ */ r("input", { id: $?.controlId, type: t, name: n, placeholder: s, required: o, minLength: l, autoComplete: c, value: d, defaultValue: a, disabled: g, "aria-describedby": $ ? `${$.descriptionId} ${$.invalid ? $.errorId : ""}`.trim() : void 0, "aria-invalid": $?.invalid || e === "error" || void 0, onChange: u, ...x(k.input, ve.base, ve[e], M?.inGroup && ve.inGroup), ...p, dir: "auto" });
|
|
890
955
|
}
|
|
891
956
|
const te = {
|
|
892
957
|
wrapper: {
|
|
@@ -943,15 +1008,15 @@ const te = {
|
|
|
943
1008
|
$$css: !0
|
|
944
1009
|
}
|
|
945
1010
|
};
|
|
946
|
-
function
|
|
1011
|
+
function mt({
|
|
947
1012
|
children: e
|
|
948
1013
|
}) {
|
|
949
|
-
const t =
|
|
1014
|
+
const t = me(() => ({
|
|
950
1015
|
inGroup: !0
|
|
951
1016
|
}), []);
|
|
952
|
-
return /* @__PURE__ */ r(
|
|
1017
|
+
return /* @__PURE__ */ r(Ee.Provider, { value: t, children: /* @__PURE__ */ r("div", { ...x(k.div, te.wrapper), children: e }) });
|
|
953
1018
|
}
|
|
954
|
-
function
|
|
1019
|
+
function bt({
|
|
955
1020
|
position: e = "end",
|
|
956
1021
|
onClick: t,
|
|
957
1022
|
disabled: n,
|
|
@@ -960,9 +1025,9 @@ function vt({
|
|
|
960
1025
|
const o = e === "start" ? te.addonStart : te.addonEnd, l = [te.addon, o, t && !n && te.addonClickable, n && te.addonDisabled];
|
|
961
1026
|
return t ? /* @__PURE__ */ r("button", { type: "button", onClick: t, disabled: n, ...x(k.button, l), children: s }) : /* @__PURE__ */ r("span", { ...x(k.span, l), children: s });
|
|
962
1027
|
}
|
|
963
|
-
const
|
|
964
|
-
Root:
|
|
965
|
-
Addon:
|
|
1028
|
+
const Cn = {
|
|
1029
|
+
Root: mt,
|
|
1030
|
+
Addon: bt
|
|
966
1031
|
}, oe = {
|
|
967
1032
|
base: {
|
|
968
1033
|
k1xSpc: "x3nfvp2",
|
|
@@ -1013,11 +1078,11 @@ const Vn = {
|
|
|
1013
1078
|
kzqmXN: "xh8yej3",
|
|
1014
1079
|
$$css: !0
|
|
1015
1080
|
}
|
|
1016
|
-
},
|
|
1081
|
+
}, yt = {
|
|
1017
1082
|
default: oe.sizeDefault,
|
|
1018
1083
|
small: oe.sizeSmall
|
|
1019
1084
|
};
|
|
1020
|
-
function
|
|
1085
|
+
function Bn({
|
|
1021
1086
|
href: e,
|
|
1022
1087
|
variant: t = "primary",
|
|
1023
1088
|
size: n = "default",
|
|
@@ -1026,7 +1091,7 @@ function An({
|
|
|
1026
1091
|
rel: l,
|
|
1027
1092
|
children: i
|
|
1028
1093
|
}) {
|
|
1029
|
-
return /* @__PURE__ */ r("a", { href: e, target: o, rel: l, ...x(k.a, oe.base,
|
|
1094
|
+
return /* @__PURE__ */ r("a", { href: e, target: o, rel: l, ...x(k.a, oe.base, yt[n], oe[t], s && oe.fullWidth), children: i });
|
|
1030
1095
|
}
|
|
1031
1096
|
const P = {
|
|
1032
1097
|
root: {
|
|
@@ -1112,13 +1177,13 @@ const P = {
|
|
|
1112
1177
|
kMwMTN: "xg6mlj0 x1c35pte",
|
|
1113
1178
|
$$css: !0
|
|
1114
1179
|
}
|
|
1115
|
-
},
|
|
1116
|
-
function
|
|
1117
|
-
const e = C(
|
|
1180
|
+
}, Ve = R(null);
|
|
1181
|
+
function ue() {
|
|
1182
|
+
const e = C(Ve);
|
|
1118
1183
|
if (!e) throw new Error("Menu compound components must be used within Menu.Root");
|
|
1119
1184
|
return e;
|
|
1120
1185
|
}
|
|
1121
|
-
function
|
|
1186
|
+
function wt() {
|
|
1122
1187
|
const [e, t] = G(!1), [n, s] = G(null), o = _(), l = w(null), i = w(null), c = w(/* @__PURE__ */ new Map()), d = w([]), a = w(!1), g = W(() => {
|
|
1123
1188
|
t(!1), s(null), a.current = !1, i.current?.focus();
|
|
1124
1189
|
}, []), u = W(() => {
|
|
@@ -1199,16 +1264,16 @@ function mt() {
|
|
|
1199
1264
|
rootRef: l
|
|
1200
1265
|
};
|
|
1201
1266
|
}
|
|
1202
|
-
function
|
|
1267
|
+
function Mt({
|
|
1203
1268
|
children: e
|
|
1204
1269
|
}) {
|
|
1205
1270
|
const {
|
|
1206
1271
|
ctx: t,
|
|
1207
1272
|
rootRef: n
|
|
1208
|
-
} =
|
|
1209
|
-
return /* @__PURE__ */ r(
|
|
1273
|
+
} = wt();
|
|
1274
|
+
return /* @__PURE__ */ r(Ve.Provider, { value: t, children: /* @__PURE__ */ r("div", { ref: n, ...x(k.div, P.root), children: e }) });
|
|
1210
1275
|
}
|
|
1211
|
-
function
|
|
1276
|
+
function St({
|
|
1212
1277
|
children: e
|
|
1213
1278
|
}) {
|
|
1214
1279
|
const {
|
|
@@ -1216,12 +1281,12 @@ function yt({
|
|
|
1216
1281
|
toggle: n,
|
|
1217
1282
|
menuId: s,
|
|
1218
1283
|
triggerRef: o
|
|
1219
|
-
} =
|
|
1284
|
+
} = ue(), l = w(null);
|
|
1220
1285
|
return H(() => {
|
|
1221
1286
|
o.current = l.current;
|
|
1222
1287
|
}), /* @__PURE__ */ r("button", { ref: l, type: "button", onClick: n, "aria-expanded": t, "aria-haspopup": "menu", "aria-controls": t ? s : void 0, ...x(k.button, P.trigger), children: e });
|
|
1223
1288
|
}
|
|
1224
|
-
function
|
|
1289
|
+
function jt({
|
|
1225
1290
|
children: e,
|
|
1226
1291
|
align: t = "start"
|
|
1227
1292
|
}) {
|
|
@@ -1230,13 +1295,13 @@ function wt({
|
|
|
1230
1295
|
close: s,
|
|
1231
1296
|
menuId: o,
|
|
1232
1297
|
highlightedId: l
|
|
1233
|
-
} =
|
|
1298
|
+
} = ue();
|
|
1234
1299
|
return n ? /* @__PURE__ */ z(N, { children: [
|
|
1235
1300
|
/* @__PURE__ */ r("div", { ...x(k.div, P.backdrop), onClick: s }),
|
|
1236
1301
|
/* @__PURE__ */ r("div", { id: o, role: "menu", "aria-activedescendant": l ?? void 0, ...x(k.div, P.popup, t === "end" && P.popupEnd), children: e })
|
|
1237
1302
|
] }) : null;
|
|
1238
1303
|
}
|
|
1239
|
-
function
|
|
1304
|
+
function zt({
|
|
1240
1305
|
onClick: e,
|
|
1241
1306
|
children: t
|
|
1242
1307
|
}) {
|
|
@@ -1245,7 +1310,7 @@ function St({
|
|
|
1245
1310
|
highlightedId: s,
|
|
1246
1311
|
setHighlightedId: o,
|
|
1247
1312
|
registerItem: l
|
|
1248
|
-
} =
|
|
1313
|
+
} = ue(), i = _(), c = w(null), d = s === i;
|
|
1249
1314
|
return H(() => {
|
|
1250
1315
|
const g = c.current;
|
|
1251
1316
|
if (g)
|
|
@@ -1254,7 +1319,7 @@ function St({
|
|
|
1254
1319
|
e?.(), n();
|
|
1255
1320
|
}, onPointerEnter: () => o(i), ...x(k.div, P.item, d && P.itemHighlighted), children: t });
|
|
1256
1321
|
}
|
|
1257
|
-
function
|
|
1322
|
+
function It({
|
|
1258
1323
|
href: e,
|
|
1259
1324
|
children: t
|
|
1260
1325
|
}) {
|
|
@@ -1263,19 +1328,19 @@ function Mt({
|
|
|
1263
1328
|
highlightedId: s,
|
|
1264
1329
|
setHighlightedId: o,
|
|
1265
1330
|
registerItem: l
|
|
1266
|
-
} =
|
|
1331
|
+
} = ue(), i = _(), c = w(null), d = s === i;
|
|
1267
1332
|
return H(() => {
|
|
1268
1333
|
const a = c.current;
|
|
1269
1334
|
if (a)
|
|
1270
1335
|
return l(i, a);
|
|
1271
1336
|
}, [i, l]), /* @__PURE__ */ r("a", { ref: c, id: i, href: e, onClick: n, role: "menuitem", onPointerEnter: () => o(i), ...x(k.a, P.item, P.linkItem, d && P.itemHighlighted), children: t });
|
|
1272
1337
|
}
|
|
1273
|
-
const
|
|
1274
|
-
Root:
|
|
1275
|
-
Trigger:
|
|
1276
|
-
Popup:
|
|
1277
|
-
Item:
|
|
1278
|
-
LinkItem:
|
|
1338
|
+
const Dn = {
|
|
1339
|
+
Root: Mt,
|
|
1340
|
+
Trigger: St,
|
|
1341
|
+
Popup: jt,
|
|
1342
|
+
Item: zt,
|
|
1343
|
+
LinkItem: It
|
|
1279
1344
|
}, D = {
|
|
1280
1345
|
root: {
|
|
1281
1346
|
kVAEAm: "x1n2onr6",
|
|
@@ -1367,24 +1432,24 @@ const Nn = {
|
|
|
1367
1432
|
"--x-width": ((n) => typeof n == "number" ? n + "px" : n ?? void 0)(e),
|
|
1368
1433
|
"--x-transform": t ?? void 0
|
|
1369
1434
|
}]
|
|
1370
|
-
},
|
|
1371
|
-
function
|
|
1372
|
-
const e = C(
|
|
1435
|
+
}, Ae = R(null);
|
|
1436
|
+
function de() {
|
|
1437
|
+
const e = C(Ae);
|
|
1373
1438
|
if (!e) throw new Error("ScrollArea compound components must be used within ScrollArea.Root");
|
|
1374
1439
|
return e;
|
|
1375
1440
|
}
|
|
1376
|
-
function
|
|
1377
|
-
const e = w(null), t = w(null), [n, s] = G(0), [o, l] = G(0), [i, c] = G(0), [d, a] = G(0), [g, u] = G(0), [$,
|
|
1441
|
+
function qt() {
|
|
1442
|
+
const e = w(null), t = w(null), [n, s] = G(0), [o, l] = G(0), [i, c] = G(0), [d, a] = G(0), [g, u] = G(0), [$, M] = G(0), [p, m] = G(!1), f = w(null), v = W(() => {
|
|
1378
1443
|
const h = e.current;
|
|
1379
|
-
h && (s(h.scrollTop), l(h.scrollLeft), c(h.scrollHeight), a(h.scrollWidth), u(h.clientHeight),
|
|
1444
|
+
h && (s(h.scrollTop), l(h.scrollLeft), c(h.scrollHeight), a(h.scrollWidth), u(h.clientHeight), M(h.clientWidth), m(!0), f.current && clearTimeout(f.current), f.current = setTimeout(() => m(!1), 1e3));
|
|
1380
1445
|
}, []);
|
|
1381
1446
|
return H(() => {
|
|
1382
1447
|
const h = e.current;
|
|
1383
1448
|
if (!h) return;
|
|
1384
1449
|
const b = new ResizeObserver(() => {
|
|
1385
|
-
c(h.scrollHeight), a(h.scrollWidth), u(h.clientHeight),
|
|
1450
|
+
c(h.scrollHeight), a(h.scrollWidth), u(h.clientHeight), M(h.clientWidth);
|
|
1386
1451
|
});
|
|
1387
|
-
return b.observe(h), c(h.scrollHeight), a(h.scrollWidth), u(h.clientHeight),
|
|
1452
|
+
return b.observe(h), c(h.scrollHeight), a(h.scrollWidth), u(h.clientHeight), M(h.clientWidth), () => b.disconnect();
|
|
1388
1453
|
}, []), H(() => {
|
|
1389
1454
|
const h = e.current;
|
|
1390
1455
|
if (h)
|
|
@@ -1403,30 +1468,30 @@ function jt() {
|
|
|
1403
1468
|
scrolling: p
|
|
1404
1469
|
};
|
|
1405
1470
|
}
|
|
1406
|
-
function
|
|
1471
|
+
function Wt({
|
|
1407
1472
|
children: e
|
|
1408
1473
|
}) {
|
|
1409
|
-
const t =
|
|
1410
|
-
return /* @__PURE__ */ r(
|
|
1474
|
+
const t = qt();
|
|
1475
|
+
return /* @__PURE__ */ r(Ae.Provider, { value: t, children: /* @__PURE__ */ r("div", { ...x(k.div, D.root), children: e }) });
|
|
1411
1476
|
}
|
|
1412
|
-
function
|
|
1477
|
+
function Ht({
|
|
1413
1478
|
children: e,
|
|
1414
1479
|
maxHeight: t
|
|
1415
1480
|
}) {
|
|
1416
1481
|
const {
|
|
1417
1482
|
viewportRef: n
|
|
1418
|
-
} =
|
|
1483
|
+
} = de();
|
|
1419
1484
|
return /* @__PURE__ */ r("div", { ref: n, ...x(k.div, D.viewport, t != null && D.viewportMaxHeight(t)), children: e });
|
|
1420
1485
|
}
|
|
1421
|
-
function
|
|
1486
|
+
function Gt({
|
|
1422
1487
|
children: e
|
|
1423
1488
|
}) {
|
|
1424
1489
|
const {
|
|
1425
1490
|
contentRef: t
|
|
1426
|
-
} =
|
|
1491
|
+
} = de();
|
|
1427
1492
|
return /* @__PURE__ */ r("div", { ref: t, ...x(k.div, D.content), children: e });
|
|
1428
1493
|
}
|
|
1429
|
-
function
|
|
1494
|
+
function Lt({
|
|
1430
1495
|
orientation: e = "vertical",
|
|
1431
1496
|
children: t
|
|
1432
1497
|
}) {
|
|
@@ -1436,10 +1501,10 @@ function Wt({
|
|
|
1436
1501
|
scrollWidth: o,
|
|
1437
1502
|
clientHeight: l,
|
|
1438
1503
|
clientWidth: i
|
|
1439
|
-
} =
|
|
1504
|
+
} = de();
|
|
1440
1505
|
return (e === "vertical" ? s > l : o > i) ? /* @__PURE__ */ r("div", { ...x(k.div, D.scrollbar, e === "vertical" ? D.scrollbarVertical : D.scrollbarHorizontal, n ? D.scrollbarVisible : D.scrollbarHidden), children: t }) : null;
|
|
1441
1506
|
}
|
|
1442
|
-
function
|
|
1507
|
+
function Tt({
|
|
1443
1508
|
orientation: e = "vertical"
|
|
1444
1509
|
}) {
|
|
1445
1510
|
const {
|
|
@@ -1450,25 +1515,25 @@ function Ht({
|
|
|
1450
1515
|
scrollWidth: l,
|
|
1451
1516
|
clientHeight: i,
|
|
1452
1517
|
clientWidth: c
|
|
1453
|
-
} =
|
|
1518
|
+
} = de(), d = w(!1), a = w(0), g = w(0), u = e === "vertical", $ = Math.max(u ? i / o * 100 : c / l * 100, 10), M = u ? o - i : l - c, p = u ? i : c, m = $ / 100 * p, f = u ? n : s, v = M > 0 ? f / M * (p - m) : 0, h = u ? D.thumbVertical(`${$}%`, `translateY(${v}px)`) : D.thumbHorizontal(`${$}%`, `translateX(${v}px)`), b = W((y) => {
|
|
1454
1519
|
y.preventDefault(), d.current = !0, a.current = u ? y.clientY : y.clientX, g.current = u ? t.current?.scrollTop ?? 0 : t.current?.scrollLeft ?? 0, y.target.setPointerCapture(y.pointerId);
|
|
1455
1520
|
}, [u, t]), B = W((y) => {
|
|
1456
1521
|
if (!d.current) return;
|
|
1457
1522
|
const I = t.current;
|
|
1458
1523
|
if (!I) return;
|
|
1459
|
-
const
|
|
1524
|
+
const S = (u ? y.clientY : y.clientX) - a.current, j = M / (p - m), J = S * j;
|
|
1460
1525
|
u ? I.scrollTop = g.current + J : I.scrollLeft = g.current + J;
|
|
1461
|
-
}, [u,
|
|
1526
|
+
}, [u, M, p, m, t]), Q = W(() => {
|
|
1462
1527
|
d.current = !1;
|
|
1463
1528
|
}, []);
|
|
1464
1529
|
return /* @__PURE__ */ r("div", { onPointerDown: b, onPointerMove: B, onPointerUp: Q, ...x(k.div, D.thumb, h) });
|
|
1465
1530
|
}
|
|
1466
|
-
const
|
|
1467
|
-
Root:
|
|
1468
|
-
Viewport:
|
|
1469
|
-
Content:
|
|
1470
|
-
Scrollbar:
|
|
1471
|
-
Thumb:
|
|
1531
|
+
const Rn = {
|
|
1532
|
+
Root: Wt,
|
|
1533
|
+
Viewport: Ht,
|
|
1534
|
+
Content: Gt,
|
|
1535
|
+
Scrollbar: Lt,
|
|
1536
|
+
Thumb: Tt
|
|
1472
1537
|
}, Y = {
|
|
1473
1538
|
root: {
|
|
1474
1539
|
kVAEAm: "x1n2onr6",
|
|
@@ -1567,94 +1632,94 @@ const On = {
|
|
|
1567
1632
|
k1xSpc: "x1s85apg",
|
|
1568
1633
|
$$css: !0
|
|
1569
1634
|
}
|
|
1570
|
-
},
|
|
1571
|
-
function
|
|
1572
|
-
const e = C(
|
|
1635
|
+
}, Ne = R(null);
|
|
1636
|
+
function ge() {
|
|
1637
|
+
const e = C(Ne);
|
|
1573
1638
|
if (!e) throw new Error("Select compound components must be used within Select.Root");
|
|
1574
1639
|
return e;
|
|
1575
1640
|
}
|
|
1576
|
-
function
|
|
1641
|
+
function ye(e, t, n) {
|
|
1577
1642
|
const [s, o] = G(t), l = e !== void 0 ? e : s, i = W((c) => {
|
|
1578
1643
|
e === void 0 && o(c), n?.(c);
|
|
1579
1644
|
}, [e, n]);
|
|
1580
1645
|
return [l, i];
|
|
1581
1646
|
}
|
|
1582
|
-
function
|
|
1647
|
+
function Et({
|
|
1583
1648
|
defaultValue: e,
|
|
1584
1649
|
value: t,
|
|
1585
1650
|
onValueChange: n,
|
|
1586
1651
|
initialLabels: s
|
|
1587
1652
|
}) {
|
|
1588
|
-
const [o, l] =
|
|
1653
|
+
const [o, l] = ye(t, e ?? null, n), [i, c] = G(!1), [d, a] = G(s ?? {}), [g, u] = G(null), $ = _(), M = w(null), p = w(null), m = w(/* @__PURE__ */ new Map()), f = w([]), v = W(() => {
|
|
1589
1654
|
c(!1), u(null), p.current?.focus();
|
|
1590
1655
|
}, []), h = W(() => {
|
|
1591
1656
|
c((y) => {
|
|
1592
1657
|
if (y)
|
|
1593
1658
|
u(null);
|
|
1594
1659
|
else {
|
|
1595
|
-
const I = m.current,
|
|
1660
|
+
const I = m.current, S = f.current;
|
|
1596
1661
|
let j = null;
|
|
1597
|
-
for (const J of
|
|
1662
|
+
for (const J of S) {
|
|
1598
1663
|
const L = I.get(J);
|
|
1599
1664
|
if (L && L.value === o) {
|
|
1600
1665
|
j = J;
|
|
1601
1666
|
break;
|
|
1602
1667
|
}
|
|
1603
1668
|
}
|
|
1604
|
-
u(j ?? (
|
|
1669
|
+
u(j ?? (S.length > 0 ? S[0] : null));
|
|
1605
1670
|
}
|
|
1606
1671
|
return !y;
|
|
1607
1672
|
});
|
|
1608
1673
|
}, [o]), b = W((y, I) => {
|
|
1609
|
-
a((
|
|
1610
|
-
...
|
|
1674
|
+
a((S) => S[y] === I ? S : {
|
|
1675
|
+
...S,
|
|
1611
1676
|
[y]: I
|
|
1612
1677
|
});
|
|
1613
|
-
}, []), B = W((y, I,
|
|
1678
|
+
}, []), B = W((y, I, S) => {
|
|
1614
1679
|
m.current.set(y, {
|
|
1615
1680
|
value: I,
|
|
1616
|
-
element:
|
|
1681
|
+
element: S
|
|
1617
1682
|
});
|
|
1618
1683
|
const j = m.current, J = [...j.keys()];
|
|
1619
1684
|
return J.sort((L, K) => {
|
|
1620
|
-
const
|
|
1621
|
-
return !
|
|
1685
|
+
const je = j.get(L)?.element, ze = j.get(K)?.element;
|
|
1686
|
+
return !je || !ze ? 0 : je.compareDocumentPosition(ze) & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : 1;
|
|
1622
1687
|
}), f.current = J, () => {
|
|
1623
1688
|
m.current.delete(y), f.current = f.current.filter((L) => L !== y);
|
|
1624
1689
|
};
|
|
1625
1690
|
}, []);
|
|
1626
1691
|
return H(() => {
|
|
1627
|
-
const y =
|
|
1692
|
+
const y = M.current;
|
|
1628
1693
|
if (!y || !i) return;
|
|
1629
|
-
function I(
|
|
1694
|
+
function I(S) {
|
|
1630
1695
|
const j = f.current, J = m.current;
|
|
1631
1696
|
if (j.length !== 0)
|
|
1632
|
-
switch (
|
|
1697
|
+
switch (S.key) {
|
|
1633
1698
|
case "ArrowDown": {
|
|
1634
|
-
|
|
1699
|
+
S.preventDefault(), u((L) => {
|
|
1635
1700
|
const K = L ? j.indexOf(L) : -1;
|
|
1636
1701
|
return j[(K + 1) % j.length];
|
|
1637
1702
|
});
|
|
1638
1703
|
break;
|
|
1639
1704
|
}
|
|
1640
1705
|
case "ArrowUp": {
|
|
1641
|
-
|
|
1706
|
+
S.preventDefault(), u((L) => {
|
|
1642
1707
|
const K = L ? j.indexOf(L) : 0;
|
|
1643
1708
|
return j[(K - 1 + j.length) % j.length];
|
|
1644
1709
|
});
|
|
1645
1710
|
break;
|
|
1646
1711
|
}
|
|
1647
1712
|
case "Home": {
|
|
1648
|
-
|
|
1713
|
+
S.preventDefault(), u(j[0]);
|
|
1649
1714
|
break;
|
|
1650
1715
|
}
|
|
1651
1716
|
case "End": {
|
|
1652
|
-
|
|
1717
|
+
S.preventDefault(), u(j[j.length - 1]);
|
|
1653
1718
|
break;
|
|
1654
1719
|
}
|
|
1655
1720
|
case "Enter":
|
|
1656
1721
|
case " ": {
|
|
1657
|
-
|
|
1722
|
+
S.preventDefault(), u((L) => {
|
|
1658
1723
|
if (L) {
|
|
1659
1724
|
const K = J.get(L);
|
|
1660
1725
|
K && (l(K.value), v());
|
|
@@ -1672,7 +1737,7 @@ function Gt({
|
|
|
1672
1737
|
}
|
|
1673
1738
|
return y.addEventListener("keydown", I), () => y.removeEventListener("keydown", I);
|
|
1674
1739
|
}, [i, v, l]), {
|
|
1675
|
-
ctx:
|
|
1740
|
+
ctx: me(() => ({
|
|
1676
1741
|
open: i,
|
|
1677
1742
|
toggle: h,
|
|
1678
1743
|
close: v,
|
|
@@ -1686,10 +1751,10 @@ function Gt({
|
|
|
1686
1751
|
registerItem: B,
|
|
1687
1752
|
triggerRef: p
|
|
1688
1753
|
}), [i, h, v, o, l, d, b, $, g, u, B]),
|
|
1689
|
-
rootRef:
|
|
1754
|
+
rootRef: M
|
|
1690
1755
|
};
|
|
1691
1756
|
}
|
|
1692
|
-
function
|
|
1757
|
+
function Vt({
|
|
1693
1758
|
name: e,
|
|
1694
1759
|
defaultValue: t,
|
|
1695
1760
|
value: n,
|
|
@@ -1700,18 +1765,18 @@ function Lt({
|
|
|
1700
1765
|
const {
|
|
1701
1766
|
ctx: i,
|
|
1702
1767
|
rootRef: c
|
|
1703
|
-
} =
|
|
1768
|
+
} = Et({
|
|
1704
1769
|
defaultValue: t,
|
|
1705
1770
|
value: n,
|
|
1706
1771
|
onValueChange: s,
|
|
1707
1772
|
initialLabels: o
|
|
1708
1773
|
});
|
|
1709
|
-
return /* @__PURE__ */ r(
|
|
1774
|
+
return /* @__PURE__ */ r(Ne.Provider, { value: i, children: /* @__PURE__ */ z("div", { ref: c, ...x(k.div, Y.root), children: [
|
|
1710
1775
|
e && /* @__PURE__ */ r("input", { type: "hidden", name: e, value: i.value ?? "", dir: "auto", ...x(k.input) }),
|
|
1711
1776
|
l
|
|
1712
1777
|
] }) });
|
|
1713
1778
|
}
|
|
1714
|
-
function
|
|
1779
|
+
function At({
|
|
1715
1780
|
children: e
|
|
1716
1781
|
}) {
|
|
1717
1782
|
const {
|
|
@@ -1720,39 +1785,39 @@ function Tt({
|
|
|
1720
1785
|
listboxId: s,
|
|
1721
1786
|
highlightedId: o,
|
|
1722
1787
|
triggerRef: l
|
|
1723
|
-
} =
|
|
1788
|
+
} = ge(), i = w(null);
|
|
1724
1789
|
return H(() => {
|
|
1725
1790
|
l.current = i.current;
|
|
1726
1791
|
}), /* @__PURE__ */ r("button", { ref: i, type: "button", role: "combobox", onClick: n, "aria-expanded": t, "aria-haspopup": "listbox", "aria-controls": t ? s : void 0, "aria-activedescendant": o ?? void 0, ...x(k.button, Y.trigger), children: e });
|
|
1727
1792
|
}
|
|
1728
|
-
function
|
|
1793
|
+
function Nt({
|
|
1729
1794
|
placeholder: e
|
|
1730
1795
|
}) {
|
|
1731
1796
|
const {
|
|
1732
1797
|
value: t,
|
|
1733
1798
|
labels: n
|
|
1734
|
-
} =
|
|
1799
|
+
} = ge(), s = t ? n[t] ?? t : null;
|
|
1735
1800
|
return /* @__PURE__ */ r("span", { ...x(k.span, s ? Y.value : Y.placeholder), children: s ?? e });
|
|
1736
1801
|
}
|
|
1737
|
-
function
|
|
1802
|
+
function Ot({
|
|
1738
1803
|
children: e
|
|
1739
1804
|
}) {
|
|
1740
1805
|
return /* @__PURE__ */ r("span", { ...x(k.span, Y.icon), children: e ?? /* @__PURE__ */ r("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__ */ r("path", { d: "M6 9l6 6 6-6" }) }) });
|
|
1741
1806
|
}
|
|
1742
|
-
function
|
|
1807
|
+
function Ct({
|
|
1743
1808
|
children: e
|
|
1744
1809
|
}) {
|
|
1745
1810
|
const {
|
|
1746
1811
|
open: t,
|
|
1747
1812
|
close: n,
|
|
1748
1813
|
listboxId: s
|
|
1749
|
-
} =
|
|
1814
|
+
} = ge();
|
|
1750
1815
|
return /* @__PURE__ */ z(N, { children: [
|
|
1751
1816
|
t && /* @__PURE__ */ r("div", { ...x(k.div, Y.backdrop), onClick: n }),
|
|
1752
1817
|
/* @__PURE__ */ r("div", { id: s, role: "listbox", "aria-hidden": !t, ...x(k.div, Y.popup, !t && Y.hidden), children: e })
|
|
1753
1818
|
] });
|
|
1754
1819
|
}
|
|
1755
|
-
function
|
|
1820
|
+
function Bt({
|
|
1756
1821
|
value: e,
|
|
1757
1822
|
children: t
|
|
1758
1823
|
}) {
|
|
@@ -1764,7 +1829,7 @@ function Nt({
|
|
|
1764
1829
|
highlightedId: i,
|
|
1765
1830
|
setHighlightedId: c,
|
|
1766
1831
|
registerItem: d
|
|
1767
|
-
} =
|
|
1832
|
+
} = ge(), a = _(), g = w(null), u = n === e, $ = i === a;
|
|
1768
1833
|
return H(() => {
|
|
1769
1834
|
const p = g.current;
|
|
1770
1835
|
if (!p) return;
|
|
@@ -1778,19 +1843,19 @@ function Nt({
|
|
|
1778
1843
|
s(e), o();
|
|
1779
1844
|
}, onPointerEnter: () => c(a), ...x(k.div, Y.item, u && Y.itemSelected, $ && Y.itemHighlighted), children: t });
|
|
1780
1845
|
}
|
|
1781
|
-
function
|
|
1846
|
+
function Dt({
|
|
1782
1847
|
children: e
|
|
1783
1848
|
}) {
|
|
1784
1849
|
return /* @__PURE__ */ r("span", { ...x(k.span), children: e });
|
|
1785
1850
|
}
|
|
1786
|
-
const
|
|
1787
|
-
Root:
|
|
1788
|
-
Trigger:
|
|
1789
|
-
Value:
|
|
1790
|
-
Icon:
|
|
1791
|
-
Popup:
|
|
1792
|
-
Item:
|
|
1793
|
-
ItemText:
|
|
1851
|
+
const Xn = {
|
|
1852
|
+
Root: Vt,
|
|
1853
|
+
Trigger: At,
|
|
1854
|
+
Value: Nt,
|
|
1855
|
+
Icon: Ot,
|
|
1856
|
+
Popup: Ct,
|
|
1857
|
+
Item: Bt,
|
|
1858
|
+
ItemText: Dt
|
|
1794
1859
|
}, U = {
|
|
1795
1860
|
root: {
|
|
1796
1861
|
k1xSpc: "x78zum5",
|
|
@@ -1870,31 +1935,31 @@ const Cn = {
|
|
|
1870
1935
|
k63SB2: "x9n8r49",
|
|
1871
1936
|
$$css: !0
|
|
1872
1937
|
}
|
|
1873
|
-
},
|
|
1874
|
-
function
|
|
1875
|
-
const e = C(
|
|
1938
|
+
}, Oe = R(null);
|
|
1939
|
+
function Ce() {
|
|
1940
|
+
const e = C(Oe);
|
|
1876
1941
|
if (!e) throw new Error("SideNav compound components must be used within SideNav.Root");
|
|
1877
1942
|
return e;
|
|
1878
1943
|
}
|
|
1879
|
-
function
|
|
1944
|
+
function Rt({
|
|
1880
1945
|
children: e,
|
|
1881
1946
|
value: t,
|
|
1882
1947
|
defaultValue: n,
|
|
1883
1948
|
onValueChange: s
|
|
1884
1949
|
}) {
|
|
1885
|
-
const [o, l] =
|
|
1950
|
+
const [o, l] = ye(t, n ?? null, s ? (u) => {
|
|
1886
1951
|
u !== null && s(u);
|
|
1887
1952
|
} : void 0), [i, c] = G(/* @__PURE__ */ new Set()), d = w([]), a = W((u) => {
|
|
1888
1953
|
c(($) => {
|
|
1889
|
-
const
|
|
1890
|
-
return
|
|
1954
|
+
const M = new Set($);
|
|
1955
|
+
return M.has(u) ? M.delete(u) : M.add(u), M;
|
|
1891
1956
|
});
|
|
1892
1957
|
}, []), g = W((u) => (d.current.includes(u) || d.current.push(u), () => {
|
|
1893
1958
|
d.current = d.current.filter(($) => $ !== u);
|
|
1894
1959
|
}), []);
|
|
1895
1960
|
return H(() => {
|
|
1896
1961
|
o && c((u) => u);
|
|
1897
|
-
}, [o]), /* @__PURE__ */ r(
|
|
1962
|
+
}, [o]), /* @__PURE__ */ r(Oe.Provider, { value: {
|
|
1898
1963
|
activeValue: o,
|
|
1899
1964
|
onSelect: l,
|
|
1900
1965
|
expandedGroups: i,
|
|
@@ -1903,7 +1968,7 @@ function Ct({
|
|
|
1903
1968
|
orderRef: d
|
|
1904
1969
|
}, children: /* @__PURE__ */ r("nav", { role: "navigation", ...x(k.nav, U.root), children: e }) });
|
|
1905
1970
|
}
|
|
1906
|
-
function
|
|
1971
|
+
function Xt({
|
|
1907
1972
|
children: e,
|
|
1908
1973
|
label: t,
|
|
1909
1974
|
groupKey: n,
|
|
@@ -1913,7 +1978,7 @@ function Bt({
|
|
|
1913
1978
|
expandedGroups: l,
|
|
1914
1979
|
toggleGroup: i,
|
|
1915
1980
|
activeValue: c
|
|
1916
|
-
} =
|
|
1981
|
+
} = Ce(), d = l.has(o), a = w(null);
|
|
1917
1982
|
H(() => {
|
|
1918
1983
|
if (!c || l.has(o)) return;
|
|
1919
1984
|
const u = a.current;
|
|
@@ -1931,7 +1996,7 @@ function Bt({
|
|
|
1931
1996
|
d && e
|
|
1932
1997
|
] });
|
|
1933
1998
|
}
|
|
1934
|
-
function
|
|
1999
|
+
function Yt({
|
|
1935
2000
|
value: e,
|
|
1936
2001
|
children: t
|
|
1937
2002
|
}) {
|
|
@@ -1939,13 +2004,13 @@ function Dt({
|
|
|
1939
2004
|
activeValue: n,
|
|
1940
2005
|
onSelect: s,
|
|
1941
2006
|
registerItem: o
|
|
1942
|
-
} =
|
|
2007
|
+
} = Ce(), l = n === e;
|
|
1943
2008
|
return H(() => o(e), [e, o]), /* @__PURE__ */ r("button", { type: "button", "data-nav-value": e, onClick: () => s(e), ...x(k.button, U.item, l && U.itemActive), "aria-current": l ? "page" : void 0, children: t });
|
|
1944
2009
|
}
|
|
1945
|
-
const
|
|
1946
|
-
Root:
|
|
1947
|
-
Group:
|
|
1948
|
-
Item:
|
|
2010
|
+
const Yn = {
|
|
2011
|
+
Root: Rt,
|
|
2012
|
+
Group: Xt,
|
|
2013
|
+
Item: Yt
|
|
1949
2014
|
}, se = {
|
|
1950
2015
|
root: {
|
|
1951
2016
|
k1xSpc: "x3nfvp2",
|
|
@@ -1990,21 +2055,21 @@ const Bn = {
|
|
|
1990
2055
|
kMcinP: "xzpqnlu",
|
|
1991
2056
|
$$css: !0
|
|
1992
2057
|
}
|
|
1993
|
-
},
|
|
2058
|
+
}, Jt = {
|
|
1994
2059
|
sm: se.sm,
|
|
1995
2060
|
md: se.md,
|
|
1996
2061
|
lg: se.lg
|
|
1997
2062
|
};
|
|
1998
|
-
function
|
|
2063
|
+
function Jn({
|
|
1999
2064
|
size: e = "md",
|
|
2000
2065
|
label: t = "Loading"
|
|
2001
2066
|
}) {
|
|
2002
2067
|
return /* @__PURE__ */ z("div", { role: "status", ...x(k.div, se.root), children: [
|
|
2003
|
-
/* @__PURE__ */ r("div", { ...x(k.div, se.spinner,
|
|
2068
|
+
/* @__PURE__ */ r("div", { ...x(k.div, se.spinner, Jt[e]), "aria-hidden": !0 }),
|
|
2004
2069
|
/* @__PURE__ */ r("span", { ...x(k.span, se.srOnly), children: t })
|
|
2005
2070
|
] });
|
|
2006
2071
|
}
|
|
2007
|
-
const
|
|
2072
|
+
const Ie = {
|
|
2008
2073
|
root: {
|
|
2009
2074
|
k1xSpc: "x3nfvp2",
|
|
2010
2075
|
kGNEyG: "x6s0dn4",
|
|
@@ -2033,14 +2098,14 @@ const ze = {
|
|
|
2033
2098
|
$$css: !0
|
|
2034
2099
|
}
|
|
2035
2100
|
};
|
|
2036
|
-
function
|
|
2101
|
+
function Pn({
|
|
2037
2102
|
name: e,
|
|
2038
2103
|
size: t = 48,
|
|
2039
2104
|
variant: n = "muted"
|
|
2040
2105
|
}) {
|
|
2041
|
-
return /* @__PURE__ */ r("div", { ...x(k.div,
|
|
2106
|
+
return /* @__PURE__ */ r("div", { ...x(k.div, Ie.root, Ie[n]), children: /* @__PURE__ */ r(ie, { name: e, size: t }) });
|
|
2042
2107
|
}
|
|
2043
|
-
const
|
|
2108
|
+
const Pt = {
|
|
2044
2109
|
kumcoG: "xqketvx",
|
|
2045
2110
|
$$css: !0
|
|
2046
2111
|
}, V = {
|
|
@@ -2119,90 +2184,90 @@ const Xt = {
|
|
|
2119
2184
|
kWqL5O: "xgfja2r",
|
|
2120
2185
|
$$css: !0
|
|
2121
2186
|
},
|
|
2122
|
-
gridColumns: (e) => [
|
|
2187
|
+
gridColumns: (e) => [Pt, {
|
|
2123
2188
|
"--x-gridTemplateColumns": `repeat(${e}, 1fr)` != null ? `repeat(${e}, 1fr)` : void 0
|
|
2124
2189
|
}]
|
|
2125
|
-
},
|
|
2126
|
-
function
|
|
2127
|
-
const e = C(
|
|
2190
|
+
}, Be = R(null);
|
|
2191
|
+
function he() {
|
|
2192
|
+
const e = C(Be);
|
|
2128
2193
|
if (!e) throw new Error("Table compound components must be used within Table.Root");
|
|
2129
2194
|
return e;
|
|
2130
2195
|
}
|
|
2131
|
-
const
|
|
2132
|
-
function
|
|
2196
|
+
const we = R(!1);
|
|
2197
|
+
function Ft({
|
|
2133
2198
|
children: e,
|
|
2134
2199
|
variant: t = "default",
|
|
2135
2200
|
size: n = "md",
|
|
2136
2201
|
columns: s
|
|
2137
2202
|
}) {
|
|
2138
|
-
return /* @__PURE__ */ r(
|
|
2203
|
+
return /* @__PURE__ */ r(Be.Provider, { value: {
|
|
2139
2204
|
variant: t,
|
|
2140
2205
|
size: n,
|
|
2141
2206
|
columns: s,
|
|
2142
2207
|
isHeader: !1
|
|
2143
2208
|
}, children: /* @__PURE__ */ r("div", { role: "table", ...x(k.div, V.root), children: e }) });
|
|
2144
2209
|
}
|
|
2145
|
-
function
|
|
2210
|
+
function Qt({
|
|
2146
2211
|
children: e
|
|
2147
2212
|
}) {
|
|
2148
|
-
return /* @__PURE__ */ r(
|
|
2213
|
+
return /* @__PURE__ */ r(we.Provider, { value: !0, children: /* @__PURE__ */ r("div", { role: "rowgroup", ...x(k.div, V.header), children: e }) });
|
|
2149
2214
|
}
|
|
2150
|
-
function
|
|
2215
|
+
function Kt({
|
|
2151
2216
|
children: e
|
|
2152
2217
|
}) {
|
|
2153
2218
|
const {
|
|
2154
2219
|
variant: t
|
|
2155
|
-
} =
|
|
2156
|
-
return /* @__PURE__ */ r(
|
|
2220
|
+
} = he(), n = We.toArray(e);
|
|
2221
|
+
return /* @__PURE__ */ r(we.Provider, { value: !1, children: /* @__PURE__ */ r("div", { role: "rowgroup", ...x(k.div), children: n.map((s, o) => t === "striped" ? /* @__PURE__ */ r(De.Provider, { value: o, children: s }, o) : s) }) });
|
|
2157
2222
|
}
|
|
2158
|
-
const
|
|
2159
|
-
function
|
|
2223
|
+
const De = R(-1);
|
|
2224
|
+
function Ut({
|
|
2160
2225
|
children: e
|
|
2161
2226
|
}) {
|
|
2162
2227
|
const {
|
|
2163
2228
|
variant: t,
|
|
2164
2229
|
columns: n
|
|
2165
|
-
} =
|
|
2166
|
-
return /* @__PURE__ */ r("div", { role: "row", ...x(k.div, V.row, V.gridColumns(n), !s && V.bodyRow, !s && t === "striped" && l && V.stripedEven), children: t === "bordered" ? i.map((c, d) => /* @__PURE__ */ r(
|
|
2230
|
+
} = he(), s = C(we), o = C(De), l = o >= 0 && o % 2 === 1, i = We.toArray(e);
|
|
2231
|
+
return /* @__PURE__ */ r("div", { role: "row", ...x(k.div, V.row, V.gridColumns(n), !s && V.bodyRow, !s && t === "striped" && l && V.stripedEven), children: t === "bordered" ? i.map((c, d) => /* @__PURE__ */ r(Me.Provider, { value: {
|
|
2167
2232
|
index: d,
|
|
2168
2233
|
total: i.length
|
|
2169
2234
|
}, children: c }, d)) : e });
|
|
2170
2235
|
}
|
|
2171
|
-
const
|
|
2236
|
+
const Me = R({
|
|
2172
2237
|
index: 0,
|
|
2173
2238
|
total: 0
|
|
2174
2239
|
});
|
|
2175
|
-
function
|
|
2240
|
+
function _t({
|
|
2176
2241
|
children: e
|
|
2177
2242
|
}) {
|
|
2178
2243
|
const {
|
|
2179
2244
|
size: t,
|
|
2180
2245
|
variant: n
|
|
2181
|
-
} =
|
|
2246
|
+
} = he(), {
|
|
2182
2247
|
index: s,
|
|
2183
2248
|
total: o
|
|
2184
|
-
} = C(
|
|
2249
|
+
} = C(Me), l = n === "bordered" && s === o - 1;
|
|
2185
2250
|
return /* @__PURE__ */ r("div", { role: "columnheader", ...x(k.div, V.headerCell, t === "sm" ? V.cellSm : V.cellMd, n === "bordered" && V.borderedCell, l && V.borderedCellLast), children: e });
|
|
2186
2251
|
}
|
|
2187
|
-
function
|
|
2252
|
+
function Zt({
|
|
2188
2253
|
children: e
|
|
2189
2254
|
}) {
|
|
2190
2255
|
const {
|
|
2191
2256
|
size: t,
|
|
2192
2257
|
variant: n
|
|
2193
|
-
} =
|
|
2258
|
+
} = he(), {
|
|
2194
2259
|
index: s,
|
|
2195
2260
|
total: o
|
|
2196
|
-
} = C(
|
|
2261
|
+
} = C(Me), l = n === "bordered" && s === o - 1;
|
|
2197
2262
|
return /* @__PURE__ */ r("div", { role: "cell", ...x(k.div, V.cell, t === "sm" ? V.cellSm : V.cellMd, n === "bordered" && V.borderedCell, l && V.borderedCellLast), children: e });
|
|
2198
2263
|
}
|
|
2199
|
-
const
|
|
2200
|
-
Root:
|
|
2201
|
-
Header:
|
|
2202
|
-
Body:
|
|
2203
|
-
Row:
|
|
2204
|
-
HeaderCell:
|
|
2205
|
-
Cell:
|
|
2264
|
+
const Fn = {
|
|
2265
|
+
Root: Ft,
|
|
2266
|
+
Header: Qt,
|
|
2267
|
+
Body: Kt,
|
|
2268
|
+
Row: Ut,
|
|
2269
|
+
HeaderCell: _t,
|
|
2270
|
+
Cell: Zt
|
|
2206
2271
|
}, X = {
|
|
2207
2272
|
root: {
|
|
2208
2273
|
k1xSpc: "x78zum5",
|
|
@@ -2291,19 +2356,19 @@ const Xn = {
|
|
|
2291
2356
|
kE3dHu: "x107tsa6",
|
|
2292
2357
|
$$css: !0
|
|
2293
2358
|
}
|
|
2294
|
-
},
|
|
2359
|
+
}, Re = R(null);
|
|
2295
2360
|
function Se() {
|
|
2296
|
-
const e = C(
|
|
2361
|
+
const e = C(Re);
|
|
2297
2362
|
if (!e) throw new Error("Tabs compound components must be used within Tabs.Root");
|
|
2298
2363
|
return e;
|
|
2299
2364
|
}
|
|
2300
|
-
function
|
|
2365
|
+
function en({
|
|
2301
2366
|
value: e,
|
|
2302
2367
|
defaultValue: t,
|
|
2303
2368
|
onValueChange: n,
|
|
2304
2369
|
orientation: s = "horizontal"
|
|
2305
2370
|
}) {
|
|
2306
|
-
const [o, l] =
|
|
2371
|
+
const [o, l] = ye(e, t ?? null, n ? (a) => {
|
|
2307
2372
|
a !== null && n(a);
|
|
2308
2373
|
} : void 0), i = w(/* @__PURE__ */ new Map()), c = w([]), d = W((a, g) => (i.current.set(a, g), c.current.includes(a) || c.current.push(a), () => {
|
|
2309
2374
|
i.current.delete(a), c.current = c.current.filter((u) => u !== a);
|
|
@@ -2317,22 +2382,22 @@ function Ut({
|
|
|
2317
2382
|
orderRef: c
|
|
2318
2383
|
};
|
|
2319
2384
|
}
|
|
2320
|
-
function
|
|
2385
|
+
function tn({
|
|
2321
2386
|
children: e,
|
|
2322
2387
|
value: t,
|
|
2323
2388
|
defaultValue: n,
|
|
2324
2389
|
onValueChange: s,
|
|
2325
2390
|
orientation: o = "horizontal"
|
|
2326
2391
|
}) {
|
|
2327
|
-
const l =
|
|
2392
|
+
const l = en({
|
|
2328
2393
|
value: t,
|
|
2329
2394
|
defaultValue: n,
|
|
2330
2395
|
onValueChange: s,
|
|
2331
2396
|
orientation: o
|
|
2332
2397
|
});
|
|
2333
|
-
return /* @__PURE__ */ r(
|
|
2398
|
+
return /* @__PURE__ */ r(Re.Provider, { value: l, children: /* @__PURE__ */ r("div", { ...x(k.div, X.root, o === "vertical" && X.rootVertical), children: e }) });
|
|
2334
2399
|
}
|
|
2335
|
-
function
|
|
2400
|
+
function nn({
|
|
2336
2401
|
children: e
|
|
2337
2402
|
}) {
|
|
2338
2403
|
const {
|
|
@@ -2348,7 +2413,7 @@ function Zt({
|
|
|
2348
2413
|
function d(a) {
|
|
2349
2414
|
const g = l.current, u = o.current;
|
|
2350
2415
|
if (g.length === 0) return;
|
|
2351
|
-
const $ = this,
|
|
2416
|
+
const $ = this, M = t === "horizontal" ? "ArrowLeft" : "ArrowUp", p = t === "horizontal" ? "ArrowRight" : "ArrowDown";
|
|
2352
2417
|
let m = null;
|
|
2353
2418
|
switch (a.key) {
|
|
2354
2419
|
case p: {
|
|
@@ -2363,7 +2428,7 @@ function Zt({
|
|
|
2363
2428
|
}
|
|
2364
2429
|
break;
|
|
2365
2430
|
}
|
|
2366
|
-
case
|
|
2431
|
+
case M: {
|
|
2367
2432
|
a.preventDefault();
|
|
2368
2433
|
const f = n ? g.indexOf(n) : 0;
|
|
2369
2434
|
for (let v = 1; v <= g.length; v++) {
|
|
@@ -2399,7 +2464,7 @@ function Zt({
|
|
|
2399
2464
|
return c.addEventListener("keydown", d), () => c.removeEventListener("keydown", d);
|
|
2400
2465
|
}, [t, n, s, o, l]), /* @__PURE__ */ r("div", { ref: i, role: "tablist", "aria-orientation": t, ...x(k.div, X.list, t === "vertical" && X.listVertical), children: e });
|
|
2401
2466
|
}
|
|
2402
|
-
function
|
|
2467
|
+
function rn({
|
|
2403
2468
|
value: e,
|
|
2404
2469
|
disabled: t = !1,
|
|
2405
2470
|
children: n
|
|
@@ -2414,7 +2479,7 @@ function en({
|
|
|
2414
2479
|
t || o(e);
|
|
2415
2480
|
}, ...x(k.button, X.tab, l === "vertical" && X.tabVertical, c && (l === "vertical" ? X.tabActiveVertical : X.tabActiveHorizontal), t && X.tabDisabled), children: n });
|
|
2416
2481
|
}
|
|
2417
|
-
function
|
|
2482
|
+
function sn({
|
|
2418
2483
|
value: e,
|
|
2419
2484
|
children: t
|
|
2420
2485
|
}) {
|
|
@@ -2424,12 +2489,12 @@ function tn({
|
|
|
2424
2489
|
} = Se();
|
|
2425
2490
|
return n !== e ? null : /* @__PURE__ */ r("div", { role: "tabpanel", ...x(k.div, X.panel, s === "vertical" && X.panelVertical), children: t });
|
|
2426
2491
|
}
|
|
2427
|
-
const
|
|
2428
|
-
Root:
|
|
2429
|
-
List:
|
|
2430
|
-
Tab:
|
|
2431
|
-
Panel:
|
|
2432
|
-
},
|
|
2492
|
+
const Qn = {
|
|
2493
|
+
Root: tn,
|
|
2494
|
+
List: nn,
|
|
2495
|
+
Tab: rn,
|
|
2496
|
+
Panel: sn
|
|
2497
|
+
}, qe = {
|
|
2433
2498
|
base: {
|
|
2434
2499
|
kzqmXN: "xh8yej3",
|
|
2435
2500
|
kLKAdn: "x1y6gaq4",
|
|
@@ -2463,7 +2528,7 @@ const Yn = {
|
|
|
2463
2528
|
$$css: !0
|
|
2464
2529
|
}
|
|
2465
2530
|
};
|
|
2466
|
-
function
|
|
2531
|
+
function Kn({
|
|
2467
2532
|
variant: e = "default",
|
|
2468
2533
|
name: t,
|
|
2469
2534
|
placeholder: n,
|
|
@@ -2474,10 +2539,10 @@ function Jn({
|
|
|
2474
2539
|
disabled: c,
|
|
2475
2540
|
onChange: d
|
|
2476
2541
|
}) {
|
|
2477
|
-
const a =
|
|
2478
|
-
return /* @__PURE__ */ r("textarea", { id: a?.controlId, name: t, placeholder: n, required: s, rows: o, value: l, defaultValue: i, disabled: c, "aria-describedby": a ? `${a.descriptionId} ${a.invalid ? a.errorId : ""}`.trim() : void 0, "aria-invalid": a?.invalid || e === "error" || void 0, onChange: d, ...x(k.textarea,
|
|
2542
|
+
const a = ce();
|
|
2543
|
+
return /* @__PURE__ */ r("textarea", { id: a?.controlId, name: t, placeholder: n, required: s, rows: o, value: l, defaultValue: i, disabled: c, "aria-describedby": a ? `${a.descriptionId} ${a.invalid ? a.errorId : ""}`.trim() : void 0, "aria-invalid": a?.invalid || e === "error" || void 0, onChange: d, ...x(k.textarea, qe.base, qe[e]), dir: "auto" });
|
|
2479
2544
|
}
|
|
2480
|
-
const
|
|
2545
|
+
const Un = {
|
|
2481
2546
|
bg: "var(--bg-xqkwqtp)",
|
|
2482
2547
|
bgCard: "var(--bgCard-xj2l5r)",
|
|
2483
2548
|
bgCardHover: "var(--bgCardHover-xlxk7vw)",
|
|
@@ -2506,7 +2571,7 @@ const Pn = {
|
|
|
2506
2571
|
infoBorder: "var(--infoBorder-xnevk3x)",
|
|
2507
2572
|
infoText: "var(--infoText-x19pseus)",
|
|
2508
2573
|
__varGroupHash__: "xjvd03b"
|
|
2509
|
-
},
|
|
2574
|
+
}, _n = {
|
|
2510
2575
|
xs: "var(--xs-xxfyjsd)",
|
|
2511
2576
|
sm: "var(--sm-xbh8y7f)",
|
|
2512
2577
|
ms: "var(--ms-x13y09zs)",
|
|
@@ -2516,13 +2581,13 @@ const Pn = {
|
|
|
2516
2581
|
xxl: "var(--xxl-xbe9eha)",
|
|
2517
2582
|
xxxl: "var(--xxxl-xroalp5)",
|
|
2518
2583
|
__varGroupHash__: "x6uc9q"
|
|
2519
|
-
},
|
|
2584
|
+
}, Zn = {
|
|
2520
2585
|
sm: "var(--sm-x1bhtfs5)",
|
|
2521
2586
|
md: "var(--md-xx2g89g)",
|
|
2522
2587
|
lg: "var(--lg-xwd56yl)",
|
|
2523
2588
|
full: "var(--full-x9vxdtd)",
|
|
2524
2589
|
__varGroupHash__: "xw3ffwm"
|
|
2525
|
-
},
|
|
2590
|
+
}, er = {
|
|
2526
2591
|
stackXs: "var(--stackXs-x1qfrfo2)",
|
|
2527
2592
|
stackSm: "var(--stackSm-x2rk1ut)",
|
|
2528
2593
|
stackMd: "var(--stackMd-xhblkt4)",
|
|
@@ -2536,7 +2601,7 @@ const Pn = {
|
|
|
2536
2601
|
containerMd: "var(--containerMd-x170dvin)",
|
|
2537
2602
|
containerLg: "var(--containerLg-x1n6aasq)",
|
|
2538
2603
|
__varGroupHash__: "x16nfoyr"
|
|
2539
|
-
},
|
|
2604
|
+
}, tr = {
|
|
2540
2605
|
fontFamily: "var(--fontFamily-xvrmnat)",
|
|
2541
2606
|
fontFamilyMono: "var(--fontFamilyMono-x1bzqfky)",
|
|
2542
2607
|
fontSizeXs: "var(--fontSizeXs-x1w5m325)",
|
|
@@ -2551,7 +2616,7 @@ const Pn = {
|
|
|
2551
2616
|
fontWeightBold: "var(--fontWeightBold-x1pjkvwg)",
|
|
2552
2617
|
lineHeight: "var(--lineHeight-x1gubzd5)",
|
|
2553
2618
|
__varGroupHash__: "xs62swl"
|
|
2554
|
-
},
|
|
2619
|
+
}, nr = {
|
|
2555
2620
|
fontSize1: "var(--fontSize1-xx27tux)",
|
|
2556
2621
|
fontSize2: "var(--fontSize2-x5hag8h)",
|
|
2557
2622
|
fontSize3: "var(--fontSize3-x1mf6j39)",
|
|
@@ -2577,7 +2642,7 @@ const Pn = {
|
|
|
2577
2642
|
letterSpacingNormal: "var(--letterSpacingNormal-x1ih41v1)",
|
|
2578
2643
|
letterSpacingWide: "var(--letterSpacingWide-xt8z9rj)",
|
|
2579
2644
|
__varGroupHash__: "x4cj49w"
|
|
2580
|
-
},
|
|
2645
|
+
}, rr = {
|
|
2581
2646
|
bodySm: {
|
|
2582
2647
|
"fontFamily-kMv6JI": "fontFamily-xce2pww",
|
|
2583
2648
|
"fontSize-kGuDYH": "fontSize-x1hn3ytp",
|
|
@@ -2691,37 +2756,37 @@ const Pn = {
|
|
|
2691
2756
|
"letterSpacing-kb6lSQ": "letterSpacing-xql2p2a",
|
|
2692
2757
|
$$css: "tokens/type-presets.css.ts:104"
|
|
2693
2758
|
}
|
|
2694
|
-
},
|
|
2759
|
+
}, sr = {
|
|
2695
2760
|
sm: "var(--sm-x17hhtln)",
|
|
2696
2761
|
md: "var(--md-x1oyt0aw)",
|
|
2697
2762
|
lg: "var(--lg-x1mxd62i)",
|
|
2698
2763
|
__varGroupHash__: "x13v825q"
|
|
2699
|
-
},
|
|
2764
|
+
}, on = {
|
|
2700
2765
|
xjvd03b: "xrtwk39 xjvd03b",
|
|
2701
2766
|
$$css: !0
|
|
2702
|
-
},
|
|
2767
|
+
}, cn = {
|
|
2703
2768
|
x13v825q: "xv9ibj0 x13v825q",
|
|
2704
2769
|
$$css: !0
|
|
2705
|
-
},
|
|
2770
|
+
}, ln = {
|
|
2706
2771
|
xjvd03b: "xaveibd xjvd03b",
|
|
2707
2772
|
$$css: !0
|
|
2708
|
-
},
|
|
2773
|
+
}, xn = {
|
|
2709
2774
|
x13v825q: "x15e39jv x13v825q",
|
|
2710
2775
|
$$css: !0
|
|
2711
|
-
},
|
|
2712
|
-
light: [
|
|
2713
|
-
"high-contrast": [
|
|
2714
|
-
},
|
|
2776
|
+
}, kn = {
|
|
2777
|
+
light: [on, cn],
|
|
2778
|
+
"high-contrast": [ln, xn]
|
|
2779
|
+
}, an = {
|
|
2715
2780
|
root: {
|
|
2716
2781
|
k1xSpc: "xjp7ctv",
|
|
2717
2782
|
$$css: !0
|
|
2718
2783
|
}
|
|
2719
2784
|
};
|
|
2720
|
-
function
|
|
2785
|
+
function or({
|
|
2721
2786
|
theme: e = "dark",
|
|
2722
2787
|
children: t
|
|
2723
2788
|
}) {
|
|
2724
|
-
const n =
|
|
2789
|
+
const n = kn[e], s = [n?.[0], n?.[1], an.root];
|
|
2725
2790
|
return /* @__PURE__ */ r("div", { ...x(k.div, s), children: t });
|
|
2726
2791
|
}
|
|
2727
2792
|
const F = {
|
|
@@ -2783,17 +2848,17 @@ const F = {
|
|
|
2783
2848
|
khDVqt: "xuxw1ft",
|
|
2784
2849
|
$$css: !0
|
|
2785
2850
|
}
|
|
2786
|
-
},
|
|
2851
|
+
}, un = {
|
|
2787
2852
|
normal: F.weightNormal,
|
|
2788
2853
|
medium: F.weightMedium,
|
|
2789
2854
|
semibold: F.weightSemibold,
|
|
2790
2855
|
bold: F.weightBold
|
|
2791
|
-
},
|
|
2856
|
+
}, dn = {
|
|
2792
2857
|
start: F.alignStart,
|
|
2793
2858
|
center: F.alignCenter,
|
|
2794
2859
|
end: F.alignEnd
|
|
2795
2860
|
};
|
|
2796
|
-
function
|
|
2861
|
+
function ir({
|
|
2797
2862
|
variant: e = "bodyMd",
|
|
2798
2863
|
color: t = "default",
|
|
2799
2864
|
weight: n,
|
|
@@ -2802,10 +2867,10 @@ function nr({
|
|
|
2802
2867
|
as: l = "span",
|
|
2803
2868
|
children: i
|
|
2804
2869
|
}) {
|
|
2805
|
-
const c = [
|
|
2870
|
+
const c = [Le[e], F[t], n && un[n], s && dn[s], o && F.truncate];
|
|
2806
2871
|
return l === "p" ? /* @__PURE__ */ r("p", { ...x(k.p, c), children: i }) : l === "div" ? /* @__PURE__ */ r("div", { ...x(k.div, c), children: i }) : /* @__PURE__ */ r("span", { ...x(k.span, c), children: i });
|
|
2807
2872
|
}
|
|
2808
|
-
const
|
|
2873
|
+
const $e = {
|
|
2809
2874
|
root: {
|
|
2810
2875
|
kVAEAm: "x1n2onr6",
|
|
2811
2876
|
k1xSpc: "x3nfvp2",
|
|
@@ -2860,13 +2925,13 @@ const fe = {
|
|
|
2860
2925
|
koQZXg: "xzhl4zu",
|
|
2861
2926
|
$$css: !0
|
|
2862
2927
|
}
|
|
2863
|
-
},
|
|
2864
|
-
function
|
|
2865
|
-
const e = C(
|
|
2928
|
+
}, Xe = R(null);
|
|
2929
|
+
function gn() {
|
|
2930
|
+
const e = C(Xe);
|
|
2866
2931
|
if (!e) throw new Error("Tooltip compound components must be used within Tooltip.Root");
|
|
2867
2932
|
return e;
|
|
2868
2933
|
}
|
|
2869
|
-
function
|
|
2934
|
+
function hn({
|
|
2870
2935
|
children: e,
|
|
2871
2936
|
content: t,
|
|
2872
2937
|
placement: n = "top",
|
|
@@ -2877,18 +2942,18 @@ function un({
|
|
|
2877
2942
|
}, [s]), a = W(() => {
|
|
2878
2943
|
c.current && clearTimeout(c.current), c.current = null, l(!1);
|
|
2879
2944
|
}, []);
|
|
2880
|
-
return /* @__PURE__ */ r(
|
|
2945
|
+
return /* @__PURE__ */ r(Xe.Provider, { value: {
|
|
2881
2946
|
open: o,
|
|
2882
2947
|
show: d,
|
|
2883
2948
|
hide: a,
|
|
2884
2949
|
tooltipId: i,
|
|
2885
2950
|
placement: n
|
|
2886
|
-
}, children: /* @__PURE__ */ z("div", { ...x(k.div,
|
|
2951
|
+
}, children: /* @__PURE__ */ z("div", { ...x(k.div, $e.root), children: [
|
|
2887
2952
|
e,
|
|
2888
|
-
o && /* @__PURE__ */ r("div", { id: i, role: "tooltip", ...x(k.div,
|
|
2953
|
+
o && /* @__PURE__ */ r("div", { id: i, role: "tooltip", ...x(k.div, $e.popup, $e[n]), children: t })
|
|
2889
2954
|
] }) });
|
|
2890
2955
|
}
|
|
2891
|
-
function
|
|
2956
|
+
function pn({
|
|
2892
2957
|
children: e
|
|
2893
2958
|
}) {
|
|
2894
2959
|
const {
|
|
@@ -2896,12 +2961,12 @@ function dn({
|
|
|
2896
2961
|
show: n,
|
|
2897
2962
|
hide: s,
|
|
2898
2963
|
tooltipId: o
|
|
2899
|
-
} =
|
|
2964
|
+
} = gn();
|
|
2900
2965
|
return /* @__PURE__ */ r("div", { onPointerEnter: n, onPointerLeave: s, onFocus: n, onBlur: s, "aria-describedby": t ? o : void 0, ...x(k.div), children: e });
|
|
2901
2966
|
}
|
|
2902
|
-
const
|
|
2903
|
-
Root:
|
|
2904
|
-
Trigger:
|
|
2967
|
+
const cr = {
|
|
2968
|
+
Root: hn,
|
|
2969
|
+
Trigger: pn
|
|
2905
2970
|
}, O = {
|
|
2906
2971
|
base: {
|
|
2907
2972
|
k1xSpc: "x78zum5",
|
|
@@ -2956,7 +3021,7 @@ const rr = {
|
|
|
2956
3021
|
kOIVth: "x281kem",
|
|
2957
3022
|
$$css: !0
|
|
2958
3023
|
}
|
|
2959
|
-
},
|
|
3024
|
+
}, fn = {
|
|
2960
3025
|
xs: O.gapXs,
|
|
2961
3026
|
sm: O.gapSm,
|
|
2962
3027
|
ms: O.gapMs,
|
|
@@ -2965,18 +3030,18 @@ const rr = {
|
|
|
2965
3030
|
xl: O.gapXl,
|
|
2966
3031
|
xxl: O.gapXxl,
|
|
2967
3032
|
xxxl: O.gapXxxl
|
|
2968
|
-
},
|
|
3033
|
+
}, vn = {
|
|
2969
3034
|
start: O.alignStart,
|
|
2970
3035
|
center: O.alignCenter,
|
|
2971
3036
|
end: O.alignEnd,
|
|
2972
3037
|
stretch: O.alignStretch
|
|
2973
3038
|
};
|
|
2974
|
-
function
|
|
3039
|
+
function lr({
|
|
2975
3040
|
gap: e = "md",
|
|
2976
3041
|
align: t = "stretch",
|
|
2977
3042
|
children: n
|
|
2978
3043
|
}) {
|
|
2979
|
-
return /* @__PURE__ */ r("div", { ...x(k.div, O.base,
|
|
3044
|
+
return /* @__PURE__ */ r("div", { ...x(k.div, O.base, fn[e], vn[t]), children: n });
|
|
2980
3045
|
}
|
|
2981
3046
|
const q = {
|
|
2982
3047
|
base: {
|
|
@@ -3053,7 +3118,7 @@ const q = {
|
|
|
3053
3118
|
kOIVth: "x281kem",
|
|
3054
3119
|
$$css: !0
|
|
3055
3120
|
}
|
|
3056
|
-
},
|
|
3121
|
+
}, $n = {
|
|
3057
3122
|
xs: q.gapXs,
|
|
3058
3123
|
sm: q.gapSm,
|
|
3059
3124
|
ms: q.gapMs,
|
|
@@ -3062,25 +3127,25 @@ const q = {
|
|
|
3062
3127
|
xl: q.gapXl,
|
|
3063
3128
|
xxl: q.gapXxl,
|
|
3064
3129
|
xxxl: q.gapXxxl
|
|
3065
|
-
},
|
|
3130
|
+
}, mn = {
|
|
3066
3131
|
start: q.alignStart,
|
|
3067
3132
|
center: q.alignCenter,
|
|
3068
3133
|
end: q.alignEnd,
|
|
3069
3134
|
baseline: q.alignBaseline,
|
|
3070
3135
|
stretch: q.alignStretch
|
|
3071
|
-
},
|
|
3136
|
+
}, bn = {
|
|
3072
3137
|
start: q.justifyStart,
|
|
3073
3138
|
center: q.justifyCenter,
|
|
3074
3139
|
end: q.justifyEnd,
|
|
3075
3140
|
between: q.justifyBetween
|
|
3076
3141
|
};
|
|
3077
|
-
function
|
|
3142
|
+
function xr({
|
|
3078
3143
|
gap: e = "sm",
|
|
3079
3144
|
align: t = "center",
|
|
3080
3145
|
justify: n = "start",
|
|
3081
3146
|
children: s
|
|
3082
3147
|
}) {
|
|
3083
|
-
return /* @__PURE__ */ r("div", { ...x(k.div, q.base,
|
|
3148
|
+
return /* @__PURE__ */ r("div", { ...x(k.div, q.base, $n[e], mn[t], bn[n]), children: s });
|
|
3084
3149
|
}
|
|
3085
3150
|
const T = {
|
|
3086
3151
|
base: {
|
|
@@ -3149,7 +3214,7 @@ const T = {
|
|
|
3149
3214
|
kOIVth: "x281kem",
|
|
3150
3215
|
$$css: !0
|
|
3151
3216
|
}
|
|
3152
|
-
},
|
|
3217
|
+
}, yn = {
|
|
3153
3218
|
xs: T.gapXs,
|
|
3154
3219
|
sm: T.gapSm,
|
|
3155
3220
|
ms: T.gapMs,
|
|
@@ -3158,25 +3223,25 @@ const T = {
|
|
|
3158
3223
|
xl: T.gapXl,
|
|
3159
3224
|
xxl: T.gapXxl,
|
|
3160
3225
|
xxxl: T.gapXxxl
|
|
3161
|
-
},
|
|
3226
|
+
}, wn = {
|
|
3162
3227
|
start: T.alignStart,
|
|
3163
3228
|
center: T.alignCenter,
|
|
3164
3229
|
end: T.alignEnd
|
|
3165
|
-
},
|
|
3230
|
+
}, Mn = {
|
|
3166
3231
|
start: T.justifyStart,
|
|
3167
3232
|
center: T.justifyCenter,
|
|
3168
3233
|
end: T.justifyEnd,
|
|
3169
3234
|
between: T.justifyBetween
|
|
3170
3235
|
};
|
|
3171
|
-
function
|
|
3236
|
+
function kr({
|
|
3172
3237
|
gap: e = "sm",
|
|
3173
3238
|
align: t = "start",
|
|
3174
3239
|
justify: n = "start",
|
|
3175
3240
|
children: s
|
|
3176
3241
|
}) {
|
|
3177
|
-
return /* @__PURE__ */ r("div", { ...x(k.div, T.base,
|
|
3242
|
+
return /* @__PURE__ */ r("div", { ...x(k.div, T.base, yn[e], wn[t], Mn[n]), children: s });
|
|
3178
3243
|
}
|
|
3179
|
-
const
|
|
3244
|
+
const Sn = {
|
|
3180
3245
|
kumcoG: "xqketvx",
|
|
3181
3246
|
$$css: !0
|
|
3182
3247
|
}, E = {
|
|
@@ -3208,7 +3273,7 @@ const yn = {
|
|
|
3208
3273
|
kumcoG: "xu4o1vd",
|
|
3209
3274
|
$$css: !0
|
|
3210
3275
|
},
|
|
3211
|
-
autoFit: (e) => [
|
|
3276
|
+
autoFit: (e) => [Sn, {
|
|
3212
3277
|
"--x-gridTemplateColumns": `repeat(auto-fit, minmax(${e}, 1fr))` != null ? `repeat(auto-fit, minmax(${e}, 1fr))` : void 0
|
|
3213
3278
|
}],
|
|
3214
3279
|
gapXs: {
|
|
@@ -3243,7 +3308,7 @@ const yn = {
|
|
|
3243
3308
|
kOIVth: "x281kem",
|
|
3244
3309
|
$$css: !0
|
|
3245
3310
|
}
|
|
3246
|
-
},
|
|
3311
|
+
}, jn = {
|
|
3247
3312
|
xs: E.gapXs,
|
|
3248
3313
|
sm: E.gapSm,
|
|
3249
3314
|
ms: E.gapMs,
|
|
@@ -3252,7 +3317,7 @@ const yn = {
|
|
|
3252
3317
|
xl: E.gapXl,
|
|
3253
3318
|
xxl: E.gapXxl,
|
|
3254
3319
|
xxxl: E.gapXxxl
|
|
3255
|
-
},
|
|
3320
|
+
}, zn = {
|
|
3256
3321
|
1: E.col1,
|
|
3257
3322
|
2: E.col2,
|
|
3258
3323
|
3: E.col3,
|
|
@@ -3260,16 +3325,16 @@ const yn = {
|
|
|
3260
3325
|
5: E.col5,
|
|
3261
3326
|
6: E.col6
|
|
3262
3327
|
};
|
|
3263
|
-
function
|
|
3328
|
+
function ar({
|
|
3264
3329
|
gap: e = "md",
|
|
3265
3330
|
columns: t,
|
|
3266
3331
|
minColumnWidth: n,
|
|
3267
3332
|
children: s
|
|
3268
3333
|
}) {
|
|
3269
|
-
const o = n ? E.autoFit(n) : t ?
|
|
3270
|
-
return /* @__PURE__ */ r("div", { ...x(k.div, E.base,
|
|
3334
|
+
const o = n ? E.autoFit(n) : t ? zn[t] : void 0;
|
|
3335
|
+
return /* @__PURE__ */ r("div", { ...x(k.div, E.base, jn[e], o), children: s });
|
|
3271
3336
|
}
|
|
3272
|
-
function
|
|
3337
|
+
function ur(e = {}) {
|
|
3273
3338
|
const {
|
|
3274
3339
|
compactBelow: t = 480,
|
|
3275
3340
|
spaciousAbove: n = 768
|
|
@@ -3295,46 +3360,47 @@ function lr(e = {}) {
|
|
|
3295
3360
|
};
|
|
3296
3361
|
}
|
|
3297
3362
|
export {
|
|
3298
|
-
|
|
3299
|
-
|
|
3300
|
-
|
|
3301
|
-
|
|
3302
|
-
|
|
3303
|
-
|
|
3304
|
-
|
|
3305
|
-
|
|
3306
|
-
|
|
3307
|
-
|
|
3308
|
-
|
|
3309
|
-
|
|
3310
|
-
|
|
3311
|
-
|
|
3312
|
-
|
|
3313
|
-
|
|
3314
|
-
|
|
3315
|
-
|
|
3316
|
-
|
|
3317
|
-
|
|
3318
|
-
|
|
3319
|
-
|
|
3320
|
-
|
|
3321
|
-
|
|
3322
|
-
|
|
3323
|
-
|
|
3324
|
-
|
|
3325
|
-
|
|
3326
|
-
|
|
3327
|
-
|
|
3328
|
-
|
|
3329
|
-
|
|
3330
|
-
|
|
3331
|
-
|
|
3332
|
-
|
|
3333
|
-
|
|
3334
|
-
|
|
3335
|
-
|
|
3336
|
-
|
|
3337
|
-
|
|
3338
|
-
|
|
3363
|
+
Wn as Alert,
|
|
3364
|
+
Hn as Badge,
|
|
3365
|
+
Gn as Button,
|
|
3366
|
+
Ln as Callout,
|
|
3367
|
+
Tn as Card,
|
|
3368
|
+
En as Checkbox,
|
|
3369
|
+
kr as Cluster,
|
|
3370
|
+
Vn as EmptyState,
|
|
3371
|
+
Nn as Field,
|
|
3372
|
+
ar as Grid,
|
|
3373
|
+
An as Heading,
|
|
3374
|
+
ie as Icon,
|
|
3375
|
+
xr as Inline,
|
|
3376
|
+
On as Input,
|
|
3377
|
+
Cn as InputGroup,
|
|
3378
|
+
Bn as LinkButton,
|
|
3379
|
+
Dn as Menu,
|
|
3380
|
+
Rn as ScrollArea,
|
|
3381
|
+
Xn as Select,
|
|
3382
|
+
Yn as SideNav,
|
|
3383
|
+
Jn as Spinner,
|
|
3384
|
+
lr as Stack,
|
|
3385
|
+
Pn as StatusIcon,
|
|
3386
|
+
Fn as Table,
|
|
3387
|
+
Qn as Tabs,
|
|
3388
|
+
ir as Text,
|
|
3389
|
+
Kn as Textarea,
|
|
3390
|
+
or as ThemeProvider,
|
|
3391
|
+
cr as Tooltip,
|
|
3392
|
+
Un as colors,
|
|
3393
|
+
xn as highContrastShadows,
|
|
3394
|
+
ln as highContrastTheme,
|
|
3395
|
+
er as layoutSpacing,
|
|
3396
|
+
cn as lightShadows,
|
|
3397
|
+
on as lightTheme,
|
|
3398
|
+
Zn as radii,
|
|
3399
|
+
sr as shadows,
|
|
3400
|
+
_n as spacing,
|
|
3401
|
+
rr as typePresets,
|
|
3402
|
+
nr as typeScale,
|
|
3403
|
+
tr as typography,
|
|
3404
|
+
ur as useContainerQuery
|
|
3339
3405
|
};
|
|
3340
3406
|
//# sourceMappingURL=index.js.map
|