@stokelp/ui 2.37.3 → 2.37.4

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.js CHANGED
@@ -112,14 +112,15 @@ 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
- 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
- }
115
+ R && setTimeout(() => {
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
+ }
123
+ }, 1e3);
123
124
  }, [R, w]), /* @__PURE__ */ r(L5, { children: [
124
125
  /* @__PURE__ */ C(Ra, {}),
125
126
  /* @__PURE__ */ C(Ha, { children: /* @__PURE__ */ C(V1.Content, { ref: o, ...p, children: h }) })
@@ -13775,14 +13776,15 @@ const { withProvider: pu, withContext: dC } = K(ta), fu = pu(f(d9.Root), "root")
13775
13776
  defaultValue: !1
13776
13777
  }), { open: R, getContentProps: _ } = z0();
13777
13778
  return R4(() => {
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
- }
13779
+ R && setTimeout(() => {
13780
+ const { id: V } = _();
13781
+ if (!V) return;
13782
+ const m = document.getElementById(V);
13783
+ if (m) {
13784
+ const P = m.querySelector("footer");
13785
+ P && (w ? m.style.setProperty("--footer-height", `${Math.ceil(P.clientHeight)}px`) : m.style.setProperty("--footer-height", "70px"));
13786
+ }
13787
+ }, 100);
13786
13788
  }, [R, w]), /* @__PURE__ */ r(L5, { children: [
13787
13789
  /* @__PURE__ */ C(aC, {}),
13788
13790
  /* @__PURE__ */ C(uC, { children: /* @__PURE__ */ C(V1.Content, { ref: o, ...p, children: h }) })