labsense-ui-kit 1.4.51 → 1.4.52

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.
@@ -8524,12 +8524,10 @@ var ButtonComponent = function ButtonComponent(_ref21) {
8524
8524
  icon: icon,
8525
8525
  weight: iconWeight,
8526
8526
  size: iconSize ? iconSize : size === 'small' ? 6 : size === 'medium' ? 8 : 10,
8527
- onClick: function onClick(e) {
8528
- if (iconClick) {
8529
- e.stopPropagation();
8530
- iconClick === null || iconClick === void 0 ? void 0 : iconClick();
8531
- }
8532
- },
8527
+ onClick: iconClick ? function (e) {
8528
+ e.stopPropagation();
8529
+ iconClick();
8530
+ } : undefined,
8533
8531
  cursor: disabled ? 'not-allowed' : iconClick ? 'pointer' : 'default',
8534
8532
  color: getIconColor()
8535
8533
  }), text && React.createElement(ButtonText, {