@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
package/dist/index.es.js CHANGED
@@ -858,15 +858,15 @@ var card = {
858
858
  }
859
859
  };
860
860
 
861
- var webAnimationContentDuration$2 = 400;
862
- var webAnimationContentEasing$2 = {
861
+ var webAnimationContentDuration$1 = 400;
862
+ var webAnimationContentEasing$1 = {
863
863
  x1: 0.77,
864
864
  y1: 0,
865
865
  x2: 0.175,
866
866
  y2: 1
867
867
  };
868
- var webAnimationOverlayDuration$2 = 250;
869
- var webAnimationOverlayEasing$2 = {
868
+ var webAnimationOverlayDuration$1 = 250;
869
+ var webAnimationOverlayEasing$1 = {
870
870
  x1: 0.42,
871
871
  y1: 0,
872
872
  x2: 1,
@@ -901,12 +901,12 @@ var cardModal = {
901
901
  },
902
902
  animation: {
903
903
  overlay: {
904
- duration: webAnimationOverlayDuration$2,
905
- easing: webAnimationOverlayEasing$2
904
+ duration: webAnimationOverlayDuration$1,
905
+ easing: webAnimationOverlayEasing$1
906
906
  },
907
907
  content: {
908
- duration: webAnimationContentDuration$2,
909
- easing: webAnimationContentEasing$2
908
+ duration: webAnimationContentDuration$1,
909
+ easing: webAnimationContentEasing$1
910
910
  }
911
911
  }
912
912
  };
@@ -962,15 +962,15 @@ var choices = {
962
962
  }
963
963
  };
964
964
 
965
- var webAnimationContentDuration$1 = 400;
966
- var webAnimationContentEasing$1 = {
965
+ var webAnimationContentDuration = 400;
966
+ var webAnimationContentEasing = {
967
967
  x1: 0.77,
968
968
  y1: 0,
969
969
  x2: 0.175,
970
970
  y2: 1
971
971
  };
972
- var webAnimationOverlayDuration$1 = 250;
973
- var webAnimationOverlayEasing$1 = {
972
+ var webAnimationOverlayDuration = 250;
973
+ var webAnimationOverlayEasing = {
974
974
  x1: 0.42,
975
975
  y1: 0,
976
976
  x2: 1,
@@ -992,12 +992,12 @@ var dialogModal = {
992
992
  },
993
993
  animation: {
994
994
  overlay: {
995
- duration: webAnimationOverlayDuration$1,
996
- easing: webAnimationOverlayEasing$1
995
+ duration: webAnimationOverlayDuration,
996
+ easing: webAnimationOverlayEasing
997
997
  },
998
998
  content: {
999
- duration: webAnimationContentDuration$1,
1000
- easing: webAnimationContentEasing$1
999
+ duration: webAnimationContentDuration,
1000
+ easing: webAnimationContentEasing
1001
1001
  }
1002
1002
  }
1003
1003
  };
@@ -1906,20 +1906,6 @@ var forms = {
1906
1906
  timePicker: timePicker
1907
1907
  };
1908
1908
 
1909
- var webAnimationContentDuration = 600;
1910
- var webAnimationContentEasing = {
1911
- x1: 0.77,
1912
- y1: 0,
1913
- x2: 0.175,
1914
- y2: 1
1915
- };
1916
- var webAnimationOverlayDuration = 250;
1917
- var webAnimationOverlayEasing = {
1918
- x1: 0.42,
1919
- y1: 0,
1920
- x2: 1,
1921
- y2: 1
1922
- };
1923
1909
  var fullscreenModal = {
1924
1910
  header: {
1925
1911
  height: 56
@@ -1933,12 +1919,22 @@ var fullscreenModal = {
1933
1919
  },
1934
1920
  animation: {
1935
1921
  overlay: {
1936
- duration: webAnimationOverlayDuration,
1937
- easing: webAnimationOverlayEasing
1922
+ duration: 250,
1923
+ easing: {
1924
+ x1: 0.42,
1925
+ y1: 0,
1926
+ x2: 1,
1927
+ y2: 1
1928
+ }
1938
1929
  },
1939
1930
  content: {
1940
- duration: webAnimationContentDuration,
1941
- easing: webAnimationContentEasing
1931
+ duration: 600,
1932
+ easing: {
1933
+ x1: 0.77,
1934
+ y1: 0,
1935
+ x2: 0.175,
1936
+ y2: 1
1937
+ }
1942
1938
  }
1943
1939
  }
1944
1940
  };
@@ -4407,7 +4403,7 @@ var CardModalRotationContainer = /*#__PURE__*/forwardRef(function (props, ref) {
4407
4403
  }));
4408
4404
  });
4409
4405
 
4410
- function NativeOpacityAnimation$2(_ref) {
4406
+ function OpacityAnimation(_ref) {
4411
4407
  var visible = _ref.visible,
4412
4408
  children = _ref.children,
4413
4409
  onExited = _ref.onExited;
@@ -4445,7 +4441,7 @@ function NativeOpacityAnimation$2(_ref) {
4445
4441
  });
4446
4442
  }
4447
4443
 
4448
- function NativeRotationAnimation$1(_ref) {
4444
+ function RotationAnimation(_ref) {
4449
4445
  var visible = _ref.visible,
4450
4446
  children = _ref.children,
4451
4447
  onEntered = _ref.onEntered,
@@ -4543,14 +4539,14 @@ function CardModalAnimation(_ref) {
4543
4539
  flexGrow: 1,
4544
4540
  justifyContent: "center",
4545
4541
  alignItems: "center",
4546
- children: [/*#__PURE__*/jsx(NativeOpacityAnimation$2, {
4542
+ children: [/*#__PURE__*/jsx(OpacityAnimation, {
4547
4543
  visible: isContentVisible,
4548
4544
  onExited: handleAnimationExited,
4549
4545
  children: /*#__PURE__*/jsx(Overlay, {
4550
4546
  onPress: onClose
4551
4547
  })
4552
4548
  }), /*#__PURE__*/jsx(CardModalRotationContainer, {
4553
- children: /*#__PURE__*/jsx(NativeRotationAnimation$1, {
4549
+ children: /*#__PURE__*/jsx(RotationAnimation, {
4554
4550
  visible: isContentVisible,
4555
4551
  onExited: handleAnimationExited,
4556
4552
  onEntered: onEntered,
@@ -5118,10 +5114,12 @@ function NativeOpacityAnimation$1(_ref) {
5118
5114
  onExited = _ref.onExited;
5119
5115
  var theme = useTheme();
5120
5116
  var hasRunAnimationRef = useRef(false);
5121
- function handleAnimationFinished() {
5117
+ useEffect(function () {
5122
5118
  if (visible) {
5123
5119
  hasRunAnimationRef.current = true;
5124
5120
  }
5121
+ }, [visible]);
5122
+ function handleAnimationFinished() {
5125
5123
  if (!visible && hasRunAnimationRef.current) {
5126
5124
  onExited();
5127
5125
  }
@@ -5143,7 +5141,7 @@ function NativeOpacityAnimation$1(_ref) {
5143
5141
  runOnJS(handleAnimationFinished)();
5144
5142
  })
5145
5143
  };
5146
- });
5144
+ }, [theme, visible, handleAnimationFinished]);
5147
5145
  return /*#__PURE__*/jsx(Animated.View, {
5148
5146
  style: [StyleSheet.absoluteFillObject, opacityStyle],
5149
5147
  children: children
@@ -5158,10 +5156,14 @@ function NativeRotationAnimation(_ref) {
5158
5156
  var theme = useTheme();
5159
5157
  var hasRunAnimationRef = useRef(false);
5160
5158
  var rotation = useSharedValue(0.8);
5159
+ useEffect(function () {
5160
+ if (visible) {
5161
+ hasRunAnimationRef.current = true;
5162
+ }
5163
+ }, [visible]);
5161
5164
  function handleAnimationFinished() {
5162
5165
  if (visible) {
5163
5166
  if (onEntered) onEntered();
5164
- hasRunAnimationRef.current = true;
5165
5167
  }
5166
5168
  if (!visible && hasRunAnimationRef.current) onExited();
5167
5169
  }
@@ -5194,7 +5196,7 @@ function NativeRotationAnimation(_ref) {
5194
5196
  rotateZ: "".concat(rotation.value, "deg")
5195
5197
  }]
5196
5198
  };
5197
- });
5199
+ }, [theme, visible, rotation, handleAnimationFinished]);
5198
5200
  return /*#__PURE__*/jsx(Animated.View, {
5199
5201
  style: [animatedStyle],
5200
5202
  children: children