- switch from
Stylus
toSASS
styling - refactor code to use ES6 everywhere
- modify
onChange
andonRangeChange
- add
highlightWeekends
prop. Defaults to false.
- add
weekNumberName
prop
- add
weekNumbers
boolean prop - defaults to false - accepting PR #36 - thanks Christian Alfoni. Also addrenderWeekNumber
prop
- React 0.14 as peer dep
- accept PR #56 - fixes#55 - if 1st day is sunday, first week is entire previous month
- add
alwaysShowPrevWeek
prop
- update
object-assign
to4.0.1
- fix
style
andclassName
props to also keepdate-picker
className if a className is provided.
- add
isDisabled
prop to props passed inrenderDay
- add
beforeMinDate
prop to props passed inrenderDay
- only set if the day to be rendered is before the specifiedminDate
- add
afterMaxDate
prop 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
flex
layout (replacingtable
layout). 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
,onNav
are 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
,weekStartDay
andweekDayNames
props - made
viewDate
andview
controlled. Introduced uncontrolled alternativesdefaultViewDate
(default todate
or now) anddefaultView
(defaults to"month"
) - add
onViewDateChange
andonViewChange
props 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.
today
andgotoSelected
are renamed astodayText
andgotoSelectedText
. Old names are now deprecated, and will be removed in a future minor version.- add
renderFooter
prop, which can be used to render a different footer. - change the behavior of
renderDay
prop: 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 userenderDay
both to affect the props object passed to day cells and/or the render a completely different cell
renderDay
&onRenderDay
properties are available to allow full control over day-cell renderingonNav
is 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)onSelect
is called with new args: moment, text, view