@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.js
CHANGED
|
@@ -401,8 +401,8 @@ function themeReducer(state, { type, payload }) {
|
|
|
401
401
|
var ConfigureSystemUI = () => {
|
|
402
402
|
const theme = useTheme();
|
|
403
403
|
const colors2 = useColors();
|
|
404
|
-
const config2 = getConfig();
|
|
405
404
|
(0, import_react3.useEffect)(() => {
|
|
405
|
+
const config2 = getConfig();
|
|
406
406
|
if (colors2) {
|
|
407
407
|
SystemUI.setBackgroundColorAsync(colors2.white[1]);
|
|
408
408
|
if (import_react_native3.Platform.OS === "android" && !config2.EDGE_TO_EDGE) {
|
|
@@ -1603,13 +1603,14 @@ var TextField2 = import_react16.default.forwardRef(
|
|
|
1603
1603
|
placeholder,
|
|
1604
1604
|
end,
|
|
1605
1605
|
options,
|
|
1606
|
+
multiline,
|
|
1606
1607
|
...props
|
|
1607
1608
|
}, ref) => {
|
|
1608
1609
|
const colors2 = useColors();
|
|
1609
1610
|
const [focused, _setFocused] = (0, import_react16.useState)(false);
|
|
1610
1611
|
const [showPassword, setShowPassword] = (0, import_react16.useState)(false);
|
|
1611
1612
|
const height = (0, import_react_native_size_matters14.moderateScale)(
|
|
1612
|
-
|
|
1613
|
+
multiline ? 50 + (props.numberOfLines || 1) * 18 : 50
|
|
1613
1614
|
);
|
|
1614
1615
|
const setFocused = (value2) => {
|
|
1615
1616
|
_setFocused(value2);
|
|
@@ -1627,7 +1628,8 @@ var TextField2 = import_react16.default.forwardRef(
|
|
|
1627
1628
|
borderWidth: error ? 1 : focused ? 2 : 1,
|
|
1628
1629
|
width: "100%",
|
|
1629
1630
|
borderRadius: rounded ? 30 : 10,
|
|
1630
|
-
alignItems: "center",
|
|
1631
|
+
alignItems: multiline ? "flex-start" : "center",
|
|
1632
|
+
paddingVertical: multiline ? 10 : 0,
|
|
1631
1633
|
...inputStyles
|
|
1632
1634
|
},
|
|
1633
1635
|
input: {
|
|
@@ -1647,7 +1649,7 @@ var TextField2 = import_react16.default.forwardRef(
|
|
|
1647
1649
|
},
|
|
1648
1650
|
placeholder: {
|
|
1649
1651
|
fontSize: "14@ms",
|
|
1650
|
-
color: colors2.textSecondary.
|
|
1652
|
+
color: colors2.textSecondary.light,
|
|
1651
1653
|
paddingLeft: (0, import_react_native_size_matters14.moderateScale)(10)
|
|
1652
1654
|
},
|
|
1653
1655
|
label: {},
|
|
@@ -1694,7 +1696,7 @@ var TextField2 = import_react16.default.forwardRef(
|
|
|
1694
1696
|
onPress: () => setFocused(true),
|
|
1695
1697
|
style: styles2.container
|
|
1696
1698
|
},
|
|
1697
|
-
start,
|
|
1699
|
+
/* @__PURE__ */ import_react16.default.createElement(import_react_native16.View, { style: { marginTop: multiline ? 5 : 0 } }, start),
|
|
1698
1700
|
options ? /* @__PURE__ */ import_react16.default.createElement(import_react16.default.Fragment, null, value ? /* @__PURE__ */ import_react16.default.createElement(Typography_default, { style: styles2.inputText }, options.find((cur) => cur.value === value)?.label) : /* @__PURE__ */ import_react16.default.createElement(Typography_default, { style: styles2.placeholder }, placeholder), /* @__PURE__ */ import_react16.default.createElement(
|
|
1699
1701
|
import_vector_icons8.Ionicons,
|
|
1700
1702
|
{
|
|
@@ -1719,11 +1721,13 @@ var TextField2 = import_react16.default.forwardRef(
|
|
|
1719
1721
|
onChangeText,
|
|
1720
1722
|
key: showPassword ? "show" : "hide",
|
|
1721
1723
|
keyboardType,
|
|
1722
|
-
placeholderTextColor: colors2.textSecondary.
|
|
1724
|
+
placeholderTextColor: colors2.textSecondary.light,
|
|
1723
1725
|
editable: !disabled,
|
|
1724
1726
|
placeholder,
|
|
1725
1727
|
selectTextOnFocus: !disabled,
|
|
1726
1728
|
onSubmitEditing,
|
|
1729
|
+
multiline,
|
|
1730
|
+
textAlignVertical: multiline ? "top" : "center",
|
|
1727
1731
|
...formProps,
|
|
1728
1732
|
...props,
|
|
1729
1733
|
style: styles2.input
|