@base-framework/ui 1.0.91 → 1.0.93

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, a as n, F as o, L as p, P as r, R as u, S as I, b as i, T as l } from "./tooltip-Cy5agtG6.js";
1
+ import { B as e, C as t, a as n, F as o, L as p, P as r, R as u, S as I, b as i, T as l } from "./tooltip-DE-UvmQt.js";
2
2
  import { B as m, I as T, L as c } from "./buttons-CVEwmPAi.js";
3
- import { C as B, d as C, D as S, c as g, E as b, F as f, H as h, I as F, M as L, N as P, P as R, R as k, S as D, T as V, a as E, b as H, U as M, W as N } from "./inputs-DmJuUwS9.js";
3
+ import { C as B, d as C, D as S, c as g, E as b, F as f, H as h, I as F, M as L, N as P, P as R, R as k, S as D, T as V, a as E, b as H, U as M, W as N } from "./inputs-nzivW9Dr.js";
4
4
  import { V as W, a as w } from "./veil-D4dRxILB.js";
5
5
  export {
6
6
  e as Badge,
package/dist/index.es.js CHANGED
@@ -1,11 +1,11 @@
1
- import { B as e, C as o, a as t, F as r, L as n, P as i, R as l, S as p, b as u, T as m } from "./tooltip-Cy5agtG6.js";
1
+ import { B as e, C as o, a as t, F as r, L as n, P as i, R as l, S as p, b as u, T as m } from "./tooltip-DE-UvmQt.js";
2
2
  import { B as g, I as T, L as c } from "./buttons-CVEwmPAi.js";
3
- import { C as b, d as D, D as S, c as I, E as B, F as P, H as F, I as M, M as k, N, P as v, R as f, S as x, T as h, a as y, b as W, U as L, W as A } from "./inputs-DmJuUwS9.js";
3
+ import { C as b, d as D, D as S, c as I, E as B, F as P, H as F, I as M, M as k, N, P as v, R as f, S as x, T as h, a as y, b as W, U as L, W as A } from "./inputs-nzivW9Dr.js";
4
4
  import { V as w, a as U } from "./veil-D4dRxILB.js";
5
5
  import { Icons as R } from "./icons.es.js";
6
6
  import { A as G, B as V, C as j, z as q, u as z, v as J, w as _, D as K, j as Q, k as X, G as Y, E as Z, s as $, c as aa, a as sa, b as ea, i as oa, g as ta, e as ra, h as na, F as ia, d as la, f as pa, t as ua, M as ma, l as da, N as ga, P as Ta, p as ca, q as Ca, S as ba, n as Da, o as Sa, T as Ia, x as Ba, y as Pa, m as Fa, r as Ma } from "./confirmation-Co-ayoR2.js";
7
7
  import { A as Na, b as va, C as fa, D as xa, a as ha, F as ya, M as Wa, P as La, c as Aa, g as Ha, p as wa } from "./calendar-BDqm833e.js";
8
- import { B as Oa, n as Ra, C as Ea, j as Ga, D as Va, l as ja, H as qa, I as za, N as Ja, O as _a, P as Ka, S as Qa, m as Xa, r as Ya, q as Za, o as $a, p as as, T as ss, k as es, U as os, W as ts, f as rs, h as ns, i as is, c as ls, d as ps, b as us, e as ms, a as ds, g as gs } from "./signature-panel-CrKk8upb.js";
8
+ import { B as Oa, n as Ra, C as Ea, j as Ga, D as Va, l as ja, H as qa, I as za, N as Ja, O as _a, P as Ka, S as Qa, m as Xa, r as Ya, q as Za, o as $a, p as as, T as ss, k as es, U as os, W as ts, f as rs, h as ns, i as is, c as ls, d as ps, b as us, e as ms, a as ds, g as gs } from "./signature-panel-DNaS6S9p.js";
9
9
  import { B as cs, I as Cs, M as bs, d as Ds, e as Ss, g as Is, N as Bs, b as Ps, a as Fs, f as Ms, P as ks, c as Ns, S as vs, T as fs } from "./mobile-nav-wrapper-BE_hr65B.js";
10
10
  import { B as hs, a as ys, C as Ws, F as Ls, b as As, c as Hs, M as ws, P as Us, S as Os } from "./sidebar-menu-page-nCAVFk3R.js";
11
11
  import { A as Es, F as Gs, M as Vs, a as js, T as qs } from "./aside-template-McEj_Gxc.js";
@@ -1,7 +1,7 @@
1
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";
2
- import { Jot as y, Atom as t } from "@base-framework/base";
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: s, required: a }) => u({
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({
5
5
  id: e,
6
6
  cache: "checkbox",
7
7
  class: "absolute opacity-0 w-full h-full cursor-pointer pointer-events-none",
@@ -10,7 +10,7 @@ const $ = "flex h-10 w-full px-3 py-2 text-sm", b = "rounded-md border border-in
10
10
  },
11
11
  required: a,
12
12
  checked: o,
13
- bind: s
13
+ bind: t
14
14
  }), C = () => g({ class: "absolute text-xs pointer-events-none" }, [
15
15
  p(
16
16
  "checked",
@@ -19,7 +19,7 @@ const $ = "flex h-10 w-full px-3 py-2 text-sm", b = "rounded-md border border-in
19
19
  html: v.check
20
20
  }) : null
21
21
  )
22
- ]), w = ({ id: e, bind: o, checked: s, required: a, clickHandler: m }) => l({
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
25
  ${n}
@@ -39,12 +39,12 @@ const $ = "flex h-10 w-full px-3 py-2 text-sm", b = "rounded-md border border-in
39
39
  tabIndex: 0,
40
40
  click: m
41
41
  }, [
42
- I({ bind: o, checked: s, id: e, required: a }),
42
+ I({ bind: o, checked: t, id: e, required: a }),
43
43
  C()
44
- ]), H = ({ id: e, label: o, clickHandler: s }) => d({
44
+ ]), T = ({ id: e, label: o, clickHandler: t }) => d({
45
45
  class: "text-base cursor-pointer",
46
46
  htmlFor: e,
47
- click: s
47
+ click: t
48
48
  }, o), q = y(
49
49
  {
50
50
  /**
@@ -74,7 +74,7 @@ const $ = "flex h-10 w-full px-3 py-2 text-sm", b = "rounded-md border border-in
74
74
  * @returns {void}
75
75
  */
76
76
  clickHandler(e) {
77
- this.state.toggle("checked"), this.checkbox.checked = this.state.checked, typeof this.onChange == "function" && this.onChange(this.state.checked, this);
77
+ e.preventDefault(), e.stopPropagation(), this.state.toggle("checked"), this.checkbox.checked = this.state.checked, typeof this.onChange == "function" && this.onChange(this.state.checked, this);
78
78
  },
79
79
  /**
80
80
  * This will render the checkbox component.
@@ -82,7 +82,7 @@ const $ = "flex h-10 w-full px-3 py-2 text-sm", b = "rounded-md border border-in
82
82
  * @returns {object}
83
83
  */
84
84
  render() {
85
- const e = this.getId();
85
+ const e = this.getId(), o = (t) => this.clickHandler(t);
86
86
  return l({ class: `flex items-center space-x-2 cursor-pointer ${this.class || ""}` }, [
87
87
  w({
88
88
  id: e,
@@ -93,24 +93,24 @@ const $ = "flex h-10 w-full px-3 py-2 text-sm", b = "rounded-md border border-in
93
93
  // @ts-ignore
94
94
  required: this.required,
95
95
  // @ts-ignore
96
- clickHandler: (o) => this.clickHandler(o)
96
+ clickHandler: o
97
97
  }),
98
98
  // @ts-ignore
99
- this.label && H({ id: e, label: this.label, clickHandler: () => this.clickHandler() })
99
+ this.label && T({ id: e, label: this.label, clickHandler: o })
100
100
  ]);
101
101
  }
102
102
  }
103
- ), T = (e) => {
103
+ ), H = (e) => {
104
104
  if (!e || e.length === 0) return "";
105
- const s = e.replace(/\D/g, "").match(/^(\d{0,3})(\d{0,3})(\d{0,4})$/);
106
- return s ? s[2] ? `(${s[1]}) ${s[2]}${s[3] ? "-" + s[3] : ""}` : s[1] || "" : e;
107
- }, E = (e) => {
108
- const o = e.target, s = T(o.value);
109
- s && (o.value = s);
110
- }, c = t((e) => r({
105
+ const t = e.replace(/\D/g, "").match(/^(\d{0,3})(\d{0,3})(\d{0,4})$/);
106
+ return t ? t[2] ? `(${t[1]}) ${t[2]}${t[3] ? "-" + t[3] : ""}` : t[1] || "" : e;
107
+ }, D = (e) => {
108
+ const o = e.target, t = H(o.value);
109
+ t && (o.value = t);
110
+ }, c = s((e) => r({
111
111
  ...e,
112
112
  class: `${h} ${e.class || ""}`.trim()
113
- })), F = t((e) => c({
113
+ })), F = s((e) => c({
114
114
  ...e,
115
115
  type: "tel",
116
116
  name: e.name || "Phone",
@@ -118,14 +118,14 @@ const $ = "flex h-10 w-full px-3 py-2 text-sm", b = "rounded-md border border-in
118
118
  placeholder: "(555) 555-5555",
119
119
  required: !0,
120
120
  pattern: e.pattern || "\\(\\d{3}\\) \\d{3}-\\d{4}",
121
- keyup: E
122
- })), L = t((e) => c({
121
+ keyup: D
122
+ })), L = s((e) => c({
123
123
  ...e,
124
124
  type: "email",
125
125
  name: e.name || "Email",
126
126
  label: e.label || "Email",
127
127
  placeholder: "Email address"
128
- })), M = t((e) => k({
128
+ })), M = s((e) => k({
129
129
  ...e,
130
130
  as: "textarea",
131
131
  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()
@@ -136,54 +136,54 @@ const $ = "flex h-10 w-full px-3 py-2 text-sm", b = "rounded-md border border-in
136
136
  class: "cursor-pointer appearance-none h-4 w-4 border rounded-full checked:border-primary checked:bg-primary focus:ring focus:ring-primary".trim()
137
137
  }),
138
138
  e.label && d({ forHTML: e.value, class: "cursor-pointer" }, e.label)
139
- ]), U = t((e) => r({
139
+ ]), U = s((e) => r({
140
140
  ...e,
141
141
  type: "date",
142
142
  class: `rounded-md border px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 ${e.class || ""}`.trim()
143
- })), W = t((e) => r({
143
+ })), W = s((e) => r({
144
144
  ...e,
145
145
  type: "time",
146
146
  class: `rounded-md border px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 ${e.class || ""}`.trim()
147
- })), j = t((e) => r({
147
+ })), j = s((e) => r({
148
148
  ...e,
149
149
  type: "datetime-local",
150
150
  class: `rounded-md border px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 ${e.class || ""}`.trim()
151
- })), z = t((e) => r({
151
+ })), z = s((e) => r({
152
152
  ...e,
153
153
  type: "month",
154
154
  class: `rounded-md border px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 ${e.class || ""}`.trim()
155
- })), A = t((e) => r({
155
+ })), A = s((e) => r({
156
156
  ...e,
157
157
  type: "week",
158
158
  class: `rounded-md border px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 ${e.class || ""}`.trim()
159
- })), B = t((e) => c({
159
+ })), B = s((e) => c({
160
160
  ...e,
161
161
  type: "number"
162
- })), J = t((e) => c({
162
+ })), J = s((e) => c({
163
163
  ...e,
164
164
  type: "password"
165
- })), O = t((e) => c({
165
+ })), O = s((e) => c({
166
166
  ...e,
167
167
  type: "search"
168
- })), G = t((e) => c({
168
+ })), G = s((e) => c({
169
169
  ...e,
170
170
  type: "url"
171
- })), K = t((e) => c({
171
+ })), K = s((e) => c({
172
172
  ...e,
173
173
  type: "hidden"
174
- })), Q = t((e) => r({
174
+ })), Q = s((e) => r({
175
175
  ...e,
176
176
  type: "color",
177
177
  class: `border rounded-md border-input bg-background text-foreground p-0 disabled:cursor-not-allowed disabled:opacity-50 ${e.class || ""}`.trim()
178
178
  }));
179
- t((e) => u({
179
+ s((e) => u({
180
180
  ...e,
181
181
  class: `flex h-4 w-4 rounded-md border border-input bg-background text-foreground ${n} ${i} ${e.class || ""}`.trim()
182
182
  }));
183
- const D = "file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground", V = t((e) => r({
183
+ const E = "file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground", V = s((e) => r({
184
184
  ...e,
185
185
  type: "file",
186
- class: `${h} ${D} ${e.class || ""}`.trim()
186
+ class: `${h} ${E} ${e.class || ""}`.trim()
187
187
  }));
188
188
  export {
189
189
  q as C,
@@ -1,4 +1,4 @@
1
- import { B as s, n as o, C as t, j as r, D as l, l as n, H as i, I as b, N as d, O as v, P as g, S as p, m as u, r as N, q as k, o as D, p as C, T, k as c, U as M, W as B, f as m, h as y, i as W, c as h, d as H, b as P, e as S, a as f, g as x } from "./signature-panel-CrKk8upb.js";
1
+ import { B as s, n as o, C as t, j as r, D as l, l as n, H as i, I as b, N as d, O as v, P as g, S as p, m as u, r as N, q as k, o as D, p as C, T, k as c, U as M, W as B, f as m, h as y, i as W, c as h, d as H, b as P, e as S, a as f, g as x } from "./signature-panel-DNaS6S9p.js";
2
2
  import { b as L, C as O, D as F, a as U, F as G, M as j, c as q, p as w } from "./calendar-BDqm833e.js";
3
3
  import { B as A, I as E, M as J, d as K, e as Q, g as R, N as V, b as X, a as Y, f as Z, P as _, c as $, S as aa, T as ea } from "./mobile-nav-wrapper-BE_hr65B.js";
4
4
  export {
@@ -3,7 +3,7 @@ import { Atom as d, Component as h, Data as L, DateTime as G, router as x, NavLi
3
3
  import { B as C, I as N } from "./buttons-CVEwmPAi.js";
4
4
  import { Icons as w } from "./icons.es.js";
5
5
  import { TableBody as _, ScrollableTableBody as J, List as Z, IntervalTimer as ee } from "@base-framework/organisms";
6
- import { C as te, I as se, H as ae } from "./inputs-DmJuUwS9.js";
6
+ import { C as te, I as se, H as ae } from "./inputs-nzivW9Dr.js";
7
7
  import { A as ie, P as ne } from "./calendar-BDqm833e.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 c, Div as l, Legend as b, Fieldset as f, Input as x } from "@base-framework/atoms";
2
2
  import { Atom as s, Html as C } from "@base-framework/base";
3
3
  import { a as u } from "./veil-D4dRxILB.js";
4
- import { f as p, e as h, g as y } from "./inputs-DmJuUwS9.js";
4
+ import { f as p, e as h, g as y } from "./inputs-nzivW9Dr.js";
5
5
  const a = {
6
6
  gray: {
7
7
  backgroundColor: "bg-gray-50",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@base-framework/ui",
3
- "version": "1.0.91",
3
+ "version": "1.0.93",
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": {