@ornikar/kitt-universal 25.48.1-canary.430f6cd109998511d4c4ad7369a24908547c62f4.0 → 25.49.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 (82) hide show
  1. package/CHANGELOG.md +2 -4
  2. package/dist/definitions/BottomSheet/BottomSheet.d.ts +2 -3
  3. package/dist/definitions/BottomSheet/BottomSheet.d.ts.map +1 -1
  4. package/dist/definitions/CardModal/CardModal.d.ts +2 -3
  5. package/dist/definitions/CardModal/CardModal.d.ts.map +1 -1
  6. package/dist/definitions/FullscreenModal/FullscreenModal.d.ts +2 -3
  7. package/dist/definitions/FullscreenModal/FullscreenModal.d.ts.map +1 -1
  8. package/dist/definitions/NavigationModal/NavigationModal.d.ts +1 -1
  9. package/dist/definitions/NavigationModal/NavigationModal.d.ts.map +1 -1
  10. package/dist/definitions/index.d.ts +0 -6
  11. package/dist/definitions/index.d.ts.map +1 -1
  12. package/dist/index-metro.es.android.js +164 -922
  13. package/dist/index-metro.es.android.js.map +1 -1
  14. package/dist/index-metro.es.ios.js +164 -922
  15. package/dist/index-metro.es.ios.js.map +1 -1
  16. package/dist/index-node-20.10.cjs.js +97 -852
  17. package/dist/index-node-20.10.cjs.js.map +1 -1
  18. package/dist/index-node-20.10.cjs.web.css +0 -8
  19. package/dist/index-node-20.10.cjs.web.js +139 -822
  20. package/dist/index-node-20.10.cjs.web.js.map +1 -1
  21. package/dist/index-node-20.10.es.mjs +98 -850
  22. package/dist/index-node-20.10.es.mjs.map +1 -1
  23. package/dist/index-node-20.10.es.web.css +0 -8
  24. package/dist/index-node-20.10.es.web.mjs +141 -821
  25. package/dist/index-node-20.10.es.web.mjs.map +1 -1
  26. package/dist/index.es.js +166 -935
  27. package/dist/index.es.js.map +1 -1
  28. package/dist/index.es.web.js +225 -910
  29. package/dist/index.es.web.js.map +1 -1
  30. package/dist/styles.css +0 -8
  31. package/dist/tsbuildinfo +1 -1
  32. package/package.json +1 -1
  33. package/dist/definitions/CardModal2/CardModal2.d.ts +0 -19
  34. package/dist/definitions/CardModal2/CardModal2.d.ts.map +0 -1
  35. package/dist/definitions/CardModal2/components/CardModal2Animation/CardModal2Animation.d.ts +0 -8
  36. package/dist/definitions/CardModal2/components/CardModal2Animation/CardModal2Animation.d.ts.map +0 -1
  37. package/dist/definitions/CardModal2/components/CardModal2Animation/CardModal2Animation.web.d.ts +0 -4
  38. package/dist/definitions/CardModal2/components/CardModal2Animation/CardModal2Animation.web.d.ts.map +0 -1
  39. package/dist/definitions/CardModal2/components/CardModal2Animation/CardModal2RotationContainer.d.ts +0 -7
  40. package/dist/definitions/CardModal2/components/CardModal2Animation/CardModal2RotationContainer.d.ts.map +0 -1
  41. package/dist/definitions/CardModal2/components/CardModal2Animation/NativeOpacityAnimation.d.ts +0 -8
  42. package/dist/definitions/CardModal2/components/CardModal2Animation/NativeOpacityAnimation.d.ts.map +0 -1
  43. package/dist/definitions/CardModal2/components/CardModal2Animation/NativeRotationAnimation.d.ts +0 -11
  44. package/dist/definitions/CardModal2/components/CardModal2Animation/NativeRotationAnimation.d.ts.map +0 -1
  45. package/dist/definitions/CardModal2/components/CardModal2Behaviour.d.ts +0 -8
  46. package/dist/definitions/CardModal2/components/CardModal2Behaviour.d.ts.map +0 -1
  47. package/dist/definitions/CardModal2/components/CardModal2Body.d.ts +0 -7
  48. package/dist/definitions/CardModal2/components/CardModal2Body.d.ts.map +0 -1
  49. package/dist/definitions/CardModal2/components/CardModal2Footer.d.ts +0 -7
  50. package/dist/definitions/CardModal2/components/CardModal2Footer.d.ts.map +0 -1
  51. package/dist/definitions/CardModal2/components/CardModal2Header.d.ts +0 -20
  52. package/dist/definitions/CardModal2/components/CardModal2Header.d.ts.map +0 -1
  53. package/dist/definitions/FullscreenModal2/FullscreenModal2.d.ts +0 -18
  54. package/dist/definitions/FullscreenModal2/FullscreenModal2.d.ts.map +0 -1
  55. package/dist/definitions/FullscreenModal2/components/FullscreenModal2Animation.d.ts +0 -8
  56. package/dist/definitions/FullscreenModal2/components/FullscreenModal2Animation.d.ts.map +0 -1
  57. package/dist/definitions/FullscreenModal2/components/FullscreenModal2Behaviour.d.ts +0 -8
  58. package/dist/definitions/FullscreenModal2/components/FullscreenModal2Behaviour.d.ts.map +0 -1
  59. package/dist/definitions/FullscreenModal2/components/FullscreenModal2Body.d.ts +0 -9
  60. package/dist/definitions/FullscreenModal2/components/FullscreenModal2Body.d.ts.map +0 -1
  61. package/dist/definitions/FullscreenModal2/components/FullscreenModal2Container.d.ts +0 -8
  62. package/dist/definitions/FullscreenModal2/components/FullscreenModal2Container.d.ts.map +0 -1
  63. package/dist/definitions/FullscreenModal2/components/FullscreenModal2Footer.d.ts +0 -8
  64. package/dist/definitions/FullscreenModal2/components/FullscreenModal2Footer.d.ts.map +0 -1
  65. package/dist/definitions/FullscreenModal2/components/FullscreenModal2Header.d.ts +0 -22
  66. package/dist/definitions/FullscreenModal2/components/FullscreenModal2Header.d.ts.map +0 -1
  67. package/dist/definitions/FullscreenModal2/components/NativeOpacityAnimation.d.ts +0 -7
  68. package/dist/definitions/FullscreenModal2/components/NativeOpacityAnimation.d.ts.map +0 -1
  69. package/dist/definitions/FullscreenModal2/components/NativeSlideInAnimation.d.ts +0 -10
  70. package/dist/definitions/FullscreenModal2/components/NativeSlideInAnimation.d.ts.map +0 -1
  71. package/dist/definitions/NavigationModal2/NavigationModal2.d.ts +0 -23
  72. package/dist/definitions/NavigationModal2/NavigationModal2.d.ts.map +0 -1
  73. package/dist/definitions/NavigationModal2/components/NavigationModal2Behaviour.d.ts +0 -8
  74. package/dist/definitions/NavigationModal2/components/NavigationModal2Behaviour.d.ts.map +0 -1
  75. package/dist/definitions/NavigationModal2/components/NavigationModal2Body.d.ts +0 -7
  76. package/dist/definitions/NavigationModal2/components/NavigationModal2Body.d.ts.map +0 -1
  77. package/dist/definitions/NavigationModal2/components/NavigationModal2Footer.d.ts +0 -7
  78. package/dist/definitions/NavigationModal2/components/NavigationModal2Footer.d.ts.map +0 -1
  79. package/dist/definitions/NavigationModal2/components/NavigationModal2Header.d.ts +0 -7
  80. package/dist/definitions/NavigationModal2/components/NavigationModal2Header.d.ts.map +0 -1
  81. package/dist/definitions/utils/IdentityComponent.d.ts +0 -15
  82. package/dist/definitions/utils/IdentityComponent.d.ts.map +0 -1
package/dist/index.es.js CHANGED
@@ -2631,7 +2631,7 @@ function ActionCardDisabled(_ref) {
2631
2631
  });
2632
2632
  }
2633
2633
 
2634
- var _excluded$11 = ["children", "variant", "borderVariant", "borderRadius", "disabled", "isHovered", "isPressed", "isFocused"];
2634
+ var _excluded$T = ["children", "variant", "borderVariant", "borderRadius", "disabled", "isHovered", "isPressed", "isFocused"];
2635
2635
  function ActionCard(_ref) {
2636
2636
  var children = _ref.children,
2637
2637
  _ref$variant = _ref.variant,
@@ -2644,7 +2644,7 @@ function ActionCard(_ref) {
2644
2644
  isHovered = _ref.isHovered,
2645
2645
  isPressed = _ref.isPressed,
2646
2646
  isFocused = _ref.isFocused,
2647
- props = _objectWithoutProperties(_ref, _excluded$11);
2647
+ props = _objectWithoutProperties(_ref, _excluded$T);
2648
2648
  return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
2649
2649
  children: disabled ? /*#__PURE__*/jsx(ActionCardDisabled, {
2650
2650
  borderRadius: borderRadius,
@@ -2952,7 +2952,7 @@ var getTypographyFamilyWithAncestorValue = function (type, typographyFamilyInCon
2952
2952
  throw new Error('You must set a "base" prop or wrap this Typography in one that does.');
2953
2953
  };
2954
2954
 
2955
- var _excluded$10 = ["accessibilityRole", "base", "small", "medium", "large", "wide", "type", "variant", "color"];
2955
+ var _excluded$S = ["accessibilityRole", "base", "small", "medium", "large", "wide", "type", "variant", "color"];
2956
2956
  var TypographyFamilyContext = /*#__PURE__*/createContext(null);
2957
2957
  var TypographyTypeContext = /*#__PURE__*/createContext(null);
2958
2958
  var TypographyColorContext = /*#__PURE__*/createContext('black');
@@ -3007,7 +3007,7 @@ function Typography(_ref) {
3007
3007
  } : _ref$type,
3008
3008
  variant = _ref.variant,
3009
3009
  color = _ref.color,
3010
- otherProps = _objectWithoutProperties(_ref, _excluded$10);
3010
+ otherProps = _objectWithoutProperties(_ref, _excluded$S);
3011
3011
  var sx = useSx();
3012
3012
  var typographyFamilyInContext = useContext(TypographyFamilyContext);
3013
3013
  var defaultColor = useTypographyDefaultColor();
@@ -3123,7 +3123,7 @@ function Icon(_ref) {
3123
3123
  });
3124
3124
  }
3125
3125
 
3126
- var _excluded$$ = ["color", "size"],
3126
+ var _excluded$R = ["color", "size"],
3127
3127
  _excluded2$5 = ["color"];
3128
3128
  function getIconSizeConfigKeyFromTypeName(breakpointName) {
3129
3129
  return breakpointName === KittBreakpointNameEnum.BASE || breakpointName === KittBreakpointNameEnum.SMALL ? 'baseAndSmall' : 'mediumAndWide';
@@ -3144,7 +3144,7 @@ function createNativeBaseIconSize(type) {
3144
3144
  function TypographyIconSpecifiedColor(_ref) {
3145
3145
  var color = _ref.color,
3146
3146
  size = _ref.size,
3147
- props = _objectWithoutProperties(_ref, _excluded$$);
3147
+ props = _objectWithoutProperties(_ref, _excluded$R);
3148
3148
  var ancestorType = useTypographyAncestorType();
3149
3149
  var iconSize = size || (ancestorType ? createNativeBaseIconSize(ancestorType) : undefined);
3150
3150
  var colorValue = getTypographyColorValue(color);
@@ -3197,7 +3197,7 @@ var getButtonTextColorByType = function (type, variant, isHovered, isPressed) {
3197
3197
  }
3198
3198
  };
3199
3199
 
3200
- var _excluded$_ = ["type", "variant", "isDisabled", "icon", "children", "isHovered", "isPressed", "isFocused", "innerSpacing"];
3200
+ var _excluded$Q = ["type", "variant", "isDisabled", "icon", "children", "isHovered", "isPressed", "isFocused", "innerSpacing"];
3201
3201
  function ButtonIcon(_ref) {
3202
3202
  var icon = _ref.icon,
3203
3203
  color = _ref.color,
@@ -3274,7 +3274,7 @@ function ButtonContent(_ref3) {
3274
3274
  isPressed = _ref3.isPressed;
3275
3275
  _ref3.isFocused;
3276
3276
  var innerSpacing = _ref3.innerSpacing,
3277
- props = _objectWithoutProperties(_ref3, _excluded$_);
3277
+ props = _objectWithoutProperties(_ref3, _excluded$Q);
3278
3278
  var color = isDisabled ? 'black-light' : getButtonTextColorByType(type, variant, isHovered, isPressed);
3279
3279
  return /*#__PURE__*/jsx(View, {
3280
3280
  _web: {
@@ -3571,7 +3571,7 @@ function LoaderIcon(_ref) {
3571
3571
  });
3572
3572
  }
3573
3573
 
3574
- var _excluded$Z = ["as", "onPress", "disabled", "icon", "stretch"];
3574
+ var _excluded$P = ["as", "onPress", "disabled", "icon", "stretch"];
3575
3575
  var ActionsItem = /*#__PURE__*/forwardRef(function (_ref, ref) {
3576
3576
  var as = _ref.as,
3577
3577
  onPress = _ref.onPress,
@@ -3582,7 +3582,7 @@ var ActionsItem = /*#__PURE__*/forwardRef(function (_ref, ref) {
3582
3582
  base: true,
3583
3583
  medium: false
3584
3584
  } : _ref$stretch,
3585
- props = _objectWithoutProperties(_ref, _excluded$Z);
3585
+ props = _objectWithoutProperties(_ref, _excluded$P);
3586
3586
  var _useState = useState(false),
3587
3587
  _useState2 = _slicedToArray(_useState, 2),
3588
3588
  isLoading = _useState2[0],
@@ -3655,7 +3655,7 @@ function ActionsButton(_ref) {
3655
3655
  }, props));
3656
3656
  }
3657
3657
 
3658
- var _excluded$Y = ["children", "layout", "reversed"];
3658
+ var _excluded$O = ["children", "layout", "reversed"];
3659
3659
  function getCurrentLayout(layout) {
3660
3660
  if (!layout) return {
3661
3661
  base: 'stretch',
@@ -3687,7 +3687,7 @@ function Actions(_ref) {
3687
3687
  reversed = _ref$reversed === void 0 ? {
3688
3688
  base: false
3689
3689
  } : _ref$reversed,
3690
- props = _objectWithoutProperties(_ref, _excluded$Y);
3690
+ props = _objectWithoutProperties(_ref, _excluded$O);
3691
3691
  var shouldReverse = typeof reversed === 'boolean' ? {
3692
3692
  base: !!reversed
3693
3693
  } : createResponsiveStyleFromProp(reversed, true, false);
@@ -3740,7 +3740,7 @@ function getInitials(firstname, lastname) {
3740
3740
  return "".concat(firstname[0]).concat(lastname[0]).toUpperCase();
3741
3741
  }
3742
3742
 
3743
- var _excluded$X = ["size", "round", "light", "sizeVariant", "width", "height", "dark", "disabled"];
3743
+ var _excluded$N = ["size", "round", "light", "sizeVariant", "width", "height", "dark", "disabled"];
3744
3744
  function AvatarContent(_ref) {
3745
3745
  var size = _ref.size,
3746
3746
  src = _ref.src,
@@ -3803,7 +3803,7 @@ function Avatar(_ref2) {
3803
3803
  height = _ref2.height,
3804
3804
  dark = _ref2.dark,
3805
3805
  disabled = _ref2.disabled,
3806
- props = _objectWithoutProperties(_ref2, _excluded$X);
3806
+ props = _objectWithoutProperties(_ref2, _excluded$N);
3807
3807
  var currentSize = getCurrentSize({
3808
3808
  size: size,
3809
3809
  sizeVariant: sizeVariant
@@ -3841,24 +3841,7 @@ function Avatar(_ref2) {
3841
3841
  });
3842
3842
  }
3843
3843
 
3844
- /**
3845
- * A utility component that returns its children without any modifications.
3846
- *
3847
- * This component acts as an identity function for React elements - it simply returns
3848
- * whatever children are passed to it. It can be useful in conditional rendering patterns,
3849
- * component composition, or as a placeholder in component hierarchies.
3850
- *
3851
- * @returns The children as they were passed in, without any wrapper elements
3852
- *
3853
- * @example
3854
- * See CardModal and FullscreenModal for usage examples.
3855
- */
3856
- function IdentityComponent(_ref) {
3857
- var children = _ref.children;
3858
- return children;
3859
- }
3860
-
3861
- var _excluded$W = ["children", "hasScrollView", "hasBackdrop", "hasHandle", "enableDynamicSizing", "snapPoints", "contentContainer"];
3844
+ var _excluded$M = ["children", "hasScrollView", "hasBackdrop", "hasHandle", "enableDynamicSizing", "snapPoints"];
3862
3845
  function BottomSheetComp(_ref, ref) {
3863
3846
  var Content = _ref.children,
3864
3847
  _ref$hasScrollView = _ref.hasScrollView,
@@ -3871,9 +3854,7 @@ function BottomSheetComp(_ref, ref) {
3871
3854
  enableDynamicSizing = _ref$enableDynamicSiz === void 0 ? true : _ref$enableDynamicSiz,
3872
3855
  _ref$snapPoints = _ref.snapPoints,
3873
3856
  snapPoints = _ref$snapPoints === void 0 ? ['100%'] : _ref$snapPoints,
3874
- _ref$contentContainer = _ref.contentContainer,
3875
- ContentContainer = _ref$contentContainer === void 0 ? IdentityComponent : _ref$contentContainer,
3876
- rest = _objectWithoutProperties(_ref, _excluded$W);
3857
+ rest = _objectWithoutProperties(_ref, _excluded$M);
3877
3858
  var _useSafeAreaInsets = useSafeAreaInsets(),
3878
3859
  top = _useSafeAreaInsets.top;
3879
3860
  var Wrapper = useMemo(function () {
@@ -3905,9 +3886,7 @@ function BottomSheetComp(_ref, ref) {
3905
3886
  topInset: top,
3906
3887
  children: function children(props) {
3907
3888
  return /*#__PURE__*/jsx(Wrapper, {
3908
- children: /*#__PURE__*/jsx(ContentContainer, {
3909
- children: typeof Content === 'function' ? /*#__PURE__*/jsx(Content, _objectSpread({}, props === null || props === void 0 ? void 0 : props.data)) : Content
3910
- })
3889
+ children: typeof Content === 'function' ? /*#__PURE__*/jsx(Content, _objectSpread({}, props === null || props === void 0 ? void 0 : props.data)) : Content
3911
3890
  });
3912
3891
  }
3913
3892
  }));
@@ -4033,7 +4012,7 @@ function CardModalRotationContainer(props) {
4033
4012
  }, props));
4034
4013
  }
4035
4014
 
4036
- function NativeOpacityAnimation$4(_ref) {
4015
+ function NativeOpacityAnimation$2(_ref) {
4037
4016
  var visible = _ref.visible,
4038
4017
  children = _ref.children,
4039
4018
  onExited = _ref.onExited;
@@ -4072,7 +4051,7 @@ function NativeOpacityAnimation$4(_ref) {
4072
4051
  });
4073
4052
  }
4074
4053
 
4075
- function NativeRotationAnimation$2(_ref) {
4054
+ function NativeRotationAnimation$1(_ref) {
4076
4055
  var visible = _ref.visible,
4077
4056
  children = _ref.children,
4078
4057
  onEntered = _ref.onEntered,
@@ -4166,14 +4145,14 @@ function CardModalAnimation(_ref) {
4166
4145
  flexGrow: 1,
4167
4146
  justifyContent: "center",
4168
4147
  alignItems: "center",
4169
- children: [/*#__PURE__*/jsx(NativeOpacityAnimation$4, {
4148
+ children: [/*#__PURE__*/jsx(NativeOpacityAnimation$2, {
4170
4149
  visible: isContentVisible,
4171
4150
  onExited: handleAnimationExited,
4172
4151
  children: /*#__PURE__*/jsx(Overlay, {
4173
4152
  onPress: onClose
4174
4153
  })
4175
4154
  }), /*#__PURE__*/jsx(CardModalRotationContainer, {
4176
- children: /*#__PURE__*/jsx(NativeRotationAnimation$2, {
4155
+ children: /*#__PURE__*/jsx(NativeRotationAnimation$1, {
4177
4156
  visible: isContentVisible,
4178
4157
  onExited: handleAnimationExited,
4179
4158
  onEntered: onEntered,
@@ -4184,13 +4163,13 @@ function CardModalAnimation(_ref) {
4184
4163
  });
4185
4164
  }
4186
4165
 
4187
- var _excluded$V = ["children", "visible", "onClose", "onExited"];
4166
+ var _excluded$L = ["children", "visible", "onClose", "onExited"];
4188
4167
  function CardModalBehaviour(_ref) {
4189
4168
  var children = _ref.children,
4190
4169
  visible = _ref.visible,
4191
4170
  onClose = _ref.onClose,
4192
4171
  onExited = _ref.onExited,
4193
- props = _objectWithoutProperties(_ref, _excluded$V);
4172
+ props = _objectWithoutProperties(_ref, _excluded$L);
4194
4173
  var _useState = useState(visible),
4195
4174
  _useState2 = _slicedToArray(_useState, 2),
4196
4175
  isModalBehaviourVisible = _useState2[0],
@@ -4215,7 +4194,7 @@ function CardModalBehaviour(_ref) {
4215
4194
  });
4216
4195
  }
4217
4196
 
4218
- var _excluded$U = ["children", "paddingX", "paddingY"];
4197
+ var _excluded$K = ["children", "paddingX", "paddingY"];
4219
4198
  function CardModalBody(_ref) {
4220
4199
  var children = _ref.children,
4221
4200
  _ref$paddingX = _ref.paddingX,
@@ -4225,7 +4204,7 @@ function CardModalBody(_ref) {
4225
4204
  } : _ref$paddingX,
4226
4205
  _ref$paddingY = _ref.paddingY,
4227
4206
  paddingY = _ref$paddingY === void 0 ? 'kitt.4' : _ref$paddingY,
4228
- props = _objectWithoutProperties(_ref, _excluded$U);
4207
+ props = _objectWithoutProperties(_ref, _excluded$K);
4229
4208
  return /*#__PURE__*/jsx(ScrollView, _objectSpread(_objectSpread({
4230
4209
  showsVerticalScrollIndicator: false,
4231
4210
  _contentContainerStyle: {
@@ -4237,7 +4216,7 @@ function CardModalBody(_ref) {
4237
4216
  }));
4238
4217
  }
4239
4218
 
4240
- var _excluded$T = ["children", "padding", "hasSeparator"];
4219
+ var _excluded$J = ["children", "padding", "hasSeparator"];
4241
4220
  function CardModalFooter(_ref) {
4242
4221
  var children = _ref.children,
4243
4222
  _ref$padding = _ref.padding,
@@ -4247,7 +4226,7 @@ function CardModalFooter(_ref) {
4247
4226
  } : _ref$padding,
4248
4227
  _ref$hasSeparator = _ref.hasSeparator,
4249
4228
  hasSeparator = _ref$hasSeparator === void 0 ? true : _ref$hasSeparator,
4250
- props = _objectWithoutProperties(_ref, _excluded$T);
4229
+ props = _objectWithoutProperties(_ref, _excluded$J);
4251
4230
  return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
4252
4231
  marginTop: "kitt.2",
4253
4232
  padding: padding,
@@ -4261,7 +4240,7 @@ function CardModalFooter(_ref) {
4261
4240
  }));
4262
4241
  }
4263
4242
 
4264
- var _excluded$S = ["children", "title", "paddingBottom", "hasSeparator", "right", "left"];
4243
+ var _excluded$I = ["children", "title", "paddingBottom", "hasSeparator", "right", "left"];
4265
4244
  function CardModalHeader(_ref) {
4266
4245
  var children = _ref.children,
4267
4246
  title = _ref.title,
@@ -4274,7 +4253,7 @@ function CardModalHeader(_ref) {
4274
4253
  hasSeparator = _ref$hasSeparator === void 0 ? true : _ref$hasSeparator,
4275
4254
  right = _ref.right,
4276
4255
  left = _ref.left,
4277
- props = _objectWithoutProperties(_ref, _excluded$S);
4256
+ props = _objectWithoutProperties(_ref, _excluded$I);
4278
4257
  var defaultContainerPadding = {
4279
4258
  base: 'kitt.4',
4280
4259
  medium: 'kitt.6'
@@ -4312,7 +4291,7 @@ function CardModalHeader(_ref) {
4312
4291
  }));
4313
4292
  }
4314
4293
 
4315
- var _excluded$R = ["backgroundColor", "maxWidth", "withoutShadow", "children", "header", "body", "footer", "contentContainer"];
4294
+ var _excluded$H = ["backgroundColor", "maxWidth", "withoutShadow", "children", "header", "body", "footer"];
4316
4295
  function CardModal(_ref) {
4317
4296
  var _ref$backgroundColor = _ref.backgroundColor,
4318
4297
  backgroundColor = _ref$backgroundColor === void 0 ? 'kitt.uiBackgroundLight' : _ref$backgroundColor,
@@ -4323,9 +4302,7 @@ function CardModal(_ref) {
4323
4302
  header = _ref.header,
4324
4303
  body = _ref.body,
4325
4304
  footer = _ref.footer,
4326
- _ref$contentContainer = _ref.contentContainer,
4327
- ContentContainer = _ref$contentContainer === void 0 ? IdentityComponent : _ref$contentContainer,
4328
- props = _objectWithoutProperties(_ref, _excluded$R);
4305
+ props = _objectWithoutProperties(_ref, _excluded$H);
4329
4306
  return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
4330
4307
  overflow: "hidden",
4331
4308
  backgroundColor: backgroundColor,
@@ -4335,335 +4312,15 @@ function CardModal(_ref) {
4335
4312
  maxHeight: "100%",
4336
4313
  maxWidth: maxWidth,
4337
4314
  minHeight: "kitt.cardModal.minHeight",
4338
- children: /*#__PURE__*/jsx(ContentContainer, {
4339
- children: children || /*#__PURE__*/jsxs(Fragment, {
4340
- children: [header || null, body || null, footer || null]
4341
- })
4315
+ children: children || /*#__PURE__*/jsxs(Fragment, {
4316
+ children: [header || null, body || null, footer || null]
4342
4317
  })
4343
4318
  }));
4344
4319
  }
4345
4320
  CardModal.Body = CardModalBody;
4346
- CardModal.Header = CardModalHeader;
4347
- CardModal.Footer = CardModalFooter;
4348
- CardModal.ModalBehaviour = CardModalBehaviour;
4349
-
4350
- function CardModal2RotationContainer(props) {
4351
- return /*#__PURE__*/jsx(View, _objectSpread({
4352
- paddingX: "kitt.cardModal.overlayPadding.horizontal",
4353
- paddingY: "kitt.cardModal.overlayPadding.vertical",
4354
- maxWidth: "kitt.cardModal.maxWidthWithPadding",
4355
- width: "100%",
4356
- maxHeight: "100%",
4357
- _web: {
4358
- maxHeight: '100svh'
4359
- }
4360
- }, props));
4361
- }
4362
-
4363
- function NativeOpacityAnimation$3(_ref) {
4364
- var visible = _ref.visible,
4365
- children = _ref.children,
4366
- onExited = _ref.onExited;
4367
- var theme = useTheme();
4368
- var hasRunAnimationRef = useRef(false);
4369
- function handleAnimationFinished() {
4370
- if (visible) {
4371
- hasRunAnimationRef.current = true;
4372
- }
4373
- if (!visible && hasRunAnimationRef.current) {
4374
- onExited();
4375
- }
4376
- }
4377
- var opacityStyle = useAnimatedStyle(function () {
4378
- var _theme$kitt$cardModal = theme.kitt.cardModal.animation.overlay,
4379
- duration = _theme$kitt$cardModal.duration,
4380
- easing = _theme$kitt$cardModal.easing;
4381
- var _easing = _slicedToArray(easing, 4),
4382
- x1 = _easing[0],
4383
- y1 = _easing[1],
4384
- x2 = _easing[2],
4385
- y2 = _easing[3];
4386
- return {
4387
- opacity: withTiming(visible ? 1 : 0, {
4388
- duration: duration,
4389
- easing: Easing$1.bezier(x1, y1, x2, y2)
4390
- }, function (isFinished) {
4391
- if (!isFinished) return;
4392
- runOnJS(handleAnimationFinished)();
4393
- })
4394
- };
4395
- });
4396
- return /*#__PURE__*/jsx(Animated.View, {
4397
- style: [StyleSheet.absoluteFillObject, opacityStyle],
4398
- children: children
4399
- });
4400
- }
4401
-
4402
- function NativeRotationAnimation$1(_ref) {
4403
- var visible = _ref.visible,
4404
- children = _ref.children,
4405
- onEntered = _ref.onEntered,
4406
- onExited = _ref.onExited;
4407
- var theme = useTheme();
4408
- var hasRunAnimationRef = useRef(false);
4409
- var rotation = useSharedValue(0.8);
4410
- function handleAnimationFinished() {
4411
- if (visible) {
4412
- if (onEntered) onEntered();
4413
- hasRunAnimationRef.current = true;
4414
- }
4415
- if (!visible && hasRunAnimationRef.current) onExited();
4416
- }
4417
- var animatedStyle = useAnimatedStyle(function () {
4418
- var _theme$kitt$cardModal = theme.kitt.cardModal.animation.content,
4419
- duration = _theme$kitt$cardModal.duration,
4420
- easing = _theme$kitt$cardModal.easing;
4421
- var _easing = _slicedToArray(easing, 4),
4422
- x1 = _easing[0],
4423
- y1 = _easing[1],
4424
- x2 = _easing[2],
4425
- y2 = _easing[3];
4426
- rotation.value = withTiming(visible ? 0 : 5, {
4427
- duration: duration,
4428
- easing: Easing$1.bezier(x1, y1, x2, y2)
4429
- }, function (isFinished) {
4430
- if (!isFinished) return;
4431
- runOnJS(handleAnimationFinished)();
4432
- });
4433
- return {
4434
- opacity: withTiming(visible ? 1 : 0, {
4435
- duration: duration,
4436
- easing: Easing$1.bezier(x1, y1, x2, y2)
4437
- }),
4438
- transform: [{
4439
- scale: withTiming(visible ? 1 : 0.8, {
4440
- duration: duration,
4441
- easing: Easing$1.bezier(x1, y1, x2, y2)
4442
- })
4443
- }, {
4444
- rotateZ: "".concat(rotation.value, "deg")
4445
- }]
4446
- };
4447
- });
4448
- return /*#__PURE__*/jsx(Animated.View, {
4449
- style: [animatedStyle],
4450
- children: children
4451
- });
4452
- }
4453
-
4454
- function CardModal2Animation(_ref) {
4455
- var visible = _ref.visible,
4456
- children = _ref.children,
4457
- onEnter = _ref.onEnter,
4458
- onEntered = _ref.onEntered,
4459
- onExit = _ref.onExit,
4460
- onExited = _ref.onExited,
4461
- onClose = _ref.onClose;
4462
- var _useState = useState(visible),
4463
- _useState2 = _slicedToArray(_useState, 2),
4464
- isModalVisible = _useState2[0],
4465
- setIsModalVisible = _useState2[1];
4466
- var _useState3 = useState(false),
4467
- _useState4 = _slicedToArray(_useState3, 2),
4468
- isContentVisible = _useState4[0],
4469
- setIsContentVisible = _useState4[1];
4470
- var handleAnimationExited = function () {
4471
- setIsModalVisible(false);
4472
- // Android doesn't handle the onDismiss callback on the modal, we need to call it manually
4473
- if (Platform.OS === 'android' && onExited) onExited();
4474
- };
4475
- useEffect(function () {
4476
- if (!(!visible && isContentVisible)) return;
4477
- if (onExit) onExit();
4478
- setIsContentVisible(false);
4479
- }, [visible, isContentVisible, onExit]);
4480
- return /*#__PURE__*/jsx(Modal, {
4481
- transparent: true,
4482
- supportedOrientations: ['landscape', 'portrait'],
4483
- visible: isModalVisible,
4484
- onShow: function onShow() {
4485
- if (onEnter) onEnter();
4486
- setIsContentVisible(true);
4487
- },
4488
- onDismiss: function onDismiss() {
4489
- if (onExited) onExited();
4490
- },
4491
- children: /*#__PURE__*/jsxs(View, {
4492
- position: "relative",
4493
- flexGrow: 1,
4494
- justifyContent: "center",
4495
- alignItems: "center",
4496
- children: [/*#__PURE__*/jsx(NativeOpacityAnimation$3, {
4497
- visible: isContentVisible,
4498
- onExited: handleAnimationExited,
4499
- children: /*#__PURE__*/jsx(Overlay, {
4500
- onPress: onClose
4501
- })
4502
- }), /*#__PURE__*/jsx(CardModal2RotationContainer, {
4503
- children: /*#__PURE__*/jsx(NativeRotationAnimation$1, {
4504
- visible: isContentVisible,
4505
- onExited: handleAnimationExited,
4506
- onEntered: onEntered,
4507
- children: children
4508
- })
4509
- })]
4510
- })
4511
- });
4512
- }
4513
-
4514
- var _excluded$Q = ["children", "visible", "onClose", "onExited"];
4515
- function CardModal2Behaviour(_ref) {
4516
- var children = _ref.children,
4517
- visible = _ref.visible,
4518
- onClose = _ref.onClose,
4519
- onExited = _ref.onExited,
4520
- props = _objectWithoutProperties(_ref, _excluded$Q);
4521
- var _useState = useState(visible),
4522
- _useState2 = _slicedToArray(_useState, 2),
4523
- isModalBehaviourVisible = _useState2[0],
4524
- setIsModalBehaviourVisible = _useState2[1];
4525
- useEffect(function () {
4526
- if (visible === true) {
4527
- setIsModalBehaviourVisible(true);
4528
- }
4529
- }, [visible]);
4530
- return /*#__PURE__*/jsx(ModalBehaviour, {
4531
- visible: isModalBehaviourVisible,
4532
- onClose: onClose,
4533
- children: /*#__PURE__*/jsx(CardModal2Animation, _objectSpread(_objectSpread({}, props), {}, {
4534
- visible: visible,
4535
- onExited: function handleExitAnimationDone() {
4536
- if (onExited) onExited();
4537
- setIsModalBehaviourVisible(false);
4538
- },
4539
- onClose: onClose,
4540
- children: children
4541
- }))
4542
- });
4543
- }
4544
-
4545
- var _excluded$P = ["children", "paddingX", "paddingY"];
4546
- function CardModal2Body(_ref) {
4547
- var children = _ref.children,
4548
- _ref$paddingX = _ref.paddingX,
4549
- paddingX = _ref$paddingX === void 0 ? {
4550
- base: 'kitt.4',
4551
- medium: 'kitt.6'
4552
- } : _ref$paddingX,
4553
- _ref$paddingY = _ref.paddingY,
4554
- paddingY = _ref$paddingY === void 0 ? 'kitt.4' : _ref$paddingY,
4555
- props = _objectWithoutProperties(_ref, _excluded$P);
4556
- return /*#__PURE__*/jsx(ScrollView, _objectSpread(_objectSpread({
4557
- showsVerticalScrollIndicator: false,
4558
- _contentContainerStyle: {
4559
- paddingX: paddingX,
4560
- paddingY: paddingY
4561
- }
4562
- }, props), {}, {
4563
- children: children
4564
- }));
4565
- }
4566
-
4567
- var _excluded$O = ["children", "padding", "hasSeparator"];
4568
- function CardModal2Footer(_ref) {
4569
- var children = _ref.children,
4570
- _ref$padding = _ref.padding,
4571
- padding = _ref$padding === void 0 ? {
4572
- base: 'kitt.4',
4573
- medium: 'kitt.2'
4574
- } : _ref$padding,
4575
- _ref$hasSeparator = _ref.hasSeparator,
4576
- hasSeparator = _ref$hasSeparator === void 0 ? true : _ref$hasSeparator,
4577
- props = _objectWithoutProperties(_ref, _excluded$O);
4578
- return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
4579
- marginTop: "kitt.2",
4580
- padding: padding,
4581
- borderTopWidth: hasSeparator ? 'kitt.cardModal.footer.borderWidth' : 0,
4582
- borderColor: "kitt.separator",
4583
- alignItems: {
4584
- base: undefined,
4585
- medium: 'flex-end'
4586
- },
4587
- children: children
4588
- }));
4589
- }
4590
-
4591
- var _excluded$N = ["children", "title", "paddingBottom", "hasSeparator", "right", "left"];
4592
- function CardModal2Header(_ref) {
4593
- var children = _ref.children,
4594
- title = _ref.title,
4595
- _ref$paddingBottom = _ref.paddingBottom,
4596
- paddingBottom = _ref$paddingBottom === void 0 ? {
4597
- base: 'kitt.4',
4598
- medium: 'kitt.2'
4599
- } : _ref$paddingBottom,
4600
- _ref$hasSeparator = _ref.hasSeparator,
4601
- hasSeparator = _ref$hasSeparator === void 0 ? true : _ref$hasSeparator,
4602
- right = _ref.right,
4603
- left = _ref.left,
4604
- props = _objectWithoutProperties(_ref, _excluded$N);
4605
- var defaultContainerPadding = {
4606
- base: 'kitt.4',
4607
- medium: 'kitt.6'
4608
- };
4609
- return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
4610
- padding: paddingBottom,
4611
- borderBottomWidth: hasSeparator ? 'kitt.cardModal.footer.borderWidth' : 0,
4612
- borderColor: "kitt.separator",
4613
- justifyContent: "center",
4614
- width: "100%",
4615
- height: "kitt.cardModal.header.height",
4616
- paddingRight: right ? 'kitt.2' : defaultContainerPadding,
4617
- paddingLeft: left ? 'kitt.2' : defaultContainerPadding,
4618
- children: /*#__PURE__*/jsxs(View, {
4619
- alignItems: "center",
4620
- flexDirection: "row",
4621
- justifyContent: !children && !left ? 'flex-end' : 'space-between',
4622
- children: [left ? /*#__PURE__*/jsx(View, {
4623
- width: "kitt.iconButton.width",
4624
- children: left
4625
- }) : null, /*#__PURE__*/jsxs(View, {
4626
- flexGrow: "1",
4627
- paddingRight: right ? 'kitt.2' : 0,
4628
- paddingLeft: left ? 'kitt.2' : 0,
4629
- children: [title ? /*#__PURE__*/jsx(Typography.Text, {
4630
- textAlign: !left && right ? 'left' : 'center',
4631
- variant: "bold",
4632
- children: title
4633
- }) : null, children]
4634
- }), right ? /*#__PURE__*/jsx(View, {
4635
- width: "kitt.iconButton.width",
4636
- children: right
4637
- }) : null]
4638
- })
4639
- }));
4640
- }
4641
-
4642
- var _excluded$M = ["backgroundColor", "maxWidth", "withoutShadow", "children"];
4643
- function CardModal2(_ref) {
4644
- var _ref$backgroundColor = _ref.backgroundColor,
4645
- backgroundColor = _ref$backgroundColor === void 0 ? 'kitt.uiBackgroundLight' : _ref$backgroundColor,
4646
- _ref$maxWidth = _ref.maxWidth,
4647
- maxWidth = _ref$maxWidth === void 0 ? 'kitt.cardModal.maxWidth' : _ref$maxWidth,
4648
- withoutShadow = _ref.withoutShadow,
4649
- children = _ref.children,
4650
- props = _objectWithoutProperties(_ref, _excluded$M);
4651
- return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
4652
- overflow: "hidden",
4653
- backgroundColor: backgroundColor,
4654
- shadow: withoutShadow ? undefined : 'kitt.cardModal.shadow',
4655
- borderRadius: "kitt.cardModal.borderRadius",
4656
- width: "100%",
4657
- maxHeight: "100%",
4658
- maxWidth: maxWidth,
4659
- minHeight: "kitt.cardModal.minHeight",
4660
- children: children
4661
- }));
4662
- }
4663
- CardModal2.Body = CardModal2Body;
4664
- CardModal2.Header = CardModal2Header;
4665
- CardModal2.Footer = CardModal2Footer;
4666
- CardModal2.Behaviour = CardModal2Behaviour;
4321
+ CardModal.Header = CardModalHeader;
4322
+ CardModal.Footer = CardModalFooter;
4323
+ CardModal.ModalBehaviour = CardModalBehaviour;
4667
4324
 
4668
4325
  function getBackgroundColor$5(_ref) {
4669
4326
  var isDisabled = _ref.isDisabled,
@@ -4872,11 +4529,11 @@ function ChoiceItemContainer(_ref) {
4872
4529
  }));
4873
4530
  }
4874
4531
 
4875
- var _excluded$L = ["direction", "contentContainerStyle"];
4532
+ var _excluded$G = ["direction", "contentContainerStyle"];
4876
4533
  function ChoicesContainer(_ref) {
4877
4534
  var direction = _ref.direction,
4878
4535
  contentContainerStyle = _ref.contentContainerStyle,
4879
- props = _objectWithoutProperties(_ref, _excluded$L);
4536
+ props = _objectWithoutProperties(_ref, _excluded$G);
4880
4537
  if (direction === 'row') {
4881
4538
  return /*#__PURE__*/jsx(ScrollView$2, _objectSpread({
4882
4539
  horizontal: true,
@@ -4953,7 +4610,7 @@ var ChoicesElements = {
4953
4610
  ButtonChoices: ButtonChoices
4954
4611
  };
4955
4612
 
4956
- function NativeOpacityAnimation$2(_ref) {
4613
+ function NativeOpacityAnimation$1(_ref) {
4957
4614
  var visible = _ref.visible,
4958
4615
  children = _ref.children,
4959
4616
  onExited = _ref.onExited;
@@ -5086,7 +4743,7 @@ function DialogModalAnimation(_ref) {
5086
4743
  flexGrow: 1,
5087
4744
  justifyContent: "center",
5088
4745
  alignItems: "center",
5089
- children: [/*#__PURE__*/jsx(NativeOpacityAnimation$2, {
4746
+ children: [/*#__PURE__*/jsx(NativeOpacityAnimation$1, {
5090
4747
  visible: isContentVisible,
5091
4748
  onExited: handleAnimationExited,
5092
4749
  children: /*#__PURE__*/jsx(Overlay, {
@@ -5106,13 +4763,13 @@ function DialogModalAnimation(_ref) {
5106
4763
  });
5107
4764
  }
5108
4765
 
5109
- var _excluded$K = ["children", "visible", "onClose", "onExited"];
4766
+ var _excluded$F = ["children", "visible", "onClose", "onExited"];
5110
4767
  function DialogModalBehaviour(_ref) {
5111
4768
  var children = _ref.children,
5112
4769
  visible = _ref.visible,
5113
4770
  onClose = _ref.onClose,
5114
4771
  onExited = _ref.onExited,
5115
- props = _objectWithoutProperties(_ref, _excluded$K);
4772
+ props = _objectWithoutProperties(_ref, _excluded$F);
5116
4773
  var _useState = useState(visible),
5117
4774
  _useState2 = _slicedToArray(_useState, 2),
5118
4775
  isModalBehaviourVisible = _useState2[0],
@@ -5143,7 +4800,7 @@ function DialogModalBehaviour(_ref) {
5143
4800
  });
5144
4801
  }
5145
4802
 
5146
- var _excluded$J = ["stretch"];
4803
+ var _excluded$E = ["stretch"];
5147
4804
  function DialogModal(_ref) {
5148
4805
  var illustration = _ref.illustration,
5149
4806
  title = _ref.title,
@@ -5183,7 +4840,7 @@ DialogModal.ModalBehaviour = DialogModalBehaviour;
5183
4840
  function DialogModalButton(_ref2) {
5184
4841
  var _ref2$stretch = _ref2.stretch,
5185
4842
  stretch = _ref2$stretch === void 0 ? true : _ref2$stretch,
5186
- props = _objectWithoutProperties(_ref2, _excluded$J);
4843
+ props = _objectWithoutProperties(_ref2, _excluded$E);
5187
4844
  return /*#__PURE__*/jsx(Actions.Button, _objectSpread({
5188
4845
  stretch: stretch
5189
4846
  }, props));
@@ -5220,7 +4877,7 @@ function Emoji(_ref) {
5220
4877
  });
5221
4878
  }
5222
4879
 
5223
- var _excluded$I = ["as", "appScheme", "appValue", "onPress", "onOpenAppError"],
4880
+ var _excluded$D = ["as", "appScheme", "appValue", "onPress", "onOpenAppError"],
5224
4881
  _excluded2$4 = ["phoneNumber", "children"],
5225
4882
  _excluded3$3 = ["phoneNumber", "children"],
5226
4883
  _excluded4$3 = ["emailAddress", "children"];
@@ -5230,7 +4887,7 @@ function ExternalAppLink(_ref) {
5230
4887
  appValue = _ref.appValue,
5231
4888
  onPress = _ref.onPress,
5232
4889
  onOpenAppError = _ref.onOpenAppError,
5233
- rest = _objectWithoutProperties(_ref, _excluded$I);
4890
+ rest = _objectWithoutProperties(_ref, _excluded$D);
5234
4891
  var href = "".concat(appScheme, ":").concat(appValue);
5235
4892
  var handleOnPress = /*#__PURE__*/function () {
5236
4893
  var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(e) {
@@ -5382,7 +5039,7 @@ function useOpenExternalLink(errorHandler) {
5382
5039
  }();
5383
5040
  }
5384
5041
 
5385
- var _excluded$H = ["as", "href", "openLinkBehavior", "onPress", "onOpenLinkError"];
5042
+ var _excluded$C = ["as", "href", "openLinkBehavior", "onPress", "onOpenLinkError"];
5386
5043
  function ExternalLink(_ref) {
5387
5044
  var Component = _ref.as,
5388
5045
  href = _ref.href,
@@ -5391,7 +5048,7 @@ function ExternalLink(_ref) {
5391
5048
  onPress = _ref.onPress,
5392
5049
  _ref$onOpenLinkError = _ref.onOpenLinkError,
5393
5050
  onOpenLinkError = _ref$onOpenLinkError === void 0 ? console.error : _ref$onOpenLinkError,
5394
- rest = _objectWithoutProperties(_ref, _excluded$H);
5051
+ rest = _objectWithoutProperties(_ref, _excluded$C);
5395
5052
  var openExternalLink = useOpenExternalLink();
5396
5053
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
5397
5054
  return /*#__PURE__*/jsx(Component, _objectSpread(_objectSpread({}, rest), {}, {
@@ -5448,7 +5105,7 @@ function InputTextContainer(_ref) {
5448
5105
  });
5449
5106
  }
5450
5107
 
5451
- var _excluded$G = ["id", "right", "state", "variant", "internalForceState", "disabled", "autoCorrect", "textContentType", "autoComplete", "inputMode", "multiline", "height", "onSubmitEditing"];
5108
+ var _excluded$B = ["id", "right", "state", "variant", "internalForceState", "disabled", "autoCorrect", "textContentType", "autoComplete", "inputMode", "multiline", "height", "onSubmitEditing"];
5452
5109
  var InputText = /*#__PURE__*/forwardRef(function (_ref, ref) {
5453
5110
  var id = _ref.id,
5454
5111
  right = _ref.right;
@@ -5469,7 +5126,7 @@ var InputText = /*#__PURE__*/forwardRef(function (_ref, ref) {
5469
5126
  multiline = _ref.multiline,
5470
5127
  height = _ref.height,
5471
5128
  onSubmitEditing = _ref.onSubmitEditing,
5472
- props = _objectWithoutProperties(_ref, _excluded$G);
5129
+ props = _objectWithoutProperties(_ref, _excluded$B);
5473
5130
  var theme = useTheme();
5474
5131
  var fontSizeForNativeBase = createNativeBaseFontSize({
5475
5132
  base: 'body'
@@ -5594,10 +5251,10 @@ function AutocompleteItemsListContainer(_ref) {
5594
5251
  });
5595
5252
  }
5596
5253
 
5597
- var _excluded$F = ["children"];
5254
+ var _excluded$A = ["children"];
5598
5255
  function AutocompleteOption(_ref) {
5599
5256
  var children = _ref.children,
5600
- props = _objectWithoutProperties(_ref, _excluded$F);
5257
+ props = _objectWithoutProperties(_ref, _excluded$A);
5601
5258
  return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({
5602
5259
  paddingX: {
5603
5260
  base: 'kitt.2',
@@ -5609,7 +5266,7 @@ function AutocompleteOption(_ref) {
5609
5266
  }));
5610
5267
  }
5611
5268
 
5612
- var _excluded$E = ["children", "name", "disabled", "placeholder", "isInitialOpen", "initialValue", "containerProps", "filterItemBasedOnCurrentInputValue", "checkSelectedItem", "itemToString", "right", "onChange", "onFocus", "onBlur", "onInputChange", "onSelectItem", "onOuterPress", "errorElement", "emptyResultsElement", "inputTestID", "listContainerTestID", "zIndex", "maxItemContainerHeight"],
5269
+ var _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"],
5613
5270
  _excluded2$3 = ["onClick", "onPress"],
5614
5271
  _excluded3$2 = ["onKeyDown", "onFocus", "onBlur", "onChange"],
5615
5272
  _excluded4$2 = ["onClick", "onPress", "role", "aria-selected"];
@@ -5649,7 +5306,7 @@ function Autocomplete(_ref) {
5649
5306
  _ref$zIndex = _ref.zIndex,
5650
5307
  zIndex = _ref$zIndex === void 0 ? 1000 : _ref$zIndex,
5651
5308
  maxItemContainerHeight = _ref.maxItemContainerHeight,
5652
- props = _objectWithoutProperties(_ref, _excluded$E);
5309
+ props = _objectWithoutProperties(_ref, _excluded$z);
5653
5310
  var childrenArray = Children.toArray(_children);
5654
5311
  var items = childrenArray.filter(isReactElement).map(function (child) {
5655
5312
  return {
@@ -5864,7 +5521,7 @@ function getBorderColor$1(_ref) {
5864
5521
  return 'kitt.forms.checkbox.default.borderColor';
5865
5522
  }
5866
5523
 
5867
- var _excluded$D = ["checked", "hitSlop", "children", "disabled", "onChange", "onBlur", "onFocus"];
5524
+ var _excluded$y = ["checked", "hitSlop", "children", "disabled", "onChange", "onBlur", "onFocus"];
5868
5525
  var Checkbox = /*#__PURE__*/forwardRef(function (_ref, ref) {
5869
5526
  var checked = _ref.checked,
5870
5527
  _ref$hitSlop = _ref.hitSlop,
@@ -5874,7 +5531,7 @@ var Checkbox = /*#__PURE__*/forwardRef(function (_ref, ref) {
5874
5531
  onChange = _ref.onChange,
5875
5532
  onBlur = _ref.onBlur,
5876
5533
  onFocus = _ref.onFocus,
5877
- props = _objectWithoutProperties(_ref, _excluded$D);
5534
+ props = _objectWithoutProperties(_ref, _excluded$y);
5878
5535
  var theme = useTheme();
5879
5536
  return /*#__PURE__*/jsx(Pressable, _objectSpread(_objectSpread({
5880
5537
  hitSlop: hitSlop
@@ -6192,7 +5849,7 @@ function PartContainer(_ref) {
6192
5849
  });
6193
5850
  }
6194
5851
 
6195
- var _excluded$C = ["id", "value", "testID", "stretch", "placeholder", "minDate", "maxDate", "disabled", "isFocusedInternal", "isHoveredInternal", "isPressedInternal", "enterKeyHint", "onChange", "onBlur", "onFocus", "onSubmitEditing"];
5852
+ var _excluded$x = ["id", "value", "testID", "stretch", "placeholder", "minDate", "maxDate", "disabled", "isFocusedInternal", "isHoveredInternal", "isPressedInternal", "enterKeyHint", "onChange", "onBlur", "onFocus", "onSubmitEditing"];
6196
5853
  var KeyboardDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
6197
5854
  var id = _ref.id,
6198
5855
  value = _ref.value,
@@ -6210,7 +5867,7 @@ var KeyboardDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
6210
5867
  onBlur = _ref.onBlur,
6211
5868
  onFocus = _ref.onFocus,
6212
5869
  onSubmitEditing = _ref.onSubmitEditing;
6213
- _objectWithoutProperties(_ref, _excluded$C);
5870
+ _objectWithoutProperties(_ref, _excluded$x);
6214
5871
  var monthRef = useRef(null);
6215
5872
  var yearRef = useRef(null);
6216
5873
  var defaultValue = value;
@@ -6419,7 +6076,7 @@ var PressableDateInputs = /*#__PURE__*/forwardRef(function (_ref, ref) {
6419
6076
  });
6420
6077
  });
6421
6078
 
6422
- var _excluded$B = ["onBlur", "onFocus", "pickerDefaultDate", "pickerUITestID", "isDefaultVisible", "value", "onChange"];
6079
+ var _excluded$w = ["onBlur", "onFocus", "pickerDefaultDate", "pickerUITestID", "isDefaultVisible", "value", "onChange"];
6423
6080
  var DatePickerAndroid = /*#__PURE__*/forwardRef(function (_ref, ref) {
6424
6081
  var onBlur = _ref.onBlur,
6425
6082
  onFocus = _ref.onFocus,
@@ -6428,7 +6085,7 @@ var DatePickerAndroid = /*#__PURE__*/forwardRef(function (_ref, ref) {
6428
6085
  isDefaultVisible = _ref.isDefaultVisible,
6429
6086
  value = _ref.value,
6430
6087
  _onChange = _ref.onChange,
6431
- props = _objectWithoutProperties(_ref, _excluded$B);
6088
+ props = _objectWithoutProperties(_ref, _excluded$w);
6432
6089
  var _useState = useState(false),
6433
6090
  _useState2 = _slicedToArray(_useState, 2),
6434
6091
  isFocused = _useState2[0],
@@ -6504,7 +6161,7 @@ function PlatformDateTimePicker(_ref) {
6504
6161
  }));
6505
6162
  }
6506
6163
 
6507
- var _excluded$A = ["title", "isVisible", "value", "validateButtonLabel", "onClose", "onChange"];
6164
+ var _excluded$v = ["title", "isVisible", "value", "validateButtonLabel", "onClose", "onChange"];
6508
6165
  function ModalTitle(_ref) {
6509
6166
  var children = _ref.children;
6510
6167
  return /*#__PURE__*/jsx(CardModal.Header, {
@@ -6522,7 +6179,7 @@ function ModalPlatformDateTimePicker(_ref2) {
6522
6179
  validateButtonLabel = _ref2.validateButtonLabel,
6523
6180
  onClose = _ref2.onClose,
6524
6181
  onChange = _ref2.onChange,
6525
- props = _objectWithoutProperties(_ref2, _excluded$A);
6182
+ props = _objectWithoutProperties(_ref2, _excluded$v);
6526
6183
  var _useState = useState(value),
6527
6184
  _useState2 = _slicedToArray(_useState, 2),
6528
6185
  currentValue = _useState2[0],
@@ -6568,7 +6225,7 @@ function ModalPlatformDateTimePicker(_ref2) {
6568
6225
  });
6569
6226
  }
6570
6227
 
6571
- var _excluded$z = ["value", "pickerUITestID", "pickerUITitle", "pickerUIValidateButtonLabel", "isDefaultVisible", "pickerDefaultDate", "isFocusedInternal", "isHoveredInternal", "isPressedInternal", "onChange", "onFocus", "onBlur"];
6228
+ var _excluded$u = ["value", "pickerUITestID", "pickerUITitle", "pickerUIValidateButtonLabel", "isDefaultVisible", "pickerDefaultDate", "isFocusedInternal", "isHoveredInternal", "isPressedInternal", "onChange", "onFocus", "onBlur"];
6572
6229
  var DefaultNativeUIDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
6573
6230
  var value = _ref.value,
6574
6231
  pickerUITestID = _ref.pickerUITestID,
@@ -6582,7 +6239,7 @@ var DefaultNativeUIDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
6582
6239
  onChange = _ref.onChange,
6583
6240
  onFocus = _ref.onFocus,
6584
6241
  onBlur = _ref.onBlur,
6585
- props = _objectWithoutProperties(_ref, _excluded$z);
6242
+ props = _objectWithoutProperties(_ref, _excluded$u);
6586
6243
  var _useState = useState(isDefaultVisible),
6587
6244
  _useState2 = _slicedToArray(_useState, 2),
6588
6245
  isPickerUIVisible = _useState2[0],
@@ -6629,7 +6286,7 @@ var DefaultNativeUIDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
6629
6286
  });
6630
6287
  });
6631
6288
 
6632
- var _excluded$y = ["value", "pickerUITestID", "isDefaultVisible", "pickerDefaultDate", "onChange", "onBlur"];
6289
+ var _excluded$t = ["value", "pickerUITestID", "isDefaultVisible", "pickerDefaultDate", "onChange", "onBlur"];
6633
6290
  var NativeUIDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
6634
6291
  var value = _ref.value,
6635
6292
  pickerUITestID = _ref.pickerUITestID,
@@ -6637,7 +6294,7 @@ var NativeUIDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
6637
6294
  pickerDefaultDate = _ref.pickerDefaultDate,
6638
6295
  onChange = _ref.onChange,
6639
6296
  onBlur = _ref.onBlur,
6640
- props = _objectWithoutProperties(_ref, _excluded$y);
6297
+ props = _objectWithoutProperties(_ref, _excluded$t);
6641
6298
  if (Platform.OS === 'android') {
6642
6299
  return /*#__PURE__*/jsx(DatePickerAndroid, _objectSpread({
6643
6300
  ref: ref,
@@ -6659,14 +6316,14 @@ var NativeUIDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
6659
6316
  }, props));
6660
6317
  });
6661
6318
 
6662
- var _excluded$x = ["fillMode", "enterKeyHint", "value", "onSubmitEditing"];
6319
+ var _excluded$s = ["fillMode", "enterKeyHint", "value", "onSubmitEditing"];
6663
6320
  var DatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
6664
6321
  var _ref$fillMode = _ref.fillMode,
6665
6322
  fillMode = _ref$fillMode === void 0 ? 'native' : _ref$fillMode,
6666
6323
  enterKeyHint = _ref.enterKeyHint,
6667
6324
  value = _ref.value,
6668
6325
  onSubmitEditing = _ref.onSubmitEditing,
6669
- props = _objectWithoutProperties(_ref, _excluded$x);
6326
+ props = _objectWithoutProperties(_ref, _excluded$s);
6670
6327
  // in apps, final-form can give a string value that will break the component
6671
6328
  var currentValue = value || undefined;
6672
6329
  if (fillMode === 'keyboard') {
@@ -6782,10 +6439,10 @@ function ImagePicker(_ref) {
6782
6439
  });
6783
6440
  }
6784
6441
 
6785
- var _excluded$w = ["children"];
6442
+ var _excluded$r = ["children"];
6786
6443
  function ListItemContent(_ref) {
6787
6444
  var children = _ref.children,
6788
- rest = _objectWithoutProperties(_ref, _excluded$w);
6445
+ rest = _objectWithoutProperties(_ref, _excluded$r);
6789
6446
  return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({
6790
6447
  alignSelf: "center",
6791
6448
  flexBasis: "0%",
@@ -6796,14 +6453,14 @@ function ListItemContent(_ref) {
6796
6453
  }));
6797
6454
  }
6798
6455
 
6799
- var _excluded$v = ["children", "side"],
6456
+ var _excluded$q = ["children", "side"],
6800
6457
  _excluded2$2 = ["children", "align"];
6801
6458
  // Handles the vertical alignment of the side elements of the list item
6802
6459
  function ListItemSideContainer(_ref) {
6803
6460
  var children = _ref.children,
6804
6461
  _ref$side = _ref.side,
6805
6462
  side = _ref$side === void 0 ? 'left' : _ref$side,
6806
- rest = _objectWithoutProperties(_ref, _excluded$v);
6463
+ rest = _objectWithoutProperties(_ref, _excluded$q);
6807
6464
  return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({
6808
6465
  flexDirection: "row",
6809
6466
  marginLeft: side === 'right' ? 'kitt.2' : undefined,
@@ -6824,7 +6481,7 @@ function ListItemSideContent(_ref2) {
6824
6481
  }));
6825
6482
  }
6826
6483
 
6827
- var _excluded$u = ["children", "withPadding", "borders", "left", "right", "onPress"];
6484
+ var _excluded$p = ["children", "withPadding", "borders", "left", "right", "onPress"];
6828
6485
  function ListItem(_ref) {
6829
6486
  var children = _ref.children,
6830
6487
  withPadding = _ref.withPadding,
@@ -6832,7 +6489,7 @@ function ListItem(_ref) {
6832
6489
  left = _ref.left,
6833
6490
  right = _ref.right,
6834
6491
  onPress = _ref.onPress,
6835
- rest = _objectWithoutProperties(_ref, _excluded$u);
6492
+ rest = _objectWithoutProperties(_ref, _excluded$p);
6836
6493
  var Wrapper = onPress ? Pressable$2 : Fragment$1;
6837
6494
  var wrapperProps = onPress ? _objectSpread({
6838
6495
  accessibilityRole: 'button',
@@ -6865,10 +6522,10 @@ ListItem.Content = ListItemContent;
6865
6522
  ListItem.SideContent = ListItemSideContent;
6866
6523
  ListItem.SideContainer = ListItemSideContainer;
6867
6524
 
6868
- var _excluded$t = ["title"];
6525
+ var _excluded$o = ["title"];
6869
6526
  function BottomSheetActionsItem(_ref) {
6870
6527
  var title = _ref.title,
6871
- props = _objectWithoutProperties(_ref, _excluded$t);
6528
+ props = _objectWithoutProperties(_ref, _excluded$o);
6872
6529
  return /*#__PURE__*/jsx(Pressable$2, _objectSpread(_objectSpread({}, props), {}, {
6873
6530
  children: /*#__PURE__*/jsx(ListItem, {
6874
6531
  withPadding: true,
@@ -7473,7 +7130,7 @@ function formatInitialValueToAutocompletePrediction(address, placeId) {
7473
7130
  };
7474
7131
  }
7475
7132
 
7476
- var _excluded$s = ["initialValue", "itemToString", "errorElement", "emptyResultsElement", "onChange"];
7133
+ var _excluded$n = ["initialValue", "itemToString", "errorElement", "emptyResultsElement", "onChange"];
7477
7134
  function InputAddress(_ref) {
7478
7135
  var initialValue = _ref.initialValue,
7479
7136
  _ref$itemToString = _ref.itemToString,
@@ -7481,7 +7138,7 @@ function InputAddress(_ref) {
7481
7138
  errorElement = _ref.errorElement,
7482
7139
  emptyResultsElement = _ref.emptyResultsElement,
7483
7140
  _onChange = _ref.onChange,
7484
- props = _objectWithoutProperties(_ref, _excluded$s);
7141
+ props = _objectWithoutProperties(_ref, _excluded$n);
7485
7142
  var _useGoogleMapsAutocom = useGoogleMapsAutocomplete(),
7486
7143
  state = _useGoogleMapsAutocom.state,
7487
7144
  _onInputChange = _useGoogleMapsAutocom.onInputChange,
@@ -7578,10 +7235,10 @@ var InputIban = /*#__PURE__*/forwardRef(function (props, ref) {
7578
7235
  }, props));
7579
7236
  });
7580
7237
 
7581
- var _excluded$r = ["onChange"];
7238
+ var _excluded$m = ["onChange"];
7582
7239
  var InputNumber = /*#__PURE__*/forwardRef(function (_ref, ref) {
7583
7240
  var onChange = _ref.onChange,
7584
- props = _objectWithoutProperties(_ref, _excluded$r);
7241
+ props = _objectWithoutProperties(_ref, _excluded$m);
7585
7242
  return /*#__PURE__*/jsx(InputText, _objectSpread(_objectSpread({
7586
7243
  ref: ref
7587
7244
  }, props), {}, {
@@ -7598,11 +7255,11 @@ var InputNumber = /*#__PURE__*/forwardRef(function (_ref, ref) {
7598
7255
  }));
7599
7256
  });
7600
7257
 
7601
- var _excluded$q = ["isPasswordDefaultVisible", "right"];
7258
+ var _excluded$l = ["isPasswordDefaultVisible", "right"];
7602
7259
  var InputPassword = /*#__PURE__*/forwardRef(function (_ref, ref) {
7603
7260
  var isPasswordDefaultVisible = _ref.isPasswordDefaultVisible,
7604
7261
  right = _ref.right,
7605
- props = _objectWithoutProperties(_ref, _excluded$q);
7262
+ props = _objectWithoutProperties(_ref, _excluded$l);
7606
7263
  var _useState = useState(Boolean(isPasswordDefaultVisible)),
7607
7264
  _useState2 = _slicedToArray(_useState, 2),
7608
7265
  isVisible = _useState2[0],
@@ -7630,7 +7287,7 @@ var InputPassword = /*#__PURE__*/forwardRef(function (_ref, ref) {
7630
7287
  }));
7631
7288
  });
7632
7289
 
7633
- var _excluded$p = ["enterKeyHint", "autoComplete", "phoneNumberLength", "onChange"];
7290
+ var _excluded$k = ["enterKeyHint", "autoComplete", "phoneNumberLength", "onChange"];
7634
7291
  function isPhoneNumberValid(number) {
7635
7292
  return isValidNumber(number);
7636
7293
  }
@@ -7644,7 +7301,7 @@ var InputPhone = /*#__PURE__*/forwardRef(function (_ref, ref) {
7644
7301
  _ref$phoneNumberLengt = _ref.phoneNumberLength,
7645
7302
  phoneNumberLength = _ref$phoneNumberLengt === void 0 ? 10 : _ref$phoneNumberLengt,
7646
7303
  onChange = _ref.onChange,
7647
- props = _objectWithoutProperties(_ref, _excluded$p);
7304
+ props = _objectWithoutProperties(_ref, _excluded$k);
7648
7305
  var currentEnterKeyHint = enterKeyHint ? getEnterKeyHintForNumericInput(enterKeyHint) : undefined;
7649
7306
  return /*#__PURE__*/jsx(InputText, _objectSpread(_objectSpread({
7650
7307
  ref: ref
@@ -8079,7 +7736,7 @@ function RadioButton(_ref) {
8079
7736
  });
8080
7737
  }
8081
7738
 
8082
- var _excluded$o = ["children", "stretch", "value", "disabled", "onFocus", "onBlur", "onChange"];
7739
+ var _excluded$j = ["children", "stretch", "value", "disabled", "onFocus", "onBlur", "onChange"];
8083
7740
  function RadioButtonGroupItem(_ref) {
8084
7741
  var props = _extends({}, (_objectDestructuringEmpty(_ref), _ref));
8085
7742
  return /*#__PURE__*/jsx(RadioButton, _objectSpread({}, props));
@@ -8092,7 +7749,7 @@ function RadioButtonGroup(_ref2) {
8092
7749
  onFocus = _ref2.onFocus,
8093
7750
  onBlur = _ref2.onBlur,
8094
7751
  onChange = _ref2.onChange,
8095
- props = _objectWithoutProperties(_ref2, _excluded$o);
7752
+ props = _objectWithoutProperties(_ref2, _excluded$j);
8096
7753
  var _useState = useState(value),
8097
7754
  _useState2 = _slicedToArray(_useState, 2),
8098
7755
  currentValue = _useState2[0],
@@ -8124,12 +7781,12 @@ function RadioButtonGroup(_ref2) {
8124
7781
  }
8125
7782
  RadioButtonGroup.RadioButton = RadioButtonGroupItem;
8126
7783
 
8127
- var _excluded$n = ["helper", "limit"];
7784
+ var _excluded$i = ["helper", "limit"];
8128
7785
  var TextArea = /*#__PURE__*/forwardRef(function (_ref, ref) {
8129
7786
  var _props$value, _props$value2;
8130
7787
  var helper = _ref.helper,
8131
7788
  limit = _ref.limit,
8132
- props = _objectWithoutProperties(_ref, _excluded$n);
7789
+ props = _objectWithoutProperties(_ref, _excluded$i);
8133
7790
  var shouldDisplayLimit = limit && limit > 0;
8134
7791
  var isLimitReached = ((_props$value = props.value) === null || _props$value === void 0 ? void 0 : _props$value.length) === limit;
8135
7792
  var limitContainerAnimatedStyle = useAnimatedStyle(function () {
@@ -8288,7 +7945,7 @@ function ToggleAnimated(_ref) {
8288
7945
  });
8289
7946
  }
8290
7947
 
8291
- var _excluded$m = ["isDisabled", "isHoveredInternal", "isFocusedInternal", "isPressedInternal", "label", "variant", "size", "value", "onChange"];
7948
+ var _excluded$h = ["isDisabled", "isHoveredInternal", "isFocusedInternal", "isPressedInternal", "label", "variant", "size", "value", "onChange"];
8292
7949
  var getLabelTypographyType = function (size) {
8293
7950
  return size === 'medium' ? 'body' : 'body-medium';
8294
7951
  };
@@ -8310,7 +7967,7 @@ function Toggle(_ref) {
8310
7967
  value = _ref$value === void 0 ? false : _ref$value,
8311
7968
  _ref$onChange = _ref.onChange,
8312
7969
  onChange = _ref$onChange === void 0 ? function () {} : _ref$onChange,
8313
- props = _objectWithoutProperties(_ref, _excluded$m);
7970
+ props = _objectWithoutProperties(_ref, _excluded$h);
8314
7971
  var theme = useKittTheme();
8315
7972
  return /*#__PURE__*/jsxs(HStack, _objectSpread(_objectSpread({
8316
7973
  alignItems: "center"
@@ -8349,340 +8006,53 @@ function Toggle(_ref) {
8349
8006
  }));
8350
8007
  }
8351
8008
 
8352
- var _excluded$l = ["children", "shouldHandleBottomNotch", "style", "shouldHandleTopNotch"];
8009
+ var _excluded$g = ["children", "shouldHandleBottomNotch", "style", "shouldHandleTopNotch"];
8353
8010
  function FullscreenModalBody(_ref) {
8354
8011
  var children = _ref.children,
8355
8012
  shouldHandleBottomNotch = _ref.shouldHandleBottomNotch,
8356
8013
  style = _ref.style,
8357
8014
  shouldHandleTopNotch = _ref.shouldHandleTopNotch,
8358
- props = _objectWithoutProperties(_ref, _excluded$l);
8015
+ props = _objectWithoutProperties(_ref, _excluded$g);
8359
8016
  var _useSafeAreaInsets = useSafeAreaInsets(),
8360
8017
  bottom = _useSafeAreaInsets.bottom,
8361
8018
  top = _useSafeAreaInsets.top;
8362
- var _useTheme = useTheme(),
8363
- verticalPadding = _useTheme.kitt.fullscreenModal.body.verticalPadding;
8364
- var paddingBottom = shouldHandleBottomNotch ? Math.max(bottom, verticalPadding) : verticalPadding;
8365
- var paddingTop = shouldHandleTopNotch ? Math.max(top, verticalPadding) : verticalPadding;
8366
- return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
8367
- paddingX: "kitt.fullscreenModal.horizontalPadding",
8368
- paddingTop: paddingTop,
8369
- paddingBottom: paddingBottom,
8370
- style: style,
8371
- children: children
8372
- }));
8373
- }
8374
-
8375
- var _excluded$k = ["shouldHandleBottomNotch", "hasSeparator", "children"];
8376
- function FullscreenModalFooter(_ref) {
8377
- var _ref$shouldHandleBott = _ref.shouldHandleBottomNotch,
8378
- shouldHandleBottomNotch = _ref$shouldHandleBott === void 0 ? true : _ref$shouldHandleBott,
8379
- _ref$hasSeparator = _ref.hasSeparator,
8380
- hasSeparator = _ref$hasSeparator === void 0 ? true : _ref$hasSeparator,
8381
- children = _ref.children,
8382
- props = _objectWithoutProperties(_ref, _excluded$k);
8383
- var _useSafeAreaInsets = useSafeAreaInsets(),
8384
- bottom = _useSafeAreaInsets.bottom;
8385
- return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({
8386
- borderTopColor: "kitt.separator",
8387
- borderTopWidth: hasSeparator ? 1 : undefined,
8388
- paddingTop: "kitt.fullscreenModal.footer.verticalPadding",
8389
- paddingBottom: shouldHandleBottomNotch ? bottom : undefined,
8390
- paddingX: "kitt.fullscreenModal.horizontalPadding"
8391
- }, props), {}, {
8392
- children: /*#__PURE__*/jsx(View, {
8393
- paddingBottom: "kitt.fullscreenModal.footer.verticalPadding",
8394
- children: children
8395
- })
8396
- }));
8397
- }
8398
-
8399
- function NativeOpacityAnimation$1(_ref) {
8400
- var visible = _ref.visible,
8401
- children = _ref.children;
8402
- var theme = useTheme();
8403
- var opacityStyle = useAnimatedStyle(function () {
8404
- var _theme$kitt$fullscree = theme.kitt.fullscreenModal.animation.overlay,
8405
- duration = _theme$kitt$fullscree.duration,
8406
- easing = _theme$kitt$fullscree.easing;
8407
- var _easing = _slicedToArray(easing, 4),
8408
- x1 = _easing[0],
8409
- y1 = _easing[1],
8410
- x2 = _easing[2],
8411
- y2 = _easing[3];
8412
- return {
8413
- opacity: withTiming(visible ? 1 : 0, {
8414
- duration: duration,
8415
- easing: Easing$1.bezier(x1, y1, x2, y2)
8416
- })
8417
- };
8418
- });
8419
- return /*#__PURE__*/jsx(Animated.View, {
8420
- style: [StyleSheet.absoluteFillObject, opacityStyle],
8421
- children: children
8422
- });
8423
- }
8424
-
8425
- function NativeSlideInAnimation$1(_ref) {
8426
- var visible = _ref.visible,
8427
- children = _ref.children,
8428
- onEntered = _ref.onEntered,
8429
- onExited = _ref.onExited;
8430
- var theme = useTheme();
8431
- var _useWindowDimensions = useWindowDimensions(),
8432
- wHeight = _useWindowDimensions.height;
8433
- var hasRunAnimationRef = useRef(false);
8434
- function handleAnimationFinished() {
8435
- if (visible) {
8436
- if (onEntered) onEntered();
8437
- hasRunAnimationRef.current = true;
8438
- }
8439
-
8440
- // Since animation callback is called on component mount, we must make sure that the animation has been runed once to call it an exit
8441
- if (!visible && hasRunAnimationRef.current) onExited();
8442
- }
8443
- var translateStyle = useAnimatedStyle(function () {
8444
- var _theme$kitt$fullscree = theme.kitt.fullscreenModal.animation.content,
8445
- duration = _theme$kitt$fullscree.duration,
8446
- easing = _theme$kitt$fullscree.easing;
8447
- var _easing = _slicedToArray(easing, 4),
8448
- x1 = _easing[0],
8449
- y1 = _easing[1],
8450
- x2 = _easing[2],
8451
- y2 = _easing[3];
8452
- return {
8453
- transform: [{
8454
- translateY: withTiming(visible ? 0 : wHeight, {
8455
- duration: duration,
8456
- easing: Easing$1.bezier(x1, y1, x2, y2)
8457
- }, function (isFinished) {
8458
- if (!isFinished) return;
8459
- runOnJS(handleAnimationFinished)();
8460
- })
8461
- }]
8462
- };
8463
- });
8464
- return /*#__PURE__*/jsx(Animated.View, {
8465
- style: [{
8466
- transform: [{
8467
- translateY: wHeight
8468
- }]
8469
- }, translateStyle, {
8470
- width: '100%',
8471
- flex: 1
8472
- }],
8473
- children: children
8474
- });
8475
- }
8476
-
8477
- function FullscreenModalAnimation(_ref) {
8478
- var visible = _ref.visible,
8479
- children = _ref.children,
8480
- onEnter = _ref.onEnter,
8481
- onEntered = _ref.onEntered,
8482
- onExit = _ref.onExit,
8483
- onExited = _ref.onExited;
8484
- var _useState = useState(visible),
8485
- _useState2 = _slicedToArray(_useState, 2),
8486
- isModalVisible = _useState2[0],
8487
- setIsModalVisible = _useState2[1];
8488
- var _useState3 = useState(false),
8489
- _useState4 = _slicedToArray(_useState3, 2),
8490
- isContentVisible = _useState4[0],
8491
- setIsContentVisible = _useState4[1];
8492
- var handleAnimationExited = function () {
8493
- setIsModalVisible(false);
8494
- // Android doesn't handle the onDismiss callback on the modal, we need to call it manually
8495
- if (Platform.OS === 'android' && onExited) onExited();
8496
- };
8497
-
8498
- // When parent visibility is set to false, in order to have our exit animation we must in this order :
8499
- // 1 - run the exit animation
8500
- // 2 - once it is done, unmount the Modal
8501
- useEffect(function () {
8502
- if (!(!visible && isContentVisible)) return;
8503
- if (onExit) onExit();
8504
- setIsContentVisible(false);
8505
- }, [visible, isContentVisible, onExit]);
8506
- return /*#__PURE__*/jsx(Modal, {
8507
- transparent: true,
8508
- supportedOrientations: ['landscape', 'portrait'],
8509
- visible: isModalVisible,
8510
- onShow: function onShow() {
8511
- if (onEnter) onEnter();
8512
- setIsContentVisible(true);
8513
- },
8514
- onDismiss: function onDismiss() {
8515
- if (onExited) onExited();
8516
- },
8517
- children: /*#__PURE__*/jsxs(View, {
8518
- position: "relative",
8519
- flexGrow: 1,
8520
- justifyContent: "center",
8521
- alignItems: "center",
8522
- children: [/*#__PURE__*/jsx(NativeOpacityAnimation$1, {
8523
- visible: isContentVisible,
8524
- children: /*#__PURE__*/jsx(Overlay, {
8525
- onPress: handleAnimationExited
8526
- })
8527
- }), /*#__PURE__*/jsx(NativeSlideInAnimation$1, {
8528
- visible: isContentVisible,
8529
- onExited: handleAnimationExited,
8530
- onEntered: onEntered,
8531
- children: /*#__PURE__*/jsx(View, {
8532
- flexGrow: 1,
8533
- children: children
8534
- })
8535
- })]
8536
- })
8537
- });
8538
- }
8539
-
8540
- var _excluded$j = ["children", "visible", "onClose", "onExited"];
8541
- function FullscreenModalBehaviour(_ref) {
8542
- var children = _ref.children,
8543
- visible = _ref.visible,
8544
- onClose = _ref.onClose,
8545
- onExited = _ref.onExited,
8546
- props = _objectWithoutProperties(_ref, _excluded$j);
8547
- var _useState = useState(visible),
8548
- _useState2 = _slicedToArray(_useState, 2),
8549
- isModalBehaviourVisible = _useState2[0],
8550
- setIsModalBehaviourVisible = _useState2[1];
8551
- useEffect(function () {
8552
- if (visible === true) {
8553
- setIsModalBehaviourVisible(true);
8554
- }
8555
- }, [visible]);
8556
- return /*#__PURE__*/jsx(ModalBehaviour, {
8557
- visible: isModalBehaviourVisible,
8558
- onClose: onClose,
8559
- children: /*#__PURE__*/jsx(FullscreenModalAnimation, _objectSpread(_objectSpread({}, props), {}, {
8560
- visible: visible,
8561
- onExited: function handleExitAnimationDone() {
8562
- if (onExited) onExited();
8563
- setIsModalBehaviourVisible(false);
8564
- },
8565
- children: children
8566
- }))
8567
- });
8568
- }
8569
-
8570
- function FullscreenModalContainer(_ref) {
8571
- var children = _ref.children,
8572
- backgroundColor = _ref.backgroundColor;
8573
- return /*#__PURE__*/jsx(View, {
8574
- position: "relative",
8575
- flexGrow: 1,
8576
- flexShrink: 1,
8577
- flexBasis: "100%"
8578
- /*
8579
- Here we are setting the same min and max height because on web the content was overflowing and not scrolling
8580
- minHeight is needed to make the modal fullscreen
8581
- maxHeight limits the height to the viewport when the content is too long, this allows us to scroll inside
8582
- We use svh instead of vh because vh is the total height of the viewport, including the address bar in mobile web browsers
8583
- */,
8584
- _web: {
8585
- minHeight: '100svh',
8586
- maxHeight: '100svh'
8587
- },
8588
- backgroundColor: backgroundColor !== null && backgroundColor !== void 0 ? backgroundColor : 'kitt.uiBackgroundLight',
8019
+ var _useTheme = useTheme(),
8020
+ verticalPadding = _useTheme.kitt.fullscreenModal.body.verticalPadding;
8021
+ var paddingBottom = shouldHandleBottomNotch ? Math.max(bottom, verticalPadding) : verticalPadding;
8022
+ var paddingTop = shouldHandleTopNotch ? Math.max(top, verticalPadding) : verticalPadding;
8023
+ return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
8024
+ paddingX: "kitt.fullscreenModal.horizontalPadding",
8025
+ paddingTop: paddingTop,
8026
+ paddingBottom: paddingBottom,
8027
+ style: style,
8589
8028
  children: children
8590
- });
8029
+ }));
8591
8030
  }
8592
8031
 
8593
- var _excluded$i = ["hasSeparator", "isTransparent", "title", "children", "right", "left", "shouldHandleTopNotch"];
8594
- function FullscreenModalHeader(_ref) {
8595
- var _ref$hasSeparator = _ref.hasSeparator,
8032
+ var _excluded$f = ["shouldHandleBottomNotch", "hasSeparator", "children"];
8033
+ function FullscreenModalFooter(_ref) {
8034
+ var _ref$shouldHandleBott = _ref.shouldHandleBottomNotch,
8035
+ shouldHandleBottomNotch = _ref$shouldHandleBott === void 0 ? true : _ref$shouldHandleBott,
8036
+ _ref$hasSeparator = _ref.hasSeparator,
8596
8037
  hasSeparator = _ref$hasSeparator === void 0 ? true : _ref$hasSeparator,
8597
- isTransparent = _ref.isTransparent,
8598
- title = _ref.title,
8599
8038
  children = _ref.children,
8600
- right = _ref.right,
8601
- left = _ref.left,
8602
- _ref$shouldHandleTopN = _ref.shouldHandleTopNotch,
8603
- shouldHandleTopNotch = _ref$shouldHandleTopN === void 0 ? true : _ref$shouldHandleTopN,
8604
- props = _objectWithoutProperties(_ref, _excluded$i);
8039
+ props = _objectWithoutProperties(_ref, _excluded$f);
8605
8040
  var _useSafeAreaInsets = useSafeAreaInsets(),
8606
- top = _useSafeAreaInsets.top;
8607
- var hasRight = Boolean(right);
8608
- var hasLeft = Boolean(left);
8609
- var hasContent = Boolean(title || children);
8041
+ bottom = _useSafeAreaInsets.bottom;
8610
8042
  return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({
8611
- backgroundColor: isTransparent ? 'kitt.transparent' : 'kitt.uiBackgroundLight',
8612
- minHeight: "kitt.fullscreenModal.header.height",
8613
- width: "100%",
8614
- justifyContent: "center",
8615
- paddingTop: shouldHandleTopNotch ? top : undefined,
8616
- paddingRight: hasRight ? 'kitt.2' : 'kitt.fullscreenModal.horizontalPadding',
8617
- paddingLeft: hasLeft ? 'kitt.2' : 'kitt.fullscreenModal.horizontalPadding',
8618
- borderBottomColor: "kitt.separator",
8619
- borderBottomWidth: hasSeparator ? 1 : undefined
8043
+ borderTopColor: "kitt.separator",
8044
+ borderTopWidth: hasSeparator ? 1 : undefined,
8045
+ paddingTop: "kitt.fullscreenModal.footer.verticalPadding",
8046
+ paddingBottom: shouldHandleBottomNotch ? bottom : undefined,
8047
+ paddingX: "kitt.fullscreenModal.horizontalPadding"
8620
8048
  }, props), {}, {
8621
- children: /*#__PURE__*/jsxs(View, {
8622
- flexDirection: "row",
8623
- alignItems: "center",
8624
- justifyContent: !hasContent && !hasLeft ? 'flex-end' : 'space-between',
8625
- children: [left ? /*#__PURE__*/jsx(View, {
8626
- width: "kitt.iconButton.width",
8627
- children: left
8628
- }) : null, title ? /*#__PURE__*/jsx(View, {
8629
- flexGrow: 1,
8630
- flexShrink: 1,
8631
- paddingLeft: hasLeft ? 'kitt.2' : undefined,
8632
- paddingRight: hasRight ? 'kitt.2' : 0,
8633
- children: /*#__PURE__*/jsx(Typography.Text, {
8634
- variant: "bold",
8635
- textAlign: !hasLeft && hasRight ? 'left' : 'center',
8636
- children: title
8637
- })
8638
- }) : null, children ? /*#__PURE__*/jsx(View, {
8639
- flexGrow: 1,
8640
- flexShrink: 1,
8641
- alignItems: "center",
8642
- paddingLeft: hasLeft ? 'kitt.2' : undefined,
8643
- paddingRight: hasRight ? 'kitt.2' : undefined,
8644
- children: children
8645
- }) : null, right || left ? /*#__PURE__*/jsx(View, {
8646
- width: "kitt.iconButton.width",
8647
- children: right
8648
- }) : null]
8049
+ children: /*#__PURE__*/jsx(View, {
8050
+ paddingBottom: "kitt.fullscreenModal.footer.verticalPadding",
8051
+ children: children
8649
8052
  })
8650
8053
  }));
8651
8054
  }
8652
8055
 
8653
- function FullscreenModal(_ref) {
8654
- var body = _ref.body,
8655
- header = _ref.header,
8656
- footer = _ref.footer,
8657
- backgroundColor = _ref.backgroundColor,
8658
- _ref$contentContainer = _ref.contentContainer,
8659
- ContentContainer = _ref$contentContainer === void 0 ? IdentityComponent : _ref$contentContainer;
8660
- return /*#__PURE__*/jsx(FullscreenModalContainer, {
8661
- backgroundColor: backgroundColor,
8662
- children: /*#__PURE__*/jsxs(ContentContainer, {
8663
- children: [header ? /*#__PURE__*/jsx(View, {
8664
- children: header
8665
- }) : null, /*#__PURE__*/jsxs(View, {
8666
- flexGrow: 1,
8667
- flexShrink: 1,
8668
- justifyContent: "space-between",
8669
- children: [/*#__PURE__*/jsx(ScrollView$2, {
8670
- bounces: false,
8671
- contentContainerStyle: {
8672
- flexGrow: 1,
8673
- position: 'relative'
8674
- },
8675
- children: body
8676
- }), footer || null]
8677
- })]
8678
- })
8679
- });
8680
- }
8681
- FullscreenModal.Header = FullscreenModalHeader;
8682
- FullscreenModal.Footer = FullscreenModalFooter;
8683
- FullscreenModal.Body = FullscreenModalBody;
8684
- FullscreenModal.ModalBehaviour = FullscreenModalBehaviour;
8685
-
8686
8056
  function NativeOpacityAnimation(_ref) {
8687
8057
  var visible = _ref.visible,
8688
8058
  children = _ref.children;
@@ -8761,7 +8131,7 @@ function NativeSlideInAnimation(_ref) {
8761
8131
  });
8762
8132
  }
8763
8133
 
8764
- function FullscreenModal2Animation(_ref) {
8134
+ function FullscreenModalAnimation(_ref) {
8765
8135
  var visible = _ref.visible,
8766
8136
  children = _ref.children,
8767
8137
  onEnter = _ref.onEnter,
@@ -8824,13 +8194,13 @@ function FullscreenModal2Animation(_ref) {
8824
8194
  });
8825
8195
  }
8826
8196
 
8827
- var _excluded$h = ["children", "visible", "onClose", "onExited"];
8828
- function FullscreenModal2Behaviour(_ref) {
8197
+ var _excluded$e = ["children", "visible", "onClose", "onExited"];
8198
+ function FullscreenModalBehaviour(_ref) {
8829
8199
  var children = _ref.children,
8830
8200
  visible = _ref.visible,
8831
8201
  onClose = _ref.onClose,
8832
8202
  onExited = _ref.onExited,
8833
- props = _objectWithoutProperties(_ref, _excluded$h);
8203
+ props = _objectWithoutProperties(_ref, _excluded$e);
8834
8204
  var _useState = useState(visible),
8835
8205
  _useState2 = _slicedToArray(_useState, 2),
8836
8206
  isModalBehaviourVisible = _useState2[0],
@@ -8843,7 +8213,7 @@ function FullscreenModal2Behaviour(_ref) {
8843
8213
  return /*#__PURE__*/jsx(ModalBehaviour, {
8844
8214
  visible: isModalBehaviourVisible,
8845
8215
  onClose: onClose,
8846
- children: /*#__PURE__*/jsx(FullscreenModal2Animation, _objectSpread(_objectSpread({}, props), {}, {
8216
+ children: /*#__PURE__*/jsx(FullscreenModalAnimation, _objectSpread(_objectSpread({}, props), {}, {
8847
8217
  visible: visible,
8848
8218
  onExited: function handleExitAnimationDone() {
8849
8219
  if (onExited) onExited();
@@ -8854,42 +8224,7 @@ function FullscreenModal2Behaviour(_ref) {
8854
8224
  });
8855
8225
  }
8856
8226
 
8857
- var _excluded$g = ["children", "shouldHandleBottomNotch", "style", "shouldHandleTopNotch"];
8858
- function FullscreenModal2Body(_ref) {
8859
- var children = _ref.children,
8860
- shouldHandleBottomNotch = _ref.shouldHandleBottomNotch,
8861
- style = _ref.style,
8862
- shouldHandleTopNotch = _ref.shouldHandleTopNotch,
8863
- props = _objectWithoutProperties(_ref, _excluded$g);
8864
- var _useSafeAreaInsets = useSafeAreaInsets(),
8865
- bottom = _useSafeAreaInsets.bottom,
8866
- top = _useSafeAreaInsets.top;
8867
- var _useTheme = useTheme(),
8868
- verticalPadding = _useTheme.kitt.fullscreenModal.body.verticalPadding;
8869
- var paddingBottom = shouldHandleBottomNotch ? Math.max(bottom, verticalPadding) : verticalPadding;
8870
- var paddingTop = shouldHandleTopNotch ? Math.max(top, verticalPadding) : verticalPadding;
8871
- return /*#__PURE__*/jsx(View, {
8872
- flexGrow: 1,
8873
- flexShrink: 1,
8874
- justifyContent: "space-between",
8875
- children: /*#__PURE__*/jsx(ScrollView$1, {
8876
- bounces: false,
8877
- contentContainerStyle: {
8878
- flexGrow: 1,
8879
- position: 'relative'
8880
- },
8881
- children: /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
8882
- paddingX: "kitt.fullscreenModal.horizontalPadding",
8883
- paddingTop: paddingTop,
8884
- paddingBottom: paddingBottom,
8885
- style: style,
8886
- children: children
8887
- }))
8888
- })
8889
- });
8890
- }
8891
-
8892
- function FullscreenModal2Container(_ref) {
8227
+ function FullscreenModalContainer(_ref) {
8893
8228
  var children = _ref.children,
8894
8229
  backgroundColor = _ref.backgroundColor;
8895
8230
  return /*#__PURE__*/jsx(View, {
@@ -8912,32 +8247,8 @@ function FullscreenModal2Container(_ref) {
8912
8247
  });
8913
8248
  }
8914
8249
 
8915
- var _excluded$f = ["shouldHandleBottomNotch", "hasSeparator", "children"];
8916
- function FullscreenModal2Footer(_ref) {
8917
- var _ref$shouldHandleBott = _ref.shouldHandleBottomNotch,
8918
- shouldHandleBottomNotch = _ref$shouldHandleBott === void 0 ? true : _ref$shouldHandleBott,
8919
- _ref$hasSeparator = _ref.hasSeparator,
8920
- hasSeparator = _ref$hasSeparator === void 0 ? true : _ref$hasSeparator,
8921
- children = _ref.children,
8922
- props = _objectWithoutProperties(_ref, _excluded$f);
8923
- var _useSafeAreaInsets = useSafeAreaInsets(),
8924
- bottom = _useSafeAreaInsets.bottom;
8925
- return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({
8926
- borderTopColor: "kitt.separator",
8927
- borderTopWidth: hasSeparator ? 1 : undefined,
8928
- paddingTop: "kitt.fullscreenModal.footer.verticalPadding",
8929
- paddingBottom: shouldHandleBottomNotch ? bottom : undefined,
8930
- paddingX: "kitt.fullscreenModal.horizontalPadding"
8931
- }, props), {}, {
8932
- children: /*#__PURE__*/jsx(View, {
8933
- paddingBottom: "kitt.fullscreenModal.footer.verticalPadding",
8934
- children: children
8935
- })
8936
- }));
8937
- }
8938
-
8939
- var _excluded$e = ["hasSeparator", "isTransparent", "title", "children", "right", "left", "shouldHandleTopNotch"];
8940
- function FullscreenModal2Header(_ref) {
8250
+ var _excluded$d = ["hasSeparator", "isTransparent", "title", "children", "right", "left", "shouldHandleTopNotch"];
8251
+ function FullscreenModalHeader(_ref) {
8941
8252
  var _ref$hasSeparator = _ref.hasSeparator,
8942
8253
  hasSeparator = _ref$hasSeparator === void 0 ? true : _ref$hasSeparator,
8943
8254
  isTransparent = _ref.isTransparent,
@@ -8947,7 +8258,7 @@ function FullscreenModal2Header(_ref) {
8947
8258
  left = _ref.left,
8948
8259
  _ref$shouldHandleTopN = _ref.shouldHandleTopNotch,
8949
8260
  shouldHandleTopNotch = _ref$shouldHandleTopN === void 0 ? true : _ref$shouldHandleTopN,
8950
- props = _objectWithoutProperties(_ref, _excluded$e);
8261
+ props = _objectWithoutProperties(_ref, _excluded$d);
8951
8262
  var _useSafeAreaInsets = useSafeAreaInsets(),
8952
8263
  top = _useSafeAreaInsets.top;
8953
8264
  var hasRight = Boolean(right);
@@ -8996,18 +8307,34 @@ function FullscreenModal2Header(_ref) {
8996
8307
  }));
8997
8308
  }
8998
8309
 
8999
- function FullscreenModal2(_ref) {
9000
- var backgroundColor = _ref.backgroundColor,
9001
- children = _ref.children;
9002
- return /*#__PURE__*/jsx(FullscreenModal2Container, {
8310
+ function FullscreenModal(_ref) {
8311
+ var body = _ref.body,
8312
+ header = _ref.header,
8313
+ footer = _ref.footer,
8314
+ backgroundColor = _ref.backgroundColor;
8315
+ return /*#__PURE__*/jsxs(FullscreenModalContainer, {
9003
8316
  backgroundColor: backgroundColor,
9004
- children: children
8317
+ children: [header ? /*#__PURE__*/jsx(View, {
8318
+ children: header
8319
+ }) : null, /*#__PURE__*/jsxs(View, {
8320
+ flexGrow: 1,
8321
+ flexShrink: 1,
8322
+ justifyContent: "space-between",
8323
+ children: [/*#__PURE__*/jsx(ScrollView$2, {
8324
+ bounces: false,
8325
+ contentContainerStyle: {
8326
+ flexGrow: 1,
8327
+ position: 'relative'
8328
+ },
8329
+ children: body
8330
+ }), footer || null]
8331
+ })]
9005
8332
  });
9006
8333
  }
9007
- FullscreenModal2.Header = FullscreenModal2Header;
9008
- FullscreenModal2.Footer = FullscreenModal2Footer;
9009
- FullscreenModal2.Body = FullscreenModal2Body;
9010
- FullscreenModal2.Behaviour = FullscreenModal2Behaviour;
8334
+ FullscreenModal.Header = FullscreenModalHeader;
8335
+ FullscreenModal.Footer = FullscreenModalFooter;
8336
+ FullscreenModal.Body = FullscreenModalBody;
8337
+ FullscreenModal.ModalBehaviour = FullscreenModalBehaviour;
9011
8338
 
9012
8339
  function GroupTags(_ref) {
9013
8340
  var children = _ref.children,
@@ -9268,7 +8595,7 @@ function Highlight(_ref) {
9268
8595
  });
9269
8596
  }
9270
8597
 
9271
- var _excluded$d = ["color", "isDisabled"];
8598
+ var _excluded$c = ["color", "isDisabled"];
9272
8599
  function getBackgroundColor$1(color, isDisabled) {
9273
8600
  if (isDisabled) {
9274
8601
  return 'kitt.iconButton.disabled.backgroundColor';
@@ -9288,7 +8615,7 @@ function getBackgroundColor$1(color, isDisabled) {
9288
8615
  function Background(_ref) {
9289
8616
  var color = _ref.color,
9290
8617
  isDisabled = _ref.isDisabled,
9291
- props = _objectWithoutProperties(_ref, _excluded$d);
8618
+ props = _objectWithoutProperties(_ref, _excluded$c);
9292
8619
  return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
9293
8620
  width: "100%",
9294
8621
  height: "100%",
@@ -9692,7 +9019,7 @@ var getBackgroundColor = function (_ref) {
9692
9019
  return isSelected || isHovered ? theme.mapMarker.meetingPoint.selected : theme.mapMarker.meetingPoint["default"];
9693
9020
  };
9694
9021
 
9695
- var _excluded$c = ["onPress", "testID"];
9022
+ var _excluded$b = ["onPress", "testID"];
9696
9023
  var MapMarkerVariantEnum = /*#__PURE__*/function (MapMarkerVariantEnum) {
9697
9024
  MapMarkerVariantEnum["HOME"] = "home";
9698
9025
  MapMarkerVariantEnum["MEETING_POINT"] = "meetingPoint";
@@ -9758,7 +9085,7 @@ function StaticMapMarker$1(_ref) {
9758
9085
  function MapMarker(_ref2) {
9759
9086
  var onPress = _ref2.onPress,
9760
9087
  testID = _ref2.testID,
9761
- props = _objectWithoutProperties(_ref2, _excluded$c);
9088
+ props = _objectWithoutProperties(_ref2, _excluded$b);
9762
9089
  return /*#__PURE__*/jsx(Pressable$1, {
9763
9090
  testID: testID,
9764
9091
  onPress: onPress,
@@ -12375,7 +11702,7 @@ function KittNativeBaseProvider(_ref) {
12375
11702
  });
12376
11703
  }
12377
11704
 
12378
- var _excluded$b = ["children", "visible", "appear", "onExited", "onEnter", "onExit", "onClose"];
11705
+ var _excluded$a = ["children", "visible", "appear", "onExited", "onEnter", "onExit", "onClose"];
12379
11706
  function NavigationModalBehaviour(_ref) {
12380
11707
  var children = _ref.children,
12381
11708
  visible = _ref.visible,
@@ -12385,7 +11712,7 @@ function NavigationModalBehaviour(_ref) {
12385
11712
  onEnter = _ref.onEnter,
12386
11713
  onExit = _ref.onExit,
12387
11714
  onClose = _ref.onClose,
12388
- props = _objectWithoutProperties(_ref, _excluded$b);
11715
+ props = _objectWithoutProperties(_ref, _excluded$a);
12389
11716
  var AnimationComponent = useBreakpointValue({
12390
11717
  base: FullscreenModalAnimation,
12391
11718
  small: CardModalAnimation
@@ -12435,8 +11762,7 @@ function NavigationModal(_ref) {
12435
11762
  var body = _ref.body,
12436
11763
  backgroundColor = _ref.backgroundColor,
12437
11764
  footer = _ref.footer,
12438
- header = _ref.header,
12439
- contentContainer = _ref.contentContainer;
11765
+ header = _ref.header;
12440
11766
  var Component = useBreakpointValue({
12441
11767
  base: FullscreenModal,
12442
11768
  small: CardModal
@@ -12445,130 +11771,35 @@ function NavigationModal(_ref) {
12445
11771
  body: body,
12446
11772
  backgroundColor: backgroundColor,
12447
11773
  footer: footer,
12448
- header: header,
12449
- contentContainer: contentContainer
11774
+ header: header
12450
11775
  });
12451
11776
  }
12452
- function Header$1(props) {
11777
+ function Header(props) {
12453
11778
  var Component = useBreakpointValue({
12454
11779
  base: FullscreenModal.Header,
12455
11780
  small: CardModal.Header
12456
11781
  });
12457
11782
  return /*#__PURE__*/jsx(Component, _objectSpread({}, props));
12458
11783
  }
12459
- function Body$1(props) {
11784
+ function Body(props) {
12460
11785
  var Component = useBreakpointValue({
12461
11786
  base: FullscreenModal.Body,
12462
11787
  small: CardModal.Body
12463
11788
  });
12464
11789
  return /*#__PURE__*/jsx(Component, _objectSpread({}, props));
12465
11790
  }
12466
- function Footer$1(props) {
11791
+ function Footer(props) {
12467
11792
  var Component = useBreakpointValue({
12468
11793
  base: FullscreenModal.Footer,
12469
11794
  small: CardModal.Footer
12470
11795
  });
12471
11796
  return /*#__PURE__*/jsx(Component, _objectSpread({}, props));
12472
11797
  }
12473
- NavigationModal.Header = Header$1;
12474
- NavigationModal.Body = Body$1;
12475
- NavigationModal.Footer = Footer$1;
11798
+ NavigationModal.Header = Header;
11799
+ NavigationModal.Body = Body;
11800
+ NavigationModal.Footer = Footer;
12476
11801
  NavigationModal.ModalBehaviour = NavigationModalBehaviour;
12477
11802
 
12478
- var _excluded$a = ["children", "visible", "appear", "onExited", "onEnter", "onExit", "onClose"];
12479
- function NavigationModal2Behaviour(_ref) {
12480
- var children = _ref.children,
12481
- visible = _ref.visible,
12482
- _ref$appear = _ref.appear,
12483
- appear = _ref$appear === void 0 ? true : _ref$appear,
12484
- onExited = _ref.onExited,
12485
- onEnter = _ref.onEnter,
12486
- onExit = _ref.onExit,
12487
- onClose = _ref.onClose,
12488
- props = _objectWithoutProperties(_ref, _excluded$a);
12489
- var AnimationComponent = useBreakpointValue({
12490
- base: FullscreenModal2Animation,
12491
- small: CardModal2Animation
12492
- });
12493
- var _useState = useState(visible),
12494
- _useState2 = _slicedToArray(_useState, 2),
12495
- isModalBehaviourVisible = _useState2[0],
12496
- setIsModalBehaviourVisible = _useState2[1];
12497
- var _useState3 = useState(appear),
12498
- _useState4 = _slicedToArray(_useState3, 2),
12499
- shouldAppear = _useState4[0],
12500
- setShouldAppear = _useState4[1];
12501
- useEffect(function () {
12502
- if (visible === true) {
12503
- setIsModalBehaviourVisible(true);
12504
- }
12505
- }, [visible]);
12506
- return /*#__PURE__*/jsx(ModalBehaviour, {
12507
- visible: isModalBehaviourVisible,
12508
- onClose: onClose,
12509
- children: /*#__PURE__*/jsx(AnimationComponent, _objectSpread(_objectSpread({}, props), {}, {
12510
- appear: shouldAppear,
12511
- visible: visible,
12512
- onEnter: function handleEnter() {
12513
- if (onEnter) onEnter();
12514
-
12515
- // Once a children as been displayed, we force appear to false in order to avoid replaying animation on breakpoint change
12516
- setShouldAppear(false);
12517
- },
12518
- onExit: function handleExit() {
12519
- if (onExit) onExit();
12520
-
12521
- // Reset appear value to its original value for future modal display
12522
- setShouldAppear(appear);
12523
- },
12524
- onExited: function handleExitAnimationDone() {
12525
- if (onExited) onExited();
12526
- setIsModalBehaviourVisible(false);
12527
- },
12528
- onClose: onClose,
12529
- children: children
12530
- }))
12531
- });
12532
- }
12533
-
12534
- function NavigationModal2(_ref) {
12535
- var backgroundColor = _ref.backgroundColor,
12536
- children = _ref.children;
12537
- var Component = useBreakpointValue({
12538
- base: FullscreenModal2,
12539
- small: CardModal2
12540
- });
12541
- return /*#__PURE__*/jsx(Component, {
12542
- backgroundColor: backgroundColor,
12543
- children: children
12544
- });
12545
- }
12546
- function Header(props) {
12547
- var Component = useBreakpointValue({
12548
- base: FullscreenModal2.Header,
12549
- small: CardModal2.Header
12550
- });
12551
- return /*#__PURE__*/jsx(Component, _objectSpread({}, props));
12552
- }
12553
- function Body(props) {
12554
- var Component = useBreakpointValue({
12555
- base: FullscreenModal2.Body,
12556
- small: CardModal2.Body
12557
- });
12558
- return /*#__PURE__*/jsx(Component, _objectSpread({}, props));
12559
- }
12560
- function Footer(props) {
12561
- var Component = useBreakpointValue({
12562
- base: FullscreenModal2.Footer,
12563
- small: CardModal2.Footer
12564
- });
12565
- return /*#__PURE__*/jsx(Component, _objectSpread({}, props));
12566
- }
12567
- NavigationModal2.Header = Header;
12568
- NavigationModal2.Body = Body;
12569
- NavigationModal2.Footer = Footer;
12570
- NavigationModal2.ModalBehaviour = NavigationModal2Behaviour;
12571
-
12572
11803
  function Notification(_ref) {
12573
11804
  var type = _ref.type,
12574
11805
  children = _ref.children,
@@ -14965,5 +14196,5 @@ function VerticalSteps(_ref) {
14965
14196
  VerticalSteps.Step = Step;
14966
14197
  VerticalSteps.BorderlessStep = BorderlessStep;
14967
14198
 
14968
- export { ActionCard, Actions, Autocomplete, Avatar, BottomSheet, Button, CardModal, CardModal2, Center, Checkbox, ChoicesElements, CloseIconButton, DatePicker, DialogModal, DocumentPicker, Emoji, ExternalAppLink, ExternalLink, FilePicker, FlatList, Flex, FullscreenModal, FullscreenModal2, 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, NavigationModal, NavigationModal2, Notification, Overlay, PageLoader, Picker, Pressable, RadioWithRef as Radio, RadioButtonGroup, ScrollView, DeprecatedSection as Section, SectionList, SegmentedProgressBar, Skeleton, SpinningIcon, Stack, StaticMap, Story, StoryBlock, StoryContainer, StoryDecorator, StoryGrid, StorySection, StoryTitle, StyleWebWrapper, SwitchBreakpoints, TabBar, Tag, TextArea, TimePicker, ToastComponent, Toggle, Tooltip, 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 };
14199
+ export { ActionCard, Actions, Autocomplete, Avatar, BottomSheet, Button, CardModal, Center, Checkbox, ChoicesElements, 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, NavigationModal, Notification, Overlay, PageLoader, Picker, Pressable, RadioWithRef as Radio, RadioButtonGroup, ScrollView, DeprecatedSection as Section, SectionList, SegmentedProgressBar, Skeleton, SpinningIcon, Stack, StaticMap, Story, StoryBlock, StoryContainer, StoryDecorator, StoryGrid, StorySection, StoryTitle, StyleWebWrapper, SwitchBreakpoints, TabBar, Tag, TextArea, TimePicker, ToastComponent, Toggle, Tooltip, 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 };
14969
14200
  //# sourceMappingURL=index.es.js.map