@hoddy-ui/next 2.0.49 → 2.0.51

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
@@ -890,7 +890,8 @@ import Animated2, {
890
890
  useSharedValue as useSharedValue2,
891
891
  withTiming as withTiming2
892
892
  } from "react-native-reanimated";
893
- import { ScaledSheet as ScaledSheet7 } from "react-native-size-matters";
893
+ import { ms as ms5, ScaledSheet as ScaledSheet7 } from "react-native-size-matters";
894
+ import { useSafeAreaInsets as useSafeAreaInsets2 } from "react-native-safe-area-context";
894
895
  var Popup = ({
895
896
  title,
896
897
  sheet,
@@ -907,6 +908,7 @@ var Popup = ({
907
908
  const theme = useTheme();
908
909
  const colors2 = useColors();
909
910
  const [modalVisible, setModalVisible] = useState3(false);
911
+ const { bottom } = useSafeAreaInsets2();
910
912
  const backdropOpacity = useSharedValue2(0);
911
913
  const contentTranslateY = useSharedValue2(1e3);
912
914
  useEffect2(() => {
@@ -952,13 +954,14 @@ var Popup = ({
952
954
  width: sheet ? "100%" : void 0
953
955
  },
954
956
  container: {
955
- paddingBottom: sheet ? "30@ms" : void 0,
957
+ paddingBottom: sheet && !bare ? bottom + ms5(10) : void 0,
956
958
  backgroundColor: theme === "dark" ? "#111" : colors2.white[1],
957
959
  borderTopLeftRadius: 20,
958
960
  borderTopRightRadius: 20,
959
961
  borderBottomRightRadius: sheet ? 0 : 20,
960
962
  borderBottomLeftRadius: sheet ? 0 : 20,
961
963
  width: "100%",
964
+ overflow: "hidden",
962
965
  ...style
963
966
  },
964
967
  content: {
@@ -998,7 +1001,7 @@ var Popup = ({
998
1001
  KeyboardAvoidingView2,
999
1002
  {
1000
1003
  style: styles2.keyboardView,
1001
- behavior: Platform5.OS === "ios" ? "padding" : void 0,
1004
+ behavior: Platform5.OS === "ios" ? "padding" : "height",
1002
1005
  keyboardVerticalOffset
1003
1006
  },
1004
1007
  /* @__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(
@@ -1016,7 +1019,6 @@ var Popup = ({
1016
1019
  /* @__PURE__ */ React11.createElement(
1017
1020
  Animated2.View,
1018
1021
  {
1019
- layout: LinearTransition,
1020
1022
  style: styles2.container
1021
1023
  },
1022
1024
  !bare && /* @__PURE__ */ React11.createElement(View5, { style: styles2.title }, /* @__PURE__ */ React11.createElement(View5, { style: styles2.titleIcon }, /* @__PURE__ */ React11.createElement(
@@ -1174,7 +1176,7 @@ var RatingInput = ({
1174
1176
  // ../src/Components/Grid.tsx
1175
1177
  import React12 from "react";
1176
1178
  import { View as View7 } from "react-native";
1177
- import { ms as ms5, ScaledSheet as ScaledSheet9 } from "react-native-size-matters";
1179
+ import { ms as ms6, ScaledSheet as ScaledSheet9 } from "react-native-size-matters";
1178
1180
  var GridItem = ({
1179
1181
  children,
1180
1182
  col = 2,
@@ -1185,7 +1187,7 @@ var GridItem = ({
1185
1187
  const styles2 = ScaledSheet9.create({
1186
1188
  gridItem: {
1187
1189
  width: `${100 / col}%`,
1188
- padding: ms5(spacing * 10),
1190
+ padding: ms6(spacing * 10),
1189
1191
  alignItems
1190
1192
  }
1191
1193
  });
@@ -1257,7 +1259,7 @@ import { Animated as Animated3, TextInput as TextInput2, TouchableOpacity as Tou
1257
1259
  import {
1258
1260
  ScaledSheet as ScaledSheet12,
1259
1261
  moderateScale as moderateScale3,
1260
- ms as ms6,
1262
+ ms as ms7,
1261
1263
  verticalScale as verticalScale2
1262
1264
  } from "react-native-size-matters";
1263
1265
 
@@ -1265,7 +1267,7 @@ import {
1265
1267
  import { MaterialIcons as MaterialIcons4 } from "@expo/vector-icons";
1266
1268
  import React14, { useCallback, useState as useState5 } from "react";
1267
1269
  import { FlatList, Modal as Modal2, TouchableOpacity as TouchableOpacity6, View as View9 } from "react-native";
1268
- import { useSafeAreaInsets as useSafeAreaInsets2 } from "react-native-safe-area-context";
1270
+ import { useSafeAreaInsets as useSafeAreaInsets3 } from "react-native-safe-area-context";
1269
1271
  import { ScaledSheet as ScaledSheet11 } from "react-native-size-matters";
1270
1272
  var SelectMenu = ({
1271
1273
  open = false,
@@ -1279,7 +1281,7 @@ var SelectMenu = ({
1279
1281
  helperText
1280
1282
  }) => {
1281
1283
  const colors2 = useColors();
1282
- const { bottom } = useSafeAreaInsets2();
1284
+ const { bottom } = useSafeAreaInsets3();
1283
1285
  const [search, setSearch] = useState5("");
1284
1286
  const styles2 = ScaledSheet11.create({
1285
1287
  root: {
@@ -1438,7 +1440,7 @@ var TextField = ({
1438
1440
  }, [focused, value]);
1439
1441
  const styles2 = ScaledSheet12.create({
1440
1442
  root: {
1441
- marginBottom: ms6(gutterBottom),
1443
+ marginBottom: ms7(gutterBottom),
1442
1444
  width: "100%",
1443
1445
  ...style
1444
1446
  },
@@ -1535,7 +1537,7 @@ var TextField = ({
1535
1537
  View10,
1536
1538
  {
1537
1539
  style: {
1538
- paddingTop: variant !== "outlined" ? ms6(13) : 0,
1540
+ paddingTop: variant !== "outlined" ? ms7(13) : 0,
1539
1541
  paddingRight: 10
1540
1542
  }
1541
1543
  },
@@ -1570,7 +1572,7 @@ var TextField = ({
1570
1572
  {
1571
1573
  style: {
1572
1574
  marginRight: 20,
1573
- paddingTop: variant === "text" ? ms6(13) : 0
1575
+ paddingTop: variant === "text" ? ms7(13) : 0
1574
1576
  }
1575
1577
  },
1576
1578
  end
@@ -1580,7 +1582,7 @@ var TextField = ({
1580
1582
  {
1581
1583
  style: {
1582
1584
  marginRight: variant === "text" ? 0 : 20,
1583
- paddingTop: variant === "text" ? ms6(13) : 0
1585
+ paddingTop: variant === "text" ? ms7(13) : 0
1584
1586
  }
1585
1587
  },
1586
1588
  /* @__PURE__ */ React15.createElement(
@@ -1653,7 +1655,7 @@ var TextField2 = React15.forwardRef(
1653
1655
  };
1654
1656
  const styles2 = ScaledSheet12.create({
1655
1657
  root: {
1656
- marginBottom: ms6(gutterBottom),
1658
+ marginBottom: ms7(gutterBottom),
1657
1659
  ...style
1658
1660
  },
1659
1661
  container: {
@@ -2039,7 +2041,7 @@ var SafeAreaView = ({
2039
2041
 
2040
2042
  // ../src/Components/Divider.tsx
2041
2043
  import { View as View12 } from "react-native";
2042
- import { ScaledSheet as ScaledSheet14, ms as ms7 } from "react-native-size-matters";
2044
+ import { ScaledSheet as ScaledSheet14, ms as ms8 } from "react-native-size-matters";
2043
2045
  var Divider = ({
2044
2046
  height = 1,
2045
2047
  color = "textSecondary",
@@ -2051,7 +2053,7 @@ var Divider = ({
2051
2053
  root: {
2052
2054
  height,
2053
2055
  backgroundColor: colors2[color].main,
2054
- marginBottom: ms7(gutterBottom),
2056
+ marginBottom: ms8(gutterBottom),
2055
2057
  ...style
2056
2058
  }
2057
2059
  });
@@ -2106,7 +2108,7 @@ import {
2106
2108
  TextInput as TextInput3,
2107
2109
  View as View14
2108
2110
  } from "react-native";
2109
- import { ScaledSheet as ScaledSheet16, ms as ms8 } from "react-native-size-matters";
2111
+ import { ScaledSheet as ScaledSheet16, ms as ms9 } from "react-native-size-matters";
2110
2112
  var OTPInput = ({
2111
2113
  length = 6,
2112
2114
  onChange = () => {
@@ -2153,17 +2155,17 @@ var OTPInput = ({
2153
2155
  root: {},
2154
2156
  container: { flexDirection: "row" },
2155
2157
  input: {
2156
- height: ms8(size),
2157
- width: ms8(size),
2158
+ height: ms9(size),
2159
+ width: ms9(size),
2158
2160
  borderColor: colors2.white[5],
2159
2161
  backgroundColor: variant === "contained" ? colors2.white[3] : void 0,
2160
2162
  borderWidth: variant === "outlined" ? 1 : 0,
2161
2163
  borderBottomWidth: variant === "contained" ? 0 : 1,
2162
- marginHorizontal: ms8(spacing * 5),
2164
+ marginHorizontal: ms9(spacing * 5),
2163
2165
  textAlign: "center",
2164
2166
  borderRadius: variant === "text" ? 0 : 10,
2165
2167
  color: colors2.dark.main,
2166
- fontSize: ms8(size * 0.5)
2168
+ fontSize: ms9(size * 0.5)
2167
2169
  }
2168
2170
  });
2169
2171
  return /* @__PURE__ */ React19.createElement(View14, { style: styles2.root }, /* @__PURE__ */ React19.createElement(View14, { style: styles2.container }, [...Array(length)].map((_, index) => /* @__PURE__ */ React19.createElement(