@true-engineering/true-react-common-ui-kit 3.0.0 → 3.0.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@true-engineering/true-react-common-ui-kit",
3
- "version": "3.0.0",
3
+ "version": "3.0.2",
4
4
  "description": "True Engineering React UI Kit with theming support",
5
5
  "author": "True Engineering (https://trueengineering.ru)",
6
6
  "keywords": [
@@ -37,7 +37,6 @@ export const useStyles = createThemedStyles('Button', {
37
37
  width: 20,
38
38
  height: 20,
39
39
  flexShrink: 0,
40
- transition: 'color 0.25s ease-in-out',
41
40
  },
42
41
 
43
42
  iconFromLeft: {
@@ -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]: isNotEmpty(onRowClick) || isNotEmpty(onRowHover),
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
  >