@hoddy-ui/next 2.0.44 → 2.0.46
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 +10 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +10 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -338,8 +338,8 @@ function themeReducer(state, { type, payload }) {
|
|
|
338
338
|
var ConfigureSystemUI = () => {
|
|
339
339
|
const theme = useTheme();
|
|
340
340
|
const colors2 = useColors();
|
|
341
|
-
const config2 = getConfig();
|
|
342
341
|
useEffect2(() => {
|
|
342
|
+
const config2 = getConfig();
|
|
343
343
|
if (colors2) {
|
|
344
344
|
SystemUI.setBackgroundColorAsync(colors2.white[1]);
|
|
345
345
|
if (Platform.OS === "android" && !config2.EDGE_TO_EDGE) {
|
|
@@ -1565,13 +1565,14 @@ var TextField2 = React15.forwardRef(
|
|
|
1565
1565
|
placeholder,
|
|
1566
1566
|
end,
|
|
1567
1567
|
options,
|
|
1568
|
+
multiline,
|
|
1568
1569
|
...props
|
|
1569
1570
|
}, ref) => {
|
|
1570
1571
|
const colors2 = useColors();
|
|
1571
1572
|
const [focused, _setFocused] = useState6(false);
|
|
1572
1573
|
const [showPassword, setShowPassword] = useState6(false);
|
|
1573
1574
|
const height = moderateScale3(
|
|
1574
|
-
|
|
1575
|
+
multiline ? 50 + (props.numberOfLines || 1) * 18 : 50
|
|
1575
1576
|
);
|
|
1576
1577
|
const setFocused = (value2) => {
|
|
1577
1578
|
_setFocused(value2);
|
|
@@ -1589,7 +1590,8 @@ var TextField2 = React15.forwardRef(
|
|
|
1589
1590
|
borderWidth: error ? 1 : focused ? 2 : 1,
|
|
1590
1591
|
width: "100%",
|
|
1591
1592
|
borderRadius: rounded ? 30 : 10,
|
|
1592
|
-
alignItems: "center",
|
|
1593
|
+
alignItems: multiline ? "flex-start" : "center",
|
|
1594
|
+
paddingVertical: multiline ? 10 : 0,
|
|
1593
1595
|
...inputStyles
|
|
1594
1596
|
},
|
|
1595
1597
|
input: {
|
|
@@ -1609,7 +1611,7 @@ var TextField2 = React15.forwardRef(
|
|
|
1609
1611
|
},
|
|
1610
1612
|
placeholder: {
|
|
1611
1613
|
fontSize: "14@ms",
|
|
1612
|
-
color: colors2.textSecondary.
|
|
1614
|
+
color: colors2.textSecondary.light,
|
|
1613
1615
|
paddingLeft: moderateScale3(10)
|
|
1614
1616
|
},
|
|
1615
1617
|
label: {},
|
|
@@ -1656,7 +1658,7 @@ var TextField2 = React15.forwardRef(
|
|
|
1656
1658
|
onPress: () => setFocused(true),
|
|
1657
1659
|
style: styles2.container
|
|
1658
1660
|
},
|
|
1659
|
-
start,
|
|
1661
|
+
/* @__PURE__ */ React15.createElement(View10, { style: { marginTop: multiline ? 5 : 0 } }, start),
|
|
1660
1662
|
options ? /* @__PURE__ */ React15.createElement(React15.Fragment, null, value ? /* @__PURE__ */ React15.createElement(Typography_default, { style: styles2.inputText }, options.find((cur) => cur.value === value)?.label) : /* @__PURE__ */ React15.createElement(Typography_default, { style: styles2.placeholder }, placeholder), /* @__PURE__ */ React15.createElement(
|
|
1661
1663
|
Ionicons3,
|
|
1662
1664
|
{
|
|
@@ -1681,11 +1683,13 @@ var TextField2 = React15.forwardRef(
|
|
|
1681
1683
|
onChangeText,
|
|
1682
1684
|
key: showPassword ? "show" : "hide",
|
|
1683
1685
|
keyboardType,
|
|
1684
|
-
placeholderTextColor: colors2.textSecondary.
|
|
1686
|
+
placeholderTextColor: colors2.textSecondary.light,
|
|
1685
1687
|
editable: !disabled,
|
|
1686
1688
|
placeholder,
|
|
1687
1689
|
selectTextOnFocus: !disabled,
|
|
1688
1690
|
onSubmitEditing,
|
|
1691
|
+
multiline,
|
|
1692
|
+
textAlignVertical: multiline ? "top" : "center",
|
|
1689
1693
|
...formProps,
|
|
1690
1694
|
...props,
|
|
1691
1695
|
style: styles2.input
|