@base-framework/ui 1.0.52 → 1.0.54
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/{calendar-PB6ymJ8S.js → calendar-B1Xo1swq.js} +19 -19
- package/dist/{confirmation-Drz3H-3y.js → confirmation-Cg0cRcMv.js} +1 -1
- package/dist/index.es.js +5 -5
- package/dist/{inputs-CzHSmZKP.js → inputs-DmJuUwS9.js} +3 -3
- package/dist/molecules.es.js +2 -2
- package/dist/organisms.es.js +2 -2
- package/dist/{signature-panel-DVFpUbvC.js → signature-panel-BISINi5D.js} +2 -2
- package/dist/{tooltip-JULShdSj.js → tooltip-DSfp01wQ.js} +1 -1
- package/dist/types/components/atoms/form/inputs/input-classes.d.ts +2 -2
- package/package.json +1 -1
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-
|
|
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-DSfp01wQ.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-
|
|
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";
|
|
4
4
|
import { V as W, a as w } from "./veil-gN57SpXV.js";
|
|
5
5
|
export {
|
|
6
6
|
e as Badge,
|
|
@@ -3,8 +3,8 @@ import { Component as N, Data as z, Atom as k, DateTime as j } from "@base-frame
|
|
|
3
3
|
import { B as A } from "./buttons-CVEwmPAi.js";
|
|
4
4
|
import { Icons as P } from "./icons.es.js";
|
|
5
5
|
const W = (e, t) => {
|
|
6
|
-
const n = e ? e.getBoundingClientRect() : { top: 0, bottom: 0, left: 0 }, s = t.getBoundingClientRect(), o = 10,
|
|
7
|
-
let c = n.left +
|
|
6
|
+
const n = e ? e.getBoundingClientRect() : { top: 0, bottom: 0, left: 0 }, s = t.getBoundingClientRect(), o = 10, a = window.scrollX, l = window.scrollY;
|
|
7
|
+
let c = n.left + a, f = n.bottom + l;
|
|
8
8
|
const h = window.innerHeight - n.bottom, d = n.top;
|
|
9
9
|
return c + s.width > window.innerWidth && (c = window.innerWidth - s.width - o), h < s.height && d > h ? f = n.top + l - s.height - o : h < s.height && (f = n.bottom + l - (s.height - h) - o), { x: c, y: f };
|
|
10
10
|
};
|
|
@@ -52,7 +52,7 @@ class lt extends N {
|
|
|
52
52
|
const t = this.getSize();
|
|
53
53
|
return i({
|
|
54
54
|
class: `absolute inset-auto fadeIn mt-2 rounded-md p-0 shadow-lg bg-popover min-h-12 backdrop:bg-transparent text-inherit r z-30 ${t}`,
|
|
55
|
-
|
|
55
|
+
popover: "manual",
|
|
56
56
|
toggle: (n, { state: s }) => n.newState === "closed" ? s.open = !1 : null,
|
|
57
57
|
style: "top: [[position.y]]px; left: [[position.x]]px"
|
|
58
58
|
}, this.children);
|
|
@@ -173,10 +173,10 @@ const H = k(({ src: e, alt: t }) => e ? I({
|
|
|
173
173
|
]
|
|
174
174
|
);
|
|
175
175
|
}, ct = k(({ src: e, alt: t, fallbackText: n, watcherFallback: s, size: o }) => {
|
|
176
|
-
const
|
|
176
|
+
const a = E(o);
|
|
177
177
|
return i(
|
|
178
178
|
{
|
|
179
|
-
class: `relative flex items-center justify-center ${
|
|
179
|
+
class: `relative flex items-center justify-center ${a}`
|
|
180
180
|
},
|
|
181
181
|
[
|
|
182
182
|
H({ src: e, alt: t }),
|
|
@@ -192,7 +192,7 @@ const H = k(({ src: e, alt: t }) => e ? I({
|
|
|
192
192
|
currentDate: n,
|
|
193
193
|
date: s,
|
|
194
194
|
isToday: o,
|
|
195
|
-
isOutsideMonth:
|
|
195
|
+
isOutsideMonth: a,
|
|
196
196
|
select: l,
|
|
197
197
|
disabled: c
|
|
198
198
|
} = e;
|
|
@@ -200,7 +200,7 @@ const H = k(({ src: e, alt: t }) => e ? I({
|
|
|
200
200
|
{
|
|
201
201
|
class: `
|
|
202
202
|
flex items-center justify-center h-9 w-auto p-0 font-normal text-sm rounded-md
|
|
203
|
-
${V(o, n,
|
|
203
|
+
${V(o, n, a, s)}
|
|
204
204
|
hover:bg-muted/50 hover:text-muted-foreground focus:z-10
|
|
205
205
|
disabled:pointer-events-none disabled:opacity-50
|
|
206
206
|
`,
|
|
@@ -212,9 +212,9 @@ const H = k(({ src: e, alt: t }) => e ? I({
|
|
|
212
212
|
t.toString()
|
|
213
213
|
);
|
|
214
214
|
}, b = (e, t, n, s) => e === s.date && t === s.month && n === s.year, Z = (e, t, n, s = !1) => {
|
|
215
|
-
const { year: o, month:
|
|
216
|
-
for (let
|
|
217
|
-
const u = h -
|
|
215
|
+
const { year: o, month: a } = e, l = p(o, a, e.date), c = new Date(o, a, 1).getDay(), f = new Date(o, a + 1, 0).getDate(), h = new Date(o, a, 0).getDate(), d = [], D = a === 0 ? 11 : a - 1, w = a === 0 ? o - 1 : o;
|
|
216
|
+
for (let r = c - 1; r >= 0; r--) {
|
|
217
|
+
const u = h - r, g = b(u, D, w, t), m = new Date(w, D, u) < new Date(t.year, t.month, t.date), F = s && m;
|
|
218
218
|
d.push(
|
|
219
219
|
C({
|
|
220
220
|
day: u,
|
|
@@ -227,13 +227,13 @@ const H = k(({ src: e, alt: t }) => e ? I({
|
|
|
227
227
|
})
|
|
228
228
|
);
|
|
229
229
|
}
|
|
230
|
-
for (let
|
|
231
|
-
const u = b(
|
|
230
|
+
for (let r = 1; r <= f; r++) {
|
|
231
|
+
const u = b(r, a, o, t), g = new Date(o, a, r) < new Date(t.year, t.month, t.date), m = s && g;
|
|
232
232
|
d.push(
|
|
233
233
|
C({
|
|
234
|
-
day:
|
|
234
|
+
day: r,
|
|
235
235
|
currentDate: l,
|
|
236
|
-
date: p(o,
|
|
236
|
+
date: p(o, a, r),
|
|
237
237
|
isToday: u,
|
|
238
238
|
isOutsideMonth: !1,
|
|
239
239
|
select: n,
|
|
@@ -241,14 +241,14 @@ const H = k(({ src: e, alt: t }) => e ? I({
|
|
|
241
241
|
})
|
|
242
242
|
);
|
|
243
243
|
}
|
|
244
|
-
const y =
|
|
245
|
-
for (let
|
|
246
|
-
const u = b(
|
|
244
|
+
const y = a === 11 ? 0 : a + 1, v = a === 11 ? o + 1 : o, O = (7 - d.length % 7) % 7;
|
|
245
|
+
for (let r = 1; r <= O; r++) {
|
|
246
|
+
const u = b(r, y, v, t), g = new Date(v, y, r) < new Date(t.year, t.month, t.date), m = s && g;
|
|
247
247
|
d.push(
|
|
248
248
|
C({
|
|
249
|
-
day:
|
|
249
|
+
day: r,
|
|
250
250
|
currentDate: l,
|
|
251
|
-
date: p(v, y,
|
|
251
|
+
date: p(v, y, r),
|
|
252
252
|
isToday: u,
|
|
253
253
|
isOutsideMonth: !0,
|
|
254
254
|
select: n,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Div as n, H5 as _, P as b, I as f, Li as O, Span as a, Ul as V, Button as h, OnState as v, Label as R, Form as W, H2 as B, Header as $, Footer as M, A as Y, H3 as G, Checkbox as J, Nav as K, Input as C, Time as Q, Dialog as X } from "@base-framework/atoms";
|
|
2
2
|
import { Atom as c, Component as p, Html as L, Dom as Z, base as ee, Data as k, Builder as q, Jot as S, DateTime as A } from "@base-framework/base";
|
|
3
|
-
import { P as D, b as te } from "./calendar-
|
|
3
|
+
import { P as D, b as te } from "./calendar-B1Xo1swq.js";
|
|
4
4
|
import { B as u, I as x } from "./buttons-CVEwmPAi.js";
|
|
5
5
|
import { Icons as d } from "./icons.es.js";
|
|
6
6
|
import { a as w } from "./veil-gN57SpXV.js";
|
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-
|
|
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-DSfp01wQ.js";
|
|
2
2
|
import { B as g, I as C, L as T } from "./buttons-CVEwmPAi.js";
|
|
3
|
-
import { C as D, d as I, D as S, c as b, 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-
|
|
3
|
+
import { C as D, d as I, D as S, c as b, 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";
|
|
4
4
|
import { V as w, a as U } from "./veil-gN57SpXV.js";
|
|
5
5
|
import { Icons as R } from "./icons.es.js";
|
|
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 Ca, p as Ta, q as ca, S as Da, n as Ia, o as Sa, T as ba, x as Ba, y as Pa, m as Fa, r as Ma } from "./confirmation-
|
|
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-
|
|
8
|
-
import { B as Oa, m 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, q as Xa, p as Ya, n as Za, o as $a, T as as, k as ss, U as es, W as os, f as ts, h as rs, i as ns, c as is, d as ls, b as ps, e as us, a as ms, g as ds } from "./signature-panel-
|
|
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 Ca, p as Ta, q as ca, S as Da, n as Ia, o as Sa, T as ba, x as Ba, y as Pa, m as Fa, r as Ma } from "./confirmation-Cg0cRcMv.js";
|
|
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-B1Xo1swq.js";
|
|
8
|
+
import { B as Oa, m 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, q as Xa, p as Ya, n as Za, o as $a, T as as, k as ss, U as es, W as os, f as ts, h as rs, i as ns, c as is, d as ls, b as ps, e as us, a as ms, g as ds } from "./signature-panel-BISINi5D.js";
|
|
9
9
|
import { B as Cs, I as Ts, M as cs, d as Ds, e as Is, g as Ss, N as bs, b as Bs, a as Ps, f as Fs, P as Ms, c as ks, S as Ns, T as vs } from "./mobile-nav-wrapper-BE_hr65B.js";
|
|
10
10
|
import { B as xs, a as hs, C as ys, F as Ws, b as Ls, c as As, M as Hs, P as ws, S as Us } from "./sidebar-menu-page-nCAVFk3R.js";
|
|
11
11
|
import { A as Rs, F as Es, M as Gs, a as Vs, T as js } 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
2
|
import { Jot as y, Atom as t } from "@base-framework/base";
|
|
3
|
-
import { Icons as
|
|
4
|
-
const
|
|
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({
|
|
5
5
|
id: e,
|
|
6
6
|
cache: "checkbox",
|
|
7
7
|
class: "absolute opacity-0 w-full h-full cursor-pointer pointer-events-none",
|
|
@@ -16,7 +16,7 @@ const v = "flex h-10 w-full px-3 py-2 text-sm", b = "rounded-md border border-in
|
|
|
16
16
|
"checked",
|
|
17
17
|
(e) => e ? x({
|
|
18
18
|
class: "w-2 h-2 pointer-events-none",
|
|
19
|
-
html:
|
|
19
|
+
html: v.check
|
|
20
20
|
}) : null
|
|
21
21
|
)
|
|
22
22
|
]), w = ({ id: e, bind: o, checked: s, required: a, clickHandler: m }) => l({
|
package/dist/molecules.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as o, B as t, C as e, z as i, u as r, v as n, w as m, D as l, j as S, k as D, G as c, E as u, s as d, c as g, a as p, b as C, i as F, g as T, e as A, h as P, F as f, d as b, f as w, t as B, M as I, l as M, N as x, P as y, p as k, q as v, S as N, n as h, o as E, T as L, x as U, y as j, m as q, r as z } from "./confirmation-
|
|
2
|
-
import { A as O, P as R, g as _ } from "./calendar-
|
|
1
|
+
import { A as o, B as t, C as e, z as i, u as r, v as n, w as m, D as l, j as S, k as D, G as c, E as u, s as d, c as g, a as p, b as C, i as F, g as T, e as A, h as P, F as f, d as b, f as w, t as B, M as I, l as M, N as x, P as y, p as k, q as v, S as N, n as h, o as E, T as L, x as U, y as j, m as q, r as z } from "./confirmation-Cg0cRcMv.js";
|
|
2
|
+
import { A as O, P as R, g as _ } from "./calendar-B1Xo1swq.js";
|
|
3
3
|
export {
|
|
4
4
|
o as Alert,
|
|
5
5
|
O as Avatar,
|
package/dist/organisms.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as s, m as o, C as t, j as r, D as n, l, H as i, I as d, N as b, O as v, P as g, S as p, q as u, p as N, n as k, o as C, T as D, k as M, U as T, W as c, f as B, h as m, i as y, c as W, d as h, b as H, e as P, a as S, g as f } from "./signature-panel-
|
|
2
|
-
import { b as I, C as L, D as O, a as F, F as U, M as G, c as j, p as q } from "./calendar-
|
|
1
|
+
import { B as s, m as o, C as t, j as r, D as n, l, H as i, I as d, N as b, O as v, P as g, S as p, q as u, p as N, n as k, o as C, T as D, k as M, U as T, W as c, f as B, h as m, i as y, c as W, d as h, b as H, e as P, a as S, g as f } from "./signature-panel-BISINi5D.js";
|
|
2
|
+
import { b as I, C as L, D as O, a as F, F as U, M as G, c as j, p as q } from "./calendar-B1Xo1swq.js";
|
|
3
3
|
import { B as z, I as A, M as E, d as J, e as K, g as Q, N as R, b as V, a as X, f as Y, P as Z, c as _, S as $, T as aa } from "./mobile-nav-wrapper-BE_hr65B.js";
|
|
4
4
|
export {
|
|
5
5
|
s as BackButton,
|
|
@@ -3,8 +3,8 @@ import { Atom as h, Component as u, Data as L, DateTime as G, Jot as R, router a
|
|
|
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 V, List as _, IntervalTimer as J } from "@base-framework/organisms";
|
|
6
|
-
import { C as Z, I as ee, H as te } from "./inputs-
|
|
7
|
-
import { A as se, P as ne } from "./calendar-
|
|
6
|
+
import { C as Z, I as ee, H as te } from "./inputs-DmJuUwS9.js";
|
|
7
|
+
import { A as se, P as ne } from "./calendar-B1Xo1swq.js";
|
|
8
8
|
h((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, 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-gN57SpXV.js";
|
|
4
|
-
import { f as p, e as h, g as y } from "./inputs-
|
|
4
|
+
import { f as p, e as h, g as y } from "./inputs-DmJuUwS9.js";
|
|
5
5
|
const a = {
|
|
6
6
|
gray: {
|
|
7
7
|
backgroundColor: "bg-gray-50",
|
|
@@ -17,7 +17,7 @@ export const focusClass: "focus-visible:outline-none focus-visible:ring-2 focus-
|
|
|
17
17
|
* @constant {string} disabledClass
|
|
18
18
|
* Common classes for disabled state.
|
|
19
19
|
*/
|
|
20
|
-
export const disabledClass: "disabled:cursor-not-allowed disabled:opacity-50";
|
|
20
|
+
export const disabledClass: "disabled:cursor-not-allowed disabled:opacity-50 [&:user-invalid]:border-destructive";
|
|
21
21
|
/**
|
|
22
22
|
* @constant {string} placeholderClass
|
|
23
23
|
* Common classes for placeholder text.
|
|
@@ -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 border-input bg-background 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";
|
|
30
|
+
export const commonInputClasses: "flex h-10 w-full px-3 py-2 text-sm rounded-md border border-input bg-background 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