@vention/machine-ui 3.31.0 → 3.32.0

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 CHANGED
@@ -2265,7 +2265,8 @@ const machineUiTheme = createTheme({
2265
2265
  brand: COLORS.blue[600],
2266
2266
  negative: COLORS.red[600],
2267
2267
  warning: COLORS.amber[600],
2268
- positive: COLORS.green[600]
2268
+ positive: COLORS.green[600],
2269
+ info: COLORS.blue[600]
2269
2270
  },
2270
2271
  button: {
2271
2272
  primary: COLORS.blue[500],
@@ -7745,7 +7746,7 @@ const VentionSelect = props => {
7745
7746
  multiple: isMultiple,
7746
7747
  renderValue: selected => {
7747
7748
  var _a, _b;
7748
- if (!selected || Array.isArray(selected) && selected.length === 0) {
7749
+ if (selected === undefined || selected === null || selected === "" || Array.isArray(selected) && selected.length === 0) {
7749
7750
  return jsx(Typography, {
7750
7751
  variant: typographyVariants.text,
7751
7752
  className: classes.placeholder,
@@ -7823,7 +7824,8 @@ const useStyles$m = tss.withParams().create(({
7823
7824
  errorText,
7824
7825
  state
7825
7826
  }) => {
7826
- const textColor = getTextColor(theme, isDisabled, Boolean(value));
7827
+ const hasValue = Array.isArray(value) ? value.length > 0 : value !== undefined && value !== null && value !== "";
7828
+ const textColor = getTextColor(theme, isDisabled, hasValue);
7827
7829
  const height = getInputHeight(size, theme);
7828
7830
  const typographyVariant = getTypography(size, theme);
7829
7831
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vention/machine-ui",
3
- "version": "3.31.0",
3
+ "version": "3.32.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/VentionCo/machine-cloud.git"
@@ -102,6 +102,7 @@ declare module "@mui/material/styles" {
102
102
  negative: string;
103
103
  warning: string;
104
104
  positive: string;
105
+ info: string;
105
106
  }
106
107
  interface TypeBackground {
107
108
  default: string;