wacomm 3.2.0 → 3.4.0
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/modal/Modal.d.ts +4 -1
- package/dist/wacomm.cjs.js +2 -2
- package/dist/wacomm.es.js +13 -11
- package/package.json +1 -1
package/dist/wacomm.es.js
CHANGED
|
@@ -773,8 +773,8 @@ var $n = {
|
|
|
773
773
|
...e.content || {}
|
|
774
774
|
}
|
|
775
775
|
} : n ? er : $n;
|
|
776
|
-
function nr({ isOpen: e = !0, onClose: t, title: n, content: r, shouldCloseOnEsc: i = !0, shouldCloseOnOverlayClick: a = !0, isCloseIconHidden: o = !1, isHeaderHidden: s = !1,
|
|
777
|
-
let
|
|
776
|
+
function nr({ isOpen: e = !0, onClose: t, title: n, content: r, shouldCloseOnEsc: i = !0, shouldCloseOnOverlayClick: a = !0, isCloseIconHidden: o = !1, isHeaderHidden: s = !1, isContentFlush: c = !1, style: l = {} }) {
|
|
777
|
+
let u = N(), [d, f] = y(u ? window.innerWidth : b);
|
|
778
778
|
return p(() => {
|
|
779
779
|
if (typeof window < "u") {
|
|
780
780
|
let e = document.getElementById("__next") || document.getElementById("root");
|
|
@@ -782,14 +782,14 @@ function nr({ isOpen: e = !0, onClose: t, title: n, content: r, shouldCloseOnEsc
|
|
|
782
782
|
}
|
|
783
783
|
}, []), p(() => {
|
|
784
784
|
let e = () => {
|
|
785
|
-
|
|
785
|
+
f(u ? window.innerWidth : b);
|
|
786
786
|
};
|
|
787
787
|
return window.addEventListener("resize", e), () => {
|
|
788
788
|
window.removeEventListener("resize", e);
|
|
789
789
|
};
|
|
790
|
-
}, [
|
|
790
|
+
}, [u]), /* @__PURE__ */ U(st, {
|
|
791
791
|
isOpen: e,
|
|
792
|
-
style: tr(
|
|
792
|
+
style: tr(l, d, u),
|
|
793
793
|
shouldCloseOnEsc: i,
|
|
794
794
|
shouldCloseOnOverlayClick: a,
|
|
795
795
|
onRequestClose: t,
|
|
@@ -807,8 +807,10 @@ function nr({ isOpen: e = !0, onClose: t, title: n, content: r, shouldCloseOnEsc
|
|
|
807
807
|
flex: "1 1 auto",
|
|
808
808
|
minHeight: 0,
|
|
809
809
|
overflowY: "auto",
|
|
810
|
-
|
|
811
|
-
|
|
810
|
+
...c ? {} : {
|
|
811
|
+
scrollbarGutter: "stable",
|
|
812
|
+
paddingRight: 4
|
|
813
|
+
}
|
|
812
814
|
},
|
|
813
815
|
children: r
|
|
814
816
|
})]
|
|
@@ -998,7 +1000,7 @@ function fr({ src: e, alt: t, ref: n = null, className: r = "", containerClassNa
|
|
|
998
1000
|
}
|
|
999
1001
|
//#endregion
|
|
1000
1002
|
//#region src/html/img/SmartImage.tsx
|
|
1001
|
-
function pr({ src: e, fallbackSrc: t, alt: n, ref: r = null, className: i = "", containerClassName: a = "", onClick: o
|
|
1003
|
+
function pr({ src: e, fallbackSrc: t, alt: n, ref: r = null, className: i = "", containerClassName: a = "", onClick: o, style: s = void 0, onLoad: c = void 0 }) {
|
|
1002
1004
|
let l = [e, t].filter((e) => !!e), [u, d] = y(0);
|
|
1003
1005
|
return /* @__PURE__ */ H(hn, {
|
|
1004
1006
|
className: a,
|
|
@@ -19492,7 +19494,7 @@ function VT({ letter: e, className: t = "", onClick: n }) {
|
|
|
19492
19494
|
}
|
|
19493
19495
|
//#endregion
|
|
19494
19496
|
//#region src/avatar/Avatar.tsx
|
|
19495
|
-
function HT({ label: e = "N", className: t = "w-full h-full", imgSrc: n = "", fallbackImgSrc: r = "", onClick: i
|
|
19497
|
+
function HT({ label: e = "N", className: t = "w-full h-full", imgSrc: n = "", fallbackImgSrc: r = "", onClick: i }) {
|
|
19496
19498
|
return n || r ? /* @__PURE__ */ H(pr, {
|
|
19497
19499
|
className: j("Avatar rounded-full w-full h-full", t),
|
|
19498
19500
|
src: n,
|
|
@@ -19507,7 +19509,7 @@ function HT({ label: e = "N", className: t = "w-full h-full", imgSrc: n = "", fa
|
|
|
19507
19509
|
}
|
|
19508
19510
|
//#endregion
|
|
19509
19511
|
//#region src/avatar/AvatarTag.tsx
|
|
19510
|
-
function UT({ label: e = "N", onClick: t
|
|
19512
|
+
function UT({ label: e = "N", onClick: t, className: n = "", imgSrc: r = "", fallbackImgSrc: i = "", avatarClassName: a = "w-8 h-8" }) {
|
|
19511
19513
|
return /* @__PURE__ */ U(Cn, {
|
|
19512
19514
|
className: j("AvatarTag shrink-0 bg-white rounded-lg py-1", n),
|
|
19513
19515
|
children: [/* @__PURE__ */ H(HT, {
|
|
@@ -19524,7 +19526,7 @@ function UT({ label: e = "N", onClick: t = E, className: n = "", imgSrc: r = "",
|
|
|
19524
19526
|
}
|
|
19525
19527
|
//#endregion
|
|
19526
19528
|
//#region src/avatar/AvatarTimeTag.tsx
|
|
19527
|
-
function WT({ label: e = "N", time: t, onClick: n
|
|
19529
|
+
function WT({ label: e = "N", time: t, onClick: n, className: r = "", avatarClassName: i = "h-11 w-11", imgSrc: a = "", fallbackImgSrc: o }) {
|
|
19528
19530
|
return /* @__PURE__ */ U(Cn, {
|
|
19529
19531
|
className: j("AvatarTimeTag bg-white rounded-lg py-1", r),
|
|
19530
19532
|
children: [/* @__PURE__ */ H("div", {
|