@base-framework/ui 1.0.298 → 1.0.300
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-CJGDcHyo.js → empty-state-KJX3HcJo.js} +21 -21
- package/dist/index.es.js +5 -5
- package/dist/{inputs-DYxmO1rQ.js → inputs-DJhlHvWE.js} +24 -24
- package/dist/molecules.es.js +2 -2
- package/dist/organisms.es.js +2 -2
- package/dist/{range-calendar-UXMh98a5.js → range-calendar-CcFEHyEp.js} +2 -2
- package/dist/{signature-panel-vkcc6Dnu.js → signature-panel-C2lrBRBh.js} +38 -38
- package/dist/{tooltip-fLU0qdFi.js → tooltip-DD5l7kTI.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-DD5l7kTI.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-DJhlHvWE.js";
|
|
5
5
|
export {
|
|
6
6
|
e as Badge,
|
|
7
7
|
d as Button,
|
|
@@ -1,12 +1,12 @@
|
|
|
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-CcFEHyEp.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";
|
|
7
7
|
import { Timer as de, List as he, DynamicTime as fe } from "@base-framework/organisms";
|
|
8
|
-
import { F as
|
|
9
|
-
const
|
|
8
|
+
import { F as E } from "./format-DnofNaaz.js";
|
|
9
|
+
const N = {
|
|
10
10
|
info: {
|
|
11
11
|
borderColor: "border-blue-500",
|
|
12
12
|
bgColor: "bg-muted/10",
|
|
@@ -35,7 +35,7 @@ const z = {
|
|
|
35
35
|
}, me = (e, t) => n({ class: `flex items-center justify-center h-6 w-6 mr-3 ${t}` }, [
|
|
36
36
|
p({ html: e })
|
|
37
37
|
]), pe = (e) => Q({ class: "font-semibold" }, e), ge = (e) => m({ class: "text-sm text-muted-foreground" }, e), kt = c(({ title: e, description: t, icon: s, type: o = "default" }) => {
|
|
38
|
-
const { borderColor: l, bgColor: r, iconColor: i } =
|
|
38
|
+
const { borderColor: l, bgColor: r, iconColor: i } = N[o] || N.default;
|
|
39
39
|
return n({ class: `flex items-start p-4 border rounded-lg ${r} ${l}` }, [
|
|
40
40
|
// Icon and content
|
|
41
41
|
s && me(s, i),
|
|
@@ -437,7 +437,7 @@ class Mt extends w {
|
|
|
437
437
|
this.panel.hidePopover(), this.state.open = !1, typeof this.onClose == "function" && this.onClose(this), document.documentElement.style.overflowY = "auto";
|
|
438
438
|
}
|
|
439
439
|
}
|
|
440
|
-
const
|
|
440
|
+
const z = {
|
|
441
441
|
info: {
|
|
442
442
|
bgColor: "bg-muted/10",
|
|
443
443
|
borderColor: "border-blue-500",
|
|
@@ -463,15 +463,15 @@ const E = {
|
|
|
463
463
|
borderColor: "border",
|
|
464
464
|
iconColor: "text-muted-foreground"
|
|
465
465
|
}
|
|
466
|
-
},
|
|
466
|
+
}, Ee = (e) => D({ class: "flex justify-center" }, [
|
|
467
467
|
Z({ class: "text-lg font-bold mb-0" }, e)
|
|
468
|
-
]),
|
|
468
|
+
]), Ne = c(({ href: e, class: t }, s) => Y({
|
|
469
469
|
class: `bg-popover text-popover-foreground relative flex flex-auto flex-col justify-start shadow-lg pointer-events-auto p-4 border rounded-md min-w-[340px] max-w-[450px] mt-4 ${t}`,
|
|
470
470
|
href: e,
|
|
471
471
|
animateIn: "pullRightIn",
|
|
472
472
|
animateOut: "pullRight",
|
|
473
473
|
role: "alert"
|
|
474
|
-
}, s)),
|
|
474
|
+
}, s)), ze = c(({ close: e, class: t }, s) => n({
|
|
475
475
|
class: `pullRightIn bg-popover text-popover-foreground relative flex flex-auto flex-col justify-start shadow-lg pointer-events-auto p-4 border rounded-md min-w-[340px] max-w-[450px] mt-4 ${t}`,
|
|
476
476
|
click: () => e(),
|
|
477
477
|
animateIn: "pullRightIn",
|
|
@@ -502,10 +502,10 @@ class je extends w {
|
|
|
502
502
|
*/
|
|
503
503
|
render() {
|
|
504
504
|
const { bgColor: t, borderColor: s, iconColor: o } = this.getTypeStyles(), l = this.href || null, r = this.getChildren(o);
|
|
505
|
-
return l ?
|
|
505
|
+
return l ? Ne({
|
|
506
506
|
href: l,
|
|
507
507
|
class: `${t} ${s}`
|
|
508
|
-
}, r) :
|
|
508
|
+
}, r) : ze({
|
|
509
509
|
close: this.close.bind(this),
|
|
510
510
|
class: `${t} ${s}`
|
|
511
511
|
}, r);
|
|
@@ -526,7 +526,7 @@ class je extends w {
|
|
|
526
526
|
*/
|
|
527
527
|
getTypeStyles() {
|
|
528
528
|
const t = this.type || "default";
|
|
529
|
-
return
|
|
529
|
+
return z[t] || z.default;
|
|
530
530
|
}
|
|
531
531
|
/**
|
|
532
532
|
* This will get the buttons for the notification.
|
|
@@ -553,7 +553,7 @@ class je extends w {
|
|
|
553
553
|
this.icon && p({ class: `mr-4 ${t}`, html: this.icon }),
|
|
554
554
|
n({ class: "flex flex-auto flex-col" }, [
|
|
555
555
|
n({ class: "flex flex-auto flex-row items-center w-full pr-12" }, [
|
|
556
|
-
this.title &&
|
|
556
|
+
this.title && Ee(this.title)
|
|
557
557
|
]),
|
|
558
558
|
m({ class: "text-base text-muted-foreground m-0 pr-12" }, this.description),
|
|
559
559
|
(this.primary || this.secondary) && L({ class: "margin-top-24 flex align-center" }, this.getButtons())
|
|
@@ -578,7 +578,7 @@ class je extends w {
|
|
|
578
578
|
}
|
|
579
579
|
}
|
|
580
580
|
let Oe = 0;
|
|
581
|
-
class
|
|
581
|
+
class Et extends w {
|
|
582
582
|
/**
|
|
583
583
|
* This will render the component.
|
|
584
584
|
*
|
|
@@ -610,7 +610,7 @@ class Nt extends w {
|
|
|
610
610
|
* @returns {void}
|
|
611
611
|
*/
|
|
612
612
|
removeNotice(t) {
|
|
613
|
-
this.list.delete(t.id);
|
|
613
|
+
this.list.delete(t.id), this.list.isEmpty() && this.panel.hidePopover();
|
|
614
614
|
}
|
|
615
615
|
}
|
|
616
616
|
const j = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
|
|
@@ -631,7 +631,7 @@ const j = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
|
|
|
631
631
|
}
|
|
632
632
|
const s = e === "light" ? "dark" : "light";
|
|
633
633
|
t.classList.remove(s);
|
|
634
|
-
},
|
|
634
|
+
}, Nt = C(
|
|
635
635
|
{
|
|
636
636
|
/**
|
|
637
637
|
* This will render the component.
|
|
@@ -658,7 +658,7 @@ const j = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
|
|
|
658
658
|
};
|
|
659
659
|
}
|
|
660
660
|
}
|
|
661
|
-
),
|
|
661
|
+
), zt = y(
|
|
662
662
|
{
|
|
663
663
|
/**
|
|
664
664
|
* The initial state of the Toggle.
|
|
@@ -1187,9 +1187,9 @@ const j = globalThis.matchMedia, T = c(({ value: e, label: t, icon: s }) => f({
|
|
|
1187
1187
|
}, [
|
|
1188
1188
|
nt({ bind: e, required: t }),
|
|
1189
1189
|
_(({ state: o }) => [
|
|
1190
|
-
a(
|
|
1190
|
+
a(E.date(["[[start]]", o], "Start Date")),
|
|
1191
1191
|
a(" - "),
|
|
1192
|
-
a(
|
|
1192
|
+
a(E.date(["[[end]]", o], "End Date"))
|
|
1193
1193
|
]),
|
|
1194
1194
|
p({ html: d.calendar.days })
|
|
1195
1195
|
]), rt = ({ handleDateSelect: e, blockPriorDates: t }) => P((s, o, l) => new k({
|
|
@@ -1604,12 +1604,12 @@ export {
|
|
|
1604
1604
|
ht as K,
|
|
1605
1605
|
Ut as L,
|
|
1606
1606
|
Mt as M,
|
|
1607
|
-
|
|
1607
|
+
Et as N,
|
|
1608
1608
|
mt as O,
|
|
1609
1609
|
Ze as P,
|
|
1610
1610
|
Kt as Q,
|
|
1611
1611
|
Lt as S,
|
|
1612
|
-
|
|
1612
|
+
Nt as T,
|
|
1613
1613
|
ye as a,
|
|
1614
1614
|
Dt as b,
|
|
1615
1615
|
Ce as c,
|
|
@@ -1625,7 +1625,7 @@ export {
|
|
|
1625
1625
|
Ft as m,
|
|
1626
1626
|
At as n,
|
|
1627
1627
|
je as o,
|
|
1628
|
-
|
|
1628
|
+
zt as p,
|
|
1629
1629
|
jt as q,
|
|
1630
1630
|
Ot as r,
|
|
1631
1631
|
S as s,
|
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-DD5l7kTI.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-DJhlHvWE.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-KJX3HcJo.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-CcFEHyEp.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-C2lrBRBh.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 f, Span as $, OnState as p, I as x, Input as n, 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", r = "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", m = `${I} ${r} ${o} ${l} ${a}`, C = ({ id: e, checked: c, bind: t, required: d }) => f({
|
|
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", n = "rounded-md border border-bo
|
|
|
28
28
|
"checked",
|
|
29
29
|
{
|
|
30
30
|
"bg-primary": !0,
|
|
31
|
-
"text-
|
|
31
|
+
"text-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", n = "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) => n({
|
|
111
111
|
...e,
|
|
112
|
-
class: `${
|
|
112
|
+
class: `${m} ${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", n = "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 ${r} ${o} ${l} ${a} ${e.class || ""}`.trim()
|
|
131
131
|
})), R = (e = {}) => u({ class: "flex items-center space-x-2" }, [
|
|
132
|
-
|
|
132
|
+
n({
|
|
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) => n({
|
|
139
139
|
...e,
|
|
140
140
|
type: "date",
|
|
141
|
-
class: `${
|
|
142
|
-
})), W = s((e) =>
|
|
141
|
+
class: `${r} ${o} ${l} ${a} px-3 py-2 text-sm ring-offset-background ${e.class || ""}`.trim()
|
|
142
|
+
})), W = s((e) => n({
|
|
143
143
|
...e,
|
|
144
144
|
type: "time",
|
|
145
|
-
class: `${
|
|
146
|
-
})), j = s((e) =>
|
|
145
|
+
class: `${r} ${o} ${l} ${a} px-3 py-2 text-sm ring-offset-background ${e.class || ""}`.trim()
|
|
146
|
+
})), j = s((e) => n({
|
|
147
147
|
...e,
|
|
148
148
|
type: "datetime-local",
|
|
149
|
-
class: `${
|
|
150
|
-
})), z = s((e) =>
|
|
149
|
+
class: `${r} ${o} ${l} ${a} px-3 py-2 text-sm ring-offset-background ${e.class || ""}`.trim()
|
|
150
|
+
})), z = s((e) => n({
|
|
151
151
|
...e,
|
|
152
152
|
type: "month",
|
|
153
|
-
class: `${
|
|
154
|
-
})), A = s((e) =>
|
|
153
|
+
class: `${r} ${o} ${l} ${a} px-3 py-2 text-sm ring-offset-background ${e.class || ""}`.trim()
|
|
154
|
+
})), A = s((e) => n({
|
|
155
155
|
...e,
|
|
156
156
|
type: "week",
|
|
157
|
-
class: `${
|
|
157
|
+
class: `${r} ${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) => n({
|
|
176
176
|
...e,
|
|
177
177
|
type: "color",
|
|
178
|
-
class: `${
|
|
178
|
+
class: `${r} text-foreground p-0 ${a} ${e.class || ""}`.trim()
|
|
179
179
|
}));
|
|
180
|
-
s((e) =>
|
|
180
|
+
s((e) => f({
|
|
181
181
|
...e,
|
|
182
|
-
class: `flex h-4 w-4 text-foreground ${
|
|
182
|
+
class: `flex h-4 w-4 text-foreground ${r} ${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) => n({
|
|
185
185
|
...e,
|
|
186
186
|
type: "file",
|
|
187
|
-
class: `${
|
|
187
|
+
class: `${m} ${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
|
+
m 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-KJX3HcJo.js";
|
|
2
|
+
import { A as V, P as W, g as X } from "./range-calendar-CcFEHyEp.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-C2lrBRBh.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-CcFEHyEp.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-
|
|
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) => {
|
|
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-
|
|
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(
|
|
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 y, 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-DJhlHvWE.js";
|
|
7
|
+
import { A as oe, P as le } from "./range-calendar-CcFEHyEp.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-
|
|
91
|
+
hover:bg-primary hover:text-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
|
+
}, ge = (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, m) => new Date(t, e, m + 1)), l = (i.length + n.length) % 7, c = l === 0 ? 0 : 7 - l, r = he(t, e, c), f = [...i, ...n, ...r], g = [];
|
|
97
97
|
for (let h = 0; h < f.length; h += 7) {
|
|
98
|
-
const
|
|
99
|
-
|
|
98
|
+
const m = f.slice(h, h + 7), b = m.find((Y) => Y) || new Date(t, e, 1), { weekNumber: A, year: U } = ce(b);
|
|
99
|
+
g.push({
|
|
100
100
|
weekNumber: A,
|
|
101
101
|
year: U,
|
|
102
|
-
days:
|
|
102
|
+
days: m
|
|
103
103
|
});
|
|
104
104
|
}
|
|
105
|
-
return
|
|
106
|
-
},
|
|
107
|
-
const { year: i, month: n, currentDate: l } = a, c =
|
|
105
|
+
return g;
|
|
106
|
+
}, me = ({ selectWeek: t }) => v("month", (e, s, { data: a }) => {
|
|
107
|
+
const { year: i, month: n, currentDate: l } = a, c = ge(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: g }) => 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, g),
|
|
133
133
|
// If you have a 'currentWeek' state, you can highlight it with 'onSet'
|
|
134
134
|
onSet: ["currentWeek", {
|
|
135
|
-
"text-
|
|
135
|
+
"text-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
|
+
me({
|
|
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
|
+
}, be = (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
|
+
]), ye = ({ 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" ? be({ toggle: t.toggle }) : ye({
|
|
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-
|
|
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`
|
|
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]]", y.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 = y.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
|
+
}), gt = 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-
|
|
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",
|
|
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 mt extends u {
|
|
1215
1215
|
/**
|
|
1216
1216
|
* This will declare the props for the compiler.
|
|
1217
1217
|
*
|
|
@@ -1300,7 +1300,7 @@ class gt 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-
|
|
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",
|
|
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-
|
|
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"
|
|
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]]", y.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 = y.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, g = a.height, h = f / n, m = g / l, b = Math.min(h, m);
|
|
1660
|
+
c = n * b + "px", r = l * b + "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 bt extends u {
|
|
1737
1737
|
/**
|
|
1738
1738
|
* Sets up default properties for the signature panel.
|
|
1739
1739
|
*
|
|
@@ -1813,9 +1813,9 @@ class yt extends u {
|
|
|
1813
1813
|
}
|
|
1814
1814
|
export {
|
|
1815
1815
|
ht as B,
|
|
1816
|
-
|
|
1816
|
+
be as C,
|
|
1817
1817
|
ke as D,
|
|
1818
|
-
|
|
1818
|
+
ye 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
|
+
me 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
|
+
gt as n,
|
|
1841
1841
|
Ne as o,
|
|
1842
|
-
|
|
1842
|
+
mt as p,
|
|
1843
1843
|
pt as q,
|
|
1844
1844
|
Ke as r,
|
|
1845
1845
|
wt as s,
|
|
1846
|
-
|
|
1846
|
+
bt 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-DJhlHvWE.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-
|
|
48
|
+
textColor: "text-foreground",
|
|
49
49
|
ringColor: "ring-primary/10"
|
|
50
50
|
},
|
|
51
51
|
secondary: {
|
package/package.json
CHANGED