Date & Time pickers for Material UI (support from v1 to v4)
MIT License
Published by dmtrKovalenko almost 6 years ago
Thanks for 3 contributors that made this release possible
Here are some highlights ✨:
tslib
dependencyinitialFocusedDate
changePublished by dmtrKovalenko almost 6 years ago
1.0.0 release is here 🎉
We are happy to proceed with the stable version. Thanks for every user of this package 👍
We have a lot of changes for you there.
Big thanks to 7 contributors especially @TrySound and @rosskevin for their awesome work! 🔥
-import MuiPickersUtilsProvider from 'material-ui-pickers/utils/MuiPickersUtilsProvider'
+import MuiPickersUtilsProvider from 'material-ui-pickers/MuiPickersUtilsProvider'
onChange
before closePublished by dmtrKovalenko about 6 years ago
This extra release fixes problems with esm module, which caused cannot read property date of undefined
error. We apologize for any inconvenience 😔
This release also contains improvement for keyboard navigation in inline datepicker
Published by dmtrKovalenko about 6 years ago
Big thanks to the 6 contributors who made this release possible!
It contains many bug fixes 🐛 , documentation improvements and update to material-ui 3.1.1
We are now relying on ^material-ui/[email protected]
pipe
prop to MaskedInput @mckernaninReact.createRef
initialFocusedDate
in typescript typingsref
property for inline pickersmaxDate
prop and start of day for minDate
Published by dmtrKovalenko about 6 years ago
Good day! We have a lot of good news for you! 🥇
[email protected]
, so date-fns users must update.utils/date-fns-utils-old
for compatibility
- import Calendar from 'material-ui-pickers/DatePicker/Calendar';
+ import Calendar from 'material-ui-pickers/DatePicker/components/Calendar';
We are announcing new displaying mode - Inline popover view. This should be very useful for desktop experience. 🚀
import { InlineDatePicker } from 'material-ui-pickers/DatePicker';
<InlineDatePicker
label="Basic example"
value={selectedDate}
onChange={this.handleDateChange}
/>
transKey
prop type warning 😱@babel/runtime
to much material-ui version and update whole babel
to v7animateYearScrolling
with openToYearSelection
#565Published by dmtrKovalenko about 6 years ago
Good day! We apologize for long break with such critical changes :(
But we are ready to move on and big thanks to 6 contributors, that worked hard on this release 🚀
container
prop was removed, now use new DialogProps
property to pass container to dialog- <DatePicker container={...} />
+ <DatePicker DialogProps={{ container: ... }} />
DialogProps
propertyPublished by dmtrKovalenko about 6 years ago
Thanks so match to 7 contributors, that makes this release possible! You are the best ❤️
And we are mostly near the 1.0.0 release 🚀
N/A
onInputChange
prop, which fires on each input changeinitialFocusedDate
prop to make ability display initial date @mcMickJuicecontainer
prop to add ability change the modal container @alelibertymergeDateAndTime
method in utils that adds ability to more slightly control time selection @Philipp91ViewContainerComponent
prop for DateTimePicker @Philipp91material-ui-pickers/dist/material-ui-pickers.umd.min.js
@TrySoundPublished by dmtrKovalenko over 6 years ago
Big thanks to 3 contributors ❤️
This release will fix all major issues with masked input.
And also we done great improvement in test coverage 🚀
N/A
N/A
[email protected]
onBlur
handler to TextFieldComponent.Published by dmtrKovalenko over 6 years ago
We apologize for long break between releases. But we have done a lot inside ⭐️
Big thanks to 6 contributors, that makes this release possible ❤️
Here is what's changed:
We have redone forwarding refs logic with the new React's api. So no more pickerRef
prop
<DatePicker
- pickerRef={node => { this.picker = node }}
+ ref={node => { this.picker = node }}
/>
seconds
prop @baigallowKeyboardControl
to false.onKeyDown
typescript property for DateTextFieldProps
@Ahmad IlaiwitodayLabel
and showTodayButton
for pickers props @tjaskulaPublished by dmtrKovalenko over 6 years ago
This release is actually support of material-ui rc.0. Thanks 2 contributors, that support this release ❤️
Here is what's changed:
Since this version material-ui-pickers depends on @material-ui/core
instead of material-ui
. Please update to the most recent material-ui version
Published by dmtrKovalenko over 6 years ago
Thanks to 2 contributors, supporting this release ❤️
Here what's changed:
N / A
Published by dmtrKovalenko over 6 years ago
First of all thanks to 3 contributors, that make this release possible ❤️
N / A
N / A
Enter
click accept the date when modal is open @alex-fourniernull
and set some range validation rules @cherniavskii #368Published by dmtrKovalenko over 6 years ago
First of all thanks to 4 contributors that makes this release possible 👍
N/A
disableOpenOnEnter
prop #346 @LoktorpickerRef
prop in ts defenitions @Le-LutinPublished by dmtrKovalenko over 6 years ago
Entirely thanks to 5 contributors, that makes this release possible ❤️
Here are release hightlights ✨
Today
button for pickersN/A
Today
button for date/time pickers #317 @tkachenko-tatianaonError
callback to add an ability #316 manage errors controllable @dmtrKovalenkoMuiPickerUtilsProvider
plain Component
instead of pure to make it work with React Router Hoc @dmtrKovalenkoPublished by dmtrKovalenko over 6 years ago
Entirely thanks to 4 contributors and our bakers and sponsors - they makes this release possible ❤️
locale
and moment
props in typings @tstaehlivalue
nullable for typescriptPublished by dmtrKovalenko over 6 years ago
First of all thanks to all contributors :)
Here are release highlights ✨
🎉 Check out our new documentation website
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 {
...
}
onOpen
and onClose
callbacks #234pickerRef
prop #265startOfDay
, endOfDay
#266Published by dmtrKovalenko over 6 years ago
Fix all critical bugs, that was caused by 1.0.0-rc.1 version
Here are release highlights ✨
N/A
emptyLabel
was changedPublished by dmtrKovalenko over 6 years ago
And we have added an ability to replace moment
First of all thanks to all contributors that work for this project, you are awesome ❤️
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 })
/>
- import TimePicker from 'material-ui-pickers/src/TimePicker/TimePickerWrapper
+ import TimePicker from 'material-ui-pickers/TimePicker
moment-range
dependency (No more need to Array.from
pollyfill)InputAdornmentProps
and inputAdornmentPosition
to keyboard adornment customization #223minDate
or maxDate
was changed #226Published by dmtrKovalenko over 6 years ago
Thanks to our awesome contributors! ❤️
Release highlights ✨
Published by dmtrKovalenko over 6 years ago
Firstly big thanks to 3 contributors, that makes this release possible
Release highlights ✨
We have update to material-ui beta.31!