@hoddy-ui/core 2.5.10 → 2.5.12
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/next/dist/index.js +15 -21
- package/next/dist/index.js.map +1 -1
- package/next/dist/index.mjs +15 -21
- package/next/dist/index.mjs.map +1 -1
- package/next/package.json +1 -1
- package/package.json +1 -1
- package/src/Components/Animators/hooks/useFadeAnimation.ts +1 -3
- package/src/Components/Animators/hooks/useFloatAnimation.ts +9 -9
- package/src/Components/Animators/hooks/useGrowAnimation.ts +5 -4
- package/src/Components/Animators/hooks/useRollAnimation.ts +10 -6
- package/src/Components/Animators/hooks/useSlideAnimation.ts +5 -8
- package/src/Components/Animators/hooks/useThrownUpAnimation.ts +9 -12
- package/src/Components/Popup.tsx +13 -9
- package/src/Components/SafeAreaView.tsx +5 -2
package/next/dist/index.mjs
CHANGED
|
@@ -912,7 +912,7 @@ var Popup = ({
|
|
|
912
912
|
const { bottom } = useSafeAreaInsets2();
|
|
913
913
|
const backdropOpacity = useSharedValue2(0);
|
|
914
914
|
const contentTranslateY = useSharedValue2(1e3);
|
|
915
|
-
const keyboardVerticalOffsetValue = Platform5.OS === "ios" ? -
|
|
915
|
+
const keyboardVerticalOffsetValue = Platform5.OS === "ios" ? -bottom : -bottom * 2;
|
|
916
916
|
useEffect2(() => {
|
|
917
917
|
const keyboardDidShowListener = Keyboard2.addListener(
|
|
918
918
|
"keyboardDidShow",
|
|
@@ -963,12 +963,13 @@ var Popup = ({
|
|
|
963
963
|
justifyContent: sheet ? "flex-end" : "center"
|
|
964
964
|
},
|
|
965
965
|
keyboardView: {
|
|
966
|
-
flex: 1
|
|
966
|
+
flex: 1,
|
|
967
|
+
zIndex: 1e3
|
|
967
968
|
},
|
|
968
969
|
avoidingView: {
|
|
970
|
+
zIndex: 2,
|
|
969
971
|
minHeight: typeof sheet === "number" ? sheet : void 0,
|
|
970
972
|
maxHeight: "90%",
|
|
971
|
-
zIndex: 1e3,
|
|
972
973
|
alignSelf: "center",
|
|
973
974
|
maxWidth: sheet ? void 0 : "90%",
|
|
974
975
|
width: sheet ? "100%" : void 0,
|
|
@@ -1018,40 +1019,33 @@ var Popup = ({
|
|
|
1018
1019
|
visible: modalVisible,
|
|
1019
1020
|
onRequestClose: closeAction
|
|
1020
1021
|
},
|
|
1021
|
-
/* @__PURE__ */ React11.createElement(UIThemeProvider, null, /* @__PURE__ */ React11.createElement(
|
|
1022
|
+
/* @__PURE__ */ React11.createElement(UIThemeProvider, null, /* @__PURE__ */ React11.createElement(Animated2.View, { style: [styles2.backdrop, backdropAnimatedStyle] }), /* @__PURE__ */ React11.createElement(
|
|
1022
1023
|
KeyboardAvoidingView2,
|
|
1023
1024
|
{
|
|
1024
1025
|
style: styles2.keyboardView,
|
|
1025
1026
|
behavior: Platform5.OS === "ios" ? "padding" : "height",
|
|
1026
1027
|
keyboardVerticalOffset: keyboardVerticalOffset || keyboardVerticalOffsetValue
|
|
1027
1028
|
},
|
|
1028
|
-
/* @__PURE__ */ React11.createElement(TouchableWithoutFeedback2, { onPress: Keyboard2.dismiss }, /* @__PURE__ */ React11.createElement(View5, { style: styles2.root },
|
|
1029
|
+
/* @__PURE__ */ React11.createElement(TouchableWithoutFeedback2, { onPress: Keyboard2.dismiss }, /* @__PURE__ */ React11.createElement(View5, { style: styles2.root }, open && /* @__PURE__ */ React11.createElement(
|
|
1029
1030
|
Pressable,
|
|
1030
1031
|
{
|
|
1031
|
-
style: [StyleSheet2.absoluteFill, { zIndex:
|
|
1032
|
+
style: [StyleSheet2.absoluteFill, { zIndex: 1 }],
|
|
1032
1033
|
onPress: closeAction
|
|
1033
1034
|
}
|
|
1034
1035
|
), /* @__PURE__ */ React11.createElement(
|
|
1035
1036
|
Animated2.View,
|
|
1036
1037
|
{
|
|
1037
1038
|
style: [styles2.avoidingView, contentAnimatedStyle],
|
|
1038
|
-
layout: LinearTransition.springify(
|
|
1039
|
+
layout: LinearTransition.springify().stiffness(200).mass(0.5).damping(100)
|
|
1039
1040
|
},
|
|
1040
|
-
/* @__PURE__ */ React11.createElement(
|
|
1041
|
-
|
|
1041
|
+
/* @__PURE__ */ React11.createElement(View5, { style: styles2.container }, !bare && /* @__PURE__ */ React11.createElement(View5, { style: styles2.title }, /* @__PURE__ */ React11.createElement(View5, { style: styles2.titleIcon }, /* @__PURE__ */ React11.createElement(
|
|
1042
|
+
IconButton,
|
|
1042
1043
|
{
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
size: 20,
|
|
1049
|
-
icon: "close",
|
|
1050
|
-
onPress: closeAction
|
|
1051
|
-
}
|
|
1052
|
-
)), /* @__PURE__ */ React11.createElement(Typography_default, { align: "center", fontWeight: 500 }, title)),
|
|
1053
|
-
/* @__PURE__ */ React11.createElement(View5, { style: styles2.content }, children)
|
|
1054
|
-
)
|
|
1044
|
+
size: 20,
|
|
1045
|
+
icon: "close",
|
|
1046
|
+
onPress: closeAction
|
|
1047
|
+
}
|
|
1048
|
+
)), /* @__PURE__ */ React11.createElement(Typography_default, { align: "center", fontWeight: 500 }, title)), /* @__PURE__ */ React11.createElement(View5, { style: styles2.content }, children))
|
|
1055
1049
|
)))
|
|
1056
1050
|
))
|
|
1057
1051
|
);
|