@true-engineering/true-react-common-ui-kit 3.0.0 → 3.0.1
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/true-react-common-ui-kit.js +4 -1
- package/dist/true-react-common-ui-kit.js.map +1 -1
- package/dist/true-react-common-ui-kit.umd.cjs +4 -1
- package/dist/true-react-common-ui-kit.umd.cjs.map +1 -1
- package/package.json +1 -1
- package/src/components/FlexibleTable/components/FlexibleTableRow/FlexibleTableRow.tsx +4 -1
package/package.json
CHANGED
|
@@ -98,13 +98,14 @@ function FlexibleTableRowInner<Values extends Record<string, any>>({
|
|
|
98
98
|
};
|
|
99
99
|
|
|
100
100
|
const items = enabledColumns ?? Object.keys(config);
|
|
101
|
+
const isEditable = isNotEmpty(onRowClick) || isNotEmpty(onRowHover);
|
|
101
102
|
|
|
102
103
|
return (
|
|
103
104
|
<>
|
|
104
105
|
<tr
|
|
105
106
|
className={clsx(classes.root, {
|
|
106
107
|
[classes.active]: isActive,
|
|
107
|
-
[classes.editable]:
|
|
108
|
+
[classes.editable]: isEditable,
|
|
108
109
|
[classes.clickable]: isNotEmpty(onRowClick) || isNotEmpty(expandableRowComponent),
|
|
109
110
|
})}
|
|
110
111
|
onMouseEnter={(e) => {
|
|
@@ -118,6 +119,8 @@ function FlexibleTableRowInner<Values extends Record<string, any>>({
|
|
|
118
119
|
onClick={handleRowClick}
|
|
119
120
|
{...addDataAttributes({
|
|
120
121
|
...rowData,
|
|
122
|
+
active: isActive ? true : undefined,
|
|
123
|
+
editable: isEditable ? true : undefined,
|
|
121
124
|
isExpandableComponentActive: nestedComponent.isOpen ? true : undefined,
|
|
122
125
|
})}
|
|
123
126
|
>
|