@ornikar/kitt-universal 32.5.1 → 32.5.3-canary.00bf1c2f290a49f97769efc35573c95654f3a672.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.
@@ -5463,10 +5463,11 @@ function InputPressable(_ref) {
5463
5463
  return /*#__PURE__*/jsx(Pressable$2, _objectSpread({}, props));
5464
5464
  }
5465
5465
 
5466
- var inputTextContainer = "kitt-u_inputTextContainer_i1encr9g";
5466
+ var styles$3 = {"inputTextContainer":"InputTextContainer-module_inputTextContainer__gzH8Q"};
5467
+
5467
5468
  function InputTextContainer(props) {
5468
5469
  return /*#__PURE__*/jsx("div", _objectSpread({
5469
- className: inputTextContainer
5470
+ className: styles$3.inputTextContainer
5470
5471
  }, props));
5471
5472
  }
5472
5473
 
@@ -6372,15 +6373,16 @@ var DatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
6372
6373
  });
6373
6374
 
6374
6375
  function DocumentPicker(_ref) {
6375
- var onDocumentUpload = _ref.onDocumentUpload,
6376
- children = _ref.children,
6376
+ var children = _ref.children,
6377
6377
  disabled = _ref.disabled,
6378
- documentPickerOptions = _ref.documentPickerOptions;
6378
+ documentPickerOptions = _ref.documentPickerOptions,
6379
+ onDocumentUpload = _ref.onDocumentUpload,
6380
+ onGetDocumentAsyncError = _ref.onGetDocumentAsyncError;
6379
6381
  var childElement = Children.only(children);
6380
6382
  var handlePickDocument = /*#__PURE__*/function () {
6381
6383
  var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
6382
- var _childElement$props$o, _childElement$props, _result$assets$;
6383
- var result;
6384
+ var _childElement$props$o, _childElement$props, _result$assets;
6385
+ var result, file;
6384
6386
  return _regeneratorRuntime().wrap(function (_context) {
6385
6387
  while (1) switch (_context.prev = _context.next) {
6386
6388
  case 0:
@@ -6391,20 +6393,33 @@ function DocumentPicker(_ref) {
6391
6393
  return _context.abrupt("return");
6392
6394
  case 2:
6393
6395
  (_childElement$props$o = (_childElement$props = childElement.props).onPress) === null || _childElement$props$o === void 0 || _childElement$props$o.call(_childElement$props);
6394
- _context.next = 5;
6396
+ _context.prev = 3;
6397
+ _context.next = 6;
6395
6398
  return getDocumentAsync(_objectSpread(_objectSpread({}, documentPickerOptions), {}, {
6396
6399
  multiple: false
6397
6400
  }));
6398
- case 5:
6401
+ case 6:
6399
6402
  result = _context.sent;
6400
- if (!result.canceled && (_result$assets$ = result.assets[0]) !== null && _result$assets$ !== void 0 && _result$assets$.file) {
6401
- onDocumentUpload(result.assets[0].file);
6403
+ _context.next = 13;
6404
+ break;
6405
+ case 9:
6406
+ _context.prev = 9;
6407
+ _context.t0 = _context["catch"](3);
6408
+ onGetDocumentAsyncError === null || onGetDocumentAsyncError === void 0 || onGetDocumentAsyncError();
6409
+ result = {
6410
+ canceled: true,
6411
+ assets: null
6412
+ };
6413
+ case 13:
6414
+ file = (_result$assets = result.assets) === null || _result$assets === void 0 || (_result$assets = _result$assets.at(0)) === null || _result$assets === void 0 ? void 0 : _result$assets.file;
6415
+ if (!result.canceled && file) {
6416
+ onDocumentUpload(file);
6402
6417
  }
6403
- case 7:
6418
+ case 15:
6404
6419
  case "end":
6405
6420
  return _context.stop();
6406
6421
  }
6407
- }, _callee);
6422
+ }, _callee, null, [[3, 9]]);
6408
6423
  }));
6409
6424
  return function () {
6410
6425
  return _ref2.apply(this, arguments);
@@ -7167,6 +7182,9 @@ var InputPassword = /*#__PURE__*/forwardRef(function (_ref, ref) {
7167
7182
  right: right || /*#__PURE__*/jsx(InputPressable, {
7168
7183
  testID: "kitt.InputPassword.passwordToggle",
7169
7184
  hitSlop: 20,
7185
+ style: {
7186
+ top: 15
7187
+ },
7170
7188
  accessibilityRole: "button",
7171
7189
  onPress: function () {
7172
7190
  return setIsVisible(function (prev) {
@@ -7704,7 +7722,8 @@ var TextArea = /*#__PURE__*/forwardRef(function (_ref, ref) {
7704
7722
  ref: ref,
7705
7723
  multiline: true,
7706
7724
  textAlignVertical: "top",
7707
- minHeight: "kitt.forms.textArea.minHeight"
7725
+ minHeight: "kitt.forms.textArea.minHeight",
7726
+ height: "100%"
7708
7727
  }, props), {}, {
7709
7728
  onChange: function (e) {
7710
7729
  if (!limit || e.nativeEvent.text.length <= limit) {