@tempots/beatui 0.59.0 → 0.60.1

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.
Files changed (76) hide show
  1. package/dist/{2019-Dks2DDHw.cjs → 2019-CSG1mHKh.cjs} +1 -1
  2. package/dist/{2019-D8FDunSq.js → 2019-xRoq64Hq.js} +2 -2
  3. package/dist/{2020-Db2sT3RF.js → 2020-BxLJruSu.js} +2 -2
  4. package/dist/{2020-C8VDmyg1.cjs → 2020-CySfMcC9.cjs} +1 -1
  5. package/dist/{ar-x9O6JsRN.cjs → ar-B7Vs1jtG.cjs} +1 -1
  6. package/dist/{ar-CKheF7Rb.js → ar-BOqk-mzn.js} +1 -1
  7. package/dist/auth/index.cjs.js +1 -1
  8. package/dist/auth/index.es.js +4 -4
  9. package/dist/beatui.css +173 -0
  10. package/dist/beatui.tailwind.css +173 -0
  11. package/dist/{de-CqFnIl0Y.js → de-CviZ-p_4.js} +1 -1
  12. package/dist/{de-C0nhZh4a.cjs → de-DNjhUbYu.cjs} +1 -1
  13. package/dist/{es-C3c1-2iA.cjs → es-D82T2KKm.cjs} +1 -1
  14. package/dist/{es-Cv9ZSjqz.js → es-DxuZQTVE.js} +1 -1
  15. package/dist/{fa-CG8B9M9O.js → fa-BBySqLUh.js} +1 -1
  16. package/dist/{fa-BbV4_mYi.cjs → fa-C7eY3MZF.cjs} +1 -1
  17. package/dist/{fr-B2f1Pmal.js → fr-DBCblSme.js} +1 -1
  18. package/dist/{fr-DlFsnCqK.cjs → fr-DlXc2xhl.cjs} +1 -1
  19. package/dist/{he-DwQ2QMJE.cjs → he-1Czj0G0s.cjs} +1 -1
  20. package/dist/{he-BmHa696l.js → he-DUrHwGF6.js} +1 -1
  21. package/dist/{hi-DNII_Adz.js → hi-BdJqIhvL.js} +1 -1
  22. package/dist/{hi-DaHMe_1C.cjs → hi-DyWQTexo.cjs} +1 -1
  23. package/dist/{index-M6PBne67.js → index-B6myFAz5.js} +1 -1
  24. package/dist/{index-ZRQP8j2O.cjs → index-BLTlhUPG.cjs} +1 -1
  25. package/dist/{index-DjLKVVL-.cjs → index-CMIeO1pS.cjs} +1 -1
  26. package/dist/{index-BAa_FdQV.cjs → index-Cok4rljj.cjs} +2 -2
  27. package/dist/{index-DCOaDJ8f.js → index-D6_EcuJG.js} +1 -1
  28. package/dist/{index-C86Mq1ak.js → index-DGQhsTxm.js} +6 -6
  29. package/dist/{index-Do9WmZEc.cjs → index-Duw9TkLf.cjs} +1 -1
  30. package/dist/{index-BYflP18C.js → index-yhjOw19A.js} +3 -3
  31. package/dist/index.cjs.js +4 -4
  32. package/dist/index.es.js +932 -910
  33. package/dist/{it-894w7K0i.js → it-B7HY_G0n.js} +1 -1
  34. package/dist/{it-Cli1u40l.cjs → it-BhqBuhZq.cjs} +1 -1
  35. package/dist/{ja-DY7Zij7O.cjs → ja-Be1SXGQn.cjs} +1 -1
  36. package/dist/{ja-j4AV8eVy.js → ja-DavHeIBC.js} +1 -1
  37. package/dist/json-schema/index.cjs.js +1 -1
  38. package/dist/json-schema/index.es.js +1 -1
  39. package/dist/{ko-CNZqypvW.js → ko-Be3o52et.js} +1 -1
  40. package/dist/{ko-CHlprpVP.cjs → ko-BuyoVlmH.cjs} +1 -1
  41. package/dist/{modal-1Y-q1wDn.js → modal-BT2LwYlK.js} +2 -2
  42. package/dist/{modal-D765-SiT.cjs → modal-DT3cH1Kz.cjs} +1 -1
  43. package/dist/{nl-CzTp9ds0.js → nl-DJIY4R0b.js} +1 -1
  44. package/dist/{nl-CgMv4O0P.cjs → nl-FD8OAOWL.cjs} +1 -1
  45. package/dist/{notice-D8w_39td.cjs → notice-CUTUN2Kh.cjs} +1 -1
  46. package/dist/{notice-DJ-olOQx.js → notice-Cs95CTP3.js} +1 -1
  47. package/dist/{pl-DQid7ctL.js → pl-Bqoq63Fm.js} +1 -1
  48. package/dist/{pl-Cm8Lerxg.cjs → pl-weZLWcSD.cjs} +1 -1
  49. package/dist/prosemirror/index.cjs.js +1 -1
  50. package/dist/prosemirror/index.es.js +1 -1
  51. package/dist/{pt-BAU0nrtN.js → pt-7g4YVboz.js} +1 -1
  52. package/dist/{pt-k6sIkC0v.cjs → pt-BuBrXOmS.cjs} +1 -1
  53. package/dist/{ru-Dioznrt_.cjs → ru-Br9Wedcu.cjs} +1 -1
  54. package/dist/{ru-CtYj3NlJ.js → ru-hvj4lu1_.js} +1 -1
  55. package/dist/{toolbar-BMzapKW0.cjs → toolbar-Bk_vLHOS.cjs} +1 -1
  56. package/dist/{toolbar-Bo4GA6tM.js → toolbar-ReCF2tBa.js} +1 -1
  57. package/dist/{tr-CwCsfbe5.cjs → tr-BSuvz1N5.cjs} +1 -1
  58. package/dist/{tr-wS-zWzvh.js → tr-qxangEut.js} +1 -1
  59. package/dist/{translations-Dm7vjy7D.js → translations-BtsgtW4T.js} +1 -1
  60. package/dist/translations-CGTcEchB.cjs +1 -0
  61. package/dist/{translations-Do71ycSR.js → translations-D5WRSMhS.js} +245 -239
  62. package/dist/{translations-CD_Qi9EQ.cjs → translations-DmVvxPlr.cjs} +1 -1
  63. package/dist/types/components/button/button.d.ts +7 -1
  64. package/dist/types/components/form/input/files-input.d.ts +1 -1
  65. package/dist/types/components/media/pdf-page-viewer.d.ts +2 -2
  66. package/dist/{ur-8NSFWrMo.js → ur-CCcFf5OU.js} +1 -1
  67. package/dist/{ur-D3nkqfyQ.cjs → ur-DBg2MZvK.cjs} +1 -1
  68. package/dist/utils-3Mm1sj4Q.cjs +1 -0
  69. package/dist/{utils-byyCrT3S.js → utils-CutcxfzK.js} +963 -884
  70. package/dist/{vi-CngHpCNM.js → vi-BAHqe-lr.js} +1 -1
  71. package/dist/{vi-BAAJHs3a.cjs → vi-DeH8SXUt.cjs} +1 -1
  72. package/dist/{zh-Bkxc6ZmR.js → zh-B-ZsrhFY.js} +1 -1
  73. package/dist/{zh-CRWrZhUp.cjs → zh-Ceo_KGzC.cjs} +1 -1
  74. package/package.json +2 -2
  75. package/dist/translations-t-neYabN.cjs +0 -1
  76. package/dist/utils-sDRkbnf9.cjs +0 -1
@@ -1,7 +1,7 @@
1
- import { makeProviderMark as V, localStorageProp as j, computedOf as p, Use as F, html as f, attr as i, When as w, Fragment as y, aria as g, coalesce as H, style as D, prop as $, on as I, Value as _, Empty as L, WithElement as z, OnDispose as G, input as K, emitValue as S } from "@tempots/dom";
2
- import { WhenInViewport as W, Query as J, ElementRect as Q } from "@tempots/ui";
3
- import { b as Y, g as Z } from "./colors-pQZlNrwM.js";
4
- function X(t, {
1
+ import { makeProviderMark as F, localStorageProp as T, computedOf as m, Use as O, html as g, attr as l, When as w, Fragment as y, aria as b, coalesce as z, style as P, prop as _, on as I, Value as M, Empty as L, WithElement as G, OnDispose as K, input as W, emitValue as $ } from "@tempots/dom";
2
+ import { WhenInViewport as J, Query as Q, ElementRect as Y } from "@tempots/ui";
3
+ import { b as Z, g as X } from "./colors-pQZlNrwM.js";
4
+ function tt(t, {
5
5
  units: e = ["B", "KB", "MB", "GB", "TB"],
6
6
  decimalPlaces: n = 0,
7
7
  locale: o
@@ -15,9 +15,9 @@ function X(t, {
15
15
  }).format(0).replace("byte", e[0]);
16
16
  let a, r;
17
17
  if (typeof t == "bigint") {
18
- let l = t < 0n ? -t : t;
19
- for (a = 0; l >= 1024n && a < e.length - 1; )
20
- l = l / 1024n, a++;
18
+ let i = t < 0n ? -t : t;
19
+ for (a = 0; i >= 1024n && a < e.length - 1; )
20
+ i = i / 1024n, a++;
21
21
  r = Number(t) / Math.pow(1024, a);
22
22
  } else
23
23
  a = Math.floor(Math.log(Math.abs(t)) / Math.log(1024)), a = Math.min(a, e.length - 1), r = t / Math.pow(1024, a);
@@ -29,7 +29,7 @@ function X(t, {
29
29
  maximumFractionDigits: a === 0 ? 0 : n
30
30
  }).format(r).replace("byte", e[a]);
31
31
  }
32
- const O = {
32
+ const R = {
33
33
  loadingExtended: "Loading, please wait",
34
34
  loadingShort: "Loading...",
35
35
  locale: "Locale",
@@ -92,7 +92,7 @@ const O = {
92
92
  if (t || e) {
93
93
  const a = [];
94
94
  if (t != null && t > 1 && a.push(`up to ${t} files`), e && n) {
95
- const r = X(e, {
95
+ const r = tt(e, {
96
96
  units: n
97
97
  });
98
98
  a.push(`max ${r} each`);
@@ -124,15 +124,15 @@ const O = {
124
124
  pageOutOfRange: (t, e) => `Page ${t} is out of range (1-${e})`,
125
125
  renderFailed: "Failed to render PDF page"
126
126
  }
127
- }, tt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
127
+ }, et = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
128
128
  __proto__: null,
129
- default: O
130
- }, Symbol.toStringTag, { value: "Module" })), et = O, ot = "en", nt = (t, e, n) => {
129
+ default: R
130
+ }, Symbol.toStringTag, { value: "Module" })), ot = R, nt = "en", rt = (t, e, n) => {
131
131
  const o = t[e];
132
132
  return o ? typeof o == "function" ? o() : Promise.resolve(o) : new Promise((a, r) => {
133
133
  (typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(r.bind(null, /* @__PURE__ */ new Error("Unknown variable dynamic import: " + e + (e.split("/").length !== n ? ". Note that variables only represent file names one level deep." : ""))));
134
134
  });
135
- }, rt = /* @__PURE__ */ new Set([
135
+ }, at = /* @__PURE__ */ new Set([
136
136
  "ar",
137
137
  // Arabic
138
138
  "he",
@@ -158,24 +158,24 @@ const O = {
158
158
  "in"
159
159
  // Indonesian (deprecated, but sometimes confused)
160
160
  ]);
161
- function R(t) {
161
+ function A(t) {
162
162
  if (!t) return "ltr";
163
163
  const e = t.split(/[-_]/)[0].toLowerCase();
164
- return rt.has(e) ? "rtl" : "ltr";
164
+ return at.has(e) ? "rtl" : "ltr";
165
165
  }
166
- function at(t, e) {
167
- return t === "auto" ? R(e) : t;
168
- }
169
- function jt(t) {
170
- return `b-${t}`;
166
+ function st(t, e) {
167
+ return t === "auto" ? A(e) : t;
171
168
  }
172
169
  function Tt(t) {
173
- return R(t) === "rtl";
170
+ return `b-${t}`;
174
171
  }
175
172
  function Et(t) {
173
+ return A(t) === "rtl";
174
+ }
175
+ function Vt(t) {
176
176
  return t === "ltr" ? "rtl" : "ltr";
177
177
  }
178
- const st = {
178
+ const it = {
179
179
  ltr: {
180
180
  "inline-start": "left",
181
181
  "inline-end": "right",
@@ -189,23 +189,23 @@ const st = {
189
189
  "block-end": "bottom"
190
190
  }
191
191
  };
192
- function Vt(t, e) {
193
- return st[e][t];
192
+ function Ft(t, e) {
193
+ return it[e][t];
194
194
  }
195
195
  const lt = {
196
- mark: V("Locale"),
196
+ mark: F("Locale"),
197
197
  create: (t) => {
198
- const e = j({
198
+ const e = T({
199
199
  defaultValue: navigator.language ?? "en-US",
200
200
  key: "beatui-locale"
201
- }), n = j({
201
+ }), n = T({
202
202
  defaultValue: "auto",
203
203
  key: "beatui-direction-preference"
204
- }), o = p(
204
+ }), o = m(
205
205
  e,
206
206
  n
207
207
  )(
208
- (r, s) => at(s, r)
208
+ (r, s) => st(s, r)
209
209
  );
210
210
  return {
211
211
  value: {
@@ -221,11 +221,11 @@ const lt = {
221
221
  };
222
222
  }
223
223
  }, {
224
- variants: it,
225
- special: ct,
226
- overrides: M
227
- } = Y;
228
- function k(t, e) {
224
+ variants: ct,
225
+ special: ut,
226
+ overrides: j
227
+ } = Z;
228
+ function v(t, e) {
229
229
  switch (t) {
230
230
  case "white":
231
231
  return "var(--color-white)";
@@ -234,75 +234,75 @@ function k(t, e) {
234
234
  case "transparent":
235
235
  return "transparent";
236
236
  default:
237
- return Z(t, e);
237
+ return X(t, e);
238
238
  }
239
239
  }
240
- function A(t, e) {
241
- const n = ct[t];
240
+ function N(t, e) {
241
+ const n = ut[t];
242
242
  if (!n) return;
243
243
  if (e === "light")
244
244
  return n;
245
- const o = M[t];
245
+ const o = j[t];
246
246
  return o ? o[e] : n;
247
247
  }
248
248
  function x(t, e, n) {
249
- const o = M[t];
249
+ const o = j[t];
250
250
  if (o) {
251
251
  const r = o[n];
252
252
  if (r)
253
253
  return { backgroundColor: r.backgroundColor, textColor: r.color };
254
254
  }
255
255
  if (e === "solid") {
256
- const r = A(t, n);
256
+ const r = N(t, n);
257
257
  if (r)
258
258
  return {
259
259
  backgroundColor: r.backgroundColor,
260
260
  textColor: r.color
261
261
  };
262
262
  }
263
- const a = it[e][n];
263
+ const a = ct[e][n];
264
264
  return {
265
- backgroundColor: k(t, a.bgShade),
265
+ backgroundColor: v(t, a.bgShade),
266
266
  textColor: a.textColor
267
267
  };
268
268
  }
269
- const ut = {
269
+ const dt = {
270
270
  light: { shade: 600, textColor: "var(--color-white)" },
271
271
  dark: { shade: 600, textColor: "var(--text-inverted-dark)" }
272
- }, dt = {
272
+ }, ht = {
273
273
  light: { shade: 300, textColor: "var(--text-normal-light)" },
274
274
  dark: { shade: 700, textColor: "var(--text-normal-dark)" }
275
- }, ht = {
275
+ }, bt = {
276
276
  light: { shade: 400, textColor: "var(--text-normal-light)" },
277
277
  dark: { shade: 600, textColor: "var(--text-normal-dark)" }
278
278
  };
279
- function m(t, e, n) {
280
- const o = M[t];
279
+ function k(t, e, n) {
280
+ const o = j[t];
281
281
  if (o) {
282
282
  const r = o[n];
283
283
  if (r)
284
284
  return { backgroundColor: r.backgroundColor, textColor: r.color };
285
285
  }
286
286
  if (e === "solid") {
287
- const r = A(t, n);
287
+ const r = N(t, n);
288
288
  if (r)
289
289
  return {
290
290
  backgroundColor: r.backgroundColor,
291
291
  textColor: r.color
292
292
  };
293
- const s = ut[n];
293
+ const s = dt[n];
294
294
  return {
295
- backgroundColor: k(t, s.shade),
295
+ backgroundColor: v(t, s.shade),
296
296
  textColor: s.textColor
297
297
  };
298
298
  }
299
- const a = e === "light" ? dt[n] : ht[n];
299
+ const a = e === "light" ? ht[n] : bt[n];
300
300
  return {
301
- backgroundColor: k(t, a.shade),
301
+ backgroundColor: v(t, a.shade),
302
302
  textColor: a.textColor
303
303
  };
304
304
  }
305
- function T(t, e) {
305
+ function E(t, e) {
306
306
  const n = e === "light" ? 500 : 600;
307
307
  switch (t) {
308
308
  case "white":
@@ -312,25 +312,25 @@ function T(t, e) {
312
312
  case "transparent":
313
313
  return "transparent";
314
314
  default:
315
- return k(t, n);
315
+ return v(t, n);
316
316
  }
317
317
  }
318
318
  function C(t, e) {
319
- return t === "white" ? "var(--color-white)" : t === "black" ? "var(--color-black)" : t === "transparent" ? "inherit" : k(t, e === "light" ? 800 : 200);
319
+ return t === "white" ? "var(--color-white)" : t === "black" ? "var(--color-black)" : t === "transparent" ? "inherit" : v(t, e === "light" ? 800 : 200);
320
320
  }
321
- function E(t, e, n) {
322
- return e === "soft" ? k(t, n === "light" ? 300 : 700) : k(t, n === "light" ? 500 : 600);
321
+ function V(t, e, n) {
322
+ return e === "soft" ? v(t, n === "light" ? 300 : 700) : v(t, n === "light" ? 500 : 600);
323
323
  }
324
- const bt = "bui-icons", P = /* @__PURE__ */ new Map(), N = (() => {
324
+ const gt = "bui-icons", D = /* @__PURE__ */ new Map(), q = (() => {
325
325
  try {
326
326
  return typeof indexedDB < "u" && indexedDB !== null;
327
327
  } catch {
328
328
  return !1;
329
329
  }
330
330
  })();
331
- function gt() {
332
- return N ? new Promise((t, e) => {
333
- const n = indexedDB.open(bt, 1);
331
+ function ft() {
332
+ return q ? new Promise((t, e) => {
333
+ const n = indexedDB.open(gt, 1);
334
334
  n.onupgradeneeded = function(o) {
335
335
  const a = o.target.result;
336
336
  a.objectStoreNames.contains("icons") || a.createObjectStore("icons");
@@ -341,8 +341,8 @@ function gt() {
341
341
  };
342
342
  }) : Promise.reject(new Error("IndexedDB not available"));
343
343
  }
344
- const B = N ? gt() : null;
345
- async function ft(t, e) {
344
+ const B = q ? ft() : null;
345
+ async function pt(t, e) {
346
346
  try {
347
347
  if (B) {
348
348
  const n = await B;
@@ -351,12 +351,12 @@ async function ft(t, e) {
351
351
  r.objectStore("icons").put(e, t), r.oncomplete = () => o(), r.onerror = a;
352
352
  });
353
353
  } else
354
- P.set(t, e);
354
+ D.set(t, e);
355
355
  } catch {
356
- P.set(t, e);
356
+ D.set(t, e);
357
357
  }
358
358
  }
359
- async function pt(t) {
359
+ async function mt(t) {
360
360
  try {
361
361
  if (B) {
362
362
  const e = await B;
@@ -367,12 +367,12 @@ async function pt(t) {
367
367
  }, s.onerror = o;
368
368
  });
369
369
  } else
370
- return P.get(t) || null;
370
+ return D.get(t) || null;
371
371
  } catch {
372
- return P.get(t) || null;
372
+ return D.get(t) || null;
373
373
  }
374
374
  }
375
- async function mt(t) {
375
+ async function kt(t) {
376
376
  const e = `https://api.iconify.design/${t}.svg`;
377
377
  return fetch(e).then((n) => {
378
378
  if (n.status === 200)
@@ -380,22 +380,22 @@ async function mt(t) {
380
380
  throw new Error(`Failed to load icon: ${t}`);
381
381
  });
382
382
  }
383
- async function kt(t) {
384
- const e = t.replace(":", "/"), n = await pt(e);
383
+ async function vt(t) {
384
+ const e = t.replace(":", "/"), n = await mt(e);
385
385
  if (n)
386
386
  return n;
387
- const o = await mt(e);
388
- return await ft(e, o), o;
387
+ const o = await kt(e);
388
+ return await pt(e, o), o;
389
389
  }
390
- function vt(t) {
390
+ function xt(t) {
391
391
  return ["bc-icon", `bc-icon--${t}`].join(" ");
392
392
  }
393
- function xt(t, e = "solid") {
393
+ function Ct(t, e = "solid") {
394
394
  if (!t) return "";
395
- const n = E(t, e, "light"), o = E(t, e, "dark");
395
+ const n = V(t, e, "light"), o = V(t, e, "dark");
396
396
  return `--icon-color: ${n}; --icon-color-dark: ${o}`;
397
397
  }
398
- function q({
398
+ function U({
399
399
  icon: t,
400
400
  size: e = "md",
401
401
  color: n,
@@ -403,62 +403,62 @@ function q({
403
403
  accessibility: a = "auto",
404
404
  tone: r = "solid"
405
405
  }, ...s) {
406
- const c = p(
406
+ const c = m(
407
407
  a,
408
408
  o
409
- )((l, u) => l === "decorative" ? !1 : l === "informative" ? !0 : u != null && u !== "");
410
- return F(
411
- U,
412
- (l) => f.span(
413
- i.class(
414
- p(e, n)((u) => vt(u ?? "md"))
409
+ )((i, u) => i === "decorative" ? !1 : i === "informative" ? !0 : u != null && u !== "");
410
+ return O(
411
+ H,
412
+ (i) => g.span(
413
+ l.class(
414
+ m(e, n)((u) => xt(u ?? "md"))
415
415
  ),
416
- i.style(
417
- p(
416
+ l.style(
417
+ m(
418
418
  n,
419
419
  r
420
420
  )(
421
- (u, b) => xt(u ?? void 0, b ?? "solid")
421
+ (u, f) => Ct(u ?? void 0, f ?? "solid")
422
422
  )
423
423
  ),
424
424
  // Add accessibility attributes based on icon type
425
425
  w(
426
426
  c,
427
427
  () => y(
428
- i.role("img"),
429
- g.label(H(o, l.$.iconDescription))
428
+ l.role("img"),
429
+ b.label(z(o, i.$.iconDescription))
430
430
  ),
431
- () => g.hidden(!0)
431
+ () => b.hidden(!0)
432
432
  ),
433
- W(
433
+ J(
434
434
  { once: !0 },
435
- () => J({
435
+ () => Q({
436
436
  request: t,
437
- load: ({ request: u }) => kt(u),
437
+ load: ({ request: u }) => vt(u),
438
438
  convertError: String,
439
- success: ({ value: u }) => f.span(
440
- D.width("100%"),
441
- D.height("100%"),
442
- i.innerHTML(u)
439
+ success: ({ value: u }) => g.span(
440
+ P.width("100%"),
441
+ P.height("100%"),
442
+ l.innerHTML(u)
443
443
  ),
444
- pending: () => f.span(
445
- i.class("animate-spin"),
444
+ pending: () => g.span(
445
+ l.class("animate-spin"),
446
446
  // Loading state accessibility
447
447
  w(
448
448
  c,
449
- () => y(i.role("img"), g.label(l.$.loadingIcon)),
450
- () => g.hidden(!0)
449
+ () => y(l.role("img"), b.label(i.$.loadingIcon)),
450
+ () => b.hidden(!0)
451
451
  ),
452
452
  "↻"
453
453
  ),
454
- failure: ({ error: u }) => f.span(
455
- i.title(u),
456
- i.class("text-red-500"),
454
+ failure: ({ error: u }) => g.span(
455
+ l.title(u),
456
+ l.class("text-red-500"),
457
457
  // Error state accessibility
458
458
  w(
459
459
  c,
460
- () => y(i.role("img"), g.label(l.$.failedToLoadIcon)),
461
- () => g.hidden(!0)
460
+ () => y(l.role("img"), b.label(i.$.failedToLoadIcon)),
461
+ () => b.hidden(!0)
462
462
  ),
463
463
  "🚫"
464
464
  )
@@ -468,7 +468,7 @@ function q({
468
468
  )
469
469
  );
470
470
  }
471
- function Ct(t, e, n, o) {
471
+ function wt(t, e, n, o) {
472
472
  const a = [
473
473
  "bc-button",
474
474
  `bc-button--size-${t}`,
@@ -477,11 +477,11 @@ function Ct(t, e, n, o) {
477
477
  ];
478
478
  return n && a.push("bc-button--loading"), o && a.push("bc-button--full-width"), a.join(" ");
479
479
  }
480
- function wt(t, e, n) {
480
+ function yt(t, e, n) {
481
481
  const o = /* @__PURE__ */ new Map();
482
482
  o.set("--button-text-shadow", "var(--text-shadow-none)"), o.set("--button-text-shadow-dark", "var(--text-shadow-none)");
483
- const a = (r, s, c, l) => {
484
- n || (o.set("--button-bg-hover", r), o.set("--button-text-hover", c), o.set("--button-bg-hover-dark", s), o.set("--button-text-hover-dark", l));
483
+ const a = (r, s, c, i) => {
484
+ n || (o.set("--button-bg-hover", r), o.set("--button-text-hover", c), o.set("--button-bg-hover-dark", s), o.set("--button-text-hover-dark", i));
485
485
  };
486
486
  switch (t) {
487
487
  case "filled": {
@@ -493,36 +493,36 @@ function wt(t, e, n) {
493
493
  "--button-text-shadow-dark",
494
494
  "var(--text-shadow-button-filled, var(--text-shadow-sm))"
495
495
  );
496
- const c = m(e, "solid", "light"), l = m(e, "solid", "dark");
496
+ const c = k(e, "solid", "light"), i = k(e, "solid", "dark");
497
497
  a(
498
498
  c.backgroundColor,
499
- l.backgroundColor,
499
+ i.backgroundColor,
500
500
  c.textColor,
501
- l.textColor
501
+ i.textColor
502
502
  );
503
503
  break;
504
504
  }
505
505
  case "light": {
506
506
  const r = x(e, "light", "light"), s = x(e, "light", "dark");
507
507
  o.set("--button-bg", r.backgroundColor), o.set("--button-text", r.textColor), o.set("--button-bg-dark", s.backgroundColor), o.set("--button-text-dark", s.textColor);
508
- const c = m(e, "light", "light"), l = m(e, "light", "dark");
508
+ const c = k(e, "light", "light"), i = k(e, "light", "dark");
509
509
  a(
510
510
  c.backgroundColor,
511
- l.backgroundColor,
511
+ i.backgroundColor,
512
512
  c.textColor,
513
- l.textColor
513
+ i.textColor
514
514
  );
515
515
  break;
516
516
  }
517
517
  case "outline": {
518
- o.set("--button-bg", "transparent"), o.set("--button-bg-dark", "transparent"), o.set("--button-border", T(e, "light")), o.set("--button-border-dark", T(e, "dark")), o.set("--button-text", C(e, "light")), o.set("--button-text-dark", C(e, "dark")), o.set(
518
+ o.set("--button-bg", "transparent"), o.set("--button-bg-dark", "transparent"), o.set("--button-border", E(e, "light")), o.set("--button-border-dark", E(e, "dark")), o.set("--button-text", C(e, "light")), o.set("--button-text-dark", C(e, "dark")), o.set(
519
519
  "--button-text-shadow",
520
520
  "var(--text-shadow-button-light, var(--text-shadow-xs))"
521
521
  ), o.set(
522
522
  "--button-text-shadow-dark",
523
523
  "var(--text-shadow-button-light, var(--text-shadow-xs))"
524
524
  );
525
- const r = m(e, "light", "light"), s = m(e, "light", "dark");
525
+ const r = k(e, "light", "light"), s = k(e, "light", "dark");
526
526
  a(
527
527
  r.backgroundColor,
528
528
  s.backgroundColor,
@@ -540,10 +540,10 @@ function wt(t, e, n) {
540
540
  "--button-text-shadow-dark",
541
541
  "var(--text-shadow-button-default, var(--text-shadow-2xs))"
542
542
  );
543
- const c = m("base", "light", "light"), l = m("base", "light", "dark");
543
+ const c = k("base", "light", "light"), i = k("base", "light", "dark");
544
544
  a(
545
545
  c.backgroundColor,
546
- l.backgroundColor,
546
+ i.backgroundColor,
547
547
  o.get("--button-text") ?? r.textColor,
548
548
  o.get("--button-text-dark") ?? s.textColor
549
549
  );
@@ -556,7 +556,7 @@ function wt(t, e, n) {
556
556
  }
557
557
  return Array.from(o.entries()).map(([r, s]) => `${r}: ${s}`).join("; ");
558
558
  }
559
- function Ft({
559
+ function Ot({
560
560
  type: t = "button",
561
561
  disabled: e = !1,
562
562
  loading: n = !1,
@@ -566,55 +566,61 @@ function Ft({
566
566
  roundedness: s = "sm",
567
567
  onClick: c = () => {
568
568
  },
569
- fullWidth: l = !1
570
- }, ...u) {
571
- const b = $(null);
572
- return F(
573
- U,
574
- (h) => f.button(
575
- i.type(t),
576
- i.disabled(
577
- p(
569
+ fullWidth: i = !1,
570
+ stopPropagation: u = !0
571
+ }, ...f) {
572
+ const h = _(null);
573
+ return O(
574
+ H,
575
+ (p) => g.button(
576
+ l.type(t),
577
+ l.disabled(
578
+ m(
578
579
  e,
579
580
  n
580
- )((d, v) => d || v)
581
+ )((d, S) => d || S)
581
582
  ),
582
583
  // Add ARIA attributes for accessibility
583
- g.busy(n ?? !1),
584
- w(n ?? !1, () => g.label(h.$.loadingExtended)),
585
- i.class(
586
- p(a, s, n, l)(Ct)
584
+ b.busy(n ?? !1),
585
+ w(n ?? !1, () => b.label(p.$.loadingExtended)),
586
+ l.class(
587
+ m(a, s, n, i)(wt)
587
588
  ),
588
- i.style(p(o, r, e)(wt)),
589
+ l.style(m(o, r, e)(yt)),
589
590
  w(
590
591
  n ?? !1,
591
592
  () => y(
592
- D.width(
593
- b.map((d) => d == null ? "" : `${d.width}px`)
593
+ P.width(
594
+ h.map((d) => d == null ? "" : `${d.width}px`)
594
595
  ),
595
- D.height(
596
- b.map((d) => d == null ? "" : `${d.height}px`)
596
+ P.height(
597
+ h.map((d) => d == null ? "" : `${d.height}px`)
597
598
  ),
598
- q({ icon: "line-md:loading-twotone-loop", size: a ?? "md" }),
599
+ U({ icon: "line-md:loading-twotone-loop", size: a ?? "md" }),
599
600
  // Hidden live region for screen reader announcements
600
- f.span(
601
- i.class("sr-only"),
602
- g.live("polite"),
603
- h.$.loadingExtended
601
+ g.span(
602
+ l.class("sr-only"),
603
+ b.live("polite"),
604
+ p.$.loadingExtended
604
605
  )
605
606
  ),
606
- () => y(I.click(c), ...u)
607
+ () => y(
608
+ I.click((d) => {
609
+ t !== "submit" && d.preventDefault(), u && (d.stopImmediatePropagation(), d.stopPropagation()), c();
610
+ }),
611
+ ...f
612
+ )
607
613
  ),
608
614
  w(
609
615
  n != null,
610
- () => Q((d) => (d.on((v) => {
611
- _.get(n ?? !1) || b.set(v);
616
+ () => Y((d) => (d.on((S) => {
617
+ M.get(n ?? !1) || h.set(S);
612
618
  }), L))
613
619
  )
614
620
  )
615
621
  );
616
622
  }
617
- function yt(t, e, n) {
623
+ function It(t, e, n) {
618
624
  const o = [
619
625
  t ? "bc-base-input-container" : "bc-input-container"
620
626
  ];
@@ -624,11 +630,11 @@ function yt(t, e, n) {
624
630
  t ? "bc-base-input-container--default" : "bc-input-container--default"
625
631
  ), n && o.push("bc-input-container--error"), o.join(" ");
626
632
  }
627
- function It(t, e) {
633
+ function Lt(t, e) {
628
634
  const n = ["bc-input-container__input"];
629
635
  return t || (n.push(`bc-control--padding-${e}`), n.push(`bc-control--text-size-${e}`)), n.join(" ");
630
636
  }
631
- const Lt = ({
637
+ const Pt = ({
632
638
  baseContainer: t,
633
639
  disabled: e,
634
640
  input: n,
@@ -637,65 +643,65 @@ const Lt = ({
637
643
  hasError: r,
638
644
  focusableSelector: s = "input, select, textarea",
639
645
  growInput: c = !0,
640
- size: l
646
+ size: i
641
647
  }, ...u) => {
642
- const b = _.map(e ?? !1, (h) => h);
643
- return f.div(
644
- z((h) => {
645
- const d = () => {
648
+ const f = M.map(e ?? !1, (h) => h);
649
+ return g.div(
650
+ G((h) => {
651
+ const p = () => {
646
652
  h.querySelector(s)?.focus();
647
653
  };
648
- return h.addEventListener("click", d), G(() => h.removeEventListener("click", d));
654
+ return h.addEventListener("click", p), K(() => h.removeEventListener("click", p));
649
655
  }),
650
- i.class(
651
- p(
656
+ l.class(
657
+ m(
652
658
  t,
653
- b,
659
+ f,
654
660
  r ?? !1
655
661
  // size ?? 'md'
656
662
  )(
657
- (h, d, v) => yt(
663
+ (h, p, d) => It(
658
664
  h ?? !1,
659
- d ?? !1,
660
- v ?? !1
665
+ p ?? !1,
666
+ d ?? !1
661
667
  // (size ?? 'md') as ControlSize
662
668
  )
663
669
  )
664
670
  ),
665
- o != null ? f.span(i.class("bc-input-container__before"), o) : null,
666
- f.div(
667
- i.class(
668
- p(
671
+ o != null ? g.span(l.class("bc-input-container__before"), o) : null,
672
+ g.div(
673
+ l.class(
674
+ m(
669
675
  t,
670
- l ?? "md"
676
+ i ?? "md"
671
677
  )(
672
- (h, d) => It(
678
+ (h, p) => Lt(
673
679
  h ?? !1,
674
- d ?? "md"
680
+ p ?? "md"
675
681
  )
676
682
  )
677
683
  ),
678
684
  // attr.class('bc-input-container__input'),
679
- i.class(
680
- _.map(
685
+ l.class(
686
+ M.map(
681
687
  c,
682
688
  (h) => h ? "bc-input-container__input--grow" : ""
683
689
  )
684
690
  ),
685
691
  n
686
692
  ),
687
- a != null ? f.span(i.class("bc-input-container__after"), a) : null,
693
+ a != null ? g.span(l.class("bc-input-container__after"), a) : null,
688
694
  ...u
689
695
  );
690
696
  };
691
- function Ot({
697
+ function Rt({
692
698
  icon: t,
693
699
  size: e = "md",
694
700
  color: n = "neutral"
695
701
  }) {
696
- return f.span(
697
- i.class("bc-input-container__icon"),
698
- q({ icon: t, size: e, color: n })
702
+ return g.span(
703
+ l.class("bc-input-container__icon"),
704
+ U({ icon: t, size: e, color: n })
699
705
  );
700
706
  }
701
707
  const Dt = ({
@@ -707,55 +713,55 @@ const Dt = ({
707
713
  placeholder: r,
708
714
  id: s,
709
715
  required: c,
710
- tabIndex: l,
716
+ tabIndex: i,
711
717
  hasError: u
712
718
  }) => y(
713
- i.autocomplete(t),
714
- i.autofocus(e),
715
- i.class(n),
716
- i.disabled(o),
717
- i.name(a ?? s),
718
- i.placeholder(r),
719
- i.id(s),
720
- g.required(c),
721
- i.tabindex(l),
722
- u != null ? g.invalid(
719
+ l.autocomplete(t),
720
+ l.autofocus(e),
721
+ l.class(n),
722
+ l.disabled(o),
723
+ l.name(a ?? s),
724
+ l.placeholder(r),
725
+ l.id(s),
726
+ b.required(c),
727
+ l.tabindex(i),
728
+ u != null ? b.invalid(
723
729
  u ?? !1
724
730
  ) : null
725
- ), Rt = (t) => {
731
+ ), At = (t) => {
726
732
  const { value: e, onBlur: n, onChange: o, onInput: a } = t;
727
- return Lt({
733
+ return Pt({
728
734
  ...t,
729
- input: K.text(
735
+ input: W.text(
730
736
  Dt(t),
731
- i.value(e),
732
- i.class("bc-input"),
733
- n != null ? I.blur(S(n)) : L,
734
- o != null ? I.change(S(o)) : L,
735
- a != null ? I.input(S(a)) : L
737
+ l.value(e),
738
+ l.class("bc-input"),
739
+ n != null ? I.blur($(n)) : L,
740
+ o != null ? I.change($(o)) : L,
741
+ a != null ? I.input($(a)) : L
736
742
  )
737
743
  });
738
744
  };
739
- function Pt(t) {
745
+ function Bt(t) {
740
746
  const e = t.split("-"), n = [t];
741
747
  return e.length > 1 && n.push(e[0]), n;
742
748
  }
743
- function Bt({
749
+ function St({
744
750
  locale: t,
745
751
  defaultLocale: e = "en-US",
746
752
  defaultMessages: n,
747
753
  localeLoader: o
748
754
  }) {
749
- const a = $(e), r = $(n), s = t.on(async (c) => {
755
+ const a = _(e), r = _(n), s = t.on(async (c) => {
750
756
  if (c === a.value) return;
751
757
  a.set(c);
752
- const l = Pt(c);
753
- for (const u of l)
758
+ const i = Bt(c);
759
+ for (const u of i)
754
760
  try {
755
- const b = await o(u);
761
+ const f = await o(u);
756
762
  if (
757
763
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
758
- typeof b.default == "object" && Object.keys(b).length === 1
764
+ typeof f.default == "object" && Object.keys(f).length === 1
759
765
  ) {
760
766
  console.error(
761
767
  "It appears that you are trying to load a translation module without referencing the default export. Please use `(await import(...)).default` in your loader function."
@@ -763,7 +769,7 @@ function Bt({
763
769
  return;
764
770
  }
765
771
  if (c === a.value) {
766
- r.set(b);
772
+ r.set(f);
767
773
  return;
768
774
  }
769
775
  } catch {
@@ -780,18 +786,18 @@ function Bt({
780
786
  t: r
781
787
  };
782
788
  }
783
- function St({
789
+ function $t({
784
790
  defaultLocale: t,
785
791
  defaultMessages: e,
786
792
  localeLoader: n,
787
793
  providerName: o = "I18nProvider"
788
794
  }) {
789
795
  return {
790
- mark: V(o),
796
+ mark: F(o),
791
797
  create: (a, r) => {
792
798
  const {
793
799
  value: { locale: s }
794
- } = r.getProvider(lt.mark), { t: c, dispose: l } = Bt({
800
+ } = r.getProvider(lt.mark), { t: c, dispose: i } = St({
795
801
  locale: s,
796
802
  defaultMessages: e,
797
803
  defaultLocale: t,
@@ -799,47 +805,47 @@ function St({
799
805
  });
800
806
  return {
801
807
  value: c,
802
- dispose: l
808
+ dispose: i
803
809
  };
804
810
  }
805
811
  };
806
812
  }
807
- const U = St({
808
- defaultLocale: ot,
809
- defaultMessages: et,
810
- localeLoader: async (t) => (await nt(/* @__PURE__ */ Object.assign({ "./locales/ar.ts": () => import("./ar-CKheF7Rb.js"), "./locales/de.ts": () => import("./de-CqFnIl0Y.js"), "./locales/en.ts": () => Promise.resolve().then(() => tt), "./locales/es.ts": () => import("./es-Cv9ZSjqz.js"), "./locales/fa.ts": () => import("./fa-CG8B9M9O.js"), "./locales/fr.ts": () => import("./fr-B2f1Pmal.js"), "./locales/he.ts": () => import("./he-BmHa696l.js"), "./locales/hi.ts": () => import("./hi-DNII_Adz.js"), "./locales/it.ts": () => import("./it-894w7K0i.js"), "./locales/ja.ts": () => import("./ja-j4AV8eVy.js"), "./locales/ko.ts": () => import("./ko-CNZqypvW.js"), "./locales/nl.ts": () => import("./nl-CzTp9ds0.js"), "./locales/pl.ts": () => import("./pl-DQid7ctL.js"), "./locales/pt.ts": () => import("./pt-BAU0nrtN.js"), "./locales/ru.ts": () => import("./ru-CtYj3NlJ.js"), "./locales/tr.ts": () => import("./tr-wS-zWzvh.js"), "./locales/ur.ts": () => import("./ur-8NSFWrMo.js"), "./locales/vi.ts": () => import("./vi-CngHpCNM.js"), "./locales/zh.ts": () => import("./zh-Bkxc6ZmR.js") }), `./locales/${t}.ts`, 3)).default,
813
+ const H = $t({
814
+ defaultLocale: nt,
815
+ defaultMessages: ot,
816
+ localeLoader: async (t) => (await rt(/* @__PURE__ */ Object.assign({ "./locales/ar.ts": () => import("./ar-BOqk-mzn.js"), "./locales/de.ts": () => import("./de-CviZ-p_4.js"), "./locales/en.ts": () => Promise.resolve().then(() => et), "./locales/es.ts": () => import("./es-DxuZQTVE.js"), "./locales/fa.ts": () => import("./fa-BBySqLUh.js"), "./locales/fr.ts": () => import("./fr-DBCblSme.js"), "./locales/he.ts": () => import("./he-DUrHwGF6.js"), "./locales/hi.ts": () => import("./hi-BdJqIhvL.js"), "./locales/it.ts": () => import("./it-B7HY_G0n.js"), "./locales/ja.ts": () => import("./ja-DavHeIBC.js"), "./locales/ko.ts": () => import("./ko-Be3o52et.js"), "./locales/nl.ts": () => import("./nl-DJIY4R0b.js"), "./locales/pl.ts": () => import("./pl-Bqoq63Fm.js"), "./locales/pt.ts": () => import("./pt-7g4YVboz.js"), "./locales/ru.ts": () => import("./ru-hvj4lu1_.js"), "./locales/tr.ts": () => import("./tr-qxangEut.js"), "./locales/ur.ts": () => import("./ur-CCcFf5OU.js"), "./locales/vi.ts": () => import("./vi-BAHqe-lr.js"), "./locales/zh.ts": () => import("./zh-B-ZsrhFY.js") }), `./locales/${t}.ts`, 3)).default,
811
817
  providerName: "BeatUII18n"
812
818
  });
813
819
  export {
814
- Ft as B,
820
+ Ot as B,
815
821
  Dt as C,
816
- q as I,
822
+ U as I,
817
823
  lt as L,
818
- Rt as T,
819
- nt as _,
820
- U as a,
821
- Lt as b,
822
- Ot as c,
823
- et as d,
824
+ At as T,
825
+ rt as _,
826
+ H as a,
827
+ Pt as b,
828
+ Rt as c,
829
+ ot as d,
824
830
  x as e,
825
- X as f,
826
- It as g,
827
- T as h,
828
- m as i,
829
- Ct as j,
830
- wt as k,
831
- ot as l,
832
- St as m,
833
- N as n,
834
- pt as o,
835
- Bt as p,
836
- R as q,
837
- at as r,
838
- ft as s,
831
+ tt as f,
832
+ Lt as g,
833
+ E as h,
834
+ k as i,
835
+ wt as j,
836
+ yt as k,
837
+ nt as l,
838
+ $t as m,
839
+ q as n,
840
+ mt as o,
841
+ St as p,
842
+ A as q,
843
+ st as r,
844
+ pt as s,
839
845
  C as t,
840
- jt as u,
841
- Tt as v,
842
- Et as w,
843
- st as x,
844
- Vt as y
846
+ Tt as u,
847
+ Et as v,
848
+ Vt as w,
849
+ it as x,
850
+ Ft as y
845
851
  };