@base-framework/ui 1.0.142 → 1.0.144
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/{calendar-iKHUsnMT.js → calendar-DQXME-2u.js} +23 -25
- package/dist/{confirmation-rV-fIUlY.js → confirmation-DMu4aZ06.js} +1 -1
- package/dist/index.es.js +3 -3
- package/dist/molecules.es.js +2 -2
- package/dist/organisms.es.js +2 -2
- package/dist/{signature-panel-DGIQl6oy.js → signature-panel-C8UM0F7Y.js} +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Div as i, Img as F, Span as M, Button as
|
|
2
|
-
import { Component as N, Data as z, Atom as k, DateTime as
|
|
3
|
-
import { B as
|
|
1
|
+
import { Div as i, Img as F, Span as M, Button as j } from "@base-framework/atoms";
|
|
2
|
+
import { Component as N, Data as z, Atom as k, DateTime as I } from "@base-framework/base";
|
|
3
|
+
import { B as Y } from "./buttons-Cm9etaEG.js";
|
|
4
4
|
import { Icons as T } from "./icons.es.js";
|
|
5
5
|
const W = (e, t) => {
|
|
6
6
|
const s = e ? e.getBoundingClientRect() : { top: 0, bottom: 0, left: 0 }, n = t.getBoundingClientRect(), o = 10, r = globalThis.scrollX, l = globalThis.scrollY;
|
|
@@ -143,11 +143,9 @@ const H = k(({ src: e, alt: t }) => e ? F({
|
|
|
143
143
|
/**
|
|
144
144
|
* If there's an error loading the image, hide it.
|
|
145
145
|
*/
|
|
146
|
-
error: (s) =>
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
}) : null), R = (e) => e && (typeof e != "string" && (e = String(e)), e.split(" ").map((t) => t.charAt(0)).join("")), B = (e) => !e || e.length < 2 ? e : R(e), X = (e) => M({ class: "uppercase" }, [e, (t, s) => {
|
|
150
|
-
console.log(Array.isArray(t), t), s.textContent = B(t);
|
|
146
|
+
error: (s) => s.target.style.display = "none"
|
|
147
|
+
}) : null), R = (e) => e && (Array.isArray(e) && (e = e.join(" ")), typeof e != "string" && (e = String(e)), e.split(" ").map((t) => t.charAt(0)).join("").toUpperCase()), B = (e) => !e || e.length < 2 ? e : R(e), X = (e) => M([e, (t, s) => {
|
|
148
|
+
s.textContent = B(t);
|
|
151
149
|
}]), S = {
|
|
152
150
|
xs: "h-6 w-6",
|
|
153
151
|
sm: "h-8 w-8",
|
|
@@ -193,10 +191,10 @@ const H = k(({ src: e, alt: t }) => e ? F({
|
|
|
193
191
|
L(s, n, o)
|
|
194
192
|
]
|
|
195
193
|
);
|
|
196
|
-
}), x = (e) => (e *= 1, e < 10 ? `0${e}` : String(e)),
|
|
197
|
-
const o =
|
|
198
|
-
return o || (e ?
|
|
199
|
-
},
|
|
194
|
+
}), x = (e) => (e *= 1, e < 10 ? `0${e}` : String(e)), U = (e) => (e.indexOf("T") === -1 && e.indexOf(" ") === -1 && (e += "T00:00:01"), e.replace(" ", "T"), e), m = (e, t, s) => `${e}-${x(t + 1)}-${x(s)}`, q = (e) => e ? "bg-accent text-primary" : "", J = (e) => e ? "text-muted-foreground opacity-50" : "", K = (e, t) => e === t, Q = (e, t) => K(e, t) ? "bg-primary text-primary-foreground" : "", V = (e, t, s, n) => {
|
|
195
|
+
const o = Q(t, n);
|
|
196
|
+
return o || (e ? q(e) : s ? J(s) : "text-foreground");
|
|
197
|
+
}, v = (e) => {
|
|
200
198
|
const {
|
|
201
199
|
day: t,
|
|
202
200
|
currentDate: s,
|
|
@@ -206,7 +204,7 @@ const H = k(({ src: e, alt: t }) => e ? F({
|
|
|
206
204
|
select: l,
|
|
207
205
|
disabled: c
|
|
208
206
|
} = e;
|
|
209
|
-
return
|
|
207
|
+
return j(
|
|
210
208
|
{
|
|
211
209
|
class: `
|
|
212
210
|
flex items-center justify-center h-9 w-auto p-0 font-normal text-sm rounded-md
|
|
@@ -221,12 +219,12 @@ const H = k(({ src: e, alt: t }) => e ? F({
|
|
|
221
219
|
},
|
|
222
220
|
t.toString()
|
|
223
221
|
);
|
|
224
|
-
},
|
|
222
|
+
}, C = (e, t, s, n) => e === n.date && t === n.month && s === n.year, Z = (e, t, s, n = !1) => {
|
|
225
223
|
const { year: o, month: r } = e, l = m(o, r, e.date), c = new Date(o, r, 1).getDay(), f = new Date(o, r + 1, 0).getDate(), h = new Date(o, r, 0).getDate(), d = [], D = r === 0 ? 11 : r - 1, y = r === 0 ? o - 1 : o;
|
|
226
224
|
for (let a = c - 1; a >= 0; a--) {
|
|
227
|
-
const u = h - a, g =
|
|
225
|
+
const u = h - a, g = C(u, D, y, t), p = new Date(y, D, u) < new Date(t.year, t.month, t.date), A = n && p;
|
|
228
226
|
d.push(
|
|
229
|
-
|
|
227
|
+
v({
|
|
230
228
|
day: u,
|
|
231
229
|
currentDate: l,
|
|
232
230
|
date: m(y, D, u),
|
|
@@ -238,9 +236,9 @@ const H = k(({ src: e, alt: t }) => e ? F({
|
|
|
238
236
|
);
|
|
239
237
|
}
|
|
240
238
|
for (let a = 1; a <= f; a++) {
|
|
241
|
-
const u =
|
|
239
|
+
const u = C(a, r, o, t), g = new Date(o, r, a) < new Date(t.year, t.month, t.date), p = n && g;
|
|
242
240
|
d.push(
|
|
243
|
-
|
|
241
|
+
v({
|
|
244
242
|
day: a,
|
|
245
243
|
currentDate: l,
|
|
246
244
|
date: m(o, r, a),
|
|
@@ -253,9 +251,9 @@ const H = k(({ src: e, alt: t }) => e ? F({
|
|
|
253
251
|
}
|
|
254
252
|
const w = r === 11 ? 0 : r + 1, b = r === 11 ? o + 1 : o, O = (7 - d.length % 7) % 7;
|
|
255
253
|
for (let a = 1; a <= O; a++) {
|
|
256
|
-
const u =
|
|
254
|
+
const u = C(a, w, b, t), g = new Date(b, w, a) < new Date(t.year, t.month, t.date), p = n && g;
|
|
257
255
|
d.push(
|
|
258
|
-
|
|
256
|
+
v({
|
|
259
257
|
day: a,
|
|
260
258
|
currentDate: l,
|
|
261
259
|
date: m(b, w, a),
|
|
@@ -270,7 +268,7 @@ const H = k(({ src: e, alt: t }) => e ? F({
|
|
|
270
268
|
}, _ = (e) => i(
|
|
271
269
|
{ class: "flex items-center justify-center h-9 w-auto text-[0.8rem] font-normal text-muted-foreground" },
|
|
272
270
|
e
|
|
273
|
-
), $ = ({ label: e, click: t }) =>
|
|
271
|
+
), $ = ({ label: e, click: t }) => Y(
|
|
274
272
|
{
|
|
275
273
|
class: `
|
|
276
274
|
inline-flex items-center justify-center h-7 w-7 bg-transparent p-0
|
|
@@ -333,7 +331,7 @@ class ut extends N {
|
|
|
333
331
|
* @returns {Date}
|
|
334
332
|
*/
|
|
335
333
|
getSelectedDate(t) {
|
|
336
|
-
const s = this.selectedDate ? new Date(
|
|
334
|
+
const s = this.selectedDate ? new Date(U(this.selectedDate)) : t;
|
|
337
335
|
return new Date(s.getFullYear(), s.getMonth(), s.getDate());
|
|
338
336
|
}
|
|
339
337
|
/**
|
|
@@ -365,7 +363,7 @@ class ut extends N {
|
|
|
365
363
|
* @returns {string}
|
|
366
364
|
*/
|
|
367
365
|
getMonthName(t) {
|
|
368
|
-
return
|
|
366
|
+
return I.monthNames[t];
|
|
369
367
|
}
|
|
370
368
|
/**
|
|
371
369
|
* This will go to the previous month.
|
|
@@ -430,13 +428,13 @@ class ut extends N {
|
|
|
430
428
|
export {
|
|
431
429
|
ct as A,
|
|
432
430
|
Z as C,
|
|
433
|
-
|
|
431
|
+
v as D,
|
|
434
432
|
m as F,
|
|
435
433
|
st as M,
|
|
436
434
|
lt as P,
|
|
437
435
|
_ as a,
|
|
438
436
|
ut as b,
|
|
439
|
-
|
|
437
|
+
U as c,
|
|
440
438
|
W as g,
|
|
441
439
|
x as p
|
|
442
440
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Div as n, H5 as _, P as b, I as g, Li as O, Span as a, Ul as V, Button as m, OnState as v, Label as R, Form as W, H2 as A, Header as B, Footer as M, A as Y, H3 as G, Checkbox as J, Nav as K, Input as C, UseParent as Q, Time as X, Dialog as Z } from "@base-framework/atoms";
|
|
2
2
|
import { Atom as c, Component as p, Html as L, Dom as ee, base as te, Data as k, Builder as H, Jot as S, DateTime as $ } from "@base-framework/base";
|
|
3
|
-
import { P as D, b as se } from "./calendar-
|
|
3
|
+
import { P as D, b as se } from "./calendar-DQXME-2u.js";
|
|
4
4
|
import { B as h, I as x } from "./buttons-Cm9etaEG.js";
|
|
5
5
|
import { Icons as u } from "./icons.es.js";
|
|
6
6
|
import { a as w } from "./veil-D4dRxILB.js";
|
package/dist/index.es.js
CHANGED
|
@@ -3,9 +3,9 @@ import { B as g, I as C, L as T } from "./buttons-Cm9etaEG.js";
|
|
|
3
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 H, W as L } from "./inputs-Dmu4Z-7-.js";
|
|
4
4
|
import { V as w, a as U } from "./veil-D4dRxILB.js";
|
|
5
5
|
import { Icons as O } from "./icons.es.js";
|
|
6
|
-
import { A as G, B as V, C as j, t as q, E as z, v as J, w as _, x as K, D as Q, j as X, k as Y, H as Z, G as $, s as aa, c as sa, a as ea, b as oa, i as ta, g as ra, e as na, h as ia, F as la, d as pa, f as ua, u as ma, M as da, l as ga, N as Ca, P as Ta, p as ca, q as ba, S as Da, n as Sa, o as Ia, T as Ba, y as Pa, z as Fa, m as Ma, r as ka } from "./confirmation-
|
|
7
|
-
import { A as va, b as fa, C as xa, D as ha, a as ya, F as Wa, M as Ha, P as La, c as Aa, g as wa, p as Ua } from "./calendar-
|
|
8
|
-
import { B as Oa, n as Ea, C as Ga, j as Va, D as ja, l as qa, H as za, I as Ja, N as _a, O as Ka, P as Qa, S as Xa, m as Ya, r as Za, q as $a, o as as, p as ss, T as es, k as os, U as ts, W as rs, f as ns, h as is, i as ls, c as ps, d as us, b as ms, e as ds, a as gs, g as Cs } from "./signature-panel-
|
|
6
|
+
import { A as G, B as V, C as j, t as q, E as z, v as J, w as _, x as K, D as Q, j as X, k as Y, H as Z, G as $, s as aa, c as sa, a as ea, b as oa, i as ta, g as ra, e as na, h as ia, F as la, d as pa, f as ua, u as ma, M as da, l as ga, N as Ca, P as Ta, p as ca, q as ba, S as Da, n as Sa, o as Ia, T as Ba, y as Pa, z as Fa, m as Ma, r as ka } from "./confirmation-DMu4aZ06.js";
|
|
7
|
+
import { A as va, b as fa, C as xa, D as ha, a as ya, F as Wa, M as Ha, P as La, c as Aa, g as wa, p as Ua } from "./calendar-DQXME-2u.js";
|
|
8
|
+
import { B as Oa, n as Ea, C as Ga, j as Va, D as ja, l as qa, H as za, I as Ja, N as _a, O as Ka, P as Qa, S as Xa, m as Ya, r as Za, q as $a, o as as, p as ss, T as es, k as os, U as ts, W as rs, f as ns, h as is, i as ls, c as ps, d as us, b as ms, e as ds, a as gs, g as Cs } from "./signature-panel-C8UM0F7Y.js";
|
|
9
9
|
import { B as cs, I as bs, M as Ds, d as Ss, e as Is, g as Bs, N as Ps, b as Fs, a as Ms, f as ks, P as Ns, c as vs, S as fs, T as xs } from "./mobile-nav-wrapper-Dj67Pb8l.js";
|
|
10
10
|
import { B as ys, a as Ws, C as Hs, F as Ls, b as As, c as ws, M as Us, P as Rs, S as Os } from "./sidebar-menu-page-BVryQj2Z.js";
|
|
11
11
|
import { A as Gs, F as Vs, M as js, a as qs, T as zs } from "./aside-template-McEj_Gxc.js";
|
package/dist/molecules.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as o, B as t, C as e, t as i, E as r, v as n, w as m, x as l, D as S, j as u, k as D, H as c, G as C, s as d, c as g, a as p, b as F, i as T, g as A, e as P, h as f, F as w, d as b, f as B, u as I, M, l as x, N as y, P as k, p as v, q as N, S as h, n as E, o as L, T as R, y as U, z as j, m as q, r as z } from "./confirmation-
|
|
2
|
-
import { A as H, P as O, g as _ } from "./calendar-
|
|
1
|
+
import { A as o, B as t, C as e, t as i, E as r, v as n, w as m, x as l, D as S, j as u, k as D, H as c, G as C, s as d, c as g, a as p, b as F, i as T, g as A, e as P, h as f, F as w, d as b, f as B, u as I, M, l as x, N as y, P as k, p as v, q as N, S as h, n as E, o as L, T as R, y as U, z as j, m as q, r as z } from "./confirmation-DMu4aZ06.js";
|
|
2
|
+
import { A as H, P as O, g as _ } from "./calendar-DQXME-2u.js";
|
|
3
3
|
export {
|
|
4
4
|
o as Alert,
|
|
5
5
|
H as Avatar,
|
package/dist/organisms.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
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-
|
|
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-
|
|
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-C8UM0F7Y.js";
|
|
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-DQXME-2u.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-Dj67Pb8l.js";
|
|
4
4
|
export {
|
|
5
5
|
s as BackButton,
|
|
@@ -4,7 +4,7 @@ import { B as C, I as V } from "./buttons-Cm9etaEG.js";
|
|
|
4
4
|
import { Icons as k } from "./icons.es.js";
|
|
5
5
|
import { TableBody as _, ScrollableTableBody as J, List as Z, IntervalTimer as ee } from "@base-framework/organisms";
|
|
6
6
|
import { C as te, I as se, H as ae } from "./inputs-Dmu4Z-7-.js";
|
|
7
|
-
import { A as ie, P as ne } from "./calendar-
|
|
7
|
+
import { A as ie, P as ne } from "./calendar-DQXME-2u.js";
|
|
8
8
|
d((t, e) => ({
|
|
9
9
|
class: "flex items-center px-4 py-2",
|
|
10
10
|
...t,
|
package/package.json
CHANGED