@hoddy-ui/next 2.5.88 → 2.5.90
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 +8 -8
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -8
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1642,9 +1642,9 @@ var TextFieldBase = React15.forwardRef(
|
|
|
1642
1642
|
height: height2,
|
|
1643
1643
|
overflow: "hidden",
|
|
1644
1644
|
flexDirection: "row",
|
|
1645
|
-
backgroundColor: variant === "outlined" || variant === "text" ? "#fff0" : focused ? colors2.white[
|
|
1646
|
-
borderColor: error ? colors2.error.main : focused ? colors2[color].main : colors2.textSecondary.main,
|
|
1647
|
-
borderWidth: error ? 1 : variant === "outlined" ? focused ? 2 : 0.5 : 0,
|
|
1645
|
+
backgroundColor: variant === "outlined" || variant === "text" ? "#fff0" : focused ? colors2.white[2] + "dd" : colors2.white[2],
|
|
1646
|
+
borderColor: error ? colors2.error.main : isFloating && focused && variant === "contained" ? colors2[color].light : focused ? colors2[color].main : colors2.textSecondary.main,
|
|
1647
|
+
borderWidth: error ? 1 : isFloating && focused && variant === "contained" ? 1 : variant === "outlined" ? focused ? 2 : 0.5 : 0,
|
|
1648
1648
|
borderBottomWidth: variant === "text" ? 0.5 : void 0,
|
|
1649
1649
|
width: "100%",
|
|
1650
1650
|
borderRadius: containerBorderRadius,
|
|
@@ -1685,13 +1685,13 @@ var TextFieldBase = React15.forwardRef(
|
|
|
1685
1685
|
position: "absolute",
|
|
1686
1686
|
left: inputPadding,
|
|
1687
1687
|
fontSize: labelOpen ? "10@s" : "13@s",
|
|
1688
|
-
color: focused ? colors2[color].main : colors2.textSecondary.main
|
|
1688
|
+
color: error ? colors2.error.main : focused ? colors2[color].main : colors2.textSecondary.main
|
|
1689
1689
|
}
|
|
1690
1690
|
} : {},
|
|
1691
1691
|
helperText: {
|
|
1692
1692
|
paddingHorizontal: "15@s",
|
|
1693
1693
|
flex: 1,
|
|
1694
|
-
color: focused ? colors2[color].
|
|
1694
|
+
color: focused ? colors2[color].main : colors2.textSecondary.main,
|
|
1695
1695
|
paddingTop: "4@ms"
|
|
1696
1696
|
},
|
|
1697
1697
|
error: {
|
|
@@ -1701,7 +1701,7 @@ var TextFieldBase = React15.forwardRef(
|
|
|
1701
1701
|
flexDirection: "row",
|
|
1702
1702
|
alignItems: "center"
|
|
1703
1703
|
},
|
|
1704
|
-
errorText: { fontSize: 12, marginLeft: 10 },
|
|
1704
|
+
errorText: { fontSize: 12, marginLeft: 10, fontWeight: "400" },
|
|
1705
1705
|
placeholder: {
|
|
1706
1706
|
fontSize: "14@ms",
|
|
1707
1707
|
color: colors2.textSecondary.light,
|
|
@@ -1714,7 +1714,7 @@ var TextFieldBase = React15.forwardRef(
|
|
|
1714
1714
|
Typography_default,
|
|
1715
1715
|
{
|
|
1716
1716
|
variant: "body2",
|
|
1717
|
-
color: "textSecondary",
|
|
1717
|
+
color: error ? "error" : "textSecondary",
|
|
1718
1718
|
gutterBottom: 7,
|
|
1719
1719
|
...labelProps
|
|
1720
1720
|
},
|
|
@@ -1900,7 +1900,7 @@ var TextFieldBase = React15.forwardRef(
|
|
|
1900
1900
|
}
|
|
1901
1901
|
)
|
|
1902
1902
|
) : 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(Typography_default, { style: styles.errorText, color: "error" }, error)) : null), options ? /* @__PURE__ */ React15.createElement(
|
|
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(Typography_default, { style: styles.errorText, color: "error", fontWeight: 400 }, error)) : null), options ? /* @__PURE__ */ React15.createElement(
|
|
1904
1904
|
SelectMenu_default,
|
|
1905
1905
|
{
|
|
1906
1906
|
options,
|