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