react-day-picker 8.0.0-beta.3 → 8.0.0-beta.33

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.
Files changed (708) hide show
  1. package/CHANGELOG.md +30 -1112
  2. package/LICENSE +1 -1
  3. package/README.md +14 -27
  4. package/build/DayPicker.d.ts +89 -0
  5. package/build/DayPicker.js +98 -0
  6. package/build/DayPicker.js.map +1 -0
  7. package/build/_virtual/_tslib.js +50 -0
  8. package/build/_virtual/_tslib.js.map +1 -0
  9. package/build/components/Button/Button.d.ts +7 -0
  10. package/build/components/Button/Button.js +23 -0
  11. package/build/components/Button/Button.js.map +1 -0
  12. package/build/components/Button/index.d.ts +1 -0
  13. package/build/components/Caption/Caption.d.ts +18 -0
  14. package/build/components/Caption/Caption.js +57 -0
  15. package/build/components/Caption/Caption.js.map +1 -0
  16. package/build/components/Caption/index.d.ts +1 -0
  17. package/build/components/CaptionLabel/CaptionLabel.d.ts +8 -0
  18. package/build/components/CaptionLabel/CaptionLabel.js +11 -0
  19. package/build/components/CaptionLabel/CaptionLabel.js.map +1 -0
  20. package/build/components/CaptionLabel/index.d.ts +1 -0
  21. package/build/components/Day/Day.d.ts +13 -0
  22. package/build/components/Day/Day.js +24 -0
  23. package/build/components/Day/Day.js.map +1 -0
  24. package/build/components/Day/hooks/index.d.ts +1 -0
  25. package/build/components/Day/hooks/useDay.d.ts +58 -0
  26. package/build/components/Day/hooks/useDay.js +176 -0
  27. package/build/components/Day/hooks/useDay.js.map +1 -0
  28. package/build/components/Day/hooks/useDayFocus.d.ts +8 -0
  29. package/build/components/Day/hooks/useDayFocus.js +56 -0
  30. package/build/components/Day/hooks/useDayFocus.js.map +1 -0
  31. package/build/components/Day/index.d.ts +2 -0
  32. package/build/components/DayContent/DayContent.d.ts +15 -0
  33. package/build/components/DayContent/DayContent.js +15 -0
  34. package/build/components/DayContent/DayContent.js.map +1 -0
  35. package/build/components/DayContent/index.d.ts +1 -0
  36. package/build/components/Dropdown/Dropdown.d.ts +16 -0
  37. package/build/components/Dropdown/Dropdown.js +20 -0
  38. package/build/components/Dropdown/Dropdown.js.map +1 -0
  39. package/build/components/Dropdown/index.d.ts +1 -0
  40. package/build/components/Footer/Footer.d.ts +3 -0
  41. package/build/components/Footer/Footer.js +15 -0
  42. package/build/components/Footer/Footer.js.map +1 -0
  43. package/build/components/Footer/index.d.ts +1 -0
  44. package/build/components/Head/Head.d.ts +5 -0
  45. package/build/components/Head/Head.js +20 -0
  46. package/build/components/Head/Head.js.map +1 -0
  47. package/{lib → build}/components/Head/index.d.ts +1 -1
  48. package/build/components/Head/utils/getWeekdays.d.ts +6 -0
  49. package/build/components/Head/utils/getWeekdays.js +18 -0
  50. package/build/components/Head/utils/getWeekdays.js.map +1 -0
  51. package/build/components/Head/utils/index.d.ts +1 -0
  52. package/build/components/IconDropdown/IconDropdown.d.ts +6 -0
  53. package/build/components/IconDropdown/IconDropdown.js +13 -0
  54. package/build/components/IconDropdown/IconDropdown.js.map +1 -0
  55. package/build/components/IconDropdown/index.d.ts +1 -0
  56. package/build/components/IconLeft/IconLeft.d.ts +6 -0
  57. package/build/components/IconLeft/IconLeft.js +13 -0
  58. package/build/components/IconLeft/IconLeft.js.map +1 -0
  59. package/build/components/IconLeft/index.d.ts +1 -0
  60. package/build/components/IconRight/IconRight.d.ts +6 -0
  61. package/build/components/IconRight/IconRight.js +13 -0
  62. package/build/components/IconRight/IconRight.js.map +1 -0
  63. package/build/components/IconRight/index.d.ts +1 -0
  64. package/build/components/MonthsDropdown/MonthsDropdown.d.ts +12 -0
  65. package/build/components/MonthsDropdown/MonthsDropdown.js +39 -0
  66. package/build/components/MonthsDropdown/MonthsDropdown.js.map +1 -0
  67. package/build/components/MonthsDropdown/index.d.ts +1 -0
  68. package/build/components/Navigation/Navigation.d.ts +20 -0
  69. package/build/components/Navigation/Navigation.js +33 -0
  70. package/build/components/Navigation/Navigation.js.map +1 -0
  71. package/build/components/Navigation/index.d.ts +1 -0
  72. package/build/components/Root/Root.d.ts +6 -0
  73. package/build/components/Root/Root.js +49 -0
  74. package/build/components/Root/Root.js.map +1 -0
  75. package/{lib → build}/components/Root/index.d.ts +1 -1
  76. package/build/components/Row/Row.d.ts +16 -0
  77. package/build/components/Row/Row.js +22 -0
  78. package/build/components/Row/Row.js.map +1 -0
  79. package/{lib → build}/components/Row/index.d.ts +1 -1
  80. package/build/components/Table/Table.d.ts +12 -0
  81. package/build/components/Table/Table.js +18 -0
  82. package/build/components/Table/Table.js.map +1 -0
  83. package/{lib → build}/components/Table/index.d.ts +1 -1
  84. package/build/components/Table/utils/getOutsideEndDays.d.ts +3 -0
  85. package/build/components/Table/utils/getOutsideEndDays.js +15 -0
  86. package/build/components/Table/utils/getOutsideEndDays.js.map +1 -0
  87. package/build/components/Table/utils/getOutsideStartDays.d.ts +4 -0
  88. package/build/components/Table/utils/getOutsideStartDays.js +15 -0
  89. package/build/components/Table/utils/getOutsideStartDays.js.map +1 -0
  90. package/build/components/Table/utils/getWeeks.d.ts +17 -0
  91. package/build/components/Table/utils/getWeeks.js +50 -0
  92. package/build/components/Table/utils/getWeeks.js.map +1 -0
  93. package/build/components/WeekNumber/WeekNumber.d.ts +15 -0
  94. package/build/components/WeekNumber/WeekNumber.js +24 -0
  95. package/build/components/WeekNumber/WeekNumber.js.map +1 -0
  96. package/build/components/WeekNumber/index.d.ts +1 -0
  97. package/build/components/YearsDropdown/YearsDropdown.d.ts +16 -0
  98. package/build/components/YearsDropdown/YearsDropdown.js +28 -0
  99. package/build/components/YearsDropdown/YearsDropdown.js.map +1 -0
  100. package/build/components/YearsDropdown/index.d.ts +1 -0
  101. package/build/components/index.d.ts +18 -0
  102. package/build/contexts/DayPicker/DayPickerContext.d.ts +31 -0
  103. package/build/contexts/DayPicker/DayPickerContext.js +14 -0
  104. package/build/contexts/DayPicker/DayPickerContext.js.map +1 -0
  105. package/build/contexts/DayPicker/DayPickerProvider.d.ts +12 -0
  106. package/build/contexts/DayPicker/DayPickerProvider.js +59 -0
  107. package/build/contexts/DayPicker/DayPickerProvider.js.map +1 -0
  108. package/build/contexts/DayPicker/defaultClassNames.d.ts +5 -0
  109. package/build/contexts/DayPicker/defaultClassNames.js +42 -0
  110. package/build/contexts/DayPicker/defaultClassNames.js.map +1 -0
  111. package/build/contexts/DayPicker/formatters/formatCaption.d.ts +7 -0
  112. package/build/contexts/DayPicker/formatters/formatCaption.js +11 -0
  113. package/build/contexts/DayPicker/formatters/formatCaption.js.map +1 -0
  114. package/build/contexts/DayPicker/formatters/formatDay.d.ts +7 -0
  115. package/build/contexts/DayPicker/formatters/formatDay.js +11 -0
  116. package/build/contexts/DayPicker/formatters/formatDay.js.map +1 -0
  117. package/build/contexts/DayPicker/formatters/formatMonthCaption.d.ts +7 -0
  118. package/build/contexts/DayPicker/formatters/formatMonthCaption.js +11 -0
  119. package/build/contexts/DayPicker/formatters/formatMonthCaption.js.map +1 -0
  120. package/build/contexts/DayPicker/formatters/formatWeekNumber.d.ts +4 -0
  121. package/build/contexts/DayPicker/formatters/formatWeekNumber.js +9 -0
  122. package/build/contexts/DayPicker/formatters/formatWeekNumber.js.map +1 -0
  123. package/build/contexts/DayPicker/formatters/formatWeekdayName.d.ts +7 -0
  124. package/build/contexts/DayPicker/formatters/formatWeekdayName.js +11 -0
  125. package/build/contexts/DayPicker/formatters/formatWeekdayName.js.map +1 -0
  126. package/build/contexts/DayPicker/formatters/formatYearCaption.d.ts +6 -0
  127. package/build/contexts/DayPicker/formatters/formatYearCaption.js +11 -0
  128. package/build/contexts/DayPicker/formatters/formatYearCaption.js.map +1 -0
  129. package/build/contexts/DayPicker/formatters/index.d.ts +6 -0
  130. package/build/contexts/DayPicker/formatters/index.js +7 -0
  131. package/build/contexts/DayPicker/formatters/index.js.map +1 -0
  132. package/build/contexts/DayPicker/index.d.ts +1 -0
  133. package/build/contexts/DayPicker/labels/index.d.ts +7 -0
  134. package/build/contexts/DayPicker/labels/index.js +8 -0
  135. package/build/contexts/DayPicker/labels/index.js.map +1 -0
  136. package/build/contexts/DayPicker/labels/labelDay.d.ts +5 -0
  137. package/build/contexts/DayPicker/labels/labelDay.js +11 -0
  138. package/build/contexts/DayPicker/labels/labelDay.js.map +1 -0
  139. package/build/contexts/DayPicker/labels/labelMonthDropdown.d.ts +4 -0
  140. package/build/contexts/DayPicker/labels/labelMonthDropdown.js +9 -0
  141. package/build/contexts/DayPicker/labels/labelMonthDropdown.js.map +1 -0
  142. package/build/contexts/DayPicker/labels/labelNext.d.ts +5 -0
  143. package/build/contexts/DayPicker/labels/labelNext.js +9 -0
  144. package/build/contexts/DayPicker/labels/labelNext.js.map +1 -0
  145. package/build/contexts/DayPicker/labels/labelPrevious.d.ts +5 -0
  146. package/build/contexts/DayPicker/labels/labelPrevious.js +9 -0
  147. package/build/contexts/DayPicker/labels/labelPrevious.js.map +1 -0
  148. package/build/contexts/DayPicker/labels/labelWeekNumber.d.ts +5 -0
  149. package/build/contexts/DayPicker/labels/labelWeekNumber.js +9 -0
  150. package/build/contexts/DayPicker/labels/labelWeekNumber.js.map +1 -0
  151. package/build/contexts/DayPicker/labels/labelWeekday.d.ts +5 -0
  152. package/build/contexts/DayPicker/labels/labelWeekday.js +11 -0
  153. package/build/contexts/DayPicker/labels/labelWeekday.js.map +1 -0
  154. package/build/contexts/DayPicker/labels/labelYearDropdown.d.ts +4 -0
  155. package/build/contexts/DayPicker/labels/labelYearDropdown.js +9 -0
  156. package/build/contexts/DayPicker/labels/labelYearDropdown.js.map +1 -0
  157. package/build/contexts/DayPicker/useDayPicker.d.ts +8 -0
  158. package/build/contexts/DayPicker/useDayPicker.js +19 -0
  159. package/build/contexts/DayPicker/useDayPicker.js.map +1 -0
  160. package/build/contexts/DayPicker/utils/index.d.ts +2 -0
  161. package/build/contexts/DayPicker/utils/parseFromToProps.d.ts +9 -0
  162. package/build/contexts/DayPicker/utils/parseFromToProps.js +29 -0
  163. package/build/contexts/DayPicker/utils/parseFromToProps.js.map +1 -0
  164. package/build/contexts/DayPicker/utils/parseModifierProps.d.ts +9 -0
  165. package/build/contexts/DayPicker/utils/parseModifierProps.js +54 -0
  166. package/build/contexts/DayPicker/utils/parseModifierProps.js.map +1 -0
  167. package/build/contexts/Focus/FocusContext.d.ts +30 -0
  168. package/build/contexts/Focus/FocusContext.js +71 -0
  169. package/build/contexts/Focus/FocusContext.js.map +1 -0
  170. package/build/contexts/Focus/index.d.ts +2 -0
  171. package/build/contexts/Focus/useFocus.d.ts +3 -0
  172. package/build/contexts/Focus/useFocus.js +14 -0
  173. package/build/contexts/Focus/useFocus.js.map +1 -0
  174. package/build/contexts/Navigation/NavigationContext.d.ts +24 -0
  175. package/build/contexts/Navigation/NavigationContext.js +31 -0
  176. package/build/contexts/Navigation/NavigationContext.js.map +1 -0
  177. package/build/contexts/Navigation/index.d.ts +2 -0
  178. package/build/contexts/Navigation/useNavigation.d.ts +3 -0
  179. package/build/contexts/Navigation/useNavigation.js +14 -0
  180. package/build/contexts/Navigation/useNavigation.js.map +1 -0
  181. package/build/contexts/Navigation/useNavigationState.d.ts +7 -0
  182. package/build/contexts/Navigation/useNavigationState.js +19 -0
  183. package/build/contexts/Navigation/useNavigationState.js.map +1 -0
  184. package/build/contexts/Navigation/utils/getDisplayMonths.d.ts +8 -0
  185. package/build/contexts/Navigation/utils/getDisplayMonths.js +23 -0
  186. package/build/contexts/Navigation/utils/getDisplayMonths.js.map +1 -0
  187. package/build/contexts/Navigation/utils/getInitialMonth.d.ts +3 -0
  188. package/build/contexts/Navigation/utils/getInitialMonth.js +21 -0
  189. package/build/contexts/Navigation/utils/getInitialMonth.js.map +1 -0
  190. package/build/contexts/Navigation/utils/getNextMonth.d.ts +18 -0
  191. package/build/contexts/Navigation/utils/getNextMonth.js +32 -0
  192. package/build/contexts/Navigation/utils/getNextMonth.js.map +1 -0
  193. package/build/contexts/Navigation/utils/getPreviousMonth.d.ts +19 -0
  194. package/build/contexts/Navigation/utils/getPreviousMonth.js +33 -0
  195. package/build/contexts/Navigation/utils/getPreviousMonth.js.map +1 -0
  196. package/build/contexts/RootProvider.d.ts +8 -0
  197. package/build/contexts/RootProvider.js +22 -0
  198. package/build/contexts/RootProvider.js.map +1 -0
  199. package/build/contexts/SelectMultiple/SelectMultipleContext.d.ts +32 -0
  200. package/build/contexts/SelectMultiple/SelectMultipleContext.js +82 -0
  201. package/build/contexts/SelectMultiple/SelectMultipleContext.js.map +1 -0
  202. package/build/contexts/SelectMultiple/index.d.ts +2 -0
  203. package/build/contexts/SelectMultiple/useSelectMultiple.d.ts +3 -0
  204. package/build/contexts/SelectMultiple/useSelectMultiple.js +14 -0
  205. package/build/contexts/SelectMultiple/useSelectMultiple.js.map +1 -0
  206. package/build/contexts/SelectRange/SelectRangeContext.d.ts +32 -0
  207. package/build/contexts/SelectRange/SelectRangeContext.js +123 -0
  208. package/build/contexts/SelectRange/SelectRangeContext.js.map +1 -0
  209. package/build/contexts/SelectRange/index.d.ts +2 -0
  210. package/build/contexts/SelectRange/useSelectRange.d.ts +3 -0
  211. package/build/contexts/SelectRange/useSelectRange.js +14 -0
  212. package/build/contexts/SelectRange/useSelectRange.js.map +1 -0
  213. package/{lib/hooks/useRange → build/contexts/SelectRange/utils}/addToRange.d.ts +8 -8
  214. package/build/contexts/SelectRange/utils/addToRange.js +39 -0
  215. package/build/contexts/SelectRange/utils/addToRange.js.map +1 -0
  216. package/build/contexts/SelectSingle/SelectSingleContext.d.ts +35 -0
  217. package/build/contexts/SelectSingle/SelectSingleContext.js +45 -0
  218. package/build/contexts/SelectSingle/SelectSingleContext.js.map +1 -0
  219. package/build/contexts/SelectSingle/index.d.ts +2 -0
  220. package/build/contexts/SelectSingle/useSelectSingle.d.ts +3 -0
  221. package/build/contexts/SelectSingle/useSelectSingle.js +14 -0
  222. package/build/contexts/SelectSingle/useSelectSingle.js.map +1 -0
  223. package/build/contexts/index.d.ts +7 -0
  224. package/build/hooks/index.d.ts +2 -0
  225. package/build/hooks/useControlledValue/index.d.ts +1 -0
  226. package/build/hooks/useControlledValue/useControlledValue.d.ts +12 -0
  227. package/build/hooks/useControlledValue/useControlledValue.js +19 -0
  228. package/build/hooks/useControlledValue/useControlledValue.js.map +1 -0
  229. package/{lib → build}/hooks/useInput/index.d.ts +1 -1
  230. package/build/hooks/useInput/useInput.d.ts +28 -0
  231. package/build/hooks/useInput/useInput.js +101 -0
  232. package/build/hooks/useInput/useInput.js.map +1 -0
  233. package/build/hooks/useInput/utils/isValidDate.d.ts +2 -0
  234. package/build/hooks/useInput/utils/isValidDate.js +7 -0
  235. package/build/hooks/useInput/utils/isValidDate.js.map +1 -0
  236. package/build/hooks/useModifiers/index.d.ts +1 -0
  237. package/build/hooks/useModifiers/types/UseModifiers.d.ts +10 -0
  238. package/build/hooks/useModifiers/types/index.d.ts +1 -0
  239. package/build/hooks/useModifiers/useModifiers.d.ts +3 -0
  240. package/build/hooks/useModifiers/useModifiers.js +65 -0
  241. package/build/hooks/useModifiers/useModifiers.js.map +1 -0
  242. package/build/hooks/useModifiers/utils/getModifierStatus.d.ts +7 -0
  243. package/build/hooks/useModifiers/utils/getModifierStatus.js +22 -0
  244. package/build/hooks/useModifiers/utils/getModifierStatus.js.map +1 -0
  245. package/build/hooks/useModifiers/utils/isDateInRange.d.ts +3 -0
  246. package/build/hooks/useModifiers/utils/isDateInRange.js +25 -0
  247. package/build/hooks/useModifiers/utils/isDateInRange.js.map +1 -0
  248. package/build/hooks/useModifiers/utils/isMatch.d.ts +5 -0
  249. package/build/hooks/useModifiers/utils/isMatch.js +52 -0
  250. package/build/hooks/useModifiers/utils/isMatch.js.map +1 -0
  251. package/{src/index.ts → build/main.d.ts} +5 -3
  252. package/build/main.js +40 -0
  253. package/build/main.js.map +1 -0
  254. package/build/test/PageObjects.d.ts +40 -0
  255. package/build/test/customRender.d.ts +4 -0
  256. package/build/test/customRenderHook.d.ts +3 -0
  257. package/build/test/index.d.ts +3 -0
  258. package/build/test/setup.d.ts +2 -0
  259. package/build/types/DayPicker.d.ts +228 -0
  260. package/build/types/DayPickerCustom.d.ts +11 -0
  261. package/build/types/DayPickerCustom.js +7 -0
  262. package/build/types/DayPickerCustom.js.map +1 -0
  263. package/build/types/DayPickerMultiple.d.ts +16 -0
  264. package/build/types/DayPickerMultiple.js +7 -0
  265. package/build/types/DayPickerMultiple.js.map +1 -0
  266. package/build/types/DayPickerRange.d.ts +17 -0
  267. package/build/types/DayPickerRange.js +7 -0
  268. package/build/types/DayPickerRange.js.map +1 -0
  269. package/build/types/DayPickerSingle.d.ts +14 -0
  270. package/build/types/DayPickerSingle.js +7 -0
  271. package/build/types/DayPickerSingle.js.map +1 -0
  272. package/build/types/EventHandlers.d.ts +51 -0
  273. package/build/types/Formatters.d.ts +24 -0
  274. package/build/types/Labels.d.ts +28 -0
  275. package/build/types/Matchers.d.ts +34 -0
  276. package/build/types/Matchers.js +27 -0
  277. package/build/types/Matchers.js.map +1 -0
  278. package/build/types/Modifiers.d.ts +16 -0
  279. package/build/types/Styles.d.ts +85 -0
  280. package/build/types/index.d.ts +11 -0
  281. package/dist/main.js +1897 -0
  282. package/dist/main.js.map +1 -0
  283. package/package.json +50 -46
  284. package/style.css +299 -0
  285. package/style.css.d.ts +39 -0
  286. package/dist/index.js +0 -2103
  287. package/dist/index.js.map +0 -1
  288. package/dist/index.min.js +0 -2
  289. package/dist/index.min.js.map +0 -1
  290. package/dist/style.css +0 -144
  291. package/lib/components/Caption/Caption.d.ts +0 -3
  292. package/lib/components/Caption/Caption.js +0 -19
  293. package/lib/components/Caption/Caption.js.map +0 -1
  294. package/lib/components/Caption/getCaptionComponent.d.ts +0 -5
  295. package/lib/components/Caption/getCaptionComponent.js +0 -12
  296. package/lib/components/Caption/getCaptionComponent.js.map +0 -1
  297. package/lib/components/Caption/getCaptionComponent.test.d.ts +0 -1
  298. package/lib/components/Caption/getCaptionComponent.test.js +0 -29
  299. package/lib/components/Caption/getCaptionComponent.test.js.map +0 -1
  300. package/lib/components/Caption/index.d.ts +0 -2
  301. package/lib/components/Caption/index.js +0 -3
  302. package/lib/components/Caption/index.js.map +0 -1
  303. package/lib/components/Day/Day.d.ts +0 -3
  304. package/lib/components/Day/Day.js +0 -31
  305. package/lib/components/Day/Day.js.map +0 -1
  306. package/lib/components/Day/getDayComponent.d.ts +0 -6
  307. package/lib/components/Day/getDayComponent.js +0 -29
  308. package/lib/components/Day/getDayComponent.js.map +0 -1
  309. package/lib/components/Day/index.d.ts +0 -3
  310. package/lib/components/Day/index.js +0 -4
  311. package/lib/components/Day/index.js.map +0 -1
  312. package/lib/components/Day/utils/createClassName.d.ts +0 -2
  313. package/lib/components/Day/utils/createClassName.js +0 -19
  314. package/lib/components/Day/utils/createClassName.js.map +0 -1
  315. package/lib/components/Day/utils/createEventHandlers.d.ts +0 -16
  316. package/lib/components/Day/utils/createEventHandlers.js +0 -105
  317. package/lib/components/Day/utils/createEventHandlers.js.map +0 -1
  318. package/lib/components/Day/utils/createStyle.d.ts +0 -3
  319. package/lib/components/Day/utils/createStyle.js +0 -27
  320. package/lib/components/Day/utils/createStyle.js.map +0 -1
  321. package/lib/components/Day/utils/createTabIndex.d.ts +0 -2
  322. package/lib/components/Day/utils/createTabIndex.js +0 -22
  323. package/lib/components/Day/utils/createTabIndex.js.map +0 -1
  324. package/lib/components/Day/utils/findModifiers.d.ts +0 -6
  325. package/lib/components/Day/utils/findModifiers.js +0 -16
  326. package/lib/components/Day/utils/findModifiers.js.map +0 -1
  327. package/lib/components/Day/utils/getModifiers.d.ts +0 -5
  328. package/lib/components/Day/utils/getModifiers.js +0 -43
  329. package/lib/components/Day/utils/getModifiers.js.map +0 -1
  330. package/lib/components/Day/utils/getModifiersFromProps.d.ts +0 -2
  331. package/lib/components/Day/utils/getModifiersFromProps.js +0 -14
  332. package/lib/components/Day/utils/getModifiersFromProps.js.map +0 -1
  333. package/lib/components/Day/utils/getOutsideModifier.d.ts +0 -4
  334. package/lib/components/Day/utils/getOutsideModifier.js +0 -12
  335. package/lib/components/Day/utils/getOutsideModifier.js.map +0 -1
  336. package/lib/components/Day/utils/matchModifier.d.ts +0 -2
  337. package/lib/components/Day/utils/matchModifier.js +0 -80
  338. package/lib/components/Day/utils/matchModifier.js.map +0 -1
  339. package/lib/components/DayPicker/DayPicker.d.ts +0 -21
  340. package/lib/components/DayPicker/DayPicker.js +0 -74
  341. package/lib/components/DayPicker/DayPicker.js.map +0 -1
  342. package/lib/components/DayPicker/defaults/defaultClassNames.d.ts +0 -2
  343. package/lib/components/DayPicker/defaults/defaultClassNames.js +0 -32
  344. package/lib/components/DayPicker/defaults/defaultClassNames.js.map +0 -1
  345. package/lib/components/DayPicker/defaults/defaultLabels.d.ts +0 -2
  346. package/lib/components/DayPicker/defaults/defaultLabels.js +0 -24
  347. package/lib/components/DayPicker/defaults/defaultLabels.js.map +0 -1
  348. package/lib/components/DayPicker/defaults/defaultModifiers.d.ts +0 -2
  349. package/lib/components/DayPicker/defaults/defaultModifiers.js +0 -10
  350. package/lib/components/DayPicker/defaults/defaultModifiers.js.map +0 -1
  351. package/lib/components/DayPicker/defaults/defaultModifiersClassNames.d.ts +0 -2
  352. package/lib/components/DayPicker/defaults/defaultModifiersClassNames.js +0 -9
  353. package/lib/components/DayPicker/defaults/defaultModifiersClassNames.js.map +0 -1
  354. package/lib/components/DayPicker/defaults/defaultProps.d.ts +0 -2
  355. package/lib/components/DayPicker/defaults/defaultProps.js +0 -47
  356. package/lib/components/DayPicker/defaults/defaultProps.js.map +0 -1
  357. package/lib/components/DayPicker/defaults/index.d.ts +0 -5
  358. package/lib/components/DayPicker/defaults/index.js +0 -6
  359. package/lib/components/DayPicker/defaults/index.js.map +0 -1
  360. package/lib/components/DayPicker/index.d.ts +0 -2
  361. package/lib/components/DayPicker/index.js +0 -3
  362. package/lib/components/DayPicker/index.js.map +0 -1
  363. package/lib/components/DayPicker/utils/formatCaption.d.ts +0 -8
  364. package/lib/components/DayPicker/utils/formatCaption.js +0 -9
  365. package/lib/components/DayPicker/utils/formatCaption.js.map +0 -1
  366. package/lib/components/DayPicker/utils/formatDay.d.ts +0 -8
  367. package/lib/components/DayPicker/utils/formatDay.js +0 -9
  368. package/lib/components/DayPicker/utils/formatDay.js.map +0 -1
  369. package/lib/components/DayPicker/utils/formatWeekNumber.d.ts +0 -5
  370. package/lib/components/DayPicker/utils/formatWeekNumber.js +0 -8
  371. package/lib/components/DayPicker/utils/formatWeekNumber.js.map +0 -1
  372. package/lib/components/DayPicker/utils/formatWeekdayName.d.ts +0 -8
  373. package/lib/components/DayPicker/utils/formatWeekdayName.js +0 -10
  374. package/lib/components/DayPicker/utils/formatWeekdayName.js.map +0 -1
  375. package/lib/components/DayPicker/utils/getMonthFromProps.d.ts +0 -2
  376. package/lib/components/DayPicker/utils/getMonthFromProps.js +0 -17
  377. package/lib/components/DayPicker/utils/getMonthFromProps.js.map +0 -1
  378. package/lib/components/Head/Head.d.ts +0 -3
  379. package/lib/components/Head/Head.js +0 -11
  380. package/lib/components/Head/Head.js.map +0 -1
  381. package/lib/components/Head/index.js +0 -2
  382. package/lib/components/Head/index.js.map +0 -1
  383. package/lib/components/Head/utils/getWeekdays.d.ts +0 -6
  384. package/lib/components/Head/utils/getWeekdays.js +0 -15
  385. package/lib/components/Head/utils/getWeekdays.js.map +0 -1
  386. package/lib/components/Navigation/Navigation.d.ts +0 -3
  387. package/lib/components/Navigation/Navigation.js +0 -28
  388. package/lib/components/Navigation/Navigation.js.map +0 -1
  389. package/lib/components/Navigation/getNavigationComponent.d.ts +0 -12
  390. package/lib/components/Navigation/getNavigationComponent.js +0 -50
  391. package/lib/components/Navigation/getNavigationComponent.js.map +0 -1
  392. package/lib/components/Navigation/getNavigationComponent.test.d.ts +0 -0
  393. package/lib/components/Navigation/getNavigationComponent.test.js +0 -11
  394. package/lib/components/Navigation/getNavigationComponent.test.js.map +0 -1
  395. package/lib/components/Navigation/index.d.ts +0 -2
  396. package/lib/components/Navigation/index.js +0 -3
  397. package/lib/components/Navigation/index.js.map +0 -1
  398. package/lib/components/Navigation/utils/getPrevNextMonths.d.ts +0 -5
  399. package/lib/components/Navigation/utils/getPrevNextMonths.js +0 -20
  400. package/lib/components/Navigation/utils/getPrevNextMonths.js.map +0 -1
  401. package/lib/components/Navigation/utils/getPrevNextMonths.test.d.ts +0 -1
  402. package/lib/components/Navigation/utils/getPrevNextMonths.test.js +0 -44
  403. package/lib/components/Navigation/utils/getPrevNextMonths.test.js.map +0 -1
  404. package/lib/components/NextIcon/NextIcon.d.ts +0 -2
  405. package/lib/components/NextIcon/NextIcon.js +0 -6
  406. package/lib/components/NextIcon/NextIcon.js.map +0 -1
  407. package/lib/components/NextIcon/index.d.ts +0 -1
  408. package/lib/components/NextIcon/index.js +0 -2
  409. package/lib/components/NextIcon/index.js.map +0 -1
  410. package/lib/components/PrevIcon/PrevIcon.d.ts +0 -2
  411. package/lib/components/PrevIcon/PrevIcon.js +0 -6
  412. package/lib/components/PrevIcon/PrevIcon.js.map +0 -1
  413. package/lib/components/PrevIcon/index.d.ts +0 -1
  414. package/lib/components/PrevIcon/index.js +0 -2
  415. package/lib/components/PrevIcon/index.js.map +0 -1
  416. package/lib/components/Root/Root.d.ts +0 -3
  417. package/lib/components/Root/Root.js +0 -53
  418. package/lib/components/Root/Root.js.map +0 -1
  419. package/lib/components/Root/index.js +0 -2
  420. package/lib/components/Root/index.js.map +0 -1
  421. package/lib/components/Root/utils/getMonths.d.ts +0 -6
  422. package/lib/components/Root/utils/getMonths.js +0 -29
  423. package/lib/components/Root/utils/getMonths.js.map +0 -1
  424. package/lib/components/Root/utils/getMonths.test.d.ts +0 -1
  425. package/lib/components/Root/utils/getMonths.test.js +0 -41
  426. package/lib/components/Root/utils/getMonths.test.js.map +0 -1
  427. package/lib/components/Row/Row.d.ts +0 -3
  428. package/lib/components/Row/Row.js +0 -12
  429. package/lib/components/Row/Row.js.map +0 -1
  430. package/lib/components/Row/index.js +0 -2
  431. package/lib/components/Row/index.js.map +0 -1
  432. package/lib/components/Table/Table.d.ts +0 -3
  433. package/lib/components/Table/Table.js +0 -15
  434. package/lib/components/Table/Table.js.map +0 -1
  435. package/lib/components/Table/index.js +0 -2
  436. package/lib/components/Table/index.js.map +0 -1
  437. package/lib/components/Table/utils/getOutsideEndDays.d.ts +0 -2
  438. package/lib/components/Table/utils/getOutsideEndDays.js +0 -13
  439. package/lib/components/Table/utils/getOutsideEndDays.js.map +0 -1
  440. package/lib/components/Table/utils/getOutsideStartDays.d.ts +0 -2
  441. package/lib/components/Table/utils/getOutsideStartDays.js +0 -13
  442. package/lib/components/Table/utils/getOutsideStartDays.js.map +0 -1
  443. package/lib/components/Table/utils/getWeeks.d.ts +0 -13
  444. package/lib/components/Table/utils/getWeeks.js +0 -55
  445. package/lib/components/Table/utils/getWeeks.js.map +0 -1
  446. package/lib/components/index.d.ts +0 -10
  447. package/lib/components/index.js +0 -11
  448. package/lib/components/index.js.map +0 -1
  449. package/lib/hooks/index.d.ts +0 -2
  450. package/lib/hooks/index.js +0 -3
  451. package/lib/hooks/index.js.map +0 -1
  452. package/lib/hooks/useInput/index.js +0 -2
  453. package/lib/hooks/useInput/index.js.map +0 -1
  454. package/lib/hooks/useInput/useInput.d.ts +0 -22
  455. package/lib/hooks/useInput/useInput.js +0 -109
  456. package/lib/hooks/useInput/useInput.js.map +0 -1
  457. package/lib/hooks/useRange/addToRange.js +0 -25
  458. package/lib/hooks/useRange/addToRange.js.map +0 -1
  459. package/lib/hooks/useRange/index.d.ts +0 -2
  460. package/lib/hooks/useRange/index.js +0 -3
  461. package/lib/hooks/useRange/index.js.map +0 -1
  462. package/lib/hooks/useRange/useRange.d.ts +0 -14
  463. package/lib/hooks/useRange/useRange.js +0 -30
  464. package/lib/hooks/useRange/useRange.js.map +0 -1
  465. package/lib/index.d.ts +0 -3
  466. package/lib/index.js +0 -4
  467. package/lib/index.js.map +0 -1
  468. package/lib/types/CaptionProps.d.ts +0 -5
  469. package/lib/types/CaptionProps.js +0 -2
  470. package/lib/types/CaptionProps.js.map +0 -1
  471. package/lib/types/CustomizableComponents.d.ts +0 -12
  472. package/lib/types/CustomizableComponents.js +0 -2
  473. package/lib/types/CustomizableComponents.js.map +0 -1
  474. package/lib/types/DateFormatter.d.ts +0 -4
  475. package/lib/types/DateFormatter.js +0 -2
  476. package/lib/types/DateFormatter.js.map +0 -1
  477. package/lib/types/DayClickEventHandler.d.ts +0 -3
  478. package/lib/types/DayClickEventHandler.js +0 -2
  479. package/lib/types/DayClickEventHandler.js.map +0 -1
  480. package/lib/types/DayFocusEventHandler.d.ts +0 -3
  481. package/lib/types/DayFocusEventHandler.js +0 -2
  482. package/lib/types/DayFocusEventHandler.js.map +0 -1
  483. package/lib/types/DayKeyboardEventHandler.d.ts +0 -3
  484. package/lib/types/DayKeyboardEventHandler.js +0 -2
  485. package/lib/types/DayKeyboardEventHandler.js.map +0 -1
  486. package/lib/types/DayLabelFormatter.d.ts +0 -5
  487. package/lib/types/DayLabelFormatter.js +0 -2
  488. package/lib/types/DayLabelFormatter.js.map +0 -1
  489. package/lib/types/DayMouseEventHandler.d.ts +0 -3
  490. package/lib/types/DayMouseEventHandler.js +0 -2
  491. package/lib/types/DayMouseEventHandler.js.map +0 -1
  492. package/lib/types/DayPickerClassNames.d.ts +0 -4
  493. package/lib/types/DayPickerClassNames.js +0 -2
  494. package/lib/types/DayPickerClassNames.js.map +0 -1
  495. package/lib/types/DayPickerComponentProps.d.ts +0 -410
  496. package/lib/types/DayPickerComponentProps.js +0 -2
  497. package/lib/types/DayPickerComponentProps.js.map +0 -1
  498. package/lib/types/DayPickerProps.d.ts +0 -42
  499. package/lib/types/DayPickerProps.js +0 -2
  500. package/lib/types/DayPickerProps.js.map +0 -1
  501. package/lib/types/DayPickerStyles.d.ts +0 -5
  502. package/lib/types/DayPickerStyles.js +0 -2
  503. package/lib/types/DayPickerStyles.js.map +0 -1
  504. package/lib/types/DayProps.d.ts +0 -9
  505. package/lib/types/DayProps.js +0 -2
  506. package/lib/types/DayProps.js.map +0 -1
  507. package/lib/types/DayTouchEventHandler.d.ts +0 -3
  508. package/lib/types/DayTouchEventHandler.js +0 -2
  509. package/lib/types/DayTouchEventHandler.js.map +0 -1
  510. package/lib/types/DaysRange.d.ts +0 -4
  511. package/lib/types/DaysRange.js +0 -2
  512. package/lib/types/DaysRange.js.map +0 -1
  513. package/lib/types/DefaultModifier.d.ts +0 -1
  514. package/lib/types/DefaultModifier.js +0 -2
  515. package/lib/types/DefaultModifier.js.map +0 -1
  516. package/lib/types/HeadProps.d.ts +0 -5
  517. package/lib/types/HeadProps.js +0 -2
  518. package/lib/types/HeadProps.js.map +0 -1
  519. package/lib/types/LabelsFormatters.d.ts +0 -11
  520. package/lib/types/LabelsFormatters.js +0 -2
  521. package/lib/types/LabelsFormatters.js.map +0 -1
  522. package/lib/types/MatchAfter.d.ts +0 -6
  523. package/lib/types/MatchAfter.js +0 -2
  524. package/lib/types/MatchAfter.js.map +0 -1
  525. package/lib/types/MatchBefore.d.ts +0 -4
  526. package/lib/types/MatchBefore.js +0 -2
  527. package/lib/types/MatchBefore.js.map +0 -1
  528. package/lib/types/MatchDate.d.ts +0 -2
  529. package/lib/types/MatchDate.js +0 -2
  530. package/lib/types/MatchDate.js.map +0 -1
  531. package/lib/types/MatchDaysOfWeek.d.ts +0 -7
  532. package/lib/types/MatchDaysOfWeek.js +0 -2
  533. package/lib/types/MatchDaysOfWeek.js.map +0 -1
  534. package/lib/types/MatchFromTo.d.ts +0 -7
  535. package/lib/types/MatchFromTo.js +0 -2
  536. package/lib/types/MatchFromTo.js.map +0 -1
  537. package/lib/types/Matcher.d.ts +0 -10
  538. package/lib/types/Matcher.js +0 -2
  539. package/lib/types/Matcher.js.map +0 -1
  540. package/lib/types/Modifier.d.ts +0 -5
  541. package/lib/types/Modifier.js +0 -2
  542. package/lib/types/Modifier.js.map +0 -1
  543. package/lib/types/ModifiersClassNames.d.ts +0 -7
  544. package/lib/types/ModifiersClassNames.js +0 -2
  545. package/lib/types/ModifiersClassNames.js.map +0 -1
  546. package/lib/types/ModifiersMatchers.d.ts +0 -18
  547. package/lib/types/ModifiersMatchers.js +0 -2
  548. package/lib/types/ModifiersMatchers.js.map +0 -1
  549. package/lib/types/ModifiersStatus.d.ts +0 -19
  550. package/lib/types/ModifiersStatus.js +0 -2
  551. package/lib/types/ModifiersStatus.js.map +0 -1
  552. package/lib/types/ModifiersStyles.d.ts +0 -8
  553. package/lib/types/ModifiersStyles.js +0 -2
  554. package/lib/types/ModifiersStyles.js.map +0 -1
  555. package/lib/types/MonthChangeEventHandler.d.ts +0 -2
  556. package/lib/types/MonthChangeEventHandler.js +0 -2
  557. package/lib/types/MonthChangeEventHandler.js.map +0 -1
  558. package/lib/types/MonthKeyDownEventHandler.d.ts +0 -2
  559. package/lib/types/MonthKeyDownEventHandler.js +0 -2
  560. package/lib/types/MonthKeyDownEventHandler.js.map +0 -1
  561. package/lib/types/NavButtonLabelFormatter.d.ts +0 -5
  562. package/lib/types/NavButtonLabelFormatter.js +0 -2
  563. package/lib/types/NavButtonLabelFormatter.js.map +0 -1
  564. package/lib/types/NavigationProps.d.ts +0 -4
  565. package/lib/types/NavigationProps.js +0 -2
  566. package/lib/types/NavigationProps.js.map +0 -1
  567. package/lib/types/RootProps.d.ts +0 -4
  568. package/lib/types/RootProps.js +0 -2
  569. package/lib/types/RootProps.js.map +0 -1
  570. package/lib/types/RowProps.d.ts +0 -7
  571. package/lib/types/RowProps.js +0 -2
  572. package/lib/types/RowProps.js.map +0 -1
  573. package/lib/types/TableProps.d.ts +0 -5
  574. package/lib/types/TableProps.js +0 -2
  575. package/lib/types/TableProps.js.map +0 -1
  576. package/lib/types/UIElement.d.ts +0 -27
  577. package/lib/types/UIElement.js +0 -2
  578. package/lib/types/UIElement.js.map +0 -1
  579. package/lib/types/UseInput.d.ts +0 -8
  580. package/lib/types/UseInput.js +0 -2
  581. package/lib/types/UseInput.js.map +0 -1
  582. package/lib/types/UseInputOptions.d.ts +0 -5
  583. package/lib/types/UseInputOptions.js +0 -2
  584. package/lib/types/UseInputOptions.js.map +0 -1
  585. package/lib/types/WeekNumberFormatter.d.ts +0 -4
  586. package/lib/types/WeekNumberFormatter.js +0 -2
  587. package/lib/types/WeekNumberFormatter.js.map +0 -1
  588. package/lib/types/WeekNumberLabelFormatter.d.ts +0 -5
  589. package/lib/types/WeekNumberLabelFormatter.js +0 -2
  590. package/lib/types/WeekNumberLabelFormatter.js.map +0 -1
  591. package/lib/types/WeekNumberProps.d.ts +0 -6
  592. package/lib/types/WeekNumberProps.js +0 -2
  593. package/lib/types/WeekNumberProps.js.map +0 -1
  594. package/lib/types/WeekdayFormatter.d.ts +0 -4
  595. package/lib/types/WeekdayFormatter.js +0 -2
  596. package/lib/types/WeekdayFormatter.js.map +0 -1
  597. package/lib/types/WeekdayLabelFormatter.d.ts +0 -5
  598. package/lib/types/WeekdayLabelFormatter.js +0 -2
  599. package/lib/types/WeekdayLabelFormatter.js.map +0 -1
  600. package/lib/types/index.d.ts +0 -43
  601. package/lib/types/index.js +0 -44
  602. package/lib/types/index.js.map +0 -1
  603. package/src/components/Caption/Caption.tsx +0 -12
  604. package/src/components/Caption/getCaptionComponent.test.ts +0 -23
  605. package/src/components/Caption/getCaptionComponent.ts +0 -16
  606. package/src/components/Caption/index.ts +0 -2
  607. package/src/components/Day/Day.tsx +0 -32
  608. package/src/components/Day/getDayComponent.ts +0 -39
  609. package/src/components/Day/index.ts +0 -3
  610. package/src/components/Day/utils/createClassName.ts +0 -25
  611. package/src/components/Day/utils/createEventHandlers.ts +0 -111
  612. package/src/components/Day/utils/createStyle.ts +0 -21
  613. package/src/components/Day/utils/createTabIndex.ts +0 -27
  614. package/src/components/Day/utils/findModifiers.ts +0 -25
  615. package/src/components/Day/utils/getModifiers.ts +0 -47
  616. package/src/components/Day/utils/getModifiersFromProps.ts +0 -17
  617. package/src/components/Day/utils/getOutsideModifier.ts +0 -13
  618. package/src/components/Day/utils/matchModifier.ts +0 -84
  619. package/src/components/DayPicker/DayPicker.tsx +0 -81
  620. package/src/components/DayPicker/defaults/defaultClassNames.ts +0 -39
  621. package/src/components/DayPicker/defaults/defaultLabels.ts +0 -24
  622. package/src/components/DayPicker/defaults/defaultModifiers.ts +0 -11
  623. package/src/components/DayPicker/defaults/defaultModifiersClassNames.ts +0 -10
  624. package/src/components/DayPicker/defaults/defaultProps.ts +0 -49
  625. package/src/components/DayPicker/defaults/index.ts +0 -5
  626. package/src/components/DayPicker/index.ts +0 -2
  627. package/src/components/DayPicker/utils/formatCaption.ts +0 -12
  628. package/src/components/DayPicker/utils/formatDay.ts +0 -12
  629. package/src/components/DayPicker/utils/formatWeekNumber.ts +0 -7
  630. package/src/components/DayPicker/utils/formatWeekdayName.ts +0 -13
  631. package/src/components/DayPicker/utils/getMonthFromProps.tsx +0 -24
  632. package/src/components/Head/Head.tsx +0 -39
  633. package/src/components/Head/index.ts +0 -1
  634. package/src/components/Head/utils/getWeekdays.ts +0 -15
  635. package/src/components/Navigation/Navigation.tsx +0 -30
  636. package/src/components/Navigation/getNavigationComponent.test.ts +0 -10
  637. package/src/components/Navigation/getNavigationComponent.ts +0 -67
  638. package/src/components/Navigation/index.ts +0 -2
  639. package/src/components/Navigation/utils/getPrevNextMonths.test.ts +0 -51
  640. package/src/components/Navigation/utils/getPrevNextMonths.ts +0 -27
  641. package/src/components/NextIcon/NextIcon.tsx +0 -13
  642. package/src/components/NextIcon/index.ts +0 -1
  643. package/src/components/PrevIcon/PrevIcon.tsx +0 -13
  644. package/src/components/PrevIcon/index.ts +0 -1
  645. package/src/components/Root/Root.tsx +0 -83
  646. package/src/components/Root/index.ts +0 -1
  647. package/src/components/Root/utils/getMonths.test.ts +0 -45
  648. package/src/components/Root/utils/getMonths.ts +0 -33
  649. package/src/components/Row/Row.tsx +0 -48
  650. package/src/components/Row/index.ts +0 -1
  651. package/src/components/Table/Table.tsx +0 -37
  652. package/src/components/Table/index.ts +0 -1
  653. package/src/components/Table/utils/getOutsideEndDays.ts +0 -18
  654. package/src/components/Table/utils/getOutsideStartDays.ts +0 -18
  655. package/src/components/Table/utils/getWeeks.ts +0 -83
  656. package/src/components/index.ts +0 -10
  657. package/src/hooks/index.ts +0 -2
  658. package/src/hooks/useInput/index.ts +0 -1
  659. package/src/hooks/useInput/useInput.ts +0 -122
  660. package/src/hooks/useRange/addToRange.ts +0 -27
  661. package/src/hooks/useRange/index.ts +0 -2
  662. package/src/hooks/useRange/useRange.ts +0 -35
  663. package/src/style.css +0 -144
  664. package/src/types/CaptionProps.ts +0 -6
  665. package/src/types/CustomizableComponents.ts +0 -13
  666. package/src/types/DateFormatter.ts +0 -6
  667. package/src/types/DayClickEventHandler.ts +0 -7
  668. package/src/types/DayFocusEventHandler.ts +0 -7
  669. package/src/types/DayKeyboardEventHandler.ts +0 -7
  670. package/src/types/DayLabelFormatter.ts +0 -10
  671. package/src/types/DayMouseEventHandler.ts +0 -7
  672. package/src/types/DayPickerClassNames.ts +0 -5
  673. package/src/types/DayPickerComponentProps.ts +0 -437
  674. package/src/types/DayPickerProps.ts +0 -48
  675. package/src/types/DayPickerStyles.ts +0 -5
  676. package/src/types/DayProps.ts +0 -10
  677. package/src/types/DayTouchEventHandler.ts +0 -7
  678. package/src/types/DaysRange.ts +0 -1
  679. package/src/types/DefaultModifier.ts +0 -8
  680. package/src/types/HeadProps.ts +0 -6
  681. package/src/types/LabelsFormatters.ts +0 -17
  682. package/src/types/MatchAfter.ts +0 -4
  683. package/src/types/MatchBefore.ts +0 -2
  684. package/src/types/MatchDate.ts +0 -2
  685. package/src/types/MatchDaysOfWeek.ts +0 -5
  686. package/src/types/MatchFromTo.ts +0 -4
  687. package/src/types/Matcher.ts +0 -18
  688. package/src/types/Modifier.ts +0 -6
  689. package/src/types/ModifiersClassNames.ts +0 -8
  690. package/src/types/ModifiersMatchers.ts +0 -19
  691. package/src/types/ModifiersStatus.ts +0 -20
  692. package/src/types/ModifiersStyles.ts +0 -8
  693. package/src/types/MonthChangeEventHandler.ts +0 -4
  694. package/src/types/MonthKeyDownEventHandler.ts +0 -4
  695. package/src/types/NavButtonLabelFormatter.ts +0 -9
  696. package/src/types/NavigationProps.ts +0 -5
  697. package/src/types/RootProps.ts +0 -5
  698. package/src/types/RowProps.ts +0 -9
  699. package/src/types/TableProps.ts +0 -6
  700. package/src/types/UIElement.ts +0 -33
  701. package/src/types/UseInput.ts +0 -9
  702. package/src/types/UseInputOptions.ts +0 -6
  703. package/src/types/WeekNumberFormatter.ts +0 -6
  704. package/src/types/WeekNumberLabelFormatter.ts +0 -9
  705. package/src/types/WeekNumberProps.ts +0 -7
  706. package/src/types/WeekdayFormatter.ts +0 -7
  707. package/src/types/WeekdayLabelFormatter.ts +0 -9
  708. package/src/types/index.ts +0 -43
package/CHANGELOG.md CHANGED
@@ -1,1127 +1,45 @@
1
- ## [v7.4](https://github.com/gpbl/react-day-picker/tree/v7.4.0) (2019-10-20)
1
+ # Changelog
2
2
 
3
- #### DayPicker
3
+ ## v8.0 (in development)
4
4
 
5
- - Fix text wrapping on `.DayPicker-Day` default style (#824)
6
- - Add `focus()` method for focusing the `DayPicker` wrapper element (#761)
5
+ The next major version is the result of years of feedbacks received on
6
+ DayPicker. Many choices had to be done, so its props will be mostly incompatible
7
+ with the previous versions.
7
8
 
8
- #### DayPickerInput
9
+ ### Notable changes
9
10
 
10
- - 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))
11
- - Fix DayPickerInput value does not recompute on `locale` change (fix #938) (#939)
12
- - Set overlayHasFocus to false in hideAfterDayClick (#941)
11
+ - now depends on date-fns library
12
+ - rewritten in Typescript
13
+ - improved ARIA support
14
+ - replace the `DayPickerInput` component with an hook
15
+ - new features and tons of improvements
13
16
 
14
- #### Typings
15
-
16
- - Improve typings, use TypeScript 3.1 (#929)
17
- - Add formatDate and parseDate to typings (#873)
18
- - Make `format` optional (#923)
19
- - Remove `initialMonth` from `defaultProps` (#874)
20
-
21
- ### [v7.3.2](https://github.com/gpbl/react-day-picker/tree/v7.3.2) (2019-08-08)
22
-
23
- Updates for TypeScript users:
24
-
25
- - added `tabIndex` to input component types ([#909](https://github.com/gpbl/react-day-picker/issues/909) by [clarityflowers](https://github.com/clarityflowers))
26
- - 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))
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
-
54
- ### [v7.2.4](https://github.com/gpbl/react-day-picker/tree/v7.2.4) (2018-09-13)
55
-
56
- - Fix regression: re-enabled click on disabled days ([#789](https://github.com/gpbl/react-day-picker/issues/789) by
57
- [dewey92](https://github.com/dewey92))
58
- - Fixed an issue with paged navigation when using `toMonth` or `fromMonth` props ([#787](https://github.com/gpbl/react-day-picker/issues/787))
59
-
60
- ## [v7.2](https://github.com/gpbl/react-day-picker/tree/v7.2.2) (2018-08-27)
61
-
62
- **DayPicker**
63
-
64
- - (CSS) Added `left: auto` to navigation buttons style for easier styling ([#771](https://github.com/gpbl/react-day-picker/issues/771) by
65
- [DDDDDanica](https://github.com/DDDDDanica))
66
- - (CSS) Changed css to use `em` units ([#777](https://github.com/gpbl/react-day-picker/issues/777) by
67
- [signalwerk](https://github.com/signalwerk))
68
- - (TypeScript) Added `undefined` and `null` as allowed modifier types ([#775](https://github.com/gpbl/react-day-picker/issues/775) by
69
- [Lavoaster](https://github.com/Lavoaster))
70
-
71
- **DayPickerInput**
72
-
73
- - Added `onDayPickerHide` prop
74
- - `onDayChange` will receive the component instance as third argument (useful for checking the input's value)
75
- - (TypeScript) Added top-level type definition for DayPickerInput ([#762](https://github.com/gpbl/react-day-picker/issues/762) by
76
- [kryops](https://github.com/kryops))
77
- - (TypeScript) Fixed definition for `DayPickerInput.dayPicker` top-level type definition for DayPickerInput ([#790](https://github.com/gpbl/react-day-picker/issues/790) by
78
- [strax](https://github.com/strax))
79
- - Fixed: input content was deleted when typing an invalid date in some cases ([#778](https://github.com/gpbl/react-day-picker/issues/778))
80
-
81
- ### [v7.1.10](https://github.com/gpbl/react-day-picker/tree/v7.1.10) (2018-07-07)
82
-
83
- - Fixed a flickering issue with mouse hover using the default style ([#726](https://github.com/gpbl/react-day-picker/issues/726) by
84
- [sv3k](https://github.com/sv3k))
85
- - (DayPickerInput) Fixed: disabled days not working correctly with `classNames` ([#741](https://github.com/gpbl/react-day-picker/issues/741) by
86
- [hannescalibrate](https://github.com/hannescalibrate))
87
- - (DayPickerInput) Do not focus the input field if not supported by a custom `component` ([#747](https://github.com/gpbl/react-day-picker/issues/747))
88
-
89
- ### [v7.1.9](https://github.com/gpbl/react-day-picker/tree/v7.1.9) (2018-05-13)
90
-
91
- - (DayPickerInput) Fixed an error when year from input is too big ([#717](https://github.com/gpbl/react-day-picker/issues/717))
92
-
93
- ### [v7.1.8](https://github.com/gpbl/react-day-picker/tree/v7.1.8) (2018-05-06)
94
-
95
- - Fixed: `tabIndex={0}` was not passed to the container ([#716](https://github.com/gpbl/react-day-picker/issues/716))
96
- - (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))
97
-
98
- ### [v7.1.6](https://github.com/gpbl/react-day-picker/tree/v7.1.6) (2018-04-15)
99
-
100
- - Updated to support React 17 ([#696](https://github.com/gpbl/react-day-picker/issues/696))
101
- - Added: `isSameMonth`, `isDate` functions to DateUtils.
102
- - Fixed: month was reset when selecting multiple days ([#669](https://github.com/gpbl/react-day-picker/issues/669))
103
- - Fixed: week numbers may not be correct ([#692](https://github.com/gpbl/react-day-picker/issues/692))
104
- - (DayPickerInput) Fixed: overlay did not reset the displayed month when appearing again ([#667](https://github.com/gpbl/react-day-picker/issues/667))
105
- - (DayPickerInput) Fixed: overlay was shown even if the input was disabled ([#680](https://github.com/gpbl/react-day-picker/issues/680))
106
-
107
- ## [v7.1](https://github.com/gpbl/react-day-picker/tree/v7.1.4) (2018-03-04)
108
-
109
- **DayPicker**
110
-
111
- - Added: [`enableOutsideDaysClick`](http://react-day-picker.js.org/api/DayPicker#enableOutsideDaysClick) prop ([#585](https://github.com/gpbl/react-day-picker/issues/585) by
112
- [smesgr](https://github.com/smesgr))
113
- - Fixed: month may be not defined in the navigation component ([#607](https://github.com/gpbl/react-day-picker/issues/607) by
114
- [MhMadHamster](https://github.com/MhMadHamster))
115
- - Fixed: outside days were shown also when using `toMonth`/`fromMonth` ([#630](https://github.com/gpbl/react-day-picker/issues/630))
116
- - Fixed: `Cannot read property 'focus'` error with outside days ([#646](https://github.com/gpbl/react-day-picker/issues/646))
117
- - TypeScript: added more types ([#618](https://github.com/gpbl/react-day-picker/issues/618) by
118
- [adidahiya](https://github.com/adidahiya))
119
-
120
- **DayPickerInput**
121
-
122
- - Improved: focus/blur behavior ([#598](https://github.com/gpbl/react-day-picker/issues/598) by
123
- [jbarco](https://github.com/bartpeeters), [#579](https://github.com/gpbl/react-day-picker/issues/579))
124
- - Improved: `onDayChange` is called `undefined` when day is not valid ([#647](https://github.com/gpbl/react-day-picker/issues/647))
125
- - Added: [`keepFocus`](http://react-day-picker.js.org/api/DayPickerInput#keepFocus) prop ([#598](https://github.com/gpbl/react-day-picker/issues/598) by
126
- [bartpeeters](https://github.com/bartpeeters))
127
- - Fixed: use `dayPickerProps.month` before the input's value ([#612](https://github.com/gpbl/react-day-picker/issues/612) by
128
- [kradical](https://github.com/kradical))
129
- - Typescript: fixed `onDayChange` definition ([#622](https://github.com/gpbl/react-day-picker/issues/622))
130
-
131
- > 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 :)
132
-
133
- ### [v7.0.7](https://github.com/gpbl/react-day-picker/tree/v7.0.7) (2018-01-09)
134
-
135
- - (DayPickerInput) Fixed: `daypickerProps.onMonthChange` not being called ([#604](https://github.com/gpbl/react-day-picker/issues/604) by
136
- [ah-adarlow](https://github.com/ah-adarlow))
137
-
138
- ### [v7.0.6](https://github.com/gpbl/react-day-picker/tree/v7.0.6) (2017-12-31)
139
-
140
- - (DayPickerInput) Fixed: focusing behavior when pressing the `TAB` key ([#594](https://github.com/gpbl/react-day-picker/issues/594))
141
- - (DayPickerInput) Fixed: wrong behavior with malformatted dates using the included moment `parseDate` function ([#584](https://github.com/gpbl/react-day-picker/issues/584) by
142
- [jbarco](https://github.com/jbarco))
143
- - Removed duplicated style from CSS ([#591](https://github.com/gpbl/react-day-picker/issues/591) by
144
- [nicoffee](https://github.com/nicoffee))
145
-
146
- ### [v7.0.5](https://github.com/gpbl/react-day-picker/tree/v7.0.5) (2017-12-03)
147
-
148
- - (Typescript) Various fixes to type definitions
149
- - (DayPickerInput) Fixed: issue parsing dates in January
150
- - Fixed: Updated month prop not updating the calendar when displaying multiple
151
- months ([#580](https://github.com/gpbl/react-day-picker/issues/580))
152
-
153
- # [v7.0.0](https://github.com/gpbl/react-day-picker/tree/v7.0.0) (2017-11-25)
154
-
155
- **Breaking changes**
156
-
157
- - `enableOutsideDays` prop is now named `showOutsideDays`
158
- - if you are using `DayPickerInput`, we removed the moment.js dependency and
159
- changed how to pass props to the input field (upgrade is easy, see below).
160
- - if you are using commonjs to import the component, change your code:
161
- ```diff
162
- - var DayPicker = require('react-day-picker`)
163
- + var DayPicker = require('react-day-picker`).default
164
- ```
165
- - if you are using TypeScript and upgrading from `v6.2.1` (see
166
- [#533](https://github.com/gpbl/react-day-picker/issues/533)), use the default
167
- import:
168
- ```diff
169
- - import { DayPicker } from 'react-day-picker`;
170
- + import DayPicker from 'react-day-picker';
171
- ```
172
- - if you are using a custom CSS, consider that now the calendar table is inside
173
- a `div` with a `.DayPicker-Months` CSS class.
174
-
175
- If you find problems while upgrading, please
176
- [add an issue](https://github.com/gpbl/react-day-picker/issues/new), thanks!
177
-
178
- **New features**
179
-
180
- - Improved layout and style. Added `.DayPicker-Months` container.
181
- - Added: [`renderWeek`](http://react-day-picker.js.org/api/DayPicker`renderWeek)
182
- prop ([#497](https://github.com/gpbl/react-day-picker/issues/497) by
183
- [jenshandersson](https://github.com/jenshandersson))
184
- - Added:
185
- [`onTodayButtonClick`](http://react-day-picker.js.org/api/DayPicker#onTodayButtonClick)
186
- prop ([#529](https://github.com/gpbl/react-day-picker/issues/529))
187
- - Added:
188
- [`showWeekDays`](http://react-day-picker.js.org/api/DayPicker#showWeekDays)
189
- prop. Set it to `false` to hide weekday names
190
- - Added: `month` prop to
191
- [`navbarElement`](http://react-day-picker.js.org/api/DayPicker#navbarElement)
192
- ([#552](https://github.com/gpbl/react-day-picker/issues/552))
193
- - Renamed `enableOutsideDays` prop to
194
- [`showOutsideDays`](http://react-day-picker.js.org/api/DayPicker#showOutsideDays)
195
-
196
- **Bug fixes**
197
-
198
- - Fixed: multiple months navigation not working correctly in some cases
199
- ([#556](https://github.com/gpbl/react-day-picker/issues/556) by
200
- [hydrognomik](https://github.com/azhangstrata))
201
- - Fixed: (Typescript) added again `DayModifiers` and `Modifiers` back to type
202
- definitions file ([#526](https://github.com/gpbl/react-day-picker/issues/526)
203
- by [azhangstrata](https://github.com/azhangstrata))
204
- - Fixed: (Typescript) missing default export
205
- ([#533](https://github.com/gpbl/react-day-picker/issues/533))
206
- - Fixed: (a11y) removed `role="application"`
207
- ([#548](https://github.com/gpbl/react-day-picker/issues/548) by
208
- [trezy](https://github.com/trezy))
209
-
210
- ### DayPickerInput
211
-
212
- **Breaking changes**
213
-
214
- - The moment.js requirement
215
- [has been removed](https://github.com/gpbl/react-day-picker/pull/518), and you
216
- should use
217
- [`parseDate`](http://react-day-picker.js.org/api/DayPickerInput#parseDate) and
218
- [`formatDate`](http://react-day-picker.js.org/api/DayPickerInput#formatDate)
219
- props to parse and format the dates. If you want to keep using moment.js, your
220
- existing code should changes as follows:
221
-
222
- ```diff
223
- import DayPicker from 'react-day-picker/DayPickerInput'
224
- + import { formatDate, parseDate, } from 'react-day-picker/moment';
225
-
226
- function MyDayPicker() {
227
- return (
228
- <DayPickerInput
229
- placeholder="Please choose a date"
230
- format="LL"
231
- + formatDate={formatDate}
232
- + parseDate={parseDate}
233
- >
234
- );
235
- }
236
- ```
237
-
238
- See also [this example](http://react-day-picker.js.org/examples/input-moment).
239
-
240
- - You must pass additional props to the input component using the
241
- [`inputProps`](http://react-day-picker.js.org/api/DayPickerInput#inputProps)
242
- prop. _This is not a breaking change if you are just using `placeholder` or
243
- `value`_. E.g.:
244
- ```diff
245
- <DayPickerInput
246
- placeholder="Type a day"
247
- value={this.state.selectedDay}
248
- - onFocus={myFocusHandler}
249
- - className="my-input-css"
250
- + inputProps={{
251
- + onFocus: myFocusHandler,
252
- + className: 'my-input-css,
253
- + }}
254
- />
255
- ```
256
-
257
- **New features**
258
-
259
- - New:
260
- [`inputProps`](http://react-day-picker.js.org/api/DayPickerInput#inputProps)
261
- prop to pass additional props to the input component
262
- - New:
263
- [`parseDate`](http://react-day-picker.js.org/api/DayPickerInput#parseDate) and
264
- [`formatDate`](http://react-day-picker.js.org/api/DayPickerInput#formatDate)
265
- props
266
- - New:
267
- [`inputProps`](http://react-day-picker.js.org/api/DayPickerInput#inputProps)
268
- prop to pass additional props to the input component
269
- - New:
270
- [`overlayComponent`](http://react-day-picker.js.org/api/DayPickerInput#overlayComponent)
271
- prop: useful to customize the overlay component
272
- ([#477](https://github.com/gpbl/react-day-picker/issues/477), thanks to
273
- [wldcordeiro](https://github.com/wldcordeiro))
274
- - New: allow to change `numberOfMonths`, `selectedDays` props from
275
- `dayPickerProps` ([#513](https://github.com/gpbl/react-day-picker/issues/513),
276
- [#531](https://github.com/gpbl/react-day-picker/issues/531) by
277
- [hydrognomik](https://github.com/hydrognomik)). Useful for selecting range of
278
- days ([example](http://react-day-picker.js.org/examples/input-from-to)).
279
- - New:
280
- [`showOverlay`](http://react-day-picker.js.org/api/DayPickerInput#showOverlay)
281
- prop: shows the overlay at the initial rendering (useful for styling)
282
- - New: [`getInput`](http://react-day-picker.js.org/api/DayPickerInput#getInput)
283
- and
284
- [`getDayPicker`](http://react-day-picker.js.org/api/DayPickerInput#getDayPicker)
285
- public methods
286
-
287
- * Changed: clicking the Today Button will set the input value to today
288
- ([#561](https://github.com/gpbl/react-day-picker/issues/561))
289
- * Changed: removed `fixedWeek` prop. Use `dayPickerProps ={{ fixedWeek: true }}`
290
- to restore it.
291
-
292
- **Bug fixes**
293
-
294
- - Fixed: some modifiers were not passed down when using a custom `classNames`
295
- ([#517](https://github.com/gpbl/react-day-picker/issues/517),
296
- [#504](https://github.com/gpbl/react-day-picker/issues/504) by
297
- [tume](https://github.com/tume))
298
- - Fixed: focus behavior on Firefox
299
- ([#525](https://github.com/gpbl/react-day-picker/issues/525) by
300
- [martinmosko](https://github.com/martinmosko))
301
- - Fixed: value not updated when changed in some cases
302
- ([#535](https://github.com/gpbl/react-day-picker/issues/535))
303
- - Fixed: localization bug when using multiple languages
304
- ([#509](https://github.com/gpbl/react-day-picker/issues/509))
17
+ See the preview website at https://react-day-picker-next.netlify.app.
305
18
 
306
19
  ---
307
20
 
308
- ## [v6.2.0](https://github.com/gpbl/react-day-picker/tree/v6.2.0) (2017-10-05)
309
-
310
- - Added: TypeScript definitions for DayPickerInput
311
- ([#487](https://github.com/gpbl/react-day-picker/issues/487) by
312
- [adidahiya](https://github.com/adidahiya) and
313
- [lpcarignan](https://github.com/lpcarignan))
314
-
315
- **Bug fixes**
316
-
317
- - Fixed: an issue with React 0.14
318
- - Fixed: a console warning in React 16
319
- ([#493](https://github.com/gpbl/react-day-picker/issues/493))
320
- - `DayPickerInput` Fix an error when `format` is passed as array
321
- ([#502](https://github.com/gpbl/react-day-picker/issues/502))
322
- - `DayPickerInput` Fix update when receiving new props
323
- ([#495](https://github.com/gpbl/react-day-picker/issues/495) by
324
- [kradical](https://github.com/kradical))
325
-
326
- ### [v6.1.1](https://github.com/gpbl/react-day-picker/tree/v6.1.1) (2017-09-27)
327
-
328
- - Added: React 16 as peer dependency
329
- ([#498](https://github.com/gpbl/react-day-picker/issues/498) by
330
- [brycehill](https://github.com/brycehill))
331
- - Allow node consumers to remove propTypes for production builds
332
- ([#463](https://github.com/gpbl/react-day-picker/issues/463) by
333
- [oigewan](https://github.com/oigewan))
334
-
335
- **Bug fixes**
336
-
337
- - Fixed: disabled interaction in RTL
338
- ([#471](https://github.com/gpbl/react-day-picker/issues/471) by
339
- [edoshor](https://github.com/edoshor))
340
-
341
- ## [v6.1.0](https://github.com/gpbl/react-day-picker/tree/v6.1.0) (2017-07-09)
342
-
343
- **Improvements**
344
-
345
- - Added new
346
- [`onDayMouseDown`](http://react-day-picker.js.org/docs/api.html#ondaymousedown)
347
- and
348
- [`onDayMouseUp`](http://react-day-picker.js.org/docs/api.html#ondaymouseup)
349
- props ([#445](https://github.com/gpbl/react-day-picker/issues/445) by
350
- [eldritchideen](https://github.com/eldritchideen))
351
-
352
- **Bug fixes**
353
-
354
- - Fixed: before/after modifier not working as expected
355
- ([#451](https://github.com/gpbl/react-day-picker/issues/451))
356
- - Fixed: changing some props would not update day cells
357
- ([#452](https://github.com/gpbl/react-day-picker/issues/452) by
358
- [oigewan](https://github.com/oigewan))
359
- - Fixed: `classNames` may prevent clicking on outside days
360
- ([#449](https://github.com/gpbl/react-day-picker/issues/449))
361
-
362
- ### [v6.0.5](https://github.com/gpbl/react-day-picker/tree/v6.0.5) (2017-07-02)
363
-
364
- **Bug fixes**
365
-
366
- - Fixed: today button inside a form submits the form
367
- ([#443](https://github.com/gpbl/react-day-picker/issues/443))
368
- - Fixed: before/after modifiers not working as expected in some cases
369
- ([#442](https://github.com/gpbl/react-day-picker/issues/442))
370
- - `DayPickerInput` Fixed: allow multiple formats in `format` prop
371
- ([#439](https://github.com/gpbl/react-day-picker/issues/439))
372
-
373
- ### [v6.0.4](https://github.com/gpbl/react-day-picker/tree/v6.0.4) (2017-06-26)
374
-
375
- **Bug fixes**
376
-
377
- - Fixed: next and previous buttons not working via keyboard
378
- ([#430](https://github.com/gpbl/react-day-picker/issues/430))
379
- - Fixed: wrapper style cannot be set when using CSS modules
380
- ([#432](https://github.com/gpbl/react-day-picker/issues/432))
381
-
382
- ### [v6.0.3](https://github.com/gpbl/react-day-picker/tree/v6.0.3) (2017-06-22)
383
-
384
- **Bug fixes**
385
-
386
- - `DayPickerInput` Call `onDayChange(undefined, {})` when user empties the input
387
- field. ([#423](https://github.com/gpbl/react-day-picker/issues/423))
388
- - `DayPickerInput` Fixed: shown month was not updated when updating month in
389
- `dayPickerProps` ([#425](https://github.com/gpbl/react-day-picker/issues/425))
390
-
391
- # [v6.0.0](https://github.com/gpbl/react-day-picker/tree/v6.0.0) (2017-06-16)
392
-
393
- This major release focuses on performance, improves accessibility and fixes some
394
- bugs. There are some possible breaking changes, but they are easy to fix (read
395
- below).
396
-
397
- **Breaking changes**
398
-
399
- - The container's HTML structure has changed: the interactive element used to
400
- focus the calendar has been moved into a wrapper to improve accessibility
401
- ([#392](https://github.com/gpbl/react-day-picker/issues/392)):
402
-
403
- ```diff
404
- <div className="DayPicker">
405
- + <div className="DayPicker-wrapper">
406
- <!-- rendered stuff here -->
407
- + </div>
408
- </div>
409
- ```
410
-
411
- This is a **breaking change** if you are styling the component using your own
412
- CSS or with the `classNames` prop.
413
-
414
- - If you are styling with your own stylesheet, rename your `.DayPicker`
415
- selector to `.DayPicker-wrapper`:
416
-
417
- ```diff
418
- - .DayPicker {
419
- + .DayPicker-wrapper {
420
- ```
421
-
422
- - If you are using `classNames` with the `container` prop, rename the
423
- `container` className to `wrapper`.
424
-
425
- - The container element is now an `inline-block` element.
426
-
427
- - When using `fromMonth`/`toMonth` props, navigation buttons now are rendered
428
- and hidden via CSS. Before, the buttons were not rendered at all, and it was
429
- impossible to style them
430
- ([#366](https://github.com/gpbl/react-day-picker/issues/366))
431
-
432
- This is a **breaking change** if you are using those props and styling the
433
- component using your own CSS or with the `classNames` prop.
434
-
435
- In such cases, the buttons will be always shown even if the previous or the
436
- next months are not navigable.
437
-
438
- - If you are styling with your own stylesheet, add a
439
- `.DayPicker-NavButton--interactionDisabled` selector to your style with
440
- `display: none`.
441
- - If you are using `classNames`, add a `navButtonInteractionDisabled` to your
442
- `classNames` with `display: none` to hide the buttons.
443
-
444
- - Improved rendering performance using `shouldComponentUpdate` and
445
- `PureComponent` ([#389](https://github.com/gpbl/react-day-picker/issues/389))
446
-
447
- It should not be a breaking change, but if something is not working for you
448
- when updating some props please file an issue 🙃
449
-
450
- **Improvements**
451
-
452
- - Allow `{after, before}` modifiers in the same object
453
- ([#354](https://github.com/gpbl/react-day-picker/issues/354)). You can now
454
- write before/after modifiers such as `disabledDays={ { before: aDate, after: aDate }}`.
455
- - **DayPickerInput**: added
456
- [`clickUnselectsDay`](http://react-day-picker.js.org/docs/api-input.html#clickunselectsday)
457
- prop to unselect and clear the input when clicking on a previously selected
458
- day ([#399](https://github.com/gpbl/react-day-picker/issues/399))
459
-
460
- **Bug fixes**
461
-
462
- - Fixed an issue where users were able to focus outside days
463
- ([#400](https://github.com/gpbl/react-day-picker/issues/400) by
464
- [oigewan](https://github.com/oigewan))
465
- - Fixed an issue with Internet Explorer 11
466
- ([#403](https://github.com/gpbl/react-day-picker/issues/403) by
467
- [oigewan](https://github.com/oigewan))
468
- - **a11y**: fixed a warning `You have an unlabeled element or control.` shown
469
- with react-a11y ([#386](https://github.com/gpbl/react-day-picker/issues/386))
470
- - **DayPickerInput**: fixed an issue when updating the `month`'s
471
- `dayPickerProps` value
472
- ([#380](https://github.com/gpbl/react-day-picker/issues/380) by
473
- [Yustynn](https://github.com/Yustynn))
474
-
475
- **Improvements in the built version**
476
-
477
- These changes applies to the production build from the `lib` dir (e.g. that
478
- served from unpkg.com).
479
-
480
- - Removed prop types from production build
481
- ([#349](https://github.com/gpbl/react-day-picker/issues/349))
482
- - Include `DayPicker.Input` in the built file
483
- ([#383](https://github.com/gpbl/react-day-picker/issues/383))
484
-
485
- Use `<DayPicker.Input />` to render the input component.
486
-
487
- ---
488
-
489
- ### [v5.5.3](https://github.com/gpbl/react-day-picker/tree/v5.5.3) (2017-05-25)
490
-
491
- - Bugfix for `DayPickerInput`: updated `value` prop now will be reflected in the
492
- component's state
493
- ([#363](https://github.com/gpbl/react-day-picker/issues/363))
494
-
495
- ## [v5.5.0](https://github.com/gpbl/react-day-picker/tree/v5.5.0) (2017-05-09)
496
-
497
- **New DayPickerInput component**
498
-
499
- Use the `DayPickerInput` component to render an input field interacting with the
500
- day picker ([#213](https://github.com/gpbl/react-day-picker/issues/213)).
501
-
502
- See [example](http://react-day-picker.js.org/examples/input.html),
503
- [docs](http://react-day-picker.js.org/docs/input.html) and
504
- [API reference](http://react-day-picker.js.org/docs/api-input.html).
505
-
506
- **New features**
507
-
508
- - New
509
- [`todayButton`](http://react-day-picker.js.org/docs/api-daypicker.html#todaybutton)
510
- prop ([#329](https://github.com/gpbl/react-day-picker/issues/329)).
511
-
512
- Use this prop to display a button on the calendar's footer to switch to the
513
- current month
514
- ([example](http://react-day-picker.js.org/examples/customization-today-button.html)).
515
-
516
- - New
517
- [`showWeekDays`](http://react-day-picker.js.org/docs/api-daypicker.html#showweekdays)
518
- and
519
- [`onWeekClick`](http://react-day-picker.js.org/docs/api-daypicker.html#onweekclick)
520
- props ([#304](https://github.com/gpbl/react-day-picker/issues/304)).
521
-
522
- Use this props to display and interact with the year's week numbers
523
- ([example](http://react-day-picker.js.org/examples/customization-week-numbers.html)).
524
-
525
- - New `daysOfWeek`
526
- [modifiers type](http://react-day-picker.js.org/docs/modifiers.html) to match
527
- days of the weeks
528
- ([#330](https://github.com/gpbl/react-day-picker/issues/330)).
529
-
530
- For example, to match Sundays and Mondays:
531
-
532
- ```diff
533
- <DayPicker
534
- disabledDays={
535
- - day => day.getDate() === 0 || day.getDate() === 1
536
- + daysOfWeek: [0, 1]
537
- }
538
- />
539
- ```
540
-
541
- ### [v5.4.3](https://github.com/gpbl/react-day-picker/tree/v5.4.3) (2017-05-06)
542
-
543
- - Bugfix: `isBeforeDay`/`isAfterDay` functions where not exported correctly
544
- ([#327](https://github.com/gpbl/react-day-picker/pull/327))
545
-
546
- ### [v5.4.2](https://github.com/gpbl/react-day-picker/tree/v5.4.2) (2017-05-03)
547
-
548
- - Bugfix: `aria` role in Week element
549
- ([#322](https://github.com/gpbl/react-day-picker/pull/322) by
550
- [emily-plummer](https://github.com/emily-plummer))
551
-
552
- ## [v5.4.1](https://github.com/gpbl/react-day-picker/tree/v5.4.1) (2017-04-29)
553
-
554
- - Expose [ModifiersUtils](http://react-day-picker.js.org/ModifiersUtils.html)
555
- functions ([#309](https://github.com/gpbl/react-day-picker/pull/309) by
556
- [cwmoo740](https://github.com/cwmoo740))
557
-
558
- Use this set of functions if you need to validate or test your modifiers.
559
-
560
- ## [v5.3.0](https://github.com/gpbl/react-day-picker/tree/v5.3.0) (2017-04-25)
561
-
562
- - Include Typescript Type Definitions
563
- ([#303](https://github.com/gpbl/react-day-picker/pull/303))
564
- - Added: a new
565
- [`modifiersStyles`](http://react-day-picker.js.org/docs/api-daypicker.html#modifiersstyles)
566
- prop to add inline style to the days matching the given modifiers (see
567
- [`example`](http://react-day-picker.js.org/docs/api-daypicker.html#modifiersstyles)).
568
- - Added: `isDayBefore`, `isDayAfter` functions to
569
- [DateUtils](http://react-day-picker.js.org/DateUtils.html).
570
-
571
- **Bug fixes**
572
-
573
- - Functions were not considered in arrays of modifiers
574
- ([#301](https://github.com/gpbl/react-day-picker/pull/301))
575
- - Fixes possible issues when comparing days with different timezones
576
- ([#307](https://github.com/gpbl/react-day-picker/pull/307))
577
-
578
- ### [v5.2.3](https://github.com/gpbl/react-day-picker/tree/v5.2.3) (2017-04-14)
579
-
580
- - Fixed `PropTypes` warnings in React 15.5.
581
-
582
- ## [v5.2.0](https://github.com/gpbl/react-day-picker/tree/v5.2.0) (2017-03-09)
583
-
584
- - Allow overriding `today` modifier
585
- ([#279](https://github.com/gpbl/react-day-picker/pull/279) by
586
- [maxdubrinsky](https://github.com/maxdubrinsky))
587
- - Pass React Components to
588
- [`navBarElement`](http://react-day-picker.js.org/docs/api-daypicker.html#navBarElement),
589
- [`captionElement`](http://react-day-picker.js.org/docs/api-daypicker.html#captionElement),
590
- [`weekdayElement`](http://react-day-picker.js.org/docs/api-daypicker.html#weekdayElement)
591
- ([#280](https://github.com/gpbl/react-day-picker/pull/280) by
592
- [cwmoo740](https://github.com/cwmoo740))
593
-
594
- - Fixed `aria` roles for weekdays and months HTML elements
595
- ([#276](https://github.com/gpbl/react-day-picker/pull/276) by
596
- [oigewan](https://github.com/oigewan))
597
-
598
- ### [v5.1.2](https://github.com/gpbl/react-day-picker/tree/v5.1.2) (2017-03-03)
599
-
600
- - Fixed: an issue with keyboard navigation when using `classNames` prop
601
- ([#269](https://github.com/gpbl/react-day-picker/pull/269) by
602
- [oigewan](https://github.com/oigewan),
603
- [#275](https://github.com/gpbl/react-day-picker/pull/275))
604
- - Fixed: installation issue with bower
605
-
606
- ## [v5.1.1](https://github.com/gpbl/react-day-picker/tree/v5.1.1) (2017-03-03)
607
-
608
- - New
609
- [`classNames`](http://react-day-picker.js.org/docs/api-daypicker.html#classnames)
610
- prop ([#264](https://github.com/gpbl/react-day-picker/issues/264)).
611
-
612
- Use this prop to change the CSS class names or add support for CSS modules
613
- ([#73](https://github.com/gpbl/react-day-picker/issues/73), see
614
- [this example](http://react-day-picker.js.org/docs/css-modules.html)).
615
-
616
- - New [`month`](http://react-day-picker.js.org/docs/api-daypicker.html#month)
617
- prop ([#263](https://github.com/gpbl/react-day-picker/issues/263)).
618
-
619
- This differs from the `initialMonth` props as it causes the calendar to
620
- re-render when its value changes.
621
-
622
- - Added: `aria-label` attributes to the navigation bar with the new
623
- [`labels`](http://react-day-picker.js.org/docs/api-daypicker.html#labels) prop
624
- ([#258](https://github.com/gpbl/react-day-picker/issues/258)).
625
-
626
- # [v5.0.0](https://github.com/gpbl/react-day-picker/tree/v5.0.0) (2017-02-14)
627
-
628
- This release focuses on improving perfomance and the component's api-daypicker.
629
-
630
- - **New modifiers value types**
631
- ([#254](https://github.com/gpbl/react-day-picker/issues/254))
632
-
633
- Use dates, arrays, or ranges as modifier types, not just functions:
634
-
635
- ```diff
636
- <DayPicker
637
- - selectedDays={ day => DateUtils.isSameDay(day, this.state.selectedDay)}
638
- + selectedDays={ this.state.selectedDay }
639
- />
640
- ```
641
-
642
- Read more in the
643
- [modifiers documentation](http://react-day-picker.js.org/docs/modifiers.html).
644
-
645
- - **Breaking change** Event handlers signature has changed
646
- ([#256](https://github.com/gpbl/react-day-picker/issues/256))
647
-
648
- All events handlers like `onDayClick`, `onCaptionClick`, etc. now receive the
649
- Syntethic Event as last argument. Thus you must change your event handlers as
650
- follow:
651
-
652
- ```diff
653
- onDayClick={
654
- - (e, day, modifiers) => {
655
- + (day, modifiers, e)
656
- e.preventDefault();
657
- console.log(day);
658
- console.log(modifiers);
659
- }
660
- }
661
- ```
662
-
663
- - **Breaking change** Use
664
- [`containerProps`](http://react-day-picker.js.org/docs/api-daypicker.html#containerprops)
665
- to pass props to the container `div` element. Before, any prop was passed to
666
- the container element degrading performance
667
- ([#255](https://github.com/gpbl/react-day-picker/issues/255)):
668
-
669
- ```diff
670
- <DayPicker
671
- - data-thing="foo"
672
- + containerProps={ 'data-thing': 'foo' }
673
- />
674
- ```
675
-
676
- ---
677
-
678
- # [v4.0.0](https://github.com/gpbl/react-day-picker/tree/v4.0.0) (2017-02-10)
679
-
680
- - Pass the day's modifiers to the `renderDay` prop function
681
- ([#237](https://github.com/gpbl/react-day-picker/issues/237))
682
-
683
- - **Breaking change** Updating `initialMonth` will not show anymore a different
684
- month after the first mount
685
- ([#169](https://github.com/gpbl/react-day-picker/issues/169))
686
-
687
- If you need the calendar to display a different month, use the
688
- [`month`](http://react-day-picker.js.org/docs/api-daypicker.html#month) prop.
689
-
690
- - **Breaking change** Use `lang` HTML attribute instead of a specific CSS class
691
- name.
692
-
693
- This change may break your style or layout if you are styling the component
694
- according to the current locale. If this is the case, change your CSS to use
695
- the `lang` attribute selector. For examples, if you are styling the calendar
696
- for the `de` locale:
697
-
698
- ```diff
699
- - .DayPicker--de {
700
- + .DayPicker[lang="de"] {
701
- background: yellow;
702
- }
703
- ```
704
-
705
- ---
706
-
707
- ### [v3.1.1](https://github.com/gpbl/react-day-picker/tree/v3.1.1) (2016-10-18)
708
-
709
- - Fixed [an issue](https://github.com/gpbl/react-day-picker/issues/227) with IE
710
- and older Safari.
711
-
712
- ## [v3.1.0](https://github.com/gpbl/react-day-picker/tree/v3.1.0) (2016-10-14)
713
-
714
- - New `months`, `weekdaysLong`, `weekdaysShort`, `firstDayOfWeek` props to
715
- localize the component.
716
-
717
- **Easier localization**
718
-
719
- With these new props you can localize the Day Picker in a more declarative way.
720
- Check out [this example](http://react-day-picker.js.org/examples/?localized).
721
-
722
- ---
723
-
724
- ### [v3.0.1](https://github.com/gpbl/react-day-picker/tree/v3.0.1) (2016-10-14)
725
-
726
- - Fixed [a bug](https://github.com/gpbl/react-day-picker/issues/224) with
727
- MomentLocaleUtils.
728
-
729
- # [v3.0.0](https://github.com/gpbl/react-day-picker/tree/v3.0.0) (2016-10-11)
730
-
731
- - Fixed [an issue](https://github.com/gpbl/react-day-picker/issues/207) with
732
- weekdays labels ([#220](https://github.com/gpbl/react-day-picker/pull/220) by
733
- [makenosound](https://github.com/makenosound)).
734
- - Removed `weekdayComponent` and `navbarComponent` props (deprecated from
735
- [v2.3.0](#v230-2016-06-30))
736
-
737
- **Breaking changes**
738
-
739
- For any locale, weekday names must now begin from Sunday, and the first day of
740
- week should reflect this change (hence to start from Monday, the first day of
741
- week is `1`). See this
742
- [diff](https://github.com/gpbl/react-day-picker/commit/e1462b3818e0a56c24cbcdeb9dba52da8cd8ff72?diff=unified)
743
- as example.
744
-
745
- ---
746
-
747
- ## [v2.5.0](https://github.com/gpbl/react-day-picker/tree/v2.5.0) (2016-10-06)
748
-
749
- - Build dist files as UMD module
750
- ([#216](https://github.com/gpbl/react-day-picker/pull/216) by
751
- [pguimera](https://github.com/pguimera)).
752
-
753
- ## [v2.4.0](https://github.com/gpbl/react-day-picker/tree/v2.4.0) (2016-07-31)
754
-
755
- - Added `pageNavigation` prop
756
- ([#196](https://github.com/gpbl/react-day-picker/pull/196) by
757
- [zaygraveyard](https://github.com/zaygraveyard)).
758
- - Improved behavior of `initialMonth`
759
- ([#198](https://github.com/gpbl/react-day-picker/pull/198) by
760
- [zaygraveyard](https://github.com/zaygraveyard)).
761
-
762
- ### [v2.3.3](https://github.com/gpbl/react-day-picker/tree/v2.3.3) (2016-07-04)
763
-
764
- Fixed props warnings in React 15.2.0
765
- ([#191](https://github.com/gpbl/react-day-picker/pull/191)).
766
-
767
- ### [v2.3.2](https://github.com/gpbl/react-day-picker/tree/v2.3.2) (2016-07-01)
768
-
769
- Removed superfluous deprecation warnings.
770
-
771
- ## [v2.3.0](https://github.com/gpbl/react-day-picker/tree/v2.3.0) (2016-06-30)
772
-
773
- - Added `navbarElement` and `weekdayElement` prop
774
- ([#179](https://github.com/gpbl/react-day-picker/pull/179) by
775
- [boatkorachal](https://github.com/boatkorachal)).
776
- - Added `onDayFocus` prop
777
- ([#185](https://github.com/gpbl/react-day-picker/pull/185) by
778
- [johannesd](https://github.com/johannesd)).
779
-
780
- **Deprecation notice**
781
-
782
- `navbarComponent` and `weekdayComponent` props are deprecated. Please use
783
- `navbarElement` and `weekdayElement`:
784
-
785
- ```diff
786
- - <DayPicker navbarComponent={ MyCustomNavbar } weekdayComponent={ MyCustomWeekday } />
787
- + <DayPicker navbarElement={ <MyCustomNavbar/> } weekdayElement={ <MyCustomWeekday /> } />
788
- ```
789
-
790
- ## [v2.2.0](https://github.com/gpbl/react-day-picker/tree/v2.2.0) (2016-06-09)
791
-
792
- Added `fixedWeeks` prop
793
- ([#176](https://github.com/gpbl/react-day-picker/pull/176) by
794
- [fcsonline](https://github.com/fcsonline)). Use this prop to always display 6
795
- weeks per month: [example](http://react-day-picker.js.org/examples/?fixedWeeks).
796
-
797
- ### [v2.1.1](https://github.com/gpbl/react-day-picker/tree/v2.1.1) (2016-06-06)
798
-
799
- Fixed compatibility with IE11
800
- ([#175](https://github.com/gpbl/react-day-picker/pull/175) by
801
- [davidspiess](https://github.com/davidspiess)).
802
-
803
- ## [v2.1.0](https://github.com/gpbl/react-day-picker/tree/v2.1.0) (2016-06-02)
804
-
805
- - Added
806
- [`weekdayComponent`](http://react-day-picker.js.org/docs/api-daypicker.html#weekdaycomponent-component)
807
- prop ([#172](https://github.com/gpbl/react-day-picker/pull/172) by
808
- [stanislav-ermakov-roi](https://github.com/stanislav-ermakov-roi)). Use this
809
- prop to use a custom component for rendering the weekday cells in the header.
810
- - Added
811
- [`navbarComponent`](http://react-day-picker.js.org/docs/api-daypicker.html#navbarcomponent-component)
812
- prop ([#173](https://github.com/gpbl/react-day-picker/pull/173) by
813
- [stanislav-ermakov-roi](https://github.com/stanislav-ermakov-roi)). Use this
814
- prop to use a custom component for rendering the navigation bar.
815
-
816
- ### [v2.0.3](https://github.com/gpbl/react-day-picker/tree/v2.0.3) (2016-05-24)
817
-
818
- Included the dist version in the npm package.
819
-
820
- ### [v2.0.2](https://github.com/gpbl/react-day-picker/tree/v2.0.2) (2016-05-24)
821
-
822
- Fixed a bug when `canChangeMonth` is set to `true`
823
- ([\#168](https://github.com/gpbl/react-day-picker/pull/168)).
824
-
825
- ### [v2.0.1](https://github.com/gpbl/react-day-picker/tree/v2.0.1) (2016-05-15)
826
-
827
- Fix npm release.
828
-
829
- ## [v2.0.0](https://github.com/gpbl/react-day-picker/tree/v2.0.0) (2016-05-15)
830
-
831
- This release mainly improves the component’s API (thus some breaking changes)
832
- and add some new props.
833
-
834
- Code has been split in multiple components and tests have been rewritten with
835
- [enzyme](https://github.com/airbnb/enzyme). It should be easier to add and test
836
- the upcoming new features!
837
-
838
- Thanks everyone for the support and for the help on making this component better
839
- 🤗 If you have issues or suggestions, don't forget the
840
- [Spectrum Chat](https://spectrum.chat/react-day-picker?tab=chat)!
841
-
842
- **Breaking changes**
843
-
844
- - The `onDay*` event handlers receive as third argument an object of modifiers
845
- instead of an array.
846
-
847
- This mean that if you where writing:
848
-
849
- ```js
850
- onDayClick(e, day, modifiers) {
851
- if (modifiers.indexOf('selected') > -1) {
852
- console.log('This day is selected')
853
- }
854
- }
855
- ```
856
-
857
- you must now write:
858
-
859
- ```js
860
- onDayClick(e, day, modifiers) {
861
- if (modifiers.selected === true) {
862
- console.log('This day is selected')
863
- }
864
- }
865
- ```
866
-
867
- or better:
868
-
869
- ```js
870
- onDayClick(e, day, { selected }) {
871
- if (selected) {
872
- console.log('This day is selected')
873
- }
874
- }
875
- ```
876
-
877
- - Removed `onDayTouchTap`. Use `onDayClick` instead. If you need more
878
- granularity over touch events, you can use the new `onDayTouchStart` and
879
- `onDayTouchEnd` props. See
880
- [#153](https://github.com/gpbl/react-day-picker/issues/153) for more details.
881
-
882
- - Fixed import with CommonJS modules
883
- ([#136](https://github.com/gpbl/react-day-picker/issues/136)).
884
-
885
- This affects code using `require('react-day-picker').default` or similar syntax,
886
- which was required for v1.3.0. Now you can `require('react-day-picker')` as
887
- usual, i.e. without specifying `default`. If you are using ES2015 modules
888
- `import DayPicker from 'react-day-picker'`, this change shouldn't affect you.
889
-
890
- - New `formatDay` function in
891
- [LocaleUtils](http://react-day-picker.js.org/docs/utils-locale.html).
892
-
893
- If you are using your
894
- [custom LocaleUtils](http://react-day-picker.js.org/docs/localization.html#advanced)
895
- to localize the calendar, you need to implement this function as well, which is
896
- required to format the newly added
897
- [aria-label attribute](https://github.com/gpbl/react-day-picker/pull/132) (see
898
- the
899
- [documentation](http://react-day-picker.js.org/docs/localization.html#advanced)
900
- for an example). If you are localizing
901
- [using moment](http://react-day-picker.js.org/docs/localization.html#moment),
902
- this change shouldn't affect you.
903
-
904
- **New props**
905
-
906
- - New
907
- [`disabledDays`](http://react-day-picker.js.org/docs/api-daypicker.html#disabledays-prop)
908
- and
909
- [`selectedDays`](http://react-day-picker.js.org/docs/api-daypicker.html#disabledays-prop)
910
- props. They receive a function `(day) => Bool` as value to easily define which
911
- day should have the `selected` or `disabled` modifiers. See
912
- [#34](https://github.com/gpbl/react-day-picker/issues/34) for more details.
913
-
914
- So if you were writing something like:
915
-
916
- ```jsx
917
- <DayPicker
918
- modifiers={
919
- ({ selected: (day) => isDaySelected(day) },
920
- { disabled: (day) => isDayDisabled(day) })
921
- }
922
- />
923
- ```
924
-
925
- now you can write:
926
-
927
- ```jsx
928
- <DayPicker
929
- selectedDays={(day) => isDaySelected(day)}
930
- disabledDays={(day) => isDayDisabled(day)}
931
- />
932
- ```
933
-
934
- - Added
935
- [`reverseMonths`](http://react-day-picker.js.org/docs/api-daypicker.html#reversemonths-prop)
936
- prop to render the most recent month first.
937
- ([#147](https://github.com/gpbl/react-day-picker/pull/141) by
938
- [sonrtomas](https://github.com/sonrtomas))
939
- - Added
940
- [`onDayKeyDown`](http://react-day-picker.js.org/docs/api-daypicker.html#ondaykeydown-prop),
941
- [`onDayTouchStart`](http://react-day-picker.js.org/docs/api-daypicker.html#ondaytouchstart-prop),
942
- [`onDayTouchEnd`](http://react-day-picker.js.org/docs/api-daypicker.html#ondaytouchend-prop)
943
- props.
944
-
945
- **Improvements**
946
-
947
- - Navigate between weeks or years using left/right or up/down arrow keys
948
- ([#132](https://github.com/gpbl/react-day-picker/pull/132) by
949
- [limscoder](https://github.com/limscoder))
950
- - Added various `aria-*` attributes
951
- ([#132](https://github.com/gpbl/react-day-picker/pull/132) by
952
- [limscoder](https://github.com/limscoder))
953
-
954
- **Bug fixes**
955
-
956
- - Navigation with keyboard when using `fromMonth` or `endMonth`
957
-
958
- ---
959
-
960
- ### [v1.3.2](https://github.com/gpbl/react-day-picker/tree/v1.3.12) (2016-04-10)
961
-
962
- Adds React 15 to the peer dependencies.
963
-
964
- ### [v1.3.1](https://github.com/gpbl/react-day-picker/tree/v1.3.1) (2016-03-02)
965
-
966
- Fixes an issue causing className being overwritten by `className` prop
967
- ([\#137](https://github.com/gpbl/react-day-picker/issues/137)).
968
-
969
- ## [v1.3.0](https://github.com/gpbl/react-day-picker/tree/v1.3.0) (2016-02-18)
970
-
971
- **Improvements**
972
-
973
- - Support for Babel 6
974
- ([#90](https://github.com/gpbl/react-day-picker/issues/90))
975
- - See this [known issue](https://github.com/gpbl/react-day-picker/issues/136)
976
- - HTML props are spread to container tag, so to support `onBlur`, `onFocus`,
977
- etc. ([#122](https://github.com/gpbl/react-day-picker/issues/122),
978
- [#123](https://github.com/gpbl/react-day-picker/issues/123))
979
- - Better RTL support for month navigation
980
- ([#125](https://github.com/gpbl/react-day-picker/issues/125))
981
-
982
- ## [v1.2.0](https://github.com/gpbl/react-day-picker/tree/v1.2.0) (2015-12-04)
983
-
984
- **New features**
985
-
986
- - Use a custom caption element with the new
987
- [`captionElement`](http://react-day-picker.js.org/docs/api-daypicker.html#captionelement-element)
988
- prop. A custom caption element is useful, for example, to create a year/month
989
- navigation as shown in
990
- [this example](http://react-day-picker.js.org/examples/advanced-year-navigation.html).
991
- Read [#52](https://github.com/gpbl/react-day-picker/issues/52) for a
992
- discussion about this feature.
993
-
994
- **Improvements**
995
-
996
- - Improved navigation when clicking on outside days
997
- ([#112](https://github.com/gpbl/react-day-picker/issues/112), see also
998
- [this example](http://react-day-picker.js.org/examples/months-restrict-navigation.html))
999
- - New `addMonths` function in
1000
- [DateUtils](http://react-day-picker.js.org/DateUtils.html)
1001
- - Added a style definition to package.json
1002
- ([#105](https://github.com/gpbl/react-day-picker/issues/105), thanks
1003
- @webbushka)
1004
-
1005
- **Fixed bugs**
1006
-
1007
- - Make the component working again with React ~0.13
1008
- ([#108](https://github.com/gpbl/react-day-picker/issues/108))
1009
- - Fixed: a bug when clicking on outside days when `fromMonth` or `toMonth` were
1010
- set ([#97](https://github.com/gpbl/react-day-picker/issues/97))
1011
- - Replace a wrong `attr` tag with the right `abbr` in the weekdays row –
1012
- https://github.com/gpbl/react-day-picker/issues/33#issuecomment-159751186. ⚠️
1013
- Please note that the component may now use the CSS defined for `abbr` tags.
1014
-
1015
- ### [v1.1.5](https://github.com/gpbl/react-day-picker/tree/v1.1.5) (2015-11-20)
1016
-
1017
- Fix an issue with `showMonth()`
1018
- ([#95](https://github.com/gpbl/react-day-picker/issues/95)) – thanks @JKillian
1019
-
1020
- ### [v1.1.4](https://github.com/gpbl/react-day-picker/tree/1.1.4) (2015-11-19)
1021
-
1022
- Minor changes when importing utilities
1023
-
1024
- ### [v1.1.3](https://github.com/gpbl/react-day-picker/tree/v1.1.3) (2015-11-12)
1025
-
1026
- **Improvements**
1027
-
1028
- - `isSameDay` in DateUtils now accepts `null` or `undefined` arguments
1029
- - Added bower support
1030
-
1031
- ### [v1.1.1](https://github.com/gpbl/react-day-picker/tree/v1.1.1) (2015-11-11)
1032
-
1033
- **Fix regression** The last version
1034
- [was missing an element](https://github.com/gpbl/react-day-picker/commit/0164a38f651771c00d3b4949898937d2013c7ddd)
1035
- and this change may have broken existing styles. This fix restore the original
1036
- behavior adding the element again. (see
1037
- [#82](https://github.com/gpbl/react-day-picker/issues/82)).
1038
-
1039
- ## [v1.1.0](https://github.com/gpbl/react-day-picker/tree/v1.1.0) (2015-11-06)
1040
-
1041
- **New features**
1042
-
1043
- - New `fromMonth` and `toMonth` props. Use the
1044
- [`fromMonth`](http://react-day-picker.js.org/docs/api-daypicker.html#frommonth-date)
1045
- and
1046
- [`toMonth`](http://react-day-picker.js.org/docs/api-daypicker.html#tomonth-date)
1047
- props to restrict the months within which the calendar can work. See
1048
- [this example](http://react-day-picker.js.org/examples/months-restrict-navigation.html).
1049
- - `dateUtils` includes some useful function to set custom modifiers
1050
- - `localeUtils` are the default functions used to localize the Day Picker in
1051
- english. See
1052
- https://github.com/gpbl/react-day-picker/issues/46#issuecomment-153498039 for
1053
- a sample usage of this library.
1054
-
1055
- ### [v1.0.10](https://github.com/gpbl/react-day-picker/tree/v1.0.10) (2015-10-15)
1056
-
1057
- Let the event from next/previous month click to propagate.
1058
- [\#74](https://github.com/gpbl/react-day-picker/pull/74)
1059
- ([kblcuk](https://github.com/kblcuk))
1060
-
1061
- ### [v1.0.9](https://github.com/gpbl/react-day-picker/tree/v1.0.9) (2015-10-12)
1062
-
1063
- Fixed an issue with Daylight Saving Time for some timezones \(\#71\)
1064
- [\#72](https://github.com/gpbl/react-day-picker/pull/72)
1065
- ([gpbl](https://github.com/gpbl))
1066
-
1067
- ### [v1.0.7](https://github.com/gpbl/react-day-picker/tree/v1.0.7) (2015-10-08)
1068
-
1069
- Add support of react-v0.14-rc1
1070
- [\#61](https://github.com/gpbl/react-day-picker/issues/61)
1071
-
1072
- ### [v1.0.6](https://github.com/gpbl/react-day-picker/tree/v1.0.6) (2015-10-08)
1073
-
1074
- Fixes a bug causing onCaptionClick to receive always the first month when
1075
- displaying multiple months
1076
- [\#63](https://github.com/gpbl/react-day-picker/issues/63)
1077
-
1078
- ### [v1.0.5](https://github.com/gpbl/react-day-picker/tree/v1.0.5) (2015-09-01)
1079
-
1080
- Fixes a bug when passing a new `initialMonth` prop to the component that may
1081
- cause an issue when navigating between months [#57]
1082
-
1083
- ### [v1.0.4](https://github.com/gpbl/react-day-picker/tree/v1.0.4) (2015-07-29)
1084
-
1085
- **Improvement**
1086
-
1087
- - Improve the navigation between months when `numberOfMonths` is greater than 1
1088
- ([#37](https://github.com/gpbl/react-day-picker/issues/37))
1089
-
1090
- **Bug fix**
1091
-
1092
- - Months may jump forward when clicking on days when `numberOfMonths` is greater
1093
- than 1 ([#38](https://github.com/gpbl/react-day-picker/issues/38))
1094
-
1095
- ### [v1.0.3](https://github.com/gpbl/react-day-picker/tree/v1.0.3) (2015-07-25)
21
+ ### v8.0.0-beta.33
1096
22
 
1097
- - New feature: onCaptionClick
1098
- [\#31](https://github.com/gpbl/react-day-picker/pull/31)
1099
- ([adambbecker](https://github.com/adambbecker))
23
+ - chore: unify context files (#1303) (d66b3981)
24
+ - chore: cleanup useInput types (7faec569)
25
+ - chore: improve internal modifiers typings (#1299) (9ddc64d9)
26
+ - chore: consolidate types (#1297) (e00c59e7)
1100
27
 
1101
- ### [v1.0.2](https://github.com/gpbl/react-day-picker/tree/v1.0.2) (2015-07-23)
28
+ ### v8.0.0-beta.32
1102
29
 
1103
- **Fixed bugs**
30
+ - fix: previous/next month navigation with RTL direction (68ad0adf)
31
+ - chore: updated `useInput` API (#1293)
32
+ - chore: removed `defaultSelected` prop (cd4f5790)
1104
33
 
1105
- - EnableOutsideDays keeps focus on wrong cell
1106
- [\#29](https://github.com/gpbl/react-day-picker/issues/29)
1107
- - October broken on Firefox Nightly
1108
- [\#18](https://github.com/gpbl/react-day-picker/issues/18)
34
+ ### v8.0.0-beta.31
1109
35
 
1110
- ## [v1.0.1](https://github.com/gpbl/react-day-picker/tree/v1.0.1) (2015-06-24)
36
+ - Switched to rollup as module bundler
37
+ - Added `custom` selection mode
38
+ - Added `useDay` hook
39
+ - Fixed `classNames.nav_button_next` in Navigation.tsx (#1238)
40
+ - Fixed week numbers breaking at end/begin of the years (#1270)
41
+ - Fixed overwritten modifiers in range selections
1111
42
 
1112
- First major release. Please see
1113
- [the updated website](http://react-day-picker.js.org) for more info.
43
+ ## Older changelog
1114
44
 
1115
- - [#27] Removed the dependency from moment.js. Events and props work **only**
1116
- with native `Date` object. To localize the Day Picker with moment.js (or
1117
- another library), follow [this page](http://react-day-picker.js.org/#tips)
1118
- - Class names have been updated (objects are now CamelCase). As example, please
1119
- see
1120
- [the updated CSS file](https://github.com/gpbl/react-day-picker/blob/master/site/src/style/DayPicker.scss).
1121
- - [#27] All rendered tags are now `div` or `span`. Use CSS to style the
1122
- daypicker as table.
1123
- - A `today` modifier is added automatically
1124
- - Event handlers receive the event as first argument. For example:
1125
- `onDayClick(e, day, modifiers)` instead of `onDayClick(day, modifiers, e)`
1126
- - `onNextMonthClick` and `onNextMonthClick` props have been removed. Use
1127
- `onMonthChange` instead.
45
+ See [/v7/CHANGELOG.md](https://github.com/gpbl/react-day-picker/blob/v7/CHANGELOG.md) for the changelog of versions before 8.