@base-framework/ui 1.0.251 → 1.0.254

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,6 +1,6 @@
1
- import { B as e, C as t, b as o, F as n, a as r, L as p, P as u, R as I, S as i, c as l, T as d } from "./tooltip-Ssw4NmQM.js";
1
+ import { B as e, C as t, b as o, F as n, a as r, L as p, P as u, R as I, S as i, c as l, T as d } from "./tooltip-EPt1TS6C.js";
2
2
  import { B as T, I as c, L as x } from "./buttons-Cm9etaEG.js";
3
- import { C, d as g, D as F, c as b, E as f, F as L, H as P, I as R, M as S, N as h, P as k, R as D, T as V, a as E, b as G, U as H, W as M } from "./inputs-CMjx5-IX.js";
3
+ import { C, d as g, D as F, c as b, E as f, F as L, H as P, I as R, M as S, N as h, P as k, R as D, T as V, a as E, b as G, U as H, W as M } from "./inputs-Hhzvhby6.js";
4
4
  import { V as U, a as W } from "./veil-D4dRxILB.js";
5
5
  export {
6
6
  e as Badge,
@@ -1,9 +1,9 @@
1
1
  import { Div as n, H5 as G, P as b, I as m, Li as U, Span as a, Ul as V, Button as f, OnState as x, Label as R, Form as K, H2 as D, Header as I, Footer as L, 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 v, Html as F, Dom as oe, base as ne, Data as $, Builder as Y, Jot as C, DateTime as A } from "@base-framework/base";
3
- import { P as k, b as le, R as re } from "./range-calendar-k0B4ZWJq.js";
2
+ import { Atom as c, Component as v, Html as F, Dom as oe, base as ne, Data as $, Builder as Y, Jot as C, Events as le, DateTime as A } from "@base-framework/base";
3
+ import { P as k, b as re, R as ie } from "./range-calendar-k0B4ZWJq.js";
4
4
  import { B as h, I as p } from "./buttons-Cm9etaEG.js";
5
5
  import { Icons as d } from "./icons.es.js";
6
- import { Timer as ie, List as ae, DynamicTime as ce } from "@base-framework/organisms";
6
+ import { Timer as ae, List as ce, DynamicTime as ue } from "@base-framework/organisms";
7
7
  import { a as y } from "./veil-D4dRxILB.js";
8
8
  import { F as P } from "./format-DnofNaaz.js";
9
9
  const M = {
@@ -32,20 +32,20 @@ const M = {
32
32
  bgColor: "bg-muted/10",
33
33
  iconColor: "text-muted-foreground"
34
34
  }
35
- }, ue = (e, t) => n({ class: `flex items-center justify-center h-6 w-6 mr-3 ${t}` }, [
35
+ }, de = (e, t) => n({ class: `flex items-center justify-center h-6 w-6 mr-3 ${t}` }, [
36
36
  m({ html: e })
37
- ]), de = (e) => G({ class: "font-semibold" }, e), he = (e) => b({ class: "text-sm text-muted-foreground" }, e), yt = c(({ title: e, description: t, icon: s, type: o = "default" }) => {
37
+ ]), he = (e) => G({ class: "font-semibold" }, e), fe = (e) => b({ class: "text-sm text-muted-foreground" }, e), vt = c(({ title: e, description: t, icon: s, type: o = "default" }) => {
38
38
  const { borderColor: l, bgColor: r, iconColor: i } = 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 && ue(s, i),
41
+ s && de(s, i),
42
42
  n({ class: "flex flex-col" }, [
43
- de(e),
44
- he(t)
43
+ he(e),
44
+ fe(t)
45
45
  ])
46
46
  ]);
47
47
  });
48
- class fe extends v {
48
+ class me extends v {
49
49
  /**
50
50
  * This will declare the props for the compiler.
51
51
  *
@@ -69,21 +69,21 @@ class fe extends v {
69
69
  oe.addClass(t, s), ne.on("animationend", t, (o) => F.removeElement(t));
70
70
  }
71
71
  }
72
- const me = (e) => a({ class: "ml-auto text-xs tracking-widest opacity-60" }, e), pe = (e) => a({ class: "flex w-4 h-4", html: e }), ge = (e) => a({ class: "flex-auto" }, e), be = (e, t) => U({
72
+ const pe = (e) => a({ class: "ml-auto text-xs tracking-widest opacity-60" }, e), ge = (e) => a({ class: "flex w-4 h-4", html: e }), be = (e) => a({ class: "flex-auto" }, e), xe = (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 && pe(e.icon),
77
- ge(e.label),
78
- e.shortcut && me(e.shortcut)
79
- ]), xe = (e, t) => V({ class: "grid gap-2" }, [
80
- e.map((s) => be(s, t))
81
- ]), we = (e) => n({ class: "w-full z-10" }, [
76
+ e.icon && ge(e.icon),
77
+ be(e.label),
78
+ e.shortcut && pe(e.shortcut)
79
+ ]), we = (e, t) => V({ class: "grid gap-2" }, [
80
+ e.map((s) => xe(s, t))
81
+ ]), ye = (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) => xe(t, e)]
84
+ for: ["groups", (t) => we(t, e)]
85
85
  })
86
- ]), ye = ({ label: e, icon: t, toggleDropdown: s }) => f({
86
+ ]), ve = ({ label: e, icon: t, toggleDropdown: s }) => f({
87
87
  cache: "button",
88
88
  class: `inline-flex items-center justify-between rounded-md border border-input
89
89
  bg-background px-2 py-2 text-sm font-medium hover:bg-muted
@@ -92,7 +92,7 @@ const me = (e) => a({ class: "ml-auto text-xs tracking-widest opacity-60" }, e),
92
92
  }, [
93
93
  e && a(e),
94
94
  t && m({ html: t })
95
- ]), ve = ({ onSelect: e }) => n([
95
+ ]), Ce = ({ onSelect: e }) => n([
96
96
  x(
97
97
  "open",
98
98
  (t, s, o) => t ? new k({
@@ -100,11 +100,11 @@ const me = (e) => a({ class: "ml-auto text-xs tracking-widest opacity-60" }, e),
100
100
  parent: o,
101
101
  button: o.button
102
102
  }, [
103
- we(e)
103
+ ye(e)
104
104
  ]) : null
105
105
  )
106
106
  ]);
107
- class vt extends v {
107
+ class Ct extends v {
108
108
  /**
109
109
  * This will declare the props for the compiler.
110
110
  *
@@ -158,23 +158,23 @@ class vt extends v {
158
158
  */
159
159
  render() {
160
160
  return n({ class: "relative" }, [
161
- ye({
161
+ ve({
162
162
  label: this.label,
163
163
  icon: this.icon,
164
164
  toggleDropdown: this.toggleDropdown.bind(this)
165
165
  }),
166
- ve({ onSelect: this.handleSelect.bind(this) })
166
+ Ce({ onSelect: this.handleSelect.bind(this) })
167
167
  ]);
168
168
  }
169
169
  }
170
- const Ce = c((e, t) => n({ ...e, class: "flex flex-auto flex-col space-y-2" }, t)), ke = c((e, t) => R({ ...e, class: "flex auto text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70" }, t)), Se = c((e, t) => b({ ...e, class: "text-sm text-muted-foreground italic" }, t)), De = c((e, t) => b({ ...e, class: "text-sm text-destructive" }, t)), Ie = (e) => e.tag === "input" || e.tag === "select" || e.tag === "textarea", _ = (e, t, s) => e.map((o) => (o.children && o.children.length > 0 && (o.children = _(o.children, t, s)), o.required && Ie(o) ? {
170
+ const ke = c((e, t) => n({ ...e, class: "flex flex-auto flex-col space-y-2" }, t)), Se = c((e, t) => R({ ...e, class: "flex auto text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70" }, t)), De = c((e, t) => b({ ...e, class: "text-sm text-muted-foreground italic" }, t)), Ie = c((e, t) => b({ ...e, class: "text-sm text-destructive" }, t)), $e = (e) => e.tag === "input" || e.tag === "select" || e.tag === "textarea", _ = (e, t, s) => e.map((o) => (o.children && o.children.length > 0 && (o.children = _(o.children, t, s)), o.required && $e(o) ? {
171
171
  ...o,
172
172
  aria: {
173
173
  invalid: ["hasError"]
174
174
  },
175
175
  invalid: s,
176
176
  input: t
177
- } : o)), $e = c((e, t) => {
177
+ } : o)), Te = c((e, t) => {
178
178
  const l = _(t, (r) => {
179
179
  r.target.checkValidity() && e.setError(null);
180
180
  }, (r) => {
@@ -184,7 +184,7 @@ const Ce = c((e, t) => n({ ...e, class: "flex flex-auto flex-col space-y-2" }, t
184
184
  ...e,
185
185
  class: "w-full"
186
186
  }, l);
187
- }), Ct = y(
187
+ }), kt = y(
188
188
  {
189
189
  /**
190
190
  * The initial state of the FormField.
@@ -209,34 +209,34 @@ const Ce = c((e, t) => n({ ...e, class: "flex flex-auto flex-col space-y-2" }, t
209
209
  this.state.error = r, this.state.hasError = !!r;
210
210
  };
211
211
  return n({ class: "flex flex-auto space-y-4" }, [
212
- Ce([
213
- ke({ htmlFor: t }, s),
214
- $e({
212
+ ke([
213
+ Se({ htmlFor: t }, s),
214
+ Te({
215
215
  id: t,
216
216
  name: e,
217
217
  value: this.state.value,
218
218
  setError: l
219
219
  }, this.children),
220
- o && Se({ id: this.getId("description") }, o),
221
- n({ onState: ["error", (r) => r && De(r)] })
220
+ o && De({ id: this.getId("description") }, o),
221
+ n({ onState: ["error", (r) => r && Ie(r)] })
222
222
  ])
223
223
  ]);
224
224
  }
225
225
  }
226
- ), Te = (e, t, s = null) => {
226
+ ), Be = (e, t, s = null) => {
227
227
  e.target.checkValidity() && (e.preventDefault(), s && s(e, t));
228
228
  }, W = c(
229
- (e, t) => K({ ...e, submit: (s, o) => Te(s, o, e.submit), class: `w-full ${e.class ?? ""}` }, t)
230
- ), kt = c((e, t) => n({ ...e, class: `space-y-6 p-4 md:p-6 divide-y ${e.class || ""}` }, t)), St = c((e, t = []) => n({ class: "space-y-3 py-4" }, [
229
+ (e, t) => K({ ...e, submit: (s, o) => Be(s, o, e.submit), class: `w-full ${e.class ?? ""}` }, t)
230
+ ), St = c((e, t) => n({ ...e, class: `space-y-6 p-4 md:p-6 divide-y ${e.class || ""}` }, t)), Dt = c((e, t = []) => n({ class: "space-y-3 py-4" }, [
231
231
  e.title && D({ class: "font-semibold" }, e.title),
232
232
  ...t
233
- ])), Dt = (e, t) => n({ class: "flex justify-between" }, [
233
+ ])), It = (e, t) => n({ class: "flex justify-between" }, [
234
234
  a({ class: "text-muted-foreground" }, e),
235
235
  a(t)
236
- ]), It = (e, t) => n({ class: "flex" }, [
236
+ ]), $t = (e, t) => n({ class: "flex" }, [
237
237
  a({ class: "text-muted-foreground mr-8 w-24 truncate text-nowrap" }, e),
238
238
  a(t)
239
- ]), Be = ({ 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" }, [
239
+ ]), 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" }, [
240
240
  /**
241
241
  * Back Button
242
242
  */
@@ -255,7 +255,7 @@ const Ce = c((e, t) => n({ ...e, class: "flex flex-auto flex-col space-y-2" }, t
255
255
  ]),
256
256
  ...l
257
257
  ])
258
- ]), Ae = c((e, t) => n({
258
+ ]), Le = c((e, t) => n({
259
259
  popover: "manual",
260
260
  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}`,
261
261
  click: (s, o) => {
@@ -263,12 +263,12 @@ const Ce = c((e, t) => n({ ...e, class: "flex flex-auto flex-col space-y-2" }, t
263
263
  }
264
264
  }, [
265
265
  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) }, [
266
- Be(e),
266
+ Ae(e),
267
267
  n({ class: "modal-body flex flex-grow flex-col overflow-y-auto py-0 px-6 z-0" }, t),
268
268
  L({ class: "modal-footer sticky bg-background/80 backdrop-blur-md flex flex-none justify-between py-4 px-6 z-10" }, e.buttons)
269
269
  ])
270
- ])), Le = (e) => Y.render(e, app.root);
271
- class $t extends v {
270
+ ])), Fe = (e) => Y.render(e, app.root);
271
+ class Tt extends v {
272
272
  /**
273
273
  * This will declare the props for the compiler.
274
274
  *
@@ -284,7 +284,7 @@ class $t extends v {
284
284
  */
285
285
  render() {
286
286
  const t = this.getMainClass(), s = this.title || "", o = this.description || null;
287
- return Ae(
287
+ return Le(
288
288
  {
289
289
  class: t,
290
290
  title: s,
@@ -399,7 +399,7 @@ class $t extends v {
399
399
  * @returns {void}
400
400
  */
401
401
  open() {
402
- Le(this), this.showModal();
402
+ Fe(this), this.showModal();
403
403
  }
404
404
  /**
405
405
  * This will destroy the modal.
@@ -454,18 +454,18 @@ const z = {
454
454
  borderColor: "border",
455
455
  iconColor: "text-muted-foreground"
456
456
  }
457
- }, Fe = (e) => I({ class: "flex justify-center" }, [
457
+ }, Pe = (e) => I({ class: "flex justify-center" }, [
458
458
  Q({ class: "text-lg font-bold mb-0" }, e)
459
- ]), Pe = c(({ href: e, class: t }, s) => q({
459
+ ]), Me = c(({ href: e, class: t }, s) => q({
460
460
  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}`,
461
461
  href: e,
462
462
  role: "alert"
463
- }, s)), Me = c(({ close: e, class: t }, s) => n({
463
+ }, s)), ze = c(({ close: e, class: t }, s) => n({
464
464
  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}`,
465
465
  click: () => e(),
466
466
  role: "alert"
467
467
  }, s));
468
- class ze extends fe {
468
+ class Ne extends me {
469
469
  /**
470
470
  * This will declare the props for the compiler.
471
471
  *
@@ -489,10 +489,10 @@ class ze extends fe {
489
489
  */
490
490
  render() {
491
491
  const { bgColor: t, borderColor: s, iconColor: o } = this.getTypeStyles(), l = this.href || null, r = this.getChildren(o);
492
- return l ? Pe({
492
+ return l ? Me({
493
493
  href: l,
494
494
  class: `${t} ${s}`
495
- }, r) : Me({
495
+ }, r) : ze({
496
496
  close: this.close.bind(this),
497
497
  class: `${t} ${s}`
498
498
  }, r);
@@ -504,7 +504,7 @@ class ze extends fe {
504
504
  */
505
505
  afterSetup() {
506
506
  const t = this.duration;
507
- t !== "infinite" && (this.timer = new ie(t, this.close.bind(this)), this.timer.start());
507
+ t !== "infinite" && (this.timer = new ae(t, this.close.bind(this)), this.timer.start());
508
508
  }
509
509
  /**
510
510
  * This will get the style properties based on the notification type.
@@ -540,7 +540,7 @@ class ze extends fe {
540
540
  this.icon && m({ class: `mr-4 ${t}`, html: this.icon }),
541
541
  n({ class: "flex flex-auto flex-col" }, [
542
542
  n({ class: "flex flex-auto flex-row items-center w-full pr-12" }, [
543
- this.title && Fe(this.title)
543
+ this.title && Pe(this.title)
544
544
  ]),
545
545
  b({ class: "text-base text-muted-foreground m-0 pr-12" }, this.description),
546
546
  (this.primary || this.secondary) && L({ class: "margin-top-24 flex align-center" }, this.getButtons())
@@ -564,8 +564,8 @@ class ze extends fe {
564
564
  t && t.stopPropagation(), this.duration !== "infinite" && this.timer.stop(), this.onClick && this.onClick(), this.destroy();
565
565
  }
566
566
  }
567
- let Ne = 0;
568
- class Tt extends v {
567
+ let Ee = 0;
568
+ class Bt extends v {
569
569
  /**
570
570
  * This will render the component.
571
571
  *
@@ -573,11 +573,11 @@ class Tt extends v {
573
573
  */
574
574
  render() {
575
575
  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" }, [
576
- new ae({
576
+ new ce({
577
577
  cache: "list",
578
578
  key: "id",
579
579
  role: "list",
580
- rowItem: (t) => new ze(t)
580
+ rowItem: (t) => new Ne(t)
581
581
  })
582
582
  ]);
583
583
  }
@@ -588,7 +588,7 @@ class Tt extends v {
588
588
  * @returns {void}
589
589
  */
590
590
  addNotice(t = {}) {
591
- t.id = Ne++, t.callBack = () => this.removeNotice(t), this.list.append([t]), this.panel.hidePopover(), this.panel.showPopover();
591
+ t.id = Ee++, t.callBack = () => this.removeNotice(t), this.list.append([t]), this.panel.hidePopover(), this.panel.showPopover();
592
592
  }
593
593
  /**
594
594
  * This will remove a notification.
@@ -605,12 +605,12 @@ const N = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
605
605
  onState: ["method", { active: e }],
606
606
  dataSet: ["method", ["state", e, "active"]],
607
607
  click: (o, { state: l }) => {
608
- l.method = e, localStorage.setItem("theme", e), e === "system" && localStorage.removeItem("theme"), Ee(e);
608
+ l.method = e, localStorage.setItem("theme", e), e === "system" && localStorage.removeItem("theme"), je(e);
609
609
  }
610
610
  }, [
611
611
  p(s),
612
612
  a(t)
613
- ])), Ee = (e) => {
613
+ ])), je = (e) => {
614
614
  var o;
615
615
  const t = document.documentElement;
616
616
  if (e === "system" && (e = (o = globalThis.matchMedia) != null && o.call(globalThis, "(prefers-color-scheme: dark)").matches ? "dark" : "light"), N && !N("(prefers-color-scheme: " + e + ")").matches) {
@@ -619,7 +619,7 @@ const N = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
619
619
  }
620
620
  const s = e === "light" ? "dark" : "light";
621
621
  t.classList.remove(s);
622
- }, Bt = C(
622
+ }, At = C(
623
623
  {
624
624
  /**
625
625
  * This will render the component.
@@ -646,7 +646,7 @@ const N = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
646
646
  };
647
647
  }
648
648
  }
649
- ), At = y(
649
+ ), Lt = y(
650
650
  {
651
651
  /**
652
652
  * The initial state of the Toggle.
@@ -708,9 +708,9 @@ const N = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
708
708
  OFFLINE: "bg-gray-500",
709
709
  BUSY: "bg-red-500",
710
710
  AWAY: "bg-yellow-500"
711
- }, je = (e = "") => (e = e.toUpperCase(), g[e] || g.OFFLINE), Lt = (e) => n({
712
- class: `absolute bottom-0 right-0 w-3 h-3 border-2 rounded-full ${je(e)}`
713
- }), Ft = ({ propName: e = "status" } = {}) => n({
711
+ }, Oe = (e = "") => (e = e.toUpperCase(), g[e] || g.OFFLINE), Ft = (e) => n({
712
+ class: `absolute bottom-0 right-0 w-3 h-3 border-2 rounded-full ${Oe(e)}`
713
+ }), Pt = ({ propName: e = "status" } = {}) => n({
714
714
  class: "absolute bottom-0 right-0 w-3 h-3 border-2 rounded-full",
715
715
  onSet: [e, {
716
716
  [g.ONLINE]: S.ONLINE,
@@ -718,7 +718,7 @@ const N = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
718
718
  [g.BUSY]: S.BUSY,
719
719
  [g.AWAY]: S.AWAY
720
720
  }]
721
- }), Pt = C(
721
+ }), Mt = C(
722
722
  {
723
723
  /**
724
724
  * Get the initial state for the component.
@@ -738,7 +738,7 @@ const N = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
738
738
  */
739
739
  openFileBrowse() {
740
740
  const e = this.input;
741
- e && (e.value = "", e.click());
741
+ e && (e.value = "", le.trigger("click", e));
742
742
  },
743
743
  /**
744
744
  * Get the URL for the uploaded file.
@@ -756,12 +756,7 @@ const N = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
756
756
  */
757
757
  render() {
758
758
  const e = "logo-upload", t = this.onChange || null;
759
- return n({
760
- class: "relative w-32 h-32 rounded-full border flex items-center justify-center cursor-pointer hover:bg-muted transition-colors duration-150 overflow-hidden group",
761
- click: (s) => {
762
- s.preventDefault(), s.stopPropagation(), this.openFileBrowse();
763
- }
764
- }, [
759
+ return n({ class: "flex flex-col items-center" }, [
765
760
  w({
766
761
  id: e,
767
762
  cache: "input",
@@ -774,24 +769,31 @@ const N = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
774
769
  o && t && (this.state.loaded = !1, t(o, this.parent), this.src = this.getFileUrl(o), this.state.loaded = !0);
775
770
  }
776
771
  }),
777
- x(
778
- "loaded",
779
- (s) => s ? Z({
780
- // @ts-ignore
781
- src: this.src,
782
- class: "absolute inset-0 w-full h-full object-cover rounded-full"
783
- }) : R({
784
- htmlFor: e,
785
- class: "z-10 flex flex-col items-center justify-center text-sm text-muted-foreground group-hover:text-primary"
786
- }, [
787
- p(d.upload),
788
- n("Upload logo")
789
- ])
790
- )
772
+ n({
773
+ class: "relative w-32 h-32 rounded-full border flex items-center justify-center cursor-pointer hover:bg-muted transition-colors duration-150 overflow-hidden group",
774
+ click: (s) => {
775
+ s.preventDefault(), s.stopPropagation(), this.openFileBrowse();
776
+ }
777
+ }, [
778
+ x(
779
+ "loaded",
780
+ (s) => s ? Z({
781
+ // @ts-ignore
782
+ src: this.src,
783
+ class: "absolute inset-0 w-full h-full object-cover rounded-full"
784
+ }) : R({
785
+ htmlFor: e,
786
+ class: "z-10 flex flex-col items-center justify-center text-sm text-muted-foreground group-hover:text-primary"
787
+ }, [
788
+ p(d.upload),
789
+ n("Upload logo")
790
+ ])
791
+ )
792
+ ])
791
793
  ]);
792
794
  }
793
795
  }
794
- ), Oe = (e, t) => q(
796
+ ), Ue = (e, t) => q(
795
797
  {
796
798
  href: e,
797
799
  "aria-current": t === "Breadcrumb" && "page",
@@ -799,14 +801,14 @@ const N = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
799
801
  class: "text-muted-foreground font-medium hover:text-foreground"
800
802
  },
801
803
  [a(t)]
802
- ), Ue = () => p({
804
+ ), Ve = () => p({
803
805
  class: "mx-3 text-muted-foreground",
804
806
  "aria-hidden": !0,
805
807
  size: "xs"
806
- }, d.chevron.single.right), Ve = (e) => n({ class: "flex items-center" }, [
807
- e.href ? Oe(e.href, e.label) : a(e.label),
808
- e.separator && Ue()
809
- ]), Mt = C(
808
+ }, d.chevron.single.right), Re = (e) => n({ class: "flex items-center" }, [
809
+ e.href ? Ue(e.href, e.label) : a(e.label),
810
+ e.separator && Ve()
811
+ ]), zt = C(
810
812
  {
811
813
  /**
812
814
  * Set initial data
@@ -835,7 +837,7 @@ const N = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
835
837
  n({
836
838
  role: "list",
837
839
  class: "flex items-center",
838
- for: ["items", (t, s) => Ve({
840
+ for: ["items", (t, s) => Re({
839
841
  href: t.href,
840
842
  label: t.label,
841
843
  separator: s < e
@@ -854,7 +856,7 @@ const N = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
854
856
  "2xl": "h-16 w-16",
855
857
  "3xl": "h-24 w-24",
856
858
  default: "h-4 w-4"
857
- }, Re = (e) => E[e] || E.default, qe = ({ index: e, size: t }) => n({ class: `${t} rounded-full bg-muted cursor-pointer` }, [
859
+ }, qe = (e) => E[e] || E.default, He = ({ index: e, size: t }) => n({ class: `${t} rounded-full bg-muted cursor-pointer` }, [
858
860
  a({
859
861
  class: "block w-full h-full rounded-full transition-colors",
860
862
  onSet: ["activeIndex", {
@@ -865,10 +867,10 @@ const N = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
865
867
  o.activeIndex = e, l && l(e);
866
868
  }
867
869
  })
868
- ]), He = (e, t) => Array.from({ length: e }, (s, o) => qe({
870
+ ]), Ye = (e, t) => Array.from({ length: e }, (s, o) => He({
869
871
  index: o,
870
872
  size: t
871
- })), zt = C(
873
+ })), Nt = C(
872
874
  {
873
875
  /**
874
876
  * Defines component data (props).
@@ -890,7 +892,7 @@ const N = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
890
892
  * @returns {object}
891
893
  */
892
894
  render() {
893
- const e = this.gap || "gap-2", t = Re(this.size || "sm"), s = He(this.data.count, t);
895
+ const e = this.gap || "gap-2", t = qe(this.size || "sm"), s = Ye(this.data.count, t);
894
896
  return n(
895
897
  { class: "flex justify-center items-center py-2" },
896
898
  [
@@ -899,7 +901,7 @@ const N = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
899
901
  );
900
902
  }
901
903
  }
902
- ), Ye = ({ toggleDropdown: e }) => f(
904
+ ), _e = ({ toggleDropdown: e }) => f(
903
905
  {
904
906
  cache: "button",
905
907
  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",
@@ -909,16 +911,16 @@ const N = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
909
911
  a({ onState: ["selectedLabel", (t) => t || "Select item..."] }),
910
912
  m({ html: d.chevron.upDown })
911
913
  ]
912
- ), _e = (e, t, s) => U({
914
+ ), We = (e, t, s) => U({
913
915
  class: "flex flex-auto items-center cursor-pointer p-2 hover:bg-muted/50 rounded-sm",
914
916
  click: () => t(e),
915
917
  onState: [s, "selectedValue", { "bg-secondary": e.value }]
916
918
  }, [
917
919
  e.icon && a({ class: "mr-2 flex items-baseline" }, [p({ size: "xs" }, e.icon)]),
918
920
  a({ class: "text-base font-normal" }, e.label)
919
- ]), We = (e, t) => n({ class: "w-full border rounded-md" }, [
920
- V({ class: "max-h-60 overflow-y-auto p-2 grid gap-1", for: ["items", (s) => _e(s, e, t)] })
921
- ]), Je = ({ onSelect: e, state: t }) => n({ class: "flex flex-auto flex-col" }, [
921
+ ]), Je = (e, t) => n({ class: "w-full border rounded-md" }, [
922
+ V({ class: "max-h-60 overflow-y-auto p-2 grid gap-1", for: ["items", (s) => We(s, e, t)] })
923
+ ]), Ge = ({ onSelect: e, state: t }) => n({ class: "flex flex-auto flex-col" }, [
922
924
  x(
923
925
  "open",
924
926
  (s, o, l) => s ? new k({
@@ -926,10 +928,10 @@ const N = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
926
928
  parent: l,
927
929
  button: l.button
928
930
  }, [
929
- We(e, t)
931
+ Je(e, t)
930
932
  ]) : null
931
933
  )
932
- ]), Nt = C(
934
+ ]), Et = C(
933
935
  {
934
936
  /**
935
937
  * This will set up the data.
@@ -1010,8 +1012,8 @@ const N = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
1010
1012
  const e = this.class || "", t = this.maxWidth || "max-w-[250px]", s = this.width || "w-full";
1011
1013
  return n({ class: `relative ${s} flex flex-auto flex-col ${t} ${e}` }, [
1012
1014
  // @ts-ignore
1013
- Ye({ toggleDropdown: this.toggleDropdown.bind(this) }),
1014
- Je({
1015
+ _e({ toggleDropdown: this.toggleDropdown.bind(this) }),
1016
+ Ge({
1015
1017
  // @ts-ignore
1016
1018
  state: this.state,
1017
1019
  // @ts-ignore
@@ -1037,15 +1039,15 @@ const N = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
1037
1039
  click: t,
1038
1040
  icon: e,
1039
1041
  "aria-label": s
1040
- }), Ge = ({ click: e }) => J({
1042
+ }), Ke = ({ click: e }) => J({
1041
1043
  icon: d.circleMinus,
1042
1044
  click: e,
1043
1045
  ariaLabel: "Decrement"
1044
- }), Ke = ({ click: e }) => J({
1046
+ }), Qe = ({ click: e }) => J({
1045
1047
  icon: d.circlePlus,
1046
1048
  click: e,
1047
1049
  ariaLabel: "Increment"
1048
- }), Qe = ({ bind: e, min: t, max: s, readonly: o = !1 }) => H(({ state: l }) => w({
1050
+ }), Xe = ({ bind: e, min: t, max: s, readonly: o = !1 }) => H(({ state: l }) => w({
1049
1051
  value: ["[[count]]", l],
1050
1052
  bind: e,
1051
1053
  blur: (r, { state: i }) => {
@@ -1058,7 +1060,7 @@ const N = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
1058
1060
  max: s,
1059
1061
  type: "number",
1060
1062
  "aria-label": "Counter"
1061
- })), Et = y(
1063
+ })), jt = y(
1062
1064
  {
1063
1065
  /**
1064
1066
  * Initial state for the counter component.
@@ -1081,32 +1083,32 @@ const N = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
1081
1083
  render() {
1082
1084
  const e = this.class ?? "";
1083
1085
  return n({ class: `flex flex-auto items-center justify-between space-x-4 p-4 ${e}` }, [
1084
- Ge({ click: () => this.state.decrement("count") }),
1085
- Qe({
1086
+ Ke({ click: () => this.state.decrement("count") }),
1087
+ Xe({
1086
1088
  bind: this.bind,
1087
1089
  readonly: this.readonly,
1088
1090
  min: this.min,
1089
1091
  max: this.max
1090
1092
  }),
1091
- Ke({ click: () => this.state.increment("count") })
1093
+ Qe({ click: () => this.state.increment("count") })
1092
1094
  ]);
1093
1095
  }
1094
1096
  }
1095
- ), Xe = ({ bind: e, required: t }) => w({
1097
+ ), Ze = ({ bind: e, required: t }) => w({
1096
1098
  cache: "input",
1097
1099
  class: "opacity-0 absolute top-0 left-0 w-full h-full pointer-events-none",
1098
1100
  bind: e,
1099
1101
  required: t
1100
- }), Ze = ({ bind: e, required: t, toggleOpen: s }) => f({
1102
+ }), et = ({ bind: e, required: t, toggleOpen: s }) => f({
1101
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",
1102
1104
  click: s
1103
1105
  }, [
1104
- Xe({ bind: e, required: t }),
1106
+ Ze({ bind: e, required: t }),
1105
1107
  a({
1106
1108
  onState: ["selectedDate", (o) => o ? A.format("standard", o) : "Pick a date"]
1107
1109
  }),
1108
1110
  m({ html: d.calendar.days })
1109
- ]), et = ({ handleDateSelect: e, blockPriorDates: t }) => x(
1111
+ ]), tt = ({ handleDateSelect: e, blockPriorDates: t }) => x(
1110
1112
  "open",
1111
1113
  (s, o, l) => s ? new k({
1112
1114
  cache: "dropdown",
@@ -1114,13 +1116,13 @@ const N = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
1114
1116
  button: l.panel,
1115
1117
  size: "fit"
1116
1118
  }, [
1117
- new le({
1119
+ new re({
1118
1120
  selectedDate: l.state.selectedDate,
1119
1121
  selectedCallBack: e,
1120
1122
  blockPriorDates: t
1121
1123
  })
1122
1124
  ]) : null
1123
- ), jt = y(
1125
+ ), Ot = y(
1124
1126
  {
1125
1127
  /**
1126
1128
  * The initial state of the DatePicker.
@@ -1152,35 +1154,35 @@ const N = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
1152
1154
  this.state.selectedDate = s, this.state.open = !1, this.input.value = s, typeof this.onChange == "function" && this.onChange(s);
1153
1155
  };
1154
1156
  return n({ class: "relative w-full max-w-[320px]" }, [
1155
- Ze({
1157
+ et({
1156
1158
  toggleOpen: e,
1157
1159
  bind: this.bind,
1158
1160
  required: this.required
1159
1161
  }),
1160
- et({
1162
+ tt({
1161
1163
  handleDateSelect: t,
1162
1164
  blockPriorDates: this.blockPriorDates || !1
1163
1165
  })
1164
1166
  ]);
1165
1167
  }
1166
1168
  }
1167
- ), tt = ({ bind: e, required: t }) => w({
1169
+ ), st = ({ bind: e, required: t }) => w({
1168
1170
  cache: "input",
1169
1171
  class: "opacity-0 absolute top-0 left-0 w-full h-full pointer-events-none",
1170
1172
  bind: e,
1171
1173
  required: t
1172
- }), st = ({ bind: e, required: t, toggleOpen: s }) => f({
1174
+ }), ot = ({ bind: e, required: t, toggleOpen: s }) => f({
1173
1175
  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",
1174
1176
  click: s
1175
1177
  }, [
1176
- tt({ bind: e, required: t }),
1178
+ st({ bind: e, required: t }),
1177
1179
  H(({ state: o }) => [
1178
1180
  a(P.date(["[[start]]", o], "Start Date")),
1179
1181
  a(" - "),
1180
1182
  a(P.date(["[[end]]", o], "End Date"))
1181
1183
  ]),
1182
1184
  m({ html: d.calendar.days })
1183
- ]), ot = ({ handleDateSelect: e, blockPriorDates: t }) => x(
1185
+ ]), nt = ({ handleDateSelect: e, blockPriorDates: t }) => x(
1184
1186
  "open",
1185
1187
  (s, o, l) => s ? new k({
1186
1188
  cache: "dropdown",
@@ -1188,14 +1190,14 @@ const N = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
1188
1190
  button: l.panel,
1189
1191
  size: "xl"
1190
1192
  }, [
1191
- new re({
1193
+ new ie({
1192
1194
  startDate: l.state.start,
1193
1195
  endDate: l.state.end,
1194
1196
  onRangeSelect: e,
1195
1197
  blockPriorDates: t
1196
1198
  })
1197
1199
  ]) : null
1198
- ), Ot = y(
1200
+ ), Ut = y(
1199
1201
  {
1200
1202
  /**
1201
1203
  * The initial state of the DateRangePicker.
@@ -1231,20 +1233,20 @@ const N = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
1231
1233
  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);
1232
1234
  };
1233
1235
  return n({ class: "relative w-full max-w-[320px]" }, [
1234
- st({
1236
+ ot({
1235
1237
  toggleOpen: e,
1236
1238
  bind: this.bind,
1237
1239
  required: this.required
1238
1240
  }),
1239
- ot({
1241
+ nt({
1240
1242
  handleDateSelect: t,
1241
1243
  blockPriorDates: this.blockPriorDates || !1
1242
1244
  })
1243
1245
  ]);
1244
1246
  }
1245
1247
  }
1246
- ), Ut = ({ dateTime: e = "", remoteTimeZone: t = "America/Denver", filter: s = null }) => te([
1247
- new ce({
1248
+ ), Vt = ({ dateTime: e = "", remoteTimeZone: t = "America/Denver", filter: s = null }) => te([
1249
+ new ue({
1248
1250
  dateTime: e,
1249
1251
  filter: s || ((o) => {
1250
1252
  const l = A.getLocalTime(o, !0, !1, t);
@@ -1252,7 +1254,7 @@ const N = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
1252
1254
  })
1253
1255
  })
1254
1256
  ]);
1255
- function nt({ bind: e, required: t }) {
1257
+ function lt({ bind: e, required: t }) {
1256
1258
  return w({
1257
1259
  cache: "input",
1258
1260
  class: "opacity-0 absolute top-0 left-0 w-full h-full pointer-events-none",
@@ -1260,14 +1262,14 @@ function nt({ bind: e, required: t }) {
1260
1262
  required: t
1261
1263
  });
1262
1264
  }
1263
- function lt({ bind: e, required: t, toggleOpen: s }) {
1265
+ function rt({ bind: e, required: t, toggleOpen: s }) {
1264
1266
  return f(
1265
1267
  {
1266
1268
  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",
1267
1269
  click: s
1268
1270
  },
1269
1271
  [
1270
- nt({ bind: e, required: t }),
1272
+ lt({ bind: e, required: t }),
1271
1273
  a({
1272
1274
  onState: ["selectedTime", (o) => o || "Pick a time"]
1273
1275
  }),
@@ -1289,7 +1291,7 @@ function B({ items: e, handleTimeSelect: t, state: s, stateValue: o, pad: l = !1
1289
1291
  })
1290
1292
  );
1291
1293
  }
1292
- function rt({ handleTimeSelect: e }) {
1294
+ function it({ handleTimeSelect: e }) {
1293
1295
  return n(
1294
1296
  { class: "absolute mt-1 z-10 bg-background rounded-md shadow-lg" },
1295
1297
  [
@@ -1355,7 +1357,7 @@ function j(e) {
1355
1357
  meridian: r
1356
1358
  });
1357
1359
  }
1358
- const Vt = y(
1360
+ const Rt = y(
1359
1361
  {
1360
1362
  /**
1361
1363
  * The initial shallow state of the TimePicker.
@@ -1403,23 +1405,23 @@ const Vt = y(
1403
1405
  return n(
1404
1406
  { class: "relative w-full max-w-[320px]" },
1405
1407
  [
1406
- lt({
1408
+ rt({
1407
1409
  toggleOpen: e,
1408
1410
  bind: this.bind,
1409
1411
  required: this.required
1410
1412
  }),
1411
- rt({
1413
+ it({
1412
1414
  handleTimeSelect: t
1413
1415
  })
1414
1416
  ]
1415
1417
  );
1416
1418
  }
1417
1419
  }
1418
- ), it = (e, t) => n({ class: `hidden md:flex items-start justify-center w-6 h-6 mr-3 ${t}` }, [
1420
+ ), at = (e, t) => n({ class: `hidden md:flex items-start justify-center w-6 h-6 mr-3 ${t}` }, [
1419
1421
  p({ size: "lg" }, e)
1420
- ]), at = ({ title: e }) => I({ class: "flex flex-auto items-center" }, [
1422
+ ]), ct = ({ title: e }) => I({ class: "flex flex-auto items-center" }, [
1421
1423
  D({ class: "text-lg font-semibold" }, e)
1422
- ]), ct = c((e, t) => se(
1424
+ ]), ut = c((e, t) => se(
1423
1425
  {
1424
1426
  class: `fixed pullUpIn z-30 w-[98%] border md:w-full max-w-lg bg-popover text-foreground shadow-lg duration-200
1425
1427
  rounded-lg flex flex-auto flex-col
@@ -1430,10 +1432,10 @@ const Vt = y(
1430
1432
  [
1431
1433
  n({ class: "flex flex-auto p-6 pb-12 md:pb-6" }, [
1432
1434
  // Icon and content
1433
- e.icon && it(e.icon, e.iconColor),
1435
+ e.icon && at(e.icon, e.iconColor),
1434
1436
  n({ class: "flex flex-auto flex-col gap-4" }, [
1435
1437
  n({ class: "flex flex-auto flex-col space-y-2" }, [
1436
- at(e),
1438
+ ct(e),
1437
1439
  e.description && b({ class: "flex flex-auto flex-col text-sm text-muted-foreground" }, e.description),
1438
1440
  n({ class: "flex flex-auto flex-col text-sm text-muted-foreground" }, t)
1439
1441
  ]),
@@ -1441,7 +1443,7 @@ const Vt = y(
1441
1443
  ])
1442
1444
  ])
1443
1445
  ]
1444
- )), ut = (e) => Y.render(e, app.root), O = {
1446
+ )), dt = (e) => Y.render(e, app.root), O = {
1445
1447
  info: {
1446
1448
  borderColor: "border-blue-500",
1447
1449
  bgColor: "bg-muted/10",
@@ -1468,7 +1470,7 @@ const Vt = y(
1468
1470
  iconColor: "text-muted-foreground"
1469
1471
  }
1470
1472
  };
1471
- class dt extends v {
1473
+ class ht extends v {
1472
1474
  /**
1473
1475
  * This will declare the props for the compiler.
1474
1476
  *
@@ -1486,7 +1488,7 @@ class dt extends v {
1486
1488
  const t = (u) => {
1487
1489
  u.target === this.panel && this.close();
1488
1490
  }, { borderColor: s, bgColor: o, iconColor: l } = O[this.type] || O.default, r = `${this.getMainClass()} ${o} ${s}`, i = this.title || "Dialog Title";
1489
- return ct({
1491
+ return ut({
1490
1492
  class: r,
1491
1493
  title: i,
1492
1494
  click: t,
@@ -1530,7 +1532,7 @@ class dt extends v {
1530
1532
  * @returns {void}
1531
1533
  */
1532
1534
  open() {
1533
- ut(this), this.panel.showModal(), this.state.open = !0;
1535
+ dt(this), this.panel.showModal(), this.state.open = !0;
1534
1536
  }
1535
1537
  /**
1536
1538
  * This will close the modal.
@@ -1541,7 +1543,7 @@ class dt extends v {
1541
1543
  this.state.open = !1, this.panel.close(), typeof this.onClose == "function" && this.onClose(), this.destroy();
1542
1544
  }
1543
1545
  }
1544
- class Rt extends dt {
1546
+ class qt extends ht {
1545
1547
  /**
1546
1548
  * This will declare the props for the compiler.
1547
1549
  *
@@ -1571,7 +1573,7 @@ class Rt extends dt {
1571
1573
  this.confirmed && this.confirmed(), this.close();
1572
1574
  }
1573
1575
  }
1574
- const qt = c((e, t = []) => n({ class: "w-full max-w-md p-6 m-auto" }, [
1576
+ const Ht = c((e, t = []) => n({ class: "w-full max-w-md p-6 m-auto" }, [
1575
1577
  W({ class: "flex flex-auto flex-col" }, [
1576
1578
  n({ class: "flex flex-auto flex-col space-y-4" }, [
1577
1579
  n({ class: "flex flex-auto items-center justify-center" }, [
@@ -1588,46 +1590,46 @@ const qt = c((e, t = []) => n({ class: "w-full max-w-md p-6 m-auto" }, [
1588
1590
  ])
1589
1591
  ]));
1590
1592
  export {
1591
- yt as A,
1592
- Mt as B,
1593
- It as C,
1594
- fe as D,
1595
- Vt as E,
1596
- Ce as F,
1597
- Rt as G,
1598
- ct as H,
1599
- dt as I,
1600
- qt as J,
1601
- Pt as L,
1602
- $t as M,
1603
- Tt as N,
1604
- Ke as P,
1605
- Dt as S,
1606
- Bt as T,
1607
- be as a,
1608
- vt as b,
1609
- we as c,
1610
- ke as d,
1611
- Se as e,
1612
- De as f,
1613
- $e as g,
1614
- Ct as h,
1593
+ vt as A,
1594
+ zt as B,
1595
+ $t as C,
1596
+ me as D,
1597
+ Rt as E,
1598
+ ke as F,
1599
+ qt as G,
1600
+ ut as H,
1601
+ ht as I,
1602
+ Ht as J,
1603
+ Mt as L,
1604
+ Tt as M,
1605
+ Bt as N,
1606
+ Qe as P,
1607
+ It as S,
1608
+ At as T,
1609
+ xe as a,
1610
+ Ct as b,
1611
+ ye as c,
1612
+ Se as d,
1613
+ De as e,
1614
+ Ie as f,
1615
+ Te as g,
1616
+ kt as h,
1615
1617
  W as i,
1616
- kt as j,
1617
- St as k,
1618
- ze as l,
1619
- At as m,
1620
- Lt as n,
1621
- Ft as o,
1618
+ St as j,
1619
+ Dt as k,
1620
+ Ne as l,
1621
+ Lt as m,
1622
+ Ft as n,
1623
+ Pt as o,
1622
1624
  S as p,
1623
1625
  g as q,
1624
- je as r,
1625
- zt as s,
1626
- Nt as t,
1627
- Ge as u,
1628
- Qe as v,
1629
- Et as w,
1630
- jt as x,
1631
- Ot as y,
1632
- Ut as z
1626
+ Oe as r,
1627
+ Nt as s,
1628
+ Et as t,
1629
+ Ke as u,
1630
+ Xe as v,
1631
+ jt as w,
1632
+ Ot as x,
1633
+ Ut as y,
1634
+ Vt as z
1633
1635
  };
package/dist/index.es.js CHANGED
@@ -1,11 +1,11 @@
1
- import { B as s, C as o, b as t, F as r, a as n, L as l, P as i, R as p, S as m, c as u, T as d } from "./tooltip-Ssw4NmQM.js";
1
+ import { B as s, C as o, b as t, F as r, a as n, L as l, P as i, R as p, S as m, c as u, T as d } from "./tooltip-EPt1TS6C.js";
2
2
  import { B as c, I as C, L as T } from "./buttons-Cm9etaEG.js";
3
- import { C as b, d as I, D as S, c as P, E as B, F, H as k, I as M, M as f, N as x, P as N, R as v, T as y, a as h, b as L, U as W, W as H } from "./inputs-CMjx5-IX.js";
3
+ import { C as b, d as I, D as S, c as P, E as B, F, H as k, I as M, M as f, N as x, P as N, R as v, T as y, a as h, b as L, U as W, W as H } from "./inputs-Hhzvhby6.js";
4
4
  import { V as R, a as w } from "./veil-D4dRxILB.js";
5
5
  import { Icons as E } from "./icons.es.js";
6
- import { A as O, B as V, C as j, t as q, G as J, v as z, w as _, x as K, y as Q, D as X, j as Y, k as Z, I as $, H as aa, s as ea, c as sa, a as oa, b as ta, J as ra, i as na, g as la, e as ia, h as pa, F as ma, d as ua, f as da, L as ga, u as ca, M as Ca, l as Ta, N as Da, P as ba, p as Ia, q as Sa, S as Pa, n as Ba, o as Fa, T as ka, z as Ma, E as fa, m as xa, r as Na } from "./empty-state-CIFxears.js";
6
+ import { A as O, B as V, C as j, t as q, G as J, v as z, w as _, x as K, y as Q, D as X, j as Y, k as Z, I as $, H as aa, s as ea, c as sa, a as oa, b as ta, J as ra, i as na, g as la, e as ia, h as pa, F as ma, d as ua, f as da, L as ga, u as ca, M as Ca, l as Ta, N as Da, P as ba, p as Ia, q as Sa, S as Pa, n as Ba, o as Fa, T as ka, z as Ma, E as fa, m as xa, r as Na } from "./empty-state-B4aH27Hs.js";
7
7
  import { A as ya, b as ha, C as La, D as Wa, a as Ha, F as Aa, M as Ra, P as wa, R as Ua, c as Ea, g as Ga, p as Oa } from "./range-calendar-k0B4ZWJq.js";
8
- import { B as ja, p as qa, C as Ja, j as za, D as _a, m as Ka, k as Qa, H as Xa, I as Ya, N as Za, O as $a, P as ae, S as ee, n as se, o as oe, t as te, s as re, q as ne, r as le, T as ie, l as pe, U as me, W as ue, f as de, h as ge, i as ce, c as Ce, d as Te, b as De, e as be, a as Ie, g as Se } from "./signature-panel-Cj_uAlDW.js";
8
+ import { B as ja, p as qa, C as Ja, j as za, D as _a, m as Ka, k as Qa, H as Xa, I as Ya, N as Za, O as $a, P as ae, S as ee, n as se, o as oe, t as te, s as re, q as ne, r as le, T as ie, l as pe, U as me, W as ue, f as de, h as ge, i as ce, c as Ce, d as Te, b as De, e as be, a as Ie, g as Se } from "./signature-panel-DZTEbp7P.js";
9
9
  import { B as Be, I as Fe, M as ke, d as Me, e as fe, g as xe, N as Ne, b as ve, a as ye, f as he, P as Le, c as We, S as He, T as Ae } from "./mobile-nav-wrapper-Dj67Pb8l.js";
10
10
  import { B as we, a as Ue, C as Ee, F as Ge, b as Oe, c as Ve, M as je, P as qe, S as Je } from "./sidebar-menu-page-BVryQj2Z.js";
11
11
  import { A as _e, F as Ke, M as Qe, a as Xe, T as Ye } from "./aside-template-McEj_Gxc.js";
@@ -1,7 +1,7 @@
1
- import { Div as l, Label as d, Checkbox as u, Span as g, OnState as p, I as x, Input as r, Textarea as k } from "@base-framework/atoms";
1
+ import { Div as l, Label as d, Checkbox as u, Span as p, OnState as g, I as x, Input as r, Textarea as k } from "@base-framework/atoms";
2
2
  import { Jot as y, Atom as s } from "@base-framework/base";
3
3
  import { Icons as v } from "./icons.es.js";
4
- const $ = "flex h-10 w-full px-3 py-2 text-sm", b = "rounded-md border border-input bg-background", n = "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 ring-offset-background", i = "disabled:cursor-not-allowed disabled:opacity-50 [&:user-invalid]:border-destructive", f = "placeholder:text-muted-foreground", h = `${$} ${b} ${n} ${f} ${i}`, I = ({ id: e, checked: o, bind: t, required: a }) => u({
4
+ const $ = "flex h-10 w-full px-3 py-2 text-sm", b = "rounded-md border border-input bg-input", i = "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 ring-offset-background", n = "disabled:cursor-not-allowed disabled:opacity-50 [&:user-invalid]:border-destructive", f = "placeholder:text-muted-foreground", h = `${$} ${b} ${i} ${f} ${n}`, I = ({ id: e, checked: o, bind: t, required: a }) => u({
5
5
  id: e,
6
6
  cache: "checkbox",
7
7
  class: "absolute opacity-0 w-full h-full cursor-pointer pointer-events-none",
@@ -11,8 +11,8 @@ const $ = "flex h-10 w-full px-3 py-2 text-sm", b = "rounded-md border border-in
11
11
  required: a,
12
12
  checked: o,
13
13
  bind: t
14
- }), C = () => g({ class: "absolute text-xs pointer-events-none" }, [
15
- p(
14
+ }), C = () => p({ class: "absolute text-xs pointer-events-none" }, [
15
+ g(
16
16
  "checked",
17
17
  (e) => e ? x({
18
18
  class: "w-2 h-2 pointer-events-none",
@@ -22,8 +22,8 @@ const $ = "flex h-10 w-full px-3 py-2 text-sm", b = "rounded-md border border-in
22
22
  ]), w = ({ id: e, bind: o, checked: t, required: a, clickHandler: m }) => l({
23
23
  class: `relative flex items-center justify-center w-5 h-5 transition-colors duration-200 border-primary hover:border-accent-foreground
24
24
  ${b}
25
- ${n}
26
- ${i}`.trim(),
25
+ ${i}
26
+ ${n}`.trim(),
27
27
  onState: [
28
28
  "checked",
29
29
  {
@@ -127,7 +127,7 @@ const $ = "flex h-10 w-full px-3 py-2 text-sm", b = "rounded-md border border-in
127
127
  })), q = s((e) => k({
128
128
  ...e,
129
129
  as: "textarea",
130
- class: `flex w-full h-24 px-3 py-2 text-sm rounded-md border border-input bg-background ${n} ${f} ${i} ${e.class || ""}`.trim()
130
+ class: `flex w-full h-24 px-3 py-2 text-sm rounded-md border border-input bg-input ${i} ${f} ${n} ${e.class || ""}`.trim()
131
131
  })), R = (e = {}) => l({ class: "flex items-center space-x-2" }, [
132
132
  r({
133
133
  ...e,
@@ -175,11 +175,11 @@ const O = s((e) => c({
175
175
  })), K = s((e) => r({
176
176
  ...e,
177
177
  type: "color",
178
- class: `border rounded-md border-input bg-background text-foreground p-0 disabled:cursor-not-allowed disabled:opacity-50 ${e.class || ""}`.trim()
178
+ class: `border rounded-md border-input bg-input text-foreground p-0 disabled:cursor-not-allowed disabled:opacity-50 ${e.class || ""}`.trim()
179
179
  }));
180
180
  s((e) => u({
181
181
  ...e,
182
- class: `flex h-4 w-4 rounded-md border border-input bg-background text-foreground ${n} ${i} ${e.class || ""}`.trim()
182
+ class: `flex h-4 w-4 rounded-md border border-input bg-input text-foreground ${i} ${n} ${e.class || ""}`.trim()
183
183
  }));
184
184
  const E = "file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground", Q = s((e) => r({
185
185
  ...e,
@@ -204,7 +204,7 @@ export {
204
204
  W as b,
205
205
  j as c,
206
206
  K as d,
207
- i as e,
208
- n as f,
207
+ n as e,
208
+ i as f,
209
209
  h as g
210
210
  };
@@ -1,4 +1,4 @@
1
- import { A as o, B as t, C as e, t as r, G as i, v as n, w as m, x as l, y as S, D, j as c, k as g, I as p, H as u, s as d, c as C, a as F, b as T, J as P, i as A, g as f, e as w, h as I, F as b, d as y, f as B, L as M, u as k, M as x, l as L, N as v, P as E, p as N, q as R, S as U, n as h, o as j, T as q, z, E as G, m as H, r as J } from "./empty-state-CIFxears.js";
1
+ import { A as o, B as t, C as e, t as r, G as i, v as n, w as m, x as l, y as S, D, j as c, k as g, I as p, H as u, s as d, c as C, a as F, b as T, J as P, i as A, g as f, e as w, h as I, F as b, d as y, f as B, L as M, u as k, M as x, l as L, N as v, P as E, p as N, q as R, S as U, n as h, o as j, T as q, z, E as G, m as H, r as J } from "./empty-state-B4aH27Hs.js";
2
2
  import { A as _, P as K, g as Q } from "./range-calendar-k0B4ZWJq.js";
3
3
  export {
4
4
  o 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-Cj_uAlDW.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-DZTEbp7P.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-k0B4ZWJq.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-Dj67Pb8l.js";
4
4
  export {
@@ -3,7 +3,7 @@ import { Atom as d, Component as h, Data as C, DateTime as G, router as y, NavLi
3
3
  import { B as T, I as _ } from "./buttons-Cm9etaEG.js";
4
4
  import { Icons as x } from "./icons.es.js";
5
5
  import { TableBody as J, DataTableBody as Z, ScrollableTableBody as ee, List as te, IntervalTimer as se } from "@base-framework/organisms";
6
- import { C as ae, I as ie, H as ne } from "./inputs-CMjx5-IX.js";
6
+ import { C as ae, I as ie, H as ne } from "./inputs-Hhzvhby6.js";
7
7
  import { A as oe, P as le } from "./range-calendar-k0B4ZWJq.js";
8
8
  d((t, e) => ({
9
9
  class: "flex items-center px-4 py-2",
@@ -1,7 +1,7 @@
1
1
  import { Span as g, Div as l, Legend as f, Fieldset as x, H4 as C, P as h, UseParent as u, Input as y } from "@base-framework/atoms";
2
2
  import { Atom as s, Html as p } from "@base-framework/base";
3
3
  import { a as d } from "./veil-D4dRxILB.js";
4
- import { f as k, e as w, g as $ } from "./inputs-CMjx5-IX.js";
4
+ import { f as k, e as w, g as $ } from "./inputs-Hhzvhby6.js";
5
5
  const a = {
6
6
  gray: {
7
7
  backgroundColor: "bg-gray-50",
@@ -7,7 +7,7 @@ export const sizeClass: "flex h-10 w-full px-3 py-2 text-sm";
7
7
  * @constant {string} borderClass
8
8
  * Common border & background classes for inputs.
9
9
  */
10
- export const borderClass: "rounded-md border border-input bg-background";
10
+ export const borderClass: "rounded-md border border-input bg-input";
11
11
  /**
12
12
  * @constant {string} focusClass
13
13
  * Common focus and ring classes for inputs.
@@ -27,4 +27,4 @@ export const placeholderClass: "placeholder:text-muted-foreground";
27
27
  * @constant {string} commonInputClasses
28
28
  * Composed classes for text-like inputs (text, email, tel, etc.).
29
29
  */
30
- export const commonInputClasses: "flex h-10 w-full px-3 py-2 text-sm rounded-md border border-input bg-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 ring-offset-background placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50 [&:user-invalid]:border-destructive";
30
+ export const commonInputClasses: "flex h-10 w-full px-3 py-2 text-sm rounded-md border border-input bg-input focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 ring-offset-background placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50 [&:user-invalid]:border-destructive";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@base-framework/ui",
3
- "version": "1.0.251",
3
+ "version": "1.0.254",
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": {