@megha-ui/react 1.3.48 → 1.3.49

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.
@@ -84,8 +84,14 @@ const Dropdown = ({ options, selectedValues, onChange, placeholder = "Select..."
84
84
  rect.bottom -
85
85
  viewportPadding -
86
86
  menuGap -
87
- searchHeight - applyBtnHeight;
88
- const rawSpaceAbove = rect.top - containerTop - viewportPadding - menuGap - searchHeight - applyBtnHeight;
87
+ searchHeight -
88
+ applyBtnHeight;
89
+ const rawSpaceAbove = rect.top -
90
+ containerTop -
91
+ viewportPadding -
92
+ menuGap -
93
+ searchHeight -
94
+ applyBtnHeight;
89
95
  const spaceBelow = Math.max(0, Math.floor(rawSpaceBelow));
90
96
  const spaceAbove = Math.max(0, Math.floor(rawSpaceAbove));
91
97
  const opensUpwards = typeof clickStyle.bottom !== "undefined";
@@ -163,7 +163,7 @@ const NewSummariseDetails = ({ columns, rowIndex, groupBy, sortable, cellStyle,
163
163
  ? `${groupedData}>>${column.key}`
164
164
  : column.key;
165
165
  if (!column.hidden) {
166
- return (_jsxs("div", { className: `${sortable && column.sortable ? "sortable" : ""} ${column.showMenu ? "menu-true" : "menu-false"} ${`column-${column.key}`} ${columnKey}-${(_a = summariseDetails[columnKey]) === null || _a === void 0 ? void 0 : _a.type}`, style: Object.assign(Object.assign({}, cellStyle), { position: "relative", padding: "0.5rem", textAlign: "left", whiteSpace: "nowrap", textOverflow: "ellipsis", flex: widthMode === "auto" ? 1 : undefined, flexGrow: widthMode === "auto" ? 1 : 0, flexShrink: widthMode === "auto" ? 1 : 0, background: "var(--row-header-bg)" }), children: [summariseDetails[columnKey] &&
166
+ return (_jsxs("div", { className: `${sortable && column.sortable ? "sortable" : ""} ${column.showMenu ? "menu-true" : "menu-false"} ${`column-${column.key}`} ${columnKey}-${(_a = summariseDetails[columnKey]) === null || _a === void 0 ? void 0 : _a.type}`, style: Object.assign(Object.assign(Object.assign(Object.assign({}, cellStyle), { position: groupBy !== "" ? "relative" : "sticky" }), (groupBy !== "" ? {} : { top: 0 })), { padding: "0.5rem", textAlign: "left", whiteSpace: "nowrap", textOverflow: "ellipsis", flex: widthMode === "auto" ? 1 : undefined, flexGrow: widthMode === "auto" ? 1 : 0, flexShrink: widthMode === "auto" ? 1 : 0, background: "var(--row-header-bg)" }), children: [summariseDetails[columnKey] &&
167
167
  summariseDetails[columnKey].type ? (_jsxs("div", { style: {
168
168
  display: "flex",
169
169
  alignItems: "center",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@megha-ui/react",
3
- "version": "1.3.48",
3
+ "version": "1.3.49",
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",