@hoddy-ui/next 2.5.76 → 2.5.77
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.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +18 -17
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -621,7 +621,7 @@ var AlertX = ({
|
|
|
621
621
|
var AlertX_default = AlertX;
|
|
622
622
|
|
|
623
623
|
// ../src/Components/Avatar.tsx
|
|
624
|
-
import {
|
|
624
|
+
import { Ionicons } from "@expo/vector-icons";
|
|
625
625
|
import React6, { useState as useState3 } from "react";
|
|
626
626
|
import { Image, View as View3 } from "react-native";
|
|
627
627
|
import { ms as ms3, ScaledSheet as ScaledSheet3 } from "react-native-size-matters";
|
|
@@ -631,7 +631,8 @@ var Avatar = ({
|
|
|
631
631
|
variant = "contained",
|
|
632
632
|
source,
|
|
633
633
|
size = 48,
|
|
634
|
-
style = {}
|
|
634
|
+
style = {},
|
|
635
|
+
icon
|
|
635
636
|
}) => {
|
|
636
637
|
const colors2 = useColors();
|
|
637
638
|
const [imageError, setImageError] = useState3(false);
|
|
@@ -661,12 +662,12 @@ var Avatar = ({
|
|
|
661
662
|
source,
|
|
662
663
|
onError: () => setImageError(true)
|
|
663
664
|
}
|
|
664
|
-
) : label ? /* @__PURE__ */ React6.createElement(Typography_default, { style: { color: colors2[color].text } }, label[0]) : /* @__PURE__ */ React6.createElement(
|
|
665
|
+
) : label ? /* @__PURE__ */ React6.createElement(Typography_default, { style: { color: colors2[color].text } }, label[0]) : icon ? icon : /* @__PURE__ */ React6.createElement(Ionicons, { name: "person", color: "#fff", size: Math.round(size / 1.5) }));
|
|
665
666
|
};
|
|
666
667
|
var Avatar_default = Avatar;
|
|
667
668
|
|
|
668
669
|
// ../src/Components/Button.tsx
|
|
669
|
-
import { Ionicons, MaterialIcons as MaterialIcons2 } from "@expo/vector-icons";
|
|
670
|
+
import { Ionicons as Ionicons2, MaterialIcons as MaterialIcons2 } from "@expo/vector-icons";
|
|
670
671
|
import React7, { forwardRef as forwardRef2 } from "react";
|
|
671
672
|
import { ActivityIndicator, Text as Text2, TouchableOpacity as TouchableOpacity2 } from "react-native";
|
|
672
673
|
import { ScaledSheet as ScaledSheet4, moderateScale, ms as ms4 } from "react-native-size-matters";
|
|
@@ -733,7 +734,7 @@ var IconButton = ({
|
|
|
733
734
|
});
|
|
734
735
|
const IconComp = {
|
|
735
736
|
material: MaterialIcons2,
|
|
736
|
-
ion:
|
|
737
|
+
ion: Ionicons2
|
|
737
738
|
}[iconType];
|
|
738
739
|
return /* @__PURE__ */ React7.createElement(
|
|
739
740
|
TouchableOpacity2,
|
|
@@ -916,7 +917,7 @@ var FormWrapper = forwardRef3(
|
|
|
916
917
|
);
|
|
917
918
|
|
|
918
919
|
// ../src/Components/StarRating.tsx
|
|
919
|
-
import { Ionicons as
|
|
920
|
+
import { Ionicons as Ionicons3 } from "@expo/vector-icons";
|
|
920
921
|
import * as Haptics from "expo-haptics";
|
|
921
922
|
import React11, { useEffect as useEffect4, useState as useState5 } from "react";
|
|
922
923
|
import {
|
|
@@ -1179,7 +1180,7 @@ var RatingInput = ({
|
|
|
1179
1180
|
}
|
|
1180
1181
|
},
|
|
1181
1182
|
/* @__PURE__ */ React11.createElement(
|
|
1182
|
-
|
|
1183
|
+
Ionicons3,
|
|
1183
1184
|
{
|
|
1184
1185
|
style: { marginLeft: 10 },
|
|
1185
1186
|
name: index < rate ? "star" : "star-outline",
|
|
@@ -1254,7 +1255,7 @@ var RatingStars = ({
|
|
|
1254
1255
|
}
|
|
1255
1256
|
});
|
|
1256
1257
|
return /* @__PURE__ */ React11.createElement(View6, { style: styles.root }, [...Array(Math.floor(rating))].map((_, index) => /* @__PURE__ */ React11.createElement(
|
|
1257
|
-
|
|
1258
|
+
Ionicons3,
|
|
1258
1259
|
{
|
|
1259
1260
|
key: index,
|
|
1260
1261
|
name: "star",
|
|
@@ -1262,7 +1263,7 @@ var RatingStars = ({
|
|
|
1262
1263
|
color: colors2[color]?.main || color
|
|
1263
1264
|
}
|
|
1264
1265
|
)), [...Array(5 - Math.floor(rating))].map((_, index) => /* @__PURE__ */ React11.createElement(
|
|
1265
|
-
|
|
1266
|
+
Ionicons3,
|
|
1266
1267
|
{
|
|
1267
1268
|
key: index,
|
|
1268
1269
|
name: "star",
|
|
@@ -1308,7 +1309,7 @@ var Grid = ({
|
|
|
1308
1309
|
};
|
|
1309
1310
|
|
|
1310
1311
|
// ../src/Components/Locator.tsx
|
|
1311
|
-
import { Ionicons as
|
|
1312
|
+
import { Ionicons as Ionicons5 } from "@expo/vector-icons";
|
|
1312
1313
|
import React16, { useEffect as useEffect5, useState as useState8 } from "react";
|
|
1313
1314
|
import { Alert, TouchableOpacity as TouchableOpacity8, View as View11 } from "react-native";
|
|
1314
1315
|
|
|
@@ -1352,7 +1353,7 @@ var ListItem = ({
|
|
|
1352
1353
|
};
|
|
1353
1354
|
|
|
1354
1355
|
// ../src/Components/TextField.tsx
|
|
1355
|
-
import { Ionicons as
|
|
1356
|
+
import { Ionicons as Ionicons4, MaterialIcons as MaterialIcons5 } from "@expo/vector-icons";
|
|
1356
1357
|
import React15, { useRef as useRef2, useState as useState7 } from "react";
|
|
1357
1358
|
import {
|
|
1358
1359
|
Animated as Animated3,
|
|
@@ -1691,7 +1692,7 @@ var TextField = ({
|
|
|
1691
1692
|
}
|
|
1692
1693
|
},
|
|
1693
1694
|
/* @__PURE__ */ React15.createElement(
|
|
1694
|
-
|
|
1695
|
+
Ionicons4,
|
|
1695
1696
|
{
|
|
1696
1697
|
name: "chevron-down",
|
|
1697
1698
|
color: colors2.textSecondary.main,
|
|
@@ -1859,7 +1860,7 @@ var TextField2 = React15.forwardRef(
|
|
|
1859
1860
|
},
|
|
1860
1861
|
/* @__PURE__ */ React15.createElement(View10, { style: { marginTop: multiline ? 5 : 0 } }, start),
|
|
1861
1862
|
options ? /* @__PURE__ */ React15.createElement(React15.Fragment, null, value ? /* @__PURE__ */ React15.createElement(Typography_default, { style: styles.inputText }, options.find((cur) => cur.value === value)?.label) : /* @__PURE__ */ React15.createElement(Typography_default, { style: styles.placeholder }, placeholder), /* @__PURE__ */ React15.createElement(
|
|
1862
|
-
|
|
1863
|
+
Ionicons4,
|
|
1863
1864
|
{
|
|
1864
1865
|
name: "chevron-down",
|
|
1865
1866
|
size: 24,
|
|
@@ -1901,7 +1902,7 @@ var TextField2 = React15.forwardRef(
|
|
|
1901
1902
|
onPress: () => setShowPassword(!showPassword)
|
|
1902
1903
|
},
|
|
1903
1904
|
/* @__PURE__ */ React15.createElement(
|
|
1904
|
-
|
|
1905
|
+
Ionicons4,
|
|
1905
1906
|
{
|
|
1906
1907
|
name: showPassword ? "eye-outline" : "eye-off-outline",
|
|
1907
1908
|
size: 24,
|
|
@@ -2111,13 +2112,13 @@ var Locator = ({
|
|
|
2111
2112
|
helperText,
|
|
2112
2113
|
variant,
|
|
2113
2114
|
end: /* @__PURE__ */ React16.createElement(View11, { style: { flexDirection: "row" } }, /* @__PURE__ */ React16.createElement(TouchableOpacity8, { onPress: locateMe, style: { marginRight: 10 } }, /* @__PURE__ */ React16.createElement(
|
|
2114
|
-
|
|
2115
|
+
Ionicons5,
|
|
2115
2116
|
{
|
|
2116
2117
|
color: colors2.primary.main,
|
|
2117
2118
|
size: 18,
|
|
2118
2119
|
name: "location"
|
|
2119
2120
|
}
|
|
2120
|
-
)), /* @__PURE__ */ React16.createElement(TouchableOpacity8, { onPress: clear }, /* @__PURE__ */ React16.createElement(
|
|
2121
|
+
)), /* @__PURE__ */ React16.createElement(TouchableOpacity8, { onPress: clear }, /* @__PURE__ */ React16.createElement(Ionicons5, { color: colors2.dark.main, size: 18, name: "close" })))
|
|
2121
2122
|
}
|
|
2122
2123
|
), prediction.length > 0 && /* @__PURE__ */ React16.createElement(View11, { style: styles.list }, prediction.map(
|
|
2123
2124
|
(cur, i) => i < 5 && /* @__PURE__ */ React16.createElement(
|
|
@@ -2129,7 +2130,7 @@ var Locator = ({
|
|
|
2129
2130
|
onPress: () => locationPressed(cur)
|
|
2130
2131
|
},
|
|
2131
2132
|
/* @__PURE__ */ React16.createElement(
|
|
2132
|
-
|
|
2133
|
+
Ionicons5,
|
|
2133
2134
|
{
|
|
2134
2135
|
name: "location-outline",
|
|
2135
2136
|
style: { marginRight: 10 },
|