@duro-app/ui 0.8.6 → 0.9.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 +4 -1
- package/dist/components/Alert/Alert.d.ts.map +1 -1
- package/dist/components/Alert/styles.css.d.ts +15 -0
- package/dist/components/Alert/styles.css.d.ts.map +1 -1
- package/dist/components/Icon/Icon.d.ts +8 -0
- package/dist/components/Icon/Icon.d.ts.map +1 -0
- package/dist/components/Icon/index.d.ts +3 -0
- package/dist/components/Icon/index.d.ts.map +1 -0
- package/dist/components/StatusIcon/StatusIcon.d.ts +3 -2
- package/dist/components/StatusIcon/StatusIcon.d.ts.map +1 -1
- package/dist/components/StatusIcon/styles.css.d.ts +3 -0
- package/dist/components/StatusIcon/styles.css.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 +901 -842
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { useState as
|
|
1
|
+
import { jsx as s, Fragment as D, jsxs as z } from "react/jsx-runtime";
|
|
2
|
+
import { useState as G, useCallback as W, useContext as O, createContext as R, useId as _, useMemo as ve, useRef as w, useEffect as H, Children as qe } from "react";
|
|
3
3
|
/**
|
|
4
4
|
* @license react-strict-dom
|
|
5
5
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
@@ -7,15 +7,15 @@ import { useState as H, useCallback as q, useContext as N, 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 me = {};
|
|
11
|
+
Object.defineProperty(me, "__esModule", {
|
|
12
12
|
value: !0
|
|
13
13
|
});
|
|
14
|
-
var
|
|
15
|
-
function
|
|
16
|
-
var
|
|
17
|
-
return
|
|
18
|
-
for (var x = [], i = "", c = null, d = "", a =
|
|
14
|
+
var We = me.styleq = void 0, Xe = /* @__PURE__ */ new WeakMap(), Ye = "$$css";
|
|
15
|
+
function He(e) {
|
|
16
|
+
var t, n, r;
|
|
17
|
+
return e != null && (t = e.disableCache === !0, n = e.disableMix === !0, r = e.transform), function() {
|
|
18
|
+
for (var x = [], i = "", c = null, d = "", a = t ? null : Xe, 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 v = g.pop();
|
|
@@ -25,36 +25,36 @@ function Wt(t) {
|
|
|
25
25
|
g.push(v[S]);
|
|
26
26
|
continue;
|
|
27
27
|
}
|
|
28
|
-
var
|
|
29
|
-
if (
|
|
28
|
+
var p = r != null ? r(v) : v;
|
|
29
|
+
if (p.$$css != null) {
|
|
30
30
|
var m = "";
|
|
31
|
-
if (a != null && a.has(
|
|
32
|
-
var f = a.get(
|
|
31
|
+
if (a != null && a.has(p)) {
|
|
32
|
+
var f = a.get(p);
|
|
33
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 = h
|
|
38
|
-
if (
|
|
39
|
-
var B = h
|
|
36
|
+
for (var h in p) {
|
|
37
|
+
var b = p[h];
|
|
38
|
+
if (h === Ye) {
|
|
39
|
+
var B = p[h];
|
|
40
40
|
B !== !0 && (d = d ? B + "; " + d : B);
|
|
41
41
|
continue;
|
|
42
42
|
}
|
|
43
|
-
typeof b == "string" || b === null ? x.includes(
|
|
43
|
+
typeof b == "string" || b === null ? x.includes(h) || (x.push(h), a != null && $.push(h), typeof b == "string" && (m += m ? " " + b : b)) : console.error("styleq: ".concat(h, " typeof ").concat(String(b), ' is not "string" or "null".'));
|
|
44
44
|
}
|
|
45
45
|
if (a != null) {
|
|
46
|
-
var
|
|
47
|
-
a.set(
|
|
46
|
+
var Q = /* @__PURE__ */ new WeakMap();
|
|
47
|
+
a.set(p, [m, $, d, Q]), a = Q;
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
50
|
m && (i = i ? m + " " + i : m);
|
|
51
51
|
} else if (n)
|
|
52
|
-
c == null && (c = {}), c = Object.assign({},
|
|
52
|
+
c == null && (c = {}), c = Object.assign({}, p, c);
|
|
53
53
|
else {
|
|
54
54
|
var y = null;
|
|
55
|
-
for (var
|
|
56
|
-
var j =
|
|
57
|
-
j !== void 0 && (x.includes(
|
|
55
|
+
for (var I in p) {
|
|
56
|
+
var j = p[I];
|
|
57
|
+
j !== void 0 && (x.includes(I) || (j != null && (c == null && (c = {}), y == null && (y = {}), y[I] = j), x.push(I), a = null));
|
|
58
58
|
}
|
|
59
59
|
y != null && (c = Object.assign(y, c));
|
|
60
60
|
}
|
|
@@ -64,24 +64,24 @@ function Wt(t) {
|
|
|
64
64
|
return M;
|
|
65
65
|
};
|
|
66
66
|
}
|
|
67
|
-
var
|
|
68
|
-
|
|
69
|
-
const
|
|
67
|
+
var Je = We = me.styleq = He();
|
|
68
|
+
Je.factory = He;
|
|
69
|
+
const Pe = We.factory({
|
|
70
70
|
disableMix: !0
|
|
71
71
|
});
|
|
72
|
-
function l(...
|
|
73
|
-
const [
|
|
74
|
-
if (
|
|
72
|
+
function l(...e) {
|
|
73
|
+
const [t, n, r] = Pe(e), o = {};
|
|
74
|
+
if (t != null && t !== "" && (o.className = t), n != null && (o.style = n), r != null && r !== "") {
|
|
75
75
|
const x = r.split(";"), i = {};
|
|
76
76
|
for (const c of x) {
|
|
77
77
|
const d = c.trim(), [a, g] = d.split(":");
|
|
78
78
|
g != null && (i[a] = i[a] != null ? `${i[a]},${g}` : g);
|
|
79
79
|
}
|
|
80
|
-
|
|
80
|
+
o["data-style-src"] = Object.keys(i).map((c) => `${c}:${i[c]}`).join("; ");
|
|
81
81
|
}
|
|
82
|
-
return
|
|
82
|
+
return o;
|
|
83
83
|
}
|
|
84
|
-
const
|
|
84
|
+
const A = {
|
|
85
85
|
block: {
|
|
86
86
|
kogj98: "x1ghz6dp",
|
|
87
87
|
kmVPX3: "x1717udv",
|
|
@@ -121,24 +121,73 @@ const V = {
|
|
|
121
121
|
kHenm0: "x288g5",
|
|
122
122
|
$$css: !0
|
|
123
123
|
}
|
|
124
|
-
},
|
|
125
|
-
a:
|
|
126
|
-
button:
|
|
127
|
-
div:
|
|
124
|
+
}, Fe = A.inline, Qe = [A.inlineblock, A.button], Ke = A.block, Z = [A.block, A.heading], Ue = [A.inlineblock, A.input], _e = A.inline, Ze = A.block, et = A.block, tt = A.inline, nt = [A.inlineblock, A.textarea], k = {
|
|
125
|
+
a: Fe,
|
|
126
|
+
button: Qe,
|
|
127
|
+
div: Ke,
|
|
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: Ue,
|
|
135
|
+
label: _e,
|
|
136
|
+
nav: Ze,
|
|
137
|
+
p: et,
|
|
138
|
+
span: tt,
|
|
139
|
+
textarea: nt
|
|
140
|
+
}, rt = {
|
|
141
|
+
"x-circle": /* @__PURE__ */ z(D, { children: [
|
|
142
|
+
/* @__PURE__ */ s("circle", { cx: "12", cy: "12", r: "10" }),
|
|
143
|
+
/* @__PURE__ */ s("line", { x1: "15", y1: "9", x2: "9", y2: "15" }),
|
|
144
|
+
/* @__PURE__ */ s("line", { x1: "9", y1: "9", x2: "15", y2: "15" })
|
|
145
|
+
] }),
|
|
146
|
+
"check-circle": /* @__PURE__ */ z(D, { children: [
|
|
147
|
+
/* @__PURE__ */ s("circle", { cx: "12", cy: "12", r: "10" }),
|
|
148
|
+
/* @__PURE__ */ s("polyline", { points: "16 10 11 15 8 12" })
|
|
149
|
+
] }),
|
|
150
|
+
"check-done": /* @__PURE__ */ z(D, { children: [
|
|
151
|
+
/* @__PURE__ */ s("path", { d: "M22 11.08V12a10 10 0 1 1-5.93-9.14" }),
|
|
152
|
+
/* @__PURE__ */ s("polyline", { points: "22 4 12 14.01 9 11.01" })
|
|
153
|
+
] }),
|
|
154
|
+
clock: /* @__PURE__ */ z(D, { children: [
|
|
155
|
+
/* @__PURE__ */ s("circle", { cx: "12", cy: "12", r: "10" }),
|
|
156
|
+
/* @__PURE__ */ s("polyline", { points: "12 6 12 12 16 14" })
|
|
157
|
+
] }),
|
|
158
|
+
forbidden: /* @__PURE__ */ z(D, { children: [
|
|
159
|
+
/* @__PURE__ */ s("circle", { cx: "12", cy: "12", r: "10" }),
|
|
160
|
+
/* @__PURE__ */ s("line", { x1: "4.93", y1: "4.93", x2: "19.07", y2: "19.07" })
|
|
161
|
+
] }),
|
|
162
|
+
"info-circle": /* @__PURE__ */ z(D, { children: [
|
|
163
|
+
/* @__PURE__ */ s("circle", { cx: "12", cy: "12", r: "10" }),
|
|
164
|
+
/* @__PURE__ */ s("line", { x1: "12", y1: "16", x2: "12", y2: "12" }),
|
|
165
|
+
/* @__PURE__ */ s("line", { x1: "12", y1: "8", x2: "12.01", y2: "8" })
|
|
166
|
+
] }),
|
|
167
|
+
"alert-triangle": /* @__PURE__ */ z(D, { children: [
|
|
168
|
+
/* @__PURE__ */ s("path", { d: "M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z" }),
|
|
169
|
+
/* @__PURE__ */ s("line", { x1: "12", y1: "9", x2: "12", y2: "13" }),
|
|
170
|
+
/* @__PURE__ */ s("line", { x1: "12", y1: "17", x2: "12.01", y2: "17" })
|
|
171
|
+
] }),
|
|
172
|
+
shield: /* @__PURE__ */ s("path", { d: "M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z" }),
|
|
173
|
+
lock: /* @__PURE__ */ z(D, { children: [
|
|
174
|
+
/* @__PURE__ */ s("rect", { x: "3", y: "11", width: "18", height: "11", rx: "2", ry: "2" }),
|
|
175
|
+
/* @__PURE__ */ s("path", { d: "M7 11V7a5 5 0 0 1 10 0v4" })
|
|
176
|
+
] }),
|
|
177
|
+
key: /* @__PURE__ */ s(D, { children: /* @__PURE__ */ s("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
|
+
};
|
|
179
|
+
function $e({
|
|
180
|
+
name: e,
|
|
181
|
+
size: t = 24
|
|
182
|
+
}) {
|
|
183
|
+
return /* @__PURE__ */ s("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", width: t, height: t, children: rt[e] });
|
|
184
|
+
}
|
|
185
|
+
const ce = {
|
|
141
186
|
base: {
|
|
187
|
+
k1xSpc: "x78zum5",
|
|
188
|
+
kXwgrk: "x1q0g3np",
|
|
189
|
+
kGNEyG: "x1cy8zhl",
|
|
190
|
+
kOIVth: "x1wyuhvo",
|
|
142
191
|
kmVPX3: "x16ixvul",
|
|
143
192
|
kaIpWk: "x1gbengz",
|
|
144
193
|
kMzoRj: "xmkeg23",
|
|
@@ -147,6 +196,19 @@ const V = {
|
|
|
147
196
|
kLWn49: "xi1gl5z",
|
|
148
197
|
$$css: !0
|
|
149
198
|
},
|
|
199
|
+
iconWrap: {
|
|
200
|
+
kmuXW: "x2lah0s",
|
|
201
|
+
k1xSpc: "x78zum5",
|
|
202
|
+
kGNEyG: "x6s0dn4",
|
|
203
|
+
kjj79g: "xl56j7k",
|
|
204
|
+
kLKAdn: "x4p5aij",
|
|
205
|
+
$$css: !0
|
|
206
|
+
},
|
|
207
|
+
content: {
|
|
208
|
+
kUk6DE: "x98rzlu",
|
|
209
|
+
k7Eaqz: "xeuugli",
|
|
210
|
+
$$css: !0
|
|
211
|
+
},
|
|
150
212
|
error: {
|
|
151
213
|
kWkggS: "x102pa86",
|
|
152
214
|
kVAM5u: "xmuf6iu",
|
|
@@ -171,14 +233,27 @@ const V = {
|
|
|
171
233
|
kMwMTN: "xmooqzt",
|
|
172
234
|
$$css: !0
|
|
173
235
|
}
|
|
236
|
+
}, st = {
|
|
237
|
+
info: "info-circle",
|
|
238
|
+
warning: "alert-triangle",
|
|
239
|
+
success: "check-circle",
|
|
240
|
+
error: "x-circle"
|
|
174
241
|
};
|
|
175
|
-
function
|
|
176
|
-
|
|
177
|
-
|
|
242
|
+
function ot(e, t) {
|
|
243
|
+
return e === !1 ? null : e === void 0 ? /* @__PURE__ */ s($e, { name: st[t], size: 18 }) : typeof e == "string" ? /* @__PURE__ */ s($e, { name: e, size: 18 }) : e;
|
|
244
|
+
}
|
|
245
|
+
function Mn({
|
|
246
|
+
variant: e = "info",
|
|
247
|
+
icon: t,
|
|
248
|
+
children: n
|
|
178
249
|
}) {
|
|
179
|
-
|
|
250
|
+
const r = ot(t, e);
|
|
251
|
+
return /* @__PURE__ */ s("div", { role: "alert", ...l(k.div, ce.base, ce[e]), children: r ? /* @__PURE__ */ z(D, { children: [
|
|
252
|
+
/* @__PURE__ */ s("div", { ...l(k.div, ce.iconWrap), children: r }),
|
|
253
|
+
/* @__PURE__ */ s("div", { ...l(k.div, ce.content), children: n })
|
|
254
|
+
] }) : n });
|
|
180
255
|
}
|
|
181
|
-
const
|
|
256
|
+
const le = {
|
|
182
257
|
base: {
|
|
183
258
|
k1xSpc: "x3nfvp2",
|
|
184
259
|
kGNEyG: "x6s0dn4",
|
|
@@ -231,18 +306,18 @@ const xt = {
|
|
|
231
306
|
kMwMTN: "xmooqzt",
|
|
232
307
|
$$css: !0
|
|
233
308
|
}
|
|
234
|
-
},
|
|
235
|
-
sm:
|
|
236
|
-
md:
|
|
309
|
+
}, it = {
|
|
310
|
+
sm: le.sizeSm,
|
|
311
|
+
md: le.sizeMd
|
|
237
312
|
};
|
|
238
|
-
function
|
|
239
|
-
variant:
|
|
240
|
-
size:
|
|
313
|
+
function zn({
|
|
314
|
+
variant: e = "default",
|
|
315
|
+
size: t = "md",
|
|
241
316
|
children: n
|
|
242
317
|
}) {
|
|
243
|
-
return /* @__PURE__ */
|
|
318
|
+
return /* @__PURE__ */ s("span", { ...l(k.span, le.base, it[t], le[e]), children: n });
|
|
244
319
|
}
|
|
245
|
-
const
|
|
320
|
+
const ne = {
|
|
246
321
|
base: {
|
|
247
322
|
k1xSpc: "x3nfvp2",
|
|
248
323
|
kGNEyG: "x6s0dn4",
|
|
@@ -317,22 +392,22 @@ const nt = {
|
|
|
317
392
|
kkrTdU: "x1h6gzvc",
|
|
318
393
|
$$css: !0
|
|
319
394
|
}
|
|
320
|
-
},
|
|
321
|
-
default:
|
|
322
|
-
small:
|
|
395
|
+
}, ct = {
|
|
396
|
+
default: ne.sizeDefault,
|
|
397
|
+
small: ne.sizeSmall
|
|
323
398
|
};
|
|
324
|
-
function
|
|
325
|
-
variant:
|
|
326
|
-
size:
|
|
399
|
+
function In({
|
|
400
|
+
variant: e = "primary",
|
|
401
|
+
size: t = "default",
|
|
327
402
|
fullWidth: n = !1,
|
|
328
403
|
disabled: r = !1,
|
|
329
|
-
type:
|
|
404
|
+
type: o = "button",
|
|
330
405
|
onClick: x,
|
|
331
406
|
children: i
|
|
332
407
|
}) {
|
|
333
|
-
return /* @__PURE__ */
|
|
408
|
+
return /* @__PURE__ */ s("button", { type: o, disabled: r, onClick: x, ...l(k.button, ne.base, ct[t], ne[e], n && ne.fullWidth, r && ne.disabled), children: i });
|
|
334
409
|
}
|
|
335
|
-
const
|
|
410
|
+
const re = {
|
|
336
411
|
base: {
|
|
337
412
|
kWkggS: "xl5mw0s",
|
|
338
413
|
kMwMTN: "xg6mlj0",
|
|
@@ -389,24 +464,24 @@ const rt = {
|
|
|
389
464
|
k1K539: "x2mrtcw",
|
|
390
465
|
$$css: !0
|
|
391
466
|
}
|
|
392
|
-
},
|
|
393
|
-
default:
|
|
394
|
-
compact:
|
|
395
|
-
full:
|
|
467
|
+
}, xt = {
|
|
468
|
+
default: re.sizeDefault,
|
|
469
|
+
compact: re.sizeCompact,
|
|
470
|
+
full: re.sizeFull
|
|
396
471
|
};
|
|
397
|
-
function
|
|
398
|
-
variant:
|
|
399
|
-
size:
|
|
472
|
+
function qn({
|
|
473
|
+
variant: e = "outlined",
|
|
474
|
+
size: t = "default",
|
|
400
475
|
header: n,
|
|
401
476
|
onClick: r,
|
|
402
|
-
children:
|
|
477
|
+
children: o
|
|
403
478
|
}) {
|
|
404
|
-
return /* @__PURE__ */
|
|
405
|
-
n && /* @__PURE__ */
|
|
406
|
-
|
|
479
|
+
return /* @__PURE__ */ z("div", { onClick: r, ...l(k.div, re.base, re[e], xt[t]), children: [
|
|
480
|
+
n && /* @__PURE__ */ s("div", { ...l(k.div, re.header), children: n }),
|
|
481
|
+
o
|
|
407
482
|
] });
|
|
408
483
|
}
|
|
409
|
-
const
|
|
484
|
+
const ee = {
|
|
410
485
|
root: {
|
|
411
486
|
k1xSpc: "x3nfvp2",
|
|
412
487
|
kGNEyG: "x6s0dn4",
|
|
@@ -456,27 +531,27 @@ const tt = {
|
|
|
456
531
|
$$css: !0
|
|
457
532
|
}
|
|
458
533
|
};
|
|
459
|
-
function
|
|
460
|
-
name:
|
|
461
|
-
value:
|
|
534
|
+
function Wn({
|
|
535
|
+
name: e,
|
|
536
|
+
value: t,
|
|
462
537
|
checked: n,
|
|
463
538
|
defaultChecked: r = !1,
|
|
464
|
-
disabled:
|
|
539
|
+
disabled: o = !1,
|
|
465
540
|
onChange: x,
|
|
466
541
|
children: i
|
|
467
542
|
}) {
|
|
468
|
-
const c = n !== void 0, [d, a] =
|
|
543
|
+
const c = n !== void 0, [d, a] = G(r), g = c ? n : d, u = W((v) => {
|
|
469
544
|
c || a(v.target.checked), x?.(v);
|
|
470
545
|
}, [c, x]);
|
|
471
|
-
return /* @__PURE__ */
|
|
472
|
-
/* @__PURE__ */
|
|
473
|
-
/* @__PURE__ */
|
|
546
|
+
return /* @__PURE__ */ z("label", { ...l(k.label, ee.root, o && ee.rootDisabled), children: [
|
|
547
|
+
/* @__PURE__ */ s("input", { type: "checkbox", name: e, value: t, checked: c ? n : void 0, defaultChecked: c ? void 0 : r, disabled: o, onChange: u, ...l(k.input, ee.input), dir: "auto" }),
|
|
548
|
+
/* @__PURE__ */ s("span", { ...l(k.span, ee.box, g ? ee.boxChecked : ee.boxUnchecked), "aria-hidden": !0, children: /* @__PURE__ */ s("svg", { width: 12, height: 12, viewBox: "0 0 12 12", fill: "none", style: {
|
|
474
549
|
opacity: g ? 1 : 0
|
|
475
|
-
}, children: /* @__PURE__ */
|
|
476
|
-
i && /* @__PURE__ */
|
|
550
|
+
}, children: /* @__PURE__ */ s("polyline", { points: "2.5 6 5 8.5 9.5 3.5", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }) }) }),
|
|
551
|
+
i && /* @__PURE__ */ s("span", { ...l(k.span), children: i })
|
|
477
552
|
] });
|
|
478
553
|
}
|
|
479
|
-
const
|
|
554
|
+
const he = {
|
|
480
555
|
root: {
|
|
481
556
|
k1xSpc: "x78zum5",
|
|
482
557
|
kXwgrk: "xdt5ytf",
|
|
@@ -499,18 +574,18 @@ const gt = {
|
|
|
499
574
|
$$css: !0
|
|
500
575
|
}
|
|
501
576
|
};
|
|
502
|
-
function
|
|
503
|
-
message:
|
|
504
|
-
icon:
|
|
577
|
+
function Hn({
|
|
578
|
+
message: e,
|
|
579
|
+
icon: t,
|
|
505
580
|
action: n
|
|
506
581
|
}) {
|
|
507
|
-
return /* @__PURE__ */
|
|
508
|
-
|
|
509
|
-
/* @__PURE__ */
|
|
510
|
-
n && /* @__PURE__ */
|
|
582
|
+
return /* @__PURE__ */ z("div", { ...l(k.div, he.root), children: [
|
|
583
|
+
t,
|
|
584
|
+
/* @__PURE__ */ s("p", { ...l(k.p, he.message), children: e }),
|
|
585
|
+
n && /* @__PURE__ */ s("div", { ...l(k.div, he.action), children: n })
|
|
511
586
|
] });
|
|
512
587
|
}
|
|
513
|
-
const
|
|
588
|
+
const Ge = {
|
|
514
589
|
bodySm: {
|
|
515
590
|
kMv6JI: "x2nsvjj",
|
|
516
591
|
kGuDYH: "x1if0jgx",
|
|
@@ -624,7 +699,7 @@ const Ht = {
|
|
|
624
699
|
kb6lSQ: "xgvl3jc",
|
|
625
700
|
$$css: !0
|
|
626
701
|
}
|
|
627
|
-
},
|
|
702
|
+
}, xe = {
|
|
628
703
|
default: {
|
|
629
704
|
kMwMTN: "xg6mlj0",
|
|
630
705
|
$$css: !0
|
|
@@ -649,33 +724,33 @@ const Ht = {
|
|
|
649
724
|
k9WMMc: "xp4054r",
|
|
650
725
|
$$css: !0
|
|
651
726
|
}
|
|
652
|
-
},
|
|
727
|
+
}, lt = {
|
|
653
728
|
1: "headingXl",
|
|
654
729
|
2: "headingLg",
|
|
655
730
|
3: "headingMd",
|
|
656
731
|
4: "headingSm",
|
|
657
732
|
5: "headingSm",
|
|
658
733
|
6: "headingSm"
|
|
659
|
-
},
|
|
660
|
-
start:
|
|
661
|
-
center:
|
|
662
|
-
end:
|
|
734
|
+
}, kt = {
|
|
735
|
+
start: xe.alignStart,
|
|
736
|
+
center: xe.alignCenter,
|
|
737
|
+
end: xe.alignEnd
|
|
663
738
|
};
|
|
664
|
-
function
|
|
665
|
-
level:
|
|
666
|
-
variant:
|
|
739
|
+
function Gn({
|
|
740
|
+
level: e,
|
|
741
|
+
variant: t,
|
|
667
742
|
color: n = "default",
|
|
668
743
|
align: r,
|
|
669
|
-
children:
|
|
744
|
+
children: o
|
|
670
745
|
}) {
|
|
671
|
-
const x =
|
|
672
|
-
return
|
|
746
|
+
const x = t ?? lt[e], i = [Ge[x], xe[n], r && kt[r]];
|
|
747
|
+
return e === 1 ? /* @__PURE__ */ s("h1", { ...l(k.h1, i), children: o }) : e === 2 ? /* @__PURE__ */ s("h2", { ...l(k.h2, i), children: o }) : e === 3 ? /* @__PURE__ */ s("h3", { ...l(k.h3, i), children: o }) : e === 4 ? /* @__PURE__ */ s("h4", { ...l(k.h4, i), children: o }) : e === 5 ? /* @__PURE__ */ s("h5", { ...l(k.h5, i), children: o }) : /* @__PURE__ */ s("h6", { ...l(k.h6, i), children: o });
|
|
673
748
|
}
|
|
674
|
-
const
|
|
675
|
-
function
|
|
676
|
-
return
|
|
749
|
+
const Te = R(null);
|
|
750
|
+
function ie() {
|
|
751
|
+
return O(Te);
|
|
677
752
|
}
|
|
678
|
-
const
|
|
753
|
+
const ke = {
|
|
679
754
|
root: {
|
|
680
755
|
k1xSpc: "x78zum5",
|
|
681
756
|
kXwgrk: "xdt5ytf",
|
|
@@ -699,46 +774,46 @@ const lt = {
|
|
|
699
774
|
$$css: !0
|
|
700
775
|
}
|
|
701
776
|
};
|
|
702
|
-
function
|
|
703
|
-
invalid:
|
|
704
|
-
children:
|
|
777
|
+
function at({
|
|
778
|
+
invalid: e = !1,
|
|
779
|
+
children: t
|
|
705
780
|
}) {
|
|
706
|
-
const n =
|
|
781
|
+
const n = _(), r = ve(() => ({
|
|
707
782
|
controlId: `${n}-control`,
|
|
708
783
|
descriptionId: `${n}-description`,
|
|
709
784
|
errorId: `${n}-error`,
|
|
710
|
-
invalid:
|
|
711
|
-
}), [n,
|
|
712
|
-
return /* @__PURE__ */
|
|
785
|
+
invalid: e
|
|
786
|
+
}), [n, e]);
|
|
787
|
+
return /* @__PURE__ */ s(Te.Provider, { value: r, children: /* @__PURE__ */ s("div", { ...l(k.div, ke.root), children: t }) });
|
|
713
788
|
}
|
|
714
|
-
function
|
|
715
|
-
children:
|
|
789
|
+
function ut({
|
|
790
|
+
children: e
|
|
716
791
|
}) {
|
|
717
|
-
const
|
|
718
|
-
return /* @__PURE__ */
|
|
792
|
+
const t = ie();
|
|
793
|
+
return /* @__PURE__ */ s("label", { htmlFor: t?.controlId, ...l(k.label, ke.label), children: e });
|
|
719
794
|
}
|
|
720
|
-
function
|
|
721
|
-
children:
|
|
795
|
+
function dt({
|
|
796
|
+
children: e
|
|
722
797
|
}) {
|
|
723
|
-
const
|
|
724
|
-
return /* @__PURE__ */
|
|
798
|
+
const t = ie();
|
|
799
|
+
return /* @__PURE__ */ s("span", { id: t?.descriptionId, ...l(k.span, ke.description), children: e });
|
|
725
800
|
}
|
|
726
|
-
function
|
|
727
|
-
children:
|
|
801
|
+
function gt({
|
|
802
|
+
children: e
|
|
728
803
|
}) {
|
|
729
|
-
const
|
|
730
|
-
return !
|
|
731
|
-
}
|
|
732
|
-
const
|
|
733
|
-
Root:
|
|
734
|
-
Label:
|
|
735
|
-
Description:
|
|
736
|
-
Error:
|
|
737
|
-
},
|
|
738
|
-
function
|
|
739
|
-
return
|
|
740
|
-
}
|
|
741
|
-
const
|
|
804
|
+
const t = ie();
|
|
805
|
+
return !t?.invalid && !e ? null : /* @__PURE__ */ s("span", { id: t?.errorId, role: "alert", ...l(k.span, ke.error), children: e });
|
|
806
|
+
}
|
|
807
|
+
const Tn = {
|
|
808
|
+
Root: at,
|
|
809
|
+
Label: ut,
|
|
810
|
+
Description: dt,
|
|
811
|
+
Error: gt
|
|
812
|
+
}, Ee = R(null);
|
|
813
|
+
function ht() {
|
|
814
|
+
return O(Ee);
|
|
815
|
+
}
|
|
816
|
+
const pe = {
|
|
742
817
|
base: {
|
|
743
818
|
kzqmXN: "xh8yej3",
|
|
744
819
|
kLKAdn: "x1y6gaq4",
|
|
@@ -777,12 +852,12 @@ const pt = {
|
|
|
777
852
|
$$css: !0
|
|
778
853
|
}
|
|
779
854
|
};
|
|
780
|
-
function
|
|
781
|
-
variant:
|
|
782
|
-
type:
|
|
855
|
+
function En({
|
|
856
|
+
variant: e = "default",
|
|
857
|
+
type: t = "text",
|
|
783
858
|
name: n,
|
|
784
859
|
placeholder: r,
|
|
785
|
-
required:
|
|
860
|
+
required: o,
|
|
786
861
|
minLength: x,
|
|
787
862
|
pattern: i,
|
|
788
863
|
autoComplete: c,
|
|
@@ -791,12 +866,12 @@ function Hn({
|
|
|
791
866
|
disabled: g,
|
|
792
867
|
onChange: u
|
|
793
868
|
}) {
|
|
794
|
-
const v =
|
|
869
|
+
const v = ie(), S = ht(), p = i !== void 0 ? {
|
|
795
870
|
pattern: i
|
|
796
871
|
} : void 0;
|
|
797
|
-
return /* @__PURE__ */
|
|
872
|
+
return /* @__PURE__ */ s("input", { id: v?.controlId, type: t, name: n, placeholder: r, required: o, 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 || e === "error" || void 0, onChange: u, ...l(k.input, pe.base, pe[e], S?.inGroup && pe.inGroup), ...p, dir: "auto" });
|
|
798
873
|
}
|
|
799
|
-
const
|
|
874
|
+
const te = {
|
|
800
875
|
wrapper: {
|
|
801
876
|
k1xSpc: "x78zum5",
|
|
802
877
|
kGNEyG: "x1qjc9v5",
|
|
@@ -851,27 +926,27 @@ const et = {
|
|
|
851
926
|
$$css: !0
|
|
852
927
|
}
|
|
853
928
|
};
|
|
854
|
-
function
|
|
855
|
-
children:
|
|
929
|
+
function pt({
|
|
930
|
+
children: e
|
|
856
931
|
}) {
|
|
857
|
-
const
|
|
932
|
+
const t = ve(() => ({
|
|
858
933
|
inGroup: !0
|
|
859
934
|
}), []);
|
|
860
|
-
return /* @__PURE__ */
|
|
935
|
+
return /* @__PURE__ */ s(Ee.Provider, { value: t, children: /* @__PURE__ */ s("div", { ...l(k.div, te.wrapper), children: e }) });
|
|
861
936
|
}
|
|
862
|
-
function
|
|
863
|
-
position:
|
|
864
|
-
onClick:
|
|
937
|
+
function ft({
|
|
938
|
+
position: e = "end",
|
|
939
|
+
onClick: t,
|
|
865
940
|
disabled: n,
|
|
866
941
|
children: r
|
|
867
942
|
}) {
|
|
868
|
-
const
|
|
869
|
-
return
|
|
943
|
+
const o = e === "start" ? te.addonStart : te.addonEnd, x = [te.addon, o, t && !n && te.addonClickable, n && te.addonDisabled];
|
|
944
|
+
return t ? /* @__PURE__ */ s("button", { type: "button", onClick: t, disabled: n, ...l(k.button, x), children: r }) : /* @__PURE__ */ s("span", { ...l(k.span, x), children: r });
|
|
870
945
|
}
|
|
871
|
-
const
|
|
872
|
-
Root:
|
|
873
|
-
Addon:
|
|
874
|
-
},
|
|
946
|
+
const Ln = {
|
|
947
|
+
Root: pt,
|
|
948
|
+
Addon: ft
|
|
949
|
+
}, oe = {
|
|
875
950
|
base: {
|
|
876
951
|
k1xSpc: "x3nfvp2",
|
|
877
952
|
kGNEyG: "x6s0dn4",
|
|
@@ -921,22 +996,22 @@ const Gn = {
|
|
|
921
996
|
kzqmXN: "xh8yej3",
|
|
922
997
|
$$css: !0
|
|
923
998
|
}
|
|
924
|
-
},
|
|
925
|
-
default:
|
|
926
|
-
small:
|
|
999
|
+
}, $t = {
|
|
1000
|
+
default: oe.sizeDefault,
|
|
1001
|
+
small: oe.sizeSmall
|
|
927
1002
|
};
|
|
928
|
-
function
|
|
929
|
-
href:
|
|
930
|
-
variant:
|
|
1003
|
+
function Vn({
|
|
1004
|
+
href: e,
|
|
1005
|
+
variant: t = "primary",
|
|
931
1006
|
size: n = "default",
|
|
932
1007
|
fullWidth: r = !1,
|
|
933
|
-
target:
|
|
1008
|
+
target: o,
|
|
934
1009
|
rel: x,
|
|
935
1010
|
children: i
|
|
936
1011
|
}) {
|
|
937
|
-
return /* @__PURE__ */
|
|
1012
|
+
return /* @__PURE__ */ s("a", { href: e, target: o, rel: x, ...l(k.a, oe.base, $t[n], oe[t], r && oe.fullWidth), children: i });
|
|
938
1013
|
}
|
|
939
|
-
const
|
|
1014
|
+
const P = {
|
|
940
1015
|
root: {
|
|
941
1016
|
kVAEAm: "x1n2onr6",
|
|
942
1017
|
k1xSpc: "x3nfvp2",
|
|
@@ -1020,52 +1095,52 @@ const J = {
|
|
|
1020
1095
|
kMwMTN: "xg6mlj0 x1c35pte",
|
|
1021
1096
|
$$css: !0
|
|
1022
1097
|
}
|
|
1023
|
-
},
|
|
1024
|
-
function
|
|
1025
|
-
const
|
|
1026
|
-
if (!
|
|
1027
|
-
return
|
|
1028
|
-
}
|
|
1029
|
-
function
|
|
1030
|
-
const [
|
|
1031
|
-
|
|
1032
|
-
}, []), u =
|
|
1033
|
-
|
|
1098
|
+
}, Le = R(null);
|
|
1099
|
+
function ae() {
|
|
1100
|
+
const e = O(Le);
|
|
1101
|
+
if (!e) throw new Error("Menu compound components must be used within Menu.Root");
|
|
1102
|
+
return e;
|
|
1103
|
+
}
|
|
1104
|
+
function vt() {
|
|
1105
|
+
const [e, t] = G(!1), [n, r] = G(null), o = _(), x = w(null), i = w(null), c = w(/* @__PURE__ */ new Map()), d = w([]), a = w(!1), g = W(() => {
|
|
1106
|
+
t(!1), r(null), a.current = !1, i.current?.focus();
|
|
1107
|
+
}, []), u = W(() => {
|
|
1108
|
+
t((p) => (p ? (r(null), a.current = !1) : a.current = !0, !p));
|
|
1034
1109
|
}, []);
|
|
1035
|
-
|
|
1036
|
-
if (
|
|
1110
|
+
H(() => {
|
|
1111
|
+
if (e && a.current) {
|
|
1037
1112
|
a.current = !1;
|
|
1038
|
-
const
|
|
1039
|
-
|
|
1113
|
+
const p = d.current;
|
|
1114
|
+
p.length > 0 && r(p[0]);
|
|
1040
1115
|
}
|
|
1041
|
-
}, [
|
|
1042
|
-
const v =
|
|
1043
|
-
c.current.set(
|
|
1116
|
+
}, [e]);
|
|
1117
|
+
const v = W((p, m) => {
|
|
1118
|
+
c.current.set(p, m);
|
|
1044
1119
|
const f = c.current, $ = [...f.keys()];
|
|
1045
|
-
return $.sort((
|
|
1046
|
-
const B = f.get(
|
|
1047
|
-
return !B || !
|
|
1120
|
+
return $.sort((h, b) => {
|
|
1121
|
+
const B = f.get(h), Q = f.get(b);
|
|
1122
|
+
return !B || !Q ? 0 : B.compareDocumentPosition(Q) & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : 1;
|
|
1048
1123
|
}), d.current = $, () => {
|
|
1049
|
-
c.current.delete(
|
|
1124
|
+
c.current.delete(p), d.current = d.current.filter((h) => h !== p);
|
|
1050
1125
|
};
|
|
1051
1126
|
}, []);
|
|
1052
|
-
return
|
|
1053
|
-
const
|
|
1054
|
-
if (!
|
|
1127
|
+
return H(() => {
|
|
1128
|
+
const p = x.current;
|
|
1129
|
+
if (!p || !e) return;
|
|
1055
1130
|
function m(f) {
|
|
1056
1131
|
const $ = d.current;
|
|
1057
1132
|
if ($.length !== 0)
|
|
1058
1133
|
switch (f.key) {
|
|
1059
1134
|
case "ArrowDown": {
|
|
1060
|
-
f.preventDefault(), r((
|
|
1061
|
-
const b =
|
|
1135
|
+
f.preventDefault(), r((h) => {
|
|
1136
|
+
const b = h ? $.indexOf(h) : -1;
|
|
1062
1137
|
return $[(b + 1) % $.length];
|
|
1063
1138
|
});
|
|
1064
1139
|
break;
|
|
1065
1140
|
}
|
|
1066
1141
|
case "ArrowUp": {
|
|
1067
|
-
f.preventDefault(), r((
|
|
1068
|
-
const b =
|
|
1142
|
+
f.preventDefault(), r((h) => {
|
|
1143
|
+
const b = h ? $.indexOf(h) : 0;
|
|
1069
1144
|
return $[(b - 1 + $.length) % $.length];
|
|
1070
1145
|
});
|
|
1071
1146
|
break;
|
|
@@ -1081,8 +1156,8 @@ function pe() {
|
|
|
1081
1156
|
case "Enter":
|
|
1082
1157
|
case " ": {
|
|
1083
1158
|
f.preventDefault();
|
|
1084
|
-
const
|
|
1085
|
-
r((b) => (b &&
|
|
1159
|
+
const h = c.current;
|
|
1160
|
+
r((b) => (b && h.get(b)?.click(), b));
|
|
1086
1161
|
break;
|
|
1087
1162
|
}
|
|
1088
1163
|
case "Escape":
|
|
@@ -1092,13 +1167,13 @@ function pe() {
|
|
|
1092
1167
|
}
|
|
1093
1168
|
}
|
|
1094
1169
|
}
|
|
1095
|
-
return
|
|
1096
|
-
}, [
|
|
1170
|
+
return p.addEventListener("keydown", m), () => p.removeEventListener("keydown", m);
|
|
1171
|
+
}, [e, g]), {
|
|
1097
1172
|
ctx: {
|
|
1098
|
-
open:
|
|
1173
|
+
open: e,
|
|
1099
1174
|
toggle: u,
|
|
1100
1175
|
close: g,
|
|
1101
|
-
menuId:
|
|
1176
|
+
menuId: o,
|
|
1102
1177
|
highlightedId: n,
|
|
1103
1178
|
setHighlightedId: r,
|
|
1104
1179
|
registerItem: v,
|
|
@@ -1107,84 +1182,84 @@ function pe() {
|
|
|
1107
1182
|
rootRef: x
|
|
1108
1183
|
};
|
|
1109
1184
|
}
|
|
1110
|
-
function
|
|
1111
|
-
children:
|
|
1185
|
+
function mt({
|
|
1186
|
+
children: e
|
|
1112
1187
|
}) {
|
|
1113
1188
|
const {
|
|
1114
|
-
ctx:
|
|
1189
|
+
ctx: t,
|
|
1115
1190
|
rootRef: n
|
|
1116
|
-
} =
|
|
1117
|
-
return /* @__PURE__ */
|
|
1191
|
+
} = vt();
|
|
1192
|
+
return /* @__PURE__ */ s(Le.Provider, { value: t, children: /* @__PURE__ */ s("div", { ref: n, ...l(k.div, P.root), children: e }) });
|
|
1118
1193
|
}
|
|
1119
|
-
function
|
|
1120
|
-
children:
|
|
1194
|
+
function bt({
|
|
1195
|
+
children: e
|
|
1121
1196
|
}) {
|
|
1122
1197
|
const {
|
|
1123
|
-
open:
|
|
1198
|
+
open: t,
|
|
1124
1199
|
toggle: n,
|
|
1125
1200
|
menuId: r,
|
|
1126
|
-
triggerRef:
|
|
1127
|
-
} =
|
|
1128
|
-
return
|
|
1129
|
-
|
|
1130
|
-
}), /* @__PURE__ */
|
|
1131
|
-
}
|
|
1132
|
-
function
|
|
1133
|
-
children:
|
|
1134
|
-
align:
|
|
1201
|
+
triggerRef: o
|
|
1202
|
+
} = ae(), x = w(null);
|
|
1203
|
+
return H(() => {
|
|
1204
|
+
o.current = x.current;
|
|
1205
|
+
}), /* @__PURE__ */ s("button", { ref: x, type: "button", onClick: n, "aria-expanded": t, "aria-haspopup": "menu", "aria-controls": t ? r : void 0, ...l(k.button, P.trigger), children: e });
|
|
1206
|
+
}
|
|
1207
|
+
function yt({
|
|
1208
|
+
children: e,
|
|
1209
|
+
align: t = "start"
|
|
1135
1210
|
}) {
|
|
1136
1211
|
const {
|
|
1137
1212
|
open: n,
|
|
1138
1213
|
close: r,
|
|
1139
|
-
menuId:
|
|
1214
|
+
menuId: o,
|
|
1140
1215
|
highlightedId: x
|
|
1141
|
-
} =
|
|
1142
|
-
return n ? /* @__PURE__ */
|
|
1143
|
-
/* @__PURE__ */
|
|
1144
|
-
/* @__PURE__ */
|
|
1216
|
+
} = ae();
|
|
1217
|
+
return n ? /* @__PURE__ */ z(D, { children: [
|
|
1218
|
+
/* @__PURE__ */ s("div", { ...l(k.div, P.backdrop), onClick: r }),
|
|
1219
|
+
/* @__PURE__ */ s("div", { id: o, role: "menu", "aria-activedescendant": x ?? void 0, ...l(k.div, P.popup, t === "end" && P.popupEnd), children: e })
|
|
1145
1220
|
] }) : null;
|
|
1146
1221
|
}
|
|
1147
|
-
function
|
|
1148
|
-
onClick:
|
|
1149
|
-
children:
|
|
1222
|
+
function wt({
|
|
1223
|
+
onClick: e,
|
|
1224
|
+
children: t
|
|
1150
1225
|
}) {
|
|
1151
1226
|
const {
|
|
1152
1227
|
close: n,
|
|
1153
1228
|
highlightedId: r,
|
|
1154
|
-
setHighlightedId:
|
|
1229
|
+
setHighlightedId: o,
|
|
1155
1230
|
registerItem: x
|
|
1156
|
-
} =
|
|
1157
|
-
return
|
|
1231
|
+
} = ae(), i = _(), c = w(null), d = r === i;
|
|
1232
|
+
return H(() => {
|
|
1158
1233
|
const g = c.current;
|
|
1159
1234
|
if (g)
|
|
1160
1235
|
return x(i, g);
|
|
1161
|
-
}, [i, x]), /* @__PURE__ */
|
|
1162
|
-
|
|
1163
|
-
}, onPointerEnter: () =>
|
|
1236
|
+
}, [i, x]), /* @__PURE__ */ s("div", { ref: c, id: i, role: "menuitem", onClick: () => {
|
|
1237
|
+
e?.(), n();
|
|
1238
|
+
}, onPointerEnter: () => o(i), ...l(k.div, P.item, d && P.itemHighlighted), children: t });
|
|
1164
1239
|
}
|
|
1165
|
-
function
|
|
1166
|
-
href:
|
|
1167
|
-
children:
|
|
1240
|
+
function St({
|
|
1241
|
+
href: e,
|
|
1242
|
+
children: t
|
|
1168
1243
|
}) {
|
|
1169
1244
|
const {
|
|
1170
1245
|
close: n,
|
|
1171
1246
|
highlightedId: r,
|
|
1172
|
-
setHighlightedId:
|
|
1247
|
+
setHighlightedId: o,
|
|
1173
1248
|
registerItem: x
|
|
1174
|
-
} =
|
|
1175
|
-
return
|
|
1249
|
+
} = ae(), i = _(), c = w(null), d = r === i;
|
|
1250
|
+
return H(() => {
|
|
1176
1251
|
const a = c.current;
|
|
1177
1252
|
if (a)
|
|
1178
1253
|
return x(i, a);
|
|
1179
|
-
}, [i, x]), /* @__PURE__ */
|
|
1180
|
-
}
|
|
1181
|
-
const
|
|
1182
|
-
Root:
|
|
1183
|
-
Trigger:
|
|
1184
|
-
Popup:
|
|
1185
|
-
Item:
|
|
1186
|
-
LinkItem:
|
|
1187
|
-
},
|
|
1254
|
+
}, [i, x]), /* @__PURE__ */ s("a", { ref: c, id: i, href: e, onClick: n, role: "menuitem", onPointerEnter: () => o(i), ...l(k.a, P.item, P.linkItem, d && P.itemHighlighted), children: t });
|
|
1255
|
+
}
|
|
1256
|
+
const An = {
|
|
1257
|
+
Root: mt,
|
|
1258
|
+
Trigger: bt,
|
|
1259
|
+
Popup: yt,
|
|
1260
|
+
Item: wt,
|
|
1261
|
+
LinkItem: St
|
|
1262
|
+
}, C = {
|
|
1188
1263
|
root: {
|
|
1189
1264
|
kVAEAm: "x1n2onr6",
|
|
1190
1265
|
kVQacm: "xb3r6kr",
|
|
@@ -1253,131 +1328,131 @@ const En = {
|
|
|
1253
1328
|
kIyJzY: "xx6bhzk",
|
|
1254
1329
|
$$css: !0
|
|
1255
1330
|
},
|
|
1256
|
-
viewportMaxHeight: (
|
|
1257
|
-
kskxy:
|
|
1331
|
+
viewportMaxHeight: (e) => [{
|
|
1332
|
+
kskxy: e != null ? "x1jols5v" : e,
|
|
1258
1333
|
$$css: !0
|
|
1259
1334
|
}, {
|
|
1260
|
-
"--x-maxHeight": ((
|
|
1335
|
+
"--x-maxHeight": ((t) => typeof t == "number" ? t + "px" : t ?? void 0)(e)
|
|
1261
1336
|
}],
|
|
1262
|
-
thumbVertical: (
|
|
1263
|
-
kZKoxP:
|
|
1264
|
-
k3aq6I:
|
|
1337
|
+
thumbVertical: (e, t) => [{
|
|
1338
|
+
kZKoxP: e != null ? "x16ye13r" : e,
|
|
1339
|
+
k3aq6I: t != null ? "xsqj5wx" : t,
|
|
1265
1340
|
$$css: !0
|
|
1266
1341
|
}, {
|
|
1267
|
-
"--x-height": ((n) => typeof n == "number" ? n + "px" : n ?? void 0)(
|
|
1268
|
-
"--x-transform":
|
|
1342
|
+
"--x-height": ((n) => typeof n == "number" ? n + "px" : n ?? void 0)(e),
|
|
1343
|
+
"--x-transform": t ?? void 0
|
|
1269
1344
|
}],
|
|
1270
|
-
thumbHorizontal: (
|
|
1271
|
-
kzqmXN:
|
|
1272
|
-
k3aq6I:
|
|
1345
|
+
thumbHorizontal: (e, t) => [{
|
|
1346
|
+
kzqmXN: e != null ? "x5lhr3w" : e,
|
|
1347
|
+
k3aq6I: t != null ? "xsqj5wx" : t,
|
|
1273
1348
|
$$css: !0
|
|
1274
1349
|
}, {
|
|
1275
|
-
"--x-width": ((n) => typeof n == "number" ? n + "px" : n ?? void 0)(
|
|
1276
|
-
"--x-transform":
|
|
1350
|
+
"--x-width": ((n) => typeof n == "number" ? n + "px" : n ?? void 0)(e),
|
|
1351
|
+
"--x-transform": t ?? void 0
|
|
1277
1352
|
}]
|
|
1278
|
-
},
|
|
1279
|
-
function
|
|
1280
|
-
const
|
|
1281
|
-
if (!
|
|
1282
|
-
return
|
|
1283
|
-
}
|
|
1284
|
-
function
|
|
1285
|
-
const
|
|
1286
|
-
const
|
|
1287
|
-
|
|
1353
|
+
}, Ve = R(null);
|
|
1354
|
+
function ue() {
|
|
1355
|
+
const e = O(Ve);
|
|
1356
|
+
if (!e) throw new Error("ScrollArea compound components must be used within ScrollArea.Root");
|
|
1357
|
+
return e;
|
|
1358
|
+
}
|
|
1359
|
+
function jt() {
|
|
1360
|
+
const e = w(null), t = w(null), [n, r] = G(0), [o, x] = G(0), [i, c] = G(0), [d, a] = G(0), [g, u] = G(0), [v, S] = G(0), [p, m] = G(!1), f = w(null), $ = W(() => {
|
|
1361
|
+
const h = e.current;
|
|
1362
|
+
h && (r(h.scrollTop), x(h.scrollLeft), c(h.scrollHeight), a(h.scrollWidth), u(h.clientHeight), S(h.clientWidth), m(!0), f.current && clearTimeout(f.current), f.current = setTimeout(() => m(!1), 1e3));
|
|
1288
1363
|
}, []);
|
|
1289
|
-
return
|
|
1290
|
-
const
|
|
1291
|
-
if (!
|
|
1364
|
+
return H(() => {
|
|
1365
|
+
const h = e.current;
|
|
1366
|
+
if (!h) return;
|
|
1292
1367
|
const b = new ResizeObserver(() => {
|
|
1293
|
-
c(
|
|
1368
|
+
c(h.scrollHeight), a(h.scrollWidth), u(h.clientHeight), S(h.clientWidth);
|
|
1294
1369
|
});
|
|
1295
|
-
return b.observe(
|
|
1296
|
-
}, []),
|
|
1297
|
-
const
|
|
1298
|
-
if (
|
|
1299
|
-
return
|
|
1370
|
+
return b.observe(h), c(h.scrollHeight), a(h.scrollWidth), u(h.clientHeight), S(h.clientWidth), () => b.disconnect();
|
|
1371
|
+
}, []), H(() => {
|
|
1372
|
+
const h = e.current;
|
|
1373
|
+
if (h)
|
|
1374
|
+
return h.addEventListener("scroll", $, {
|
|
1300
1375
|
passive: !0
|
|
1301
|
-
}), () =>
|
|
1376
|
+
}), () => h.removeEventListener("scroll", $);
|
|
1302
1377
|
}, [$]), {
|
|
1303
|
-
viewportRef:
|
|
1304
|
-
contentRef:
|
|
1378
|
+
viewportRef: e,
|
|
1379
|
+
contentRef: t,
|
|
1305
1380
|
scrollTop: n,
|
|
1306
|
-
scrollLeft:
|
|
1381
|
+
scrollLeft: o,
|
|
1307
1382
|
scrollHeight: i,
|
|
1308
1383
|
scrollWidth: d,
|
|
1309
1384
|
clientHeight: g,
|
|
1310
1385
|
clientWidth: v,
|
|
1311
|
-
scrolling:
|
|
1386
|
+
scrolling: p
|
|
1312
1387
|
};
|
|
1313
1388
|
}
|
|
1314
|
-
function
|
|
1315
|
-
children:
|
|
1389
|
+
function Mt({
|
|
1390
|
+
children: e
|
|
1316
1391
|
}) {
|
|
1317
|
-
const
|
|
1318
|
-
return /* @__PURE__ */
|
|
1392
|
+
const t = jt();
|
|
1393
|
+
return /* @__PURE__ */ s(Ve.Provider, { value: t, children: /* @__PURE__ */ s("div", { ...l(k.div, C.root), children: e }) });
|
|
1319
1394
|
}
|
|
1320
|
-
function
|
|
1321
|
-
children:
|
|
1322
|
-
maxHeight:
|
|
1395
|
+
function zt({
|
|
1396
|
+
children: e,
|
|
1397
|
+
maxHeight: t
|
|
1323
1398
|
}) {
|
|
1324
1399
|
const {
|
|
1325
1400
|
viewportRef: n
|
|
1326
|
-
} =
|
|
1327
|
-
return /* @__PURE__ */
|
|
1401
|
+
} = ue();
|
|
1402
|
+
return /* @__PURE__ */ s("div", { ref: n, ...l(k.div, C.viewport, t != null && C.viewportMaxHeight(t)), children: e });
|
|
1328
1403
|
}
|
|
1329
|
-
function
|
|
1330
|
-
children:
|
|
1404
|
+
function It({
|
|
1405
|
+
children: e
|
|
1331
1406
|
}) {
|
|
1332
1407
|
const {
|
|
1333
|
-
contentRef:
|
|
1334
|
-
} =
|
|
1335
|
-
return /* @__PURE__ */
|
|
1408
|
+
contentRef: t
|
|
1409
|
+
} = ue();
|
|
1410
|
+
return /* @__PURE__ */ s("div", { ref: t, ...l(k.div, C.content), children: e });
|
|
1336
1411
|
}
|
|
1337
|
-
function
|
|
1338
|
-
orientation:
|
|
1339
|
-
children:
|
|
1412
|
+
function qt({
|
|
1413
|
+
orientation: e = "vertical",
|
|
1414
|
+
children: t
|
|
1340
1415
|
}) {
|
|
1341
1416
|
const {
|
|
1342
1417
|
scrolling: n,
|
|
1343
1418
|
scrollHeight: r,
|
|
1344
|
-
scrollWidth:
|
|
1419
|
+
scrollWidth: o,
|
|
1345
1420
|
clientHeight: x,
|
|
1346
1421
|
clientWidth: i
|
|
1347
|
-
} =
|
|
1348
|
-
return (
|
|
1422
|
+
} = ue();
|
|
1423
|
+
return (e === "vertical" ? r > x : o > i) ? /* @__PURE__ */ s("div", { ...l(k.div, C.scrollbar, e === "vertical" ? C.scrollbarVertical : C.scrollbarHorizontal, n ? C.scrollbarVisible : C.scrollbarHidden), children: t }) : null;
|
|
1349
1424
|
}
|
|
1350
|
-
function
|
|
1351
|
-
orientation:
|
|
1425
|
+
function Wt({
|
|
1426
|
+
orientation: e = "vertical"
|
|
1352
1427
|
}) {
|
|
1353
1428
|
const {
|
|
1354
|
-
viewportRef:
|
|
1429
|
+
viewportRef: t,
|
|
1355
1430
|
scrollTop: n,
|
|
1356
1431
|
scrollLeft: r,
|
|
1357
|
-
scrollHeight:
|
|
1432
|
+
scrollHeight: o,
|
|
1358
1433
|
scrollWidth: x,
|
|
1359
1434
|
clientHeight: i,
|
|
1360
1435
|
clientWidth: c
|
|
1361
|
-
} =
|
|
1362
|
-
y.preventDefault(), d.current = !0, a.current = u ? y.clientY : y.clientX, g.current = u ?
|
|
1363
|
-
}, [u,
|
|
1436
|
+
} = ue(), d = w(!1), a = w(0), g = w(0), u = e === "vertical", v = Math.max(u ? i / o * 100 : c / x * 100, 10), S = u ? o - i : x - c, p = u ? i : c, m = v / 100 * p, f = u ? n : r, $ = S > 0 ? f / S * (p - m) : 0, h = u ? C.thumbVertical(`${v}%`, `translateY(${$}px)`) : C.thumbHorizontal(`${v}%`, `translateX(${$}px)`), b = W((y) => {
|
|
1437
|
+
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);
|
|
1438
|
+
}, [u, t]), B = W((y) => {
|
|
1364
1439
|
if (!d.current) return;
|
|
1365
|
-
const
|
|
1366
|
-
if (!
|
|
1367
|
-
const j = (u ? y.clientY : y.clientX) - a.current, M = S / (
|
|
1368
|
-
u ?
|
|
1369
|
-
}, [u, S,
|
|
1440
|
+
const I = t.current;
|
|
1441
|
+
if (!I) return;
|
|
1442
|
+
const j = (u ? y.clientY : y.clientX) - a.current, M = S / (p - m), J = j * M;
|
|
1443
|
+
u ? I.scrollTop = g.current + J : I.scrollLeft = g.current + J;
|
|
1444
|
+
}, [u, S, p, m, t]), Q = W(() => {
|
|
1370
1445
|
d.current = !1;
|
|
1371
1446
|
}, []);
|
|
1372
|
-
return /* @__PURE__ */
|
|
1373
|
-
}
|
|
1374
|
-
const
|
|
1375
|
-
Root:
|
|
1376
|
-
Viewport:
|
|
1377
|
-
Content:
|
|
1378
|
-
Scrollbar:
|
|
1379
|
-
Thumb:
|
|
1380
|
-
},
|
|
1447
|
+
return /* @__PURE__ */ s("div", { onPointerDown: b, onPointerMove: B, onPointerUp: Q, ...l(k.div, C.thumb, h) });
|
|
1448
|
+
}
|
|
1449
|
+
const Nn = {
|
|
1450
|
+
Root: Mt,
|
|
1451
|
+
Viewport: zt,
|
|
1452
|
+
Content: It,
|
|
1453
|
+
Scrollbar: qt,
|
|
1454
|
+
Thumb: Wt
|
|
1455
|
+
}, Y = {
|
|
1381
1456
|
root: {
|
|
1382
1457
|
kVAEAm: "x1n2onr6",
|
|
1383
1458
|
k1xSpc: "x3nfvp2",
|
|
@@ -1475,37 +1550,37 @@ const Ln = {
|
|
|
1475
1550
|
k1xSpc: "x1s85apg",
|
|
1476
1551
|
$$css: !0
|
|
1477
1552
|
}
|
|
1478
|
-
},
|
|
1479
|
-
function
|
|
1480
|
-
const
|
|
1481
|
-
if (!
|
|
1482
|
-
return
|
|
1483
|
-
}
|
|
1484
|
-
function
|
|
1485
|
-
const [r,
|
|
1486
|
-
|
|
1487
|
-
}, [
|
|
1553
|
+
}, Ae = R(null);
|
|
1554
|
+
function de() {
|
|
1555
|
+
const e = O(Ae);
|
|
1556
|
+
if (!e) throw new Error("Select compound components must be used within Select.Root");
|
|
1557
|
+
return e;
|
|
1558
|
+
}
|
|
1559
|
+
function be(e, t, n) {
|
|
1560
|
+
const [r, o] = G(t), x = e !== void 0 ? e : r, i = W((c) => {
|
|
1561
|
+
e === void 0 && o(c), n?.(c);
|
|
1562
|
+
}, [e, n]);
|
|
1488
1563
|
return [x, i];
|
|
1489
1564
|
}
|
|
1490
|
-
function
|
|
1491
|
-
defaultValue:
|
|
1492
|
-
value:
|
|
1565
|
+
function Ht({
|
|
1566
|
+
defaultValue: e,
|
|
1567
|
+
value: t,
|
|
1493
1568
|
onValueChange: n,
|
|
1494
1569
|
initialLabels: r
|
|
1495
1570
|
}) {
|
|
1496
|
-
const [
|
|
1497
|
-
c(!1), u(null),
|
|
1498
|
-
}, []),
|
|
1571
|
+
const [o, x] = be(t, e ?? null, n), [i, c] = G(!1), [d, a] = G(r ?? {}), [g, u] = G(null), v = _(), S = w(null), p = w(null), m = w(/* @__PURE__ */ new Map()), f = w([]), $ = W(() => {
|
|
1572
|
+
c(!1), u(null), p.current?.focus();
|
|
1573
|
+
}, []), h = W(() => {
|
|
1499
1574
|
c((y) => {
|
|
1500
1575
|
if (y)
|
|
1501
1576
|
u(null);
|
|
1502
1577
|
else {
|
|
1503
|
-
const
|
|
1578
|
+
const I = m.current, j = f.current;
|
|
1504
1579
|
let M = null;
|
|
1505
|
-
for (const
|
|
1506
|
-
const
|
|
1507
|
-
if (
|
|
1508
|
-
M =
|
|
1580
|
+
for (const J of j) {
|
|
1581
|
+
const T = I.get(J);
|
|
1582
|
+
if (T && T.value === o) {
|
|
1583
|
+
M = J;
|
|
1509
1584
|
break;
|
|
1510
1585
|
}
|
|
1511
1586
|
}
|
|
@@ -1513,42 +1588,42 @@ function ze({
|
|
|
1513
1588
|
}
|
|
1514
1589
|
return !y;
|
|
1515
1590
|
});
|
|
1516
|
-
}, [
|
|
1517
|
-
a((j) => j[y] ===
|
|
1591
|
+
}, [o]), b = W((y, I) => {
|
|
1592
|
+
a((j) => j[y] === I ? j : {
|
|
1518
1593
|
...j,
|
|
1519
|
-
[y]:
|
|
1594
|
+
[y]: I
|
|
1520
1595
|
});
|
|
1521
|
-
}, []), B =
|
|
1596
|
+
}, []), B = W((y, I, j) => {
|
|
1522
1597
|
m.current.set(y, {
|
|
1523
|
-
value:
|
|
1598
|
+
value: I,
|
|
1524
1599
|
element: j
|
|
1525
1600
|
});
|
|
1526
|
-
const M = m.current,
|
|
1527
|
-
return
|
|
1528
|
-
const
|
|
1529
|
-
return !
|
|
1530
|
-
}), f.current =
|
|
1531
|
-
m.current.delete(y), f.current = f.current.filter((
|
|
1601
|
+
const M = m.current, J = [...M.keys()];
|
|
1602
|
+
return J.sort((T, K) => {
|
|
1603
|
+
const je = M.get(T)?.element, Me = M.get(K)?.element;
|
|
1604
|
+
return !je || !Me ? 0 : je.compareDocumentPosition(Me) & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : 1;
|
|
1605
|
+
}), f.current = J, () => {
|
|
1606
|
+
m.current.delete(y), f.current = f.current.filter((T) => T !== y);
|
|
1532
1607
|
};
|
|
1533
1608
|
}, []);
|
|
1534
|
-
return
|
|
1609
|
+
return H(() => {
|
|
1535
1610
|
const y = S.current;
|
|
1536
1611
|
if (!y || !i) return;
|
|
1537
|
-
function
|
|
1538
|
-
const M = f.current,
|
|
1612
|
+
function I(j) {
|
|
1613
|
+
const M = f.current, J = m.current;
|
|
1539
1614
|
if (M.length !== 0)
|
|
1540
1615
|
switch (j.key) {
|
|
1541
1616
|
case "ArrowDown": {
|
|
1542
|
-
j.preventDefault(), u((
|
|
1543
|
-
const
|
|
1544
|
-
return M[(
|
|
1617
|
+
j.preventDefault(), u((T) => {
|
|
1618
|
+
const K = T ? M.indexOf(T) : -1;
|
|
1619
|
+
return M[(K + 1) % M.length];
|
|
1545
1620
|
});
|
|
1546
1621
|
break;
|
|
1547
1622
|
}
|
|
1548
1623
|
case "ArrowUp": {
|
|
1549
|
-
j.preventDefault(), u((
|
|
1550
|
-
const
|
|
1551
|
-
return M[(
|
|
1624
|
+
j.preventDefault(), u((T) => {
|
|
1625
|
+
const K = T ? M.indexOf(T) : 0;
|
|
1626
|
+
return M[(K - 1 + M.length) % M.length];
|
|
1552
1627
|
});
|
|
1553
1628
|
break;
|
|
1554
1629
|
}
|
|
@@ -1562,12 +1637,12 @@ function ze({
|
|
|
1562
1637
|
}
|
|
1563
1638
|
case "Enter":
|
|
1564
1639
|
case " ": {
|
|
1565
|
-
j.preventDefault(), u((
|
|
1566
|
-
if (
|
|
1567
|
-
const
|
|
1568
|
-
|
|
1640
|
+
j.preventDefault(), u((T) => {
|
|
1641
|
+
if (T) {
|
|
1642
|
+
const K = J.get(T);
|
|
1643
|
+
K && (x(K.value), $());
|
|
1569
1644
|
}
|
|
1570
|
-
return
|
|
1645
|
+
return T;
|
|
1571
1646
|
});
|
|
1572
1647
|
break;
|
|
1573
1648
|
}
|
|
@@ -1578,13 +1653,13 @@ function ze({
|
|
|
1578
1653
|
}
|
|
1579
1654
|
}
|
|
1580
1655
|
}
|
|
1581
|
-
return y.addEventListener("keydown",
|
|
1656
|
+
return y.addEventListener("keydown", I), () => y.removeEventListener("keydown", I);
|
|
1582
1657
|
}, [i, $, x]), {
|
|
1583
|
-
ctx:
|
|
1658
|
+
ctx: ve(() => ({
|
|
1584
1659
|
open: i,
|
|
1585
|
-
toggle:
|
|
1660
|
+
toggle: h,
|
|
1586
1661
|
close: $,
|
|
1587
|
-
value:
|
|
1662
|
+
value: o,
|
|
1588
1663
|
setValue: x,
|
|
1589
1664
|
labels: d,
|
|
1590
1665
|
registerLabel: b,
|
|
@@ -1592,114 +1667,114 @@ function ze({
|
|
|
1592
1667
|
highlightedId: g,
|
|
1593
1668
|
setHighlightedId: u,
|
|
1594
1669
|
registerItem: B,
|
|
1595
|
-
triggerRef:
|
|
1596
|
-
}), [i,
|
|
1670
|
+
triggerRef: p
|
|
1671
|
+
}), [i, h, $, o, x, d, b, v, g, u, B]),
|
|
1597
1672
|
rootRef: S
|
|
1598
1673
|
};
|
|
1599
1674
|
}
|
|
1600
|
-
function
|
|
1601
|
-
name:
|
|
1602
|
-
defaultValue:
|
|
1675
|
+
function Gt({
|
|
1676
|
+
name: e,
|
|
1677
|
+
defaultValue: t,
|
|
1603
1678
|
value: n,
|
|
1604
1679
|
onValueChange: r,
|
|
1605
|
-
initialLabels:
|
|
1680
|
+
initialLabels: o,
|
|
1606
1681
|
children: x
|
|
1607
1682
|
}) {
|
|
1608
1683
|
const {
|
|
1609
1684
|
ctx: i,
|
|
1610
1685
|
rootRef: c
|
|
1611
|
-
} =
|
|
1612
|
-
defaultValue:
|
|
1686
|
+
} = Ht({
|
|
1687
|
+
defaultValue: t,
|
|
1613
1688
|
value: n,
|
|
1614
1689
|
onValueChange: r,
|
|
1615
|
-
initialLabels:
|
|
1690
|
+
initialLabels: o
|
|
1616
1691
|
});
|
|
1617
|
-
return /* @__PURE__ */
|
|
1618
|
-
|
|
1692
|
+
return /* @__PURE__ */ s(Ae.Provider, { value: i, children: /* @__PURE__ */ z("div", { ref: c, ...l(k.div, Y.root), children: [
|
|
1693
|
+
e && /* @__PURE__ */ s("input", { type: "hidden", name: e, value: i.value ?? "", dir: "auto", ...l(k.input) }),
|
|
1619
1694
|
x
|
|
1620
1695
|
] }) });
|
|
1621
1696
|
}
|
|
1622
|
-
function
|
|
1623
|
-
children:
|
|
1697
|
+
function Tt({
|
|
1698
|
+
children: e
|
|
1624
1699
|
}) {
|
|
1625
1700
|
const {
|
|
1626
|
-
open:
|
|
1701
|
+
open: t,
|
|
1627
1702
|
toggle: n,
|
|
1628
1703
|
listboxId: r,
|
|
1629
|
-
highlightedId:
|
|
1704
|
+
highlightedId: o,
|
|
1630
1705
|
triggerRef: x
|
|
1631
|
-
} =
|
|
1632
|
-
return
|
|
1706
|
+
} = de(), i = w(null);
|
|
1707
|
+
return H(() => {
|
|
1633
1708
|
x.current = i.current;
|
|
1634
|
-
}), /* @__PURE__ */
|
|
1709
|
+
}), /* @__PURE__ */ s("button", { ref: i, type: "button", role: "combobox", onClick: n, "aria-expanded": t, "aria-haspopup": "listbox", "aria-controls": t ? r : void 0, "aria-activedescendant": o ?? void 0, ...l(k.button, Y.trigger), children: e });
|
|
1635
1710
|
}
|
|
1636
|
-
function
|
|
1637
|
-
placeholder:
|
|
1711
|
+
function Et({
|
|
1712
|
+
placeholder: e
|
|
1638
1713
|
}) {
|
|
1639
1714
|
const {
|
|
1640
|
-
value:
|
|
1715
|
+
value: t,
|
|
1641
1716
|
labels: n
|
|
1642
|
-
} =
|
|
1643
|
-
return /* @__PURE__ */
|
|
1717
|
+
} = de(), r = t ? n[t] ?? t : null;
|
|
1718
|
+
return /* @__PURE__ */ s("span", { ...l(k.span, r ? Y.value : Y.placeholder), children: r ?? e });
|
|
1644
1719
|
}
|
|
1645
|
-
function
|
|
1646
|
-
children:
|
|
1720
|
+
function Lt({
|
|
1721
|
+
children: e
|
|
1647
1722
|
}) {
|
|
1648
|
-
return /* @__PURE__ */
|
|
1723
|
+
return /* @__PURE__ */ s("span", { ...l(k.span, Y.icon), children: e ?? /* @__PURE__ */ s("svg", { width: "12", height: "12", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: /* @__PURE__ */ s("path", { d: "M6 9l6 6 6-6" }) }) });
|
|
1649
1724
|
}
|
|
1650
|
-
function
|
|
1651
|
-
children:
|
|
1725
|
+
function Vt({
|
|
1726
|
+
children: e
|
|
1652
1727
|
}) {
|
|
1653
1728
|
const {
|
|
1654
|
-
open:
|
|
1729
|
+
open: t,
|
|
1655
1730
|
close: n,
|
|
1656
1731
|
listboxId: r
|
|
1657
|
-
} =
|
|
1658
|
-
return /* @__PURE__ */
|
|
1659
|
-
|
|
1660
|
-
/* @__PURE__ */
|
|
1732
|
+
} = de();
|
|
1733
|
+
return /* @__PURE__ */ z(D, { children: [
|
|
1734
|
+
t && /* @__PURE__ */ s("div", { ...l(k.div, Y.backdrop), onClick: n }),
|
|
1735
|
+
/* @__PURE__ */ s("div", { id: r, role: "listbox", "aria-hidden": !t, ...l(k.div, Y.popup, !t && Y.hidden), children: e })
|
|
1661
1736
|
] });
|
|
1662
1737
|
}
|
|
1663
|
-
function
|
|
1664
|
-
value:
|
|
1665
|
-
children:
|
|
1738
|
+
function At({
|
|
1739
|
+
value: e,
|
|
1740
|
+
children: t
|
|
1666
1741
|
}) {
|
|
1667
1742
|
const {
|
|
1668
1743
|
value: n,
|
|
1669
1744
|
setValue: r,
|
|
1670
|
-
close:
|
|
1745
|
+
close: o,
|
|
1671
1746
|
registerLabel: x,
|
|
1672
1747
|
highlightedId: i,
|
|
1673
1748
|
setHighlightedId: c,
|
|
1674
1749
|
registerItem: d
|
|
1675
|
-
} =
|
|
1676
|
-
return
|
|
1677
|
-
const
|
|
1678
|
-
if (!
|
|
1679
|
-
const m =
|
|
1680
|
-
m && x(
|
|
1681
|
-
}, [
|
|
1682
|
-
const
|
|
1683
|
-
if (
|
|
1684
|
-
return d(a,
|
|
1685
|
-
}, [a,
|
|
1686
|
-
r(
|
|
1687
|
-
}, onPointerEnter: () => c(a), ...l(k.div,
|
|
1750
|
+
} = de(), a = _(), g = w(null), u = n === e, v = i === a;
|
|
1751
|
+
return H(() => {
|
|
1752
|
+
const p = g.current;
|
|
1753
|
+
if (!p) return;
|
|
1754
|
+
const m = p.textContent;
|
|
1755
|
+
m && x(e, m);
|
|
1756
|
+
}, [e, x]), H(() => {
|
|
1757
|
+
const p = g.current;
|
|
1758
|
+
if (p)
|
|
1759
|
+
return d(a, e, p);
|
|
1760
|
+
}, [a, e, d]), /* @__PURE__ */ s("div", { ref: g, id: a, role: "option", "aria-selected": u, onClick: () => {
|
|
1761
|
+
r(e), o();
|
|
1762
|
+
}, onPointerEnter: () => c(a), ...l(k.div, Y.item, u && Y.itemSelected, v && Y.itemHighlighted), children: t });
|
|
1688
1763
|
}
|
|
1689
|
-
function
|
|
1690
|
-
children:
|
|
1764
|
+
function Nt({
|
|
1765
|
+
children: e
|
|
1691
1766
|
}) {
|
|
1692
|
-
return /* @__PURE__ */
|
|
1693
|
-
}
|
|
1694
|
-
const
|
|
1695
|
-
Root:
|
|
1696
|
-
Trigger:
|
|
1697
|
-
Value:
|
|
1698
|
-
Icon:
|
|
1699
|
-
Popup:
|
|
1700
|
-
Item:
|
|
1701
|
-
ItemText:
|
|
1702
|
-
},
|
|
1767
|
+
return /* @__PURE__ */ s("span", { ...l(k.span), children: e });
|
|
1768
|
+
}
|
|
1769
|
+
const On = {
|
|
1770
|
+
Root: Gt,
|
|
1771
|
+
Trigger: Tt,
|
|
1772
|
+
Value: Et,
|
|
1773
|
+
Icon: Lt,
|
|
1774
|
+
Popup: Vt,
|
|
1775
|
+
Item: At,
|
|
1776
|
+
ItemText: Nt
|
|
1777
|
+
}, U = {
|
|
1703
1778
|
root: {
|
|
1704
1779
|
k1xSpc: "x78zum5",
|
|
1705
1780
|
kXwgrk: "xdt5ytf",
|
|
@@ -1778,83 +1853,83 @@ const An = {
|
|
|
1778
1853
|
k63SB2: "x9n8r49",
|
|
1779
1854
|
$$css: !0
|
|
1780
1855
|
}
|
|
1781
|
-
},
|
|
1782
|
-
function
|
|
1783
|
-
const
|
|
1784
|
-
if (!
|
|
1785
|
-
return
|
|
1786
|
-
}
|
|
1787
|
-
function
|
|
1788
|
-
children:
|
|
1789
|
-
value:
|
|
1856
|
+
}, Ne = R(null);
|
|
1857
|
+
function Oe() {
|
|
1858
|
+
const e = O(Ne);
|
|
1859
|
+
if (!e) throw new Error("SideNav compound components must be used within SideNav.Root");
|
|
1860
|
+
return e;
|
|
1861
|
+
}
|
|
1862
|
+
function Ot({
|
|
1863
|
+
children: e,
|
|
1864
|
+
value: t,
|
|
1790
1865
|
defaultValue: n,
|
|
1791
1866
|
onValueChange: r
|
|
1792
1867
|
}) {
|
|
1793
|
-
const [
|
|
1868
|
+
const [o, x] = be(t, n ?? null, r ? (u) => {
|
|
1794
1869
|
u !== null && r(u);
|
|
1795
|
-
} : void 0), [i, c] =
|
|
1870
|
+
} : void 0), [i, c] = G(/* @__PURE__ */ new Set()), d = w([]), a = W((u) => {
|
|
1796
1871
|
c((v) => {
|
|
1797
1872
|
const S = new Set(v);
|
|
1798
1873
|
return S.has(u) ? S.delete(u) : S.add(u), S;
|
|
1799
1874
|
});
|
|
1800
|
-
}, []), g =
|
|
1875
|
+
}, []), g = W((u) => (d.current.includes(u) || d.current.push(u), () => {
|
|
1801
1876
|
d.current = d.current.filter((v) => v !== u);
|
|
1802
1877
|
}), []);
|
|
1803
|
-
return
|
|
1804
|
-
|
|
1805
|
-
}, [
|
|
1806
|
-
activeValue:
|
|
1878
|
+
return H(() => {
|
|
1879
|
+
o && c((u) => u);
|
|
1880
|
+
}, [o]), /* @__PURE__ */ s(Ne.Provider, { value: {
|
|
1881
|
+
activeValue: o,
|
|
1807
1882
|
onSelect: x,
|
|
1808
1883
|
expandedGroups: i,
|
|
1809
1884
|
toggleGroup: a,
|
|
1810
1885
|
registerItem: g,
|
|
1811
1886
|
orderRef: d
|
|
1812
|
-
}, children: /* @__PURE__ */
|
|
1887
|
+
}, children: /* @__PURE__ */ s("nav", { role: "navigation", ...l(k.nav, U.root), children: e }) });
|
|
1813
1888
|
}
|
|
1814
|
-
function
|
|
1815
|
-
children:
|
|
1816
|
-
label:
|
|
1889
|
+
function Bt({
|
|
1890
|
+
children: e,
|
|
1891
|
+
label: t,
|
|
1817
1892
|
groupKey: n,
|
|
1818
1893
|
defaultExpanded: r
|
|
1819
1894
|
}) {
|
|
1820
|
-
const
|
|
1895
|
+
const o = n ?? t, {
|
|
1821
1896
|
expandedGroups: x,
|
|
1822
1897
|
toggleGroup: i,
|
|
1823
1898
|
activeValue: c
|
|
1824
|
-
} =
|
|
1825
|
-
|
|
1826
|
-
if (!c || x.has(
|
|
1899
|
+
} = Oe(), d = x.has(o), a = w(null);
|
|
1900
|
+
H(() => {
|
|
1901
|
+
if (!c || x.has(o)) return;
|
|
1827
1902
|
const u = a.current;
|
|
1828
1903
|
if (!u) return;
|
|
1829
|
-
u.querySelector(`[data-nav-value="${c}"]`) && i(
|
|
1830
|
-
}, [c,
|
|
1831
|
-
r && !x.has(
|
|
1904
|
+
u.querySelector(`[data-nav-value="${c}"]`) && i(o);
|
|
1905
|
+
}, [c, o, x, i]), H(() => {
|
|
1906
|
+
r && !x.has(o) && i(o);
|
|
1832
1907
|
}, []);
|
|
1833
1908
|
const g = !c || !a.current ? !1 : !!a.current.querySelector(`[data-nav-value="${c}"]`);
|
|
1834
|
-
return /* @__PURE__ */
|
|
1835
|
-
/* @__PURE__ */
|
|
1836
|
-
/* @__PURE__ */
|
|
1837
|
-
|
|
1909
|
+
return /* @__PURE__ */ z("div", { ref: a, ...l(k.div, U.group), children: [
|
|
1910
|
+
/* @__PURE__ */ z("button", { type: "button", onClick: () => i(o), ...l(k.button, U.groupTrigger, g && U.groupTriggerActive), "aria-expanded": d, children: [
|
|
1911
|
+
/* @__PURE__ */ s("span", { ...l(k.span, U.chevron, d && U.chevronOpen), children: /* @__PURE__ */ s("svg", { width: 10, height: 10, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2.5, strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ s("path", { d: "M9 18l6-6-6-6" }) }) }),
|
|
1912
|
+
t
|
|
1838
1913
|
] }),
|
|
1839
|
-
d &&
|
|
1914
|
+
d && e
|
|
1840
1915
|
] });
|
|
1841
1916
|
}
|
|
1842
|
-
function
|
|
1843
|
-
value:
|
|
1844
|
-
children:
|
|
1917
|
+
function Dt({
|
|
1918
|
+
value: e,
|
|
1919
|
+
children: t
|
|
1845
1920
|
}) {
|
|
1846
1921
|
const {
|
|
1847
1922
|
activeValue: n,
|
|
1848
1923
|
onSelect: r,
|
|
1849
|
-
registerItem:
|
|
1850
|
-
} =
|
|
1851
|
-
return
|
|
1852
|
-
}
|
|
1853
|
-
const
|
|
1854
|
-
Root:
|
|
1855
|
-
Group:
|
|
1856
|
-
Item:
|
|
1857
|
-
},
|
|
1924
|
+
registerItem: o
|
|
1925
|
+
} = Oe(), x = n === e;
|
|
1926
|
+
return H(() => o(e), [e, o]), /* @__PURE__ */ s("button", { type: "button", "data-nav-value": e, onClick: () => r(e), ...l(k.button, U.item, x && U.itemActive), "aria-current": x ? "page" : void 0, children: t });
|
|
1927
|
+
}
|
|
1928
|
+
const Bn = {
|
|
1929
|
+
Root: Ot,
|
|
1930
|
+
Group: Bt,
|
|
1931
|
+
Item: Dt
|
|
1932
|
+
}, se = {
|
|
1858
1933
|
root: {
|
|
1859
1934
|
k1xSpc: "x3nfvp2",
|
|
1860
1935
|
kGNEyG: "x6s0dn4",
|
|
@@ -1898,21 +1973,21 @@ const Vn = {
|
|
|
1898
1973
|
kMcinP: "xzpqnlu",
|
|
1899
1974
|
$$css: !0
|
|
1900
1975
|
}
|
|
1901
|
-
},
|
|
1902
|
-
sm:
|
|
1903
|
-
md:
|
|
1904
|
-
lg:
|
|
1976
|
+
}, Ct = {
|
|
1977
|
+
sm: se.sm,
|
|
1978
|
+
md: se.md,
|
|
1979
|
+
lg: se.lg
|
|
1905
1980
|
};
|
|
1906
|
-
function
|
|
1907
|
-
size:
|
|
1908
|
-
label:
|
|
1981
|
+
function Dn({
|
|
1982
|
+
size: e = "md",
|
|
1983
|
+
label: t = "Loading"
|
|
1909
1984
|
}) {
|
|
1910
|
-
return /* @__PURE__ */
|
|
1911
|
-
/* @__PURE__ */
|
|
1912
|
-
/* @__PURE__ */
|
|
1985
|
+
return /* @__PURE__ */ z("div", { role: "status", ...l(k.div, se.root), children: [
|
|
1986
|
+
/* @__PURE__ */ s("div", { ...l(k.div, se.spinner, Ct[e]), "aria-hidden": !0 }),
|
|
1987
|
+
/* @__PURE__ */ s("span", { ...l(k.span, se.srOnly), children: t })
|
|
1913
1988
|
] });
|
|
1914
1989
|
}
|
|
1915
|
-
const
|
|
1990
|
+
const ze = {
|
|
1916
1991
|
root: {
|
|
1917
1992
|
k1xSpc: "x3nfvp2",
|
|
1918
1993
|
kGNEyG: "x6s0dn4",
|
|
@@ -1932,44 +2007,26 @@ const Mt = {
|
|
|
1932
2007
|
kMwMTN: "x1r3dmx3",
|
|
1933
2008
|
$$css: !0
|
|
1934
2009
|
},
|
|
2010
|
+
info: {
|
|
2011
|
+
kMwMTN: "x17v5lin",
|
|
2012
|
+
$$css: !0
|
|
2013
|
+
},
|
|
1935
2014
|
muted: {
|
|
1936
2015
|
kMwMTN: "x19e7f62",
|
|
1937
2016
|
$$css: !0
|
|
1938
2017
|
}
|
|
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" })
|
|
1944
|
-
] }),
|
|
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" })
|
|
1948
|
-
] }),
|
|
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" })
|
|
1952
|
-
] }),
|
|
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" })
|
|
1956
|
-
] }),
|
|
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" })
|
|
1960
|
-
] })
|
|
1961
2018
|
};
|
|
1962
|
-
function
|
|
1963
|
-
name:
|
|
1964
|
-
size:
|
|
2019
|
+
function Cn({
|
|
2020
|
+
name: e,
|
|
2021
|
+
size: t = 48,
|
|
1965
2022
|
variant: n = "muted"
|
|
1966
2023
|
}) {
|
|
1967
|
-
return /* @__PURE__ */
|
|
2024
|
+
return /* @__PURE__ */ s("div", { ...l(k.div, ze.root, ze[n]), children: /* @__PURE__ */ s($e, { name: e, size: t }) });
|
|
1968
2025
|
}
|
|
1969
|
-
const
|
|
2026
|
+
const Rt = {
|
|
1970
2027
|
kumcoG: "xqketvx",
|
|
1971
2028
|
$$css: !0
|
|
1972
|
-
},
|
|
2029
|
+
}, V = {
|
|
1973
2030
|
root: {
|
|
1974
2031
|
kMzoRj: "xmkeg23",
|
|
1975
2032
|
ksu8eU: "x1y0btm7",
|
|
@@ -2045,91 +2102,91 @@ const Be = {
|
|
|
2045
2102
|
kWqL5O: "xgfja2r",
|
|
2046
2103
|
$$css: !0
|
|
2047
2104
|
},
|
|
2048
|
-
gridColumns: (
|
|
2049
|
-
"--x-gridTemplateColumns": `repeat(${
|
|
2105
|
+
gridColumns: (e) => [Rt, {
|
|
2106
|
+
"--x-gridTemplateColumns": `repeat(${e}, 1fr)` != null ? `repeat(${e}, 1fr)` : void 0
|
|
2050
2107
|
}]
|
|
2051
|
-
},
|
|
2052
|
-
function
|
|
2053
|
-
const
|
|
2054
|
-
if (!
|
|
2055
|
-
return
|
|
2056
|
-
}
|
|
2057
|
-
const
|
|
2058
|
-
function
|
|
2059
|
-
children:
|
|
2060
|
-
variant:
|
|
2108
|
+
}, Be = R(null);
|
|
2109
|
+
function ge() {
|
|
2110
|
+
const e = O(Be);
|
|
2111
|
+
if (!e) throw new Error("Table compound components must be used within Table.Root");
|
|
2112
|
+
return e;
|
|
2113
|
+
}
|
|
2114
|
+
const ye = R(!1);
|
|
2115
|
+
function Xt({
|
|
2116
|
+
children: e,
|
|
2117
|
+
variant: t = "default",
|
|
2061
2118
|
size: n = "md",
|
|
2062
2119
|
columns: r
|
|
2063
2120
|
}) {
|
|
2064
|
-
return /* @__PURE__ */
|
|
2065
|
-
variant:
|
|
2121
|
+
return /* @__PURE__ */ s(Be.Provider, { value: {
|
|
2122
|
+
variant: t,
|
|
2066
2123
|
size: n,
|
|
2067
2124
|
columns: r,
|
|
2068
2125
|
isHeader: !1
|
|
2069
|
-
}, children: /* @__PURE__ */
|
|
2126
|
+
}, children: /* @__PURE__ */ s("div", { role: "table", ...l(k.div, V.root), children: e }) });
|
|
2070
2127
|
}
|
|
2071
|
-
function
|
|
2072
|
-
children:
|
|
2128
|
+
function Yt({
|
|
2129
|
+
children: e
|
|
2073
2130
|
}) {
|
|
2074
|
-
return /* @__PURE__ */
|
|
2131
|
+
return /* @__PURE__ */ s(ye.Provider, { value: !0, children: /* @__PURE__ */ s("div", { role: "rowgroup", ...l(k.div, V.header), children: e }) });
|
|
2075
2132
|
}
|
|
2076
|
-
function
|
|
2077
|
-
children:
|
|
2133
|
+
function Jt({
|
|
2134
|
+
children: e
|
|
2078
2135
|
}) {
|
|
2079
2136
|
const {
|
|
2080
|
-
variant:
|
|
2081
|
-
} =
|
|
2082
|
-
return /* @__PURE__ */
|
|
2137
|
+
variant: t
|
|
2138
|
+
} = ge(), n = qe.toArray(e);
|
|
2139
|
+
return /* @__PURE__ */ s(ye.Provider, { value: !1, children: /* @__PURE__ */ s("div", { role: "rowgroup", ...l(k.div), children: n.map((r, o) => t === "striped" ? /* @__PURE__ */ s(De.Provider, { value: o, children: r }, o) : r) }) });
|
|
2083
2140
|
}
|
|
2084
|
-
const
|
|
2085
|
-
function
|
|
2086
|
-
children:
|
|
2141
|
+
const De = R(-1);
|
|
2142
|
+
function Pt({
|
|
2143
|
+
children: e
|
|
2087
2144
|
}) {
|
|
2088
2145
|
const {
|
|
2089
|
-
variant:
|
|
2146
|
+
variant: t,
|
|
2090
2147
|
columns: n
|
|
2091
|
-
} =
|
|
2092
|
-
return /* @__PURE__ */
|
|
2148
|
+
} = ge(), r = O(ye), o = O(De), x = o >= 0 && o % 2 === 1, i = qe.toArray(e);
|
|
2149
|
+
return /* @__PURE__ */ s("div", { role: "row", ...l(k.div, V.row, V.gridColumns(n), !r && V.bodyRow, !r && t === "striped" && x && V.stripedEven), children: t === "bordered" ? i.map((c, d) => /* @__PURE__ */ s(we.Provider, { value: {
|
|
2093
2150
|
index: d,
|
|
2094
2151
|
total: i.length
|
|
2095
|
-
}, children: c }, d)) :
|
|
2152
|
+
}, children: c }, d)) : e });
|
|
2096
2153
|
}
|
|
2097
|
-
const
|
|
2154
|
+
const we = R({
|
|
2098
2155
|
index: 0,
|
|
2099
2156
|
total: 0
|
|
2100
2157
|
});
|
|
2101
|
-
function
|
|
2102
|
-
children:
|
|
2158
|
+
function Ft({
|
|
2159
|
+
children: e
|
|
2103
2160
|
}) {
|
|
2104
2161
|
const {
|
|
2105
|
-
size:
|
|
2162
|
+
size: t,
|
|
2106
2163
|
variant: n
|
|
2107
|
-
} =
|
|
2164
|
+
} = ge(), {
|
|
2108
2165
|
index: r,
|
|
2109
|
-
total:
|
|
2110
|
-
} =
|
|
2111
|
-
return /* @__PURE__ */
|
|
2166
|
+
total: o
|
|
2167
|
+
} = O(we), x = n === "bordered" && r === o - 1;
|
|
2168
|
+
return /* @__PURE__ */ s("div", { role: "columnheader", ...l(k.div, V.headerCell, t === "sm" ? V.cellSm : V.cellMd, n === "bordered" && V.borderedCell, x && V.borderedCellLast), children: e });
|
|
2112
2169
|
}
|
|
2113
|
-
function
|
|
2114
|
-
children:
|
|
2170
|
+
function Qt({
|
|
2171
|
+
children: e
|
|
2115
2172
|
}) {
|
|
2116
2173
|
const {
|
|
2117
|
-
size:
|
|
2174
|
+
size: t,
|
|
2118
2175
|
variant: n
|
|
2119
|
-
} =
|
|
2176
|
+
} = ge(), {
|
|
2120
2177
|
index: r,
|
|
2121
|
-
total:
|
|
2122
|
-
} =
|
|
2123
|
-
return /* @__PURE__ */
|
|
2178
|
+
total: o
|
|
2179
|
+
} = O(we), x = n === "bordered" && r === o - 1;
|
|
2180
|
+
return /* @__PURE__ */ s("div", { role: "cell", ...l(k.div, V.cell, t === "sm" ? V.cellSm : V.cellMd, n === "bordered" && V.borderedCell, x && V.borderedCellLast), children: e });
|
|
2124
2181
|
}
|
|
2125
|
-
const
|
|
2126
|
-
Root:
|
|
2127
|
-
Header:
|
|
2128
|
-
Body:
|
|
2129
|
-
Row:
|
|
2130
|
-
HeaderCell:
|
|
2131
|
-
Cell:
|
|
2132
|
-
},
|
|
2182
|
+
const Rn = {
|
|
2183
|
+
Root: Xt,
|
|
2184
|
+
Header: Yt,
|
|
2185
|
+
Body: Jt,
|
|
2186
|
+
Row: Pt,
|
|
2187
|
+
HeaderCell: Ft,
|
|
2188
|
+
Cell: Qt
|
|
2189
|
+
}, X = {
|
|
2133
2190
|
root: {
|
|
2134
2191
|
k1xSpc: "x78zum5",
|
|
2135
2192
|
kXwgrk: "xdt5ytf",
|
|
@@ -2217,25 +2274,25 @@ const Bn = {
|
|
|
2217
2274
|
kE3dHu: "x107tsa6",
|
|
2218
2275
|
$$css: !0
|
|
2219
2276
|
}
|
|
2220
|
-
},
|
|
2221
|
-
function
|
|
2222
|
-
const
|
|
2223
|
-
if (!
|
|
2224
|
-
return
|
|
2277
|
+
}, Ce = R(null);
|
|
2278
|
+
function Se() {
|
|
2279
|
+
const e = O(Ce);
|
|
2280
|
+
if (!e) throw new Error("Tabs compound components must be used within Tabs.Root");
|
|
2281
|
+
return e;
|
|
2225
2282
|
}
|
|
2226
|
-
function
|
|
2227
|
-
value:
|
|
2228
|
-
defaultValue:
|
|
2283
|
+
function Kt({
|
|
2284
|
+
value: e,
|
|
2285
|
+
defaultValue: t,
|
|
2229
2286
|
onValueChange: n,
|
|
2230
2287
|
orientation: r = "horizontal"
|
|
2231
2288
|
}) {
|
|
2232
|
-
const [
|
|
2289
|
+
const [o, x] = be(e, t ?? null, n ? (a) => {
|
|
2233
2290
|
a !== null && n(a);
|
|
2234
|
-
} : void 0), i = w(/* @__PURE__ */ new Map()), c = w([]), d =
|
|
2291
|
+
} : 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), () => {
|
|
2235
2292
|
i.current.delete(a), c.current = c.current.filter((u) => u !== a);
|
|
2236
2293
|
}), []);
|
|
2237
2294
|
return {
|
|
2238
|
-
activeValue:
|
|
2295
|
+
activeValue: o,
|
|
2239
2296
|
onSelect: x,
|
|
2240
2297
|
orientation: r,
|
|
2241
2298
|
registerTab: d,
|
|
@@ -2243,45 +2300,45 @@ function Pe({
|
|
|
2243
2300
|
orderRef: c
|
|
2244
2301
|
};
|
|
2245
2302
|
}
|
|
2246
|
-
function
|
|
2247
|
-
children:
|
|
2248
|
-
value:
|
|
2303
|
+
function Ut({
|
|
2304
|
+
children: e,
|
|
2305
|
+
value: t,
|
|
2249
2306
|
defaultValue: n,
|
|
2250
2307
|
onValueChange: r,
|
|
2251
|
-
orientation:
|
|
2308
|
+
orientation: o = "horizontal"
|
|
2252
2309
|
}) {
|
|
2253
|
-
const x =
|
|
2254
|
-
value:
|
|
2310
|
+
const x = Kt({
|
|
2311
|
+
value: t,
|
|
2255
2312
|
defaultValue: n,
|
|
2256
2313
|
onValueChange: r,
|
|
2257
|
-
orientation:
|
|
2314
|
+
orientation: o
|
|
2258
2315
|
});
|
|
2259
|
-
return /* @__PURE__ */
|
|
2316
|
+
return /* @__PURE__ */ s(Ce.Provider, { value: x, children: /* @__PURE__ */ s("div", { ...l(k.div, X.root, o === "vertical" && X.rootVertical), children: e }) });
|
|
2260
2317
|
}
|
|
2261
|
-
function
|
|
2262
|
-
children:
|
|
2318
|
+
function _t({
|
|
2319
|
+
children: e
|
|
2263
2320
|
}) {
|
|
2264
2321
|
const {
|
|
2265
|
-
orientation:
|
|
2322
|
+
orientation: t,
|
|
2266
2323
|
activeValue: n,
|
|
2267
2324
|
onSelect: r,
|
|
2268
|
-
tabsRef:
|
|
2325
|
+
tabsRef: o,
|
|
2269
2326
|
orderRef: x
|
|
2270
|
-
} =
|
|
2271
|
-
return
|
|
2327
|
+
} = Se(), i = w(null);
|
|
2328
|
+
return H(() => {
|
|
2272
2329
|
const c = i.current;
|
|
2273
2330
|
if (!c) return;
|
|
2274
2331
|
function d(a) {
|
|
2275
|
-
const g = x.current, u =
|
|
2332
|
+
const g = x.current, u = o.current;
|
|
2276
2333
|
if (g.length === 0) return;
|
|
2277
|
-
const v = this, S =
|
|
2334
|
+
const v = this, S = t === "horizontal" ? "ArrowLeft" : "ArrowUp", p = t === "horizontal" ? "ArrowRight" : "ArrowDown";
|
|
2278
2335
|
let m = null;
|
|
2279
2336
|
switch (a.key) {
|
|
2280
|
-
case
|
|
2337
|
+
case p: {
|
|
2281
2338
|
a.preventDefault();
|
|
2282
2339
|
const f = n ? g.indexOf(n) : -1;
|
|
2283
2340
|
for (let $ = 1; $ <= g.length; $++) {
|
|
2284
|
-
const
|
|
2341
|
+
const h = (f + $) % g.length, b = g[h];
|
|
2285
2342
|
if (!u.get(b)) {
|
|
2286
2343
|
m = b;
|
|
2287
2344
|
break;
|
|
@@ -2293,7 +2350,7 @@ function Qe({
|
|
|
2293
2350
|
a.preventDefault();
|
|
2294
2351
|
const f = n ? g.indexOf(n) : 0;
|
|
2295
2352
|
for (let $ = 1; $ <= g.length; $++) {
|
|
2296
|
-
const
|
|
2353
|
+
const h = (f - $ + g.length) % g.length, b = g[h];
|
|
2297
2354
|
if (!u.get(b)) {
|
|
2298
2355
|
m = b;
|
|
2299
2356
|
break;
|
|
@@ -2323,39 +2380,39 @@ function Qe({
|
|
|
2323
2380
|
m && (r(m), v.querySelector(`[data-tab-value="${m}"]`)?.focus());
|
|
2324
2381
|
}
|
|
2325
2382
|
return c.addEventListener("keydown", d), () => c.removeEventListener("keydown", d);
|
|
2326
|
-
}, [
|
|
2383
|
+
}, [t, n, r, o, x]), /* @__PURE__ */ s("div", { ref: i, role: "tablist", "aria-orientation": t, ...l(k.div, X.list, t === "vertical" && X.listVertical), children: e });
|
|
2327
2384
|
}
|
|
2328
|
-
function
|
|
2329
|
-
value:
|
|
2330
|
-
disabled:
|
|
2385
|
+
function Zt({
|
|
2386
|
+
value: e,
|
|
2387
|
+
disabled: t = !1,
|
|
2331
2388
|
children: n
|
|
2332
2389
|
}) {
|
|
2333
2390
|
const {
|
|
2334
2391
|
activeValue: r,
|
|
2335
|
-
onSelect:
|
|
2392
|
+
onSelect: o,
|
|
2336
2393
|
orientation: x,
|
|
2337
2394
|
registerTab: i
|
|
2338
|
-
} =
|
|
2339
|
-
return
|
|
2340
|
-
|
|
2341
|
-
}, ...l(k.button,
|
|
2395
|
+
} = Se(), c = r === e, d = _(), a = `${d}-panel`;
|
|
2396
|
+
return H(() => i(e, t), [e, t, i]), /* @__PURE__ */ s("button", { type: "button", role: "tab", id: d, "aria-selected": c, "aria-controls": a, "aria-disabled": t || void 0, "data-tab-value": e, tabIndex: c ? 0 : -1, onClick: () => {
|
|
2397
|
+
t || o(e);
|
|
2398
|
+
}, ...l(k.button, X.tab, x === "vertical" && X.tabVertical, c && (x === "vertical" ? X.tabActiveVertical : X.tabActiveHorizontal), t && X.tabDisabled), children: n });
|
|
2342
2399
|
}
|
|
2343
|
-
function
|
|
2344
|
-
value:
|
|
2345
|
-
children:
|
|
2400
|
+
function en({
|
|
2401
|
+
value: e,
|
|
2402
|
+
children: t
|
|
2346
2403
|
}) {
|
|
2347
2404
|
const {
|
|
2348
2405
|
activeValue: n,
|
|
2349
2406
|
orientation: r
|
|
2350
|
-
} =
|
|
2351
|
-
return n !==
|
|
2352
|
-
}
|
|
2353
|
-
const
|
|
2354
|
-
Root:
|
|
2355
|
-
List:
|
|
2356
|
-
Tab:
|
|
2357
|
-
Panel:
|
|
2358
|
-
},
|
|
2407
|
+
} = Se();
|
|
2408
|
+
return n !== e ? null : /* @__PURE__ */ s("div", { role: "tabpanel", ...l(k.div, X.panel, r === "vertical" && X.panelVertical), children: t });
|
|
2409
|
+
}
|
|
2410
|
+
const Xn = {
|
|
2411
|
+
Root: Ut,
|
|
2412
|
+
List: _t,
|
|
2413
|
+
Tab: Zt,
|
|
2414
|
+
Panel: en
|
|
2415
|
+
}, Ie = {
|
|
2359
2416
|
base: {
|
|
2360
2417
|
kzqmXN: "xh8yej3",
|
|
2361
2418
|
kLKAdn: "x1y6gaq4",
|
|
@@ -2389,21 +2446,21 @@ const Dn = {
|
|
|
2389
2446
|
$$css: !0
|
|
2390
2447
|
}
|
|
2391
2448
|
};
|
|
2392
|
-
function
|
|
2393
|
-
variant:
|
|
2394
|
-
name:
|
|
2449
|
+
function Yn({
|
|
2450
|
+
variant: e = "default",
|
|
2451
|
+
name: t,
|
|
2395
2452
|
placeholder: n,
|
|
2396
2453
|
required: r,
|
|
2397
|
-
rows:
|
|
2454
|
+
rows: o = 3,
|
|
2398
2455
|
value: x,
|
|
2399
2456
|
defaultValue: i,
|
|
2400
2457
|
disabled: c,
|
|
2401
2458
|
onChange: d
|
|
2402
2459
|
}) {
|
|
2403
|
-
const a =
|
|
2404
|
-
return /* @__PURE__ */
|
|
2460
|
+
const a = ie();
|
|
2461
|
+
return /* @__PURE__ */ s("textarea", { id: a?.controlId, name: t, placeholder: n, required: r, rows: o, value: x, 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, ...l(k.textarea, Ie.base, Ie[e]), dir: "auto" });
|
|
2405
2462
|
}
|
|
2406
|
-
const
|
|
2463
|
+
const Jn = {
|
|
2407
2464
|
bg: "var(--bg-xqkwqtp)",
|
|
2408
2465
|
bgCard: "var(--bgCard-xj2l5r)",
|
|
2409
2466
|
bgCardHover: "var(--bgCardHover-xlxk7vw)",
|
|
@@ -2427,11 +2484,12 @@ const Rn = {
|
|
|
2427
2484
|
warningBg: "var(--warningBg-xtnxqss)",
|
|
2428
2485
|
warningBorder: "var(--warningBorder-x1ev2mr5)",
|
|
2429
2486
|
warningText: "var(--warningText-x1lgjghx)",
|
|
2487
|
+
info: "var(--info-x97ho0r)",
|
|
2430
2488
|
infoBg: "var(--infoBg-xho8jir)",
|
|
2431
2489
|
infoBorder: "var(--infoBorder-xnevk3x)",
|
|
2432
2490
|
infoText: "var(--infoText-x19pseus)",
|
|
2433
2491
|
__varGroupHash__: "xjvd03b"
|
|
2434
|
-
},
|
|
2492
|
+
}, Pn = {
|
|
2435
2493
|
xs: "var(--xs-xxfyjsd)",
|
|
2436
2494
|
sm: "var(--sm-xbh8y7f)",
|
|
2437
2495
|
ms: "var(--ms-x13y09zs)",
|
|
@@ -2441,13 +2499,13 @@ const Rn = {
|
|
|
2441
2499
|
xxl: "var(--xxl-xbe9eha)",
|
|
2442
2500
|
xxxl: "var(--xxxl-xroalp5)",
|
|
2443
2501
|
__varGroupHash__: "x6uc9q"
|
|
2444
|
-
},
|
|
2502
|
+
}, Fn = {
|
|
2445
2503
|
sm: "var(--sm-x1bhtfs5)",
|
|
2446
2504
|
md: "var(--md-xx2g89g)",
|
|
2447
2505
|
lg: "var(--lg-xwd56yl)",
|
|
2448
2506
|
full: "var(--full-x9vxdtd)",
|
|
2449
2507
|
__varGroupHash__: "xw3ffwm"
|
|
2450
|
-
},
|
|
2508
|
+
}, Qn = {
|
|
2451
2509
|
stackXs: "var(--stackXs-x1qfrfo2)",
|
|
2452
2510
|
stackSm: "var(--stackSm-x2rk1ut)",
|
|
2453
2511
|
stackMd: "var(--stackMd-xhblkt4)",
|
|
@@ -2461,7 +2519,7 @@ const Rn = {
|
|
|
2461
2519
|
containerMd: "var(--containerMd-x170dvin)",
|
|
2462
2520
|
containerLg: "var(--containerLg-x1n6aasq)",
|
|
2463
2521
|
__varGroupHash__: "x16nfoyr"
|
|
2464
|
-
},
|
|
2522
|
+
}, Kn = {
|
|
2465
2523
|
fontFamily: "var(--fontFamily-xvrmnat)",
|
|
2466
2524
|
fontFamilyMono: "var(--fontFamilyMono-x1bzqfky)",
|
|
2467
2525
|
fontSizeXs: "var(--fontSizeXs-x1w5m325)",
|
|
@@ -2476,7 +2534,7 @@ const Rn = {
|
|
|
2476
2534
|
fontWeightBold: "var(--fontWeightBold-x1pjkvwg)",
|
|
2477
2535
|
lineHeight: "var(--lineHeight-x1gubzd5)",
|
|
2478
2536
|
__varGroupHash__: "xs62swl"
|
|
2479
|
-
},
|
|
2537
|
+
}, Un = {
|
|
2480
2538
|
fontSize1: "var(--fontSize1-xx27tux)",
|
|
2481
2539
|
fontSize2: "var(--fontSize2-x5hag8h)",
|
|
2482
2540
|
fontSize3: "var(--fontSize3-x1mf6j39)",
|
|
@@ -2502,7 +2560,7 @@ const Rn = {
|
|
|
2502
2560
|
letterSpacingNormal: "var(--letterSpacingNormal-x1ih41v1)",
|
|
2503
2561
|
letterSpacingWide: "var(--letterSpacingWide-xt8z9rj)",
|
|
2504
2562
|
__varGroupHash__: "x4cj49w"
|
|
2505
|
-
},
|
|
2563
|
+
}, _n = {
|
|
2506
2564
|
bodySm: {
|
|
2507
2565
|
"fontFamily-kMv6JI": "fontFamily-xce2pww",
|
|
2508
2566
|
"fontSize-kGuDYH": "fontSize-x1hn3ytp",
|
|
@@ -2616,40 +2674,40 @@ const Rn = {
|
|
|
2616
2674
|
"letterSpacing-kb6lSQ": "letterSpacing-xql2p2a",
|
|
2617
2675
|
$$css: "tokens/type-presets.css.ts:104"
|
|
2618
2676
|
}
|
|
2619
|
-
},
|
|
2677
|
+
}, Zn = {
|
|
2620
2678
|
sm: "var(--sm-x17hhtln)",
|
|
2621
2679
|
md: "var(--md-x1oyt0aw)",
|
|
2622
2680
|
lg: "var(--lg-x1mxd62i)",
|
|
2623
2681
|
__varGroupHash__: "x13v825q"
|
|
2624
|
-
},
|
|
2625
|
-
xjvd03b: "
|
|
2682
|
+
}, tn = {
|
|
2683
|
+
xjvd03b: "xrtwk39 xjvd03b",
|
|
2626
2684
|
$$css: !0
|
|
2627
|
-
},
|
|
2685
|
+
}, nn = {
|
|
2628
2686
|
x13v825q: "xv9ibj0 x13v825q",
|
|
2629
2687
|
$$css: !0
|
|
2630
|
-
},
|
|
2631
|
-
xjvd03b: "
|
|
2688
|
+
}, rn = {
|
|
2689
|
+
xjvd03b: "xaveibd xjvd03b",
|
|
2632
2690
|
$$css: !0
|
|
2633
|
-
},
|
|
2691
|
+
}, sn = {
|
|
2634
2692
|
x13v825q: "x15e39jv x13v825q",
|
|
2635
2693
|
$$css: !0
|
|
2636
|
-
},
|
|
2637
|
-
light: [
|
|
2638
|
-
"high-contrast": [
|
|
2639
|
-
},
|
|
2694
|
+
}, on = {
|
|
2695
|
+
light: [tn, nn],
|
|
2696
|
+
"high-contrast": [rn, sn]
|
|
2697
|
+
}, cn = {
|
|
2640
2698
|
root: {
|
|
2641
2699
|
k1xSpc: "xjp7ctv",
|
|
2642
2700
|
$$css: !0
|
|
2643
2701
|
}
|
|
2644
2702
|
};
|
|
2645
|
-
function
|
|
2646
|
-
theme:
|
|
2647
|
-
children:
|
|
2703
|
+
function er({
|
|
2704
|
+
theme: e = "dark",
|
|
2705
|
+
children: t
|
|
2648
2706
|
}) {
|
|
2649
|
-
const n =
|
|
2650
|
-
return /* @__PURE__ */
|
|
2707
|
+
const n = on[e], r = [n?.[0], n?.[1], cn.root];
|
|
2708
|
+
return /* @__PURE__ */ s("div", { ...l(k.div, r), children: t });
|
|
2651
2709
|
}
|
|
2652
|
-
const
|
|
2710
|
+
const F = {
|
|
2653
2711
|
default: {
|
|
2654
2712
|
kMwMTN: "xg6mlj0",
|
|
2655
2713
|
$$css: !0
|
|
@@ -2708,29 +2766,29 @@ const P = {
|
|
|
2708
2766
|
khDVqt: "xuxw1ft",
|
|
2709
2767
|
$$css: !0
|
|
2710
2768
|
}
|
|
2711
|
-
},
|
|
2712
|
-
normal:
|
|
2713
|
-
medium:
|
|
2714
|
-
semibold:
|
|
2715
|
-
bold:
|
|
2716
|
-
},
|
|
2717
|
-
start:
|
|
2718
|
-
center:
|
|
2719
|
-
end:
|
|
2769
|
+
}, xn = {
|
|
2770
|
+
normal: F.weightNormal,
|
|
2771
|
+
medium: F.weightMedium,
|
|
2772
|
+
semibold: F.weightSemibold,
|
|
2773
|
+
bold: F.weightBold
|
|
2774
|
+
}, ln = {
|
|
2775
|
+
start: F.alignStart,
|
|
2776
|
+
center: F.alignCenter,
|
|
2777
|
+
end: F.alignEnd
|
|
2720
2778
|
};
|
|
2721
|
-
function
|
|
2722
|
-
variant:
|
|
2723
|
-
color:
|
|
2779
|
+
function tr({
|
|
2780
|
+
variant: e = "bodyMd",
|
|
2781
|
+
color: t = "default",
|
|
2724
2782
|
weight: n,
|
|
2725
2783
|
align: r,
|
|
2726
|
-
truncate:
|
|
2784
|
+
truncate: o,
|
|
2727
2785
|
as: x = "span",
|
|
2728
2786
|
children: i
|
|
2729
2787
|
}) {
|
|
2730
|
-
const c = [
|
|
2731
|
-
return x === "p" ? /* @__PURE__ */
|
|
2788
|
+
const c = [Ge[e], F[t], n && xn[n], r && ln[r], o && F.truncate];
|
|
2789
|
+
return x === "p" ? /* @__PURE__ */ s("p", { ...l(k.p, c), children: i }) : x === "div" ? /* @__PURE__ */ s("div", { ...l(k.div, c), children: i }) : /* @__PURE__ */ s("span", { ...l(k.span, c), children: i });
|
|
2732
2790
|
}
|
|
2733
|
-
const
|
|
2791
|
+
const fe = {
|
|
2734
2792
|
root: {
|
|
2735
2793
|
kVAEAm: "x1n2onr6",
|
|
2736
2794
|
k1xSpc: "x3nfvp2",
|
|
@@ -2785,49 +2843,49 @@ const ht = {
|
|
|
2785
2843
|
koQZXg: "xzhl4zu",
|
|
2786
2844
|
$$css: !0
|
|
2787
2845
|
}
|
|
2788
|
-
},
|
|
2789
|
-
function
|
|
2790
|
-
const
|
|
2791
|
-
if (!
|
|
2792
|
-
return
|
|
2793
|
-
}
|
|
2794
|
-
function
|
|
2795
|
-
children:
|
|
2796
|
-
content:
|
|
2846
|
+
}, Re = R(null);
|
|
2847
|
+
function kn() {
|
|
2848
|
+
const e = O(Re);
|
|
2849
|
+
if (!e) throw new Error("Tooltip compound components must be used within Tooltip.Root");
|
|
2850
|
+
return e;
|
|
2851
|
+
}
|
|
2852
|
+
function an({
|
|
2853
|
+
children: e,
|
|
2854
|
+
content: t,
|
|
2797
2855
|
placement: n = "top",
|
|
2798
2856
|
delay: r = 300
|
|
2799
2857
|
}) {
|
|
2800
|
-
const [
|
|
2858
|
+
const [o, x] = G(!1), i = _(), c = w(null), d = W(() => {
|
|
2801
2859
|
c.current && clearTimeout(c.current), c.current = setTimeout(() => x(!0), r);
|
|
2802
|
-
}, [r]), a =
|
|
2860
|
+
}, [r]), a = W(() => {
|
|
2803
2861
|
c.current && clearTimeout(c.current), c.current = null, x(!1);
|
|
2804
2862
|
}, []);
|
|
2805
|
-
return /* @__PURE__ */
|
|
2806
|
-
open:
|
|
2863
|
+
return /* @__PURE__ */ s(Re.Provider, { value: {
|
|
2864
|
+
open: o,
|
|
2807
2865
|
show: d,
|
|
2808
2866
|
hide: a,
|
|
2809
2867
|
tooltipId: i,
|
|
2810
2868
|
placement: n
|
|
2811
|
-
}, children: /* @__PURE__ */
|
|
2812
|
-
|
|
2813
|
-
|
|
2869
|
+
}, children: /* @__PURE__ */ z("div", { ...l(k.div, fe.root), children: [
|
|
2870
|
+
e,
|
|
2871
|
+
o && /* @__PURE__ */ s("div", { id: i, role: "tooltip", ...l(k.div, fe.popup, fe[n]), children: t })
|
|
2814
2872
|
] }) });
|
|
2815
2873
|
}
|
|
2816
|
-
function
|
|
2817
|
-
children:
|
|
2874
|
+
function un({
|
|
2875
|
+
children: e
|
|
2818
2876
|
}) {
|
|
2819
2877
|
const {
|
|
2820
|
-
open:
|
|
2878
|
+
open: t,
|
|
2821
2879
|
show: n,
|
|
2822
2880
|
hide: r,
|
|
2823
|
-
tooltipId:
|
|
2824
|
-
} =
|
|
2825
|
-
return /* @__PURE__ */
|
|
2826
|
-
}
|
|
2827
|
-
const
|
|
2828
|
-
Root:
|
|
2829
|
-
Trigger:
|
|
2830
|
-
},
|
|
2881
|
+
tooltipId: o
|
|
2882
|
+
} = kn();
|
|
2883
|
+
return /* @__PURE__ */ s("div", { onPointerEnter: n, onPointerLeave: r, onFocus: n, onBlur: r, "aria-describedby": t ? o : void 0, ...l(k.div), children: e });
|
|
2884
|
+
}
|
|
2885
|
+
const nr = {
|
|
2886
|
+
Root: an,
|
|
2887
|
+
Trigger: un
|
|
2888
|
+
}, N = {
|
|
2831
2889
|
base: {
|
|
2832
2890
|
k1xSpc: "x78zum5",
|
|
2833
2891
|
kXwgrk: "xdt5ytf",
|
|
@@ -2881,29 +2939,29 @@ const Zn = {
|
|
|
2881
2939
|
kOIVth: "x281kem",
|
|
2882
2940
|
$$css: !0
|
|
2883
2941
|
}
|
|
2884
|
-
},
|
|
2885
|
-
xs:
|
|
2886
|
-
sm:
|
|
2887
|
-
ms:
|
|
2888
|
-
md:
|
|
2889
|
-
lg:
|
|
2890
|
-
xl:
|
|
2891
|
-
xxl:
|
|
2892
|
-
xxxl:
|
|
2893
|
-
},
|
|
2894
|
-
start:
|
|
2895
|
-
center:
|
|
2896
|
-
end:
|
|
2897
|
-
stretch:
|
|
2942
|
+
}, dn = {
|
|
2943
|
+
xs: N.gapXs,
|
|
2944
|
+
sm: N.gapSm,
|
|
2945
|
+
ms: N.gapMs,
|
|
2946
|
+
md: N.gapMd,
|
|
2947
|
+
lg: N.gapLg,
|
|
2948
|
+
xl: N.gapXl,
|
|
2949
|
+
xxl: N.gapXxl,
|
|
2950
|
+
xxxl: N.gapXxxl
|
|
2951
|
+
}, gn = {
|
|
2952
|
+
start: N.alignStart,
|
|
2953
|
+
center: N.alignCenter,
|
|
2954
|
+
end: N.alignEnd,
|
|
2955
|
+
stretch: N.alignStretch
|
|
2898
2956
|
};
|
|
2899
|
-
function
|
|
2900
|
-
gap:
|
|
2901
|
-
align:
|
|
2957
|
+
function rr({
|
|
2958
|
+
gap: e = "md",
|
|
2959
|
+
align: t = "stretch",
|
|
2902
2960
|
children: n
|
|
2903
2961
|
}) {
|
|
2904
|
-
return /* @__PURE__ */
|
|
2962
|
+
return /* @__PURE__ */ s("div", { ...l(k.div, N.base, dn[e], gn[t]), children: n });
|
|
2905
2963
|
}
|
|
2906
|
-
const
|
|
2964
|
+
const q = {
|
|
2907
2965
|
base: {
|
|
2908
2966
|
k1xSpc: "x78zum5",
|
|
2909
2967
|
kXwgrk: "x1q0g3np",
|
|
@@ -2978,36 +3036,36 @@ const I = {
|
|
|
2978
3036
|
kOIVth: "x281kem",
|
|
2979
3037
|
$$css: !0
|
|
2980
3038
|
}
|
|
2981
|
-
},
|
|
2982
|
-
xs:
|
|
2983
|
-
sm:
|
|
2984
|
-
ms:
|
|
2985
|
-
md:
|
|
2986
|
-
lg:
|
|
2987
|
-
xl:
|
|
2988
|
-
xxl:
|
|
2989
|
-
xxxl:
|
|
2990
|
-
},
|
|
2991
|
-
start:
|
|
2992
|
-
center:
|
|
2993
|
-
end:
|
|
2994
|
-
baseline:
|
|
2995
|
-
stretch:
|
|
2996
|
-
},
|
|
2997
|
-
start:
|
|
2998
|
-
center:
|
|
2999
|
-
end:
|
|
3000
|
-
between:
|
|
3039
|
+
}, hn = {
|
|
3040
|
+
xs: q.gapXs,
|
|
3041
|
+
sm: q.gapSm,
|
|
3042
|
+
ms: q.gapMs,
|
|
3043
|
+
md: q.gapMd,
|
|
3044
|
+
lg: q.gapLg,
|
|
3045
|
+
xl: q.gapXl,
|
|
3046
|
+
xxl: q.gapXxl,
|
|
3047
|
+
xxxl: q.gapXxxl
|
|
3048
|
+
}, pn = {
|
|
3049
|
+
start: q.alignStart,
|
|
3050
|
+
center: q.alignCenter,
|
|
3051
|
+
end: q.alignEnd,
|
|
3052
|
+
baseline: q.alignBaseline,
|
|
3053
|
+
stretch: q.alignStretch
|
|
3054
|
+
}, fn = {
|
|
3055
|
+
start: q.justifyStart,
|
|
3056
|
+
center: q.justifyCenter,
|
|
3057
|
+
end: q.justifyEnd,
|
|
3058
|
+
between: q.justifyBetween
|
|
3001
3059
|
};
|
|
3002
|
-
function
|
|
3003
|
-
gap:
|
|
3004
|
-
align:
|
|
3060
|
+
function sr({
|
|
3061
|
+
gap: e = "sm",
|
|
3062
|
+
align: t = "center",
|
|
3005
3063
|
justify: n = "start",
|
|
3006
3064
|
children: r
|
|
3007
3065
|
}) {
|
|
3008
|
-
return /* @__PURE__ */
|
|
3066
|
+
return /* @__PURE__ */ s("div", { ...l(k.div, q.base, hn[e], pn[t], fn[n]), children: r });
|
|
3009
3067
|
}
|
|
3010
|
-
const
|
|
3068
|
+
const E = {
|
|
3011
3069
|
base: {
|
|
3012
3070
|
k1xSpc: "x78zum5",
|
|
3013
3071
|
kXwgrk: "x1q0g3np",
|
|
@@ -3074,37 +3132,37 @@ const T = {
|
|
|
3074
3132
|
kOIVth: "x281kem",
|
|
3075
3133
|
$$css: !0
|
|
3076
3134
|
}
|
|
3077
|
-
},
|
|
3078
|
-
xs:
|
|
3079
|
-
sm:
|
|
3080
|
-
ms:
|
|
3081
|
-
md:
|
|
3082
|
-
lg:
|
|
3083
|
-
xl:
|
|
3084
|
-
xxl:
|
|
3085
|
-
xxxl:
|
|
3086
|
-
},
|
|
3087
|
-
start:
|
|
3088
|
-
center:
|
|
3089
|
-
end:
|
|
3090
|
-
},
|
|
3091
|
-
start:
|
|
3092
|
-
center:
|
|
3093
|
-
end:
|
|
3094
|
-
between:
|
|
3135
|
+
}, $n = {
|
|
3136
|
+
xs: E.gapXs,
|
|
3137
|
+
sm: E.gapSm,
|
|
3138
|
+
ms: E.gapMs,
|
|
3139
|
+
md: E.gapMd,
|
|
3140
|
+
lg: E.gapLg,
|
|
3141
|
+
xl: E.gapXl,
|
|
3142
|
+
xxl: E.gapXxl,
|
|
3143
|
+
xxxl: E.gapXxxl
|
|
3144
|
+
}, vn = {
|
|
3145
|
+
start: E.alignStart,
|
|
3146
|
+
center: E.alignCenter,
|
|
3147
|
+
end: E.alignEnd
|
|
3148
|
+
}, mn = {
|
|
3149
|
+
start: E.justifyStart,
|
|
3150
|
+
center: E.justifyCenter,
|
|
3151
|
+
end: E.justifyEnd,
|
|
3152
|
+
between: E.justifyBetween
|
|
3095
3153
|
};
|
|
3096
|
-
function
|
|
3097
|
-
gap:
|
|
3098
|
-
align:
|
|
3154
|
+
function or({
|
|
3155
|
+
gap: e = "sm",
|
|
3156
|
+
align: t = "start",
|
|
3099
3157
|
justify: n = "start",
|
|
3100
3158
|
children: r
|
|
3101
3159
|
}) {
|
|
3102
|
-
return /* @__PURE__ */
|
|
3160
|
+
return /* @__PURE__ */ s("div", { ...l(k.div, E.base, $n[e], vn[t], mn[n]), children: r });
|
|
3103
3161
|
}
|
|
3104
|
-
const
|
|
3162
|
+
const bn = {
|
|
3105
3163
|
kumcoG: "xqketvx",
|
|
3106
3164
|
$$css: !0
|
|
3107
|
-
},
|
|
3165
|
+
}, L = {
|
|
3108
3166
|
base: {
|
|
3109
3167
|
k1xSpc: "xrvj5dj",
|
|
3110
3168
|
$$css: !0
|
|
@@ -3133,8 +3191,8 @@ const $n = {
|
|
|
3133
3191
|
kumcoG: "xu4o1vd",
|
|
3134
3192
|
$$css: !0
|
|
3135
3193
|
},
|
|
3136
|
-
autoFit: (
|
|
3137
|
-
"--x-gridTemplateColumns": `repeat(auto-fit, minmax(${
|
|
3194
|
+
autoFit: (e) => [bn, {
|
|
3195
|
+
"--x-gridTemplateColumns": `repeat(auto-fit, minmax(${e}, 1fr))` != null ? `repeat(auto-fit, minmax(${e}, 1fr))` : void 0
|
|
3138
3196
|
}],
|
|
3139
3197
|
gapXs: {
|
|
3140
3198
|
kOIVth: "xfrqhcj",
|
|
@@ -3168,38 +3226,38 @@ const $n = {
|
|
|
3168
3226
|
kOIVth: "x281kem",
|
|
3169
3227
|
$$css: !0
|
|
3170
3228
|
}
|
|
3171
|
-
},
|
|
3172
|
-
xs:
|
|
3173
|
-
sm:
|
|
3174
|
-
ms:
|
|
3175
|
-
md:
|
|
3176
|
-
lg:
|
|
3177
|
-
xl:
|
|
3178
|
-
xxl:
|
|
3179
|
-
xxxl:
|
|
3180
|
-
},
|
|
3181
|
-
1:
|
|
3182
|
-
2:
|
|
3183
|
-
3:
|
|
3184
|
-
4:
|
|
3185
|
-
5:
|
|
3186
|
-
6:
|
|
3229
|
+
}, yn = {
|
|
3230
|
+
xs: L.gapXs,
|
|
3231
|
+
sm: L.gapSm,
|
|
3232
|
+
ms: L.gapMs,
|
|
3233
|
+
md: L.gapMd,
|
|
3234
|
+
lg: L.gapLg,
|
|
3235
|
+
xl: L.gapXl,
|
|
3236
|
+
xxl: L.gapXxl,
|
|
3237
|
+
xxxl: L.gapXxxl
|
|
3238
|
+
}, wn = {
|
|
3239
|
+
1: L.col1,
|
|
3240
|
+
2: L.col2,
|
|
3241
|
+
3: L.col3,
|
|
3242
|
+
4: L.col4,
|
|
3243
|
+
5: L.col5,
|
|
3244
|
+
6: L.col6
|
|
3187
3245
|
};
|
|
3188
|
-
function
|
|
3189
|
-
gap:
|
|
3190
|
-
columns:
|
|
3246
|
+
function ir({
|
|
3247
|
+
gap: e = "md",
|
|
3248
|
+
columns: t,
|
|
3191
3249
|
minColumnWidth: n,
|
|
3192
3250
|
children: r
|
|
3193
3251
|
}) {
|
|
3194
|
-
const
|
|
3195
|
-
return /* @__PURE__ */
|
|
3252
|
+
const o = n ? L.autoFit(n) : t ? wn[t] : void 0;
|
|
3253
|
+
return /* @__PURE__ */ s("div", { ...l(k.div, L.base, yn[e], o), children: r });
|
|
3196
3254
|
}
|
|
3197
|
-
function
|
|
3255
|
+
function cr(e = {}) {
|
|
3198
3256
|
const {
|
|
3199
|
-
compactBelow:
|
|
3257
|
+
compactBelow: t = 480,
|
|
3200
3258
|
spaciousAbove: n = 768
|
|
3201
|
-
} =
|
|
3202
|
-
return
|
|
3259
|
+
} = e, r = w(null), [o, x] = G("default");
|
|
3260
|
+
return H(() => {
|
|
3203
3261
|
const i = r.current;
|
|
3204
3262
|
if (!i) return;
|
|
3205
3263
|
let c = null;
|
|
@@ -3208,57 +3266,58 @@ function sr(t = {}) {
|
|
|
3208
3266
|
const g = a[0];
|
|
3209
3267
|
if (!g) return;
|
|
3210
3268
|
const u = g.contentBoxSize?.[0]?.inlineSize ?? g.contentRect.width;
|
|
3211
|
-
u <
|
|
3269
|
+
u < t ? x("compact") : u >= n ? x("spacious") : x("default");
|
|
3212
3270
|
});
|
|
3213
3271
|
});
|
|
3214
3272
|
return d.observe(i), () => {
|
|
3215
3273
|
d.disconnect(), c !== null && cancelAnimationFrame(c);
|
|
3216
3274
|
};
|
|
3217
|
-
}, [
|
|
3275
|
+
}, [t, n]), {
|
|
3218
3276
|
ref: r,
|
|
3219
|
-
size:
|
|
3277
|
+
size: o
|
|
3220
3278
|
};
|
|
3221
3279
|
}
|
|
3222
3280
|
export {
|
|
3223
|
-
|
|
3224
|
-
|
|
3225
|
-
|
|
3226
|
-
|
|
3227
|
-
|
|
3228
|
-
|
|
3229
|
-
|
|
3230
|
-
|
|
3231
|
-
|
|
3232
|
-
|
|
3233
|
-
|
|
3234
|
-
|
|
3235
|
-
|
|
3236
|
-
|
|
3237
|
-
|
|
3238
|
-
|
|
3239
|
-
|
|
3240
|
-
|
|
3241
|
-
|
|
3242
|
-
|
|
3243
|
-
|
|
3244
|
-
|
|
3245
|
-
|
|
3246
|
-
|
|
3247
|
-
|
|
3248
|
-
|
|
3249
|
-
|
|
3250
|
-
|
|
3251
|
-
|
|
3252
|
-
|
|
3253
|
-
|
|
3254
|
-
|
|
3255
|
-
|
|
3256
|
-
|
|
3257
|
-
|
|
3258
|
-
|
|
3259
|
-
|
|
3260
|
-
|
|
3261
|
-
|
|
3262
|
-
|
|
3281
|
+
Mn as Alert,
|
|
3282
|
+
zn as Badge,
|
|
3283
|
+
In as Button,
|
|
3284
|
+
qn as Card,
|
|
3285
|
+
Wn as Checkbox,
|
|
3286
|
+
or as Cluster,
|
|
3287
|
+
Hn as EmptyState,
|
|
3288
|
+
Tn as Field,
|
|
3289
|
+
ir as Grid,
|
|
3290
|
+
Gn as Heading,
|
|
3291
|
+
$e as Icon,
|
|
3292
|
+
sr as Inline,
|
|
3293
|
+
En as Input,
|
|
3294
|
+
Ln as InputGroup,
|
|
3295
|
+
Vn as LinkButton,
|
|
3296
|
+
An as Menu,
|
|
3297
|
+
Nn as ScrollArea,
|
|
3298
|
+
On as Select,
|
|
3299
|
+
Bn as SideNav,
|
|
3300
|
+
Dn as Spinner,
|
|
3301
|
+
rr as Stack,
|
|
3302
|
+
Cn as StatusIcon,
|
|
3303
|
+
Rn as Table,
|
|
3304
|
+
Xn as Tabs,
|
|
3305
|
+
tr as Text,
|
|
3306
|
+
Yn as Textarea,
|
|
3307
|
+
er as ThemeProvider,
|
|
3308
|
+
nr as Tooltip,
|
|
3309
|
+
Jn as colors,
|
|
3310
|
+
sn as highContrastShadows,
|
|
3311
|
+
rn as highContrastTheme,
|
|
3312
|
+
Qn as layoutSpacing,
|
|
3313
|
+
nn as lightShadows,
|
|
3314
|
+
tn as lightTheme,
|
|
3315
|
+
Fn as radii,
|
|
3316
|
+
Zn as shadows,
|
|
3317
|
+
Pn as spacing,
|
|
3318
|
+
_n as typePresets,
|
|
3319
|
+
Un as typeScale,
|
|
3320
|
+
Kn as typography,
|
|
3321
|
+
cr as useContainerQuery
|
|
3263
3322
|
};
|
|
3264
3323
|
//# sourceMappingURL=index.js.map
|