Releases: mui/material-ui-pickers
v1.0.0-rc.8
We are mostly on the way to the first long-term supported (1.0.0) release 🎉
Thanks to 2 contributors, supporting this release ❤️
Here what's changed:
Breaking changes
N / A
Features
- Auto selection of closest enabled date, if selected date is disabled in current calendar #392 @dmtrKovalenko
Fixes / Improvements
- Fix not disabled datepicker icon button in keyboard mode if whole input is disabled #392 @lolJS
- Fix not including year of maxDate in date-fns utils #399
- Disable scrolling on touch on Android
- Disable text selection on dragging over time clock
- Add cursor type when dragging clock pointer on desktop browsers
- [typescript] Fix missing isNull & parse in utils inteface #381
- [typescript] Improved utils typing overall. Utils are now a generic class instead of one reused.
v1.0.0-rc.7
First of all thanks to 3 contributors, that make this release possible ❤️
Breaking changes
N / A
Features
N / A
Fixes/Enhancements
- Fix transparent background of hovering dates with mui v42 @alex-fournier #366
- Fix displaying Sunday as first day of week with any locale in date-fns @cherniavskii #370
- Fix displaying scrollbar in picker with some monitors resolutions @cherniavskii #374
- Make
Enter
click accept the date when modal is open @alex-fournier - Fix displaying error messages when value is
null
and set some range validation rules @cherniavskii #368 - Fix excluding boundary years with moment-utils @dmtrKovalenko #340
v1.0.0-rc.6
First of all thanks to 4 contributors that makes this release possible 👍
Release highlights ✨
- Fix displaying of clocks one by one for material ui > beta.39
- Support luxon utils 🎉
- Fix issues with today button
Breaking changes
N/A
Features
- Support luxon #345 @lookapanda @cherniavskii
- Add
disableOpenOnEnter
prop #346 @Loktor
Fixes
- Fix issue with 2 clocks one by one @alex-fournier
- Fix issues with today button @Loktor
- Fix missing arguments in utils typings @lookapanda
- Fix missing
pickerRef
prop in ts defenitions @Le-Lutin
v1.0.0-rc.5
Entirely thanks to 5 contributors, that makes this release possible ❤️
Here are release hightlights ✨
- Add
Today
button for pickers - Continue support of persian calendar system
- New animations 🎉
Breaking changes
N/A
Features
- Add
Today
button for date/time pickers #317 @tkachenko-tatiana - Continue support of persian calendar system #154 @alitaheri
- Add new animation of clock transitions #304 @dmtrKovalenko
- Add
onError
callback to add an ability #316 manage errors controllable @dmtrKovalenko
Fixes / Enhancements
- Fix dispatching error on clearing date in keyboard mode @dmtrKovalenko
- [typescript] Fix error on trying to inherit utils @dmtrKovalenko
- [typescript] Add lib-specific typed definitions for utils @dmtrKovalenko
- [docs] New navigation system @cherniavskii
- [docs] Document opening pickers progrmatically @dmtrKovalenko
- Make
MuiPickerUtilsProvider
plainComponent
instead of pure to make it work with React Router Hoc @dmtrKovalenko
v1.0.0-rc.4
Entirely thanks to 4 contributors and our bakers and sponsors - they makes this release possible ❤️
Features
- Add circle pin to the clock center to match material design guidelines @tkachenko-tatiana
Docs
- Prop-types autogenerations
- Add descriptions for CSS overrides
- Add global formats sections
Fixes / Enhancements
- Fix missing
locale
andmoment
props in typings @tstaehli - Make
value
nullable for typescript - Fix keyboard input parsing with moment utils
Docs
- Fix responsive design issues
- Add displaying of patrons on landing page
v1.0.0-rc.3
First of all thanks to all contributors :)
Here are release highlights ✨
🎉 Check out our new documentation website
Breaking changes
Utils class have been redone from static class to the instance-based, so now override utils via extends
.
import DateFnsUtils from 'material-ui-pickers/utils/date-fns-utils';
export class CustomUtils extends DateFnsUtils {
...
}
Features
- Localization - checkout out documentation for date-fns and moment
- Disabling month navigation buttons depends on disabled days in the next/prev month #236
- Add
onOpen
andonClose
callbacks #234 - Add ability to get the ref of rendered picker wrapper with
pickerRef
prop #265
Fixes
v1.0.0-rc.2
Fix all critical bugs, that was caused by 1.0.0-rc.1 version
Here are release highlights ✨
Breaking changes
N/A
Fixes / Enhancements
- Fix importing utils from core module that caused errors that moment/date-fns is not defined
- Move from es imports in the direct components. Now importing from files will not caused jest tests fails.
- Fix passing null as value displays 01.01.1970 with date-fns utils
- Fix not updating displaying value if
emptyLabel
was changed
v1.0.0-rc.1
🎉 Its a release candidate!
And we have added an ability to replace moment
First of all thanks to all contributors that work for this project, you are awesome ❤️
Breaking changes
Firstly we have moved all moment usages to the separate utils interface and have make it replaceable. So from now you are able to decide which library would be used by pickers to work with date.
We are providing interfaces for moment and date-fns 2.0. And if you are not already using moment for date management we suggest using date-fns, because its much more lightweight and will be correctly tree-shaked from the bundle.
You can teach the pickers which library to use with MuiPickersUtilsProvider
. Add this to the root of your component tree
import MomentUtils from 'material-ui-pickers/utils/moment-utils';
import DateFnsUtils from 'material-ui-pickers/utils/date-fns-utils'
import MuiPickersUtilsProvider from 'material-ui-pickers/utils/MuiPickersUtilsProvider';
function App() {
return (
<MuiPickersUtilsProvider utils={DateFnsUtils}>
<Root />
</MuiPickersUtilsProvider>
);
}
render(<App />, document.querySelector('#app'));
returnMoment
property was deleted, now if you are using moment utils - you will get moment object anyway in the onChange callback.
<TimePicker
- returnMoment={false}
- onChange={(date: Date) => this.setState({ date })}
+ onChange={(date:Moment) => this.setState({ date })
/>
Features
- Improved importing system. Now its possible to import components by direct component name instead of src and Wrappers. We are tree-shaking friendly!
- import TimePicker from 'material-ui-pickers/src/TimePicker/TimePickerWrapper
+ import TimePicker from 'material-ui-pickers/TimePicker
- Remove
moment-range
dependency (No more need toArray.from
pollyfill) - Support of replaceable date management lib #219
- Support of date-fns as date management lib #219
- Add
InputAdornmentProps
andinputAdornmentPosition
to keyboard adornment customization #223
Fixes
v1.0.0-beta.15.1
Thanks to our awesome contributors! ❤️
Release highlights ✨
Fixes / Enhancements
- Support of material-ui vbeta.33
- Fix not incorrect displaying of keyboard button if label provided
- Fix not applying toolbar colors in Firefox for some scenarios
- Fix not applying min/max validation rules for DateTime Pickers @LastDreamer
- Improve typescript defenitions
v1.0.0-beta.14
Firstly big thanks to 3 contributors, that makes this release possible
Release highlights ✨
We have update to material-ui beta.31!
Fixes
- Fix displaying error if value is null @cherniavskii
- Fix not updating displaying value if format has been changed @cherniavskii
- [Typescript] Fix error related to passed icons props @AlexAnthony