@base-framework/ui 1.0.50 → 1.0.53

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.
@@ -3,8 +3,8 @@ import { Component as N, Data as z, Atom as k, DateTime as j } from "@base-frame
3
3
  import { B as A } from "./buttons-CVEwmPAi.js";
4
4
  import { Icons as P } from "./icons.es.js";
5
5
  const W = (e, t) => {
6
- const n = e ? e.getBoundingClientRect() : { top: 0, bottom: 0, left: 0 }, s = t.getBoundingClientRect(), o = 10, r = window.scrollX, l = window.scrollY;
7
- let c = n.left + r, f = n.bottom + l;
6
+ const n = e ? e.getBoundingClientRect() : { top: 0, bottom: 0, left: 0 }, s = t.getBoundingClientRect(), o = 10, a = window.scrollX, l = window.scrollY;
7
+ let c = n.left + a, f = n.bottom + l;
8
8
  const h = window.innerHeight - n.bottom, d = n.top;
9
9
  return c + s.width > window.innerWidth && (c = window.innerWidth - s.width - o), h < s.height && d > h ? f = n.top + l - s.height - o : h < s.height && (f = n.bottom + l - (s.height - h) - o), { x: c, y: f };
10
10
  };
@@ -52,7 +52,7 @@ class lt extends N {
52
52
  const t = this.getSize();
53
53
  return i({
54
54
  class: `absolute inset-auto fadeIn mt-2 rounded-md p-0 shadow-lg bg-popover min-h-12 backdrop:bg-transparent text-inherit r z-30 ${t}`,
55
- popover: "auto",
55
+ popover: "manual",
56
56
  toggle: (n, { state: s }) => n.newState === "closed" ? s.open = !1 : null,
57
57
  style: "top: [[position.y]]px; left: [[position.x]]px"
58
58
  }, this.children);
@@ -173,10 +173,10 @@ const H = k(({ src: e, alt: t }) => e ? I({
173
173
  ]
174
174
  );
175
175
  }, ct = k(({ src: e, alt: t, fallbackText: n, watcherFallback: s, size: o }) => {
176
- const r = E(o);
176
+ const a = E(o);
177
177
  return i(
178
178
  {
179
- class: `relative flex items-center justify-center ${r}`
179
+ class: `relative flex items-center justify-center ${a}`
180
180
  },
181
181
  [
182
182
  H({ src: e, alt: t }),
@@ -192,7 +192,7 @@ const H = k(({ src: e, alt: t }) => e ? I({
192
192
  currentDate: n,
193
193
  date: s,
194
194
  isToday: o,
195
- isOutsideMonth: r,
195
+ isOutsideMonth: a,
196
196
  select: l,
197
197
  disabled: c
198
198
  } = e;
@@ -200,7 +200,7 @@ const H = k(({ src: e, alt: t }) => e ? I({
200
200
  {
201
201
  class: `
202
202
  flex items-center justify-center h-9 w-auto p-0 font-normal text-sm rounded-md
203
- ${V(o, n, r, s)}
203
+ ${V(o, n, a, s)}
204
204
  hover:bg-muted/50 hover:text-muted-foreground focus:z-10
205
205
  disabled:pointer-events-none disabled:opacity-50
206
206
  `,
@@ -212,9 +212,9 @@ const H = k(({ src: e, alt: t }) => e ? I({
212
212
  t.toString()
213
213
  );
214
214
  }, b = (e, t, n, s) => e === s.date && t === s.month && n === s.year, Z = (e, t, n, s = !1) => {
215
- const { year: o, month: r } = e, l = p(o, r, e.date), c = new Date(o, r, 1).getDay(), f = new Date(o, r + 1, 0).getDate(), h = new Date(o, r, 0).getDate(), d = [], D = r === 0 ? 11 : r - 1, w = r === 0 ? o - 1 : o;
216
- for (let a = c - 1; a >= 0; a--) {
217
- const u = h - a, g = b(u, D, w, t), m = new Date(w, D, u) < new Date(t.year, t.month, t.date), F = s && m;
215
+ const { year: o, month: a } = e, l = p(o, a, e.date), c = new Date(o, a, 1).getDay(), f = new Date(o, a + 1, 0).getDate(), h = new Date(o, a, 0).getDate(), d = [], D = a === 0 ? 11 : a - 1, w = a === 0 ? o - 1 : o;
216
+ for (let r = c - 1; r >= 0; r--) {
217
+ const u = h - r, g = b(u, D, w, t), m = new Date(w, D, u) < new Date(t.year, t.month, t.date), F = s && m;
218
218
  d.push(
219
219
  C({
220
220
  day: u,
@@ -227,13 +227,13 @@ const H = k(({ src: e, alt: t }) => e ? I({
227
227
  })
228
228
  );
229
229
  }
230
- for (let a = 1; a <= f; a++) {
231
- const u = b(a, r, o, t), g = new Date(o, r, a) < new Date(t.year, t.month, t.date), m = s && g;
230
+ for (let r = 1; r <= f; r++) {
231
+ const u = b(r, a, o, t), g = new Date(o, a, r) < new Date(t.year, t.month, t.date), m = s && g;
232
232
  d.push(
233
233
  C({
234
- day: a,
234
+ day: r,
235
235
  currentDate: l,
236
- date: p(o, r, a),
236
+ date: p(o, a, r),
237
237
  isToday: u,
238
238
  isOutsideMonth: !1,
239
239
  select: n,
@@ -241,14 +241,14 @@ const H = k(({ src: e, alt: t }) => e ? I({
241
241
  })
242
242
  );
243
243
  }
244
- const y = r === 11 ? 0 : r + 1, v = r === 11 ? o + 1 : o, O = (7 - d.length % 7) % 7;
245
- for (let a = 1; a <= O; a++) {
246
- const u = b(a, y, v, t), g = new Date(v, y, a) < new Date(t.year, t.month, t.date), m = s && g;
244
+ const y = a === 11 ? 0 : a + 1, v = a === 11 ? o + 1 : o, O = (7 - d.length % 7) % 7;
245
+ for (let r = 1; r <= O; r++) {
246
+ const u = b(r, y, v, t), g = new Date(v, y, r) < new Date(t.year, t.month, t.date), m = s && g;
247
247
  d.push(
248
248
  C({
249
- day: a,
249
+ day: r,
250
250
  currentDate: l,
251
- date: p(v, y, a),
251
+ date: p(v, y, r),
252
252
  isToday: u,
253
253
  isOutsideMonth: !0,
254
254
  select: n,
@@ -1,6 +1,6 @@
1
- import { Div as n, I as f, H5 as _, P as b, Li as O, Span as a, Ul as V, Button as h, OnState as v, Label as R, Form as W, H2 as B, Footer as $, Header as M, A as Y, H3 as G, Checkbox as J, Nav as K, Input as C, Time as Q, Dialog as X } from "@base-framework/atoms";
1
+ import { Div as n, H5 as _, P as b, I as f, Li as O, Span as a, Ul as V, Button as h, OnState as v, Label as R, Form as W, H2 as B, Header as $, Footer as M, A as Y, H3 as G, Checkbox as J, Nav as K, Input as C, Time as Q, Dialog as X } from "@base-framework/atoms";
2
2
  import { Atom as c, Component as p, Html as L, Dom as Z, base as ee, Data as k, Builder as q, Jot as S, DateTime as A } from "@base-framework/base";
3
- import { P as D, b as te } from "./calendar-CYExSMEO.js";
3
+ import { P as D, b as te } from "./calendar-B1Xo1swq.js";
4
4
  import { B as u, I as x } from "./buttons-CVEwmPAi.js";
5
5
  import { Icons as d } from "./icons.es.js";
6
6
  import { a as w } from "./veil-gN57SpXV.js";
@@ -232,7 +232,7 @@ const pe = c((e, t) => n({ ...e, class: "flex flex-auto flex-col space-y-2" }, t
232
232
  ])), pt = (e, t) => n({ class: "flex justify-between" }, [
233
233
  a({ class: "text-muted-foreground" }, e),
234
234
  a(t)
235
- ]), De = ({ title: e, description: t, back: s, icon: o, options: l = [] }) => M({ class: "modal-header bg-background/80 backdrop-blur-md sticky flex flex-none items-center py-4 px-6 z-10" }, [
235
+ ]), De = ({ title: e, description: t, back: s, icon: o, options: l = [] }) => $({ class: "modal-header bg-background/80 backdrop-blur-md sticky flex flex-none items-center py-4 px-6 z-10" }, [
236
236
  /**
237
237
  * Back Button
238
238
  */
@@ -261,7 +261,7 @@ const pe = c((e, t) => n({ ...e, class: "flex flex-auto flex-col space-y-2" }, t
261
261
  Se({ class: "modal-content relative bg-background z-[1] flex flex-auto flex-col space-y-4", submit: (s) => e.onSubmit && e.onSubmit() }, [
262
262
  De(e),
263
263
  n({ class: "modal-body flex flex-grow flex-col overflow-y-auto py-0 px-6 z-0" }, t),
264
- $({ class: "modal-footer sticky bg-background/80 backdrop-blur-md flex flex-none justify-between py-4 px-6 z-10" }, e.buttons)
264
+ M({ class: "modal-footer sticky bg-background/80 backdrop-blur-md flex flex-none justify-between py-4 px-6 z-10" }, e.buttons)
265
265
  ])
266
266
  ])), Te = (e) => q.render(e, app.root);
267
267
  class xt extends p {
@@ -439,7 +439,7 @@ const z = {
439
439
  borderColor: "border",
440
440
  iconColor: "text-muted-foreground"
441
441
  }
442
- }, Ae = (e) => M({ class: "flex justify-center" }, [
442
+ }, Ae = (e) => $({ class: "flex justify-center" }, [
443
443
  G({ class: "text-lg font-bold mb-0" }, e)
444
444
  ]), Be = c(({ href: e, class: t }, s) => Y({
445
445
  class: `pullRightIn bg-popover text-popover-foreground relative flex flex-auto flex-col justify-start shadow-lg pointer-events-auto p-4 border rounded-md min-w-[340px] max-w-[450px] mt-4 ${t}`,
@@ -528,7 +528,7 @@ class Me extends ae {
528
528
  this.title && Ae(this.title)
529
529
  ]),
530
530
  b({ class: "text-base text-muted-foreground m-0 pr-12" }, this.description),
531
- (this.primary || this.secondary) && $({ class: "margin-top-24 flex align-center" }, this.getButtons())
531
+ (this.primary || this.secondary) && M({ class: "margin-top-24 flex align-center" }, this.getButtons())
532
532
  ])
533
533
  ]),
534
534
  u({
@@ -1222,7 +1222,7 @@ const $t = w(
1222
1222
  }
1223
1223
  ), et = (e, t) => n({ class: `hidden md:flex items-start justify-center w-6 h-6 mr-3 ${t}` }, [
1224
1224
  x({ size: "lg" }, e)
1225
- ]), tt = ({ title: e }) => M({ class: "flex flex-auto items-center" }, [
1225
+ ]), tt = ({ title: e }) => $({ class: "flex flex-auto items-center" }, [
1226
1226
  B({ class: "text-lg font-semibold" }, e)
1227
1227
  ]), st = c((e, t) => X(
1228
1228
  {
@@ -1242,7 +1242,7 @@ const $t = w(
1242
1242
  e.description && b({ class: "flex flex-auto flex-col text-sm text-muted-foreground" }, e.description),
1243
1243
  n({ class: "flex flex-auto flex-col text-sm text-muted-foreground" }, t)
1244
1244
  ]),
1245
- e.buttons && $({ class: "flex flex-col-reverse sm:flex-row sm:justify-end mt-6 gap-2 sm:gap-0 sm:space-x-2" }, e.buttons)
1245
+ e.buttons && M({ class: "flex flex-col-reverse sm:flex-row sm:justify-end mt-6 gap-2 sm:gap-0 sm:space-x-2" }, e.buttons)
1246
1246
  ])
1247
1247
  ])
1248
1248
  ]
package/dist/index.es.js CHANGED
@@ -3,9 +3,9 @@ import { B as g, I as C, L as T } from "./buttons-CVEwmPAi.js";
3
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-CzHSmZKP.js";
4
4
  import { V as w, a as U } from "./veil-gN57SpXV.js";
5
5
  import { Icons as R } from "./icons.es.js";
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-BrFWql_V.js";
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-CYExSMEO.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-CoHRfAjg.js";
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-Cg0cRcMv.js";
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-B1Xo1swq.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-B3v8V9MU.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-BE_hr65B.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-nCAVFk3R.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,5 +1,5 @@
1
- import { A as o, B as t, C as e, z as i, u as r, v as n, w as m, D as l, j as S, k as D, G as c, E as u, s as d, c as g, a as p, b as C, i as F, g as T, e as A, h as P, F as f, d as b, f as w, t as B, M as I, l as M, N as x, P as y, p as k, q as v, S as N, n as h, o as E, T as L, x as U, y as j, m as q, r as z } from "./confirmation-BrFWql_V.js";
2
- import { A as O, P as R, g as _ } from "./calendar-CYExSMEO.js";
1
+ import { A as o, B as t, C as e, z as i, u as r, v as n, w as m, D as l, j as S, k as D, G as c, E as u, s as d, c as g, a as p, b as C, i as F, g as T, e as A, h as P, F as f, d as b, f as w, t as B, M as I, l as M, N as x, P as y, p as k, q as v, S as N, n as h, o as E, T as L, x as U, y as j, m as q, r as z } from "./confirmation-Cg0cRcMv.js";
2
+ import { A as O, P as R, g as _ } from "./calendar-B1Xo1swq.js";
3
3
  export {
4
4
  o as Alert,
5
5
  O as Avatar,
@@ -1,5 +1,5 @@
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-CoHRfAjg.js";
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-CYExSMEO.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-B3v8V9MU.js";
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-B1Xo1swq.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-BE_hr65B.js";
4
4
  export {
5
5
  s as BackButton,
@@ -1,22 +1,22 @@
1
1
  import { Button as y, Div as o, On as Y, Span as v, Th as P, UseParent as F, I as E, Thead as H, Tr as Q, Table as X, P as m, Li as D, Time as q, Nav as S, Ul as b, Section as O, Canvas as K } from "@base-framework/atoms";
2
- import { Atom as u, Component as g, Data as L, DateTime as G, Jot as R, router as x, NavLink as M, DataTracker as z, base as B, Dom as I } from "@base-framework/base";
2
+ import { Atom as h, Component as u, Data as L, DateTime as G, Jot as R, router as x, NavLink as M, DataTracker as z, base as B, Dom as I } from "@base-framework/base";
3
3
  import { B as C, I as N } from "./buttons-CVEwmPAi.js";
4
4
  import { Icons as w } from "./icons.es.js";
5
5
  import { TableBody as V, List as _, IntervalTimer as J } from "@base-framework/organisms";
6
6
  import { C as Z, I as ee, H as te } from "./inputs-CzHSmZKP.js";
7
- import { A as se, P as ne } from "./calendar-CYExSMEO.js";
8
- u((t, e) => ({
7
+ import { A as se, P as ne } from "./calendar-B1Xo1swq.js";
8
+ h((t, e) => ({
9
9
  class: "flex items-center px-4 py-2",
10
10
  ...t,
11
11
  children: e
12
12
  }));
13
- u(({ value: t, label: e }) => y({
13
+ h(({ value: t, label: e }) => y({
14
14
  class: "inline-flex flex-auto items-center justify-center whitespace-nowrap rounded-md px-8 py-1 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-background data-[state=active]:text-foreground data-[state=active]:shadow",
15
15
  onState: ["performance", { active: t }],
16
16
  dataSet: ["performance", ["state", t, "active"]],
17
17
  click: (s, { state: n }) => n.performance = t
18
18
  }, e));
19
- class Ve extends g {
19
+ class Ve extends u {
20
20
  /**
21
21
  * This will declare the props for the compiler.
22
22
  *
@@ -93,9 +93,9 @@ const ae = (t) => {
93
93
  click: () => a(n, s)
94
94
  });
95
95
  }, de = (t, e) => {
96
- const s = new Date(t, e, 1).getDay(), n = new Date(t, e + 1, 0).getDate(), a = oe(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 = le(t, e, d), h = [...a, ...i, ...c], f = [];
97
- for (let r = 0; r < h.length; r += 7) {
98
- const p = h.slice(r, r + 7), k = p.find((U) => U) || new Date(t, e, 1), { weekNumber: j, year: A } = ie(k);
96
+ const s = new Date(t, e, 1).getDay(), n = new Date(t, e + 1, 0).getDate(), a = oe(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 = le(t, e, d), g = [...a, ...i, ...c], f = [];
97
+ for (let r = 0; r < g.length; r += 7) {
98
+ const p = g.slice(r, r + 7), k = p.find((U) => U) || new Date(t, e, 1), { weekNumber: j, year: A } = ie(k);
99
99
  f.push({
100
100
  weekNumber: j,
101
101
  year: A,
@@ -120,7 +120,7 @@ const ae = (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: g, year: f }) => o({
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
@@ -140,14 +140,12 @@ const ae = (t) => {
140
140
  // The 7 cells for each day in the row
141
141
  o(
142
142
  { class: "grid grid-cols-7 col-span-7 text-center" },
143
- h.map(
143
+ g.map(
144
144
  (r) => ce({
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,
148
- week: h,
149
148
  weekNumber: c,
150
- currentDate: l,
151
149
  selectWeek: t
152
150
  })
153
151
  )
@@ -180,7 +178,7 @@ const ae = (t) => {
180
178
  click: t
181
179
  })
182
180
  ]);
183
- class Ze extends g {
181
+ class Ze extends u {
184
182
  /**
185
183
  * This will declare the props for the compiler.
186
184
  *
@@ -479,7 +477,7 @@ const ge = (t, e) => {
479
477
  this.data.selectedRows = [];
480
478
  }
481
479
  }
482
- ), be = u(({ name: t, email: e }) => o({ class: "min-w-0 flex-auto" }, [
480
+ ), be = h(({ name: t, email: e }) => o({ class: "min-w-0 flex-auto" }, [
483
481
  m({ class: "text-base font-semibold leading-6 m-0" }, t),
484
482
  m({ class: "truncate text-sm leading-5 text-muted-foreground m-0" }, e)
485
483
  ])), ke = () => o({ class: "flex items-center gap-x-1.5" }, [
@@ -490,10 +488,10 @@ const ge = (t, e) => {
490
488
  ]), xe = (t) => m({ class: "text-xs leading-5 text-muted-foreground" }, [
491
489
  v("Last seen "),
492
490
  q({ datetime: t }, "3h ago")
493
- ]), ye = (t, e) => t === "online" ? ke() : xe(e), ve = u(({ role: t, lastSeen: e, status: s }) => o({ class: "hidden shrink-0 sm:flex sm:flex-col sm:items-end" }, [
491
+ ]), ye = (t, e) => t === "online" ? ke() : xe(e), ve = h(({ role: t, lastSeen: e, status: s }) => o({ class: "hidden shrink-0 sm:flex sm:flex-col sm:items-end" }, [
494
492
  m({ class: "text-sm leading-6 m-0" }, t),
495
493
  ye(s, e)
496
- ])), De = (t) => t.split(" ").map((s) => s[0]).join(""), Se = u((t) => D({ class: "fadeIn flex justify-between gap-x-6 py-4 px-4 rounded-md hover:bg-muted/50" }, [
494
+ ])), De = (t) => t.split(" ").map((s) => s[0]).join(""), Se = h((t) => D({ class: "fadeIn flex justify-between gap-x-6 py-4 px-4 rounded-md hover:bg-muted/50" }, [
497
495
  o({ class: "flex min-w-0 gap-x-4" }, [
498
496
  se({ src: t.image, alt: t.name, fallbackText: De(t.name) }),
499
497
  be({ name: t.name, email: t.email })
@@ -503,7 +501,7 @@ const ge = (t, e) => {
503
501
  lastSeen: t.lastSeen,
504
502
  status: t.status
505
503
  })
506
- ])), tt = u((t) => new _({
504
+ ])), tt = h((t) => new _({
507
505
  cache: "list",
508
506
  key: "name",
509
507
  items: t.users,
@@ -517,7 +515,7 @@ const ge = (t, e) => {
517
515
  dataSet: ["selected", ["state", !0, "active"]],
518
516
  class: `${n ? "hidden" : "inline-flex"} items-center justify-center whitespace-nowrap px-3 py-1.5 text-sm font-medium transition-all rounded-md focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-ring focus-visible:ring-offset-background hover:bg-primary hover:text-primary-foreground disabled:opacity-50 disabled:pointer-events-none data-[state=active]:bg-primary data-[state=active]:text-primary-foreground data-[state=active]:shadow-sm`
519
517
  });
520
- class st extends g {
518
+ class st extends u {
521
519
  /**
522
520
  * This will declare the props for the compiler.
523
521
  *
@@ -615,7 +613,7 @@ class st extends g {
615
613
  this.links = [];
616
614
  }
617
615
  }
618
- const nt = u((t) => {
616
+ const nt = h((t) => {
619
617
  const e = t.margin || "m-4 ml-0";
620
618
  return o({ class: `flex-none ${e}` }, [
621
619
  C({
@@ -633,7 +631,7 @@ const nt = u((t) => {
633
631
  ])
634
632
  ]);
635
633
  });
636
- class $ extends g {
634
+ class $ extends u {
637
635
  /**
638
636
  * This will declare the props for the compiler.
639
637
  *
@@ -854,7 +852,7 @@ class it extends $ {
854
852
  this.container = e, this.initialize();
855
853
  }
856
854
  }
857
- const Ie = u(({ index: t, click: e, state: s }, n) => D({
855
+ const Ie = h(({ index: t, click: e, state: s }, n) => D({
858
856
  class: "p-2 cursor-pointer hover:bg-muted/50",
859
857
  onState: [
860
858
  [s, "selectedIndex", {
@@ -863,10 +861,10 @@ const Ie = u(({ index: t, click: e, state: s }, n) => D({
863
861
  }]
864
862
  ],
865
863
  click: () => e(t)
866
- }, n)), Te = u(({ selectOption: t, state: e }) => b({
864
+ }, n)), Te = h(({ selectOption: t, state: e }) => b({
867
865
  class: "border rounded-md list-none m-0 p-0 max-h-[400px] overflow-y-auto",
868
866
  for: ["filteredOptions", (s, n) => Ie({ index: n, click: t, state: e }, s.label)]
869
- })), We = u((t) => o({ class: "relative flex items-center" }, [
867
+ })), We = h((t) => o({ class: "relative flex items-center" }, [
870
868
  ee({
871
869
  cache: "input",
872
870
  placeholder: t.placeholder ?? "Search...",
@@ -1028,7 +1026,7 @@ const Ie = u(({ index: t, click: e, state: s }, n) => D({
1028
1026
  ), 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}` }, [
1029
1027
  b({ class: "flex flex-auto flex-row", map: [t.options, (e) => Re(e, t.callBack)] })
1030
1028
  ]);
1031
- class lt extends g {
1029
+ class lt extends u {
1032
1030
  /**
1033
1031
  * This will declare the props for the compiler.
1034
1032
  *
@@ -1132,7 +1130,7 @@ const ze = (t) => D(
1132
1130
  ), 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}` }, [
1133
1131
  b({ class: "flex flex-auto flex-row", map: [t.options, (e) => Ne(e, t.callBack)] })
1134
1132
  ]);
1135
- class rt extends g {
1133
+ class rt extends u {
1136
1134
  /**
1137
1135
  * This will declare the props for the compiler.
1138
1136
  *
@@ -1185,7 +1183,7 @@ const je = (t, e) => new RegExp(`${t}($|/|\\.).*`).test(e), Ae = (t, e) => {
1185
1183
  dataSet: ["selected", ["state", !0, "active"]],
1186
1184
  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"
1187
1185
  });
1188
- class Ye extends g {
1186
+ class Ye extends u {
1189
1187
  /**
1190
1188
  * This will declare the props for the compiler.
1191
1189
  *
@@ -1280,7 +1278,7 @@ class Ye extends g {
1280
1278
  this.links = [];
1281
1279
  }
1282
1280
  }
1283
- class ct extends g {
1281
+ class ct extends u {
1284
1282
  /**
1285
1283
  * This will declare the props for the compiler.
1286
1284
  *
@@ -1326,7 +1324,7 @@ class ct extends g {
1326
1324
  return s;
1327
1325
  }
1328
1326
  }
1329
- class Fe extends g {
1327
+ class Fe extends u {
1330
1328
  /**
1331
1329
  * Runs before rendering, sets up defaults, a timer for drawing,
1332
1330
  * and basic canvas properties.
@@ -1393,8 +1391,8 @@ class Fe extends g {
1393
1391
  let s, n;
1394
1392
  const a = this.canvas, i = a.width / parseInt(a.style.width), l = a.getBoundingClientRect();
1395
1393
  if (e.touches && e.touches.length) {
1396
- const h = e.touches[0];
1397
- s = h.clientX, n = h.clientY;
1394
+ const g = e.touches[0];
1395
+ s = g.clientX, n = g.clientY;
1398
1396
  } else
1399
1397
  s = e.x || e.clientX, n = e.y || e.clientY;
1400
1398
  const d = parseInt((s - l.left) * i), c = parseInt((n - l.top) * i);
@@ -1475,7 +1473,7 @@ class Fe extends g {
1475
1473
  const e = this.canvas, s = this.container, n = I.getSize(s), a = this.targetSize, i = a.width, l = a.height;
1476
1474
  let d = i + "px", c = l + "px";
1477
1475
  if (this.width = e.width = i, this.height = e.height = l, n.width !== 0 && n.height !== 0) {
1478
- const h = n.width, f = n.height, r = h / i, p = f / l, k = Math.min(r, p);
1476
+ const g = n.width, f = n.height, r = g / i, p = f / l, k = Math.min(r, p);
1479
1477
  d = i * k + "px", c = l * k + "px";
1480
1478
  }
1481
1479
  e.style.width = d, e.style.height = c;
@@ -1552,7 +1550,7 @@ class Fe extends g {
1552
1550
  this.timer.stop(), this.status = "stopped";
1553
1551
  }
1554
1552
  }
1555
- class dt extends g {
1553
+ class dt extends u {
1556
1554
  /**
1557
1555
  * Sets up default properties for the signature panel.
1558
1556
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@base-framework/ui",
3
- "version": "1.0.50",
3
+ "version": "1.0.53",
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": {