@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.
@@ -8695,8 +8695,7 @@
8695
8695
  icon: {
8696
8696
  width: 20,
8697
8697
  height: 20,
8698
- flexShrink: 0,
8699
- transition: "color 0.25s ease-in-out"
8698
+ flexShrink: 0
8700
8699
  },
8701
8700
  iconFromLeft: {
8702
8701
  flexDirection: "row",
@@ -24929,11 +24928,12 @@
24929
24928
  }
24930
24929
  };
24931
24930
  var items = enabledColumns !== null && enabledColumns !== void 0 ? enabledColumns : Object.keys(config);
24931
+ var isEditable = trueReactPlatformHelpers.isNotEmpty(onRowClick) || trueReactPlatformHelpers.isNotEmpty(onRowHover);
24932
24932
  var _obj;
24933
24933
  return /* @__PURE__ */ jsxs(Fragment, {
24934
24934
  children: [
24935
24935
  /* @__PURE__ */ jsx("tr", _object_spread_props$f(_object_spread$g({
24936
- className: clsx(classes.root, (_obj = {}, _define_property$h(_obj, classes.active, isActive), _define_property$h(_obj, classes.editable, trueReactPlatformHelpers.isNotEmpty(onRowClick) || trueReactPlatformHelpers.isNotEmpty(onRowHover)), _define_property$h(_obj, classes.clickable, trueReactPlatformHelpers.isNotEmpty(onRowClick) || trueReactPlatformHelpers.isNotEmpty(expandableRowComponent)), _obj)),
24936
+ className: clsx(classes.root, (_obj = {}, _define_property$h(_obj, classes.active, isActive), _define_property$h(_obj, classes.editable, isEditable), _define_property$h(_obj, classes.clickable, trueReactPlatformHelpers.isNotEmpty(onRowClick) || trueReactPlatformHelpers.isNotEmpty(expandableRowComponent)), _obj)),
24937
24937
  onMouseEnter: function(e) {
24938
24938
  if (uniqueField !== void 0 && onRowHover !== void 0) {
24939
24939
  e.stopPropagation();
@@ -24944,6 +24944,8 @@
24944
24944
  onMouseLeave: handleMouseLeave,
24945
24945
  onClick: handleRowClick
24946
24946
  }, addDataAttributes(_object_spread_props$f(_object_spread$g({}, rowData), {
24947
+ active: isActive ? true : void 0,
24948
+ editable: isEditable ? true : void 0,
24947
24949
  isExpandableComponentActive: nestedComponent.isOpen ? true : void 0
24948
24950
  }))), {
24949
24951
  children: items.map(function(key, i) {