@hoddy-ui/next 2.5.76 → 2.5.78
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 +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +8 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +23 -21
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -243,7 +243,7 @@ var Typography = forwardRef(
|
|
|
243
243
|
const config2 = getConfig();
|
|
244
244
|
const customFontSizes = config2.TYPOGRAPHY?.fontSizes;
|
|
245
245
|
const baseFontSize = customFontSizes?.[variant] ?? DEFAULT_FONT_SIZES[variant];
|
|
246
|
-
const f = fontSize || baseFontSize;
|
|
246
|
+
const f = fontSize || style?.fontSize || baseFontSize;
|
|
247
247
|
const lh = lineHeight || f * 1.2;
|
|
248
248
|
const styles = StyleSheet.create({
|
|
249
249
|
text: {
|
|
@@ -339,6 +339,7 @@ var FlashMessage = () => {
|
|
|
339
339
|
opacity: opacity.value
|
|
340
340
|
};
|
|
341
341
|
});
|
|
342
|
+
const textColor = type === "default" ? "#fff" : colors2[type].text;
|
|
342
343
|
const styles = ScaledSheet.create({
|
|
343
344
|
root: {
|
|
344
345
|
position: "absolute",
|
|
@@ -347,7 +348,7 @@ var FlashMessage = () => {
|
|
|
347
348
|
left: 0,
|
|
348
349
|
paddingTop: top + 10,
|
|
349
350
|
paddingHorizontal: "15@ms",
|
|
350
|
-
backgroundColor: colors2[type].main,
|
|
351
|
+
backgroundColor: type === "default" ? "#444" : colors2[type].main,
|
|
351
352
|
width: "100%",
|
|
352
353
|
borderBottomLeftRadius: 10,
|
|
353
354
|
borderBottomRightRadius: 10,
|
|
@@ -371,10 +372,10 @@ var FlashMessage = () => {
|
|
|
371
372
|
variant: "h6",
|
|
372
373
|
fontWeight: 600,
|
|
373
374
|
gutterBottom: 3,
|
|
374
|
-
|
|
375
|
+
color: textColor
|
|
375
376
|
},
|
|
376
377
|
message?.title
|
|
377
|
-
), /* @__PURE__ */ React2.createElement(Typography_default, {
|
|
378
|
+
), /* @__PURE__ */ React2.createElement(Typography_default, { color: textColor }, message?.message)))), message?.actions?.map((cur, i) => /* @__PURE__ */ React2.createElement(
|
|
378
379
|
TouchableOpacity,
|
|
379
380
|
{
|
|
380
381
|
key: i,
|
|
@@ -621,7 +622,7 @@ var AlertX = ({
|
|
|
621
622
|
var AlertX_default = AlertX;
|
|
622
623
|
|
|
623
624
|
// ../src/Components/Avatar.tsx
|
|
624
|
-
import {
|
|
625
|
+
import { Ionicons } from "@expo/vector-icons";
|
|
625
626
|
import React6, { useState as useState3 } from "react";
|
|
626
627
|
import { Image, View as View3 } from "react-native";
|
|
627
628
|
import { ms as ms3, ScaledSheet as ScaledSheet3 } from "react-native-size-matters";
|
|
@@ -631,7 +632,8 @@ var Avatar = ({
|
|
|
631
632
|
variant = "contained",
|
|
632
633
|
source,
|
|
633
634
|
size = 48,
|
|
634
|
-
style = {}
|
|
635
|
+
style = {},
|
|
636
|
+
icon
|
|
635
637
|
}) => {
|
|
636
638
|
const colors2 = useColors();
|
|
637
639
|
const [imageError, setImageError] = useState3(false);
|
|
@@ -661,12 +663,12 @@ var Avatar = ({
|
|
|
661
663
|
source,
|
|
662
664
|
onError: () => setImageError(true)
|
|
663
665
|
}
|
|
664
|
-
) : label ? /* @__PURE__ */ React6.createElement(Typography_default, { style: { color: colors2[color].text } }, label[0]) : /* @__PURE__ */ React6.createElement(
|
|
666
|
+
) : 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
667
|
};
|
|
666
668
|
var Avatar_default = Avatar;
|
|
667
669
|
|
|
668
670
|
// ../src/Components/Button.tsx
|
|
669
|
-
import { Ionicons, MaterialIcons as MaterialIcons2 } from "@expo/vector-icons";
|
|
671
|
+
import { Ionicons as Ionicons2, MaterialIcons as MaterialIcons2 } from "@expo/vector-icons";
|
|
670
672
|
import React7, { forwardRef as forwardRef2 } from "react";
|
|
671
673
|
import { ActivityIndicator, Text as Text2, TouchableOpacity as TouchableOpacity2 } from "react-native";
|
|
672
674
|
import { ScaledSheet as ScaledSheet4, moderateScale, ms as ms4 } from "react-native-size-matters";
|
|
@@ -733,7 +735,7 @@ var IconButton = ({
|
|
|
733
735
|
});
|
|
734
736
|
const IconComp = {
|
|
735
737
|
material: MaterialIcons2,
|
|
736
|
-
ion:
|
|
738
|
+
ion: Ionicons2
|
|
737
739
|
}[iconType];
|
|
738
740
|
return /* @__PURE__ */ React7.createElement(
|
|
739
741
|
TouchableOpacity2,
|
|
@@ -916,7 +918,7 @@ var FormWrapper = forwardRef3(
|
|
|
916
918
|
);
|
|
917
919
|
|
|
918
920
|
// ../src/Components/StarRating.tsx
|
|
919
|
-
import { Ionicons as
|
|
921
|
+
import { Ionicons as Ionicons3 } from "@expo/vector-icons";
|
|
920
922
|
import * as Haptics from "expo-haptics";
|
|
921
923
|
import React11, { useEffect as useEffect4, useState as useState5 } from "react";
|
|
922
924
|
import {
|
|
@@ -1179,7 +1181,7 @@ var RatingInput = ({
|
|
|
1179
1181
|
}
|
|
1180
1182
|
},
|
|
1181
1183
|
/* @__PURE__ */ React11.createElement(
|
|
1182
|
-
|
|
1184
|
+
Ionicons3,
|
|
1183
1185
|
{
|
|
1184
1186
|
style: { marginLeft: 10 },
|
|
1185
1187
|
name: index < rate ? "star" : "star-outline",
|
|
@@ -1254,7 +1256,7 @@ var RatingStars = ({
|
|
|
1254
1256
|
}
|
|
1255
1257
|
});
|
|
1256
1258
|
return /* @__PURE__ */ React11.createElement(View6, { style: styles.root }, [...Array(Math.floor(rating))].map((_, index) => /* @__PURE__ */ React11.createElement(
|
|
1257
|
-
|
|
1259
|
+
Ionicons3,
|
|
1258
1260
|
{
|
|
1259
1261
|
key: index,
|
|
1260
1262
|
name: "star",
|
|
@@ -1262,7 +1264,7 @@ var RatingStars = ({
|
|
|
1262
1264
|
color: colors2[color]?.main || color
|
|
1263
1265
|
}
|
|
1264
1266
|
)), [...Array(5 - Math.floor(rating))].map((_, index) => /* @__PURE__ */ React11.createElement(
|
|
1265
|
-
|
|
1267
|
+
Ionicons3,
|
|
1266
1268
|
{
|
|
1267
1269
|
key: index,
|
|
1268
1270
|
name: "star",
|
|
@@ -1308,7 +1310,7 @@ var Grid = ({
|
|
|
1308
1310
|
};
|
|
1309
1311
|
|
|
1310
1312
|
// ../src/Components/Locator.tsx
|
|
1311
|
-
import { Ionicons as
|
|
1313
|
+
import { Ionicons as Ionicons5 } from "@expo/vector-icons";
|
|
1312
1314
|
import React16, { useEffect as useEffect5, useState as useState8 } from "react";
|
|
1313
1315
|
import { Alert, TouchableOpacity as TouchableOpacity8, View as View11 } from "react-native";
|
|
1314
1316
|
|
|
@@ -1352,7 +1354,7 @@ var ListItem = ({
|
|
|
1352
1354
|
};
|
|
1353
1355
|
|
|
1354
1356
|
// ../src/Components/TextField.tsx
|
|
1355
|
-
import { Ionicons as
|
|
1357
|
+
import { Ionicons as Ionicons4, MaterialIcons as MaterialIcons5 } from "@expo/vector-icons";
|
|
1356
1358
|
import React15, { useRef as useRef2, useState as useState7 } from "react";
|
|
1357
1359
|
import {
|
|
1358
1360
|
Animated as Animated3,
|
|
@@ -1691,7 +1693,7 @@ var TextField = ({
|
|
|
1691
1693
|
}
|
|
1692
1694
|
},
|
|
1693
1695
|
/* @__PURE__ */ React15.createElement(
|
|
1694
|
-
|
|
1696
|
+
Ionicons4,
|
|
1695
1697
|
{
|
|
1696
1698
|
name: "chevron-down",
|
|
1697
1699
|
color: colors2.textSecondary.main,
|
|
@@ -1859,7 +1861,7 @@ var TextField2 = React15.forwardRef(
|
|
|
1859
1861
|
},
|
|
1860
1862
|
/* @__PURE__ */ React15.createElement(View10, { style: { marginTop: multiline ? 5 : 0 } }, start),
|
|
1861
1863
|
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
|
-
|
|
1864
|
+
Ionicons4,
|
|
1863
1865
|
{
|
|
1864
1866
|
name: "chevron-down",
|
|
1865
1867
|
size: 24,
|
|
@@ -1901,7 +1903,7 @@ var TextField2 = React15.forwardRef(
|
|
|
1901
1903
|
onPress: () => setShowPassword(!showPassword)
|
|
1902
1904
|
},
|
|
1903
1905
|
/* @__PURE__ */ React15.createElement(
|
|
1904
|
-
|
|
1906
|
+
Ionicons4,
|
|
1905
1907
|
{
|
|
1906
1908
|
name: showPassword ? "eye-outline" : "eye-off-outline",
|
|
1907
1909
|
size: 24,
|
|
@@ -2111,13 +2113,13 @@ var Locator = ({
|
|
|
2111
2113
|
helperText,
|
|
2112
2114
|
variant,
|
|
2113
2115
|
end: /* @__PURE__ */ React16.createElement(View11, { style: { flexDirection: "row" } }, /* @__PURE__ */ React16.createElement(TouchableOpacity8, { onPress: locateMe, style: { marginRight: 10 } }, /* @__PURE__ */ React16.createElement(
|
|
2114
|
-
|
|
2116
|
+
Ionicons5,
|
|
2115
2117
|
{
|
|
2116
2118
|
color: colors2.primary.main,
|
|
2117
2119
|
size: 18,
|
|
2118
2120
|
name: "location"
|
|
2119
2121
|
}
|
|
2120
|
-
)), /* @__PURE__ */ React16.createElement(TouchableOpacity8, { onPress: clear }, /* @__PURE__ */ React16.createElement(
|
|
2122
|
+
)), /* @__PURE__ */ React16.createElement(TouchableOpacity8, { onPress: clear }, /* @__PURE__ */ React16.createElement(Ionicons5, { color: colors2.dark.main, size: 18, name: "close" })))
|
|
2121
2123
|
}
|
|
2122
2124
|
), prediction.length > 0 && /* @__PURE__ */ React16.createElement(View11, { style: styles.list }, prediction.map(
|
|
2123
2125
|
(cur, i) => i < 5 && /* @__PURE__ */ React16.createElement(
|
|
@@ -2129,7 +2131,7 @@ var Locator = ({
|
|
|
2129
2131
|
onPress: () => locationPressed(cur)
|
|
2130
2132
|
},
|
|
2131
2133
|
/* @__PURE__ */ React16.createElement(
|
|
2132
|
-
|
|
2134
|
+
Ionicons5,
|
|
2133
2135
|
{
|
|
2134
2136
|
name: "location-outline",
|
|
2135
2137
|
style: { marginRight: 10 },
|