@base-framework/ui 1.0.19 → 1.0.21

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-ISKbKEZk.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-DHDNfCGU.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-ISKbKEZk.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-DHDNfCGU.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,23 +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
- t.preventDefault();
303
- const s = e.toggleAllSelectedRows();
304
- console.log(t.target, t.target.checked, s), t.target.checked = !s;
305
- }, ue = (t) => P({ class: `cursor-pointer py-3 px-4 text-base w-10 ${t.class || ""}` }, [
306
- new V({ class: "mr-2", onChange: he })
307
- ]), 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.state.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 }) => {
308
307
  const l = t || "justify-start";
309
308
  return P({
310
309
  class: `cursor-pointer py-3 px-4 text-base ${i || ""}`,
@@ -312,13 +311,13 @@ const he = (t, e) => {
312
311
  }, [
313
312
  o({ class: `flex flex-auto w-full items-center ${l}` }, [
314
313
  y(n),
315
- e && Y({ class: "ml-2", html: w.arrows.upDown })
314
+ e && E({ class: "ml-2", html: w.arrows.upDown })
316
315
  ])
317
316
  ]);
318
- }, fe = (t) => E([
319
- F({
317
+ }, pe = (t) => F([
318
+ H({
320
319
  class: "text-muted-foreground border-b",
321
- 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({
322
321
  align: e.align,
323
322
  sortable: e.sortable,
324
323
  key: e.key,
@@ -326,13 +325,13 @@ const he = (t, e) => {
326
325
  sort: t.sort
327
326
  })]
328
327
  })
329
- ]), pe = ({ key: t, rows: e, selectRow: s, rowItem: n }) => new K({
328
+ ]), me = ({ key: t, rows: e, selectRow: s, rowItem: n }) => new _({
330
329
  cache: "table",
331
330
  key: t,
332
331
  items: e,
333
332
  rowItem: (a) => n(a, s),
334
333
  class: "divide-y divide-border"
335
- }), Ze = R(
334
+ }), et = R(
336
335
  {
337
336
  /**
338
337
  * Initializes component data.
@@ -402,12 +401,12 @@ const he = (t, e) => {
402
401
  const t = this.rows, e = this.border !== !1 ? "border" : "";
403
402
  return o({ class: "w-full" }, [
404
403
  o({ class: `w-full rounded-md ${e} overflow-x-auto` }, [
405
- H({ class: "w-full" }, [
404
+ Q({ class: "w-full" }, [
406
405
  // @ts-ignore
407
- this.headers && fe({ headers: this.headers, sort: (s) => this.sortRows(s) }),
406
+ this.headers && pe({ headers: this.headers, sort: (s) => this.sortRows(s) }),
408
407
  // @ts-ignore
409
408
  this.customHeader ?? null,
410
- pe({
409
+ me({
411
410
  // @ts-ignore
412
411
  key: this.key,
413
412
  rows: t,
@@ -480,45 +479,45 @@ const he = (t, e) => {
480
479
  this.data.selectedRows = [];
481
480
  }
482
481
  }
483
- ), 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" }, [
484
483
  m({ class: "text-base font-semibold leading-6 m-0" }, t),
485
484
  m({ class: "truncate text-sm leading-5 text-muted-foreground m-0" }, e)
486
- ])), we = () => o({ class: "flex items-center gap-x-1.5" }, [
485
+ ])), be = () => o({ class: "flex items-center gap-x-1.5" }, [
487
486
  o({ class: "flex-none rounded-full bg-emerald-500/20 p-1" }, [
488
487
  o({ class: "h-1.5 w-1.5 rounded-full bg-emerald-500" })
489
488
  ]),
490
489
  m({ class: "text-xs leading-5 text-gray-500" }, "Online")
491
- ]), be = (t) => m({ class: "text-xs leading-5 text-muted-foreground" }, [
490
+ ]), xe = (t) => m({ class: "text-xs leading-5 text-muted-foreground" }, [
492
491
  y("Last seen "),
493
- Q({ datetime: t }, "3h ago")
494
- ]), 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" }, [
495
494
  m({ class: "text-sm leading-6 m-0" }, t),
496
- xe(s, e)
497
- ])), 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" }, [
498
497
  o({ class: "flex min-w-0 gap-x-4" }, [
499
- ee({ src: t.image, alt: t.name, fallbackText: ve(t.name) }),
500
- 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 })
501
500
  ]),
502
- ke({
501
+ ve({
503
502
  role: t.role,
504
503
  lastSeen: t.lastSeen,
505
504
  status: t.status
506
505
  })
507
- ])), et = u((t) => new _({
506
+ ])), tt = u((t) => new G({
508
507
  cache: "list",
509
508
  key: "name",
510
509
  items: t.users,
511
510
  role: "list",
512
511
  class: "divide-y divide-border",
513
- rowItem: ye
514
- })), 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({
515
514
  text: t,
516
515
  href: e,
517
516
  exact: s,
518
517
  dataSet: ["selected", ["state", !0, "active"]],
519
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`
520
519
  });
521
- class tt extends g {
520
+ class st extends g {
522
521
  /**
523
522
  * This will declare the props for the compiler.
524
523
  *
@@ -574,7 +573,7 @@ class tt extends g {
574
573
  for (const n of this.links) {
575
574
  if (!n.rendered)
576
575
  continue;
577
- 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);
578
577
  }
579
578
  !s && this.links[0] && this.updateLink(this.links[0], !0);
580
579
  }
@@ -604,7 +603,7 @@ class tt extends g {
604
603
  * @returns {object}
605
604
  */
606
605
  addLink({ label: e, href: s, exact: n, hidden: a }) {
607
- const i = Le({ text: e, href: s, exact: n, hidden: a });
606
+ const i = Ce({ text: e, href: s, exact: n, hidden: a });
608
607
  return this.links.push(i), i;
609
608
  }
610
609
  /**
@@ -616,7 +615,7 @@ class tt extends g {
616
615
  this.links = [];
617
616
  }
618
617
  }
619
- const st = u((t) => {
618
+ const nt = u((t) => {
620
619
  const e = t.margin || "m-4 ml-0";
621
620
  return o({ class: `flex-none ${e}` }, [
622
621
  C({
@@ -721,7 +720,7 @@ class N extends g {
721
720
  return this.children;
722
721
  }
723
722
  }
724
- class nt extends N {
723
+ class at extends N {
725
724
  /**
726
725
  * This will stop presistence.
727
726
  *
@@ -824,7 +823,7 @@ class nt extends N {
824
823
  document.documentElement.style.overflowY = "auto";
825
824
  }
826
825
  }
827
- class at extends N {
826
+ class it extends N {
828
827
  /**
829
828
  * This will get the overlay type.
830
829
  *
@@ -843,7 +842,7 @@ class at extends N {
843
842
  this.container = e, this.initialize();
844
843
  }
845
844
  }
846
- const Ce = u(({ index: t, click: e, state: s }, n) => D({
845
+ const Be = u(({ index: t, click: e, state: s }, n) => D({
847
846
  class: "p-2 cursor-pointer hover:bg-muted/50",
848
847
  onState: [
849
848
  [s, "selectedIndex", {
@@ -852,11 +851,11 @@ const Ce = u(({ index: t, click: e, state: s }, n) => D({
852
851
  }]
853
852
  ],
854
853
  pointerdown: () => e(t)
855
- }, n)), Be = u(({ selectOption: t, state: e }) => b({
854
+ }, n)), Ie = u(({ selectOption: t, state: e }) => b({
856
855
  class: "border rounded-md list-none m-0 p-0 max-h-[400px] overflow-y-auto",
857
- for: ["filteredOptions", (s, n) => Ce({ index: n, click: t, state: e }, s.label)]
858
- })), Ie = 100, Te = u((t) => o({ class: "relative flex items-center" }, [
859
- 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({
860
859
  cache: "input",
861
860
  placeholder: t.placeholder ?? "Search...",
862
861
  bind: [t.state, "searchQuery"],
@@ -864,26 +863,26 @@ const Ce = u(({ index: t, click: e, state: s }, n) => D({
864
863
  s.state.open = !0, typeof t.filterOptions == "function" && t.filterOptions(), s.dropdown.updatePosition();
865
864
  },
866
865
  pointerup: (e, s) => s.toggleDropdown(),
867
- blur: (e, { state: s }) => setTimeout(() => s.open = !1, Ie),
866
+ blur: (e, { state: s }) => setTimeout(() => s.open = !1, Te),
868
867
  keydown: (e) => typeof t.handleKeyDown == "function" && t.handleKeyDown(e)
869
868
  }),
870
869
  t.icon && o({ class: "absolute right-0 mr-2" }, [
871
870
  z(t.icon)
872
871
  ])
873
- ])), We = (t) => o({
872
+ ])), Pe = (t) => o({
874
873
  class: "relative flex fle-auto flex-col",
875
874
  onState: ["open", (e, s, n) => {
876
875
  if (e)
877
- return new te({
876
+ return new se({
878
877
  cache: "dropdown",
879
878
  parent: n,
880
879
  button: n.input,
881
880
  size: "xl"
882
881
  }, [
883
- Be(t)
882
+ Ie(t)
884
883
  ]);
885
884
  }]
886
- }), it = R(
885
+ }), ot = R(
887
886
  {
888
887
  /**
889
888
  * This will set up the data object.
@@ -980,7 +979,7 @@ const Ce = u(({ index: t, click: e, state: s }, n) => D({
980
979
  */
981
980
  render() {
982
981
  return o({ class: "relative w-full max-w-md" }, [
983
- Te({
982
+ We({
984
983
  // @ts-ignore
985
984
  state: this.state,
986
985
  // @ts-ignore
@@ -992,7 +991,7 @@ const Ce = u(({ index: t, click: e, state: s }, n) => D({
992
991
  // @ts-ignore
993
992
  handleKeyDown: this.handleKeyDown.bind(this)
994
993
  }),
995
- We({
994
+ Pe({
996
995
  // @ts-ignore
997
996
  state: this.state,
998
997
  // @ts-ignore
@@ -1003,7 +1002,7 @@ const Ce = u(({ index: t, click: e, state: s }, n) => D({
1003
1002
  ]);
1004
1003
  }
1005
1004
  }
1006
- ), Pe = (t) => D(
1005
+ ), Oe = (t) => D(
1007
1006
  {
1008
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",
1009
1008
  dataSet: ["selected", ["state", t.value, "active"]]
@@ -1015,10 +1014,10 @@ const Ce = u(({ index: t, click: e, state: s }, n) => D({
1015
1014
  click: (e) => t.callBack(t.value)
1016
1015
  }, t.label)
1017
1016
  ]
1018
- ), 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}` }, [
1019
- 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)] })
1020
1019
  ]);
1021
- class ot extends g {
1020
+ class lt extends g {
1022
1021
  /**
1023
1022
  * This will declare the props for the compiler.
1024
1023
  *
@@ -1035,7 +1034,7 @@ class ot extends g {
1035
1034
  render() {
1036
1035
  const e = this.select.bind(this);
1037
1036
  return o({ class: "" }, [
1038
- Re({
1037
+ Me({
1039
1038
  class: this.class,
1040
1039
  options: this.options,
1041
1040
  callBack: e
@@ -1106,7 +1105,7 @@ class ot extends g {
1106
1105
  };
1107
1106
  }
1108
1107
  }
1109
- const Me = (t) => D(
1108
+ const ze = (t) => D(
1110
1109
  {
1111
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",
1112
1111
  dataSet: ["selected", ["state", t.value, "active"]]
@@ -1119,10 +1118,10 @@ const Me = (t) => D(
1119
1118
  disabled: t.disabled
1120
1119
  }, t.label)
1121
1120
  ]
1122
- ), 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}` }, [
1123
- 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)] })
1124
1123
  ]);
1125
- class lt extends g {
1124
+ class rt extends g {
1126
1125
  /**
1127
1126
  * This will declare the props for the compiler.
1128
1127
  *
@@ -1138,7 +1137,7 @@ class lt extends g {
1138
1137
  */
1139
1138
  render() {
1140
1139
  const e = this.select.bind(this);
1141
- return Ne({
1140
+ return $e({
1142
1141
  class: this.class,
1143
1142
  options: this.options,
1144
1143
  callBack: e
@@ -1165,17 +1164,17 @@ class lt extends g {
1165
1164
  };
1166
1165
  }
1167
1166
  }
1168
- 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) => {
1169
1168
  const s = t.getLinkPath();
1170
- return t.exact ? e === s : $e(s, e);
1171
- }, 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({
1172
1171
  text: t,
1173
1172
  href: e,
1174
1173
  exact: s,
1175
1174
  dataSet: ["selected", ["state", !0, "active"]],
1176
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"
1177
1176
  });
1178
- class Ue extends g {
1177
+ class Ye extends g {
1179
1178
  /**
1180
1179
  * This will declare the props for the compiler.
1181
1180
  *
@@ -1226,7 +1225,7 @@ class Ue extends g {
1226
1225
  let s = !1, n = this.links[0];
1227
1226
  this.deactivateAllLinks();
1228
1227
  for (const a of this.links)
1229
- if (a.rendered !== !1 && (s = Ae(a, e), s === !0)) {
1228
+ if (a.rendered !== !1 && (s = je(a, e), s === !0)) {
1230
1229
  this.updateLink(a, !0);
1231
1230
  break;
1232
1231
  }
@@ -1258,7 +1257,7 @@ class Ue extends g {
1258
1257
  * @returns {object}
1259
1258
  */
1260
1259
  addLink({ label: e, href: s, exact: n }) {
1261
- const a = je({ text: e, href: s, exact: n });
1260
+ const a = Ue({ text: e, href: s, exact: n });
1262
1261
  return this.links.push(a), a;
1263
1262
  }
1264
1263
  /**
@@ -1270,7 +1269,7 @@ class Ue extends g {
1270
1269
  this.links = [];
1271
1270
  }
1272
1271
  }
1273
- class rt extends g {
1272
+ class ct extends g {
1274
1273
  /**
1275
1274
  * This will declare the props for the compiler.
1276
1275
  *
@@ -1286,7 +1285,7 @@ class rt extends g {
1286
1285
  */
1287
1286
  render() {
1288
1287
  return o({ class: "tab-panel" }, [
1289
- new Ue({
1288
+ new Ye({
1290
1289
  class: this.class,
1291
1290
  options: this.options
1292
1291
  }),
@@ -1316,7 +1315,7 @@ class rt extends g {
1316
1315
  return s;
1317
1316
  }
1318
1317
  }
1319
- class Ye extends g {
1318
+ class Ee extends g {
1320
1319
  /**
1321
1320
  * Runs before rendering, sets up defaults, a timer for drawing,
1322
1321
  * and basic canvas properties.
@@ -1326,7 +1325,7 @@ class Ye extends g {
1326
1325
  onCreated() {
1327
1326
  this.lineWidth = this.lineWidth || 3, this.lineColor = this.lineColor || "#000000", this.canvas = null, this.ctx = null, this.status = "stopped";
1328
1327
  const e = 1e3 / 60;
1329
- 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";
1330
1329
  }
1331
1330
  /**
1332
1331
  * Renders a <canvas> element.
@@ -1334,7 +1333,7 @@ class Ye extends g {
1334
1333
  * @returns {object} Layout definition for the canvas.
1335
1334
  */
1336
1335
  render() {
1337
- return X({
1336
+ return q({
1338
1337
  style: "touch-action: none; -webkit-user-select: none; -webkit-touch-callout: none;"
1339
1338
  });
1340
1339
  }
@@ -1542,7 +1541,7 @@ class Ye extends g {
1542
1541
  this.timer.stop(), this.status = "stopped";
1543
1542
  }
1544
1543
  }
1545
- class ct extends g {
1544
+ class dt extends g {
1546
1545
  /**
1547
1546
  * Sets up default properties for the signature panel.
1548
1547
  *
@@ -1559,7 +1558,7 @@ class ct extends g {
1559
1558
  */
1560
1559
  render() {
1561
1560
  return o({ class: "signature-panel relative flex flex-auto overflow-hidden select-none" }, [
1562
- Z({
1561
+ ee({
1563
1562
  cache: "hiddenInput",
1564
1563
  required: !0,
1565
1564
  bind: this.path + ".data"
@@ -1571,7 +1570,7 @@ class ct extends g {
1571
1570
  click: this.reset.bind(this)
1572
1571
  })
1573
1572
  ]),
1574
- new Ye({
1573
+ new Ee({
1575
1574
  cache: "canvasLayer",
1576
1575
  margin: this.margin,
1577
1576
  targetSize: this.targetSize,
@@ -1621,33 +1620,33 @@ class ct extends g {
1621
1620
  }
1622
1621
  }
1623
1622
  export {
1624
- st as B,
1625
- ue as C,
1626
- pe as D,
1627
- ge as H,
1628
- at as I,
1629
- 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,
1630
1629
  N as O,
1631
- _e as P,
1632
- it as S,
1633
- fe as T,
1634
- ye as U,
1635
- Je as W,
1636
- 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,
1637
1636
  T as b,
1638
- ne as c,
1639
- Ge as d,
1640
- Ve as e,
1641
- le as f,
1642
- ae as g,
1643
- ce as h,
1644
- de as i,
1645
- Ze as j,
1646
- et as k,
1647
- nt as l,
1648
- ot as m,
1649
- lt as n,
1650
- Ue as o,
1651
- rt as p,
1652
- 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
1653
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.19",
3
+ "version": "1.0.21",
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": {