trotl-table 1.0.69 → 1.0.70

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.
package/dist/Table.cjs.js CHANGED
@@ -10977,6 +10977,7 @@ function TableInner({
10977
10977
  return content;
10978
10978
  }, [tableDataFlat, columns, selectedRows, toggleRowSelection, groupRowsById, renderCell, showActions, showDelete, showEdit, showKey, showView, translate, enableDragRow, moveRow, enableMultiSelect, rowHeight, tableId, customColumns, doubleClickEnable, keyWidth, actionColumnStyle, showDuplicate, showDownload, showIcons, showShare, triggerCellCallback, getAccessorKey, getAccessorValue]);
10979
10979
  const rightClickActions = Array.isArray(enableMouseRightClick) ? enableMouseRightClick : [];
10980
+ const [hoveredActionIndex, setHoveredActionIndex] = React.useState(null);
10980
10981
  const rowHeightGetter = ({
10981
10982
  index
10982
10983
  }) => tableDataFlat[index]?.type === "group" ? groupHeaderHeight : rowHeight;
@@ -11124,8 +11125,12 @@ function TableInner({
11124
11125
  style: {
11125
11126
  padding: '8px 12px',
11126
11127
  cursor: 'pointer',
11127
- borderBottom: i < rightClickActions.length - 1 ? '1px solid #eee' : 'none'
11128
+ borderBottom: i < rightClickActions.length - 1 ? '1px solid #eee' : 'none',
11129
+ backgroundColor: hoveredActionIndex === i ? '#f5f5f5' : '#fff',
11130
+ color: hoveredActionIndex === i ? '#000' : '#333'
11128
11131
  },
11132
+ onMouseEnter: () => setHoveredActionIndex(i),
11133
+ onMouseLeave: () => setHoveredActionIndex(null),
11129
11134
  onClick: () => performContextMenuAction(action, contextMenu.row)
11130
11135
  }, action.label || action.text || `Action ${i + 1}`))) : null;
11131
11136
  const contextMenuModalMarkup = contextMenuModal.visible && contextMenuModal.component ? /*#__PURE__*/React.createElement(Modal.default, {