@gnome-ui/react 1.19.0 → 1.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/ContributionGraph/ContributionGraph.d.ts +41 -0
- package/dist/components/ContributionGraph/index.d.ts +2 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +824 -575
- package/dist/index.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Fragment as e, jsx as t, jsxs as n } from "react/jsx-runtime";
|
|
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,
|
|
3
|
-
import { createPortal as
|
|
4
|
-
var
|
|
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, useMemo as d, useRef as f, useState as p } from "react";
|
|
3
|
+
import { createPortal as m } from "react-dom";
|
|
4
|
+
var h = {
|
|
5
5
|
blockquote: "_blockquote_j7x50_3",
|
|
6
6
|
body: "_body_j7x50_15",
|
|
7
7
|
icon: "_icon_j7x50_21",
|
|
@@ -16,34 +16,34 @@ var m = {
|
|
|
16
16
|
};
|
|
17
17
|
//#endregion
|
|
18
18
|
//#region src/components/Blockquote/Blockquote.tsx
|
|
19
|
-
function
|
|
19
|
+
function g({ variant: e = "default", icon: r, cite: i, children: a, className: o, ...s }) {
|
|
20
20
|
return /* @__PURE__ */ n("blockquote", {
|
|
21
21
|
className: [
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
h.blockquote,
|
|
23
|
+
h[e],
|
|
24
24
|
o
|
|
25
25
|
].filter(Boolean).join(" "),
|
|
26
26
|
...s,
|
|
27
27
|
children: [/* @__PURE__ */ n("div", {
|
|
28
|
-
className:
|
|
28
|
+
className: h.body,
|
|
29
29
|
children: [r && /* @__PURE__ */ t("span", {
|
|
30
|
-
className:
|
|
30
|
+
className: h.icon,
|
|
31
31
|
"aria-hidden": "true",
|
|
32
32
|
children: r
|
|
33
33
|
}), /* @__PURE__ */ t("p", {
|
|
34
|
-
className:
|
|
34
|
+
className: h.content,
|
|
35
35
|
children: a
|
|
36
36
|
})]
|
|
37
37
|
}), i !== void 0 && /* @__PURE__ */ t("footer", {
|
|
38
|
-
className:
|
|
38
|
+
className: h.footer,
|
|
39
39
|
children: /* @__PURE__ */ t("cite", {
|
|
40
|
-
className:
|
|
40
|
+
className: h.cite,
|
|
41
41
|
children: i
|
|
42
42
|
})
|
|
43
43
|
})]
|
|
44
44
|
});
|
|
45
45
|
}
|
|
46
|
-
var
|
|
46
|
+
var _ = {
|
|
47
47
|
button: "_button_1qgdy_1",
|
|
48
48
|
pill: "_pill_1qgdy_52",
|
|
49
49
|
circular: "_circular_1qgdy_59",
|
|
@@ -58,14 +58,14 @@ var g = {
|
|
|
58
58
|
};
|
|
59
59
|
//#endregion
|
|
60
60
|
//#region src/components/Button/Button.tsx
|
|
61
|
-
function
|
|
61
|
+
function v({ variant: e = "default", size: t = "md", shape: r = "default", osd: i = !1, leadingIcon: a, trailingIcon: o, children: s, className: c, ...l }) {
|
|
62
62
|
return /* @__PURE__ */ n("button", {
|
|
63
63
|
className: [
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
t === "md" ? null :
|
|
67
|
-
r === "default" ? null :
|
|
68
|
-
i ?
|
|
64
|
+
_.button,
|
|
65
|
+
_[e],
|
|
66
|
+
t === "md" ? null : _[t],
|
|
67
|
+
r === "default" ? null : _[r],
|
|
68
|
+
i ? _.osd : null,
|
|
69
69
|
c
|
|
70
70
|
].filter(Boolean).join(" "),
|
|
71
71
|
...l,
|
|
@@ -78,20 +78,20 @@ function _({ variant: e = "default", size: t = "md", shape: r = "default", osd:
|
|
|
78
78
|
}
|
|
79
79
|
//#endregion
|
|
80
80
|
//#region src/components/Text/Text.module.css
|
|
81
|
-
var
|
|
82
|
-
text:
|
|
81
|
+
var y = "_text_102e3_1", b = "_heading_102e3_41", x = "_body_102e3_48", S = "_document_102e3_55", C = "_caption_102e3_62", w = "_monospace_102e3_78", T = "_numeric_102e3_85", E = {
|
|
82
|
+
text: y,
|
|
83
83
|
"large-title": "_large-title_102e3_9",
|
|
84
84
|
"title-1": "_title-1_102e3_16",
|
|
85
85
|
"title-2": "_title-2_102e3_22",
|
|
86
86
|
"title-3": "_title-3_102e3_28",
|
|
87
87
|
"title-4": "_title-4_102e3_34",
|
|
88
|
-
heading:
|
|
89
|
-
body:
|
|
90
|
-
document:
|
|
91
|
-
caption:
|
|
88
|
+
heading: b,
|
|
89
|
+
body: x,
|
|
90
|
+
document: S,
|
|
91
|
+
caption: C,
|
|
92
92
|
"caption-heading": "_caption-heading_102e3_69",
|
|
93
|
-
monospace:
|
|
94
|
-
numeric:
|
|
93
|
+
monospace: w,
|
|
94
|
+
numeric: T,
|
|
95
95
|
"color-default": "_color-default_102e3_95",
|
|
96
96
|
"color-dim": "_color-dim_102e3_99",
|
|
97
97
|
"color-accent": "_color-accent_102e3_103",
|
|
@@ -99,7 +99,7 @@ var v = "_text_102e3_1", y = "_heading_102e3_41", b = "_body_102e3_48", x = "_do
|
|
|
99
99
|
"color-success": "_color-success_102e3_111",
|
|
100
100
|
"color-warning": "_color-warning_102e3_115",
|
|
101
101
|
"color-error": "_color-error_102e3_119"
|
|
102
|
-
},
|
|
102
|
+
}, D = {
|
|
103
103
|
"large-title": "h1",
|
|
104
104
|
"title-1": "h1",
|
|
105
105
|
"title-2": "h2",
|
|
@@ -113,12 +113,12 @@ var v = "_text_102e3_1", y = "_heading_102e3_41", b = "_body_102e3_48", x = "_do
|
|
|
113
113
|
monospace: "code",
|
|
114
114
|
numeric: "span"
|
|
115
115
|
};
|
|
116
|
-
function
|
|
117
|
-
return /* @__PURE__ */ t(r ??
|
|
116
|
+
function O({ variant: e = "body", color: n = "default", as: r, className: i, children: a, ...o }) {
|
|
117
|
+
return /* @__PURE__ */ t(r ?? D[e], {
|
|
118
118
|
className: [
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
119
|
+
E.text,
|
|
120
|
+
E[e],
|
|
121
|
+
E[`color-${n}`],
|
|
122
122
|
i
|
|
123
123
|
].filter(Boolean).join(" "),
|
|
124
124
|
...o,
|
|
@@ -127,29 +127,29 @@ function D({ variant: e = "body", color: n = "default", as: r, className: i, chi
|
|
|
127
127
|
}
|
|
128
128
|
//#endregion
|
|
129
129
|
//#region src/components/Card/Card.module.css
|
|
130
|
-
var
|
|
131
|
-
card:
|
|
130
|
+
var k = "_card_7f351_1", A = "_interactive_7f351_19", j = {
|
|
131
|
+
card: k,
|
|
132
132
|
"padding-none": "_padding-none_7f351_12",
|
|
133
133
|
"padding-sm": "_padding-sm_7f351_13",
|
|
134
134
|
"padding-md": "_padding-md_7f351_14",
|
|
135
135
|
"padding-lg": "_padding-lg_7f351_15",
|
|
136
|
-
interactive:
|
|
136
|
+
interactive: A
|
|
137
137
|
};
|
|
138
138
|
//#endregion
|
|
139
139
|
//#region src/components/Card/Card.tsx
|
|
140
|
-
function
|
|
140
|
+
function M({ interactive: e = !1, padding: n = "md", as: r, className: i, children: a, ...o }) {
|
|
141
141
|
return /* @__PURE__ */ t(r ?? (e ? "button" : "div"), {
|
|
142
142
|
className: [
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
e ?
|
|
143
|
+
j.card,
|
|
144
|
+
j[`padding-${n}`],
|
|
145
|
+
e ? j.interactive : null,
|
|
146
146
|
i
|
|
147
147
|
].filter(Boolean).join(" "),
|
|
148
148
|
...o,
|
|
149
149
|
children: a
|
|
150
150
|
});
|
|
151
151
|
}
|
|
152
|
-
var
|
|
152
|
+
var N = {
|
|
153
153
|
spinner: "_spinner_101bb_3",
|
|
154
154
|
spin: "_spin_101bb_3",
|
|
155
155
|
sm: "_sm_101bb_15",
|
|
@@ -158,10 +158,10 @@ var M = {
|
|
|
158
158
|
};
|
|
159
159
|
//#endregion
|
|
160
160
|
//#region src/components/Spinner/Spinner.tsx
|
|
161
|
-
function
|
|
161
|
+
function P({ size: e = "md", label: n = "Loading…", className: r, ...i }) {
|
|
162
162
|
let a = [
|
|
163
|
-
|
|
164
|
-
|
|
163
|
+
N.spinner,
|
|
164
|
+
N[e],
|
|
165
165
|
r
|
|
166
166
|
].filter(Boolean).join(" ");
|
|
167
167
|
return /* @__PURE__ */ t("span", {
|
|
@@ -172,7 +172,7 @@ function N({ size: e = "md", label: n = "Loading…", className: r, ...i }) {
|
|
|
172
172
|
...i
|
|
173
173
|
});
|
|
174
174
|
}
|
|
175
|
-
var
|
|
175
|
+
var F = {
|
|
176
176
|
avatar: "_avatar_1f2cd_3",
|
|
177
177
|
sm: "_sm_1f2cd_17",
|
|
178
178
|
md: "_md_1f2cd_22",
|
|
@@ -189,7 +189,7 @@ var P = {
|
|
|
189
189
|
"color-brown": "_color-brown_1f2cd_75",
|
|
190
190
|
"color-teal": "_color-teal_1f2cd_76",
|
|
191
191
|
"color-slate": "_color-slate_1f2cd_77"
|
|
192
|
-
},
|
|
192
|
+
}, I = [
|
|
193
193
|
"blue",
|
|
194
194
|
"green",
|
|
195
195
|
"yellow",
|
|
@@ -200,20 +200,20 @@ var P = {
|
|
|
200
200
|
"teal",
|
|
201
201
|
"slate"
|
|
202
202
|
];
|
|
203
|
-
function
|
|
203
|
+
function ee(e) {
|
|
204
204
|
let t = 0;
|
|
205
205
|
for (let n = 0; n < e.length; n++) t = t * 31 + e.charCodeAt(n) >>> 0;
|
|
206
|
-
return
|
|
206
|
+
return I[t % I.length];
|
|
207
207
|
}
|
|
208
|
-
function
|
|
208
|
+
function te(e) {
|
|
209
209
|
let t = e.trim().split(/\s+/).filter(Boolean);
|
|
210
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();
|
|
211
211
|
}
|
|
212
|
-
function
|
|
213
|
-
let c = a ?? (e ?
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
n ? null :
|
|
212
|
+
function ne({ name: e = "", src: n, alt: r, size: i = "md", color: a, className: o, ...s }) {
|
|
213
|
+
let c = a ?? (e ? ee(e) : "blue"), l = te(e), u = [
|
|
214
|
+
F.avatar,
|
|
215
|
+
F[i],
|
|
216
|
+
n ? null : F[`color-${c}`],
|
|
217
217
|
o
|
|
218
218
|
].filter(Boolean).join(" ");
|
|
219
219
|
return /* @__PURE__ */ t("span", {
|
|
@@ -224,25 +224,25 @@ function re({ name: e = "", src: n, alt: r, size: i = "md", color: a, className:
|
|
|
224
224
|
children: n ? /* @__PURE__ */ t("img", {
|
|
225
225
|
src: n,
|
|
226
226
|
alt: r ?? e,
|
|
227
|
-
className:
|
|
227
|
+
className: F.image
|
|
228
228
|
}) : /* @__PURE__ */ t("span", {
|
|
229
229
|
"aria-hidden": "true",
|
|
230
|
-
className:
|
|
230
|
+
className: F.initials,
|
|
231
231
|
children: l
|
|
232
232
|
})
|
|
233
233
|
});
|
|
234
234
|
}
|
|
235
|
-
var
|
|
235
|
+
var re = {
|
|
236
236
|
separator: "_separator_w9b4s_3",
|
|
237
237
|
horizontal: "_horizontal_w9b4s_12",
|
|
238
238
|
vertical: "_vertical_w9b4s_20"
|
|
239
239
|
};
|
|
240
240
|
//#endregion
|
|
241
241
|
//#region src/components/Separator/Separator.tsx
|
|
242
|
-
function
|
|
242
|
+
function ie({ orientation: e = "horizontal", className: n, ...r }) {
|
|
243
243
|
let i = [
|
|
244
|
-
|
|
245
|
-
e === "vertical" ?
|
|
244
|
+
re.separator,
|
|
245
|
+
e === "vertical" ? re.vertical : re.horizontal,
|
|
246
246
|
n
|
|
247
247
|
].filter(Boolean).join(" ");
|
|
248
248
|
return e === "vertical" ? /* @__PURE__ */ t("div", {
|
|
@@ -257,32 +257,32 @@ function ae({ orientation: e = "horizontal", className: n, ...r }) {
|
|
|
257
257
|
}
|
|
258
258
|
//#endregion
|
|
259
259
|
//#region src/components/Switch/Switch.module.css
|
|
260
|
-
var
|
|
260
|
+
var ae = { switch: "_switch_1h6fk_3" };
|
|
261
261
|
//#endregion
|
|
262
262
|
//#region src/components/Switch/Switch.tsx
|
|
263
|
-
function
|
|
263
|
+
function oe({ className: e, ...n }) {
|
|
264
264
|
return /* @__PURE__ */ t("input", {
|
|
265
265
|
type: "checkbox",
|
|
266
266
|
role: "switch",
|
|
267
|
-
className: [
|
|
267
|
+
className: [ae.switch, e].filter(Boolean).join(" "),
|
|
268
268
|
...n
|
|
269
269
|
});
|
|
270
270
|
}
|
|
271
|
-
var
|
|
271
|
+
var se = { checkbox: "_checkbox_jnffk_3" };
|
|
272
272
|
//#endregion
|
|
273
273
|
//#region src/components/Checkbox/Checkbox.tsx
|
|
274
|
-
function
|
|
275
|
-
let i =
|
|
274
|
+
function ce({ indeterminate: e = !1, className: n, ...r }) {
|
|
275
|
+
let i = f(null);
|
|
276
276
|
return l(() => {
|
|
277
277
|
i.current && (i.current.indeterminate = e);
|
|
278
278
|
}, [e]), /* @__PURE__ */ t("input", {
|
|
279
279
|
ref: i,
|
|
280
280
|
type: "checkbox",
|
|
281
|
-
className: [
|
|
281
|
+
className: [se.checkbox, n].filter(Boolean).join(" "),
|
|
282
282
|
...r
|
|
283
283
|
});
|
|
284
284
|
}
|
|
285
|
-
var
|
|
285
|
+
var le = {
|
|
286
286
|
wrapper: "_wrapper_q91d8_3",
|
|
287
287
|
disabled: "_disabled_q91d8_9",
|
|
288
288
|
label: "_label_q91d8_15",
|
|
@@ -293,14 +293,14 @@ var ue = {
|
|
|
293
293
|
};
|
|
294
294
|
//#endregion
|
|
295
295
|
//#region src/components/TextField/TextField.tsx
|
|
296
|
-
function
|
|
296
|
+
function ue({ label: e, helperText: r, error: i, id: a, className: o, disabled: s, ...c }) {
|
|
297
297
|
let l = u(), d = a ?? l, f = `${d}-help`;
|
|
298
298
|
return /* @__PURE__ */ n("div", {
|
|
299
|
-
className: [
|
|
299
|
+
className: [le.wrapper, s ? le.disabled : null].filter(Boolean).join(" "),
|
|
300
300
|
children: [
|
|
301
301
|
e && /* @__PURE__ */ t("label", {
|
|
302
302
|
htmlFor: d,
|
|
303
|
-
className:
|
|
303
|
+
className: le.label,
|
|
304
304
|
children: e
|
|
305
305
|
}),
|
|
306
306
|
/* @__PURE__ */ t("input", {
|
|
@@ -309,31 +309,31 @@ function de({ label: e, helperText: r, error: i, id: a, className: o, disabled:
|
|
|
309
309
|
"aria-describedby": i || r ? f : void 0,
|
|
310
310
|
"aria-invalid": i ? !0 : void 0,
|
|
311
311
|
className: [
|
|
312
|
-
|
|
313
|
-
i ?
|
|
312
|
+
le.input,
|
|
313
|
+
i ? le.errorInput : null,
|
|
314
314
|
o
|
|
315
315
|
].filter(Boolean).join(" "),
|
|
316
316
|
...c
|
|
317
317
|
}),
|
|
318
318
|
(i || r) && /* @__PURE__ */ t("span", {
|
|
319
319
|
id: f,
|
|
320
|
-
className: [
|
|
320
|
+
className: [le.hint, i ? le.errorHint : null].filter(Boolean).join(" "),
|
|
321
321
|
children: i ?? r
|
|
322
322
|
})
|
|
323
323
|
]
|
|
324
324
|
});
|
|
325
325
|
}
|
|
326
|
-
var
|
|
326
|
+
var de = { radio: "_radio_1vybt_3" };
|
|
327
327
|
//#endregion
|
|
328
328
|
//#region src/components/RadioButton/RadioButton.tsx
|
|
329
|
-
function
|
|
329
|
+
function fe({ className: e, ...n }) {
|
|
330
330
|
return /* @__PURE__ */ t("input", {
|
|
331
331
|
type: "radio",
|
|
332
|
-
className: [
|
|
332
|
+
className: [de.radio, e].filter(Boolean).join(" "),
|
|
333
333
|
...n
|
|
334
334
|
});
|
|
335
335
|
}
|
|
336
|
-
var
|
|
336
|
+
var pe = {
|
|
337
337
|
track: "_track_endpr_3",
|
|
338
338
|
fill: "_fill_endpr_14",
|
|
339
339
|
accent: "_accent_endpr_23",
|
|
@@ -345,7 +345,7 @@ var me = {
|
|
|
345
345
|
};
|
|
346
346
|
//#endregion
|
|
347
347
|
//#region src/components/ProgressBar/ProgressBar.tsx
|
|
348
|
-
function
|
|
348
|
+
function me({ value: e, variant: n = "accent", className: r, "aria-label": i, "aria-labelledby": a, ...o }) {
|
|
349
349
|
let s = e == null, c = s ? void 0 : Math.min(1, Math.max(0, e)), l = c === void 0 ? void 0 : c * 100;
|
|
350
350
|
return /* @__PURE__ */ t("div", {
|
|
351
351
|
role: "progressbar",
|
|
@@ -354,13 +354,13 @@ function he({ value: e, variant: n = "accent", className: r, "aria-label": i, "a
|
|
|
354
354
|
"aria-valuenow": c === void 0 ? void 0 : Math.round(l),
|
|
355
355
|
"aria-valuemin": s ? void 0 : 0,
|
|
356
356
|
"aria-valuemax": s ? void 0 : 100,
|
|
357
|
-
className: [
|
|
357
|
+
className: [pe.track, r].filter(Boolean).join(" "),
|
|
358
358
|
...o,
|
|
359
359
|
children: /* @__PURE__ */ t("div", {
|
|
360
360
|
className: [
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
s ?
|
|
361
|
+
pe.fill,
|
|
362
|
+
pe[n],
|
|
363
|
+
s ? pe.indeterminate : null
|
|
364
364
|
].filter(Boolean).join(" "),
|
|
365
365
|
style: s ? void 0 : { width: `${l}%` }
|
|
366
366
|
})
|
|
@@ -368,46 +368,46 @@ function he({ value: e, variant: n = "accent", className: r, "aria-label": i, "a
|
|
|
368
368
|
}
|
|
369
369
|
//#endregion
|
|
370
370
|
//#region src/components/Banner/Banner.module.css
|
|
371
|
-
var
|
|
372
|
-
banner:
|
|
373
|
-
message:
|
|
374
|
-
actions:
|
|
375
|
-
actionBtn:
|
|
376
|
-
dismissBtn:
|
|
377
|
-
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,
|
|
378
378
|
"actionBtn-info": "_actionBtn-info_1x3b0_90",
|
|
379
|
-
warning:
|
|
379
|
+
warning: xe,
|
|
380
380
|
"actionBtn-warning": "_actionBtn-warning_1x3b0_104",
|
|
381
|
-
error:
|
|
381
|
+
error: Se,
|
|
382
382
|
"actionBtn-error": "_actionBtn-error_1x3b0_118",
|
|
383
|
-
success:
|
|
383
|
+
success: Ce,
|
|
384
384
|
"actionBtn-success": "_actionBtn-success_1x3b0_132"
|
|
385
385
|
};
|
|
386
386
|
//#endregion
|
|
387
387
|
//#region src/components/Banner/Banner.tsx
|
|
388
|
-
function
|
|
388
|
+
function Te({ variant: e = "info", children: r, actionLabel: i, onAction: a, dismissible: o = !1, onDismiss: s, className: c, ...l }) {
|
|
389
389
|
return /* @__PURE__ */ n("div", {
|
|
390
390
|
role: "status",
|
|
391
391
|
"aria-live": "polite",
|
|
392
392
|
className: [
|
|
393
|
-
|
|
394
|
-
|
|
393
|
+
we.banner,
|
|
394
|
+
we[e],
|
|
395
395
|
c
|
|
396
396
|
].filter(Boolean).join(" "),
|
|
397
397
|
...l,
|
|
398
398
|
children: [/* @__PURE__ */ t("span", {
|
|
399
|
-
className:
|
|
399
|
+
className: we.message,
|
|
400
400
|
children: r
|
|
401
401
|
}), (i || o) && /* @__PURE__ */ n("span", {
|
|
402
|
-
className:
|
|
402
|
+
className: we.actions,
|
|
403
403
|
children: [i && /* @__PURE__ */ t("button", {
|
|
404
404
|
type: "button",
|
|
405
|
-
className: [
|
|
405
|
+
className: [we.actionBtn, we[`actionBtn-${e}`]].filter(Boolean).join(" "),
|
|
406
406
|
onClick: a,
|
|
407
407
|
children: i
|
|
408
408
|
}), o && /* @__PURE__ */ t("button", {
|
|
409
409
|
type: "button",
|
|
410
|
-
className:
|
|
410
|
+
className: we.dismissBtn,
|
|
411
411
|
onClick: s,
|
|
412
412
|
"aria-label": "Dismiss",
|
|
413
413
|
children: /* @__PURE__ */ t("svg", {
|
|
@@ -422,7 +422,7 @@ function Ee({ variant: e = "info", children: r, actionLabel: i, onAction: a, dis
|
|
|
422
422
|
})]
|
|
423
423
|
});
|
|
424
424
|
}
|
|
425
|
-
var
|
|
425
|
+
var Ee = {
|
|
426
426
|
headerBar: "_headerBar_1rr5r_3",
|
|
427
427
|
flat: "_flat_1rr5r_22",
|
|
428
428
|
slot: "_slot_1rr5r_29",
|
|
@@ -432,35 +432,35 @@ var De = {
|
|
|
432
432
|
};
|
|
433
433
|
//#endregion
|
|
434
434
|
//#region src/components/HeaderBar/HeaderBar.tsx
|
|
435
|
-
function
|
|
435
|
+
function De({ title: e, start: r, end: i, flat: a = !1, className: o, ...s }) {
|
|
436
436
|
return /* @__PURE__ */ n("header", {
|
|
437
437
|
className: [
|
|
438
|
-
|
|
439
|
-
a ?
|
|
438
|
+
Ee.headerBar,
|
|
439
|
+
a ? Ee.flat : null,
|
|
440
440
|
o
|
|
441
441
|
].filter(Boolean).join(" "),
|
|
442
442
|
...s,
|
|
443
443
|
children: [
|
|
444
444
|
/* @__PURE__ */ t("div", {
|
|
445
|
-
className:
|
|
445
|
+
className: Ee.slot,
|
|
446
446
|
children: r
|
|
447
447
|
}),
|
|
448
448
|
/* @__PURE__ */ t("div", {
|
|
449
|
-
className:
|
|
449
|
+
className: Ee.titleSlot,
|
|
450
450
|
"aria-live": "polite",
|
|
451
451
|
children: typeof e == "string" ? /* @__PURE__ */ t("span", {
|
|
452
|
-
className:
|
|
452
|
+
className: Ee.title,
|
|
453
453
|
children: e
|
|
454
454
|
}) : e
|
|
455
455
|
}),
|
|
456
456
|
/* @__PURE__ */ t("div", {
|
|
457
|
-
className: [
|
|
457
|
+
className: [Ee.slot, Ee.slotEnd].filter(Boolean).join(" "),
|
|
458
458
|
children: i
|
|
459
459
|
})
|
|
460
460
|
]
|
|
461
461
|
});
|
|
462
462
|
}
|
|
463
|
-
var
|
|
463
|
+
var Oe = {
|
|
464
464
|
footer: "_footer_10xz9_3",
|
|
465
465
|
flat: "_flat_10xz9_23",
|
|
466
466
|
slot: "_slot_10xz9_29",
|
|
@@ -469,31 +469,31 @@ var ke = {
|
|
|
469
469
|
};
|
|
470
470
|
//#endregion
|
|
471
471
|
//#region src/components/Footer/Footer.tsx
|
|
472
|
-
function
|
|
472
|
+
function ke({ start: e, end: r, children: i, flat: a = !1, className: o, ...s }) {
|
|
473
473
|
return /* @__PURE__ */ n("footer", {
|
|
474
474
|
className: [
|
|
475
|
-
|
|
476
|
-
a ?
|
|
475
|
+
Oe.footer,
|
|
476
|
+
a ? Oe.flat : null,
|
|
477
477
|
o
|
|
478
478
|
].filter(Boolean).join(" "),
|
|
479
479
|
...s,
|
|
480
480
|
children: [
|
|
481
481
|
/* @__PURE__ */ t("div", {
|
|
482
|
-
className:
|
|
482
|
+
className: Oe.slot,
|
|
483
483
|
children: e
|
|
484
484
|
}),
|
|
485
485
|
i != null && /* @__PURE__ */ t("div", {
|
|
486
|
-
className:
|
|
486
|
+
className: Oe.center,
|
|
487
487
|
children: i
|
|
488
488
|
}),
|
|
489
489
|
/* @__PURE__ */ t("div", {
|
|
490
|
-
className: [
|
|
490
|
+
className: [Oe.slot, Oe.slotEnd].filter(Boolean).join(" "),
|
|
491
491
|
children: r
|
|
492
492
|
})
|
|
493
493
|
]
|
|
494
494
|
});
|
|
495
495
|
}
|
|
496
|
-
var
|
|
496
|
+
var Ae = {
|
|
497
497
|
wrapper: "_wrapper_1apop_3",
|
|
498
498
|
badge: "_badge_1apop_11",
|
|
499
499
|
anchored: "_anchored_1apop_32",
|
|
@@ -506,32 +506,32 @@ var je = {
|
|
|
506
506
|
};
|
|
507
507
|
//#endregion
|
|
508
508
|
//#region src/components/Badge/Badge.tsx
|
|
509
|
-
function
|
|
509
|
+
function je({ variant: e = "accent", dot: r = !1, children: i, anchor: a, className: o, ...s }) {
|
|
510
510
|
let c = /* @__PURE__ */ t("span", {
|
|
511
511
|
className: [
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
r ?
|
|
515
|
-
a ?
|
|
512
|
+
Ae.badge,
|
|
513
|
+
Ae[e],
|
|
514
|
+
r ? Ae.dot : null,
|
|
515
|
+
a ? Ae.anchored : null,
|
|
516
516
|
o
|
|
517
517
|
].filter(Boolean).join(" "),
|
|
518
518
|
...s,
|
|
519
519
|
children: !r && i
|
|
520
520
|
});
|
|
521
521
|
return a ? /* @__PURE__ */ n("span", {
|
|
522
|
-
className:
|
|
522
|
+
className: Ae.wrapper,
|
|
523
523
|
children: [a, c]
|
|
524
524
|
}) : c;
|
|
525
525
|
}
|
|
526
526
|
//#endregion
|
|
527
527
|
//#region src/components/Icon/Icon.tsx
|
|
528
|
-
var
|
|
528
|
+
var Me = {
|
|
529
529
|
sm: 12,
|
|
530
530
|
md: 16,
|
|
531
531
|
lg: 20
|
|
532
532
|
};
|
|
533
|
-
function
|
|
534
|
-
let s =
|
|
533
|
+
function L({ icon: e, size: n = "md", label: r, width: i, height: a, ...o }) {
|
|
534
|
+
let s = Me[n];
|
|
535
535
|
return /* @__PURE__ */ t("svg", {
|
|
536
536
|
xmlns: "http://www.w3.org/2000/svg",
|
|
537
537
|
viewBox: e.viewBox,
|
|
@@ -552,43 +552,43 @@ function F({ icon: e, size: n = "md", label: r, width: i, height: a, ...o }) {
|
|
|
552
552
|
}
|
|
553
553
|
//#endregion
|
|
554
554
|
//#region ../icons/dist/index.js
|
|
555
|
-
var
|
|
555
|
+
var Ne = {
|
|
556
556
|
viewBox: "0 0 16 16",
|
|
557
557
|
paths: [{
|
|
558
558
|
d: "m2.5 5 5.5 6 5.5-6z",
|
|
559
559
|
fillRule: "evenodd"
|
|
560
560
|
}]
|
|
561
|
-
},
|
|
561
|
+
}, Pe = {
|
|
562
562
|
viewBox: "0 0 16 16",
|
|
563
563
|
paths: [{
|
|
564
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",
|
|
565
565
|
fillRule: "evenodd"
|
|
566
566
|
}]
|
|
567
|
-
},
|
|
567
|
+
}, Fe = {
|
|
568
568
|
viewBox: "0 0 16 16",
|
|
569
569
|
paths: [{
|
|
570
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",
|
|
571
571
|
fillRule: "evenodd"
|
|
572
572
|
}]
|
|
573
|
-
},
|
|
573
|
+
}, Ie = {
|
|
574
574
|
viewBox: "0 0 16 16",
|
|
575
575
|
paths: [{
|
|
576
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",
|
|
577
577
|
fillRule: "evenodd"
|
|
578
578
|
}]
|
|
579
|
-
},
|
|
579
|
+
}, Le = {
|
|
580
580
|
viewBox: "0 0 16 16",
|
|
581
581
|
paths: [{
|
|
582
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",
|
|
583
583
|
fillRule: "evenodd"
|
|
584
584
|
}]
|
|
585
|
-
},
|
|
585
|
+
}, Re = {
|
|
586
586
|
viewBox: "0 0 16 16",
|
|
587
587
|
paths: [{
|
|
588
588
|
d: "M13.5 3 6 11.5 2.5 8 1 9.5l5 5 9-10z",
|
|
589
589
|
fillRule: "evenodd"
|
|
590
590
|
}]
|
|
591
|
-
},
|
|
591
|
+
}, ze = {
|
|
592
592
|
wrapper: "_wrapper_1rkb1_3",
|
|
593
593
|
open: "_open_1rkb1_13",
|
|
594
594
|
bar: "_bar_1rkb1_20",
|
|
@@ -601,8 +601,8 @@ var Pe = {
|
|
|
601
601
|
};
|
|
602
602
|
//#endregion
|
|
603
603
|
//#region src/components/SearchBar/SearchBar.tsx
|
|
604
|
-
function Be({ open: e, onClose: r, onClear: i, children: a, value: o, onChange: c, placeholder: u = "Search…", disabled:
|
|
605
|
-
let g =
|
|
604
|
+
function Be({ open: e, onClose: r, onClear: i, children: a, value: o, onChange: c, placeholder: u = "Search…", disabled: d, inline: p = !1, className: m, ...h }) {
|
|
605
|
+
let g = f(null);
|
|
606
606
|
l(() => {
|
|
607
607
|
if (e) {
|
|
608
608
|
let e = requestAnimationFrame(() => g.current?.focus());
|
|
@@ -614,23 +614,23 @@ function Be({ open: e, onClose: r, onClear: i, children: a, value: o, onChange:
|
|
|
614
614
|
}, [r, h]), v = o !== void 0 && o !== "";
|
|
615
615
|
return /* @__PURE__ */ n("div", {
|
|
616
616
|
className: [
|
|
617
|
-
|
|
618
|
-
e ?
|
|
617
|
+
ze.wrapper,
|
|
618
|
+
e ? ze.open : null,
|
|
619
619
|
m
|
|
620
620
|
].filter(Boolean).join(" "),
|
|
621
621
|
"aria-hidden": !e,
|
|
622
622
|
children: [/* @__PURE__ */ n("div", {
|
|
623
623
|
className: [
|
|
624
|
-
|
|
625
|
-
p ?
|
|
626
|
-
|
|
624
|
+
ze.bar,
|
|
625
|
+
p ? ze.inline : null,
|
|
626
|
+
d ? ze.disabled : null
|
|
627
627
|
].filter(Boolean).join(" "),
|
|
628
628
|
children: [
|
|
629
629
|
/* @__PURE__ */ t("span", {
|
|
630
|
-
className:
|
|
630
|
+
className: ze.searchIcon,
|
|
631
631
|
"aria-hidden": !0,
|
|
632
|
-
children: /* @__PURE__ */ t(
|
|
633
|
-
icon:
|
|
632
|
+
children: /* @__PURE__ */ t(L, {
|
|
633
|
+
icon: Fe,
|
|
634
634
|
size: "md"
|
|
635
635
|
})
|
|
636
636
|
}),
|
|
@@ -641,29 +641,29 @@ function Be({ open: e, onClose: r, onClear: i, children: a, value: o, onChange:
|
|
|
641
641
|
value: o,
|
|
642
642
|
onChange: c,
|
|
643
643
|
placeholder: u,
|
|
644
|
-
disabled:
|
|
644
|
+
disabled: d,
|
|
645
645
|
tabIndex: e ? void 0 : -1,
|
|
646
|
-
className:
|
|
646
|
+
className: ze.input,
|
|
647
647
|
onKeyDown: _,
|
|
648
648
|
...h
|
|
649
649
|
}),
|
|
650
650
|
v && /* @__PURE__ */ t("button", {
|
|
651
651
|
type: "button",
|
|
652
|
-
className:
|
|
652
|
+
className: ze.clearButton,
|
|
653
653
|
"aria-label": "Clear search",
|
|
654
654
|
tabIndex: e ? void 0 : -1,
|
|
655
|
-
disabled:
|
|
655
|
+
disabled: d,
|
|
656
656
|
onClick: () => {
|
|
657
657
|
i?.(), g.current?.focus();
|
|
658
658
|
},
|
|
659
|
-
children: /* @__PURE__ */ t(
|
|
660
|
-
icon:
|
|
659
|
+
children: /* @__PURE__ */ t(L, {
|
|
660
|
+
icon: Pe,
|
|
661
661
|
size: "md"
|
|
662
662
|
})
|
|
663
663
|
})
|
|
664
664
|
]
|
|
665
665
|
}), a && /* @__PURE__ */ t("div", {
|
|
666
|
-
className:
|
|
666
|
+
className: ze.filterRow,
|
|
667
667
|
children: a
|
|
668
668
|
})]
|
|
669
669
|
});
|
|
@@ -679,7 +679,7 @@ var Ve = {
|
|
|
679
679
|
//#endregion
|
|
680
680
|
//#region src/components/StatusPage/StatusPage.tsx
|
|
681
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(
|
|
682
|
+
let u = s ? 64 : 128, d = e ? /* @__PURE__ */ t(L, {
|
|
683
683
|
icon: e,
|
|
684
684
|
width: u,
|
|
685
685
|
height: u,
|
|
@@ -729,7 +729,7 @@ function We() {
|
|
|
729
729
|
isWide: e <= Ue.wide,
|
|
730
730
|
width: e
|
|
731
731
|
};
|
|
732
|
-
}, [t, n] =
|
|
732
|
+
}, [t, n] = p(e);
|
|
733
733
|
return l(() => {
|
|
734
734
|
let t = () => n(e());
|
|
735
735
|
return window.addEventListener("resize", t, { passive: !0 }), () => window.removeEventListener("resize", t);
|
|
@@ -737,7 +737,7 @@ function We() {
|
|
|
737
737
|
}
|
|
738
738
|
//#endregion
|
|
739
739
|
//#region src/components/Sidebar/Sidebar.module.css
|
|
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",
|
|
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", R = {
|
|
741
741
|
sidebar: Ge,
|
|
742
742
|
section: Ke,
|
|
743
743
|
sectionTitle: qe,
|
|
@@ -771,23 +771,23 @@ function ft(e, t) {
|
|
|
771
771
|
}), n;
|
|
772
772
|
}
|
|
773
773
|
function pt({ children: e, collapsed: r = !1, searchable: i, filter: a, onFilterChange: o, mode: s, className: c, ...l }) {
|
|
774
|
-
let [u, d] =
|
|
774
|
+
let [u, d] = p(""), { isNarrow: f } = We(), m = a !== void 0, h = m ? a : u, g = (e) => {
|
|
775
775
|
m || d(e), o?.(e);
|
|
776
|
-
}, _ = h.length > 0, v = s ?? (
|
|
776
|
+
}, _ = h.length > 0, v = s ?? (f ? "page" : "sidebar"), y = !_ || ft(e, h) > 0;
|
|
777
777
|
return /* @__PURE__ */ t(lt.Provider, {
|
|
778
778
|
value: r,
|
|
779
779
|
children: /* @__PURE__ */ t(dt.Provider, {
|
|
780
780
|
value: h,
|
|
781
781
|
children: /* @__PURE__ */ n("nav", {
|
|
782
782
|
className: [
|
|
783
|
-
|
|
784
|
-
r ?
|
|
785
|
-
v === "page" ?
|
|
783
|
+
R.sidebar,
|
|
784
|
+
r ? R.collapsed : null,
|
|
785
|
+
v === "page" ? R.pageMode : null,
|
|
786
786
|
c
|
|
787
787
|
].filter(Boolean).join(" "),
|
|
788
788
|
...l,
|
|
789
789
|
children: [i && /* @__PURE__ */ t("div", {
|
|
790
|
-
className:
|
|
790
|
+
className: R.searchWrap,
|
|
791
791
|
children: /* @__PURE__ */ t(Be, {
|
|
792
792
|
open: !0,
|
|
793
793
|
value: h,
|
|
@@ -809,14 +809,14 @@ function pt({ children: e, collapsed: r = !1, searchable: i, filter: a, onFilter
|
|
|
809
809
|
//#region src/components/Sidebar/SidebarSection.tsx
|
|
810
810
|
function mt({ title: e, children: r, className: i, ...a }) {
|
|
811
811
|
return /* @__PURE__ */ n("section", {
|
|
812
|
-
className: [
|
|
812
|
+
className: [R.section, i].filter(Boolean).join(" "),
|
|
813
813
|
...a,
|
|
814
814
|
children: [e && /* @__PURE__ */ t("h3", {
|
|
815
|
-
className:
|
|
815
|
+
className: R.sectionTitle,
|
|
816
816
|
children: e
|
|
817
817
|
}), /* @__PURE__ */ t("ul", {
|
|
818
818
|
role: "list",
|
|
819
|
-
className:
|
|
819
|
+
className: R.list,
|
|
820
820
|
children: r
|
|
821
821
|
})]
|
|
822
822
|
});
|
|
@@ -856,7 +856,7 @@ function _t(e, t, n) {
|
|
|
856
856
|
};
|
|
857
857
|
}
|
|
858
858
|
function vt({ label: r, placement: a = "top", delay: o = 500, children: c }) {
|
|
859
|
-
let
|
|
859
|
+
let d = u(), [h, g] = p(!1), [_, v] = p(null), y = f(null), b = f(null), x = f(null), S = () => {
|
|
860
860
|
x.current &&= (clearTimeout(x.current), null);
|
|
861
861
|
}, C = s(() => {
|
|
862
862
|
!y.current || !b.current || v(_t(y.current.getBoundingClientRect(), b.current.getBoundingClientRect(), a));
|
|
@@ -885,7 +885,7 @@ function vt({ label: r, placement: a = "top", delay: o = 500, children: c }) {
|
|
|
885
885
|
}, [h, T]);
|
|
886
886
|
let E = i(c, {
|
|
887
887
|
ref: y,
|
|
888
|
-
"aria-describedby":
|
|
888
|
+
"aria-describedby": d,
|
|
889
889
|
onMouseEnter: (e) => {
|
|
890
890
|
w(), c.props.onMouseEnter?.(e);
|
|
891
891
|
},
|
|
@@ -900,7 +900,7 @@ function vt({ label: r, placement: a = "top", delay: o = 500, children: c }) {
|
|
|
900
900
|
}
|
|
901
901
|
}), D = /* @__PURE__ */ t("div", {
|
|
902
902
|
ref: b,
|
|
903
|
-
id:
|
|
903
|
+
id: d,
|
|
904
904
|
role: "tooltip",
|
|
905
905
|
className: [
|
|
906
906
|
ht.tooltip,
|
|
@@ -917,16 +917,16 @@ function vt({ label: r, placement: a = "top", delay: o = 500, children: c }) {
|
|
|
917
917
|
},
|
|
918
918
|
children: r
|
|
919
919
|
});
|
|
920
|
-
return /* @__PURE__ */ n(e, { children: [E, typeof document < "u" ?
|
|
920
|
+
return /* @__PURE__ */ n(e, { children: [E, typeof document < "u" ? m(D, document.body) : D] });
|
|
921
921
|
}
|
|
922
922
|
//#endregion
|
|
923
923
|
//#region src/components/Sidebar/SidebarItem.tsx
|
|
924
|
-
function yt({ label: e, icon: r, active: i = !1, suffix: a, badge: o, tooltip: u, menuItems:
|
|
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] =
|
|
924
|
+
function yt({ label: e, icon: r, active: i = !1, suffix: a, badge: o, tooltip: u, menuItems: d, 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] = p(!1), E = (e) => {
|
|
926
926
|
h && (g?.length && !g.some((t) => e.dataTransfer.types.includes(t)) || (e.preventDefault(), T(!0)));
|
|
927
927
|
}, D = () => T(!1), O = (e) => {
|
|
928
928
|
h && (e.preventDefault(), T(!1), h(e));
|
|
929
|
-
}, [k, A] =
|
|
929
|
+
}, [k, A] = p(null), j = f(null), M = s((e, t) => A({
|
|
930
930
|
x: e,
|
|
931
931
|
y: t
|
|
932
932
|
}), []), N = s(() => A(null), []);
|
|
@@ -942,70 +942,70 @@ function yt({ label: e, icon: r, active: i = !1, suffix: a, badge: o, tooltip: u
|
|
|
942
942
|
};
|
|
943
943
|
}, [k, N]);
|
|
944
944
|
let P = (e) => {
|
|
945
|
-
|
|
946
|
-
},
|
|
945
|
+
d?.length && (e.preventDefault(), M(e.clientX, e.clientY));
|
|
946
|
+
}, F = (e) => {
|
|
947
947
|
if (e.key === "ContextMenu" || e.key === "F10" && e.shiftKey) {
|
|
948
|
-
if (!
|
|
948
|
+
if (!d?.length) return;
|
|
949
949
|
e.preventDefault();
|
|
950
950
|
let t = e.currentTarget.getBoundingClientRect();
|
|
951
951
|
M(t.right, t.top);
|
|
952
952
|
}
|
|
953
|
-
},
|
|
953
|
+
}, I = /* @__PURE__ */ n("button", {
|
|
954
954
|
type: "button",
|
|
955
955
|
"aria-current": i ? "page" : void 0,
|
|
956
956
|
"aria-label": y ? e : void 0,
|
|
957
957
|
className: [
|
|
958
|
-
|
|
959
|
-
i ?
|
|
960
|
-
y ?
|
|
961
|
-
w ?
|
|
958
|
+
R.itemBtn,
|
|
959
|
+
i ? R.active : null,
|
|
960
|
+
y ? R.itemCollapsed : null,
|
|
961
|
+
w ? R.dragOver : null,
|
|
962
962
|
_
|
|
963
963
|
].filter(Boolean).join(" "),
|
|
964
964
|
onContextMenu: P,
|
|
965
|
-
onKeyDown:
|
|
965
|
+
onKeyDown: F,
|
|
966
966
|
onDragOver: E,
|
|
967
967
|
onDragLeave: D,
|
|
968
968
|
onDrop: O,
|
|
969
969
|
...v,
|
|
970
970
|
children: [
|
|
971
971
|
r && /* @__PURE__ */ t("span", {
|
|
972
|
-
className:
|
|
973
|
-
children: /* @__PURE__ */ t(
|
|
972
|
+
className: R.itemIcon,
|
|
973
|
+
children: /* @__PURE__ */ t(L, {
|
|
974
974
|
icon: r,
|
|
975
975
|
size: "md",
|
|
976
976
|
"aria-hidden": !0
|
|
977
977
|
})
|
|
978
978
|
}),
|
|
979
979
|
!y && /* @__PURE__ */ t("span", {
|
|
980
|
-
className:
|
|
980
|
+
className: R.itemLabel,
|
|
981
981
|
children: e
|
|
982
982
|
}),
|
|
983
983
|
!y && x && /* @__PURE__ */ t("span", {
|
|
984
|
-
className:
|
|
984
|
+
className: R.itemSuffix,
|
|
985
985
|
children: x
|
|
986
986
|
})
|
|
987
987
|
]
|
|
988
988
|
});
|
|
989
989
|
return /* @__PURE__ */ n("li", {
|
|
990
|
-
className:
|
|
990
|
+
className: R.item,
|
|
991
991
|
hidden: C || void 0,
|
|
992
992
|
children: [S ? /* @__PURE__ */ t(vt, {
|
|
993
993
|
label: S,
|
|
994
994
|
placement: "right",
|
|
995
|
-
children:
|
|
996
|
-
}) :
|
|
995
|
+
children: I
|
|
996
|
+
}) : I, k && d?.length && typeof document < "u" && m(/* @__PURE__ */ t("div", {
|
|
997
997
|
ref: j,
|
|
998
|
-
className:
|
|
998
|
+
className: R.contextMenu,
|
|
999
999
|
style: {
|
|
1000
1000
|
top: k.y,
|
|
1001
1001
|
left: k.x
|
|
1002
1002
|
},
|
|
1003
1003
|
role: "menu",
|
|
1004
|
-
children:
|
|
1004
|
+
children: d.map((e) => /* @__PURE__ */ t("button", {
|
|
1005
1005
|
type: "button",
|
|
1006
1006
|
role: "menuitem",
|
|
1007
1007
|
disabled: e.disabled,
|
|
1008
|
-
className: [
|
|
1008
|
+
className: [R.contextMenuItem, e.destructive ? R.contextMenuDestructive : null].filter(Boolean).join(" "),
|
|
1009
1009
|
onClick: () => {
|
|
1010
1010
|
e.onClick(), N();
|
|
1011
1011
|
},
|
|
@@ -1106,7 +1106,7 @@ function Ct({ value: e, onChange: r, min: i = 0, max: a = 100, step: o = 1, deci
|
|
|
1106
1106
|
]
|
|
1107
1107
|
});
|
|
1108
1108
|
}
|
|
1109
|
-
var
|
|
1109
|
+
var z = {
|
|
1110
1110
|
bar: "_bar_12ars_3",
|
|
1111
1111
|
list: "_list_12ars_10",
|
|
1112
1112
|
tab: "_tab_12ars_26",
|
|
@@ -1120,7 +1120,7 @@ var R = {
|
|
|
1120
1120
|
//#endregion
|
|
1121
1121
|
//#region src/components/Tabs/TabBar.tsx
|
|
1122
1122
|
function wt({ children: e, className: n, inline: r = !1, "aria-label": i = "Tabs", ...a }) {
|
|
1123
|
-
let o =
|
|
1123
|
+
let o = f(null);
|
|
1124
1124
|
function s(e) {
|
|
1125
1125
|
let t = Array.from(o.current?.querySelectorAll("[role=tab]:not(:disabled)") ?? []), n = t.findIndex((e) => e === document.activeElement);
|
|
1126
1126
|
if (n === -1) return;
|
|
@@ -1134,8 +1134,8 @@ function wt({ children: e, className: n, inline: r = !1, "aria-label": i = "Tabs
|
|
|
1134
1134
|
}
|
|
1135
1135
|
return /* @__PURE__ */ t("div", {
|
|
1136
1136
|
className: [
|
|
1137
|
-
|
|
1138
|
-
r ?
|
|
1137
|
+
z.bar,
|
|
1138
|
+
r ? z.inline : null,
|
|
1139
1139
|
n
|
|
1140
1140
|
].filter(Boolean).join(" "),
|
|
1141
1141
|
...a,
|
|
@@ -1143,7 +1143,7 @@ function wt({ children: e, className: n, inline: r = !1, "aria-label": i = "Tabs
|
|
|
1143
1143
|
ref: o,
|
|
1144
1144
|
role: "tablist",
|
|
1145
1145
|
"aria-label": i,
|
|
1146
|
-
className:
|
|
1146
|
+
className: z.list,
|
|
1147
1147
|
onKeyDown: s,
|
|
1148
1148
|
children: e
|
|
1149
1149
|
})
|
|
@@ -1160,30 +1160,30 @@ function Tt({ label: e, icon: r, active: i = !1, panelId: a, onClose: o, closeLa
|
|
|
1160
1160
|
tabIndex: i ? 0 : -1,
|
|
1161
1161
|
disabled: l,
|
|
1162
1162
|
className: [
|
|
1163
|
-
|
|
1164
|
-
i ?
|
|
1165
|
-
o ?
|
|
1163
|
+
z.tab,
|
|
1164
|
+
i ? z.active : null,
|
|
1165
|
+
o ? z.closeable : null,
|
|
1166
1166
|
c
|
|
1167
1167
|
].filter(Boolean).join(" "),
|
|
1168
1168
|
...u,
|
|
1169
1169
|
children: [
|
|
1170
1170
|
r && /* @__PURE__ */ t("span", {
|
|
1171
|
-
className:
|
|
1172
|
-
children: /* @__PURE__ */ t(
|
|
1171
|
+
className: z.tabIcon,
|
|
1172
|
+
children: /* @__PURE__ */ t(L, {
|
|
1173
1173
|
icon: r,
|
|
1174
1174
|
size: "sm",
|
|
1175
1175
|
"aria-hidden": !0
|
|
1176
1176
|
})
|
|
1177
1177
|
}),
|
|
1178
1178
|
/* @__PURE__ */ t("span", {
|
|
1179
|
-
className:
|
|
1179
|
+
className: z.tabLabel,
|
|
1180
1180
|
children: e
|
|
1181
1181
|
}),
|
|
1182
1182
|
o && /* @__PURE__ */ t("span", {
|
|
1183
1183
|
role: "button",
|
|
1184
1184
|
tabIndex: 0,
|
|
1185
1185
|
"aria-label": s,
|
|
1186
|
-
className:
|
|
1186
|
+
className: z.closeBtn,
|
|
1187
1187
|
onClick: (e) => {
|
|
1188
1188
|
e.stopPropagation(), o();
|
|
1189
1189
|
},
|
|
@@ -1203,12 +1203,12 @@ function Et({ id: e, active: n = !1, className: r, children: i, ...a }) {
|
|
|
1203
1203
|
role: "tabpanel",
|
|
1204
1204
|
hidden: !n,
|
|
1205
1205
|
tabIndex: 0,
|
|
1206
|
-
className: [
|
|
1206
|
+
className: [z.panel, r].filter(Boolean).join(" "),
|
|
1207
1207
|
...a,
|
|
1208
1208
|
children: i
|
|
1209
1209
|
});
|
|
1210
1210
|
}
|
|
1211
|
-
var
|
|
1211
|
+
var B = {
|
|
1212
1212
|
row: "_row_17clq_3",
|
|
1213
1213
|
leading: "_leading_17clq_16",
|
|
1214
1214
|
content: "_content_17clq_25",
|
|
@@ -1225,29 +1225,29 @@ function Dt({ title: e, subtitle: r, leading: i, trailing: a, interactive: o = !
|
|
|
1225
1225
|
let u = o ? "button" : "div", d = s === "property";
|
|
1226
1226
|
return /* @__PURE__ */ n(u, {
|
|
1227
1227
|
className: [
|
|
1228
|
-
|
|
1229
|
-
o ?
|
|
1230
|
-
d ?
|
|
1228
|
+
B.row,
|
|
1229
|
+
o ? B.interactive : null,
|
|
1230
|
+
d ? B.property : null,
|
|
1231
1231
|
c
|
|
1232
1232
|
].filter(Boolean).join(" "),
|
|
1233
1233
|
...l,
|
|
1234
1234
|
children: [
|
|
1235
1235
|
i && /* @__PURE__ */ t("span", {
|
|
1236
|
-
className:
|
|
1236
|
+
className: B.leading,
|
|
1237
1237
|
children: i
|
|
1238
1238
|
}),
|
|
1239
1239
|
/* @__PURE__ */ n("span", {
|
|
1240
|
-
className:
|
|
1240
|
+
className: B.content,
|
|
1241
1241
|
children: [/* @__PURE__ */ t("span", {
|
|
1242
|
-
className: d ?
|
|
1242
|
+
className: d ? B.propertyLabel : B.title,
|
|
1243
1243
|
children: e
|
|
1244
1244
|
}), r && /* @__PURE__ */ t("span", {
|
|
1245
|
-
className: d ?
|
|
1245
|
+
className: d ? B.propertyValue : B.subtitle,
|
|
1246
1246
|
children: r
|
|
1247
1247
|
})]
|
|
1248
1248
|
}),
|
|
1249
1249
|
a && /* @__PURE__ */ t("span", {
|
|
1250
|
-
className:
|
|
1250
|
+
className: B.trailing,
|
|
1251
1251
|
children: a
|
|
1252
1252
|
})
|
|
1253
1253
|
]
|
|
@@ -1274,7 +1274,7 @@ function kt({ children: e, variant: i = "default", className: a, ...o }) {
|
|
|
1274
1274
|
...o,
|
|
1275
1275
|
children: s.map((e, r) => /* @__PURE__ */ n("li", {
|
|
1276
1276
|
className: c ? Ot.separateItem : Ot.item,
|
|
1277
|
-
children: [!c && r > 0 && /* @__PURE__ */ t(
|
|
1277
|
+
children: [!c && r > 0 && /* @__PURE__ */ t(ie, { "aria-hidden": "true" }), e]
|
|
1278
1278
|
}, r))
|
|
1279
1279
|
});
|
|
1280
1280
|
}
|
|
@@ -1288,7 +1288,7 @@ var At = {
|
|
|
1288
1288
|
//#endregion
|
|
1289
1289
|
//#region src/components/ViewSwitcher/ViewSwitcher.tsx
|
|
1290
1290
|
function jt({ children: e, className: n, "aria-label": r = "View switcher", ...i }) {
|
|
1291
|
-
let a =
|
|
1291
|
+
let a = f(null);
|
|
1292
1292
|
function o(e) {
|
|
1293
1293
|
let t = Array.from(a.current?.querySelectorAll("[role=radio]:not(:disabled)") ?? []), n = t.findIndex((e) => e === document.activeElement);
|
|
1294
1294
|
if (n === -1) return;
|
|
@@ -1327,7 +1327,7 @@ function Mt({ label: e, icon: r, active: i = !1, className: a, disabled: o, ...s
|
|
|
1327
1327
|
...s,
|
|
1328
1328
|
children: [r && /* @__PURE__ */ t("span", {
|
|
1329
1329
|
className: At.itemIcon,
|
|
1330
|
-
children: /* @__PURE__ */ t(
|
|
1330
|
+
children: /* @__PURE__ */ t(L, {
|
|
1331
1331
|
icon: r,
|
|
1332
1332
|
size: "md",
|
|
1333
1333
|
"aria-hidden": !0
|
|
@@ -1354,14 +1354,14 @@ var Nt = "_toaster_1tgvb_3", Pt = "_toasterBottom_1tgvb_18", Ft = "_toasterTop_1
|
|
|
1354
1354
|
//#endregion
|
|
1355
1355
|
//#region src/components/Toast/Toast.tsx
|
|
1356
1356
|
function Ht({ title: e, duration: r = 3e3, onDismiss: i, actionLabel: a, onAction: o, dismissible: s = !1, className: c, ...u }) {
|
|
1357
|
-
let
|
|
1358
|
-
|
|
1357
|
+
let d = f(null), p = f(r), m = f(0), h = () => {
|
|
1358
|
+
d.current &&= (clearTimeout(d.current), null);
|
|
1359
1359
|
}, g = (e) => {
|
|
1360
|
-
e <= 0 || !i || (h(), m.current = Date.now(),
|
|
1360
|
+
e <= 0 || !i || (h(), m.current = Date.now(), d.current = setTimeout(() => i(), e));
|
|
1361
1361
|
};
|
|
1362
1362
|
l(() => (r > 0 && (p.current = r, g(r)), h), [r]);
|
|
1363
1363
|
let _ = () => {
|
|
1364
|
-
if (
|
|
1364
|
+
if (d.current) {
|
|
1365
1365
|
let e = Date.now() - m.current;
|
|
1366
1366
|
p.current = Math.max(0, p.current - e), h();
|
|
1367
1367
|
}
|
|
@@ -1397,8 +1397,8 @@ function Ht({ title: e, duration: r = 3e3, onDismiss: i, actionLabel: a, onActio
|
|
|
1397
1397
|
onClick: () => {
|
|
1398
1398
|
h(), i?.();
|
|
1399
1399
|
},
|
|
1400
|
-
children: /* @__PURE__ */ t(
|
|
1401
|
-
icon:
|
|
1400
|
+
children: /* @__PURE__ */ t(L, {
|
|
1401
|
+
icon: Pe,
|
|
1402
1402
|
size: "md",
|
|
1403
1403
|
"aria-hidden": !0
|
|
1404
1404
|
})
|
|
@@ -1419,11 +1419,11 @@ function Ut({ position: e = "bottom", children: n, container: r, className: i, .
|
|
|
1419
1419
|
...a,
|
|
1420
1420
|
children: n
|
|
1421
1421
|
});
|
|
1422
|
-
return typeof document > "u" ? o :
|
|
1422
|
+
return typeof document > "u" ? o : m(o, r ?? document.body);
|
|
1423
1423
|
}
|
|
1424
1424
|
//#endregion
|
|
1425
1425
|
//#region src/components/Dialog/Dialog.module.css
|
|
1426
|
-
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",
|
|
1426
|
+
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", V = {
|
|
1427
1427
|
backdrop: Wt,
|
|
1428
1428
|
"backdrop-in": "_backdrop-in_zx0yn_1",
|
|
1429
1429
|
dialog: Gt,
|
|
@@ -1470,136 +1470,136 @@ var xn = {
|
|
|
1470
1470
|
credits: "Credits",
|
|
1471
1471
|
legal: "Legal"
|
|
1472
1472
|
};
|
|
1473
|
-
function Sn({ open: r, title: i, children: a, buttons: o = [], onClose: c, closeOnBackdrop:
|
|
1474
|
-
let
|
|
1473
|
+
function Sn({ open: r, title: i, children: a, buttons: o = [], onClose: c, closeOnBackdrop: d = !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 }) {
|
|
1474
|
+
let F = f(null), I = u(), ee = f(null), [te, ne] = p("details"), re = !!g, ie = v === "about";
|
|
1475
1475
|
l(() => {
|
|
1476
|
-
r ? (
|
|
1477
|
-
}, [r,
|
|
1478
|
-
let
|
|
1476
|
+
r ? (ee.current = document.activeElement, (F.current?.querySelector(yn))?.focus()) : (ee.current?.focus(), ie && ne("details"));
|
|
1477
|
+
}, [r, ie]);
|
|
1478
|
+
let ae = s(() => {
|
|
1479
1479
|
let e = g?.find((e) => e.variant !== "destructive" && !e.disabled);
|
|
1480
1480
|
e && _?.(e.id);
|
|
1481
|
-
}, [g, _]),
|
|
1481
|
+
}, [g, _]), oe = re ? ae : d ? c : void 0, se = s((e) => {
|
|
1482
1482
|
if (e.key === "Escape") {
|
|
1483
|
-
e.preventDefault(),
|
|
1483
|
+
e.preventDefault(), re ? ae() : c?.();
|
|
1484
1484
|
return;
|
|
1485
1485
|
}
|
|
1486
|
-
bn(e,
|
|
1486
|
+
bn(e, F);
|
|
1487
1487
|
}, [
|
|
1488
|
+
re,
|
|
1488
1489
|
ae,
|
|
1489
|
-
se,
|
|
1490
1490
|
c
|
|
1491
1491
|
]);
|
|
1492
1492
|
if (!r) return null;
|
|
1493
|
-
let
|
|
1493
|
+
let ce = [
|
|
1494
1494
|
"details",
|
|
1495
1495
|
!!(E?.length || D?.length || O?.length) && "credits",
|
|
1496
1496
|
!!(k || A || j) && "legal"
|
|
1497
|
-
].filter(Boolean),
|
|
1498
|
-
className:
|
|
1497
|
+
].filter(Boolean), le = () => ie ? /* @__PURE__ */ t("div", {
|
|
1498
|
+
className: V.footer,
|
|
1499
1499
|
children: /* @__PURE__ */ t("button", {
|
|
1500
1500
|
type: "button",
|
|
1501
|
-
className: [
|
|
1501
|
+
className: [V.btn, V["btn-default"]].join(" "),
|
|
1502
1502
|
onClick: c,
|
|
1503
1503
|
children: "Close"
|
|
1504
1504
|
})
|
|
1505
|
-
}) :
|
|
1506
|
-
className:
|
|
1505
|
+
}) : re && g ? /* @__PURE__ */ t("div", {
|
|
1506
|
+
className: V.footer,
|
|
1507
1507
|
children: g.map((e) => /* @__PURE__ */ t("button", {
|
|
1508
1508
|
type: "button",
|
|
1509
1509
|
disabled: e.disabled,
|
|
1510
|
-
className: [
|
|
1510
|
+
className: [V.btn, V[`btn-${e.variant ?? "default"}`]].filter(Boolean).join(" "),
|
|
1511
1511
|
onClick: () => _?.(e.id),
|
|
1512
1512
|
children: e.label
|
|
1513
1513
|
}, e.id))
|
|
1514
1514
|
}) : o.length > 0 ? /* @__PURE__ */ t("div", {
|
|
1515
|
-
className:
|
|
1515
|
+
className: V.footer,
|
|
1516
1516
|
children: o.map((e) => /* @__PURE__ */ t("button", {
|
|
1517
1517
|
type: "button",
|
|
1518
1518
|
disabled: e.disabled,
|
|
1519
|
-
className: [
|
|
1519
|
+
className: [V.btn, V[`btn-${e.variant ?? "default"}`]].filter(Boolean).join(" "),
|
|
1520
1520
|
onClick: e.onClick,
|
|
1521
1521
|
children: e.label
|
|
1522
1522
|
}, e.label))
|
|
1523
|
-
}) : null,
|
|
1523
|
+
}) : null, ue = () => /* @__PURE__ */ n(e, { children: [
|
|
1524
1524
|
/* @__PURE__ */ n("div", {
|
|
1525
|
-
className:
|
|
1525
|
+
className: V.aboutHeader,
|
|
1526
1526
|
children: [
|
|
1527
1527
|
b && /* @__PURE__ */ t("div", {
|
|
1528
|
-
className:
|
|
1528
|
+
className: V.aboutIcon,
|
|
1529
1529
|
children: b
|
|
1530
1530
|
}),
|
|
1531
1531
|
/* @__PURE__ */ t("div", {
|
|
1532
|
-
id:
|
|
1533
|
-
className:
|
|
1532
|
+
id: I,
|
|
1533
|
+
className: V.aboutAppName,
|
|
1534
1534
|
children: y
|
|
1535
1535
|
}),
|
|
1536
1536
|
x && /* @__PURE__ */ t("div", {
|
|
1537
|
-
className:
|
|
1537
|
+
className: V.aboutVersion,
|
|
1538
1538
|
children: x
|
|
1539
1539
|
})
|
|
1540
1540
|
]
|
|
1541
1541
|
}),
|
|
1542
|
-
|
|
1543
|
-
className:
|
|
1542
|
+
ce.length > 1 && /* @__PURE__ */ t("div", {
|
|
1543
|
+
className: V.aboutTabBar,
|
|
1544
1544
|
role: "tablist",
|
|
1545
|
-
children:
|
|
1545
|
+
children: ce.map((e) => /* @__PURE__ */ t("button", {
|
|
1546
1546
|
type: "button",
|
|
1547
1547
|
role: "tab",
|
|
1548
|
-
"aria-selected":
|
|
1549
|
-
className: [
|
|
1550
|
-
onClick: () =>
|
|
1548
|
+
"aria-selected": te === e,
|
|
1549
|
+
className: [V.aboutTabBtn, te === e ? V.aboutTabBtnActive : null].filter(Boolean).join(" "),
|
|
1550
|
+
onClick: () => ne(e),
|
|
1551
1551
|
children: xn[e]
|
|
1552
1552
|
}, e))
|
|
1553
1553
|
}),
|
|
1554
1554
|
/* @__PURE__ */ n("div", {
|
|
1555
|
-
className:
|
|
1555
|
+
className: V.aboutTabContent,
|
|
1556
1556
|
children: [
|
|
1557
|
-
|
|
1558
|
-
className:
|
|
1557
|
+
te === "details" && /* @__PURE__ */ n("div", {
|
|
1558
|
+
className: V.aboutSection,
|
|
1559
1559
|
children: [S && /* @__PURE__ */ t("p", {
|
|
1560
|
-
className:
|
|
1560
|
+
className: V.aboutComments,
|
|
1561
1561
|
children: S
|
|
1562
1562
|
}), (C || w || M?.length) && /* @__PURE__ */ n("dl", {
|
|
1563
|
-
className:
|
|
1563
|
+
className: V.aboutInfoList,
|
|
1564
1564
|
children: [
|
|
1565
1565
|
C && /* @__PURE__ */ n(e, { children: [/* @__PURE__ */ t("dt", {
|
|
1566
|
-
className:
|
|
1566
|
+
className: V.aboutInfoLabel,
|
|
1567
1567
|
children: "Developer"
|
|
1568
1568
|
}), /* @__PURE__ */ t("dd", {
|
|
1569
|
-
className:
|
|
1569
|
+
className: V.aboutInfoValue,
|
|
1570
1570
|
children: C
|
|
1571
1571
|
})] }),
|
|
1572
1572
|
w && /* @__PURE__ */ n(e, { children: [/* @__PURE__ */ t("dt", {
|
|
1573
|
-
className:
|
|
1573
|
+
className: V.aboutInfoLabel,
|
|
1574
1574
|
children: "Website"
|
|
1575
1575
|
}), /* @__PURE__ */ t("dd", {
|
|
1576
|
-
className:
|
|
1576
|
+
className: V.aboutInfoValue,
|
|
1577
1577
|
children: /* @__PURE__ */ t("a", {
|
|
1578
1578
|
href: w,
|
|
1579
1579
|
target: "_blank",
|
|
1580
1580
|
rel: "noopener noreferrer",
|
|
1581
|
-
className:
|
|
1581
|
+
className: V.aboutLink,
|
|
1582
1582
|
children: T ?? w
|
|
1583
1583
|
})
|
|
1584
1584
|
})] }),
|
|
1585
1585
|
M?.map((r) => /* @__PURE__ */ n(e, { children: [/* @__PURE__ */ t("dt", {
|
|
1586
|
-
className:
|
|
1586
|
+
className: V.aboutInfoLabel,
|
|
1587
1587
|
children: r.label
|
|
1588
1588
|
}, `${r.label}-dt`), /* @__PURE__ */ t("dd", {
|
|
1589
|
-
className:
|
|
1589
|
+
className: V.aboutInfoValue,
|
|
1590
1590
|
children: /* @__PURE__ */ t("a", {
|
|
1591
1591
|
href: r.url,
|
|
1592
1592
|
target: "_blank",
|
|
1593
1593
|
rel: "noopener noreferrer",
|
|
1594
|
-
className:
|
|
1594
|
+
className: V.aboutLink,
|
|
1595
1595
|
children: r.url
|
|
1596
1596
|
})
|
|
1597
1597
|
}, `${r.label}-dd`)] }))
|
|
1598
1598
|
]
|
|
1599
1599
|
})]
|
|
1600
1600
|
}),
|
|
1601
|
-
|
|
1602
|
-
className:
|
|
1601
|
+
te === "credits" && /* @__PURE__ */ t("div", {
|
|
1602
|
+
className: V.aboutSection,
|
|
1603
1603
|
children: [
|
|
1604
1604
|
{
|
|
1605
1605
|
heading: "Developers",
|
|
@@ -1614,70 +1614,70 @@ function Sn({ open: r, title: i, children: a, buttons: o = [], onClose: c, close
|
|
|
1614
1614
|
list: O
|
|
1615
1615
|
}
|
|
1616
1616
|
].filter((e) => e.list?.length).map(({ heading: e, list: r }) => /* @__PURE__ */ n("div", {
|
|
1617
|
-
className:
|
|
1617
|
+
className: V.aboutCreditGroup,
|
|
1618
1618
|
children: [/* @__PURE__ */ t("h4", {
|
|
1619
|
-
className:
|
|
1619
|
+
className: V.aboutCreditTitle,
|
|
1620
1620
|
children: e
|
|
1621
1621
|
}), /* @__PURE__ */ t("ul", {
|
|
1622
|
-
className:
|
|
1622
|
+
className: V.aboutCreditList,
|
|
1623
1623
|
children: r.map((e) => /* @__PURE__ */ t("li", {
|
|
1624
|
-
className:
|
|
1624
|
+
className: V.aboutCreditItem,
|
|
1625
1625
|
children: e
|
|
1626
1626
|
}, e))
|
|
1627
1627
|
})]
|
|
1628
1628
|
}, e))
|
|
1629
1629
|
}),
|
|
1630
|
-
|
|
1631
|
-
className:
|
|
1630
|
+
te === "legal" && /* @__PURE__ */ n("div", {
|
|
1631
|
+
className: V.aboutSection,
|
|
1632
1632
|
children: [
|
|
1633
1633
|
k && /* @__PURE__ */ t("p", {
|
|
1634
|
-
className:
|
|
1634
|
+
className: V.aboutCopyright,
|
|
1635
1635
|
children: k
|
|
1636
1636
|
}),
|
|
1637
1637
|
A && /* @__PURE__ */ t("p", {
|
|
1638
|
-
className:
|
|
1638
|
+
className: V.aboutLicenseType,
|
|
1639
1639
|
children: A
|
|
1640
1640
|
}),
|
|
1641
1641
|
j && /* @__PURE__ */ t("pre", {
|
|
1642
|
-
className:
|
|
1642
|
+
className: V.aboutLicenseText,
|
|
1643
1643
|
children: j
|
|
1644
1644
|
})
|
|
1645
1645
|
]
|
|
1646
1646
|
})
|
|
1647
1647
|
]
|
|
1648
1648
|
})
|
|
1649
|
-
] }),
|
|
1650
|
-
className:
|
|
1651
|
-
onClick:
|
|
1649
|
+
] }), de = /* @__PURE__ */ t("div", {
|
|
1650
|
+
className: V.backdrop,
|
|
1651
|
+
onClick: oe,
|
|
1652
1652
|
"aria-hidden": "true",
|
|
1653
1653
|
children: /* @__PURE__ */ n("div", {
|
|
1654
|
-
ref:
|
|
1654
|
+
ref: F,
|
|
1655
1655
|
role: h,
|
|
1656
1656
|
"aria-modal": "true",
|
|
1657
|
-
"aria-labelledby":
|
|
1657
|
+
"aria-labelledby": I,
|
|
1658
1658
|
className: [
|
|
1659
|
-
|
|
1660
|
-
|
|
1659
|
+
V.dialog,
|
|
1660
|
+
ie ? V.dialogAbout : null,
|
|
1661
1661
|
N
|
|
1662
1662
|
].filter(Boolean).join(" "),
|
|
1663
|
-
onKeyDown:
|
|
1663
|
+
onKeyDown: se,
|
|
1664
1664
|
onClick: (e) => e.stopPropagation(),
|
|
1665
1665
|
...P,
|
|
1666
|
-
children: [
|
|
1667
|
-
id:
|
|
1668
|
-
className:
|
|
1666
|
+
children: [ie ? ue() : /* @__PURE__ */ n(e, { children: [i && /* @__PURE__ */ t("div", {
|
|
1667
|
+
id: I,
|
|
1668
|
+
className: V.title,
|
|
1669
1669
|
children: i
|
|
1670
1670
|
}), a && /* @__PURE__ */ t("div", {
|
|
1671
|
-
className:
|
|
1671
|
+
className: V.body,
|
|
1672
1672
|
children: a
|
|
1673
|
-
})] }),
|
|
1673
|
+
})] }), le()]
|
|
1674
1674
|
})
|
|
1675
1675
|
});
|
|
1676
|
-
return typeof document > "u" ?
|
|
1676
|
+
return typeof document > "u" ? de : m(de, document.body);
|
|
1677
1677
|
}
|
|
1678
1678
|
//#endregion
|
|
1679
1679
|
//#region src/components/Dropdown/Dropdown.module.css
|
|
1680
|
-
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",
|
|
1680
|
+
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", H = {
|
|
1681
1681
|
wrapper: Cn,
|
|
1682
1682
|
trigger: wn,
|
|
1683
1683
|
triggerOpen: Tn,
|
|
@@ -1701,8 +1701,8 @@ var Cn = "_wrapper_1hi05_3", wn = "_trigger_1hi05_11", Tn = "_triggerOpen_1hi05_
|
|
|
1701
1701
|
};
|
|
1702
1702
|
//#endregion
|
|
1703
1703
|
//#region src/components/Dropdown/Dropdown.tsx
|
|
1704
|
-
function Vn({ options: e, value: r, onChange: i, placeholder: a = "Select an option", disabled: o, className: c, ...
|
|
1705
|
-
let [m, h] =
|
|
1704
|
+
function Vn({ options: e, value: r, onChange: i, placeholder: a = "Select an option", disabled: o, className: c, ...d }) {
|
|
1705
|
+
let [m, h] = p(!1), [g, _] = p(-1), [v, y] = p(!1), b = u(), x = u(), S = f(null), C = f(null), w = e.find((e) => e.value === r), T = s(() => {
|
|
1706
1706
|
if (!S.current) return;
|
|
1707
1707
|
let t = S.current.getBoundingClientRect(), n = window.innerHeight - t.bottom, r = Math.min(e.length * 48 + 8, 280);
|
|
1708
1708
|
y(n < r && t.top > r);
|
|
@@ -1785,8 +1785,8 @@ function Vn({ options: e, value: r, onChange: i, placeholder: a = "Select an opt
|
|
|
1785
1785
|
D
|
|
1786
1786
|
]);
|
|
1787
1787
|
return /* @__PURE__ */ n("div", {
|
|
1788
|
-
className: [
|
|
1789
|
-
...
|
|
1788
|
+
className: [H.wrapper, c].filter(Boolean).join(" "),
|
|
1789
|
+
...d,
|
|
1790
1790
|
children: [/* @__PURE__ */ n("button", {
|
|
1791
1791
|
ref: S,
|
|
1792
1792
|
id: b,
|
|
@@ -1797,17 +1797,17 @@ function Vn({ options: e, value: r, onChange: i, placeholder: a = "Select an opt
|
|
|
1797
1797
|
"aria-controls": x,
|
|
1798
1798
|
"aria-activedescendant": m && g >= 0 ? `${x}-opt-${g}` : void 0,
|
|
1799
1799
|
disabled: o,
|
|
1800
|
-
className: [
|
|
1800
|
+
className: [H.trigger, m ? H.triggerOpen : null].filter(Boolean).join(" "),
|
|
1801
1801
|
onClick: () => m ? D() : E(),
|
|
1802
1802
|
onKeyDown: k,
|
|
1803
1803
|
children: [/* @__PURE__ */ t("span", {
|
|
1804
|
-
className: [
|
|
1804
|
+
className: [H.triggerLabel, w ? null : H.placeholder].filter(Boolean).join(" "),
|
|
1805
1805
|
children: w?.label ?? a
|
|
1806
|
-
}), /* @__PURE__ */ t(
|
|
1807
|
-
icon:
|
|
1806
|
+
}), /* @__PURE__ */ t(L, {
|
|
1807
|
+
icon: Ne,
|
|
1808
1808
|
size: "md",
|
|
1809
1809
|
"aria-hidden": !0,
|
|
1810
|
-
className: [
|
|
1810
|
+
className: [H.chevron, m ? H.chevronOpen : null].filter(Boolean).join(" ")
|
|
1811
1811
|
})]
|
|
1812
1812
|
}), m && /* @__PURE__ */ t("ul", {
|
|
1813
1813
|
ref: C,
|
|
@@ -1815,7 +1815,7 @@ function Vn({ options: e, value: r, onChange: i, placeholder: a = "Select an opt
|
|
|
1815
1815
|
role: "listbox",
|
|
1816
1816
|
"aria-labelledby": b,
|
|
1817
1817
|
tabIndex: -1,
|
|
1818
|
-
className: [
|
|
1818
|
+
className: [H.list, v ? H.listUp : H.listDown].filter(Boolean).join(" "),
|
|
1819
1819
|
onKeyDown: A,
|
|
1820
1820
|
children: e.map((e, i) => /* @__PURE__ */ n("li", {
|
|
1821
1821
|
id: `${x}-opt-${i}`,
|
|
@@ -1823,27 +1823,27 @@ function Vn({ options: e, value: r, onChange: i, placeholder: a = "Select an opt
|
|
|
1823
1823
|
"aria-selected": e.value === r,
|
|
1824
1824
|
"aria-disabled": e.disabled,
|
|
1825
1825
|
className: [
|
|
1826
|
-
|
|
1827
|
-
e.value === r ?
|
|
1828
|
-
i === g ?
|
|
1829
|
-
e.disabled ?
|
|
1826
|
+
H.option,
|
|
1827
|
+
e.value === r ? H.optionSelected : null,
|
|
1828
|
+
i === g ? H.optionActive : null,
|
|
1829
|
+
e.disabled ? H.optionDisabled : null
|
|
1830
1830
|
].filter(Boolean).join(" "),
|
|
1831
1831
|
onMouseEnter: () => !e.disabled && _(i),
|
|
1832
1832
|
onClick: () => O(e),
|
|
1833
1833
|
children: [/* @__PURE__ */ n("span", {
|
|
1834
|
-
className:
|
|
1834
|
+
className: H.optionText,
|
|
1835
1835
|
children: [/* @__PURE__ */ t("span", {
|
|
1836
|
-
className:
|
|
1836
|
+
className: H.optionLabel,
|
|
1837
1837
|
children: e.label
|
|
1838
1838
|
}), e.description && /* @__PURE__ */ t("span", {
|
|
1839
|
-
className:
|
|
1839
|
+
className: H.optionDesc,
|
|
1840
1840
|
children: e.description
|
|
1841
1841
|
})]
|
|
1842
|
-
}), e.value === r && /* @__PURE__ */ t(
|
|
1843
|
-
icon:
|
|
1842
|
+
}), e.value === r && /* @__PURE__ */ t(L, {
|
|
1843
|
+
icon: Re,
|
|
1844
1844
|
size: "md",
|
|
1845
1845
|
"aria-hidden": !0,
|
|
1846
|
-
className:
|
|
1846
|
+
className: H.checkIcon
|
|
1847
1847
|
})]
|
|
1848
1848
|
}, e.value))
|
|
1849
1849
|
})]
|
|
@@ -1872,8 +1872,8 @@ function Gn(e) {
|
|
|
1872
1872
|
let t = e.toString(), n = t.indexOf(".");
|
|
1873
1873
|
return n === -1 ? 0 : t.length - n - 1;
|
|
1874
1874
|
}
|
|
1875
|
-
function Kn({ value: e, onChange: r, min: i = 0, max: a = 100, step: o = 1, disabled: c = !1, marks: l, className: u, "aria-label":
|
|
1876
|
-
let g =
|
|
1875
|
+
function Kn({ value: e, onChange: r, min: i = 0, max: a = 100, step: o = 1, disabled: c = !1, marks: l, className: u, "aria-label": d, "aria-labelledby": p, "aria-describedby": m, ...h }) {
|
|
1876
|
+
let g = f(null), _ = Gn(o), v = (Un(e, i, a) - i) / (a - i) * 100, y = s((e) => {
|
|
1877
1877
|
if (!g.current) return;
|
|
1878
1878
|
let { left: t, width: n } = g.current.getBoundingClientRect();
|
|
1879
1879
|
r(Un(Wn((e - t) / n * (a - i) + i, i, o, _), i, a));
|
|
@@ -1935,7 +1935,7 @@ function Kn({ value: e, onChange: r, min: i = 0, max: a = 100, step: o = 1, disa
|
|
|
1935
1935
|
"aria-valuemin": i,
|
|
1936
1936
|
"aria-valuemax": a,
|
|
1937
1937
|
"aria-valuenow": e,
|
|
1938
|
-
"aria-label":
|
|
1938
|
+
"aria-label": d,
|
|
1939
1939
|
"aria-labelledby": p,
|
|
1940
1940
|
"aria-describedby": m,
|
|
1941
1941
|
"aria-disabled": c || void 0,
|
|
@@ -1984,7 +1984,7 @@ var qn = {
|
|
|
1984
1984
|
top: "_top_1tk9v_67",
|
|
1985
1985
|
left: "_left_1tk9v_75",
|
|
1986
1986
|
right: "_right_1tk9v_83"
|
|
1987
|
-
}, Jn = 8,
|
|
1987
|
+
}, Jn = 8, U = 10, Yn = 6;
|
|
1988
1988
|
function Xn(e, t, n) {
|
|
1989
1989
|
let r = window.innerWidth, i = window.innerHeight, a = [...new Set([
|
|
1990
1990
|
n,
|
|
@@ -2010,7 +2010,7 @@ function Xn(e, t, n) {
|
|
|
2010
2010
|
};
|
|
2011
2011
|
}
|
|
2012
2012
|
for (let n of a) {
|
|
2013
|
-
let { top: a, left: s } = o(n), c = s >=
|
|
2013
|
+
let { top: a, left: s } = o(n), c = s >= U && s + t.width <= r - U, l = a >= U && a + t.height <= i - U;
|
|
2014
2014
|
if (c && l) return {
|
|
2015
2015
|
top: a,
|
|
2016
2016
|
left: s,
|
|
@@ -2019,9 +2019,9 @@ function Xn(e, t, n) {
|
|
|
2019
2019
|
};
|
|
2020
2020
|
}
|
|
2021
2021
|
for (let n of a) {
|
|
2022
|
-
let { top: a, left: s } = o(n), c = a >=
|
|
2022
|
+
let { top: a, left: s } = o(n), c = a >= U && a + t.height <= i - U, l = s >= U && s + t.width <= r - U;
|
|
2023
2023
|
if ((n === "top" || n === "bottom") && c) {
|
|
2024
|
-
let i = Math.max(
|
|
2024
|
+
let i = Math.max(U, Math.min(s, r - t.width - U)), o = e.left + e.width / 2 - i;
|
|
2025
2025
|
return {
|
|
2026
2026
|
top: a,
|
|
2027
2027
|
left: i,
|
|
@@ -2030,7 +2030,7 @@ function Xn(e, t, n) {
|
|
|
2030
2030
|
};
|
|
2031
2031
|
}
|
|
2032
2032
|
if ((n === "left" || n === "right") && l) {
|
|
2033
|
-
let r = Math.max(
|
|
2033
|
+
let r = Math.max(U, Math.min(a, i - t.height - U)), o = e.top + e.height / 2 - r;
|
|
2034
2034
|
return {
|
|
2035
2035
|
top: r,
|
|
2036
2036
|
left: s,
|
|
@@ -2039,7 +2039,7 @@ function Xn(e, t, n) {
|
|
|
2039
2039
|
};
|
|
2040
2040
|
}
|
|
2041
2041
|
}
|
|
2042
|
-
let s = e.bottom + Jn, c = e.left + e.width / 2 - t.width / 2, l = Math.max(
|
|
2042
|
+
let s = e.bottom + Jn, c = e.left + e.width / 2 - t.width / 2, l = Math.max(U, Math.min(s, i - t.height - U)), u = Math.max(U, Math.min(c, r - t.width - U)), d = e.left + e.width / 2 - u;
|
|
2043
2043
|
return {
|
|
2044
2044
|
top: l,
|
|
2045
2045
|
left: u,
|
|
@@ -2047,20 +2047,20 @@ function Xn(e, t, n) {
|
|
|
2047
2047
|
arrowOffset: Math.max(Yn + 4, Math.min(d, t.width - Yn - 4))
|
|
2048
2048
|
};
|
|
2049
2049
|
}
|
|
2050
|
-
function Zn({ content: r, placement: a = "bottom", open: o, onClose: c, onOpenChange:
|
|
2051
|
-
let g = o !== void 0, [_, v] =
|
|
2052
|
-
g ? c?.() : v(!1),
|
|
2050
|
+
function Zn({ content: r, placement: a = "bottom", open: o, onClose: c, onOpenChange: d, children: h }) {
|
|
2051
|
+
let g = o !== void 0, [_, v] = p(!1), y = g ? o : _, [b, x] = p(null), S = u(), C = u(), w = f(null), T = f(null), E = f(null), D = s(() => {
|
|
2052
|
+
g ? c?.() : v(!1), d?.(!1);
|
|
2053
2053
|
}, [
|
|
2054
2054
|
g,
|
|
2055
2055
|
c,
|
|
2056
|
-
|
|
2056
|
+
d
|
|
2057
2057
|
]), O = s(() => {
|
|
2058
|
-
y ? D() : (g || v(!0),
|
|
2058
|
+
y ? D() : (g || v(!0), d?.(!0));
|
|
2059
2059
|
}, [
|
|
2060
2060
|
y,
|
|
2061
2061
|
D,
|
|
2062
2062
|
g,
|
|
2063
|
-
|
|
2063
|
+
d
|
|
2064
2064
|
]), k = s(() => {
|
|
2065
2065
|
!w.current || !T.current || x(Xn(w.current.getBoundingClientRect(), T.current.getBoundingClientRect(), a));
|
|
2066
2066
|
}, [a]);
|
|
@@ -2130,7 +2130,7 @@ function Zn({ content: r, placement: a = "bottom", open: o, onClose: c, onOpenCh
|
|
|
2130
2130
|
}
|
|
2131
2131
|
}), r]
|
|
2132
2132
|
});
|
|
2133
|
-
return /* @__PURE__ */ n(e, { children: [j, y && (typeof document < "u" ?
|
|
2133
|
+
return /* @__PURE__ */ n(e, { children: [j, y && (typeof document < "u" ? m(M, document.body) : M)] });
|
|
2134
2134
|
}
|
|
2135
2135
|
var Qn = { clamp: "_clamp_1j51b_6" };
|
|
2136
2136
|
//#endregion
|
|
@@ -2146,7 +2146,7 @@ function $n({ maximumSize: e = 600, children: n, className: r, style: i, ...a })
|
|
|
2146
2146
|
children: n
|
|
2147
2147
|
});
|
|
2148
2148
|
}
|
|
2149
|
-
var
|
|
2149
|
+
var W = {
|
|
2150
2150
|
root: "_root_yaj3r_3",
|
|
2151
2151
|
expanded: "_expanded_yaj3r_12",
|
|
2152
2152
|
sidebar: "_sidebar_yaj3r_16",
|
|
@@ -2162,8 +2162,8 @@ function er({ sidebar: e, content: r, showContent: i = !1, minSidebarWidth: a =
|
|
|
2162
2162
|
let { isNarrow: d } = We(), f = `clamp(${a}px, ${s * 100}%, ${o}px)`;
|
|
2163
2163
|
return /* @__PURE__ */ n("div", {
|
|
2164
2164
|
className: [
|
|
2165
|
-
|
|
2166
|
-
d ?
|
|
2165
|
+
W.root,
|
|
2166
|
+
d ? W.collapsed : W.expanded,
|
|
2167
2167
|
c
|
|
2168
2168
|
].filter(Boolean).join(" "),
|
|
2169
2169
|
style: {
|
|
@@ -2173,23 +2173,23 @@ function er({ sidebar: e, content: r, showContent: i = !1, minSidebarWidth: a =
|
|
|
2173
2173
|
...u,
|
|
2174
2174
|
children: [
|
|
2175
2175
|
/* @__PURE__ */ t("div", {
|
|
2176
|
-
className: [
|
|
2176
|
+
className: [W.sidebar, d && i ? W.paneHidden : W.paneVisible].filter(Boolean).join(" "),
|
|
2177
2177
|
"aria-hidden": d && i,
|
|
2178
2178
|
children: e
|
|
2179
2179
|
}),
|
|
2180
2180
|
!d && /* @__PURE__ */ t("div", {
|
|
2181
|
-
className:
|
|
2181
|
+
className: W.divider,
|
|
2182
2182
|
"aria-hidden": "true"
|
|
2183
2183
|
}),
|
|
2184
2184
|
/* @__PURE__ */ t("div", {
|
|
2185
|
-
className: [
|
|
2185
|
+
className: [W.contentPane, d && !i ? W.paneHidden : W.paneVisible].filter(Boolean).join(" "),
|
|
2186
2186
|
"aria-hidden": d && !i,
|
|
2187
2187
|
children: r
|
|
2188
2188
|
})
|
|
2189
2189
|
]
|
|
2190
2190
|
});
|
|
2191
2191
|
}
|
|
2192
|
-
var
|
|
2192
|
+
var G = {
|
|
2193
2193
|
root: "_root_1xl2w_3",
|
|
2194
2194
|
wide: "_wide_1xl2w_13",
|
|
2195
2195
|
end: "_end_1xl2w_17",
|
|
@@ -2204,8 +2204,8 @@ var W = {
|
|
|
2204
2204
|
};
|
|
2205
2205
|
//#endregion
|
|
2206
2206
|
//#region src/components/OverlaySplitView/OverlaySplitView.tsx
|
|
2207
|
-
function tr({ sidebar: e, content: r, showSidebar: i = !1, onClose: a, sidebarPosition: o = "start", minSidebarWidth: s = 180, maxSidebarWidth: c = 280, sidebarWidthFraction: u = .25, className:
|
|
2208
|
-
let { isNarrow: h } = We(), g =
|
|
2207
|
+
function tr({ sidebar: e, content: r, showSidebar: i = !1, onClose: a, sidebarPosition: o = "start", minSidebarWidth: s = 180, maxSidebarWidth: c = 280, sidebarWidthFraction: u = .25, className: d, style: p, ...m }) {
|
|
2208
|
+
let { isNarrow: h } = We(), g = f(null), _ = `clamp(${s}px, ${u * 100}%, ${c}px)`;
|
|
2209
2209
|
l(() => {
|
|
2210
2210
|
if (!h || !i) return;
|
|
2211
2211
|
let e = (e) => {
|
|
@@ -2222,10 +2222,10 @@ function tr({ sidebar: e, content: r, showSidebar: i = !1, onClose: a, sidebarPo
|
|
|
2222
2222
|
let v = o === "end";
|
|
2223
2223
|
return /* @__PURE__ */ n("div", {
|
|
2224
2224
|
className: [
|
|
2225
|
-
|
|
2226
|
-
h ?
|
|
2227
|
-
v ?
|
|
2228
|
-
|
|
2225
|
+
G.root,
|
|
2226
|
+
h ? G.narrow : G.wide,
|
|
2227
|
+
v ? G.end : G.start,
|
|
2228
|
+
d
|
|
2229
2229
|
].filter(Boolean).join(" "),
|
|
2230
2230
|
style: {
|
|
2231
2231
|
"--sidebar-width": _,
|
|
@@ -2234,18 +2234,18 @@ function tr({ sidebar: e, content: r, showSidebar: i = !1, onClose: a, sidebarPo
|
|
|
2234
2234
|
...m,
|
|
2235
2235
|
children: [
|
|
2236
2236
|
h && /* @__PURE__ */ t("div", {
|
|
2237
|
-
className: [
|
|
2237
|
+
className: [G.backdrop, i ? G.backdropVisible : null].filter(Boolean).join(" "),
|
|
2238
2238
|
"aria-hidden": "true",
|
|
2239
2239
|
onClick: a
|
|
2240
2240
|
}),
|
|
2241
2241
|
/* @__PURE__ */ t("div", {
|
|
2242
2242
|
ref: g,
|
|
2243
|
-
className: [
|
|
2243
|
+
className: [G.sidebar, h ? i ? G.sidebarOpen : G.sidebarClosed : null].filter(Boolean).join(" "),
|
|
2244
2244
|
"aria-hidden": h && !i,
|
|
2245
2245
|
children: e
|
|
2246
2246
|
}),
|
|
2247
2247
|
/* @__PURE__ */ t("div", {
|
|
2248
|
-
className:
|
|
2248
|
+
className: G.content,
|
|
2249
2249
|
children: r
|
|
2250
2250
|
})
|
|
2251
2251
|
]
|
|
@@ -2297,7 +2297,7 @@ function cr() {
|
|
|
2297
2297
|
return e;
|
|
2298
2298
|
}
|
|
2299
2299
|
function lr({ value: e, onValueChange: n, "aria-label": r = "Options", children: i, className: a, ...o }) {
|
|
2300
|
-
let s =
|
|
2300
|
+
let s = f(null);
|
|
2301
2301
|
function c(e) {
|
|
2302
2302
|
let t = Array.from(s.current?.querySelectorAll("[role=radio]:not(:disabled)") ?? []), n = t.findIndex((e) => e === document.activeElement);
|
|
2303
2303
|
if (n === -1) return;
|
|
@@ -2345,7 +2345,7 @@ function ur({ name: e, label: r, icon: i, disabled: a, className: o, ...s }) {
|
|
|
2345
2345
|
...s,
|
|
2346
2346
|
children: [i && /* @__PURE__ */ t("span", {
|
|
2347
2347
|
className: or.itemIcon,
|
|
2348
|
-
children: /* @__PURE__ */ t(
|
|
2348
|
+
children: /* @__PURE__ */ t(L, {
|
|
2349
2349
|
icon: i,
|
|
2350
2350
|
size: "md",
|
|
2351
2351
|
"aria-hidden": !0
|
|
@@ -2420,7 +2420,7 @@ function hr({ label: r, icon: i, onRemove: a, selectable: o = !1, selected: s =
|
|
|
2420
2420
|
].filter(Boolean).join(" "), m = /* @__PURE__ */ n(e, { children: [
|
|
2421
2421
|
i && /* @__PURE__ */ t("span", {
|
|
2422
2422
|
className: mr.icon,
|
|
2423
|
-
children: /* @__PURE__ */ t(
|
|
2423
|
+
children: /* @__PURE__ */ t(L, {
|
|
2424
2424
|
icon: i,
|
|
2425
2425
|
size: "sm",
|
|
2426
2426
|
"aria-hidden": !0
|
|
@@ -2439,8 +2439,8 @@ function hr({ label: r, icon: i, onRemove: a, selectable: o = !1, selected: s =
|
|
|
2439
2439
|
e.stopPropagation(), a();
|
|
2440
2440
|
},
|
|
2441
2441
|
tabIndex: l ? -1 : 0,
|
|
2442
|
-
children: /* @__PURE__ */ t(
|
|
2443
|
-
icon:
|
|
2442
|
+
children: /* @__PURE__ */ t(L, {
|
|
2443
|
+
icon: Pe,
|
|
2444
2444
|
size: "sm",
|
|
2445
2445
|
"aria-hidden": !0
|
|
2446
2446
|
})
|
|
@@ -2464,7 +2464,7 @@ function hr({ label: r, icon: i, onRemove: a, selectable: o = !1, selected: s =
|
|
|
2464
2464
|
}
|
|
2465
2465
|
//#endregion
|
|
2466
2466
|
//#region src/components/ShortcutsDialog/ShortcutsDialog.module.css
|
|
2467
|
-
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",
|
|
2467
|
+
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", K = {
|
|
2468
2468
|
backdrop: gr,
|
|
2469
2469
|
"backdrop-in": "_backdrop-in_zvuhh_1",
|
|
2470
2470
|
dialog: _r,
|
|
@@ -2488,9 +2488,9 @@ var gr = "_backdrop_zvuhh_3", _r = "_dialog_zvuhh_26", vr = "_header_zvuhh_59",
|
|
|
2488
2488
|
description: Pr
|
|
2489
2489
|
}, Fr = "button:not([disabled]), [href], input:not([disabled]), [tabindex]:not([tabindex=\"-1\"])";
|
|
2490
2490
|
function Ir({ open: e, onClose: r, title: i = "Keyboard Shortcuts", sections: a }) {
|
|
2491
|
-
let [o, c] =
|
|
2491
|
+
let [o, c] = p(""), u = f(null), d = f(null), h = f(null), g = f(`shortcuts-title-${Math.random().toString(36).slice(2, 9)}`);
|
|
2492
2492
|
l(() => {
|
|
2493
|
-
e ? (h.current = document.activeElement, requestAnimationFrame(() =>
|
|
2493
|
+
e ? (h.current = document.activeElement, requestAnimationFrame(() => d.current?.focus())) : (c(""), h.current?.focus());
|
|
2494
2494
|
}, [e]);
|
|
2495
2495
|
let _ = s((e) => {
|
|
2496
2496
|
if (e.key === "Escape") {
|
|
@@ -2508,7 +2508,7 @@ function Ir({ open: e, onClose: r, title: i = "Keyboard Shortcuts", sections: a
|
|
|
2508
2508
|
...e,
|
|
2509
2509
|
shortcuts: e.shortcuts.filter(({ description: e, keys: t }) => !v || e.toLowerCase().includes(v) || t.some((e) => e.toLowerCase().includes(v)))
|
|
2510
2510
|
})).filter((e) => e.shortcuts.length > 0), b = /* @__PURE__ */ t("div", {
|
|
2511
|
-
className:
|
|
2511
|
+
className: K.backdrop,
|
|
2512
2512
|
onClick: r,
|
|
2513
2513
|
"aria-hidden": "true",
|
|
2514
2514
|
children: /* @__PURE__ */ n("div", {
|
|
@@ -2516,36 +2516,36 @@ function Ir({ open: e, onClose: r, title: i = "Keyboard Shortcuts", sections: a
|
|
|
2516
2516
|
role: "dialog",
|
|
2517
2517
|
"aria-modal": "true",
|
|
2518
2518
|
"aria-labelledby": g.current,
|
|
2519
|
-
className:
|
|
2519
|
+
className: K.dialog,
|
|
2520
2520
|
onKeyDown: _,
|
|
2521
2521
|
onClick: (e) => e.stopPropagation(),
|
|
2522
2522
|
children: [
|
|
2523
2523
|
/* @__PURE__ */ n("div", {
|
|
2524
|
-
className:
|
|
2524
|
+
className: K.header,
|
|
2525
2525
|
children: [/* @__PURE__ */ t("span", {
|
|
2526
2526
|
id: g.current,
|
|
2527
|
-
className:
|
|
2527
|
+
className: K.title,
|
|
2528
2528
|
children: i
|
|
2529
2529
|
}), /* @__PURE__ */ t("button", {
|
|
2530
2530
|
type: "button",
|
|
2531
|
-
className:
|
|
2531
|
+
className: K.closeBtn,
|
|
2532
2532
|
"aria-label": "Close",
|
|
2533
2533
|
onClick: r,
|
|
2534
2534
|
children: "×"
|
|
2535
2535
|
})]
|
|
2536
2536
|
}),
|
|
2537
2537
|
/* @__PURE__ */ n("div", {
|
|
2538
|
-
className:
|
|
2538
|
+
className: K.searchRow,
|
|
2539
2539
|
children: [
|
|
2540
2540
|
/* @__PURE__ */ t("span", {
|
|
2541
|
-
className:
|
|
2541
|
+
className: K.searchIcon,
|
|
2542
2542
|
"aria-hidden": "true",
|
|
2543
2543
|
children: "⌕"
|
|
2544
2544
|
}),
|
|
2545
2545
|
/* @__PURE__ */ t("input", {
|
|
2546
|
-
ref:
|
|
2546
|
+
ref: d,
|
|
2547
2547
|
type: "search",
|
|
2548
|
-
className:
|
|
2548
|
+
className: K.searchInput,
|
|
2549
2549
|
placeholder: "Search shortcuts…",
|
|
2550
2550
|
value: o,
|
|
2551
2551
|
onChange: (e) => c(e.target.value),
|
|
@@ -2553,48 +2553,48 @@ function Ir({ open: e, onClose: r, title: i = "Keyboard Shortcuts", sections: a
|
|
|
2553
2553
|
}),
|
|
2554
2554
|
o && /* @__PURE__ */ t("button", {
|
|
2555
2555
|
type: "button",
|
|
2556
|
-
className:
|
|
2556
|
+
className: K.searchClear,
|
|
2557
2557
|
"aria-label": "Clear search",
|
|
2558
2558
|
onClick: () => {
|
|
2559
|
-
c(""),
|
|
2559
|
+
c(""), d.current?.focus();
|
|
2560
2560
|
},
|
|
2561
2561
|
children: "×"
|
|
2562
2562
|
})
|
|
2563
2563
|
]
|
|
2564
2564
|
}),
|
|
2565
2565
|
/* @__PURE__ */ t("div", {
|
|
2566
|
-
className:
|
|
2566
|
+
className: K.body,
|
|
2567
2567
|
role: "list",
|
|
2568
2568
|
children: y.length === 0 ? /* @__PURE__ */ n("p", {
|
|
2569
|
-
className:
|
|
2569
|
+
className: K.empty,
|
|
2570
2570
|
children: [
|
|
2571
2571
|
"No shortcuts match \"",
|
|
2572
2572
|
o,
|
|
2573
2573
|
"\""
|
|
2574
2574
|
]
|
|
2575
2575
|
}) : y.map((e) => /* @__PURE__ */ n("section", {
|
|
2576
|
-
className:
|
|
2576
|
+
className: K.section,
|
|
2577
2577
|
children: [/* @__PURE__ */ t("h3", {
|
|
2578
|
-
className:
|
|
2578
|
+
className: K.sectionTitle,
|
|
2579
2579
|
children: e.title
|
|
2580
2580
|
}), /* @__PURE__ */ t("ul", {
|
|
2581
|
-
className:
|
|
2581
|
+
className: K.list,
|
|
2582
2582
|
children: e.shortcuts.map((e) => /* @__PURE__ */ n("li", {
|
|
2583
|
-
className:
|
|
2583
|
+
className: K.row,
|
|
2584
2584
|
role: "listitem",
|
|
2585
2585
|
children: [/* @__PURE__ */ t("span", {
|
|
2586
|
-
className:
|
|
2586
|
+
className: K.keys,
|
|
2587
2587
|
"aria-label": e.keys.join(" + "),
|
|
2588
2588
|
children: e.keys.map((r, i) => /* @__PURE__ */ n("span", {
|
|
2589
|
-
className:
|
|
2589
|
+
className: K.keyCap,
|
|
2590
2590
|
children: [/* @__PURE__ */ t("kbd", { children: r }), i < e.keys.length - 1 && /* @__PURE__ */ t("span", {
|
|
2591
|
-
className:
|
|
2591
|
+
className: K.plus,
|
|
2592
2592
|
"aria-hidden": "true",
|
|
2593
2593
|
children: "+"
|
|
2594
2594
|
})]
|
|
2595
2595
|
}, i))
|
|
2596
2596
|
}), /* @__PURE__ */ t("span", {
|
|
2597
|
-
className:
|
|
2597
|
+
className: K.description,
|
|
2598
2598
|
children: e.description
|
|
2599
2599
|
})]
|
|
2600
2600
|
}, e.description))
|
|
@@ -2604,7 +2604,7 @@ function Ir({ open: e, onClose: r, title: i = "Keyboard Shortcuts", sections: a
|
|
|
2604
2604
|
]
|
|
2605
2605
|
})
|
|
2606
2606
|
});
|
|
2607
|
-
return typeof document > "u" ? b :
|
|
2607
|
+
return typeof document > "u" ? b : m(b, document.body);
|
|
2608
2608
|
}
|
|
2609
2609
|
var Lr = {
|
|
2610
2610
|
sidebar: "_sidebar_kmj4b_3",
|
|
@@ -2623,7 +2623,7 @@ function zr() {
|
|
|
2623
2623
|
return e;
|
|
2624
2624
|
}
|
|
2625
2625
|
function Br({ value: e, onValueChange: n, "aria-label": r = "Views", children: i, className: a, ...o }) {
|
|
2626
|
-
let s =
|
|
2626
|
+
let s = f(null);
|
|
2627
2627
|
function c(e) {
|
|
2628
2628
|
let t = Array.from(s.current?.querySelectorAll("[role=radio]:not(:disabled)") ?? []), n = t.findIndex((e) => e === document.activeElement);
|
|
2629
2629
|
if (n === -1) return;
|
|
@@ -2676,7 +2676,7 @@ function Vr({ name: e, label: r, icon: i, count: a, suffix: o, disabled: s, clas
|
|
|
2676
2676
|
children: [
|
|
2677
2677
|
i && /* @__PURE__ */ t("span", {
|
|
2678
2678
|
className: Lr.itemIcon,
|
|
2679
|
-
children: /* @__PURE__ */ t(
|
|
2679
|
+
children: /* @__PURE__ */ t(L, {
|
|
2680
2680
|
icon: i,
|
|
2681
2681
|
size: "md",
|
|
2682
2682
|
"aria-hidden": !0
|
|
@@ -2700,7 +2700,7 @@ function Vr({ name: e, label: r, icon: i, count: a, suffix: o, disabled: s, clas
|
|
|
2700
2700
|
//#endregion
|
|
2701
2701
|
//#region src/components/BreakpointBin/BreakpointBin.tsx
|
|
2702
2702
|
function Hr({ breakpoints: e, children: n, className: r, style: i, ...a }) {
|
|
2703
|
-
let o =
|
|
2703
|
+
let o = f(null), [s, c] = p({
|
|
2704
2704
|
activeBreakpoint: null,
|
|
2705
2705
|
width: 0
|
|
2706
2706
|
});
|
|
@@ -2778,8 +2778,8 @@ var Gr = {
|
|
|
2778
2778
|
};
|
|
2779
2779
|
//#endregion
|
|
2780
2780
|
//#region src/components/SplitButton/SplitButton.tsx
|
|
2781
|
-
function Kr({ label: r, variant: i = "default", dropdownContent: a, dropdownLabel: o = "More options", disabled: c = !1, onClick: u, className:
|
|
2782
|
-
let [g, _] =
|
|
2781
|
+
function Kr({ label: r, variant: i = "default", dropdownContent: a, dropdownLabel: o = "More options", disabled: c = !1, onClick: u, className: d, ...h }) {
|
|
2782
|
+
let [g, _] = p(!1), [v, y] = p({}), b = f(null), x = f(null), S = f(null), C = s(() => _(!1), []), w = s(() => {
|
|
2783
2783
|
if (!x.current || !S.current) return;
|
|
2784
2784
|
let e = x.current.getBoundingClientRect(), t = S.current.getBoundingClientRect(), n = window.innerWidth, r = e.right - t.width;
|
|
2785
2785
|
r < 8 && (r = 8), r + t.width > n - 8 && (r = n - t.width - 8), y({
|
|
@@ -2810,7 +2810,7 @@ function Kr({ label: r, variant: i = "default", dropdownContent: a, dropdownLabe
|
|
|
2810
2810
|
}, E = [
|
|
2811
2811
|
Gr.container,
|
|
2812
2812
|
Gr[i],
|
|
2813
|
-
|
|
2813
|
+
d
|
|
2814
2814
|
].filter(Boolean).join(" "), D = /* @__PURE__ */ t("div", {
|
|
2815
2815
|
ref: S,
|
|
2816
2816
|
role: "dialog",
|
|
@@ -2871,7 +2871,7 @@ function Kr({ label: r, variant: i = "default", dropdownContent: a, dropdownLabe
|
|
|
2871
2871
|
})
|
|
2872
2872
|
})
|
|
2873
2873
|
]
|
|
2874
|
-
}), g && (typeof document < "u" ?
|
|
2874
|
+
}), g && (typeof document < "u" ? m(D, document.body) : D)] });
|
|
2875
2875
|
}
|
|
2876
2876
|
var qr = {
|
|
2877
2877
|
toolbar: "_toolbar_1avgl_2",
|
|
@@ -2922,7 +2922,7 @@ function $r({ children: e, className: n, ...r }) {
|
|
|
2922
2922
|
children: e
|
|
2923
2923
|
});
|
|
2924
2924
|
}
|
|
2925
|
-
var
|
|
2925
|
+
var q = {
|
|
2926
2926
|
expanderRow: "_expanderRow_1wh8c_3",
|
|
2927
2927
|
header: "_header_1wh8c_11",
|
|
2928
2928
|
leading: "_leading_1wh8c_55",
|
|
@@ -2940,48 +2940,48 @@ var K = {
|
|
|
2940
2940
|
};
|
|
2941
2941
|
//#endregion
|
|
2942
2942
|
//#region src/components/ExpanderRow/ExpanderRow.tsx
|
|
2943
|
-
function ei({ title: e, subtitle: i, leading: a, trailing: o, children: s, expanded: c, defaultExpanded: l = !1, onExpandedChange: d, className:
|
|
2944
|
-
let h = c !== void 0, [g, _] =
|
|
2943
|
+
function ei({ title: e, subtitle: i, leading: a, trailing: o, children: s, expanded: c, defaultExpanded: l = !1, onExpandedChange: d, className: f, ...m }) {
|
|
2944
|
+
let h = c !== void 0, [g, _] = p(l), v = h ? c : g, y = u(), b = u(), x = () => {
|
|
2945
2945
|
let e = !v;
|
|
2946
2946
|
h || _(e), d?.(e);
|
|
2947
2947
|
}, S = r.toArray(s).filter(Boolean);
|
|
2948
2948
|
return /* @__PURE__ */ n("div", {
|
|
2949
2949
|
className: [
|
|
2950
|
-
|
|
2951
|
-
v ?
|
|
2952
|
-
|
|
2950
|
+
q.expanderRow,
|
|
2951
|
+
v ? q.expanded : null,
|
|
2952
|
+
f
|
|
2953
2953
|
].filter(Boolean).join(" "),
|
|
2954
2954
|
...m,
|
|
2955
2955
|
children: [/* @__PURE__ */ n("button", {
|
|
2956
2956
|
id: b,
|
|
2957
|
-
className:
|
|
2957
|
+
className: q.header,
|
|
2958
2958
|
"aria-expanded": v,
|
|
2959
2959
|
"aria-controls": y,
|
|
2960
2960
|
onClick: x,
|
|
2961
2961
|
children: [
|
|
2962
2962
|
a && /* @__PURE__ */ t("span", {
|
|
2963
|
-
className:
|
|
2963
|
+
className: q.leading,
|
|
2964
2964
|
children: a
|
|
2965
2965
|
}),
|
|
2966
2966
|
/* @__PURE__ */ n("span", {
|
|
2967
|
-
className:
|
|
2967
|
+
className: q.content,
|
|
2968
2968
|
children: [/* @__PURE__ */ t("span", {
|
|
2969
|
-
className:
|
|
2969
|
+
className: q.title,
|
|
2970
2970
|
children: e
|
|
2971
2971
|
}), i && /* @__PURE__ */ t("span", {
|
|
2972
|
-
className:
|
|
2972
|
+
className: q.subtitle,
|
|
2973
2973
|
children: i
|
|
2974
2974
|
})]
|
|
2975
2975
|
}),
|
|
2976
2976
|
o && /* @__PURE__ */ t("span", {
|
|
2977
|
-
className:
|
|
2977
|
+
className: q.trailing,
|
|
2978
2978
|
children: o
|
|
2979
2979
|
}),
|
|
2980
2980
|
/* @__PURE__ */ t("span", {
|
|
2981
|
-
className: [
|
|
2981
|
+
className: [q.chevronWrap, v ? q.chevronOpen : null].filter(Boolean).join(" "),
|
|
2982
2982
|
"aria-hidden": "true",
|
|
2983
2983
|
children: /* @__PURE__ */ t("svg", {
|
|
2984
|
-
className:
|
|
2984
|
+
className: q.chevron,
|
|
2985
2985
|
width: "16",
|
|
2986
2986
|
height: "16",
|
|
2987
2987
|
viewBox: "0 0 16 16",
|
|
@@ -3001,12 +3001,12 @@ function ei({ title: e, subtitle: i, leading: a, trailing: o, children: s, expan
|
|
|
3001
3001
|
id: y,
|
|
3002
3002
|
role: "region",
|
|
3003
3003
|
"aria-labelledby": b,
|
|
3004
|
-
className:
|
|
3004
|
+
className: q.panel,
|
|
3005
3005
|
children: /* @__PURE__ */ t("div", {
|
|
3006
|
-
className:
|
|
3006
|
+
className: q.panelInner,
|
|
3007
3007
|
children: S.map((e, r) => /* @__PURE__ */ n("div", {
|
|
3008
|
-
className:
|
|
3009
|
-
children: [/* @__PURE__ */ t(
|
|
3008
|
+
className: q.childItem,
|
|
3009
|
+
children: [/* @__PURE__ */ t(ie, { "aria-hidden": "true" }), e]
|
|
3010
3010
|
}, r))
|
|
3011
3011
|
})
|
|
3012
3012
|
})]
|
|
@@ -3029,7 +3029,7 @@ function ri() {
|
|
|
3029
3029
|
return e;
|
|
3030
3030
|
}
|
|
3031
3031
|
function ii({ value: e, onValueChange: n, variant: r = "default", "aria-label": i = "View switcher", children: a, className: o, ...s }) {
|
|
3032
|
-
let c =
|
|
3032
|
+
let c = f(null);
|
|
3033
3033
|
function l(e) {
|
|
3034
3034
|
let t = Array.from(c.current?.querySelectorAll("[role=radio]:not(:disabled)") ?? []), n = t.findIndex((e) => e === document.activeElement);
|
|
3035
3035
|
if (n === -1) return;
|
|
@@ -3081,7 +3081,7 @@ function ai({ name: e, label: r, icon: i, disabled: a, className: o, ...s }) {
|
|
|
3081
3081
|
...s,
|
|
3082
3082
|
children: [i && /* @__PURE__ */ t("span", {
|
|
3083
3083
|
className: ti.itemIcon,
|
|
3084
|
-
children: /* @__PURE__ */ t(
|
|
3084
|
+
children: /* @__PURE__ */ t(L, {
|
|
3085
3085
|
icon: i,
|
|
3086
3086
|
size: "md",
|
|
3087
3087
|
"aria-hidden": !0
|
|
@@ -3105,8 +3105,8 @@ var oi = {
|
|
|
3105
3105
|
};
|
|
3106
3106
|
//#endregion
|
|
3107
3107
|
//#region src/components/SwitchRow/SwitchRow.tsx
|
|
3108
|
-
function si({ title: e, subtitle: r, leading: i, checked: a, defaultChecked: o = !1, onCheckedChange: s, disabled: c = !1, className: l, onClick: d, ...
|
|
3109
|
-
let m = a !== void 0, [h, g] =
|
|
3108
|
+
function si({ title: e, subtitle: r, leading: i, checked: a, defaultChecked: o = !1, onCheckedChange: s, disabled: c = !1, className: l, onClick: d, ...f }) {
|
|
3109
|
+
let m = a !== void 0, [h, g] = p(o), _ = m ? a : h, v = u(), y = (e) => {
|
|
3110
3110
|
let t = !_;
|
|
3111
3111
|
m || g(t), s?.(t), d?.(e);
|
|
3112
3112
|
};
|
|
@@ -3121,7 +3121,7 @@ function si({ title: e, subtitle: r, leading: i, checked: a, defaultChecked: o =
|
|
|
3121
3121
|
l
|
|
3122
3122
|
].filter(Boolean).join(" "),
|
|
3123
3123
|
onClick: y,
|
|
3124
|
-
...
|
|
3124
|
+
...f,
|
|
3125
3125
|
children: [
|
|
3126
3126
|
i && /* @__PURE__ */ t("span", {
|
|
3127
3127
|
className: oi.leading,
|
|
@@ -3146,7 +3146,7 @@ function si({ title: e, subtitle: r, leading: i, checked: a, defaultChecked: o =
|
|
|
3146
3146
|
]
|
|
3147
3147
|
});
|
|
3148
3148
|
}
|
|
3149
|
-
var
|
|
3149
|
+
var J = {
|
|
3150
3150
|
row: "_row_1dije_3",
|
|
3151
3151
|
disabled: "_disabled_1dije_41",
|
|
3152
3152
|
checkboxWrap: "_checkboxWrap_1dije_49",
|
|
@@ -3160,8 +3160,8 @@ var q = {
|
|
|
3160
3160
|
};
|
|
3161
3161
|
//#endregion
|
|
3162
3162
|
//#region src/components/CheckRow/CheckRow.tsx
|
|
3163
|
-
function ci({ title: e, subtitle: r, leading: i, checked: a, defaultChecked: o = !1, onCheckedChange: s, disabled: c = !1, className: l, onClick: d, ...
|
|
3164
|
-
let m = a !== void 0, [h, g] =
|
|
3163
|
+
function ci({ title: e, subtitle: r, leading: i, checked: a, defaultChecked: o = !1, onCheckedChange: s, disabled: c = !1, className: l, onClick: d, ...f }) {
|
|
3164
|
+
let m = a !== void 0, [h, g] = p(o), _ = m ? a : h, v = u(), y = (e) => {
|
|
3165
3165
|
let t = !_;
|
|
3166
3166
|
m || g(t), s?.(t), d?.(e);
|
|
3167
3167
|
};
|
|
@@ -3171,20 +3171,20 @@ function ci({ title: e, subtitle: r, leading: i, checked: a, defaultChecked: o =
|
|
|
3171
3171
|
"aria-labelledby": v,
|
|
3172
3172
|
disabled: c,
|
|
3173
3173
|
className: [
|
|
3174
|
-
|
|
3175
|
-
c ?
|
|
3174
|
+
J.row,
|
|
3175
|
+
c ? J.disabled : null,
|
|
3176
3176
|
l
|
|
3177
3177
|
].filter(Boolean).join(" "),
|
|
3178
3178
|
onClick: y,
|
|
3179
|
-
...
|
|
3179
|
+
...f,
|
|
3180
3180
|
children: [
|
|
3181
3181
|
/* @__PURE__ */ t("span", {
|
|
3182
|
-
className:
|
|
3182
|
+
className: J.checkboxWrap,
|
|
3183
3183
|
"aria-hidden": "true",
|
|
3184
3184
|
children: /* @__PURE__ */ t("span", {
|
|
3185
|
-
className: [
|
|
3185
|
+
className: [J.checkbox, _ ? J.checkboxChecked : null].filter(Boolean).join(" "),
|
|
3186
3186
|
children: _ && /* @__PURE__ */ t("svg", {
|
|
3187
|
-
className:
|
|
3187
|
+
className: J.checkmark,
|
|
3188
3188
|
width: "12",
|
|
3189
3189
|
height: "12",
|
|
3190
3190
|
viewBox: "0 0 12 12",
|
|
@@ -3201,17 +3201,17 @@ function ci({ title: e, subtitle: r, leading: i, checked: a, defaultChecked: o =
|
|
|
3201
3201
|
})
|
|
3202
3202
|
}),
|
|
3203
3203
|
i && /* @__PURE__ */ t("span", {
|
|
3204
|
-
className:
|
|
3204
|
+
className: J.leading,
|
|
3205
3205
|
children: i
|
|
3206
3206
|
}),
|
|
3207
3207
|
/* @__PURE__ */ n("span", {
|
|
3208
|
-
className:
|
|
3208
|
+
className: J.content,
|
|
3209
3209
|
id: v,
|
|
3210
3210
|
children: [/* @__PURE__ */ t("span", {
|
|
3211
|
-
className:
|
|
3211
|
+
className: J.title,
|
|
3212
3212
|
children: e
|
|
3213
3213
|
}), r && /* @__PURE__ */ t("span", {
|
|
3214
|
-
className:
|
|
3214
|
+
className: J.subtitle,
|
|
3215
3215
|
children: r
|
|
3216
3216
|
})]
|
|
3217
3217
|
})
|
|
@@ -3220,7 +3220,7 @@ function ci({ title: e, subtitle: r, leading: i, checked: a, defaultChecked: o =
|
|
|
3220
3220
|
}
|
|
3221
3221
|
//#endregion
|
|
3222
3222
|
//#region src/components/ComboRow/ComboRow.module.css
|
|
3223
|
-
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",
|
|
3223
|
+
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", Y = {
|
|
3224
3224
|
row: li,
|
|
3225
3225
|
disabled: ui,
|
|
3226
3226
|
leading: di,
|
|
@@ -3248,8 +3248,8 @@ var li = "_row_46mn8_3", ui = "_disabled_46mn8_16", di = "_leading_46mn8_23", fi
|
|
|
3248
3248
|
};
|
|
3249
3249
|
//#endregion
|
|
3250
3250
|
//#region src/components/ComboRow/ComboRow.tsx
|
|
3251
|
-
function ji({ title: e, subtitle: r, leading: i, options: a, value: o, defaultValue: c, onValueChange:
|
|
3252
|
-
let _ = o !== void 0, [v, y] =
|
|
3251
|
+
function ji({ title: e, subtitle: r, leading: i, options: a, value: o, defaultValue: c, onValueChange: d, disabled: m = !1, className: h, ...g }) {
|
|
3252
|
+
let _ = o !== void 0, [v, y] = p(c), b = _ ? o : v, [x, S] = p(!1), [C, w] = p(-1), [T, E] = p(!1), D = u(), O = u(), k = f(null), A = f(null), j = a.find((e) => e.value === b), M = s(() => {
|
|
3253
3253
|
if (!k.current) return;
|
|
3254
3254
|
let e = k.current.getBoundingClientRect(), t = window.innerHeight - e.bottom, n = Math.min(a.length * 44 + 8, 260);
|
|
3255
3255
|
E(t < n && e.top > n);
|
|
@@ -3265,11 +3265,11 @@ function ji({ title: e, subtitle: r, leading: i, options: a, value: o, defaultVa
|
|
|
3265
3265
|
b
|
|
3266
3266
|
]), P = s(() => {
|
|
3267
3267
|
S(!1), w(-1), k.current?.focus();
|
|
3268
|
-
}, []),
|
|
3269
|
-
e.disabled || (_ || y(e.value),
|
|
3268
|
+
}, []), F = s((e) => {
|
|
3269
|
+
e.disabled || (_ || y(e.value), d?.(e.value), P());
|
|
3270
3270
|
}, [
|
|
3271
3271
|
_,
|
|
3272
|
-
|
|
3272
|
+
d,
|
|
3273
3273
|
P
|
|
3274
3274
|
]);
|
|
3275
3275
|
l(() => {
|
|
@@ -3281,7 +3281,7 @@ function ji({ title: e, subtitle: r, leading: i, options: a, value: o, defaultVa
|
|
|
3281
3281
|
};
|
|
3282
3282
|
return document.addEventListener("mousedown", e), () => document.removeEventListener("mousedown", e);
|
|
3283
3283
|
}, [x, P]);
|
|
3284
|
-
let
|
|
3284
|
+
let I = s((e) => {
|
|
3285
3285
|
switch (e.key) {
|
|
3286
3286
|
case "Enter":
|
|
3287
3287
|
case " ":
|
|
@@ -3296,7 +3296,7 @@ function ji({ title: e, subtitle: r, leading: i, options: a, value: o, defaultVa
|
|
|
3296
3296
|
N,
|
|
3297
3297
|
M,
|
|
3298
3298
|
a
|
|
3299
|
-
]),
|
|
3299
|
+
]), ee = s((e) => {
|
|
3300
3300
|
let t = a.map((e, t) => ({
|
|
3301
3301
|
o: e,
|
|
3302
3302
|
i: t
|
|
@@ -3322,7 +3322,7 @@ function ji({ title: e, subtitle: r, leading: i, options: a, value: o, defaultVa
|
|
|
3322
3322
|
break;
|
|
3323
3323
|
case "Enter":
|
|
3324
3324
|
case " ":
|
|
3325
|
-
e.preventDefault(), C >= 0 &&
|
|
3325
|
+
e.preventDefault(), C >= 0 && F(a[C]);
|
|
3326
3326
|
break;
|
|
3327
3327
|
case "Escape":
|
|
3328
3328
|
case "Tab":
|
|
@@ -3332,33 +3332,33 @@ function ji({ title: e, subtitle: r, leading: i, options: a, value: o, defaultVa
|
|
|
3332
3332
|
}, [
|
|
3333
3333
|
a,
|
|
3334
3334
|
C,
|
|
3335
|
-
|
|
3335
|
+
F,
|
|
3336
3336
|
P
|
|
3337
3337
|
]);
|
|
3338
3338
|
return /* @__PURE__ */ n("div", {
|
|
3339
3339
|
className: [
|
|
3340
|
-
|
|
3341
|
-
m ?
|
|
3340
|
+
Y.row,
|
|
3341
|
+
m ? Y.disabled : null,
|
|
3342
3342
|
h
|
|
3343
3343
|
].filter(Boolean).join(" "),
|
|
3344
3344
|
...g,
|
|
3345
3345
|
children: [
|
|
3346
3346
|
i && /* @__PURE__ */ t("span", {
|
|
3347
|
-
className:
|
|
3347
|
+
className: Y.leading,
|
|
3348
3348
|
children: i
|
|
3349
3349
|
}),
|
|
3350
3350
|
/* @__PURE__ */ n("span", {
|
|
3351
|
-
className:
|
|
3351
|
+
className: Y.content,
|
|
3352
3352
|
children: [/* @__PURE__ */ t("span", {
|
|
3353
|
-
className:
|
|
3353
|
+
className: Y.title,
|
|
3354
3354
|
children: e
|
|
3355
3355
|
}), r && /* @__PURE__ */ t("span", {
|
|
3356
|
-
className:
|
|
3356
|
+
className: Y.subtitle,
|
|
3357
3357
|
children: r
|
|
3358
3358
|
})]
|
|
3359
3359
|
}),
|
|
3360
3360
|
/* @__PURE__ */ n("div", {
|
|
3361
|
-
className:
|
|
3361
|
+
className: Y.comboWrap,
|
|
3362
3362
|
children: [/* @__PURE__ */ n("button", {
|
|
3363
3363
|
ref: k,
|
|
3364
3364
|
id: D,
|
|
@@ -3369,14 +3369,14 @@ function ji({ title: e, subtitle: r, leading: i, options: a, value: o, defaultVa
|
|
|
3369
3369
|
"aria-controls": O,
|
|
3370
3370
|
"aria-activedescendant": x && C >= 0 ? `${O}-opt-${C}` : void 0,
|
|
3371
3371
|
disabled: m,
|
|
3372
|
-
className: [
|
|
3372
|
+
className: [Y.trigger, x ? Y.triggerOpen : null].filter(Boolean).join(" "),
|
|
3373
3373
|
onClick: () => x ? P() : N(),
|
|
3374
|
-
onKeyDown:
|
|
3374
|
+
onKeyDown: I,
|
|
3375
3375
|
children: [/* @__PURE__ */ t("span", {
|
|
3376
|
-
className: [
|
|
3376
|
+
className: [Y.triggerLabel, j ? null : Y.placeholder].filter(Boolean).join(" "),
|
|
3377
3377
|
children: j?.label ?? "—"
|
|
3378
3378
|
}), /* @__PURE__ */ t("svg", {
|
|
3379
|
-
className: [
|
|
3379
|
+
className: [Y.chevron, x ? Y.chevronOpen : null].filter(Boolean).join(" "),
|
|
3380
3380
|
width: "16",
|
|
3381
3381
|
height: "16",
|
|
3382
3382
|
viewBox: "0 0 16 16",
|
|
@@ -3397,23 +3397,23 @@ function ji({ title: e, subtitle: r, leading: i, options: a, value: o, defaultVa
|
|
|
3397
3397
|
role: "listbox",
|
|
3398
3398
|
"aria-labelledby": D,
|
|
3399
3399
|
tabIndex: -1,
|
|
3400
|
-
className: [
|
|
3401
|
-
onKeyDown:
|
|
3400
|
+
className: [Y.list, T ? Y.listUp : Y.listDown].filter(Boolean).join(" "),
|
|
3401
|
+
onKeyDown: ee,
|
|
3402
3402
|
children: a.map((e, r) => /* @__PURE__ */ n("li", {
|
|
3403
3403
|
id: `${O}-opt-${r}`,
|
|
3404
3404
|
role: "option",
|
|
3405
3405
|
"aria-selected": e.value === b,
|
|
3406
3406
|
"aria-disabled": e.disabled,
|
|
3407
3407
|
className: [
|
|
3408
|
-
|
|
3409
|
-
e.value === b ?
|
|
3410
|
-
r === C ?
|
|
3411
|
-
e.disabled ?
|
|
3408
|
+
Y.option,
|
|
3409
|
+
e.value === b ? Y.optionSelected : null,
|
|
3410
|
+
r === C ? Y.optionActive : null,
|
|
3411
|
+
e.disabled ? Y.optionDisabled : null
|
|
3412
3412
|
].filter(Boolean).join(" "),
|
|
3413
3413
|
onMouseEnter: () => !e.disabled && w(r),
|
|
3414
|
-
onClick: () =>
|
|
3414
|
+
onClick: () => F(e),
|
|
3415
3415
|
children: [/* @__PURE__ */ t("span", {
|
|
3416
|
-
className:
|
|
3416
|
+
className: Y.optionLabel,
|
|
3417
3417
|
children: e.label
|
|
3418
3418
|
}), e.value === b && /* @__PURE__ */ t("svg", {
|
|
3419
3419
|
width: "16",
|
|
@@ -3421,7 +3421,7 @@ function ji({ title: e, subtitle: r, leading: i, options: a, value: o, defaultVa
|
|
|
3421
3421
|
viewBox: "0 0 16 16",
|
|
3422
3422
|
"aria-hidden": "true",
|
|
3423
3423
|
focusable: "false",
|
|
3424
|
-
className:
|
|
3424
|
+
className: Y.checkIcon,
|
|
3425
3425
|
children: /* @__PURE__ */ t("path", {
|
|
3426
3426
|
d: "M3 8l4 4 6-6",
|
|
3427
3427
|
fill: "none",
|
|
@@ -3437,7 +3437,7 @@ function ji({ title: e, subtitle: r, leading: i, options: a, value: o, defaultVa
|
|
|
3437
3437
|
]
|
|
3438
3438
|
});
|
|
3439
3439
|
}
|
|
3440
|
-
var
|
|
3440
|
+
var X = {
|
|
3441
3441
|
row: "_row_1kogj_3",
|
|
3442
3442
|
focused: "_focused_1kogj_16",
|
|
3443
3443
|
disabled: "_disabled_1kogj_25",
|
|
@@ -3451,31 +3451,31 @@ var Y = {
|
|
|
3451
3451
|
};
|
|
3452
3452
|
//#endregion
|
|
3453
3453
|
//#region src/components/EntryRow/EntryRow.tsx
|
|
3454
|
-
function Mi({ title: e, value: r, defaultValue: i = "", onValueChange: a, leading: o, trailing: s, disabled: c, className: l, id:
|
|
3455
|
-
let g = u(), _ =
|
|
3454
|
+
function Mi({ title: e, value: r, defaultValue: i = "", onValueChange: a, leading: o, trailing: s, disabled: c, className: l, id: d, onChange: m, ...h }) {
|
|
3455
|
+
let g = u(), _ = d ?? g, v = r !== void 0, [y, b] = p(String(i)), x = v ? String(r) : y, [S, C] = p(!1), w = f(null), T = S || x.length > 0;
|
|
3456
3456
|
return /* @__PURE__ */ n("div", {
|
|
3457
3457
|
className: [
|
|
3458
|
-
|
|
3459
|
-
S ?
|
|
3460
|
-
c ?
|
|
3458
|
+
X.row,
|
|
3459
|
+
S ? X.focused : null,
|
|
3460
|
+
c ? X.disabled : null,
|
|
3461
3461
|
l
|
|
3462
3462
|
].filter(Boolean).join(" "),
|
|
3463
3463
|
onClick: () => w.current?.focus(),
|
|
3464
3464
|
children: [
|
|
3465
3465
|
o && /* @__PURE__ */ t("span", {
|
|
3466
|
-
className:
|
|
3466
|
+
className: X.leading,
|
|
3467
3467
|
children: o
|
|
3468
3468
|
}),
|
|
3469
3469
|
/* @__PURE__ */ n("span", {
|
|
3470
|
-
className:
|
|
3470
|
+
className: X.fieldWrap,
|
|
3471
3471
|
children: [/* @__PURE__ */ t("label", {
|
|
3472
3472
|
htmlFor: _,
|
|
3473
|
-
className: [
|
|
3473
|
+
className: [X.label, T ? X.labelFloated : null].filter(Boolean).join(" "),
|
|
3474
3474
|
children: e
|
|
3475
3475
|
}), /* @__PURE__ */ t("input", {
|
|
3476
3476
|
ref: w,
|
|
3477
3477
|
id: _,
|
|
3478
|
-
className: [
|
|
3478
|
+
className: [X.input, T ? X.inputFloated : null].filter(Boolean).join(" "),
|
|
3479
3479
|
value: x,
|
|
3480
3480
|
disabled: c,
|
|
3481
3481
|
onFocus: () => C(!0),
|
|
@@ -3487,7 +3487,7 @@ function Mi({ title: e, value: r, defaultValue: i = "", onValueChange: a, leadin
|
|
|
3487
3487
|
})]
|
|
3488
3488
|
}),
|
|
3489
3489
|
s && /* @__PURE__ */ t("span", {
|
|
3490
|
-
className:
|
|
3490
|
+
className: X.trailing,
|
|
3491
3491
|
children: s
|
|
3492
3492
|
})
|
|
3493
3493
|
]
|
|
@@ -3497,7 +3497,7 @@ var Ni = { revealButton: "_revealButton_1j8z0_3" };
|
|
|
3497
3497
|
//#endregion
|
|
3498
3498
|
//#region src/components/PasswordEntryRow/PasswordEntryRow.tsx
|
|
3499
3499
|
function Pi({ trailing: r, disabled: i, ...a }) {
|
|
3500
|
-
let [o, s] =
|
|
3500
|
+
let [o, s] = p(!1), c = /* @__PURE__ */ t("button", {
|
|
3501
3501
|
type: "button",
|
|
3502
3502
|
className: Ni.revealButton,
|
|
3503
3503
|
onClick: (e) => {
|
|
@@ -3506,8 +3506,8 @@ function Pi({ trailing: r, disabled: i, ...a }) {
|
|
|
3506
3506
|
"aria-label": o ? "Conceal password" : "Reveal password",
|
|
3507
3507
|
"aria-pressed": o,
|
|
3508
3508
|
disabled: i,
|
|
3509
|
-
children: /* @__PURE__ */ t(
|
|
3510
|
-
icon: o ?
|
|
3509
|
+
children: /* @__PURE__ */ t(L, {
|
|
3510
|
+
icon: o ? Le : Ie,
|
|
3511
3511
|
size: "md",
|
|
3512
3512
|
"aria-hidden": !0
|
|
3513
3513
|
})
|
|
@@ -3519,7 +3519,7 @@ function Pi({ trailing: r, disabled: i, ...a }) {
|
|
|
3519
3519
|
trailing: /* @__PURE__ */ n(e, { children: [r, c] })
|
|
3520
3520
|
});
|
|
3521
3521
|
}
|
|
3522
|
-
var
|
|
3522
|
+
var Z = {
|
|
3523
3523
|
row: "_row_ycg6f_3",
|
|
3524
3524
|
disabled: "_disabled_ycg6f_16",
|
|
3525
3525
|
leading: "_leading_ycg6f_23",
|
|
@@ -3539,8 +3539,8 @@ function Fi(e) {
|
|
|
3539
3539
|
function Ii(e, t, n) {
|
|
3540
3540
|
return Math.min(n, Math.max(t, e));
|
|
3541
3541
|
}
|
|
3542
|
-
function Li({ title: e, subtitle: r, leading: i, value: a, defaultValue: o = 0, onValueChange: c, min: l = 0, max: d = 100, step:
|
|
3543
|
-
let v = a !== void 0, [y, b] =
|
|
3542
|
+
function Li({ title: e, subtitle: r, leading: i, value: a, defaultValue: o = 0, onValueChange: c, min: l = 0, max: d = 100, step: f = 1, decimals: m, disabled: h = !1, className: g, ..._ }) {
|
|
3543
|
+
let v = a !== void 0, [y, b] = p(o), x = v ? a : y, S = m ?? Fi(f), C = u(), w = s((e) => {
|
|
3544
3544
|
let t = parseFloat(Ii(e, l, d).toFixed(S));
|
|
3545
3545
|
v || b(t), c?.(t);
|
|
3546
3546
|
}, [
|
|
@@ -3552,16 +3552,16 @@ function Li({ title: e, subtitle: r, leading: i, value: a, defaultValue: o = 0,
|
|
|
3552
3552
|
]), T = s((e) => {
|
|
3553
3553
|
switch (e.key) {
|
|
3554
3554
|
case "ArrowUp":
|
|
3555
|
-
e.preventDefault(), w(x +
|
|
3555
|
+
e.preventDefault(), w(x + f);
|
|
3556
3556
|
break;
|
|
3557
3557
|
case "ArrowDown":
|
|
3558
|
-
e.preventDefault(), w(x -
|
|
3558
|
+
e.preventDefault(), w(x - f);
|
|
3559
3559
|
break;
|
|
3560
3560
|
case "PageUp":
|
|
3561
|
-
e.preventDefault(), w(x +
|
|
3561
|
+
e.preventDefault(), w(x + f * 10);
|
|
3562
3562
|
break;
|
|
3563
3563
|
case "PageDown":
|
|
3564
|
-
e.preventDefault(), w(x -
|
|
3564
|
+
e.preventDefault(), w(x - f * 10);
|
|
3565
3565
|
break;
|
|
3566
3566
|
case "Home":
|
|
3567
3567
|
e.preventDefault(), w(l);
|
|
@@ -3572,30 +3572,30 @@ function Li({ title: e, subtitle: r, leading: i, value: a, defaultValue: o = 0,
|
|
|
3572
3572
|
}
|
|
3573
3573
|
}, [
|
|
3574
3574
|
x,
|
|
3575
|
-
|
|
3575
|
+
f,
|
|
3576
3576
|
l,
|
|
3577
3577
|
d,
|
|
3578
3578
|
w
|
|
3579
3579
|
]);
|
|
3580
3580
|
return /* @__PURE__ */ n("div", {
|
|
3581
3581
|
className: [
|
|
3582
|
-
|
|
3583
|
-
h ?
|
|
3582
|
+
Z.row,
|
|
3583
|
+
h ? Z.disabled : null,
|
|
3584
3584
|
g
|
|
3585
3585
|
].filter(Boolean).join(" "),
|
|
3586
3586
|
..._,
|
|
3587
3587
|
children: [
|
|
3588
3588
|
i && /* @__PURE__ */ t("span", {
|
|
3589
|
-
className:
|
|
3589
|
+
className: Z.leading,
|
|
3590
3590
|
children: i
|
|
3591
3591
|
}),
|
|
3592
3592
|
/* @__PURE__ */ n("span", {
|
|
3593
|
-
className:
|
|
3593
|
+
className: Z.content,
|
|
3594
3594
|
children: [/* @__PURE__ */ t("span", {
|
|
3595
|
-
className:
|
|
3595
|
+
className: Z.title,
|
|
3596
3596
|
children: e
|
|
3597
3597
|
}), r && /* @__PURE__ */ t("span", {
|
|
3598
|
-
className:
|
|
3598
|
+
className: Z.subtitle,
|
|
3599
3599
|
children: r
|
|
3600
3600
|
})]
|
|
3601
3601
|
}),
|
|
@@ -3608,22 +3608,22 @@ function Li({ title: e, subtitle: r, leading: i, value: a, defaultValue: o = 0,
|
|
|
3608
3608
|
"aria-disabled": h || void 0,
|
|
3609
3609
|
tabIndex: h ? -1 : 0,
|
|
3610
3610
|
onKeyDown: h ? void 0 : T,
|
|
3611
|
-
className:
|
|
3611
|
+
className: Z.spin,
|
|
3612
3612
|
children: [
|
|
3613
3613
|
/* @__PURE__ */ t("button", {
|
|
3614
3614
|
type: "button",
|
|
3615
3615
|
tabIndex: -1,
|
|
3616
3616
|
"aria-hidden": "true",
|
|
3617
3617
|
disabled: h || x <= l,
|
|
3618
|
-
className:
|
|
3618
|
+
className: Z.spinBtn,
|
|
3619
3619
|
onClick: (e) => {
|
|
3620
|
-
e.stopPropagation(), w(x -
|
|
3620
|
+
e.stopPropagation(), w(x - f);
|
|
3621
3621
|
},
|
|
3622
3622
|
children: "−"
|
|
3623
3623
|
}),
|
|
3624
3624
|
/* @__PURE__ */ t("span", {
|
|
3625
3625
|
id: C,
|
|
3626
|
-
className:
|
|
3626
|
+
className: Z.spinValue,
|
|
3627
3627
|
"aria-hidden": "true",
|
|
3628
3628
|
children: x.toFixed(S)
|
|
3629
3629
|
}),
|
|
@@ -3632,9 +3632,9 @@ function Li({ title: e, subtitle: r, leading: i, value: a, defaultValue: o = 0,
|
|
|
3632
3632
|
tabIndex: -1,
|
|
3633
3633
|
"aria-hidden": "true",
|
|
3634
3634
|
disabled: h || x >= d,
|
|
3635
|
-
className:
|
|
3635
|
+
className: Z.spinBtn,
|
|
3636
3636
|
onClick: (e) => {
|
|
3637
|
-
e.stopPropagation(), w(x +
|
|
3637
|
+
e.stopPropagation(), w(x + f);
|
|
3638
3638
|
},
|
|
3639
3639
|
children: "+"
|
|
3640
3640
|
})
|
|
@@ -3687,7 +3687,7 @@ function Ji({ tag: e, title: r, children: i, className: a, ...o }) {
|
|
|
3687
3687
|
}) : null;
|
|
3688
3688
|
}
|
|
3689
3689
|
function Yi({ initialPage: e, children: n, className: r, ...i }) {
|
|
3690
|
-
let [a, o] =
|
|
3690
|
+
let [a, o] = p([e]), s = a[a.length - 1], c = a.length > 1, [l, u] = p("forward");
|
|
3691
3691
|
return /* @__PURE__ */ t(Ki.Provider, {
|
|
3692
3692
|
value: {
|
|
3693
3693
|
navigate: (e) => {
|
|
@@ -3719,10 +3719,10 @@ var Xi = "_backdrop_zzv98_3", Zi = "_sheet_zzv98_26", Qi = "_handle_zzv98_49", $
|
|
|
3719
3719
|
title: ea,
|
|
3720
3720
|
content: ta
|
|
3721
3721
|
}, ra = "button:not([disabled]), [href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"])";
|
|
3722
|
-
function ia({ open: e, title: r, children: i, onClose: a, closeOnBackdrop: o = !0, className: c, ...
|
|
3723
|
-
let
|
|
3722
|
+
function ia({ open: e, title: r, children: i, onClose: a, closeOnBackdrop: o = !0, className: c, ...d }) {
|
|
3723
|
+
let p = f(null), h = u(), g = f(null);
|
|
3724
3724
|
l(() => {
|
|
3725
|
-
e ? (g.current = document.activeElement, (
|
|
3725
|
+
e ? (g.current = document.activeElement, (p.current?.querySelector(ra))?.focus()) : g.current?.focus();
|
|
3726
3726
|
}, [e]);
|
|
3727
3727
|
let _ = s((e) => {
|
|
3728
3728
|
if (e.key === "Escape") {
|
|
@@ -3730,7 +3730,7 @@ function ia({ open: e, title: r, children: i, onClose: a, closeOnBackdrop: o = !
|
|
|
3730
3730
|
return;
|
|
3731
3731
|
}
|
|
3732
3732
|
if (e.key !== "Tab") return;
|
|
3733
|
-
let t = Array.from(
|
|
3733
|
+
let t = Array.from(p.current?.querySelectorAll(ra) ?? []);
|
|
3734
3734
|
if (t.length === 0) return;
|
|
3735
3735
|
let n = t[0], r = t[t.length - 1];
|
|
3736
3736
|
e.shiftKey ? document.activeElement === n && (e.preventDefault(), r.focus()) : document.activeElement === r && (e.preventDefault(), n.focus());
|
|
@@ -3741,14 +3741,14 @@ function ia({ open: e, title: r, children: i, onClose: a, closeOnBackdrop: o = !
|
|
|
3741
3741
|
onClick: o ? a : void 0,
|
|
3742
3742
|
"aria-hidden": "true",
|
|
3743
3743
|
children: /* @__PURE__ */ n("div", {
|
|
3744
|
-
ref:
|
|
3744
|
+
ref: p,
|
|
3745
3745
|
role: "dialog",
|
|
3746
3746
|
"aria-modal": "true",
|
|
3747
3747
|
"aria-labelledby": r ? h : void 0,
|
|
3748
3748
|
className: [na.sheet, c].filter(Boolean).join(" "),
|
|
3749
3749
|
onKeyDown: _,
|
|
3750
3750
|
onClick: (e) => e.stopPropagation(),
|
|
3751
|
-
...
|
|
3751
|
+
...d,
|
|
3752
3752
|
children: [
|
|
3753
3753
|
/* @__PURE__ */ t("div", {
|
|
3754
3754
|
className: na.handle,
|
|
@@ -3767,9 +3767,9 @@ function ia({ open: e, title: r, children: i, onClose: a, closeOnBackdrop: o = !
|
|
|
3767
3767
|
]
|
|
3768
3768
|
})
|
|
3769
3769
|
});
|
|
3770
|
-
return typeof document > "u" ? v :
|
|
3770
|
+
return typeof document > "u" ? v : m(v, document.body);
|
|
3771
3771
|
}
|
|
3772
|
-
var
|
|
3772
|
+
var aa = {
|
|
3773
3773
|
carousel: "_carousel_117hp_3",
|
|
3774
3774
|
horizontal: "_horizontal_117hp_20",
|
|
3775
3775
|
vertical: "_vertical_117hp_27",
|
|
@@ -3783,9 +3783,9 @@ var Z = {
|
|
|
3783
3783
|
};
|
|
3784
3784
|
//#endregion
|
|
3785
3785
|
//#region src/components/Carousel/Carousel.tsx
|
|
3786
|
-
function
|
|
3786
|
+
function oa({ pages: e, currentPage: n, onPageSelected: r, className: i, ...a }) {
|
|
3787
3787
|
return /* @__PURE__ */ t("div", {
|
|
3788
|
-
className: [
|
|
3788
|
+
className: [aa.indicatorDots, i].filter(Boolean).join(" "),
|
|
3789
3789
|
role: "tablist",
|
|
3790
3790
|
"aria-label": "Carousel pages",
|
|
3791
3791
|
...a,
|
|
@@ -3794,14 +3794,14 @@ function aa({ pages: e, currentPage: n, onPageSelected: r, className: i, ...a })
|
|
|
3794
3794
|
role: "tab",
|
|
3795
3795
|
"aria-selected": i === n,
|
|
3796
3796
|
"aria-label": `Page ${i + 1}`,
|
|
3797
|
-
className: [
|
|
3797
|
+
className: [aa.dot, i === n ? aa.dotActive : null].filter(Boolean).join(" "),
|
|
3798
3798
|
onClick: () => r?.(i)
|
|
3799
3799
|
}, i))
|
|
3800
3800
|
});
|
|
3801
3801
|
}
|
|
3802
|
-
function
|
|
3802
|
+
function sa({ pages: e, currentPage: n, onPageSelected: r, className: i, ...a }) {
|
|
3803
3803
|
return /* @__PURE__ */ t("div", {
|
|
3804
|
-
className: [
|
|
3804
|
+
className: [aa.indicatorLines, i].filter(Boolean).join(" "),
|
|
3805
3805
|
role: "tablist",
|
|
3806
3806
|
"aria-label": "Carousel pages",
|
|
3807
3807
|
...a,
|
|
@@ -3810,13 +3810,13 @@ function oa({ pages: e, currentPage: n, onPageSelected: r, className: i, ...a })
|
|
|
3810
3810
|
role: "tab",
|
|
3811
3811
|
"aria-selected": i === n,
|
|
3812
3812
|
"aria-label": `Page ${i + 1}`,
|
|
3813
|
-
className: [
|
|
3813
|
+
className: [aa.line, i === n ? aa.lineActive : null].filter(Boolean).join(" "),
|
|
3814
3814
|
onClick: () => r?.(i)
|
|
3815
3815
|
}, i))
|
|
3816
3816
|
});
|
|
3817
3817
|
}
|
|
3818
|
-
function
|
|
3819
|
-
let m =
|
|
3818
|
+
function ca({ children: e, orientation: n = "horizontal", spacing: i = 0, loop: a = !1, onPageChanged: o, page: c, className: u, ...d }) {
|
|
3819
|
+
let m = f(null), h = r.count(e), [g, _] = p(0), v = c !== void 0, y = v ? c : g;
|
|
3820
3820
|
l(() => {
|
|
3821
3821
|
v && b(c, "smooth");
|
|
3822
3822
|
}, [c]);
|
|
@@ -3871,15 +3871,15 @@ function sa({ children: e, orientation: n = "horizontal", spacing: i = 0, loop:
|
|
|
3871
3871
|
"aria-roledescription": "carousel",
|
|
3872
3872
|
tabIndex: 0,
|
|
3873
3873
|
className: [
|
|
3874
|
-
|
|
3875
|
-
S ?
|
|
3874
|
+
aa.carousel,
|
|
3875
|
+
S ? aa.horizontal : aa.vertical,
|
|
3876
3876
|
u
|
|
3877
3877
|
].filter(Boolean).join(" "),
|
|
3878
3878
|
style: S ? { columnGap: i || void 0 } : { rowGap: i || void 0 },
|
|
3879
3879
|
onKeyDown: x,
|
|
3880
|
-
...
|
|
3880
|
+
...d,
|
|
3881
3881
|
children: r.map(e, (e, n) => /* @__PURE__ */ t("div", {
|
|
3882
|
-
className:
|
|
3882
|
+
className: aa.slide,
|
|
3883
3883
|
role: "group",
|
|
3884
3884
|
"aria-roledescription": "slide",
|
|
3885
3885
|
"aria-label": `${n + 1} of ${h}`,
|
|
@@ -3889,49 +3889,49 @@ function sa({ children: e, orientation: n = "horizontal", spacing: i = 0, loop:
|
|
|
3889
3889
|
}
|
|
3890
3890
|
//#endregion
|
|
3891
3891
|
//#region src/components/Bin/Bin.tsx
|
|
3892
|
-
function
|
|
3892
|
+
function la({ children: e, ...n }) {
|
|
3893
3893
|
return /* @__PURE__ */ t("div", {
|
|
3894
3894
|
...n,
|
|
3895
3895
|
children: e
|
|
3896
3896
|
});
|
|
3897
3897
|
}
|
|
3898
|
-
var
|
|
3898
|
+
var ua = {
|
|
3899
3899
|
content: "_content_1xkwk_3",
|
|
3900
3900
|
icon: "_icon_1xkwk_9",
|
|
3901
3901
|
label: "_label_1xkwk_15"
|
|
3902
3902
|
};
|
|
3903
3903
|
//#endregion
|
|
3904
3904
|
//#region src/components/ButtonContent/ButtonContent.tsx
|
|
3905
|
-
function
|
|
3905
|
+
function da({ icon: e, label: r, iconPosition: i = "start", className: a, ...o }) {
|
|
3906
3906
|
return /* @__PURE__ */ n("span", {
|
|
3907
3907
|
className: [
|
|
3908
|
-
|
|
3909
|
-
i === "end" ?
|
|
3908
|
+
ua.content,
|
|
3909
|
+
i === "end" ? ua.iconEnd : null,
|
|
3910
3910
|
a
|
|
3911
3911
|
].filter(Boolean).join(" "),
|
|
3912
3912
|
...o,
|
|
3913
3913
|
children: [
|
|
3914
3914
|
e && i === "start" && /* @__PURE__ */ t("span", {
|
|
3915
|
-
className:
|
|
3915
|
+
className: ua.icon,
|
|
3916
3916
|
"aria-hidden": "true",
|
|
3917
3917
|
children: e
|
|
3918
3918
|
}),
|
|
3919
3919
|
/* @__PURE__ */ t("span", {
|
|
3920
|
-
className:
|
|
3920
|
+
className: ua.label,
|
|
3921
3921
|
children: r
|
|
3922
3922
|
}),
|
|
3923
3923
|
e && i === "end" && /* @__PURE__ */ t("span", {
|
|
3924
|
-
className:
|
|
3924
|
+
className: ua.icon,
|
|
3925
3925
|
"aria-hidden": "true",
|
|
3926
3926
|
children: e
|
|
3927
3927
|
})
|
|
3928
3928
|
]
|
|
3929
3929
|
});
|
|
3930
3930
|
}
|
|
3931
|
-
var
|
|
3931
|
+
var fa = {
|
|
3932
3932
|
label: "_label_h3znl_3",
|
|
3933
3933
|
key: "_key_h3znl_9"
|
|
3934
|
-
},
|
|
3934
|
+
}, pa = {
|
|
3935
3935
|
ctrl: "⌃",
|
|
3936
3936
|
control: "⌃",
|
|
3937
3937
|
shift: "⇧",
|
|
@@ -3959,22 +3959,22 @@ var da = {
|
|
|
3959
3959
|
home: "⇱",
|
|
3960
3960
|
end: "⇲"
|
|
3961
3961
|
};
|
|
3962
|
-
function
|
|
3962
|
+
function ma({ shortcut: e, symbols: n = !0, className: r, ...i }) {
|
|
3963
3963
|
let a = e.split("+").map((e) => e.trim()).filter(Boolean);
|
|
3964
3964
|
return /* @__PURE__ */ t("span", {
|
|
3965
|
-
className: [
|
|
3965
|
+
className: [fa.label, r].filter(Boolean).join(" "),
|
|
3966
3966
|
"aria-label": e,
|
|
3967
3967
|
...i,
|
|
3968
3968
|
children: a.map((e, r) => {
|
|
3969
|
-
let i = n ?
|
|
3969
|
+
let i = n ? pa[e.toLowerCase()] ?? e : e;
|
|
3970
3970
|
return /* @__PURE__ */ t("kbd", {
|
|
3971
|
-
className:
|
|
3971
|
+
className: fa.key,
|
|
3972
3972
|
children: i
|
|
3973
3973
|
}, r);
|
|
3974
3974
|
})
|
|
3975
3975
|
});
|
|
3976
3976
|
}
|
|
3977
|
-
var
|
|
3977
|
+
var ha = {
|
|
3978
3978
|
toolbarView: "_toolbarView_134hf_3",
|
|
3979
3979
|
top: "_top_134hf_11",
|
|
3980
3980
|
content: "_content_134hf_16",
|
|
@@ -3982,47 +3982,47 @@ var ma = {
|
|
|
3982
3982
|
};
|
|
3983
3983
|
//#endregion
|
|
3984
3984
|
//#region src/components/ToolbarView/ToolbarView.tsx
|
|
3985
|
-
function
|
|
3985
|
+
function ga({ topBar: e, bottomBar: r, children: i, className: a, ...o }) {
|
|
3986
3986
|
return /* @__PURE__ */ n("div", {
|
|
3987
|
-
className: [
|
|
3987
|
+
className: [ha.toolbarView, a].filter(Boolean).join(" "),
|
|
3988
3988
|
...o,
|
|
3989
3989
|
children: [
|
|
3990
3990
|
e && /* @__PURE__ */ t("div", {
|
|
3991
|
-
className:
|
|
3991
|
+
className: ha.top,
|
|
3992
3992
|
children: e
|
|
3993
3993
|
}),
|
|
3994
3994
|
/* @__PURE__ */ t("div", {
|
|
3995
|
-
className:
|
|
3995
|
+
className: ha.content,
|
|
3996
3996
|
children: i
|
|
3997
3997
|
}),
|
|
3998
3998
|
r && /* @__PURE__ */ t("div", {
|
|
3999
|
-
className:
|
|
3999
|
+
className: ha.bottom,
|
|
4000
4000
|
children: r
|
|
4001
4001
|
})
|
|
4002
4002
|
]
|
|
4003
4003
|
});
|
|
4004
4004
|
}
|
|
4005
|
-
var
|
|
4005
|
+
var _a = {
|
|
4006
4006
|
windowTitle: "_windowTitle_zm877_3",
|
|
4007
4007
|
title: "_title_zm877_11",
|
|
4008
4008
|
subtitle: "_subtitle_zm877_24"
|
|
4009
4009
|
};
|
|
4010
4010
|
//#endregion
|
|
4011
4011
|
//#region src/components/WindowTitle/WindowTitle.tsx
|
|
4012
|
-
function
|
|
4012
|
+
function va({ title: e, subtitle: r, className: i, ...a }) {
|
|
4013
4013
|
return /* @__PURE__ */ n("div", {
|
|
4014
|
-
className: [
|
|
4014
|
+
className: [_a.windowTitle, i].filter(Boolean).join(" "),
|
|
4015
4015
|
...a,
|
|
4016
4016
|
children: [/* @__PURE__ */ t("span", {
|
|
4017
|
-
className:
|
|
4017
|
+
className: _a.title,
|
|
4018
4018
|
children: e
|
|
4019
4019
|
}), r && /* @__PURE__ */ t("span", {
|
|
4020
|
-
className:
|
|
4020
|
+
className: _a.subtitle,
|
|
4021
4021
|
children: r
|
|
4022
4022
|
})]
|
|
4023
4023
|
});
|
|
4024
4024
|
}
|
|
4025
|
-
var
|
|
4025
|
+
var ya = {
|
|
4026
4026
|
group: "_group_17s4f_3",
|
|
4027
4027
|
header: "_header_17s4f_11",
|
|
4028
4028
|
headerText: "_headerText_17s4f_17",
|
|
@@ -4033,97 +4033,97 @@ var va = {
|
|
|
4033
4033
|
};
|
|
4034
4034
|
//#endregion
|
|
4035
4035
|
//#region src/components/PreferencesGroup/PreferencesGroup.tsx
|
|
4036
|
-
function
|
|
4036
|
+
function ba({ title: e, description: r, headerSuffix: i, children: a, className: o, ...s }) {
|
|
4037
4037
|
let c = e || r || i;
|
|
4038
4038
|
return /* @__PURE__ */ n("div", {
|
|
4039
|
-
className: [
|
|
4039
|
+
className: [ya.group, o].filter(Boolean).join(" "),
|
|
4040
4040
|
...s,
|
|
4041
4041
|
children: [c && /* @__PURE__ */ n("div", {
|
|
4042
|
-
className:
|
|
4042
|
+
className: ya.header,
|
|
4043
4043
|
children: [/* @__PURE__ */ n("div", {
|
|
4044
|
-
className:
|
|
4044
|
+
className: ya.headerText,
|
|
4045
4045
|
children: [e && /* @__PURE__ */ t("span", {
|
|
4046
|
-
className:
|
|
4046
|
+
className: ya.title,
|
|
4047
4047
|
children: e
|
|
4048
4048
|
}), r && /* @__PURE__ */ t("span", {
|
|
4049
|
-
className:
|
|
4049
|
+
className: ya.description,
|
|
4050
4050
|
children: r
|
|
4051
4051
|
})]
|
|
4052
4052
|
}), i && /* @__PURE__ */ t("div", {
|
|
4053
|
-
className:
|
|
4053
|
+
className: ya.suffix,
|
|
4054
4054
|
children: i
|
|
4055
4055
|
})]
|
|
4056
4056
|
}), /* @__PURE__ */ t("div", {
|
|
4057
|
-
className:
|
|
4057
|
+
className: ya.content,
|
|
4058
4058
|
children: a
|
|
4059
4059
|
})]
|
|
4060
4060
|
});
|
|
4061
4061
|
}
|
|
4062
|
-
var
|
|
4062
|
+
var xa = {
|
|
4063
4063
|
page: "_page_gt42j_3",
|
|
4064
4064
|
inner: "_inner_gt42j_10"
|
|
4065
4065
|
};
|
|
4066
4066
|
//#endregion
|
|
4067
4067
|
//#region src/components/PreferencesPage/PreferencesPage.tsx
|
|
4068
|
-
function
|
|
4068
|
+
function Sa({ title: e, iconName: n, children: r, className: i, ...a }) {
|
|
4069
4069
|
return /* @__PURE__ */ t("div", {
|
|
4070
|
-
className: [
|
|
4070
|
+
className: [xa.page, i].filter(Boolean).join(" "),
|
|
4071
4071
|
role: "tabpanel",
|
|
4072
4072
|
...a,
|
|
4073
4073
|
children: /* @__PURE__ */ t("div", {
|
|
4074
|
-
className:
|
|
4074
|
+
className: xa.inner,
|
|
4075
4075
|
children: r
|
|
4076
4076
|
})
|
|
4077
4077
|
});
|
|
4078
4078
|
}
|
|
4079
4079
|
//#endregion
|
|
4080
4080
|
//#region src/components/PreferencesDialog/PreferencesDialog.module.css
|
|
4081
|
-
var
|
|
4082
|
-
backdrop:
|
|
4081
|
+
var Ca = "_backdrop_1u1bd_3", wa = "_dialog_1u1bd_26", Ta = "_dialogMulti_1u1bd_46", Ea = "_header_1u1bd_63", Da = "_closeBtn_1u1bd_73", Oa = "_title_1u1bd_102", ka = "_searchWrap_1u1bd_112", Aa = "_searchInput_1u1bd_116", ja = "_body_1u1bd_143", Ma = "_sidebar_1u1bd_152", Na = "_navList_1u1bd_160", Pa = "_navItem_1u1bd_169", Fa = "_navItemActive_1u1bd_190", Ia = "_navIcon_1u1bd_205", La = "_navLabel_1u1bd_211", Ra = "_pageWrap_1u1bd_221", Q = {
|
|
4082
|
+
backdrop: Ca,
|
|
4083
4083
|
"backdrop-in": "_backdrop-in_1u1bd_1",
|
|
4084
|
-
dialog:
|
|
4084
|
+
dialog: wa,
|
|
4085
4085
|
"dialog-in": "_dialog-in_1u1bd_1",
|
|
4086
|
-
dialogMulti:
|
|
4087
|
-
header:
|
|
4088
|
-
closeBtn:
|
|
4089
|
-
title:
|
|
4090
|
-
searchWrap:
|
|
4091
|
-
searchInput:
|
|
4092
|
-
body:
|
|
4093
|
-
sidebar:
|
|
4094
|
-
navList:
|
|
4095
|
-
navItem:
|
|
4096
|
-
navItemActive:
|
|
4097
|
-
navIcon:
|
|
4098
|
-
navLabel:
|
|
4099
|
-
pageWrap:
|
|
4100
|
-
},
|
|
4101
|
-
function
|
|
4086
|
+
dialogMulti: Ta,
|
|
4087
|
+
header: Ea,
|
|
4088
|
+
closeBtn: Da,
|
|
4089
|
+
title: Oa,
|
|
4090
|
+
searchWrap: ka,
|
|
4091
|
+
searchInput: Aa,
|
|
4092
|
+
body: ja,
|
|
4093
|
+
sidebar: Ma,
|
|
4094
|
+
navList: Na,
|
|
4095
|
+
navItem: Pa,
|
|
4096
|
+
navItemActive: Fa,
|
|
4097
|
+
navIcon: Ia,
|
|
4098
|
+
navLabel: La,
|
|
4099
|
+
pageWrap: Ra
|
|
4100
|
+
}, za = "button:not([disabled]), [href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"])";
|
|
4101
|
+
function Ba(e, t) {
|
|
4102
4102
|
if (e.key !== "Tab") return;
|
|
4103
|
-
let n = Array.from(t.current?.querySelectorAll(
|
|
4103
|
+
let n = Array.from(t.current?.querySelectorAll(za) ?? []);
|
|
4104
4104
|
if (!n.length) return;
|
|
4105
4105
|
let r = n[0], i = n[n.length - 1];
|
|
4106
4106
|
e.shiftKey ? document.activeElement === r && (e.preventDefault(), i.focus()) : document.activeElement === i && (e.preventDefault(), r.focus());
|
|
4107
4107
|
}
|
|
4108
|
-
function
|
|
4109
|
-
let _ =
|
|
4108
|
+
function Va({ open: e, onClose: a, children: c, searchable: d = !0, className: h, ...g }) {
|
|
4109
|
+
let _ = f(null), v = f(null), y = u(), b = r.toArray(c).filter((e) => o(e)), [x, S] = p(0), [C, w] = p("");
|
|
4110
4110
|
l(() => {
|
|
4111
4111
|
if (e) {
|
|
4112
4112
|
S(0), w("");
|
|
4113
4113
|
let e = requestAnimationFrame(() => {
|
|
4114
|
-
|
|
4114
|
+
d && v.current ? v.current.focus() : (_.current?.querySelector(za))?.focus();
|
|
4115
4115
|
});
|
|
4116
4116
|
return () => cancelAnimationFrame(e);
|
|
4117
4117
|
}
|
|
4118
|
-
}, [e,
|
|
4118
|
+
}, [e, d]);
|
|
4119
4119
|
let T = s((e) => {
|
|
4120
4120
|
if (e.key === "Escape") {
|
|
4121
4121
|
e.stopPropagation(), a();
|
|
4122
4122
|
return;
|
|
4123
4123
|
}
|
|
4124
|
-
|
|
4124
|
+
Ba(e, _);
|
|
4125
4125
|
}, [a]), E = b.length > 1, D = b[x] ?? b[0], O = C.trim().toLowerCase();
|
|
4126
|
-
return e ?
|
|
4126
|
+
return e ? m(/* @__PURE__ */ t("div", {
|
|
4127
4127
|
className: Q.backdrop,
|
|
4128
4128
|
onClick: (e) => {
|
|
4129
4129
|
e.target === e.currentTarget && a();
|
|
@@ -4156,7 +4156,7 @@ function Ba({ open: e, onClose: a, children: c, searchable: m = !0, className: h
|
|
|
4156
4156
|
className: Q.title,
|
|
4157
4157
|
children: "Preferences"
|
|
4158
4158
|
}),
|
|
4159
|
-
|
|
4159
|
+
d && /* @__PURE__ */ t("div", {
|
|
4160
4160
|
className: Q.searchWrap,
|
|
4161
4161
|
children: /* @__PURE__ */ t("input", {
|
|
4162
4162
|
ref: v,
|
|
@@ -4224,7 +4224,7 @@ var $ = {
|
|
|
4224
4224
|
};
|
|
4225
4225
|
//#endregion
|
|
4226
4226
|
//#region src/components/Timeline/Timeline.tsx
|
|
4227
|
-
function
|
|
4227
|
+
function Ha({ items: e, orientation: r = "vertical", variant: i = "default", className: a, ...o }) {
|
|
4228
4228
|
let s = r === "horizontal", c = i !== "none";
|
|
4229
4229
|
return /* @__PURE__ */ t("div", {
|
|
4230
4230
|
role: "list",
|
|
@@ -4288,7 +4288,7 @@ function Va({ items: e, orientation: r = "vertical", variant: i = "default", cla
|
|
|
4288
4288
|
})
|
|
4289
4289
|
});
|
|
4290
4290
|
}
|
|
4291
|
-
var
|
|
4291
|
+
var Ua = {
|
|
4292
4292
|
pathBar: "_pathBar_1n4ev_3",
|
|
4293
4293
|
list: "_list_1n4ev_12",
|
|
4294
4294
|
item: "_item_1n4ev_25",
|
|
@@ -4299,20 +4299,20 @@ var Ha = {
|
|
|
4299
4299
|
};
|
|
4300
4300
|
//#endregion
|
|
4301
4301
|
//#region src/components/PathBar/PathBar.tsx
|
|
4302
|
-
function
|
|
4302
|
+
function Wa({ segments: e, onNavigate: r, className: i, ...a }) {
|
|
4303
4303
|
return /* @__PURE__ */ t("nav", {
|
|
4304
4304
|
"aria-label": "Breadcrumb",
|
|
4305
|
-
className: [
|
|
4305
|
+
className: [Ua.pathBar, i].filter(Boolean).join(" "),
|
|
4306
4306
|
...a,
|
|
4307
4307
|
children: /* @__PURE__ */ t("ol", {
|
|
4308
|
-
className:
|
|
4308
|
+
className: Ua.list,
|
|
4309
4309
|
"aria-label": "Path segments",
|
|
4310
4310
|
children: e.map((i, a) => {
|
|
4311
4311
|
let o = a === e.length - 1;
|
|
4312
4312
|
return /* @__PURE__ */ n("li", {
|
|
4313
|
-
className:
|
|
4313
|
+
className: Ua.item,
|
|
4314
4314
|
children: [a > 0 && /* @__PURE__ */ t("span", {
|
|
4315
|
-
className:
|
|
4315
|
+
className: Ua.separator,
|
|
4316
4316
|
"aria-hidden": "true",
|
|
4317
4317
|
children: /* @__PURE__ */ t("svg", {
|
|
4318
4318
|
width: "12",
|
|
@@ -4329,19 +4329,19 @@ function Ua({ segments: e, onNavigate: r, className: i, ...a }) {
|
|
|
4329
4329
|
})
|
|
4330
4330
|
})
|
|
4331
4331
|
}), o ? /* @__PURE__ */ n("span", {
|
|
4332
|
-
className:
|
|
4332
|
+
className: Ua.current,
|
|
4333
4333
|
"aria-current": "page",
|
|
4334
4334
|
children: [i.icon && /* @__PURE__ */ t("span", {
|
|
4335
|
-
className:
|
|
4335
|
+
className: Ua.icon,
|
|
4336
4336
|
"aria-hidden": "true",
|
|
4337
4337
|
children: i.icon
|
|
4338
4338
|
}), i.label]
|
|
4339
4339
|
}) : /* @__PURE__ */ n("button", {
|
|
4340
4340
|
type: "button",
|
|
4341
|
-
className:
|
|
4341
|
+
className: Ua.segment,
|
|
4342
4342
|
onClick: () => r?.(i.path, a),
|
|
4343
4343
|
children: [i.icon && /* @__PURE__ */ t("span", {
|
|
4344
|
-
className:
|
|
4344
|
+
className: Ua.icon,
|
|
4345
4345
|
"aria-hidden": "true",
|
|
4346
4346
|
children: i.icon
|
|
4347
4347
|
}), i.label]
|
|
@@ -4351,7 +4351,256 @@ function Ua({ segments: e, onNavigate: r, className: i, ...a }) {
|
|
|
4351
4351
|
})
|
|
4352
4352
|
});
|
|
4353
4353
|
}
|
|
4354
|
+
var Ga = {
|
|
4355
|
+
wrapper: "_wrapper_1upmq_1",
|
|
4356
|
+
svg: "_svg_1upmq_10",
|
|
4357
|
+
label: "_label_1upmq_15",
|
|
4358
|
+
cell: "_cell_1upmq_23",
|
|
4359
|
+
tooltip: "_tooltip_1upmq_58",
|
|
4360
|
+
legend: "_legend_1upmq_74",
|
|
4361
|
+
legendLabel: "_legendLabel_1upmq_81",
|
|
4362
|
+
legendCell: "_legendCell_1upmq_89"
|
|
4363
|
+
}, Ka = [
|
|
4364
|
+
"Jan",
|
|
4365
|
+
"Feb",
|
|
4366
|
+
"Mar",
|
|
4367
|
+
"Apr",
|
|
4368
|
+
"May",
|
|
4369
|
+
"Jun",
|
|
4370
|
+
"Jul",
|
|
4371
|
+
"Aug",
|
|
4372
|
+
"Sep",
|
|
4373
|
+
"Oct",
|
|
4374
|
+
"Nov",
|
|
4375
|
+
"Dec"
|
|
4376
|
+
], qa = [
|
|
4377
|
+
"Sun",
|
|
4378
|
+
"Mon",
|
|
4379
|
+
"Tue",
|
|
4380
|
+
"Wed",
|
|
4381
|
+
"Thu",
|
|
4382
|
+
"Fri",
|
|
4383
|
+
"Sat"
|
|
4384
|
+
], Ja = 28, Ya = 20, Xa = [
|
|
4385
|
+
"var(--gnome-card-shade-color, rgba(0,0,0,0.07))",
|
|
4386
|
+
"var(--gnome-green-1, #8ff0a4)",
|
|
4387
|
+
"var(--gnome-green-2, #57e389)",
|
|
4388
|
+
"var(--gnome-green-4, #2ec27e)",
|
|
4389
|
+
"var(--gnome-green-5, #26a269)"
|
|
4390
|
+
];
|
|
4391
|
+
function Za(e) {
|
|
4392
|
+
return `${e.getFullYear()}-${String(e.getMonth() + 1).padStart(2, "0")}-${String(e.getDate()).padStart(2, "0")}`;
|
|
4393
|
+
}
|
|
4394
|
+
function Qa(e) {
|
|
4395
|
+
let [t, n, r] = e.split("-").map(Number);
|
|
4396
|
+
return new Date(t, n - 1, r);
|
|
4397
|
+
}
|
|
4398
|
+
function $a(e) {
|
|
4399
|
+
return Qa(e).toLocaleDateString("en-US", {
|
|
4400
|
+
weekday: "long",
|
|
4401
|
+
year: "numeric",
|
|
4402
|
+
month: "long",
|
|
4403
|
+
day: "numeric"
|
|
4404
|
+
});
|
|
4405
|
+
}
|
|
4406
|
+
function eo({ data: e, maxLevel: r = 4, colorScale: i, cellSize: a = 12, cellGap: o = 3, weekStartDay: s = 1, showMonthLabels: c = !0, showDayLabels: l = !0, showLegend: u = !0, weeks: m = 52, ariaLabel: h = "Contribution graph", onDayClick: g, tooltipContent: _, className: v }) {
|
|
4407
|
+
let y = a + o, b = f(null), x = f(null), S = i ?? Xa, [C, w] = p({
|
|
4408
|
+
col: 0,
|
|
4409
|
+
row: 0
|
|
4410
|
+
}), [T, E] = p(null), D = d(() => {
|
|
4411
|
+
let t = /* @__PURE__ */ new Map();
|
|
4412
|
+
for (let n of e) t.set(n.date, n.count);
|
|
4413
|
+
return t;
|
|
4414
|
+
}, [e]), O = d(() => Math.max(1, ...e.map((e) => e.count)), [e]), { grid: k, monthLabels: A } = d(() => {
|
|
4415
|
+
let e = /* @__PURE__ */ new Date();
|
|
4416
|
+
e.setHours(0, 0, 0, 0);
|
|
4417
|
+
let t = (e.getDay() - s + 7) % 7, n = new Date(e);
|
|
4418
|
+
n.setDate(e.getDate() - t);
|
|
4419
|
+
let i = new Date(n);
|
|
4420
|
+
i.setDate(n.getDate() - (m - 1) * 7);
|
|
4421
|
+
let a = [], o = [], c = -1;
|
|
4422
|
+
for (let t = 0; t < m; t++) {
|
|
4423
|
+
let n = new Date(i);
|
|
4424
|
+
n.setDate(i.getDate() + t * 7), n.getMonth() !== c && (o.push({
|
|
4425
|
+
col: t,
|
|
4426
|
+
month: Ka[n.getMonth()]
|
|
4427
|
+
}), c = n.getMonth());
|
|
4428
|
+
let s = [];
|
|
4429
|
+
for (let n = 0; n < 7; n++) {
|
|
4430
|
+
let a = new Date(i);
|
|
4431
|
+
a.setDate(i.getDate() + t * 7 + n);
|
|
4432
|
+
let o = a > e, c = Za(a), l = o ? 0 : D.get(c) ?? 0, u = l === 0 ? 0 : Math.min(r, Math.ceil(l / O * r));
|
|
4433
|
+
s.push({
|
|
4434
|
+
iso: c,
|
|
4435
|
+
count: l,
|
|
4436
|
+
level: u,
|
|
4437
|
+
future: o
|
|
4438
|
+
});
|
|
4439
|
+
}
|
|
4440
|
+
a.push(s);
|
|
4441
|
+
}
|
|
4442
|
+
return {
|
|
4443
|
+
grid: a,
|
|
4444
|
+
monthLabels: o
|
|
4445
|
+
};
|
|
4446
|
+
}, [
|
|
4447
|
+
D,
|
|
4448
|
+
O,
|
|
4449
|
+
r,
|
|
4450
|
+
m,
|
|
4451
|
+
s
|
|
4452
|
+
]), j = d(() => [
|
|
4453
|
+
1,
|
|
4454
|
+
3,
|
|
4455
|
+
5
|
|
4456
|
+
].map((e) => ({
|
|
4457
|
+
row: (e - s + 7) % 7,
|
|
4458
|
+
label: qa[e]
|
|
4459
|
+
})), [s]), M = l ? Ja : 0, N = c ? Ya : 0, P = M + m * y - o, F = N + 7 * y - o, I = Math.min(4, Math.floor(a / 3));
|
|
4460
|
+
function ee(e, t) {
|
|
4461
|
+
let n = Math.max(0, Math.min(m - 1, e)), r = Math.max(0, Math.min(6, t));
|
|
4462
|
+
w({
|
|
4463
|
+
col: n,
|
|
4464
|
+
row: r
|
|
4465
|
+
}), b.current?.querySelector(`[data-col="${n}"][data-row="${r}"]`)?.focus();
|
|
4466
|
+
}
|
|
4467
|
+
function te(e, t, n) {
|
|
4468
|
+
let r = {
|
|
4469
|
+
ArrowRight: [t + 1, n],
|
|
4470
|
+
ArrowLeft: [t - 1, n],
|
|
4471
|
+
ArrowDown: [t, n + 1],
|
|
4472
|
+
ArrowUp: [t, n - 1]
|
|
4473
|
+
};
|
|
4474
|
+
if (r[e.key]) e.preventDefault(), ee(...r[e.key]);
|
|
4475
|
+
else if (e.key === "Enter" || e.key === " ") {
|
|
4476
|
+
e.preventDefault();
|
|
4477
|
+
let r = k[t]?.[n];
|
|
4478
|
+
r && !r.future && g?.({
|
|
4479
|
+
date: r.iso,
|
|
4480
|
+
count: r.count
|
|
4481
|
+
});
|
|
4482
|
+
}
|
|
4483
|
+
}
|
|
4484
|
+
function ne(e, t) {
|
|
4485
|
+
let n = x.current;
|
|
4486
|
+
if (!n) return;
|
|
4487
|
+
let r = n.getBoundingClientRect(), i = e.currentTarget.getBoundingClientRect();
|
|
4488
|
+
E({
|
|
4489
|
+
x: i.left - r.left + a / 2,
|
|
4490
|
+
y: i.top - r.top,
|
|
4491
|
+
text: t
|
|
4492
|
+
});
|
|
4493
|
+
}
|
|
4494
|
+
function re(e) {
|
|
4495
|
+
return e.future ? S[0] : S[Math.min(e.level, S.length - 1)] ?? S[S.length - 1];
|
|
4496
|
+
}
|
|
4497
|
+
function ie(e) {
|
|
4498
|
+
return e.future ? $a(e.iso) : _?.({
|
|
4499
|
+
date: e.iso,
|
|
4500
|
+
count: e.count
|
|
4501
|
+
}) ?? `${e.count} contribution${e.count === 1 ? "" : "s"} on ${$a(e.iso)}`;
|
|
4502
|
+
}
|
|
4503
|
+
return /* @__PURE__ */ n("div", {
|
|
4504
|
+
ref: x,
|
|
4505
|
+
className: [Ga.wrapper, v].filter(Boolean).join(" "),
|
|
4506
|
+
children: [
|
|
4507
|
+
/* @__PURE__ */ n("svg", {
|
|
4508
|
+
ref: b,
|
|
4509
|
+
width: P,
|
|
4510
|
+
height: F,
|
|
4511
|
+
className: Ga.svg,
|
|
4512
|
+
"aria-label": h,
|
|
4513
|
+
role: "img",
|
|
4514
|
+
children: [
|
|
4515
|
+
c && A.map(({ col: e, month: n }) => /* @__PURE__ */ t("text", {
|
|
4516
|
+
x: M + e * y,
|
|
4517
|
+
y: 12,
|
|
4518
|
+
className: Ga.label,
|
|
4519
|
+
children: n
|
|
4520
|
+
}, `m-${e}`)),
|
|
4521
|
+
l && j.map(({ row: e, label: n }) => /* @__PURE__ */ t("text", {
|
|
4522
|
+
x: 0,
|
|
4523
|
+
y: N + e * y + a - 1,
|
|
4524
|
+
className: Ga.label,
|
|
4525
|
+
children: n
|
|
4526
|
+
}, `d-${e}`)),
|
|
4527
|
+
/* @__PURE__ */ t("g", {
|
|
4528
|
+
role: "grid",
|
|
4529
|
+
"aria-label": h,
|
|
4530
|
+
children: k.map((e, n) => /* @__PURE__ */ t("g", {
|
|
4531
|
+
role: "row",
|
|
4532
|
+
children: e.map((e, r) => {
|
|
4533
|
+
let i = ie(e), o = C.col === n && C.row === r;
|
|
4534
|
+
return /* @__PURE__ */ t("rect", {
|
|
4535
|
+
"data-col": n,
|
|
4536
|
+
"data-row": r,
|
|
4537
|
+
x: M + n * y,
|
|
4538
|
+
y: N + r * y,
|
|
4539
|
+
width: a,
|
|
4540
|
+
height: a,
|
|
4541
|
+
rx: I,
|
|
4542
|
+
fill: re(e),
|
|
4543
|
+
opacity: e.future ? .35 : 1,
|
|
4544
|
+
className: Ga.cell,
|
|
4545
|
+
role: "gridcell",
|
|
4546
|
+
"aria-label": i,
|
|
4547
|
+
"aria-disabled": e.future || void 0,
|
|
4548
|
+
tabIndex: o ? 0 : -1,
|
|
4549
|
+
onClick: () => !e.future && g?.({
|
|
4550
|
+
date: e.iso,
|
|
4551
|
+
count: e.count
|
|
4552
|
+
}),
|
|
4553
|
+
onKeyDown: (e) => te(e, n, r),
|
|
4554
|
+
onFocus: () => w({
|
|
4555
|
+
col: n,
|
|
4556
|
+
row: r
|
|
4557
|
+
}),
|
|
4558
|
+
onMouseEnter: (e) => ne(e, i),
|
|
4559
|
+
onMouseLeave: () => E(null)
|
|
4560
|
+
}, `${n}-${r}`);
|
|
4561
|
+
})
|
|
4562
|
+
}, n))
|
|
4563
|
+
})
|
|
4564
|
+
]
|
|
4565
|
+
}),
|
|
4566
|
+
T && /* @__PURE__ */ t("div", {
|
|
4567
|
+
className: Ga.tooltip,
|
|
4568
|
+
style: {
|
|
4569
|
+
left: T.x,
|
|
4570
|
+
top: T.y
|
|
4571
|
+
},
|
|
4572
|
+
role: "tooltip",
|
|
4573
|
+
children: T.text
|
|
4574
|
+
}),
|
|
4575
|
+
u && /* @__PURE__ */ n("div", {
|
|
4576
|
+
className: Ga.legend,
|
|
4577
|
+
children: [
|
|
4578
|
+
/* @__PURE__ */ t("span", {
|
|
4579
|
+
className: Ga.legendLabel,
|
|
4580
|
+
children: "Less"
|
|
4581
|
+
}),
|
|
4582
|
+
Array.from({ length: r + 1 }, (e, n) => /* @__PURE__ */ t("svg", {
|
|
4583
|
+
width: a,
|
|
4584
|
+
height: a,
|
|
4585
|
+
"aria-hidden": "true",
|
|
4586
|
+
className: Ga.legendCell,
|
|
4587
|
+
children: /* @__PURE__ */ t("rect", {
|
|
4588
|
+
width: a,
|
|
4589
|
+
height: a,
|
|
4590
|
+
rx: I,
|
|
4591
|
+
fill: S[Math.min(n, S.length - 1)]
|
|
4592
|
+
})
|
|
4593
|
+
}, n)),
|
|
4594
|
+
/* @__PURE__ */ t("span", {
|
|
4595
|
+
className: Ga.legendLabel,
|
|
4596
|
+
children: "More"
|
|
4597
|
+
})
|
|
4598
|
+
]
|
|
4599
|
+
})
|
|
4600
|
+
]
|
|
4601
|
+
});
|
|
4602
|
+
}
|
|
4354
4603
|
//#endregion
|
|
4355
|
-
export { Dt as ActionRow,
|
|
4604
|
+
export { Dt as ActionRow, ne as Avatar, je as Badge, Te as Banner, la as Bin, g as Blockquote, ia as BottomSheet, dr as Box, kt as BoxedList, Hr as BreakpointBin, v as Button, da as ButtonContent, Wr as ButtonRow, M as Card, ca as Carousel, oa as CarouselIndicatorDots, sa as CarouselIndicatorLines, ci as CheckRow, ce as Checkbox, hr as Chip, $n as Clamp, ji as ComboRow, eo as ContributionGraph, 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, L 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, Wa as PathBar, Zn as Popover, Va as PreferencesDialog, ba as PreferencesGroup, Sa as PreferencesPage, me as ProgressBar, fe as RadioButton, Be as SearchBar, ie as Separator, ma 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, P as Spinner, Kr as SplitButton, He as StatusPage, oe as Switch, si as SwitchRow, wt as TabBar, Tt as TabItem, Et as TabPanel, O as Text, ue as TextField, Ha as Timeline, Ht as Toast, Ut as Toaster, lr as ToggleGroup, ur as ToggleGroupItem, Jr as Toolbar, ga as ToolbarView, vt as Tooltip, jt as ViewSwitcher, rr as ViewSwitcherBar, Mt as ViewSwitcherItem, Br as ViewSwitcherSidebar, Vr as ViewSwitcherSidebarItem, va as WindowTitle, pr as WrapBox, We as useBreakpoint, qi as useNavigation, ut as useSidebarCollapsed };
|
|
4356
4605
|
|
|
4357
4606
|
//# sourceMappingURL=index.js.map
|