@base-framework/ui 1.0.187 → 1.0.189

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 { V as A, a as w } from "./veil-D4dRxILB.js";
5
5
  import { Icons as R } from "./icons.es.js";
6
6
  import { A as O, B as G, C as V, t as j, E as q, v as z, w as J, x as _, D as K, j as Q, k as X, H as Y, G as Z, s as $, c as aa, a as sa, b as ea, I as ta, i as oa, g as ra, e as na, h as ia, F as la, d as pa, f as ua, u as ma, M as da, l as ga, N as Ta, P as ca, p as Ca, q as Da, S as ba, n as Ia, o as Sa, T as Ba, y as Pa, z as Fa, m as Ma, r as ka } from "./empty-state-DYNdBFtp.js";
7
7
  import { A as va, b as fa, C as xa, D as ya, a as ha, F as Wa, M as Ha, P as La, c as Aa, g as wa, p as Ua } from "./calendar-DQXME-2u.js";
8
- import { B as Ea, p as Oa, C as Ga, j as Va, D as ja, m as qa, k as za, H as Ja, I as _a, N as Ka, O as Qa, P as Xa, S as Ya, n as Za, o as $a, t as as, s as ss, q as es, r as ts, T as os, l as rs, U as ns, W as is, f as ls, h as ps, i as us, c as ms, d as ds, b as gs, e as Ts, a as cs, g as Cs } from "./signature-panel-D5slzOAr.js";
8
+ import { B as Ea, p as Oa, C as Ga, j as Va, D as ja, m as qa, k as za, H as Ja, I as _a, N as Ka, O as Qa, P as Xa, S as Ya, n as Za, o as $a, t as as, s as ss, q as es, r as ts, T as os, l as rs, U as ns, W as is, f as ls, h as ps, i as us, c as ms, d as ds, b as gs, e as Ts, a as cs, g as Cs } from "./signature-panel-QCv3BDfZ.js";
9
9
  import { B as bs, I as Is, M as Ss, d as Bs, e as Ps, g as Fs, N as Ms, b as ks, a as Ns, f as vs, P as fs, c as xs, S as ys, T as hs } from "./mobile-nav-wrapper-Dj67Pb8l.js";
10
10
  import { B as Hs, a as Ls, C as As, F as ws, b as Us, c as Rs, M as Es, P as Os, S as Gs } from "./sidebar-menu-page-BVryQj2Z.js";
11
11
  import { A as js, F as qs, M as zs, a as Js, T as _s } 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 p, O as u, P as v, S as D, n as g, 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-D5slzOAr.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 p, O as u, P as v, S as D, n as g, 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-QCv3BDfZ.js";
2
2
  import { b as F, C as U, D as G, a as j, F as q, M as w, c as z, p as A } from "./calendar-DQXME-2u.js";
3
3
  import { B as J, I as K, M as Q, d as R, e as V, g as X, N as Y, b as Z, a as _, f as $, P as aa, c as ea, S as sa, T as ta } from "./mobile-nav-wrapper-Dj67Pb8l.js";
4
4
  export {
@@ -1,6 +1,6 @@
1
- import { Button as x, Div as o, On as H, Span as v, Th as P, UseParent as F, I as E, Thead as Q, Tr as X, Table as I, P as p, Li as D, Time as q, Nav as S, Ul as w, Section as O, Canvas as K } from "@base-framework/atoms";
2
- import { Atom as d, Component as h, Data as L, DateTime as G, router as y, NavLink as z, DataTracker as $, Jot as V, base as B, Dom as M } from "@base-framework/base";
3
- import { B as C, I as _ } from "./buttons-Cm9etaEG.js";
1
+ import { Button as x, Div as o, On as v, Span as D, Th as O, UseParent as F, I as E, Thead as Q, Tr as X, Table as L, P as p, Li as S, Time as q, Nav as I, Ul as w, Section as z, Canvas as K } from "@base-framework/atoms";
2
+ import { Atom as d, Component as h, Data as C, DateTime as G, router as y, NavLink as $, DataTracker as N, Jot as V, base as M, Dom as R } from "@base-framework/base";
3
+ import { B as T, I as _ } from "./buttons-Cm9etaEG.js";
4
4
  import { Icons as k } from "./icons.es.js";
5
5
  import { TableBody as J, DataTableBody as Z, ScrollableTableBody as ee, List as te, IntervalTimer as se } from "@base-framework/organisms";
6
6
  import { C as ae, I as ie, H as ne } from "./inputs-CMjx5-IX.js";
@@ -58,7 +58,7 @@ const re = (t) => {
58
58
  { length: s },
59
59
  (i, n) => new Date(t, e - 1, a - s + n + 1)
60
60
  );
61
- }, he = (t, e, s) => Array.from({ length: s }, (a, i) => new Date(t, e + 1, i + 1)), R = (t, e) => {
61
+ }, he = (t, e, s) => Array.from({ length: s }, (a, i) => new Date(t, e + 1, i + 1)), W = (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);
@@ -95,15 +95,15 @@ const re = (t) => {
95
95
  }, ge = (t, e) => {
96
96
  const s = new Date(t, e, 1).getDay(), a = new Date(t, e + 1, 0).getDate(), i = de(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 = he(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((Y) => Y) || new Date(t, e, 1), { weekNumber: A, year: U } = ce(b);
98
+ const m = f.slice(r, r + 7), b = m.find((H) => H) || new Date(t, e, 1), { weekNumber: U, year: Y } = ce(b);
99
99
  g.push({
100
- weekNumber: A,
101
- year: U,
100
+ weekNumber: U,
101
+ year: Y,
102
102
  days: m
103
103
  });
104
104
  }
105
105
  return g;
106
- }, me = ({ selectWeek: t }) => H("month", (e, s, { data: a }) => {
106
+ }, me = ({ selectWeek: t }) => v("month", (e, s, { data: a }) => {
107
107
  const { year: i, month: n, currentDate: l } = a, u = ge(i, n);
108
108
  return o(
109
109
  { class: "grid grid-cols-8 gap-1 text-sm px-4 py-2" },
@@ -115,7 +115,7 @@ const re = (t) => {
115
115
  class: "grid grid-cols-7 col-span-7 text-center text-muted-foreground items-center"
116
116
  },
117
117
  ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"].map(
118
- (c) => v({ class: "px-1 py-1", text: c })
118
+ (c) => D({ class: "px-1 py-1", text: c })
119
119
  )
120
120
  ),
121
121
  // Render each "week" row
@@ -154,7 +154,7 @@ const re = (t) => {
154
154
  )
155
155
  ]
156
156
  );
157
- }), W = ({ label: t, click: e }) => C(
157
+ }), P = ({ 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
@@ -168,12 +168,12 @@ const re = (t) => {
168
168
  icon: t === "Previous" ? k.chevron.single.left : k.chevron.single.right
169
169
  }
170
170
  ), pe = ({ next: t, previous: e }) => o({ class: "flex flex-auto min-h-12 text-sm font-medium relative justify-center items-center" }, [
171
- v("[[monthName]] [[year]]"),
172
- W({
171
+ D("[[monthName]] [[year]]"),
172
+ P({
173
173
  label: "Previous",
174
174
  click: e
175
175
  }),
176
- W({
176
+ P({
177
177
  label: "Next",
178
178
  click: t
179
179
  })
@@ -193,8 +193,8 @@ class ot extends h {
193
193
  * @returns {Data}
194
194
  */
195
195
  setData() {
196
- const e = /* @__PURE__ */ new Date(), s = this.selectedWeek || this.calculateCurrentWeek(e), a = R(s, e.getFullYear());
197
- return new L({
196
+ const e = /* @__PURE__ */ new Date(), s = this.selectedWeek || this.calculateCurrentWeek(e), a = W(s, e.getFullYear());
197
+ return new C({
198
198
  monthName: this.getMonthName(a.getMonth()),
199
199
  year: a.getFullYear(),
200
200
  month: a.getMonth(),
@@ -276,7 +276,7 @@ class ot extends h {
276
276
  */
277
277
  selectWeek(e, s) {
278
278
  this.data.currentWeek = e;
279
- const a = R(e, s);
279
+ const a = W(e, s);
280
280
  this.setDate(a.getMonth(), a.getFullYear(), a.getDate()), typeof this.selectedCallBack == "function" && this.selectedCallBack(e);
281
281
  }
282
282
  /**
@@ -299,20 +299,20 @@ class ot extends h {
299
299
  const we = (t, e) => {
300
300
  const s = t.toggleAllSelectedRows();
301
301
  e.state.checked = !s;
302
- }, be = (t) => P({ class: `cursor-pointer py-3 px-4 text-base w-10 ${t.class || ""}` }, [
302
+ }, be = (t) => O({ class: `cursor-pointer py-3 px-4 text-base w-10 ${t.class || ""}` }, [
303
303
  F((e) => new ae({ class: "mr-2", onChange: (s, a) => we(e, a) }))
304
304
  ]), ye = ({ align: t, sortable: e, key: s, label: a, sort: i, class: n }) => {
305
305
  const l = t || "justify-start";
306
- return P({
306
+ return O({
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
- v(a),
311
+ D(a),
312
312
  e && E({ class: "ml-2", html: k.arrows.upDown })
313
313
  ])
314
314
  ]);
315
- }, T = (t) => Q([
315
+ }, B = (t) => Q([
316
316
  X({
317
317
  class: "text-muted-foreground border-b",
318
318
  map: [
@@ -334,15 +334,16 @@ const we = (t, e) => {
334
334
  class: "divide-y divide-border",
335
335
  emptyState: i
336
336
  });
337
- class N extends h {
337
+ class j extends h {
338
338
  /**
339
339
  * Initializes component data.
340
340
  *
341
341
  * @returns {Data}
342
342
  */
343
343
  setData() {
344
- return new L({
344
+ return new C({
345
345
  selectedRows: [],
346
+ hasItems: null,
346
347
  selected: !1
347
348
  });
348
349
  }
@@ -402,10 +403,11 @@ class N extends h {
402
403
  render() {
403
404
  const e = this.rows, s = this.border !== !1 ? "border" : "";
404
405
  return o({ class: "w-full" }, [
405
- o({ class: `w-full rounded-md ${s} overflow-x-auto` }, [
406
- I({ class: "w-full" }, [
406
+ v("hasItems", (a) => a === !1 && this.emptyState ? this.emptyState() : null),
407
+ o({ class: `w-full rounded-md ${s} overflow-x-auto`, onSet: ["hasItems", { hidden: !1 }] }, [
408
+ L({ class: "w-full" }, [
407
409
  // @ts-ignore
408
- this.headers && T({ headers: this.headers, sort: (a) => this.sortRows(a) }),
410
+ this.headers && B({ headers: this.headers, sort: (a) => this.sortRows(a) }),
409
411
  // @ts-ignore
410
412
  this.customHeader ?? null,
411
413
  ke({
@@ -494,7 +496,7 @@ const xe = (t) => new Z({
494
496
  rowItem: (e) => t.rowItem(e, t.selectRow),
495
497
  class: "divide-y divide-border"
496
498
  });
497
- class ve extends N {
499
+ class ve extends j {
498
500
  /**
499
501
  * Renders the DataTable component.
500
502
  *
@@ -503,10 +505,11 @@ class ve extends N {
503
505
  render() {
504
506
  const e = this.rows, s = this.border !== !1 ? "border" : "";
505
507
  return o({ class: "w-full" }, [
506
- o({ class: `w-full rounded-md ${s} overflow-x-auto` }, [
507
- I({ class: "w-full" }, [
508
+ v("hasItems", (a) => a === !1 && this.emptyState ? this.emptyState() : null),
509
+ o({ class: `w-full rounded-md ${s} overflow-x-auto`, onSet: ["hasItems", { hidden: !1 }] }, [
510
+ L({ class: "w-full" }, [
508
511
  // @ts-ignore
509
- this.headers && T({ headers: this.headers, sort: (a) => this.sortRows(a) }),
512
+ this.headers && B({ headers: this.headers, sort: (a) => this.sortRows(a) }),
510
513
  // @ts-ignore
511
514
  this.customHeader ?? null,
512
515
  xe({
@@ -569,7 +572,7 @@ const lt = d((t) => new ve(
569
572
  rowItem: (e) => t.rowItem(e, t.selectRow),
570
573
  class: "divide-y divide-border"
571
574
  });
572
- class Se extends N {
575
+ class Se extends j {
573
576
  /**
574
577
  * Renders the DataTable component.
575
578
  *
@@ -578,10 +581,11 @@ class Se extends N {
578
581
  render() {
579
582
  const e = this.rows, s = this.border !== !1 ? "border" : "";
580
583
  return o({ class: "w-full" }, [
581
- o({ class: `w-full rounded-md ${s} overflow-x-auto` }, [
582
- I({ class: "w-full" }, [
584
+ v("hasItems", (a) => a === !1 && this.emptyState ? this.emptyState() : null),
585
+ o({ class: `w-full rounded-md ${s} overflow-x-auto`, onSet: ["hasItems", { hidden: !1 }] }, [
586
+ L({ class: "w-full" }, [
583
587
  // @ts-ignore
584
- this.headers && T({ headers: this.headers, sort: (a) => this.sortRows(a) }),
588
+ this.headers && B({ headers: this.headers, sort: (a) => this.sortRows(a) }),
585
589
  // @ts-ignore
586
590
  this.customHeader ?? null,
587
591
  De({
@@ -603,9 +607,7 @@ class Se extends N {
603
607
  // @ts-ignore
604
608
  selectRow: this.selectRow.bind(this),
605
609
  // @ts-ignore
606
- rowItem: this.rowItem,
607
- // @ts-ignore
608
- emptyState: this.emptyState
610
+ rowItem: this.rowItem
609
611
  })
610
612
  ])
611
613
  ])
@@ -646,12 +648,12 @@ const rt = d((t) => new Se(
646
648
  ]),
647
649
  p({ class: "text-xs leading-5 text-gray-500" }, "Online")
648
650
  ]), Ce = (t) => p({ class: "text-xs leading-5 text-muted-foreground" }, [
649
- v("Last seen "),
651
+ D("Last seen "),
650
652
  q({ datetime: t }, "3h ago")
651
653
  ]), Te = (t, e) => t === "online" ? Le() : Ce(e), Be = d(({ role: t, lastSeen: e, status: s }) => o({ class: "hidden shrink-0 sm:flex sm:flex-col sm:items-end" }, [
652
654
  p({ class: "text-sm leading-6 m-0" }, t),
653
655
  Te(s, e)
654
- ])), Me = (t) => t.split(" ").map((s) => s[0]).join(""), Re = d((t) => D({ class: "fadeIn flex justify-between gap-x-6 py-4 px-4 rounded-md hover:bg-muted/50" }, [
656
+ ])), Me = (t) => t.split(" ").map((s) => s[0]).join(""), Re = d((t) => S({ class: "fadeIn flex justify-between gap-x-6 py-4 px-4 rounded-md hover:bg-muted/50" }, [
655
657
  o({ class: "flex min-w-0 gap-x-4" }, [
656
658
  oe({ src: t.image, alt: t.name, fallbackText: Me(t.name) }),
657
659
  Ie({ name: t.name, email: t.email })
@@ -668,7 +670,7 @@ const rt = d((t) => new Se(
668
670
  role: "list",
669
671
  class: "divide-y divide-border",
670
672
  rowItem: Re
671
- })), We = (t, e) => e.includes(t), Pe = (t, e, s) => t.exact ? s === e : We(e, s), Oe = ({ text: t, href: e, exact: s, hidden: a }) => new z({
673
+ })), We = (t, e) => e.includes(t), Pe = (t, e, s) => t.exact ? s === e : We(e, s), Oe = ({ text: t, href: e, exact: s, hidden: a }) => new $({
672
674
  text: t,
673
675
  href: e,
674
676
  exact: s,
@@ -696,7 +698,7 @@ class dt extends h {
696
698
  * @returns {object}
697
699
  */
698
700
  render() {
699
- return S(
701
+ return I(
700
702
  { class: `flex items-center justify-center p-2 text-muted-foreground rounded-md ${this.class || ""}` },
701
703
  [
702
704
  w({
@@ -776,10 +778,10 @@ class dt extends h {
776
778
  const ht = d((t) => {
777
779
  const e = t.margin || "m-4 ml-0";
778
780
  return t.allowHistory = t.allowHistory === !0, o({ class: `flex-none ${e}` }, [
779
- C({ variant: "back", class: "ghost", ...t })
781
+ T({ variant: "back", class: "ghost", ...t })
780
782
  ]);
781
783
  });
782
- class j extends h {
784
+ class A extends h {
783
785
  /**
784
786
  * This will declare the props for the compiler.
785
787
  *
@@ -866,13 +868,13 @@ class j extends h {
866
868
  return this.children;
867
869
  }
868
870
  }
869
- $.addType("dockableOverlay", (t) => {
871
+ N.addType("dockableOverlay", (t) => {
870
872
  if (!t)
871
873
  return;
872
874
  const e = t.component;
873
875
  e && e.rendered === !0 && e.state.docked === !1 && e.destroy();
874
876
  });
875
- class ut extends j {
877
+ class ut extends A {
876
878
  /**
877
879
  * This will stop presistence.
878
880
  *
@@ -938,7 +940,7 @@ class ut extends j {
938
940
  * @returns {void}
939
941
  */
940
942
  afterSetup() {
941
- $.add(
943
+ N.add(
942
944
  this.container,
943
945
  "dockableOverlay",
944
946
  {
@@ -981,7 +983,7 @@ class ut extends j {
981
983
  document.documentElement.style.overflowY = "auto";
982
984
  }
983
985
  }
984
- class ft extends j {
986
+ class ft extends A {
985
987
  /**
986
988
  * This will get the overlay type.
987
989
  *
@@ -1000,7 +1002,7 @@ class ft extends j {
1000
1002
  this.container = e, this.initialize();
1001
1003
  }
1002
1004
  }
1003
- const ze = d(({ index: t, click: e, state: s }, a) => D({
1005
+ const ze = d(({ index: t, click: e, state: s }, a) => S({
1004
1006
  class: "p-2 cursor-pointer hover:bg-muted/50",
1005
1007
  onState: [
1006
1008
  [s, "selectedIndex", {
@@ -1053,7 +1055,7 @@ const ze = d(({ index: t, click: e, state: s }, a) => D({
1053
1055
  */
1054
1056
  setData() {
1055
1057
  const t = this.options || [];
1056
- return new L({
1058
+ return new C({
1057
1059
  options: t,
1058
1060
  filteredOptions: t
1059
1061
  });
@@ -1164,7 +1166,7 @@ const ze = d(({ index: t, click: e, state: s }, a) => D({
1164
1166
  ]);
1165
1167
  }
1166
1168
  }
1167
- ), Ae = (t) => D(
1169
+ ), Ae = (t) => S(
1168
1170
  {
1169
1171
  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",
1170
1172
  dataSet: ["selected", ["state", t.value, "active"]]
@@ -1176,7 +1178,7 @@ const ze = d(({ index: t, click: e, state: s }, a) => D({
1176
1178
  click: (e) => t.callBack(t.value)
1177
1179
  }, t.label)
1178
1180
  ]
1179
- ), Ue = (t, e) => (t.callBack = e, Ae(t)), Ye = (t) => S({ class: `tab items-center justify-center rounded-md bg-muted p-1 text-muted-foreground ${t.class}` }, [
1181
+ ), Ue = (t, e) => (t.callBack = e, Ae(t)), Ye = (t) => I({ class: `tab items-center justify-center rounded-md bg-muted p-1 text-muted-foreground ${t.class}` }, [
1180
1182
  w({ class: "flex flex-auto flex-row", map: [t.options, (e) => Ue(e, t.callBack)] })
1181
1183
  ]);
1182
1184
  class mt extends h {
@@ -1201,7 +1203,7 @@ class mt extends h {
1201
1203
  options: this.options,
1202
1204
  callBack: e
1203
1205
  }),
1204
- O({
1206
+ z({
1205
1207
  class: "tab-content",
1206
1208
  onState: ["selected", this.updateContent.bind(this)]
1207
1209
  })
@@ -1267,7 +1269,7 @@ class mt extends h {
1267
1269
  };
1268
1270
  }
1269
1271
  }
1270
- const He = (t) => D(
1272
+ const He = (t) => S(
1271
1273
  {
1272
1274
  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",
1273
1275
  dataSet: ["selected", ["state", t.value, "active"]]
@@ -1280,7 +1282,7 @@ const He = (t) => D(
1280
1282
  disabled: t.disabled
1281
1283
  }, t.label)
1282
1284
  ]
1283
- ), Fe = (t, e) => (t.callBack = e, He(t)), Ee = (t) => S({ class: `tab items-center justify-center rounded-md bg-muted p-1 text-muted-foreground ${t.class}` }, [
1285
+ ), 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}` }, [
1284
1286
  w({ class: "flex flex-auto flex-row", map: [t.options, (e) => Fe(e, t.callBack)] })
1285
1287
  ]);
1286
1288
  class pt extends h {
@@ -1329,7 +1331,7 @@ class pt extends h {
1329
1331
  const Qe = (t, e) => new RegExp(`${t}($|/|\\.).*`).test(e), Xe = (t, e) => {
1330
1332
  const s = t.getLinkPath();
1331
1333
  return t.exact ? e === s : Qe(s, e);
1332
- }, qe = ({ text: t, href: e, exact: s }) => new z({
1334
+ }, qe = ({ text: t, href: e, exact: s }) => new $({
1333
1335
  text: t,
1334
1336
  href: e,
1335
1337
  exact: s,
@@ -1357,7 +1359,7 @@ class Ke extends h {
1357
1359
  * @returns {object}
1358
1360
  */
1359
1361
  render() {
1360
- return S({ class: `tab items-center justify-center rounded-md bg-muted p-1 text-muted-foreground ${this.class}` }, [
1362
+ return I({ class: `tab items-center justify-center rounded-md bg-muted p-1 text-muted-foreground ${this.class}` }, [
1361
1363
  w({
1362
1364
  class: "flex flex-auto flex-row",
1363
1365
  map: [this.options, (e) => this.addLink(e)],
@@ -1451,7 +1453,7 @@ class wt extends h {
1451
1453
  class: this.class,
1452
1454
  options: this.options
1453
1455
  }),
1454
- O({
1456
+ z({
1455
1457
  class: "tab-content",
1456
1458
  switch: this.addGroup()
1457
1459
  })
@@ -1592,8 +1594,8 @@ class Ge extends h {
1592
1594
  const { canvas: e, ctx: s } = this, a = e.toDataURL();
1593
1595
  if (this.scale(), this.setupBackground(s), a !== "data:,") {
1594
1596
  const i = new globalThis.Image();
1595
- B.on("load", i, function n() {
1596
- s.drawImage(i, 0, 0), B.off("load", i, n);
1597
+ M.on("load", i, function n() {
1598
+ s.drawImage(i, 0, 0), M.off("load", i, n);
1597
1599
  }), i.src = a;
1598
1600
  }
1599
1601
  this.draw();
@@ -1613,7 +1615,7 @@ class Ge extends h {
1613
1615
  * @returns {void}
1614
1616
  */
1615
1617
  noScaleResize() {
1616
- const e = M.getSize(container);
1618
+ const e = R.getSize(container);
1617
1619
  this.width = canvas.width = e.width, this.height = canvas.height = e.height;
1618
1620
  }
1619
1621
  /**
@@ -1623,7 +1625,7 @@ class Ge extends h {
1623
1625
  * @returns {void}
1624
1626
  */
1625
1627
  scale() {
1626
- const e = this.canvas, s = this.container, a = M.getSize(s), i = this.targetSize, n = i.width, l = i.height;
1628
+ const e = this.canvas, s = this.container, a = R.getSize(s), i = this.targetSize, n = i.width, l = i.height;
1627
1629
  let u = n + "px", c = l + "px";
1628
1630
  if (this.width = e.width = n, this.height = e.height = l, a.width !== 0 && a.height !== 0) {
1629
1631
  const f = a.width, g = a.height, r = f / n, m = g / l, b = Math.min(r, m);
@@ -1726,7 +1728,7 @@ class bt extends h {
1726
1728
  bind: this.path + ".data"
1727
1729
  }),
1728
1730
  o({ class: "absolute top-2 right-2" }, [
1729
- C({
1731
+ T({
1730
1732
  variant: "icon",
1731
1733
  icon: k.circleX,
1732
1734
  click: this.reset.bind(this)
@@ -1788,14 +1790,14 @@ export {
1788
1790
  ye as H,
1789
1791
  ft as I,
1790
1792
  dt as N,
1791
- j as O,
1793
+ A as O,
1792
1794
  at as P,
1793
1795
  rt as S,
1794
- T,
1796
+ B as T,
1795
1797
  Re as U,
1796
1798
  ot as W,
1797
1799
  he as a,
1798
- R as b,
1800
+ W as b,
1799
1801
  ce as c,
1800
1802
  it as d,
1801
1803
  nt as e,
@@ -1803,7 +1805,7 @@ export {
1803
1805
  de as g,
1804
1806
  me as h,
1805
1807
  pe as i,
1806
- N as j,
1808
+ j,
1807
1809
  lt as k,
1808
1810
  ct as l,
1809
1811
  ut as m,
@@ -14,6 +14,7 @@ export function DynamicTableBody(props: object): object;
14
14
  * @property {array} [props.rows] - The initial rows.
15
15
  * @property {function} [props.rowItem] - The row item.
16
16
  * @property {string} [props.containerClass] - The class to add to the scroll container.
17
+ * @property {object|null} [props.emptyState] - The empty state to show when there are no items.
17
18
  * @returns {object}
18
19
  */
19
20
  export class DynamicTable extends DataTable {
@@ -15,6 +15,7 @@ export function ScrollableDataTableBody(props: object): object;
15
15
  * @property {array} [props.rows] - The initial rows.
16
16
  * @property {function} [props.rowItem] - The row item.
17
17
  * @property {string} [props.containerClass] - The class to add to the scroll container.
18
+ * @property {array} [props.emptyState] - The empty state to show when there are no items.
18
19
  * @returns {object}
19
20
  */
20
21
  export class ScrollableTable extends DataTable {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@base-framework/ui",
3
- "version": "1.0.187",
3
+ "version": "1.0.189",
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": {