@base-framework/ui 1.0.2000 → 1.0.2002
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/{empty-state-BfT4MKkN.js → empty-state-CT44uzVx.js} +19 -18
- package/dist/index.es.js +2 -2
- package/dist/molecules.es.js +1 -1
- package/dist/organisms.es.js +1 -1
- package/dist/{signature-panel-CcRmukPe.js → signature-panel-Bq-usDxi.js} +2 -2
- package/dist/types/components/molecules/modals/modal.d.ts +7 -0
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Div as n, H5 as X, P as b, I as x, Li as q, Span as a, Ul as Y, Button as m, OnState as D, Label as A, H2 as S, Form as Z, Header as
|
|
2
|
-
import { Atom as c, Component as y, Html as O, Dom as re, base as le, Data as
|
|
1
|
+
import { Div as n, H5 as X, P as b, I as x, Li as q, Span as a, Ul as Y, Button as m, OnState as D, Label as A, H2 as S, Form as Z, Header as F, Footer as M, A as V, H3 as ee, Checkbox as te, Input as f, Img as _, Nav as se, UseParent as W, OnStateOpen as P, Time as oe, Dialog as ne } from "@base-framework/atoms";
|
|
2
|
+
import { Atom as c, Component as y, Html as O, Dom as re, base as le, Data as T, Builder as G, Jot as w, Events as p, DateTime as L } from "@base-framework/base";
|
|
3
3
|
import { P as I, b as ie, R as ae } from "./range-calendar-BMWSJTE0.js";
|
|
4
4
|
import { C as ce, F as ue } from "./form-group-CJzpq9Us.js";
|
|
5
5
|
import { B as h, I as g } from "./buttons-CHEs54Wl.js";
|
|
@@ -120,7 +120,7 @@ class Mt extends y {
|
|
|
120
120
|
* @returns {Data}
|
|
121
121
|
*/
|
|
122
122
|
setData() {
|
|
123
|
-
return new
|
|
123
|
+
return new T({
|
|
124
124
|
groups: this.groups || []
|
|
125
125
|
});
|
|
126
126
|
}
|
|
@@ -168,7 +168,7 @@ class Mt extends y {
|
|
|
168
168
|
]);
|
|
169
169
|
}
|
|
170
170
|
}
|
|
171
|
-
const ke = c((e, t) => n({ ...e, class: "flex flex-auto flex-col gap-y-2" }, t)), De = c((e, t) => A({ ...e, class: "flex auto text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70" }, t)),
|
|
171
|
+
const ke = c((e, t) => n({ ...e, class: "flex flex-auto flex-col gap-y-2" }, t)), De = c((e, t) => A({ ...e, class: "flex auto text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70" }, t)), Fe = c((e, t) => b({ ...e, class: "text-sm text-muted-foreground italic" }, t)), Te = c((e, t) => b({ ...e, class: "text-sm text-destructive" }, t)), Pt = c((e, t = []) => ce({ class: "flex flex-auto flex-col gap-y-0", margin: "m-0", padding: "p-0" }, [
|
|
172
172
|
e.title && S({ class: "text-lg font-semibold py-4 px-6" }, e.title),
|
|
173
173
|
e.description && b({ class: "text-sm text-muted-foreground pb-4 px-6 max-w-[700px]" }, e.description),
|
|
174
174
|
...t
|
|
@@ -227,8 +227,8 @@ const ke = c((e, t) => n({ ...e, class: "flex flex-auto flex-col gap-y-2" }, t))
|
|
|
227
227
|
value: this.state.value,
|
|
228
228
|
setError: r
|
|
229
229
|
}, this.children),
|
|
230
|
-
o &&
|
|
231
|
-
n({ onState: ["error", (l) => l &&
|
|
230
|
+
o && Fe({ id: this.getId("description") }, o),
|
|
231
|
+
n({ onState: ["error", (l) => l && Te(l)] })
|
|
232
232
|
])
|
|
233
233
|
]);
|
|
234
234
|
}
|
|
@@ -246,7 +246,7 @@ const ke = c((e, t) => n({ ...e, class: "flex flex-auto flex-col gap-y-2" }, t))
|
|
|
246
246
|
]), Rt = (e, t) => n({ class: "flex" }, [
|
|
247
247
|
a({ class: "text-muted-foreground mr-8 w-24 truncate text-nowrap" }, e),
|
|
248
248
|
a(t)
|
|
249
|
-
]), Ae = ({ title: e, description: t, back: s, icon: o, options: r = [] }) =>
|
|
249
|
+
]), Ae = ({ title: e, description: t, back: s, icon: o, options: r = [] }) => F({ class: "modal-header bg-background/80 backdrop-blur-md sticky flex flex-none items-center py-4 px-6 z-10 min-w-0" }, [
|
|
250
250
|
/**
|
|
251
251
|
* Back Button
|
|
252
252
|
*/
|
|
@@ -274,8 +274,8 @@ const ke = c((e, t) => n({ ...e, class: "flex flex-auto flex-col gap-y-2" }, t))
|
|
|
274
274
|
}, [
|
|
275
275
|
K({ class: "modal-content relative bg-background z-[1] flex flex-auto flex-col gap-y-4 overflow-hidden", submit: (s, o) => e.onSubmit && e.onSubmit(o) }, [
|
|
276
276
|
Ae(e),
|
|
277
|
-
n({ class: "modal-body flex flex-grow flex-col overflow-y-auto py-0 px-6 z-0" }, t),
|
|
278
|
-
M({ class: "modal-footer sticky bg-background/80 backdrop-blur-md flex flex-none justify-between py-4 px-6 z-10" }, e.buttons)
|
|
277
|
+
n({ class: "modal-body flex flex-grow flex-col overflow-y-auto py-0 px-6 z-0", cache: "modalBody" }, t),
|
|
278
|
+
!e.hideFooter && M({ class: "modal-footer sticky bg-background/80 backdrop-blur-md flex flex-none justify-between py-4 px-6 z-10" }, e.buttons)
|
|
279
279
|
])
|
|
280
280
|
])), Pe = (e) => G.render(e, app.root);
|
|
281
281
|
class Ht extends y {
|
|
@@ -285,7 +285,7 @@ class Ht extends y {
|
|
|
285
285
|
* @returns {void}
|
|
286
286
|
*/
|
|
287
287
|
declareProps() {
|
|
288
|
-
this.title = null, this.description = null, this.size = null, this.type = null, this.hidePrimaryButton = !1, this.icon = null, this.onSubmit = null, this.onClose = null, this.back = !1;
|
|
288
|
+
this.title = null, this.description = null, this.size = null, this.type = null, this.hidePrimaryButton = !1, this.hideFooter = !1, this.icon = null, this.onSubmit = null, this.onClose = null, this.back = !1;
|
|
289
289
|
}
|
|
290
290
|
/**
|
|
291
291
|
* This will render the modal component.
|
|
@@ -301,6 +301,7 @@ class Ht extends y {
|
|
|
301
301
|
description: o,
|
|
302
302
|
options: this.headerOptions(),
|
|
303
303
|
buttons: this.getButtons(),
|
|
304
|
+
hideFooter: this.hideFooter,
|
|
304
305
|
onSubmit: (r) => {
|
|
305
306
|
let l = !0;
|
|
306
307
|
this.onSubmit && (l = this.onSubmit(r)), l !== !1 && this.destroy();
|
|
@@ -464,7 +465,7 @@ const E = {
|
|
|
464
465
|
borderColor: "border",
|
|
465
466
|
iconColor: "text-muted-foreground"
|
|
466
467
|
}
|
|
467
|
-
}, Oe = (e) =>
|
|
468
|
+
}, Oe = (e) => F({ class: "flex justify-center" }, [
|
|
468
469
|
ee({ class: "text-lg font-bold mb-0" }, e)
|
|
469
470
|
]), je = c(({ href: e, class: t }, s) => V({
|
|
470
471
|
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}`,
|
|
@@ -899,7 +900,7 @@ const N = globalThis.matchMedia, $ = c(({ value: e, label: t, icon: s }) => m({
|
|
|
899
900
|
* @returns {Data}
|
|
900
901
|
*/
|
|
901
902
|
setData() {
|
|
902
|
-
return new
|
|
903
|
+
return new T({
|
|
903
904
|
// @ts-ignore
|
|
904
905
|
items: this.items || []
|
|
905
906
|
});
|
|
@@ -961,7 +962,7 @@ const N = globalThis.matchMedia, $ = c(({ value: e, label: t, icon: s }) => m({
|
|
|
961
962
|
* @returns {Data}
|
|
962
963
|
*/
|
|
963
964
|
setData() {
|
|
964
|
-
return new
|
|
965
|
+
return new T({
|
|
965
966
|
// @ts-ignore
|
|
966
967
|
count: this.count || 4,
|
|
967
968
|
// total dots
|
|
@@ -1022,7 +1023,7 @@ const N = globalThis.matchMedia, $ = c(({ value: e, label: t, icon: s }) => m({
|
|
|
1022
1023
|
* @returns {Data}
|
|
1023
1024
|
*/
|
|
1024
1025
|
setData() {
|
|
1025
|
-
return new
|
|
1026
|
+
return new T({
|
|
1026
1027
|
// @ts-ignore
|
|
1027
1028
|
items: this.items || []
|
|
1028
1029
|
});
|
|
@@ -1627,7 +1628,7 @@ const os = C(
|
|
|
1627
1628
|
}
|
|
1628
1629
|
), bt = (e, t) => n({ class: `hidden md:flex items-start justify-center w-6 h-6 mr-3 ${t}` }, [
|
|
1629
1630
|
g({ size: "lg" }, e)
|
|
1630
|
-
]), xt = ({ title: e }) =>
|
|
1631
|
+
]), xt = ({ title: e }) => F({ class: "flex flex-auto items-center" }, [
|
|
1631
1632
|
S({ class: "text-lg font-semibold" }, e)
|
|
1632
1633
|
]), vt = c((e, t) => ne(
|
|
1633
1634
|
{
|
|
@@ -1789,7 +1790,7 @@ const rs = c((e, t = []) => n({ class: "w-full max-w-md p-6 m-auto" }, [
|
|
|
1789
1790
|
g(e.icon)
|
|
1790
1791
|
])
|
|
1791
1792
|
]),
|
|
1792
|
-
|
|
1793
|
+
F({ class: "py-4 text-center" }, [
|
|
1793
1794
|
S({ class: "text-xl font-bold" }, e.title),
|
|
1794
1795
|
b({ class: "pb-8 text-muted-foreground" }, e.description || ""),
|
|
1795
1796
|
...t
|
|
@@ -1822,8 +1823,8 @@ export {
|
|
|
1822
1823
|
Mt as b,
|
|
1823
1824
|
Ce as c,
|
|
1824
1825
|
De as d,
|
|
1825
|
-
|
|
1826
|
-
|
|
1826
|
+
Fe as e,
|
|
1827
|
+
Te as f,
|
|
1827
1828
|
Pt as g,
|
|
1828
1829
|
Ot as h,
|
|
1829
1830
|
jt as i,
|
package/dist/index.es.js
CHANGED
|
@@ -4,9 +4,9 @@ import { C as T, F as b } from "./form-group-CJzpq9Us.js";
|
|
|
4
4
|
import { C as I, d as S, D as F, c 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, a as U, b as L, U as W, W as H } from "./inputs-9udyzkHR.js";
|
|
5
5
|
import { V as w, a as A } from "./veil-CqnAmj-D.js";
|
|
6
6
|
import { Icons as O } from "./icons.es.js";
|
|
7
|
-
import { A as V, B as j, C as q, w as J, K as z, y as K, z as Q, E as _, G as X, D as Y, m as Z, n as $, Q as aa, O as ea, v as sa, c as oa, a as ta, b as ra, R as na, l as la, g as ia, i as pa, h as da, j as ma, e as ua, k as ga, F as Ca, d as ca, f as Ta, I as ba, L as Da, x as Ia, M as Sa, o as Fa, N as Ba, P as Pa, s as ka, t as Ma, S as xa, q as fa, r as va, T as Na, H as ya, J as ha, p as Ua, u as La } from "./empty-state-
|
|
7
|
+
import { A as V, B as j, C as q, w as J, K as z, y as K, z as Q, E as _, G as X, D as Y, m as Z, n as $, Q as aa, O as ea, v as sa, c as oa, a as ta, b as ra, R as na, l as la, g as ia, i as pa, h as da, j as ma, e as ua, k as ga, F as Ca, d as ca, f as Ta, I as ba, L as Da, x as Ia, M as Sa, o as Fa, N as Ba, P as Pa, s as ka, t as Ma, S as xa, q as fa, r as va, T as Na, H as ya, J as ha, p as Ua, u as La } from "./empty-state-CT44uzVx.js";
|
|
8
8
|
import { A as Ha, b as Ra, C as wa, D as Aa, a as Ga, F as Oa, M as Ea, P as Va, R as ja, c as qa, g as Ja, p as za } from "./range-calendar-BMWSJTE0.js";
|
|
9
|
-
import { B as Qa, p as _a, C as Xa, j as Ya, D as Za, m as $a, k as ae, H as ee, I as se, N as oe, O as te, P as re, S as ne, n as le, o as ie, x as pe, s as de, q as me, r as ue, T as ge, t as Ce, w as ce, u as Te, v as be, l as De, U as Ie, W as Se, f as Fe, h as Be, i as Pe, c as ke, d as Me, b as xe, e as fe, a as ve, g as Ne } from "./signature-panel-
|
|
9
|
+
import { B as Qa, p as _a, C as Xa, j as Ya, D as Za, m as $a, k as ae, H as ee, I as se, N as oe, O as te, P as re, S as ne, n as le, o as ie, x as pe, s as de, q as me, r as ue, T as ge, t as Ce, w as ce, u as Te, v as be, l as De, U as Ie, W as Se, f as Fe, h as Be, i as Pe, c as ke, d as Me, b as xe, e as fe, a as ve, g as Ne } from "./signature-panel-Bq-usDxi.js";
|
|
10
10
|
import { B as he, I as Ue, M as Le, d as We, e as He, g as Re, N as we, b as Ae, a as Ge, f as Oe, P as Ee, c as Ve, S as je, T as qe } from "./mobile-nav-wrapper-Dm9DinRD.js";
|
|
11
11
|
import { B as ze, a as Ke, C as Qe, F as _e, b as Xe, c as Ye, M as Ze, P as $e, S as as } from "./sidebar-menu-page-D4WMgz5U.js";
|
|
12
12
|
import { A as ss, F as os, M as ts, a as rs, T as ns } from "./aside-template-sUm-F2f0.js";
|
package/dist/molecules.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as s, B as t, C as e, w as r, K as i, y as n, z as m, E as l, G as d, D as C, m as p, n as S, Q as g, O as u, v as D, c, a as F, b as T, R as P, l as A, g as I, i as f, h as w, j as b, e as y, k as B, F as M, d as k, f as x, I as L, L as R, x as U, M as v, o as E, N, P as h, s as G, t as O, S as j, q, r as z, T as H, H as J, J as K, p as Q, u as _ } from "./empty-state-
|
|
1
|
+
import { A as s, B as t, C as e, w as r, K as i, y as n, z as m, E as l, G as d, D as C, m as p, n as S, Q as g, O as u, v as D, c, a as F, b as T, R as P, l as A, g as I, i as f, h as w, j as b, e as y, k as B, F as M, d as k, f as x, I as L, L as R, x as U, M as v, o as E, N, P as h, s as G, t as O, S as j, q, r as z, T as H, H as J, J as K, p as Q, u as _ } from "./empty-state-CT44uzVx.js";
|
|
2
2
|
import { A as W, P as X, g as Y } from "./range-calendar-BMWSJTE0.js";
|
|
3
3
|
export {
|
|
4
4
|
s as Alert,
|
package/dist/organisms.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as s, p as n, C as t, j as o, D as r, m as l, k as i, H as d, I as b, N as u, O as v, P as g, S as p, n as T, o as D, x as N, s as k, q as C, r as c, T as B, t as M, w as m, u as y, v as W, l as h, U as S, W as H, f as P, h as U, i as x, c as I, d as f, b as L, e as O, a as F, g as G } from "./signature-panel-
|
|
1
|
+
import { B as s, p as n, C as t, j as o, D as r, m as l, k as i, H as d, I as b, N as u, O as v, P as g, S as p, n as T, o as D, x as N, s as k, q as C, r as c, T as B, t as M, w as m, u as y, v as W, l as h, U as S, W as H, f as P, h as U, i as x, c as I, d as f, b as L, e as O, a as F, g as G } from "./signature-panel-Bq-usDxi.js";
|
|
2
2
|
import { b as R, C as j, D as q, a as z, F as A, M as E, R as J, c as K, p as Q } from "./range-calendar-BMWSJTE0.js";
|
|
3
3
|
import { B as X, I as Y, M as Z, d as _, e as $, g as aa, N as ea, b as sa, a as na, f as ta, P as oa, c as ra, S as la, T as ia } from "./mobile-nav-wrapper-Dm9DinRD.js";
|
|
4
4
|
export {
|
|
@@ -845,11 +845,11 @@ class A extends p {
|
|
|
845
845
|
* @returns {string}
|
|
846
846
|
*/
|
|
847
847
|
getClassName() {
|
|
848
|
-
return `absolute overlay left-0 top-0 right-0 z-20
|
|
848
|
+
return `absolute flex flex-auto flex-col overlay left-0 top-0 right-0 z-20
|
|
849
849
|
h-svh max-h-svh min-h-svh
|
|
850
850
|
bg-background pointer-events-auto
|
|
851
851
|
lg:left-16
|
|
852
|
-
pb-[calc(env(safe-area-inset-bottom)
|
|
852
|
+
pb-[calc(env(safe-area-inset-bottom))] will-change-contents ${this.class || ""}`;
|
|
853
853
|
}
|
|
854
854
|
/**
|
|
855
855
|
* This will setup and render the component.
|
|
@@ -36,6 +36,13 @@ export class Modal extends Component {
|
|
|
36
36
|
* @values true, false
|
|
37
37
|
*/
|
|
38
38
|
hidePrimaryButton: boolean;
|
|
39
|
+
/**
|
|
40
|
+
* @member {boolean} hideFooter
|
|
41
|
+
* @default false
|
|
42
|
+
* @description This will hide the footer.
|
|
43
|
+
* @values true, false
|
|
44
|
+
*/
|
|
45
|
+
hideFooter: boolean;
|
|
39
46
|
/**
|
|
40
47
|
* @member {string} icon
|
|
41
48
|
*/
|
package/package.json
CHANGED