@megha-ui/react 1.2.514 → 1.2.516

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.
@@ -56,6 +56,7 @@ const GridRow = ({ item, rowStyle, cellStyle, rowHeight, bulkSelect, selectedRow
56
56
  }, [columns]);
57
57
  const checkAvailableForTooltip = (id) => {
58
58
  setTimeout(() => {
59
+ var _a;
59
60
  const tooltips = document.querySelectorAll(".react-tooltip");
60
61
  let currentTooltip = [];
61
62
  tooltips.forEach((value) => {
@@ -64,7 +65,11 @@ const GridRow = ({ item, rowStyle, cellStyle, rowHeight, bulkSelect, selectedRow
64
65
  }
65
66
  });
66
67
  currentTooltip = currentTooltip[0];
67
- console.log(currentTooltip.getBoundingClientRect(), window.innerHeight, window.screen.height);
68
+ const { top } = (_a = currentTooltip.getBoundingClientRect()) !== null && _a !== void 0 ? _a : {};
69
+ if (top && currentTooltip) {
70
+ const availableHeight = window.innerHeight - top;
71
+ currentTooltip.setAttribute("max-height", `${availableHeight}px`);
72
+ }
68
73
  }, 50);
69
74
  };
70
75
  return isExpandable &&
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@megha-ui/react",
3
- "version": "1.2.514",
3
+ "version": "1.2.516",
4
4
  "description": "A collection of reusable UI components for React applications, built with TypeScript.",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",