github mui/mui-x v7.0.0-alpha.2

latest releases: v7.19.0, v7.18.0, v6.20.5...
pre-release10 months ago

We'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

@mui/x-data-grid-pro@7.0.0-alpha.2 pro

Same changes as in @mui/x-data-grid@7.0.0-alpha.2.

@mui/x-data-grid-premium@7.0.0-alpha.2 premium

Same changes as in @mui/x-data-grid-pro@7.0.0-alpha.2.

Date Pickers

Breaking changes

  • The deprecated shouldDisableClock prop has been removed in favor of the more flexible shouldDisableTime prop.
    The shouldDisableClock prop received value as a number of hours, minutes, or seconds.
    Instead, the shouldDisableTime 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 the date method.
    You can use the adapter.date method instead:

    - adapter.dateWithTimezone(undefined, 'system');
    + adapter.date(undefined, 'system');
  • The dayPickerClasses variable has been renamed to dayCalendarClasses to be consistent with the new name of the DayCalendar 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 flexible referenceDate prop.

    - <DateCalendar defaultCalendarMonth={dayjs('2022-04-01')};
    + <DateCalendar referenceDate{dayjs('2022-04-01')} />
  • The adapter.date method now has the v6 adapter.dateWithTimezone method behavior.
    It no longer accepts any as a value but only string | 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

@mui/x-date-pickers-pro@7.0.0-alpha.2 pro

Same changes as in @mui/x-date-pickers@7.0.0-alpha.2.

Charts / @mui/x-charts@7.0.0-alpha.2

@mui/x-codemod@7.0.0-alpha.2

Docs

Core

Don't miss a new mui-x release

NewReleases is sending notifications on new releases.