@base-framework/ui 1.0.45 → 1.0.47

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-gN57SpXV.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-BrFWql_V.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-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-dqDinVVp.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-ihe96Fdg.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,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-dqDinVVp.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-ihe96Fdg.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-CYExSMEO.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 {
@@ -1,8 +1,8 @@
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";
1
+ import { Button as v, Div as o, On as U, Span as y, Th as P, UseParent as Y, I as F, Thead as E, 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
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";
3
3
  import { B as C, I as z } from "./buttons-CVEwmPAi.js";
4
4
  import { Icons as w } from "./icons.es.js";
5
- import { TableBody as _, List as G, IntervalTimer as V } from "@base-framework/organisms";
5
+ import { TableBody as G, List as V, IntervalTimer as _ } from "@base-framework/organisms";
6
6
  import { C as J, I as Z, H as ee } from "./inputs-CzHSmZKP.js";
7
7
  import { A as te, P as se } from "./calendar-CYExSMEO.js";
8
8
  u((t, e) => ({
@@ -71,7 +71,7 @@ const ne = (t) => {
71
71
  i.push(l > 0 ? d : null), (i.length === 7 || l === n) && (a.push([...i]), i = []);
72
72
  }
73
73
  return a;
74
- }, Je = (t, e) => {
74
+ }, _e = (t, e) => {
75
75
  const s = new Date(t, e + 1, 0).getDate(), n = [];
76
76
  let a = [];
77
77
  for (let i = 1; i <= s; i++)
@@ -95,10 +95,10 @@ const ne = (t) => {
95
95
  }, ce = (t, e) => {
96
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 = [];
97
97
  for (let r = 0; r < h.length; r += 7) {
98
- const p = h.slice(r, r + 7), x = p.find((j) => j) || new Date(t, e, 1), { weekNumber: $, year: A } = ae(x);
98
+ const p = h.slice(r, r + 7), x = p.find((A) => A) || new Date(t, e, 1), { weekNumber: $, year: j } = ae(x);
99
99
  f.push({
100
100
  weekNumber: $,
101
- year: A,
101
+ year: j,
102
102
  days: p
103
103
  });
104
104
  }
@@ -180,7 +180,7 @@ const ne = (t) => {
180
180
  click: t
181
181
  })
182
182
  ]);
183
- class Ze extends g {
183
+ class Je extends g {
184
184
  /**
185
185
  * This will declare the props for the compiler.
186
186
  *
@@ -311,10 +311,10 @@ const ue = (t, e) => {
311
311
  }, [
312
312
  o({ class: `flex flex-auto w-full items-center ${l}` }, [
313
313
  y(n),
314
- e && E({ class: "ml-2", html: w.arrows.upDown })
314
+ e && F({ class: "ml-2", html: w.arrows.upDown })
315
315
  ])
316
316
  ]);
317
- }, pe = (t) => F([
317
+ }, pe = (t) => E([
318
318
  H({
319
319
  class: "text-muted-foreground border-b",
320
320
  map: [t.headers, (e) => e.label === "checkbox" ? ge({ toggle: t.toggle }) : fe({
@@ -325,13 +325,13 @@ const ue = (t, e) => {
325
325
  sort: t.sort
326
326
  })]
327
327
  })
328
- ]), me = ({ key: t, rows: e, selectRow: s, rowItem: n }) => new _({
328
+ ]), me = ({ key: t, rows: e, selectRow: s, rowItem: n }) => new G({
329
329
  cache: "table",
330
330
  key: t,
331
331
  items: e,
332
332
  rowItem: (a) => n(a, s),
333
333
  class: "divide-y divide-border"
334
- }), et = R(
334
+ }), Ze = R(
335
335
  {
336
336
  /**
337
337
  * Initializes component data.
@@ -503,7 +503,7 @@ const ue = (t, e) => {
503
503
  lastSeen: t.lastSeen,
504
504
  status: t.status
505
505
  })
506
- ])), tt = u((t) => new G({
506
+ ])), et = u((t) => new V({
507
507
  cache: "list",
508
508
  key: "name",
509
509
  items: t.users,
@@ -517,7 +517,7 @@ const ue = (t, e) => {
517
517
  dataSet: ["selected", ["state", !0, "active"]],
518
518
  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
519
  });
520
- class st extends g {
520
+ class tt extends g {
521
521
  /**
522
522
  * This will declare the props for the compiler.
523
523
  *
@@ -615,7 +615,7 @@ class st extends g {
615
615
  this.links = [];
616
616
  }
617
617
  }
618
- const nt = u((t) => {
618
+ const st = u((t) => {
619
619
  const e = t.margin || "m-4 ml-0";
620
620
  return o({ class: `flex-none ${e}` }, [
621
621
  C({
@@ -720,7 +720,7 @@ class N extends g {
720
720
  return this.children;
721
721
  }
722
722
  }
723
- class at extends N {
723
+ class nt extends N {
724
724
  /**
725
725
  * This will stop presistence.
726
726
  *
@@ -823,7 +823,7 @@ class at extends N {
823
823
  document.documentElement.style.overflowY = "auto";
824
824
  }
825
825
  }
826
- class it extends N {
826
+ class at extends N {
827
827
  /**
828
828
  * This will get the overlay type.
829
829
  *
@@ -854,7 +854,7 @@ const Be = u(({ index: t, click: e, state: s }, n) => D({
854
854
  }, n)), Ie = u(({ selectOption: t, state: e }) => b({
855
855
  class: "border rounded-md list-none m-0 p-0 max-h-[400px] overflow-y-auto",
856
856
  for: ["filteredOptions", (s, n) => Be({ index: n, click: t, state: e }, s.label)]
857
- })), Te = 100, We = u((t) => o({ class: "relative flex items-center" }, [
857
+ })), Te = u((t) => o({ class: "relative flex items-center" }, [
858
858
  Z({
859
859
  cache: "input",
860
860
  placeholder: t.placeholder ?? "Search...",
@@ -863,13 +863,12 @@ const Be = u(({ index: t, click: e, state: s }, n) => D({
863
863
  s.state.open = !0, typeof t.filterOptions == "function" && t.filterOptions(), s.dropdown.updatePosition();
864
864
  },
865
865
  pointerup: (e, s) => s.toggleDropdown(),
866
- blur: (e, { state: s }) => setTimeout(() => s.open = !1, Te),
867
866
  keydown: (e) => typeof t.handleKeyDown == "function" && t.handleKeyDown(e)
868
867
  }),
869
868
  t.icon && o({ class: "absolute right-0 mr-2" }, [
870
869
  z(t.icon)
871
870
  ])
872
- ])), Pe = (t) => o({
871
+ ])), We = (t) => o({
873
872
  class: "relative flex fle-auto flex-col",
874
873
  onState: ["open", (e, s, n) => {
875
874
  if (e)
@@ -882,7 +881,7 @@ const Be = u(({ index: t, click: e, state: s }, n) => D({
882
881
  Ie(t)
883
882
  ]);
884
883
  }]
885
- }), ot = R(
884
+ }), it = R(
886
885
  {
887
886
  /**
888
887
  * This will set up the data object.
@@ -979,7 +978,7 @@ const Be = u(({ index: t, click: e, state: s }, n) => D({
979
978
  */
980
979
  render() {
981
980
  return o({ class: "relative w-full max-w-md" }, [
982
- We({
981
+ Te({
983
982
  // @ts-ignore
984
983
  state: this.state,
985
984
  // @ts-ignore
@@ -991,7 +990,7 @@ const Be = u(({ index: t, click: e, state: s }, n) => D({
991
990
  // @ts-ignore
992
991
  handleKeyDown: this.handleKeyDown.bind(this)
993
992
  }),
994
- Pe({
993
+ We({
995
994
  // @ts-ignore
996
995
  state: this.state,
997
996
  // @ts-ignore
@@ -1002,7 +1001,7 @@ const Be = u(({ index: t, click: e, state: s }, n) => D({
1002
1001
  ]);
1003
1002
  }
1004
1003
  }
1005
- ), Oe = (t) => D(
1004
+ ), Pe = (t) => D(
1006
1005
  {
1007
1006
  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",
1008
1007
  dataSet: ["selected", ["state", t.value, "active"]]
@@ -1014,10 +1013,10 @@ const Be = u(({ index: t, click: e, state: s }, n) => D({
1014
1013
  click: (e) => t.callBack(t.value)
1015
1014
  }, t.label)
1016
1015
  ]
1017
- ), 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}` }, [
1018
- b({ class: "flex flex-auto flex-row", map: [t.options, (e) => Re(e, t.callBack)] })
1016
+ ), 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}` }, [
1017
+ b({ class: "flex flex-auto flex-row", map: [t.options, (e) => Oe(e, t.callBack)] })
1019
1018
  ]);
1020
- class lt extends g {
1019
+ class ot extends g {
1021
1020
  /**
1022
1021
  * This will declare the props for the compiler.
1023
1022
  *
@@ -1034,7 +1033,7 @@ class lt extends g {
1034
1033
  render() {
1035
1034
  const e = this.select.bind(this);
1036
1035
  return o({ class: "" }, [
1037
- Me({
1036
+ Re({
1038
1037
  class: this.class,
1039
1038
  options: this.options,
1040
1039
  callBack: e
@@ -1105,7 +1104,7 @@ class lt extends g {
1105
1104
  };
1106
1105
  }
1107
1106
  }
1108
- const ze = (t) => D(
1107
+ const Me = (t) => D(
1109
1108
  {
1110
1109
  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",
1111
1110
  dataSet: ["selected", ["state", t.value, "active"]]
@@ -1118,10 +1117,10 @@ const ze = (t) => D(
1118
1117
  disabled: t.disabled
1119
1118
  }, t.label)
1120
1119
  ]
1121
- ), 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}` }, [
1122
- b({ class: "flex flex-auto flex-row", map: [t.options, (e) => Ne(e, t.callBack)] })
1120
+ ), ze = (t, e) => (t.callBack = e, Me(t)), Ne = (t) => S({ class: `tab items-center justify-center rounded-md bg-muted p-1 text-muted-foreground ${t.class}` }, [
1121
+ b({ class: "flex flex-auto flex-row", map: [t.options, (e) => ze(e, t.callBack)] })
1123
1122
  ]);
1124
- class rt extends g {
1123
+ class lt extends g {
1125
1124
  /**
1126
1125
  * This will declare the props for the compiler.
1127
1126
  *
@@ -1137,7 +1136,7 @@ class rt extends g {
1137
1136
  */
1138
1137
  render() {
1139
1138
  const e = this.select.bind(this);
1140
- return $e({
1139
+ return Ne({
1141
1140
  class: this.class,
1142
1141
  options: this.options,
1143
1142
  callBack: e
@@ -1164,17 +1163,17 @@ class rt extends g {
1164
1163
  };
1165
1164
  }
1166
1165
  }
1167
- const Ae = (t, e) => new RegExp(`${t}($|/|\\.).*`).test(e), je = (t, e) => {
1166
+ const $e = (t, e) => new RegExp(`${t}($|/|\\.).*`).test(e), je = (t, e) => {
1168
1167
  const s = t.getLinkPath();
1169
- return t.exact ? e === s : Ae(s, e);
1170
- }, Ue = ({ text: t, href: e, exact: s }) => new M({
1168
+ return t.exact ? e === s : $e(s, e);
1169
+ }, Ae = ({ text: t, href: e, exact: s }) => new M({
1171
1170
  text: t,
1172
1171
  href: e,
1173
1172
  exact: s,
1174
1173
  dataSet: ["selected", ["state", !0, "active"]],
1175
1174
  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"
1176
1175
  });
1177
- class Ye extends g {
1176
+ class Ue extends g {
1178
1177
  /**
1179
1178
  * This will declare the props for the compiler.
1180
1179
  *
@@ -1257,7 +1256,7 @@ class Ye extends g {
1257
1256
  * @returns {object}
1258
1257
  */
1259
1258
  addLink({ label: e, href: s, exact: n }) {
1260
- const a = Ue({ text: e, href: s, exact: n });
1259
+ const a = Ae({ text: e, href: s, exact: n });
1261
1260
  return this.links.push(a), a;
1262
1261
  }
1263
1262
  /**
@@ -1269,7 +1268,7 @@ class Ye extends g {
1269
1268
  this.links = [];
1270
1269
  }
1271
1270
  }
1272
- class ct extends g {
1271
+ class rt extends g {
1273
1272
  /**
1274
1273
  * This will declare the props for the compiler.
1275
1274
  *
@@ -1285,7 +1284,7 @@ class ct extends g {
1285
1284
  */
1286
1285
  render() {
1287
1286
  return o({ class: "tab-panel" }, [
1288
- new Ye({
1287
+ new Ue({
1289
1288
  class: this.class,
1290
1289
  options: this.options
1291
1290
  }),
@@ -1315,7 +1314,7 @@ class ct extends g {
1315
1314
  return s;
1316
1315
  }
1317
1316
  }
1318
- class Ee extends g {
1317
+ class Ye extends g {
1319
1318
  /**
1320
1319
  * Runs before rendering, sets up defaults, a timer for drawing,
1321
1320
  * and basic canvas properties.
@@ -1325,7 +1324,7 @@ class Ee extends g {
1325
1324
  onCreated() {
1326
1325
  this.lineWidth = this.lineWidth || 3, this.lineColor = this.lineColor || "#000000", this.canvas = null, this.ctx = null, this.status = "stopped";
1327
1326
  const e = 1e3 / 60;
1328
- this.timer = new V(e, this.draw.bind(this)), this.width = 0, this.height = 0, this.signed = !1, this.mouse = { x: 0, y: 0, status: "up" }, this.margin = this.margin || { x: 40, y: 60 }, this.targetSize = this.targetSize || { width: 740, height: 345 }, this.baseLineWidth = this.baseLineWidth || 2, this.baseStrokeColor = this.baseStrokeColor || "#000000";
1327
+ this.timer = new _(e, this.draw.bind(this)), this.width = 0, this.height = 0, this.signed = !1, this.mouse = { x: 0, y: 0, status: "up" }, this.margin = this.margin || { x: 40, y: 60 }, this.targetSize = this.targetSize || { width: 740, height: 345 }, this.baseLineWidth = this.baseLineWidth || 2, this.baseStrokeColor = this.baseStrokeColor || "#000000";
1329
1328
  }
1330
1329
  /**
1331
1330
  * Renders a <canvas> element.
@@ -1541,7 +1540,7 @@ class Ee extends g {
1541
1540
  this.timer.stop(), this.status = "stopped";
1542
1541
  }
1543
1542
  }
1544
- class dt extends g {
1543
+ class ct extends g {
1545
1544
  /**
1546
1545
  * Sets up default properties for the signature panel.
1547
1546
  *
@@ -1570,7 +1569,7 @@ class dt extends g {
1570
1569
  click: this.reset.bind(this)
1571
1570
  })
1572
1571
  ]),
1573
- new Ee({
1572
+ new Ye({
1574
1573
  cache: "canvasLayer",
1575
1574
  margin: this.margin,
1576
1575
  targetSize: this.targetSize,
@@ -1620,33 +1619,33 @@ class dt extends g {
1620
1619
  }
1621
1620
  }
1622
1621
  export {
1623
- nt as B,
1622
+ st as B,
1624
1623
  ge as C,
1625
1624
  me as D,
1626
1625
  fe as H,
1627
- it as I,
1628
- st as N,
1626
+ at as I,
1627
+ tt as N,
1629
1628
  N as O,
1630
1629
  Ge as P,
1631
- ot as S,
1630
+ it as S,
1632
1631
  pe as T,
1633
1632
  De as U,
1634
- Ze as W,
1633
+ Je as W,
1635
1634
  oe as a,
1636
1635
  T as b,
1637
1636
  ae as c,
1638
1637
  Ve as d,
1639
- Je as e,
1638
+ _e as e,
1640
1639
  re as f,
1641
1640
  ie as g,
1642
1641
  de as h,
1643
1642
  he as i,
1644
- et as j,
1645
- tt as k,
1646
- at as l,
1647
- lt as m,
1648
- rt as n,
1649
- Ye as o,
1650
- ct as p,
1651
- dt as q
1643
+ Ze as j,
1644
+ et as k,
1645
+ nt as l,
1646
+ ot as m,
1647
+ lt as n,
1648
+ Ue as o,
1649
+ rt as p,
1650
+ ct as q
1652
1651
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@base-framework/ui",
3
- "version": "1.0.45",
3
+ "version": "1.0.47",
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": {