@base-framework/ui 1.0.2028 → 1.0.2030
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-BIeHWiqh.js → empty-state-BbkagIqj.js} +22 -21
- package/dist/index.es.js +1 -1
- package/dist/molecules.es.js +1 -1
- package/dist/types/components/molecules/modals/drawer/drawer-gesture.d.ts +1 -1
- package/dist/types/components/molecules/modals/drawer/drawer.d.ts +1 -0
- package/package.json +1 -1
|
@@ -6,8 +6,8 @@ import { B as h, I as g } from "./buttons-CHEs54Wl.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";
|
|
9
|
-
import { F as
|
|
10
|
-
const
|
|
9
|
+
import { F as Y } from "./format-BmrNQptv.js";
|
|
10
|
+
const z = {
|
|
11
11
|
info: {
|
|
12
12
|
borderColor: "border-blue-500",
|
|
13
13
|
bgColor: "bg-muted/10",
|
|
@@ -36,7 +36,7 @@ const Y = {
|
|
|
36
36
|
}, gt = (t, e) => n({ class: `flex items-center justify-center h-6 w-6 mr-3 ${e}` }, [
|
|
37
37
|
x({ html: t })
|
|
38
38
|
]), pt = (t) => Z({ class: "font-semibold" }, t), bt = (t) => b({ class: "text-sm text-muted-foreground" }, t), Le = c(({ title: t, description: e, icon: s, type: o = "default" }) => {
|
|
39
|
-
const { borderColor: r, bgColor: i, iconColor: l } =
|
|
39
|
+
const { borderColor: r, bgColor: i, iconColor: l } = z[o] || z.default;
|
|
40
40
|
return n({ class: `flex items-start p-4 border rounded-lg ${i} ${r}` }, [
|
|
41
41
|
// Icon and content
|
|
42
42
|
s && gt(s, l),
|
|
@@ -168,11 +168,11 @@ class Ae extends w {
|
|
|
168
168
|
]);
|
|
169
169
|
}
|
|
170
170
|
}
|
|
171
|
-
const Tt = c((t, e) => n({ ...t, class: "flex flex-auto flex-col gap-y-2" }, e)), It = c((t, e) => P({ ...t, class: "flex auto text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70" }, e)), Bt = c((t, e) => b({ ...t, class: "text-sm text-muted-foreground italic" }, e)), Ft = c((t, e) => b({ ...t, class: "text-sm text-destructive" }, e)),
|
|
171
|
+
const Tt = c((t, e) => n({ ...t, class: "flex flex-auto flex-col gap-y-2" }, e)), It = c((t, e) => P({ ...t, class: "flex auto text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70" }, e)), Bt = c((t, e) => b({ ...t, class: "text-sm text-muted-foreground italic" }, e)), Ft = c((t, e) => b({ ...t, class: "text-sm text-destructive" }, e)), Ye = c((t, e = []) => dt({ class: "flex flex-auto flex-col gap-y-0", margin: "m-0", padding: "p-0" }, [
|
|
172
172
|
t.title && S({ class: "text-lg font-semibold py-4 px-6" }, t.title),
|
|
173
173
|
t.description && b({ class: "text-sm text-muted-foreground pb-4 px-6 max-w-[700px]" }, t.description),
|
|
174
174
|
...e
|
|
175
|
-
])),
|
|
175
|
+
])), ze = c((t, e = []) => ut({ label: t.label, description: t.description, class: "py-4 px-6", border: t.border }, [
|
|
176
176
|
n({ class: "flex flex-col gap-y-6" }, e)
|
|
177
177
|
])), je = c((t, e = []) => {
|
|
178
178
|
const s = t.border ? "border-t" : "";
|
|
@@ -456,7 +456,7 @@ class At extends w {
|
|
|
456
456
|
this.panel.hidePopover(), this.state.open = !1, typeof this.onClose == "function" && this.onClose(this), document.documentElement.style.overflowY = "auto";
|
|
457
457
|
}
|
|
458
458
|
}
|
|
459
|
-
class
|
|
459
|
+
class Yt {
|
|
460
460
|
/**
|
|
461
461
|
* Creates an instance of DrawerGesture.
|
|
462
462
|
*
|
|
@@ -584,12 +584,12 @@ class zt {
|
|
|
584
584
|
this.modal && this.modal.style.setProperty("--backdrop-opacity", e.toString());
|
|
585
585
|
}
|
|
586
586
|
/**
|
|
587
|
-
* Animates the drawer closing by translating
|
|
587
|
+
* Animates the drawer closing by translating the entire modal off-screen
|
|
588
588
|
*
|
|
589
589
|
* @returns {void}
|
|
590
590
|
*/
|
|
591
591
|
animateClose() {
|
|
592
|
-
this.modalContent
|
|
592
|
+
!this.modal || !this.modalContent || (this.modalContent.style.transform = "translateY(0)", this.modalContent.style.transition = "none", this.modal.style.transition = "transform 0.3s ease-out, opacity 0.3s ease-out", this.modal.style.transform = "translateY(100%)", this.updateBackdropOpacity(0), setTimeout(() => {
|
|
593
593
|
this.onClose && this.onClose();
|
|
594
594
|
}, 300));
|
|
595
595
|
}
|
|
@@ -634,7 +634,7 @@ class qe extends At {
|
|
|
634
634
|
*/
|
|
635
635
|
getContainerProps() {
|
|
636
636
|
const e = {};
|
|
637
|
-
return this.swipeToClose &&
|
|
637
|
+
return this.swipeToClose && (e.gestureHandlers = this.getGestureHandlers()), e;
|
|
638
638
|
}
|
|
639
639
|
/**
|
|
640
640
|
* Renders the drawer with gesture handlers
|
|
@@ -670,7 +670,7 @@ class qe extends At {
|
|
|
670
670
|
* @returns {void}
|
|
671
671
|
*/
|
|
672
672
|
showModal() {
|
|
673
|
-
super.showModal(), this.swipeToClose && !this.gesture && (this.gesture = new
|
|
673
|
+
super.showModal(), this.swipeToClose && !this.gesture && (this.gesture = new Yt({
|
|
674
674
|
modal: this.panel,
|
|
675
675
|
modalContent: this.modalContent,
|
|
676
676
|
modalBody: this.modalBody,
|
|
@@ -682,15 +682,16 @@ class qe extends At {
|
|
|
682
682
|
/**
|
|
683
683
|
* Gets gesture event handlers for modal content.
|
|
684
684
|
* Returns event props to be spread onto the modal-content element.
|
|
685
|
+
* Handlers are bound methods that will work once gesture is initialized.
|
|
685
686
|
*
|
|
686
687
|
* @returns {object}
|
|
687
688
|
*/
|
|
688
689
|
getGestureHandlers() {
|
|
689
|
-
return
|
|
690
|
-
touchstart: (e) => this.gesture
|
|
691
|
-
touchmove: (e) => this.gesture
|
|
692
|
-
touchend: (e) => this.gesture
|
|
693
|
-
};
|
|
690
|
+
return this.swipeToClose ? {
|
|
691
|
+
touchstart: (e) => this.gesture?.handleTouchStart(e),
|
|
692
|
+
touchmove: (e) => this.gesture?.handleTouchMove(e),
|
|
693
|
+
touchend: (e) => this.gesture?.handleTouchEnd(e)
|
|
694
|
+
} : {};
|
|
694
695
|
}
|
|
695
696
|
/**
|
|
696
697
|
* Cleans up before destroy
|
|
@@ -728,7 +729,7 @@ const j = {
|
|
|
728
729
|
borderColor: "border",
|
|
729
730
|
iconColor: "text-muted-foreground"
|
|
730
731
|
}
|
|
731
|
-
},
|
|
732
|
+
}, zt = (t) => I({ class: "flex justify-center" }, [
|
|
732
733
|
et({ class: "text-lg font-bold mb-0" }, t)
|
|
733
734
|
]), jt = c(({ href: t, class: e }, s) => V({
|
|
734
735
|
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 ${e}`,
|
|
@@ -818,7 +819,7 @@ class Nt extends w {
|
|
|
818
819
|
this.icon && x({ class: `mr-4 ${e}`, html: this.icon }),
|
|
819
820
|
n({ class: "flex flex-auto flex-col" }, [
|
|
820
821
|
n({ class: "flex flex-auto flex-row items-center w-full pr-12" }, [
|
|
821
|
-
this.title &&
|
|
822
|
+
this.title && zt(this.title)
|
|
822
823
|
]),
|
|
823
824
|
b({ class: "text-base text-muted-foreground m-0 pr-12" }, this.description),
|
|
824
825
|
(this.primary || this.secondary) && L({ class: "margin-top-24 flex align-center" }, this.getButtons())
|
|
@@ -1585,9 +1586,9 @@ const E = globalThis.matchMedia, F = c(({ value: t, label: e, icon: s }) => f({
|
|
|
1585
1586
|
}, [
|
|
1586
1587
|
de({ bind: t, required: e }),
|
|
1587
1588
|
W(({ state: o }) => [
|
|
1588
|
-
a(
|
|
1589
|
+
a(Y.date(["[[start]]", o], "Start Date")),
|
|
1589
1590
|
a(" - "),
|
|
1590
|
-
a(
|
|
1591
|
+
a(Y.date(["[[end]]", o], "End Date"))
|
|
1591
1592
|
]),
|
|
1592
1593
|
x({ html: u.calendar.days })
|
|
1593
1594
|
]), he = ({ handleDateSelect: t, blockPriorDates: e }) => O((s, o, r) => new D({
|
|
@@ -2089,8 +2090,8 @@ export {
|
|
|
2089
2090
|
It as d,
|
|
2090
2091
|
Bt as e,
|
|
2091
2092
|
Ft as f,
|
|
2092
|
-
|
|
2093
|
-
|
|
2093
|
+
Ye as g,
|
|
2094
|
+
ze as h,
|
|
2094
2095
|
je as i,
|
|
2095
2096
|
Mt as j,
|
|
2096
2097
|
Ee as k,
|
package/dist/index.es.js
CHANGED
|
@@ -4,7 +4,7 @@ import { C as T, F as b } from "./form-group-BB7dLJir.js";
|
|
|
4
4
|
import { C as D, 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 w } from "./inputs-9udyzkHR.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, x as z, O as K, z as Q, E as _, G as X, H as Y, D as Z, m as $, n as aa, R as ea, Q as sa, w as oa, o as ta, c as ra, a as na, b as la, U as ia, l as pa, g as ma, i as da, h as ua, j as ga, e as Ca, k as ca, F as Ta, d as ba, f as Ia, I as Da, L as Sa, y as Fa, M as Ba, p as Pa, N as ka, P as Ma, t as xa, u as fa, S as va, r as Na, s as ya, T as ha, J as Ua, K as La, q as Wa, v as wa } from "./empty-state-
|
|
7
|
+
import { A as j, B as q, C as J, x as z, O as K, z as Q, E as _, G as X, H as Y, D as Z, m as $, n as aa, R as ea, Q as sa, w as oa, o as ta, c as ra, a as na, b as la, U as ia, l as pa, g as ma, i as da, h as ua, j as ga, e as Ca, k as ca, F as Ta, d as ba, f as Ia, I as Da, L as Sa, y as Fa, M as Ba, p as Pa, N as ka, P as Ma, t as xa, u as fa, S as va, r as Na, s as ya, T as ha, J as Ua, K as La, q as Wa, v as wa } from "./empty-state-BbkagIqj.js";
|
|
8
8
|
import { A as Ra, b as Aa, C as Ga, D as Oa, a 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-6CLMTieN.js";
|
|
9
9
|
import { B as Xa, p as Ya, C as Za, j as $a, D as ae, m as ee, k as se, H as oe, I as te, N as re, O as ne, P as le, S as ie, n as pe, o as me, x as de, s as ue, q as ge, r as Ce, T as ce, t as Te, w as be, u as Ie, v as De, l as Se, U as Fe, W as Be, f as Pe, h as ke, i as Me, c as xe, d as fe, b as ve, e as Ne, a as ye, g as he } from "./signature-panel-JSfsTsVc.js";
|
|
10
10
|
import { B as Le, I as We, M as we, d as He, e as Re, g as Ae, N as Ge, b as Oe, a as Ee, f as Ve, P as je, c as qe, S as Je, T as ze } from "./mobile-nav-wrapper-Dm9DinRD.js";
|
package/dist/molecules.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as s, B as t, C as r, x as e, O as i, z as n, E as m, G as l, H as d, D as C, m as p, n as D, R as S, Q as g, w as u, o as c, c as F, a as T, b as P, U as w, l as A, g as I, i as f, h as b, j as y, e as B, k as M, F as U, d as k, f as x, I as L, L as R, y as v, M as E, p as N, N as h, P as G, t as O, u as j, S as q, r as z, s as H, T as J, J as K, K as Q, q as _, v as V } from "./empty-state-
|
|
1
|
+
import { A as s, B as t, C as r, x as e, O as i, z as n, E as m, G as l, H as d, D as C, m as p, n as D, R as S, Q as g, w as u, o as c, c as F, a as T, b as P, U as w, l as A, g as I, i as f, h as b, j as y, e as B, k as M, F as U, d as k, f as x, I as L, L as R, y as v, M as E, p as N, N as h, P as G, t as O, u as j, S as q, r as z, s as H, T as J, J as K, K as Q, q as _, v as V } from "./empty-state-BbkagIqj.js";
|
|
2
2
|
import { A as X, P as Y, g as Z } from "./range-calendar-6CLMTieN.js";
|
|
3
3
|
export {
|
|
4
4
|
s as Alert,
|
|
@@ -109,7 +109,7 @@ export class DrawerGesture {
|
|
|
109
109
|
*/
|
|
110
110
|
updateBackdropOpacity(opacity: number): void;
|
|
111
111
|
/**
|
|
112
|
-
* Animates the drawer closing by translating
|
|
112
|
+
* Animates the drawer closing by translating the entire modal off-screen
|
|
113
113
|
*
|
|
114
114
|
* @returns {void}
|
|
115
115
|
*/
|
|
@@ -58,6 +58,7 @@ export class Drawer extends Modal {
|
|
|
58
58
|
/**
|
|
59
59
|
* Gets gesture event handlers for modal content.
|
|
60
60
|
* Returns event props to be spread onto the modal-content element.
|
|
61
|
+
* Handlers are bound methods that will work once gesture is initialized.
|
|
61
62
|
*
|
|
62
63
|
* @returns {object}
|
|
63
64
|
*/
|
package/package.json
CHANGED