@base-framework/ui 1.0.320 → 1.0.322

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.
@@ -1,5 +1,5 @@
1
- import { Div as l, H5 as se, P as w, I as C, Li as W, Span as c, Ul as G, Button as b, OnState as B, Label as j, H2 as $, Form as oe, Header as L, Footer as N, A as J, H3 as ne, Checkbox as le, Input as f, Img as K, Nav as re, UseParent as Q, OnStateOpen as O, Time as ie, Dialog as ae } from "@base-framework/atoms";
2
- import { Atom as u, Component as k, Html as z, Dom as ce, base as ue, Data as A, Builder as X, Jot as I, Events as v, DateTime as E } from "@base-framework/base";
1
+ import { Div as l, H5 as se, P as w, I as C, Li as W, Span as c, Ul as G, Button as b, OnState as B, Label as O, H2 as $, Form as oe, Header as L, Footer as z, A as J, H3 as ne, Checkbox as le, Input as f, Img as K, Nav as re, UseParent as Q, OnStateOpen as E, Time as ie, Dialog as ae } from "@base-framework/atoms";
2
+ import { Atom as u, Component as k, Html as N, Dom as ce, base as ue, Data as A, Builder as X, Jot as I, Events as y, DateTime as j } from "@base-framework/base";
3
3
  import { P as F, b as de, R as he } from "./range-calendar-BMWSJTE0.js";
4
4
  import { C as fe, F as me, a as D } from "./veil-CVCuKSvj.js";
5
5
  import { B as h, I as x } from "./buttons-CHEs54Wl.js";
@@ -34,14 +34,14 @@ const V = {
34
34
  }
35
35
  }, xe = (e, t) => l({ class: `flex items-center justify-center h-6 w-6 mr-3 ${t}` }, [
36
36
  C({ html: e })
37
- ]), ye = (e) => se({ class: "font-semibold" }, e), ve = (e) => w({ class: "text-sm text-muted-foreground" }, e), Bt = u(({ title: e, description: t, icon: s, type: o = "default" }) => {
37
+ ]), ve = (e) => se({ class: "font-semibold" }, e), ye = (e) => w({ class: "text-sm text-muted-foreground" }, e), Bt = u(({ title: e, description: t, icon: s, type: o = "default" }) => {
38
38
  const { borderColor: n, bgColor: r, iconColor: i } = V[o] || V.default;
39
39
  return l({ class: `flex items-start p-4 border rounded-lg ${r} ${n}` }, [
40
40
  // Icon and content
41
41
  s && xe(s, i),
42
42
  l({ class: "flex flex-col" }, [
43
- ye(e),
44
- ve(t)
43
+ ve(e),
44
+ ye(t)
45
45
  ])
46
46
  ]);
47
47
  });
@@ -63,10 +63,10 @@ class Lt extends k {
63
63
  this.prepareDestroy(), this.removeContext();
64
64
  const t = this.panel, s = this.removingClass;
65
65
  if (!s) {
66
- z.removeElement(t);
66
+ N.removeElement(t);
67
67
  return;
68
68
  }
69
- ce.addClass(t, s), ue.on("animationend", t, (o) => z.removeElement(t));
69
+ ce.addClass(t, s), ue.on("animationend", t, (o) => N.removeElement(t));
70
70
  }
71
71
  }
72
72
  const we = (e) => c({ class: "ml-auto text-xs tracking-widest opacity-60" }, e), Ce = (e) => c({ class: "flex w-4 h-4", html: e }), Se = (e) => c({ class: "flex-auto" }, e), ke = (e, t) => W({
@@ -167,7 +167,7 @@ class At extends k {
167
167
  ]);
168
168
  }
169
169
  }
170
- const Te = u((e, t) => l({ ...e, class: "flex flex-auto flex-col gap-y-2" }, t)), Be = u((e, t) => j({ ...e, class: "flex auto text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70" }, t)), Le = u((e, t) => w({ ...e, class: "text-sm text-muted-foreground italic" }, t)), Ae = u((e, t) => w({ ...e, class: "text-sm text-destructive" }, t)), Mt = u((e, t = []) => fe({ class: "flex flex-auto flex-col gap-y-0", margin: "m-0", padding: "p-0" }, [
170
+ const Te = u((e, t) => l({ ...e, class: "flex flex-auto flex-col gap-y-2" }, t)), Be = u((e, t) => O({ ...e, class: "flex auto text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70" }, t)), Le = u((e, t) => w({ ...e, class: "text-sm text-muted-foreground italic" }, t)), Ae = u((e, t) => w({ ...e, class: "text-sm text-destructive" }, t)), Mt = u((e, t = []) => fe({ class: "flex flex-auto flex-col gap-y-0", margin: "m-0", padding: "p-0" }, [
171
171
  e.title && $({ class: "text-lg font-semibold py-4 px-6" }, e.title),
172
172
  e.description && w({ class: "text-sm text-muted-foreground pb-4 px-6 max-w-[700px]" }, e.description),
173
173
  ...t
@@ -193,7 +193,7 @@ const Te = u((e, t) => l({ ...e, class: "flex flex-auto flex-col gap-y-2" }, t))
193
193
  ...e,
194
194
  class: "w-full"
195
195
  }, n);
196
- }), Nt = D(
196
+ }), Ot = D(
197
197
  {
198
198
  /**
199
199
  * The initial state of the FormField.
@@ -236,16 +236,16 @@ const Te = u((e, t) => l({ ...e, class: "flex flex-auto flex-col gap-y-2" }, t))
236
236
  e.target.checkValidity() && (e.preventDefault(), s && s(e, t));
237
237
  }, ee = u(
238
238
  (e, t) => oe({ ...e, submit: (s, o) => je(s, o, e.submit), class: `w-full ${e.class ?? ""}` }, t)
239
- ), Ot = u((e, t) => l({ ...e, class: `flex flex-auto flex-col gap-y-6 p-4 md:p-6 divide-y ${e.class || ""}` }, t)), zt = u((e, t = []) => l({ class: "flex flex-col gap-y-3 py-4" }, [
239
+ ), zt = u((e, t) => l({ ...e, class: `flex flex-auto flex-col gap-y-6 p-4 md:p-6 divide-y ${e.class || ""}` }, t)), Et = u((e, t = []) => l({ class: "flex flex-col gap-y-3 py-4" }, [
240
240
  e.title && $({ class: "font-semibold" }, e.title),
241
241
  ...t
242
- ])), Et = (e, t) => l({ class: "flex justify-between" }, [
242
+ ])), Nt = (e, t) => l({ class: "flex justify-between" }, [
243
243
  c({ class: "text-muted-foreground" }, e),
244
244
  c(t)
245
245
  ]), Ut = (e, t) => l({ class: "flex" }, [
246
246
  c({ class: "text-muted-foreground mr-8 w-24 truncate text-nowrap" }, e),
247
247
  c(t)
248
- ]), Ne = ({ title: e, description: t, back: s, icon: o, options: n = [] }) => L({ class: "modal-header bg-background/80 backdrop-blur-md sticky flex flex-none items-center py-4 px-6 z-10" }, [
248
+ ]), Oe = ({ title: e, description: t, back: s, icon: o, options: n = [] }) => L({ class: "modal-header bg-background/80 backdrop-blur-md sticky flex flex-none items-center py-4 px-6 z-10" }, [
249
249
  /**
250
250
  * Back Button
251
251
  */
@@ -264,7 +264,7 @@ const Te = u((e, t) => l({ ...e, class: "flex flex-auto flex-col gap-y-2" }, t))
264
264
  ]),
265
265
  ...n
266
266
  ])
267
- ]), Oe = u((e, t) => l({
267
+ ]), ze = u((e, t) => l({
268
268
  popover: "manual",
269
269
  class: `modal m-auto top-0 right-0 bottom-0 left-0 fixed z-20 grid w-full h-full max-h-screen gap-2 lg:border bg-background text-foreground shadow-xl break-words p-0 ${e.class}`,
270
270
  click: (s, o) => {
@@ -272,11 +272,11 @@ const Te = u((e, t) => l({ ...e, class: "flex flex-auto flex-col gap-y-2" }, t))
272
272
  }
273
273
  }, [
274
274
  ee({ class: "modal-content relative bg-background z-[1] flex flex-auto flex-col gap-y-4", submit: (s, o) => e.onSubmit && e.onSubmit(o) }, [
275
- Ne(e),
275
+ Oe(e),
276
276
  l({ class: "modal-body flex flex-grow flex-col overflow-y-auto py-0 px-6 z-0" }, t),
277
- N({ class: "modal-footer sticky bg-background/80 backdrop-blur-md flex flex-none justify-between py-4 px-6 z-10" }, e.buttons)
277
+ z({ class: "modal-footer sticky bg-background/80 backdrop-blur-md flex flex-none justify-between py-4 px-6 z-10" }, e.buttons)
278
278
  ])
279
- ])), ze = (e) => X.render(e, app.root);
279
+ ])), Ee = (e) => X.render(e, app.root);
280
280
  class Vt extends k {
281
281
  /**
282
282
  * This will declare the props for the compiler.
@@ -293,7 +293,7 @@ class Vt extends k {
293
293
  */
294
294
  render() {
295
295
  const t = this.getMainClass(), s = this.title || "", o = this.description || null;
296
- return Oe(
296
+ return ze(
297
297
  {
298
298
  class: t,
299
299
  title: s,
@@ -408,7 +408,7 @@ class Vt extends k {
408
408
  * @returns {void}
409
409
  */
410
410
  open() {
411
- ze(this), this.showModal();
411
+ Ee(this), this.showModal();
412
412
  }
413
413
  /**
414
414
  * This will destroy the modal.
@@ -463,7 +463,7 @@ const R = {
463
463
  borderColor: "border",
464
464
  iconColor: "text-muted-foreground"
465
465
  }
466
- }, Ee = (e) => L({ class: "flex justify-center" }, [
466
+ }, Ne = (e) => L({ class: "flex justify-center" }, [
467
467
  ne({ class: "text-lg font-bold mb-0" }, e)
468
468
  ]), Ue = u(({ href: e, class: t }, s) => J({
469
469
  class: `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}`,
@@ -553,10 +553,10 @@ class Re extends k {
553
553
  this.icon && C({ class: `mr-4 ${t}`, html: this.icon }),
554
554
  l({ class: "flex flex-auto flex-col" }, [
555
555
  l({ class: "flex flex-auto flex-row items-center w-full pr-12" }, [
556
- this.title && Ee(this.title)
556
+ this.title && Ne(this.title)
557
557
  ]),
558
558
  w({ class: "text-base text-muted-foreground m-0 pr-12" }, this.description),
559
- (this.primary || this.secondary) && N({ class: "margin-top-24 flex align-center" }, this.getButtons())
559
+ (this.primary || this.secondary) && z({ class: "margin-top-24 flex align-center" }, this.getButtons())
560
560
  ])
561
561
  ]),
562
562
  h({
@@ -618,12 +618,12 @@ const H = globalThis.matchMedia, M = u(({ value: e, label: t, icon: s }) => b({
618
618
  onState: ["method", { active: e }],
619
619
  dataSet: ["method", ["state", e, "active"]],
620
620
  click: (o, { state: n }) => {
621
- n.method = e, localStorage.setItem("theme", e), e === "system" && localStorage.removeItem("theme"), Ye(e);
621
+ n.method = e, localStorage.setItem("theme", e), e === "system" && localStorage.removeItem("theme"), qe(e);
622
622
  }
623
623
  }, [
624
624
  x(s),
625
625
  c(t)
626
- ])), Ye = (e) => {
626
+ ])), qe = (e) => {
627
627
  const t = document.documentElement;
628
628
  if (e === "system" && (e = globalThis.matchMedia?.("(prefers-color-scheme: dark)").matches ? "dark" : "light"), H && !H("(prefers-color-scheme: " + e + ")").matches) {
629
629
  t.classList.add(e);
@@ -658,7 +658,7 @@ const H = globalThis.matchMedia, M = u(({ value: e, label: t, icon: s }) => b({
658
658
  };
659
659
  }
660
660
  }
661
- ), Yt = D(
661
+ ), qt = D(
662
662
  {
663
663
  /**
664
664
  * The initial state of the Toggle.
@@ -720,8 +720,8 @@ const H = globalThis.matchMedia, M = u(({ value: e, label: t, icon: s }) => b({
720
720
  OFFLINE: "bg-gray-500",
721
721
  BUSY: "bg-red-500",
722
722
  AWAY: "bg-yellow-500"
723
- }, qe = (e = "") => (e = e.toUpperCase(), S[e] || S.OFFLINE), qt = (e) => l({
724
- class: `absolute bottom-0 right-0 w-3 h-3 border-2 rounded-full ${qe(e)}`
723
+ }, Ye = (e = "") => (e = e.toUpperCase(), S[e] || S.OFFLINE), Yt = (e) => l({
724
+ class: `absolute bottom-0 right-0 w-3 h-3 border-2 rounded-full ${Ye(e)}`
725
725
  }), _t = ({ propName: e = "status" } = {}) => l({
726
726
  class: "absolute bottom-0 right-0 w-3 h-3 border-2 rounded-full",
727
727
  onSet: [e, {
@@ -750,7 +750,7 @@ const H = globalThis.matchMedia, M = u(({ value: e, label: t, icon: s }) => b({
750
750
  */
751
751
  openFileBrowse() {
752
752
  const e = this.input;
753
- e && (e.value = "", v.trigger("click", e));
753
+ e && (e.value = "", y.trigger("click", e));
754
754
  },
755
755
  /**
756
756
  * Get the URL for the uploaded file.
@@ -786,7 +786,7 @@ const H = globalThis.matchMedia, M = u(({ value: e, label: t, icon: s }) => b({
786
786
  s.preventDefault(), s.stopPropagation(), this.openFileBrowse();
787
787
  }
788
788
  }, [
789
- B("loaded", (s) => s === !1 || _e(this.src) ? j({
789
+ B("loaded", (s) => s === !1 || _e(this.src) ? O({
790
790
  htmlFor: e,
791
791
  class: "z-10 flex flex-col items-center justify-center text-sm text-muted-foreground group-hover:text-primary"
792
792
  }, [
@@ -821,7 +821,7 @@ const H = globalThis.matchMedia, M = u(({ value: e, label: t, icon: s }) => b({
821
821
  */
822
822
  openFileBrowse() {
823
823
  const e = this.input;
824
- e && (e.value = "", v.trigger("click", e));
824
+ e && (e.value = "", y.trigger("click", e));
825
825
  },
826
826
  /**
827
827
  * Get the URL for the uploaded file.
@@ -863,7 +863,7 @@ const H = globalThis.matchMedia, M = u(({ value: e, label: t, icon: s }) => b({
863
863
  // @ts-ignore
864
864
  src: this.src,
865
865
  class: "absolute inset-0 w-full h-full object-cover rounded-full"
866
- }) : j({
866
+ }) : O({
867
867
  htmlFor: e,
868
868
  class: "z-10 flex flex-col items-center justify-center text-sm text-muted-foreground group-hover:text-primary"
869
869
  }, [
@@ -929,7 +929,7 @@ const H = globalThis.matchMedia, M = u(({ value: e, label: t, icon: s }) => b({
929
929
  );
930
930
  }
931
931
  }
932
- ), Y = {
932
+ ), q = {
933
933
  xs: "h-1 w-1",
934
934
  sm: "h-2 w-2",
935
935
  md: "h-4 w-4",
@@ -938,7 +938,7 @@ const H = globalThis.matchMedia, M = u(({ value: e, label: t, icon: s }) => b({
938
938
  "2xl": "h-16 w-16",
939
939
  "3xl": "h-24 w-24",
940
940
  default: "h-4 w-4"
941
- }, Ke = (e) => Y[e] || Y.default, Qe = ({ index: e, size: t }) => l({ class: `${t} rounded-full bg-muted cursor-pointer` }, [
941
+ }, Ke = (e) => q[e] || q.default, Qe = ({ index: e, size: t }) => l({ class: `${t} rounded-full bg-muted cursor-pointer` }, [
942
942
  c({
943
943
  class: "block w-full h-full rounded-full transition-colors",
944
944
  onSet: ["activeIndex", {
@@ -1187,16 +1187,7 @@ const H = globalThis.matchMedia, M = u(({ value: e, label: t, icon: s }) => b({
1187
1187
  placeholder: e || "mm/dd/yyyy",
1188
1188
  input: t,
1189
1189
  focus: s,
1190
- onState: ["selectedDate", (o) => {
1191
- if (o) {
1192
- const n = new Date(o);
1193
- if (!isNaN(n.getTime())) {
1194
- const r = (n.getMonth() + 1).toString().padStart(2, "0"), i = n.getDate().toString().padStart(2, "0"), a = n.getFullYear();
1195
- return `${r}/${i}/${a}`;
1196
- }
1197
- }
1198
- return "";
1199
- }]
1190
+ onState: ["selectedDate", (o) => o ? j.format("standard", o) : ""]
1200
1191
  }), at = ({ bind: e, required: t, toggleOpen: s, handleInputChange: o, handleInputFocus: n, placeholder: r }) => l(
1201
1192
  {
1202
1193
  class: "relative flex items-center gap-2 w-full justify-between border bg-input hover:bg-muted rounded-md h-10 pr-4 py-2"
@@ -1214,7 +1205,7 @@ const H = globalThis.matchMedia, M = u(({ value: e, label: t, icon: s }) => b({
1214
1205
  ]
1215
1206
  )
1216
1207
  ]
1217
- ), ct = ({ handleDateSelect: e, blockPriorDates: t }) => O(
1208
+ ), ct = ({ handleDateSelect: e, blockPriorDates: t }) => E(
1218
1209
  (s, o, n) => new F({
1219
1210
  cache: "dropdown",
1220
1211
  parent: n,
@@ -1259,16 +1250,16 @@ const H = globalThis.matchMedia, M = u(({ value: e, label: t, icon: s }) => b({
1259
1250
  const i = n.target.value.replace(/\D/g, "");
1260
1251
  let a = "";
1261
1252
  if (i.length > 0 && (a = i.substring(0, 2), i.length > 2 && (a += "/" + i.substring(2, 4), i.length > 4 && (a += "/" + i.substring(4, 8)))), n.target.value = a, i.length === 8) {
1262
- const m = parseInt(i.substring(0, 2), 10), g = parseInt(i.substring(2, 4), 10), y = parseInt(i.substring(4, 8), 10);
1263
- if (m >= 1 && m <= 12 && g >= 1 && g <= 31 && y >= 1900) {
1264
- const p = `${y}-${m.toString().padStart(2, "0")}-${g.toString().padStart(2, "0")}`;
1265
- this.state.selectedDate = p, this.input.value = p, v.trigger("change", this.input), typeof this.onChange == "function" && this.onChange(p);
1253
+ const m = parseInt(i.substring(0, 2), 10), g = parseInt(i.substring(2, 4), 10), v = parseInt(i.substring(4, 8), 10);
1254
+ if (m >= 1 && m <= 12 && g >= 1 && g <= 31 && v >= 1900) {
1255
+ const p = `${v}-${m.toString().padStart(2, "0")}-${g.toString().padStart(2, "0")}`;
1256
+ this.state.selectedDate = p, this.input.value = p, y.trigger("change", this.input), typeof this.onChange == "function" && this.onChange(p);
1266
1257
  }
1267
1258
  }
1268
1259
  }, s = (n) => {
1269
1260
  n.target.select();
1270
1261
  }, o = (n) => {
1271
- this.state.selectedDate = n, this.state.open = !1, this.input.value = n, v.trigger("change", this.input), typeof this.onChange == "function" && this.onChange(n);
1262
+ this.state.selectedDate = n, this.state.open = !1, this.input.value = n, y.trigger("change", this.input), typeof this.onChange == "function" && this.onChange(n);
1272
1263
  };
1273
1264
  return l(
1274
1265
  { class: "relative w-full max-w-[320px]" },
@@ -1305,7 +1296,7 @@ const H = globalThis.matchMedia, M = u(({ value: e, label: t, icon: s }) => b({
1305
1296
  c(U.date(["[[end]]", o], "End Date"))
1306
1297
  ]),
1307
1298
  C({ html: d.calendar.days })
1308
- ]), ht = ({ handleDateSelect: e, blockPriorDates: t }) => O((s, o, n) => new F({
1299
+ ]), ht = ({ handleDateSelect: e, blockPriorDates: t }) => E((s, o, n) => new F({
1309
1300
  cache: "dropdown",
1310
1301
  parent: n,
1311
1302
  button: n.panel,
@@ -1350,7 +1341,7 @@ const H = globalThis.matchMedia, M = u(({ value: e, label: t, icon: s }) => b({
1350
1341
  */
1351
1342
  render() {
1352
1343
  const e = (s, { state: o }) => o.toggle("open"), t = (s, o) => {
1353
- this.state.start = s, this.state.end = o, this.state.open = !1, this.input.value = `${s}-${o}`, v.trigger("change", this.input), typeof this.onChange == "function" && this.onChange({ start: s, end: o }, this.parent);
1344
+ this.state.start = s, this.state.end = o, this.state.open = !1, this.input.value = `${s}-${o}`, y.trigger("change", this.input), typeof this.onChange == "function" && this.onChange({ start: s, end: o }, this.parent);
1354
1345
  };
1355
1346
  return l({ class: "relative w-full max-w-[320px]" }, [
1356
1347
  dt({
@@ -1369,8 +1360,8 @@ const H = globalThis.matchMedia, M = u(({ value: e, label: t, icon: s }) => b({
1369
1360
  new be({
1370
1361
  dateTime: e,
1371
1362
  filter: s || ((o) => {
1372
- const n = E.getLocalTime(o, !0, !1, t);
1373
- return E.getTimeFrame(n);
1363
+ const n = j.getLocalTime(o, !0, !1, t);
1364
+ return j.getTimeFrame(n);
1374
1365
  })
1375
1366
  })
1376
1367
  ]);
@@ -1427,7 +1418,7 @@ function P({ items: e, handleTimeSelect: t, state: s, stateValue: o, pad: n = !1
1427
1418
  );
1428
1419
  }
1429
1420
  function pt({ handleTimeSelect: e }) {
1430
- return O(
1421
+ return E(
1431
1422
  (t, s, o) => new F(
1432
1423
  {
1433
1424
  cache: "dropdown",
@@ -1473,7 +1464,7 @@ function pt({ handleTimeSelect: e }) {
1473
1464
  )
1474
1465
  );
1475
1466
  }
1476
- function q(e) {
1467
+ function Y(e) {
1477
1468
  if (!e)
1478
1469
  return { hour: null, minute: null, meridian: null };
1479
1470
  const t = /^(\d{1,2}):(\d{2})(?::(\d{2}))?\s?(AM|PM)?$/i, s = e.match(t);
@@ -1494,7 +1485,7 @@ const ss = D(
1494
1485
  * @member {object} state
1495
1486
  */
1496
1487
  state() {
1497
- const e = this.selectedTime ?? null, { hour: t, minute: s, meridian: o } = q(e);
1488
+ const e = this.selectedTime ?? null, { hour: t, minute: s, meridian: o } = Y(e);
1498
1489
  return {
1499
1490
  selectedTime: e,
1500
1491
  open: !1,
@@ -1510,7 +1501,7 @@ const ss = D(
1510
1501
  */
1511
1502
  after() {
1512
1503
  if (this.input.value) {
1513
- const { hour: e, minute: t, meridian: s } = q(this.input.value);
1504
+ const { hour: e, minute: t, meridian: s } = Y(this.input.value);
1514
1505
  this.state.set({
1515
1506
  hour: e,
1516
1507
  minute: t,
@@ -1530,15 +1521,15 @@ const ss = D(
1530
1521
  if (r.length > 0 && (i = r.substring(0, 2), r.length > 2 && (i += ":" + r.substring(2, 4))), r.length >= 4) {
1531
1522
  const a = parseInt(r.substring(0, 2), 10), m = parseInt(r.substring(2, 4), 10);
1532
1523
  if (a >= 0 && a <= 23 && m >= 0 && m <= 59) {
1533
- let g = a, y = "AM";
1534
- a === 0 ? g = 12 : a > 12 ? (g = a - 12, y = "PM") : a === 12 && (y = "PM");
1535
- const p = `${g.toString().padStart(2, "0")}:${m.toString().padStart(2, "0")} ${y}`;
1524
+ let g = a, v = "AM";
1525
+ a === 0 ? g = 12 : a > 12 ? (g = a - 12, v = "PM") : a === 12 && (v = "PM");
1526
+ const p = `${g.toString().padStart(2, "0")}:${m.toString().padStart(2, "0")} ${v}`;
1536
1527
  i = p, this.state.set({
1537
1528
  hour: g.toString().padStart(2, "0"),
1538
1529
  minute: m.toString().padStart(2, "0"),
1539
- meridian: y,
1530
+ meridian: v,
1540
1531
  selectedTime: p
1541
- }), this.input.value = p, v.trigger("change", this.input), typeof this.change == "function" && this.change(p);
1532
+ }), this.input.value = p, y.trigger("change", this.input), typeof this.change == "function" && this.change(p);
1542
1533
  }
1543
1534
  }
1544
1535
  n.target.value = i;
@@ -1547,7 +1538,7 @@ const ss = D(
1547
1538
  }, o = ({ hour: n, minute: r, meridian: i }) => {
1548
1539
  if (n && (this.state.hour = n), r && (this.state.minute = r), i && (this.state.meridian = i), this.state.hour && this.state.minute && this.state.meridian) {
1549
1540
  const a = `${this.state.hour}:${this.state.minute} ${this.state.meridian}`;
1550
- this.state.selectedTime = a, this.state.open = !1, this.input.value = a, v.trigger("change", this.input), typeof this.change == "function" && this.change(a);
1541
+ this.state.selectedTime = a, this.state.open = !1, this.input.value = a, y.trigger("change", this.input), typeof this.change == "function" && this.change(a);
1551
1542
  }
1552
1543
  };
1553
1544
  return l(
@@ -1572,7 +1563,7 @@ const ss = D(
1572
1563
  x({ size: "lg" }, e)
1573
1564
  ]), xt = ({ title: e }) => L({ class: "flex flex-auto items-center" }, [
1574
1565
  $({ class: "text-lg font-semibold" }, e)
1575
- ]), yt = u((e, t) => ae(
1566
+ ]), vt = u((e, t) => ae(
1576
1567
  {
1577
1568
  class: `fixed pullUpIn z-30 w-[98%] border md:w-full max-w-lg bg-popover text-foreground shadow-lg duration-200
1578
1569
  rounded-lg flex flex-auto flex-col
@@ -1590,11 +1581,11 @@ const ss = D(
1590
1581
  e.description && w({ class: "flex flex-auto flex-col text-sm text-muted-foreground" }, e.description),
1591
1582
  l({ class: "flex flex-auto flex-col text-sm text-muted-foreground" }, t)
1592
1583
  ]),
1593
- e.buttons && N({ class: "flex flex-col-reverse sm:flex-row sm:justify-end mt-6 gap-2 sm:gap-0 sm:gap-x-2" }, e.buttons)
1584
+ e.buttons && z({ class: "flex flex-col-reverse sm:flex-row sm:justify-end mt-6 gap-2 sm:gap-0 sm:gap-x-2" }, e.buttons)
1594
1585
  ])
1595
1586
  ])
1596
1587
  ]
1597
- )), vt = (e) => X.render(e, app.root), _ = {
1588
+ )), yt = (e) => X.render(e, app.root), _ = {
1598
1589
  info: {
1599
1590
  borderColor: "border-blue-500",
1600
1591
  bgColor: "bg-muted/10",
@@ -1639,7 +1630,7 @@ class wt extends k {
1639
1630
  const t = (a) => {
1640
1631
  a.target === this.panel && this.close();
1641
1632
  }, { borderColor: s, bgColor: o, iconColor: n } = _[this.type] || _.default, r = `${this.getMainClass()} ${o} ${s}`, i = this.title || "Dialog Title";
1642
- return yt({
1633
+ return vt({
1643
1634
  class: r,
1644
1635
  title: i,
1645
1636
  click: t,
@@ -1683,7 +1674,7 @@ class wt extends k {
1683
1674
  * @returns {void}
1684
1675
  */
1685
1676
  open() {
1686
- vt(this), this.panel.showModal(), this.state.open = !0;
1677
+ yt(this), this.panel.showModal(), this.state.open = !0;
1687
1678
  }
1688
1679
  /**
1689
1680
  * This will close the modal.
@@ -1755,11 +1746,11 @@ export {
1755
1746
  Gt as L,
1756
1747
  Vt as M,
1757
1748
  Rt as N,
1758
- yt as O,
1749
+ vt as O,
1759
1750
  nt as P,
1760
1751
  wt as Q,
1761
1752
  ns as R,
1762
- Et as S,
1753
+ Nt as S,
1763
1754
  Ht as T,
1764
1755
  ke as a,
1765
1756
  At as b,
@@ -1771,17 +1762,17 @@ export {
1771
1762
  Pt as h,
1772
1763
  jt as i,
1773
1764
  Pe as j,
1774
- Nt as k,
1765
+ Ot as k,
1775
1766
  ee as l,
1776
- Ot as m,
1777
- zt as n,
1767
+ zt as m,
1768
+ Et as n,
1778
1769
  Re as o,
1779
- Yt as p,
1780
- qt as q,
1770
+ qt as p,
1771
+ Yt as q,
1781
1772
  _t as r,
1782
1773
  T as s,
1783
1774
  S as t,
1784
- qe as u,
1775
+ Ye as u,
1785
1776
  Kt as v,
1786
1777
  Qt as w,
1787
1778
  ot as x,
package/dist/index.es.js CHANGED
@@ -3,9 +3,9 @@ import { B as u, I as g, L as C } from "./buttons-CHEs54Wl.js";
3
3
  import { C as T, F as b, V as D, a as I } from "./veil-CVCuKSvj.js";
4
4
  import { C as F, d as B, D as P, c as k, E as M, F as v, H as x, I as N, M as f, N as y, P as h, R as U, T as L, a as W, b as H, U as R, W as w } from "./inputs-9udyzkHR.js";
5
5
  import { Icons as G } from "./icons.es.js";
6
- import { A as E, B as V, C as j, w as q, K as J, y as z, z as K, E as Q, G as _, D as X, m as Y, n as Z, Q as $, O as aa, v as ea, c as sa, a as oa, b as ta, R as ra, l as na, g as la, i as ia, h as pa, j as da, e as ma, k as ua, F as ga, d as Ca, f as ca, I as Ta, L as ba, x as Da, M as Ia, o as Sa, N as Fa, P as Ba, s as Pa, t as ka, S as Ma, q as va, r as xa, T as Na, H as fa, J as ya, p as ha, u as Ua } from "./empty-state-CmJE_BQv.js";
6
+ import { A as E, B as V, C as j, w as q, K as J, y as z, z as K, E as Q, G as _, D as X, m as Y, n as Z, Q as $, O as aa, v as ea, c as sa, a as oa, b as ta, R as ra, l as na, g as la, i as ia, h as pa, j as da, e as ma, k as ua, F as ga, d as Ca, f as ca, I as Ta, L as ba, x as Da, M as Ia, o as Sa, N as Fa, P as Ba, s as Pa, t as ka, S as Ma, q as va, r as xa, T as Na, H as fa, J as ya, p as ha, u as Ua } from "./empty-state-C5ekpz8A.js";
7
7
  import { A as Wa, b as Ha, C as Ra, D as wa, a as Aa, F as Ga, M as Oa, P as Ea, R as Va, c as ja, g as qa, p as Ja } from "./range-calendar-BMWSJTE0.js";
8
- import { B as Ka, p as Qa, C as _a, j as Xa, D as Ya, m as Za, k as $a, H as ae, I as ee, N as se, O as oe, P as te, S as re, n as ne, o as le, x as ie, s as pe, q as de, r as me, T as ue, t as ge, w as Ce, u as ce, v as Te, l as be, U as De, W as Ie, f as Se, h as Fe, i as Be, c as Pe, d as ke, b as Me, e as ve, a as xe, g as Ne } from "./signature-panel-BjD2KkN6.js";
8
+ import { B as Ka, p as Qa, C as _a, j as Xa, D as Ya, m as Za, k as $a, H as ae, I as ee, N as se, O as oe, P as te, S as re, n as ne, o as le, x as ie, s as pe, q as de, r as me, T as ue, t as ge, w as Ce, u as ce, v as Te, l as be, U as De, W as Ie, f as Se, h as Fe, i as Be, c as Pe, d as ke, b as Me, e as ve, a as xe, g as Ne } from "./signature-panel-Dshz3HOW.js";
9
9
  import { B as ye, I as he, M as Ue, d as Le, e as We, g as He, N as Re, b as we, a as Ae, f as Ge, P as Oe, c as Ee, S as Ve, T as je } from "./mobile-nav-wrapper-CWqhZ0qz.js";
10
10
  import { B as Je, a as ze, C as Ke, F as Qe, b as _e, c as Xe, M as Ye, P as Ze, S as $e } from "./sidebar-menu-page-UmKsAvjb.js";
11
11
  import { A as es, F as ss, M as os, a as ts, T as rs } from "./aside-template-sUm-F2f0.js";
@@ -1,4 +1,4 @@
1
- import { A as s, B as t, C as e, w as r, K as i, y as n, z as m, E as l, G as d, D as C, m as p, n as S, Q as g, O as u, v as D, c, a as F, b as T, R as P, l as A, g as I, i as f, h as w, j as b, e as y, k as B, F as M, d as k, f as x, I as L, L as R, x as U, M as v, o as E, N, P as h, s as G, t as O, S as j, q, r as z, T as H, H as J, J as K, p as Q, u as _ } from "./empty-state-CmJE_BQv.js";
1
+ import { A as s, B as t, C as e, w as r, K as i, y as n, z as m, E as l, G as d, D as C, m as p, n as S, Q as g, O as u, v as D, c, a as F, b as T, R as P, l as A, g as I, i as f, h as w, j as b, e as y, k as B, F as M, d as k, f as x, I as L, L as R, x as U, M as v, o as E, N, P as h, s as G, t as O, S as j, q, r as z, T as H, H as J, J as K, p as Q, u as _ } from "./empty-state-C5ekpz8A.js";
2
2
  import { A as W, P as X, g as Y } from "./range-calendar-BMWSJTE0.js";
3
3
  export {
4
4
  s as Alert,
@@ -1,4 +1,4 @@
1
- import { B as s, p as n, C as t, j as o, D as r, m as l, k as i, H as d, I as b, N as u, O as v, P as g, S as p, n as T, o as D, x as N, s as k, q as C, r as c, T as B, t as M, w as m, u as y, v as W, l as h, U as S, W as H, f as P, h as U, i as x, c as I, d as f, b as L, e as O, a as F, g as G } from "./signature-panel-BjD2KkN6.js";
1
+ import { B as s, p as n, C as t, j as o, D as r, m as l, k as i, H as d, I as b, N as u, O as v, P as g, S as p, n as T, o as D, x as N, s as k, q as C, r as c, T as B, t as M, w as m, u as y, v as W, l as h, U as S, W as H, f as P, h as U, i as x, c as I, d as f, b as L, e as O, a as F, g as G } from "./signature-panel-Dshz3HOW.js";
2
2
  import { b as R, C as j, D as q, a as z, F as A, M as E, R as J, c as K, p as Q } from "./range-calendar-BMWSJTE0.js";
3
3
  import { B as X, I as Y, M as Z, d as _, e as $, g as aa, N as ea, b as sa, a as na, f as ta, P as oa, c as ra, S as la, T as ia } from "./mobile-nav-wrapper-CWqhZ0qz.js";
4
4
  export {
@@ -1607,7 +1607,7 @@ const Je = (t) => w(
1607
1607
  },
1608
1608
  [
1609
1609
  k({
1610
- class: "flex flex-auto justify-center items-center px-4 py-3 disabled:opacity-50 disabled:cursor-not-allowed",
1610
+ class: "flex flex-auto justify-center items-center px-4 py-3 disabled:opacity-50 disabled:cursor-not-allowed cursor-pointer",
1611
1611
  onSet: ["selected", { selected: t.value }],
1612
1612
  click: (e) => t.callBack(t.value),
1613
1613
  disabled: t.disabled
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@base-framework/ui",
3
- "version": "1.0.320",
3
+ "version": "1.0.322",
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": {