v6.0.0-beta.5
版本发布时间: 2024-08-08 17:02:26
mui/material-ui最新发布版本:v6.1.0(2024-09-11 21:10:51)
Aug 8, 2024
A big thanks to the 17 contributors who made this release possible. Here are some highlights ✨:
- Remove some deprecated props from the ListItem component (#41566) @thathva
- Bumped the minimum supported version of TypeScript to v4.7 (#43116) @mnajdova
@mui/material@6.0.0-beta.5
BREAKING CHANGES
-
[material-ui][ListItem] Removing deprecated props (#41566) @thathva
ListItem
's propsautoFocus
,button
,disabled
, andselected
, deprecated in v5, have been removed. To replace thebutton
prop, useListItemButton
instead. The other removed props are available in theListItemButton
component as well.-<ListItem button /> +<ListItemButton />
Use this codemod to migrate your project to the
ListItemButton
component:npx @mui/codemod@next v6.0.0/list-item-button-prop <path/to/folder>
As the
ListItem
no longer supports these props, the class names related to these props were removed. You should use thelistItemButtonClasses
object instead.-import { listItemClasses } from '@mui/material/ListItem'; +import { listItemButtonClasses } from '@mui/material/ListItemButton'; - listItemClasses.button + listItemButtonClasses.root - listItemClasses.focusVisible + listItemButtonClasses.focusVisible - listItemClasses.disabled + listItemButtonClasses.disabled - listItemClasses.selected + listItemButtonClasses.selected
Changes
- [material-ui][Autocomplete] Fix default value for multiple mode getting redefined with React 19 (#43189) @DiegoAndai
- [material-ui] Merge
CssVarsProvider
intoThemeProvider
(#43115) @siriwatknp - [material-ui] Make tests compatible with React 19 (#43155) @DiegoAndai
- [material-ui] Refine Blog template (#42825) @zanivan
- [material-ui] Element ref access React 19 compatibility (#43132) @DiegoAndai
- [material-ui][mui-system] Add support for version runtime checks (#43190) @DiegoAndai
@mui/material-pigment-css@6.0.0-beta.5
- Reexport Pigment CSS from index file (#43218) @siriwatknp
@mui/codemod@6.0.0-beta.5
- Fix codemod crash on MuiDivider property (#43125) @Janpot
Docs
- Fix resolution of @mui/material-ui in docs (#43108) @Janpot
- Refine and polish out Templates page (#43131) @zanivan
- Fix the link test script (#43195) @alexfauquette
- Fix alpha usage (#43194) @siriwatknp
- Link Toolpad Core components from Material UI docs (#43036) @prakhargupta1
- Link Toolpad core docs to the docs menu (#42952) @prakhargupta1
- Polish migration guide (#43021) @oliviertassinari
- Fix 404 link to migration pages @oliviertassinari
- Support inject dynamic theme (#42879) @Vxee
- Fix 301 @oliviertassinari
- [blog] Announcing pricing changes Sep 2024 (#43061) @joserodolfofreitas
- [material-ui][TextField] Remove mentions of
redux-form
from TextField documentation (#43176) @AbdurRahman2004
Core
- [code-infra] Fix
@mui/internal-test-utils
screen
export type (#43150) @LukasTy - [code-infra] Do not look for changes with previous commit when releasing a canary version (#43129) @michaldudak
- [code-infra] Automate canary releases (#43066) @michaldudak
- [core] Apply top-level eslint rule to docs and fix violations (#43126) @Janpot
- [core] Patch styled-components to use React.JSX namespace (#43205) @aarongarciah
- [core] Replace JSX namespace usages with React.JSX (#43204) @aarongarciah
- [core] Remove
react-router
package frompigment-css-vite-app
(#43201) @ZeeshanTamboli - [core] Remove unnecessary types packages from
@mui/internal-babel-macros
(#43193) @ZeeshanTamboli - [docs-infra] Move
ApiPage
to TS (#43149) @alexfauquette - [test] Remove unnecessary prop type check in test (#43211) @aarongarciah
- [test] Make conformance tests work with async render function (#43156) @michaldudak
- [typescript] Update the minimum supported version (#43116) @mnajdova
- [website] Add icons to core page products (#43151) @zanivan
- [website] Copyedit Docs and Product menu taglines (#43075) @samuelsycamore
- [website] Fix wrong link in pricing table (#43141) @zanivan
- [website] Add blog link to pricing table (#43123) @zanivan
All contributors of this release in alphabetical order: @aarongarciah, @AbdurRahman2004, @alexfauquette, @DiegoAndai, @Janpot, @joserodolfofreitas, @LukasTy, @michaldudak, @mnajdova, @oliviertassinari, @prakhargupta1, @samuelsycamore, @siriwatknp, @thathva, @Vxee, @zanivan, @ZeeshanTamboli