@vention/machine-ui 3.31.0 → 3.31.1
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/index.esm.js +3 -2
- package/package.json +1 -1
package/index.esm.js
CHANGED
|
@@ -7745,7 +7745,7 @@ const VentionSelect = props => {
|
|
|
7745
7745
|
multiple: isMultiple,
|
|
7746
7746
|
renderValue: selected => {
|
|
7747
7747
|
var _a, _b;
|
|
7748
|
-
if (
|
|
7748
|
+
if (selected === undefined || selected === null || selected === "" || Array.isArray(selected) && selected.length === 0) {
|
|
7749
7749
|
return jsx(Typography, {
|
|
7750
7750
|
variant: typographyVariants.text,
|
|
7751
7751
|
className: classes.placeholder,
|
|
@@ -7823,7 +7823,8 @@ const useStyles$m = tss.withParams().create(({
|
|
|
7823
7823
|
errorText,
|
|
7824
7824
|
state
|
|
7825
7825
|
}) => {
|
|
7826
|
-
const
|
|
7826
|
+
const hasValue = Array.isArray(value) ? value.length > 0 : value !== undefined && value !== null && value !== "";
|
|
7827
|
+
const textColor = getTextColor(theme, isDisabled, hasValue);
|
|
7827
7828
|
const height = getInputHeight(size, theme);
|
|
7828
7829
|
const typographyVariant = getTypography(size, theme);
|
|
7829
7830
|
return {
|