@hoddy-ui/next 2.0.13 → 2.0.15
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.js +49 -49
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +54 -54
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -192,54 +192,57 @@ import { useSafeAreaInsets } from "react-native-safe-area-context";
|
|
|
192
192
|
import { ScaledSheet } from "react-native-size-matters";
|
|
193
193
|
|
|
194
194
|
// ../src/Components/Typography.tsx
|
|
195
|
-
import React2 from "react";
|
|
196
|
-
import {
|
|
195
|
+
import React2, { forwardRef } from "react";
|
|
196
|
+
import { StyleSheet, Text } from "react-native";
|
|
197
197
|
import { moderateScale, verticalScale } from "react-native-size-matters";
|
|
198
|
-
var Typography = (
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
198
|
+
var Typography = forwardRef(
|
|
199
|
+
({
|
|
200
|
+
children,
|
|
201
|
+
color = "dark",
|
|
202
|
+
style = {},
|
|
203
|
+
textCase = null,
|
|
204
|
+
variant = "body1",
|
|
205
|
+
align = "left",
|
|
206
|
+
gutterBottom = 0,
|
|
207
|
+
numberOfLines,
|
|
208
|
+
adjustsFontSizeToFit,
|
|
209
|
+
fontWeight = 400
|
|
210
|
+
}, ref) => {
|
|
211
|
+
const colors2 = useColors();
|
|
212
|
+
const fontSize = {
|
|
213
|
+
h1: moderateScale(42),
|
|
214
|
+
h2: moderateScale(37),
|
|
215
|
+
h3: moderateScale(32),
|
|
216
|
+
h4: moderateScale(27),
|
|
217
|
+
h5: moderateScale(22),
|
|
218
|
+
h6: moderateScale(17),
|
|
219
|
+
body1: moderateScale(15),
|
|
220
|
+
body2: moderateScale(12),
|
|
221
|
+
caption: moderateScale(10)
|
|
222
|
+
};
|
|
223
|
+
const styles2 = StyleSheet.create({
|
|
224
|
+
text: {
|
|
225
|
+
fontSize: fontSize[variant],
|
|
226
|
+
marginBottom: verticalScale(gutterBottom) || 0,
|
|
227
|
+
color: colors2[color]?.main || color,
|
|
228
|
+
textTransform: textCase,
|
|
229
|
+
alignItems: "center",
|
|
230
|
+
textAlign: align,
|
|
231
|
+
fontWeight: fontWeight.toString()
|
|
232
|
+
}
|
|
233
|
+
});
|
|
234
|
+
return /* @__PURE__ */ React2.createElement(
|
|
235
|
+
Text,
|
|
236
|
+
{
|
|
237
|
+
ref,
|
|
238
|
+
numberOfLines,
|
|
239
|
+
adjustsFontSizeToFit,
|
|
240
|
+
style: { ...styles2.text, ...style }
|
|
241
|
+
},
|
|
242
|
+
children
|
|
243
|
+
);
|
|
244
|
+
}
|
|
245
|
+
);
|
|
243
246
|
var Typography_default = Typography;
|
|
244
247
|
|
|
245
248
|
// ../src/Components/FlashMessage.tsx
|
|
@@ -551,7 +554,7 @@ var Avatar_default = Avatar;
|
|
|
551
554
|
|
|
552
555
|
// ../src/Components/Button.tsx
|
|
553
556
|
import { Ionicons, MaterialIcons as MaterialIcons2 } from "@expo/vector-icons";
|
|
554
|
-
import React8, { forwardRef } from "react";
|
|
557
|
+
import React8, { forwardRef as forwardRef2 } from "react";
|
|
555
558
|
import { ActivityIndicator, Text as Text2, TouchableOpacity as TouchableOpacity2 } from "react-native";
|
|
556
559
|
import { ScaledSheet as ScaledSheet4, moderateScale as moderateScale2 } from "react-native-size-matters";
|
|
557
560
|
var LinkButton = ({
|
|
@@ -628,7 +631,7 @@ var IconButton = ({
|
|
|
628
631
|
/* @__PURE__ */ React8.createElement(IconComp, { style: { ...styles2.text, ...style }, name: icon, size })
|
|
629
632
|
);
|
|
630
633
|
};
|
|
631
|
-
var Button =
|
|
634
|
+
var Button = forwardRef2(
|
|
632
635
|
({
|
|
633
636
|
elevation = 0,
|
|
634
637
|
onPress = () => {
|
|
@@ -1144,7 +1147,7 @@ var ListItem = ({
|
|
|
1144
1147
|
|
|
1145
1148
|
// ../src/Components/TextField.tsx
|
|
1146
1149
|
import { Ionicons as Ionicons3, MaterialIcons as MaterialIcons5 } from "@expo/vector-icons";
|
|
1147
|
-
import React15, {
|
|
1150
|
+
import React15, { useRef, useState as useState7 } from "react";
|
|
1148
1151
|
import { Animated, TextInput as TextInput2, TouchableOpacity as TouchableOpacity7, View as View10 } from "react-native";
|
|
1149
1152
|
import {
|
|
1150
1153
|
ScaledSheet as ScaledSheet12,
|
|
@@ -1486,7 +1489,6 @@ var TextField = ({
|
|
|
1486
1489
|
var TextField2 = ({
|
|
1487
1490
|
label,
|
|
1488
1491
|
keyboardType,
|
|
1489
|
-
variant,
|
|
1490
1492
|
color = "primary",
|
|
1491
1493
|
value,
|
|
1492
1494
|
type,
|
|
@@ -1517,9 +1519,7 @@ var TextField2 = ({
|
|
|
1517
1519
|
props.multiline ? 50 + (props.numberOfLines || 1) * 18 : 50
|
|
1518
1520
|
);
|
|
1519
1521
|
const setFocused = (value2) => {
|
|
1520
|
-
|
|
1521
|
-
_setFocused(value2);
|
|
1522
|
-
});
|
|
1522
|
+
_setFocused(value2);
|
|
1523
1523
|
};
|
|
1524
1524
|
const styles2 = ScaledSheet12.create({
|
|
1525
1525
|
root: {
|