@mui/material 5.15.20 → 5.15.21

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.
@@ -249,7 +249,7 @@ export interface AutocompleteProps<
249
249
  * @returns {ReactNode}
250
250
  */
251
251
  renderOption?: (
252
- props: React.HTMLAttributes<HTMLLIElement>,
252
+ props: React.HTMLAttributes<HTMLLIElement> & { key: any },
253
253
  option: Value,
254
254
  state: AutocompleteRenderOptionState,
255
255
  ownerState: AutocompleteOwnerState<Value, Multiple, DisableClearable, FreeSolo, ChipComponent>,
package/CHANGELOG.md CHANGED
@@ -1,5 +1,35 @@
1
1
  # [Versions](https://mui.com/versions/)
2
2
 
3
+ ## v5.15.21
4
+
5
+ <!-- generated comparing v5.15.20..master -->
6
+
7
+ _Jun 28, 2024_
8
+
9
+ A big thanks to the 7 contributors who made this release possible.
10
+
11
+ ### `@mui/material@5.15.21`
12
+
13
+ - [Autocomplete] Fix renderOption props type (@DiegoAndai) (#42709) @DiegoAndai
14
+ - [Stepper] Generate class for `nonLinear` prop (@alexismo) (#42677) @alexismo
15
+
16
+ ### Docs
17
+
18
+ - Use new email for sponsoring @oliviertassinari
19
+ - Fix 301 links (@alexfauquette) (#42700) @alexfauquette
20
+ - [material-ui][Select] Fix the `SelectAutoWidth` demo menu item value (@Danielkhakbaz) (#42696) @Danielkhakbaz
21
+ - [material-ui][Autocomplete] Fix more React 18.3 key spread warnings in demos (#42766) @wbt
22
+ - [material-ui] Fix sign in side image (#42708) @zanivan
23
+ - [website] Add Ale to team (#42769) @alelthomas
24
+
25
+ ### Core
26
+
27
+ - [core] Cherry pick pnpm updates (#42763) @DiegoAndai
28
+ - [website] Add Armin to the team members (@arminmeh) (#42681) @arminmeh
29
+ - [website] Open Staff Engineer role for Pigment CSS (@mnajdova) (#42669) @mnajdova
30
+
31
+ All contributors of this release in alphabetical order: @alexfauquette, @alexismo, @arminmeh, @Danielkhakbaz, @DiegoAndai, @mnajdova, @oliviertassinari
32
+
3
33
  ## v5.15.20
4
34
 
5
35
  <!-- generated comparing v5.15.19..master -->
@@ -17,11 +17,12 @@ import { jsx as _jsx } from "react/jsx-runtime";
17
17
  const useUtilityClasses = ownerState => {
18
18
  const {
19
19
  orientation,
20
+ nonLinear,
20
21
  alternativeLabel,
21
22
  classes
22
23
  } = ownerState;
23
24
  const slots = {
24
- root: ['root', orientation, alternativeLabel && 'alternativeLabel']
25
+ root: ['root', orientation, nonLinear && 'nonLinear', alternativeLabel && 'alternativeLabel']
25
26
  };
26
27
  return composeClasses(slots, getStepperUtilityClass, classes);
27
28
  };
@@ -32,7 +33,7 @@ const StepperRoot = styled('div', {
32
33
  const {
33
34
  ownerState
34
35
  } = props;
35
- return [styles.root, styles[ownerState.orientation], ownerState.alternativeLabel && styles.alternativeLabel];
36
+ return [styles.root, styles[ownerState.orientation], ownerState.alternativeLabel && styles.alternativeLabel, ownerState.nonLinear && styles.nonLinear];
36
37
  }
37
38
  })(({
38
39
  ownerState
@@ -64,6 +65,7 @@ const Stepper = /*#__PURE__*/React.forwardRef(function Stepper(inProps, ref) {
64
65
  } = props,
65
66
  other = _objectWithoutPropertiesLoose(props, _excluded);
66
67
  const ownerState = _extends({}, props, {
68
+ nonLinear,
67
69
  alternativeLabel,
68
70
  orientation,
69
71
  component
@@ -5,6 +5,8 @@ export interface StepperClasses {
5
5
  horizontal: string;
6
6
  /** Styles applied to the root element if `orientation="vertical"`. */
7
7
  vertical: string;
8
+ /** Styles applied to the root element if `nonLinear={true}`. */
9
+ nonLinear: string;
8
10
  /** Styles applied to the root element if `alternativeLabel={true}`. */
9
11
  alternativeLabel: string;
10
12
  }
@@ -3,5 +3,5 @@ import generateUtilityClass from '@mui/utils/generateUtilityClass';
3
3
  export function getStepperUtilityClass(slot) {
4
4
  return generateUtilityClass('MuiStepper', slot);
5
5
  }
6
- const stepperClasses = generateUtilityClasses('MuiStepper', ['root', 'horizontal', 'vertical', 'alternativeLabel']);
6
+ const stepperClasses = generateUtilityClasses('MuiStepper', ['root', 'horizontal', 'vertical', 'nonLinear', 'alternativeLabel']);
7
7
  export default stepperClasses;
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/material v5.15.20
2
+ * @mui/material v5.15.21
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -15,10 +15,11 @@ import StepperContext from './StepperContext';
15
15
  import { jsx as _jsx } from "react/jsx-runtime";
16
16
  var useUtilityClasses = function useUtilityClasses(ownerState) {
17
17
  var orientation = ownerState.orientation,
18
+ nonLinear = ownerState.nonLinear,
18
19
  alternativeLabel = ownerState.alternativeLabel,
19
20
  classes = ownerState.classes;
20
21
  var slots = {
21
- root: ['root', orientation, alternativeLabel && 'alternativeLabel']
22
+ root: ['root', orientation, nonLinear && 'nonLinear', alternativeLabel && 'alternativeLabel']
22
23
  };
23
24
  return composeClasses(slots, getStepperUtilityClass, classes);
24
25
  };
@@ -27,7 +28,7 @@ var StepperRoot = styled('div', {
27
28
  slot: 'Root',
28
29
  overridesResolver: function overridesResolver(props, styles) {
29
30
  var ownerState = props.ownerState;
30
- return [styles.root, styles[ownerState.orientation], ownerState.alternativeLabel && styles.alternativeLabel];
31
+ return [styles.root, styles[ownerState.orientation], ownerState.alternativeLabel && styles.alternativeLabel, ownerState.nonLinear && styles.nonLinear];
31
32
  }
32
33
  })(function (_ref) {
33
34
  var ownerState = _ref.ownerState;
@@ -64,6 +65,7 @@ var Stepper = /*#__PURE__*/React.forwardRef(function Stepper(inProps, ref) {
64
65
  orientation = _props$orientation === void 0 ? 'horizontal' : _props$orientation,
65
66
  other = _objectWithoutProperties(props, ["activeStep", "alternativeLabel", "children", "className", "component", "connector", "nonLinear", "orientation"]);
66
67
  var ownerState = _extends({}, props, {
68
+ nonLinear: nonLinear,
67
69
  alternativeLabel: alternativeLabel,
68
70
  orientation: orientation,
69
71
  component: component
@@ -3,5 +3,5 @@ import generateUtilityClass from '@mui/utils/generateUtilityClass';
3
3
  export function getStepperUtilityClass(slot) {
4
4
  return generateUtilityClass('MuiStepper', slot);
5
5
  }
6
- var stepperClasses = generateUtilityClasses('MuiStepper', ['root', 'horizontal', 'vertical', 'alternativeLabel']);
6
+ var stepperClasses = generateUtilityClasses('MuiStepper', ['root', 'horizontal', 'vertical', 'nonLinear', 'alternativeLabel']);
7
7
  export default stepperClasses;
package/legacy/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/material v5.15.20
2
+ * @mui/material v5.15.21
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -17,11 +17,12 @@ import { jsx as _jsx } from "react/jsx-runtime";
17
17
  const useUtilityClasses = ownerState => {
18
18
  const {
19
19
  orientation,
20
+ nonLinear,
20
21
  alternativeLabel,
21
22
  classes
22
23
  } = ownerState;
23
24
  const slots = {
24
- root: ['root', orientation, alternativeLabel && 'alternativeLabel']
25
+ root: ['root', orientation, nonLinear && 'nonLinear', alternativeLabel && 'alternativeLabel']
25
26
  };
26
27
  return composeClasses(slots, getStepperUtilityClass, classes);
27
28
  };
@@ -32,7 +33,7 @@ const StepperRoot = styled('div', {
32
33
  const {
33
34
  ownerState
34
35
  } = props;
35
- return [styles.root, styles[ownerState.orientation], ownerState.alternativeLabel && styles.alternativeLabel];
36
+ return [styles.root, styles[ownerState.orientation], ownerState.alternativeLabel && styles.alternativeLabel, ownerState.nonLinear && styles.nonLinear];
36
37
  }
37
38
  })(({
38
39
  ownerState
@@ -64,6 +65,7 @@ const Stepper = /*#__PURE__*/React.forwardRef(function Stepper(inProps, ref) {
64
65
  } = props,
65
66
  other = _objectWithoutPropertiesLoose(props, _excluded);
66
67
  const ownerState = _extends({}, props, {
68
+ nonLinear,
67
69
  alternativeLabel,
68
70
  orientation,
69
71
  component
@@ -3,5 +3,5 @@ import generateUtilityClass from '@mui/utils/generateUtilityClass';
3
3
  export function getStepperUtilityClass(slot) {
4
4
  return generateUtilityClass('MuiStepper', slot);
5
5
  }
6
- const stepperClasses = generateUtilityClasses('MuiStepper', ['root', 'horizontal', 'vertical', 'alternativeLabel']);
6
+ const stepperClasses = generateUtilityClasses('MuiStepper', ['root', 'horizontal', 'vertical', 'nonLinear', 'alternativeLabel']);
7
7
  export default stepperClasses;
package/modern/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/material v5.15.20
2
+ * @mui/material v5.15.21
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -25,11 +25,12 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
25
25
  const useUtilityClasses = ownerState => {
26
26
  const {
27
27
  orientation,
28
+ nonLinear,
28
29
  alternativeLabel,
29
30
  classes
30
31
  } = ownerState;
31
32
  const slots = {
32
- root: ['root', orientation, alternativeLabel && 'alternativeLabel']
33
+ root: ['root', orientation, nonLinear && 'nonLinear', alternativeLabel && 'alternativeLabel']
33
34
  };
34
35
  return (0, _composeClasses.default)(slots, _stepperClasses.getStepperUtilityClass, classes);
35
36
  };
@@ -40,7 +41,7 @@ const StepperRoot = (0, _styled.default)('div', {
40
41
  const {
41
42
  ownerState
42
43
  } = props;
43
- return [styles.root, styles[ownerState.orientation], ownerState.alternativeLabel && styles.alternativeLabel];
44
+ return [styles.root, styles[ownerState.orientation], ownerState.alternativeLabel && styles.alternativeLabel, ownerState.nonLinear && styles.nonLinear];
44
45
  }
45
46
  })(({
46
47
  ownerState
@@ -72,6 +73,7 @@ const Stepper = /*#__PURE__*/React.forwardRef(function Stepper(inProps, ref) {
72
73
  } = props,
73
74
  other = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded);
74
75
  const ownerState = (0, _extends2.default)({}, props, {
76
+ nonLinear,
75
77
  alternativeLabel,
76
78
  orientation,
77
79
  component
@@ -11,5 +11,5 @@ var _generateUtilityClass = _interopRequireDefault(require("@mui/utils/generateU
11
11
  function getStepperUtilityClass(slot) {
12
12
  return (0, _generateUtilityClass.default)('MuiStepper', slot);
13
13
  }
14
- const stepperClasses = (0, _generateUtilityClasses.default)('MuiStepper', ['root', 'horizontal', 'vertical', 'alternativeLabel']);
14
+ const stepperClasses = (0, _generateUtilityClasses.default)('MuiStepper', ['root', 'horizontal', 'vertical', 'nonLinear', 'alternativeLabel']);
15
15
  var _default = exports.default = stepperClasses;
package/node/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/material v5.15.20
2
+ * @mui/material v5.15.21
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/material",
3
- "version": "5.15.20",
3
+ "version": "5.15.21",
4
4
  "private": false,
5
5
  "author": "MUI Team",
6
6
  "description": "Material UI is an open-source React component library that implements Google's Material Design. It's comprehensive and can be used in production out of the box.",
@@ -34,11 +34,11 @@
34
34
  "prop-types": "^15.8.1",
35
35
  "react-is": "^18.2.0",
36
36
  "react-transition-group": "^4.4.5",
37
- "@mui/system": "^5.15.20",
37
+ "@mui/core-downloads-tracker": "^5.15.21",
38
38
  "@mui/types": "^7.2.14",
39
- "@mui/utils": "^5.15.20",
40
- "@mui/core-downloads-tracker": "^5.15.20",
41
- "@mui/base": "5.0.0-beta.40"
39
+ "@mui/system": "^5.15.20",
40
+ "@mui/base": "5.0.0-beta.40",
41
+ "@mui/utils": "^5.15.20"
42
42
  },
43
43
  "peerDependencies": {
44
44
  "@emotion/react": "^11.5.0",
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/material v5.15.20
2
+ * @mui/material v5.15.21
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -45684,15 +45684,16 @@
45684
45684
  function getStepperUtilityClass(slot) {
45685
45685
  return generateUtilityClass$1('MuiStepper', slot);
45686
45686
  }
45687
- var stepperClasses = generateUtilityClasses$1('MuiStepper', ['root', 'horizontal', 'vertical', 'alternativeLabel']);
45687
+ var stepperClasses = generateUtilityClasses$1('MuiStepper', ['root', 'horizontal', 'vertical', 'nonLinear', 'alternativeLabel']);
45688
45688
  var stepperClasses$1 = stepperClasses;
45689
45689
 
45690
45690
  var useUtilityClasses$h = function useUtilityClasses(ownerState) {
45691
45691
  var orientation = ownerState.orientation,
45692
+ nonLinear = ownerState.nonLinear,
45692
45693
  alternativeLabel = ownerState.alternativeLabel,
45693
45694
  classes = ownerState.classes;
45694
45695
  var slots = {
45695
- root: ['root', orientation, alternativeLabel && 'alternativeLabel']
45696
+ root: ['root', orientation, nonLinear && 'nonLinear', alternativeLabel && 'alternativeLabel']
45696
45697
  };
45697
45698
  return composeClasses(slots, getStepperUtilityClass, classes);
45698
45699
  };
@@ -45701,7 +45702,7 @@
45701
45702
  slot: 'Root',
45702
45703
  overridesResolver: function overridesResolver(props, styles) {
45703
45704
  var ownerState = props.ownerState;
45704
- return [styles.root, styles[ownerState.orientation], ownerState.alternativeLabel && styles.alternativeLabel];
45705
+ return [styles.root, styles[ownerState.orientation], ownerState.alternativeLabel && styles.alternativeLabel, ownerState.nonLinear && styles.nonLinear];
45705
45706
  }
45706
45707
  })(function (_ref) {
45707
45708
  var ownerState = _ref.ownerState;
@@ -45738,6 +45739,7 @@
45738
45739
  orientation = _props$orientation === void 0 ? 'horizontal' : _props$orientation,
45739
45740
  other = _objectWithoutProperties(props, ["activeStep", "alternativeLabel", "children", "className", "component", "connector", "nonLinear", "orientation"]);
45740
45741
  var ownerState = _extends({}, props, {
45742
+ nonLinear: nonLinear,
45741
45743
  alternativeLabel: alternativeLabel,
45742
45744
  orientation: orientation,
45743
45745
  component: component