@goodhood-web/ui 4.6.0 → 4.6.1

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.
Files changed (3) hide show
  1. package/index.js +1 -1
  2. package/index.mjs +5 -5
  3. package/package.json +1 -1
package/index.mjs CHANGED
@@ -20779,12 +20779,12 @@ const IA = /* @__PURE__ */ z1(zA), NA = "_withKeyboard_4cqyw_147", BA = "_footer
20779
20779
  if (!t || !window.visualViewport) return;
20780
20780
  let a = null, o = null, s = window.visualViewport.height;
20781
20781
  const l = () => {
20782
- var g;
20782
+ var C, v;
20783
20783
  const f = e.current;
20784
20784
  if (!f) return;
20785
- const h = ((g = window.visualViewport) == null ? void 0 : g.height) || 0, p = window.innerHeight - h;
20786
- if (p !== s) {
20787
- if (s = p, o && (clearTimeout(o), o = null), !r) {
20785
+ const h = ((C = window.visualViewport) == null ? void 0 : C.height) || 0, p = ((v = window.visualViewport) == null ? void 0 : v.offsetTop) || 0, g = window.innerHeight - (h + p);
20786
+ if (g !== s) {
20787
+ if (s = g, o && (clearTimeout(o), o = null), !r) {
20788
20788
  f.classList.remove(lt.footerVisible), f.classList.add(lt.footerHidden), o = setTimeout(() => {
20789
20789
  document.documentElement.style.removeProperty("--footer-bottom-keyboard"), o = null;
20790
20790
  }, 300);
@@ -20793,7 +20793,7 @@ const IA = /* @__PURE__ */ z1(zA), NA = "_withKeyboard_4cqyw_147", BA = "_footer
20793
20793
  f.classList.add(lt.footerHidden), f.classList.remove(lt.footerVisible), f.offsetHeight, o = setTimeout(() => {
20794
20794
  document.documentElement.style.setProperty(
20795
20795
  "--footer-bottom-keyboard",
20796
- `${p}px`
20796
+ `${g}px`
20797
20797
  ), f.classList.remove(lt.footerHidden), f.classList.add(lt.footerVisible), o = null;
20798
20798
  }, 300);
20799
20799
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goodhood-web/ui",
3
- "version": "4.6.0",
3
+ "version": "4.6.1",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "repository": "https://github.com/good-hood-gmbh/goodhood-web",