@base-framework/ui 1.0.314 → 1.0.316

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,8 +1,8 @@
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 v, I as w, Li as W, Span as c, Ul as G, Button as p, 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 re, Input as C, Img as K, Nav as le, 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 D, Events as y, DateTime as E } from "@base-framework/base";
3
3
  import { P as F, b as de, R as he } from "./range-calendar-BMWSJTE0.js";
4
- import { C as fe, F as me, a as D } from "./veil-CVCuKSvj.js";
5
- import { B as h, I as x } from "./buttons-CHEs54Wl.js";
4
+ import { C as fe, F as me, a as I } from "./veil-CVCuKSvj.js";
5
+ import { B as m, I as b } from "./buttons-CHEs54Wl.js";
6
6
  import { Icons as d } from "./icons.es.js";
7
7
  import { Timer as ge, List as pe, DynamicTime as be } from "@base-framework/organisms";
8
8
  import { F as U } from "./format-DnofNaaz.js";
@@ -33,8 +33,8 @@ const V = {
33
33
  iconColor: "text-muted-foreground"
34
34
  }
35
35
  }, xe = (e, t) => l({ class: `flex items-center justify-center h-6 w-6 mr-3 ${t}` }, [
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" }) => {
36
+ w({ html: e })
37
+ ]), ye = (e) => se({ class: "font-semibold" }, e), ve = (e) => v({ class: "text-sm text-muted-foreground" }, e), Ft = 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
@@ -45,7 +45,7 @@ const V = {
45
45
  ])
46
46
  ]);
47
47
  });
48
- class Lt extends k {
48
+ class Tt extends k {
49
49
  /**
50
50
  * This will declare the props for the compiler.
51
51
  *
@@ -76,14 +76,14 @@ const we = (e) => c({ class: "ml-auto text-xs tracking-widest opacity-60" }, e),
76
76
  e.icon && Ce(e.icon),
77
77
  Se(e.label),
78
78
  e.shortcut && we(e.shortcut)
79
- ]), Ie = (e, t) => G({ class: "grid gap-2" }, [
79
+ ]), De = (e, t) => G({ class: "grid gap-2" }, [
80
80
  e.map((s) => ke(s, t))
81
- ]), De = (e) => l({ class: "w-full z-10" }, [
81
+ ]), Ie = (e) => l({ class: "w-full z-10" }, [
82
82
  l({
83
83
  class: "max-h-60 border rounded-md overflow-y-auto p-1 grid gap-2 divide-y divide-border",
84
- for: ["groups", (t) => Ie(t, e)]
84
+ for: ["groups", (t) => De(t, e)]
85
85
  })
86
- ]), $e = ({ label: e, icon: t, toggleDropdown: s }) => b({
86
+ ]), $e = ({ label: e, icon: t, toggleDropdown: s }) => p({
87
87
  cache: "button",
88
88
  class: `inline-flex items-center justify-between rounded-md border
89
89
  px-2 py-2 text-sm font-medium hover:bg-muted
@@ -91,7 +91,7 @@ const we = (e) => c({ class: "ml-auto text-xs tracking-widest opacity-60" }, e),
91
91
  click: s
92
92
  }, [
93
93
  e && c(e),
94
- t && C({ html: t })
94
+ t && w({ html: t })
95
95
  ]), Fe = ({ onSelect: e }) => l([
96
96
  B(
97
97
  "open",
@@ -100,11 +100,11 @@ const we = (e) => c({ class: "ml-auto text-xs tracking-widest opacity-60" }, e),
100
100
  parent: o,
101
101
  button: o.button
102
102
  }, [
103
- De(e)
103
+ Ie(e)
104
104
  ]) : null
105
105
  )
106
106
  ]);
107
- class At extends k {
107
+ class Bt extends k {
108
108
  /**
109
109
  * This will declare the props for the compiler.
110
110
  *
@@ -167,13 +167,13 @@ 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) => 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) => v({ ...e, class: "text-sm text-muted-foreground italic" }, t)), Ae = u((e, t) => v({ ...e, class: "text-sm text-destructive" }, t)), Lt = 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
- e.description && w({ class: "text-sm text-muted-foreground pb-4 px-6 max-w-[700px]" }, e.description),
172
+ e.description && v({ class: "text-sm text-muted-foreground pb-4 px-6 max-w-[700px]" }, e.description),
173
173
  ...t
174
- ])), Pt = u((e, t = []) => me({ label: e.label, description: e.description, class: "py-4 px-6", border: e.border }, [
174
+ ])), At = u((e, t = []) => me({ label: e.label, description: e.description, class: "py-4 px-6", border: e.border }, [
175
175
  l({ class: "flex flex-col gap-y-6" }, t)
176
- ])), jt = u((e, t = []) => {
176
+ ])), Mt = u((e, t = []) => {
177
177
  const s = e.border ? "border-t" : "";
178
178
  return l({ ...e, class: `flex flex-col pb-4 px-6 gap-y-4 ${s} ${e.class || ""}` }, t);
179
179
  }), Me = (e) => e.tag === "input" || e.tag === "select" || e.tag === "textarea", Z = (e, t, s) => e.map((o) => !o || (o.children && o.children.length > 0 && (o.children = Z(o.children, t, s)), !o.required) ? o : Me(o) ? {
@@ -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
+ }), Pt = I(
197
197
  {
198
198
  /**
199
199
  * The initial state of the FormField.
@@ -236,24 +236,24 @@ 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
+ ), jt = u((e, t) => l({ ...e, class: `flex flex-auto flex-col gap-y-6 p-4 md:p-6 divide-y ${e.class || ""}` }, t)), Nt = 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
+ ])), Ot = (e, t) => l({ class: "flex justify-between" }, [
243
243
  c({ class: "text-muted-foreground" }, e),
244
244
  c(t)
245
- ]), Ut = (e, t) => l({ class: "flex" }, [
245
+ ]), zt = (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
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" }, [
249
249
  /**
250
250
  * Back Button
251
251
  */
252
- s && h({ variant: "icon", icon: d.arrows.left, class: "mr-2 p-0 flex sm:hidden", click: (r, i) => i.close() }),
252
+ s && m({ variant: "icon", icon: d.arrows.left, class: "mr-2 p-0 flex sm:hidden", click: (r, i) => i.close() }),
253
253
  /**
254
254
  * Icon
255
255
  */
256
- o && l({ class: "mr-2 w-12 h-12 rounded-full bg-muted flex flex-none items-center justify-center" }, [x(o)]),
256
+ o && l({ class: "mr-2 w-12 h-12 rounded-full bg-muted flex flex-none items-center justify-center" }, [b(o)]),
257
257
  /**
258
258
  * Title and Description
259
259
  */
@@ -277,7 +277,7 @@ const Te = u((e, t) => l({ ...e, class: "flex flex-auto flex-col gap-y-2" }, t))
277
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)
278
278
  ])
279
279
  ])), ze = (e) => X.render(e, app.root);
280
- class Vt extends k {
280
+ class Et extends k {
281
281
  /**
282
282
  * This will declare the props for the compiler.
283
283
  *
@@ -341,8 +341,8 @@ class Vt extends k {
341
341
  */
342
342
  getButtons() {
343
343
  return [
344
- h({ variant: "outline", click: () => this.destroy() }, "Cancel"),
345
- this.hidePrimaryButton !== !0 && h({ variant: "primary", type: "submit" }, "Save")
344
+ m({ variant: "outline", click: () => this.destroy() }, "Cancel"),
345
+ this.hidePrimaryButton !== !0 && m({ variant: "primary", type: "submit" }, "Save")
346
346
  ];
347
347
  }
348
348
  /**
@@ -536,8 +536,8 @@ class Re extends k {
536
536
  getButtons() {
537
537
  return [
538
538
  l({ class: "flex flex-row mt-6 gap-2" }, [
539
- this.secondary && h({ variant: "outline", click: () => this.secondaryAction && this.secondaryAction() }, this.secondary),
540
- this.primary && h({ click: () => this.primaryAction && this.primaryAction() }, this.primary)
539
+ this.secondary && m({ variant: "outline", click: () => this.secondaryAction && this.secondaryAction() }, this.secondary),
540
+ this.primary && m({ click: () => this.primaryAction && this.primaryAction() }, this.primary)
541
541
  ])
542
542
  ];
543
543
  }
@@ -550,16 +550,16 @@ class Re extends k {
550
550
  getChildren(t) {
551
551
  return [
552
552
  l({ class: "flex items-start" }, [
553
- this.icon && C({ class: `mr-4 ${t}`, html: this.icon }),
553
+ this.icon && w({ 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
556
  this.title && Ee(this.title)
557
557
  ]),
558
- w({ class: "text-base text-muted-foreground m-0 pr-12" }, this.description),
558
+ v({ class: "text-base text-muted-foreground m-0 pr-12" }, this.description),
559
559
  (this.primary || this.secondary) && N({ class: "margin-top-24 flex align-center" }, this.getButtons())
560
560
  ])
561
561
  ]),
562
- h({
562
+ m({
563
563
  class: "absolute top-[12px] right-[12px]",
564
564
  variant: "icon",
565
565
  icon: d.x,
@@ -577,8 +577,8 @@ class Re extends k {
577
577
  t && t.stopPropagation(), this.duration !== "infinite" && this.timer.stop(), this.onClick && this.onClick(), this.destroy();
578
578
  }
579
579
  }
580
- let He = 0;
581
- class Rt extends k {
580
+ let Ye = 0;
581
+ class Ut extends k {
582
582
  /**
583
583
  * This will render the component.
584
584
  *
@@ -601,7 +601,7 @@ class Rt extends k {
601
601
  * @returns {void}
602
602
  */
603
603
  addNotice(t = {}) {
604
- t.id = He++, t.callBack = () => this.removeNotice(t), this.list.append([t]), this.panel.hidePopover(), this.panel.showPopover();
604
+ t.id = Ye++, t.callBack = () => this.removeNotice(t), this.list.append([t]), this.panel.hidePopover(), this.panel.showPopover();
605
605
  }
606
606
  /**
607
607
  * This will remove a notification.
@@ -613,25 +613,25 @@ class Rt extends k {
613
613
  this.list.delete(t.id), this.list.isEmpty() && this.panel.hidePopover();
614
614
  }
615
615
  }
616
- const H = globalThis.matchMedia, M = u(({ value: e, label: t, icon: s }) => b({
616
+ const Y = globalThis.matchMedia, M = u(({ value: e, label: t, icon: s }) => p({
617
617
  class: 'text-sm gap-1 font-medium leading-none disabled:cursor-not-allowed disabled:opacity-70 flex flex-col items-center justify-between rounded-md border-2 bg-popover p-4 hover:bg-accent hover:text-accent-foreground data-[state="active"]:border-primary [&:has([data-state="active"])]:border-primary',
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
- x(s),
624
+ b(s),
625
625
  c(t)
626
- ])), Ye = (e) => {
626
+ ])), qe = (e) => {
627
627
  const t = document.documentElement;
628
- if (e === "system" && (e = globalThis.matchMedia?.("(prefers-color-scheme: dark)").matches ? "dark" : "light"), H && !H("(prefers-color-scheme: " + e + ")").matches) {
628
+ if (e === "system" && (e = globalThis.matchMedia?.("(prefers-color-scheme: dark)").matches ? "dark" : "light"), Y && !Y("(prefers-color-scheme: " + e + ")").matches) {
629
629
  t.classList.add(e);
630
630
  return;
631
631
  }
632
632
  const s = e === "light" ? "dark" : "light";
633
633
  t.classList.remove(s);
634
- }, Ht = I(
634
+ }, Vt = D(
635
635
  {
636
636
  /**
637
637
  * This will render the component.
@@ -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
+ ), Rt = I(
662
662
  {
663
663
  /**
664
664
  * The initial state of the Toggle.
@@ -685,14 +685,14 @@ const H = globalThis.matchMedia, M = u(({ value: e, label: t, icon: s }) => b({
685
685
  * @returns {object}
686
686
  */
687
687
  render() {
688
- return b({
688
+ return p({
689
689
  class: "relative inline-flex h-6 w-11 min-w-11 items-center rounded-full bg-muted transition-colors focus:outline-none",
690
690
  onState: ["active", { "bg-primary": !0, "bg-muted": !1 }],
691
691
  click: (t, { state: s }) => {
692
692
  s.toggle("active"), this.checkbox.checked = s.active, this.change && this.change(s.active, t, this);
693
693
  }
694
694
  }, [
695
- le({
695
+ re({
696
696
  cache: "checkbox",
697
697
  class: "opacity-0 absolute top-0 left-0 bottom-0 right-0 w-full h-full",
698
698
  /**
@@ -720,9 +720,9 @@ 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)}`
725
- }), _t = ({ propName: e = "status" } = {}) => l({
723
+ }, He = (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 ${He(e)}`
725
+ }), qt = ({ propName: e = "status" } = {}) => l({
726
726
  class: "absolute bottom-0 right-0 w-3 h-3 border-2 rounded-full",
727
727
  onSet: [e, {
728
728
  [S.ONLINE]: T.ONLINE,
@@ -730,7 +730,7 @@ const H = globalThis.matchMedia, M = u(({ value: e, label: t, icon: s }) => b({
730
730
  [S.BUSY]: T.BUSY,
731
731
  [S.AWAY]: T.AWAY
732
732
  }]
733
- }), _e = (e) => e.indexOf(".") === -1 && e.indexOf("[[") === -1, Wt = I(
733
+ }), _e = (e) => e.indexOf(".") === -1 && e.indexOf("[[") === -1, Ht = D(
734
734
  {
735
735
  /**
736
736
  * Get the initial state for the component.
@@ -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.
@@ -769,7 +769,7 @@ const H = globalThis.matchMedia, M = u(({ value: e, label: t, icon: s }) => b({
769
769
  render() {
770
770
  const e = "image-upload", t = this.onChange || null;
771
771
  return l({ class: "flex-none items-center" }, [
772
- f({
772
+ C({
773
773
  id: e,
774
774
  cache: "input",
775
775
  type: "file",
@@ -790,7 +790,7 @@ const H = globalThis.matchMedia, M = u(({ value: e, label: t, icon: s }) => b({
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
  }, [
793
- x(d.upload),
793
+ b(d.upload),
794
794
  l("Upload Image")
795
795
  ]) : K({
796
796
  // @ts-ignore
@@ -801,7 +801,7 @@ const H = globalThis.matchMedia, M = u(({ value: e, label: t, icon: s }) => b({
801
801
  ]);
802
802
  }
803
803
  }
804
- ), Gt = I(
804
+ ), _t = D(
805
805
  {
806
806
  /**
807
807
  * Get the initial state for the component.
@@ -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.
@@ -840,7 +840,7 @@ const H = globalThis.matchMedia, M = u(({ value: e, label: t, icon: s }) => b({
840
840
  render() {
841
841
  const e = "logo-upload", t = this.onChange || null;
842
842
  return l({ class: "flex-none items-center" }, [
843
- f({
843
+ C({
844
844
  id: e,
845
845
  cache: "input",
846
846
  type: "file",
@@ -867,7 +867,7 @@ const H = globalThis.matchMedia, M = u(({ value: e, label: t, icon: s }) => b({
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
  }, [
870
- x(d.upload),
870
+ b(d.upload),
871
871
  l("Upload logo")
872
872
  ])
873
873
  )
@@ -883,14 +883,14 @@ const H = globalThis.matchMedia, M = u(({ value: e, label: t, icon: s }) => b({
883
883
  class: "text-muted-foreground font-medium hover:text-foreground"
884
884
  },
885
885
  [c(t)]
886
- ), Ge = () => x({
886
+ ), Ge = () => b({
887
887
  class: "mx-3 text-muted-foreground",
888
888
  "aria-hidden": !0,
889
889
  size: "xs"
890
890
  }, d.chevron.single.right), Je = (e) => l({ class: "flex items-center" }, [
891
891
  e.href ? We(e.href, e.label) : c(e.label),
892
892
  e.separator && Ge()
893
- ]), Jt = I(
893
+ ]), Wt = D(
894
894
  {
895
895
  /**
896
896
  * Set initial data
@@ -910,7 +910,7 @@ const H = globalThis.matchMedia, M = u(({ value: e, label: t, icon: s }) => b({
910
910
  */
911
911
  render() {
912
912
  const e = this.data.items.length - 1;
913
- return re(
913
+ return le(
914
914
  {
915
915
  "aria-label": "Breadcrumb",
916
916
  class: "flex items-center gap-x-1 text-sm"
@@ -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", {
@@ -952,7 +952,7 @@ const H = globalThis.matchMedia, M = u(({ value: e, label: t, icon: s }) => b({
952
952
  ]), Xe = (e, t) => Array.from({ length: e }, (s, o) => Qe({
953
953
  index: o,
954
954
  size: t
955
- })), Kt = I(
955
+ })), Gt = D(
956
956
  {
957
957
  /**
958
958
  * Defines component data (props).
@@ -983,7 +983,7 @@ const H = globalThis.matchMedia, M = u(({ value: e, label: t, icon: s }) => b({
983
983
  );
984
984
  }
985
985
  }
986
- ), Ze = ({ toggleDropdown: e }) => b(
986
+ ), Ze = ({ toggleDropdown: e }) => p(
987
987
  {
988
988
  cache: "button",
989
989
  class: "relative z-[2] inline-flex items-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 border bg-input hover:bg-muted h-10 px-4 py-2 justify-between",
@@ -991,14 +991,14 @@ const H = globalThis.matchMedia, M = u(({ value: e, label: t, icon: s }) => b({
991
991
  },
992
992
  [
993
993
  c({ onState: ["selectedLabel", (t) => t || "Select item..."] }),
994
- C({ html: d.chevron.upDown })
994
+ w({ html: d.chevron.upDown })
995
995
  ]
996
996
  ), et = (e, t, s) => W({
997
997
  class: "flex flex-auto items-center cursor-pointer p-2 hover:bg-muted/50 rounded-sm",
998
998
  click: () => t(e),
999
999
  onState: [s, "selectedValue", { "bg-secondary": e.value }]
1000
1000
  }, [
1001
- e.icon && c({ class: "mr-2 flex items-baseline" }, [x({ size: "xs" }, e.icon)]),
1001
+ e.icon && c({ class: "mr-2 flex items-baseline" }, [b({ size: "xs" }, e.icon)]),
1002
1002
  c({ class: "text-base font-normal" }, e.label)
1003
1003
  ]), tt = (e, t) => l({ class: "w-full border rounded-md" }, [
1004
1004
  G({ class: "max-h-60 overflow-y-auto p-2 grid gap-1", for: ["items", (s) => et(s, e, t)] })
@@ -1013,7 +1013,7 @@ const H = globalThis.matchMedia, M = u(({ value: e, label: t, icon: s }) => b({
1013
1013
  tt(e, t)
1014
1014
  ]) : null
1015
1015
  )
1016
- ]), Qt = I(
1016
+ ]), Jt = D(
1017
1017
  {
1018
1018
  /**
1019
1019
  * This will set up the data.
@@ -1103,7 +1103,7 @@ const H = globalThis.matchMedia, M = u(({ value: e, label: t, icon: s }) => b({
1103
1103
  }),
1104
1104
  // Hidden required input for form validation
1105
1105
  // @ts-ignore
1106
- this.required && f({
1106
+ this.required && C({
1107
1107
  class: "opacity-0 absolute top-0 left-0 z-[1]",
1108
1108
  type: "text",
1109
1109
  // @ts-ignore
@@ -1115,7 +1115,7 @@ const H = globalThis.matchMedia, M = u(({ value: e, label: t, icon: s }) => b({
1115
1115
  ]);
1116
1116
  }
1117
1117
  }
1118
- ), te = ({ icon: e, click: t, ariaLabel: s }) => h({
1118
+ ), te = ({ icon: e, click: t, ariaLabel: s }) => m({
1119
1119
  variant: "icon",
1120
1120
  class: "flex flex-none",
1121
1121
  click: t,
@@ -1129,7 +1129,7 @@ const H = globalThis.matchMedia, M = u(({ value: e, label: t, icon: s }) => b({
1129
1129
  icon: d.circlePlus,
1130
1130
  click: e,
1131
1131
  ariaLabel: "Increment"
1132
- }), lt = ({ bind: e, min: t, max: s, readonly: o = !1 }) => Q(({ state: n }) => f({
1132
+ }), rt = ({ bind: e, min: t, max: s, readonly: o = !1 }) => Q(({ state: n }) => C({
1133
1133
  value: ["[[count]]", n],
1134
1134
  bind: e,
1135
1135
  blur: (r, { state: i }) => {
@@ -1142,7 +1142,7 @@ const H = globalThis.matchMedia, M = u(({ value: e, label: t, icon: s }) => b({
1142
1142
  max: s,
1143
1143
  type: "number",
1144
1144
  "aria-label": "Counter"
1145
- })), Xt = D(
1145
+ })), Kt = I(
1146
1146
  {
1147
1147
  /**
1148
1148
  * Initial state for the counter component.
@@ -1166,7 +1166,7 @@ const H = globalThis.matchMedia, M = u(({ value: e, label: t, icon: s }) => b({
1166
1166
  const e = this.class ?? "";
1167
1167
  return l({ class: `flex flex-auto items-center justify-between gap-x-4 p-4 ${e}` }, [
1168
1168
  ot({ click: () => this.state.decrement("count") }),
1169
- lt({
1169
+ rt({
1170
1170
  bind: this.bind,
1171
1171
  readonly: this.readonly,
1172
1172
  min: this.min,
@@ -1176,45 +1176,41 @@ const H = globalThis.matchMedia, M = u(({ value: e, label: t, icon: s }) => b({
1176
1176
  ]);
1177
1177
  }
1178
1178
  }
1179
- ), rt = ({ bind: e, required: t }) => f({
1180
- cache: "input",
1181
- class: "opacity-0 absolute top-0 left-0 w-full h-full pointer-events-none",
1182
- bind: e,
1183
- required: t
1184
- }), it = ({ placeholder: e, handleInputChange: t, handleInputFocus: s }) => f({
1179
+ ), lt = ({ placeholder: e, handleInputChange: t, handleInputFocus: s, bind: o, required: n }) => C({
1185
1180
  cache: "dateInput",
1186
- class: "flex-1 bg-transparent outline-none placeholder:text-muted-foreground",
1181
+ class: "flex-1 bg-transparent outline-none placeholder:text-muted-foreground border-0",
1187
1182
  placeholder: e || "mm/dd/yyyy",
1188
1183
  input: t,
1189
1184
  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}`;
1185
+ bind: o,
1186
+ required: n,
1187
+ onState: ["selectedDate", (r) => {
1188
+ if (r) {
1189
+ const i = new Date(r);
1190
+ if (!isNaN(i.getTime())) {
1191
+ const a = (i.getMonth() + 1).toString().padStart(2, "0"), h = i.getDate().toString().padStart(2, "0"), f = i.getFullYear();
1192
+ return `${a}/${h}/${f}`;
1196
1193
  }
1197
1194
  }
1198
1195
  return "";
1199
1196
  }]
1200
- }), at = ({ bind: e, required: t, toggleOpen: s, handleInputChange: o, handleInputFocus: n, placeholder: r }) => l(
1197
+ }), it = ({ bind: e, required: t, toggleOpen: s, handleInputChange: o, handleInputFocus: n, placeholder: r }) => l(
1201
1198
  {
1202
- class: "relative flex items-center gap-2 w-full justify-between border bg-input hover:bg-muted rounded-md h-10 px-4 py-2"
1199
+ 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"
1203
1200
  },
1204
1201
  [
1205
- rt({ bind: e, required: t }),
1206
- it({ placeholder: r, handleInputChange: o, handleInputFocus: n }),
1207
- b(
1202
+ lt({ placeholder: r, handleInputChange: o, handleInputFocus: n, bind: e, required: t }),
1203
+ p(
1208
1204
  {
1209
1205
  class: "flex-shrink-0 hover:bg-muted/50 rounded p-1",
1210
1206
  click: s
1211
1207
  },
1212
1208
  [
1213
- C({ html: d.calendar.days })
1209
+ w({ html: d.calendar.days })
1214
1210
  ]
1215
1211
  )
1216
1212
  ]
1217
- ), ct = ({ handleDateSelect: e, blockPriorDates: t }) => O(
1213
+ ), at = ({ handleDateSelect: e, blockPriorDates: t }) => O(
1218
1214
  (s, o, n) => new F({
1219
1215
  cache: "dropdown",
1220
1216
  parent: n,
@@ -1227,7 +1223,7 @@ const H = globalThis.matchMedia, M = u(({ value: e, label: t, icon: s }) => b({
1227
1223
  blockPriorDates: t
1228
1224
  })
1229
1225
  ])
1230
- ), Zt = D(
1226
+ ), Qt = I(
1231
1227
  {
1232
1228
  /**
1233
1229
  * The initial state of the DatePicker.
@@ -1259,21 +1255,21 @@ const H = globalThis.matchMedia, M = u(({ value: e, label: t, icon: s }) => b({
1259
1255
  const i = n.target.value.replace(/\D/g, "");
1260
1256
  let a = "";
1261
1257
  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);
1258
+ const h = parseInt(i.substring(0, 2), 10), f = parseInt(i.substring(2, 4), 10), x = parseInt(i.substring(4, 8), 10);
1259
+ if (h >= 1 && h <= 12 && f >= 1 && f <= 31 && x >= 1900) {
1260
+ const g = `${x}-${h.toString().padStart(2, "0")}-${f.toString().padStart(2, "0")}`;
1261
+ this.state.selectedDate = g, this.input.value = g, y.trigger("change", this.input), typeof this.onChange == "function" && this.onChange(g);
1266
1262
  }
1267
1263
  }
1268
1264
  }, s = (n) => {
1269
1265
  n.target.select();
1270
1266
  }, 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);
1267
+ 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
1268
  };
1273
1269
  return l(
1274
1270
  { class: "relative w-full max-w-[320px]" },
1275
1271
  [
1276
- at({
1272
+ it({
1277
1273
  toggleOpen: e,
1278
1274
  bind: this.bind,
1279
1275
  required: this.required,
@@ -1281,7 +1277,7 @@ const H = globalThis.matchMedia, M = u(({ value: e, label: t, icon: s }) => b({
1281
1277
  handleInputFocus: s,
1282
1278
  placeholder: this.placeholder
1283
1279
  }),
1284
- ct({
1280
+ at({
1285
1281
  handleDateSelect: o,
1286
1282
  blockPriorDates: this.blockPriorDates || !1
1287
1283
  })
@@ -1289,23 +1285,23 @@ const H = globalThis.matchMedia, M = u(({ value: e, label: t, icon: s }) => b({
1289
1285
  );
1290
1286
  }
1291
1287
  }
1292
- ), ut = ({ bind: e, required: t }) => f({
1288
+ ), ct = ({ bind: e, required: t }) => C({
1293
1289
  cache: "input",
1294
1290
  class: "opacity-0 absolute top-0 left-0 w-full h-full pointer-events-none",
1295
1291
  bind: e,
1296
1292
  required: t
1297
- }), dt = ({ bind: e, required: t, toggleOpen: s }) => b({
1293
+ }), ut = ({ bind: e, required: t, toggleOpen: s }) => p({
1298
1294
  class: "relative flex items-center gap-2 w-full justify-between border bg-input hover:bg-muted rounded-md h-10 px-4 py-2",
1299
1295
  click: s
1300
1296
  }, [
1301
- ut({ bind: e, required: t }),
1297
+ ct({ bind: e, required: t }),
1302
1298
  Q(({ state: o }) => [
1303
1299
  c(U.date(["[[start]]", o], "Start Date")),
1304
1300
  c(" - "),
1305
1301
  c(U.date(["[[end]]", o], "End Date"))
1306
1302
  ]),
1307
- C({ html: d.calendar.days })
1308
- ]), ht = ({ handleDateSelect: e, blockPriorDates: t }) => O((s, o, n) => new F({
1303
+ w({ html: d.calendar.days })
1304
+ ]), dt = ({ handleDateSelect: e, blockPriorDates: t }) => O((s, o, n) => new F({
1309
1305
  cache: "dropdown",
1310
1306
  parent: n,
1311
1307
  button: n.panel,
@@ -1317,7 +1313,7 @@ const H = globalThis.matchMedia, M = u(({ value: e, label: t, icon: s }) => b({
1317
1313
  onRangeSelect: e,
1318
1314
  blockPriorDates: t
1319
1315
  })
1320
- ])), es = D(
1316
+ ])), Xt = I(
1321
1317
  {
1322
1318
  /**
1323
1319
  * The initial state of the DateRangePicker.
@@ -1350,22 +1346,22 @@ const H = globalThis.matchMedia, M = u(({ value: e, label: t, icon: s }) => b({
1350
1346
  */
1351
1347
  render() {
1352
1348
  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);
1349
+ 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
1350
  };
1355
1351
  return l({ class: "relative w-full max-w-[320px]" }, [
1356
- dt({
1352
+ ut({
1357
1353
  toggleOpen: e,
1358
1354
  bind: this.bind,
1359
1355
  required: this.required
1360
1356
  }),
1361
- ht({
1357
+ dt({
1362
1358
  handleDateSelect: t,
1363
1359
  blockPriorDates: this.blockPriorDates || !1
1364
1360
  })
1365
1361
  ]);
1366
1362
  }
1367
1363
  }
1368
- ), ts = ({ dateTime: e = "", remoteTimeZone: t = "America/Denver", filter: s = null }) => ie([
1364
+ ), Zt = ({ dateTime: e = "", remoteTimeZone: t = "America/Denver", filter: s = null }) => ie([
1369
1365
  new be({
1370
1366
  dateTime: e,
1371
1367
  filter: s || ((o) => {
@@ -1374,39 +1370,32 @@ const H = globalThis.matchMedia, M = u(({ value: e, label: t, icon: s }) => b({
1374
1370
  })
1375
1371
  })
1376
1372
  ]);
1377
- function ft({ bind: e, required: t }) {
1378
- return f({
1379
- cache: "input",
1380
- class: "opacity-0 absolute top-0 left-0 w-full h-full pointer-events-none",
1381
- bind: e,
1382
- required: t
1383
- });
1384
- }
1385
- function mt({ placeholder: e, handleInputChange: t, handleInputFocus: s }) {
1386
- return f({
1373
+ function ht({ placeholder: e, handleInputChange: t, handleInputFocus: s, bind: o, required: n }) {
1374
+ return C({
1387
1375
  cache: "timeInput",
1388
- class: "flex-1 bg-transparent outline-none placeholder:text-muted-foreground",
1376
+ class: "flex-1 bg-transparent outline-none placeholder:text-muted-foreground border-0",
1389
1377
  placeholder: e || "hh:mm AM/PM",
1378
+ bind: o,
1379
+ required: n,
1390
1380
  input: t,
1391
1381
  focus: s,
1392
- onState: ["selectedTime", (o) => o || ""]
1382
+ onState: ["selectedTime", (r) => r || ""]
1393
1383
  });
1394
1384
  }
1395
- function gt({ bind: e, required: t, toggleOpen: s, handleInputChange: o, handleInputFocus: n, placeholder: r }) {
1385
+ function ft({ bind: e, required: t, toggleOpen: s, handleInputChange: o, handleInputFocus: n, placeholder: r }) {
1396
1386
  return l(
1397
1387
  {
1398
1388
  class: "relative flex items-center gap-2 w-full justify-between border bg-input hover:bg-muted rounded-md h-10 px-4 py-2"
1399
1389
  },
1400
1390
  [
1401
- ft({ bind: e, required: t }),
1402
- mt({ placeholder: r, handleInputChange: o, handleInputFocus: n }),
1403
- b(
1391
+ ht({ placeholder: r, handleInputChange: o, handleInputFocus: n, bind: e, required: t }),
1392
+ p(
1404
1393
  {
1405
1394
  class: "flex-shrink-0 hover:bg-muted/50 rounded p-1",
1406
1395
  click: s
1407
1396
  },
1408
1397
  [
1409
- C({ html: d.clock })
1398
+ w({ html: d.clock })
1410
1399
  ]
1411
1400
  )
1412
1401
  ]
@@ -1417,16 +1406,16 @@ function P({ items: e, handleTimeSelect: t, state: s, stateValue: o, pad: n = !1
1417
1406
  { class: "flex flex-col max-h-[200px] overflow-y-auto" },
1418
1407
  e.map((r) => {
1419
1408
  let i = n ? r.toString().padStart(2, "0") : r.toString();
1420
- return b({
1409
+ return p({
1421
1410
  text: i,
1422
- class: "hover:bg-muted/50 rounded-md px-2 py-1",
1411
+ class: "hover:bg-muted/50 rounded-md pr-2 py-1",
1423
1412
  click: () => t({ [o]: i }),
1424
1413
  onState: [s, o, { "bg-muted": i }]
1425
1414
  });
1426
1415
  })
1427
1416
  );
1428
1417
  }
1429
- function pt({ handleTimeSelect: e }) {
1418
+ function mt({ handleTimeSelect: e }) {
1430
1419
  return O(
1431
1420
  (t, s, o) => new F(
1432
1421
  {
@@ -1473,7 +1462,7 @@ function pt({ handleTimeSelect: e }) {
1473
1462
  )
1474
1463
  );
1475
1464
  }
1476
- function q(e) {
1465
+ function H(e) {
1477
1466
  if (!e)
1478
1467
  return { hour: null, minute: null, meridian: null };
1479
1468
  const t = /^(\d{1,2}):(\d{2})(?::(\d{2}))?\s?(AM|PM)?$/i, s = e.match(t);
@@ -1486,7 +1475,7 @@ function q(e) {
1486
1475
  meridian: r
1487
1476
  });
1488
1477
  }
1489
- const ss = D(
1478
+ const es = I(
1490
1479
  {
1491
1480
  /**
1492
1481
  * The initial shallow state of the TimePicker.
@@ -1494,7 +1483,7 @@ const ss = D(
1494
1483
  * @member {object} state
1495
1484
  */
1496
1485
  state() {
1497
- const e = this.selectedTime ?? null, { hour: t, minute: s, meridian: o } = q(e);
1486
+ const e = this.selectedTime ?? null, { hour: t, minute: s, meridian: o } = H(e);
1498
1487
  return {
1499
1488
  selectedTime: e,
1500
1489
  open: !1,
@@ -1510,7 +1499,7 @@ const ss = D(
1510
1499
  */
1511
1500
  after() {
1512
1501
  if (this.input.value) {
1513
- const { hour: e, minute: t, meridian: s } = q(this.input.value);
1502
+ const { hour: e, minute: t, meridian: s } = H(this.input.value);
1514
1503
  this.state.set({
1515
1504
  hour: e,
1516
1505
  minute: t,
@@ -1528,17 +1517,17 @@ const ss = D(
1528
1517
  const e = (n, { state: r }) => r.toggle("open"), t = (n) => {
1529
1518
  let r = n.target.value.replace(/[^\d]/g, ""), i = "";
1530
1519
  if (r.length > 0 && (i = r.substring(0, 2), r.length > 2 && (i += ":" + r.substring(2, 4))), r.length >= 4) {
1531
- const a = parseInt(r.substring(0, 2), 10), m = parseInt(r.substring(2, 4), 10);
1532
- 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}`;
1536
- i = p, this.state.set({
1537
- hour: g.toString().padStart(2, "0"),
1538
- minute: m.toString().padStart(2, "0"),
1539
- meridian: y,
1540
- selectedTime: p
1541
- }), this.input.value = p, v.trigger("change", this.input), typeof this.change == "function" && this.change(p);
1520
+ const a = parseInt(r.substring(0, 2), 10), h = parseInt(r.substring(2, 4), 10);
1521
+ if (a >= 0 && a <= 23 && h >= 0 && h <= 59) {
1522
+ let f = a, x = "AM";
1523
+ a === 0 ? f = 12 : a > 12 ? (f = a - 12, x = "PM") : a === 12 && (x = "PM");
1524
+ const g = `${f.toString().padStart(2, "0")}:${h.toString().padStart(2, "0")} ${x}`;
1525
+ i = g, this.state.set({
1526
+ hour: f.toString().padStart(2, "0"),
1527
+ minute: h.toString().padStart(2, "0"),
1528
+ meridian: x,
1529
+ selectedTime: g
1530
+ }), this.input.value = g, y.trigger("change", this.input), typeof this.change == "function" && this.change(g);
1542
1531
  }
1543
1532
  }
1544
1533
  n.target.value = i;
@@ -1547,13 +1536,13 @@ const ss = D(
1547
1536
  }, o = ({ hour: n, minute: r, meridian: i }) => {
1548
1537
  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
1538
  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);
1539
+ 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
1540
  }
1552
1541
  };
1553
1542
  return l(
1554
1543
  { class: "relative w-full max-w-[320px]" },
1555
1544
  [
1556
- gt({
1545
+ ft({
1557
1546
  toggleOpen: e,
1558
1547
  bind: this.bind,
1559
1548
  required: this.required,
@@ -1561,18 +1550,18 @@ const ss = D(
1561
1550
  handleInputFocus: s,
1562
1551
  placeholder: this.placeholder
1563
1552
  }),
1564
- pt({
1553
+ mt({
1565
1554
  handleTimeSelect: o
1566
1555
  })
1567
1556
  ]
1568
1557
  );
1569
1558
  }
1570
1559
  }
1571
- ), bt = (e, t) => l({ class: `hidden md:flex items-start justify-center w-6 h-6 mr-3 ${t}` }, [
1572
- x({ size: "lg" }, e)
1573
- ]), xt = ({ title: e }) => L({ class: "flex flex-auto items-center" }, [
1560
+ ), gt = (e, t) => l({ class: `hidden md:flex items-start justify-center w-6 h-6 mr-3 ${t}` }, [
1561
+ b({ size: "lg" }, e)
1562
+ ]), pt = ({ title: e }) => L({ class: "flex flex-auto items-center" }, [
1574
1563
  $({ class: "text-lg font-semibold" }, e)
1575
- ]), yt = u((e, t) => ae(
1564
+ ]), bt = u((e, t) => ae(
1576
1565
  {
1577
1566
  class: `fixed pullUpIn z-30 w-[98%] border md:w-full max-w-lg bg-popover text-foreground shadow-lg duration-200
1578
1567
  rounded-lg flex flex-auto flex-col
@@ -1583,18 +1572,18 @@ const ss = D(
1583
1572
  [
1584
1573
  l({ class: "flex flex-auto p-6 pb-12 md:pb-6" }, [
1585
1574
  // Icon and content
1586
- e.icon && bt(e.icon, e.iconColor),
1575
+ e.icon && gt(e.icon, e.iconColor),
1587
1576
  l({ class: "flex flex-auto flex-col gap-4" }, [
1588
1577
  l({ class: "flex flex-auto flex-col gap-y-2" }, [
1589
- xt(e),
1590
- e.description && w({ class: "flex flex-auto flex-col text-sm text-muted-foreground" }, e.description),
1578
+ pt(e),
1579
+ e.description && v({ class: "flex flex-auto flex-col text-sm text-muted-foreground" }, e.description),
1591
1580
  l({ class: "flex flex-auto flex-col text-sm text-muted-foreground" }, t)
1592
1581
  ]),
1593
1582
  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)
1594
1583
  ])
1595
1584
  ])
1596
1585
  ]
1597
- )), vt = (e) => X.render(e, app.root), _ = {
1586
+ )), xt = (e) => X.render(e, app.root), _ = {
1598
1587
  info: {
1599
1588
  borderColor: "border-blue-500",
1600
1589
  bgColor: "bg-muted/10",
@@ -1621,7 +1610,7 @@ const ss = D(
1621
1610
  iconColor: "text-muted-foreground"
1622
1611
  }
1623
1612
  };
1624
- class wt extends k {
1613
+ class yt extends k {
1625
1614
  /**
1626
1615
  * This will declare the props for the compiler.
1627
1616
  *
@@ -1639,7 +1628,7 @@ class wt extends k {
1639
1628
  const t = (a) => {
1640
1629
  a.target === this.panel && this.close();
1641
1630
  }, { borderColor: s, bgColor: o, iconColor: n } = _[this.type] || _.default, r = `${this.getMainClass()} ${o} ${s}`, i = this.title || "Dialog Title";
1642
- return yt({
1631
+ return bt({
1643
1632
  class: r,
1644
1633
  title: i,
1645
1634
  click: t,
@@ -1656,7 +1645,7 @@ class wt extends k {
1656
1645
  */
1657
1646
  getButtons() {
1658
1647
  return this.hideFooter ? null : this.buttons ? this.buttons : [
1659
- h({ variant: "outline", click: () => this.close() }, "Close")
1648
+ m({ variant: "outline", click: () => this.close() }, "Close")
1660
1649
  ];
1661
1650
  }
1662
1651
  /**
@@ -1683,7 +1672,7 @@ class wt extends k {
1683
1672
  * @returns {void}
1684
1673
  */
1685
1674
  open() {
1686
- vt(this), this.panel.showModal(), this.state.open = !0;
1675
+ xt(this), this.panel.showModal(), this.state.open = !0;
1687
1676
  }
1688
1677
  /**
1689
1678
  * This will close the modal.
@@ -1694,7 +1683,7 @@ class wt extends k {
1694
1683
  this.state.open = !1, this.panel.close(), typeof this.onClose == "function" && this.onClose(), this.destroy();
1695
1684
  }
1696
1685
  }
1697
- class os extends wt {
1686
+ class ts extends yt {
1698
1687
  /**
1699
1688
  * This will declare the props for the compiler.
1700
1689
  *
@@ -1711,8 +1700,8 @@ class os extends wt {
1711
1700
  getButtons() {
1712
1701
  const t = this.confirmTextLabel || "Confirm";
1713
1702
  return [
1714
- h({ variant: "outline", click: () => this.close() }, "Cancel"),
1715
- h({ variant: "primary", click: () => this.confirm() }, t)
1703
+ m({ variant: "outline", click: () => this.close() }, "Cancel"),
1704
+ m({ variant: "primary", click: () => this.confirm() }, t)
1716
1705
  ];
1717
1706
  }
1718
1707
  /**
@@ -1724,67 +1713,67 @@ class os extends wt {
1724
1713
  this.confirmed && this.confirmed(), this.close();
1725
1714
  }
1726
1715
  }
1727
- const ns = u((e, t = []) => l({ class: "w-full max-w-md p-6 m-auto" }, [
1716
+ const ss = u((e, t = []) => l({ class: "w-full max-w-md p-6 m-auto" }, [
1728
1717
  ee({ class: "flex flex-auto flex-col" }, [
1729
1718
  l({ class: "flex flex-auto flex-col gap-y-4" }, [
1730
1719
  l({ class: "flex flex-auto items-center justify-center" }, [
1731
1720
  e.icon && l({ class: "w-16 h-16 mb-2 text-primary" }, [
1732
- x(e.icon)
1721
+ b(e.icon)
1733
1722
  ])
1734
1723
  ]),
1735
1724
  L({ class: "py-4 text-center" }, [
1736
1725
  $({ class: "text-xl font-bold" }, e.title),
1737
- w({ class: "pb-8 text-muted-foreground" }, e.description || ""),
1726
+ v({ class: "pb-8 text-muted-foreground" }, e.description || ""),
1738
1727
  ...t
1739
1728
  ])
1740
1729
  ])
1741
1730
  ])
1742
1731
  ]));
1743
1732
  export {
1744
- Bt as A,
1745
- Jt as B,
1746
- Ut as C,
1747
- Lt as D,
1748
- Zt as E,
1733
+ Ft as A,
1734
+ Wt as B,
1735
+ zt as C,
1736
+ Tt as D,
1737
+ Qt as E,
1749
1738
  Te as F,
1750
- es as G,
1751
- ts as H,
1752
- Wt as I,
1753
- ss as J,
1754
- os as K,
1755
- Gt as L,
1756
- Vt as M,
1757
- Rt as N,
1758
- yt as O,
1739
+ Xt as G,
1740
+ Zt as H,
1741
+ Ht as I,
1742
+ es as J,
1743
+ ts as K,
1744
+ _t as L,
1745
+ Et as M,
1746
+ Ut as N,
1747
+ bt as O,
1759
1748
  nt as P,
1760
- wt as Q,
1761
- ns as R,
1762
- Et as S,
1763
- Ht as T,
1749
+ yt as Q,
1750
+ ss as R,
1751
+ Ot as S,
1752
+ Vt as T,
1764
1753
  ke as a,
1765
- At as b,
1766
- De as c,
1754
+ Bt as b,
1755
+ Ie as c,
1767
1756
  Be as d,
1768
1757
  Le as e,
1769
1758
  Ae as f,
1770
- Mt as g,
1771
- Pt as h,
1772
- jt as i,
1759
+ Lt as g,
1760
+ At as h,
1761
+ Mt as i,
1773
1762
  Pe as j,
1774
- Nt as k,
1763
+ Pt as k,
1775
1764
  ee as l,
1776
- Ot as m,
1777
- zt as n,
1765
+ jt as m,
1766
+ Nt as n,
1778
1767
  Re as o,
1779
- Yt as p,
1780
- qt as q,
1781
- _t as r,
1768
+ Rt as p,
1769
+ Yt as q,
1770
+ qt as r,
1782
1771
  T as s,
1783
1772
  S as t,
1784
- qe as u,
1785
- Kt as v,
1786
- Qt as w,
1773
+ He as u,
1774
+ Gt as v,
1775
+ Jt as w,
1787
1776
  ot as x,
1788
- lt as y,
1789
- Xt as z
1777
+ rt as y,
1778
+ Kt as z
1790
1779
  };
package/dist/index.es.js CHANGED
@@ -3,7 +3,7 @@ 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-CWlzRq2X.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-C6Kem7VX.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
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-1P_xBZA9.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";
@@ -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-CWlzRq2X.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-C6Kem7VX.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,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@base-framework/ui",
3
- "version": "1.0.314",
3
+ "version": "1.0.316",
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": {