v7.0.0-alpha.2
Pre-releaseWe'd like to offer a big thanks to the 10 contributors who made this release possible. Here are some highlights ✨:
- 📈 Export missing Charts props
- 🌍 Improve Arabic (ar-SD) and Hebrew (he-IL) locales on Data Grid
- 🌍 Add Macedonian (mk) locale and improve German (de-DE) locale on Pickers
- 🐞 Bugfixes
- 📚 Documentation improvements
Data Grid
@mui/[email protected]
- [l10n] Improve Arabic (ar-SD) locale (#11114) @MBilalShafi
- [l10n] Improve Hebrew (he-IL) locale (#11056) (#11149) @MBilalShafi
- [DataGrid] Remove unused utilities (#11156) @flaviendelangle
@mui/[email protected]

Same changes as in @mui/[email protected]
.
@mui/[email protected]

Same changes as in @mui/[email protected]
.
Date Pickers
Breaking changes
-
The deprecated
shouldDisableClock
prop has been removed in favor of the more flexibleshouldDisableTime
prop.
TheshouldDisableClock
prop receivedvalue
as anumber
of hours, minutes, or seconds.
Instead, theshouldDisableTime
prop receives the date object (based on the used adapter).You can read more about the deprecation of this prop in v6 migration guide.
<DateTimePicker - shouldDisableClock={(timeValue, view) => view === 'hours' && timeValue < 12} + shouldDisableTime={(value, view) => view === 'hours' && value.hour() < 12} />
-
The
adapter.dateWithTimezone
method has been removed and its content moved to thedate
method.
You can use theadapter.date
method instead:- adapter.dateWithTimezone(undefined, 'system'); + adapter.date(undefined, 'system');
-
The
dayPickerClasses
variable has been renamed todayCalendarClasses
to be consistent with the new name of theDayCalendar
component introduced in v6.0.0.- import { dayPickerClasses } from '@mui/x-date-pickers/DateCalendar'; + import { dayCalendarClasses } from '@mui/x-date-pickers/DateCalendar';
-
The deprecated
defaultCalendarMonth
prop has been removed in favor of the more flexiblereferenceDate
prop.- <DateCalendar defaultCalendarMonth={dayjs('2022-04-01')}; + <DateCalendar referenceDate{dayjs('2022-04-01')} />
-
The
adapter.date
method now has the v6adapter.dateWithTimezone
method behavior.
It no longer acceptsany
as a value but onlystring | null | undefined
.- adapter.date(new Date()); + adapter.date(); - adapter.date(new Date('2022-04-17'); + adapter.date('2022-04-17'); - adapter.date(new Date(2022, 3, 17, 4, 5, 34)); + adapter.date('2022-04-17T04:05:34'); - adapter.date(new Date('Invalid Date')); + adapter.getInvalidDate();
@mui/[email protected]
- [l10n] Improve German (de-DE) locale (#11103) @jho-vema
- [l10n] Add Macedonian (mk) locale (#10935) @brsnik
- [pickers] Remove the
defaultCalendarMonth
prop (#10987) @flaviendelangle - [pickers] Remove the
shouldDisableClock
prop (#11042) @flaviendelangle - [pickers] Rename the
dayPickerClasses
variabledayCalendarClasses
(#11140) @flaviendelangle - [pickers] Replace
adapter.date
with the currentadapter.dateWithTimezone
(#10979) @flaviendelangle
@mui/[email protected]

Same changes as in @mui/[email protected]
.
Charts / @mui/[email protected]
- [charts] Change export strategy in index files (#11113) @michelengelen
- [charts] Fix
ChartsTooltip
component setup (#11152) @LukasTy
@mui/[email protected]
- [codemod] Add codemod to use
referenceDate
instead ofdefaultCalendarMonth
(#11139) @flaviendelangle - [codemod] Clean the components to slots codemod usage (#11145) @flaviendelangle
Docs
- [docs] Add LTS section to support docs (#10927) @joserodolfofreitas
- [docs] Clean the codemod README (#11051) @flaviendelangle
- [docs] Fix typos and grammar issues (#11049) @flaviendelangle
- [docs] Fix version links (#11001) @LukasTy
- [docs] Point to the source of
@mui/x-data-grid-generator
(#11134) @oliviertassinari
Core
- [core] Bump monorepo (#11160) @LukasTy
- [core] Fix comment in doc generation (#11098) @flaviendelangle
- [core] Rename OpenCollective @oliviertassinari
- [core] Upgrade
babel-plugin-module-resolver
to 5.0.0 (#11065) @flaviendelangle - [changelog] Improve git diff format @oliviertassinari
- [renovate] Monthly schedule for lockfile maintenance (#10336) @Janpot
- [test] Skip flaky e2e test in webkit (#11110) @cherniavskii