@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
@@ -864,15 +864,15 @@ const card = {
864
864
  }
865
865
  };
866
866
 
867
- const webAnimationContentDuration$2 = 400;
868
- const webAnimationContentEasing$2 = {
867
+ const webAnimationContentDuration$1 = 400;
868
+ const webAnimationContentEasing$1 = {
869
869
  x1: 0.77,
870
870
  y1: 0,
871
871
  x2: 0.175,
872
872
  y2: 1
873
873
  };
874
- const webAnimationOverlayDuration$2 = 250;
875
- const webAnimationOverlayEasing$2 = {
874
+ const webAnimationOverlayDuration$1 = 250;
875
+ const webAnimationOverlayEasing$1 = {
876
876
  x1: 0.42,
877
877
  y1: 0,
878
878
  x2: 1,
@@ -907,12 +907,12 @@ const cardModal = {
907
907
  },
908
908
  animation: {
909
909
  overlay: {
910
- duration: webAnimationOverlayDuration$2,
911
- easing: webAnimationOverlayEasing$2
910
+ duration: webAnimationOverlayDuration$1,
911
+ easing: webAnimationOverlayEasing$1
912
912
  },
913
913
  content: {
914
- duration: webAnimationContentDuration$2,
915
- easing: webAnimationContentEasing$2
914
+ duration: webAnimationContentDuration$1,
915
+ easing: webAnimationContentEasing$1
916
916
  }
917
917
  }
918
918
  };
@@ -968,15 +968,15 @@ const choices = {
968
968
  }
969
969
  };
970
970
 
971
- const webAnimationContentDuration$1 = 400;
972
- const webAnimationContentEasing$1 = {
971
+ const webAnimationContentDuration = 400;
972
+ const webAnimationContentEasing = {
973
973
  x1: 0.77,
974
974
  y1: 0,
975
975
  x2: 0.175,
976
976
  y2: 1
977
977
  };
978
- const webAnimationOverlayDuration$1 = 250;
979
- const webAnimationOverlayEasing$1 = {
978
+ const webAnimationOverlayDuration = 250;
979
+ const webAnimationOverlayEasing = {
980
980
  x1: 0.42,
981
981
  y1: 0,
982
982
  x2: 1,
@@ -998,12 +998,12 @@ const dialogModal = {
998
998
  },
999
999
  animation: {
1000
1000
  overlay: {
1001
- duration: webAnimationOverlayDuration$1,
1002
- easing: webAnimationOverlayEasing$1
1001
+ duration: webAnimationOverlayDuration,
1002
+ easing: webAnimationOverlayEasing
1003
1003
  },
1004
1004
  content: {
1005
- duration: webAnimationContentDuration$1,
1006
- easing: webAnimationContentEasing$1
1005
+ duration: webAnimationContentDuration,
1006
+ easing: webAnimationContentEasing
1007
1007
  }
1008
1008
  }
1009
1009
  };
@@ -1912,20 +1912,6 @@ const forms = {
1912
1912
  timePicker
1913
1913
  };
1914
1914
 
1915
- const webAnimationContentDuration = 600;
1916
- const webAnimationContentEasing = {
1917
- x1: 0.77,
1918
- y1: 0,
1919
- x2: 0.175,
1920
- y2: 1
1921
- };
1922
- const webAnimationOverlayDuration = 250;
1923
- const webAnimationOverlayEasing = {
1924
- x1: 0.42,
1925
- y1: 0,
1926
- x2: 1,
1927
- y2: 1
1928
- };
1929
1915
  const fullscreenModal = {
1930
1916
  header: {
1931
1917
  height: 56
@@ -1939,12 +1925,22 @@ const fullscreenModal = {
1939
1925
  },
1940
1926
  animation: {
1941
1927
  overlay: {
1942
- duration: webAnimationOverlayDuration,
1943
- easing: webAnimationOverlayEasing
1928
+ duration: 250,
1929
+ easing: {
1930
+ x1: 0.42,
1931
+ y1: 0,
1932
+ x2: 1,
1933
+ y2: 1
1934
+ }
1944
1935
  },
1945
1936
  content: {
1946
- duration: webAnimationContentDuration,
1947
- easing: webAnimationContentEasing
1937
+ duration: 600,
1938
+ easing: {
1939
+ x1: 0.77,
1940
+ y1: 0,
1941
+ x2: 0.175,
1942
+ y2: 1
1943
+ }
1948
1944
  }
1949
1945
  }
1950
1946
  };
@@ -4384,7 +4380,7 @@ const CardModalRotationContainer = /*#__PURE__*/React.forwardRef((props, ref) =>
4384
4380
  });
4385
4381
  });
4386
4382
 
4387
- function NativeOpacityAnimation$2({
4383
+ function OpacityAnimation({
4388
4384
  visible,
4389
4385
  children,
4390
4386
  onExited
@@ -4426,7 +4422,7 @@ function NativeOpacityAnimation$2({
4426
4422
  });
4427
4423
  }
4428
4424
 
4429
- function NativeRotationAnimation$1({
4425
+ function RotationAnimation({
4430
4426
  visible,
4431
4427
  children,
4432
4428
  onEntered,
@@ -4523,14 +4519,14 @@ function CardModalAnimation({
4523
4519
  flexGrow: 1,
4524
4520
  justifyContent: "center",
4525
4521
  alignItems: "center",
4526
- children: [/*#__PURE__*/jsxRuntime.jsx(NativeOpacityAnimation$2, {
4522
+ children: [/*#__PURE__*/jsxRuntime.jsx(OpacityAnimation, {
4527
4523
  visible: isContentVisible,
4528
4524
  onExited: handleAnimationExited,
4529
4525
  children: /*#__PURE__*/jsxRuntime.jsx(Overlay, {
4530
4526
  onPress: onClose
4531
4527
  })
4532
4528
  }), /*#__PURE__*/jsxRuntime.jsx(CardModalRotationContainer, {
4533
- children: /*#__PURE__*/jsxRuntime.jsx(NativeRotationAnimation$1, {
4529
+ children: /*#__PURE__*/jsxRuntime.jsx(RotationAnimation, {
4534
4530
  visible: isContentVisible,
4535
4531
  onExited: handleAnimationExited,
4536
4532
  onEntered: onEntered,
@@ -5103,10 +5099,12 @@ function NativeOpacityAnimation$1({
5103
5099
  }) {
5104
5100
  const theme = useTheme();
5105
5101
  const hasRunAnimationRef = React.useRef(false);
5106
- function handleAnimationFinished() {
5102
+ React.useEffect(() => {
5107
5103
  if (visible) {
5108
5104
  hasRunAnimationRef.current = true;
5109
5105
  }
5106
+ }, [visible]);
5107
+ function handleAnimationFinished() {
5110
5108
  if (!visible && hasRunAnimationRef.current) {
5111
5109
  onExited();
5112
5110
  }
@@ -5131,7 +5129,7 @@ function NativeOpacityAnimation$1({
5131
5129
  Animated.runOnJS(handleAnimationFinished)();
5132
5130
  })
5133
5131
  };
5134
- });
5132
+ }, [theme, visible, handleAnimationFinished]);
5135
5133
  return /*#__PURE__*/jsxRuntime.jsx(Animated__default.View, {
5136
5134
  style: [reactNative.StyleSheet.absoluteFillObject, opacityStyle],
5137
5135
  children: children
@@ -5147,10 +5145,14 @@ function NativeRotationAnimation({
5147
5145
  const theme = useTheme();
5148
5146
  const hasRunAnimationRef = React.useRef(false);
5149
5147
  const rotation = Animated.useSharedValue(0.8);
5148
+ React.useEffect(() => {
5149
+ if (visible) {
5150
+ hasRunAnimationRef.current = true;
5151
+ }
5152
+ }, [visible]);
5150
5153
  function handleAnimationFinished() {
5151
5154
  if (visible) {
5152
5155
  if (onEntered) onEntered();
5153
- hasRunAnimationRef.current = true;
5154
5156
  }
5155
5157
  if (!visible && hasRunAnimationRef.current) onExited();
5156
5158
  }
@@ -5186,7 +5188,7 @@ function NativeRotationAnimation({
5186
5188
  rotateZ: `${rotation.value}deg`
5187
5189
  }]
5188
5190
  };
5189
- });
5191
+ }, [theme, visible, rotation, handleAnimationFinished]);
5190
5192
  return /*#__PURE__*/jsxRuntime.jsx(Animated__default.View, {
5191
5193
  style: [animatedStyle],
5192
5194
  children: children