@hoddy-ui/next 2.5.89 → 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 CHANGED
@@ -1720,7 +1720,7 @@ 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: {
@@ -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,