@stokelp/ui 2.37.2 → 2.37.3
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/ui.cjs +2 -2
- package/dist/ui.cjs.map +1 -1
- package/dist/ui.js +16 -18
- package/dist/ui.js.map +1 -1
- package/package.json +1 -1
package/dist/ui.js
CHANGED
|
@@ -112,15 +112,14 @@ const DL = S5(Q0, "header"), zL = S5(f(V1.Title), "title"), kL = S5(f(V1.Trigger
|
|
|
112
112
|
defaultValue: !1
|
|
113
113
|
}), { open: R, getContentProps: _ } = z0();
|
|
114
114
|
return R4(() => {
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
}, 100);
|
|
115
|
+
if (!R) return;
|
|
116
|
+
const { id: V } = _();
|
|
117
|
+
if (!V) return;
|
|
118
|
+
const m = document.getElementById(V);
|
|
119
|
+
if (m) {
|
|
120
|
+
const P = m.querySelector("footer");
|
|
121
|
+
P && (w ? m.style.setProperty("--footer-height", `${Math.ceil(P.clientHeight)}px`) : m.style.setProperty("--footer-height", "70px"));
|
|
122
|
+
}
|
|
124
123
|
}, [R, w]), /* @__PURE__ */ r(L5, { children: [
|
|
125
124
|
/* @__PURE__ */ C(Ra, {}),
|
|
126
125
|
/* @__PURE__ */ C(Ha, { children: /* @__PURE__ */ C(V1.Content, { ref: o, ...p, children: h }) })
|
|
@@ -13776,15 +13775,14 @@ const { withProvider: pu, withContext: dC } = K(ta), fu = pu(f(d9.Root), "root")
|
|
|
13776
13775
|
defaultValue: !1
|
|
13777
13776
|
}), { open: R, getContentProps: _ } = z0();
|
|
13778
13777
|
return R4(() => {
|
|
13779
|
-
|
|
13780
|
-
|
|
13781
|
-
|
|
13782
|
-
|
|
13783
|
-
|
|
13784
|
-
|
|
13785
|
-
|
|
13786
|
-
|
|
13787
|
-
}, 100);
|
|
13778
|
+
if (!R) return;
|
|
13779
|
+
const { id: V } = _();
|
|
13780
|
+
if (!V) return;
|
|
13781
|
+
const m = document.getElementById(V);
|
|
13782
|
+
if (m) {
|
|
13783
|
+
const P = m.querySelector("footer");
|
|
13784
|
+
P && (w ? m.style.setProperty("--footer-height", `${Math.ceil(P.clientHeight)}px`) : m.style.setProperty("--footer-height", "70px"));
|
|
13785
|
+
}
|
|
13788
13786
|
}, [R, w]), /* @__PURE__ */ r(L5, { children: [
|
|
13789
13787
|
/* @__PURE__ */ C(aC, {}),
|
|
13790
13788
|
/* @__PURE__ */ C(uC, { children: /* @__PURE__ */ C(V1.Content, { ref: o, ...p, children: h }) })
|