@base-framework/ui 1.1.6 → 1.1.7
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-B-FvkS9B.js +77 -0
- package/dist/{empty-state-BAt7uqpS.js → empty-state-DvkT6uAo.js} +2 -2
- package/dist/index.es.js +6 -6
- package/dist/{mobile-nav-wrapper-0spFaaUM.js → mobile-nav-wrapper-B7hEJ4r-.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/{range-calendar-D0oOkFj5.js → range-calendar-CAa8ly0W.js} +1 -1
- package/dist/{sidebar-menu-page-BCrAhhN_.js → sidebar-menu-page-KZXiQy6q.js} +1 -1
- package/dist/{signature-panel-DAhBQ_J_.js → signature-panel-D38xgifi.js} +2 -2
- package/package.json +1 -1
- package/dist/buttons-CfwtbIR-.js +0 -61
package/dist/atoms.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { B as e, C as t, F as o, L as r, P as n, R as p, S as I, a as u, T as i } from "./tooltip-BlFbB8yL.js";
|
|
2
|
-
import { B as d, I as m, L as x } from "./buttons-
|
|
2
|
+
import { B as d, I as m, L as x } from "./buttons-B-FvkS9B.js";
|
|
3
3
|
import { C as T, F as g } from "./form-group-BB7dLJir.js";
|
|
4
4
|
import { C as F, a as c, D as f, b as L, E as P, F as R, H as S, I as b, M as h, N as k, P as D, R as V, T as E, c as G, d as H, U as M, W as N } from "./inputs-CcimrM1k.js";
|
|
5
5
|
import { I as W, V as w, a as J } from "./image-BB__4s0g.js";
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { I as m, Button as l } from "@base-framework/atoms";
|
|
2
|
+
import { Atom as i } from "@base-framework/base";
|
|
3
|
+
import { Icons as u } from "./icons.es.js";
|
|
4
|
+
const g = {
|
|
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
|
+
}, a = i((n, t) => {
|
|
13
|
+
const s = g[n.size || "sm"];
|
|
14
|
+
return m({
|
|
15
|
+
...n,
|
|
16
|
+
class: `stroke-current icon-size ${s} ${n.class || ""}`,
|
|
17
|
+
html: t[0]?.textContent
|
|
18
|
+
});
|
|
19
|
+
}), c = (n) => i((t, s) => l({
|
|
20
|
+
...n,
|
|
21
|
+
...t,
|
|
22
|
+
class: `bttn ${n.class} ${t.class || ""}`
|
|
23
|
+
}, s)), h = i(
|
|
24
|
+
(n, t) => l({
|
|
25
|
+
...n,
|
|
26
|
+
class: n.class
|
|
27
|
+
}, [
|
|
28
|
+
n.icon && n.position !== "right" ? a({ size: "sm", class: n.animation ?? null }, n.icon) : null,
|
|
29
|
+
...t || [],
|
|
30
|
+
n.icon && n.position === "right" ? a({ size: "sm", class: n.animation ?? null }, n.icon) : null
|
|
31
|
+
])
|
|
32
|
+
), e = (n) => i((t, s) => h({
|
|
33
|
+
...n,
|
|
34
|
+
...t,
|
|
35
|
+
class: `bttn ${n.class} ${t.class || ""}`
|
|
36
|
+
}, s)), w = (n) => () => {
|
|
37
|
+
if (n.allowHistory === !0 && globalThis.history.length > 2) {
|
|
38
|
+
globalThis.history.back();
|
|
39
|
+
return;
|
|
40
|
+
}
|
|
41
|
+
n.backUrl && app.navigate(n.backUrl);
|
|
42
|
+
}, b = (n) => i((t, s) => (t.icon = t.icon || u.arrows.left, t.click = t.click || w(t), h({
|
|
43
|
+
...n,
|
|
44
|
+
...t
|
|
45
|
+
}, s))), k = i((n, t) => {
|
|
46
|
+
const s = n.size || "md", o = {
|
|
47
|
+
xs: "w-6 h-6",
|
|
48
|
+
sm: "w-8 h-8",
|
|
49
|
+
md: "w-10 h-10",
|
|
50
|
+
lg: "w-12 h-12",
|
|
51
|
+
xl: "w-14 h-14"
|
|
52
|
+
};
|
|
53
|
+
return l({
|
|
54
|
+
...n,
|
|
55
|
+
class: `inline-flex items-center justify-center rounded-full bg-transparent text-foreground hover:bg-muted/50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring transition-colors ${o[s] || o.md} ${n.class || ""}`
|
|
56
|
+
}, [
|
|
57
|
+
n.icon ? a({ size: s === "xs" ? "xs" : "sm" }, n.icon) : null,
|
|
58
|
+
...t || []
|
|
59
|
+
]);
|
|
60
|
+
}), r = {
|
|
61
|
+
primary: c({ class: "primary" }),
|
|
62
|
+
secondary: c({ class: "secondary" }),
|
|
63
|
+
destructive: c({ class: "destructive" }),
|
|
64
|
+
warning: c({ class: "warning" }),
|
|
65
|
+
outline: c({ class: "outline" }),
|
|
66
|
+
ghost: c({ class: "ghost" }),
|
|
67
|
+
link: c({ class: "link" }),
|
|
68
|
+
icon: e({ class: "icon" }),
|
|
69
|
+
withIcon: e({ class: "with-icon" }),
|
|
70
|
+
back: b({ class: "with-icon back-button" }),
|
|
71
|
+
circleIcon: k
|
|
72
|
+
}, d = i((n, t) => (r[n.variant] || r.primary)(n, t)), I = i((n, t) => d({ ...n, variant: "withIcon", icon: u.loading, animation: "animate-spin" }, t));
|
|
73
|
+
export {
|
|
74
|
+
d as B,
|
|
75
|
+
a as I,
|
|
76
|
+
I as L
|
|
77
|
+
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Div as n, I as b, H5 as Z, P as x, Li as H, Span as a, Ul as q, Button as f, OnState as T, Label as P, H2 as S, Form as tt, Header as I, Footer as L, A as V, H3 as et, Checkbox as st, Input as m, Img as G, Nav as ot, UseParent as W, OnStateOpen as O, Time as nt, Dialog as rt } from "@base-framework/atoms";
|
|
2
2
|
import { Atom as c, Component as w, Html as A, Dom as it, base as lt, Data as B, Builder as _, Jot as C, Events as p, DateTime as M } from "@base-framework/base";
|
|
3
|
-
import { P as D, C as at, R as ct } from "./range-calendar-
|
|
3
|
+
import { P as D, C as at, R as ct } from "./range-calendar-CAa8ly0W.js";
|
|
4
4
|
import { C as dt, F as ut } from "./form-group-BB7dLJir.js";
|
|
5
|
-
import { B as h, I as g } from "./buttons-
|
|
5
|
+
import { B as h, I as g } from "./buttons-B-FvkS9B.js";
|
|
6
6
|
import { Icons as u } from "./icons.es.js";
|
|
7
7
|
import { Timer as ht, List as mt, DynamicTime as ft } from "@base-framework/organisms";
|
|
8
8
|
import { a as v } from "./image-BB__4s0g.js";
|
package/dist/index.es.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
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-BlFbB8yL.js";
|
|
2
|
-
import { B as u, I as g, L as C } from "./buttons-
|
|
2
|
+
import { B as u, I as g, L as C } from "./buttons-B-FvkS9B.js";
|
|
3
3
|
import { C as T, F as b } from "./form-group-BB7dLJir.js";
|
|
4
4
|
import { C as D, a as S, D as F, b as B, E as P, F as k, H as M, I as x, M as f, N as v, P as N, R as y, T as h, c as U, d as L, U as W, W as w } from "./inputs-CcimrM1k.js";
|
|
5
5
|
import { I as R, V as A, a as G } from "./image-BB__4s0g.js";
|
|
6
6
|
import { Icons as E } from "./icons.es.js";
|
|
7
|
-
import { A as j, B as q, C as J, a as z, b as K, c as Q, d as _, D as X, e as Y, f as Z, g as $, h as aa, i as ea, j as sa, k as oa, l as ta, m as ra, n as na, o as la, E as ia, F as pa, p as ma, q as da, r as ua, s as ga, t as Ca, u as ca, v as Ta, w as ba, x as Ia, I as Da, L as Sa, M as Fa, y as Ba, N as Pa, z as ka, P as Ma, S as xa, G as fa, H as va, J as Na, K as ya, T as ha, O as Ua, Q as La, R as Wa, U as wa } from "./empty-state-
|
|
8
|
-
import { A as Ra, C as Aa, a as Ga, D as Oa, b as Ea, F as Va, M as ja, P as qa, R as Ja, c as za, g as Ka, p as Qa } from "./range-calendar-
|
|
9
|
-
import { B as Xa, a as Ya, C as Za, D as $a, b as ae, c as ee, d as se, H as oe, I as te, N as re, O as ne, P as le, S as ie, e as pe, f as me, g as de, T as ue, h as ge, i as Ce, j as ce, U as Te, k as be, l as Ie, m as De, n as Se, o as Fe, W as Be, p as Pe, q as ke, r as Me, s as xe, t as fe, u as ve, v as Ne, w as ye, x as he } from "./signature-panel-
|
|
10
|
-
import { B as Le, I as We, M as we, a as He, b as Re, N as Ae, c as Ge, d as Oe, e as Ee, f as Ve, P as je, S as qe, g as Je, T as ze } from "./mobile-nav-wrapper-
|
|
11
|
-
import { B as Qe, a as _e, C as Xe, F as Ye, b as Ze, c as $e, M as as, P as es, S as ss } from "./sidebar-menu-page-
|
|
7
|
+
import { A as j, B as q, C as J, a as z, b as K, c as Q, d as _, D as X, e as Y, f as Z, g as $, h as aa, i as ea, j as sa, k as oa, l as ta, m as ra, n as na, o as la, E as ia, F as pa, p as ma, q as da, r as ua, s as ga, t as Ca, u as ca, v as Ta, w as ba, x as Ia, I as Da, L as Sa, M as Fa, y as Ba, N as Pa, z as ka, P as Ma, S as xa, G as fa, H as va, J as Na, K as ya, T as ha, O as Ua, Q as La, R as Wa, U as wa } from "./empty-state-DvkT6uAo.js";
|
|
8
|
+
import { A as Ra, C as Aa, a as Ga, D as Oa, b as Ea, F as Va, M as ja, P as qa, R as Ja, c as za, g as Ka, p as Qa } from "./range-calendar-CAa8ly0W.js";
|
|
9
|
+
import { B as Xa, a as Ya, C as Za, D as $a, b as ae, c as ee, d as se, H as oe, I as te, N as re, O as ne, P as le, S as ie, e as pe, f as me, g as de, T as ue, h as ge, i as Ce, j as ce, U as Te, k as be, l as Ie, m as De, n as Se, o as Fe, W as Be, p as Pe, q as ke, r as Me, s as xe, t as fe, u as ve, v as Ne, w as ye, x as he } from "./signature-panel-D38xgifi.js";
|
|
10
|
+
import { B as Le, I as We, M as we, a as He, b as Re, N as Ae, c as Ge, d as Oe, e as Ee, f as Ve, P as je, S as qe, g as Je, T as ze } from "./mobile-nav-wrapper-B7hEJ4r-.js";
|
|
11
|
+
import { B as Qe, a as _e, C as Xe, F as Ye, b as Ze, c as $e, M as as, P as es, S as ss } from "./sidebar-menu-page-KZXiQy6q.js";
|
|
12
12
|
import { A as ts, F as rs, M as ns, T as ls, a as is } from "./aside-template-BDvEMLnk.js";
|
|
13
13
|
import { B as ms } from "./bside-template-BCP2pJWN.js";
|
|
14
14
|
import { F as us, c as gs } from "./format-BmrNQptv.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Button as S, I as B, Label as N, Span as L, Ul as o, H4 as C, Nav as p, Div as l, Header as y, H1 as P, H3 as h, OnState as I, UseParent as $ } from "@base-framework/atoms";
|
|
2
2
|
import { Component as n, Atom as i, NavLink as H, router as d } from "@base-framework/base";
|
|
3
|
-
import { I as f, B as x } from "./buttons-
|
|
3
|
+
import { I as f, B as x } from "./buttons-B-FvkS9B.js";
|
|
4
4
|
import { Icons as r } from "./icons.es.js";
|
|
5
5
|
class M extends n {
|
|
6
6
|
/**
|
package/dist/molecules.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as s, B as t, C as r, a as e, b as i, c as n, d as m, D as l, e as d, f as C, g as p, h as D, i as S, j as g, k as u, l as c, m as F, n as T, o as P, E as w, F as A, p as I, q as f, r as b, s as y, t as B, u as M, v as U, w as k, x, I as L, L as R, M as v, y as E, N, z as h, P as G, S as O, G as j, H as q, J as z, K as H, T as J, O as K, Q, R as _, U as V } from "./empty-state-
|
|
2
|
-
import { A as X, P as Y, g as Z } from "./range-calendar-
|
|
1
|
+
import { A as s, B as t, C as r, a as e, b as i, c as n, d as m, D as l, e as d, f as C, g as p, h as D, i as S, j as g, k as u, l as c, m as F, n as T, o as P, E as w, F as A, p as I, q as f, r as b, s as y, t as B, u as M, v as U, w as k, x, I as L, L as R, M as v, y as E, N, z as h, P as G, S as O, G as j, H as q, J as z, K as H, T as J, O as K, Q, R as _, U as V } from "./empty-state-DvkT6uAo.js";
|
|
2
|
+
import { A as X, P as Y, g as Z } from "./range-calendar-CAa8ly0W.js";
|
|
3
3
|
export {
|
|
4
4
|
s as Alert,
|
|
5
5
|
X as Avatar,
|
package/dist/organisms.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { B as s, a as n, C as t, D as o, b as r, c as l, d as i, H as d, I as b, N as u, O as v, P as g, S as p, e as T, f as D, g as N, T as k, h as C, i as c, j as B, U as M, k as m, l as y, m as W, n as h, o as S, W as H, p as P, q as U, r as x, s as I, t as f, u as L, v as O, w as F, x as G } from "./signature-panel-
|
|
2
|
-
import { C as R, a as j, D as q, b as z, F as A, M as E, R as J, c as K, p as Q } from "./range-calendar-
|
|
3
|
-
import { B as X, I as Y, M as Z, a as _, b as $, N as aa, c as ea, d as sa, e as na, f as ta, P as oa, S as ra, g as la, T as ia } from "./mobile-nav-wrapper-
|
|
1
|
+
import { B as s, a as n, C as t, D as o, b as r, c as l, d as i, H as d, I as b, N as u, O as v, P as g, S as p, e as T, f as D, g as N, T as k, h as C, i as c, j as B, U as M, k as m, l as y, m as W, n as h, o as S, W as H, p as P, q as U, r as x, s as I, t as f, u as L, v as O, w as F, x as G } from "./signature-panel-D38xgifi.js";
|
|
2
|
+
import { C as R, a as j, D as q, b as z, F as A, M as E, R as J, c as K, p as Q } from "./range-calendar-CAa8ly0W.js";
|
|
3
|
+
import { B as X, I as Y, M as Z, a as _, b as $, N as aa, c as ea, d as sa, e as na, f as ta, P as oa, S as ra, g as la, T as ia } from "./mobile-nav-wrapper-B7hEJ4r-.js";
|
|
4
4
|
export {
|
|
5
5
|
s as BackButton,
|
|
6
6
|
X 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-KZXiQy6q.js";
|
|
2
2
|
export {
|
|
3
3
|
s as BasicPage,
|
|
4
4
|
P as BlankPage,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Div as h, Span as H, Button as _, OnState as J, On as z } from "@base-framework/atoms";
|
|
2
2
|
import { Component as Y, Data as B, Atom as j, DateTime as T } from "@base-framework/base";
|
|
3
3
|
import { I as L } from "./image-BB__4s0g.js";
|
|
4
|
-
import { B as f } from "./buttons-
|
|
4
|
+
import { B as f } from "./buttons-B-FvkS9B.js";
|
|
5
5
|
import { Icons as P } from "./icons.es.js";
|
|
6
6
|
const U = (e, t) => {
|
|
7
7
|
const n = e ? e.getBoundingClientRect() : { top: 0, bottom: 0, left: 0 }, a = t.getBoundingClientRect(), s = 10, r = globalThis.scrollX, l = globalThis.scrollY;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Div as t, Header as n, H1 as d, P as o } from "@base-framework/atoms";
|
|
2
2
|
import { F as l, A as x } from "./aside-template-BDvEMLnk.js";
|
|
3
3
|
import { Component as h, Atom as i } from "@base-framework/base";
|
|
4
|
-
import { S as u, b as p } from "./mobile-nav-wrapper-
|
|
4
|
+
import { S as u, b as p } from "./mobile-nav-wrapper-B7hEJ4r-.js";
|
|
5
5
|
class c extends h {
|
|
6
6
|
/**
|
|
7
7
|
* This will declare the props for the compiler.
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Button as y, Div as o, On as C, Span as L, Th as N, UseParent as E, I as Q, Thead as V, Tr as G, Table as B, P as v, Li as w, Time as X, Nav as m, Ul as f, Section as I, Canvas as q } from "@base-framework/atoms";
|
|
2
2
|
import { Atom as d, Component as p, Data as T, DateTime as K, router as k, NavLink as M, DataTracker as U, Jot as _, base as O, Dom as W } from "@base-framework/base";
|
|
3
|
-
import { B as P, I as J } from "./buttons-
|
|
3
|
+
import { B as P, I as J } from "./buttons-B-FvkS9B.js";
|
|
4
4
|
import { Icons as S } from "./icons.es.js";
|
|
5
5
|
import { TableBody as Z, DataTableBody as ee, ScrollableTableBody as te, List as se, IntervalTimer as ae } from "@base-framework/organisms";
|
|
6
6
|
import { C as ie, I as ne, H as oe } from "./inputs-CcimrM1k.js";
|
|
7
|
-
import { A as le, P as re } from "./range-calendar-
|
|
7
|
+
import { A as le, P as re } from "./range-calendar-CAa8ly0W.js";
|
|
8
8
|
import { V as g } from "./image-BB__4s0g.js";
|
|
9
9
|
d((t, e) => ({
|
|
10
10
|
class: "flex items-center px-4 py-2",
|
package/package.json
CHANGED
package/dist/buttons-CfwtbIR-.js
DELETED
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import { I as h, Button as e } from "@base-framework/atoms";
|
|
2
|
-
import { Atom as s } from "@base-framework/base";
|
|
3
|
-
import { Icons as r } from "./icons.es.js";
|
|
4
|
-
const m = {
|
|
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
|
-
}, c = s((n, t) => {
|
|
13
|
-
const a = m[n.size || "sm"];
|
|
14
|
-
return h({
|
|
15
|
-
...n,
|
|
16
|
-
class: `stroke-current icon-size ${a} ${n.class || ""}`,
|
|
17
|
-
html: t[0]?.textContent
|
|
18
|
-
});
|
|
19
|
-
}), i = (n) => s((t, a) => e({
|
|
20
|
-
...n,
|
|
21
|
-
...t,
|
|
22
|
-
class: `bttn ${n.class} ${t.class || ""}`
|
|
23
|
-
}, a)), u = s(
|
|
24
|
-
(n, t) => e({
|
|
25
|
-
...n,
|
|
26
|
-
class: n.class
|
|
27
|
-
}, [
|
|
28
|
-
n.icon && n.position !== "right" ? c({ size: "sm", class: n.animation ?? null }, n.icon) : null,
|
|
29
|
-
...t || [],
|
|
30
|
-
n.icon && n.position === "right" ? c({ size: "sm", class: n.animation ?? null }, n.icon) : null
|
|
31
|
-
])
|
|
32
|
-
), l = (n) => s((t, a) => u({
|
|
33
|
-
...n,
|
|
34
|
-
...t,
|
|
35
|
-
class: `bttn ${n.class} ${t.class || ""}`
|
|
36
|
-
}, a)), w = (n) => () => {
|
|
37
|
-
if (n.allowHistory === !0 && globalThis.history.length > 2) {
|
|
38
|
-
globalThis.history.back();
|
|
39
|
-
return;
|
|
40
|
-
}
|
|
41
|
-
n.backUrl && app.navigate(n.backUrl);
|
|
42
|
-
}, g = (n) => s((t, a) => (t.icon = t.icon || r.arrows.left, t.click = t.click || w(t), u({
|
|
43
|
-
...n,
|
|
44
|
-
...t
|
|
45
|
-
}, a))), o = {
|
|
46
|
-
primary: i({ class: "primary" }),
|
|
47
|
-
secondary: i({ class: "secondary" }),
|
|
48
|
-
destructive: i({ class: "destructive" }),
|
|
49
|
-
warning: i({ class: "warning" }),
|
|
50
|
-
outline: i({ class: "outline" }),
|
|
51
|
-
ghost: i({ class: "ghost" }),
|
|
52
|
-
link: i({ class: "link" }),
|
|
53
|
-
icon: l({ class: "icon" }),
|
|
54
|
-
withIcon: l({ class: "with-icon" }),
|
|
55
|
-
back: g({ class: "with-icon back-button" })
|
|
56
|
-
}, k = s((n, t) => (o[n.variant] || o.primary)(n, t)), y = s((n, t) => k({ ...n, variant: "withIcon", icon: r.loading, animation: "animate-spin" }, t));
|
|
57
|
-
export {
|
|
58
|
-
k as B,
|
|
59
|
-
c as I,
|
|
60
|
-
y as L
|
|
61
|
-
};
|