Skip to content

Commit

Permalink
v5.11.12 (#36443)
Browse files Browse the repository at this point in the history
  • Loading branch information
hbjORbj authored Mar 6, 2023
1 parent d3ce75a commit b76b8f1
Show file tree
Hide file tree
Showing 17 changed files with 203 additions and 45 deletions.
144 changes: 144 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,149 @@
# [Versions](https://mui.com/versions/)

## 5.11.12

<!-- generated comparing v5.11.11..master -->

_Mar 6, 2023_

A big thanks to the 17 contributors who made this release possible. Here are some highlights ✨:

- @michaldudak added the multiselect functionality to SelectUnstyled (#36274)
- @mnajdova updated `extendTheme` so that it can generate CSS variables with default values. This means that the `CssVarsProvider` is no longer required for Joy UI when using the default theme (#35739)
- other 🐛 bug fixes and 📚 documentation improvements.

### `@mui/material@5.11.12`

- &#8203;<!-- 30 -->[Autocomplete] Fix list scrolls to the top when new data is added on touch devices (#36231) @SaidMarar
- &#8203;<!-- 29 -->[Autocomplete] Add `Mui-expanded` class (#33312) @Osman-Sodefa
- &#8203;<!-- 24 -->[Dialog] Use the `id` prop provided to the `DialogTitle` component (#36353) @Kundan28
- &#8203;<!-- 07 -->[Menu] Fix Menu Paper styles overriding in the theme (#36316) @Paatus

### `@mui/lab@5.0.0-alpha.122`

- &#8203;<!-- 05 -->[TreeView] Fix Tree View inside shadow root crashes (#36225) @NoFr1ends

### `@mui/system@5.11.12`

#### Breaking changes

- &#8203;<!-- 26 -->[core] Generate vars in `extendTheme` (#35739) @mnajdova

The `shouldSkipGeneratingVar` prop was moved from the `createCssVarsProvider`'s option to the `theme`. If the default theme does not use `extendTheme` from Material UI or Joy UI, it needs to be wrapped inside `unstable_createCssVarsTheme` - a util exported from the MUI System. Below is an example of how the migration should look like:

```diff
import {
unstable_createCssVarsProvider as createCssVarsProvider,
+ unstable_createCssVarsTheme as createCssVarsTheme,
} from '@mui/system';

const { CssVarsProvider } = createCssVarsProvider({
- theme: {
+ theme: createCssVarsTheme({
colorSchemes: {
light: {
typography: {
htmlFontSize: '16px',
h1: {
fontSize: '1rem',
fontWeight: 500,
},
},
},
},
+ shouldSkipGeneratingVar: (keys) => keys[0] === 'typography' && keys[1] === 'h1',
- },
+ }),
defaultColorScheme: 'light',
- shouldSkipGeneratingVar: (keys) => keys[0] === 'typography' && keys[1] === 'h1',
});
```

Or you can define it directly in the theme prop:

```diff
<CssVarsProvider
+ theme={createCssVarsProvider({
+ // other theme keys
+ shouldSkipGeneratingVar: (keys) => keys[0] === 'typography' && keys[1] === 'h1'
+ })} />
```

This breaking change **only** affects experimental APIs

### `@mui/base@5.0.0-alpha.120`

#### Breaking changes

- &#8203;<!-- 27 -->[Select][base] Add the multiselect functionality to SelectUnstyled (#36274) @michaldudak

The MultiSelectUnstyled was removed. The `SelectUnstyled` component with the `multiple` prop should be used instead. Additionally, the SelectUnstyledProps received a second generic parameter: `Multiple extends boolean`. If you deal with strictly single- or multi-select components, you can hard-code this parameter to `false` or `true`, respectively. Below is an example of how the migration should look like:

```diff
-import MultiSelectUnstyled from '@mui/base/MultiSelectUnstyled';
+import SelectUnstyled from '@mui/base/SelectUnstyled';

export default App() {
-return <MultiSelectUnstyled />
+return <SelectUnstyled multiple />
}
```

#### Changes

- &#8203;<!-- 34 -->[useSnackBar] Add explicit return type (#36052) @sai6855
- &#8203;<!-- 04 -->[useMenu] Fix `import type` syntax (#36411) @ZeeshanTamboli
- &#8203;<!-- 03 -->[useSwitch] Add explicit return type (#36050) @sai6855

### `@mui/joy@5.0.0-alpha.70`

#### Breaking changes

- &#8203;<!-- 09 -->[Joy] Change CSS variables naming for components (#36282) @hbjORbj

Joy UI has new naming standards of the CSS variables for its components. Below is an example of how the migration should look like:

```diff
-<List sx={{ py: 'var(--List-divider-gap)' }}>
+<List sx={{ py: 'var(--ListDivider-gap)' }}>
-<Switch sx={{ '--Switch-track-width': '40px' }}>
+<Switch sx={{ '--Switch-trackWidth': '40px' }}>
```

#### Changes

- &#8203;<!-- 28 -->[Autocomplete][joy] Add disabled class to the popup indicator (#36397) @hbjORbj
- &#8203;<!-- 08 -->[Joy] Fix broken loading button in Safari (#36298) @Kuba429

### Docs

- &#8203;<!-- 33 -->[docs][joy] Clarify when `CssVarsProvider` is required (#36410) @mnajdova
- &#8203;<!-- 32 -->MUI X v6 release announcement (#36398) @joserodolfofreitas
- &#8203;<!-- 23 -->[docs] Add instructions for deploying docs without a release (#36301) @cherniavskii
- &#8203;<!-- 22 -->[docs] Fix 301 redirections on the docs @oliviertassinari
- &#8203;<!-- 21 -->[docs] Update MUI X banner to reflect stable release (#36354) @MBilalShafi
- &#8203;<!-- 20 -->[docs] Clarify the future plan for integrating MUI Base in Material UI (#36365) @mnajdova
- &#8203;<!-- 19 -->[docs] Improve visual look of loose lists (#36190) @oliviertassinari
- &#8203;<!-- 18 -->[docs] Fix @mui/styles example links (#36331) @oliviertassinari
- &#8203;<!-- 17 -->[docs][joy] Build TS versions for List component demos (#36382) @sai6855
- &#8203;<!-- 16 -->[docs][joy] Build TS versions for Radio component demos (#36406) @sai6855
- &#8203;<!-- 15 -->[docs][joy] Build TS versions for Checkbox component demos (#36381) @sai6855
- &#8203;<!-- 14 -->[docs][joy] Build TS versions for Select component demos (#36380) @sai6855
- &#8203;<!-- 13 -->[docs][joy] Build TS versions for Typography component demos (#36378) @varunmulay22
- &#8203;<!-- 12 -->[docs][joy] Add typescript demos for `Divider` (#36374) @sai6855
- &#8203;<!-- 11 -->[docs][joy] Build TS versions for Textarea component demos (#36371) @varunmulay22
- &#8203;<!-- 10 -->[docs][joy] Build TS versions for Link component demos (#36366) @hbjORbj

### Core

- &#8203;<!-- 31 -->Revert "Bump rimraf to ^4.1.3" (#36420) @mnajdova
- &#8203;<!-- 25 -->[core] Fix test utils types and external `buildApiUtils` usage issues (#36310) @LukasTy
- &#8203;<!-- 06 -->[test] Remove duplicate `combobox` role queries in Autocomplete tests (#36394) @ZeeshanTamboli
- &#8203;<!-- 02 -->[website] Clarify redistribution @oliviertassinari
- &#8203;<!-- 01 -->[website] Sync /about page (#36334) @oliviertassinari

All contributors of this release in alphabetical order: @cherniavskii, @hbjORbj, @joserodolfofreitas, @Kuba429, @Kundan28, @LukasTy, @MBilalShafi, @michaldudak, @mnajdova, @NoFr1ends, @oliviertassinari, @Osman-Sodefa, @Paatus, @sai6855, @SaidMarar, @varunmulay22, @ZeeshanTamboli

## 5.11.11

<!-- generated comparing v5.11.10..master -->
Expand Down
6 changes: 3 additions & 3 deletions benchmark/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
"@emotion/react": "^11.10.6",
"@emotion/styled": "^11.10.6",
"@mdx-js/react": "^2.3.0",
"@mui/material": "^5.11.11",
"@mui/styles": "^5.11.11",
"@mui/system": "^5.11.11",
"@mui/material": "^5.11.12",
"@mui/styles": "^5.11.12",
"@mui/system": "^5.11.12",
"@styled-system/css": "^5.1.5",
"benchmark": "^2.1.4",
"playwright": "^1.31.1",
Expand Down
16 changes: 8 additions & 8 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,18 +31,18 @@
"@fortawesome/fontawesome-svg-core": "^6.2.1",
"@fortawesome/free-solid-svg-icons": "^6.2.1",
"@fortawesome/react-fontawesome": "^0.2.0",
"@mui/base": "5.0.0-alpha.119",
"@mui/docs": "^5.11.11",
"@mui/base": "5.0.0-alpha.120",
"@mui/docs": "^5.11.12",
"@mui/icons-material": "^5.11.11",
"@mui/joy": "5.0.0-alpha.69",
"@mui/lab": "5.0.0-alpha.121",
"@mui/joy": "5.0.0-alpha.70",
"@mui/lab": "5.0.0-alpha.122",
"@mui/markdown": "^5.0.0",
"@mui/material": "^5.11.11",
"@mui/material-next": "6.0.0-alpha.76",
"@mui/material": "^5.11.12",
"@mui/material-next": "6.0.0-alpha.77",
"@mui/styled-engine": "^5.11.11",
"@mui/styled-engine-sc": "^5.11.11",
"@mui/styles": "^5.11.11",
"@mui/system": "^5.11.11",
"@mui/styles": "^5.11.12",
"@mui/system": "^5.11.12",
"@mui/types": "^7.2.3",
"@mui/x-data-grid": "6.0.0-alpha.14",
"@mui/x-data-grid-generator": "6.0.0-alpha.14",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mui/monorepo",
"version": "5.11.11",
"version": "5.11.12",
"private": true,
"scripts": {
"proptypes": "cross-env BABEL_ENV=development babel-node --extensions \".tsx,.ts,.js\" ./scripts/generateProptypes.ts",
Expand Down
4 changes: 2 additions & 2 deletions packages/mui-base/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mui/base",
"version": "5.0.0-alpha.119",
"version": "5.0.0-alpha.120",
"private": false,
"author": "MUI Team",
"description": "A library of headless ('unstyled') React UI components and low-level hooks.",
Expand Down Expand Up @@ -54,7 +54,7 @@
"@babel/runtime": "^7.21.0",
"@emotion/is-prop-valid": "^1.2.0",
"@mui/types": "^7.2.3",
"@mui/utils": "^5.11.11",
"@mui/utils": "^5.11.12",
"@popperjs/core": "^2.11.6",
"clsx": "^1.2.1",
"prop-types": "^15.8.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/mui-codemod/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mui/codemod",
"version": "5.11.11",
"version": "5.11.12",
"bin": "./codemod.js",
"private": false,
"author": "MUI Team",
Expand Down
2 changes: 1 addition & 1 deletion packages/mui-core-downloads-tracker/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mui/core-downloads-tracker",
"version": "5.11.11",
"version": "5.11.12",
"private": false,
"author": "MUI Team",
"description": "Internal package to track number of downloads of our design system libraries",
Expand Down
4 changes: 2 additions & 2 deletions packages/mui-docs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mui/docs",
"version": "5.11.11",
"version": "5.11.12",
"private": false,
"author": "MUI Team",
"description": "MUI Docs - Documentation building blocks.",
Expand Down Expand Up @@ -45,7 +45,7 @@
},
"dependencies": {
"@babel/runtime": "^7.21.0",
"@mui/utils": "^5.11.11",
"@mui/utils": "^5.11.12",
"nprogress": "^0.2.0"
},
"publishConfig": {
Expand Down
10 changes: 5 additions & 5 deletions packages/mui-joy/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mui/joy",
"version": "5.0.0-alpha.69",
"version": "5.0.0-alpha.70",
"private": false,
"author": "MUI Team",
"description": "A library of beautifully designed React UI components.",
Expand Down Expand Up @@ -57,11 +57,11 @@
},
"dependencies": {
"@babel/runtime": "^7.21.0",
"@mui/base": "5.0.0-alpha.119",
"@mui/core-downloads-tracker": "^5.11.11",
"@mui/system": "^5.11.11",
"@mui/base": "5.0.0-alpha.120",
"@mui/core-downloads-tracker": "^5.11.12",
"@mui/system": "^5.11.12",
"@mui/types": "^7.2.3",
"@mui/utils": "^5.11.11",
"@mui/utils": "^5.11.12",
"clsx": "^1.2.1",
"csstype": "^3.1.1",
"prop-types": "^15.8.1",
Expand Down
8 changes: 4 additions & 4 deletions packages/mui-lab/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mui/lab",
"version": "5.0.0-alpha.121",
"version": "5.0.0-alpha.122",
"private": false,
"author": "MUI Team",
"description": "Laboratory for new MUI modules.",
Expand Down Expand Up @@ -61,10 +61,10 @@
},
"dependencies": {
"@babel/runtime": "^7.21.0",
"@mui/base": "5.0.0-alpha.119",
"@mui/system": "^5.11.11",
"@mui/base": "5.0.0-alpha.120",
"@mui/system": "^5.11.12",
"@mui/types": "^7.2.3",
"@mui/utils": "^5.11.11",
"@mui/utils": "^5.11.12",
"clsx": "^1.2.1",
"prop-types": "^15.8.1",
"react-is": "^18.2.0"
Expand Down
10 changes: 5 additions & 5 deletions packages/mui-material-next/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mui/material-next",
"version": "6.0.0-alpha.76",
"version": "6.0.0-alpha.77",
"private": false,
"author": "MUI Team",
"description": "v6-alpha: React components that implement Google's Material Design",
Expand Down Expand Up @@ -59,11 +59,11 @@
},
"dependencies": {
"@babel/runtime": "^7.21.0",
"@mui/base": "5.0.0-alpha.119",
"@mui/material": "^5.11.11",
"@mui/system": "^5.11.11",
"@mui/base": "5.0.0-alpha.120",
"@mui/material": "^5.11.12",
"@mui/system": "^5.11.12",
"@mui/types": "^7.2.3",
"@mui/utils": "^5.11.11",
"@mui/utils": "^5.11.12",
"@popperjs/core": "^2.11.6",
"@types/react-transition-group": "^4.4.5",
"clsx": "^1.2.1",
Expand Down
8 changes: 4 additions & 4 deletions packages/mui-material/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mui/material",
"version": "5.11.11",
"version": "5.11.12",
"private": false,
"author": "MUI Team",
"description": "React components that implement Google's Material Design.",
Expand Down Expand Up @@ -62,10 +62,10 @@
"dependencies": {
"@babel/runtime": "^7.21.0",
"@mui/base": "5.0.0-alpha.119",
"@mui/core-downloads-tracker": "^5.11.11",
"@mui/system": "^5.11.11",
"@mui/core-downloads-tracker": "^5.11.12",
"@mui/system": "^5.11.12",
"@mui/types": "^7.2.3",
"@mui/utils": "^5.11.11",
"@mui/utils": "^5.11.12",
"@types/react-transition-group": "^4.4.5",
"clsx": "^1.2.1",
"csstype": "^3.1.1",
Expand Down
4 changes: 2 additions & 2 deletions packages/mui-private-theming/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mui/private-theming",
"version": "5.11.11",
"version": "5.11.12",
"private": false,
"author": "MUI Team",
"description": "Private - The React theme context to be shared between `@mui/styles` and `@mui/material`.",
Expand Down Expand Up @@ -48,7 +48,7 @@
},
"dependencies": {
"@babel/runtime": "^7.21.0",
"@mui/utils": "^5.11.11",
"@mui/utils": "^5.11.12",
"prop-types": "^15.8.1"
},
"sideEffects": false,
Expand Down
6 changes: 3 additions & 3 deletions packages/mui-styles/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mui/styles",
"version": "5.11.11",
"version": "5.11.12",
"private": false,
"author": "MUI Team",
"description": "MUI Styles - The legacy JSS-based styling solution of Material UI.",
Expand Down Expand Up @@ -49,9 +49,9 @@
"dependencies": {
"@babel/runtime": "^7.21.0",
"@emotion/hash": "^0.9.0",
"@mui/private-theming": "^5.11.11",
"@mui/private-theming": "^5.11.12",
"@mui/types": "^7.2.3",
"@mui/utils": "^5.11.11",
"@mui/utils": "^5.11.12",
"clsx": "^1.2.1",
"csstype": "^3.1.1",
"hoist-non-react-statics": "^3.3.2",
Expand Down
6 changes: 3 additions & 3 deletions packages/mui-system/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mui/system",
"version": "5.11.11",
"version": "5.11.12",
"private": false,
"author": "MUI Team",
"description": "CSS utilities for rapidly laying out custom designs.",
Expand Down Expand Up @@ -58,10 +58,10 @@
},
"dependencies": {
"@babel/runtime": "^7.21.0",
"@mui/private-theming": "^5.11.11",
"@mui/private-theming": "^5.11.12",
"@mui/styled-engine": "^5.11.11",
"@mui/types": "^7.2.3",
"@mui/utils": "^5.11.11",
"@mui/utils": "^5.11.12",
"clsx": "^1.2.1",
"csstype": "^3.1.1",
"prop-types": "^15.8.1"
Expand Down
Loading

0 comments on commit b76b8f1

Please sign in to comment.