@base-framework/ui 1.0.96 → 1.0.98

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/atoms.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { B as e, C as t, a as n, F as o, L as p, P as r, R as u, S as I, b as i, T as l } from "./tooltip-DE-UvmQt.js";
1
+ import { B as e, C as t, a as n, F as o, L as p, P as r, R as u, S as I, b as i, T as l } from "./tooltip-VG86HlGW.js";
2
2
  import { B as m, I as T, L as c } from "./buttons-CVEwmPAi.js";
3
3
  import { C as B, d as C, D as S, c as g, E as b, F as f, H as h, I as F, M as L, N as P, P as R, R as k, S as D, T as V, a as E, b as H, U as M, W as N } from "./inputs-nzivW9Dr.js";
4
4
  import { V as W, a as w } from "./veil-D4dRxILB.js";
@@ -1,10 +1,10 @@
1
- import { Div as n, H5 as _, P as b, I as f, Li as O, Span as a, Ul as V, Button as h, OnState as v, Label as W, Form as R, H2 as A, Header as B, Footer as M, A as Y, H3 as G, Checkbox as J, Nav as K, Input as C, Time as Q, Dialog as X } from "@base-framework/atoms";
2
- import { Atom as c, Component as p, Html as L, Dom as Z, base as ee, Data as k, Builder as q, Jot as S, DateTime as $ } from "@base-framework/base";
3
- import { P as D, b as te } from "./calendar-BDqm833e.js";
4
- import { B as u, I as x } from "./buttons-CVEwmPAi.js";
5
- import { Icons as d } from "./icons.es.js";
1
+ import { Div as n, H5 as _, P as b, I as g, Li as O, Span as a, Ul as V, Button as m, OnState as v, Label as W, Form as R, H2 as A, Header as B, Footer as M, A as Y, H3 as G, Checkbox as J, Nav as K, Input as C, UseParent as Q, Time as X, Dialog as Z } from "@base-framework/atoms";
2
+ import { Atom as c, Component as p, Html as L, Dom as ee, base as te, Data as k, Builder as U, Jot as S, DateTime as $ } from "@base-framework/base";
3
+ import { P as D, b as se } from "./calendar-BDqm833e.js";
4
+ import { B as h, I as x } from "./buttons-CVEwmPAi.js";
5
+ import { Icons as u } from "./icons.es.js";
6
6
  import { a as w } from "./veil-D4dRxILB.js";
7
- import { Timer as se, List as oe, DynamicTime as ne } from "@base-framework/organisms";
7
+ import { Timer as oe, List as ne, DynamicTime as re } from "@base-framework/organisms";
8
8
  const P = {
9
9
  info: {
10
10
  borderColor: "border-blue-500",
@@ -31,20 +31,20 @@ const P = {
31
31
  bgColor: "bg-muted/10",
32
32
  iconColor: "text-muted-foreground"
33
33
  }
34
- }, re = (e, t) => n({ class: `flex items-center justify-center h-6 w-6 mr-3 ${t}` }, [
35
- f({ html: e })
36
- ]), le = (e) => _({ class: "font-semibold" }, e), ie = (e) => b({ class: "text-sm text-muted-foreground" }, e), ht = c(({ title: e, description: t, icon: s, type: o = "default" }) => {
34
+ }, le = (e, t) => n({ class: `flex items-center justify-center h-6 w-6 mr-3 ${t}` }, [
35
+ g({ html: e })
36
+ ]), ie = (e) => _({ class: "font-semibold" }, e), ae = (e) => b({ class: "text-sm text-muted-foreground" }, e), mt = c(({ title: e, description: t, icon: s, type: o = "default" }) => {
37
37
  const { borderColor: r, bgColor: l, iconColor: i } = P[o] || P.default;
38
38
  return n({ class: `flex items-start p-4 border rounded-lg ${l} ${r}` }, [
39
39
  // Icon and content
40
- s && re(s, i),
40
+ s && le(s, i),
41
41
  n({ class: "flex flex-col" }, [
42
- le(e),
43
- ie(t)
42
+ ie(e),
43
+ ae(t)
44
44
  ])
45
45
  ]);
46
46
  });
47
- class ae extends p {
47
+ class ce extends p {
48
48
  /**
49
49
  * This will declare the props for the compiler.
50
50
  *
@@ -65,24 +65,24 @@ class ae extends p {
65
65
  L.removeElement(t);
66
66
  return;
67
67
  }
68
- Z.addClass(t, s), ee.on("animationend", t, (o) => L.removeElement(t));
68
+ ee.addClass(t, s), te.on("animationend", t, (o) => L.removeElement(t));
69
69
  }
70
70
  }
71
- const ce = (e) => a({ class: "ml-auto text-xs tracking-widest opacity-60" }, e), de = (e) => a({ class: "flex w-4 h-4", html: e }), ue = (e) => a({ class: "flex-auto" }, e), he = (e, t) => O({
71
+ const de = (e) => a({ class: "ml-auto text-xs tracking-widest opacity-60" }, e), ue = (e) => a({ class: "flex w-4 h-4", html: e }), he = (e) => a({ class: "flex-auto" }, e), me = (e, t) => O({
72
72
  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",
73
73
  click: () => t(e)
74
74
  }, [
75
- e.icon && de(e.icon),
76
- ue(e.label),
77
- e.shortcut && ce(e.shortcut)
78
- ]), me = (e, t) => V({ class: "grid gap-2" }, [
79
- e.map((s) => he(s, t))
80
- ]), fe = (e) => n({ class: "w-full z-10" }, [
75
+ e.icon && ue(e.icon),
76
+ he(e.label),
77
+ e.shortcut && de(e.shortcut)
78
+ ]), fe = (e, t) => V({ class: "grid gap-2" }, [
79
+ e.map((s) => me(s, t))
80
+ ]), ge = (e) => n({ class: "w-full z-10" }, [
81
81
  n({
82
82
  class: "max-h-60 border rounded-md overflow-y-auto p-1 grid gap-2 divide-y divide-border",
83
- for: ["groups", (t) => me(t, e)]
83
+ for: ["groups", (t) => fe(t, e)]
84
84
  })
85
- ]), ge = ({ label: e, icon: t, toggleDropdown: s }) => h({
85
+ ]), be = ({ label: e, icon: t, toggleDropdown: s }) => m({
86
86
  cache: "button",
87
87
  class: `inline-flex items-center justify-between rounded-md border border-input
88
88
  bg-background px-2 py-2 text-sm font-medium hover:bg-muted
@@ -90,8 +90,8 @@ const ce = (e) => a({ class: "ml-auto text-xs tracking-widest opacity-60" }, e),
90
90
  click: s
91
91
  }, [
92
92
  e && a(e),
93
- t && f({ html: t })
94
- ]), be = ({ onSelect: e }) => n([
93
+ t && g({ html: t })
94
+ ]), pe = ({ onSelect: e }) => n([
95
95
  v(
96
96
  "open",
97
97
  (t, s, o) => t ? new D({
@@ -99,11 +99,11 @@ const ce = (e) => a({ class: "ml-auto text-xs tracking-widest opacity-60" }, e),
99
99
  parent: o,
100
100
  button: o.button
101
101
  }, [
102
- fe(e)
102
+ ge(e)
103
103
  ]) : null
104
104
  )
105
105
  ]);
106
- class mt extends p {
106
+ class ft extends p {
107
107
  /**
108
108
  * This will declare the props for the compiler.
109
109
  *
@@ -157,24 +157,24 @@ class mt extends p {
157
157
  */
158
158
  render() {
159
159
  return n({ class: "relative" }, [
160
- ge({
160
+ be({
161
161
  label: this.label,
162
162
  icon: this.icon,
163
163
  toggleDropdown: this.toggleDropdown.bind(this)
164
164
  }),
165
- be({ onSelect: this.handleSelect.bind(this) })
165
+ pe({ onSelect: this.handleSelect.bind(this) })
166
166
  ]);
167
167
  }
168
168
  }
169
- const pe = c((e, t) => n({ ...e, class: "flex flex-auto flex-col space-y-2" }, t)), xe = c((e, t) => W({ ...e, class: "flex auto text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70" }, t)), we = c((e, t) => b({ ...e, class: "text-sm text-muted-foreground italic" }, t)), ye = c((e, t) => b({ ...e, class: "text-sm text-destructive" }, t)), ve = (e) => e.tag === "input" || e.tag === "select" || e.tag === "textarea", H = (e, t, s) => e.map((o) => (o.children && o.children.length > 0 && (o.children = H(o.children, t, s)), o.required && ve(o) ? {
169
+ const xe = c((e, t) => n({ ...e, class: "flex flex-auto flex-col space-y-2" }, t)), we = c((e, t) => W({ ...e, class: "flex auto text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70" }, t)), ye = c((e, t) => b({ ...e, class: "text-sm text-muted-foreground italic" }, t)), ve = c((e, t) => b({ ...e, class: "text-sm text-destructive" }, t)), Ce = (e) => e.tag === "input" || e.tag === "select" || e.tag === "textarea", q = (e, t, s) => e.map((o) => (o.children && o.children.length > 0 && (o.children = q(o.children, t, s)), o.required && Ce(o) ? {
170
170
  ...o,
171
171
  aria: {
172
172
  invalid: ["hasError"]
173
173
  },
174
174
  invalid: s,
175
175
  input: t
176
- } : o)), Ce = c((e, t) => {
177
- const r = H(t, (l) => {
176
+ } : o)), ke = c((e, t) => {
177
+ const r = q(t, (l) => {
178
178
  l.target.checkValidity() && e.setError(null);
179
179
  }, (l) => {
180
180
  e.setError(l.target.validationMessage);
@@ -183,7 +183,7 @@ const pe = c((e, t) => n({ ...e, class: "flex flex-auto flex-col space-y-2" }, t
183
183
  ...e,
184
184
  class: "w-full"
185
185
  }, r);
186
- }), ft = w(
186
+ }), gt = w(
187
187
  {
188
188
  /**
189
189
  * The initial state of the FormField.
@@ -208,35 +208,35 @@ const pe = c((e, t) => n({ ...e, class: "flex flex-auto flex-col space-y-2" }, t
208
208
  this.state.error = l, this.state.hasError = !!l;
209
209
  };
210
210
  return n({ class: "flex flex-auto space-y-4" }, [
211
- pe([
212
- xe({ htmlFor: t }, s),
213
- Ce({
211
+ xe([
212
+ we({ htmlFor: t }, s),
213
+ ke({
214
214
  id: t,
215
215
  name: e,
216
216
  value: this.state.value,
217
217
  setError: r
218
218
  }, this.children),
219
- o && we({ id: this.getId("description") }, o),
220
- n({ onState: ["error", (l) => l && ye(l)] })
219
+ o && ye({ id: this.getId("description") }, o),
220
+ n({ onState: ["error", (l) => l && ve(l)] })
221
221
  ])
222
222
  ]);
223
223
  }
224
224
  }
225
- ), ke = (e, t, s = null) => {
225
+ ), Se = (e, t, s = null) => {
226
226
  e.target.checkValidity() && (e.preventDefault(), s && s(e, t));
227
- }, Se = c(
228
- (e, t) => R({ ...e, submit: (s, o) => ke(s, o, e.submit), class: `w-full ${e.class ?? ""}` }, t)
229
- ), gt = c((e, t) => n({ ...e, class: `space-y-6 p-4 md:p-6 divide-y ${e.class || ""}` }, t)), bt = c((e, t = []) => n({ class: "space-y-3 py-4" }, [
227
+ }, De = c(
228
+ (e, t) => R({ ...e, submit: (s, o) => Se(s, o, e.submit), class: `w-full ${e.class ?? ""}` }, t)
229
+ ), bt = c((e, t) => n({ ...e, class: `space-y-6 p-4 md:p-6 divide-y ${e.class || ""}` }, t)), pt = c((e, t = []) => n({ class: "space-y-3 py-4" }, [
230
230
  e.title && A({ class: "font-semibold" }, e.title),
231
231
  ...t
232
- ])), pt = (e, t) => n({ class: "flex justify-between" }, [
232
+ ])), xt = (e, t) => n({ class: "flex justify-between" }, [
233
233
  a({ class: "text-muted-foreground" }, e),
234
234
  a(t)
235
- ]), De = ({ title: e, description: t, back: s, icon: o, options: r = [] }) => B({ class: "modal-header bg-background/80 backdrop-blur-md sticky flex flex-none items-center py-4 px-6 z-10" }, [
235
+ ]), Ie = ({ title: e, description: t, back: s, icon: o, options: r = [] }) => B({ class: "modal-header bg-background/80 backdrop-blur-md sticky flex flex-none items-center py-4 px-6 z-10" }, [
236
236
  /**
237
237
  * Back Button
238
238
  */
239
- s && u({ variant: "icon", icon: d.arrows.left, class: "mr-2 p-0 flex sm:hidden", click: (l, i) => i.close() }),
239
+ s && h({ variant: "icon", icon: u.arrows.left, class: "mr-2 p-0 flex sm:hidden", click: (l, i) => i.close() }),
240
240
  /**
241
241
  * Icon
242
242
  */
@@ -251,20 +251,20 @@ const pe = c((e, t) => n({ ...e, class: "flex flex-auto flex-col space-y-2" }, t
251
251
  ]),
252
252
  ...r
253
253
  ])
254
- ]), Ie = c((e, t) => n({
254
+ ]), Te = c((e, t) => n({
255
255
  popover: "manual",
256
256
  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}`,
257
257
  click: (s, o) => {
258
258
  s.target === o.panel && (s.preventDefault(), s.stopPropagation(), o.state.open = !1);
259
259
  }
260
260
  }, [
261
- Se({ class: "modal-content relative bg-background z-[1] flex flex-auto flex-col space-y-4", submit: (s, o) => e.onSubmit && e.onSubmit(o) }, [
262
- De(e),
261
+ De({ class: "modal-content relative bg-background z-[1] flex flex-auto flex-col space-y-4", submit: (s, o) => e.onSubmit && e.onSubmit(o) }, [
262
+ Ie(e),
263
263
  n({ class: "modal-body flex flex-grow flex-col overflow-y-auto py-0 px-6 z-0" }, t),
264
264
  M({ class: "modal-footer sticky bg-background/80 backdrop-blur-md flex flex-none justify-between py-4 px-6 z-10" }, e.buttons)
265
265
  ])
266
- ])), Te = (e) => q.render(e, app.root);
267
- class xt extends p {
266
+ ])), $e = (e) => U.render(e, app.root);
267
+ class wt extends p {
268
268
  /**
269
269
  * This will declare the props for the compiler.
270
270
  *
@@ -280,7 +280,7 @@ class xt extends p {
280
280
  */
281
281
  render() {
282
282
  const t = this.getMainClass(), s = this.title || "", o = this.description || null;
283
- return Ie(
283
+ return Te(
284
284
  {
285
285
  class: t,
286
286
  title: s,
@@ -327,8 +327,8 @@ class xt extends p {
327
327
  */
328
328
  getButtons() {
329
329
  return [
330
- u({ variant: "outline", click: () => this.destroy() }, "Cancel"),
331
- this.hidePrimaryButton !== !0 && u({ variant: "primary", type: "submit" }, "Save")
330
+ h({ variant: "outline", click: () => this.destroy() }, "Cancel"),
331
+ this.hidePrimaryButton !== !0 && h({ variant: "primary", type: "submit" }, "Save")
332
332
  ];
333
333
  }
334
334
  /**
@@ -394,7 +394,7 @@ class xt extends p {
394
394
  * @returns {void}
395
395
  */
396
396
  open() {
397
- Te(this), this.showModal();
397
+ $e(this), this.showModal();
398
398
  }
399
399
  /**
400
400
  * This will show the modal.
@@ -441,18 +441,18 @@ const F = {
441
441
  borderColor: "border",
442
442
  iconColor: "text-muted-foreground"
443
443
  }
444
- }, $e = (e) => B({ class: "flex justify-center" }, [
444
+ }, Ae = (e) => B({ class: "flex justify-center" }, [
445
445
  G({ class: "text-lg font-bold mb-0" }, e)
446
- ]), Ae = c(({ href: e, class: t }, s) => Y({
446
+ ]), Be = c(({ href: e, class: t }, s) => Y({
447
447
  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}`,
448
448
  href: e,
449
449
  role: "alert"
450
- }, s)), Be = c(({ close: e, class: t }, s) => n({
450
+ }, s)), Me = c(({ close: e, class: t }, s) => n({
451
451
  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}`,
452
452
  click: () => e(),
453
453
  role: "alert"
454
454
  }, s));
455
- class Me extends ae {
455
+ class Le extends ce {
456
456
  /**
457
457
  * This will declare the props for the compiler.
458
458
  *
@@ -476,10 +476,10 @@ class Me extends ae {
476
476
  */
477
477
  render() {
478
478
  const { bgColor: t, borderColor: s, iconColor: o } = this.getTypeStyles(), r = this.href || null, l = this.getChildren(o);
479
- return r ? Ae({
479
+ return r ? Be({
480
480
  href: r,
481
481
  class: `${t} ${s}`
482
- }, l) : Be({
482
+ }, l) : Me({
483
483
  close: this.close.bind(this),
484
484
  class: `${t} ${s}`
485
485
  }, l);
@@ -491,7 +491,7 @@ class Me extends ae {
491
491
  */
492
492
  afterSetup() {
493
493
  const t = this.duration;
494
- t !== "infinite" && (this.timer = new se(t, this.close.bind(this)), this.timer.start());
494
+ t !== "infinite" && (this.timer = new oe(t, this.close.bind(this)), this.timer.start());
495
495
  }
496
496
  /**
497
497
  * This will get the style properties based on the notification type.
@@ -510,8 +510,8 @@ class Me extends ae {
510
510
  getButtons() {
511
511
  return [
512
512
  n({ class: "flex flex-row mt-6 gap-2" }, [
513
- this.secondary && u({ variant: "outline", click: () => this.secondaryAction && this.secondaryAction() }, this.secondary),
514
- this.primary && u({ click: () => this.primaryAction && this.primaryAction() }, this.primary)
513
+ this.secondary && h({ variant: "outline", click: () => this.secondaryAction && this.secondaryAction() }, this.secondary),
514
+ this.primary && h({ click: () => this.primaryAction && this.primaryAction() }, this.primary)
515
515
  ])
516
516
  ];
517
517
  }
@@ -524,19 +524,19 @@ class Me extends ae {
524
524
  getChildren(t) {
525
525
  return [
526
526
  n({ class: "flex items-start" }, [
527
- this.icon && f({ class: `mr-4 ${t}`, html: this.icon }),
527
+ this.icon && g({ class: `mr-4 ${t}`, html: this.icon }),
528
528
  n({ class: "flex flex-auto flex-col" }, [
529
529
  n({ class: "flex flex-auto flex-row items-center w-full pr-12" }, [
530
- this.title && $e(this.title)
530
+ this.title && Ae(this.title)
531
531
  ]),
532
532
  b({ class: "text-base text-muted-foreground m-0 pr-12" }, this.description),
533
533
  (this.primary || this.secondary) && M({ class: "margin-top-24 flex align-center" }, this.getButtons())
534
534
  ])
535
535
  ]),
536
- u({
536
+ h({
537
537
  class: "absolute top-[12px] right-[12px]",
538
538
  variant: "icon",
539
- icon: d.x,
539
+ icon: u.x,
540
540
  click: this.close.bind(this)
541
541
  })
542
542
  ];
@@ -551,8 +551,8 @@ class Me extends ae {
551
551
  t && t.stopPropagation(), this.duration !== "infinite" && this.timer.stop(), this.onClick && this.onClick(), this.destroy();
552
552
  }
553
553
  }
554
- let Le = 0;
555
- class wt extends p {
554
+ let Pe = 0;
555
+ class yt extends p {
556
556
  /**
557
557
  * This will render the component.
558
558
  *
@@ -560,11 +560,11 @@ class wt extends p {
560
560
  */
561
561
  render() {
562
562
  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" }, [
563
- new oe({
563
+ new ne({
564
564
  cache: "list",
565
565
  key: "id",
566
566
  role: "list",
567
- rowItem: (t) => new Me(t)
567
+ rowItem: (t) => new Le(t)
568
568
  })
569
569
  ]);
570
570
  }
@@ -575,7 +575,7 @@ class wt extends p {
575
575
  * @returns {void}
576
576
  */
577
577
  addNotice(t = {}) {
578
- t.id = Le++, t.callBack = () => this.removeNotice(t), this.list.append([t]), this.panel.hidePopover(), this.panel.showPopover();
578
+ t.id = Pe++, t.callBack = () => this.removeNotice(t), this.list.append([t]), this.panel.hidePopover(), this.panel.showPopover();
579
579
  }
580
580
  /**
581
581
  * This will remove a notification.
@@ -587,17 +587,17 @@ class wt extends p {
587
587
  this.list.delete(t.id);
588
588
  }
589
589
  }
590
- const N = window.matchMedia, I = c(({ value: e, label: t, icon: s }) => h({
590
+ const N = window.matchMedia, I = c(({ value: e, label: t, icon: s }) => m({
591
591
  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',
592
592
  onState: ["method", { active: e }],
593
593
  dataSet: ["method", ["state", e, "active"]],
594
594
  click: (o, { state: r }) => {
595
- r.method = e, localStorage.setItem("theme", e), e === "system" && localStorage.removeItem("theme"), Pe(e);
595
+ r.method = e, localStorage.setItem("theme", e), e === "system" && localStorage.removeItem("theme"), Fe(e);
596
596
  }
597
597
  }, [
598
598
  x(s),
599
599
  a(t)
600
- ])), Pe = (e) => {
600
+ ])), Fe = (e) => {
601
601
  var o;
602
602
  const t = document.documentElement;
603
603
  if (e === "system" && (e = (o = window.matchMedia) != null && o.call(window, "(prefers-color-scheme: dark)").matches ? "dark" : "light"), N && !N("(prefers-color-scheme: " + e + ")").matches) {
@@ -606,7 +606,7 @@ const N = window.matchMedia, I = c(({ value: e, label: t, icon: s }) => h({
606
606
  }
607
607
  const s = e === "light" ? "dark" : "light";
608
608
  t.classList.remove(s);
609
- }, yt = S(
609
+ }, vt = S(
610
610
  {
611
611
  /**
612
612
  * This will render the component.
@@ -616,9 +616,9 @@ const N = window.matchMedia, I = c(({ value: e, label: t, icon: s }) => h({
616
616
  render() {
617
617
  return n({ class: "flex flex-auto flex-col" }, [
618
618
  n({ class: "grid grid-cols-3 gap-4" }, [
619
- I({ label: "System", value: "system", icon: d.adjustments.horizontal }),
620
- I({ label: "Light", value: "light", icon: d.sun }),
621
- I({ label: "Dark", value: "dark", icon: d.moon })
619
+ I({ label: "System", value: "system", icon: u.adjustments.horizontal }),
620
+ I({ label: "Light", value: "light", icon: u.sun }),
621
+ I({ label: "Dark", value: "dark", icon: u.moon })
622
622
  ])
623
623
  ]);
624
624
  },
@@ -633,7 +633,7 @@ const N = window.matchMedia, I = c(({ value: e, label: t, icon: s }) => h({
633
633
  };
634
634
  }
635
635
  }
636
- ), vt = w(
636
+ ), Ct = w(
637
637
  {
638
638
  /**
639
639
  * The initial state of the Toggle.
@@ -660,7 +660,7 @@ const N = window.matchMedia, I = c(({ value: e, label: t, icon: s }) => h({
660
660
  * @returns {object}
661
661
  */
662
662
  render() {
663
- return h({
663
+ return m({
664
664
  class: "relative inline-flex h-6 w-11 min-w-11 items-center rounded-full bg-muted transition-colors focus:outline-none",
665
665
  onState: ["active", { "bg-primary": !0, "bg-muted": !1 }],
666
666
  click: (t, { state: s }) => {
@@ -690,22 +690,22 @@ const N = window.matchMedia, I = c(({ value: e, label: t, icon: s }) => h({
690
690
  OFFLINE: "offline",
691
691
  BUSY: "busy",
692
692
  AWAY: "away"
693
- }, m = {
693
+ }, f = {
694
694
  ONLINE: "bg-green-500",
695
695
  OFFLINE: "bg-gray-500",
696
696
  BUSY: "bg-red-500",
697
697
  AWAY: "bg-yellow-500"
698
- }, Fe = (e = "") => (e = e.toUpperCase(), m[e] || m.OFFLINE), Ct = (e) => n({
699
- class: `absolute bottom-0 right-0 w-3 h-3 border-2 rounded-full ${Fe(e)}`
700
- }), kt = ({ propName: e = "status" } = {}) => n({
698
+ }, Ne = (e = "") => (e = e.toUpperCase(), f[e] || f.OFFLINE), kt = (e) => n({
699
+ class: `absolute bottom-0 right-0 w-3 h-3 border-2 rounded-full ${Ne(e)}`
700
+ }), St = ({ propName: e = "status" } = {}) => n({
701
701
  class: "absolute bottom-0 right-0 w-3 h-3 border-2 rounded-full",
702
702
  onSet: [e, {
703
- [m.ONLINE]: y.ONLINE,
704
- [m.OFFLINE]: y.OFFLINE,
705
- [m.BUSY]: y.BUSY,
706
- [m.AWAY]: y.AWAY
703
+ [f.ONLINE]: y.ONLINE,
704
+ [f.OFFLINE]: y.OFFLINE,
705
+ [f.BUSY]: y.BUSY,
706
+ [f.AWAY]: y.AWAY
707
707
  }]
708
- }), Ne = (e, t) => Y(
708
+ }), ze = (e, t) => Y(
709
709
  {
710
710
  href: e,
711
711
  "aria-current": t === "Breadcrumb" && "page",
@@ -713,14 +713,14 @@ const N = window.matchMedia, I = c(({ value: e, label: t, icon: s }) => h({
713
713
  class: "text-muted-foreground font-medium hover:text-foreground"
714
714
  },
715
715
  [a(t)]
716
- ), ze = () => x({
716
+ ), Ee = () => x({
717
717
  class: "mx-3 text-muted-foreground",
718
718
  "aria-hidden": !0,
719
719
  size: "xs"
720
- }, d.chevron.single.right), Ee = (e) => n({ class: "flex items-center" }, [
721
- e.href ? Ne(e.href, e.label) : a(e.label),
722
- e.separator && ze()
723
- ]), St = S(
720
+ }, u.chevron.single.right), je = (e) => n({ class: "flex items-center" }, [
721
+ e.href ? ze(e.href, e.label) : a(e.label),
722
+ e.separator && Ee()
723
+ ]), Dt = S(
724
724
  {
725
725
  /**
726
726
  * Set initial data
@@ -749,7 +749,7 @@ const N = window.matchMedia, I = c(({ value: e, label: t, icon: s }) => h({
749
749
  n({
750
750
  role: "list",
751
751
  class: "flex items-center",
752
- for: ["items", (t, s) => Ee({
752
+ for: ["items", (t, s) => je({
753
753
  href: t.href,
754
754
  label: t.label,
755
755
  separator: s < e
@@ -768,7 +768,7 @@ const N = window.matchMedia, I = c(({ value: e, label: t, icon: s }) => h({
768
768
  "2xl": "h-16 w-16",
769
769
  "3xl": "h-24 w-24",
770
770
  default: "h-4 w-4"
771
- }, je = (e) => z[e] || z.default, Oe = ({ index: e, size: t }) => n({ class: `${t} rounded-full bg-muted cursor-pointer` }, [
771
+ }, Oe = (e) => z[e] || z.default, Ve = ({ index: e, size: t }) => n({ class: `${t} rounded-full bg-muted cursor-pointer` }, [
772
772
  a({
773
773
  class: "block w-full h-full rounded-full transition-colors",
774
774
  onSet: ["activeIndex", {
@@ -779,10 +779,10 @@ const N = window.matchMedia, I = c(({ value: e, label: t, icon: s }) => h({
779
779
  o.activeIndex = e, r && r(e);
780
780
  }
781
781
  })
782
- ]), Ve = (e, t) => Array.from({ length: e }, (s, o) => Oe({
782
+ ]), Ye = (e, t) => Array.from({ length: e }, (s, o) => Ve({
783
783
  index: o,
784
784
  size: t
785
- })), Dt = S(
785
+ })), It = S(
786
786
  {
787
787
  /**
788
788
  * Defines component data (props).
@@ -804,7 +804,7 @@ const N = window.matchMedia, I = c(({ value: e, label: t, icon: s }) => h({
804
804
  * @returns {object}
805
805
  */
806
806
  render() {
807
- const e = this.gap || "gap-2", t = je(this.size || "sm"), s = Ve(this.data.count, t);
807
+ const e = this.gap || "gap-2", t = Oe(this.size || "sm"), s = Ye(this.data.count, t);
808
808
  return n(
809
809
  { class: "flex justify-center items-center py-2" },
810
810
  [
@@ -813,7 +813,7 @@ const N = window.matchMedia, I = c(({ value: e, label: t, icon: s }) => h({
813
813
  );
814
814
  }
815
815
  }
816
- ), Ye = ({ toggleDropdown: e }) => h(
816
+ ), Ue = ({ toggleDropdown: e }) => m(
817
817
  {
818
818
  cache: "button",
819
819
  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 border-input bg-background hover:bg-muted h-10 px-4 py-2 justify-between",
@@ -821,7 +821,7 @@ const N = window.matchMedia, I = c(({ value: e, label: t, icon: s }) => h({
821
821
  },
822
822
  [
823
823
  a({ onState: ["selectedLabel", (t) => t || "Select item..."] }),
824
- f({ html: d.chevron.upDown })
824
+ g({ html: u.chevron.upDown })
825
825
  ]
826
826
  ), qe = (e, t, s) => O({
827
827
  class: "flex flex-auto items-center cursor-pointer p-2 hover:bg-muted/50 rounded-sm",
@@ -832,7 +832,7 @@ const N = window.matchMedia, I = c(({ value: e, label: t, icon: s }) => h({
832
832
  a({ class: "text-base font-normal" }, e.label)
833
833
  ]), He = (e, t) => n({ class: "w-full border rounded-md" }, [
834
834
  V({ class: "max-h-60 overflow-y-auto p-2 grid gap-1", for: ["items", (s) => qe(s, e, t)] })
835
- ]), Ue = ({ onSelect: e, state: t }) => n({ class: "flex flex-auto flex-col" }, [
835
+ ]), _e = ({ onSelect: e, state: t }) => n({ class: "flex flex-auto flex-col" }, [
836
836
  v(
837
837
  "open",
838
838
  (s, o, r) => s ? new D({
@@ -843,7 +843,7 @@ const N = window.matchMedia, I = c(({ value: e, label: t, icon: s }) => h({
843
843
  He(e, t)
844
844
  ]) : null
845
845
  )
846
- ]), It = S(
846
+ ]), Tt = S(
847
847
  {
848
848
  /**
849
849
  * This will set up the data.
@@ -924,8 +924,8 @@ const N = window.matchMedia, I = c(({ value: e, label: t, icon: s }) => h({
924
924
  const e = this.class || "", t = this.maxWidth || "max-w-[250px]", s = this.width || "w-full";
925
925
  return n({ class: `relative ${s} flex flex-auto flex-col ${t} ${e}` }, [
926
926
  // @ts-ignore
927
- Ye({ toggleDropdown: this.toggleDropdown.bind(this) }),
928
- Ue({
927
+ Ue({ toggleDropdown: this.toggleDropdown.bind(this) }),
928
+ _e({
929
929
  // @ts-ignore
930
930
  state: this.state,
931
931
  // @ts-ignore
@@ -945,26 +945,26 @@ const N = window.matchMedia, I = c(({ value: e, label: t, icon: s }) => h({
945
945
  ]);
946
946
  }
947
947
  }
948
- ), U = ({ icon: e, click: t, ariaLabel: s }) => u({
948
+ ), H = ({ icon: e, click: t, ariaLabel: s }) => h({
949
949
  variant: "icon",
950
950
  class: "flex flex-none",
951
951
  click: t,
952
952
  icon: e,
953
953
  "aria-label": s
954
- }), _e = ({ click: e }) => U({
955
- icon: d.circleMinus,
954
+ }), We = ({ click: e }) => H({
955
+ icon: u.circleMinus,
956
956
  click: e,
957
957
  ariaLabel: "Decrement"
958
- }), We = ({ click: e }) => U({
959
- icon: d.circlePlus,
958
+ }), Re = ({ click: e }) => H({
959
+ icon: u.circlePlus,
960
960
  click: e,
961
961
  ariaLabel: "Increment"
962
- }), Re = ({ bind: e, min: t, max: s, readonly: o = !1 }) => C({
963
- value: "[[count]]",
962
+ }), Ge = ({ bind: e, min: t, max: s, readonly: o = !1 }) => Q(({ state: r }) => C({
963
+ value: ["[[count]]", r],
964
964
  bind: e,
965
- blur: (r, { state: l }) => {
966
- let i = parseInt(r.target.value, 10);
967
- isNaN(i) && (i = t ?? 0), t !== void 0 && (i = Math.max(i, t)), s !== void 0 && (i = Math.min(i, s)), l.count = i;
965
+ blur: (l, { state: i }) => {
966
+ let d = parseInt(l.target.value, 10);
967
+ isNaN(d) && (d = t ?? 0), t !== void 0 && (d = Math.max(d, t)), s !== void 0 && (d = Math.min(d, s)), i.count = d;
968
968
  },
969
969
  class: "flex flex-auto text-lg font-medium bg-transparent text-center border min-w-0",
970
970
  readonly: o,
@@ -972,7 +972,7 @@ const N = window.matchMedia, I = c(({ value: e, label: t, icon: s }) => h({
972
972
  max: s,
973
973
  type: "number",
974
974
  "aria-label": "Counter"
975
- }), Tt = w(
975
+ })), $t = w(
976
976
  {
977
977
  /**
978
978
  * Initial state for the counter component.
@@ -995,32 +995,32 @@ const N = window.matchMedia, I = c(({ value: e, label: t, icon: s }) => h({
995
995
  render() {
996
996
  const e = this.class ?? "";
997
997
  return n({ class: `flex flex-auto items-center justify-between space-x-4 p-4 ${e}` }, [
998
- _e({ click: () => this.state.decrement("count") }),
999
- Re({
998
+ We({ click: () => this.state.decrement("count") }),
999
+ Ge({
1000
1000
  bind: this.bind,
1001
1001
  readonly: this.readonly,
1002
1002
  min: this.min,
1003
1003
  max: this.max
1004
1004
  }),
1005
- We({ click: () => this.state.increment("count") })
1005
+ Re({ click: () => this.state.increment("count") })
1006
1006
  ]);
1007
1007
  }
1008
1008
  }
1009
- ), Ge = ({ bind: e, required: t }) => C({
1009
+ ), Je = ({ bind: e, required: t }) => C({
1010
1010
  cache: "input",
1011
1011
  class: "opacity-0 absolute top-0 left-0 w-full h-full pointer-events-none",
1012
1012
  bind: e,
1013
1013
  required: t
1014
- }), Je = ({ bind: e, required: t, toggleOpen: s }) => h({
1014
+ }), Ke = ({ bind: e, required: t, toggleOpen: s }) => m({
1015
1015
  class: "relative flex items-center gap-2 w-full justify-between border border-input bg-background hover:bg-muted rounded-md h-10 px-4 py-2",
1016
1016
  click: s
1017
1017
  }, [
1018
- Ge({ bind: e, required: t }),
1018
+ Je({ bind: e, required: t }),
1019
1019
  a({
1020
1020
  onState: ["selectedDate", (o) => o ? $.format("standard", o) : "Pick a date"]
1021
1021
  }),
1022
- f({ html: d.calendar.days })
1023
- ]), Ke = ({ handleDateSelect: e, blockPriorDates: t }) => n({ class: "absolute mt-1 z-10 bg-background rounded-md shadow-lg" }, [
1022
+ g({ html: u.calendar.days })
1023
+ ]), Qe = ({ handleDateSelect: e, blockPriorDates: t }) => n({ class: "absolute mt-1 z-10 bg-background rounded-md shadow-lg" }, [
1024
1024
  v(
1025
1025
  "open",
1026
1026
  (s, o, r) => s ? new D({
@@ -1029,14 +1029,14 @@ const N = window.matchMedia, I = c(({ value: e, label: t, icon: s }) => h({
1029
1029
  button: r.panel,
1030
1030
  size: "fit"
1031
1031
  }, [
1032
- new te({
1032
+ new se({
1033
1033
  selectedDate: r.state.selectedDate,
1034
1034
  selectedCallBack: e,
1035
1035
  blockPriorDates: t
1036
1036
  })
1037
1037
  ]) : null
1038
1038
  )
1039
- ]), $t = w(
1039
+ ]), At = w(
1040
1040
  {
1041
1041
  /**
1042
1042
  * The initial state of the DatePicker.
@@ -1068,20 +1068,20 @@ const N = window.matchMedia, I = c(({ value: e, label: t, icon: s }) => h({
1068
1068
  this.state.selectedDate = s, this.state.open = !1, this.input.value = s, typeof this.onChange == "function" && this.onChange(s);
1069
1069
  };
1070
1070
  return n({ class: "relative w-full max-w-[320px]" }, [
1071
- Je({
1071
+ Ke({
1072
1072
  toggleOpen: e,
1073
1073
  bind: this.bind,
1074
1074
  required: this.required
1075
1075
  }),
1076
- Ke({
1076
+ Qe({
1077
1077
  handleDateSelect: t,
1078
1078
  blockPriorDates: this.blockPriorDates || !1
1079
1079
  })
1080
1080
  ]);
1081
1081
  }
1082
1082
  }
1083
- ), At = ({ dateTime: e = "", remoteTimeZone: t = "America/Denver", filter: s = null }) => Q([
1084
- new ne({
1083
+ ), Bt = ({ dateTime: e = "", remoteTimeZone: t = "America/Denver", filter: s = null }) => X([
1084
+ new re({
1085
1085
  dateTime: e,
1086
1086
  filter: s || ((o) => {
1087
1087
  const r = $.getLocalTime(o, !0, !1, t);
@@ -1089,7 +1089,7 @@ const N = window.matchMedia, I = c(({ value: e, label: t, icon: s }) => h({
1089
1089
  })
1090
1090
  })
1091
1091
  ]);
1092
- function Qe({ bind: e, required: t }) {
1092
+ function Xe({ bind: e, required: t }) {
1093
1093
  return C({
1094
1094
  cache: "input",
1095
1095
  class: "opacity-0 absolute top-0 left-0 w-full h-full pointer-events-none",
@@ -1097,18 +1097,18 @@ function Qe({ bind: e, required: t }) {
1097
1097
  required: t
1098
1098
  });
1099
1099
  }
1100
- function Xe({ bind: e, required: t, toggleOpen: s }) {
1101
- return h(
1100
+ function Ze({ bind: e, required: t, toggleOpen: s }) {
1101
+ return m(
1102
1102
  {
1103
1103
  class: "relative flex items-center gap-2 w-full justify-between border border-input bg-background hover:bg-muted rounded-md h-10 px-4 py-2",
1104
1104
  click: s
1105
1105
  },
1106
1106
  [
1107
- Qe({ bind: e, required: t }),
1107
+ Xe({ bind: e, required: t }),
1108
1108
  a({
1109
1109
  onState: ["selectedTime", (o) => o || "Pick a time"]
1110
1110
  }),
1111
- f({ html: d.clock })
1111
+ g({ html: u.clock })
1112
1112
  ]
1113
1113
  );
1114
1114
  }
@@ -1117,7 +1117,7 @@ function T({ items: e, handleTimeSelect: t, state: s, stateValue: o, pad: r = !1
1117
1117
  { class: "flex flex-col max-h-[200px] overflow-y-auto" },
1118
1118
  e.map((l) => {
1119
1119
  let i = r ? l.toString().padStart(2, "0") : l.toString();
1120
- return h({
1120
+ return m({
1121
1121
  text: i,
1122
1122
  class: "hover:bg-muted/50 rounded-md px-2 py-1",
1123
1123
  click: () => t({ [o]: i }),
@@ -1126,7 +1126,7 @@ function T({ items: e, handleTimeSelect: t, state: s, stateValue: o, pad: r = !1
1126
1126
  })
1127
1127
  );
1128
1128
  }
1129
- function Ze({ handleTimeSelect: e }) {
1129
+ function et({ handleTimeSelect: e }) {
1130
1130
  return n(
1131
1131
  { class: "absolute mt-1 z-10 bg-background rounded-md shadow-lg" },
1132
1132
  [
@@ -1185,14 +1185,14 @@ function E(e) {
1185
1185
  const t = /^(\d{1,2}):(\d{2})(?::(\d{2}))?\s?(AM|PM)?$/i, s = e.match(t);
1186
1186
  if (!s)
1187
1187
  return { hour: null, minute: null, meridian: null };
1188
- let [, o, r, , l] = s, i = parseInt(o, 10), g = parseInt(r, 10);
1189
- return i < 0 || i > 23 || g < 0 || g > 59 ? { hour: null, minute: null, meridian: null } : (l ? (l = l.toUpperCase(), l === "PM" && i < 12 ? i += 12 : l === "AM" && i === 12 && (i = 12)) : i === 0 ? (l = "AM", i = 12) : i < 12 ? l = "AM" : i === 12 ? l = "PM" : (l = "PM", i -= 12), {
1188
+ let [, o, r, , l] = s, i = parseInt(o, 10), d = parseInt(r, 10);
1189
+ return i < 0 || i > 23 || d < 0 || d > 59 ? { hour: null, minute: null, meridian: null } : (l ? (l = l.toUpperCase(), l === "PM" && i < 12 ? i += 12 : l === "AM" && i === 12 && (i = 12)) : i === 0 ? (l = "AM", i = 12) : i < 12 ? l = "AM" : i === 12 ? l = "PM" : (l = "PM", i -= 12), {
1190
1190
  hour: i.toString().padStart(2, "0"),
1191
- minute: g.toString().padStart(2, "0"),
1191
+ minute: d.toString().padStart(2, "0"),
1192
1192
  meridian: l
1193
1193
  });
1194
1194
  }
1195
- const Bt = w(
1195
+ const Mt = w(
1196
1196
  {
1197
1197
  /**
1198
1198
  * The initial shallow state of the TimePicker.
@@ -1240,23 +1240,23 @@ const Bt = w(
1240
1240
  return n(
1241
1241
  { class: "relative w-full max-w-[320px]" },
1242
1242
  [
1243
- Xe({
1243
+ Ze({
1244
1244
  toggleOpen: e,
1245
1245
  bind: this.bind,
1246
1246
  required: this.required
1247
1247
  }),
1248
- Ze({
1248
+ et({
1249
1249
  handleTimeSelect: t
1250
1250
  })
1251
1251
  ]
1252
1252
  );
1253
1253
  }
1254
1254
  }
1255
- ), et = (e, t) => n({ class: `hidden md:flex items-start justify-center w-6 h-6 mr-3 ${t}` }, [
1255
+ ), tt = (e, t) => n({ class: `hidden md:flex items-start justify-center w-6 h-6 mr-3 ${t}` }, [
1256
1256
  x({ size: "lg" }, e)
1257
- ]), tt = ({ title: e }) => B({ class: "flex flex-auto items-center" }, [
1257
+ ]), st = ({ title: e }) => B({ class: "flex flex-auto items-center" }, [
1258
1258
  A({ class: "text-lg font-semibold" }, e)
1259
- ]), st = c((e, t) => X(
1259
+ ]), ot = c((e, t) => Z(
1260
1260
  {
1261
1261
  class: `fixed pullUpIn z-30 w-[98%] border md:w-full max-w-lg bg-popover text-foreground shadow-lg duration-200
1262
1262
  rounded-lg flex flex-auto flex-col
@@ -1267,10 +1267,10 @@ const Bt = w(
1267
1267
  [
1268
1268
  n({ class: "flex flex-auto p-6 pb-12 md:pb-6" }, [
1269
1269
  // Icon and content
1270
- e.icon && et(e.icon, e.iconColor),
1270
+ e.icon && tt(e.icon, e.iconColor),
1271
1271
  n({ class: "flex flex-auto flex-col gap-4" }, [
1272
1272
  n({ class: "flex flex-auto flex-col space-y-2" }, [
1273
- tt(e),
1273
+ st(e),
1274
1274
  e.description && b({ class: "flex flex-auto flex-col text-sm text-muted-foreground" }, e.description),
1275
1275
  n({ class: "flex flex-auto flex-col text-sm text-muted-foreground" }, t)
1276
1276
  ]),
@@ -1278,7 +1278,7 @@ const Bt = w(
1278
1278
  ])
1279
1279
  ])
1280
1280
  ]
1281
- )), ot = (e) => q.render(e, app.root), j = {
1281
+ )), nt = (e) => U.render(e, app.root), j = {
1282
1282
  info: {
1283
1283
  borderColor: "border-blue-500",
1284
1284
  bgColor: "bg-muted/10",
@@ -1305,7 +1305,7 @@ const Bt = w(
1305
1305
  iconColor: "text-muted-foreground"
1306
1306
  }
1307
1307
  };
1308
- class nt extends p {
1308
+ class rt extends p {
1309
1309
  /**
1310
1310
  * This will declare the props for the compiler.
1311
1311
  *
@@ -1320,10 +1320,10 @@ class nt extends p {
1320
1320
  * @returns {object}
1321
1321
  */
1322
1322
  render() {
1323
- const t = (g) => {
1324
- g.target === this.panel && this.close();
1323
+ const t = (d) => {
1324
+ d.target === this.panel && this.close();
1325
1325
  }, { borderColor: s, bgColor: o, iconColor: r } = j[this.type] || j.default, l = `${this.getMainClass()} ${o} ${s}`, i = this.title || "Dialog Title";
1326
- return st({
1326
+ return ot({
1327
1327
  class: l,
1328
1328
  title: i,
1329
1329
  click: t,
@@ -1340,7 +1340,7 @@ class nt extends p {
1340
1340
  */
1341
1341
  getButtons() {
1342
1342
  return this.hideFooter ? null : this.buttons ? this.buttons : [
1343
- u({ variant: "outline", click: () => this.close() }, "Close")
1343
+ h({ variant: "outline", click: () => this.close() }, "Close")
1344
1344
  ];
1345
1345
  }
1346
1346
  /**
@@ -1367,7 +1367,7 @@ class nt extends p {
1367
1367
  * @returns {void}
1368
1368
  */
1369
1369
  open() {
1370
- ot(this), this.panel.showModal(), this.state.open = !0;
1370
+ nt(this), this.panel.showModal(), this.state.open = !0;
1371
1371
  }
1372
1372
  /**
1373
1373
  * This will close the modal.
@@ -1378,7 +1378,7 @@ class nt extends p {
1378
1378
  this.state.open = !1, this.panel.close(), typeof this.onClose == "function" && this.onClose(), this.destroy();
1379
1379
  }
1380
1380
  }
1381
- class Mt extends nt {
1381
+ class Lt extends rt {
1382
1382
  /**
1383
1383
  * This will declare the props for the compiler.
1384
1384
  *
@@ -1395,8 +1395,8 @@ class Mt extends nt {
1395
1395
  getButtons() {
1396
1396
  const t = this.confirmTextLabel || "Confirm";
1397
1397
  return [
1398
- u({ variant: "outline", click: () => this.close() }, "Cancel"),
1399
- u({ variant: "primary", click: () => this.confirm() }, t)
1398
+ h({ variant: "outline", click: () => this.close() }, "Cancel"),
1399
+ h({ variant: "primary", click: () => this.confirm() }, t)
1400
1400
  ];
1401
1401
  }
1402
1402
  /**
@@ -1409,42 +1409,42 @@ class Mt extends nt {
1409
1409
  }
1410
1410
  }
1411
1411
  export {
1412
- ht as A,
1413
- St as B,
1414
- It as C,
1415
- ae as D,
1416
- st as E,
1417
- pe as F,
1418
- nt as G,
1419
- xt as M,
1420
- wt as N,
1421
- We as P,
1422
- pt as S,
1423
- yt as T,
1424
- he as a,
1425
- mt as b,
1426
- fe as c,
1427
- xe as d,
1428
- we as e,
1429
- ye as f,
1430
- Ce as g,
1431
- ft as h,
1432
- Se as i,
1433
- gt as j,
1434
- bt as k,
1435
- Me as l,
1436
- vt as m,
1437
- Ct as n,
1438
- kt as o,
1412
+ mt as A,
1413
+ Dt as B,
1414
+ Tt as C,
1415
+ ce as D,
1416
+ ot as E,
1417
+ xe as F,
1418
+ rt as G,
1419
+ wt as M,
1420
+ yt as N,
1421
+ Re as P,
1422
+ xt as S,
1423
+ vt as T,
1424
+ me as a,
1425
+ ft as b,
1426
+ ge as c,
1427
+ we as d,
1428
+ ye as e,
1429
+ ve as f,
1430
+ ke as g,
1431
+ gt as h,
1432
+ De as i,
1433
+ bt as j,
1434
+ pt as k,
1435
+ Le as l,
1436
+ Ct as m,
1437
+ kt as n,
1438
+ St as o,
1439
1439
  y as p,
1440
- m as q,
1441
- Fe as r,
1442
- Dt as s,
1443
- _e as t,
1444
- Re as u,
1445
- Tt as v,
1446
- $t as w,
1447
- At as x,
1448
- Bt as y,
1449
- Mt as z
1440
+ f as q,
1441
+ Ne as r,
1442
+ It as s,
1443
+ We as t,
1444
+ Ge as u,
1445
+ $t as v,
1446
+ At as w,
1447
+ Bt as x,
1448
+ Mt as y,
1449
+ Lt as z
1450
1450
  };
package/dist/index.es.js CHANGED
@@ -1,9 +1,9 @@
1
- import { B as e, C as o, a as t, F as r, L as n, P as i, R as l, S as p, b as u, T as m } from "./tooltip-DE-UvmQt.js";
1
+ import { B as e, C as o, a as t, F as r, L as n, P as i, R as l, S as p, b as u, T as m } from "./tooltip-VG86HlGW.js";
2
2
  import { B as g, I as T, L as c } from "./buttons-CVEwmPAi.js";
3
3
  import { C as b, d as D, D as S, c as I, E as B, F as P, H as F, I as M, M as k, N, P as v, R as f, S as x, T as h, a as y, b as W, U as L, W as A } from "./inputs-nzivW9Dr.js";
4
4
  import { V as w, a as U } from "./veil-D4dRxILB.js";
5
5
  import { Icons as R } from "./icons.es.js";
6
- import { A as G, B as V, C as j, z as q, u as z, v as J, w as _, D as K, j as Q, k as X, G as Y, E as Z, s as $, c as aa, a as sa, b as ea, i as oa, g as ta, e as ra, h as na, F as ia, d as la, f as pa, t as ua, M as ma, l as da, N as ga, P as Ta, p as ca, q as Ca, S as ba, n as Da, o as Sa, T as Ia, x as Ba, y as Pa, m as Fa, r as Ma } from "./confirmation-Co-ayoR2.js";
6
+ import { A as G, B as V, C as j, z as q, u as z, v as J, w as _, D as K, j as Q, k as X, G as Y, E as Z, s as $, c as aa, a as sa, b as ea, i as oa, g as ta, e as ra, h as na, F as ia, d as la, f as pa, t as ua, M as ma, l as da, N as ga, P as Ta, p as ca, q as Ca, S as ba, n as Da, o as Sa, T as Ia, x as Ba, y as Pa, m as Fa, r as Ma } from "./confirmation-CY6otODd.js";
7
7
  import { A as Na, b as va, C as fa, D as xa, a as ha, F as ya, M as Wa, P as La, c as Aa, g as Ha, p as wa } from "./calendar-BDqm833e.js";
8
8
  import { B as Oa, n as Ra, C as Ea, j as Ga, D as Va, l as ja, H as qa, I as za, N as Ja, O as _a, P as Ka, S as Qa, m as Xa, r as Ya, q as Za, o as $a, p as as, T as ss, k as es, U as os, W as ts, f as rs, h as ns, i as is, c as ls, d as ps, b as us, e as ms, a as ds, g as gs } from "./signature-panel-BFels99c.js";
9
9
  import { B as cs, I as Cs, M as bs, d as Ds, e as Ss, g as Is, N as Bs, b as Ps, a as Fs, f as Ms, P as ks, c as Ns, S as vs, T as fs } from "./mobile-nav-wrapper-BE_hr65B.js";
@@ -1,4 +1,4 @@
1
- import { A as o, B as t, C as e, z as i, u as r, v as n, w as m, D as l, j as S, k as D, G as c, E as u, s as d, c as g, a as p, b as C, i as F, g as T, e as A, h as P, F as f, d as b, f as w, t as B, M as I, l as M, N as x, P as y, p as k, q as v, S as N, n as h, o as E, T as L, x as U, y as j, m as q, r as z } from "./confirmation-Co-ayoR2.js";
1
+ import { A as o, B as t, C as e, z as i, u as r, v as n, w as m, D as l, j as S, k as D, G as c, E as u, s as d, c as g, a as p, b as C, i as F, g as T, e as A, h as P, F as f, d as b, f as w, t as B, M as I, l as M, N as x, P as y, p as k, q as v, S as N, n as h, o as E, T as L, x as U, y as j, m as q, r as z } from "./confirmation-CY6otODd.js";
2
2
  import { A as O, P as R, g as _ } from "./calendar-BDqm833e.js";
3
3
  export {
4
4
  o as Alert,
@@ -1,7 +1,7 @@
1
- import { Span as c, Div as l, Legend as b, Fieldset as f, Input as x } from "@base-framework/atoms";
2
- import { Atom as s, Html as C } from "@base-framework/base";
1
+ import { Span as c, Div as l, Legend as b, Fieldset as f, UseParent as x, Input as C } from "@base-framework/atoms";
2
+ import { Atom as s, Html as p } from "@base-framework/base";
3
3
  import { a as u } from "./veil-D4dRxILB.js";
4
- import { f as p, e as h, g as y } from "./inputs-nzivW9Dr.js";
4
+ import { f as h, e as y, g as k } from "./inputs-nzivW9Dr.js";
5
5
  const a = {
6
6
  gray: {
7
7
  backgroundColor: "bg-gray-50",
@@ -78,31 +78,31 @@ const a = {
78
78
  textColor: "text-primary",
79
79
  ringColor: "ring-background"
80
80
  }
81
- }, k = (t) => a[t] || a.gray, w = (t) => {
82
- const { backgroundColor: r, textColor: e, ringColor: o } = k(t);
83
- return `inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors ${r} ${e} ${o}`;
84
- }, F = s((t, r) => {
85
- const e = w(t == null ? void 0 : t.type);
86
- return c({ ...t, class: e }, r);
87
- }), T = s((t, r) => {
88
- const e = t.margin ?? "my-5 mx-5", o = t.padding ?? "p-4";
81
+ }, w = (t) => a[t] || a.gray, $ = (t) => {
82
+ const { backgroundColor: e, textColor: r, ringColor: o } = w(t);
83
+ return `inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors ${e} ${r} ${o}`;
84
+ }, T = s((t, e) => {
85
+ const r = $(t == null ? void 0 : t.type);
86
+ return c({ ...t, class: r }, e);
87
+ }), L = s((t, e) => {
88
+ const r = t.margin ?? "my-5 mx-5", o = t.padding ?? "p-4";
89
89
  return l({
90
90
  ...t,
91
- class: `rounded-lg border bg-card text-card-foreground shadow-md min-w-[120px] min-h-[80px] ${e} ${o} ${t.class || ""}`
92
- }, r);
93
- }), $ = s((t, r) => b({
91
+ class: `rounded-lg border bg-card text-card-foreground shadow-md min-w-[120px] min-h-[80px] ${r} ${o} ${t.class || ""}`
92
+ }, e);
93
+ }), v = s((t, e) => b({
94
94
  ...t,
95
95
  class: ` font-medium bg-background -mt-4 -mx-1 px-2 py-2 ${t.class || ""}`
96
- }, r)), L = s((t, r) => {
97
- const e = t.border === "full" ? "border rounded-md" : "border-t";
96
+ }, e)), I = s((t, e) => {
97
+ const r = t.border === "full" ? "border rounded-md" : "border-t";
98
98
  return f({
99
99
  ...t,
100
- class: `p-6 ${e} ${t.class || ""}`
100
+ class: `p-6 ${r} ${t.class || ""}`
101
101
  }, [
102
- t.legend && $(t.legend),
103
- l({ class: "flex flex-auto flex-col space-y-6" }, r)
102
+ t.legend && v(t.legend),
103
+ l({ class: "flex flex-auto flex-col space-y-6" }, e)
104
104
  ]);
105
- }), I = u(
105
+ }), G = u(
106
106
  {
107
107
  /**
108
108
  * This will create the initial state of the RangeSlider.
@@ -135,52 +135,52 @@ const a = {
135
135
  return l({ class: "relative w-full h-4 flex items-center" }, [
136
136
  // Track
137
137
  l({ class: "absolute h-2 w-full rounded-full bg-muted" }),
138
- // Filled Track
139
- l({
140
- class: "absolute h-2 bg-primary rounded-full",
141
- style: "width: [[filledPercentage]]%"
142
- }),
143
- // Thumb
144
- l({
145
- class: `
146
- absolute block h-5 w-5 rounded-full border-2 border-primary bg-background
147
- ring-offset-background transition-colors focus-visible:outline-none
148
- focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2
149
- disabled:pointer-events-none disabled:opacity-50 transform -translate-x-1/2
150
- `.trim(),
151
- style: "left: [[filledPercentage]]%"
152
- }),
153
- // Hidden Range Input
154
- x({
155
- type: "range",
156
- min: "[[min]]",
157
- max: "[[max]]",
158
- value: "[[value]]",
159
- // Incorporate your new classes here
160
- class: `
161
- absolute w-full h-full opacity-0 cursor-pointer
162
- ${p}
163
- ${h}
164
- ${this.class || ""}
165
- `.trim(),
166
- bind: this.bind,
167
- input: (t) => {
168
- const r = Number(t.target.value);
169
- this.state.value = r, this.state.filledPercentage = this.getFillPercentage(r), typeof this.change == "function" && this.change(r);
170
- }
171
- })
138
+ x(({ state: t }) => (
139
+ // Filled Track
140
+ (l({
141
+ class: "absolute h-2 bg-primary rounded-full",
142
+ style: ["width: [[filledPercentage]]%", t]
143
+ }), // Thumb
144
+ l({
145
+ class: `
146
+ absolute block h-5 w-5 rounded-full border-2 border-primary bg-background
147
+ ring-offset-background transition-colors focus-visible:outline-none
148
+ focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2
149
+ disabled:pointer-events-none disabled:opacity-50 transform -translate-x-1/2
150
+ `.trim(),
151
+ style: ["left: [[filledPercentage]]%", t]
152
+ }), // Hidden Range Input
153
+ C({
154
+ type: "range",
155
+ min: ["[[min]]", t],
156
+ max: ["[[max]]", t],
157
+ value: ["[[value]]", t],
158
+ // Incorporate your new classes here
159
+ class: `
160
+ absolute w-full h-full opacity-0 cursor-pointer
161
+ ${h}
162
+ ${y}
163
+ ${this.class || ""}
164
+ `.trim(),
165
+ bind: this.bind,
166
+ input: (e) => {
167
+ const r = Number(e.target.value);
168
+ this.state.value = r, this.state.filledPercentage = this.getFillPercentage(r), typeof this.change == "function" && this.change(r);
169
+ }
170
+ }))
171
+ ))
172
172
  ]);
173
173
  }
174
174
  }
175
- ), G = s((t) => ({
175
+ ), R = s((t) => ({
176
176
  tag: "select",
177
177
  ...t,
178
- class: `${y} ${t.class || ""}`.trim(),
179
- onCreated(r) {
180
- t.options && C.setupSelectOptions(r, t.options);
178
+ class: `${k} ${t.class || ""}`.trim(),
179
+ onCreated(e) {
180
+ t.options && p.setupSelectOptions(e, t.options);
181
181
  }
182
- })), v = (t) => !t || isNaN(t) ? null : t, i = (t, r) => {
183
- const e = t, o = 16, n = 2 * Math.PI * o, d = e / 100 * n, m = `
182
+ })), P = (t) => !t || isNaN(t) ? null : t, i = (t, e) => {
183
+ const r = t, o = 16, n = 2 * Math.PI * o, d = r / 100 * n, m = `
184
184
  <svg class="w-40 h-40 mx-auto" viewBox="0 0 36 36" xmlns="http://www.w3.org/2000/svg">
185
185
  <!-- Background Circle -->
186
186
  <circle
@@ -205,7 +205,7 @@ const a = {
205
205
  stroke-dasharray="${n}"
206
206
  stroke-dashoffset="${n - d}"
207
207
  stroke-linecap="round"
208
- class="${r}"
208
+ class="${e}"
209
209
  />
210
210
  <!-- Percentage Text -->
211
211
  <text
@@ -214,7 +214,7 @@ const a = {
214
214
  class="text-[0.25em] font-medium fill-primary"
215
215
  text-anchor="middle"
216
216
  dominant-baseline="middle">
217
- ${e}%
217
+ ${r}%
218
218
  </text>
219
219
  </svg>
220
220
  `;
@@ -222,19 +222,19 @@ const a = {
222
222
  class: "circle-graph text-inherit",
223
223
  html: m
224
224
  });
225
- }, R = s((t) => {
226
- const r = t.progress || 0, e = t.class || "", o = i(r, e);
225
+ }, O = s((t) => {
226
+ const e = t.progress || 0, r = t.class || "", o = i(e, r);
227
227
  return l({
228
228
  class: "circle-graph-wrap",
229
229
  onSet: [
230
230
  t.prop,
231
- (n) => (n = v(n), n ? i(n, e) : o)
231
+ (n) => (n = P(n), n ? i(n, r) : o)
232
232
  ]
233
233
  }, [o]);
234
- }), P = () => l({
234
+ }), S = () => l({
235
235
  class: "absolute h-full rounded-full bg-primary transition-all duration-300",
236
236
  style: "width: [[progress]]%;"
237
- }), O = u(
237
+ }), V = u(
238
238
  {
239
239
  /**
240
240
  * This will render the progress bar component.
@@ -243,7 +243,7 @@ const a = {
243
243
  */
244
244
  render() {
245
245
  return l({ class: "relative w-full h-4 rounded-full bg-muted" }, [
246
- P()
246
+ S()
247
247
  ]);
248
248
  },
249
249
  /**
@@ -272,8 +272,8 @@ const a = {
272
272
  */
273
273
  uploadProgress(t) {
274
274
  if (t.lengthComputable) {
275
- const e = Math.round(t.loaded * 100 / t.total);
276
- this.set(e);
275
+ const r = Math.round(t.loaded * 100 / t.total);
276
+ this.set(r);
277
277
  }
278
278
  },
279
279
  /**
@@ -286,8 +286,8 @@ const a = {
286
286
  t < 0 && (t = 0), t > 100 && (t = 100), this.state.progress = t;
287
287
  }
288
288
  }
289
- ), V = ({ class: t, shape: r = "rectangle", width: e = "w-full", height: o = "h-4" }) => l({
290
- class: `bg-muted animate-pulse ${e} ${o} ${r === "circle" ? "rounded-full" : "rounded-md"} ${t || ""}`
289
+ ), D = ({ class: t, shape: e = "rectangle", width: r = "w-full", height: o = "h-4" }) => l({
290
+ class: `bg-muted animate-pulse ${r} ${o} ${e === "circle" ? "rounded-full" : "rounded-md"} ${t || ""}`
291
291
  }), g = {
292
292
  top: "bottom-full left-1/2 transform -translate-x-1/2 mb-2",
293
293
  "top-right": "bottom-full left-full transform -translate-x-1 mb-2",
@@ -297,28 +297,28 @@ const a = {
297
297
  "bottom-left": "top-full right-full transform translate-x-1 mt-2",
298
298
  left: "top-1/2 right-full transform -translate-y-1/2 mr-2",
299
299
  right: "top-1/2 left-full transform -translate-y-1/2 ml-2"
300
- }, S = (t) => g[t] || g.top, D = s(({ position: t = "top", content: r }, e) => {
301
- const o = S(t);
302
- return Array.isArray(e) === !1 && (e = [e]), l({ class: "relative group inline-block" }, [
303
- ...e,
300
+ }, E = (t) => g[t] || g.top, M = s(({ position: t = "top", content: e }, r) => {
301
+ const o = E(t);
302
+ return Array.isArray(r) === !1 && (r = [r]), l({ class: "relative group inline-block" }, [
303
+ ...r,
304
304
  // Tooltip box
305
305
  c({
306
306
  class: `
307
307
  absolute z-20 px-2 py-1 border text-sm bg-background rounded shadow-md opacity-0 whitespace-nowrap
308
308
  group-hover:opacity-100 transition-opacity duration-200 ${o} pointer-events-none
309
309
  `
310
- }, r)
310
+ }, e)
311
311
  ]);
312
312
  });
313
313
  export {
314
- F as B,
315
- T as C,
316
- L as F,
317
- $ as L,
318
- O as P,
319
- I as R,
320
- G as S,
321
- D as T,
322
- R as a,
323
- V as b
314
+ T as B,
315
+ L as C,
316
+ I as F,
317
+ v as L,
318
+ V as P,
319
+ G as R,
320
+ R as S,
321
+ M as T,
322
+ O as a,
323
+ D as b
324
324
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@base-framework/ui",
3
- "version": "1.0.96",
3
+ "version": "1.0.98",
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": {