@hoddy-ui/next 2.0.49 → 2.0.50

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: {
@@ -1174,7 +1177,7 @@ var RatingInput = ({
1174
1177
  // ../src/Components/Grid.tsx
1175
1178
  import React12 from "react";
1176
1179
  import { View as View7 } from "react-native";
1177
- import { ms as ms5, ScaledSheet as ScaledSheet9 } from "react-native-size-matters";
1180
+ import { ms as ms6, ScaledSheet as ScaledSheet9 } from "react-native-size-matters";
1178
1181
  var GridItem = ({
1179
1182
  children,
1180
1183
  col = 2,
@@ -1185,7 +1188,7 @@ var GridItem = ({
1185
1188
  const styles2 = ScaledSheet9.create({
1186
1189
  gridItem: {
1187
1190
  width: `${100 / col}%`,
1188
- padding: ms5(spacing * 10),
1191
+ padding: ms6(spacing * 10),
1189
1192
  alignItems
1190
1193
  }
1191
1194
  });
@@ -1257,7 +1260,7 @@ import { Animated as Animated3, TextInput as TextInput2, TouchableOpacity as Tou
1257
1260
  import {
1258
1261
  ScaledSheet as ScaledSheet12,
1259
1262
  moderateScale as moderateScale3,
1260
- ms as ms6,
1263
+ ms as ms7,
1261
1264
  verticalScale as verticalScale2
1262
1265
  } from "react-native-size-matters";
1263
1266
 
@@ -1265,7 +1268,7 @@ import {
1265
1268
  import { MaterialIcons as MaterialIcons4 } from "@expo/vector-icons";
1266
1269
  import React14, { useCallback, useState as useState5 } from "react";
1267
1270
  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";
1271
+ import { useSafeAreaInsets as useSafeAreaInsets3 } from "react-native-safe-area-context";
1269
1272
  import { ScaledSheet as ScaledSheet11 } from "react-native-size-matters";
1270
1273
  var SelectMenu = ({
1271
1274
  open = false,
@@ -1279,7 +1282,7 @@ var SelectMenu = ({
1279
1282
  helperText
1280
1283
  }) => {
1281
1284
  const colors2 = useColors();
1282
- const { bottom } = useSafeAreaInsets2();
1285
+ const { bottom } = useSafeAreaInsets3();
1283
1286
  const [search, setSearch] = useState5("");
1284
1287
  const styles2 = ScaledSheet11.create({
1285
1288
  root: {
@@ -1438,7 +1441,7 @@ var TextField = ({
1438
1441
  }, [focused, value]);
1439
1442
  const styles2 = ScaledSheet12.create({
1440
1443
  root: {
1441
- marginBottom: ms6(gutterBottom),
1444
+ marginBottom: ms7(gutterBottom),
1442
1445
  width: "100%",
1443
1446
  ...style
1444
1447
  },
@@ -1535,7 +1538,7 @@ var TextField = ({
1535
1538
  View10,
1536
1539
  {
1537
1540
  style: {
1538
- paddingTop: variant !== "outlined" ? ms6(13) : 0,
1541
+ paddingTop: variant !== "outlined" ? ms7(13) : 0,
1539
1542
  paddingRight: 10
1540
1543
  }
1541
1544
  },
@@ -1570,7 +1573,7 @@ var TextField = ({
1570
1573
  {
1571
1574
  style: {
1572
1575
  marginRight: 20,
1573
- paddingTop: variant === "text" ? ms6(13) : 0
1576
+ paddingTop: variant === "text" ? ms7(13) : 0
1574
1577
  }
1575
1578
  },
1576
1579
  end
@@ -1580,7 +1583,7 @@ var TextField = ({
1580
1583
  {
1581
1584
  style: {
1582
1585
  marginRight: variant === "text" ? 0 : 20,
1583
- paddingTop: variant === "text" ? ms6(13) : 0
1586
+ paddingTop: variant === "text" ? ms7(13) : 0
1584
1587
  }
1585
1588
  },
1586
1589
  /* @__PURE__ */ React15.createElement(
@@ -1653,7 +1656,7 @@ var TextField2 = React15.forwardRef(
1653
1656
  };
1654
1657
  const styles2 = ScaledSheet12.create({
1655
1658
  root: {
1656
- marginBottom: ms6(gutterBottom),
1659
+ marginBottom: ms7(gutterBottom),
1657
1660
  ...style
1658
1661
  },
1659
1662
  container: {
@@ -2039,7 +2042,7 @@ var SafeAreaView = ({
2039
2042
 
2040
2043
  // ../src/Components/Divider.tsx
2041
2044
  import { View as View12 } from "react-native";
2042
- import { ScaledSheet as ScaledSheet14, ms as ms7 } from "react-native-size-matters";
2045
+ import { ScaledSheet as ScaledSheet14, ms as ms8 } from "react-native-size-matters";
2043
2046
  var Divider = ({
2044
2047
  height = 1,
2045
2048
  color = "textSecondary",
@@ -2051,7 +2054,7 @@ var Divider = ({
2051
2054
  root: {
2052
2055
  height,
2053
2056
  backgroundColor: colors2[color].main,
2054
- marginBottom: ms7(gutterBottom),
2057
+ marginBottom: ms8(gutterBottom),
2055
2058
  ...style
2056
2059
  }
2057
2060
  });
@@ -2106,7 +2109,7 @@ import {
2106
2109
  TextInput as TextInput3,
2107
2110
  View as View14
2108
2111
  } from "react-native";
2109
- import { ScaledSheet as ScaledSheet16, ms as ms8 } from "react-native-size-matters";
2112
+ import { ScaledSheet as ScaledSheet16, ms as ms9 } from "react-native-size-matters";
2110
2113
  var OTPInput = ({
2111
2114
  length = 6,
2112
2115
  onChange = () => {
@@ -2153,17 +2156,17 @@ var OTPInput = ({
2153
2156
  root: {},
2154
2157
  container: { flexDirection: "row" },
2155
2158
  input: {
2156
- height: ms8(size),
2157
- width: ms8(size),
2159
+ height: ms9(size),
2160
+ width: ms9(size),
2158
2161
  borderColor: colors2.white[5],
2159
2162
  backgroundColor: variant === "contained" ? colors2.white[3] : void 0,
2160
2163
  borderWidth: variant === "outlined" ? 1 : 0,
2161
2164
  borderBottomWidth: variant === "contained" ? 0 : 1,
2162
- marginHorizontal: ms8(spacing * 5),
2165
+ marginHorizontal: ms9(spacing * 5),
2163
2166
  textAlign: "center",
2164
2167
  borderRadius: variant === "text" ? 0 : 10,
2165
2168
  color: colors2.dark.main,
2166
- fontSize: ms8(size * 0.5)
2169
+ fontSize: ms9(size * 0.5)
2167
2170
  }
2168
2171
  });
2169
2172
  return /* @__PURE__ */ React19.createElement(View14, { style: styles2.root }, /* @__PURE__ */ React19.createElement(View14, { style: styles2.container }, [...Array(length)].map((_, index) => /* @__PURE__ */ React19.createElement(