intelicoreact 1.0.24 → 1.0.26

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.
@@ -143,7 +143,7 @@ var AccordionTable = function AccordionTable(_ref) {
143
143
  className: "accordion-table__statistics-td-value-wrapper"
144
144
  }, /*#__PURE__*/_react.default.createElement("p", {
145
145
  className: 'accordion-table__statistics-td-value',
146
- title: value
146
+ title: value ? value : null
147
147
  }, value)));
148
148
  }))), row.titleContent);
149
149
  };
@@ -66,7 +66,8 @@ var MonoAccordion = function MonoAccordion(_ref) {
66
66
  return el.contains(e.target);
67
67
  })) {
68
68
  onClick(e);
69
- e.stopPropagation();
69
+ e === null || e === void 0 ? void 0 : e.preventDefault();
70
+ e === null || e === void 0 ? void 0 : e.stopPropagation();
70
71
  } else return e;
71
72
  };
72
73
 
@@ -13,7 +13,7 @@ var _classnames = _interopRequireDefault(require("classnames"));
13
13
 
14
14
  require("./Status.scss");
15
15
 
16
- var Status = function Status(_ref) {
16
+ function Status(_ref) {
17
17
  var icon = _ref.icon,
18
18
  value = _ref.value,
19
19
  label = _ref.label,
@@ -26,11 +26,17 @@ var Status = function Status(_ref) {
26
26
  pause = _ref$pause === void 0 ? 0 : _ref$pause,
27
27
  className = _ref.className,
28
28
  noBackground = _ref.noBackground,
29
- children = _ref.children;
29
+ children = _ref.children,
30
+ _ref$onClick = _ref.onClick,
31
+ _onClick = _ref$onClick === void 0 ? function () {} : _ref$onClick;
32
+
30
33
  if (!status) return false;
31
34
  var text = children && typeof children === 'string' ? children : value || label || status;
32
35
  var formatedLabel = (text === null || text === void 0 ? void 0 : text[0].toUpperCase()) + (text === null || text === void 0 ? void 0 : text.slice(1));
33
36
  return /*#__PURE__*/_react.default.createElement("div", {
37
+ onClick: function onClick() {
38
+ return _onClick();
39
+ },
34
40
  "data-testid": "test-status",
35
41
  className: (0, _classnames.default)({
36
42
  disabled: disabled
@@ -54,7 +60,7 @@ var Status = function Status(_ref) {
54
60
  j4: icon
55
61
  })
56
62
  }, icon, formatedLabel));
57
- };
63
+ }
58
64
 
59
65
  var _default = Status;
60
66
  exports.default = _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "intelicoreact",
3
- "version": "1.0.24",
3
+ "version": "1.0.26",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "files": [