@base-framework/ui 1.0.300 → 1.0.301
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/{empty-state-KJX3HcJo.js → empty-state-9BzsaWJW.js} +1 -1
- package/dist/index.es.js +5 -5
- package/dist/{inputs-DJhlHvWE.js → inputs-DYxmO1rQ.js} +24 -24
- package/dist/molecules.es.js +2 -2
- package/dist/organisms.es.js +2 -2
- package/dist/{range-calendar-CcFEHyEp.js → range-calendar-UXMh98a5.js} +2 -2
- package/dist/{signature-panel-C2lrBRBh.js → signature-panel-vkcc6Dnu.js} +38 -38
- package/dist/{tooltip-DD5l7kTI.js → tooltip-fLU0qdFi.js} +2 -2
- 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-fLU0qdFi.js";
|
|
2
2
|
import { B as d, I as m, L as C } from "./buttons-CHEs54Wl.js";
|
|
3
3
|
import { C as x, F as B, V as F, a as c } from "./veil-B1pwIy-D.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,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Div as n, H5 as Q, P as m, I as p, Li as V, Span as a, Ul as q, Button as f, OnState as A, Label as H, H2 as v, Form as X, Header as D, Footer as L, A as Y, H3 as Z, Checkbox as ee, Input as x, Img as te, Nav as se, UseParent as _, OnStateOpen as P, Time as oe, Dialog as ne } from "@base-framework/atoms";
|
|
2
2
|
import { Atom as c, Component as w, Html as M, Dom as le, base as re, Data as I, Builder as W, Jot as C, Events as $, DateTime as F } from "@base-framework/base";
|
|
3
|
-
import { P as k, b as ie, R as ae } from "./range-calendar-
|
|
3
|
+
import { P as k, b as ie, R as ae } from "./range-calendar-UXMh98a5.js";
|
|
4
4
|
import { C as ce, F as ue, a as y } from "./veil-B1pwIy-D.js";
|
|
5
5
|
import { B as h, I as g } from "./buttons-CHEs54Wl.js";
|
|
6
6
|
import { Icons as d } from "./icons.es.js";
|
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-fLU0qdFi.js";
|
|
2
2
|
import { B as d, I as g, L as C } from "./buttons-CHEs54Wl.js";
|
|
3
3
|
import { C as T, F as D, V as I, a as b } from "./veil-B1pwIy-D.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
|
-
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-
|
|
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-
|
|
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-
|
|
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-9BzsaWJW.js";
|
|
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-UXMh98a5.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-vkcc6Dnu.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-CWqhZ0qz.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-UmKsAvjb.js";
|
|
11
11
|
import { A as Xe, F as Ye, M as Ze, a as $e, T as as } from "./aside-template-sUm-F2f0.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Div as u, Label as h, Checkbox 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
2
|
import { Jot as g, Atom as s } from "@base-framework/base";
|
|
3
3
|
import { Icons as y } from "./icons.es.js";
|
|
4
|
-
const I = "flex h-10 w-full px-3 py-2 text-sm",
|
|
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",
|
|
@@ -28,7 +28,7 @@ const I = "flex h-10 w-full px-3 py-2 text-sm", r = "rounded-md border border-bo
|
|
|
28
28
|
"checked",
|
|
29
29
|
{
|
|
30
30
|
"bg-primary": !0,
|
|
31
|
-
"text-foreground": !0,
|
|
31
|
+
"text-primary-foreground": !0,
|
|
32
32
|
"border-primary": !0
|
|
33
33
|
}
|
|
34
34
|
],
|
|
@@ -107,9 +107,9 @@ const I = "flex h-10 w-full px-3 py-2 text-sm", r = "rounded-md border border-bo
|
|
|
107
107
|
}, D = (e) => {
|
|
108
108
|
const c = e.target, t = H(c.value);
|
|
109
109
|
t && (c.value = t);
|
|
110
|
-
}, i = s((e) =>
|
|
110
|
+
}, i = s((e) => r({
|
|
111
111
|
...e,
|
|
112
|
-
class: `${
|
|
112
|
+
class: `${f} ${e.class || ""}`.trim()
|
|
113
113
|
})), M = s((e) => i({
|
|
114
114
|
...e,
|
|
115
115
|
type: "tel",
|
|
@@ -127,34 +127,34 @@ const I = "flex h-10 w-full px-3 py-2 text-sm", r = "rounded-md border border-bo
|
|
|
127
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 ${
|
|
130
|
+
class: `flex w-full h-24 px-3 py-2 text-sm ${n} ${o} ${l} ${a} ${e.class || ""}`.trim()
|
|
131
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
137
|
e.label && h({ forHTML: e.value, class: "cursor-pointer" }, e.label)
|
|
138
|
-
]), U = s((e) =>
|
|
138
|
+
]), U = s((e) => r({
|
|
139
139
|
...e,
|
|
140
140
|
type: "date",
|
|
141
|
-
class: `${
|
|
142
|
-
})), W = s((e) =>
|
|
141
|
+
class: `${n} ${o} ${l} ${a} px-3 py-2 text-sm ring-offset-background ${e.class || ""}`.trim()
|
|
142
|
+
})), W = s((e) => r({
|
|
143
143
|
...e,
|
|
144
144
|
type: "time",
|
|
145
|
-
class: `${
|
|
146
|
-
})), j = s((e) =>
|
|
145
|
+
class: `${n} ${o} ${l} ${a} px-3 py-2 text-sm ring-offset-background ${e.class || ""}`.trim()
|
|
146
|
+
})), j = s((e) => r({
|
|
147
147
|
...e,
|
|
148
148
|
type: "datetime-local",
|
|
149
|
-
class: `${
|
|
150
|
-
})), z = s((e) =>
|
|
149
|
+
class: `${n} ${o} ${l} ${a} px-3 py-2 text-sm ring-offset-background ${e.class || ""}`.trim()
|
|
150
|
+
})), z = s((e) => r({
|
|
151
151
|
...e,
|
|
152
152
|
type: "month",
|
|
153
|
-
class: `${
|
|
154
|
-
})), A = s((e) =>
|
|
153
|
+
class: `${n} ${o} ${l} ${a} px-3 py-2 text-sm ring-offset-background ${e.class || ""}`.trim()
|
|
154
|
+
})), A = s((e) => r({
|
|
155
155
|
...e,
|
|
156
156
|
type: "week",
|
|
157
|
-
class: `${
|
|
157
|
+
class: `${n} ${o} ${l} ${a} px-3 py-2 text-sm ring-offset-background ${e.class || ""}`.trim()
|
|
158
158
|
})), B = s((e) => i({
|
|
159
159
|
...e,
|
|
160
160
|
type: "number"
|
|
@@ -172,19 +172,19 @@ const O = s((e) => i({
|
|
|
172
172
|
})), G = s((e) => i({
|
|
173
173
|
...e,
|
|
174
174
|
type: "hidden"
|
|
175
|
-
})), K = s((e) =>
|
|
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 text-foreground ${
|
|
182
|
+
class: `flex h-4 w-4 text-foreground ${n} ${o} ${a} ${e.class || ""}`.trim()
|
|
183
183
|
}));
|
|
184
|
-
const E = "file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground", Q = s((e) =>
|
|
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: `${
|
|
187
|
+
class: `${f} ${E} ${e.class || ""}`.trim()
|
|
188
188
|
}));
|
|
189
189
|
export {
|
|
190
190
|
L as C,
|
|
@@ -206,5 +206,5 @@ export {
|
|
|
206
206
|
K as d,
|
|
207
207
|
a as e,
|
|
208
208
|
o as f,
|
|
209
|
-
|
|
209
|
+
f as g
|
|
210
210
|
};
|
package/dist/molecules.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as s, B as t, C as r, w as e, J as i, y as n, z as m, E as l, G as C, D as d, m as S, n as p, O as u, K as D, v as c, c as g, a as F, b as T, Q as P, l as A, g as f, i as w, h as I, j as b, e as y, k as B, F as M, d as k, f as x, L, x as v, M as E, o as N, N as R, P as U, s as h, t as G, S as O, q as j, r as q, T as z, H, I as J, p as K, u as Q } from "./empty-state-
|
|
2
|
-
import { A as V, P as W, g as X } from "./range-calendar-
|
|
1
|
+
import { A as s, B as t, C as r, w as e, J as i, y as n, z as m, E as l, G as C, D as d, m as S, n as p, O as u, K as D, v as c, c as g, a as F, b as T, Q as P, l as A, g as f, i as w, h as I, j as b, e as y, k as B, F as M, d as k, f as x, L, x as v, M as E, o as N, N as R, P as U, s as h, t as G, S as O, q as j, r as q, T as z, H, I as J, p as K, u as Q } from "./empty-state-9BzsaWJW.js";
|
|
2
|
+
import { A as V, P as W, g as X } from "./range-calendar-UXMh98a5.js";
|
|
3
3
|
export {
|
|
4
4
|
s as Alert,
|
|
5
5
|
V as Avatar,
|
package/dist/organisms.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
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-
|
|
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-
|
|
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-vkcc6Dnu.js";
|
|
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-UXMh98a5.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-CWqhZ0qz.js";
|
|
4
4
|
export {
|
|
5
5
|
s as BackButton,
|
|
@@ -205,7 +205,7 @@ const q = j(({ src: n, alt: t }) => n ? _({
|
|
|
205
205
|
a.substring(0, 3)
|
|
206
206
|
)
|
|
207
207
|
)
|
|
208
|
-
), D = (n) => (n *= 1, n < 10 ? `0${n}` : String(n)), nt = (n) => (n.indexOf("T") === -1 && n.indexOf(" ") === -1 && (n += "T00:00:01"), n.replace(" ", "T"), n), w = (n, t, e) => `${n}-${D(t + 1)}-${D(e)}`, at = (n) => n ? "bg-accent text-primary" : "", st = (n) => n ? "text-muted-foreground opacity-50" : "", rt = (n, t) => n === t, ot = (n, t) => rt(n, t) ? "bg-primary text-foreground" : "", it = (n, t, e, a) => {
|
|
208
|
+
), D = (n) => (n *= 1, n < 10 ? `0${n}` : String(n)), nt = (n) => (n.indexOf("T") === -1 && n.indexOf(" ") === -1 && (n += "T00:00:01"), n.replace(" ", "T"), n), w = (n, t, e) => `${n}-${D(t + 1)}-${D(e)}`, at = (n) => n ? "bg-accent text-primary" : "", st = (n) => n ? "text-muted-foreground opacity-50" : "", rt = (n, t) => n === t, ot = (n, t) => rt(n, t) ? "bg-primary text-primary-foreground" : "", it = (n, t, e, a) => {
|
|
209
209
|
const s = ot(t, a);
|
|
210
210
|
return s || (n ? at(n) : e ? st(e) : "text-foreground");
|
|
211
211
|
}, N = (n) => {
|
|
@@ -518,7 +518,7 @@ const W = ({ label: n, click: t }) => f(
|
|
|
518
518
|
["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"].map(ft)
|
|
519
519
|
), yt = ({ day: n, iso: t, disabled: e, isStart: a, isEnd: s, isBetween: r, isOtherMonth: c, click: i }) => {
|
|
520
520
|
let d = "ghost", g = "";
|
|
521
|
-
return a || s ? (d = "default", g = "bg-primary text-foreground hover:bg-primary/90") : r && (g = "bg-accent text-accent-foreground hover:bg-accent/80"), e && (g += " opacity-50 cursor-not-allowed"), c && (g += " text-muted-foreground opacity-50"), f(
|
|
521
|
+
return a || s ? (d = "default", g = "bg-primary text-primary-foreground hover:bg-primary/90") : r && (g = "bg-accent text-accent-foreground hover:bg-accent/80"), e && (g += " opacity-50 cursor-not-allowed"), c && (g += " text-muted-foreground opacity-50"), f(
|
|
522
522
|
{
|
|
523
523
|
class: `flex items-center justify-center p-0 text-sm font-medium rounded-md transition-colors ${g}`,
|
|
524
524
|
variant: d,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Button as x, Div as o, On as v, Span as D, Th as O, UseParent as F, I as E, Thead as Q, Tr as X, Table as I, P as p, Li as S, Time as q, Nav as C, Ul as w, Section as z, Canvas as K } from "@base-framework/atoms";
|
|
2
|
-
import { Atom as d, Component as u, Data as L, DateTime as G, router as
|
|
2
|
+
import { Atom as d, Component as u, Data as L, DateTime as G, router as b, NavLink as $, DataTracker as N, Jot as V, base as M, Dom as R } from "@base-framework/base";
|
|
3
3
|
import { B as T, I as _ } from "./buttons-CHEs54Wl.js";
|
|
4
4
|
import { Icons as k } 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-
|
|
7
|
-
import { A as oe, P as le } from "./range-calendar-
|
|
6
|
+
import { C as ae, I as ie, H as ne } from "./inputs-DYxmO1rQ.js";
|
|
7
|
+
import { A as oe, P as le } from "./range-calendar-UXMh98a5.js";
|
|
8
8
|
d((t, e) => ({
|
|
9
9
|
class: "flex items-center px-4 py-2",
|
|
10
10
|
...t,
|
|
@@ -88,23 +88,23 @@ const re = (t) => {
|
|
|
88
88
|
class: `
|
|
89
89
|
px-2 py-1 text-center rounded-md
|
|
90
90
|
${n ? "bg-accent text-accent-foreground" : ""}
|
|
91
|
-
hover:bg-primary hover:text-foreground
|
|
91
|
+
hover:bg-primary hover:text-primary-foreground
|
|
92
92
|
`,
|
|
93
93
|
click: () => i(a, s)
|
|
94
94
|
});
|
|
95
|
-
},
|
|
96
|
-
const s = new Date(t, e, 1).getDay(), a = new Date(t, e + 1, 0).getDate(), i = de(t, e, s), n = Array.from({ length: a }, (h,
|
|
95
|
+
}, me = (t, e) => {
|
|
96
|
+
const s = new Date(t, e, 1).getDay(), a = new Date(t, e + 1, 0).getDate(), i = de(t, e, s), n = Array.from({ length: a }, (h, g) => new Date(t, e, g + 1)), l = (i.length + n.length) % 7, c = l === 0 ? 0 : 7 - l, r = he(t, e, c), f = [...i, ...n, ...r], m = [];
|
|
97
97
|
for (let h = 0; h < f.length; h += 7) {
|
|
98
|
-
const
|
|
99
|
-
|
|
98
|
+
const g = f.slice(h, h + 7), y = g.find((Y) => Y) || new Date(t, e, 1), { weekNumber: A, year: U } = ce(y);
|
|
99
|
+
m.push({
|
|
100
100
|
weekNumber: A,
|
|
101
101
|
year: U,
|
|
102
|
-
days:
|
|
102
|
+
days: g
|
|
103
103
|
});
|
|
104
104
|
}
|
|
105
|
-
return
|
|
106
|
-
},
|
|
107
|
-
const { year: i, month: n, currentDate: l } = a, c =
|
|
105
|
+
return m;
|
|
106
|
+
}, ge = ({ selectWeek: t }) => v("month", (e, s, { data: a }) => {
|
|
107
|
+
const { year: i, month: n, currentDate: l } = a, c = me(i, n);
|
|
108
108
|
return o(
|
|
109
109
|
{ class: "grid grid-cols-8 gap-1 text-sm px-4 py-2" },
|
|
110
110
|
[
|
|
@@ -120,7 +120,7 @@ const re = (t) => {
|
|
|
120
120
|
),
|
|
121
121
|
// Render each "week" row
|
|
122
122
|
...c.map(
|
|
123
|
-
({ weekNumber: r, days: f, year:
|
|
123
|
+
({ weekNumber: r, days: f, year: m }) => o({
|
|
124
124
|
class: "grid grid-cols-8 col-span-8 items-center ring-primary rounded-sm px-1",
|
|
125
125
|
onSet: ["currentWeek", {
|
|
126
126
|
ring: r
|
|
@@ -129,10 +129,10 @@ const re = (t) => {
|
|
|
129
129
|
// Left column: ISO week number
|
|
130
130
|
o({
|
|
131
131
|
class: "font-medium text-center col-span-1 rounded-sm cursor-pointer",
|
|
132
|
-
click: () => t(r,
|
|
132
|
+
click: () => t(r, m),
|
|
133
133
|
// If you have a 'currentWeek' state, you can highlight it with 'onSet'
|
|
134
134
|
onSet: ["currentWeek", {
|
|
135
|
-
"text-foreground": r,
|
|
135
|
+
"text-primary-foreground": r,
|
|
136
136
|
"bg-primary": r
|
|
137
137
|
}],
|
|
138
138
|
text: r ? `W${r}` : ""
|
|
@@ -290,7 +290,7 @@ class ot extends u {
|
|
|
290
290
|
next: () => this.goToNextMonth(),
|
|
291
291
|
previous: () => this.goToPreviousMonth()
|
|
292
292
|
}),
|
|
293
|
-
|
|
293
|
+
ge({
|
|
294
294
|
selectWeek: (e, s) => this.selectWeek(e, s)
|
|
295
295
|
})
|
|
296
296
|
]);
|
|
@@ -299,9 +299,9 @@ class ot extends u {
|
|
|
299
299
|
const we = (t, e) => {
|
|
300
300
|
const s = t.toggleAllSelectedRows();
|
|
301
301
|
e.state.checked = !s;
|
|
302
|
-
},
|
|
302
|
+
}, ye = (t) => O({ class: `cursor-pointer py-3 px-4 text-base w-10 ${t.class || ""}` }, [
|
|
303
303
|
F((e) => new ae({ class: "mr-2", onChange: (s, a) => we(e, a) }))
|
|
304
|
-
]),
|
|
304
|
+
]), be = ({ align: t, sortable: e, key: s, label: a, sort: i, class: n }) => {
|
|
305
305
|
const l = t || "justify-start";
|
|
306
306
|
return O({
|
|
307
307
|
class: `cursor-pointer py-3 px-4 text-base ${n || ""}`,
|
|
@@ -317,7 +317,7 @@ const we = (t, e) => {
|
|
|
317
317
|
class: "text-muted-foreground border-b",
|
|
318
318
|
map: [
|
|
319
319
|
t.headers,
|
|
320
|
-
(e) => e.label === "checkbox" ?
|
|
320
|
+
(e) => e.label === "checkbox" ? ye({ toggle: t.toggle }) : be({
|
|
321
321
|
align: e.align,
|
|
322
322
|
sortable: e.sortable,
|
|
323
323
|
key: e.key,
|
|
@@ -705,7 +705,7 @@ const rt = d((t) => new Se(
|
|
|
705
705
|
href: e,
|
|
706
706
|
exact: s,
|
|
707
707
|
dataSet: ["selected", ["state", !0, "active"]],
|
|
708
|
-
class: `${a ? "hidden" : "inline-flex"} items-center justify-center whitespace-nowrap px-3 py-1.5 text-sm font-medium transition-all rounded-md focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-ring focus-visible:ring-offset-background hover:bg-primary hover:text-foreground disabled:opacity-50 disabled:pointer-events-none data-[state=active]:bg-primary data-[state=active]:text-foreground data-[state=active]:shadow-sm`
|
|
708
|
+
class: `${a ? "hidden" : "inline-flex"} items-center justify-center whitespace-nowrap px-3 py-1.5 text-sm font-medium transition-all rounded-md focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-ring focus-visible:ring-offset-background hover:bg-primary hover:text-primary-foreground disabled:opacity-50 disabled:pointer-events-none data-[state=active]:bg-primary data-[state=active]:text-primary-foreground data-[state=active]:shadow-sm`
|
|
709
709
|
});
|
|
710
710
|
class dt extends u {
|
|
711
711
|
/**
|
|
@@ -735,7 +735,7 @@ class dt extends u {
|
|
|
735
735
|
class: "flex space-x-4",
|
|
736
736
|
map: [this.options, (e) => this.addLink(e)],
|
|
737
737
|
watch: {
|
|
738
|
-
value: ["[[path]]",
|
|
738
|
+
value: ["[[path]]", b.data],
|
|
739
739
|
callBack: this.updateLinks.bind(this)
|
|
740
740
|
}
|
|
741
741
|
})
|
|
@@ -748,7 +748,7 @@ class dt extends u {
|
|
|
748
748
|
* @returns {void}
|
|
749
749
|
*/
|
|
750
750
|
afterSetup() {
|
|
751
|
-
const e =
|
|
751
|
+
const e = b.data.path;
|
|
752
752
|
this.updateLinks(e);
|
|
753
753
|
}
|
|
754
754
|
/**
|
|
@@ -1076,7 +1076,7 @@ const ze = d(({ index: t, click: e, state: s }, a) => S({
|
|
|
1076
1076
|
$e(t)
|
|
1077
1077
|
]);
|
|
1078
1078
|
}]
|
|
1079
|
-
}),
|
|
1079
|
+
}), mt = V(
|
|
1080
1080
|
{
|
|
1081
1081
|
/**
|
|
1082
1082
|
* This will set up the data object.
|
|
@@ -1198,7 +1198,7 @@ const ze = d(({ index: t, click: e, state: s }, a) => S({
|
|
|
1198
1198
|
}
|
|
1199
1199
|
), je = (t) => S(
|
|
1200
1200
|
{
|
|
1201
|
-
class: "inline-flex flex-auto items-center justify-center whitespace-nowrap rounded-sm text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-primary data-[state=active]:text-foreground data-[state=active]:shadow-sm",
|
|
1201
|
+
class: "inline-flex flex-auto items-center justify-center whitespace-nowrap rounded-sm text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-primary data-[state=active]:text-primary-foreground data-[state=active]:shadow-sm",
|
|
1202
1202
|
dataSet: ["selected", ["state", t.value, "active"]]
|
|
1203
1203
|
},
|
|
1204
1204
|
[
|
|
@@ -1211,7 +1211,7 @@ const ze = d(({ index: t, click: e, state: s }, a) => S({
|
|
|
1211
1211
|
), Ae = (t, e) => (t.callBack = e, je(t)), Ue = (t) => C({ class: `tab items-center justify-center rounded-md bg-muted p-1 text-muted-foreground ${t.class}` }, [
|
|
1212
1212
|
w({ class: "flex flex-auto flex-row", map: [t.options, (e) => Ae(e, t.callBack)] })
|
|
1213
1213
|
]);
|
|
1214
|
-
class
|
|
1214
|
+
class gt extends u {
|
|
1215
1215
|
/**
|
|
1216
1216
|
* This will declare the props for the compiler.
|
|
1217
1217
|
*
|
|
@@ -1300,7 +1300,7 @@ class mt extends u {
|
|
|
1300
1300
|
}
|
|
1301
1301
|
const Ye = (t) => S(
|
|
1302
1302
|
{
|
|
1303
|
-
class: "inline-flex flex-auto items-center justify-center whitespace-nowrap rounded-sm text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-primary data-[state=active]:text-foreground data-[state=active]:shadow-sm",
|
|
1303
|
+
class: "inline-flex flex-auto items-center justify-center whitespace-nowrap rounded-sm text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-primary data-[state=active]:text-primary-foreground data-[state=active]:shadow-sm",
|
|
1304
1304
|
dataSet: ["selected", ["state", t.value, "active"]]
|
|
1305
1305
|
},
|
|
1306
1306
|
[
|
|
@@ -1364,7 +1364,7 @@ const Qe = (t, e) => new RegExp(`${t}($|/|\\.).*`).test(e), Xe = (t, e) => {
|
|
|
1364
1364
|
href: e,
|
|
1365
1365
|
exact: s,
|
|
1366
1366
|
dataSet: ["selected", ["state", !0, "active"]],
|
|
1367
|
-
class: "inline-flex flex-auto items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-primary data-[state=active]:text-foreground data-[state=active]:shadow-sm"
|
|
1367
|
+
class: "inline-flex flex-auto items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-primary data-[state=active]:text-primary-foreground data-[state=active]:shadow-sm"
|
|
1368
1368
|
});
|
|
1369
1369
|
class Ke extends u {
|
|
1370
1370
|
/**
|
|
@@ -1392,7 +1392,7 @@ class Ke extends u {
|
|
|
1392
1392
|
class: "flex flex-auto flex-row",
|
|
1393
1393
|
map: [this.options, (e) => this.addLink(e)],
|
|
1394
1394
|
watch: {
|
|
1395
|
-
value: ["[[path]]",
|
|
1395
|
+
value: ["[[path]]", b.data],
|
|
1396
1396
|
callBack: this.updateLinks.bind(this)
|
|
1397
1397
|
}
|
|
1398
1398
|
})
|
|
@@ -1404,7 +1404,7 @@ class Ke extends u {
|
|
|
1404
1404
|
* @returns {void}
|
|
1405
1405
|
*/
|
|
1406
1406
|
afterSetup() {
|
|
1407
|
-
const e =
|
|
1407
|
+
const e = b.data.path;
|
|
1408
1408
|
this.updateLinks(e);
|
|
1409
1409
|
}
|
|
1410
1410
|
/**
|
|
@@ -1656,8 +1656,8 @@ class Ge extends u {
|
|
|
1656
1656
|
const e = this.canvas, s = this.container, a = R.getSize(s), i = this.targetSize, n = i.width, l = i.height;
|
|
1657
1657
|
let c = n + "px", r = l + "px";
|
|
1658
1658
|
if (this.width = e.width = n, this.height = e.height = l, a.width !== 0 && a.height !== 0) {
|
|
1659
|
-
const f = a.width,
|
|
1660
|
-
c = n *
|
|
1659
|
+
const f = a.width, m = a.height, h = f / n, g = m / l, y = Math.min(h, g);
|
|
1660
|
+
c = n * y + "px", r = l * y + "px";
|
|
1661
1661
|
}
|
|
1662
1662
|
e.style.width = c, e.style.height = r;
|
|
1663
1663
|
}
|
|
@@ -1733,7 +1733,7 @@ class Ge extends u {
|
|
|
1733
1733
|
this.timer.stop(), this.status = "stopped";
|
|
1734
1734
|
}
|
|
1735
1735
|
}
|
|
1736
|
-
class
|
|
1736
|
+
class yt extends u {
|
|
1737
1737
|
/**
|
|
1738
1738
|
* Sets up default properties for the signature panel.
|
|
1739
1739
|
*
|
|
@@ -1813,9 +1813,9 @@ class bt extends u {
|
|
|
1813
1813
|
}
|
|
1814
1814
|
export {
|
|
1815
1815
|
ht as B,
|
|
1816
|
-
|
|
1816
|
+
ye as C,
|
|
1817
1817
|
ke as D,
|
|
1818
|
-
|
|
1818
|
+
be as H,
|
|
1819
1819
|
ft as I,
|
|
1820
1820
|
dt as N,
|
|
1821
1821
|
j as O,
|
|
@@ -1831,17 +1831,17 @@ export {
|
|
|
1831
1831
|
nt as e,
|
|
1832
1832
|
fe as f,
|
|
1833
1833
|
de as g,
|
|
1834
|
-
|
|
1834
|
+
ge as h,
|
|
1835
1835
|
pe as i,
|
|
1836
1836
|
H as j,
|
|
1837
1837
|
lt as k,
|
|
1838
1838
|
ct as l,
|
|
1839
1839
|
ut as m,
|
|
1840
|
-
|
|
1840
|
+
mt as n,
|
|
1841
1841
|
Ne as o,
|
|
1842
|
-
|
|
1842
|
+
gt as p,
|
|
1843
1843
|
pt as q,
|
|
1844
1844
|
Ke as r,
|
|
1845
1845
|
wt as s,
|
|
1846
|
-
|
|
1846
|
+
yt as t
|
|
1847
1847
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Span as c, Legend as b, Fieldset as p, Div as l, UseParent as u, Input as C } from "@base-framework/atoms";
|
|
2
2
|
import { Atom as s, Html as x } from "@base-framework/base";
|
|
3
3
|
import { a as d } from "./veil-B1pwIy-D.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",
|
|
@@ -45,7 +45,7 @@ const a = {
|
|
|
45
45
|
},
|
|
46
46
|
primary: {
|
|
47
47
|
backgroundColor: "bg-primary",
|
|
48
|
-
textColor: "text-foreground",
|
|
48
|
+
textColor: "text-primary-foreground",
|
|
49
49
|
ringColor: "ring-primary/10"
|
|
50
50
|
},
|
|
51
51
|
secondary: {
|
package/package.json
CHANGED