@base-framework/ui 1.0.11 → 1.0.12

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 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-DUghPs3y.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-CuDOB5K1.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";
@@ -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-DUghPs3y.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-CuDOB5K1.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,5 +1,5 @@
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";
1
+ import { Button as v, Div as l, On as U, Span as y, Th as W, 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 P, Canvas as q } from "@base-framework/atoms";
2
+ import { Atom as u, Component as g, Data as L, DateTime as K, Jot as O, 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
5
  import { TableBody as _, List as G, IntervalTimer as V } from "@base-framework/organisms";
@@ -31,7 +31,7 @@ class _e extends g {
31
31
  * @returns {object}
32
32
  */
33
33
  render() {
34
- return o({ class: this.class || "" }, this.children);
34
+ return l({ class: this.class || "" }, this.children);
35
35
  }
36
36
  }
37
37
  const ne = (t) => {
@@ -66,9 +66,9 @@ const ne = (t) => {
66
66
  }, Ge = (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
- for (let l = 1 - s; l <= n; l++) {
70
- const d = new Date(t, e, l);
71
- i.push(l > 0 ? d : null), (i.length === 7 || l === n) && (a.push([...i]), i = []);
69
+ for (let o = 1 - s; o <= n; o++) {
70
+ const d = new Date(t, e, o);
71
+ i.push(o > 0 ? d : null), (i.length === 7 || o === n) && (a.push([...i]), i = []);
72
72
  }
73
73
  return a;
74
74
  }, Ve = (t, e) => {
@@ -93,7 +93,7 @@ const ne = (t) => {
93
93
  click: () => a(n, s)
94
94
  });
95
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 = [];
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)), o = (a.length + i.length) % 7, d = o === 0 ? 0 : 7 - o, c = oe(t, e, d), h = [...a, ...i, ...c], f = [];
97
97
  for (let r = 0; r < h.length; r += 7) {
98
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({
@@ -104,13 +104,13 @@ const ne = (t) => {
104
104
  }
105
105
  return f;
106
106
  }, de = ({ selectWeek: t }) => U("month", (e, s, { data: n }) => {
107
- const { year: a, month: i, currentDate: l } = n, d = ce(a, i);
108
- return o(
107
+ const { year: a, month: i, currentDate: o } = n, d = ce(a, i);
108
+ return l(
109
109
  { class: "grid grid-cols-8 gap-1 text-sm px-4 py-2" },
110
110
  [
111
111
  // Header row: "Week" label + day-of-week labels
112
- o({ class: "text-xs text-center col-span-1 text-muted-foreground flex items-center" }, "Week"),
113
- o(
112
+ l({ class: "text-xs text-center col-span-1 text-muted-foreground flex items-center" }, "Week"),
113
+ l(
114
114
  {
115
115
  class: "grid grid-cols-7 col-span-7 text-center text-muted-foreground items-center"
116
116
  },
@@ -120,14 +120,14 @@ const ne = (t) => {
120
120
  ),
121
121
  // Render each "week" row
122
122
  ...d.map(
123
- ({ weekNumber: c, days: h, year: f }) => o({
123
+ ({ weekNumber: c, days: h, year: f }) => l({
124
124
  class: "grid grid-cols-8 col-span-8 items-center ring-primary rounded-sm px-1",
125
125
  onSet: ["currentWeek", {
126
126
  ring: c
127
127
  }]
128
128
  }, [
129
129
  // Left column: ISO week number
130
- o({
130
+ l({
131
131
  class: "font-medium text-center col-span-1 rounded-sm cursor-pointer",
132
132
  click: () => t(c, f),
133
133
  // If you have a 'currentWeek' state, you can highlight it with 'onSet'
@@ -138,7 +138,7 @@ const ne = (t) => {
138
138
  text: c ? `W${c}` : ""
139
139
  }),
140
140
  // The 7 cells for each day in the row
141
- o(
141
+ l(
142
142
  { class: "grid grid-cols-7 col-span-7 text-center" },
143
143
  h.map(
144
144
  (r) => re({
@@ -147,7 +147,7 @@ const ne = (t) => {
147
147
  day: (r == null ? void 0 : r.getDate()) || null,
148
148
  week: h,
149
149
  weekNumber: c,
150
- currentDate: l,
150
+ currentDate: o,
151
151
  selectWeek: t
152
152
  })
153
153
  )
@@ -156,7 +156,7 @@ const ne = (t) => {
156
156
  )
157
157
  ]
158
158
  );
159
- }), W = ({ label: t, click: e }) => C(
159
+ }), R = ({ label: t, click: e }) => C(
160
160
  {
161
161
  class: `
162
162
  inline-flex items-center justify-center h-7 w-7 bg-transparent p-0
@@ -169,13 +169,13 @@ const ne = (t) => {
169
169
  variant: "icon",
170
170
  icon: t === "Previous" ? w.chevron.single.left : w.chevron.single.right
171
171
  }
172
- ), he = ({ 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 }) => l({ class: "flex flex-auto min-h-12 text-sm font-medium relative justify-center items-center" }, [
173
173
  y("[[monthName]] [[year]]"),
174
- W({
174
+ R({
175
175
  label: "Previous",
176
176
  click: e
177
177
  }),
178
- W({
178
+ R({
179
179
  label: "Next",
180
180
  click: t
181
181
  })
@@ -287,7 +287,7 @@ class Je extends g {
287
287
  * @returns {object}
288
288
  */
289
289
  render() {
290
- return o({ class: "week-calendar-container border rounded-md bg-background p-3" }, [
290
+ return l({ class: "week-calendar-container border rounded-md bg-background p-3" }, [
291
291
  he({
292
292
  next: () => this.goToNextMonth(),
293
293
  previous: () => this.goToPreviousMonth()
@@ -298,15 +298,15 @@ class Je extends g {
298
298
  ]);
299
299
  }
300
300
  }
301
- const ue = (t) => P({ class: `cursor-pointer py-3 px-4 text-base w-10 ${t.class || ""}` }, [
301
+ const ue = (t) => W({ class: `cursor-pointer py-3 px-4 text-base w-10 ${t.class || ""}` }, [
302
302
  Y((e) => new J({ class: "mr-2", onChange: () => e.toggleAllSelectedRows() }))
303
303
  ]), ge = ({ align: t, sortable: e, key: s, label: n, sort: a, class: i }) => {
304
- const l = t || "justify-start";
305
- return P({
304
+ const o = t || "justify-start";
305
+ return W({
306
306
  class: `cursor-pointer py-3 px-4 text-base ${i || ""}`,
307
307
  click: e && (() => a(s))
308
308
  }, [
309
- o({ class: `flex flex-auto w-full items-center ${l}` }, [
309
+ l({ class: `flex flex-auto w-full items-center ${o}` }, [
310
310
  y(n),
311
311
  e && E({ class: "ml-2", html: w.arrows.upDown })
312
312
  ])
@@ -328,7 +328,7 @@ const ue = (t) => P({ class: `cursor-pointer py-3 px-4 text-base w-10 ${t.class
328
328
  items: e,
329
329
  rowItem: (a) => n(a, s),
330
330
  class: "divide-y divide-border"
331
- }), Ze = R(
331
+ }), Ze = O(
332
332
  {
333
333
  /**
334
334
  * Initializes component data.
@@ -386,8 +386,8 @@ const ue = (t) => P({ class: `cursor-pointer py-3 px-4 text-base w-10 ${t.class
386
386
  selectRow(t) {
387
387
  const e = t.selected ?? !1;
388
388
  t.selected = !e;
389
- const s = this.data.get("selectedRows"), n = t.selected ? [...s, t] : s.filter((a) => a !== t);
390
- this.data.selectedRows = n, this.updateSelected();
389
+ const s = this.data.get("selectedRows"), n = t.selected ? [...s, t] : s.filter((o) => o !== t), i = this.table.getRows().map((o) => o === t ? { ...o, selected: t.selected } : o);
390
+ this.table.setRows(i), this.data.selectedRows = n, this.updateSelected();
391
391
  },
392
392
  /**
393
393
  * Renders the DataTable component.
@@ -396,8 +396,8 @@ const ue = (t) => P({ class: `cursor-pointer py-3 px-4 text-base w-10 ${t.class
396
396
  */
397
397
  render() {
398
398
  const t = this.rows, e = this.border !== !1 ? "border" : "";
399
- return o({ class: "w-full" }, [
400
- o({ class: `w-full rounded-md ${e} overflow-x-auto` }, [
399
+ return l({ class: "w-full" }, [
400
+ l({ class: `w-full rounded-md ${e} overflow-x-auto` }, [
401
401
  Q({ class: "w-full" }, [
402
402
  // @ts-ignore
403
403
  this.headers && fe({ headers: this.headers, sort: (s) => this.sortRows(s) }),
@@ -476,22 +476,22 @@ const ue = (t) => P({ class: `cursor-pointer py-3 px-4 text-base w-10 ${t.class
476
476
  this.data.selectedRows = [];
477
477
  }
478
478
  }
479
- ), me = u(({ name: t, email: e }) => o({ class: "min-w-0 flex-auto" }, [
479
+ ), me = u(({ name: t, email: e }) => l({ class: "min-w-0 flex-auto" }, [
480
480
  m({ class: "text-base font-semibold leading-6 m-0" }, t),
481
481
  m({ class: "truncate text-sm leading-5 text-muted-foreground m-0" }, e)
482
- ])), we = () => o({ class: "flex items-center gap-x-1.5" }, [
483
- o({ class: "flex-none rounded-full bg-emerald-500/20 p-1" }, [
484
- o({ class: "h-1.5 w-1.5 rounded-full bg-emerald-500" })
482
+ ])), we = () => l({ class: "flex items-center gap-x-1.5" }, [
483
+ l({ class: "flex-none rounded-full bg-emerald-500/20 p-1" }, [
484
+ l({ class: "h-1.5 w-1.5 rounded-full bg-emerald-500" })
485
485
  ]),
486
486
  m({ class: "text-xs leading-5 text-gray-500" }, "Online")
487
487
  ]), be = (t) => m({ class: "text-xs leading-5 text-muted-foreground" }, [
488
488
  y("Last seen "),
489
489
  X({ datetime: t }, "3h ago")
490
- ]), 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" }, [
490
+ ]), xe = (t, e) => t === "online" ? we() : be(e), ke = u(({ role: t, lastSeen: e, status: s }) => l({ class: "hidden shrink-0 sm:flex sm:flex-col sm:items-end" }, [
491
491
  m({ class: "text-sm leading-6 m-0" }, t),
492
492
  xe(s, e)
493
493
  ])), 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" }, [
494
- o({ class: "flex min-w-0 gap-x-4" }, [
494
+ l({ class: "flex min-w-0 gap-x-4" }, [
495
495
  te({ src: t.image, alt: t.name, fallbackText: ve(t.name) }),
496
496
  me({ name: t.name, email: t.email })
497
497
  ]),
@@ -614,7 +614,7 @@ class tt extends g {
614
614
  }
615
615
  const st = u((t) => {
616
616
  const e = t.margin || "m-4 ml-0";
617
- return o({ class: `flex-none ${e}` }, [
617
+ return l({ class: `flex-none ${e}` }, [
618
618
  C({
619
619
  variant: "icon",
620
620
  class: "back-button",
@@ -645,7 +645,7 @@ class N extends g {
645
645
  * @returns {object}
646
646
  */
647
647
  render() {
648
- return o(
648
+ return l(
649
649
  {
650
650
  class: this.getClassName(),
651
651
  onSet: ["loading", {
@@ -706,7 +706,7 @@ class N extends g {
706
706
  * @returns {object}
707
707
  */
708
708
  addBody() {
709
- return o({ class: "body fadeIn flex flex-auto flex-col" }, this.getContents());
709
+ return l({ class: "body fadeIn flex flex-auto flex-col" }, this.getContents());
710
710
  }
711
711
  /**
712
712
  * This will get the body contents.
@@ -733,7 +733,7 @@ class nt extends N {
733
733
  */
734
734
  render() {
735
735
  const e = this.container;
736
- return o(
736
+ return l(
737
737
  {
738
738
  onState: [
739
739
  ["loading", {
@@ -851,7 +851,7 @@ const Ce = u(({ index: t, click: e, state: s }, n) => D({
851
851
  }, n)), Be = u(({ selectOption: t, state: e }) => b({
852
852
  class: "border rounded-md list-none m-0 p-0 max-h-[400px] overflow-y-auto",
853
853
  for: ["filteredOptions", (s, n) => Ce({ index: n, click: t, state: e }, s.label)]
854
- })), Ie = 100, Te = u((t) => o({ class: "relative flex items-center" }, [
854
+ })), Ie = 100, Te = u((t) => l({ class: "relative flex items-center" }, [
855
855
  Z({
856
856
  cache: "input",
857
857
  placeholder: t.placeholder ?? "Search...",
@@ -863,10 +863,10 @@ const Ce = u(({ index: t, click: e, state: s }, n) => D({
863
863
  blur: (e, { state: s }) => setTimeout(() => s.open = !1, Ie),
864
864
  keydown: (e) => typeof t.handleKeyDown == "function" && t.handleKeyDown(e)
865
865
  }),
866
- t.icon && o({ class: "absolute right-0 mr-2" }, [
866
+ t.icon && l({ class: "absolute right-0 mr-2" }, [
867
867
  z(t.icon)
868
868
  ])
869
- ])), We = (t) => o({
869
+ ])), Re = (t) => l({
870
870
  class: "relative flex fle-auto flex-col",
871
871
  onState: ["open", (e, s, n) => {
872
872
  if (e)
@@ -879,7 +879,7 @@ const Ce = u(({ index: t, click: e, state: s }, n) => D({
879
879
  Be(t)
880
880
  ]);
881
881
  }]
882
- }), it = R(
882
+ }), it = O(
883
883
  {
884
884
  /**
885
885
  * This will set up the data object.
@@ -975,7 +975,7 @@ const Ce = u(({ index: t, click: e, state: s }, n) => D({
975
975
  * @returns {object} - The rendered component.
976
976
  */
977
977
  render() {
978
- return o({ class: "relative w-full max-w-md" }, [
978
+ return l({ class: "relative w-full max-w-md" }, [
979
979
  Te({
980
980
  // @ts-ignore
981
981
  state: this.state,
@@ -988,7 +988,7 @@ const Ce = u(({ index: t, click: e, state: s }, n) => D({
988
988
  // @ts-ignore
989
989
  handleKeyDown: this.handleKeyDown.bind(this)
990
990
  }),
991
- We({
991
+ Re({
992
992
  // @ts-ignore
993
993
  state: this.state,
994
994
  // @ts-ignore
@@ -999,7 +999,7 @@ const Ce = u(({ index: t, click: e, state: s }, n) => D({
999
999
  ]);
1000
1000
  }
1001
1001
  }
1002
- ), Pe = (t) => D(
1002
+ ), We = (t) => D(
1003
1003
  {
1004
1004
  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",
1005
1005
  dataSet: ["selected", ["state", t.value, "active"]]
@@ -1011,8 +1011,8 @@ const Ce = u(({ index: t, click: e, state: s }, n) => D({
1011
1011
  click: (e) => t.callBack(t.value)
1012
1012
  }, t.label)
1013
1013
  ]
1014
- ), 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}` }, [
1015
- b({ class: "flex flex-auto flex-row", map: [t.options, (e) => Oe(e, t.callBack)] })
1014
+ ), Pe = (t, e) => (t.callBack = e, We(t)), Oe = (t) => S({ class: `tab items-center justify-center rounded-md bg-muted p-1 text-muted-foreground ${t.class}` }, [
1015
+ b({ class: "flex flex-auto flex-row", map: [t.options, (e) => Pe(e, t.callBack)] })
1016
1016
  ]);
1017
1017
  class ot extends g {
1018
1018
  /**
@@ -1030,13 +1030,13 @@ class ot extends g {
1030
1030
  */
1031
1031
  render() {
1032
1032
  const e = this.select.bind(this);
1033
- return o({ class: "" }, [
1034
- Re({
1033
+ return l({ class: "" }, [
1034
+ Oe({
1035
1035
  class: this.class,
1036
1036
  options: this.options,
1037
1037
  callBack: e
1038
1038
  }),
1039
- O({
1039
+ P({
1040
1040
  class: "tab-content",
1041
1041
  onState: ["selected", this.updateContent.bind(this)]
1042
1042
  })
@@ -1281,12 +1281,12 @@ class rt extends g {
1281
1281
  * @returns {object}
1282
1282
  */
1283
1283
  render() {
1284
- return o({ class: "tab-panel" }, [
1284
+ return l({ class: "tab-panel" }, [
1285
1285
  new Ue({
1286
1286
  class: this.class,
1287
1287
  options: this.options
1288
1288
  }),
1289
- O({
1289
+ P({
1290
1290
  class: "tab-content",
1291
1291
  switch: this.addGroup()
1292
1292
  })
@@ -1360,11 +1360,11 @@ class Ye extends g {
1360
1360
  * @returns {Array} An array of [eventName, element, callback] definitions.
1361
1361
  */
1362
1362
  setupEvents() {
1363
- const e = this.panel, s = this.pointerPosition.bind(this), n = this.pointerUp.bind(this), a = this.pointerDown.bind(this), i = this.resize.bind(this), l = { passive: !1 };
1363
+ const e = this.panel, s = this.pointerPosition.bind(this), n = this.pointerUp.bind(this), a = this.pointerDown.bind(this), i = this.resize.bind(this), o = { passive: !1 };
1364
1364
  return [
1365
- ["pointermove", e, s, l],
1365
+ ["pointermove", e, s, o],
1366
1366
  ["pointerup", e, n],
1367
- ["pointerdown", e, a, l],
1367
+ ["pointerdown", e, a, o],
1368
1368
  ["pointerout", e, n],
1369
1369
  ["resize", window, i]
1370
1370
  ];
@@ -1377,13 +1377,13 @@ class Ye extends g {
1377
1377
  */
1378
1378
  getEventPosition(e) {
1379
1379
  let s, n;
1380
- const a = this.canvas, i = a.width / parseInt(a.style.width), l = a.getBoundingClientRect();
1380
+ const a = this.canvas, i = a.width / parseInt(a.style.width), o = a.getBoundingClientRect();
1381
1381
  if (e.touches && e.touches.length) {
1382
1382
  const h = e.touches[0];
1383
1383
  s = h.clientX, n = h.clientY;
1384
1384
  } else
1385
1385
  s = e.x || e.clientX, n = e.y || e.clientY;
1386
- const d = parseInt((s - l.left) * i), c = parseInt((n - l.top) * i);
1386
+ const d = parseInt((s - o.left) * i), c = parseInt((n - o.top) * i);
1387
1387
  this.mouse.x = d, this.mouse.y = c;
1388
1388
  }
1389
1389
  /**
@@ -1458,11 +1458,11 @@ class Ye extends g {
1458
1458
  * @returns {void}
1459
1459
  */
1460
1460
  scale() {
1461
- const e = this.canvas, s = this.container, n = I.getSize(s), a = this.targetSize, i = a.width, l = a.height;
1462
- let d = i + "px", c = l + "px";
1463
- if (this.width = e.width = i, this.height = e.height = l, n.width !== 0 && n.height !== 0) {
1464
- const h = n.width, f = n.height, r = h / i, p = f / l, x = Math.min(r, p);
1465
- d = i * x + "px", c = l * x + "px";
1461
+ const e = this.canvas, s = this.container, n = I.getSize(s), a = this.targetSize, i = a.width, o = a.height;
1462
+ let d = i + "px", c = o + "px";
1463
+ if (this.width = e.width = i, this.height = e.height = o, n.width !== 0 && n.height !== 0) {
1464
+ const h = n.width, f = n.height, r = h / i, p = f / o, x = Math.min(r, p);
1465
+ d = i * x + "px", c = o * x + "px";
1466
1466
  }
1467
1467
  e.style.width = d, e.style.height = c;
1468
1468
  }
@@ -1498,8 +1498,8 @@ class Ye extends g {
1498
1498
  */
1499
1499
  addLine(e, s, n, a) {
1500
1500
  this.signed || (this.signed = !0);
1501
- const i = Math.round(s), l = Math.round(n);
1502
- e.lineWidth = this.lineWidth, e.strokeStyle = a, e.lineTo(i, l), e.stroke();
1501
+ const i = Math.round(s), o = Math.round(n);
1502
+ e.lineWidth = this.lineWidth, e.strokeStyle = a, e.lineTo(i, o), e.stroke();
1503
1503
  }
1504
1504
  /**
1505
1505
  * Clears the canvas, sets signed to false, and re-initializes
@@ -1554,13 +1554,13 @@ class ct extends g {
1554
1554
  * @returns {object} The layout object for the component.
1555
1555
  */
1556
1556
  render() {
1557
- return o({ class: "signature-panel relative flex flex-auto overflow-hidden select-none" }, [
1557
+ return l({ class: "signature-panel relative flex flex-auto overflow-hidden select-none" }, [
1558
1558
  ee({
1559
1559
  cache: "hiddenInput",
1560
1560
  required: !0,
1561
1561
  bind: this.path + ".data"
1562
1562
  }),
1563
- o({ class: "absolute top-2 right-2" }, [
1563
+ l({ class: "absolute top-2 right-2" }, [
1564
1564
  C({
1565
1565
  variant: "icon",
1566
1566
  icon: w.circleX,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@base-framework/ui",
3
- "version": "1.0.11",
3
+ "version": "1.0.12",
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": {