@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
@@ -2863,7 +2863,7 @@ function ActionCardDisabled(_ref) {
2863
2863
  });
2864
2864
  }
2865
2865
 
2866
- var _excluded$Q = ["children", "variant", "borderVariant", "borderRadius", "disabled", "isHovered", "isPressed", "isFocused"];
2866
+ var _excluded$R = ["children", "variant", "borderVariant", "borderRadius", "disabled", "isHovered", "isPressed", "isFocused"];
2867
2867
  function ActionCard(_ref) {
2868
2868
  var children = _ref.children,
2869
2869
  _ref$variant = _ref.variant,
@@ -2876,7 +2876,7 @@ function ActionCard(_ref) {
2876
2876
  isHovered = _ref.isHovered,
2877
2877
  isPressed = _ref.isPressed,
2878
2878
  isFocused = _ref.isFocused,
2879
- props = _objectWithoutProperties(_ref, _excluded$Q);
2879
+ props = _objectWithoutProperties(_ref, _excluded$R);
2880
2880
  return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
2881
2881
  children: disabled ? /*#__PURE__*/jsx(ActionCardDisabled, {
2882
2882
  borderRadius: borderRadius,
@@ -3208,7 +3208,7 @@ var getTypographyTypeWithAncestorValue = function (type, typographyTypeInContext
3208
3208
  return !!isAllValuesUndefined && !!typographyTypeInContext ? typographyTypeInContext : type;
3209
3209
  };
3210
3210
 
3211
- var _excluded$P = ["accessibilityRole", "base", "small", "medium", "large", "wide", "type", "variant", "color"];
3211
+ var _excluded$Q = ["accessibilityRole", "base", "small", "medium", "large", "wide", "type", "variant", "color"];
3212
3212
  var TypographyFamilyContext = /*#__PURE__*/createContext(null);
3213
3213
  var TypographyTypeContext = /*#__PURE__*/createContext(null);
3214
3214
  var TypographyVariantContext = /*#__PURE__*/createContext(undefined);
@@ -3333,7 +3333,7 @@ var TypographyBase = /*#__PURE__*/forwardRef(function (_ref2, ref) {
3333
3333
  } : _ref2$type,
3334
3334
  variant = _ref2.variant,
3335
3335
  color = _ref2.color,
3336
- otherProps = _objectWithoutProperties(_ref2, _excluded$P);
3336
+ otherProps = _objectWithoutProperties(_ref2, _excluded$Q);
3337
3337
  var sx = useSx();
3338
3338
 
3339
3339
  // ancestors
@@ -3495,12 +3495,12 @@ function Icon(_ref) {
3495
3495
  });
3496
3496
  }
3497
3497
 
3498
- var _excluded$O = ["color", "size"],
3498
+ var _excluded$P = ["color", "size"],
3499
3499
  _excluded2$6 = ["color"];
3500
3500
  function TypographyIconSpecifiedColor(_ref) {
3501
3501
  var color = _ref.color,
3502
3502
  size = _ref.size,
3503
- props = _objectWithoutProperties(_ref, _excluded$O);
3503
+ props = _objectWithoutProperties(_ref, _excluded$P);
3504
3504
  var colorValue = getTypographyColorValue(color);
3505
3505
  var sx = useSx();
3506
3506
  var _sx = sx({
@@ -3540,7 +3540,7 @@ var getButtonTextColorByType = function (type, variant, isHovered, isPressed, is
3540
3540
  return "".concat(baseKey, ".default");
3541
3541
  };
3542
3542
 
3543
- var _excluded$N = ["type", "variant", "isDisabled", "icon", "children", "isHovered", "isPressed", "isFocused", "innerSpacing", "size"];
3543
+ var _excluded$O = ["type", "variant", "isDisabled", "icon", "children", "isHovered", "isPressed", "isFocused", "innerSpacing", "size"];
3544
3544
  function ButtonContentChildren(_ref) {
3545
3545
  var type = _ref.type,
3546
3546
  icon = _ref.icon,
@@ -3640,7 +3640,7 @@ function ButtonContent(_ref2) {
3640
3640
  _ref2.isFocused;
3641
3641
  var innerSpacing = _ref2.innerSpacing,
3642
3642
  size = _ref2.size,
3643
- props = _objectWithoutProperties(_ref2, _excluded$N);
3643
+ props = _objectWithoutProperties(_ref2, _excluded$O);
3644
3644
  var color = getButtonTextColorByType(type, variant, isHovered, isPressed, isDisabled);
3645
3645
  return /*#__PURE__*/jsx(View, {
3646
3646
  _web: {
@@ -3941,7 +3941,7 @@ function LoaderIcon(_ref) {
3941
3941
  });
3942
3942
  }
3943
3943
 
3944
- var _excluded$M = ["as", "onPress", "disabled", "icon", "stretch"];
3944
+ var _excluded$N = ["as", "onPress", "disabled", "icon", "stretch"];
3945
3945
  var ActionsItem = /*#__PURE__*/forwardRef(function (_ref, ref) {
3946
3946
  var as = _ref.as,
3947
3947
  onPress = _ref.onPress,
@@ -3952,7 +3952,7 @@ var ActionsItem = /*#__PURE__*/forwardRef(function (_ref, ref) {
3952
3952
  base: true,
3953
3953
  medium: false
3954
3954
  } : _ref$stretch,
3955
- props = _objectWithoutProperties(_ref, _excluded$M);
3955
+ props = _objectWithoutProperties(_ref, _excluded$N);
3956
3956
  var _useState = useState(false),
3957
3957
  _useState2 = _slicedToArray(_useState, 2),
3958
3958
  isLoading = _useState2[0],
@@ -4030,7 +4030,7 @@ function ActionsButton(_ref) {
4030
4030
  }, props));
4031
4031
  }
4032
4032
 
4033
- var _excluded$L = ["children", "layout", "reversed"];
4033
+ var _excluded$M = ["children", "layout", "reversed"];
4034
4034
  function getCurrentLayout(layout) {
4035
4035
  if (!layout) return {
4036
4036
  base: 'stretch',
@@ -4062,7 +4062,7 @@ function Actions(_ref) {
4062
4062
  reversed = _ref$reversed === void 0 ? {
4063
4063
  base: false
4064
4064
  } : _ref$reversed,
4065
- props = _objectWithoutProperties(_ref, _excluded$L);
4065
+ props = _objectWithoutProperties(_ref, _excluded$M);
4066
4066
  var shouldReverse = typeof reversed === 'boolean' ? {
4067
4067
  base: !!reversed
4068
4068
  } : createResponsiveStyleFromProp(reversed, true, false);
@@ -4115,7 +4115,7 @@ function getInitials(firstname, lastname) {
4115
4115
  return "".concat(firstname[0]).concat(lastname[0]).toUpperCase();
4116
4116
  }
4117
4117
 
4118
- var _excluded$K = ["size", "round", "light", "sizeVariant", "width", "height", "dark", "disabled"];
4118
+ var _excluded$L = ["size", "round", "light", "sizeVariant", "width", "height", "dark", "disabled"];
4119
4119
  function AvatarContent(_ref) {
4120
4120
  var size = _ref.size,
4121
4121
  src = _ref.src,
@@ -4178,7 +4178,7 @@ function Avatar(_ref2) {
4178
4178
  height = _ref2.height,
4179
4179
  dark = _ref2.dark,
4180
4180
  disabled = _ref2.disabled,
4181
- props = _objectWithoutProperties(_ref2, _excluded$K);
4181
+ props = _objectWithoutProperties(_ref2, _excluded$L);
4182
4182
  var currentSize = getCurrentSize({
4183
4183
  size: size,
4184
4184
  sizeVariant: sizeVariant
@@ -4260,17 +4260,18 @@ function useStaticBottomSheet(Content) {
4260
4260
  };
4261
4261
  }
4262
4262
 
4263
+ var overflowHidden = "kitt-u_overflowHidden_otm3u3";
4263
4264
  function useBlockBodyScroll(shouldBlockScroll, isInitialRender) {
4264
4265
  useEffect(function () {
4265
4266
  if (shouldBlockScroll) {
4266
- document.body.style.overflow = 'hidden';
4267
+ document.body.classList.add(overflowHidden);
4267
4268
  } else if (!isInitialRender) {
4268
- document.body.style.overflow = '';
4269
+ document.body.classList.remove(overflowHidden);
4269
4270
  }
4270
4271
  return function () {
4271
4272
  // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition -- When leaving the website, document.body can be null
4272
4273
  if (document.body) {
4273
- document.body.style.overflow = '';
4274
+ document.body.classList.remove(overflowHidden);
4274
4275
  }
4275
4276
  };
4276
4277
  }, [shouldBlockScroll, isInitialRender]);
@@ -4363,7 +4364,7 @@ var CardModalRotationContainer = /*#__PURE__*/forwardRef(function (props, ref) {
4363
4364
  }));
4364
4365
  });
4365
4366
 
4366
- var _excluded$J = ["children", "appear", "visible", "unmountOnExit", "isAnimationEnabled", "onEnter", "onEntered", "onExit", "onExited", "onClose"];
4367
+ var _excluded$K = ["children", "appear", "visible", "unmountOnExit", "isAnimationEnabled", "onEnter", "onEntered", "onExit", "onExited", "onClose"];
4367
4368
  var contentAnimationEnter$1 = "kitt-u_contentAnimationEnter_c11xxy4r";
4368
4369
  var contentAnimatioEnterActive$1 = "kitt-u_contentAnimatioEnterActive_cl52117";
4369
4370
  var contentAnimatioExit$1 = "kitt-u_contentAnimatioExit_cyjczep";
@@ -4402,7 +4403,7 @@ function CardModalAnimation(_ref) {
4402
4403
  onExit = _ref.onExit,
4403
4404
  onExited = _ref.onExited,
4404
4405
  onClose = _ref.onClose,
4405
- props = _objectWithoutProperties(_ref, _excluded$J);
4406
+ props = _objectWithoutProperties(_ref, _excluded$K);
4406
4407
  // React 19 has removed the ReactDOM.findDOMNode method. We need to use refs to access DOM nodes in CSSTransition.
4407
4408
  // See https://github.com/reactjs/react-transition-group/issues/918
4408
4409
  var overlayRef = useRef(null);
@@ -4443,13 +4444,13 @@ function CardModalAnimation(_ref) {
4443
4444
  }));
4444
4445
  }
4445
4446
 
4446
- var _excluded$I = ["children", "visible", "onClose", "onExited"];
4447
+ var _excluded$J = ["children", "visible", "onClose", "onExited"];
4447
4448
  function CardModalBehaviour(_ref) {
4448
4449
  var children = _ref.children,
4449
4450
  visible = _ref.visible,
4450
4451
  onClose = _ref.onClose,
4451
4452
  onExited = _ref.onExited,
4452
- props = _objectWithoutProperties(_ref, _excluded$I);
4453
+ props = _objectWithoutProperties(_ref, _excluded$J);
4453
4454
  var _useState = useState(visible),
4454
4455
  _useState2 = _slicedToArray(_useState, 2),
4455
4456
  isModalBehaviourVisible = _useState2[0],
@@ -4474,12 +4475,12 @@ function CardModalBehaviour(_ref) {
4474
4475
  });
4475
4476
  }
4476
4477
 
4477
- var _excluded$H = ["children", "padding"];
4478
+ var _excluded$I = ["children", "padding"];
4478
4479
  function CardModalBody(_ref) {
4479
4480
  var children = _ref.children,
4480
4481
  _ref$padding = _ref.padding,
4481
4482
  padding = _ref$padding === void 0 ? 'kitt.4' : _ref$padding,
4482
- props = _objectWithoutProperties(_ref, _excluded$H);
4483
+ props = _objectWithoutProperties(_ref, _excluded$I);
4483
4484
  return /*#__PURE__*/jsx(ScrollView, _objectSpread(_objectSpread({
4484
4485
  showsVerticalScrollIndicator: false,
4485
4486
  _contentContainerStyle: {
@@ -4490,7 +4491,7 @@ function CardModalBody(_ref) {
4490
4491
  }));
4491
4492
  }
4492
4493
 
4493
- var _excluded$G = ["children", "padding", "hasSeparator"];
4494
+ var _excluded$H = ["children", "padding", "hasSeparator"];
4494
4495
  function CardModalFooter(_ref) {
4495
4496
  var children = _ref.children,
4496
4497
  _ref$padding = _ref.padding,
@@ -4500,7 +4501,7 @@ function CardModalFooter(_ref) {
4500
4501
  } : _ref$padding,
4501
4502
  _ref$hasSeparator = _ref.hasSeparator,
4502
4503
  hasSeparator = _ref$hasSeparator === void 0 ? true : _ref$hasSeparator,
4503
- props = _objectWithoutProperties(_ref, _excluded$G);
4504
+ props = _objectWithoutProperties(_ref, _excluded$H);
4504
4505
  return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
4505
4506
  marginTop: "kitt.2",
4506
4507
  padding: padding,
@@ -4544,7 +4545,7 @@ var getButtonTypeAndVariant = function (iconColor) {
4544
4545
  }
4545
4546
  };
4546
4547
 
4547
- var _excluded$F = ["color", "ariaLabel"];
4548
+ var _excluded$G = ["color", "ariaLabel"];
4548
4549
  /**
4549
4550
  * @deprecated IconButton should only be used as a navigation button
4550
4551
  * Other use cases should use a <Button> component with an icon
@@ -4553,7 +4554,7 @@ function IconButton(_ref) {
4553
4554
  var _ref$color = _ref.color,
4554
4555
  color = _ref$color === void 0 ? 'black' : _ref$color;
4555
4556
  _ref.ariaLabel;
4556
- var props = _objectWithoutProperties(_ref, _excluded$F);
4557
+ var props = _objectWithoutProperties(_ref, _excluded$G);
4557
4558
  var _getButtonTypeAndVari = getButtonTypeAndVariant(color),
4558
4559
  legacyColorToType = _getButtonTypeAndVari.type,
4559
4560
  legacyColorToVariant = _getButtonTypeAndVari.variant;
@@ -4660,7 +4661,7 @@ function CardModalHeader(props) {
4660
4661
  return /*#__PURE__*/jsx(TopNavBar, _objectSpread({}, props));
4661
4662
  }
4662
4663
 
4663
- var _excluded$E = ["backgroundColor", "maxWidth", "withoutShadow", "children"];
4664
+ var _excluded$F = ["backgroundColor", "maxWidth", "withoutShadow", "children"];
4664
4665
  function CardModal(_ref) {
4665
4666
  var _ref$backgroundColor = _ref.backgroundColor,
4666
4667
  backgroundColor = _ref$backgroundColor === void 0 ? 'kitt.uiBackgroundLight' : _ref$backgroundColor,
@@ -4668,7 +4669,7 @@ function CardModal(_ref) {
4668
4669
  maxWidth = _ref$maxWidth === void 0 ? 'kitt.cardModal.maxWidth' : _ref$maxWidth,
4669
4670
  withoutShadow = _ref.withoutShadow,
4670
4671
  children = _ref.children,
4671
- props = _objectWithoutProperties(_ref, _excluded$E);
4672
+ props = _objectWithoutProperties(_ref, _excluded$F);
4672
4673
  return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
4673
4674
  overflow: "hidden",
4674
4675
  backgroundColor: backgroundColor,
@@ -4884,11 +4885,11 @@ function ChoiceItemContainer(_ref) {
4884
4885
  }));
4885
4886
  }
4886
4887
 
4887
- var _excluded$D = ["direction", "contentContainerStyle"];
4888
+ var _excluded$E = ["direction", "contentContainerStyle"];
4888
4889
  function ChoicesContainer(_ref) {
4889
4890
  var direction = _ref.direction,
4890
4891
  contentContainerStyle = _ref.contentContainerStyle,
4891
- props = _objectWithoutProperties(_ref, _excluded$D);
4892
+ props = _objectWithoutProperties(_ref, _excluded$E);
4892
4893
  if (direction === 'row') {
4893
4894
  return /*#__PURE__*/jsx(ScrollView$2, _objectSpread({
4894
4895
  horizontal: true,
@@ -4963,7 +4964,7 @@ var ChoicesElements = {
4963
4964
  ButtonChoices: ButtonChoices
4964
4965
  };
4965
4966
 
4966
- var _excluded$C = ["children", "appear", "visible", "unmountOnExit", "isAnimationEnabled", "onEnter", "onEntered", "onExit", "onExited", "onClose"];
4967
+ var _excluded$D = ["children", "appear", "visible", "unmountOnExit", "isAnimationEnabled", "onEnter", "onEntered", "onExit", "onExited", "onClose"];
4967
4968
  var contentAnimationEnter = "kitt-u_contentAnimationEnter_c1i0gle8";
4968
4969
  var contentAnimatioEnterActive = "kitt-u_contentAnimatioEnterActive_c1jmfkjw";
4969
4970
  var contentAnimatioExit = "kitt-u_contentAnimatioExit_cwjstxl";
@@ -5002,7 +5003,7 @@ function DialogModalAnimation(_ref) {
5002
5003
  onExit = _ref.onExit,
5003
5004
  onExited = _ref.onExited,
5004
5005
  onClose = _ref.onClose,
5005
- props = _objectWithoutProperties(_ref, _excluded$C);
5006
+ props = _objectWithoutProperties(_ref, _excluded$D);
5006
5007
  // React 19 has removed the ReactDOM.findDOMNode method. We need to use refs to access DOM nodes in CSSTransition.
5007
5008
  // See https://github.com/reactjs/react-transition-group/issues/918
5008
5009
  var overlayRef = useRef(null);
@@ -5045,13 +5046,13 @@ function DialogModalAnimation(_ref) {
5045
5046
  }));
5046
5047
  }
5047
5048
 
5048
- var _excluded$B = ["children", "visible", "onClose", "onExited"];
5049
+ var _excluded$C = ["children", "visible", "onClose", "onExited"];
5049
5050
  function DialogModalBehaviour(_ref) {
5050
5051
  var children = _ref.children,
5051
5052
  visible = _ref.visible,
5052
5053
  onClose = _ref.onClose,
5053
5054
  onExited = _ref.onExited,
5054
- props = _objectWithoutProperties(_ref, _excluded$B);
5055
+ props = _objectWithoutProperties(_ref, _excluded$C);
5055
5056
  var _useState = useState(visible),
5056
5057
  _useState2 = _slicedToArray(_useState, 2),
5057
5058
  isModalBehaviourVisible = _useState2[0],
@@ -5082,7 +5083,7 @@ function DialogModalBehaviour(_ref) {
5082
5083
  });
5083
5084
  }
5084
5085
 
5085
- var _excluded$A = ["stretch"];
5086
+ var _excluded$B = ["stretch"];
5086
5087
  function DialogModal(_ref) {
5087
5088
  var illustration = _ref.illustration,
5088
5089
  title = _ref.title,
@@ -5122,7 +5123,7 @@ DialogModal.ModalBehaviour = DialogModalBehaviour;
5122
5123
  function DialogModalButton(_ref2) {
5123
5124
  var _ref2$stretch = _ref2.stretch,
5124
5125
  stretch = _ref2$stretch === void 0 ? true : _ref2$stretch,
5125
- props = _objectWithoutProperties(_ref2, _excluded$A);
5126
+ props = _objectWithoutProperties(_ref2, _excluded$B);
5126
5127
  return /*#__PURE__*/jsx(Actions.Button, _objectSpread({
5127
5128
  stretch: stretch
5128
5129
  }, props));
@@ -5159,7 +5160,7 @@ function Emoji(_ref) {
5159
5160
  });
5160
5161
  }
5161
5162
 
5162
- var _excluded$z = ["as", "appScheme", "appValue", "onPress", "onOpenAppError"],
5163
+ var _excluded$A = ["as", "appScheme", "appValue", "onPress", "onOpenAppError"],
5163
5164
  _excluded2$5 = ["phoneNumber", "children"],
5164
5165
  _excluded3$4 = ["phoneNumber", "children"],
5165
5166
  _excluded4$3 = ["emailAddress", "children"];
@@ -5169,7 +5170,7 @@ function ExternalAppLink(_ref) {
5169
5170
  appValue = _ref.appValue,
5170
5171
  onPress = _ref.onPress,
5171
5172
  onOpenAppError = _ref.onOpenAppError,
5172
- rest = _objectWithoutProperties(_ref, _excluded$z);
5173
+ rest = _objectWithoutProperties(_ref, _excluded$A);
5173
5174
  var href = "".concat(appScheme, ":").concat(appValue);
5174
5175
  var handleOnPress = /*#__PURE__*/function () {
5175
5176
  var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(e) {
@@ -5264,14 +5265,14 @@ var defaultOpenLinkBehavior = {
5264
5265
  web: 'targetBlank'
5265
5266
  };
5266
5267
 
5267
- var _excluded$y = ["as", "href", "openLinkBehavior", "onPress"];
5268
+ var _excluded$z = ["as", "href", "openLinkBehavior", "onPress"];
5268
5269
  function ExternalLink(_ref) {
5269
5270
  var Component = _ref.as,
5270
5271
  href = _ref.href,
5271
5272
  _ref$openLinkBehavior = _ref.openLinkBehavior,
5272
5273
  openLinkBehavior = _ref$openLinkBehavior === void 0 ? defaultOpenLinkBehavior : _ref$openLinkBehavior,
5273
5274
  onPress = _ref.onPress,
5274
- rest = _objectWithoutProperties(_ref, _excluded$y);
5275
+ rest = _objectWithoutProperties(_ref, _excluded$z);
5275
5276
  return /*#__PURE__*/jsx(Component, _objectSpread(_objectSpread({}, rest), {}, {
5276
5277
  accessibilityRole: "link",
5277
5278
  href: href,
@@ -5347,7 +5348,7 @@ function InputTextContainer(props) {
5347
5348
  }, props));
5348
5349
  }
5349
5350
 
5350
- var _excluded$x = ["id", "right", "state", "variant", "internalForceState", "disabled", "autoCorrect", "textContentType", "autoComplete", "inputMode", "multiline", "height", "onSubmitEditing"];
5351
+ var _excluded$y = ["id", "right", "state", "variant", "internalForceState", "disabled", "autoCorrect", "textContentType", "autoComplete", "inputMode", "multiline", "height", "onSubmitEditing"];
5351
5352
  var InputText = /*#__PURE__*/forwardRef(function (_ref, ref) {
5352
5353
  var id = _ref.id,
5353
5354
  right = _ref.right;
@@ -5368,7 +5369,7 @@ var InputText = /*#__PURE__*/forwardRef(function (_ref, ref) {
5368
5369
  multiline = _ref.multiline,
5369
5370
  height = _ref.height,
5370
5371
  onSubmitEditing = _ref.onSubmitEditing,
5371
- props = _objectWithoutProperties(_ref, _excluded$x);
5372
+ props = _objectWithoutProperties(_ref, _excluded$y);
5372
5373
  var theme = useTheme();
5373
5374
  var fontSizeForNativeBase = createNativeBaseFontSize({
5374
5375
  base: 'body-m'
@@ -5492,12 +5493,12 @@ function AutocompleteItemsListContainer(_ref) {
5492
5493
  });
5493
5494
  }
5494
5495
 
5495
- var _excluded$w = ["children", "testID"];
5496
+ var _excluded$x = ["children", "testID"];
5496
5497
  function AutocompleteOption(_ref) {
5497
5498
  var children = _ref.children,
5498
5499
  _ref$testID = _ref.testID,
5499
5500
  testID = _ref$testID === void 0 ? 'kitt.Autocomplete.option' : _ref$testID,
5500
- props = _objectWithoutProperties(_ref, _excluded$w);
5501
+ props = _objectWithoutProperties(_ref, _excluded$x);
5501
5502
  return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({
5502
5503
  paddingX: {
5503
5504
  base: 'kitt.2',
@@ -5510,7 +5511,7 @@ function AutocompleteOption(_ref) {
5510
5511
  }));
5511
5512
  }
5512
5513
 
5513
- var _excluded$v = ["children", "name", "disabled", "placeholder", "isInitialOpen", "initialValue", "containerProps", "filterItemBasedOnCurrentInputValue", "checkSelectedItem", "itemToString", "right", "onChange", "onFocus", "onBlur", "onInputChange", "onSelectItem", "onOuterPress", "errorElement", "emptyResultsElement", "inputTestID", "listContainerTestID", "zIndex", "maxItemContainerHeight"],
5514
+ var _excluded$w = ["children", "name", "disabled", "placeholder", "isInitialOpen", "initialValue", "containerProps", "filterItemBasedOnCurrentInputValue", "checkSelectedItem", "itemToString", "right", "onChange", "onFocus", "onBlur", "onInputChange", "onSelectItem", "onOuterPress", "errorElement", "emptyResultsElement", "inputTestID", "listContainerTestID", "zIndex", "maxItemContainerHeight"],
5514
5515
  _excluded2$4 = ["onClick", "onPress"],
5515
5516
  _excluded3$3 = ["onKeyDown", "onFocus", "onBlur", "onChange"],
5516
5517
  _excluded4$2 = ["onClick", "onPress", "role", "aria-selected"];
@@ -5544,7 +5545,7 @@ function Autocomplete(_ref) {
5544
5545
  _ref$zIndex = _ref.zIndex,
5545
5546
  zIndex = _ref$zIndex === void 0 ? 1000 : _ref$zIndex,
5546
5547
  maxItemContainerHeight = _ref.maxItemContainerHeight,
5547
- props = _objectWithoutProperties(_ref, _excluded$v);
5548
+ props = _objectWithoutProperties(_ref, _excluded$w);
5548
5549
  var childrenArray = Children.toArray(children);
5549
5550
  var items = childrenArray.filter(isReactElement).map(function (child) {
5550
5551
  return {
@@ -5751,7 +5752,7 @@ function getBorderColor$1(_ref) {
5751
5752
  return 'kitt.forms.checkbox.default.borderColor';
5752
5753
  }
5753
5754
 
5754
- var _excluded$u = ["checked", "hitSlop", "children", "disabled", "onChange", "onBlur", "onFocus"];
5755
+ var _excluded$v = ["checked", "hitSlop", "children", "disabled", "onChange", "onBlur", "onFocus"];
5755
5756
  var Checkbox = /*#__PURE__*/forwardRef(function (_ref, ref) {
5756
5757
  var checked = _ref.checked,
5757
5758
  _ref$hitSlop = _ref.hitSlop,
@@ -5761,7 +5762,7 @@ var Checkbox = /*#__PURE__*/forwardRef(function (_ref, ref) {
5761
5762
  onChange = _ref.onChange,
5762
5763
  onBlur = _ref.onBlur,
5763
5764
  onFocus = _ref.onFocus,
5764
- props = _objectWithoutProperties(_ref, _excluded$u);
5765
+ props = _objectWithoutProperties(_ref, _excluded$v);
5765
5766
  var theme = useTheme();
5766
5767
  return /*#__PURE__*/jsx(Pressable, _objectSpread(_objectSpread({
5767
5768
  hitSlop: hitSlop
@@ -6077,7 +6078,7 @@ function PartContainer(_ref) {
6077
6078
  });
6078
6079
  }
6079
6080
 
6080
- var _excluded$t = ["id", "value", "testID", "stretch", "placeholder", "minDate", "maxDate", "disabled", "isFocusedInternal", "isHoveredInternal", "isPressedInternal", "enterKeyHint", "onChange", "onBlur", "onFocus", "onSubmitEditing"];
6081
+ var _excluded$u = ["id", "value", "testID", "stretch", "placeholder", "minDate", "maxDate", "disabled", "isFocusedInternal", "isHoveredInternal", "isPressedInternal", "enterKeyHint", "onChange", "onBlur", "onFocus", "onSubmitEditing"];
6081
6082
  var KeyboardDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
6082
6083
  var id = _ref.id,
6083
6084
  value = _ref.value,
@@ -6095,7 +6096,7 @@ var KeyboardDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
6095
6096
  onBlur = _ref.onBlur,
6096
6097
  onFocus = _ref.onFocus,
6097
6098
  onSubmitEditing = _ref.onSubmitEditing;
6098
- _objectWithoutProperties(_ref, _excluded$t);
6099
+ _objectWithoutProperties(_ref, _excluded$u);
6099
6100
  var monthRef = useRef(null);
6100
6101
  var yearRef = useRef(null);
6101
6102
  var defaultValue = value;
@@ -6235,10 +6236,10 @@ var KeyboardDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
6235
6236
  });
6236
6237
  });
6237
6238
 
6238
- var _excluded$s = ["value"];
6239
+ var _excluded$t = ["value"];
6239
6240
  var DatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
6240
6241
  var value = _ref.value,
6241
- props = _objectWithoutProperties(_ref, _excluded$s);
6242
+ props = _objectWithoutProperties(_ref, _excluded$t);
6242
6243
  // in apps, final-form can give a string value that will break the component
6243
6244
  var currentValue = value || undefined;
6244
6245
  return /*#__PURE__*/jsx(KeyboardDatePicker, _objectSpread(_objectSpread({
@@ -6349,6 +6350,85 @@ function ImagePicker(_ref) {
6349
6350
  });
6350
6351
  }
6351
6352
 
6353
+ function InputAddressOption(_ref) {
6354
+ var item = _ref.item,
6355
+ mainText = _ref.mainText,
6356
+ secondaryText = _ref.secondaryText;
6357
+ var sharedTransform = {
6358
+ style: {
6359
+ transform: 'translateY(4px)'
6360
+ }
6361
+ };
6362
+ return /*#__PURE__*/jsx(Autocomplete.Option, {
6363
+ item: item,
6364
+ testID: "kitt.InputAddressOption.item",
6365
+ children: /*#__PURE__*/jsxs(HStack, {
6366
+ space: "kitt.2",
6367
+ children: [/*#__PURE__*/jsx(View, {
6368
+ _web: sharedTransform,
6369
+ _ios: sharedTransform,
6370
+ _android: sharedTransform,
6371
+ children: /*#__PURE__*/jsx(TypographyIcon, {
6372
+ icon: /*#__PURE__*/jsx(MapPinRegularIcon, {}),
6373
+ color: "black"
6374
+ })
6375
+ }), /*#__PURE__*/jsx(View, {
6376
+ flexShrink: 1,
6377
+ children: /*#__PURE__*/jsxs(Typography.Text, {
6378
+ children: [/*#__PURE__*/jsx(Typography.Text, {
6379
+ variant: "bold",
6380
+ children: mainText
6381
+ }), secondaryText ? /*#__PURE__*/jsxs(Typography.Text, {
6382
+ color: "black-light",
6383
+ variant: "bold",
6384
+ children: [' ', secondaryText]
6385
+ }) : null]
6386
+ })
6387
+ })]
6388
+ })
6389
+ });
6390
+ }
6391
+
6392
+ var _excluded$s = ["errorElement", "initialValue", "emptyResultsElement", "onChange", "items", "isLoading", "hasError", "onInputChange", "onSelectItem", "convertInitialValue", "children"];
6393
+ function InputAddress(_ref) {
6394
+ var errorElement = _ref.errorElement,
6395
+ initialValue = _ref.initialValue,
6396
+ emptyResultsElement = _ref.emptyResultsElement,
6397
+ _onChange = _ref.onChange,
6398
+ items = _ref.items,
6399
+ isLoading = _ref.isLoading,
6400
+ hasError = _ref.hasError,
6401
+ _onInputChange = _ref.onInputChange,
6402
+ onSelectItem = _ref.onSelectItem,
6403
+ convertInitialValue = _ref.convertInitialValue,
6404
+ children = _ref.children,
6405
+ props = _objectWithoutProperties(_ref, _excluded$s);
6406
+ var formattedInitialValue = initialValue ? convertInitialValue(initialValue) : undefined;
6407
+ return /*#__PURE__*/jsx(Autocomplete, _objectSpread(_objectSpread({}, props), {}, {
6408
+ initialValue: formattedInitialValue,
6409
+ right: isLoading ? /*#__PURE__*/jsx(Icon, {
6410
+ icon: /*#__PURE__*/jsx(LoaderIcon, {}),
6411
+ color: "kitt.black"
6412
+ }) : undefined,
6413
+ errorElement: hasError ? errorElement : null,
6414
+ emptyResultsElement: items.length === 0 ? emptyResultsElement : null,
6415
+ onInputChange: function (value) {
6416
+ return _onInputChange(value);
6417
+ },
6418
+ onChange: function (item) {
6419
+ return onSelectItem(item, _onChange);
6420
+ },
6421
+ children: items.map(function (item) {
6422
+ var child = children(item);
6423
+ return /*#__PURE__*/cloneElement(child, {
6424
+ key: child.key,
6425
+ item: item
6426
+ });
6427
+ })
6428
+ }));
6429
+ }
6430
+ InputAddress.Option = InputAddressOption;
6431
+
6352
6432
  var GoogleMapsApiKeyContext = /*#__PURE__*/createContext(undefined);
6353
6433
  function GoogleMapsApiKeyProvider(_ref) {
6354
6434
  var children = _ref.children,
@@ -6754,7 +6834,7 @@ function useGoogleMapsAutocomplete() {
6754
6834
  return context;
6755
6835
  }
6756
6836
 
6757
- function InputAddressOption(_ref) {
6837
+ function InputAddressOptionLegacy(_ref) {
6758
6838
  var item = _ref.item;
6759
6839
  var sharedTransform = {
6760
6840
  style: {
@@ -6763,7 +6843,7 @@ function InputAddressOption(_ref) {
6763
6843
  };
6764
6844
  return /*#__PURE__*/jsx(Autocomplete.Option, {
6765
6845
  item: item,
6766
- testID: "kitt.InputAddressOption.item",
6846
+ testID: "kitt.InputAddressOptionLegacy.item",
6767
6847
  children: /*#__PURE__*/jsxs(HStack, {
6768
6848
  space: "kitt.2",
6769
6849
  children: [/*#__PURE__*/jsx(View, {
@@ -6823,7 +6903,7 @@ function formatInitialValueToAutocompletePrediction(address, placeId) {
6823
6903
  }
6824
6904
 
6825
6905
  var _excluded$r = ["initialValue", "itemToString", "errorElement", "emptyResultsElement", "onChange"];
6826
- function InputAddress(_ref) {
6906
+ function InputAddressLegacy(_ref) {
6827
6907
  var initialValue = _ref.initialValue,
6828
6908
  _ref$itemToString = _ref.itemToString,
6829
6909
  itemToString = _ref$itemToString === void 0 ? defaultItemToString : _ref$itemToString,
@@ -6857,13 +6937,13 @@ function InputAddress(_ref) {
6857
6937
  onSelectItem(v, _onChange);
6858
6938
  },
6859
6939
  children: state.items.map(function (item) {
6860
- return /*#__PURE__*/jsx(InputAddressOption, {
6940
+ return /*#__PURE__*/jsx(InputAddressOptionLegacy, {
6861
6941
  item: item
6862
6942
  }, item.place_id);
6863
6943
  })
6864
6944
  }));
6865
6945
  }
6866
- InputAddress.Option = InputAddressOption;
6946
+ InputAddressLegacy.Option = InputAddressOptionLegacy;
6867
6947
 
6868
6948
  var InputEmail = /*#__PURE__*/forwardRef(function (props, ref) {
6869
6949
  return /*#__PURE__*/jsx(InputText, _objectSpread({
@@ -13833,5 +13913,5 @@ function VerticalSteps(_ref) {
13833
13913
  VerticalSteps.Step = Step;
13834
13914
  VerticalSteps.BorderlessStep = BorderlessStep;
13835
13915
 
13836
- 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, 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 };
13916
+ 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, 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 };
13837
13917
  //# sourceMappingURL=index.es.web.js.map