@ornikar/kitt-universal 26.3.1-late-ocean.9d79d7ebcde7a4b7636dc6d690f56808775db93b.0 → 26.3.1-late-ocean.925ed78a943b3f065de5c42a9ad1d6439fa2bf7e.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 (55) hide show
  1. package/CHANGELOG.md +7 -1
  2. package/dist/definitions/CardModal/CardModalAnimation/CardModalAnimation.web.d.ts.map +1 -1
  3. package/dist/definitions/DialogModal/DialogModalAnimation/DialogModalAnimation.web.d.ts.map +1 -1
  4. package/dist/definitions/FullscreenModal/FullscreenModalAnimation.web.d.ts.map +1 -1
  5. package/dist/definitions/GoogleMapsAutocompleteProvider/GoogleMapsAutocompleteProvider.d.ts.map +1 -1
  6. package/dist/definitions/Picker/Picker.web.d.ts.map +1 -1
  7. package/dist/definitions/TabBar/TabBar.d.ts.map +1 -1
  8. package/dist/definitions/TimePicker/TimePicker.web.d.ts.map +1 -1
  9. package/dist/definitions/themes/late-ocean/cardModal.d.ts +21 -4
  10. package/dist/definitions/themes/late-ocean/cardModal.d.ts.map +1 -1
  11. package/dist/definitions/themes/late-ocean/dialogModal.d.ts +21 -4
  12. package/dist/definitions/themes/late-ocean/dialogModal.d.ts.map +1 -1
  13. package/dist/definitions/themes/late-ocean/fullscreenModal.d.ts +21 -4
  14. package/dist/definitions/themes/late-ocean/fullscreenModal.d.ts.map +1 -1
  15. package/dist/definitions/themes/late-ocean/shadows.d.ts +4 -2
  16. package/dist/definitions/themes/late-ocean/shadows.d.ts.map +1 -1
  17. package/dist/definitions/themes/late-ocean/skeleton.d.ts +2 -1
  18. package/dist/definitions/themes/late-ocean/skeleton.d.ts.map +1 -1
  19. package/dist/index-metro.es.android.js +87 -26
  20. package/dist/index-metro.es.android.js.map +1 -1
  21. package/dist/index-metro.es.ios.js +87 -26
  22. package/dist/index-metro.es.ios.js.map +1 -1
  23. package/dist/index-node-22.17.cjs.js +86 -25
  24. package/dist/index-node-22.17.cjs.js.map +1 -1
  25. package/dist/index-node-22.17.cjs.web.css +2 -2
  26. package/dist/index-node-22.17.cjs.web.js +53 -19
  27. package/dist/index-node-22.17.cjs.web.js.map +1 -1
  28. package/dist/index-node-22.17.es.mjs +86 -25
  29. package/dist/index-node-22.17.es.mjs.map +1 -1
  30. package/dist/index-node-22.17.es.web.css +2 -2
  31. package/dist/index-node-22.17.es.web.mjs +53 -19
  32. package/dist/index-node-22.17.es.web.mjs.map +1 -1
  33. package/dist/index.es.js +84 -61
  34. package/dist/index.es.js.map +1 -1
  35. package/dist/index.es.web.js +63 -31
  36. package/dist/index.es.web.js.map +1 -1
  37. package/dist/linaria-themes-metro.es.android.js +36 -6
  38. package/dist/linaria-themes-metro.es.android.js.map +1 -1
  39. package/dist/linaria-themes-metro.es.ios.js +36 -6
  40. package/dist/linaria-themes-metro.es.ios.js.map +1 -1
  41. package/dist/linaria-themes-node-22.17.cjs.js +36 -6
  42. package/dist/linaria-themes-node-22.17.cjs.js.map +1 -1
  43. package/dist/linaria-themes-node-22.17.cjs.web.js +36 -6
  44. package/dist/linaria-themes-node-22.17.cjs.web.js.map +1 -1
  45. package/dist/linaria-themes-node-22.17.es.mjs +36 -6
  46. package/dist/linaria-themes-node-22.17.es.mjs.map +1 -1
  47. package/dist/linaria-themes-node-22.17.es.web.mjs +36 -6
  48. package/dist/linaria-themes-node-22.17.es.web.mjs.map +1 -1
  49. package/dist/linaria-themes.es.js +36 -6
  50. package/dist/linaria-themes.es.js.map +1 -1
  51. package/dist/linaria-themes.es.web.js +36 -6
  52. package/dist/linaria-themes.es.web.js.map +1 -1
  53. package/dist/styles.css +2 -2
  54. package/dist/tsbuildinfo +1 -1
  55. package/package.json +2 -2
@@ -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;}
@@ -828,9 +828,19 @@ const card = {
828
828
  };
829
829
 
830
830
  const webAnimationContentDuration$2 = 400;
831
- const webAnimationContentEasing$2 = [0.77, 0, 0.175, 1];
831
+ const webAnimationContentEasing$2 = {
832
+ x1: 0.77,
833
+ y1: 0,
834
+ x2: 0.175,
835
+ y2: 1
836
+ };
832
837
  const webAnimationOverlayDuration$2 = 250;
833
- const webAnimationOverlayEasing$2 = [0.42, 0, 1, 1];
838
+ const webAnimationOverlayEasing$2 = {
839
+ x1: 0.42,
840
+ y1: 0,
841
+ x2: 1,
842
+ y2: 1
843
+ };
834
844
  const maxWidth = 540;
835
845
  const overlayHorizontalPadding = 24;
836
846
  const cardModal = {
@@ -904,9 +914,19 @@ const choices = {
904
914
  };
905
915
 
906
916
  const webAnimationContentDuration$1 = 400;
907
- const webAnimationContentEasing$1 = [0.77, 0, 0.175, 1];
917
+ const webAnimationContentEasing$1 = {
918
+ x1: 0.77,
919
+ y1: 0,
920
+ x2: 0.175,
921
+ y2: 1
922
+ };
908
923
  const webAnimationOverlayDuration$1 = 250;
909
- const webAnimationOverlayEasing$1 = [0.42, 0, 1, 1];
924
+ const webAnimationOverlayEasing$1 = {
925
+ x1: 0.42,
926
+ y1: 0,
927
+ x2: 1,
928
+ y2: 1
929
+ };
910
930
  const dialogModal = {
911
931
  borderRadius: 20,
912
932
  maxWidth: 540,
@@ -1832,9 +1852,19 @@ const forms = {
1832
1852
  };
1833
1853
 
1834
1854
  const webAnimationContentDuration = 600;
1835
- const webAnimationContentEasing = [0.77, 0, 0.175, 1];
1855
+ const webAnimationContentEasing = {
1856
+ x1: 0.77,
1857
+ y1: 0,
1858
+ x2: 0.175,
1859
+ y2: 1
1860
+ };
1836
1861
  const webAnimationOverlayDuration = 250;
1837
- const webAnimationOverlayEasing = [0.42, 0, 1, 1];
1862
+ const webAnimationOverlayEasing = {
1863
+ x1: 0.42,
1864
+ y1: 0,
1865
+ x2: 1,
1866
+ y2: 1
1867
+ };
1838
1868
  const fullscreenModal = {
1839
1869
  header: {
1840
1870
  height: 56
@@ -5757,7 +5787,7 @@ function DocumentPicker({
5757
5787
  ...documentPickerOptions,
5758
5788
  multiple: false
5759
5789
  });
5760
- if (!result.canceled && result.assets[0].file) {
5790
+ if (!result.canceled && result.assets[0]?.file) {
5761
5791
  onDocumentUpload(result.assets[0].file);
5762
5792
  }
5763
5793
  },
@@ -5788,7 +5818,7 @@ function ImagePicker({
5788
5818
  ...imagePickerOptions,
5789
5819
  allowsMultipleSelection: false
5790
5820
  });
5791
- if (!result.canceled) {
5821
+ if (!result.canceled && result.assets[0]) {
5792
5822
  onImageSelected(result.assets[0]);
5793
5823
  }
5794
5824
  },
@@ -6046,17 +6076,17 @@ function GoogleMapsAutocompleteProvider({
6046
6076
  dispatch({
6047
6077
  type: 'search-error'
6048
6078
  });
6049
- return;
6050
6079
  }
6051
-
6052
- // We cache the results to avoid calling the API again if the user types the same value
6053
- searchResultsCache.current[value] = results;
6054
- dispatch({
6055
- type: 'search-success',
6056
- payload: {
6057
- results
6058
- }
6059
- });
6080
+ if (results) {
6081
+ // We cache the results to avoid calling the API again if the user types the same value
6082
+ searchResultsCache.current[value] = results;
6083
+ dispatch({
6084
+ type: 'search-success',
6085
+ payload: {
6086
+ results
6087
+ }
6088
+ });
6089
+ }
6060
6090
  } catch (error) {
6061
6091
  dispatch({
6062
6092
  type: 'search-error'
@@ -11272,6 +11302,7 @@ function Picker({
11272
11302
  paddingY: "kitt.2",
11273
11303
  children: childrenArray.map((child, index) => {
11274
11304
  const currentValue = items[index];
11305
+ if (currentValue === undefined) throw new Error(`Picker: No value found for item at index ${index}`);
11275
11306
  const {
11276
11307
  onClick,
11277
11308
  'aria-selected': ariaSelected,
@@ -12086,12 +12117,13 @@ function TabBar({
12086
12117
  ...props,
12087
12118
  children: react.Children.map(tabItems, (child, index) => {
12088
12119
  const tab = tabs[index];
12120
+ if (!tab) throw new Error(`TabBar: tab is undefined at index ${index}`);
12089
12121
  return /*#__PURE__*/jsxRuntime.jsx(View, {
12090
12122
  children: /*#__PURE__*/react.cloneElement(child, {
12091
12123
  color,
12092
12124
  onPress: event => {
12093
12125
  onChangeTab({
12094
- tab: tabs[index],
12126
+ tab,
12095
12127
  index
12096
12128
  });
12097
12129
  child.props.onPress?.(event);
@@ -12246,6 +12278,7 @@ const TimePicker = /*#__PURE__*/react.forwardRef(({
12246
12278
  // Format is hh:mm hence 5 characters
12247
12279
  if (currentInputValue.length < 5 || !currentInputValue.includes(':')) return;
12248
12280
  const [hours, minutes] = currentInputValue.split(':');
12281
+ if (!hours || !minutes) return;
12249
12282
 
12250
12283
  // Prepare the next date. It clones the date value passed as prop if available
12251
12284
  const nextDate = value ? new Date(value) : new Date();
@@ -12286,6 +12319,7 @@ const TimePicker = /*#__PURE__*/react.forwardRef(({
12286
12319
  // When input has a value which is more than ':'
12287
12320
  if (hasSeparator && sanitizedValue.length > 1) {
12288
12321
  const [hours, minutes] = sanitizedValue.split(':');
12322
+ if (!hours || !minutes) return;
12289
12323
  const currentHours = getDisplayedHours(hours);
12290
12324
  const currentMinutes = getDisplayedMinutes(minutes);
12291
12325
  const nextValue = `${currentHours}:${currentMinutes}`;