@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.js
CHANGED
|
@@ -1677,9 +1677,9 @@ var TextFieldBase = import_react16.default.forwardRef(
|
|
|
1677
1677
|
height: height2,
|
|
1678
1678
|
overflow: "hidden",
|
|
1679
1679
|
flexDirection: "row",
|
|
1680
|
-
backgroundColor: variant === "outlined" || variant === "text" ? "#fff0" : focused ? colors2.white[
|
|
1681
|
-
borderColor: error ? colors2.error.main : focused ? colors2[color].main : colors2.textSecondary.main,
|
|
1682
|
-
borderWidth: error ? 1 : variant === "outlined" ? focused ? 2 : 0.5 : 0,
|
|
1680
|
+
backgroundColor: variant === "outlined" || variant === "text" ? "#fff0" : focused ? colors2.white[2] + "dd" : colors2.white[2],
|
|
1681
|
+
borderColor: error ? colors2.error.main : isFloating && focused && variant === "contained" ? colors2[color].light : focused ? colors2[color].main : colors2.textSecondary.main,
|
|
1682
|
+
borderWidth: error ? 1 : isFloating && focused && variant === "contained" ? 1 : variant === "outlined" ? focused ? 2 : 0.5 : 0,
|
|
1683
1683
|
borderBottomWidth: variant === "text" ? 0.5 : void 0,
|
|
1684
1684
|
width: "100%",
|
|
1685
1685
|
borderRadius: containerBorderRadius,
|
|
@@ -1720,13 +1720,13 @@ var TextFieldBase = import_react16.default.forwardRef(
|
|
|
1720
1720
|
position: "absolute",
|
|
1721
1721
|
left: inputPadding,
|
|
1722
1722
|
fontSize: labelOpen ? "10@s" : "13@s",
|
|
1723
|
-
color: focused ? colors2[color].main : colors2.textSecondary.main
|
|
1723
|
+
color: error ? colors2.error.main : focused ? colors2[color].main : colors2.textSecondary.main
|
|
1724
1724
|
}
|
|
1725
1725
|
} : {},
|
|
1726
1726
|
helperText: {
|
|
1727
1727
|
paddingHorizontal: "15@s",
|
|
1728
1728
|
flex: 1,
|
|
1729
|
-
color: focused ? colors2[color].
|
|
1729
|
+
color: focused ? colors2[color].main : colors2.textSecondary.main,
|
|
1730
1730
|
paddingTop: "4@ms"
|
|
1731
1731
|
},
|
|
1732
1732
|
error: {
|
|
@@ -1736,7 +1736,7 @@ var TextFieldBase = import_react16.default.forwardRef(
|
|
|
1736
1736
|
flexDirection: "row",
|
|
1737
1737
|
alignItems: "center"
|
|
1738
1738
|
},
|
|
1739
|
-
errorText: { fontSize: 12, marginLeft: 10 },
|
|
1739
|
+
errorText: { fontSize: 12, marginLeft: 10, fontWeight: "400" },
|
|
1740
1740
|
placeholder: {
|
|
1741
1741
|
fontSize: "14@ms",
|
|
1742
1742
|
color: colors2.textSecondary.light,
|
|
@@ -1749,7 +1749,7 @@ var TextFieldBase = import_react16.default.forwardRef(
|
|
|
1749
1749
|
Typography_default,
|
|
1750
1750
|
{
|
|
1751
1751
|
variant: "body2",
|
|
1752
|
-
color: "textSecondary",
|
|
1752
|
+
color: error ? "error" : "textSecondary",
|
|
1753
1753
|
gutterBottom: 7,
|
|
1754
1754
|
...labelProps
|
|
1755
1755
|
},
|
|
@@ -1935,7 +1935,7 @@ var TextFieldBase = import_react16.default.forwardRef(
|
|
|
1935
1935
|
}
|
|
1936
1936
|
)
|
|
1937
1937
|
) : 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(Typography_default, { style: styles.errorText, color: "error" }, error)) : null), options ? /* @__PURE__ */ import_react16.default.createElement(
|
|
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(Typography_default, { style: styles.errorText, color: "error", fontWeight: 400 }, error)) : null), options ? /* @__PURE__ */ import_react16.default.createElement(
|
|
1939
1939
|
SelectMenu_default,
|
|
1940
1940
|
{
|
|
1941
1941
|
options,
|