@ornikar/kitt-universal 31.3.2-canary.2f602b2cfade63278a988a7f253e6de89bdee0e8.0 → 31.3.2-canary.a176fae6a745e6f1b650fe56c3dca27af6b8816f.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 (33) hide show
  1. package/CHANGELOG.md +8 -3
  2. package/dist/definitions/ModalBehaviour/ModalBehaviourPortal.web.d.ts.map +1 -1
  3. package/dist/definitions/forms/InputAddress/InputAddress.d.ts +12 -8
  4. package/dist/definitions/forms/InputAddress/InputAddress.d.ts.map +1 -1
  5. package/dist/definitions/forms/InputAddress/InputAddressLegacy.d.ts +15 -0
  6. package/dist/definitions/forms/InputAddress/InputAddressLegacy.d.ts.map +1 -0
  7. package/dist/definitions/forms/InputAddress/InputAddressOption.d.ts +5 -4
  8. package/dist/definitions/forms/InputAddress/InputAddressOption.d.ts.map +1 -1
  9. package/dist/definitions/forms/InputAddress/InputAddressOptionLegacy.d.ts +7 -0
  10. package/dist/definitions/forms/InputAddress/InputAddressOptionLegacy.d.ts.map +1 -0
  11. package/dist/definitions/index.d.ts +4 -1
  12. package/dist/definitions/index.d.ts.map +1 -1
  13. package/dist/index-metro.es.android.js +148 -70
  14. package/dist/index-metro.es.android.js.map +1 -1
  15. package/dist/index-metro.es.ios.js +148 -70
  16. package/dist/index-metro.es.ios.js.map +1 -1
  17. package/dist/index-node-22.17.cjs.js +83 -5
  18. package/dist/index-node-22.17.cjs.js.map +1 -1
  19. package/dist/index-node-22.17.cjs.web.css +1 -0
  20. package/dist/index-node-22.17.cjs.web.js +87 -8
  21. package/dist/index-node-22.17.cjs.web.js.map +1 -1
  22. package/dist/index-node-22.17.es.mjs +83 -6
  23. package/dist/index-node-22.17.es.mjs.map +1 -1
  24. package/dist/index-node-22.17.es.web.css +1 -0
  25. package/dist/index-node-22.17.es.web.mjs +87 -9
  26. package/dist/index-node-22.17.es.web.mjs.map +1 -1
  27. package/dist/index.es.js +149 -70
  28. package/dist/index.es.js.map +1 -1
  29. package/dist/index.es.web.js +139 -59
  30. package/dist/index.es.web.js.map +1 -1
  31. package/dist/styles.css +1 -0
  32. package/dist/tsbuildinfo +1 -1
  33. package/package.json +3 -3
@@ -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,7 +4734,7 @@ 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,
@@ -4989,13 +4989,13 @@ function ChoiceItemContainer({
4989
4989
  }));
4990
4990
  }
4991
4991
 
4992
- const _excluded$F = ["direction", "contentContainerStyle"];
4992
+ const _excluded$G = ["direction", "contentContainerStyle"];
4993
4993
  function ChoicesContainer(_ref) {
4994
4994
  let {
4995
4995
  direction,
4996
4996
  contentContainerStyle
4997
4997
  } = _ref,
4998
- props = _objectWithoutProperties(_ref, _excluded$F);
4998
+ props = _objectWithoutProperties(_ref, _excluded$G);
4999
4999
  if (direction === 'row') {
5000
5000
  return /*#__PURE__*/jsx(ScrollView$2, _objectSpread({
5001
5001
  horizontal: true,
@@ -5226,7 +5226,7 @@ function DialogModalAnimation({
5226
5226
  });
5227
5227
  }
5228
5228
 
5229
- const _excluded$E = ["children", "visible", "onClose", "onExited"];
5229
+ const _excluded$F = ["children", "visible", "onClose", "onExited"];
5230
5230
  function DialogModalBehaviour(_ref) {
5231
5231
  let {
5232
5232
  children,
@@ -5234,7 +5234,7 @@ function DialogModalBehaviour(_ref) {
5234
5234
  onClose,
5235
5235
  onExited
5236
5236
  } = _ref,
5237
- props = _objectWithoutProperties(_ref, _excluded$E);
5237
+ props = _objectWithoutProperties(_ref, _excluded$F);
5238
5238
  const [isModalBehaviourVisible, setIsModalBehaviourVisible] = useState(visible);
5239
5239
  useEffect(() => {
5240
5240
  if (visible === true) {
@@ -5262,7 +5262,7 @@ function DialogModalBehaviour(_ref) {
5262
5262
  });
5263
5263
  }
5264
5264
 
5265
- const _excluded$D = ["stretch"];
5265
+ const _excluded$E = ["stretch"];
5266
5266
  function DialogModal({
5267
5267
  illustration,
5268
5268
  title,
@@ -5304,7 +5304,7 @@ function DialogModalButton(_ref) {
5304
5304
  let {
5305
5305
  stretch = true
5306
5306
  } = _ref,
5307
- props = _objectWithoutProperties(_ref, _excluded$D);
5307
+ props = _objectWithoutProperties(_ref, _excluded$E);
5308
5308
  return /*#__PURE__*/jsx(Actions.Button, _objectSpread({
5309
5309
  stretch: stretch
5310
5310
  }, props));
@@ -5338,7 +5338,7 @@ function Emoji({
5338
5338
  });
5339
5339
  }
5340
5340
 
5341
- const _excluded$C = ["as", "appScheme", "appValue", "onPress", "onOpenAppError"],
5341
+ const _excluded$D = ["as", "appScheme", "appValue", "onPress", "onOpenAppError"],
5342
5342
  _excluded2$4 = ["phoneNumber", "children"],
5343
5343
  _excluded3$3 = ["phoneNumber", "children"],
5344
5344
  _excluded4$3 = ["emailAddress", "children"];
@@ -5350,7 +5350,7 @@ function ExternalAppLink(_ref) {
5350
5350
  onPress,
5351
5351
  onOpenAppError
5352
5352
  } = _ref,
5353
- rest = _objectWithoutProperties(_ref, _excluded$C);
5353
+ rest = _objectWithoutProperties(_ref, _excluded$D);
5354
5354
  const href = `${appScheme}:${appValue}`;
5355
5355
  return /*#__PURE__*/jsx(Component, _objectSpread(_objectSpread({
5356
5356
  href: href
@@ -5444,7 +5444,7 @@ function useOpenExternalLink(errorHandler) {
5444
5444
  };
5445
5445
  }
5446
5446
 
5447
- const _excluded$B = ["as", "href", "openLinkBehavior", "onPress", "onOpenLinkError"];
5447
+ const _excluded$C = ["as", "href", "openLinkBehavior", "onPress", "onOpenLinkError"];
5448
5448
  function ExternalLink(_ref) {
5449
5449
  let {
5450
5450
  as: Component,
@@ -5454,7 +5454,7 @@ function ExternalLink(_ref) {
5454
5454
  // eslint-disable-next-line no-console
5455
5455
  onOpenLinkError = console.error
5456
5456
  } = _ref,
5457
- rest = _objectWithoutProperties(_ref, _excluded$B);
5457
+ rest = _objectWithoutProperties(_ref, _excluded$C);
5458
5458
  const openExternalLink = useOpenExternalLink();
5459
5459
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
5460
5460
  return /*#__PURE__*/jsx(Component, _objectSpread(_objectSpread({}, rest), {}, {
@@ -5513,7 +5513,7 @@ function InputTextContainer({
5513
5513
  });
5514
5514
  }
5515
5515
 
5516
- 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"];
5517
5517
  const InputText = /*#__PURE__*/forwardRef((_ref, ref) => {
5518
5518
  let {
5519
5519
  id,
@@ -5530,7 +5530,7 @@ const InputText = /*#__PURE__*/forwardRef((_ref, ref) => {
5530
5530
  height,
5531
5531
  onSubmitEditing
5532
5532
  } = _ref,
5533
- props = _objectWithoutProperties(_ref, _excluded$A);
5533
+ props = _objectWithoutProperties(_ref, _excluded$B);
5534
5534
  const theme = useTheme();
5535
5535
  const fontSizeForNativeBase = createNativeBaseFontSize({
5536
5536
  base: 'body-m'
@@ -5655,13 +5655,13 @@ function AutocompleteItemsListContainer({
5655
5655
  });
5656
5656
  }
5657
5657
 
5658
- const _excluded$z = ["children", "testID"];
5658
+ const _excluded$A = ["children", "testID"];
5659
5659
  function AutocompleteOption(_ref) {
5660
5660
  let {
5661
5661
  children,
5662
5662
  testID = 'kitt.Autocomplete.option'
5663
5663
  } = _ref,
5664
- props = _objectWithoutProperties(_ref, _excluded$z);
5664
+ props = _objectWithoutProperties(_ref, _excluded$A);
5665
5665
  return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({
5666
5666
  paddingX: {
5667
5667
  base: 'kitt.2',
@@ -5674,7 +5674,7 @@ function AutocompleteOption(_ref) {
5674
5674
  }));
5675
5675
  }
5676
5676
 
5677
- 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"],
5678
5678
  _excluded2$3 = ["onClick", "onPress"],
5679
5679
  _excluded3$2 = ["onKeyDown", "onFocus", "onBlur", "onChange"],
5680
5680
  _excluded4$2 = ["onClick", "onPress", "role", "aria-selected"];
@@ -5716,7 +5716,7 @@ function Autocomplete(_ref) {
5716
5716
  zIndex = 1000,
5717
5717
  maxItemContainerHeight
5718
5718
  } = _ref,
5719
- props = _objectWithoutProperties(_ref, _excluded$y);
5719
+ props = _objectWithoutProperties(_ref, _excluded$z);
5720
5720
  const childrenArray = Children.toArray(children);
5721
5721
  const items = childrenArray.filter(isReactElement).map(child => ({
5722
5722
  child,
@@ -5937,7 +5937,7 @@ function getBorderColor$1({
5937
5937
  return 'kitt.forms.checkbox.default.borderColor';
5938
5938
  }
5939
5939
 
5940
- const _excluded$x = ["checked", "hitSlop", "children", "disabled", "onChange", "onBlur", "onFocus"];
5940
+ const _excluded$y = ["checked", "hitSlop", "children", "disabled", "onChange", "onBlur", "onFocus"];
5941
5941
  const Checkbox = /*#__PURE__*/forwardRef((_ref, ref) => {
5942
5942
  let {
5943
5943
  checked,
@@ -5948,7 +5948,7 @@ const Checkbox = /*#__PURE__*/forwardRef((_ref, ref) => {
5948
5948
  onBlur,
5949
5949
  onFocus
5950
5950
  } = _ref,
5951
- props = _objectWithoutProperties(_ref, _excluded$x);
5951
+ props = _objectWithoutProperties(_ref, _excluded$y);
5952
5952
  const theme = useTheme();
5953
5953
  return /*#__PURE__*/jsx(Pressable, _objectSpread(_objectSpread({
5954
5954
  hitSlop: hitSlop
@@ -6277,7 +6277,7 @@ function PartContainer({
6277
6277
  });
6278
6278
  }
6279
6279
 
6280
- 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"];
6281
6281
  const KeyboardDatePicker = /*#__PURE__*/forwardRef((_ref, ref) => {
6282
6282
  let {
6283
6283
  id,
@@ -6297,7 +6297,7 @@ const KeyboardDatePicker = /*#__PURE__*/forwardRef((_ref, ref) => {
6297
6297
  onFocus,
6298
6298
  onSubmitEditing
6299
6299
  } = _ref;
6300
- _objectWithoutProperties(_ref, _excluded$w);
6300
+ _objectWithoutProperties(_ref, _excluded$x);
6301
6301
  const monthRef = useRef(null);
6302
6302
  const yearRef = useRef(null);
6303
6303
  const defaultValue = value;
@@ -6498,7 +6498,7 @@ const PressableDateInputs = /*#__PURE__*/forwardRef(({
6498
6498
  });
6499
6499
  });
6500
6500
 
6501
- const _excluded$v = ["onBlur", "onFocus", "pickerDefaultDate", "pickerUITestID", "isDefaultVisible", "value", "onChange"];
6501
+ const _excluded$w = ["onBlur", "onFocus", "pickerDefaultDate", "pickerUITestID", "isDefaultVisible", "value", "onChange"];
6502
6502
  const DatePickerAndroid = /*#__PURE__*/forwardRef((_ref, ref) => {
6503
6503
  let {
6504
6504
  onBlur,
@@ -6509,7 +6509,7 @@ const DatePickerAndroid = /*#__PURE__*/forwardRef((_ref, ref) => {
6509
6509
  value,
6510
6510
  onChange
6511
6511
  } = _ref,
6512
- props = _objectWithoutProperties(_ref, _excluded$v);
6512
+ props = _objectWithoutProperties(_ref, _excluded$w);
6513
6513
  const [isFocused, setIsFocused] = useState(false);
6514
6514
  const [currentValue, setCurrentValue] = useState(value);
6515
6515
  const handleClose = () => {
@@ -6575,7 +6575,7 @@ function PlatformDateTimePicker({
6575
6575
  });
6576
6576
  }
6577
6577
 
6578
- const _excluded$u = ["title", "isVisible", "value", "validateButtonLabel", "onClose", "onChange"];
6578
+ const _excluded$v = ["title", "isVisible", "value", "validateButtonLabel", "onClose", "onChange"];
6579
6579
  function ModalTitle({
6580
6580
  children
6581
6581
  }) {
@@ -6592,7 +6592,7 @@ function ModalPlatformDateTimePicker(_ref) {
6592
6592
  onClose,
6593
6593
  onChange
6594
6594
  } = _ref,
6595
- props = _objectWithoutProperties(_ref, _excluded$u);
6595
+ props = _objectWithoutProperties(_ref, _excluded$v);
6596
6596
  const [currentValue, setCurrentValue] = useState(value);
6597
6597
 
6598
6598
  // Prevent unsynced value between the modal and its parent state
@@ -6635,7 +6635,7 @@ function ModalPlatformDateTimePicker(_ref) {
6635
6635
  });
6636
6636
  }
6637
6637
 
6638
- 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"];
6639
6639
  const DefaultNativeUIDatePicker = /*#__PURE__*/forwardRef((_ref, ref) => {
6640
6640
  let {
6641
6641
  value,
@@ -6651,7 +6651,7 @@ const DefaultNativeUIDatePicker = /*#__PURE__*/forwardRef((_ref, ref) => {
6651
6651
  onFocus,
6652
6652
  onBlur
6653
6653
  } = _ref,
6654
- props = _objectWithoutProperties(_ref, _excluded$t);
6654
+ props = _objectWithoutProperties(_ref, _excluded$u);
6655
6655
  const [isPickerUIVisible, setIsPickerUIVisible] = useState(isDefaultVisible);
6656
6656
  const [isFocused, setIsFocused] = useState(false);
6657
6657
  const [currentValue, setCurrentValue] = useState(value);
@@ -6689,7 +6689,7 @@ const DefaultNativeUIDatePicker = /*#__PURE__*/forwardRef((_ref, ref) => {
6689
6689
  });
6690
6690
  });
6691
6691
 
6692
- const _excluded$s = ["value", "pickerUITestID", "isDefaultVisible", "pickerDefaultDate", "onChange", "onBlur"];
6692
+ const _excluded$t = ["value", "pickerUITestID", "isDefaultVisible", "pickerDefaultDate", "onChange", "onBlur"];
6693
6693
  const NativeUIDatePicker = /*#__PURE__*/forwardRef((_ref, ref) => {
6694
6694
  let {
6695
6695
  value,
@@ -6699,7 +6699,7 @@ const NativeUIDatePicker = /*#__PURE__*/forwardRef((_ref, ref) => {
6699
6699
  onChange,
6700
6700
  onBlur
6701
6701
  } = _ref,
6702
- props = _objectWithoutProperties(_ref, _excluded$s);
6702
+ props = _objectWithoutProperties(_ref, _excluded$t);
6703
6703
  if (Platform.OS === 'android') {
6704
6704
  return /*#__PURE__*/jsx(DatePickerAndroid, _objectSpread({
6705
6705
  ref: ref,
@@ -6721,7 +6721,7 @@ const NativeUIDatePicker = /*#__PURE__*/forwardRef((_ref, ref) => {
6721
6721
  }, props));
6722
6722
  });
6723
6723
 
6724
- const _excluded$r = ["fillMode", "enterKeyHint", "value", "onSubmitEditing"];
6724
+ const _excluded$s = ["fillMode", "enterKeyHint", "value", "onSubmitEditing"];
6725
6725
  const DatePicker = /*#__PURE__*/forwardRef((_ref, ref) => {
6726
6726
  let {
6727
6727
  fillMode = 'native',
@@ -6729,7 +6729,7 @@ const DatePicker = /*#__PURE__*/forwardRef((_ref, ref) => {
6729
6729
  value,
6730
6730
  onSubmitEditing
6731
6731
  } = _ref,
6732
- props = _objectWithoutProperties(_ref, _excluded$r);
6732
+ props = _objectWithoutProperties(_ref, _excluded$s);
6733
6733
  // in apps, final-form can give a string value that will break the component
6734
6734
  const currentValue = value || undefined;
6735
6735
  if (fillMode === 'keyboard') {
@@ -6801,12 +6801,12 @@ function ImagePicker({
6801
6801
  });
6802
6802
  }
6803
6803
 
6804
- const _excluded$q = ["children"];
6804
+ const _excluded$r = ["children"];
6805
6805
  function ListItemContent(_ref) {
6806
6806
  let {
6807
6807
  children
6808
6808
  } = _ref,
6809
- rest = _objectWithoutProperties(_ref, _excluded$q);
6809
+ rest = _objectWithoutProperties(_ref, _excluded$r);
6810
6810
  return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({
6811
6811
  alignSelf: "center",
6812
6812
  flexBasis: "0%",
@@ -6817,7 +6817,7 @@ function ListItemContent(_ref) {
6817
6817
  }));
6818
6818
  }
6819
6819
 
6820
- const _excluded$p = ["children", "side"],
6820
+ const _excluded$q = ["children", "side"],
6821
6821
  _excluded2$2 = ["children", "align"];
6822
6822
  // Handles the vertical alignment of the side elements of the list item
6823
6823
  function ListItemSideContainer(_ref) {
@@ -6825,7 +6825,7 @@ function ListItemSideContainer(_ref) {
6825
6825
  children,
6826
6826
  side = 'left'
6827
6827
  } = _ref,
6828
- rest = _objectWithoutProperties(_ref, _excluded$p);
6828
+ rest = _objectWithoutProperties(_ref, _excluded$q);
6829
6829
  return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({
6830
6830
  flexDirection: "row",
6831
6831
  marginLeft: side === 'right' ? 'kitt.2' : undefined,
@@ -6847,7 +6847,7 @@ function ListItemSideContent(_ref2) {
6847
6847
  }));
6848
6848
  }
6849
6849
 
6850
- const _excluded$o = ["children", "withPadding", "borders", "left", "right", "onPress"];
6850
+ const _excluded$p = ["children", "withPadding", "borders", "left", "right", "onPress"];
6851
6851
  function ListItem(_ref) {
6852
6852
  let {
6853
6853
  children,
@@ -6857,7 +6857,7 @@ function ListItem(_ref) {
6857
6857
  right,
6858
6858
  onPress
6859
6859
  } = _ref,
6860
- rest = _objectWithoutProperties(_ref, _excluded$o);
6860
+ rest = _objectWithoutProperties(_ref, _excluded$p);
6861
6861
  const Wrapper = onPress ? Pressable$2 : Fragment$1;
6862
6862
  const wrapperProps = onPress ? _objectSpread({
6863
6863
  accessibilityRole: 'button',
@@ -6890,12 +6890,12 @@ ListItem.Content = ListItemContent;
6890
6890
  ListItem.SideContent = ListItemSideContent;
6891
6891
  ListItem.SideContainer = ListItemSideContainer;
6892
6892
 
6893
- const _excluded$n = ["title"];
6893
+ const _excluded$o = ["title"];
6894
6894
  function BottomSheetActionsItem(_ref) {
6895
6895
  let {
6896
6896
  title
6897
6897
  } = _ref,
6898
- props = _objectWithoutProperties(_ref, _excluded$n);
6898
+ props = _objectWithoutProperties(_ref, _excluded$o);
6899
6899
  return /*#__PURE__*/jsx(Pressable$2, _objectSpread(_objectSpread({}, props), {}, {
6900
6900
  children: /*#__PURE__*/jsx(ListItem, {
6901
6901
  withPadding: true,
@@ -6982,6 +6982,84 @@ function FilePicker({
6982
6982
  });
6983
6983
  }
6984
6984
 
6985
+ function InputAddressOption({
6986
+ item,
6987
+ mainText,
6988
+ secondaryText
6989
+ }) {
6990
+ const sharedTransform = {
6991
+ style: {
6992
+ transform: 'translateY(4px)'
6993
+ }
6994
+ };
6995
+ return /*#__PURE__*/jsx(Autocomplete.Option, {
6996
+ item: item,
6997
+ testID: "kitt.InputAddressOption.item",
6998
+ children: /*#__PURE__*/jsxs(HStack, {
6999
+ space: "kitt.2",
7000
+ children: [/*#__PURE__*/jsx(View, {
7001
+ _web: sharedTransform,
7002
+ _ios: sharedTransform,
7003
+ _android: sharedTransform,
7004
+ children: /*#__PURE__*/jsx(TypographyIcon, {
7005
+ icon: /*#__PURE__*/jsx(MapPinRegularIcon, {}),
7006
+ color: "black"
7007
+ })
7008
+ }), /*#__PURE__*/jsx(View, {
7009
+ flexShrink: 1,
7010
+ children: /*#__PURE__*/jsxs(Typography.Text, {
7011
+ children: [/*#__PURE__*/jsx(Typography.Text, {
7012
+ variant: "bold",
7013
+ children: mainText
7014
+ }), secondaryText ? /*#__PURE__*/jsxs(Typography.Text, {
7015
+ color: "black-light",
7016
+ variant: "bold",
7017
+ children: [' ', secondaryText]
7018
+ }) : null]
7019
+ })
7020
+ })]
7021
+ })
7022
+ });
7023
+ }
7024
+
7025
+ const _excluded$n = ["errorElement", "initialValue", "emptyResultsElement", "onChange", "items", "isLoading", "hasError", "onInputChange", "onSelectItem", "convertInitialValue", "children"];
7026
+ function InputAddress(_ref) {
7027
+ let {
7028
+ errorElement,
7029
+ initialValue,
7030
+ emptyResultsElement,
7031
+ onChange,
7032
+ items,
7033
+ isLoading,
7034
+ hasError,
7035
+ onInputChange,
7036
+ onSelectItem,
7037
+ convertInitialValue,
7038
+ children
7039
+ } = _ref,
7040
+ props = _objectWithoutProperties(_ref, _excluded$n);
7041
+ const formattedInitialValue = initialValue ? convertInitialValue(initialValue) : undefined;
7042
+ return /*#__PURE__*/jsx(Autocomplete, _objectSpread(_objectSpread({}, props), {}, {
7043
+ initialValue: formattedInitialValue,
7044
+ right: isLoading ? /*#__PURE__*/jsx(Icon, {
7045
+ icon: /*#__PURE__*/jsx(LoaderIcon, {}),
7046
+ color: "kitt.black"
7047
+ }) : undefined,
7048
+ errorElement: hasError ? errorElement : null,
7049
+ emptyResultsElement: items.length === 0 ? emptyResultsElement : null,
7050
+ onInputChange: value => onInputChange(value),
7051
+ onChange: item => onSelectItem(item, onChange),
7052
+ children: items.map(item => {
7053
+ const child = children(item);
7054
+ return /*#__PURE__*/cloneElement(child, {
7055
+ key: child.key,
7056
+ item
7057
+ });
7058
+ })
7059
+ }));
7060
+ }
7061
+ InputAddress.Option = InputAddressOption;
7062
+
6985
7063
  const GoogleMapsApiKeyContext = /*#__PURE__*/createContext(undefined);
6986
7064
  function GoogleMapsApiKeyProvider({
6987
7065
  children,
@@ -7320,7 +7398,7 @@ function useGoogleMapsAutocomplete() {
7320
7398
  return context;
7321
7399
  }
7322
7400
 
7323
- function InputAddressOption({
7401
+ function InputAddressOptionLegacy({
7324
7402
  item
7325
7403
  }) {
7326
7404
  const sharedTransform = {
@@ -7330,7 +7408,7 @@ function InputAddressOption({
7330
7408
  };
7331
7409
  return /*#__PURE__*/jsx(Autocomplete.Option, {
7332
7410
  item: item,
7333
- testID: "kitt.InputAddressOption.item",
7411
+ testID: "kitt.InputAddressOptionLegacy.item",
7334
7412
  children: /*#__PURE__*/jsxs(HStack, {
7335
7413
  space: "kitt.2",
7336
7414
  children: [/*#__PURE__*/jsx(View, {
@@ -7392,7 +7470,7 @@ function formatInitialValueToAutocompletePrediction(address, placeId) {
7392
7470
  }
7393
7471
 
7394
7472
  const _excluded$m = ["initialValue", "itemToString", "errorElement", "emptyResultsElement", "onChange"];
7395
- function InputAddress(_ref) {
7473
+ function InputAddressLegacy(_ref) {
7396
7474
  let {
7397
7475
  initialValue,
7398
7476
  itemToString = defaultItemToString,
@@ -7425,12 +7503,12 @@ function InputAddress(_ref) {
7425
7503
  onChange: v => {
7426
7504
  onSelectItem(v, onChange);
7427
7505
  },
7428
- children: state.items.map(item => /*#__PURE__*/jsx(InputAddressOption, {
7506
+ children: state.items.map(item => /*#__PURE__*/jsx(InputAddressOptionLegacy, {
7429
7507
  item: item
7430
7508
  }, item.place_id))
7431
7509
  }));
7432
7510
  }
7433
- InputAddress.Option = InputAddressOption;
7511
+ InputAddressLegacy.Option = InputAddressOptionLegacy;
7434
7512
 
7435
7513
  const InputEmail = /*#__PURE__*/forwardRef((props, ref) => {
7436
7514
  return /*#__PURE__*/jsx(InputText, _objectSpread({
@@ -14419,5 +14497,5 @@ function VerticalSteps(_ref) {
14419
14497
  VerticalSteps.Step = Step;
14420
14498
  VerticalSteps.BorderlessStep = BorderlessStep;
14421
14499
 
14422
- 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 };
14500
+ 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 };
14423
14501
  //# sourceMappingURL=index-metro.es.ios.js.map