@ornikar/kitt-universal 27.9.1-canary.b005d681364bb7e16454f696f46b5af55d721a97.0 → 27.9.1-canary.e79ce5a70db58d281f30a0e111ad7cf70d64cdb1.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 (59) hide show
  1. package/CHANGELOG.md +17 -5
  2. package/dist/definitions/CardModal/CardModalBody.d.ts +1 -1
  3. package/dist/definitions/CardModal/CardModalBody.d.ts.map +1 -1
  4. package/dist/definitions/CardModal/CardModalHeader.d.ts +17 -3
  5. package/dist/definitions/CardModal/CardModalHeader.d.ts.map +1 -1
  6. package/dist/definitions/FullscreenModal/Header.d.ts +18 -3
  7. package/dist/definitions/FullscreenModal/Header.d.ts.map +1 -1
  8. package/dist/definitions/NavigationBottomSheet/NavigationBottomSheet.d.ts +7 -7
  9. package/dist/definitions/NavigationBottomSheet/NavigationBottomSheet.d.ts.map +1 -1
  10. package/dist/definitions/NavigationBottomSheet/NavigationBottomSheet.web.d.ts +1 -1
  11. package/dist/definitions/NavigationBottomSheet/NavigationBottomSheet.web.d.ts.map +1 -1
  12. package/dist/definitions/Picker/Picker.d.ts.map +1 -1
  13. package/dist/definitions/TopNavBar/TopNavBar.d.ts +1 -1
  14. package/dist/definitions/TopNavBar/TopNavBar.d.ts.map +1 -1
  15. package/dist/definitions/forms/DatePicker/components/NativeUIDatePicker/ModalPlatformDateTimePicker.d.ts.map +1 -1
  16. package/dist/definitions/native-base/KittNativeBaseProvider.d.ts +12 -14
  17. package/dist/definitions/native-base/KittNativeBaseProvider.d.ts.map +1 -1
  18. package/dist/definitions/themes/default.d.ts +1 -0
  19. package/dist/definitions/themes/default.d.ts.map +1 -1
  20. package/dist/definitions/themes/late-ocean/fullscreenModal.d.ts +1 -1
  21. package/dist/definitions/themes/late-ocean/fullscreenModal.d.ts.map +1 -1
  22. package/dist/definitions/themes/late-ocean/iconButton.d.ts +6 -0
  23. package/dist/definitions/themes/late-ocean/iconButton.d.ts.map +1 -0
  24. package/dist/definitions/typography/Typography.d.ts +18 -6
  25. package/dist/definitions/typography/Typography.d.ts.map +1 -1
  26. package/dist/index-metro.es.android.js +366 -232
  27. package/dist/index-metro.es.android.js.map +1 -1
  28. package/dist/index-metro.es.ios.js +366 -232
  29. package/dist/index-metro.es.ios.js.map +1 -1
  30. package/dist/index-node-22.17.cjs.js +277 -150
  31. package/dist/index-node-22.17.cjs.js.map +1 -1
  32. package/dist/index-node-22.17.cjs.web.js +261 -142
  33. package/dist/index-node-22.17.cjs.web.js.map +1 -1
  34. package/dist/index-node-22.17.es.mjs +278 -151
  35. package/dist/index-node-22.17.es.mjs.map +1 -1
  36. package/dist/index-node-22.17.es.web.mjs +262 -143
  37. package/dist/index-node-22.17.es.web.mjs.map +1 -1
  38. package/dist/index.es.js +462 -327
  39. package/dist/index.es.js.map +1 -1
  40. package/dist/index.es.web.js +406 -280
  41. package/dist/index.es.web.js.map +1 -1
  42. package/dist/linaria-themes-metro.es.android.js +8 -2
  43. package/dist/linaria-themes-metro.es.android.js.map +1 -1
  44. package/dist/linaria-themes-metro.es.ios.js +8 -2
  45. package/dist/linaria-themes-metro.es.ios.js.map +1 -1
  46. package/dist/linaria-themes-node-22.17.cjs.js +8 -2
  47. package/dist/linaria-themes-node-22.17.cjs.js.map +1 -1
  48. package/dist/linaria-themes-node-22.17.cjs.web.js +8 -2
  49. package/dist/linaria-themes-node-22.17.cjs.web.js.map +1 -1
  50. package/dist/linaria-themes-node-22.17.es.mjs +8 -2
  51. package/dist/linaria-themes-node-22.17.es.mjs.map +1 -1
  52. package/dist/linaria-themes-node-22.17.es.web.mjs +8 -2
  53. package/dist/linaria-themes-node-22.17.es.web.mjs.map +1 -1
  54. package/dist/linaria-themes.es.js +9 -3
  55. package/dist/linaria-themes.es.js.map +1 -1
  56. package/dist/linaria-themes.es.web.js +9 -3
  57. package/dist/linaria-themes.es.web.js.map +1 -1
  58. package/dist/tsbuildinfo +1 -1
  59. package/package.json +28 -28
package/dist/index.es.js CHANGED
@@ -13,7 +13,7 @@ export { useWindowDimensions as useWindowSize } from 'react-native';
13
13
  import _typeof from '@babel/runtime/helpers/typeof';
14
14
  import _regeneratorRuntime from '@babel/runtime/helpers/regeneratorRuntime';
15
15
  import _asyncToGenerator from '@babel/runtime/helpers/asyncToGenerator';
16
- import { SpinnerGapRegularIcon, UserRegularIcon, XRegularIcon, ArrowLeftRegularIcon, CaretUpFillIcon, CaretDownFillIcon, MapPinRegularIcon, EyeClosedRegularIcon, EyeRegularIcon, CheckCircleFillIcon, CaretDownRegularIcon, CaretRightRegularIcon, InfoRegularIcon, WarningRegularIcon, CheckRegularIcon, WarningCircleRegularIcon, ArrowCounterClockwiseRegularIcon, InfoFillIcon, WarningCircleFillIcon, WarningFillIcon } from '@ornikar/kitt-icons/phosphor';
16
+ import { SpinnerGapRegularIcon, UserRegularIcon, CaretUpFillIcon, CaretDownFillIcon, MapPinRegularIcon, EyeClosedRegularIcon, EyeRegularIcon, CheckCircleFillIcon, CaretDownRegularIcon, XRegularIcon, CaretRightRegularIcon, InfoRegularIcon, WarningRegularIcon, CheckRegularIcon, WarningCircleRegularIcon, ArrowCounterClockwiseRegularIcon, InfoFillIcon, WarningCircleFillIcon, WarningFillIcon, ArrowLeftRegularIcon } from '@ornikar/kitt-icons/phosphor';
17
17
  import { BottomSheetView, BottomSheetScrollView, BottomSheetSectionList, BottomSheetFlatList, BottomSheetHandle, BottomSheetBackdrop, BottomSheetFooter, BottomSheetTextInput, BottomSheetModal, useBottomSheetModal } from '@gorhom/bottom-sheet';
18
18
  import { useSafeAreaInsets } from 'react-native-safe-area-context';
19
19
  import { parse } from '@twemoji/parser';
@@ -1820,12 +1820,12 @@ var fullscreenModal = {
1820
1820
  header: {
1821
1821
  height: 56
1822
1822
  },
1823
- horizontalPadding: 16,
1823
+ sharedHorizontalPadding: 16,
1824
1824
  footer: {
1825
1825
  verticalPadding: 12
1826
1826
  },
1827
1827
  body: {
1828
- verticalPadding: 16
1828
+ verticalPadding: 24
1829
1829
  },
1830
1830
  animation: {
1831
1831
  overlay: {
@@ -1912,6 +1912,11 @@ var icon = {
1912
1912
  defaultSize: 20
1913
1913
  };
1914
1914
 
1915
+ var iconButton = {
1916
+ width: button.height.medium,
1917
+ height: button.height.medium
1918
+ };
1919
+
1915
1920
  var listItem = {
1916
1921
  padding: '12px 16px',
1917
1922
  verticalPadding: 12,
@@ -2623,7 +2628,7 @@ var breakpoints = {
2623
2628
  // TODO : seperate brand color usage definition from proper theme definition and add typings - https://ornikar.atlassian.net/browse/CME-156
2624
2629
  var theme = {
2625
2630
  spacing: spacing,
2626
- getSpacing: function getSpacing(multiplier) {
2631
+ getSpacing: function (multiplier) {
2627
2632
  return spacing * multiplier;
2628
2633
  },
2629
2634
  colors: colors,
@@ -2643,6 +2648,7 @@ var theme = {
2643
2648
  highlight: highlight,
2644
2649
  icon: icon,
2645
2650
  buttonBadge: buttonBadge,
2651
+ iconButton: iconButton,
2646
2652
  listItem: listItem,
2647
2653
  pageLoader: pageLoader,
2648
2654
  picker: picker,
@@ -2749,7 +2755,7 @@ function ActionCardDisabled(_ref) {
2749
2755
  });
2750
2756
  }
2751
2757
 
2752
- var _excluded$R = ["children", "variant", "borderVariant", "borderRadius", "disabled", "isHovered", "isPressed", "isFocused"];
2758
+ var _excluded$S = ["children", "variant", "borderVariant", "borderRadius", "disabled", "isHovered", "isPressed", "isFocused"];
2753
2759
  function ActionCard(_ref) {
2754
2760
  var children = _ref.children,
2755
2761
  _ref$variant = _ref.variant,
@@ -2762,7 +2768,7 @@ function ActionCard(_ref) {
2762
2768
  isHovered = _ref.isHovered,
2763
2769
  isPressed = _ref.isPressed,
2764
2770
  isFocused = _ref.isFocused,
2765
- props = _objectWithoutProperties(_ref, _excluded$R);
2771
+ props = _objectWithoutProperties(_ref, _excluded$S);
2766
2772
  return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
2767
2773
  children: disabled ? /*#__PURE__*/jsx(ActionCardDisabled, {
2768
2774
  borderRadius: borderRadius,
@@ -2810,7 +2816,7 @@ var ActionCardPressable = /*#__PURE__*/forwardRef(function (_ref2, ref) {
2810
2816
  onPress: onPress,
2811
2817
  onHoverIn: onHoverIn,
2812
2818
  onHoverOut: onHoverOut,
2813
- children: function children(_ref3) {
2819
+ children: function (_ref3) {
2814
2820
  var isHovered = _ref3.isHovered,
2815
2821
  isPressed = _ref3.isPressed,
2816
2822
  isFocused = _ref3.isFocused;
@@ -3086,7 +3092,7 @@ var getTypographyTypeWithAncestorValue = function (type, typographyTypeInContext
3086
3092
  return !!isAllValuesUndefined && !!typographyTypeInContext ? typographyTypeInContext : type;
3087
3093
  };
3088
3094
 
3089
- var _excluded$Q = ["accessibilityRole", "base", "small", "medium", "large", "wide", "type", "variant", "color"];
3095
+ var _excluded$R = ["accessibilityRole", "base", "small", "medium", "large", "wide", "type", "variant", "color"];
3090
3096
  var TypographyFamilyContext = /*#__PURE__*/createContext(null);
3091
3097
  var TypographyTypeContext = /*#__PURE__*/createContext(null);
3092
3098
  var TypographyColorContext = /*#__PURE__*/createContext('black');
@@ -3210,7 +3216,7 @@ function Typography(_ref2) {
3210
3216
  } : _ref2$type,
3211
3217
  variant = _ref2.variant,
3212
3218
  color = _ref2.color,
3213
- otherProps = _objectWithoutProperties(_ref2, _excluded$Q);
3219
+ otherProps = _objectWithoutProperties(_ref2, _excluded$R);
3214
3220
  var sx = useSx();
3215
3221
  var typographyFamilyInContext = useContext(TypographyFamilyContext);
3216
3222
  var typographyTypeInContext = useContext(TypographyTypeContext);
@@ -3352,12 +3358,12 @@ function Icon(_ref) {
3352
3358
  });
3353
3359
  }
3354
3360
 
3355
- var _excluded$P = ["color", "size"],
3361
+ var _excluded$Q = ["color", "size"],
3356
3362
  _excluded2$5 = ["color"];
3357
3363
  function TypographyIconSpecifiedColor(_ref) {
3358
3364
  var color = _ref.color,
3359
3365
  size = _ref.size,
3360
- props = _objectWithoutProperties(_ref, _excluded$P);
3366
+ props = _objectWithoutProperties(_ref, _excluded$Q);
3361
3367
  var colorValue = getTypographyColorValue(color);
3362
3368
  var sx = useSx();
3363
3369
  var _sx = sx({
@@ -3397,7 +3403,7 @@ var getButtonTextColorByType = function (type, variant, isHovered, isPressed, is
3397
3403
  return "".concat(baseKey, ".default");
3398
3404
  };
3399
3405
 
3400
- var _excluded$O = ["type", "variant", "isDisabled", "icon", "children", "isHovered", "isPressed", "isFocused", "innerSpacing", "size"];
3406
+ var _excluded$P = ["type", "variant", "isDisabled", "icon", "children", "isHovered", "isPressed", "isFocused", "innerSpacing", "size"];
3401
3407
  function ButtonContentChildren(_ref) {
3402
3408
  var type = _ref.type,
3403
3409
  icon = _ref.icon,
@@ -3497,7 +3503,7 @@ function ButtonContent(_ref2) {
3497
3503
  _ref2.isFocused;
3498
3504
  var innerSpacing = _ref2.innerSpacing,
3499
3505
  size = _ref2.size,
3500
- props = _objectWithoutProperties(_ref2, _excluded$O);
3506
+ props = _objectWithoutProperties(_ref2, _excluded$P);
3501
3507
  var color = getButtonTextColorByType(type, variant, isHovered, isPressed, isDisabled);
3502
3508
  return /*#__PURE__*/jsx(View, {
3503
3509
  _web: {
@@ -3580,11 +3586,11 @@ var useNativeAnimation$4 = function (_ref) {
3580
3586
  };
3581
3587
  });
3582
3588
  return {
3583
- onPressIn: function handlePressIn() {
3589
+ onPressIn: function () {
3584
3590
  color.value = withSpring(1);
3585
3591
  pressed.value = 1;
3586
3592
  },
3587
- onPressOut: function handlePressOut() {
3593
+ onPressOut: function () {
3588
3594
  color.value = withSpring(0);
3589
3595
  pressed.value = 0;
3590
3596
  },
@@ -3653,7 +3659,7 @@ var Button = /*#__PURE__*/forwardRef(function (_ref, ref) {
3653
3659
  onHoverOut: onHoverOut,
3654
3660
  onFocus: onFocus,
3655
3661
  onBlur: onBlur,
3656
- children: function children(_ref2) {
3662
+ children: function (_ref2) {
3657
3663
  var isHovered = _ref2.isHovered,
3658
3664
  isPressed = _ref2.isPressed,
3659
3665
  isFocused = _ref2.isFocused;
@@ -3742,7 +3748,7 @@ function LoaderIcon(_ref) {
3742
3748
  });
3743
3749
  }
3744
3750
 
3745
- var _excluded$N = ["as", "onPress", "disabled", "icon", "stretch"];
3751
+ var _excluded$O = ["as", "onPress", "disabled", "icon", "stretch"];
3746
3752
  var ActionsItem = /*#__PURE__*/forwardRef(function (_ref, ref) {
3747
3753
  var as = _ref.as,
3748
3754
  onPress = _ref.onPress,
@@ -3753,7 +3759,7 @@ var ActionsItem = /*#__PURE__*/forwardRef(function (_ref, ref) {
3753
3759
  base: true,
3754
3760
  medium: false
3755
3761
  } : _ref$stretch,
3756
- props = _objectWithoutProperties(_ref, _excluded$N);
3762
+ props = _objectWithoutProperties(_ref, _excluded$O);
3757
3763
  var _useState = useState(false),
3758
3764
  _useState2 = _slicedToArray(_useState, 2),
3759
3765
  isLoading = _useState2[0],
@@ -3776,7 +3782,7 @@ var ActionsItem = /*#__PURE__*/forwardRef(function (_ref, ref) {
3776
3782
  stretch: stretch,
3777
3783
  disabled: isLoading ? true : disabled,
3778
3784
  icon: isLoading ? /*#__PURE__*/jsx(LoaderIcon, {}) : icon,
3779
- onPress: function handlePress(e) {
3785
+ onPress: function (e) {
3780
3786
  var callPressAndUpdateLoadingState = /*#__PURE__*/function () {
3781
3787
  var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
3782
3788
  return _regeneratorRuntime().wrap(function (_context) {
@@ -3831,7 +3837,7 @@ function ActionsButton(_ref) {
3831
3837
  }, props));
3832
3838
  }
3833
3839
 
3834
- var _excluded$M = ["children", "layout", "reversed"];
3840
+ var _excluded$N = ["children", "layout", "reversed"];
3835
3841
  function getCurrentLayout(layout) {
3836
3842
  if (!layout) return {
3837
3843
  base: 'stretch',
@@ -3863,7 +3869,7 @@ function Actions(_ref) {
3863
3869
  reversed = _ref$reversed === void 0 ? {
3864
3870
  base: false
3865
3871
  } : _ref$reversed,
3866
- props = _objectWithoutProperties(_ref, _excluded$M);
3872
+ props = _objectWithoutProperties(_ref, _excluded$N);
3867
3873
  var shouldReverse = typeof reversed === 'boolean' ? {
3868
3874
  base: !!reversed
3869
3875
  } : createResponsiveStyleFromProp(reversed, true, false);
@@ -3916,7 +3922,7 @@ function getInitials(firstname, lastname) {
3916
3922
  return "".concat(firstname[0]).concat(lastname[0]).toUpperCase();
3917
3923
  }
3918
3924
 
3919
- var _excluded$L = ["size", "round", "light", "sizeVariant", "width", "height", "dark", "disabled"];
3925
+ var _excluded$M = ["size", "round", "light", "sizeVariant", "width", "height", "dark", "disabled"];
3920
3926
  function AvatarContent(_ref) {
3921
3927
  var size = _ref.size,
3922
3928
  src = _ref.src,
@@ -3979,7 +3985,7 @@ function Avatar(_ref2) {
3979
3985
  height = _ref2.height,
3980
3986
  dark = _ref2.dark,
3981
3987
  disabled = _ref2.disabled,
3982
- props = _objectWithoutProperties(_ref2, _excluded$L);
3988
+ props = _objectWithoutProperties(_ref2, _excluded$M);
3983
3989
  var currentSize = getCurrentSize({
3984
3990
  size: size,
3985
3991
  sizeVariant: sizeVariant
@@ -4017,7 +4023,7 @@ function Avatar(_ref2) {
4017
4023
  });
4018
4024
  }
4019
4025
 
4020
- var _excluded$K = ["children", "hasScrollView", "hasBackdrop", "hasHandle", "enableDynamicSizing", "snapPoints"];
4026
+ var _excluded$L = ["children", "hasScrollView", "hasBackdrop", "hasHandle", "enableDynamicSizing", "snapPoints"];
4021
4027
  function BottomSheetComp(_ref, ref) {
4022
4028
  var Content = _ref.children,
4023
4029
  _ref$hasScrollView = _ref.hasScrollView,
@@ -4030,7 +4036,7 @@ function BottomSheetComp(_ref, ref) {
4030
4036
  enableDynamicSizing = _ref$enableDynamicSiz === void 0 ? true : _ref$enableDynamicSiz,
4031
4037
  _ref$snapPoints = _ref.snapPoints,
4032
4038
  snapPoints = _ref$snapPoints === void 0 ? ['100%'] : _ref$snapPoints,
4033
- rest = _objectWithoutProperties(_ref, _excluded$K);
4039
+ rest = _objectWithoutProperties(_ref, _excluded$L);
4034
4040
  var _useSafeAreaInsets = useSafeAreaInsets(),
4035
4041
  top = _useSafeAreaInsets.top;
4036
4042
  var Wrapper = useMemo(function () {
@@ -4048,10 +4054,10 @@ function BottomSheetComp(_ref, ref) {
4048
4054
  borderRadius: 4,
4049
4055
  backgroundColor: theme.kitt.bottomSheet.handle.backgroundColor
4050
4056
  },
4051
- handleComponent: function handleComponent(props) {
4057
+ handleComponent: function (props) {
4052
4058
  return hasHandle ? /*#__PURE__*/jsx(BottomSheetHandle, _objectSpread({}, props)) : null;
4053
4059
  },
4054
- backdropComponent: function backdropComponent(props) {
4060
+ backdropComponent: function (props) {
4055
4061
  return hasBackdrop ? /*#__PURE__*/jsx(BottomSheetBackdrop, _objectSpread(_objectSpread({}, props), {}, {
4056
4062
  opacity: 0.25,
4057
4063
  appearsOnIndex: 0,
@@ -4060,7 +4066,7 @@ function BottomSheetComp(_ref, ref) {
4060
4066
  }
4061
4067
  }, rest), {}, {
4062
4068
  topInset: top,
4063
- children: function children(props) {
4069
+ children: function (props) {
4064
4070
  return /*#__PURE__*/jsx(Wrapper, {
4065
4071
  children: typeof Content === 'function' ? /*#__PURE__*/jsx(Content, _objectSpread({}, props === null || props === void 0 ? void 0 : props.data)) : Content
4066
4072
  });
@@ -4136,7 +4142,7 @@ function CloseButton$1(_ref) {
4136
4142
  onPress = _ref.onPress;
4137
4143
  var onCloseContextCallback = useOnCloseModalBehaviour();
4138
4144
  return /*#__PURE__*/cloneElement(children, {
4139
- onPress: function handleClose() {
4145
+ onPress: function () {
4140
4146
  if (onPress) onPress();
4141
4147
  onCloseContextCallback();
4142
4148
  }
@@ -4312,11 +4318,11 @@ function CardModalAnimation(_ref) {
4312
4318
  transparent: true,
4313
4319
  supportedOrientations: ['landscape', 'portrait'],
4314
4320
  visible: isModalVisible,
4315
- onShow: function onShow() {
4321
+ onShow: function () {
4316
4322
  if (onEnter) onEnter();
4317
4323
  setIsContentVisible(true);
4318
4324
  },
4319
- onDismiss: function onDismiss() {
4325
+ onDismiss: function () {
4320
4326
  if (onExited) onExited();
4321
4327
  },
4322
4328
  children: /*#__PURE__*/jsxs(View, {
@@ -4342,13 +4348,13 @@ function CardModalAnimation(_ref) {
4342
4348
  });
4343
4349
  }
4344
4350
 
4345
- var _excluded$J = ["children", "visible", "onClose", "onExited"];
4351
+ var _excluded$K = ["children", "visible", "onClose", "onExited"];
4346
4352
  function CardModalBehaviour(_ref) {
4347
4353
  var children = _ref.children,
4348
4354
  visible = _ref.visible,
4349
4355
  onClose = _ref.onClose,
4350
4356
  onExited = _ref.onExited,
4351
- props = _objectWithoutProperties(_ref, _excluded$J);
4357
+ props = _objectWithoutProperties(_ref, _excluded$K);
4352
4358
  var _useState = useState(visible),
4353
4359
  _useState2 = _slicedToArray(_useState, 2),
4354
4360
  isModalBehaviourVisible = _useState2[0],
@@ -4363,7 +4369,7 @@ function CardModalBehaviour(_ref) {
4363
4369
  onClose: onClose,
4364
4370
  children: /*#__PURE__*/jsx(CardModalAnimation, _objectSpread(_objectSpread({}, props), {}, {
4365
4371
  visible: visible,
4366
- onExited: function handleExitAnimationDone() {
4372
+ onExited: function () {
4367
4373
  if (onExited) onExited();
4368
4374
  setIsModalBehaviourVisible(false);
4369
4375
  },
@@ -4373,23 +4379,32 @@ function CardModalBehaviour(_ref) {
4373
4379
  });
4374
4380
  }
4375
4381
 
4376
- var _excluded$I = ["children", "padding"];
4382
+ var _excluded$J = ["children", "paddingX", "paddingY"];
4377
4383
  function CardModalBody(_ref) {
4378
4384
  var children = _ref.children,
4379
- _ref$padding = _ref.padding,
4380
- padding = _ref$padding === void 0 ? 'kitt.4' : _ref$padding,
4381
- props = _objectWithoutProperties(_ref, _excluded$I);
4385
+ _ref$paddingX = _ref.paddingX,
4386
+ paddingX = _ref$paddingX === void 0 ? {
4387
+ base: 'kitt.4',
4388
+ medium: 'kitt.6'
4389
+ } : _ref$paddingX,
4390
+ _ref$paddingY = _ref.paddingY,
4391
+ paddingY = _ref$paddingY === void 0 ? {
4392
+ base: 'kitt.4',
4393
+ medium: 'kitt.6'
4394
+ } : _ref$paddingY,
4395
+ props = _objectWithoutProperties(_ref, _excluded$J);
4382
4396
  return /*#__PURE__*/jsx(ScrollView, _objectSpread(_objectSpread({
4383
4397
  showsVerticalScrollIndicator: false,
4384
4398
  _contentContainerStyle: {
4385
- padding: padding
4399
+ paddingX: paddingX,
4400
+ paddingY: paddingY
4386
4401
  }
4387
4402
  }, props), {}, {
4388
4403
  children: children
4389
4404
  }));
4390
4405
  }
4391
4406
 
4392
- var _excluded$H = ["children", "padding", "hasSeparator"];
4407
+ var _excluded$I = ["children", "padding", "hasSeparator"];
4393
4408
  function CardModalFooter(_ref) {
4394
4409
  var children = _ref.children,
4395
4410
  _ref$padding = _ref.padding,
@@ -4399,7 +4414,7 @@ function CardModalFooter(_ref) {
4399
4414
  } : _ref$padding,
4400
4415
  _ref$hasSeparator = _ref.hasSeparator,
4401
4416
  hasSeparator = _ref$hasSeparator === void 0 ? true : _ref$hasSeparator,
4402
- props = _objectWithoutProperties(_ref, _excluded$H);
4417
+ props = _objectWithoutProperties(_ref, _excluded$I);
4403
4418
  return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
4404
4419
  marginTop: "kitt.2",
4405
4420
  padding: padding,
@@ -4413,148 +4428,58 @@ function CardModalFooter(_ref) {
4413
4428
  }));
4414
4429
  }
4415
4430
 
4416
- var getButtonTypeAndVariant = function (iconColor) {
4417
- switch (iconColor) {
4418
- case 'black':
4419
- return {
4420
- type: 'tertiary'
4421
- };
4422
- case 'secondary':
4423
- return {
4424
- type: 'secondary'
4425
- };
4426
- case 'primary':
4427
- return {
4428
- type: 'primary'
4429
- };
4430
- case 'primary-plain':
4431
- return {
4432
- type: 'primary'
4433
- };
4434
- case 'ghost':
4435
- return {
4436
- type: 'tertiary',
4437
- variant: 'revert'
4438
- };
4439
- default:
4440
- return {
4441
- type: 'secondary'
4442
- };
4443
- }
4444
- };
4445
-
4446
- var _excluded$G = ["color", "ariaLabel"];
4447
- /**
4448
- * @deprecated IconButton should only be used as a navigation button
4449
- * Other use cases should use a <Button> component with an icon
4450
- */
4451
- function IconButton(_ref) {
4452
- var _ref$color = _ref.color,
4453
- color = _ref$color === void 0 ? 'black' : _ref$color;
4454
- _ref.ariaLabel;
4455
- var props = _objectWithoutProperties(_ref, _excluded$G);
4456
- var _getButtonTypeAndVari = getButtonTypeAndVariant(color),
4457
- legacyColorToType = _getButtonTypeAndVari.type,
4458
- legacyColorToVariant = _getButtonTypeAndVari.variant;
4459
- return /*#__PURE__*/jsx(Button, _objectSpread({
4460
- variant: legacyColorToVariant,
4461
- type: legacyColorToType
4462
- }, props));
4463
- }
4464
- function CloseIconButton(props) {
4465
- return /*#__PURE__*/jsx(IconButton, _objectSpread({
4466
- icon: /*#__PURE__*/jsx(XRegularIcon, {})
4467
- }, props));
4468
- }
4469
-
4470
- function TopNavBar(_ref) {
4471
- var left = _ref.left,
4472
- right = _ref.right,
4431
+ var _excluded$H = ["children", "title", "paddingBottom", "hasSeparator", "right", "left"];
4432
+ function CardModalHeader(_ref) {
4433
+ var children = _ref.children,
4473
4434
  title = _ref.title,
4474
- _ref$titleAlign = _ref.titleAlign,
4475
- titleAlign = _ref$titleAlign === void 0 ? 'center' : _ref$titleAlign,
4476
- stickers = _ref.stickers,
4477
- _ref$mode = _ref.mode,
4478
- mode = _ref$mode === void 0 ? 'default' : _ref$mode,
4435
+ _ref$paddingBottom = _ref.paddingBottom,
4436
+ paddingBottom = _ref$paddingBottom === void 0 ? {
4437
+ base: 'kitt.4',
4438
+ medium: 'kitt.2'
4439
+ } : _ref$paddingBottom,
4479
4440
  _ref$hasSeparator = _ref.hasSeparator,
4480
- hasSeparator = _ref$hasSeparator === void 0 ? true : _ref$hasSeparator;
4481
- var isLargeTitleMode = mode === 'largeTitle';
4482
- var leftEmptySpace = !left && titleAlign === 'left' ? null : /*#__PURE__*/jsx(View, {
4483
- width: "kitt.button.minWidth"
4484
- });
4485
- return /*#__PURE__*/jsxs(VStack, {
4486
- space: isLargeTitleMode ? 'kitt.2' : undefined,
4487
- width: "100%",
4488
- height: mode === 'default' ? 56 : undefined,
4489
- justifyContent: "center",
4490
- paddingX: "kitt.2",
4491
- paddingTop: isLargeTitleMode ? 'kitt.2' : 'kitt.3',
4492
- paddingBottom: "kitt.3",
4493
- borderBottomWidth: hasSeparator && mode === 'default' ? 1 : 0,
4441
+ hasSeparator = _ref$hasSeparator === void 0 ? true : _ref$hasSeparator,
4442
+ right = _ref.right,
4443
+ left = _ref.left,
4444
+ props = _objectWithoutProperties(_ref, _excluded$H);
4445
+ var defaultContainerPadding = {
4446
+ base: 'kitt.4',
4447
+ medium: 'kitt.6'
4448
+ };
4449
+ return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
4450
+ padding: paddingBottom,
4451
+ borderBottomWidth: hasSeparator ? 'kitt.cardModal.footer.borderWidth' : 0,
4494
4452
  borderColor: "kitt.separator",
4495
- children: [/*#__PURE__*/jsxs(HStack, {
4453
+ justifyContent: "center",
4454
+ width: "100%",
4455
+ height: "kitt.cardModal.header.height",
4456
+ paddingRight: right ? 'kitt.2' : defaultContainerPadding,
4457
+ paddingLeft: left ? 'kitt.2' : defaultContainerPadding,
4458
+ children: /*#__PURE__*/jsxs(View, {
4496
4459
  alignItems: "center",
4497
- justifyContent: !title && !left ? 'flex-end' : 'space-between',
4498
- children: [left !== null && left !== void 0 ? left : leftEmptySpace, mode === 'default' ? /*#__PURE__*/jsx(View, {
4460
+ flexDirection: "row",
4461
+ justifyContent: !children && !left ? 'flex-end' : 'space-between',
4462
+ children: [left ? /*#__PURE__*/jsx(View, {
4463
+ width: "kitt.iconButton.width",
4464
+ children: left
4465
+ }) : null, /*#__PURE__*/jsxs(View, {
4499
4466
  flexGrow: "1",
4500
- flexShrink: 1,
4501
- paddingRight: "kitt.2",
4502
- paddingLeft: "kitt.2",
4503
- children: title ? /*#__PURE__*/jsx(Typography.Text, {
4504
- textAlign: titleAlign,
4467
+ paddingRight: right ? 'kitt.2' : 0,
4468
+ paddingLeft: left ? 'kitt.2' : 0,
4469
+ children: [title ? /*#__PURE__*/jsx(Typography.Text, {
4470
+ textAlign: !left && right ? 'left' : 'center',
4505
4471
  variant: "bold",
4506
- ellipsizeMode: "tail",
4507
- numberOfLines: 1,
4508
4472
  children: title
4509
- }) : null
4510
- }) : null, right !== null && right !== void 0 ? right : /*#__PURE__*/jsx(View, {
4511
- width: "kitt.button.minWidth"
4512
- })]
4513
- }), mode === 'largeTitle' ? /*#__PURE__*/jsxs(VStack, {
4514
- space: "kitt.4",
4515
- paddingX: "kitt.2",
4516
- children: [stickers ? /*#__PURE__*/jsx(HStack, {
4517
- width: "100%",
4518
- space: "kitt.1",
4519
- flexShrink: 1,
4520
- flexWrap: "wrap",
4521
- style: {
4522
- rowGap: theme.getSpacing(1)
4523
- },
4524
- children: stickers.map(function (sticker, index) {
4525
- return (
4526
- /*#__PURE__*/
4527
- // eslint-disable-next-line react/no-array-index-key
4528
- jsx(View, {
4529
- children: sticker
4530
- }, index)
4531
- );
4532
- })
4533
- }) : null, /*#__PURE__*/jsx(Typography.Text, {
4534
- base: "heading-m",
4535
- children: title
4536
- })]
4537
- }) : null]
4538
- });
4539
- }
4540
- function CloseButton(props) {
4541
- return /*#__PURE__*/jsx(IconButton, _objectSpread({
4542
- icon: /*#__PURE__*/jsx(XRegularIcon, {})
4543
- }, props));
4544
- }
4545
- function BackButton(props) {
4546
- return /*#__PURE__*/jsx(IconButton, _objectSpread({
4547
- icon: /*#__PURE__*/jsx(ArrowLeftRegularIcon, {})
4548
- }, props));
4549
- }
4550
- TopNavBar.CloseButton = CloseButton;
4551
- TopNavBar.BackButton = BackButton;
4552
-
4553
- function CardModalHeader(props) {
4554
- return /*#__PURE__*/jsx(TopNavBar, _objectSpread({}, props));
4473
+ }) : null, children]
4474
+ }), right ? /*#__PURE__*/jsx(View, {
4475
+ width: "kitt.iconButton.width",
4476
+ children: right
4477
+ }) : null]
4478
+ })
4479
+ }));
4555
4480
  }
4556
4481
 
4557
- var _excluded$F = ["backgroundColor", "maxWidth", "withoutShadow", "children", "header", "body", "footer"];
4482
+ var _excluded$G = ["backgroundColor", "maxWidth", "withoutShadow", "children", "header", "body", "footer"];
4558
4483
  function CardModal(_ref) {
4559
4484
  var _ref$backgroundColor = _ref.backgroundColor,
4560
4485
  backgroundColor = _ref$backgroundColor === void 0 ? 'kitt.uiBackgroundLight' : _ref$backgroundColor,
@@ -4565,7 +4490,7 @@ function CardModal(_ref) {
4565
4490
  header = _ref.header,
4566
4491
  body = _ref.body,
4567
4492
  footer = _ref.footer,
4568
- props = _objectWithoutProperties(_ref, _excluded$F);
4493
+ props = _objectWithoutProperties(_ref, _excluded$G);
4569
4494
  return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
4570
4495
  overflow: "hidden",
4571
4496
  backgroundColor: backgroundColor,
@@ -4675,10 +4600,10 @@ var useNativeAnimation$3 = function (_ref) {
4675
4600
  };
4676
4601
  });
4677
4602
  return {
4678
- onPressIn: function onPressIn() {
4603
+ onPressIn: function () {
4679
4604
  pressed.value = true;
4680
4605
  },
4681
- onPressOut: function onPressOut() {
4606
+ onPressOut: function () {
4682
4607
  pressed.value = false;
4683
4608
  },
4684
4609
  backgroundStyles: backgroundStyles
@@ -4741,7 +4666,7 @@ function ChoiceItem(_ref) {
4741
4666
  style: style,
4742
4667
  onBlur: onBlur,
4743
4668
  onFocus: onFocus,
4744
- onPress: function handlePress(e) {
4669
+ onPress: function (e) {
4745
4670
  if (onFocus) onFocus(e);
4746
4671
  if (onPress) onPress();
4747
4672
  handleChange();
@@ -4749,7 +4674,7 @@ function ChoiceItem(_ref) {
4749
4674
  },
4750
4675
  onPressIn: onPressIn,
4751
4676
  onPressOut: onPressOut,
4752
- children: function children(_ref2) {
4677
+ children: function (_ref2) {
4753
4678
  var isHovered = _ref2.isHovered,
4754
4679
  isPressed = _ref2.isPressed;
4755
4680
  var textColor = getCurrentTextColor$1({
@@ -4811,11 +4736,11 @@ function ChoiceItemContainer(_ref) {
4811
4736
  }));
4812
4737
  }
4813
4738
 
4814
- var _excluded$E = ["direction", "contentContainerStyle"];
4739
+ var _excluded$F = ["direction", "contentContainerStyle"];
4815
4740
  function ChoicesContainer(_ref) {
4816
4741
  var direction = _ref.direction,
4817
4742
  contentContainerStyle = _ref.contentContainerStyle,
4818
- props = _objectWithoutProperties(_ref, _excluded$E);
4743
+ props = _objectWithoutProperties(_ref, _excluded$F);
4819
4744
  if (direction === 'row') {
4820
4745
  return /*#__PURE__*/jsx(ScrollView$2, _objectSpread({
4821
4746
  horizontal: true,
@@ -4853,7 +4778,7 @@ function Choices(_ref2) {
4853
4778
  type: type,
4854
4779
  disabled: disabled,
4855
4780
  onPress: !isForm ? onPress : undefined,
4856
- onChange: isForm ? function handleChange(newValue) {
4781
+ onChange: isForm ? function (newValue) {
4857
4782
  setCurrentValue(newValue);
4858
4783
  if (onChange) onChange(newValue);
4859
4784
  } : undefined,
@@ -5009,11 +4934,11 @@ function DialogModalAnimation(_ref) {
5009
4934
  transparent: true,
5010
4935
  supportedOrientations: ['landscape', 'portrait'],
5011
4936
  visible: isModalVisible,
5012
- onShow: function onShow() {
4937
+ onShow: function () {
5013
4938
  if (onEnter) onEnter();
5014
4939
  setIsContentVisible(true);
5015
4940
  },
5016
- onDismiss: function onDismiss() {
4941
+ onDismiss: function () {
5017
4942
  if (onExited) onExited();
5018
4943
  },
5019
4944
  children: /*#__PURE__*/jsxs(View, {
@@ -5041,13 +4966,13 @@ function DialogModalAnimation(_ref) {
5041
4966
  });
5042
4967
  }
5043
4968
 
5044
- var _excluded$D = ["children", "visible", "onClose", "onExited"];
4969
+ var _excluded$E = ["children", "visible", "onClose", "onExited"];
5045
4970
  function DialogModalBehaviour(_ref) {
5046
4971
  var children = _ref.children,
5047
4972
  visible = _ref.visible,
5048
4973
  onClose = _ref.onClose,
5049
4974
  onExited = _ref.onExited,
5050
- props = _objectWithoutProperties(_ref, _excluded$D);
4975
+ props = _objectWithoutProperties(_ref, _excluded$E);
5051
4976
  var _useState = useState(visible),
5052
4977
  _useState2 = _slicedToArray(_useState, 2),
5053
4978
  isModalBehaviourVisible = _useState2[0],
@@ -5067,7 +4992,7 @@ function DialogModalBehaviour(_ref) {
5067
4992
  },
5068
4993
  children: /*#__PURE__*/jsx(DialogModalAnimation, _objectSpread(_objectSpread({}, props), {}, {
5069
4994
  visible: visible,
5070
- onExited: function handleExitAnimationDone() {
4995
+ onExited: function () {
5071
4996
  if (onExited) onExited();
5072
4997
  setIsModalBehaviourVisible(false);
5073
4998
  },
@@ -5078,7 +5003,7 @@ function DialogModalBehaviour(_ref) {
5078
5003
  });
5079
5004
  }
5080
5005
 
5081
- var _excluded$C = ["stretch"];
5006
+ var _excluded$D = ["stretch"];
5082
5007
  function DialogModal(_ref) {
5083
5008
  var illustration = _ref.illustration,
5084
5009
  title = _ref.title,
@@ -5118,7 +5043,7 @@ DialogModal.ModalBehaviour = DialogModalBehaviour;
5118
5043
  function DialogModalButton(_ref2) {
5119
5044
  var _ref2$stretch = _ref2.stretch,
5120
5045
  stretch = _ref2$stretch === void 0 ? true : _ref2$stretch,
5121
- props = _objectWithoutProperties(_ref2, _excluded$C);
5046
+ props = _objectWithoutProperties(_ref2, _excluded$D);
5122
5047
  return /*#__PURE__*/jsx(Actions.Button, _objectSpread({
5123
5048
  stretch: stretch
5124
5049
  }, props));
@@ -5155,7 +5080,7 @@ function Emoji(_ref) {
5155
5080
  });
5156
5081
  }
5157
5082
 
5158
- var _excluded$B = ["as", "appScheme", "appValue", "onPress", "onOpenAppError"],
5083
+ var _excluded$C = ["as", "appScheme", "appValue", "onPress", "onOpenAppError"],
5159
5084
  _excluded2$4 = ["phoneNumber", "children"],
5160
5085
  _excluded3$3 = ["phoneNumber", "children"],
5161
5086
  _excluded4$3 = ["emailAddress", "children"];
@@ -5165,7 +5090,7 @@ function ExternalAppLink(_ref) {
5165
5090
  appValue = _ref.appValue,
5166
5091
  onPress = _ref.onPress,
5167
5092
  onOpenAppError = _ref.onOpenAppError,
5168
- rest = _objectWithoutProperties(_ref, _excluded$B);
5093
+ rest = _objectWithoutProperties(_ref, _excluded$C);
5169
5094
  var href = "".concat(appScheme, ":").concat(appValue);
5170
5095
  var handleOnPress = /*#__PURE__*/function () {
5171
5096
  var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(e) {
@@ -5317,7 +5242,7 @@ function useOpenExternalLink(errorHandler) {
5317
5242
  }();
5318
5243
  }
5319
5244
 
5320
- var _excluded$A = ["as", "href", "openLinkBehavior", "onPress", "onOpenLinkError"];
5245
+ var _excluded$B = ["as", "href", "openLinkBehavior", "onPress", "onOpenLinkError"];
5321
5246
  function ExternalLink(_ref) {
5322
5247
  var Component = _ref.as,
5323
5248
  href = _ref.href,
@@ -5326,11 +5251,11 @@ function ExternalLink(_ref) {
5326
5251
  onPress = _ref.onPress,
5327
5252
  _ref$onOpenLinkError = _ref.onOpenLinkError,
5328
5253
  onOpenLinkError = _ref$onOpenLinkError === void 0 ? console.error : _ref$onOpenLinkError,
5329
- rest = _objectWithoutProperties(_ref, _excluded$A);
5254
+ rest = _objectWithoutProperties(_ref, _excluded$B);
5330
5255
  var openExternalLink = useOpenExternalLink();
5331
5256
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
5332
5257
  return /*#__PURE__*/jsx(Component, _objectSpread(_objectSpread({}, rest), {}, {
5333
- onPress: function handleOnPress(e) {
5258
+ onPress: function (e) {
5334
5259
  if (onPress) {
5335
5260
  onPress(e);
5336
5261
  if (e.defaultPrevented) return;
@@ -5383,7 +5308,7 @@ function InputTextContainer(_ref) {
5383
5308
  });
5384
5309
  }
5385
5310
 
5386
- var _excluded$z = ["id", "right", "state", "variant", "internalForceState", "disabled", "autoCorrect", "textContentType", "autoComplete", "inputMode", "multiline", "height", "onSubmitEditing"];
5311
+ var _excluded$A = ["id", "right", "state", "variant", "internalForceState", "disabled", "autoCorrect", "textContentType", "autoComplete", "inputMode", "multiline", "height", "onSubmitEditing"];
5387
5312
  var InputText = /*#__PURE__*/forwardRef(function (_ref, ref) {
5388
5313
  var id = _ref.id,
5389
5314
  right = _ref.right;
@@ -5404,7 +5329,7 @@ var InputText = /*#__PURE__*/forwardRef(function (_ref, ref) {
5404
5329
  multiline = _ref.multiline,
5405
5330
  height = _ref.height,
5406
5331
  onSubmitEditing = _ref.onSubmitEditing,
5407
- props = _objectWithoutProperties(_ref, _excluded$z);
5332
+ props = _objectWithoutProperties(_ref, _excluded$A);
5408
5333
  var theme = useTheme();
5409
5334
  var fontSizeForNativeBase = createNativeBaseFontSize({
5410
5335
  base: 'body-m'
@@ -5529,12 +5454,12 @@ function AutocompleteItemsListContainer(_ref) {
5529
5454
  });
5530
5455
  }
5531
5456
 
5532
- var _excluded$y = ["children", "testID"];
5457
+ var _excluded$z = ["children", "testID"];
5533
5458
  function AutocompleteOption(_ref) {
5534
5459
  var children = _ref.children,
5535
5460
  _ref$testID = _ref.testID,
5536
5461
  testID = _ref$testID === void 0 ? 'kitt.Autocomplete.option' : _ref$testID,
5537
- props = _objectWithoutProperties(_ref, _excluded$y);
5462
+ props = _objectWithoutProperties(_ref, _excluded$z);
5538
5463
  return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({
5539
5464
  paddingX: {
5540
5465
  base: 'kitt.2',
@@ -5547,21 +5472,21 @@ function AutocompleteOption(_ref) {
5547
5472
  }));
5548
5473
  }
5549
5474
 
5550
- var _excluded$x = ["children", "name", "disabled", "placeholder", "isInitialOpen", "initialValue", "containerProps", "filterItemBasedOnCurrentInputValue", "checkSelectedItem", "itemToString", "right", "onChange", "onFocus", "onBlur", "onInputChange", "onSelectItem", "onOuterPress", "errorElement", "emptyResultsElement", "inputTestID", "listContainerTestID", "zIndex", "maxItemContainerHeight"],
5475
+ var _excluded$y = ["children", "name", "disabled", "placeholder", "isInitialOpen", "initialValue", "containerProps", "filterItemBasedOnCurrentInputValue", "checkSelectedItem", "itemToString", "right", "onChange", "onFocus", "onBlur", "onInputChange", "onSelectItem", "onOuterPress", "errorElement", "emptyResultsElement", "inputTestID", "listContainerTestID", "zIndex", "maxItemContainerHeight"],
5551
5476
  _excluded2$3 = ["onClick", "onPress"],
5552
5477
  _excluded3$2 = ["onKeyDown", "onFocus", "onBlur", "onChange"],
5553
5478
  _excluded4$2 = ["onClick", "onPress", "role", "aria-selected"];
5554
5479
  function patchNativeEvent(event) {
5555
5480
  return event || {
5556
5481
  preventDownshiftDefault: false,
5557
- preventDefault: function preventDefault() {}
5482
+ preventDefault: function () {}
5558
5483
  };
5559
5484
  }
5560
5485
  function isReactElement(element) {
5561
5486
  return _typeof(element) === 'object' && element !== null && 'type' in element && 'props' in element;
5562
5487
  }
5563
5488
  function Autocomplete(_ref) {
5564
- var _children = _ref.children,
5489
+ var children = _ref.children,
5565
5490
  name = _ref.name,
5566
5491
  disabled = _ref.disabled,
5567
5492
  placeholder = _ref.placeholder,
@@ -5587,8 +5512,8 @@ function Autocomplete(_ref) {
5587
5512
  _ref$zIndex = _ref.zIndex,
5588
5513
  zIndex = _ref$zIndex === void 0 ? 1000 : _ref$zIndex,
5589
5514
  maxItemContainerHeight = _ref.maxItemContainerHeight,
5590
- props = _objectWithoutProperties(_ref, _excluded$x);
5591
- var childrenArray = Children.toArray(_children);
5515
+ props = _objectWithoutProperties(_ref, _excluded$y);
5516
+ var childrenArray = Children.toArray(children);
5592
5517
  var items = childrenArray.filter(isReactElement).map(function (child) {
5593
5518
  return {
5594
5519
  child: child,
@@ -5599,12 +5524,12 @@ function Autocomplete(_ref) {
5599
5524
  defaultIsOpen: isInitialOpen,
5600
5525
  initialSelectedItem: initialValue,
5601
5526
  initialInputValue: initialValue ? itemToString(initialValue) : undefined,
5602
- itemToString: function handleItemToString(item) {
5527
+ itemToString: function (item) {
5603
5528
  // Prevents returning null values
5604
5529
  if (!itemToString) return '';
5605
5530
  return itemToString(item || undefined);
5606
5531
  },
5607
- stateReducer: function stateReducer(state, changes) {
5532
+ stateReducer: function (state, changes) {
5608
5533
  switch (changes.type) {
5609
5534
  case Downshift.stateChangeTypes.changeInput:
5610
5535
  return _objectSpread(_objectSpread({}, changes), {}, {
@@ -5614,7 +5539,7 @@ function Autocomplete(_ref) {
5614
5539
  return changes;
5615
5540
  }
5616
5541
  },
5617
- onChange: function onChange(selectedItem, stateAndHelpers) {
5542
+ onChange: function (selectedItem, stateAndHelpers) {
5618
5543
  if (_onChange) {
5619
5544
  _onChange(selectedItem, stateAndHelpers);
5620
5545
  }
@@ -5622,7 +5547,7 @@ function Autocomplete(_ref) {
5622
5547
  onSelect: onSelectItem,
5623
5548
  onOuterClick: onOuterPress,
5624
5549
  onInputValueChange: onInputChange,
5625
- children: function children(_ref2) {
5550
+ children: function (_ref2) {
5626
5551
  var getRootProps = _ref2.getRootProps,
5627
5552
  getInputProps = _ref2.getInputProps,
5628
5553
  getMenuProps = _ref2.getMenuProps,
@@ -5674,7 +5599,7 @@ function Autocomplete(_ref) {
5674
5599
  right: right || (canDisplayCollapseButton ? /*#__PURE__*/jsx(InputPressable, _objectSpread(_objectSpread({}, toggleProps), {}, {
5675
5600
  testID: "kitt.Autocomplete.listToggle",
5676
5601
  hitSlop: 40,
5677
- onPress: function handleTogglePress(e) {
5602
+ onPress: function (e) {
5678
5603
  if (Platform.OS === 'web') {
5679
5604
  onClickToggle(e);
5680
5605
  return;
@@ -5685,13 +5610,13 @@ function Autocomplete(_ref) {
5685
5610
  icon: isCurrentlyOpen ? /*#__PURE__*/jsx(CaretUpFillIcon, {}) : /*#__PURE__*/jsx(CaretDownFillIcon, {})
5686
5611
  })
5687
5612
  })) : null),
5688
- onFocus: function onFocus(e) {
5613
+ onFocus: function (e) {
5689
5614
  openMenu();
5690
5615
  /** @ts-expect-error onFocus wants web events */
5691
5616
  if (Platform.OS !== 'android' && onSearchInputFocus) onSearchInputFocus(e);
5692
5617
  if (_onFocus) _onFocus(e);
5693
5618
  },
5694
- onBlur: function onBlur(e) {
5619
+ onBlur: function (e) {
5695
5620
  /** @ts-expect-error onBlur wants web events */
5696
5621
  if (Platform.OS === 'web' && onSearchInputBlur) onSearchInputBlur(e);
5697
5622
 
@@ -5727,14 +5652,14 @@ function Autocomplete(_ref) {
5727
5652
  selected: ariaSelected
5728
5653
  },
5729
5654
  disabled: disabled,
5730
- onPress: function onPress(e) {
5655
+ onPress: function (e) {
5731
5656
  if (Platform.OS === 'web') {
5732
5657
  if (onClick) onClick(e);
5733
5658
  return;
5734
5659
  }
5735
5660
  if (_onPress) _onPress(patchNativeEvent(e));
5736
5661
  },
5737
- children: function children(_ref5) {
5662
+ children: function (_ref5) {
5738
5663
  var isHovered = _ref5.isHovered,
5739
5664
  isFocused = _ref5.isFocused,
5740
5665
  isPressed = _ref5.isPressed;
@@ -5802,7 +5727,7 @@ function getBorderColor$1(_ref) {
5802
5727
  return 'kitt.forms.checkbox.default.borderColor';
5803
5728
  }
5804
5729
 
5805
- var _excluded$w = ["checked", "hitSlop", "children", "disabled", "onChange", "onBlur", "onFocus"];
5730
+ var _excluded$x = ["checked", "hitSlop", "children", "disabled", "onChange", "onBlur", "onFocus"];
5806
5731
  var Checkbox = /*#__PURE__*/forwardRef(function (_ref, ref) {
5807
5732
  var checked = _ref.checked,
5808
5733
  _ref$hitSlop = _ref.hitSlop,
@@ -5812,7 +5737,7 @@ var Checkbox = /*#__PURE__*/forwardRef(function (_ref, ref) {
5812
5737
  onChange = _ref.onChange,
5813
5738
  onBlur = _ref.onBlur,
5814
5739
  onFocus = _ref.onFocus,
5815
- props = _objectWithoutProperties(_ref, _excluded$w);
5740
+ props = _objectWithoutProperties(_ref, _excluded$x);
5816
5741
  var theme = useTheme();
5817
5742
  return /*#__PURE__*/jsx(Pressable, _objectSpread(_objectSpread({
5818
5743
  hitSlop: hitSlop
@@ -5824,12 +5749,12 @@ var Checkbox = /*#__PURE__*/forwardRef(function (_ref, ref) {
5824
5749
  disabled: disabled
5825
5750
  },
5826
5751
  disabled: disabled,
5827
- onPress: function handlePress(e) {
5752
+ onPress: function (e) {
5828
5753
  if (onFocus) onFocus();
5829
5754
  if (onChange) onChange(!checked, e);
5830
5755
  if (onBlur) onBlur();
5831
5756
  },
5832
- children: function children(_ref2) {
5757
+ children: function (_ref2) {
5833
5758
  var isHovered = _ref2.isHovered,
5834
5759
  isPressed = _ref2.isPressed,
5835
5760
  isFocused = _ref2.isFocused;
@@ -6130,7 +6055,7 @@ function PartContainer(_ref) {
6130
6055
  });
6131
6056
  }
6132
6057
 
6133
- var _excluded$v = ["id", "value", "testID", "stretch", "placeholder", "minDate", "maxDate", "disabled", "isFocusedInternal", "isHoveredInternal", "isPressedInternal", "enterKeyHint", "onChange", "onBlur", "onFocus", "onSubmitEditing"];
6058
+ var _excluded$w = ["id", "value", "testID", "stretch", "placeholder", "minDate", "maxDate", "disabled", "isFocusedInternal", "isHoveredInternal", "isPressedInternal", "enterKeyHint", "onChange", "onBlur", "onFocus", "onSubmitEditing"];
6134
6059
  var KeyboardDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
6135
6060
  var id = _ref.id,
6136
6061
  value = _ref.value,
@@ -6148,7 +6073,7 @@ var KeyboardDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
6148
6073
  onBlur = _ref.onBlur,
6149
6074
  onFocus = _ref.onFocus,
6150
6075
  onSubmitEditing = _ref.onSubmitEditing;
6151
- _objectWithoutProperties(_ref, _excluded$v);
6076
+ _objectWithoutProperties(_ref, _excluded$w);
6152
6077
  var monthRef = useRef(null);
6153
6078
  var yearRef = useRef(null);
6154
6079
  var defaultValue = value;
@@ -6357,7 +6282,7 @@ var PressableDateInputs = /*#__PURE__*/forwardRef(function (_ref, ref) {
6357
6282
  });
6358
6283
  });
6359
6284
 
6360
- var _excluded$u = ["onBlur", "onFocus", "pickerDefaultDate", "pickerUITestID", "isDefaultVisible", "value", "onChange"];
6285
+ var _excluded$v = ["onBlur", "onFocus", "pickerDefaultDate", "pickerUITestID", "isDefaultVisible", "value", "onChange"];
6361
6286
  var DatePickerAndroid = /*#__PURE__*/forwardRef(function (_ref, ref) {
6362
6287
  var onBlur = _ref.onBlur,
6363
6288
  onFocus = _ref.onFocus,
@@ -6366,7 +6291,7 @@ var DatePickerAndroid = /*#__PURE__*/forwardRef(function (_ref, ref) {
6366
6291
  isDefaultVisible = _ref.isDefaultVisible,
6367
6292
  value = _ref.value,
6368
6293
  _onChange = _ref.onChange,
6369
- props = _objectWithoutProperties(_ref, _excluded$u);
6294
+ props = _objectWithoutProperties(_ref, _excluded$v);
6370
6295
  var _useState = useState(false),
6371
6296
  _useState2 = _slicedToArray(_useState, 2),
6372
6297
  isFocused = _useState2[0],
@@ -6384,7 +6309,7 @@ var DatePickerAndroid = /*#__PURE__*/forwardRef(function (_ref, ref) {
6384
6309
  DateTimePickerAndroid.open({
6385
6310
  testID: pickerUITestID,
6386
6311
  value: currentValue || pickerDefaultDate || new Date(Date.now()),
6387
- onChange: function onChange(e) {
6312
+ onChange: function (e) {
6388
6313
  setIsFocused(false);
6389
6314
  var timestamp = e.nativeEvent.timestamp;
6390
6315
  if (timestamp) {
@@ -6436,17 +6361,21 @@ function PlatformDateTimePicker(_ref) {
6436
6361
  minimumDate: minimuDate,
6437
6362
  display: displayMode
6438
6363
  }, iosProps), {}, {
6439
- onChange: function onChange(_event, date) {
6364
+ onChange: function (_event, date) {
6440
6365
  return _onChange(date);
6441
6366
  }
6442
6367
  }));
6443
6368
  }
6444
6369
 
6445
- var _excluded$t = ["title", "isVisible", "value", "validateButtonLabel", "onClose", "onChange"];
6370
+ var _excluded$u = ["title", "isVisible", "value", "validateButtonLabel", "onClose", "onChange"];
6446
6371
  function ModalTitle(_ref) {
6447
6372
  var children = _ref.children;
6448
6373
  return /*#__PURE__*/jsx(CardModal.Header, {
6449
- title: children
6374
+ children: /*#__PURE__*/jsx(Typography.Text, {
6375
+ base: "body-m",
6376
+ variant: "bold",
6377
+ children: children
6378
+ })
6450
6379
  });
6451
6380
  }
6452
6381
  function ModalPlatformDateTimePicker(_ref2) {
@@ -6456,7 +6385,7 @@ function ModalPlatformDateTimePicker(_ref2) {
6456
6385
  validateButtonLabel = _ref2.validateButtonLabel,
6457
6386
  onClose = _ref2.onClose,
6458
6387
  onChange = _ref2.onChange,
6459
- props = _objectWithoutProperties(_ref2, _excluded$t);
6388
+ props = _objectWithoutProperties(_ref2, _excluded$u);
6460
6389
  var _useState = useState(value),
6461
6390
  _useState2 = _slicedToArray(_useState, 2),
6462
6391
  currentValue = _useState2[0],
@@ -6466,7 +6395,7 @@ function ModalPlatformDateTimePicker(_ref2) {
6466
6395
 
6467
6396
  return /*#__PURE__*/jsx(CardModal.ModalBehaviour, {
6468
6397
  visible: Boolean(isVisible),
6469
- onClose: function handleClose() {
6398
+ onClose: function () {
6470
6399
  setCurrentValue(value);
6471
6400
  onClose();
6472
6401
  },
@@ -6477,7 +6406,7 @@ function ModalPlatformDateTimePicker(_ref2) {
6477
6406
  }) : null, /*#__PURE__*/jsx(CardModal.Body, {
6478
6407
  children: /*#__PURE__*/jsx(PlatformDateTimePicker, _objectSpread(_objectSpread({}, props), {}, {
6479
6408
  value: currentValue,
6480
- onChange: function handleChange(newDate) {
6409
+ onChange: function (newDate) {
6481
6410
  setCurrentValue(function (prev) {
6482
6411
  return newDate || prev;
6483
6412
  });
@@ -6487,7 +6416,7 @@ function ModalPlatformDateTimePicker(_ref2) {
6487
6416
  children: /*#__PURE__*/jsx(Button, {
6488
6417
  stretch: true,
6489
6418
  type: "primary",
6490
- onPress: function handleSubmit() {
6419
+ onPress: function () {
6491
6420
  onChange(currentValue);
6492
6421
  },
6493
6422
  children: validateButtonLabel ? /*#__PURE__*/jsx(Text$1, {
@@ -6502,7 +6431,7 @@ function ModalPlatformDateTimePicker(_ref2) {
6502
6431
  });
6503
6432
  }
6504
6433
 
6505
- var _excluded$s = ["value", "pickerUITestID", "pickerUITitle", "pickerUIValidateButtonLabel", "isDefaultVisible", "pickerDefaultDate", "isFocusedInternal", "isHoveredInternal", "isPressedInternal", "onChange", "onFocus", "onBlur"];
6434
+ var _excluded$t = ["value", "pickerUITestID", "pickerUITitle", "pickerUIValidateButtonLabel", "isDefaultVisible", "pickerDefaultDate", "isFocusedInternal", "isHoveredInternal", "isPressedInternal", "onChange", "onFocus", "onBlur"];
6506
6435
  var DefaultNativeUIDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
6507
6436
  var value = _ref.value,
6508
6437
  pickerUITestID = _ref.pickerUITestID,
@@ -6516,7 +6445,7 @@ var DefaultNativeUIDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
6516
6445
  onChange = _ref.onChange,
6517
6446
  onFocus = _ref.onFocus,
6518
6447
  onBlur = _ref.onBlur,
6519
- props = _objectWithoutProperties(_ref, _excluded$s);
6448
+ props = _objectWithoutProperties(_ref, _excluded$t);
6520
6449
  var _useState = useState(isDefaultVisible),
6521
6450
  _useState2 = _slicedToArray(_useState, 2),
6522
6451
  isPickerUIVisible = _useState2[0],
@@ -6541,7 +6470,7 @@ var DefaultNativeUIDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
6541
6470
  isFocusedInternal: isFocused || isFocusedInternal,
6542
6471
  isHoveredInternal: isHoveredInternal,
6543
6472
  isPressedInternal: isPressedInternal,
6544
- onPress: function handleModalOpen() {
6473
+ onPress: function () {
6545
6474
  if (onFocus) onFocus();
6546
6475
  setIsPickerUIVisible(true);
6547
6476
  setIsFocused(true);
@@ -6554,7 +6483,7 @@ var DefaultNativeUIDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
6554
6483
  validateButtonLabel: pickerUIValidateButtonLabel,
6555
6484
  defaultDate: pickerDefaultDate,
6556
6485
  onClose: handleModalClose,
6557
- onChange: function handleChange(newDate) {
6486
+ onChange: function (newDate) {
6558
6487
  setCurrentValue(newDate);
6559
6488
  onChange(newDate);
6560
6489
  handleModalClose();
@@ -6563,7 +6492,7 @@ var DefaultNativeUIDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
6563
6492
  });
6564
6493
  });
6565
6494
 
6566
- var _excluded$r = ["value", "pickerUITestID", "isDefaultVisible", "pickerDefaultDate", "onChange", "onBlur"];
6495
+ var _excluded$s = ["value", "pickerUITestID", "isDefaultVisible", "pickerDefaultDate", "onChange", "onBlur"];
6567
6496
  var NativeUIDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
6568
6497
  var value = _ref.value,
6569
6498
  pickerUITestID = _ref.pickerUITestID,
@@ -6571,7 +6500,7 @@ var NativeUIDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
6571
6500
  pickerDefaultDate = _ref.pickerDefaultDate,
6572
6501
  onChange = _ref.onChange,
6573
6502
  onBlur = _ref.onBlur,
6574
- props = _objectWithoutProperties(_ref, _excluded$r);
6503
+ props = _objectWithoutProperties(_ref, _excluded$s);
6575
6504
  if (Platform.OS === 'android') {
6576
6505
  return /*#__PURE__*/jsx(DatePickerAndroid, _objectSpread({
6577
6506
  ref: ref,
@@ -6593,14 +6522,14 @@ var NativeUIDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
6593
6522
  }, props));
6594
6523
  });
6595
6524
 
6596
- var _excluded$q = ["fillMode", "enterKeyHint", "value", "onSubmitEditing"];
6525
+ var _excluded$r = ["fillMode", "enterKeyHint", "value", "onSubmitEditing"];
6597
6526
  var DatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
6598
6527
  var _ref$fillMode = _ref.fillMode,
6599
6528
  fillMode = _ref$fillMode === void 0 ? 'native' : _ref$fillMode,
6600
6529
  enterKeyHint = _ref.enterKeyHint,
6601
6530
  value = _ref.value,
6602
6531
  onSubmitEditing = _ref.onSubmitEditing,
6603
- props = _objectWithoutProperties(_ref, _excluded$q);
6532
+ props = _objectWithoutProperties(_ref, _excluded$r);
6604
6533
  // in apps, final-form can give a string value that will break the component
6605
6534
  var currentValue = value || undefined;
6606
6535
  if (fillMode === 'keyboard') {
@@ -6716,10 +6645,10 @@ function ImagePicker(_ref) {
6716
6645
  });
6717
6646
  }
6718
6647
 
6719
- var _excluded$p = ["children"];
6648
+ var _excluded$q = ["children"];
6720
6649
  function ListItemContent(_ref) {
6721
6650
  var children = _ref.children,
6722
- rest = _objectWithoutProperties(_ref, _excluded$p);
6651
+ rest = _objectWithoutProperties(_ref, _excluded$q);
6723
6652
  return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({
6724
6653
  alignSelf: "center",
6725
6654
  flexBasis: "0%",
@@ -6730,14 +6659,14 @@ function ListItemContent(_ref) {
6730
6659
  }));
6731
6660
  }
6732
6661
 
6733
- var _excluded$o = ["children", "side"],
6662
+ var _excluded$p = ["children", "side"],
6734
6663
  _excluded2$2 = ["children", "align"];
6735
6664
  // Handles the vertical alignment of the side elements of the list item
6736
6665
  function ListItemSideContainer(_ref) {
6737
6666
  var children = _ref.children,
6738
6667
  _ref$side = _ref.side,
6739
6668
  side = _ref$side === void 0 ? 'left' : _ref$side,
6740
- rest = _objectWithoutProperties(_ref, _excluded$o);
6669
+ rest = _objectWithoutProperties(_ref, _excluded$p);
6741
6670
  return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({
6742
6671
  flexDirection: "row",
6743
6672
  marginLeft: side === 'right' ? 'kitt.2' : undefined,
@@ -6758,7 +6687,7 @@ function ListItemSideContent(_ref2) {
6758
6687
  }));
6759
6688
  }
6760
6689
 
6761
- var _excluded$n = ["children", "withPadding", "borders", "left", "right", "onPress"];
6690
+ var _excluded$o = ["children", "withPadding", "borders", "left", "right", "onPress"];
6762
6691
  function ListItem(_ref) {
6763
6692
  var children = _ref.children,
6764
6693
  withPadding = _ref.withPadding,
@@ -6766,7 +6695,7 @@ function ListItem(_ref) {
6766
6695
  left = _ref.left,
6767
6696
  right = _ref.right,
6768
6697
  onPress = _ref.onPress,
6769
- rest = _objectWithoutProperties(_ref, _excluded$n);
6698
+ rest = _objectWithoutProperties(_ref, _excluded$o);
6770
6699
  var Wrapper = onPress ? Pressable$2 : Fragment$1;
6771
6700
  var wrapperProps = onPress ? _objectSpread({
6772
6701
  accessibilityRole: 'button',
@@ -6799,10 +6728,10 @@ ListItem.Content = ListItemContent;
6799
6728
  ListItem.SideContent = ListItemSideContent;
6800
6729
  ListItem.SideContainer = ListItemSideContainer;
6801
6730
 
6802
- var _excluded$m = ["title"];
6731
+ var _excluded$n = ["title"];
6803
6732
  function BottomSheetActionsItem(_ref) {
6804
6733
  var title = _ref.title,
6805
- props = _objectWithoutProperties(_ref, _excluded$m);
6734
+ props = _objectWithoutProperties(_ref, _excluded$n);
6806
6735
  return /*#__PURE__*/jsx(Pressable$2, _objectSpread(_objectSpread({}, props), {}, {
6807
6736
  children: /*#__PURE__*/jsx(ListItem, {
6808
6737
  withPadding: true,
@@ -6870,7 +6799,7 @@ function FilePicker(_ref) {
6870
6799
  return /*#__PURE__*/jsxs(Fragment, {
6871
6800
  children: [/*#__PURE__*/cloneElement(childElement, {
6872
6801
  // ensure that the press event is not prevented by Button component
6873
- onPress: function onPress() {
6802
+ onPress: function () {
6874
6803
  var _childElement$props$o, _childElement$props, _bottomSheetRef$curre;
6875
6804
  if (disabled) return;
6876
6805
  (_childElement$props$o = (_childElement$props = childElement.props).onPress) === null || _childElement$props$o === void 0 || _childElement$props$o.call(_childElement$props);
@@ -7171,10 +7100,10 @@ var GoogleMapsAutocompleteContext = /*#__PURE__*/createContext({
7171
7100
  isLoadingResultDetails: false,
7172
7101
  shouldDisplayEmptyStateWhenNoResults: false
7173
7102
  },
7174
- onInputChange: function onInputChange() {
7103
+ onInputChange: function () {
7175
7104
  return Promise.resolve();
7176
7105
  },
7177
- onSelectItem: function onSelectItem() {}
7106
+ onSelectItem: function () {}
7178
7107
  });
7179
7108
  function GoogleMapsAutocompleteProvider(_ref) {
7180
7109
  var children = _ref.children,
@@ -7406,7 +7335,7 @@ function formatInitialValueToAutocompletePrediction(address, placeId) {
7406
7335
  };
7407
7336
  }
7408
7337
 
7409
- var _excluded$l = ["initialValue", "itemToString", "errorElement", "emptyResultsElement", "onChange"];
7338
+ var _excluded$m = ["initialValue", "itemToString", "errorElement", "emptyResultsElement", "onChange"];
7410
7339
  function InputAddress(_ref) {
7411
7340
  var initialValue = _ref.initialValue,
7412
7341
  _ref$itemToString = _ref.itemToString,
@@ -7414,7 +7343,7 @@ function InputAddress(_ref) {
7414
7343
  errorElement = _ref.errorElement,
7415
7344
  emptyResultsElement = _ref.emptyResultsElement,
7416
7345
  _onChange = _ref.onChange,
7417
- props = _objectWithoutProperties(_ref, _excluded$l);
7346
+ props = _objectWithoutProperties(_ref, _excluded$m);
7418
7347
  var _useGoogleMapsAutocom = useGoogleMapsAutocomplete(),
7419
7348
  state = _useGoogleMapsAutocom.state,
7420
7349
  _onInputChange = _useGoogleMapsAutocom.onInputChange,
@@ -7425,7 +7354,7 @@ function InputAddress(_ref) {
7425
7354
  return /*#__PURE__*/jsx(Autocomplete, _objectSpread(_objectSpread({}, props), {}, {
7426
7355
  itemToString: itemToString,
7427
7356
  initialValue: formattedInitialValue,
7428
- checkSelectedItem: function checkSelectedItem(selectedItem, item) {
7357
+ checkSelectedItem: function (selectedItem, item) {
7429
7358
  return (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.place_id) === item.place_id;
7430
7359
  },
7431
7360
  right: state.isLoadingSearch || state.isLoadingResultDetails ? /*#__PURE__*/jsx(Icon, {
@@ -7434,10 +7363,10 @@ function InputAddress(_ref) {
7434
7363
  }) : undefined,
7435
7364
  errorElement: state.hasSearchError || state.hasSelectResultError ? errorElement : null,
7436
7365
  emptyResultsElement: state.items.length === 0 ? emptyResultsElement : null,
7437
- onInputChange: function onInputChange(v) {
7366
+ onInputChange: function (v) {
7438
7367
  _onInputChange(v);
7439
7368
  },
7440
- onChange: function onChange(v) {
7369
+ onChange: function (v) {
7441
7370
  onSelectItem(v, _onChange);
7442
7371
  },
7443
7372
  children: state.items.map(function (item) {
@@ -7511,15 +7440,15 @@ var InputIban = /*#__PURE__*/forwardRef(function (props, ref) {
7511
7440
  }, props));
7512
7441
  });
7513
7442
 
7514
- var _excluded$k = ["onChange"];
7443
+ var _excluded$l = ["onChange"];
7515
7444
  var InputNumber = /*#__PURE__*/forwardRef(function (_ref, ref) {
7516
7445
  var onChange = _ref.onChange,
7517
- props = _objectWithoutProperties(_ref, _excluded$k);
7446
+ props = _objectWithoutProperties(_ref, _excluded$l);
7518
7447
  return /*#__PURE__*/jsx(InputText, _objectSpread(_objectSpread({
7519
7448
  ref: ref
7520
7449
  }, props), {}, {
7521
7450
  inputMode: "numeric",
7522
- onChange: function handleChange(event) {
7451
+ onChange: function (event) {
7523
7452
  if (!onChange) return;
7524
7453
  var value = parseFloat(event.nativeEvent.text);
7525
7454
 
@@ -7531,11 +7460,11 @@ var InputNumber = /*#__PURE__*/forwardRef(function (_ref, ref) {
7531
7460
  }));
7532
7461
  });
7533
7462
 
7534
- var _excluded$j = ["isPasswordDefaultVisible", "right"];
7463
+ var _excluded$k = ["isPasswordDefaultVisible", "right"];
7535
7464
  var InputPassword = /*#__PURE__*/forwardRef(function (_ref, ref) {
7536
7465
  var isPasswordDefaultVisible = _ref.isPasswordDefaultVisible,
7537
7466
  right = _ref.right,
7538
- props = _objectWithoutProperties(_ref, _excluded$j);
7467
+ props = _objectWithoutProperties(_ref, _excluded$k);
7539
7468
  var _useState = useState(Boolean(isPasswordDefaultVisible)),
7540
7469
  _useState2 = _slicedToArray(_useState, 2),
7541
7470
  isVisible = _useState2[0],
@@ -7551,7 +7480,7 @@ var InputPassword = /*#__PURE__*/forwardRef(function (_ref, ref) {
7551
7480
  testID: "kitt.InputPassword.passwordToggle",
7552
7481
  hitSlop: 20,
7553
7482
  accessibilityRole: "button",
7554
- onPress: function onPress() {
7483
+ onPress: function () {
7555
7484
  return setIsVisible(function (prev) {
7556
7485
  return !prev;
7557
7486
  });
@@ -7563,7 +7492,7 @@ var InputPassword = /*#__PURE__*/forwardRef(function (_ref, ref) {
7563
7492
  }));
7564
7493
  });
7565
7494
 
7566
- var _excluded$i = ["enterKeyHint", "autoComplete", "phoneNumberLength", "onChange"];
7495
+ var _excluded$j = ["enterKeyHint", "autoComplete", "phoneNumberLength", "onChange"];
7567
7496
  function isPhoneNumberValid(number) {
7568
7497
  return isValidNumber(number);
7569
7498
  }
@@ -7577,7 +7506,7 @@ var InputPhone = /*#__PURE__*/forwardRef(function (_ref, ref) {
7577
7506
  _ref$phoneNumberLengt = _ref.phoneNumberLength,
7578
7507
  phoneNumberLength = _ref$phoneNumberLengt === void 0 ? 10 : _ref$phoneNumberLengt,
7579
7508
  onChange = _ref.onChange,
7580
- props = _objectWithoutProperties(_ref, _excluded$i);
7509
+ props = _objectWithoutProperties(_ref, _excluded$j);
7581
7510
  var currentEnterKeyHint = enterKeyHint ? getEnterKeyHintForNumericInput(enterKeyHint) : undefined;
7582
7511
  return /*#__PURE__*/jsx(InputText, _objectSpread(_objectSpread({
7583
7512
  ref: ref
@@ -7586,7 +7515,7 @@ var InputPhone = /*#__PURE__*/forwardRef(function (_ref, ref) {
7586
7515
  enterKeyHint: currentEnterKeyHint,
7587
7516
  autoComplete: autoComplete,
7588
7517
  textContentType: "telephoneNumber",
7589
- onChange: function handleChange(event) {
7518
+ onChange: function (event) {
7590
7519
  var number = parseNumber(event.nativeEvent.text);
7591
7520
 
7592
7521
  // When intl phone number is valid :
@@ -7779,14 +7708,14 @@ function Radio(_ref, ref) {
7779
7708
  focusable: checked && !disabled,
7780
7709
  flexDirection: "row",
7781
7710
  alignItems: "center",
7782
- onPress: function handlePress(event) {
7711
+ onPress: function (event) {
7783
7712
  if (onFocus) onFocus();
7784
7713
  if (onChange) onChange(value, event);
7785
7714
  if (onBlur) onBlur();
7786
7715
  },
7787
7716
  onFocus: onFocus,
7788
7717
  onBlur: onBlur,
7789
- children: function children(_ref2) {
7718
+ children: function (_ref2) {
7790
7719
  var isHovered = _ref2.isHovered,
7791
7720
  isPressed = _ref2.isPressed,
7792
7721
  isFocused = _ref2.isFocused;
@@ -7905,11 +7834,11 @@ var useNativeAnimation$2 = function (_ref) {
7905
7834
  };
7906
7835
  });
7907
7836
  return {
7908
- onPressIn: function handlePressIn() {
7837
+ onPressIn: function () {
7909
7838
  color.value = withSpring(1);
7910
7839
  pressed.value = 1;
7911
7840
  },
7912
- onPressOut: function handlePressOut() {
7841
+ onPressOut: function () {
7913
7842
  color.value = withSpring(0);
7914
7843
  pressed.value = 0;
7915
7844
  },
@@ -7962,7 +7891,7 @@ function RadioButton(_ref) {
7962
7891
  flexShrink: createResponsiveStyleFromProp(stretch, 1, undefined),
7963
7892
  flexBasis: createResponsiveStyleFromProp(stretch, 0),
7964
7893
  disabled: disabled,
7965
- onPress: function handlePress(e) {
7894
+ onPress: function (e) {
7966
7895
  if (onFocus) onFocus(e);
7967
7896
  if (onChange) onChange(value);
7968
7897
  if (onBlur) onBlur(e);
@@ -7971,7 +7900,7 @@ function RadioButton(_ref) {
7971
7900
  onPressOut: onPressOut,
7972
7901
  onFocus: onFocus,
7973
7902
  onBlur: onBlur,
7974
- children: function children(_ref2) {
7903
+ children: function (_ref2) {
7975
7904
  var isHovered = _ref2.isHovered,
7976
7905
  isPressed = _ref2.isPressed,
7977
7906
  isFocused = _ref2.isFocused;
@@ -8014,7 +7943,7 @@ function RadioButton(_ref) {
8014
7943
  });
8015
7944
  }
8016
7945
 
8017
- var _excluded$h = ["children", "stretch", "value", "disabled", "onFocus", "onBlur", "onChange"];
7946
+ var _excluded$i = ["children", "stretch", "value", "disabled", "onFocus", "onBlur", "onChange"];
8018
7947
  function RadioButtonGroupItem(_ref) {
8019
7948
  var props = _extends({}, (_objectDestructuringEmpty(_ref), _ref));
8020
7949
  return /*#__PURE__*/jsx(RadioButton, _objectSpread({}, props));
@@ -8027,7 +7956,7 @@ function RadioButtonGroup(_ref2) {
8027
7956
  onFocus = _ref2.onFocus,
8028
7957
  onBlur = _ref2.onBlur,
8029
7958
  onChange = _ref2.onChange,
8030
- props = _objectWithoutProperties(_ref2, _excluded$h);
7959
+ props = _objectWithoutProperties(_ref2, _excluded$i);
8031
7960
  var _useState = useState(value),
8032
7961
  _useState2 = _slicedToArray(_useState, 2),
8033
7962
  currentValue = _useState2[0],
@@ -8059,12 +7988,12 @@ function RadioButtonGroup(_ref2) {
8059
7988
  }
8060
7989
  RadioButtonGroup.RadioButton = RadioButtonGroupItem;
8061
7990
 
8062
- var _excluded$g = ["helper", "limit"];
7991
+ var _excluded$h = ["helper", "limit"];
8063
7992
  var TextArea = /*#__PURE__*/forwardRef(function (_ref, ref) {
8064
7993
  var _props$value, _props$value2;
8065
7994
  var helper = _ref.helper,
8066
7995
  limit = _ref.limit,
8067
- props = _objectWithoutProperties(_ref, _excluded$g);
7996
+ props = _objectWithoutProperties(_ref, _excluded$h);
8068
7997
  var shouldDisplayLimit = limit && limit > 0;
8069
7998
  var isLimitReached = ((_props$value = props.value) === null || _props$value === void 0 ? void 0 : _props$value.length) === limit;
8070
7999
  var limitContainerAnimatedStyle = useAnimatedStyle(function () {
@@ -8090,7 +8019,7 @@ var TextArea = /*#__PURE__*/forwardRef(function (_ref, ref) {
8090
8019
  textAlignVertical: "top",
8091
8020
  minHeight: "kitt.forms.textArea.minHeight"
8092
8021
  }, props), {}, {
8093
- onChange: function handleOnChange(e) {
8022
+ onChange: function (e) {
8094
8023
  if (!limit || e.nativeEvent.text.length <= limit) {
8095
8024
  var _props$onChange;
8096
8025
  (_props$onChange = props.onChange) === null || _props$onChange === void 0 || _props$onChange.call(props, e);
@@ -8223,7 +8152,7 @@ function ToggleAnimated(_ref) {
8223
8152
  });
8224
8153
  }
8225
8154
 
8226
- var _excluded$f = ["isDisabled", "isHoveredInternal", "isFocusedInternal", "isPressedInternal", "label", "variant", "size", "value", "onChange"];
8155
+ var _excluded$g = ["isDisabled", "isHoveredInternal", "isFocusedInternal", "isPressedInternal", "label", "variant", "size", "value", "onChange"];
8227
8156
  var getLabelTypographyType = function (size) {
8228
8157
  return size === 'medium' ? 'body-m' : 'body-l';
8229
8158
  };
@@ -8245,7 +8174,7 @@ function Toggle(_ref) {
8245
8174
  value = _ref$value === void 0 ? false : _ref$value,
8246
8175
  _ref$onChange = _ref.onChange,
8247
8176
  onChange = _ref$onChange === void 0 ? function () {} : _ref$onChange,
8248
- props = _objectWithoutProperties(_ref, _excluded$f);
8177
+ props = _objectWithoutProperties(_ref, _excluded$g);
8249
8178
  var theme = useKittTheme();
8250
8179
  return /*#__PURE__*/jsxs(HStack, _objectSpread(_objectSpread({
8251
8180
  alignItems: "center"
@@ -8253,10 +8182,10 @@ function Toggle(_ref) {
8253
8182
  children: [/*#__PURE__*/jsx(Pressable, {
8254
8183
  accessibilityRole: "togglebutton",
8255
8184
  disabled: isDisabled,
8256
- onPress: function handlePress() {
8185
+ onPress: function () {
8257
8186
  onChange(!value);
8258
8187
  },
8259
- children: function children(_ref2) {
8188
+ children: function (_ref2) {
8260
8189
  var isHovered = _ref2.isHovered,
8261
8190
  isPressed = _ref2.isPressed,
8262
8191
  isFocused = _ref2.isFocused;
@@ -8284,13 +8213,13 @@ function Toggle(_ref) {
8284
8213
  }));
8285
8214
  }
8286
8215
 
8287
- var _excluded$e = ["children", "shouldHandleBottomNotch", "style", "shouldHandleTopNotch"];
8216
+ var _excluded$f = ["children", "shouldHandleBottomNotch", "style", "shouldHandleTopNotch"];
8288
8217
  function FullscreenModalBody(_ref) {
8289
8218
  var children = _ref.children,
8290
8219
  shouldHandleBottomNotch = _ref.shouldHandleBottomNotch,
8291
8220
  style = _ref.style,
8292
8221
  shouldHandleTopNotch = _ref.shouldHandleTopNotch,
8293
- props = _objectWithoutProperties(_ref, _excluded$e);
8222
+ props = _objectWithoutProperties(_ref, _excluded$f);
8294
8223
  var _useSafeAreaInsets = useSafeAreaInsets(),
8295
8224
  bottom = _useSafeAreaInsets.bottom,
8296
8225
  top = _useSafeAreaInsets.top;
@@ -8310,14 +8239,14 @@ function FullscreenModalBody(_ref) {
8310
8239
  }));
8311
8240
  }
8312
8241
 
8313
- var _excluded$d = ["shouldHandleBottomNotch", "hasSeparator", "children"];
8242
+ var _excluded$e = ["shouldHandleBottomNotch", "hasSeparator", "children"];
8314
8243
  function FullscreenModalFooter(_ref) {
8315
8244
  var _ref$shouldHandleBott = _ref.shouldHandleBottomNotch,
8316
8245
  shouldHandleBottomNotch = _ref$shouldHandleBott === void 0 ? true : _ref$shouldHandleBott,
8317
8246
  _ref$hasSeparator = _ref.hasSeparator,
8318
8247
  hasSeparator = _ref$hasSeparator === void 0 ? true : _ref$hasSeparator,
8319
8248
  children = _ref.children,
8320
- props = _objectWithoutProperties(_ref, _excluded$d);
8249
+ props = _objectWithoutProperties(_ref, _excluded$e);
8321
8250
  var _useSafeAreaInsets = useSafeAreaInsets(),
8322
8251
  bottom = _useSafeAreaInsets.bottom;
8323
8252
  return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({
@@ -8443,11 +8372,11 @@ function FullscreenModalAnimation(_ref) {
8443
8372
  transparent: true,
8444
8373
  supportedOrientations: ['landscape', 'portrait'],
8445
8374
  visible: isModalVisible,
8446
- onShow: function onShow() {
8375
+ onShow: function () {
8447
8376
  if (onEnter) onEnter();
8448
8377
  setIsContentVisible(true);
8449
8378
  },
8450
- onDismiss: function onDismiss() {
8379
+ onDismiss: function () {
8451
8380
  if (onExited) onExited();
8452
8381
  },
8453
8382
  children: /*#__PURE__*/jsxs(View, {
@@ -8473,13 +8402,13 @@ function FullscreenModalAnimation(_ref) {
8473
8402
  });
8474
8403
  }
8475
8404
 
8476
- var _excluded$c = ["children", "visible", "onClose", "onExited"];
8405
+ var _excluded$d = ["children", "visible", "onClose", "onExited"];
8477
8406
  function FullscreenModalBehaviour(_ref) {
8478
8407
  var children = _ref.children,
8479
8408
  visible = _ref.visible,
8480
8409
  onClose = _ref.onClose,
8481
8410
  onExited = _ref.onExited,
8482
- props = _objectWithoutProperties(_ref, _excluded$c);
8411
+ props = _objectWithoutProperties(_ref, _excluded$d);
8483
8412
  var _useState = useState(visible),
8484
8413
  _useState2 = _slicedToArray(_useState, 2),
8485
8414
  isModalBehaviourVisible = _useState2[0],
@@ -8494,7 +8423,7 @@ function FullscreenModalBehaviour(_ref) {
8494
8423
  onClose: onClose,
8495
8424
  children: /*#__PURE__*/jsx(FullscreenModalAnimation, _objectSpread(_objectSpread({}, props), {}, {
8496
8425
  visible: visible,
8497
- onExited: function handleExitAnimationDone() {
8426
+ onExited: function () {
8498
8427
  if (onExited) onExited();
8499
8428
  setIsModalBehaviourVisible(false);
8500
8429
  },
@@ -8526,17 +8455,64 @@ function FullscreenModalContainer(_ref) {
8526
8455
  });
8527
8456
  }
8528
8457
 
8529
- var _excluded$b = ["shouldHandleTopNotch"];
8458
+ var _excluded$c = ["hasSeparator", "isTransparent", "title", "children", "right", "left", "shouldHandleTopNotch"];
8530
8459
  function FullscreenModalHeader(_ref) {
8531
- var _ref$shouldHandleTopN = _ref.shouldHandleTopNotch,
8460
+ var _ref$hasSeparator = _ref.hasSeparator,
8461
+ hasSeparator = _ref$hasSeparator === void 0 ? true : _ref$hasSeparator,
8462
+ isTransparent = _ref.isTransparent,
8463
+ title = _ref.title,
8464
+ children = _ref.children,
8465
+ right = _ref.right,
8466
+ left = _ref.left,
8467
+ _ref$shouldHandleTopN = _ref.shouldHandleTopNotch,
8532
8468
  shouldHandleTopNotch = _ref$shouldHandleTopN === void 0 ? true : _ref$shouldHandleTopN,
8533
- props = _objectWithoutProperties(_ref, _excluded$b);
8469
+ props = _objectWithoutProperties(_ref, _excluded$c);
8534
8470
  var _useSafeAreaInsets = useSafeAreaInsets(),
8535
8471
  top = _useSafeAreaInsets.top;
8536
- return /*#__PURE__*/jsx(View, {
8472
+ var hasRight = Boolean(right);
8473
+ var hasLeft = Boolean(left);
8474
+ var hasContent = Boolean(title || children);
8475
+ return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({
8476
+ backgroundColor: isTransparent ? 'kitt.transparent' : 'kitt.uiBackgroundLight',
8477
+ minHeight: "kitt.fullscreenModal.header.height",
8478
+ width: "100%",
8479
+ justifyContent: "center",
8537
8480
  paddingTop: shouldHandleTopNotch ? top : undefined,
8538
- children: /*#__PURE__*/jsx(TopNavBar, _objectSpread({}, props))
8539
- });
8481
+ paddingRight: hasRight ? 'kitt.2' : 'kitt.fullscreenModal.horizontalPadding',
8482
+ paddingLeft: hasLeft ? 'kitt.2' : 'kitt.fullscreenModal.horizontalPadding',
8483
+ borderBottomColor: "kitt.separator",
8484
+ borderBottomWidth: hasSeparator ? 1 : undefined
8485
+ }, props), {}, {
8486
+ children: /*#__PURE__*/jsxs(View, {
8487
+ flexDirection: "row",
8488
+ alignItems: "center",
8489
+ justifyContent: !hasContent && !hasLeft ? 'flex-end' : 'space-between',
8490
+ children: [left ? /*#__PURE__*/jsx(View, {
8491
+ width: "kitt.iconButton.width",
8492
+ children: left
8493
+ }) : null, title ? /*#__PURE__*/jsx(View, {
8494
+ flexGrow: 1,
8495
+ flexShrink: 1,
8496
+ paddingLeft: hasLeft ? 'kitt.2' : undefined,
8497
+ paddingRight: hasRight ? 'kitt.2' : 0,
8498
+ children: /*#__PURE__*/jsx(Typography.Text, {
8499
+ variant: "bold",
8500
+ textAlign: !hasLeft && hasRight ? 'left' : 'center',
8501
+ children: title
8502
+ })
8503
+ }) : null, children ? /*#__PURE__*/jsx(View, {
8504
+ flexGrow: 1,
8505
+ flexShrink: 1,
8506
+ alignItems: "center",
8507
+ paddingLeft: hasLeft ? 'kitt.2' : undefined,
8508
+ paddingRight: hasRight ? 'kitt.2' : undefined,
8509
+ children: children
8510
+ }) : null, right || left ? /*#__PURE__*/jsx(View, {
8511
+ width: "kitt.iconButton.width",
8512
+ children: right
8513
+ }) : null]
8514
+ })
8515
+ }));
8540
8516
  }
8541
8517
 
8542
8518
  function FullscreenModal(_ref) {
@@ -8677,11 +8653,11 @@ var useNativeAnimation$1 = function (_ref) {
8677
8653
  };
8678
8654
  });
8679
8655
  return {
8680
- onPressIn: function handleHoverIn() {
8656
+ onPressIn: function () {
8681
8657
  color.value = withTiming(1, withTimingConfig);
8682
8658
  translate.value = withTiming(2, withTimingConfig);
8683
8659
  },
8684
- onPressOut: function handleHoverOut() {
8660
+ onPressOut: function () {
8685
8661
  color.value = withTiming(0, withTimingConfig);
8686
8662
  translate.value = withTiming(0, withTimingConfig);
8687
8663
  },
@@ -8775,13 +8751,13 @@ function Highlight(_ref) {
8775
8751
  });
8776
8752
  }
8777
8753
  return /*#__PURE__*/jsx(Pressable, {
8778
- onPress: function handlePress() {
8754
+ onPress: function () {
8779
8755
  setIsExpanded(!isExpanded);
8780
8756
  setIsInitialRender(false);
8781
8757
  },
8782
8758
  onPressIn: onPressIn,
8783
8759
  onPressOut: onPressOut,
8784
- children: function children(_ref2) {
8760
+ children: function (_ref2) {
8785
8761
  var isHovered = _ref2.isHovered;
8786
8762
  return /*#__PURE__*/jsxs(AnimatedContainer, {
8787
8763
  isHovered: isHovered,
@@ -8835,6 +8811,60 @@ function Highlight(_ref) {
8835
8811
  });
8836
8812
  }
8837
8813
 
8814
+ var getButtonTypeAndVariant = function (iconColor) {
8815
+ switch (iconColor) {
8816
+ case 'black':
8817
+ return {
8818
+ type: 'tertiary'
8819
+ };
8820
+ case 'secondary':
8821
+ return {
8822
+ type: 'secondary'
8823
+ };
8824
+ case 'primary':
8825
+ return {
8826
+ type: 'primary'
8827
+ };
8828
+ case 'primary-plain':
8829
+ return {
8830
+ type: 'primary'
8831
+ };
8832
+ case 'ghost':
8833
+ return {
8834
+ type: 'tertiary',
8835
+ variant: 'revert'
8836
+ };
8837
+ default:
8838
+ return {
8839
+ type: 'secondary'
8840
+ };
8841
+ }
8842
+ };
8843
+
8844
+ var _excluded$b = ["color", "ariaLabel"];
8845
+ /**
8846
+ * @deprecated IconButton should only be used as a navigation button
8847
+ * Other use cases should use a <Button> component with an icon
8848
+ */
8849
+ function IconButton(_ref) {
8850
+ var _ref$color = _ref.color,
8851
+ color = _ref$color === void 0 ? 'black' : _ref$color;
8852
+ _ref.ariaLabel;
8853
+ var props = _objectWithoutProperties(_ref, _excluded$b);
8854
+ var _getButtonTypeAndVari = getButtonTypeAndVariant(color),
8855
+ legacyColorToType = _getButtonTypeAndVari.type,
8856
+ legacyColorToVariant = _getButtonTypeAndVari.variant;
8857
+ return /*#__PURE__*/jsx(Button, _objectSpread({
8858
+ variant: legacyColorToVariant,
8859
+ type: legacyColorToType
8860
+ }, props));
8861
+ }
8862
+ function CloseIconButton(props) {
8863
+ return /*#__PURE__*/jsx(IconButton, _objectSpread({
8864
+ icon: /*#__PURE__*/jsx(XRegularIcon, {})
8865
+ }, props));
8866
+ }
8867
+
8838
8868
  function InfoCard(_ref) {
8839
8869
  var title = _ref.title,
8840
8870
  action = _ref.action,
@@ -9119,7 +9149,7 @@ function MapMarker(_ref2) {
9119
9149
  return /*#__PURE__*/jsx(Pressable$1, {
9120
9150
  testID: testID,
9121
9151
  onPress: onPress,
9122
- children: function children(_ref3) {
9152
+ children: function (_ref3) {
9123
9153
  var isHovered = _ref3.isHovered;
9124
9154
  return /*#__PURE__*/jsx(StaticMapMarker$1, _objectSpread(_objectSpread({}, props), {}, {
9125
9155
  isHovered: isHovered
@@ -10562,6 +10592,9 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
10562
10592
  },
10563
10593
  icon: theme.icon,
10564
10594
  cardModal: {
10595
+ header: {
10596
+ height: theme.cardModal.header.height
10597
+ },
10565
10598
  maxWidth: theme.cardModal.maxWidth,
10566
10599
  maxWidthWithPadding: theme.cardModal.maxWidthWithPadding,
10567
10600
  minHeight: theme.cardModal.minHeight
@@ -10862,6 +10895,15 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
10862
10895
  }
10863
10896
  }
10864
10897
  },
10898
+ iconButton: {
10899
+ width: theme.iconButton.width,
10900
+ height: theme.iconButton.height
10901
+ },
10902
+ fullscreenModal: {
10903
+ header: {
10904
+ height: theme.fullscreenModal.header.height
10905
+ }
10906
+ },
10865
10907
  pageLoader: {
10866
10908
  size: theme.pageLoader.size
10867
10909
  },
@@ -10956,7 +10998,7 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
10956
10998
  }
10957
10999
  },
10958
11000
  fullscreenModal: {
10959
- horizontalPadding: theme.fullscreenModal.horizontalPadding,
11001
+ horizontalPadding: theme.fullscreenModal.sharedHorizontalPadding,
10960
11002
  body: {
10961
11003
  verticalPadding: theme.fullscreenModal.body.verticalPadding
10962
11004
  },
@@ -11815,13 +11857,19 @@ function NavigationBottomSheet(_ref) {
11815
11857
  })
11816
11858
  });
11817
11859
  }
11818
-
11819
- /**
11820
- * Web only: display right CloseButton
11821
- */
11822
-
11823
- function NavigationBottomSheetHeader(props) {
11824
- return /*#__PURE__*/jsx(TopNavBar, _objectSpread({}, props));
11860
+ function NavigationBottomSheetHeader(_ref2) {
11861
+ var children = _ref2.children;
11862
+ _ref2.left;
11863
+ return /*#__PURE__*/jsx(HStack, {
11864
+ marginBottom: "kitt.6",
11865
+ children: /*#__PURE__*/jsx(Typography.Text, {
11866
+ flexGrow: 1,
11867
+ flexShrink: 1,
11868
+ variant: "bold",
11869
+ textAlign: "center",
11870
+ children: children
11871
+ })
11872
+ });
11825
11873
  }
11826
11874
  function NavigationBottomSheetBody(props) {
11827
11875
  return /*#__PURE__*/jsx(VStack, _objectSpread({
@@ -11873,19 +11921,19 @@ function NavigationModalBehaviour(_ref) {
11873
11921
  children: /*#__PURE__*/jsx(AnimationComponent, _objectSpread(_objectSpread({}, props), {}, {
11874
11922
  appear: shouldAppear,
11875
11923
  visible: visible,
11876
- onEnter: function handleEnter() {
11924
+ onEnter: function () {
11877
11925
  if (onEnter) onEnter();
11878
11926
 
11879
11927
  // Once a children as been displayed, we force appear to false in order to avoid replaying animation on breakpoint change
11880
11928
  setShouldAppear(false);
11881
11929
  },
11882
- onExit: function handleExit() {
11930
+ onExit: function () {
11883
11931
  if (onExit) onExit();
11884
11932
 
11885
11933
  // Reset appear value to its original value for future modal display
11886
11934
  setShouldAppear(appear);
11887
11935
  },
11888
- onExited: function handleExitAnimationDone() {
11936
+ onExited: function () {
11889
11937
  if (onExited) onExited();
11890
11938
  setIsModalBehaviourVisible(false);
11891
11939
  },
@@ -12246,7 +12294,7 @@ function Picker(_ref) {
12246
12294
  isOpen: state.isOpen,
12247
12295
  selectedItem: state.currentValue,
12248
12296
  disabled: disabled,
12249
- onPress: function handlePressTrigger() {
12297
+ onPress: function () {
12250
12298
  if (syncStateWithSourceValue) {
12251
12299
  dispatch({
12252
12300
  type: 'open-modal-with-value',
@@ -12265,9 +12313,14 @@ function Picker(_ref) {
12265
12313
  onClose: handleClose,
12266
12314
  children: /*#__PURE__*/jsxs(CardModal, {
12267
12315
  children: [/*#__PURE__*/jsx(CardModal.Header, {
12268
- title: title,
12269
- right: /*#__PURE__*/jsx(TopNavBar.CloseButton, {
12316
+ right: /*#__PURE__*/jsx(IconButton, {
12317
+ icon: /*#__PURE__*/jsx(XRegularIcon, {}),
12270
12318
  onPress: handleClose
12319
+ }),
12320
+ children: /*#__PURE__*/jsx(Typography.Text, {
12321
+ base: "body-m",
12322
+ variant: "bold",
12323
+ children: title
12271
12324
  })
12272
12325
  }), Platform.OS === 'ios' && shouldDisplayNativePickerOnIOS ? /*#__PURE__*/jsx(Picker$1, {
12273
12326
  testID: testID,
@@ -12295,7 +12348,7 @@ function Picker(_ref) {
12295
12348
  accessibilityState: {
12296
12349
  selected: isSelected
12297
12350
  },
12298
- onPress: function onPress() {
12351
+ onPress: function () {
12299
12352
  handleInternalChange(item.props.value);
12300
12353
  },
12301
12354
  children: function (_ref2) {
@@ -12316,7 +12369,7 @@ function Picker(_ref) {
12316
12369
  children: /*#__PURE__*/jsx(Button, {
12317
12370
  stretch: true,
12318
12371
  type: "primary",
12319
- onPress: function handleChange() {
12372
+ onPress: function () {
12320
12373
  if (onChange) onChange(state.internalValue);
12321
12374
  dispatch({
12322
12375
  type: 'change-value'
@@ -12453,7 +12506,7 @@ function Skeleton(_ref) {
12453
12506
  return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
12454
12507
  overflow: "hidden",
12455
12508
  style: style,
12456
- onLayout: function onLayout(_ref2) {
12509
+ onLayout: function (_ref2) {
12457
12510
  var nativeEvent = _ref2.nativeEvent;
12458
12511
  return setWidth(nativeEvent.layout.width);
12459
12512
  },
@@ -12675,7 +12728,7 @@ function StaticMap(_ref) {
12675
12728
  position: "relative",
12676
12729
  maxWidth: mapBoxMaxPictureWidth,
12677
12730
  height: height,
12678
- onLayout: function handleParentLayout(event) {
12731
+ onLayout: function (event) {
12679
12732
  var nativeEvent = event.nativeEvent;
12680
12733
  var rangedMapWidth = getPictureWidth(nativeEvent.layout.width);
12681
12734
  setCurrentWidth(rangedMapWidth);
@@ -12687,11 +12740,11 @@ function StaticMap(_ref) {
12687
12740
  width: currentWidth,
12688
12741
  height: height,
12689
12742
  alt: alt,
12690
- onLoadEnd: function handleImageLoadEnd() {
12743
+ onLoadEnd: function () {
12691
12744
  setIsLoading(false);
12692
12745
  if (onLoaded) onLoaded();
12693
12746
  },
12694
- onError: function handleError() {
12747
+ onError: function () {
12695
12748
  setHasError(true);
12696
12749
  if (onError) onError();
12697
12750
  }
@@ -12716,7 +12769,7 @@ function StaticMap(_ref) {
12716
12769
  width: "100%",
12717
12770
  height: "100%",
12718
12771
  children: /*#__PURE__*/jsx(StaticMapError, {
12719
- onReload: function handleReload() {
12772
+ onReload: function () {
12720
12773
  setHasError(false);
12721
12774
  setIsLoading(true);
12722
12775
  setCurrentMapKey(function (prev) {
@@ -12957,7 +13010,7 @@ function StoryContainer(_ref) {
12957
13010
  var StoryDecorator = makeDecorator({
12958
13011
  name: 'StoryDecorator',
12959
13012
  parameterName: 'storyDecorator',
12960
- wrapper: function wrapper(storyFn, context) {
13013
+ wrapper: function (storyFn, context) {
12961
13014
  var story = storyFn(context);
12962
13015
  if (context.parameters.disableStoryContainer) {
12963
13016
  return story;
@@ -13065,7 +13118,7 @@ function TabBarItem(_ref) {
13065
13118
  disabled: disabled,
13066
13119
  testID: testID,
13067
13120
  onPress: onPress,
13068
- children: function children(_ref2) {
13121
+ children: function (_ref2) {
13069
13122
  var isHovered = _ref2.isHovered,
13070
13123
  isPressed = _ref2.isPressed,
13071
13124
  isFocused = _ref2.isFocused;
@@ -13154,7 +13207,7 @@ function TabBar(_ref) {
13154
13207
  color: color,
13155
13208
  variant: definedVariant,
13156
13209
  type: type,
13157
- onPress: function onPress(event) {
13210
+ onPress: function (event) {
13158
13211
  var _child$props$onPress, _child$props;
13159
13212
  onChangeTab({
13160
13213
  tab: tab,
@@ -13303,7 +13356,7 @@ function ModalDateTimePicker(_ref) {
13303
13356
  stretch: true,
13304
13357
  testID: "timePicker.ModalDateTimePicker.submitButton",
13305
13358
  type: "primary",
13306
- onPress: function handleSubmit() {
13359
+ onPress: function () {
13307
13360
  onChange(currentValue);
13308
13361
  },
13309
13362
  children: buttonContent
@@ -13350,7 +13403,7 @@ var TimePickerPressable = /*#__PURE__*/forwardRef(function (_ref, ref) {
13350
13403
  width: createResponsiveStyleFromProp(stretch, '100%', 'kitt.forms.timePicker.minWidth'),
13351
13404
  pointerEvents: "box-only",
13352
13405
  onPress: onPress,
13353
- children: function children(_ref2) {
13406
+ children: function (_ref2) {
13354
13407
  var isHovered = _ref2.isHovered,
13355
13408
  isFocused = _ref2.isFocused,
13356
13409
  isPressed = _ref2.isPressed;
@@ -13427,7 +13480,7 @@ var TimePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
13427
13480
  isHoveredInternal: isHoveredInternal,
13428
13481
  isFocusedInternal: isFocusedInternal,
13429
13482
  isPressedInternal: isPressedInternal,
13430
- onPress: function handlePress() {
13483
+ onPress: function () {
13431
13484
  setIsPickerVisible(true);
13432
13485
  }
13433
13486
  }), Platform.OS === 'android' && isPickerVisible ? /*#__PURE__*/jsx(DateTimePicker, {
@@ -13451,7 +13504,7 @@ var TimePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
13451
13504
  value: pickerValue,
13452
13505
  validateButtonLabel: validateButtonLabel,
13453
13506
  onChange: handleChange,
13454
- onClose: function handleClose() {
13507
+ onClose: function () {
13455
13508
  setIsPickerVisible(false);
13456
13509
  }
13457
13510
  }) : null]
@@ -13814,7 +13867,7 @@ function Tooltip(_ref) {
13814
13867
  ref: reference,
13815
13868
  children: renderPressable({
13816
13869
  ref: getPressableRect,
13817
- onPress: function handlePress() {
13870
+ onPress: function () {
13818
13871
  if (onToggle) onToggle(!!pressed.value);
13819
13872
  pressed.value = !pressed.value;
13820
13873
  },
@@ -13833,7 +13886,7 @@ function Tooltip(_ref) {
13833
13886
  left: customShiftData.left,
13834
13887
  right: customShiftData.right,
13835
13888
  zIndex: zIndex,
13836
- onLayout: function onLayout(_ref2) {
13889
+ onLayout: function (_ref2) {
13837
13890
  var nativeEvent = _ref2.nativeEvent;
13838
13891
  return setFloatingWidth(nativeEvent.layout.width);
13839
13892
  },
@@ -13849,6 +13902,88 @@ function Tooltip(_ref) {
13849
13902
  Tooltip.Arrow = Arrow;
13850
13903
  Tooltip.Content = TooltipContent;
13851
13904
 
13905
+ function TopNavBar(_ref) {
13906
+ var left = _ref.left,
13907
+ right = _ref.right,
13908
+ title = _ref.title,
13909
+ _ref$titleAlign = _ref.titleAlign,
13910
+ titleAlign = _ref$titleAlign === void 0 ? 'center' : _ref$titleAlign,
13911
+ stickers = _ref.stickers,
13912
+ _ref$mode = _ref.mode,
13913
+ mode = _ref$mode === void 0 ? 'default' : _ref$mode,
13914
+ _ref$hasSeparator = _ref.hasSeparator,
13915
+ hasSeparator = _ref$hasSeparator === void 0 ? true : _ref$hasSeparator;
13916
+ var isLargeTitleMode = mode === 'largeTitle';
13917
+ return /*#__PURE__*/jsxs(VStack, {
13918
+ space: isLargeTitleMode ? 'kitt.2' : undefined,
13919
+ width: "100%",
13920
+ height: mode === 'default' ? 56 : undefined,
13921
+ justifyContent: "center",
13922
+ paddingX: "kitt.2",
13923
+ paddingTop: isLargeTitleMode ? 'kitt.2' : 'kitt.3',
13924
+ paddingBottom: "kitt.3",
13925
+ borderBottomWidth: hasSeparator && mode === 'default' ? 1 : 0,
13926
+ borderColor: "kitt.separator",
13927
+ children: [/*#__PURE__*/jsxs(HStack, {
13928
+ alignItems: "center",
13929
+ justifyContent: !title && !left ? 'flex-end' : 'space-between',
13930
+ children: [left !== null && left !== void 0 ? left : /*#__PURE__*/jsx(View, {
13931
+ width: "kitt.button.minWidth"
13932
+ }), mode === 'default' ? /*#__PURE__*/jsx(View, {
13933
+ flexGrow: "1",
13934
+ flexShrink: 1,
13935
+ paddingRight: "kitt.2",
13936
+ paddingLeft: "kitt.2",
13937
+ children: title ? /*#__PURE__*/jsx(Typography.Text, {
13938
+ textAlign: titleAlign,
13939
+ variant: "bold",
13940
+ ellipsizeMode: "tail",
13941
+ numberOfLines: 1,
13942
+ children: title
13943
+ }) : null
13944
+ }) : null, right !== null && right !== void 0 ? right : /*#__PURE__*/jsx(View, {
13945
+ width: "kitt.button.minWidth"
13946
+ })]
13947
+ }), mode === 'largeTitle' ? /*#__PURE__*/jsxs(VStack, {
13948
+ space: "kitt.4",
13949
+ paddingX: "kitt.2",
13950
+ children: [stickers ? /*#__PURE__*/jsx(HStack, {
13951
+ width: "100%",
13952
+ space: "kitt.1",
13953
+ flexShrink: 1,
13954
+ flexWrap: "wrap",
13955
+ style: {
13956
+ rowGap: theme.getSpacing(1)
13957
+ },
13958
+ children: stickers.map(function (sticker, index) {
13959
+ return (
13960
+ /*#__PURE__*/
13961
+ // eslint-disable-next-line react/no-array-index-key
13962
+ jsx(View, {
13963
+ children: sticker
13964
+ }, index)
13965
+ );
13966
+ })
13967
+ }) : null, /*#__PURE__*/jsx(Typography.Text, {
13968
+ base: "heading-m",
13969
+ children: title
13970
+ })]
13971
+ }) : null]
13972
+ });
13973
+ }
13974
+ function CloseButton(props) {
13975
+ return /*#__PURE__*/jsx(IconButton, _objectSpread({
13976
+ icon: /*#__PURE__*/jsx(XRegularIcon, {})
13977
+ }, props));
13978
+ }
13979
+ function BackButton(props) {
13980
+ return /*#__PURE__*/jsx(IconButton, _objectSpread({
13981
+ icon: /*#__PURE__*/jsx(ArrowLeftRegularIcon, {})
13982
+ }, props));
13983
+ }
13984
+ TopNavBar.CloseButton = CloseButton;
13985
+ TopNavBar.BackButton = BackButton;
13986
+
13852
13987
  function getTypographyTypeConfig(type, theme) {
13853
13988
  var configs = theme.kitt.typography.types[getTypographyFamily(type)].configs;
13854
13989
  return configs[type];
@@ -13996,7 +14131,7 @@ function KittThemeProvider(_ref) {
13996
14131
  var KittThemeDecorator = makeDecorator({
13997
14132
  name: 'ThemeDecorator',
13998
14133
  parameterName: 'theme',
13999
- wrapper: function wrapper(storyFn, context, _ref2) {
14134
+ wrapper: function (storyFn, context, _ref2) {
14000
14135
  var _parameters$isSSR;
14001
14136
  var _ref2$options = _ref2.options,
14002
14137
  options = _ref2$options === void 0 ? {} : _ref2$options,