@ornikar/kitt-universal 31.3.0 → 31.3.2-canary.1a5b65d2fbfa0e00bf6c237b7d017b61dce7e75b.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.
Files changed (138) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/definitions/ActionCard/utils/getStateKey.d.ts.map +1 -1
  3. package/dist/definitions/ActionCard/utils/getThemeName.d.ts.map +1 -1
  4. package/dist/definitions/Actions/Actions.d.ts +3 -9
  5. package/dist/definitions/Actions/Actions.d.ts.map +1 -1
  6. package/dist/definitions/Actions/ActionsItem.d.ts +2 -8
  7. package/dist/definitions/Actions/ActionsItem.d.ts.map +1 -1
  8. package/dist/definitions/BaseMessage/helper.d.ts +1 -1
  9. package/dist/definitions/BaseMessage/helper.d.ts.map +1 -1
  10. package/dist/definitions/BottomSheet/BottomSheet.d.ts +1 -1
  11. package/dist/definitions/BottomSheet/BottomSheet.d.ts.map +1 -1
  12. package/dist/definitions/BottomSheet/BottomSheet.web.d.ts +1 -1
  13. package/dist/definitions/BottomSheet/BottomSheet.web.d.ts.map +1 -1
  14. package/dist/definitions/Button/hooks/useNativeAnimation.d.ts.map +1 -1
  15. package/dist/definitions/Button/utils/getButtonTextColorByType.d.ts.map +1 -1
  16. package/dist/definitions/CardModal/CardModal.d.ts.map +1 -1
  17. package/dist/definitions/CardModal/CardModalAnimation/CardModalRotationContainer.d.ts +0 -1
  18. package/dist/definitions/CardModal/CardModalAnimation/CardModalRotationContainer.d.ts.map +1 -1
  19. package/dist/definitions/Choices/hooks/useNativeAnimation.d.ts.map +1 -1
  20. package/dist/definitions/ExternalAppLink/ExternalAppLink.d.ts.map +1 -1
  21. package/dist/definitions/ExternalLink/hooks/useOpenExternalLink.d.ts.map +1 -1
  22. package/dist/definitions/ExternalLink/hooks/useOpenExternalLink.web.d.ts.map +1 -1
  23. package/dist/definitions/GoogleMapsAutocompleteProvider/hooks/useGoogleMapsApi.d.ts +0 -2
  24. package/dist/definitions/GoogleMapsAutocompleteProvider/hooks/useGoogleMapsApi.d.ts.map +1 -1
  25. package/dist/definitions/GoogleMapsAutocompleteProvider/reducer/googleMapsAutocompleteReducer.d.ts +0 -2
  26. package/dist/definitions/GoogleMapsAutocompleteProvider/reducer/googleMapsAutocompleteReducer.d.ts.map +1 -1
  27. package/dist/definitions/GoogleMapsAutocompleteProvider/types.d.ts +0 -2
  28. package/dist/definitions/GoogleMapsAutocompleteProvider/types.d.ts.map +1 -1
  29. package/dist/definitions/GoogleMapsAutocompleteProvider/utils/formatAddressFromGoogle.d.ts +0 -1
  30. package/dist/definitions/GoogleMapsAutocompleteProvider/utils/formatAddressFromGoogle.d.ts.map +1 -1
  31. package/dist/definitions/Highlight/hooks/useNativeAnimation.d.ts.map +1 -1
  32. package/dist/definitions/IconButton/utils/getButtonTypeAndVariant.d.ts.map +1 -1
  33. package/dist/definitions/KittThemeContext.d.ts +0 -1
  34. package/dist/definitions/KittThemeContext.d.ts.map +1 -1
  35. package/dist/definitions/MapMarker/hooks/useNativeAnimation.d.ts.map +1 -1
  36. package/dist/definitions/MapMarker/utils/getBackgroundColor.d.ts.map +1 -1
  37. package/dist/definitions/ModalBehaviour/ModalBehaviour.d.ts.map +1 -1
  38. package/dist/definitions/NavigationModal/NavigationModal.d.ts.map +1 -1
  39. package/dist/definitions/Notification/Notification.d.ts +0 -1
  40. package/dist/definitions/Notification/Notification.d.ts.map +1 -1
  41. package/dist/definitions/Overlay/Overlay.d.ts +0 -1
  42. package/dist/definitions/Overlay/Overlay.d.ts.map +1 -1
  43. package/dist/definitions/Skeleton/Skeleton.d.ts.map +1 -1
  44. package/dist/definitions/TabBar/TabBarItem.d.ts.map +1 -1
  45. package/dist/definitions/TimePicker/TimePicker.web.d.ts +0 -1
  46. package/dist/definitions/TimePicker/TimePicker.web.d.ts.map +1 -1
  47. package/dist/definitions/TimePicker/TimePickerPressable.d.ts +0 -1
  48. package/dist/definitions/TimePicker/TimePickerPressable.d.ts.map +1 -1
  49. package/dist/definitions/Toast/Toast.utils.d.ts +1 -1
  50. package/dist/definitions/Toast/Toast.utils.d.ts.map +1 -1
  51. package/dist/definitions/Tooltip/Arrow.d.ts +0 -1
  52. package/dist/definitions/Tooltip/Arrow.d.ts.map +1 -1
  53. package/dist/definitions/TopNavBar/TopNavBar.d.ts.map +1 -1
  54. package/dist/definitions/forms/Checkbox/Checkbox.d.ts +0 -1
  55. package/dist/definitions/forms/Checkbox/Checkbox.d.ts.map +1 -1
  56. package/dist/definitions/forms/DatePicker/DatePicker.web.d.ts +0 -1
  57. package/dist/definitions/forms/DatePicker/DatePicker.web.d.ts.map +1 -1
  58. package/dist/definitions/forms/DatePicker/components/InputPart.d.ts +0 -1
  59. package/dist/definitions/forms/DatePicker/components/InputPart.d.ts.map +1 -1
  60. package/dist/definitions/forms/DatePicker/components/KeyboardDatePicker.d.ts +0 -1
  61. package/dist/definitions/forms/DatePicker/components/KeyboardDatePicker.d.ts.map +1 -1
  62. package/dist/definitions/forms/DatePicker/components/NativeUIDatePicker/DatePickerAndroid.d.ts +0 -1
  63. package/dist/definitions/forms/DatePicker/components/NativeUIDatePicker/DatePickerAndroid.d.ts.map +1 -1
  64. package/dist/definitions/forms/DatePicker/components/NativeUIDatePicker/DefaultNativeUIDatePicker.d.ts +0 -1
  65. package/dist/definitions/forms/DatePicker/components/NativeUIDatePicker/DefaultNativeUIDatePicker.d.ts.map +1 -1
  66. package/dist/definitions/forms/DatePicker/components/NativeUIDatePicker/NativeUIDatePicker.d.ts +0 -1
  67. package/dist/definitions/forms/DatePicker/components/NativeUIDatePicker/NativeUIDatePicker.d.ts.map +1 -1
  68. package/dist/definitions/forms/DatePicker/components/PressableDateInputs.d.ts +0 -1
  69. package/dist/definitions/forms/DatePicker/components/PressableDateInputs.d.ts.map +1 -1
  70. package/dist/definitions/forms/InputAddress/InputAddress.d.ts +15 -9
  71. package/dist/definitions/forms/InputAddress/InputAddress.d.ts.map +1 -1
  72. package/dist/definitions/forms/InputAddress/InputAddressLegacy.d.ts +15 -0
  73. package/dist/definitions/forms/InputAddress/InputAddressLegacy.d.ts.map +1 -0
  74. package/dist/definitions/forms/InputAddress/InputAddressOption.d.ts +5 -4
  75. package/dist/definitions/forms/InputAddress/InputAddressOption.d.ts.map +1 -1
  76. package/dist/definitions/forms/InputAddress/InputAddressOptionLegacy.d.ts +7 -0
  77. package/dist/definitions/forms/InputAddress/InputAddressOptionLegacy.d.ts.map +1 -0
  78. package/dist/definitions/forms/InputAddress/utils/defaultItemToString.d.ts +0 -1
  79. package/dist/definitions/forms/InputAddress/utils/defaultItemToString.d.ts.map +1 -1
  80. package/dist/definitions/forms/InputAddress/utils/formatInitialValueDescription.d.ts.map +1 -1
  81. package/dist/definitions/forms/InputAddress/utils/formatInitialValueToAutocompletePrediction.d.ts +0 -1
  82. package/dist/definitions/forms/InputAddress/utils/formatInitialValueToAutocompletePrediction.d.ts.map +1 -1
  83. package/dist/definitions/forms/InputEmail/InputEmail.d.ts +0 -1
  84. package/dist/definitions/forms/InputEmail/InputEmail.d.ts.map +1 -1
  85. package/dist/definitions/forms/InputIban/InputIban.d.ts +0 -1
  86. package/dist/definitions/forms/InputIban/InputIban.d.ts.map +1 -1
  87. package/dist/definitions/forms/InputNumber/InputNumber.d.ts +0 -1
  88. package/dist/definitions/forms/InputNumber/InputNumber.d.ts.map +1 -1
  89. package/dist/definitions/forms/InputPassword/InputPassword.d.ts +0 -1
  90. package/dist/definitions/forms/InputPassword/InputPassword.d.ts.map +1 -1
  91. package/dist/definitions/forms/InputPhone/InputPhone.d.ts +0 -1
  92. package/dist/definitions/forms/InputPhone/InputPhone.d.ts.map +1 -1
  93. package/dist/definitions/forms/Radio/Radio.d.ts +1 -1
  94. package/dist/definitions/forms/Radio/Radio.d.ts.map +1 -1
  95. package/dist/definitions/forms/RadioButtonGroup/hooks/useNativeAnimation.d.ts.map +1 -1
  96. package/dist/definitions/forms/TextArea/TextArea.d.ts +0 -1
  97. package/dist/definitions/forms/TextArea/TextArea.d.ts.map +1 -1
  98. package/dist/definitions/forms/Toggle/utils/getStateKey.d.ts.map +1 -1
  99. package/dist/definitions/index.d.ts +4 -1
  100. package/dist/definitions/index.d.ts.map +1 -1
  101. package/dist/definitions/native-base/KittNativeBaseProvider.d.ts +26 -26
  102. package/dist/definitions/native-base/KittNativeBaseProvider.d.ts.map +1 -1
  103. package/dist/definitions/native-base/layout.d.ts.map +1 -1
  104. package/dist/definitions/native-base/primitives.d.ts +2 -2
  105. package/dist/definitions/native-base/primitives.d.ts.map +1 -1
  106. package/dist/definitions/story-components/StoryBlock.d.ts.map +1 -1
  107. package/dist/definitions/story-components/StoryDecorator.d.ts +1 -1
  108. package/dist/definitions/story-components/StoryDecorator.d.ts.map +1 -1
  109. package/dist/definitions/story-components/StorySection.d.ts.map +1 -1
  110. package/dist/definitions/themes/late-ocean/typography.d.ts.map +1 -1
  111. package/dist/definitions/typography/BasicNativeBaseText.d.ts +0 -1
  112. package/dist/definitions/typography/BasicNativeBaseText.d.ts.map +1 -1
  113. package/dist/definitions/typography/Typography.d.ts +227 -225
  114. package/dist/definitions/typography/Typography.d.ts.map +1 -1
  115. package/dist/definitions/typography/utils/getTypographyFamily.d.ts.map +1 -1
  116. package/dist/definitions/utils/hexToRgba.d.ts.map +1 -1
  117. package/dist/definitions/utils/storybook/ChromaticReducedMotionDecorator.d.ts +1 -1
  118. package/dist/definitions/utils/storybook/ChromaticReducedMotionDecorator.d.ts.map +1 -1
  119. package/dist/definitions/utils/storybook/KittThemeDecorator.d.ts +1 -1
  120. package/dist/definitions/utils/storybook/KittThemeDecorator.d.ts.map +1 -1
  121. package/dist/index-metro.es.android.js +190 -107
  122. package/dist/index-metro.es.android.js.map +1 -1
  123. package/dist/index-metro.es.ios.js +190 -107
  124. package/dist/index-metro.es.ios.js.map +1 -1
  125. package/dist/index-node-22.17.cjs.js +125 -42
  126. package/dist/index-node-22.17.cjs.js.map +1 -1
  127. package/dist/index-node-22.17.cjs.web.js +125 -42
  128. package/dist/index-node-22.17.cjs.web.js.map +1 -1
  129. package/dist/index-node-22.17.es.mjs +125 -43
  130. package/dist/index-node-22.17.es.mjs.map +1 -1
  131. package/dist/index-node-22.17.es.web.mjs +125 -43
  132. package/dist/index-node-22.17.es.web.mjs.map +1 -1
  133. package/dist/index.es.js +192 -106
  134. package/dist/index.es.js.map +1 -1
  135. package/dist/index.es.web.js +178 -92
  136. package/dist/index.es.web.js.map +1 -1
  137. package/dist/tsbuildinfo +1 -1
  138. package/package.json +1 -1
@@ -2849,7 +2849,7 @@ function ActionCardDisabled({
2849
2849
  });
2850
2850
  }
2851
2851
 
2852
- const _excluded$S = ["children", "variant", "borderVariant", "borderRadius", "disabled", "isHovered", "isPressed", "isFocused"];
2852
+ const _excluded$T = ["children", "variant", "borderVariant", "borderRadius", "disabled", "isHovered", "isPressed", "isFocused"];
2853
2853
  function ActionCard(_ref) {
2854
2854
  let {
2855
2855
  children,
@@ -2861,7 +2861,7 @@ function ActionCard(_ref) {
2861
2861
  isPressed,
2862
2862
  isFocused
2863
2863
  } = _ref,
2864
- props = _objectWithoutProperties(_ref, _excluded$S);
2864
+ props = _objectWithoutProperties(_ref, _excluded$T);
2865
2865
  return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
2866
2866
  children: disabled ? /*#__PURE__*/jsx(ActionCardDisabled, {
2867
2867
  borderRadius: borderRadius,
@@ -3170,7 +3170,7 @@ const getTypographyTypeWithAncestorValue = (type, typographyTypeInContext) => {
3170
3170
  return !!isAllValuesUndefined && !!typographyTypeInContext ? typographyTypeInContext : type;
3171
3171
  };
3172
3172
 
3173
- const _excluded$R = ["accessibilityRole", "base", "small", "medium", "large", "wide", "type", "variant", "color"];
3173
+ const _excluded$S = ["accessibilityRole", "base", "small", "medium", "large", "wide", "type", "variant", "color"];
3174
3174
  const TypographyFamilyContext = /*#__PURE__*/createContext(null);
3175
3175
  const TypographyTypeContext = /*#__PURE__*/createContext(null);
3176
3176
  const TypographyVariantContext = /*#__PURE__*/createContext(undefined);
@@ -3298,7 +3298,7 @@ const TypographyBase = /*#__PURE__*/forwardRef((_ref, ref) => {
3298
3298
  variant,
3299
3299
  color
3300
3300
  } = _ref,
3301
- otherProps = _objectWithoutProperties(_ref, _excluded$R);
3301
+ otherProps = _objectWithoutProperties(_ref, _excluded$S);
3302
3302
  const sx = useSx();
3303
3303
 
3304
3304
  // ancestors
@@ -3459,14 +3459,14 @@ function Icon({
3459
3459
  });
3460
3460
  }
3461
3461
 
3462
- const _excluded$Q = ["color", "size"],
3462
+ const _excluded$R = ["color", "size"],
3463
3463
  _excluded2$5 = ["color"];
3464
3464
  function TypographyIconSpecifiedColor(_ref) {
3465
3465
  let {
3466
3466
  color,
3467
3467
  size
3468
3468
  } = _ref,
3469
- props = _objectWithoutProperties(_ref, _excluded$Q);
3469
+ props = _objectWithoutProperties(_ref, _excluded$R);
3470
3470
  const colorValue = getTypographyColorValue(color);
3471
3471
  const sx = useSx();
3472
3472
  const {
@@ -3509,7 +3509,7 @@ const getButtonTextColorByType = (type, variant, isHovered, isPressed, isDisable
3509
3509
  return `${baseKey}.default`;
3510
3510
  };
3511
3511
 
3512
- const _excluded$P = ["type", "variant", "isDisabled", "icon", "children", "isHovered", "isPressed", "isFocused", "innerSpacing", "size"];
3512
+ const _excluded$Q = ["type", "variant", "isDisabled", "icon", "children", "isHovered", "isPressed", "isFocused", "innerSpacing", "size"];
3513
3513
  function ButtonContentChildren({
3514
3514
  type,
3515
3515
  icon,
@@ -3609,7 +3609,7 @@ function ButtonContent(_ref) {
3609
3609
  innerSpacing,
3610
3610
  size
3611
3611
  } = _ref,
3612
- props = _objectWithoutProperties(_ref, _excluded$P);
3612
+ props = _objectWithoutProperties(_ref, _excluded$Q);
3613
3613
  const color = getButtonTextColorByType(type, variant, isHovered, isPressed, isDisabled);
3614
3614
  return /*#__PURE__*/jsx(View, {
3615
3615
  _web: {
@@ -3931,7 +3931,7 @@ function LoaderIcon({
3931
3931
  });
3932
3932
  }
3933
3933
 
3934
- const _excluded$O = ["as", "onPress", "disabled", "icon", "stretch"];
3934
+ const _excluded$P = ["as", "onPress", "disabled", "icon", "stretch"];
3935
3935
  const ActionsItem = /*#__PURE__*/forwardRef((_ref, ref) => {
3936
3936
  let {
3937
3937
  as,
@@ -3943,7 +3943,7 @@ const ActionsItem = /*#__PURE__*/forwardRef((_ref, ref) => {
3943
3943
  medium: false
3944
3944
  }
3945
3945
  } = _ref,
3946
- props = _objectWithoutProperties(_ref, _excluded$O);
3946
+ props = _objectWithoutProperties(_ref, _excluded$P);
3947
3947
  const [isLoading, setIsLoading] = useState(false);
3948
3948
  const mountedRef = useRef(false);
3949
3949
  // securing the loading state with a ref to avoid user action between rerenders
@@ -3994,7 +3994,7 @@ function ActionsButton(_ref) {
3994
3994
  }, props));
3995
3995
  }
3996
3996
 
3997
- const _excluded$N = ["children", "layout", "reversed"];
3997
+ const _excluded$O = ["children", "layout", "reversed"];
3998
3998
  function getCurrentLayout(layout) {
3999
3999
  if (!layout) return {
4000
4000
  base: 'stretch',
@@ -4027,7 +4027,7 @@ function Actions(_ref) {
4027
4027
  base: false
4028
4028
  }
4029
4029
  } = _ref,
4030
- props = _objectWithoutProperties(_ref, _excluded$N);
4030
+ props = _objectWithoutProperties(_ref, _excluded$O);
4031
4031
  const shouldReverse = typeof reversed === 'boolean' ? {
4032
4032
  base: !!reversed
4033
4033
  } : createResponsiveStyleFromProp(reversed, true, false);
@@ -4082,7 +4082,7 @@ function getInitials(firstname, lastname) {
4082
4082
  return `${firstname[0]}${lastname[0]}`.toUpperCase();
4083
4083
  }
4084
4084
 
4085
- const _excluded$M = ["size", "round", "light", "sizeVariant", "width", "height", "dark", "disabled"];
4085
+ const _excluded$N = ["size", "round", "light", "sizeVariant", "width", "height", "dark", "disabled"];
4086
4086
  function AvatarContent({
4087
4087
  size,
4088
4088
  src,
@@ -4148,7 +4148,7 @@ function Avatar(_ref) {
4148
4148
  dark,
4149
4149
  disabled
4150
4150
  } = _ref,
4151
- props = _objectWithoutProperties(_ref, _excluded$M);
4151
+ props = _objectWithoutProperties(_ref, _excluded$N);
4152
4152
  const currentSize = getCurrentSize({
4153
4153
  size,
4154
4154
  sizeVariant
@@ -4186,7 +4186,7 @@ function Avatar(_ref) {
4186
4186
  });
4187
4187
  }
4188
4188
 
4189
- const _excluded$L = ["children", "hasScrollView", "hasBackdrop", "hasHandle", "enableDynamicSizing", "snapPoints"];
4189
+ const _excluded$M = ["children", "hasScrollView", "hasBackdrop", "hasHandle", "enableDynamicSizing", "snapPoints"];
4190
4190
  function BottomSheetComp(_ref, ref) {
4191
4191
  let {
4192
4192
  children: Content,
@@ -4196,7 +4196,7 @@ function BottomSheetComp(_ref, ref) {
4196
4196
  enableDynamicSizing = true,
4197
4197
  snapPoints = ['100%']
4198
4198
  } = _ref,
4199
- rest = _objectWithoutProperties(_ref, _excluded$L);
4199
+ rest = _objectWithoutProperties(_ref, _excluded$M);
4200
4200
  const {
4201
4201
  top
4202
4202
  } = useSafeAreaInsets();
@@ -4513,7 +4513,7 @@ function CardModalAnimation({
4513
4513
  });
4514
4514
  }
4515
4515
 
4516
- const _excluded$K = ["children", "visible", "onClose", "onExited"];
4516
+ const _excluded$L = ["children", "visible", "onClose", "onExited"];
4517
4517
  function CardModalBehaviour(_ref) {
4518
4518
  let {
4519
4519
  children,
@@ -4521,7 +4521,7 @@ function CardModalBehaviour(_ref) {
4521
4521
  onClose,
4522
4522
  onExited
4523
4523
  } = _ref,
4524
- props = _objectWithoutProperties(_ref, _excluded$K);
4524
+ props = _objectWithoutProperties(_ref, _excluded$L);
4525
4525
  const [isModalBehaviourVisible, setIsModalBehaviourVisible] = useState(visible);
4526
4526
  useEffect(() => {
4527
4527
  if (visible === true) {
@@ -4543,13 +4543,13 @@ function CardModalBehaviour(_ref) {
4543
4543
  });
4544
4544
  }
4545
4545
 
4546
- const _excluded$J = ["children", "padding"];
4546
+ const _excluded$K = ["children", "padding"];
4547
4547
  function CardModalBody(_ref) {
4548
4548
  let {
4549
4549
  children,
4550
4550
  padding = 'kitt.4'
4551
4551
  } = _ref,
4552
- props = _objectWithoutProperties(_ref, _excluded$J);
4552
+ props = _objectWithoutProperties(_ref, _excluded$K);
4553
4553
  return /*#__PURE__*/jsx(ScrollView, _objectSpread(_objectSpread({
4554
4554
  showsVerticalScrollIndicator: false,
4555
4555
  _contentContainerStyle: {
@@ -4560,7 +4560,7 @@ function CardModalBody(_ref) {
4560
4560
  }));
4561
4561
  }
4562
4562
 
4563
- const _excluded$I = ["children", "padding", "hasSeparator"];
4563
+ const _excluded$J = ["children", "padding", "hasSeparator"];
4564
4564
  function CardModalFooter(_ref) {
4565
4565
  let {
4566
4566
  children,
@@ -4570,7 +4570,7 @@ function CardModalFooter(_ref) {
4570
4570
  },
4571
4571
  hasSeparator = true
4572
4572
  } = _ref,
4573
- props = _objectWithoutProperties(_ref, _excluded$I);
4573
+ props = _objectWithoutProperties(_ref, _excluded$J);
4574
4574
  return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
4575
4575
  marginTop: "kitt.2",
4576
4576
  padding: padding,
@@ -4614,7 +4614,7 @@ const getButtonTypeAndVariant = iconColor => {
4614
4614
  }
4615
4615
  };
4616
4616
 
4617
- const _excluded$H = ["color", "ariaLabel"];
4617
+ const _excluded$I = ["color", "ariaLabel"];
4618
4618
  /**
4619
4619
  * @deprecated IconButton should only be used as a navigation button
4620
4620
  * Other use cases should use a <Button> component with an icon
@@ -4624,7 +4624,7 @@ function IconButton(_ref) {
4624
4624
  color = 'black',
4625
4625
  ariaLabel
4626
4626
  } = _ref,
4627
- props = _objectWithoutProperties(_ref, _excluded$H);
4627
+ props = _objectWithoutProperties(_ref, _excluded$I);
4628
4628
  const {
4629
4629
  type: legacyColorToType,
4630
4630
  variant: legacyColorToVariant
@@ -4726,7 +4726,7 @@ function CardModalHeader(props) {
4726
4726
  return /*#__PURE__*/jsx(TopNavBar, _objectSpread({}, props));
4727
4727
  }
4728
4728
 
4729
- const _excluded$G = ["backgroundColor", "maxWidth", "withoutShadow", "children"];
4729
+ const _excluded$H = ["backgroundColor", "maxWidth", "withoutShadow", "children"];
4730
4730
  function CardModal(_ref) {
4731
4731
  let {
4732
4732
  backgroundColor = 'kitt.uiBackgroundLight',
@@ -4734,16 +4734,19 @@ function CardModal(_ref) {
4734
4734
  withoutShadow,
4735
4735
  children
4736
4736
  } = _ref,
4737
- props = _objectWithoutProperties(_ref, _excluded$G);
4737
+ props = _objectWithoutProperties(_ref, _excluded$H);
4738
4738
  return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
4739
4739
  overflow: "hidden",
4740
4740
  backgroundColor: backgroundColor,
4741
4741
  shadow: withoutShadow ? undefined : 'kitt.cardModal.shadow',
4742
4742
  borderRadius: "kitt.cardModal.borderRadius",
4743
+ flexGrow: 1,
4743
4744
  width: "100%",
4744
4745
  maxHeight: "100%",
4745
- maxWidth: maxWidth,
4746
4746
  minHeight: "kitt.cardModal.minHeight",
4747
+ _web: {
4748
+ maxWidth
4749
+ },
4747
4750
  children: children
4748
4751
  }));
4749
4752
  }
@@ -4986,13 +4989,13 @@ function ChoiceItemContainer({
4986
4989
  }));
4987
4990
  }
4988
4991
 
4989
- const _excluded$F = ["direction", "contentContainerStyle"];
4992
+ const _excluded$G = ["direction", "contentContainerStyle"];
4990
4993
  function ChoicesContainer(_ref) {
4991
4994
  let {
4992
4995
  direction,
4993
4996
  contentContainerStyle
4994
4997
  } = _ref,
4995
- props = _objectWithoutProperties(_ref, _excluded$F);
4998
+ props = _objectWithoutProperties(_ref, _excluded$G);
4996
4999
  if (direction === 'row') {
4997
5000
  return /*#__PURE__*/jsx(ScrollView$2, _objectSpread({
4998
5001
  horizontal: true,
@@ -5223,7 +5226,7 @@ function DialogModalAnimation({
5223
5226
  });
5224
5227
  }
5225
5228
 
5226
- const _excluded$E = ["children", "visible", "onClose", "onExited"];
5229
+ const _excluded$F = ["children", "visible", "onClose", "onExited"];
5227
5230
  function DialogModalBehaviour(_ref) {
5228
5231
  let {
5229
5232
  children,
@@ -5231,7 +5234,7 @@ function DialogModalBehaviour(_ref) {
5231
5234
  onClose,
5232
5235
  onExited
5233
5236
  } = _ref,
5234
- props = _objectWithoutProperties(_ref, _excluded$E);
5237
+ props = _objectWithoutProperties(_ref, _excluded$F);
5235
5238
  const [isModalBehaviourVisible, setIsModalBehaviourVisible] = useState(visible);
5236
5239
  useEffect(() => {
5237
5240
  if (visible === true) {
@@ -5259,7 +5262,7 @@ function DialogModalBehaviour(_ref) {
5259
5262
  });
5260
5263
  }
5261
5264
 
5262
- const _excluded$D = ["stretch"];
5265
+ const _excluded$E = ["stretch"];
5263
5266
  function DialogModal({
5264
5267
  illustration,
5265
5268
  title,
@@ -5301,7 +5304,7 @@ function DialogModalButton(_ref) {
5301
5304
  let {
5302
5305
  stretch = true
5303
5306
  } = _ref,
5304
- props = _objectWithoutProperties(_ref, _excluded$D);
5307
+ props = _objectWithoutProperties(_ref, _excluded$E);
5305
5308
  return /*#__PURE__*/jsx(Actions.Button, _objectSpread({
5306
5309
  stretch: stretch
5307
5310
  }, props));
@@ -5335,7 +5338,7 @@ function Emoji({
5335
5338
  });
5336
5339
  }
5337
5340
 
5338
- const _excluded$C = ["as", "appScheme", "appValue", "onPress", "onOpenAppError"],
5341
+ const _excluded$D = ["as", "appScheme", "appValue", "onPress", "onOpenAppError"],
5339
5342
  _excluded2$4 = ["phoneNumber", "children"],
5340
5343
  _excluded3$3 = ["phoneNumber", "children"],
5341
5344
  _excluded4$3 = ["emailAddress", "children"];
@@ -5347,7 +5350,7 @@ function ExternalAppLink(_ref) {
5347
5350
  onPress,
5348
5351
  onOpenAppError
5349
5352
  } = _ref,
5350
- rest = _objectWithoutProperties(_ref, _excluded$C);
5353
+ rest = _objectWithoutProperties(_ref, _excluded$D);
5351
5354
  const href = `${appScheme}:${appValue}`;
5352
5355
  return /*#__PURE__*/jsx(Component, _objectSpread(_objectSpread({
5353
5356
  href: href
@@ -5441,7 +5444,7 @@ function useOpenExternalLink(errorHandler) {
5441
5444
  };
5442
5445
  }
5443
5446
 
5444
- const _excluded$B = ["as", "href", "openLinkBehavior", "onPress", "onOpenLinkError"];
5447
+ const _excluded$C = ["as", "href", "openLinkBehavior", "onPress", "onOpenLinkError"];
5445
5448
  function ExternalLink(_ref) {
5446
5449
  let {
5447
5450
  as: Component,
@@ -5451,7 +5454,7 @@ function ExternalLink(_ref) {
5451
5454
  // eslint-disable-next-line no-console
5452
5455
  onOpenLinkError = console.error
5453
5456
  } = _ref,
5454
- rest = _objectWithoutProperties(_ref, _excluded$B);
5457
+ rest = _objectWithoutProperties(_ref, _excluded$C);
5455
5458
  const openExternalLink = useOpenExternalLink();
5456
5459
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
5457
5460
  return /*#__PURE__*/jsx(Component, _objectSpread(_objectSpread({}, rest), {}, {
@@ -5510,7 +5513,7 @@ function InputTextContainer({
5510
5513
  });
5511
5514
  }
5512
5515
 
5513
- const _excluded$A = ["id", "right", "state", "variant", "internalForceState", "disabled", "autoCorrect", "textContentType", "autoComplete", "inputMode", "multiline", "height", "onSubmitEditing"];
5516
+ const _excluded$B = ["id", "right", "state", "variant", "internalForceState", "disabled", "autoCorrect", "textContentType", "autoComplete", "inputMode", "multiline", "height", "onSubmitEditing"];
5514
5517
  const InputText = /*#__PURE__*/forwardRef((_ref, ref) => {
5515
5518
  let {
5516
5519
  id,
@@ -5527,7 +5530,7 @@ const InputText = /*#__PURE__*/forwardRef((_ref, ref) => {
5527
5530
  height,
5528
5531
  onSubmitEditing
5529
5532
  } = _ref,
5530
- props = _objectWithoutProperties(_ref, _excluded$A);
5533
+ props = _objectWithoutProperties(_ref, _excluded$B);
5531
5534
  const theme = useTheme();
5532
5535
  const fontSizeForNativeBase = createNativeBaseFontSize({
5533
5536
  base: 'body-m'
@@ -5652,13 +5655,13 @@ function AutocompleteItemsListContainer({
5652
5655
  });
5653
5656
  }
5654
5657
 
5655
- const _excluded$z = ["children", "testID"];
5658
+ const _excluded$A = ["children", "testID"];
5656
5659
  function AutocompleteOption(_ref) {
5657
5660
  let {
5658
5661
  children,
5659
5662
  testID = 'kitt.Autocomplete.option'
5660
5663
  } = _ref,
5661
- props = _objectWithoutProperties(_ref, _excluded$z);
5664
+ props = _objectWithoutProperties(_ref, _excluded$A);
5662
5665
  return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({
5663
5666
  paddingX: {
5664
5667
  base: 'kitt.2',
@@ -5671,7 +5674,7 @@ function AutocompleteOption(_ref) {
5671
5674
  }));
5672
5675
  }
5673
5676
 
5674
- const _excluded$y = ["children", "name", "disabled", "placeholder", "isInitialOpen", "initialValue", "containerProps", "filterItemBasedOnCurrentInputValue", "checkSelectedItem", "itemToString", "right", "onChange", "onFocus", "onBlur", "onInputChange", "onSelectItem", "onOuterPress", "errorElement", "emptyResultsElement", "inputTestID", "listContainerTestID", "zIndex", "maxItemContainerHeight"],
5677
+ const _excluded$z = ["children", "name", "disabled", "placeholder", "isInitialOpen", "initialValue", "containerProps", "filterItemBasedOnCurrentInputValue", "checkSelectedItem", "itemToString", "right", "onChange", "onFocus", "onBlur", "onInputChange", "onSelectItem", "onOuterPress", "errorElement", "emptyResultsElement", "inputTestID", "listContainerTestID", "zIndex", "maxItemContainerHeight"],
5675
5678
  _excluded2$3 = ["onClick", "onPress"],
5676
5679
  _excluded3$2 = ["onKeyDown", "onFocus", "onBlur", "onChange"],
5677
5680
  _excluded4$2 = ["onClick", "onPress", "role", "aria-selected"];
@@ -5713,7 +5716,7 @@ function Autocomplete(_ref) {
5713
5716
  zIndex = 1000,
5714
5717
  maxItemContainerHeight
5715
5718
  } = _ref,
5716
- props = _objectWithoutProperties(_ref, _excluded$y);
5719
+ props = _objectWithoutProperties(_ref, _excluded$z);
5717
5720
  const childrenArray = Children.toArray(children);
5718
5721
  const items = childrenArray.filter(isReactElement).map(child => ({
5719
5722
  child,
@@ -5934,7 +5937,7 @@ function getBorderColor$1({
5934
5937
  return 'kitt.forms.checkbox.default.borderColor';
5935
5938
  }
5936
5939
 
5937
- const _excluded$x = ["checked", "hitSlop", "children", "disabled", "onChange", "onBlur", "onFocus"];
5940
+ const _excluded$y = ["checked", "hitSlop", "children", "disabled", "onChange", "onBlur", "onFocus"];
5938
5941
  const Checkbox = /*#__PURE__*/forwardRef((_ref, ref) => {
5939
5942
  let {
5940
5943
  checked,
@@ -5945,7 +5948,7 @@ const Checkbox = /*#__PURE__*/forwardRef((_ref, ref) => {
5945
5948
  onBlur,
5946
5949
  onFocus
5947
5950
  } = _ref,
5948
- props = _objectWithoutProperties(_ref, _excluded$x);
5951
+ props = _objectWithoutProperties(_ref, _excluded$y);
5949
5952
  const theme = useTheme();
5950
5953
  return /*#__PURE__*/jsx(Pressable, _objectSpread(_objectSpread({
5951
5954
  hitSlop: hitSlop
@@ -6274,7 +6277,7 @@ function PartContainer({
6274
6277
  });
6275
6278
  }
6276
6279
 
6277
- const _excluded$w = ["id", "value", "testID", "stretch", "placeholder", "minDate", "maxDate", "disabled", "isFocusedInternal", "isHoveredInternal", "isPressedInternal", "enterKeyHint", "onChange", "onBlur", "onFocus", "onSubmitEditing"];
6280
+ const _excluded$x = ["id", "value", "testID", "stretch", "placeholder", "minDate", "maxDate", "disabled", "isFocusedInternal", "isHoveredInternal", "isPressedInternal", "enterKeyHint", "onChange", "onBlur", "onFocus", "onSubmitEditing"];
6278
6281
  const KeyboardDatePicker = /*#__PURE__*/forwardRef((_ref, ref) => {
6279
6282
  let {
6280
6283
  id,
@@ -6294,7 +6297,7 @@ const KeyboardDatePicker = /*#__PURE__*/forwardRef((_ref, ref) => {
6294
6297
  onFocus,
6295
6298
  onSubmitEditing
6296
6299
  } = _ref;
6297
- _objectWithoutProperties(_ref, _excluded$w);
6300
+ _objectWithoutProperties(_ref, _excluded$x);
6298
6301
  const monthRef = useRef(null);
6299
6302
  const yearRef = useRef(null);
6300
6303
  const defaultValue = value;
@@ -6495,7 +6498,7 @@ const PressableDateInputs = /*#__PURE__*/forwardRef(({
6495
6498
  });
6496
6499
  });
6497
6500
 
6498
- const _excluded$v = ["onBlur", "onFocus", "pickerDefaultDate", "pickerUITestID", "isDefaultVisible", "value", "onChange"];
6501
+ const _excluded$w = ["onBlur", "onFocus", "pickerDefaultDate", "pickerUITestID", "isDefaultVisible", "value", "onChange"];
6499
6502
  const DatePickerAndroid = /*#__PURE__*/forwardRef((_ref, ref) => {
6500
6503
  let {
6501
6504
  onBlur,
@@ -6506,7 +6509,7 @@ const DatePickerAndroid = /*#__PURE__*/forwardRef((_ref, ref) => {
6506
6509
  value,
6507
6510
  onChange
6508
6511
  } = _ref,
6509
- props = _objectWithoutProperties(_ref, _excluded$v);
6512
+ props = _objectWithoutProperties(_ref, _excluded$w);
6510
6513
  const [isFocused, setIsFocused] = useState(false);
6511
6514
  const [currentValue, setCurrentValue] = useState(value);
6512
6515
  const handleClose = () => {
@@ -6572,7 +6575,7 @@ function PlatformDateTimePicker({
6572
6575
  });
6573
6576
  }
6574
6577
 
6575
- const _excluded$u = ["title", "isVisible", "value", "validateButtonLabel", "onClose", "onChange"];
6578
+ const _excluded$v = ["title", "isVisible", "value", "validateButtonLabel", "onClose", "onChange"];
6576
6579
  function ModalTitle({
6577
6580
  children
6578
6581
  }) {
@@ -6589,7 +6592,7 @@ function ModalPlatformDateTimePicker(_ref) {
6589
6592
  onClose,
6590
6593
  onChange
6591
6594
  } = _ref,
6592
- props = _objectWithoutProperties(_ref, _excluded$u);
6595
+ props = _objectWithoutProperties(_ref, _excluded$v);
6593
6596
  const [currentValue, setCurrentValue] = useState(value);
6594
6597
 
6595
6598
  // Prevent unsynced value between the modal and its parent state
@@ -6632,7 +6635,7 @@ function ModalPlatformDateTimePicker(_ref) {
6632
6635
  });
6633
6636
  }
6634
6637
 
6635
- const _excluded$t = ["value", "pickerUITestID", "pickerUITitle", "pickerUIValidateButtonLabel", "isDefaultVisible", "pickerDefaultDate", "isFocusedInternal", "isHoveredInternal", "isPressedInternal", "onChange", "onFocus", "onBlur"];
6638
+ const _excluded$u = ["value", "pickerUITestID", "pickerUITitle", "pickerUIValidateButtonLabel", "isDefaultVisible", "pickerDefaultDate", "isFocusedInternal", "isHoveredInternal", "isPressedInternal", "onChange", "onFocus", "onBlur"];
6636
6639
  const DefaultNativeUIDatePicker = /*#__PURE__*/forwardRef((_ref, ref) => {
6637
6640
  let {
6638
6641
  value,
@@ -6648,7 +6651,7 @@ const DefaultNativeUIDatePicker = /*#__PURE__*/forwardRef((_ref, ref) => {
6648
6651
  onFocus,
6649
6652
  onBlur
6650
6653
  } = _ref,
6651
- props = _objectWithoutProperties(_ref, _excluded$t);
6654
+ props = _objectWithoutProperties(_ref, _excluded$u);
6652
6655
  const [isPickerUIVisible, setIsPickerUIVisible] = useState(isDefaultVisible);
6653
6656
  const [isFocused, setIsFocused] = useState(false);
6654
6657
  const [currentValue, setCurrentValue] = useState(value);
@@ -6686,7 +6689,7 @@ const DefaultNativeUIDatePicker = /*#__PURE__*/forwardRef((_ref, ref) => {
6686
6689
  });
6687
6690
  });
6688
6691
 
6689
- const _excluded$s = ["value", "pickerUITestID", "isDefaultVisible", "pickerDefaultDate", "onChange", "onBlur"];
6692
+ const _excluded$t = ["value", "pickerUITestID", "isDefaultVisible", "pickerDefaultDate", "onChange", "onBlur"];
6690
6693
  const NativeUIDatePicker = /*#__PURE__*/forwardRef((_ref, ref) => {
6691
6694
  let {
6692
6695
  value,
@@ -6696,7 +6699,7 @@ const NativeUIDatePicker = /*#__PURE__*/forwardRef((_ref, ref) => {
6696
6699
  onChange,
6697
6700
  onBlur
6698
6701
  } = _ref,
6699
- props = _objectWithoutProperties(_ref, _excluded$s);
6702
+ props = _objectWithoutProperties(_ref, _excluded$t);
6700
6703
  if (Platform.OS === 'android') {
6701
6704
  return /*#__PURE__*/jsx(DatePickerAndroid, _objectSpread({
6702
6705
  ref: ref,
@@ -6718,7 +6721,7 @@ const NativeUIDatePicker = /*#__PURE__*/forwardRef((_ref, ref) => {
6718
6721
  }, props));
6719
6722
  });
6720
6723
 
6721
- const _excluded$r = ["fillMode", "enterKeyHint", "value", "onSubmitEditing"];
6724
+ const _excluded$s = ["fillMode", "enterKeyHint", "value", "onSubmitEditing"];
6722
6725
  const DatePicker = /*#__PURE__*/forwardRef((_ref, ref) => {
6723
6726
  let {
6724
6727
  fillMode = 'native',
@@ -6726,7 +6729,7 @@ const DatePicker = /*#__PURE__*/forwardRef((_ref, ref) => {
6726
6729
  value,
6727
6730
  onSubmitEditing
6728
6731
  } = _ref,
6729
- props = _objectWithoutProperties(_ref, _excluded$r);
6732
+ props = _objectWithoutProperties(_ref, _excluded$s);
6730
6733
  // in apps, final-form can give a string value that will break the component
6731
6734
  const currentValue = value || undefined;
6732
6735
  if (fillMode === 'keyboard') {
@@ -6798,12 +6801,12 @@ function ImagePicker({
6798
6801
  });
6799
6802
  }
6800
6803
 
6801
- const _excluded$q = ["children"];
6804
+ const _excluded$r = ["children"];
6802
6805
  function ListItemContent(_ref) {
6803
6806
  let {
6804
6807
  children
6805
6808
  } = _ref,
6806
- rest = _objectWithoutProperties(_ref, _excluded$q);
6809
+ rest = _objectWithoutProperties(_ref, _excluded$r);
6807
6810
  return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({
6808
6811
  alignSelf: "center",
6809
6812
  flexBasis: "0%",
@@ -6814,7 +6817,7 @@ function ListItemContent(_ref) {
6814
6817
  }));
6815
6818
  }
6816
6819
 
6817
- const _excluded$p = ["children", "side"],
6820
+ const _excluded$q = ["children", "side"],
6818
6821
  _excluded2$2 = ["children", "align"];
6819
6822
  // Handles the vertical alignment of the side elements of the list item
6820
6823
  function ListItemSideContainer(_ref) {
@@ -6822,7 +6825,7 @@ function ListItemSideContainer(_ref) {
6822
6825
  children,
6823
6826
  side = 'left'
6824
6827
  } = _ref,
6825
- rest = _objectWithoutProperties(_ref, _excluded$p);
6828
+ rest = _objectWithoutProperties(_ref, _excluded$q);
6826
6829
  return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({
6827
6830
  flexDirection: "row",
6828
6831
  marginLeft: side === 'right' ? 'kitt.2' : undefined,
@@ -6844,7 +6847,7 @@ function ListItemSideContent(_ref2) {
6844
6847
  }));
6845
6848
  }
6846
6849
 
6847
- const _excluded$o = ["children", "withPadding", "borders", "left", "right", "onPress"];
6850
+ const _excluded$p = ["children", "withPadding", "borders", "left", "right", "onPress"];
6848
6851
  function ListItem(_ref) {
6849
6852
  let {
6850
6853
  children,
@@ -6854,7 +6857,7 @@ function ListItem(_ref) {
6854
6857
  right,
6855
6858
  onPress
6856
6859
  } = _ref,
6857
- rest = _objectWithoutProperties(_ref, _excluded$o);
6860
+ rest = _objectWithoutProperties(_ref, _excluded$p);
6858
6861
  const Wrapper = onPress ? Pressable$2 : Fragment$1;
6859
6862
  const wrapperProps = onPress ? _objectSpread({
6860
6863
  accessibilityRole: 'button',
@@ -6887,12 +6890,12 @@ ListItem.Content = ListItemContent;
6887
6890
  ListItem.SideContent = ListItemSideContent;
6888
6891
  ListItem.SideContainer = ListItemSideContainer;
6889
6892
 
6890
- const _excluded$n = ["title"];
6893
+ const _excluded$o = ["title"];
6891
6894
  function BottomSheetActionsItem(_ref) {
6892
6895
  let {
6893
6896
  title
6894
6897
  } = _ref,
6895
- props = _objectWithoutProperties(_ref, _excluded$n);
6898
+ props = _objectWithoutProperties(_ref, _excluded$o);
6896
6899
  return /*#__PURE__*/jsx(Pressable$2, _objectSpread(_objectSpread({}, props), {}, {
6897
6900
  children: /*#__PURE__*/jsx(ListItem, {
6898
6901
  withPadding: true,
@@ -6979,6 +6982,124 @@ function FilePicker({
6979
6982
  });
6980
6983
  }
6981
6984
 
6985
+ function InputAddressOption({
6986
+ item,
6987
+ itemToMainText,
6988
+ itemToSecondaryText
6989
+ }) {
6990
+ const sharedTransform = {
6991
+ style: {
6992
+ transform: 'translateY(4px)'
6993
+ }
6994
+ };
6995
+ const mainText = itemToMainText(item);
6996
+ const secondaryText = itemToSecondaryText(item);
6997
+ return /*#__PURE__*/jsx(Autocomplete.Option, {
6998
+ item: item,
6999
+ testID: "kitt.InputAddressOption.item",
7000
+ children: /*#__PURE__*/jsxs(HStack, {
7001
+ space: "kitt.2",
7002
+ children: [/*#__PURE__*/jsx(View, {
7003
+ _web: sharedTransform,
7004
+ _ios: sharedTransform,
7005
+ _android: sharedTransform,
7006
+ children: /*#__PURE__*/jsx(TypographyIcon, {
7007
+ icon: /*#__PURE__*/jsx(MapPinRegularIcon, {}),
7008
+ color: "black"
7009
+ })
7010
+ }), /*#__PURE__*/jsx(View, {
7011
+ flexShrink: 1,
7012
+ children: /*#__PURE__*/jsxs(Typography.Text, {
7013
+ children: [/*#__PURE__*/jsx(Typography.Text, {
7014
+ variant: "bold",
7015
+ children: mainText
7016
+ }), secondaryText ? /*#__PURE__*/jsxs(Typography.Text, {
7017
+ color: "black-light",
7018
+ variant: "bold",
7019
+ children: [' ', secondaryText]
7020
+ }) : null]
7021
+ })
7022
+ })]
7023
+ })
7024
+ });
7025
+ }
7026
+
7027
+ function InputAddressOptionLegacy({
7028
+ item
7029
+ }) {
7030
+ const sharedTransform = {
7031
+ style: {
7032
+ transform: 'translateY(4px)'
7033
+ }
7034
+ };
7035
+ return /*#__PURE__*/jsx(Autocomplete.Option, {
7036
+ item: item,
7037
+ testID: "kitt.InputAddressOptionLegacy.item",
7038
+ children: /*#__PURE__*/jsxs(HStack, {
7039
+ space: "kitt.2",
7040
+ children: [/*#__PURE__*/jsx(View, {
7041
+ _web: sharedTransform,
7042
+ _ios: sharedTransform,
7043
+ _android: sharedTransform,
7044
+ children: /*#__PURE__*/jsx(TypographyIcon, {
7045
+ icon: /*#__PURE__*/jsx(MapPinRegularIcon, {}),
7046
+ color: "black"
7047
+ })
7048
+ }), /*#__PURE__*/jsx(View, {
7049
+ flexShrink: 1,
7050
+ children: /*#__PURE__*/jsxs(Typography.Text, {
7051
+ children: [/*#__PURE__*/jsx(Typography.Text, {
7052
+ variant: "bold",
7053
+ children: item.structured_formatting.main_text
7054
+ }), item.structured_formatting.secondary_text ? /*#__PURE__*/jsxs(Typography.Text, {
7055
+ color: "black-light",
7056
+ variant: "bold",
7057
+ children: [' ', item.structured_formatting.secondary_text]
7058
+ }) : null]
7059
+ })
7060
+ })]
7061
+ })
7062
+ });
7063
+ }
7064
+
7065
+ const _excluded$n = ["errorElement", "initialValue", "emptyResultsElement", "onChange", "items", "isLoading", "hasError", "onInputChange", "onSelectItem", "convertInitialValue", "itemToMainText", "itemToSecondaryText", "itemToKey"];
7066
+ function InputAddress(_ref) {
7067
+ let {
7068
+ errorElement,
7069
+ initialValue,
7070
+ emptyResultsElement,
7071
+ onChange,
7072
+ items,
7073
+ isLoading,
7074
+ hasError,
7075
+ onInputChange,
7076
+ onSelectItem,
7077
+ convertInitialValue,
7078
+ itemToMainText,
7079
+ itemToSecondaryText,
7080
+ itemToKey
7081
+ } = _ref,
7082
+ props = _objectWithoutProperties(_ref, _excluded$n);
7083
+ const formattedInitialValue = initialValue ? convertInitialValue(initialValue) : undefined;
7084
+ return /*#__PURE__*/jsx(Autocomplete, _objectSpread(_objectSpread({}, props), {}, {
7085
+ initialValue: formattedInitialValue,
7086
+ right: isLoading ? /*#__PURE__*/jsx(Icon, {
7087
+ icon: /*#__PURE__*/jsx(LoaderIcon, {}),
7088
+ color: "kitt.black"
7089
+ }) : undefined,
7090
+ errorElement: hasError ? errorElement : null,
7091
+ emptyResultsElement: items.length === 0 ? emptyResultsElement : null,
7092
+ onInputChange: value => onInputChange(value),
7093
+ onChange: item => onSelectItem(item, onChange),
7094
+ children: items.map(item => /*#__PURE__*/jsx(InputAddressOption, {
7095
+ item: item,
7096
+ itemToMainText: itemToMainText,
7097
+ itemToSecondaryText: itemToSecondaryText
7098
+ }, itemToKey(item)))
7099
+ }));
7100
+ }
7101
+ InputAddress.Option = InputAddressOptionLegacy;
7102
+
6982
7103
  const GoogleMapsApiKeyContext = /*#__PURE__*/createContext(undefined);
6983
7104
  function GoogleMapsApiKeyProvider({
6984
7105
  children,
@@ -7317,44 +7438,6 @@ function useGoogleMapsAutocomplete() {
7317
7438
  return context;
7318
7439
  }
7319
7440
 
7320
- function InputAddressOption({
7321
- item
7322
- }) {
7323
- const sharedTransform = {
7324
- style: {
7325
- transform: 'translateY(4px)'
7326
- }
7327
- };
7328
- return /*#__PURE__*/jsx(Autocomplete.Option, {
7329
- item: item,
7330
- testID: "kitt.InputAddressOption.item",
7331
- children: /*#__PURE__*/jsxs(HStack, {
7332
- space: "kitt.2",
7333
- children: [/*#__PURE__*/jsx(View, {
7334
- _web: sharedTransform,
7335
- _ios: sharedTransform,
7336
- _android: sharedTransform,
7337
- children: /*#__PURE__*/jsx(TypographyIcon, {
7338
- icon: /*#__PURE__*/jsx(MapPinRegularIcon, {}),
7339
- color: "black"
7340
- })
7341
- }), /*#__PURE__*/jsx(View, {
7342
- flexShrink: 1,
7343
- children: /*#__PURE__*/jsxs(Typography.Text, {
7344
- children: [/*#__PURE__*/jsx(Typography.Text, {
7345
- variant: "bold",
7346
- children: item.structured_formatting.main_text
7347
- }), item.structured_formatting.secondary_text ? /*#__PURE__*/jsxs(Typography.Text, {
7348
- color: "black-light",
7349
- variant: "bold",
7350
- children: [' ', item.structured_formatting.secondary_text]
7351
- }) : null]
7352
- })
7353
- })]
7354
- })
7355
- });
7356
- }
7357
-
7358
7441
  function defaultItemToString(item) {
7359
7442
  if (!item) return '';
7360
7443
  return item.description;
@@ -7389,7 +7472,7 @@ function formatInitialValueToAutocompletePrediction(address, placeId) {
7389
7472
  }
7390
7473
 
7391
7474
  const _excluded$m = ["initialValue", "itemToString", "errorElement", "emptyResultsElement", "onChange"];
7392
- function InputAddress(_ref) {
7475
+ function InputAddressLegacy(_ref) {
7393
7476
  let {
7394
7477
  initialValue,
7395
7478
  itemToString = defaultItemToString,
@@ -7422,12 +7505,12 @@ function InputAddress(_ref) {
7422
7505
  onChange: v => {
7423
7506
  onSelectItem(v, onChange);
7424
7507
  },
7425
- children: state.items.map(item => /*#__PURE__*/jsx(InputAddressOption, {
7508
+ children: state.items.map(item => /*#__PURE__*/jsx(InputAddressOptionLegacy, {
7426
7509
  item: item
7427
7510
  }, item.place_id))
7428
7511
  }));
7429
7512
  }
7430
- InputAddress.Option = InputAddressOption;
7513
+ InputAddressLegacy.Option = InputAddressOptionLegacy;
7431
7514
 
7432
7515
  const InputEmail = /*#__PURE__*/forwardRef((props, ref) => {
7433
7516
  return /*#__PURE__*/jsx(InputText, _objectSpread({
@@ -14416,5 +14499,5 @@ function VerticalSteps(_ref) {
14416
14499
  VerticalSteps.Step = Step;
14417
14500
  VerticalSteps.BorderlessStep = BorderlessStep;
14418
14501
 
14419
- export { ActionCard, Actions, Autocomplete, Avatar, BottomSheet, Button, ButtonBadge, CardModal, Center, Checkbox, ChoicesElements, ChromaticReducedMotionDecorator, CloseIconButton, DatePicker, DialogModal, DocumentPicker, Emoji, ExternalAppLink, ExternalLink, FilePicker, FlatList, Flex, FullscreenModal, GoogleMapsApiKeyProvider, GoogleMapsAutocompleteProvider, GroupTags, HStack, Highlight, Icon, IconButton, Image, ImagePicker, InfoCard, InputAddress, InputEmail, InputFeedback, InputField, InputIban, InputIcon, InputNumber, InputPassword, InputPhone, InputPressable, InputTag, InputText, KittBreakpointNameEnum, KittBreakpoints, KittBreakpointsMax, KittMapConfigProvider, KittNativeBaseProvider, KittThemeDecorator, KittThemeProvider, Label, ListItem, LoaderIcon, MapMarker, MapMarkerVariantEnum, MatchWindowSize, Message, ModalBehaviour, FlatList as NativeOnlyFlatList, NavigationBottomSheet, NavigationModal, Notification, Overlay, PageLoader, Picker, Pressable, RadioWithRef as Radio, RadioButtonGroup, ScrollView, DeprecatedSection as Section, SectionList, SegmentedProgressBar, Skeleton, SpinningIcon, Stack, StaticMap, Sticker, Story, StoryBlock, StoryContainer, StoryDecorator, StoryGrid, StorySection, StoryTitle, StyleWebWrapper, SwitchBreakpoints, TabBar, Tag, TextArea, TimePicker, ToastComponent, Toggle, Tooltip, TopNavBar, Typography, TypographyEmoji, TypographyIcon, TypographyLink, VStack, VerticalSteps, View, createChoicesComponent, createResponsiveStyleFromProp, getStaticMapImageUrl, getValueForBreakpoint, hex2rgba, matchWindowSize, storyPadding, theme, useBottomSheet, useBreakpointValue, useCurrentBreakpointName, useGetStaticMapImageUrl, useKittMapConfig, useKittTheme, useMatchWindowSize, useOpenExternalLink, useStaticBottomSheet, useStoryBlockColor, useTheme };
14502
+ export { ActionCard, Actions, Autocomplete, Avatar, BottomSheet, Button, ButtonBadge, CardModal, Center, Checkbox, ChoicesElements, ChromaticReducedMotionDecorator, CloseIconButton, DatePicker, DialogModal, DocumentPicker, Emoji, ExternalAppLink, ExternalLink, FilePicker, FlatList, Flex, FullscreenModal, GoogleMapsApiKeyProvider, GoogleMapsAutocompleteProvider, GroupTags, HStack, Highlight, Icon, IconButton, Image, ImagePicker, InfoCard, InputAddress, InputAddressLegacy, InputEmail, InputFeedback, InputField, InputIban, InputIcon, InputNumber, InputPassword, InputPhone, InputPressable, InputTag, InputText, KittBreakpointNameEnum, KittBreakpoints, KittBreakpointsMax, KittMapConfigProvider, KittNativeBaseProvider, KittThemeDecorator, KittThemeProvider, Label, ListItem, LoaderIcon, MapMarker, MapMarkerVariantEnum, MatchWindowSize, Message, ModalBehaviour, FlatList as NativeOnlyFlatList, NavigationBottomSheet, NavigationModal, Notification, Overlay, PageLoader, Picker, Pressable, RadioWithRef as Radio, RadioButtonGroup, ScrollView, DeprecatedSection as Section, SectionList, SegmentedProgressBar, Skeleton, SpinningIcon, Stack, StaticMap, Sticker, Story, StoryBlock, StoryContainer, StoryDecorator, StoryGrid, StorySection, StoryTitle, StyleWebWrapper, SwitchBreakpoints, TabBar, Tag, TextArea, TimePicker, ToastComponent, Toggle, Tooltip, TopNavBar, Typography, TypographyEmoji, TypographyIcon, TypographyLink, VStack, VerticalSteps, View, createChoicesComponent, createResponsiveStyleFromProp, getStaticMapImageUrl, getValueForBreakpoint, hex2rgba, matchWindowSize, storyPadding, theme, useBottomSheet, useBreakpointValue, useCurrentBreakpointName, useGetStaticMapImageUrl, useKittMapConfig, useKittTheme, useMatchWindowSize, useOpenExternalLink, useStaticBottomSheet, useStoryBlockColor, useTheme };
14420
14503
  //# sourceMappingURL=index-metro.es.ios.js.map