@hoddy-ui/next 2.5.90 → 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 CHANGED
@@ -1604,6 +1604,7 @@ var TextFieldBase = import_react16.default.forwardRef(
1604
1604
  ...props
1605
1605
  }, ref) => {
1606
1606
  const colors2 = useColors();
1607
+ const theme = useTheme();
1607
1608
  const [focused, _setFocused] = (0, import_react16.useState)(false);
1608
1609
  const [showPassword, setShowPassword] = (0, import_react16.useState)(false);
1609
1610
  const [datePickerVisible, setDatePickerVisible] = (0, import_react16.useState)(false);
@@ -1720,13 +1721,13 @@ var TextFieldBase = import_react16.default.forwardRef(
1720
1721
  position: "absolute",
1721
1722
  left: inputPadding,
1722
1723
  fontSize: labelOpen ? "10@s" : "13@s",
1723
- color: error ? colors2.error.main : focused ? colors2[color].main : colors2.textSecondary.main
1724
+ color: error ? colors2.error.main : focused ? theme === "dark" ? colors2[color].light : colors2[color].main : colors2.textSecondary.main
1724
1725
  }
1725
1726
  } : {},
1726
1727
  helperText: {
1727
1728
  paddingHorizontal: "15@s",
1728
1729
  flex: 1,
1729
- color: focused ? colors2[color].main : colors2.textSecondary.main,
1730
+ color: error ? colors2.error.main : focused ? theme === "dark" ? colors2[color].light : colors2[color].main : colors2.textSecondary.main,
1730
1731
  paddingTop: "4@ms"
1731
1732
  },
1732
1733
  error: {
@@ -1935,7 +1936,15 @@ var TextFieldBase = import_react16.default.forwardRef(
1935
1936
  }
1936
1937
  )
1937
1938
  ) : 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", fontWeight: 400 }, error)) : null), options ? /* @__PURE__ */ import_react16.default.createElement(
1939
+ ), 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(
1940
+ Typography_default,
1941
+ {
1942
+ style: styles.errorText,
1943
+ color: "error",
1944
+ fontWeight: 400
1945
+ },
1946
+ error
1947
+ )) : null), options ? /* @__PURE__ */ import_react16.default.createElement(
1939
1948
  SelectMenu_default,
1940
1949
  {
1941
1950
  options,