@hoddy-ui/core 2.5.10 → 2.5.11
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/next/dist/index.js
CHANGED
|
@@ -948,7 +948,7 @@ var Popup = ({
|
|
|
948
948
|
const { bottom } = (0, import_react_native_safe_area_context3.useSafeAreaInsets)();
|
|
949
949
|
const backdropOpacity = (0, import_react_native_reanimated2.useSharedValue)(0);
|
|
950
950
|
const contentTranslateY = (0, import_react_native_reanimated2.useSharedValue)(1e3);
|
|
951
|
-
const keyboardVerticalOffsetValue = import_react_native11.Platform.OS === "ios" ? -
|
|
951
|
+
const keyboardVerticalOffsetValue = import_react_native11.Platform.OS === "ios" ? -bottom : -bottom * 2;
|
|
952
952
|
(0, import_react11.useEffect)(() => {
|
|
953
953
|
const keyboardDidShowListener = import_react_native11.Keyboard.addListener(
|
|
954
954
|
"keyboardDidShow",
|
|
@@ -999,12 +999,13 @@ var Popup = ({
|
|
|
999
999
|
justifyContent: sheet ? "flex-end" : "center"
|
|
1000
1000
|
},
|
|
1001
1001
|
keyboardView: {
|
|
1002
|
-
flex: 1
|
|
1002
|
+
flex: 1,
|
|
1003
|
+
zIndex: 1e3
|
|
1003
1004
|
},
|
|
1004
1005
|
avoidingView: {
|
|
1006
|
+
zIndex: 2,
|
|
1005
1007
|
minHeight: typeof sheet === "number" ? sheet : void 0,
|
|
1006
1008
|
maxHeight: "90%",
|
|
1007
|
-
zIndex: 1e3,
|
|
1008
1009
|
alignSelf: "center",
|
|
1009
1010
|
maxWidth: sheet ? void 0 : "90%",
|
|
1010
1011
|
width: sheet ? "100%" : void 0,
|
|
@@ -1054,40 +1055,33 @@ var Popup = ({
|
|
|
1054
1055
|
visible: modalVisible,
|
|
1055
1056
|
onRequestClose: closeAction
|
|
1056
1057
|
},
|
|
1057
|
-
/* @__PURE__ */ import_react11.default.createElement(UIThemeProvider, null, /* @__PURE__ */ import_react11.default.createElement(
|
|
1058
|
+
/* @__PURE__ */ import_react11.default.createElement(UIThemeProvider, null, /* @__PURE__ */ import_react11.default.createElement(import_react_native_reanimated2.default.View, { style: [styles2.backdrop, backdropAnimatedStyle] }), /* @__PURE__ */ import_react11.default.createElement(
|
|
1058
1059
|
import_react_native11.KeyboardAvoidingView,
|
|
1059
1060
|
{
|
|
1060
1061
|
style: styles2.keyboardView,
|
|
1061
1062
|
behavior: import_react_native11.Platform.OS === "ios" ? "padding" : "height",
|
|
1062
1063
|
keyboardVerticalOffset: keyboardVerticalOffset || keyboardVerticalOffsetValue
|
|
1063
1064
|
},
|
|
1064
|
-
/* @__PURE__ */ import_react11.default.createElement(import_react_native11.TouchableWithoutFeedback, { onPress: import_react_native11.Keyboard.dismiss }, /* @__PURE__ */ import_react11.default.createElement(import_react_native11.View, { style: styles2.root },
|
|
1065
|
+
/* @__PURE__ */ import_react11.default.createElement(import_react_native11.TouchableWithoutFeedback, { onPress: import_react_native11.Keyboard.dismiss }, /* @__PURE__ */ import_react11.default.createElement(import_react_native11.View, { style: styles2.root }, open && /* @__PURE__ */ import_react11.default.createElement(
|
|
1065
1066
|
import_react_native11.Pressable,
|
|
1066
1067
|
{
|
|
1067
|
-
style: [import_react_native11.StyleSheet.absoluteFill, { zIndex:
|
|
1068
|
+
style: [import_react_native11.StyleSheet.absoluteFill, { zIndex: 1 }],
|
|
1068
1069
|
onPress: closeAction
|
|
1069
1070
|
}
|
|
1070
1071
|
), /* @__PURE__ */ import_react11.default.createElement(
|
|
1071
1072
|
import_react_native_reanimated2.default.View,
|
|
1072
1073
|
{
|
|
1073
1074
|
style: [styles2.avoidingView, contentAnimatedStyle],
|
|
1074
|
-
layout: import_react_native_reanimated2.LinearTransition.springify(
|
|
1075
|
+
layout: import_react_native_reanimated2.LinearTransition.springify().stiffness(200).mass(0.5).damping(100)
|
|
1075
1076
|
},
|
|
1076
|
-
/* @__PURE__ */ import_react11.default.createElement(
|
|
1077
|
-
|
|
1077
|
+
/* @__PURE__ */ import_react11.default.createElement(import_react_native11.View, { style: styles2.container }, !bare && /* @__PURE__ */ import_react11.default.createElement(import_react_native11.View, { style: styles2.title }, /* @__PURE__ */ import_react11.default.createElement(import_react_native11.View, { style: styles2.titleIcon }, /* @__PURE__ */ import_react11.default.createElement(
|
|
1078
|
+
IconButton,
|
|
1078
1079
|
{
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
size: 20,
|
|
1085
|
-
icon: "close",
|
|
1086
|
-
onPress: closeAction
|
|
1087
|
-
}
|
|
1088
|
-
)), /* @__PURE__ */ import_react11.default.createElement(Typography_default, { align: "center", fontWeight: 500 }, title)),
|
|
1089
|
-
/* @__PURE__ */ import_react11.default.createElement(import_react_native11.View, { style: styles2.content }, children)
|
|
1090
|
-
)
|
|
1080
|
+
size: 20,
|
|
1081
|
+
icon: "close",
|
|
1082
|
+
onPress: closeAction
|
|
1083
|
+
}
|
|
1084
|
+
)), /* @__PURE__ */ import_react11.default.createElement(Typography_default, { align: "center", fontWeight: 500 }, title)), /* @__PURE__ */ import_react11.default.createElement(import_react_native11.View, { style: styles2.content }, children))
|
|
1091
1085
|
)))
|
|
1092
1086
|
))
|
|
1093
1087
|
);
|