@base-framework/ui 1.0.267 → 1.0.269

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";
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-Cok_NM7z.js";
2
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-DYxmO1rQ.js";
5
5
  export {
6
6
  e as Badge,
7
7
  d as Button,
package/dist/index.es.js CHANGED
@@ -1,11 +1,11 @@
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";
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-Cok_NM7z.js";
2
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-DYxmO1rQ.js";
5
5
  import { Icons as G } from "./icons.es.js";
6
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
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-BRxjdz83.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-BXbbFwMm.js";
9
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
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";
@@ -1,29 +1,29 @@
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
- import { Jot as k, Atom as s } from "@base-framework/base";
1
+ import { Div as u, Label as h, Checkbox as m, Span as $, OnState as p, I as x, Input as r, Textarea as k } from "@base-framework/atoms";
2
+ import { Jot as g, 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 I = "flex h-10 w-full px-3 py-2 text-sm", n = "rounded-md border border-border bg-input", o = "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 ring-offset-background", a = "disabled:cursor-not-allowed disabled:opacity-50 [&:user-invalid]:border-destructive", l = "placeholder:text-muted-foreground", f = `${I} ${n} ${o} ${l} ${a}`, C = ({ id: e, checked: c, bind: t, required: d }) => m({
5
5
  id: e,
6
6
  cache: "checkbox",
7
7
  class: "absolute opacity-0 w-full h-full cursor-pointer pointer-events-none",
8
8
  aria: {
9
9
  checked: ["checked"]
10
10
  },
11
- required: a,
12
- checked: o,
11
+ required: d,
12
+ checked: c,
13
13
  bind: t
14
- }), C = () => m({ class: "absolute text-xs pointer-events-none" }, [
15
- g(
14
+ }), v = () => $({ class: "absolute text-xs pointer-events-none" }, [
15
+ p(
16
16
  "checked",
17
- (e) => e ? p({
17
+ (e) => e ? x({
18
18
  class: "w-2 h-2 pointer-events-none",
19
19
  html: y.check
20
20
  }) : null
21
21
  )
22
- ]), w = ({ id: e, bind: o, checked: t, required: a, clickHandler: h }) => l({
22
+ ]), w = ({ id: e, bind: c, checked: t, required: d, clickHandler: b }) => u({
23
23
  class: `relative flex items-center justify-center w-5 h-5 transition-colors duration-200 hover:border-accent-foreground
24
24
  rounded-md border
25
- ${n}
26
- ${i}`.trim(),
25
+ ${o}
26
+ ${a}`.trim(),
27
27
  onState: [
28
28
  "checked",
29
29
  {
@@ -37,15 +37,15 @@ const v = "flex h-10 w-full px-3 py-2 text-sm", $ = "rounded-md border bg-input"
37
37
  checked: ["checked"]
38
38
  },
39
39
  tabIndex: 0,
40
- click: h
40
+ click: b
41
41
  }, [
42
- I({ bind: o, checked: t, id: e, required: a }),
43
- C()
44
- ]), T = ({ id: e, label: o, clickHandler: t }) => d({
42
+ C({ bind: c, checked: t, id: e, required: d }),
43
+ v()
44
+ ]), T = ({ id: e, label: c, clickHandler: t }) => h({
45
45
  class: "text-base cursor-pointer",
46
46
  htmlFor: e,
47
47
  click: t
48
- }, o), L = k(
48
+ }, c), L = g(
49
49
  {
50
50
  /**
51
51
  * This will initialize the state of the checkbox.
@@ -82,8 +82,8 @@ const v = "flex h-10 w-full px-3 py-2 text-sm", $ = "rounded-md border bg-input"
82
82
  * @returns {object}
83
83
  */
84
84
  render() {
85
- const e = this.getId(), o = (t) => this.clickHandler(t);
86
- return l({ class: `flex items-center space-x-2 cursor-pointer ${this.class || ""}` }, [
85
+ const e = this.getId(), c = (t) => this.clickHandler(t);
86
+ return u({ class: `flex items-center space-x-2 cursor-pointer ${this.class || ""}` }, [
87
87
  w({
88
88
  id: e,
89
89
  // @ts-ignore
@@ -93,10 +93,10 @@ const v = "flex h-10 w-full px-3 py-2 text-sm", $ = "rounded-md border bg-input"
93
93
  // @ts-ignore
94
94
  required: this.required,
95
95
  // @ts-ignore
96
- clickHandler: o
96
+ clickHandler: c
97
97
  }),
98
98
  // @ts-ignore
99
- this.label && T({ id: e, label: this.label, clickHandler: o })
99
+ this.label && T({ id: e, label: this.label, clickHandler: c })
100
100
  ]);
101
101
  }
102
102
  }
@@ -105,12 +105,12 @@ const v = "flex h-10 w-full px-3 py-2 text-sm", $ = "rounded-md border bg-input"
105
105
  const t = e.replace(/\D/g, "").match(/^(\d{0,3})(\d{0,3})(\d{0,4})$/);
106
106
  return t ? t[2] ? `(${t[1]}) ${t[2]}${t[3] ? "-" + t[3] : ""}` : t[1] || "" : e;
107
107
  }, D = (e) => {
108
- const o = e.target, t = H(o.value);
109
- t && (o.value = t);
110
- }, c = s((e) => r({
108
+ const c = e.target, t = H(c.value);
109
+ t && (c.value = t);
110
+ }, i = s((e) => r({
111
111
  ...e,
112
- class: `${b} ${e.class || ""}`.trim()
113
- })), M = s((e) => c({
112
+ class: `${f} ${e.class || ""}`.trim()
113
+ })), M = s((e) => i({
114
114
  ...e,
115
115
  type: "tel",
116
116
  name: e.name || "Phone",
@@ -118,73 +118,73 @@ const v = "flex h-10 w-full px-3 py-2 text-sm", $ = "rounded-md border bg-input"
118
118
  placeholder: "(555) 555-5555",
119
119
  pattern: e.pattern || "\\(\\d{3}\\) \\d{3}-\\d{4}",
120
120
  keyup: D
121
- })), S = s((e) => c({
121
+ })), S = s((e) => i({
122
122
  ...e,
123
123
  type: "email",
124
124
  name: e.name || "Email",
125
125
  label: e.label || "Email",
126
126
  placeholder: "Email address"
127
- })), q = s((e) => x({
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 bg-input ${n} ${f} ${i} ${e.class || ""}`.trim()
131
- })), R = (e = {}) => l({ class: "flex items-center space-x-2" }, [
130
+ class: `flex w-full h-24 px-3 py-2 text-sm ${n} ${o} ${l} ${a} ${e.class || ""}`.trim()
131
+ })), R = (e = {}) => u({ class: "flex items-center space-x-2" }, [
132
132
  r({
133
133
  ...e,
134
134
  type: "radio",
135
135
  class: "cursor-pointer appearance-none h-4 w-4 border rounded-full checked:border-primary checked:bg-primary focus:ring focus:ring-primary".trim()
136
136
  }),
137
- e.label && d({ forHTML: e.value, class: "cursor-pointer" }, e.label)
137
+ e.label && h({ forHTML: e.value, class: "cursor-pointer" }, e.label)
138
138
  ]), U = s((e) => r({
139
139
  ...e,
140
140
  type: "date",
141
- 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()
141
+ class: `${n} ${o} ${l} ${a} px-3 py-2 text-sm ring-offset-background ${e.class || ""}`.trim()
142
142
  })), W = s((e) => r({
143
143
  ...e,
144
144
  type: "time",
145
- 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()
145
+ class: `${n} ${o} ${l} ${a} px-3 py-2 text-sm ring-offset-background ${e.class || ""}`.trim()
146
146
  })), j = s((e) => r({
147
147
  ...e,
148
148
  type: "datetime-local",
149
- 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()
149
+ class: `${n} ${o} ${l} ${a} px-3 py-2 text-sm ring-offset-background ${e.class || ""}`.trim()
150
150
  })), z = s((e) => r({
151
151
  ...e,
152
152
  type: "month",
153
- 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()
153
+ class: `${n} ${o} ${l} ${a} px-3 py-2 text-sm ring-offset-background ${e.class || ""}`.trim()
154
154
  })), A = s((e) => r({
155
155
  ...e,
156
156
  type: "week",
157
- 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()
158
- })), B = s((e) => c({
157
+ class: `${n} ${o} ${l} ${a} px-3 py-2 text-sm ring-offset-background ${e.class || ""}`.trim()
158
+ })), B = s((e) => i({
159
159
  ...e,
160
160
  type: "number"
161
- })), J = s((e) => c({
161
+ })), J = s((e) => i({
162
162
  ...e,
163
163
  type: "password"
164
164
  }));
165
- s((e) => c({
165
+ s((e) => i({
166
166
  ...e,
167
167
  type: "search"
168
168
  }));
169
- const O = s((e) => c({
169
+ const O = s((e) => i({
170
170
  ...e,
171
171
  type: "url"
172
- })), G = s((e) => c({
172
+ })), G = s((e) => i({
173
173
  ...e,
174
174
  type: "hidden"
175
175
  })), K = s((e) => r({
176
176
  ...e,
177
177
  type: "color",
178
- class: `border rounded-md bg-input text-foreground p-0 disabled:cursor-not-allowed disabled:opacity-50 ${e.class || ""}`.trim()
178
+ class: `${n} text-foreground p-0 ${a} ${e.class || ""}`.trim()
179
179
  }));
180
- s((e) => u({
180
+ s((e) => m({
181
181
  ...e,
182
- class: `flex h-4 w-4 rounded-md border bg-input text-foreground ${n} ${i} ${e.class || ""}`.trim()
182
+ class: `flex h-4 w-4 text-foreground ${n} ${o} ${a} ${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,
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,
@@ -192,7 +192,7 @@ export {
192
192
  S as E,
193
193
  Q as F,
194
194
  G as H,
195
- c as I,
195
+ i as I,
196
196
  z as M,
197
197
  B as N,
198
198
  J as P,
@@ -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,
209
- b as g
207
+ a as e,
208
+ o as f,
209
+ f as g
210
210
  };
@@ -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-BRxjdz83.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-BXbbFwMm.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-DW0cMOJy.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-C7RyGC5a.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-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";
6
+ import { C as ae, I as ie, H as ne } from "./inputs-DYxmO1rQ.js";
7
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",
@@ -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-DYxmO1rQ.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.267",
3
+ "version": "1.0.269",
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": {