react-day-picker 8.0.0-beta.35 → 8.0.0-beta.36

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 (741) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/build/DayPicker.d.ts +93 -89
  3. package/build/DayPicker.js +93 -96
  4. package/build/DayPicker.js.map +1 -1
  5. package/build/components/Button/Button.d.ts +7 -7
  6. package/build/components/Button/Button.js +18 -22
  7. package/build/components/Button/Button.js.map +1 -1
  8. package/build/components/Button/index.d.ts +1 -1
  9. package/build/components/Button/index.js +2 -0
  10. package/build/components/Button/index.js.map +1 -0
  11. package/build/components/Caption/Caption.d.ts +20 -18
  12. package/build/components/Caption/Caption.js +59 -55
  13. package/build/components/Caption/Caption.js.map +1 -1
  14. package/build/components/Caption/index.d.ts +1 -1
  15. package/build/components/Caption/index.js +2 -0
  16. package/build/components/Caption/index.js.map +1 -0
  17. package/build/components/CaptionLabel/CaptionLabel.d.ts +10 -8
  18. package/build/components/CaptionLabel/CaptionLabel.js +6 -10
  19. package/build/components/CaptionLabel/CaptionLabel.js.map +1 -1
  20. package/build/components/CaptionLabel/index.d.ts +1 -1
  21. package/build/components/CaptionLabel/index.js +2 -0
  22. package/build/components/CaptionLabel/index.js.map +1 -0
  23. package/build/components/Day/Day.d.ts +13 -13
  24. package/build/components/Day/Day.js +19 -22
  25. package/build/components/Day/Day.js.map +1 -1
  26. package/build/components/Day/hooks/index.d.ts +1 -1
  27. package/build/components/Day/hooks/index.js +2 -0
  28. package/build/components/Day/hooks/index.js.map +1 -0
  29. package/build/components/Day/hooks/useDay.d.ts +60 -58
  30. package/build/components/Day/hooks/useDay.js +166 -173
  31. package/build/components/Day/hooks/useDay.js.map +1 -1
  32. package/build/components/Day/hooks/useDayFocus.d.ts +8 -8
  33. package/build/components/Day/hooks/useDayFocus.js +62 -67
  34. package/build/components/Day/hooks/useDayFocus.js.map +1 -1
  35. package/build/components/Day/index.d.ts +2 -2
  36. package/build/{packages/react-day-picker/src/components/Day/index.d.ts → components/Day/index.js} +3 -2
  37. package/build/components/Day/index.js.map +1 -0
  38. package/build/components/DayContent/DayContent.d.ts +15 -15
  39. package/build/components/DayContent/DayContent.js +10 -14
  40. package/build/components/DayContent/DayContent.js.map +1 -1
  41. package/build/components/DayContent/index.d.ts +1 -1
  42. package/build/components/DayContent/index.js +2 -0
  43. package/build/components/DayContent/index.js.map +1 -0
  44. package/build/components/Dropdown/Dropdown.d.ts +16 -16
  45. package/build/components/Dropdown/Dropdown.js +15 -19
  46. package/build/components/Dropdown/Dropdown.js.map +1 -1
  47. package/build/components/Dropdown/index.d.ts +1 -1
  48. package/build/components/Dropdown/index.js +2 -0
  49. package/build/components/Dropdown/index.js.map +1 -0
  50. package/build/components/Footer/Footer.d.ts +3 -3
  51. package/build/components/Footer/Footer.js +10 -14
  52. package/build/components/Footer/Footer.js.map +1 -1
  53. package/build/components/Footer/index.d.ts +1 -1
  54. package/build/components/Footer/index.js +2 -0
  55. package/build/components/Footer/index.js.map +1 -0
  56. package/build/components/Head/Head.d.ts +5 -5
  57. package/build/components/Head/Head.js +15 -19
  58. package/build/components/Head/Head.js.map +1 -1
  59. package/build/components/Head/index.d.ts +1 -1
  60. package/build/components/Head/index.js +2 -0
  61. package/build/components/Head/index.js.map +1 -0
  62. package/build/components/Head/utils/getWeekdays.d.ts +6 -6
  63. package/build/components/Head/utils/getWeekdays.js +14 -17
  64. package/build/components/Head/utils/getWeekdays.js.map +1 -1
  65. package/build/components/Head/utils/index.d.ts +1 -1
  66. package/build/components/Head/utils/index.js +2 -0
  67. package/build/components/Head/utils/index.js.map +1 -0
  68. package/build/components/IconDropdown/IconDropdown.d.ts +6 -6
  69. package/build/components/IconDropdown/IconDropdown.js +8 -11
  70. package/build/components/IconDropdown/IconDropdown.js.map +1 -1
  71. package/build/components/IconDropdown/index.d.ts +1 -1
  72. package/build/components/IconDropdown/index.js +2 -0
  73. package/build/components/IconDropdown/index.js.map +1 -0
  74. package/build/components/IconLeft/IconLeft.d.ts +6 -6
  75. package/build/components/IconLeft/IconLeft.js +8 -11
  76. package/build/components/IconLeft/IconLeft.js.map +1 -1
  77. package/build/components/IconLeft/index.d.ts +1 -1
  78. package/build/components/IconLeft/index.js +2 -0
  79. package/build/components/IconLeft/index.js.map +1 -0
  80. package/build/components/IconRight/IconRight.d.ts +6 -6
  81. package/build/components/IconRight/IconRight.js +8 -11
  82. package/build/components/IconRight/IconRight.js.map +1 -1
  83. package/build/components/IconRight/index.d.ts +1 -1
  84. package/build/components/IconRight/index.js +2 -0
  85. package/build/components/IconRight/index.js.map +1 -0
  86. package/build/components/Month/Month.d.ts +8 -0
  87. package/build/components/Month/Month.js +37 -0
  88. package/build/components/Month/Month.js.map +1 -0
  89. package/build/components/Month/index.d.ts +1 -0
  90. package/build/components/Month/index.js +2 -0
  91. package/build/components/Month/index.js.map +1 -0
  92. package/build/components/MonthsDropdown/MonthsDropdown.d.ts +12 -12
  93. package/build/components/MonthsDropdown/MonthsDropdown.js +34 -38
  94. package/build/components/MonthsDropdown/MonthsDropdown.js.map +1 -1
  95. package/build/components/MonthsDropdown/index.d.ts +1 -1
  96. package/build/{packages/react-day-picker/src/components/MonthsDropdown/index.d.ts → components/MonthsDropdown/index.js} +2 -1
  97. package/build/components/MonthsDropdown/index.js.map +1 -0
  98. package/build/components/Navigation/Navigation.d.ts +20 -20
  99. package/build/components/Navigation/Navigation.js +28 -32
  100. package/build/components/Navigation/Navigation.js.map +1 -1
  101. package/build/components/Navigation/index.d.ts +1 -1
  102. package/build/components/Navigation/index.js +2 -0
  103. package/build/components/Navigation/index.js.map +1 -0
  104. package/build/components/Root/Root.d.ts +6 -6
  105. package/build/components/Root/Root.js +30 -48
  106. package/build/components/Root/Root.js.map +1 -1
  107. package/build/components/Root/index.d.ts +1 -1
  108. package/build/components/Root/index.js +2 -0
  109. package/build/components/Root/index.js.map +1 -0
  110. package/build/components/Row/Row.d.ts +16 -16
  111. package/build/components/Row/Row.js +16 -20
  112. package/build/components/Row/Row.js.map +1 -1
  113. package/build/components/Row/index.d.ts +1 -1
  114. package/build/components/Row/index.js +2 -0
  115. package/build/components/Row/index.js.map +1 -0
  116. package/build/components/Table/Table.d.ts +14 -12
  117. package/build/components/Table/Table.js +13 -17
  118. package/build/components/Table/Table.js.map +1 -1
  119. package/build/components/Table/index.d.ts +1 -1
  120. package/build/components/Table/index.js +2 -0
  121. package/build/components/Table/index.js.map +1 -0
  122. package/build/components/Table/utils/getOutsideEndDays.d.ts +3 -3
  123. package/build/components/Table/utils/getOutsideEndDays.js +11 -14
  124. package/build/components/Table/utils/getOutsideEndDays.js.map +1 -1
  125. package/build/components/Table/utils/getOutsideStartDays.d.ts +4 -4
  126. package/build/components/Table/utils/getOutsideStartDays.js +11 -14
  127. package/build/components/Table/utils/getOutsideStartDays.js.map +1 -1
  128. package/build/components/Table/utils/getWeeks.d.ts +17 -17
  129. package/build/components/Table/utils/getWeeks.js +46 -49
  130. package/build/components/Table/utils/getWeeks.js.map +1 -1
  131. package/build/components/WeekNumber/WeekNumber.d.ts +15 -15
  132. package/build/components/WeekNumber/WeekNumber.js +19 -23
  133. package/build/components/WeekNumber/WeekNumber.js.map +1 -1
  134. package/build/components/WeekNumber/index.d.ts +1 -1
  135. package/build/components/WeekNumber/index.js +2 -0
  136. package/build/components/WeekNumber/index.js.map +1 -0
  137. package/build/components/YearsDropdown/YearsDropdown.d.ts +16 -16
  138. package/build/components/YearsDropdown/YearsDropdown.js +22 -26
  139. package/build/components/YearsDropdown/YearsDropdown.js.map +1 -1
  140. package/build/components/YearsDropdown/index.d.ts +1 -1
  141. package/build/{packages/react-day-picker/src/components/YearsDropdown/index.d.ts → components/YearsDropdown/index.js} +2 -1
  142. package/build/components/YearsDropdown/index.js.map +1 -0
  143. package/build/contexts/DayPicker/DayPickerContext.d.ts +48 -31
  144. package/build/contexts/DayPicker/DayPickerContext.js +54 -13
  145. package/build/contexts/DayPicker/DayPickerContext.js.map +1 -1
  146. package/build/contexts/DayPicker/defaultClassNames.d.ts +5 -5
  147. package/build/contexts/DayPicker/defaultClassNames.js +39 -41
  148. package/build/contexts/DayPicker/defaultClassNames.js.map +1 -1
  149. package/build/contexts/DayPicker/formatters/formatCaption.d.ts +7 -7
  150. package/build/contexts/DayPicker/formatters/formatCaption.js +6 -9
  151. package/build/contexts/DayPicker/formatters/formatCaption.js.map +1 -1
  152. package/build/contexts/DayPicker/formatters/formatDay.d.ts +7 -7
  153. package/build/contexts/DayPicker/formatters/formatDay.js +6 -9
  154. package/build/contexts/DayPicker/formatters/formatDay.js.map +1 -1
  155. package/build/contexts/DayPicker/formatters/formatMonthCaption.d.ts +7 -7
  156. package/build/contexts/DayPicker/formatters/formatMonthCaption.js +6 -9
  157. package/build/contexts/DayPicker/formatters/formatMonthCaption.js.map +1 -1
  158. package/build/contexts/DayPicker/formatters/formatWeekNumber.d.ts +4 -4
  159. package/build/contexts/DayPicker/formatters/formatWeekNumber.js +6 -8
  160. package/build/contexts/DayPicker/formatters/formatWeekNumber.js.map +1 -1
  161. package/build/contexts/DayPicker/formatters/formatWeekdayName.d.ts +7 -7
  162. package/build/contexts/DayPicker/formatters/formatWeekdayName.js +6 -9
  163. package/build/contexts/DayPicker/formatters/formatWeekdayName.js.map +1 -1
  164. package/build/contexts/DayPicker/formatters/formatYearCaption.d.ts +6 -6
  165. package/build/contexts/DayPicker/formatters/formatYearCaption.js +6 -9
  166. package/build/contexts/DayPicker/formatters/formatYearCaption.js.map +1 -1
  167. package/build/contexts/DayPicker/formatters/index.d.ts +6 -6
  168. package/build/contexts/DayPicker/formatters/index.js +7 -7
  169. package/build/contexts/DayPicker/formatters/index.js.map +1 -1
  170. package/build/contexts/DayPicker/index.d.ts +2 -2
  171. package/build/{packages/react-day-picker/src/contexts/DayPicker/index.d.ts → contexts/DayPicker/index.js} +3 -2
  172. package/build/contexts/DayPicker/index.js.map +1 -0
  173. package/build/contexts/DayPicker/labels/index.d.ts +7 -7
  174. package/build/contexts/DayPicker/labels/index.js +8 -8
  175. package/build/contexts/DayPicker/labels/index.js.map +1 -1
  176. package/build/contexts/DayPicker/labels/labelDay.d.ts +5 -5
  177. package/build/contexts/DayPicker/labels/labelDay.js +6 -9
  178. package/build/contexts/DayPicker/labels/labelDay.js.map +1 -1
  179. package/build/contexts/DayPicker/labels/labelMonthDropdown.d.ts +4 -4
  180. package/build/contexts/DayPicker/labels/labelMonthDropdown.js +6 -8
  181. package/build/contexts/DayPicker/labels/labelMonthDropdown.js.map +1 -1
  182. package/build/contexts/DayPicker/labels/labelNext.d.ts +5 -5
  183. package/build/contexts/DayPicker/labels/labelNext.js +6 -8
  184. package/build/contexts/DayPicker/labels/labelNext.js.map +1 -1
  185. package/build/contexts/DayPicker/labels/labelPrevious.d.ts +5 -5
  186. package/build/contexts/DayPicker/labels/labelPrevious.js +6 -8
  187. package/build/contexts/DayPicker/labels/labelPrevious.js.map +1 -1
  188. package/build/contexts/DayPicker/labels/labelWeekNumber.d.ts +5 -5
  189. package/build/contexts/DayPicker/labels/labelWeekNumber.js +6 -8
  190. package/build/contexts/DayPicker/labels/labelWeekNumber.js.map +1 -1
  191. package/build/contexts/DayPicker/labels/labelWeekday.d.ts +5 -5
  192. package/build/contexts/DayPicker/labels/labelWeekday.js +6 -9
  193. package/build/contexts/DayPicker/labels/labelWeekday.js.map +1 -1
  194. package/build/contexts/DayPicker/labels/labelYearDropdown.d.ts +4 -4
  195. package/build/contexts/DayPicker/labels/labelYearDropdown.js +6 -8
  196. package/build/contexts/DayPicker/labels/labelYearDropdown.js.map +1 -1
  197. package/build/contexts/DayPicker/useDayPicker.d.ts +8 -8
  198. package/build/contexts/DayPicker/useDayPicker.js +14 -17
  199. package/build/contexts/DayPicker/useDayPicker.js.map +1 -1
  200. package/build/contexts/DayPicker/utils/index.d.ts +1 -2
  201. package/build/contexts/DayPicker/utils/index.js +2 -0
  202. package/build/contexts/DayPicker/utils/index.js.map +1 -0
  203. package/build/contexts/DayPicker/utils/parseFromToProps.d.ts +9 -9
  204. package/build/contexts/DayPicker/utils/parseFromToProps.js +24 -27
  205. package/build/contexts/DayPicker/utils/parseFromToProps.js.map +1 -1
  206. package/build/contexts/Focus/FocusContext.d.ts +36 -36
  207. package/build/contexts/Focus/FocusContext.js +129 -118
  208. package/build/contexts/Focus/FocusContext.js.map +1 -1
  209. package/build/contexts/Focus/getInitialFocusTarget.d.ts +10 -0
  210. package/build/contexts/Focus/getInitialFocusTarget.js +44 -0
  211. package/build/contexts/Focus/getInitialFocusTarget.js.map +1 -0
  212. package/build/contexts/Focus/index.d.ts +2 -2
  213. package/build/{packages/react-day-picker/src/contexts/Focus/index.d.ts → contexts/Focus/index.js} +3 -2
  214. package/build/contexts/Focus/index.js.map +1 -0
  215. package/build/contexts/Focus/useFocus.d.ts +3 -3
  216. package/build/contexts/Focus/useFocus.js +9 -12
  217. package/build/contexts/Focus/useFocus.js.map +1 -1
  218. package/build/contexts/Modifiers/ModifiersContext.d.ts +9 -0
  219. package/build/contexts/Modifiers/ModifiersContext.js +20 -0
  220. package/build/contexts/Modifiers/ModifiersContext.js.map +1 -0
  221. package/build/contexts/Modifiers/index.d.ts +2 -0
  222. package/build/contexts/Modifiers/index.js +3 -0
  223. package/build/contexts/Modifiers/index.js.map +1 -0
  224. package/build/contexts/Modifiers/useModifiers.d.ts +3 -0
  225. package/build/contexts/Modifiers/useModifiers.js +11 -0
  226. package/build/contexts/Modifiers/useModifiers.js.map +1 -0
  227. package/build/contexts/Modifiers/utils/getCustomModifiers.d.ts +4 -0
  228. package/build/contexts/Modifiers/utils/getCustomModifiers.js +11 -0
  229. package/build/contexts/Modifiers/utils/getCustomModifiers.js.map +1 -0
  230. package/build/contexts/Modifiers/utils/getInternalModifiers.d.ts +6 -0
  231. package/build/contexts/Modifiers/utils/getInternalModifiers.js +34 -0
  232. package/build/contexts/Modifiers/utils/getInternalModifiers.js.map +1 -0
  233. package/build/contexts/Modifiers/utils/toMatcherArray.d.ts +2 -0
  234. package/build/contexts/Modifiers/utils/toMatcherArray.js +12 -0
  235. package/build/contexts/Modifiers/utils/toMatcherArray.js.map +1 -0
  236. package/build/contexts/Navigation/NavigationContext.d.ts +24 -24
  237. package/build/contexts/Navigation/NavigationContext.js +26 -30
  238. package/build/contexts/Navigation/NavigationContext.js.map +1 -1
  239. package/build/contexts/Navigation/index.d.ts +2 -2
  240. package/build/{packages/react-day-picker/src/contexts/Navigation/index.d.ts → contexts/Navigation/index.js} +3 -2
  241. package/build/contexts/Navigation/index.js.map +1 -0
  242. package/build/contexts/Navigation/useNavigation.d.ts +3 -3
  243. package/build/contexts/Navigation/useNavigation.js +9 -12
  244. package/build/contexts/Navigation/useNavigation.js.map +1 -1
  245. package/build/contexts/Navigation/useNavigationState.d.ts +7 -7
  246. package/build/contexts/Navigation/useNavigationState.js +15 -19
  247. package/build/contexts/Navigation/useNavigationState.js.map +1 -1
  248. package/build/contexts/Navigation/utils/getDisplayMonths.d.ts +8 -8
  249. package/build/contexts/Navigation/utils/getDisplayMonths.js +19 -22
  250. package/build/contexts/Navigation/utils/getDisplayMonths.js.map +1 -1
  251. package/build/contexts/Navigation/utils/getInitialMonth.d.ts +3 -3
  252. package/build/contexts/Navigation/utils/getInitialMonth.js +17 -20
  253. package/build/contexts/Navigation/utils/getInitialMonth.js.map +1 -1
  254. package/build/contexts/Navigation/utils/getNextMonth.d.ts +18 -18
  255. package/build/contexts/Navigation/utils/getNextMonth.js +28 -31
  256. package/build/contexts/Navigation/utils/getNextMonth.js.map +1 -1
  257. package/build/contexts/Navigation/utils/getPreviousMonth.d.ts +19 -19
  258. package/build/contexts/Navigation/utils/getPreviousMonth.js +29 -32
  259. package/build/contexts/Navigation/utils/getPreviousMonth.js.map +1 -1
  260. package/build/contexts/RootProvider.d.ts +8 -8
  261. package/build/contexts/RootProvider.js +19 -20
  262. package/build/contexts/RootProvider.js.map +1 -1
  263. package/build/contexts/SelectMultiple/SelectMultipleContext.d.ts +35 -32
  264. package/build/contexts/SelectMultiple/SelectMultipleContext.js +73 -79
  265. package/build/contexts/SelectMultiple/SelectMultipleContext.js.map +1 -1
  266. package/build/contexts/SelectMultiple/index.d.ts +2 -2
  267. package/build/{packages/react-day-picker/src/contexts/SelectMultiple/index.d.ts → contexts/SelectMultiple/index.js} +3 -2
  268. package/build/contexts/SelectMultiple/index.js.map +1 -0
  269. package/build/contexts/SelectMultiple/useSelectMultiple.d.ts +3 -3
  270. package/build/contexts/SelectMultiple/useSelectMultiple.js +9 -12
  271. package/build/contexts/SelectMultiple/useSelectMultiple.js.map +1 -1
  272. package/build/contexts/SelectRange/SelectRangeContext.d.ts +36 -32
  273. package/build/contexts/SelectRange/SelectRangeContext.js +115 -121
  274. package/build/contexts/SelectRange/SelectRangeContext.js.map +1 -1
  275. package/build/contexts/SelectRange/index.d.ts +2 -2
  276. package/build/{packages/react-day-picker/src/contexts/SelectRange/index.d.ts → contexts/SelectRange/index.js} +3 -2
  277. package/build/contexts/SelectRange/index.js.map +1 -0
  278. package/build/contexts/SelectRange/useSelectRange.d.ts +3 -3
  279. package/build/contexts/SelectRange/useSelectRange.js +9 -12
  280. package/build/contexts/SelectRange/useSelectRange.js.map +1 -1
  281. package/build/contexts/SelectRange/utils/addToRange.d.ts +8 -8
  282. package/build/contexts/SelectRange/utils/addToRange.js +35 -38
  283. package/build/contexts/SelectRange/utils/addToRange.js.map +1 -1
  284. package/build/contexts/SelectSingle/SelectSingleContext.d.ts +30 -35
  285. package/build/contexts/SelectSingle/SelectSingleContext.js +34 -43
  286. package/build/contexts/SelectSingle/SelectSingleContext.js.map +1 -1
  287. package/build/contexts/SelectSingle/index.d.ts +2 -2
  288. package/build/{packages/react-day-picker/src/contexts/SelectSingle/index.d.ts → contexts/SelectSingle/index.js} +3 -2
  289. package/build/contexts/SelectSingle/index.js.map +1 -0
  290. package/build/contexts/SelectSingle/useSelectSingle.d.ts +3 -3
  291. package/build/contexts/SelectSingle/useSelectSingle.js +9 -12
  292. package/build/contexts/SelectSingle/useSelectSingle.js.map +1 -1
  293. package/build/hooks/useControlledValue/index.d.ts +1 -1
  294. package/build/{packages/react-day-picker/src/hooks/useControlledValue/index.d.ts → hooks/useControlledValue/index.js} +2 -1
  295. package/build/hooks/useControlledValue/index.js.map +1 -0
  296. package/build/hooks/useControlledValue/useControlledValue.d.ts +12 -12
  297. package/build/hooks/useControlledValue/useControlledValue.js +14 -17
  298. package/build/hooks/useControlledValue/useControlledValue.js.map +1 -1
  299. package/build/hooks/useDayModifiers/index.d.ts +1 -0
  300. package/build/hooks/useDayModifiers/index.js +2 -0
  301. package/build/hooks/useDayModifiers/index.js.map +1 -0
  302. package/build/hooks/{useModifiers/types/UseModifiers.d.ts → useDayModifiers/useDayModifiers.d.ts} +12 -10
  303. package/build/hooks/useDayModifiers/useDayModifiers.js +34 -0
  304. package/build/hooks/useDayModifiers/useDayModifiers.js.map +1 -0
  305. package/build/{packages/react-day-picker/src/hooks/useModifiers → hooks/useDayModifiers}/utils/getModifierStatus.d.ts +7 -7
  306. package/build/hooks/{useModifiers → useDayModifiers}/utils/getModifierStatus.js +18 -21
  307. package/build/hooks/useDayModifiers/utils/getModifierStatus.js.map +1 -0
  308. package/build/hooks/{useModifiers → useDayModifiers}/utils/isDateInRange.d.ts +3 -3
  309. package/build/hooks/{useModifiers → useDayModifiers}/utils/isDateInRange.js +21 -24
  310. package/build/hooks/useDayModifiers/utils/isDateInRange.js.map +1 -0
  311. package/build/{packages/react-day-picker/src/hooks/useModifiers → hooks/useDayModifiers}/utils/isMatch.d.ts +5 -5
  312. package/build/hooks/{useModifiers → useDayModifiers}/utils/isMatch.js +48 -51
  313. package/build/hooks/useDayModifiers/utils/isMatch.js.map +1 -0
  314. package/build/hooks/useInput/index.d.ts +1 -1
  315. package/build/hooks/useInput/index.js +2 -0
  316. package/build/hooks/useInput/index.js.map +1 -0
  317. package/build/hooks/useInput/useInput.d.ts +28 -28
  318. package/build/hooks/useInput/useInput.js +95 -98
  319. package/build/hooks/useInput/useInput.js.map +1 -1
  320. package/build/hooks/useInput/utils/isValidDate.d.ts +2 -2
  321. package/build/hooks/useInput/utils/isValidDate.js +4 -6
  322. package/build/hooks/useInput/utils/isValidDate.js.map +1 -1
  323. package/build/index.d.ts +33 -0
  324. package/build/index.js +35 -0
  325. package/build/index.js.map +1 -0
  326. package/build/types/DayPicker.d.ts +241 -225
  327. package/build/types/DayPicker.js +2 -0
  328. package/build/types/DayPicker.js.map +1 -0
  329. package/build/types/DayPickerCustom.d.ts +9 -11
  330. package/build/types/DayPickerCustom.js +4 -6
  331. package/build/types/DayPickerCustom.js.map +1 -1
  332. package/build/types/DayPickerMultiple.d.ts +16 -16
  333. package/build/types/DayPickerMultiple.js +4 -6
  334. package/build/types/DayPickerMultiple.js.map +1 -1
  335. package/build/types/DayPickerRange.d.ts +17 -17
  336. package/build/types/DayPickerRange.js +4 -6
  337. package/build/types/DayPickerRange.js.map +1 -1
  338. package/build/types/DayPickerSingle.d.ts +14 -14
  339. package/build/types/DayPickerSingle.js +4 -6
  340. package/build/types/DayPickerSingle.js.map +1 -1
  341. package/build/types/EventHandlers.d.ts +51 -51
  342. package/build/types/EventHandlers.js +2 -0
  343. package/build/types/EventHandlers.js.map +1 -0
  344. package/build/types/Formatters.d.ts +24 -24
  345. package/build/types/Formatters.js +2 -0
  346. package/build/types/Formatters.js.map +1 -0
  347. package/build/types/Labels.d.ts +28 -28
  348. package/build/types/Labels.js +2 -0
  349. package/build/types/Labels.js.map +1 -0
  350. package/build/types/Matchers.d.ts +34 -34
  351. package/build/types/Matchers.js +24 -26
  352. package/build/types/Matchers.js.map +1 -1
  353. package/build/types/Modifiers.d.ts +38 -16
  354. package/build/types/Modifiers.js +19 -0
  355. package/build/types/Modifiers.js.map +1 -0
  356. package/build/types/Styles.d.ts +85 -85
  357. package/build/types/Styles.js +2 -0
  358. package/build/types/Styles.js.map +1 -0
  359. package/{build/packages/react-day-picker/src/DayPicker.d.ts → dist/DayPicker.js} +99 -89
  360. package/dist/DayPicker.js.map +1 -0
  361. package/dist/components/Button/Button.js +23 -0
  362. package/dist/components/Button/Button.js.map +1 -0
  363. package/dist/components/Button/index.js +5 -0
  364. package/dist/components/Button/index.js.map +1 -0
  365. package/dist/components/Caption/Caption.js +67 -0
  366. package/dist/components/Caption/Caption.js.map +1 -0
  367. package/dist/components/Caption/index.js +5 -0
  368. package/dist/components/Caption/index.js.map +1 -0
  369. package/dist/components/CaptionLabel/CaptionLabel.js +13 -0
  370. package/dist/components/CaptionLabel/CaptionLabel.js.map +1 -0
  371. package/dist/components/CaptionLabel/index.js +5 -0
  372. package/dist/components/CaptionLabel/index.js.map +1 -0
  373. package/dist/components/Day/Day.js +25 -0
  374. package/dist/components/Day/Day.js.map +1 -0
  375. package/dist/components/Day/hooks/index.js +5 -0
  376. package/dist/components/Day/hooks/index.js.map +1 -0
  377. package/dist/components/Day/hooks/useDay.js +173 -0
  378. package/dist/components/Day/hooks/useDay.js.map +1 -0
  379. package/dist/components/Day/hooks/useDayFocus.js +70 -0
  380. package/dist/components/Day/hooks/useDayFocus.js.map +1 -0
  381. package/dist/components/Day/index.js +6 -0
  382. package/dist/components/Day/index.js.map +1 -0
  383. package/dist/components/DayContent/DayContent.js +17 -0
  384. package/dist/components/DayContent/DayContent.js.map +1 -0
  385. package/dist/components/DayContent/index.js +5 -0
  386. package/dist/components/DayContent/index.js.map +1 -0
  387. package/dist/components/Dropdown/Dropdown.js +22 -0
  388. package/dist/components/Dropdown/Dropdown.js.map +1 -0
  389. package/dist/components/Dropdown/index.js +5 -0
  390. package/dist/components/Dropdown/index.js.map +1 -0
  391. package/dist/components/Footer/Footer.js +17 -0
  392. package/dist/components/Footer/Footer.js.map +1 -0
  393. package/dist/components/Footer/index.js +5 -0
  394. package/dist/components/Footer/index.js.map +1 -0
  395. package/dist/components/Head/Head.js +22 -0
  396. package/dist/components/Head/Head.js.map +1 -0
  397. package/dist/components/Head/index.js +5 -0
  398. package/dist/components/Head/index.js.map +1 -0
  399. package/dist/components/Head/utils/getWeekdays.js +19 -0
  400. package/dist/components/Head/utils/getWeekdays.js.map +1 -0
  401. package/dist/components/Head/utils/index.js +5 -0
  402. package/dist/components/Head/utils/index.js.map +1 -0
  403. package/dist/components/IconDropdown/IconDropdown.js +14 -0
  404. package/dist/components/IconDropdown/IconDropdown.js.map +1 -0
  405. package/dist/components/IconDropdown/index.js +5 -0
  406. package/dist/components/IconDropdown/index.js.map +1 -0
  407. package/dist/components/IconLeft/IconLeft.js +14 -0
  408. package/dist/components/IconLeft/IconLeft.js.map +1 -0
  409. package/dist/components/IconLeft/index.js +5 -0
  410. package/dist/components/IconLeft/index.js.map +1 -0
  411. package/dist/components/IconRight/IconRight.js +14 -0
  412. package/dist/components/IconRight/IconRight.js.map +1 -0
  413. package/dist/components/IconRight/index.js +5 -0
  414. package/dist/components/IconRight/index.js.map +1 -0
  415. package/dist/components/Month/Month.js +41 -0
  416. package/dist/components/Month/Month.js.map +1 -0
  417. package/dist/components/Month/index.js +5 -0
  418. package/dist/components/Month/index.js.map +1 -0
  419. package/dist/components/MonthsDropdown/MonthsDropdown.js +41 -0
  420. package/dist/components/MonthsDropdown/MonthsDropdown.js.map +1 -0
  421. package/dist/components/MonthsDropdown/index.js +5 -0
  422. package/dist/components/MonthsDropdown/index.js.map +1 -0
  423. package/dist/components/Navigation/Navigation.js +35 -0
  424. package/dist/components/Navigation/Navigation.js.map +1 -0
  425. package/dist/components/Navigation/index.js +5 -0
  426. package/dist/components/Navigation/index.js.map +1 -0
  427. package/dist/components/Root/Root.js +36 -0
  428. package/dist/components/Root/Root.js.map +1 -0
  429. package/dist/components/Root/index.js +5 -0
  430. package/dist/components/Root/index.js.map +1 -0
  431. package/dist/components/Row/Row.js +24 -0
  432. package/dist/components/Row/Row.js.map +1 -0
  433. package/dist/components/Row/index.js +5 -0
  434. package/dist/components/Row/index.js.map +1 -0
  435. package/dist/components/Table/Table.js +20 -0
  436. package/dist/components/Table/Table.js.map +1 -0
  437. package/dist/components/Table/index.js +5 -0
  438. package/dist/components/Table/index.js.map +1 -0
  439. package/dist/components/Table/utils/getOutsideEndDays.js +16 -0
  440. package/dist/components/Table/utils/getOutsideEndDays.js.map +1 -0
  441. package/dist/components/Table/utils/getOutsideStartDays.js +16 -0
  442. package/dist/components/Table/utils/getOutsideStartDays.js.map +1 -0
  443. package/dist/components/Table/utils/getWeeks.js +51 -0
  444. package/dist/components/Table/utils/getWeeks.js.map +1 -0
  445. package/dist/components/WeekNumber/WeekNumber.js +26 -0
  446. package/dist/components/WeekNumber/WeekNumber.js.map +1 -0
  447. package/dist/components/WeekNumber/index.js +5 -0
  448. package/dist/components/WeekNumber/index.js.map +1 -0
  449. package/dist/components/YearsDropdown/YearsDropdown.js +30 -0
  450. package/dist/components/YearsDropdown/YearsDropdown.js.map +1 -0
  451. package/dist/components/YearsDropdown/index.js +5 -0
  452. package/dist/components/YearsDropdown/index.js.map +1 -0
  453. package/dist/contexts/DayPicker/DayPickerContext.js +57 -0
  454. package/dist/contexts/DayPicker/DayPickerContext.js.map +1 -0
  455. package/dist/contexts/DayPicker/DayPickerProvider.js +49 -0
  456. package/dist/contexts/DayPicker/DayPickerProvider.js.map +1 -0
  457. package/dist/contexts/DayPicker/defaultClassNames.js +43 -0
  458. package/dist/contexts/DayPicker/defaultClassNames.js.map +1 -0
  459. package/dist/contexts/DayPicker/defaultContextValues.js +65 -0
  460. package/dist/contexts/DayPicker/defaultContextValues.js.map +1 -0
  461. package/dist/contexts/DayPicker/formatters/formatCaption.js +12 -0
  462. package/dist/contexts/DayPicker/formatters/formatCaption.js.map +1 -0
  463. package/dist/contexts/DayPicker/formatters/formatDay.js +12 -0
  464. package/dist/contexts/DayPicker/formatters/formatDay.js.map +1 -0
  465. package/dist/contexts/DayPicker/formatters/formatMonthCaption.js +12 -0
  466. package/dist/contexts/DayPicker/formatters/formatMonthCaption.js.map +1 -0
  467. package/dist/contexts/DayPicker/formatters/formatWeekNumber.js +11 -0
  468. package/dist/contexts/DayPicker/formatters/formatWeekNumber.js.map +1 -0
  469. package/dist/contexts/DayPicker/formatters/formatWeekdayName.js +12 -0
  470. package/dist/contexts/DayPicker/formatters/formatWeekdayName.js.map +1 -0
  471. package/dist/contexts/DayPicker/formatters/formatYearCaption.js +12 -0
  472. package/dist/contexts/DayPicker/formatters/formatYearCaption.js.map +1 -0
  473. package/dist/contexts/DayPicker/formatters/index.js +10 -0
  474. package/dist/contexts/DayPicker/formatters/index.js.map +1 -0
  475. package/dist/contexts/DayPicker/index.js +6 -0
  476. package/dist/contexts/DayPicker/index.js.map +1 -0
  477. package/dist/contexts/DayPicker/labels/index.js +11 -0
  478. package/dist/contexts/DayPicker/labels/index.js.map +1 -0
  479. package/dist/contexts/DayPicker/labels/labelDay.js +12 -0
  480. package/dist/contexts/DayPicker/labels/labelDay.js.map +1 -0
  481. package/dist/contexts/DayPicker/labels/labelMonthDropdown.js +11 -0
  482. package/dist/contexts/DayPicker/labels/labelMonthDropdown.js.map +1 -0
  483. package/dist/contexts/DayPicker/labels/labelNext.js +11 -0
  484. package/dist/contexts/DayPicker/labels/labelNext.js.map +1 -0
  485. package/dist/contexts/DayPicker/labels/labelPrevious.js +11 -0
  486. package/dist/contexts/DayPicker/labels/labelPrevious.js.map +1 -0
  487. package/dist/contexts/DayPicker/labels/labelWeekNumber.js +11 -0
  488. package/dist/contexts/DayPicker/labels/labelWeekNumber.js.map +1 -0
  489. package/dist/contexts/DayPicker/labels/labelWeekday.js +12 -0
  490. package/dist/contexts/DayPicker/labels/labelWeekday.js.map +1 -0
  491. package/dist/contexts/DayPicker/labels/labelYearDropdown.js +11 -0
  492. package/dist/contexts/DayPicker/labels/labelYearDropdown.js.map +1 -0
  493. package/dist/contexts/DayPicker/useDayPicker.js +21 -0
  494. package/dist/contexts/DayPicker/useDayPicker.js.map +1 -0
  495. package/dist/contexts/DayPicker/utils/index.js +5 -0
  496. package/dist/contexts/DayPicker/utils/index.js.map +1 -0
  497. package/dist/contexts/DayPicker/utils/parseFromToProps.js +30 -0
  498. package/dist/contexts/DayPicker/utils/parseFromToProps.js.map +1 -0
  499. package/dist/contexts/Focus/FocusContext.js +136 -0
  500. package/dist/contexts/Focus/FocusContext.js.map +1 -0
  501. package/dist/contexts/Focus/getInitialFocusTarget.js +48 -0
  502. package/dist/contexts/Focus/getInitialFocusTarget.js.map +1 -0
  503. package/dist/contexts/Focus/index.js +6 -0
  504. package/dist/contexts/Focus/index.js.map +1 -0
  505. package/dist/contexts/Focus/useFocus.js +16 -0
  506. package/dist/contexts/Focus/useFocus.js.map +1 -0
  507. package/dist/contexts/Modifiers/ModifiersContext.js +65 -0
  508. package/dist/contexts/Modifiers/ModifiersContext.js.map +1 -0
  509. package/dist/contexts/Modifiers/index.js +6 -0
  510. package/dist/contexts/Modifiers/index.js.map +1 -0
  511. package/dist/contexts/Modifiers/useModifiers.js +16 -0
  512. package/dist/contexts/Modifiers/useModifiers.js.map +1 -0
  513. package/dist/contexts/Modifiers/utils/getCustomModifiers.js +15 -0
  514. package/dist/contexts/Modifiers/utils/getCustomModifiers.js.map +1 -0
  515. package/dist/contexts/Modifiers/utils/getInternalModifiers.js +39 -0
  516. package/dist/contexts/Modifiers/utils/getInternalModifiers.js.map +1 -0
  517. package/dist/contexts/Modifiers/utils/matcherToArray.js +17 -0
  518. package/dist/contexts/Modifiers/utils/matcherToArray.js.map +1 -0
  519. package/dist/contexts/Modifiers/utils/toMatcherArray.js +16 -0
  520. package/dist/contexts/Modifiers/utils/toMatcherArray.js.map +1 -0
  521. package/dist/contexts/Navigation/NavigationContext.js +33 -0
  522. package/dist/contexts/Navigation/NavigationContext.js.map +1 -0
  523. package/dist/contexts/Navigation/index.js +6 -0
  524. package/dist/contexts/Navigation/index.js.map +1 -0
  525. package/dist/contexts/Navigation/useNavigation.js +16 -0
  526. package/dist/contexts/Navigation/useNavigation.js.map +1 -0
  527. package/dist/contexts/Navigation/useNavigationState.js +20 -0
  528. package/dist/contexts/Navigation/useNavigationState.js.map +1 -0
  529. package/dist/contexts/Navigation/utils/getDisplayMonths.js +24 -0
  530. package/dist/contexts/Navigation/utils/getDisplayMonths.js.map +1 -0
  531. package/dist/contexts/Navigation/utils/getInitialMonth.js +22 -0
  532. package/dist/contexts/Navigation/utils/getInitialMonth.js.map +1 -0
  533. package/dist/contexts/Navigation/utils/getNextMonth.js +33 -0
  534. package/dist/contexts/Navigation/utils/getNextMonth.js.map +1 -0
  535. package/dist/contexts/Navigation/utils/getPreviousMonth.js +34 -0
  536. package/dist/contexts/Navigation/utils/getPreviousMonth.js.map +1 -0
  537. package/dist/contexts/RootProvider.js +25 -0
  538. package/dist/contexts/RootProvider.js.map +1 -0
  539. package/dist/contexts/SelectMultiple/SelectMultipleContext.js +81 -0
  540. package/dist/contexts/SelectMultiple/SelectMultipleContext.js.map +1 -0
  541. package/dist/contexts/SelectMultiple/index.js +6 -0
  542. package/dist/contexts/SelectMultiple/index.js.map +1 -0
  543. package/dist/contexts/SelectMultiple/useSelectMultiple.js +16 -0
  544. package/dist/contexts/SelectMultiple/useSelectMultiple.js.map +1 -0
  545. package/dist/contexts/SelectRange/SelectRangeContext.js +123 -0
  546. package/dist/contexts/SelectRange/SelectRangeContext.js.map +1 -0
  547. package/dist/contexts/SelectRange/index.js +6 -0
  548. package/dist/contexts/SelectRange/index.js.map +1 -0
  549. package/dist/contexts/SelectRange/useSelectRange.js +16 -0
  550. package/dist/contexts/SelectRange/useSelectRange.js.map +1 -0
  551. package/dist/contexts/SelectRange/utils/addToRange.js +40 -0
  552. package/dist/contexts/SelectRange/utils/addToRange.js.map +1 -0
  553. package/dist/contexts/SelectSingle/SelectSingleContext.js +42 -0
  554. package/dist/contexts/SelectSingle/SelectSingleContext.js.map +1 -0
  555. package/dist/contexts/SelectSingle/index.js +6 -0
  556. package/dist/contexts/SelectSingle/index.js.map +1 -0
  557. package/dist/contexts/SelectSingle/useSelectSingle.js +16 -0
  558. package/dist/contexts/SelectSingle/useSelectSingle.js.map +1 -0
  559. package/dist/hooks/useControlledValue/index.js +5 -0
  560. package/dist/hooks/useControlledValue/index.js.map +1 -0
  561. package/dist/hooks/useControlledValue/useControlledValue.js +21 -0
  562. package/dist/hooks/useControlledValue/useControlledValue.js.map +1 -0
  563. package/dist/hooks/useDayModifiers/index.js +5 -0
  564. package/dist/hooks/useDayModifiers/index.js.map +1 -0
  565. package/dist/hooks/useDayModifiers/useDayModifiers.js +38 -0
  566. package/dist/hooks/useDayModifiers/useDayModifiers.js.map +1 -0
  567. package/dist/hooks/useDayModifiers/utils/getModifierStatus.js +23 -0
  568. package/dist/hooks/useDayModifiers/utils/getModifierStatus.js.map +1 -0
  569. package/dist/hooks/useDayModifiers/utils/isDateInRange.js +26 -0
  570. package/dist/hooks/useDayModifiers/utils/isDateInRange.js.map +1 -0
  571. package/dist/hooks/useDayModifiers/utils/isMatch.js +53 -0
  572. package/dist/hooks/useDayModifiers/utils/isMatch.js.map +1 -0
  573. package/dist/hooks/useInput/index.js +5 -0
  574. package/dist/hooks/useInput/index.js.map +1 -0
  575. package/dist/hooks/useInput/useInput.js +103 -0
  576. package/dist/hooks/useInput/useInput.js.map +1 -0
  577. package/dist/hooks/useInput/utils/isValidDate.js +9 -0
  578. package/dist/hooks/useInput/utils/isValidDate.js.map +1 -0
  579. package/dist/index.js +38 -0
  580. package/dist/index.js.map +1 -0
  581. package/dist/types/DayPicker.js +3 -0
  582. package/dist/types/DayPicker.js.map +1 -0
  583. package/dist/types/DayPickerCustom.js +9 -0
  584. package/dist/types/DayPickerCustom.js.map +1 -0
  585. package/dist/types/DayPickerMultiple.js +9 -0
  586. package/dist/types/DayPickerMultiple.js.map +1 -0
  587. package/dist/types/DayPickerRange.js +9 -0
  588. package/dist/types/DayPickerRange.js.map +1 -0
  589. package/dist/types/DayPickerSingle.js +9 -0
  590. package/dist/types/DayPickerSingle.js.map +1 -0
  591. package/dist/types/EventHandlers.js +3 -0
  592. package/dist/types/EventHandlers.js.map +1 -0
  593. package/dist/types/Formatters.js +3 -0
  594. package/dist/types/Formatters.js.map +1 -0
  595. package/dist/types/Labels.js +3 -0
  596. package/dist/types/Labels.js.map +1 -0
  597. package/dist/types/Matchers.js +33 -0
  598. package/dist/types/Matchers.js.map +1 -0
  599. package/dist/types/Modifiers.js +3 -0
  600. package/dist/types/Modifiers.js.map +1 -0
  601. package/dist/types/Styles.js +3 -0
  602. package/dist/types/Styles.js.map +1 -0
  603. package/package.json +22 -10
  604. package/style.css +21 -10
  605. package/style.css.d.ts +2 -2
  606. package/build/_virtual/_tslib.js +0 -50
  607. package/build/_virtual/_tslib.js.map +0 -1
  608. package/build/components/index.d.ts +0 -13
  609. package/build/contexts/DayPicker/DayPickerProvider.d.ts +0 -12
  610. package/build/contexts/DayPicker/DayPickerProvider.js +0 -59
  611. package/build/contexts/DayPicker/DayPickerProvider.js.map +0 -1
  612. package/build/contexts/DayPicker/utils/parseModifierProps.d.ts +0 -8
  613. package/build/contexts/DayPicker/utils/parseModifierProps.js +0 -53
  614. package/build/contexts/DayPicker/utils/parseModifierProps.js.map +0 -1
  615. package/build/contexts/index.d.ts +0 -7
  616. package/build/hooks/index.d.ts +0 -1
  617. package/build/hooks/useModifiers/index.d.ts +0 -1
  618. package/build/hooks/useModifiers/types/index.d.ts +0 -1
  619. package/build/hooks/useModifiers/useModifiers.d.ts +0 -3
  620. package/build/hooks/useModifiers/useModifiers.js +0 -66
  621. package/build/hooks/useModifiers/useModifiers.js.map +0 -1
  622. package/build/hooks/useModifiers/utils/getModifierStatus.d.ts +0 -7
  623. package/build/hooks/useModifiers/utils/getModifierStatus.js.map +0 -1
  624. package/build/hooks/useModifiers/utils/isDateInRange.js.map +0 -1
  625. package/build/hooks/useModifiers/utils/isMatch.d.ts +0 -5
  626. package/build/hooks/useModifiers/utils/isMatch.js.map +0 -1
  627. package/build/main.d.ts +0 -5
  628. package/build/main.js +0 -35
  629. package/build/main.js.map +0 -1
  630. package/build/packages/react-day-picker/src/components/Button/Button.d.ts +0 -7
  631. package/build/packages/react-day-picker/src/components/Button/index.d.ts +0 -1
  632. package/build/packages/react-day-picker/src/components/Caption/Caption.d.ts +0 -18
  633. package/build/packages/react-day-picker/src/components/Caption/index.d.ts +0 -1
  634. package/build/packages/react-day-picker/src/components/CaptionLabel/CaptionLabel.d.ts +0 -8
  635. package/build/packages/react-day-picker/src/components/CaptionLabel/index.d.ts +0 -1
  636. package/build/packages/react-day-picker/src/components/Day/Day.d.ts +0 -13
  637. package/build/packages/react-day-picker/src/components/Day/hooks/index.d.ts +0 -1
  638. package/build/packages/react-day-picker/src/components/Day/hooks/useDay.d.ts +0 -58
  639. package/build/packages/react-day-picker/src/components/Day/hooks/useDayFocus.d.ts +0 -8
  640. package/build/packages/react-day-picker/src/components/DayContent/DayContent.d.ts +0 -15
  641. package/build/packages/react-day-picker/src/components/DayContent/index.d.ts +0 -1
  642. package/build/packages/react-day-picker/src/components/Dropdown/Dropdown.d.ts +0 -16
  643. package/build/packages/react-day-picker/src/components/Dropdown/index.d.ts +0 -1
  644. package/build/packages/react-day-picker/src/components/Footer/Footer.d.ts +0 -3
  645. package/build/packages/react-day-picker/src/components/Footer/index.d.ts +0 -1
  646. package/build/packages/react-day-picker/src/components/Head/Head.d.ts +0 -5
  647. package/build/packages/react-day-picker/src/components/Head/index.d.ts +0 -1
  648. package/build/packages/react-day-picker/src/components/Head/utils/getWeekdays.d.ts +0 -6
  649. package/build/packages/react-day-picker/src/components/Head/utils/index.d.ts +0 -1
  650. package/build/packages/react-day-picker/src/components/IconDropdown/IconDropdown.d.ts +0 -6
  651. package/build/packages/react-day-picker/src/components/IconDropdown/index.d.ts +0 -1
  652. package/build/packages/react-day-picker/src/components/IconLeft/IconLeft.d.ts +0 -6
  653. package/build/packages/react-day-picker/src/components/IconLeft/index.d.ts +0 -1
  654. package/build/packages/react-day-picker/src/components/IconRight/IconRight.d.ts +0 -6
  655. package/build/packages/react-day-picker/src/components/IconRight/index.d.ts +0 -1
  656. package/build/packages/react-day-picker/src/components/MonthsDropdown/MonthsDropdown.d.ts +0 -12
  657. package/build/packages/react-day-picker/src/components/Navigation/Navigation.d.ts +0 -20
  658. package/build/packages/react-day-picker/src/components/Navigation/index.d.ts +0 -1
  659. package/build/packages/react-day-picker/src/components/Root/Root.d.ts +0 -6
  660. package/build/packages/react-day-picker/src/components/Root/index.d.ts +0 -1
  661. package/build/packages/react-day-picker/src/components/Row/Row.d.ts +0 -16
  662. package/build/packages/react-day-picker/src/components/Row/index.d.ts +0 -1
  663. package/build/packages/react-day-picker/src/components/Table/Table.d.ts +0 -12
  664. package/build/packages/react-day-picker/src/components/Table/index.d.ts +0 -1
  665. package/build/packages/react-day-picker/src/components/Table/utils/getOutsideEndDays.d.ts +0 -3
  666. package/build/packages/react-day-picker/src/components/Table/utils/getOutsideStartDays.d.ts +0 -4
  667. package/build/packages/react-day-picker/src/components/Table/utils/getWeeks.d.ts +0 -17
  668. package/build/packages/react-day-picker/src/components/WeekNumber/WeekNumber.d.ts +0 -15
  669. package/build/packages/react-day-picker/src/components/WeekNumber/index.d.ts +0 -1
  670. package/build/packages/react-day-picker/src/components/YearsDropdown/YearsDropdown.d.ts +0 -16
  671. package/build/packages/react-day-picker/src/components/index.d.ts +0 -13
  672. package/build/packages/react-day-picker/src/contexts/DayPicker/DayPickerContext.d.ts +0 -31
  673. package/build/packages/react-day-picker/src/contexts/DayPicker/DayPickerProvider.d.ts +0 -12
  674. package/build/packages/react-day-picker/src/contexts/DayPicker/defaultClassNames.d.ts +0 -5
  675. package/build/packages/react-day-picker/src/contexts/DayPicker/formatters/formatCaption.d.ts +0 -7
  676. package/build/packages/react-day-picker/src/contexts/DayPicker/formatters/formatDay.d.ts +0 -7
  677. package/build/packages/react-day-picker/src/contexts/DayPicker/formatters/formatMonthCaption.d.ts +0 -7
  678. package/build/packages/react-day-picker/src/contexts/DayPicker/formatters/formatWeekNumber.d.ts +0 -4
  679. package/build/packages/react-day-picker/src/contexts/DayPicker/formatters/formatWeekdayName.d.ts +0 -7
  680. package/build/packages/react-day-picker/src/contexts/DayPicker/formatters/formatYearCaption.d.ts +0 -6
  681. package/build/packages/react-day-picker/src/contexts/DayPicker/formatters/index.d.ts +0 -6
  682. package/build/packages/react-day-picker/src/contexts/DayPicker/labels/index.d.ts +0 -7
  683. package/build/packages/react-day-picker/src/contexts/DayPicker/labels/labelDay.d.ts +0 -5
  684. package/build/packages/react-day-picker/src/contexts/DayPicker/labels/labelMonthDropdown.d.ts +0 -4
  685. package/build/packages/react-day-picker/src/contexts/DayPicker/labels/labelNext.d.ts +0 -5
  686. package/build/packages/react-day-picker/src/contexts/DayPicker/labels/labelPrevious.d.ts +0 -5
  687. package/build/packages/react-day-picker/src/contexts/DayPicker/labels/labelWeekNumber.d.ts +0 -5
  688. package/build/packages/react-day-picker/src/contexts/DayPicker/labels/labelWeekday.d.ts +0 -5
  689. package/build/packages/react-day-picker/src/contexts/DayPicker/labels/labelYearDropdown.d.ts +0 -4
  690. package/build/packages/react-day-picker/src/contexts/DayPicker/useDayPicker.d.ts +0 -8
  691. package/build/packages/react-day-picker/src/contexts/DayPicker/utils/index.d.ts +0 -2
  692. package/build/packages/react-day-picker/src/contexts/DayPicker/utils/parseFromToProps.d.ts +0 -9
  693. package/build/packages/react-day-picker/src/contexts/DayPicker/utils/parseModifierProps.d.ts +0 -8
  694. package/build/packages/react-day-picker/src/contexts/Focus/FocusContext.d.ts +0 -30
  695. package/build/packages/react-day-picker/src/contexts/Focus/useFocus.d.ts +0 -3
  696. package/build/packages/react-day-picker/src/contexts/Navigation/NavigationContext.d.ts +0 -24
  697. package/build/packages/react-day-picker/src/contexts/Navigation/useNavigation.d.ts +0 -3
  698. package/build/packages/react-day-picker/src/contexts/Navigation/useNavigationState.d.ts +0 -7
  699. package/build/packages/react-day-picker/src/contexts/Navigation/utils/getDisplayMonths.d.ts +0 -8
  700. package/build/packages/react-day-picker/src/contexts/Navigation/utils/getInitialMonth.d.ts +0 -3
  701. package/build/packages/react-day-picker/src/contexts/Navigation/utils/getNextMonth.d.ts +0 -18
  702. package/build/packages/react-day-picker/src/contexts/Navigation/utils/getPreviousMonth.d.ts +0 -19
  703. package/build/packages/react-day-picker/src/contexts/RootProvider.d.ts +0 -8
  704. package/build/packages/react-day-picker/src/contexts/SelectMultiple/SelectMultipleContext.d.ts +0 -32
  705. package/build/packages/react-day-picker/src/contexts/SelectMultiple/useSelectMultiple.d.ts +0 -3
  706. package/build/packages/react-day-picker/src/contexts/SelectRange/SelectRangeContext.d.ts +0 -32
  707. package/build/packages/react-day-picker/src/contexts/SelectRange/useSelectRange.d.ts +0 -3
  708. package/build/packages/react-day-picker/src/contexts/SelectRange/utils/addToRange.d.ts +0 -8
  709. package/build/packages/react-day-picker/src/contexts/SelectSingle/SelectSingleContext.d.ts +0 -35
  710. package/build/packages/react-day-picker/src/contexts/SelectSingle/useSelectSingle.d.ts +0 -3
  711. package/build/packages/react-day-picker/src/contexts/index.d.ts +0 -7
  712. package/build/packages/react-day-picker/src/hooks/index.d.ts +0 -1
  713. package/build/packages/react-day-picker/src/hooks/useControlledValue/useControlledValue.d.ts +0 -12
  714. package/build/packages/react-day-picker/src/hooks/useInput/index.d.ts +0 -1
  715. package/build/packages/react-day-picker/src/hooks/useInput/useInput.d.ts +0 -28
  716. package/build/packages/react-day-picker/src/hooks/useInput/utils/isValidDate.d.ts +0 -2
  717. package/build/packages/react-day-picker/src/hooks/useModifiers/index.d.ts +0 -1
  718. package/build/packages/react-day-picker/src/hooks/useModifiers/useModifiers.d.ts +0 -3
  719. package/build/packages/react-day-picker/src/hooks/useModifiers/utils/isDateInRange.d.ts +0 -3
  720. package/build/packages/react-day-picker/src/main.d.ts +0 -5
  721. package/build/packages/react-day-picker/src/types/DayPicker.d.ts +0 -225
  722. package/build/packages/react-day-picker/src/types/DayPickerCustom.d.ts +0 -11
  723. package/build/packages/react-day-picker/src/types/DayPickerMultiple.d.ts +0 -16
  724. package/build/packages/react-day-picker/src/types/DayPickerRange.d.ts +0 -17
  725. package/build/packages/react-day-picker/src/types/DayPickerSingle.d.ts +0 -14
  726. package/build/packages/react-day-picker/src/types/EventHandlers.d.ts +0 -51
  727. package/build/packages/react-day-picker/src/types/Formatters.d.ts +0 -24
  728. package/build/packages/react-day-picker/src/types/Labels.d.ts +0 -28
  729. package/build/packages/react-day-picker/src/types/Matchers.d.ts +0 -34
  730. package/build/packages/react-day-picker/src/types/Modifiers.d.ts +0 -16
  731. package/build/packages/react-day-picker/src/types/Styles.d.ts +0 -85
  732. package/build/packages/react-day-picker/src/types/index.d.ts +0 -11
  733. package/build/test/PageObjects.d.ts +0 -43
  734. package/build/test/customRender.d.ts +0 -4
  735. package/build/test/customRenderHook.d.ts +0 -3
  736. package/build/test/po.d.ts +0 -29
  737. package/build/test/setup.d.ts +0 -1
  738. package/build/test/utils.d.ts +0 -2
  739. package/build/types/index.d.ts +0 -11
  740. package/dist/main.js +0 -1960
  741. package/dist/main.js.map +0 -1
package/CHANGELOG.md CHANGED
@@ -18,6 +18,18 @@ See the preview website at https://react-day-picker-next.netlify.app.
18
18
 
19
19
  ---
20
20
 
21
+ ### v8.0.0-beta.36
22
+
23
+ - feat: added caption ARIA labels. This change introduce `@reach/auto-id` dependency (#1358) (b8bbf419)
24
+ - feat: caption element has now an heading role (uses `h2`) (#1335) (bfb77869)
25
+ - feat: improved focus support (#1343) (9d09587d)
26
+ - feat: added `initialFocus` focus prop (#1351) (8f6d979d)
27
+ - feat: table uses `grid` role (#1337) (4ae64022)
28
+ - chore: added Month component (#1327) (fc9d9136)
29
+ - chore: rename styles and elements (#1336, #1329, #1325)
30
+ - fix: fixed type `useInput`'s `setSelected` (#1344) (c8f64fdf)
31
+ - fix: missing today modifier (#1319) (c4445a4c)
32
+
21
33
  ### v8.0.0-beta.35
22
34
 
23
35
  - feat: add extended keyboard navigation (#1300) (2a098719)
@@ -1,89 +1,93 @@
1
- /// <reference types="react" />
2
- import { DayPickerCustomProps, DayPickerMultipleProps, DayPickerProps, DayPickerRangeProps, DayPickerSingleProps } from './types';
3
- /**
4
- * DayPicker render a date picker component to let users pick dates from a
5
- * calendar. See http://react-day-picker.js.org for updated documentation and
6
- * examples.
7
- *
8
- * ### Customization
9
- *
10
- * DayPicker offers different customization props. For example,
11
- *
12
- * - show multiple months using `numberOfMonths`
13
- * - display a dropdown to navigate the months via `captionLayout`
14
- * - display the week numbers with `showWeekNumbers`
15
- * - disable or hide days with `disabled` or `hidden`
16
- *
17
- * ### Controlling the months
18
- *
19
- * Change the initially displayed month using the `defaultMonth` prop. The
20
- * displayed months are controlled by DayPicker and stored in its internal
21
- * state. To control the months yourself, use `month` instead of `defaultMonth`
22
- * and use the `onMonthChange` event to set it.
23
- *
24
- * To limit the months the user can navigate to, use
25
- * `fromDate`/`fromMonth`/`fromYear` or `toDate`/`toMonth`/`toYear`.
26
- *
27
- * ### Selection modes
28
- *
29
- * DayPicker supports different selection mode that can be toggled using the
30
- * `mode` prop:
31
- *
32
- * - `mode="single"`: only one day can be selected. Use `required` to make the
33
- * selection required. Use the `onSelect` event handler to get the selected
34
- * days.
35
- * - `mode="multiple"`: users can select one or more days. Limit the amount of
36
- * days that can be selected with the `min` or the `max` props.
37
- * - `mode="range"`: users can select a range of days. Limit the amount of days
38
- * in the range with the `min` or the `max` props.
39
- * - `mode="custom"`: implement your own selection mode with `onDayClick`.
40
- *
41
- * These selection modes should cover the most common use cases. In case you
42
- * need a more refined way of selecting days, use `mode="custom"`. Use the
43
- * `selected` props and add the day event handlers to add/remove days from the
44
- * selection.
45
- *
46
- * ### Modifiers
47
- *
48
- * A _modifier_ represents different styles or states for the days displayed in
49
- * the calendar (like "selected" or "disabled"). Define custom modifiers using
50
- * the `modifiers` prop.
51
- *
52
- * ### Formatters and custom component
53
- *
54
- * You can customize how the content is displayed in the date picker by using
55
- * either the formatters or replacing the internal components.
56
- *
57
- * For the most common cases you want to use the `formatters` prop to change how
58
- * the content is formatted in the calendar. Use the `components` prop to
59
- * replace the internal components, like the navigation icons.
60
- *
61
- * ### Styling
62
- *
63
- * DayPicker comes with a default, basic style in `react-day-picker/style` – use
64
- * it as template for your own style.
65
- *
66
- * If you are using CSS modules, pass the imported styles object the
67
- * `classNames` props.
68
- *
69
- * You can also style the elements via inline-styles using the `styles` prop.
70
- *
71
- * ### Form fields
72
- *
73
- * If you need to bind the date picker to a form field, you can use the
74
- * `useInput` hooks for a basic behavior. See the `useInput` source as an
75
- * example to bind the date picker with form fields.
76
- *
77
- * ### Localization
78
- *
79
- * To localize DayPicker, import the locale from `date-fns` package and use the
80
- * `locale` prop.
81
- *
82
- * For example, to use Spanish locale:
83
- *
84
- * ```
85
- * import es from 'date-fns/locale/es';
86
- * <DayPicker locale={es} />
87
- * ```
88
- */
89
- export declare function DayPicker(props: DayPickerProps | DayPickerSingleProps | DayPickerMultipleProps | DayPickerRangeProps | DayPickerCustomProps): JSX.Element;
1
+ /// <reference types="react" />
2
+ import { DayPickerProps } from './types/DayPicker';
3
+ import { DayPickerCustomProps } from './types/DayPickerCustom';
4
+ import { DayPickerMultipleProps } from './types/DayPickerMultiple';
5
+ import { DayPickerRangeProps } from './types/DayPickerRange';
6
+ import { DayPickerSingleProps } from './types/DayPickerSingle';
7
+ /**
8
+ * DayPicker render a date picker component to let users pick dates from a
9
+ * calendar. See http://react-day-picker.js.org for updated documentation and
10
+ * examples.
11
+ *
12
+ * ### Customization
13
+ *
14
+ * DayPicker offers different customization props. For example,
15
+ *
16
+ * - show multiple months using `numberOfMonths`
17
+ * - display a dropdown to navigate the months via `captionLayout`
18
+ * - display the week numbers with `showWeekNumbers`
19
+ * - disable or hide days with `disabled` or `hidden`
20
+ *
21
+ * ### Controlling the months
22
+ *
23
+ * Change the initially displayed month using the `defaultMonth` prop. The
24
+ * displayed months are controlled by DayPicker and stored in its internal
25
+ * state. To control the months yourself, use `month` instead of `defaultMonth`
26
+ * and use the `onMonthChange` event to set it.
27
+ *
28
+ * To limit the months the user can navigate to, use
29
+ * `fromDate`/`fromMonth`/`fromYear` or `toDate`/`toMonth`/`toYear`.
30
+ *
31
+ * ### Selection modes
32
+ *
33
+ * DayPicker supports different selection mode that can be toggled using the
34
+ * `mode` prop:
35
+ *
36
+ * - `mode="single"`: only one day can be selected. Use `required` to make the
37
+ * selection required. Use the `onSelect` event handler to get the selected
38
+ * days.
39
+ * - `mode="multiple"`: users can select one or more days. Limit the amount of
40
+ * days that can be selected with the `min` or the `max` props.
41
+ * - `mode="range"`: users can select a range of days. Limit the amount of days
42
+ * in the range with the `min` or the `max` props.
43
+ * - `mode="custom"`: implement your own selection mode with `onDayClick`.
44
+ *
45
+ * These selection modes should cover the most common use cases. In case you
46
+ * need a more refined way of selecting days, use `mode="custom"`. Use the
47
+ * `selected` props and add the day event handlers to add/remove days from the
48
+ * selection.
49
+ *
50
+ * ### Modifiers
51
+ *
52
+ * A _modifier_ represents different styles or states for the days displayed in
53
+ * the calendar (like "selected" or "disabled"). Define custom modifiers using
54
+ * the `modifiers` prop.
55
+ *
56
+ * ### Formatters and custom component
57
+ *
58
+ * You can customize how the content is displayed in the date picker by using
59
+ * either the formatters or replacing the internal components.
60
+ *
61
+ * For the most common cases you want to use the `formatters` prop to change how
62
+ * the content is formatted in the calendar. Use the `components` prop to
63
+ * replace the internal components, like the navigation icons.
64
+ *
65
+ * ### Styling
66
+ *
67
+ * DayPicker comes with a default, basic style in `react-day-picker/style` – use
68
+ * it as template for your own style.
69
+ *
70
+ * If you are using CSS modules, pass the imported styles object the
71
+ * `classNames` props.
72
+ *
73
+ * You can also style the elements via inline-styles using the `styles` prop.
74
+ *
75
+ * ### Form fields
76
+ *
77
+ * If you need to bind the date picker to a form field, you can use the
78
+ * `useInput` hooks for a basic behavior. See the `useInput` source as an
79
+ * example to bind the date picker with form fields.
80
+ *
81
+ * ### Localization
82
+ *
83
+ * To localize DayPicker, import the locale from `date-fns` package and use the
84
+ * `locale` prop.
85
+ *
86
+ * For example, to use Spanish locale:
87
+ *
88
+ * ```
89
+ * import es from 'date-fns/locale/es';
90
+ * <DayPicker locale={es} />
91
+ * ```
92
+ */
93
+ export declare function DayPicker(props: DayPickerProps | DayPickerSingleProps | DayPickerMultipleProps | DayPickerRangeProps | DayPickerCustomProps): JSX.Element;
@@ -1,98 +1,95 @@
1
- import { __assign } from './_virtual/_tslib.js';
1
+ import { __assign } from "tslib";
2
2
  import React from 'react';
3
- import { Root } from './components/Root/Root.js';
4
- import { RootProvider } from './contexts/RootProvider.js';
5
-
6
- /**
7
- * DayPicker render a date picker component to let users pick dates from a
8
- * calendar. See http://react-day-picker.js.org for updated documentation and
9
- * examples.
10
- *
11
- * ### Customization
12
- *
13
- * DayPicker offers different customization props. For example,
14
- *
15
- * - show multiple months using `numberOfMonths`
16
- * - display a dropdown to navigate the months via `captionLayout`
17
- * - display the week numbers with `showWeekNumbers`
18
- * - disable or hide days with `disabled` or `hidden`
19
- *
20
- * ### Controlling the months
21
- *
22
- * Change the initially displayed month using the `defaultMonth` prop. The
23
- * displayed months are controlled by DayPicker and stored in its internal
24
- * state. To control the months yourself, use `month` instead of `defaultMonth`
25
- * and use the `onMonthChange` event to set it.
26
- *
27
- * To limit the months the user can navigate to, use
28
- * `fromDate`/`fromMonth`/`fromYear` or `toDate`/`toMonth`/`toYear`.
29
- *
30
- * ### Selection modes
31
- *
32
- * DayPicker supports different selection mode that can be toggled using the
33
- * `mode` prop:
34
- *
35
- * - `mode="single"`: only one day can be selected. Use `required` to make the
36
- * selection required. Use the `onSelect` event handler to get the selected
37
- * days.
38
- * - `mode="multiple"`: users can select one or more days. Limit the amount of
39
- * days that can be selected with the `min` or the `max` props.
40
- * - `mode="range"`: users can select a range of days. Limit the amount of days
41
- * in the range with the `min` or the `max` props.
42
- * - `mode="custom"`: implement your own selection mode with `onDayClick`.
43
- *
44
- * These selection modes should cover the most common use cases. In case you
45
- * need a more refined way of selecting days, use `mode="custom"`. Use the
46
- * `selected` props and add the day event handlers to add/remove days from the
47
- * selection.
48
- *
49
- * ### Modifiers
50
- *
51
- * A _modifier_ represents different styles or states for the days displayed in
52
- * the calendar (like "selected" or "disabled"). Define custom modifiers using
53
- * the `modifiers` prop.
54
- *
55
- * ### Formatters and custom component
56
- *
57
- * You can customize how the content is displayed in the date picker by using
58
- * either the formatters or replacing the internal components.
59
- *
60
- * For the most common cases you want to use the `formatters` prop to change how
61
- * the content is formatted in the calendar. Use the `components` prop to
62
- * replace the internal components, like the navigation icons.
63
- *
64
- * ### Styling
65
- *
66
- * DayPicker comes with a default, basic style in `react-day-picker/style` – use
67
- * it as template for your own style.
68
- *
69
- * If you are using CSS modules, pass the imported styles object the
70
- * `classNames` props.
71
- *
72
- * You can also style the elements via inline-styles using the `styles` prop.
73
- *
74
- * ### Form fields
75
- *
76
- * If you need to bind the date picker to a form field, you can use the
77
- * `useInput` hooks for a basic behavior. See the `useInput` source as an
78
- * example to bind the date picker with form fields.
79
- *
80
- * ### Localization
81
- *
82
- * To localize DayPicker, import the locale from `date-fns` package and use the
83
- * `locale` prop.
84
- *
85
- * For example, to use Spanish locale:
86
- *
87
- * ```
88
- * import es from 'date-fns/locale/es';
89
- * <DayPicker locale={es} />
90
- * ```
91
- */
92
- function DayPicker(props) {
93
- return (React.createElement(RootProvider, __assign({}, props),
94
- React.createElement(Root, null)));
3
+ import { Root } from './components/Root';
4
+ import { RootProvider } from './contexts/RootProvider';
5
+ /**
6
+ * DayPicker render a date picker component to let users pick dates from a
7
+ * calendar. See http://react-day-picker.js.org for updated documentation and
8
+ * examples.
9
+ *
10
+ * ### Customization
11
+ *
12
+ * DayPicker offers different customization props. For example,
13
+ *
14
+ * - show multiple months using `numberOfMonths`
15
+ * - display a dropdown to navigate the months via `captionLayout`
16
+ * - display the week numbers with `showWeekNumbers`
17
+ * - disable or hide days with `disabled` or `hidden`
18
+ *
19
+ * ### Controlling the months
20
+ *
21
+ * Change the initially displayed month using the `defaultMonth` prop. The
22
+ * displayed months are controlled by DayPicker and stored in its internal
23
+ * state. To control the months yourself, use `month` instead of `defaultMonth`
24
+ * and use the `onMonthChange` event to set it.
25
+ *
26
+ * To limit the months the user can navigate to, use
27
+ * `fromDate`/`fromMonth`/`fromYear` or `toDate`/`toMonth`/`toYear`.
28
+ *
29
+ * ### Selection modes
30
+ *
31
+ * DayPicker supports different selection mode that can be toggled using the
32
+ * `mode` prop:
33
+ *
34
+ * - `mode="single"`: only one day can be selected. Use `required` to make the
35
+ * selection required. Use the `onSelect` event handler to get the selected
36
+ * days.
37
+ * - `mode="multiple"`: users can select one or more days. Limit the amount of
38
+ * days that can be selected with the `min` or the `max` props.
39
+ * - `mode="range"`: users can select a range of days. Limit the amount of days
40
+ * in the range with the `min` or the `max` props.
41
+ * - `mode="custom"`: implement your own selection mode with `onDayClick`.
42
+ *
43
+ * These selection modes should cover the most common use cases. In case you
44
+ * need a more refined way of selecting days, use `mode="custom"`. Use the
45
+ * `selected` props and add the day event handlers to add/remove days from the
46
+ * selection.
47
+ *
48
+ * ### Modifiers
49
+ *
50
+ * A _modifier_ represents different styles or states for the days displayed in
51
+ * the calendar (like "selected" or "disabled"). Define custom modifiers using
52
+ * the `modifiers` prop.
53
+ *
54
+ * ### Formatters and custom component
55
+ *
56
+ * You can customize how the content is displayed in the date picker by using
57
+ * either the formatters or replacing the internal components.
58
+ *
59
+ * For the most common cases you want to use the `formatters` prop to change how
60
+ * the content is formatted in the calendar. Use the `components` prop to
61
+ * replace the internal components, like the navigation icons.
62
+ *
63
+ * ### Styling
64
+ *
65
+ * DayPicker comes with a default, basic style in `react-day-picker/style` – use
66
+ * it as template for your own style.
67
+ *
68
+ * If you are using CSS modules, pass the imported styles object the
69
+ * `classNames` props.
70
+ *
71
+ * You can also style the elements via inline-styles using the `styles` prop.
72
+ *
73
+ * ### Form fields
74
+ *
75
+ * If you need to bind the date picker to a form field, you can use the
76
+ * `useInput` hooks for a basic behavior. See the `useInput` source as an
77
+ * example to bind the date picker with form fields.
78
+ *
79
+ * ### Localization
80
+ *
81
+ * To localize DayPicker, import the locale from `date-fns` package and use the
82
+ * `locale` prop.
83
+ *
84
+ * For example, to use Spanish locale:
85
+ *
86
+ * ```
87
+ * import es from 'date-fns/locale/es';
88
+ * <DayPicker locale={es} />
89
+ * ```
90
+ */
91
+ export function DayPicker(props) {
92
+ return (React.createElement(RootProvider, __assign({}, props),
93
+ React.createElement(Root, null)));
95
94
  }
96
-
97
- export { DayPicker };
98
- //# sourceMappingURL=DayPicker.js.map
95
+ //# sourceMappingURL=DayPicker.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"DayPicker.js","sources":["../src/DayPicker.tsx"],"sourcesContent":["import React from 'react';\n\nimport {\n DayPickerCustomProps,\n DayPickerMultipleProps,\n DayPickerProps,\n DayPickerRangeProps,\n DayPickerSingleProps\n} from './types';\n\nimport { Root } from './components/Root';\nimport { RootProvider } from './contexts/RootProvider';\n\n/**\n * DayPicker render a date picker component to let users pick dates from a\n * calendar. See http://react-day-picker.js.org for updated documentation and\n * examples.\n *\n * ### Customization\n *\n * DayPicker offers different customization props. For example,\n *\n * - show multiple months using `numberOfMonths`\n * - display a dropdown to navigate the months via `captionLayout`\n * - display the week numbers with `showWeekNumbers`\n * - disable or hide days with `disabled` or `hidden`\n *\n * ### Controlling the months\n *\n * Change the initially displayed month using the `defaultMonth` prop. The\n * displayed months are controlled by DayPicker and stored in its internal\n * state. To control the months yourself, use `month` instead of `defaultMonth`\n * and use the `onMonthChange` event to set it.\n *\n * To limit the months the user can navigate to, use\n * `fromDate`/`fromMonth`/`fromYear` or `toDate`/`toMonth`/`toYear`.\n *\n * ### Selection modes\n *\n * DayPicker supports different selection mode that can be toggled using the\n * `mode` prop:\n *\n * - `mode=\"single\"`: only one day can be selected. Use `required` to make the\n * selection required. Use the `onSelect` event handler to get the selected\n * days.\n * - `mode=\"multiple\"`: users can select one or more days. Limit the amount of\n * days that can be selected with the `min` or the `max` props.\n * - `mode=\"range\"`: users can select a range of days. Limit the amount of days\n * in the range with the `min` or the `max` props.\n * - `mode=\"custom\"`: implement your own selection mode with `onDayClick`.\n *\n * These selection modes should cover the most common use cases. In case you\n * need a more refined way of selecting days, use `mode=\"custom\"`. Use the\n * `selected` props and add the day event handlers to add/remove days from the\n * selection.\n *\n * ### Modifiers\n *\n * A _modifier_ represents different styles or states for the days displayed in\n * the calendar (like \"selected\" or \"disabled\"). Define custom modifiers using\n * the `modifiers` prop.\n *\n * ### Formatters and custom component\n *\n * You can customize how the content is displayed in the date picker by using\n * either the formatters or replacing the internal components.\n *\n * For the most common cases you want to use the `formatters` prop to change how\n * the content is formatted in the calendar. Use the `components` prop to\n * replace the internal components, like the navigation icons.\n *\n * ### Styling\n *\n * DayPicker comes with a default, basic style in `react-day-picker/style` – use\n * it as template for your own style.\n *\n * If you are using CSS modules, pass the imported styles object the\n * `classNames` props.\n *\n * You can also style the elements via inline-styles using the `styles` prop.\n *\n * ### Form fields\n *\n * If you need to bind the date picker to a form field, you can use the\n * `useInput` hooks for a basic behavior. See the `useInput` source as an\n * example to bind the date picker with form fields.\n *\n * ### Localization\n *\n * To localize DayPicker, import the locale from `date-fns` package and use the\n * `locale` prop.\n *\n * For example, to use Spanish locale:\n *\n * ```\n * import es from 'date-fns/locale/es';\n * <DayPicker locale={es} />\n * ```\n */\nexport function DayPicker(\n props:\n | DayPickerProps\n | DayPickerSingleProps\n | DayPickerMultipleProps\n | DayPickerRangeProps\n | DayPickerCustomProps\n): JSX.Element {\n return (\n <RootProvider {...props}>\n <Root />\n </RootProvider>\n );\n}\n"],"names":[],"mappings":";;;;;AAaA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;SAsFgB,SAAS,CACvB,KAKwB;IAExB,QACE,oBAAC,YAAY,eAAK,KAAK;QACrB,oBAAC,IAAI,OAAG,CACK,EACf;AACJ;;;;"}
1
+ {"version":3,"file":"DayPicker.js","sourceRoot":"","sources":["../src/DayPicker.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAQ1B,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAEvD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqFG;AACH,MAAM,UAAU,SAAS,CACvB,KAKwB;IAExB,OAAO,CACL,oBAAC,YAAY,eAAK,KAAK;QACrB,oBAAC,IAAI,OAAG,CACK,CAChB,CAAC;AACJ,CAAC"}
@@ -1,7 +1,7 @@
1
- import React from 'react';
2
- /** The props for the [[Button]] component. */
3
- export declare type ButtonProps = React.HTMLProps<HTMLButtonElement>;
4
- /**
5
- * Render a button HTML element applying the reset class name.
6
- */
7
- export declare const Button: React.ForwardRefExoticComponent<Pick<ButtonProps, "accept" | "acceptCharset" | "action" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "async" | "autoComplete" | "autoFocus" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "cite" | "classID" | "cols" | "colSpan" | "content" | "controls" | "coords" | "crossOrigin" | "data" | "dateTime" | "default" | "defer" | "disabled" | "download" | "encType" | "form" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "headers" | "height" | "high" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "label" | "list" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "media" | "mediaGroup" | "method" | "min" | "minLength" | "multiple" | "muted" | "name" | "nonce" | "noValidate" | "open" | "optimum" | "pattern" | "placeholder" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "size" | "sizes" | "span" | "src" | "srcDoc" | "srcLang" | "srcSet" | "start" | "step" | "summary" | "target" | "type" | "useMap" | "value" | "width" | "wmode" | "wrap" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key"> & React.RefAttributes<HTMLButtonElement>>;
1
+ import React from 'react';
2
+ /** The props for the [[Button]] component. */
3
+ export declare type ButtonProps = React.HTMLProps<HTMLButtonElement>;
4
+ /**
5
+ * Render a button HTML element applying the reset class name.
6
+ */
7
+ export declare const Button: React.ForwardRefExoticComponent<Pick<ButtonProps, "cite" | "data" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "children" | "className" | "id" | "accept" | "acceptCharset" | "action" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "async" | "autoComplete" | "autoFocus" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "classID" | "cols" | "colSpan" | "content" | "controls" | "coords" | "crossOrigin" | "dateTime" | "default" | "defer" | "disabled" | "download" | "encType" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "headers" | "height" | "high" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "list" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "media" | "mediaGroup" | "method" | "min" | "minLength" | "multiple" | "muted" | "name" | "nonce" | "noValidate" | "open" | "optimum" | "placeholder" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "size" | "sizes" | "src" | "srcDoc" | "srcLang" | "srcSet" | "start" | "step" | "target" | "type" | "useMap" | "value" | "width" | "wmode" | "wrap" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "lang" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key"> & React.RefAttributes<HTMLButtonElement>>;
@@ -1,24 +1,20 @@
1
- import { __assign } from '../../_virtual/_tslib.js';
1
+ import { __assign } from "tslib";
2
2
  import React from 'react';
3
- import { useDayPicker } from '../../contexts/DayPicker/useDayPicker.js';
4
- import '../../contexts/DayPicker/DayPickerContext.js';
5
-
6
- /**
7
- * Render a button HTML element applying the reset class name.
8
- */
9
- var Button = React.forwardRef(function (props, ref) {
10
- var _a = useDayPicker(), classNames = _a.classNames, styles = _a.styles;
11
- var classNamesArr = [classNames.button_reset, classNames.button];
12
- if (props.className) {
13
- classNamesArr.push(props.className);
14
- }
15
- var className = classNamesArr.join(' ');
16
- var style = __assign(__assign({}, styles.button_reset), styles.button);
17
- if (props.style) {
18
- Object.assign(style, props.style);
19
- }
20
- return (React.createElement("button", __assign({}, props, { ref: ref, type: "button", className: className, style: style })));
3
+ import { useDayPicker } from '../../contexts/DayPicker';
4
+ /**
5
+ * Render a button HTML element applying the reset class name.
6
+ */
7
+ export var Button = React.forwardRef(function (props, ref) {
8
+ var _a = useDayPicker(), classNames = _a.classNames, styles = _a.styles;
9
+ var classNamesArr = [classNames.button_reset, classNames.button];
10
+ if (props.className) {
11
+ classNamesArr.push(props.className);
12
+ }
13
+ var className = classNamesArr.join(' ');
14
+ var style = __assign(__assign({}, styles.button_reset), styles.button);
15
+ if (props.style) {
16
+ Object.assign(style, props.style);
17
+ }
18
+ return (React.createElement("button", __assign({}, props, { ref: ref, type: "button", className: className, style: style })));
21
19
  });
22
-
23
- export { Button };
24
- //# sourceMappingURL=Button.js.map
20
+ //# sourceMappingURL=Button.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Button.js","sources":["../../../src/components/Button/Button.tsx"],"sourcesContent":["import React from 'react';\n\nimport { useDayPicker } from '../../contexts/DayPicker';\n\n/** The props for the [[Button]] component. */\nexport type ButtonProps = React.HTMLProps<HTMLButtonElement>;\n\n/**\n * Render a button HTML element applying the reset class name.\n */\nexport const Button = React.forwardRef<HTMLButtonElement, ButtonProps>(\n (props, ref) => {\n const { classNames, styles } = useDayPicker();\n\n const classNamesArr = [classNames.button_reset, classNames.button];\n if (props.className) {\n classNamesArr.push(props.className);\n }\n const className = classNamesArr.join(' ');\n\n const style = { ...styles.button_reset, ...styles.button };\n if (props.style) {\n Object.assign(style, props.style);\n }\n\n return (\n <button\n {...props}\n ref={ref}\n type=\"button\"\n className={className}\n style={style}\n />\n );\n }\n);\n"],"names":[],"mappings":";;;;;AAOA;;;IAGa,MAAM,GAAG,KAAK,CAAC,UAAU,CACpC,UAAC,KAAK,EAAE,GAAG;IACH,IAAA,KAAyB,YAAY,EAAE,EAArC,UAAU,gBAAA,EAAE,MAAM,YAAmB,CAAC;IAE9C,IAAM,aAAa,GAAG,CAAC,UAAU,CAAC,YAAY,EAAE,UAAU,CAAC,MAAM,CAAC,CAAC;IACnE,IAAI,KAAK,CAAC,SAAS,EAAE;QACnB,aAAa,CAAC,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;KACrC;IACD,IAAM,SAAS,GAAG,aAAa,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAE1C,IAAM,KAAK,yBAAQ,MAAM,CAAC,YAAY,GAAK,MAAM,CAAC,MAAM,CAAE,CAAC;IAC3D,IAAI,KAAK,CAAC,KAAK,EAAE;QACf,MAAM,CAAC,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;KACnC;IAED,QACE,2CACM,KAAK,IACT,GAAG,EAAE,GAAG,EACR,IAAI,EAAC,QAAQ,EACb,SAAS,EAAE,SAAS,EACpB,KAAK,EAAE,KAAK,IACZ,EACF;AACJ,CAAC;;;;"}
1
+ {"version":3,"file":"Button.js","sourceRoot":"","sources":["../../../src/components/Button/Button.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAKlD;;GAEG;AACH,MAAM,CAAC,IAAM,MAAM,GAAG,KAAK,CAAC,UAAU,CACpC,UAAC,KAAK,EAAE,GAAG;IACH,IAAA,KAAyB,YAAY,EAAE,EAArC,UAAU,gBAAA,EAAE,MAAM,YAAmB,CAAC;IAE9C,IAAM,aAAa,GAAG,CAAC,UAAU,CAAC,YAAY,EAAE,UAAU,CAAC,MAAM,CAAC,CAAC;IACnE,IAAI,KAAK,CAAC,SAAS,EAAE;QACnB,aAAa,CAAC,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;KACrC;IACD,IAAM,SAAS,GAAG,aAAa,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAE1C,IAAM,KAAK,yBAAQ,MAAM,CAAC,YAAY,GAAK,MAAM,CAAC,MAAM,CAAE,CAAC;IAC3D,IAAI,KAAK,CAAC,KAAK,EAAE;QACf,MAAM,CAAC,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;KACnC;IAED,OAAO,CACL,2CACM,KAAK,IACT,GAAG,EAAE,GAAG,EACR,IAAI,EAAC,QAAQ,EACb,SAAS,EAAE,SAAS,EACpB,KAAK,EAAE,KAAK,IACZ,CACH,CAAC;AACJ,CAAC,CACF,CAAC"}
@@ -1 +1 @@
1
- export * from './Button';
1
+ export * from './Button';
@@ -0,0 +1,2 @@
1
+ export * from './Button';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Button/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC"}
@@ -1,18 +1,20 @@
1
- /// <reference types="react" />
2
- /** Represent the props of the [[Caption]] component. */
3
- export interface CaptionProps {
4
- /** The month where the caption is displayed. */
5
- displayMonth: Date;
6
- }
7
- /**
8
- * The layout of the caption:
9
- *
10
- * - `dropdown` - display a month / year dropdown
11
- * - `buttons` - display previous / next month button.
12
- */
13
- export declare type CaptionLayout = 'dropdown' | 'buttons';
14
- /**
15
- * Render the caption of a month, which includes title and navigation buttons.
16
- * The caption has a different layout when setting the `numberOfMonths` prop.
17
- */
18
- export declare function Caption(props: CaptionProps): JSX.Element;
1
+ /// <reference types="react" />
2
+ /** Represent the props of the [[Caption]] component. */
3
+ export interface CaptionProps {
4
+ /** The ID for the heading element. Must be the same as the labelled-by in Table. */
5
+ id?: string;
6
+ /** The month where the caption is displayed. */
7
+ displayMonth: Date;
8
+ }
9
+ /**
10
+ * The layout of the caption:
11
+ *
12
+ * - `dropdown`: display dropdowns for choosing the month and the year.
13
+ * - `buttons`: display previous month / next month buttons.
14
+ */
15
+ export declare type CaptionLayout = 'dropdown' | 'buttons';
16
+ /**
17
+ * Render the caption of a month, which includes title and navigation buttons.
18
+ * The caption has a different layout when setting the [[DayPickerProps.captionLayout]] prop.
19
+ */
20
+ export declare function Caption(props: CaptionProps): JSX.Element;