labsense-ui-kit 1.4.51 → 1.4.53

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, {
@@ -12102,6 +12100,12 @@ var CheckBox = function CheckBox(_ref11) {
12102
12100
  onChange: function onChange(e) {
12103
12101
  return _onChange(e.target.checked);
12104
12102
  },
12103
+ onKeyDown: function onKeyDown(e) {
12104
+ if (e.key === 'Enter') {
12105
+ e.preventDefault();
12106
+ _onChange(!checked);
12107
+ }
12108
+ },
12105
12109
  disabled: disabled,
12106
12110
  "$borderSize": borderSize
12107
12111
  })), label && React.createElement(LabelSpan, {