@base-framework/ui 1.0.7 → 1.0.9
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 +1 -1
- package/dist/buttons-Cw8jPMSs.js +47 -0
- package/dist/{calendar-B5TK6tLi.js → calendar-5zFLxa2M.js} +1 -1
- package/dist/{confirmation-K-Zelv4n.js → confirmation-Ctx1TvbV.js} +64 -64
- package/dist/index.es.js +6 -6
- package/dist/{mobile-nav-wrapper-CguousG5.js → mobile-nav-wrapper-BUiauPhC.js} +1 -1
- package/dist/molecules.es.js +2 -2
- package/dist/organisms.es.js +3 -3
- package/dist/pages.es.js +1 -1
- package/dist/{sidebar-menu-page-kezIms-t.js → sidebar-menu-page-D7d2cfX0.js} +1 -1
- package/dist/{signature-panel-DCDay7u0.js → signature-panel-DFhafzqa.js} +2 -2
- package/package.json +1 -1
- package/dist/icon-B9QUT2NY.js +0 -47
package/dist/atoms.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
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-8F0AEnxf.js";
|
|
2
|
-
import { B as m, I as T, L as c } from "./
|
|
2
|
+
import { B as m, I as T, L as c } from "./buttons-Cw8jPMSs.js";
|
|
3
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-O_WkdbI3.js";
|
|
4
4
|
import { V as W, a as w } from "./veil-DSQdR6CM.js";
|
|
5
5
|
export {
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { I as r, Button as m } from "@base-framework/atoms";
|
|
2
|
+
import { Atom as a } from "@base-framework/base";
|
|
3
|
+
import { Icons as h } from "./icons.es.js";
|
|
4
|
+
const u = {
|
|
5
|
+
xs: "w-4 h-4",
|
|
6
|
+
sm: "w-6 h-6",
|
|
7
|
+
md: "w-8 h-8",
|
|
8
|
+
lg: "w-10 h-10",
|
|
9
|
+
xl: "w-12 h-12",
|
|
10
|
+
"2xl": "w-14 h-14",
|
|
11
|
+
"3xl": "w-16 h-16"
|
|
12
|
+
}, l = a((t, n) => {
|
|
13
|
+
var c;
|
|
14
|
+
const i = u[t.size || "sm"];
|
|
15
|
+
return r({
|
|
16
|
+
...t,
|
|
17
|
+
class: `icon-size ${i} ${t.class || ""}`,
|
|
18
|
+
html: (c = n[0]) == null ? void 0 : c.textContent
|
|
19
|
+
});
|
|
20
|
+
}), s = (t) => a((n, i) => m({
|
|
21
|
+
...t,
|
|
22
|
+
...n,
|
|
23
|
+
class: `bttn ${t.class} ${n.class || ""}`
|
|
24
|
+
}, i)), o = (t) => a((n, i) => m({
|
|
25
|
+
...t,
|
|
26
|
+
...n,
|
|
27
|
+
class: `bttn ${t.class} ${n.class || ""}`
|
|
28
|
+
}, [
|
|
29
|
+
n.icon && n.position !== "right" ? l({ size: "xs", class: n.animation ?? null }, n.icon) : null,
|
|
30
|
+
...i || [],
|
|
31
|
+
n.icon && n.position === "right" ? l({ size: "xs", class: n.animation ?? null }, n.icon) : null
|
|
32
|
+
])), e = {
|
|
33
|
+
primary: s({ class: "primary" }),
|
|
34
|
+
secondary: s({ class: "secondary" }),
|
|
35
|
+
destructive: s({ class: "destructive" }),
|
|
36
|
+
warning: s({ class: "warning" }),
|
|
37
|
+
outline: s({ class: "outline" }),
|
|
38
|
+
ghost: s({ class: "ghost" }),
|
|
39
|
+
link: s({ class: "link" }),
|
|
40
|
+
icon: o({ class: "icon" }),
|
|
41
|
+
withIcon: o({ class: "with-icon" })
|
|
42
|
+
}, w = a((t, n) => (e[t.variant] || e.primary)(t, n)), I = a((t, n) => w({ ...t, variant: "withIcon", icon: h.loading, animation: "animate-spin" }, n));
|
|
43
|
+
export {
|
|
44
|
+
w as B,
|
|
45
|
+
l as I,
|
|
46
|
+
I as L
|
|
47
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Div as l, Img as k, Span as D, Button as F } from "@base-framework/atoms";
|
|
2
2
|
import { Component as $, Data as P, Atom as z, DateTime as O } from "@base-framework/base";
|
|
3
|
-
import { B } from "./
|
|
3
|
+
import { B } from "./buttons-Cw8jPMSs.js";
|
|
4
4
|
import { Icons as v } from "./icons.es.js";
|
|
5
5
|
const I = (t, e) => {
|
|
6
6
|
const n = t ? t.getBoundingClientRect() : { top: 0, bottom: 0, left: 0 }, s = e.getBoundingClientRect(), o = 10, a = window.scrollX, c = window.scrollY;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Div as n, I as
|
|
2
|
-
import { Atom as c, Component as b, Html as L, Dom as Z, base as ee, Data as
|
|
3
|
-
import { P as
|
|
4
|
-
import { B as u, I as
|
|
1
|
+
import { Div as n, I as f, H5 as _, P as p, Li as O, Span as a, Ul as V, Button as h, OnState as v, Label as R, Form as W, H2 as B, Footer as $, Header 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
|
+
import { Atom as c, Component as b, 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-5zFLxa2M.js";
|
|
4
|
+
import { B as u, I as x } from "./buttons-Cw8jPMSs.js";
|
|
5
5
|
import { Icons as d } from "./icons.es.js";
|
|
6
|
-
import { a as
|
|
6
|
+
import { a as w } from "./veil-DSQdR6CM.js";
|
|
7
7
|
import { Timer as se, List as oe, DynamicTime as ne } from "@base-framework/organisms";
|
|
8
8
|
const P = {
|
|
9
9
|
info: {
|
|
@@ -32,7 +32,7 @@ const P = {
|
|
|
32
32
|
iconColor: "text-muted-foreground"
|
|
33
33
|
}
|
|
34
34
|
}, re = (e, t) => n({ class: `flex items-center justify-center h-6 w-6 mr-3 ${t}` }, [
|
|
35
|
-
|
|
35
|
+
f({ html: e })
|
|
36
36
|
]), le = (e) => _({ class: "font-semibold" }, e), ie = (e) => p({ class: "text-sm text-muted-foreground" }, e), ht = c(({ title: e, description: t, icon: s, type: o = "default" }) => {
|
|
37
37
|
const { borderColor: l, bgColor: r, iconColor: i } = P[o] || P.default;
|
|
38
38
|
return n({ class: `flex items-start p-4 border rounded-lg ${r} ${l}` }, [
|
|
@@ -82,7 +82,7 @@ const ce = (e) => a({ class: "ml-auto text-xs tracking-widest opacity-60" }, e),
|
|
|
82
82
|
class: "max-h-60 border rounded-md overflow-y-auto p-1 grid gap-2 divide-y divide-border",
|
|
83
83
|
for: ["groups", (t) => me(t, e)]
|
|
84
84
|
})
|
|
85
|
-
]), ge = ({ label: e, icon: t, toggleDropdown: s }) =>
|
|
85
|
+
]), ge = ({ label: e, icon: t, toggleDropdown: s }) => h({
|
|
86
86
|
cache: "button",
|
|
87
87
|
class: `inline-flex items-center justify-between rounded-md border border-input
|
|
88
88
|
bg-background px-2 py-2 text-sm font-medium hover:bg-muted
|
|
@@ -90,11 +90,11 @@ const ce = (e) => a({ class: "ml-auto text-xs tracking-widest opacity-60" }, e),
|
|
|
90
90
|
click: s
|
|
91
91
|
}, [
|
|
92
92
|
e && a(e),
|
|
93
|
-
t &&
|
|
93
|
+
t && f({ html: t })
|
|
94
94
|
]), pe = ({ onSelect: e }) => n([
|
|
95
|
-
|
|
95
|
+
v(
|
|
96
96
|
"open",
|
|
97
|
-
(t, s, o) => t ? new
|
|
97
|
+
(t, s, o) => t ? new D({
|
|
98
98
|
cache: "dropdown",
|
|
99
99
|
parent: o,
|
|
100
100
|
button: o.button
|
|
@@ -118,7 +118,7 @@ class mt extends b {
|
|
|
118
118
|
* @returns {Data}
|
|
119
119
|
*/
|
|
120
120
|
setData() {
|
|
121
|
-
return new
|
|
121
|
+
return new k({
|
|
122
122
|
groups: this.groups || []
|
|
123
123
|
});
|
|
124
124
|
}
|
|
@@ -183,7 +183,7 @@ const be = c((e, t) => n({ ...e, class: "flex flex-auto flex-col space-y-2" }, t
|
|
|
183
183
|
...e,
|
|
184
184
|
class: "w-full"
|
|
185
185
|
}, l);
|
|
186
|
-
}), ft =
|
|
186
|
+
}), ft = w(
|
|
187
187
|
{
|
|
188
188
|
/**
|
|
189
189
|
* The initial state of the FormField.
|
|
@@ -240,7 +240,7 @@ const be = c((e, t) => n({ ...e, class: "flex flex-auto flex-col space-y-2" }, t
|
|
|
240
240
|
/**
|
|
241
241
|
* Icon
|
|
242
242
|
*/
|
|
243
|
-
o && n({ class: "mr-2 w-12 h-12 rounded-full bg-muted flex flex-none items-center justify-center" }, [
|
|
243
|
+
o && n({ class: "mr-2 w-12 h-12 rounded-full bg-muted flex flex-none items-center justify-center" }, [x(o)]),
|
|
244
244
|
/**
|
|
245
245
|
* Title and Description
|
|
246
246
|
*/
|
|
@@ -413,7 +413,7 @@ class xt extends b {
|
|
|
413
413
|
this.panel.hidePopover(), this.state.open = !1, typeof this.onClose == "function" && this.onClose(), document.documentElement.style.overflowY = "auto";
|
|
414
414
|
}
|
|
415
415
|
}
|
|
416
|
-
const
|
|
416
|
+
const z = {
|
|
417
417
|
info: {
|
|
418
418
|
bgColor: "bg-muted/10",
|
|
419
419
|
borderColor: "border-blue-500",
|
|
@@ -498,7 +498,7 @@ class Me extends ae {
|
|
|
498
498
|
*/
|
|
499
499
|
getTypeStyles() {
|
|
500
500
|
const t = this.type || "default";
|
|
501
|
-
return
|
|
501
|
+
return z[t] || z.default;
|
|
502
502
|
}
|
|
503
503
|
/**
|
|
504
504
|
* This will get the buttons for the notification.
|
|
@@ -522,7 +522,7 @@ class Me extends ae {
|
|
|
522
522
|
getChildren(t) {
|
|
523
523
|
return [
|
|
524
524
|
n({ class: "flex items-start" }, [
|
|
525
|
-
this.icon &&
|
|
525
|
+
this.icon && f({ class: `mr-4 ${t}`, html: this.icon }),
|
|
526
526
|
n({ class: "flex flex-auto flex-col" }, [
|
|
527
527
|
n({ class: "flex flex-auto flex-row items-center w-full pr-12" }, [
|
|
528
528
|
this.title && Ae(this.title)
|
|
@@ -585,7 +585,7 @@ class wt extends b {
|
|
|
585
585
|
this.list.delete(t.id);
|
|
586
586
|
}
|
|
587
587
|
}
|
|
588
|
-
const
|
|
588
|
+
const N = window.matchMedia, I = c(({ value: e, label: t, icon: s }) => h({
|
|
589
589
|
class: 'text-sm gap-1 font-medium leading-none disabled:cursor-not-allowed disabled:opacity-70 flex flex-col items-center justify-between rounded-md border-2 bg-popover p-4 hover:bg-accent hover:text-accent-foreground data-[state="active"]:border-primary [&:has([data-state="active"])]:border-primary',
|
|
590
590
|
onState: ["method", { active: e }],
|
|
591
591
|
dataSet: ["method", ["state", e, "active"]],
|
|
@@ -593,18 +593,18 @@ const z = window.matchMedia, I = c(({ value: e, label: t, icon: s }) => m({
|
|
|
593
593
|
l.method = e, localStorage.setItem("theme", e), e === "system" && localStorage.removeItem("theme"), Pe(e);
|
|
594
594
|
}
|
|
595
595
|
}, [
|
|
596
|
-
|
|
596
|
+
x(s),
|
|
597
597
|
a(t)
|
|
598
598
|
])), Pe = (e) => {
|
|
599
599
|
var o;
|
|
600
600
|
const t = document.documentElement;
|
|
601
|
-
if (e === "system" && (e = (o = window.matchMedia) != null && o.call(window, "(prefers-color-scheme: dark)").matches ? "dark" : "light"),
|
|
601
|
+
if (e === "system" && (e = (o = window.matchMedia) != null && o.call(window, "(prefers-color-scheme: dark)").matches ? "dark" : "light"), N && !N("(prefers-color-scheme: " + e + ")").matches) {
|
|
602
602
|
t.classList.add(e);
|
|
603
603
|
return;
|
|
604
604
|
}
|
|
605
605
|
const s = e === "light" ? "dark" : "light";
|
|
606
606
|
t.classList.remove(s);
|
|
607
|
-
}, yt =
|
|
607
|
+
}, yt = S(
|
|
608
608
|
{
|
|
609
609
|
/**
|
|
610
610
|
* This will render the component.
|
|
@@ -631,7 +631,7 @@ const z = window.matchMedia, I = c(({ value: e, label: t, icon: s }) => m({
|
|
|
631
631
|
};
|
|
632
632
|
}
|
|
633
633
|
}
|
|
634
|
-
), vt =
|
|
634
|
+
), vt = w(
|
|
635
635
|
{
|
|
636
636
|
/**
|
|
637
637
|
* The initial state of the Toggle.
|
|
@@ -658,7 +658,7 @@ const z = window.matchMedia, I = c(({ value: e, label: t, icon: s }) => m({
|
|
|
658
658
|
* @returns {object}
|
|
659
659
|
*/
|
|
660
660
|
render() {
|
|
661
|
-
return
|
|
661
|
+
return h({
|
|
662
662
|
class: "relative inline-flex h-6 w-11 min-w-11 items-center rounded-full bg-muted transition-colors focus:outline-none",
|
|
663
663
|
onState: ["active", { "bg-primary": !0, "bg-muted": !1 }],
|
|
664
664
|
click: (t, { state: s }) => {
|
|
@@ -683,27 +683,27 @@ const z = window.matchMedia, I = c(({ value: e, label: t, icon: s }) => m({
|
|
|
683
683
|
]);
|
|
684
684
|
}
|
|
685
685
|
}
|
|
686
|
-
),
|
|
686
|
+
), y = {
|
|
687
687
|
ONLINE: "online",
|
|
688
688
|
OFFLINE: "offline",
|
|
689
689
|
BUSY: "busy",
|
|
690
690
|
AWAY: "away"
|
|
691
|
-
},
|
|
691
|
+
}, m = {
|
|
692
692
|
ONLINE: "bg-green-500",
|
|
693
693
|
OFFLINE: "bg-gray-500",
|
|
694
694
|
BUSY: "bg-red-500",
|
|
695
695
|
AWAY: "bg-yellow-500"
|
|
696
|
-
},
|
|
697
|
-
class: `absolute bottom-0 right-0 w-3 h-3 border-2 rounded-full ${
|
|
696
|
+
}, ze = (e = "") => (e = e.toUpperCase(), m[e] || m.OFFLINE), Ct = (e) => n({
|
|
697
|
+
class: `absolute bottom-0 right-0 w-3 h-3 border-2 rounded-full ${ze(e)}`
|
|
698
698
|
}), kt = ({ propName: e = "status" } = {}) => n({
|
|
699
699
|
class: "absolute bottom-0 right-0 w-3 h-3 border-2 rounded-full",
|
|
700
700
|
onSet: [e, {
|
|
701
|
-
[
|
|
702
|
-
[
|
|
703
|
-
[
|
|
704
|
-
[
|
|
701
|
+
[m.ONLINE]: y.ONLINE,
|
|
702
|
+
[m.OFFLINE]: y.OFFLINE,
|
|
703
|
+
[m.BUSY]: y.BUSY,
|
|
704
|
+
[m.AWAY]: y.AWAY
|
|
705
705
|
}]
|
|
706
|
-
}),
|
|
706
|
+
}), Ne = (e, t) => Y(
|
|
707
707
|
{
|
|
708
708
|
href: e,
|
|
709
709
|
"aria-current": t === "Breadcrumb" && "page",
|
|
@@ -711,14 +711,14 @@ const z = window.matchMedia, I = c(({ value: e, label: t, icon: s }) => m({
|
|
|
711
711
|
class: "text-muted-foreground font-medium hover:text-foreground"
|
|
712
712
|
},
|
|
713
713
|
[a(t)]
|
|
714
|
-
), Fe = () =>
|
|
714
|
+
), Fe = () => x({
|
|
715
715
|
class: "mx-3 text-muted-foreground",
|
|
716
716
|
"aria-hidden": !0,
|
|
717
717
|
size: "xs"
|
|
718
718
|
}, d.chevron.single.right), Ee = (e) => n({ class: "flex items-center" }, [
|
|
719
|
-
e.href ?
|
|
719
|
+
e.href ? Ne(e.href, e.label) : a(e.label),
|
|
720
720
|
e.separator && Fe()
|
|
721
|
-
]), St =
|
|
721
|
+
]), St = S(
|
|
722
722
|
{
|
|
723
723
|
/**
|
|
724
724
|
* Set initial data
|
|
@@ -726,7 +726,7 @@ const z = window.matchMedia, I = c(({ value: e, label: t, icon: s }) => m({
|
|
|
726
726
|
* @returns {Data}
|
|
727
727
|
*/
|
|
728
728
|
setData() {
|
|
729
|
-
return new
|
|
729
|
+
return new k({
|
|
730
730
|
// @ts-ignore
|
|
731
731
|
items: this.items || []
|
|
732
732
|
});
|
|
@@ -780,7 +780,7 @@ const z = window.matchMedia, I = c(({ value: e, label: t, icon: s }) => m({
|
|
|
780
780
|
]), Ve = (e, t) => Array.from({ length: e }, (s, o) => Oe({
|
|
781
781
|
index: o,
|
|
782
782
|
size: t
|
|
783
|
-
})), Dt =
|
|
783
|
+
})), Dt = S(
|
|
784
784
|
{
|
|
785
785
|
/**
|
|
786
786
|
* Defines component data (props).
|
|
@@ -788,7 +788,7 @@ const z = window.matchMedia, I = c(({ value: e, label: t, icon: s }) => m({
|
|
|
788
788
|
* @returns {Data}
|
|
789
789
|
*/
|
|
790
790
|
setData() {
|
|
791
|
-
return new
|
|
791
|
+
return new k({
|
|
792
792
|
// @ts-ignore
|
|
793
793
|
count: this.count || 4,
|
|
794
794
|
// total dots
|
|
@@ -811,7 +811,7 @@ const z = window.matchMedia, I = c(({ value: e, label: t, icon: s }) => m({
|
|
|
811
811
|
);
|
|
812
812
|
}
|
|
813
813
|
}
|
|
814
|
-
), Ye = ({ toggleDropdown: e }) =>
|
|
814
|
+
), Ye = ({ toggleDropdown: e }) => h(
|
|
815
815
|
{
|
|
816
816
|
cache: "button",
|
|
817
817
|
class: "relative z-[2] inline-flex items-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 border border-input bg-background hover:bg-muted h-10 px-4 py-2 justify-between",
|
|
@@ -819,21 +819,21 @@ const z = window.matchMedia, I = c(({ value: e, label: t, icon: s }) => m({
|
|
|
819
819
|
},
|
|
820
820
|
[
|
|
821
821
|
a({ onState: ["selectedLabel", (t) => t || "Select item..."] }),
|
|
822
|
-
|
|
822
|
+
f({ html: d.chevron.upDown })
|
|
823
823
|
]
|
|
824
824
|
), qe = (e, t, s) => O({
|
|
825
825
|
class: "flex flex-auto items-center cursor-pointer p-2 hover:bg-muted/50 rounded-sm",
|
|
826
826
|
click: () => t(e),
|
|
827
827
|
onState: [s, "selectedValue", { "bg-secondary": e.value }]
|
|
828
828
|
}, [
|
|
829
|
-
e.icon && a({ class: "mr-2 flex items-baseline" }, [
|
|
829
|
+
e.icon && a({ class: "mr-2 flex items-baseline" }, [x({ size: "xs" }, e.icon)]),
|
|
830
830
|
a(e.label)
|
|
831
831
|
]), He = (e, t) => n({ class: "w-full border rounded-md" }, [
|
|
832
832
|
V({ class: "max-h-60 overflow-y-auto p-2 grid gap-1", for: ["items", (s) => qe(s, e, t)] })
|
|
833
833
|
]), Ue = ({ onSelect: e, state: t }) => n({ class: "flex flex-auto flex-col" }, [
|
|
834
|
-
|
|
834
|
+
v(
|
|
835
835
|
"open",
|
|
836
|
-
(s, o, l) => s ? new
|
|
836
|
+
(s, o, l) => s ? new D({
|
|
837
837
|
cache: "dropdown",
|
|
838
838
|
parent: l,
|
|
839
839
|
button: l.button
|
|
@@ -841,7 +841,7 @@ const z = window.matchMedia, I = c(({ value: e, label: t, icon: s }) => m({
|
|
|
841
841
|
He(e, t)
|
|
842
842
|
]) : null
|
|
843
843
|
)
|
|
844
|
-
]), It =
|
|
844
|
+
]), It = S(
|
|
845
845
|
{
|
|
846
846
|
/**
|
|
847
847
|
* This will set up the data.
|
|
@@ -849,7 +849,7 @@ const z = window.matchMedia, I = c(({ value: e, label: t, icon: s }) => m({
|
|
|
849
849
|
* @returns {Data}
|
|
850
850
|
*/
|
|
851
851
|
setData() {
|
|
852
|
-
return new
|
|
852
|
+
return new k({
|
|
853
853
|
// @ts-ignore
|
|
854
854
|
items: this.items || []
|
|
855
855
|
});
|
|
@@ -901,7 +901,7 @@ const z = window.matchMedia, I = c(({ value: e, label: t, icon: s }) => m({
|
|
|
901
901
|
}),
|
|
902
902
|
// Hidden required input for form validation
|
|
903
903
|
// @ts-ignore
|
|
904
|
-
this.required &&
|
|
904
|
+
this.required && C({
|
|
905
905
|
class: "opacity-0 absolute top-0 left-0 z-[1]",
|
|
906
906
|
type: "text",
|
|
907
907
|
// @ts-ignore
|
|
@@ -927,7 +927,7 @@ const z = window.matchMedia, I = c(({ value: e, label: t, icon: s }) => m({
|
|
|
927
927
|
icon: d.circlePlus,
|
|
928
928
|
click: e,
|
|
929
929
|
ariaLabel: "Increment"
|
|
930
|
-
}), We = ({ bind: e, min: t, max: s, readonly: o = !1 }) =>
|
|
930
|
+
}), We = ({ bind: e, min: t, max: s, readonly: o = !1 }) => C({
|
|
931
931
|
value: "[[count]]",
|
|
932
932
|
bind: e,
|
|
933
933
|
blur: (l, { state: r }) => {
|
|
@@ -940,7 +940,7 @@ const z = window.matchMedia, I = c(({ value: e, label: t, icon: s }) => m({
|
|
|
940
940
|
max: s,
|
|
941
941
|
type: "number",
|
|
942
942
|
"aria-label": "Counter"
|
|
943
|
-
}), Tt =
|
|
943
|
+
}), Tt = w(
|
|
944
944
|
{
|
|
945
945
|
/**
|
|
946
946
|
* Initial state for the counter component.
|
|
@@ -974,12 +974,12 @@ const z = window.matchMedia, I = c(({ value: e, label: t, icon: s }) => m({
|
|
|
974
974
|
]);
|
|
975
975
|
}
|
|
976
976
|
}
|
|
977
|
-
), Ge = ({ bind: e, required: t }) =>
|
|
977
|
+
), Ge = ({ bind: e, required: t }) => C({
|
|
978
978
|
cache: "input",
|
|
979
979
|
class: "opacity-0 absolute top-0 left-0 w-full h-full pointer-events-none",
|
|
980
980
|
bind: e,
|
|
981
981
|
required: t
|
|
982
|
-
}), Je = ({ bind: e, required: t, toggleOpen: s }) =>
|
|
982
|
+
}), Je = ({ bind: e, required: t, toggleOpen: s }) => h({
|
|
983
983
|
class: "relative flex items-center gap-2 w-full justify-between border border-input bg-background hover:bg-muted rounded-md h-10 px-4 py-2",
|
|
984
984
|
click: s
|
|
985
985
|
}, [
|
|
@@ -987,11 +987,11 @@ const z = window.matchMedia, I = c(({ value: e, label: t, icon: s }) => m({
|
|
|
987
987
|
a({
|
|
988
988
|
onState: ["selectedDate", (o) => o ? A.format("standard", o) : "Pick a date"]
|
|
989
989
|
}),
|
|
990
|
-
|
|
990
|
+
f({ html: d.calendar.days })
|
|
991
991
|
]), Ke = ({ handleDateSelect: e }) => n({ class: "absolute mt-1 z-10 bg-background rounded-md shadow-lg" }, [
|
|
992
|
-
|
|
992
|
+
v(
|
|
993
993
|
"open",
|
|
994
|
-
(t, s, o) => t ? new
|
|
994
|
+
(t, s, o) => t ? new D({
|
|
995
995
|
cache: "dropdown",
|
|
996
996
|
parent: o,
|
|
997
997
|
button: o.panel,
|
|
@@ -1003,7 +1003,7 @@ const z = window.matchMedia, I = c(({ value: e, label: t, icon: s }) => m({
|
|
|
1003
1003
|
})
|
|
1004
1004
|
]) : null
|
|
1005
1005
|
)
|
|
1006
|
-
]), At =
|
|
1006
|
+
]), At = w(
|
|
1007
1007
|
{
|
|
1008
1008
|
/**
|
|
1009
1009
|
* The initial state of the DatePicker.
|
|
@@ -1056,7 +1056,7 @@ const z = window.matchMedia, I = c(({ value: e, label: t, icon: s }) => m({
|
|
|
1056
1056
|
})
|
|
1057
1057
|
]);
|
|
1058
1058
|
function Qe({ bind: e, required: t }) {
|
|
1059
|
-
return
|
|
1059
|
+
return C({
|
|
1060
1060
|
cache: "input",
|
|
1061
1061
|
class: "opacity-0 absolute top-0 left-0 w-full h-full pointer-events-none",
|
|
1062
1062
|
bind: e,
|
|
@@ -1064,7 +1064,7 @@ function Qe({ bind: e, required: t }) {
|
|
|
1064
1064
|
});
|
|
1065
1065
|
}
|
|
1066
1066
|
function Xe({ bind: e, required: t, toggleOpen: s }) {
|
|
1067
|
-
return
|
|
1067
|
+
return h(
|
|
1068
1068
|
{
|
|
1069
1069
|
class: "relative flex items-center gap-2 w-full justify-between border border-input bg-background hover:bg-muted rounded-md h-10 px-4 py-2",
|
|
1070
1070
|
click: s
|
|
@@ -1074,7 +1074,7 @@ function Xe({ bind: e, required: t, toggleOpen: s }) {
|
|
|
1074
1074
|
a({
|
|
1075
1075
|
onState: ["selectedTime", (o) => o || "Pick a time"]
|
|
1076
1076
|
}),
|
|
1077
|
-
|
|
1077
|
+
f({ html: d.clock })
|
|
1078
1078
|
]
|
|
1079
1079
|
);
|
|
1080
1080
|
}
|
|
@@ -1083,7 +1083,7 @@ function T({ items: e, handleTimeSelect: t, state: s, stateValue: o, pad: l = !1
|
|
|
1083
1083
|
{ class: "flex flex-col max-h-[200px] overflow-y-auto" },
|
|
1084
1084
|
e.map((r) => {
|
|
1085
1085
|
let i = l ? r.toString().padStart(2, "0") : r.toString();
|
|
1086
|
-
return
|
|
1086
|
+
return h({
|
|
1087
1087
|
text: i,
|
|
1088
1088
|
class: "hover:bg-muted/50 rounded-md px-2 py-1",
|
|
1089
1089
|
click: () => t({ [o]: i }),
|
|
@@ -1096,9 +1096,9 @@ function Ze({ handleTimeSelect: e }) {
|
|
|
1096
1096
|
return n(
|
|
1097
1097
|
{ class: "absolute mt-1 z-10 bg-background rounded-md shadow-lg" },
|
|
1098
1098
|
[
|
|
1099
|
-
|
|
1099
|
+
v(
|
|
1100
1100
|
"open",
|
|
1101
|
-
(t, s, o) => t ? new
|
|
1101
|
+
(t, s, o) => t ? new D(
|
|
1102
1102
|
{
|
|
1103
1103
|
cache: "dropdown",
|
|
1104
1104
|
parent: o,
|
|
@@ -1158,7 +1158,7 @@ function E(e) {
|
|
|
1158
1158
|
meridian: r
|
|
1159
1159
|
});
|
|
1160
1160
|
}
|
|
1161
|
-
const $t =
|
|
1161
|
+
const $t = w(
|
|
1162
1162
|
{
|
|
1163
1163
|
/**
|
|
1164
1164
|
* The initial shallow state of the TimePicker.
|
|
@@ -1219,7 +1219,7 @@ const $t = x(
|
|
|
1219
1219
|
}
|
|
1220
1220
|
}
|
|
1221
1221
|
), et = (e, t) => n({ class: `hidden md:flex items-start justify-center w-6 h-6 mr-3 ${t}` }, [
|
|
1222
|
-
|
|
1222
|
+
x({ size: "lg" }, e)
|
|
1223
1223
|
]), tt = ({ title: e }) => M({ class: "flex flex-auto items-center" }, [
|
|
1224
1224
|
B({ class: "text-lg font-semibold" }, e)
|
|
1225
1225
|
]), st = c((e, t) => X(
|
|
@@ -1402,9 +1402,9 @@ export {
|
|
|
1402
1402
|
vt as m,
|
|
1403
1403
|
Ct as n,
|
|
1404
1404
|
kt as o,
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1405
|
+
y as p,
|
|
1406
|
+
m as q,
|
|
1407
|
+
ze as r,
|
|
1408
1408
|
Dt as s,
|
|
1409
1409
|
_e as t,
|
|
1410
1410
|
We as u,
|
package/dist/index.es.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
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-8F0AEnxf.js";
|
|
2
|
-
import { B as g, I as C, L as T } from "./
|
|
2
|
+
import { B as g, I as C, L as T } from "./buttons-Cw8jPMSs.js";
|
|
3
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-O_WkdbI3.js";
|
|
4
4
|
import { V as w, a as U } from "./veil-DSQdR6CM.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-
|
|
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-
|
|
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-
|
|
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-Ctx1TvbV.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-5zFLxa2M.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-DFhafzqa.js";
|
|
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-BUiauPhC.js";
|
|
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-D7d2cfX0.js";
|
|
11
11
|
import { A as Rs, F as Es, M as Gs, a as Vs, T as js } from "./aside-template-D0KANPjh.js";
|
|
12
12
|
import { B as zs } from "./bside-template-CDbINL4X.js";
|
|
13
13
|
export {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { I as b, Label as w, Span as S, Ul as o, H4 as N, Nav as d, Div as l, Header as B, H1 as L, H3 as p, OnState as C } from "@base-framework/atoms";
|
|
2
2
|
import { Component as n, Atom as i, NavLink as y, router as u } from "@base-framework/base";
|
|
3
|
-
import { I as h, B as f } from "./
|
|
3
|
+
import { I as h, B as f } from "./buttons-Cw8jPMSs.js";
|
|
4
4
|
import { Icons as r } from "./icons.es.js";
|
|
5
5
|
class I extends n {
|
|
6
6
|
/**
|
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-Ctx1TvbV.js";
|
|
2
|
+
import { A as O, P as R, g as _ } from "./calendar-5zFLxa2M.js";
|
|
3
3
|
export {
|
|
4
4
|
o as Alert,
|
|
5
5
|
O as Avatar,
|
package/dist/organisms.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
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-
|
|
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-
|
|
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-DFhafzqa.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-5zFLxa2M.js";
|
|
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-BUiauPhC.js";
|
|
4
4
|
export {
|
|
5
5
|
s as BackButton,
|
|
6
6
|
z as Backdrop,
|
package/dist/pages.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as s, a as P, C as g, F as n, b as l, c as i, M as r, P as c, S as o } from "./sidebar-menu-page-
|
|
1
|
+
import { B as s, a as P, C as g, F as n, b as l, c as i, M as r, P as c, S as o } from "./sidebar-menu-page-D7d2cfX0.js";
|
|
2
2
|
export {
|
|
3
3
|
s as BasicPage,
|
|
4
4
|
P as BlankPage,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Div as t, Header as c, H1 as d, P as o } from "@base-framework/atoms";
|
|
2
2
|
import { F as l, A as x } from "./aside-template-D0KANPjh.js";
|
|
3
3
|
import { Component as h, Atom as i } from "@base-framework/base";
|
|
4
|
-
import { c as u, e as p } from "./mobile-nav-wrapper-
|
|
4
|
+
import { c as u, e as p } from "./mobile-nav-wrapper-BUiauPhC.js";
|
|
5
5
|
class n extends h {
|
|
6
6
|
/**
|
|
7
7
|
* This will declare the props for the compiler.
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Button as v, Div as o, On as U, Span as y, Th as P, UseParent as Y, I as E, Thead as F, Tr as H, Table as Q, P as m, Li as D, Time as X, Nav as S, Ul as b, Section as O } from "@base-framework/atoms";
|
|
2
2
|
import { Atom as u, Component as g, Data as L, DateTime as q, Jot as R, router as k, NavLink as M, base as B, Dom as I } from "@base-framework/base";
|
|
3
|
-
import { B as C, I as z } from "./
|
|
3
|
+
import { B as C, I as z } from "./buttons-Cw8jPMSs.js";
|
|
4
4
|
import { Icons as w } from "./icons.es.js";
|
|
5
5
|
import { TableBody as K, List as _, IntervalTimer as G } from "@base-framework/organisms";
|
|
6
6
|
import { C as V, I as J, H as Z } from "./inputs-O_WkdbI3.js";
|
|
7
|
-
import { A as tt, P as et } from "./calendar-
|
|
7
|
+
import { A as tt, P as et } from "./calendar-5zFLxa2M.js";
|
|
8
8
|
u((e, t) => ({
|
|
9
9
|
class: "flex items-center px-4 py-2",
|
|
10
10
|
...e,
|
package/package.json
CHANGED
package/dist/icon-B9QUT2NY.js
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { Button as e, I as c } from "@base-framework/atoms";
|
|
2
|
-
import { Atom as i } from "@base-framework/base";
|
|
3
|
-
import { Icons as h } from "./icons.es.js";
|
|
4
|
-
const s = (t) => i((n, a) => e({
|
|
5
|
-
...t,
|
|
6
|
-
...n,
|
|
7
|
-
class: `bttn ${t.class} ${n.class || ""}`
|
|
8
|
-
}, a)), o = (t) => i((n, a) => e({
|
|
9
|
-
...t,
|
|
10
|
-
...n,
|
|
11
|
-
class: `bttn ${t.class} ${n.class || ""}`
|
|
12
|
-
}, [
|
|
13
|
-
n.icon && n.position !== "right" ? c({ class: n.animation ?? null, html: n.icon }) : null,
|
|
14
|
-
...a || [],
|
|
15
|
-
n.icon && n.position === "right" ? c({ class: n.animation ?? null, html: n.icon }) : null
|
|
16
|
-
])), m = {
|
|
17
|
-
primary: s({ class: "primary" }),
|
|
18
|
-
secondary: s({ class: "secondary" }),
|
|
19
|
-
destructive: s({ class: "destructive" }),
|
|
20
|
-
warning: s({ class: "warning" }),
|
|
21
|
-
outline: s({ class: "outline" }),
|
|
22
|
-
ghost: s({ class: "ghost" }),
|
|
23
|
-
link: s({ class: "link" }),
|
|
24
|
-
icon: o({ class: "icon" }),
|
|
25
|
-
withIcon: o({ class: "with-icon" })
|
|
26
|
-
}, r = i((t, n) => (m[t.variant] || m.primary)(t, n)), I = i((t, n) => r({ ...t, variant: "withIcon", icon: h.loading, animation: "animate-spin" }, n)), u = {
|
|
27
|
-
xs: "w-4 h-4",
|
|
28
|
-
sm: "w-6 h-6",
|
|
29
|
-
md: "w-8 h-8",
|
|
30
|
-
lg: "w-10 h-10",
|
|
31
|
-
xl: "w-12 h-12",
|
|
32
|
-
"2xl": "w-14 h-14",
|
|
33
|
-
"3xl": "w-16 h-16"
|
|
34
|
-
}, $ = i((t, n) => {
|
|
35
|
-
var l;
|
|
36
|
-
const a = u[t.size || "sm"];
|
|
37
|
-
return c({
|
|
38
|
-
...t,
|
|
39
|
-
class: `icon-size ${a} ${t.class || ""}`,
|
|
40
|
-
html: (l = n[0]) == null ? void 0 : l.textContent
|
|
41
|
-
});
|
|
42
|
-
});
|
|
43
|
-
export {
|
|
44
|
-
r as B,
|
|
45
|
-
$ as I,
|
|
46
|
-
I as L
|
|
47
|
-
};
|