Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@kupibilet/react-day-picker

Package Overview
Dependencies
Maintainers
5
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@kupibilet/react-day-picker - npm Package Compare versions

Comparing version 7.1.6 to 7.2.5

DayPickerInput.d.ts

376

CHANGELOG.md

@@ -0,1 +1,54 @@

### [v7.2.4](https://github.com/gpbl/react-day-picker/tree/v7.2.4) (2018-09-13)
- Fix regression: re-enabled click on disabled days ([#789](https://github.com/gpbl/react-day-picker/issues/789) by
[dewey92](https://github.com/dewey92))
- Fixed an issue with paged navigation when using `toMonth` or `fromMonth` props ([#787](https://github.com/gpbl/react-day-picker/issues/787))
## [v7.2](https://github.com/gpbl/react-day-picker/tree/v7.2.2) (2018-08-27)
**DayPicker**
- (CSS) Added `left: auto` to navigation buttons style for easier styling ([#771](https://github.com/gpbl/react-day-picker/issues/771) by
[DDDDDanica](https://github.com/DDDDDanica))
- (CSS) Changed css to use `em` units ([#777](https://github.com/gpbl/react-day-picker/issues/777) by
[signalwerk](https://github.com/signalwerk))
- (TypeScript) Added `undefined` and `null` as allowed modifier types ([#775](https://github.com/gpbl/react-day-picker/issues/775) by
[Lavoaster](https://github.com/Lavoaster))
**DayPickerInput**
- Added `onDayPickerHide` prop
- `onDayChange` will receive the component instance as third argument (useful for checking the input's value)
- (TypeScript) Added top-level type definition for DayPickerInput ([#762](https://github.com/gpbl/react-day-picker/issues/762) by
[kryops](https://github.com/kryops))
- (TypeScript) Fixed definition for `DayPickerInput.dayPicker` top-level type definition for DayPickerInput ([#790](https://github.com/gpbl/react-day-picker/issues/790) by
[strax](https://github.com/strax))
- Fixed: input content was deleted when typing an invalid date in some cases ([#778](https://github.com/gpbl/react-day-picker/issues/778))
### [v7.1.10](https://github.com/gpbl/react-day-picker/tree/v7.1.10) (2018-07-07)
- Fixed a flickering issue with mouse hover using the default style ([#726](https://github.com/gpbl/react-day-picker/issues/726) by
[sv3k](https://github.com/sv3k))
- (DayPickerInput) Fixed: disabled days not working correctly with `classNames` ([#741](https://github.com/gpbl/react-day-picker/issues/741) by
[hannescalibrate](https://github.com/hannescalibrate))
- (DayPickerInput) Do not focus the input field if not supported by a custom `component` ([#747](https://github.com/gpbl/react-day-picker/issues/747))
### [v7.1.9](https://github.com/gpbl/react-day-picker/tree/v7.1.9) (2018-05-13)
- (DayPickerInput) Fixed an error when year from input is too big ([#717](https://github.com/gpbl/react-day-picker/issues/717))
### [v7.1.8](https://github.com/gpbl/react-day-picker/tree/v7.1.8) (2018-05-06)
- Fixed: `tabIndex={0}` was not passed to the container ([#716](https://github.com/gpbl/react-day-picker/issues/716))
- (DayPickerInput) Fixed: interaction with the overlay was not working correctly on Safari or IE 11 ([#715](https://github.com/gpbl/react-day-picker/issues/715))
### [v7.1.6](https://github.com/gpbl/react-day-picker/tree/v7.1.6) (2018-04-15)
- Updated to support React 17 ([#696](https://github.com/gpbl/react-day-picker/issues/696))
- Added: `isSameMonth`, `isDate` functions to DateUtils.
- Fixed: month was reset when selecting multiple days ([#669](https://github.com/gpbl/react-day-picker/issues/669))
- Fixed: week numbers may not be correct ([#692](https://github.com/gpbl/react-day-picker/issues/692))
- (DayPickerInput) Fixed: overlay did not reset the displayed month when appearing again ([#667](https://github.com/gpbl/react-day-picker/issues/667))
- (DayPickerInput) Fixed: overlay was shown even if the input was disabled ([#680](https://github.com/gpbl/react-day-picker/issues/680))
## [v7.1](https://github.com/gpbl/react-day-picker/tree/v7.1.4) (2018-03-04)

@@ -5,9 +58,9 @@

* Added: [`enableOutsideDaysClick`](http://react-day-picker.js.org/api/DayPicker#enableOutsideDaysClick) prop ([#585](https://github.com/gpbl/react-day-picker/issues/585) by
- Added: [`enableOutsideDaysClick`](http://react-day-picker.js.org/api/DayPicker#enableOutsideDaysClick) prop ([#585](https://github.com/gpbl/react-day-picker/issues/585) by
[smesgr](https://github.com/smesgr))
* Fixed: month may be not defined in the navigation component ([#607](https://github.com/gpbl/react-day-picker/issues/607) by
- Fixed: month may be not defined in the navigation component ([#607](https://github.com/gpbl/react-day-picker/issues/607) by
[MhMadHamster](https://github.com/MhMadHamster))
* Fixed: outside days were shown also when using `toMonth`/`fromMonth` ([#630](https://github.com/gpbl/react-day-picker/issues/630))
* Fixed: `Cannot read property 'focus'` error with outside days ([#646](https://github.com/gpbl/react-day-picker/issues/646))
* TypeScript: added more types ([#618](https://github.com/gpbl/react-day-picker/issues/618) by
- Fixed: outside days were shown also when using `toMonth`/`fromMonth` ([#630](https://github.com/gpbl/react-day-picker/issues/630))
- Fixed: `Cannot read property 'focus'` error with outside days ([#646](https://github.com/gpbl/react-day-picker/issues/646))
- TypeScript: added more types ([#618](https://github.com/gpbl/react-day-picker/issues/618) by
[adidahiya](https://github.com/adidahiya))

@@ -17,10 +70,10 @@

* Improved: focus/blur behavior ([#598](https://github.com/gpbl/react-day-picker/issues/598) by
- Improved: focus/blur behavior ([#598](https://github.com/gpbl/react-day-picker/issues/598) by
[jbarco](https://github.com/bartpeeters), [#579](https://github.com/gpbl/react-day-picker/issues/579))
* Improved: `onDayChange` is called `undefined` when day is not valid ([#647](https://github.com/gpbl/react-day-picker/issues/647))
* Added: [`keepFocus`](http://react-day-picker.js.org/api/DayPickerInput#keepFocus) prop ([#598](https://github.com/gpbl/react-day-picker/issues/598) by
- Improved: `onDayChange` is called `undefined` when day is not valid ([#647](https://github.com/gpbl/react-day-picker/issues/647))
- Added: [`keepFocus`](http://react-day-picker.js.org/api/DayPickerInput#keepFocus) prop ([#598](https://github.com/gpbl/react-day-picker/issues/598) by
[bartpeeters](https://github.com/bartpeeters))
* Fixed: use `dayPickerProps.month` before the input's value ([#612](https://github.com/gpbl/react-day-picker/issues/612) by
- Fixed: use `dayPickerProps.month` before the input's value ([#612](https://github.com/gpbl/react-day-picker/issues/612) by
[kradical](https://github.com/kradical))
* Typescript: fixed `onDayChange` definition ([#622](https://github.com/gpbl/react-day-picker/issues/622))
- Typescript: fixed `onDayChange` definition ([#622](https://github.com/gpbl/react-day-picker/issues/622))

@@ -31,3 +84,3 @@ > This should be the last minor release before [v8.0.0](https://github.com/gpbl/react-day-picker/milestone/10). The next major version should not break existing code but as we are moving [from webpack to rollup](https://github.com/gpbl/react-day-picker/milestone/10) we will bump a major for safety :)

* (DayPickerInput) Fixed: `daypickerProps.onMonthChange` not being called ([#604](https://github.com/gpbl/react-day-picker/issues/604) by
- (DayPickerInput) Fixed: `daypickerProps.onMonthChange` not being called ([#604](https://github.com/gpbl/react-day-picker/issues/604) by
[ah-adarlow](https://github.com/ah-adarlow))

@@ -37,6 +90,6 @@

* (DayPickerInput) Fixed: focusing behavior when pressing the `TAB` key ([#594](https://github.com/gpbl/react-day-picker/issues/594))
* (DayPickerInput) Fixed: wrong behavior with malformatted dates using the included moment `parseDate` function ([#584](https://github.com/gpbl/react-day-picker/issues/584) by
- (DayPickerInput) Fixed: focusing behavior when pressing the `TAB` key ([#594](https://github.com/gpbl/react-day-picker/issues/594))
- (DayPickerInput) Fixed: wrong behavior with malformatted dates using the included moment `parseDate` function ([#584](https://github.com/gpbl/react-day-picker/issues/584) by
[jbarco](https://github.com/jbarco))
* Removed duplicated style from CSS ([#591](https://github.com/gpbl/react-day-picker/issues/591) by
- Removed duplicated style from CSS ([#591](https://github.com/gpbl/react-day-picker/issues/591) by
[nicoffee](https://github.com/nicoffee))

@@ -46,5 +99,5 @@

* (Typescript) Various fixes to type definitions
* (DayPickerInput) Fixed: issue parsing dates in January
* Fixed: Updated month prop not updating the calendar when displaying multiple
- (Typescript) Various fixes to type definitions
- (DayPickerInput) Fixed: issue parsing dates in January
- Fixed: Updated month prop not updating the calendar when displaying multiple
months ([#580](https://github.com/gpbl/react-day-picker/issues/580))

@@ -56,6 +109,6 @@

* `enableOutsideDays` prop is now named `showOutsideDays`
* if you are using `DayPickerInput`, we removed the moment.js dependency and
- `enableOutsideDays` prop is now named `showOutsideDays`
- if you are using `DayPickerInput`, we removed the moment.js dependency and
changed how to pass props to the input field (upgrade is easy, see below).
* if you are using commonjs to import the component, change your code:
- if you are using commonjs to import the component, change your code:
```diff

@@ -65,3 +118,3 @@ - var DayPicker = require('react-day-picker`)

```
* if you are using TypeScript and upgrading from `v6.2.1` (see
- if you are using TypeScript and upgrading from `v6.2.1` (see
[#533](https://github.com/gpbl/react-day-picker/issues/533)), use the default

@@ -73,3 +126,3 @@ import:

```
* if you are using a custom CSS, consider that now the calendar table is inside
- if you are using a custom CSS, consider that now the calendar table is inside
a `div` with a `.DayPicker-Months` CSS class.

@@ -82,16 +135,16 @@

* Improved layout and style. Added `.DayPicker-Months` container.
* Added: [`renderWeek`](http://react-day-picker.js.org/api/DayPicker`renderWeek)
- Improved layout and style. Added `.DayPicker-Months` container.
- Added: [`renderWeek`](http://react-day-picker.js.org/api/DayPicker`renderWeek)
prop ([#497](https://github.com/gpbl/react-day-picker/issues/497) by
[jenshandersson](https://github.com/jenshandersson))
* Added:
- Added:
[`onTodayButtonClick`](http://react-day-picker.js.org/api/DayPicker#onTodayButtonClick)
prop ([#529](https://github.com/gpbl/react-day-picker/issues/529))
* Added:
- Added:
[`showWeekDays`](http://react-day-picker.js.org/api/DayPicker#showWeekDays)
prop. Set it to `false` to hide weekday names
* Added: `month` prop to
- Added: `month` prop to
[`navbarElement`](<(http://react-day-picker.js.org/api/DayPicker#navbarElement)>)
([#552](https://github.com/gpbl/react-day-picker/issues/552))
* Renamed `enableOutsideDays` prop to
- Renamed `enableOutsideDays` prop to
[`showOutsideDays`](<(http://react-day-picker.js.org/api/DayPicker#showOutsideDays)>)

@@ -101,11 +154,11 @@

* Fixed: multiple months navigation not working correctly in some cases
- Fixed: multiple months navigation not working correctly in some cases
([#556](https://github.com/gpbl/react-day-picker/issues/556) by
[hydrognomik](https://github.com/azhangstrata))
* Fixed: (Typescript) added again `DayModifiers` and `Modifiers` back to type
- Fixed: (Typescript) added again `DayModifiers` and `Modifiers` back to type
definitions file ([#526](https://github.com/gpbl/react-day-picker/issues/526)
by [azhangstrata](https://github.com/azhangstrata))
* Fixed: (Typescript) missing default export
- Fixed: (Typescript) missing default export
([#533](https://github.com/gpbl/react-day-picker/issues/533))
* Fixed: (a11y) removed `role="application"`
- Fixed: (a11y) removed `role="application"`
([#548](https://github.com/gpbl/react-day-picker/issues/548) by

@@ -118,3 +171,3 @@ [trezy](https://github.com/trezy))

* The moment.js requirement
- The moment.js requirement
[has been removed](https://github.com/gpbl/react-day-picker/pull/518), and you

@@ -145,3 +198,3 @@ should use

* You must pass additional props to the input component using the
- You must pass additional props to the input component using the
[`inputProps`](http://react-day-picker.js.org/api/DayPickerInput#inputProps)

@@ -165,13 +218,13 @@ prop. _This is not a breaking change if you are just using `placeholder` or

* New:
- New:
[`inputProps`](http://react-day-picker.js.org/api/DayPickerInput#inputProps)
prop to pass additional props to the input component
* New:
- New:
[`parseDate`](http://react-day-picker.js.org/api/DayPickerInput#parseDate) and
[`formatDate`](http://react-day-picker.js.org/api/DayPickerInput#formatDate)
props
* New:
- New:
[`inputProps`](http://react-day-picker.js.org/api/DayPickerInput#inputProps)
prop to pass additional props to the input component
* New:
- New:
[`overlayComponent`](http://react-day-picker.js.org/api/DayPickerInput#overlayComponent)

@@ -181,3 +234,3 @@ prop: useful to customize the overlay component

[wldcordeiro](https://github.com/wldcordeiro))
* New: allow to change `numberOfMonths`, `selectedDays` props from
- New: allow to change `numberOfMonths`, `selectedDays` props from
`dayPickerProps` ([#513](https://github.com/gpbl/react-day-picker/issues/513),

@@ -187,6 +240,6 @@ [#531](https://github.com/gpbl/react-day-picker/issues/531) by

days ([example](http://react-day-picker.js.org/examples/input-from-to)).
* New:
- New:
[`showOverlay`](http://react-day-picker.js.org/api/DayPickerInput#showOverlay)
prop: shows the overlay at the initial rendering (useful for styling)
* New: [`getInput`](http://react-day-picker.js.org/api/DayPickerInput#getInput)
- New: [`getInput`](http://react-day-picker.js.org/api/DayPickerInput#getInput)
and

@@ -196,5 +249,5 @@ [`getDayPicker`](http://react-day-picker.js.org/api/DayPickerInput#getDayPicker)

- Changed: clicking the Today Button will set the input value to today
* Changed: clicking the Today Button will set the input value to today
([#561](https://github.com/gpbl/react-day-picker/issues/561))
- Changed: removed `fixedWeek` prop. Use `dayPickerProps ={{ fixedWeek: true }}`
* Changed: removed `fixedWeek` prop. Use `dayPickerProps ={{ fixedWeek: true }}`
to restore it.

@@ -204,12 +257,12 @@

* Fixed: some modifiers were not passed down when using a custom `classNames`
- Fixed: some modifiers were not passed down when using a custom `classNames`
([#517](https://github.com/gpbl/react-day-picker/issues/517),
[#504](https://github.com/gpbl/react-day-picker/issues/504) by
[tume](https://github.com/tume))
* Fixed: focus behavior on Firefox
- Fixed: focus behavior on Firefox
([#525](https://github.com/gpbl/react-day-picker/issues/525) by
[martinmosko](https://github.com/martinmosko))
* Fixed: value not updated when changed in some cases
- Fixed: value not updated when changed in some cases
([#535](https://github.com/gpbl/react-day-picker/issues/535))
* Fixed: localization bug when using multiple languages
- Fixed: localization bug when using multiple languages
([#509](https://github.com/gpbl/react-day-picker/issues/509))

@@ -221,3 +274,3 @@

* Added: TypeScript definitions for DayPickerInput
- Added: TypeScript definitions for DayPickerInput
([#487](https://github.com/gpbl/react-day-picker/issues/487) by

@@ -229,8 +282,8 @@ [adidahiya](https://github.com/adidahiya) and

* Fixed: an issue with React 0.14
* Fixed: a console warning in React 16
- Fixed: an issue with React 0.14
- Fixed: a console warning in React 16
([#493](https://github.com/gpbl/react-day-picker/issues/493))
* `DayPickerInput` Fix an error when `format` is passed as array
- `DayPickerInput` Fix an error when `format` is passed as array
([#502](https://github.com/gpbl/react-day-picker/issues/502))
* `DayPickerInput` Fix update when receiving new props
- `DayPickerInput` Fix update when receiving new props
([#495](https://github.com/gpbl/react-day-picker/issues/495) by

@@ -241,6 +294,6 @@ [kradical](https://github.com/kradical))

* Added: React 16 as peer dependency
- Added: React 16 as peer dependency
([#498](https://github.com/gpbl/react-day-picker/issues/498) by
[brycehill](https://github.com/brycehill))
* Allow node consumers to remove propTypes for production builds
- Allow node consumers to remove propTypes for production builds
([#463](https://github.com/gpbl/react-day-picker/issues/463) by

@@ -251,3 +304,3 @@ [oigewan](https://github.com/oigewan))

* Fixed: disabled interaction in RTL
- Fixed: disabled interaction in RTL
([#471](https://github.com/gpbl/react-day-picker/issues/471) by

@@ -260,3 +313,3 @@ [edoshor](https://github.com/edoshor))

* Added new
- Added new
[`onDayMouseDown`](http://react-day-picker.js.org/docs/api.html#ondaymousedown)

@@ -270,8 +323,8 @@ and

* Fixed: before/after modifier not working as expected
- Fixed: before/after modifier not working as expected
([#451](https://github.com/gpbl/react-day-picker/issues/451))
* Fixed: changing some props would not update day cells
- Fixed: changing some props would not update day cells
([#452](https://github.com/gpbl/react-day-picker/issues/452) by
[oigewan](https://github.com/oigewan))
* Fixed: `classNames` may prevent clicking on outside days
- Fixed: `classNames` may prevent clicking on outside days
([#449](https://github.com/gpbl/react-day-picker/issues/449))

@@ -283,7 +336,7 @@

* Fixed: today button inside a form submits the form
- Fixed: today button inside a form submits the form
([#443](https://github.com/gpbl/react-day-picker/issues/443))
* Fixed: before/after modifiers not working as expected in some cases
- Fixed: before/after modifiers not working as expected in some cases
([#442](https://github.com/gpbl/react-day-picker/issues/442))
* `DayPickerInput` Fixed: allow multiple formats in `format` prop
- `DayPickerInput` Fixed: allow multiple formats in `format` prop
([#439](https://github.com/gpbl/react-day-picker/issues/439))

@@ -295,5 +348,5 @@

* Fixed: next and previous buttons not working via keyboard
- Fixed: next and previous buttons not working via keyboard
([#430](https://github.com/gpbl/react-day-picker/issues/430))
* Fixed: wrapper style cannot be set when using CSS modules
- Fixed: wrapper style cannot be set when using CSS modules
([#432](https://github.com/gpbl/react-day-picker/issues/432))

@@ -305,5 +358,5 @@

* `DayPickerInput` Call `onDayChange(undefined, {})` when user empties the input
- `DayPickerInput` Call `onDayChange(undefined, {})` when user empties the input
field. ([#423](https://github.com/gpbl/react-day-picker/issues/423))
* `DayPickerInput` Fixed: shown month was not updated when updating month in
- `DayPickerInput` Fixed: shown month was not updated when updating month in
`dayPickerProps` ([#425](https://github.com/gpbl/react-day-picker/issues/425))

@@ -319,3 +372,3 @@

* The container's HTML structure has changed: the interactive element used to
- The container's HTML structure has changed: the interactive element used to
focus the calendar has been moved into a wrapper to improve accessibility

@@ -335,3 +388,3 @@ ([#392](https://github.com/gpbl/react-day-picker/issues/392)):

* If you are styling with your own stylesheet, rename your `.DayPicker`
- If you are styling with your own stylesheet, rename your `.DayPicker`
selector to `.DayPicker-wrapper`:

@@ -344,8 +397,8 @@

* If you are using `classNames` with the `container` prop, rename the
- If you are using `classNames` with the `container` prop, rename the
`container` className to `wrapper`.
* The container element is now an `inline-block` element.
- The container element is now an `inline-block` element.
* When using `fromMonth`/`toMonth` props, navigation buttons now are rendered
- When using `fromMonth`/`toMonth` props, navigation buttons now are rendered
and hidden via CSS. Before, the buttons were not rendered at all, and it was

@@ -361,9 +414,9 @@ impossible to style them

* If you are styling with your own stylesheet, add a
- If you are styling with your own stylesheet, add a
`.DayPicker-NavButton--interactionDisabled` selector to your style with
`display: none`.
* If you are using `classNames`, add a `navButtonInteractionDisabled` to your
- If you are using `classNames`, add a `navButtonInteractionDisabled` to your
`classNames` with `display: none` to hide the buttons.
* Improved rendering performance using `shouldComponentUpdate` and
- Improved rendering performance using `shouldComponentUpdate` and
`PureComponent` ([#389](https://github.com/gpbl/react-day-picker/issues/389))

@@ -376,7 +429,6 @@

* Allow `{after, before}` modifiers in the same object
- Allow `{after, before}` modifiers in the same object
([#354](https://github.com/gpbl/react-day-picker/issues/354)). You can now
write before/after modifiers such as `disabledDays={ { before: aDate, after:
aDate }}`.
* **DayPickerInput**: added
write before/after modifiers such as `disabledDays={ { before: aDate, after: aDate }}`.
- **DayPickerInput**: added
[`clickUnselectsDay`](http://react-day-picker.js.org/docs/api-input.html#clickunselectsday)

@@ -388,11 +440,11 @@ prop to unselect and clear the input when clicking on a previously selected

* Fixed an issue where users were able to focus outside days
- Fixed an issue where users were able to focus outside days
([#400](https://github.com/gpbl/react-day-picker/issues/400) by
[oigewan](https://github.com/oigewan))
* Fixed an issue with Internet Explorer 11
- Fixed an issue with Internet Explorer 11
([#403](https://github.com/gpbl/react-day-picker/issues/403) by
[oigewan](https://github.com/oigewan))
* **a11y**: fixed a warning `You have an unlabeled element or control.` shown
- **a11y**: fixed a warning `You have an unlabeled element or control.` shown
with react-a11y ([#386](https://github.com/gpbl/react-day-picker/issues/386))
* **DayPickerInput**: fixed an issue when updating the `month`'s
- **DayPickerInput**: fixed an issue when updating the `month`'s
`dayPickerProps` value

@@ -407,5 +459,5 @@ ([#380](https://github.com/gpbl/react-day-picker/issues/380) by

* Removed prop types from production build
- Removed prop types from production build
([#349](https://github.com/gpbl/react-day-picker/issues/349))
* Include `DayPicker.Input` in the built file
- Include `DayPicker.Input` in the built file
([#383](https://github.com/gpbl/react-day-picker/issues/383))

@@ -419,3 +471,3 @@

* Bugfix for `DayPickerInput`: updated `value` prop now will be reflected in the
- Bugfix for `DayPickerInput`: updated `value` prop now will be reflected in the
component's state

@@ -437,3 +489,3 @@ ([#363](https://github.com/gpbl/react-day-picker/issues/363))

* New
- New
[`todayButton`](http://react-day-picker.js.org/docs/api-daypicker.html#todaybutton)

@@ -446,3 +498,3 @@ prop ([#329](https://github.com/gpbl/react-day-picker/issues/329)).

* New
- New
[`showWeekDays`](http://react-day-picker.js.org/docs/api-daypicker.html#showweekdays)

@@ -456,3 +508,3 @@ and

* New `daysOfWeek`
- New `daysOfWeek`
[modifiers type](http://react-day-picker.js.org/docs/modifiers.html) to match

@@ -475,3 +527,3 @@ days of the weeks

* Bugfix: `isBeforeDay`/`isAfterDay` functions where not exported correctly
- Bugfix: `isBeforeDay`/`isAfterDay` functions where not exported correctly
([#327](https://github.com/gpbl/react-day-picker/pull/327))

@@ -481,3 +533,3 @@

* Bugfix: `aria` role in Week element
- Bugfix: `aria` role in Week element
([#322](https://github.com/gpbl/react-day-picker/pull/322) by

@@ -488,3 +540,3 @@ [emily-plummer](https://github.com/emily-plummer))

* Expose [ModifiersUtils](http://react-day-picker.js.org/ModifiersUtils.html)
- Expose [ModifiersUtils](http://react-day-picker.js.org/ModifiersUtils.html)
functions ([#309](https://github.com/gpbl/react-day-picker/pull/309) by

@@ -497,9 +549,9 @@ [cwmoo740](https://github.com/cwmoo740))

* Include Typescript Type Definitions
- Include Typescript Type Definitions
([#303](https://github.com/gpbl/react-day-picker/pull/303))
* Added: a new
- Added: a new
[`modifiersStyles`](http://react-day-picker.js.org/docs/api-daypicker.html#modifiersstyles)
prop to add inline style to the days matching the given modifiers (see
[`example`](http://react-day-picker.js.org/docs/api-daypicker.html#modifiersstyles)).
* Added: `isDayBefore`, `isDayAfter` functions to
- Added: `isDayBefore`, `isDayAfter` functions to
[DateUtils](http://react-day-picker.js.org/DateUtils.html).

@@ -509,5 +561,5 @@

* Functions were not considered in arrays of modifiers
- Functions were not considered in arrays of modifiers
([#301](https://github.com/gpbl/react-day-picker/pull/301))
* Fixes possible issues when comparing days with different timezones
- Fixes possible issues when comparing days with different timezones
([#307](https://github.com/gpbl/react-day-picker/pull/307))

@@ -517,10 +569,10 @@

* Fixed `PropTypes` warnings in React 15.5.
- Fixed `PropTypes` warnings in React 15.5.
## [v5.2.0](https://github.com/gpbl/react-day-picker/tree/v5.2.0) (2017-03-09)
* Allow overriding `today` modifier
- Allow overriding `today` modifier
([#279](https://github.com/gpbl/react-day-picker/pull/279) by
[maxdubrinsky](https://github.com/maxdubrinsky))
* Pass React Components to
- Pass React Components to
[`navBarElement`](http://react-day-picker.js.org/docs/api-daypicker.html#navBarElement),

@@ -532,3 +584,3 @@ [`captionElement`](http://react-day-picker.js.org/docs/api-daypicker.html#captionElement),

* Fixed `aria` roles for weekdays and months HTML elements
- Fixed `aria` roles for weekdays and months HTML elements
([#276](https://github.com/gpbl/react-day-picker/pull/276) by

@@ -539,11 +591,11 @@ [oigewan](https://github.com/oigewan))

* Fixed: an issue with keyboard navigation when using `classNames` prop
- Fixed: an issue with keyboard navigation when using `classNames` prop
([#269](https://github.com/gpbl/react-day-picker/pull/269) by
[oigewan](https://github.com/oigewan),
[#275](https://github.com/gpbl/react-day-picker/pull/275))
* Fixed: installation issue with bower
- Fixed: installation issue with bower
## [v5.1.1](https://github.com/gpbl/react-day-picker/tree/v5.1.1) (2017-03-03)
* New
- New
[`classNames`](http://react-day-picker.js.org/docs/api-daypicker.html#classnames)

@@ -556,3 +608,3 @@ prop ([#264](https://github.com/gpbl/react-day-picker/issues/264)).

* New [`month`](http://react-day-picker.js.org/docs/api-daypicker.html#month)
- New [`month`](http://react-day-picker.js.org/docs/api-daypicker.html#month)
prop ([#263](https://github.com/gpbl/react-day-picker/issues/263)).

@@ -563,3 +615,3 @@

* Added: `aria-label` attributes to the navigation bar with the new
- Added: `aria-label` attributes to the navigation bar with the new
[`labels`](http://react-day-picker.js.org/docs/api-daypicker.html#labels) prop

@@ -572,3 +624,3 @@ ([#258](https://github.com/gpbl/react-day-picker/issues/258)).

* **New modifiers value types**
- **New modifiers value types**
([#254](https://github.com/gpbl/react-day-picker/issues/254))

@@ -588,3 +640,3 @@

* **Breaking change** Event handlers signature has changed
- **Breaking change** Event handlers signature has changed
([#256](https://github.com/gpbl/react-day-picker/issues/256))

@@ -607,3 +659,3 @@

* **Breaking change** Use
- **Breaking change** Use
[`containerProps`](http://react-day-picker.js.org/docs/api-daypicker.html#containerprops)

@@ -625,6 +677,6 @@ to pass props to the container `div` element. Before, any prop was passed to

* Pass the day's modifiers to the `renderDay` prop function
- Pass the day's modifiers to the `renderDay` prop function
([#237](https://github.com/gpbl/react-day-picker/issues/237))
* **Breaking change** Updating `initialMonth` will not show anymore a different
- **Breaking change** Updating `initialMonth` will not show anymore a different
month after the first mount

@@ -636,3 +688,3 @@ ([#169](https://github.com/gpbl/react-day-picker/issues/169))

* **Breaking change** Use `lang` HTML attribute instead of a specific CSS class
- **Breaking change** Use `lang` HTML attribute instead of a specific CSS class
name.

@@ -656,3 +708,3 @@

* Fixed [an issue](https://github.com/gpbl/react-day-picker/issues/227) with IE
- Fixed [an issue](https://github.com/gpbl/react-day-picker/issues/227) with IE
and older Safari.

@@ -662,3 +714,3 @@

* New `months`, `weekdaysLong`, `weekdaysShort`, `firstDayOfWeek` props to
- New `months`, `weekdaysLong`, `weekdaysShort`, `firstDayOfWeek` props to
localize the component.

@@ -675,3 +727,3 @@

* Fixed [a bug](https://github.com/gpbl/react-day-picker/issues/224) with
- Fixed [a bug](https://github.com/gpbl/react-day-picker/issues/224) with
MomentLocaleUtils.

@@ -681,6 +733,6 @@

* Fixed [an issue](https://github.com/gpbl/react-day-picker/issues/207) with
- Fixed [an issue](https://github.com/gpbl/react-day-picker/issues/207) with
weekdays labels ([#220](https://github.com/gpbl/react-day-picker/pull/220) by
[makenosound](https://github.com/makenosound)).
* Removed `weekdayComponent` and `navbarComponent` props (deprecated from
- Removed `weekdayComponent` and `navbarComponent` props (deprecated from
[v2.3.0](#v230-2016-06-30))

@@ -700,3 +752,3 @@

* Build dist files as UMD module
- Build dist files as UMD module
([#216](https://github.com/gpbl/react-day-picker/pull/216) by

@@ -707,6 +759,6 @@ [pguimera](https://github.com/pguimera)).

* Added `pageNavigation` prop
- Added `pageNavigation` prop
([#196](https://github.com/gpbl/react-day-picker/pull/196) by
[zaygraveyard](https://github.com/zaygraveyard)).
* Improved behavior of `initialMonth`
- Improved behavior of `initialMonth`
([#198](https://github.com/gpbl/react-day-picker/pull/198) by

@@ -726,6 +778,6 @@ [zaygraveyard](https://github.com/zaygraveyard)).

* Added `navbarElement` and `weekdayElement` prop
- Added `navbarElement` and `weekdayElement` prop
([#179](https://github.com/gpbl/react-day-picker/pull/179) by
[boatkorachal](https://github.com/boatkorachal)).
* Added `onDayFocus` prop
- Added `onDayFocus` prop
([#185](https://github.com/gpbl/react-day-picker/pull/185) by

@@ -759,3 +811,3 @@ [johannesd](https://github.com/johannesd)).

* Added
- Added
[`weekdayComponent`](http://react-day-picker.js.org/docs/api-daypicker.html#weekdaycomponent-component)

@@ -765,3 +817,3 @@ prop ([#172](https://github.com/gpbl/react-day-picker/pull/172) by

prop to use a custom component for rendering the weekday cells in the header.
* Added
- Added
[`navbarComponent`](http://react-day-picker.js.org/docs/api-daypicker.html#navbarcomponent-component)

@@ -800,3 +852,3 @@ prop ([#173](https://github.com/gpbl/react-day-picker/pull/173) by

* The `onDay*` event handlers receive as third argument an object of modifiers
- The `onDay*` event handlers receive as third argument an object of modifiers
instead of an array.

@@ -834,3 +886,3 @@

* Removed `onDayTouchTap`. Use `onDayClick` instead. If you need more
- Removed `onDayTouchTap`. Use `onDayClick` instead. If you need more
granularity over touch events, you can use the new `onDayTouchStart` and

@@ -840,3 +892,3 @@ `onDayTouchEnd` props. See

* Fixed import with CommonJS modules
- Fixed import with CommonJS modules
([#136](https://github.com/gpbl/react-day-picker/issues/136)).

@@ -849,3 +901,3 @@

* New `formatDay` function in
- New `formatDay` function in
[LocaleUtils](http://react-day-picker.js.org/docs/utils-locale.html).

@@ -866,3 +918,3 @@

* New
- New
[`disabledDays`](http://react-day-picker.js.org/docs/api-daypicker.html#disabledays-prop)

@@ -883,3 +935,3 @@ and

}
/>;
/>
```

@@ -893,6 +945,6 @@

disabledDays={day => isDayDisabled(day)}
/>;
/>
```
* Added
- Added
[`reverseMonths`](http://react-day-picker.js.org/docs/api-daypicker.html#reversemonths-prop)

@@ -902,3 +954,3 @@ prop to render the most recent month first.

[sonrtomas](sonrtomas))
* Added
- Added
[`onDayKeyDown`](http://react-day-picker.js.org/docs/api-daypicker.html#ondaykeydown-prop),

@@ -911,6 +963,6 @@ [`onDayTouchStart`](http://react-day-picker.js.org/docs/api-daypicker.html#ondaytouchstart-prop),

* Navigate between weeks or years using left/right or up/down arrow keys
- Navigate between weeks or years using left/right or up/down arrow keys
([#132](https://github.com/gpbl/react-day-picker/pull/132) by
[limscoder](https://github.com/limscoder))
* Added various `aria-*` attributes
- Added various `aria-*` attributes
([#132](https://github.com/gpbl/react-day-picker/pull/132) by

@@ -921,3 +973,3 @@ [limscoder](https://github.com/limscoder))

* Navigation with keyboard when using `fromMonth` or `endMonth`
- Navigation with keyboard when using `fromMonth` or `endMonth`

@@ -939,9 +991,9 @@ ---

* Support for Babel 6
- Support for Babel 6
([#90](https://github.com/gpbl/react-day-picker/issues/90))
* See this [known issue](https://github.com/gpbl/react-day-picker/issues/136)
* HTML props are spread to container tag, so to support `onBlur`, `onFocus`,
- See this [known issue](https://github.com/gpbl/react-day-picker/issues/136)
- HTML props are spread to container tag, so to support `onBlur`, `onFocus`,
etc. ([#122](https://github.com/gpbl/react-day-picker/issues/122),
[#123](https://github.com/gpbl/react-day-picker/issues/123))
* Better RTL support for month navigation
- Better RTL support for month navigation
([#125](https://github.com/gpbl/react-day-picker/issues/125))

@@ -953,3 +1005,3 @@

* Use a custom caption element with the new
- Use a custom caption element with the new
[`captionElement`](http://react-day-picker.js.org/docs/api-daypicker.html#captionelement-element)

@@ -964,8 +1016,8 @@ prop. A custom caption element is useful, for example, to create a year/month

* Improved navigation when clicking on outside days
- Improved navigation when clicking on outside days
([#112](https://github.com/gpbl/react-day-picker/issues/112), see also
[this example](http://react-day-picker.js.org/examples/months-restrict-navigation.html))
* New `addMonths` function in
- New `addMonths` function in
[DateUtils](http://react-day-picker.js.org/DateUtils.html)
* Added a style definition to package.json
- Added a style definition to package.json
([#105](https://github.com/gpbl/react-day-picker/issues/105), thanks

@@ -976,7 +1028,7 @@ @webbushka)

* Make the component working again with React ~0.13
- Make the component working again with React ~0.13
([#108](https://github.com/gpbl/react-day-picker/issues/108))
* Fixed: a bug when clicking on outside days when `fromMonth` or `toMonth` were
- Fixed: a bug when clicking on outside days when `fromMonth` or `toMonth` were
set ([#97](https://github.com/gpbl/react-day-picker/issues/97))
* Replace a wrong `attr` tag with the right `abbr` in the weekdays row –
- Replace a wrong `attr` tag with the right `abbr` in the weekdays row –
https://github.com/gpbl/react-day-picker/issues/33#issuecomment-159751186. ⚠️

@@ -998,4 +1050,4 @@ Please note that the component may now use the CSS defined for `abbr` tags.

* `isSameDay` in DateUtils now accepts `null` or `undefined` arguments
* Added bower support
- `isSameDay` in DateUtils now accepts `null` or `undefined` arguments
- Added bower support

@@ -1014,3 +1066,3 @@ ### [v1.1.1](https://github.com/gpbl/react-day-picker/tree/v1.1.1) (2015-11-11)

* New `fromMonth` and `toMonth` props. Use the
- New `fromMonth` and `toMonth` props. Use the
[`fromMonth`](http://react-day-picker.js.org/docs/api-daypicker.html#frommonth-date)

@@ -1021,4 +1073,4 @@ and

[this example](http://react-day-picker.js.org/examples/months-restrict-navigation.html).
* `dateUtils` includes some useful function to set custom modifiers
* `localeUtils` are the default functions used to localize the Day Picker in
- `dateUtils` includes some useful function to set custom modifiers
- `localeUtils` are the default functions used to localize the Day Picker in
english. See

@@ -1060,3 +1112,3 @@ https://github.com/gpbl/react-day-picker/issues/46#issuecomment-153498039 for

* Improve the navigation between months when `numberOfMonths` is greater than 1
- Improve the navigation between months when `numberOfMonths` is greater than 1
([#37](https://github.com/gpbl/react-day-picker/issues/37))

@@ -1066,3 +1118,3 @@

* Months may jump forward when clicking on days when `numberOfMonths` is greater
- Months may jump forward when clicking on days when `numberOfMonths` is greater
than 1 ([#38](https://github.com/gpbl/react-day-picker/issues/38))

@@ -1072,3 +1124,3 @@

* New feature: onCaptionClick
- New feature: onCaptionClick
[\#31](https://github.com/gpbl/react-day-picker/pull/31)

@@ -1081,5 +1133,5 @@ ([adambbecker](https://github.com/adambbecker))

* EnableOutsideDays keeps focus on wrong cell
- EnableOutsideDays keeps focus on wrong cell
[\#29](https://github.com/gpbl/react-day-picker/issues/29)
* October broken on Firefox Nightly
- October broken on Firefox Nightly
[\#18](https://github.com/gpbl/react-day-picker/issues/18)

@@ -1092,14 +1144,14 @@

* [#27] Removed the dependency from moment.js. Events and props work **only**
- [#27] Removed the dependency from moment.js. Events and props work **only**
with native `Date` object. To localize the Day Picker with moment.js (or
another library), follow [this page](http://react-day-picker.js.org/#tips)
* Class names have been updated (objects are now CamelCase). As example, please
- Class names have been updated (objects are now CamelCase). As example, please
see
[the updated CSS file](https://github.com/gpbl/react-day-picker/blob/master/site/src/style/DayPicker.scss).
* [#27] All rendered tags are now `div` or `span`. Use CSS to style the
- [#27] All rendered tags are now `div` or `span`. Use CSS to style the
daypicker as table.
* A `today` modifier is added automatically
* Event handlers receive the event as first argument. For example:
- A `today` modifier is added automatically
- Event handlers receive the event as first argument. For example:
`onDayClick(e, day, modifiers)` instead of `onDayClick(day, modifiers, e)`
* `onNextMonthClick` and `onNextMonthClick` props have been removed. Use
- `onNextMonthClick` and `onNextMonthClick` props have been removed. Use
`onMonthChange` instead.

@@ -1,2 +0,2 @@

!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):"object"==typeof exports?exports.DayPicker=t(require("react")):e.DayPicker=t(e.React)}("undefined"!=typeof self?self:this,function(e){return function(e){function t(o){if(n[o])return n[o].exports;var r=n[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,o){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:o})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=9)}([function(t,n){t.exports=e},function(e,t){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.LEFT=37,t.UP=38,t.RIGHT=39,t.DOWN=40,t.ENTER=13,t.SPACE=32,t.ESC=27,t.TAB=9},function(e,t,n){"use strict";function o(e){return new Date(e.getTime())}function r(e,t){var n=o(e);return n.setMonth(e.getMonth()+t),n}function a(e,t){return!(!e||!t)&&(e.getDate()===t.getDate()&&e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear())}function s(e,t){return o(e).setHours(0,0,0,0)<o(t).setHours(0,0,0,0)}function i(e,t){return o(e).setHours(0,0,0,0)>o(t).setHours(0,0,0,0)}function u(e){var t=new Date;return t.setHours(0,0,0,0),s(e,t)}function l(e){var t=new Date((new Date).getTime()+864e5);return t.setHours(0,0,0,0),e>=t}function c(e,t,n){var r=o(e);return r.setHours(0,0,0,0),i(r,t)&&s(r,n)||i(r,n)&&s(r,t)}function p(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{from:null,to:null},n=t.from,o=t.to;return n?n&&o&&a(n,o)&&a(e,n)?(n=null,o=null):o&&s(e,n)?n=e:o&&a(e,o)?(n=e,o=e):(o=e,s(o,n)&&(o=n,n=e)):n=e,{from:n,to:o}}function f(e,t){var n=t.from,o=t.to;return n&&a(e,n)||o&&a(e,o)||n&&o&&c(e,n,o)}function h(e){var t=o(e);return t.setHours(0,0,0),t.setDate(t.getDate()+4-(t.getDay()||7)),Math.ceil(((t-new Date(t.getFullYear(),0,1))/864e5+1)/7)}Object.defineProperty(t,"__esModule",{value:!0}),t.clone=o,t.addMonths=r,t.isSameDay=a,t.isDayBefore=s,t.isDayAfter=i,t.isPastDay=u,t.isFutureDay=l,t.isDayBetween=c,t.addDayToRange=p,t.isDayInRange=f,t.getWeekNumber=h,t.default={addDayToRange:p,addMonths:r,clone:o,getWeekNumber:h,isDayAfter:i,isDayBefore:s,isDayBetween:c,isDayInRange:f,isFutureDay:l,isPastDay:u,isSameDay:a}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={container:"DayPicker",wrapper:"DayPicker-wrapper",interactionDisabled:"DayPicker--interactionDisabled",months:"DayPicker-Months",month:"DayPicker-Month",navBar:"DayPicker-NavBar",navButtonPrev:"DayPicker-NavButton DayPicker-NavButton--prev",navButtonNext:"DayPicker-NavButton DayPicker-NavButton--next",navButtonInteractionDisabled:"DayPicker-NavButton--interactionDisabled",caption:"DayPicker-Caption",weekdays:"DayPicker-Weekdays",weekdaysRow:"DayPicker-WeekdaysRow",weekday:"DayPicker-Weekday",body:"DayPicker-Body",week:"DayPicker-Week",weekNumber:"DayPicker-WeekNumber",day:"DayPicker-Day",footer:"DayPicker-Footer",todayButton:"DayPicker-TodayButton",today:"today",selected:"selected",disabled:"disabled",outside:"outside"}},function(e,t,n){"use strict";function o(e){e.preventDefault(),e.stopPropagation()}function r(e){return new Date(e.getFullYear(),e.getMonth(),1,12)}function a(e){var t=r(e);return t.setMonth(t.getMonth()+1),t.setDate(t.getDate()-1),t.getDate()}function s(e){var t=y({},e.modifiers);return e.selectedDays&&(t[e.classNames.selected]=e.selectedDays),e.disabledDays&&(t[e.classNames.disabled]=e.disabledDays),t}function i(e){var t=e.firstDayOfWeek,n=e.locale,o=void 0===n?"en":n,r=e.localeUtils,a=void 0===r?{}:r;return isNaN(t)?a.getFirstDayOfWeek?a.getFirstDayOfWeek(o):0:t}function u(e){return!!(e&&e.from&&e.to)}function l(e,t){return t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())}function c(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(0,m.getFirstDayOfWeek)(),n=arguments[2],o=a(e),r=[],s=[],i=[],u=1;u<=o;u+=1)r.push(new Date(e.getFullYear(),e.getMonth(),u,12));r.forEach(function(e){s.length>0&&e.getDay()===t&&(i.push(s),s=[]),s.push(e),r.indexOf(e)===r.length-1&&i.push(s)});for(var l=i[0],c=7-l.length;c>0;c-=1){var p=(0,v.clone)(l[0]);p.setDate(l[0].getDate()-1),l.unshift(p)}for(var f=i[i.length-1],h=f.length;h<7;h+=1){var d=(0,v.clone)(f[f.length-1]);d.setDate(f[f.length-1].getDate()+1),f.push(d)}if(n&&i.length<6)for(var y=void 0,k=i.length;k<6;k+=1){y=i[i.length-1];for(var b=y[y.length-1],D=[],g=0;g<7;g+=1){var w=(0,v.clone)(b);w.setDate(b.getDate()+g+1),D.push(w)}i.push(D)}return i}function p(e){var t=(0,v.clone)(e);return t.setDate(1),t.setHours(12,0,0,0),t}function f(e,t){var n=void 0;n=t===b.default?t.day+"--"+t.outside:""+t.outside;var o=t.day.replace(/ /g,"."),r=n.replace(/ /g,"."),a="."+o+":not(."+r+")";return e.querySelectorAll(a)}function h(e){return Array.prototype.slice.call(e,0)}function d(e,t){return Object.prototype.hasOwnProperty.call(e,t)}Object.defineProperty(t,"__esModule",{value:!0});var y=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e};t.cancelEvent=o,t.getFirstDayOfMonth=r,t.getDaysInMonth=a,t.getModifiersFromProps=s,t.getFirstDayOfWeekFromProps=i,t.isRangeOfDates=u,t.getMonthsDiff=l,t.getWeekArray=c,t.startOfMonth=p,t.getDayNodes=f,t.nodeListToArray=h,t.hasOwnProp=d;var v=n(3),m=n(6),k=n(4),b=function(e){return e&&e.__esModule?e:{default:e}}(k)},function(e,t,n){"use strict";function o(e){return e.toDateString()}function r(e){return p[e.getMonth()]+" "+e.getFullYear()}function a(e){return c[e]}function s(e){return l[e]}function i(){return 0}function u(){return p}Object.defineProperty(t,"__esModule",{value:!0}),t.formatDay=o,t.formatMonthTitle=r,t.formatWeekdayShort=a,t.formatWeekdayLong=s,t.getFirstDayOfWeek=i,t.getMonths=u;var l=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],c=["Su","Mo","Tu","We","Th","Fr","Sa"],p=["January","February","March","April","May","June","July","August","September","October","November","December"];t.default={formatDay:o,formatMonthTitle:r,formatWeekdayShort:a,formatWeekdayLong:s,getFirstDayOfWeek:i,getMonths:u}},function(e,t,n){"use strict";function o(e,t){return!!t&&(Array.isArray(t)?t:[t]).some(function(t){return!!t&&(t instanceof Date?(0,a.isSameDay)(e,t):(0,s.isRangeOfDates)(t)?(0,a.isDayInRange)(e,t):t.after&&t.before&&(0,a.isDayAfter)(t.before,t.after)?(0,a.isDayAfter)(e,t.after)&&(0,a.isDayBefore)(e,t.before):t.after&&t.before&&((0,a.isDayAfter)(t.after,t.before)||(0,a.isSameDay)(t.after,t.before))?(0,a.isDayAfter)(e,t.after)||(0,a.isDayBefore)(e,t.before):t.after?(0,a.isDayAfter)(e,t.after):t.before?(0,a.isDayBefore)(e,t.before):t.daysOfWeek?t.daysOfWeek.some(function(t){return e.getDay()===t}):"function"==typeof t&&t(e))})}function r(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(t).reduce(function(n,r){var a=t[r];return o(e,a)&&n.push(r),n},[])}Object.defineProperty(t,"__esModule",{value:!0}),t.dayMatchesModifier=o,t.getModifiersForDay=r;var a=n(3),s=n(5);t.default={dayMatchesModifier:o,getModifiersForDay:r}},function(e,t,n){"use strict";function o(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t){var n={};for(var o in e)t.indexOf(o)>=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},c=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),p=n(0),f=r(p),h=n(1),d=(r(h),n(10)),y=r(d),v=n(11),m=r(v),k=n(12),b=r(k),D=n(15),g=r(D),w=n(5),M=o(w),P=n(3),O=o(P),N=n(6),C=o(N),E=n(7),_=o(E),j=n(4),x=r(j),T=n(2),F=function(e){function t(e){s(this,t);var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return S.call(n),n.state=n.getStateFromProps(e),n}return u(t,e),c(t,[{key:"componentWillReceiveProps",value:function(e){this.props.month!==e.month&&this.setState(this.getStateFromProps(e))}},{key:"getNextNavigableMonth",value:function(){return O.addMonths(this.state.currentMonth,this.props.numberOfMonths)}},{key:"getPreviousNavigableMonth",value:function(){return O.addMonths(this.state.currentMonth,-1)}},{key:"allowPreviousMonth",value:function(){var e=O.addMonths(this.state.currentMonth,-1);return this.allowMonth(e)}},{key:"allowNextMonth",value:function(){var e=O.addMonths(this.state.currentMonth,this.props.numberOfMonths);return this.allowMonth(e)}},{key:"allowMonth",value:function(e){var t=this.props,n=t.fromMonth,o=t.toMonth;return!(!t.canChangeMonth||n&&M.getMonthsDiff(n,e)<0||o&&M.getMonthsDiff(o,e)>0)}},{key:"allowYearChange",value:function(){return this.props.canChangeMonth}},{key:"showMonth",value:function(e,t){var n=this;this.allowMonth(e)&&this.setState({currentMonth:M.startOfMonth(e)},function(){t&&t(),n.props.onMonthChange&&n.props.onMonthChange(n.state.currentMonth)})}},{key:"showNextYear",value:function(){if(this.allowYearChange()){var e=O.addMonths(this.state.currentMonth,12);this.showMonth(e)}}},{key:"showPreviousYear",value:function(){if(this.allowYearChange()){var e=O.addMonths(this.state.currentMonth,-12);this.showMonth(e)}}},{key:"focusFirstDayOfMonth",value:function(){M.getDayNodes(this.dayPicker,this.props.classNames)[0].focus()}},{key:"focusLastDayOfMonth",value:function(){var e=M.getDayNodes(this.dayPicker,this.props.classNames);e[e.length-1].focus()}},{key:"focusPreviousDay",value:function(e){var t=this,n=M.getDayNodes(this.dayPicker,this.props.classNames),o=M.nodeListToArray(n).indexOf(e);-1!==o&&(0===o?this.showPreviousMonth(function(){return t.focusLastDayOfMonth()}):n[o-1].focus())}},{key:"focusNextDay",value:function(e){var t=this,n=M.getDayNodes(this.dayPicker,this.props.classNames),o=M.nodeListToArray(n).indexOf(e);-1!==o&&(o===n.length-1?this.showNextMonth(function(){return t.focusFirstDayOfMonth()}):n[o+1].focus())}},{key:"focusNextWeek",value:function(e){var t=this,n=M.getDayNodes(this.dayPicker,this.props.classNames),o=M.nodeListToArray(n).indexOf(e);o>n.length-8?this.showNextMonth(function(){var e=n.length-o,r=7-e;M.getDayNodes(t.dayPicker,t.props.classNames)[r].focus()}):n[o+7].focus()}},{key:"focusPreviousWeek",value:function(e){var t=this,n=M.getDayNodes(this.dayPicker,this.props.classNames),o=M.nodeListToArray(n).indexOf(e);o<=6?this.showPreviousMonth(function(){var e=M.getDayNodes(t.dayPicker,t.props.classNames);e[e.length-7+o].focus()}):n[o-7].focus()}},{key:"handleOutsideDayClick",value:function(e){var t=this.state.currentMonth,n=this.props.numberOfMonths,o=M.getMonthsDiff(t,e);o>0&&o>=n?this.showNextMonth():o<0&&this.showPreviousMonth()}},{key:"renderNavbar",value:function(){var e=this.props,t=e.labels,n=e.locale,o=e.localeUtils,r=e.canChangeMonth,s=e.navbarElement,i=a(e,["labels","locale","localeUtils","canChangeMonth","navbarElement"]);if(!r)return null;var u={month:this.state.currentMonth,classNames:this.props.classNames,className:this.props.classNames.navBar,nextMonth:this.getNextNavigableMonth(),previousMonth:this.getPreviousNavigableMonth(),showPreviousButton:this.allowPreviousMonth(),showNextButton:this.allowNextMonth(),onNextClick:this.showNextMonth,onPreviousClick:this.showPreviousMonth,dir:i.dir,labels:t,locale:n,localeUtils:o};return f.default.isValidElement(s)?f.default.cloneElement(s,u):f.default.createElement(s,u)}},{key:"renderMonths",value:function(){for(var e=[],t=M.getFirstDayOfWeekFromProps(this.props),n=0;n<this.props.numberOfMonths;n+=1){var o=O.addMonths(this.state.currentMonth,n);e.push(f.default.createElement(b.default,l({key:n},this.props,{month:o,firstDayOfWeek:t,onDayKeyDown:this.handleDayKeyDown,onDayClick:this.handleDayClick})))}return this.props.reverseMonths&&e.reverse(),e}},{key:"renderFooter",value:function(){return this.props.todayButton?f.default.createElement("div",{className:this.props.classNames.footer},this.renderTodayButton()):null}},{key:"renderTodayButton",value:function(){return f.default.createElement("button",{type:"button",tabIndex:0,className:this.props.classNames.todayButton,"aria-label":this.props.todayButton,onClick:this.handleTodayButtonClick},this.props.todayButton)}},{key:"render",value:function(){var e=this,t=this.props.classNames.container;return this.props.onDayClick||(t=t+" "+this.props.classNames.interactionDisabled),this.props.className&&(t=t+" "+this.props.className),f.default.createElement("div",l({},this.props.containerProps,{className:t,ref:function(t){return e.dayPicker=t},lang:this.props.locale}),f.default.createElement("div",{className:this.props.classNames.wrapper,tabIndex:this.props.canChangeMonth&&this.props.tabIndex?this.props.tabIndex:-1,onKeyDown:this.handleKeyDown,onFocus:this.props.onFocus,onBlur:this.props.onBlur},this.renderNavbar(),f.default.createElement("div",{className:this.props.classNames.months},this.renderMonths()),this.renderFooter()))}}]),t}(p.Component);F.VERSION="7.1.4",F.defaultProps={classNames:x.default,tabIndex:0,initialMonth:new Date,numberOfMonths:1,labels:{previousMonth:"Previous Month",nextMonth:"Next Month"},locale:"en",localeUtils:C,showOutsideDays:!1,enableOutsideDaysClick:!0,fixedWeeks:!1,canChangeMonth:!0,reverseMonths:!1,pagedNavigation:!1,showWeekNumbers:!1,showWeekDays:!0,renderDay:function(e){return e.getDate()},renderWeek:function(e){return e},weekdayElement:f.default.createElement(g.default,null),navbarElement:f.default.createElement(m.default,{classNames:x.default}),captionElement:f.default.createElement(y.default,{classNames:x.default})};var S=function(){var e=this;this.getStateFromProps=function(t){var n=M.startOfMonth(t.month||t.initialMonth),o=n;if(t.pagedNavigation&&t.numberOfMonths>1&&t.fromMonth){var r=M.getMonthsDiff(t.fromMonth,o);o=O.addMonths(t.fromMonth,Math.floor(r/t.numberOfMonths)*t.numberOfMonths)}else t.toMonth&&t.numberOfMonths>1&&M.getMonthsDiff(o,t.toMonth)<=0&&(o=O.addMonths(t.toMonth,1-e.props.numberOfMonths));return{currentMonth:o}},this.dayPicker=null,this.showNextMonth=function(t){if(e.allowNextMonth()){var n=e.props.pagedNavigation?e.props.numberOfMonths:1,o=O.addMonths(e.state.currentMonth,n);e.showMonth(o,t)}},this.showPreviousMonth=function(t){if(e.allowPreviousMonth()){var n=e.props.pagedNavigation?e.props.numberOfMonths:1,o=O.addMonths(e.state.currentMonth,-n);e.showMonth(o,t)}},this.handleKeyDown=function(t){switch(t.persist(),t.keyCode){case T.LEFT:e.showPreviousMonth();break;case T.RIGHT:e.showNextMonth();break;case T.UP:e.showPreviousYear();break;case T.DOWN:e.showNextYear()}e.props.onKeyDown&&e.props.onKeyDown(t)},this.handleDayKeyDown=function(t,n,o){switch(o.persist(),o.keyCode){case T.LEFT:M.cancelEvent(o),e.focusPreviousDay(o.target);break;case T.RIGHT:M.cancelEvent(o),e.focusNextDay(o.target);break;case T.UP:M.cancelEvent(o),e.focusPreviousWeek(o.target);break;case T.DOWN:M.cancelEvent(o),e.focusNextWeek(o.target);break;case T.ENTER:case T.SPACE:M.cancelEvent(o),e.props.onDayClick&&e.handleDayClick(t,n,o)}e.props.onDayKeyDown&&e.props.onDayKeyDown(t,n,o)},this.handleDayClick=function(t,n,o){o.persist(),n[e.props.classNames.outside]&&e.props.enableOutsideDaysClick&&e.handleOutsideDayClick(t),e.props.onDayClick&&e.props.onDayClick(t,n,o)},this.handleTodayButtonClick=function(t){var n=new Date,o=new Date(n.getFullYear(),n.getMonth());e.showMonth(o),t.target.blur(),e.props.onTodayButtonClick&&(t.persist(),e.props.onTodayButtonClick(new Date(n.getFullYear(),n.getMonth(),n.getDate()),_.getModifiersForDay(n,e.props.modifiers),t))}};t.default=F,F.propTypes={},F.DateUtils=O,F.LocaleUtils=C,F.ModifiersUtils=_},function(e,t,n){"use strict";var o=n(8).default;o.Input=n(16).default,e.exports=o},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),u=n(0),l=o(u),c=n(1),p=(o(c),n(6)),f=o(p),h=n(2),d=function(e){function t(e){r(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleKeyUp=n.handleKeyUp.bind(n),n}return s(t,e),i(t,[{key:"shouldComponentUpdate",value:function(e){return e.locale!==this.props.locale||e.classNames!==this.props.classNames||e.date.getMonth()!==this.props.date.getMonth()||e.date.getFullYear()!==this.props.date.getFullYear()}},{key:"handleKeyUp",value:function(e){e.keyCode===h.ENTER&&this.props.onClick(e)}},{key:"render",value:function(){var e=this.props,t=e.classNames,n=e.date,o=e.months,r=e.locale,a=e.localeUtils,s=e.onClick;return l.default.createElement("div",{className:t.caption,role:"heading"},l.default.createElement("div",{onClick:s,onKeyUp:this.handleKeyUp},o?o[n.getMonth()]+" "+n.getFullYear():a.formatMonthTitle(n,r)))}}]),t}(u.Component);d.defaultProps={localeUtils:f.default},t.default=d,d.propTypes={}},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),u=n(0),l=o(u),c=n(1),p=(o(c),n(4)),f=o(p),h=n(2),d=function(e){function t(){var e,n,o,s;r(this,t);for(var i=arguments.length,u=Array(i),l=0;l<i;l++)u[l]=arguments[l];return n=o=a(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(u))),o.handleNextClick=function(){o.props.onNextClick&&o.props.onNextClick()},o.handlePreviousClick=function(){o.props.onPreviousClick&&o.props.onPreviousClick()},o.handleNextKeyDown=function(e){e.keyCode!==h.ENTER&&e.keyCode!==h.SPACE||(e.preventDefault(),o.handleNextClick())},o.handlePreviousKeyDown=function(e){e.keyCode!==h.ENTER&&e.keyCode!==h.SPACE||(e.preventDefault(),o.handlePreviousClick())},s=n,a(o,s)}return s(t,e),i(t,[{key:"shouldComponentUpdate",value:function(e){return e.labels!==this.props.labels||e.dir!==this.props.dir||this.props.showPreviousButton!==e.showPreviousButton||this.props.showNextButton!==e.showNextButton}},{key:"render",value:function(){var e=this.props,t=e.classNames,n=e.className,o=e.showPreviousButton,r=e.showNextButton,a=e.labels,s=e.dir,i=void 0,u=void 0,c=void 0,p=void 0,f=void 0,h=void 0;"rtl"===s?(i=this.handleNextClick,u=this.handlePreviousClick,c=this.handleNextKeyDown,p=this.handlePreviousKeyDown,h=o,f=r):(i=this.handlePreviousClick,u=this.handleNextClick,c=this.handlePreviousKeyDown,p=this.handleNextKeyDown,h=r,f=o);var d=f?t.navButtonPrev:t.navButtonPrev+" "+t.navButtonInteractionDisabled,y=h?t.navButtonNext:t.navButtonNext+" "+t.navButtonInteractionDisabled,v=l.default.createElement("span",{tabIndex:"0",role:"button","aria-label":a.previousMonth,key:"previous",className:d,onKeyDown:f?c:void 0,onClick:f?i:void 0}),m=l.default.createElement("span",{tabIndex:"0",role:"button","aria-label":a.nextMonth,key:"right",className:y,onKeyDown:h?p:void 0,onClick:h?u:void 0});return l.default.createElement("div",{className:n||t.navBar},"rtl"===s?[m,v]:[v,m])}}]),t}(u.Component);d.defaultProps={classNames:f.default,dir:"ltr",labels:{previousMonth:"Previous Month",nextMonth:"Next Month"},showPreviousButton:!0,showNextButton:!0},t.default=d,d.propTypes={}},function(e,t,n){"use strict";function o(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),l=n(0),c=r(l),p=n(1),f=(r(p),n(13)),h=r(f),d=n(14),y=r(d),v=n(2),m=n(7),k=o(m),b=n(5),D=o(b),g=n(3),w=o(g),M=function(e){function t(){var e,n,o,r;a(this,t);for(var i=arguments.length,u=Array(i),l=0;l<i;l++)u[l]=arguments[l];return n=o=s(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(u))),o.renderDay=function(e){var t=o.props.month.getMonth(),n=D.getModifiersFromProps(o.props),r=k.getModifiersForDay(e,n);w.isSameDay(e,new Date)&&!Object.prototype.hasOwnProperty.call(n,o.props.classNames.today)&&r.push(o.props.classNames.today),e.getMonth()!==t&&r.push(o.props.classNames.outside);var a=e.getMonth()!==t,s=-1;o.props.onDayClick&&!a&&1===e.getDate()&&(s=o.props.tabIndex);var i=""+e.getFullYear()+e.getMonth()+e.getDate(),u={};return r.forEach(function(e){u[e]=!0}),c.default.createElement(y.default,{key:(a?"outside-":"")+i,classNames:o.props.classNames,day:e,modifiers:u,modifiersStyles:o.props.modifiersStyles,empty:a&&!o.props.showOutsideDays&&!o.props.fixedWeeks,tabIndex:s,ariaLabel:o.props.localeUtils.formatDay(e,o.props.locale),ariaDisabled:a||r.indexOf("disabled")>-1,ariaSelected:r.indexOf("selected")>-1,onClick:o.props.onDayClick,onFocus:o.props.onDayFocus,onKeyDown:o.props.onDayKeyDown,onMouseEnter:o.props.onDayMouseEnter,onMouseLeave:o.props.onDayMouseLeave,onMouseDown:o.props.onDayMouseDown,onMouseUp:o.props.onDayMouseUp,onTouchEnd:o.props.onDayTouchEnd,onTouchStart:o.props.onDayTouchStart},o.props.renderDay(e,u))},r=n,s(o,r)}return i(t,e),u(t,[{key:"render",value:function(){var e=this,t=this.props,n=t.classNames,o=t.month,r=t.months,a=t.fixedWeeks,s=t.captionElement,i=t.weekdayElement,u=t.locale,l=t.localeUtils,p=t.weekdaysLong,f=t.weekdaysShort,d=t.firstDayOfWeek,y=t.onCaptionClick,m=t.showWeekNumbers,k=t.showWeekDays,b=t.onWeekClick,g={date:o,classNames:n,months:r,localeUtils:l,locale:u,onClick:y?function(e){return y(o,e)}:void 0},M=c.default.isValidElement(s)?c.default.cloneElement(s,g):c.default.createElement(s,g),P=D.getWeekArray(o,d,a);return c.default.createElement("div",{className:n.month,role:"grid"},M,k&&c.default.createElement(h.default,{classNames:n,weekdaysShort:f,weekdaysLong:p,firstDayOfWeek:d,showWeekNumbers:m,locale:u,localeUtils:l,weekdayElement:i}),c.default.createElement("div",{className:n.body,role:"rowgroup"},P.map(function(t){var r=void 0;return m&&(r=w.getWeekNumber(t[0])),c.default.createElement("div",{key:t[0].getTime(),className:n.week,role:"row"},m&&c.default.createElement("div",{className:n.weekNumber,tabIndex:0,role:"gridcell",onClick:b?function(e){return b(r,t,e)}:void 0,onKeyUp:b?function(e){return e.keyCode===v.ENTER&&b(r,t,e)}:void 0},e.props.renderWeek(r,t,o)),t.map(e.renderDay))})))}}]),t}(l.Component);t.default=M,M.propTypes={}},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),u=n(0),l=o(u),c=n(1),p=(o(c),function(e){function t(){return r(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return s(t,e),i(t,[{key:"shouldComponentUpdate",value:function(e){return this.props!==e}},{key:"render",value:function(){for(var e=this.props,t=e.classNames,n=e.firstDayOfWeek,o=e.showWeekNumbers,r=e.weekdaysLong,a=e.weekdaysShort,s=e.locale,i=e.localeUtils,u=e.weekdayElement,c=[],p=0;p<7;p+=1){var f=(p+n)%7,h={key:p,className:t.weekday,weekday:f,weekdaysLong:r,weekdaysShort:a,localeUtils:i,locale:s},d=l.default.isValidElement(u)?l.default.cloneElement(u,h):l.default.createElement(u,h);c.push(d)}return l.default.createElement("div",{className:t.weekdays,role:"rowgroup"},l.default.createElement("div",{className:t.weekdaysRow,role:"row"},o&&l.default.createElement("div",{className:t.weekday}),c))}}]),t}(u.Component));t.default=p,p.propTypes={}},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function i(e,t,n){if(e)return function(o){o.persist(),e(t,n,o)}}Object.defineProperty(t,"__esModule",{value:!0});var u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),c=n(0),p=o(c),f=n(1),h=(o(f),n(3)),d=n(5),y=n(4),v=o(y),m=function(e){function t(){return r(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return s(t,e),l(t,[{key:"shouldComponentUpdate",value:function(e){var t=this,n=Object.keys(this.props),o=Object.keys(e);return n.length!==o.length||n.some(function(n){if("modifiers"===n||"modifiersStyles"===n||"classNames"===n){var o=t.props[n],r=e[n],a=Object.keys(o),s=Object.keys(r);return a.length!==s.length||a.some(function(e){return!(0,d.hasOwnProp)(r,e)||o[e]!==r[e]})}return"day"===n?!(0,h.isSameDay)(t.props[n],e[n]):!(0,d.hasOwnProp)(e,n)||t.props[n]!==e[n]})}},{key:"render",value:function(){var e=this.props,t=e.classNames,n=e.modifiersStyles,o=e.day,r=e.tabIndex,a=e.empty,s=e.modifiers,l=e.onMouseEnter,c=e.onMouseLeave,f=e.onMouseUp,h=e.onMouseDown,d=e.onClick,y=e.onKeyDown,m=e.onTouchStart,k=e.onTouchEnd,b=e.onFocus,D=e.ariaLabel,g=e.ariaDisabled,w=e.ariaSelected,M=e.children,P=t.day;t!==v.default?P+=" "+Object.keys(s).join(" "):P+=Object.keys(s).map(function(e){return" "+P+"--"+e}).join("");var O=void 0;return n&&Object.keys(s).filter(function(e){return!!n[e]}).forEach(function(e){O=u({},O,n[e])}),a?p.default.createElement("div",{"aria-disabled":!0,className:P,style:O}):p.default.createElement("div",{className:P,tabIndex:r,style:O,role:"gridcell","aria-label":D,"aria-disabled":g,"aria-selected":w,onClick:i(d,o,s),onKeyDown:i(y,o,s),onMouseEnter:i(l,o,s),onMouseLeave:i(c,o,s),onMouseUp:i(f,o,s),onMouseDown:i(h,o,s),onTouchEnd:i(k,o,s),onTouchStart:i(m,o,s),onFocus:i(b,o,s)},M)}}]),t}(c.Component);m.defaultProps={tabIndex:-1},m.defaultProps={modifiers:{},modifiersStyles:{},empty:!1},t.default=m,m.propTypes={}},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),u=n(0),l=o(u),c=n(1),p=(o(c),function(e){function t(){return r(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return s(t,e),i(t,[{key:"shouldComponentUpdate",value:function(e){return this.props!==e}},{key:"render",value:function(){var e=this.props,t=e.weekday,n=e.className,o=e.weekdaysLong,r=e.weekdaysShort,a=e.localeUtils,s=e.locale,i=void 0;i=o?o[t]:a.formatWeekdayLong(t,s);var u=void 0;return u=r?r[t]:a.formatWeekdayShort(t,s),l.default.createElement("div",{className:n,role:"columnheader"},l.default.createElement("abbr",{title:i},u))}}]),t}(u.Component));t.default=p,p.propTypes={}},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function i(e){return e instanceof Date&&!isNaN(e.valueOf())}function u(e){if(i(e)){return e.getFullYear()+"-"+(""+(e.getMonth()+1))+"-"+(""+e.getDate())}return""}function l(e){if("string"==typeof e){var t=e.split("-");if(3===t.length){var n=parseInt(t[0],10),o=parseInt(t[1],10)-1,r=parseInt(t[2],10);if(!(isNaN(n)||isNaN(o)||isNaN(r)||r<=0||r>31||o<0||o>=12))return new Date(n,o,r)}}}Object.defineProperty(t,"__esModule",{value:!0}),t.HIDE_TIMEOUT=void 0;var c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},p=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}();t.defaultFormat=u,t.defaultParse=l;var f=n(0),h=o(f),d=n(1),y=(o(d),n(8)),v=o(y),m=n(7),k=n(2),b=t.HIDE_TIMEOUT=100,D=function(e){function t(e){r(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.input=null,n.daypicker=null,n.overlayNode=null,n.clickTimeout=null,n.hideTimeout=null,n.state=n.getStateFromProps(e),n.state.showOverlay=e.showOverlay,n.hideAfterDayClick=n.hideAfterDayClick.bind(n),n.handleInputClick=n.handleInputClick.bind(n),n.handleInputFocus=n.handleInputFocus.bind(n),n.handleInputBlur=n.handleInputBlur.bind(n),n.handleInputChange=n.handleInputChange.bind(n),n.handleInputKeyDown=n.handleInputKeyDown.bind(n),n.handleInputKeyUp=n.handleInputKeyUp.bind(n),n.handleDayClick=n.handleDayClick.bind(n),n.handleMonthChange=n.handleMonthChange.bind(n),n.handleOverlayFocus=n.handleOverlayFocus.bind(n),n.handleOverlayBlur=n.handleOverlayBlur.bind(n),n}return s(t,e),p(t,[{key:"componentWillReceiveProps",value:function(e){var t=this.props.dayPickerProps.month,n=e.dayPickerProps.month,o=this.props.dayPickerProps.selectedDays,r=e.dayPickerProps.selectedDays,a=e.value,s=this.props.value,u=n&&!t||n&&(n.getFullYear()!==t.getFullYear()||n.getMonth()!==t.getMonth());a!==s&&(i(a)&&(a=this.props.formatDate(a,this.props.format,this.props.dayPickerProps.locale)),this.setState({value:a})),u&&this.setState({month:n}),o!==r&&this.setState({selectedDays:r})}},{key:"componentWillUnmount",value:function(){clearTimeout(this.clickTimeout),clearTimeout(this.hideTimeout)}},{key:"getStateFromProps",value:function(e){var t=e.dayPickerProps,n=e.formatDate,o=e.format,r=e.value,a=void 0;return e.value&&(i(e.value)?(a=e.value,r=n(e.value,o,t.locale)):a=e.parseDate(e.value,o,t.locale)),{value:r,month:t.initialMonth||t.month||a||new Date,selectedDays:t.selectedDays}}},{key:"getInput",value:function(){return this.input}},{key:"getDayPicker",value:function(){return this.daypicker}},{key:"updateState",value:function(e,t,n){var o=this.props,r=o.dayPickerProps,a=o.onDayChange;this.setState({month:e,value:t},function(){if(n&&n(),a){var t=c({disabled:r.disabledDays,selected:r.selectedDays},r.modifiers),o=(0,m.getModifiersForDay)(e,t).reduce(function(e,t){var n=c({},e);return n[t]=!0,n},{});a(e,o)}})}},{key:"showDayPicker",value:function(){this.setState({showOverlay:!0})}},{key:"hideDayPicker",value:function(){this.setState({showOverlay:!1})}},{key:"hideAfterDayClick",value:function(){var e=this;this.props.hideOnDayClick&&(this.hideTimeout=setTimeout(function(){return e.hideDayPicker()},b))}},{key:"handleInputClick",value:function(e){this.showDayPicker(),this.props.inputProps.onClick&&(e.persist(),this.props.inputProps.onClick(e))}},{key:"handleInputFocus",value:function(e){this.showDayPicker(),this.props.inputProps.onFocus&&(e.persist(),this.props.inputProps.onFocus(e))}},{key:"handleInputBlur",value:function(e){this.setState({showOverlay:this.overlayNode&&this.overlayNode.contains(e.relatedTarget)}),this.props.inputProps.onBlur&&(e.persist(),this.props.inputProps.onBlur(e))}},{key:"handleOverlayFocus",value:function(e){!0===this.props.keepFocus&&(e.preventDefault(),this.input.focus())}},{key:"handleOverlayBlur",value:function(e){this.setState({showOverlay:this.overlayNode&&this.overlayNode.contains(e.relatedTarget)})}},{key:"handleInputChange",value:function(e){var t=this.props,n=t.dayPickerProps,o=t.format,r=t.inputProps,a=t.onDayChange,s=t.parseDate;r.onChange&&(e.persist(),r.onChange(e));var i=e.target.value;if(""===i.trim())return this.setState({value:i}),void(a&&a(void 0,{}));var u=s(i,o,n.locale);if(!u)return this.setState({value:i}),void(a&&a(void 0,{}));this.updateState(u,i)}},{key:"handleInputKeyDown",value:function(e){e.keyCode===k.TAB&&this.hideDayPicker(),this.props.inputProps.onKeyDown&&(e.persist(),this.props.inputProps.onKeyDown(e))}},{key:"handleInputKeyUp",value:function(e){e.keyCode===k.ESC&&this.hideDayPicker(),this.props.inputProps.onKeyUp&&(e.persist(),this.props.inputProps.onKeyUp(e))}},{key:"handleMonthChange",value:function(e){var t=this;this.setState({month:e},function(){t.props.dayPickerProps&&t.props.dayPickerProps.onMonthChange&&t.props.dayPickerProps.onMonthChange(e)})}},{key:"handleDayClick",value:function(e,t,n){var o=this,r=this.props,a=r.clickUnselectsDay,s=r.dayPickerProps,i=r.onDayChange,u=r.formatDate,l=r.format;if(s.onDayClick&&s.onDayClick(e,t,n),!t.disabled){if(t.selected&&a){var c=this.state.selectedDays;if(Array.isArray(c)){c=c.slice(0);var p=c.indexOf(e);c.splice(p,1)}else c&&(c=null);return this.setState({value:"",selectedDays:c},this.hideAfterDayClick),void(i&&i(void 0,t))}var f=u(e,l,s.locale);this.setState({value:f,month:e},function(){i&&i(e,t),o.hideAfterDayClick()})}}},{key:"renderOverlay",value:function(){var e=this,t=this.props,n=t.classNames,o=t.dayPickerProps,r=t.parseDate,a=t.formatDate,s=t.format,i=this.state,u=i.selectedDays,l=i.value,p=void 0;if(!u&&l){var f=r(l,s,o.locale);f&&(p=f)}else u&&(p=u);var d=void 0;o.todayButton&&(d=function(){return e.updateState(new Date,a(new Date,s,o.locale),e.hideAfterDayClick)});var y=this.props.overlayComponent;return h.default.createElement("span",{onFocus:this.handleOverlayFocus,ref:function(t){return e.overlayNode=t},onBlur:this.handleOverlayBlur},h.default.createElement(y,{classNames:n,month:o.month,selectedDay:p,input:this.input},h.default.createElement(v.default,c({ref:function(t){return e.daypicker=t},onTodayButtonClick:d},o,{month:o.month,selectedDays:p,onDayClick:this.handleDayClick,onMonthChange:this.handleMonthChange}))))}},{key:"render",value:function(){var e=this,t=this.props.component;return h.default.createElement("div",{className:this.props.classNames.container},h.default.createElement(t,c({ref:function(t){return e.input=t},placeholder:this.props.placeholder},this.props.inputProps,{value:this.state.value,onChange:this.handleInputChange,onFocus:this.handleInputFocus,onBlur:this.handleInputBlur,onKeyDown:this.handleInputKeyDown,onKeyUp:this.handleInputKeyUp,onClick:this.handleInputClick})),this.state.showOverlay&&this.renderOverlay())}}]),t}(h.default.Component);D.defaultProps={dayPickerProps:{},value:"",placeholder:"YYYY-M-D",format:"L",formatDate:u,parseDate:l,showOverlay:!1,hideOnDayClick:!0,clickUnselectsDay:!1,keepFocus:!0,component:"input",inputProps:{},overlayComponent:function(e){var t=e.children,n=e.classNames;return h.default.createElement("div",{className:n.overlayWrapper},h.default.createElement("div",{className:n.overlay},t))},classNames:{container:"DayPickerInput",overlayWrapper:"DayPickerInput-OverlayWrapper",overlay:"DayPickerInput-Overlay"}},t.default=D,D.propTypes={}}])});
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):"object"==typeof exports?exports.DayPicker=t(require("react")):e.DayPicker=t(e.React)}("undefined"!=typeof self?self:this,function(e){return function(e){function t(o){if(n[o])return n[o].exports;var r=n[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,o){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:o})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=9)}([function(t,n){t.exports=e},function(e,t){},function(e,t,n){"use strict";function o(e){return new Date(e.getTime())}function r(e){return e instanceof Date&&!isNaN(e.valueOf())}function a(e,t){var n=o(e);return n.setMonth(e.getMonth()+t),n}function s(e,t){return!(!e||!t)&&(e.getDate()===t.getDate()&&e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear())}function i(e,t){return!(!e||!t)&&(e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear())}function u(e,t){return o(e).setHours(0,0,0,0)<o(t).setHours(0,0,0,0)}function l(e,t){return o(e).setHours(0,0,0,0)>o(t).setHours(0,0,0,0)}function c(e){var t=new Date;return t.setHours(0,0,0,0),u(e,t)}function p(e){var t=new Date((new Date).getTime()+864e5);return t.setHours(0,0,0,0),e>=t}function f(e,t,n){var r=o(e);return r.setHours(0,0,0,0),l(r,t)&&u(r,n)||l(r,n)&&u(r,t)}function h(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{from:null,to:null},n=t.from,o=t.to;return n?n&&o&&s(n,o)&&s(e,n)?(n=null,o=null):o&&u(e,n)?n=e:o&&s(e,o)?(n=e,o=e):(o=e,u(o,n)&&(o=n,n=e)):n=e,{from:n,to:o}}function d(e,t){var n=t.from,o=t.to;return n&&s(e,n)||o&&s(e,o)||n&&o&&f(e,n,o)}function y(e){var t=o(e);return t.setHours(0,0,0),t.setDate(t.getDate()+4-(t.getDay()||7)),Math.ceil(((t-new Date(t.getFullYear(),0,1))/864e5+1)/7)}Object.defineProperty(t,"__esModule",{value:!0}),t.clone=o,t.isDate=r,t.addMonths=a,t.isSameDay=s,t.isSameMonth=i,t.isDayBefore=u,t.isDayAfter=l,t.isPastDay=c,t.isFutureDay=p,t.isDayBetween=f,t.addDayToRange=h,t.isDayInRange=d,t.getWeekNumber=y,t.default={addDayToRange:h,addMonths:a,clone:o,getWeekNumber:y,isDate:r,isDayAfter:l,isDayBefore:u,isDayBetween:f,isDayInRange:d,isFutureDay:p,isPastDay:c,isSameDay:s,isSameMonth:i}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.LEFT=37,t.UP=38,t.RIGHT=39,t.DOWN=40,t.ENTER=13,t.SPACE=32,t.ESC=27,t.TAB=9},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={container:"DayPicker",wrapper:"DayPicker-wrapper",interactionDisabled:"DayPicker--interactionDisabled",months:"DayPicker-Months",month:"DayPicker-Month",navBar:"DayPicker-NavBar",navButtonPrev:"DayPicker-NavButton DayPicker-NavButton--prev",navButtonNext:"DayPicker-NavButton DayPicker-NavButton--next",navButtonInteractionDisabled:"DayPicker-NavButton--interactionDisabled",caption:"DayPicker-Caption",weekdays:"DayPicker-Weekdays",weekdaysRow:"DayPicker-WeekdaysRow",weekday:"DayPicker-Weekday",body:"DayPicker-Body",week:"DayPicker-Week",weekNumber:"DayPicker-WeekNumber",day:"DayPicker-Day",footer:"DayPicker-Footer",todayButton:"DayPicker-TodayButton",today:"today",selected:"selected",disabled:"disabled",outside:"outside"}},function(e,t,n){"use strict";function o(e){e.preventDefault(),e.stopPropagation()}function r(e){return new Date(e.getFullYear(),e.getMonth(),1,12)}function a(e){var t=r(e);return t.setMonth(t.getMonth()+1),t.setDate(t.getDate()-1),t.getDate()}function s(e){var t=y({},e.modifiers);return e.selectedDays&&(t[e.classNames.selected]=e.selectedDays),e.disabledDays&&(t[e.classNames.disabled]=e.disabledDays),t}function i(e){var t=e.firstDayOfWeek,n=e.locale,o=void 0===n?"en":n,r=e.localeUtils,a=void 0===r?{}:r;return isNaN(t)?a.getFirstDayOfWeek?a.getFirstDayOfWeek(o):0:t}function u(e){return!!(e&&e.from&&e.to)}function l(e,t){return t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())}function c(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(0,m.getFirstDayOfWeek)(),n=arguments[2],o=a(e),r=[],s=[],i=[],u=1;u<=o;u+=1)r.push(new Date(e.getFullYear(),e.getMonth(),u,12));r.forEach(function(e){s.length>0&&e.getDay()===t&&(i.push(s),s=[]),s.push(e),r.indexOf(e)===r.length-1&&i.push(s)});for(var l=i[0],c=7-l.length;c>0;c-=1){var p=(0,v.clone)(l[0]);p.setDate(l[0].getDate()-1),l.unshift(p)}for(var f=i[i.length-1],h=f.length;h<7;h+=1){var d=(0,v.clone)(f[f.length-1]);d.setDate(f[f.length-1].getDate()+1),f.push(d)}if(n&&i.length<6)for(var y=void 0,k=i.length;k<6;k+=1){y=i[i.length-1];for(var D=y[y.length-1],b=[],g=0;g<7;g+=1){var w=(0,v.clone)(D);w.setDate(D.getDate()+g+1),b.push(w)}i.push(b)}return i}function p(e){var t=(0,v.clone)(e);return t.setDate(1),t.setHours(12,0,0,0),t}function f(e,t){var n=void 0;n=t===D.default?t.day+"--"+t.outside:""+t.outside;var o=t.day.replace(/ /g,"."),r=n.replace(/ /g,"."),a="."+o+":not(."+r+")";return e.querySelectorAll(a)}function h(e){return Array.prototype.slice.call(e,0)}function d(e,t){return Object.prototype.hasOwnProperty.call(e,t)}Object.defineProperty(t,"__esModule",{value:!0});var y=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e};t.cancelEvent=o,t.getFirstDayOfMonth=r,t.getDaysInMonth=a,t.getModifiersFromProps=s,t.getFirstDayOfWeekFromProps=i,t.isRangeOfDates=u,t.getMonthsDiff=l,t.getWeekArray=c,t.startOfMonth=p,t.getDayNodes=f,t.nodeListToArray=h,t.hasOwnProp=d;var v=n(2),m=n(6),k=n(4),D=function(e){return e&&e.__esModule?e:{default:e}}(k)},function(e,t,n){"use strict";function o(e){return e.toDateString()}function r(e){return p[e.getMonth()]+" "+e.getFullYear()}function a(e){return c[e]}function s(e){return l[e]}function i(){return 0}function u(){return p}Object.defineProperty(t,"__esModule",{value:!0}),t.formatDay=o,t.formatMonthTitle=r,t.formatWeekdayShort=a,t.formatWeekdayLong=s,t.getFirstDayOfWeek=i,t.getMonths=u;var l=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],c=["Su","Mo","Tu","We","Th","Fr","Sa"],p=["January","February","March","April","May","June","July","August","September","October","November","December"];t.default={formatDay:o,formatMonthTitle:r,formatWeekdayShort:a,formatWeekdayLong:s,getFirstDayOfWeek:i,getMonths:u}},function(e,t,n){"use strict";function o(e,t){return!!t&&(Array.isArray(t)?t:[t]).some(function(t){return!!t&&(t instanceof Date?(0,a.isSameDay)(e,t):(0,s.isRangeOfDates)(t)?(0,a.isDayInRange)(e,t):t.after&&t.before&&(0,a.isDayAfter)(t.before,t.after)?(0,a.isDayAfter)(e,t.after)&&(0,a.isDayBefore)(e,t.before):t.after&&t.before&&((0,a.isDayAfter)(t.after,t.before)||(0,a.isSameDay)(t.after,t.before))?(0,a.isDayAfter)(e,t.after)||(0,a.isDayBefore)(e,t.before):t.after?(0,a.isDayAfter)(e,t.after):t.before?(0,a.isDayBefore)(e,t.before):t.daysOfWeek?t.daysOfWeek.some(function(t){return e.getDay()===t}):"function"==typeof t&&t(e))})}function r(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(t).reduce(function(n,r){var a=t[r];return o(e,a)&&n.push(r),n},[])}Object.defineProperty(t,"__esModule",{value:!0}),t.dayMatchesModifier=o,t.getModifiersForDay=r;var a=n(2),s=n(5);t.default={dayMatchesModifier:o,getModifiersForDay:r}},function(e,t,n){"use strict";function o(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t){var n={};for(var o in e)t.indexOf(o)>=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0}),t.ModifiersUtils=t.LocaleUtils=t.DateUtils=t.DayPicker=void 0;var l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},c=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),p=n(0),f=r(p),h=n(1),d=(r(h),n(10)),y=r(d),v=n(11),m=r(v),k=n(12),D=r(k),b=n(15),g=r(b),w=n(5),M=o(w),P=n(2),O=o(P),N=n(6),C=o(N),E=n(7),_=o(E),T=n(4),j=r(T),x=n(3),F=t.DayPicker=function(e){function t(e){s(this,t);var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));n.dayPicker=null,n.showNextMonth=function(e){if(n.allowNextMonth()){var t=n.props.pagedNavigation?n.props.numberOfMonths:1,o=O.addMonths(n.state.currentMonth,t);n.showMonth(o,e)}},n.showPreviousMonth=function(e){if(n.allowPreviousMonth()){var t=n.props.pagedNavigation?n.props.numberOfMonths:1,o=O.addMonths(n.state.currentMonth,-t);n.showMonth(o,e)}},n.handleKeyDown=function(e){switch(e.persist(),e.keyCode){case x.LEFT:n.showPreviousMonth();break;case x.RIGHT:n.showNextMonth();break;case x.UP:n.showPreviousYear();break;case x.DOWN:n.showNextYear()}n.props.onKeyDown&&n.props.onKeyDown(e)},n.handleDayKeyDown=function(e,t,o){switch(o.persist(),o.keyCode){case x.LEFT:M.cancelEvent(o),n.focusPreviousDay(o.target);break;case x.RIGHT:M.cancelEvent(o),n.focusNextDay(o.target);break;case x.UP:M.cancelEvent(o),n.focusPreviousWeek(o.target);break;case x.DOWN:M.cancelEvent(o),n.focusNextWeek(o.target);break;case x.ENTER:case x.SPACE:M.cancelEvent(o),n.props.onDayClick&&n.handleDayClick(e,t,o)}n.props.onDayKeyDown&&n.props.onDayKeyDown(e,t,o)},n.handleDayClick=function(e,t,o){o.persist(),t[n.props.classNames.outside]&&n.props.enableOutsideDaysClick&&n.handleOutsideDayClick(e),n.props.onDayClick&&n.props.onDayClick(e,t,o)},n.handleTodayButtonClick=function(e){var t=new Date,o=new Date(t.getFullYear(),t.getMonth());n.showMonth(o),e.target.blur(),n.props.onTodayButtonClick&&(e.persist(),n.props.onTodayButtonClick(new Date(t.getFullYear(),t.getMonth(),t.getDate()),_.getModifiersForDay(t,n.props.modifiers),e))};var o=n.getCurrentMonthFromProps(e);return n.state={currentMonth:o},n}return u(t,e),c(t,[{key:"componentDidUpdate",value:function(e){if(e.month!==this.props.month&&!O.isSameMonth(e.month,this.props.month)){var t=this.getCurrentMonthFromProps(this.props);this.setState({currentMonth:t})}}},{key:"getCurrentMonthFromProps",value:function(e){var t=M.startOfMonth(e.month||e.initialMonth),n=t;if(e.pagedNavigation&&e.numberOfMonths>1&&e.fromMonth){var o=M.startOfMonth(e.fromMonth),r=M.getMonthsDiff(o,n);n=O.addMonths(o,Math.floor(r/e.numberOfMonths)*e.numberOfMonths)}else e.toMonth&&e.numberOfMonths>1&&M.getMonthsDiff(n,e.toMonth)<=0&&(n=O.addMonths(M.startOfMonth(e.toMonth),1-this.props.numberOfMonths));return n}},{key:"getNextNavigableMonth",value:function(){return O.addMonths(this.state.currentMonth,this.props.numberOfMonths)}},{key:"getPreviousNavigableMonth",value:function(){return O.addMonths(this.state.currentMonth,-1)}},{key:"allowPreviousMonth",value:function(){var e=O.addMonths(this.state.currentMonth,-1);return this.allowMonth(e)}},{key:"allowNextMonth",value:function(){var e=O.addMonths(this.state.currentMonth,this.props.numberOfMonths);return this.allowMonth(e)}},{key:"allowMonth",value:function(e){var t=this.props,n=t.fromMonth,o=t.toMonth;return!(!t.canChangeMonth||n&&M.getMonthsDiff(n,e)<0||o&&M.getMonthsDiff(o,e)>0)}},{key:"allowYearChange",value:function(){return this.props.canChangeMonth}},{key:"showMonth",value:function(e,t){var n=this;this.allowMonth(e)&&this.setState({currentMonth:M.startOfMonth(e)},function(){t&&t(),n.props.onMonthChange&&n.props.onMonthChange(n.state.currentMonth)})}},{key:"showNextYear",value:function(){if(this.allowYearChange()){var e=O.addMonths(this.state.currentMonth,12);this.showMonth(e)}}},{key:"showPreviousYear",value:function(){if(this.allowYearChange()){var e=O.addMonths(this.state.currentMonth,-12);this.showMonth(e)}}},{key:"focusFirstDayOfMonth",value:function(){M.getDayNodes(this.dayPicker,this.props.classNames)[0].focus()}},{key:"focusLastDayOfMonth",value:function(){var e=M.getDayNodes(this.dayPicker,this.props.classNames);e[e.length-1].focus()}},{key:"focusPreviousDay",value:function(e){var t=this,n=M.getDayNodes(this.dayPicker,this.props.classNames),o=M.nodeListToArray(n).indexOf(e);-1!==o&&(0===o?this.showPreviousMonth(function(){return t.focusLastDayOfMonth()}):n[o-1].focus())}},{key:"focusNextDay",value:function(e){var t=this,n=M.getDayNodes(this.dayPicker,this.props.classNames),o=M.nodeListToArray(n).indexOf(e);-1!==o&&(o===n.length-1?this.showNextMonth(function(){return t.focusFirstDayOfMonth()}):n[o+1].focus())}},{key:"focusNextWeek",value:function(e){var t=this,n=M.getDayNodes(this.dayPicker,this.props.classNames),o=M.nodeListToArray(n).indexOf(e);o>n.length-8?this.showNextMonth(function(){var e=n.length-o,r=7-e;M.getDayNodes(t.dayPicker,t.props.classNames)[r].focus()}):n[o+7].focus()}},{key:"focusPreviousWeek",value:function(e){var t=this,n=M.getDayNodes(this.dayPicker,this.props.classNames),o=M.nodeListToArray(n).indexOf(e);o<=6?this.showPreviousMonth(function(){var e=M.getDayNodes(t.dayPicker,t.props.classNames);e[e.length-7+o].focus()}):n[o-7].focus()}},{key:"handleOutsideDayClick",value:function(e){var t=this.state.currentMonth,n=this.props.numberOfMonths,o=M.getMonthsDiff(t,e);o>0&&o>=n?this.showNextMonth():o<0&&this.showPreviousMonth()}},{key:"renderNavbar",value:function(){var e=this.props,t=e.labels,n=e.locale,o=e.localeUtils,r=e.canChangeMonth,s=e.navbarElement,i=a(e,["labels","locale","localeUtils","canChangeMonth","navbarElement"]);if(!r)return null;var u={month:this.state.currentMonth,classNames:this.props.classNames,className:this.props.classNames.navBar,nextMonth:this.getNextNavigableMonth(),previousMonth:this.getPreviousNavigableMonth(),showPreviousButton:this.allowPreviousMonth(),showNextButton:this.allowNextMonth(),onNextClick:this.showNextMonth,onPreviousClick:this.showPreviousMonth,dir:i.dir,labels:t,locale:n,localeUtils:o};return f.default.isValidElement(s)?f.default.cloneElement(s,u):f.default.createElement(s,u)}},{key:"renderMonths",value:function(){for(var e=[],t=M.getFirstDayOfWeekFromProps(this.props),n=0;n<this.props.numberOfMonths;n+=1){var o=O.addMonths(this.state.currentMonth,n);e.push(f.default.createElement(D.default,l({key:n},this.props,{month:o,firstDayOfWeek:t,onDayKeyDown:this.handleDayKeyDown,onDayClick:this.handleDayClick})))}return this.props.reverseMonths&&e.reverse(),e}},{key:"renderFooter",value:function(){return this.props.todayButton?f.default.createElement("div",{className:this.props.classNames.footer},this.renderTodayButton()):null}},{key:"renderTodayButton",value:function(){return f.default.createElement("button",{type:"button",tabIndex:0,className:this.props.classNames.todayButton,"aria-label":this.props.todayButton,onClick:this.handleTodayButtonClick},this.props.todayButton)}},{key:"render",value:function(){var e=this,t=this.props.classNames.container;return this.props.onDayClick||(t=t+" "+this.props.classNames.interactionDisabled),this.props.className&&(t=t+" "+this.props.className),f.default.createElement("div",l({},this.props.containerProps,{className:t,ref:function(t){return e.dayPicker=t},lang:this.props.locale}),f.default.createElement("div",{className:this.props.classNames.wrapper,tabIndex:this.props.canChangeMonth&&void 0!==this.props.tabIndex?this.props.tabIndex:-1,onKeyDown:this.handleKeyDown,onFocus:this.props.onFocus,onBlur:this.props.onBlur},this.renderNavbar(),f.default.createElement("div",{className:this.props.classNames.months},this.renderMonths()),this.renderFooter()))}}]),t}(p.Component);F.VERSION="7.2.4",F.defaultProps={classNames:j.default,tabIndex:0,initialMonth:new Date,numberOfMonths:1,labels:{previousMonth:"Previous Month",nextMonth:"Next Month"},locale:"en",localeUtils:C,showOutsideDays:!1,enableOutsideDaysClick:!0,fixedWeeks:!1,canChangeMonth:!0,reverseMonths:!1,pagedNavigation:!1,showWeekNumbers:!1,showWeekDays:!0,renderDay:function(e){return e.getDate()},renderWeek:function(e){return e},weekdayElement:f.default.createElement(g.default,null),navbarElement:f.default.createElement(m.default,{classNames:j.default}),captionElement:f.default.createElement(y.default,{classNames:j.default})},F.propTypes={},F.DateUtils=O,F.LocaleUtils=C,F.ModifiersUtils=_,t.DateUtils=O,t.LocaleUtils=C,t.ModifiersUtils=_,t.default=F},function(e,t,n){"use strict";var o=n(8).default;o.Input=n(16).default,e.exports=o},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),u=n(0),l=o(u),c=n(1),p=(o(c),n(6)),f=o(p),h=n(3),d=function(e){function t(e){r(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleKeyUp=n.handleKeyUp.bind(n),n}return s(t,e),i(t,[{key:"shouldComponentUpdate",value:function(e){return e.locale!==this.props.locale||e.classNames!==this.props.classNames||e.date.getMonth()!==this.props.date.getMonth()||e.date.getFullYear()!==this.props.date.getFullYear()}},{key:"handleKeyUp",value:function(e){e.keyCode===h.ENTER&&this.props.onClick(e)}},{key:"render",value:function(){var e=this.props,t=e.classNames,n=e.date,o=e.months,r=e.locale,a=e.localeUtils,s=e.onClick;return l.default.createElement("div",{className:t.caption,role:"heading"},l.default.createElement("div",{onClick:s,onKeyUp:this.handleKeyUp},o?o[n.getMonth()]+" "+n.getFullYear():a.formatMonthTitle(n,r)))}}]),t}(u.Component);d.defaultProps={localeUtils:f.default},t.default=d,d.propTypes={}},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),u=n(0),l=o(u),c=n(1),p=(o(c),n(4)),f=o(p),h=n(3),d=function(e){function t(){var e,n,o,s;r(this,t);for(var i=arguments.length,u=Array(i),l=0;l<i;l++)u[l]=arguments[l];return n=o=a(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(u))),o.handleNextClick=function(){o.props.onNextClick&&o.props.onNextClick()},o.handlePreviousClick=function(){o.props.onPreviousClick&&o.props.onPreviousClick()},o.handleNextKeyDown=function(e){e.keyCode!==h.ENTER&&e.keyCode!==h.SPACE||(e.preventDefault(),o.handleNextClick())},o.handlePreviousKeyDown=function(e){e.keyCode!==h.ENTER&&e.keyCode!==h.SPACE||(e.preventDefault(),o.handlePreviousClick())},s=n,a(o,s)}return s(t,e),i(t,[{key:"shouldComponentUpdate",value:function(e){return e.labels!==this.props.labels||e.dir!==this.props.dir||this.props.showPreviousButton!==e.showPreviousButton||this.props.showNextButton!==e.showNextButton}},{key:"render",value:function(){var e=this.props,t=e.classNames,n=e.className,o=e.showPreviousButton,r=e.showNextButton,a=e.labels,s=e.dir,i=void 0,u=void 0,c=void 0,p=void 0,f=void 0,h=void 0;"rtl"===s?(i=this.handleNextClick,u=this.handlePreviousClick,c=this.handleNextKeyDown,p=this.handlePreviousKeyDown,h=o,f=r):(i=this.handlePreviousClick,u=this.handleNextClick,c=this.handlePreviousKeyDown,p=this.handleNextKeyDown,h=r,f=o);var d=f?t.navButtonPrev:t.navButtonPrev+" "+t.navButtonInteractionDisabled,y=h?t.navButtonNext:t.navButtonNext+" "+t.navButtonInteractionDisabled,v=l.default.createElement("span",{tabIndex:"0",role:"button","aria-label":a.previousMonth,key:"previous",className:d,onKeyDown:f?c:void 0,onClick:f?i:void 0}),m=l.default.createElement("span",{tabIndex:"0",role:"button","aria-label":a.nextMonth,key:"right",className:y,onKeyDown:h?p:void 0,onClick:h?u:void 0});return l.default.createElement("div",{className:n||t.navBar},"rtl"===s?[m,v]:[v,m])}}]),t}(u.Component);d.defaultProps={classNames:f.default,dir:"ltr",labels:{previousMonth:"Previous Month",nextMonth:"Next Month"},showPreviousButton:!0,showNextButton:!0},t.default=d,d.propTypes={}},function(e,t,n){"use strict";function o(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),l=n(0),c=r(l),p=n(1),f=(r(p),n(13)),h=r(f),d=n(14),y=r(d),v=n(3),m=n(7),k=o(m),D=n(5),b=o(D),g=n(2),w=o(g),M=function(e){function t(){var e,n,o,r;a(this,t);for(var i=arguments.length,u=Array(i),l=0;l<i;l++)u[l]=arguments[l];return n=o=s(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(u))),o.renderDay=function(e){var t=o.props.month.getMonth(),n=b.getModifiersFromProps(o.props),r=k.getModifiersForDay(e,n);w.isSameDay(e,new Date)&&!Object.prototype.hasOwnProperty.call(n,o.props.classNames.today)&&r.push(o.props.classNames.today),e.getMonth()!==t&&r.push(o.props.classNames.outside);var a=e.getMonth()!==t,s=-1;o.props.onDayClick&&!a&&1===e.getDate()&&(s=o.props.tabIndex);var i=""+e.getFullYear()+e.getMonth()+e.getDate(),u={};return r.forEach(function(e){u[e]=!0}),c.default.createElement(y.default,{key:(a?"outside-":"")+i,classNames:o.props.classNames,day:e,modifiers:u,modifiersStyles:o.props.modifiersStyles,empty:a&&!o.props.showOutsideDays&&!o.props.fixedWeeks,tabIndex:s,ariaLabel:o.props.localeUtils.formatDay(e,o.props.locale),ariaDisabled:a||r.indexOf("disabled")>-1,ariaSelected:r.indexOf("selected")>-1,onClick:o.props.onDayClick,onFocus:o.props.onDayFocus,onKeyDown:o.props.onDayKeyDown,onMouseEnter:o.props.onDayMouseEnter,onMouseLeave:o.props.onDayMouseLeave,onMouseDown:o.props.onDayMouseDown,onMouseUp:o.props.onDayMouseUp,onTouchEnd:o.props.onDayTouchEnd,onTouchStart:o.props.onDayTouchStart},o.props.renderDay(e,u))},r=n,s(o,r)}return i(t,e),u(t,[{key:"render",value:function(){var e=this,t=this.props,n=t.classNames,o=t.month,r=t.months,a=t.fixedWeeks,s=t.captionElement,i=t.weekdayElement,u=t.locale,l=t.localeUtils,p=t.weekdaysLong,f=t.weekdaysShort,d=t.firstDayOfWeek,y=t.onCaptionClick,m=t.showWeekNumbers,k=t.showWeekDays,D=t.onWeekClick,g={date:o,classNames:n,months:r,localeUtils:l,locale:u,onClick:y?function(e){return y(o,e)}:void 0},M=c.default.isValidElement(s)?c.default.cloneElement(s,g):c.default.createElement(s,g),P=b.getWeekArray(o,d,a);return c.default.createElement("div",{className:n.month,role:"grid"},M,k&&c.default.createElement(h.default,{classNames:n,weekdaysShort:f,weekdaysLong:p,firstDayOfWeek:d,showWeekNumbers:m,locale:u,localeUtils:l,weekdayElement:i}),c.default.createElement("div",{className:n.body,role:"rowgroup"},P.map(function(t){var r=void 0;return m&&(r=w.getWeekNumber(t[6])),c.default.createElement("div",{key:t[0].getTime(),className:n.week,role:"row"},m&&c.default.createElement("div",{className:n.weekNumber,tabIndex:0,role:"gridcell",onClick:D?function(e){return D(r,t,e)}:void 0,onKeyUp:D?function(e){return e.keyCode===v.ENTER&&D(r,t,e)}:void 0},e.props.renderWeek(r,t,o)),t.map(e.renderDay))})))}}]),t}(l.Component);t.default=M,M.propTypes={}},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),u=n(0),l=o(u),c=n(1),p=(o(c),function(e){function t(){return r(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return s(t,e),i(t,[{key:"shouldComponentUpdate",value:function(e){return this.props!==e}},{key:"render",value:function(){for(var e=this.props,t=e.classNames,n=e.firstDayOfWeek,o=e.showWeekNumbers,r=e.weekdaysLong,a=e.weekdaysShort,s=e.locale,i=e.localeUtils,u=e.weekdayElement,c=[],p=0;p<7;p+=1){var f=(p+n)%7,h={key:p,className:t.weekday,weekday:f,weekdaysLong:r,weekdaysShort:a,localeUtils:i,locale:s},d=l.default.isValidElement(u)?l.default.cloneElement(u,h):l.default.createElement(u,h);c.push(d)}return l.default.createElement("div",{className:t.weekdays,role:"rowgroup"},l.default.createElement("div",{className:t.weekdaysRow,role:"row"},o&&l.default.createElement("div",{className:t.weekday}),c))}}]),t}(u.Component));t.default=p,p.propTypes={}},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function i(e,t,n){if(e)return function(o){o.persist(),e(t,n,o)}}Object.defineProperty(t,"__esModule",{value:!0});var u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),c=n(0),p=o(c),f=n(1),h=(o(f),n(2)),d=n(5),y=n(4),v=o(y),m=function(e){function t(){return r(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return s(t,e),l(t,[{key:"shouldComponentUpdate",value:function(e){var t=this,n=Object.keys(this.props),o=Object.keys(e);return n.length!==o.length||n.some(function(n){if("modifiers"===n||"modifiersStyles"===n||"classNames"===n){var o=t.props[n],r=e[n],a=Object.keys(o),s=Object.keys(r);return a.length!==s.length||a.some(function(e){return!(0,d.hasOwnProp)(r,e)||o[e]!==r[e]})}return"day"===n?!(0,h.isSameDay)(t.props[n],e[n]):!(0,d.hasOwnProp)(e,n)||t.props[n]!==e[n]})}},{key:"render",value:function(){var e=this.props,t=e.classNames,n=e.modifiersStyles,o=e.day,r=e.tabIndex,a=e.empty,s=e.modifiers,l=e.onMouseEnter,c=e.onMouseLeave,f=e.onMouseUp,h=e.onMouseDown,d=e.onClick,y=e.onKeyDown,m=e.onTouchStart,k=e.onTouchEnd,D=e.onFocus,b=e.ariaLabel,g=e.ariaDisabled,w=e.ariaSelected,M=e.children,P=t.day;t!==v.default?P+=" "+Object.keys(s).join(" "):P+=Object.keys(s).map(function(e){return" "+P+"--"+e}).join("");var O=void 0;return n&&Object.keys(s).filter(function(e){return!!n[e]}).forEach(function(e){O=u({},O,n[e])}),a?p.default.createElement("div",{"aria-disabled":!0,className:P,style:O}):p.default.createElement("div",{className:P,tabIndex:r,style:O,role:"gridcell","aria-label":b,"aria-disabled":g,"aria-selected":w,onClick:i(d,o,s),onKeyDown:i(y,o,s),onMouseEnter:i(l,o,s),onMouseLeave:i(c,o,s),onMouseUp:i(f,o,s),onMouseDown:i(h,o,s),onTouchEnd:i(k,o,s),onTouchStart:i(m,o,s),onFocus:i(D,o,s)},M)}}]),t}(c.Component);m.defaultProps={tabIndex:-1},m.defaultProps={modifiers:{},modifiersStyles:{},empty:!1},t.default=m,m.propTypes={}},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),u=n(0),l=o(u),c=n(1),p=(o(c),function(e){function t(){return r(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return s(t,e),i(t,[{key:"shouldComponentUpdate",value:function(e){return this.props!==e}},{key:"render",value:function(){var e=this.props,t=e.weekday,n=e.className,o=e.weekdaysLong,r=e.weekdaysShort,a=e.localeUtils,s=e.locale,i=void 0;i=o?o[t]:a.formatWeekdayLong(t,s);var u=void 0;return u=r?r[t]:a.formatWeekdayShort(t,s),l.default.createElement("div",{className:n,role:"columnheader"},l.default.createElement("abbr",{title:i},u))}}]),t}(u.Component));t.default=p,p.propTypes={}},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function u(e,t){var n={};for(var o in e)t.indexOf(o)>=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}function l(e){var t=(e.input,e.selectedDay,e.month,e.children),n=e.classNames,o=u(e,["input","selectedDay","month","children","classNames"]);return y.default.createElement("div",h({className:n.overlayWrapper},o),y.default.createElement("div",{className:n.overlay},t))}function c(e){if((0,D.isDate)(e)){return e.getFullYear()+"-"+(""+(e.getMonth()+1))+"-"+(""+e.getDate())}return""}function p(e){if("string"==typeof e){var t=e.split("-");if(3===t.length){var n=parseInt(t[0],10),o=parseInt(t[1],10)-1,r=parseInt(t[2],10);if(!(isNaN(n)||String(n).length>4||isNaN(o)||isNaN(r)||r<=0||r>31||o<0||o>=12))return new Date(n,o,r)}}}Object.defineProperty(t,"__esModule",{value:!0}),t.HIDE_TIMEOUT=void 0;var f=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e};t.OverlayComponent=l,t.defaultFormat=c,t.defaultParse=p;var d=n(0),y=o(d),v=n(1),m=(o(v),n(8)),k=o(m),D=n(2),b=n(7),g=n(3),w=t.HIDE_TIMEOUT=100;l.propTypes={};var M=function(e){function t(e){a(this,t);var n=s(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.input=null,n.daypicker=null,n.clickTimeout=null,n.hideTimeout=null,n.inputBlurTimeout=null,n.inputFocusTimeout=null,n.state=n.getInitialStateFromProps(e),n.state.showOverlay=e.showOverlay,n.hideAfterDayClick=n.hideAfterDayClick.bind(n),n.handleInputClick=n.handleInputClick.bind(n),n.handleInputFocus=n.handleInputFocus.bind(n),n.handleInputBlur=n.handleInputBlur.bind(n),n.handleInputChange=n.handleInputChange.bind(n),n.handleInputKeyDown=n.handleInputKeyDown.bind(n),n.handleInputKeyUp=n.handleInputKeyUp.bind(n),n.handleDayClick=n.handleDayClick.bind(n),n.handleMonthChange=n.handleMonthChange.bind(n),n.handleOverlayFocus=n.handleOverlayFocus.bind(n),n.handleOverlayBlur=n.handleOverlayBlur.bind(n),n}return i(t,e),f(t,[{key:"componentDidUpdate",value:function(e){var t={},n=this.props,o=n.value,r=n.formatDate,a=n.format,s=n.dayPickerProps;o!==e.value&&((0,D.isDate)(o)?t.value=r(o,a,s.locale):t.value=o);var i=e.dayPickerProps.month;s.month&&s.month!==i&&!(0,D.isSameMonth)(s.month,i)&&(t.month=s.month),e.dayPickerProps.selectedDays!==s.selectedDays&&(t.selectedDays=s.selectedDays),Object.keys(t).length>0&&this.setState(t)}},{key:"componentWillUnmount",value:function(){clearTimeout(this.clickTimeout),clearTimeout(this.hideTimeout),clearTimeout(this.inputFocusTimeout),clearTimeout(this.inputBlurTimeout),clearTimeout(this.overlayBlurTimeout)}},{key:"getInitialMonthFromProps",value:function(e){var t=e.dayPickerProps,n=e.format,o=void 0;return e.value&&(o=(0,D.isDate)(e.value)?e.value:e.parseDate(e.value,n,t.locale)),t.initialMonth||t.month||o||new Date}},{key:"getInitialStateFromProps",value:function(e){var t=e.dayPickerProps,n=e.formatDate,o=e.format,r=e.value;return e.value&&(0,D.isDate)(e.value)&&(r=n(e.value,o,t.locale)),{value:r,month:this.getInitialMonthFromProps(e),selectedDays:t.selectedDays}}},{key:"getInput",value:function(){return this.input}},{key:"getDayPicker",value:function(){return this.daypicker}},{key:"updateState",value:function(e,t,n){var o=this,a=this.props,s=a.dayPickerProps,i=a.onDayChange;this.setState({month:e,value:t,typedValue:void 0},function(){if(n&&n(),i){var t=h({disabled:s.disabledDays,selected:s.selectedDays},s.modifiers),a=(0,b.getModifiersForDay)(e,t).reduce(function(e,t){return h({},e,r({},t,!0))},{});i(e,a,o)}})}},{key:"showDayPicker",value:function(){var e=this.props,t=e.parseDate,n=e.format,o=e.dayPickerProps,r=this.state,a=r.value;if(!r.showOverlay){var s=a?t(a,n,o.locale):this.getInitialMonthFromProps(this.props);this.setState(function(e){return{showOverlay:!0,month:s||e.month}})}}},{key:"hideDayPicker",value:function(){var e=this;!1!==this.state.showOverlay&&this.setState({showOverlay:!1},function(){e.props.onDayPickerHide&&e.props.onDayPickerHide()})}},{key:"hideAfterDayClick",value:function(){var e=this;this.props.hideOnDayClick&&(this.hideTimeout=setTimeout(function(){return e.hideDayPicker()},w))}},{key:"handleInputClick",value:function(e){this.showDayPicker(),this.props.inputProps.onClick&&(e.persist(),this.props.inputProps.onClick(e))}},{key:"handleInputFocus",value:function(e){var t=this;this.showDayPicker(),this.inputFocusTimeout=setTimeout(function(){t.overlayHasFocus=!1},2),this.props.inputProps.onFocus&&(e.persist(),this.props.inputProps.onFocus(e))}},{key:"handleInputBlur",value:function(e){var t=this;this.inputBlurTimeout=setTimeout(function(){t.overlayHasFocus||t.hideDayPicker()},1),this.props.inputProps.onBlur&&(e.persist(),this.props.inputProps.onBlur(e))}},{key:"handleOverlayFocus",value:function(e){e.preventDefault(),this.overlayHasFocus=!0,this.props.keepFocus&&this.input&&"function"==typeof this.input.focus&&this.input.focus()}},{key:"handleOverlayBlur",value:function(){var e=this;this.overlayBlurTimeout=setTimeout(function(){e.overlayHasFocus=!1},3)}},{key:"handleInputChange",value:function(e){var t=this.props,n=t.dayPickerProps,o=t.format,r=t.inputProps,a=t.onDayChange,s=t.parseDate;r.onChange&&(e.persist(),r.onChange(e));var i=e.target.value;if(""===i.trim())return this.setState({value:i,typedValue:void 0}),void(a&&a(void 0,{},this));var u=s(i,o,n.locale);if(!u)return this.setState({value:i,typedValue:i}),void(a&&a(void 0,{},this));this.updateState(u,i)}},{key:"handleInputKeyDown",value:function(e){e.keyCode===g.TAB?this.hideDayPicker():this.showDayPicker(),this.props.inputProps.onKeyDown&&(e.persist(),this.props.inputProps.onKeyDown(e))}},{key:"handleInputKeyUp",value:function(e){e.keyCode===g.ESC?this.hideDayPicker():this.showDayPicker(),this.props.inputProps.onKeyUp&&(e.persist(),this.props.inputProps.onKeyUp(e))}},{key:"handleMonthChange",value:function(e){var t=this;this.setState({month:e},function(){t.props.dayPickerProps&&t.props.dayPickerProps.onMonthChange&&t.props.dayPickerProps.onMonthChange(e)})}},{key:"handleDayClick",value:function(e,t,n){var o=this,r=this.props,a=r.clickUnselectsDay,s=r.dayPickerProps,i=r.onDayChange,u=r.formatDate,l=r.format;if(s.onDayClick&&s.onDayClick(e,t,n),!(t.disabled||s&&s.classNames&&t[s.classNames.disabled])){if(t.selected&&a){var c=this.state.selectedDays;if(Array.isArray(c)){c=c.slice(0);var p=c.indexOf(e);c.splice(p,1)}else c&&(c=null);return this.setState({value:"",typedValue:void 0,selectedDays:c},this.hideAfterDayClick),void(i&&i(void 0,t,this))}var f=u(e,l,s.locale);this.setState({value:f,typedValue:void 0,month:e},function(){i&&i(e,t,o),o.hideAfterDayClick()})}}},{key:"renderOverlay",value:function(){var e=this,t=this.props,n=t.classNames,o=t.dayPickerProps,r=t.parseDate,a=t.formatDate,s=t.format,i=this.state,u=i.selectedDays,l=i.value,c=void 0;if(!u&&l){var p=r(l,s,o.locale);p&&(c=p)}else u&&(c=u);var f=void 0;o.todayButton&&(f=function(){return e.updateState(new Date,a(new Date,s,o.locale),e.hideAfterDayClick)});var d=this.props.overlayComponent;return y.default.createElement(d,{classNames:n,month:this.state.month,selectedDay:c,input:this.input,tabIndex:0,onFocus:this.handleOverlayFocus,onBlur:this.handleOverlayBlur},y.default.createElement(k.default,h({ref:function(t){return e.daypicker=t},onTodayButtonClick:f},o,{month:this.state.month,selectedDays:c,onDayClick:this.handleDayClick,onMonthChange:this.handleMonthChange})))}},{key:"render",value:function(){var e=this,t=this.props.component,n=this.props.inputProps;return y.default.createElement("div",{className:this.props.classNames.container},y.default.createElement(t,h({ref:function(t){return e.input=t},placeholder:this.props.placeholder},n,{value:this.state.typedValue||this.state.value,onChange:this.handleInputChange,onFocus:this.handleInputFocus,onBlur:this.handleInputBlur,onKeyDown:this.handleInputKeyDown,onKeyUp:this.handleInputKeyUp,onClick:n.disabled?void 0:this.handleInputClick})),this.state.showOverlay&&this.renderOverlay())}}]),t}(y.default.Component);M.defaultProps={dayPickerProps:{},value:"",placeholder:"YYYY-M-D",format:"L",formatDate:c,parseDate:p,showOverlay:!1,hideOnDayClick:!0,clickUnselectsDay:!1,keepFocus:!0,component:"input",inputProps:{},overlayComponent:l,classNames:{container:"DayPickerInput",overlayWrapper:"DayPickerInput-OverlayWrapper",overlay:"DayPickerInput-Overlay"}},t.default=M,M.propTypes={}}])});
//# sourceMappingURL=daypicker.min.js.map

@@ -7,4 +7,6 @@ "use strict";

exports.clone = clone;
exports.isDate = isDate;
exports.addMonths = addMonths;
exports.isSameDay = isSameDay;
exports.isSameMonth = isSameMonth;
exports.isDayBefore = isDayBefore;

@@ -30,2 +32,13 @@ exports.isDayAfter = isDayAfter;

/**
* Return `true` if the passed value is a valid JavaScript Date object.
*
* @export
* @param {any} value
* @returns {Boolean}
*/
function isDate(value) {
return value instanceof Date && !isNaN(value.valueOf());
}
/**
* Return `d` as a new date with `n` months added.

@@ -59,2 +72,17 @@ *

/**
* Return `true` if two dates fall in the same month.
*
* @export
* @param {Date} d1
* @param {Date} d2
* @return {Boolean}
*/
function isSameMonth(d1, d2) {
if (!d1 || !d2) {
return false;
}
return d1.getMonth() === d2.getMonth() && d1.getFullYear() === d2.getFullYear();
}
/**
* Returns `true` if the first day is before the second day.

@@ -201,2 +229,3 @@ *

getWeekNumber: getWeekNumber,
isDate: isDate,
isDayAfter: isDayAfter,

@@ -208,4 +237,5 @@ isDayBefore: isDayBefore,

isPastDay: isPastDay,
isSameDay: isSameDay
isSameDay: isSameDay,
isSameMonth: isSameMonth
};
//# sourceMappingURL=DateUtils.js.map

@@ -6,2 +6,3 @@ 'use strict';

});
exports.ModifiersUtils = exports.LocaleUtils = exports.DateUtils = exports.DayPicker = undefined;

@@ -70,3 +71,3 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };

var DayPicker = function (_Component) {
var DayPicker = exports.DayPicker = function (_Component) {
_inherits(DayPicker, _Component);

@@ -79,5 +80,105 @@

_initialiseProps.call(_this);
_this.dayPicker = null;
_this.state = _this.getStateFromProps(props);
_this.showNextMonth = function (callback) {
if (!_this.allowNextMonth()) {
return;
}
var deltaMonths = _this.props.pagedNavigation ? _this.props.numberOfMonths : 1;
var nextMonth = DateUtils.addMonths(_this.state.currentMonth, deltaMonths);
_this.showMonth(nextMonth, callback);
};
_this.showPreviousMonth = function (callback) {
if (!_this.allowPreviousMonth()) {
return;
}
var deltaMonths = _this.props.pagedNavigation ? _this.props.numberOfMonths : 1;
var previousMonth = DateUtils.addMonths(_this.state.currentMonth, -deltaMonths);
_this.showMonth(previousMonth, callback);
};
_this.handleKeyDown = function (e) {
e.persist();
switch (e.keyCode) {
case _keys.LEFT:
_this.showPreviousMonth();
break;
case _keys.RIGHT:
_this.showNextMonth();
break;
case _keys.UP:
_this.showPreviousYear();
break;
case _keys.DOWN:
_this.showNextYear();
break;
default:
break;
}
if (_this.props.onKeyDown) {
_this.props.onKeyDown(e);
}
};
_this.handleDayKeyDown = function (day, modifiers, e) {
e.persist();
switch (e.keyCode) {
case _keys.LEFT:
Helpers.cancelEvent(e);
_this.focusPreviousDay(e.target);
break;
case _keys.RIGHT:
Helpers.cancelEvent(e);
_this.focusNextDay(e.target);
break;
case _keys.UP:
Helpers.cancelEvent(e);
_this.focusPreviousWeek(e.target);
break;
case _keys.DOWN:
Helpers.cancelEvent(e);
_this.focusNextWeek(e.target);
break;
case _keys.ENTER:
case _keys.SPACE:
Helpers.cancelEvent(e);
if (_this.props.onDayClick) {
_this.handleDayClick(day, modifiers, e);
}
break;
default:
break;
}
if (_this.props.onDayKeyDown) {
_this.props.onDayKeyDown(day, modifiers, e);
}
};
_this.handleDayClick = function (day, modifiers, e) {
e.persist();
if (modifiers[_this.props.classNames.outside] && _this.props.enableOutsideDaysClick) {
_this.handleOutsideDayClick(day);
}
if (_this.props.onDayClick) {
_this.props.onDayClick(day, modifiers, e);
}
};
_this.handleTodayButtonClick = function (e) {
var today = new Date();
var month = new Date(today.getFullYear(), today.getMonth());
_this.showMonth(month);
e.target.blur();
if (_this.props.onTodayButtonClick) {
e.persist();
_this.props.onTodayButtonClick(new Date(today.getFullYear(), today.getMonth(), today.getDate()), ModifiersUtils.getModifiersForDay(today, _this.props.modifiers), e);
}
};
var currentMonth = _this.getCurrentMonthFromProps(props);
_this.state = { currentMonth: currentMonth };
return _this;

@@ -87,9 +188,37 @@ }

_createClass(DayPicker, [{
key: 'componentWillReceiveProps',
value: function componentWillReceiveProps(nextProps) {
if (this.props.month !== nextProps.month) {
this.setState(this.getStateFromProps(nextProps));
key: 'componentDidUpdate',
value: function componentDidUpdate(prevProps) {
// Changing the `month` props means changing the current displayed month
if (prevProps.month !== this.props.month && !DateUtils.isSameMonth(prevProps.month, this.props.month)) {
var currentMonth = this.getCurrentMonthFromProps(this.props);
// eslint-disable-next-line react/no-did-update-set-state
this.setState({ currentMonth: currentMonth });
}
}
/**
* Return the month to be shown in the calendar based on the component props.
*
* @param {Object} props
* @returns Date
* @memberof DayPicker
* @private
*/
}, {
key: 'getCurrentMonthFromProps',
value: function getCurrentMonthFromProps(props) {
var initialMonth = Helpers.startOfMonth(props.month || props.initialMonth);
var currentMonth = initialMonth;
if (props.pagedNavigation && props.numberOfMonths > 1 && props.fromMonth) {
var fromMonth = Helpers.startOfMonth(props.fromMonth);
var diffInMonths = Helpers.getMonthsDiff(fromMonth, currentMonth);
currentMonth = DateUtils.addMonths(fromMonth, Math.floor(diffInMonths / props.numberOfMonths) * props.numberOfMonths);
} else if (props.toMonth && props.numberOfMonths > 1 && Helpers.getMonthsDiff(currentMonth, props.toMonth) <= 0) {
currentMonth = DateUtils.addMonths(Helpers.startOfMonth(props.toMonth), 1 - this.props.numberOfMonths);
}
return currentMonth;
}
}, {
key: 'getNextNavigableMonth',

@@ -372,3 +501,3 @@ value: function getNextNavigableMonth() {

className: this.props.classNames.wrapper,
tabIndex: this.props.canChangeMonth && this.props.tabIndex ? this.props.tabIndex : -1,
tabIndex: this.props.canChangeMonth && typeof this.props.tabIndex !== 'undefined' ? this.props.tabIndex : -1,
onKeyDown: this.handleKeyDown,

@@ -393,3 +522,3 @@ onFocus: this.props.onFocus,

DayPicker.VERSION = '7.1.4';
DayPicker.VERSION = '7.2.4';
DayPicker.defaultProps = {

@@ -424,121 +553,2 @@ classNames: _classNames2.default,

};
var _initialiseProps = function _initialiseProps() {
var _this8 = this;
this.getStateFromProps = function (props) {
var initialMonth = Helpers.startOfMonth(props.month || props.initialMonth);
var currentMonth = initialMonth;
if (props.pagedNavigation && props.numberOfMonths > 1 && props.fromMonth) {
var diffInMonths = Helpers.getMonthsDiff(props.fromMonth, currentMonth);
currentMonth = DateUtils.addMonths(props.fromMonth, Math.floor(diffInMonths / props.numberOfMonths) * props.numberOfMonths);
} else if (props.toMonth && props.numberOfMonths > 1 && Helpers.getMonthsDiff(currentMonth, props.toMonth) <= 0) {
currentMonth = DateUtils.addMonths(props.toMonth, 1 - _this8.props.numberOfMonths);
}
return { currentMonth: currentMonth };
};
this.dayPicker = null;
this.showNextMonth = function (callback) {
if (!_this8.allowNextMonth()) {
return;
}
var deltaMonths = _this8.props.pagedNavigation ? _this8.props.numberOfMonths : 1;
var nextMonth = DateUtils.addMonths(_this8.state.currentMonth, deltaMonths);
_this8.showMonth(nextMonth, callback);
};
this.showPreviousMonth = function (callback) {
if (!_this8.allowPreviousMonth()) {
return;
}
var deltaMonths = _this8.props.pagedNavigation ? _this8.props.numberOfMonths : 1;
var previousMonth = DateUtils.addMonths(_this8.state.currentMonth, -deltaMonths);
_this8.showMonth(previousMonth, callback);
};
this.handleKeyDown = function (e) {
e.persist();
switch (e.keyCode) {
case _keys.LEFT:
_this8.showPreviousMonth();
break;
case _keys.RIGHT:
_this8.showNextMonth();
break;
case _keys.UP:
_this8.showPreviousYear();
break;
case _keys.DOWN:
_this8.showNextYear();
break;
default:
break;
}
if (_this8.props.onKeyDown) {
_this8.props.onKeyDown(e);
}
};
this.handleDayKeyDown = function (day, modifiers, e) {
e.persist();
switch (e.keyCode) {
case _keys.LEFT:
Helpers.cancelEvent(e);
_this8.focusPreviousDay(e.target);
break;
case _keys.RIGHT:
Helpers.cancelEvent(e);
_this8.focusNextDay(e.target);
break;
case _keys.UP:
Helpers.cancelEvent(e);
_this8.focusPreviousWeek(e.target);
break;
case _keys.DOWN:
Helpers.cancelEvent(e);
_this8.focusNextWeek(e.target);
break;
case _keys.ENTER:
case _keys.SPACE:
Helpers.cancelEvent(e);
if (_this8.props.onDayClick) {
_this8.handleDayClick(day, modifiers, e);
}
break;
default:
break;
}
if (_this8.props.onDayKeyDown) {
_this8.props.onDayKeyDown(day, modifiers, e);
}
};
this.handleDayClick = function (day, modifiers, e) {
e.persist();
if (modifiers[_this8.props.classNames.outside] && _this8.props.enableOutsideDaysClick) {
_this8.handleOutsideDayClick(day);
}
if (_this8.props.onDayClick) {
_this8.props.onDayClick(day, modifiers, e);
}
};
this.handleTodayButtonClick = function (e) {
var today = new Date();
var month = new Date(today.getFullYear(), today.getMonth());
_this8.showMonth(month);
e.target.blur();
if (_this8.props.onTodayButtonClick) {
e.persist();
_this8.props.onTodayButtonClick(new Date(today.getFullYear(), today.getMonth(), today.getDate()), ModifiersUtils.getModifiersForDay(today, _this8.props.modifiers), e);
}
};
};
exports.default = DayPicker;
DayPicker.propTypes = process.env.NODE_ENV !== "production" ? {

@@ -640,2 +650,7 @@ // Rendering months

DayPicker.ModifiersUtils = ModifiersUtils;
exports.DateUtils = DateUtils;
exports.LocaleUtils = LocaleUtils;
exports.ModifiersUtils = ModifiersUtils;
exports.default = DayPicker;
//# sourceMappingURL=DayPicker.js.map

@@ -8,6 +8,7 @@ 'use strict';

var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
exports.OverlayComponent = OverlayComponent;
exports.defaultFormat = defaultFormat;

@@ -28,2 +29,4 @@ exports.defaultParse = defaultParse;

var _DateUtils = require('./DateUtils');
var _ModifiersUtils = require('./ModifiersUtils');

@@ -35,2 +38,4 @@

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

@@ -42,11 +47,47 @@

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }
// When clicking on a day cell, overlay will be hidden after this timeout
var HIDE_TIMEOUT = exports.HIDE_TIMEOUT = 100;
function isDate(date) {
return date instanceof Date && !isNaN(date.valueOf());
/**
* The default component used as Overlay.
*
* @param {Object} props
*/
function OverlayComponent(_ref) {
var input = _ref.input,
selectedDay = _ref.selectedDay,
month = _ref.month,
children = _ref.children,
classNames = _ref.classNames,
props = _objectWithoutProperties(_ref, ['input', 'selectedDay', 'month', 'children', 'classNames']);
return _react2.default.createElement(
'div',
_extends({ className: classNames.overlayWrapper }, props),
_react2.default.createElement(
'div',
{ className: classNames.overlay },
children
)
);
}
OverlayComponent.propTypes = process.env.NODE_ENV !== "production" ? {
input: _propTypes2.default.any,
selectedDay: _propTypes2.default.any,
month: _propTypes2.default.instanceOf(Date),
children: _propTypes2.default.node,
classNames: _propTypes2.default.object
} : {};
/**
* The default function used to format a Date to String, passed to the `format`
* prop.
* @param {Date} d
* @return {String}
*/
function defaultFormat(d) {
if (isDate(d)) {
if ((0, _DateUtils.isDate)(d)) {
var year = d.getFullYear();

@@ -60,2 +101,8 @@ var month = '' + (d.getMonth() + 1);

/**
* The default function used to parse a String as Date, passed to the `parse`
* prop.
* @param {String} str
* @return {Date}
*/
function defaultParse(str) {

@@ -72,3 +119,3 @@ if (typeof str !== 'string') {

var day = parseInt(split[2], 10);
if (isNaN(year) || isNaN(month) || isNaN(day) || day <= 0 || day > 31 || month < 0 || month >= 12) {
if (isNaN(year) || String(year).length > 4 || isNaN(month) || isNaN(day) || day <= 0 || day > 31 || month < 0 || month >= 12) {
return undefined;

@@ -90,8 +137,9 @@ }

_this.daypicker = null;
_this.overlayNode = null;
_this.clickTimeout = null;
_this.hideTimeout = null;
_this.inputBlurTimeout = null;
_this.inputFocusTimeout = null;
_this.state = _this.getStateFromProps(props);
_this.state = _this.getInitialStateFromProps(props);
_this.state.showOverlay = props.showOverlay;

@@ -114,29 +162,38 @@

_createClass(DayPickerInput, [{
key: 'componentWillReceiveProps',
value: function componentWillReceiveProps(nextProps) {
var monthFromProps = this.props.dayPickerProps.month;
var nextMonthFromProps = nextProps.dayPickerProps.month;
key: 'componentDidUpdate',
value: function componentDidUpdate(prevProps) {
var newState = {};
var selectedDaysFromProps = this.props.dayPickerProps.selectedDays;
var nextSelectedDaysFromProps = nextProps.dayPickerProps.selectedDays;
// Current props
var _props = this.props,
value = _props.value,
formatDate = _props.formatDate,
format = _props.format,
dayPickerProps = _props.dayPickerProps;
var nextValue = nextProps.value;
var currentValue = this.props.value;
// Update the input value if the `value` prop has changed
var monthChanged = nextMonthFromProps && !monthFromProps || nextMonthFromProps && (nextMonthFromProps.getFullYear() !== monthFromProps.getFullYear() || nextMonthFromProps.getMonth() !== monthFromProps.getMonth());
if (nextValue !== currentValue) {
if (isDate(nextValue)) {
nextValue = this.props.formatDate(nextValue, this.props.format, this.props.dayPickerProps.locale);
if (value !== prevProps.value) {
if ((0, _DateUtils.isDate)(value)) {
newState.value = formatDate(value, format, dayPickerProps.locale);
} else {
newState.value = value;
}
this.setState({
value: nextValue
});
}
if (monthChanged) {
this.setState({ month: nextMonthFromProps });
// Update the month if the months from props changed
var prevMonth = prevProps.dayPickerProps.month;
if (dayPickerProps.month && dayPickerProps.month !== prevMonth && !(0, _DateUtils.isSameMonth)(dayPickerProps.month, prevMonth)) {
newState.month = dayPickerProps.month;
}
if (selectedDaysFromProps !== nextSelectedDaysFromProps) {
this.setState({ selectedDays: nextSelectedDaysFromProps });
// Updated the selected days from props if they changed
if (prevProps.dayPickerProps.selectedDays !== dayPickerProps.selectedDays) {
newState.selectedDays = dayPickerProps.selectedDays;
}
if (Object.keys(newState).length > 0) {
// eslint-disable-next-line react/no-did-update-set-state
this.setState(newState);
}
}

@@ -148,17 +205,16 @@ }, {

clearTimeout(this.hideTimeout);
clearTimeout(this.inputFocusTimeout);
clearTimeout(this.inputBlurTimeout);
clearTimeout(this.overlayBlurTimeout);
}
}, {
key: 'getStateFromProps',
value: function getStateFromProps(props) {
key: 'getInitialMonthFromProps',
value: function getInitialMonthFromProps(props) {
var dayPickerProps = props.dayPickerProps,
formatDate = props.formatDate,
format = props.format;
var value = props.value;
var day = void 0;
if (props.value) {
if (isDate(props.value)) {
if ((0, _DateUtils.isDate)(props.value)) {
day = props.value;
value = formatDate(props.value, format, dayPickerProps.locale);
} else {

@@ -168,9 +224,18 @@ day = props.parseDate(props.value, format, dayPickerProps.locale);

}
return dayPickerProps.initialMonth || dayPickerProps.month || day || new Date();
}
}, {
key: 'getInitialStateFromProps',
value: function getInitialStateFromProps(props) {
var dayPickerProps = props.dayPickerProps,
formatDate = props.formatDate,
format = props.format;
var value = props.value;
// Use DayPicker's controlled month. Then try the current `value`. Finally default to today.
var month = dayPickerProps.initialMonth || dayPickerProps.month || day || new Date();
if (props.value && (0, _DateUtils.isDate)(props.value)) {
value = formatDate(props.value, format, dayPickerProps.locale);
}
return {
value: value,
month: month,
month: this.getInitialMonthFromProps(props),
selectedDays: dayPickerProps.selectedDays

@@ -189,9 +254,7 @@ };

}
}, {
key: 'updateState',
/**
* Update the component's state and fire the `onDayChange` event
* passing the day's modifiers to it
* Update the component's state and fire the `onDayChange` event passing the
* day's modifiers to it.
*
* @param {Date} day - Will be used for changing the month

@@ -201,8 +264,13 @@ * @param {String} value - Input field value

*/
}, {
key: 'updateState',
value: function updateState(day, value, callback) {
var _props = this.props,
dayPickerProps = _props.dayPickerProps,
onDayChange = _props.onDayChange;
var _this2 = this;
this.setState({ month: day, value: value }, function () {
var _props2 = this.props,
dayPickerProps = _props2.dayPickerProps,
onDayChange = _props2.onDayChange;
this.setState({ month: day, value: value, typedValue: undefined }, function () {
if (callback) {

@@ -219,7 +287,5 @@ callback();

var modifiers = (0, _ModifiersUtils.getModifiersForDay)(day, modifiersObj).reduce(function (obj, modifier) {
var newObj = _extends({}, obj);
newObj[modifier] = true;
return newObj;
return _extends({}, obj, _defineProperty({}, modifier, true));
}, {});
onDayChange(day, modifiers);
onDayChange(day, modifiers, _this2);
});

@@ -237,3 +303,22 @@ }

value: function showDayPicker() {
this.setState({ showOverlay: true });
var _props3 = this.props,
parseDate = _props3.parseDate,
format = _props3.format,
dayPickerProps = _props3.dayPickerProps;
var _state = this.state,
value = _state.value,
showOverlay = _state.showOverlay;
if (showOverlay) {
return;
}
// Reset the current displayed month when showing the overlay
var month = value ? parseDate(value, format, dayPickerProps.locale) // Use the month in the input field
: this.getInitialMonthFromProps(this.props); // Restore the month from the props
this.setState(function (state) {
return {
showOverlay: true,
month: month || state.month
};
});
}

@@ -250,3 +335,10 @@

value: function hideDayPicker() {
this.setState({ showOverlay: false });
var _this3 = this;
if (this.state.showOverlay === false) {
return;
}
this.setState({ showOverlay: false }, function () {
if (_this3.props.onDayPickerHide) _this3.props.onDayPickerHide();
});
}

@@ -256,3 +348,3 @@ }, {

value: function hideAfterDayClick() {
var _this2 = this;
var _this4 = this;

@@ -263,3 +355,3 @@ if (!this.props.hideOnDayClick) {

this.hideTimeout = setTimeout(function () {
return _this2.hideDayPicker();
return _this4.hideDayPicker();
}, HIDE_TIMEOUT);

@@ -279,3 +371,10 @@ }

value: function handleInputFocus(e) {
var _this5 = this;
this.showDayPicker();
// Set `overlayHasFocus` after a timeout so the overlay can be hidden when
// the input is blurred
this.inputFocusTimeout = setTimeout(function () {
_this5.overlayHasFocus = false;
}, 2);
if (this.props.inputProps.onFocus) {

@@ -286,8 +385,20 @@ e.persist();

}
// When the input is blurred, the overlay should disappear. However the input
// is blurred also when the user interacts with the overlay (e.g. the overlay
// get the focus by clicking it). In these cases, the overlay should not be
// hidden. There are different approaches to avoid hiding the overlay when
// this happens, but the only cross-browser hack we’ve found is to set all
// these timeouts in code before changing `overlayHasFocus`.
}, {
key: 'handleInputBlur',
value: function handleInputBlur(e) {
this.setState({
showOverlay: this.overlayNode && this.overlayNode.contains(e.relatedTarget)
});
var _this6 = this;
this.inputBlurTimeout = setTimeout(function () {
if (!_this6.overlayHasFocus) {
_this6.hideDayPicker();
}
}, 1);
if (this.props.inputProps.onBlur) {

@@ -301,13 +412,19 @@ e.persist();

value: function handleOverlayFocus(e) {
if (this.props.keepFocus === true) {
e.preventDefault();
this.input.focus();
e.preventDefault();
this.overlayHasFocus = true;
if (!this.props.keepFocus || !this.input || typeof this.input.focus !== 'function') {
return;
}
this.input.focus();
}
}, {
key: 'handleOverlayBlur',
value: function handleOverlayBlur(e) {
this.setState({
showOverlay: this.overlayNode && this.overlayNode.contains(e.relatedTarget)
});
value: function handleOverlayBlur() {
var _this7 = this;
// We need to set a timeout otherwise IE11 will hide the overlay when
// focusing it
this.overlayBlurTimeout = setTimeout(function () {
_this7.overlayHasFocus = false;
}, 3);
}

@@ -317,8 +434,8 @@ }, {

value: function handleInputChange(e) {
var _props2 = this.props,
dayPickerProps = _props2.dayPickerProps,
format = _props2.format,
inputProps = _props2.inputProps,
onDayChange = _props2.onDayChange,
parseDate = _props2.parseDate;
var _props4 = this.props,
dayPickerProps = _props4.dayPickerProps,
format = _props4.format,
inputProps = _props4.inputProps,
onDayChange = _props4.onDayChange,
parseDate = _props4.parseDate;

@@ -332,4 +449,4 @@ if (inputProps.onChange) {

if (value.trim() === '') {
this.setState({ value: value });
if (onDayChange) onDayChange(undefined, {});
this.setState({ value: value, typedValue: undefined });
if (onDayChange) onDayChange(undefined, {}, this);
return;

@@ -339,4 +456,5 @@ }

if (!day) {
this.setState({ value: value });
if (onDayChange) onDayChange(undefined, {});
// Day is invalid: we save the value in the typedValue state
this.setState({ value: value, typedValue: value });
if (onDayChange) onDayChange(undefined, {}, this);
return;

@@ -351,2 +469,4 @@ }

this.hideDayPicker();
} else {
this.showDayPicker();
}

@@ -361,5 +481,6 @@ if (this.props.inputProps.onKeyDown) {

value: function handleInputKeyUp(e) {
// Hide the overlay if the ESC key is pressed
if (e.keyCode === _keys.ESC) {
this.hideDayPicker();
} else {
this.showDayPicker();
}

@@ -374,7 +495,7 @@ if (this.props.inputProps.onKeyUp) {

value: function handleMonthChange(month) {
var _this3 = this;
var _this8 = this;
this.setState({ month: month }, function () {
if (_this3.props.dayPickerProps && _this3.props.dayPickerProps.onMonthChange) {
_this3.props.dayPickerProps.onMonthChange(month);
if (_this8.props.dayPickerProps && _this8.props.dayPickerProps.onMonthChange) {
_this8.props.dayPickerProps.onMonthChange(month);
}

@@ -386,10 +507,10 @@ });

value: function handleDayClick(day, modifiers, e) {
var _this4 = this;
var _this9 = this;
var _props3 = this.props,
clickUnselectsDay = _props3.clickUnselectsDay,
dayPickerProps = _props3.dayPickerProps,
onDayChange = _props3.onDayChange,
formatDate = _props3.formatDate,
format = _props3.format;
var _props5 = this.props,
clickUnselectsDay = _props5.clickUnselectsDay,
dayPickerProps = _props5.dayPickerProps,
onDayChange = _props5.onDayChange,
formatDate = _props5.formatDate,
format = _props5.format;

@@ -401,3 +522,3 @@ if (dayPickerProps.onDayClick) {

// Do nothing if the day is disabled
if (modifiers.disabled) {
if (modifiers.disabled || dayPickerProps && dayPickerProps.classNames && modifiers[dayPickerProps.classNames.disabled]) {
return;

@@ -418,5 +539,5 @@ }

}
this.setState({ value: '', selectedDays: selectedDays }, this.hideAfterDayClick);
this.setState({ value: '', typedValue: undefined, selectedDays: selectedDays }, this.hideAfterDayClick);
if (onDayChange) {
onDayChange(undefined, modifiers);
onDayChange(undefined, modifiers, this);
}

@@ -427,7 +548,7 @@ return;

var value = formatDate(day, format, dayPickerProps.locale);
this.setState({ value: value, month: day }, function () {
this.setState({ value: value, typedValue: undefined, month: day }, function () {
if (onDayChange) {
onDayChange(day, modifiers);
onDayChange(day, modifiers, _this9);
}
_this4.hideAfterDayClick();
_this9.hideAfterDayClick();
});

@@ -438,13 +559,13 @@ }

value: function renderOverlay() {
var _this5 = this;
var _this10 = this;
var _props4 = this.props,
classNames = _props4.classNames,
dayPickerProps = _props4.dayPickerProps,
parseDate = _props4.parseDate,
formatDate = _props4.formatDate,
format = _props4.format;
var _state = this.state,
selectedDays = _state.selectedDays,
value = _state.value;
var _props6 = this.props,
classNames = _props6.classNames,
dayPickerProps = _props6.dayPickerProps,
parseDate = _props6.parseDate,
formatDate = _props6.formatDate,
format = _props6.format;
var _state2 = this.state,
selectedDays = _state2.selectedDays,
value = _state2.value;

@@ -464,3 +585,3 @@ var selectedDay = void 0;

onTodayButtonClick = function onTodayButtonClick() {
return _this5.updateState(new Date(), formatDate(new Date(), format, dayPickerProps.locale), _this5.hideAfterDayClick);
return _this10.updateState(new Date(), formatDate(new Date(), format, dayPickerProps.locale), _this10.hideAfterDayClick);
};

@@ -470,30 +591,23 @@ }

return _react2.default.createElement(
'span',
Overlay,
{
onFocus: this.handleOverlayFocus,
ref: function ref(el) {
return _this5.overlayNode = el;
},
classNames: classNames,
month: this.state.month,
selectedDay: selectedDay,
input: this.input,
tabIndex: 0 // tabIndex is necessary to catch focus/blur events on Safari
, onFocus: this.handleOverlayFocus,
onBlur: this.handleOverlayBlur
},
_react2.default.createElement(
Overlay,
{
classNames: classNames,
month: dayPickerProps.month,
selectedDay: selectedDay,
input: this.input
_react2.default.createElement(_DayPicker2.default, _extends({
ref: function ref(el) {
return _this10.daypicker = el;
},
_react2.default.createElement(_DayPicker2.default, _extends({
ref: function ref(el) {
return _this5.daypicker = el;
},
onTodayButtonClick: onTodayButtonClick
}, dayPickerProps, {
month: dayPickerProps.month,
selectedDays: selectedDay,
onDayClick: this.handleDayClick,
onMonthChange: this.handleMonthChange
}))
)
onTodayButtonClick: onTodayButtonClick
}, dayPickerProps, {
month: this.state.month,
selectedDays: selectedDay,
onDayClick: this.handleDayClick,
onMonthChange: this.handleMonthChange
}))
);

@@ -504,5 +618,7 @@ }

value: function render() {
var _this6 = this;
var _this11 = this;
var Input = this.props.component;
var inputProps = this.props.inputProps;
return _react2.default.createElement(

@@ -513,7 +629,7 @@ 'div',

ref: function ref(el) {
return _this6.input = el;
return _this11.input = el;
},
placeholder: this.props.placeholder
}, this.props.inputProps, {
value: this.state.value,
}, inputProps, {
value: this.state.typedValue || this.state.value,
onChange: this.handleInputChange,

@@ -524,3 +640,3 @@ onFocus: this.handleInputFocus,

onKeyUp: this.handleInputKeyUp,
onClick: this.handleInputClick
onClick: !inputProps.disabled ? this.handleInputClick : undefined
})),

@@ -548,15 +664,3 @@ this.state.showOverlay && this.renderOverlay()

inputProps: {},
overlayComponent: function overlayComponent(_ref) {
var children = _ref.children,
classNames = _ref.classNames;
return _react2.default.createElement(
'div',
{ className: classNames.overlayWrapper },
_react2.default.createElement(
'div',
{ className: classNames.overlay },
children
)
);
},
overlayComponent: OverlayComponent,
classNames: {

@@ -594,2 +698,3 @@ container: 'DayPickerInput',

onDayChange: _propTypes2.default.func,
onDayPickerHide: _propTypes2.default.func,
onChange: _propTypes2.default.func,

@@ -596,0 +701,0 @@ onClick: _propTypes2.default.func,

@@ -170,3 +170,3 @@ 'use strict';

if (showWeekNumbers) {
weekNumber = DateUtils.getWeekNumber(week[0]);
weekNumber = DateUtils.getWeekNumber(week[6]);
}

@@ -173,0 +173,0 @@ return _react2.default.createElement(

{
"name": "@kupibilet/react-day-picker",
"version": "7.1.6",
"version": "7.2.5",
"description": "Flexible date picker component for React",

@@ -11,2 +11,3 @@ "main": "DayPicker.js",

"DayPickerInput.js",
"DayPickerInput.d.ts",
"lib",

@@ -59,48 +60,49 @@ "moment.js",

"devDependencies": {
"autoprefixer": "8.1.0",
"babel-cli": "6.26.0",
"babel-core": "6.26.0",
"babel-eslint": "8.2.2",
"babel-loader": "7.1.3",
"babel-plugin-transform-class-properties": "6.24.1",
"babel-plugin-transform-export-extensions": "6.22.0",
"babel-plugin-transform-object-rest-spread": "6.26.0",
"babel-plugin-transform-react-remove-prop-types": "0.4.13",
"babel-preset-env": "1.6.1",
"babel-preset-react": "6.24.1",
"babel-preset-stage-1": "6.24.1",
"cheerio": "1.0.0-rc.2",
"codecov": "3.0.0",
"cross-env": "^5.1.3",
"dtslint": "0.2.0",
"enzyme": "3.3.0",
"enzyme-adapter-react-16": "1.1.1",
"eslint": "4.18.2",
"eslint-config-airbnb": "16.1.0",
"eslint-config-airbnb-base": "12.1.0",
"eslint-config-prettier": "2.9.0",
"eslint-plugin-import": "2.9.0",
"eslint-plugin-jsx-a11y": "6.0.3",
"eslint-plugin-prettier": "2.6.0",
"eslint-plugin-react": "7.7.0",
"gh-pages": "1.1.0",
"husky": "0.14.3",
"jest": "22.4.2",
"jest-enzyme": "4.2.0",
"jest-junit-reporter": "1.1.0",
"moment": "2.21.0",
"null-loader": "0.1.1",
"postcss-cli": "5.0.0",
"prettier": "1.11.1",
"raf": "3.4.0",
"react": "16.2.0",
"react-dom": "16.2.0",
"react-test-renderer": "16.2.0",
"rimraf": "2.6.2",
"typescript": "2.7.2",
"webpack": "3.10.0"
"autoprefixer": "^8.4.1",
"babel-cli": "^6.26.0",
"babel-core": "^6.26.3",
"babel-eslint": "^8.2.6",
"babel-jest": "^23.4.2",
"babel-loader": "^7.1.5",
"babel-plugin-transform-class-properties": "^6.24.1",
"babel-plugin-transform-export-extensions": "^6.22.0",
"babel-plugin-transform-object-rest-spread": "^6.26.0",
"babel-plugin-transform-react-remove-prop-types": "~0.4.15",
"babel-preset-env": "^1.7.0",
"babel-preset-react": "^6.24.1",
"babel-preset-stage-1": "^6.24.1",
"cheerio": "^1.0.0-rc.2",
"codecov": "^3.0.4",
"cross-env": "^5.2.0",
"dtslint": "~0.3.0",
"enzyme": "^3.5.0",
"enzyme-adapter-react-16": "^1.3.0",
"eslint": "^5.4.0",
"eslint-config-airbnb": "^17.1.0",
"eslint-config-airbnb-base": "^13.1.0",
"eslint-config-prettier": "^3.0.1",
"eslint-plugin-import": "^2.14.0",
"eslint-plugin-jsx-a11y": "^6.1.1",
"eslint-plugin-prettier": "^2.6.2",
"eslint-plugin-react": "^7.11.1",
"gh-pages": "^1.2.0",
"husky": "~0.14.3",
"jest": "^23.5.0",
"jest-enzyme": "^6.0.3",
"jest-junit-reporter": "^1.1.0",
"moment": "^2.22.2",
"null-loader": "~0.1.1",
"postcss-cli": "^5.0.0",
"prettier": "^1.14.2",
"raf": "^3.4.0",
"react": "^16.4.2",
"react-dom": "^16.4.2",
"react-test-renderer": "^16.4.2",
"rimraf": "^2.6.2",
"typescript": "^3.0.1",
"webpack": "^3.10.0"
},
"dependencies": {
"prop-types": "^15.6.1"
"prop-types": "^15.6.2"
}
}

@@ -53,3 +53,5 @@ // TypeScript Version: 2.2

| DaysOfWeekModifier
| FunctionModifier;
| FunctionModifier
| undefined
| null;

@@ -56,0 +58,0 @@ export interface Modifiers {

@@ -14,3 +14,2 @@ // TypeScript Version: 2.2

export default class DayPicker extends React.Component<DayPickerProps, any> {
static dayPicker: HTMLDivElement;
static VERSION: string;

@@ -22,2 +21,3 @@ static LocaleUtils: LocaleUtils;

static Modifiers: Modifiers;
readonly dayPicker: HTMLDivElement;
showMonth(month: Date): void;

@@ -24,0 +24,0 @@ showPreviousMonth(): void;

@@ -6,2 +6,3 @@ // TypeScript Version: 2.2

import { LocaleUtils } from './utils';
import { DayPickerInput } from './DayPickerInput';

@@ -43,10 +44,10 @@ export interface CaptionElementProps {

captionElement?:
| React.ReactElement<Partial<CaptionElementProps>>
| React.ComponentClass<CaptionElementProps>
| React.SFC<CaptionElementProps>;
| React.ReactElement<Partial<CaptionElementProps>>
| React.ComponentClass<CaptionElementProps>
| React.SFC<CaptionElementProps>;
className?: string;
classNames?: ClassNames;
containerProps?: React.DetailedHTMLProps<
React.HTMLAttributes<HTMLDivElement>,
HTMLDivElement
React.HTMLAttributes<HTMLDivElement>,
HTMLDivElement
>;

@@ -81,5 +82,5 @@ disabledDays?: Modifier | Modifier[];

navbarElement?:
| React.ReactElement<Partial<NavbarElementProps>>
| React.ComponentClass<NavbarElementProps>
| React.SFC<NavbarElementProps>;
| React.ReactElement<Partial<NavbarElementProps>>
| React.ComponentClass<NavbarElementProps>
| React.SFC<NavbarElementProps>;
numberOfMonths?: number;

@@ -151,5 +152,5 @@ onBlur?(e: React.FocusEvent<HTMLDivElement>): void;

weekdayElement?:
| React.ReactElement<Partial<WeekdayElementProps>>
| React.ComponentClass<WeekdayElementProps>
| React.SFC<WeekdayElementProps>;
| React.ReactElement<Partial<WeekdayElementProps>>
| React.ComponentClass<WeekdayElementProps>
| React.SFC<WeekdayElementProps>;
weekdaysLong?: [string, string, string, string, string, string, string];

@@ -181,3 +182,8 @@ weekdaysShort?: [string, string, string, string, string, string, string];

onDayChange?(day: Date, DayModifiers: DayModifiers): void;
onDayChange?(
day: Date,
DayModifiers: DayModifiers,
dayPickerInput: DayPickerInput
): void;
onDayPickerHide?(): void;
onChange?(e: React.FocusEvent<HTMLDivElement>): void;

@@ -184,0 +190,0 @@ onClick?(e: React.FocusEvent<HTMLDivElement>): void;

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc