@auldrant/ui 0.8.1 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +24 -0
- package/README.md +8 -1
- package/dist/auldrant-ui.css +1 -1
- package/dist/auldrant-ui.js +597 -356
- package/dist/components/Dialog.d.ts +26 -0
- package/dist/components/DialogBase.d.ts +45 -0
- package/dist/components/Modal.d.ts +31 -0
- package/dist/components/Table.d.ts +8 -0
- package/dist/components/Theme.d.ts +9 -0
- package/dist/index.d.ts +4 -1
- package/package.json +4 -2
package/dist/auldrant-ui.js
CHANGED
|
@@ -1,269 +1,482 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { useId as
|
|
3
|
-
import { signal as
|
|
4
|
-
import { h as
|
|
5
|
-
function
|
|
1
|
+
import { jsx as r, jsxs as m, Fragment as se } from "preact/jsx-runtime";
|
|
2
|
+
import { useId as $, useRef as P, useEffect as H } from "preact/hooks";
|
|
3
|
+
import { signal as U, useSignal as D, effect as le } from "@preact/signals";
|
|
4
|
+
import { h as K, toChildArray as re } from "preact";
|
|
5
|
+
function v(...t) {
|
|
6
6
|
return t.filter(Boolean).join(" ");
|
|
7
7
|
}
|
|
8
|
-
function
|
|
8
|
+
function N(...t) {
|
|
9
9
|
return t.filter(Boolean).join(" ") || void 0;
|
|
10
10
|
}
|
|
11
|
-
const
|
|
12
|
-
button:
|
|
13
|
-
},
|
|
14
|
-
const { label: e, onClick: s, type: n = "button", disabled:
|
|
15
|
-
return /* @__PURE__ */
|
|
16
|
-
},
|
|
17
|
-
card:
|
|
18
|
-
},
|
|
11
|
+
const ae = "_button_4gn7y_1 _focus-ring_4u8pk_3 _disabled_4u8pk_8", oe = {
|
|
12
|
+
button: ae
|
|
13
|
+
}, W = (t) => {
|
|
14
|
+
const { label: e, onClick: s, type: n = "button", disabled: l, class: a } = t;
|
|
15
|
+
return /* @__PURE__ */ r("button", { type: n, class: v(oe.button, a), onClick: s, disabled: l, children: e });
|
|
16
|
+
}, ce = "_card_awzw5_1", ie = {
|
|
17
|
+
card: ce
|
|
18
|
+
}, Pt = (t) => {
|
|
19
19
|
const { children: e, class: s } = t;
|
|
20
|
-
return /* @__PURE__ */
|
|
21
|
-
},
|
|
22
|
-
field:
|
|
23
|
-
input:
|
|
24
|
-
error:
|
|
25
|
-
},
|
|
26
|
-
const { label: e, name: s, checked: n, required:
|
|
27
|
-
return /* @__PURE__ */ m("div", { class:
|
|
28
|
-
/* @__PURE__ */
|
|
20
|
+
return /* @__PURE__ */ r("div", { class: v(ie.card, s), children: e });
|
|
21
|
+
}, de = "_field_17xwz_1", ue = "_input_17xwz_8 _check-input_4u8pk_32 _focus-ring_4u8pk_3 _disabled_4u8pk_8", _e = "_error_17xwz_12 _field-error_4u8pk_36", T = {
|
|
22
|
+
field: de,
|
|
23
|
+
input: ue,
|
|
24
|
+
error: _e
|
|
25
|
+
}, Tt = (t) => {
|
|
26
|
+
const { label: e, name: s, checked: n, required: l, disabled: a, error: o, onChange: c, class: i } = t, h = $(), d = `${h}-error`;
|
|
27
|
+
return /* @__PURE__ */ m("div", { class: v(T.field, i), children: [
|
|
28
|
+
/* @__PURE__ */ r(
|
|
29
29
|
"input",
|
|
30
30
|
{
|
|
31
|
-
id:
|
|
32
|
-
class:
|
|
31
|
+
id: h,
|
|
32
|
+
class: T.input,
|
|
33
33
|
type: "checkbox",
|
|
34
34
|
name: s,
|
|
35
35
|
checked: n,
|
|
36
|
-
required:
|
|
37
|
-
disabled:
|
|
38
|
-
"aria-invalid": !!
|
|
39
|
-
"aria-describedby":
|
|
40
|
-
onChange: c && ((
|
|
36
|
+
required: l,
|
|
37
|
+
disabled: a,
|
|
38
|
+
"aria-invalid": !!o || void 0,
|
|
39
|
+
"aria-describedby": N(o && d),
|
|
40
|
+
onChange: c && ((f) => c(f.target.checked))
|
|
41
41
|
}
|
|
42
42
|
),
|
|
43
|
-
/* @__PURE__ */
|
|
44
|
-
|
|
43
|
+
/* @__PURE__ */ r("label", { for: h, children: e }),
|
|
44
|
+
o && /* @__PURE__ */ r("p", { id: d, class: T.error, role: "alert", children: o })
|
|
45
45
|
] });
|
|
46
|
-
},
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
46
|
+
}, pe = "_dialog_1lxj9_1", he = "_panel_1lxj9_14", fe = "_header_1lxj9_23", me = "_title_1lxj9_30", be = "_close_1lxj9_35 _focus-ring_4u8pk_3", ve = "_body_1lxj9_51", ke = "_message_1lxj9_56", ge = "_footer_1lxj9_60", ye = "_action_1lxj9_67 _focus-ring_4u8pk_3 _disabled_4u8pk_8", we = "_primary_1lxj9_82", y = {
|
|
47
|
+
dialog: pe,
|
|
48
|
+
panel: he,
|
|
49
|
+
header: fe,
|
|
50
|
+
title: me,
|
|
51
|
+
close: be,
|
|
52
|
+
body: ve,
|
|
53
|
+
message: ke,
|
|
54
|
+
footer: ge,
|
|
55
|
+
action: ye,
|
|
56
|
+
primary: we
|
|
57
|
+
}, R = {
|
|
58
|
+
cancel: "Cancel",
|
|
59
|
+
cancelDescription: "Dismiss this dialog",
|
|
60
|
+
closeDescription: "Close this dialog"
|
|
61
|
+
};
|
|
62
|
+
function xe(t) {
|
|
63
|
+
const e = t.split("+"), s = e.at(-1) ?? "", n = e.slice(0, -1).map((l) => l.toLowerCase());
|
|
64
|
+
return {
|
|
65
|
+
key: s.toLowerCase(),
|
|
66
|
+
ctrl: n.includes("ctrl"),
|
|
67
|
+
shift: n.includes("shift"),
|
|
68
|
+
alt: n.includes("alt")
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
function z(t) {
|
|
72
|
+
return `(${t})`;
|
|
73
|
+
}
|
|
74
|
+
const Y = (t) => {
|
|
75
|
+
const {
|
|
76
|
+
open: e,
|
|
77
|
+
title: s,
|
|
78
|
+
alert: n,
|
|
79
|
+
onDismiss: l,
|
|
80
|
+
onBackdropClick: a,
|
|
81
|
+
message: o,
|
|
82
|
+
defaultAction: c,
|
|
83
|
+
actions: i,
|
|
84
|
+
cancelLabel: h,
|
|
85
|
+
onCancel: d,
|
|
86
|
+
focusCancel: f,
|
|
87
|
+
children: _,
|
|
88
|
+
class: u
|
|
89
|
+
} = t, b = P(null), g = P(null), C = P(null), I = $();
|
|
90
|
+
H(() => {
|
|
91
|
+
const p = b.current;
|
|
92
|
+
p && (e && !p.open ? (p.showModal(), f && C.current ? C.current.focus() : g.current && g.current.focus()) : !e && p.open && p.close());
|
|
93
|
+
}, [e, f]), H(() => {
|
|
94
|
+
const p = b.current;
|
|
95
|
+
if (!p)
|
|
96
|
+
return;
|
|
97
|
+
const k = (L) => {
|
|
98
|
+
L.preventDefault(), l();
|
|
99
|
+
};
|
|
100
|
+
return p.addEventListener("cancel", k), () => p.removeEventListener("cancel", k);
|
|
101
|
+
}, [l]), H(() => {
|
|
102
|
+
const p = b.current;
|
|
103
|
+
if (!p || !e)
|
|
104
|
+
return;
|
|
105
|
+
const k = [...i ?? [], ...c ? [c] : []];
|
|
106
|
+
if (k.length === 0)
|
|
107
|
+
return;
|
|
108
|
+
const L = k.map((w) => ({
|
|
109
|
+
parsed: xe(w.shortcut),
|
|
110
|
+
handler: w.onClick
|
|
111
|
+
})), j = (w) => {
|
|
112
|
+
for (const { parsed: A, handler: ne } of L)
|
|
113
|
+
if (w.key.toLowerCase() === A.key && w.ctrlKey === A.ctrl && w.shiftKey === A.shift && w.altKey === A.alt) {
|
|
114
|
+
w.preventDefault(), ne();
|
|
115
|
+
return;
|
|
116
|
+
}
|
|
117
|
+
};
|
|
118
|
+
return p.addEventListener("keydown", j), () => p.removeEventListener("keydown", j);
|
|
119
|
+
}, [e, i, c]), H(() => {
|
|
120
|
+
const p = b.current;
|
|
121
|
+
if (!p || !e || !a)
|
|
122
|
+
return;
|
|
123
|
+
const k = (L) => {
|
|
124
|
+
L.target === p && a();
|
|
125
|
+
};
|
|
126
|
+
return p.addEventListener("click", k), () => p.removeEventListener("click", k);
|
|
127
|
+
}, [e, a]);
|
|
128
|
+
const q = c || d || i && i.length > 0;
|
|
129
|
+
return /* @__PURE__ */ r(
|
|
130
|
+
"dialog",
|
|
131
|
+
{
|
|
132
|
+
ref: b,
|
|
133
|
+
class: v(y.dialog, u),
|
|
134
|
+
"aria-labelledby": I,
|
|
135
|
+
role: n ? "alertdialog" : void 0,
|
|
136
|
+
children: /* @__PURE__ */ m("div", { class: y.panel, children: [
|
|
137
|
+
/* @__PURE__ */ m("header", { class: y.header, children: [
|
|
138
|
+
/* @__PURE__ */ r("h2", { id: I, class: y.title, children: s }),
|
|
139
|
+
!n && /* @__PURE__ */ r(
|
|
140
|
+
"button",
|
|
141
|
+
{
|
|
142
|
+
type: "button",
|
|
143
|
+
class: y.close,
|
|
144
|
+
title: R.closeDescription,
|
|
145
|
+
onClick: l,
|
|
146
|
+
children: "×"
|
|
147
|
+
}
|
|
148
|
+
)
|
|
149
|
+
] }),
|
|
150
|
+
/* @__PURE__ */ m("div", { class: y.body, children: [
|
|
151
|
+
o && /* @__PURE__ */ r("p", { class: y.message, children: o }),
|
|
152
|
+
_
|
|
153
|
+
] }),
|
|
154
|
+
q && /* @__PURE__ */ m("footer", { class: y.footer, children: [
|
|
155
|
+
i?.map((p) => /* @__PURE__ */ m(
|
|
156
|
+
"button",
|
|
157
|
+
{
|
|
158
|
+
type: "button",
|
|
159
|
+
class: y.action,
|
|
160
|
+
title: p.description,
|
|
161
|
+
onClick: p.onClick,
|
|
162
|
+
children: [
|
|
163
|
+
p.label,
|
|
164
|
+
" ",
|
|
165
|
+
z(p.shortcut)
|
|
166
|
+
]
|
|
167
|
+
},
|
|
168
|
+
p.label
|
|
169
|
+
)),
|
|
170
|
+
c && /* @__PURE__ */ m(
|
|
171
|
+
"button",
|
|
172
|
+
{
|
|
173
|
+
ref: g,
|
|
174
|
+
type: "button",
|
|
175
|
+
class: v(y.action, y.primary),
|
|
176
|
+
title: c.description,
|
|
177
|
+
onClick: c.onClick,
|
|
178
|
+
children: [
|
|
179
|
+
c.label,
|
|
180
|
+
" ",
|
|
181
|
+
z(c.shortcut)
|
|
182
|
+
]
|
|
183
|
+
}
|
|
184
|
+
),
|
|
185
|
+
d && /* @__PURE__ */ m(
|
|
186
|
+
"button",
|
|
187
|
+
{
|
|
188
|
+
ref: C,
|
|
189
|
+
type: "button",
|
|
190
|
+
class: y.action,
|
|
191
|
+
title: R.cancelDescription,
|
|
192
|
+
onClick: d,
|
|
193
|
+
children: [
|
|
194
|
+
h ?? R.cancel,
|
|
195
|
+
" ",
|
|
196
|
+
z("Esc")
|
|
197
|
+
]
|
|
198
|
+
}
|
|
199
|
+
)
|
|
200
|
+
] })
|
|
201
|
+
] })
|
|
202
|
+
}
|
|
203
|
+
);
|
|
204
|
+
}, Rt = (t) => {
|
|
205
|
+
const {
|
|
206
|
+
open: e,
|
|
207
|
+
title: s,
|
|
208
|
+
onClose: n,
|
|
209
|
+
message: l,
|
|
210
|
+
defaultAction: a,
|
|
211
|
+
actions: o,
|
|
212
|
+
children: c,
|
|
213
|
+
class: i
|
|
214
|
+
} = t;
|
|
215
|
+
return /* @__PURE__ */ r(
|
|
216
|
+
Y,
|
|
217
|
+
{
|
|
218
|
+
open: e,
|
|
219
|
+
title: s,
|
|
220
|
+
onDismiss: n,
|
|
221
|
+
onBackdropClick: n,
|
|
222
|
+
message: l,
|
|
223
|
+
defaultAction: a,
|
|
224
|
+
actions: o,
|
|
225
|
+
class: i,
|
|
226
|
+
children: c
|
|
227
|
+
}
|
|
228
|
+
);
|
|
229
|
+
}, $e = "_link_7wgic_1 _link_4u8pk_22 _focus-ring_4u8pk_3", Ce = {
|
|
230
|
+
link: $e
|
|
231
|
+
}, zt = (t) => {
|
|
232
|
+
const { href: e, fileName: s, label: n, class: l } = t;
|
|
233
|
+
return /* @__PURE__ */ r("a", { href: e, download: s, class: v(Ce.link, l), children: n });
|
|
234
|
+
}, Ie = "_form_jr324_1", Le = "_actions_jr324_6", Ne = "_status_jr324_13", O = {
|
|
235
|
+
form: Ie,
|
|
236
|
+
actions: Le,
|
|
237
|
+
status: Ne
|
|
238
|
+
}, Ot = (t) => {
|
|
56
239
|
const {
|
|
57
240
|
onSubmit: e,
|
|
58
241
|
submitLabel: s = "Submit",
|
|
59
242
|
resetLabel: n,
|
|
60
|
-
status:
|
|
61
|
-
children:
|
|
62
|
-
class:
|
|
243
|
+
status: l,
|
|
244
|
+
children: a,
|
|
245
|
+
class: o
|
|
63
246
|
} = t;
|
|
64
247
|
return /* @__PURE__ */ m(
|
|
65
248
|
"form",
|
|
66
249
|
{
|
|
67
|
-
class:
|
|
250
|
+
class: v(O.form, o),
|
|
68
251
|
onSubmit: (c) => {
|
|
69
252
|
c.preventDefault();
|
|
70
253
|
const i = new FormData(c.currentTarget);
|
|
71
254
|
e(i);
|
|
72
255
|
},
|
|
73
256
|
children: [
|
|
74
|
-
|
|
75
|
-
/* @__PURE__ */ m("div", { class:
|
|
76
|
-
/* @__PURE__ */
|
|
77
|
-
n && /* @__PURE__ */
|
|
257
|
+
a,
|
|
258
|
+
/* @__PURE__ */ m("div", { class: O.actions, children: [
|
|
259
|
+
/* @__PURE__ */ r(W, { type: "submit", label: s }),
|
|
260
|
+
n && /* @__PURE__ */ r(W, { type: "reset", label: n })
|
|
78
261
|
] }),
|
|
79
|
-
|
|
262
|
+
l && /* @__PURE__ */ r("output", { class: O.status, children: l })
|
|
80
263
|
]
|
|
81
264
|
}
|
|
82
265
|
);
|
|
83
|
-
},
|
|
84
|
-
field:
|
|
85
|
-
label:
|
|
86
|
-
required:
|
|
87
|
-
error:
|
|
88
|
-
},
|
|
89
|
-
const { for: e, label: s, required: n, error:
|
|
90
|
-
return /* @__PURE__ */ m("div", { class:
|
|
91
|
-
/* @__PURE__ */ m("label", { class:
|
|
266
|
+
}, je = "_field_7l9ux_1", Ee = "_label_7l9ux_8", De = "_required_7l9ux_12", Se = "_error_7l9ux_16 _field-error_4u8pk_36", B = {
|
|
267
|
+
field: je,
|
|
268
|
+
label: Ee,
|
|
269
|
+
required: De,
|
|
270
|
+
error: Se
|
|
271
|
+
}, S = (t) => {
|
|
272
|
+
const { for: e, label: s, required: n, error: l, errorId: a, children: o, class: c } = t;
|
|
273
|
+
return /* @__PURE__ */ m("div", { class: v(B.field, c), children: [
|
|
274
|
+
/* @__PURE__ */ m("label", { class: B.label, for: e, children: [
|
|
92
275
|
s,
|
|
93
276
|
":",
|
|
94
|
-
n && /* @__PURE__ */ m("span", { class:
|
|
277
|
+
n && /* @__PURE__ */ m("span", { class: B.required, "aria-hidden": "true", children: [
|
|
95
278
|
" ",
|
|
96
279
|
"*"
|
|
97
280
|
] })
|
|
98
281
|
] }),
|
|
99
|
-
|
|
100
|
-
|
|
282
|
+
o,
|
|
283
|
+
l && /* @__PURE__ */ r("p", { id: a, class: B.error, role: "alert", children: l })
|
|
101
284
|
] });
|
|
102
|
-
},
|
|
103
|
-
input:
|
|
104
|
-
},
|
|
285
|
+
}, Ae = "_input_1j10x_1 _text-input_4u8pk_13 _focus-ring_4u8pk_3 _disabled_4u8pk_8", He = {
|
|
286
|
+
input: Ae
|
|
287
|
+
}, Be = {
|
|
105
288
|
email: "email",
|
|
106
289
|
tel: "tel",
|
|
107
290
|
url: "url"
|
|
108
|
-
},
|
|
291
|
+
}, Ft = (t) => {
|
|
109
292
|
const {
|
|
110
293
|
label: e,
|
|
111
294
|
name: s,
|
|
112
295
|
type: n = "text",
|
|
113
|
-
value:
|
|
114
|
-
placeholder:
|
|
115
|
-
maxLength:
|
|
296
|
+
value: l,
|
|
297
|
+
placeholder: a,
|
|
298
|
+
maxLength: o,
|
|
116
299
|
autocomplete: c,
|
|
117
300
|
readOnly: i,
|
|
118
|
-
pattern:
|
|
119
|
-
required:
|
|
120
|
-
disabled:
|
|
301
|
+
pattern: h,
|
|
302
|
+
required: d,
|
|
303
|
+
disabled: f,
|
|
121
304
|
error: _,
|
|
122
|
-
onInput:
|
|
123
|
-
class:
|
|
124
|
-
} = t,
|
|
125
|
-
return /* @__PURE__ */
|
|
126
|
-
|
|
305
|
+
onInput: u,
|
|
306
|
+
class: b
|
|
307
|
+
} = t, g = $(), C = `${g}-error`;
|
|
308
|
+
return /* @__PURE__ */ r(
|
|
309
|
+
S,
|
|
127
310
|
{
|
|
128
311
|
label: e,
|
|
129
|
-
for:
|
|
130
|
-
required:
|
|
312
|
+
for: g,
|
|
313
|
+
required: d,
|
|
131
314
|
error: _,
|
|
132
|
-
errorId:
|
|
133
|
-
class:
|
|
134
|
-
children: /* @__PURE__ */
|
|
315
|
+
errorId: C,
|
|
316
|
+
class: b,
|
|
317
|
+
children: /* @__PURE__ */ r(
|
|
135
318
|
"input",
|
|
136
319
|
{
|
|
137
|
-
id:
|
|
138
|
-
class:
|
|
320
|
+
id: g,
|
|
321
|
+
class: He.input,
|
|
139
322
|
type: n,
|
|
140
323
|
name: s,
|
|
141
|
-
value:
|
|
142
|
-
placeholder:
|
|
143
|
-
maxLength:
|
|
144
|
-
autoComplete: c ??
|
|
324
|
+
value: l,
|
|
325
|
+
placeholder: a,
|
|
326
|
+
maxLength: o,
|
|
327
|
+
autoComplete: c ?? Be[n],
|
|
145
328
|
readOnly: i,
|
|
146
|
-
pattern:
|
|
147
|
-
required:
|
|
148
|
-
disabled:
|
|
329
|
+
pattern: h,
|
|
330
|
+
required: d,
|
|
331
|
+
disabled: f,
|
|
149
332
|
"aria-invalid": !!_ || void 0,
|
|
150
|
-
"aria-describedby":
|
|
151
|
-
onInput:
|
|
333
|
+
"aria-describedby": N(_ && C),
|
|
334
|
+
onInput: u && ((I) => u(I.target.value))
|
|
152
335
|
}
|
|
153
336
|
)
|
|
154
337
|
}
|
|
155
338
|
);
|
|
156
|
-
},
|
|
157
|
-
function
|
|
339
|
+
}, G = U(window.location.pathname), ee = U(window.location.hash.slice(1));
|
|
340
|
+
function qe(t) {
|
|
158
341
|
const e = t.indexOf("#");
|
|
159
342
|
let s = "", n = t;
|
|
160
343
|
e >= 0 && (s = t.slice(e + 1), n = t.slice(0, e));
|
|
161
|
-
const
|
|
162
|
-
let
|
|
163
|
-
return
|
|
344
|
+
const l = n.indexOf("?");
|
|
345
|
+
let a = "", o = n;
|
|
346
|
+
return l >= 0 && (a = n.slice(l), o = n.slice(0, l)), { pathname: o || "/", search: a, hash: s };
|
|
164
347
|
}
|
|
165
|
-
function
|
|
166
|
-
const { pathname: s, search: n, hash:
|
|
167
|
-
e?.replace ? history.replaceState(null, "",
|
|
348
|
+
function Pe(t, e) {
|
|
349
|
+
const { pathname: s, search: n, hash: l } = qe(t), a = s + n + (l ? `#${l}` : "");
|
|
350
|
+
e?.replace ? history.replaceState(null, "", a) : history.pushState(null, "", a), G.value = s, ee.value = l;
|
|
168
351
|
}
|
|
169
352
|
window.addEventListener("popstate", () => {
|
|
170
|
-
|
|
353
|
+
G.value = window.location.pathname, ee.value = window.location.hash.slice(1);
|
|
171
354
|
});
|
|
172
|
-
const
|
|
173
|
-
link:
|
|
355
|
+
const Te = "_link_7wgic_1 _link_4u8pk_22 _focus-ring_4u8pk_3", Z = {
|
|
356
|
+
link: Te
|
|
174
357
|
};
|
|
175
|
-
function
|
|
358
|
+
function Re(t) {
|
|
176
359
|
try {
|
|
177
360
|
return new URL(t, window.location.href).origin !== window.location.origin;
|
|
178
361
|
} catch {
|
|
179
362
|
return !1;
|
|
180
363
|
}
|
|
181
364
|
}
|
|
182
|
-
const
|
|
183
|
-
const { href: e, children: s, external: n, class:
|
|
184
|
-
return n ??
|
|
365
|
+
const Mt = (t) => {
|
|
366
|
+
const { href: e, children: s, external: n, class: l } = t;
|
|
367
|
+
return n ?? Re(e) ? /* @__PURE__ */ r("a", { href: e, class: v(Z.link, l), rel: "noopener noreferrer", children: s }) : /* @__PURE__ */ r(
|
|
185
368
|
"a",
|
|
186
369
|
{
|
|
187
370
|
href: e,
|
|
188
|
-
class:
|
|
189
|
-
onClick: (
|
|
190
|
-
|
|
371
|
+
class: v(Z.link, l),
|
|
372
|
+
onClick: (o) => {
|
|
373
|
+
o.preventDefault(), Pe(e);
|
|
191
374
|
},
|
|
192
375
|
children: s
|
|
193
376
|
}
|
|
194
377
|
);
|
|
195
|
-
},
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
378
|
+
}, Kt = (t) => {
|
|
379
|
+
const {
|
|
380
|
+
open: e,
|
|
381
|
+
title: s,
|
|
382
|
+
onCancel: n,
|
|
383
|
+
cancelLabel: l,
|
|
384
|
+
message: a,
|
|
385
|
+
defaultAction: o,
|
|
386
|
+
actions: c,
|
|
387
|
+
focusCancel: i,
|
|
388
|
+
children: h,
|
|
389
|
+
class: d
|
|
390
|
+
} = t;
|
|
391
|
+
return /* @__PURE__ */ r(
|
|
392
|
+
Y,
|
|
393
|
+
{
|
|
394
|
+
open: e,
|
|
395
|
+
title: s,
|
|
396
|
+
alert: !0,
|
|
397
|
+
onDismiss: n,
|
|
398
|
+
onCancel: n,
|
|
399
|
+
cancelLabel: l,
|
|
400
|
+
message: a,
|
|
401
|
+
defaultAction: o,
|
|
402
|
+
actions: c,
|
|
403
|
+
focusCancel: i,
|
|
404
|
+
class: d,
|
|
405
|
+
children: h
|
|
406
|
+
}
|
|
407
|
+
);
|
|
408
|
+
}, ze = "_nav_778nl_1", Oe = "_title_778nl_6", V = {
|
|
409
|
+
nav: ze,
|
|
410
|
+
title: Oe
|
|
411
|
+
}, Ut = (t) => {
|
|
412
|
+
const { title: e, children: s, class: n } = t, l = $();
|
|
413
|
+
return /* @__PURE__ */ m("nav", { class: v(V.nav, n), "aria-labelledby": e ? l : void 0, children: [
|
|
414
|
+
e && /* @__PURE__ */ r("h2", { id: l, class: V.title, children: e }),
|
|
202
415
|
s
|
|
203
416
|
] });
|
|
204
|
-
},
|
|
205
|
-
input:
|
|
206
|
-
},
|
|
417
|
+
}, Fe = "_input_1j10x_1 _text-input_4u8pk_13 _focus-ring_4u8pk_3 _disabled_4u8pk_8", Me = {
|
|
418
|
+
input: Fe
|
|
419
|
+
}, Gt = (t) => {
|
|
207
420
|
const {
|
|
208
421
|
label: e,
|
|
209
422
|
name: s,
|
|
210
423
|
min: n,
|
|
211
|
-
max:
|
|
212
|
-
step:
|
|
213
|
-
value:
|
|
424
|
+
max: l,
|
|
425
|
+
step: a,
|
|
426
|
+
value: o,
|
|
214
427
|
placeholder: c,
|
|
215
428
|
required: i,
|
|
216
|
-
disabled:
|
|
217
|
-
error:
|
|
218
|
-
onInput:
|
|
429
|
+
disabled: h,
|
|
430
|
+
error: d,
|
|
431
|
+
onInput: f,
|
|
219
432
|
class: _
|
|
220
|
-
} = t,
|
|
221
|
-
return /* @__PURE__ */
|
|
222
|
-
|
|
433
|
+
} = t, u = $(), b = `${u}-error`;
|
|
434
|
+
return /* @__PURE__ */ r(
|
|
435
|
+
S,
|
|
223
436
|
{
|
|
224
437
|
label: e,
|
|
225
|
-
for:
|
|
438
|
+
for: u,
|
|
226
439
|
required: i,
|
|
227
|
-
error:
|
|
228
|
-
errorId:
|
|
440
|
+
error: d,
|
|
441
|
+
errorId: b,
|
|
229
442
|
class: _,
|
|
230
|
-
children: /* @__PURE__ */
|
|
443
|
+
children: /* @__PURE__ */ r(
|
|
231
444
|
"input",
|
|
232
445
|
{
|
|
233
|
-
id:
|
|
234
|
-
class:
|
|
446
|
+
id: u,
|
|
447
|
+
class: Me.input,
|
|
235
448
|
type: "number",
|
|
236
449
|
name: s,
|
|
237
450
|
min: n,
|
|
238
|
-
max:
|
|
239
|
-
step:
|
|
240
|
-
value:
|
|
451
|
+
max: l,
|
|
452
|
+
step: a,
|
|
453
|
+
value: o,
|
|
241
454
|
placeholder: c,
|
|
242
455
|
required: i,
|
|
243
|
-
disabled:
|
|
244
|
-
"aria-invalid": !!
|
|
245
|
-
"aria-describedby":
|
|
246
|
-
onInput:
|
|
456
|
+
disabled: h,
|
|
457
|
+
"aria-invalid": !!d || void 0,
|
|
458
|
+
"aria-describedby": N(d && b),
|
|
459
|
+
onInput: f && ((g) => f(g.target.valueAsNumber))
|
|
247
460
|
}
|
|
248
461
|
)
|
|
249
462
|
}
|
|
250
463
|
);
|
|
251
|
-
},
|
|
252
|
-
wrapper:
|
|
253
|
-
input:
|
|
254
|
-
toggle:
|
|
464
|
+
}, Ke = "_wrapper_16zfv_1", Ue = "_input_16zfv_5 _text-input_4u8pk_13 _focus-ring_4u8pk_3 _disabled_4u8pk_8", Ge = "_toggle_16zfv_11 _focus-ring_4u8pk_3 _disabled_4u8pk_8", F = {
|
|
465
|
+
wrapper: Ke,
|
|
466
|
+
input: Ue,
|
|
467
|
+
toggle: Ge
|
|
255
468
|
};
|
|
256
|
-
const
|
|
257
|
-
const
|
|
258
|
-
const
|
|
469
|
+
const We = (...t) => t.filter((e, s, n) => !!e && e.trim() !== "" && n.indexOf(e) === s).join(" ").trim();
|
|
470
|
+
const J = (t) => t.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
|
471
|
+
const Ze = (t) => t.replace(
|
|
259
472
|
/^([A-Z])|[\s-_]+(\w)/g,
|
|
260
473
|
(e, s, n) => n ? n.toUpperCase() : s.toLowerCase()
|
|
261
474
|
);
|
|
262
|
-
const
|
|
263
|
-
const e =
|
|
475
|
+
const Q = (t) => {
|
|
476
|
+
const e = Ze(t);
|
|
264
477
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
265
478
|
};
|
|
266
|
-
var
|
|
479
|
+
var Ve = {
|
|
267
480
|
xmlns: "http://www.w3.org/2000/svg",
|
|
268
481
|
width: 24,
|
|
269
482
|
height: 24,
|
|
@@ -274,53 +487,63 @@ var je = {
|
|
|
274
487
|
"stroke-linecap": "round",
|
|
275
488
|
"stroke-linejoin": "round"
|
|
276
489
|
};
|
|
277
|
-
const
|
|
490
|
+
const Je = (t) => {
|
|
278
491
|
for (const e in t)
|
|
279
492
|
if (e.startsWith("aria-") || e === "role" || e === "title")
|
|
280
493
|
return !0;
|
|
281
494
|
return !1;
|
|
282
495
|
};
|
|
283
|
-
const
|
|
496
|
+
const Qe = ({
|
|
284
497
|
color: t = "currentColor",
|
|
285
498
|
size: e = 24,
|
|
286
499
|
strokeWidth: s = 2,
|
|
287
500
|
absoluteStrokeWidth: n,
|
|
288
|
-
children:
|
|
289
|
-
iconNode:
|
|
290
|
-
class:
|
|
501
|
+
children: l,
|
|
502
|
+
iconNode: a,
|
|
503
|
+
class: o = "",
|
|
291
504
|
...c
|
|
292
|
-
}) =>
|
|
505
|
+
}) => K(
|
|
293
506
|
"svg",
|
|
294
507
|
{
|
|
295
|
-
...
|
|
508
|
+
...Ve,
|
|
296
509
|
width: String(e),
|
|
297
510
|
height: e,
|
|
298
511
|
stroke: t,
|
|
299
512
|
"stroke-width": n ? Number(s) * 24 / Number(e) : s,
|
|
300
|
-
class: ["lucide",
|
|
301
|
-
...!
|
|
513
|
+
class: ["lucide", o].join(" "),
|
|
514
|
+
...!l && !Je(c) && { "aria-hidden": "true" },
|
|
302
515
|
...c
|
|
303
516
|
},
|
|
304
|
-
[...
|
|
517
|
+
[...a.map(([i, h]) => K(i, h)), ...re(l)]
|
|
305
518
|
);
|
|
306
|
-
const
|
|
307
|
-
const s = ({ class: n = "", className:
|
|
308
|
-
|
|
519
|
+
const te = (t, e) => {
|
|
520
|
+
const s = ({ class: n = "", className: l = "", children: a, ...o }) => K(
|
|
521
|
+
Qe,
|
|
309
522
|
{
|
|
310
|
-
...
|
|
523
|
+
...o,
|
|
311
524
|
iconNode: e,
|
|
312
|
-
class:
|
|
313
|
-
`lucide-${
|
|
314
|
-
`lucide-${
|
|
525
|
+
class: We(
|
|
526
|
+
`lucide-${J(Q(t))}`,
|
|
527
|
+
`lucide-${J(t)}`,
|
|
315
528
|
n,
|
|
316
|
-
|
|
529
|
+
l
|
|
317
530
|
)
|
|
318
531
|
},
|
|
319
|
-
|
|
532
|
+
a
|
|
320
533
|
);
|
|
321
|
-
return s.displayName =
|
|
534
|
+
return s.displayName = Q(t), s;
|
|
322
535
|
};
|
|
323
|
-
const
|
|
536
|
+
const Xe = te("eye", [
|
|
537
|
+
[
|
|
538
|
+
"path",
|
|
539
|
+
{
|
|
540
|
+
d: "M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",
|
|
541
|
+
key: "1nclc0"
|
|
542
|
+
}
|
|
543
|
+
],
|
|
544
|
+
["circle", { cx: "12", cy: "12", r: "3", key: "1v7zrd" }]
|
|
545
|
+
]);
|
|
546
|
+
const Ye = te("eye-off", [
|
|
324
547
|
[
|
|
325
548
|
"path",
|
|
326
549
|
{
|
|
@@ -337,306 +560,324 @@ const Te = W("eye-off", [
|
|
|
337
560
|
}
|
|
338
561
|
],
|
|
339
562
|
["path", { d: "m2 2 20 20", key: "1ooewy" }]
|
|
340
|
-
])
|
|
341
|
-
const Ae = W("eye", [
|
|
342
|
-
[
|
|
343
|
-
"path",
|
|
344
|
-
{
|
|
345
|
-
d: "M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",
|
|
346
|
-
key: "1nclc0"
|
|
347
|
-
}
|
|
348
|
-
],
|
|
349
|
-
["circle", { cx: "12", cy: "12", r: "3", key: "1v7zrd" }]
|
|
350
|
-
]), Pe = {
|
|
563
|
+
]), et = {
|
|
351
564
|
current: "current-password",
|
|
352
565
|
new: "new-password"
|
|
353
|
-
},
|
|
566
|
+
}, Wt = (t) => {
|
|
354
567
|
const {
|
|
355
568
|
label: e,
|
|
356
569
|
name: s,
|
|
357
570
|
purpose: n,
|
|
358
|
-
value:
|
|
359
|
-
placeholder:
|
|
360
|
-
required:
|
|
571
|
+
value: l,
|
|
572
|
+
placeholder: a,
|
|
573
|
+
required: o,
|
|
361
574
|
disabled: c,
|
|
362
575
|
error: i,
|
|
363
|
-
onInput:
|
|
364
|
-
class:
|
|
365
|
-
} = t,
|
|
366
|
-
return /* @__PURE__ */
|
|
367
|
-
|
|
576
|
+
onInput: h,
|
|
577
|
+
class: d
|
|
578
|
+
} = t, f = $(), _ = `${f}-error`, u = D(!1);
|
|
579
|
+
return /* @__PURE__ */ r(
|
|
580
|
+
S,
|
|
368
581
|
{
|
|
369
582
|
label: e,
|
|
370
|
-
for:
|
|
371
|
-
required:
|
|
583
|
+
for: f,
|
|
584
|
+
required: o,
|
|
372
585
|
error: i,
|
|
373
586
|
errorId: _,
|
|
374
|
-
class:
|
|
375
|
-
children: /* @__PURE__ */ m("div", { class:
|
|
376
|
-
/* @__PURE__ */
|
|
587
|
+
class: d,
|
|
588
|
+
children: /* @__PURE__ */ m("div", { class: F.wrapper, children: [
|
|
589
|
+
/* @__PURE__ */ r(
|
|
377
590
|
"input",
|
|
378
591
|
{
|
|
379
|
-
id:
|
|
380
|
-
class:
|
|
381
|
-
type:
|
|
592
|
+
id: f,
|
|
593
|
+
class: F.input,
|
|
594
|
+
type: u.value ? "text" : "password",
|
|
382
595
|
name: s,
|
|
383
|
-
value:
|
|
384
|
-
placeholder:
|
|
385
|
-
autoComplete:
|
|
386
|
-
required:
|
|
596
|
+
value: l,
|
|
597
|
+
placeholder: a,
|
|
598
|
+
autoComplete: et[n],
|
|
599
|
+
required: o,
|
|
387
600
|
disabled: c,
|
|
388
601
|
"aria-invalid": !!i || void 0,
|
|
389
|
-
"aria-describedby":
|
|
390
|
-
onInput:
|
|
602
|
+
"aria-describedby": N(i && _),
|
|
603
|
+
onInput: h && ((b) => h(b.target.value))
|
|
391
604
|
}
|
|
392
605
|
),
|
|
393
|
-
/* @__PURE__ */
|
|
606
|
+
/* @__PURE__ */ r(
|
|
394
607
|
"button",
|
|
395
608
|
{
|
|
396
609
|
type: "button",
|
|
397
|
-
class:
|
|
610
|
+
class: F.toggle,
|
|
398
611
|
disabled: c,
|
|
399
|
-
"aria-label":
|
|
612
|
+
"aria-label": u.value ? "Hide password" : "Show password",
|
|
400
613
|
onClick: () => {
|
|
401
|
-
|
|
614
|
+
u.value = !u.value;
|
|
402
615
|
},
|
|
403
|
-
children:
|
|
616
|
+
children: u.value ? /* @__PURE__ */ r(Ye, { size: "1em" }) : /* @__PURE__ */ r(Xe, { size: "1em" })
|
|
404
617
|
}
|
|
405
618
|
)
|
|
406
619
|
] })
|
|
407
620
|
}
|
|
408
621
|
);
|
|
409
|
-
},
|
|
410
|
-
fieldset:
|
|
411
|
-
legend:
|
|
412
|
-
option:
|
|
413
|
-
input:
|
|
414
|
-
error:
|
|
415
|
-
},
|
|
622
|
+
}, tt = "_fieldset_lymkd_1", nt = "_legend_lymkd_6", st = "_option_lymkd_11", lt = "_input_lymkd_19 _check-input_4u8pk_32 _focus-ring_4u8pk_3", rt = "_error_lymkd_23 _field-error_4u8pk_36", E = {
|
|
623
|
+
fieldset: tt,
|
|
624
|
+
legend: nt,
|
|
625
|
+
option: st,
|
|
626
|
+
input: lt,
|
|
627
|
+
error: rt
|
|
628
|
+
}, Zt = (t) => {
|
|
416
629
|
const {
|
|
417
630
|
legend: e,
|
|
418
631
|
name: s,
|
|
419
632
|
options: n,
|
|
420
|
-
value:
|
|
421
|
-
required:
|
|
422
|
-
disabled:
|
|
633
|
+
value: l,
|
|
634
|
+
required: a,
|
|
635
|
+
disabled: o,
|
|
423
636
|
error: c,
|
|
424
637
|
onChange: i,
|
|
425
|
-
class:
|
|
426
|
-
} = t,
|
|
638
|
+
class: h
|
|
639
|
+
} = t, d = $(), f = `${d}-error`;
|
|
427
640
|
return /* @__PURE__ */ m(
|
|
428
641
|
"fieldset",
|
|
429
642
|
{
|
|
430
|
-
class:
|
|
643
|
+
class: v(E.fieldset, h),
|
|
431
644
|
"aria-invalid": !!c || void 0,
|
|
432
|
-
"aria-describedby":
|
|
645
|
+
"aria-describedby": N(c && f),
|
|
433
646
|
children: [
|
|
434
|
-
/* @__PURE__ */
|
|
647
|
+
/* @__PURE__ */ r("legend", { class: E.legend, children: e }),
|
|
435
648
|
n.map((_) => {
|
|
436
|
-
const
|
|
437
|
-
return /* @__PURE__ */ m("div", { class:
|
|
438
|
-
/* @__PURE__ */
|
|
649
|
+
const u = `${d}-${_.value}`;
|
|
650
|
+
return /* @__PURE__ */ m("div", { class: E.option, children: [
|
|
651
|
+
/* @__PURE__ */ r(
|
|
439
652
|
"input",
|
|
440
653
|
{
|
|
441
|
-
id:
|
|
442
|
-
class:
|
|
654
|
+
id: u,
|
|
655
|
+
class: E.input,
|
|
443
656
|
type: "radio",
|
|
444
657
|
name: s,
|
|
445
658
|
value: _.value,
|
|
446
|
-
checked:
|
|
447
|
-
required:
|
|
448
|
-
disabled:
|
|
659
|
+
checked: l === _.value,
|
|
660
|
+
required: a,
|
|
661
|
+
disabled: o,
|
|
449
662
|
onChange: i && (() => i(_.value))
|
|
450
663
|
}
|
|
451
664
|
),
|
|
452
|
-
/* @__PURE__ */
|
|
665
|
+
/* @__PURE__ */ r("label", { for: u, children: _.label })
|
|
453
666
|
] }, _.value);
|
|
454
667
|
}),
|
|
455
|
-
c && /* @__PURE__ */
|
|
668
|
+
c && /* @__PURE__ */ r("p", { id: f, class: E.error, role: "alert", children: c })
|
|
456
669
|
]
|
|
457
670
|
}
|
|
458
671
|
);
|
|
459
|
-
},
|
|
460
|
-
const { path: e, children: s } = t, n =
|
|
672
|
+
}, Vt = (t) => {
|
|
673
|
+
const { path: e, children: s } = t, n = G.value;
|
|
461
674
|
if (e.endsWith("/*")) {
|
|
462
|
-
const
|
|
463
|
-
if (!n.startsWith(
|
|
675
|
+
const l = e.slice(0, -1);
|
|
676
|
+
if (!n.startsWith(l) && n !== l.slice(0, -1))
|
|
464
677
|
return null;
|
|
465
678
|
} else if (n !== e)
|
|
466
679
|
return null;
|
|
467
|
-
return /* @__PURE__ */
|
|
468
|
-
},
|
|
469
|
-
section:
|
|
470
|
-
},
|
|
471
|
-
const { title: e, level: s = 2, children: n, class:
|
|
472
|
-
return /* @__PURE__ */ m("section", { class:
|
|
473
|
-
/* @__PURE__ */
|
|
680
|
+
return /* @__PURE__ */ r(se, { children: s });
|
|
681
|
+
}, at = "_section_4nogy_1", ot = {
|
|
682
|
+
section: at
|
|
683
|
+
}, Jt = (t) => {
|
|
684
|
+
const { title: e, level: s = 2, children: n, class: l } = t, a = $(), o = `h${s}`;
|
|
685
|
+
return /* @__PURE__ */ m("section", { class: v(ot.section, l), "aria-labelledby": a, children: [
|
|
686
|
+
/* @__PURE__ */ r(o, { id: a, children: e }),
|
|
474
687
|
n
|
|
475
688
|
] });
|
|
476
|
-
},
|
|
477
|
-
select:
|
|
478
|
-
},
|
|
689
|
+
}, ct = "_select_1cxnx_1 _text-input_4u8pk_13 _focus-ring_4u8pk_3 _disabled_4u8pk_8", it = {
|
|
690
|
+
select: ct
|
|
691
|
+
}, dt = (t) => "options" in t, Qt = (t) => {
|
|
479
692
|
const {
|
|
480
693
|
label: e,
|
|
481
694
|
name: s,
|
|
482
695
|
value: n,
|
|
483
|
-
placeholder:
|
|
484
|
-
options:
|
|
485
|
-
required:
|
|
696
|
+
placeholder: l,
|
|
697
|
+
options: a,
|
|
698
|
+
required: o,
|
|
486
699
|
disabled: c,
|
|
487
700
|
error: i,
|
|
488
|
-
onChange:
|
|
489
|
-
class:
|
|
490
|
-
} = t,
|
|
491
|
-
return /* @__PURE__ */
|
|
492
|
-
|
|
701
|
+
onChange: h,
|
|
702
|
+
class: d
|
|
703
|
+
} = t, f = $(), _ = `${f}-error`;
|
|
704
|
+
return /* @__PURE__ */ r(
|
|
705
|
+
S,
|
|
493
706
|
{
|
|
494
707
|
label: e,
|
|
495
|
-
for:
|
|
496
|
-
required:
|
|
708
|
+
for: f,
|
|
709
|
+
required: o,
|
|
497
710
|
error: i,
|
|
498
711
|
errorId: _,
|
|
499
|
-
class:
|
|
712
|
+
class: d,
|
|
500
713
|
children: /* @__PURE__ */ m(
|
|
501
714
|
"select",
|
|
502
715
|
{
|
|
503
|
-
id:
|
|
504
|
-
class:
|
|
716
|
+
id: f,
|
|
717
|
+
class: it.select,
|
|
505
718
|
name: s,
|
|
506
719
|
value: n,
|
|
507
|
-
required:
|
|
720
|
+
required: o,
|
|
508
721
|
disabled: c,
|
|
509
722
|
"aria-invalid": !!i || void 0,
|
|
510
|
-
"aria-describedby":
|
|
511
|
-
onChange:
|
|
723
|
+
"aria-describedby": N(i && _),
|
|
724
|
+
onChange: h && ((u) => h(u.target.value)),
|
|
512
725
|
children: [
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
(
|
|
726
|
+
l && /* @__PURE__ */ r("option", { value: "", disabled: !0, children: l }),
|
|
727
|
+
a.map(
|
|
728
|
+
(u) => dt(u) ? /* @__PURE__ */ r("optgroup", { label: u.label, children: u.options.map((b) => /* @__PURE__ */ r("option", { value: b.value, children: b.label }, b.value)) }, u.label) : /* @__PURE__ */ r("option", { value: u.value, children: u.label }, u.value)
|
|
516
729
|
)
|
|
517
730
|
]
|
|
518
731
|
}
|
|
519
732
|
)
|
|
520
733
|
}
|
|
521
734
|
);
|
|
522
|
-
},
|
|
523
|
-
skip:
|
|
524
|
-
},
|
|
735
|
+
}, ut = "_skip_xbsul_1 _focus-ring_4u8pk_3", _t = {
|
|
736
|
+
skip: ut
|
|
737
|
+
}, Xt = (t) => {
|
|
525
738
|
const { target: e = "#main", label: s = "Skip to main content", class: n } = t;
|
|
526
|
-
return /* @__PURE__ */
|
|
527
|
-
},
|
|
528
|
-
table:
|
|
529
|
-
caption:
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
739
|
+
return /* @__PURE__ */ r("a", { href: e, class: v(_t.skip, n), children: s });
|
|
740
|
+
}, pt = "_table_185y9_1", ht = "_caption_185y9_6", ft = "_captionHidden_185y9_12 _visually-hidden_4u8pk_42", mt = "_headerCell_185y9_16", bt = "_cell_185y9_17", vt = "_head_185y9_16", kt = "_row_185y9_41", gt = "_striped_185y9_45", yt = "_dense_185y9_53", x = {
|
|
741
|
+
table: pt,
|
|
742
|
+
caption: ht,
|
|
743
|
+
captionHidden: ft,
|
|
744
|
+
headerCell: mt,
|
|
745
|
+
cell: bt,
|
|
746
|
+
head: vt,
|
|
747
|
+
row: kt,
|
|
748
|
+
striped: gt,
|
|
749
|
+
dense: yt
|
|
750
|
+
}, Yt = (t) => {
|
|
751
|
+
const {
|
|
752
|
+
caption: e,
|
|
753
|
+
headers: s,
|
|
754
|
+
data: n,
|
|
755
|
+
rowHeader: l,
|
|
756
|
+
striped: a,
|
|
757
|
+
dense: o,
|
|
758
|
+
captionHidden: c,
|
|
759
|
+
class: i
|
|
760
|
+
} = t;
|
|
761
|
+
return /* @__PURE__ */ m("table", { class: v(x.table, a && x.striped, o && x.dense, i), children: [
|
|
762
|
+
/* @__PURE__ */ r("caption", { class: v(x.caption, c && x.captionHidden), children: e }),
|
|
763
|
+
/* @__PURE__ */ r("thead", { class: x.head, children: /* @__PURE__ */ r("tr", { children: s.map((h, d) => /* @__PURE__ */ r("th", { class: x.headerCell, scope: "col", children: h }, `${h}-${d}`)) }) }),
|
|
764
|
+
/* @__PURE__ */ r("tbody", { children: n.map((h, d) => /* @__PURE__ */ r("tr", { class: x.row, children: h.map(
|
|
765
|
+
(f, _) => l && _ === 0 ? /* @__PURE__ */ r("th", { class: x.headerCell, scope: "row", children: f }, `${s[_]}-${d}-${_}`) : /* @__PURE__ */ r("td", { class: x.cell, children: f }, `${s[_]}-${d}-${_}`)
|
|
766
|
+
) }, d)) })
|
|
536
767
|
] });
|
|
537
|
-
},
|
|
538
|
-
hidden:
|
|
539
|
-
},
|
|
768
|
+
}, wt = "_hidden_19nib_1 _visually-hidden_4u8pk_42", xt = {
|
|
769
|
+
hidden: wt
|
|
770
|
+
}, $t = (t) => {
|
|
540
771
|
const { children: e } = t;
|
|
541
|
-
return /* @__PURE__ */
|
|
542
|
-
},
|
|
543
|
-
wrapper:
|
|
544
|
-
textarea:
|
|
545
|
-
counter:
|
|
546
|
-
},
|
|
547
|
-
function
|
|
548
|
-
for (let e =
|
|
549
|
-
const s =
|
|
772
|
+
return /* @__PURE__ */ r("span", { class: xt.hidden, children: e });
|
|
773
|
+
}, Ct = "_wrapper_1kyv1_1", It = "_textarea_1kyv1_6 _text-input_4u8pk_13 _focus-ring_4u8pk_3 _disabled_4u8pk_8", Lt = "_counter_1kyv1_11", M = {
|
|
774
|
+
wrapper: Ct,
|
|
775
|
+
textarea: It,
|
|
776
|
+
counter: Lt
|
|
777
|
+
}, X = [75, 90, 100], Nt = 10;
|
|
778
|
+
function jt(t) {
|
|
779
|
+
for (let e = X.length - 1; e >= 0; e--) {
|
|
780
|
+
const s = X[e];
|
|
550
781
|
if (s !== void 0 && t >= s)
|
|
551
782
|
return s;
|
|
552
783
|
}
|
|
553
784
|
return 0;
|
|
554
785
|
}
|
|
555
|
-
const
|
|
786
|
+
const en = (t) => {
|
|
556
787
|
const {
|
|
557
788
|
label: e,
|
|
558
789
|
name: s,
|
|
559
790
|
maxChars: n,
|
|
560
|
-
value:
|
|
561
|
-
placeholder:
|
|
562
|
-
required:
|
|
791
|
+
value: l,
|
|
792
|
+
placeholder: a,
|
|
793
|
+
required: o,
|
|
563
794
|
disabled: c,
|
|
564
795
|
error: i,
|
|
565
|
-
onInput:
|
|
566
|
-
class:
|
|
567
|
-
} = t,
|
|
568
|
-
return /* @__PURE__ */
|
|
569
|
-
|
|
796
|
+
onInput: h,
|
|
797
|
+
class: d
|
|
798
|
+
} = t, f = $(), _ = `${f}-error`, u = `${f}-counter`, b = D(l?.length ?? 0), g = D(""), C = D(0), I = D(!1);
|
|
799
|
+
return /* @__PURE__ */ r(
|
|
800
|
+
S,
|
|
570
801
|
{
|
|
571
802
|
label: e,
|
|
572
|
-
for:
|
|
573
|
-
required:
|
|
803
|
+
for: f,
|
|
804
|
+
required: o,
|
|
574
805
|
error: i,
|
|
575
806
|
errorId: _,
|
|
576
|
-
class:
|
|
577
|
-
children: /* @__PURE__ */ m("div", { class:
|
|
578
|
-
/* @__PURE__ */
|
|
807
|
+
class: d,
|
|
808
|
+
children: /* @__PURE__ */ m("div", { class: M.wrapper, children: [
|
|
809
|
+
/* @__PURE__ */ r(
|
|
579
810
|
"textarea",
|
|
580
811
|
{
|
|
581
|
-
id:
|
|
582
|
-
class:
|
|
812
|
+
id: f,
|
|
813
|
+
class: M.textarea,
|
|
583
814
|
name: s,
|
|
584
815
|
maxLength: n,
|
|
585
|
-
placeholder:
|
|
586
|
-
required:
|
|
816
|
+
placeholder: a,
|
|
817
|
+
required: o,
|
|
587
818
|
disabled: c,
|
|
588
819
|
"aria-invalid": !!i || void 0,
|
|
589
|
-
"aria-describedby":
|
|
590
|
-
onInput: (
|
|
591
|
-
const
|
|
592
|
-
|
|
593
|
-
const
|
|
594
|
-
(
|
|
820
|
+
"aria-describedby": N(i && _, u),
|
|
821
|
+
onInput: (q) => {
|
|
822
|
+
const p = q.target.value;
|
|
823
|
+
b.value = p.length;
|
|
824
|
+
const k = n - p.length, L = p.length / n * 100, j = jt(L), w = !I.value && k <= Nt && k > 0;
|
|
825
|
+
(j > C.value || w) && (g.value = `${k} character${k === 1 ? "" : "s"} remaining`, C.value = j, w && (I.value = !0)), h?.(p);
|
|
595
826
|
},
|
|
596
|
-
children:
|
|
827
|
+
children: l
|
|
597
828
|
}
|
|
598
829
|
),
|
|
599
|
-
/* @__PURE__ */ m("span", { id:
|
|
600
|
-
|
|
830
|
+
/* @__PURE__ */ m("span", { id: u, class: M.counter, children: [
|
|
831
|
+
b,
|
|
601
832
|
" / ",
|
|
602
833
|
n
|
|
603
834
|
] }),
|
|
604
|
-
/* @__PURE__ */
|
|
835
|
+
/* @__PURE__ */ r($t, { children: /* @__PURE__ */ r("span", { "aria-live": "polite", children: g }) })
|
|
605
836
|
] })
|
|
606
837
|
}
|
|
607
838
|
);
|
|
608
|
-
},
|
|
609
|
-
theme:
|
|
610
|
-
},
|
|
839
|
+
}, Et = "_theme_1x47p_11", Dt = {
|
|
840
|
+
theme: Et
|
|
841
|
+
}, tn = {
|
|
842
|
+
blue: "aui-blue",
|
|
843
|
+
purple: "aui-purple",
|
|
844
|
+
teal: "aui-teal",
|
|
845
|
+
red: "aui-red",
|
|
846
|
+
orange: "aui-orange",
|
|
847
|
+
yellow: "aui-yellow"
|
|
848
|
+
}, nn = (t) => {
|
|
611
849
|
const { children: e, class: s } = t;
|
|
612
|
-
return /* @__PURE__ */
|
|
613
|
-
},
|
|
614
|
-
|
|
615
|
-
document.title =
|
|
850
|
+
return /* @__PURE__ */ r("div", { class: v(Dt.theme, s), children: e });
|
|
851
|
+
}, St = U(document.title);
|
|
852
|
+
le(() => {
|
|
853
|
+
document.title = St.value;
|
|
616
854
|
});
|
|
617
855
|
export {
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
856
|
+
W as Button,
|
|
857
|
+
Pt as Card,
|
|
858
|
+
Tt as Checkbox,
|
|
859
|
+
Rt as Dialog,
|
|
860
|
+
zt as DownloadLink,
|
|
861
|
+
Ot as Form,
|
|
862
|
+
Ft as Input,
|
|
863
|
+
Mt as Link,
|
|
864
|
+
Kt as Modal,
|
|
865
|
+
Ut as Nav,
|
|
866
|
+
Gt as NumberInput,
|
|
867
|
+
tn as Palette,
|
|
868
|
+
Wt as PasswordInput,
|
|
869
|
+
Zt as RadioGroup,
|
|
870
|
+
Vt as Route,
|
|
871
|
+
Jt as Section,
|
|
872
|
+
Qt as Select,
|
|
873
|
+
Xt as SkipLink,
|
|
874
|
+
Yt as Table,
|
|
875
|
+
en as Textarea,
|
|
876
|
+
nn as Theme,
|
|
877
|
+
$t as VisuallyHidden,
|
|
878
|
+
v as cx,
|
|
879
|
+
ee as hash,
|
|
880
|
+
G as location,
|
|
881
|
+
Pe as navigate,
|
|
882
|
+
St as title
|
|
642
883
|
};
|