@megha-ui/react 1.2.636 → 1.2.637

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.
@@ -143,9 +143,9 @@ const SummariseDetails = ({ columns, rowIndex, groupBy, sortable, cellStyle, col
143
143
  return (_jsxs("div", { style: Object.assign(Object.assign({}, cellStyle), { position: "relative", width: widthMode === "auto"
144
144
  ? "auto"
145
145
  : (column === null || column === void 0 ? void 0 : column.width)
146
- ? `calc(${column === null || column === void 0 ? void 0 : column.width} + 25px)`
146
+ ? `calc(${column === null || column === void 0 ? void 0 : column.width} + 2.5rem)`
147
147
  : columnWidths[`column-${_groupBy}`]
148
- ? `calc(${columnWidths === null || columnWidths === void 0 ? void 0 : columnWidths[`column-${_groupBy}`]} + 25px)`
148
+ ? `calc(${columnWidths === null || columnWidths === void 0 ? void 0 : columnWidths[`column-${_groupBy}`]} + 2.5rem)`
149
149
  : "fit-content", padding: _groupBy ? "0.5rem" : 0 }), className: `column ${columnKey}-${(_a = summariseDetails[columnKey || ""]) === null || _a === void 0 ? void 0 : _a.type}`, children: [summariseDetails[columnKey || ""] &&
150
150
  summariseDetails[columnKey || ""].type ? (_jsxs("div", { style: {
151
151
  display: "flex",
@@ -246,9 +246,9 @@ const GridHeader = ({ columns, onSearch, searchQueries, sortable, search, resiza
246
246
  : "menu-false"} column index-${(_c = headerColumns.find((column) => column.key === _groupBy)) === null || _c === void 0 ? void 0 : _c.key}`, style: Object.assign(Object.assign({}, cellStyle), { position: "relative", padding: "0.5rem", textAlign: "left", whiteSpace: "nowrap", textOverflow: "ellipsis", width: widthMode === "auto"
247
247
  ? "auto"
248
248
  : ((_d = headerColumns.find((column) => column.key === _groupBy)) === null || _d === void 0 ? void 0 : _d.width)
249
- ? `calc(${(_e = headerColumns.find((column) => column.key === _groupBy)) === null || _e === void 0 ? void 0 : _e.width} + 25px)`
249
+ ? `calc(${(_e = headerColumns.find((column) => column.key === _groupBy)) === null || _e === void 0 ? void 0 : _e.width} + 2.5rem)`
250
250
  : (hugColumnWidths === null || hugColumnWidths === void 0 ? void 0 : hugColumnWidths[`column-${(_f = headerColumns.find((column) => column.key === _groupBy)) === null || _f === void 0 ? void 0 : _f.key}`])
251
- ? `calc(${hugColumnWidths === null || hugColumnWidths === void 0 ? void 0 : hugColumnWidths[`column-${(_g = headerColumns.find((column) => column.key === _groupBy)) === null || _g === void 0 ? void 0 : _g.key}`]} + 25px)`
251
+ ? `calc(${hugColumnWidths === null || hugColumnWidths === void 0 ? void 0 : hugColumnWidths[`column-${(_g = headerColumns.find((column) => column.key === _groupBy)) === null || _g === void 0 ? void 0 : _g.key}`]} + 2.5rem)`
252
252
  : "fit-content", wordBreak: widthMode === "auto" ? "break-all" : "unset", backgroundColor: "var(--row-header-bg)", borderTop: headerTopBorder, borderBottom: headerBottomBorder, flex: widthMode === "auto" ? 1 : undefined, flexGrow: widthMode === "auto" ? 1 : 0, flexShrink: widthMode === "auto" ? 1 : 0 }), onMouseMove: (e) => handleMouseMove(e), onMouseUp: handleMouseUp, onMouseLeave: handleMouseUp, children: [_jsxs("div", { style: {
253
253
  display: "flex",
254
254
  alignItems: "center",
@@ -60,9 +60,9 @@ const GroupedGrid = ({ groupedData, rowOpened, startIndex, endIndex, alternateRo
60
60
  width: widthMode === "auto"
61
61
  ? "auto"
62
62
  : (column === null || column === void 0 ? void 0 : column.width)
63
- ? `calc(${column === null || column === void 0 ? void 0 : column.width} + 25px)`
63
+ ? `calc(${column === null || column === void 0 ? void 0 : column.width} + 2.5rem)`
64
64
  : columnWidths[`column-${columnKey}`]
65
- ? `calc(${columnWidths[`column-${columnKey}`]} + 25px)`
65
+ ? `calc(${columnWidths[`column-${columnKey}`]} + 2.5rem)`
66
66
  : "fit-content",
67
67
  flex: widthMode === "auto" ? 1 : undefined,
68
68
  flexGrow: widthMode === "auto" ? 1 : 0,
@@ -84,9 +84,9 @@ const GroupedGrid = ({ groupedData, rowOpened, startIndex, endIndex, alternateRo
84
84
  width: widthMode === "auto"
85
85
  ? "auto"
86
86
  : ((_b = gridColumns.find((column) => column.key === item.key)) === null || _b === void 0 ? void 0 : _b.width)
87
- ? `calc(${(_c = gridColumns.find((column) => column.key === item.key)) === null || _c === void 0 ? void 0 : _c.width} + 25px)`
87
+ ? `calc(${(_c = gridColumns.find((column) => column.key === item.key)) === null || _c === void 0 ? void 0 : _c.width} + 2.5rem)`
88
88
  : columnWidths[`column-${item.key}`]
89
- ? `calc(${columnWidths[`column-${item.key}`]} + 25px)`
89
+ ? `calc(${columnWidths[`column-${item.key}`]} + 2.5rem)`
90
90
  : "fit-content",
91
91
  background: "inherit",
92
92
  flexShrink: 0,
@@ -40,9 +40,9 @@ const GroupedRow = ({ item, rowStyle, cellStyle, rowHeight, columns, widthMode,
40
40
  width: widthMode === "auto"
41
41
  ? "auto"
42
42
  : ((_a = columns.find((column) => column.key === _groupBy)) === null || _a === void 0 ? void 0 : _a.width)
43
- ? `calc(${(_b = columns.find((column) => column.key === _groupBy)) === null || _b === void 0 ? void 0 : _b.width} + 25px)`
43
+ ? `calc(${(_b = columns.find((column) => column.key === _groupBy)) === null || _b === void 0 ? void 0 : _b.width} + 2.5rem)`
44
44
  : (hugColumnWidths === null || hugColumnWidths === void 0 ? void 0 : hugColumnWidths[`column-${_groupBy}`])
45
- ? `calc(${hugColumnWidths === null || hugColumnWidths === void 0 ? void 0 : hugColumnWidths[`column-${_groupBy}`]} + 25px)`
45
+ ? `calc(${hugColumnWidths === null || hugColumnWidths === void 0 ? void 0 : hugColumnWidths[`column-${_groupBy}`]} + 2.5rem)`
46
46
  : "fit-content",
47
47
  padding: _groupBy ? "0.5rem" : 0,
48
48
  backgroundColor: alternateRowColor && (index + 1) % 2 === 0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@megha-ui/react",
3
- "version": "1.2.636",
3
+ "version": "1.2.637",
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",