@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.
@@ -6,7 +6,11 @@
6
6
  .kitt-u_opacityEnterActive_o1t4vl7b{opacity:1;-webkit-transition:opacity 250ms cubic-bezier(0.42,0,1,1);transition:opacity 250ms cubic-bezier(0.42,0,1,1);}
7
7
  .kitt-u_opacityExit_ogyytm1{opacity:1;}
8
8
  .kitt-u_opacityExitActive_o18xvk52{opacity:0;-webkit-transition:opacity 250ms cubic-bezier(0.42,0,1,1);transition:opacity 250ms cubic-bezier(0.42,0,1,1);}
9
- .kitt-u_inputTextContainer_i1encr9g{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;position:relative;}.kitt-u_inputTextContainer_i1encr9g > *::-ms-clear,.kitt-u_inputTextContainer_i1encr9g > *::-ms-reveal{display:none;}.kitt-u_inputTextContainer_i1encr9g > *{-webkit-transition:border-color 200ms ease-in-out,background-color 200ms ease-in-out;transition:border-color 200ms ease-in-out,background-color 200ms ease-in-out;}
9
+ .InputTextContainer-module_inputTextContainer__gzH8Q > * {
10
+ transition: 200ms ease-in-out;
11
+ align-items: flex-start;
12
+ }
13
+
10
14
  /* Overlay animation styles - uses CSS variables for theme values */
11
15
  .FullscreenModalAnimation-module_overlay-enter__L1J1X {
12
16
  opacity: 0;
@@ -5398,10 +5398,11 @@ function InputPressable({
5398
5398
  });
5399
5399
  }
5400
5400
 
5401
- const inputTextContainer = "kitt-u_inputTextContainer_i1encr9g";
5401
+ const styles$3 = {"inputTextContainer":"InputTextContainer-module_inputTextContainer__gzH8Q"};
5402
+
5402
5403
  function InputTextContainer(props) {
5403
5404
  return /*#__PURE__*/jsxRuntime.jsx("div", {
5404
- className: inputTextContainer,
5405
+ className: styles$3.inputTextContainer,
5405
5406
  ...props
5406
5407
  });
5407
5408
  }
@@ -6314,10 +6315,11 @@ const DatePicker = /*#__PURE__*/react.forwardRef(({
6314
6315
  });
6315
6316
 
6316
6317
  function DocumentPicker({
6317
- onDocumentUpload,
6318
6318
  children,
6319
6319
  disabled,
6320
- documentPickerOptions
6320
+ documentPickerOptions,
6321
+ onDocumentUpload,
6322
+ onGetDocumentAsyncError
6321
6323
  }) {
6322
6324
  const childElement = react.Children.only(children);
6323
6325
  return /*#__PURE__*/react.cloneElement(childElement, {
@@ -6326,12 +6328,22 @@ function DocumentPicker({
6326
6328
  onPress: async () => {
6327
6329
  if (disabled) return;
6328
6330
  childElement.props.onPress?.();
6329
- const result = await expoDocumentPicker.getDocumentAsync({
6330
- ...documentPickerOptions,
6331
- multiple: false
6332
- });
6333
- if (!result.canceled && result.assets[0]?.file) {
6334
- onDocumentUpload(result.assets[0].file);
6331
+ let result;
6332
+ try {
6333
+ result = await expoDocumentPicker.getDocumentAsync({
6334
+ ...documentPickerOptions,
6335
+ multiple: false
6336
+ });
6337
+ } catch (error) {
6338
+ onGetDocumentAsyncError?.();
6339
+ result = {
6340
+ canceled: true,
6341
+ assets: null
6342
+ };
6343
+ }
6344
+ const file = result.assets?.at(0)?.file;
6345
+ if (!result.canceled && file) {
6346
+ onDocumentUpload(file);
6335
6347
  }
6336
6348
  },
6337
6349
  disabled
@@ -6984,6 +6996,9 @@ const InputPassword = /*#__PURE__*/react.forwardRef(({
6984
6996
  right: right || /*#__PURE__*/jsxRuntime.jsx(InputPressable, {
6985
6997
  testID: "kitt.InputPassword.passwordToggle",
6986
6998
  hitSlop: 20,
6999
+ style: {
7000
+ top: 15
7001
+ },
6987
7002
  accessibilityRole: "button",
6988
7003
  onPress: () => setIsVisible(prev => !prev),
6989
7004
  children: /*#__PURE__*/jsxRuntime.jsx(InputIcon, {
@@ -7528,6 +7543,7 @@ const TextArea = /*#__PURE__*/react.forwardRef(({
7528
7543
  multiline: true,
7529
7544
  textAlignVertical: "top",
7530
7545
  minHeight: "kitt.forms.textArea.minHeight",
7546
+ height: "100%",
7531
7547
  ...props,
7532
7548
  onChange: e => {
7533
7549
  if (!limit || e.nativeEvent.text.length <= limit) {