@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
@@ -825,9 +825,19 @@ const card = {
825
825
  };
826
826
 
827
827
  const webAnimationContentDuration$2 = 400;
828
- const webAnimationContentEasing$2 = [0.77, 0, 0.175, 1];
828
+ const webAnimationContentEasing$2 = {
829
+ x1: 0.77,
830
+ y1: 0,
831
+ x2: 0.175,
832
+ y2: 1
833
+ };
829
834
  const webAnimationOverlayDuration$2 = 250;
830
- const webAnimationOverlayEasing$2 = [0.42, 0, 1, 1];
835
+ const webAnimationOverlayEasing$2 = {
836
+ x1: 0.42,
837
+ y1: 0,
838
+ x2: 1,
839
+ y2: 1
840
+ };
831
841
  const maxWidth = 540;
832
842
  const overlayHorizontalPadding = 24;
833
843
  const cardModal = {
@@ -901,9 +911,19 @@ const choices = {
901
911
  };
902
912
 
903
913
  const webAnimationContentDuration$1 = 400;
904
- const webAnimationContentEasing$1 = [0.77, 0, 0.175, 1];
914
+ const webAnimationContentEasing$1 = {
915
+ x1: 0.77,
916
+ y1: 0,
917
+ x2: 0.175,
918
+ y2: 1
919
+ };
905
920
  const webAnimationOverlayDuration$1 = 250;
906
- const webAnimationOverlayEasing$1 = [0.42, 0, 1, 1];
921
+ const webAnimationOverlayEasing$1 = {
922
+ x1: 0.42,
923
+ y1: 0,
924
+ x2: 1,
925
+ y2: 1
926
+ };
907
927
  const dialogModal = {
908
928
  borderRadius: 20,
909
929
  maxWidth: 540,
@@ -1829,9 +1849,19 @@ const forms = {
1829
1849
  };
1830
1850
 
1831
1851
  const webAnimationContentDuration = 600;
1832
- const webAnimationContentEasing = [0.77, 0, 0.175, 1];
1852
+ const webAnimationContentEasing = {
1853
+ x1: 0.77,
1854
+ y1: 0,
1855
+ x2: 0.175,
1856
+ y2: 1
1857
+ };
1833
1858
  const webAnimationOverlayDuration = 250;
1834
- const webAnimationOverlayEasing = [0.42, 0, 1, 1];
1859
+ const webAnimationOverlayEasing = {
1860
+ x1: 0.42,
1861
+ y1: 0,
1862
+ x2: 1,
1863
+ y2: 1
1864
+ };
1835
1865
  const fullscreenModal = {
1836
1866
  header: {
1837
1867
  height: 56
@@ -4070,7 +4100,12 @@ function NativeOpacityAnimation$2({
4070
4100
  duration,
4071
4101
  easing
4072
4102
  } = theme.kitt.cardModal.animation.overlay;
4073
- const [x1, y1, x2, y2] = easing;
4103
+ const {
4104
+ x1,
4105
+ y1,
4106
+ x2,
4107
+ y2
4108
+ } = easing;
4074
4109
  return {
4075
4110
  opacity: withTiming(visible ? 1 : 0, {
4076
4111
  duration,
@@ -4108,7 +4143,12 @@ function NativeRotationAnimation$1({
4108
4143
  duration,
4109
4144
  easing
4110
4145
  } = theme.kitt.cardModal.animation.content;
4111
- const [x1, y1, x2, y2] = easing;
4146
+ const {
4147
+ x1,
4148
+ y1,
4149
+ x2,
4150
+ y2
4151
+ } = easing;
4112
4152
  rotation.value = withTiming(visible ? 0 : 5, {
4113
4153
  duration,
4114
4154
  easing: Easing$1.bezier(x1, y1, x2, y2)
@@ -4662,7 +4702,12 @@ function NativeOpacityAnimation$1({
4662
4702
  duration,
4663
4703
  easing
4664
4704
  } = theme.kitt.dialogModal.animation.overlay;
4665
- const [x1, y1, x2, y2] = easing;
4705
+ const {
4706
+ x1,
4707
+ y1,
4708
+ x2,
4709
+ y2
4710
+ } = easing;
4666
4711
  return {
4667
4712
  opacity: withTiming(visible ? 1 : 0, {
4668
4713
  duration,
@@ -4700,7 +4745,12 @@ function NativeRotationAnimation({
4700
4745
  duration,
4701
4746
  easing
4702
4747
  } = theme.kitt.dialogModal.animation.content;
4703
- const [x1, y1, x2, y2] = easing;
4748
+ const {
4749
+ x1,
4750
+ y1,
4751
+ x2,
4752
+ y2
4753
+ } = easing;
4704
4754
  rotation.value = withTiming(visible ? 0 : 5, {
4705
4755
  duration,
4706
4756
  easing: Easing$1.bezier(x1, y1, x2, y2)
@@ -6322,7 +6372,7 @@ function DocumentPicker({
6322
6372
  ...documentPickerOptions,
6323
6373
  multiple: false
6324
6374
  });
6325
- if (!result.canceled && result.assets[0].file) {
6375
+ if (!result.canceled && result.assets[0]?.file) {
6326
6376
  onDocumentUpload(result.assets[0].file);
6327
6377
  }
6328
6378
  },
@@ -6349,7 +6399,7 @@ function ImagePicker({
6349
6399
  ...imagePickerOptions,
6350
6400
  allowsMultipleSelection: false
6351
6401
  });
6352
- if (!result.canceled) {
6402
+ if (!result.canceled && result.assets[0]) {
6353
6403
  onImageSelected(result.assets[0]);
6354
6404
  }
6355
6405
  },
@@ -6798,17 +6848,17 @@ function GoogleMapsAutocompleteProvider({
6798
6848
  dispatch({
6799
6849
  type: 'search-error'
6800
6850
  });
6801
- return;
6802
6851
  }
6803
-
6804
- // We cache the results to avoid calling the API again if the user types the same value
6805
- searchResultsCache.current[value] = results;
6806
- dispatch({
6807
- type: 'search-success',
6808
- payload: {
6809
- results
6810
- }
6811
- });
6852
+ if (results) {
6853
+ // We cache the results to avoid calling the API again if the user types the same value
6854
+ searchResultsCache.current[value] = results;
6855
+ dispatch({
6856
+ type: 'search-success',
6857
+ payload: {
6858
+ results
6859
+ }
6860
+ });
6861
+ }
6812
6862
  } catch (error) {
6813
6863
  dispatch({
6814
6864
  type: 'search-error'
@@ -7884,7 +7934,12 @@ function NativeOpacityAnimation({
7884
7934
  duration,
7885
7935
  easing
7886
7936
  } = theme.kitt.fullscreenModal.animation.overlay;
7887
- const [x1, y1, x2, y2] = easing;
7937
+ const {
7938
+ x1,
7939
+ y1,
7940
+ x2,
7941
+ y2
7942
+ } = easing;
7888
7943
  return {
7889
7944
  opacity: withTiming(visible ? 1 : 0, {
7890
7945
  duration,
@@ -7923,7 +7978,12 @@ function NativeSlideInAnimation({
7923
7978
  duration,
7924
7979
  easing
7925
7980
  } = theme.kitt.fullscreenModal.animation.content;
7926
- const [x1, y1, x2, y2] = easing;
7981
+ const {
7982
+ x1,
7983
+ y1,
7984
+ x2,
7985
+ y2
7986
+ } = easing;
7927
7987
  return {
7928
7988
  transform: [{
7929
7989
  translateY: withTiming(visible ? 0 : wHeight, {
@@ -12934,12 +12994,13 @@ function TabBar({
12934
12994
  ...props,
12935
12995
  children: Children.map(tabItems, (child, index) => {
12936
12996
  const tab = tabs[index];
12997
+ if (!tab) throw new Error(`TabBar: tab is undefined at index ${index}`);
12937
12998
  return /*#__PURE__*/jsx(View, {
12938
12999
  children: /*#__PURE__*/cloneElement(child, {
12939
13000
  color,
12940
13001
  onPress: event => {
12941
13002
  onChangeTab({
12942
- tab: tabs[index],
13003
+ tab,
12943
13004
  index
12944
13005
  });
12945
13006
  child.props.onPress?.(event);