@megha-ui/react 1.2.299 → 1.2.300

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.
@@ -1,4 +1,4 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
1
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { memo, useEffect, useRef, useState } from "react";
3
3
  import GroupedRow from "./groupedRow";
4
4
  import SummariseDetails from "./SummariseDetails";
@@ -74,7 +74,7 @@ const GroupedGrid = ({ groupedData, rowOpened, startIndex, endIndex, alternateRo
74
74
  1 ===
75
75
  index;
76
76
  if (column) {
77
- return (_jsxs("div", { style: {
77
+ return (_jsx("div", { style: {
78
78
  width: widthMode === "auto"
79
79
  ? "auto"
80
80
  : (column === null || column === void 0 ? void 0 : column.width)
@@ -86,13 +86,13 @@ const GroupedGrid = ({ groupedData, rowOpened, startIndex, endIndex, alternateRo
86
86
  flexGrow: widthMode === "auto" ? 1 : 0,
87
87
  flexShrink: widthMode === "auto" ? 1 : 0,
88
88
  padding: "0.5rem",
89
- }, className: `column index-${columnKey}`, children: [(() => {
90
- const keys = (item.groupedKey || "").split(">");
91
- const vals = (item.groupedValue || "").split(">");
92
- const idx = keys.indexOf(columnKey);
93
- const display = idx > -1 ? vals[idx] : "";
94
- return _jsx("div", { children: display });
95
- })(), showCount && _jsx("span", { children: `(${item === null || item === void 0 ? void 0 : item.count})` })] }));
89
+ }, className: `column index-${columnKey}`, children: showCount && _jsxs(_Fragment, { children: [(() => {
90
+ const keys = (item.groupedKey || "").split(">");
91
+ const vals = (item.groupedValue || "").split(">");
92
+ const idx = keys.indexOf(columnKey);
93
+ const display = idx > -1 ? vals[idx] : "";
94
+ return _jsx("div", { children: display });
95
+ })(), _jsx("span", { children: `(${item === null || item === void 0 ? void 0 : item.count})` })] }) }));
96
96
  }
97
97
  return null;
98
98
  }), isSummarise &&
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@megha-ui/react",
3
- "version": "1.2.299",
3
+ "version": "1.2.300",
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",