@megha-ui/react 1.3.82 → 1.3.84

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.
@@ -314,7 +314,9 @@ const GridHeader = ({ columns, onSearch, searchQueries, sortable, search, resiza
314
314
  const spaceBelow = Math.max(0, Math.floor(rawSpaceBelow));
315
315
  const spaceAbove = Math.max(0, Math.floor(rawSpaceAbove));
316
316
  const available = Math.max(spaceBelow, spaceAbove);
317
- const resolvedMax = Math.min(available, preferredMaxHeight);
317
+ // Use all available space when positive; only fall back to a
318
+ // sensible default when the calculation yields no usable space.
319
+ const resolvedMax = available > 0 ? available : preferredMaxHeight;
318
320
  setActiveSearchMaxHeight(resolvedMax);
319
321
  };
320
322
  if (activeSearchColumn) {
@@ -625,7 +627,7 @@ const GridHeader = ({ columns, onSearch, searchQueries, sortable, search, resiza
625
627
  var _a, _b, _c;
626
628
  const value = ((_a = selected[0]) === null || _a === void 0 ? void 0 : _a.toString()) || "";
627
629
  handleSearchOptionSelect((_c = (_b = headerColumns.find((column) => column.key === _groupBy)) === null || _b === void 0 ? void 0 : _b.key) !== null && _c !== void 0 ? _c : "", value);
628
- }, searchEnabled: false, className: "flex-1", isIcon: true })] }) }), getColumnData(((_61 = headerColumns.find((column) => column.key === _groupBy)) === null || _61 === void 0 ? void 0 : _61.key) || "", gridData, (_63 = (_62 = headerColumns.find((column) => column.key === _groupBy)) === null || _62 === void 0 ? void 0 : _62.dataType) !== null && _63 !== void 0 ? _63 : "string", combinedColumns !== null && combinedColumns !== void 0 ? combinedColumns : []).length > 0 &&
630
+ }, dropdownListWidth: "max-content", searchEnabled: false, className: "flex-1", isIcon: true })] }) }), getColumnData(((_61 = headerColumns.find((column) => column.key === _groupBy)) === null || _61 === void 0 ? void 0 : _61.key) || "", gridData, (_63 = (_62 = headerColumns.find((column) => column.key === _groupBy)) === null || _62 === void 0 ? void 0 : _62.dataType) !== null && _63 !== void 0 ? _63 : "string", combinedColumns !== null && combinedColumns !== void 0 ? combinedColumns : []).length > 0 &&
629
631
  activeSearchColumn ===
630
632
  (((_64 = headerColumns.find((column) => column.key === _groupBy)) === null || _64 === void 0 ? void 0 : _64.key) || "") && (_jsx("div", { ref: activeSearchListRef, style: {
631
633
  position: "absolute",
@@ -951,7 +953,7 @@ const GridHeader = ({ columns, onSearch, searchQueries, sortable, search, resiza
951
953
  (((_b = searchQueries[(_a = column === null || column === void 0 ? void 0 : column.key) !== null && _a !== void 0 ? _a : ""]) === null || _b === void 0 ? void 0 : _b.type) ||
952
954
  defaultSearchOperation ||
953
955
  "contains");
954
- })) === null || _w === void 0 ? void 0 : _w.label) !== null && _x !== void 0 ? _x : "", withValue: true, searchEnabled: false, className: "flex-1", isIcon: true })] }) }), columnData.length > 0 &&
956
+ })) === null || _w === void 0 ? void 0 : _w.label) !== null && _x !== void 0 ? _x : "", withValue: true, searchEnabled: false, className: "flex-1", dropdownListWidth: "max-content", isIcon: true })] }) }), columnData.length > 0 &&
955
957
  activeSearchColumn === ((column === null || column === void 0 ? void 0 : column.key) || "") && (_jsxs("div", { ref: activeSearchListRef, style: {
956
958
  position: "absolute",
957
959
  top: "calc(100% + 0.25rem)",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@megha-ui/react",
3
- "version": "1.3.82",
3
+ "version": "1.3.84",
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",