@megha-ui/react 1.2.342 → 1.2.344

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.
@@ -70,27 +70,22 @@ const GroupedGrid = ({ groupedData, rowOpened, startIndex, endIndex, alternateRo
70
70
  display: "flex",
71
71
  alignItems: "center",
72
72
  padding: "0.5rem",
73
- }, className: `column index-${columnKey}`, children: [item.key === columnKey ||
74
- ((item.groupedKey || "")
75
- .split(">")
76
- .filter((item) => item.includes("+"))
77
- .flatMap((item) => item.split("+"))
78
- .includes(columnKey)) && (_jsx("span", { style: {
79
- fontSize: "inherit",
80
- marginRight: "0.5rem",
81
- color: "var(--foreground)",
82
- background: "var(--disabled-bg)",
83
- width: "1rem",
84
- height: "1rem",
85
- flexGrow: 0,
86
- flexShrink: 0,
87
- borderRadius: 4,
88
- display: "flex",
89
- alignItems: "center",
90
- justifyContent: "center",
91
- }, children: rowOpened.includes(item.groupedValue || "")
92
- ? "-"
93
- : "+" })), _jsx("div", { children: (() => {
73
+ }, className: `column index-${columnKey}`, children: [index === 0 && (_jsx("span", { style: {
74
+ fontSize: "inherit",
75
+ marginRight: "0.5rem",
76
+ color: "var(--foreground)",
77
+ background: "var(--disabled-bg)",
78
+ width: "1rem",
79
+ height: "1rem",
80
+ flexGrow: 0,
81
+ flexShrink: 0,
82
+ borderRadius: 4,
83
+ display: "flex",
84
+ alignItems: "center",
85
+ justifyContent: "center",
86
+ }, children: rowOpened.includes(item.groupedValue || "")
87
+ ? "-"
88
+ : "+" })), _jsx("div", { children: (() => {
94
89
  var _a;
95
90
  const keys = (item.groupedKey || "").split(">");
96
91
  const vals = (item.groupedValue || "").split(">");
@@ -109,6 +104,7 @@ const GroupedGrid = ({ groupedData, rowOpened, startIndex, endIndex, alternateRo
109
104
  : compositeIndex > -1
110
105
  ? compositeValues[compositeIndex]
111
106
  : "";
107
+ console.log({ compositeIndex, idx, columnKey });
112
108
  if (display && idx === keys.length - 1) {
113
109
  return `${display} (${item === null || item === void 0 ? void 0 : item.count})`;
114
110
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@megha-ui/react",
3
- "version": "1.2.342",
3
+ "version": "1.2.344",
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",