@ornikar/kitt-universal 7.0.3 → 7.1.1

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.
@@ -219,8 +219,9 @@ function TypographyText(props) {
219
219
  }
220
220
 
221
221
  function TypographyParagraph(props) {
222
+ // role 'paragraph' does not exist in native, it's a web feature only.
222
223
  return /*#__PURE__*/jsx(Typography, _objectSpread({
223
- accessibilityRole: "paragraph"
224
+ accessibilityRole: 'paragraph'
224
225
  }, props));
225
226
  }
226
227
 
@@ -1792,7 +1793,7 @@ var InputTextContainer = withTheme( /*#__PURE__*/styled$1("div")({
1792
1793
  }
1793
1794
  }));
1794
1795
 
1795
- var _excluded$9 = ["id", "right", "minHeight", "state", "internalForceState", "disabled", "autoCorrect", "textContentType", "autoCompleteType", "keyboardType", "onFocus", "onBlur"];
1796
+ var _excluded$9 = ["id", "right", "minHeight", "state", "internalForceState", "disabled", "autoCorrect", "textContentType", "autoCompleteType", "keyboardType", "multiline", "onSubmitEditing", "onFocus", "onBlur"];
1796
1797
  var StyledTextInput = /*#__PURE__*/styled(TextInput).withConfig({
1797
1798
  displayName: "InputText__StyledTextInput",
1798
1799
  componentId: "kitt-universal__sc-uke279-0"
@@ -1836,6 +1837,8 @@ var InputText = /*#__PURE__*/forwardRef(function (_ref4, ref) {
1836
1837
  autoCompleteType = _ref4$autoCompleteTyp === void 0 ? 'off' : _ref4$autoCompleteTyp,
1837
1838
  _ref4$keyboardType = _ref4.keyboardType,
1838
1839
  keyboardType = _ref4$keyboardType === void 0 ? 'default' : _ref4$keyboardType,
1840
+ multiline = _ref4.multiline,
1841
+ onSubmitEditing = _ref4.onSubmitEditing,
1839
1842
  _onFocus = _ref4.onFocus,
1840
1843
  _onBlur = _ref4.onBlur,
1841
1844
  props = _objectWithoutProperties(_ref4, _excluded$9);
@@ -1856,6 +1859,7 @@ var InputText = /*#__PURE__*/forwardRef(function (_ref4, ref) {
1856
1859
  $isDisabled: disabled,
1857
1860
  children: [/*#__PURE__*/jsx(StyledTextInput, _objectSpread(_objectSpread({
1858
1861
  ref: ref,
1862
+ multiline: multiline,
1859
1863
  nativeID: id,
1860
1864
  editable: !disabled,
1861
1865
  keyboardType: keyboardType,
@@ -1874,7 +1878,10 @@ var InputText = /*#__PURE__*/forwardRef(function (_ref4, ref) {
1874
1878
  onBlur: function onBlur(e) {
1875
1879
  setIsFocused(false);
1876
1880
  if (_onBlur) _onBlur(e);
1877
- }
1881
+ },
1882
+ onSubmitEditing: multiline ? function () {
1883
+ return null;
1884
+ } : onSubmitEditing
1878
1885
  })), right ? /*#__PURE__*/jsx(RightInputContainer, {
1879
1886
  children: right
1880
1887
  }) : null]