@base-framework/ui 1.0.268 → 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 +2 -2
- package/dist/index.es.js +3 -3
- package/dist/{inputs-CGtqFgi8.js → inputs-DYxmO1rQ.js} +45 -45
- package/dist/organisms.es.js +1 -1
- package/dist/{signature-panel-7O22-IGI.js → signature-panel-BXbbFwMm.js} +1 -1
- package/dist/{tooltip-05O5vIt1.js → tooltip-Cok_NM7z.js} +1 -1
- package/package.json +1 -1
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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
|
|
2
|
-
import { Jot as
|
|
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
|
|
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:
|
|
12
|
-
checked:
|
|
11
|
+
required: d,
|
|
12
|
+
checked: c,
|
|
13
13
|
bind: t
|
|
14
|
-
}),
|
|
15
|
-
|
|
14
|
+
}), v = () => $({ class: "absolute text-xs pointer-events-none" }, [
|
|
15
|
+
p(
|
|
16
16
|
"checked",
|
|
17
|
-
(e) => e ?
|
|
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:
|
|
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
|
-
${
|
|
26
|
-
${
|
|
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 border-bo
|
|
|
37
37
|
checked: ["checked"]
|
|
38
38
|
},
|
|
39
39
|
tabIndex: 0,
|
|
40
|
-
click:
|
|
40
|
+
click: b
|
|
41
41
|
}, [
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
]), T = ({ id: e, label:
|
|
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
|
-
},
|
|
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 border-bo
|
|
|
82
82
|
* @returns {object}
|
|
83
83
|
*/
|
|
84
84
|
render() {
|
|
85
|
-
const e = this.getId(),
|
|
86
|
-
return
|
|
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 border-bo
|
|
|
93
93
|
// @ts-ignore
|
|
94
94
|
required: this.required,
|
|
95
95
|
// @ts-ignore
|
|
96
|
-
clickHandler:
|
|
96
|
+
clickHandler: c
|
|
97
97
|
}),
|
|
98
98
|
// @ts-ignore
|
|
99
|
-
this.label && T({ id: e, label: this.label, clickHandler:
|
|
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 border-bo
|
|
|
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
|
|
109
|
-
t && (
|
|
110
|
-
},
|
|
108
|
+
const c = e.target, t = H(c.value);
|
|
109
|
+
t && (c.value = t);
|
|
110
|
+
}, i = s((e) => r({
|
|
111
111
|
...e,
|
|
112
112
|
class: `${f} ${e.class || ""}`.trim()
|
|
113
|
-
})), M = s((e) =>
|
|
113
|
+
})), M = s((e) => i({
|
|
114
114
|
...e,
|
|
115
115
|
type: "tel",
|
|
116
116
|
name: e.name || "Phone",
|
|
@@ -118,68 +118,68 @@ const v = "flex h-10 w-full px-3 py-2 text-sm", $ = "rounded-md border border-bo
|
|
|
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) =>
|
|
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) =>
|
|
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
|
|
131
|
-
})), R = (e = {}) =>
|
|
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 &&
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
158
|
-
})), B = s((e) =>
|
|
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) =>
|
|
161
|
+
})), J = s((e) => i({
|
|
162
162
|
...e,
|
|
163
163
|
type: "password"
|
|
164
164
|
}));
|
|
165
|
-
s((e) =>
|
|
165
|
+
s((e) => i({
|
|
166
166
|
...e,
|
|
167
167
|
type: "search"
|
|
168
168
|
}));
|
|
169
|
-
const O = s((e) =>
|
|
169
|
+
const O = s((e) => i({
|
|
170
170
|
...e,
|
|
171
171
|
type: "url"
|
|
172
|
-
})), G = s((e) =>
|
|
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:
|
|
178
|
+
class: `${n} text-foreground p-0 ${a} ${e.class || ""}`.trim()
|
|
179
179
|
}));
|
|
180
|
-
s((e) =>
|
|
180
|
+
s((e) => m({
|
|
181
181
|
...e,
|
|
182
|
-
class: `flex h-4 w-4
|
|
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,
|
|
@@ -192,7 +192,7 @@ export {
|
|
|
192
192
|
S as E,
|
|
193
193
|
Q as F,
|
|
194
194
|
G as H,
|
|
195
|
-
|
|
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
|
-
|
|
208
|
-
|
|
207
|
+
a as e,
|
|
208
|
+
o as f,
|
|
209
209
|
f as g
|
|
210
210
|
};
|
package/dist/organisms.es.js
CHANGED
|
@@ -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-
|
|
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-
|
|
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-
|
|
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",
|
package/package.json
CHANGED