@ornikar/kitt-universal 7.0.4 → 7.1.0

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.
@@ -1 +1 @@
1
- {"version":3,"file":"InputText.d.ts","sourceRoot":"","sources":["../../../../src/forms/InputText/InputText.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAgB,SAAS,EAAE,MAAM,OAAO,CAAC;AAErD,OAAO,KAAK,EAAE,SAAS,IAAI,WAAW,EAAE,cAAc,IAAI,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAMjG,OAAO,KAAK,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAI7D,MAAM,WAAW,cAAe,SAAQ,OAAO,CAAC,gBAAgB,EAAE,UAAU,CAAC;IAC3E,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,cAAc,CAAC;IACvB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,gBAAgB;IAChB,kBAAkB,CAAC,EAAE,YAAY,CAAC;CACnC;AAkCD,eAAO,MAAM,SAAS,wGAqDrB,CAAC"}
1
+ {"version":3,"file":"InputText.d.ts","sourceRoot":"","sources":["../../../../src/forms/InputText/InputText.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAgB,SAAS,EAAE,MAAM,OAAO,CAAC;AAErD,OAAO,KAAK,EAAE,SAAS,IAAI,WAAW,EAAE,cAAc,IAAI,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAMjG,OAAO,KAAK,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAI7D,MAAM,WAAW,cAAe,SAAQ,OAAO,CAAC,gBAAgB,EAAE,UAAU,CAAC;IAC3E,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,cAAc,CAAC;IACvB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,gBAAgB;IAChB,kBAAkB,CAAC,EAAE,YAAY,CAAC;CACnC;AAkCD,eAAO,MAAM,SAAS,wGAwDrB,CAAC"}
@@ -2327,7 +2327,7 @@ var InputTextContainer = /*#__PURE__*/styled.View.withConfig({
2327
2327
  displayName: "InputTextContainer"
2328
2328
  })(["position:relative;"]);
2329
2329
 
2330
- var _excluded$7 = ["id", "right", "minHeight", "state", "internalForceState", "disabled", "autoCorrect", "textContentType", "autoCompleteType", "keyboardType", "onFocus", "onBlur"];
2330
+ var _excluded$7 = ["id", "right", "minHeight", "state", "internalForceState", "disabled", "autoCorrect", "textContentType", "autoCompleteType", "keyboardType", "multiline", "onSubmitEditing", "onFocus", "onBlur"];
2331
2331
  var StyledTextInput = /*#__PURE__*/styled(TextInput).withConfig({
2332
2332
  displayName: "InputText__StyledTextInput"
2333
2333
  })(["", " padding:", ";line-height:", ";width:100%;min-height:", "px;"], styledTextInputMixin, function (_ref) {
@@ -2369,6 +2369,8 @@ var InputText = /*#__PURE__*/forwardRef(function (_ref4, ref) {
2369
2369
  autoCompleteType = _ref4$autoCompleteTyp === void 0 ? 'off' : _ref4$autoCompleteTyp,
2370
2370
  _ref4$keyboardType = _ref4.keyboardType,
2371
2371
  keyboardType = _ref4$keyboardType === void 0 ? 'default' : _ref4$keyboardType,
2372
+ multiline = _ref4.multiline,
2373
+ onSubmitEditing = _ref4.onSubmitEditing,
2372
2374
  _onFocus = _ref4.onFocus,
2373
2375
  _onBlur = _ref4.onBlur,
2374
2376
  props = _objectWithoutProperties(_ref4, _excluded$7);
@@ -2389,6 +2391,7 @@ var InputText = /*#__PURE__*/forwardRef(function (_ref4, ref) {
2389
2391
  $isDisabled: disabled,
2390
2392
  children: [/*#__PURE__*/jsx(StyledTextInput, _objectSpread(_objectSpread({
2391
2393
  ref: ref,
2394
+ multiline: multiline,
2392
2395
  nativeID: id,
2393
2396
  editable: !disabled,
2394
2397
  keyboardType: keyboardType,
@@ -2407,7 +2410,10 @@ var InputText = /*#__PURE__*/forwardRef(function (_ref4, ref) {
2407
2410
  onBlur: function onBlur(e) {
2408
2411
  setIsFocused(false);
2409
2412
  if (_onBlur) _onBlur(e);
2410
- }
2413
+ },
2414
+ onSubmitEditing: multiline ? function () {
2415
+ return null;
2416
+ } : onSubmitEditing
2411
2417
  })), right ? /*#__PURE__*/jsx(RightInputContainer, {
2412
2418
  children: right
2413
2419
  }) : null]