@ornikar/kitt-universal 26.3.1-canary.e22389b8233ad973bed14e560f86aaaf62ad890a.0 → 26.3.1-canary.fcd36361858696a81c52c40672737eeca6e22f42.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 +8 -7
  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 +3 -3
@@ -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
@@ -4067,7 +4097,12 @@ function NativeOpacityAnimation$2({
4067
4097
  duration,
4068
4098
  easing
4069
4099
  } = theme.kitt.cardModal.animation.overlay;
4070
- const [x1, y1, x2, y2] = easing;
4100
+ const {
4101
+ x1,
4102
+ y1,
4103
+ x2,
4104
+ y2
4105
+ } = easing;
4071
4106
  return {
4072
4107
  opacity: withTiming(visible ? 1 : 0, {
4073
4108
  duration,
@@ -4105,7 +4140,12 @@ function NativeRotationAnimation$1({
4105
4140
  duration,
4106
4141
  easing
4107
4142
  } = theme.kitt.cardModal.animation.content;
4108
- const [x1, y1, x2, y2] = easing;
4143
+ const {
4144
+ x1,
4145
+ y1,
4146
+ x2,
4147
+ y2
4148
+ } = easing;
4109
4149
  rotation.value = withTiming(visible ? 0 : 5, {
4110
4150
  duration,
4111
4151
  easing: Easing$1.bezier(x1, y1, x2, y2)
@@ -4663,7 +4703,12 @@ function NativeOpacityAnimation$1({
4663
4703
  duration,
4664
4704
  easing
4665
4705
  } = theme.kitt.dialogModal.animation.overlay;
4666
- const [x1, y1, x2, y2] = easing;
4706
+ const {
4707
+ x1,
4708
+ y1,
4709
+ x2,
4710
+ y2
4711
+ } = easing;
4667
4712
  return {
4668
4713
  opacity: withTiming(visible ? 1 : 0, {
4669
4714
  duration,
@@ -4701,7 +4746,12 @@ function NativeRotationAnimation({
4701
4746
  duration,
4702
4747
  easing
4703
4748
  } = theme.kitt.dialogModal.animation.content;
4704
- const [x1, y1, x2, y2] = easing;
4749
+ const {
4750
+ x1,
4751
+ y1,
4752
+ x2,
4753
+ y2
4754
+ } = easing;
4705
4755
  rotation.value = withTiming(visible ? 0 : 5, {
4706
4756
  duration,
4707
4757
  easing: Easing$1.bezier(x1, y1, x2, y2)
@@ -6328,13 +6378,13 @@ function DocumentPicker({
6328
6378
  // ensure that the press event is not prevented by Button component
6329
6379
  // eslint-disable-next-line @typescript-eslint/no-misused-promises
6330
6380
  onPress: async () => {
6331
- var _childElement$props$o, _childElement$props;
6381
+ var _childElement$props$o, _childElement$props, _result$assets$;
6332
6382
  if (disabled) return;
6333
6383
  (_childElement$props$o = (_childElement$props = childElement.props).onPress) === null || _childElement$props$o === void 0 || _childElement$props$o.call(_childElement$props);
6334
6384
  const result = await getDocumentAsync(_objectSpread(_objectSpread({}, documentPickerOptions), {}, {
6335
6385
  multiple: false
6336
6386
  }));
6337
- if (!result.canceled && result.assets[0].file) {
6387
+ if (!result.canceled && (_result$assets$ = result.assets[0]) !== null && _result$assets$ !== void 0 && _result$assets$.file) {
6338
6388
  onDocumentUpload(result.assets[0].file);
6339
6389
  }
6340
6390
  },
@@ -6361,7 +6411,7 @@ function ImagePicker({
6361
6411
  const result = await launchImageLibraryAsync(_objectSpread(_objectSpread({}, imagePickerOptions), {}, {
6362
6412
  allowsMultipleSelection: false
6363
6413
  }));
6364
- if (!result.canceled) {
6414
+ if (!result.canceled && result.assets[0]) {
6365
6415
  onImageSelected(result.assets[0]);
6366
6416
  }
6367
6417
  },
@@ -6813,17 +6863,17 @@ function GoogleMapsAutocompleteProvider({
6813
6863
  dispatch({
6814
6864
  type: 'search-error'
6815
6865
  });
6816
- return;
6817
6866
  }
6818
-
6819
- // We cache the results to avoid calling the API again if the user types the same value
6820
- searchResultsCache.current[value] = results;
6821
- dispatch({
6822
- type: 'search-success',
6823
- payload: {
6824
- results
6825
- }
6826
- });
6867
+ if (results) {
6868
+ // We cache the results to avoid calling the API again if the user types the same value
6869
+ searchResultsCache.current[value] = results;
6870
+ dispatch({
6871
+ type: 'search-success',
6872
+ payload: {
6873
+ results
6874
+ }
6875
+ });
6876
+ }
6827
6877
  } catch (error) {
6828
6878
  dispatch({
6829
6879
  type: 'search-error'
@@ -7910,7 +7960,12 @@ function NativeOpacityAnimation({
7910
7960
  duration,
7911
7961
  easing
7912
7962
  } = theme.kitt.fullscreenModal.animation.overlay;
7913
- const [x1, y1, x2, y2] = easing;
7963
+ const {
7964
+ x1,
7965
+ y1,
7966
+ x2,
7967
+ y2
7968
+ } = easing;
7914
7969
  return {
7915
7970
  opacity: withTiming(visible ? 1 : 0, {
7916
7971
  duration,
@@ -7949,7 +8004,12 @@ function NativeSlideInAnimation({
7949
8004
  duration,
7950
8005
  easing
7951
8006
  } = theme.kitt.fullscreenModal.animation.content;
7952
- const [x1, y1, x2, y2] = easing;
8007
+ const {
8008
+ x1,
8009
+ y1,
8010
+ x2,
8011
+ y2
8012
+ } = easing;
7953
8013
  return {
7954
8014
  transform: [{
7955
8015
  translateY: withTiming(visible ? 0 : wHeight, {
@@ -12962,13 +13022,14 @@ function TabBar(_ref) {
12962
13022
  }, props), {}, {
12963
13023
  children: Children.map(tabItems, (child, index) => {
12964
13024
  const tab = tabs[index];
13025
+ if (!tab) throw new Error(`TabBar: tab is undefined at index ${index}`);
12965
13026
  return /*#__PURE__*/jsx(View, {
12966
13027
  children: /*#__PURE__*/cloneElement(child, {
12967
13028
  color,
12968
13029
  onPress: event => {
12969
13030
  var _child$props$onPress, _child$props;
12970
13031
  onChangeTab({
12971
- tab: tabs[index],
13032
+ tab,
12972
13033
  index
12973
13034
  });
12974
13035
  (_child$props$onPress = (_child$props = child.props).onPress) === null || _child$props$onPress === void 0 || _child$props$onPress.call(_child$props, event);