@duro-app/ui 0.8.6 → 0.9.1
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 +989 -913
- 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 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 $e, 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,81 +7,81 @@ 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
|
|
14
|
+
var We = me.styleq = void 0, Xe = /* @__PURE__ */ new WeakMap(), Ye = "$$css";
|
|
15
|
+
function He(e) {
|
|
16
|
+
var t, n, s;
|
|
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 : 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
|
-
var
|
|
22
|
-
if (!(
|
|
23
|
-
if (Array.isArray(
|
|
24
|
-
for (var S = 0; S <
|
|
25
|
-
g.push(
|
|
21
|
+
var $ = g.pop();
|
|
22
|
+
if (!($ == null || $ === !1)) {
|
|
23
|
+
if (Array.isArray($)) {
|
|
24
|
+
for (var S = 0; S < $.length; S++)
|
|
25
|
+
g.push($[S]);
|
|
26
26
|
continue;
|
|
27
27
|
}
|
|
28
|
-
var
|
|
29
|
-
if (
|
|
28
|
+
var p = s != null ? s($) : $;
|
|
29
|
+
if (p.$$css != null) {
|
|
30
30
|
var m = "";
|
|
31
|
-
if (a != null && a.has(
|
|
32
|
-
var f = a.get(
|
|
33
|
-
f != null && (m = f[0], d = f[2],
|
|
31
|
+
if (a != null && a.has(p)) {
|
|
32
|
+
var f = a.get(p);
|
|
33
|
+
f != null && (m = f[0], d = f[2], l.push.apply(l, f[1]), a = f[3]);
|
|
34
34
|
} else {
|
|
35
|
-
var
|
|
36
|
-
for (var
|
|
37
|
-
var b = h
|
|
38
|
-
if (
|
|
39
|
-
var B = h
|
|
35
|
+
var v = [];
|
|
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 ?
|
|
43
|
+
typeof b == "string" || b === null ? l.includes(h) || (l.push(h), a != null && v.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, v, 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
|
|
57
|
-
|
|
55
|
+
for (var I in p) {
|
|
56
|
+
var M = p[I];
|
|
57
|
+
M !== void 0 && (l.includes(I) || (M != null && (c == null && (c = {}), y == null && (y = {}), y[I] = M), l.push(I), a = null));
|
|
58
58
|
}
|
|
59
59
|
y != null && (c = Object.assign(y, c));
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
|
-
var
|
|
64
|
-
return
|
|
63
|
+
var j = [i, c, d];
|
|
64
|
+
return j;
|
|
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
|
|
73
|
-
const [
|
|
74
|
-
if (
|
|
75
|
-
const
|
|
76
|
-
for (const c of
|
|
72
|
+
function x(...e) {
|
|
73
|
+
const [t, n, s] = Pe(e), o = {};
|
|
74
|
+
if (t != null && t !== "" && (o.className = t), n != null && (o.style = n), s != null && s !== "") {
|
|
75
|
+
const l = s.split(";"), i = {};
|
|
76
|
+
for (const c of l) {
|
|
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,90 @@ 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(N, { children: [
|
|
142
|
+
/* @__PURE__ */ r("circle", { cx: "12", cy: "12", r: "10" }),
|
|
143
|
+
/* @__PURE__ */ r("line", { x1: "15", y1: "9", x2: "9", y2: "15" }),
|
|
144
|
+
/* @__PURE__ */ r("line", { x1: "9", y1: "9", x2: "15", y2: "15" })
|
|
145
|
+
] }),
|
|
146
|
+
"check-circle": /* @__PURE__ */ z(N, { children: [
|
|
147
|
+
/* @__PURE__ */ r("circle", { cx: "12", cy: "12", r: "10" }),
|
|
148
|
+
/* @__PURE__ */ r("polyline", { points: "16 10 11 15 8 12" })
|
|
149
|
+
] }),
|
|
150
|
+
"check-done": /* @__PURE__ */ z(N, { children: [
|
|
151
|
+
/* @__PURE__ */ r("path", { d: "M22 11.08V12a10 10 0 1 1-5.93-9.14" }),
|
|
152
|
+
/* @__PURE__ */ r("polyline", { points: "22 4 12 14.01 9 11.01" })
|
|
153
|
+
] }),
|
|
154
|
+
clock: /* @__PURE__ */ z(N, { children: [
|
|
155
|
+
/* @__PURE__ */ r("circle", { cx: "12", cy: "12", r: "10" }),
|
|
156
|
+
/* @__PURE__ */ r("polyline", { points: "12 6 12 12 16 14" })
|
|
157
|
+
] }),
|
|
158
|
+
forbidden: /* @__PURE__ */ z(N, { children: [
|
|
159
|
+
/* @__PURE__ */ r("circle", { cx: "12", cy: "12", r: "10" }),
|
|
160
|
+
/* @__PURE__ */ r("line", { x1: "4.93", y1: "4.93", x2: "19.07", y2: "19.07" })
|
|
161
|
+
] }),
|
|
162
|
+
"info-circle": /* @__PURE__ */ z(N, { children: [
|
|
163
|
+
/* @__PURE__ */ r("circle", { cx: "12", cy: "12", r: "10" }),
|
|
164
|
+
/* @__PURE__ */ r("line", { x1: "12", y1: "16", x2: "12", y2: "12" }),
|
|
165
|
+
/* @__PURE__ */ r("line", { x1: "12", y1: "8", x2: "12.01", y2: "8" })
|
|
166
|
+
] }),
|
|
167
|
+
"alert-triangle": /* @__PURE__ */ z(N, { children: [
|
|
168
|
+
/* @__PURE__ */ r("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__ */ r("line", { x1: "12", y1: "9", x2: "12", y2: "13" }),
|
|
170
|
+
/* @__PURE__ */ r("line", { x1: "12", y1: "17", x2: "12.01", y2: "17" })
|
|
171
|
+
] }),
|
|
172
|
+
shield: /* @__PURE__ */ r("path", { d: "M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z" }),
|
|
173
|
+
lock: /* @__PURE__ */ z(N, { children: [
|
|
174
|
+
/* @__PURE__ */ r("rect", { x: "3", y: "11", width: "18", height: "11", rx: "2", ry: "2" }),
|
|
175
|
+
/* @__PURE__ */ r("path", { d: "M7 11V7a5 5 0 0 1 10 0v4" })
|
|
176
|
+
] }),
|
|
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
|
+
}, st = {
|
|
179
|
+
// Filled circle with "i" cutout (dot + line)
|
|
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
|
+
// Filled triangle with "!" cutout
|
|
182
|
+
"alert-triangle-filled": /* @__PURE__ */ r("path", { fillRule: "evenodd", 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 0zM11 10a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0v-3zm.25 6a.75.75 0 1 1 1.5 0 .75.75 0 0 1-1.5 0z" }),
|
|
183
|
+
// Filled circle with checkmark cutout
|
|
184
|
+
"check-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 2zm4.707 8.707a1 1 0 0 0-1.414-1.414L11 13.586l-2.293-2.293a1 1 0 0 0-1.414 1.414l3 3a1 1 0 0 0 1.414 0l5-5z" }),
|
|
185
|
+
// Filled circle with X cutout
|
|
186
|
+
"x-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 2zM9.707 8.293a1 1 0 0 0-1.414 1.414L10.586 12l-2.293 2.293a1 1 0 1 0 1.414 1.414L12 13.414l2.293 2.293a1 1 0 0 0 1.414-1.414L13.414 12l2.293-2.293a1 1 0 0 0-1.414-1.414L12 10.586 9.707 8.293z" }),
|
|
187
|
+
// Filled shield with checkmark cutout
|
|
188
|
+
"shield-filled": /* @__PURE__ */ r("path", { fillRule: "evenodd", d: "M12 1L3 5v7c0 6.5 8.5 10.5 9 10.73.5-.23 9-4.23 9-10.73V5l-9-4zm3.707 8.707a1 1 0 0 0-1.414-1.414L11 11.586l-1.293-1.293a1 1 0 0 0-1.414 1.414l2 2a1 1 0 0 0 1.414 0l4-4z" }),
|
|
189
|
+
// Filled lock body with stroke shackle
|
|
190
|
+
"lock-filled": /* @__PURE__ */ z(N, { children: [
|
|
191
|
+
/* @__PURE__ */ r("path", { d: "M7 11V7a5 5 0 0 1 10 0v4", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round" }),
|
|
192
|
+
/* @__PURE__ */ r("rect", { x: "3", y: "11", width: "18", height: "11", rx: "2", ry: "2" })
|
|
193
|
+
] })
|
|
194
|
+
};
|
|
195
|
+
function ve({
|
|
196
|
+
name: e,
|
|
197
|
+
size: t = 24
|
|
198
|
+
}) {
|
|
199
|
+
const n = st[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: rt[e] });
|
|
201
|
+
}
|
|
202
|
+
const ce = {
|
|
141
203
|
base: {
|
|
204
|
+
k1xSpc: "x78zum5",
|
|
205
|
+
kXwgrk: "x1q0g3np",
|
|
206
|
+
kGNEyG: "x1cy8zhl",
|
|
207
|
+
kOIVth: "x1wyuhvo",
|
|
142
208
|
kmVPX3: "x16ixvul",
|
|
143
209
|
kaIpWk: "x1gbengz",
|
|
144
210
|
kMzoRj: "xmkeg23",
|
|
@@ -147,6 +213,19 @@ const V = {
|
|
|
147
213
|
kLWn49: "xi1gl5z",
|
|
148
214
|
$$css: !0
|
|
149
215
|
},
|
|
216
|
+
iconWrap: {
|
|
217
|
+
kmuXW: "x2lah0s",
|
|
218
|
+
k1xSpc: "x78zum5",
|
|
219
|
+
kGNEyG: "x6s0dn4",
|
|
220
|
+
kjj79g: "xl56j7k",
|
|
221
|
+
kLKAdn: "x4p5aij",
|
|
222
|
+
$$css: !0
|
|
223
|
+
},
|
|
224
|
+
content: {
|
|
225
|
+
kUk6DE: "x98rzlu",
|
|
226
|
+
k7Eaqz: "xeuugli",
|
|
227
|
+
$$css: !0
|
|
228
|
+
},
|
|
150
229
|
error: {
|
|
151
230
|
kWkggS: "x102pa86",
|
|
152
231
|
kVAM5u: "xmuf6iu",
|
|
@@ -171,14 +250,27 @@ const V = {
|
|
|
171
250
|
kMwMTN: "xmooqzt",
|
|
172
251
|
$$css: !0
|
|
173
252
|
}
|
|
253
|
+
}, ot = {
|
|
254
|
+
info: "info-circle-filled",
|
|
255
|
+
warning: "alert-triangle-filled",
|
|
256
|
+
success: "check-circle-filled",
|
|
257
|
+
error: "x-circle-filled"
|
|
174
258
|
};
|
|
175
|
-
function
|
|
176
|
-
|
|
177
|
-
|
|
259
|
+
function it(e, t) {
|
|
260
|
+
return e === !1 ? null : e === void 0 ? /* @__PURE__ */ r(ve, { name: ot[t], size: 18 }) : typeof e == "string" ? /* @__PURE__ */ r(ve, { name: e, size: 18 }) : e;
|
|
261
|
+
}
|
|
262
|
+
function zn({
|
|
263
|
+
variant: e = "info",
|
|
264
|
+
icon: t,
|
|
265
|
+
children: n
|
|
178
266
|
}) {
|
|
179
|
-
|
|
267
|
+
const s = it(t, e);
|
|
268
|
+
return /* @__PURE__ */ r("div", { role: "alert", ...x(k.div, ce.base, ce[e]), children: s ? /* @__PURE__ */ z(N, { children: [
|
|
269
|
+
/* @__PURE__ */ r("div", { ...x(k.div, ce.iconWrap), children: s }),
|
|
270
|
+
/* @__PURE__ */ r("div", { ...x(k.div, ce.content), children: n })
|
|
271
|
+
] }) : n });
|
|
180
272
|
}
|
|
181
|
-
const
|
|
273
|
+
const xe = {
|
|
182
274
|
base: {
|
|
183
275
|
k1xSpc: "x3nfvp2",
|
|
184
276
|
kGNEyG: "x6s0dn4",
|
|
@@ -231,18 +323,18 @@ const xt = {
|
|
|
231
323
|
kMwMTN: "xmooqzt",
|
|
232
324
|
$$css: !0
|
|
233
325
|
}
|
|
234
|
-
},
|
|
235
|
-
sm:
|
|
236
|
-
md:
|
|
326
|
+
}, ct = {
|
|
327
|
+
sm: xe.sizeSm,
|
|
328
|
+
md: xe.sizeMd
|
|
237
329
|
};
|
|
238
|
-
function
|
|
239
|
-
variant:
|
|
240
|
-
size:
|
|
330
|
+
function In({
|
|
331
|
+
variant: e = "default",
|
|
332
|
+
size: t = "md",
|
|
241
333
|
children: n
|
|
242
334
|
}) {
|
|
243
|
-
return /* @__PURE__ */
|
|
335
|
+
return /* @__PURE__ */ r("span", { ...x(k.span, xe.base, ct[t], xe[e]), children: n });
|
|
244
336
|
}
|
|
245
|
-
const
|
|
337
|
+
const ne = {
|
|
246
338
|
base: {
|
|
247
339
|
k1xSpc: "x3nfvp2",
|
|
248
340
|
kGNEyG: "x6s0dn4",
|
|
@@ -317,22 +409,22 @@ const nt = {
|
|
|
317
409
|
kkrTdU: "x1h6gzvc",
|
|
318
410
|
$$css: !0
|
|
319
411
|
}
|
|
320
|
-
},
|
|
321
|
-
default:
|
|
322
|
-
small:
|
|
412
|
+
}, lt = {
|
|
413
|
+
default: ne.sizeDefault,
|
|
414
|
+
small: ne.sizeSmall
|
|
323
415
|
};
|
|
324
|
-
function
|
|
325
|
-
variant:
|
|
326
|
-
size:
|
|
416
|
+
function qn({
|
|
417
|
+
variant: e = "primary",
|
|
418
|
+
size: t = "default",
|
|
327
419
|
fullWidth: n = !1,
|
|
328
|
-
disabled:
|
|
329
|
-
type:
|
|
330
|
-
onClick:
|
|
420
|
+
disabled: s = !1,
|
|
421
|
+
type: o = "button",
|
|
422
|
+
onClick: l,
|
|
331
423
|
children: i
|
|
332
424
|
}) {
|
|
333
|
-
return /* @__PURE__ */
|
|
425
|
+
return /* @__PURE__ */ r("button", { type: o, disabled: s, onClick: l, ...x(k.button, ne.base, lt[t], ne[e], n && ne.fullWidth, s && ne.disabled), children: i });
|
|
334
426
|
}
|
|
335
|
-
const
|
|
427
|
+
const re = {
|
|
336
428
|
base: {
|
|
337
429
|
kWkggS: "xl5mw0s",
|
|
338
430
|
kMwMTN: "xg6mlj0",
|
|
@@ -389,24 +481,24 @@ const rt = {
|
|
|
389
481
|
k1K539: "x2mrtcw",
|
|
390
482
|
$$css: !0
|
|
391
483
|
}
|
|
392
|
-
},
|
|
393
|
-
default:
|
|
394
|
-
compact:
|
|
395
|
-
full:
|
|
484
|
+
}, xt = {
|
|
485
|
+
default: re.sizeDefault,
|
|
486
|
+
compact: re.sizeCompact,
|
|
487
|
+
full: re.sizeFull
|
|
396
488
|
};
|
|
397
|
-
function
|
|
398
|
-
variant:
|
|
399
|
-
size:
|
|
489
|
+
function Wn({
|
|
490
|
+
variant: e = "outlined",
|
|
491
|
+
size: t = "default",
|
|
400
492
|
header: n,
|
|
401
|
-
onClick:
|
|
402
|
-
children:
|
|
493
|
+
onClick: s,
|
|
494
|
+
children: o
|
|
403
495
|
}) {
|
|
404
|
-
return /* @__PURE__ */
|
|
405
|
-
n && /* @__PURE__ */
|
|
406
|
-
|
|
496
|
+
return /* @__PURE__ */ z("div", { onClick: s, ...x(k.div, re.base, re[e], xt[t]), children: [
|
|
497
|
+
n && /* @__PURE__ */ r("div", { ...x(k.div, re.header), children: n }),
|
|
498
|
+
o
|
|
407
499
|
] });
|
|
408
500
|
}
|
|
409
|
-
const
|
|
501
|
+
const ee = {
|
|
410
502
|
root: {
|
|
411
503
|
k1xSpc: "x3nfvp2",
|
|
412
504
|
kGNEyG: "x6s0dn4",
|
|
@@ -456,27 +548,27 @@ const tt = {
|
|
|
456
548
|
$$css: !0
|
|
457
549
|
}
|
|
458
550
|
};
|
|
459
|
-
function
|
|
460
|
-
name:
|
|
461
|
-
value:
|
|
551
|
+
function Hn({
|
|
552
|
+
name: e,
|
|
553
|
+
value: t,
|
|
462
554
|
checked: n,
|
|
463
|
-
defaultChecked:
|
|
464
|
-
disabled:
|
|
465
|
-
onChange:
|
|
555
|
+
defaultChecked: s = !1,
|
|
556
|
+
disabled: o = !1,
|
|
557
|
+
onChange: l,
|
|
466
558
|
children: i
|
|
467
559
|
}) {
|
|
468
|
-
const c = n !== void 0, [d, a] =
|
|
469
|
-
c || a(
|
|
470
|
-
}, [c,
|
|
471
|
-
return /* @__PURE__ */
|
|
472
|
-
/* @__PURE__ */
|
|
473
|
-
/* @__PURE__ */
|
|
560
|
+
const c = n !== void 0, [d, a] = G(s), g = c ? n : d, u = W(($) => {
|
|
561
|
+
c || a($.target.checked), l?.($);
|
|
562
|
+
}, [c, l]);
|
|
563
|
+
return /* @__PURE__ */ z("label", { ...x(k.label, ee.root, o && ee.rootDisabled), children: [
|
|
564
|
+
/* @__PURE__ */ r("input", { type: "checkbox", name: e, value: t, checked: c ? n : void 0, defaultChecked: c ? void 0 : s, disabled: o, onChange: u, ...x(k.input, ee.input), dir: "auto" }),
|
|
565
|
+
/* @__PURE__ */ r("span", { ...x(k.span, ee.box, g ? ee.boxChecked : ee.boxUnchecked), "aria-hidden": !0, children: /* @__PURE__ */ r("svg", { width: 12, height: 12, viewBox: "0 0 12 12", fill: "none", style: {
|
|
474
566
|
opacity: g ? 1 : 0
|
|
475
|
-
}, children: /* @__PURE__ */
|
|
476
|
-
i && /* @__PURE__ */
|
|
567
|
+
}, children: /* @__PURE__ */ r("polyline", { points: "2.5 6 5 8.5 9.5 3.5", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }) }) }),
|
|
568
|
+
i && /* @__PURE__ */ r("span", { ...x(k.span), children: i })
|
|
477
569
|
] });
|
|
478
570
|
}
|
|
479
|
-
const
|
|
571
|
+
const he = {
|
|
480
572
|
root: {
|
|
481
573
|
k1xSpc: "x78zum5",
|
|
482
574
|
kXwgrk: "xdt5ytf",
|
|
@@ -499,18 +591,18 @@ const gt = {
|
|
|
499
591
|
$$css: !0
|
|
500
592
|
}
|
|
501
593
|
};
|
|
502
|
-
function
|
|
503
|
-
message:
|
|
504
|
-
icon:
|
|
594
|
+
function Gn({
|
|
595
|
+
message: e,
|
|
596
|
+
icon: t,
|
|
505
597
|
action: n
|
|
506
598
|
}) {
|
|
507
|
-
return /* @__PURE__ */
|
|
508
|
-
|
|
509
|
-
/* @__PURE__ */
|
|
510
|
-
n && /* @__PURE__ */
|
|
599
|
+
return /* @__PURE__ */ z("div", { ...x(k.div, he.root), children: [
|
|
600
|
+
t,
|
|
601
|
+
/* @__PURE__ */ r("p", { ...x(k.p, he.message), children: e }),
|
|
602
|
+
n && /* @__PURE__ */ r("div", { ...x(k.div, he.action), children: n })
|
|
511
603
|
] });
|
|
512
604
|
}
|
|
513
|
-
const
|
|
605
|
+
const Ge = {
|
|
514
606
|
bodySm: {
|
|
515
607
|
kMv6JI: "x2nsvjj",
|
|
516
608
|
kGuDYH: "x1if0jgx",
|
|
@@ -624,7 +716,7 @@ const Ht = {
|
|
|
624
716
|
kb6lSQ: "xgvl3jc",
|
|
625
717
|
$$css: !0
|
|
626
718
|
}
|
|
627
|
-
},
|
|
719
|
+
}, le = {
|
|
628
720
|
default: {
|
|
629
721
|
kMwMTN: "xg6mlj0",
|
|
630
722
|
$$css: !0
|
|
@@ -649,33 +741,33 @@ const Ht = {
|
|
|
649
741
|
k9WMMc: "xp4054r",
|
|
650
742
|
$$css: !0
|
|
651
743
|
}
|
|
652
|
-
},
|
|
744
|
+
}, kt = {
|
|
653
745
|
1: "headingXl",
|
|
654
746
|
2: "headingLg",
|
|
655
747
|
3: "headingMd",
|
|
656
748
|
4: "headingSm",
|
|
657
749
|
5: "headingSm",
|
|
658
750
|
6: "headingSm"
|
|
659
|
-
},
|
|
660
|
-
start:
|
|
661
|
-
center:
|
|
662
|
-
end:
|
|
751
|
+
}, at = {
|
|
752
|
+
start: le.alignStart,
|
|
753
|
+
center: le.alignCenter,
|
|
754
|
+
end: le.alignEnd
|
|
663
755
|
};
|
|
664
|
-
function
|
|
665
|
-
level:
|
|
666
|
-
variant:
|
|
756
|
+
function Ln({
|
|
757
|
+
level: e,
|
|
758
|
+
variant: t,
|
|
667
759
|
color: n = "default",
|
|
668
|
-
align:
|
|
669
|
-
children:
|
|
760
|
+
align: s,
|
|
761
|
+
children: o
|
|
670
762
|
}) {
|
|
671
|
-
const
|
|
672
|
-
return
|
|
763
|
+
const l = t ?? kt[e], i = [Ge[l], le[n], s && at[s]];
|
|
764
|
+
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 });
|
|
673
765
|
}
|
|
674
|
-
const
|
|
675
|
-
function
|
|
676
|
-
return
|
|
766
|
+
const Le = R(null);
|
|
767
|
+
function ie() {
|
|
768
|
+
return C(Le);
|
|
677
769
|
}
|
|
678
|
-
const
|
|
770
|
+
const ke = {
|
|
679
771
|
root: {
|
|
680
772
|
k1xSpc: "x78zum5",
|
|
681
773
|
kXwgrk: "xdt5ytf",
|
|
@@ -699,46 +791,46 @@ const lt = {
|
|
|
699
791
|
$$css: !0
|
|
700
792
|
}
|
|
701
793
|
};
|
|
702
|
-
function
|
|
703
|
-
invalid:
|
|
704
|
-
children:
|
|
794
|
+
function ut({
|
|
795
|
+
invalid: e = !1,
|
|
796
|
+
children: t
|
|
705
797
|
}) {
|
|
706
|
-
const n =
|
|
798
|
+
const n = _(), s = $e(() => ({
|
|
707
799
|
controlId: `${n}-control`,
|
|
708
800
|
descriptionId: `${n}-description`,
|
|
709
801
|
errorId: `${n}-error`,
|
|
710
|
-
invalid:
|
|
711
|
-
}), [n,
|
|
712
|
-
return /* @__PURE__ */
|
|
802
|
+
invalid: e
|
|
803
|
+
}), [n, e]);
|
|
804
|
+
return /* @__PURE__ */ r(Le.Provider, { value: s, children: /* @__PURE__ */ r("div", { ...x(k.div, ke.root), children: t }) });
|
|
713
805
|
}
|
|
714
|
-
function
|
|
715
|
-
children:
|
|
806
|
+
function dt({
|
|
807
|
+
children: e
|
|
716
808
|
}) {
|
|
717
|
-
const
|
|
718
|
-
return /* @__PURE__ */
|
|
809
|
+
const t = ie();
|
|
810
|
+
return /* @__PURE__ */ r("label", { htmlFor: t?.controlId, ...x(k.label, ke.label), children: e });
|
|
719
811
|
}
|
|
720
|
-
function
|
|
721
|
-
children:
|
|
812
|
+
function gt({
|
|
813
|
+
children: e
|
|
722
814
|
}) {
|
|
723
|
-
const
|
|
724
|
-
return /* @__PURE__ */
|
|
815
|
+
const t = ie();
|
|
816
|
+
return /* @__PURE__ */ r("span", { id: t?.descriptionId, ...x(k.span, ke.description), children: e });
|
|
725
817
|
}
|
|
726
|
-
function
|
|
727
|
-
children:
|
|
818
|
+
function ht({
|
|
819
|
+
children: e
|
|
728
820
|
}) {
|
|
729
|
-
const
|
|
730
|
-
return !
|
|
731
|
-
}
|
|
732
|
-
const
|
|
733
|
-
Root:
|
|
734
|
-
Label:
|
|
735
|
-
Description:
|
|
736
|
-
Error:
|
|
737
|
-
},
|
|
738
|
-
function
|
|
739
|
-
return
|
|
740
|
-
}
|
|
741
|
-
const
|
|
821
|
+
const t = ie();
|
|
822
|
+
return !t?.invalid && !e ? null : /* @__PURE__ */ r("span", { id: t?.errorId, role: "alert", ...x(k.span, ke.error), children: e });
|
|
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);
|
|
832
|
+
}
|
|
833
|
+
const pe = {
|
|
742
834
|
base: {
|
|
743
835
|
kzqmXN: "xh8yej3",
|
|
744
836
|
kLKAdn: "x1y6gaq4",
|
|
@@ -777,13 +869,13 @@ const pt = {
|
|
|
777
869
|
$$css: !0
|
|
778
870
|
}
|
|
779
871
|
};
|
|
780
|
-
function
|
|
781
|
-
variant:
|
|
782
|
-
type:
|
|
872
|
+
function En({
|
|
873
|
+
variant: e = "default",
|
|
874
|
+
type: t = "text",
|
|
783
875
|
name: n,
|
|
784
|
-
placeholder:
|
|
785
|
-
required:
|
|
786
|
-
minLength:
|
|
876
|
+
placeholder: s,
|
|
877
|
+
required: o,
|
|
878
|
+
minLength: l,
|
|
787
879
|
pattern: i,
|
|
788
880
|
autoComplete: c,
|
|
789
881
|
value: d,
|
|
@@ -791,12 +883,12 @@ function Hn({
|
|
|
791
883
|
disabled: g,
|
|
792
884
|
onChange: u
|
|
793
885
|
}) {
|
|
794
|
-
const
|
|
886
|
+
const $ = ie(), S = pt(), p = i !== void 0 ? {
|
|
795
887
|
pattern: i
|
|
796
888
|
} : void 0;
|
|
797
|
-
return /* @__PURE__ */
|
|
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, pe.base, pe[e], S?.inGroup && pe.inGroup), ...p, dir: "auto" });
|
|
798
890
|
}
|
|
799
|
-
const
|
|
891
|
+
const te = {
|
|
800
892
|
wrapper: {
|
|
801
893
|
k1xSpc: "x78zum5",
|
|
802
894
|
kGNEyG: "x1qjc9v5",
|
|
@@ -851,27 +943,27 @@ const et = {
|
|
|
851
943
|
$$css: !0
|
|
852
944
|
}
|
|
853
945
|
};
|
|
854
|
-
function
|
|
855
|
-
children:
|
|
946
|
+
function ft({
|
|
947
|
+
children: e
|
|
856
948
|
}) {
|
|
857
|
-
const
|
|
949
|
+
const t = $e(() => ({
|
|
858
950
|
inGroup: !0
|
|
859
951
|
}), []);
|
|
860
|
-
return /* @__PURE__ */
|
|
952
|
+
return /* @__PURE__ */ r(Te.Provider, { value: t, children: /* @__PURE__ */ r("div", { ...x(k.div, te.wrapper), children: e }) });
|
|
861
953
|
}
|
|
862
|
-
function
|
|
863
|
-
position:
|
|
864
|
-
onClick:
|
|
954
|
+
function vt({
|
|
955
|
+
position: e = "end",
|
|
956
|
+
onClick: t,
|
|
865
957
|
disabled: n,
|
|
866
|
-
children:
|
|
958
|
+
children: s
|
|
867
959
|
}) {
|
|
868
|
-
const
|
|
869
|
-
return
|
|
960
|
+
const o = e === "start" ? te.addonStart : te.addonEnd, l = [te.addon, o, t && !n && te.addonClickable, n && te.addonDisabled];
|
|
961
|
+
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 });
|
|
870
962
|
}
|
|
871
|
-
const
|
|
872
|
-
Root:
|
|
873
|
-
Addon:
|
|
874
|
-
},
|
|
963
|
+
const Vn = {
|
|
964
|
+
Root: ft,
|
|
965
|
+
Addon: vt
|
|
966
|
+
}, oe = {
|
|
875
967
|
base: {
|
|
876
968
|
k1xSpc: "x3nfvp2",
|
|
877
969
|
kGNEyG: "x6s0dn4",
|
|
@@ -921,22 +1013,22 @@ const Gn = {
|
|
|
921
1013
|
kzqmXN: "xh8yej3",
|
|
922
1014
|
$$css: !0
|
|
923
1015
|
}
|
|
924
|
-
},
|
|
925
|
-
default:
|
|
926
|
-
small:
|
|
1016
|
+
}, $t = {
|
|
1017
|
+
default: oe.sizeDefault,
|
|
1018
|
+
small: oe.sizeSmall
|
|
927
1019
|
};
|
|
928
|
-
function
|
|
929
|
-
href:
|
|
930
|
-
variant:
|
|
1020
|
+
function An({
|
|
1021
|
+
href: e,
|
|
1022
|
+
variant: t = "primary",
|
|
931
1023
|
size: n = "default",
|
|
932
|
-
fullWidth:
|
|
933
|
-
target:
|
|
934
|
-
rel:
|
|
1024
|
+
fullWidth: s = !1,
|
|
1025
|
+
target: o,
|
|
1026
|
+
rel: l,
|
|
935
1027
|
children: i
|
|
936
1028
|
}) {
|
|
937
|
-
return /* @__PURE__ */
|
|
1029
|
+
return /* @__PURE__ */ r("a", { href: e, target: o, rel: l, ...x(k.a, oe.base, $t[n], oe[t], s && oe.fullWidth), children: i });
|
|
938
1030
|
}
|
|
939
|
-
const
|
|
1031
|
+
const P = {
|
|
940
1032
|
root: {
|
|
941
1033
|
kVAEAm: "x1n2onr6",
|
|
942
1034
|
k1xSpc: "x3nfvp2",
|
|
@@ -1020,69 +1112,69 @@ const J = {
|
|
|
1020
1112
|
kMwMTN: "xg6mlj0 x1c35pte",
|
|
1021
1113
|
$$css: !0
|
|
1022
1114
|
}
|
|
1023
|
-
},
|
|
1024
|
-
function
|
|
1025
|
-
const
|
|
1026
|
-
if (!
|
|
1027
|
-
return
|
|
1028
|
-
}
|
|
1029
|
-
function
|
|
1030
|
-
const [
|
|
1031
|
-
|
|
1032
|
-
}, []), u =
|
|
1033
|
-
|
|
1115
|
+
}, Ee = R(null);
|
|
1116
|
+
function ae() {
|
|
1117
|
+
const e = C(Ee);
|
|
1118
|
+
if (!e) throw new Error("Menu compound components must be used within Menu.Root");
|
|
1119
|
+
return e;
|
|
1120
|
+
}
|
|
1121
|
+
function mt() {
|
|
1122
|
+
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
|
+
t(!1), s(null), a.current = !1, i.current?.focus();
|
|
1124
|
+
}, []), u = W(() => {
|
|
1125
|
+
t((p) => (p ? (s(null), a.current = !1) : a.current = !0, !p));
|
|
1034
1126
|
}, []);
|
|
1035
|
-
|
|
1036
|
-
if (
|
|
1127
|
+
H(() => {
|
|
1128
|
+
if (e && a.current) {
|
|
1037
1129
|
a.current = !1;
|
|
1038
|
-
const
|
|
1039
|
-
|
|
1130
|
+
const p = d.current;
|
|
1131
|
+
p.length > 0 && s(p[0]);
|
|
1040
1132
|
}
|
|
1041
|
-
}, [
|
|
1042
|
-
const
|
|
1043
|
-
c.current.set(
|
|
1044
|
-
const f = c.current,
|
|
1045
|
-
return
|
|
1046
|
-
const B = f.get(
|
|
1047
|
-
return !B || !
|
|
1048
|
-
}), d.current =
|
|
1049
|
-
c.current.delete(
|
|
1133
|
+
}, [e]);
|
|
1134
|
+
const $ = W((p, m) => {
|
|
1135
|
+
c.current.set(p, m);
|
|
1136
|
+
const f = c.current, v = [...f.keys()];
|
|
1137
|
+
return v.sort((h, b) => {
|
|
1138
|
+
const B = f.get(h), Q = f.get(b);
|
|
1139
|
+
return !B || !Q ? 0 : B.compareDocumentPosition(Q) & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : 1;
|
|
1140
|
+
}), d.current = v, () => {
|
|
1141
|
+
c.current.delete(p), d.current = d.current.filter((h) => h !== p);
|
|
1050
1142
|
};
|
|
1051
1143
|
}, []);
|
|
1052
|
-
return
|
|
1053
|
-
const
|
|
1054
|
-
if (!
|
|
1144
|
+
return H(() => {
|
|
1145
|
+
const p = l.current;
|
|
1146
|
+
if (!p || !e) return;
|
|
1055
1147
|
function m(f) {
|
|
1056
|
-
const
|
|
1057
|
-
if (
|
|
1148
|
+
const v = d.current;
|
|
1149
|
+
if (v.length !== 0)
|
|
1058
1150
|
switch (f.key) {
|
|
1059
1151
|
case "ArrowDown": {
|
|
1060
|
-
f.preventDefault(),
|
|
1061
|
-
const b =
|
|
1062
|
-
return
|
|
1152
|
+
f.preventDefault(), s((h) => {
|
|
1153
|
+
const b = h ? v.indexOf(h) : -1;
|
|
1154
|
+
return v[(b + 1) % v.length];
|
|
1063
1155
|
});
|
|
1064
1156
|
break;
|
|
1065
1157
|
}
|
|
1066
1158
|
case "ArrowUp": {
|
|
1067
|
-
f.preventDefault(),
|
|
1068
|
-
const b =
|
|
1069
|
-
return
|
|
1159
|
+
f.preventDefault(), s((h) => {
|
|
1160
|
+
const b = h ? v.indexOf(h) : 0;
|
|
1161
|
+
return v[(b - 1 + v.length) % v.length];
|
|
1070
1162
|
});
|
|
1071
1163
|
break;
|
|
1072
1164
|
}
|
|
1073
1165
|
case "Home": {
|
|
1074
|
-
f.preventDefault(),
|
|
1166
|
+
f.preventDefault(), s(v[0]);
|
|
1075
1167
|
break;
|
|
1076
1168
|
}
|
|
1077
1169
|
case "End": {
|
|
1078
|
-
f.preventDefault(),
|
|
1170
|
+
f.preventDefault(), s(v[v.length - 1]);
|
|
1079
1171
|
break;
|
|
1080
1172
|
}
|
|
1081
1173
|
case "Enter":
|
|
1082
1174
|
case " ": {
|
|
1083
1175
|
f.preventDefault();
|
|
1084
|
-
const
|
|
1085
|
-
|
|
1176
|
+
const h = c.current;
|
|
1177
|
+
s((b) => (b && h.get(b)?.click(), b));
|
|
1086
1178
|
break;
|
|
1087
1179
|
}
|
|
1088
1180
|
case "Escape":
|
|
@@ -1092,98 +1184,98 @@ function pe() {
|
|
|
1092
1184
|
}
|
|
1093
1185
|
}
|
|
1094
1186
|
}
|
|
1095
|
-
return
|
|
1096
|
-
}, [
|
|
1187
|
+
return p.addEventListener("keydown", m), () => p.removeEventListener("keydown", m);
|
|
1188
|
+
}, [e, g]), {
|
|
1097
1189
|
ctx: {
|
|
1098
|
-
open:
|
|
1190
|
+
open: e,
|
|
1099
1191
|
toggle: u,
|
|
1100
1192
|
close: g,
|
|
1101
|
-
menuId:
|
|
1193
|
+
menuId: o,
|
|
1102
1194
|
highlightedId: n,
|
|
1103
|
-
setHighlightedId:
|
|
1104
|
-
registerItem:
|
|
1195
|
+
setHighlightedId: s,
|
|
1196
|
+
registerItem: $,
|
|
1105
1197
|
triggerRef: i
|
|
1106
1198
|
},
|
|
1107
|
-
rootRef:
|
|
1199
|
+
rootRef: l
|
|
1108
1200
|
};
|
|
1109
1201
|
}
|
|
1110
|
-
function
|
|
1111
|
-
children:
|
|
1202
|
+
function bt({
|
|
1203
|
+
children: e
|
|
1112
1204
|
}) {
|
|
1113
1205
|
const {
|
|
1114
|
-
ctx:
|
|
1206
|
+
ctx: t,
|
|
1115
1207
|
rootRef: n
|
|
1116
|
-
} =
|
|
1117
|
-
return /* @__PURE__ */
|
|
1208
|
+
} = mt();
|
|
1209
|
+
return /* @__PURE__ */ r(Ee.Provider, { value: t, children: /* @__PURE__ */ r("div", { ref: n, ...x(k.div, P.root), children: e }) });
|
|
1118
1210
|
}
|
|
1119
|
-
function
|
|
1120
|
-
children:
|
|
1211
|
+
function yt({
|
|
1212
|
+
children: e
|
|
1121
1213
|
}) {
|
|
1122
1214
|
const {
|
|
1123
|
-
open:
|
|
1215
|
+
open: t,
|
|
1124
1216
|
toggle: n,
|
|
1125
|
-
menuId:
|
|
1126
|
-
triggerRef:
|
|
1127
|
-
} =
|
|
1128
|
-
return
|
|
1129
|
-
|
|
1130
|
-
}), /* @__PURE__ */
|
|
1131
|
-
}
|
|
1132
|
-
function
|
|
1133
|
-
children:
|
|
1134
|
-
align:
|
|
1217
|
+
menuId: s,
|
|
1218
|
+
triggerRef: o
|
|
1219
|
+
} = ae(), l = w(null);
|
|
1220
|
+
return H(() => {
|
|
1221
|
+
o.current = l.current;
|
|
1222
|
+
}), /* @__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
|
+
}
|
|
1224
|
+
function wt({
|
|
1225
|
+
children: e,
|
|
1226
|
+
align: t = "start"
|
|
1135
1227
|
}) {
|
|
1136
1228
|
const {
|
|
1137
1229
|
open: n,
|
|
1138
|
-
close:
|
|
1139
|
-
menuId:
|
|
1140
|
-
highlightedId:
|
|
1141
|
-
} =
|
|
1142
|
-
return n ? /* @__PURE__ */
|
|
1143
|
-
/* @__PURE__ */
|
|
1144
|
-
/* @__PURE__ */
|
|
1230
|
+
close: s,
|
|
1231
|
+
menuId: o,
|
|
1232
|
+
highlightedId: l
|
|
1233
|
+
} = ae();
|
|
1234
|
+
return n ? /* @__PURE__ */ z(N, { children: [
|
|
1235
|
+
/* @__PURE__ */ r("div", { ...x(k.div, P.backdrop), onClick: s }),
|
|
1236
|
+
/* @__PURE__ */ r("div", { id: o, role: "menu", "aria-activedescendant": l ?? void 0, ...x(k.div, P.popup, t === "end" && P.popupEnd), children: e })
|
|
1145
1237
|
] }) : null;
|
|
1146
1238
|
}
|
|
1147
|
-
function
|
|
1148
|
-
onClick:
|
|
1149
|
-
children:
|
|
1239
|
+
function St({
|
|
1240
|
+
onClick: e,
|
|
1241
|
+
children: t
|
|
1150
1242
|
}) {
|
|
1151
1243
|
const {
|
|
1152
1244
|
close: n,
|
|
1153
|
-
highlightedId:
|
|
1154
|
-
setHighlightedId:
|
|
1155
|
-
registerItem:
|
|
1156
|
-
} =
|
|
1157
|
-
return
|
|
1245
|
+
highlightedId: s,
|
|
1246
|
+
setHighlightedId: o,
|
|
1247
|
+
registerItem: l
|
|
1248
|
+
} = ae(), i = _(), c = w(null), d = s === i;
|
|
1249
|
+
return H(() => {
|
|
1158
1250
|
const g = c.current;
|
|
1159
1251
|
if (g)
|
|
1160
|
-
return
|
|
1161
|
-
}, [i,
|
|
1162
|
-
|
|
1163
|
-
}, onPointerEnter: () =>
|
|
1252
|
+
return l(i, g);
|
|
1253
|
+
}, [i, l]), /* @__PURE__ */ r("div", { ref: c, id: i, role: "menuitem", onClick: () => {
|
|
1254
|
+
e?.(), n();
|
|
1255
|
+
}, onPointerEnter: () => o(i), ...x(k.div, P.item, d && P.itemHighlighted), children: t });
|
|
1164
1256
|
}
|
|
1165
|
-
function
|
|
1166
|
-
href:
|
|
1167
|
-
children:
|
|
1257
|
+
function Mt({
|
|
1258
|
+
href: e,
|
|
1259
|
+
children: t
|
|
1168
1260
|
}) {
|
|
1169
1261
|
const {
|
|
1170
1262
|
close: n,
|
|
1171
|
-
highlightedId:
|
|
1172
|
-
setHighlightedId:
|
|
1173
|
-
registerItem:
|
|
1174
|
-
} =
|
|
1175
|
-
return
|
|
1263
|
+
highlightedId: s,
|
|
1264
|
+
setHighlightedId: o,
|
|
1265
|
+
registerItem: l
|
|
1266
|
+
} = ae(), i = _(), c = w(null), d = s === i;
|
|
1267
|
+
return H(() => {
|
|
1176
1268
|
const a = c.current;
|
|
1177
1269
|
if (a)
|
|
1178
|
-
return
|
|
1179
|
-
}, [i,
|
|
1180
|
-
}
|
|
1181
|
-
const
|
|
1182
|
-
Root:
|
|
1183
|
-
Trigger:
|
|
1184
|
-
Popup:
|
|
1185
|
-
Item:
|
|
1186
|
-
LinkItem:
|
|
1270
|
+
return l(i, a);
|
|
1271
|
+
}, [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
|
+
}
|
|
1273
|
+
const Nn = {
|
|
1274
|
+
Root: bt,
|
|
1275
|
+
Trigger: yt,
|
|
1276
|
+
Popup: wt,
|
|
1277
|
+
Item: St,
|
|
1278
|
+
LinkItem: Mt
|
|
1187
1279
|
}, D = {
|
|
1188
1280
|
root: {
|
|
1189
1281
|
kVAEAm: "x1n2onr6",
|
|
@@ -1253,131 +1345,131 @@ const En = {
|
|
|
1253
1345
|
kIyJzY: "xx6bhzk",
|
|
1254
1346
|
$$css: !0
|
|
1255
1347
|
},
|
|
1256
|
-
viewportMaxHeight: (
|
|
1257
|
-
kskxy:
|
|
1348
|
+
viewportMaxHeight: (e) => [{
|
|
1349
|
+
kskxy: e != null ? "x1jols5v" : e,
|
|
1258
1350
|
$$css: !0
|
|
1259
1351
|
}, {
|
|
1260
|
-
"--x-maxHeight": ((
|
|
1352
|
+
"--x-maxHeight": ((t) => typeof t == "number" ? t + "px" : t ?? void 0)(e)
|
|
1261
1353
|
}],
|
|
1262
|
-
thumbVertical: (
|
|
1263
|
-
kZKoxP:
|
|
1264
|
-
k3aq6I:
|
|
1354
|
+
thumbVertical: (e, t) => [{
|
|
1355
|
+
kZKoxP: e != null ? "x16ye13r" : e,
|
|
1356
|
+
k3aq6I: t != null ? "xsqj5wx" : t,
|
|
1265
1357
|
$$css: !0
|
|
1266
1358
|
}, {
|
|
1267
|
-
"--x-height": ((n) => typeof n == "number" ? n + "px" : n ?? void 0)(
|
|
1268
|
-
"--x-transform":
|
|
1359
|
+
"--x-height": ((n) => typeof n == "number" ? n + "px" : n ?? void 0)(e),
|
|
1360
|
+
"--x-transform": t ?? void 0
|
|
1269
1361
|
}],
|
|
1270
|
-
thumbHorizontal: (
|
|
1271
|
-
kzqmXN:
|
|
1272
|
-
k3aq6I:
|
|
1362
|
+
thumbHorizontal: (e, t) => [{
|
|
1363
|
+
kzqmXN: e != null ? "x5lhr3w" : e,
|
|
1364
|
+
k3aq6I: t != null ? "xsqj5wx" : t,
|
|
1273
1365
|
$$css: !0
|
|
1274
1366
|
}, {
|
|
1275
|
-
"--x-width": ((n) => typeof n == "number" ? n + "px" : n ?? void 0)(
|
|
1276
|
-
"--x-transform":
|
|
1367
|
+
"--x-width": ((n) => typeof n == "number" ? n + "px" : n ?? void 0)(e),
|
|
1368
|
+
"--x-transform": t ?? void 0
|
|
1277
1369
|
}]
|
|
1278
|
-
},
|
|
1279
|
-
function
|
|
1280
|
-
const
|
|
1281
|
-
if (!
|
|
1282
|
-
return
|
|
1283
|
-
}
|
|
1284
|
-
function
|
|
1285
|
-
const
|
|
1286
|
-
const
|
|
1287
|
-
|
|
1370
|
+
}, Ve = R(null);
|
|
1371
|
+
function ue() {
|
|
1372
|
+
const e = C(Ve);
|
|
1373
|
+
if (!e) throw new Error("ScrollArea compound components must be used within ScrollArea.Root");
|
|
1374
|
+
return e;
|
|
1375
|
+
}
|
|
1376
|
+
function jt() {
|
|
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), [$, S] = G(0), [p, m] = G(!1), f = w(null), v = W(() => {
|
|
1378
|
+
const h = e.current;
|
|
1379
|
+
h && (s(h.scrollTop), l(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
1380
|
}, []);
|
|
1289
|
-
return
|
|
1290
|
-
const
|
|
1291
|
-
if (!
|
|
1381
|
+
return H(() => {
|
|
1382
|
+
const h = e.current;
|
|
1383
|
+
if (!h) return;
|
|
1292
1384
|
const b = new ResizeObserver(() => {
|
|
1293
|
-
c(
|
|
1385
|
+
c(h.scrollHeight), a(h.scrollWidth), u(h.clientHeight), S(h.clientWidth);
|
|
1294
1386
|
});
|
|
1295
|
-
return b.observe(
|
|
1296
|
-
}, []),
|
|
1297
|
-
const
|
|
1298
|
-
if (
|
|
1299
|
-
return
|
|
1387
|
+
return b.observe(h), c(h.scrollHeight), a(h.scrollWidth), u(h.clientHeight), S(h.clientWidth), () => b.disconnect();
|
|
1388
|
+
}, []), H(() => {
|
|
1389
|
+
const h = e.current;
|
|
1390
|
+
if (h)
|
|
1391
|
+
return h.addEventListener("scroll", v, {
|
|
1300
1392
|
passive: !0
|
|
1301
|
-
}), () =>
|
|
1302
|
-
}, [
|
|
1303
|
-
viewportRef:
|
|
1304
|
-
contentRef:
|
|
1393
|
+
}), () => h.removeEventListener("scroll", v);
|
|
1394
|
+
}, [v]), {
|
|
1395
|
+
viewportRef: e,
|
|
1396
|
+
contentRef: t,
|
|
1305
1397
|
scrollTop: n,
|
|
1306
|
-
scrollLeft:
|
|
1398
|
+
scrollLeft: o,
|
|
1307
1399
|
scrollHeight: i,
|
|
1308
1400
|
scrollWidth: d,
|
|
1309
1401
|
clientHeight: g,
|
|
1310
|
-
clientWidth:
|
|
1311
|
-
scrolling:
|
|
1402
|
+
clientWidth: $,
|
|
1403
|
+
scrolling: p
|
|
1312
1404
|
};
|
|
1313
1405
|
}
|
|
1314
|
-
function
|
|
1315
|
-
children:
|
|
1406
|
+
function zt({
|
|
1407
|
+
children: e
|
|
1316
1408
|
}) {
|
|
1317
|
-
const
|
|
1318
|
-
return /* @__PURE__ */
|
|
1409
|
+
const t = jt();
|
|
1410
|
+
return /* @__PURE__ */ r(Ve.Provider, { value: t, children: /* @__PURE__ */ r("div", { ...x(k.div, D.root), children: e }) });
|
|
1319
1411
|
}
|
|
1320
|
-
function
|
|
1321
|
-
children:
|
|
1322
|
-
maxHeight:
|
|
1412
|
+
function It({
|
|
1413
|
+
children: e,
|
|
1414
|
+
maxHeight: t
|
|
1323
1415
|
}) {
|
|
1324
1416
|
const {
|
|
1325
1417
|
viewportRef: n
|
|
1326
|
-
} =
|
|
1327
|
-
return /* @__PURE__ */
|
|
1418
|
+
} = ue();
|
|
1419
|
+
return /* @__PURE__ */ r("div", { ref: n, ...x(k.div, D.viewport, t != null && D.viewportMaxHeight(t)), children: e });
|
|
1328
1420
|
}
|
|
1329
|
-
function
|
|
1330
|
-
children:
|
|
1421
|
+
function qt({
|
|
1422
|
+
children: e
|
|
1331
1423
|
}) {
|
|
1332
1424
|
const {
|
|
1333
|
-
contentRef:
|
|
1334
|
-
} =
|
|
1335
|
-
return /* @__PURE__ */
|
|
1425
|
+
contentRef: t
|
|
1426
|
+
} = ue();
|
|
1427
|
+
return /* @__PURE__ */ r("div", { ref: t, ...x(k.div, D.content), children: e });
|
|
1336
1428
|
}
|
|
1337
|
-
function
|
|
1338
|
-
orientation:
|
|
1339
|
-
children:
|
|
1429
|
+
function Wt({
|
|
1430
|
+
orientation: e = "vertical",
|
|
1431
|
+
children: t
|
|
1340
1432
|
}) {
|
|
1341
1433
|
const {
|
|
1342
1434
|
scrolling: n,
|
|
1343
|
-
scrollHeight:
|
|
1344
|
-
scrollWidth:
|
|
1345
|
-
clientHeight:
|
|
1435
|
+
scrollHeight: s,
|
|
1436
|
+
scrollWidth: o,
|
|
1437
|
+
clientHeight: l,
|
|
1346
1438
|
clientWidth: i
|
|
1347
|
-
} =
|
|
1348
|
-
return (
|
|
1439
|
+
} = ue();
|
|
1440
|
+
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;
|
|
1349
1441
|
}
|
|
1350
|
-
function
|
|
1351
|
-
orientation:
|
|
1442
|
+
function Ht({
|
|
1443
|
+
orientation: e = "vertical"
|
|
1352
1444
|
}) {
|
|
1353
1445
|
const {
|
|
1354
|
-
viewportRef:
|
|
1446
|
+
viewportRef: t,
|
|
1355
1447
|
scrollTop: n,
|
|
1356
|
-
scrollLeft:
|
|
1357
|
-
scrollHeight:
|
|
1358
|
-
scrollWidth:
|
|
1448
|
+
scrollLeft: s,
|
|
1449
|
+
scrollHeight: o,
|
|
1450
|
+
scrollWidth: l,
|
|
1359
1451
|
clientHeight: i,
|
|
1360
1452
|
clientWidth: c
|
|
1361
|
-
} =
|
|
1362
|
-
y.preventDefault(), d.current = !0, a.current = u ? y.clientY : y.clientX, g.current = u ?
|
|
1363
|
-
}, [u,
|
|
1453
|
+
} = ue(), d = w(!1), a = w(0), g = w(0), u = e === "vertical", $ = Math.max(u ? i / o * 100 : c / l * 100, 10), S = u ? o - i : l - c, p = u ? i : c, m = $ / 100 * p, f = u ? n : s, v = S > 0 ? f / S * (p - m) : 0, h = u ? D.thumbVertical(`${$}%`, `translateY(${v}px)`) : D.thumbHorizontal(`${$}%`, `translateX(${v}px)`), b = W((y) => {
|
|
1454
|
+
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
|
+
}, [u, t]), B = W((y) => {
|
|
1364
1456
|
if (!d.current) return;
|
|
1365
|
-
const
|
|
1366
|
-
if (!
|
|
1367
|
-
const
|
|
1368
|
-
u ?
|
|
1369
|
-
}, [u, S,
|
|
1457
|
+
const I = t.current;
|
|
1458
|
+
if (!I) return;
|
|
1459
|
+
const M = (u ? y.clientY : y.clientX) - a.current, j = S / (p - m), J = M * j;
|
|
1460
|
+
u ? I.scrollTop = g.current + J : I.scrollLeft = g.current + J;
|
|
1461
|
+
}, [u, S, p, m, t]), Q = W(() => {
|
|
1370
1462
|
d.current = !1;
|
|
1371
1463
|
}, []);
|
|
1372
|
-
return /* @__PURE__ */
|
|
1373
|
-
}
|
|
1374
|
-
const
|
|
1375
|
-
Root:
|
|
1376
|
-
Viewport:
|
|
1377
|
-
Content:
|
|
1378
|
-
Scrollbar:
|
|
1379
|
-
Thumb:
|
|
1380
|
-
},
|
|
1464
|
+
return /* @__PURE__ */ r("div", { onPointerDown: b, onPointerMove: B, onPointerUp: Q, ...x(k.div, D.thumb, h) });
|
|
1465
|
+
}
|
|
1466
|
+
const On = {
|
|
1467
|
+
Root: zt,
|
|
1468
|
+
Viewport: It,
|
|
1469
|
+
Content: qt,
|
|
1470
|
+
Scrollbar: Wt,
|
|
1471
|
+
Thumb: Ht
|
|
1472
|
+
}, Y = {
|
|
1381
1473
|
root: {
|
|
1382
1474
|
kVAEAm: "x1n2onr6",
|
|
1383
1475
|
k1xSpc: "x3nfvp2",
|
|
@@ -1475,231 +1567,231 @@ const Ln = {
|
|
|
1475
1567
|
k1xSpc: "x1s85apg",
|
|
1476
1568
|
$$css: !0
|
|
1477
1569
|
}
|
|
1478
|
-
},
|
|
1479
|
-
function
|
|
1480
|
-
const
|
|
1481
|
-
if (!
|
|
1482
|
-
return
|
|
1483
|
-
}
|
|
1484
|
-
function
|
|
1485
|
-
const [
|
|
1486
|
-
|
|
1487
|
-
}, [
|
|
1488
|
-
return [
|
|
1489
|
-
}
|
|
1490
|
-
function
|
|
1491
|
-
defaultValue:
|
|
1492
|
-
value:
|
|
1570
|
+
}, Ae = R(null);
|
|
1571
|
+
function de() {
|
|
1572
|
+
const e = C(Ae);
|
|
1573
|
+
if (!e) throw new Error("Select compound components must be used within Select.Root");
|
|
1574
|
+
return e;
|
|
1575
|
+
}
|
|
1576
|
+
function be(e, t, n) {
|
|
1577
|
+
const [s, o] = G(t), l = e !== void 0 ? e : s, i = W((c) => {
|
|
1578
|
+
e === void 0 && o(c), n?.(c);
|
|
1579
|
+
}, [e, n]);
|
|
1580
|
+
return [l, i];
|
|
1581
|
+
}
|
|
1582
|
+
function Gt({
|
|
1583
|
+
defaultValue: e,
|
|
1584
|
+
value: t,
|
|
1493
1585
|
onValueChange: n,
|
|
1494
|
-
initialLabels:
|
|
1586
|
+
initialLabels: s
|
|
1495
1587
|
}) {
|
|
1496
|
-
const [
|
|
1497
|
-
c(!1), u(null),
|
|
1498
|
-
}, []),
|
|
1588
|
+
const [o, l] = be(t, e ?? null, n), [i, c] = G(!1), [d, a] = G(s ?? {}), [g, u] = G(null), $ = _(), S = w(null), p = w(null), m = w(/* @__PURE__ */ new Map()), f = w([]), v = W(() => {
|
|
1589
|
+
c(!1), u(null), p.current?.focus();
|
|
1590
|
+
}, []), h = W(() => {
|
|
1499
1591
|
c((y) => {
|
|
1500
1592
|
if (y)
|
|
1501
1593
|
u(null);
|
|
1502
1594
|
else {
|
|
1503
|
-
const
|
|
1504
|
-
let
|
|
1505
|
-
for (const
|
|
1506
|
-
const
|
|
1507
|
-
if (
|
|
1508
|
-
|
|
1595
|
+
const I = m.current, M = f.current;
|
|
1596
|
+
let j = null;
|
|
1597
|
+
for (const J of M) {
|
|
1598
|
+
const L = I.get(J);
|
|
1599
|
+
if (L && L.value === o) {
|
|
1600
|
+
j = J;
|
|
1509
1601
|
break;
|
|
1510
1602
|
}
|
|
1511
1603
|
}
|
|
1512
|
-
u(
|
|
1604
|
+
u(j ?? (M.length > 0 ? M[0] : null));
|
|
1513
1605
|
}
|
|
1514
1606
|
return !y;
|
|
1515
1607
|
});
|
|
1516
|
-
}, [
|
|
1517
|
-
a((
|
|
1518
|
-
...
|
|
1519
|
-
[y]:
|
|
1608
|
+
}, [o]), b = W((y, I) => {
|
|
1609
|
+
a((M) => M[y] === I ? M : {
|
|
1610
|
+
...M,
|
|
1611
|
+
[y]: I
|
|
1520
1612
|
});
|
|
1521
|
-
}, []), B =
|
|
1613
|
+
}, []), B = W((y, I, M) => {
|
|
1522
1614
|
m.current.set(y, {
|
|
1523
|
-
value:
|
|
1524
|
-
element:
|
|
1615
|
+
value: I,
|
|
1616
|
+
element: M
|
|
1525
1617
|
});
|
|
1526
|
-
const
|
|
1527
|
-
return
|
|
1528
|
-
const
|
|
1529
|
-
return !
|
|
1530
|
-
}), f.current =
|
|
1531
|
-
m.current.delete(y), f.current = f.current.filter((
|
|
1618
|
+
const j = m.current, J = [...j.keys()];
|
|
1619
|
+
return J.sort((L, K) => {
|
|
1620
|
+
const Me = j.get(L)?.element, je = j.get(K)?.element;
|
|
1621
|
+
return !Me || !je ? 0 : Me.compareDocumentPosition(je) & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : 1;
|
|
1622
|
+
}), f.current = J, () => {
|
|
1623
|
+
m.current.delete(y), f.current = f.current.filter((L) => L !== y);
|
|
1532
1624
|
};
|
|
1533
1625
|
}, []);
|
|
1534
|
-
return
|
|
1626
|
+
return H(() => {
|
|
1535
1627
|
const y = S.current;
|
|
1536
1628
|
if (!y || !i) return;
|
|
1537
|
-
function
|
|
1538
|
-
const
|
|
1539
|
-
if (
|
|
1540
|
-
switch (
|
|
1629
|
+
function I(M) {
|
|
1630
|
+
const j = f.current, J = m.current;
|
|
1631
|
+
if (j.length !== 0)
|
|
1632
|
+
switch (M.key) {
|
|
1541
1633
|
case "ArrowDown": {
|
|
1542
|
-
|
|
1543
|
-
const
|
|
1544
|
-
return
|
|
1634
|
+
M.preventDefault(), u((L) => {
|
|
1635
|
+
const K = L ? j.indexOf(L) : -1;
|
|
1636
|
+
return j[(K + 1) % j.length];
|
|
1545
1637
|
});
|
|
1546
1638
|
break;
|
|
1547
1639
|
}
|
|
1548
1640
|
case "ArrowUp": {
|
|
1549
|
-
|
|
1550
|
-
const
|
|
1551
|
-
return
|
|
1641
|
+
M.preventDefault(), u((L) => {
|
|
1642
|
+
const K = L ? j.indexOf(L) : 0;
|
|
1643
|
+
return j[(K - 1 + j.length) % j.length];
|
|
1552
1644
|
});
|
|
1553
1645
|
break;
|
|
1554
1646
|
}
|
|
1555
1647
|
case "Home": {
|
|
1556
|
-
|
|
1648
|
+
M.preventDefault(), u(j[0]);
|
|
1557
1649
|
break;
|
|
1558
1650
|
}
|
|
1559
1651
|
case "End": {
|
|
1560
|
-
|
|
1652
|
+
M.preventDefault(), u(j[j.length - 1]);
|
|
1561
1653
|
break;
|
|
1562
1654
|
}
|
|
1563
1655
|
case "Enter":
|
|
1564
1656
|
case " ": {
|
|
1565
|
-
|
|
1566
|
-
if (
|
|
1567
|
-
const
|
|
1568
|
-
|
|
1657
|
+
M.preventDefault(), u((L) => {
|
|
1658
|
+
if (L) {
|
|
1659
|
+
const K = J.get(L);
|
|
1660
|
+
K && (l(K.value), v());
|
|
1569
1661
|
}
|
|
1570
|
-
return
|
|
1662
|
+
return L;
|
|
1571
1663
|
});
|
|
1572
1664
|
break;
|
|
1573
1665
|
}
|
|
1574
1666
|
case "Escape":
|
|
1575
1667
|
case "Tab": {
|
|
1576
|
-
|
|
1668
|
+
v();
|
|
1577
1669
|
break;
|
|
1578
1670
|
}
|
|
1579
1671
|
}
|
|
1580
1672
|
}
|
|
1581
|
-
return y.addEventListener("keydown",
|
|
1582
|
-
}, [i,
|
|
1583
|
-
ctx:
|
|
1673
|
+
return y.addEventListener("keydown", I), () => y.removeEventListener("keydown", I);
|
|
1674
|
+
}, [i, v, l]), {
|
|
1675
|
+
ctx: $e(() => ({
|
|
1584
1676
|
open: i,
|
|
1585
|
-
toggle:
|
|
1586
|
-
close:
|
|
1587
|
-
value:
|
|
1588
|
-
setValue:
|
|
1677
|
+
toggle: h,
|
|
1678
|
+
close: v,
|
|
1679
|
+
value: o,
|
|
1680
|
+
setValue: l,
|
|
1589
1681
|
labels: d,
|
|
1590
1682
|
registerLabel: b,
|
|
1591
|
-
listboxId:
|
|
1683
|
+
listboxId: $,
|
|
1592
1684
|
highlightedId: g,
|
|
1593
1685
|
setHighlightedId: u,
|
|
1594
1686
|
registerItem: B,
|
|
1595
|
-
triggerRef:
|
|
1596
|
-
}), [i,
|
|
1687
|
+
triggerRef: p
|
|
1688
|
+
}), [i, h, v, o, l, d, b, $, g, u, B]),
|
|
1597
1689
|
rootRef: S
|
|
1598
1690
|
};
|
|
1599
1691
|
}
|
|
1600
|
-
function
|
|
1601
|
-
name:
|
|
1602
|
-
defaultValue:
|
|
1692
|
+
function Lt({
|
|
1693
|
+
name: e,
|
|
1694
|
+
defaultValue: t,
|
|
1603
1695
|
value: n,
|
|
1604
|
-
onValueChange:
|
|
1605
|
-
initialLabels:
|
|
1606
|
-
children:
|
|
1696
|
+
onValueChange: s,
|
|
1697
|
+
initialLabels: o,
|
|
1698
|
+
children: l
|
|
1607
1699
|
}) {
|
|
1608
1700
|
const {
|
|
1609
1701
|
ctx: i,
|
|
1610
1702
|
rootRef: c
|
|
1611
|
-
} =
|
|
1612
|
-
defaultValue:
|
|
1703
|
+
} = Gt({
|
|
1704
|
+
defaultValue: t,
|
|
1613
1705
|
value: n,
|
|
1614
|
-
onValueChange:
|
|
1615
|
-
initialLabels:
|
|
1706
|
+
onValueChange: s,
|
|
1707
|
+
initialLabels: o
|
|
1616
1708
|
});
|
|
1617
|
-
return /* @__PURE__ */
|
|
1618
|
-
|
|
1619
|
-
|
|
1709
|
+
return /* @__PURE__ */ r(Ae.Provider, { value: i, children: /* @__PURE__ */ z("div", { ref: c, ...x(k.div, Y.root), children: [
|
|
1710
|
+
e && /* @__PURE__ */ r("input", { type: "hidden", name: e, value: i.value ?? "", dir: "auto", ...x(k.input) }),
|
|
1711
|
+
l
|
|
1620
1712
|
] }) });
|
|
1621
1713
|
}
|
|
1622
|
-
function
|
|
1623
|
-
children:
|
|
1714
|
+
function Tt({
|
|
1715
|
+
children: e
|
|
1624
1716
|
}) {
|
|
1625
1717
|
const {
|
|
1626
|
-
open:
|
|
1718
|
+
open: t,
|
|
1627
1719
|
toggle: n,
|
|
1628
|
-
listboxId:
|
|
1629
|
-
highlightedId:
|
|
1630
|
-
triggerRef:
|
|
1631
|
-
} =
|
|
1632
|
-
return
|
|
1633
|
-
|
|
1634
|
-
}), /* @__PURE__ */
|
|
1635
|
-
}
|
|
1636
|
-
function
|
|
1637
|
-
placeholder:
|
|
1720
|
+
listboxId: s,
|
|
1721
|
+
highlightedId: o,
|
|
1722
|
+
triggerRef: l
|
|
1723
|
+
} = de(), i = w(null);
|
|
1724
|
+
return H(() => {
|
|
1725
|
+
l.current = i.current;
|
|
1726
|
+
}), /* @__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
|
+
}
|
|
1728
|
+
function Et({
|
|
1729
|
+
placeholder: e
|
|
1638
1730
|
}) {
|
|
1639
1731
|
const {
|
|
1640
|
-
value:
|
|
1732
|
+
value: t,
|
|
1641
1733
|
labels: n
|
|
1642
|
-
} =
|
|
1643
|
-
return /* @__PURE__ */
|
|
1734
|
+
} = de(), s = t ? n[t] ?? t : null;
|
|
1735
|
+
return /* @__PURE__ */ r("span", { ...x(k.span, s ? Y.value : Y.placeholder), children: s ?? e });
|
|
1644
1736
|
}
|
|
1645
|
-
function
|
|
1646
|
-
children:
|
|
1737
|
+
function Vt({
|
|
1738
|
+
children: e
|
|
1647
1739
|
}) {
|
|
1648
|
-
return /* @__PURE__ */
|
|
1740
|
+
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" }) }) });
|
|
1649
1741
|
}
|
|
1650
|
-
function
|
|
1651
|
-
children:
|
|
1742
|
+
function At({
|
|
1743
|
+
children: e
|
|
1652
1744
|
}) {
|
|
1653
1745
|
const {
|
|
1654
|
-
open:
|
|
1746
|
+
open: t,
|
|
1655
1747
|
close: n,
|
|
1656
|
-
listboxId:
|
|
1657
|
-
} =
|
|
1658
|
-
return /* @__PURE__ */
|
|
1659
|
-
|
|
1660
|
-
/* @__PURE__ */
|
|
1748
|
+
listboxId: s
|
|
1749
|
+
} = de();
|
|
1750
|
+
return /* @__PURE__ */ z(N, { children: [
|
|
1751
|
+
t && /* @__PURE__ */ r("div", { ...x(k.div, Y.backdrop), onClick: n }),
|
|
1752
|
+
/* @__PURE__ */ r("div", { id: s, role: "listbox", "aria-hidden": !t, ...x(k.div, Y.popup, !t && Y.hidden), children: e })
|
|
1661
1753
|
] });
|
|
1662
1754
|
}
|
|
1663
|
-
function
|
|
1664
|
-
value:
|
|
1665
|
-
children:
|
|
1755
|
+
function Nt({
|
|
1756
|
+
value: e,
|
|
1757
|
+
children: t
|
|
1666
1758
|
}) {
|
|
1667
1759
|
const {
|
|
1668
1760
|
value: n,
|
|
1669
|
-
setValue:
|
|
1670
|
-
close:
|
|
1671
|
-
registerLabel:
|
|
1761
|
+
setValue: s,
|
|
1762
|
+
close: o,
|
|
1763
|
+
registerLabel: l,
|
|
1672
1764
|
highlightedId: i,
|
|
1673
1765
|
setHighlightedId: c,
|
|
1674
1766
|
registerItem: d
|
|
1675
|
-
} =
|
|
1676
|
-
return
|
|
1677
|
-
const
|
|
1678
|
-
if (!
|
|
1679
|
-
const m =
|
|
1680
|
-
m &&
|
|
1681
|
-
}, [
|
|
1682
|
-
const
|
|
1683
|
-
if (
|
|
1684
|
-
return d(a,
|
|
1685
|
-
}, [a,
|
|
1686
|
-
|
|
1687
|
-
}, onPointerEnter: () => c(a), ...
|
|
1767
|
+
} = de(), a = _(), g = w(null), u = n === e, $ = i === a;
|
|
1768
|
+
return H(() => {
|
|
1769
|
+
const p = g.current;
|
|
1770
|
+
if (!p) return;
|
|
1771
|
+
const m = p.textContent;
|
|
1772
|
+
m && l(e, m);
|
|
1773
|
+
}, [e, l]), H(() => {
|
|
1774
|
+
const p = g.current;
|
|
1775
|
+
if (p)
|
|
1776
|
+
return d(a, e, p);
|
|
1777
|
+
}, [a, e, d]), /* @__PURE__ */ r("div", { ref: g, id: a, role: "option", "aria-selected": u, onClick: () => {
|
|
1778
|
+
s(e), o();
|
|
1779
|
+
}, onPointerEnter: () => c(a), ...x(k.div, Y.item, u && Y.itemSelected, $ && Y.itemHighlighted), children: t });
|
|
1688
1780
|
}
|
|
1689
|
-
function
|
|
1690
|
-
children:
|
|
1781
|
+
function Ot({
|
|
1782
|
+
children: e
|
|
1691
1783
|
}) {
|
|
1692
|
-
return /* @__PURE__ */
|
|
1693
|
-
}
|
|
1694
|
-
const
|
|
1695
|
-
Root:
|
|
1696
|
-
Trigger:
|
|
1697
|
-
Value:
|
|
1698
|
-
Icon:
|
|
1699
|
-
Popup:
|
|
1700
|
-
Item:
|
|
1701
|
-
ItemText:
|
|
1702
|
-
},
|
|
1784
|
+
return /* @__PURE__ */ r("span", { ...x(k.span), children: e });
|
|
1785
|
+
}
|
|
1786
|
+
const Cn = {
|
|
1787
|
+
Root: Lt,
|
|
1788
|
+
Trigger: Tt,
|
|
1789
|
+
Value: Et,
|
|
1790
|
+
Icon: Vt,
|
|
1791
|
+
Popup: At,
|
|
1792
|
+
Item: Nt,
|
|
1793
|
+
ItemText: Ot
|
|
1794
|
+
}, U = {
|
|
1703
1795
|
root: {
|
|
1704
1796
|
k1xSpc: "x78zum5",
|
|
1705
1797
|
kXwgrk: "xdt5ytf",
|
|
@@ -1778,83 +1870,83 @@ const An = {
|
|
|
1778
1870
|
k63SB2: "x9n8r49",
|
|
1779
1871
|
$$css: !0
|
|
1780
1872
|
}
|
|
1781
|
-
},
|
|
1782
|
-
function
|
|
1783
|
-
const
|
|
1784
|
-
if (!
|
|
1785
|
-
return
|
|
1786
|
-
}
|
|
1787
|
-
function
|
|
1788
|
-
children:
|
|
1789
|
-
value:
|
|
1873
|
+
}, Ne = R(null);
|
|
1874
|
+
function Oe() {
|
|
1875
|
+
const e = C(Ne);
|
|
1876
|
+
if (!e) throw new Error("SideNav compound components must be used within SideNav.Root");
|
|
1877
|
+
return e;
|
|
1878
|
+
}
|
|
1879
|
+
function Ct({
|
|
1880
|
+
children: e,
|
|
1881
|
+
value: t,
|
|
1790
1882
|
defaultValue: n,
|
|
1791
|
-
onValueChange:
|
|
1883
|
+
onValueChange: s
|
|
1792
1884
|
}) {
|
|
1793
|
-
const [
|
|
1794
|
-
u !== null &&
|
|
1795
|
-
} : void 0), [i, c] =
|
|
1796
|
-
c((
|
|
1797
|
-
const S = new Set(
|
|
1885
|
+
const [o, l] = be(t, n ?? null, s ? (u) => {
|
|
1886
|
+
u !== null && s(u);
|
|
1887
|
+
} : void 0), [i, c] = G(/* @__PURE__ */ new Set()), d = w([]), a = W((u) => {
|
|
1888
|
+
c(($) => {
|
|
1889
|
+
const S = new Set($);
|
|
1798
1890
|
return S.has(u) ? S.delete(u) : S.add(u), S;
|
|
1799
1891
|
});
|
|
1800
|
-
}, []), g =
|
|
1801
|
-
d.current = d.current.filter((
|
|
1892
|
+
}, []), g = W((u) => (d.current.includes(u) || d.current.push(u), () => {
|
|
1893
|
+
d.current = d.current.filter(($) => $ !== u);
|
|
1802
1894
|
}), []);
|
|
1803
|
-
return
|
|
1804
|
-
|
|
1805
|
-
}, [
|
|
1806
|
-
activeValue:
|
|
1807
|
-
onSelect:
|
|
1895
|
+
return H(() => {
|
|
1896
|
+
o && c((u) => u);
|
|
1897
|
+
}, [o]), /* @__PURE__ */ r(Ne.Provider, { value: {
|
|
1898
|
+
activeValue: o,
|
|
1899
|
+
onSelect: l,
|
|
1808
1900
|
expandedGroups: i,
|
|
1809
1901
|
toggleGroup: a,
|
|
1810
1902
|
registerItem: g,
|
|
1811
1903
|
orderRef: d
|
|
1812
|
-
}, children: /* @__PURE__ */
|
|
1904
|
+
}, children: /* @__PURE__ */ r("nav", { role: "navigation", ...x(k.nav, U.root), children: e }) });
|
|
1813
1905
|
}
|
|
1814
|
-
function
|
|
1815
|
-
children:
|
|
1816
|
-
label:
|
|
1906
|
+
function Bt({
|
|
1907
|
+
children: e,
|
|
1908
|
+
label: t,
|
|
1817
1909
|
groupKey: n,
|
|
1818
|
-
defaultExpanded:
|
|
1910
|
+
defaultExpanded: s
|
|
1819
1911
|
}) {
|
|
1820
|
-
const
|
|
1821
|
-
expandedGroups:
|
|
1912
|
+
const o = n ?? t, {
|
|
1913
|
+
expandedGroups: l,
|
|
1822
1914
|
toggleGroup: i,
|
|
1823
1915
|
activeValue: c
|
|
1824
|
-
} =
|
|
1825
|
-
|
|
1826
|
-
if (!c ||
|
|
1916
|
+
} = Oe(), d = l.has(o), a = w(null);
|
|
1917
|
+
H(() => {
|
|
1918
|
+
if (!c || l.has(o)) return;
|
|
1827
1919
|
const u = a.current;
|
|
1828
1920
|
if (!u) return;
|
|
1829
|
-
u.querySelector(`[data-nav-value="${c}"]`) && i(
|
|
1830
|
-
}, [c,
|
|
1831
|
-
|
|
1921
|
+
u.querySelector(`[data-nav-value="${c}"]`) && i(o);
|
|
1922
|
+
}, [c, o, l, i]), H(() => {
|
|
1923
|
+
s && !l.has(o) && i(o);
|
|
1832
1924
|
}, []);
|
|
1833
1925
|
const g = !c || !a.current ? !1 : !!a.current.querySelector(`[data-nav-value="${c}"]`);
|
|
1834
|
-
return /* @__PURE__ */
|
|
1835
|
-
/* @__PURE__ */
|
|
1836
|
-
/* @__PURE__ */
|
|
1837
|
-
|
|
1926
|
+
return /* @__PURE__ */ z("div", { ref: a, ...x(k.div, U.group), children: [
|
|
1927
|
+
/* @__PURE__ */ z("button", { type: "button", onClick: () => i(o), ...x(k.button, U.groupTrigger, g && U.groupTriggerActive), "aria-expanded": d, children: [
|
|
1928
|
+
/* @__PURE__ */ r("span", { ...x(k.span, U.chevron, d && U.chevronOpen), children: /* @__PURE__ */ r("svg", { width: 10, height: 10, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2.5, strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ r("path", { d: "M9 18l6-6-6-6" }) }) }),
|
|
1929
|
+
t
|
|
1838
1930
|
] }),
|
|
1839
|
-
d &&
|
|
1931
|
+
d && e
|
|
1840
1932
|
] });
|
|
1841
1933
|
}
|
|
1842
|
-
function
|
|
1843
|
-
value:
|
|
1844
|
-
children:
|
|
1934
|
+
function Dt({
|
|
1935
|
+
value: e,
|
|
1936
|
+
children: t
|
|
1845
1937
|
}) {
|
|
1846
1938
|
const {
|
|
1847
1939
|
activeValue: n,
|
|
1848
|
-
onSelect:
|
|
1849
|
-
registerItem:
|
|
1850
|
-
} =
|
|
1851
|
-
return
|
|
1940
|
+
onSelect: s,
|
|
1941
|
+
registerItem: o
|
|
1942
|
+
} = Oe(), l = n === e;
|
|
1943
|
+
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 });
|
|
1852
1944
|
}
|
|
1853
|
-
const
|
|
1854
|
-
Root:
|
|
1855
|
-
Group:
|
|
1856
|
-
Item:
|
|
1857
|
-
},
|
|
1945
|
+
const Bn = {
|
|
1946
|
+
Root: Ct,
|
|
1947
|
+
Group: Bt,
|
|
1948
|
+
Item: Dt
|
|
1949
|
+
}, se = {
|
|
1858
1950
|
root: {
|
|
1859
1951
|
k1xSpc: "x3nfvp2",
|
|
1860
1952
|
kGNEyG: "x6s0dn4",
|
|
@@ -1898,21 +1990,21 @@ const Vn = {
|
|
|
1898
1990
|
kMcinP: "xzpqnlu",
|
|
1899
1991
|
$$css: !0
|
|
1900
1992
|
}
|
|
1901
|
-
},
|
|
1902
|
-
sm:
|
|
1903
|
-
md:
|
|
1904
|
-
lg:
|
|
1993
|
+
}, Rt = {
|
|
1994
|
+
sm: se.sm,
|
|
1995
|
+
md: se.md,
|
|
1996
|
+
lg: se.lg
|
|
1905
1997
|
};
|
|
1906
|
-
function
|
|
1907
|
-
size:
|
|
1908
|
-
label:
|
|
1998
|
+
function Dn({
|
|
1999
|
+
size: e = "md",
|
|
2000
|
+
label: t = "Loading"
|
|
1909
2001
|
}) {
|
|
1910
|
-
return /* @__PURE__ */
|
|
1911
|
-
/* @__PURE__ */
|
|
1912
|
-
/* @__PURE__ */
|
|
2002
|
+
return /* @__PURE__ */ z("div", { role: "status", ...x(k.div, se.root), children: [
|
|
2003
|
+
/* @__PURE__ */ r("div", { ...x(k.div, se.spinner, Rt[e]), "aria-hidden": !0 }),
|
|
2004
|
+
/* @__PURE__ */ r("span", { ...x(k.span, se.srOnly), children: t })
|
|
1913
2005
|
] });
|
|
1914
2006
|
}
|
|
1915
|
-
const
|
|
2007
|
+
const ze = {
|
|
1916
2008
|
root: {
|
|
1917
2009
|
k1xSpc: "x3nfvp2",
|
|
1918
2010
|
kGNEyG: "x6s0dn4",
|
|
@@ -1932,44 +2024,26 @@ const Mt = {
|
|
|
1932
2024
|
kMwMTN: "x1r3dmx3",
|
|
1933
2025
|
$$css: !0
|
|
1934
2026
|
},
|
|
2027
|
+
info: {
|
|
2028
|
+
kMwMTN: "x17v5lin",
|
|
2029
|
+
$$css: !0
|
|
2030
|
+
},
|
|
1935
2031
|
muted: {
|
|
1936
2032
|
kMwMTN: "x19e7f62",
|
|
1937
2033
|
$$css: !0
|
|
1938
2034
|
}
|
|
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
2035
|
};
|
|
1962
|
-
function
|
|
1963
|
-
name:
|
|
1964
|
-
size:
|
|
2036
|
+
function Rn({
|
|
2037
|
+
name: e,
|
|
2038
|
+
size: t = 48,
|
|
1965
2039
|
variant: n = "muted"
|
|
1966
2040
|
}) {
|
|
1967
|
-
return /* @__PURE__ */
|
|
2041
|
+
return /* @__PURE__ */ r("div", { ...x(k.div, ze.root, ze[n]), children: /* @__PURE__ */ r(ve, { name: e, size: t }) });
|
|
1968
2042
|
}
|
|
1969
|
-
const
|
|
2043
|
+
const Xt = {
|
|
1970
2044
|
kumcoG: "xqketvx",
|
|
1971
2045
|
$$css: !0
|
|
1972
|
-
},
|
|
2046
|
+
}, V = {
|
|
1973
2047
|
root: {
|
|
1974
2048
|
kMzoRj: "xmkeg23",
|
|
1975
2049
|
ksu8eU: "x1y0btm7",
|
|
@@ -2045,91 +2119,91 @@ const Be = {
|
|
|
2045
2119
|
kWqL5O: "xgfja2r",
|
|
2046
2120
|
$$css: !0
|
|
2047
2121
|
},
|
|
2048
|
-
gridColumns: (
|
|
2049
|
-
"--x-gridTemplateColumns": `repeat(${
|
|
2122
|
+
gridColumns: (e) => [Xt, {
|
|
2123
|
+
"--x-gridTemplateColumns": `repeat(${e}, 1fr)` != null ? `repeat(${e}, 1fr)` : void 0
|
|
2050
2124
|
}]
|
|
2051
|
-
},
|
|
2052
|
-
function
|
|
2053
|
-
const
|
|
2054
|
-
if (!
|
|
2055
|
-
return
|
|
2056
|
-
}
|
|
2057
|
-
const
|
|
2058
|
-
function
|
|
2059
|
-
children:
|
|
2060
|
-
variant:
|
|
2125
|
+
}, Ce = R(null);
|
|
2126
|
+
function ge() {
|
|
2127
|
+
const e = C(Ce);
|
|
2128
|
+
if (!e) throw new Error("Table compound components must be used within Table.Root");
|
|
2129
|
+
return e;
|
|
2130
|
+
}
|
|
2131
|
+
const ye = R(!1);
|
|
2132
|
+
function Yt({
|
|
2133
|
+
children: e,
|
|
2134
|
+
variant: t = "default",
|
|
2061
2135
|
size: n = "md",
|
|
2062
|
-
columns:
|
|
2136
|
+
columns: s
|
|
2063
2137
|
}) {
|
|
2064
|
-
return /* @__PURE__ */
|
|
2065
|
-
variant:
|
|
2138
|
+
return /* @__PURE__ */ r(Ce.Provider, { value: {
|
|
2139
|
+
variant: t,
|
|
2066
2140
|
size: n,
|
|
2067
|
-
columns:
|
|
2141
|
+
columns: s,
|
|
2068
2142
|
isHeader: !1
|
|
2069
|
-
}, children: /* @__PURE__ */
|
|
2143
|
+
}, children: /* @__PURE__ */ r("div", { role: "table", ...x(k.div, V.root), children: e }) });
|
|
2070
2144
|
}
|
|
2071
|
-
function
|
|
2072
|
-
children:
|
|
2145
|
+
function Jt({
|
|
2146
|
+
children: e
|
|
2073
2147
|
}) {
|
|
2074
|
-
return /* @__PURE__ */
|
|
2148
|
+
return /* @__PURE__ */ r(ye.Provider, { value: !0, children: /* @__PURE__ */ r("div", { role: "rowgroup", ...x(k.div, V.header), children: e }) });
|
|
2075
2149
|
}
|
|
2076
|
-
function
|
|
2077
|
-
children:
|
|
2150
|
+
function Pt({
|
|
2151
|
+
children: e
|
|
2078
2152
|
}) {
|
|
2079
2153
|
const {
|
|
2080
|
-
variant:
|
|
2081
|
-
} =
|
|
2082
|
-
return /* @__PURE__ */
|
|
2154
|
+
variant: t
|
|
2155
|
+
} = ge(), n = qe.toArray(e);
|
|
2156
|
+
return /* @__PURE__ */ r(ye.Provider, { value: !1, children: /* @__PURE__ */ r("div", { role: "rowgroup", ...x(k.div), children: n.map((s, o) => t === "striped" ? /* @__PURE__ */ r(Be.Provider, { value: o, children: s }, o) : s) }) });
|
|
2083
2157
|
}
|
|
2084
|
-
const
|
|
2085
|
-
function
|
|
2086
|
-
children:
|
|
2158
|
+
const Be = R(-1);
|
|
2159
|
+
function Ft({
|
|
2160
|
+
children: e
|
|
2087
2161
|
}) {
|
|
2088
2162
|
const {
|
|
2089
|
-
variant:
|
|
2163
|
+
variant: t,
|
|
2090
2164
|
columns: n
|
|
2091
|
-
} =
|
|
2092
|
-
return /* @__PURE__ */
|
|
2165
|
+
} = ge(), s = C(ye), o = C(Be), l = o >= 0 && o % 2 === 1, i = qe.toArray(e);
|
|
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(we.Provider, { value: {
|
|
2093
2167
|
index: d,
|
|
2094
2168
|
total: i.length
|
|
2095
|
-
}, children: c }, d)) :
|
|
2169
|
+
}, children: c }, d)) : e });
|
|
2096
2170
|
}
|
|
2097
|
-
const
|
|
2171
|
+
const we = R({
|
|
2098
2172
|
index: 0,
|
|
2099
2173
|
total: 0
|
|
2100
2174
|
});
|
|
2101
|
-
function
|
|
2102
|
-
children:
|
|
2175
|
+
function Qt({
|
|
2176
|
+
children: e
|
|
2103
2177
|
}) {
|
|
2104
2178
|
const {
|
|
2105
|
-
size:
|
|
2179
|
+
size: t,
|
|
2106
2180
|
variant: n
|
|
2107
|
-
} =
|
|
2108
|
-
index:
|
|
2109
|
-
total:
|
|
2110
|
-
} =
|
|
2111
|
-
return /* @__PURE__ */
|
|
2181
|
+
} = ge(), {
|
|
2182
|
+
index: s,
|
|
2183
|
+
total: o
|
|
2184
|
+
} = C(we), l = n === "bordered" && s === o - 1;
|
|
2185
|
+
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 });
|
|
2112
2186
|
}
|
|
2113
|
-
function
|
|
2114
|
-
children:
|
|
2187
|
+
function Kt({
|
|
2188
|
+
children: e
|
|
2115
2189
|
}) {
|
|
2116
2190
|
const {
|
|
2117
|
-
size:
|
|
2191
|
+
size: t,
|
|
2118
2192
|
variant: n
|
|
2119
|
-
} =
|
|
2120
|
-
index:
|
|
2121
|
-
total:
|
|
2122
|
-
} =
|
|
2123
|
-
return /* @__PURE__ */
|
|
2124
|
-
}
|
|
2125
|
-
const
|
|
2126
|
-
Root:
|
|
2127
|
-
Header:
|
|
2128
|
-
Body:
|
|
2129
|
-
Row:
|
|
2130
|
-
HeaderCell:
|
|
2131
|
-
Cell:
|
|
2132
|
-
},
|
|
2193
|
+
} = ge(), {
|
|
2194
|
+
index: s,
|
|
2195
|
+
total: o
|
|
2196
|
+
} = C(we), l = n === "bordered" && s === o - 1;
|
|
2197
|
+
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
|
+
}
|
|
2199
|
+
const Xn = {
|
|
2200
|
+
Root: Yt,
|
|
2201
|
+
Header: Jt,
|
|
2202
|
+
Body: Pt,
|
|
2203
|
+
Row: Ft,
|
|
2204
|
+
HeaderCell: Qt,
|
|
2205
|
+
Cell: Kt
|
|
2206
|
+
}, X = {
|
|
2133
2207
|
root: {
|
|
2134
2208
|
k1xSpc: "x78zum5",
|
|
2135
2209
|
kXwgrk: "xdt5ytf",
|
|
@@ -2217,71 +2291,71 @@ const Bn = {
|
|
|
2217
2291
|
kE3dHu: "x107tsa6",
|
|
2218
2292
|
$$css: !0
|
|
2219
2293
|
}
|
|
2220
|
-
},
|
|
2221
|
-
function
|
|
2222
|
-
const
|
|
2223
|
-
if (!
|
|
2224
|
-
return
|
|
2294
|
+
}, De = R(null);
|
|
2295
|
+
function Se() {
|
|
2296
|
+
const e = C(De);
|
|
2297
|
+
if (!e) throw new Error("Tabs compound components must be used within Tabs.Root");
|
|
2298
|
+
return e;
|
|
2225
2299
|
}
|
|
2226
|
-
function
|
|
2227
|
-
value:
|
|
2228
|
-
defaultValue:
|
|
2300
|
+
function Ut({
|
|
2301
|
+
value: e,
|
|
2302
|
+
defaultValue: t,
|
|
2229
2303
|
onValueChange: n,
|
|
2230
|
-
orientation:
|
|
2304
|
+
orientation: s = "horizontal"
|
|
2231
2305
|
}) {
|
|
2232
|
-
const [
|
|
2306
|
+
const [o, l] = be(e, t ?? null, n ? (a) => {
|
|
2233
2307
|
a !== null && n(a);
|
|
2234
|
-
} : void 0), i = w(/* @__PURE__ */ new Map()), c = w([]), d =
|
|
2308
|
+
} : 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
2309
|
i.current.delete(a), c.current = c.current.filter((u) => u !== a);
|
|
2236
2310
|
}), []);
|
|
2237
2311
|
return {
|
|
2238
|
-
activeValue:
|
|
2239
|
-
onSelect:
|
|
2240
|
-
orientation:
|
|
2312
|
+
activeValue: o,
|
|
2313
|
+
onSelect: l,
|
|
2314
|
+
orientation: s,
|
|
2241
2315
|
registerTab: d,
|
|
2242
2316
|
tabsRef: i,
|
|
2243
2317
|
orderRef: c
|
|
2244
2318
|
};
|
|
2245
2319
|
}
|
|
2246
|
-
function
|
|
2247
|
-
children:
|
|
2248
|
-
value:
|
|
2320
|
+
function _t({
|
|
2321
|
+
children: e,
|
|
2322
|
+
value: t,
|
|
2249
2323
|
defaultValue: n,
|
|
2250
|
-
onValueChange:
|
|
2251
|
-
orientation:
|
|
2324
|
+
onValueChange: s,
|
|
2325
|
+
orientation: o = "horizontal"
|
|
2252
2326
|
}) {
|
|
2253
|
-
const
|
|
2254
|
-
value:
|
|
2327
|
+
const l = Ut({
|
|
2328
|
+
value: t,
|
|
2255
2329
|
defaultValue: n,
|
|
2256
|
-
onValueChange:
|
|
2257
|
-
orientation:
|
|
2330
|
+
onValueChange: s,
|
|
2331
|
+
orientation: o
|
|
2258
2332
|
});
|
|
2259
|
-
return /* @__PURE__ */
|
|
2333
|
+
return /* @__PURE__ */ r(De.Provider, { value: l, children: /* @__PURE__ */ r("div", { ...x(k.div, X.root, o === "vertical" && X.rootVertical), children: e }) });
|
|
2260
2334
|
}
|
|
2261
|
-
function
|
|
2262
|
-
children:
|
|
2335
|
+
function Zt({
|
|
2336
|
+
children: e
|
|
2263
2337
|
}) {
|
|
2264
2338
|
const {
|
|
2265
|
-
orientation:
|
|
2339
|
+
orientation: t,
|
|
2266
2340
|
activeValue: n,
|
|
2267
|
-
onSelect:
|
|
2268
|
-
tabsRef:
|
|
2269
|
-
orderRef:
|
|
2270
|
-
} =
|
|
2271
|
-
return
|
|
2341
|
+
onSelect: s,
|
|
2342
|
+
tabsRef: o,
|
|
2343
|
+
orderRef: l
|
|
2344
|
+
} = Se(), i = w(null);
|
|
2345
|
+
return H(() => {
|
|
2272
2346
|
const c = i.current;
|
|
2273
2347
|
if (!c) return;
|
|
2274
2348
|
function d(a) {
|
|
2275
|
-
const g =
|
|
2349
|
+
const g = l.current, u = o.current;
|
|
2276
2350
|
if (g.length === 0) return;
|
|
2277
|
-
const
|
|
2351
|
+
const $ = this, S = t === "horizontal" ? "ArrowLeft" : "ArrowUp", p = t === "horizontal" ? "ArrowRight" : "ArrowDown";
|
|
2278
2352
|
let m = null;
|
|
2279
2353
|
switch (a.key) {
|
|
2280
|
-
case
|
|
2354
|
+
case p: {
|
|
2281
2355
|
a.preventDefault();
|
|
2282
2356
|
const f = n ? g.indexOf(n) : -1;
|
|
2283
|
-
for (let
|
|
2284
|
-
const
|
|
2357
|
+
for (let v = 1; v <= g.length; v++) {
|
|
2358
|
+
const h = (f + v) % g.length, b = g[h];
|
|
2285
2359
|
if (!u.get(b)) {
|
|
2286
2360
|
m = b;
|
|
2287
2361
|
break;
|
|
@@ -2292,8 +2366,8 @@ function Qe({
|
|
|
2292
2366
|
case S: {
|
|
2293
2367
|
a.preventDefault();
|
|
2294
2368
|
const f = n ? g.indexOf(n) : 0;
|
|
2295
|
-
for (let
|
|
2296
|
-
const
|
|
2369
|
+
for (let v = 1; v <= g.length; v++) {
|
|
2370
|
+
const h = (f - v + g.length) % g.length, b = g[h];
|
|
2297
2371
|
if (!u.get(b)) {
|
|
2298
2372
|
m = b;
|
|
2299
2373
|
break;
|
|
@@ -2320,42 +2394,42 @@ function Qe({
|
|
|
2320
2394
|
break;
|
|
2321
2395
|
}
|
|
2322
2396
|
}
|
|
2323
|
-
m && (
|
|
2397
|
+
m && (s(m), $.querySelector(`[data-tab-value="${m}"]`)?.focus());
|
|
2324
2398
|
}
|
|
2325
2399
|
return c.addEventListener("keydown", d), () => c.removeEventListener("keydown", d);
|
|
2326
|
-
}, [
|
|
2400
|
+
}, [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 });
|
|
2327
2401
|
}
|
|
2328
|
-
function
|
|
2329
|
-
value:
|
|
2330
|
-
disabled:
|
|
2402
|
+
function en({
|
|
2403
|
+
value: e,
|
|
2404
|
+
disabled: t = !1,
|
|
2331
2405
|
children: n
|
|
2332
2406
|
}) {
|
|
2333
2407
|
const {
|
|
2334
|
-
activeValue:
|
|
2335
|
-
onSelect:
|
|
2336
|
-
orientation:
|
|
2408
|
+
activeValue: s,
|
|
2409
|
+
onSelect: o,
|
|
2410
|
+
orientation: l,
|
|
2337
2411
|
registerTab: i
|
|
2338
|
-
} =
|
|
2339
|
-
return
|
|
2340
|
-
|
|
2341
|
-
}, ...
|
|
2412
|
+
} = Se(), c = s === e, d = _(), a = `${d}-panel`;
|
|
2413
|
+
return H(() => i(e, t), [e, t, i]), /* @__PURE__ */ r("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: () => {
|
|
2414
|
+
t || o(e);
|
|
2415
|
+
}, ...x(k.button, X.tab, l === "vertical" && X.tabVertical, c && (l === "vertical" ? X.tabActiveVertical : X.tabActiveHorizontal), t && X.tabDisabled), children: n });
|
|
2342
2416
|
}
|
|
2343
|
-
function
|
|
2344
|
-
value:
|
|
2345
|
-
children:
|
|
2417
|
+
function tn({
|
|
2418
|
+
value: e,
|
|
2419
|
+
children: t
|
|
2346
2420
|
}) {
|
|
2347
2421
|
const {
|
|
2348
2422
|
activeValue: n,
|
|
2349
|
-
orientation:
|
|
2350
|
-
} =
|
|
2351
|
-
return n !==
|
|
2352
|
-
}
|
|
2353
|
-
const
|
|
2354
|
-
Root:
|
|
2355
|
-
List:
|
|
2356
|
-
Tab:
|
|
2357
|
-
Panel:
|
|
2358
|
-
},
|
|
2423
|
+
orientation: s
|
|
2424
|
+
} = Se();
|
|
2425
|
+
return n !== e ? null : /* @__PURE__ */ r("div", { role: "tabpanel", ...x(k.div, X.panel, s === "vertical" && X.panelVertical), children: t });
|
|
2426
|
+
}
|
|
2427
|
+
const Yn = {
|
|
2428
|
+
Root: _t,
|
|
2429
|
+
List: Zt,
|
|
2430
|
+
Tab: en,
|
|
2431
|
+
Panel: tn
|
|
2432
|
+
}, Ie = {
|
|
2359
2433
|
base: {
|
|
2360
2434
|
kzqmXN: "xh8yej3",
|
|
2361
2435
|
kLKAdn: "x1y6gaq4",
|
|
@@ -2389,21 +2463,21 @@ const Dn = {
|
|
|
2389
2463
|
$$css: !0
|
|
2390
2464
|
}
|
|
2391
2465
|
};
|
|
2392
|
-
function
|
|
2393
|
-
variant:
|
|
2394
|
-
name:
|
|
2466
|
+
function Jn({
|
|
2467
|
+
variant: e = "default",
|
|
2468
|
+
name: t,
|
|
2395
2469
|
placeholder: n,
|
|
2396
|
-
required:
|
|
2397
|
-
rows:
|
|
2398
|
-
value:
|
|
2470
|
+
required: s,
|
|
2471
|
+
rows: o = 3,
|
|
2472
|
+
value: l,
|
|
2399
2473
|
defaultValue: i,
|
|
2400
2474
|
disabled: c,
|
|
2401
2475
|
onChange: d
|
|
2402
2476
|
}) {
|
|
2403
|
-
const a =
|
|
2404
|
-
return /* @__PURE__ */
|
|
2477
|
+
const a = ie();
|
|
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, Ie.base, Ie[e]), dir: "auto" });
|
|
2405
2479
|
}
|
|
2406
|
-
const
|
|
2480
|
+
const Pn = {
|
|
2407
2481
|
bg: "var(--bg-xqkwqtp)",
|
|
2408
2482
|
bgCard: "var(--bgCard-xj2l5r)",
|
|
2409
2483
|
bgCardHover: "var(--bgCardHover-xlxk7vw)",
|
|
@@ -2427,11 +2501,12 @@ const Rn = {
|
|
|
2427
2501
|
warningBg: "var(--warningBg-xtnxqss)",
|
|
2428
2502
|
warningBorder: "var(--warningBorder-x1ev2mr5)",
|
|
2429
2503
|
warningText: "var(--warningText-x1lgjghx)",
|
|
2504
|
+
info: "var(--info-x97ho0r)",
|
|
2430
2505
|
infoBg: "var(--infoBg-xho8jir)",
|
|
2431
2506
|
infoBorder: "var(--infoBorder-xnevk3x)",
|
|
2432
2507
|
infoText: "var(--infoText-x19pseus)",
|
|
2433
2508
|
__varGroupHash__: "xjvd03b"
|
|
2434
|
-
},
|
|
2509
|
+
}, Fn = {
|
|
2435
2510
|
xs: "var(--xs-xxfyjsd)",
|
|
2436
2511
|
sm: "var(--sm-xbh8y7f)",
|
|
2437
2512
|
ms: "var(--ms-x13y09zs)",
|
|
@@ -2441,13 +2516,13 @@ const Rn = {
|
|
|
2441
2516
|
xxl: "var(--xxl-xbe9eha)",
|
|
2442
2517
|
xxxl: "var(--xxxl-xroalp5)",
|
|
2443
2518
|
__varGroupHash__: "x6uc9q"
|
|
2444
|
-
},
|
|
2519
|
+
}, Qn = {
|
|
2445
2520
|
sm: "var(--sm-x1bhtfs5)",
|
|
2446
2521
|
md: "var(--md-xx2g89g)",
|
|
2447
2522
|
lg: "var(--lg-xwd56yl)",
|
|
2448
2523
|
full: "var(--full-x9vxdtd)",
|
|
2449
2524
|
__varGroupHash__: "xw3ffwm"
|
|
2450
|
-
},
|
|
2525
|
+
}, Kn = {
|
|
2451
2526
|
stackXs: "var(--stackXs-x1qfrfo2)",
|
|
2452
2527
|
stackSm: "var(--stackSm-x2rk1ut)",
|
|
2453
2528
|
stackMd: "var(--stackMd-xhblkt4)",
|
|
@@ -2461,7 +2536,7 @@ const Rn = {
|
|
|
2461
2536
|
containerMd: "var(--containerMd-x170dvin)",
|
|
2462
2537
|
containerLg: "var(--containerLg-x1n6aasq)",
|
|
2463
2538
|
__varGroupHash__: "x16nfoyr"
|
|
2464
|
-
},
|
|
2539
|
+
}, Un = {
|
|
2465
2540
|
fontFamily: "var(--fontFamily-xvrmnat)",
|
|
2466
2541
|
fontFamilyMono: "var(--fontFamilyMono-x1bzqfky)",
|
|
2467
2542
|
fontSizeXs: "var(--fontSizeXs-x1w5m325)",
|
|
@@ -2476,7 +2551,7 @@ const Rn = {
|
|
|
2476
2551
|
fontWeightBold: "var(--fontWeightBold-x1pjkvwg)",
|
|
2477
2552
|
lineHeight: "var(--lineHeight-x1gubzd5)",
|
|
2478
2553
|
__varGroupHash__: "xs62swl"
|
|
2479
|
-
},
|
|
2554
|
+
}, _n = {
|
|
2480
2555
|
fontSize1: "var(--fontSize1-xx27tux)",
|
|
2481
2556
|
fontSize2: "var(--fontSize2-x5hag8h)",
|
|
2482
2557
|
fontSize3: "var(--fontSize3-x1mf6j39)",
|
|
@@ -2502,7 +2577,7 @@ const Rn = {
|
|
|
2502
2577
|
letterSpacingNormal: "var(--letterSpacingNormal-x1ih41v1)",
|
|
2503
2578
|
letterSpacingWide: "var(--letterSpacingWide-xt8z9rj)",
|
|
2504
2579
|
__varGroupHash__: "x4cj49w"
|
|
2505
|
-
},
|
|
2580
|
+
}, Zn = {
|
|
2506
2581
|
bodySm: {
|
|
2507
2582
|
"fontFamily-kMv6JI": "fontFamily-xce2pww",
|
|
2508
2583
|
"fontSize-kGuDYH": "fontSize-x1hn3ytp",
|
|
@@ -2616,40 +2691,40 @@ const Rn = {
|
|
|
2616
2691
|
"letterSpacing-kb6lSQ": "letterSpacing-xql2p2a",
|
|
2617
2692
|
$$css: "tokens/type-presets.css.ts:104"
|
|
2618
2693
|
}
|
|
2619
|
-
},
|
|
2694
|
+
}, er = {
|
|
2620
2695
|
sm: "var(--sm-x17hhtln)",
|
|
2621
2696
|
md: "var(--md-x1oyt0aw)",
|
|
2622
2697
|
lg: "var(--lg-x1mxd62i)",
|
|
2623
2698
|
__varGroupHash__: "x13v825q"
|
|
2624
|
-
},
|
|
2625
|
-
xjvd03b: "
|
|
2699
|
+
}, nn = {
|
|
2700
|
+
xjvd03b: "xrtwk39 xjvd03b",
|
|
2626
2701
|
$$css: !0
|
|
2627
|
-
},
|
|
2702
|
+
}, rn = {
|
|
2628
2703
|
x13v825q: "xv9ibj0 x13v825q",
|
|
2629
2704
|
$$css: !0
|
|
2630
|
-
},
|
|
2631
|
-
xjvd03b: "
|
|
2705
|
+
}, sn = {
|
|
2706
|
+
xjvd03b: "xaveibd xjvd03b",
|
|
2632
2707
|
$$css: !0
|
|
2633
|
-
},
|
|
2708
|
+
}, on = {
|
|
2634
2709
|
x13v825q: "x15e39jv x13v825q",
|
|
2635
2710
|
$$css: !0
|
|
2636
|
-
},
|
|
2637
|
-
light: [
|
|
2638
|
-
"high-contrast": [
|
|
2639
|
-
},
|
|
2711
|
+
}, cn = {
|
|
2712
|
+
light: [nn, rn],
|
|
2713
|
+
"high-contrast": [sn, on]
|
|
2714
|
+
}, ln = {
|
|
2640
2715
|
root: {
|
|
2641
2716
|
k1xSpc: "xjp7ctv",
|
|
2642
2717
|
$$css: !0
|
|
2643
2718
|
}
|
|
2644
2719
|
};
|
|
2645
|
-
function
|
|
2646
|
-
theme:
|
|
2647
|
-
children:
|
|
2720
|
+
function tr({
|
|
2721
|
+
theme: e = "dark",
|
|
2722
|
+
children: t
|
|
2648
2723
|
}) {
|
|
2649
|
-
const n =
|
|
2650
|
-
return /* @__PURE__ */
|
|
2724
|
+
const n = cn[e], s = [n?.[0], n?.[1], ln.root];
|
|
2725
|
+
return /* @__PURE__ */ r("div", { ...x(k.div, s), children: t });
|
|
2651
2726
|
}
|
|
2652
|
-
const
|
|
2727
|
+
const F = {
|
|
2653
2728
|
default: {
|
|
2654
2729
|
kMwMTN: "xg6mlj0",
|
|
2655
2730
|
$$css: !0
|
|
@@ -2708,29 +2783,29 @@ const P = {
|
|
|
2708
2783
|
khDVqt: "xuxw1ft",
|
|
2709
2784
|
$$css: !0
|
|
2710
2785
|
}
|
|
2711
|
-
},
|
|
2712
|
-
normal:
|
|
2713
|
-
medium:
|
|
2714
|
-
semibold:
|
|
2715
|
-
bold:
|
|
2716
|
-
},
|
|
2717
|
-
start:
|
|
2718
|
-
center:
|
|
2719
|
-
end:
|
|
2786
|
+
}, xn = {
|
|
2787
|
+
normal: F.weightNormal,
|
|
2788
|
+
medium: F.weightMedium,
|
|
2789
|
+
semibold: F.weightSemibold,
|
|
2790
|
+
bold: F.weightBold
|
|
2791
|
+
}, kn = {
|
|
2792
|
+
start: F.alignStart,
|
|
2793
|
+
center: F.alignCenter,
|
|
2794
|
+
end: F.alignEnd
|
|
2720
2795
|
};
|
|
2721
|
-
function
|
|
2722
|
-
variant:
|
|
2723
|
-
color:
|
|
2796
|
+
function nr({
|
|
2797
|
+
variant: e = "bodyMd",
|
|
2798
|
+
color: t = "default",
|
|
2724
2799
|
weight: n,
|
|
2725
|
-
align:
|
|
2726
|
-
truncate:
|
|
2727
|
-
as:
|
|
2800
|
+
align: s,
|
|
2801
|
+
truncate: o,
|
|
2802
|
+
as: l = "span",
|
|
2728
2803
|
children: i
|
|
2729
2804
|
}) {
|
|
2730
|
-
const c = [
|
|
2731
|
-
return
|
|
2805
|
+
const c = [Ge[e], F[t], n && xn[n], s && kn[s], o && F.truncate];
|
|
2806
|
+
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 });
|
|
2732
2807
|
}
|
|
2733
|
-
const
|
|
2808
|
+
const fe = {
|
|
2734
2809
|
root: {
|
|
2735
2810
|
kVAEAm: "x1n2onr6",
|
|
2736
2811
|
k1xSpc: "x3nfvp2",
|
|
@@ -2785,48 +2860,48 @@ const ht = {
|
|
|
2785
2860
|
koQZXg: "xzhl4zu",
|
|
2786
2861
|
$$css: !0
|
|
2787
2862
|
}
|
|
2788
|
-
},
|
|
2789
|
-
function
|
|
2790
|
-
const
|
|
2791
|
-
if (!
|
|
2792
|
-
return
|
|
2793
|
-
}
|
|
2794
|
-
function
|
|
2795
|
-
children:
|
|
2796
|
-
content:
|
|
2863
|
+
}, Re = R(null);
|
|
2864
|
+
function an() {
|
|
2865
|
+
const e = C(Re);
|
|
2866
|
+
if (!e) throw new Error("Tooltip compound components must be used within Tooltip.Root");
|
|
2867
|
+
return e;
|
|
2868
|
+
}
|
|
2869
|
+
function un({
|
|
2870
|
+
children: e,
|
|
2871
|
+
content: t,
|
|
2797
2872
|
placement: n = "top",
|
|
2798
|
-
delay:
|
|
2873
|
+
delay: s = 300
|
|
2799
2874
|
}) {
|
|
2800
|
-
const [
|
|
2801
|
-
c.current && clearTimeout(c.current), c.current = setTimeout(() =>
|
|
2802
|
-
}, [
|
|
2803
|
-
c.current && clearTimeout(c.current), c.current = null,
|
|
2875
|
+
const [o, l] = G(!1), i = _(), c = w(null), d = W(() => {
|
|
2876
|
+
c.current && clearTimeout(c.current), c.current = setTimeout(() => l(!0), s);
|
|
2877
|
+
}, [s]), a = W(() => {
|
|
2878
|
+
c.current && clearTimeout(c.current), c.current = null, l(!1);
|
|
2804
2879
|
}, []);
|
|
2805
|
-
return /* @__PURE__ */
|
|
2806
|
-
open:
|
|
2880
|
+
return /* @__PURE__ */ r(Re.Provider, { value: {
|
|
2881
|
+
open: o,
|
|
2807
2882
|
show: d,
|
|
2808
2883
|
hide: a,
|
|
2809
2884
|
tooltipId: i,
|
|
2810
2885
|
placement: n
|
|
2811
|
-
}, children: /* @__PURE__ */
|
|
2812
|
-
|
|
2813
|
-
|
|
2886
|
+
}, children: /* @__PURE__ */ z("div", { ...x(k.div, fe.root), children: [
|
|
2887
|
+
e,
|
|
2888
|
+
o && /* @__PURE__ */ r("div", { id: i, role: "tooltip", ...x(k.div, fe.popup, fe[n]), children: t })
|
|
2814
2889
|
] }) });
|
|
2815
2890
|
}
|
|
2816
|
-
function
|
|
2817
|
-
children:
|
|
2891
|
+
function dn({
|
|
2892
|
+
children: e
|
|
2818
2893
|
}) {
|
|
2819
2894
|
const {
|
|
2820
|
-
open:
|
|
2895
|
+
open: t,
|
|
2821
2896
|
show: n,
|
|
2822
|
-
hide:
|
|
2823
|
-
tooltipId:
|
|
2824
|
-
} =
|
|
2825
|
-
return /* @__PURE__ */
|
|
2826
|
-
}
|
|
2827
|
-
const
|
|
2828
|
-
Root:
|
|
2829
|
-
Trigger:
|
|
2897
|
+
hide: s,
|
|
2898
|
+
tooltipId: o
|
|
2899
|
+
} = an();
|
|
2900
|
+
return /* @__PURE__ */ r("div", { onPointerEnter: n, onPointerLeave: s, onFocus: n, onBlur: s, "aria-describedby": t ? o : void 0, ...x(k.div), children: e });
|
|
2901
|
+
}
|
|
2902
|
+
const rr = {
|
|
2903
|
+
Root: un,
|
|
2904
|
+
Trigger: dn
|
|
2830
2905
|
}, O = {
|
|
2831
2906
|
base: {
|
|
2832
2907
|
k1xSpc: "x78zum5",
|
|
@@ -2881,7 +2956,7 @@ const Zn = {
|
|
|
2881
2956
|
kOIVth: "x281kem",
|
|
2882
2957
|
$$css: !0
|
|
2883
2958
|
}
|
|
2884
|
-
},
|
|
2959
|
+
}, gn = {
|
|
2885
2960
|
xs: O.gapXs,
|
|
2886
2961
|
sm: O.gapSm,
|
|
2887
2962
|
ms: O.gapMs,
|
|
@@ -2890,20 +2965,20 @@ const Zn = {
|
|
|
2890
2965
|
xl: O.gapXl,
|
|
2891
2966
|
xxl: O.gapXxl,
|
|
2892
2967
|
xxxl: O.gapXxxl
|
|
2893
|
-
},
|
|
2968
|
+
}, hn = {
|
|
2894
2969
|
start: O.alignStart,
|
|
2895
2970
|
center: O.alignCenter,
|
|
2896
2971
|
end: O.alignEnd,
|
|
2897
2972
|
stretch: O.alignStretch
|
|
2898
2973
|
};
|
|
2899
|
-
function
|
|
2900
|
-
gap:
|
|
2901
|
-
align:
|
|
2974
|
+
function sr({
|
|
2975
|
+
gap: e = "md",
|
|
2976
|
+
align: t = "stretch",
|
|
2902
2977
|
children: n
|
|
2903
2978
|
}) {
|
|
2904
|
-
return /* @__PURE__ */
|
|
2979
|
+
return /* @__PURE__ */ r("div", { ...x(k.div, O.base, gn[e], hn[t]), children: n });
|
|
2905
2980
|
}
|
|
2906
|
-
const
|
|
2981
|
+
const q = {
|
|
2907
2982
|
base: {
|
|
2908
2983
|
k1xSpc: "x78zum5",
|
|
2909
2984
|
kXwgrk: "x1q0g3np",
|
|
@@ -2978,34 +3053,34 @@ const I = {
|
|
|
2978
3053
|
kOIVth: "x281kem",
|
|
2979
3054
|
$$css: !0
|
|
2980
3055
|
}
|
|
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:
|
|
3056
|
+
}, pn = {
|
|
3057
|
+
xs: q.gapXs,
|
|
3058
|
+
sm: q.gapSm,
|
|
3059
|
+
ms: q.gapMs,
|
|
3060
|
+
md: q.gapMd,
|
|
3061
|
+
lg: q.gapLg,
|
|
3062
|
+
xl: q.gapXl,
|
|
3063
|
+
xxl: q.gapXxl,
|
|
3064
|
+
xxxl: q.gapXxxl
|
|
3065
|
+
}, fn = {
|
|
3066
|
+
start: q.alignStart,
|
|
3067
|
+
center: q.alignCenter,
|
|
3068
|
+
end: q.alignEnd,
|
|
3069
|
+
baseline: q.alignBaseline,
|
|
3070
|
+
stretch: q.alignStretch
|
|
3071
|
+
}, vn = {
|
|
3072
|
+
start: q.justifyStart,
|
|
3073
|
+
center: q.justifyCenter,
|
|
3074
|
+
end: q.justifyEnd,
|
|
3075
|
+
between: q.justifyBetween
|
|
3001
3076
|
};
|
|
3002
|
-
function
|
|
3003
|
-
gap:
|
|
3004
|
-
align:
|
|
3077
|
+
function or({
|
|
3078
|
+
gap: e = "sm",
|
|
3079
|
+
align: t = "center",
|
|
3005
3080
|
justify: n = "start",
|
|
3006
|
-
children:
|
|
3081
|
+
children: s
|
|
3007
3082
|
}) {
|
|
3008
|
-
return /* @__PURE__ */
|
|
3083
|
+
return /* @__PURE__ */ r("div", { ...x(k.div, q.base, pn[e], fn[t], vn[n]), children: s });
|
|
3009
3084
|
}
|
|
3010
3085
|
const T = {
|
|
3011
3086
|
base: {
|
|
@@ -3074,7 +3149,7 @@ const T = {
|
|
|
3074
3149
|
kOIVth: "x281kem",
|
|
3075
3150
|
$$css: !0
|
|
3076
3151
|
}
|
|
3077
|
-
},
|
|
3152
|
+
}, $n = {
|
|
3078
3153
|
xs: T.gapXs,
|
|
3079
3154
|
sm: T.gapSm,
|
|
3080
3155
|
ms: T.gapMs,
|
|
@@ -3083,25 +3158,25 @@ const T = {
|
|
|
3083
3158
|
xl: T.gapXl,
|
|
3084
3159
|
xxl: T.gapXxl,
|
|
3085
3160
|
xxxl: T.gapXxxl
|
|
3086
|
-
},
|
|
3161
|
+
}, mn = {
|
|
3087
3162
|
start: T.alignStart,
|
|
3088
3163
|
center: T.alignCenter,
|
|
3089
3164
|
end: T.alignEnd
|
|
3090
|
-
},
|
|
3165
|
+
}, bn = {
|
|
3091
3166
|
start: T.justifyStart,
|
|
3092
3167
|
center: T.justifyCenter,
|
|
3093
3168
|
end: T.justifyEnd,
|
|
3094
3169
|
between: T.justifyBetween
|
|
3095
3170
|
};
|
|
3096
|
-
function
|
|
3097
|
-
gap:
|
|
3098
|
-
align:
|
|
3171
|
+
function ir({
|
|
3172
|
+
gap: e = "sm",
|
|
3173
|
+
align: t = "start",
|
|
3099
3174
|
justify: n = "start",
|
|
3100
|
-
children:
|
|
3175
|
+
children: s
|
|
3101
3176
|
}) {
|
|
3102
|
-
return /* @__PURE__ */
|
|
3177
|
+
return /* @__PURE__ */ r("div", { ...x(k.div, T.base, $n[e], mn[t], bn[n]), children: s });
|
|
3103
3178
|
}
|
|
3104
|
-
const
|
|
3179
|
+
const yn = {
|
|
3105
3180
|
kumcoG: "xqketvx",
|
|
3106
3181
|
$$css: !0
|
|
3107
3182
|
}, E = {
|
|
@@ -3133,8 +3208,8 @@ const $n = {
|
|
|
3133
3208
|
kumcoG: "xu4o1vd",
|
|
3134
3209
|
$$css: !0
|
|
3135
3210
|
},
|
|
3136
|
-
autoFit: (
|
|
3137
|
-
"--x-gridTemplateColumns": `repeat(auto-fit, minmax(${
|
|
3211
|
+
autoFit: (e) => [yn, {
|
|
3212
|
+
"--x-gridTemplateColumns": `repeat(auto-fit, minmax(${e}, 1fr))` != null ? `repeat(auto-fit, minmax(${e}, 1fr))` : void 0
|
|
3138
3213
|
}],
|
|
3139
3214
|
gapXs: {
|
|
3140
3215
|
kOIVth: "xfrqhcj",
|
|
@@ -3168,7 +3243,7 @@ const $n = {
|
|
|
3168
3243
|
kOIVth: "x281kem",
|
|
3169
3244
|
$$css: !0
|
|
3170
3245
|
}
|
|
3171
|
-
},
|
|
3246
|
+
}, wn = {
|
|
3172
3247
|
xs: E.gapXs,
|
|
3173
3248
|
sm: E.gapSm,
|
|
3174
3249
|
ms: E.gapMs,
|
|
@@ -3177,7 +3252,7 @@ const $n = {
|
|
|
3177
3252
|
xl: E.gapXl,
|
|
3178
3253
|
xxl: E.gapXxl,
|
|
3179
3254
|
xxxl: E.gapXxxl
|
|
3180
|
-
},
|
|
3255
|
+
}, Sn = {
|
|
3181
3256
|
1: E.col1,
|
|
3182
3257
|
2: E.col2,
|
|
3183
3258
|
3: E.col3,
|
|
@@ -3185,22 +3260,22 @@ const $n = {
|
|
|
3185
3260
|
5: E.col5,
|
|
3186
3261
|
6: E.col6
|
|
3187
3262
|
};
|
|
3188
|
-
function
|
|
3189
|
-
gap:
|
|
3190
|
-
columns:
|
|
3263
|
+
function cr({
|
|
3264
|
+
gap: e = "md",
|
|
3265
|
+
columns: t,
|
|
3191
3266
|
minColumnWidth: n,
|
|
3192
|
-
children:
|
|
3267
|
+
children: s
|
|
3193
3268
|
}) {
|
|
3194
|
-
const
|
|
3195
|
-
return /* @__PURE__ */
|
|
3269
|
+
const o = n ? E.autoFit(n) : t ? Sn[t] : void 0;
|
|
3270
|
+
return /* @__PURE__ */ r("div", { ...x(k.div, E.base, wn[e], o), children: s });
|
|
3196
3271
|
}
|
|
3197
|
-
function
|
|
3272
|
+
function lr(e = {}) {
|
|
3198
3273
|
const {
|
|
3199
|
-
compactBelow:
|
|
3274
|
+
compactBelow: t = 480,
|
|
3200
3275
|
spaciousAbove: n = 768
|
|
3201
|
-
} =
|
|
3202
|
-
return
|
|
3203
|
-
const i =
|
|
3276
|
+
} = e, s = w(null), [o, l] = G("default");
|
|
3277
|
+
return H(() => {
|
|
3278
|
+
const i = s.current;
|
|
3204
3279
|
if (!i) return;
|
|
3205
3280
|
let c = null;
|
|
3206
3281
|
const d = new ResizeObserver((a) => {
|
|
@@ -3208,57 +3283,58 @@ function sr(t = {}) {
|
|
|
3208
3283
|
const g = a[0];
|
|
3209
3284
|
if (!g) return;
|
|
3210
3285
|
const u = g.contentBoxSize?.[0]?.inlineSize ?? g.contentRect.width;
|
|
3211
|
-
u <
|
|
3286
|
+
u < t ? l("compact") : u >= n ? l("spacious") : l("default");
|
|
3212
3287
|
});
|
|
3213
3288
|
});
|
|
3214
3289
|
return d.observe(i), () => {
|
|
3215
3290
|
d.disconnect(), c !== null && cancelAnimationFrame(c);
|
|
3216
3291
|
};
|
|
3217
|
-
}, [
|
|
3218
|
-
ref:
|
|
3219
|
-
size:
|
|
3292
|
+
}, [t, n]), {
|
|
3293
|
+
ref: s,
|
|
3294
|
+
size: o
|
|
3220
3295
|
};
|
|
3221
3296
|
}
|
|
3222
3297
|
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
|
-
|
|
3298
|
+
zn as Alert,
|
|
3299
|
+
In as Badge,
|
|
3300
|
+
qn as Button,
|
|
3301
|
+
Wn as Card,
|
|
3302
|
+
Hn as Checkbox,
|
|
3303
|
+
ir as Cluster,
|
|
3304
|
+
Gn as EmptyState,
|
|
3305
|
+
Tn as Field,
|
|
3306
|
+
cr as Grid,
|
|
3307
|
+
Ln as Heading,
|
|
3308
|
+
ve as Icon,
|
|
3309
|
+
or as Inline,
|
|
3310
|
+
En as Input,
|
|
3311
|
+
Vn as InputGroup,
|
|
3312
|
+
An as LinkButton,
|
|
3313
|
+
Nn as Menu,
|
|
3314
|
+
On as ScrollArea,
|
|
3315
|
+
Cn as Select,
|
|
3316
|
+
Bn as SideNav,
|
|
3317
|
+
Dn as Spinner,
|
|
3318
|
+
sr as Stack,
|
|
3319
|
+
Rn as StatusIcon,
|
|
3320
|
+
Xn as Table,
|
|
3321
|
+
Yn as Tabs,
|
|
3322
|
+
nr as Text,
|
|
3323
|
+
Jn as Textarea,
|
|
3324
|
+
tr as ThemeProvider,
|
|
3325
|
+
rr as Tooltip,
|
|
3326
|
+
Pn as colors,
|
|
3327
|
+
on as highContrastShadows,
|
|
3328
|
+
sn as highContrastTheme,
|
|
3329
|
+
Kn as layoutSpacing,
|
|
3330
|
+
rn as lightShadows,
|
|
3331
|
+
nn as lightTheme,
|
|
3332
|
+
Qn as radii,
|
|
3333
|
+
er as shadows,
|
|
3334
|
+
Fn as spacing,
|
|
3335
|
+
Zn as typePresets,
|
|
3336
|
+
_n as typeScale,
|
|
3337
|
+
Un as typography,
|
|
3338
|
+
lr as useContainerQuery
|
|
3263
3339
|
};
|
|
3264
3340
|
//# sourceMappingURL=index.js.map
|