@megha-ui/react 1.2.91 → 1.2.92

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.
@@ -98,7 +98,7 @@ const GridRow = ({ item, rowStyle, cellStyle, rowHeight, bulkSelect, selectedRow
98
98
  ? `1px solid ${hlBorderColor}`
99
99
  : "", backgroundColor: alternateRowColor && (index + 1) % 2 === 0
100
100
  ? "var(--row-bg)"
101
- : "var(--row-bg-even)" }), children: [draggable && colIndex === draggableIndex && ((0, jsx_runtime_1.jsx)("div", { onDragStart: (e) => handleDragStart && handleDragStart(e, index), id: `drag-index-${draggableIndex}`, style: {
101
+ : "var(--row-bg-even)" }), children: [draggable && colIndex === draggableIndex && ((0, jsx_runtime_1.jsx)("div", { onDragStart: (e) => handleDragStart && handleDragStart(e, index), style: {
102
102
  cursor: "grab",
103
103
  margin: "0 0.25rem",
104
104
  }, children: "\u2630" })), loading ? ((0, jsx_runtime_1.jsx)("div", { style: { width: column.width, height: rowHeight }, children: (0, jsx_runtime_1.jsx)(shimmer_1.default, { height: 32, width: column.width }) })) : ((0, jsx_runtime_1.jsx)("div", { className: (cellData === null || cellData === void 0 ? void 0 : cellData.className) || "", style: {
@@ -149,7 +149,7 @@ const GridRow = ({ item, rowStyle, cellStyle, rowHeight, bulkSelect, selectedRow
149
149
  ? `1px solid ${hlBorderColor}`
150
150
  : "", backgroundColor: alternateRowColor && (index + 1) % 2 === 0
151
151
  ? "var(--row-bg)"
152
- : "var(--row-bg-even)" }), children: [draggable && colIndex === 0 && ((0, jsx_runtime_1.jsx)("div", { onDragStart: (e) => handleDragStart && handleDragStart(e, index), style: {
152
+ : "var(--row-bg-even)" }), children: [draggable && colIndex === draggableIndex && ((0, jsx_runtime_1.jsx)("div", { onDragStart: (e) => handleDragStart && handleDragStart(e, index), style: {
153
153
  cursor: "grab",
154
154
  margin: "0 0.25rem",
155
155
  }, children: "\u2630" })), loading ? ((0, jsx_runtime_1.jsx)("div", { style: { width: column.width, height: rowHeight }, children: (0, jsx_runtime_1.jsx)(shimmer_1.default, { height: 32, width: column.width }) })) : ((0, jsx_runtime_1.jsx)("div", { className: (cellData === null || cellData === void 0 ? void 0 : cellData.className) || "", style: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@megha-ui/react",
3
- "version": "1.2.91",
3
+ "version": "1.2.92",
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.mjs",