@ornikar/kitt-universal 31.4.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.
- package/CHANGELOG.md +15 -0
- package/dist/definitions/CardModal/CardModalAnimation/OpacityAnimation.d.ts +8 -0
- package/dist/definitions/CardModal/CardModalAnimation/OpacityAnimation.d.ts.map +1 -0
- package/dist/definitions/CardModal/CardModalAnimation/{NativeRotationAnimation.d.ts → RotationAnimation.d.ts} +3 -3
- package/dist/definitions/CardModal/CardModalAnimation/RotationAnimation.d.ts.map +1 -0
- package/dist/definitions/DialogModal/DialogModalAnimation/NativeOpacityAnimation.d.ts.map +1 -1
- package/dist/definitions/DialogModal/DialogModalAnimation/NativeRotationAnimation.d.ts.map +1 -1
- package/dist/definitions/FullscreenModal/FullscreenModalAnimation.web.d.ts.map +1 -1
- package/dist/definitions/themes/late-ocean/fullscreenModal.d.ts +0 -14
- package/dist/definitions/themes/late-ocean/fullscreenModal.d.ts.map +1 -1
- package/dist/index-metro.es.android.js +44 -42
- package/dist/index-metro.es.android.js.map +1 -1
- package/dist/index-metro.es.ios.js +44 -42
- package/dist/index-metro.es.ios.js.map +1 -1
- package/dist/index-node-22.17.cjs.js +44 -42
- package/dist/index-node-22.17.cjs.js.map +1 -1
- package/dist/index-node-22.17.cjs.web.css +38 -16
- package/dist/index-node-22.17.cjs.web.js +262 -179
- package/dist/index-node-22.17.cjs.web.js.map +1 -1
- package/dist/index-node-22.17.es.mjs +44 -42
- package/dist/index-node-22.17.es.mjs.map +1 -1
- package/dist/index-node-22.17.es.web.css +38 -16
- package/dist/index-node-22.17.es.web.mjs +262 -179
- package/dist/index-node-22.17.es.web.mjs.map +1 -1
- package/dist/index.es.js +44 -42
- package/dist/index.es.js.map +1 -1
- package/dist/index.es.web.js +288 -206
- package/dist/index.es.web.js.map +1 -1
- package/dist/linaria-themes-metro.es.android.js +30 -34
- package/dist/linaria-themes-metro.es.android.js.map +1 -1
- package/dist/linaria-themes-metro.es.ios.js +30 -34
- package/dist/linaria-themes-metro.es.ios.js.map +1 -1
- package/dist/linaria-themes-node-22.17.cjs.js +30 -34
- package/dist/linaria-themes-node-22.17.cjs.js.map +1 -1
- package/dist/linaria-themes-node-22.17.cjs.web.js +30 -34
- package/dist/linaria-themes-node-22.17.cjs.web.js.map +1 -1
- package/dist/linaria-themes-node-22.17.es.mjs +30 -34
- package/dist/linaria-themes-node-22.17.es.mjs.map +1 -1
- package/dist/linaria-themes-node-22.17.es.web.mjs +30 -34
- package/dist/linaria-themes-node-22.17.es.web.mjs.map +1 -1
- package/dist/linaria-themes.es.js +30 -34
- package/dist/linaria-themes.es.js.map +1 -1
- package/dist/linaria-themes.es.web.js +30 -34
- package/dist/linaria-themes.es.web.js.map +1 -1
- package/dist/styles.css +38 -16
- package/dist/tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/definitions/CardModal/CardModalAnimation/NativeOpacityAnimation.d.ts +0 -8
- package/dist/definitions/CardModal/CardModalAnimation/NativeOpacityAnimation.d.ts.map +0 -1
- package/dist/definitions/CardModal/CardModalAnimation/NativeRotationAnimation.d.ts.map +0 -1
- package/dist/definitions/DialogModal/DialogModalAnimation/DialogModalAnimation.web.d.ts +0 -4
- package/dist/definitions/DialogModal/DialogModalAnimation/DialogModalAnimation.web.d.ts.map +0 -1
|
@@ -840,15 +840,15 @@ const card = {
|
|
|
840
840
|
}
|
|
841
841
|
};
|
|
842
842
|
|
|
843
|
-
const webAnimationContentDuration$
|
|
844
|
-
const webAnimationContentEasing$
|
|
843
|
+
const webAnimationContentDuration$1 = 400;
|
|
844
|
+
const webAnimationContentEasing$1 = {
|
|
845
845
|
x1: 0.77,
|
|
846
846
|
y1: 0,
|
|
847
847
|
x2: 0.175,
|
|
848
848
|
y2: 1
|
|
849
849
|
};
|
|
850
|
-
const webAnimationOverlayDuration$
|
|
851
|
-
const webAnimationOverlayEasing$
|
|
850
|
+
const webAnimationOverlayDuration$1 = 250;
|
|
851
|
+
const webAnimationOverlayEasing$1 = {
|
|
852
852
|
x1: 0.42,
|
|
853
853
|
y1: 0,
|
|
854
854
|
x2: 1,
|
|
@@ -883,12 +883,12 @@ const cardModal = {
|
|
|
883
883
|
},
|
|
884
884
|
animation: {
|
|
885
885
|
overlay: {
|
|
886
|
-
duration: webAnimationOverlayDuration$
|
|
887
|
-
easing: webAnimationOverlayEasing$
|
|
886
|
+
duration: webAnimationOverlayDuration$1,
|
|
887
|
+
easing: webAnimationOverlayEasing$1
|
|
888
888
|
},
|
|
889
889
|
content: {
|
|
890
|
-
duration: webAnimationContentDuration$
|
|
891
|
-
easing: webAnimationContentEasing$
|
|
890
|
+
duration: webAnimationContentDuration$1,
|
|
891
|
+
easing: webAnimationContentEasing$1
|
|
892
892
|
}
|
|
893
893
|
}
|
|
894
894
|
};
|
|
@@ -944,15 +944,15 @@ const choices = {
|
|
|
944
944
|
}
|
|
945
945
|
};
|
|
946
946
|
|
|
947
|
-
const webAnimationContentDuration
|
|
948
|
-
const webAnimationContentEasing
|
|
947
|
+
const webAnimationContentDuration = 400;
|
|
948
|
+
const webAnimationContentEasing = {
|
|
949
949
|
x1: 0.77,
|
|
950
950
|
y1: 0,
|
|
951
951
|
x2: 0.175,
|
|
952
952
|
y2: 1
|
|
953
953
|
};
|
|
954
|
-
const webAnimationOverlayDuration
|
|
955
|
-
const webAnimationOverlayEasing
|
|
954
|
+
const webAnimationOverlayDuration = 250;
|
|
955
|
+
const webAnimationOverlayEasing = {
|
|
956
956
|
x1: 0.42,
|
|
957
957
|
y1: 0,
|
|
958
958
|
x2: 1,
|
|
@@ -974,12 +974,12 @@ const dialogModal = {
|
|
|
974
974
|
},
|
|
975
975
|
animation: {
|
|
976
976
|
overlay: {
|
|
977
|
-
duration: webAnimationOverlayDuration
|
|
978
|
-
easing: webAnimationOverlayEasing
|
|
977
|
+
duration: webAnimationOverlayDuration,
|
|
978
|
+
easing: webAnimationOverlayEasing
|
|
979
979
|
},
|
|
980
980
|
content: {
|
|
981
|
-
duration: webAnimationContentDuration
|
|
982
|
-
easing: webAnimationContentEasing
|
|
981
|
+
duration: webAnimationContentDuration,
|
|
982
|
+
easing: webAnimationContentEasing
|
|
983
983
|
}
|
|
984
984
|
}
|
|
985
985
|
};
|
|
@@ -1888,20 +1888,6 @@ const forms = {
|
|
|
1888
1888
|
timePicker
|
|
1889
1889
|
};
|
|
1890
1890
|
|
|
1891
|
-
const webAnimationContentDuration = 600;
|
|
1892
|
-
const webAnimationContentEasing = {
|
|
1893
|
-
x1: 0.77,
|
|
1894
|
-
y1: 0,
|
|
1895
|
-
x2: 0.175,
|
|
1896
|
-
y2: 1
|
|
1897
|
-
};
|
|
1898
|
-
const webAnimationOverlayDuration = 250;
|
|
1899
|
-
const webAnimationOverlayEasing = {
|
|
1900
|
-
x1: 0.42,
|
|
1901
|
-
y1: 0,
|
|
1902
|
-
x2: 1,
|
|
1903
|
-
y2: 1
|
|
1904
|
-
};
|
|
1905
1891
|
const fullscreenModal = {
|
|
1906
1892
|
header: {
|
|
1907
1893
|
height: 56
|
|
@@ -1915,12 +1901,22 @@ const fullscreenModal = {
|
|
|
1915
1901
|
},
|
|
1916
1902
|
animation: {
|
|
1917
1903
|
overlay: {
|
|
1918
|
-
duration:
|
|
1919
|
-
easing:
|
|
1904
|
+
duration: 250,
|
|
1905
|
+
easing: {
|
|
1906
|
+
x1: 0.42,
|
|
1907
|
+
y1: 0,
|
|
1908
|
+
x2: 1,
|
|
1909
|
+
y2: 1
|
|
1910
|
+
}
|
|
1920
1911
|
},
|
|
1921
1912
|
content: {
|
|
1922
|
-
duration:
|
|
1923
|
-
easing:
|
|
1913
|
+
duration: 600,
|
|
1914
|
+
easing: {
|
|
1915
|
+
x1: 0.77,
|
|
1916
|
+
y1: 0,
|
|
1917
|
+
x2: 0.175,
|
|
1918
|
+
y2: 1
|
|
1919
|
+
}
|
|
1924
1920
|
}
|
|
1925
1921
|
}
|
|
1926
1922
|
};
|
|
@@ -4360,7 +4356,7 @@ const CardModalRotationContainer = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
4360
4356
|
});
|
|
4361
4357
|
});
|
|
4362
4358
|
|
|
4363
|
-
function
|
|
4359
|
+
function OpacityAnimation({
|
|
4364
4360
|
visible,
|
|
4365
4361
|
children,
|
|
4366
4362
|
onExited
|
|
@@ -4402,7 +4398,7 @@ function NativeOpacityAnimation$2({
|
|
|
4402
4398
|
});
|
|
4403
4399
|
}
|
|
4404
4400
|
|
|
4405
|
-
function
|
|
4401
|
+
function RotationAnimation({
|
|
4406
4402
|
visible,
|
|
4407
4403
|
children,
|
|
4408
4404
|
onEntered,
|
|
@@ -4499,14 +4495,14 @@ function CardModalAnimation({
|
|
|
4499
4495
|
flexGrow: 1,
|
|
4500
4496
|
justifyContent: "center",
|
|
4501
4497
|
alignItems: "center",
|
|
4502
|
-
children: [/*#__PURE__*/jsx(
|
|
4498
|
+
children: [/*#__PURE__*/jsx(OpacityAnimation, {
|
|
4503
4499
|
visible: isContentVisible,
|
|
4504
4500
|
onExited: handleAnimationExited,
|
|
4505
4501
|
children: /*#__PURE__*/jsx(Overlay, {
|
|
4506
4502
|
onPress: onClose
|
|
4507
4503
|
})
|
|
4508
4504
|
}), /*#__PURE__*/jsx(CardModalRotationContainer, {
|
|
4509
|
-
children: /*#__PURE__*/jsx(
|
|
4505
|
+
children: /*#__PURE__*/jsx(RotationAnimation, {
|
|
4510
4506
|
visible: isContentVisible,
|
|
4511
4507
|
onExited: handleAnimationExited,
|
|
4512
4508
|
onEntered: onEntered,
|
|
@@ -5079,10 +5075,12 @@ function NativeOpacityAnimation$1({
|
|
|
5079
5075
|
}) {
|
|
5080
5076
|
const theme = useTheme();
|
|
5081
5077
|
const hasRunAnimationRef = useRef(false);
|
|
5082
|
-
|
|
5078
|
+
useEffect(() => {
|
|
5083
5079
|
if (visible) {
|
|
5084
5080
|
hasRunAnimationRef.current = true;
|
|
5085
5081
|
}
|
|
5082
|
+
}, [visible]);
|
|
5083
|
+
function handleAnimationFinished() {
|
|
5086
5084
|
if (!visible && hasRunAnimationRef.current) {
|
|
5087
5085
|
onExited();
|
|
5088
5086
|
}
|
|
@@ -5107,7 +5105,7 @@ function NativeOpacityAnimation$1({
|
|
|
5107
5105
|
runOnJS(handleAnimationFinished)();
|
|
5108
5106
|
})
|
|
5109
5107
|
};
|
|
5110
|
-
});
|
|
5108
|
+
}, [theme, visible, handleAnimationFinished]);
|
|
5111
5109
|
return /*#__PURE__*/jsx(Animated.View, {
|
|
5112
5110
|
style: [StyleSheet.absoluteFillObject, opacityStyle],
|
|
5113
5111
|
children: children
|
|
@@ -5123,10 +5121,14 @@ function NativeRotationAnimation({
|
|
|
5123
5121
|
const theme = useTheme();
|
|
5124
5122
|
const hasRunAnimationRef = useRef(false);
|
|
5125
5123
|
const rotation = useSharedValue(0.8);
|
|
5124
|
+
useEffect(() => {
|
|
5125
|
+
if (visible) {
|
|
5126
|
+
hasRunAnimationRef.current = true;
|
|
5127
|
+
}
|
|
5128
|
+
}, [visible]);
|
|
5126
5129
|
function handleAnimationFinished() {
|
|
5127
5130
|
if (visible) {
|
|
5128
5131
|
if (onEntered) onEntered();
|
|
5129
|
-
hasRunAnimationRef.current = true;
|
|
5130
5132
|
}
|
|
5131
5133
|
if (!visible && hasRunAnimationRef.current) onExited();
|
|
5132
5134
|
}
|
|
@@ -5162,7 +5164,7 @@ function NativeRotationAnimation({
|
|
|
5162
5164
|
rotateZ: `${rotation.value}deg`
|
|
5163
5165
|
}]
|
|
5164
5166
|
};
|
|
5165
|
-
});
|
|
5167
|
+
}, [theme, visible, rotation, handleAnimationFinished]);
|
|
5166
5168
|
return /*#__PURE__*/jsx(Animated.View, {
|
|
5167
5169
|
style: [animatedStyle],
|
|
5168
5170
|
children: children
|