@ornikar/kitt-universal 27.9.1-canary.e79ce5a70db58d281f30a0e111ad7cf70d64cdb1.0 → 27.9.1-canary.f58d71b1dad7167039ee1fbddbcf093a87688e98.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 (56) hide show
  1. package/CHANGELOG.md +9 -17
  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 +3 -17
  5. package/dist/definitions/CardModal/CardModalHeader.d.ts.map +1 -1
  6. package/dist/definitions/FullscreenModal/Header.d.ts +3 -18
  7. package/dist/definitions/FullscreenModal/Header.d.ts.map +1 -1
  8. package/dist/definitions/NavigationBottomSheet/NavigationBottomSheet.d.ts +6 -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 +3 -2
  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 +4 -8
  17. package/dist/definitions/native-base/KittNativeBaseProvider.d.ts.map +1 -1
  18. package/dist/definitions/themes/default.d.ts +1 -1
  19. package/dist/definitions/themes/late-ocean/fullscreenModal.d.ts +1 -1
  20. package/dist/definitions/themes/late-ocean/fullscreenModal.d.ts.map +1 -1
  21. package/dist/definitions/typography/Typography.d.ts +6 -18
  22. package/dist/definitions/typography/Typography.d.ts.map +1 -1
  23. package/dist/index-metro.es.android.js +158 -278
  24. package/dist/index-metro.es.android.js.map +1 -1
  25. package/dist/index-metro.es.ios.js +158 -278
  26. package/dist/index-metro.es.ios.js.map +1 -1
  27. package/dist/index-node-22.17.cjs.js +155 -267
  28. package/dist/index-node-22.17.cjs.js.map +1 -1
  29. package/dist/index-node-22.17.cjs.web.js +146 -253
  30. package/dist/index-node-22.17.cjs.web.js.map +1 -1
  31. package/dist/index-node-22.17.es.mjs +156 -268
  32. package/dist/index-node-22.17.es.mjs.map +1 -1
  33. package/dist/index-node-22.17.es.web.mjs +147 -254
  34. package/dist/index-node-22.17.es.web.mjs.map +1 -1
  35. package/dist/index.es.js +253 -373
  36. package/dist/index.es.js.map +1 -1
  37. package/dist/index.es.web.js +284 -398
  38. package/dist/index.es.web.js.map +1 -1
  39. package/dist/linaria-themes-metro.es.android.js +5 -5
  40. package/dist/linaria-themes-metro.es.android.js.map +1 -1
  41. package/dist/linaria-themes-metro.es.ios.js +5 -5
  42. package/dist/linaria-themes-metro.es.ios.js.map +1 -1
  43. package/dist/linaria-themes-node-22.17.cjs.js +5 -5
  44. package/dist/linaria-themes-node-22.17.cjs.js.map +1 -1
  45. package/dist/linaria-themes-node-22.17.cjs.web.js +5 -5
  46. package/dist/linaria-themes-node-22.17.cjs.web.js.map +1 -1
  47. package/dist/linaria-themes-node-22.17.es.mjs +5 -5
  48. package/dist/linaria-themes-node-22.17.es.mjs.map +1 -1
  49. package/dist/linaria-themes-node-22.17.es.web.mjs +5 -5
  50. package/dist/linaria-themes-node-22.17.es.web.mjs.map +1 -1
  51. package/dist/linaria-themes.es.js +6 -6
  52. package/dist/linaria-themes.es.js.map +1 -1
  53. package/dist/linaria-themes.es.web.js +6 -6
  54. package/dist/linaria-themes.es.web.js.map +1 -1
  55. package/dist/tsbuildinfo +1 -1
  56. package/package.json +28 -28
@@ -10,7 +10,7 @@ import _extends from '@babel/runtime/helpers/extends';
10
10
  import _typeof from '@babel/runtime/helpers/typeof';
11
11
  import _regeneratorRuntime from '@babel/runtime/helpers/regeneratorRuntime';
12
12
  import _asyncToGenerator from '@babel/runtime/helpers/asyncToGenerator';
13
- 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';
13
+ 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';
14
14
  import { createPortal } from 'react-dom';
15
15
  import { CSSTransition } from 'react-transition-group';
16
16
  import { ScrollView as ScrollView$2, View as View$2, Linking, Pressable as Pressable$2, useWindowDimensions } from 'react-native';
@@ -1816,12 +1816,12 @@ var fullscreenModal = {
1816
1816
  header: {
1817
1817
  height: 56
1818
1818
  },
1819
- sharedHorizontalPadding: 16,
1819
+ horizontalPadding: 16,
1820
1820
  footer: {
1821
1821
  verticalPadding: 12
1822
1822
  },
1823
1823
  body: {
1824
- verticalPadding: 24
1824
+ verticalPadding: 16
1825
1825
  },
1826
1826
  animation: {
1827
1827
  overlay: {
@@ -1909,8 +1909,8 @@ var icon = {
1909
1909
  };
1910
1910
 
1911
1911
  var iconButton = {
1912
- width: button.height.medium,
1913
- height: button.height.medium
1912
+ width: button.height["default"],
1913
+ height: button.height["default"]
1914
1914
  };
1915
1915
 
1916
1916
  var listItem = {
@@ -2624,7 +2624,7 @@ var breakpoints = {
2624
2624
  // TODO : seperate brand color usage definition from proper theme definition and add typings - https://ornikar.atlassian.net/browse/CME-156
2625
2625
  var theme = {
2626
2626
  spacing: spacing,
2627
- getSpacing: function (multiplier) {
2627
+ getSpacing: function getSpacing(multiplier) {
2628
2628
  return spacing * multiplier;
2629
2629
  },
2630
2630
  colors: colors,
@@ -2643,8 +2643,8 @@ var theme = {
2643
2643
  forms: forms,
2644
2644
  highlight: highlight,
2645
2645
  icon: icon,
2646
- buttonBadge: buttonBadge,
2647
2646
  iconButton: iconButton,
2647
+ buttonBadge: buttonBadge,
2648
2648
  listItem: listItem,
2649
2649
  pageLoader: pageLoader,
2650
2650
  picker: picker,
@@ -2751,7 +2751,7 @@ function ActionCardDisabled(_ref) {
2751
2751
  });
2752
2752
  }
2753
2753
 
2754
- var _excluded$R = ["children", "variant", "borderVariant", "borderRadius", "disabled", "isHovered", "isPressed", "isFocused"];
2754
+ var _excluded$Q = ["children", "variant", "borderVariant", "borderRadius", "disabled", "isHovered", "isPressed", "isFocused"];
2755
2755
  function ActionCard(_ref) {
2756
2756
  var children = _ref.children,
2757
2757
  _ref$variant = _ref.variant,
@@ -2764,7 +2764,7 @@ function ActionCard(_ref) {
2764
2764
  isHovered = _ref.isHovered,
2765
2765
  isPressed = _ref.isPressed,
2766
2766
  isFocused = _ref.isFocused,
2767
- props = _objectWithoutProperties(_ref, _excluded$R);
2767
+ props = _objectWithoutProperties(_ref, _excluded$Q);
2768
2768
  return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
2769
2769
  children: disabled ? /*#__PURE__*/jsx(ActionCardDisabled, {
2770
2770
  borderRadius: borderRadius,
@@ -2812,7 +2812,7 @@ var ActionCardPressable = /*#__PURE__*/forwardRef(function (_ref2, ref) {
2812
2812
  onPress: onPress,
2813
2813
  onHoverIn: onHoverIn,
2814
2814
  onHoverOut: onHoverOut,
2815
- children: function (_ref3) {
2815
+ children: function children(_ref3) {
2816
2816
  var isHovered = _ref3.isHovered,
2817
2817
  isPressed = _ref3.isPressed,
2818
2818
  isFocused = _ref3.isFocused;
@@ -3096,7 +3096,7 @@ var getTypographyTypeWithAncestorValue = function (type, typographyTypeInContext
3096
3096
  return !!isAllValuesUndefined && !!typographyTypeInContext ? typographyTypeInContext : type;
3097
3097
  };
3098
3098
 
3099
- var _excluded$Q = ["accessibilityRole", "base", "small", "medium", "large", "wide", "type", "variant", "color"];
3099
+ var _excluded$P = ["accessibilityRole", "base", "small", "medium", "large", "wide", "type", "variant", "color"];
3100
3100
  var TypographyFamilyContext = /*#__PURE__*/createContext(null);
3101
3101
  var TypographyTypeContext = /*#__PURE__*/createContext(null);
3102
3102
  var TypographyColorContext = /*#__PURE__*/createContext('black');
@@ -3220,7 +3220,7 @@ function Typography(_ref2) {
3220
3220
  } : _ref2$type,
3221
3221
  variant = _ref2.variant,
3222
3222
  color = _ref2.color,
3223
- otherProps = _objectWithoutProperties(_ref2, _excluded$Q);
3223
+ otherProps = _objectWithoutProperties(_ref2, _excluded$P);
3224
3224
  var sx = useSx();
3225
3225
  var typographyFamilyInContext = useContext(TypographyFamilyContext);
3226
3226
  var typographyTypeInContext = useContext(TypographyTypeContext);
@@ -3362,12 +3362,12 @@ function Icon(_ref) {
3362
3362
  });
3363
3363
  }
3364
3364
 
3365
- var _excluded$P = ["color", "size"],
3365
+ var _excluded$O = ["color", "size"],
3366
3366
  _excluded2$6 = ["color"];
3367
3367
  function TypographyIconSpecifiedColor(_ref) {
3368
3368
  var color = _ref.color,
3369
3369
  size = _ref.size,
3370
- props = _objectWithoutProperties(_ref, _excluded$P);
3370
+ props = _objectWithoutProperties(_ref, _excluded$O);
3371
3371
  var colorValue = getTypographyColorValue(color);
3372
3372
  var sx = useSx();
3373
3373
  var _sx = sx({
@@ -3407,7 +3407,7 @@ var getButtonTextColorByType = function (type, variant, isHovered, isPressed, is
3407
3407
  return "".concat(baseKey, ".default");
3408
3408
  };
3409
3409
 
3410
- var _excluded$O = ["type", "variant", "isDisabled", "icon", "children", "isHovered", "isPressed", "isFocused", "innerSpacing", "size"];
3410
+ var _excluded$N = ["type", "variant", "isDisabled", "icon", "children", "isHovered", "isPressed", "isFocused", "innerSpacing", "size"];
3411
3411
  function ButtonContentChildren(_ref) {
3412
3412
  var type = _ref.type,
3413
3413
  icon = _ref.icon,
@@ -3507,7 +3507,7 @@ function ButtonContent(_ref2) {
3507
3507
  _ref2.isFocused;
3508
3508
  var innerSpacing = _ref2.innerSpacing,
3509
3509
  size = _ref2.size,
3510
- props = _objectWithoutProperties(_ref2, _excluded$O);
3510
+ props = _objectWithoutProperties(_ref2, _excluded$N);
3511
3511
  var color = getButtonTextColorByType(type, variant, isHovered, isPressed, isDisabled);
3512
3512
  return /*#__PURE__*/jsx(View, {
3513
3513
  _web: {
@@ -3643,7 +3643,7 @@ var Button = /*#__PURE__*/forwardRef(function (_ref, ref) {
3643
3643
  onHoverOut: onHoverOut,
3644
3644
  onFocus: onFocus,
3645
3645
  onBlur: onBlur,
3646
- children: function (_ref2) {
3646
+ children: function children(_ref2) {
3647
3647
  var isHovered = _ref2.isHovered,
3648
3648
  isPressed = _ref2.isPressed,
3649
3649
  isFocused = _ref2.isFocused;
@@ -3706,7 +3706,7 @@ function LoaderIcon(_ref) {
3706
3706
  });
3707
3707
  }
3708
3708
 
3709
- var _excluded$N = ["as", "onPress", "disabled", "icon", "stretch"];
3709
+ var _excluded$M = ["as", "onPress", "disabled", "icon", "stretch"];
3710
3710
  var ActionsItem = /*#__PURE__*/forwardRef(function (_ref, ref) {
3711
3711
  var as = _ref.as,
3712
3712
  onPress = _ref.onPress,
@@ -3717,7 +3717,7 @@ var ActionsItem = /*#__PURE__*/forwardRef(function (_ref, ref) {
3717
3717
  base: true,
3718
3718
  medium: false
3719
3719
  } : _ref$stretch,
3720
- props = _objectWithoutProperties(_ref, _excluded$N);
3720
+ props = _objectWithoutProperties(_ref, _excluded$M);
3721
3721
  var _useState = useState(false),
3722
3722
  _useState2 = _slicedToArray(_useState, 2),
3723
3723
  isLoading = _useState2[0],
@@ -3740,7 +3740,7 @@ var ActionsItem = /*#__PURE__*/forwardRef(function (_ref, ref) {
3740
3740
  stretch: stretch,
3741
3741
  disabled: isLoading ? true : disabled,
3742
3742
  icon: isLoading ? /*#__PURE__*/jsx(LoaderIcon, {}) : icon,
3743
- onPress: function (e) {
3743
+ onPress: function handlePress(e) {
3744
3744
  var callPressAndUpdateLoadingState = /*#__PURE__*/function () {
3745
3745
  var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
3746
3746
  return _regeneratorRuntime().wrap(function (_context) {
@@ -3795,7 +3795,7 @@ function ActionsButton(_ref) {
3795
3795
  }, props));
3796
3796
  }
3797
3797
 
3798
- var _excluded$M = ["children", "layout", "reversed"];
3798
+ var _excluded$L = ["children", "layout", "reversed"];
3799
3799
  function getCurrentLayout(layout) {
3800
3800
  if (!layout) return {
3801
3801
  base: 'stretch',
@@ -3827,7 +3827,7 @@ function Actions(_ref) {
3827
3827
  reversed = _ref$reversed === void 0 ? {
3828
3828
  base: false
3829
3829
  } : _ref$reversed,
3830
- props = _objectWithoutProperties(_ref, _excluded$M);
3830
+ props = _objectWithoutProperties(_ref, _excluded$L);
3831
3831
  var shouldReverse = typeof reversed === 'boolean' ? {
3832
3832
  base: !!reversed
3833
3833
  } : createResponsiveStyleFromProp(reversed, true, false);
@@ -3880,7 +3880,7 @@ function getInitials(firstname, lastname) {
3880
3880
  return "".concat(firstname[0]).concat(lastname[0]).toUpperCase();
3881
3881
  }
3882
3882
 
3883
- var _excluded$L = ["size", "round", "light", "sizeVariant", "width", "height", "dark", "disabled"];
3883
+ var _excluded$K = ["size", "round", "light", "sizeVariant", "width", "height", "dark", "disabled"];
3884
3884
  function AvatarContent(_ref) {
3885
3885
  var size = _ref.size,
3886
3886
  src = _ref.src,
@@ -3943,7 +3943,7 @@ function Avatar(_ref2) {
3943
3943
  height = _ref2.height,
3944
3944
  dark = _ref2.dark,
3945
3945
  disabled = _ref2.disabled,
3946
- props = _objectWithoutProperties(_ref2, _excluded$L);
3946
+ props = _objectWithoutProperties(_ref2, _excluded$K);
3947
3947
  var currentSize = getCurrentSize({
3948
3948
  size: size,
3949
3949
  sizeVariant: sizeVariant
@@ -4069,7 +4069,7 @@ function CloseButton$1(_ref) {
4069
4069
  onPress = _ref.onPress;
4070
4070
  var onCloseContextCallback = useOnCloseModalBehaviour();
4071
4071
  return /*#__PURE__*/cloneElement(children, {
4072
- onPress: function () {
4072
+ onPress: function handleClose() {
4073
4073
  if (onPress) onPress();
4074
4074
  onCloseContextCallback();
4075
4075
  }
@@ -4126,7 +4126,7 @@ function CardModalRotationContainer(props) {
4126
4126
  }, props));
4127
4127
  }
4128
4128
 
4129
- var _excluded$K = ["children", "appear", "visible", "unmountOnExit", "isAnimationEnabled", "onEnter", "onEntered", "onExit", "onExited", "onClose"];
4129
+ var _excluded$J = ["children", "appear", "visible", "unmountOnExit", "isAnimationEnabled", "onEnter", "onEntered", "onExit", "onExited", "onClose"];
4130
4130
  var contentAnimationEnter$1 = "kitt-u_contentAnimationEnter_c11xxy4r";
4131
4131
  var contentAnimatioEnterActive$1 = "kitt-u_contentAnimatioEnterActive_cl52117";
4132
4132
  var contentAnimatioExit$1 = "kitt-u_contentAnimatioExit_cyjczep";
@@ -4165,7 +4165,7 @@ function CardModalAnimation(_ref) {
4165
4165
  onExit = _ref.onExit,
4166
4166
  onExited = _ref.onExited,
4167
4167
  onClose = _ref.onClose,
4168
- props = _objectWithoutProperties(_ref, _excluded$K);
4168
+ props = _objectWithoutProperties(_ref, _excluded$J);
4169
4169
  var theme = useTheme();
4170
4170
  var animation = theme.kitt.cardModal.animation;
4171
4171
  var sharedProps = {
@@ -4198,13 +4198,13 @@ function CardModalAnimation(_ref) {
4198
4198
  }));
4199
4199
  }
4200
4200
 
4201
- var _excluded$J = ["children", "visible", "onClose", "onExited"];
4201
+ var _excluded$I = ["children", "visible", "onClose", "onExited"];
4202
4202
  function CardModalBehaviour(_ref) {
4203
4203
  var children = _ref.children,
4204
4204
  visible = _ref.visible,
4205
4205
  onClose = _ref.onClose,
4206
4206
  onExited = _ref.onExited,
4207
- props = _objectWithoutProperties(_ref, _excluded$J);
4207
+ props = _objectWithoutProperties(_ref, _excluded$I);
4208
4208
  var _useState = useState(visible),
4209
4209
  _useState2 = _slicedToArray(_useState, 2),
4210
4210
  isModalBehaviourVisible = _useState2[0],
@@ -4219,7 +4219,7 @@ function CardModalBehaviour(_ref) {
4219
4219
  onClose: onClose,
4220
4220
  children: /*#__PURE__*/jsx(CardModalAnimation, _objectSpread(_objectSpread({}, props), {}, {
4221
4221
  visible: visible,
4222
- onExited: function () {
4222
+ onExited: function handleExitAnimationDone() {
4223
4223
  if (onExited) onExited();
4224
4224
  setIsModalBehaviourVisible(false);
4225
4225
  },
@@ -4229,32 +4229,23 @@ function CardModalBehaviour(_ref) {
4229
4229
  });
4230
4230
  }
4231
4231
 
4232
- var _excluded$I = ["children", "paddingX", "paddingY"];
4232
+ var _excluded$H = ["children", "padding"];
4233
4233
  function CardModalBody(_ref) {
4234
4234
  var children = _ref.children,
4235
- _ref$paddingX = _ref.paddingX,
4236
- paddingX = _ref$paddingX === void 0 ? {
4237
- base: 'kitt.4',
4238
- medium: 'kitt.6'
4239
- } : _ref$paddingX,
4240
- _ref$paddingY = _ref.paddingY,
4241
- paddingY = _ref$paddingY === void 0 ? {
4242
- base: 'kitt.4',
4243
- medium: 'kitt.6'
4244
- } : _ref$paddingY,
4245
- props = _objectWithoutProperties(_ref, _excluded$I);
4235
+ _ref$padding = _ref.padding,
4236
+ padding = _ref$padding === void 0 ? 'kitt.4' : _ref$padding,
4237
+ props = _objectWithoutProperties(_ref, _excluded$H);
4246
4238
  return /*#__PURE__*/jsx(ScrollView, _objectSpread(_objectSpread({
4247
4239
  showsVerticalScrollIndicator: false,
4248
4240
  _contentContainerStyle: {
4249
- paddingX: paddingX,
4250
- paddingY: paddingY
4241
+ padding: padding
4251
4242
  }
4252
4243
  }, props), {}, {
4253
4244
  children: children
4254
4245
  }));
4255
4246
  }
4256
4247
 
4257
- var _excluded$H = ["children", "padding", "hasSeparator"];
4248
+ var _excluded$G = ["children", "padding", "hasSeparator"];
4258
4249
  function CardModalFooter(_ref) {
4259
4250
  var children = _ref.children,
4260
4251
  _ref$padding = _ref.padding,
@@ -4264,7 +4255,7 @@ function CardModalFooter(_ref) {
4264
4255
  } : _ref$padding,
4265
4256
  _ref$hasSeparator = _ref.hasSeparator,
4266
4257
  hasSeparator = _ref$hasSeparator === void 0 ? true : _ref$hasSeparator,
4267
- props = _objectWithoutProperties(_ref, _excluded$H);
4258
+ props = _objectWithoutProperties(_ref, _excluded$G);
4268
4259
  return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
4269
4260
  marginTop: "kitt.2",
4270
4261
  padding: padding,
@@ -4278,58 +4269,150 @@ function CardModalFooter(_ref) {
4278
4269
  }));
4279
4270
  }
4280
4271
 
4281
- var _excluded$G = ["children", "title", "paddingBottom", "hasSeparator", "right", "left"];
4282
- function CardModalHeader(_ref) {
4283
- var children = _ref.children,
4272
+ var getButtonTypeAndVariant = function (iconColor) {
4273
+ switch (iconColor) {
4274
+ case 'black':
4275
+ return {
4276
+ type: 'tertiary'
4277
+ };
4278
+ case 'secondary':
4279
+ return {
4280
+ type: 'secondary'
4281
+ };
4282
+ case 'primary':
4283
+ return {
4284
+ type: 'primary'
4285
+ };
4286
+ case 'primary-plain':
4287
+ return {
4288
+ type: 'primary'
4289
+ };
4290
+ case 'ghost':
4291
+ return {
4292
+ type: 'tertiary',
4293
+ variant: 'revert'
4294
+ };
4295
+ default:
4296
+ return {
4297
+ type: 'secondary'
4298
+ };
4299
+ }
4300
+ };
4301
+
4302
+ var _excluded$F = ["color", "ariaLabel"];
4303
+ /**
4304
+ * @deprecated IconButton should only be used as a navigation button
4305
+ * Other use cases should use a <Button> component with an icon
4306
+ */
4307
+ function IconButton(_ref) {
4308
+ var _ref$color = _ref.color,
4309
+ color = _ref$color === void 0 ? 'black' : _ref$color;
4310
+ _ref.ariaLabel;
4311
+ var props = _objectWithoutProperties(_ref, _excluded$F);
4312
+ var _getButtonTypeAndVari = getButtonTypeAndVariant(color),
4313
+ legacyColorToType = _getButtonTypeAndVari.type,
4314
+ legacyColorToVariant = _getButtonTypeAndVari.variant;
4315
+ return /*#__PURE__*/jsx(Button, _objectSpread({
4316
+ variant: legacyColorToVariant,
4317
+ type: legacyColorToType
4318
+ }, props));
4319
+ }
4320
+ function CloseIconButton(props) {
4321
+ return /*#__PURE__*/jsx(IconButton, _objectSpread({
4322
+ icon: /*#__PURE__*/jsx(XRegularIcon, {})
4323
+ }, props));
4324
+ }
4325
+
4326
+ function TopNavBar(_ref) {
4327
+ var left = _ref.left,
4328
+ right = _ref.right,
4284
4329
  title = _ref.title,
4285
- _ref$paddingBottom = _ref.paddingBottom,
4286
- paddingBottom = _ref$paddingBottom === void 0 ? {
4287
- base: 'kitt.4',
4288
- medium: 'kitt.2'
4289
- } : _ref$paddingBottom,
4330
+ _ref$titleAlign = _ref.titleAlign,
4331
+ titleAlign = _ref$titleAlign === void 0 ? 'center' : _ref$titleAlign,
4332
+ stickers = _ref.stickers,
4333
+ _ref$mode = _ref.mode,
4334
+ mode = _ref$mode === void 0 ? 'default' : _ref$mode,
4290
4335
  _ref$hasSeparator = _ref.hasSeparator,
4291
4336
  hasSeparator = _ref$hasSeparator === void 0 ? true : _ref$hasSeparator,
4292
- right = _ref.right,
4293
- left = _ref.left,
4294
- props = _objectWithoutProperties(_ref, _excluded$G);
4295
- var defaultContainerPadding = {
4296
- base: 'kitt.4',
4297
- medium: 'kitt.6'
4298
- };
4299
- return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
4300
- padding: paddingBottom,
4301
- borderBottomWidth: hasSeparator ? 'kitt.cardModal.footer.borderWidth' : 0,
4302
- borderColor: "kitt.separator",
4303
- justifyContent: "center",
4337
+ testID = _ref.testID;
4338
+ var isLargeTitleMode = mode === 'largeTitle';
4339
+ var leftEmptySpace = !left && titleAlign === 'left' ? null : /*#__PURE__*/jsx(View, {
4340
+ width: "kitt.iconButton.width"
4341
+ });
4342
+ return /*#__PURE__*/jsxs(VStack, {
4343
+ space: isLargeTitleMode ? 'kitt.2' : undefined,
4304
4344
  width: "100%",
4305
- height: "kitt.cardModal.header.height",
4306
- paddingRight: right ? 'kitt.2' : defaultContainerPadding,
4307
- paddingLeft: left ? 'kitt.2' : defaultContainerPadding,
4308
- children: /*#__PURE__*/jsxs(View, {
4345
+ height: mode === 'default' ? 56 : undefined,
4346
+ justifyContent: "center",
4347
+ paddingX: "kitt.2",
4348
+ paddingTop: isLargeTitleMode ? 'kitt.2' : 'kitt.3',
4349
+ paddingBottom: "kitt.3",
4350
+ borderBottomWidth: hasSeparator && mode === 'default' ? 1 : 0,
4351
+ borderColor: "kitt.separator",
4352
+ testID: testID,
4353
+ children: [/*#__PURE__*/jsxs(HStack, {
4309
4354
  alignItems: "center",
4310
- flexDirection: "row",
4311
- justifyContent: !children && !left ? 'flex-end' : 'space-between',
4312
- children: [left ? /*#__PURE__*/jsx(View, {
4313
- width: "kitt.iconButton.width",
4314
- children: left
4315
- }) : null, /*#__PURE__*/jsxs(View, {
4355
+ justifyContent: !title && !left ? 'flex-end' : 'space-between',
4356
+ children: [left !== null && left !== void 0 ? left : leftEmptySpace, mode === 'default' ? /*#__PURE__*/jsx(View, {
4316
4357
  flexGrow: "1",
4317
- paddingRight: right ? 'kitt.2' : 0,
4318
- paddingLeft: left ? 'kitt.2' : 0,
4319
- children: [title ? /*#__PURE__*/jsx(Typography.Text, {
4320
- textAlign: !left && right ? 'left' : 'center',
4358
+ flexShrink: 1,
4359
+ paddingRight: "kitt.2",
4360
+ paddingLeft: "kitt.2",
4361
+ children: title ? /*#__PURE__*/jsx(Typography.Text, {
4362
+ textAlign: titleAlign,
4321
4363
  variant: "bold",
4364
+ ellipsizeMode: "tail",
4365
+ numberOfLines: 1,
4322
4366
  children: title
4323
- }) : null, children]
4324
- }), right ? /*#__PURE__*/jsx(View, {
4325
- width: "kitt.iconButton.width",
4326
- children: right
4327
- }) : null]
4328
- })
4329
- }));
4367
+ }) : null
4368
+ }) : null, right !== null && right !== void 0 ? right : /*#__PURE__*/jsx(View, {
4369
+ width: "kitt.iconButton.width"
4370
+ })]
4371
+ }), mode === 'largeTitle' ? /*#__PURE__*/jsxs(VStack, {
4372
+ space: "kitt.4",
4373
+ paddingX: "kitt.2",
4374
+ children: [stickers ? /*#__PURE__*/jsx(HStack, {
4375
+ width: "100%",
4376
+ space: "kitt.1",
4377
+ flexShrink: 1,
4378
+ flexWrap: "wrap",
4379
+ style: {
4380
+ rowGap: theme.getSpacing(1)
4381
+ },
4382
+ children: stickers.map(function (sticker, index) {
4383
+ return (
4384
+ /*#__PURE__*/
4385
+ // eslint-disable-next-line react/no-array-index-key
4386
+ jsx(View, {
4387
+ children: sticker
4388
+ }, index)
4389
+ );
4390
+ })
4391
+ }) : null, /*#__PURE__*/jsx(Typography.Text, {
4392
+ base: "heading-m",
4393
+ children: title
4394
+ })]
4395
+ }) : null]
4396
+ });
4397
+ }
4398
+ function CloseButton(props) {
4399
+ return /*#__PURE__*/jsx(IconButton, _objectSpread({
4400
+ icon: /*#__PURE__*/jsx(XRegularIcon, {})
4401
+ }, props));
4402
+ }
4403
+ function BackButton(props) {
4404
+ return /*#__PURE__*/jsx(IconButton, _objectSpread({
4405
+ icon: /*#__PURE__*/jsx(ArrowLeftRegularIcon, {})
4406
+ }, props));
4407
+ }
4408
+ TopNavBar.CloseButton = CloseButton;
4409
+ TopNavBar.BackButton = BackButton;
4410
+
4411
+ function CardModalHeader(props) {
4412
+ return /*#__PURE__*/jsx(TopNavBar, _objectSpread({}, props));
4330
4413
  }
4331
4414
 
4332
- var _excluded$F = ["backgroundColor", "maxWidth", "withoutShadow", "children", "header", "body", "footer"];
4415
+ var _excluded$E = ["backgroundColor", "maxWidth", "withoutShadow", "children", "header", "body", "footer"];
4333
4416
  function CardModal(_ref) {
4334
4417
  var _ref$backgroundColor = _ref.backgroundColor,
4335
4418
  backgroundColor = _ref$backgroundColor === void 0 ? 'kitt.uiBackgroundLight' : _ref$backgroundColor,
@@ -4340,7 +4423,7 @@ function CardModal(_ref) {
4340
4423
  header = _ref.header,
4341
4424
  body = _ref.body,
4342
4425
  footer = _ref.footer,
4343
- props = _objectWithoutProperties(_ref, _excluded$F);
4426
+ props = _objectWithoutProperties(_ref, _excluded$E);
4344
4427
  return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
4345
4428
  overflow: "hidden",
4346
4429
  backgroundColor: backgroundColor,
@@ -4427,8 +4510,8 @@ function AnimatedChoiceItemView(_ref) {
4427
4510
 
4428
4511
  var useNativeAnimation$3 = function () {
4429
4512
  return {
4430
- onPressIn: function () {},
4431
- onPressOut: function () {},
4513
+ onPressIn: function onPressIn() {},
4514
+ onPressOut: function onPressOut() {},
4432
4515
  backgroundStyles: undefined
4433
4516
  };
4434
4517
  };
@@ -4485,7 +4568,7 @@ function ChoiceItem(_ref) {
4485
4568
  style: style,
4486
4569
  onBlur: onBlur,
4487
4570
  onFocus: onFocus,
4488
- onPress: function (e) {
4571
+ onPress: function handlePress(e) {
4489
4572
  if (onFocus) onFocus(e);
4490
4573
  if (onPress) onPress();
4491
4574
  handleChange();
@@ -4493,7 +4576,7 @@ function ChoiceItem(_ref) {
4493
4576
  },
4494
4577
  onPressIn: onPressIn,
4495
4578
  onPressOut: onPressOut,
4496
- children: function (_ref2) {
4579
+ children: function children(_ref2) {
4497
4580
  var isHovered = _ref2.isHovered,
4498
4581
  isPressed = _ref2.isPressed;
4499
4582
  var textColor = getCurrentTextColor$1({
@@ -4555,11 +4638,11 @@ function ChoiceItemContainer(_ref) {
4555
4638
  }));
4556
4639
  }
4557
4640
 
4558
- var _excluded$E = ["direction", "contentContainerStyle"];
4641
+ var _excluded$D = ["direction", "contentContainerStyle"];
4559
4642
  function ChoicesContainer(_ref) {
4560
4643
  var direction = _ref.direction,
4561
4644
  contentContainerStyle = _ref.contentContainerStyle,
4562
- props = _objectWithoutProperties(_ref, _excluded$E);
4645
+ props = _objectWithoutProperties(_ref, _excluded$D);
4563
4646
  if (direction === 'row') {
4564
4647
  return /*#__PURE__*/jsx(ScrollView$2, _objectSpread({
4565
4648
  horizontal: true,
@@ -4597,7 +4680,7 @@ function Choices(_ref2) {
4597
4680
  type: type,
4598
4681
  disabled: disabled,
4599
4682
  onPress: !isForm ? onPress : undefined,
4600
- onChange: isForm ? function (newValue) {
4683
+ onChange: isForm ? function handleChange(newValue) {
4601
4684
  setCurrentValue(newValue);
4602
4685
  if (onChange) onChange(newValue);
4603
4686
  } : undefined,
@@ -4634,7 +4717,7 @@ var ChoicesElements = {
4634
4717
  ButtonChoices: ButtonChoices
4635
4718
  };
4636
4719
 
4637
- var _excluded$D = ["children", "appear", "visible", "unmountOnExit", "isAnimationEnabled", "onEnter", "onEntered", "onExit", "onExited", "onClose"];
4720
+ var _excluded$C = ["children", "appear", "visible", "unmountOnExit", "isAnimationEnabled", "onEnter", "onEntered", "onExit", "onExited", "onClose"];
4638
4721
  var contentAnimationEnter = "kitt-u_contentAnimationEnter_c1i0gle8";
4639
4722
  var contentAnimatioEnterActive = "kitt-u_contentAnimatioEnterActive_c1jmfkjw";
4640
4723
  var contentAnimatioExit = "kitt-u_contentAnimatioExit_cwjstxl";
@@ -4673,7 +4756,7 @@ function DialogModalAnimation(_ref) {
4673
4756
  onExit = _ref.onExit,
4674
4757
  onExited = _ref.onExited,
4675
4758
  onClose = _ref.onClose,
4676
- props = _objectWithoutProperties(_ref, _excluded$D);
4759
+ props = _objectWithoutProperties(_ref, _excluded$C);
4677
4760
  var theme = useTheme();
4678
4761
  var animation = theme.kitt.dialogModal.animation;
4679
4762
  var sharedProps = {
@@ -4708,13 +4791,13 @@ function DialogModalAnimation(_ref) {
4708
4791
  }));
4709
4792
  }
4710
4793
 
4711
- var _excluded$C = ["children", "visible", "onClose", "onExited"];
4794
+ var _excluded$B = ["children", "visible", "onClose", "onExited"];
4712
4795
  function DialogModalBehaviour(_ref) {
4713
4796
  var children = _ref.children,
4714
4797
  visible = _ref.visible,
4715
4798
  onClose = _ref.onClose,
4716
4799
  onExited = _ref.onExited,
4717
- props = _objectWithoutProperties(_ref, _excluded$C);
4800
+ props = _objectWithoutProperties(_ref, _excluded$B);
4718
4801
  var _useState = useState(visible),
4719
4802
  _useState2 = _slicedToArray(_useState, 2),
4720
4803
  isModalBehaviourVisible = _useState2[0],
@@ -4734,7 +4817,7 @@ function DialogModalBehaviour(_ref) {
4734
4817
  },
4735
4818
  children: /*#__PURE__*/jsx(DialogModalAnimation, _objectSpread(_objectSpread({}, props), {}, {
4736
4819
  visible: visible,
4737
- onExited: function () {
4820
+ onExited: function handleExitAnimationDone() {
4738
4821
  if (onExited) onExited();
4739
4822
  setIsModalBehaviourVisible(false);
4740
4823
  },
@@ -4745,7 +4828,7 @@ function DialogModalBehaviour(_ref) {
4745
4828
  });
4746
4829
  }
4747
4830
 
4748
- var _excluded$B = ["stretch"];
4831
+ var _excluded$A = ["stretch"];
4749
4832
  function DialogModal(_ref) {
4750
4833
  var illustration = _ref.illustration,
4751
4834
  title = _ref.title,
@@ -4785,7 +4868,7 @@ DialogModal.ModalBehaviour = DialogModalBehaviour;
4785
4868
  function DialogModalButton(_ref2) {
4786
4869
  var _ref2$stretch = _ref2.stretch,
4787
4870
  stretch = _ref2$stretch === void 0 ? true : _ref2$stretch,
4788
- props = _objectWithoutProperties(_ref2, _excluded$B);
4871
+ props = _objectWithoutProperties(_ref2, _excluded$A);
4789
4872
  return /*#__PURE__*/jsx(Actions.Button, _objectSpread({
4790
4873
  stretch: stretch
4791
4874
  }, props));
@@ -4822,7 +4905,7 @@ function Emoji(_ref) {
4822
4905
  });
4823
4906
  }
4824
4907
 
4825
- var _excluded$A = ["as", "appScheme", "appValue", "onPress", "onOpenAppError"],
4908
+ var _excluded$z = ["as", "appScheme", "appValue", "onPress", "onOpenAppError"],
4826
4909
  _excluded2$5 = ["phoneNumber", "children"],
4827
4910
  _excluded3$4 = ["phoneNumber", "children"],
4828
4911
  _excluded4$3 = ["emailAddress", "children"];
@@ -4832,7 +4915,7 @@ function ExternalAppLink(_ref) {
4832
4915
  appValue = _ref.appValue,
4833
4916
  onPress = _ref.onPress,
4834
4917
  onOpenAppError = _ref.onOpenAppError,
4835
- rest = _objectWithoutProperties(_ref, _excluded$A);
4918
+ rest = _objectWithoutProperties(_ref, _excluded$z);
4836
4919
  var href = "".concat(appScheme, ":").concat(appValue);
4837
4920
  var handleOnPress = /*#__PURE__*/function () {
4838
4921
  var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(e) {
@@ -4927,14 +5010,14 @@ var defaultOpenLinkBehavior = {
4927
5010
  web: 'targetBlank'
4928
5011
  };
4929
5012
 
4930
- var _excluded$z = ["as", "href", "openLinkBehavior", "onPress"];
5013
+ var _excluded$y = ["as", "href", "openLinkBehavior", "onPress"];
4931
5014
  function ExternalLink(_ref) {
4932
5015
  var Component = _ref.as,
4933
5016
  href = _ref.href,
4934
5017
  _ref$openLinkBehavior = _ref.openLinkBehavior,
4935
5018
  openLinkBehavior = _ref$openLinkBehavior === void 0 ? defaultOpenLinkBehavior : _ref$openLinkBehavior,
4936
5019
  onPress = _ref.onPress,
4937
- rest = _objectWithoutProperties(_ref, _excluded$z);
5020
+ rest = _objectWithoutProperties(_ref, _excluded$y);
4938
5021
  return /*#__PURE__*/jsx(Component, _objectSpread(_objectSpread({}, rest), {}, {
4939
5022
  accessibilityRole: "link",
4940
5023
  href: href,
@@ -5010,7 +5093,7 @@ function InputTextContainer(props) {
5010
5093
  }, props));
5011
5094
  }
5012
5095
 
5013
- var _excluded$y = ["id", "right", "state", "variant", "internalForceState", "disabled", "autoCorrect", "textContentType", "autoComplete", "inputMode", "multiline", "height", "onSubmitEditing"];
5096
+ var _excluded$x = ["id", "right", "state", "variant", "internalForceState", "disabled", "autoCorrect", "textContentType", "autoComplete", "inputMode", "multiline", "height", "onSubmitEditing"];
5014
5097
  var InputText = /*#__PURE__*/forwardRef(function (_ref, ref) {
5015
5098
  var id = _ref.id,
5016
5099
  right = _ref.right;
@@ -5031,7 +5114,7 @@ var InputText = /*#__PURE__*/forwardRef(function (_ref, ref) {
5031
5114
  multiline = _ref.multiline,
5032
5115
  height = _ref.height,
5033
5116
  onSubmitEditing = _ref.onSubmitEditing,
5034
- props = _objectWithoutProperties(_ref, _excluded$y);
5117
+ props = _objectWithoutProperties(_ref, _excluded$x);
5035
5118
  var theme = useTheme();
5036
5119
  var fontSizeForNativeBase = createNativeBaseFontSize({
5037
5120
  base: 'body-m'
@@ -5155,12 +5238,12 @@ function AutocompleteItemsListContainer(_ref) {
5155
5238
  });
5156
5239
  }
5157
5240
 
5158
- var _excluded$x = ["children", "testID"];
5241
+ var _excluded$w = ["children", "testID"];
5159
5242
  function AutocompleteOption(_ref) {
5160
5243
  var children = _ref.children,
5161
5244
  _ref$testID = _ref.testID,
5162
5245
  testID = _ref$testID === void 0 ? 'kitt.Autocomplete.option' : _ref$testID,
5163
- props = _objectWithoutProperties(_ref, _excluded$x);
5246
+ props = _objectWithoutProperties(_ref, _excluded$w);
5164
5247
  return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({
5165
5248
  paddingX: {
5166
5249
  base: 'kitt.2',
@@ -5173,7 +5256,7 @@ function AutocompleteOption(_ref) {
5173
5256
  }));
5174
5257
  }
5175
5258
 
5176
- var _excluded$w = ["children", "name", "disabled", "placeholder", "isInitialOpen", "initialValue", "containerProps", "filterItemBasedOnCurrentInputValue", "checkSelectedItem", "itemToString", "right", "onChange", "onFocus", "onBlur", "onInputChange", "onSelectItem", "onOuterPress", "errorElement", "emptyResultsElement", "inputTestID", "listContainerTestID", "zIndex", "maxItemContainerHeight"],
5259
+ var _excluded$v = ["children", "name", "disabled", "placeholder", "isInitialOpen", "initialValue", "containerProps", "filterItemBasedOnCurrentInputValue", "checkSelectedItem", "itemToString", "right", "onChange", "onFocus", "onBlur", "onInputChange", "onSelectItem", "onOuterPress", "errorElement", "emptyResultsElement", "inputTestID", "listContainerTestID", "zIndex", "maxItemContainerHeight"],
5177
5260
  _excluded2$4 = ["onClick", "onPress"],
5178
5261
  _excluded3$3 = ["onKeyDown", "onFocus", "onBlur", "onChange"],
5179
5262
  _excluded4$2 = ["onClick", "onPress", "role", "aria-selected"];
@@ -5181,7 +5264,7 @@ function isReactElement(element) {
5181
5264
  return _typeof(element) === 'object' && element !== null && 'type' in element && 'props' in element;
5182
5265
  }
5183
5266
  function Autocomplete(_ref) {
5184
- var children = _ref.children,
5267
+ var _children = _ref.children,
5185
5268
  name = _ref.name,
5186
5269
  disabled = _ref.disabled,
5187
5270
  placeholder = _ref.placeholder,
@@ -5207,8 +5290,8 @@ function Autocomplete(_ref) {
5207
5290
  _ref$zIndex = _ref.zIndex,
5208
5291
  zIndex = _ref$zIndex === void 0 ? 1000 : _ref$zIndex,
5209
5292
  maxItemContainerHeight = _ref.maxItemContainerHeight,
5210
- props = _objectWithoutProperties(_ref, _excluded$w);
5211
- var childrenArray = Children.toArray(children);
5293
+ props = _objectWithoutProperties(_ref, _excluded$v);
5294
+ var childrenArray = Children.toArray(_children);
5212
5295
  var items = childrenArray.filter(isReactElement).map(function (child) {
5213
5296
  return {
5214
5297
  child: child,
@@ -5219,12 +5302,12 @@ function Autocomplete(_ref) {
5219
5302
  defaultIsOpen: isInitialOpen,
5220
5303
  initialSelectedItem: initialValue,
5221
5304
  initialInputValue: initialValue ? itemToString(initialValue) : undefined,
5222
- itemToString: function (item) {
5305
+ itemToString: function handleItemToString(item) {
5223
5306
  // Prevents returning null values
5224
5307
  if (!itemToString) return '';
5225
5308
  return itemToString(item || undefined);
5226
5309
  },
5227
- stateReducer: function (state, changes) {
5310
+ stateReducer: function stateReducer(state, changes) {
5228
5311
  switch (changes.type) {
5229
5312
  case Downshift.stateChangeTypes.changeInput:
5230
5313
  return _objectSpread(_objectSpread({}, changes), {}, {
@@ -5234,7 +5317,7 @@ function Autocomplete(_ref) {
5234
5317
  return changes;
5235
5318
  }
5236
5319
  },
5237
- onChange: function (selectedItem, stateAndHelpers) {
5320
+ onChange: function onChange(selectedItem, stateAndHelpers) {
5238
5321
  if (_onChange) {
5239
5322
  _onChange(selectedItem, stateAndHelpers);
5240
5323
  }
@@ -5242,7 +5325,7 @@ function Autocomplete(_ref) {
5242
5325
  onSelect: onSelectItem,
5243
5326
  onOuterClick: onOuterPress,
5244
5327
  onInputValueChange: onInputChange,
5245
- children: function (_ref2) {
5328
+ children: function children(_ref2) {
5246
5329
  var getRootProps = _ref2.getRootProps,
5247
5330
  getInputProps = _ref2.getInputProps,
5248
5331
  getMenuProps = _ref2.getMenuProps,
@@ -5294,20 +5377,20 @@ function Autocomplete(_ref) {
5294
5377
  right: right || (canDisplayCollapseButton ? /*#__PURE__*/jsx(InputPressable, _objectSpread(_objectSpread({}, toggleProps), {}, {
5295
5378
  testID: "kitt.Autocomplete.listToggle",
5296
5379
  hitSlop: 40,
5297
- onPress: function (e) {
5380
+ onPress: function handleTogglePress(e) {
5298
5381
  onClickToggle(e);
5299
5382
  },
5300
5383
  children: /*#__PURE__*/jsx(InputIcon, {
5301
5384
  icon: isCurrentlyOpen ? /*#__PURE__*/jsx(CaretUpFillIcon, {}) : /*#__PURE__*/jsx(CaretDownFillIcon, {})
5302
5385
  })
5303
5386
  })) : null),
5304
- onFocus: function (e) {
5387
+ onFocus: function onFocus(e) {
5305
5388
  openMenu();
5306
5389
  /** @ts-expect-error onFocus wants web events */
5307
5390
  if (onSearchInputFocus) onSearchInputFocus(e);
5308
5391
  if (_onFocus) _onFocus(e);
5309
5392
  },
5310
- onBlur: function (e) {
5393
+ onBlur: function onBlur(e) {
5311
5394
  /** @ts-expect-error onBlur wants web events */
5312
5395
  if (onSearchInputBlur) onSearchInputBlur(e);
5313
5396
 
@@ -5343,10 +5426,10 @@ function Autocomplete(_ref) {
5343
5426
  selected: ariaSelected
5344
5427
  },
5345
5428
  disabled: disabled,
5346
- onPress: function (e) {
5429
+ onPress: function onPress(e) {
5347
5430
  if (onClick) onClick(e);
5348
5431
  },
5349
- children: function (_ref5) {
5432
+ children: function children(_ref5) {
5350
5433
  var isHovered = _ref5.isHovered,
5351
5434
  isFocused = _ref5.isFocused,
5352
5435
  isPressed = _ref5.isPressed;
@@ -5414,7 +5497,7 @@ function getBorderColor$1(_ref) {
5414
5497
  return 'kitt.forms.checkbox.default.borderColor';
5415
5498
  }
5416
5499
 
5417
- var _excluded$v = ["checked", "hitSlop", "children", "disabled", "onChange", "onBlur", "onFocus"];
5500
+ var _excluded$u = ["checked", "hitSlop", "children", "disabled", "onChange", "onBlur", "onFocus"];
5418
5501
  var Checkbox = /*#__PURE__*/forwardRef(function (_ref, ref) {
5419
5502
  var checked = _ref.checked,
5420
5503
  _ref$hitSlop = _ref.hitSlop,
@@ -5424,7 +5507,7 @@ var Checkbox = /*#__PURE__*/forwardRef(function (_ref, ref) {
5424
5507
  onChange = _ref.onChange,
5425
5508
  onBlur = _ref.onBlur,
5426
5509
  onFocus = _ref.onFocus,
5427
- props = _objectWithoutProperties(_ref, _excluded$v);
5510
+ props = _objectWithoutProperties(_ref, _excluded$u);
5428
5511
  var theme = useTheme();
5429
5512
  return /*#__PURE__*/jsx(Pressable, _objectSpread(_objectSpread({
5430
5513
  hitSlop: hitSlop
@@ -5436,12 +5519,12 @@ var Checkbox = /*#__PURE__*/forwardRef(function (_ref, ref) {
5436
5519
  disabled: disabled
5437
5520
  },
5438
5521
  disabled: disabled,
5439
- onPress: function (e) {
5522
+ onPress: function handlePress(e) {
5440
5523
  if (onFocus) onFocus();
5441
5524
  if (onChange) onChange(!checked, e);
5442
5525
  if (onBlur) onBlur();
5443
5526
  },
5444
- children: function (_ref2) {
5527
+ children: function children(_ref2) {
5445
5528
  var isHovered = _ref2.isHovered,
5446
5529
  isPressed = _ref2.isPressed,
5447
5530
  isFocused = _ref2.isFocused;
@@ -5740,7 +5823,7 @@ function PartContainer(_ref) {
5740
5823
  });
5741
5824
  }
5742
5825
 
5743
- var _excluded$u = ["id", "value", "testID", "stretch", "placeholder", "minDate", "maxDate", "disabled", "isFocusedInternal", "isHoveredInternal", "isPressedInternal", "enterKeyHint", "onChange", "onBlur", "onFocus", "onSubmitEditing"];
5826
+ var _excluded$t = ["id", "value", "testID", "stretch", "placeholder", "minDate", "maxDate", "disabled", "isFocusedInternal", "isHoveredInternal", "isPressedInternal", "enterKeyHint", "onChange", "onBlur", "onFocus", "onSubmitEditing"];
5744
5827
  var KeyboardDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
5745
5828
  var id = _ref.id,
5746
5829
  value = _ref.value,
@@ -5758,7 +5841,7 @@ var KeyboardDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
5758
5841
  onBlur = _ref.onBlur,
5759
5842
  onFocus = _ref.onFocus,
5760
5843
  onSubmitEditing = _ref.onSubmitEditing;
5761
- _objectWithoutProperties(_ref, _excluded$u);
5844
+ _objectWithoutProperties(_ref, _excluded$t);
5762
5845
  var monthRef = useRef(null);
5763
5846
  var yearRef = useRef(null);
5764
5847
  var defaultValue = value;
@@ -5898,10 +5981,10 @@ var KeyboardDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
5898
5981
  });
5899
5982
  });
5900
5983
 
5901
- var _excluded$t = ["value"];
5984
+ var _excluded$s = ["value"];
5902
5985
  var DatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
5903
5986
  var value = _ref.value,
5904
- props = _objectWithoutProperties(_ref, _excluded$t);
5987
+ props = _objectWithoutProperties(_ref, _excluded$s);
5905
5988
  // in apps, final-form can give a string value that will break the component
5906
5989
  var currentValue = value || undefined;
5907
5990
  return /*#__PURE__*/jsx(KeyboardDatePicker, _objectSpread(_objectSpread({
@@ -6250,10 +6333,10 @@ var GoogleMapsAutocompleteContext = /*#__PURE__*/createContext({
6250
6333
  isLoadingResultDetails: false,
6251
6334
  shouldDisplayEmptyStateWhenNoResults: false
6252
6335
  },
6253
- onInputChange: function () {
6336
+ onInputChange: function onInputChange() {
6254
6337
  return Promise.resolve();
6255
6338
  },
6256
- onSelectItem: function () {}
6339
+ onSelectItem: function onSelectItem() {}
6257
6340
  });
6258
6341
  function GoogleMapsAutocompleteProvider(_ref) {
6259
6342
  var children = _ref.children,
@@ -6485,7 +6568,7 @@ function formatInitialValueToAutocompletePrediction(address, placeId) {
6485
6568
  };
6486
6569
  }
6487
6570
 
6488
- var _excluded$s = ["initialValue", "itemToString", "errorElement", "emptyResultsElement", "onChange"];
6571
+ var _excluded$r = ["initialValue", "itemToString", "errorElement", "emptyResultsElement", "onChange"];
6489
6572
  function InputAddress(_ref) {
6490
6573
  var initialValue = _ref.initialValue,
6491
6574
  _ref$itemToString = _ref.itemToString,
@@ -6493,7 +6576,7 @@ function InputAddress(_ref) {
6493
6576
  errorElement = _ref.errorElement,
6494
6577
  emptyResultsElement = _ref.emptyResultsElement,
6495
6578
  _onChange = _ref.onChange,
6496
- props = _objectWithoutProperties(_ref, _excluded$s);
6579
+ props = _objectWithoutProperties(_ref, _excluded$r);
6497
6580
  var _useGoogleMapsAutocom = useGoogleMapsAutocomplete(),
6498
6581
  state = _useGoogleMapsAutocom.state,
6499
6582
  _onInputChange = _useGoogleMapsAutocom.onInputChange,
@@ -6504,7 +6587,7 @@ function InputAddress(_ref) {
6504
6587
  return /*#__PURE__*/jsx(Autocomplete, _objectSpread(_objectSpread({}, props), {}, {
6505
6588
  itemToString: itemToString,
6506
6589
  initialValue: formattedInitialValue,
6507
- checkSelectedItem: function (selectedItem, item) {
6590
+ checkSelectedItem: function checkSelectedItem(selectedItem, item) {
6508
6591
  return (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.place_id) === item.place_id;
6509
6592
  },
6510
6593
  right: state.isLoadingSearch || state.isLoadingResultDetails ? /*#__PURE__*/jsx(Icon, {
@@ -6513,10 +6596,10 @@ function InputAddress(_ref) {
6513
6596
  }) : undefined,
6514
6597
  errorElement: state.hasSearchError || state.hasSelectResultError ? errorElement : null,
6515
6598
  emptyResultsElement: state.items.length === 0 ? emptyResultsElement : null,
6516
- onInputChange: function (v) {
6599
+ onInputChange: function onInputChange(v) {
6517
6600
  _onInputChange(v);
6518
6601
  },
6519
- onChange: function (v) {
6602
+ onChange: function onChange(v) {
6520
6603
  onSelectItem(v, _onChange);
6521
6604
  },
6522
6605
  children: state.items.map(function (item) {
@@ -6590,15 +6673,15 @@ var InputIban = /*#__PURE__*/forwardRef(function (props, ref) {
6590
6673
  }, props));
6591
6674
  });
6592
6675
 
6593
- var _excluded$r = ["onChange"];
6676
+ var _excluded$q = ["onChange"];
6594
6677
  var InputNumber = /*#__PURE__*/forwardRef(function (_ref, ref) {
6595
6678
  var onChange = _ref.onChange,
6596
- props = _objectWithoutProperties(_ref, _excluded$r);
6679
+ props = _objectWithoutProperties(_ref, _excluded$q);
6597
6680
  return /*#__PURE__*/jsx(InputText, _objectSpread(_objectSpread({
6598
6681
  ref: ref
6599
6682
  }, props), {}, {
6600
6683
  inputMode: "numeric",
6601
- onChange: function (event) {
6684
+ onChange: function handleChange(event) {
6602
6685
  if (!onChange) return;
6603
6686
  var value = parseFloat(event.nativeEvent.text);
6604
6687
 
@@ -6610,11 +6693,11 @@ var InputNumber = /*#__PURE__*/forwardRef(function (_ref, ref) {
6610
6693
  }));
6611
6694
  });
6612
6695
 
6613
- var _excluded$q = ["isPasswordDefaultVisible", "right"];
6696
+ var _excluded$p = ["isPasswordDefaultVisible", "right"];
6614
6697
  var InputPassword = /*#__PURE__*/forwardRef(function (_ref, ref) {
6615
6698
  var isPasswordDefaultVisible = _ref.isPasswordDefaultVisible,
6616
6699
  right = _ref.right,
6617
- props = _objectWithoutProperties(_ref, _excluded$q);
6700
+ props = _objectWithoutProperties(_ref, _excluded$p);
6618
6701
  var _useState = useState(Boolean(isPasswordDefaultVisible)),
6619
6702
  _useState2 = _slicedToArray(_useState, 2),
6620
6703
  isVisible = _useState2[0],
@@ -6630,7 +6713,7 @@ var InputPassword = /*#__PURE__*/forwardRef(function (_ref, ref) {
6630
6713
  testID: "kitt.InputPassword.passwordToggle",
6631
6714
  hitSlop: 20,
6632
6715
  accessibilityRole: "button",
6633
- onPress: function () {
6716
+ onPress: function onPress() {
6634
6717
  return setIsVisible(function (prev) {
6635
6718
  return !prev;
6636
6719
  });
@@ -6642,7 +6725,7 @@ var InputPassword = /*#__PURE__*/forwardRef(function (_ref, ref) {
6642
6725
  }));
6643
6726
  });
6644
6727
 
6645
- var _excluded$p = ["enterKeyHint", "autoComplete", "phoneNumberLength", "onChange"];
6728
+ var _excluded$o = ["enterKeyHint", "autoComplete", "phoneNumberLength", "onChange"];
6646
6729
  function isPhoneNumberValid(number) {
6647
6730
  return isValidNumber(number);
6648
6731
  }
@@ -6656,7 +6739,7 @@ var InputPhone = /*#__PURE__*/forwardRef(function (_ref, ref) {
6656
6739
  _ref$phoneNumberLengt = _ref.phoneNumberLength,
6657
6740
  phoneNumberLength = _ref$phoneNumberLengt === void 0 ? 10 : _ref$phoneNumberLengt,
6658
6741
  onChange = _ref.onChange,
6659
- props = _objectWithoutProperties(_ref, _excluded$p);
6742
+ props = _objectWithoutProperties(_ref, _excluded$o);
6660
6743
  var currentEnterKeyHint = enterKeyHint ? getEnterKeyHintForNumericInput(enterKeyHint) : undefined;
6661
6744
  return /*#__PURE__*/jsx(InputText, _objectSpread(_objectSpread({
6662
6745
  ref: ref
@@ -6665,7 +6748,7 @@ var InputPhone = /*#__PURE__*/forwardRef(function (_ref, ref) {
6665
6748
  enterKeyHint: currentEnterKeyHint,
6666
6749
  autoComplete: autoComplete,
6667
6750
  textContentType: "telephoneNumber",
6668
- onChange: function (event) {
6751
+ onChange: function handleChange(event) {
6669
6752
  var number = parseNumber(event.nativeEvent.text);
6670
6753
 
6671
6754
  // When intl phone number is valid :
@@ -6857,14 +6940,14 @@ function Radio(_ref, ref) {
6857
6940
  focusable: checked && !disabled,
6858
6941
  flexDirection: "row",
6859
6942
  alignItems: "center",
6860
- onPress: function (event) {
6943
+ onPress: function handlePress(event) {
6861
6944
  if (onFocus) onFocus();
6862
6945
  if (onChange) onChange(value, event);
6863
6946
  if (onBlur) onBlur();
6864
6947
  },
6865
6948
  onFocus: onFocus,
6866
6949
  onBlur: onBlur,
6867
- children: function (_ref2) {
6950
+ children: function children(_ref2) {
6868
6951
  var isHovered = _ref2.isHovered,
6869
6952
  isPressed = _ref2.isPressed,
6870
6953
  isFocused = _ref2.isFocused;
@@ -7040,7 +7123,7 @@ function RadioButton(_ref) {
7040
7123
  flexShrink: createResponsiveStyleFromProp(stretch, 1, undefined),
7041
7124
  flexBasis: createResponsiveStyleFromProp(stretch, 0),
7042
7125
  disabled: disabled,
7043
- onPress: function (e) {
7126
+ onPress: function handlePress(e) {
7044
7127
  if (onFocus) onFocus(e);
7045
7128
  if (onChange) onChange(value);
7046
7129
  if (onBlur) onBlur(e);
@@ -7049,7 +7132,7 @@ function RadioButton(_ref) {
7049
7132
  onPressOut: onPressOut,
7050
7133
  onFocus: onFocus,
7051
7134
  onBlur: onBlur,
7052
- children: function (_ref2) {
7135
+ children: function children(_ref2) {
7053
7136
  var isHovered = _ref2.isHovered,
7054
7137
  isPressed = _ref2.isPressed,
7055
7138
  isFocused = _ref2.isFocused;
@@ -7092,7 +7175,7 @@ function RadioButton(_ref) {
7092
7175
  });
7093
7176
  }
7094
7177
 
7095
- var _excluded$o = ["children", "stretch", "value", "disabled", "onFocus", "onBlur", "onChange"];
7178
+ var _excluded$n = ["children", "stretch", "value", "disabled", "onFocus", "onBlur", "onChange"];
7096
7179
  function RadioButtonGroupItem(_ref) {
7097
7180
  var props = _extends({}, (_objectDestructuringEmpty(_ref), _ref));
7098
7181
  return /*#__PURE__*/jsx(RadioButton, _objectSpread({}, props));
@@ -7105,7 +7188,7 @@ function RadioButtonGroup(_ref2) {
7105
7188
  onFocus = _ref2.onFocus,
7106
7189
  onBlur = _ref2.onBlur,
7107
7190
  onChange = _ref2.onChange,
7108
- props = _objectWithoutProperties(_ref2, _excluded$o);
7191
+ props = _objectWithoutProperties(_ref2, _excluded$n);
7109
7192
  var _useState = useState(value),
7110
7193
  _useState2 = _slicedToArray(_useState, 2),
7111
7194
  currentValue = _useState2[0],
@@ -7137,12 +7220,12 @@ function RadioButtonGroup(_ref2) {
7137
7220
  }
7138
7221
  RadioButtonGroup.RadioButton = RadioButtonGroupItem;
7139
7222
 
7140
- var _excluded$n = ["helper", "limit"];
7223
+ var _excluded$m = ["helper", "limit"];
7141
7224
  var TextArea = /*#__PURE__*/forwardRef(function (_ref, ref) {
7142
7225
  var _props$value, _props$value2;
7143
7226
  var helper = _ref.helper,
7144
7227
  limit = _ref.limit,
7145
- props = _objectWithoutProperties(_ref, _excluded$n);
7228
+ props = _objectWithoutProperties(_ref, _excluded$m);
7146
7229
  var shouldDisplayLimit = limit && limit > 0;
7147
7230
  var isLimitReached = ((_props$value = props.value) === null || _props$value === void 0 ? void 0 : _props$value.length) === limit;
7148
7231
  var limitContainerAnimatedStyle = useAnimatedStyle(function () {
@@ -7168,7 +7251,7 @@ var TextArea = /*#__PURE__*/forwardRef(function (_ref, ref) {
7168
7251
  textAlignVertical: "top",
7169
7252
  minHeight: "kitt.forms.textArea.minHeight"
7170
7253
  }, props), {}, {
7171
- onChange: function (e) {
7254
+ onChange: function handleOnChange(e) {
7172
7255
  if (!limit || e.nativeEvent.text.length <= limit) {
7173
7256
  var _props$onChange;
7174
7257
  (_props$onChange = props.onChange) === null || _props$onChange === void 0 || _props$onChange.call(props, e);
@@ -7301,7 +7384,7 @@ function ToggleAnimated(_ref) {
7301
7384
  });
7302
7385
  }
7303
7386
 
7304
- var _excluded$m = ["isDisabled", "isHoveredInternal", "isFocusedInternal", "isPressedInternal", "label", "variant", "size", "value", "onChange"];
7387
+ var _excluded$l = ["isDisabled", "isHoveredInternal", "isFocusedInternal", "isPressedInternal", "label", "variant", "size", "value", "onChange"];
7305
7388
  var getLabelTypographyType = function (size) {
7306
7389
  return size === 'medium' ? 'body-m' : 'body-l';
7307
7390
  };
@@ -7323,7 +7406,7 @@ function Toggle(_ref) {
7323
7406
  value = _ref$value === void 0 ? false : _ref$value,
7324
7407
  _ref$onChange = _ref.onChange,
7325
7408
  onChange = _ref$onChange === void 0 ? function () {} : _ref$onChange,
7326
- props = _objectWithoutProperties(_ref, _excluded$m);
7409
+ props = _objectWithoutProperties(_ref, _excluded$l);
7327
7410
  var theme = useKittTheme();
7328
7411
  return /*#__PURE__*/jsxs(HStack, _objectSpread(_objectSpread({
7329
7412
  alignItems: "center"
@@ -7331,10 +7414,10 @@ function Toggle(_ref) {
7331
7414
  children: [/*#__PURE__*/jsx(Pressable, {
7332
7415
  accessibilityRole: "togglebutton",
7333
7416
  disabled: isDisabled,
7334
- onPress: function () {
7417
+ onPress: function handlePress() {
7335
7418
  onChange(!value);
7336
7419
  },
7337
- children: function (_ref2) {
7420
+ children: function children(_ref2) {
7338
7421
  var isHovered = _ref2.isHovered,
7339
7422
  isPressed = _ref2.isPressed,
7340
7423
  isFocused = _ref2.isFocused;
@@ -7362,13 +7445,13 @@ function Toggle(_ref) {
7362
7445
  }));
7363
7446
  }
7364
7447
 
7365
- var _excluded$l = ["children", "shouldHandleBottomNotch", "style", "shouldHandleTopNotch"];
7448
+ var _excluded$k = ["children", "shouldHandleBottomNotch", "style", "shouldHandleTopNotch"];
7366
7449
  function FullscreenModalBody(_ref) {
7367
7450
  var children = _ref.children,
7368
7451
  shouldHandleBottomNotch = _ref.shouldHandleBottomNotch,
7369
7452
  style = _ref.style,
7370
7453
  shouldHandleTopNotch = _ref.shouldHandleTopNotch,
7371
- props = _objectWithoutProperties(_ref, _excluded$l);
7454
+ props = _objectWithoutProperties(_ref, _excluded$k);
7372
7455
  var _useSafeAreaInsets = useSafeAreaInsets(),
7373
7456
  bottom = _useSafeAreaInsets.bottom,
7374
7457
  top = _useSafeAreaInsets.top;
@@ -7388,14 +7471,14 @@ function FullscreenModalBody(_ref) {
7388
7471
  }));
7389
7472
  }
7390
7473
 
7391
- var _excluded$k = ["shouldHandleBottomNotch", "hasSeparator", "children"];
7474
+ var _excluded$j = ["shouldHandleBottomNotch", "hasSeparator", "children"];
7392
7475
  function FullscreenModalFooter(_ref) {
7393
7476
  var _ref$shouldHandleBott = _ref.shouldHandleBottomNotch,
7394
7477
  shouldHandleBottomNotch = _ref$shouldHandleBott === void 0 ? true : _ref$shouldHandleBott,
7395
7478
  _ref$hasSeparator = _ref.hasSeparator,
7396
7479
  hasSeparator = _ref$hasSeparator === void 0 ? true : _ref$hasSeparator,
7397
7480
  children = _ref.children,
7398
- props = _objectWithoutProperties(_ref, _excluded$k);
7481
+ props = _objectWithoutProperties(_ref, _excluded$j);
7399
7482
  var _useSafeAreaInsets = useSafeAreaInsets(),
7400
7483
  bottom = _useSafeAreaInsets.bottom;
7401
7484
  return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({
@@ -7412,7 +7495,7 @@ function FullscreenModalFooter(_ref) {
7412
7495
  }));
7413
7496
  }
7414
7497
 
7415
- var _excluded$j = ["children", "appear", "visible", "unmountOnExit", "isAnimationEnabled", "onEnter", "onEntered", "onExit", "onExited", "onClose"];
7498
+ var _excluded$i = ["children", "appear", "visible", "unmountOnExit", "isAnimationEnabled", "onEnter", "onEntered", "onExit", "onExited", "onClose"];
7416
7499
  var slideInFromBottomEnter = "kitt-u_slideInFromBottomEnter_s1717rto";
7417
7500
  var slideInFromBottomEnterActive = "kitt-u_slideInFromBottomEnterActive_sux6xgc";
7418
7501
  var slideInFromBottomExit = "kitt-u_slideInFromBottomExit_sl0lsxt";
@@ -7451,7 +7534,7 @@ function FullscreenModalAnimation(_ref) {
7451
7534
  onExit = _ref.onExit,
7452
7535
  onExited = _ref.onExited,
7453
7536
  onClose = _ref.onClose,
7454
- props = _objectWithoutProperties(_ref, _excluded$j);
7537
+ props = _objectWithoutProperties(_ref, _excluded$i);
7455
7538
  var theme = useTheme();
7456
7539
  var animation = theme.kitt.fullscreenModal.animation;
7457
7540
  var sharedProps = {
@@ -7478,13 +7561,13 @@ function FullscreenModalAnimation(_ref) {
7478
7561
  }));
7479
7562
  }
7480
7563
 
7481
- var _excluded$i = ["children", "visible", "onClose", "onExited"];
7564
+ var _excluded$h = ["children", "visible", "onClose", "onExited"];
7482
7565
  function FullscreenModalBehaviour(_ref) {
7483
7566
  var children = _ref.children,
7484
7567
  visible = _ref.visible,
7485
7568
  onClose = _ref.onClose,
7486
7569
  onExited = _ref.onExited,
7487
- props = _objectWithoutProperties(_ref, _excluded$i);
7570
+ props = _objectWithoutProperties(_ref, _excluded$h);
7488
7571
  var _useState = useState(visible),
7489
7572
  _useState2 = _slicedToArray(_useState, 2),
7490
7573
  isModalBehaviourVisible = _useState2[0],
@@ -7499,7 +7582,7 @@ function FullscreenModalBehaviour(_ref) {
7499
7582
  onClose: onClose,
7500
7583
  children: /*#__PURE__*/jsx(FullscreenModalAnimation, _objectSpread(_objectSpread({}, props), {}, {
7501
7584
  visible: visible,
7502
- onExited: function () {
7585
+ onExited: function handleExitAnimationDone() {
7503
7586
  if (onExited) onExited();
7504
7587
  setIsModalBehaviourVisible(false);
7505
7588
  },
@@ -7531,64 +7614,17 @@ function FullscreenModalContainer(_ref) {
7531
7614
  });
7532
7615
  }
7533
7616
 
7534
- var _excluded$h = ["hasSeparator", "isTransparent", "title", "children", "right", "left", "shouldHandleTopNotch"];
7617
+ var _excluded$g = ["shouldHandleTopNotch"];
7535
7618
  function FullscreenModalHeader(_ref) {
7536
- var _ref$hasSeparator = _ref.hasSeparator,
7537
- hasSeparator = _ref$hasSeparator === void 0 ? true : _ref$hasSeparator,
7538
- isTransparent = _ref.isTransparent,
7539
- title = _ref.title,
7540
- children = _ref.children,
7541
- right = _ref.right,
7542
- left = _ref.left,
7543
- _ref$shouldHandleTopN = _ref.shouldHandleTopNotch,
7619
+ var _ref$shouldHandleTopN = _ref.shouldHandleTopNotch,
7544
7620
  shouldHandleTopNotch = _ref$shouldHandleTopN === void 0 ? true : _ref$shouldHandleTopN,
7545
- props = _objectWithoutProperties(_ref, _excluded$h);
7621
+ props = _objectWithoutProperties(_ref, _excluded$g);
7546
7622
  var _useSafeAreaInsets = useSafeAreaInsets(),
7547
7623
  top = _useSafeAreaInsets.top;
7548
- var hasRight = Boolean(right);
7549
- var hasLeft = Boolean(left);
7550
- var hasContent = Boolean(title || children);
7551
- return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({
7552
- backgroundColor: isTransparent ? 'kitt.transparent' : 'kitt.uiBackgroundLight',
7553
- minHeight: "kitt.fullscreenModal.header.height",
7554
- width: "100%",
7555
- justifyContent: "center",
7624
+ return /*#__PURE__*/jsx(View, {
7556
7625
  paddingTop: shouldHandleTopNotch ? top : undefined,
7557
- paddingRight: hasRight ? 'kitt.2' : 'kitt.fullscreenModal.horizontalPadding',
7558
- paddingLeft: hasLeft ? 'kitt.2' : 'kitt.fullscreenModal.horizontalPadding',
7559
- borderBottomColor: "kitt.separator",
7560
- borderBottomWidth: hasSeparator ? 1 : undefined
7561
- }, props), {}, {
7562
- children: /*#__PURE__*/jsxs(View, {
7563
- flexDirection: "row",
7564
- alignItems: "center",
7565
- justifyContent: !hasContent && !hasLeft ? 'flex-end' : 'space-between',
7566
- children: [left ? /*#__PURE__*/jsx(View, {
7567
- width: "kitt.iconButton.width",
7568
- children: left
7569
- }) : null, title ? /*#__PURE__*/jsx(View, {
7570
- flexGrow: 1,
7571
- flexShrink: 1,
7572
- paddingLeft: hasLeft ? 'kitt.2' : undefined,
7573
- paddingRight: hasRight ? 'kitt.2' : 0,
7574
- children: /*#__PURE__*/jsx(Typography.Text, {
7575
- variant: "bold",
7576
- textAlign: !hasLeft && hasRight ? 'left' : 'center',
7577
- children: title
7578
- })
7579
- }) : null, children ? /*#__PURE__*/jsx(View, {
7580
- flexGrow: 1,
7581
- flexShrink: 1,
7582
- alignItems: "center",
7583
- paddingLeft: hasLeft ? 'kitt.2' : undefined,
7584
- paddingRight: hasRight ? 'kitt.2' : undefined,
7585
- children: children
7586
- }) : null, right || left ? /*#__PURE__*/jsx(View, {
7587
- width: "kitt.iconButton.width",
7588
- children: right
7589
- }) : null]
7590
- })
7591
- }));
7626
+ children: /*#__PURE__*/jsx(TopNavBar, _objectSpread({}, props))
7627
+ });
7592
7628
  }
7593
7629
 
7594
7630
  function FullscreenModal(_ref) {
@@ -7798,13 +7834,13 @@ function Highlight(_ref) {
7798
7834
  });
7799
7835
  }
7800
7836
  return /*#__PURE__*/jsx(Pressable, {
7801
- onPress: function () {
7837
+ onPress: function handlePress() {
7802
7838
  setIsExpanded(!isExpanded);
7803
7839
  setIsInitialRender(false);
7804
7840
  },
7805
7841
  onPressIn: onPressIn,
7806
7842
  onPressOut: onPressOut,
7807
- children: function (_ref2) {
7843
+ children: function children(_ref2) {
7808
7844
  var isHovered = _ref2.isHovered;
7809
7845
  return /*#__PURE__*/jsxs(AnimatedContainer, {
7810
7846
  isHovered: isHovered,
@@ -7858,60 +7894,6 @@ function Highlight(_ref) {
7858
7894
  });
7859
7895
  }
7860
7896
 
7861
- var getButtonTypeAndVariant = function (iconColor) {
7862
- switch (iconColor) {
7863
- case 'black':
7864
- return {
7865
- type: 'tertiary'
7866
- };
7867
- case 'secondary':
7868
- return {
7869
- type: 'secondary'
7870
- };
7871
- case 'primary':
7872
- return {
7873
- type: 'primary'
7874
- };
7875
- case 'primary-plain':
7876
- return {
7877
- type: 'primary'
7878
- };
7879
- case 'ghost':
7880
- return {
7881
- type: 'tertiary',
7882
- variant: 'revert'
7883
- };
7884
- default:
7885
- return {
7886
- type: 'secondary'
7887
- };
7888
- }
7889
- };
7890
-
7891
- var _excluded$g = ["color", "ariaLabel"];
7892
- /**
7893
- * @deprecated IconButton should only be used as a navigation button
7894
- * Other use cases should use a <Button> component with an icon
7895
- */
7896
- function IconButton(_ref) {
7897
- var _ref$color = _ref.color,
7898
- color = _ref$color === void 0 ? 'black' : _ref$color;
7899
- _ref.ariaLabel;
7900
- var props = _objectWithoutProperties(_ref, _excluded$g);
7901
- var _getButtonTypeAndVari = getButtonTypeAndVariant(color),
7902
- legacyColorToType = _getButtonTypeAndVari.type,
7903
- legacyColorToVariant = _getButtonTypeAndVari.variant;
7904
- return /*#__PURE__*/jsx(Button, _objectSpread({
7905
- variant: legacyColorToVariant,
7906
- type: legacyColorToType
7907
- }, props));
7908
- }
7909
- function CloseIconButton(props) {
7910
- return /*#__PURE__*/jsx(IconButton, _objectSpread({
7911
- icon: /*#__PURE__*/jsx(XRegularIcon, {})
7912
- }, props));
7913
- }
7914
-
7915
7897
  function InfoCard(_ref) {
7916
7898
  var title = _ref.title,
7917
7899
  action = _ref.action,
@@ -8279,7 +8261,7 @@ function MapMarker(_ref2) {
8279
8261
  return /*#__PURE__*/jsx(Pressable$1, {
8280
8262
  testID: testID,
8281
8263
  onPress: onPress,
8282
- children: function (_ref3) {
8264
+ children: function children(_ref3) {
8283
8265
  var isHovered = _ref3.isHovered;
8284
8266
  return /*#__PURE__*/jsx(StaticMapMarker$1, _objectSpread(_objectSpread({}, props), {}, {
8285
8267
  isHovered: isHovered
@@ -9722,9 +9704,6 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
9722
9704
  },
9723
9705
  icon: theme.icon,
9724
9706
  cardModal: {
9725
- header: {
9726
- height: theme.cardModal.header.height
9727
- },
9728
9707
  maxWidth: theme.cardModal.maxWidth,
9729
9708
  maxWidthWithPadding: theme.cardModal.maxWidthWithPadding,
9730
9709
  minHeight: theme.cardModal.minHeight
@@ -10029,11 +10008,6 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
10029
10008
  width: theme.iconButton.width,
10030
10009
  height: theme.iconButton.height
10031
10010
  },
10032
- fullscreenModal: {
10033
- header: {
10034
- height: theme.fullscreenModal.header.height
10035
- }
10036
- },
10037
10011
  pageLoader: {
10038
10012
  size: theme.pageLoader.size
10039
10013
  },
@@ -10128,7 +10102,7 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
10128
10102
  }
10129
10103
  },
10130
10104
  fullscreenModal: {
10131
- horizontalPadding: theme.fullscreenModal.sharedHorizontalPadding,
10105
+ horizontalPadding: theme.fullscreenModal.horizontalPadding,
10132
10106
  body: {
10133
10107
  verticalPadding: theme.fullscreenModal.body.verticalPadding
10134
10108
  },
@@ -11028,19 +11002,19 @@ function NavigationModalBehaviour(_ref) {
11028
11002
  children: /*#__PURE__*/jsx(AnimationComponent, _objectSpread(_objectSpread({}, props), {}, {
11029
11003
  appear: shouldAppear,
11030
11004
  visible: visible,
11031
- onEnter: function () {
11005
+ onEnter: function handleEnter() {
11032
11006
  if (onEnter) onEnter();
11033
11007
 
11034
11008
  // Once a children as been displayed, we force appear to false in order to avoid replaying animation on breakpoint change
11035
11009
  setShouldAppear(false);
11036
11010
  },
11037
- onExit: function () {
11011
+ onExit: function handleExit() {
11038
11012
  if (onExit) onExit();
11039
11013
 
11040
11014
  // Reset appear value to its original value for future modal display
11041
11015
  setShouldAppear(appear);
11042
11016
  },
11043
- onExited: function () {
11017
+ onExited: function handleExitAnimationDone() {
11044
11018
  if (onExited) onExited();
11045
11019
  setIsModalBehaviourVisible(false);
11046
11020
  },
@@ -11108,18 +11082,12 @@ function NavigationBottomSheet(_ref) {
11108
11082
  })
11109
11083
  });
11110
11084
  }
11111
- function NavigationBottomSheetHeader(_ref2) {
11112
- var children = _ref2.children,
11113
- left = _ref2.left;
11114
- return /*#__PURE__*/jsx(NavigationModal.Header, {
11115
- title: children,
11116
- left: left,
11085
+ function NavigationBottomSheetHeader(props) {
11086
+ return /*#__PURE__*/jsx(NavigationModal.Header, _objectSpread(_objectSpread({}, props), {}, {
11117
11087
  right: /*#__PURE__*/jsx(ModalBehaviour.CloseButton, {
11118
- children: /*#__PURE__*/jsx(IconButton, {
11119
- icon: /*#__PURE__*/jsx(XRegularIcon, {})
11120
- })
11088
+ children: /*#__PURE__*/jsx(TopNavBar.CloseButton, {})
11121
11089
  })
11122
- });
11090
+ }));
11123
11091
  }
11124
11092
  function NavigationBottomSheetBody(props) {
11125
11093
  return /*#__PURE__*/jsx(NavigationModal.Body, _objectSpread({
@@ -11306,18 +11274,18 @@ function Picker(_ref) {
11306
11274
  items: items,
11307
11275
  initialSelectedItem: initialValueIndex > -1 ? items[initialValueIndex] : undefined,
11308
11276
  initialIsOpen: isInitialOpen,
11309
- stateReducer: function (state, actionAndChanges) {
11277
+ stateReducer: function stateReducer(state, actionAndChanges) {
11310
11278
  return webUseSelectReducer(state, actionAndChanges, {
11311
11279
  keepOpenOnChange: keepOpenOnChange
11312
11280
  });
11313
11281
  },
11314
11282
  selectedItem: syncStateWithSourceValue ? sourceValue : undefined,
11315
- onIsOpenChange: function (changes) {
11283
+ onIsOpenChange: function onIsOpenChange(changes) {
11316
11284
  if (changes.isOpen === false) {
11317
11285
  if (onClose) onClose();
11318
11286
  }
11319
11287
  },
11320
- onSelectedItemChange: function (changes) {
11288
+ onSelectedItemChange: function onSelectedItemChange(changes) {
11321
11289
  if (!onChange) return;
11322
11290
  if (changes.selectedItem === null) {
11323
11291
  onChange(undefined);
@@ -11537,7 +11505,7 @@ function Skeleton(_ref) {
11537
11505
  return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
11538
11506
  overflow: "hidden",
11539
11507
  style: style,
11540
- onLayout: function (_ref2) {
11508
+ onLayout: function onLayout(_ref2) {
11541
11509
  var nativeEvent = _ref2.nativeEvent;
11542
11510
  return setWidth(nativeEvent.layout.width);
11543
11511
  },
@@ -11763,7 +11731,7 @@ function StaticMap(_ref) {
11763
11731
  position: "relative",
11764
11732
  maxWidth: mapBoxMaxPictureWidth,
11765
11733
  height: height,
11766
- onLayout: function (event) {
11734
+ onLayout: function handleParentLayout(event) {
11767
11735
  var nativeEvent = event.nativeEvent;
11768
11736
  var rangedMapWidth = getPictureWidth(nativeEvent.layout.width);
11769
11737
  setCurrentWidth(rangedMapWidth);
@@ -11775,11 +11743,11 @@ function StaticMap(_ref) {
11775
11743
  width: currentWidth,
11776
11744
  height: height,
11777
11745
  alt: alt,
11778
- onLoadEnd: function () {
11746
+ onLoadEnd: function handleImageLoadEnd() {
11779
11747
  setIsLoading(false);
11780
11748
  if (onLoaded) onLoaded();
11781
11749
  },
11782
- onError: function () {
11750
+ onError: function handleError() {
11783
11751
  setHasError(true);
11784
11752
  if (onError) onError();
11785
11753
  }
@@ -11804,7 +11772,7 @@ function StaticMap(_ref) {
11804
11772
  width: "100%",
11805
11773
  height: "100%",
11806
11774
  children: /*#__PURE__*/jsx(StaticMapError, {
11807
- onReload: function () {
11775
+ onReload: function handleReload() {
11808
11776
  setHasError(false);
11809
11777
  setIsLoading(true);
11810
11778
  setCurrentMapKey(function (prev) {
@@ -12046,7 +12014,7 @@ function StoryContainer(_ref) {
12046
12014
  var StoryDecorator = makeDecorator({
12047
12015
  name: 'StoryDecorator',
12048
12016
  parameterName: 'storyDecorator',
12049
- wrapper: function (storyFn, context) {
12017
+ wrapper: function wrapper(storyFn, context) {
12050
12018
  var story = storyFn(context);
12051
12019
  if (context.parameters.disableStoryContainer) {
12052
12020
  return story;
@@ -12150,7 +12118,7 @@ function TabBarItem(_ref) {
12150
12118
  disabled: disabled,
12151
12119
  testID: testID,
12152
12120
  onPress: onPress,
12153
- children: function (_ref2) {
12121
+ children: function children(_ref2) {
12154
12122
  var isHovered = _ref2.isHovered,
12155
12123
  isPressed = _ref2.isPressed,
12156
12124
  isFocused = _ref2.isFocused;
@@ -12239,7 +12207,7 @@ function TabBar(_ref) {
12239
12207
  color: color,
12240
12208
  variant: definedVariant,
12241
12209
  type: type,
12242
- onPress: function (event) {
12210
+ onPress: function onPress(event) {
12243
12211
  var _child$props$onPress, _child$props;
12244
12212
  onChangeTab({
12245
12213
  tab: tab,
@@ -12418,7 +12386,7 @@ var TimePicker = /*#__PURE__*/forwardRef(function (_ref2, ref) {
12418
12386
  isFocusedInternal: isFocusedInternal,
12419
12387
  isPressedInternal: isPressedInternal
12420
12388
  }),
12421
- onChange: function (event) {
12389
+ onChange: function handleInputChange(event) {
12422
12390
  var currentValue = event.nativeEvent.text;
12423
12391
  if (currentValue.length === 0) {
12424
12392
  setInputValue(currentValue);
@@ -12469,7 +12437,7 @@ var TimePicker = /*#__PURE__*/forwardRef(function (_ref2, ref) {
12469
12437
  setInputValue(sanitizedValue);
12470
12438
  handleChange(sanitizedValue);
12471
12439
  },
12472
- onBlur: function () {
12440
+ onBlur: function handleBlur() {
12473
12441
  if (inputValue.indexOf(':') === 1) {
12474
12442
  setInputValue("0".concat(inputValue));
12475
12443
  }
@@ -12872,88 +12840,6 @@ function Tooltip(_ref) {
12872
12840
  Tooltip.Arrow = Arrow;
12873
12841
  Tooltip.Content = TooltipContent;
12874
12842
 
12875
- function TopNavBar(_ref) {
12876
- var left = _ref.left,
12877
- right = _ref.right,
12878
- title = _ref.title,
12879
- _ref$titleAlign = _ref.titleAlign,
12880
- titleAlign = _ref$titleAlign === void 0 ? 'center' : _ref$titleAlign,
12881
- stickers = _ref.stickers,
12882
- _ref$mode = _ref.mode,
12883
- mode = _ref$mode === void 0 ? 'default' : _ref$mode,
12884
- _ref$hasSeparator = _ref.hasSeparator,
12885
- hasSeparator = _ref$hasSeparator === void 0 ? true : _ref$hasSeparator;
12886
- var isLargeTitleMode = mode === 'largeTitle';
12887
- return /*#__PURE__*/jsxs(VStack, {
12888
- space: isLargeTitleMode ? 'kitt.2' : undefined,
12889
- width: "100%",
12890
- height: mode === 'default' ? 56 : undefined,
12891
- justifyContent: "center",
12892
- paddingX: "kitt.2",
12893
- paddingTop: isLargeTitleMode ? 'kitt.2' : 'kitt.3',
12894
- paddingBottom: "kitt.3",
12895
- borderBottomWidth: hasSeparator && mode === 'default' ? 1 : 0,
12896
- borderColor: "kitt.separator",
12897
- children: [/*#__PURE__*/jsxs(HStack, {
12898
- alignItems: "center",
12899
- justifyContent: !title && !left ? 'flex-end' : 'space-between',
12900
- children: [left !== null && left !== void 0 ? left : /*#__PURE__*/jsx(View, {
12901
- width: "kitt.button.minWidth"
12902
- }), mode === 'default' ? /*#__PURE__*/jsx(View, {
12903
- flexGrow: "1",
12904
- flexShrink: 1,
12905
- paddingRight: "kitt.2",
12906
- paddingLeft: "kitt.2",
12907
- children: title ? /*#__PURE__*/jsx(Typography.Text, {
12908
- textAlign: titleAlign,
12909
- variant: "bold",
12910
- ellipsizeMode: "tail",
12911
- numberOfLines: 1,
12912
- children: title
12913
- }) : null
12914
- }) : null, right !== null && right !== void 0 ? right : /*#__PURE__*/jsx(View, {
12915
- width: "kitt.button.minWidth"
12916
- })]
12917
- }), mode === 'largeTitle' ? /*#__PURE__*/jsxs(VStack, {
12918
- space: "kitt.4",
12919
- paddingX: "kitt.2",
12920
- children: [stickers ? /*#__PURE__*/jsx(HStack, {
12921
- width: "100%",
12922
- space: "kitt.1",
12923
- flexShrink: 1,
12924
- flexWrap: "wrap",
12925
- style: {
12926
- rowGap: theme.getSpacing(1)
12927
- },
12928
- children: stickers.map(function (sticker, index) {
12929
- return (
12930
- /*#__PURE__*/
12931
- // eslint-disable-next-line react/no-array-index-key
12932
- jsx(View, {
12933
- children: sticker
12934
- }, index)
12935
- );
12936
- })
12937
- }) : null, /*#__PURE__*/jsx(Typography.Text, {
12938
- base: "heading-m",
12939
- children: title
12940
- })]
12941
- }) : null]
12942
- });
12943
- }
12944
- function CloseButton(props) {
12945
- return /*#__PURE__*/jsx(IconButton, _objectSpread({
12946
- icon: /*#__PURE__*/jsx(XRegularIcon, {})
12947
- }, props));
12948
- }
12949
- function BackButton(props) {
12950
- return /*#__PURE__*/jsx(IconButton, _objectSpread({
12951
- icon: /*#__PURE__*/jsx(ArrowLeftRegularIcon, {})
12952
- }, props));
12953
- }
12954
- TopNavBar.CloseButton = CloseButton;
12955
- TopNavBar.BackButton = BackButton;
12956
-
12957
12843
  function getTypographyTypeConfig(type, theme) {
12958
12844
  var configs = theme.kitt.typography.types[getTypographyFamily(type)].configs;
12959
12845
  return configs[type];
@@ -13106,7 +12992,7 @@ function KittThemeProvider(_ref) {
13106
12992
  var KittThemeDecorator = makeDecorator({
13107
12993
  name: 'ThemeDecorator',
13108
12994
  parameterName: 'theme',
13109
- wrapper: function (storyFn, context, _ref2) {
12995
+ wrapper: function wrapper(storyFn, context, _ref2) {
13110
12996
  var _parameters$isSSR;
13111
12997
  var _ref2$options = _ref2.options,
13112
12998
  options = _ref2$options === void 0 ? {} : _ref2$options,