@base-framework/ui 1.0.311 → 1.0.313

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,12 +1,12 @@
1
- import { Div as l, H5 as X, P as g, I as p, Li as q, Span as a, Ul as H, Button as f, OnState as I, Label as A, H2 as C, Form as Z, Header as $, Footer as P, A as Y, H3 as ee, Checkbox as te, Input as b, Img as _, Nav as se, UseParent as W, OnStateOpen as M, Time as oe, Dialog as le } from "@base-framework/atoms";
2
- import { Atom as c, Component as w, Html as j, Dom as ne, base as re, Data as F, Builder as G, Jot as v, Events as k, DateTime as L } from "@base-framework/base";
3
- import { P as S, b as ie, R as ae } from "./range-calendar-CnBylqhu.js";
1
+ import { Div as l, H5 as X, P as g, I as p, Li as q, Span as a, Ul as H, Button as f, OnState as I, Label as A, H2 as C, Form as Z, Header as F, Footer as P, A as Y, H3 as ee, Checkbox as te, Input as b, Img as _, Nav as se, UseParent as W, OnStateOpen as M, Time as oe, Dialog as le } from "@base-framework/atoms";
2
+ import { Atom as c, Component as w, Html as j, Dom as ne, base as re, Data as $, Builder as G, Jot as v, Events as k, DateTime as L } from "@base-framework/base";
3
+ import { P as S, b as ie, R as ae } from "./range-calendar-BMWSJTE0.js";
4
4
  import { C as ce, F as ue, a as y } from "./veil-CVCuKSvj.js";
5
5
  import { B as h, I as m } from "./buttons-CHEs54Wl.js";
6
6
  import { Icons as u } from "./icons.es.js";
7
7
  import { Timer as de, List as he, DynamicTime as fe } from "@base-framework/organisms";
8
- import { F as z } from "./format-DnofNaaz.js";
9
- const E = {
8
+ import { F as O } from "./format-DnofNaaz.js";
9
+ const z = {
10
10
  info: {
11
11
  borderColor: "border-blue-500",
12
12
  bgColor: "bg-muted/10",
@@ -34,8 +34,8 @@ const E = {
34
34
  }
35
35
  }, me = (e, t) => l({ class: `flex items-center justify-center h-6 w-6 mr-3 ${t}` }, [
36
36
  p({ html: e })
37
- ]), ge = (e) => X({ class: "font-semibold" }, e), pe = (e) => g({ class: "text-sm text-muted-foreground" }, e), kt = c(({ title: e, description: t, icon: s, type: o = "default" }) => {
38
- const { borderColor: n, bgColor: r, iconColor: i } = E[o] || E.default;
37
+ ]), ge = (e) => X({ class: "font-semibold" }, e), pe = (e) => g({ class: "text-sm text-muted-foreground" }, e), St = c(({ title: e, description: t, icon: s, type: o = "default" }) => {
38
+ const { borderColor: n, bgColor: r, iconColor: i } = z[o] || z.default;
39
39
  return l({ class: `flex items-start p-4 border rounded-lg ${r} ${n}` }, [
40
40
  // Icon and content
41
41
  s && me(s, i),
@@ -45,7 +45,7 @@ const E = {
45
45
  ])
46
46
  ]);
47
47
  });
48
- class St extends w {
48
+ class Dt extends w {
49
49
  /**
50
50
  * This will declare the props for the compiler.
51
51
  *
@@ -104,7 +104,7 @@ const be = (e) => a({ class: "ml-auto text-xs tracking-widest opacity-60" }, e),
104
104
  ]) : null
105
105
  )
106
106
  ]);
107
- class Dt extends w {
107
+ class It extends w {
108
108
  /**
109
109
  * This will declare the props for the compiler.
110
110
  *
@@ -119,7 +119,7 @@ class Dt extends w {
119
119
  * @returns {Data}
120
120
  */
121
121
  setData() {
122
- return new F({
122
+ return new $({
123
123
  groups: this.groups || []
124
124
  });
125
125
  }
@@ -167,13 +167,13 @@ class Dt extends w {
167
167
  ]);
168
168
  }
169
169
  }
170
- const De = c((e, t) => l({ ...e, class: "flex flex-auto flex-col gap-y-2" }, t)), Ie = c((e, t) => A({ ...e, class: "flex auto text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70" }, t)), $e = c((e, t) => g({ ...e, class: "text-sm text-muted-foreground italic" }, t)), Fe = c((e, t) => g({ ...e, class: "text-sm text-destructive" }, t)), It = c((e, t = []) => ce({ class: "flex flex-auto flex-col gap-y-0", margin: "m-0", padding: "p-0" }, [
170
+ const De = c((e, t) => l({ ...e, class: "flex flex-auto flex-col gap-y-2" }, t)), Ie = c((e, t) => A({ ...e, class: "flex auto text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70" }, t)), Fe = c((e, t) => g({ ...e, class: "text-sm text-muted-foreground italic" }, t)), $e = c((e, t) => g({ ...e, class: "text-sm text-destructive" }, t)), Ft = c((e, t = []) => ce({ class: "flex flex-auto flex-col gap-y-0", margin: "m-0", padding: "p-0" }, [
171
171
  e.title && C({ class: "text-lg font-semibold py-4 px-6" }, e.title),
172
172
  e.description && g({ class: "text-sm text-muted-foreground pb-4 px-6 max-w-[700px]" }, e.description),
173
173
  ...t
174
174
  ])), $t = c((e, t = []) => ue({ 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
- ])), Ft = c((e, t = []) => {
176
+ ])), Bt = c((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
  }), Be = (e) => e.tag === "input" || e.tag === "select" || e.tag === "textarea", J = (e, t, s) => e.map((o) => !o || (o.children && o.children.length > 0 && (o.children = J(o.children, t, s)), !o.required) ? o : Be(o) ? {
@@ -193,7 +193,7 @@ const De = c((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
- }), Bt = y(
196
+ }), Tt = y(
197
197
  {
198
198
  /**
199
199
  * The initial state of the FormField.
@@ -226,8 +226,8 @@ const De = c((e, t) => l({ ...e, class: "flex flex-auto flex-col gap-y-2" }, t))
226
226
  value: this.state.value,
227
227
  setError: n
228
228
  }, this.children),
229
- o && $e({ id: this.getId("description") }, o),
230
- l({ onState: ["error", (r) => r && Fe(r)] })
229
+ o && Fe({ id: this.getId("description") }, o),
230
+ l({ onState: ["error", (r) => r && $e(r)] })
231
231
  ])
232
232
  ]);
233
233
  }
@@ -236,16 +236,16 @@ const De = c((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
  }, K = c(
238
238
  (e, t) => Z({ ...e, submit: (s, o) => Le(s, o, e.submit), class: `w-full ${e.class ?? ""}` }, t)
239
- ), Tt = c((e, t) => l({ ...e, class: `flex flex-auto flex-col gap-y-6 p-4 md:p-6 divide-y ${e.class || ""}` }, t)), Lt = c((e, t = []) => l({ class: "flex flex-col gap-y-3 py-4" }, [
239
+ ), Lt = c((e, t) => l({ ...e, class: `flex flex-auto flex-col gap-y-6 p-4 md:p-6 divide-y ${e.class || ""}` }, t)), At = c((e, t = []) => l({ class: "flex flex-col gap-y-3 py-4" }, [
240
240
  e.title && C({ class: "font-semibold" }, e.title),
241
241
  ...t
242
- ])), At = (e, t) => l({ class: "flex justify-between" }, [
242
+ ])), Pt = (e, t) => l({ class: "flex justify-between" }, [
243
243
  a({ class: "text-muted-foreground" }, e),
244
244
  a(t)
245
- ]), Pt = (e, t) => l({ class: "flex" }, [
245
+ ]), Mt = (e, t) => l({ class: "flex" }, [
246
246
  a({ class: "text-muted-foreground mr-8 w-24 truncate text-nowrap" }, e),
247
247
  a(t)
248
- ]), Ae = ({ title: e, description: t, back: s, icon: o, options: n = [] }) => $({ class: "modal-header bg-background/80 backdrop-blur-md sticky flex flex-none items-center py-4 px-6 z-10" }, [
248
+ ]), Ae = ({ title: e, description: t, back: s, icon: o, options: n = [] }) => F({ 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
  */
@@ -277,7 +277,7 @@ const De = c((e, t) => l({ ...e, class: "flex flex-auto flex-col gap-y-2" }, t))
277
277
  P({ 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
  ])), Me = (e) => G.render(e, app.root);
280
- class Mt extends w {
280
+ class jt extends w {
281
281
  /**
282
282
  * This will declare the props for the compiler.
283
283
  *
@@ -437,7 +437,7 @@ class Mt extends w {
437
437
  this.panel.hidePopover(), this.state.open = !1, typeof this.onClose == "function" && this.onClose(this), document.documentElement.style.overflowY = "auto";
438
438
  }
439
439
  }
440
- const N = {
440
+ const E = {
441
441
  info: {
442
442
  bgColor: "bg-muted/10",
443
443
  borderColor: "border-blue-500",
@@ -463,22 +463,22 @@ const N = {
463
463
  borderColor: "border",
464
464
  iconColor: "text-muted-foreground"
465
465
  }
466
- }, je = (e) => $({ class: "flex justify-center" }, [
466
+ }, je = (e) => F({ class: "flex justify-center" }, [
467
467
  ee({ class: "text-lg font-bold mb-0" }, e)
468
- ]), ze = c(({ href: e, class: t }, s) => Y({
468
+ ]), Oe = c(({ href: e, class: t }, s) => Y({
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}`,
470
470
  href: e,
471
471
  animateIn: "pullRightIn",
472
472
  animateOut: "pullRight",
473
473
  role: "alert"
474
- }, s)), Ee = c(({ close: e, class: t }, s) => l({
474
+ }, s)), ze = c(({ close: e, class: t }, s) => l({
475
475
  class: `pullRightIn bg-popover text-popover-foreground relative flex flex-auto flex-col justify-start shadow-lg pointer-events-auto p-4 border rounded-md min-w-[340px] max-w-[450px] mt-4 ${t}`,
476
476
  click: () => e(),
477
477
  animateIn: "pullRightIn",
478
478
  animateOut: "pullRight",
479
479
  role: "alert"
480
480
  }, s));
481
- class Ne extends w {
481
+ class Ee extends w {
482
482
  /**
483
483
  * This will declare the props for the compiler.
484
484
  *
@@ -502,10 +502,10 @@ class Ne extends w {
502
502
  */
503
503
  render() {
504
504
  const { bgColor: t, borderColor: s, iconColor: o } = this.getTypeStyles(), n = this.href || null, r = this.getChildren(o);
505
- return n ? ze({
505
+ return n ? Oe({
506
506
  href: n,
507
507
  class: `${t} ${s}`
508
- }, r) : Ee({
508
+ }, r) : ze({
509
509
  close: this.close.bind(this),
510
510
  class: `${t} ${s}`
511
511
  }, r);
@@ -526,7 +526,7 @@ class Ne extends w {
526
526
  */
527
527
  getTypeStyles() {
528
528
  const t = this.type || "default";
529
- return N[t] || N.default;
529
+ return E[t] || E.default;
530
530
  }
531
531
  /**
532
532
  * This will get the buttons for the notification.
@@ -577,8 +577,8 @@ class Ne extends w {
577
577
  t && t.stopPropagation(), this.duration !== "infinite" && this.timer.stop(), this.onClick && this.onClick(), this.destroy();
578
578
  }
579
579
  }
580
- let Oe = 0;
581
- class jt extends w {
580
+ let Ne = 0;
581
+ class Ot extends w {
582
582
  /**
583
583
  * This will render the component.
584
584
  *
@@ -590,7 +590,7 @@ class jt extends w {
590
590
  cache: "list",
591
591
  key: "id",
592
592
  role: "list",
593
- rowItem: (t) => new Ne(t)
593
+ rowItem: (t) => new Ee(t)
594
594
  })
595
595
  ]);
596
596
  }
@@ -601,7 +601,7 @@ class jt extends w {
601
601
  * @returns {void}
602
602
  */
603
603
  addNotice(t = {}) {
604
- t.id = Oe++, t.callBack = () => this.removeNotice(t), this.list.append([t]), this.panel.hidePopover(), this.panel.showPopover();
604
+ t.id = Ne++, 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,7 +613,7 @@ class jt extends w {
613
613
  this.list.delete(t.id), this.list.isEmpty() && this.panel.hidePopover();
614
614
  }
615
615
  }
616
- const O = globalThis.matchMedia, B = c(({ value: e, label: t, icon: s }) => f({
616
+ const N = globalThis.matchMedia, B = c(({ value: e, label: t, icon: s }) => f({
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"]],
@@ -625,7 +625,7 @@ const O = globalThis.matchMedia, B = c(({ value: e, label: t, icon: s }) => f({
625
625
  a(t)
626
626
  ])), Ue = (e) => {
627
627
  const t = document.documentElement;
628
- if (e === "system" && (e = globalThis.matchMedia?.("(prefers-color-scheme: dark)").matches ? "dark" : "light"), O && !O("(prefers-color-scheme: " + e + ")").matches) {
628
+ if (e === "system" && (e = globalThis.matchMedia?.("(prefers-color-scheme: dark)").matches ? "dark" : "light"), N && !N("(prefers-color-scheme: " + e + ")").matches) {
629
629
  t.classList.add(e);
630
630
  return;
631
631
  }
@@ -722,7 +722,7 @@ const O = globalThis.matchMedia, B = c(({ value: e, label: t, icon: s }) => f({
722
722
  AWAY: "bg-yellow-500"
723
723
  }, Re = (e = "") => (e = e.toUpperCase(), x[e] || x.OFFLINE), Nt = (e) => l({
724
724
  class: `absolute bottom-0 right-0 w-3 h-3 border-2 rounded-full ${Re(e)}`
725
- }), Ot = ({ propName: e = "status" } = {}) => l({
725
+ }), Ut = ({ 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
  [x.ONLINE]: D.ONLINE,
@@ -730,7 +730,7 @@ const O = globalThis.matchMedia, B = c(({ value: e, label: t, icon: s }) => f({
730
730
  [x.BUSY]: D.BUSY,
731
731
  [x.AWAY]: D.AWAY
732
732
  }]
733
- }), Ut = v(
733
+ }), Ve = (e) => e.indexOf(".") === -1 && e.indexOf("[[") === -1, Rt = v(
734
734
  {
735
735
  /**
736
736
  * Get the initial state for the component.
@@ -786,25 +786,22 @@ const O = globalThis.matchMedia, B = c(({ value: e, label: t, icon: s }) => f({
786
786
  s.preventDefault(), s.stopPropagation(), this.openFileBrowse();
787
787
  }
788
788
  }, [
789
- I(
790
- "loaded",
791
- (s) => s ? _({
792
- // @ts-ignore
793
- src: this.src,
794
- class: "absolute inset-0 w-full h-full object-cover rounded-full"
795
- }) : A({
796
- htmlFor: e,
797
- class: "z-10 flex flex-col items-center justify-center text-sm text-muted-foreground group-hover:text-primary"
798
- }, [
799
- m(u.upload),
800
- l("Upload Image")
801
- ])
802
- )
789
+ I("loaded", (s) => s === !1 || Ve(this.src) ? A({
790
+ htmlFor: e,
791
+ class: "z-10 flex flex-col items-center justify-center text-sm text-muted-foreground group-hover:text-primary"
792
+ }, [
793
+ m(u.upload),
794
+ l("Upload Image")
795
+ ]) : _({
796
+ // @ts-ignore
797
+ src: this.src,
798
+ class: "absolute inset-0 w-full h-full object-cover rounded-full"
799
+ }))
803
800
  ])
804
801
  ]);
805
802
  }
806
803
  }
807
- ), Rt = v(
804
+ ), Vt = v(
808
805
  {
809
806
  /**
810
807
  * Get the initial state for the component.
@@ -878,7 +875,7 @@ const O = globalThis.matchMedia, B = c(({ value: e, label: t, icon: s }) => f({
878
875
  ]);
879
876
  }
880
877
  }
881
- ), Ve = (e, t) => Y(
878
+ ), qe = (e, t) => Y(
882
879
  {
883
880
  href: e,
884
881
  "aria-current": t === "Breadcrumb" && "page",
@@ -886,14 +883,14 @@ const O = globalThis.matchMedia, B = c(({ value: e, label: t, icon: s }) => f({
886
883
  class: "text-muted-foreground font-medium hover:text-foreground"
887
884
  },
888
885
  [a(t)]
889
- ), qe = () => m({
886
+ ), He = () => m({
890
887
  class: "mx-3 text-muted-foreground",
891
888
  "aria-hidden": !0,
892
889
  size: "xs"
893
- }, u.chevron.single.right), He = (e) => l({ class: "flex items-center" }, [
894
- e.href ? Ve(e.href, e.label) : a(e.label),
895
- e.separator && qe()
896
- ]), Vt = v(
890
+ }, u.chevron.single.right), Ye = (e) => l({ class: "flex items-center" }, [
891
+ e.href ? qe(e.href, e.label) : a(e.label),
892
+ e.separator && He()
893
+ ]), qt = v(
897
894
  {
898
895
  /**
899
896
  * Set initial data
@@ -901,7 +898,7 @@ const O = globalThis.matchMedia, B = c(({ value: e, label: t, icon: s }) => f({
901
898
  * @returns {Data}
902
899
  */
903
900
  setData() {
904
- return new F({
901
+ return new $({
905
902
  // @ts-ignore
906
903
  items: this.items || []
907
904
  });
@@ -922,7 +919,7 @@ const O = globalThis.matchMedia, B = c(({ value: e, label: t, icon: s }) => f({
922
919
  l({
923
920
  role: "list",
924
921
  class: "flex items-center",
925
- for: ["items", (t, s) => He({
922
+ for: ["items", (t, s) => Ye({
926
923
  href: t.href,
927
924
  label: t.label,
928
925
  separator: s < e
@@ -941,7 +938,7 @@ const O = globalThis.matchMedia, B = c(({ value: e, label: t, icon: s }) => f({
941
938
  "2xl": "h-16 w-16",
942
939
  "3xl": "h-24 w-24",
943
940
  default: "h-4 w-4"
944
- }, Ye = (e) => U[e] || U.default, _e = ({ index: e, size: t }) => l({ class: `${t} rounded-full bg-muted cursor-pointer` }, [
941
+ }, _e = (e) => U[e] || U.default, We = ({ index: e, size: t }) => l({ class: `${t} rounded-full bg-muted cursor-pointer` }, [
945
942
  a({
946
943
  class: "block w-full h-full rounded-full transition-colors",
947
944
  onSet: ["activeIndex", {
@@ -952,10 +949,10 @@ const O = globalThis.matchMedia, B = c(({ value: e, label: t, icon: s }) => f({
952
949
  o.activeIndex = e, n && n(e);
953
950
  }
954
951
  })
955
- ]), We = (e, t) => Array.from({ length: e }, (s, o) => _e({
952
+ ]), Ge = (e, t) => Array.from({ length: e }, (s, o) => We({
956
953
  index: o,
957
954
  size: t
958
- })), qt = v(
955
+ })), Ht = v(
959
956
  {
960
957
  /**
961
958
  * Defines component data (props).
@@ -963,7 +960,7 @@ const O = globalThis.matchMedia, B = c(({ value: e, label: t, icon: s }) => f({
963
960
  * @returns {Data}
964
961
  */
965
962
  setData() {
966
- return new F({
963
+ return new $({
967
964
  // @ts-ignore
968
965
  count: this.count || 4,
969
966
  // total dots
@@ -977,7 +974,7 @@ const O = globalThis.matchMedia, B = c(({ value: e, label: t, icon: s }) => f({
977
974
  * @returns {object}
978
975
  */
979
976
  render() {
980
- const e = this.gap || "gap-2", t = Ye(this.size || "sm"), s = We(this.data.count, t);
977
+ const e = this.gap || "gap-2", t = _e(this.size || "sm"), s = Ge(this.data.count, t);
981
978
  return l(
982
979
  { class: "flex justify-center items-center py-2" },
983
980
  [
@@ -986,7 +983,7 @@ const O = globalThis.matchMedia, B = c(({ value: e, label: t, icon: s }) => f({
986
983
  );
987
984
  }
988
985
  }
989
- ), Ge = ({ toggleDropdown: e }) => f(
986
+ ), Je = ({ toggleDropdown: e }) => f(
990
987
  {
991
988
  cache: "button",
992
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",
@@ -996,16 +993,16 @@ const O = globalThis.matchMedia, B = c(({ value: e, label: t, icon: s }) => f({
996
993
  a({ onState: ["selectedLabel", (t) => t || "Select item..."] }),
997
994
  p({ html: u.chevron.upDown })
998
995
  ]
999
- ), Je = (e, t, s) => q({
996
+ ), Ke = (e, t, s) => q({
1000
997
  class: "flex flex-auto items-center cursor-pointer p-2 hover:bg-muted/50 rounded-sm",
1001
998
  click: () => t(e),
1002
999
  onState: [s, "selectedValue", { "bg-secondary": e.value }]
1003
1000
  }, [
1004
1001
  e.icon && a({ class: "mr-2 flex items-baseline" }, [m({ size: "xs" }, e.icon)]),
1005
1002
  a({ class: "text-base font-normal" }, e.label)
1006
- ]), Ke = (e, t) => l({ class: "w-full border rounded-md" }, [
1007
- H({ class: "max-h-60 overflow-y-auto p-2 grid gap-1", for: ["items", (s) => Je(s, e, t)] })
1008
- ]), Qe = ({ onSelect: e, state: t }) => l({ class: "flex flex-auto flex-col" }, [
1003
+ ]), Qe = (e, t) => l({ class: "w-full border rounded-md" }, [
1004
+ H({ class: "max-h-60 overflow-y-auto p-2 grid gap-1", for: ["items", (s) => Ke(s, e, t)] })
1005
+ ]), Xe = ({ onSelect: e, state: t }) => l({ class: "flex flex-auto flex-col" }, [
1009
1006
  I(
1010
1007
  "open",
1011
1008
  (s, o, n) => s ? new S({
@@ -1013,10 +1010,10 @@ const O = globalThis.matchMedia, B = c(({ value: e, label: t, icon: s }) => f({
1013
1010
  parent: n,
1014
1011
  button: n.button
1015
1012
  }, [
1016
- Ke(e, t)
1013
+ Qe(e, t)
1017
1014
  ]) : null
1018
1015
  )
1019
- ]), Ht = v(
1016
+ ]), Yt = v(
1020
1017
  {
1021
1018
  /**
1022
1019
  * This will set up the data.
@@ -1024,7 +1021,7 @@ const O = globalThis.matchMedia, B = c(({ value: e, label: t, icon: s }) => f({
1024
1021
  * @returns {Data}
1025
1022
  */
1026
1023
  setData() {
1027
- return new F({
1024
+ return new $({
1028
1025
  // @ts-ignore
1029
1026
  items: this.items || []
1030
1027
  });
@@ -1097,8 +1094,8 @@ const O = globalThis.matchMedia, B = c(({ value: e, label: t, icon: s }) => f({
1097
1094
  const e = this.class || "", t = this.maxWidth || "max-w-[250px]", s = this.width || "w-full";
1098
1095
  return l({ class: `relative ${s} flex flex-auto flex-col ${t} ${e}` }, [
1099
1096
  // @ts-ignore
1100
- Ge({ toggleDropdown: this.toggleDropdown.bind(this) }),
1101
- Qe({
1097
+ Je({ toggleDropdown: this.toggleDropdown.bind(this) }),
1098
+ Xe({
1102
1099
  // @ts-ignore
1103
1100
  state: this.state,
1104
1101
  // @ts-ignore
@@ -1124,15 +1121,15 @@ const O = globalThis.matchMedia, B = c(({ value: e, label: t, icon: s }) => f({
1124
1121
  click: t,
1125
1122
  icon: e,
1126
1123
  "aria-label": s
1127
- }), Xe = ({ click: e }) => Q({
1124
+ }), Ze = ({ click: e }) => Q({
1128
1125
  icon: u.circleMinus,
1129
1126
  click: e,
1130
1127
  ariaLabel: "Decrement"
1131
- }), Ze = ({ click: e }) => Q({
1128
+ }), et = ({ click: e }) => Q({
1132
1129
  icon: u.circlePlus,
1133
1130
  click: e,
1134
1131
  ariaLabel: "Increment"
1135
- }), et = ({ bind: e, min: t, max: s, readonly: o = !1 }) => W(({ state: n }) => b({
1132
+ }), tt = ({ bind: e, min: t, max: s, readonly: o = !1 }) => W(({ state: n }) => b({
1136
1133
  value: ["[[count]]", n],
1137
1134
  bind: e,
1138
1135
  blur: (r, { state: i }) => {
@@ -1145,7 +1142,7 @@ const O = globalThis.matchMedia, B = c(({ value: e, label: t, icon: s }) => f({
1145
1142
  max: s,
1146
1143
  type: "number",
1147
1144
  "aria-label": "Counter"
1148
- })), Yt = y(
1145
+ })), _t = y(
1149
1146
  {
1150
1147
  /**
1151
1148
  * Initial state for the counter component.
@@ -1168,32 +1165,32 @@ const O = globalThis.matchMedia, B = c(({ value: e, label: t, icon: s }) => f({
1168
1165
  render() {
1169
1166
  const e = this.class ?? "";
1170
1167
  return l({ class: `flex flex-auto items-center justify-between gap-x-4 p-4 ${e}` }, [
1171
- Xe({ click: () => this.state.decrement("count") }),
1172
- et({
1168
+ Ze({ click: () => this.state.decrement("count") }),
1169
+ tt({
1173
1170
  bind: this.bind,
1174
1171
  readonly: this.readonly,
1175
1172
  min: this.min,
1176
1173
  max: this.max
1177
1174
  }),
1178
- Ze({ click: () => this.state.increment("count") })
1175
+ et({ click: () => this.state.increment("count") })
1179
1176
  ]);
1180
1177
  }
1181
1178
  }
1182
- ), tt = ({ bind: e, required: t }) => b({
1179
+ ), st = ({ bind: e, required: t }) => b({
1183
1180
  cache: "input",
1184
1181
  class: "opacity-0 absolute top-0 left-0 w-full h-full pointer-events-none",
1185
1182
  bind: e,
1186
1183
  required: t
1187
- }), st = ({ bind: e, required: t, toggleOpen: s }) => f({
1184
+ }), ot = ({ bind: e, required: t, toggleOpen: s }) => f({
1188
1185
  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",
1189
1186
  click: s
1190
1187
  }, [
1191
- tt({ bind: e, required: t }),
1188
+ st({ bind: e, required: t }),
1192
1189
  a({
1193
1190
  onState: ["selectedDate", (o) => o ? L.format("standard", o) : "Pick a date"]
1194
1191
  }),
1195
1192
  p({ html: u.calendar.days })
1196
- ]), ot = ({ handleDateSelect: e, blockPriorDates: t }) => M(
1193
+ ]), lt = ({ handleDateSelect: e, blockPriorDates: t }) => M(
1197
1194
  (s, o, n) => new S({
1198
1195
  cache: "dropdown",
1199
1196
  parent: n,
@@ -1206,7 +1203,7 @@ const O = globalThis.matchMedia, B = c(({ value: e, label: t, icon: s }) => f({
1206
1203
  blockPriorDates: t
1207
1204
  })
1208
1205
  ])
1209
- ), _t = y(
1206
+ ), Wt = y(
1210
1207
  {
1211
1208
  /**
1212
1209
  * The initial state of the DatePicker.
@@ -1238,35 +1235,35 @@ const O = globalThis.matchMedia, B = c(({ value: e, label: t, icon: s }) => f({
1238
1235
  this.state.selectedDate = s, this.state.open = !1, this.input.value = s, k.trigger("change", this.input), typeof this.onChange == "function" && this.onChange(s);
1239
1236
  };
1240
1237
  return l({ class: "relative w-full max-w-[320px]" }, [
1241
- st({
1238
+ ot({
1242
1239
  toggleOpen: e,
1243
1240
  bind: this.bind,
1244
1241
  required: this.required
1245
1242
  }),
1246
- ot({
1243
+ lt({
1247
1244
  handleDateSelect: t,
1248
1245
  blockPriorDates: this.blockPriorDates || !1
1249
1246
  })
1250
1247
  ]);
1251
1248
  }
1252
1249
  }
1253
- ), lt = ({ bind: e, required: t }) => b({
1250
+ ), nt = ({ bind: e, required: t }) => b({
1254
1251
  cache: "input",
1255
1252
  class: "opacity-0 absolute top-0 left-0 w-full h-full pointer-events-none",
1256
1253
  bind: e,
1257
1254
  required: t
1258
- }), nt = ({ bind: e, required: t, toggleOpen: s }) => f({
1255
+ }), rt = ({ bind: e, required: t, toggleOpen: s }) => f({
1259
1256
  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",
1260
1257
  click: s
1261
1258
  }, [
1262
- lt({ bind: e, required: t }),
1259
+ nt({ bind: e, required: t }),
1263
1260
  W(({ state: o }) => [
1264
- a(z.date(["[[start]]", o], "Start Date")),
1261
+ a(O.date(["[[start]]", o], "Start Date")),
1265
1262
  a(" - "),
1266
- a(z.date(["[[end]]", o], "End Date"))
1263
+ a(O.date(["[[end]]", o], "End Date"))
1267
1264
  ]),
1268
1265
  p({ html: u.calendar.days })
1269
- ]), rt = ({ handleDateSelect: e, blockPriorDates: t }) => M((s, o, n) => new S({
1266
+ ]), it = ({ handleDateSelect: e, blockPriorDates: t }) => M((s, o, n) => new S({
1270
1267
  cache: "dropdown",
1271
1268
  parent: n,
1272
1269
  button: n.panel,
@@ -1278,7 +1275,7 @@ const O = globalThis.matchMedia, B = c(({ value: e, label: t, icon: s }) => f({
1278
1275
  onRangeSelect: e,
1279
1276
  blockPriorDates: t
1280
1277
  })
1281
- ])), Wt = y(
1278
+ ])), Gt = y(
1282
1279
  {
1283
1280
  /**
1284
1281
  * The initial state of the DateRangePicker.
@@ -1314,19 +1311,19 @@ const O = globalThis.matchMedia, B = c(({ value: e, label: t, icon: s }) => f({
1314
1311
  this.state.start = s, this.state.end = o, this.state.open = !1, this.input.value = `${s}-${o}`, k.trigger("change", this.input), typeof this.onChange == "function" && this.onChange({ start: s, end: o }, this.parent);
1315
1312
  };
1316
1313
  return l({ class: "relative w-full max-w-[320px]" }, [
1317
- nt({
1314
+ rt({
1318
1315
  toggleOpen: e,
1319
1316
  bind: this.bind,
1320
1317
  required: this.required
1321
1318
  }),
1322
- rt({
1319
+ it({
1323
1320
  handleDateSelect: t,
1324
1321
  blockPriorDates: this.blockPriorDates || !1
1325
1322
  })
1326
1323
  ]);
1327
1324
  }
1328
1325
  }
1329
- ), Gt = ({ dateTime: e = "", remoteTimeZone: t = "America/Denver", filter: s = null }) => oe([
1326
+ ), Jt = ({ dateTime: e = "", remoteTimeZone: t = "America/Denver", filter: s = null }) => oe([
1330
1327
  new fe({
1331
1328
  dateTime: e,
1332
1329
  filter: s || ((o) => {
@@ -1335,7 +1332,7 @@ const O = globalThis.matchMedia, B = c(({ value: e, label: t, icon: s }) => f({
1335
1332
  })
1336
1333
  })
1337
1334
  ]);
1338
- function it({ bind: e, required: t }) {
1335
+ function at({ bind: e, required: t }) {
1339
1336
  return b({
1340
1337
  cache: "input",
1341
1338
  class: "opacity-0 absolute top-0 left-0 w-full h-full pointer-events-none",
@@ -1343,14 +1340,14 @@ function it({ bind: e, required: t }) {
1343
1340
  required: t
1344
1341
  });
1345
1342
  }
1346
- function at({ bind: e, required: t, toggleOpen: s }) {
1343
+ function ct({ bind: e, required: t, toggleOpen: s }) {
1347
1344
  return f(
1348
1345
  {
1349
1346
  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",
1350
1347
  click: s
1351
1348
  },
1352
1349
  [
1353
- it({ bind: e, required: t }),
1350
+ at({ bind: e, required: t }),
1354
1351
  a({
1355
1352
  onState: ["selectedTime", (o) => o || "Pick a time"]
1356
1353
  }),
@@ -1372,7 +1369,7 @@ function T({ items: e, handleTimeSelect: t, state: s, stateValue: o, pad: n = !1
1372
1369
  })
1373
1370
  );
1374
1371
  }
1375
- function ct({ handleTimeSelect: e }) {
1372
+ function ut({ handleTimeSelect: e }) {
1376
1373
  return M(
1377
1374
  (t, s, o) => new S(
1378
1375
  {
@@ -1432,7 +1429,7 @@ function R(e) {
1432
1429
  meridian: r
1433
1430
  });
1434
1431
  }
1435
- const Jt = y(
1432
+ const Kt = y(
1436
1433
  {
1437
1434
  /**
1438
1435
  * The initial shallow state of the TimePicker.
@@ -1480,23 +1477,23 @@ const Jt = y(
1480
1477
  return l(
1481
1478
  { class: "relative w-full max-w-[320px]" },
1482
1479
  [
1483
- at({
1480
+ ct({
1484
1481
  toggleOpen: e,
1485
1482
  bind: this.bind,
1486
1483
  required: this.required
1487
1484
  }),
1488
- ct({
1485
+ ut({
1489
1486
  handleTimeSelect: t
1490
1487
  })
1491
1488
  ]
1492
1489
  );
1493
1490
  }
1494
1491
  }
1495
- ), ut = (e, t) => l({ class: `hidden md:flex items-start justify-center w-6 h-6 mr-3 ${t}` }, [
1492
+ ), dt = (e, t) => l({ class: `hidden md:flex items-start justify-center w-6 h-6 mr-3 ${t}` }, [
1496
1493
  m({ size: "lg" }, e)
1497
- ]), dt = ({ title: e }) => $({ class: "flex flex-auto items-center" }, [
1494
+ ]), ht = ({ title: e }) => F({ class: "flex flex-auto items-center" }, [
1498
1495
  C({ class: "text-lg font-semibold" }, e)
1499
- ]), ht = c((e, t) => le(
1496
+ ]), ft = c((e, t) => le(
1500
1497
  {
1501
1498
  class: `fixed pullUpIn z-30 w-[98%] border md:w-full max-w-lg bg-popover text-foreground shadow-lg duration-200
1502
1499
  rounded-lg flex flex-auto flex-col
@@ -1507,10 +1504,10 @@ const Jt = y(
1507
1504
  [
1508
1505
  l({ class: "flex flex-auto p-6 pb-12 md:pb-6" }, [
1509
1506
  // Icon and content
1510
- e.icon && ut(e.icon, e.iconColor),
1507
+ e.icon && dt(e.icon, e.iconColor),
1511
1508
  l({ class: "flex flex-auto flex-col gap-4" }, [
1512
1509
  l({ class: "flex flex-auto flex-col gap-y-2" }, [
1513
- dt(e),
1510
+ ht(e),
1514
1511
  e.description && g({ class: "flex flex-auto flex-col text-sm text-muted-foreground" }, e.description),
1515
1512
  l({ class: "flex flex-auto flex-col text-sm text-muted-foreground" }, t)
1516
1513
  ]),
@@ -1518,7 +1515,7 @@ const Jt = y(
1518
1515
  ])
1519
1516
  ])
1520
1517
  ]
1521
- )), ft = (e) => G.render(e, app.root), V = {
1518
+ )), mt = (e) => G.render(e, app.root), V = {
1522
1519
  info: {
1523
1520
  borderColor: "border-blue-500",
1524
1521
  bgColor: "bg-muted/10",
@@ -1545,7 +1542,7 @@ const Jt = y(
1545
1542
  iconColor: "text-muted-foreground"
1546
1543
  }
1547
1544
  };
1548
- class mt extends w {
1545
+ class gt extends w {
1549
1546
  /**
1550
1547
  * This will declare the props for the compiler.
1551
1548
  *
@@ -1563,7 +1560,7 @@ class mt extends w {
1563
1560
  const t = (d) => {
1564
1561
  d.target === this.panel && this.close();
1565
1562
  }, { borderColor: s, bgColor: o, iconColor: n } = V[this.type] || V.default, r = `${this.getMainClass()} ${o} ${s}`, i = this.title || "Dialog Title";
1566
- return ht({
1563
+ return ft({
1567
1564
  class: r,
1568
1565
  title: i,
1569
1566
  click: t,
@@ -1607,7 +1604,7 @@ class mt extends w {
1607
1604
  * @returns {void}
1608
1605
  */
1609
1606
  open() {
1610
- ft(this), this.panel.showModal(), this.state.open = !0;
1607
+ mt(this), this.panel.showModal(), this.state.open = !0;
1611
1608
  }
1612
1609
  /**
1613
1610
  * This will close the modal.
@@ -1618,7 +1615,7 @@ class mt extends w {
1618
1615
  this.state.open = !1, this.panel.close(), typeof this.onClose == "function" && this.onClose(), this.destroy();
1619
1616
  }
1620
1617
  }
1621
- class Kt extends mt {
1618
+ class Qt extends gt {
1622
1619
  /**
1623
1620
  * This will declare the props for the compiler.
1624
1621
  *
@@ -1648,7 +1645,7 @@ class Kt extends mt {
1648
1645
  this.confirmed && this.confirmed(), this.close();
1649
1646
  }
1650
1647
  }
1651
- const Qt = c((e, t = []) => l({ class: "w-full max-w-md p-6 m-auto" }, [
1648
+ const Xt = c((e, t = []) => l({ class: "w-full max-w-md p-6 m-auto" }, [
1652
1649
  K({ class: "flex flex-auto flex-col" }, [
1653
1650
  l({ class: "flex flex-auto flex-col gap-y-4" }, [
1654
1651
  l({ class: "flex flex-auto items-center justify-center" }, [
@@ -1656,7 +1653,7 @@ const Qt = c((e, t = []) => l({ class: "w-full max-w-md p-6 m-auto" }, [
1656
1653
  m(e.icon)
1657
1654
  ])
1658
1655
  ]),
1659
- $({ class: "py-4 text-center" }, [
1656
+ F({ class: "py-4 text-center" }, [
1660
1657
  C({ class: "text-xl font-bold" }, e.title),
1661
1658
  g({ class: "pb-8 text-muted-foreground" }, e.description || ""),
1662
1659
  ...t
@@ -1665,50 +1662,50 @@ const Qt = c((e, t = []) => l({ class: "w-full max-w-md p-6 m-auto" }, [
1665
1662
  ])
1666
1663
  ]));
1667
1664
  export {
1668
- kt as A,
1669
- Vt as B,
1670
- Pt as C,
1671
- St as D,
1672
- _t as E,
1665
+ St as A,
1666
+ qt as B,
1667
+ Mt as C,
1668
+ Dt as D,
1669
+ Wt as E,
1673
1670
  De as F,
1674
- Wt as G,
1675
- Gt as H,
1676
- Ut as I,
1677
- Jt as J,
1678
- Kt as K,
1679
- Rt as L,
1680
- Mt as M,
1681
- jt as N,
1682
- ht as O,
1683
- Ze as P,
1684
- mt as Q,
1685
- Qt as R,
1686
- At as S,
1671
+ Gt as G,
1672
+ Jt as H,
1673
+ Rt as I,
1674
+ Kt as J,
1675
+ Qt as K,
1676
+ Vt as L,
1677
+ jt as M,
1678
+ Ot as N,
1679
+ ft as O,
1680
+ et as P,
1681
+ gt as Q,
1682
+ Xt as R,
1683
+ Pt as S,
1687
1684
  zt as T,
1688
1685
  ve as a,
1689
- Dt as b,
1686
+ It as b,
1690
1687
  Ce as c,
1691
1688
  Ie as d,
1692
- $e as e,
1693
- Fe as f,
1694
- It as g,
1689
+ Fe as e,
1690
+ $e as f,
1691
+ Ft as g,
1695
1692
  $t as h,
1696
- Ft as i,
1693
+ Bt as i,
1697
1694
  Te as j,
1698
- Bt as k,
1695
+ Tt as k,
1699
1696
  K as l,
1700
- Tt as m,
1701
- Lt as n,
1702
- Ne as o,
1697
+ Lt as m,
1698
+ At as n,
1699
+ Ee as o,
1703
1700
  Et as p,
1704
1701
  Nt as q,
1705
- Ot as r,
1702
+ Ut as r,
1706
1703
  D as s,
1707
1704
  x as t,
1708
1705
  Re as u,
1709
- qt as v,
1710
- Ht as w,
1711
- Xe as x,
1712
- et as y,
1713
- Yt as z
1706
+ Ht as v,
1707
+ Yt as w,
1708
+ Ze as x,
1709
+ tt as y,
1710
+ _t as z
1714
1711
  };