@base-framework/ui 1.0.266 → 1.0.268

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,7 +1,7 @@
1
- import { B as e, C as t, F as o, L as n, P as r, R as p, S as u, a as I, T as i } from "./tooltip-Pwsjx1Gp.js";
2
- import { B as d, I as m, L as C } from "./buttons-Cm9etaEG.js";
1
+ import { B as e, C as t, F as o, L as n, P as r, R as p, S as u, a as I, T as i } from "./tooltip-05O5vIt1.js";
2
+ import { B as d, I as m, L as C } from "./buttons-BKLL4I6r.js";
3
3
  import { C as x, F as B, V as F, a as c } from "./veil-tVDPinrr.js";
4
- import { C as f, d as L, D as P, c as R, E as S, F as b, H as h, I as k, M as D, N as V, P as E, R as G, T as H, a as M, b as N, U, W } from "./inputs-DscqfC6k.js";
4
+ import { C as f, d as L, D as P, c as R, E as S, F as b, H as h, I as k, M as D, N as V, P as E, R as G, T as H, a as M, b as N, U, W } from "./inputs-CGtqFgi8.js";
5
5
  export {
6
6
  e as Badge,
7
7
  d as Button,
@@ -1,7 +1,7 @@
1
1
  import { I as m, Button as r } from "@base-framework/atoms";
2
- import { Atom as s } from "@base-framework/base";
3
- import { Icons as u } from "./icons.es.js";
4
- const w = {
2
+ import { Atom as c } from "@base-framework/base";
3
+ import { Icons as h } from "./icons.es.js";
4
+ const g = {
5
5
  xs: "w-4 h-4",
6
6
  sm: "w-6 h-6",
7
7
  md: "w-8 h-8",
@@ -9,19 +9,19 @@ const w = {
9
9
  xl: "w-12 h-12",
10
10
  "2xl": "w-14 h-14",
11
11
  "3xl": "w-16 h-16"
12
- }, l = s((n, t) => {
13
- var c;
14
- const a = w[n.size || "sm"];
12
+ }, l = c((n, t) => {
13
+ var s;
14
+ const a = g[n.size || "sm"];
15
15
  return m({
16
16
  ...n,
17
17
  class: `stroke-current icon-size ${a} ${n.class || ""}`,
18
- html: (c = t[0]) == null ? void 0 : c.textContent
18
+ html: (s = t[0]) == null ? void 0 : s.textContent
19
19
  });
20
- }), i = (n) => s((t, a) => r({
20
+ }), i = (n) => c((t, a) => r({
21
21
  ...n,
22
22
  ...t,
23
23
  class: `bttn ${n.class} ${t.class || ""}`
24
- }, a)), h = s(
24
+ }, a)), u = c(
25
25
  (n, t) => r({
26
26
  ...n,
27
27
  class: n.class
@@ -30,17 +30,17 @@ const w = {
30
30
  ...t || [],
31
31
  n.icon && n.position === "right" ? l({ size: "sm", class: n.animation ?? null }, n.icon) : null
32
32
  ])
33
- ), o = (n) => s((t, a) => h({
33
+ ), o = (n) => c((t, a) => u({
34
34
  ...n,
35
35
  ...t,
36
36
  class: `bttn ${n.class} ${t.class || ""}`
37
- }, a)), g = (n) => () => {
37
+ }, a)), w = (n) => () => {
38
38
  if (n.allowHistory === !0 && globalThis.history.length > 2) {
39
39
  globalThis.history.back();
40
40
  return;
41
41
  }
42
42
  n.backUrl && app.navigate(n.backUrl);
43
- }, k = (n) => s((t, a) => (t.icon = t.icon || u.arrows.left, t.click = t.click || g(t), h({
43
+ }, k = (n) => c((t, a) => (t.icon = t.icon || h.chevron.single.left, t.click = t.click || w(t), u({
44
44
  ...n,
45
45
  ...t
46
46
  }, a))), e = {
@@ -54,7 +54,7 @@ const w = {
54
54
  icon: o({ class: "icon" }),
55
55
  withIcon: o({ class: "with-icon" }),
56
56
  back: k({ class: "with-icon back-button" })
57
- }, b = s((n, t) => (e[n.variant] || e.primary)(n, t)), $ = s((n, t) => b({ ...n, variant: "withIcon", icon: u.loading, animation: "animate-spin" }, t));
57
+ }, b = c((n, t) => (e[n.variant] || e.primary)(n, t)), $ = c((n, t) => b({ ...n, variant: "withIcon", icon: h.loading, animation: "animate-spin" }, t));
58
58
  export {
59
59
  b as B,
60
60
  l as I,
@@ -1,8 +1,8 @@
1
1
  import { Div as n, H5 as J, P as m, I as p, Li as U, Span as i, Ul as V, Button as f, OnState as x, Label as R, H2 as v, Form as K, Header as I, Footer as A, A as q, H3 as Q, Checkbox as X, Input as w, Img as Z, Nav as ee, UseParent as H, Time as te, Dialog as se } from "@base-framework/atoms";
2
2
  import { Atom as c, Component as C, Html as L, Dom as oe, base as ne, Data as $, Builder as Y, Jot as k, Events as le, DateTime as F } from "@base-framework/base";
3
- import { P as S, b as re, R as ae } from "./range-calendar-BxLjYfrT.js";
3
+ import { P as S, b as re, R as ae } from "./range-calendar-DW0cMOJy.js";
4
4
  import { C as ie, F as ce, a as y } from "./veil-tVDPinrr.js";
5
- import { B as h, I as g } from "./buttons-Cm9etaEG.js";
5
+ import { B as h, I as g } from "./buttons-BKLL4I6r.js";
6
6
  import { Icons as u } from "./icons.es.js";
7
7
  import { Timer as de, List as ue, DynamicTime as he } from "@base-framework/organisms";
8
8
  import { F as P } from "./format-DnofNaaz.js";
package/dist/index.es.js CHANGED
@@ -1,13 +1,13 @@
1
- import { B as s, C as o, F as t, L as r, P as n, R as l, S as i, a as p, T as m } from "./tooltip-Pwsjx1Gp.js";
2
- import { B as d, I as g, L as C } from "./buttons-Cm9etaEG.js";
1
+ import { B as s, C as o, F as t, L as r, P as n, R as l, S as i, a as p, T as m } from "./tooltip-05O5vIt1.js";
2
+ import { B as d, I as g, L as C } from "./buttons-BKLL4I6r.js";
3
3
  import { C as T, F as D, V as I, a as b } from "./veil-tVDPinrr.js";
4
- import { C as F, d as P, D as B, c as k, E as M, F as f, H as x, I as N, M as v, N as y, P as h, R as L, T as W, a as H, b as A, U as R, W as w } from "./inputs-DscqfC6k.js";
4
+ import { C as F, d as P, D as B, c as k, E as M, F as f, H as x, I as N, M as v, N as y, P as h, R as L, T as W, a as H, b as A, U as R, W as w } from "./inputs-CGtqFgi8.js";
5
5
  import { Icons as G } from "./icons.es.js";
6
- import { A as E, B as V, C as j, w as q, J, y as z, z as K, E as Q, G as _, D as X, m as Y, n as Z, O as $, K as aa, v as ea, c as sa, a as oa, b as ta, Q as ra, l as na, g as la, i as ia, h as pa, j as ma, e as ua, k as da, F as ga, d as Ca, f as ca, L as Ta, x as Da, M as Ia, o as ba, N as Sa, P as Fa, s as Pa, t as Ba, S as ka, q as Ma, r as fa, T as xa, H as Na, I as va, p as ya, u as ha } from "./empty-state-Dp-xCh69.js";
7
- import { A as Wa, b as Ha, C as Aa, D as Ra, a as wa, F as Ua, M as Ga, P as Oa, R as Ea, c as Va, g as ja, p as qa } from "./range-calendar-BxLjYfrT.js";
8
- import { B as za, p as Ka, C as Qa, j as _a, D as Xa, m as Ya, k as Za, H as $a, I as ae, N as ee, O as se, P as oe, S as te, n as re, o as ne, t as le, s as ie, q as pe, r as me, T as ue, l as de, U as ge, W as Ce, f as ce, h as Te, i as De, c as Ie, d as be, b as Se, e as Fe, a as Pe, g as Be } from "./signature-panel-obojbki5.js";
9
- import { B as Me, I as fe, M as xe, d as Ne, e as ve, g as ye, N as he, b as Le, a as We, f as He, P as Ae, c as Re, S as we, T as Ue } from "./mobile-nav-wrapper-Dj67Pb8l.js";
10
- import { B as Oe, a as Ee, C as Ve, F as je, b as qe, c as Je, M as ze, P as Ke, S as Qe } from "./sidebar-menu-page-BVryQj2Z.js";
6
+ import { A as E, B as V, C as j, w as q, J, y as z, z as K, E as Q, G as _, D as X, m as Y, n as Z, O as $, K as aa, v as ea, c as sa, a as oa, b as ta, Q as ra, l as na, g as la, i as ia, h as pa, j as ma, e as ua, k as da, F as ga, d as Ca, f as ca, L as Ta, x as Da, M as Ia, o as ba, N as Sa, P as Fa, s as Pa, t as Ba, S as ka, q as Ma, r as fa, T as xa, H as Na, I as va, p as ya, u as ha } from "./empty-state-D-3YYs2T.js";
7
+ import { A as Wa, b as Ha, C as Aa, D as Ra, a as wa, F as Ua, M as Ga, P as Oa, R as Ea, c as Va, g as ja, p as qa } from "./range-calendar-DW0cMOJy.js";
8
+ import { B as za, p as Ka, C as Qa, j as _a, D as Xa, m as Ya, k as Za, H as $a, I as ae, N as ee, O as se, P as oe, S as te, n as re, o as ne, t as le, s as ie, q as pe, r as me, T as ue, l as de, U as ge, W as Ce, f as ce, h as Te, i as De, c as Ie, d as be, b as Se, e as Fe, a as Pe, g as Be } from "./signature-panel-7O22-IGI.js";
9
+ import { B as Me, I as fe, M as xe, d as Ne, e as ve, g as ye, N as he, b as Le, a as We, f as He, P as Ae, c as Re, S as we, T as Ue } from "./mobile-nav-wrapper-C7RyGC5a.js";
10
+ import { B as Oe, a as Ee, C as Ve, F as je, b as qe, c as Je, M as ze, P as Ke, S as Qe } from "./sidebar-menu-page-BtUJdw-T.js";
11
11
  import { A as Xe, F as Ye, M as Ze, a as $e, T as as } from "./aside-template-McEj_Gxc.js";
12
12
  import { B as ss } from "./bside-template-Du2m3rsE.js";
13
13
  import { F as ts, c as rs } from "./format-DnofNaaz.js";
@@ -1,7 +1,7 @@
1
1
  import { Div as l, Label as d, Checkbox as u, Span as m, OnState as g, I as p, Input as r, Textarea as x } from "@base-framework/atoms";
2
2
  import { Jot as k, Atom as s } from "@base-framework/base";
3
3
  import { Icons as y } from "./icons.es.js";
4
- const v = "flex h-10 w-full px-3 py-2 text-sm", $ = "rounded-md border bg-input", 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", b = `${v} ${$} ${n} ${f} ${i}`, I = ({ id: e, checked: o, bind: t, required: a }) => u({
4
+ const v = "flex h-10 w-full px-3 py-2 text-sm", $ = "rounded-md border border-border bg-input", 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", b = "placeholder:text-muted-foreground", f = `${v} ${$} ${n} ${b} ${i}`, 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",
@@ -109,7 +109,7 @@ const v = "flex h-10 w-full px-3 py-2 text-sm", $ = "rounded-md border bg-input"
109
109
  t && (o.value = t);
110
110
  }, c = s((e) => r({
111
111
  ...e,
112
- class: `${b} ${e.class || ""}`.trim()
112
+ class: `${f} ${e.class || ""}`.trim()
113
113
  })), M = s((e) => c({
114
114
  ...e,
115
115
  type: "tel",
@@ -127,7 +127,7 @@ const v = "flex h-10 w-full px-3 py-2 text-sm", $ = "rounded-md border bg-input"
127
127
  })), q = s((e) => x({
128
128
  ...e,
129
129
  as: "textarea",
130
- class: `flex w-full h-24 px-3 py-2 text-sm rounded-md border bg-input ${n} ${f} ${i} ${e.class || ""}`.trim()
130
+ class: `flex w-full h-24 px-3 py-2 text-sm rounded-md border bg-input ${n} ${b} ${i} ${e.class || ""}`.trim()
131
131
  })), R = (e = {}) => l({ class: "flex items-center space-x-2" }, [
132
132
  r({
133
133
  ...e,
@@ -184,7 +184,7 @@ s((e) => u({
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,
186
186
  type: "file",
187
- class: `${b} ${E} ${e.class || ""}`.trim()
187
+ class: `${f} ${E} ${e.class || ""}`.trim()
188
188
  }));
189
189
  export {
190
190
  L as C,
@@ -206,5 +206,5 @@ export {
206
206
  K as d,
207
207
  i as e,
208
208
  n as f,
209
- b as g
209
+ f as g
210
210
  };
@@ -1,6 +1,6 @@
1
1
  import { Button as S, I as B, Label as N, Span as L, Ul as o, H4 as C, Nav as p, Div as l, Header as y, H1 as P, H3 as h, OnState as I, UseParent as $ } from "@base-framework/atoms";
2
2
  import { Component as n, Atom as i, NavLink as H, router as d } from "@base-framework/base";
3
- import { I as f, B as x } from "./buttons-Cm9etaEG.js";
3
+ import { I as f, B as x } from "./buttons-BKLL4I6r.js";
4
4
  import { Icons as r } from "./icons.es.js";
5
5
  class M extends n {
6
6
  /**
@@ -1,5 +1,5 @@
1
- import { A as s, B as t, C as r, w as e, J as i, y as n, z as m, E as l, G as C, D as d, m as S, n as p, O as u, K as D, v as c, c as g, a as F, b as T, Q as P, l as A, g as f, i as w, h as I, j as b, e as y, k as B, F as M, d as k, f as x, L, x as v, M as E, o as N, N as R, P as U, s as h, t as G, S as O, q as j, r as q, T as z, H, I as J, p as K, u as Q } from "./empty-state-Dp-xCh69.js";
2
- import { A as V, P as W, g as X } from "./range-calendar-BxLjYfrT.js";
1
+ import { A as s, B as t, C as r, w as e, J as i, y as n, z as m, E as l, G as C, D as d, m as S, n as p, O as u, K as D, v as c, c as g, a as F, b as T, Q as P, l as A, g as f, i as w, h as I, j as b, e as y, k as B, F as M, d as k, f as x, L, x as v, M as E, o as N, N as R, P as U, s as h, t as G, S as O, q as j, r as q, T as z, H, I as J, p as K, u as Q } from "./empty-state-D-3YYs2T.js";
2
+ import { A as V, P as W, g as X } from "./range-calendar-DW0cMOJy.js";
3
3
  export {
4
4
  s as Alert,
5
5
  V as Avatar,
@@ -1,6 +1,6 @@
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-obojbki5.js";
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-BxLjYfrT.js";
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";
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-7O22-IGI.js";
2
+ import { b as F, C as U, D as G, a as R, F as j, M as q, R as w, c as z, p as A } from "./range-calendar-DW0cMOJy.js";
3
+ import { B as J, I as K, M as Q, d as V, e as X, g as Y, N as Z, b as _, a as $, f as aa, P as ea, c as sa, S as ta, T as oa } from "./mobile-nav-wrapper-C7RyGC5a.js";
4
4
  export {
5
5
  s as BackButton,
6
6
  J as Backdrop,
package/dist/pages.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { B as s, a as P, C as g, F as n, b as l, c as i, M as r, P as c, S as o } from "./sidebar-menu-page-BVryQj2Z.js";
1
+ import { B as s, a as P, C as g, F as n, b as l, c as i, M as r, P as c, S as o } from "./sidebar-menu-page-BtUJdw-T.js";
2
2
  export {
3
3
  s as BasicPage,
4
4
  P as BlankPage,
@@ -1,6 +1,6 @@
1
1
  import { Div as h, Img as _, Span as H, Button as L, OnState as J, On as z } from "@base-framework/atoms";
2
2
  import { Component as O, Data as B, Atom as j, DateTime as T } from "@base-framework/base";
3
- import { B as f } from "./buttons-Cm9etaEG.js";
3
+ import { B as f } from "./buttons-BKLL4I6r.js";
4
4
  import { Icons as P } from "./icons.es.js";
5
5
  const U = (n, t) => {
6
6
  const e = n ? n.getBoundingClientRect() : { top: 0, bottom: 0, left: 0 }, a = t.getBoundingClientRect(), s = 10, r = globalThis.scrollX, c = globalThis.scrollY;
@@ -1,7 +1,7 @@
1
1
  import { Div as t, Header as n, H1 as d, P as o } from "@base-framework/atoms";
2
2
  import { F as l, A as h } from "./aside-template-McEj_Gxc.js";
3
3
  import { Component as x, Atom as i } from "@base-framework/base";
4
- import { c as u, e as p } from "./mobile-nav-wrapper-Dj67Pb8l.js";
4
+ import { c as u, e as p } from "./mobile-nav-wrapper-C7RyGC5a.js";
5
5
  class c extends x {
6
6
  /**
7
7
  * This will declare the props for the compiler.
@@ -1,10 +1,10 @@
1
1
  import { Button as k, Div as o, On as v, Span as D, Th as O, UseParent as F, I as E, Thead as Q, Tr as X, Table as L, P as p, Li as S, Time as q, Nav as I, Ul as w, Section as z, Canvas as K } from "@base-framework/atoms";
2
2
  import { Atom as d, Component as h, Data as C, DateTime as G, router as y, NavLink as $, DataTracker as N, Jot as V, base as M, Dom as R } from "@base-framework/base";
3
- import { B as T, I as _ } from "./buttons-Cm9etaEG.js";
3
+ import { B as T, I as _ } from "./buttons-BKLL4I6r.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-DscqfC6k.js";
7
- import { A as oe, P as le } from "./range-calendar-BxLjYfrT.js";
6
+ import { C as ae, I as ie, H as ne } from "./inputs-CGtqFgi8.js";
7
+ import { A as oe, P as le } from "./range-calendar-DW0cMOJy.js";
8
8
  d((t, e) => ({
9
9
  class: "flex items-center px-4 py-2",
10
10
  ...t,
@@ -1,7 +1,7 @@
1
1
  import { Span as c, Legend as b, Fieldset as C, Div as l, UseParent as u, Input as x } 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-tVDPinrr.js";
4
- import { f as h, e as y, g as k } from "./inputs-DscqfC6k.js";
4
+ import { f as h, e as y, g as k } from "./inputs-CGtqFgi8.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 bg-input";
10
+ export const borderClass: "rounded-md border border-border 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 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";
30
+ export const commonInputClasses: "flex h-10 w-full px-3 py-2 text-sm rounded-md border border-border 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.266",
3
+ "version": "1.0.268",
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": {