@xqmsg/ui-core 0.18.6 → 0.18.7

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.
@@ -594,7 +594,7 @@ var SpinnerButton = function SpinnerButton(_ref) {
594
594
  className = _ref.className;
595
595
  return /*#__PURE__*/React__default.createElement(react.Button, {
596
596
  spinner: /*#__PURE__*/React__default.createElement(react.Spinner, {
597
- size: 'sm'
597
+ size: 'xs'
598
598
  }),
599
599
  isLoading: isLoading,
600
600
  onClick: onClick,
@@ -694,7 +694,13 @@ var StackedInput = /*#__PURE__*/React__default.forwardRef(function (_ref2, _ref)
694
694
  type: type,
695
695
  isRequired: isRequired
696
696
  }, props, {
697
- ref: _ref
697
+ ref: _ref,
698
+ onKeyDown: function onKeyDown(e) {
699
+ if (e.key === 'Enter') {
700
+ e.stopPropagation();
701
+ e.preventDefault();
702
+ }
703
+ }
698
704
  })), rightElement && rightElement);
699
705
  });
700
706
 
@@ -1074,7 +1080,13 @@ var StackedTextarea = /*#__PURE__*/React__default.forwardRef(function (_ref2, _r
1074
1080
  return /*#__PURE__*/React__default.createElement(react.Textarea, Object.assign({
1075
1081
  ref: _ref
1076
1082
  }, props, {
1077
- fontSize: "13px"
1083
+ fontSize: "13px",
1084
+ onKeyDown: function onKeyDown(e) {
1085
+ if (e.key === 'Enter') {
1086
+ e.stopPropagation();
1087
+ e.preventDefault();
1088
+ }
1089
+ }
1078
1090
  }));
1079
1091
  });
1080
1092
 
@@ -1515,6 +1527,11 @@ var StackedPilledInput = /*#__PURE__*/React__default.forwardRef(function (_ref2,
1515
1527
  }, [latestTokenElement, watchedValue]);
1516
1528
 
1517
1529
  var onHandleKeyDown = function onHandleKeyDown(e) {
1530
+ if (e.key === 'Enter') {
1531
+ e.stopPropagation();
1532
+ e.preventDefault();
1533
+ }
1534
+
1518
1535
  if ((e.key === ' ' || e.key === 'Enter' || e.key === ',' || e.key === 'Tab') && localValue.trim().length) {
1519
1536
  if (e.key === 'Enter' && !localValue.trim().length && tokenIndex !== null) {
1520
1537
  setLocalValue(lastestFormValueToArray[tokenIndex]);