@hoddy-ui/next 2.5.89 → 2.5.91
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 +14 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +14 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1604,6 +1604,7 @@ var TextFieldBase = import_react16.default.forwardRef(
|
|
|
1604
1604
|
...props
|
|
1605
1605
|
}, ref) => {
|
|
1606
1606
|
const colors2 = useColors();
|
|
1607
|
+
const theme = useTheme();
|
|
1607
1608
|
const [focused, _setFocused] = (0, import_react16.useState)(false);
|
|
1608
1609
|
const [showPassword, setShowPassword] = (0, import_react16.useState)(false);
|
|
1609
1610
|
const [datePickerVisible, setDatePickerVisible] = (0, import_react16.useState)(false);
|
|
@@ -1720,13 +1721,13 @@ var TextFieldBase = import_react16.default.forwardRef(
|
|
|
1720
1721
|
position: "absolute",
|
|
1721
1722
|
left: inputPadding,
|
|
1722
1723
|
fontSize: labelOpen ? "10@s" : "13@s",
|
|
1723
|
-
color: focused ? colors2[color].main : colors2.textSecondary.main
|
|
1724
|
+
color: error ? colors2.error.main : focused ? theme === "dark" ? colors2[color].light : colors2[color].main : colors2.textSecondary.main
|
|
1724
1725
|
}
|
|
1725
1726
|
} : {},
|
|
1726
1727
|
helperText: {
|
|
1727
1728
|
paddingHorizontal: "15@s",
|
|
1728
1729
|
flex: 1,
|
|
1729
|
-
color: focused ? colors2[color].main : colors2.textSecondary.main,
|
|
1730
|
+
color: error ? colors2.error.main : focused ? theme === "dark" ? colors2[color].light : colors2[color].main : colors2.textSecondary.main,
|
|
1730
1731
|
paddingTop: "4@ms"
|
|
1731
1732
|
},
|
|
1732
1733
|
error: {
|
|
@@ -1736,7 +1737,7 @@ var TextFieldBase = import_react16.default.forwardRef(
|
|
|
1736
1737
|
flexDirection: "row",
|
|
1737
1738
|
alignItems: "center"
|
|
1738
1739
|
},
|
|
1739
|
-
errorText: { fontSize: 12, marginLeft: 10 },
|
|
1740
|
+
errorText: { fontSize: 12, marginLeft: 10, fontWeight: "400" },
|
|
1740
1741
|
placeholder: {
|
|
1741
1742
|
fontSize: "14@ms",
|
|
1742
1743
|
color: colors2.textSecondary.light,
|
|
@@ -1749,7 +1750,7 @@ var TextFieldBase = import_react16.default.forwardRef(
|
|
|
1749
1750
|
Typography_default,
|
|
1750
1751
|
{
|
|
1751
1752
|
variant: "body2",
|
|
1752
|
-
color: "textSecondary",
|
|
1753
|
+
color: error ? "error" : "textSecondary",
|
|
1753
1754
|
gutterBottom: 7,
|
|
1754
1755
|
...labelProps
|
|
1755
1756
|
},
|
|
@@ -1935,7 +1936,15 @@ var TextFieldBase = import_react16.default.forwardRef(
|
|
|
1935
1936
|
}
|
|
1936
1937
|
)
|
|
1937
1938
|
) : null
|
|
1938
|
-
), helperText ? /* @__PURE__ */ import_react16.default.createElement(Typography_default, { style: styles.helperText, variant: "caption" }, helperText) : null, error ? /* @__PURE__ */ import_react16.default.createElement(import_react_native16.View, { style: styles.error }, /* @__PURE__ */ import_react16.default.createElement(import_vector_icons8.MaterialIcons, { name: "error", color: colors2.error.main, size: 16 }), /* @__PURE__ */ import_react16.default.createElement(
|
|
1939
|
+
), helperText ? /* @__PURE__ */ import_react16.default.createElement(Typography_default, { style: styles.helperText, variant: "caption" }, helperText) : null, error ? /* @__PURE__ */ import_react16.default.createElement(import_react_native16.View, { style: styles.error }, /* @__PURE__ */ import_react16.default.createElement(import_vector_icons8.MaterialIcons, { name: "error", color: colors2.error.main, size: 16 }), /* @__PURE__ */ import_react16.default.createElement(
|
|
1940
|
+
Typography_default,
|
|
1941
|
+
{
|
|
1942
|
+
style: styles.errorText,
|
|
1943
|
+
color: "error",
|
|
1944
|
+
fontWeight: 400
|
|
1945
|
+
},
|
|
1946
|
+
error
|
|
1947
|
+
)) : null), options ? /* @__PURE__ */ import_react16.default.createElement(
|
|
1939
1948
|
SelectMenu_default,
|
|
1940
1949
|
{
|
|
1941
1950
|
options,
|