@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.mjs
CHANGED
|
@@ -1569,6 +1569,7 @@ var TextFieldBase = React15.forwardRef(
|
|
|
1569
1569
|
...props
|
|
1570
1570
|
}, ref) => {
|
|
1571
1571
|
const colors2 = useColors();
|
|
1572
|
+
const theme = useTheme();
|
|
1572
1573
|
const [focused, _setFocused] = useState7(false);
|
|
1573
1574
|
const [showPassword, setShowPassword] = useState7(false);
|
|
1574
1575
|
const [datePickerVisible, setDatePickerVisible] = useState7(false);
|
|
@@ -1685,13 +1686,13 @@ var TextFieldBase = React15.forwardRef(
|
|
|
1685
1686
|
position: "absolute",
|
|
1686
1687
|
left: inputPadding,
|
|
1687
1688
|
fontSize: labelOpen ? "10@s" : "13@s",
|
|
1688
|
-
color: focused ? colors2[color].main : colors2.textSecondary.main
|
|
1689
|
+
color: error ? colors2.error.main : focused ? theme === "dark" ? colors2[color].light : colors2[color].main : colors2.textSecondary.main
|
|
1689
1690
|
}
|
|
1690
1691
|
} : {},
|
|
1691
1692
|
helperText: {
|
|
1692
1693
|
paddingHorizontal: "15@s",
|
|
1693
1694
|
flex: 1,
|
|
1694
|
-
color: focused ? colors2[color].main : colors2.textSecondary.main,
|
|
1695
|
+
color: error ? colors2.error.main : focused ? theme === "dark" ? colors2[color].light : colors2[color].main : colors2.textSecondary.main,
|
|
1695
1696
|
paddingTop: "4@ms"
|
|
1696
1697
|
},
|
|
1697
1698
|
error: {
|
|
@@ -1701,7 +1702,7 @@ var TextFieldBase = React15.forwardRef(
|
|
|
1701
1702
|
flexDirection: "row",
|
|
1702
1703
|
alignItems: "center"
|
|
1703
1704
|
},
|
|
1704
|
-
errorText: { fontSize: 12, marginLeft: 10 },
|
|
1705
|
+
errorText: { fontSize: 12, marginLeft: 10, fontWeight: "400" },
|
|
1705
1706
|
placeholder: {
|
|
1706
1707
|
fontSize: "14@ms",
|
|
1707
1708
|
color: colors2.textSecondary.light,
|
|
@@ -1714,7 +1715,7 @@ var TextFieldBase = React15.forwardRef(
|
|
|
1714
1715
|
Typography_default,
|
|
1715
1716
|
{
|
|
1716
1717
|
variant: "body2",
|
|
1717
|
-
color: "textSecondary",
|
|
1718
|
+
color: error ? "error" : "textSecondary",
|
|
1718
1719
|
gutterBottom: 7,
|
|
1719
1720
|
...labelProps
|
|
1720
1721
|
},
|
|
@@ -1900,7 +1901,15 @@ var TextFieldBase = React15.forwardRef(
|
|
|
1900
1901
|
}
|
|
1901
1902
|
)
|
|
1902
1903
|
) : null
|
|
1903
|
-
), helperText ? /* @__PURE__ */ React15.createElement(Typography_default, { style: styles.helperText, variant: "caption" }, helperText) : null, error ? /* @__PURE__ */ React15.createElement(View10, { style: styles.error }, /* @__PURE__ */ React15.createElement(MaterialIcons5, { name: "error", color: colors2.error.main, size: 16 }), /* @__PURE__ */ React15.createElement(
|
|
1904
|
+
), helperText ? /* @__PURE__ */ React15.createElement(Typography_default, { style: styles.helperText, variant: "caption" }, helperText) : null, error ? /* @__PURE__ */ React15.createElement(View10, { style: styles.error }, /* @__PURE__ */ React15.createElement(MaterialIcons5, { name: "error", color: colors2.error.main, size: 16 }), /* @__PURE__ */ React15.createElement(
|
|
1905
|
+
Typography_default,
|
|
1906
|
+
{
|
|
1907
|
+
style: styles.errorText,
|
|
1908
|
+
color: "error",
|
|
1909
|
+
fontWeight: 400
|
|
1910
|
+
},
|
|
1911
|
+
error
|
|
1912
|
+
)) : null), options ? /* @__PURE__ */ React15.createElement(
|
|
1904
1913
|
SelectMenu_default,
|
|
1905
1914
|
{
|
|
1906
1915
|
options,
|