@base-framework/ui 1.2.12 → 1.2.14
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/{buttons-DthWscX3.js → buttons-C-_NH7ie.js} +42 -42
- package/dist/{empty-state-CcxkrsqJ.js → empty-state-Bpuw_-Rm.js} +4 -4
- package/dist/index.es.js +8 -8
- package/dist/{mobile-nav-wrapper-9VRCW4oA.js → mobile-nav-wrapper-C7cKTxaV.js} +1 -1
- package/dist/molecules.es.js +2 -2
- package/dist/organisms.es.js +4 -4
- package/dist/pages.es.js +1 -1
- package/dist/{sidebar-menu-DLGBb0-I.js → sidebar-menu-Dz2oh95a.js} +1 -1
- package/dist/{sidebar-menu-page-DFRJL944.js → sidebar-menu-page-BImgFKeY.js} +2 -2
- package/dist/{signature-panel-BKj_0kwR.js → signature-panel-h1ranAet.js} +2 -2
- package/dist/{simple-search-input-DKWA4zYs.js → simple-search-input-DBNmoBCn.js} +1 -1
- package/dist/{tooltip-Cks2gfw4.js → tooltip-BG73cjI2.js} +31 -31
- package/package.json +1 -1
package/dist/atoms.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as e, C as t, a as o, F as n, b as r, L as i, P as p, R as u, S as I, c as l, d as c, T as d } from "./tooltip-
|
|
2
|
-
import { B as T, C as g, a as B, I as C, L as f, M as S, T as x, U as b, i as F, b as M } from "./buttons-
|
|
1
|
+
import { B as e, C as t, a as o, F as n, b as r, L as i, P as p, R as u, S as I, c as l, d as c, T as d } from "./tooltip-BG73cjI2.js";
|
|
2
|
+
import { B as T, C as g, a as B, I as C, L as f, M as S, T as x, U as b, i as F, b as M } from "./buttons-C-_NH7ie.js";
|
|
3
3
|
import { C as P, a as R, D as U, b as h, E as k, F as D, H, I as V, c as E, M as G, N, P as W, R as Z, T as v, d as w, e as J, U as j, V as q, f as y, W as z } from "./image-XjAp5NjV.js";
|
|
4
4
|
import { S as K } from "./skeleton-BlY3opxG.js";
|
|
5
5
|
export {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { I as
|
|
2
|
-
import { Atom as i, Component as
|
|
3
|
-
import { Icons as
|
|
4
|
-
const
|
|
1
|
+
import { I as S, Span as h, Button as r, OnState as y, On as T } from "@base-framework/atoms";
|
|
2
|
+
import { Atom as i, Component as k } from "@base-framework/base";
|
|
3
|
+
import { Icons as C } from "./icons.es.js";
|
|
4
|
+
const V = {
|
|
5
5
|
xs: "w-4 h-4",
|
|
6
6
|
sm: "w-6 h-6",
|
|
7
7
|
md: "w-8 h-8",
|
|
@@ -9,15 +9,15 @@ const S = {
|
|
|
9
9
|
xl: "w-12 h-12",
|
|
10
10
|
"2xl": "w-14 h-14",
|
|
11
11
|
"3xl": "w-16 h-16"
|
|
12
|
-
},
|
|
13
|
-
const n =
|
|
14
|
-
return
|
|
12
|
+
}, f = i((s, t) => {
|
|
13
|
+
const n = V[s.size || "sm"];
|
|
14
|
+
return S({
|
|
15
15
|
...s,
|
|
16
16
|
// @ts-ignore
|
|
17
17
|
class: `stroke-current icon-size ${n} ${s.class || ""}`,
|
|
18
18
|
html: t[0]?.textContent
|
|
19
19
|
});
|
|
20
|
-
}),
|
|
20
|
+
}), m = {
|
|
21
21
|
xs: "w-4 h-4",
|
|
22
22
|
// 16px - matches Icon
|
|
23
23
|
sm: "w-6 h-6",
|
|
@@ -32,7 +32,7 @@ const S = {
|
|
|
32
32
|
// 56px - matches Icon
|
|
33
33
|
"3xl": "w-16 h-16"
|
|
34
34
|
// 64px - matches Icon
|
|
35
|
-
},
|
|
35
|
+
}, b = {
|
|
36
36
|
xs: "16px",
|
|
37
37
|
sm: "24px",
|
|
38
38
|
md: "32px",
|
|
@@ -40,13 +40,13 @@ const S = {
|
|
|
40
40
|
xl: "48px",
|
|
41
41
|
"2xl": "56px",
|
|
42
42
|
"3xl": "64px"
|
|
43
|
-
},
|
|
43
|
+
}, v = {
|
|
44
44
|
outlined: "material-symbols-outlined",
|
|
45
45
|
filled: "material-symbols-filled",
|
|
46
46
|
rounded: "material-symbols-rounded",
|
|
47
47
|
sharp: "material-symbols-sharp"
|
|
48
|
-
},
|
|
49
|
-
const t = s.size || "sm", n = s.variant || "outlined", e =
|
|
48
|
+
}, x = i((s) => {
|
|
49
|
+
const t = s.size || "sm", n = s.variant || "outlined", e = m[t] || m.sm, l = b[t] || b.sm, c = v[n] || v.outlined;
|
|
50
50
|
return h({
|
|
51
51
|
...s,
|
|
52
52
|
// @ts-ignore
|
|
@@ -59,15 +59,15 @@ const S = {
|
|
|
59
59
|
name: void 0
|
|
60
60
|
// @ts-ignore
|
|
61
61
|
}, s.name);
|
|
62
|
-
}), o = (s = {}, t) => t ? typeof t == "string" && t.includes("<svg") ?
|
|
62
|
+
}), o = (s = {}, t) => t ? typeof t == "string" && t.includes("<svg") ? f(s, t) : typeof t == "object" && t.name ? x({
|
|
63
63
|
...s,
|
|
64
64
|
name: t.name,
|
|
65
65
|
variant: t.variant || s.variant || "outlined"
|
|
66
|
-
}) : typeof t == "string" ?
|
|
66
|
+
}) : typeof t == "string" ? x({
|
|
67
67
|
...s,
|
|
68
68
|
name: t
|
|
69
|
-
}) :
|
|
70
|
-
class
|
|
69
|
+
}) : f(s, t) : null, O = (s) => s ? !!(typeof s == "object" && s.name || typeof s == "string" && !s.includes("<svg")) : !1, E = (s) => typeof s == "string" && s.includes("<svg");
|
|
70
|
+
class H extends k {
|
|
71
71
|
/**
|
|
72
72
|
* Declare public props and their defaults.
|
|
73
73
|
*/
|
|
@@ -99,14 +99,14 @@ class O extends y {
|
|
|
99
99
|
*/
|
|
100
100
|
render() {
|
|
101
101
|
const t = this.size, n = this.icon, e = this.activeIcon || this.icon, l = this.dataKey ? h({ class: "toggle-btn-value text-sm tabular-nums" }, [
|
|
102
|
-
|
|
102
|
+
T(this.dataKey, (c) => String(c))
|
|
103
103
|
]) : this.value !== null && this.value !== void 0 ? h({ class: "toggle-btn-value text-sm tabular-nums" }, String(this.value)) : null;
|
|
104
104
|
return r({
|
|
105
105
|
click: () => this.handleToggle(),
|
|
106
106
|
// @ts-ignore
|
|
107
107
|
class: `toggle-btn inline-flex items-center gap-1.5 bg-transparent border-0 p-0 cursor-pointer text-foreground/70 hover:text-foreground transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring ${this.class || ""}`
|
|
108
108
|
}, [
|
|
109
|
-
|
|
109
|
+
y(
|
|
110
110
|
"active",
|
|
111
111
|
(c) => o({ size: t }, c ? e : n)
|
|
112
112
|
),
|
|
@@ -122,7 +122,7 @@ const u = {
|
|
|
122
122
|
xl: "w-14 h-14",
|
|
123
123
|
"2xl": "w-16 h-16"
|
|
124
124
|
};
|
|
125
|
-
class
|
|
125
|
+
class _ extends k {
|
|
126
126
|
/**
|
|
127
127
|
* Declare public props.
|
|
128
128
|
*/
|
|
@@ -153,22 +153,22 @@ class E extends y {
|
|
|
153
153
|
* @returns {object}
|
|
154
154
|
*/
|
|
155
155
|
render() {
|
|
156
|
-
const t = this.icon, n = this.activeIcon || this.icon, e = u[this.size] || u.md, l = ["xs", "sm"].includes(this.size) ? "xs" : "sm", c = "bg-background/40 backdrop-blur-sm text-foreground",
|
|
156
|
+
const t = this.icon, n = this.activeIcon || this.icon, e = u[this.size] || u.md, l = ["xs", "sm"].includes(this.size) ? "xs" : "sm", c = this.class ?? "bg-background/40 backdrop-blur-sm", d = "text-foreground", $ = this.activeClass || d, B = this.circle ?? !1;
|
|
157
157
|
return r({
|
|
158
158
|
click: () => this.handleToggle(),
|
|
159
159
|
// @ts-ignore
|
|
160
|
-
class: `circle-toggle-btn inline-flex items-center justify-center rounded-full border-0 cursor-pointer transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 ${e} ${
|
|
160
|
+
class: `circle-toggle-btn inline-flex items-center justify-center rounded-full border-0 cursor-pointer transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 ${e} ${c}${B ? " rounded-full w-[40px] h-[40px] max-w-[40px]" : ""}`
|
|
161
161
|
}, [
|
|
162
|
-
|
|
162
|
+
y("active", (g) => [
|
|
163
163
|
o({
|
|
164
164
|
size: l,
|
|
165
|
-
class: `transition-colors ${g ?
|
|
165
|
+
class: `transition-colors ${g ? $ : d}`
|
|
166
166
|
}, g ? n : t)
|
|
167
167
|
])
|
|
168
168
|
]);
|
|
169
169
|
}
|
|
170
170
|
}
|
|
171
|
-
const
|
|
171
|
+
const R = i((s, t) => {
|
|
172
172
|
const n = s.size || "md", e = u[n] || u.md, l = ["xs", "sm"].includes(n) ? "xs" : "sm";
|
|
173
173
|
return r({
|
|
174
174
|
...s,
|
|
@@ -196,21 +196,21 @@ const H = i((s, t) => {
|
|
|
196
196
|
// @ts-ignore
|
|
197
197
|
s.icon && s.position === "right" ? o({ size: s.size || "sm", class: s.animation ?? null }, s.icon) : null
|
|
198
198
|
])
|
|
199
|
-
),
|
|
199
|
+
), w = (s) => i((t, n) => I({
|
|
200
200
|
...s,
|
|
201
201
|
...t,
|
|
202
202
|
// @ts-ignore
|
|
203
203
|
class: `bttn ${s.class} ${t.class || ""}`
|
|
204
|
-
}, n)),
|
|
204
|
+
}, n)), j = (s) => () => {
|
|
205
205
|
if (s.allowHistory === !0 && globalThis.history.length > 2) {
|
|
206
206
|
globalThis.history.back();
|
|
207
207
|
return;
|
|
208
208
|
}
|
|
209
209
|
s.backUrl && app.navigate(s.backUrl);
|
|
210
|
-
},
|
|
210
|
+
}, U = (s) => i((t, n) => (t.icon = t.icon || C.arrows.left, t.click = t.click || j(t), I({
|
|
211
211
|
...s,
|
|
212
212
|
...t
|
|
213
|
-
}, n))),
|
|
213
|
+
}, n))), A = i((s, t) => {
|
|
214
214
|
const n = s.size || "md", e = {
|
|
215
215
|
xs: "w-6 h-6",
|
|
216
216
|
sm: "w-8 h-8",
|
|
@@ -235,20 +235,20 @@ const H = i((s, t) => {
|
|
|
235
235
|
outline: a({ class: "outline" }),
|
|
236
236
|
ghost: a({ class: "ghost" }),
|
|
237
237
|
link: a({ class: "link" }),
|
|
238
|
-
icon:
|
|
239
|
-
withIcon:
|
|
240
|
-
back:
|
|
241
|
-
circleIcon:
|
|
242
|
-
},
|
|
238
|
+
icon: w({ class: "icon" }),
|
|
239
|
+
withIcon: w({ class: "with-icon" }),
|
|
240
|
+
back: U({ class: "with-icon back-button" }),
|
|
241
|
+
circleIcon: A
|
|
242
|
+
}, K = i((s, t) => (z[s.variant] || z.primary)(s, t)), W = i((s, t) => K({ ...s, variant: "withIcon", icon: C.loading, animation: "animate-spin" }, t));
|
|
243
243
|
export {
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
244
|
+
K as B,
|
|
245
|
+
R as C,
|
|
246
|
+
f as I,
|
|
247
|
+
W as L,
|
|
248
|
+
x as M,
|
|
249
|
+
H as T,
|
|
250
250
|
o as U,
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
251
|
+
_ as a,
|
|
252
|
+
O as b,
|
|
253
|
+
E as i
|
|
254
254
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { Atom as c, Component as y, Html as A, Dom as Z, base as tt, Data as k, Builder as H, Jot as w, Events as g, DateTime as M } from "@base-framework/base";
|
|
2
2
|
import { Div as n, H5 as et, P as b, Li as q, Span as a, Ul as V, Button as p, I as T, OnState as I, Label as P, H2 as v, Form as st, Header as B, Footer as L, A as G, H3 as ot, Checkbox as nt, Input as f, Img as W, Nav as it, UseParent as _, OnStateOpen as O, Time as rt, Dialog as lt } from "@base-framework/atoms";
|
|
3
|
-
import { P as S, C as at, R as ct } from "./simple-search-input-
|
|
4
|
-
import { U as m, B as h, I as dt } from "./buttons-
|
|
3
|
+
import { P as S, C as at, R as ct } from "./simple-search-input-DBNmoBCn.js";
|
|
4
|
+
import { U as m, B as h, I as dt } from "./buttons-C-_NH7ie.js";
|
|
5
5
|
import { Timer as ut, List as ht, DynamicTime as mt } from "@base-framework/organisms";
|
|
6
|
-
import { C as ft, b as pt } from "./tooltip-
|
|
6
|
+
import { C as ft, b as pt } from "./tooltip-BG73cjI2.js";
|
|
7
7
|
import { f as C } from "./image-XjAp5NjV.js";
|
|
8
8
|
import { Icons as u } from "./icons.es.js";
|
|
9
9
|
import { F as z } from "./format-DE4rFWuD.js";
|
|
10
|
-
import "./mobile-nav-wrapper-
|
|
10
|
+
import "./mobile-nav-wrapper-C7cKTxaV.js";
|
|
11
11
|
import "./aside-template-B9V-0xle.js";
|
|
12
12
|
import "./full-page-CgVI1G7F.js";
|
|
13
13
|
import "./bside-template-oLChzjxQ.js";
|
package/dist/index.es.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { B as s, C as o, a as t, F as r, b as n, L as i, P as l, R as p, S as m, c as d, d as u, T as g } from "./tooltip-
|
|
2
|
-
import { B as T, C, a as S, I, L as b, M as B, T as D, U as F, i as P, b as M } from "./buttons-
|
|
1
|
+
import { B as s, C as o, a as t, F as r, b as n, L as i, P as l, R as p, S as m, c as d, d as u, T as g } from "./tooltip-BG73cjI2.js";
|
|
2
|
+
import { B as T, C, a as S, I, L as b, M as B, T as D, U as F, i as P, b as M } from "./buttons-C-_NH7ie.js";
|
|
3
3
|
import { C as k, a as x, D as v, b as N, E as U, F as h, H as y, I as L, c as W, M as H, N as R, P as w, R as A, T as G, d as O, e as E, U as j, V, f as J, W as Z } from "./image-XjAp5NjV.js";
|
|
4
4
|
import { S as z } from "./skeleton-BlY3opxG.js";
|
|
5
5
|
import { Icons as Q, MaterialSymbols as _ } from "./icons.es.js";
|
|
6
|
-
import { A as Y, B as $, C as aa, a as ea, b as sa, c as oa, d as ta, D as ra, e as na, f as ia, g as la, h as pa, i as ma, j as da, k as ua, l as ga, m as ca, n as Ta, o as Ca, E as Sa, F as Ia, p as ba, q as Ba, r as Da, s as Fa, t as Pa, u as Ma, v as fa, w as ka, x as xa, I as va, L as Na, M as Ua, y as ha, N as ya, z as La, P as Wa, S as Ha, G as Ra, H as wa, J as Aa, K as Ga, T as Oa, O as Ea, Q as ja, R as Va, U as Ja } from "./empty-state-
|
|
7
|
-
import { A as qa, B as za, C as Ka, a as Qa, b as _a, D as Xa, c as Ya, d as $a, e as ae, f as ee, g as se, F as oe, H as te, M as re, O as ne, P as ie, R as le, S as pe, h as me, i as de, j as ue, T as ge, U as ce, k as Te, l as Ce, m as Se, p as Ie } from "./simple-search-input-
|
|
8
|
-
import { B as Be, I as De, N as Fe, P as Pe, S as Me, T as fe, a as ke, b as xe, U as ve, c as Ne, d as Ue, e as he, W as ye, f as Le, g as We, h as He, i as Re, j as we, k as Ae, l as Ge, m as Oe, n as Ee } from "./signature-panel-
|
|
9
|
-
import { B as Ve, I as Je, M as Ze, a as qe, b as ze, N as Ke, c as Qe, d as _e, e as Xe, f as Ye, P as $e, S as as, T as es } from "./mobile-nav-wrapper-
|
|
10
|
-
import { S as os } from "./sidebar-menu-
|
|
6
|
+
import { A as Y, B as $, C as aa, a as ea, b as sa, c as oa, d as ta, D as ra, e as na, f as ia, g as la, h as pa, i as ma, j as da, k as ua, l as ga, m as ca, n as Ta, o as Ca, E as Sa, F as Ia, p as ba, q as Ba, r as Da, s as Fa, t as Pa, u as Ma, v as fa, w as ka, x as xa, I as va, L as Na, M as Ua, y as ha, N as ya, z as La, P as Wa, S as Ha, G as Ra, H as wa, J as Aa, K as Ga, T as Oa, O as Ea, Q as ja, R as Va, U as Ja } from "./empty-state-Bpuw_-Rm.js";
|
|
7
|
+
import { A as qa, B as za, C as Ka, a as Qa, b as _a, D as Xa, c as Ya, d as $a, e as ae, f as ee, g as se, F as oe, H as te, M as re, O as ne, P as ie, R as le, S as pe, h as me, i as de, j as ue, T as ge, U as ce, k as Te, l as Ce, m as Se, p as Ie } from "./simple-search-input-DBNmoBCn.js";
|
|
8
|
+
import { B as Be, I as De, N as Fe, P as Pe, S as Me, T as fe, a as ke, b as xe, U as ve, c as Ne, d as Ue, e as he, W as ye, f as Le, g as We, h as He, i as Re, j as we, k as Ae, l as Ge, m as Oe, n as Ee } from "./signature-panel-h1ranAet.js";
|
|
9
|
+
import { B as Ve, I as Je, M as Ze, a as qe, b as ze, N as Ke, c as Qe, d as _e, e as Xe, f as Ye, P as $e, S as as, T as es } from "./mobile-nav-wrapper-C7cKTxaV.js";
|
|
10
|
+
import { S as os } from "./sidebar-menu-Dz2oh95a.js";
|
|
11
11
|
import { B as rs, F as ns, M as is, P as ls } from "./full-page-CgVI1G7F.js";
|
|
12
|
-
import { B as ms, C as ds, F as us, a as gs, S as cs } from "./sidebar-menu-page-
|
|
12
|
+
import { B as ms, C as ds, F as us, a as gs, S as cs } from "./sidebar-menu-page-BImgFKeY.js";
|
|
13
13
|
import { A as Cs, F as Ss, M as Is, T as bs, a as Bs } from "./aside-template-B9V-0xle.js";
|
|
14
14
|
import { B as Fs } from "./bside-template-oLChzjxQ.js";
|
|
15
15
|
import { F as Ms, c as fs } from "./format-DE4rFWuD.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Button as g, Div as l, Label as b, Span as w, Ul as r, H4 as S, Nav as d, H3 as h, OnState as B, UseParent as N } from "@base-framework/atoms";
|
|
2
2
|
import { Component as n, Atom as i, NavLink as L, router as u } from "@base-framework/base";
|
|
3
|
-
import { U as o, B as p } from "./buttons-
|
|
3
|
+
import { U as o, B as p } from "./buttons-C-_NH7ie.js";
|
|
4
4
|
import { Icons as c } from "./icons.es.js";
|
|
5
5
|
class C 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 u, k as c, l as g, 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, m as Z } from "./simple-search-input-
|
|
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 u, k as c, l as g, 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-Bpuw_-Rm.js";
|
|
2
|
+
import { A as X, P as Y, m as Z } from "./simple-search-input-DBNmoBCn.js";
|
|
3
3
|
export {
|
|
4
4
|
s as Alert,
|
|
5
5
|
X as Avatar,
|
package/dist/organisms.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { B as s, C as n, a as t, b as r, D as o, c as l, d as i, e as d, f as b, g as p, F as u, H as T, M as g, O as v, R as N, S as k, h as D, i as c, j as C, T as m, U as B, k as S, l as M, p as h } from "./simple-search-input-
|
|
2
|
-
import { B as W, I as U, N as f, P as H, S as I, T as P, a as x, b as L, U as O, c as F, d as G, e as j, W as R, f as w, g as q, h as z, i as A, j as E, k as J, l as K, m as Q, n as V } from "./signature-panel-
|
|
3
|
-
import { B as Y, I as Z, M as _, a as $, b as aa, N as ea, c as sa, d as na, e as ta, f as ra, P as oa, S as la, T as ia } from "./mobile-nav-wrapper-
|
|
4
|
-
import { S as ba } from "./sidebar-menu-
|
|
1
|
+
import { B as s, C as n, a as t, b as r, D as o, c as l, d as i, e as d, f as b, g as p, F as u, H as T, M as g, O as v, R as N, S as k, h as D, i as c, j as C, T as m, U as B, k as S, l as M, p as h } from "./simple-search-input-DBNmoBCn.js";
|
|
2
|
+
import { B as W, I as U, N as f, P as H, S as I, T as P, a as x, b as L, U as O, c as F, d as G, e as j, W as R, f as w, g as q, h as z, i as A, j as E, k as J, l as K, m as Q, n as V } from "./signature-panel-h1ranAet.js";
|
|
3
|
+
import { B as Y, I as Z, M as _, a as $, b as aa, N as ea, c as sa, d as na, e as ta, f as ra, P as oa, S as la, T as ia } from "./mobile-nav-wrapper-C7cKTxaV.js";
|
|
4
|
+
import { S as ba } from "./sidebar-menu-Dz2oh95a.js";
|
|
5
5
|
export {
|
|
6
6
|
s as BackButton,
|
|
7
7
|
Y as Backdrop,
|
package/dist/pages.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { B as s, F as P, M as g, P as n } from "./full-page-CgVI1G7F.js";
|
|
2
|
-
import { B as r, C as o, F as i, a as t, S as F } from "./sidebar-menu-page-
|
|
2
|
+
import { B as r, C as o, F as i, a as t, S as F } from "./sidebar-menu-page-BImgFKeY.js";
|
|
3
3
|
export {
|
|
4
4
|
s as BasicPage,
|
|
5
5
|
r as BlankPage,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Div as r, Header as x, H1 as c } from "@base-framework/atoms";
|
|
2
|
-
import { I as n } from "./mobile-nav-wrapper-
|
|
2
|
+
import { I as n } from "./mobile-nav-wrapper-C7cKTxaV.js";
|
|
3
3
|
const g = ({ title: l, options: s, class: a = "", mobileBorder: t = !1, sticky: e = !1, topNav: o = null, bottomNav: p = null }) => r({ class: `pb-12 p-4 pt-0 lg:p-6 lg:border-r w-full lg:max-w-[300px] flex-auto flex-col ${a}` }, [
|
|
4
4
|
o,
|
|
5
5
|
l && x({ class: "pb-4 md:pb-2 px-6 flex" }, [
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Div as s } from "@base-framework/atoms";
|
|
2
2
|
import { B as a, M as i, P as r } from "./full-page-CgVI1G7F.js";
|
|
3
3
|
import { F as l, A as n } from "./aside-template-B9V-0xle.js";
|
|
4
|
-
import { b as d } from "./mobile-nav-wrapper-
|
|
5
|
-
import { S as o } from "./sidebar-menu-
|
|
4
|
+
import { b as d } from "./mobile-nav-wrapper-C7cKTxaV.js";
|
|
5
|
+
import { S as o } from "./sidebar-menu-Dz2oh95a.js";
|
|
6
6
|
class p extends a {
|
|
7
7
|
/**
|
|
8
8
|
* This will render the page.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Div as l, Button as b, On as j, Span as T, Nav as f, Ul as p, Section as y, Li as w, Canvas as z } from "@base-framework/atoms";
|
|
2
2
|
import { Component as k, Data as I, DateTime as U, router as v, NavLink as S, base as L, Dom as B } from "@base-framework/base";
|
|
3
|
-
import { B as C } from "./buttons-
|
|
3
|
+
import { B as C } from "./buttons-C-_NH7ie.js";
|
|
4
4
|
import { Icons as D } from "./icons.es.js";
|
|
5
|
-
import { O as A } from "./simple-search-input-
|
|
5
|
+
import { O as A } from "./simple-search-input-DBNmoBCn.js";
|
|
6
6
|
import { V as u, H as F } from "./image-XjAp5NjV.js";
|
|
7
7
|
import { IntervalTimer as O } from "@base-framework/organisms";
|
|
8
8
|
class Pt extends k {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Div as r, Span as N, Button as K, OnState as J, On as T, Th as G, UseParent as et, I as st, Thead as at, Tr as nt, Table as j, P as $, Li as X, Time as ot, Ul as rt, Input as lt } from "@base-framework/atoms";
|
|
2
2
|
import { Component as R, Data as P, Atom as m, DateTime as H, DataTracker as _, Jot as it } from "@base-framework/base";
|
|
3
|
-
import { B as y, U as q } from "./buttons-
|
|
3
|
+
import { B as y, U as q } from "./buttons-C-_NH7ie.js";
|
|
4
4
|
import { Icons as S } from "./icons.es.js";
|
|
5
5
|
import { TableBody as ct, DataTableBody as dt, ScrollableTableBody as ht, List as ut } from "@base-framework/organisms";
|
|
6
6
|
import { I as ft, C as mt, c as gt } from "./image-XjAp5NjV.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Span as m, Div as
|
|
2
|
-
import { Atom as
|
|
3
|
-
import { U as v } from "./buttons-
|
|
1
|
+
import { Span as m, Div as s, Legend as h, Fieldset as p, H4 as y, P as k, UseParent as x, Input as w } from "@base-framework/atoms";
|
|
2
|
+
import { Atom as n, Html as $ } from "@base-framework/base";
|
|
3
|
+
import { U as v } from "./buttons-C-_NH7ie.js";
|
|
4
4
|
import { f as C, g as P, h as S, i as B } from "./image-XjAp5NjV.js";
|
|
5
5
|
const d = {
|
|
6
6
|
gray: {
|
|
@@ -86,24 +86,24 @@ const d = {
|
|
|
86
86
|
}, N = (r) => d[r] || d.gray, E = (r, e = {}) => {
|
|
87
87
|
const t = N(r), o = e.backgroundColor ?? t.backgroundColor, l = e.textColor ?? t.textColor, a = e.ringColor ?? t.ringColor;
|
|
88
88
|
return `inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors ${o} ${l} ${a}`;
|
|
89
|
-
}, O =
|
|
89
|
+
}, O = n((r, e) => {
|
|
90
90
|
const { type: t, icon: o, size: l = "xs", backgroundColor: a, textColor: i, ringColor: c, ...g } = r, u = E(t, { backgroundColor: a, textColor: i, ringColor: c });
|
|
91
91
|
return m({ ...g, class: u }, [
|
|
92
92
|
o ? v({ size: l, class: "mr-1" }, o) : null,
|
|
93
93
|
...e || []
|
|
94
94
|
]);
|
|
95
|
-
}), U =
|
|
95
|
+
}), U = n((r, e) => {
|
|
96
96
|
const t = r.margin ?? "my-5 mx-5", o = r.padding ?? "p-4", l = r.border ?? "border-border";
|
|
97
|
-
return r.hover && (r.class += " hover:shadow-lg hover:bg-muted/50"),
|
|
97
|
+
return r.hover && (r.class += " hover:shadow-lg hover:bg-muted/50"), s({
|
|
98
98
|
...r,
|
|
99
99
|
// @ts-ignore
|
|
100
100
|
class: `rounded-lg ${l} bg-card text-card-foreground shadow-md min-w-[120px] min-h-[80px] ${t} ${o} ${r.class || ""}`
|
|
101
101
|
}, e);
|
|
102
|
-
}), F =
|
|
102
|
+
}), F = n((r, e) => h({
|
|
103
103
|
...r,
|
|
104
104
|
// @ts-ignore
|
|
105
105
|
class: ` font-medium -mt-4 -mx-1 px-2 py-2 ${r.class || ""}`
|
|
106
|
-
}, e)), V =
|
|
106
|
+
}, e)), V = n((r, e) => {
|
|
107
107
|
const t = r.border === "full" ? "border rounded-md" : "border-t";
|
|
108
108
|
return p({
|
|
109
109
|
...r,
|
|
@@ -112,17 +112,17 @@ const d = {
|
|
|
112
112
|
}, [
|
|
113
113
|
// @ts-ignore
|
|
114
114
|
r.legend && F(r.legend),
|
|
115
|
-
|
|
115
|
+
s({ class: "flex flex-auto flex-col gap-y-6" }, e)
|
|
116
116
|
]);
|
|
117
|
-
}), _ =
|
|
117
|
+
}), _ = n((r, e) => {
|
|
118
118
|
const t = r.border === !0 ? "border-t" : "";
|
|
119
|
-
return
|
|
119
|
+
return s({
|
|
120
120
|
...r,
|
|
121
121
|
// @ts-ignore
|
|
122
122
|
class: `grid grid-cols-1 gap-y-4 sm:grid-cols-[1fr_2fr] sm:gap-x-6 pt-8 ${t} ${r.class || ""}`
|
|
123
123
|
}, [
|
|
124
124
|
// @ts-ignore
|
|
125
|
-
r.label &&
|
|
125
|
+
r.label && s({
|
|
126
126
|
// @ts-ignore
|
|
127
127
|
...r.labelProps,
|
|
128
128
|
// @ts-ignore
|
|
@@ -134,7 +134,7 @@ const d = {
|
|
|
134
134
|
r.description && k({ class: "text-sm text-muted-foreground" }, r.description)
|
|
135
135
|
]),
|
|
136
136
|
// Controls container: grows to fill remaining space, spacing between items
|
|
137
|
-
|
|
137
|
+
s({ class: "flex flex-col gap-y-4" }, e)
|
|
138
138
|
]);
|
|
139
139
|
}), j = C(
|
|
140
140
|
{
|
|
@@ -166,17 +166,17 @@ const d = {
|
|
|
166
166
|
* @returns {object}
|
|
167
167
|
*/
|
|
168
168
|
render() {
|
|
169
|
-
return
|
|
169
|
+
return s({ class: "relative w-full h-4 flex items-center" }, [
|
|
170
170
|
// Track
|
|
171
|
-
|
|
171
|
+
s({ class: "absolute h-2 w-full rounded-full bg-muted" }),
|
|
172
172
|
x(({ state: r }) => [
|
|
173
173
|
// Filled Track
|
|
174
|
-
|
|
174
|
+
s({
|
|
175
175
|
class: "absolute h-2 bg-primary rounded-full",
|
|
176
176
|
style: ["width: [[filledPercentage]]%", r]
|
|
177
177
|
}),
|
|
178
178
|
// Thumb
|
|
179
|
-
|
|
179
|
+
s({
|
|
180
180
|
class: `
|
|
181
181
|
absolute block h-5 w-5 rounded-full border-2 border-primary bg-background
|
|
182
182
|
ring-offset-background transition-colors focus-visible:outline-none
|
|
@@ -208,7 +208,7 @@ const d = {
|
|
|
208
208
|
]);
|
|
209
209
|
}
|
|
210
210
|
}
|
|
211
|
-
), D =
|
|
211
|
+
), D = n((r) => ({
|
|
212
212
|
tag: "select",
|
|
213
213
|
onCreated(e) {
|
|
214
214
|
r.options && $.setupSelectOptions(e, r.options);
|
|
@@ -255,13 +255,13 @@ const d = {
|
|
|
255
255
|
</text>
|
|
256
256
|
</svg>
|
|
257
257
|
`;
|
|
258
|
-
return
|
|
258
|
+
return s({
|
|
259
259
|
class: "circle-graph text-inherit",
|
|
260
260
|
html: i
|
|
261
261
|
});
|
|
262
|
-
}, H =
|
|
262
|
+
}, H = n((r) => {
|
|
263
263
|
const e = r.progress || 0, t = r.class || "", o = b(e, t);
|
|
264
|
-
return
|
|
264
|
+
return s({
|
|
265
265
|
class: "circle-graph-wrap",
|
|
266
266
|
onSet: [
|
|
267
267
|
// @ts-ignore
|
|
@@ -269,7 +269,7 @@ const d = {
|
|
|
269
269
|
(l) => (l = I(l), l ? b(l, t) : o)
|
|
270
270
|
]
|
|
271
271
|
}, [o]);
|
|
272
|
-
}), T = () => x(({ state: r }) =>
|
|
272
|
+
}), T = () => x(({ state: r }) => s({
|
|
273
273
|
class: "absolute h-full rounded-full bg-primary transition-all duration-300",
|
|
274
274
|
style: ["width: [[progress]]%;", r]
|
|
275
275
|
})), M = C(
|
|
@@ -280,7 +280,7 @@ const d = {
|
|
|
280
280
|
* @returns {object}
|
|
281
281
|
*/
|
|
282
282
|
render() {
|
|
283
|
-
return
|
|
283
|
+
return s({ class: "relative w-full h-4 rounded-full bg-muted" }, [
|
|
284
284
|
T()
|
|
285
285
|
]);
|
|
286
286
|
},
|
|
@@ -324,7 +324,7 @@ const d = {
|
|
|
324
324
|
r < 0 && (r = 0), r > 100 && (r = 100), this.state.progress = r;
|
|
325
325
|
}
|
|
326
326
|
}
|
|
327
|
-
), Z =
|
|
327
|
+
), Z = n((r = {}) => {
|
|
328
328
|
const {
|
|
329
329
|
class: e = "",
|
|
330
330
|
background: t = !0,
|
|
@@ -334,18 +334,18 @@ const d = {
|
|
|
334
334
|
zIndexClass: i = "z-9999",
|
|
335
335
|
style: c = ""
|
|
336
336
|
} = r, g = [
|
|
337
|
-
"
|
|
337
|
+
"sticky bottom-0 left-0 right-0 w-full",
|
|
338
338
|
i,
|
|
339
339
|
t ? l : "",
|
|
340
340
|
o ? a : "",
|
|
341
341
|
e
|
|
342
342
|
].filter(Boolean).join(" "), u = `height: env(safe-area-inset-bottom, 0px);${c ? ` ${c}` : ""}`;
|
|
343
|
-
return
|
|
343
|
+
return s({
|
|
344
344
|
class: g,
|
|
345
345
|
style: u,
|
|
346
346
|
"aria-hidden": "true"
|
|
347
347
|
});
|
|
348
|
-
}), J =
|
|
348
|
+
}), J = n((r = {}) => {
|
|
349
349
|
const {
|
|
350
350
|
class: e = "",
|
|
351
351
|
background: t = !0,
|
|
@@ -355,13 +355,13 @@ const d = {
|
|
|
355
355
|
zIndexClass: i = "z-9999",
|
|
356
356
|
style: c = ""
|
|
357
357
|
} = r, g = [
|
|
358
|
-
"
|
|
358
|
+
"sticky top-0 left-0 right-0 w-full",
|
|
359
359
|
i,
|
|
360
360
|
t ? l : "",
|
|
361
361
|
o ? a : "",
|
|
362
362
|
e
|
|
363
363
|
].filter(Boolean).join(" "), u = `height: env(safe-area-inset-top, 0px);${c ? ` ${c}` : ""}`;
|
|
364
|
-
return
|
|
364
|
+
return s({
|
|
365
365
|
class: g,
|
|
366
366
|
style: u,
|
|
367
367
|
"aria-hidden": "true"
|
|
@@ -375,9 +375,9 @@ const d = {
|
|
|
375
375
|
"bottom-left": "top-full right-full transform translate-x-1 mt-2",
|
|
376
376
|
left: "top-1/2 right-full transform -translate-y-1/2 mr-2",
|
|
377
377
|
right: "top-1/2 left-full transform -translate-y-1/2 ml-2"
|
|
378
|
-
}, A = (r) => f[String(r)] || f.top, Y =
|
|
378
|
+
}, A = (r) => f[String(r)] || f.top, Y = n(({ position: r = "top", content: e }, t) => {
|
|
379
379
|
const o = A(r);
|
|
380
|
-
return Array.isArray(t) === !1 && (t = [t]),
|
|
380
|
+
return Array.isArray(t) === !1 && (t = [t]), s({ class: "relative group inline-block" }, [
|
|
381
381
|
...t,
|
|
382
382
|
// Tooltip box
|
|
383
383
|
m({
|
package/package.json
CHANGED