@economic/taco 1.21.6 → 1.21.7
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/components/Table2/components/column/Indicator.d.ts +2 -1
- package/dist/components/Table2/components/row/Context.d.ts +17 -11
- package/dist/components/Table2/components/row/Row.d.ts +1 -6
- package/dist/components/Table2/hooks/useShouldPauseHoverState.d.ts +2 -0
- package/dist/components/Table2/hooks/useTable.d.ts +3 -2
- package/dist/esm/packages/taco/src/components/Table2/Table2.js +7 -3
- package/dist/esm/packages/taco/src/components/Table2/Table2.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table2/components/column/Cell.js +21 -15
- package/dist/esm/packages/taco/src/components/Table2/components/column/Cell.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table2/components/column/Indicator.js +2 -5
- package/dist/esm/packages/taco/src/components/Table2/components/column/Indicator.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table2/components/row/Context.js +44 -15
- package/dist/esm/packages/taco/src/components/Table2/components/row/Context.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table2/components/row/Row.js +23 -44
- package/dist/esm/packages/taco/src/components/Table2/components/row/Row.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table2/hooks/useShouldPauseHoverState.js +19 -0
- package/dist/esm/packages/taco/src/components/Table2/hooks/useShouldPauseHoverState.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Table2/hooks/useTable.js +5 -3
- package/dist/esm/packages/taco/src/components/Table2/hooks/useTable.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table2/utilities/columns.js +8 -0
- package/dist/esm/packages/taco/src/components/Table2/utilities/columns.js.map +1 -1
- package/dist/taco.cjs.development.js +129 -90
- package/dist/taco.cjs.development.js.map +1 -1
- package/dist/taco.cjs.production.min.js +1 -1
- package/dist/taco.cjs.production.min.js.map +1 -1
- package/package.json +2 -2
- package/types.json +7 -2
@@ -10431,6 +10431,57 @@ const useTableRowCreation = (data, tableRef) => {
|
|
10431
10431
|
};
|
10432
10432
|
};
|
10433
10433
|
|
10434
|
+
const RowContext = /*#__PURE__*/React__default.createContext({
|
10435
|
+
isActive: false,
|
10436
|
+
editMode: {
|
10437
|
+
validationErrors: null,
|
10438
|
+
setValidationErrors: () => {},
|
10439
|
+
rowMoveReason: {},
|
10440
|
+
setRowMoveReason: () => {}
|
10441
|
+
},
|
10442
|
+
isHovered: false,
|
10443
|
+
setIsHovered: () => {}
|
10444
|
+
});
|
10445
|
+
const RowContextProvider = ({
|
10446
|
+
isActiveRow,
|
10447
|
+
children,
|
10448
|
+
meta
|
10449
|
+
}) => {
|
10450
|
+
// we use non-css hovered state to determine whether to render actions or not, for performance
|
10451
|
+
const [isHovered, setIsHovered] = React__default.useState(false);
|
10452
|
+
// editing specific functionality
|
10453
|
+
const [validationErrors, setValidationErrors] = React__default.useState(null);
|
10454
|
+
const [rowMoveReason, setRowMoveReason] = React__default.useState({});
|
10455
|
+
// This effect aims to focus the first focussable cell when edit mode is turned on.
|
10456
|
+
React__default.useEffect(() => {
|
10457
|
+
var _meta$tableRef$curren;
|
10458
|
+
const isFocusInsideTable = (_meta$tableRef$curren = meta.tableRef.current) === null || _meta$tableRef$curren === void 0 ? void 0 : _meta$tableRef$curren.contains(document.activeElement);
|
10459
|
+
// If the foucs is outside the table i.e., table action popups, search etc., then don't focus the first cell.
|
10460
|
+
if (isActiveRow && isFocusInsideTable) {
|
10461
|
+
meta.editMode.moveToFirstColumn(meta.focussableColumnIndexes);
|
10462
|
+
}
|
10463
|
+
// We are intentionally not adding activeRow to the depency variable so that everytime active row is changed,
|
10464
|
+
// first focussable cell is not focussed.
|
10465
|
+
}, [meta.editMode.isEditing, meta.focussableColumnIndexes]);
|
10466
|
+
const context = React__default.useMemo(() => {
|
10467
|
+
return {
|
10468
|
+
isActive: isActiveRow,
|
10469
|
+
editMode: {
|
10470
|
+
validationErrors,
|
10471
|
+
setValidationErrors,
|
10472
|
+
rowMoveReason,
|
10473
|
+
setRowMoveReason
|
10474
|
+
},
|
10475
|
+
isHovered,
|
10476
|
+
setIsHovered
|
10477
|
+
};
|
10478
|
+
}, [isActiveRow, isHovered, rowMoveReason, validationErrors]);
|
10479
|
+
return /*#__PURE__*/React__default.createElement(RowContext.Provider, {
|
10480
|
+
value: context
|
10481
|
+
}, children);
|
10482
|
+
};
|
10483
|
+
const useRowContext = () => React__default.useContext(RowContext);
|
10484
|
+
|
10434
10485
|
const COLUMN_ID_FOR_DRAGGABLE = '__draggable';
|
10435
10486
|
const COLUMN_ID_FOR_SELECTION = '__select';
|
10436
10487
|
const COLUMN_ID_FOR_EXPANSION = '__expansion';
|
@@ -10676,6 +10727,13 @@ const RowActionsCell = /*#__PURE__*/React__default.memo(({
|
|
10676
10727
|
table,
|
10677
10728
|
texts
|
10678
10729
|
}) => {
|
10730
|
+
const {
|
10731
|
+
isActive,
|
10732
|
+
isHovered
|
10733
|
+
} = useRowContext();
|
10734
|
+
if (!isHovered && !isActive) {
|
10735
|
+
return null;
|
10736
|
+
}
|
10679
10737
|
const isVisible = action => typeof action.visible !== 'undefined' ? typeof action.visible === 'function' ? action.visible(row.original) : action.visible : true;
|
10680
10738
|
const visibleActions = actions.filter(isVisible);
|
10681
10739
|
const visibleMoreActions = moreActions.filter(isVisible);
|
@@ -11074,28 +11132,6 @@ const getNextIndex = (direction, currentIndex, focussableColumnIndexes) => {
|
|
11074
11132
|
return currentIndexPosition + 1 < length ? currentIndexPosition + 1 : currentIndexPosition;
|
11075
11133
|
};
|
11076
11134
|
|
11077
|
-
const RowContext = /*#__PURE__*/React__default.createContext({
|
11078
|
-
validationErrors: null,
|
11079
|
-
setValidationErrors: () => undefined,
|
11080
|
-
rowMoveReason: {},
|
11081
|
-
setRowMoveReason: () => undefined
|
11082
|
-
});
|
11083
|
-
const useRowContext = () => {
|
11084
|
-
const context = React__default.useContext(RowContext);
|
11085
|
-
if (context === undefined) {
|
11086
|
-
throw new Error('useRowContext must be used within a RowProvider');
|
11087
|
-
}
|
11088
|
-
return context;
|
11089
|
-
};
|
11090
|
-
const RowProvider = ({
|
11091
|
-
children,
|
11092
|
-
...providerProps
|
11093
|
-
}) => {
|
11094
|
-
return /*#__PURE__*/React__default.createElement(RowContext.Provider, {
|
11095
|
-
value: providerProps
|
11096
|
-
}, children);
|
11097
|
-
};
|
11098
|
-
|
11099
11135
|
var IndicatorReason;
|
11100
11136
|
(function (IndicatorReason) {
|
11101
11137
|
IndicatorReason["SEARCH"] = "SEARCH";
|
@@ -11130,7 +11166,8 @@ const useIndicatorText = reason => {
|
|
11130
11166
|
const Indicator = ({
|
11131
11167
|
reason,
|
11132
11168
|
columnName,
|
11133
|
-
mountNode
|
11169
|
+
mountNode,
|
11170
|
+
validationErrors
|
11134
11171
|
}) => {
|
11135
11172
|
const container = React__default.useMemo(() => {
|
11136
11173
|
const element = document.createElement('div');
|
@@ -11138,9 +11175,6 @@ const Indicator = ({
|
|
11138
11175
|
return element;
|
11139
11176
|
}, []);
|
11140
11177
|
const indicatorText = useIndicatorText(reason);
|
11141
|
-
const {
|
11142
|
-
validationErrors
|
11143
|
-
} = useRowContext();
|
11144
11178
|
const hasValidationErrorsInRow = !!validationErrors;
|
11145
11179
|
React__default.useEffect(() => {
|
11146
11180
|
// mountNode could be null when rows are filtered
|
@@ -11255,8 +11289,11 @@ const Cell = function Cell(props) {
|
|
11255
11289
|
focussableColumnIndexes: allFocussableColumnIndexes
|
11256
11290
|
} = meta;
|
11257
11291
|
const {
|
11258
|
-
|
11259
|
-
|
11292
|
+
editMode: {
|
11293
|
+
validationErrors,
|
11294
|
+
rowMoveReason
|
11295
|
+
},
|
11296
|
+
isHovered: isHoveredRow
|
11260
11297
|
} = useRowContext();
|
11261
11298
|
const hasValidationErrorsInRow = !!validationErrors;
|
11262
11299
|
const internalRef = React__default.useRef(null);
|
@@ -11264,7 +11301,6 @@ const Cell = function Cell(props) {
|
|
11264
11301
|
const disableTruncation = (_cell$column$columnDe = cell.column.columnDef.meta) === null || _cell$column$columnDe === void 0 ? void 0 : _cell$column$columnDe.disableTruncation;
|
11265
11302
|
const cellClassName = (_cell$column$columnDe2 = cell.column.columnDef.meta) === null || _cell$column$columnDe2 === void 0 ? void 0 : _cell$column$columnDe2.className;
|
11266
11303
|
const isActiveRow = meta.activeRowIndex === rowIndex;
|
11267
|
-
const isHoveredRow = meta.hoveredRowIndex === rowIndex;
|
11268
11304
|
const isPinned = !!cell.column.getIsPinned();
|
11269
11305
|
const isDragging = meta.dragging[cell.row.id];
|
11270
11306
|
const isSelected = cell.row.getIsSelected();
|
@@ -11276,7 +11312,7 @@ const Cell = function Cell(props) {
|
|
11276
11312
|
const isEditingThisRow = meta.editMode.isEditing && isActiveRow;
|
11277
11313
|
const canEditThisCell = isEditingThisRow && isDataColumn;
|
11278
11314
|
const isEditingThisCell = canEditThisCell && meta.editMode.columnIndex === index;
|
11279
|
-
const isHoveringThisRowWhileEditing = meta.editMode.isEditing && isHoveredRow;
|
11315
|
+
const isHoveringThisRowWhileEditing = meta.editMode.isEditing && isHoveredRow && !meta.shouldPauseHoverState;
|
11280
11316
|
const isIndicatorVisible = Object.keys(rowMoveReason).length > 0;
|
11281
11317
|
React__default.useEffect(() => {
|
11282
11318
|
// Adds padding to the table so that indicator doesn't get cropped
|
@@ -11293,8 +11329,8 @@ const Cell = function Cell(props) {
|
|
11293
11329
|
'border-b': !isLastRow,
|
11294
11330
|
'sticky z-[1]': isPinned,
|
11295
11331
|
// use isHoveredRow rather than css group-hover/row because we want to hide hover state when keyboard navigating
|
11296
|
-
'bg-white': !isActiveRow && !isSelected
|
11297
|
-
'bg-grey-100': !isActiveRow && !isSelected &&
|
11332
|
+
'bg-white': !isActiveRow && !isSelected,
|
11333
|
+
'group-hover/row:bg-grey-100': !isActiveRow && !isSelected && !meta.shouldPauseHoverState,
|
11298
11334
|
'bg-grey-200 group-hover/row:bg-grey-200': isActiveRow && !isSelected,
|
11299
11335
|
'bg-blue-100': isSelected,
|
11300
11336
|
'!wcag-blue-500': isDragging,
|
@@ -11475,7 +11511,7 @@ const Cell = function Cell(props) {
|
|
11475
11511
|
} else {
|
11476
11512
|
moveRow(MOVE_DIR.PREV);
|
11477
11513
|
}
|
11478
|
-
meta.
|
11514
|
+
meta.setShouldPauseHoverState(true);
|
11479
11515
|
return;
|
11480
11516
|
}
|
11481
11517
|
if (!detailModeEditing && event.key === 'ArrowDown') {
|
@@ -11491,7 +11527,7 @@ const Cell = function Cell(props) {
|
|
11491
11527
|
} else {
|
11492
11528
|
moveRow(MOVE_DIR.NEXT);
|
11493
11529
|
}
|
11494
|
-
meta.
|
11530
|
+
meta.setShouldPauseHoverState(true);
|
11495
11531
|
return;
|
11496
11532
|
}
|
11497
11533
|
};
|
@@ -11538,10 +11574,13 @@ const EditingCell = /*#__PURE__*/React__default.memo( /*#__PURE__*/React__defaul
|
|
11538
11574
|
table
|
11539
11575
|
} = props;
|
11540
11576
|
const {
|
11541
|
-
|
11542
|
-
|
11543
|
-
|
11544
|
-
|
11577
|
+
editMode: {
|
11578
|
+
validationErrors,
|
11579
|
+
setValidationErrors,
|
11580
|
+
rowMoveReason,
|
11581
|
+
setRowMoveReason
|
11582
|
+
},
|
11583
|
+
isHovered
|
11545
11584
|
} = useRowContext();
|
11546
11585
|
const controlRef = useMergedRef(ref);
|
11547
11586
|
const cellId = cell.column.id;
|
@@ -11553,7 +11592,7 @@ const EditingCell = /*#__PURE__*/React__default.memo( /*#__PURE__*/React__defaul
|
|
11553
11592
|
globalFilter
|
11554
11593
|
} = table.getState();
|
11555
11594
|
const [state, setState] = React__default.useState(value);
|
11556
|
-
const isHoveringAnotherRowWhileEditing = meta.editMode.isEditing && meta.activeRowIndex !== rowIndex &&
|
11595
|
+
const isHoveringAnotherRowWhileEditing = meta.editMode.isEditing && meta.activeRowIndex !== rowIndex && isHovered;
|
11557
11596
|
const hasValidationError = !isHoveringAnotherRowWhileEditing && !!cellValidationError;
|
11558
11597
|
// On each save, the initialValue will be set to the new value of the cell
|
11559
11598
|
const initialValue = React__default.useRef(value);
|
@@ -11734,7 +11773,8 @@ const EditingCell = /*#__PURE__*/React__default.memo( /*#__PURE__*/React__defaul
|
|
11734
11773
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, indicatorReason !== null && /*#__PURE__*/React__default.createElement(Indicator, {
|
11735
11774
|
reason: indicatorReason,
|
11736
11775
|
columnName: String(cell.column.columnDef.header),
|
11737
|
-
mountNode: indicatorMountNode
|
11776
|
+
mountNode: indicatorMountNode,
|
11777
|
+
validationErrors: validationErrors
|
11738
11778
|
}), /*#__PURE__*/React__default.createElement("span", {
|
11739
11779
|
className: "relative flex-grow"
|
11740
11780
|
}, controlComponent, hasValidationError && /*#__PURE__*/React__default.createElement(ValidationError, null, String(cellValidationError))));
|
@@ -12134,6 +12174,21 @@ const useActiveRowStateListener = (table, rows, activeRowIndex) => {
|
|
12134
12174
|
}, [table.getState().columnFilters, rows.length]);
|
12135
12175
|
};
|
12136
12176
|
|
12177
|
+
const useShouldPauseHoverState = () => {
|
12178
|
+
const [shouldPauseHoverState, setShouldPauseHoverState] = React__default.useState(false);
|
12179
|
+
// as soon as the mouse starts moving again, unpause hover state
|
12180
|
+
React__default.useEffect(() => {
|
12181
|
+
const move = () => setShouldPauseHoverState(false);
|
12182
|
+
if (shouldPauseHoverState) {
|
12183
|
+
document.addEventListener('mousemove', move);
|
12184
|
+
}
|
12185
|
+
return () => {
|
12186
|
+
document.removeEventListener('mousemove', move);
|
12187
|
+
};
|
12188
|
+
}, [shouldPauseHoverState]);
|
12189
|
+
return [shouldPauseHoverState, setShouldPauseHoverState];
|
12190
|
+
};
|
12191
|
+
|
12137
12192
|
function useTable$1(children, props, ref) {
|
12138
12193
|
var _settings$columnOrder, _ref, _settings$columnPinni, _settings$columnPinni2, _settings$columnSizin, _settings$columnVisib, _settings$rowDensity;
|
12139
12194
|
const {
|
@@ -12200,7 +12255,7 @@ function useTable$1(children, props, ref) {
|
|
12200
12255
|
const dataColumnEndOffset = actionsForRow.length ? 1 : 0;
|
12201
12256
|
// custom
|
12202
12257
|
const activeRow = useActiveRow(defaultActiveRowIndex);
|
12203
|
-
const [
|
12258
|
+
const [shouldPauseHoverState, setShouldPauseHoverState] = useShouldPauseHoverState();
|
12204
12259
|
const editMode = useEditMode(onSave);
|
12205
12260
|
const [columnOffsets, setColumnOffsets] = React__default.useState(getOffsetsFromSize(initialState.columnPinning, initialState.columnVisibility, initialState.columnSizing));
|
12206
12261
|
const [rowDensity, setRowDensity] = React__default.useState((_settings$rowDensity = settings === null || settings === void 0 ? void 0 : settings.rowDensity) !== null && _settings$rowDensity !== void 0 ? _settings$rowDensity : 'normal');
|
@@ -12273,17 +12328,18 @@ function useTable$1(children, props, ref) {
|
|
12273
12328
|
rowDensity,
|
12274
12329
|
setRowDensity,
|
12275
12330
|
// dragging
|
12331
|
+
enableRowDragging: !!onRowDrag,
|
12276
12332
|
dragging,
|
12277
12333
|
setDragging,
|
12278
12334
|
// computed
|
12279
12335
|
enableColumnReordering: !disableColumnReordering,
|
12336
|
+
shouldPauseHoverState,
|
12337
|
+
setShouldPauseHoverState,
|
12280
12338
|
// resorting
|
12281
12339
|
shouldPauseSortingAndFiltering,
|
12282
12340
|
setShouldPauseSortingAndFiltering,
|
12283
12341
|
// other
|
12284
12342
|
onRowClick,
|
12285
|
-
hoveredRowIndex,
|
12286
|
-
setHoveredRowIndex,
|
12287
12343
|
// data column positions
|
12288
12344
|
dataColumnStartOffset,
|
12289
12345
|
dataColumnEndOffset,
|
@@ -12894,58 +12950,37 @@ function BatchActionsMenu({
|
|
12894
12950
|
}, content));
|
12895
12951
|
}
|
12896
12952
|
|
12897
|
-
const
|
12898
|
-
const Row$1 = ({
|
12953
|
+
const InternalRow = ({
|
12899
12954
|
row,
|
12900
12955
|
rowIndex,
|
12901
12956
|
table,
|
12902
12957
|
...props
|
12903
12958
|
}) => {
|
12959
|
+
const {
|
12960
|
+
setIsHovered
|
12961
|
+
} = useRowContext();
|
12904
12962
|
const meta = table.options.meta;
|
12905
12963
|
const isActiveRow = meta.activeRowIndex === rowIndex;
|
12906
12964
|
const isDragging = meta.dragging[row.id];
|
12907
|
-
const
|
12908
|
-
|
12909
|
-
|
12910
|
-
|
12911
|
-
|
12912
|
-
|
12913
|
-
|
12914
|
-
|
12915
|
-
|
12916
|
-
|
12917
|
-
|
12918
|
-
|
12919
|
-
|
12920
|
-
const
|
12921
|
-
|
12922
|
-
|
12923
|
-
|
12924
|
-
|
12925
|
-
};
|
12926
|
-
const hoverTimerRef = React__default.useRef();
|
12927
|
-
const handleEnter = () => {
|
12928
|
-
hoverTimerRef.current = setTimeout(() => meta.setHoveredRowIndex(rowIndex), HOVER_THRESHOLD_MS);
|
12929
|
-
};
|
12930
|
-
const handleLeave = () => {
|
12931
|
-
clearTimeout(hoverTimerRef.current);
|
12932
|
-
hoverTimerRef.current = undefined;
|
12933
|
-
meta.setHoveredRowIndex(undefined);
|
12934
|
-
};
|
12935
|
-
return /*#__PURE__*/React__default.createElement(RowProvider, {
|
12936
|
-
validationErrors: validationErrors,
|
12937
|
-
setValidationErrors: handleSetValidationErrors,
|
12938
|
-
rowMoveReason: rowMoveReason,
|
12939
|
-
setRowMoveReason: setRowMoveReason
|
12940
|
-
}, /*#__PURE__*/React__default.createElement("div", Object.assign({}, props, {
|
12941
|
-
"aria-current": isActiveRow ? 'true' : undefined,
|
12942
|
-
"aria-grabbed": isDragging ? 'true' : undefined,
|
12943
|
-
"data-row-index": rowIndex,
|
12944
|
-
draggable: true,
|
12945
|
-
onMouseEnter: handleEnter,
|
12946
|
-
onMouseLeave: handleLeave,
|
12947
|
-
role: "row"
|
12948
|
-
})));
|
12965
|
+
const attributes = {
|
12966
|
+
...props,
|
12967
|
+
'aria-current': isActiveRow ? true : undefined,
|
12968
|
+
'aria-grabbed': isDragging ? true : undefined,
|
12969
|
+
'data-row-index': rowIndex,
|
12970
|
+
draggable: meta.enableRowDragging ? true : undefined,
|
12971
|
+
onMouseEnter: () => setIsHovered(true),
|
12972
|
+
onMouseLeave: () => setIsHovered(false),
|
12973
|
+
role: 'row'
|
12974
|
+
};
|
12975
|
+
return /*#__PURE__*/React__default.createElement("div", Object.assign({}, attributes));
|
12976
|
+
};
|
12977
|
+
const Row$1 = props => {
|
12978
|
+
const meta = props.table.options.meta;
|
12979
|
+
const isActiveRow = meta.activeRowIndex === props.rowIndex;
|
12980
|
+
return /*#__PURE__*/React__default.createElement(RowContextProvider, {
|
12981
|
+
isActiveRow: isActiveRow,
|
12982
|
+
meta: props.table.options.meta
|
12983
|
+
}, /*#__PURE__*/React__default.createElement(InternalRow, Object.assign({}, props)));
|
12949
12984
|
};
|
12950
12985
|
|
12951
12986
|
const Column$1 = ({
|
@@ -13601,7 +13636,10 @@ const Table2 = /*#__PURE__*/React__default.forwardRef(function Table2(props, ref
|
|
13601
13636
|
meta.setActiveRowIndex(0);
|
13602
13637
|
virtualiser.scrollToOffset(0);
|
13603
13638
|
} else {
|
13604
|
-
meta.moveToPreviousRow(rows, nextIndex =>
|
13639
|
+
meta.moveToPreviousRow(rows, nextIndex => {
|
13640
|
+
meta.setShouldPauseHoverState(true);
|
13641
|
+
virtualiser.scrollToIndex(nextIndex - 1);
|
13642
|
+
});
|
13605
13643
|
}
|
13606
13644
|
return;
|
13607
13645
|
} else if (event.key === 'ArrowDown') {
|
@@ -13611,6 +13649,7 @@ const Table2 = /*#__PURE__*/React__default.forwardRef(function Table2(props, ref
|
|
13611
13649
|
virtualiser.scrollToOffset(virtualiser.totalSize + 1);
|
13612
13650
|
} else {
|
13613
13651
|
meta.moveToNextRow(rows, nextIndex => {
|
13652
|
+
meta.setShouldPauseHoverState(true);
|
13614
13653
|
// the virtualiser doesn't always scroll right to the bottom for the last row
|
13615
13654
|
if (nextIndex === rows.length - 1) {
|
13616
13655
|
var _tableRef$current;
|
@@ -13752,9 +13791,9 @@ const Table2 = /*#__PURE__*/React__default.forwardRef(function Table2(props, ref
|
|
13752
13791
|
}
|
13753
13792
|
};
|
13754
13793
|
let handleMouseLeave;
|
13755
|
-
if (meta.
|
13794
|
+
if (meta.shouldPauseHoverState) {
|
13756
13795
|
// sometimes the row's onMouseLeave doesn't trigger, this adds some extra redundancy
|
13757
|
-
handleMouseLeave = () => meta.
|
13796
|
+
handleMouseLeave = () => meta.setShouldPauseHoverState(false);
|
13758
13797
|
}
|
13759
13798
|
const className = cn('bg-white border border-grey-300 focus:yt-focus focus:border-blue-500 grid auto-rows-max overflow-auto relative rounded group', props.className);
|
13760
13799
|
const enableSettingsButton = table.options.enablePinning || table.options.enableHiding || meta.enableColumnReordering;
|