@megha-ui/react 1.2.288 → 1.2.290

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.
@@ -705,7 +705,6 @@ const Grid = ({ columns, wrapperClass, updateGridColumns, data, height, sortable
705
705
  const groupedArray = sets.length
706
706
  ? groupByMultipleKeys(sortedData, sets)
707
707
  : [];
708
- console.log({ groupedArray });
709
708
  const flatGroupedArray = flattenGroupedData(groupedArray, 1);
710
709
  setGroupedData(flatGroupedArray);
711
710
  const grouped = flatGroupedArray
@@ -44,7 +44,6 @@ const GroupedGrid = ({ groupedData, rowOpened, startIndex, endIndex, alternateRo
44
44
  })
45
45
  .map((item, gIndex) => {
46
46
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
47
- console.log(item.groupedKey);
48
47
  if (gIndex >= startIndex && gIndex <= endIndex)
49
48
  return item.type === "main" ? (_jsxs("div", { style: {
50
49
  width: "100%",
@@ -54,7 +53,7 @@ const GroupedGrid = ({ groupedData, rowOpened, startIndex, endIndex, alternateRo
54
53
  height: "max-content",
55
54
  boxSizing: "border-box", // Include padding and borders in the element's total width and height
56
55
  backgroundColor: "var(--summary-bg)",
57
- }, children: [_jsx("span", { style: {
56
+ }, onClick: () => updateRowOpened(item.groupedValue), children: [_jsx("span", { style: {
58
57
  fontSize: "inherit",
59
58
  marginRight: "0.5rem",
60
59
  color: "var(--foreground)",
@@ -69,6 +68,7 @@ const GroupedGrid = ({ groupedData, rowOpened, startIndex, endIndex, alternateRo
69
68
  justifyContent: "center",
70
69
  }, children: rowOpened.includes(item.groupedValue || "") ? "-" : "+" }), (_a = item.groupedKey) === null || _a === void 0 ? void 0 : _a.split(">").filter((key) => key !== item.key).map((columnKey) => {
71
70
  const column = gridColumns.find((column) => column.key === columnKey);
71
+ console.log(columnKey);
72
72
  if (column) {
73
73
  return (_jsx("div", { style: {
74
74
  width: widthMode === "auto"
@@ -107,7 +107,7 @@ const GroupedGrid = ({ groupedData, rowOpened, startIndex, endIndex, alternateRo
107
107
  flexGrow: 0,
108
108
  cursor: "pointer",
109
109
  padding: "0.5rem",
110
- }, className: `group-column ${item.key}`, onClick: () => updateRowOpened(item.groupedValue), children: _jsxs("div", { style: {
110
+ }, className: `group-column ${item.key}`, children: _jsxs("div", { style: {
111
111
  display: "flex",
112
112
  alignItems: "center",
113
113
  flexWrap: "wrap",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@megha-ui/react",
3
- "version": "1.2.288",
3
+ "version": "1.2.290",
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",