@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
@@ -22,9 +22,9 @@
22
22
  .kitt-u_slideInFromBottomExit_sl0lsxt{-webkit-transform:translateY(0);-ms-transform:translateY(0);transform:translateY(0);}
23
23
  .kitt-u_slideInFromBottomExitActive_srlzzmu{-webkit-transform:translateY(100%);-ms-transform:translateY(100%);transform:translateY(100%);-webkit-transition:-webkit-transform 600ms cubic-bezier(0.77,0,0.175,1);-webkit-transition:transform 600ms cubic-bezier(0.77,0,0.175,1);transition:transform 600ms cubic-bezier(0.77,0,0.175,1);}
24
24
  .kitt-u_opacityEnter_okm44hr{opacity:0;}
25
- .kitt-u_opacityEnterActive_o2w8t0i{opacity:1;-webkit-transition:opacity 250ms cubic-bezier(0.42,0,1,1);transition:opacity 250ms cubic-bezier(0.42,0,1,1);}
25
+ .kitt-u_opacityEnterActive_o2w8t0i{opacity:1;-webkit-transition:opacity 250ms cubic-bezier(0.42,1,0,1);transition:opacity 250ms cubic-bezier(0.42,1,0,1);}
26
26
  .kitt-u_opacityExit_o14r8iix{opacity:1;}
27
- .kitt-u_opacityExitActive_oim72y2{opacity:0;-webkit-transition:opacity 250ms cubic-bezier(0.42,0,1,1);transition:opacity 250ms cubic-bezier(0.42,0,1,1);}
27
+ .kitt-u_opacityExitActive_oim72y2{opacity:0;-webkit-transition:opacity 250ms cubic-bezier(0.42,1,0,1);transition:opacity 250ms cubic-bezier(0.42,1,0,1);}
28
28
  .kitt-u_pageLoaderContainer_ptkwz2j{width:60px;height:60px;-webkit-transform:scale(-1) rotate(90deg);-ms-transform:scale(-1) rotate(90deg);transform:scale(-1) rotate(90deg);}@-webkit-keyframes PageLoaderInit-kitt-u_pageLoaderContainer_ptkwz2j{0%{stroke-dashoffset:169.64600329384882px;}100%{stroke-dashoffset:0;}}@keyframes PageLoaderInit-kitt-u_pageLoaderContainer_ptkwz2j{0%{stroke-dashoffset:169.64600329384882px;}100%{stroke-dashoffset:0;}}@-webkit-keyframes PageLoaderOffset-kitt-u_pageLoaderContainer_ptkwz2j{0%{stroke-dashoffset:169.64600329384882px;}100%{stroke-dashoffset:33.929200658769766px;}}@keyframes PageLoaderOffset-kitt-u_pageLoaderContainer_ptkwz2j{0%{stroke-dashoffset:169.64600329384882px;}100%{stroke-dashoffset:33.929200658769766px;}}@-webkit-keyframes PageLoaderRotation-kitt-u_pageLoaderContainer_ptkwz2j{0%{-webkit-transform:rotate(0deg);-ms-transform:rotate(0deg);transform:rotate(0deg);}100%{-webkit-transform:rotate(360deg);-ms-transform:rotate(360deg);transform:rotate(360deg);}}@keyframes PageLoaderRotation-kitt-u_pageLoaderContainer_ptkwz2j{0%{-webkit-transform:rotate(0deg);-ms-transform:rotate(0deg);transform:rotate(0deg);}100%{-webkit-transform:rotate(360deg);-ms-transform:rotate(360deg);transform:rotate(360deg);}}.kitt-u_pageLoaderContainer_ptkwz2j circle,.kitt-u_pageLoaderContainer_ptkwz2j g{-webkit-transform-origin:center center;-ms-transform-origin:center center;transform-origin:center center;}.kitt-u_pageLoaderContainer_ptkwz2j g[data-large-loader='base'] circle{-webkit-animation:1000ms cubic-bezier(0.39,0.575,0.565,1) 500ms forwards;animation:1000ms cubic-bezier(0.39,0.575,0.565,1) 500ms forwards;-webkit-animation-name:PageLoaderInit-kitt-u_pageLoaderContainer_ptkwz2j;animation-name:PageLoaderInit-kitt-u_pageLoaderContainer_ptkwz2j;}.kitt-u_pageLoaderContainer_ptkwz2j g[data-large-loader='fill']{-webkit-animation:1800ms linear 500ms infinite;animation:1800ms linear 500ms infinite;-webkit-animation-name:PageLoaderRotation-kitt-u_pageLoaderContainer_ptkwz2j;animation-name:PageLoaderRotation-kitt-u_pageLoaderContainer_ptkwz2j;}.kitt-u_pageLoaderContainer_ptkwz2j g[data-large-loader='fill'] circle{-webkit-animation:1800ms cubic-bezier(0.39,0.575,0.565,1) 500ms infinite alternate,2160ms linear 500ms infinite;animation:1800ms cubic-bezier(0.39,0.575,0.565,1) 500ms infinite alternate,2160ms linear 500ms infinite;-webkit-animation-name:PageLoaderOffset-kitt-u_pageLoaderContainer_ptkwz2j,PageLoaderRotation-kitt-u_pageLoaderContainer_ptkwz2j;animation-name:PageLoaderOffset-kitt-u_pageLoaderContainer_ptkwz2j,PageLoaderRotation-kitt-u_pageLoaderContainer_ptkwz2j;}
29
29
  .kitt-u_enter_ereraf{-webkit-transform:translateY(8px);-ms-transform:translateY(8px);transform:translateY(8px);opacity:0;}
30
30
  .kitt-u_enterActive_e1jmsjrm{-webkit-transform:translateY(0);-ms-transform:translateY(0);transform:translateY(0);opacity:1;-webkit-transition:all 300ms ease-in-out;transition:all 300ms ease-in-out;}
@@ -733,13 +733,23 @@ const card = {
733
733
  };
734
734
 
735
735
  const webAnimationContentDuration$2 = 400;
736
- const webAnimationContentEasing$2 = [0.77, 0, 0.175, 1];
736
+ const webAnimationContentEasing$2 = {
737
+ x1: 0.77,
738
+ y1: 0,
739
+ x2: 0.175,
740
+ y2: 1
741
+ };
737
742
  const webAnimationOverlayDuration$2 = 250;
738
- const webAnimationOverlayEasing$2 = [0.42, 0, 1, 1];
743
+ const webAnimationOverlayEasing$2 = {
744
+ x1: 0.42,
745
+ y1: 0,
746
+ x2: 1,
747
+ y2: 1
748
+ };
739
749
  const maxWidth = 540;
740
750
  const overlayHorizontalPadding = 24;
741
751
  const cardModal = {
742
- borderRadius: 20,
752
+ borderRadius: spacing * 2,
743
753
  maxWidth,
744
754
  maxWidthWithPadding: maxWidth + overlayHorizontalPadding * 2,
745
755
  minHeight: 280,
@@ -827,11 +837,21 @@ const choices = {
827
837
  };
828
838
 
829
839
  const webAnimationContentDuration$1 = 400;
830
- const webAnimationContentEasing$1 = [0.77, 0, 0.175, 1];
840
+ const webAnimationContentEasing$1 = {
841
+ x1: 0.77,
842
+ y1: 0,
843
+ x2: 0.175,
844
+ y2: 1
845
+ };
831
846
  const webAnimationOverlayDuration$1 = 250;
832
- const webAnimationOverlayEasing$1 = [0.42, 0, 1, 1];
847
+ const webAnimationOverlayEasing$1 = {
848
+ x1: 0.42,
849
+ y1: 0,
850
+ x2: 1,
851
+ y2: 1
852
+ };
833
853
  const dialogModal = {
834
- borderRadius: 20,
854
+ borderRadius: spacing * 2,
835
855
  maxWidth: 540,
836
856
  overlayPadding: {
837
857
  horizontal: 24,
@@ -1761,9 +1781,19 @@ const forms = {
1761
1781
  };
1762
1782
 
1763
1783
  const webAnimationContentDuration = 600;
1764
- const webAnimationContentEasing = [0.77, 0, 0.175, 1];
1784
+ const webAnimationContentEasing = {
1785
+ x1: 0.77,
1786
+ y1: 0,
1787
+ x2: 0.175,
1788
+ y2: 1
1789
+ };
1765
1790
  const webAnimationOverlayDuration = 250;
1766
- const webAnimationOverlayEasing = [0.42, 0, 1, 1];
1791
+ const webAnimationOverlayEasing = {
1792
+ x1: 0.42,
1793
+ y1: 0,
1794
+ x2: 1,
1795
+ y2: 1
1796
+ };
1767
1797
  const fullscreenModal = {
1768
1798
  header: {
1769
1799
  height: 56
@@ -1800,10 +1830,10 @@ const highlight = {
1800
1830
  },
1801
1831
  primary: {
1802
1832
  default: {
1803
- backgroundColor: deepPurpleColorPalette['beige.2']
1833
+ backgroundColor: deepPurpleColorPalette['blue.1']
1804
1834
  },
1805
1835
  hover: {
1806
- backgroundColor: deepPurpleColorPalette['beige.4']
1836
+ backgroundColor: deepPurpleColorPalette['blue.2']
1807
1837
  }
1808
1838
  },
1809
1839
  secondary: {
@@ -1824,10 +1854,14 @@ const highlight = {
1824
1854
  },
1825
1855
  dark: {
1826
1856
  default: {
1827
- backgroundColor: deepPurpleColorPalette['beige.2']
1857
+ backgroundColor: deepPurpleColorPalette['grey.0'],
1858
+ borderWidth: 1,
1859
+ borderColor: deepPurpleColorPalette['beige.3']
1828
1860
  },
1829
1861
  hover: {
1830
- backgroundColor: deepPurpleColorPalette['beige.1']
1862
+ backgroundColor: deepPurpleColorPalette['beige.1'],
1863
+ borderWidth: 1,
1864
+ borderColor: deepPurpleColorPalette['beige.3']
1831
1865
  }
1832
1866
  },
1833
1867
  success: {
@@ -1907,8 +1941,8 @@ const listItem = {
1907
1941
 
1908
1942
  const mapMarker = {
1909
1943
  home: {
1910
- default: colors.primaryLight,
1911
- selected: colors.primary,
1944
+ default: deepPurpleColorPalette['grey.9'],
1945
+ selected: deepPurpleColorPalette['grey.7'],
1912
1946
  svg: {
1913
1947
  height: 36
1914
1948
  },
@@ -1918,8 +1952,8 @@ const mapMarker = {
1918
1952
  }
1919
1953
  },
1920
1954
  meetingPoint: {
1921
- default: colors.black,
1922
- selected: colors.blackAnthracite,
1955
+ default: deepPurpleColorPalette['deepPurple.8'],
1956
+ selected: deepPurpleColorPalette['deepPurple.6'],
1923
1957
  svg: {
1924
1958
  width: 40,
1925
1959
  height: 43
@@ -5695,7 +5729,7 @@ function DocumentPicker({
5695
5729
  ...documentPickerOptions,
5696
5730
  multiple: false
5697
5731
  });
5698
- if (!result.canceled && result.assets[0].file) {
5732
+ if (!result.canceled && result.assets[0]?.file) {
5699
5733
  onDocumentUpload(result.assets[0].file);
5700
5734
  }
5701
5735
  },
@@ -5726,7 +5760,7 @@ function ImagePicker({
5726
5760
  ...imagePickerOptions,
5727
5761
  allowsMultipleSelection: false
5728
5762
  });
5729
- if (!result.canceled) {
5763
+ if (!result.canceled && result.assets[0]) {
5730
5764
  onImageSelected(result.assets[0]);
5731
5765
  }
5732
5766
  },
@@ -5984,17 +6018,17 @@ function GoogleMapsAutocompleteProvider({
5984
6018
  dispatch({
5985
6019
  type: 'search-error'
5986
6020
  });
5987
- return;
5988
6021
  }
5989
-
5990
- // We cache the results to avoid calling the API again if the user types the same value
5991
- searchResultsCache.current[value] = results;
5992
- dispatch({
5993
- type: 'search-success',
5994
- payload: {
5995
- results
5996
- }
5997
- });
6022
+ if (results) {
6023
+ // We cache the results to avoid calling the API again if the user types the same value
6024
+ searchResultsCache.current[value] = results;
6025
+ dispatch({
6026
+ type: 'search-success',
6027
+ payload: {
6028
+ results
6029
+ }
6030
+ });
6031
+ }
5998
6032
  } catch (error) {
5999
6033
  dispatch({
6000
6034
  type: 'search-error'
@@ -7335,6 +7369,8 @@ function AnimatedContainer({
7335
7369
  },
7336
7370
  borderRadius: "kitt.highlight.borderRadius",
7337
7371
  padding: theme.kitt.highlight.padding[size],
7372
+ borderWidth: theme.kitt.highlight[variant].default.borderWidth,
7373
+ borderColor: theme.kitt.highlight[variant].default.borderColor,
7338
7374
  backgroundColor: isHovered ? theme.kitt.highlight[variant].hover.backgroundColor : theme.kitt.highlight[variant].default.backgroundColor,
7339
7375
  children: children
7340
7376
  });
@@ -7414,6 +7450,8 @@ function Highlight({
7414
7450
  borderRadius: "kitt.highlight.borderRadius",
7415
7451
  padding: theme.kitt.highlight.padding[size],
7416
7452
  backgroundColor: `kitt.highlight.${variant}.default.backgroundColor`,
7453
+ borderWidth: theme.kitt.highlight[variant].default.borderWidth,
7454
+ borderColor: theme.kitt.highlight[variant].default.borderColor,
7417
7455
  children: /*#__PURE__*/jsxs(HStack, {
7418
7456
  space: highlightStyle[size].spaceBetween,
7419
7457
  children: [icon && /*#__PURE__*/jsx(View, {
@@ -7751,12 +7789,11 @@ const SvgPinMarkerinline = props => /*#__PURE__*/jsxs("svg", {
7751
7789
  width: 34,
7752
7790
  height: 36,
7753
7791
  viewBox: "0 0 34 36",
7754
- fill: "none",
7792
+ fill: "currentColor",
7755
7793
  xmlns: "http://www.w3.org/2000/svg",
7756
7794
  ...props,
7757
7795
  children: [/*#__PURE__*/jsx("path", {
7758
7796
  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",
7759
- fill: "#7B66FF",
7760
7797
  stroke: "#fff"
7761
7798
  }), /*#__PURE__*/jsx("path", {
7762
7799
  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",
@@ -7781,6 +7818,13 @@ const SvgShadowinline = props => /*#__PURE__*/jsx("svg", {
7781
7818
  })
7782
7819
  });
7783
7820
 
7821
+ let MapMarkerVariantEnum = /*#__PURE__*/function (MapMarkerVariantEnum) {
7822
+ MapMarkerVariantEnum["HOME"] = "home";
7823
+ MapMarkerVariantEnum["MEETING_POINT"] = "meetingPoint";
7824
+ MapMarkerVariantEnum["CLOSE_MEETING_POINT"] = "closeMeetingPoint";
7825
+ return MapMarkerVariantEnum;
7826
+ }({});
7827
+
7784
7828
  const SCALE_DURATION = 300;
7785
7829
  const TRANSLATE_Y_DURATION = 150;
7786
7830
  const useNativeAnimation = ({
@@ -7837,18 +7881,12 @@ const getBackgroundColor$1 = ({
7837
7881
  isSelected,
7838
7882
  variant
7839
7883
  }) => {
7840
- if (variant === 'home') {
7884
+ if (variant === MapMarkerVariantEnum.HOME || variant === MapMarkerVariantEnum.CLOSE_MEETING_POINT) {
7841
7885
  return isSelected || isHovered ? theme.mapMarker.home.selected : theme.mapMarker.home.default;
7842
7886
  }
7843
7887
  return isSelected || isHovered ? theme.mapMarker.meetingPoint.selected : theme.mapMarker.meetingPoint.default;
7844
7888
  };
7845
7889
 
7846
- let MapMarkerVariantEnum = /*#__PURE__*/function (MapMarkerVariantEnum) {
7847
- MapMarkerVariantEnum["HOME"] = "home";
7848
- MapMarkerVariantEnum["MEETING_POINT"] = "meetingPoint";
7849
- MapMarkerVariantEnum["CLOSE_MEETING_POINT"] = "closeMeetingPoint";
7850
- return MapMarkerVariantEnum;
7851
- }({});
7852
7890
  function StaticMapMarker$1({
7853
7891
  variant,
7854
7892
  isHovered,
@@ -7951,6 +7989,8 @@ const getColorByType = type => {
7951
7989
  switch (type) {
7952
7990
  case 'success':
7953
7991
  case 'danger':
7992
+ case 'info':
7993
+ return 'white';
7954
7994
  case 'warning':
7955
7995
  default:
7956
7996
  return 'black';
@@ -7960,6 +8000,8 @@ const getIconButtonColor = messageType => {
7960
8000
  switch (messageType) {
7961
8001
  case 'success':
7962
8002
  case 'danger':
8003
+ case 'info':
8004
+ return 'ghost';
7963
8005
  case 'warning':
7964
8006
  default:
7965
8007
  return 'black';
@@ -7980,7 +8022,7 @@ function BaseMessage({
7980
8022
  justifyContent: "space-between",
7981
8023
  minHeight: "kitt.feedbackMessage.minHeight",
7982
8024
  paddingTop: insets?.top,
7983
- borderRadius: hasNoRadius ? undefined : 'kitt.5',
8025
+ borderRadius: hasNoRadius ? undefined : 'kitt.2',
7984
8026
  backgroundColor: `kitt.feedbackMessage.${type}.backgroundColor`,
7985
8027
  children: [/*#__PURE__*/jsxs(HStack, {
7986
8028
  flexGrow: 1,
@@ -7988,9 +8030,9 @@ function BaseMessage({
7988
8030
  alignSelf: "center",
7989
8031
  alignItems: "flex-start",
7990
8032
  paddingY: "kitt.4",
7991
- paddingX: "kitt.5",
8033
+ paddingX: "kitt.4",
7992
8034
  children: [centeredText ? null : /*#__PURE__*/jsx(View, {
7993
- marginRight: "kitt.5",
8035
+ marginRight: "kitt.2",
7994
8036
  children: /*#__PURE__*/jsx(Icon, {
7995
8037
  color: color,
7996
8038
  icon: /*#__PURE__*/jsx(IconContent, {
@@ -10879,6 +10921,7 @@ function Picker({
10879
10921
  paddingY: "kitt.2",
10880
10922
  children: childrenArray.map((child, index) => {
10881
10923
  const currentValue = items[index];
10924
+ if (!currentValue) throw new Error(`Picker: No value found for item at index ${index}`);
10882
10925
  const {
10883
10926
  onClick,
10884
10927
  'aria-selected': ariaSelected,
@@ -11688,12 +11731,13 @@ function TabBar({
11688
11731
  ...props,
11689
11732
  children: Children.map(tabItems, (child, index) => {
11690
11733
  const tab = tabs[index];
11734
+ if (!tab) throw new Error(`TabBar: tab is undefined at index ${index}`);
11691
11735
  return /*#__PURE__*/jsx(View, {
11692
11736
  children: /*#__PURE__*/cloneElement(child, {
11693
11737
  color,
11694
11738
  onPress: event => {
11695
11739
  onChangeTab({
11696
- tab: tabs[index],
11740
+ tab,
11697
11741
  index
11698
11742
  });
11699
11743
  child.props.onPress?.(event);
@@ -11841,6 +11885,7 @@ const TimePicker = /*#__PURE__*/forwardRef(({
11841
11885
  // Format is hh:mm hence 5 characters
11842
11886
  if (currentInputValue.length < 5 || !currentInputValue.includes(':')) return;
11843
11887
  const [hours, minutes] = currentInputValue.split(':');
11888
+ if (!hours || !minutes) return;
11844
11889
 
11845
11890
  // Prepare the next date. It clones the date value passed as prop if available
11846
11891
  const nextDate = value ? new Date(value) : new Date();
@@ -11881,6 +11926,7 @@ const TimePicker = /*#__PURE__*/forwardRef(({
11881
11926
  // When input has a value which is more than ':'
11882
11927
  if (hasSeparator && sanitizedValue.length > 1) {
11883
11928
  const [hours, minutes] = sanitizedValue.split(':');
11929
+ if (!hours || !minutes) return;
11884
11930
  const currentHours = getDisplayedHours(hours);
11885
11931
  const currentMinutes = getDisplayedMinutes(minutes);
11886
11932
  const nextValue = `${currentHours}:${currentMinutes}`;