react-day-picker 7.2.4 → 7.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +53 -0
- package/LICENSE +1 -2
- package/lib/daypicker.js +258 -410
- package/lib/daypicker.js.map +1 -1
- package/lib/daypicker.min.js +1 -1
- package/lib/daypicker.min.js.map +1 -1
- package/lib/src/Caption.js +6 -6
- package/lib/src/Caption.js.map +1 -1
- package/lib/src/DateUtils.js +2 -2
- package/lib/src/DateUtils.js.map +1 -1
- package/lib/src/Day.js +11 -11
- package/lib/src/Day.js.map +1 -1
- package/lib/src/DayPicker.js +65 -36
- package/lib/src/DayPicker.js.map +1 -1
- package/lib/src/DayPickerInput.js +71 -56
- package/lib/src/DayPickerInput.js.map +1 -1
- package/lib/src/Helpers.js.map +1 -1
- package/lib/src/Month.js +6 -5
- package/lib/src/Month.js.map +1 -1
- package/lib/src/Navbar.js +15 -14
- package/lib/src/Navbar.js.map +1 -1
- package/lib/src/PropTypes.js.map +1 -1
- package/lib/src/Weekday.js +3 -3
- package/lib/src/Weekday.js.map +1 -1
- package/lib/src/Weekdays.js +3 -3
- package/lib/src/Weekdays.js.map +1 -1
- package/lib/src/addons/MomentLocaleUtils.js.map +1 -1
- package/moment.d.ts +2 -0
- package/package.json +5 -4
- package/types/DayPicker.d.ts +5 -4
- package/types/DayPickerInput.d.ts +1 -2
- package/types/README.md +5 -0
- package/types/common.d.ts +11 -3
- package/types/index.d.ts +3 -4
- package/types/moment.d.ts +5 -0
- package/types/props.d.ts +24 -26
- package/types/tsconfig.json +1 -1
- package/types/utils.d.ts +17 -13
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,56 @@
|
|
|
1
|
+
## [v7.4](https://github.com/gpbl/react-day-picker/tree/v7.4.0) (2019-10-20)
|
|
2
|
+
|
|
3
|
+
#### DayPicker
|
|
4
|
+
* Fix text wrapping on `.DayPicker-Day` default style (#824)
|
|
5
|
+
* Add `focus()` method for focusing the `DayPicker` wrapper element (#761)
|
|
6
|
+
|
|
7
|
+
#### DayPickerInput
|
|
8
|
+
|
|
9
|
+
* When DayPicker input state is controlled, correctly set the input text if the `value` prop updates ([#816](https://github.com/gpbl/react-day-picker/issues/816) by [MitchRivet](https://github.com/MitchRivet))
|
|
10
|
+
* Fix DayPickerInput value does not recompute on `locale` change (fix #938) (#939)
|
|
11
|
+
* Set overlayHasFocus to false in hideAfterDayClick (#941)
|
|
12
|
+
|
|
13
|
+
#### Typings
|
|
14
|
+
|
|
15
|
+
* Improve typings, use TypeScript 3.1 (#929)
|
|
16
|
+
* Add formatDate and parseDate to typings (#873)
|
|
17
|
+
* Make `format` optional (#923)
|
|
18
|
+
* Remove `initialMonth` from `defaultProps` (#874)
|
|
19
|
+
|
|
20
|
+
### [v7.3.2](https://github.com/gpbl/react-day-picker/tree/v7.3.2) (2019-08-08)
|
|
21
|
+
|
|
22
|
+
Updates for TypeScript users:
|
|
23
|
+
|
|
24
|
+
- added `tabIndex` to input component types ([#909](https://github.com/gpbl/react-day-picker/issues/909) by [clarityflowers](https://github.com/clarityflowers))
|
|
25
|
+
- fixed types for utilities ([#904](https://github.com/gpbl/react-day-picker/issues/904) by [Nibblesh](https://github.com/Nibblesh) and [#899](https://github.com/gpbl/react-day-picker/issues/899) by [DylanVann](https://github.com/PprevDylanVann))
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
## [v7.3](https://github.com/gpbl/react-day-picker/tree/v7.3.0) (2019-02-21)
|
|
29
|
+
|
|
30
|
+
Mostly an update for TypeScript users, few minor fixes, and two new minor props to the input component.
|
|
31
|
+
|
|
32
|
+
**DayPicker**
|
|
33
|
+
|
|
34
|
+
- Fixed: left/right keyboard navigation on RTL ([#845](https://github.com/gpbl/react-day-picker/issues/845) by [johnjesse](https://github.com/johnjesse))
|
|
35
|
+
- Fixed: cancel keydown events ([#844](https://github.com/gpbl/react-day-picker/issues/844) by [johnjesse](https://github.com/johnjesse))
|
|
36
|
+
- Fix for week number's `tabIndex` when `onWeekClick` is not defined ([#818](https://github.com/gpbl/react-day-picker/issues/818) by [uosl](https://github.com/uosl))
|
|
37
|
+
- TypeScript: added `isDate` and `isSameMonth` to `utils` definitions ([#854](https://github.com/gpbl/react-day-picker/issues/854) by [rnons](https://github.com/rnons))
|
|
38
|
+
- TypeScript: make months and weekdays types slightly less restrictive ([#843](https://github.com/gpbl/react-day-picker/issues/843) by [johnjesse](https://github.com/johnjesse))
|
|
39
|
+
- TypeScript: add missing props to `weekdayElement` and `captionElement` ([#842](https://github.com/gpbl/react-day-picker/issues/842) by [johnjesse](https://github.com/johnjesse))
|
|
40
|
+
- TypeScript: added missing `utils` export ([#834](https://github.com/gpbl/react-day-picker/issues/834) by [davidspiess](https://github.com/davidspiess))
|
|
41
|
+
- TypeScript: missing default entries to `classNames` ([#833](https://github.com/gpbl/react-day-picker/issues/833) by [saenglert](https://github.com/saenglert))
|
|
42
|
+
- TypeScript: updated type definitions for `locale` ([#828](https://github.com/gpbl/react-day-picker/issues/828) by [lukyth](https://github.com/lukyth))
|
|
43
|
+
- TypeScript: add definitions for moment locale utils ([#806](https://github.com/gpbl/react-day-picker/issues/806) by [howlettt](https://github.com/howlettt))
|
|
44
|
+
|
|
45
|
+
**DayPickerInput**
|
|
46
|
+
|
|
47
|
+
- Added `onDayPickerShow` prop ([#831](https://github.com/gpbl/react-day-picker/issues/831) by
|
|
48
|
+
[saenglert](https://github.com/saenglert))
|
|
49
|
+
- Added `style` prop ([#832](https://github.com/gpbl/react-day-picker/issues/832) by
|
|
50
|
+
[kirillku](https://github.com/kirillku))
|
|
51
|
+
- Typescript: fixed `classNames` definition ([#796](https://github.com/gpbl/react-day-picker/issues/796) by
|
|
52
|
+
[davidspiess](https://github.com/davidspiess))
|
|
53
|
+
|
|
1
54
|
### [v7.2.4](https://github.com/gpbl/react-day-picker/tree/v7.2.4) (2018-09-13)
|
|
2
55
|
|
|
3
56
|
- Fix regression: re-enabled click on disabled days ([#789](https://github.com/gpbl/react-day-picker/issues/789) by
|
package/LICENSE
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
The MIT License (MIT)
|
|
2
2
|
|
|
3
|
-
Copyright (c) 2014 Giampaolo Bellavite
|
|
3
|
+
Copyright (c) 2014-2019 Giampaolo Bellavite
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
|
@@ -19,4 +19,3 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
|
19
19
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
20
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
21
|
SOFTWARE.
|
|
22
|
-
|