@hoddy-ui/next 2.0.48 → 2.0.49

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/dist/index.mjs CHANGED
@@ -895,7 +895,7 @@ var Popup = ({
895
895
  title,
896
896
  sheet,
897
897
  bare = false,
898
- keyboardVerticalOffset,
898
+ keyboardVerticalOffset = -10,
899
899
  children,
900
900
  open,
901
901
  onClose = () => {
@@ -940,9 +940,12 @@ var Popup = ({
940
940
  width: "100%",
941
941
  justifyContent: sheet ? "flex-end" : "center"
942
942
  },
943
+ keyboardView: {
944
+ flex: 1
945
+ },
943
946
  avoidingView: {
944
947
  minHeight: typeof sheet === "number" ? sheet : void 0,
945
- maxHeight: "80%",
948
+ maxHeight: "90%",
946
949
  zIndex: 1e3,
947
950
  alignSelf: "center",
948
951
  maxWidth: sheet ? void 0 : "90%",
@@ -950,7 +953,7 @@ var Popup = ({
950
953
  },
951
954
  container: {
952
955
  paddingBottom: sheet ? "30@ms" : void 0,
953
- backgroundColor: theme === "dark" ? "#111" : colors2.white[2],
956
+ backgroundColor: theme === "dark" ? "#111" : colors2.white[1],
954
957
  borderTopLeftRadius: 20,
955
958
  borderTopRightRadius: 20,
956
959
  borderBottomRightRadius: sheet ? 0 : 20,
@@ -991,35 +994,43 @@ var Popup = ({
991
994
  visible: modalVisible,
992
995
  onRequestClose: closeAction
993
996
  },
994
- /* @__PURE__ */ React11.createElement(UIThemeProvider, null, /* @__PURE__ */ React11.createElement(TouchableWithoutFeedback2, { onPress: Keyboard2.dismiss }, /* @__PURE__ */ React11.createElement(View5, { style: styles2.root }, /* @__PURE__ */ React11.createElement(Animated2.View, { style: [styles2.backdrop, backdropAnimatedStyle] }), open && /* @__PURE__ */ React11.createElement(
995
- Pressable,
996
- {
997
- style: [StyleSheet2.absoluteFill, { zIndex: 2 }],
998
- onPress: closeAction
999
- }
1000
- ), /* @__PURE__ */ React11.createElement(Animated2.View, { style: [styles2.avoidingView, contentAnimatedStyle] }, /* @__PURE__ */ React11.createElement(
997
+ /* @__PURE__ */ React11.createElement(UIThemeProvider, null, /* @__PURE__ */ React11.createElement(
1001
998
  KeyboardAvoidingView2,
1002
999
  {
1003
- keyboardVerticalOffset,
1004
- behavior: Platform5.OS === "ios" ? "padding" : "padding"
1000
+ style: styles2.keyboardView,
1001
+ behavior: Platform5.OS === "ios" ? "padding" : void 0,
1002
+ keyboardVerticalOffset
1005
1003
  },
1006
- /* @__PURE__ */ React11.createElement(
1004
+ /* @__PURE__ */ React11.createElement(TouchableWithoutFeedback2, { onPress: Keyboard2.dismiss }, /* @__PURE__ */ React11.createElement(View5, { style: styles2.root }, /* @__PURE__ */ React11.createElement(Animated2.View, { style: [styles2.backdrop, backdropAnimatedStyle] }), open && /* @__PURE__ */ React11.createElement(
1005
+ Pressable,
1006
+ {
1007
+ style: [StyleSheet2.absoluteFill, { zIndex: 2 }],
1008
+ onPress: closeAction
1009
+ }
1010
+ ), /* @__PURE__ */ React11.createElement(
1007
1011
  Animated2.View,
1008
1012
  {
1009
- layout: LinearTransition,
1010
- style: styles2.container
1013
+ style: [styles2.avoidingView, contentAnimatedStyle],
1014
+ layout: LinearTransition
1011
1015
  },
1012
- !bare && /* @__PURE__ */ React11.createElement(View5, { style: styles2.title }, /* @__PURE__ */ React11.createElement(View5, { style: styles2.titleIcon }, /* @__PURE__ */ React11.createElement(
1013
- IconButton,
1016
+ /* @__PURE__ */ React11.createElement(
1017
+ Animated2.View,
1014
1018
  {
1015
- size: 20,
1016
- icon: "close",
1017
- onPress: closeAction
1018
- }
1019
- )), /* @__PURE__ */ React11.createElement(Typography_default, { align: "center", fontWeight: 500 }, title)),
1020
- /* @__PURE__ */ React11.createElement(View5, { style: styles2.content }, children)
1021
- )
1022
- )))))
1019
+ layout: LinearTransition,
1020
+ style: styles2.container
1021
+ },
1022
+ !bare && /* @__PURE__ */ React11.createElement(View5, { style: styles2.title }, /* @__PURE__ */ React11.createElement(View5, { style: styles2.titleIcon }, /* @__PURE__ */ React11.createElement(
1023
+ IconButton,
1024
+ {
1025
+ size: 20,
1026
+ icon: "close",
1027
+ onPress: closeAction
1028
+ }
1029
+ )), /* @__PURE__ */ React11.createElement(Typography_default, { align: "center", fontWeight: 500 }, title)),
1030
+ /* @__PURE__ */ React11.createElement(View5, { style: styles2.content }, children)
1031
+ )
1032
+ )))
1033
+ ))
1023
1034
  );
1024
1035
  };
1025
1036
 
@@ -1718,7 +1729,7 @@ var TextField2 = React15.forwardRef(
1718
1729
  return /* @__PURE__ */ React15.createElement(React15.Fragment, null, /* @__PURE__ */ React15.createElement(View10, { style: styles2.root }, label && /* @__PURE__ */ React15.createElement(
1719
1730
  Typography_default,
1720
1731
  {
1721
- variant: "body1",
1732
+ variant: "body2",
1722
1733
  color: "textSecondary",
1723
1734
  gutterBottom: 7,
1724
1735
  ...labelProps