@base-framework/ui 1.0.1725 → 1.0.1727

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.
@@ -140,10 +140,6 @@ const H = k(({ src: e, alt: t }) => e ? F({
140
140
  class: "absolute w-full h-full rounded-full object-cover fadeIn",
141
141
  src: e,
142
142
  alt: t,
143
- load(s) {
144
- const n = s.target;
145
- console.log(n), n.src || (n.style.display = "none");
146
- },
147
143
  /**
148
144
  * If there's an error loading the image, hide it.
149
145
  */
@@ -1,6 +1,6 @@
1
1
  import { Div as n, H5 as _, P as b, I as g, Li as O, Span as a, Ul as V, Button as m, OnState as v, Label as R, Form as W, H2 as A, Header as B, Footer as M, A as Y, H3 as G, Checkbox as J, Nav as K, Input as C, UseParent as Q, Time as X, Dialog as Z } from "@base-framework/atoms";
2
2
  import { Atom as c, Component as p, Html as L, Dom as ee, base as te, Data as k, Builder as H, Jot as S, DateTime as $ } from "@base-framework/base";
3
- import { P as D, b as se } from "./calendar-CY-trRig.js";
3
+ import { P as D, b as se } from "./calendar-DQXME-2u.js";
4
4
  import { B as h, I as x } from "./buttons-Cm9etaEG.js";
5
5
  import { Icons as u } from "./icons.es.js";
6
6
  import { a as w } from "./veil-D4dRxILB.js";
package/dist/index.es.js CHANGED
@@ -3,9 +3,9 @@ import { B as g, I as T, L as c } from "./buttons-Cm9etaEG.js";
3
3
  import { C as D, d as b, D as S, c as I, 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 y, a as h, b as W, U as H, W as L } from "./inputs-Dmu4Z-7-.js";
4
4
  import { V as w, a as U } from "./veil-D4dRxILB.js";
5
5
  import { Icons as O } from "./icons.es.js";
6
- import { A as G, B as V, C as j, t as q, E as z, v as J, w as _, x as K, D as Q, j as X, k as Y, H as Z, G as $, s as aa, c as sa, a as ea, b as oa, i as ta, 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 Sa, o as Ia, T as Ba, y as Pa, z as Fa, m as Ma, r as ka } from "./confirmation-CQLLze0q.js";
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-CY-trRig.js";
8
- import { B as Oa, o as Ea, 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, s as $a, r as as, p as ss, q as es, T as os, l as ts, U as rs, W as ns, f as is, h as ls, i as ps, c as us, d as ms, b as ds, e as gs, a as Ts, g as cs } from "./signature-panel-BABfCY86.js";
6
+ import { A as G, B as V, C as j, t as q, E as z, v as J, w as _, x as K, D as Q, j as X, k as Y, H as Z, G as $, s as aa, c as sa, a as ea, b as oa, i as ta, 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 Sa, o as Ia, T as Ba, y as Pa, z as Fa, m as Ma, r as ka } from "./confirmation-BxmDhBjv.js";
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 Oa, o as Ea, 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, s as $a, r as as, p as ss, q as es, T as os, l as ts, U as rs, W as ns, f as is, h as ls, i as ps, c as us, d as ms, b as ds, e as gs, a as Ts, g as cs } from "./signature-panel-xXbYWejE.js";
9
9
  import { B as Ds, I as bs, M as Ss, d as Is, e as Bs, g as Ps, N as Fs, b as Ms, a as ks, f as Ns, P as vs, c as fs, S as xs, T as ys } from "./mobile-nav-wrapper-Dj67Pb8l.js";
10
10
  import { B as Ws, a as Hs, C as Ls, F as As, b as ws, c as Us, M as Rs, P as Os, S as Es } from "./sidebar-menu-page-BVryQj2Z.js";
11
11
  import { A as Vs, F as js, M as qs, a as zs, T as Js } from "./aside-template-McEj_Gxc.js";
@@ -1,5 +1,5 @@
1
- import { A as o, B as t, C as e, t as i, E as r, v as n, w as m, x as l, D as S, j as u, k as D, H as c, G as C, s as d, c as g, a as p, b as F, i as T, g as A, e as P, h as f, F as w, d as b, f as B, u as I, M, l as x, N as y, P as k, p as v, q as N, S as h, n as E, o as L, T as R, y as U, z as j, m as q, r as z } from "./confirmation-CQLLze0q.js";
2
- import { A as H, P as O, g as _ } from "./calendar-CY-trRig.js";
1
+ import { A as o, B as t, C as e, t as i, E as r, v as n, w as m, x as l, D as S, j as u, k as D, H as c, G as C, s as d, c as g, a as p, b as F, i as T, g as A, e as P, h as f, F as w, d as b, f as B, u as I, M, l as x, N as y, P as k, p as v, q as N, S as h, n as E, o as L, T as R, y as U, z as j, m as q, r as z } from "./confirmation-BxmDhBjv.js";
2
+ import { A as H, P as O, g as _ } from "./calendar-DQXME-2u.js";
3
3
  export {
4
4
  o as Alert,
5
5
  H as Avatar,
@@ -1,5 +1,5 @@
1
- import { B as s, o as t, C as o, j as r, D as l, m as n, k as i, H as b, I as d, N as v, O as D, P as g, S as p, n as u, s as N, r as k, p as C, q as T, T as c, l as M, U as m, W as y, f as B, h as W, i as h, c as H, d as P, b as S, e as f, a as x, g as I } from "./signature-panel-BABfCY86.js";
2
- import { b as O, C as F, D as U, a as G, F as j, M as q, c as w, p as z } from "./calendar-CY-trRig.js";
1
+ import { B as s, o as t, C as o, j as r, D as l, m as n, k as i, H as b, I as d, N as v, O as D, P as g, S as p, n as u, s as N, r as k, p as C, q as T, T as c, l as M, U as m, W as y, f as B, h as W, i as h, c as H, d as P, b as S, e as f, a as x, g as I } from "./signature-panel-xXbYWejE.js";
2
+ import { b as O, C as F, D as U, a as G, F as j, M as q, c as w, p as z } from "./calendar-DQXME-2u.js";
3
3
  import { B as E, I as J, M as K, d as Q, e as R, g as V, N as X, b as Y, a as Z, f as _, P as $, c as aa, S as ea, T as sa } from "./mobile-nav-wrapper-Dj67Pb8l.js";
4
4
  export {
5
5
  s as BackButton,
@@ -1,10 +1,10 @@
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";
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 b, Section as O, Canvas as K } from "@base-framework/atoms";
2
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
3
  import { B as C, 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-Dmu4Z-7-.js";
7
- import { A as oe, P as le } from "./calendar-CY-trRig.js";
7
+ import { A as oe, P as le } from "./calendar-DQXME-2u.js";
8
8
  d((t, e) => ({
9
9
  class: "flex items-center px-4 py-2",
10
10
  ...t,
@@ -95,7 +95,7 @@ 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), w = m.find((Y) => Y) || new Date(t, e, 1), { weekNumber: A, year: U } = ce(w);
99
99
  g.push({
100
100
  weekNumber: A,
101
101
  year: U,
@@ -296,11 +296,11 @@ class ot extends h {
296
296
  ]);
297
297
  }
298
298
  }
299
- const we = (t, e) => {
299
+ const be = (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 || ""}` }, [
303
- F((e) => new ae({ class: "mr-2", onChange: (s, a) => we(e, a) }))
302
+ }, we = (t) => P({ class: `cursor-pointer py-3 px-4 text-base w-10 ${t.class || ""}` }, [
303
+ F((e) => new ae({ class: "mr-2", onChange: (s, a) => be(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
306
  return P({
@@ -317,7 +317,7 @@ const we = (t, e) => {
317
317
  class: "text-muted-foreground border-b",
318
318
  map: [
319
319
  t.headers,
320
- (e) => e.label === "checkbox" ? be({ toggle: t.toggle }) : ye({
320
+ (e) => e.label === "checkbox" ? we({ toggle: t.toggle }) : ye({
321
321
  align: e.align,
322
322
  sortable: e.sortable,
323
323
  key: e.key,
@@ -692,7 +692,7 @@ class dt extends h {
692
692
  return S(
693
693
  { class: `flex items-center justify-center p-2 text-muted-foreground rounded-md ${this.class || ""}` },
694
694
  [
695
- w({
695
+ b({
696
696
  class: "flex space-x-4",
697
697
  map: [this.options, (e) => this.addLink(e)],
698
698
  watch: {
@@ -805,7 +805,7 @@ class j extends h {
805
805
  * @returns {string}
806
806
  */
807
807
  getClassName() {
808
- return "overlay fixed top-[0px] left-0 bottom-0 right-0 flex-col bg-background z-20 lg:z-10 flex flex-auto lg:left-[64px] lg:top-0 overflow-y-auto will-change-contents " + (this.class || "");
808
+ return "overlay absolute top-[0px] left-0 bottom-0 right-0 flex-col bg-background z-20 lg:z-10 flex flex-auto lg:left-[64px] lg:top-0 overflow-y-visible will-change-contents " + (this.class || "");
809
809
  }
810
810
  /**
811
811
  * This will setup and render the component.
@@ -1002,7 +1002,7 @@ const ze = d(({ index: t, click: e, state: s }, a) => D({
1002
1002
  }]
1003
1003
  ],
1004
1004
  click: () => e(t)
1005
- }, a)), $e = d(({ selectOption: t, state: e }) => w({
1005
+ }, a)), $e = d(({ selectOption: t, state: e }) => b({
1006
1006
  class: "border rounded-md list-none m-0 p-0 max-h-[400px] overflow-y-auto",
1007
1007
  for: ["filteredOptions", (s, a) => ze({ index: a, click: t, state: e }, s.label)]
1008
1008
  })), Ne = d((t) => o({ class: "relative flex items-center" }, [
@@ -1165,7 +1165,7 @@ const ze = d(({ index: t, click: e, state: s }, a) => D({
1165
1165
  }, t.label)
1166
1166
  ]
1167
1167
  ), 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}` }, [
1168
- w({ class: "flex flex-auto flex-row", map: [t.options, (e) => Ue(e, t.callBack)] })
1168
+ b({ class: "flex flex-auto flex-row", map: [t.options, (e) => Ue(e, t.callBack)] })
1169
1169
  ]);
1170
1170
  class mt extends h {
1171
1171
  /**
@@ -1269,7 +1269,7 @@ const He = (t) => D(
1269
1269
  }, t.label)
1270
1270
  ]
1271
1271
  ), 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}` }, [
1272
- w({ class: "flex flex-auto flex-row", map: [t.options, (e) => Fe(e, t.callBack)] })
1272
+ b({ class: "flex flex-auto flex-row", map: [t.options, (e) => Fe(e, t.callBack)] })
1273
1273
  ]);
1274
1274
  class pt extends h {
1275
1275
  /**
@@ -1346,7 +1346,7 @@ class Ke extends h {
1346
1346
  */
1347
1347
  render() {
1348
1348
  return S({ class: `tab items-center justify-center rounded-md bg-muted p-1 text-muted-foreground ${this.class}` }, [
1349
- w({
1349
+ b({
1350
1350
  class: "flex flex-auto flex-row",
1351
1351
  map: [this.options, (e) => this.addLink(e)],
1352
1352
  watch: {
@@ -1419,7 +1419,7 @@ class Ke extends h {
1419
1419
  this.links = [];
1420
1420
  }
1421
1421
  }
1422
- class wt extends h {
1422
+ class bt extends h {
1423
1423
  /**
1424
1424
  * This will declare the props for the compiler.
1425
1425
  *
@@ -1614,8 +1614,8 @@ class Ge extends h {
1614
1614
  const e = this.canvas, s = this.container, a = M.getSize(s), i = this.targetSize, n = i.width, l = i.height;
1615
1615
  let u = n + "px", c = l + "px";
1616
1616
  if (this.width = e.width = n, this.height = e.height = l, a.width !== 0 && a.height !== 0) {
1617
- const f = a.width, g = a.height, r = f / n, m = g / l, b = Math.min(r, m);
1618
- u = n * b + "px", c = l * b + "px";
1617
+ const f = a.width, g = a.height, r = f / n, m = g / l, w = Math.min(r, m);
1618
+ u = n * w + "px", c = l * w + "px";
1619
1619
  }
1620
1620
  e.style.width = u, e.style.height = c;
1621
1621
  }
@@ -1691,7 +1691,7 @@ class Ge extends h {
1691
1691
  this.timer.stop(), this.status = "stopped";
1692
1692
  }
1693
1693
  }
1694
- class bt extends h {
1694
+ class wt extends h {
1695
1695
  /**
1696
1696
  * Sets up default properties for the signature panel.
1697
1697
  *
@@ -1771,7 +1771,7 @@ class bt extends h {
1771
1771
  }
1772
1772
  export {
1773
1773
  ht as B,
1774
- be as C,
1774
+ we as C,
1775
1775
  ke as D,
1776
1776
  ye as H,
1777
1777
  ft as I,
@@ -1799,6 +1799,6 @@ export {
1799
1799
  mt as o,
1800
1800
  pt as p,
1801
1801
  Ke as q,
1802
- wt as r,
1803
- bt as s
1802
+ bt as r,
1803
+ wt as s
1804
1804
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@base-framework/ui",
3
- "version": "1.0.1725",
3
+ "version": "1.0.1727",
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": {