@base-framework/ui 1.1.5 → 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 +3 -3
- package/dist/buttons-B-FvkS9B.js +77 -0
- package/dist/{empty-state-DoTkyO7O.js → empty-state-DvkT6uAo.js} +138 -202
- package/dist/index.es.js +8 -8
- package/dist/{inputs-DEfa4qLY.js → inputs-CcimrM1k.js} +0 -8
- package/dist/{mobile-nav-wrapper-CZ5m6cqw.js → mobile-nav-wrapper-B7hEJ4r-.js} +20 -28
- 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-BH4jZwwg.js → range-calendar-CAa8ly0W.js} +2 -1
- package/dist/{sidebar-menu-page-BCqUom5C.js → sidebar-menu-page-KZXiQy6q.js} +1 -1
- package/dist/{signature-panel-Ba9YNxN4.js → signature-panel-D38xgifi.js} +4 -12
- package/dist/{tooltip-BNsImT7F.js → tooltip-BlFbB8yL.js} +1 -1
- package/dist/types/components/molecules/dropdowns/dropdown-menu.d.ts +0 -2
- package/dist/types/components/molecules/modals/drawer/drawer.d.ts +10 -0
- package/dist/types/components/molecules/modals/modal.d.ts +0 -2
- package/dist/types/components/molecules/notifications/notification-container.d.ts +0 -1
- package/dist/types/components/organisms/lists/data-table.d.ts +0 -1
- package/package.json +1 -1
- package/dist/buttons-CfwtbIR-.js +0 -61
package/dist/index.es.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
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-
|
|
2
|
-
import { B as u, I as g, L as C } from "./buttons-
|
|
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-B-FvkS9B.js";
|
|
3
3
|
import { C as T, F as b } from "./form-group-BB7dLJir.js";
|
|
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-
|
|
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";
|
|
@@ -98,14 +98,6 @@ const I = "flex h-10 w-full px-3 py-2 text-sm", n = "rounded-md border border-bo
|
|
|
98
98
|
// @ts-ignore
|
|
99
99
|
this.label && T({ id: e, label: this.label, clickHandler: c })
|
|
100
100
|
]);
|
|
101
|
-
},
|
|
102
|
-
/**
|
|
103
|
-
* This will clear cached references before destroying the component.
|
|
104
|
-
*
|
|
105
|
-
* @returns {void}
|
|
106
|
-
*/
|
|
107
|
-
destroy() {
|
|
108
|
-
this.checkbox = null;
|
|
109
101
|
}
|
|
110
102
|
}
|
|
111
103
|
), H = (e) => {
|
|
@@ -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
|
/**
|
|
@@ -154,14 +154,6 @@ class m extends n {
|
|
|
154
154
|
update(e) {
|
|
155
155
|
this.link.update(e);
|
|
156
156
|
}
|
|
157
|
-
/**
|
|
158
|
-
* This will clear references before destroying the component.
|
|
159
|
-
*
|
|
160
|
-
* @returns {void}
|
|
161
|
-
*/
|
|
162
|
-
beforeDestroy() {
|
|
163
|
-
this.link = null;
|
|
164
|
-
}
|
|
165
157
|
}
|
|
166
158
|
const E = i(({ map: s }, e) => o({ class: "navigation-group flex flex-col gap-2 list-none m-0 py-2 px-0", map: s }, [
|
|
167
159
|
C({ class: "text-muted-foreground text-sm py-0 px-4 whitespace-nowrap" }, e)
|
|
@@ -371,7 +363,7 @@ const V = ({ title: s, options: e, class: t = "", mobileBorder: a = !1, sticky:
|
|
|
371
363
|
]),
|
|
372
364
|
new c({ options: e, mobileBorder: a, class: u ? "sticky top-0" : "" }),
|
|
373
365
|
w
|
|
374
|
-
]), j = (s) => h({ class: "text-lg ml-2" }, s),
|
|
366
|
+
]), j = (s) => h({ class: "text-lg ml-2" }, s), U = (s) => l({ class: "sticky flex flex-row items-center bg-popover lg:hidden top-0 z-10 border-0 border-b" }, [
|
|
375
367
|
x({
|
|
376
368
|
variant: "icon",
|
|
377
369
|
class: "m-2",
|
|
@@ -379,14 +371,14 @@ const V = ({ title: s, options: e, class: t = "", mobileBorder: a = !1, sticky:
|
|
|
379
371
|
icon: r.arrows.left
|
|
380
372
|
}),
|
|
381
373
|
s.title && j(s.title)
|
|
382
|
-
]),
|
|
374
|
+
]), Y = () => l({
|
|
383
375
|
class: `
|
|
384
376
|
absolute inset-0 bg-black/40 z-[-1] fadeIn
|
|
385
377
|
transition-opacity duration-200
|
|
386
378
|
`,
|
|
387
379
|
click: (s, { state: e }) => e.open = !1
|
|
388
380
|
});
|
|
389
|
-
class
|
|
381
|
+
class D extends n {
|
|
390
382
|
/**
|
|
391
383
|
* This will declare the props for the compiler.
|
|
392
384
|
*
|
|
@@ -405,7 +397,7 @@ class Y extends n {
|
|
|
405
397
|
class: "fixed inset-0 z-50",
|
|
406
398
|
style: "[[typeClass]]"
|
|
407
399
|
}, [
|
|
408
|
-
|
|
400
|
+
Y(),
|
|
409
401
|
// Popover Content
|
|
410
402
|
l({
|
|
411
403
|
class: `
|
|
@@ -414,7 +406,7 @@ class Y extends n {
|
|
|
414
406
|
dataSet: ["open", ["expanded", !0, "true"]]
|
|
415
407
|
}, [
|
|
416
408
|
l({ class: "flex flex-auto flex-col w-full h-full overflow-y-auto max-h-[85vh] rounded-md bg-popover border" }, [
|
|
417
|
-
|
|
409
|
+
U({ title: this.title }),
|
|
418
410
|
l({ class: "flex flex-auto flex-col" }, this.children)
|
|
419
411
|
])
|
|
420
412
|
])
|
|
@@ -452,31 +444,31 @@ class Y extends n {
|
|
|
452
444
|
this.container = app.root;
|
|
453
445
|
}
|
|
454
446
|
}
|
|
455
|
-
const
|
|
447
|
+
const v = (s) => x({ class: "m-2", variant: "ghost", addState() {
|
|
456
448
|
return {
|
|
457
449
|
open: !1
|
|
458
450
|
};
|
|
459
451
|
}, click: (e, { state: t }) => t.toggle("open") }, [
|
|
460
452
|
f(r.bar.three)
|
|
461
453
|
]), R = (s) => h({ class: "text-lg ml-2" }, s), q = (s) => l({ class: "flex flex-auto flex-row items-center lg:hidden" }, [
|
|
462
|
-
|
|
454
|
+
v(),
|
|
463
455
|
s.title && R(s.title)
|
|
464
|
-
]),
|
|
456
|
+
]), g = (s, e) => {
|
|
465
457
|
s.forEach((t) => {
|
|
466
458
|
if (t.options) {
|
|
467
|
-
|
|
459
|
+
g(t.options, e);
|
|
468
460
|
return;
|
|
469
461
|
}
|
|
470
462
|
t.callBack = e;
|
|
471
463
|
});
|
|
472
|
-
},
|
|
464
|
+
}, k = (s) => l({ class: "bg-background flex flex-auto flex-col w-full relative" }, [
|
|
473
465
|
I(
|
|
474
466
|
"open",
|
|
475
467
|
(e) => e ? [
|
|
476
|
-
new
|
|
468
|
+
new D({ title: s.title }, [
|
|
477
469
|
$(({ state: t }) => {
|
|
478
470
|
const a = (u) => t.open = !1;
|
|
479
|
-
return
|
|
471
|
+
return g(s.options, a), new c(
|
|
480
472
|
{
|
|
481
473
|
options: s.options
|
|
482
474
|
}
|
|
@@ -487,21 +479,21 @@ const k = (s) => x({ class: "m-2", variant: "ghost", addState() {
|
|
|
487
479
|
)
|
|
488
480
|
]), X = i((s) => l({ cache: "mobileNav", class: "inline-flex relative lg:hidden" }, [
|
|
489
481
|
l([
|
|
490
|
-
|
|
491
|
-
|
|
482
|
+
v(),
|
|
483
|
+
k(s)
|
|
492
484
|
])
|
|
493
485
|
])), Z = i((s) => l({ cache: "mobileNav", class: "flex flex-auto flex-col w-full relative lg:hidden" }, [
|
|
494
486
|
l({ class: "flex flex-auto flex-col w-full" }, [
|
|
495
487
|
q(s),
|
|
496
|
-
|
|
488
|
+
k(s)
|
|
497
489
|
])
|
|
498
490
|
]));
|
|
499
491
|
export {
|
|
500
|
-
|
|
492
|
+
Y as B,
|
|
501
493
|
c as I,
|
|
502
494
|
m as M,
|
|
503
|
-
|
|
504
|
-
|
|
495
|
+
v as N,
|
|
496
|
+
U as P,
|
|
505
497
|
V as S,
|
|
506
498
|
q as T,
|
|
507
499
|
X as a,
|
|
@@ -509,6 +501,6 @@ export {
|
|
|
509
501
|
M as c,
|
|
510
502
|
T as d,
|
|
511
503
|
E as e,
|
|
512
|
-
|
|
504
|
+
D as f,
|
|
513
505
|
W as g
|
|
514
506
|
};
|
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;
|
|
@@ -62,6 +62,7 @@ class Tt extends Y {
|
|
|
62
62
|
popover: "manual",
|
|
63
63
|
toggle: (n, { state: a }) => n.newState === "closed" ? a.open = !1 : null,
|
|
64
64
|
style: "top: [[position.y]]px; left: [[position.x]]px"
|
|
65
|
+
// @ts-ignore
|
|
65
66
|
}, this.children);
|
|
66
67
|
}
|
|
67
68
|
/**
|
|
@@ -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
|
-
import { C as ie, I as ne, H as oe } from "./inputs-
|
|
7
|
-
import { A as le, P as re } from "./range-calendar-
|
|
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-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",
|
|
@@ -499,7 +499,7 @@ class j extends p {
|
|
|
499
499
|
* @returns {void}
|
|
500
500
|
*/
|
|
501
501
|
beforeDestroy() {
|
|
502
|
-
this.data.selectedRows = []
|
|
502
|
+
this.data.selectedRows = [];
|
|
503
503
|
}
|
|
504
504
|
}
|
|
505
505
|
const ve = (t) => new ee({
|
|
@@ -1191,14 +1191,6 @@ const ze = d(({ index: t, click: e, state: s }, a) => w({
|
|
|
1191
1191
|
selectOption: this.selectOption.bind(this)
|
|
1192
1192
|
})
|
|
1193
1193
|
]);
|
|
1194
|
-
},
|
|
1195
|
-
/**
|
|
1196
|
-
* This will destroy the component.
|
|
1197
|
-
*
|
|
1198
|
-
* @returns {void}
|
|
1199
|
-
*/
|
|
1200
|
-
destroy() {
|
|
1201
|
-
this.dropdown = null, this.input = null;
|
|
1202
1194
|
}
|
|
1203
1195
|
}
|
|
1204
1196
|
), Ae = (t) => w(
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Span as c, Legend as b, Fieldset as p, Div as l, UseParent as u, Input as C } from "@base-framework/atoms";
|
|
2
2
|
import { Atom as s, Html as x } from "@base-framework/base";
|
|
3
3
|
import { a as d } from "./image-BB__4s0g.js";
|
|
4
|
-
import { f as h, e as y, g as k } from "./inputs-
|
|
4
|
+
import { f as h, e as y, g as k } from "./inputs-CcimrM1k.js";
|
|
5
5
|
const a = {
|
|
6
6
|
gray: {
|
|
7
7
|
backgroundColor: "bg-gray-50",
|
|
@@ -39,6 +39,16 @@ export class Drawer extends Modal {
|
|
|
39
39
|
* @private
|
|
40
40
|
*/
|
|
41
41
|
private gesture;
|
|
42
|
+
/**
|
|
43
|
+
* Cached reference to modal content element (set via cache property)
|
|
44
|
+
* @type {HTMLElement|null}
|
|
45
|
+
*/
|
|
46
|
+
modalContent: HTMLElement | null;
|
|
47
|
+
/**
|
|
48
|
+
* Cached reference to modal body element (set via cache property)
|
|
49
|
+
* @type {HTMLElement|null}
|
|
50
|
+
*/
|
|
51
|
+
modalBody: HTMLElement | null;
|
|
42
52
|
/**
|
|
43
53
|
* Gets extra props to pass to ModalContainer
|
|
44
54
|
*
|
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
|
-
};
|