@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.
@@ -1,269 +1,482 @@
1
- import { jsx as l, jsxs as m, Fragment as V } from "preact/jsx-runtime";
2
- import { useId as v } from "preact/hooks";
3
- import { signal as A, useSignal as $, effect as J } from "@preact/signals";
4
- import { h as T, toChildArray as Q } from "preact";
5
- function b(...t) {
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 g(...t) {
8
+ function N(...t) {
9
9
  return t.filter(Boolean).join(" ") || void 0;
10
10
  }
11
- const X = "_button_4gn7y_1 _focus-ring_4u8pk_3 _disabled_4u8pk_8", Y = {
12
- button: X
13
- }, O = (t) => {
14
- const { label: e, onClick: s, type: n = "button", disabled: r, class: o } = t;
15
- return /* @__PURE__ */ l("button", { type: n, class: b(Y.button, o), onClick: s, disabled: r, children: e });
16
- }, ee = "_card_awzw5_1", te = {
17
- card: ee
18
- }, ut = (t) => {
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__ */ l("div", { class: b(te.card, s), children: e });
21
- }, se = "_field_17xwz_1", ne = "_input_17xwz_8 _check-input_4u8pk_32 _focus-ring_4u8pk_3 _disabled_4u8pk_8", re = "_error_17xwz_12 _field-error_4u8pk_36", L = {
22
- field: se,
23
- input: ne,
24
- error: re
25
- }, _t = (t) => {
26
- const { label: e, name: s, checked: n, required: r, disabled: o, error: a, onChange: c, class: i } = t, p = v(), h = `${p}-error`;
27
- return /* @__PURE__ */ m("div", { class: b(L.field, i), children: [
28
- /* @__PURE__ */ l(
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: p,
32
- class: L.input,
31
+ id: h,
32
+ class: T.input,
33
33
  type: "checkbox",
34
34
  name: s,
35
35
  checked: n,
36
- required: r,
37
- disabled: o,
38
- "aria-invalid": !!a || void 0,
39
- "aria-describedby": g(a && h),
40
- onChange: c && ((u) => c(u.target.checked))
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__ */ l("label", { for: p, children: e }),
44
- a && /* @__PURE__ */ l("p", { id: h, class: L.error, role: "alert", children: a })
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
- }, le = "_link_7wgic_1 _link_4u8pk_22 _focus-ring_4u8pk_3", ae = {
47
- link: le
48
- }, pt = (t) => {
49
- const { href: e, fileName: s, label: n, class: r } = t;
50
- return /* @__PURE__ */ l("a", { href: e, download: s, class: b(ae.link, r), children: n });
51
- }, oe = "_form_jr324_1", ce = "_actions_jr324_6", ie = "_status_jr324_13", j = {
52
- form: oe,
53
- actions: ce,
54
- status: ie
55
- }, ht = (t) => {
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: r,
61
- children: o,
62
- class: a
243
+ status: l,
244
+ children: a,
245
+ class: o
63
246
  } = t;
64
247
  return /* @__PURE__ */ m(
65
248
  "form",
66
249
  {
67
- class: b(j.form, a),
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
- o,
75
- /* @__PURE__ */ m("div", { class: j.actions, children: [
76
- /* @__PURE__ */ l(O, { type: "submit", label: s }),
77
- n && /* @__PURE__ */ l(O, { type: "reset", label: n })
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
- r && /* @__PURE__ */ l("output", { class: j.status, children: r })
262
+ l && /* @__PURE__ */ r("output", { class: O.status, children: l })
80
263
  ]
81
264
  }
82
265
  );
83
- }, de = "_field_7l9ux_1", ue = "_label_7l9ux_8", _e = "_required_7l9ux_12", pe = "_error_7l9ux_16 _field-error_4u8pk_36", S = {
84
- field: de,
85
- label: ue,
86
- required: _e,
87
- error: pe
88
- }, x = (t) => {
89
- const { for: e, label: s, required: n, error: r, errorId: o, children: a, class: c } = t;
90
- return /* @__PURE__ */ m("div", { class: b(S.field, c), children: [
91
- /* @__PURE__ */ m("label", { class: S.label, for: e, children: [
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: S.required, "aria-hidden": "true", children: [
277
+ n && /* @__PURE__ */ m("span", { class: B.required, "aria-hidden": "true", children: [
95
278
  " ",
96
279
  "*"
97
280
  ] })
98
281
  ] }),
99
- a,
100
- r && /* @__PURE__ */ l("p", { id: o, class: S.error, role: "alert", children: r })
282
+ o,
283
+ l && /* @__PURE__ */ r("p", { id: a, class: B.error, role: "alert", children: l })
101
284
  ] });
102
- }, he = "_input_1j10x_1 _text-input_4u8pk_13 _focus-ring_4u8pk_3 _disabled_4u8pk_8", me = {
103
- input: he
104
- }, be = {
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
- }, mt = (t) => {
291
+ }, Ft = (t) => {
109
292
  const {
110
293
  label: e,
111
294
  name: s,
112
295
  type: n = "text",
113
- value: r,
114
- placeholder: o,
115
- maxLength: a,
296
+ value: l,
297
+ placeholder: a,
298
+ maxLength: o,
116
299
  autocomplete: c,
117
300
  readOnly: i,
118
- pattern: p,
119
- required: h,
120
- disabled: u,
301
+ pattern: h,
302
+ required: d,
303
+ disabled: f,
121
304
  error: _,
122
- onInput: d,
123
- class: f
124
- } = t, k = v(), y = `${k}-error`;
125
- return /* @__PURE__ */ l(
126
- x,
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: k,
130
- required: h,
312
+ for: g,
313
+ required: d,
131
314
  error: _,
132
- errorId: y,
133
- class: f,
134
- children: /* @__PURE__ */ l(
315
+ errorId: C,
316
+ class: b,
317
+ children: /* @__PURE__ */ r(
135
318
  "input",
136
319
  {
137
- id: k,
138
- class: me.input,
320
+ id: g,
321
+ class: He.input,
139
322
  type: n,
140
323
  name: s,
141
- value: r,
142
- placeholder: o,
143
- maxLength: a,
144
- autoComplete: c ?? be[n],
324
+ value: l,
325
+ placeholder: a,
326
+ maxLength: o,
327
+ autoComplete: c ?? Be[n],
145
328
  readOnly: i,
146
- pattern: p,
147
- required: h,
148
- disabled: u,
329
+ pattern: h,
330
+ required: d,
331
+ disabled: f,
149
332
  "aria-invalid": !!_ || void 0,
150
- "aria-describedby": g(_ && y),
151
- onInput: d && ((C) => d(C.target.value))
333
+ "aria-describedby": N(_ && C),
334
+ onInput: u && ((I) => u(I.target.value))
152
335
  }
153
336
  )
154
337
  }
155
338
  );
156
- }, P = A(window.location.pathname), G = A(window.location.hash.slice(1));
157
- function fe(t) {
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 r = n.indexOf("?");
162
- let o = "", a = n;
163
- return r >= 0 && (o = n.slice(r), a = n.slice(0, r)), { pathname: a || "/", search: o, hash: s };
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 ve(t, e) {
166
- const { pathname: s, search: n, hash: r } = fe(t), o = s + n + (r ? `#${r}` : "");
167
- e?.replace ? history.replaceState(null, "", o) : history.pushState(null, "", o), P.value = s, G.value = r;
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
- P.value = window.location.pathname, G.value = window.location.hash.slice(1);
353
+ G.value = window.location.pathname, ee.value = window.location.hash.slice(1);
171
354
  });
172
- const ke = "_link_7wgic_1 _link_4u8pk_22 _focus-ring_4u8pk_3", H = {
173
- link: ke
355
+ const Te = "_link_7wgic_1 _link_4u8pk_22 _focus-ring_4u8pk_3", Z = {
356
+ link: Te
174
357
  };
175
- function ge(t) {
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 bt = (t) => {
183
- const { href: e, children: s, external: n, class: r } = t;
184
- return n ?? ge(e) ? /* @__PURE__ */ l("a", { href: e, class: b(H.link, r), rel: "noopener noreferrer", children: s }) : /* @__PURE__ */ l(
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: b(H.link, r),
189
- onClick: (a) => {
190
- a.preventDefault(), ve(e);
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
- }, ye = "_nav_778nl_1", we = "_title_778nl_6", D = {
196
- nav: ye,
197
- title: we
198
- }, ft = (t) => {
199
- const { title: e, children: s, class: n } = t, r = v();
200
- return /* @__PURE__ */ m("nav", { class: b(D.nav, n), "aria-labelledby": e ? r : void 0, children: [
201
- e && /* @__PURE__ */ l("h2", { id: r, class: D.title, children: e }),
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
- }, $e = "_input_1j10x_1 _text-input_4u8pk_13 _focus-ring_4u8pk_3 _disabled_4u8pk_8", xe = {
205
- input: $e
206
- }, vt = (t) => {
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: r,
212
- step: o,
213
- value: a,
424
+ max: l,
425
+ step: a,
426
+ value: o,
214
427
  placeholder: c,
215
428
  required: i,
216
- disabled: p,
217
- error: h,
218
- onInput: u,
429
+ disabled: h,
430
+ error: d,
431
+ onInput: f,
219
432
  class: _
220
- } = t, d = v(), f = `${d}-error`;
221
- return /* @__PURE__ */ l(
222
- x,
433
+ } = t, u = $(), b = `${u}-error`;
434
+ return /* @__PURE__ */ r(
435
+ S,
223
436
  {
224
437
  label: e,
225
- for: d,
438
+ for: u,
226
439
  required: i,
227
- error: h,
228
- errorId: f,
440
+ error: d,
441
+ errorId: b,
229
442
  class: _,
230
- children: /* @__PURE__ */ l(
443
+ children: /* @__PURE__ */ r(
231
444
  "input",
232
445
  {
233
- id: d,
234
- class: xe.input,
446
+ id: u,
447
+ class: Me.input,
235
448
  type: "number",
236
449
  name: s,
237
450
  min: n,
238
- max: r,
239
- step: o,
240
- value: a,
451
+ max: l,
452
+ step: a,
453
+ value: o,
241
454
  placeholder: c,
242
455
  required: i,
243
- disabled: p,
244
- "aria-invalid": !!h || void 0,
245
- "aria-describedby": g(h && f),
246
- onInput: u && ((k) => u(k.target.valueAsNumber))
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
- }, Ce = "_wrapper_16zfv_1", Ie = "_input_16zfv_5 _text-input_4u8pk_13 _focus-ring_4u8pk_3 _disabled_4u8pk_8", Ne = "_toggle_16zfv_11 _focus-ring_4u8pk_3 _disabled_4u8pk_8", q = {
252
- wrapper: Ce,
253
- input: Ie,
254
- toggle: Ne
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 Se = (...t) => t.filter((e, s, n) => !!e && e.trim() !== "" && n.indexOf(e) === s).join(" ").trim();
257
- const F = (t) => t.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
258
- const Le = (t) => t.replace(
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 R = (t) => {
263
- const e = Le(t);
475
+ const Q = (t) => {
476
+ const e = Ze(t);
264
477
  return e.charAt(0).toUpperCase() + e.slice(1);
265
478
  };
266
- var je = {
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 qe = (t) => {
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 Ee = ({
496
+ const Qe = ({
284
497
  color: t = "currentColor",
285
498
  size: e = 24,
286
499
  strokeWidth: s = 2,
287
500
  absoluteStrokeWidth: n,
288
- children: r,
289
- iconNode: o,
290
- class: a = "",
501
+ children: l,
502
+ iconNode: a,
503
+ class: o = "",
291
504
  ...c
292
- }) => T(
505
+ }) => K(
293
506
  "svg",
294
507
  {
295
- ...je,
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", a].join(" "),
301
- ...!r && !qe(c) && { "aria-hidden": "true" },
513
+ class: ["lucide", o].join(" "),
514
+ ...!l && !Je(c) && { "aria-hidden": "true" },
302
515
  ...c
303
516
  },
304
- [...o.map(([i, p]) => T(i, p)), ...Q(r)]
517
+ [...a.map(([i, h]) => K(i, h)), ...re(l)]
305
518
  );
306
- const W = (t, e) => {
307
- const s = ({ class: n = "", className: r = "", children: o, ...a }) => T(
308
- Ee,
519
+ const te = (t, e) => {
520
+ const s = ({ class: n = "", className: l = "", children: a, ...o }) => K(
521
+ Qe,
309
522
  {
310
- ...a,
523
+ ...o,
311
524
  iconNode: e,
312
- class: Se(
313
- `lucide-${F(R(t))}`,
314
- `lucide-${F(t)}`,
525
+ class: We(
526
+ `lucide-${J(Q(t))}`,
527
+ `lucide-${J(t)}`,
315
528
  n,
316
- r
529
+ l
317
530
  )
318
531
  },
319
- o
532
+ a
320
533
  );
321
- return s.displayName = R(t), s;
534
+ return s.displayName = Q(t), s;
322
535
  };
323
- const Te = W("eye-off", [
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
- }, kt = (t) => {
566
+ }, Wt = (t) => {
354
567
  const {
355
568
  label: e,
356
569
  name: s,
357
570
  purpose: n,
358
- value: r,
359
- placeholder: o,
360
- required: a,
571
+ value: l,
572
+ placeholder: a,
573
+ required: o,
361
574
  disabled: c,
362
575
  error: i,
363
- onInput: p,
364
- class: h
365
- } = t, u = v(), _ = `${u}-error`, d = $(!1);
366
- return /* @__PURE__ */ l(
367
- x,
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: u,
371
- required: a,
583
+ for: f,
584
+ required: o,
372
585
  error: i,
373
586
  errorId: _,
374
- class: h,
375
- children: /* @__PURE__ */ m("div", { class: q.wrapper, children: [
376
- /* @__PURE__ */ l(
587
+ class: d,
588
+ children: /* @__PURE__ */ m("div", { class: F.wrapper, children: [
589
+ /* @__PURE__ */ r(
377
590
  "input",
378
591
  {
379
- id: u,
380
- class: q.input,
381
- type: d.value ? "text" : "password",
592
+ id: f,
593
+ class: F.input,
594
+ type: u.value ? "text" : "password",
382
595
  name: s,
383
- value: r,
384
- placeholder: o,
385
- autoComplete: Pe[n],
386
- required: a,
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": g(i && _),
390
- onInput: p && ((f) => p(f.target.value))
602
+ "aria-describedby": N(i && _),
603
+ onInput: h && ((b) => h(b.target.value))
391
604
  }
392
605
  ),
393
- /* @__PURE__ */ l(
606
+ /* @__PURE__ */ r(
394
607
  "button",
395
608
  {
396
609
  type: "button",
397
- class: q.toggle,
610
+ class: F.toggle,
398
611
  disabled: c,
399
- "aria-label": d.value ? "Hide password" : "Show password",
612
+ "aria-label": u.value ? "Hide password" : "Show password",
400
613
  onClick: () => {
401
- d.value = !d.value;
614
+ u.value = !u.value;
402
615
  },
403
- children: d.value ? /* @__PURE__ */ l(Te, { size: "1em" }) : /* @__PURE__ */ l(Ae, { size: "1em" })
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
- }, ze = "_fieldset_lymkd_1", Be = "_legend_lymkd_6", Oe = "_option_lymkd_11", He = "_input_lymkd_19 _check-input_4u8pk_32 _focus-ring_4u8pk_3", De = "_error_lymkd_23 _field-error_4u8pk_36", w = {
410
- fieldset: ze,
411
- legend: Be,
412
- option: Oe,
413
- input: He,
414
- error: De
415
- }, gt = (t) => {
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: r,
421
- required: o,
422
- disabled: a,
633
+ value: l,
634
+ required: a,
635
+ disabled: o,
423
636
  error: c,
424
637
  onChange: i,
425
- class: p
426
- } = t, h = v(), u = `${h}-error`;
638
+ class: h
639
+ } = t, d = $(), f = `${d}-error`;
427
640
  return /* @__PURE__ */ m(
428
641
  "fieldset",
429
642
  {
430
- class: b(w.fieldset, p),
643
+ class: v(E.fieldset, h),
431
644
  "aria-invalid": !!c || void 0,
432
- "aria-describedby": g(c && u),
645
+ "aria-describedby": N(c && f),
433
646
  children: [
434
- /* @__PURE__ */ l("legend", { class: w.legend, children: e }),
647
+ /* @__PURE__ */ r("legend", { class: E.legend, children: e }),
435
648
  n.map((_) => {
436
- const d = `${h}-${_.value}`;
437
- return /* @__PURE__ */ m("div", { class: w.option, children: [
438
- /* @__PURE__ */ l(
649
+ const u = `${d}-${_.value}`;
650
+ return /* @__PURE__ */ m("div", { class: E.option, children: [
651
+ /* @__PURE__ */ r(
439
652
  "input",
440
653
  {
441
- id: d,
442
- class: w.input,
654
+ id: u,
655
+ class: E.input,
443
656
  type: "radio",
444
657
  name: s,
445
658
  value: _.value,
446
- checked: r === _.value,
447
- required: o,
448
- disabled: a,
659
+ checked: l === _.value,
660
+ required: a,
661
+ disabled: o,
449
662
  onChange: i && (() => i(_.value))
450
663
  }
451
664
  ),
452
- /* @__PURE__ */ l("label", { for: d, children: _.label })
665
+ /* @__PURE__ */ r("label", { for: u, children: _.label })
453
666
  ] }, _.value);
454
667
  }),
455
- c && /* @__PURE__ */ l("p", { id: u, class: w.error, role: "alert", children: c })
668
+ c && /* @__PURE__ */ r("p", { id: f, class: E.error, role: "alert", children: c })
456
669
  ]
457
670
  }
458
671
  );
459
- }, yt = (t) => {
460
- const { path: e, children: s } = t, n = P.value;
672
+ }, Vt = (t) => {
673
+ const { path: e, children: s } = t, n = G.value;
461
674
  if (e.endsWith("/*")) {
462
- const r = e.slice(0, -1);
463
- if (!n.startsWith(r) && n !== r.slice(0, -1))
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__ */ l(V, { children: s });
468
- }, Fe = "_section_4nogy_1", Re = {
469
- section: Fe
470
- }, wt = (t) => {
471
- const { title: e, level: s = 2, children: n, class: r } = t, o = v(), a = `h${s}`;
472
- return /* @__PURE__ */ m("section", { class: b(Re.section, r), "aria-labelledby": o, children: [
473
- /* @__PURE__ */ l(a, { id: o, children: e }),
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
- }, Me = "_select_1cxnx_1 _text-input_4u8pk_13 _focus-ring_4u8pk_3 _disabled_4u8pk_8", Ue = {
477
- select: Me
478
- }, Ge = (t) => "options" in t, $t = (t) => {
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: r,
484
- options: o,
485
- required: a,
696
+ placeholder: l,
697
+ options: a,
698
+ required: o,
486
699
  disabled: c,
487
700
  error: i,
488
- onChange: p,
489
- class: h
490
- } = t, u = v(), _ = `${u}-error`;
491
- return /* @__PURE__ */ l(
492
- x,
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: u,
496
- required: a,
708
+ for: f,
709
+ required: o,
497
710
  error: i,
498
711
  errorId: _,
499
- class: h,
712
+ class: d,
500
713
  children: /* @__PURE__ */ m(
501
714
  "select",
502
715
  {
503
- id: u,
504
- class: Ue.select,
716
+ id: f,
717
+ class: it.select,
505
718
  name: s,
506
719
  value: n,
507
- required: a,
720
+ required: o,
508
721
  disabled: c,
509
722
  "aria-invalid": !!i || void 0,
510
- "aria-describedby": g(i && _),
511
- onChange: p && ((d) => p(d.target.value)),
723
+ "aria-describedby": N(i && _),
724
+ onChange: h && ((u) => h(u.target.value)),
512
725
  children: [
513
- r && /* @__PURE__ */ l("option", { value: "", disabled: !0, children: r }),
514
- o.map(
515
- (d) => Ge(d) ? /* @__PURE__ */ l("optgroup", { label: d.label, children: d.options.map((f) => /* @__PURE__ */ l("option", { value: f.value, children: f.label }, f.value)) }, d.label) : /* @__PURE__ */ l("option", { value: d.value, children: d.label }, d.value)
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
- }, We = "_skip_xbsul_1 _focus-ring_4u8pk_3", Ze = {
523
- skip: We
524
- }, xt = (t) => {
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__ */ l("a", { href: e, class: b(Ze.skip, n), children: s });
527
- }, Ke = "_table_dls60_1", Ve = "_caption_dls60_6", M = {
528
- table: Ke,
529
- caption: Ve
530
- }, Ct = (t) => {
531
- const { caption: e, headers: s, data: n, class: r } = t;
532
- return /* @__PURE__ */ m("table", { class: b(M.table, r), children: [
533
- /* @__PURE__ */ l("caption", { class: M.caption, children: e }),
534
- /* @__PURE__ */ l("thead", { children: /* @__PURE__ */ l("tr", { children: s.map((o, a) => /* @__PURE__ */ l("th", { scope: "col", children: o }, `${o}-${a}`)) }) }),
535
- /* @__PURE__ */ l("tbody", { children: n.map((o, a) => /* @__PURE__ */ l("tr", { children: o.map((c, i) => /* @__PURE__ */ l("td", { children: c }, `${s[i]}-${a}-${i}`)) }, a)) })
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
- }, Je = "_hidden_19nib_1 _visually-hidden_4u8pk_42", Qe = {
538
- hidden: Je
539
- }, Xe = (t) => {
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__ */ l("span", { class: Qe.hidden, children: e });
542
- }, Ye = "_wrapper_1kyv1_1", et = "_textarea_1kyv1_6 _text-input_4u8pk_13 _focus-ring_4u8pk_3 _disabled_4u8pk_8", tt = "_counter_1kyv1_11", E = {
543
- wrapper: Ye,
544
- textarea: et,
545
- counter: tt
546
- }, U = [75, 90, 100], st = 10;
547
- function nt(t) {
548
- for (let e = U.length - 1; e >= 0; e--) {
549
- const s = U[e];
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 It = (t) => {
786
+ const en = (t) => {
556
787
  const {
557
788
  label: e,
558
789
  name: s,
559
790
  maxChars: n,
560
- value: r,
561
- placeholder: o,
562
- required: a,
791
+ value: l,
792
+ placeholder: a,
793
+ required: o,
563
794
  disabled: c,
564
795
  error: i,
565
- onInput: p,
566
- class: h
567
- } = t, u = v(), _ = `${u}-error`, d = `${u}-counter`, f = $(r?.length ?? 0), k = $(""), y = $(0), C = $(!1);
568
- return /* @__PURE__ */ l(
569
- x,
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: u,
573
- required: a,
803
+ for: f,
804
+ required: o,
574
805
  error: i,
575
806
  errorId: _,
576
- class: h,
577
- children: /* @__PURE__ */ m("div", { class: E.wrapper, children: [
578
- /* @__PURE__ */ l(
807
+ class: d,
808
+ children: /* @__PURE__ */ m("div", { class: M.wrapper, children: [
809
+ /* @__PURE__ */ r(
579
810
  "textarea",
580
811
  {
581
- id: u,
582
- class: E.textarea,
812
+ id: f,
813
+ class: M.textarea,
583
814
  name: s,
584
815
  maxLength: n,
585
- placeholder: o,
586
- required: a,
816
+ placeholder: a,
817
+ required: o,
587
818
  disabled: c,
588
819
  "aria-invalid": !!i || void 0,
589
- "aria-describedby": g(i && _, d),
590
- onInput: (Z) => {
591
- const I = Z.target.value;
592
- f.value = I.length;
593
- const N = n - I.length, K = I.length / n * 100, z = nt(K), B = !C.value && N <= st && N > 0;
594
- (z > y.value || B) && (k.value = `${N} character${N === 1 ? "" : "s"} remaining`, y.value = z, B && (C.value = !0)), p?.(I);
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: r
827
+ children: l
597
828
  }
598
829
  ),
599
- /* @__PURE__ */ m("span", { id: d, class: E.counter, children: [
600
- f,
830
+ /* @__PURE__ */ m("span", { id: u, class: M.counter, children: [
831
+ b,
601
832
  " / ",
602
833
  n
603
834
  ] }),
604
- /* @__PURE__ */ l(Xe, { children: /* @__PURE__ */ l("span", { "aria-live": "polite", children: k }) })
835
+ /* @__PURE__ */ r($t, { children: /* @__PURE__ */ r("span", { "aria-live": "polite", children: g }) })
605
836
  ] })
606
837
  }
607
838
  );
608
- }, rt = "_theme_1x47p_11", lt = {
609
- theme: rt
610
- }, Nt = (t) => {
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__ */ l("div", { class: b(lt.theme, s), children: e });
613
- }, at = A(document.title);
614
- J(() => {
615
- document.title = at.value;
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
- O as Button,
619
- ut as Card,
620
- _t as Checkbox,
621
- pt as DownloadLink,
622
- ht as Form,
623
- mt as Input,
624
- bt as Link,
625
- ft as Nav,
626
- vt as NumberInput,
627
- kt as PasswordInput,
628
- gt as RadioGroup,
629
- yt as Route,
630
- wt as Section,
631
- $t as Select,
632
- xt as SkipLink,
633
- Ct as Table,
634
- It as Textarea,
635
- Nt as Theme,
636
- Xe as VisuallyHidden,
637
- b as cx,
638
- G as hash,
639
- P as location,
640
- ve as navigate,
641
- at as title
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
  };