@base-framework/ui 1.0.270 → 1.0.273

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,10 +1,10 @@
1
- import { Div as n, H5 as J, P as m, I as p, Li as U, Span as a, Ul as V, Button as f, OnState as x, Label as R, H2 as v, Form as K, Header as I, Footer as A, A as q, H3 as Q, Checkbox as X, Input as w, Img as Z, Nav as ee, UseParent as H, Time as te, Dialog as se } from "@base-framework/atoms";
2
- import { Atom as c, Component as C, Html as L, Dom as oe, base as ne, Data as $, Builder as Y, Jot as k, Events as le, DateTime as F } from "@base-framework/base";
3
- import { P as S, b as re, R as ie } from "./range-calendar-DW0cMOJy.js";
4
- import { C as ae, F as ce, a as y } from "./veil-tVDPinrr.js";
1
+ import { Div as n, H5 as J, P as m, I as p, Li as U, Span as i, Ul as R, Button as f, OnState as x, Label as V, H2 as C, Form as K, Header as I, Footer as A, A as q, H3 as Q, Checkbox as X, Input as w, Img as Z, Nav as ee, UseParent as H, Time as te, Dialog as se } from "@base-framework/atoms";
2
+ import { Atom as c, Component as y, Html as L, Dom as oe, base as ne, Data as $, Builder as Y, Jot as k, Events as le, DateTime as F } from "@base-framework/base";
3
+ import { P as S, b as re, R as ae } from "./range-calendar-DW0cMOJy.js";
4
+ import { C as ie, F as ce, a as v } from "./veil-tVDPinrr.js";
5
5
  import { B as h, I as g } from "./buttons-BKLL4I6r.js";
6
- import { Icons as u } from "./icons.es.js";
7
- import { Timer as de, List as ue, DynamicTime as he } from "@base-framework/organisms";
6
+ import { Icons as d } from "./icons.es.js";
7
+ import { Timer as ue, List as de, DynamicTime as he } from "@base-framework/organisms";
8
8
  import { F as P } from "./format-DnofNaaz.js";
9
9
  const M = {
10
10
  info: {
@@ -34,18 +34,18 @@ const M = {
34
34
  }
35
35
  }, fe = (e, t) => n({ class: `flex items-center justify-center h-6 w-6 mr-3 ${t}` }, [
36
36
  p({ html: e })
37
- ]), me = (e) => J({ class: "font-semibold" }, e), pe = (e) => m({ class: "text-sm text-muted-foreground" }, e), kt = c(({ title: e, description: t, icon: s, type: o = "default" }) => {
38
- const { borderColor: l, bgColor: r, iconColor: i } = M[o] || M.default;
37
+ ]), me = (e) => J({ class: "font-semibold" }, e), pe = (e) => m({ class: "text-sm text-muted-foreground" }, e), Ct = c(({ title: e, description: t, icon: s, type: o = "default" }) => {
38
+ const { borderColor: l, bgColor: r, iconColor: a } = M[o] || M.default;
39
39
  return n({ class: `flex items-start p-4 border rounded-lg ${r} ${l}` }, [
40
40
  // Icon and content
41
- s && fe(s, i),
41
+ s && fe(s, a),
42
42
  n({ class: "flex flex-col" }, [
43
43
  me(e),
44
44
  pe(t)
45
45
  ])
46
46
  ]);
47
47
  });
48
- class ge extends C {
48
+ class kt extends y {
49
49
  /**
50
50
  * This will declare the props for the compiler.
51
51
  *
@@ -69,30 +69,30 @@ class ge extends C {
69
69
  oe.addClass(t, s), ne.on("animationend", t, (o) => L.removeElement(t));
70
70
  }
71
71
  }
72
- const be = (e) => a({ class: "ml-auto text-xs tracking-widest opacity-60" }, e), xe = (e) => a({ class: "flex w-4 h-4", html: e }), we = (e) => a({ class: "flex-auto" }, e), ye = (e, t) => U({
72
+ const ge = (e) => i({ class: "ml-auto text-xs tracking-widest opacity-60" }, e), be = (e) => i({ class: "flex w-4 h-4", html: e }), xe = (e) => i({ class: "flex-auto" }, e), we = (e, t) => U({
73
73
  class: "relative flex cursor-pointer hover:bg-muted/50 select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
74
74
  click: () => t(e)
75
75
  }, [
76
- e.icon && xe(e.icon),
77
- we(e.label),
78
- e.shortcut && be(e.shortcut)
79
- ]), ve = (e, t) => V({ class: "grid gap-2" }, [
80
- e.map((s) => ye(s, t))
81
- ]), Ce = (e) => n({ class: "w-full z-10" }, [
76
+ e.icon && be(e.icon),
77
+ xe(e.label),
78
+ e.shortcut && ge(e.shortcut)
79
+ ]), ye = (e, t) => R({ class: "grid gap-2" }, [
80
+ e.map((s) => we(s, t))
81
+ ]), ve = (e) => n({ class: "w-full z-10" }, [
82
82
  n({
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) => ve(t, e)]
84
+ for: ["groups", (t) => ye(t, e)]
85
85
  })
86
- ]), ke = ({ label: e, icon: t, toggleDropdown: s }) => f({
86
+ ]), Ce = ({ label: e, icon: t, toggleDropdown: s }) => f({
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
90
90
  focus:outline-none transition duration-150 ease-in-out`,
91
91
  click: s
92
92
  }, [
93
- e && a(e),
93
+ e && i(e),
94
94
  t && p({ html: t })
95
- ]), Se = ({ onSelect: e }) => n([
95
+ ]), ke = ({ onSelect: e }) => n([
96
96
  x(
97
97
  "open",
98
98
  (t, s, o) => t ? new S({
@@ -100,11 +100,11 @@ const be = (e) => a({ class: "ml-auto text-xs tracking-widest opacity-60" }, e),
100
100
  parent: o,
101
101
  button: o.button
102
102
  }, [
103
- Ce(e)
103
+ ve(e)
104
104
  ]) : null
105
105
  )
106
106
  ]);
107
- class St extends C {
107
+ class St extends y {
108
108
  /**
109
109
  * This will declare the props for the compiler.
110
110
  *
@@ -158,17 +158,17 @@ class St extends C {
158
158
  */
159
159
  render() {
160
160
  return n({ class: "relative" }, [
161
- ke({
161
+ Ce({
162
162
  label: this.label,
163
163
  icon: this.icon,
164
164
  toggleDropdown: this.toggleDropdown.bind(this)
165
165
  }),
166
- Se({ onSelect: this.handleSelect.bind(this) })
166
+ ke({ onSelect: this.handleSelect.bind(this) })
167
167
  ]);
168
168
  }
169
169
  }
170
- const De = c((e, t) => n({ ...e, class: "flex flex-auto flex-col space-y-2" }, t)), Ie = c((e, t) => R({ ...e, class: "flex auto text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70" }, t)), $e = c((e, t) => m({ ...e, class: "text-sm text-muted-foreground italic" }, t)), Te = c((e, t) => m({ ...e, class: "text-sm text-destructive" }, t)), Dt = c((e, t = []) => ae({ class: "space-y-0", margin: "m-0", padding: "p-0" }, [
171
- e.title && v({ class: "text-lg font-semibold py-4 px-6" }, e.title),
170
+ const Se = c((e, t) => n({ ...e, class: "flex flex-auto flex-col space-y-2" }, t)), De = c((e, t) => V({ ...e, class: "flex auto text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70" }, t)), Ie = c((e, t) => m({ ...e, class: "text-sm text-muted-foreground italic" }, t)), $e = c((e, t) => m({ ...e, class: "text-sm text-destructive" }, t)), Dt = c((e, t = []) => ie({ class: "space-y-0", margin: "m-0", padding: "p-0" }, [
171
+ e.title && C({ class: "text-lg font-semibold py-4 px-6" }, e.title),
172
172
  e.description && m({ class: "text-sm text-muted-foreground pb-4 px-6 max-w-[700px]" }, e.description),
173
173
  ...t
174
174
  ])), It = c((e, t = []) => ce({ label: e.label, description: e.description, class: "py-4 px-6", border: e.border }, [
@@ -176,14 +176,14 @@ const De = c((e, t) => n({ ...e, class: "flex flex-auto flex-col space-y-2" }, t
176
176
  ])), $t = c((e, t = []) => {
177
177
  const s = e.border ? "border-t" : "";
178
178
  return n({ ...e, class: `flex flex-col pb-4 px-6 space-y-4 ${s} ${e.class || ""}` }, t);
179
- }), Be = (e) => e.tag === "input" || e.tag === "select" || e.tag === "textarea", _ = (e, t, s) => e.map((o) => !o || (o.children && o.children.length > 0 && (o.children = _(o.children, t, s)), !o.required) ? o : Be(o) ? {
179
+ }), Te = (e) => e.tag === "input" || e.tag === "select" || e.tag === "textarea", _ = (e, t, s) => e.map((o) => !o || (o.children && o.children.length > 0 && (o.children = _(o.children, t, s)), !o.required) ? o : Te(o) ? {
180
180
  ...o,
181
181
  aria: {
182
182
  invalid: ["hasError"]
183
183
  },
184
184
  invalid: s,
185
185
  input: t
186
- } : o), Fe = c((e, t) => {
186
+ } : o), Be = c((e, t) => {
187
187
  const l = _(t, (r) => {
188
188
  r.target.checkValidity() && e.setError(null);
189
189
  }, (r) => {
@@ -193,7 +193,7 @@ const De = c((e, t) => n({ ...e, class: "flex flex-auto flex-col space-y-2" }, t
193
193
  ...e,
194
194
  class: "w-full"
195
195
  }, l);
196
- }), Tt = y(
196
+ }), Tt = v(
197
197
  {
198
198
  /**
199
199
  * The initial state of the FormField.
@@ -218,38 +218,38 @@ const De = c((e, t) => n({ ...e, class: "flex flex-auto flex-col space-y-2" }, t
218
218
  this.state.error = r, this.state.hasError = !!r;
219
219
  };
220
220
  return n({ class: "flex flex-auto space-y-4" }, [
221
- De([
222
- Ie({ htmlFor: t }, s),
223
- Fe({
221
+ Se([
222
+ De({ htmlFor: t }, s),
223
+ Be({
224
224
  id: t,
225
225
  name: e,
226
226
  value: this.state.value,
227
227
  setError: l
228
228
  }, this.children),
229
- o && $e({ id: this.getId("description") }, o),
230
- n({ onState: ["error", (r) => r && Te(r)] })
229
+ o && Ie({ id: this.getId("description") }, o),
230
+ n({ onState: ["error", (r) => r && $e(r)] })
231
231
  ])
232
232
  ]);
233
233
  }
234
234
  }
235
- ), Ae = (e, t, s = null) => {
235
+ ), Fe = (e, t, s = null) => {
236
236
  e.target.checkValidity() && (e.preventDefault(), s && s(e, t));
237
237
  }, W = c(
238
- (e, t) => K({ ...e, submit: (s, o) => Ae(s, o, e.submit), class: `w-full ${e.class ?? ""}` }, t)
238
+ (e, t) => K({ ...e, submit: (s, o) => Fe(s, o, e.submit), class: `w-full ${e.class ?? ""}` }, t)
239
239
  ), Bt = c((e, t) => n({ ...e, class: `space-y-6 p-4 md:p-6 divide-y ${e.class || ""}` }, t)), Ft = c((e, t = []) => n({ class: "space-y-3 py-4" }, [
240
- e.title && v({ class: "font-semibold" }, e.title),
240
+ e.title && C({ class: "font-semibold" }, e.title),
241
241
  ...t
242
242
  ])), At = (e, t) => n({ class: "flex justify-between" }, [
243
- a({ class: "text-muted-foreground" }, e),
244
- a(t)
243
+ i({ class: "text-muted-foreground" }, e),
244
+ i(t)
245
245
  ]), Lt = (e, t) => n({ class: "flex" }, [
246
- a({ class: "text-muted-foreground mr-8 w-24 truncate text-nowrap" }, e),
247
- a(t)
248
- ]), Le = ({ title: e, description: t, back: s, icon: o, options: l = [] }) => I({ class: "modal-header bg-background/80 backdrop-blur-md sticky flex flex-none items-center py-4 px-6 z-10" }, [
246
+ i({ class: "text-muted-foreground mr-8 w-24 truncate text-nowrap" }, e),
247
+ i(t)
248
+ ]), Ae = ({ title: e, description: t, back: s, icon: o, options: l = [] }) => I({ 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: u.arrows.left, class: "mr-2 p-0 flex sm:hidden", click: (r, i) => i.close() }),
252
+ s && h({ variant: "icon", icon: d.arrows.left, class: "mr-2 p-0 flex sm:hidden", click: (r, a) => a.close() }),
253
253
  /**
254
254
  * Icon
255
255
  */
@@ -259,12 +259,12 @@ const De = c((e, t) => n({ ...e, class: "flex flex-auto flex-col space-y-2" }, t
259
259
  */
260
260
  n({ class: "flex flex-auto flex-row justify-between w-full ml-2 gap-2" }, [
261
261
  n({ class: "flex flex-auto flex-col" }, [
262
- v({ class: "text-lg font-semibold m-0 truncate" }, e),
262
+ C({ class: "text-lg font-semibold m-0 truncate" }, e),
263
263
  t && n({ class: "text-sm text-muted-foreground truncate" }, t)
264
264
  ]),
265
265
  ...l
266
266
  ])
267
- ]), Pe = c((e, t) => n({
267
+ ]), Le = c((e, t) => n({
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,12 +272,12 @@ const De = c((e, t) => n({ ...e, class: "flex flex-auto flex-col space-y-2" }, t
272
272
  }
273
273
  }, [
274
274
  W({ class: "modal-content relative bg-background z-[1] flex flex-auto flex-col space-y-4", submit: (s, o) => e.onSubmit && e.onSubmit(o) }, [
275
- Le(e),
275
+ Ae(e),
276
276
  n({ class: "modal-body flex flex-grow flex-col overflow-y-auto py-0 px-6 z-0" }, t),
277
277
  A({ 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
- ])), Me = (e) => Y.render(e, app.root);
280
- class Pt extends C {
279
+ ])), Pe = (e) => Y.render(e, app.root);
280
+ class Pt extends y {
281
281
  /**
282
282
  * This will declare the props for the compiler.
283
283
  *
@@ -293,7 +293,7 @@ class Pt extends C {
293
293
  */
294
294
  render() {
295
295
  const t = this.getMainClass(), s = this.title || "", o = this.description || null;
296
- return Pe(
296
+ return Le(
297
297
  {
298
298
  class: t,
299
299
  title: s,
@@ -408,7 +408,7 @@ class Pt extends C {
408
408
  * @returns {void}
409
409
  */
410
410
  open() {
411
- Me(this), this.showModal();
411
+ Pe(this), this.showModal();
412
412
  }
413
413
  /**
414
414
  * This will destroy the modal.
@@ -463,25 +463,29 @@ const N = {
463
463
  borderColor: "border",
464
464
  iconColor: "text-muted-foreground"
465
465
  }
466
- }, Ne = (e) => I({ class: "flex justify-center" }, [
466
+ }, Me = (e) => I({ class: "flex justify-center" }, [
467
467
  Q({ class: "text-lg font-bold mb-0" }, e)
468
- ]), ze = c(({ href: e, class: t }, s) => q({
469
- 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}`,
468
+ ]), Ne = c(({ href: e, class: t }, s) => q({
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
+ animateIn: "pullRightIn",
472
+ animateOut: "pullRight",
471
473
  role: "alert"
472
- }, s)), Ee = c(({ close: e, class: t }, s) => n({
474
+ }, s)), ze = c(({ close: e, class: t }, s) => n({
473
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}`,
474
476
  click: () => e(),
477
+ animateIn: "pullRightIn",
478
+ animateOut: "pullRight",
475
479
  role: "alert"
476
480
  }, s));
477
- class je extends ge {
481
+ class Ee extends y {
478
482
  /**
479
483
  * This will declare the props for the compiler.
480
484
  *
481
485
  * @returns {void}
482
486
  */
483
487
  declareProps() {
484
- this.removingClass = "pullRight", this.secondaryAction = null, this.primaryAction = null, this.primary = !1, this.secondary = !1, this.title = null, this.description = null, this.icon = null, this.onClick = null;
488
+ this.secondaryAction = null, this.primaryAction = null, this.primary = !1, this.secondary = !1, this.title = null, this.description = null, this.icon = null, this.onClick = null;
485
489
  }
486
490
  /**
487
491
  * This will be called when the component is created.
@@ -498,10 +502,10 @@ class je extends ge {
498
502
  */
499
503
  render() {
500
504
  const { bgColor: t, borderColor: s, iconColor: o } = this.getTypeStyles(), l = this.href || null, r = this.getChildren(o);
501
- return l ? ze({
505
+ return l ? Ne({
502
506
  href: l,
503
507
  class: `${t} ${s}`
504
- }, r) : Ee({
508
+ }, r) : ze({
505
509
  close: this.close.bind(this),
506
510
  class: `${t} ${s}`
507
511
  }, r);
@@ -513,7 +517,7 @@ class je extends ge {
513
517
  */
514
518
  afterSetup() {
515
519
  const t = this.duration;
516
- t !== "infinite" && (this.timer = new de(t, this.close.bind(this)), this.timer.start());
520
+ t !== "infinite" && (this.timer = new ue(t, this.close.bind(this)), this.timer.start());
517
521
  }
518
522
  /**
519
523
  * This will get the style properties based on the notification type.
@@ -549,7 +553,7 @@ class je extends ge {
549
553
  this.icon && p({ class: `mr-4 ${t}`, html: this.icon }),
550
554
  n({ class: "flex flex-auto flex-col" }, [
551
555
  n({ class: "flex flex-auto flex-row items-center w-full pr-12" }, [
552
- this.title && Ne(this.title)
556
+ this.title && Me(this.title)
553
557
  ]),
554
558
  m({ class: "text-base text-muted-foreground m-0 pr-12" }, this.description),
555
559
  (this.primary || this.secondary) && A({ class: "margin-top-24 flex align-center" }, this.getButtons())
@@ -558,7 +562,7 @@ class je extends ge {
558
562
  h({
559
563
  class: "absolute top-[12px] right-[12px]",
560
564
  variant: "icon",
561
- icon: u.x,
565
+ icon: d.x,
562
566
  click: this.close.bind(this)
563
567
  })
564
568
  ];
@@ -573,8 +577,8 @@ class je extends ge {
573
577
  t && t.stopPropagation(), this.duration !== "infinite" && this.timer.stop(), this.onClick && this.onClick(), this.destroy();
574
578
  }
575
579
  }
576
- let Oe = 0;
577
- class Mt extends C {
580
+ let je = 0;
581
+ class Mt extends y {
578
582
  /**
579
583
  * This will render the component.
580
584
  *
@@ -582,11 +586,11 @@ class Mt extends C {
582
586
  */
583
587
  render() {
584
588
  return n({ class: "notification-container pointer-events-none inset-auto bg-transparent backdrop:bg-transparent overflow-visible fixed bottom-[80px] right-0 z-50 p-5", popover: "manual" }, [
585
- new ue({
589
+ new de({
586
590
  cache: "list",
587
591
  key: "id",
588
592
  role: "list",
589
- rowItem: (t) => new je(t)
593
+ rowItem: (t) => new Ee(t)
590
594
  })
591
595
  ]);
592
596
  }
@@ -597,7 +601,7 @@ class Mt extends C {
597
601
  * @returns {void}
598
602
  */
599
603
  addNotice(t = {}) {
600
- t.id = Oe++, t.callBack = () => this.removeNotice(t), this.list.append([t]), this.panel.hidePopover(), this.panel.showPopover();
604
+ t.id = je++, t.callBack = () => this.removeNotice(t), this.list.append([t]), this.panel.hidePopover(), this.panel.showPopover();
601
605
  }
602
606
  /**
603
607
  * This will remove a notification.
@@ -614,12 +618,12 @@ const z = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
614
618
  onState: ["method", { active: e }],
615
619
  dataSet: ["method", ["state", e, "active"]],
616
620
  click: (o, { state: l }) => {
617
- l.method = e, localStorage.setItem("theme", e), e === "system" && localStorage.removeItem("theme"), Ue(e);
621
+ l.method = e, localStorage.setItem("theme", e), e === "system" && localStorage.removeItem("theme"), Oe(e);
618
622
  }
619
623
  }, [
620
624
  g(s),
621
- a(t)
622
- ])), Ue = (e) => {
625
+ i(t)
626
+ ])), Oe = (e) => {
623
627
  var o;
624
628
  const t = document.documentElement;
625
629
  if (e === "system" && (e = (o = globalThis.matchMedia) != null && o.call(globalThis, "(prefers-color-scheme: dark)").matches ? "dark" : "light"), z && !z("(prefers-color-scheme: " + e + ")").matches) {
@@ -638,9 +642,9 @@ const z = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
638
642
  render() {
639
643
  return n({ class: "flex flex-auto flex-col" }, [
640
644
  n({ class: "grid grid-cols-3 gap-4" }, [
641
- T({ label: "System", value: "system", icon: u.adjustments.horizontal }),
642
- T({ label: "Light", value: "light", icon: u.sun }),
643
- T({ label: "Dark", value: "dark", icon: u.moon })
645
+ T({ label: "System", value: "system", icon: d.adjustments.horizontal }),
646
+ T({ label: "Light", value: "light", icon: d.sun }),
647
+ T({ label: "Dark", value: "dark", icon: d.moon })
644
648
  ])
645
649
  ]);
646
650
  },
@@ -655,7 +659,7 @@ const z = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
655
659
  };
656
660
  }
657
661
  }
658
- ), zt = y(
662
+ ), zt = v(
659
663
  {
660
664
  /**
661
665
  * The initial state of the Toggle.
@@ -700,7 +704,7 @@ const z = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
700
704
  bind: this.bind,
701
705
  required: this.required
702
706
  }),
703
- a({
707
+ i({
704
708
  class: "absolute h-5 w-5 bg-background rounded-full shadow-md transform transition-transform",
705
709
  onState: ["active", { "translate-x-[22px]": !0, "translate-x-[2px]": !1 }]
706
710
  })
@@ -717,8 +721,8 @@ const z = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
717
721
  OFFLINE: "bg-gray-500",
718
722
  BUSY: "bg-red-500",
719
723
  AWAY: "bg-yellow-500"
720
- }, Ve = (e = "") => (e = e.toUpperCase(), b[e] || b.OFFLINE), Et = (e) => n({
721
- class: `absolute bottom-0 right-0 w-3 h-3 border-2 rounded-full ${Ve(e)}`
724
+ }, Ue = (e = "") => (e = e.toUpperCase(), b[e] || b.OFFLINE), Et = (e) => n({
725
+ class: `absolute bottom-0 right-0 w-3 h-3 border-2 rounded-full ${Ue(e)}`
722
726
  }), jt = ({ propName: e = "status" } = {}) => n({
723
727
  class: "absolute bottom-0 right-0 w-3 h-3 border-2 rounded-full",
724
728
  onSet: [e, {
@@ -790,11 +794,11 @@ const z = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
790
794
  // @ts-ignore
791
795
  src: this.src,
792
796
  class: "absolute inset-0 w-full h-full object-cover rounded-full"
793
- }) : R({
797
+ }) : V({
794
798
  htmlFor: e,
795
799
  class: "z-10 flex flex-col items-center justify-center text-sm text-muted-foreground group-hover:text-primary"
796
800
  }, [
797
- g(u.upload),
801
+ g(d.upload),
798
802
  n("Upload logo")
799
803
  ])
800
804
  )
@@ -809,14 +813,14 @@ const z = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
809
813
  // Only set aria-current on the last item
810
814
  class: "text-muted-foreground font-medium hover:text-foreground"
811
815
  },
812
- [a(t)]
813
- ), qe = () => g({
816
+ [i(t)]
817
+ ), Ve = () => g({
814
818
  class: "mx-3 text-muted-foreground",
815
819
  "aria-hidden": !0,
816
820
  size: "xs"
817
- }, u.chevron.single.right), He = (e) => n({ class: "flex items-center" }, [
818
- e.href ? Re(e.href, e.label) : a(e.label),
819
- e.separator && qe()
821
+ }, d.chevron.single.right), qe = (e) => n({ class: "flex items-center" }, [
822
+ e.href ? Re(e.href, e.label) : i(e.label),
823
+ e.separator && Ve()
820
824
  ]), Ut = k(
821
825
  {
822
826
  /**
@@ -846,7 +850,7 @@ const z = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
846
850
  n({
847
851
  role: "list",
848
852
  class: "flex items-center",
849
- for: ["items", (t, s) => He({
853
+ for: ["items", (t, s) => qe({
850
854
  href: t.href,
851
855
  label: t.label,
852
856
  separator: s < e
@@ -865,8 +869,8 @@ const z = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
865
869
  "2xl": "h-16 w-16",
866
870
  "3xl": "h-24 w-24",
867
871
  default: "h-4 w-4"
868
- }, Ye = (e) => E[e] || E.default, _e = ({ index: e, size: t }) => n({ class: `${t} rounded-full bg-muted cursor-pointer` }, [
869
- a({
872
+ }, He = (e) => E[e] || E.default, Ye = ({ index: e, size: t }) => n({ class: `${t} rounded-full bg-muted cursor-pointer` }, [
873
+ i({
870
874
  class: "block w-full h-full rounded-full transition-colors",
871
875
  onSet: ["activeIndex", {
872
876
  "bg-primary": e,
@@ -876,10 +880,10 @@ const z = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
876
880
  o.activeIndex = e, l && l(e);
877
881
  }
878
882
  })
879
- ]), We = (e, t) => Array.from({ length: e }, (s, o) => _e({
883
+ ]), _e = (e, t) => Array.from({ length: e }, (s, o) => Ye({
880
884
  index: o,
881
885
  size: t
882
- })), Vt = k(
886
+ })), Rt = k(
883
887
  {
884
888
  /**
885
889
  * Defines component data (props).
@@ -901,7 +905,7 @@ const z = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
901
905
  * @returns {object}
902
906
  */
903
907
  render() {
904
- const e = this.gap || "gap-2", t = Ye(this.size || "sm"), s = We(this.data.count, t);
908
+ const e = this.gap || "gap-2", t = He(this.size || "sm"), s = _e(this.data.count, t);
905
909
  return n(
906
910
  { class: "flex justify-center items-center py-2" },
907
911
  [
@@ -910,26 +914,26 @@ const z = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
910
914
  );
911
915
  }
912
916
  }
913
- ), Ge = ({ toggleDropdown: e }) => f(
917
+ ), We = ({ toggleDropdown: e }) => f(
914
918
  {
915
919
  cache: "button",
916
920
  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",
917
921
  click: e
918
922
  },
919
923
  [
920
- a({ onState: ["selectedLabel", (t) => t || "Select item..."] }),
921
- p({ html: u.chevron.upDown })
924
+ i({ onState: ["selectedLabel", (t) => t || "Select item..."] }),
925
+ p({ html: d.chevron.upDown })
922
926
  ]
923
- ), Je = (e, t, s) => U({
927
+ ), Ge = (e, t, s) => U({
924
928
  class: "flex flex-auto items-center cursor-pointer p-2 hover:bg-muted/50 rounded-sm",
925
929
  click: () => t(e),
926
930
  onState: [s, "selectedValue", { "bg-secondary": e.value }]
927
931
  }, [
928
- e.icon && a({ class: "mr-2 flex items-baseline" }, [g({ size: "xs" }, e.icon)]),
929
- a({ class: "text-base font-normal" }, e.label)
930
- ]), Ke = (e, t) => n({ class: "w-full border rounded-md" }, [
931
- V({ class: "max-h-60 overflow-y-auto p-2 grid gap-1", for: ["items", (s) => Je(s, e, t)] })
932
- ]), Qe = ({ onSelect: e, state: t }) => n({ class: "flex flex-auto flex-col" }, [
932
+ e.icon && i({ class: "mr-2 flex items-baseline" }, [g({ size: "xs" }, e.icon)]),
933
+ i({ class: "text-base font-normal" }, e.label)
934
+ ]), Je = (e, t) => n({ class: "w-full border rounded-md" }, [
935
+ R({ class: "max-h-60 overflow-y-auto p-2 grid gap-1", for: ["items", (s) => Ge(s, e, t)] })
936
+ ]), Ke = ({ onSelect: e, state: t }) => n({ class: "flex flex-auto flex-col" }, [
933
937
  x(
934
938
  "open",
935
939
  (s, o, l) => s ? new S({
@@ -937,10 +941,10 @@ const z = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
937
941
  parent: l,
938
942
  button: l.button
939
943
  }, [
940
- Ke(e, t)
944
+ Je(e, t)
941
945
  ]) : null
942
946
  )
943
- ]), Rt = k(
947
+ ]), Vt = k(
944
948
  {
945
949
  /**
946
950
  * This will set up the data.
@@ -1021,8 +1025,8 @@ const z = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
1021
1025
  const e = this.class || "", t = this.maxWidth || "max-w-[250px]", s = this.width || "w-full";
1022
1026
  return n({ class: `relative ${s} flex flex-auto flex-col ${t} ${e}` }, [
1023
1027
  // @ts-ignore
1024
- Ge({ toggleDropdown: this.toggleDropdown.bind(this) }),
1025
- Qe({
1028
+ We({ toggleDropdown: this.toggleDropdown.bind(this) }),
1029
+ Ke({
1026
1030
  // @ts-ignore
1027
1031
  state: this.state,
1028
1032
  // @ts-ignore
@@ -1048,20 +1052,20 @@ const z = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
1048
1052
  click: t,
1049
1053
  icon: e,
1050
1054
  "aria-label": s
1051
- }), Xe = ({ click: e }) => G({
1052
- icon: u.circleMinus,
1055
+ }), Qe = ({ click: e }) => G({
1056
+ icon: d.circleMinus,
1053
1057
  click: e,
1054
1058
  ariaLabel: "Decrement"
1055
- }), Ze = ({ click: e }) => G({
1056
- icon: u.circlePlus,
1059
+ }), Xe = ({ click: e }) => G({
1060
+ icon: d.circlePlus,
1057
1061
  click: e,
1058
1062
  ariaLabel: "Increment"
1059
- }), et = ({ bind: e, min: t, max: s, readonly: o = !1 }) => H(({ state: l }) => w({
1063
+ }), Ze = ({ bind: e, min: t, max: s, readonly: o = !1 }) => H(({ state: l }) => w({
1060
1064
  value: ["[[count]]", l],
1061
1065
  bind: e,
1062
- blur: (r, { state: i }) => {
1063
- let d = parseInt(r.target.value, 10);
1064
- isNaN(d) && (d = t ?? 0), t !== void 0 && (d = Math.max(d, t)), s !== void 0 && (d = Math.min(d, s)), i.count = d;
1066
+ blur: (r, { state: a }) => {
1067
+ let u = parseInt(r.target.value, 10);
1068
+ isNaN(u) && (u = t ?? 0), t !== void 0 && (u = Math.max(u, t)), s !== void 0 && (u = Math.min(u, s)), a.count = u;
1065
1069
  },
1066
1070
  class: "flex flex-auto text-lg font-medium bg-input text-center border min-w-0",
1067
1071
  readonly: o,
@@ -1069,7 +1073,7 @@ const z = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
1069
1073
  max: s,
1070
1074
  type: "number",
1071
1075
  "aria-label": "Counter"
1072
- })), qt = y(
1076
+ })), qt = v(
1073
1077
  {
1074
1078
  /**
1075
1079
  * Initial state for the counter component.
@@ -1092,32 +1096,32 @@ const z = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
1092
1096
  render() {
1093
1097
  const e = this.class ?? "";
1094
1098
  return n({ class: `flex flex-auto items-center justify-between space-x-4 p-4 ${e}` }, [
1095
- Xe({ click: () => this.state.decrement("count") }),
1096
- et({
1099
+ Qe({ click: () => this.state.decrement("count") }),
1100
+ Ze({
1097
1101
  bind: this.bind,
1098
1102
  readonly: this.readonly,
1099
1103
  min: this.min,
1100
1104
  max: this.max
1101
1105
  }),
1102
- Ze({ click: () => this.state.increment("count") })
1106
+ Xe({ click: () => this.state.increment("count") })
1103
1107
  ]);
1104
1108
  }
1105
1109
  }
1106
- ), tt = ({ bind: e, required: t }) => w({
1110
+ ), et = ({ bind: e, required: t }) => w({
1107
1111
  cache: "input",
1108
1112
  class: "opacity-0 absolute top-0 left-0 w-full h-full pointer-events-none",
1109
1113
  bind: e,
1110
1114
  required: t
1111
- }), st = ({ bind: e, required: t, toggleOpen: s }) => f({
1115
+ }), tt = ({ bind: e, required: t, toggleOpen: s }) => f({
1112
1116
  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",
1113
1117
  click: s
1114
1118
  }, [
1115
- tt({ bind: e, required: t }),
1116
- a({
1119
+ et({ bind: e, required: t }),
1120
+ i({
1117
1121
  onState: ["selectedDate", (o) => o ? F.format("standard", o) : "Pick a date"]
1118
1122
  }),
1119
- p({ html: u.calendar.days })
1120
- ]), ot = ({ handleDateSelect: e, blockPriorDates: t }) => x(
1123
+ p({ html: d.calendar.days })
1124
+ ]), st = ({ handleDateSelect: e, blockPriorDates: t }) => x(
1121
1125
  "open",
1122
1126
  (s, o, l) => s ? new S({
1123
1127
  cache: "dropdown",
@@ -1131,7 +1135,7 @@ const z = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
1131
1135
  blockPriorDates: t
1132
1136
  })
1133
1137
  ]) : null
1134
- ), Ht = y(
1138
+ ), Ht = v(
1135
1139
  {
1136
1140
  /**
1137
1141
  * The initial state of the DatePicker.
@@ -1163,35 +1167,35 @@ const z = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
1163
1167
  this.state.selectedDate = s, this.state.open = !1, this.input.value = s, typeof this.onChange == "function" && this.onChange(s);
1164
1168
  };
1165
1169
  return n({ class: "relative w-full max-w-[320px]" }, [
1166
- st({
1170
+ tt({
1167
1171
  toggleOpen: e,
1168
1172
  bind: this.bind,
1169
1173
  required: this.required
1170
1174
  }),
1171
- ot({
1175
+ st({
1172
1176
  handleDateSelect: t,
1173
1177
  blockPriorDates: this.blockPriorDates || !1
1174
1178
  })
1175
1179
  ]);
1176
1180
  }
1177
1181
  }
1178
- ), nt = ({ bind: e, required: t }) => w({
1182
+ ), ot = ({ bind: e, required: t }) => w({
1179
1183
  cache: "input",
1180
1184
  class: "opacity-0 absolute top-0 left-0 w-full h-full pointer-events-none",
1181
1185
  bind: e,
1182
1186
  required: t
1183
- }), lt = ({ bind: e, required: t, toggleOpen: s }) => f({
1187
+ }), nt = ({ bind: e, required: t, toggleOpen: s }) => f({
1184
1188
  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",
1185
1189
  click: s
1186
1190
  }, [
1187
- nt({ bind: e, required: t }),
1191
+ ot({ bind: e, required: t }),
1188
1192
  H(({ state: o }) => [
1189
- a(P.date(["[[start]]", o], "Start Date")),
1190
- a(" - "),
1191
- a(P.date(["[[end]]", o], "End Date"))
1193
+ i(P.date(["[[start]]", o], "Start Date")),
1194
+ i(" - "),
1195
+ i(P.date(["[[end]]", o], "End Date"))
1192
1196
  ]),
1193
- p({ html: u.calendar.days })
1194
- ]), rt = ({ handleDateSelect: e, blockPriorDates: t }) => x(
1197
+ p({ html: d.calendar.days })
1198
+ ]), lt = ({ handleDateSelect: e, blockPriorDates: t }) => x(
1195
1199
  "open",
1196
1200
  (s, o, l) => s ? new S({
1197
1201
  cache: "dropdown",
@@ -1199,14 +1203,14 @@ const z = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
1199
1203
  button: l.panel,
1200
1204
  size: "xl"
1201
1205
  }, [
1202
- new ie({
1206
+ new ae({
1203
1207
  startDate: l.state.start,
1204
1208
  endDate: l.state.end,
1205
1209
  onRangeSelect: e,
1206
1210
  blockPriorDates: t
1207
1211
  })
1208
1212
  ]) : null
1209
- ), Yt = y(
1213
+ ), Yt = v(
1210
1214
  {
1211
1215
  /**
1212
1216
  * The initial state of the DateRangePicker.
@@ -1242,12 +1246,12 @@ const z = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
1242
1246
  this.state.start = s, this.state.end = o, this.state.open = !1, this.input.value = `${s}-${o}`, typeof this.onChange == "function" && this.onChange({ start: s, end: o }, this.parent);
1243
1247
  };
1244
1248
  return n({ class: "relative w-full max-w-[320px]" }, [
1245
- lt({
1249
+ nt({
1246
1250
  toggleOpen: e,
1247
1251
  bind: this.bind,
1248
1252
  required: this.required
1249
1253
  }),
1250
- rt({
1254
+ lt({
1251
1255
  handleDateSelect: t,
1252
1256
  blockPriorDates: this.blockPriorDates || !1
1253
1257
  })
@@ -1263,7 +1267,7 @@ const z = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
1263
1267
  })
1264
1268
  })
1265
1269
  ]);
1266
- function it({ bind: e, required: t }) {
1270
+ function rt({ bind: e, required: t }) {
1267
1271
  return w({
1268
1272
  cache: "input",
1269
1273
  class: "opacity-0 absolute top-0 left-0 w-full h-full pointer-events-none",
@@ -1278,11 +1282,11 @@ function at({ bind: e, required: t, toggleOpen: s }) {
1278
1282
  click: s
1279
1283
  },
1280
1284
  [
1281
- it({ bind: e, required: t }),
1282
- a({
1285
+ rt({ bind: e, required: t }),
1286
+ i({
1283
1287
  onState: ["selectedTime", (o) => o || "Pick a time"]
1284
1288
  }),
1285
- p({ html: u.clock })
1289
+ p({ html: d.clock })
1286
1290
  ]
1287
1291
  );
1288
1292
  }
@@ -1290,17 +1294,17 @@ function B({ items: e, handleTimeSelect: t, state: s, stateValue: o, pad: l = !1
1290
1294
  return n(
1291
1295
  { class: "flex flex-col max-h-[200px] overflow-y-auto" },
1292
1296
  e.map((r) => {
1293
- let i = l ? r.toString().padStart(2, "0") : r.toString();
1297
+ let a = l ? r.toString().padStart(2, "0") : r.toString();
1294
1298
  return f({
1295
- text: i,
1299
+ text: a,
1296
1300
  class: "hover:bg-muted/50 rounded-md px-2 py-1",
1297
- click: () => t({ [o]: i }),
1298
- onState: [s, o, { "bg-muted": i }]
1301
+ click: () => t({ [o]: a }),
1302
+ onState: [s, o, { "bg-muted": a }]
1299
1303
  });
1300
1304
  })
1301
1305
  );
1302
1306
  }
1303
- function ct({ handleTimeSelect: e }) {
1307
+ function it({ handleTimeSelect: e }) {
1304
1308
  return x(
1305
1309
  "open",
1306
1310
  (t, s, o) => t ? new S(
@@ -1354,14 +1358,14 @@ function j(e) {
1354
1358
  const t = /^(\d{1,2}):(\d{2})(?::(\d{2}))?\s?(AM|PM)?$/i, s = e.match(t);
1355
1359
  if (!s)
1356
1360
  return { hour: null, minute: null, meridian: null };
1357
- let [, o, l, , r] = s, i = parseInt(o, 10), d = parseInt(l, 10);
1358
- return i < 0 || i > 23 || d < 0 || d > 59 ? { hour: null, minute: null, meridian: null } : (r ? (r = r.toUpperCase(), r === "PM" && i < 12 ? i += 12 : r === "AM" && i === 12 && (i = 12)) : i === 0 ? (r = "AM", i = 12) : i < 12 ? r = "AM" : i === 12 ? r = "PM" : (r = "PM", i -= 12), {
1359
- hour: i.toString().padStart(2, "0"),
1360
- minute: d.toString().padStart(2, "0"),
1361
+ let [, o, l, , r] = s, a = parseInt(o, 10), u = parseInt(l, 10);
1362
+ return a < 0 || a > 23 || u < 0 || u > 59 ? { hour: null, minute: null, meridian: null } : (r ? (r = r.toUpperCase(), r === "PM" && a < 12 ? a += 12 : r === "AM" && a === 12 && (a = 12)) : a === 0 ? (r = "AM", a = 12) : a < 12 ? r = "AM" : a === 12 ? r = "PM" : (r = "PM", a -= 12), {
1363
+ hour: a.toString().padStart(2, "0"),
1364
+ minute: u.toString().padStart(2, "0"),
1361
1365
  meridian: r
1362
1366
  });
1363
1367
  }
1364
- const Wt = y(
1368
+ const Wt = v(
1365
1369
  {
1366
1370
  /**
1367
1371
  * The initial shallow state of the TimePicker.
@@ -1414,18 +1418,18 @@ const Wt = y(
1414
1418
  bind: this.bind,
1415
1419
  required: this.required
1416
1420
  }),
1417
- ct({
1421
+ it({
1418
1422
  handleTimeSelect: t
1419
1423
  })
1420
1424
  ]
1421
1425
  );
1422
1426
  }
1423
1427
  }
1424
- ), dt = (e, t) => n({ class: `hidden md:flex items-start justify-center w-6 h-6 mr-3 ${t}` }, [
1428
+ ), ct = (e, t) => n({ class: `hidden md:flex items-start justify-center w-6 h-6 mr-3 ${t}` }, [
1425
1429
  g({ size: "lg" }, e)
1426
1430
  ]), ut = ({ title: e }) => I({ class: "flex flex-auto items-center" }, [
1427
- v({ class: "text-lg font-semibold" }, e)
1428
- ]), ht = c((e, t) => se(
1431
+ C({ class: "text-lg font-semibold" }, e)
1432
+ ]), dt = c((e, t) => se(
1429
1433
  {
1430
1434
  class: `fixed pullUpIn z-30 w-[98%] border md:w-full max-w-lg bg-popover text-foreground shadow-lg duration-200
1431
1435
  rounded-lg flex flex-auto flex-col
@@ -1436,7 +1440,7 @@ const Wt = y(
1436
1440
  [
1437
1441
  n({ class: "flex flex-auto p-6 pb-12 md:pb-6" }, [
1438
1442
  // Icon and content
1439
- e.icon && dt(e.icon, e.iconColor),
1443
+ e.icon && ct(e.icon, e.iconColor),
1440
1444
  n({ class: "flex flex-auto flex-col gap-4" }, [
1441
1445
  n({ class: "flex flex-auto flex-col space-y-2" }, [
1442
1446
  ut(e),
@@ -1447,7 +1451,7 @@ const Wt = y(
1447
1451
  ])
1448
1452
  ])
1449
1453
  ]
1450
- )), ft = (e) => Y.render(e, app.root), O = {
1454
+ )), ht = (e) => Y.render(e, app.root), O = {
1451
1455
  info: {
1452
1456
  borderColor: "border-blue-500",
1453
1457
  bgColor: "bg-muted/10",
@@ -1474,7 +1478,7 @@ const Wt = y(
1474
1478
  iconColor: "text-muted-foreground"
1475
1479
  }
1476
1480
  };
1477
- class mt extends C {
1481
+ class ft extends y {
1478
1482
  /**
1479
1483
  * This will declare the props for the compiler.
1480
1484
  *
@@ -1489,12 +1493,12 @@ class mt extends C {
1489
1493
  * @returns {object}
1490
1494
  */
1491
1495
  render() {
1492
- const t = (d) => {
1493
- d.target === this.panel && this.close();
1494
- }, { borderColor: s, bgColor: o, iconColor: l } = O[this.type] || O.default, r = `${this.getMainClass()} ${o} ${s}`, i = this.title || "Dialog Title";
1495
- return ht({
1496
+ const t = (u) => {
1497
+ u.target === this.panel && this.close();
1498
+ }, { borderColor: s, bgColor: o, iconColor: l } = O[this.type] || O.default, r = `${this.getMainClass()} ${o} ${s}`, a = this.title || "Dialog Title";
1499
+ return dt({
1496
1500
  class: r,
1497
- title: i,
1501
+ title: a,
1498
1502
  click: t,
1499
1503
  icon: this.icon,
1500
1504
  iconColor: l,
@@ -1536,7 +1540,7 @@ class mt extends C {
1536
1540
  * @returns {void}
1537
1541
  */
1538
1542
  open() {
1539
- ft(this), this.panel.showModal(), this.state.open = !0;
1543
+ ht(this), this.panel.showModal(), this.state.open = !0;
1540
1544
  }
1541
1545
  /**
1542
1546
  * This will close the modal.
@@ -1547,7 +1551,7 @@ class mt extends C {
1547
1551
  this.state.open = !1, this.panel.close(), typeof this.onClose == "function" && this.onClose(), this.destroy();
1548
1552
  }
1549
1553
  }
1550
- class Gt extends mt {
1554
+ class Gt extends ft {
1551
1555
  /**
1552
1556
  * This will declare the props for the compiler.
1553
1557
  *
@@ -1586,7 +1590,7 @@ const Jt = c((e, t = []) => n({ class: "w-full max-w-md p-6 m-auto" }, [
1586
1590
  ])
1587
1591
  ]),
1588
1592
  I({ class: "py-4 text-center" }, [
1589
- v({ class: "text-xl font-bold" }, e.title),
1593
+ C({ class: "text-xl font-bold" }, e.title),
1590
1594
  m({ class: "pb-8 text-muted-foreground" }, e.description || ""),
1591
1595
  ...t
1592
1596
  ])
@@ -1594,49 +1598,49 @@ const Jt = c((e, t = []) => n({ class: "w-full max-w-md p-6 m-auto" }, [
1594
1598
  ])
1595
1599
  ]));
1596
1600
  export {
1597
- kt as A,
1601
+ Ct as A,
1598
1602
  Ut as B,
1599
1603
  Lt as C,
1600
- ge as D,
1604
+ kt as D,
1601
1605
  Ht as E,
1602
- De as F,
1606
+ Se as F,
1603
1607
  Yt as G,
1604
1608
  _t as H,
1605
1609
  Wt as I,
1606
1610
  Gt as J,
1607
- ht as K,
1611
+ dt as K,
1608
1612
  Ot as L,
1609
1613
  Pt as M,
1610
1614
  Mt as N,
1611
- mt as O,
1612
- Ze as P,
1615
+ ft as O,
1616
+ Xe as P,
1613
1617
  Jt as Q,
1614
1618
  At as S,
1615
1619
  Nt as T,
1616
- ye as a,
1620
+ we as a,
1617
1621
  St as b,
1618
- Ce as c,
1619
- Ie as d,
1620
- $e as e,
1621
- Te as f,
1622
+ ve as c,
1623
+ De as d,
1624
+ Ie as e,
1625
+ $e as f,
1622
1626
  Dt as g,
1623
1627
  It as h,
1624
1628
  $t as i,
1625
- Fe as j,
1629
+ Be as j,
1626
1630
  Tt as k,
1627
1631
  W as l,
1628
1632
  Bt as m,
1629
1633
  Ft as n,
1630
- je as o,
1634
+ Ee as o,
1631
1635
  zt as p,
1632
1636
  Et as q,
1633
1637
  jt as r,
1634
1638
  D as s,
1635
1639
  b as t,
1636
- Ve as u,
1637
- Vt as v,
1638
- Rt as w,
1639
- Xe as x,
1640
- et as y,
1640
+ Ue as u,
1641
+ Rt as v,
1642
+ Vt as w,
1643
+ Qe as x,
1644
+ Ze as y,
1641
1645
  qt as z
1642
1646
  };
package/dist/index.es.js CHANGED
@@ -3,9 +3,9 @@ import { B as d, I as g, L as C } from "./buttons-BKLL4I6r.js";
3
3
  import { C as T, F as D, V as I, a as b } from "./veil-tVDPinrr.js";
4
4
  import { C as F, d as P, D as B, c as k, E as M, F as f, H as x, I as N, M as v, N as y, P as h, R as L, T as W, a as H, b as A, U as R, W as w } from "./inputs-DYxmO1rQ.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, J, y as z, z as K, E as Q, G as _, D as X, m as Y, n as Z, O as $, K as aa, v as ea, c as sa, a as oa, b as ta, Q as ra, l as na, g as la, i as ia, h as pa, j as ma, e as ua, k as da, F as ga, d as Ca, f as ca, L as Ta, x as Da, M as Ia, o as ba, N as Sa, P as Fa, s as Pa, t as Ba, S as ka, q as Ma, r as fa, T as xa, H as Na, I as va, p as ya, u as ha } from "./empty-state-qfZvAfRD.js";
6
+ import { A as E, B as V, C as j, w as q, J, y as z, z as K, E as Q, G as _, D as X, m as Y, n as Z, O as $, K as aa, v as ea, c as sa, a as oa, b as ta, Q as ra, l as na, g as la, i as ia, h as pa, j as ma, e as ua, k as da, F as ga, d as Ca, f as ca, L as Ta, x as Da, M as Ia, o as ba, N as Sa, P as Fa, s as Pa, t as Ba, S as ka, q as Ma, r as fa, T as xa, H as Na, I as va, p as ya, u as ha } from "./empty-state-CPWpkmxa.js";
7
7
  import { A as Wa, b as Ha, C as Aa, D as Ra, a as wa, F as Ua, M as Ga, P as Oa, R as Ea, c as Va, g as ja, p as qa } from "./range-calendar-DW0cMOJy.js";
8
- import { B as za, p as Ka, C as Qa, j as _a, D as Xa, m as Ya, k as Za, H as $a, I as ae, N as ee, O as se, P as oe, S as te, n as re, o as ne, t as le, s as ie, q as pe, r as me, T as ue, l as de, U as ge, W as Ce, f as ce, h as Te, i as De, c as Ie, d as be, b as Se, e as Fe, a as Pe, g as Be } from "./signature-panel-BXbbFwMm.js";
8
+ import { B as za, p as Ka, C as Qa, j as _a, D as Xa, m as Ya, k as Za, H as $a, I as ae, N as ee, O as se, P as oe, S as te, n as re, o as ne, t as le, s as ie, q as pe, r as me, T as ue, l as de, U as ge, W as Ce, f as ce, h as Te, i as De, c as Ie, d as be, b as Se, e as Fe, a as Pe, g as Be } from "./signature-panel-DinWoiKr.js";
9
9
  import { B as Me, I as fe, M as xe, d as Ne, e as ve, g as ye, N as he, b as Le, a as We, f as He, P as Ae, c as Re, S as we, T as Ue } from "./mobile-nav-wrapper-C7RyGC5a.js";
10
10
  import { B as Oe, a as Ee, C as Ve, F as je, b as qe, c as Je, M as ze, P as Ke, S as Qe } from "./sidebar-menu-page-BtUJdw-T.js";
11
11
  import { A as Xe, F as Ye, M as Ze, a as $e, T as as } from "./aside-template-McEj_Gxc.js";
@@ -1,4 +1,4 @@
1
- import { A as s, B as t, C as r, w as e, J as i, y as n, z as m, E as l, G as C, D as d, m as S, n as p, O as u, K as D, v as c, c as g, a as F, b as T, Q as P, l as A, g as f, i as w, h as I, j as b, e as y, k as B, F as M, d as k, f as x, L, x as v, M as E, o as N, N as R, P as U, s as h, t as G, S as O, q as j, r as q, T as z, H, I as J, p as K, u as Q } from "./empty-state-qfZvAfRD.js";
1
+ import { A as s, B as t, C as r, w as e, J as i, y as n, z as m, E as l, G as C, D as d, m as S, n as p, O as u, K as D, v as c, c as g, a as F, b as T, Q as P, l as A, g as f, i as w, h as I, j as b, e as y, k as B, F as M, d as k, f as x, L, x as v, M as E, o as N, N as R, P as U, s as h, t as G, S as O, q as j, r as q, T as z, H, I as J, p as K, u as Q } from "./empty-state-CPWpkmxa.js";
2
2
  import { A as V, P as W, g as X } from "./range-calendar-DW0cMOJy.js";
3
3
  export {
4
4
  s as Alert,
@@ -1,4 +1,4 @@
1
- import { B as s, p as t, C as o, j as r, D as n, m as l, k as i, H as b, I as d, N as g, O as p, P as u, S as v, n as D, o as N, t as k, s as C, q as c, r as T, T as M, l as m, U as y, W as B, f as W, h, i as S, c as H, d as P, b as I, e as f, a as x, g as L } from "./signature-panel-BXbbFwMm.js";
1
+ import { B as s, p as t, C as o, j as r, D as n, m as l, k as i, H as b, I as d, N as g, O as p, P as u, S as v, n as D, o as N, t as k, s as C, q as c, r as T, T as M, l as m, U as y, W as B, f as W, h, i as S, c as H, d as P, b as I, e as f, a as x, g as L } from "./signature-panel-DinWoiKr.js";
2
2
  import { b as F, C as U, D as G, a as R, F as j, M as q, R as w, c as z, p as A } from "./range-calendar-DW0cMOJy.js";
3
3
  import { B as J, I as K, M as Q, d as V, e as X, g as Y, N as Z, b as _, a as $, f as aa, P as ea, c as sa, S as ta, T as oa } from "./mobile-nav-wrapper-C7RyGC5a.js";
4
4
  export {
@@ -816,7 +816,7 @@ class A extends h {
816
816
  * @returns {string}
817
817
  */
818
818
  getClassName() {
819
- return "overlay absolute top-[0px] left-0 bottom-0 right-0 flex-col bg-background z-20 lg:z-10 flex flex-auto lg:left-[64px] lg:top-0 overflow-y-visible will-change-contents " + (this.class || "");
819
+ return "overlay fixed top-[0px] left-0 bottom-0 right-0 flex-col bg-background z-20 lg:z-10 flex flex-auto lg:left-[64px] lg:top-0 overflow-y-visible will-change-contents " + (this.class || "");
820
820
  }
821
821
  /**
822
822
  * This will setup and render the component.
@@ -4,9 +4,9 @@
4
4
  * A component that displays notifications.
5
5
  *
6
6
  * @class
7
- * @extends DelayComponent
7
+ * @extends Component
8
8
  */
9
- export class Notification extends DelayComponent {
9
+ export class Notification extends Component {
10
10
  /**
11
11
  * @member {function|null} secondaryAction
12
12
  */
@@ -75,5 +75,5 @@ export class Notification extends DelayComponent {
75
75
  close(e: object): void;
76
76
  }
77
77
  export default Notification;
78
- import { DelayComponent } from "../delay-component.js";
78
+ import { Component } from "@base-framework/base";
79
79
  import { Timer } from "@base-framework/organisms";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@base-framework/ui",
3
- "version": "1.0.270",
3
+ "version": "1.0.273",
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": {