@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.mjs CHANGED
@@ -1685,7 +1685,7 @@ 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: {
@@ -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,