@base-framework/ui 1.0.18 → 1.0.20

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/atoms.es.js CHANGED
@@ -1,6 +1,6 @@
1
- import { B as e, C as t, a as n, F as o, L as p, P as r, R as u, S as I, b as i, T as l } from "./tooltip-Cmvr6cnK.js";
1
+ import { B as e, C as t, a as n, F as o, L as p, P as r, R as u, S as I, b as i, T as l } from "./tooltip-BycfNakY.js";
2
2
  import { B as m, I as T, L as c } from "./buttons-CVEwmPAi.js";
3
- import { C as B, d as C, D as S, c as g, E as b, F as f, H as h, I as F, M as L, N as P, P as R, R as k, S as D, T as V, a as E, b as H, U as M, W as N } from "./inputs-Beh1GdPu.js";
3
+ import { C as B, d as C, D as S, c as g, E as b, F as f, H as h, I as F, M as L, N as P, P as R, R as k, S as D, T as V, a as E, b as H, U as M, W as N } from "./inputs-C1dvFQuB.js";
4
4
  import { V as W, a as w } from "./veil-DSQdR6CM.js";
5
5
  export {
6
6
  e as Badge,
package/dist/index.es.js CHANGED
@@ -1,11 +1,11 @@
1
- import { B as e, C as o, a as t, F as r, L as n, P as i, R as l, S as p, b as u, T as m } from "./tooltip-Cmvr6cnK.js";
1
+ import { B as e, C as o, a as t, F as r, L as n, P as i, R as l, S as p, b as u, T as m } from "./tooltip-BycfNakY.js";
2
2
  import { B as g, I as C, L as T } from "./buttons-CVEwmPAi.js";
3
- import { C as D, d as I, D as S, c as b, E as B, F as P, H as F, I as M, M as k, N, P as v, R as f, S as x, T as h, a as y, b as W, U as L, W as A } from "./inputs-Beh1GdPu.js";
3
+ import { C as D, d as I, D as S, c as b, E as B, F as P, H as F, I as M, M as k, N, P as v, R as f, S as x, T as h, a as y, b as W, U as L, W as A } from "./inputs-C1dvFQuB.js";
4
4
  import { V as w, a as U } from "./veil-DSQdR6CM.js";
5
5
  import { Icons as R } from "./icons.es.js";
6
6
  import { A as G, B as V, C as j, z as q, u as z, v as J, w as _, D as K, j as Q, k as X, G as Y, E as Z, s as $, c as aa, a as sa, b as ea, i as oa, g as ta, e as ra, h as na, F as ia, d as la, f as pa, t as ua, M as ma, l as da, N as ga, P as Ca, p as Ta, q as ca, S as Da, n as Ia, o as Sa, T as ba, x as Ba, y as Pa, m as Fa, r as Ma } from "./confirmation-34GijCiu.js";
7
7
  import { A as Na, b as va, C as fa, D as xa, a as ha, F as ya, M as Wa, P as La, c as Aa, g as Ha, p as wa } from "./calendar-BjUju8_5.js";
8
- import { B as Oa, m as Ra, C as Ea, j as Ga, D as Va, l as ja, H as qa, I as za, N as Ja, O as _a, P as Ka, S as Qa, q as Xa, p as Ya, n as Za, o as $a, T as as, k as ss, U as es, W as os, f as ts, h as rs, i as ns, c as is, d as ls, b as ps, e as us, a as ms, g as ds } from "./signature-panel-BSdoBYci.js";
8
+ import { B as Oa, m as Ra, C as Ea, j as Ga, D as Va, l as ja, H as qa, I as za, N as Ja, O as _a, P as Ka, S as Qa, q as Xa, p as Ya, n as Za, o as $a, T as as, k as ss, U as es, W as os, f as ts, h as rs, i as ns, c as is, d as ls, b as ps, e as us, a as ms, g as ds } from "./signature-panel-3STXee-b.js";
9
9
  import { B as Cs, I as Ts, M as cs, d as Ds, e as Is, g as Ss, N as bs, b as Bs, a as Ps, f as Fs, P as Ms, c as ks, S as Ns, T as vs } from "./mobile-nav-wrapper-DyNFnla-.js";
10
10
  import { B as xs, a as hs, C as ys, F as Ws, b as Ls, c as As, M as Hs, P as ws, S as Us } from "./sidebar-menu-page-lAu74WTl.js";
11
11
  import { A as Rs, F as Es, M as Gs, a as Vs, T as js } from "./aside-template-McEj_Gxc.js";
@@ -74,7 +74,7 @@ const v = "flex h-10 w-full px-3 py-2 text-sm", b = "rounded-md border border-in
74
74
  * @returns {void}
75
75
  */
76
76
  clickHandler(e) {
77
- this.state.toggle("checked"), this.checkbox.checked = this.state.checked, typeof this.onChange == "function" && this.onChange(e, this.parent, this.state.checked);
77
+ this.state.toggle("checked"), this.checkbox.checked = this.state.checked, typeof this.onChange == "function" && this.onChange(this.state.checked, this);
78
78
  },
79
79
  /**
80
80
  * This will render the checkbox component.
@@ -1,4 +1,4 @@
1
- import { B as s, m as o, C as t, j as r, D as n, l, H as i, I as d, N as b, O as v, P as g, S as p, q as u, p as N, n as k, o as C, T as D, k as M, U as T, W as c, f as B, h as m, i as y, c as W, d as h, b as H, e as P, a as S, g as f } from "./signature-panel-BSdoBYci.js";
1
+ import { B as s, m as o, C as t, j as r, D as n, l, H as i, I as d, N as b, O as v, P as g, S as p, q as u, p as N, n as k, o as C, T as D, k as M, U as T, W as c, f as B, h as m, i as y, c as W, d as h, b as H, e as P, a as S, g as f } from "./signature-panel-3STXee-b.js";
2
2
  import { b as I, C as L, D as O, a as F, F as U, M as G, c as j, p as q } from "./calendar-BjUju8_5.js";
3
3
  import { B as z, I as A, M as E, d as J, e as K, g as Q, N as R, b as V, a as X, f as Y, P as Z, c as _, S as $, T as aa } from "./mobile-nav-wrapper-DyNFnla-.js";
4
4
  export {
@@ -1,10 +1,10 @@
1
- import { Button as v, Div as o, On as U, Span as y, Th as P, I as Y, Thead as E, Tr as F, Table as H, P as m, Li as D, Time as Q, Nav as S, Ul as b, Section as O, Canvas as X } from "@base-framework/atoms";
2
- import { Atom as u, Component as g, Data as L, DateTime as q, Jot as R, router as k, NavLink as M, base as B, Dom as I } from "@base-framework/base";
1
+ import { Button as v, Div as o, On as U, Span as y, Th as P, UseParent as Y, I as E, Thead as F, Tr as H, Table as Q, P as m, Li as D, Time as X, Nav as S, Ul as b, Section as O, Canvas as q } from "@base-framework/atoms";
2
+ import { Atom as u, Component as g, Data as L, DateTime as K, Jot as R, router as k, NavLink as M, base as B, Dom as I } from "@base-framework/base";
3
3
  import { B as C, I as z } from "./buttons-CVEwmPAi.js";
4
4
  import { Icons as w } from "./icons.es.js";
5
- import { TableBody as K, List as _, IntervalTimer as G } from "@base-framework/organisms";
6
- import { C as V, I as J, H as Z } from "./inputs-Beh1GdPu.js";
7
- import { A as ee, P as te } from "./calendar-BjUju8_5.js";
5
+ import { TableBody as _, List as G, IntervalTimer as V } from "@base-framework/organisms";
6
+ import { C as J, I as Z, H as ee } from "./inputs-C1dvFQuB.js";
7
+ import { A as te, P as se } from "./calendar-BjUju8_5.js";
8
8
  u((t, e) => ({
9
9
  class: "flex items-center px-4 py-2",
10
10
  ...t,
@@ -16,7 +16,7 @@ u(({ value: t, label: e }) => v({
16
16
  dataSet: ["performance", ["state", t, "active"]],
17
17
  click: (s, { state: n }) => n.performance = t
18
18
  }, e));
19
- class _e extends g {
19
+ class Ge extends g {
20
20
  /**
21
21
  * This will declare the props for the compiler.
22
22
  *
@@ -34,36 +34,36 @@ class _e extends g {
34
34
  return o({ class: this.class || "" }, this.children);
35
35
  }
36
36
  }
37
- const se = (t) => {
37
+ const ne = (t) => {
38
38
  const e = new Date(t, 11, 31), s = new Date(t, 0, 1);
39
39
  return e.getDay() === 4 || // December 31 is a Thursday
40
40
  s.getDay() === 4;
41
- }, ne = (t) => {
41
+ }, ae = (t) => {
42
42
  const e = new Date(t.valueOf()), s = (e.getDay() + 6) % 7;
43
43
  e.setDate(e.getDate() - s + 3);
44
44
  const n = e.getFullYear(), a = new Date(n, 0, 4);
45
45
  a.setDate(a.getDate() - (a.getDay() + 6) % 7);
46
46
  const i = Math.ceil((e - a) / 6048e5) + 1;
47
- return i > 52 && !se(n) ? {
47
+ return i > 52 && !ne(n) ? {
48
48
  weekNumber: 1,
49
49
  year: n + 1
50
50
  } : {
51
51
  weekNumber: i,
52
52
  year: n
53
53
  };
54
- }, ae = (t, e, s) => {
54
+ }, ie = (t, e, s) => {
55
55
  if (s === 0) return [];
56
56
  const n = new Date(t, e, 0).getDate();
57
57
  return Array.from(
58
58
  { length: s },
59
59
  (a, i) => new Date(t, e - 1, n - s + i + 1)
60
60
  );
61
- }, ie = (t, e, s) => Array.from({ length: s }, (n, a) => new Date(t, e + 1, a + 1)), T = (t, e) => {
61
+ }, oe = (t, e, s) => Array.from({ length: s }, (n, a) => new Date(t, e + 1, a + 1)), T = (t, e) => {
62
62
  const s = new Date(e, 0, 4), n = (s.getDay() + 6) % 7, a = new Date(s);
63
63
  a.setDate(s.getDate() - n);
64
64
  const i = new Date(a);
65
65
  return i.setDate(a.getDate() + (t - 1) * 7), i;
66
- }, Ge = (t, e) => {
66
+ }, Ve = (t, e) => {
67
67
  const s = new Date(t, e, 1).getDay(), n = new Date(t, e + 1, 0).getDate(), a = [];
68
68
  let i = [];
69
69
  for (let l = 1 - s; l <= n; l++) {
@@ -71,17 +71,17 @@ const se = (t) => {
71
71
  i.push(l > 0 ? d : null), (i.length === 7 || l === n) && (a.push([...i]), i = []);
72
72
  }
73
73
  return a;
74
- }, Ve = (t, e) => {
74
+ }, Je = (t, e) => {
75
75
  const s = new Date(t, e + 1, 0).getDate(), n = [];
76
76
  let a = [];
77
77
  for (let i = 1; i <= s; i++)
78
78
  a.push(new Date(t, e, i)), a.length === 7 && (n.push(a), a = []);
79
79
  return a.length > 0 && n.push(a), n;
80
- }, oe = (t, e, s) => {
80
+ }, le = (t, e, s) => {
81
81
  const n = /* @__PURE__ */ new Date();
82
82
  return n.getDate() === t && n.getMonth() === e && n.getFullYear() === s;
83
- }, le = ({ day: t, month: e, year: s, weekNumber: n, selectWeek: a }) => {
84
- const i = oe(t, e, s);
83
+ }, re = ({ day: t, month: e, year: s, weekNumber: n, selectWeek: a }) => {
84
+ const i = le(t, e, s);
85
85
  return v({
86
86
  text: t || "",
87
87
  disabled: !t,
@@ -92,10 +92,10 @@ const se = (t) => {
92
92
  `,
93
93
  click: () => a(n, s)
94
94
  });
95
- }, re = (t, e) => {
96
- const s = new Date(t, e, 1).getDay(), n = new Date(t, e + 1, 0).getDate(), a = ae(t, e, s), i = Array.from({ length: n }, (r, p) => new Date(t, e, p + 1)), l = (a.length + i.length) % 7, d = l === 0 ? 0 : 7 - l, c = ie(t, e, d), h = [...a, ...i, ...c], f = [];
95
+ }, ce = (t, e) => {
96
+ const s = new Date(t, e, 1).getDay(), n = new Date(t, e + 1, 0).getDate(), a = ie(t, e, s), i = Array.from({ length: n }, (r, p) => new Date(t, e, p + 1)), l = (a.length + i.length) % 7, d = l === 0 ? 0 : 7 - l, c = oe(t, e, d), h = [...a, ...i, ...c], f = [];
97
97
  for (let r = 0; r < h.length; r += 7) {
98
- const p = h.slice(r, r + 7), x = p.find((j) => j) || new Date(t, e, 1), { weekNumber: $, year: A } = ne(x);
98
+ const p = h.slice(r, r + 7), x = p.find((j) => j) || new Date(t, e, 1), { weekNumber: $, year: A } = ae(x);
99
99
  f.push({
100
100
  weekNumber: $,
101
101
  year: A,
@@ -103,8 +103,8 @@ const se = (t) => {
103
103
  });
104
104
  }
105
105
  return f;
106
- }, ce = ({ selectWeek: t }) => U("month", (e, s, { data: n }) => {
107
- const { year: a, month: i, currentDate: l } = n, d = re(a, i);
106
+ }, de = ({ selectWeek: t }) => U("month", (e, s, { data: n }) => {
107
+ const { year: a, month: i, currentDate: l } = n, d = ce(a, i);
108
108
  return o(
109
109
  { class: "grid grid-cols-8 gap-1 text-sm px-4 py-2" },
110
110
  [
@@ -141,7 +141,7 @@ const se = (t) => {
141
141
  o(
142
142
  { class: "grid grid-cols-7 col-span-7 text-center" },
143
143
  h.map(
144
- (r) => le({
144
+ (r) => re({
145
145
  year: (r == null ? void 0 : r.getFullYear()) || null,
146
146
  month: (r == null ? void 0 : r.getMonth()) || null,
147
147
  day: (r == null ? void 0 : r.getDate()) || null,
@@ -169,7 +169,7 @@ const se = (t) => {
169
169
  variant: "icon",
170
170
  icon: t === "Previous" ? w.chevron.single.left : w.chevron.single.right
171
171
  }
172
- ), de = ({ next: t, previous: e }) => o({ class: "flex flex-auto min-h-12 text-sm font-medium relative justify-center items-center" }, [
172
+ ), he = ({ next: t, previous: e }) => o({ class: "flex flex-auto min-h-12 text-sm font-medium relative justify-center items-center" }, [
173
173
  y("[[monthName]] [[year]]"),
174
174
  W({
175
175
  label: "Previous",
@@ -180,7 +180,7 @@ const se = (t) => {
180
180
  click: t
181
181
  })
182
182
  ]);
183
- class Je extends g {
183
+ class Ze extends g {
184
184
  /**
185
185
  * This will declare the props for the compiler.
186
186
  *
@@ -233,7 +233,7 @@ class Je extends g {
233
233
  * @returns {string}
234
234
  */
235
235
  getMonthName(e) {
236
- return q.monthNames[e];
236
+ return K.monthNames[e];
237
237
  }
238
238
  /**
239
239
  * Updates the calendar to show the previous month.
@@ -288,22 +288,22 @@ class Je extends g {
288
288
  */
289
289
  render() {
290
290
  return o({ class: "week-calendar-container border rounded-md bg-background p-3" }, [
291
- de({
291
+ he({
292
292
  next: () => this.goToNextMonth(),
293
293
  previous: () => this.goToPreviousMonth()
294
294
  }),
295
- ce({
295
+ de({
296
296
  selectWeek: (e, s) => this.selectWeek(e, s)
297
297
  })
298
298
  ]);
299
299
  }
300
300
  }
301
- const he = (t, e) => {
302
- const s = e.toggleAllSelectedRows();
303
- t.target.checked = !s;
304
- }, ue = (t) => P({ class: `cursor-pointer py-3 px-4 text-base w-10 ${t.class || ""}` }, [
305
- new V({ class: "mr-2", onChange: he })
306
- ]), ge = ({ align: t, sortable: e, key: s, label: n, sort: a, class: i }) => {
301
+ const ue = (t, e) => {
302
+ const s = t.toggleAllSelectedRows();
303
+ e.checked = !s;
304
+ }, ge = (t) => P({ class: `cursor-pointer py-3 px-4 text-base w-10 ${t.class || ""}` }, [
305
+ Y((e) => new J({ class: "mr-2", onChange: (s, n) => ue(e, n) }))
306
+ ]), fe = ({ align: t, sortable: e, key: s, label: n, sort: a, class: i }) => {
307
307
  const l = t || "justify-start";
308
308
  return P({
309
309
  class: `cursor-pointer py-3 px-4 text-base ${i || ""}`,
@@ -311,13 +311,13 @@ const he = (t, e) => {
311
311
  }, [
312
312
  o({ class: `flex flex-auto w-full items-center ${l}` }, [
313
313
  y(n),
314
- e && Y({ class: "ml-2", html: w.arrows.upDown })
314
+ e && E({ class: "ml-2", html: w.arrows.upDown })
315
315
  ])
316
316
  ]);
317
- }, fe = (t) => E([
318
- F({
317
+ }, pe = (t) => F([
318
+ H({
319
319
  class: "text-muted-foreground border-b",
320
- map: [t.headers, (e) => e.label === "checkbox" ? ue({ toggle: t.toggle }) : ge({
320
+ map: [t.headers, (e) => e.label === "checkbox" ? ge({ toggle: t.toggle }) : fe({
321
321
  align: e.align,
322
322
  sortable: e.sortable,
323
323
  key: e.key,
@@ -325,13 +325,13 @@ const he = (t, e) => {
325
325
  sort: t.sort
326
326
  })]
327
327
  })
328
- ]), pe = ({ key: t, rows: e, selectRow: s, rowItem: n }) => new K({
328
+ ]), me = ({ key: t, rows: e, selectRow: s, rowItem: n }) => new _({
329
329
  cache: "table",
330
330
  key: t,
331
331
  items: e,
332
332
  rowItem: (a) => n(a, s),
333
333
  class: "divide-y divide-border"
334
- }), Ze = R(
334
+ }), et = R(
335
335
  {
336
336
  /**
337
337
  * Initializes component data.
@@ -401,12 +401,12 @@ const he = (t, e) => {
401
401
  const t = this.rows, e = this.border !== !1 ? "border" : "";
402
402
  return o({ class: "w-full" }, [
403
403
  o({ class: `w-full rounded-md ${e} overflow-x-auto` }, [
404
- H({ class: "w-full" }, [
404
+ Q({ class: "w-full" }, [
405
405
  // @ts-ignore
406
- this.headers && fe({ headers: this.headers, sort: (s) => this.sortRows(s) }),
406
+ this.headers && pe({ headers: this.headers, sort: (s) => this.sortRows(s) }),
407
407
  // @ts-ignore
408
408
  this.customHeader ?? null,
409
- pe({
409
+ me({
410
410
  // @ts-ignore
411
411
  key: this.key,
412
412
  rows: t,
@@ -479,45 +479,45 @@ const he = (t, e) => {
479
479
  this.data.selectedRows = [];
480
480
  }
481
481
  }
482
- ), me = u(({ name: t, email: e }) => o({ class: "min-w-0 flex-auto" }, [
482
+ ), we = u(({ name: t, email: e }) => o({ class: "min-w-0 flex-auto" }, [
483
483
  m({ class: "text-base font-semibold leading-6 m-0" }, t),
484
484
  m({ class: "truncate text-sm leading-5 text-muted-foreground m-0" }, e)
485
- ])), we = () => o({ class: "flex items-center gap-x-1.5" }, [
485
+ ])), be = () => o({ class: "flex items-center gap-x-1.5" }, [
486
486
  o({ class: "flex-none rounded-full bg-emerald-500/20 p-1" }, [
487
487
  o({ class: "h-1.5 w-1.5 rounded-full bg-emerald-500" })
488
488
  ]),
489
489
  m({ class: "text-xs leading-5 text-gray-500" }, "Online")
490
- ]), be = (t) => m({ class: "text-xs leading-5 text-muted-foreground" }, [
490
+ ]), xe = (t) => m({ class: "text-xs leading-5 text-muted-foreground" }, [
491
491
  y("Last seen "),
492
- Q({ datetime: t }, "3h ago")
493
- ]), xe = (t, e) => t === "online" ? we() : be(e), ke = u(({ role: t, lastSeen: e, status: s }) => o({ class: "hidden shrink-0 sm:flex sm:flex-col sm:items-end" }, [
492
+ X({ datetime: t }, "3h ago")
493
+ ]), ke = (t, e) => t === "online" ? be() : xe(e), ve = u(({ role: t, lastSeen: e, status: s }) => o({ class: "hidden shrink-0 sm:flex sm:flex-col sm:items-end" }, [
494
494
  m({ class: "text-sm leading-6 m-0" }, t),
495
- xe(s, e)
496
- ])), ve = (t) => t.split(" ").map((s) => s[0]).join(""), ye = u((t) => D({ class: "fadeIn flex justify-between gap-x-6 py-4 px-4 rounded-md hover:bg-muted/50" }, [
495
+ ke(s, e)
496
+ ])), ye = (t) => t.split(" ").map((s) => s[0]).join(""), De = u((t) => D({ class: "fadeIn flex justify-between gap-x-6 py-4 px-4 rounded-md hover:bg-muted/50" }, [
497
497
  o({ class: "flex min-w-0 gap-x-4" }, [
498
- ee({ src: t.image, alt: t.name, fallbackText: ve(t.name) }),
499
- me({ name: t.name, email: t.email })
498
+ te({ src: t.image, alt: t.name, fallbackText: ye(t.name) }),
499
+ we({ name: t.name, email: t.email })
500
500
  ]),
501
- ke({
501
+ ve({
502
502
  role: t.role,
503
503
  lastSeen: t.lastSeen,
504
504
  status: t.status
505
505
  })
506
- ])), et = u((t) => new _({
506
+ ])), tt = u((t) => new G({
507
507
  cache: "list",
508
508
  key: "name",
509
509
  items: t.users,
510
510
  role: "list",
511
511
  class: "divide-y divide-border",
512
- rowItem: ye
513
- })), De = (t, e) => e.includes(t), Se = (t, e, s) => t.exact ? s === e : De(e, s), Le = ({ text: t, href: e, exact: s, hidden: n }) => new M({
512
+ rowItem: De
513
+ })), Se = (t, e) => e.includes(t), Le = (t, e, s) => t.exact ? s === e : Se(e, s), Ce = ({ text: t, href: e, exact: s, hidden: n }) => new M({
514
514
  text: t,
515
515
  href: e,
516
516
  exact: s,
517
517
  dataSet: ["selected", ["state", !0, "active"]],
518
518
  class: `${n ? "hidden" : "inline-flex"} items-center justify-center whitespace-nowrap px-3 py-1.5 text-sm font-medium transition-all rounded-md focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-ring focus-visible:ring-offset-background hover:bg-primary hover:text-primary-foreground disabled:opacity-50 disabled:pointer-events-none data-[state=active]:bg-primary data-[state=active]:text-primary-foreground data-[state=active]:shadow-sm`
519
519
  });
520
- class tt extends g {
520
+ class st extends g {
521
521
  /**
522
522
  * This will declare the props for the compiler.
523
523
  *
@@ -573,7 +573,7 @@ class tt extends g {
573
573
  for (const n of this.links) {
574
574
  if (!n.rendered)
575
575
  continue;
576
- Se(n, n.getLinkPath(), e) ? (this.updateLink(n, !0), s = !0) : this.updateLink(n, !1);
576
+ Le(n, n.getLinkPath(), e) ? (this.updateLink(n, !0), s = !0) : this.updateLink(n, !1);
577
577
  }
578
578
  !s && this.links[0] && this.updateLink(this.links[0], !0);
579
579
  }
@@ -603,7 +603,7 @@ class tt extends g {
603
603
  * @returns {object}
604
604
  */
605
605
  addLink({ label: e, href: s, exact: n, hidden: a }) {
606
- const i = Le({ text: e, href: s, exact: n, hidden: a });
606
+ const i = Ce({ text: e, href: s, exact: n, hidden: a });
607
607
  return this.links.push(i), i;
608
608
  }
609
609
  /**
@@ -615,7 +615,7 @@ class tt extends g {
615
615
  this.links = [];
616
616
  }
617
617
  }
618
- const st = u((t) => {
618
+ const nt = u((t) => {
619
619
  const e = t.margin || "m-4 ml-0";
620
620
  return o({ class: `flex-none ${e}` }, [
621
621
  C({
@@ -720,7 +720,7 @@ class N extends g {
720
720
  return this.children;
721
721
  }
722
722
  }
723
- class nt extends N {
723
+ class at extends N {
724
724
  /**
725
725
  * This will stop presistence.
726
726
  *
@@ -823,7 +823,7 @@ class nt extends N {
823
823
  document.documentElement.style.overflowY = "auto";
824
824
  }
825
825
  }
826
- class at extends N {
826
+ class it extends N {
827
827
  /**
828
828
  * This will get the overlay type.
829
829
  *
@@ -842,7 +842,7 @@ class at extends N {
842
842
  this.container = e, this.initialize();
843
843
  }
844
844
  }
845
- const Ce = u(({ index: t, click: e, state: s }, n) => D({
845
+ const Be = u(({ index: t, click: e, state: s }, n) => D({
846
846
  class: "p-2 cursor-pointer hover:bg-muted/50",
847
847
  onState: [
848
848
  [s, "selectedIndex", {
@@ -851,11 +851,11 @@ const Ce = u(({ index: t, click: e, state: s }, n) => D({
851
851
  }]
852
852
  ],
853
853
  pointerdown: () => e(t)
854
- }, n)), Be = u(({ selectOption: t, state: e }) => b({
854
+ }, n)), Ie = u(({ selectOption: t, state: e }) => b({
855
855
  class: "border rounded-md list-none m-0 p-0 max-h-[400px] overflow-y-auto",
856
- for: ["filteredOptions", (s, n) => Ce({ index: n, click: t, state: e }, s.label)]
857
- })), Ie = 100, Te = u((t) => o({ class: "relative flex items-center" }, [
858
- J({
856
+ for: ["filteredOptions", (s, n) => Be({ index: n, click: t, state: e }, s.label)]
857
+ })), Te = 100, We = u((t) => o({ class: "relative flex items-center" }, [
858
+ Z({
859
859
  cache: "input",
860
860
  placeholder: t.placeholder ?? "Search...",
861
861
  bind: [t.state, "searchQuery"],
@@ -863,26 +863,26 @@ const Ce = u(({ index: t, click: e, state: s }, n) => D({
863
863
  s.state.open = !0, typeof t.filterOptions == "function" && t.filterOptions(), s.dropdown.updatePosition();
864
864
  },
865
865
  pointerup: (e, s) => s.toggleDropdown(),
866
- blur: (e, { state: s }) => setTimeout(() => s.open = !1, Ie),
866
+ blur: (e, { state: s }) => setTimeout(() => s.open = !1, Te),
867
867
  keydown: (e) => typeof t.handleKeyDown == "function" && t.handleKeyDown(e)
868
868
  }),
869
869
  t.icon && o({ class: "absolute right-0 mr-2" }, [
870
870
  z(t.icon)
871
871
  ])
872
- ])), We = (t) => o({
872
+ ])), Pe = (t) => o({
873
873
  class: "relative flex fle-auto flex-col",
874
874
  onState: ["open", (e, s, n) => {
875
875
  if (e)
876
- return new te({
876
+ return new se({
877
877
  cache: "dropdown",
878
878
  parent: n,
879
879
  button: n.input,
880
880
  size: "xl"
881
881
  }, [
882
- Be(t)
882
+ Ie(t)
883
883
  ]);
884
884
  }]
885
- }), it = R(
885
+ }), ot = R(
886
886
  {
887
887
  /**
888
888
  * This will set up the data object.
@@ -979,7 +979,7 @@ const Ce = u(({ index: t, click: e, state: s }, n) => D({
979
979
  */
980
980
  render() {
981
981
  return o({ class: "relative w-full max-w-md" }, [
982
- Te({
982
+ We({
983
983
  // @ts-ignore
984
984
  state: this.state,
985
985
  // @ts-ignore
@@ -991,7 +991,7 @@ const Ce = u(({ index: t, click: e, state: s }, n) => D({
991
991
  // @ts-ignore
992
992
  handleKeyDown: this.handleKeyDown.bind(this)
993
993
  }),
994
- We({
994
+ Pe({
995
995
  // @ts-ignore
996
996
  state: this.state,
997
997
  // @ts-ignore
@@ -1002,7 +1002,7 @@ const Ce = u(({ index: t, click: e, state: s }, n) => D({
1002
1002
  ]);
1003
1003
  }
1004
1004
  }
1005
- ), Pe = (t) => D(
1005
+ ), Oe = (t) => D(
1006
1006
  {
1007
1007
  class: "inline-flex flex-auto items-center justify-center whitespace-nowrap rounded-sm text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-primary data-[state=active]:text-primary-foreground data-[state=active]:shadow-sm",
1008
1008
  dataSet: ["selected", ["state", t.value, "active"]]
@@ -1014,10 +1014,10 @@ const Ce = u(({ index: t, click: e, state: s }, n) => D({
1014
1014
  click: (e) => t.callBack(t.value)
1015
1015
  }, t.label)
1016
1016
  ]
1017
- ), Oe = (t, e) => (t.callBack = e, Pe(t)), Re = (t) => S({ class: `tab items-center justify-center rounded-md bg-muted p-1 text-muted-foreground ${t.class}` }, [
1018
- b({ class: "flex flex-auto flex-row", map: [t.options, (e) => Oe(e, t.callBack)] })
1017
+ ), Re = (t, e) => (t.callBack = e, Oe(t)), Me = (t) => S({ class: `tab items-center justify-center rounded-md bg-muted p-1 text-muted-foreground ${t.class}` }, [
1018
+ b({ class: "flex flex-auto flex-row", map: [t.options, (e) => Re(e, t.callBack)] })
1019
1019
  ]);
1020
- class ot extends g {
1020
+ class lt extends g {
1021
1021
  /**
1022
1022
  * This will declare the props for the compiler.
1023
1023
  *
@@ -1034,7 +1034,7 @@ class ot extends g {
1034
1034
  render() {
1035
1035
  const e = this.select.bind(this);
1036
1036
  return o({ class: "" }, [
1037
- Re({
1037
+ Me({
1038
1038
  class: this.class,
1039
1039
  options: this.options,
1040
1040
  callBack: e
@@ -1105,7 +1105,7 @@ class ot extends g {
1105
1105
  };
1106
1106
  }
1107
1107
  }
1108
- const Me = (t) => D(
1108
+ const ze = (t) => D(
1109
1109
  {
1110
1110
  class: "inline-flex flex-auto items-center justify-center whitespace-nowrap rounded-sm text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-primary data-[state=active]:text-primary-foreground data-[state=active]:shadow-sm",
1111
1111
  dataSet: ["selected", ["state", t.value, "active"]]
@@ -1118,10 +1118,10 @@ const Me = (t) => D(
1118
1118
  disabled: t.disabled
1119
1119
  }, t.label)
1120
1120
  ]
1121
- ), ze = (t, e) => (t.callBack = e, Me(t)), Ne = (t) => S({ class: `tab items-center justify-center rounded-md bg-muted p-1 text-muted-foreground ${t.class}` }, [
1122
- b({ class: "flex flex-auto flex-row", map: [t.options, (e) => ze(e, t.callBack)] })
1121
+ ), Ne = (t, e) => (t.callBack = e, ze(t)), $e = (t) => S({ class: `tab items-center justify-center rounded-md bg-muted p-1 text-muted-foreground ${t.class}` }, [
1122
+ b({ class: "flex flex-auto flex-row", map: [t.options, (e) => Ne(e, t.callBack)] })
1123
1123
  ]);
1124
- class lt extends g {
1124
+ class rt extends g {
1125
1125
  /**
1126
1126
  * This will declare the props for the compiler.
1127
1127
  *
@@ -1137,7 +1137,7 @@ class lt extends g {
1137
1137
  */
1138
1138
  render() {
1139
1139
  const e = this.select.bind(this);
1140
- return Ne({
1140
+ return $e({
1141
1141
  class: this.class,
1142
1142
  options: this.options,
1143
1143
  callBack: e
@@ -1164,17 +1164,17 @@ class lt extends g {
1164
1164
  };
1165
1165
  }
1166
1166
  }
1167
- const $e = (t, e) => new RegExp(`${t}($|/|\\.).*`).test(e), Ae = (t, e) => {
1167
+ const Ae = (t, e) => new RegExp(`${t}($|/|\\.).*`).test(e), je = (t, e) => {
1168
1168
  const s = t.getLinkPath();
1169
- return t.exact ? e === s : $e(s, e);
1170
- }, je = ({ text: t, href: e, exact: s }) => new M({
1169
+ return t.exact ? e === s : Ae(s, e);
1170
+ }, Ue = ({ text: t, href: e, exact: s }) => new M({
1171
1171
  text: t,
1172
1172
  href: e,
1173
1173
  exact: s,
1174
1174
  dataSet: ["selected", ["state", !0, "active"]],
1175
1175
  class: "inline-flex flex-auto items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-primary data-[state=active]:text-primary-foreground data-[state=active]:shadow-sm"
1176
1176
  });
1177
- class Ue extends g {
1177
+ class Ye extends g {
1178
1178
  /**
1179
1179
  * This will declare the props for the compiler.
1180
1180
  *
@@ -1225,7 +1225,7 @@ class Ue extends g {
1225
1225
  let s = !1, n = this.links[0];
1226
1226
  this.deactivateAllLinks();
1227
1227
  for (const a of this.links)
1228
- if (a.rendered !== !1 && (s = Ae(a, e), s === !0)) {
1228
+ if (a.rendered !== !1 && (s = je(a, e), s === !0)) {
1229
1229
  this.updateLink(a, !0);
1230
1230
  break;
1231
1231
  }
@@ -1257,7 +1257,7 @@ class Ue extends g {
1257
1257
  * @returns {object}
1258
1258
  */
1259
1259
  addLink({ label: e, href: s, exact: n }) {
1260
- const a = je({ text: e, href: s, exact: n });
1260
+ const a = Ue({ text: e, href: s, exact: n });
1261
1261
  return this.links.push(a), a;
1262
1262
  }
1263
1263
  /**
@@ -1269,7 +1269,7 @@ class Ue extends g {
1269
1269
  this.links = [];
1270
1270
  }
1271
1271
  }
1272
- class rt extends g {
1272
+ class ct extends g {
1273
1273
  /**
1274
1274
  * This will declare the props for the compiler.
1275
1275
  *
@@ -1285,7 +1285,7 @@ class rt extends g {
1285
1285
  */
1286
1286
  render() {
1287
1287
  return o({ class: "tab-panel" }, [
1288
- new Ue({
1288
+ new Ye({
1289
1289
  class: this.class,
1290
1290
  options: this.options
1291
1291
  }),
@@ -1315,7 +1315,7 @@ class rt extends g {
1315
1315
  return s;
1316
1316
  }
1317
1317
  }
1318
- class Ye extends g {
1318
+ class Ee extends g {
1319
1319
  /**
1320
1320
  * Runs before rendering, sets up defaults, a timer for drawing,
1321
1321
  * and basic canvas properties.
@@ -1325,7 +1325,7 @@ class Ye extends g {
1325
1325
  onCreated() {
1326
1326
  this.lineWidth = this.lineWidth || 3, this.lineColor = this.lineColor || "#000000", this.canvas = null, this.ctx = null, this.status = "stopped";
1327
1327
  const e = 1e3 / 60;
1328
- this.timer = new G(e, this.draw.bind(this)), this.width = 0, this.height = 0, this.signed = !1, this.mouse = { x: 0, y: 0, status: "up" }, this.margin = this.margin || { x: 40, y: 60 }, this.targetSize = this.targetSize || { width: 740, height: 345 }, this.baseLineWidth = this.baseLineWidth || 2, this.baseStrokeColor = this.baseStrokeColor || "#000000";
1328
+ this.timer = new V(e, this.draw.bind(this)), this.width = 0, this.height = 0, this.signed = !1, this.mouse = { x: 0, y: 0, status: "up" }, this.margin = this.margin || { x: 40, y: 60 }, this.targetSize = this.targetSize || { width: 740, height: 345 }, this.baseLineWidth = this.baseLineWidth || 2, this.baseStrokeColor = this.baseStrokeColor || "#000000";
1329
1329
  }
1330
1330
  /**
1331
1331
  * Renders a <canvas> element.
@@ -1333,7 +1333,7 @@ class Ye extends g {
1333
1333
  * @returns {object} Layout definition for the canvas.
1334
1334
  */
1335
1335
  render() {
1336
- return X({
1336
+ return q({
1337
1337
  style: "touch-action: none; -webkit-user-select: none; -webkit-touch-callout: none;"
1338
1338
  });
1339
1339
  }
@@ -1541,7 +1541,7 @@ class Ye extends g {
1541
1541
  this.timer.stop(), this.status = "stopped";
1542
1542
  }
1543
1543
  }
1544
- class ct extends g {
1544
+ class dt extends g {
1545
1545
  /**
1546
1546
  * Sets up default properties for the signature panel.
1547
1547
  *
@@ -1558,7 +1558,7 @@ class ct extends g {
1558
1558
  */
1559
1559
  render() {
1560
1560
  return o({ class: "signature-panel relative flex flex-auto overflow-hidden select-none" }, [
1561
- Z({
1561
+ ee({
1562
1562
  cache: "hiddenInput",
1563
1563
  required: !0,
1564
1564
  bind: this.path + ".data"
@@ -1570,7 +1570,7 @@ class ct extends g {
1570
1570
  click: this.reset.bind(this)
1571
1571
  })
1572
1572
  ]),
1573
- new Ye({
1573
+ new Ee({
1574
1574
  cache: "canvasLayer",
1575
1575
  margin: this.margin,
1576
1576
  targetSize: this.targetSize,
@@ -1620,33 +1620,33 @@ class ct extends g {
1620
1620
  }
1621
1621
  }
1622
1622
  export {
1623
- st as B,
1624
- ue as C,
1625
- pe as D,
1626
- ge as H,
1627
- at as I,
1628
- tt as N,
1623
+ nt as B,
1624
+ ge as C,
1625
+ me as D,
1626
+ fe as H,
1627
+ it as I,
1628
+ st as N,
1629
1629
  N as O,
1630
- _e as P,
1631
- it as S,
1632
- fe as T,
1633
- ye as U,
1634
- Je as W,
1635
- ie as a,
1630
+ Ge as P,
1631
+ ot as S,
1632
+ pe as T,
1633
+ De as U,
1634
+ Ze as W,
1635
+ oe as a,
1636
1636
  T as b,
1637
- ne as c,
1638
- Ge as d,
1639
- Ve as e,
1640
- le as f,
1641
- ae as g,
1642
- ce as h,
1643
- de as i,
1644
- Ze as j,
1645
- et as k,
1646
- nt as l,
1647
- ot as m,
1648
- lt as n,
1649
- Ue as o,
1650
- rt as p,
1651
- ct as q
1637
+ ae as c,
1638
+ Ve as d,
1639
+ Je as e,
1640
+ re as f,
1641
+ ie as g,
1642
+ de as h,
1643
+ he as i,
1644
+ et as j,
1645
+ tt as k,
1646
+ at as l,
1647
+ lt as m,
1648
+ rt as n,
1649
+ Ye as o,
1650
+ ct as p,
1651
+ dt as q
1652
1652
  };
@@ -1,7 +1,7 @@
1
1
  import { Span as c, Div as l, Legend as b, Fieldset as f, Input as x } from "@base-framework/atoms";
2
2
  import { Atom as s, Html as C } from "@base-framework/base";
3
3
  import { a as u } from "./veil-DSQdR6CM.js";
4
- import { f as p, e as h, g as y } from "./inputs-Beh1GdPu.js";
4
+ import { f as p, e as h, g as y } from "./inputs-C1dvFQuB.js";
5
5
  const a = {
6
6
  gray: {
7
7
  backgroundColor: "bg-gray-50",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@base-framework/ui",
3
- "version": "1.0.18",
3
+ "version": "1.0.20",
4
4
  "description": "This is a UI package that adds components and atoms that use Tailwind CSS and a theme based on Shadcn.",
5
5
  "main": "./dist/index.es.js",
6
6
  "scripts": {