master-components-react 2.0.2 → 2.0.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.
@@ -2534,7 +2534,7 @@ const DF = ({
2534
2534
  const S = j.current, E = H.current;
2535
2535
  if (!E || !S) return;
2536
2536
  const B = S.getBoundingClientRect(), W = window.innerHeight, U = window.innerWidth;
2537
- u ? (E.style.position = "fixed", B.bottom + E.offsetHeight > W ? (E.style.top = `${window.scrollY + B.top - E.offsetHeight}px`, E.style.bottom = "unset") : (E.style.top = `${window.scrollY + B.bottom}px`, E.style.bottom = "unset"), B.right > U ? E.style.left = `${window.scrollX + B.left + B.width - E.offsetWidth}px` : E.style.left = `${window.scrollX + B.left}px`) : (B.bottom > W ? (E.style.top = "unset", E.style.bottom = "calc(100% + 8px)") : (E.style.bottom = "unset", E.style.top = "calc(100% + 8px)"), B.right > window.innerWidth ? E.style.left = `calc(100% - ${B.width}px)` : B.left < 0 && (E.style.left = "0px"));
2537
+ u ? (E.style.position = "fixed", B.bottom + E.offsetHeight > W ? (E.style.top = `${window.scrollY + B.top - E.offsetHeight - 8}px`, E.style.bottom = "unset") : (E.style.top = `${window.scrollY + B.bottom + 8}px`, E.style.bottom = "unset"), B.right + B.width > U ? E.style.left = `${window.scrollX + B.left + B.width - E.offsetWidth}px` : E.style.left = `${window.scrollX + B.left}px`) : (B.bottom > W ? (E.style.top = "unset", E.style.bottom = "calc(100% + 8px)") : (E.style.bottom = "unset", E.style.top = "calc(100% + 8px)"), B.right > window.innerWidth ? E.style.left = `calc(100% - ${B.width}px)` : B.left < 0 && (E.style.left = "0px"));
2538
2538
  };
2539
2539
  return bt(() => {
2540
2540
  if (n && z.current.value === "") {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "master-components-react",
3
3
  "private": false,
4
- "version": "2.0.2",
4
+ "version": "2.0.3",
5
5
  "type": "module",
6
6
  "main": "dist/master-components-react.cjs.js",
7
7
  "module": "dist/master-components-react.es.js",