@base-framework/ui 1.0.250 → 1.0.251

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,10 +1,10 @@
1
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 y, Html as F, Dom as oe, base as ne, Data as $, Builder as Y, Jot as C, DateTime as A } from "@base-framework/base";
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
3
  import { P as k, b as le, R as re } 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
6
  import { Timer as ie, List as ae, DynamicTime as ce } from "@base-framework/organisms";
7
- import { a as v } from "./veil-D4dRxILB.js";
7
+ import { a as y } from "./veil-D4dRxILB.js";
8
8
  import { F as P } from "./format-DnofNaaz.js";
9
9
  const M = {
10
10
  info: {
@@ -34,7 +34,7 @@ const M = {
34
34
  }
35
35
  }, ue = (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), vt = c(({ title: e, description: t, icon: s, type: o = "default" }) => {
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" }) => {
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
@@ -45,7 +45,7 @@ const M = {
45
45
  ])
46
46
  ]);
47
47
  });
48
- class fe extends y {
48
+ class fe extends v {
49
49
  /**
50
50
  * This will declare the props for the compiler.
51
51
  *
@@ -83,7 +83,7 @@ const me = (e) => a({ class: "ml-auto text-xs tracking-widest opacity-60" }, e),
83
83
  class: "max-h-60 border rounded-md overflow-y-auto p-1 grid gap-2 divide-y divide-border",
84
84
  for: ["groups", (t) => xe(t, e)]
85
85
  })
86
- ]), ve = ({ label: e, icon: t, toggleDropdown: s }) => f({
86
+ ]), ye = ({ 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
- ]), ye = ({ onSelect: e }) => n([
95
+ ]), ve = ({ onSelect: e }) => n([
96
96
  x(
97
97
  "open",
98
98
  (t, s, o) => t ? new k({
@@ -104,7 +104,7 @@ const me = (e) => a({ class: "ml-auto text-xs tracking-widest opacity-60" }, e),
104
104
  ]) : null
105
105
  )
106
106
  ]);
107
- class yt extends y {
107
+ class vt extends v {
108
108
  /**
109
109
  * This will declare the props for the compiler.
110
110
  *
@@ -158,12 +158,12 @@ class yt extends y {
158
158
  */
159
159
  render() {
160
160
  return n({ class: "relative" }, [
161
- ve({
161
+ ye({
162
162
  label: this.label,
163
163
  icon: this.icon,
164
164
  toggleDropdown: this.toggleDropdown.bind(this)
165
165
  }),
166
- ye({ onSelect: this.handleSelect.bind(this) })
166
+ ve({ onSelect: this.handleSelect.bind(this) })
167
167
  ]);
168
168
  }
169
169
  }
@@ -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 = v(
187
+ }), Ct = y(
188
188
  {
189
189
  /**
190
190
  * The initial state of the FormField.
@@ -268,7 +268,7 @@ const Ce = c((e, t) => n({ ...e, class: "flex flex-auto flex-col space-y-2" }, 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
270
  ])), Le = (e) => Y.render(e, app.root);
271
- class $t extends y {
271
+ class $t extends v {
272
272
  /**
273
273
  * This will declare the props for the compiler.
274
274
  *
@@ -565,7 +565,7 @@ class ze extends fe {
565
565
  }
566
566
  }
567
567
  let Ne = 0;
568
- class Tt extends y {
568
+ class Tt extends v {
569
569
  /**
570
570
  * This will render the component.
571
571
  *
@@ -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 = v(
649
+ ), At = y(
650
650
  {
651
651
  /**
652
652
  * The initial state of the Toggle.
@@ -771,7 +771,7 @@ const N = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
771
771
  change: (s) => {
772
772
  var l;
773
773
  const o = (l = s.target.files) == null ? void 0 : l[0];
774
- o && t && (this.state.loaded = !1, t(o, this.parent), this.src = getFileUrl(o), this.state.loaded = !0);
774
+ o && t && (this.state.loaded = !1, t(o, this.parent), this.src = this.getFileUrl(o), this.state.loaded = !0);
775
775
  }
776
776
  }),
777
777
  x(
@@ -779,10 +779,10 @@ const N = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
779
779
  (s) => s ? Z({
780
780
  // @ts-ignore
781
781
  src: this.src,
782
- class: "absolute inset-0 w-full h-full object-cover rounded-full pointer-events-none"
782
+ class: "absolute inset-0 w-full h-full object-cover rounded-full"
783
783
  }) : R({
784
784
  htmlFor: e,
785
- class: "z-10 flex flex-col items-center justify-center text-sm text-muted-foreground pointer-events-none group-hover:text-primary"
785
+ class: "z-10 flex flex-col items-center justify-center text-sm text-muted-foreground group-hover:text-primary"
786
786
  }, [
787
787
  p(d.upload),
788
788
  n("Upload logo")
@@ -1058,7 +1058,7 @@ const N = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
1058
1058
  max: s,
1059
1059
  type: "number",
1060
1060
  "aria-label": "Counter"
1061
- })), Et = v(
1061
+ })), Et = y(
1062
1062
  {
1063
1063
  /**
1064
1064
  * Initial state for the counter component.
@@ -1120,7 +1120,7 @@ const N = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
1120
1120
  blockPriorDates: t
1121
1121
  })
1122
1122
  ]) : null
1123
- ), jt = v(
1123
+ ), jt = y(
1124
1124
  {
1125
1125
  /**
1126
1126
  * The initial state of the DatePicker.
@@ -1195,7 +1195,7 @@ const N = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
1195
1195
  blockPriorDates: t
1196
1196
  })
1197
1197
  ]) : null
1198
- ), Ot = v(
1198
+ ), Ot = y(
1199
1199
  {
1200
1200
  /**
1201
1201
  * The initial state of the DateRangePicker.
@@ -1355,7 +1355,7 @@ function j(e) {
1355
1355
  meridian: r
1356
1356
  });
1357
1357
  }
1358
- const Vt = v(
1358
+ const Vt = y(
1359
1359
  {
1360
1360
  /**
1361
1361
  * The initial shallow state of the TimePicker.
@@ -1468,7 +1468,7 @@ const Vt = v(
1468
1468
  iconColor: "text-muted-foreground"
1469
1469
  }
1470
1470
  };
1471
- class dt extends y {
1471
+ class dt extends v {
1472
1472
  /**
1473
1473
  * This will declare the props for the compiler.
1474
1474
  *
@@ -1588,7 +1588,7 @@ const qt = c((e, t = []) => n({ class: "w-full max-w-md p-6 m-auto" }, [
1588
1588
  ])
1589
1589
  ]));
1590
1590
  export {
1591
- vt as A,
1591
+ yt as A,
1592
1592
  Mt as B,
1593
1593
  It as C,
1594
1594
  fe as D,
@@ -1605,7 +1605,7 @@ export {
1605
1605
  Dt as S,
1606
1606
  Bt as T,
1607
1607
  be as a,
1608
- yt as b,
1608
+ vt as b,
1609
1609
  we as c,
1610
1610
  ke as d,
1611
1611
  Se as e,
package/dist/index.es.js CHANGED
@@ -3,7 +3,7 @@ import { B as c, I as C, L as T } from "./buttons-Cm9etaEG.js";
3
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";
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-UV-TcmJq.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";
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
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";
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";
@@ -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-UV-TcmJq.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-CIFxears.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,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@base-framework/ui",
3
- "version": "1.0.250",
3
+ "version": "1.0.251",
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": {