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/x-data-grid@7.0.0-alpha.2
- [l10n] Improve Arabic (ar-SD) locale (#11114) @MBilalShafi
- [l10n] Improve Hebrew (he-IL) locale (#11056) (#11149) @MBilalShafi
- [DataGrid] Remove unused utilities (#11156) @flaviendelangle
@mui/x-data-grid-pro@7.0.0-alpha.2 
Same changes as in @mui/x-data-grid@7.0.0-alpha.2.
@mui/x-data-grid-premium@7.0.0-alpha.2 
Same changes as in @mui/x-data-grid-pro@7.0.0-alpha.2.
Date Pickers
Breaking changes
-
The deprecated
shouldDisableClockprop has been removed in favor of the more flexibleshouldDisableTimeprop.
TheshouldDisableClockprop receivedvalueas anumberof hours, minutes, or seconds.
Instead, theshouldDisableTimeprop 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.dateWithTimezonemethod has been removed and its content moved to thedatemethod.
You can use theadapter.datemethod instead:- adapter.dateWithTimezone(undefined, 'system'); + adapter.date(undefined, 'system');
-
The
dayPickerClassesvariable has been renamed todayCalendarClassesto be consistent with the new name of theDayCalendarcomponent introduced in v6.0.0.- import { dayPickerClasses } from '@mui/x-date-pickers/DateCalendar'; + import { dayCalendarClasses } from '@mui/x-date-pickers/DateCalendar';
-
The deprecated
defaultCalendarMonthprop has been removed in favor of the more flexiblereferenceDateprop.- <DateCalendar defaultCalendarMonth={dayjs('2022-04-01')}; + <DateCalendar referenceDate{dayjs('2022-04-01')} />
-
The
adapter.datemethod now has the v6adapter.dateWithTimezonemethod behavior.
It no longer acceptsanyas 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/x-date-pickers@7.0.0-alpha.2
- [l10n] Improve German (de-DE) locale (#11103) @jho-vema
- [l10n] Add Macedonian (mk) locale (#10935) @brsnik
- [pickers] Remove the
defaultCalendarMonthprop (#10987) @flaviendelangle - [pickers] Remove the
shouldDisableClockprop (#11042) @flaviendelangle - [pickers] Rename the
dayPickerClassesvariabledayCalendarClasses(#11140) @flaviendelangle - [pickers] Replace
adapter.datewith the currentadapter.dateWithTimezone(#10979) @flaviendelangle
@mui/x-date-pickers-pro@7.0.0-alpha.2 
Same changes as in @mui/x-date-pickers@7.0.0-alpha.2.
Charts / @mui/x-charts@7.0.0-alpha.2
- [charts] Change export strategy in index files (#11113) @michelengelen
- [charts] Fix
ChartsTooltipcomponent setup (#11152) @LukasTy
@mui/x-codemod@7.0.0-alpha.2
- [codemod] Add codemod to use
referenceDateinstead 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-resolverto 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