- switch from
StylustoSASSstyling - refactor code to use ES6 everywhere
- modify
onChangeandonRangeChange
- add
highlightWeekendsprop. Defaults to false.
- add
weekNumberNameprop
- add
weekNumbersboolean prop - defaults to false - accepting PR #36 - thanks Christian Alfoni. Also addrenderWeekNumberprop
- React 0.14 as peer dep
- accept PR #56 - fixes#55 - if 1st day is sunday, first week is entire previous month
- add
alwaysShowPrevWeekprop
- update
object-assignto4.0.1
- fix
styleandclassNameprops to also keepdate-pickerclassName if a className is provided.
- add
isDisabledprop to props passed inrenderDay - add
beforeMinDateprop to props passed inrenderDay- only set if the day to be rendered is before the specifiedminDate - add
afterMaxDateprop to props passed inrenderDay- only set if the day to be rendered is after the specifiedmaxDate
- Fix styling issues introduced in
3.0.0
- Implement picker using
flexlayout (replacingtablelayout). This allows the picker to fill all available space and not rely on fixed height.
- fix various accessibility issues and add tab navigation - accept PR #35
- accept PR #37
- fix #33
- remove normalize.css dependency
- remove 'sans-serif' font-family from css - font will be inherited from parent node
- add CI integration - see https://circleci.com/gh/zippyui/react-date-picker
onChange,onSelect,onNavare called with date string first, and then the moment instance. So the first 2 args are inverted from previous versions- add support for better i18n - through
locale,weekStartDayandweekDayNamesprops - made
viewDateandviewcontrolled. Introduced uncontrolled alternativesdefaultViewDate(default todateor now) anddefaultView(defaults to"month") - add
onViewDateChangeandonViewChangeprops that can be used to handle the changes for the respective properties - add
navOnDateClick- defaults to true. If false, will not navigate to the date that was clicked, even if that date is in the prev/next month - add
dayFormat,monthFormat,yearFormat
Starting v 2.0.0 react-date-picker is moved to zippyui.
todayandgotoSelectedare renamed astodayTextandgotoSelectedText. Old names are now deprecated, and will be removed in a future minor version.- add
renderFooterprop, which can be used to render a different footer. - change the behavior of
renderDayprop: if it now returns undefined, we assume it just changed props, so we render the default cell, with the updated props. This means you can userenderDayboth to affect the props object passed to day cells and/or the render a completely different cell
renderDay&onRenderDayproperties are available to allow full control over day-cell renderingonNavis called with new args: moment, text, view, direction - where moment is a date as a momentjs instance, text is the date formatted as text, the view is the view name ('month','year','decade') and direction is 1 (nav to next period) or -1 (nav to prev period)onSelectis called with new args: moment, text, view