@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.
@@ -587,7 +587,7 @@ var SpinnerButton = function SpinnerButton(_ref) {
587
587
  className = _ref.className;
588
588
  return /*#__PURE__*/React__default.createElement(Button$2, {
589
589
  spinner: /*#__PURE__*/React__default.createElement(Spinner, {
590
- size: 'sm'
590
+ size: 'xs'
591
591
  }),
592
592
  isLoading: isLoading,
593
593
  onClick: onClick,
@@ -687,7 +687,13 @@ var StackedInput = /*#__PURE__*/React__default.forwardRef(function (_ref2, _ref)
687
687
  type: type,
688
688
  isRequired: isRequired
689
689
  }, props, {
690
- ref: _ref
690
+ ref: _ref,
691
+ onKeyDown: function onKeyDown(e) {
692
+ if (e.key === 'Enter') {
693
+ e.stopPropagation();
694
+ e.preventDefault();
695
+ }
696
+ }
691
697
  })), rightElement && rightElement);
692
698
  });
693
699
 
@@ -1067,7 +1073,13 @@ var StackedTextarea = /*#__PURE__*/React__default.forwardRef(function (_ref2, _r
1067
1073
  return /*#__PURE__*/React__default.createElement(Textarea$1, Object.assign({
1068
1074
  ref: _ref
1069
1075
  }, props, {
1070
- fontSize: "13px"
1076
+ fontSize: "13px",
1077
+ onKeyDown: function onKeyDown(e) {
1078
+ if (e.key === 'Enter') {
1079
+ e.stopPropagation();
1080
+ e.preventDefault();
1081
+ }
1082
+ }
1071
1083
  }));
1072
1084
  });
1073
1085
 
@@ -1508,6 +1520,11 @@ var StackedPilledInput = /*#__PURE__*/React__default.forwardRef(function (_ref2,
1508
1520
  }, [latestTokenElement, watchedValue]);
1509
1521
 
1510
1522
  var onHandleKeyDown = function onHandleKeyDown(e) {
1523
+ if (e.key === 'Enter') {
1524
+ e.stopPropagation();
1525
+ e.preventDefault();
1526
+ }
1527
+
1511
1528
  if ((e.key === ' ' || e.key === 'Enter' || e.key === ',' || e.key === 'Tab') && localValue.trim().length) {
1512
1529
  if (e.key === 'Enter' && !localValue.trim().length && tokenIndex !== null) {
1513
1530
  setLocalValue(lastestFormValueToArray[tokenIndex]);