@hoddy-ui/next 2.5.92 → 2.5.93

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
@@ -1590,7 +1590,7 @@ var TextFieldBase = React15.forwardRef(
1590
1590
  options,
1591
1591
  multiline,
1592
1592
  selectMenuProps,
1593
- openLabelWithPlaceholder = true,
1593
+ labelAlwaysOpen,
1594
1594
  ...props
1595
1595
  }, ref) => {
1596
1596
  const colors2 = useColors();
@@ -1609,7 +1609,7 @@ var TextFieldBase = React15.forwardRef(
1609
1609
  };
1610
1610
  const isFloating = labelVariant === "floating";
1611
1611
  const hasPlaceholder = placeholder != null && String(placeholder).trim() !== "";
1612
- const labelOpen = focused || value || isFloating && hasPlaceholder && openLabelWithPlaceholder;
1612
+ const labelOpen = labelAlwaysOpen || focused || value || isFloating && hasPlaceholder;
1613
1613
  const baseHeight = moderateScale2(
1614
1614
  multiline ? 50 + (props.numberOfLines || 1) * 18 : 50
1615
1615
  );
@@ -1840,7 +1840,7 @@ var TextFieldBase = React15.forwardRef(
1840
1840
  keyboardType,
1841
1841
  placeholderTextColor: colors2.textSecondary.light,
1842
1842
  editable: !disabled,
1843
- placeholder,
1843
+ placeholder: labelOpen ? placeholder : "",
1844
1844
  selectTextOnFocus: !disabled,
1845
1845
  onSubmitEditing,
1846
1846
  multiline,