@tempots/beatui 0.0.3 → 0.0.5

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/index.es.js CHANGED
@@ -1,39 +1,39 @@
1
- var dn = Object.defineProperty;
1
+ var pn = Object.defineProperty;
2
2
  var Ne = (n) => {
3
3
  throw TypeError(n);
4
4
  };
5
- var pn = (n, l, e) => l in n ? dn(n, l, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[l] = e;
6
- var w = (n, l, e) => pn(n, typeof l != "symbol" ? l + "" : l, e), mn = (n, l, e) => l.has(n) || Ne("Cannot " + e);
7
- var $ = (n, l, e) => (mn(n, l, "read from private field"), e ? e.call(n) : l.get(n)), Q = (n, l, e) => l.has(n) ? Ne("Cannot add the same private member more than once") : l instanceof WeakSet ? l.add(n) : l.set(n, e);
8
- import { makeProviderMark as gn, localStorageProp as bn, computedOf as y, Use as _, attr as c, html as h, on as m, aria as q, style as d, Value as S, Empty as k, Ensure as Pe, WithElement as z, OnDispose as K, Fragment as U, input as P, emitValue as v, emitValueAsDate as fn, ForEach as be, OneOfType as kn, emitValueAsNullableDate as xn, emitValueAsNullableDateTime as yn, emitValueAsNumber as ie, prop as W, When as le, computed as Fe, emitChecked as vn, dataAttr as he, render as wn, WithBrowserCtx as $n } from "@tempots/dom";
5
+ var mn = (n, l, e) => l in n ? pn(n, l, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[l] = e;
6
+ var w = (n, l, e) => mn(n, typeof l != "symbol" ? l + "" : l, e), gn = (n, l, e) => l.has(n) || Ne("Cannot " + e);
7
+ var $ = (n, l, e) => (gn(n, l, "read from private field"), e ? e.call(n) : l.get(n)), Q = (n, l, e) => l.has(n) ? Ne("Cannot add the same private member more than once") : l instanceof WeakSet ? l.add(n) : l.set(n, e);
8
+ import { makeProviderMark as bn, localStorageProp as fn, computedOf as y, Use as _, attr as c, html as h, on as m, aria as q, style as d, Value as S, Empty as k, Ensure as Pe, WithElement as z, OnDispose as K, Fragment as U, input as P, emitValue as v, emitValueAsDate as kn, ForEach as be, OneOfType as xn, emitValueAsNullableDate as yn, emitValueAsNullableDateTime as vn, emitValueAsNumber as ie, prop as W, When as le, computed as Fe, emitChecked as wn, dataAttr as he, render as $n, WithBrowserCtx as Sn } from "@tempots/dom";
9
9
  import { Use as ql } from "@tempots/dom";
10
- import { useAppearence as Sn, WhenInViewport as _n, Resource as Me, ElementRect as ce, AutoSelect as Cn, WindowSize as En } from "@tempots/ui";
11
- class Bn {
12
- button({ variant: l, size: e, color: t, roundedness: o }) {
13
- const r = [
10
+ import { useAppearence as _n, WhenInViewport as Cn, Resource as Me, ElementRect as ce, AutoSelect as En, WindowSize as Bn } from "@tempots/ui";
11
+ class In {
12
+ button({ variant: l, size: e, color: t, roundedness: r }) {
13
+ const o = [
14
14
  "bc-button",
15
15
  `bu-text-${e}`,
16
16
  `bc-control--padding-${e}`,
17
- `bc-control--rounded-${o}`
17
+ `bc-control--rounded-${r}`
18
18
  ];
19
19
  switch (l) {
20
20
  case "filled":
21
- r.push(`bu-bg--${t}`), r.push(`hover:bu-bg--${t}`);
21
+ o.push(`bu-bg--${t}`), o.push(`hover:bu-bg--${t}`);
22
22
  break;
23
23
  case "light":
24
- r.push(`bu-bg--light-${t}`), r.push(`hover:bu-bg--light-${t}`);
24
+ o.push(`bu-bg--light-${t}`), o.push(`hover:bu-bg--light-${t}`);
25
25
  break;
26
26
  case "outline":
27
- r.push(`bu-border--${t}`), r.push(`hover:bu-bg--light-${t}`);
27
+ o.push(`bu-border--${t}`), o.push(`hover:bu-bg--light-${t}`);
28
28
  break;
29
29
  case "default":
30
- r.push("bu-bg--light-neutral"), r.push(`bu-text--${t}`), r.push("hover:bu-bg--light-base");
30
+ o.push("bu-bg--light-neutral"), o.push(`bu-text--${t}`), o.push("hover:bu-bg--light-base");
31
31
  break;
32
32
  case "text":
33
- r.push("bu-bg--inherit"), r.push(`bu-text--${t}`), r.push("hover:bu-underline");
33
+ o.push("bu-bg--inherit"), o.push(`bu-text--${t}`), o.push("hover:bu-underline");
34
34
  break;
35
35
  }
36
- return r.join(" ");
36
+ return o.join(" ");
37
37
  }
38
38
  overlay({ effect: l, mode: e }) {
39
39
  return `bc-overlay bc-overlay--effect-${l} bc-overlay--mode-${e}`;
@@ -43,7 +43,7 @@ class Bn {
43
43
  return e && t.push(`bu-fg--${e}`), t.join(" ");
44
44
  }
45
45
  panel({ side: l, color: e, shadow: t }) {
46
- return `bc-panel ${(Array.isArray(l) ? l : [l]).map((r) => `bc-panel--side-${r}`).join(" ")} bu-bg--lighter-${e} bc-panel--shadow-${t}`;
46
+ return `bc-panel ${(Array.isArray(l) ? l : [l]).map((o) => `bc-panel--side-${o}`).join(" ")} bu-bg--lighter-${e} bc-panel--shadow-${t}`;
47
47
  }
48
48
  label(l) {
49
49
  return `bc-label bc-label--${l.type}`;
@@ -80,8 +80,8 @@ class Bn {
80
80
  size: e = "md",
81
81
  roundedness: t = "lg"
82
82
  }) {
83
- const o = ["bc-card"];
84
- return l !== "default" && o.push(`bc-card--${l}`), e !== "md" && o.push(`bc-card--padding-${e}`), t !== "lg" && o.push(`bc-card--rounded-${t}`), o.join(" ");
83
+ const r = ["bc-card"];
84
+ return l !== "default" && r.push(`bc-card--${l}`), e !== "md" && r.push(`bc-card--padding-${e}`), t !== "lg" && r.push(`bc-card--rounded-${t}`), r.join(" ");
85
85
  }
86
86
  center({ gap: l = "lg" }) {
87
87
  const e = ["bc-center"];
@@ -92,8 +92,8 @@ class Bn {
92
92
  size: e = "md",
93
93
  roundedness: t = "lg"
94
94
  }) {
95
- const o = ["bc-sink"];
96
- return l !== "default" && o.push(`bc-sink--${l}`), e !== "md" && o.push(`bc-sink--padding-${e}`), t !== "lg" && o.push(`bc-sink--rounded-${t}`), o.join(" ");
95
+ const r = ["bc-sink"];
96
+ return l !== "default" && r.push(`bc-sink--${l}`), e !== "md" && r.push(`bc-sink--padding-${e}`), t !== "lg" && r.push(`bc-sink--rounded-${t}`), r.join(" ");
97
97
  }
98
98
  segmentedControl({ size: l = "sm" }) {
99
99
  return [
@@ -108,28 +108,28 @@ class Bn {
108
108
  }
109
109
  }
110
110
  const C = {
111
- mark: gn("Theme"),
111
+ mark: bn("Theme"),
112
112
  // Create function returns the value and cleanup
113
113
  create: (n) => {
114
- const l = new Bn(), e = Sn(), t = bn({
114
+ const l = new In(), e = _n(), t = fn({
115
115
  key: "beatui-appearance-preference",
116
116
  defaultValue: "system"
117
- }), o = () => {
117
+ }), r = () => {
118
118
  e.dispose(), t.dispose();
119
- }, r = y(
119
+ }, o = y(
120
120
  e,
121
121
  t
122
122
  )((u, i) => i === "system" ? u : i);
123
123
  return {
124
124
  value: {
125
125
  theme: l,
126
- appearance: r,
126
+ appearance: o,
127
127
  appearancePreference: t,
128
128
  setAppearancePreference: (u) => {
129
129
  t.set(u);
130
130
  }
131
131
  },
132
- dispose: o
132
+ dispose: r
133
133
  };
134
134
  }
135
135
  }, Dt = () => _(
@@ -141,8 +141,8 @@ function He({
141
141
  disabled: l,
142
142
  variant: e = "filled",
143
143
  size: t = "md",
144
- color: o = "base",
145
- roundedness: r = "sm",
144
+ color: r = "base",
145
+ roundedness: o = "sm",
146
146
  onClick: s = () => {
147
147
  }
148
148
  }, ...u) {
@@ -154,8 +154,8 @@ function He({
154
154
  i,
155
155
  e ?? "primary",
156
156
  t ?? "md",
157
- o,
158
- r
157
+ r,
158
+ o
159
159
  )(
160
160
  ({ theme: a }, p, g, b, x) => a.button({
161
161
  variant: p,
@@ -169,13 +169,13 @@ function He({
169
169
  ...u
170
170
  ));
171
171
  }
172
- const In = "bui-icons";
173
- function An() {
172
+ const An = "bui-icons";
173
+ function Tn() {
174
174
  return new Promise((n, l) => {
175
- const e = indexedDB.open(In, 1);
175
+ const e = indexedDB.open(An, 1);
176
176
  e.onupgradeneeded = function(t) {
177
- const o = t.target.result;
178
- o.objectStoreNames.contains("icons") || o.createObjectStore("icons");
177
+ const r = t.target.result;
178
+ r.objectStoreNames.contains("icons") || r.createObjectStore("icons");
179
179
  }, e.onsuccess = function() {
180
180
  n(e.result);
181
181
  }, e.onerror = function() {
@@ -183,14 +183,14 @@ function An() {
183
183
  };
184
184
  });
185
185
  }
186
- const Le = An();
187
- function Tn(n, l) {
186
+ const Le = Tn();
187
+ function On(n, l) {
188
188
  return new Promise(async (e, t) => {
189
- const r = (await Le).transaction("icons", "readwrite");
190
- r.objectStore("icons").put(l, n), r.oncomplete = e, r.onerror = t;
189
+ const o = (await Le).transaction("icons", "readwrite");
190
+ o.objectStore("icons").put(l, n), o.oncomplete = e, o.onerror = t;
191
191
  });
192
192
  }
193
- function On(n) {
193
+ function Vn(n) {
194
194
  return new Promise(async (l, e) => {
195
195
  const s = (await Le).transaction("icons", "readonly").objectStore("icons").get(n);
196
196
  s.onsuccess = function() {
@@ -198,7 +198,7 @@ function On(n) {
198
198
  }, s.onerror = e;
199
199
  });
200
200
  }
201
- async function Vn(n) {
201
+ async function jn(n) {
202
202
  const l = `https://api.iconify.design/${n}.svg`;
203
203
  return fetch(l).then((e) => {
204
204
  if (e.status === 200)
@@ -206,28 +206,28 @@ async function Vn(n) {
206
206
  throw new Error(`Failed to load icon: ${n}`);
207
207
  });
208
208
  }
209
- async function jn(n) {
210
- const l = n.replace(":", "/"), e = await On(l);
209
+ async function Nn(n) {
210
+ const l = n.replace(":", "/"), e = await Vn(l);
211
211
  if (e)
212
212
  return e;
213
- const t = await Vn(l);
214
- return await Tn(l, t), t;
213
+ const t = await jn(l);
214
+ return await On(l, t), t;
215
215
  }
216
- function Z({ icon: n, size: l = "md", color: e, title: t }, ...o) {
217
- return _(C, ({ theme: r }) => h.span(
216
+ function Z({ icon: n, size: l = "md", color: e, title: t }, ...r) {
217
+ return _(C, ({ theme: o }) => h.span(
218
218
  c.class(
219
219
  y(
220
- r,
220
+ o,
221
221
  l,
222
222
  e
223
223
  )((s, u, i) => s.icon({ size: u, color: i }))
224
224
  ),
225
225
  q.label(t),
226
- _n(
226
+ Cn(
227
227
  { once: !0 },
228
228
  () => Me({
229
229
  request: n,
230
- load: ({ request: s }) => jn(s),
230
+ load: ({ request: s }) => Nn(s),
231
231
  mapError: String
232
232
  })({
233
233
  success: (s) => h.span(
@@ -239,22 +239,22 @@ function Z({ icon: n, size: l = "md", color: e, title: t }, ...o) {
239
239
  failure: (s) => h.span(c.title(s), c.class("text-red-500"), "🚫")
240
240
  })
241
241
  ),
242
- ...o
242
+ ...r
243
243
  ));
244
244
  }
245
- const Nn = ({
245
+ const Fn = ({
246
246
  disabled: n,
247
247
  value: l,
248
248
  color: e = "base",
249
249
  onClose: t
250
250
  }) => {
251
- const o = S.map(n ?? !1, (s) => s), r = S.map(e ?? "base", (s) => s);
251
+ const r = S.map(n ?? !1, (s) => s), o = S.map(e ?? "base", (s) => s);
252
252
  return _(C, (s) => h.span(
253
253
  c.class(
254
254
  y(
255
255
  s,
256
- o,
257
- r
256
+ r,
257
+ o
258
258
  )(
259
259
  ({ theme: u }, i, a) => u.tag({
260
260
  disabled: i,
@@ -273,7 +273,7 @@ const Nn = ({
273
273
  }, Pt = (...n) => _(
274
274
  C,
275
275
  ({ theme: l }) => h.span(c.class(l.label({ type: "emphasis" })), ...n)
276
- ), Fn = (...n) => _(
276
+ ), Re = (...n) => _(
277
277
  C,
278
278
  ({ theme: l }) => h.span(c.class(l.label({ type: "default" })), ...n)
279
279
  ), Hn = (...n) => _(
@@ -290,14 +290,14 @@ const Nn = ({
290
290
  label: l,
291
291
  context: e,
292
292
  description: t,
293
- content: o,
294
- controller: r
293
+ content: r,
294
+ controller: o
295
295
  }) => _(C, (s) => h.div(
296
296
  c.class(
297
297
  y(
298
298
  s,
299
- r.hasError,
300
- r.disabled
299
+ o.hasError,
300
+ o.disabled
301
301
  )(
302
302
  ({ theme: u }, i, a) => u.controlInputWrapper({
303
303
  hasError: i,
@@ -309,13 +309,13 @@ const Nn = ({
309
309
  c.class("bc-control-input-wrapper__header"),
310
310
  h.label(
311
311
  c.class("bc-control-input-wrapper__label"),
312
- c.for(r.name),
312
+ c.for(o.name),
313
313
  h.span(
314
314
  c.class(
315
315
  y(
316
316
  s,
317
- r.hasError,
318
- r.disabled
317
+ o.hasError,
318
+ o.disabled
319
319
  )(
320
320
  ({ theme: u }, i, a) => u.controlInputWrapperLabelText({
321
321
  hasError: i,
@@ -327,15 +327,15 @@ const Nn = ({
327
327
  ),
328
328
  l != null && n ? Wn : k
329
329
  ),
330
- e != null ? Fn(e) : k
330
+ e != null ? Re(e) : k
331
331
  ) : k,
332
- h.div(c.class("bc-control-input-wrapper__content"), o),
332
+ h.div(c.class("bc-control-input-wrapper__content"), r),
333
333
  t != null ? h.div(
334
334
  c.class("bc-control-input-wrapper__description"),
335
335
  t
336
336
  ) : k,
337
337
  Pe(
338
- r.error,
338
+ o.error,
339
339
  (u) => h.div(c.class("bc-control-input-wrapper__error"), u)
340
340
  )
341
341
  )), O = ({
@@ -343,8 +343,8 @@ const Nn = ({
343
343
  disabled: l,
344
344
  input: e,
345
345
  before: t,
346
- after: o,
347
- hasError: r,
346
+ after: r,
347
+ hasError: o,
348
348
  focusableSelector: s = "input, select, textarea",
349
349
  growInput: u = !0
350
350
  }) => {
@@ -362,7 +362,7 @@ const Nn = ({
362
362
  y(
363
363
  a,
364
364
  i,
365
- r ?? !1
365
+ o ?? !1
366
366
  )(
367
367
  ({ theme: p }, g, b) => p.inputContainer({
368
368
  disabled: g,
@@ -381,23 +381,23 @@ const Nn = ({
381
381
  ),
382
382
  e
383
383
  ),
384
- o != null ? h.span(c.class("bc-input-container__after"), o) : null
384
+ r != null ? h.span(c.class("bc-input-container__after"), r) : null
385
385
  ));
386
386
  }, V = ({
387
387
  autocomplete: n,
388
388
  autofocus: l,
389
389
  class: e,
390
390
  disabled: t,
391
- name: o,
392
- placeholder: r,
391
+ name: r,
392
+ placeholder: o,
393
393
  id: s
394
394
  }) => U(
395
395
  c.autocomplete(n),
396
396
  c.autofocus(l),
397
397
  c.class(e),
398
398
  c.disabled(t),
399
- c.name(o ?? s),
400
- c.placeholder(r),
399
+ c.name(r ?? s),
400
+ c.placeholder(o),
401
401
  c.id(s)
402
402
  ), T = (n) => ({
403
403
  id: n.name,
@@ -407,7 +407,7 @@ const Nn = ({
407
407
  }), fe = (n, l) => ({
408
408
  ...T(n),
409
409
  value: n.value.map(l)
410
- }), Re = (n) => {
410
+ }), qe = (n) => {
411
411
  const { value: l, onBlur: e, onChange: t } = n;
412
412
  return O({
413
413
  ...n,
@@ -416,11 +416,11 @@ const Nn = ({
416
416
  c.valueAsDate(l),
417
417
  c.class("bc-input"),
418
418
  e != null ? m.blur(v(e)) : k,
419
- t != null ? m.change(fn(t)) : k
419
+ t != null ? m.change(kn(t)) : k
420
420
  )
421
421
  });
422
422
  }, Dn = (n) => {
423
- const { value: l, onBlur: e, onChange: t, onInput: o } = n;
423
+ const { value: l, onBlur: e, onChange: t, onInput: r } = n;
424
424
  return O({
425
425
  ...n,
426
426
  input: P.text(
@@ -429,7 +429,7 @@ const Nn = ({
429
429
  c.class("bc-input"),
430
430
  e != null ? m.blur(v(e)) : k,
431
431
  t != null ? m.change(v(t)) : k,
432
- o != null ? m.input(v(o)) : k
432
+ r != null ? m.input(v(r)) : k
433
433
  )
434
434
  });
435
435
  }, A = (
@@ -440,8 +440,8 @@ const Nn = ({
440
440
  ), j = (n, l) => (e) => {
441
441
  n.change(e), l == null || l(e);
442
442
  }, ke = (n, l, e) => (t) => {
443
- const o = l(t);
444
- n.change(o), e == null || e(o);
443
+ const r = l(t);
444
+ n.change(r), e == null || e(r);
445
445
  }, Lt = (n, l, e) => (t) => {
446
446
  l(t) ? (n.change(null), e == null || e(null)) : (n.change(t), e == null || e(t));
447
447
  }, Rt = (n) => {
@@ -459,7 +459,7 @@ const Nn = ({
459
459
  const { onBlur: l, onChange: e, ...t } = n;
460
460
  return I({
461
461
  ...t,
462
- content: Re({
462
+ content: qe({
463
463
  ...t,
464
464
  ...T(t.controller),
465
465
  onChange: j(t.controller, e),
@@ -467,8 +467,8 @@ const Nn = ({
467
467
  })
468
468
  });
469
469
  }, Pn = (n) => {
470
- const l = n.getFullYear(), e = (n.getMonth() + 1).toString().padStart(2, "0"), t = n.getDate().toString().padStart(2, "0"), o = n.getHours().toString().padStart(2, "0"), r = n.getMinutes().toString().padStart(2, "0");
471
- return `${l}-${e}-${t}T${o}:${r}`;
470
+ const l = n.getFullYear(), e = (n.getMonth() + 1).toString().padStart(2, "0"), t = n.getDate().toString().padStart(2, "0"), r = n.getHours().toString().padStart(2, "0"), o = n.getMinutes().toString().padStart(2, "0");
471
+ return `${l}-${e}-${t}T${r}:${o}`;
472
472
  }, Mn = (n) => {
473
473
  const { value: l, onBlur: e, onChange: t } = n;
474
474
  return O({
@@ -478,7 +478,7 @@ const Nn = ({
478
478
  c.value(S.map(l, Pn)),
479
479
  c.class("bc-input"),
480
480
  e != null ? m.blur(v(e)) : k,
481
- t != null ? m.change(v((o) => t(new Date(o)))) : k
481
+ t != null ? m.change(v((r) => t(new Date(r)))) : k
482
482
  )
483
483
  });
484
484
  }, zt = (n) => {
@@ -498,7 +498,7 @@ const Nn = ({
498
498
  autocomplete: "email",
499
499
  placeholder: "you@company.com",
500
500
  ...n
501
- }, { value: e, onBlur: t, onChange: o, onInput: r } = l;
501
+ }, { value: e, onBlur: t, onChange: r, onInput: o } = l;
502
502
  return O({
503
503
  ...n,
504
504
  input: P.email(
@@ -506,8 +506,8 @@ const Nn = ({
506
506
  c.value(e),
507
507
  c.class("bc-input"),
508
508
  t != null ? m.blur(v(t)) : k,
509
- o != null ? m.change(v(o)) : k,
510
- r != null ? m.input(v(r)) : k
509
+ r != null ? m.change(v(r)) : k,
510
+ o != null ? m.input(v(o)) : k
511
511
  )
512
512
  });
513
513
  }, Ut = (n) => {
@@ -529,7 +529,7 @@ const Nn = ({
529
529
  success: { type: "success" }
530
530
  }, xe = "$$tts-exp-", Rn = (n, l) => z((e) => {
531
531
  const t = `${xe}${n}`;
532
- return K(S.on(l, (o) => Reflect.set(e, t, o)));
532
+ return K(S.on(l, (r) => Reflect.set(e, t, r)));
533
533
  }), Xt = (n, l) => {
534
534
  const e = `${xe}${n}`;
535
535
  return (t) => {
@@ -538,7 +538,7 @@ const Nn = ({
538
538
  }, qn = (n, l) => {
539
539
  const e = `${xe}${n}`;
540
540
  return (t) => {
541
- const o = t.target, r = o.selectedIndex, s = o.options[r];
541
+ const r = t.target, o = r.selectedIndex, s = r.options[o];
542
542
  l(Reflect.get(s, e));
543
543
  };
544
544
  }, de = {
@@ -558,28 +558,28 @@ const Nn = ({
558
558
  getOptionValues: (n) => n.flatMap(
559
559
  (l) => l.type === "group" ? de.getOptionValues(l.options) : l.type === "break" ? [] : [l.value]
560
560
  ),
561
- contains: (n, l, e = (t, o) => t === o) => de.getOptionValues(n).some((t) => e(t, l))
562
- }, qe = (n, l, e) => Pe(
561
+ contains: (n, l, e = (t, r) => t === r) => de.getOptionValues(n).some((t) => e(t, l))
562
+ }, ze = (n, l, e) => Pe(
563
563
  n,
564
- (t) => kn(t, {
565
- value: (o) => {
566
- const r = y(
567
- o,
564
+ (t) => xn(t, {
565
+ value: (r) => {
566
+ const o = y(
567
+ r,
568
568
  e
569
569
  )((s, u) => l(s.value, u));
570
570
  return h.option(
571
- K(r.dispose),
572
- c.selected(r),
573
- Rn("value", o.$.value),
574
- o.$.label
571
+ K(o.dispose),
572
+ c.selected(o),
573
+ Rn("value", r.$.value),
574
+ r.$.label
575
575
  );
576
576
  },
577
- group: (o) => h.optgroup(
578
- c.label(o.$.group),
577
+ group: (r) => h.optgroup(
578
+ c.label(r.$.group),
579
579
  be(
580
- o.$.options,
581
- (r) => qe(
582
- r,
580
+ r.$.options,
581
+ (o) => ze(
582
+ o,
583
583
  l,
584
584
  e
585
585
  )
@@ -587,13 +587,13 @@ const Nn = ({
587
587
  ),
588
588
  break: () => h.hr()
589
589
  })
590
- ), ze = (n) => {
590
+ ), Ue = (n) => {
591
591
  const {
592
592
  value: l,
593
593
  onBlur: e,
594
594
  onChange: t,
595
- options: o,
596
- unselectedLabel: r = "Select one ...",
595
+ options: r,
596
+ unselectedLabel: o = "Select one ...",
597
597
  equality: s = (i, a) => i === a
598
598
  } = n;
599
599
  let u;
@@ -614,8 +614,8 @@ const Nn = ({
614
614
  V(n),
615
615
  c.class("focus:outline-none bg-transparent"),
616
616
  c.class("w-full"),
617
- h.option(c.hidden("hidden"), r),
618
- be(o, (i) => qe(i, s, l)),
617
+ h.option(c.hidden("hidden"), o),
618
+ be(r, (i) => ze(i, s, l)),
619
619
  e != null ? m.blur(e) : k,
620
620
  t != null ? m.change(qn("value", (i) => t(i))) : k
621
621
  )
@@ -627,9 +627,9 @@ const Nn = ({
627
627
  })({
628
628
  success: (l) => {
629
629
  const e = l.map(
630
- (t) => t.map((o) => typeof o == "object" && "id" in o && "label" in o ? de.value(o.id, o.label) : o)
630
+ (t) => t.map((r) => typeof r == "object" && "id" in r && "label" in r ? de.value(r.id, r.label) : r)
631
631
  );
632
- return ze({
632
+ return Ue({
633
633
  ...n,
634
634
  options: e,
635
635
  unselectedLabel: n.unselectedLabel,
@@ -652,14 +652,14 @@ const Nn = ({
652
652
  const { onBlur: l, onChange: e, ...t } = n;
653
653
  return I({
654
654
  ...t,
655
- content: ze({
655
+ content: Ue({
656
656
  ...t,
657
657
  ...T(t.controller),
658
658
  onChange: j(t.controller, e),
659
659
  onBlur: A(t.controller, l)
660
660
  })
661
661
  });
662
- }, Ue = (n) => {
662
+ }, Ge = (n) => {
663
663
  const { value: l, onBlur: e, onChange: t } = n;
664
664
  return O({
665
665
  ...n,
@@ -668,14 +668,14 @@ const Nn = ({
668
668
  c.valueAsDate(l),
669
669
  c.class("bc-input"),
670
670
  e != null ? m.blur(v(e)) : k,
671
- t != null ? m.change(xn(t)) : k
671
+ t != null ? m.change(yn(t)) : k
672
672
  )
673
673
  });
674
674
  }, Jt = (n) => {
675
675
  const { onBlur: l, onChange: e, ...t } = n;
676
676
  return I({
677
677
  ...t,
678
- content: Ue({
678
+ content: Ge({
679
679
  ...t,
680
680
  ...T(t.controller),
681
681
  onChange: j(t.controller, e),
@@ -683,25 +683,25 @@ const Nn = ({
683
683
  })
684
684
  });
685
685
  }, Un = (n) => {
686
- const l = n.getFullYear(), e = n.getMonth() + 1, t = n.getDate(), o = n.getHours(), r = n.getMinutes(), s = n.getSeconds();
687
- return `${l}-${e.toString().padStart(2, "0")}-${t.toString().padStart(2, "0")}T${o.toString().padStart(2, "0")}:${r.toString().padStart(2, "0")}:${s.toString().padStart(2, "0")}`;
688
- }, Ge = (n) => {
689
- const { value: l, onBlur: e, onChange: t } = n, o = S.map(l, (r) => r != null ? Un(r) : null);
686
+ const l = n.getFullYear(), e = n.getMonth() + 1, t = n.getDate(), r = n.getHours(), o = n.getMinutes(), s = n.getSeconds();
687
+ return `${l}-${e.toString().padStart(2, "0")}-${t.toString().padStart(2, "0")}T${r.toString().padStart(2, "0")}:${o.toString().padStart(2, "0")}:${s.toString().padStart(2, "0")}`;
688
+ }, Xe = (n) => {
689
+ const { value: l, onBlur: e, onChange: t } = n, r = S.map(l, (o) => o != null ? Un(o) : null);
690
690
  return O({
691
691
  ...n,
692
692
  input: P["datetime-local"](
693
693
  V(n),
694
- c.value(S.map(o, (r) => r ?? null)),
694
+ c.value(S.map(r, (o) => o ?? null)),
695
695
  c.class("bc-input"),
696
696
  e != null ? m.blur(v(e)) : k,
697
- t != null ? m.change(yn(t)) : k
697
+ t != null ? m.change(vn(t)) : k
698
698
  )
699
699
  });
700
700
  }, Kt = (n) => {
701
701
  const { onBlur: l, onChange: e, ...t } = n;
702
702
  return I({
703
703
  ...t,
704
- content: Ge({
704
+ content: Xe({
705
705
  ...t,
706
706
  ...T(t.controller),
707
707
  onChange: j(t.controller, e),
@@ -712,15 +712,15 @@ const Nn = ({
712
712
  const { onBlur: l, onChange: e, ...t } = n;
713
713
  return I({
714
714
  ...t,
715
- content: Ue({
715
+ content: Ge({
716
716
  ...t,
717
717
  ...fe(
718
718
  t.controller,
719
- (o) => o != null && o !== "" ? new Date(o) : null
719
+ (r) => r != null && r !== "" ? new Date(r) : null
720
720
  ),
721
721
  onChange: ke(
722
722
  t.controller,
723
- (o) => o != null ? o.toISOString().split("T")[0] : null,
723
+ (r) => r != null ? r.toISOString().split("T")[0] : null,
724
724
  e
725
725
  ),
726
726
  onBlur: A(t.controller, l)
@@ -730,57 +730,57 @@ const Nn = ({
730
730
  const { onBlur: l, onChange: e, ...t } = n;
731
731
  return I({
732
732
  ...t,
733
- content: Ge({
733
+ content: Xe({
734
734
  ...t,
735
735
  ...fe(
736
736
  t.controller,
737
- (o) => o != null && o !== "" ? Gn(o) : null
737
+ (r) => r != null && r !== "" ? Gn(r) : null
738
738
  ),
739
739
  onChange: ke(
740
740
  t.controller,
741
- (o) => o != null ? Xn(o) : null,
741
+ (r) => r != null ? Xn(r) : null,
742
742
  e
743
743
  ),
744
744
  onBlur: A(t.controller, l)
745
745
  })
746
746
  });
747
- }, oe = (n) => typeof n == "string" && n.trim() === "" ? null : n, Xe = (n) => n ?? "", Qn = (n) => {
748
- const { value: l, onBlur: e, onChange: t, onInput: o, ...r } = n;
747
+ }, re = (n) => typeof n == "string" && n.trim() === "" ? null : n, Qe = (n) => n ?? "", Qn = (n) => {
748
+ const { value: l, onBlur: e, onChange: t, onInput: r, ...o } = n;
749
749
  return O({
750
- ...r,
750
+ ...o,
751
751
  input: P.text(
752
- V(r),
753
- c.value(S.map(l, Xe)),
752
+ V(o),
753
+ c.value(S.map(l, Qe)),
754
754
  c.class("bc-input"),
755
755
  e != null ? m.blur(e) : k,
756
- t != null ? m.change(v((s) => t(oe(s)))) : k,
757
- o != null ? m.input(v((s) => o(oe(s)))) : k
756
+ t != null ? m.change(v((s) => t(re(s)))) : k,
757
+ r != null ? m.input(v((s) => r(re(s)))) : k
758
758
  )
759
759
  });
760
760
  }, Yn = (n) => {
761
- const { value: l, onBlur: e, onChange: t, onInput: o, rows: r } = n;
761
+ const { value: l, onBlur: e, onChange: t, onInput: r, rows: o } = n;
762
762
  return O({
763
763
  ...n,
764
764
  input: h.textarea(
765
765
  V(n),
766
- c.rows(r ?? 10),
767
- c.value(S.map(l, Xe)),
766
+ c.rows(o ?? 10),
767
+ c.value(S.map(l, Qe)),
768
768
  c.class("bc-input"),
769
769
  e != null ? m.blur(e) : k,
770
- t != null ? m.change(v((s) => t(oe(s)))) : k,
771
- o != null ? m.input(v((s) => o(oe(s)))) : k
770
+ t != null ? m.change(v((s) => t(re(s)))) : k,
771
+ r != null ? m.input(v((s) => r(re(s)))) : k
772
772
  )
773
773
  });
774
774
  }, nl = (n) => {
775
- const { onBlur: l, onChange: e, rows: t, ...o } = n;
775
+ const { onBlur: l, onChange: e, rows: t, ...r } = n;
776
776
  return I({
777
- ...o,
777
+ ...r,
778
778
  content: Yn({
779
- ...o,
780
- ...T(o.controller),
779
+ ...r,
780
+ ...T(r.controller),
781
781
  rows: t,
782
- onChange: j(o.controller, e),
783
- onBlur: A(o.controller, l)
782
+ onChange: j(r.controller, e),
783
+ onBlur: A(r.controller, l)
784
784
  })
785
785
  });
786
786
  }, tl = (n) => {
@@ -795,7 +795,7 @@ const Nn = ({
795
795
  })
796
796
  });
797
797
  }, Jn = (n) => {
798
- const { value: l, step: e, min: t, max: o, onBlur: r, onChange: s, onInput: u, disabled: i } = n;
798
+ const { value: l, step: e, min: t, max: r, onBlur: o, onChange: s, onInput: u, disabled: i } = n;
799
799
  return _(C, (a) => O({
800
800
  ...n,
801
801
  input: P.number(
@@ -803,7 +803,7 @@ const Nn = ({
803
803
  c.valueAsNumber(l),
804
804
  c.step(e),
805
805
  c.min(t),
806
- c.max(o),
806
+ c.max(r),
807
807
  c.class("bc-input"),
808
808
  c.class(
809
809
  y(
@@ -815,7 +815,7 @@ const Nn = ({
815
815
  })
816
816
  )
817
817
  ),
818
- r != null ? m.blur(v(r)) : k,
818
+ o != null ? m.blur(v(o)) : k,
819
819
  s != null ? m.change(ie(s)) : k,
820
820
  u != null ? m.input(ie(u)) : k
821
821
  )
@@ -836,8 +836,8 @@ const Nn = ({
836
836
  value: l,
837
837
  onBlur: e,
838
838
  onChange: t,
839
- onInput: o,
840
- before: r,
839
+ onInput: r,
840
+ before: o,
841
841
  after: s,
842
842
  hasError: u,
843
843
  disabled: i,
@@ -855,7 +855,7 @@ const Nn = ({
855
855
  p
856
856
  )((M, G) => M ? "•••••••••••••••" : G ?? "secret password");
857
857
  return O({
858
- before: r,
858
+ before: o,
859
859
  disabled: i,
860
860
  hasError: u,
861
861
  input: h.input(
@@ -873,7 +873,7 @@ const Nn = ({
873
873
  c.value(l),
874
874
  e != null ? m.blur(v(e)) : k,
875
875
  t != null ? m.change(v(t)) : k,
876
- o != null ? m.input(v(o)) : k
876
+ r != null ? m.input(v(r)) : k
877
877
  ),
878
878
  after: s ?? h.button(
879
879
  c.class("bc-input-container__password-toggle"),
@@ -886,7 +886,7 @@ const Nn = ({
886
886
  )
887
887
  )
888
888
  });
889
- }, ol = (n) => {
889
+ }, rl = (n) => {
890
890
  const { onBlur: l, onChange: e, ...t } = n;
891
891
  return I({
892
892
  label: "Password",
@@ -902,15 +902,15 @@ const Nn = ({
902
902
  function Zn(n, l) {
903
903
  return n.length === l.length && n.every((e, t) => e === l[t]);
904
904
  }
905
- function rl({
905
+ function ol({
906
906
  segments: n,
907
907
  activeSegment: l = null,
908
908
  onSegmentChange: e,
909
909
  size: t = "md"
910
910
  }) {
911
- const o = S.toSignal(
911
+ const r = S.toSignal(
912
912
  l ?? null
913
- ).deriveProp(), r = W(
913
+ ).deriveProp(), o = W(
914
914
  n.map(() => 0),
915
915
  Zn
916
916
  );
@@ -931,27 +931,27 @@ function rl({
931
931
  h.div(
932
932
  c.class("bc-segmented-control__indicator"),
933
933
  d.display(
934
- o.map((u) => u == null ? "none" : "block")
934
+ r.map((u) => u == null ? "none" : "block")
935
935
  ),
936
936
  d.width(
937
- Fe(() => `${r.value[o.value ?? 0]}px`, [o, r])
937
+ Fe(() => `${o.value[r.value ?? 0]}px`, [r, o])
938
938
  ),
939
939
  d.left(
940
- Fe(() => `${r.value.slice(0, o.value ?? 0).reduce((i, a) => i + a, 0)}px`, [o, r])
940
+ Fe(() => `${o.value.slice(0, r.value ?? 0).reduce((i, a) => i + a, 0)}px`, [r, o])
941
941
  )
942
942
  ),
943
943
  // clickable buttons
944
944
  n.map(({ label: u, onSelect: i }, a) => h.button(
945
945
  // { href: href ?? '' },
946
946
  m.click((p) => {
947
- p.preventDefault(), o.set(a), e == null || e(a), i == null || i();
947
+ p.preventDefault(), r.set(a), e == null || e(a), i == null || i();
948
948
  }),
949
949
  c.class("bc-segmented-control__segment"),
950
950
  c.class(
951
- o.map((p) => p == null || p === a ? "bc-segmented-control__segment--active" : "bc-segmented-control__segment--inactive")
951
+ r.map((p) => p == null || p === a ? "bc-segmented-control__segment--active" : "bc-segmented-control__segment--inactive")
952
952
  ),
953
953
  ce((p) => (p.on(({ width: g }) => {
954
- r.update((b) => {
954
+ o.update((b) => {
955
955
  const x = [...b];
956
956
  return x[a] = g, x;
957
957
  });
@@ -964,37 +964,37 @@ const sl = (n) => {
964
964
  const { onBlur: l, onChange: e, ...t } = n;
965
965
  return I({
966
966
  ...t,
967
- content: Re({
967
+ content: qe({
968
968
  ...t,
969
969
  ...fe(
970
970
  t.controller,
971
- (o) => new Date(o)
971
+ (r) => new Date(r)
972
972
  ),
973
973
  onChange: ke(
974
974
  t.controller,
975
- (o) => o.toISOString(),
975
+ (r) => r.toISOString(),
976
976
  e
977
977
  ),
978
978
  onBlur: A(t.controller, l)
979
979
  })
980
980
  });
981
981
  }, et = (n) => {
982
- const { value: l, onChange: e, onBlur: t } = n, o = W(""), r = (u) => {
982
+ const { value: l, onChange: e, onBlur: t } = n, r = W(""), o = (u) => {
983
983
  e == null || e(S.get(l).filter((i) => i !== u));
984
984
  }, s = () => {
985
- const u = o.value.trim(), i = S.get(l);
986
- u === "" || i.includes(u) || (o.set(""), e == null || e([...i, u]));
985
+ const u = r.value.trim(), i = S.get(l);
986
+ u === "" || i.includes(u) || (r.set(""), e == null || e([...i, u]));
987
987
  };
988
988
  return O({
989
989
  ...n,
990
990
  input: U(
991
991
  c.class("bc-input-container__tags"),
992
- be(l, (u) => Nn({ value: u, onClose: () => r(u.value) })),
992
+ be(l, (u) => Fn({ value: u, onClose: () => o(u.value) })),
993
993
  P.text(
994
994
  V(n),
995
- c.value(o),
995
+ c.value(r),
996
996
  c.class("bc-input bc-input-container__tags-input"),
997
- m.input(v(o.set)),
997
+ m.input(v(r.set)),
998
998
  e != null ? m.change(s) : k,
999
999
  t != null ? m.blur(t) : k
1000
1000
  )
@@ -1012,38 +1012,38 @@ const sl = (n) => {
1012
1012
  })
1013
1013
  });
1014
1014
  }, nt = (n) => {
1015
- const { value: l, onBlur: e, onChange: t, onInput: o, rows: r } = n;
1015
+ const { value: l, onBlur: e, onChange: t, onInput: r, rows: o } = n;
1016
1016
  return O({
1017
1017
  ...n,
1018
1018
  input: h.textarea(
1019
1019
  V(n),
1020
- c.rows(r ?? 10),
1020
+ c.rows(o ?? 10),
1021
1021
  c.value(l),
1022
1022
  c.class("bc-input"),
1023
1023
  e != null ? m.blur(v(e)) : k,
1024
1024
  t != null ? m.change(v(t)) : k,
1025
- o != null ? m.input(v(o)) : k
1025
+ r != null ? m.input(v(r)) : k
1026
1026
  )
1027
1027
  });
1028
1028
  }, al = (n) => {
1029
- const { onBlur: l, onChange: e, rows: t, ...o } = n;
1029
+ const { onBlur: l, onChange: e, rows: t, ...r } = n;
1030
1030
  return I({
1031
- ...o,
1031
+ ...r,
1032
1032
  content: nt({
1033
- ...o,
1034
- ...T(o.controller),
1033
+ ...r,
1034
+ ...T(r.controller),
1035
1035
  rows: t,
1036
- value: o.controller.value,
1037
- onChange: j(o.controller, e),
1038
- onBlur: A(o.controller, l)
1036
+ value: r.controller.value,
1037
+ onChange: j(r.controller, e),
1038
+ onBlur: A(r.controller, l)
1039
1039
  })
1040
1040
  });
1041
1041
  };
1042
- function Qe(n) {
1042
+ function Ye(n) {
1043
1043
  return function(e) {
1044
- var o;
1044
+ var r;
1045
1045
  if (e.type === "Valid") return e;
1046
- const t = (o = e.dependencies) == null ? void 0 : o[n];
1046
+ const t = (r = e.dependencies) == null ? void 0 : r[n];
1047
1047
  return t != null ? { type: "Invalid", ...t } : { type: "Valid" };
1048
1048
  };
1049
1049
  }
@@ -1065,8 +1065,8 @@ function lt(n) {
1065
1065
  ].join("");
1066
1066
  }
1067
1067
  var X;
1068
- class re {
1069
- constructor(l, e, t, o, r) {
1068
+ class oe {
1069
+ constructor(l, e, t, r, o) {
1070
1070
  w(this, "path");
1071
1071
  w(this, "change");
1072
1072
  w(this, "value");
@@ -1085,11 +1085,11 @@ class re {
1085
1085
  w(this, "enable", () => {
1086
1086
  $(this, X).disabled.set(!1);
1087
1087
  });
1088
- this.path = l, this.change = e, this.value = t, this.status = o, this.error = o.map((s) => s.type === "Invalid" ? s.error : void 0), this.hasError = o.map((s) => s.type === "Invalid"), this.dependencyErrors = o.map(
1088
+ this.path = l, this.change = e, this.value = t, this.status = r, this.error = r.map((s) => s.type === "Invalid" ? s.error : void 0), this.hasError = r.map((s) => s.type === "Invalid"), this.dependencyErrors = r.map(
1089
1089
  (s) => s.type === "Invalid" ? s.dependencies : void 0
1090
- ), this.parent = r, this.disabled = y(
1090
+ ), this.parent = o, this.disabled = y(
1091
1091
  $(this, X).disabled,
1092
- r.disabled
1092
+ o.disabled
1093
1093
  )((s, u) => s || u);
1094
1094
  }
1095
1095
  get name() {
@@ -1101,13 +1101,13 @@ class re {
1101
1101
  }
1102
1102
  X = new WeakMap();
1103
1103
  var L, Y;
1104
- const ve = class ve extends re {
1105
- constructor(e, t, o, r, s) {
1104
+ const ve = class ve extends oe {
1105
+ constructor(e, t, r, o, s) {
1106
1106
  super(
1107
1107
  e,
1108
1108
  t,
1109
- o.map((u) => u ?? []),
1110
- r,
1109
+ r.map((u) => u ?? []),
1110
+ o,
1111
1111
  s
1112
1112
  );
1113
1113
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
@@ -1115,22 +1115,22 @@ const ve = class ve extends re {
1115
1115
  Q(this, Y, (e, t) => {
1116
1116
  if ($(this, L)[e])
1117
1117
  return $(this, L)[e];
1118
- const o = async (s) => {
1118
+ const r = async (s) => {
1119
1119
  const u = this.value.value.slice();
1120
1120
  u[e] = s, this.change(u);
1121
- }, r = t(
1121
+ }, o = t(
1122
1122
  [...this.path, e],
1123
- o,
1123
+ r,
1124
1124
  this.value.map((s) => s[e]),
1125
- this.status.map(Qe(e)),
1125
+ this.status.map(Ye(e)),
1126
1126
  { disabled: this.disabled }
1127
1127
  );
1128
- return $(this, L)[e] = r, r;
1128
+ return $(this, L)[e] = o, o;
1129
1129
  });
1130
1130
  w(this, "length", this.value.map((e) => e.length));
1131
- w(this, "item", (e) => $(this, Y).call(this, e, (t, o, r, s, u) => new re(t, o, r, s, u)));
1132
- w(this, "list", (e) => $(this, Y).call(this, e, (t, o, r, s, u) => new ve(t, o, r, s, u)));
1133
- w(this, "group", (e) => $(this, Y).call(this, e, (t, o, r, s, u) => new se(t, o, r, s, u)));
1131
+ w(this, "item", (e) => $(this, Y).call(this, e, (t, r, o, s, u) => new oe(t, r, o, s, u)));
1132
+ w(this, "list", (e) => $(this, Y).call(this, e, (t, r, o, s, u) => new ve(t, r, o, s, u)));
1133
+ w(this, "group", (e) => $(this, Y).call(this, e, (t, r, o, s, u) => new se(t, r, o, s, u)));
1134
1134
  w(this, "push", (...e) => {
1135
1135
  this.change([...this.value.value, ...e]);
1136
1136
  });
@@ -1147,11 +1147,11 @@ const ve = class ve extends re {
1147
1147
  this.splice(e, 1);
1148
1148
  });
1149
1149
  w(this, "splice", (e, t) => {
1150
- const o = $(this, L).splice(e, t);
1151
- for (const s of o)
1150
+ const r = $(this, L).splice(e, t);
1151
+ for (const s of r)
1152
1152
  s.dispose();
1153
- const r = this.value.value.slice();
1154
- r.splice(e, t), this.change(r);
1153
+ const o = this.value.value.slice();
1154
+ o.splice(e, t), this.change(o);
1155
1155
  });
1156
1156
  }
1157
1157
  dispose() {
@@ -1164,13 +1164,13 @@ const ve = class ve extends re {
1164
1164
  L = new WeakMap(), Y = new WeakMap();
1165
1165
  let pe = ve;
1166
1166
  var R, J;
1167
- const we = class we extends re {
1168
- constructor(e, t, o, r, s) {
1167
+ const we = class we extends oe {
1168
+ constructor(e, t, r, o, s) {
1169
1169
  super(
1170
1170
  e,
1171
1171
  t,
1172
- o.map((u) => u ?? {}),
1173
- r,
1172
+ r.map((u) => u ?? {}),
1173
+ o,
1174
1174
  s
1175
1175
  );
1176
1176
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
@@ -1178,26 +1178,26 @@ const we = class we extends re {
1178
1178
  Q(this, J, (e, t) => {
1179
1179
  if ($(this, R).has(e))
1180
1180
  return $(this, R).get(e);
1181
- const o = async (s) => {
1181
+ const r = async (s) => {
1182
1182
  this.change({
1183
1183
  ...this.value.value,
1184
1184
  [e]: s
1185
1185
  });
1186
- }, r = t(
1186
+ }, o = t(
1187
1187
  [...this.path, e],
1188
- o,
1188
+ r,
1189
1189
  this.value.map((s) => s[e]),
1190
- this.status.map(Qe(e)),
1190
+ this.status.map(Ye(e)),
1191
1191
  { disabled: this.disabled }
1192
1192
  );
1193
1193
  return $(this, R).set(
1194
1194
  e,
1195
- r
1196
- ), r;
1195
+ o
1196
+ ), o;
1197
1197
  });
1198
- w(this, "field", (e) => $(this, J).call(this, e, (t, o, r, s, u) => new re(t, o, r, s, u)));
1199
- w(this, "list", (e) => $(this, J).call(this, e, (t, o, r, s, u) => new pe(t, o, r, s, u)));
1200
- w(this, "group", (e) => $(this, J).call(this, e, (t, o, r, s, u) => new we(t, o, r, s, u)));
1198
+ w(this, "field", (e) => $(this, J).call(this, e, (t, r, o, s, u) => new oe(t, r, o, s, u)));
1199
+ w(this, "list", (e) => $(this, J).call(this, e, (t, r, o, s, u) => new pe(t, r, o, s, u)));
1200
+ w(this, "group", (e) => $(this, J).call(this, e, (t, r, o, s, u) => new we(t, r, o, s, u)));
1201
1201
  }
1202
1202
  dispose() {
1203
1203
  super.dispose();
@@ -1208,13 +1208,13 @@ const we = class we extends re {
1208
1208
  };
1209
1209
  R = new WeakMap(), J = new WeakMap();
1210
1210
  let se = we;
1211
- class ot extends se {
1211
+ class rt extends se {
1212
1212
  dispose() {
1213
1213
  super.dispose(), this.parent.disabled.dispose(), this.value.dispose(), this.status.dispose();
1214
1214
  }
1215
1215
  }
1216
1216
  const il = (n) => {
1217
- const { value: l, onBlur: e, onChange: t, placeholder: o, disabled: r } = n;
1217
+ const { value: l, onBlur: e, onChange: t, placeholder: r, disabled: o } = n;
1218
1218
  return _(C, (s) => O({
1219
1219
  growInput: !1,
1220
1220
  ...n,
@@ -1222,7 +1222,7 @@ const il = (n) => {
1222
1222
  c.class(
1223
1223
  y(
1224
1224
  s,
1225
- r ?? !1
1225
+ o ?? !1
1226
1226
  )(
1227
1227
  ({ theme: u }, i) => u.checkboxInput({
1228
1228
  disabled: i
@@ -1234,11 +1234,11 @@ const il = (n) => {
1234
1234
  c.checked(l),
1235
1235
  c.class("bc-checkbox-input__checkbox"),
1236
1236
  e != null ? m.blur(v(e)) : k,
1237
- t != null ? m.change(vn(t)) : k
1237
+ t != null ? m.change(wn(t)) : k
1238
1238
  ),
1239
- o != null ? h.span(
1239
+ r != null ? h.span(
1240
1240
  c.class("bc-checkbox-input__label"),
1241
- Hn(o)
1241
+ Hn(r)
1242
1242
  ) : k
1243
1243
  )
1244
1244
  }));
@@ -1248,12 +1248,12 @@ const il = (n) => {
1248
1248
  onChange: e,
1249
1249
  placeholder: t
1250
1250
  }) => {
1251
- const o = S.deriveProp(n ?? !1), r = W(!1);
1251
+ const r = S.deriveProp(n ?? !1), o = W(!1);
1252
1252
  return _(C, (s) => h.div(
1253
1253
  c.class(
1254
1254
  y(
1255
1255
  s,
1256
- o
1256
+ r
1257
1257
  )(
1258
1258
  ({ theme: u }, i) => u.editableText({
1259
1259
  isEditing: i
@@ -1261,19 +1261,19 @@ const il = (n) => {
1261
1261
  )
1262
1262
  ),
1263
1263
  le(
1264
- o,
1264
+ r,
1265
1265
  () => h.input(
1266
1266
  c.placeholder(t),
1267
1267
  c.value(l),
1268
1268
  c.class("bc-editable-text__input"),
1269
- Cn(),
1269
+ En(),
1270
1270
  m.keydown((u) => {
1271
- u.key === "Enter" ? o.set(!1) : u.key === "Escape" && (r.set(!0), o.set(!1));
1271
+ u.key === "Enter" ? r.set(!1) : u.key === "Escape" && (o.set(!0), r.set(!1));
1272
1272
  }),
1273
1273
  m.blur(
1274
1274
  v((u) => {
1275
- if (o.set(!1), r.value) {
1276
- r.set(!1);
1275
+ if (r.set(!1), o.value) {
1276
+ o.set(!1);
1277
1277
  return;
1278
1278
  }
1279
1279
  e(u);
@@ -1281,7 +1281,7 @@ const il = (n) => {
1281
1281
  )
1282
1282
  ),
1283
1283
  () => h.span(
1284
- m.click(() => o.set(!0)),
1284
+ m.click(() => r.set(!0)),
1285
1285
  c.class("bc-editable-text__display"),
1286
1286
  le(
1287
1287
  S.map(l, (u) => u != null && u.trim() !== ""),
@@ -1294,7 +1294,7 @@ const il = (n) => {
1294
1294
  h.button(
1295
1295
  c.class("bc-editable-text__edit-button"),
1296
1296
  q.label("Edit"),
1297
- m.click(() => o.set(!0)),
1297
+ m.click(() => r.set(!0)),
1298
1298
  Z({ icon: "line-md/pencil" })
1299
1299
  )
1300
1300
  )
@@ -1305,14 +1305,14 @@ const il = (n) => {
1305
1305
  onChange: l,
1306
1306
  offLabel: e,
1307
1307
  onLabel: t,
1308
- label: o,
1309
- disabled: r = !1,
1308
+ label: r,
1309
+ disabled: o = !1,
1310
1310
  size: s = "md"
1311
1311
  }) => _(C, (u) => h.div(
1312
1312
  c.class(
1313
1313
  y(
1314
1314
  u,
1315
- r ?? !1,
1315
+ o ?? !1,
1316
1316
  s
1317
1317
  )(
1318
1318
  ({ theme: i }, a, p) => i.toggle({
@@ -1324,9 +1324,9 @@ const il = (n) => {
1324
1324
  c.role("switch"),
1325
1325
  q.checked(n),
1326
1326
  m.click(() => {
1327
- S.get(r) || l(!S.get(n));
1327
+ S.get(o) || l(!S.get(n));
1328
1328
  }),
1329
- o != null ? h.div(c.class("bc-toggle__label"), o) : null,
1329
+ r != null ? Re(c.class(`bu-text-${s}`), r) : null,
1330
1330
  h.div(
1331
1331
  c.class("bc-toggle__track"),
1332
1332
  c.class(
@@ -1392,7 +1392,7 @@ const il = (n) => {
1392
1392
  )
1393
1393
  )
1394
1394
  ));
1395
- function rt(n) {
1395
+ function ot(n) {
1396
1396
  function l(e) {
1397
1397
  return typeof e == "number" ? e : e.toString();
1398
1398
  }
@@ -1401,12 +1401,12 @@ function rt(n) {
1401
1401
  );
1402
1402
  }
1403
1403
  function st(n) {
1404
- const l = n.filter((o) => o.path == null || o.path.length === 0).map((o) => o.message), e = n.filter((o) => o.path != null && o.path.length > 0).reduce((o, r) => {
1405
- const s = rt(r.path), u = s.pop();
1406
- let i = o;
1404
+ const l = n.filter((r) => r.path == null || r.path.length === 0).map((r) => r.message), e = n.filter((r) => r.path != null && r.path.length > 0).reduce((r, o) => {
1405
+ const s = ot(o.path), u = s.pop();
1406
+ let i = r;
1407
1407
  for (const a of s)
1408
1408
  i.dependencies == null && (i.dependencies = {}), i.dependencies[a] == null && (i.dependencies[a] = {}), i = i.dependencies[a];
1409
- return i.dependencies == null && (i.dependencies = {}), i.dependencies[u] = { error: r.message }, o;
1409
+ return i.dependencies == null && (i.dependencies = {}), i.dependencies[u] = { error: o.message }, r;
1410
1410
  }, {}), t = l.join(`
1411
1411
  `);
1412
1412
  return {
@@ -1414,14 +1414,14 @@ function st(n) {
1414
1414
  error: t != "" ? t : void 0
1415
1415
  };
1416
1416
  }
1417
- function Ye(n) {
1417
+ function Je(n) {
1418
1418
  return U(c.disabled(n.disabled), c.name(n.name));
1419
1419
  }
1420
1420
  function pl(n, {
1421
1421
  triggerOn: l = "change"
1422
1422
  } = {}) {
1423
1423
  return U(
1424
- Ye(n),
1424
+ Je(n),
1425
1425
  c.value(n.value),
1426
1426
  (l === "input" ? m.input : m.change)(v(n.change))
1427
1427
  );
@@ -1430,7 +1430,7 @@ function ml(n, {
1430
1430
  triggerOn: l = "change"
1431
1431
  } = {}) {
1432
1432
  return U(
1433
- Ye(n),
1433
+ Je(n),
1434
1434
  c.valueAsNumber(n.value),
1435
1435
  (l === "input" ? m.input : m.change)(
1436
1436
  ie(n.change)
@@ -1441,7 +1441,7 @@ function gl({
1441
1441
  defaultValue: n = {},
1442
1442
  schema: l
1443
1443
  }) {
1444
- const e = W(n), t = W({ type: "Valid" }), o = W(!1), r = async (u) => {
1444
+ const e = W(n), t = W({ type: "Valid" }), r = W(!1), o = async (u) => {
1445
1445
  e.set(u);
1446
1446
  const i = await l["~standard"].validate(u);
1447
1447
  i.issues != null ? t.set({
@@ -1449,8 +1449,8 @@ function gl({
1449
1449
  ...st(i.issues)
1450
1450
  }) : t.set({ type: "Valid" });
1451
1451
  };
1452
- return new ot([], r, e, t, {
1453
- disabled: o
1452
+ return new rt([], o, e, t, {
1453
+ disabled: r
1454
1454
  });
1455
1455
  }
1456
1456
  const ct = ["!=", "<=", ">=", "<", ">", "="];
@@ -1461,10 +1461,10 @@ function at(n) {
1461
1461
  return ["=", n];
1462
1462
  }
1463
1463
  function ut(n, l, e) {
1464
- const [t, o] = at(l), r = n.findIndex((i) => i[1] === o);
1465
- if (r === -1)
1466
- throw new Error(`Breakpoint ${String(o)} not found`);
1467
- const s = n[r][0], u = r < n.length - 1 ? n[r + 1][0] : 1 / 0;
1464
+ const [t, r] = at(l), o = n.findIndex((i) => i[1] === r);
1465
+ if (o === -1)
1466
+ throw new Error(`Breakpoint ${String(r)} not found`);
1467
+ const s = n[o][0], u = o < n.length - 1 ? n[o + 1][0] : 1 / 0;
1468
1468
  switch (t) {
1469
1469
  case "=":
1470
1470
  return e >= s && e < u;
@@ -1486,22 +1486,22 @@ function bl(n, l) {
1486
1486
  const e = n.findIndex((t) => t[0] > l) - 1;
1487
1487
  return e >= 0 ? n[e][1] : (n.length > 0 && l >= n[0][0], n[0][1]);
1488
1488
  }
1489
- function Je(n, { breakpoints: l, mode: e = "viewport" }) {
1490
- const o = [...Object.entries(l).map(
1489
+ function Ke(n, { breakpoints: l, mode: e = "viewport" }) {
1490
+ const r = [...Object.entries(l).map(
1491
1491
  ([s, u]) => [u, s]
1492
- )].sort((s, u) => s[0] - u[0]), r = (s) => {
1492
+ )].sort((s, u) => s[0] - u[0]), o = (s) => {
1493
1493
  const u = s.map(({ width: a }) => {
1494
- const p = o.findIndex((g) => g[0] > a) - 1;
1495
- return p >= 0 ? { width: a, breakpoint: o[p][1] } : o.length > 0 && a >= o[0][0] ? { width: a, breakpoint: o[0][1] } : { width: a, breakpoint: o[0][1] };
1494
+ const p = r.findIndex((g) => g[0] > a) - 1;
1495
+ return p >= 0 ? { width: a, breakpoint: r[p][1] } : r.length > 0 && a >= r[0][0] ? { width: a, breakpoint: r[0][1] } : { width: a, breakpoint: r[0][1] };
1496
1496
  });
1497
1497
  return n({
1498
1498
  value: u,
1499
1499
  breakpoints: l,
1500
- asList: o,
1501
- is: (a, p) => ut(o, a, p)
1500
+ asList: r,
1501
+ is: (a, p) => ut(r, a, p)
1502
1502
  });
1503
1503
  };
1504
- return e === "element" ? ce(r) : En(r);
1504
+ return e === "element" ? ce(o) : Bn(o);
1505
1505
  }
1506
1506
  let ae = NaN;
1507
1507
  function it(n, l) {
@@ -1520,7 +1520,7 @@ function ht(n) {
1520
1520
  lg: B(e, "--breakpoint-lg", 1280),
1521
1521
  xl: B(e, "--breakpoint-xl", 1536)
1522
1522
  };
1523
- return Je(n, { breakpoints: t });
1523
+ return Ke(n, { breakpoints: t });
1524
1524
  });
1525
1525
  }
1526
1526
  function fl(n) {
@@ -1540,7 +1540,7 @@ function fl(n) {
1540
1540
  "5xl": B(e, "--container-5xl", 1536),
1541
1541
  "6xl": B(e, "--container-6xl", 2048)
1542
1542
  };
1543
- return Je(n, {
1543
+ return Ke(n, {
1544
1544
  breakpoints: t,
1545
1545
  mode: "element"
1546
1546
  });
@@ -1550,19 +1550,19 @@ const F = (n) => Object.entries(n), ee = (n, l) => {
1550
1550
  const e = setTimeout(n, l);
1551
1551
  return () => clearTimeout(e);
1552
1552
  };
1553
- function Ke({
1553
+ function Ze({
1554
1554
  initialStatus: n = "closed",
1555
1555
  openedAfter: l,
1556
1556
  closedAfter: e
1557
1557
  }) {
1558
- const t = W(n), o = () => {
1558
+ const t = W(n), r = () => {
1559
1559
  t.set("start-opening");
1560
- }, r = () => {
1560
+ }, o = () => {
1561
1561
  t.set("closing");
1562
1562
  }, s = () => {
1563
- t.value === "open" || t.value === "opening" ? r() : o();
1563
+ t.value === "open" || t.value === "opening" ? o() : r();
1564
1564
  }, u = (b) => {
1565
- b ? o() : r();
1565
+ b ? r() : o();
1566
1566
  }, i = (b) => t.on((x) => {
1567
1567
  x === "closed" && b();
1568
1568
  });
@@ -1574,8 +1574,8 @@ function Ke({
1574
1574
  const p = t.map((b) => b !== "closed"), g = t.map((b) => b === "open" || b === "opening");
1575
1575
  return {
1576
1576
  status: t,
1577
- open: o,
1578
- close: r,
1577
+ open: r,
1578
+ close: o,
1579
1579
  toggle: s,
1580
1580
  setOpen: u,
1581
1581
  isOpen: p,
@@ -1590,10 +1590,10 @@ function kl({
1590
1590
  openDuration: e = l ?? 500,
1591
1591
  closeDuration: t = l ?? 500
1592
1592
  } = {}) {
1593
- return Ke({
1593
+ return Ze({
1594
1594
  initialStatus: n,
1595
- openedAfter: (o) => ee(o, e),
1596
- closedAfter: (o) => ee(o, t)
1595
+ openedAfter: (r) => ee(r, e),
1596
+ closedAfter: (r) => ee(r, t)
1597
1597
  });
1598
1598
  }
1599
1599
  function We(n, l) {
@@ -1618,7 +1618,7 @@ function me({
1618
1618
  setElement: (t) => {
1619
1619
  e = t;
1620
1620
  },
1621
- ...Ke({
1621
+ ...Ze({
1622
1622
  initialStatus: n,
1623
1623
  openedAfter: (t) => e == null ? (t(), () => {
1624
1624
  }) : We(e, t),
@@ -1708,7 +1708,7 @@ function De(n, l) {
1708
1708
  function ue(n) {
1709
1709
  n = n.filter((l) => l.some((e) => e != null && !e.startsWith("?")));
1710
1710
  for (let l = 0; l < n[0].length; l++)
1711
- n.every((e) => e[l] == null || e[l].startsWith("?")) && (n = n.map((e) => e.filter((t, o) => o !== l)), l--);
1711
+ n.every((e) => e[l] == null || e[l].startsWith("?")) && (n = n.map((e) => e.filter((t, r) => r !== l)), l--);
1712
1712
  return n = n.map((l) => l.map((e) => e != null && e.startsWith("?") ? e.slice(1) : e)), n;
1713
1713
  }
1714
1714
  function dt({
@@ -1716,9 +1716,9 @@ function dt({
1716
1716
  mediumBreakpoint: l,
1717
1717
  vertical: e,
1718
1718
  horizontal: t,
1719
- is: o
1719
+ is: r
1720
1720
  }) {
1721
- function r(i) {
1721
+ function o(i) {
1722
1722
  var x;
1723
1723
  let a = [
1724
1724
  [null],
@@ -1796,7 +1796,7 @@ function dt({
1796
1796
  return ({
1797
1797
  width: i,
1798
1798
  breakpoint: a
1799
- }) => o(`<=${n}`, i) ? r(a) : o(`<=${l}`, i) ? s(a) : u(a);
1799
+ }) => r(`<=${n}`, i) ? o(a) : r(`<=${l}`, i) ? s(a) : u(a);
1800
1800
  }
1801
1801
  const pt = ["menu", "aside"], mt = [
1802
1802
  "banner",
@@ -1817,14 +1817,14 @@ function xl({
1817
1817
  ...e
1818
1818
  }) {
1819
1819
  return _(C, ({ theme: t }) => {
1820
- const o = Object.fromEntries(
1820
+ const r = Object.fromEntries(
1821
1821
  pt.filter((s) => e[s]).map(
1822
1822
  (s) => [
1823
1823
  s,
1824
1824
  De(e[s].width ?? {}, D[s])
1825
1825
  ]
1826
1826
  )
1827
- ), r = Object.fromEntries(
1827
+ ), o = Object.fromEntries(
1828
1828
  mt.filter((s) => e[s]).map(
1829
1829
  (s) => [
1830
1830
  s,
@@ -1840,25 +1840,25 @@ function xl({
1840
1840
  const i = dt({
1841
1841
  smallBreakpoint: n,
1842
1842
  mediumBreakpoint: l,
1843
- vertical: o,
1844
- horizontal: r,
1843
+ vertical: r,
1844
+ horizontal: o,
1845
1845
  is: u
1846
1846
  }), a = s.map(i), p = y(
1847
- r.header != null,
1848
- o.menu != null,
1849
- o.aside != null
1847
+ o.header != null,
1848
+ r.menu != null,
1849
+ r.aside != null
1850
1850
  )((f, N, ne) => f || N || ne), g = y(
1851
- o.aside != null,
1851
+ r.aside != null,
1852
1852
  a
1853
1853
  )((f, { displayAside: N }) => f && !N), b = y(
1854
- o.menu != null,
1854
+ r.menu != null,
1855
1855
  a
1856
1856
  )((f, { displayMenu: N }) => f && !N), x = me(), E = me(), H = W(0), M = y(
1857
- o.menu != null,
1857
+ r.menu != null,
1858
1858
  a,
1859
1859
  x.isOpen
1860
1860
  )(gt), G = y(
1861
- o.aside != null,
1861
+ r.aside != null,
1862
1862
  a,
1863
1863
  E.isOpen
1864
1864
  )(bt);
@@ -2101,15 +2101,15 @@ function xl({
2101
2101
  });
2102
2102
  }
2103
2103
  function yl({ variant: n = "default", size: l = "md", roundedness: e = "lg" } = {}, ...t) {
2104
- return _(C, (o) => h.div(
2104
+ return _(C, (r) => h.div(
2105
2105
  c.class(
2106
2106
  y(
2107
- o,
2107
+ r,
2108
2108
  n,
2109
2109
  l,
2110
2110
  e
2111
2111
  )(
2112
- ({ theme: r }, s, u, i) => r.card({
2112
+ ({ theme: o }, s, u, i) => o.card({
2113
2113
  variant: s,
2114
2114
  size: u,
2115
2115
  roundedness: i
@@ -2132,8 +2132,8 @@ function wl({ gap: n = "lg" } = {}, ...l) {
2132
2132
  e,
2133
2133
  n
2134
2134
  )(
2135
- ({ theme: t }, o) => t.center({
2136
- gap: o
2135
+ ({ theme: t }, r) => t.center({
2136
+ gap: r
2137
2137
  })
2138
2138
  )
2139
2139
  ),
@@ -2144,15 +2144,15 @@ function $l(...n) {
2144
2144
  return h.div(c.class("bc-group"), ...n);
2145
2145
  }
2146
2146
  function Sl({ variant: n = "default", size: l = "md", roundedness: e = "lg" } = {}, ...t) {
2147
- return _(C, (o) => h.div(
2147
+ return _(C, (r) => h.div(
2148
2148
  c.class(
2149
2149
  y(
2150
- o,
2150
+ r,
2151
2151
  n,
2152
2152
  l,
2153
2153
  e
2154
2154
  )(
2155
- ({ theme: r }, s, u, i) => r.sink({
2155
+ ({ theme: o }, s, u, i) => o.sink({
2156
2156
  variant: s,
2157
2157
  size: u,
2158
2158
  roundedness: i
@@ -2167,16 +2167,16 @@ function _l(...n) {
2167
2167
  }
2168
2168
  function ft(n) {
2169
2169
  return ({ effect: l, ...e }, t) => {
2170
- const o = [], r = () => o.forEach((a) => a()), s = me();
2171
- s.onClosed(r);
2172
- const i = wn((() => {
2170
+ const r = [], o = () => r.forEach((a) => a()), s = me();
2171
+ s.onClosed(o);
2172
+ const i = $n((() => {
2173
2173
  var p, g;
2174
2174
  const a = /* @__PURE__ */ new Set();
2175
2175
  for (const b of n.element.querySelectorAll(
2176
2176
  ":scope > :not([data-overlay])"
2177
2177
  ))
2178
2178
  b.hasAttribute("inert") ? a.add(b) : b.setAttribute("inert", "");
2179
- if (o.push(() => {
2179
+ if (r.push(() => {
2180
2180
  for (const b of n.element.querySelectorAll(
2181
2181
  ":scope > :not([data-overlay])"
2182
2182
  ))
@@ -2187,14 +2187,14 @@ function ft(n) {
2187
2187
  var H;
2188
2188
  E.key === "Escape" && ((H = e.onEscape) == null || H.call(e), s.close());
2189
2189
  };
2190
- document.addEventListener("keydown", b), o.push(
2190
+ document.addEventListener("keydown", b), r.push(
2191
2191
  () => document.removeEventListener("keydown", b)
2192
2192
  );
2193
2193
  const x = () => {
2194
2194
  var E;
2195
2195
  (E = e.onClickOutside) == null || E.call(e), s.close();
2196
2196
  };
2197
- n.element.addEventListener("mousedown", x), o.push(
2197
+ n.element.addEventListener("mousedown", x), r.push(
2198
2198
  () => n.element.removeEventListener("mousedown", x)
2199
2199
  );
2200
2200
  }
@@ -2221,31 +2221,31 @@ function ft(n) {
2221
2221
  clear: !1,
2222
2222
  providers: n.providers
2223
2223
  });
2224
- return o.push(i), ee(() => s.open(), 0), r;
2224
+ return r.push(i), ee(() => s.open(), 0), o;
2225
2225
  };
2226
2226
  }
2227
- function Ze(n, l, e) {
2228
- return $n((t) => {
2229
- const o = n(t), r = ft(o);
2227
+ function en(n, l, e) {
2228
+ return Sn((t) => {
2229
+ const r = n(t), o = ft(r);
2230
2230
  let s = () => {
2231
2231
  };
2232
2232
  const u = (i) => {
2233
- s(), s = r(l, i);
2233
+ s(), s = o(l, i);
2234
2234
  };
2235
2235
  return U(K(s), e(u));
2236
2236
  });
2237
2237
  }
2238
2238
  function Cl(n, l) {
2239
- return Ze((e) => e, n, l);
2239
+ return en((e) => e, n, l);
2240
2240
  }
2241
2241
  function El(n, l) {
2242
- return Ze(
2242
+ return en(
2243
2243
  (e) => e.makePortal("body"),
2244
2244
  n,
2245
2245
  l
2246
2246
  );
2247
2247
  }
2248
- const en = {
2248
+ const nn = {
2249
2249
  red: {
2250
2250
  50: "oklch(0.971 0.013 17.38)",
2251
2251
  100: "oklch(0.936 0.032 17.717)",
@@ -2532,7 +2532,7 @@ const en = {
2532
2532
  900: "oklch(0.216 0.006 56.043)",
2533
2533
  950: "oklch(0.147 0.004 49.25)"
2534
2534
  }
2535
- }, nn = {
2535
+ }, tn = {
2536
2536
  sm: "40rem",
2537
2537
  // 640px
2538
2538
  md: "48rem",
@@ -2544,19 +2544,19 @@ const en = {
2544
2544
  "2xl": "96rem"
2545
2545
  // 1536px
2546
2546
  };
2547
- function tn(n) {
2547
+ function ln(n) {
2548
2548
  return `--breakpoint-${n}`;
2549
2549
  }
2550
2550
  function Bl(n) {
2551
- return `var(${tn(n)})`;
2551
+ return `var(${ln(n)})`;
2552
2552
  }
2553
2553
  function Il(n) {
2554
- return `@media (width >= ${nn[n]})`;
2554
+ return `@media (width >= ${tn[n]})`;
2555
2555
  }
2556
2556
  function kt() {
2557
2557
  const n = {};
2558
- return F(nn).forEach(([l, e]) => {
2559
- n[tn(l)] = e;
2558
+ return F(tn).forEach(([l, e]) => {
2559
+ n[ln(l)] = e;
2560
2560
  }), n;
2561
2561
  }
2562
2562
  const xt = [
@@ -2581,8 +2581,8 @@ const xt = [
2581
2581
  "info"
2582
2582
  ], Al = [
2583
2583
  ...ye,
2584
- ...F(en).map(([n]) => n)
2585
- ], ln = {
2584
+ ...F(nn).map(([n]) => n)
2585
+ ], rn = {
2586
2586
  primary: "blue",
2587
2587
  secondary: "gray",
2588
2588
  base: "gray",
@@ -2631,7 +2631,7 @@ const xt = [
2631
2631
  }
2632
2632
  };
2633
2633
  function Tl(n) {
2634
- return ye.includes(n) ? ln[n] : n;
2634
+ return ye.includes(n) ? rn[n] : n;
2635
2635
  }
2636
2636
  function ge(n, l) {
2637
2637
  return `--color-${n}-${l}`;
@@ -2641,12 +2641,12 @@ function te(n, l) {
2641
2641
  }
2642
2642
  function $t() {
2643
2643
  const n = {};
2644
- return n["--color-white"] = "white", n["--color-black"] = "black", n["--color-inherit"] = "inherit", F(en).forEach(([l, e]) => {
2645
- F(e).forEach(([t, o]) => {
2646
- n[ge(l, t)] = o;
2644
+ return n["--color-white"] = "white", n["--color-black"] = "black", n["--color-inherit"] = "inherit", F(nn).forEach(([l, e]) => {
2645
+ F(e).forEach(([t, r]) => {
2646
+ n[ge(l, t)] = r;
2647
2647
  });
2648
2648
  }), ye.forEach((l) => {
2649
- const e = ln[l];
2649
+ const e = rn[l];
2650
2650
  xt.forEach((t) => {
2651
2651
  n[ge(l, t)] = te(
2652
2652
  e,
@@ -2654,18 +2654,18 @@ function $t() {
2654
2654
  );
2655
2655
  });
2656
2656
  }), F(yt).forEach(([l, e]) => {
2657
- F(e).forEach(([t, [o, r]]) => {
2658
- n[`--bg-${t}-${l}`] = te(o, r);
2657
+ F(e).forEach(([t, [r, o]]) => {
2658
+ n[`--bg-${t}-${l}`] = te(r, o);
2659
2659
  });
2660
2660
  }), F(vt).forEach(([l, e]) => {
2661
- F(e).forEach(([t, [o, r]]) => {
2662
- n[`--text-${t}-${l}`] = te(o, r);
2661
+ F(e).forEach(([t, [r, o]]) => {
2662
+ n[`--text-${t}-${l}`] = te(r, o);
2663
2663
  });
2664
2664
  }), F(wt).forEach(([l, e]) => {
2665
- F(e).forEach(([t, [o, r]]) => {
2665
+ F(e).forEach(([t, [r, o]]) => {
2666
2666
  n[`--border-${t}-${l}`] = te(
2667
- o,
2668
- r
2667
+ r,
2668
+ o
2669
2669
  );
2670
2670
  });
2671
2671
  }), n;
@@ -2679,11 +2679,11 @@ const on = {
2679
2679
  xl: "calc(var(--spacing-base) * 3)",
2680
2680
  full: "9999px"
2681
2681
  };
2682
- function rn(n) {
2682
+ function sn(n) {
2683
2683
  return `--radius-${n}`;
2684
2684
  }
2685
2685
  function Ol(n) {
2686
- return `var(${rn(n)})`;
2686
+ return `var(${sn(n)})`;
2687
2687
  }
2688
2688
  function Vl(n) {
2689
2689
  return `@media (width >= ${on[n]})`;
@@ -2691,7 +2691,7 @@ function Vl(n) {
2691
2691
  function St() {
2692
2692
  const n = {};
2693
2693
  return F(on).forEach(([l, e]) => {
2694
- n[rn(l)] = e;
2694
+ n[sn(l)] = e;
2695
2695
  }), n;
2696
2696
  }
2697
2697
  const _t = "0.25rem", Ct = {
@@ -2707,16 +2707,16 @@ const _t = "0.25rem", Ct = {
2707
2707
  "3xl": "calc(var(--spacing-base) * 6)",
2708
2708
  full: "9999px"
2709
2709
  };
2710
- function sn(n) {
2710
+ function cn(n) {
2711
2711
  return `--spacing-${n}`;
2712
2712
  }
2713
2713
  function jl(n) {
2714
- return `var(${sn(n)})`;
2714
+ return `var(${cn(n)})`;
2715
2715
  }
2716
2716
  function Et() {
2717
2717
  const n = {};
2718
2718
  return F(Ct).forEach(([l, e]) => {
2719
- n[sn(l)] = e;
2719
+ n[cn(l)] = e;
2720
2720
  }), n;
2721
2721
  }
2722
2722
  const Bt = {
@@ -2804,11 +2804,11 @@ const Bt = {
2804
2804
  "monospace"
2805
2805
  ]
2806
2806
  };
2807
- function cn(n) {
2807
+ function an(n) {
2808
2808
  return `--font-size-${n}`;
2809
2809
  }
2810
2810
  function Nl(n) {
2811
- return `var(${cn(n)})`;
2811
+ return `var(${an(n)})`;
2812
2812
  }
2813
2813
  function Vt(n) {
2814
2814
  return `--font-weight-${n}`;
@@ -2816,37 +2816,37 @@ function Vt(n) {
2816
2816
  function jt(n) {
2817
2817
  return `var(${jt()})`;
2818
2818
  }
2819
- function an(n) {
2819
+ function un(n) {
2820
2820
  return `--line-height-${n}`;
2821
2821
  }
2822
2822
  function Fl(n) {
2823
- return `var(${an(n)})`;
2823
+ return `var(${un(n)})`;
2824
2824
  }
2825
- function un(n) {
2825
+ function hn(n) {
2826
2826
  return `--letter-spacing-${n}`;
2827
2827
  }
2828
2828
  function Hl(n) {
2829
- return `var(${un(n)})`;
2829
+ return `var(${hn(n)})`;
2830
2830
  }
2831
- function hn(n) {
2831
+ function dn(n) {
2832
2832
  return `--font-family-${n}`;
2833
2833
  }
2834
2834
  function Wl(n) {
2835
- return `var(${hn(n)})`;
2835
+ return `var(${dn(n)})`;
2836
2836
  }
2837
2837
  function Nt() {
2838
2838
  const n = {};
2839
2839
  return Object.entries(Bt).forEach(([l, e]) => {
2840
2840
  const [t] = Array.isArray(e) ? e : [e];
2841
- n[cn(l)] = t;
2841
+ n[an(l)] = t;
2842
2842
  }), Object.entries(It).forEach(([l, e]) => {
2843
2843
  n[Vt(l)] = e;
2844
2844
  }), Object.entries(At).forEach(([l, e]) => {
2845
- n[an(l)] = e;
2846
- }), Object.entries(Tt).forEach(([l, e]) => {
2847
2845
  n[un(l)] = e;
2846
+ }), Object.entries(Tt).forEach(([l, e]) => {
2847
+ n[hn(l)] = e;
2848
2848
  }), Object.entries(Ot).forEach(([l, e]) => {
2849
- n[hn(l)] = e.join(", ");
2849
+ n[dn(l)] = e.join(", ");
2850
2850
  }), n;
2851
2851
  }
2852
2852
  function Dl() {
@@ -2862,19 +2862,19 @@ function Pl(n, l) {
2862
2862
  return l == null && typeof window > "u" ? "" : getComputedStyle(l ?? document.documentElement).getPropertyValue(n).trim();
2863
2863
  }
2864
2864
  function Ml(n, l = 0, e = () => !0) {
2865
- let t = null, o;
2866
- const r = W(n.value);
2865
+ let t = null, r;
2866
+ const o = W(n.value);
2867
2867
  return n.on((s) => {
2868
- o = s, e(s) ? t == null && (t = setTimeout(() => {
2869
- t = null, r.set(o);
2870
- }, l)) : r.set(s);
2868
+ r = s, e(s) ? t == null && (t = setTimeout(() => {
2869
+ t = null, o.set(r);
2870
+ }, l)) : o.set(s);
2871
2871
  }), n.onDispose(() => {
2872
2872
  t != null && clearTimeout(t);
2873
- }), r;
2873
+ }), o;
2874
2874
  }
2875
2875
  export {
2876
2876
  xl as AppShell,
2877
- Bn as BeatUITheme,
2877
+ In as BeatUITheme,
2878
2878
  He as Button,
2879
2879
  yl as Card,
2880
2880
  wl as Center,
@@ -2883,7 +2883,7 @@ export {
2883
2883
  V as CommonInputAttributes,
2884
2884
  I as ControlInputWrapper,
2885
2885
  qt as DateControl,
2886
- Re as DateInput,
2886
+ qe as DateInput,
2887
2887
  zt as DateTimeControl,
2888
2888
  Mn as DateTimeInput,
2889
2889
  hl as EditableText,
@@ -2892,23 +2892,23 @@ export {
2892
2892
  Pt as EmphasisLabel,
2893
2893
  Mt as ErrorLabel,
2894
2894
  Rn as Expando,
2895
- ot as FormController,
2895
+ rt as FormController,
2896
2896
  Gt as FormStatus,
2897
2897
  $l as Group,
2898
2898
  se as GroupController,
2899
2899
  Z as Icon,
2900
2900
  O as InputContainer,
2901
- Fn as Label,
2901
+ Re as Label,
2902
2902
  zn as LazyNativeSelect,
2903
2903
  Qt as LazyNativeSelectControl,
2904
2904
  pe as ListController,
2905
2905
  Hn as MutedLabel,
2906
- ze as NativeSelect,
2906
+ Ue as NativeSelect,
2907
2907
  Yt as NativeSelectControl,
2908
2908
  Jt as NullableDateControl,
2909
- Ue as NullableDateInput,
2909
+ Ge as NullableDateInput,
2910
2910
  Kt as NullableDateTimeControl,
2911
- Ge as NullableDateTimeInput,
2911
+ Xe as NullableDateTimeInput,
2912
2912
  Zt as NullableStringDateControl,
2913
2913
  el as NullableStringDateTimeControl,
2914
2914
  Yn as NullableTextArea,
@@ -2919,15 +2919,15 @@ export {
2919
2919
  Jn as NumberInput,
2920
2920
  El as OverlayBody,
2921
2921
  Cl as OverlayElement,
2922
- ol as PasswordControl,
2922
+ rl as PasswordControl,
2923
2923
  Kn as PasswordInput,
2924
2924
  Wn as RequiredSymbol,
2925
- rl as SegmentedControl,
2925
+ ol as SegmentedControl,
2926
2926
  de as SelectOption,
2927
2927
  Sl as Sink,
2928
2928
  _l as Stack,
2929
2929
  sl as StringDateControl,
2930
- Nn as Tag,
2930
+ Fn as Tag,
2931
2931
  cl as TagsControl,
2932
2932
  et as TagsInput,
2933
2933
  nt as TextArea,
@@ -2938,26 +2938,26 @@ export {
2938
2938
  Dt as ThemeAppeareance,
2939
2939
  dl as Toggle,
2940
2940
  ql as Use,
2941
- re as ValueController,
2942
- Je as WithBreakpoint,
2941
+ oe as ValueController,
2942
+ Ke as WithBreakpoint,
2943
2943
  ht as WithTWBreakpoint,
2944
2944
  fl as WithTWElementBreakpoint,
2945
2945
  _t as baseSpacing,
2946
2946
  yt as bgColors,
2947
2947
  wt as borderColors,
2948
- nn as breakpoints,
2948
+ tn as breakpoints,
2949
2949
  xt as colorShades,
2950
- en as colors,
2950
+ nn as colors,
2951
2951
  ut as compareBreakpoint,
2952
- Ye as connectCommonAttributes,
2952
+ Je as connectCommonAttributes,
2953
2953
  ml as connectNumberInput,
2954
2954
  pl as connectStringInput,
2955
2955
  st as convertStandardSchemaIssues,
2956
- rt as convertStandardSchemaPathToPath,
2956
+ ot as convertStandardSchemaPathToPath,
2957
2957
  Ml as delaySignal,
2958
2958
  Xt as emitExpando,
2959
2959
  qn as emitOptionExpando,
2960
- oe as emptyToNull,
2960
+ re as emptyToNull,
2961
2961
  bl as findBreakpoint,
2962
2962
  Ot as fontFamily,
2963
2963
  Bt as fontSize,
@@ -2970,47 +2970,47 @@ export {
2970
2970
  Nt as generateTypographyVariables,
2971
2971
  Il as getBreakpointMediaQuery,
2972
2972
  Bl as getBreakpointVar,
2973
- tn as getBreakpointVarName,
2973
+ ln as getBreakpointVarName,
2974
2974
  te as getColorVar,
2975
2975
  ge as getColorVarName,
2976
2976
  Wl as getFontFamilyVar,
2977
- hn as getFontFamilyVarName,
2977
+ dn as getFontFamilyVarName,
2978
2978
  Nl as getFontSizeVar,
2979
- cn as getFontSizeVarName,
2979
+ an as getFontSizeVarName,
2980
2980
  jt as getFontWeightVar,
2981
2981
  Vt as getFontWeightVarName,
2982
2982
  Hl as getLetterSpacingVar,
2983
- un as getLetterSpacingVarName,
2983
+ hn as getLetterSpacingVarName,
2984
2984
  Fl as getLineHeightVar,
2985
- an as getLineHeightVarName,
2985
+ un as getLineHeightVarName,
2986
2986
  Vl as getRadiusMediaQuery,
2987
2987
  Ol as getRadiusVar,
2988
- rn as getRadiusVarName,
2988
+ sn as getRadiusVarName,
2989
2989
  jl as getSpacingVar,
2990
- sn as getSpacingVarName,
2990
+ cn as getSpacingVarName,
2991
2991
  Pl as getTokenValue,
2992
2992
  T as inputOptionsFromController,
2993
2993
  fe as inputOptionsFromMappedController,
2994
2994
  Tt as letterSpacing,
2995
2995
  At as lineHeight,
2996
- Qe as makeMapValidationResult,
2996
+ Ye as makeMapValidationResult,
2997
2997
  ke as makeMappedOnChangeHandler,
2998
2998
  Lt as makeNullableOnChangeHandler,
2999
2999
  A as makeOnBlurHandler,
3000
3000
  j as makeOnChangeHandler,
3001
3001
  ft as makeOverlay,
3002
3002
  Tl as normalizeColorName,
3003
- Xe as nullToEmpty,
3003
+ Qe as nullToEmpty,
3004
3004
  ul as parsePath,
3005
3005
  lt as pathToString,
3006
3006
  on as radius,
3007
3007
  ye as semanticColorNames,
3008
- ln as semanticColors,
3008
+ rn as semanticColors,
3009
3009
  Ct as spacing,
3010
3010
  vt as textColors,
3011
3011
  Al as themeColorNames,
3012
3012
  me as useAnimatedElementToggle,
3013
- Ke as useAnimatedToggle,
3013
+ Ze as useAnimatedToggle,
3014
3014
  gl as useForm,
3015
3015
  kl as useTimedToggle,
3016
3016
  tt as wrapSegment