1mpacto-react-ui 0.0.84 → 0.0.85
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/index.mjs
CHANGED
@@ -24563,19 +24563,21 @@ const fF = "_collapse_gto9s_1", hF = {
|
|
24563
24563
|
id: t = "id-collapse-1mpacto-react-ui",
|
24564
24564
|
open: n,
|
24565
24565
|
className: r,
|
24566
|
-
maxCollapsedHeight: i = "0px"
|
24566
|
+
maxCollapsedHeight: i = "0px",
|
24567
|
+
triggerCalCulateContainer: a,
|
24568
|
+
delayTriggerCalculateHeight: o = 0
|
24567
24569
|
}) => {
|
24568
|
-
const [
|
24569
|
-
var
|
24570
|
-
const
|
24571
|
-
|
24570
|
+
const [s, l] = R.useState("1000vh"), u = () => {
|
24571
|
+
var d;
|
24572
|
+
const c = ((d = document == null ? void 0 : document.getElementById(t)) == null ? void 0 : d.offsetHeight) ?? 0;
|
24573
|
+
l(c || "1000vh");
|
24572
24574
|
};
|
24573
24575
|
return R.useEffect(() => {
|
24574
|
-
const
|
24575
|
-
return window == null || window.addEventListener("resize",
|
24576
|
-
clearTimeout(
|
24576
|
+
const c = setTimeout(u, o);
|
24577
|
+
return window == null || window.addEventListener("resize", u), window == null || window.addEventListener("load", u), () => {
|
24578
|
+
clearTimeout(c), window == null || window.removeEventListener("resize", u), window == null || window.removeEventListener("load", u);
|
24577
24579
|
};
|
24578
|
-
}, []), /* @__PURE__ */ D.jsx("div", { className: hF.collapse, style: { maxHeight: n ?
|
24580
|
+
}, [a]), /* @__PURE__ */ D.jsx("div", { className: hF.collapse, style: { maxHeight: n ? s : i }, children: /* @__PURE__ */ D.jsx("div", { id: t, className: r ?? "", children: e }) });
|
24579
24581
|
}, gF = "_modal_1j8ss_1", Qr = {
|
24580
24582
|
"center-layout": "_center-layout_1j8ss_1",
|
24581
24583
|
modal: gF,
|