@mui/material 5.11.8 → 5.11.9

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/AppBar/AppBar.js CHANGED
@@ -25,7 +25,7 @@ const useUtilityClasses = ownerState => {
25
25
 
26
26
  // var2 is the fallback.
27
27
  // Ex. var1: 'var(--a)', var2: 'var(--b)'; return: 'var(--a, var(--b))'
28
- const joinVars = (var1, var2) => `${var1 == null ? void 0 : var1.replace(')', '')}, ${var2})`;
28
+ const joinVars = (var1, var2) => var1 ? `${var1 == null ? void 0 : var1.replace(')', '')}, ${var2})` : var2;
29
29
  const AppBarRoot = styled(Paper, {
30
30
  name: 'MuiAppBar',
31
31
  slot: 'Root',
@@ -178,6 +178,20 @@ const AutocompleteRoot = styled('div', {
178
178
  [`& .${inputBaseClasses.hiddenLabel}`]: {
179
179
  paddingTop: 8
180
180
  },
181
+ [`& .${filledInputClasses.root}.${inputBaseClasses.hiddenLabel}`]: {
182
+ paddingTop: 0,
183
+ paddingBottom: 0,
184
+ [`& .${autocompleteClasses.input}`]: {
185
+ paddingTop: 16,
186
+ paddingBottom: 17
187
+ }
188
+ },
189
+ [`& .${filledInputClasses.root}.${inputBaseClasses.hiddenLabel}.${inputBaseClasses.sizeSmall}`]: {
190
+ [`& .${autocompleteClasses.input}`]: {
191
+ paddingTop: 8,
192
+ paddingBottom: 9
193
+ }
194
+ },
181
195
  [`& .${autocompleteClasses.input}`]: _extends({
182
196
  flexGrow: 1,
183
197
  textOverflow: 'ellipsis',
package/CHANGELOG.md CHANGED
@@ -1,5 +1,78 @@
1
1
  # [Versions](https://mui.com/versions/)
2
2
 
3
+ ## 5.11.9
4
+
5
+ <!-- generated comparing v5.11.8..master -->
6
+
7
+ _Feb 14, 2023_
8
+
9
+ A big thanks to the 17 contributors who made this release possible. Here are some highlights ✨:
10
+
11
+ - 🐛 @rangoo94, @sai6855, and @michaldudak fixed a couple of bugs in the Autocomplete component (#36116, #35640, #36076, #36088)
12
+ - many other 🐛 bug fixes and 📚 documentation improvements
13
+
14
+ ### `@mui/material@5.11.9`
15
+
16
+ - [AppBar] Fix joinVars() not handling undefined (#36128) @donaldnevermore
17
+ - [Autocomplete] Fix tag removal regression (#36116) @michaldudak
18
+ - [Autocomplete] Correct padding of filled Autocomplete (#35640) @michaldudak
19
+ - [Grid][Stack] classNames prefixed with Mui (#36167) @sai6855
20
+
21
+ ### `@mui/styled-engine@5.11.9`
22
+
23
+ - [StyledEngineProvider] Fix issue with cache not being defined (#36162) @mnajdova
24
+
25
+ ### `@mui/joy@5.0.0-alpha.67`
26
+
27
+ - [Joy] Add order dashboard template (#36081) @siriwatknp
28
+ - [Joy] Remove classes prop from the components that have it (#36159) @hbjORbj
29
+ - [Joy] Miscellaneous fixes (#36163) @siriwatknp
30
+
31
+ ### `@mui/base@5.0.0-alpha.118`
32
+
33
+ - [base] Override the types of `slotProps` per slot (#35964) @hbjORbj
34
+ - [Select][base] Prevent unnecessary rerendering of Select options (#35946) @michaldudak
35
+ - [Select][base] Update the generated docs (#36183) @michaldudak
36
+ - [useAutocomplete] Pass only valid values for the getOptionLabel prop (#36088) @rangoo94
37
+ - [useAutocomplete] Fix `useAutocomplete` disabled prop not disabling the input (#36076) @sai6855
38
+ - [useInput] Add return value interface (#36036) @Shorifpatwary
39
+ - [UseTabPanel] Add explicit return type (#36053) @Shorifpatwary
40
+ - [useTabsList] Add explicit return type (#36048) @sai6855
41
+ - [Tab] Add explicit return type to useTab (#36046) @sai6855
42
+
43
+ ### `@mui/material-next@6.0.0-alpha.75`
44
+
45
+ - [Material You] Use `md` as a CSS var prefix (#36177) @siriwatknp
46
+
47
+ ### Docs
48
+
49
+ - [docs] Fix the prop type regression on the API pages (#36168) @mnajdova
50
+ - [docs] Fix virtualized table column resizing (#36066) @petyosi
51
+ - [docs] Fix react-spring demos (#36023) @oliviertassinari
52
+ - [docs] Fix classname mismatch on Joy docs (#36127) @siriwatknp
53
+ - [docs] Fix typo in the released version of @mui/styled-engine (#36121) @m4theushw
54
+ - [docs] Fix demos showing TypeScript instead of JavaScript (#35850) @mj12albert
55
+ - [docs] Update release instructions (#36113) @mj12albert
56
+ - [docs] Rename `v6-alpha` to `v6-next` in navigation (#36102) @LukasTy
57
+ - [docs] Revise Joy UI "Input" page (#35970) @LadyBluenotes
58
+ - [docs] Revise Joy UI "Typography" page (#35868) @LadyBluenotes
59
+
60
+ ### Examples
61
+
62
+ - [examples][vitejs] Load Roboto font (#35678) @oliv37
63
+
64
+ ### Core
65
+
66
+ - [blog] Fix the look and feel of the media description (#36069) @oliviertassinari
67
+ - [core] Add default preview url (#36118) @siriwatknp
68
+ - [core] Migrate all the internals exported by `tests/utils/index.js` to TypeScript (#35382) @flaviendelangle
69
+ - [core] Convert the waterfall module to an internal package (#35323) @michaldudak
70
+ - [website] Fix homepage MD theme demo (#36027) @oliviertassinari
71
+ - [website] Revise the Lead Designer role job ad (#35912) @danilo-leal
72
+ - [POC] Add deploy preview to PR body (#35995) @siriwatknp
73
+
74
+ All contributors of this release in alphabetical order: @danilo-leal, @donaldnevermore, @flaviendelangle, @hbjORbj, @LadyBluenotes, @LukasTy, @m4theushw, @michaldudak, @mj12albert, @mnajdova, @oliv37, @oliviertassinari, @petyosi, @rangoo94, @sai6855, @Shorifpatwary, @siriwatknp
75
+
3
76
  ## 5.11.8
4
77
 
5
78
  <!-- generated comparing v5.11.7..master -->
@@ -25,7 +98,7 @@ A big thanks to the 14 contributors who made this release possible. Here are som
25
98
 
26
99
  - &#8203;<!-- 05 -->[System] Fix nested grid v2 (#35994) @siriwatknp
27
100
 
28
- ### `@mui/styled-engine@5.11.1`
101
+ ### `@mui/styled-engine@5.11.8`
29
102
 
30
103
  - &#8203;<!-- 06 -->[styled-engine] Create cache only if `document` is available (#36001) @m4theushw
31
104
 
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/material v5.11.8
2
+ * @mui/material v5.11.9
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -23,7 +23,7 @@ var useUtilityClasses = function useUtilityClasses(ownerState) {
23
23
  // var2 is the fallback.
24
24
  // Ex. var1: 'var(--a)', var2: 'var(--b)'; return: 'var(--a, var(--b))'
25
25
  var joinVars = function joinVars(var1, var2) {
26
- return "".concat(var1 == null ? void 0 : var1.replace(')', ''), ", ").concat(var2, ")");
26
+ return var1 ? "".concat(var1 == null ? void 0 : var1.replace(')', ''), ", ").concat(var2, ")") : var2;
27
27
  };
28
28
  var AppBarRoot = styled(Paper, {
29
29
  name: 'MuiAppBar',
@@ -132,7 +132,16 @@ var AutocompleteRoot = styled('div', {
132
132
  padding: '2.5px 4px'
133
133
  })), _defineProperty(_extends3, "& .".concat(inputBaseClasses.hiddenLabel), {
134
134
  paddingTop: 8
135
- }), _defineProperty(_extends3, "& .".concat(autocompleteClasses.input), _extends({
135
+ }), _defineProperty(_extends3, "& .".concat(filledInputClasses.root, ".").concat(inputBaseClasses.hiddenLabel), _defineProperty({
136
+ paddingTop: 0,
137
+ paddingBottom: 0
138
+ }, "& .".concat(autocompleteClasses.input), {
139
+ paddingTop: 16,
140
+ paddingBottom: 17
141
+ })), _defineProperty(_extends3, "& .".concat(filledInputClasses.root, ".").concat(inputBaseClasses.hiddenLabel, ".").concat(inputBaseClasses.sizeSmall), _defineProperty({}, "& .".concat(autocompleteClasses.input), {
142
+ paddingTop: 8,
143
+ paddingBottom: 9
144
+ })), _defineProperty(_extends3, "& .".concat(autocompleteClasses.input), _extends({
136
145
  flexGrow: 1,
137
146
  textOverflow: 'ellipsis',
138
147
  opacity: 0
package/legacy/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/material v5.11.8
2
+ * @mui/material v5.11.9
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -25,7 +25,7 @@ const useUtilityClasses = ownerState => {
25
25
 
26
26
  // var2 is the fallback.
27
27
  // Ex. var1: 'var(--a)', var2: 'var(--b)'; return: 'var(--a, var(--b))'
28
- const joinVars = (var1, var2) => `${var1?.replace(')', '')}, ${var2})`;
28
+ const joinVars = (var1, var2) => var1 ? `${var1?.replace(')', '')}, ${var2})` : var2;
29
29
  const AppBarRoot = styled(Paper, {
30
30
  name: 'MuiAppBar',
31
31
  slot: 'Root',
@@ -178,6 +178,20 @@ const AutocompleteRoot = styled('div', {
178
178
  [`& .${inputBaseClasses.hiddenLabel}`]: {
179
179
  paddingTop: 8
180
180
  },
181
+ [`& .${filledInputClasses.root}.${inputBaseClasses.hiddenLabel}`]: {
182
+ paddingTop: 0,
183
+ paddingBottom: 0,
184
+ [`& .${autocompleteClasses.input}`]: {
185
+ paddingTop: 16,
186
+ paddingBottom: 17
187
+ }
188
+ },
189
+ [`& .${filledInputClasses.root}.${inputBaseClasses.hiddenLabel}.${inputBaseClasses.sizeSmall}`]: {
190
+ [`& .${autocompleteClasses.input}`]: {
191
+ paddingTop: 8,
192
+ paddingBottom: 9
193
+ }
194
+ },
181
195
  [`& .${autocompleteClasses.input}`]: _extends({
182
196
  flexGrow: 1,
183
197
  textOverflow: 'ellipsis',
package/modern/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/material v5.11.8
2
+ * @mui/material v5.11.9
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -34,7 +34,7 @@ const useUtilityClasses = ownerState => {
34
34
 
35
35
  // var2 is the fallback.
36
36
  // Ex. var1: 'var(--a)', var2: 'var(--b)'; return: 'var(--a, var(--b))'
37
- const joinVars = (var1, var2) => `${var1 == null ? void 0 : var1.replace(')', '')}, ${var2})`;
37
+ const joinVars = (var1, var2) => var1 ? `${var1 == null ? void 0 : var1.replace(')', '')}, ${var2})` : var2;
38
38
  const AppBarRoot = (0, _styled.default)(_Paper.default, {
39
39
  name: 'MuiAppBar',
40
40
  slot: 'Root',
@@ -192,6 +192,20 @@ const AutocompleteRoot = (0, _styled.default)('div', {
192
192
  [`& .${_inputBaseClasses.default.hiddenLabel}`]: {
193
193
  paddingTop: 8
194
194
  },
195
+ [`& .${_filledInputClasses.default.root}.${_inputBaseClasses.default.hiddenLabel}`]: {
196
+ paddingTop: 0,
197
+ paddingBottom: 0,
198
+ [`& .${_autocompleteClasses.default.input}`]: {
199
+ paddingTop: 16,
200
+ paddingBottom: 17
201
+ }
202
+ },
203
+ [`& .${_filledInputClasses.default.root}.${_inputBaseClasses.default.hiddenLabel}.${_inputBaseClasses.default.sizeSmall}`]: {
204
+ [`& .${_autocompleteClasses.default.input}`]: {
205
+ paddingTop: 8,
206
+ paddingBottom: 9
207
+ }
208
+ },
195
209
  [`& .${_autocompleteClasses.default.input}`]: (0, _extends2.default)({
196
210
  flexGrow: 1,
197
211
  textOverflow: 'ellipsis',
package/node/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/material v5.11.8
2
+ * @mui/material v5.11.9
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.11.8",
3
+ "version": "5.11.9",
4
4
  "private": false,
5
5
  "author": "MUI Team",
6
6
  "description": "React components that implement Google's Material Design.",
@@ -45,12 +45,12 @@
45
45
  }
46
46
  },
47
47
  "dependencies": {
48
- "@babel/runtime": "^7.20.7",
49
- "@mui/base": "5.0.0-alpha.117",
50
- "@mui/core-downloads-tracker": "^5.11.8",
51
- "@mui/system": "^5.11.8",
48
+ "@babel/runtime": "^7.20.13",
49
+ "@mui/base": "5.0.0-alpha.118",
50
+ "@mui/core-downloads-tracker": "^5.11.9",
51
+ "@mui/system": "^5.11.9",
52
52
  "@mui/types": "^7.2.3",
53
- "@mui/utils": "^5.11.7",
53
+ "@mui/utils": "^5.11.9",
54
54
  "@types/react-transition-group": "^4.4.5",
55
55
  "clsx": "^1.2.1",
56
56
  "csstype": "^3.1.1",
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/material v5.11.8
2
+ * @mui/material v5.11.9
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -5791,7 +5791,7 @@
5791
5791
  injectFirst,
5792
5792
  children
5793
5793
  } = props;
5794
- return injectFirst ? /*#__PURE__*/jsxRuntime_1(CacheProvider, {
5794
+ return injectFirst && cache ? /*#__PURE__*/jsxRuntime_1(CacheProvider, {
5795
5795
  value: cache,
5796
5796
  children: children
5797
5797
  }) : children;
@@ -10819,8 +10819,12 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
10819
10819
  }
10820
10820
  });
10821
10821
  const checkHighlightedOptionExists = () => {
10822
- var _previousProps$value;
10823
- if (highlightedIndexRef.current !== -1 && previousProps.filteredOptions && previousProps.filteredOptions.length !== filteredOptions.length && (multiple ? previousProps.value.every((val, i) => getOptionLabel(value[i]) === getOptionLabel(val)) : getOptionLabel((_previousProps$value = previousProps.value) != null ? _previousProps$value : '') === getOptionLabel(value != null ? value : ''))) {
10822
+ const isSameValue = (value1, value2) => {
10823
+ const label1 = value1 ? getOptionLabel(value1) : '';
10824
+ const label2 = value2 ? getOptionLabel(value2) : '';
10825
+ return label1 === label2;
10826
+ };
10827
+ if (highlightedIndexRef.current !== -1 && previousProps.filteredOptions && previousProps.filteredOptions.length !== filteredOptions.length && (multiple ? value.length === previousProps.value.length && previousProps.value.every((val, i) => getOptionLabel(value[i]) === getOptionLabel(val)) : isSameValue(previousProps.value, value))) {
10824
10828
  const previousHighlightedOption = previousProps.filteredOptions[highlightedIndexRef.current];
10825
10829
  if (previousHighlightedOption) {
10826
10830
  const previousHighlightedOptionExists = filteredOptions.some(option => {
@@ -11340,7 +11344,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
11340
11344
  ref: inputRef,
11341
11345
  autoCapitalize: 'none',
11342
11346
  spellCheck: 'false',
11343
- role: 'combobox'
11347
+ role: 'combobox',
11348
+ disabled: disabledProp
11344
11349
  }),
11345
11350
  getClearProps: () => ({
11346
11351
  tabIndex: -1,
@@ -19974,7 +19979,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
19974
19979
 
19975
19980
  // var2 is the fallback.
19976
19981
  // Ex. var1: 'var(--a)', var2: 'var(--b)'; return: 'var(--a, var(--b))'
19977
- const joinVars = (var1, var2) => `${var1 == null ? void 0 : var1.replace(')', '')}, ${var2})`;
19982
+ const joinVars = (var1, var2) => var1 ? `${var1 == null ? void 0 : var1.replace(')', '')}, ${var2})` : var2;
19978
19983
  const AppBarRoot = styled$1(Paper$1, {
19979
19984
  name: 'MuiAppBar',
19980
19985
  slot: 'Root',
@@ -21877,6 +21882,20 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
21877
21882
  [`& .${inputBaseClasses$1.hiddenLabel}`]: {
21878
21883
  paddingTop: 8
21879
21884
  },
21885
+ [`& .${filledInputClasses$1.root}.${inputBaseClasses$1.hiddenLabel}`]: {
21886
+ paddingTop: 0,
21887
+ paddingBottom: 0,
21888
+ [`& .${autocompleteClasses$1.input}`]: {
21889
+ paddingTop: 16,
21890
+ paddingBottom: 17
21891
+ }
21892
+ },
21893
+ [`& .${filledInputClasses$1.root}.${inputBaseClasses$1.hiddenLabel}.${inputBaseClasses$1.sizeSmall}`]: {
21894
+ [`& .${autocompleteClasses$1.input}`]: {
21895
+ paddingTop: 8,
21896
+ paddingBottom: 9
21897
+ }
21898
+ },
21880
21899
  [`& .${autocompleteClasses$1.input}`]: _extends({
21881
21900
  flexGrow: 1,
21882
21901
  textOverflow: 'ellipsis',