@gnome-ui/react 1.15.0 → 1.17.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/README.md +2 -0
- package/dist/components/Blockquote/Blockquote.d.ts +41 -0
- package/dist/components/Blockquote/index.d.ts +2 -0
- package/dist/components/ProgressBar/ProgressBar.d.ts +10 -1
- package/dist/components/ProgressBar/index.d.ts +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +694 -644
- package/dist/index.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2,6 +2,48 @@ import { Fragment as e, jsx as t, jsxs as n } from "react/jsx-runtime";
|
|
|
2
2
|
import { Children as r, cloneElement as i, createContext as a, isValidElement as o, useCallback as s, useContext as c, useEffect as l, useId as u, useRef as d, useState as f } from "react";
|
|
3
3
|
import { createPortal as p } from "react-dom";
|
|
4
4
|
var m = {
|
|
5
|
+
blockquote: "_blockquote_j7x50_3",
|
|
6
|
+
body: "_body_j7x50_15",
|
|
7
|
+
icon: "_icon_j7x50_21",
|
|
8
|
+
content: "_content_j7x50_28",
|
|
9
|
+
footer: "_footer_j7x50_36",
|
|
10
|
+
cite: "_cite_j7x50_42",
|
|
11
|
+
default: "_default_j7x50_48",
|
|
12
|
+
info: "_info_j7x50_52",
|
|
13
|
+
warning: "_warning_j7x50_61",
|
|
14
|
+
error: "_error_j7x50_70",
|
|
15
|
+
success: "_success_j7x50_79"
|
|
16
|
+
};
|
|
17
|
+
//#endregion
|
|
18
|
+
//#region src/components/Blockquote/Blockquote.tsx
|
|
19
|
+
function h({ variant: e = "default", icon: r, cite: i, children: a, className: o, ...s }) {
|
|
20
|
+
return /* @__PURE__ */ n("blockquote", {
|
|
21
|
+
className: [
|
|
22
|
+
m.blockquote,
|
|
23
|
+
m[e],
|
|
24
|
+
o
|
|
25
|
+
].filter(Boolean).join(" "),
|
|
26
|
+
...s,
|
|
27
|
+
children: [/* @__PURE__ */ n("div", {
|
|
28
|
+
className: m.body,
|
|
29
|
+
children: [r && /* @__PURE__ */ t("span", {
|
|
30
|
+
className: m.icon,
|
|
31
|
+
"aria-hidden": "true",
|
|
32
|
+
children: r
|
|
33
|
+
}), /* @__PURE__ */ t("p", {
|
|
34
|
+
className: m.content,
|
|
35
|
+
children: a
|
|
36
|
+
})]
|
|
37
|
+
}), i !== void 0 && /* @__PURE__ */ t("footer", {
|
|
38
|
+
className: m.footer,
|
|
39
|
+
children: /* @__PURE__ */ t("cite", {
|
|
40
|
+
className: m.cite,
|
|
41
|
+
children: i
|
|
42
|
+
})
|
|
43
|
+
})]
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
var g = {
|
|
5
47
|
button: "_button_1qgdy_1",
|
|
6
48
|
pill: "_pill_1qgdy_52",
|
|
7
49
|
circular: "_circular_1qgdy_59",
|
|
@@ -16,14 +58,14 @@ var m = {
|
|
|
16
58
|
};
|
|
17
59
|
//#endregion
|
|
18
60
|
//#region src/components/Button/Button.tsx
|
|
19
|
-
function
|
|
61
|
+
function _({ variant: e = "default", size: t = "md", shape: r = "default", osd: i = !1, leadingIcon: a, trailingIcon: o, children: s, className: c, ...l }) {
|
|
20
62
|
return /* @__PURE__ */ n("button", {
|
|
21
63
|
className: [
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
t === "md" ? null :
|
|
25
|
-
r === "default" ? null :
|
|
26
|
-
i ?
|
|
64
|
+
g.button,
|
|
65
|
+
g[e],
|
|
66
|
+
t === "md" ? null : g[t],
|
|
67
|
+
r === "default" ? null : g[r],
|
|
68
|
+
i ? g.osd : null,
|
|
27
69
|
c
|
|
28
70
|
].filter(Boolean).join(" "),
|
|
29
71
|
...l,
|
|
@@ -36,20 +78,20 @@ function h({ variant: e = "default", size: t = "md", shape: r = "default", osd:
|
|
|
36
78
|
}
|
|
37
79
|
//#endregion
|
|
38
80
|
//#region src/components/Text/Text.module.css
|
|
39
|
-
var
|
|
40
|
-
text:
|
|
81
|
+
var v = "_text_102e3_1", y = "_heading_102e3_41", b = "_body_102e3_48", x = "_document_102e3_55", S = "_caption_102e3_62", C = "_monospace_102e3_78", w = "_numeric_102e3_85", T = {
|
|
82
|
+
text: v,
|
|
41
83
|
"large-title": "_large-title_102e3_9",
|
|
42
84
|
"title-1": "_title-1_102e3_16",
|
|
43
85
|
"title-2": "_title-2_102e3_22",
|
|
44
86
|
"title-3": "_title-3_102e3_28",
|
|
45
87
|
"title-4": "_title-4_102e3_34",
|
|
46
|
-
heading:
|
|
47
|
-
body:
|
|
48
|
-
document:
|
|
49
|
-
caption:
|
|
88
|
+
heading: y,
|
|
89
|
+
body: b,
|
|
90
|
+
document: x,
|
|
91
|
+
caption: S,
|
|
50
92
|
"caption-heading": "_caption-heading_102e3_69",
|
|
51
|
-
monospace:
|
|
52
|
-
numeric:
|
|
93
|
+
monospace: C,
|
|
94
|
+
numeric: w,
|
|
53
95
|
"color-default": "_color-default_102e3_95",
|
|
54
96
|
"color-dim": "_color-dim_102e3_99",
|
|
55
97
|
"color-accent": "_color-accent_102e3_103",
|
|
@@ -57,7 +99,7 @@ var g = "_text_102e3_1", _ = "_heading_102e3_41", v = "_body_102e3_48", y = "_do
|
|
|
57
99
|
"color-success": "_color-success_102e3_111",
|
|
58
100
|
"color-warning": "_color-warning_102e3_115",
|
|
59
101
|
"color-error": "_color-error_102e3_119"
|
|
60
|
-
},
|
|
102
|
+
}, E = {
|
|
61
103
|
"large-title": "h1",
|
|
62
104
|
"title-1": "h1",
|
|
63
105
|
"title-2": "h2",
|
|
@@ -71,12 +113,12 @@ var g = "_text_102e3_1", _ = "_heading_102e3_41", v = "_body_102e3_48", y = "_do
|
|
|
71
113
|
monospace: "code",
|
|
72
114
|
numeric: "span"
|
|
73
115
|
};
|
|
74
|
-
function
|
|
75
|
-
return /* @__PURE__ */ t(r ??
|
|
116
|
+
function D({ variant: e = "body", color: n = "default", as: r, className: i, children: a, ...o }) {
|
|
117
|
+
return /* @__PURE__ */ t(r ?? E[e], {
|
|
76
118
|
className: [
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
119
|
+
T.text,
|
|
120
|
+
T[e],
|
|
121
|
+
T[`color-${n}`],
|
|
80
122
|
i
|
|
81
123
|
].filter(Boolean).join(" "),
|
|
82
124
|
...o,
|
|
@@ -85,29 +127,29 @@ function T({ variant: e = "body", color: n = "default", as: r, className: i, chi
|
|
|
85
127
|
}
|
|
86
128
|
//#endregion
|
|
87
129
|
//#region src/components/Card/Card.module.css
|
|
88
|
-
var
|
|
89
|
-
card:
|
|
130
|
+
var O = "_card_7f351_1", k = "_interactive_7f351_19", A = {
|
|
131
|
+
card: O,
|
|
90
132
|
"padding-none": "_padding-none_7f351_12",
|
|
91
133
|
"padding-sm": "_padding-sm_7f351_13",
|
|
92
134
|
"padding-md": "_padding-md_7f351_14",
|
|
93
135
|
"padding-lg": "_padding-lg_7f351_15",
|
|
94
|
-
interactive:
|
|
136
|
+
interactive: k
|
|
95
137
|
};
|
|
96
138
|
//#endregion
|
|
97
139
|
//#region src/components/Card/Card.tsx
|
|
98
|
-
function
|
|
140
|
+
function j({ interactive: e = !1, padding: n = "md", as: r, className: i, children: a, ...o }) {
|
|
99
141
|
return /* @__PURE__ */ t(r ?? (e ? "button" : "div"), {
|
|
100
142
|
className: [
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
e ?
|
|
143
|
+
A.card,
|
|
144
|
+
A[`padding-${n}`],
|
|
145
|
+
e ? A.interactive : null,
|
|
104
146
|
i
|
|
105
147
|
].filter(Boolean).join(" "),
|
|
106
148
|
...o,
|
|
107
149
|
children: a
|
|
108
150
|
});
|
|
109
151
|
}
|
|
110
|
-
var
|
|
152
|
+
var M = {
|
|
111
153
|
spinner: "_spinner_101bb_3",
|
|
112
154
|
spin: "_spin_101bb_3",
|
|
113
155
|
sm: "_sm_101bb_15",
|
|
@@ -116,10 +158,10 @@ var A = {
|
|
|
116
158
|
};
|
|
117
159
|
//#endregion
|
|
118
160
|
//#region src/components/Spinner/Spinner.tsx
|
|
119
|
-
function
|
|
161
|
+
function N({ size: e = "md", label: n = "Loading…", className: r, ...i }) {
|
|
120
162
|
let a = [
|
|
121
|
-
|
|
122
|
-
|
|
163
|
+
M.spinner,
|
|
164
|
+
M[e],
|
|
123
165
|
r
|
|
124
166
|
].filter(Boolean).join(" ");
|
|
125
167
|
return /* @__PURE__ */ t("span", {
|
|
@@ -130,7 +172,7 @@ function j({ size: e = "md", label: n = "Loading…", className: r, ...i }) {
|
|
|
130
172
|
...i
|
|
131
173
|
});
|
|
132
174
|
}
|
|
133
|
-
var
|
|
175
|
+
var P = {
|
|
134
176
|
avatar: "_avatar_1f2cd_3",
|
|
135
177
|
sm: "_sm_1f2cd_17",
|
|
136
178
|
md: "_md_1f2cd_22",
|
|
@@ -147,7 +189,7 @@ var M = {
|
|
|
147
189
|
"color-brown": "_color-brown_1f2cd_75",
|
|
148
190
|
"color-teal": "_color-teal_1f2cd_76",
|
|
149
191
|
"color-slate": "_color-slate_1f2cd_77"
|
|
150
|
-
},
|
|
192
|
+
}, ee = [
|
|
151
193
|
"blue",
|
|
152
194
|
"green",
|
|
153
195
|
"yellow",
|
|
@@ -158,20 +200,20 @@ var M = {
|
|
|
158
200
|
"teal",
|
|
159
201
|
"slate"
|
|
160
202
|
];
|
|
161
|
-
function
|
|
203
|
+
function te(e) {
|
|
162
204
|
let t = 0;
|
|
163
205
|
for (let n = 0; n < e.length; n++) t = t * 31 + e.charCodeAt(n) >>> 0;
|
|
164
|
-
return
|
|
206
|
+
return ee[t % ee.length];
|
|
165
207
|
}
|
|
166
|
-
function
|
|
208
|
+
function ne(e) {
|
|
167
209
|
let t = e.trim().split(/\s+/).filter(Boolean);
|
|
168
210
|
return t.length === 0 ? "" : t.length === 1 ? t[0].charAt(0).toUpperCase() : t[0].charAt(0).toUpperCase() + t[t.length - 1].charAt(0).toUpperCase();
|
|
169
211
|
}
|
|
170
|
-
function
|
|
171
|
-
let c = a ?? (e ?
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
n ? null :
|
|
212
|
+
function re({ name: e = "", src: n, alt: r, size: i = "md", color: a, className: o, ...s }) {
|
|
213
|
+
let c = a ?? (e ? te(e) : "blue"), l = ne(e), u = [
|
|
214
|
+
P.avatar,
|
|
215
|
+
P[i],
|
|
216
|
+
n ? null : P[`color-${c}`],
|
|
175
217
|
o
|
|
176
218
|
].filter(Boolean).join(" ");
|
|
177
219
|
return /* @__PURE__ */ t("span", {
|
|
@@ -182,25 +224,25 @@ function te({ name: e = "", src: n, alt: r, size: i = "md", color: a, className:
|
|
|
182
224
|
children: n ? /* @__PURE__ */ t("img", {
|
|
183
225
|
src: n,
|
|
184
226
|
alt: r ?? e,
|
|
185
|
-
className:
|
|
227
|
+
className: P.image
|
|
186
228
|
}) : /* @__PURE__ */ t("span", {
|
|
187
229
|
"aria-hidden": "true",
|
|
188
|
-
className:
|
|
230
|
+
className: P.initials,
|
|
189
231
|
children: l
|
|
190
232
|
})
|
|
191
233
|
});
|
|
192
234
|
}
|
|
193
|
-
var
|
|
235
|
+
var ie = {
|
|
194
236
|
separator: "_separator_w9b4s_3",
|
|
195
237
|
horizontal: "_horizontal_w9b4s_12",
|
|
196
238
|
vertical: "_vertical_w9b4s_20"
|
|
197
239
|
};
|
|
198
240
|
//#endregion
|
|
199
241
|
//#region src/components/Separator/Separator.tsx
|
|
200
|
-
function
|
|
242
|
+
function ae({ orientation: e = "horizontal", className: n, ...r }) {
|
|
201
243
|
let i = [
|
|
202
|
-
|
|
203
|
-
e === "vertical" ?
|
|
244
|
+
ie.separator,
|
|
245
|
+
e === "vertical" ? ie.vertical : ie.horizontal,
|
|
204
246
|
n
|
|
205
247
|
].filter(Boolean).join(" ");
|
|
206
248
|
return e === "vertical" ? /* @__PURE__ */ t("div", {
|
|
@@ -215,32 +257,32 @@ function re({ orientation: e = "horizontal", className: n, ...r }) {
|
|
|
215
257
|
}
|
|
216
258
|
//#endregion
|
|
217
259
|
//#region src/components/Switch/Switch.module.css
|
|
218
|
-
var
|
|
260
|
+
var oe = { switch: "_switch_1h6fk_3" };
|
|
219
261
|
//#endregion
|
|
220
262
|
//#region src/components/Switch/Switch.tsx
|
|
221
|
-
function
|
|
263
|
+
function se({ className: e, ...n }) {
|
|
222
264
|
return /* @__PURE__ */ t("input", {
|
|
223
265
|
type: "checkbox",
|
|
224
266
|
role: "switch",
|
|
225
|
-
className: [
|
|
267
|
+
className: [oe.switch, e].filter(Boolean).join(" "),
|
|
226
268
|
...n
|
|
227
269
|
});
|
|
228
270
|
}
|
|
229
|
-
var
|
|
271
|
+
var ce = { checkbox: "_checkbox_jnffk_3" };
|
|
230
272
|
//#endregion
|
|
231
273
|
//#region src/components/Checkbox/Checkbox.tsx
|
|
232
|
-
function
|
|
274
|
+
function le({ indeterminate: e = !1, className: n, ...r }) {
|
|
233
275
|
let i = d(null);
|
|
234
276
|
return l(() => {
|
|
235
277
|
i.current && (i.current.indeterminate = e);
|
|
236
278
|
}, [e]), /* @__PURE__ */ t("input", {
|
|
237
279
|
ref: i,
|
|
238
280
|
type: "checkbox",
|
|
239
|
-
className: [
|
|
281
|
+
className: [ce.checkbox, n].filter(Boolean).join(" "),
|
|
240
282
|
...r
|
|
241
283
|
});
|
|
242
284
|
}
|
|
243
|
-
var
|
|
285
|
+
var F = {
|
|
244
286
|
wrapper: "_wrapper_q91d8_3",
|
|
245
287
|
disabled: "_disabled_q91d8_9",
|
|
246
288
|
label: "_label_q91d8_15",
|
|
@@ -251,14 +293,14 @@ var ce = {
|
|
|
251
293
|
};
|
|
252
294
|
//#endregion
|
|
253
295
|
//#region src/components/TextField/TextField.tsx
|
|
254
|
-
function
|
|
296
|
+
function ue({ label: e, helperText: r, error: i, id: a, className: o, disabled: s, ...c }) {
|
|
255
297
|
let l = u(), d = a ?? l, f = `${d}-help`;
|
|
256
298
|
return /* @__PURE__ */ n("div", {
|
|
257
|
-
className: [
|
|
299
|
+
className: [F.wrapper, s ? F.disabled : null].filter(Boolean).join(" "),
|
|
258
300
|
children: [
|
|
259
301
|
e && /* @__PURE__ */ t("label", {
|
|
260
302
|
htmlFor: d,
|
|
261
|
-
className:
|
|
303
|
+
className: F.label,
|
|
262
304
|
children: e
|
|
263
305
|
}),
|
|
264
306
|
/* @__PURE__ */ t("input", {
|
|
@@ -267,97 +309,105 @@ function le({ label: e, helperText: r, error: i, id: a, className: o, disabled:
|
|
|
267
309
|
"aria-describedby": i || r ? f : void 0,
|
|
268
310
|
"aria-invalid": i ? !0 : void 0,
|
|
269
311
|
className: [
|
|
270
|
-
|
|
271
|
-
i ?
|
|
312
|
+
F.input,
|
|
313
|
+
i ? F.errorInput : null,
|
|
272
314
|
o
|
|
273
315
|
].filter(Boolean).join(" "),
|
|
274
316
|
...c
|
|
275
317
|
}),
|
|
276
318
|
(i || r) && /* @__PURE__ */ t("span", {
|
|
277
319
|
id: f,
|
|
278
|
-
className: [
|
|
320
|
+
className: [F.hint, i ? F.errorHint : null].filter(Boolean).join(" "),
|
|
279
321
|
children: i ?? r
|
|
280
322
|
})
|
|
281
323
|
]
|
|
282
324
|
});
|
|
283
325
|
}
|
|
284
|
-
var
|
|
326
|
+
var de = { radio: "_radio_1vybt_3" };
|
|
285
327
|
//#endregion
|
|
286
328
|
//#region src/components/RadioButton/RadioButton.tsx
|
|
287
|
-
function
|
|
329
|
+
function fe({ className: e, ...n }) {
|
|
288
330
|
return /* @__PURE__ */ t("input", {
|
|
289
331
|
type: "radio",
|
|
290
|
-
className: [
|
|
332
|
+
className: [de.radio, e].filter(Boolean).join(" "),
|
|
291
333
|
...n
|
|
292
334
|
});
|
|
293
335
|
}
|
|
294
|
-
var
|
|
295
|
-
track: "
|
|
296
|
-
fill: "
|
|
297
|
-
|
|
298
|
-
|
|
336
|
+
var pe = {
|
|
337
|
+
track: "_track_endpr_3",
|
|
338
|
+
fill: "_fill_endpr_14",
|
|
339
|
+
accent: "_accent_endpr_23",
|
|
340
|
+
success: "_success_endpr_24",
|
|
341
|
+
warning: "_warning_endpr_25",
|
|
342
|
+
error: "_error_endpr_26",
|
|
343
|
+
indeterminate: "_indeterminate_endpr_30",
|
|
344
|
+
pulse: "_pulse_endpr_1"
|
|
299
345
|
};
|
|
300
346
|
//#endregion
|
|
301
347
|
//#region src/components/ProgressBar/ProgressBar.tsx
|
|
302
|
-
function
|
|
303
|
-
let
|
|
348
|
+
function me({ value: e, variant: n = "accent", className: r, "aria-label": i, "aria-labelledby": a, ...o }) {
|
|
349
|
+
let s = e == null, c = s ? void 0 : Math.min(1, Math.max(0, e)), l = c === void 0 ? void 0 : c * 100;
|
|
304
350
|
return /* @__PURE__ */ t("div", {
|
|
305
351
|
role: "progressbar",
|
|
306
|
-
"aria-label":
|
|
307
|
-
"aria-labelledby":
|
|
308
|
-
"aria-valuenow":
|
|
309
|
-
"aria-valuemin":
|
|
310
|
-
"aria-valuemax":
|
|
311
|
-
className: [
|
|
312
|
-
...
|
|
352
|
+
"aria-label": i,
|
|
353
|
+
"aria-labelledby": a,
|
|
354
|
+
"aria-valuenow": c === void 0 ? void 0 : Math.round(l),
|
|
355
|
+
"aria-valuemin": s ? void 0 : 0,
|
|
356
|
+
"aria-valuemax": s ? void 0 : 100,
|
|
357
|
+
className: [pe.track, r].filter(Boolean).join(" "),
|
|
358
|
+
...o,
|
|
313
359
|
children: /* @__PURE__ */ t("div", {
|
|
314
|
-
className: [
|
|
315
|
-
|
|
360
|
+
className: [
|
|
361
|
+
pe.fill,
|
|
362
|
+
pe[n],
|
|
363
|
+
s ? pe.indeterminate : null
|
|
364
|
+
].filter(Boolean).join(" "),
|
|
365
|
+
style: s ? void 0 : { width: `${l}%` }
|
|
316
366
|
})
|
|
317
367
|
});
|
|
318
368
|
}
|
|
319
369
|
//#endregion
|
|
320
370
|
//#region src/components/Banner/Banner.module.css
|
|
321
|
-
var
|
|
322
|
-
banner:
|
|
323
|
-
message:
|
|
324
|
-
actions:
|
|
325
|
-
actionBtn:
|
|
326
|
-
dismissBtn:
|
|
327
|
-
info:
|
|
371
|
+
var he = "_banner_1x3b0_3", ge = "_message_1x3b0_17", _e = "_actions_1x3b0_24", ve = "_actionBtn_1x3b0_33", ye = "_dismissBtn_1x3b0_55", be = "_info_1x3b0_85", xe = "_warning_1x3b0_99", Se = "_error_1x3b0_113", Ce = "_success_1x3b0_127", we = {
|
|
372
|
+
banner: he,
|
|
373
|
+
message: ge,
|
|
374
|
+
actions: _e,
|
|
375
|
+
actionBtn: ve,
|
|
376
|
+
dismissBtn: ye,
|
|
377
|
+
info: be,
|
|
328
378
|
"actionBtn-info": "_actionBtn-info_1x3b0_90",
|
|
329
|
-
warning:
|
|
379
|
+
warning: xe,
|
|
330
380
|
"actionBtn-warning": "_actionBtn-warning_1x3b0_104",
|
|
331
|
-
error:
|
|
381
|
+
error: Se,
|
|
332
382
|
"actionBtn-error": "_actionBtn-error_1x3b0_118",
|
|
333
|
-
success:
|
|
383
|
+
success: Ce,
|
|
334
384
|
"actionBtn-success": "_actionBtn-success_1x3b0_132"
|
|
335
385
|
};
|
|
336
386
|
//#endregion
|
|
337
387
|
//#region src/components/Banner/Banner.tsx
|
|
338
|
-
function
|
|
388
|
+
function Te({ variant: e = "info", children: r, actionLabel: i, onAction: a, dismissible: o = !1, onDismiss: s, className: c, ...l }) {
|
|
339
389
|
return /* @__PURE__ */ n("div", {
|
|
340
390
|
role: "status",
|
|
341
391
|
"aria-live": "polite",
|
|
342
392
|
className: [
|
|
343
|
-
|
|
344
|
-
|
|
393
|
+
we.banner,
|
|
394
|
+
we[e],
|
|
345
395
|
c
|
|
346
396
|
].filter(Boolean).join(" "),
|
|
347
397
|
...l,
|
|
348
398
|
children: [/* @__PURE__ */ t("span", {
|
|
349
|
-
className:
|
|
399
|
+
className: we.message,
|
|
350
400
|
children: r
|
|
351
401
|
}), (i || o) && /* @__PURE__ */ n("span", {
|
|
352
|
-
className:
|
|
402
|
+
className: we.actions,
|
|
353
403
|
children: [i && /* @__PURE__ */ t("button", {
|
|
354
404
|
type: "button",
|
|
355
|
-
className: [
|
|
405
|
+
className: [we.actionBtn, we[`actionBtn-${e}`]].filter(Boolean).join(" "),
|
|
356
406
|
onClick: a,
|
|
357
407
|
children: i
|
|
358
408
|
}), o && /* @__PURE__ */ t("button", {
|
|
359
409
|
type: "button",
|
|
360
|
-
className:
|
|
410
|
+
className: we.dismissBtn,
|
|
361
411
|
onClick: s,
|
|
362
412
|
"aria-label": "Dismiss",
|
|
363
413
|
children: /* @__PURE__ */ t("svg", {
|
|
@@ -372,7 +422,7 @@ function we({ variant: e = "info", children: r, actionLabel: i, onAction: a, dis
|
|
|
372
422
|
})]
|
|
373
423
|
});
|
|
374
424
|
}
|
|
375
|
-
var
|
|
425
|
+
var Ee = {
|
|
376
426
|
headerBar: "_headerBar_1rr5r_3",
|
|
377
427
|
flat: "_flat_1rr5r_22",
|
|
378
428
|
slot: "_slot_1rr5r_29",
|
|
@@ -382,35 +432,35 @@ var Te = {
|
|
|
382
432
|
};
|
|
383
433
|
//#endregion
|
|
384
434
|
//#region src/components/HeaderBar/HeaderBar.tsx
|
|
385
|
-
function
|
|
435
|
+
function De({ title: e, start: r, end: i, flat: a = !1, className: o, ...s }) {
|
|
386
436
|
return /* @__PURE__ */ n("header", {
|
|
387
437
|
className: [
|
|
388
|
-
|
|
389
|
-
a ?
|
|
438
|
+
Ee.headerBar,
|
|
439
|
+
a ? Ee.flat : null,
|
|
390
440
|
o
|
|
391
441
|
].filter(Boolean).join(" "),
|
|
392
442
|
...s,
|
|
393
443
|
children: [
|
|
394
444
|
/* @__PURE__ */ t("div", {
|
|
395
|
-
className:
|
|
445
|
+
className: Ee.slot,
|
|
396
446
|
children: r
|
|
397
447
|
}),
|
|
398
448
|
/* @__PURE__ */ t("div", {
|
|
399
|
-
className:
|
|
449
|
+
className: Ee.titleSlot,
|
|
400
450
|
"aria-live": "polite",
|
|
401
451
|
children: typeof e == "string" ? /* @__PURE__ */ t("span", {
|
|
402
|
-
className:
|
|
452
|
+
className: Ee.title,
|
|
403
453
|
children: e
|
|
404
454
|
}) : e
|
|
405
455
|
}),
|
|
406
456
|
/* @__PURE__ */ t("div", {
|
|
407
|
-
className: [
|
|
457
|
+
className: [Ee.slot, Ee.slotEnd].filter(Boolean).join(" "),
|
|
408
458
|
children: i
|
|
409
459
|
})
|
|
410
460
|
]
|
|
411
461
|
});
|
|
412
462
|
}
|
|
413
|
-
var
|
|
463
|
+
var Oe = {
|
|
414
464
|
footer: "_footer_10xz9_3",
|
|
415
465
|
flat: "_flat_10xz9_23",
|
|
416
466
|
slot: "_slot_10xz9_29",
|
|
@@ -419,31 +469,31 @@ var De = {
|
|
|
419
469
|
};
|
|
420
470
|
//#endregion
|
|
421
471
|
//#region src/components/Footer/Footer.tsx
|
|
422
|
-
function
|
|
472
|
+
function ke({ start: e, end: r, children: i, flat: a = !1, className: o, ...s }) {
|
|
423
473
|
return /* @__PURE__ */ n("footer", {
|
|
424
474
|
className: [
|
|
425
|
-
|
|
426
|
-
a ?
|
|
475
|
+
Oe.footer,
|
|
476
|
+
a ? Oe.flat : null,
|
|
427
477
|
o
|
|
428
478
|
].filter(Boolean).join(" "),
|
|
429
479
|
...s,
|
|
430
480
|
children: [
|
|
431
481
|
/* @__PURE__ */ t("div", {
|
|
432
|
-
className:
|
|
482
|
+
className: Oe.slot,
|
|
433
483
|
children: e
|
|
434
484
|
}),
|
|
435
485
|
i != null && /* @__PURE__ */ t("div", {
|
|
436
|
-
className:
|
|
486
|
+
className: Oe.center,
|
|
437
487
|
children: i
|
|
438
488
|
}),
|
|
439
489
|
/* @__PURE__ */ t("div", {
|
|
440
|
-
className: [
|
|
490
|
+
className: [Oe.slot, Oe.slotEnd].filter(Boolean).join(" "),
|
|
441
491
|
children: r
|
|
442
492
|
})
|
|
443
493
|
]
|
|
444
494
|
});
|
|
445
495
|
}
|
|
446
|
-
var
|
|
496
|
+
var Ae = {
|
|
447
497
|
wrapper: "_wrapper_1apop_3",
|
|
448
498
|
badge: "_badge_1apop_11",
|
|
449
499
|
anchored: "_anchored_1apop_32",
|
|
@@ -456,32 +506,32 @@ var ke = {
|
|
|
456
506
|
};
|
|
457
507
|
//#endregion
|
|
458
508
|
//#region src/components/Badge/Badge.tsx
|
|
459
|
-
function
|
|
509
|
+
function je({ variant: e = "accent", dot: r = !1, children: i, anchor: a, className: o, ...s }) {
|
|
460
510
|
let c = /* @__PURE__ */ t("span", {
|
|
461
511
|
className: [
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
r ?
|
|
465
|
-
a ?
|
|
512
|
+
Ae.badge,
|
|
513
|
+
Ae[e],
|
|
514
|
+
r ? Ae.dot : null,
|
|
515
|
+
a ? Ae.anchored : null,
|
|
466
516
|
o
|
|
467
517
|
].filter(Boolean).join(" "),
|
|
468
518
|
...s,
|
|
469
519
|
children: !r && i
|
|
470
520
|
});
|
|
471
521
|
return a ? /* @__PURE__ */ n("span", {
|
|
472
|
-
className:
|
|
522
|
+
className: Ae.wrapper,
|
|
473
523
|
children: [a, c]
|
|
474
524
|
}) : c;
|
|
475
525
|
}
|
|
476
526
|
//#endregion
|
|
477
527
|
//#region src/components/Icon/Icon.tsx
|
|
478
|
-
var
|
|
528
|
+
var Me = {
|
|
479
529
|
sm: 12,
|
|
480
530
|
md: 16,
|
|
481
531
|
lg: 20
|
|
482
532
|
};
|
|
483
|
-
function
|
|
484
|
-
let s =
|
|
533
|
+
function I({ icon: e, size: n = "md", label: r, width: i, height: a, ...o }) {
|
|
534
|
+
let s = Me[n];
|
|
485
535
|
return /* @__PURE__ */ t("svg", {
|
|
486
536
|
xmlns: "http://www.w3.org/2000/svg",
|
|
487
537
|
viewBox: e.viewBox,
|
|
@@ -502,43 +552,43 @@ function F({ icon: e, size: n = "md", label: r, width: i, height: a, ...o }) {
|
|
|
502
552
|
}
|
|
503
553
|
//#endregion
|
|
504
554
|
//#region ../icons/dist/index.js
|
|
505
|
-
var
|
|
555
|
+
var Ne = {
|
|
506
556
|
viewBox: "0 0 16 16",
|
|
507
557
|
paths: [{
|
|
508
558
|
d: "m2.5 5 5.5 6 5.5-6z",
|
|
509
559
|
fillRule: "evenodd"
|
|
510
560
|
}]
|
|
511
|
-
},
|
|
561
|
+
}, Pe = {
|
|
512
562
|
viewBox: "0 0 16 16",
|
|
513
563
|
paths: [{
|
|
514
564
|
d: "M3.293 3.293a1 1 0 0 1 1.414 0L8 6.586l3.293-3.293a1 1 0 1 1 1.414 1.414L9.414 8l3.293 3.293a1 1 0 0 1-1.414 1.414L8 9.414l-3.293 3.293a1 1 0 0 1-1.414-1.414L6.586 8 3.293 4.707a1 1 0 0 1 0-1.414z",
|
|
515
565
|
fillRule: "evenodd"
|
|
516
566
|
}]
|
|
517
|
-
},
|
|
567
|
+
}, Fe = {
|
|
518
568
|
viewBox: "0 0 16 16",
|
|
519
569
|
paths: [{
|
|
520
570
|
d: "M6.5 1a5.5 5.5 0 0 1 4.33 8.92l3.13 3.13-1.41 1.41-3.13-3.13A5.5 5.5 0 1 1 6.5 1zm0 2a3.5 3.5 0 1 0 0 7 3.5 3.5 0 0 0 0-7z",
|
|
521
571
|
fillRule: "evenodd"
|
|
522
572
|
}]
|
|
523
|
-
},
|
|
573
|
+
}, Ie = {
|
|
524
574
|
viewBox: "0 0 16 16",
|
|
525
575
|
paths: [{
|
|
526
576
|
d: "M8 3C4.5 3 1.5 5.667 0 8c1.5 2.333 4.5 5 8 5s6.5-2.667 8-5c-1.5-2.333-4.5-5-8-5zm0 8a3 3 0 1 1 0-6 3 3 0 0 1 0 6zm0-4.5a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3z",
|
|
527
577
|
fillRule: "evenodd"
|
|
528
578
|
}]
|
|
529
|
-
},
|
|
579
|
+
}, Le = {
|
|
530
580
|
viewBox: "0 0 16 16",
|
|
531
581
|
paths: [{
|
|
532
582
|
d: "M1.293 1.293a1 1 0 0 1 1.414 0l12 12a1 1 0 0 1-1.414 1.414l-1.88-1.88A8.8 8.8 0 0 1 8 13C4.5 13 1.5 10.333 0 8c.637-1.023 1.52-2.049 2.6-2.893L1.293 2.707a1 1 0 0 1 0-1.414zM5.03 6.444 7.09 8.505A1.5 1.5 0 0 0 9.494 6.91L7.432 4.848A3 3 0 0 0 5.03 6.444zM8 3c.645 0 1.27.083 1.867.237l-1.59 1.59A3 3 0 0 0 5.173 7.92L3.584 6.333C4.51 4.95 6.152 3 8 3zm5.4 2.107C14.48 5.951 15.363 6.977 16 8c-1.5 2.333-4.5 5-8 5a8.8 8.8 0 0 1-2.072-.249l1.538-1.538a3 3 0 0 0 3.703-3.703L12.81 5.87c.202.076.4.156.59.237z",
|
|
533
583
|
fillRule: "evenodd"
|
|
534
584
|
}]
|
|
535
|
-
},
|
|
585
|
+
}, Re = {
|
|
536
586
|
viewBox: "0 0 16 16",
|
|
537
587
|
paths: [{
|
|
538
588
|
d: "M13.5 3 6 11.5 2.5 8 1 9.5l5 5 9-10z",
|
|
539
589
|
fillRule: "evenodd"
|
|
540
590
|
}]
|
|
541
|
-
},
|
|
591
|
+
}, ze = {
|
|
542
592
|
wrapper: "_wrapper_1rkb1_3",
|
|
543
593
|
open: "_open_1rkb1_13",
|
|
544
594
|
bar: "_bar_1rkb1_20",
|
|
@@ -551,7 +601,7 @@ var Me = {
|
|
|
551
601
|
};
|
|
552
602
|
//#endregion
|
|
553
603
|
//#region src/components/SearchBar/SearchBar.tsx
|
|
554
|
-
function
|
|
604
|
+
function Be({ open: e, onClose: r, onClear: i, children: a, value: o, onChange: c, placeholder: u = "Search…", disabled: f, inline: p = !1, className: m, ...h }) {
|
|
555
605
|
let g = d(null);
|
|
556
606
|
l(() => {
|
|
557
607
|
if (e) {
|
|
@@ -564,23 +614,23 @@ function Re({ open: e, onClose: r, onClear: i, children: a, value: o, onChange:
|
|
|
564
614
|
}, [r, h]), v = o !== void 0 && o !== "";
|
|
565
615
|
return /* @__PURE__ */ n("div", {
|
|
566
616
|
className: [
|
|
567
|
-
|
|
568
|
-
e ?
|
|
617
|
+
ze.wrapper,
|
|
618
|
+
e ? ze.open : null,
|
|
569
619
|
m
|
|
570
620
|
].filter(Boolean).join(" "),
|
|
571
621
|
"aria-hidden": !e,
|
|
572
622
|
children: [/* @__PURE__ */ n("div", {
|
|
573
623
|
className: [
|
|
574
|
-
|
|
575
|
-
p ?
|
|
576
|
-
f ?
|
|
624
|
+
ze.bar,
|
|
625
|
+
p ? ze.inline : null,
|
|
626
|
+
f ? ze.disabled : null
|
|
577
627
|
].filter(Boolean).join(" "),
|
|
578
628
|
children: [
|
|
579
629
|
/* @__PURE__ */ t("span", {
|
|
580
|
-
className:
|
|
630
|
+
className: ze.searchIcon,
|
|
581
631
|
"aria-hidden": !0,
|
|
582
|
-
children: /* @__PURE__ */ t(
|
|
583
|
-
icon:
|
|
632
|
+
children: /* @__PURE__ */ t(I, {
|
|
633
|
+
icon: Fe,
|
|
584
634
|
size: "md"
|
|
585
635
|
})
|
|
586
636
|
}),
|
|
@@ -593,32 +643,32 @@ function Re({ open: e, onClose: r, onClear: i, children: a, value: o, onChange:
|
|
|
593
643
|
placeholder: u,
|
|
594
644
|
disabled: f,
|
|
595
645
|
tabIndex: e ? void 0 : -1,
|
|
596
|
-
className:
|
|
646
|
+
className: ze.input,
|
|
597
647
|
onKeyDown: _,
|
|
598
648
|
...h
|
|
599
649
|
}),
|
|
600
650
|
v && /* @__PURE__ */ t("button", {
|
|
601
651
|
type: "button",
|
|
602
|
-
className:
|
|
652
|
+
className: ze.clearButton,
|
|
603
653
|
"aria-label": "Clear search",
|
|
604
654
|
tabIndex: e ? void 0 : -1,
|
|
605
655
|
disabled: f,
|
|
606
656
|
onClick: () => {
|
|
607
657
|
i?.(), g.current?.focus();
|
|
608
658
|
},
|
|
609
|
-
children: /* @__PURE__ */ t(
|
|
610
|
-
icon:
|
|
659
|
+
children: /* @__PURE__ */ t(I, {
|
|
660
|
+
icon: Pe,
|
|
611
661
|
size: "md"
|
|
612
662
|
})
|
|
613
663
|
})
|
|
614
664
|
]
|
|
615
665
|
}), a && /* @__PURE__ */ t("div", {
|
|
616
|
-
className:
|
|
666
|
+
className: ze.filterRow,
|
|
617
667
|
children: a
|
|
618
668
|
})]
|
|
619
669
|
});
|
|
620
670
|
}
|
|
621
|
-
var
|
|
671
|
+
var Ve = {
|
|
622
672
|
page: "_page_cb4hq_3",
|
|
623
673
|
iconWrap: "_iconWrap_cb4hq_20",
|
|
624
674
|
title: "_title_cb4hq_33",
|
|
@@ -628,8 +678,8 @@ var ze = {
|
|
|
628
678
|
};
|
|
629
679
|
//#endregion
|
|
630
680
|
//#region src/components/StatusPage/StatusPage.tsx
|
|
631
|
-
function
|
|
632
|
-
let u = s ? 64 : 128, d = e ? /* @__PURE__ */ t(
|
|
681
|
+
function He({ icon: e, iconNode: r, title: i, description: a, children: o, compact: s = !1, className: c, ...l }) {
|
|
682
|
+
let u = s ? 64 : 128, d = e ? /* @__PURE__ */ t(I, {
|
|
633
683
|
icon: e,
|
|
634
684
|
width: u,
|
|
635
685
|
height: u,
|
|
@@ -637,27 +687,27 @@ function Be({ icon: e, iconNode: r, title: i, description: a, children: o, compa
|
|
|
637
687
|
}) : r ?? null;
|
|
638
688
|
return /* @__PURE__ */ n("div", {
|
|
639
689
|
className: [
|
|
640
|
-
|
|
641
|
-
s ?
|
|
690
|
+
Ve.page,
|
|
691
|
+
s ? Ve.compact : null,
|
|
642
692
|
c
|
|
643
693
|
].filter(Boolean).join(" "),
|
|
644
694
|
...l,
|
|
645
695
|
children: [
|
|
646
696
|
d && /* @__PURE__ */ t("div", {
|
|
647
|
-
className:
|
|
697
|
+
className: Ve.iconWrap,
|
|
648
698
|
"aria-hidden": "true",
|
|
649
699
|
children: d
|
|
650
700
|
}),
|
|
651
701
|
/* @__PURE__ */ t("p", {
|
|
652
|
-
className:
|
|
702
|
+
className: Ve.title,
|
|
653
703
|
children: i
|
|
654
704
|
}),
|
|
655
705
|
a && /* @__PURE__ */ t("p", {
|
|
656
|
-
className:
|
|
706
|
+
className: Ve.description,
|
|
657
707
|
children: a
|
|
658
708
|
}),
|
|
659
709
|
o && /* @__PURE__ */ t("div", {
|
|
660
|
-
className:
|
|
710
|
+
className: Ve.actions,
|
|
661
711
|
children: o
|
|
662
712
|
})
|
|
663
713
|
]
|
|
@@ -665,18 +715,18 @@ function Be({ icon: e, iconNode: r, title: i, description: a, children: o, compa
|
|
|
665
715
|
}
|
|
666
716
|
//#endregion
|
|
667
717
|
//#region src/hooks/useBreakpoint.ts
|
|
668
|
-
var
|
|
718
|
+
var Ue = {
|
|
669
719
|
narrow: 400,
|
|
670
720
|
medium: 550,
|
|
671
721
|
wide: 860
|
|
672
722
|
};
|
|
673
|
-
function
|
|
723
|
+
function We() {
|
|
674
724
|
let e = () => {
|
|
675
725
|
let e = typeof window < "u" ? window.innerWidth : 1280;
|
|
676
726
|
return {
|
|
677
|
-
isNarrow: e <=
|
|
678
|
-
isMedium: e <=
|
|
679
|
-
isWide: e <=
|
|
727
|
+
isNarrow: e <= Ue.narrow,
|
|
728
|
+
isMedium: e <= Ue.medium,
|
|
729
|
+
isWide: e <= Ue.wide,
|
|
680
730
|
width: e
|
|
681
731
|
};
|
|
682
732
|
}, [t, n] = f(e);
|
|
@@ -687,46 +737,46 @@ function He() {
|
|
|
687
737
|
}
|
|
688
738
|
//#endregion
|
|
689
739
|
//#region src/components/Sidebar/Sidebar.module.css
|
|
690
|
-
var
|
|
691
|
-
sidebar:
|
|
692
|
-
section:
|
|
693
|
-
sectionTitle:
|
|
694
|
-
list:
|
|
695
|
-
item:
|
|
696
|
-
itemBtn:
|
|
697
|
-
active:
|
|
698
|
-
itemIcon:
|
|
699
|
-
itemLabel:
|
|
700
|
-
itemSuffix:
|
|
701
|
-
contextMenu:
|
|
740
|
+
var Ge = "_sidebar_b80pp_3", Ke = "_section_b80pp_21", qe = "_sectionTitle_b80pp_33", Je = "_list_b80pp_47", Ye = "_item_b80pp_58", Xe = "_itemBtn_b80pp_64", Ze = "_active_b80pp_111", Qe = "_itemIcon_b80pp_127", $e = "_itemLabel_b80pp_140", et = "_itemSuffix_b80pp_150", tt = "_contextMenu_b80pp_159", nt = "_contextMenuItem_b80pp_183", rt = "_contextMenuDestructive_b80pp_219", it = "_searchWrap_b80pp_225", at = "_pageMode_b80pp_236", ot = "_dragOver_b80pp_243", st = "_collapsed_b80pp_251", ct = "_itemCollapsed_b80pp_262", L = {
|
|
741
|
+
sidebar: Ge,
|
|
742
|
+
section: Ke,
|
|
743
|
+
sectionTitle: qe,
|
|
744
|
+
list: Je,
|
|
745
|
+
item: Ye,
|
|
746
|
+
itemBtn: Xe,
|
|
747
|
+
active: Ze,
|
|
748
|
+
itemIcon: Qe,
|
|
749
|
+
itemLabel: $e,
|
|
750
|
+
itemSuffix: et,
|
|
751
|
+
contextMenu: tt,
|
|
702
752
|
"menu-in": "_menu-in_b80pp_1",
|
|
703
|
-
contextMenuItem:
|
|
704
|
-
contextMenuDestructive:
|
|
705
|
-
searchWrap:
|
|
706
|
-
pageMode:
|
|
707
|
-
dragOver:
|
|
708
|
-
collapsed:
|
|
709
|
-
itemCollapsed:
|
|
710
|
-
},
|
|
711
|
-
function
|
|
712
|
-
return c(
|
|
753
|
+
contextMenuItem: nt,
|
|
754
|
+
contextMenuDestructive: rt,
|
|
755
|
+
searchWrap: it,
|
|
756
|
+
pageMode: at,
|
|
757
|
+
dragOver: ot,
|
|
758
|
+
collapsed: st,
|
|
759
|
+
itemCollapsed: ct
|
|
760
|
+
}, lt = a(!1);
|
|
761
|
+
function ut() {
|
|
762
|
+
return c(lt);
|
|
713
763
|
}
|
|
714
|
-
var
|
|
715
|
-
function
|
|
764
|
+
var dt = a("");
|
|
765
|
+
function ft(e, t) {
|
|
716
766
|
let n = 0;
|
|
717
767
|
return r.forEach(e, (e) => {
|
|
718
768
|
if (!o(e)) return;
|
|
719
769
|
let r = e.props;
|
|
720
|
-
typeof r.label == "string" ? r.label.toLowerCase().includes(t.toLowerCase()) && n++ : r.children && (n +=
|
|
770
|
+
typeof r.label == "string" ? r.label.toLowerCase().includes(t.toLowerCase()) && n++ : r.children && (n += ft(r.children, t));
|
|
721
771
|
}), n;
|
|
722
772
|
}
|
|
723
|
-
function
|
|
724
|
-
let [u, d] = f(""), { isNarrow: p } =
|
|
773
|
+
function pt({ children: e, collapsed: r = !1, searchable: i, filter: a, onFilterChange: o, mode: s, className: c, ...l }) {
|
|
774
|
+
let [u, d] = f(""), { isNarrow: p } = We(), m = a !== void 0, h = m ? a : u, g = (e) => {
|
|
725
775
|
m || d(e), o?.(e);
|
|
726
|
-
}, _ = h.length > 0, v = s ?? (p ? "page" : "sidebar"), y = !_ ||
|
|
727
|
-
return /* @__PURE__ */ t(
|
|
776
|
+
}, _ = h.length > 0, v = s ?? (p ? "page" : "sidebar"), y = !_ || ft(e, h) > 0;
|
|
777
|
+
return /* @__PURE__ */ t(lt.Provider, {
|
|
728
778
|
value: r,
|
|
729
|
-
children: /* @__PURE__ */ t(
|
|
779
|
+
children: /* @__PURE__ */ t(dt.Provider, {
|
|
730
780
|
value: h,
|
|
731
781
|
children: /* @__PURE__ */ n("nav", {
|
|
732
782
|
className: [
|
|
@@ -738,7 +788,7 @@ function dt({ children: e, collapsed: r = !1, searchable: i, filter: a, onFilter
|
|
|
738
788
|
...l,
|
|
739
789
|
children: [i && /* @__PURE__ */ t("div", {
|
|
740
790
|
className: L.searchWrap,
|
|
741
|
-
children: /* @__PURE__ */ t(
|
|
791
|
+
children: /* @__PURE__ */ t(Be, {
|
|
742
792
|
open: !0,
|
|
743
793
|
value: h,
|
|
744
794
|
onChange: (e) => g(e.target.value),
|
|
@@ -746,7 +796,7 @@ function dt({ children: e, collapsed: r = !1, searchable: i, filter: a, onFilter
|
|
|
746
796
|
onClear: () => g(""),
|
|
747
797
|
inline: !0
|
|
748
798
|
})
|
|
749
|
-
}), _ && !y ? /* @__PURE__ */ t(
|
|
799
|
+
}), _ && !y ? /* @__PURE__ */ t(He, {
|
|
750
800
|
title: "No Results",
|
|
751
801
|
description: "No items match your search.",
|
|
752
802
|
compact: !0
|
|
@@ -757,7 +807,7 @@ function dt({ children: e, collapsed: r = !1, searchable: i, filter: a, onFilter
|
|
|
757
807
|
}
|
|
758
808
|
//#endregion
|
|
759
809
|
//#region src/components/Sidebar/SidebarSection.tsx
|
|
760
|
-
function
|
|
810
|
+
function mt({ title: e, children: r, className: i, ...a }) {
|
|
761
811
|
return /* @__PURE__ */ n("section", {
|
|
762
812
|
className: [L.section, i].filter(Boolean).join(" "),
|
|
763
813
|
...a,
|
|
@@ -771,15 +821,15 @@ function ft({ title: e, children: r, className: i, ...a }) {
|
|
|
771
821
|
})]
|
|
772
822
|
});
|
|
773
823
|
}
|
|
774
|
-
var
|
|
824
|
+
var ht = {
|
|
775
825
|
tooltip: "_tooltip_y4het_3",
|
|
776
826
|
visible: "_visible_y4het_29",
|
|
777
827
|
top: "_top_y4het_55",
|
|
778
828
|
bottom: "_bottom_y4het_62",
|
|
779
829
|
left: "_left_y4het_69",
|
|
780
830
|
right: "_right_y4het_76"
|
|
781
|
-
},
|
|
782
|
-
function
|
|
831
|
+
}, gt = 6;
|
|
832
|
+
function _t(e, t, n) {
|
|
783
833
|
let r = window.innerWidth, i = window.innerHeight, a = [
|
|
784
834
|
n,
|
|
785
835
|
n === "top" || n === "bottom" ? n === "top" ? "bottom" : "top" : n === "left" ? "right" : "left",
|
|
@@ -790,7 +840,7 @@ function ht(e, t, n) {
|
|
|
790
840
|
];
|
|
791
841
|
for (let n of a) {
|
|
792
842
|
let a = 0, o = 0;
|
|
793
|
-
n === "top" ? (a = e.top - t.height -
|
|
843
|
+
n === "top" ? (a = e.top - t.height - gt, o = e.left + e.width / 2 - t.width / 2) : n === "bottom" ? (a = e.bottom + gt, o = e.left + e.width / 2 - t.width / 2) : n === "left" ? (a = e.top + e.height / 2 - t.height / 2, o = e.left - t.width - gt) : (a = e.top + e.height / 2 - t.height / 2, o = e.right + gt);
|
|
794
844
|
let s = o >= 8 && o + t.width <= r - 8, c = a >= 8 && a + t.height <= i - 8;
|
|
795
845
|
if (s && c) return {
|
|
796
846
|
top: Math.max(8, Math.min(a, i - t.height - 8)),
|
|
@@ -799,17 +849,17 @@ function ht(e, t, n) {
|
|
|
799
849
|
};
|
|
800
850
|
}
|
|
801
851
|
let o = 0, s = 0;
|
|
802
|
-
return n === "top" && (o = e.top - t.height -
|
|
852
|
+
return n === "top" && (o = e.top - t.height - gt, s = e.left + e.width / 2 - t.width / 2), n === "bottom" && (o = e.bottom + gt, s = e.left + e.width / 2 - t.width / 2), n === "left" && (o = e.top + e.height / 2 - t.height / 2, s = e.left - t.width - gt), n === "right" && (o = e.top + e.height / 2 - t.height / 2, s = e.right + gt), {
|
|
803
853
|
top: Math.max(8, Math.min(o, i - t.height - 8)),
|
|
804
854
|
left: Math.max(8, Math.min(s, window.innerWidth - t.width - 8)),
|
|
805
855
|
placement: n
|
|
806
856
|
};
|
|
807
857
|
}
|
|
808
|
-
function
|
|
858
|
+
function vt({ label: r, placement: a = "top", delay: o = 500, children: c }) {
|
|
809
859
|
let m = u(), [h, g] = f(!1), [_, v] = f(null), y = d(null), b = d(null), x = d(null), S = () => {
|
|
810
860
|
x.current &&= (clearTimeout(x.current), null);
|
|
811
861
|
}, C = s(() => {
|
|
812
|
-
!y.current || !b.current || v(
|
|
862
|
+
!y.current || !b.current || v(_t(y.current.getBoundingClientRect(), b.current.getBoundingClientRect(), a));
|
|
813
863
|
}, [a]);
|
|
814
864
|
l(() => {
|
|
815
865
|
if (h) return C(), window.addEventListener("scroll", C, {
|
|
@@ -853,9 +903,9 @@ function gt({ label: r, placement: a = "top", delay: o = 500, children: c }) {
|
|
|
853
903
|
id: m,
|
|
854
904
|
role: "tooltip",
|
|
855
905
|
className: [
|
|
856
|
-
|
|
857
|
-
_ ?
|
|
858
|
-
h && _ ?
|
|
906
|
+
ht.tooltip,
|
|
907
|
+
_ ? ht[_.placement] : null,
|
|
908
|
+
h && _ ? ht.visible : null
|
|
859
909
|
].filter(Boolean).join(" "),
|
|
860
910
|
style: _ ? {
|
|
861
911
|
top: _.top,
|
|
@@ -871,8 +921,8 @@ function gt({ label: r, placement: a = "top", delay: o = 500, children: c }) {
|
|
|
871
921
|
}
|
|
872
922
|
//#endregion
|
|
873
923
|
//#region src/components/Sidebar/SidebarItem.tsx
|
|
874
|
-
function
|
|
875
|
-
let y =
|
|
924
|
+
function yt({ label: e, icon: r, active: i = !1, suffix: a, badge: o, tooltip: u, menuItems: m, onDrop: h, acceptTypes: g, className: _, ...v }) {
|
|
925
|
+
let y = ut(), b = c(dt), x = a ?? o, S = y ? u ?? e : u, C = b.length > 0 && !e.toLowerCase().includes(b.toLowerCase()), [w, T] = f(!1), E = (e) => {
|
|
876
926
|
h && (g?.length && !g.some((t) => e.dataTransfer.types.includes(t)) || (e.preventDefault(), T(!0)));
|
|
877
927
|
}, D = () => T(!1), O = (e) => {
|
|
878
928
|
h && (e.preventDefault(), T(!1), h(e));
|
|
@@ -920,7 +970,7 @@ function _t({ label: e, icon: r, active: i = !1, suffix: a, badge: o, tooltip: u
|
|
|
920
970
|
children: [
|
|
921
971
|
r && /* @__PURE__ */ t("span", {
|
|
922
972
|
className: L.itemIcon,
|
|
923
|
-
children: /* @__PURE__ */ t(
|
|
973
|
+
children: /* @__PURE__ */ t(I, {
|
|
924
974
|
icon: r,
|
|
925
975
|
size: "md",
|
|
926
976
|
"aria-hidden": !0
|
|
@@ -939,7 +989,7 @@ function _t({ label: e, icon: r, active: i = !1, suffix: a, badge: o, tooltip: u
|
|
|
939
989
|
return /* @__PURE__ */ n("li", {
|
|
940
990
|
className: L.item,
|
|
941
991
|
hidden: C || void 0,
|
|
942
|
-
children: [S ? /* @__PURE__ */ t(
|
|
992
|
+
children: [S ? /* @__PURE__ */ t(vt, {
|
|
943
993
|
label: S,
|
|
944
994
|
placement: "right",
|
|
945
995
|
children: te
|
|
@@ -964,7 +1014,7 @@ function _t({ label: e, icon: r, active: i = !1, suffix: a, badge: o, tooltip: u
|
|
|
964
1014
|
}), document.body)]
|
|
965
1015
|
});
|
|
966
1016
|
}
|
|
967
|
-
var
|
|
1017
|
+
var bt = {
|
|
968
1018
|
spin: "_spin_7d4yi_3",
|
|
969
1019
|
disabled: "_disabled_7d4yi_36",
|
|
970
1020
|
btn: "_btn_7d4yi_43",
|
|
@@ -972,15 +1022,15 @@ var vt = {
|
|
|
972
1022
|
};
|
|
973
1023
|
//#endregion
|
|
974
1024
|
//#region src/components/SpinButton/SpinButton.tsx
|
|
975
|
-
function
|
|
1025
|
+
function xt(e) {
|
|
976
1026
|
let t = e.toString(), n = t.indexOf(".");
|
|
977
1027
|
return n === -1 ? 0 : t.length - n - 1;
|
|
978
1028
|
}
|
|
979
|
-
function
|
|
1029
|
+
function St(e, t, n) {
|
|
980
1030
|
return Math.min(n, Math.max(t, e));
|
|
981
1031
|
}
|
|
982
|
-
function
|
|
983
|
-
let m = c ??
|
|
1032
|
+
function Ct({ value: e, onChange: r, min: i = 0, max: a = 100, step: o = 1, decimals: c, disabled: l = !1, className: u, "aria-label": d, "aria-labelledby": f, ...p }) {
|
|
1033
|
+
let m = c ?? xt(o), h = s((e) => r(parseFloat(St(e, i, a).toFixed(m))), [
|
|
984
1034
|
r,
|
|
985
1035
|
i,
|
|
986
1036
|
a,
|
|
@@ -1024,8 +1074,8 @@ function xt({ value: e, onChange: r, min: i = 0, max: a = 100, step: o = 1, deci
|
|
|
1024
1074
|
tabIndex: l ? -1 : 0,
|
|
1025
1075
|
onKeyDown: l ? void 0 : g,
|
|
1026
1076
|
className: [
|
|
1027
|
-
|
|
1028
|
-
l ?
|
|
1077
|
+
bt.spin,
|
|
1078
|
+
l ? bt.disabled : null,
|
|
1029
1079
|
u
|
|
1030
1080
|
].filter(Boolean).join(" "),
|
|
1031
1081
|
...p,
|
|
@@ -1035,12 +1085,12 @@ function xt({ value: e, onChange: r, min: i = 0, max: a = 100, step: o = 1, deci
|
|
|
1035
1085
|
tabIndex: -1,
|
|
1036
1086
|
"aria-hidden": "true",
|
|
1037
1087
|
disabled: l || e <= i,
|
|
1038
|
-
className:
|
|
1088
|
+
className: bt.btn,
|
|
1039
1089
|
onClick: () => h(e - o),
|
|
1040
1090
|
children: "−"
|
|
1041
1091
|
}),
|
|
1042
1092
|
/* @__PURE__ */ t("span", {
|
|
1043
|
-
className:
|
|
1093
|
+
className: bt.value,
|
|
1044
1094
|
"aria-hidden": "true",
|
|
1045
1095
|
children: e.toFixed(m)
|
|
1046
1096
|
}),
|
|
@@ -1049,7 +1099,7 @@ function xt({ value: e, onChange: r, min: i = 0, max: a = 100, step: o = 1, deci
|
|
|
1049
1099
|
tabIndex: -1,
|
|
1050
1100
|
"aria-hidden": "true",
|
|
1051
1101
|
disabled: l || e >= a,
|
|
1052
|
-
className:
|
|
1102
|
+
className: bt.btn,
|
|
1053
1103
|
onClick: () => h(e + o),
|
|
1054
1104
|
children: "+"
|
|
1055
1105
|
})
|
|
@@ -1069,7 +1119,7 @@ var R = {
|
|
|
1069
1119
|
};
|
|
1070
1120
|
//#endregion
|
|
1071
1121
|
//#region src/components/Tabs/TabBar.tsx
|
|
1072
|
-
function
|
|
1122
|
+
function wt({ children: e, className: n, inline: r = !1, "aria-label": i = "Tabs", ...a }) {
|
|
1073
1123
|
let o = d(null);
|
|
1074
1124
|
function s(e) {
|
|
1075
1125
|
let t = Array.from(o.current?.querySelectorAll("[role=tab]:not(:disabled)") ?? []), n = t.findIndex((e) => e === document.activeElement);
|
|
@@ -1101,7 +1151,7 @@ function St({ children: e, className: n, inline: r = !1, "aria-label": i = "Tabs
|
|
|
1101
1151
|
}
|
|
1102
1152
|
//#endregion
|
|
1103
1153
|
//#region src/components/Tabs/TabItem.tsx
|
|
1104
|
-
function
|
|
1154
|
+
function Tt({ label: e, icon: r, active: i = !1, panelId: a, onClose: o, closeLabel: s = "Close tab", className: c, disabled: l, ...u }) {
|
|
1105
1155
|
return /* @__PURE__ */ n("button", {
|
|
1106
1156
|
role: "tab",
|
|
1107
1157
|
type: "button",
|
|
@@ -1119,7 +1169,7 @@ function Ct({ label: e, icon: r, active: i = !1, panelId: a, onClose: o, closeLa
|
|
|
1119
1169
|
children: [
|
|
1120
1170
|
r && /* @__PURE__ */ t("span", {
|
|
1121
1171
|
className: R.tabIcon,
|
|
1122
|
-
children: /* @__PURE__ */ t(
|
|
1172
|
+
children: /* @__PURE__ */ t(I, {
|
|
1123
1173
|
icon: r,
|
|
1124
1174
|
size: "sm",
|
|
1125
1175
|
"aria-hidden": !0
|
|
@@ -1147,7 +1197,7 @@ function Ct({ label: e, icon: r, active: i = !1, panelId: a, onClose: o, closeLa
|
|
|
1147
1197
|
}
|
|
1148
1198
|
//#endregion
|
|
1149
1199
|
//#region src/components/Tabs/TabPanel.tsx
|
|
1150
|
-
function
|
|
1200
|
+
function Et({ id: e, active: n = !1, className: r, children: i, ...a }) {
|
|
1151
1201
|
return /* @__PURE__ */ t("div", {
|
|
1152
1202
|
id: e,
|
|
1153
1203
|
role: "tabpanel",
|
|
@@ -1171,7 +1221,7 @@ var z = {
|
|
|
1171
1221
|
};
|
|
1172
1222
|
//#endregion
|
|
1173
1223
|
//#region src/components/ActionRow/ActionRow.tsx
|
|
1174
|
-
function
|
|
1224
|
+
function Dt({ title: e, subtitle: r, leading: i, trailing: a, interactive: o = !1, variant: s = "default", className: c, ...l }) {
|
|
1175
1225
|
let u = o ? "button" : "div", d = s === "property";
|
|
1176
1226
|
return /* @__PURE__ */ n(u, {
|
|
1177
1227
|
className: [
|
|
@@ -1203,7 +1253,7 @@ function Tt({ title: e, subtitle: r, leading: i, trailing: a, interactive: o = !
|
|
|
1203
1253
|
]
|
|
1204
1254
|
});
|
|
1205
1255
|
}
|
|
1206
|
-
var
|
|
1256
|
+
var Ot = {
|
|
1207
1257
|
list: "_list_1mn4t_3",
|
|
1208
1258
|
item: "_item_1mn4t_17",
|
|
1209
1259
|
divider: "_divider_1mn4t_25",
|
|
@@ -1212,26 +1262,26 @@ var Et = {
|
|
|
1212
1262
|
};
|
|
1213
1263
|
//#endregion
|
|
1214
1264
|
//#region src/components/BoxedList/BoxedList.tsx
|
|
1215
|
-
function
|
|
1265
|
+
function kt({ children: e, variant: i = "default", className: a, ...o }) {
|
|
1216
1266
|
let s = r.toArray(e).filter(Boolean), c = i === "separate";
|
|
1217
1267
|
return /* @__PURE__ */ t("ul", {
|
|
1218
1268
|
role: "list",
|
|
1219
1269
|
className: [
|
|
1220
|
-
|
|
1221
|
-
c ?
|
|
1270
|
+
Ot.list,
|
|
1271
|
+
c ? Ot.separate : null,
|
|
1222
1272
|
a
|
|
1223
1273
|
].filter(Boolean).join(" "),
|
|
1224
1274
|
...o,
|
|
1225
1275
|
children: s.map((e, r) => /* @__PURE__ */ n("li", {
|
|
1226
|
-
className: c ?
|
|
1276
|
+
className: c ? Ot.separateItem : Ot.item,
|
|
1227
1277
|
children: [!c && r > 0 && /* @__PURE__ */ t("div", {
|
|
1228
|
-
className:
|
|
1278
|
+
className: Ot.divider,
|
|
1229
1279
|
"aria-hidden": "true"
|
|
1230
1280
|
}), e]
|
|
1231
1281
|
}, r))
|
|
1232
1282
|
});
|
|
1233
1283
|
}
|
|
1234
|
-
var
|
|
1284
|
+
var At = {
|
|
1235
1285
|
switcher: "_switcher_1uh9r_3",
|
|
1236
1286
|
item: "_item_1uh9r_18",
|
|
1237
1287
|
active: "_active_1uh9r_45",
|
|
@@ -1240,7 +1290,7 @@ var Ot = {
|
|
|
1240
1290
|
};
|
|
1241
1291
|
//#endregion
|
|
1242
1292
|
//#region src/components/ViewSwitcher/ViewSwitcher.tsx
|
|
1243
|
-
function
|
|
1293
|
+
function jt({ children: e, className: n, "aria-label": r = "View switcher", ...i }) {
|
|
1244
1294
|
let a = d(null);
|
|
1245
1295
|
function o(e) {
|
|
1246
1296
|
let t = Array.from(a.current?.querySelectorAll("[role=radio]:not(:disabled)") ?? []), n = t.findIndex((e) => e === document.activeElement);
|
|
@@ -1258,14 +1308,14 @@ function kt({ children: e, className: n, "aria-label": r = "View switcher", ...i
|
|
|
1258
1308
|
role: "radiogroup",
|
|
1259
1309
|
"aria-label": r,
|
|
1260
1310
|
onKeyDown: o,
|
|
1261
|
-
className: [
|
|
1311
|
+
className: [At.switcher, n].filter(Boolean).join(" "),
|
|
1262
1312
|
...i,
|
|
1263
1313
|
children: e
|
|
1264
1314
|
});
|
|
1265
1315
|
}
|
|
1266
1316
|
//#endregion
|
|
1267
1317
|
//#region src/components/ViewSwitcher/ViewSwitcherItem.tsx
|
|
1268
|
-
function
|
|
1318
|
+
function Mt({ label: e, icon: r, active: i = !1, className: a, disabled: o, ...s }) {
|
|
1269
1319
|
return /* @__PURE__ */ n("button", {
|
|
1270
1320
|
type: "button",
|
|
1271
1321
|
role: "radio",
|
|
@@ -1273,40 +1323,40 @@ function At({ label: e, icon: r, active: i = !1, className: a, disabled: o, ...s
|
|
|
1273
1323
|
tabIndex: i ? 0 : -1,
|
|
1274
1324
|
disabled: o,
|
|
1275
1325
|
className: [
|
|
1276
|
-
|
|
1277
|
-
i ?
|
|
1326
|
+
At.item,
|
|
1327
|
+
i ? At.active : null,
|
|
1278
1328
|
a
|
|
1279
1329
|
].filter(Boolean).join(" "),
|
|
1280
1330
|
...s,
|
|
1281
1331
|
children: [r && /* @__PURE__ */ t("span", {
|
|
1282
|
-
className:
|
|
1283
|
-
children: /* @__PURE__ */ t(
|
|
1332
|
+
className: At.itemIcon,
|
|
1333
|
+
children: /* @__PURE__ */ t(I, {
|
|
1284
1334
|
icon: r,
|
|
1285
1335
|
size: "md",
|
|
1286
1336
|
"aria-hidden": !0
|
|
1287
1337
|
})
|
|
1288
1338
|
}), /* @__PURE__ */ t("span", {
|
|
1289
|
-
className:
|
|
1339
|
+
className: At.itemLabel,
|
|
1290
1340
|
children: e
|
|
1291
1341
|
})]
|
|
1292
1342
|
});
|
|
1293
1343
|
}
|
|
1294
1344
|
//#endregion
|
|
1295
1345
|
//#region src/components/Toast/Toast.module.css
|
|
1296
|
-
var
|
|
1297
|
-
toaster:
|
|
1298
|
-
toasterBottom:
|
|
1299
|
-
toasterTop:
|
|
1300
|
-
toast:
|
|
1346
|
+
var Nt = "_toaster_1tgvb_3", Pt = "_toasterBottom_1tgvb_18", Ft = "_toasterTop_1tgvb_22", It = "_toast_1tgvb_3", Lt = "_title_1tgvb_69", Rt = "_actions_1tgvb_76", zt = "_actionBtn_1tgvb_85", Bt = "_dismissBtn_1tgvb_118", Vt = {
|
|
1347
|
+
toaster: Nt,
|
|
1348
|
+
toasterBottom: Pt,
|
|
1349
|
+
toasterTop: Ft,
|
|
1350
|
+
toast: It,
|
|
1301
1351
|
"toast-in": "_toast-in_1tgvb_1",
|
|
1302
|
-
title:
|
|
1303
|
-
actions:
|
|
1304
|
-
actionBtn:
|
|
1305
|
-
dismissBtn:
|
|
1352
|
+
title: Lt,
|
|
1353
|
+
actions: Rt,
|
|
1354
|
+
actionBtn: zt,
|
|
1355
|
+
dismissBtn: Bt
|
|
1306
1356
|
};
|
|
1307
1357
|
//#endregion
|
|
1308
1358
|
//#region src/components/Toast/Toast.tsx
|
|
1309
|
-
function
|
|
1359
|
+
function Ht({ title: e, duration: r = 3e3, onDismiss: i, actionLabel: a, onAction: o, dismissible: s = !1, className: c, ...u }) {
|
|
1310
1360
|
let f = d(null), p = d(r), m = d(0), h = () => {
|
|
1311
1361
|
f.current &&= (clearTimeout(f.current), null);
|
|
1312
1362
|
}, g = (e) => {
|
|
@@ -1327,31 +1377,31 @@ function Bt({ title: e, duration: r = 3e3, onDismiss: i, actionLabel: a, onActio
|
|
|
1327
1377
|
role: "status",
|
|
1328
1378
|
"aria-live": "polite",
|
|
1329
1379
|
"aria-atomic": "true",
|
|
1330
|
-
className: [
|
|
1380
|
+
className: [Vt.toast, c].filter(Boolean).join(" "),
|
|
1331
1381
|
onMouseEnter: _,
|
|
1332
1382
|
onMouseLeave: v,
|
|
1333
1383
|
onFocus: _,
|
|
1334
1384
|
onBlur: v,
|
|
1335
1385
|
...u,
|
|
1336
1386
|
children: [/* @__PURE__ */ t("span", {
|
|
1337
|
-
className:
|
|
1387
|
+
className: Vt.title,
|
|
1338
1388
|
children: e
|
|
1339
1389
|
}), (a || s) && /* @__PURE__ */ n("span", {
|
|
1340
|
-
className:
|
|
1390
|
+
className: Vt.actions,
|
|
1341
1391
|
children: [a && /* @__PURE__ */ t("button", {
|
|
1342
1392
|
type: "button",
|
|
1343
|
-
className:
|
|
1393
|
+
className: Vt.actionBtn,
|
|
1344
1394
|
onClick: y,
|
|
1345
1395
|
children: a
|
|
1346
1396
|
}), s && /* @__PURE__ */ t("button", {
|
|
1347
1397
|
type: "button",
|
|
1348
|
-
className:
|
|
1398
|
+
className: Vt.dismissBtn,
|
|
1349
1399
|
"aria-label": "Dismiss",
|
|
1350
1400
|
onClick: () => {
|
|
1351
1401
|
h(), i?.();
|
|
1352
1402
|
},
|
|
1353
|
-
children: /* @__PURE__ */ t(
|
|
1354
|
-
icon:
|
|
1403
|
+
children: /* @__PURE__ */ t(I, {
|
|
1404
|
+
icon: Pe,
|
|
1355
1405
|
size: "md",
|
|
1356
1406
|
"aria-hidden": !0
|
|
1357
1407
|
})
|
|
@@ -1361,12 +1411,12 @@ function Bt({ title: e, duration: r = 3e3, onDismiss: i, actionLabel: a, onActio
|
|
|
1361
1411
|
}
|
|
1362
1412
|
//#endregion
|
|
1363
1413
|
//#region src/components/Toast/Toaster.tsx
|
|
1364
|
-
function
|
|
1414
|
+
function Ut({ position: e = "bottom", children: n, container: r, className: i, ...a }) {
|
|
1365
1415
|
let o = /* @__PURE__ */ t("div", {
|
|
1366
1416
|
"aria-label": "Notifications",
|
|
1367
1417
|
className: [
|
|
1368
|
-
|
|
1369
|
-
e === "top" ?
|
|
1418
|
+
Vt.toaster,
|
|
1419
|
+
e === "top" ? Vt.toasterTop : Vt.toasterBottom,
|
|
1370
1420
|
i
|
|
1371
1421
|
].filter(Boolean).join(" "),
|
|
1372
1422
|
...a,
|
|
@@ -1376,57 +1426,57 @@ function Vt({ position: e = "bottom", children: n, container: r, className: i, .
|
|
|
1376
1426
|
}
|
|
1377
1427
|
//#endregion
|
|
1378
1428
|
//#region src/components/Dialog/Dialog.module.css
|
|
1379
|
-
var
|
|
1380
|
-
backdrop:
|
|
1429
|
+
var Wt = "_backdrop_zx0yn_3", Gt = "_dialog_zx0yn_26", Kt = "_title_zx0yn_56", qt = "_body_zx0yn_70", Jt = "_footer_zx0yn_85", Yt = "_btn_zx0yn_92", Xt = "_dialogAbout_zx0yn_155", Zt = "_aboutHeader_zx0yn_162", Qt = "_aboutIcon_zx0yn_171", $t = "_aboutAppName_zx0yn_180", en = "_aboutVersion_zx0yn_187", tn = "_aboutTabBar_zx0yn_194", nn = "_aboutTabBtn_zx0yn_201", rn = "_aboutTabBtnActive_zx0yn_220", an = "_aboutTabContent_zx0yn_233", on = "_aboutSection_zx0yn_238", sn = "_aboutComments_zx0yn_243", cn = "_aboutInfoList_zx0yn_252", ln = "_aboutInfoLabel_zx0yn_259", un = "_aboutInfoValue_zx0yn_267", dn = "_aboutLink_zx0yn_275", fn = "_aboutCreditGroup_zx0yn_283", pn = "_aboutCreditTitle_zx0yn_287", mn = "_aboutCreditList_zx0yn_297", hn = "_aboutCreditItem_zx0yn_306", gn = "_aboutCopyright_zx0yn_312", _n = "_aboutLicenseType_zx0yn_319", vn = "_aboutLicenseText_zx0yn_326", B = {
|
|
1430
|
+
backdrop: Wt,
|
|
1381
1431
|
"backdrop-in": "_backdrop-in_zx0yn_1",
|
|
1382
|
-
dialog:
|
|
1432
|
+
dialog: Gt,
|
|
1383
1433
|
"dialog-in": "_dialog-in_zx0yn_1",
|
|
1384
|
-
title:
|
|
1385
|
-
body:
|
|
1386
|
-
footer:
|
|
1387
|
-
btn:
|
|
1434
|
+
title: Kt,
|
|
1435
|
+
body: qt,
|
|
1436
|
+
footer: Jt,
|
|
1437
|
+
btn: Yt,
|
|
1388
1438
|
"btn-default": "_btn-default_zx0yn_140",
|
|
1389
1439
|
"btn-suggested": "_btn-suggested_zx0yn_144",
|
|
1390
1440
|
"btn-destructive": "_btn-destructive_zx0yn_149",
|
|
1391
|
-
dialogAbout:
|
|
1392
|
-
aboutHeader:
|
|
1393
|
-
aboutIcon:
|
|
1394
|
-
aboutAppName:
|
|
1395
|
-
aboutVersion:
|
|
1396
|
-
aboutTabBar:
|
|
1397
|
-
aboutTabBtn:
|
|
1398
|
-
aboutTabBtnActive:
|
|
1399
|
-
aboutTabContent:
|
|
1400
|
-
aboutSection:
|
|
1401
|
-
aboutComments:
|
|
1402
|
-
aboutInfoList:
|
|
1403
|
-
aboutInfoLabel:
|
|
1404
|
-
aboutInfoValue:
|
|
1405
|
-
aboutLink:
|
|
1406
|
-
aboutCreditGroup:
|
|
1407
|
-
aboutCreditTitle:
|
|
1408
|
-
aboutCreditList:
|
|
1409
|
-
aboutCreditItem:
|
|
1410
|
-
aboutCopyright:
|
|
1411
|
-
aboutLicenseType:
|
|
1412
|
-
aboutLicenseText:
|
|
1413
|
-
},
|
|
1414
|
-
function
|
|
1441
|
+
dialogAbout: Xt,
|
|
1442
|
+
aboutHeader: Zt,
|
|
1443
|
+
aboutIcon: Qt,
|
|
1444
|
+
aboutAppName: $t,
|
|
1445
|
+
aboutVersion: en,
|
|
1446
|
+
aboutTabBar: tn,
|
|
1447
|
+
aboutTabBtn: nn,
|
|
1448
|
+
aboutTabBtnActive: rn,
|
|
1449
|
+
aboutTabContent: an,
|
|
1450
|
+
aboutSection: on,
|
|
1451
|
+
aboutComments: sn,
|
|
1452
|
+
aboutInfoList: cn,
|
|
1453
|
+
aboutInfoLabel: ln,
|
|
1454
|
+
aboutInfoValue: un,
|
|
1455
|
+
aboutLink: dn,
|
|
1456
|
+
aboutCreditGroup: fn,
|
|
1457
|
+
aboutCreditTitle: pn,
|
|
1458
|
+
aboutCreditList: mn,
|
|
1459
|
+
aboutCreditItem: hn,
|
|
1460
|
+
aboutCopyright: gn,
|
|
1461
|
+
aboutLicenseType: _n,
|
|
1462
|
+
aboutLicenseText: vn
|
|
1463
|
+
}, yn = "button:not([disabled]), [href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"])";
|
|
1464
|
+
function bn(e, t) {
|
|
1415
1465
|
if (e.key !== "Tab") return;
|
|
1416
|
-
let n = Array.from(t.current?.querySelectorAll(
|
|
1466
|
+
let n = Array.from(t.current?.querySelectorAll(yn) ?? []);
|
|
1417
1467
|
if (!n.length) return;
|
|
1418
1468
|
let r = n[0], i = n[n.length - 1];
|
|
1419
1469
|
e.shiftKey ? document.activeElement === r && (e.preventDefault(), i.focus()) : document.activeElement === i && (e.preventDefault(), r.focus());
|
|
1420
1470
|
}
|
|
1421
|
-
var
|
|
1471
|
+
var xn = {
|
|
1422
1472
|
details: "Details",
|
|
1423
1473
|
credits: "Credits",
|
|
1424
1474
|
legal: "Legal"
|
|
1425
1475
|
};
|
|
1426
|
-
function
|
|
1476
|
+
function Sn({ open: r, title: i, children: a, buttons: o = [], onClose: c, closeOnBackdrop: m = !0, role: h = "dialog", responses: g, onResponse: _, variant: v, applicationName: y, applicationIcon: b, version: x, comments: S, developerName: C, website: w, websiteLabel: T, developers: E, designers: D, artists: O, copyright: k, licenseType: A, licenseText: j, links: M, className: N, ...P }) {
|
|
1427
1477
|
let ee = d(null), te = u(), ne = d(null), [re, ie] = f("details"), ae = !!g, oe = v === "about";
|
|
1428
1478
|
l(() => {
|
|
1429
|
-
r ? (ne.current = document.activeElement, (ee.current?.querySelector(
|
|
1479
|
+
r ? (ne.current = document.activeElement, (ee.current?.querySelector(yn))?.focus()) : (ne.current?.focus(), oe && ie("details"));
|
|
1430
1480
|
}, [r, oe]);
|
|
1431
1481
|
let se = s(() => {
|
|
1432
1482
|
let e = g?.find((e) => e.variant !== "destructive" && !e.disabled);
|
|
@@ -1436,18 +1486,18 @@ function bn({ open: r, title: i, children: a, buttons: o = [], onClose: c, close
|
|
|
1436
1486
|
e.preventDefault(), ae ? se() : c?.();
|
|
1437
1487
|
return;
|
|
1438
1488
|
}
|
|
1439
|
-
|
|
1489
|
+
bn(e, ee);
|
|
1440
1490
|
}, [
|
|
1441
1491
|
ae,
|
|
1442
1492
|
se,
|
|
1443
1493
|
c
|
|
1444
1494
|
]);
|
|
1445
1495
|
if (!r) return null;
|
|
1446
|
-
let
|
|
1496
|
+
let F = [
|
|
1447
1497
|
"details",
|
|
1448
1498
|
!!(E?.length || D?.length || O?.length) && "credits",
|
|
1449
1499
|
!!(k || A || j) && "legal"
|
|
1450
|
-
].filter(Boolean),
|
|
1500
|
+
].filter(Boolean), ue = () => oe ? /* @__PURE__ */ t("div", {
|
|
1451
1501
|
className: B.footer,
|
|
1452
1502
|
children: /* @__PURE__ */ t("button", {
|
|
1453
1503
|
type: "button",
|
|
@@ -1473,7 +1523,7 @@ function bn({ open: r, title: i, children: a, buttons: o = [], onClose: c, close
|
|
|
1473
1523
|
onClick: e.onClick,
|
|
1474
1524
|
children: e.label
|
|
1475
1525
|
}, e.label))
|
|
1476
|
-
}) : null,
|
|
1526
|
+
}) : null, de = () => /* @__PURE__ */ n(e, { children: [
|
|
1477
1527
|
/* @__PURE__ */ n("div", {
|
|
1478
1528
|
className: B.aboutHeader,
|
|
1479
1529
|
children: [
|
|
@@ -1492,16 +1542,16 @@ function bn({ open: r, title: i, children: a, buttons: o = [], onClose: c, close
|
|
|
1492
1542
|
})
|
|
1493
1543
|
]
|
|
1494
1544
|
}),
|
|
1495
|
-
|
|
1545
|
+
F.length > 1 && /* @__PURE__ */ t("div", {
|
|
1496
1546
|
className: B.aboutTabBar,
|
|
1497
1547
|
role: "tablist",
|
|
1498
|
-
children:
|
|
1548
|
+
children: F.map((e) => /* @__PURE__ */ t("button", {
|
|
1499
1549
|
type: "button",
|
|
1500
1550
|
role: "tab",
|
|
1501
1551
|
"aria-selected": re === e,
|
|
1502
1552
|
className: [B.aboutTabBtn, re === e ? B.aboutTabBtnActive : null].filter(Boolean).join(" "),
|
|
1503
1553
|
onClick: () => ie(e),
|
|
1504
|
-
children:
|
|
1554
|
+
children: xn[e]
|
|
1505
1555
|
}, e))
|
|
1506
1556
|
}),
|
|
1507
1557
|
/* @__PURE__ */ n("div", {
|
|
@@ -1599,7 +1649,7 @@ function bn({ open: r, title: i, children: a, buttons: o = [], onClose: c, close
|
|
|
1599
1649
|
})
|
|
1600
1650
|
]
|
|
1601
1651
|
})
|
|
1602
|
-
] }),
|
|
1652
|
+
] }), fe = /* @__PURE__ */ t("div", {
|
|
1603
1653
|
className: B.backdrop,
|
|
1604
1654
|
onClick: ce,
|
|
1605
1655
|
"aria-hidden": "true",
|
|
@@ -1616,45 +1666,45 @@ function bn({ open: r, title: i, children: a, buttons: o = [], onClose: c, close
|
|
|
1616
1666
|
onKeyDown: le,
|
|
1617
1667
|
onClick: (e) => e.stopPropagation(),
|
|
1618
1668
|
...P,
|
|
1619
|
-
children: [oe ?
|
|
1669
|
+
children: [oe ? de() : /* @__PURE__ */ n(e, { children: [i && /* @__PURE__ */ t("div", {
|
|
1620
1670
|
id: te,
|
|
1621
1671
|
className: B.title,
|
|
1622
1672
|
children: i
|
|
1623
1673
|
}), a && /* @__PURE__ */ t("div", {
|
|
1624
1674
|
className: B.body,
|
|
1625
1675
|
children: a
|
|
1626
|
-
})] }),
|
|
1676
|
+
})] }), ue()]
|
|
1627
1677
|
})
|
|
1628
1678
|
});
|
|
1629
|
-
return typeof document > "u" ?
|
|
1679
|
+
return typeof document > "u" ? fe : p(fe, document.body);
|
|
1630
1680
|
}
|
|
1631
1681
|
//#endregion
|
|
1632
1682
|
//#region src/components/Dropdown/Dropdown.module.css
|
|
1633
|
-
var
|
|
1634
|
-
wrapper:
|
|
1635
|
-
trigger:
|
|
1636
|
-
triggerOpen:
|
|
1637
|
-
triggerLabel:
|
|
1638
|
-
placeholder:
|
|
1639
|
-
chevron:
|
|
1640
|
-
chevronOpen:
|
|
1641
|
-
list:
|
|
1683
|
+
var Cn = "_wrapper_1hi05_3", wn = "_trigger_1hi05_11", Tn = "_triggerOpen_1hi05_63", En = "_triggerLabel_1hi05_73", Dn = "_placeholder_1hi05_81", On = "_chevron_1hi05_87", kn = "_chevronOpen_1hi05_94", An = "_list_1hi05_100", jn = "_listDown_1hi05_129", Mn = "_listUp_1hi05_133", Nn = "_option_1hi05_145", Pn = "_optionActive_1hi05_162", Fn = "_optionSelected_1hi05_166", In = "_optionDisabled_1hi05_170", Ln = "_optionText_1hi05_178", Rn = "_optionLabel_1hi05_186", zn = "_optionDesc_1hi05_192", Bn = "_checkIcon_1hi05_202", V = {
|
|
1684
|
+
wrapper: Cn,
|
|
1685
|
+
trigger: wn,
|
|
1686
|
+
triggerOpen: Tn,
|
|
1687
|
+
triggerLabel: En,
|
|
1688
|
+
placeholder: Dn,
|
|
1689
|
+
chevron: On,
|
|
1690
|
+
chevronOpen: kn,
|
|
1691
|
+
list: An,
|
|
1642
1692
|
"list-in": "_list-in_1hi05_1",
|
|
1643
|
-
listDown:
|
|
1644
|
-
listUp:
|
|
1693
|
+
listDown: jn,
|
|
1694
|
+
listUp: Mn,
|
|
1645
1695
|
"list-in-up": "_list-in-up_1hi05_1",
|
|
1646
|
-
option:
|
|
1647
|
-
optionActive:
|
|
1648
|
-
optionSelected:
|
|
1649
|
-
optionDisabled:
|
|
1650
|
-
optionText:
|
|
1651
|
-
optionLabel:
|
|
1652
|
-
optionDesc:
|
|
1653
|
-
checkIcon:
|
|
1696
|
+
option: Nn,
|
|
1697
|
+
optionActive: Pn,
|
|
1698
|
+
optionSelected: Fn,
|
|
1699
|
+
optionDisabled: In,
|
|
1700
|
+
optionText: Ln,
|
|
1701
|
+
optionLabel: Rn,
|
|
1702
|
+
optionDesc: zn,
|
|
1703
|
+
checkIcon: Bn
|
|
1654
1704
|
};
|
|
1655
1705
|
//#endregion
|
|
1656
1706
|
//#region src/components/Dropdown/Dropdown.tsx
|
|
1657
|
-
function
|
|
1707
|
+
function Vn({ options: e, value: r, onChange: i, placeholder: a = "Select an option", disabled: o, className: c, ...p }) {
|
|
1658
1708
|
let [m, h] = f(!1), [g, _] = f(-1), [v, y] = f(!1), b = u(), x = u(), S = d(null), C = d(null), w = e.find((e) => e.value === r), T = s(() => {
|
|
1659
1709
|
if (!S.current) return;
|
|
1660
1710
|
let t = S.current.getBoundingClientRect(), n = window.innerHeight - t.bottom, r = Math.min(e.length * 48 + 8, 280);
|
|
@@ -1756,8 +1806,8 @@ function zn({ options: e, value: r, onChange: i, placeholder: a = "Select an opt
|
|
|
1756
1806
|
children: [/* @__PURE__ */ t("span", {
|
|
1757
1807
|
className: [V.triggerLabel, w ? null : V.placeholder].filter(Boolean).join(" "),
|
|
1758
1808
|
children: w?.label ?? a
|
|
1759
|
-
}), /* @__PURE__ */ t(
|
|
1760
|
-
icon:
|
|
1809
|
+
}), /* @__PURE__ */ t(I, {
|
|
1810
|
+
icon: Ne,
|
|
1761
1811
|
size: "md",
|
|
1762
1812
|
"aria-hidden": !0,
|
|
1763
1813
|
className: [V.chevron, m ? V.chevronOpen : null].filter(Boolean).join(" ")
|
|
@@ -1792,8 +1842,8 @@ function zn({ options: e, value: r, onChange: i, placeholder: a = "Select an opt
|
|
|
1792
1842
|
className: V.optionDesc,
|
|
1793
1843
|
children: e.description
|
|
1794
1844
|
})]
|
|
1795
|
-
}), e.value === r && /* @__PURE__ */ t(
|
|
1796
|
-
icon:
|
|
1845
|
+
}), e.value === r && /* @__PURE__ */ t(I, {
|
|
1846
|
+
icon: Re,
|
|
1797
1847
|
size: "md",
|
|
1798
1848
|
"aria-hidden": !0,
|
|
1799
1849
|
className: V.checkIcon
|
|
@@ -1802,7 +1852,7 @@ function zn({ options: e, value: r, onChange: i, placeholder: a = "Select an opt
|
|
|
1802
1852
|
})]
|
|
1803
1853
|
});
|
|
1804
1854
|
}
|
|
1805
|
-
var
|
|
1855
|
+
var Hn = {
|
|
1806
1856
|
wrapper: "_wrapper_11zhs_3",
|
|
1807
1857
|
hasLabels: "_hasLabels_11zhs_11",
|
|
1808
1858
|
track: "_track_11zhs_17",
|
|
@@ -1815,21 +1865,21 @@ var Bn = {
|
|
|
1815
1865
|
};
|
|
1816
1866
|
//#endregion
|
|
1817
1867
|
//#region src/components/Slider/Slider.tsx
|
|
1818
|
-
function
|
|
1868
|
+
function Un(e, t, n) {
|
|
1819
1869
|
return Math.min(n, Math.max(t, e));
|
|
1820
1870
|
}
|
|
1821
|
-
function
|
|
1871
|
+
function Wn(e, t, n, r) {
|
|
1822
1872
|
return parseFloat((Math.round((e - t) / n) * n + t).toFixed(r));
|
|
1823
1873
|
}
|
|
1824
|
-
function
|
|
1874
|
+
function Gn(e) {
|
|
1825
1875
|
let t = e.toString(), n = t.indexOf(".");
|
|
1826
1876
|
return n === -1 ? 0 : t.length - n - 1;
|
|
1827
1877
|
}
|
|
1828
|
-
function
|
|
1829
|
-
let g = d(null), _ =
|
|
1878
|
+
function Kn({ value: e, onChange: r, min: i = 0, max: a = 100, step: o = 1, disabled: c = !1, marks: l, className: u, "aria-label": f, "aria-labelledby": p, "aria-describedby": m, ...h }) {
|
|
1879
|
+
let g = d(null), _ = Gn(o), v = (Un(e, i, a) - i) / (a - i) * 100, y = s((e) => {
|
|
1830
1880
|
if (!g.current) return;
|
|
1831
1881
|
let { left: t, width: n } = g.current.getBoundingClientRect();
|
|
1832
|
-
r(
|
|
1882
|
+
r(Un(Wn((e - t) / n * (a - i) + i, i, o, _), i, a));
|
|
1833
1883
|
}, [
|
|
1834
1884
|
i,
|
|
1835
1885
|
a,
|
|
@@ -1842,7 +1892,7 @@ function Wn({ value: e, onChange: r, min: i = 0, max: a = 100, step: o = 1, disa
|
|
|
1842
1892
|
e.currentTarget.hasPointerCapture(e.pointerId) && y(e.clientX);
|
|
1843
1893
|
}, [y]), S = s((t) => {
|
|
1844
1894
|
let n = (e) => {
|
|
1845
|
-
t.preventDefault(), r(
|
|
1895
|
+
t.preventDefault(), r(Un(Wn(e, i, o, _), i, a));
|
|
1846
1896
|
};
|
|
1847
1897
|
switch (t.key) {
|
|
1848
1898
|
case "ArrowRight":
|
|
@@ -1876,8 +1926,8 @@ function Wn({ value: e, onChange: r, min: i = 0, max: a = 100, step: o = 1, disa
|
|
|
1876
1926
|
]), C = l && l.length > 0, w = C && l.some((e) => e.label);
|
|
1877
1927
|
return /* @__PURE__ */ n("div", {
|
|
1878
1928
|
className: [
|
|
1879
|
-
|
|
1880
|
-
w ?
|
|
1929
|
+
Hn.wrapper,
|
|
1930
|
+
w ? Hn.hasLabels : null,
|
|
1881
1931
|
u
|
|
1882
1932
|
].filter(Boolean).join(" "),
|
|
1883
1933
|
...h,
|
|
@@ -1892,36 +1942,36 @@ function Wn({ value: e, onChange: r, min: i = 0, max: a = 100, step: o = 1, disa
|
|
|
1892
1942
|
"aria-labelledby": p,
|
|
1893
1943
|
"aria-describedby": m,
|
|
1894
1944
|
"aria-disabled": c || void 0,
|
|
1895
|
-
className: [
|
|
1945
|
+
className: [Hn.track, c ? Hn.disabled : null].filter(Boolean).join(" "),
|
|
1896
1946
|
onPointerDown: b,
|
|
1897
1947
|
onPointerMove: x,
|
|
1898
1948
|
onKeyDown: c ? void 0 : S,
|
|
1899
1949
|
children: [
|
|
1900
1950
|
/* @__PURE__ */ t("div", {
|
|
1901
|
-
className:
|
|
1951
|
+
className: Hn.fill,
|
|
1902
1952
|
style: { width: `${v}%` }
|
|
1903
1953
|
}),
|
|
1904
1954
|
/* @__PURE__ */ t("div", {
|
|
1905
|
-
className:
|
|
1955
|
+
className: Hn.thumb,
|
|
1906
1956
|
style: { left: `${v}%` },
|
|
1907
1957
|
"aria-hidden": "true"
|
|
1908
1958
|
}),
|
|
1909
1959
|
C && l.map((e) => {
|
|
1910
|
-
let n = (
|
|
1960
|
+
let n = (Un(e.value, i, a) - i) / (a - i) * 100;
|
|
1911
1961
|
return /* @__PURE__ */ t("div", {
|
|
1912
|
-
className:
|
|
1962
|
+
className: Hn.tick,
|
|
1913
1963
|
style: { left: `${n}%` },
|
|
1914
1964
|
"aria-hidden": "true"
|
|
1915
1965
|
}, e.value);
|
|
1916
1966
|
})
|
|
1917
1967
|
]
|
|
1918
1968
|
}), w && /* @__PURE__ */ t("div", {
|
|
1919
|
-
className:
|
|
1969
|
+
className: Hn.labels,
|
|
1920
1970
|
"aria-hidden": "true",
|
|
1921
1971
|
children: l.map((e) => {
|
|
1922
|
-
let n = (
|
|
1972
|
+
let n = (Un(e.value, i, a) - i) / (a - i) * 100;
|
|
1923
1973
|
return /* @__PURE__ */ t("span", {
|
|
1924
|
-
className:
|
|
1974
|
+
className: Hn.markLabel,
|
|
1925
1975
|
style: { left: `${n}%` },
|
|
1926
1976
|
children: e.label
|
|
1927
1977
|
}, e.value);
|
|
@@ -1929,7 +1979,7 @@ function Wn({ value: e, onChange: r, min: i = 0, max: a = 100, step: o = 1, disa
|
|
|
1929
1979
|
})]
|
|
1930
1980
|
});
|
|
1931
1981
|
}
|
|
1932
|
-
var
|
|
1982
|
+
var qn = {
|
|
1933
1983
|
panel: "_panel_1tk9v_3",
|
|
1934
1984
|
visible: "_visible_1tk9v_36",
|
|
1935
1985
|
arrow: "_arrow_1tk9v_44",
|
|
@@ -1937,8 +1987,8 @@ var Gn = {
|
|
|
1937
1987
|
top: "_top_1tk9v_67",
|
|
1938
1988
|
left: "_left_1tk9v_75",
|
|
1939
1989
|
right: "_right_1tk9v_83"
|
|
1940
|
-
},
|
|
1941
|
-
function
|
|
1990
|
+
}, Jn = 8, H = 10, Yn = 6;
|
|
1991
|
+
function Xn(e, t, n) {
|
|
1942
1992
|
let r = window.innerWidth, i = window.innerHeight, a = [...new Set([
|
|
1943
1993
|
n,
|
|
1944
1994
|
n === "top" ? "bottom" : n === "bottom" ? "top" : n === "left" ? "right" : "left",
|
|
@@ -1949,17 +1999,17 @@ function Jn(e, t, n) {
|
|
|
1949
1999
|
])];
|
|
1950
2000
|
function o(n) {
|
|
1951
2001
|
return n === "bottom" ? {
|
|
1952
|
-
top: e.bottom +
|
|
2002
|
+
top: e.bottom + Jn,
|
|
1953
2003
|
left: e.left + e.width / 2 - t.width / 2
|
|
1954
2004
|
} : n === "top" ? {
|
|
1955
|
-
top: e.top - t.height -
|
|
2005
|
+
top: e.top - t.height - Jn,
|
|
1956
2006
|
left: e.left + e.width / 2 - t.width / 2
|
|
1957
2007
|
} : n === "left" ? {
|
|
1958
2008
|
top: e.top + e.height / 2 - t.height / 2,
|
|
1959
|
-
left: e.left - t.width -
|
|
2009
|
+
left: e.left - t.width - Jn
|
|
1960
2010
|
} : {
|
|
1961
2011
|
top: e.top + e.height / 2 - t.height / 2,
|
|
1962
|
-
left: e.right +
|
|
2012
|
+
left: e.right + Jn
|
|
1963
2013
|
};
|
|
1964
2014
|
}
|
|
1965
2015
|
for (let n of a) {
|
|
@@ -1979,7 +2029,7 @@ function Jn(e, t, n) {
|
|
|
1979
2029
|
top: a,
|
|
1980
2030
|
left: i,
|
|
1981
2031
|
placement: n,
|
|
1982
|
-
arrowOffset: Math.max(
|
|
2032
|
+
arrowOffset: Math.max(Yn + 4, Math.min(o, t.width - Yn - 4))
|
|
1983
2033
|
};
|
|
1984
2034
|
}
|
|
1985
2035
|
if ((n === "left" || n === "right") && l) {
|
|
@@ -1988,19 +2038,19 @@ function Jn(e, t, n) {
|
|
|
1988
2038
|
top: r,
|
|
1989
2039
|
left: s,
|
|
1990
2040
|
placement: n,
|
|
1991
|
-
arrowOffset: Math.max(
|
|
2041
|
+
arrowOffset: Math.max(Yn + 4, Math.min(o, t.height - Yn - 4))
|
|
1992
2042
|
};
|
|
1993
2043
|
}
|
|
1994
2044
|
}
|
|
1995
|
-
let s = e.bottom +
|
|
2045
|
+
let s = e.bottom + Jn, c = e.left + e.width / 2 - t.width / 2, l = Math.max(H, Math.min(s, i - t.height - H)), u = Math.max(H, Math.min(c, r - t.width - H)), d = e.left + e.width / 2 - u;
|
|
1996
2046
|
return {
|
|
1997
2047
|
top: l,
|
|
1998
2048
|
left: u,
|
|
1999
2049
|
placement: "bottom",
|
|
2000
|
-
arrowOffset: Math.max(
|
|
2050
|
+
arrowOffset: Math.max(Yn + 4, Math.min(d, t.width - Yn - 4))
|
|
2001
2051
|
};
|
|
2002
2052
|
}
|
|
2003
|
-
function
|
|
2053
|
+
function Zn({ content: r, placement: a = "bottom", open: o, onClose: c, onOpenChange: m, children: h }) {
|
|
2004
2054
|
let g = o !== void 0, [_, v] = f(!1), y = g ? o : _, [b, x] = f(null), S = u(), C = u(), w = d(null), T = d(null), E = d(null), D = s(() => {
|
|
2005
2055
|
g ? c?.() : v(!1), m?.(!1);
|
|
2006
2056
|
}, [
|
|
@@ -2015,7 +2065,7 @@ function Yn({ content: r, placement: a = "bottom", open: o, onClose: c, onOpenCh
|
|
|
2015
2065
|
g,
|
|
2016
2066
|
m
|
|
2017
2067
|
]), k = s(() => {
|
|
2018
|
-
!w.current || !T.current || x(
|
|
2068
|
+
!w.current || !T.current || x(Xn(w.current.getBoundingClientRect(), T.current.getBoundingClientRect(), a));
|
|
2019
2069
|
}, [a]);
|
|
2020
2070
|
l(() => {
|
|
2021
2071
|
if (!y) return;
|
|
@@ -2057,9 +2107,9 @@ function Yn({ content: r, placement: a = "bottom", open: o, onClose: c, onOpenCh
|
|
|
2057
2107
|
"aria-labelledby": S,
|
|
2058
2108
|
tabIndex: -1,
|
|
2059
2109
|
className: [
|
|
2060
|
-
|
|
2061
|
-
b ?
|
|
2062
|
-
y && b ?
|
|
2110
|
+
qn.panel,
|
|
2111
|
+
b ? qn[b.placement] : null,
|
|
2112
|
+
y && b ? qn.visible : null
|
|
2063
2113
|
].filter(Boolean).join(" "),
|
|
2064
2114
|
style: b ? {
|
|
2065
2115
|
top: b.top,
|
|
@@ -2072,25 +2122,25 @@ function Yn({ content: r, placement: a = "bottom", open: o, onClose: c, onOpenCh
|
|
|
2072
2122
|
},
|
|
2073
2123
|
onKeyDown: A,
|
|
2074
2124
|
children: [/* @__PURE__ */ t("div", {
|
|
2075
|
-
className:
|
|
2125
|
+
className: qn.arrow,
|
|
2076
2126
|
"aria-hidden": "true",
|
|
2077
2127
|
style: b?.arrowOffset === void 0 ? void 0 : b.placement === "top" || b.placement === "bottom" ? {
|
|
2078
|
-
left: b.arrowOffset -
|
|
2128
|
+
left: b.arrowOffset - Yn,
|
|
2079
2129
|
marginLeft: 0
|
|
2080
2130
|
} : {
|
|
2081
|
-
top: b.arrowOffset -
|
|
2131
|
+
top: b.arrowOffset - Yn,
|
|
2082
2132
|
marginTop: 0
|
|
2083
2133
|
}
|
|
2084
2134
|
}), r]
|
|
2085
2135
|
});
|
|
2086
2136
|
return /* @__PURE__ */ n(e, { children: [j, y && (typeof document < "u" ? p(M, document.body) : M)] });
|
|
2087
2137
|
}
|
|
2088
|
-
var
|
|
2138
|
+
var Qn = { clamp: "_clamp_1j51b_6" };
|
|
2089
2139
|
//#endregion
|
|
2090
2140
|
//#region src/components/Clamp/Clamp.tsx
|
|
2091
|
-
function
|
|
2141
|
+
function $n({ maximumSize: e = 600, children: n, className: r, style: i, ...a }) {
|
|
2092
2142
|
return /* @__PURE__ */ t("div", {
|
|
2093
|
-
className: [
|
|
2143
|
+
className: [Qn.clamp, r].filter(Boolean).join(" "),
|
|
2094
2144
|
style: {
|
|
2095
2145
|
maxWidth: e,
|
|
2096
2146
|
...i
|
|
@@ -2111,8 +2161,8 @@ var U = {
|
|
|
2111
2161
|
};
|
|
2112
2162
|
//#endregion
|
|
2113
2163
|
//#region src/components/NavigationSplitView/NavigationSplitView.tsx
|
|
2114
|
-
function
|
|
2115
|
-
let { isNarrow: d } =
|
|
2164
|
+
function er({ sidebar: e, content: r, showContent: i = !1, minSidebarWidth: a = 180, maxSidebarWidth: o = 280, sidebarWidthFraction: s = .25, className: c, style: l, ...u }) {
|
|
2165
|
+
let { isNarrow: d } = We(), f = `clamp(${a}px, ${s * 100}%, ${o}px)`;
|
|
2116
2166
|
return /* @__PURE__ */ n("div", {
|
|
2117
2167
|
className: [
|
|
2118
2168
|
U.root,
|
|
@@ -2157,8 +2207,8 @@ var W = {
|
|
|
2157
2207
|
};
|
|
2158
2208
|
//#endregion
|
|
2159
2209
|
//#region src/components/OverlaySplitView/OverlaySplitView.tsx
|
|
2160
|
-
function
|
|
2161
|
-
let { isNarrow: h } =
|
|
2210
|
+
function tr({ sidebar: e, content: r, showSidebar: i = !1, onClose: a, sidebarPosition: o = "start", minSidebarWidth: s = 180, maxSidebarWidth: c = 280, sidebarWidthFraction: u = .25, className: f, style: p, ...m }) {
|
|
2211
|
+
let { isNarrow: h } = We(), g = d(null), _ = `clamp(${s}px, ${u * 100}%, ${c}px)`;
|
|
2162
2212
|
l(() => {
|
|
2163
2213
|
if (!h || !i) return;
|
|
2164
2214
|
let e = (e) => {
|
|
@@ -2204,52 +2254,52 @@ function $n({ sidebar: e, content: r, showSidebar: i = !1, onClose: a, sidebarPo
|
|
|
2204
2254
|
]
|
|
2205
2255
|
});
|
|
2206
2256
|
}
|
|
2207
|
-
var
|
|
2257
|
+
var nr = { bar: "_bar_njcvu_3" };
|
|
2208
2258
|
//#endregion
|
|
2209
2259
|
//#region src/components/ViewSwitcherBar/ViewSwitcherBar.tsx
|
|
2210
|
-
function
|
|
2260
|
+
function rr({ children: e, reveal: n = !0, className: r, ...i }) {
|
|
2211
2261
|
return n ? /* @__PURE__ */ t("div", {
|
|
2212
2262
|
role: "navigation",
|
|
2213
2263
|
"aria-label": "Bottom navigation",
|
|
2214
|
-
className: [
|
|
2264
|
+
className: [nr.bar, r].filter(Boolean).join(" "),
|
|
2215
2265
|
...i,
|
|
2216
2266
|
children: e
|
|
2217
2267
|
}) : null;
|
|
2218
2268
|
}
|
|
2219
|
-
var
|
|
2269
|
+
var ir = {
|
|
2220
2270
|
link: "_link_x1qyh_1",
|
|
2221
2271
|
externalIcon: "_externalIcon_x1qyh_36"
|
|
2222
2272
|
};
|
|
2223
2273
|
//#endregion
|
|
2224
2274
|
//#region src/components/Link/Link.tsx
|
|
2225
|
-
function
|
|
2275
|
+
function ar({ external: e = !1, children: r, className: i, target: a, rel: o, ...s }) {
|
|
2226
2276
|
let c = e || a === "_blank";
|
|
2227
2277
|
return /* @__PURE__ */ n("a", {
|
|
2228
|
-
className: [
|
|
2278
|
+
className: [ir.link, i].filter(Boolean).join(" "),
|
|
2229
2279
|
target: c ? "_blank" : a,
|
|
2230
2280
|
rel: c ? "noopener noreferrer" : o,
|
|
2231
2281
|
...s,
|
|
2232
2282
|
children: [r, c && /* @__PURE__ */ t("span", {
|
|
2233
|
-
className:
|
|
2283
|
+
className: ir.externalIcon,
|
|
2234
2284
|
"aria-label": "(opens in new tab)",
|
|
2235
2285
|
children: "↗"
|
|
2236
2286
|
})]
|
|
2237
2287
|
});
|
|
2238
2288
|
}
|
|
2239
|
-
var
|
|
2289
|
+
var or = {
|
|
2240
2290
|
group: "_group_1fa3l_3",
|
|
2241
2291
|
item: "_item_1fa3l_18",
|
|
2242
2292
|
iconOnly: "_iconOnly_1fa3l_48",
|
|
2243
2293
|
active: "_active_1fa3l_53",
|
|
2244
2294
|
itemIcon: "_itemIcon_1fa3l_86",
|
|
2245
2295
|
itemLabel: "_itemLabel_1fa3l_92"
|
|
2246
|
-
},
|
|
2247
|
-
function
|
|
2248
|
-
let e = c(
|
|
2296
|
+
}, sr = a(null);
|
|
2297
|
+
function cr() {
|
|
2298
|
+
let e = c(sr);
|
|
2249
2299
|
if (!e) throw Error("ToggleGroupItem must be used inside ToggleGroup");
|
|
2250
2300
|
return e;
|
|
2251
2301
|
}
|
|
2252
|
-
function
|
|
2302
|
+
function lr({ value: e, onValueChange: n, "aria-label": r = "Options", children: i, className: a, ...o }) {
|
|
2253
2303
|
let s = d(null);
|
|
2254
2304
|
function c(e) {
|
|
2255
2305
|
let t = Array.from(s.current?.querySelectorAll("[role=radio]:not(:disabled)") ?? []), n = t.findIndex((e) => e === document.activeElement);
|
|
@@ -2262,7 +2312,7 @@ function sr({ value: e, onValueChange: n, "aria-label": r = "Options", children:
|
|
|
2262
2312
|
else return;
|
|
2263
2313
|
e.preventDefault(), t[r].focus(), t[r].click();
|
|
2264
2314
|
}
|
|
2265
|
-
return /* @__PURE__ */ t(
|
|
2315
|
+
return /* @__PURE__ */ t(sr.Provider, {
|
|
2266
2316
|
value: {
|
|
2267
2317
|
value: e,
|
|
2268
2318
|
onValueChange: n
|
|
@@ -2272,7 +2322,7 @@ function sr({ value: e, onValueChange: n, "aria-label": r = "Options", children:
|
|
|
2272
2322
|
role: "radiogroup",
|
|
2273
2323
|
"aria-label": r,
|
|
2274
2324
|
onKeyDown: c,
|
|
2275
|
-
className: [
|
|
2325
|
+
className: [or.group, a].filter(Boolean).join(" "),
|
|
2276
2326
|
...o,
|
|
2277
2327
|
children: i
|
|
2278
2328
|
})
|
|
@@ -2280,8 +2330,8 @@ function sr({ value: e, onValueChange: n, "aria-label": r = "Options", children:
|
|
|
2280
2330
|
}
|
|
2281
2331
|
//#endregion
|
|
2282
2332
|
//#region src/components/ToggleGroup/ToggleGroupItem.tsx
|
|
2283
|
-
function
|
|
2284
|
-
let { value: c, onValueChange: l } =
|
|
2333
|
+
function ur({ name: e, label: r, icon: i, disabled: a, className: o, ...s }) {
|
|
2334
|
+
let { value: c, onValueChange: l } = cr(), u = c === e, d = i && !r;
|
|
2285
2335
|
return /* @__PURE__ */ n("button", {
|
|
2286
2336
|
type: "button",
|
|
2287
2337
|
role: "radio",
|
|
@@ -2290,28 +2340,28 @@ function cr({ name: e, label: r, icon: i, disabled: a, className: o, ...s }) {
|
|
|
2290
2340
|
disabled: a,
|
|
2291
2341
|
onClick: () => l(e),
|
|
2292
2342
|
className: [
|
|
2293
|
-
|
|
2294
|
-
u ?
|
|
2295
|
-
d ?
|
|
2343
|
+
or.item,
|
|
2344
|
+
u ? or.active : null,
|
|
2345
|
+
d ? or.iconOnly : null,
|
|
2296
2346
|
o
|
|
2297
2347
|
].filter(Boolean).join(" "),
|
|
2298
2348
|
...s,
|
|
2299
2349
|
children: [i && /* @__PURE__ */ t("span", {
|
|
2300
|
-
className:
|
|
2301
|
-
children: /* @__PURE__ */ t(
|
|
2350
|
+
className: or.itemIcon,
|
|
2351
|
+
children: /* @__PURE__ */ t(I, {
|
|
2302
2352
|
icon: i,
|
|
2303
2353
|
size: "md",
|
|
2304
2354
|
"aria-hidden": !0
|
|
2305
2355
|
})
|
|
2306
2356
|
}), r && /* @__PURE__ */ t("span", {
|
|
2307
|
-
className:
|
|
2357
|
+
className: or.itemLabel,
|
|
2308
2358
|
children: r
|
|
2309
2359
|
})]
|
|
2310
2360
|
});
|
|
2311
2361
|
}
|
|
2312
2362
|
//#endregion
|
|
2313
2363
|
//#region src/components/Box/Box.tsx
|
|
2314
|
-
function
|
|
2364
|
+
function dr({ orientation: e = "vertical", spacing: n = 6, align: r, justify: i = "start", className: a, style: o, children: s, ...c }) {
|
|
2315
2365
|
let l = e === "horizontal" ? "center" : "stretch";
|
|
2316
2366
|
return /* @__PURE__ */ t("div", {
|
|
2317
2367
|
className: a,
|
|
@@ -2327,13 +2377,13 @@ function lr({ orientation: e = "vertical", spacing: n = 6, align: r, justify: i
|
|
|
2327
2377
|
children: s
|
|
2328
2378
|
});
|
|
2329
2379
|
}
|
|
2330
|
-
var
|
|
2380
|
+
var fr = {
|
|
2331
2381
|
wrapBox: "_wrapBox_1ik0x_1",
|
|
2332
2382
|
reverse: "_reverse_1ik0x_10"
|
|
2333
2383
|
};
|
|
2334
2384
|
//#endregion
|
|
2335
2385
|
//#region src/components/WrapBox/WrapBox.tsx
|
|
2336
|
-
function
|
|
2386
|
+
function pr({ childSpacing: e = 6, lineSpacing: n, justify: r = "start", align: i = "center", wrapReverse: a = !1, children: o, className: s, style: c, ...l }) {
|
|
2337
2387
|
let u = typeof e == "number" ? `${e}px` : e, d = n == null ? u : typeof n == "number" ? `${n}px` : n, f = {
|
|
2338
2388
|
"--wrapbox-gap": u,
|
|
2339
2389
|
"--wrapbox-row-gap": d,
|
|
@@ -2343,8 +2393,8 @@ function dr({ childSpacing: e = 6, lineSpacing: n, justify: r = "start", align:
|
|
|
2343
2393
|
};
|
|
2344
2394
|
return /* @__PURE__ */ t("div", {
|
|
2345
2395
|
className: [
|
|
2346
|
-
|
|
2347
|
-
a ?
|
|
2396
|
+
fr.wrapBox,
|
|
2397
|
+
a ? fr.reverse : null,
|
|
2348
2398
|
s
|
|
2349
2399
|
].filter(Boolean).join(" "),
|
|
2350
2400
|
style: f,
|
|
@@ -2352,7 +2402,7 @@ function dr({ childSpacing: e = 6, lineSpacing: n, justify: r = "start", align:
|
|
|
2352
2402
|
children: o
|
|
2353
2403
|
});
|
|
2354
2404
|
}
|
|
2355
|
-
var
|
|
2405
|
+
var mr = {
|
|
2356
2406
|
chip: "_chip_e26qc_3",
|
|
2357
2407
|
selectable: "_selectable_e26qc_31",
|
|
2358
2408
|
selected: "_selected_e26qc_55",
|
|
@@ -2363,37 +2413,37 @@ var fr = {
|
|
|
2363
2413
|
};
|
|
2364
2414
|
//#endregion
|
|
2365
2415
|
//#region src/components/Chip/Chip.tsx
|
|
2366
|
-
function
|
|
2416
|
+
function hr({ label: r, icon: i, onRemove: a, selectable: o = !1, selected: s = !1, onToggle: c, disabled: l = !1, className: u, ...d }) {
|
|
2367
2417
|
let f = o && !a, p = [
|
|
2368
|
-
|
|
2369
|
-
s ?
|
|
2370
|
-
l ?
|
|
2371
|
-
f ?
|
|
2418
|
+
mr.chip,
|
|
2419
|
+
s ? mr.selected : null,
|
|
2420
|
+
l ? mr.disabled : null,
|
|
2421
|
+
f ? mr.selectable : null,
|
|
2372
2422
|
u
|
|
2373
2423
|
].filter(Boolean).join(" "), m = /* @__PURE__ */ n(e, { children: [
|
|
2374
2424
|
i && /* @__PURE__ */ t("span", {
|
|
2375
|
-
className:
|
|
2376
|
-
children: /* @__PURE__ */ t(
|
|
2425
|
+
className: mr.icon,
|
|
2426
|
+
children: /* @__PURE__ */ t(I, {
|
|
2377
2427
|
icon: i,
|
|
2378
2428
|
size: "sm",
|
|
2379
2429
|
"aria-hidden": !0
|
|
2380
2430
|
})
|
|
2381
2431
|
}),
|
|
2382
2432
|
/* @__PURE__ */ t("span", {
|
|
2383
|
-
className:
|
|
2433
|
+
className: mr.label,
|
|
2384
2434
|
children: r
|
|
2385
2435
|
}),
|
|
2386
2436
|
a && /* @__PURE__ */ t("button", {
|
|
2387
2437
|
type: "button",
|
|
2388
|
-
className:
|
|
2438
|
+
className: mr.remove,
|
|
2389
2439
|
"aria-label": `Remove ${r}`,
|
|
2390
2440
|
disabled: l,
|
|
2391
2441
|
onClick: (e) => {
|
|
2392
2442
|
e.stopPropagation(), a();
|
|
2393
2443
|
},
|
|
2394
2444
|
tabIndex: l ? -1 : 0,
|
|
2395
|
-
children: /* @__PURE__ */ t(
|
|
2396
|
-
icon:
|
|
2445
|
+
children: /* @__PURE__ */ t(I, {
|
|
2446
|
+
icon: Pe,
|
|
2397
2447
|
size: "sm",
|
|
2398
2448
|
"aria-hidden": !0
|
|
2399
2449
|
})
|
|
@@ -2417,30 +2467,30 @@ function pr({ label: r, icon: i, onRemove: a, selectable: o = !1, selected: s =
|
|
|
2417
2467
|
}
|
|
2418
2468
|
//#endregion
|
|
2419
2469
|
//#region src/components/ShortcutsDialog/ShortcutsDialog.module.css
|
|
2420
|
-
var
|
|
2421
|
-
backdrop:
|
|
2470
|
+
var gr = "_backdrop_zvuhh_3", _r = "_dialog_zvuhh_26", vr = "_header_zvuhh_59", yr = "_title_zvuhh_67", br = "_closeBtn_zvuhh_74", xr = "_searchRow_zvuhh_112", Sr = "_searchIcon_zvuhh_124", Cr = "_searchInput_zvuhh_132", wr = "_searchClear_zvuhh_151", Tr = "_body_zvuhh_174", Er = "_empty_zvuhh_182", Dr = "_section_zvuhh_193", Or = "_sectionTitle_zvuhh_199", kr = "_list_zvuhh_209", Ar = "_row_zvuhh_225", jr = "_keys_zvuhh_240", Mr = "_keyCap_zvuhh_247", Nr = "_plus_zvuhh_277", Pr = "_description_zvuhh_284", G = {
|
|
2471
|
+
backdrop: gr,
|
|
2422
2472
|
"backdrop-in": "_backdrop-in_zvuhh_1",
|
|
2423
|
-
dialog:
|
|
2473
|
+
dialog: _r,
|
|
2424
2474
|
"dialog-in": "_dialog-in_zvuhh_1",
|
|
2425
|
-
header:
|
|
2426
|
-
title:
|
|
2427
|
-
closeBtn:
|
|
2428
|
-
searchRow:
|
|
2429
|
-
searchIcon:
|
|
2430
|
-
searchInput:
|
|
2431
|
-
searchClear:
|
|
2432
|
-
body:
|
|
2433
|
-
empty:
|
|
2434
|
-
section:
|
|
2435
|
-
sectionTitle:
|
|
2436
|
-
list:
|
|
2437
|
-
row:
|
|
2438
|
-
keys:
|
|
2439
|
-
keyCap:
|
|
2440
|
-
plus:
|
|
2441
|
-
description:
|
|
2442
|
-
},
|
|
2443
|
-
function
|
|
2475
|
+
header: vr,
|
|
2476
|
+
title: yr,
|
|
2477
|
+
closeBtn: br,
|
|
2478
|
+
searchRow: xr,
|
|
2479
|
+
searchIcon: Sr,
|
|
2480
|
+
searchInput: Cr,
|
|
2481
|
+
searchClear: wr,
|
|
2482
|
+
body: Tr,
|
|
2483
|
+
empty: Er,
|
|
2484
|
+
section: Dr,
|
|
2485
|
+
sectionTitle: Or,
|
|
2486
|
+
list: kr,
|
|
2487
|
+
row: Ar,
|
|
2488
|
+
keys: jr,
|
|
2489
|
+
keyCap: Mr,
|
|
2490
|
+
plus: Nr,
|
|
2491
|
+
description: Pr
|
|
2492
|
+
}, Fr = "button:not([disabled]), [href], input:not([disabled]), [tabindex]:not([tabindex=\"-1\"])";
|
|
2493
|
+
function Ir({ open: e, onClose: r, title: i = "Keyboard Shortcuts", sections: a }) {
|
|
2444
2494
|
let [o, c] = f(""), u = d(null), m = d(null), h = d(null), g = d(`shortcuts-title-${Math.random().toString(36).slice(2, 9)}`);
|
|
2445
2495
|
l(() => {
|
|
2446
2496
|
e ? (h.current = document.activeElement, requestAnimationFrame(() => m.current?.focus())) : (c(""), h.current?.focus());
|
|
@@ -2451,7 +2501,7 @@ function Pr({ open: e, onClose: r, title: i = "Keyboard Shortcuts", sections: a
|
|
|
2451
2501
|
return;
|
|
2452
2502
|
}
|
|
2453
2503
|
if (e.key !== "Tab") return;
|
|
2454
|
-
let t = Array.from(u.current?.querySelectorAll(
|
|
2504
|
+
let t = Array.from(u.current?.querySelectorAll(Fr) ?? []);
|
|
2455
2505
|
if (t.length === 0) return;
|
|
2456
2506
|
let n = t[0], i = t[t.length - 1];
|
|
2457
2507
|
e.shiftKey ? document.activeElement === n && (e.preventDefault(), i.focus()) : document.activeElement === i && (e.preventDefault(), n.focus());
|
|
@@ -2559,7 +2609,7 @@ function Pr({ open: e, onClose: r, title: i = "Keyboard Shortcuts", sections: a
|
|
|
2559
2609
|
});
|
|
2560
2610
|
return typeof document > "u" ? b : p(b, document.body);
|
|
2561
2611
|
}
|
|
2562
|
-
var
|
|
2612
|
+
var Lr = {
|
|
2563
2613
|
sidebar: "_sidebar_kmj4b_3",
|
|
2564
2614
|
list: "_list_kmj4b_17",
|
|
2565
2615
|
item: "_item_kmj4b_28",
|
|
@@ -2569,13 +2619,13 @@ var Fr = {
|
|
|
2569
2619
|
itemLabel: "_itemLabel_kmj4b_119",
|
|
2570
2620
|
itemSuffix: "_itemSuffix_kmj4b_129",
|
|
2571
2621
|
count: "_count_kmj4b_136"
|
|
2572
|
-
},
|
|
2573
|
-
function
|
|
2574
|
-
let e = c(
|
|
2622
|
+
}, Rr = a(null);
|
|
2623
|
+
function zr() {
|
|
2624
|
+
let e = c(Rr);
|
|
2575
2625
|
if (!e) throw Error("ViewSwitcherSidebarItem must be used inside ViewSwitcherSidebar");
|
|
2576
2626
|
return e;
|
|
2577
2627
|
}
|
|
2578
|
-
function
|
|
2628
|
+
function Br({ value: e, onValueChange: n, "aria-label": r = "Views", children: i, className: a, ...o }) {
|
|
2579
2629
|
let s = d(null);
|
|
2580
2630
|
function c(e) {
|
|
2581
2631
|
let t = Array.from(s.current?.querySelectorAll("[role=radio]:not(:disabled)") ?? []), n = t.findIndex((e) => e === document.activeElement);
|
|
@@ -2588,20 +2638,20 @@ function Rr({ value: e, onValueChange: n, "aria-label": r = "Views", children: i
|
|
|
2588
2638
|
else return;
|
|
2589
2639
|
e.preventDefault(), t[r].focus(), t[r].click();
|
|
2590
2640
|
}
|
|
2591
|
-
return /* @__PURE__ */ t(
|
|
2641
|
+
return /* @__PURE__ */ t(Rr.Provider, {
|
|
2592
2642
|
value: {
|
|
2593
2643
|
value: e,
|
|
2594
2644
|
onValueChange: n
|
|
2595
2645
|
},
|
|
2596
2646
|
children: /* @__PURE__ */ t("nav", {
|
|
2597
|
-
className: [
|
|
2647
|
+
className: [Lr.sidebar, a].filter(Boolean).join(" "),
|
|
2598
2648
|
onKeyDown: c,
|
|
2599
2649
|
...o,
|
|
2600
2650
|
children: /* @__PURE__ */ t("ul", {
|
|
2601
2651
|
ref: s,
|
|
2602
2652
|
role: "radiogroup",
|
|
2603
2653
|
"aria-label": r,
|
|
2604
|
-
className:
|
|
2654
|
+
className: Lr.list,
|
|
2605
2655
|
children: i
|
|
2606
2656
|
})
|
|
2607
2657
|
})
|
|
@@ -2609,10 +2659,10 @@ function Rr({ value: e, onValueChange: n, "aria-label": r = "Views", children: i
|
|
|
2609
2659
|
}
|
|
2610
2660
|
//#endregion
|
|
2611
2661
|
//#region src/components/ViewSwitcherSidebar/ViewSwitcherSidebarItem.tsx
|
|
2612
|
-
function
|
|
2613
|
-
let { value: u, onValueChange: d } =
|
|
2662
|
+
function Vr({ name: e, label: r, icon: i, count: a, suffix: o, disabled: s, className: c, ...l }) {
|
|
2663
|
+
let { value: u, onValueChange: d } = zr(), f = u === e, p = o ?? a ?? null;
|
|
2614
2664
|
return /* @__PURE__ */ t("li", {
|
|
2615
|
-
className:
|
|
2665
|
+
className: Lr.item,
|
|
2616
2666
|
children: /* @__PURE__ */ n("button", {
|
|
2617
2667
|
type: "button",
|
|
2618
2668
|
role: "radio",
|
|
@@ -2621,28 +2671,28 @@ function zr({ name: e, label: r, icon: i, count: a, suffix: o, disabled: s, clas
|
|
|
2621
2671
|
disabled: s,
|
|
2622
2672
|
onClick: () => d(e),
|
|
2623
2673
|
className: [
|
|
2624
|
-
|
|
2625
|
-
f ?
|
|
2674
|
+
Lr.itemBtn,
|
|
2675
|
+
f ? Lr.active : null,
|
|
2626
2676
|
c
|
|
2627
2677
|
].filter(Boolean).join(" "),
|
|
2628
2678
|
...l,
|
|
2629
2679
|
children: [
|
|
2630
2680
|
i && /* @__PURE__ */ t("span", {
|
|
2631
|
-
className:
|
|
2632
|
-
children: /* @__PURE__ */ t(
|
|
2681
|
+
className: Lr.itemIcon,
|
|
2682
|
+
children: /* @__PURE__ */ t(I, {
|
|
2633
2683
|
icon: i,
|
|
2634
2684
|
size: "md",
|
|
2635
2685
|
"aria-hidden": !0
|
|
2636
2686
|
})
|
|
2637
2687
|
}),
|
|
2638
2688
|
/* @__PURE__ */ t("span", {
|
|
2639
|
-
className:
|
|
2689
|
+
className: Lr.itemLabel,
|
|
2640
2690
|
children: r
|
|
2641
2691
|
}),
|
|
2642
2692
|
p != null && /* @__PURE__ */ t("span", {
|
|
2643
|
-
className:
|
|
2693
|
+
className: Lr.itemSuffix,
|
|
2644
2694
|
children: typeof p == "number" ? /* @__PURE__ */ t("span", {
|
|
2645
|
-
className:
|
|
2695
|
+
className: Lr.count,
|
|
2646
2696
|
children: p > 99 ? "99+" : p
|
|
2647
2697
|
}) : p
|
|
2648
2698
|
})
|
|
@@ -2652,7 +2702,7 @@ function zr({ name: e, label: r, icon: i, count: a, suffix: o, disabled: s, clas
|
|
|
2652
2702
|
}
|
|
2653
2703
|
//#endregion
|
|
2654
2704
|
//#region src/components/BreakpointBin/BreakpointBin.tsx
|
|
2655
|
-
function
|
|
2705
|
+
function Hr({ breakpoints: e, children: n, className: r, style: i, ...a }) {
|
|
2656
2706
|
let o = d(null), [s, c] = f({
|
|
2657
2707
|
activeBreakpoint: null,
|
|
2658
2708
|
width: 0
|
|
@@ -2682,7 +2732,7 @@ function Br({ breakpoints: e, children: n, className: r, style: i, ...a }) {
|
|
|
2682
2732
|
children: n(s)
|
|
2683
2733
|
});
|
|
2684
2734
|
}
|
|
2685
|
-
var
|
|
2735
|
+
var Ur = {
|
|
2686
2736
|
row: "_row_1ba2f_3",
|
|
2687
2737
|
title: "_title_1ba2f_48",
|
|
2688
2738
|
leading: "_leading_1ba2f_59",
|
|
@@ -2693,31 +2743,31 @@ var Vr = {
|
|
|
2693
2743
|
};
|
|
2694
2744
|
//#endregion
|
|
2695
2745
|
//#region src/components/ButtonRow/ButtonRow.tsx
|
|
2696
|
-
function
|
|
2746
|
+
function Wr({ title: e, variant: r = "default", leading: i, trailing: a, className: o, ...s }) {
|
|
2697
2747
|
return /* @__PURE__ */ n("button", {
|
|
2698
2748
|
className: [
|
|
2699
|
-
|
|
2700
|
-
|
|
2749
|
+
Ur.row,
|
|
2750
|
+
Ur[r],
|
|
2701
2751
|
o
|
|
2702
2752
|
].filter(Boolean).join(" "),
|
|
2703
2753
|
...s,
|
|
2704
2754
|
children: [
|
|
2705
2755
|
i && /* @__PURE__ */ t("span", {
|
|
2706
|
-
className:
|
|
2756
|
+
className: Ur.leading,
|
|
2707
2757
|
children: i
|
|
2708
2758
|
}),
|
|
2709
2759
|
/* @__PURE__ */ t("span", {
|
|
2710
|
-
className:
|
|
2760
|
+
className: Ur.title,
|
|
2711
2761
|
children: e
|
|
2712
2762
|
}),
|
|
2713
2763
|
a && /* @__PURE__ */ t("span", {
|
|
2714
|
-
className:
|
|
2764
|
+
className: Ur.trailing,
|
|
2715
2765
|
children: a
|
|
2716
2766
|
})
|
|
2717
2767
|
]
|
|
2718
2768
|
});
|
|
2719
2769
|
}
|
|
2720
|
-
var
|
|
2770
|
+
var Gr = {
|
|
2721
2771
|
container: "_container_4kjnf_3",
|
|
2722
2772
|
primary: "_primary_4kjnf_14",
|
|
2723
2773
|
toggle: "_toggle_4kjnf_15",
|
|
@@ -2731,7 +2781,7 @@ var Ur = {
|
|
|
2731
2781
|
};
|
|
2732
2782
|
//#endregion
|
|
2733
2783
|
//#region src/components/SplitButton/SplitButton.tsx
|
|
2734
|
-
function
|
|
2784
|
+
function Kr({ label: r, variant: i = "default", dropdownContent: a, dropdownLabel: o = "More options", disabled: c = !1, onClick: u, className: m, ...h }) {
|
|
2735
2785
|
let [g, _] = f(!1), [v, y] = f({}), b = d(null), x = d(null), S = d(null), C = s(() => _(!1), []), w = s(() => {
|
|
2736
2786
|
if (!x.current || !S.current) return;
|
|
2737
2787
|
let e = x.current.getBoundingClientRect(), t = S.current.getBoundingClientRect(), n = window.innerWidth, r = e.right - t.width;
|
|
@@ -2761,15 +2811,15 @@ function Wr({ label: r, variant: i = "default", dropdownContent: a, dropdownLabe
|
|
|
2761
2811
|
let T = (e) => {
|
|
2762
2812
|
e.key === "Escape" && (e.stopPropagation(), C(), x.current?.focus());
|
|
2763
2813
|
}, E = [
|
|
2764
|
-
|
|
2765
|
-
|
|
2814
|
+
Gr.container,
|
|
2815
|
+
Gr[i],
|
|
2766
2816
|
m
|
|
2767
2817
|
].filter(Boolean).join(" "), D = /* @__PURE__ */ t("div", {
|
|
2768
2818
|
ref: S,
|
|
2769
2819
|
role: "dialog",
|
|
2770
2820
|
"aria-label": o,
|
|
2771
2821
|
tabIndex: -1,
|
|
2772
|
-
className: [
|
|
2822
|
+
className: [Gr.dropdown, g ? Gr.dropdownVisible : null].filter(Boolean).join(" "),
|
|
2773
2823
|
style: Object.keys(v).length ? {
|
|
2774
2824
|
...v,
|
|
2775
2825
|
position: "fixed"
|
|
@@ -2788,26 +2838,26 @@ function Wr({ label: r, variant: i = "default", dropdownContent: a, dropdownLabe
|
|
|
2788
2838
|
className: E,
|
|
2789
2839
|
children: [
|
|
2790
2840
|
/* @__PURE__ */ t("button", {
|
|
2791
|
-
className:
|
|
2841
|
+
className: Gr.primary,
|
|
2792
2842
|
disabled: c,
|
|
2793
2843
|
onClick: u,
|
|
2794
2844
|
...h,
|
|
2795
2845
|
children: r
|
|
2796
2846
|
}),
|
|
2797
2847
|
/* @__PURE__ */ t("span", {
|
|
2798
|
-
className:
|
|
2848
|
+
className: Gr.separator,
|
|
2799
2849
|
"aria-hidden": "true"
|
|
2800
2850
|
}),
|
|
2801
2851
|
/* @__PURE__ */ t("button", {
|
|
2802
2852
|
ref: x,
|
|
2803
|
-
className:
|
|
2853
|
+
className: Gr.toggle,
|
|
2804
2854
|
disabled: c,
|
|
2805
2855
|
"aria-label": o,
|
|
2806
2856
|
"aria-haspopup": "dialog",
|
|
2807
2857
|
"aria-expanded": g,
|
|
2808
2858
|
onClick: () => _((e) => !e),
|
|
2809
2859
|
children: /* @__PURE__ */ t("svg", {
|
|
2810
|
-
className:
|
|
2860
|
+
className: Gr.chevron,
|
|
2811
2861
|
width: "16",
|
|
2812
2862
|
height: "16",
|
|
2813
2863
|
viewBox: "0 0 16 16",
|
|
@@ -2826,51 +2876,51 @@ function Wr({ label: r, variant: i = "default", dropdownContent: a, dropdownLabe
|
|
|
2826
2876
|
]
|
|
2827
2877
|
}), g && (typeof document < "u" ? p(D, document.body) : D)] });
|
|
2828
2878
|
}
|
|
2829
|
-
var
|
|
2879
|
+
var qr = {
|
|
2830
2880
|
toolbar: "_toolbar_1avgl_2",
|
|
2831
2881
|
spacer: "_spacer_1avgl_20"
|
|
2832
2882
|
};
|
|
2833
2883
|
//#endregion
|
|
2834
2884
|
//#region src/components/Toolbar/Toolbar.tsx
|
|
2835
|
-
function
|
|
2885
|
+
function Jr({ children: e, className: n, ...r }) {
|
|
2836
2886
|
return /* @__PURE__ */ t("div", {
|
|
2837
|
-
className: [
|
|
2887
|
+
className: [qr.toolbar, n].filter(Boolean).join(" "),
|
|
2838
2888
|
...r,
|
|
2839
2889
|
children: e
|
|
2840
2890
|
});
|
|
2841
2891
|
}
|
|
2842
2892
|
//#endregion
|
|
2843
2893
|
//#region src/components/Toolbar/Spacer.tsx
|
|
2844
|
-
function
|
|
2894
|
+
function Yr({ className: e, ...n }) {
|
|
2845
2895
|
return /* @__PURE__ */ t("div", {
|
|
2846
2896
|
"aria-hidden": "true",
|
|
2847
|
-
className: [
|
|
2897
|
+
className: [qr.spacer, e].filter(Boolean).join(" "),
|
|
2848
2898
|
...n
|
|
2849
2899
|
});
|
|
2850
2900
|
}
|
|
2851
|
-
var
|
|
2901
|
+
var Xr = {
|
|
2852
2902
|
linked: "_linked_1tser_3",
|
|
2853
2903
|
vertical: "_vertical_1tser_9"
|
|
2854
2904
|
};
|
|
2855
2905
|
//#endregion
|
|
2856
2906
|
//#region src/components/LinkedGroup/LinkedGroup.tsx
|
|
2857
|
-
function
|
|
2907
|
+
function Zr({ children: e, vertical: n = !1, className: r, ...i }) {
|
|
2858
2908
|
return /* @__PURE__ */ t("div", {
|
|
2859
2909
|
className: [
|
|
2860
|
-
|
|
2861
|
-
n ?
|
|
2910
|
+
Xr.linked,
|
|
2911
|
+
n ? Xr.vertical : null,
|
|
2862
2912
|
r
|
|
2863
2913
|
].filter(Boolean).join(" "),
|
|
2864
2914
|
...i,
|
|
2865
2915
|
children: e
|
|
2866
2916
|
});
|
|
2867
2917
|
}
|
|
2868
|
-
var
|
|
2918
|
+
var Qr = { frame: "_frame_1bq7b_2" };
|
|
2869
2919
|
//#endregion
|
|
2870
2920
|
//#region src/components/Frame/Frame.tsx
|
|
2871
|
-
function
|
|
2921
|
+
function $r({ children: e, className: n, ...r }) {
|
|
2872
2922
|
return /* @__PURE__ */ t("div", {
|
|
2873
|
-
className: [
|
|
2923
|
+
className: [Qr.frame, n].filter(Boolean).join(" "),
|
|
2874
2924
|
...r,
|
|
2875
2925
|
children: e
|
|
2876
2926
|
});
|
|
@@ -2894,7 +2944,7 @@ var K = {
|
|
|
2894
2944
|
};
|
|
2895
2945
|
//#endregion
|
|
2896
2946
|
//#region src/components/ExpanderRow/ExpanderRow.tsx
|
|
2897
|
-
function
|
|
2947
|
+
function ei({ title: e, subtitle: i, leading: a, trailing: o, children: s, expanded: c, defaultExpanded: l = !1, onExpandedChange: d, className: p, ...m }) {
|
|
2898
2948
|
let h = c !== void 0, [g, _] = f(l), v = h ? c : g, y = u(), b = u(), x = () => {
|
|
2899
2949
|
let e = !v;
|
|
2900
2950
|
h || _(e), d?.(e);
|
|
@@ -2969,7 +3019,7 @@ function Qr({ title: e, subtitle: i, leading: a, trailing: o, children: s, expan
|
|
|
2969
3019
|
})]
|
|
2970
3020
|
});
|
|
2971
3021
|
}
|
|
2972
|
-
var
|
|
3022
|
+
var ti = {
|
|
2973
3023
|
switcher: "_switcher_2tknm_3",
|
|
2974
3024
|
item: "_item_2tknm_10",
|
|
2975
3025
|
iconOnly: "_iconOnly_2tknm_38",
|
|
@@ -2979,13 +3029,13 @@ var $r = {
|
|
|
2979
3029
|
active: "_active_2tknm_68",
|
|
2980
3030
|
flat: "_flat_2tknm_121",
|
|
2981
3031
|
round: "_round_2tknm_169"
|
|
2982
|
-
},
|
|
2983
|
-
function
|
|
2984
|
-
let e = c(
|
|
3032
|
+
}, ni = a(null);
|
|
3033
|
+
function ri() {
|
|
3034
|
+
let e = c(ni);
|
|
2985
3035
|
if (!e) throw Error("InlineViewSwitcherItem must be used inside InlineViewSwitcher");
|
|
2986
3036
|
return e;
|
|
2987
3037
|
}
|
|
2988
|
-
function
|
|
3038
|
+
function ii({ value: e, onValueChange: n, variant: r = "default", "aria-label": i = "View switcher", children: a, className: o, ...s }) {
|
|
2989
3039
|
let c = d(null);
|
|
2990
3040
|
function l(e) {
|
|
2991
3041
|
let t = Array.from(c.current?.querySelectorAll("[role=radio]:not(:disabled)") ?? []), n = t.findIndex((e) => e === document.activeElement);
|
|
@@ -2998,7 +3048,7 @@ function ni({ value: e, onValueChange: n, variant: r = "default", "aria-label":
|
|
|
2998
3048
|
else return;
|
|
2999
3049
|
e.preventDefault(), t[r].focus(), t[r].click();
|
|
3000
3050
|
}
|
|
3001
|
-
return /* @__PURE__ */ t(
|
|
3051
|
+
return /* @__PURE__ */ t(ni.Provider, {
|
|
3002
3052
|
value: {
|
|
3003
3053
|
value: e,
|
|
3004
3054
|
onValueChange: n
|
|
@@ -3009,8 +3059,8 @@ function ni({ value: e, onValueChange: n, variant: r = "default", "aria-label":
|
|
|
3009
3059
|
"aria-label": i,
|
|
3010
3060
|
onKeyDown: l,
|
|
3011
3061
|
className: [
|
|
3012
|
-
|
|
3013
|
-
|
|
3062
|
+
ti.switcher,
|
|
3063
|
+
ti[r],
|
|
3014
3064
|
o
|
|
3015
3065
|
].filter(Boolean).join(" "),
|
|
3016
3066
|
...s,
|
|
@@ -3020,8 +3070,8 @@ function ni({ value: e, onValueChange: n, variant: r = "default", "aria-label":
|
|
|
3020
3070
|
}
|
|
3021
3071
|
//#endregion
|
|
3022
3072
|
//#region src/components/InlineViewSwitcher/InlineViewSwitcherItem.tsx
|
|
3023
|
-
function
|
|
3024
|
-
let { value: c, onValueChange: l } =
|
|
3073
|
+
function ai({ name: e, label: r, icon: i, disabled: a, className: o, ...s }) {
|
|
3074
|
+
let { value: c, onValueChange: l } = ri(), u = c === e, d = i && !r;
|
|
3025
3075
|
return /* @__PURE__ */ n("button", {
|
|
3026
3076
|
type: "button",
|
|
3027
3077
|
role: "radio",
|
|
@@ -3030,26 +3080,26 @@ function ri({ name: e, label: r, icon: i, disabled: a, className: o, ...s }) {
|
|
|
3030
3080
|
disabled: a,
|
|
3031
3081
|
onClick: () => l(e),
|
|
3032
3082
|
className: [
|
|
3033
|
-
|
|
3034
|
-
u ?
|
|
3035
|
-
d ?
|
|
3083
|
+
ti.item,
|
|
3084
|
+
u ? ti.active : null,
|
|
3085
|
+
d ? ti.iconOnly : null,
|
|
3036
3086
|
o
|
|
3037
3087
|
].filter(Boolean).join(" "),
|
|
3038
3088
|
...s,
|
|
3039
3089
|
children: [i && /* @__PURE__ */ t("span", {
|
|
3040
|
-
className:
|
|
3041
|
-
children: /* @__PURE__ */ t(
|
|
3090
|
+
className: ti.itemIcon,
|
|
3091
|
+
children: /* @__PURE__ */ t(I, {
|
|
3042
3092
|
icon: i,
|
|
3043
3093
|
size: "md",
|
|
3044
3094
|
"aria-hidden": !0
|
|
3045
3095
|
})
|
|
3046
3096
|
}), r && /* @__PURE__ */ t("span", {
|
|
3047
|
-
className:
|
|
3097
|
+
className: ti.itemLabel,
|
|
3048
3098
|
children: r
|
|
3049
3099
|
})]
|
|
3050
3100
|
});
|
|
3051
3101
|
}
|
|
3052
|
-
var
|
|
3102
|
+
var oi = {
|
|
3053
3103
|
row: "_row_jl3bc_3",
|
|
3054
3104
|
disabled: "_disabled_jl3bc_41",
|
|
3055
3105
|
leading: "_leading_jl3bc_49",
|
|
@@ -3062,7 +3112,7 @@ var ii = {
|
|
|
3062
3112
|
};
|
|
3063
3113
|
//#endregion
|
|
3064
3114
|
//#region src/components/SwitchRow/SwitchRow.tsx
|
|
3065
|
-
function
|
|
3115
|
+
function si({ title: e, subtitle: r, leading: i, checked: a, defaultChecked: o = !1, onCheckedChange: s, disabled: c = !1, className: l, onClick: d, ...p }) {
|
|
3066
3116
|
let m = a !== void 0, [h, g] = f(o), _ = m ? a : h, v = u(), y = (e) => {
|
|
3067
3117
|
let t = !_;
|
|
3068
3118
|
m || g(t), s?.(t), d?.(e);
|
|
@@ -3073,32 +3123,32 @@ function ai({ title: e, subtitle: r, leading: i, checked: a, defaultChecked: o =
|
|
|
3073
3123
|
"aria-labelledby": v,
|
|
3074
3124
|
disabled: c,
|
|
3075
3125
|
className: [
|
|
3076
|
-
|
|
3077
|
-
c ?
|
|
3126
|
+
oi.row,
|
|
3127
|
+
c ? oi.disabled : null,
|
|
3078
3128
|
l
|
|
3079
3129
|
].filter(Boolean).join(" "),
|
|
3080
3130
|
onClick: y,
|
|
3081
3131
|
...p,
|
|
3082
3132
|
children: [
|
|
3083
3133
|
i && /* @__PURE__ */ t("span", {
|
|
3084
|
-
className:
|
|
3134
|
+
className: oi.leading,
|
|
3085
3135
|
children: i
|
|
3086
3136
|
}),
|
|
3087
3137
|
/* @__PURE__ */ n("span", {
|
|
3088
|
-
className:
|
|
3138
|
+
className: oi.content,
|
|
3089
3139
|
id: v,
|
|
3090
3140
|
children: [/* @__PURE__ */ t("span", {
|
|
3091
|
-
className:
|
|
3141
|
+
className: oi.title,
|
|
3092
3142
|
children: e
|
|
3093
3143
|
}), r && /* @__PURE__ */ t("span", {
|
|
3094
|
-
className:
|
|
3144
|
+
className: oi.subtitle,
|
|
3095
3145
|
children: r
|
|
3096
3146
|
})]
|
|
3097
3147
|
}),
|
|
3098
3148
|
/* @__PURE__ */ t("span", {
|
|
3099
|
-
className:
|
|
3149
|
+
className: oi.switchTrack,
|
|
3100
3150
|
"aria-hidden": "true",
|
|
3101
|
-
children: /* @__PURE__ */ t("span", { className: [
|
|
3151
|
+
children: /* @__PURE__ */ t("span", { className: [oi.switchThumb, _ ? oi.switchThumbOn : null].filter(Boolean).join(" ") })
|
|
3102
3152
|
})
|
|
3103
3153
|
]
|
|
3104
3154
|
});
|
|
@@ -3117,7 +3167,7 @@ var q = {
|
|
|
3117
3167
|
};
|
|
3118
3168
|
//#endregion
|
|
3119
3169
|
//#region src/components/CheckRow/CheckRow.tsx
|
|
3120
|
-
function
|
|
3170
|
+
function ci({ title: e, subtitle: r, leading: i, checked: a, defaultChecked: o = !1, onCheckedChange: s, disabled: c = !1, className: l, onClick: d, ...p }) {
|
|
3121
3171
|
let m = a !== void 0, [h, g] = f(o), _ = m ? a : h, v = u(), y = (e) => {
|
|
3122
3172
|
let t = !_;
|
|
3123
3173
|
m || g(t), s?.(t), d?.(e);
|
|
@@ -3177,35 +3227,35 @@ function oi({ title: e, subtitle: r, leading: i, checked: a, defaultChecked: o =
|
|
|
3177
3227
|
}
|
|
3178
3228
|
//#endregion
|
|
3179
3229
|
//#region src/components/ComboRow/ComboRow.module.css
|
|
3180
|
-
var
|
|
3181
|
-
row:
|
|
3182
|
-
disabled:
|
|
3183
|
-
leading:
|
|
3184
|
-
content:
|
|
3185
|
-
title:
|
|
3186
|
-
subtitle:
|
|
3187
|
-
comboWrap:
|
|
3188
|
-
trigger:
|
|
3189
|
-
triggerOpen:
|
|
3190
|
-
triggerLabel:
|
|
3191
|
-
placeholder:
|
|
3192
|
-
chevron:
|
|
3193
|
-
chevronOpen:
|
|
3194
|
-
list:
|
|
3230
|
+
var li = "_row_46mn8_3", ui = "_disabled_46mn8_16", di = "_leading_46mn8_23", fi = "_content_46mn8_32", pi = "_title_46mn8_40", mi = "_subtitle_46mn8_51", hi = "_comboWrap_46mn8_65", gi = "_trigger_46mn8_73", _i = "_triggerOpen_46mn8_126", vi = "_triggerLabel_46mn8_136", yi = "_placeholder_46mn8_144", bi = "_chevron_46mn8_150", xi = "_chevronOpen_46mn8_157", Si = "_list_46mn8_163", Ci = "_listDown_46mn8_192", wi = "_listUp_46mn8_196", Ti = "_option_46mn8_208", Ei = "_optionActive_46mn8_225", Di = "_optionSelected_46mn8_229", Oi = "_optionDisabled_46mn8_233", ki = "_optionLabel_46mn8_239", Ai = "_checkIcon_46mn8_247", J = {
|
|
3231
|
+
row: li,
|
|
3232
|
+
disabled: ui,
|
|
3233
|
+
leading: di,
|
|
3234
|
+
content: fi,
|
|
3235
|
+
title: pi,
|
|
3236
|
+
subtitle: mi,
|
|
3237
|
+
comboWrap: hi,
|
|
3238
|
+
trigger: gi,
|
|
3239
|
+
triggerOpen: _i,
|
|
3240
|
+
triggerLabel: vi,
|
|
3241
|
+
placeholder: yi,
|
|
3242
|
+
chevron: bi,
|
|
3243
|
+
chevronOpen: xi,
|
|
3244
|
+
list: Si,
|
|
3195
3245
|
"list-in": "_list-in_46mn8_1",
|
|
3196
|
-
listDown:
|
|
3197
|
-
listUp:
|
|
3246
|
+
listDown: Ci,
|
|
3247
|
+
listUp: wi,
|
|
3198
3248
|
"list-in-up": "_list-in-up_46mn8_1",
|
|
3199
|
-
option:
|
|
3200
|
-
optionActive:
|
|
3201
|
-
optionSelected:
|
|
3202
|
-
optionDisabled:
|
|
3203
|
-
optionLabel:
|
|
3204
|
-
checkIcon:
|
|
3249
|
+
option: Ti,
|
|
3250
|
+
optionActive: Ei,
|
|
3251
|
+
optionSelected: Di,
|
|
3252
|
+
optionDisabled: Oi,
|
|
3253
|
+
optionLabel: ki,
|
|
3254
|
+
checkIcon: Ai
|
|
3205
3255
|
};
|
|
3206
3256
|
//#endregion
|
|
3207
3257
|
//#region src/components/ComboRow/ComboRow.tsx
|
|
3208
|
-
function
|
|
3258
|
+
function ji({ title: e, subtitle: r, leading: i, options: a, value: o, defaultValue: c, onValueChange: p, disabled: m = !1, className: h, ...g }) {
|
|
3209
3259
|
let _ = o !== void 0, [v, y] = f(c), b = _ ? o : v, [x, S] = f(!1), [C, w] = f(-1), [T, E] = f(!1), D = u(), O = u(), k = d(null), A = d(null), j = a.find((e) => e.value === b), M = s(() => {
|
|
3210
3260
|
if (!k.current) return;
|
|
3211
3261
|
let e = k.current.getBoundingClientRect(), t = window.innerHeight - e.bottom, n = Math.min(a.length * 44 + 8, 260);
|
|
@@ -3408,7 +3458,7 @@ var Y = {
|
|
|
3408
3458
|
};
|
|
3409
3459
|
//#endregion
|
|
3410
3460
|
//#region src/components/EntryRow/EntryRow.tsx
|
|
3411
|
-
function
|
|
3461
|
+
function Mi({ title: e, value: r, defaultValue: i = "", onValueChange: a, leading: o, trailing: s, disabled: c, className: l, id: p, onChange: m, ...h }) {
|
|
3412
3462
|
let g = u(), _ = p ?? g, v = r !== void 0, [y, b] = f(String(i)), x = v ? String(r) : y, [S, C] = f(!1), w = d(null), T = S || x.length > 0;
|
|
3413
3463
|
return /* @__PURE__ */ n("div", {
|
|
3414
3464
|
className: [
|
|
@@ -3450,26 +3500,26 @@ function Ai({ title: e, value: r, defaultValue: i = "", onValueChange: a, leadin
|
|
|
3450
3500
|
]
|
|
3451
3501
|
});
|
|
3452
3502
|
}
|
|
3453
|
-
var
|
|
3503
|
+
var Ni = { revealButton: "_revealButton_1j8z0_3" };
|
|
3454
3504
|
//#endregion
|
|
3455
3505
|
//#region src/components/PasswordEntryRow/PasswordEntryRow.tsx
|
|
3456
|
-
function
|
|
3506
|
+
function Pi({ trailing: r, disabled: i, ...a }) {
|
|
3457
3507
|
let [o, s] = f(!1), c = /* @__PURE__ */ t("button", {
|
|
3458
3508
|
type: "button",
|
|
3459
|
-
className:
|
|
3509
|
+
className: Ni.revealButton,
|
|
3460
3510
|
onClick: (e) => {
|
|
3461
3511
|
e.stopPropagation(), s((e) => !e);
|
|
3462
3512
|
},
|
|
3463
3513
|
"aria-label": o ? "Conceal password" : "Reveal password",
|
|
3464
3514
|
"aria-pressed": o,
|
|
3465
3515
|
disabled: i,
|
|
3466
|
-
children: /* @__PURE__ */ t(
|
|
3467
|
-
icon: o ?
|
|
3516
|
+
children: /* @__PURE__ */ t(I, {
|
|
3517
|
+
icon: o ? Le : Ie,
|
|
3468
3518
|
size: "md",
|
|
3469
3519
|
"aria-hidden": !0
|
|
3470
3520
|
})
|
|
3471
3521
|
});
|
|
3472
|
-
return /* @__PURE__ */ t(
|
|
3522
|
+
return /* @__PURE__ */ t(Mi, {
|
|
3473
3523
|
...a,
|
|
3474
3524
|
type: o ? "text" : "password",
|
|
3475
3525
|
disabled: i,
|
|
@@ -3489,16 +3539,16 @@ var X = {
|
|
|
3489
3539
|
};
|
|
3490
3540
|
//#endregion
|
|
3491
3541
|
//#region src/components/SpinRow/SpinRow.tsx
|
|
3492
|
-
function
|
|
3542
|
+
function Fi(e) {
|
|
3493
3543
|
let t = e.toString(), n = t.indexOf(".");
|
|
3494
3544
|
return n === -1 ? 0 : t.length - n - 1;
|
|
3495
3545
|
}
|
|
3496
|
-
function
|
|
3546
|
+
function Ii(e, t, n) {
|
|
3497
3547
|
return Math.min(n, Math.max(t, e));
|
|
3498
3548
|
}
|
|
3499
|
-
function
|
|
3500
|
-
let v = a !== void 0, [y, b] = f(o), x = v ? a : y, S = m ??
|
|
3501
|
-
let t = parseFloat(
|
|
3549
|
+
function Li({ title: e, subtitle: r, leading: i, value: a, defaultValue: o = 0, onValueChange: c, min: l = 0, max: d = 100, step: p = 1, decimals: m, disabled: h = !1, className: g, ..._ }) {
|
|
3550
|
+
let v = a !== void 0, [y, b] = f(o), x = v ? a : y, S = m ?? Fi(p), C = u(), w = s((e) => {
|
|
3551
|
+
let t = parseFloat(Ii(e, l, d).toFixed(S));
|
|
3502
3552
|
v || b(t), c?.(t);
|
|
3503
3553
|
}, [
|
|
3504
3554
|
v,
|
|
@@ -3602,50 +3652,50 @@ function Fi({ title: e, subtitle: r, leading: i, value: a, defaultValue: o = 0,
|
|
|
3602
3652
|
}
|
|
3603
3653
|
//#endregion
|
|
3604
3654
|
//#region src/components/NavigationView/NavigationView.module.css
|
|
3605
|
-
var
|
|
3606
|
-
view:
|
|
3607
|
-
page:
|
|
3608
|
-
pageHeader:
|
|
3609
|
-
pageTitle:
|
|
3610
|
-
pageContent:
|
|
3611
|
-
enterForward:
|
|
3655
|
+
var Ri = "_view_1r1om_3", zi = "_page_1r1om_12", Bi = "_pageHeader_1r1om_23", Vi = "_pageTitle_1r1om_34", Hi = "_pageContent_1r1om_43", Ui = "_enterForward_1r1om_52", Wi = "_enterBack_1r1om_56", Gi = {
|
|
3656
|
+
view: Ri,
|
|
3657
|
+
page: zi,
|
|
3658
|
+
pageHeader: Bi,
|
|
3659
|
+
pageTitle: Vi,
|
|
3660
|
+
pageContent: Hi,
|
|
3661
|
+
enterForward: Ui,
|
|
3612
3662
|
"slide-in-right": "_slide-in-right_1r1om_1",
|
|
3613
|
-
enterBack:
|
|
3663
|
+
enterBack: Wi,
|
|
3614
3664
|
"slide-in-left": "_slide-in-left_1r1om_1"
|
|
3615
|
-
},
|
|
3665
|
+
}, Ki = a({
|
|
3616
3666
|
navigate: () => {},
|
|
3617
3667
|
pop: () => {},
|
|
3618
3668
|
canGoBack: !1,
|
|
3619
3669
|
currentTag: "",
|
|
3620
3670
|
direction: "forward"
|
|
3621
3671
|
});
|
|
3622
|
-
function
|
|
3623
|
-
return c(
|
|
3672
|
+
function qi() {
|
|
3673
|
+
return c(Ki);
|
|
3624
3674
|
}
|
|
3625
|
-
function
|
|
3626
|
-
let { currentTag: s, direction: l } = c(
|
|
3675
|
+
function Ji({ tag: e, title: r, children: i, className: a, ...o }) {
|
|
3676
|
+
let { currentTag: s, direction: l } = c(Ki);
|
|
3627
3677
|
return s === e ? /* @__PURE__ */ n("div", {
|
|
3628
3678
|
className: [
|
|
3629
|
-
|
|
3630
|
-
l === "forward" ?
|
|
3679
|
+
Gi.page,
|
|
3680
|
+
l === "forward" ? Gi.enterForward : Gi.enterBack,
|
|
3631
3681
|
a
|
|
3632
3682
|
].filter(Boolean).join(" "),
|
|
3633
3683
|
...o,
|
|
3634
3684
|
children: [/* @__PURE__ */ t("div", {
|
|
3635
|
-
className:
|
|
3685
|
+
className: Gi.pageHeader,
|
|
3636
3686
|
children: /* @__PURE__ */ t("span", {
|
|
3637
|
-
className:
|
|
3687
|
+
className: Gi.pageTitle,
|
|
3638
3688
|
children: r
|
|
3639
3689
|
})
|
|
3640
3690
|
}), /* @__PURE__ */ t("div", {
|
|
3641
|
-
className:
|
|
3691
|
+
className: Gi.pageContent,
|
|
3642
3692
|
children: i
|
|
3643
3693
|
})]
|
|
3644
3694
|
}) : null;
|
|
3645
3695
|
}
|
|
3646
|
-
function
|
|
3696
|
+
function Yi({ initialPage: e, children: n, className: r, ...i }) {
|
|
3647
3697
|
let [a, o] = f([e]), s = a[a.length - 1], c = a.length > 1, [l, u] = f("forward");
|
|
3648
|
-
return /* @__PURE__ */ t(
|
|
3698
|
+
return /* @__PURE__ */ t(Ki.Provider, {
|
|
3649
3699
|
value: {
|
|
3650
3700
|
navigate: (e) => {
|
|
3651
3701
|
u("forward"), o((t) => [...t, e]);
|
|
@@ -3658,7 +3708,7 @@ function qi({ initialPage: e, children: n, className: r, ...i }) {
|
|
|
3658
3708
|
direction: l
|
|
3659
3709
|
},
|
|
3660
3710
|
children: /* @__PURE__ */ t("div", {
|
|
3661
|
-
className: [
|
|
3711
|
+
className: [Gi.view, r].filter(Boolean).join(" "),
|
|
3662
3712
|
...i,
|
|
3663
3713
|
children: n
|
|
3664
3714
|
})
|
|
@@ -3666,20 +3716,20 @@ function qi({ initialPage: e, children: n, className: r, ...i }) {
|
|
|
3666
3716
|
}
|
|
3667
3717
|
//#endregion
|
|
3668
3718
|
//#region src/components/BottomSheet/BottomSheet.module.css
|
|
3669
|
-
var
|
|
3670
|
-
backdrop:
|
|
3719
|
+
var Xi = "_backdrop_zzv98_3", Zi = "_sheet_zzv98_26", Qi = "_handle_zzv98_49", $i = "_handleBar_zzv98_56", ea = "_title_zzv98_66", ta = "_content_zzv98_79", na = {
|
|
3720
|
+
backdrop: Xi,
|
|
3671
3721
|
"backdrop-in": "_backdrop-in_zzv98_1",
|
|
3672
|
-
sheet:
|
|
3722
|
+
sheet: Zi,
|
|
3673
3723
|
"sheet-in": "_sheet-in_zzv98_1",
|
|
3674
|
-
handle:
|
|
3675
|
-
handleBar:
|
|
3676
|
-
title:
|
|
3677
|
-
content:
|
|
3678
|
-
},
|
|
3679
|
-
function
|
|
3724
|
+
handle: Qi,
|
|
3725
|
+
handleBar: $i,
|
|
3726
|
+
title: ea,
|
|
3727
|
+
content: ta
|
|
3728
|
+
}, ra = "button:not([disabled]), [href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"])";
|
|
3729
|
+
function ia({ open: e, title: r, children: i, onClose: a, closeOnBackdrop: o = !0, className: c, ...f }) {
|
|
3680
3730
|
let m = d(null), h = u(), g = d(null);
|
|
3681
3731
|
l(() => {
|
|
3682
|
-
e ? (g.current = document.activeElement, (m.current?.querySelector(
|
|
3732
|
+
e ? (g.current = document.activeElement, (m.current?.querySelector(ra))?.focus()) : g.current?.focus();
|
|
3683
3733
|
}, [e]);
|
|
3684
3734
|
let _ = s((e) => {
|
|
3685
3735
|
if (e.key === "Escape") {
|
|
@@ -3687,14 +3737,14 @@ function na({ open: e, title: r, children: i, onClose: a, closeOnBackdrop: o = !
|
|
|
3687
3737
|
return;
|
|
3688
3738
|
}
|
|
3689
3739
|
if (e.key !== "Tab") return;
|
|
3690
|
-
let t = Array.from(m.current?.querySelectorAll(
|
|
3740
|
+
let t = Array.from(m.current?.querySelectorAll(ra) ?? []);
|
|
3691
3741
|
if (t.length === 0) return;
|
|
3692
3742
|
let n = t[0], r = t[t.length - 1];
|
|
3693
3743
|
e.shiftKey ? document.activeElement === n && (e.preventDefault(), r.focus()) : document.activeElement === r && (e.preventDefault(), n.focus());
|
|
3694
3744
|
}, [a]);
|
|
3695
3745
|
if (!e) return null;
|
|
3696
3746
|
let v = /* @__PURE__ */ t("div", {
|
|
3697
|
-
className:
|
|
3747
|
+
className: na.backdrop,
|
|
3698
3748
|
onClick: o ? a : void 0,
|
|
3699
3749
|
"aria-hidden": "true",
|
|
3700
3750
|
children: /* @__PURE__ */ n("div", {
|
|
@@ -3702,23 +3752,23 @@ function na({ open: e, title: r, children: i, onClose: a, closeOnBackdrop: o = !
|
|
|
3702
3752
|
role: "dialog",
|
|
3703
3753
|
"aria-modal": "true",
|
|
3704
3754
|
"aria-labelledby": r ? h : void 0,
|
|
3705
|
-
className: [
|
|
3755
|
+
className: [na.sheet, c].filter(Boolean).join(" "),
|
|
3706
3756
|
onKeyDown: _,
|
|
3707
3757
|
onClick: (e) => e.stopPropagation(),
|
|
3708
3758
|
...f,
|
|
3709
3759
|
children: [
|
|
3710
3760
|
/* @__PURE__ */ t("div", {
|
|
3711
|
-
className:
|
|
3761
|
+
className: na.handle,
|
|
3712
3762
|
"aria-hidden": "true",
|
|
3713
|
-
children: /* @__PURE__ */ t("div", { className:
|
|
3763
|
+
children: /* @__PURE__ */ t("div", { className: na.handleBar })
|
|
3714
3764
|
}),
|
|
3715
3765
|
r && /* @__PURE__ */ t("div", {
|
|
3716
3766
|
id: h,
|
|
3717
|
-
className:
|
|
3767
|
+
className: na.title,
|
|
3718
3768
|
children: r
|
|
3719
3769
|
}),
|
|
3720
3770
|
i && /* @__PURE__ */ t("div", {
|
|
3721
|
-
className:
|
|
3771
|
+
className: na.content,
|
|
3722
3772
|
children: i
|
|
3723
3773
|
})
|
|
3724
3774
|
]
|
|
@@ -3740,7 +3790,7 @@ var Z = {
|
|
|
3740
3790
|
};
|
|
3741
3791
|
//#endregion
|
|
3742
3792
|
//#region src/components/Carousel/Carousel.tsx
|
|
3743
|
-
function
|
|
3793
|
+
function aa({ pages: e, currentPage: n, onPageSelected: r, className: i, ...a }) {
|
|
3744
3794
|
return /* @__PURE__ */ t("div", {
|
|
3745
3795
|
className: [Z.indicatorDots, i].filter(Boolean).join(" "),
|
|
3746
3796
|
role: "tablist",
|
|
@@ -3756,7 +3806,7 @@ function ra({ pages: e, currentPage: n, onPageSelected: r, className: i, ...a })
|
|
|
3756
3806
|
}, i))
|
|
3757
3807
|
});
|
|
3758
3808
|
}
|
|
3759
|
-
function
|
|
3809
|
+
function oa({ pages: e, currentPage: n, onPageSelected: r, className: i, ...a }) {
|
|
3760
3810
|
return /* @__PURE__ */ t("div", {
|
|
3761
3811
|
className: [Z.indicatorLines, i].filter(Boolean).join(" "),
|
|
3762
3812
|
role: "tablist",
|
|
@@ -3772,7 +3822,7 @@ function ia({ pages: e, currentPage: n, onPageSelected: r, className: i, ...a })
|
|
|
3772
3822
|
}, i))
|
|
3773
3823
|
});
|
|
3774
3824
|
}
|
|
3775
|
-
function
|
|
3825
|
+
function sa({ children: e, orientation: n = "horizontal", spacing: i = 0, loop: a = !1, onPageChanged: o, page: c, className: u, ...p }) {
|
|
3776
3826
|
let m = d(null), h = r.count(e), [g, _] = f(0), v = c !== void 0, y = v ? c : g;
|
|
3777
3827
|
l(() => {
|
|
3778
3828
|
v && b(c, "smooth");
|
|
@@ -3846,49 +3896,49 @@ function aa({ children: e, orientation: n = "horizontal", spacing: i = 0, loop:
|
|
|
3846
3896
|
}
|
|
3847
3897
|
//#endregion
|
|
3848
3898
|
//#region src/components/Bin/Bin.tsx
|
|
3849
|
-
function
|
|
3899
|
+
function ca({ children: e, ...n }) {
|
|
3850
3900
|
return /* @__PURE__ */ t("div", {
|
|
3851
3901
|
...n,
|
|
3852
3902
|
children: e
|
|
3853
3903
|
});
|
|
3854
3904
|
}
|
|
3855
|
-
var
|
|
3905
|
+
var la = {
|
|
3856
3906
|
content: "_content_1xkwk_3",
|
|
3857
3907
|
icon: "_icon_1xkwk_9",
|
|
3858
3908
|
label: "_label_1xkwk_15"
|
|
3859
3909
|
};
|
|
3860
3910
|
//#endregion
|
|
3861
3911
|
//#region src/components/ButtonContent/ButtonContent.tsx
|
|
3862
|
-
function
|
|
3912
|
+
function ua({ icon: e, label: r, iconPosition: i = "start", className: a, ...o }) {
|
|
3863
3913
|
return /* @__PURE__ */ n("span", {
|
|
3864
3914
|
className: [
|
|
3865
|
-
|
|
3866
|
-
i === "end" ?
|
|
3915
|
+
la.content,
|
|
3916
|
+
i === "end" ? la.iconEnd : null,
|
|
3867
3917
|
a
|
|
3868
3918
|
].filter(Boolean).join(" "),
|
|
3869
3919
|
...o,
|
|
3870
3920
|
children: [
|
|
3871
3921
|
e && i === "start" && /* @__PURE__ */ t("span", {
|
|
3872
|
-
className:
|
|
3922
|
+
className: la.icon,
|
|
3873
3923
|
"aria-hidden": "true",
|
|
3874
3924
|
children: e
|
|
3875
3925
|
}),
|
|
3876
3926
|
/* @__PURE__ */ t("span", {
|
|
3877
|
-
className:
|
|
3927
|
+
className: la.label,
|
|
3878
3928
|
children: r
|
|
3879
3929
|
}),
|
|
3880
3930
|
e && i === "end" && /* @__PURE__ */ t("span", {
|
|
3881
|
-
className:
|
|
3931
|
+
className: la.icon,
|
|
3882
3932
|
"aria-hidden": "true",
|
|
3883
3933
|
children: e
|
|
3884
3934
|
})
|
|
3885
3935
|
]
|
|
3886
3936
|
});
|
|
3887
3937
|
}
|
|
3888
|
-
var
|
|
3938
|
+
var da = {
|
|
3889
3939
|
label: "_label_h3znl_3",
|
|
3890
3940
|
key: "_key_h3znl_9"
|
|
3891
|
-
},
|
|
3941
|
+
}, fa = {
|
|
3892
3942
|
ctrl: "⌃",
|
|
3893
3943
|
control: "⌃",
|
|
3894
3944
|
shift: "⇧",
|
|
@@ -3916,22 +3966,22 @@ var la = {
|
|
|
3916
3966
|
home: "⇱",
|
|
3917
3967
|
end: "⇲"
|
|
3918
3968
|
};
|
|
3919
|
-
function
|
|
3969
|
+
function pa({ shortcut: e, symbols: n = !0, className: r, ...i }) {
|
|
3920
3970
|
let a = e.split("+").map((e) => e.trim()).filter(Boolean);
|
|
3921
3971
|
return /* @__PURE__ */ t("span", {
|
|
3922
|
-
className: [
|
|
3972
|
+
className: [da.label, r].filter(Boolean).join(" "),
|
|
3923
3973
|
"aria-label": e,
|
|
3924
3974
|
...i,
|
|
3925
3975
|
children: a.map((e, r) => {
|
|
3926
|
-
let i = n ?
|
|
3976
|
+
let i = n ? fa[e.toLowerCase()] ?? e : e;
|
|
3927
3977
|
return /* @__PURE__ */ t("kbd", {
|
|
3928
|
-
className:
|
|
3978
|
+
className: da.key,
|
|
3929
3979
|
children: i
|
|
3930
3980
|
}, r);
|
|
3931
3981
|
})
|
|
3932
3982
|
});
|
|
3933
3983
|
}
|
|
3934
|
-
var
|
|
3984
|
+
var ma = {
|
|
3935
3985
|
toolbarView: "_toolbarView_134hf_3",
|
|
3936
3986
|
top: "_top_134hf_11",
|
|
3937
3987
|
content: "_content_134hf_16",
|
|
@@ -3939,47 +3989,47 @@ var fa = {
|
|
|
3939
3989
|
};
|
|
3940
3990
|
//#endregion
|
|
3941
3991
|
//#region src/components/ToolbarView/ToolbarView.tsx
|
|
3942
|
-
function
|
|
3992
|
+
function ha({ topBar: e, bottomBar: r, children: i, className: a, ...o }) {
|
|
3943
3993
|
return /* @__PURE__ */ n("div", {
|
|
3944
|
-
className: [
|
|
3994
|
+
className: [ma.toolbarView, a].filter(Boolean).join(" "),
|
|
3945
3995
|
...o,
|
|
3946
3996
|
children: [
|
|
3947
3997
|
e && /* @__PURE__ */ t("div", {
|
|
3948
|
-
className:
|
|
3998
|
+
className: ma.top,
|
|
3949
3999
|
children: e
|
|
3950
4000
|
}),
|
|
3951
4001
|
/* @__PURE__ */ t("div", {
|
|
3952
|
-
className:
|
|
4002
|
+
className: ma.content,
|
|
3953
4003
|
children: i
|
|
3954
4004
|
}),
|
|
3955
4005
|
r && /* @__PURE__ */ t("div", {
|
|
3956
|
-
className:
|
|
4006
|
+
className: ma.bottom,
|
|
3957
4007
|
children: r
|
|
3958
4008
|
})
|
|
3959
4009
|
]
|
|
3960
4010
|
});
|
|
3961
4011
|
}
|
|
3962
|
-
var
|
|
4012
|
+
var ga = {
|
|
3963
4013
|
windowTitle: "_windowTitle_zm877_3",
|
|
3964
4014
|
title: "_title_zm877_11",
|
|
3965
4015
|
subtitle: "_subtitle_zm877_24"
|
|
3966
4016
|
};
|
|
3967
4017
|
//#endregion
|
|
3968
4018
|
//#region src/components/WindowTitle/WindowTitle.tsx
|
|
3969
|
-
function
|
|
4019
|
+
function _a({ title: e, subtitle: r, className: i, ...a }) {
|
|
3970
4020
|
return /* @__PURE__ */ n("div", {
|
|
3971
|
-
className: [
|
|
4021
|
+
className: [ga.windowTitle, i].filter(Boolean).join(" "),
|
|
3972
4022
|
...a,
|
|
3973
4023
|
children: [/* @__PURE__ */ t("span", {
|
|
3974
|
-
className:
|
|
4024
|
+
className: ga.title,
|
|
3975
4025
|
children: e
|
|
3976
4026
|
}), r && /* @__PURE__ */ t("span", {
|
|
3977
|
-
className:
|
|
4027
|
+
className: ga.subtitle,
|
|
3978
4028
|
children: r
|
|
3979
4029
|
})]
|
|
3980
4030
|
});
|
|
3981
4031
|
}
|
|
3982
|
-
var
|
|
4032
|
+
var va = {
|
|
3983
4033
|
group: "_group_17s4f_3",
|
|
3984
4034
|
header: "_header_17s4f_11",
|
|
3985
4035
|
headerText: "_headerText_17s4f_17",
|
|
@@ -3990,85 +4040,85 @@ var ga = {
|
|
|
3990
4040
|
};
|
|
3991
4041
|
//#endregion
|
|
3992
4042
|
//#region src/components/PreferencesGroup/PreferencesGroup.tsx
|
|
3993
|
-
function
|
|
4043
|
+
function ya({ title: e, description: r, headerSuffix: i, children: a, className: o, ...s }) {
|
|
3994
4044
|
let c = e || r || i;
|
|
3995
4045
|
return /* @__PURE__ */ n("div", {
|
|
3996
|
-
className: [
|
|
4046
|
+
className: [va.group, o].filter(Boolean).join(" "),
|
|
3997
4047
|
...s,
|
|
3998
4048
|
children: [c && /* @__PURE__ */ n("div", {
|
|
3999
|
-
className:
|
|
4049
|
+
className: va.header,
|
|
4000
4050
|
children: [/* @__PURE__ */ n("div", {
|
|
4001
|
-
className:
|
|
4051
|
+
className: va.headerText,
|
|
4002
4052
|
children: [e && /* @__PURE__ */ t("span", {
|
|
4003
|
-
className:
|
|
4053
|
+
className: va.title,
|
|
4004
4054
|
children: e
|
|
4005
4055
|
}), r && /* @__PURE__ */ t("span", {
|
|
4006
|
-
className:
|
|
4056
|
+
className: va.description,
|
|
4007
4057
|
children: r
|
|
4008
4058
|
})]
|
|
4009
4059
|
}), i && /* @__PURE__ */ t("div", {
|
|
4010
|
-
className:
|
|
4060
|
+
className: va.suffix,
|
|
4011
4061
|
children: i
|
|
4012
4062
|
})]
|
|
4013
4063
|
}), /* @__PURE__ */ t("div", {
|
|
4014
|
-
className:
|
|
4064
|
+
className: va.content,
|
|
4015
4065
|
children: a
|
|
4016
4066
|
})]
|
|
4017
4067
|
});
|
|
4018
4068
|
}
|
|
4019
|
-
var
|
|
4069
|
+
var ba = {
|
|
4020
4070
|
page: "_page_gt42j_3",
|
|
4021
4071
|
inner: "_inner_gt42j_10"
|
|
4022
4072
|
};
|
|
4023
4073
|
//#endregion
|
|
4024
4074
|
//#region src/components/PreferencesPage/PreferencesPage.tsx
|
|
4025
|
-
function
|
|
4075
|
+
function xa({ title: e, iconName: n, children: r, className: i, ...a }) {
|
|
4026
4076
|
return /* @__PURE__ */ t("div", {
|
|
4027
|
-
className: [
|
|
4077
|
+
className: [ba.page, i].filter(Boolean).join(" "),
|
|
4028
4078
|
role: "tabpanel",
|
|
4029
4079
|
...a,
|
|
4030
4080
|
children: /* @__PURE__ */ t("div", {
|
|
4031
|
-
className:
|
|
4081
|
+
className: ba.inner,
|
|
4032
4082
|
children: r
|
|
4033
4083
|
})
|
|
4034
4084
|
});
|
|
4035
4085
|
}
|
|
4036
4086
|
//#endregion
|
|
4037
4087
|
//#region src/components/PreferencesDialog/PreferencesDialog.module.css
|
|
4038
|
-
var
|
|
4039
|
-
backdrop:
|
|
4088
|
+
var Sa = "_backdrop_1u1bd_3", Ca = "_dialog_1u1bd_26", wa = "_dialogMulti_1u1bd_46", Ta = "_header_1u1bd_63", Ea = "_closeBtn_1u1bd_73", Da = "_title_1u1bd_102", Oa = "_searchWrap_1u1bd_112", ka = "_searchInput_1u1bd_116", Aa = "_body_1u1bd_143", ja = "_sidebar_1u1bd_152", Ma = "_navList_1u1bd_160", Na = "_navItem_1u1bd_169", Pa = "_navItemActive_1u1bd_190", Fa = "_navIcon_1u1bd_205", Ia = "_navLabel_1u1bd_211", La = "_pageWrap_1u1bd_221", Q = {
|
|
4089
|
+
backdrop: Sa,
|
|
4040
4090
|
"backdrop-in": "_backdrop-in_1u1bd_1",
|
|
4041
|
-
dialog:
|
|
4091
|
+
dialog: Ca,
|
|
4042
4092
|
"dialog-in": "_dialog-in_1u1bd_1",
|
|
4043
|
-
dialogMulti:
|
|
4044
|
-
header:
|
|
4045
|
-
closeBtn:
|
|
4046
|
-
title:
|
|
4047
|
-
searchWrap:
|
|
4048
|
-
searchInput:
|
|
4049
|
-
body:
|
|
4050
|
-
sidebar:
|
|
4051
|
-
navList:
|
|
4052
|
-
navItem:
|
|
4053
|
-
navItemActive:
|
|
4054
|
-
navIcon:
|
|
4055
|
-
navLabel:
|
|
4056
|
-
pageWrap:
|
|
4057
|
-
},
|
|
4058
|
-
function
|
|
4093
|
+
dialogMulti: wa,
|
|
4094
|
+
header: Ta,
|
|
4095
|
+
closeBtn: Ea,
|
|
4096
|
+
title: Da,
|
|
4097
|
+
searchWrap: Oa,
|
|
4098
|
+
searchInput: ka,
|
|
4099
|
+
body: Aa,
|
|
4100
|
+
sidebar: ja,
|
|
4101
|
+
navList: Ma,
|
|
4102
|
+
navItem: Na,
|
|
4103
|
+
navItemActive: Pa,
|
|
4104
|
+
navIcon: Fa,
|
|
4105
|
+
navLabel: Ia,
|
|
4106
|
+
pageWrap: La
|
|
4107
|
+
}, Ra = "button:not([disabled]), [href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"])";
|
|
4108
|
+
function za(e, t) {
|
|
4059
4109
|
if (e.key !== "Tab") return;
|
|
4060
|
-
let n = Array.from(t.current?.querySelectorAll(
|
|
4110
|
+
let n = Array.from(t.current?.querySelectorAll(Ra) ?? []);
|
|
4061
4111
|
if (!n.length) return;
|
|
4062
4112
|
let r = n[0], i = n[n.length - 1];
|
|
4063
4113
|
e.shiftKey ? document.activeElement === r && (e.preventDefault(), i.focus()) : document.activeElement === i && (e.preventDefault(), r.focus());
|
|
4064
4114
|
}
|
|
4065
|
-
function
|
|
4115
|
+
function Ba({ open: e, onClose: a, children: c, searchable: m = !0, className: h, ...g }) {
|
|
4066
4116
|
let _ = d(null), v = d(null), y = u(), b = r.toArray(c).filter((e) => o(e)), [x, S] = f(0), [C, w] = f("");
|
|
4067
4117
|
l(() => {
|
|
4068
4118
|
if (e) {
|
|
4069
4119
|
S(0), w("");
|
|
4070
4120
|
let e = requestAnimationFrame(() => {
|
|
4071
|
-
m && v.current ? v.current.focus() : (_.current?.querySelector(
|
|
4121
|
+
m && v.current ? v.current.focus() : (_.current?.querySelector(Ra))?.focus();
|
|
4072
4122
|
});
|
|
4073
4123
|
return () => cancelAnimationFrame(e);
|
|
4074
4124
|
}
|
|
@@ -4078,7 +4128,7 @@ function Ra({ open: e, onClose: a, children: c, searchable: m = !0, className: h
|
|
|
4078
4128
|
e.stopPropagation(), a();
|
|
4079
4129
|
return;
|
|
4080
4130
|
}
|
|
4081
|
-
|
|
4131
|
+
za(e, _);
|
|
4082
4132
|
}, [a]), E = b.length > 1, D = b[x] ?? b[0], O = C.trim().toLowerCase();
|
|
4083
4133
|
return e ? p(/* @__PURE__ */ t("div", {
|
|
4084
4134
|
className: Q.backdrop,
|
|
@@ -4181,7 +4231,7 @@ var $ = {
|
|
|
4181
4231
|
};
|
|
4182
4232
|
//#endregion
|
|
4183
4233
|
//#region src/components/Timeline/Timeline.tsx
|
|
4184
|
-
function
|
|
4234
|
+
function Va({ items: e, orientation: r = "vertical", variant: i = "default", className: a, ...o }) {
|
|
4185
4235
|
let s = r === "horizontal", c = i !== "none";
|
|
4186
4236
|
return /* @__PURE__ */ t("div", {
|
|
4187
4237
|
role: "list",
|
|
@@ -4246,6 +4296,6 @@ function za({ items: e, orientation: r = "vertical", variant: i = "default", cla
|
|
|
4246
4296
|
});
|
|
4247
4297
|
}
|
|
4248
4298
|
//#endregion
|
|
4249
|
-
export {
|
|
4299
|
+
export { Dt as ActionRow, re as Avatar, je as Badge, Te as Banner, ca as Bin, h as Blockquote, ia as BottomSheet, dr as Box, kt as BoxedList, Hr as BreakpointBin, _ as Button, ua as ButtonContent, Wr as ButtonRow, j as Card, sa as Carousel, aa as CarouselIndicatorDots, oa as CarouselIndicatorLines, ci as CheckRow, le as Checkbox, hr as Chip, $n as Clamp, ji as ComboRow, Sn as Dialog, Vn as Dropdown, Mi as EntryRow, ei as ExpanderRow, ke as Footer, $r as Frame, Ue as GNOME_BREAKPOINTS, De as HeaderBar, I as Icon, ii as InlineViewSwitcher, ai as InlineViewSwitcherItem, ar as Link, Zr as LinkedGroup, Ji as NavigationPage, er as NavigationSplitView, Yi as NavigationView, tr as OverlaySplitView, Pi as PasswordEntryRow, Zn as Popover, Ba as PreferencesDialog, ya as PreferencesGroup, xa as PreferencesPage, me as ProgressBar, fe as RadioButton, Be as SearchBar, ae as Separator, pa as ShortcutLabel, Ir as ShortcutsDialog, pt as Sidebar, lt as SidebarCollapsedContext, yt as SidebarItem, mt as SidebarSection, Kn as Slider, Yr as Spacer, Ct as SpinButton, Li as SpinRow, N as Spinner, Kr as SplitButton, He as StatusPage, se as Switch, si as SwitchRow, wt as TabBar, Tt as TabItem, Et as TabPanel, D as Text, ue as TextField, Va as Timeline, Ht as Toast, Ut as Toaster, lr as ToggleGroup, ur as ToggleGroupItem, Jr as Toolbar, ha as ToolbarView, vt as Tooltip, jt as ViewSwitcher, rr as ViewSwitcherBar, Mt as ViewSwitcherItem, Br as ViewSwitcherSidebar, Vr as ViewSwitcherSidebarItem, _a as WindowTitle, pr as WrapBox, We as useBreakpoint, qi as useNavigation, ut as useSidebarCollapsed };
|
|
4250
4300
|
|
|
4251
4301
|
//# sourceMappingURL=index.js.map
|