@ornikar/kitt-universal 31.3.2-canary.d9333a410786c9c1a722ce408a27e7980c9146a4.0 → 31.4.1-canary.2fdbcaad37b7e76ba2442f7c56a4939349d51eb1.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 (52) hide show
  1. package/CHANGELOG.md +17 -2
  2. package/dist/definitions/CardModal/CardModalAnimation/OpacityAnimation.d.ts +8 -0
  3. package/dist/definitions/CardModal/CardModalAnimation/OpacityAnimation.d.ts.map +1 -0
  4. package/dist/definitions/CardModal/CardModalAnimation/{NativeRotationAnimation.d.ts → RotationAnimation.d.ts} +3 -3
  5. package/dist/definitions/CardModal/CardModalAnimation/RotationAnimation.d.ts.map +1 -0
  6. package/dist/definitions/DialogModal/DialogModalAnimation/NativeOpacityAnimation.d.ts.map +1 -1
  7. package/dist/definitions/DialogModal/DialogModalAnimation/NativeRotationAnimation.d.ts.map +1 -1
  8. package/dist/definitions/FullscreenModal/FullscreenModalAnimation.web.d.ts.map +1 -1
  9. package/dist/definitions/themes/late-ocean/fullscreenModal.d.ts +0 -14
  10. package/dist/definitions/themes/late-ocean/fullscreenModal.d.ts.map +1 -1
  11. package/dist/index-metro.es.android.js +44 -42
  12. package/dist/index-metro.es.android.js.map +1 -1
  13. package/dist/index-metro.es.ios.js +44 -42
  14. package/dist/index-metro.es.ios.js.map +1 -1
  15. package/dist/index-node-22.17.cjs.js +44 -42
  16. package/dist/index-node-22.17.cjs.js.map +1 -1
  17. package/dist/index-node-22.17.cjs.web.css +38 -16
  18. package/dist/index-node-22.17.cjs.web.js +262 -179
  19. package/dist/index-node-22.17.cjs.web.js.map +1 -1
  20. package/dist/index-node-22.17.es.mjs +44 -42
  21. package/dist/index-node-22.17.es.mjs.map +1 -1
  22. package/dist/index-node-22.17.es.web.css +38 -16
  23. package/dist/index-node-22.17.es.web.mjs +262 -179
  24. package/dist/index-node-22.17.es.web.mjs.map +1 -1
  25. package/dist/index.es.js +44 -42
  26. package/dist/index.es.js.map +1 -1
  27. package/dist/index.es.web.js +288 -206
  28. package/dist/index.es.web.js.map +1 -1
  29. package/dist/linaria-themes-metro.es.android.js +30 -34
  30. package/dist/linaria-themes-metro.es.android.js.map +1 -1
  31. package/dist/linaria-themes-metro.es.ios.js +30 -34
  32. package/dist/linaria-themes-metro.es.ios.js.map +1 -1
  33. package/dist/linaria-themes-node-22.17.cjs.js +30 -34
  34. package/dist/linaria-themes-node-22.17.cjs.js.map +1 -1
  35. package/dist/linaria-themes-node-22.17.cjs.web.js +30 -34
  36. package/dist/linaria-themes-node-22.17.cjs.web.js.map +1 -1
  37. package/dist/linaria-themes-node-22.17.es.mjs +30 -34
  38. package/dist/linaria-themes-node-22.17.es.mjs.map +1 -1
  39. package/dist/linaria-themes-node-22.17.es.web.mjs +30 -34
  40. package/dist/linaria-themes-node-22.17.es.web.mjs.map +1 -1
  41. package/dist/linaria-themes.es.js +30 -34
  42. package/dist/linaria-themes.es.js.map +1 -1
  43. package/dist/linaria-themes.es.web.js +30 -34
  44. package/dist/linaria-themes.es.web.js.map +1 -1
  45. package/dist/styles.css +38 -16
  46. package/dist/tsbuildinfo +1 -1
  47. package/package.json +1 -1
  48. package/dist/definitions/CardModal/CardModalAnimation/NativeOpacityAnimation.d.ts +0 -8
  49. package/dist/definitions/CardModal/CardModalAnimation/NativeOpacityAnimation.d.ts.map +0 -1
  50. package/dist/definitions/CardModal/CardModalAnimation/NativeRotationAnimation.d.ts.map +0 -1
  51. package/dist/definitions/DialogModal/DialogModalAnimation/DialogModalAnimation.web.d.ts +0 -4
  52. package/dist/definitions/DialogModal/DialogModalAnimation/DialogModalAnimation.web.d.ts.map +0 -1
@@ -843,15 +843,15 @@ const card = {
843
843
  }
844
844
  };
845
845
 
846
- const webAnimationContentDuration$2 = 400;
847
- const webAnimationContentEasing$2 = {
846
+ const webAnimationContentDuration$1 = 400;
847
+ const webAnimationContentEasing$1 = {
848
848
  x1: 0.77,
849
849
  y1: 0,
850
850
  x2: 0.175,
851
851
  y2: 1
852
852
  };
853
- const webAnimationOverlayDuration$2 = 250;
854
- const webAnimationOverlayEasing$2 = {
853
+ const webAnimationOverlayDuration$1 = 250;
854
+ const webAnimationOverlayEasing$1 = {
855
855
  x1: 0.42,
856
856
  y1: 0,
857
857
  x2: 1,
@@ -886,12 +886,12 @@ const cardModal = {
886
886
  },
887
887
  animation: {
888
888
  overlay: {
889
- duration: webAnimationOverlayDuration$2,
890
- easing: webAnimationOverlayEasing$2
889
+ duration: webAnimationOverlayDuration$1,
890
+ easing: webAnimationOverlayEasing$1
891
891
  },
892
892
  content: {
893
- duration: webAnimationContentDuration$2,
894
- easing: webAnimationContentEasing$2
893
+ duration: webAnimationContentDuration$1,
894
+ easing: webAnimationContentEasing$1
895
895
  }
896
896
  }
897
897
  };
@@ -947,15 +947,15 @@ const choices = {
947
947
  }
948
948
  };
949
949
 
950
- const webAnimationContentDuration$1 = 400;
951
- const webAnimationContentEasing$1 = {
950
+ const webAnimationContentDuration = 400;
951
+ const webAnimationContentEasing = {
952
952
  x1: 0.77,
953
953
  y1: 0,
954
954
  x2: 0.175,
955
955
  y2: 1
956
956
  };
957
- const webAnimationOverlayDuration$1 = 250;
958
- const webAnimationOverlayEasing$1 = {
957
+ const webAnimationOverlayDuration = 250;
958
+ const webAnimationOverlayEasing = {
959
959
  x1: 0.42,
960
960
  y1: 0,
961
961
  x2: 1,
@@ -977,12 +977,12 @@ const dialogModal = {
977
977
  },
978
978
  animation: {
979
979
  overlay: {
980
- duration: webAnimationOverlayDuration$1,
981
- easing: webAnimationOverlayEasing$1
980
+ duration: webAnimationOverlayDuration,
981
+ easing: webAnimationOverlayEasing
982
982
  },
983
983
  content: {
984
- duration: webAnimationContentDuration$1,
985
- easing: webAnimationContentEasing$1
984
+ duration: webAnimationContentDuration,
985
+ easing: webAnimationContentEasing
986
986
  }
987
987
  }
988
988
  };
@@ -1891,20 +1891,6 @@ const forms = {
1891
1891
  timePicker
1892
1892
  };
1893
1893
 
1894
- const webAnimationContentDuration = 600;
1895
- const webAnimationContentEasing = {
1896
- x1: 0.77,
1897
- y1: 0,
1898
- x2: 0.175,
1899
- y2: 1
1900
- };
1901
- const webAnimationOverlayDuration = 250;
1902
- const webAnimationOverlayEasing = {
1903
- x1: 0.42,
1904
- y1: 0,
1905
- x2: 1,
1906
- y2: 1
1907
- };
1908
1894
  const fullscreenModal = {
1909
1895
  header: {
1910
1896
  height: 56
@@ -1918,12 +1904,22 @@ const fullscreenModal = {
1918
1904
  },
1919
1905
  animation: {
1920
1906
  overlay: {
1921
- duration: webAnimationOverlayDuration,
1922
- easing: webAnimationOverlayEasing
1907
+ duration: 250,
1908
+ easing: {
1909
+ x1: 0.42,
1910
+ y1: 0,
1911
+ x2: 1,
1912
+ y2: 1
1913
+ }
1923
1914
  },
1924
1915
  content: {
1925
- duration: webAnimationContentDuration,
1926
- easing: webAnimationContentEasing
1916
+ duration: 600,
1917
+ easing: {
1918
+ x1: 0.77,
1919
+ y1: 0,
1920
+ x2: 0.175,
1921
+ y2: 1
1922
+ }
1927
1923
  }
1928
1924
  }
1929
1925
  };
@@ -4356,7 +4352,7 @@ const CardModalRotationContainer = /*#__PURE__*/forwardRef((props, ref) => {
4356
4352
  }));
4357
4353
  });
4358
4354
 
4359
- function NativeOpacityAnimation$2({
4355
+ function OpacityAnimation({
4360
4356
  visible,
4361
4357
  children,
4362
4358
  onExited
@@ -4398,7 +4394,7 @@ function NativeOpacityAnimation$2({
4398
4394
  });
4399
4395
  }
4400
4396
 
4401
- function NativeRotationAnimation$1({
4397
+ function RotationAnimation({
4402
4398
  visible,
4403
4399
  children,
4404
4400
  onEntered,
@@ -4495,14 +4491,14 @@ function CardModalAnimation({
4495
4491
  flexGrow: 1,
4496
4492
  justifyContent: "center",
4497
4493
  alignItems: "center",
4498
- children: [/*#__PURE__*/jsx(NativeOpacityAnimation$2, {
4494
+ children: [/*#__PURE__*/jsx(OpacityAnimation, {
4499
4495
  visible: isContentVisible,
4500
4496
  onExited: handleAnimationExited,
4501
4497
  children: /*#__PURE__*/jsx(Overlay, {
4502
4498
  onPress: onClose
4503
4499
  })
4504
4500
  }), /*#__PURE__*/jsx(CardModalRotationContainer, {
4505
- children: /*#__PURE__*/jsx(NativeRotationAnimation$1, {
4501
+ children: /*#__PURE__*/jsx(RotationAnimation, {
4506
4502
  visible: isContentVisible,
4507
4503
  onExited: handleAnimationExited,
4508
4504
  onEntered: onEntered,
@@ -5074,10 +5070,12 @@ function NativeOpacityAnimation$1({
5074
5070
  }) {
5075
5071
  const theme = useTheme();
5076
5072
  const hasRunAnimationRef = useRef(false);
5077
- function handleAnimationFinished() {
5073
+ useEffect(() => {
5078
5074
  if (visible) {
5079
5075
  hasRunAnimationRef.current = true;
5080
5076
  }
5077
+ }, [visible]);
5078
+ function handleAnimationFinished() {
5081
5079
  if (!visible && hasRunAnimationRef.current) {
5082
5080
  onExited();
5083
5081
  }
@@ -5102,7 +5100,7 @@ function NativeOpacityAnimation$1({
5102
5100
  runOnJS(handleAnimationFinished)();
5103
5101
  })
5104
5102
  };
5105
- });
5103
+ }, [theme, visible, handleAnimationFinished]);
5106
5104
  return /*#__PURE__*/jsx(Animated.View, {
5107
5105
  style: [StyleSheet.absoluteFillObject, opacityStyle],
5108
5106
  children: children
@@ -5118,10 +5116,14 @@ function NativeRotationAnimation({
5118
5116
  const theme = useTheme();
5119
5117
  const hasRunAnimationRef = useRef(false);
5120
5118
  const rotation = useSharedValue(0.8);
5119
+ useEffect(() => {
5120
+ if (visible) {
5121
+ hasRunAnimationRef.current = true;
5122
+ }
5123
+ }, [visible]);
5121
5124
  function handleAnimationFinished() {
5122
5125
  if (visible) {
5123
5126
  if (onEntered) onEntered();
5124
- hasRunAnimationRef.current = true;
5125
5127
  }
5126
5128
  if (!visible && hasRunAnimationRef.current) onExited();
5127
5129
  }
@@ -5157,7 +5159,7 @@ function NativeRotationAnimation({
5157
5159
  rotateZ: `${rotation.value}deg`
5158
5160
  }]
5159
5161
  };
5160
- });
5162
+ }, [theme, visible, rotation, handleAnimationFinished]);
5161
5163
  return /*#__PURE__*/jsx(Animated.View, {
5162
5164
  style: [animatedStyle],
5163
5165
  children: children