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.
package/dist/index.js CHANGED
@@ -8529,12 +8529,10 @@ var ButtonComponent = function ButtonComponent(_ref21) {
8529
8529
  icon: icon,
8530
8530
  weight: iconWeight,
8531
8531
  size: iconSize ? iconSize : size === 'small' ? 6 : size === 'medium' ? 8 : 10,
8532
- onClick: function onClick(e) {
8533
- if (iconClick) {
8534
- e.stopPropagation();
8535
- iconClick === null || iconClick === void 0 ? void 0 : iconClick();
8536
- }
8537
- },
8532
+ onClick: iconClick ? function (e) {
8533
+ e.stopPropagation();
8534
+ iconClick();
8535
+ } : undefined,
8538
8536
  cursor: disabled ? 'not-allowed' : iconClick ? 'pointer' : 'default',
8539
8537
  color: getIconColor()
8540
8538
  }), text && React__default.createElement(ButtonText, {