@megha-ui/react 1.3.15 → 1.3.18

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.
@@ -109,7 +109,7 @@ const GridRow = ({ item, rowStyle, cellStyle, rowHeight, bulkSelect, selectedRow
109
109
  ? `1px solid ${hlBorderColor}`
110
110
  : "", backgroundColor: alternateRowColor && (index + 1) % 2 === 0
111
111
  ? "var(--row-bg)"
112
- : "var(--row-bg-even)" }), onClick: () => handleRowClick(column), children: [draggable && colIndex === draggableIndex && (_jsx("div", { onDragStart: (e) => handleDragStart && handleDragStart(e, index), style: {
112
+ : "var(--row-bg-even)" }), draggable: draggable, onDragStart: (e) => handleDragStart && handleDragStart(e, index), onDragOver: (e) => handleDragOver && handleDragOver(e), onDrop: (e) => handleDrop && handleDrop(e, index), onClick: () => handleRowClick(column), children: [draggable && colIndex === draggableIndex && (_jsx("div", { draggable: draggable, onDragStart: (e) => handleDragStart && handleDragStart(e, index), style: {
113
113
  cursor: "grab",
114
114
  margin: "0 0.25rem",
115
115
  }, children: "\u2630" })), loading ? (_jsx("div", { style: { height: rowHeight }, children: _jsx(Shimmer, { height: 32, width: column.width }) })) : (_jsx("div", { className: (cellData === null || cellData === void 0 ? void 0 : cellData.className) || "", id: `column-${column.key}-${(_b = column.dataType) !== null && _b !== void 0 ? _b : "string"}`, style: {
@@ -177,7 +177,7 @@ const GridRow = ({ item, rowStyle, cellStyle, rowHeight, bulkSelect, selectedRow
177
177
  ? `1px solid ${hlBorderColor}`
178
178
  : "", backgroundColor: alternateRowColor && (index + 1) % 2 === 0
179
179
  ? "var(--row-bg)"
180
- : "var(--row-bg-even)" }), onClick: () => handleRowClick(column), children: [draggable && colIndex === draggableIndex && (_jsx("div", { onDragStart: (e) => handleDragStart && handleDragStart(e, index), style: {
180
+ : "var(--row-bg-even)" }), draggable: draggable, onDragStart: (e) => handleDragStart && handleDragStart(e, index), onDragOver: (e) => handleDragOver && handleDragOver(e), onDrop: (e) => handleDrop && handleDrop(e, index), onClick: () => handleRowClick(column), children: [draggable && colIndex === draggableIndex && (_jsx("div", { draggable: draggable, onDragStart: (e) => handleDragStart && handleDragStart(e, index), style: {
181
181
  cursor: "grab",
182
182
  }, children: _jsx(MdDragIndicator, { size: "1.25rem" }) })), loading ? (_jsx("div", { style: { height: rowHeight }, children: _jsx(Shimmer, { height: 32, width: column.width }) })) : (_jsx("div", { className: (cellData === null || cellData === void 0 ? void 0 : cellData.className) || "", style: {
183
183
  display: "flex",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@megha-ui/react",
3
- "version": "1.3.15",
3
+ "version": "1.3.18",
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",