@ornikar/kitt-universal 27.3.1-canary.2a1e1042a7d526c8c6b6197a77f84626e0e5d206.0 → 27.5.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 (70) hide show
  1. package/CHANGELOG.md +11 -14
  2. package/dist/definitions/BaseMessage/helper.d.ts.map +1 -1
  3. package/dist/definitions/CardModal/CardModalAnimation/CardModalAnimation.web.d.ts.map +1 -1
  4. package/dist/definitions/DialogModal/DialogModalAnimation/DialogModalAnimation.web.d.ts.map +1 -1
  5. package/dist/definitions/FullscreenModal/FullscreenModalAnimation.web.d.ts.map +1 -1
  6. package/dist/definitions/GoogleMapsAutocompleteProvider/GoogleMapsAutocompleteProvider.d.ts.map +1 -1
  7. package/dist/definitions/Highlight/AnimatedContainer/AnimatedContainer.d.ts +1 -1
  8. package/dist/definitions/Highlight/AnimatedContainer/AnimatedContainer.d.ts.map +1 -1
  9. package/dist/definitions/Highlight/AnimatedContainer/AnimatedContainer.web.d.ts.map +1 -1
  10. package/dist/definitions/Highlight/Highlight.d.ts.map +1 -1
  11. package/dist/definitions/MapMarker/MapMarker.d.ts +2 -5
  12. package/dist/definitions/MapMarker/MapMarker.d.ts.map +1 -1
  13. package/dist/definitions/MapMarker/constants.d.ts +6 -0
  14. package/dist/definitions/MapMarker/constants.d.ts.map +1 -0
  15. package/dist/definitions/MapMarker/utils/getBackgroundColor.d.ts +2 -1
  16. package/dist/definitions/MapMarker/utils/getBackgroundColor.d.ts.map +1 -1
  17. package/dist/definitions/Picker/Picker.web.d.ts.map +1 -1
  18. package/dist/definitions/TabBar/TabBar.d.ts.map +1 -1
  19. package/dist/definitions/TimePicker/TimePicker.web.d.ts.map +1 -1
  20. package/dist/definitions/themes/late-ocean/cardModal.d.ts +21 -4
  21. package/dist/definitions/themes/late-ocean/cardModal.d.ts.map +1 -1
  22. package/dist/definitions/themes/late-ocean/dialogModal.d.ts +21 -4
  23. package/dist/definitions/themes/late-ocean/dialogModal.d.ts.map +1 -1
  24. package/dist/definitions/themes/late-ocean/fullscreenModal.d.ts +21 -4
  25. package/dist/definitions/themes/late-ocean/fullscreenModal.d.ts.map +1 -1
  26. package/dist/definitions/themes/late-ocean/highlight.d.ts +4 -0
  27. package/dist/definitions/themes/late-ocean/highlight.d.ts.map +1 -1
  28. package/dist/definitions/themes/late-ocean/shadows.d.ts +4 -2
  29. package/dist/definitions/themes/late-ocean/shadows.d.ts.map +1 -1
  30. package/dist/definitions/themes/late-ocean/skeleton.d.ts +2 -1
  31. package/dist/definitions/themes/late-ocean/skeleton.d.ts.map +1 -1
  32. package/dist/definitions/typography/Typography.d.ts +6 -18
  33. package/dist/definitions/typography/Typography.d.ts.map +1 -1
  34. package/dist/index-metro.es.android.js +124 -50
  35. package/dist/index-metro.es.android.js.map +1 -1
  36. package/dist/index-metro.es.ios.js +124 -50
  37. package/dist/index-metro.es.ios.js.map +1 -1
  38. package/dist/index-node-22.17.cjs.js +123 -49
  39. package/dist/index-node-22.17.cjs.js.map +1 -1
  40. package/dist/index-node-22.17.cjs.web.css +2 -2
  41. package/dist/index-node-22.17.cjs.web.js +87 -41
  42. package/dist/index-node-22.17.cjs.web.js.map +1 -1
  43. package/dist/index-node-22.17.es.mjs +123 -49
  44. package/dist/index-node-22.17.es.mjs.map +1 -1
  45. package/dist/index-node-22.17.es.web.css +2 -2
  46. package/dist/index-node-22.17.es.web.mjs +87 -41
  47. package/dist/index-node-22.17.es.web.mjs.map +1 -1
  48. package/dist/index.es.js +210 -174
  49. package/dist/index.es.js.map +1 -1
  50. package/dist/index.es.web.js +157 -113
  51. package/dist/index.es.web.js.map +1 -1
  52. package/dist/linaria-themes-metro.es.android.js +50 -16
  53. package/dist/linaria-themes-metro.es.android.js.map +1 -1
  54. package/dist/linaria-themes-metro.es.ios.js +50 -16
  55. package/dist/linaria-themes-metro.es.ios.js.map +1 -1
  56. package/dist/linaria-themes-node-22.17.cjs.js +50 -16
  57. package/dist/linaria-themes-node-22.17.cjs.js.map +1 -1
  58. package/dist/linaria-themes-node-22.17.cjs.web.js +50 -16
  59. package/dist/linaria-themes-node-22.17.cjs.web.js.map +1 -1
  60. package/dist/linaria-themes-node-22.17.es.mjs +50 -16
  61. package/dist/linaria-themes-node-22.17.es.mjs.map +1 -1
  62. package/dist/linaria-themes-node-22.17.es.web.mjs +50 -16
  63. package/dist/linaria-themes-node-22.17.es.web.mjs.map +1 -1
  64. package/dist/linaria-themes.es.js +51 -17
  65. package/dist/linaria-themes.es.js.map +1 -1
  66. package/dist/linaria-themes.es.web.js +51 -17
  67. package/dist/linaria-themes.es.web.js.map +1 -1
  68. package/dist/styles.css +2 -2
  69. package/dist/tsbuildinfo +1 -1
  70. package/package.json +28 -28
package/dist/index.es.js CHANGED
@@ -755,13 +755,23 @@ var card = {
755
755
  };
756
756
 
757
757
  var webAnimationContentDuration$2 = 400;
758
- var webAnimationContentEasing$2 = [0.77, 0, 0.175, 1];
758
+ var webAnimationContentEasing$2 = {
759
+ x1: 0.77,
760
+ y1: 0,
761
+ x2: 0.175,
762
+ y2: 1
763
+ };
759
764
  var webAnimationOverlayDuration$2 = 250;
760
- var webAnimationOverlayEasing$2 = [0.42, 0, 1, 1];
765
+ var webAnimationOverlayEasing$2 = {
766
+ x1: 0.42,
767
+ y1: 0,
768
+ x2: 1,
769
+ y2: 1
770
+ };
761
771
  var maxWidth = 540;
762
772
  var overlayHorizontalPadding = 24;
763
773
  var cardModal = {
764
- borderRadius: 20,
774
+ borderRadius: spacing * 2,
765
775
  maxWidth: maxWidth,
766
776
  maxWidthWithPadding: maxWidth + overlayHorizontalPadding * 2,
767
777
  minHeight: 280,
@@ -849,11 +859,21 @@ var choices = {
849
859
  };
850
860
 
851
861
  var webAnimationContentDuration$1 = 400;
852
- var webAnimationContentEasing$1 = [0.77, 0, 0.175, 1];
862
+ var webAnimationContentEasing$1 = {
863
+ x1: 0.77,
864
+ y1: 0,
865
+ x2: 0.175,
866
+ y2: 1
867
+ };
853
868
  var webAnimationOverlayDuration$1 = 250;
854
- var webAnimationOverlayEasing$1 = [0.42, 0, 1, 1];
869
+ var webAnimationOverlayEasing$1 = {
870
+ x1: 0.42,
871
+ y1: 0,
872
+ x2: 1,
873
+ y2: 1
874
+ };
855
875
  var dialogModal = {
856
- borderRadius: 20,
876
+ borderRadius: spacing * 2,
857
877
  maxWidth: 540,
858
878
  overlayPadding: {
859
879
  horizontal: 24,
@@ -1783,9 +1803,19 @@ var forms = {
1783
1803
  };
1784
1804
 
1785
1805
  var webAnimationContentDuration = 600;
1786
- var webAnimationContentEasing = [0.77, 0, 0.175, 1];
1806
+ var webAnimationContentEasing = {
1807
+ x1: 0.77,
1808
+ y1: 0,
1809
+ x2: 0.175,
1810
+ y2: 1
1811
+ };
1787
1812
  var webAnimationOverlayDuration = 250;
1788
- var webAnimationOverlayEasing = [0.42, 0, 1, 1];
1813
+ var webAnimationOverlayEasing = {
1814
+ x1: 0.42,
1815
+ y1: 0,
1816
+ x2: 1,
1817
+ y2: 1
1818
+ };
1789
1819
  var fullscreenModal = {
1790
1820
  header: {
1791
1821
  height: 56
@@ -1822,10 +1852,10 @@ var highlight = {
1822
1852
  },
1823
1853
  primary: {
1824
1854
  "default": {
1825
- backgroundColor: deepPurpleColorPalette['beige.2']
1855
+ backgroundColor: deepPurpleColorPalette['blue.1']
1826
1856
  },
1827
1857
  hover: {
1828
- backgroundColor: deepPurpleColorPalette['beige.4']
1858
+ backgroundColor: deepPurpleColorPalette['blue.2']
1829
1859
  }
1830
1860
  },
1831
1861
  secondary: {
@@ -1846,10 +1876,14 @@ var highlight = {
1846
1876
  },
1847
1877
  dark: {
1848
1878
  "default": {
1849
- backgroundColor: deepPurpleColorPalette['beige.2']
1879
+ backgroundColor: deepPurpleColorPalette['grey.0'],
1880
+ borderWidth: 1,
1881
+ borderColor: deepPurpleColorPalette['beige.3']
1850
1882
  },
1851
1883
  hover: {
1852
- backgroundColor: deepPurpleColorPalette['beige.1']
1884
+ backgroundColor: deepPurpleColorPalette['beige.1'],
1885
+ borderWidth: 1,
1886
+ borderColor: deepPurpleColorPalette['beige.3']
1853
1887
  }
1854
1888
  },
1855
1889
  success: {
@@ -1929,8 +1963,8 @@ var listItem = {
1929
1963
 
1930
1964
  var mapMarker = {
1931
1965
  home: {
1932
- "default": colors.primaryLight,
1933
- selected: colors.primary,
1966
+ "default": deepPurpleColorPalette['grey.9'],
1967
+ selected: deepPurpleColorPalette['grey.7'],
1934
1968
  svg: {
1935
1969
  height: 36
1936
1970
  },
@@ -1940,8 +1974,8 @@ var mapMarker = {
1940
1974
  }
1941
1975
  },
1942
1976
  meetingPoint: {
1943
- "default": colors.black,
1944
- selected: colors.blackAnthracite,
1977
+ "default": deepPurpleColorPalette['deepPurple.8'],
1978
+ selected: deepPurpleColorPalette['deepPurple.6'],
1945
1979
  svg: {
1946
1980
  width: 40,
1947
1981
  height: 43
@@ -2452,7 +2486,7 @@ var breakpoints = {
2452
2486
  // TODO : seperate brand color usage definition from proper theme definition and add typings - https://ornikar.atlassian.net/browse/CME-156
2453
2487
  var theme = {
2454
2488
  spacing: spacing,
2455
- getSpacing: function (multiplier) {
2489
+ getSpacing: function getSpacing(multiplier) {
2456
2490
  return spacing * multiplier;
2457
2491
  },
2458
2492
  colors: colors,
@@ -2639,7 +2673,7 @@ var ActionCardPressable = /*#__PURE__*/forwardRef(function (_ref2, ref) {
2639
2673
  onPress: onPress,
2640
2674
  onHoverIn: onHoverIn,
2641
2675
  onHoverOut: onHoverOut,
2642
- children: function (_ref3) {
2676
+ children: function children(_ref3) {
2643
2677
  var isHovered = _ref3.isHovered,
2644
2678
  isPressed = _ref3.isPressed,
2645
2679
  isFocused = _ref3.isFocused;
@@ -3419,11 +3453,11 @@ var useNativeAnimation$4 = function (_ref) {
3419
3453
  };
3420
3454
  });
3421
3455
  return {
3422
- onPressIn: function () {
3456
+ onPressIn: function handlePressIn() {
3423
3457
  color.value = withSpring(1);
3424
3458
  pressed.value = 1;
3425
3459
  },
3426
- onPressOut: function () {
3460
+ onPressOut: function handlePressOut() {
3427
3461
  color.value = withSpring(0);
3428
3462
  pressed.value = 0;
3429
3463
  },
@@ -3492,7 +3526,7 @@ var Button = /*#__PURE__*/forwardRef(function (_ref, ref) {
3492
3526
  onHoverOut: onHoverOut,
3493
3527
  onFocus: onFocus,
3494
3528
  onBlur: onBlur,
3495
- children: function (_ref2) {
3529
+ children: function children(_ref2) {
3496
3530
  var isHovered = _ref2.isHovered,
3497
3531
  isPressed = _ref2.isPressed,
3498
3532
  isFocused = _ref2.isFocused;
@@ -3615,7 +3649,7 @@ var ActionsItem = /*#__PURE__*/forwardRef(function (_ref, ref) {
3615
3649
  stretch: stretch,
3616
3650
  disabled: isLoading ? true : disabled,
3617
3651
  icon: isLoading ? /*#__PURE__*/jsx(LoaderIcon, {}) : icon,
3618
- onPress: function (e) {
3652
+ onPress: function handlePress(e) {
3619
3653
  var callPressAndUpdateLoadingState = /*#__PURE__*/function () {
3620
3654
  var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
3621
3655
  return _regeneratorRuntime().wrap(function (_context) {
@@ -3887,10 +3921,10 @@ function BottomSheetComp(_ref, ref) {
3887
3921
  borderRadius: 4,
3888
3922
  backgroundColor: theme.kitt.bottomSheet.handle.backgroundColor
3889
3923
  },
3890
- handleComponent: function (props) {
3924
+ handleComponent: function handleComponent(props) {
3891
3925
  return hasHandle ? /*#__PURE__*/jsx(BottomSheetHandle, _objectSpread({}, props)) : null;
3892
3926
  },
3893
- backdropComponent: function (props) {
3927
+ backdropComponent: function backdropComponent(props) {
3894
3928
  return hasBackdrop ? /*#__PURE__*/jsx(BottomSheetBackdrop, _objectSpread(_objectSpread({}, props), {}, {
3895
3929
  opacity: 0.25,
3896
3930
  appearsOnIndex: 0,
@@ -3899,7 +3933,7 @@ function BottomSheetComp(_ref, ref) {
3899
3933
  }
3900
3934
  }, rest), {}, {
3901
3935
  topInset: top,
3902
- children: function (props) {
3936
+ children: function children(props) {
3903
3937
  return /*#__PURE__*/jsx(Wrapper, {
3904
3938
  children: typeof Content === 'function' ? /*#__PURE__*/jsx(Content, _objectSpread({}, props === null || props === void 0 ? void 0 : props.data)) : Content
3905
3939
  });
@@ -3975,7 +4009,7 @@ function CloseButton(_ref) {
3975
4009
  onPress = _ref.onPress;
3976
4010
  var onCloseContextCallback = useOnCloseModalBehaviour();
3977
4011
  return /*#__PURE__*/cloneElement(children, {
3978
- onPress: function () {
4012
+ onPress: function handleClose() {
3979
4013
  if (onPress) onPress();
3980
4014
  onCloseContextCallback();
3981
4015
  }
@@ -4050,11 +4084,10 @@ function NativeOpacityAnimation$2(_ref) {
4050
4084
  var _theme$kitt$cardModal = theme.kitt.cardModal.animation.overlay,
4051
4085
  duration = _theme$kitt$cardModal.duration,
4052
4086
  easing = _theme$kitt$cardModal.easing;
4053
- var _easing = _slicedToArray(easing, 4),
4054
- x1 = _easing[0],
4055
- y1 = _easing[1],
4056
- x2 = _easing[2],
4057
- y2 = _easing[3];
4087
+ var x1 = easing.x1,
4088
+ y1 = easing.y1,
4089
+ x2 = easing.x2,
4090
+ y2 = easing.y2;
4058
4091
  return {
4059
4092
  opacity: withTiming(visible ? 1 : 0, {
4060
4093
  duration: duration,
@@ -4090,11 +4123,10 @@ function NativeRotationAnimation$1(_ref) {
4090
4123
  var _theme$kitt$cardModal = theme.kitt.cardModal.animation.content,
4091
4124
  duration = _theme$kitt$cardModal.duration,
4092
4125
  easing = _theme$kitt$cardModal.easing;
4093
- var _easing = _slicedToArray(easing, 4),
4094
- x1 = _easing[0],
4095
- y1 = _easing[1],
4096
- x2 = _easing[2],
4097
- y2 = _easing[3];
4126
+ var x1 = easing.x1,
4127
+ y1 = easing.y1,
4128
+ x2 = easing.x2,
4129
+ y2 = easing.y2;
4098
4130
  rotation.value = withTiming(visible ? 0 : 5, {
4099
4131
  duration: duration,
4100
4132
  easing: Easing$1.bezier(x1, y1, x2, y2)
@@ -4153,11 +4185,11 @@ function CardModalAnimation(_ref) {
4153
4185
  transparent: true,
4154
4186
  supportedOrientations: ['landscape', 'portrait'],
4155
4187
  visible: isModalVisible,
4156
- onShow: function () {
4188
+ onShow: function onShow() {
4157
4189
  if (onEnter) onEnter();
4158
4190
  setIsContentVisible(true);
4159
4191
  },
4160
- onDismiss: function () {
4192
+ onDismiss: function onDismiss() {
4161
4193
  if (onExited) onExited();
4162
4194
  },
4163
4195
  children: /*#__PURE__*/jsxs(View, {
@@ -4204,7 +4236,7 @@ function CardModalBehaviour(_ref) {
4204
4236
  onClose: onClose,
4205
4237
  children: /*#__PURE__*/jsx(CardModalAnimation, _objectSpread(_objectSpread({}, props), {}, {
4206
4238
  visible: visible,
4207
- onExited: function () {
4239
+ onExited: function handleExitAnimationDone() {
4208
4240
  if (onExited) onExited();
4209
4241
  setIsModalBehaviourVisible(false);
4210
4242
  },
@@ -4435,10 +4467,10 @@ var useNativeAnimation$3 = function (_ref) {
4435
4467
  };
4436
4468
  });
4437
4469
  return {
4438
- onPressIn: function () {
4470
+ onPressIn: function onPressIn() {
4439
4471
  pressed.value = true;
4440
4472
  },
4441
- onPressOut: function () {
4473
+ onPressOut: function onPressOut() {
4442
4474
  pressed.value = false;
4443
4475
  },
4444
4476
  backgroundStyles: backgroundStyles
@@ -4501,7 +4533,7 @@ function ChoiceItem(_ref) {
4501
4533
  style: style,
4502
4534
  onBlur: onBlur,
4503
4535
  onFocus: onFocus,
4504
- onPress: function (e) {
4536
+ onPress: function handlePress(e) {
4505
4537
  if (onFocus) onFocus(e);
4506
4538
  if (onPress) onPress();
4507
4539
  handleChange();
@@ -4509,7 +4541,7 @@ function ChoiceItem(_ref) {
4509
4541
  },
4510
4542
  onPressIn: onPressIn,
4511
4543
  onPressOut: onPressOut,
4512
- children: function (_ref2) {
4544
+ children: function children(_ref2) {
4513
4545
  var isHovered = _ref2.isHovered,
4514
4546
  isPressed = _ref2.isPressed;
4515
4547
  var textColor = getCurrentTextColor$1({
@@ -4613,7 +4645,7 @@ function Choices(_ref2) {
4613
4645
  type: type,
4614
4646
  disabled: disabled,
4615
4647
  onPress: !isForm ? onPress : undefined,
4616
- onChange: isForm ? function (newValue) {
4648
+ onChange: isForm ? function handleChange(newValue) {
4617
4649
  setCurrentValue(newValue);
4618
4650
  if (onChange) onChange(newValue);
4619
4651
  } : undefined,
@@ -4668,11 +4700,10 @@ function NativeOpacityAnimation$1(_ref) {
4668
4700
  var _theme$kitt$dialogMod = theme.kitt.dialogModal.animation.overlay,
4669
4701
  duration = _theme$kitt$dialogMod.duration,
4670
4702
  easing = _theme$kitt$dialogMod.easing;
4671
- var _easing = _slicedToArray(easing, 4),
4672
- x1 = _easing[0],
4673
- y1 = _easing[1],
4674
- x2 = _easing[2],
4675
- y2 = _easing[3];
4703
+ var x1 = easing.x1,
4704
+ y1 = easing.y1,
4705
+ x2 = easing.x2,
4706
+ y2 = easing.y2;
4676
4707
  return {
4677
4708
  opacity: withTiming(visible ? 1 : 0, {
4678
4709
  duration: duration,
@@ -4708,11 +4739,10 @@ function NativeRotationAnimation(_ref) {
4708
4739
  var _theme$kitt$dialogMod = theme.kitt.dialogModal.animation.content,
4709
4740
  duration = _theme$kitt$dialogMod.duration,
4710
4741
  easing = _theme$kitt$dialogMod.easing;
4711
- var _easing = _slicedToArray(easing, 4),
4712
- x1 = _easing[0],
4713
- y1 = _easing[1],
4714
- x2 = _easing[2],
4715
- y2 = _easing[3];
4742
+ var x1 = easing.x1,
4743
+ y1 = easing.y1,
4744
+ x2 = easing.x2,
4745
+ y2 = easing.y2;
4716
4746
  rotation.value = withTiming(visible ? 0 : 5, {
4717
4747
  duration: duration,
4718
4748
  easing: Easing$1.bezier(x1, y1, x2, y2)
@@ -4771,11 +4801,11 @@ function DialogModalAnimation(_ref) {
4771
4801
  transparent: true,
4772
4802
  supportedOrientations: ['landscape', 'portrait'],
4773
4803
  visible: isModalVisible,
4774
- onShow: function () {
4804
+ onShow: function onShow() {
4775
4805
  if (onEnter) onEnter();
4776
4806
  setIsContentVisible(true);
4777
4807
  },
4778
- onDismiss: function () {
4808
+ onDismiss: function onDismiss() {
4779
4809
  if (onExited) onExited();
4780
4810
  },
4781
4811
  children: /*#__PURE__*/jsxs(View, {
@@ -4829,7 +4859,7 @@ function DialogModalBehaviour(_ref) {
4829
4859
  },
4830
4860
  children: /*#__PURE__*/jsx(DialogModalAnimation, _objectSpread(_objectSpread({}, props), {}, {
4831
4861
  visible: visible,
4832
- onExited: function () {
4862
+ onExited: function handleExitAnimationDone() {
4833
4863
  if (onExited) onExited();
4834
4864
  setIsModalBehaviourVisible(false);
4835
4865
  },
@@ -5092,7 +5122,7 @@ function ExternalLink(_ref) {
5092
5122
  var openExternalLink = useOpenExternalLink();
5093
5123
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
5094
5124
  return /*#__PURE__*/jsx(Component, _objectSpread(_objectSpread({}, rest), {}, {
5095
- onPress: function (e) {
5125
+ onPress: function handleOnPress(e) {
5096
5126
  if (onPress) {
5097
5127
  onPress(e);
5098
5128
  if (e.defaultPrevented) return;
@@ -5316,14 +5346,14 @@ var _excluded$z = ["children", "name", "disabled", "placeholder", "isInitialOpen
5316
5346
  function patchNativeEvent(event) {
5317
5347
  return event || {
5318
5348
  preventDownshiftDefault: false,
5319
- preventDefault: function () {}
5349
+ preventDefault: function preventDefault() {}
5320
5350
  };
5321
5351
  }
5322
5352
  function isReactElement(element) {
5323
5353
  return _typeof(element) === 'object' && element !== null && 'type' in element && 'props' in element;
5324
5354
  }
5325
5355
  function Autocomplete(_ref) {
5326
- var children = _ref.children,
5356
+ var _children = _ref.children,
5327
5357
  name = _ref.name,
5328
5358
  disabled = _ref.disabled,
5329
5359
  placeholder = _ref.placeholder,
@@ -5350,7 +5380,7 @@ function Autocomplete(_ref) {
5350
5380
  zIndex = _ref$zIndex === void 0 ? 1000 : _ref$zIndex,
5351
5381
  maxItemContainerHeight = _ref.maxItemContainerHeight,
5352
5382
  props = _objectWithoutProperties(_ref, _excluded$z);
5353
- var childrenArray = Children.toArray(children);
5383
+ var childrenArray = Children.toArray(_children);
5354
5384
  var items = childrenArray.filter(isReactElement).map(function (child) {
5355
5385
  return {
5356
5386
  child: child,
@@ -5361,12 +5391,12 @@ function Autocomplete(_ref) {
5361
5391
  defaultIsOpen: isInitialOpen,
5362
5392
  initialSelectedItem: initialValue,
5363
5393
  initialInputValue: initialValue ? itemToString(initialValue) : undefined,
5364
- itemToString: function (item) {
5394
+ itemToString: function handleItemToString(item) {
5365
5395
  // Prevents returning null values
5366
5396
  if (!itemToString) return '';
5367
5397
  return itemToString(item || undefined);
5368
5398
  },
5369
- stateReducer: function (state, changes) {
5399
+ stateReducer: function stateReducer(state, changes) {
5370
5400
  switch (changes.type) {
5371
5401
  case Downshift.stateChangeTypes.changeInput:
5372
5402
  return _objectSpread(_objectSpread({}, changes), {}, {
@@ -5376,7 +5406,7 @@ function Autocomplete(_ref) {
5376
5406
  return changes;
5377
5407
  }
5378
5408
  },
5379
- onChange: function (selectedItem, stateAndHelpers) {
5409
+ onChange: function onChange(selectedItem, stateAndHelpers) {
5380
5410
  if (_onChange) {
5381
5411
  _onChange(selectedItem, stateAndHelpers);
5382
5412
  }
@@ -5384,7 +5414,7 @@ function Autocomplete(_ref) {
5384
5414
  onSelect: onSelectItem,
5385
5415
  onOuterClick: onOuterPress,
5386
5416
  onInputValueChange: onInputChange,
5387
- children: function (_ref2) {
5417
+ children: function children(_ref2) {
5388
5418
  var getRootProps = _ref2.getRootProps,
5389
5419
  getInputProps = _ref2.getInputProps,
5390
5420
  getMenuProps = _ref2.getMenuProps,
@@ -5436,7 +5466,7 @@ function Autocomplete(_ref) {
5436
5466
  right: right || (canDisplayCollapseButton ? /*#__PURE__*/jsx(InputPressable, _objectSpread(_objectSpread({}, toggleProps), {}, {
5437
5467
  testID: "kitt.Autocomplete.listToggle",
5438
5468
  hitSlop: 40,
5439
- onPress: function (e) {
5469
+ onPress: function handleTogglePress(e) {
5440
5470
  if (Platform.OS === 'web') {
5441
5471
  onClickToggle(e);
5442
5472
  return;
@@ -5447,13 +5477,13 @@ function Autocomplete(_ref) {
5447
5477
  icon: isCurrentlyOpen ? /*#__PURE__*/jsx(CaretUpFillIcon, {}) : /*#__PURE__*/jsx(CaretDownFillIcon, {})
5448
5478
  })
5449
5479
  })) : null),
5450
- onFocus: function (e) {
5480
+ onFocus: function onFocus(e) {
5451
5481
  openMenu();
5452
5482
  /** @ts-expect-error onFocus wants web events */
5453
5483
  if (Platform.OS !== 'android' && onSearchInputFocus) onSearchInputFocus(e);
5454
5484
  if (_onFocus) _onFocus(e);
5455
5485
  },
5456
- onBlur: function (e) {
5486
+ onBlur: function onBlur(e) {
5457
5487
  /** @ts-expect-error onBlur wants web events */
5458
5488
  if (Platform.OS === 'web' && onSearchInputBlur) onSearchInputBlur(e);
5459
5489
 
@@ -5489,14 +5519,14 @@ function Autocomplete(_ref) {
5489
5519
  selected: ariaSelected
5490
5520
  },
5491
5521
  disabled: disabled,
5492
- onPress: function (e) {
5522
+ onPress: function onPress(e) {
5493
5523
  if (Platform.OS === 'web') {
5494
5524
  if (onClick) onClick(e);
5495
5525
  return;
5496
5526
  }
5497
5527
  if (_onPress) _onPress(patchNativeEvent(e));
5498
5528
  },
5499
- children: function (_ref5) {
5529
+ children: function children(_ref5) {
5500
5530
  var isHovered = _ref5.isHovered,
5501
5531
  isFocused = _ref5.isFocused,
5502
5532
  isPressed = _ref5.isPressed;
@@ -5586,12 +5616,12 @@ var Checkbox = /*#__PURE__*/forwardRef(function (_ref, ref) {
5586
5616
  disabled: disabled
5587
5617
  },
5588
5618
  disabled: disabled,
5589
- onPress: function (e) {
5619
+ onPress: function handlePress(e) {
5590
5620
  if (onFocus) onFocus();
5591
5621
  if (onChange) onChange(!checked, e);
5592
5622
  if (onBlur) onBlur();
5593
5623
  },
5594
- children: function (_ref2) {
5624
+ children: function children(_ref2) {
5595
5625
  var isHovered = _ref2.isHovered,
5596
5626
  isPressed = _ref2.isPressed,
5597
5627
  isFocused = _ref2.isFocused;
@@ -6146,7 +6176,7 @@ var DatePickerAndroid = /*#__PURE__*/forwardRef(function (_ref, ref) {
6146
6176
  DateTimePickerAndroid.open({
6147
6177
  testID: pickerUITestID,
6148
6178
  value: currentValue || pickerDefaultDate || new Date(Date.now()),
6149
- onChange: function (e) {
6179
+ onChange: function onChange(e) {
6150
6180
  setIsFocused(false);
6151
6181
  var timestamp = e.nativeEvent.timestamp;
6152
6182
  if (timestamp) {
@@ -6198,7 +6228,7 @@ function PlatformDateTimePicker(_ref) {
6198
6228
  minimumDate: minimuDate,
6199
6229
  display: displayMode
6200
6230
  }, iosProps), {}, {
6201
- onChange: function (_event, date) {
6231
+ onChange: function onChange(_event, date) {
6202
6232
  return _onChange(date);
6203
6233
  }
6204
6234
  }));
@@ -6232,7 +6262,7 @@ function ModalPlatformDateTimePicker(_ref2) {
6232
6262
 
6233
6263
  return /*#__PURE__*/jsx(CardModal.ModalBehaviour, {
6234
6264
  visible: Boolean(isVisible),
6235
- onClose: function () {
6265
+ onClose: function handleClose() {
6236
6266
  setCurrentValue(value);
6237
6267
  onClose();
6238
6268
  },
@@ -6243,7 +6273,7 @@ function ModalPlatformDateTimePicker(_ref2) {
6243
6273
  }) : null, /*#__PURE__*/jsx(CardModal.Body, {
6244
6274
  children: /*#__PURE__*/jsx(PlatformDateTimePicker, _objectSpread(_objectSpread({}, props), {}, {
6245
6275
  value: currentValue,
6246
- onChange: function (newDate) {
6276
+ onChange: function handleChange(newDate) {
6247
6277
  setCurrentValue(function (prev) {
6248
6278
  return newDate || prev;
6249
6279
  });
@@ -6253,7 +6283,7 @@ function ModalPlatformDateTimePicker(_ref2) {
6253
6283
  children: /*#__PURE__*/jsx(Button, {
6254
6284
  stretch: true,
6255
6285
  type: "primary",
6256
- onPress: function () {
6286
+ onPress: function handleSubmit() {
6257
6287
  onChange(currentValue);
6258
6288
  },
6259
6289
  children: validateButtonLabel ? /*#__PURE__*/jsx(Text$1, {
@@ -6307,7 +6337,7 @@ var DefaultNativeUIDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
6307
6337
  isFocusedInternal: isFocused || isFocusedInternal,
6308
6338
  isHoveredInternal: isHoveredInternal,
6309
6339
  isPressedInternal: isPressedInternal,
6310
- onPress: function () {
6340
+ onPress: function handleModalOpen() {
6311
6341
  if (onFocus) onFocus();
6312
6342
  setIsPickerUIVisible(true);
6313
6343
  setIsFocused(true);
@@ -6320,7 +6350,7 @@ var DefaultNativeUIDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
6320
6350
  validateButtonLabel: pickerUIValidateButtonLabel,
6321
6351
  defaultDate: pickerDefaultDate,
6322
6352
  onClose: handleModalClose,
6323
- onChange: function (newDate) {
6353
+ onChange: function handleChange(newDate) {
6324
6354
  setCurrentValue(newDate);
6325
6355
  onChange(newDate);
6326
6356
  handleModalClose();
@@ -6393,7 +6423,7 @@ function DocumentPicker(_ref) {
6393
6423
  var childElement = Children.only(children);
6394
6424
  var handlePickDocument = /*#__PURE__*/function () {
6395
6425
  var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
6396
- var _childElement$props$o, _childElement$props;
6426
+ var _childElement$props$o, _childElement$props, _result$assets$;
6397
6427
  var result;
6398
6428
  return _regeneratorRuntime().wrap(function (_context) {
6399
6429
  while (1) switch (_context.prev = _context.next) {
@@ -6411,7 +6441,7 @@ function DocumentPicker(_ref) {
6411
6441
  }));
6412
6442
  case 5:
6413
6443
  result = _context.sent;
6414
- if (!result.canceled && result.assets[0].file) {
6444
+ if (!result.canceled && (_result$assets$ = result.assets[0]) !== null && _result$assets$ !== void 0 && _result$assets$.file) {
6415
6445
  onDocumentUpload(result.assets[0].file);
6416
6446
  }
6417
6447
  case 7:
@@ -6460,7 +6490,7 @@ function ImagePicker(_ref) {
6460
6490
  }));
6461
6491
  case 5:
6462
6492
  result = _context.sent;
6463
- if (!result.canceled) {
6493
+ if (!result.canceled && result.assets[0]) {
6464
6494
  onImageSelected(result.assets[0]);
6465
6495
  }
6466
6496
  case 7:
@@ -6636,7 +6666,7 @@ function FilePicker(_ref) {
6636
6666
  return /*#__PURE__*/jsxs(Fragment, {
6637
6667
  children: [/*#__PURE__*/cloneElement(childElement, {
6638
6668
  // ensure that the press event is not prevented by Button component
6639
- onPress: function () {
6669
+ onPress: function onPress() {
6640
6670
  var _childElement$props$o, _childElement$props, _bottomSheetRef$curre;
6641
6671
  if (disabled) return;
6642
6672
  (_childElement$props$o = (_childElement$props = childElement.props).onPress) === null || _childElement$props$o === void 0 || _childElement$props$o.call(_childElement$props);
@@ -6937,10 +6967,10 @@ var GoogleMapsAutocompleteContext = /*#__PURE__*/createContext({
6937
6967
  isLoadingResultDetails: false,
6938
6968
  shouldDisplayEmptyStateWhenNoResults: false
6939
6969
  },
6940
- onInputChange: function () {
6970
+ onInputChange: function onInputChange() {
6941
6971
  return Promise.resolve();
6942
6972
  },
6943
- onSelectItem: function () {}
6973
+ onSelectItem: function onSelectItem() {}
6944
6974
  });
6945
6975
  function GoogleMapsAutocompleteProvider(_ref) {
6946
6976
  var children = _ref.children,
@@ -6986,36 +7016,34 @@ function GoogleMapsAutocompleteProvider(_ref) {
6986
7016
  _yield$predictionsPro = _context.sent;
6987
7017
  results = _yield$predictionsPro.results;
6988
7018
  status = _yield$predictionsPro.status;
6989
- if (!(status !== 'OK')) {
6990
- _context.next = 13;
6991
- break;
7019
+ if (status !== 'OK') {
7020
+ dispatch({
7021
+ type: 'search-error'
7022
+ });
6992
7023
  }
6993
- dispatch({
6994
- type: 'search-error'
6995
- });
6996
- return _context.abrupt("return");
6997
- case 13:
6998
- // We cache the results to avoid calling the API again if the user types the same value
6999
- searchResultsCache.current[value] = results;
7000
- dispatch({
7001
- type: 'search-success',
7002
- payload: {
7003
- results: results
7004
- }
7005
- });
7006
- _context.next = 20;
7024
+ if (results) {
7025
+ // We cache the results to avoid calling the API again if the user types the same value
7026
+ searchResultsCache.current[value] = results;
7027
+ dispatch({
7028
+ type: 'search-success',
7029
+ payload: {
7030
+ results: results
7031
+ }
7032
+ });
7033
+ }
7034
+ _context.next = 17;
7007
7035
  break;
7008
- case 17:
7009
- _context.prev = 17;
7036
+ case 14:
7037
+ _context.prev = 14;
7010
7038
  _context.t0 = _context["catch"](4);
7011
7039
  dispatch({
7012
7040
  type: 'search-error'
7013
7041
  });
7014
- case 20:
7042
+ case 17:
7015
7043
  case "end":
7016
7044
  return _context.stop();
7017
7045
  }
7018
- }, _callee, null, [[4, 17]]);
7046
+ }, _callee, null, [[4, 14]]);
7019
7047
  }));
7020
7048
  return function () {
7021
7049
  return _ref2.apply(this, arguments);
@@ -7193,7 +7221,7 @@ function InputAddress(_ref) {
7193
7221
  return /*#__PURE__*/jsx(Autocomplete, _objectSpread(_objectSpread({}, props), {}, {
7194
7222
  itemToString: itemToString,
7195
7223
  initialValue: formattedInitialValue,
7196
- checkSelectedItem: function (selectedItem, item) {
7224
+ checkSelectedItem: function checkSelectedItem(selectedItem, item) {
7197
7225
  return (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.place_id) === item.place_id;
7198
7226
  },
7199
7227
  right: state.isLoadingSearch || state.isLoadingResultDetails ? /*#__PURE__*/jsx(Icon, {
@@ -7202,10 +7230,10 @@ function InputAddress(_ref) {
7202
7230
  }) : undefined,
7203
7231
  errorElement: state.hasSearchError || state.hasSelectResultError ? errorElement : null,
7204
7232
  emptyResultsElement: state.items.length === 0 ? emptyResultsElement : null,
7205
- onInputChange: function (v) {
7233
+ onInputChange: function onInputChange(v) {
7206
7234
  _onInputChange(v);
7207
7235
  },
7208
- onChange: function (v) {
7236
+ onChange: function onChange(v) {
7209
7237
  onSelectItem(v, _onChange);
7210
7238
  },
7211
7239
  children: state.items.map(function (item) {
@@ -7287,7 +7315,7 @@ var InputNumber = /*#__PURE__*/forwardRef(function (_ref, ref) {
7287
7315
  ref: ref
7288
7316
  }, props), {}, {
7289
7317
  inputMode: "numeric",
7290
- onChange: function (event) {
7318
+ onChange: function handleChange(event) {
7291
7319
  if (!onChange) return;
7292
7320
  var value = parseFloat(event.nativeEvent.text);
7293
7321
 
@@ -7319,7 +7347,7 @@ var InputPassword = /*#__PURE__*/forwardRef(function (_ref, ref) {
7319
7347
  testID: "kitt.InputPassword.passwordToggle",
7320
7348
  hitSlop: 20,
7321
7349
  accessibilityRole: "button",
7322
- onPress: function () {
7350
+ onPress: function onPress() {
7323
7351
  return setIsVisible(function (prev) {
7324
7352
  return !prev;
7325
7353
  });
@@ -7354,7 +7382,7 @@ var InputPhone = /*#__PURE__*/forwardRef(function (_ref, ref) {
7354
7382
  enterKeyHint: currentEnterKeyHint,
7355
7383
  autoComplete: autoComplete,
7356
7384
  textContentType: "telephoneNumber",
7357
- onChange: function (event) {
7385
+ onChange: function handleChange(event) {
7358
7386
  var number = parseNumber(event.nativeEvent.text);
7359
7387
 
7360
7388
  // When intl phone number is valid :
@@ -7547,14 +7575,14 @@ function Radio(_ref, ref) {
7547
7575
  focusable: checked && !disabled,
7548
7576
  flexDirection: "row",
7549
7577
  alignItems: "center",
7550
- onPress: function (event) {
7578
+ onPress: function handlePress(event) {
7551
7579
  if (onFocus) onFocus();
7552
7580
  if (onChange) onChange(value, event);
7553
7581
  if (onBlur) onBlur();
7554
7582
  },
7555
7583
  onFocus: onFocus,
7556
7584
  onBlur: onBlur,
7557
- children: function (_ref2) {
7585
+ children: function children(_ref2) {
7558
7586
  var isHovered = _ref2.isHovered,
7559
7587
  isPressed = _ref2.isPressed,
7560
7588
  isFocused = _ref2.isFocused;
@@ -7673,11 +7701,11 @@ var useNativeAnimation$2 = function (_ref) {
7673
7701
  };
7674
7702
  });
7675
7703
  return {
7676
- onPressIn: function () {
7704
+ onPressIn: function handlePressIn() {
7677
7705
  color.value = withSpring(1);
7678
7706
  pressed.value = 1;
7679
7707
  },
7680
- onPressOut: function () {
7708
+ onPressOut: function handlePressOut() {
7681
7709
  color.value = withSpring(0);
7682
7710
  pressed.value = 0;
7683
7711
  },
@@ -7730,7 +7758,7 @@ function RadioButton(_ref) {
7730
7758
  flexShrink: createResponsiveStyleFromProp(stretch, 1, undefined),
7731
7759
  flexBasis: createResponsiveStyleFromProp(stretch, 0),
7732
7760
  disabled: disabled,
7733
- onPress: function (e) {
7761
+ onPress: function handlePress(e) {
7734
7762
  if (onFocus) onFocus(e);
7735
7763
  if (onChange) onChange(value);
7736
7764
  if (onBlur) onBlur(e);
@@ -7739,7 +7767,7 @@ function RadioButton(_ref) {
7739
7767
  onPressOut: onPressOut,
7740
7768
  onFocus: onFocus,
7741
7769
  onBlur: onBlur,
7742
- children: function (_ref2) {
7770
+ children: function children(_ref2) {
7743
7771
  var isHovered = _ref2.isHovered,
7744
7772
  isPressed = _ref2.isPressed,
7745
7773
  isFocused = _ref2.isFocused;
@@ -7858,7 +7886,7 @@ var TextArea = /*#__PURE__*/forwardRef(function (_ref, ref) {
7858
7886
  textAlignVertical: "top",
7859
7887
  minHeight: "kitt.forms.textArea.minHeight"
7860
7888
  }, props), {}, {
7861
- onChange: function (e) {
7889
+ onChange: function handleOnChange(e) {
7862
7890
  if (!limit || e.nativeEvent.text.length <= limit) {
7863
7891
  var _props$onChange;
7864
7892
  (_props$onChange = props.onChange) === null || _props$onChange === void 0 || _props$onChange.call(props, e);
@@ -8021,10 +8049,10 @@ function Toggle(_ref) {
8021
8049
  children: [/*#__PURE__*/jsx(Pressable, {
8022
8050
  accessibilityRole: "togglebutton",
8023
8051
  disabled: isDisabled,
8024
- onPress: function () {
8052
+ onPress: function handlePress() {
8025
8053
  onChange(!value);
8026
8054
  },
8027
- children: function (_ref2) {
8055
+ children: function children(_ref2) {
8028
8056
  var isHovered = _ref2.isHovered,
8029
8057
  isPressed = _ref2.isPressed,
8030
8058
  isFocused = _ref2.isFocused;
@@ -8110,11 +8138,10 @@ function NativeOpacityAnimation(_ref) {
8110
8138
  var _theme$kitt$fullscree = theme.kitt.fullscreenModal.animation.overlay,
8111
8139
  duration = _theme$kitt$fullscree.duration,
8112
8140
  easing = _theme$kitt$fullscree.easing;
8113
- var _easing = _slicedToArray(easing, 4),
8114
- x1 = _easing[0],
8115
- y1 = _easing[1],
8116
- x2 = _easing[2],
8117
- y2 = _easing[3];
8141
+ var x1 = easing.x1,
8142
+ y1 = easing.y1,
8143
+ x2 = easing.x2,
8144
+ y2 = easing.y2;
8118
8145
  return {
8119
8146
  opacity: withTiming(visible ? 1 : 0, {
8120
8147
  duration: duration,
@@ -8150,11 +8177,10 @@ function NativeSlideInAnimation(_ref) {
8150
8177
  var _theme$kitt$fullscree = theme.kitt.fullscreenModal.animation.content,
8151
8178
  duration = _theme$kitt$fullscree.duration,
8152
8179
  easing = _theme$kitt$fullscree.easing;
8153
- var _easing = _slicedToArray(easing, 4),
8154
- x1 = _easing[0],
8155
- y1 = _easing[1],
8156
- x2 = _easing[2],
8157
- y2 = _easing[3];
8180
+ var x1 = easing.x1,
8181
+ y1 = easing.y1,
8182
+ x2 = easing.x2,
8183
+ y2 = easing.y2;
8158
8184
  return {
8159
8185
  transform: [{
8160
8186
  translateY: withTiming(visible ? 0 : wHeight, {
@@ -8213,11 +8239,11 @@ function FullscreenModalAnimation(_ref) {
8213
8239
  transparent: true,
8214
8240
  supportedOrientations: ['landscape', 'portrait'],
8215
8241
  visible: isModalVisible,
8216
- onShow: function () {
8242
+ onShow: function onShow() {
8217
8243
  if (onEnter) onEnter();
8218
8244
  setIsContentVisible(true);
8219
8245
  },
8220
- onDismiss: function () {
8246
+ onDismiss: function onDismiss() {
8221
8247
  if (onExited) onExited();
8222
8248
  },
8223
8249
  children: /*#__PURE__*/jsxs(View, {
@@ -8264,7 +8290,7 @@ function FullscreenModalBehaviour(_ref) {
8264
8290
  onClose: onClose,
8265
8291
  children: /*#__PURE__*/jsx(FullscreenModalAnimation, _objectSpread(_objectSpread({}, props), {}, {
8266
8292
  visible: visible,
8267
- onExited: function () {
8293
+ onExited: function handleExitAnimationDone() {
8268
8294
  if (onExited) onExited();
8269
8295
  setIsModalBehaviourVisible(false);
8270
8296
  },
@@ -8427,12 +8453,15 @@ function AnimatedCaret(_ref) {
8427
8453
  function AnimatedContainer(_ref) {
8428
8454
  var children = _ref.children,
8429
8455
  size = _ref.size,
8430
- animatedStyles = _ref.animatedStyles;
8456
+ animatedStyles = _ref.animatedStyles,
8457
+ variant = _ref.variant;
8431
8458
  var sx = useSx();
8432
8459
  var theme = useTheme();
8433
8460
  var styles = sx({
8434
8461
  borderRadius: theme.kitt.highlight.borderRadius,
8435
- padding: theme.kitt.highlight.padding[size]
8462
+ padding: theme.kitt.highlight.padding[size],
8463
+ borderWidth: theme.kitt.highlight[variant]["default"].borderWidth,
8464
+ borderColor: theme.kitt.highlight[variant]["default"].borderColor
8436
8465
  });
8437
8466
  return /*#__PURE__*/jsx(Animated.View, {
8438
8467
  style: [styles, animatedStyles],
@@ -8491,11 +8520,11 @@ var useNativeAnimation$1 = function (_ref) {
8491
8520
  };
8492
8521
  });
8493
8522
  return {
8494
- onPressIn: function () {
8523
+ onPressIn: function handleHoverIn() {
8495
8524
  color.value = withTiming(1, withTimingConfig);
8496
8525
  translate.value = withTiming(2, withTimingConfig);
8497
8526
  },
8498
- onPressOut: function () {
8527
+ onPressOut: function handleHoverOut() {
8499
8528
  color.value = withTiming(0, withTimingConfig);
8500
8529
  translate.value = withTiming(0, withTimingConfig);
8501
8530
  },
@@ -8566,6 +8595,8 @@ function Highlight(_ref) {
8566
8595
  borderRadius: "kitt.highlight.borderRadius",
8567
8596
  padding: theme.kitt.highlight.padding[size],
8568
8597
  backgroundColor: "kitt.highlight.".concat(variant, ".default.backgroundColor"),
8598
+ borderWidth: theme.kitt.highlight[variant]["default"].borderWidth,
8599
+ borderColor: theme.kitt.highlight[variant]["default"].borderColor,
8569
8600
  children: /*#__PURE__*/jsxs(HStack, {
8570
8601
  space: highlightStyle[size].spaceBetween,
8571
8602
  children: [icon && /*#__PURE__*/jsx(View, {
@@ -8587,13 +8618,13 @@ function Highlight(_ref) {
8587
8618
  });
8588
8619
  }
8589
8620
  return /*#__PURE__*/jsx(Pressable, {
8590
- onPress: function () {
8621
+ onPress: function handlePress() {
8591
8622
  setIsExpanded(!isExpanded);
8592
8623
  setIsInitialRender(false);
8593
8624
  },
8594
8625
  onPressIn: onPressIn,
8595
8626
  onPressOut: onPressOut,
8596
- children: function (_ref2) {
8627
+ children: function children(_ref2) {
8597
8628
  var isHovered = _ref2.isHovered;
8598
8629
  return /*#__PURE__*/jsxs(AnimatedContainer, {
8599
8630
  isHovered: isHovered,
@@ -8823,12 +8854,11 @@ var SvgPinMarkerinline = function SvgPinMarkerinline(props) {
8823
8854
  width: 34,
8824
8855
  height: 36,
8825
8856
  viewBox: "0 0 34 36",
8826
- fill: "none",
8857
+ fill: "currentColor",
8827
8858
  xmlns: "http://www.w3.org/2000/svg"
8828
8859
  }, props), {}, {
8829
8860
  children: [/*#__PURE__*/jsx("path", {
8830
8861
  d: "M17 .5C26.113.5 33.5 7.887 33.5 17c0 8.272-6.087 15.121-14.025 16.315-.05.008-.157.054-.337.211-.173.151-.351.345-.56.57a5.972 5.972 0 0 1-.662.637c-.232.181-.545.367-.916.367-.37 0-.684-.186-.916-.367a5.972 5.972 0 0 1-.662-.637c-.209-.224-.387-.419-.56-.57-.18-.157-.287-.203-.337-.21C6.586 32.12.5 25.271.5 17 .5 7.887 7.887.5 17 .5Z",
8831
- fill: "#7B66FF",
8832
8862
  stroke: "#fff"
8833
8863
  }), /*#__PURE__*/jsx("path", {
8834
8864
  d: "M17 10a5.506 5.506 0 0 0-5.5 5.5c0 4.706 5 8.26 5.213 8.41a.5.5 0 0 0 .574 0c.213-.15 5.213-3.704 5.213-8.41A5.506 5.506 0 0 0 17 10Zm0 3.5a2 2 0 1 1 0 4 2 2 0 0 1 0-4Z",
@@ -8856,6 +8886,13 @@ var SvgShadowinline = function SvgShadowinline(props) {
8856
8886
  }));
8857
8887
  };
8858
8888
 
8889
+ var MapMarkerVariantEnum = /*#__PURE__*/function (MapMarkerVariantEnum) {
8890
+ MapMarkerVariantEnum["HOME"] = "home";
8891
+ MapMarkerVariantEnum["MEETING_POINT"] = "meetingPoint";
8892
+ MapMarkerVariantEnum["CLOSE_MEETING_POINT"] = "closeMeetingPoint";
8893
+ return MapMarkerVariantEnum;
8894
+ }({});
8895
+
8859
8896
  var SCALE_DURATION = 300;
8860
8897
  var TRANSLATE_Y_DURATION = 150;
8861
8898
  var useNativeAnimation = function (_ref) {
@@ -8910,19 +8947,13 @@ var getBackgroundColor = function (_ref) {
8910
8947
  var isHovered = _ref.isHovered,
8911
8948
  isSelected = _ref.isSelected,
8912
8949
  variant = _ref.variant;
8913
- if (variant === 'home') {
8950
+ if (variant === MapMarkerVariantEnum.HOME || variant === MapMarkerVariantEnum.CLOSE_MEETING_POINT) {
8914
8951
  return isSelected || isHovered ? theme.mapMarker.home.selected : theme.mapMarker.home["default"];
8915
8952
  }
8916
8953
  return isSelected || isHovered ? theme.mapMarker.meetingPoint.selected : theme.mapMarker.meetingPoint["default"];
8917
8954
  };
8918
8955
 
8919
8956
  var _excluded$b = ["onPress", "testID"];
8920
- var MapMarkerVariantEnum = /*#__PURE__*/function (MapMarkerVariantEnum) {
8921
- MapMarkerVariantEnum["HOME"] = "home";
8922
- MapMarkerVariantEnum["MEETING_POINT"] = "meetingPoint";
8923
- MapMarkerVariantEnum["CLOSE_MEETING_POINT"] = "closeMeetingPoint";
8924
- return MapMarkerVariantEnum;
8925
- }({});
8926
8957
  function StaticMapMarker$1(_ref) {
8927
8958
  var variant = _ref.variant,
8928
8959
  isHovered = _ref.isHovered,
@@ -8985,7 +9016,7 @@ function MapMarker(_ref2) {
8985
9016
  return /*#__PURE__*/jsx(Pressable$1, {
8986
9017
  testID: testID,
8987
9018
  onPress: onPress,
8988
- children: function (_ref3) {
9019
+ children: function children(_ref3) {
8989
9020
  var isHovered = _ref3.isHovered;
8990
9021
  return /*#__PURE__*/jsx(StaticMapMarker$1, _objectSpread(_objectSpread({}, props), {}, {
8991
9022
  isHovered: isHovered
@@ -9021,6 +9052,8 @@ var getColorByType = function (type) {
9021
9052
  switch (type) {
9022
9053
  case 'success':
9023
9054
  case 'danger':
9055
+ case 'info':
9056
+ return 'white';
9024
9057
  case 'warning':
9025
9058
  default:
9026
9059
  return 'black';
@@ -9030,6 +9063,8 @@ var getIconButtonColor = function (messageType) {
9030
9063
  switch (messageType) {
9031
9064
  case 'success':
9032
9065
  case 'danger':
9066
+ case 'info':
9067
+ return 'ghost';
9033
9068
  case 'warning':
9034
9069
  default:
9035
9070
  return 'black';
@@ -9050,7 +9085,7 @@ function BaseMessage(_ref) {
9050
9085
  justifyContent: "space-between",
9051
9086
  minHeight: "kitt.feedbackMessage.minHeight",
9052
9087
  paddingTop: insets === null || insets === void 0 ? void 0 : insets.top,
9053
- borderRadius: hasNoRadius ? undefined : 'kitt.5',
9088
+ borderRadius: hasNoRadius ? undefined : 'kitt.2',
9054
9089
  backgroundColor: "kitt.feedbackMessage.".concat(type, ".backgroundColor"),
9055
9090
  children: [/*#__PURE__*/jsxs(HStack, {
9056
9091
  flexGrow: 1,
@@ -9058,9 +9093,9 @@ function BaseMessage(_ref) {
9058
9093
  alignSelf: "center",
9059
9094
  alignItems: "flex-start",
9060
9095
  paddingY: "kitt.4",
9061
- paddingX: "kitt.5",
9096
+ paddingX: "kitt.4",
9062
9097
  children: [centeredText ? null : /*#__PURE__*/jsx(View, {
9063
- marginRight: "kitt.5",
9098
+ marginRight: "kitt.2",
9064
9099
  children: /*#__PURE__*/jsx(Icon, {
9065
9100
  color: color,
9066
9101
  icon: /*#__PURE__*/jsx(IconContent, {
@@ -11572,19 +11607,19 @@ function NavigationModalBehaviour(_ref) {
11572
11607
  children: /*#__PURE__*/jsx(AnimationComponent, _objectSpread(_objectSpread({}, props), {}, {
11573
11608
  appear: shouldAppear,
11574
11609
  visible: visible,
11575
- onEnter: function () {
11610
+ onEnter: function handleEnter() {
11576
11611
  if (onEnter) onEnter();
11577
11612
 
11578
11613
  // Once a children as been displayed, we force appear to false in order to avoid replaying animation on breakpoint change
11579
11614
  setShouldAppear(false);
11580
11615
  },
11581
- onExit: function () {
11616
+ onExit: function handleExit() {
11582
11617
  if (onExit) onExit();
11583
11618
 
11584
11619
  // Reset appear value to its original value for future modal display
11585
11620
  setShouldAppear(appear);
11586
11621
  },
11587
- onExited: function () {
11622
+ onExited: function handleExitAnimationDone() {
11588
11623
  if (onExited) onExited();
11589
11624
  setIsModalBehaviourVisible(false);
11590
11625
  },
@@ -11945,7 +11980,7 @@ function Picker(_ref) {
11945
11980
  isOpen: state.isOpen,
11946
11981
  selectedItem: state.currentValue,
11947
11982
  disabled: disabled,
11948
- onPress: function () {
11983
+ onPress: function handlePressTrigger() {
11949
11984
  if (syncStateWithSourceValue) {
11950
11985
  dispatch({
11951
11986
  type: 'open-modal-with-value',
@@ -11999,7 +12034,7 @@ function Picker(_ref) {
11999
12034
  accessibilityState: {
12000
12035
  selected: isSelected
12001
12036
  },
12002
- onPress: function () {
12037
+ onPress: function onPress() {
12003
12038
  handleInternalChange(item.props.value);
12004
12039
  },
12005
12040
  children: function (_ref2) {
@@ -12020,7 +12055,7 @@ function Picker(_ref) {
12020
12055
  children: /*#__PURE__*/jsx(Button, {
12021
12056
  stretch: true,
12022
12057
  type: "primary",
12023
- onPress: function () {
12058
+ onPress: function handleChange() {
12024
12059
  if (onChange) onChange(state.internalValue);
12025
12060
  dispatch({
12026
12061
  type: 'change-value'
@@ -12157,7 +12192,7 @@ function Skeleton(_ref) {
12157
12192
  return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
12158
12193
  overflow: "hidden",
12159
12194
  style: style,
12160
- onLayout: function (_ref2) {
12195
+ onLayout: function onLayout(_ref2) {
12161
12196
  var nativeEvent = _ref2.nativeEvent;
12162
12197
  return setWidth(nativeEvent.layout.width);
12163
12198
  },
@@ -12379,7 +12414,7 @@ function StaticMap(_ref) {
12379
12414
  position: "relative",
12380
12415
  maxWidth: mapBoxMaxPictureWidth,
12381
12416
  height: height,
12382
- onLayout: function (event) {
12417
+ onLayout: function handleParentLayout(event) {
12383
12418
  var nativeEvent = event.nativeEvent;
12384
12419
  var rangedMapWidth = getPictureWidth(nativeEvent.layout.width);
12385
12420
  setCurrentWidth(rangedMapWidth);
@@ -12391,11 +12426,11 @@ function StaticMap(_ref) {
12391
12426
  width: currentWidth,
12392
12427
  height: height,
12393
12428
  alt: alt,
12394
- onLoadEnd: function () {
12429
+ onLoadEnd: function handleImageLoadEnd() {
12395
12430
  setIsLoading(false);
12396
12431
  if (onLoaded) onLoaded();
12397
12432
  },
12398
- onError: function () {
12433
+ onError: function handleError() {
12399
12434
  setHasError(true);
12400
12435
  if (onError) onError();
12401
12436
  }
@@ -12420,7 +12455,7 @@ function StaticMap(_ref) {
12420
12455
  width: "100%",
12421
12456
  height: "100%",
12422
12457
  children: /*#__PURE__*/jsx(StaticMapError, {
12423
- onReload: function () {
12458
+ onReload: function handleReload() {
12424
12459
  setHasError(false);
12425
12460
  setIsLoading(true);
12426
12461
  setCurrentMapKey(function (prev) {
@@ -12661,7 +12696,7 @@ function StoryContainer(_ref) {
12661
12696
  var StoryDecorator = makeDecorator({
12662
12697
  name: 'StoryDecorator',
12663
12698
  parameterName: 'storyDecorator',
12664
- wrapper: function (storyFn, context) {
12699
+ wrapper: function wrapper(storyFn, context) {
12665
12700
  var story = storyFn(context);
12666
12701
  if (context.parameters.disableStoryContainer) {
12667
12702
  return story;
@@ -12843,13 +12878,14 @@ function TabBar(_ref) {
12843
12878
  }, props), {}, {
12844
12879
  children: Children.map(tabItems, function (child, index) {
12845
12880
  var tab = tabs[index];
12881
+ if (!tab) throw new Error("TabBar: tab is undefined at index ".concat(index));
12846
12882
  return /*#__PURE__*/jsx(View, {
12847
12883
  children: /*#__PURE__*/cloneElement(child, {
12848
12884
  color: color,
12849
- onPress: function (event) {
12885
+ onPress: function onPress(event) {
12850
12886
  var _child$props$onPress, _child$props;
12851
12887
  onChangeTab({
12852
- tab: tabs[index],
12888
+ tab: tab,
12853
12889
  index: index
12854
12890
  });
12855
12891
  (_child$props$onPress = (_child$props = child.props).onPress) === null || _child$props$onPress === void 0 || _child$props$onPress.call(_child$props, event);
@@ -12995,7 +13031,7 @@ function ModalDateTimePicker(_ref) {
12995
13031
  stretch: true,
12996
13032
  testID: "timePicker.ModalDateTimePicker.submitButton",
12997
13033
  type: "primary",
12998
- onPress: function () {
13034
+ onPress: function handleSubmit() {
12999
13035
  onChange(currentValue);
13000
13036
  },
13001
13037
  children: buttonContent
@@ -13042,7 +13078,7 @@ var TimePickerPressable = /*#__PURE__*/forwardRef(function (_ref, ref) {
13042
13078
  width: createResponsiveStyleFromProp(stretch, '100%', 'kitt.forms.timePicker.minWidth'),
13043
13079
  pointerEvents: "box-only",
13044
13080
  onPress: onPress,
13045
- children: function (_ref2) {
13081
+ children: function children(_ref2) {
13046
13082
  var isHovered = _ref2.isHovered,
13047
13083
  isFocused = _ref2.isFocused,
13048
13084
  isPressed = _ref2.isPressed;
@@ -13119,7 +13155,7 @@ var TimePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
13119
13155
  isHoveredInternal: isHoveredInternal,
13120
13156
  isFocusedInternal: isFocusedInternal,
13121
13157
  isPressedInternal: isPressedInternal,
13122
- onPress: function () {
13158
+ onPress: function handlePress() {
13123
13159
  setIsPickerVisible(true);
13124
13160
  }
13125
13161
  }), Platform.OS === 'android' && isPickerVisible ? /*#__PURE__*/jsx(DateTimePicker, {
@@ -13143,7 +13179,7 @@ var TimePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
13143
13179
  value: pickerValue,
13144
13180
  validateButtonLabel: validateButtonLabel,
13145
13181
  onChange: handleChange,
13146
- onClose: function () {
13182
+ onClose: function handleClose() {
13147
13183
  setIsPickerVisible(false);
13148
13184
  }
13149
13185
  }) : null]
@@ -13506,7 +13542,7 @@ function Tooltip(_ref) {
13506
13542
  ref: reference,
13507
13543
  children: renderPressable({
13508
13544
  ref: getPressableRect,
13509
- onPress: function () {
13545
+ onPress: function handlePress() {
13510
13546
  if (onToggle) onToggle(!!pressed.value);
13511
13547
  pressed.value = !pressed.value;
13512
13548
  },
@@ -13525,7 +13561,7 @@ function Tooltip(_ref) {
13525
13561
  left: customShiftData.left,
13526
13562
  right: customShiftData.right,
13527
13563
  zIndex: zIndex,
13528
- onLayout: function (_ref2) {
13564
+ onLayout: function onLayout(_ref2) {
13529
13565
  var nativeEvent = _ref2.nativeEvent;
13530
13566
  return setFloatingWidth(nativeEvent.layout.width);
13531
13567
  },
@@ -13688,7 +13724,7 @@ function KittThemeProvider(_ref) {
13688
13724
  var KittThemeDecorator = makeDecorator({
13689
13725
  name: 'ThemeDecorator',
13690
13726
  parameterName: 'theme',
13691
- wrapper: function (storyFn, context, _ref2) {
13727
+ wrapper: function wrapper(storyFn, context, _ref2) {
13692
13728
  var _parameters$isSSR;
13693
13729
  var _ref2$options = _ref2.options,
13694
13730
  options = _ref2$options === void 0 ? {} : _ref2$options,