@hoddy-ui/next 2.5.92 → 2.5.94
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.d.mts +1 -2
- package/dist/index.d.ts +1 -2
- package/dist/index.js +3 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1590,7 +1590,7 @@ var TextFieldBase = React15.forwardRef(
|
|
|
1590
1590
|
options,
|
|
1591
1591
|
multiline,
|
|
1592
1592
|
selectMenuProps,
|
|
1593
|
-
|
|
1593
|
+
labelAlwaysOpen,
|
|
1594
1594
|
...props
|
|
1595
1595
|
}, ref) => {
|
|
1596
1596
|
const colors2 = useColors();
|
|
@@ -1608,8 +1608,7 @@ var TextFieldBase = React15.forwardRef(
|
|
|
1608
1608
|
}
|
|
1609
1609
|
};
|
|
1610
1610
|
const isFloating = labelVariant === "floating";
|
|
1611
|
-
const
|
|
1612
|
-
const labelOpen = focused || value || isFloating && hasPlaceholder && openLabelWithPlaceholder;
|
|
1611
|
+
const labelOpen = labelAlwaysOpen || focused || value;
|
|
1613
1612
|
const baseHeight = moderateScale2(
|
|
1614
1613
|
multiline ? 50 + (props.numberOfLines || 1) * 18 : 50
|
|
1615
1614
|
);
|
|
@@ -1840,7 +1839,7 @@ var TextFieldBase = React15.forwardRef(
|
|
|
1840
1839
|
keyboardType,
|
|
1841
1840
|
placeholderTextColor: colors2.textSecondary.light,
|
|
1842
1841
|
editable: !disabled,
|
|
1843
|
-
placeholder,
|
|
1842
|
+
placeholder: labelOpen ? placeholder : "",
|
|
1844
1843
|
selectTextOnFocus: !disabled,
|
|
1845
1844
|
onSubmitEditing,
|
|
1846
1845
|
multiline,
|