@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.
- package/dist/ui-core.cjs.development.js +20 -3
- package/dist/ui-core.cjs.development.js.map +1 -1
- package/dist/ui-core.cjs.production.min.js +1 -1
- package/dist/ui-core.cjs.production.min.js.map +1 -1
- package/dist/ui-core.esm.js +20 -3
- package/dist/ui-core.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/button/spinner/index.tsx +1 -1
- package/src/components/input/StackedInput/StackedInput.tsx +12 -1
- package/src/components/input/StackedPilledInput/index.tsx +5 -0
- package/src/components/input/StackedTextarea/StackedTextarea.tsx +13 -1
package/dist/ui-core.esm.js
CHANGED
|
@@ -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: '
|
|
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]);
|