@base-framework/ui 1.0.237 → 1.0.239

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,5 +1,5 @@
1
- import { Div as n, H5 as W, P as g, I as f, Li as V, Span as i, Ul as q, Button as m, OnState as w, Label as J, Form as G, H2 as S, Header as D, Footer as P, A as H, H3 as K, Checkbox as Q, Nav as X, Input as y, UseParent as Z, Time as ee, Dialog as te } from "@base-framework/atoms";
2
- import { Atom as c, Component as v, Html as M, Dom as se, base as oe, Data as I, Builder as Y, Jot as $, DateTime as A } from "@base-framework/base";
1
+ import { Div as n, H5 as J, P as g, I as f, Li as V, Span as i, Ul as q, Button as m, OnState as w, Label as G, Form as K, H2 as S, Header as D, Footer as P, A as H, H3 as Q, Checkbox as X, Nav as Z, Input as y, UseParent as Y, Time as ee, Dialog as te } from "@base-framework/atoms";
2
+ import { Atom as c, Component as v, Html as M, Dom as se, base as oe, Data as I, Builder as U, Jot as $, DateTime as A } from "@base-framework/base";
3
3
  import { P as C, b as ne, R as le } from "./range-calendar-CMYN-04x.js";
4
4
  import { B as h, I as b } from "./buttons-Cm9etaEG.js";
5
5
  import { Icons as u } from "./icons.es.js";
@@ -34,7 +34,7 @@ const F = {
34
34
  }
35
35
  }, ce = (e, t) => n({ class: `flex items-center justify-center h-6 w-6 mr-3 ${t}` }, [
36
36
  f({ html: e })
37
- ]), de = (e) => W({ class: "font-semibold" }, e), ue = (e) => g({ class: "text-sm text-muted-foreground" }, e), wt = c(({ title: e, description: t, icon: s, type: o = "default" }) => {
37
+ ]), de = (e) => J({ class: "font-semibold" }, e), ue = (e) => g({ class: "text-sm text-muted-foreground" }, e), wt = c(({ title: e, description: t, icon: s, type: o = "default" }) => {
38
38
  const { borderColor: l, bgColor: r, iconColor: a } = F[o] || F.default;
39
39
  return n({ class: `flex items-start p-4 border rounded-lg ${r} ${l}` }, [
40
40
  // Icon and content
@@ -167,7 +167,7 @@ class yt extends v {
167
167
  ]);
168
168
  }
169
169
  }
170
- const ve = c((e, t) => n({ ...e, class: "flex flex-auto flex-col space-y-2" }, t)), Ce = c((e, t) => J({ ...e, class: "flex auto text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70" }, t)), ke = c((e, t) => g({ ...e, class: "text-sm text-muted-foreground italic" }, t)), Se = c((e, t) => g({ ...e, class: "text-sm text-destructive" }, t)), De = (e) => e.tag === "input" || e.tag === "select" || e.tag === "textarea", U = (e, t, s) => e.map((o) => (o.children && o.children.length > 0 && (o.children = U(o.children, t, s)), o.required && De(o) ? {
170
+ const ve = c((e, t) => n({ ...e, class: "flex flex-auto flex-col space-y-2" }, t)), Ce = c((e, t) => G({ ...e, class: "flex auto text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70" }, t)), ke = c((e, t) => g({ ...e, class: "text-sm text-muted-foreground italic" }, t)), Se = c((e, t) => g({ ...e, class: "text-sm text-destructive" }, t)), De = (e) => e.tag === "input" || e.tag === "select" || e.tag === "textarea", R = (e, t, s) => e.map((o) => (o.children && o.children.length > 0 && (o.children = R(o.children, t, s)), o.required && De(o) ? {
171
171
  ...o,
172
172
  aria: {
173
173
  invalid: ["hasError"]
@@ -175,7 +175,7 @@ const ve = c((e, t) => n({ ...e, class: "flex flex-auto flex-col space-y-2" }, t
175
175
  invalid: s,
176
176
  input: t
177
177
  } : o)), Ie = c((e, t) => {
178
- const l = U(t, (r) => {
178
+ const l = R(t, (r) => {
179
179
  r.target.checkValidity() && e.setError(null);
180
180
  }, (r) => {
181
181
  e.setError(r.target.validationMessage);
@@ -225,8 +225,8 @@ const ve = c((e, t) => n({ ...e, class: "flex flex-auto flex-col space-y-2" }, t
225
225
  }
226
226
  ), $e = (e, t, s = null) => {
227
227
  e.target.checkValidity() && (e.preventDefault(), s && s(e, t));
228
- }, R = c(
229
- (e, t) => G({ ...e, submit: (s, o) => $e(s, o, e.submit), class: `w-full ${e.class ?? ""}` }, t)
228
+ }, _ = c(
229
+ (e, t) => K({ ...e, submit: (s, o) => $e(s, o, e.submit), class: `w-full ${e.class ?? ""}` }, t)
230
230
  ), Ct = c((e, t) => n({ ...e, class: `space-y-6 p-4 md:p-6 divide-y ${e.class || ""}` }, t)), kt = c((e, t = []) => n({ class: "space-y-3 py-4" }, [
231
231
  e.title && S({ class: "font-semibold" }, e.title),
232
232
  ...t
@@ -262,12 +262,12 @@ const ve = c((e, t) => n({ ...e, class: "flex flex-auto flex-col space-y-2" }, t
262
262
  s.target === o.panel && (s.preventDefault(), s.stopPropagation(), o.state.open = !1);
263
263
  }
264
264
  }, [
265
- R({ class: "modal-content relative bg-background z-[1] flex flex-auto flex-col space-y-4", submit: (s, o) => e.onSubmit && e.onSubmit(o) }, [
265
+ _({ 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
266
  Te(e),
267
267
  n({ class: "modal-body flex flex-grow flex-col overflow-y-auto py-0 px-6 z-0" }, t),
268
268
  P({ 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
- ])), Ae = (e) => Y.render(e, app.root);
270
+ ])), Ae = (e) => U.render(e, app.root);
271
271
  class It extends v {
272
272
  /**
273
273
  * This will declare the props for the compiler.
@@ -455,7 +455,7 @@ const N = {
455
455
  iconColor: "text-muted-foreground"
456
456
  }
457
457
  }, Pe = (e) => D({ class: "flex justify-center" }, [
458
- K({ class: "text-lg font-bold mb-0" }, e)
458
+ Q({ class: "text-lg font-bold mb-0" }, e)
459
459
  ]), Me = c(({ href: e, class: t }, s) => H({
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,
@@ -680,7 +680,7 @@ const z = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => m({
680
680
  s.toggle("active"), this.checkbox.checked = s.active, this.change && this.change(s.active, t, this);
681
681
  }
682
682
  }, [
683
- Q({
683
+ X({
684
684
  cache: "checkbox",
685
685
  class: "opacity-0 absolute top-0 left-0 bottom-0 right-0 w-full h-full",
686
686
  /**
@@ -753,7 +753,7 @@ const z = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => m({
753
753
  */
754
754
  render() {
755
755
  const e = this.data.items.length - 1;
756
- return X(
756
+ return Z(
757
757
  {
758
758
  "aria-label": "Breadcrumb",
759
759
  class: "flex items-center space-x-1 text-sm"
@@ -958,21 +958,21 @@ const z = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => m({
958
958
  ]);
959
959
  }
960
960
  }
961
- ), _ = ({ icon: e, click: t, ariaLabel: s }) => h({
961
+ ), W = ({ icon: e, click: t, ariaLabel: s }) => h({
962
962
  variant: "icon",
963
963
  class: "flex flex-none",
964
964
  click: t,
965
965
  icon: e,
966
966
  "aria-label": s
967
- }), Je = ({ click: e }) => _({
967
+ }), Je = ({ click: e }) => W({
968
968
  icon: u.circleMinus,
969
969
  click: e,
970
970
  ariaLabel: "Decrement"
971
- }), Ge = ({ click: e }) => _({
971
+ }), Ge = ({ click: e }) => W({
972
972
  icon: u.circlePlus,
973
973
  click: e,
974
974
  ariaLabel: "Increment"
975
- }), Ke = ({ bind: e, min: t, max: s, readonly: o = !1 }) => Z(({ state: l }) => y({
975
+ }), Ke = ({ bind: e, min: t, max: s, readonly: o = !1 }) => Y(({ state: l }) => y({
976
976
  value: ["[[count]]", l],
977
977
  bind: e,
978
978
  blur: (r, { state: a }) => {
@@ -1101,9 +1101,11 @@ const z = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => m({
1101
1101
  click: s
1102
1102
  }, [
1103
1103
  et({ bind: e, required: t }),
1104
- i(L.date("[[start]]", "Start Date")),
1105
- i(" - "),
1106
- i(L.date("[[end]]", "End Date")),
1104
+ Y(({ state: o }) => [
1105
+ i(L.date(["[[start]]", o], "Start Date")),
1106
+ i(" - "),
1107
+ i(L.date(["[[end]]", o], "End Date"))
1108
+ ]),
1107
1109
  f({ html: u.calendar.days })
1108
1110
  ]), st = ({ handleDateSelect: e, blockPriorDates: t }) => w(
1109
1111
  "open",
@@ -1366,7 +1368,7 @@ const Ot = x(
1366
1368
  ])
1367
1369
  ])
1368
1370
  ]
1369
- )), ct = (e) => Y.render(e, app.root), O = {
1371
+ )), ct = (e) => U.render(e, app.root), O = {
1370
1372
  info: {
1371
1373
  borderColor: "border-blue-500",
1372
1374
  bgColor: "bg-muted/10",
@@ -1497,7 +1499,7 @@ class Vt extends dt {
1497
1499
  }
1498
1500
  }
1499
1501
  const qt = c((e, t = []) => n({ class: "w-full max-w-md p-6 m-auto" }, [
1500
- R({ class: "flex flex-auto flex-col" }, [
1502
+ _({ class: "flex flex-auto flex-col" }, [
1501
1503
  n({ class: "flex flex-auto flex-col space-y-4" }, [
1502
1504
  n({ class: "flex flex-auto items-center justify-center" }, [
1503
1505
  e.icon && n({ class: "w-16 h-16 mb-2 text-primary" }, [
@@ -1536,7 +1538,7 @@ export {
1536
1538
  Se as f,
1537
1539
  Ie as g,
1538
1540
  vt as h,
1539
- R as i,
1541
+ _ as i,
1540
1542
  Ct as j,
1541
1543
  kt as k,
1542
1544
  Fe as l,
package/dist/index.es.js CHANGED
@@ -3,7 +3,7 @@ import { B as g, 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 W, U as H, W as L } 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, u as ca, M as ga, l as Ca, N as Ta, P as Da, p as ba, q as Ia, S as Sa, n as Pa, o as Ba, T as Fa, z as ka, E as Ma, m as fa, r as xa } from "./empty-state-Ctcag00p.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, u as ca, M as ga, l as Ca, N as Ta, P as Da, p as ba, q as Ia, S as Sa, n as Pa, o as Ba, T as Fa, z as ka, E as Ma, m as fa, r as xa } from "./empty-state-vZlNHcZ5.js";
7
7
  import { A as va, b as ya, C as ha, D as Wa, a as Ha, F as La, M as Aa, P as Ra, R as wa, c as Ua, g as Ea, p as Ga } from "./range-calendar-CMYN-04x.js";
8
8
  import { B as Va, p as ja, C as qa, j as Ja, D as za, m as _a, k as Ka, H as Qa, I as Xa, N as Ya, O as Za, P as $a, S as ae, n as ee, o as se, t as oe, s as te, q as re, r as ne, T as le, l as ie, U as pe, W as me, f as ue, h as de, i as ce, c as ge, d as Ce, b as Te, e as De, a as be, g as Ie } from "./signature-panel-Bkj-9bST.js";
9
9
  import { B as Pe, I as Be, M as Fe, d as ke, e as Me, g as fe, N as xe, b as Ne, a as ve, f as ye, P as he, c as We, S as He, T as Le } from "./mobile-nav-wrapper-Dj67Pb8l.js";
@@ -1,4 +1,4 @@
1
- import { A as o, B as t, C as e, t as i, G as r, v as n, w as m, x as l, y as S, D, j as c, k as u, I as g, H as p, s as C, c as d, 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, u as M, M as k, l as x, N as v, P as E, p as N, q as R, S as h, n as L, o as U, T as j, z as q, E as z, m as G, r as H } from "./empty-state-Ctcag00p.js";
1
+ import { A as o, B as t, C as e, t as i, G as r, v as n, w as m, x as l, y as S, D, j as c, k as u, I as g, H as p, s as C, c as d, 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, u as M, M as k, l as x, N as v, P as E, p as N, q as R, S as h, n as L, o as U, T as j, z as q, E as z, m as G, r as H } from "./empty-state-vZlNHcZ5.js";
2
2
  import { A as O, P as _, g as K } from "./range-calendar-CMYN-04x.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.237",
3
+ "version": "1.0.239",
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": {