@base-framework/ui 1.0.274 → 1.0.276

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -5,7 +5,7 @@ import { C as b, d as F, D as P, c as B, E as k, F as M, H as f, I as x, M as N,
5
5
  import { Icons as G } from "./icons.es.js";
6
6
  import { A as E, B as V, C as j, w as q, J, y as z, z as K, E as Q, G as _, D as X, m as Y, n as Z, O as $, K as aa, v as ea, c as sa, a as oa, b as ta, Q as ra, l as na, g as la, i as ia, h as pa, j as ma, e as ua, k as da, F as ga, d as Ca, f as ca, L as Ta, x as Da, M as Ia, o as Sa, N as ba, P as Fa, s as Pa, t as Ba, S as ka, q as Ma, r as fa, T as xa, H as Na, I as va, p as ya, u as ha } from "./empty-state-CPWpkmxa.js";
7
7
  import { A as Wa, b as Ha, C as Aa, D as Ra, a as wa, F as Ua, M as Ga, P as Oa, R as Ea, c as Va, g as ja, p as qa } from "./range-calendar-DW0cMOJy.js";
8
- import { B as za, p as Ka, C as Qa, j as _a, D as Xa, m as Ya, k as Za, H as $a, I as ae, N as ee, O as se, P as oe, S as te, n as re, o as ne, t as le, s as ie, q as pe, r as me, T as ue, l as de, U as ge, W as Ce, f as ce, h as Te, i as De, c as Ie, d as Se, b as be, e as Fe, a as Pe, g as Be } from "./signature-panel-0LEOmHrf.js";
8
+ import { B as za, p as Ka, C as Qa, j as _a, D as Xa, m as Ya, k as Za, H as $a, I as ae, N as ee, O as se, P as oe, S as te, n as re, o as ne, t as le, s as ie, q as pe, r as me, T as ue, l as de, U as ge, W as Ce, f as ce, h as Te, i as De, c as Ie, d as Se, b as be, e as Fe, a as Pe, g as Be } from "./signature-panel-DrDe4L3j.js";
9
9
  import { B as Me, I as fe, M as xe, d as Ne, e as ve, g as ye, N as he, b as Le, a as We, f as He, P as Ae, c as Re, S as we, T as Ue } from "./mobile-nav-wrapper-C7RyGC5a.js";
10
10
  import { B as Oe, a as Ee, C as Ve, F as je, b as qe, c as Je, M as ze, P as Ke, S as Qe } from "./sidebar-menu-page-BtUJdw-T.js";
11
11
  import { A as Xe, F as Ye, M as Ze, a as $e, T as as } from "./aside-template-McEj_Gxc.js";
@@ -1,4 +1,4 @@
1
- import { B as s, p as t, C as o, j as r, D as n, m as l, k as i, H as b, I as d, N as g, O as p, P as u, S as v, n as D, o as N, t as k, s as C, q as c, r as T, T as M, l as m, U as y, W as B, f as W, h, i as S, c as H, d as P, b as I, e as f, a as x, g as L } from "./signature-panel-0LEOmHrf.js";
1
+ import { B as s, p as t, C as o, j as r, D as n, m as l, k as i, H as b, I as d, N as g, O as p, P as u, S as v, n as D, o as N, t as k, s as C, q as c, r as T, T as M, l as m, U as y, W as B, f as W, h, i as S, c as H, d as P, b as I, e as f, a as x, g as L } from "./signature-panel-DrDe4L3j.js";
2
2
  import { b as F, C as U, D as G, a as R, F as j, M as q, R as w, c as z, p as A } from "./range-calendar-DW0cMOJy.js";
3
3
  import { B as J, I as K, M as Q, d as V, e as X, g as Y, N as Z, b as _, a as $, f as aa, P as ea, c as sa, S as ta, T as oa } from "./mobile-nav-wrapper-C7RyGC5a.js";
4
4
  export {
@@ -1,8 +1,8 @@
1
- import { Button as x, Div as o, On as v, Span as D, Th as O, UseParent as E, I as Q, Thead as X, Tr as z, Td as q, Table as C, P as p, Li as S, Time as K, Nav as I, Ul as w, Section as $, Canvas as _ } from "@base-framework/atoms";
2
- import { Atom as d, Component as h, Data as L, DateTime as G, router as k, NavLink as N, DataTracker as A, Jot as V, base as R, Dom as M } from "@base-framework/base";
3
- import { B as T, I as J } from "./buttons-BKLL4I6r.js";
1
+ import { Button as x, Div as o, On as v, Span as D, Th as z, UseParent as X, I as q, Thead as K, Tr as $, Td as _, Table as C, P as w, Li as S, Time as G, Nav as I, Ul as p, Section as N, Canvas as V } from "@base-framework/atoms";
2
+ import { Atom as d, Component as h, Data as L, DateTime as J, router as k, NavLink as A, DataTracker as j, Jot as Z, base as M, Dom as W } from "@base-framework/base";
3
+ import { B as T, I as ee } from "./buttons-BKLL4I6r.js";
4
4
  import { Icons as y } from "./icons.es.js";
5
- import { TableBody as Z, DataTableBody as ee, ScrollableTableBody as te, List as se, IntervalTimer as ae } from "@base-framework/organisms";
5
+ import { TableBody as B, DataTableBody as te, ScrollableTableBody as U, List as se, IntervalTimer as ae } from "@base-framework/organisms";
6
6
  import { C as ie, S as ne, I as oe, H as le } from "./skeleton-CLm2c9Bc.js";
7
7
  import { A as re, P as ce } from "./range-calendar-DW0cMOJy.js";
8
8
  d((t, e) => ({
@@ -58,7 +58,7 @@ const de = (t) => {
58
58
  { length: s },
59
59
  (i, n) => new Date(t, e - 1, a - s + n + 1)
60
60
  );
61
- }, fe = (t, e, s) => Array.from({ length: s }, (a, i) => new Date(t, e + 1, i + 1)), W = (t, e) => {
61
+ }, fe = (t, e, s) => Array.from({ length: s }, (a, i) => new Date(t, e + 1, i + 1)), P = (t, e) => {
62
62
  const s = new Date(e, 0, 4), a = (s.getDay() + 6) % 7, i = new Date(s);
63
63
  i.setDate(s.getDate() - a);
64
64
  const n = new Date(i);
@@ -92,19 +92,19 @@ const de = (t) => {
92
92
  `,
93
93
  click: () => i(a, s)
94
94
  });
95
- }, pe = (t, e) => {
95
+ }, we = (t, e) => {
96
96
  const s = new Date(t, e, 1).getDay(), a = new Date(t, e + 1, 0).getDate(), i = ue(t, e, s), n = Array.from({ length: a }, (r, m) => new Date(t, e, m + 1)), l = (i.length + n.length) % 7, u = l === 0 ? 0 : 7 - l, c = fe(t, e, u), f = [...i, ...n, ...c], g = [];
97
97
  for (let r = 0; r < f.length; r += 7) {
98
- const m = f.slice(r, r + 7), b = m.find((F) => F) || new Date(t, e, 1), { weekNumber: Y, year: H } = he(b);
98
+ const m = f.slice(r, r + 7), b = m.find((Q) => Q) || new Date(t, e, 1), { weekNumber: F, year: E } = he(b);
99
99
  g.push({
100
- weekNumber: Y,
101
- year: H,
100
+ weekNumber: F,
101
+ year: E,
102
102
  days: m
103
103
  });
104
104
  }
105
105
  return g;
106
- }, we = ({ selectWeek: t }) => v("month", (e, s, { data: a }) => {
107
- const { year: i, month: n, currentDate: l } = a, u = pe(i, n);
106
+ }, pe = ({ selectWeek: t }) => v("month", (e, s, { data: a }) => {
107
+ const { year: i, month: n, currentDate: l } = a, u = we(i, n);
108
108
  return o(
109
109
  { class: "grid grid-cols-8 gap-1 text-sm px-4 py-2" },
110
110
  [
@@ -154,7 +154,7 @@ const de = (t) => {
154
154
  )
155
155
  ]
156
156
  );
157
- }), P = ({ label: t, click: e }) => T(
157
+ }), O = ({ label: t, click: e }) => T(
158
158
  {
159
159
  class: `
160
160
  inline-flex items-center justify-center h-7 w-7 bg-transparent p-0
@@ -169,11 +169,11 @@ const de = (t) => {
169
169
  }
170
170
  ), be = ({ next: t, previous: e }) => o({ class: "flex flex-auto min-h-12 text-sm font-medium relative justify-center items-center" }, [
171
171
  D("[[monthName]] [[year]]"),
172
- P({
172
+ O({
173
173
  label: "Previous",
174
174
  click: e
175
175
  }),
176
- P({
176
+ O({
177
177
  label: "Next",
178
178
  click: t
179
179
  })
@@ -193,7 +193,7 @@ class ct extends h {
193
193
  * @returns {Data}
194
194
  */
195
195
  setData() {
196
- const e = /* @__PURE__ */ new Date(), s = this.selectedWeek || this.calculateCurrentWeek(e), a = W(s, e.getFullYear());
196
+ const e = /* @__PURE__ */ new Date(), s = this.selectedWeek || this.calculateCurrentWeek(e), a = P(s, e.getFullYear());
197
197
  return new L({
198
198
  monthName: this.getMonthName(a.getMonth()),
199
199
  year: a.getFullYear(),
@@ -231,7 +231,7 @@ class ct extends h {
231
231
  * @returns {string}
232
232
  */
233
233
  getMonthName(e) {
234
- return G.monthNames[e];
234
+ return J.monthNames[e];
235
235
  }
236
236
  /**
237
237
  * Updates the calendar to show the previous month.
@@ -276,7 +276,7 @@ class ct extends h {
276
276
  */
277
277
  selectWeek(e, s) {
278
278
  this.data.currentWeek = e;
279
- const a = W(e, s);
279
+ const a = P(e, s);
280
280
  this.setDate(a.getMonth(), a.getFullYear(), a.getDate()), typeof this.selectedCallBack == "function" && this.selectedCallBack(e);
281
281
  }
282
282
  /**
@@ -290,7 +290,7 @@ class ct extends h {
290
290
  next: () => this.goToNextMonth(),
291
291
  previous: () => this.goToPreviousMonth()
292
292
  }),
293
- we({
293
+ pe({
294
294
  selectWeek: (e, s) => this.selectWeek(e, s)
295
295
  })
296
296
  ]);
@@ -299,21 +299,21 @@ class ct extends h {
299
299
  const ke = (t, e) => {
300
300
  const s = t.toggleAllSelectedRows();
301
301
  e.state.checked = !s;
302
- }, ye = (t) => O({ class: `cursor-pointer py-3 px-4 text-base w-10 ${t.class || ""}` }, [
303
- E((e) => new ie({ class: "mr-2", onChange: (s, a) => ke(e, a) }))
302
+ }, ye = (t) => z({ class: `cursor-pointer py-3 px-4 text-base w-10 ${t.class || ""}` }, [
303
+ X((e) => new ie({ class: "mr-2", onChange: (s, a) => ke(e, a) }))
304
304
  ]), xe = ({ align: t, sortable: e, key: s, label: a, sort: i, class: n }) => {
305
305
  const l = t || "justify-start";
306
- return O({
306
+ return z({
307
307
  class: `cursor-pointer py-3 px-4 text-base ${n || ""}`,
308
308
  click: e && (() => i(s))
309
309
  }, [
310
310
  o({ class: `flex flex-auto w-full items-center ${l}` }, [
311
311
  D(a),
312
- e && Q({ class: "ml-2", html: y.arrows.upDown })
312
+ e && q({ class: "ml-2", html: y.arrows.upDown })
313
313
  ])
314
314
  ]);
315
- }, B = (t) => X([
316
- z({
315
+ }, R = (t) => K([
316
+ $({
317
317
  class: "text-muted-foreground border-b",
318
318
  map: [
319
319
  t.headers,
@@ -326,7 +326,7 @@ const ke = (t, e) => {
326
326
  })
327
327
  ]
328
328
  })
329
- ]), ve = ({ key: t, rows: e, selectRow: s, rowItem: a, emptyState: i }) => new Z({
329
+ ]), ve = ({ key: t, rows: e, selectRow: s, rowItem: a, emptyState: i }) => new B({
330
330
  cache: "list",
331
331
  key: t,
332
332
  items: e,
@@ -338,17 +338,16 @@ const ke = (t, e) => {
338
338
  if (e && typeof e == "function")
339
339
  return e(i);
340
340
  const n = ["w-3/4", "w-1/2", "w-full", "w-2/3", "w-5/6"], l = n[i % n.length];
341
- return q({ class: "px-6 py-4" }, [
341
+ return _({ class: "px-6 py-4" }, [
342
342
  ne({ width: l, height: "h-4" })
343
343
  ]);
344
344
  };
345
- return z({
345
+ return $({
346
346
  class: "border-b",
347
- key: s,
348
- children: Array.from({ length: t }, (i, n) => a(n))
349
- });
347
+ key: s
348
+ }, Array.from({ length: t }, (i, n) => a(n)));
350
349
  };
351
- class j extends h {
350
+ class Y extends h {
352
351
  /**
353
352
  * Initializes component data.
354
353
  *
@@ -406,7 +405,7 @@ class j extends h {
406
405
  * @returns {void}
407
406
  */
408
407
  removeSkeleton() {
409
- if (this.data.get("showSkeleton")) {
408
+ if (this.data.showSkeleton) {
410
409
  this.data.showSkeleton = !1;
411
410
  const e = this.rows && this.rows.length > 0;
412
411
  this.data.hasItems = e;
@@ -448,19 +447,27 @@ class j extends h {
448
447
  * @returns {object}
449
448
  */
450
449
  render() {
451
- const e = this.data.get("showSkeleton") ? this.generateSkeletonRows() : this.rows, s = this.border !== !1 ? "border" : "";
450
+ const e = this.data.get("showSkeleton"), s = e ? this.generateSkeletonRows() : this.rows, a = this.border !== !1 ? "border" : "";
452
451
  return o({ class: "w-full flex flex-auto flex-col" }, [
453
- v("hasItems", (a) => a === !1 && this.emptyState ? this.emptyState() : null),
454
- o({ class: `w-full rounded-md ${s} overflow-x-auto`, onSet: ["hasItems", { hidden: !1 }] }, [
452
+ v("hasItems", (i) => i === !1 && this.emptyState ? this.emptyState() : null),
453
+ o({ class: `w-full rounded-md ${a} overflow-x-auto`, onSet: ["hasItems", { hidden: !1 }] }, [
455
454
  C({ class: "w-full" }, [
456
455
  // @ts-ignore
457
- this.headers && B({ headers: this.headers, sort: (a) => this.sortRows(a) }),
456
+ this.headers && R({ headers: this.headers, sort: (i) => this.sortRows(i) }),
458
457
  // @ts-ignore
459
458
  this.customHeader ?? null,
460
- ve({
459
+ e ? new B({
460
+ cache: "list",
461
+ // @ts-ignore
462
+ key: this.key,
463
+ items: s,
464
+ rowItem: (i) => i,
465
+ // Skeleton rows are already complete components
466
+ class: "divide-y divide-border"
467
+ }) : ve({
461
468
  // @ts-ignore
462
469
  key: this.key,
463
- rows: e,
470
+ rows: s,
464
471
  // @ts-ignore
465
472
  selectRow: this.selectRow.bind(this),
466
473
  // @ts-ignore
@@ -532,7 +539,7 @@ class j extends h {
532
539
  this.data.selectedRows = [];
533
540
  }
534
541
  }
535
- const Se = (t) => new ee({
542
+ const Se = (t) => new te({
536
543
  cache: "list",
537
544
  loadMoreItems: t.loadMoreItems,
538
545
  offset: t.offset,
@@ -543,23 +550,31 @@ const Se = (t) => new ee({
543
550
  rowItem: (e) => t.rowItem(e, t.selectRow),
544
551
  class: "divide-y divide-border"
545
552
  });
546
- class Ie extends j {
553
+ class Ie extends Y {
547
554
  /**
548
555
  * Renders the DataTable component.
549
556
  *
550
557
  * @returns {object}
551
558
  */
552
559
  render() {
553
- const e = this.data.showSkeleton ? this.generateSkeletonRows() : this.rows, s = this.border !== !1 ? "border" : "";
560
+ const e = this.data.showSkeleton, s = e ? this.generateSkeletonRows() : this.rows, a = this.border !== !1 ? "border" : "";
554
561
  return o({ class: "w-full flex flex-auto flex-col" }, [
555
- v("hasItems", (a) => a === !1 && this.emptyState ? this.emptyState() : null),
556
- o({ class: `w-full rounded-md ${s} overflow-x-auto`, onSet: ["hasItems", { hidden: !1 }] }, [
562
+ v("hasItems", (i) => i === !1 && this.emptyState ? this.emptyState() : null),
563
+ o({ class: `w-full rounded-md ${a} overflow-x-auto`, onSet: ["hasItems", { hidden: !1 }] }, [
557
564
  C({ class: "w-full" }, [
558
565
  // @ts-ignore
559
- this.headers && B({ headers: this.headers, sort: (a) => this.sortRows(a) }),
566
+ this.headers && R({ headers: this.headers, sort: (i) => this.sortRows(i) }),
560
567
  // @ts-ignore
561
568
  this.customHeader ?? null,
562
- Se({
569
+ e ? new B({
570
+ cache: "list",
571
+ // @ts-ignore
572
+ key: this.key,
573
+ items: s,
574
+ rowItem: (i) => i,
575
+ // Skeleton rows are already complete components
576
+ class: "divide-y divide-border"
577
+ }) : Se({
563
578
  // @ts-ignore
564
579
  loadMoreItems: this.loadMoreItems,
565
580
  // @ts-ignore
@@ -572,7 +587,7 @@ class Ie extends j {
572
587
  tableData: this.tableData,
573
588
  // @ts-ignore
574
589
  key: this.key,
575
- items: e,
590
+ items: s,
576
591
  // @ts-ignore
577
592
  selectRow: this.selectRow.bind(this),
578
593
  // @ts-ignore
@@ -608,7 +623,7 @@ const dt = d((t) => new Ie(
608
623
  emptyState: t.emptyState,
609
624
  skeleton: t.skeleton
610
625
  }
611
- )), Ce = (t) => new te({
626
+ )), Ce = (t) => new U({
612
627
  cache: "list",
613
628
  scrollContainer: t.scrollContainer,
614
629
  loadMoreItems: t.loadMoreItems,
@@ -620,23 +635,31 @@ const dt = d((t) => new Ie(
620
635
  rowItem: (e) => t.rowItem(e, t.selectRow),
621
636
  class: "divide-y divide-border"
622
637
  });
623
- class Le extends j {
638
+ class Le extends Y {
624
639
  /**
625
640
  * Renders the DataTable component.
626
641
  *
627
642
  * @returns {object}
628
643
  */
629
644
  render() {
630
- const e = this.data.get("showSkeleton") ? this.generateSkeletonRows() : this.rows, s = this.border !== !1 ? "border" : "";
645
+ const e = this.data.get("showSkeleton"), s = e ? this.generateSkeletonRows() : this.rows, a = this.border !== !1 ? "border" : "";
631
646
  return o({ class: "w-full flex flex-auto flex-col" }, [
632
- v("hasItems", (a) => a === !1 && this.emptyState ? this.emptyState() : null),
633
- o({ class: `w-full rounded-md ${s} overflow-x-auto`, onSet: ["hasItems", { hidden: !1 }] }, [
647
+ v("hasItems", (i) => i === !1 && this.emptyState ? this.emptyState() : null),
648
+ o({ class: `w-full rounded-md ${a} overflow-x-auto`, onSet: ["hasItems", { hidden: !1 }] }, [
634
649
  C({ class: "w-full" }, [
635
650
  // @ts-ignore
636
- this.headers && B({ headers: this.headers, sort: (a) => this.sortRows(a) }),
651
+ this.headers && R({ headers: this.headers, sort: (i) => this.sortRows(i) }),
637
652
  // @ts-ignore
638
653
  this.customHeader ?? null,
639
- Ce({
654
+ e ? new U({
655
+ cache: "list",
656
+ // @ts-ignore
657
+ key: this.key,
658
+ items: s,
659
+ rowItem: (i) => i,
660
+ // Skeleton rows are already complete components
661
+ class: "divide-y divide-border"
662
+ }) : Ce({
640
663
  // @ts-ignore
641
664
  scrollContainer: this.scrollContainer,
642
665
  // @ts-ignore
@@ -651,7 +674,7 @@ class Le extends j {
651
674
  tableData: this.tableData,
652
675
  // @ts-ignore
653
676
  key: this.key,
654
- items: e,
677
+ items: s,
655
678
  // @ts-ignore
656
679
  selectRow: this.selectRow.bind(this),
657
680
  // @ts-ignore
@@ -689,18 +712,18 @@ const ht = d((t) => new Le(
689
712
  skeleton: t.skeleton
690
713
  }
691
714
  )), Te = d(({ name: t, email: e }) => o({ class: "min-w-0 flex-auto" }, [
692
- p({ class: "text-base font-semibold leading-6 m-0" }, t),
693
- p({ class: "truncate text-sm leading-5 text-muted-foreground m-0" }, e)
715
+ w({ class: "text-base font-semibold leading-6 m-0" }, t),
716
+ w({ class: "truncate text-sm leading-5 text-muted-foreground m-0" }, e)
694
717
  ])), Be = () => o({ class: "flex items-center gap-x-1.5" }, [
695
718
  o({ class: "flex-none rounded-full bg-emerald-500/20 p-1" }, [
696
719
  o({ class: "h-1.5 w-1.5 rounded-full bg-emerald-500" })
697
720
  ]),
698
- p({ class: "text-xs leading-5 text-gray-500" }, "Online")
699
- ]), Re = (t) => p({ class: "text-xs leading-5 text-muted-foreground" }, [
721
+ w({ class: "text-xs leading-5 text-gray-500" }, "Online")
722
+ ]), Re = (t) => w({ class: "text-xs leading-5 text-muted-foreground" }, [
700
723
  D("Last seen "),
701
- K({ datetime: t }, "3h ago")
724
+ G({ datetime: t }, "3h ago")
702
725
  ]), Me = (t, e) => t === "online" ? Be() : Re(e), We = d(({ role: t, lastSeen: e, status: s }) => o({ class: "hidden shrink-0 sm:flex sm:flex-col sm:items-end" }, [
703
- p({ class: "text-sm leading-6 m-0" }, t),
726
+ w({ class: "text-sm leading-6 m-0" }, t),
704
727
  Me(s, e)
705
728
  ])), Pe = (t) => t.split(" ").map((s) => s[0]).join(""), Oe = d((t) => S({ class: "fadeIn flex justify-between gap-x-6 py-4 px-4 rounded-md hover:bg-muted/50" }, [
706
729
  o({ class: "flex min-w-0 gap-x-4" }, [
@@ -719,7 +742,7 @@ const ht = d((t) => new Le(
719
742
  role: "list",
720
743
  class: "divide-y divide-border",
721
744
  rowItem: Oe
722
- })), ze = (t, e) => e.includes(t), $e = (t, e, s) => t.exact ? s === e : ze(e, s), Ne = ({ text: t, href: e, exact: s, hidden: a }) => new N({
745
+ })), ze = (t, e) => e.includes(t), $e = (t, e, s) => t.exact ? s === e : ze(e, s), Ne = ({ text: t, href: e, exact: s, hidden: a }) => new A({
723
746
  text: t,
724
747
  href: e,
725
748
  exact: s,
@@ -750,7 +773,7 @@ class ft extends h {
750
773
  return I(
751
774
  { class: `flex items-center justify-center p-2 text-muted-foreground rounded-md ${this.class || ""}` },
752
775
  [
753
- w({
776
+ p({
754
777
  class: "flex space-x-4",
755
778
  map: [this.options, (e) => this.addLink(e)],
756
779
  watch: {
@@ -830,7 +853,7 @@ const gt = d((t) => {
830
853
  T({ variant: "back", class: "ghost", ...t })
831
854
  ]);
832
855
  });
833
- class U extends h {
856
+ class H extends h {
834
857
  /**
835
858
  * This will declare the props for the compiler.
836
859
  *
@@ -917,13 +940,13 @@ class U extends h {
917
940
  return this.children;
918
941
  }
919
942
  }
920
- A.addType("dockableOverlay", (t) => {
943
+ j.addType("dockableOverlay", (t) => {
921
944
  if (!t)
922
945
  return;
923
946
  const e = t.component;
924
947
  e && e.rendered === !0 && e.state.docked === !1 && e.destroy();
925
948
  });
926
- class mt extends U {
949
+ class mt extends H {
927
950
  /**
928
951
  * This will stop presistence.
929
952
  *
@@ -989,7 +1012,7 @@ class mt extends U {
989
1012
  * @returns {void}
990
1013
  */
991
1014
  afterSetup() {
992
- A.add(
1015
+ j.add(
993
1016
  this.container,
994
1017
  "dockableOverlay",
995
1018
  {
@@ -1032,7 +1055,7 @@ class mt extends U {
1032
1055
  document.documentElement.style.overflowY = "auto";
1033
1056
  }
1034
1057
  }
1035
- class pt extends U {
1058
+ class wt extends H {
1036
1059
  /**
1037
1060
  * This will get the overlay type.
1038
1061
  *
@@ -1060,7 +1083,7 @@ const Ae = d(({ index: t, click: e, state: s }, a) => S({
1060
1083
  }]
1061
1084
  ],
1062
1085
  click: () => e(t)
1063
- }, a)), je = d(({ selectOption: t, state: e }) => w({
1086
+ }, a)), je = d(({ selectOption: t, state: e }) => p({
1064
1087
  class: "border rounded-md list-none m-0 p-0 max-h-[400px] overflow-y-auto",
1065
1088
  for: ["filteredOptions", (s, a) => Ae({ index: a, click: t, state: e }, s.label)]
1066
1089
  })), Ue = d((t) => o({ class: "relative flex items-center" }, [
@@ -1080,7 +1103,7 @@ const Ae = d(({ index: t, click: e, state: s }, a) => S({
1080
1103
  ]
1081
1104
  }),
1082
1105
  t.icon && o({ class: "absolute flex right-0 mr-2" }, [
1083
- J(t.icon)
1106
+ ee(t.icon)
1084
1107
  ])
1085
1108
  ])), Ye = (t) => o({
1086
1109
  class: "relative flex fle-auto flex-col",
@@ -1095,7 +1118,7 @@ const Ae = d(({ index: t, click: e, state: s }, a) => S({
1095
1118
  je(t)
1096
1119
  ]);
1097
1120
  }]
1098
- }), wt = V(
1121
+ }), pt = Z(
1099
1122
  {
1100
1123
  /**
1101
1124
  * This will set up the data object.
@@ -1228,7 +1251,7 @@ const Ae = d(({ index: t, click: e, state: s }, a) => S({
1228
1251
  }, t.label)
1229
1252
  ]
1230
1253
  ), Fe = (t, e) => (t.callBack = e, He(t)), Ee = (t) => I({ class: `tab items-center justify-center rounded-md bg-muted p-1 text-muted-foreground ${t.class}` }, [
1231
- w({ class: "flex flex-auto flex-row", map: [t.options, (e) => Fe(e, t.callBack)] })
1254
+ p({ class: "flex flex-auto flex-row", map: [t.options, (e) => Fe(e, t.callBack)] })
1232
1255
  ]);
1233
1256
  class bt extends h {
1234
1257
  /**
@@ -1252,7 +1275,7 @@ class bt extends h {
1252
1275
  options: this.options,
1253
1276
  callBack: e
1254
1277
  }),
1255
- $({
1278
+ N({
1256
1279
  class: "tab-content",
1257
1280
  onState: ["selected", this.updateContent.bind(this)]
1258
1281
  })
@@ -1332,7 +1355,7 @@ const Qe = (t) => S(
1332
1355
  }, t.label)
1333
1356
  ]
1334
1357
  ), Xe = (t, e) => (t.callBack = e, Qe(t)), qe = (t) => I({ class: `tab items-center justify-center rounded-md bg-muted p-1 text-muted-foreground ${t.class}` }, [
1335
- w({ class: "flex flex-auto flex-row", map: [t.options, (e) => Xe(e, t.callBack)] })
1358
+ p({ class: "flex flex-auto flex-row", map: [t.options, (e) => Xe(e, t.callBack)] })
1336
1359
  ]);
1337
1360
  class kt extends h {
1338
1361
  /**
@@ -1380,7 +1403,7 @@ class kt extends h {
1380
1403
  const Ke = (t, e) => new RegExp(`${t}($|/|\\.).*`).test(e), _e = (t, e) => {
1381
1404
  const s = t.getLinkPath();
1382
1405
  return t.exact ? e === s : Ke(s, e);
1383
- }, Ge = ({ text: t, href: e, exact: s }) => new N({
1406
+ }, Ge = ({ text: t, href: e, exact: s }) => new A({
1384
1407
  text: t,
1385
1408
  href: e,
1386
1409
  exact: s,
@@ -1409,7 +1432,7 @@ class Ve extends h {
1409
1432
  */
1410
1433
  render() {
1411
1434
  return I({ class: `tab items-center justify-center rounded-md bg-muted p-1 text-muted-foreground ${this.class}` }, [
1412
- w({
1435
+ p({
1413
1436
  class: "flex flex-auto flex-row",
1414
1437
  map: [this.options, (e) => this.addLink(e)],
1415
1438
  watch: {
@@ -1502,7 +1525,7 @@ class yt extends h {
1502
1525
  class: this.class,
1503
1526
  options: this.options
1504
1527
  }),
1505
- $({
1528
+ N({
1506
1529
  class: "tab-content",
1507
1530
  switch: this.addGroup()
1508
1531
  })
@@ -1546,7 +1569,7 @@ class Je extends h {
1546
1569
  * @returns {object} Layout definition for the canvas.
1547
1570
  */
1548
1571
  render() {
1549
- return _({
1572
+ return V({
1550
1573
  style: "touch-action: none; -webkit-user-select: none; -webkit-touch-callout: none;"
1551
1574
  });
1552
1575
  }
@@ -1643,8 +1666,8 @@ class Je extends h {
1643
1666
  const { canvas: e, ctx: s } = this, a = e.toDataURL();
1644
1667
  if (this.scale(), this.setupBackground(s), a !== "data:,") {
1645
1668
  const i = new globalThis.Image();
1646
- R.on("load", i, function n() {
1647
- s.drawImage(i, 0, 0), R.off("load", i, n);
1669
+ M.on("load", i, function n() {
1670
+ s.drawImage(i, 0, 0), M.off("load", i, n);
1648
1671
  }), i.src = a;
1649
1672
  }
1650
1673
  this.draw();
@@ -1664,7 +1687,7 @@ class Je extends h {
1664
1687
  * @returns {void}
1665
1688
  */
1666
1689
  noScaleResize() {
1667
- const e = M.getSize(container);
1690
+ const e = W.getSize(container);
1668
1691
  this.width = canvas.width = e.width, this.height = canvas.height = e.height;
1669
1692
  }
1670
1693
  /**
@@ -1674,7 +1697,7 @@ class Je extends h {
1674
1697
  * @returns {void}
1675
1698
  */
1676
1699
  scale() {
1677
- const e = this.canvas, s = this.container, a = M.getSize(s), i = this.targetSize, n = i.width, l = i.height;
1700
+ const e = this.canvas, s = this.container, a = W.getSize(s), i = this.targetSize, n = i.width, l = i.height;
1678
1701
  let u = n + "px", c = l + "px";
1679
1702
  if (this.width = e.width = n, this.height = e.height = l, a.width !== 0 && a.height !== 0) {
1680
1703
  const f = a.width, g = a.height, r = f / n, m = g / l, b = Math.min(r, m);
@@ -1837,28 +1860,28 @@ export {
1837
1860
  ye as C,
1838
1861
  ve as D,
1839
1862
  xe as H,
1840
- pt as I,
1863
+ wt as I,
1841
1864
  ft as N,
1842
- U as O,
1865
+ H as O,
1843
1866
  ot as P,
1844
1867
  ht as S,
1845
- B as T,
1868
+ R as T,
1846
1869
  Oe as U,
1847
1870
  ct as W,
1848
1871
  fe as a,
1849
- W as b,
1872
+ P as b,
1850
1873
  he as c,
1851
1874
  lt as d,
1852
1875
  rt as e,
1853
1876
  me as f,
1854
1877
  ue as g,
1855
- we as h,
1878
+ pe as h,
1856
1879
  be as i,
1857
- j,
1880
+ Y as j,
1858
1881
  dt as k,
1859
1882
  ut as l,
1860
1883
  mt as m,
1861
- wt as n,
1884
+ pt as n,
1862
1885
  Ue as o,
1863
1886
  bt as p,
1864
1887
  kt as q,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@base-framework/ui",
3
- "version": "1.0.274",
3
+ "version": "1.0.276",
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": {