@vention/machine-ui 5.24.6 → 5.25.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
@@ -10345,6 +10345,7 @@ const VentionSelect = props => {
10345
10345
  children: menuItems.map((item, index) => isMenuItem(item) ? jsx(MenuItem, {
10346
10346
  value: item.value,
10347
10347
  className: classes.menuItem,
10348
+ disabled: item.isDisabled,
10348
10349
  disableRipple: true,
10349
10350
  children: jsxs(MenuItemContent, {
10350
10351
  size: size,
@@ -10467,6 +10468,10 @@ const useStyles$n = tss.withParams().create(({
10467
10468
  },
10468
10469
  "&:hover": {
10469
10470
  backgroundColor: theme.palette.background.surface1hover
10471
+ },
10472
+ "&.Mui-disabled": {
10473
+ color: theme.palette.buttonText.primaryDisabled,
10474
+ opacity: 1
10470
10475
  }
10471
10476
  },
10472
10477
  rootInputLabel: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vention/machine-ui",
3
- "version": "5.24.6",
3
+ "version": "5.25.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/VentionCo/machine-cloud.git"
@@ -10,6 +10,7 @@ export type VentionSelectMenuItem<T> = {
10
10
  displayNode?: ReactNode;
11
11
  icon?: IconType | DuotoneIconType;
12
12
  helperText?: string;
13
+ isDisabled?: boolean;
13
14
  };
14
15
  export type VentionSelectDivider = {
15
16
  type: "divider";