@betterinternship/components 1.5.28 → 1.6.1

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 (398) hide show
  1. package/README.md +26 -0
  2. package/dist/components/Accordion.d.ts +7 -0
  3. package/dist/components/Avatar.d.ts +6 -0
  4. package/dist/components/Badge.d.ts +21 -0
  5. package/dist/components/Button.js.map +1 -1
  6. package/dist/components/Calendar.d.ts +7 -0
  7. package/dist/components/Input.d.ts +3 -0
  8. package/dist/components/ui/accordion.d.ts +7 -0
  9. package/dist/components/ui/accordion.js +20 -0
  10. package/dist/components/ui/accordion.js.map +1 -0
  11. package/dist/components/ui/avatar.d.ts +6 -0
  12. package/dist/components/ui/avatar.js +16 -0
  13. package/dist/components/ui/avatar.js.map +1 -0
  14. package/dist/components/ui/badge.d.ts +22 -0
  15. package/dist/components/ui/badge.js +113 -0
  16. package/dist/components/ui/badge.js.map +1 -0
  17. package/dist/components/ui/button.d.ts +13 -0
  18. package/dist/components/ui/button.js +88 -0
  19. package/dist/components/ui/button.js.map +1 -0
  20. package/dist/components/ui/calendar.d.ts +7 -0
  21. package/dist/components/ui/calendar.js +51 -0
  22. package/dist/components/ui/calendar.js.map +1 -0
  23. package/dist/components/ui/card.d.ts +9 -0
  24. package/dist/components/ui/card.js +27 -0
  25. package/dist/components/ui/card.js.map +1 -0
  26. package/dist/components/ui/checkbox.d.ts +4 -0
  27. package/dist/components/ui/checkbox.js +11 -0
  28. package/dist/components/ui/checkbox.js.map +1 -0
  29. package/dist/components/ui/dialog.d.ts +18 -0
  30. package/dist/components/ui/dialog.js +41 -0
  31. package/dist/components/ui/dialog.js.map +1 -0
  32. package/dist/components/ui/icons.d.ts +10 -0
  33. package/dist/components/ui/icons.js +39 -0
  34. package/dist/components/ui/icons.js.map +1 -0
  35. package/dist/components/ui/input.d.ts +3 -0
  36. package/dist/components/ui/input.js +17 -0
  37. package/dist/components/ui/input.js.map +1 -0
  38. package/dist/components/ui/label.d.ts +4 -0
  39. package/dist/components/ui/label.js +10 -0
  40. package/dist/components/ui/label.js.map +1 -0
  41. package/dist/components/ui/popover.d.ts +7 -0
  42. package/dist/components/ui/popover.js +17 -0
  43. package/dist/components/ui/popover.js.map +1 -0
  44. package/dist/components/ui/separator.d.ts +4 -0
  45. package/dist/components/ui/separator.js +10 -0
  46. package/dist/components/ui/separator.js.map +1 -0
  47. package/dist/components/ui/skeleton.d.ts +2 -0
  48. package/dist/components/ui/skeleton.js +9 -0
  49. package/dist/components/ui/skeleton.js.map +1 -0
  50. package/dist/components/ui/switch.d.ts +4 -0
  51. package/dist/components/ui/switch.js +10 -0
  52. package/dist/components/ui/switch.js.map +1 -0
  53. package/dist/components/ui/table.d.ts +10 -0
  54. package/dist/components/ui/table.js +30 -0
  55. package/dist/components/ui/table.js.map +1 -0
  56. package/dist/components/ui/textarea.d.ts +3 -0
  57. package/dist/components/ui/textarea.js +9 -0
  58. package/dist/components/ui/textarea.js.map +1 -0
  59. package/dist/components/ui/tooltip.d.ts +9 -0
  60. package/dist/components/ui/tooltip.js +19 -0
  61. package/dist/components/ui/tooltip.js.map +1 -0
  62. package/dist/hooks/useClientProcess.js.map +1 -1
  63. package/dist/index.css.js +1 -1
  64. package/dist/index.d.ts +19 -1
  65. package/dist/index.esm.js +3761 -3761
  66. package/dist/index.js +19 -1
  67. package/dist/index.js.map +1 -1
  68. package/dist/node_modules/@date-fns/tz/date/index.js +84 -0
  69. package/dist/node_modules/@date-fns/tz/date/index.js.map +1 -0
  70. package/dist/node_modules/@date-fns/tz/date/mini.js +451 -0
  71. package/dist/node_modules/@date-fns/tz/date/mini.js.map +1 -0
  72. package/dist/node_modules/@date-fns/tz/tzName/index.js +40 -0
  73. package/dist/node_modules/@date-fns/tz/tzName/index.js.map +1 -0
  74. package/dist/node_modules/@date-fns/tz/tzOffset/index.js +57 -0
  75. package/dist/node_modules/@date-fns/tz/tzOffset/index.js.map +1 -0
  76. package/dist/node_modules/date-fns/_lib/addLeadingZeros.js +8 -0
  77. package/dist/node_modules/date-fns/_lib/addLeadingZeros.js.map +1 -0
  78. package/dist/node_modules/date-fns/_lib/defaultOptions.js +8 -0
  79. package/dist/node_modules/date-fns/_lib/defaultOptions.js.map +1 -0
  80. package/dist/node_modules/date-fns/_lib/format/formatters.js +776 -0
  81. package/dist/node_modules/date-fns/_lib/format/formatters.js.map +1 -0
  82. package/dist/node_modules/date-fns/_lib/format/lightFormatters.js +95 -0
  83. package/dist/node_modules/date-fns/_lib/format/lightFormatters.js.map +1 -0
  84. package/dist/node_modules/date-fns/_lib/format/longFormatters.js +67 -0
  85. package/dist/node_modules/date-fns/_lib/format/longFormatters.js.map +1 -0
  86. package/dist/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js +32 -0
  87. package/dist/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js.map +1 -0
  88. package/dist/node_modules/date-fns/_lib/normalizeDates.js +12 -0
  89. package/dist/node_modules/date-fns/_lib/normalizeDates.js.map +1 -0
  90. package/dist/node_modules/date-fns/_lib/normalizeInterval.js +9 -0
  91. package/dist/node_modules/date-fns/_lib/normalizeInterval.js.map +1 -0
  92. package/dist/node_modules/date-fns/_lib/protectedTokens.js +26 -0
  93. package/dist/node_modules/date-fns/_lib/protectedTokens.js.map +1 -0
  94. package/dist/node_modules/date-fns/addDays.js +61 -0
  95. package/dist/node_modules/date-fns/addDays.js.map +1 -0
  96. package/dist/node_modules/date-fns/addMonths.js +76 -0
  97. package/dist/node_modules/date-fns/addMonths.js.map +1 -0
  98. package/dist/node_modules/date-fns/addWeeks.js +34 -0
  99. package/dist/node_modules/date-fns/addWeeks.js.map +1 -0
  100. package/dist/node_modules/date-fns/addYears.js +34 -0
  101. package/dist/node_modules/date-fns/addYears.js.map +1 -0
  102. package/dist/node_modules/date-fns/constants.js +47 -0
  103. package/dist/node_modules/date-fns/constants.js.map +1 -0
  104. package/dist/node_modules/date-fns/constructFrom.js +50 -0
  105. package/dist/node_modules/date-fns/constructFrom.js.map +1 -0
  106. package/dist/node_modules/date-fns/differenceInCalendarDays.js +63 -0
  107. package/dist/node_modules/date-fns/differenceInCalendarDays.js.map +1 -0
  108. package/dist/node_modules/date-fns/differenceInCalendarMonths.js +43 -0
  109. package/dist/node_modules/date-fns/differenceInCalendarMonths.js.map +1 -0
  110. package/dist/node_modules/date-fns/eachMonthOfInterval.js +66 -0
  111. package/dist/node_modules/date-fns/eachMonthOfInterval.js.map +1 -0
  112. package/dist/node_modules/date-fns/eachYearOfInterval.js +66 -0
  113. package/dist/node_modules/date-fns/eachYearOfInterval.js.map +1 -0
  114. package/dist/node_modules/date-fns/endOfISOWeek.js +36 -0
  115. package/dist/node_modules/date-fns/endOfISOWeek.js.map +1 -0
  116. package/dist/node_modules/date-fns/endOfMonth.js +38 -0
  117. package/dist/node_modules/date-fns/endOfMonth.js.map +1 -0
  118. package/dist/node_modules/date-fns/endOfWeek.js +54 -0
  119. package/dist/node_modules/date-fns/endOfWeek.js.map +1 -0
  120. package/dist/node_modules/date-fns/endOfYear.js +38 -0
  121. package/dist/node_modules/date-fns/endOfYear.js.map +1 -0
  122. package/dist/node_modules/date-fns/format.js +424 -0
  123. package/dist/node_modules/date-fns/format.js.map +1 -0
  124. package/dist/node_modules/date-fns/getDayOfYear.js +35 -0
  125. package/dist/node_modules/date-fns/getDayOfYear.js.map +1 -0
  126. package/dist/node_modules/date-fns/getDaysInMonth.js +37 -0
  127. package/dist/node_modules/date-fns/getDaysInMonth.js.map +1 -0
  128. package/dist/node_modules/date-fns/getISOWeek.js +41 -0
  129. package/dist/node_modules/date-fns/getISOWeek.js.map +1 -0
  130. package/dist/node_modules/date-fns/getISOWeekYear.js +53 -0
  131. package/dist/node_modules/date-fns/getISOWeekYear.js.map +1 -0
  132. package/dist/node_modules/date-fns/getMonth.js +30 -0
  133. package/dist/node_modules/date-fns/getMonth.js.map +1 -0
  134. package/dist/node_modules/date-fns/getWeek.js +55 -0
  135. package/dist/node_modules/date-fns/getWeek.js.map +1 -0
  136. package/dist/node_modules/date-fns/getWeekYear.js +76 -0
  137. package/dist/node_modules/date-fns/getWeekYear.js.map +1 -0
  138. package/dist/node_modules/date-fns/getYear.js +30 -0
  139. package/dist/node_modules/date-fns/getYear.js.map +1 -0
  140. package/dist/node_modules/date-fns/isAfter.js +26 -0
  141. package/dist/node_modules/date-fns/isAfter.js.map +1 -0
  142. package/dist/node_modules/date-fns/isBefore.js +26 -0
  143. package/dist/node_modules/date-fns/isBefore.js.map +1 -0
  144. package/dist/node_modules/date-fns/isDate.js +42 -0
  145. package/dist/node_modules/date-fns/isDate.js.map +1 -0
  146. package/dist/node_modules/date-fns/isSameDay.js +47 -0
  147. package/dist/node_modules/date-fns/isSameDay.js.map +1 -0
  148. package/dist/node_modules/date-fns/isSameMonth.js +44 -0
  149. package/dist/node_modules/date-fns/isSameMonth.js.map +1 -0
  150. package/dist/node_modules/date-fns/isSameYear.js +36 -0
  151. package/dist/node_modules/date-fns/isSameYear.js.map +1 -0
  152. package/dist/node_modules/date-fns/isValid.js +40 -0
  153. package/dist/node_modules/date-fns/isValid.js.map +1 -0
  154. package/dist/node_modules/date-fns/locale/_lib/buildFormatLongFn.js +11 -0
  155. package/dist/node_modules/date-fns/locale/_lib/buildFormatLongFn.js.map +1 -0
  156. package/dist/node_modules/date-fns/locale/_lib/buildLocalizeFn.js +65 -0
  157. package/dist/node_modules/date-fns/locale/_lib/buildLocalizeFn.js.map +1 -0
  158. package/dist/node_modules/date-fns/locale/_lib/buildMatchFn.js +60 -0
  159. package/dist/node_modules/date-fns/locale/_lib/buildMatchFn.js.map +1 -0
  160. package/dist/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js +23 -0
  161. package/dist/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js.map +1 -0
  162. package/dist/node_modules/date-fns/locale/en-US/_lib/formatDistance.js +104 -0
  163. package/dist/node_modules/date-fns/locale/en-US/_lib/formatDistance.js.map +1 -0
  164. package/dist/node_modules/date-fns/locale/en-US/_lib/formatLong.js +42 -0
  165. package/dist/node_modules/date-fns/locale/en-US/_lib/formatLong.js.map +1 -0
  166. package/dist/node_modules/date-fns/locale/en-US/_lib/formatRelative.js +14 -0
  167. package/dist/node_modules/date-fns/locale/en-US/_lib/formatRelative.js.map +1 -0
  168. package/dist/node_modules/date-fns/locale/en-US/_lib/localize.js +190 -0
  169. package/dist/node_modules/date-fns/locale/en-US/_lib/localize.js.map +1 -0
  170. package/dist/node_modules/date-fns/locale/en-US/_lib/match.js +135 -0
  171. package/dist/node_modules/date-fns/locale/en-US/_lib/match.js.map +1 -0
  172. package/dist/node_modules/date-fns/locale/en-US.js +29 -0
  173. package/dist/node_modules/date-fns/locale/en-US.js.map +1 -0
  174. package/dist/node_modules/date-fns/max.js +50 -0
  175. package/dist/node_modules/date-fns/max.js.map +1 -0
  176. package/dist/node_modules/date-fns/min.js +50 -0
  177. package/dist/node_modules/date-fns/min.js.map +1 -0
  178. package/dist/node_modules/date-fns/setMonth.js +47 -0
  179. package/dist/node_modules/date-fns/setMonth.js.map +1 -0
  180. package/dist/node_modules/date-fns/setYear.js +41 -0
  181. package/dist/node_modules/date-fns/setYear.js.map +1 -0
  182. package/dist/node_modules/date-fns/startOfDay.js +36 -0
  183. package/dist/node_modules/date-fns/startOfDay.js.map +1 -0
  184. package/dist/node_modules/date-fns/startOfISOWeek.js +36 -0
  185. package/dist/node_modules/date-fns/startOfISOWeek.js.map +1 -0
  186. package/dist/node_modules/date-fns/startOfISOWeekYear.js +43 -0
  187. package/dist/node_modules/date-fns/startOfISOWeekYear.js.map +1 -0
  188. package/dist/node_modules/date-fns/startOfMonth.js +38 -0
  189. package/dist/node_modules/date-fns/startOfMonth.js.map +1 -0
  190. package/dist/node_modules/date-fns/startOfWeek.js +54 -0
  191. package/dist/node_modules/date-fns/startOfWeek.js.map +1 -0
  192. package/dist/node_modules/date-fns/startOfWeekYear.js +65 -0
  193. package/dist/node_modules/date-fns/startOfWeekYear.js.map +1 -0
  194. package/dist/node_modules/date-fns/startOfYear.js +37 -0
  195. package/dist/node_modules/date-fns/startOfYear.js.map +1 -0
  196. package/dist/node_modules/date-fns/toDate.js +47 -0
  197. package/dist/node_modules/date-fns/toDate.js.map +1 -0
  198. package/dist/node_modules/react/cjs/react-jsx-runtime.development.js +2 -2
  199. package/dist/node_modules/react/cjs/react-jsx-runtime.development.js.map +1 -1
  200. package/dist/node_modules/react-day-picker/dist/esm/DayPicker.js +347 -0
  201. package/dist/node_modules/react-day-picker/dist/esm/DayPicker.js.map +1 -0
  202. package/dist/node_modules/react-day-picker/dist/esm/UI.js +123 -0
  203. package/dist/node_modules/react-day-picker/dist/esm/UI.js.map +1 -0
  204. package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarDay.js +34 -0
  205. package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarDay.js.map +1 -0
  206. package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarMonth.js +15 -0
  207. package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarMonth.js.map +1 -0
  208. package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarWeek.js +14 -0
  209. package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarWeek.js.map +1 -0
  210. package/dist/node_modules/react-day-picker/dist/esm/classes/DateLib.js +600 -0
  211. package/dist/node_modules/react-day-picker/dist/esm/classes/DateLib.js.map +1 -0
  212. package/dist/node_modules/react-day-picker/dist/esm/components/CaptionLabel.js +14 -0
  213. package/dist/node_modules/react-day-picker/dist/esm/components/CaptionLabel.js.map +1 -0
  214. package/dist/node_modules/react-day-picker/dist/esm/components/Chevron.js +19 -0
  215. package/dist/node_modules/react-day-picker/dist/esm/components/Chevron.js.map +1 -0
  216. package/dist/node_modules/react-day-picker/dist/esm/components/Day.js +19 -0
  217. package/dist/node_modules/react-day-picker/dist/esm/components/Day.js.map +1 -0
  218. package/dist/node_modules/react-day-picker/dist/esm/components/DayButton.js +20 -0
  219. package/dist/node_modules/react-day-picker/dist/esm/components/DayButton.js.map +1 -0
  220. package/dist/node_modules/react-day-picker/dist/esm/components/Dropdown.js +24 -0
  221. package/dist/node_modules/react-day-picker/dist/esm/components/Dropdown.js.map +1 -0
  222. package/dist/node_modules/react-day-picker/dist/esm/components/DropdownNav.js +14 -0
  223. package/dist/node_modules/react-day-picker/dist/esm/components/DropdownNav.js.map +1 -0
  224. package/dist/node_modules/react-day-picker/dist/esm/components/Footer.js +14 -0
  225. package/dist/node_modules/react-day-picker/dist/esm/components/Footer.js.map +1 -0
  226. package/dist/node_modules/react-day-picker/dist/esm/components/Month.js +16 -0
  227. package/dist/node_modules/react-day-picker/dist/esm/components/Month.js.map +1 -0
  228. package/dist/node_modules/react-day-picker/dist/esm/components/MonthCaption.js +15 -0
  229. package/dist/node_modules/react-day-picker/dist/esm/components/MonthCaption.js.map +1 -0
  230. package/dist/node_modules/react-day-picker/dist/esm/components/MonthGrid.js +14 -0
  231. package/dist/node_modules/react-day-picker/dist/esm/components/MonthGrid.js.map +1 -0
  232. package/dist/node_modules/react-day-picker/dist/esm/components/Months.js +14 -0
  233. package/dist/node_modules/react-day-picker/dist/esm/components/Months.js.map +1 -0
  234. package/dist/node_modules/react-day-picker/dist/esm/components/MonthsDropdown.js +16 -0
  235. package/dist/node_modules/react-day-picker/dist/esm/components/MonthsDropdown.js.map +1 -0
  236. package/dist/node_modules/react-day-picker/dist/esm/components/Nav.js +32 -0
  237. package/dist/node_modules/react-day-picker/dist/esm/components/Nav.js.map +1 -0
  238. package/dist/node_modules/react-day-picker/dist/esm/components/NextMonthButton.js +14 -0
  239. package/dist/node_modules/react-day-picker/dist/esm/components/NextMonthButton.js.map +1 -0
  240. package/dist/node_modules/react-day-picker/dist/esm/components/Option.js +14 -0
  241. package/dist/node_modules/react-day-picker/dist/esm/components/Option.js.map +1 -0
  242. package/dist/node_modules/react-day-picker/dist/esm/components/PreviousMonthButton.js +14 -0
  243. package/dist/node_modules/react-day-picker/dist/esm/components/PreviousMonthButton.js.map +1 -0
  244. package/dist/node_modules/react-day-picker/dist/esm/components/Root.js +15 -0
  245. package/dist/node_modules/react-day-picker/dist/esm/components/Root.js.map +1 -0
  246. package/dist/node_modules/react-day-picker/dist/esm/components/Select.js +14 -0
  247. package/dist/node_modules/react-day-picker/dist/esm/components/Select.js.map +1 -0
  248. package/dist/node_modules/react-day-picker/dist/esm/components/Week.js +15 -0
  249. package/dist/node_modules/react-day-picker/dist/esm/components/Week.js.map +1 -0
  250. package/dist/node_modules/react-day-picker/dist/esm/components/WeekNumber.js +15 -0
  251. package/dist/node_modules/react-day-picker/dist/esm/components/WeekNumber.js.map +1 -0
  252. package/dist/node_modules/react-day-picker/dist/esm/components/WeekNumberHeader.js +14 -0
  253. package/dist/node_modules/react-day-picker/dist/esm/components/WeekNumberHeader.js.map +1 -0
  254. package/dist/node_modules/react-day-picker/dist/esm/components/Weekday.js +14 -0
  255. package/dist/node_modules/react-day-picker/dist/esm/components/Weekday.js.map +1 -0
  256. package/dist/node_modules/react-day-picker/dist/esm/components/Weekdays.js +15 -0
  257. package/dist/node_modules/react-day-picker/dist/esm/components/Weekdays.js.map +1 -0
  258. package/dist/node_modules/react-day-picker/dist/esm/components/Weeks.js +14 -0
  259. package/dist/node_modules/react-day-picker/dist/esm/components/Weeks.js.map +1 -0
  260. package/dist/node_modules/react-day-picker/dist/esm/components/YearsDropdown.js +16 -0
  261. package/dist/node_modules/react-day-picker/dist/esm/components/YearsDropdown.js.map +1 -0
  262. package/dist/node_modules/react-day-picker/dist/esm/components/custom-components.js +26 -0
  263. package/dist/node_modules/react-day-picker/dist/esm/components/custom-components.js.map +1 -0
  264. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatCaption.js +21 -0
  265. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatCaption.js.map +1 -0
  266. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatDay.js +20 -0
  267. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatDay.js.map +1 -0
  268. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatMonthDropdown.js +19 -0
  269. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatMonthDropdown.js.map +1 -0
  270. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumber.js +22 -0
  271. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumber.js.map +1 -0
  272. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumberHeader.js +14 -0
  273. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumberHeader.js.map +1 -0
  274. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekdayName.js +20 -0
  275. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekdayName.js.map +1 -0
  276. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatYearDropdown.js +18 -0
  277. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatYearDropdown.js.map +1 -0
  278. package/dist/node_modules/react-day-picker/dist/esm/formatters/index.js +8 -0
  279. package/dist/node_modules/react-day-picker/dist/esm/formatters/index.js.map +1 -0
  280. package/dist/node_modules/react-day-picker/dist/esm/helpers/calculateFocusTarget.js +74 -0
  281. package/dist/node_modules/react-day-picker/dist/esm/helpers/calculateFocusTarget.js.map +1 -0
  282. package/dist/node_modules/react-day-picker/dist/esm/helpers/createGetModifiers.js +96 -0
  283. package/dist/node_modules/react-day-picker/dist/esm/helpers/createGetModifiers.js.map +1 -0
  284. package/dist/node_modules/react-day-picker/dist/esm/helpers/endOfBroadcastWeek.js +23 -0
  285. package/dist/node_modules/react-day-picker/dist/esm/helpers/endOfBroadcastWeek.js.map +1 -0
  286. package/dist/node_modules/react-day-picker/dist/esm/helpers/getBroadcastWeeksInMonth.js +29 -0
  287. package/dist/node_modules/react-day-picker/dist/esm/helpers/getBroadcastWeeksInMonth.js.map +1 -0
  288. package/dist/node_modules/react-day-picker/dist/esm/helpers/getClassNamesForModifiers.js +34 -0
  289. package/dist/node_modules/react-day-picker/dist/esm/helpers/getClassNamesForModifiers.js.map +1 -0
  290. package/dist/node_modules/react-day-picker/dist/esm/helpers/getComponents.js +21 -0
  291. package/dist/node_modules/react-day-picker/dist/esm/helpers/getComponents.js.map +1 -0
  292. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDataAttributes.js +28 -0
  293. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDataAttributes.js.map +1 -0
  294. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDates.js +60 -0
  295. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDates.js.map +1 -0
  296. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDays.js +20 -0
  297. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDays.js.map +1 -0
  298. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDefaultClassNames.js +34 -0
  299. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDefaultClassNames.js.map +1 -0
  300. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDisplayMonths.js +25 -0
  301. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDisplayMonths.js.map +1 -0
  302. package/dist/node_modules/react-day-picker/dist/esm/helpers/getFocusableDate.js +47 -0
  303. package/dist/node_modules/react-day-picker/dist/esm/helpers/getFocusableDate.js.map +1 -0
  304. package/dist/node_modules/react-day-picker/dist/esm/helpers/getFormatters.js +18 -0
  305. package/dist/node_modules/react-day-picker/dist/esm/helpers/getFormatters.js.map +1 -0
  306. package/dist/node_modules/react-day-picker/dist/esm/helpers/getInitialMonth.js +28 -0
  307. package/dist/node_modules/react-day-picker/dist/esm/helpers/getInitialMonth.js.map +1 -0
  308. package/dist/node_modules/react-day-picker/dist/esm/helpers/getLabels.js +54 -0
  309. package/dist/node_modules/react-day-picker/dist/esm/helpers/getLabels.js.map +1 -0
  310. package/dist/node_modules/react-day-picker/dist/esm/helpers/getMonthOptions.js +34 -0
  311. package/dist/node_modules/react-day-picker/dist/esm/helpers/getMonthOptions.js.map +1 -0
  312. package/dist/node_modules/react-day-picker/dist/esm/helpers/getMonths.js +70 -0
  313. package/dist/node_modules/react-day-picker/dist/esm/helpers/getMonths.js.map +1 -0
  314. package/dist/node_modules/react-day-picker/dist/esm/helpers/getNavMonth.js +32 -0
  315. package/dist/node_modules/react-day-picker/dist/esm/helpers/getNavMonth.js.map +1 -0
  316. package/dist/node_modules/react-day-picker/dist/esm/helpers/getNextFocus.js +41 -0
  317. package/dist/node_modules/react-day-picker/dist/esm/helpers/getNextFocus.js.map +1 -0
  318. package/dist/node_modules/react-day-picker/dist/esm/helpers/getNextMonth.js +37 -0
  319. package/dist/node_modules/react-day-picker/dist/esm/helpers/getNextMonth.js.map +1 -0
  320. package/dist/node_modules/react-day-picker/dist/esm/helpers/getPreviousMonth.js +38 -0
  321. package/dist/node_modules/react-day-picker/dist/esm/helpers/getPreviousMonth.js.map +1 -0
  322. package/dist/node_modules/react-day-picker/dist/esm/helpers/getStyleForModifiers.js +28 -0
  323. package/dist/node_modules/react-day-picker/dist/esm/helpers/getStyleForModifiers.js.map +1 -0
  324. package/dist/node_modules/react-day-picker/dist/esm/helpers/getWeekdays.js +27 -0
  325. package/dist/node_modules/react-day-picker/dist/esm/helpers/getWeekdays.js.map +1 -0
  326. package/dist/node_modules/react-day-picker/dist/esm/helpers/getWeeks.js +15 -0
  327. package/dist/node_modules/react-day-picker/dist/esm/helpers/getWeeks.js.map +1 -0
  328. package/dist/node_modules/react-day-picker/dist/esm/helpers/getYearOptions.js +37 -0
  329. package/dist/node_modules/react-day-picker/dist/esm/helpers/getYearOptions.js.map +1 -0
  330. package/dist/node_modules/react-day-picker/dist/esm/helpers/startOfBroadcastWeek.js +28 -0
  331. package/dist/node_modules/react-day-picker/dist/esm/helpers/startOfBroadcastWeek.js.map +1 -0
  332. package/dist/node_modules/react-day-picker/dist/esm/helpers/useControlledValue.js +32 -0
  333. package/dist/node_modules/react-day-picker/dist/esm/helpers/useControlledValue.js.map +1 -0
  334. package/dist/node_modules/react-day-picker/dist/esm/labels/index.js +12 -0
  335. package/dist/node_modules/react-day-picker/dist/esm/labels/index.js.map +1 -0
  336. package/dist/node_modules/react-day-picker/dist/esm/labels/labelDayButton.js +28 -0
  337. package/dist/node_modules/react-day-picker/dist/esm/labels/labelDayButton.js.map +1 -0
  338. package/dist/node_modules/react-day-picker/dist/esm/labels/labelGrid.js +21 -0
  339. package/dist/node_modules/react-day-picker/dist/esm/labels/labelGrid.js.map +1 -0
  340. package/dist/node_modules/react-day-picker/dist/esm/labels/labelGridcell.js +23 -0
  341. package/dist/node_modules/react-day-picker/dist/esm/labels/labelGridcell.js.map +1 -0
  342. package/dist/node_modules/react-day-picker/dist/esm/labels/labelMonthDropdown.js +15 -0
  343. package/dist/node_modules/react-day-picker/dist/esm/labels/labelMonthDropdown.js.map +1 -0
  344. package/dist/node_modules/react-day-picker/dist/esm/labels/labelNav.js +14 -0
  345. package/dist/node_modules/react-day-picker/dist/esm/labels/labelNav.js.map +1 -0
  346. package/dist/node_modules/react-day-picker/dist/esm/labels/labelNext.js +17 -0
  347. package/dist/node_modules/react-day-picker/dist/esm/labels/labelNext.js.map +1 -0
  348. package/dist/node_modules/react-day-picker/dist/esm/labels/labelPrevious.js +16 -0
  349. package/dist/node_modules/react-day-picker/dist/esm/labels/labelPrevious.js.map +1 -0
  350. package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekNumber.js +16 -0
  351. package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekNumber.js.map +1 -0
  352. package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekNumberHeader.js +15 -0
  353. package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekNumberHeader.js.map +1 -0
  354. package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekday.js +19 -0
  355. package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekday.js.map +1 -0
  356. package/dist/node_modules/react-day-picker/dist/esm/labels/labelYearDropdown.js +15 -0
  357. package/dist/node_modules/react-day-picker/dist/esm/labels/labelYearDropdown.js.map +1 -0
  358. package/dist/node_modules/react-day-picker/dist/esm/locale/en-US.js +68 -0
  359. package/dist/node_modules/react-day-picker/dist/esm/locale/en-US.js.map +1 -0
  360. package/dist/node_modules/react-day-picker/dist/esm/noonDateLib.js +164 -0
  361. package/dist/node_modules/react-day-picker/dist/esm/noonDateLib.js.map +1 -0
  362. package/dist/node_modules/react-day-picker/dist/esm/selection/useMulti.js +58 -0
  363. package/dist/node_modules/react-day-picker/dist/esm/selection/useMulti.js.map +1 -0
  364. package/dist/node_modules/react-day-picker/dist/esm/selection/useRange.js +64 -0
  365. package/dist/node_modules/react-day-picker/dist/esm/selection/useRange.js.map +1 -0
  366. package/dist/node_modules/react-day-picker/dist/esm/selection/useSingle.js +45 -0
  367. package/dist/node_modules/react-day-picker/dist/esm/selection/useSingle.js.map +1 -0
  368. package/dist/node_modules/react-day-picker/dist/esm/useAnimation.js +174 -0
  369. package/dist/node_modules/react-day-picker/dist/esm/useAnimation.js.map +1 -0
  370. package/dist/node_modules/react-day-picker/dist/esm/useCalendar.js +114 -0
  371. package/dist/node_modules/react-day-picker/dist/esm/useCalendar.js.map +1 -0
  372. package/dist/node_modules/react-day-picker/dist/esm/useDayPicker.js +26 -0
  373. package/dist/node_modules/react-day-picker/dist/esm/useDayPicker.js.map +1 -0
  374. package/dist/node_modules/react-day-picker/dist/esm/useFocus.js +57 -0
  375. package/dist/node_modules/react-day-picker/dist/esm/useFocus.js.map +1 -0
  376. package/dist/node_modules/react-day-picker/dist/esm/useSelection.js +32 -0
  377. package/dist/node_modules/react-day-picker/dist/esm/useSelection.js.map +1 -0
  378. package/dist/node_modules/react-day-picker/dist/esm/utils/addToRange.js +96 -0
  379. package/dist/node_modules/react-day-picker/dist/esm/utils/addToRange.js.map +1 -0
  380. package/dist/node_modules/react-day-picker/dist/esm/utils/convertMatchersToTimeZone.js +62 -0
  381. package/dist/node_modules/react-day-picker/dist/esm/utils/convertMatchersToTimeZone.js.map +1 -0
  382. package/dist/node_modules/react-day-picker/dist/esm/utils/dateMatchModifiers.js +63 -0
  383. package/dist/node_modules/react-day-picker/dist/esm/utils/dateMatchModifiers.js.map +1 -0
  384. package/dist/node_modules/react-day-picker/dist/esm/utils/rangeContainsDayOfWeek.js +31 -0
  385. package/dist/node_modules/react-day-picker/dist/esm/utils/rangeContainsDayOfWeek.js.map +1 -0
  386. package/dist/node_modules/react-day-picker/dist/esm/utils/rangeContainsModifiers.js +75 -0
  387. package/dist/node_modules/react-day-picker/dist/esm/utils/rangeContainsModifiers.js.map +1 -0
  388. package/dist/node_modules/react-day-picker/dist/esm/utils/rangeIncludesDate.js +36 -0
  389. package/dist/node_modules/react-day-picker/dist/esm/utils/rangeIncludesDate.js.map +1 -0
  390. package/dist/node_modules/react-day-picker/dist/esm/utils/rangeOverlaps.js +22 -0
  391. package/dist/node_modules/react-day-picker/dist/esm/utils/rangeOverlaps.js.map +1 -0
  392. package/dist/node_modules/react-day-picker/dist/esm/utils/toTimeZone.js +17 -0
  393. package/dist/node_modules/react-day-picker/dist/esm/utils/toTimeZone.js.map +1 -0
  394. package/dist/node_modules/react-day-picker/dist/esm/utils/typeguards.js +67 -0
  395. package/dist/node_modules/react-day-picker/dist/esm/utils/typeguards.js.map +1 -0
  396. package/dist/utilities/Icons.d.ts +33 -0
  397. package/dist/utils.js.map +1 -1
  398. package/package.json +84 -9
@@ -0,0 +1,347 @@
1
+ import React__default, { useMemo, useCallback, useRef } from 'react';
2
+ import { DateLib } from './classes/DateLib.js';
3
+ import { createGetModifiers } from './helpers/createGetModifiers.js';
4
+ import { getClassNamesForModifiers } from './helpers/getClassNamesForModifiers.js';
5
+ import { getComponents } from './helpers/getComponents.js';
6
+ import { getDataAttributes } from './helpers/getDataAttributes.js';
7
+ import { getDefaultClassNames } from './helpers/getDefaultClassNames.js';
8
+ import { getFormatters } from './helpers/getFormatters.js';
9
+ import { getLabels } from './helpers/getLabels.js';
10
+ import { getMonthOptions } from './helpers/getMonthOptions.js';
11
+ import { getStyleForModifiers } from './helpers/getStyleForModifiers.js';
12
+ import { getWeekdays } from './helpers/getWeekdays.js';
13
+ import { getYearOptions } from './helpers/getYearOptions.js';
14
+ import { createNoonOverrides } from './noonDateLib.js';
15
+ import { UI, DayFlag, SelectionState } from './UI.js';
16
+ import { useAnimation } from './useAnimation.js';
17
+ import { useCalendar } from './useCalendar.js';
18
+ import { dayPickerContext } from './useDayPicker.js';
19
+ import { useFocus } from './useFocus.js';
20
+ import { useSelection } from './useSelection.js';
21
+ import { convertMatchersToTimeZone } from './utils/convertMatchersToTimeZone.js';
22
+ import { rangeIncludesDate } from './utils/rangeIncludesDate.js';
23
+ import { toTimeZone } from './utils/toTimeZone.js';
24
+ import { isDateRange } from './utils/typeguards.js';
25
+ import { enUS } from './locale/en-US.js';
26
+
27
+ /**
28
+ * Renders the DayPicker calendar component.
29
+ *
30
+ * @param initialProps - The props for the DayPicker component.
31
+ * @returns The rendered DayPicker component.
32
+ * @group DayPicker
33
+ * @see https://daypicker.dev
34
+ */
35
+ function DayPicker(initialProps) {
36
+ let props = initialProps;
37
+ const timeZone = props.timeZone;
38
+ if (timeZone) {
39
+ props = {
40
+ ...initialProps,
41
+ timeZone,
42
+ };
43
+ if (props.today) {
44
+ props.today = toTimeZone(props.today, timeZone);
45
+ }
46
+ if (props.month) {
47
+ props.month = toTimeZone(props.month, timeZone);
48
+ }
49
+ if (props.defaultMonth) {
50
+ props.defaultMonth = toTimeZone(props.defaultMonth, timeZone);
51
+ }
52
+ if (props.startMonth) {
53
+ props.startMonth = toTimeZone(props.startMonth, timeZone);
54
+ }
55
+ if (props.endMonth) {
56
+ props.endMonth = toTimeZone(props.endMonth, timeZone);
57
+ }
58
+ if (props.mode === "single" && props.selected) {
59
+ props.selected = toTimeZone(props.selected, timeZone);
60
+ }
61
+ else if (props.mode === "multiple" && props.selected) {
62
+ props.selected = props.selected?.map((date) => toTimeZone(date, timeZone));
63
+ }
64
+ else if (props.mode === "range" && props.selected) {
65
+ props.selected = {
66
+ from: props.selected.from
67
+ ? toTimeZone(props.selected.from, timeZone)
68
+ : props.selected.from,
69
+ to: props.selected.to
70
+ ? toTimeZone(props.selected.to, timeZone)
71
+ : props.selected.to,
72
+ };
73
+ }
74
+ if (props.disabled !== undefined) {
75
+ props.disabled = convertMatchersToTimeZone(props.disabled, timeZone);
76
+ }
77
+ if (props.hidden !== undefined) {
78
+ props.hidden = convertMatchersToTimeZone(props.hidden, timeZone);
79
+ }
80
+ if (props.modifiers) {
81
+ const nextModifiers = {};
82
+ Object.keys(props.modifiers).forEach((key) => {
83
+ nextModifiers[key] = convertMatchersToTimeZone(props.modifiers?.[key], timeZone);
84
+ });
85
+ props.modifiers = nextModifiers;
86
+ }
87
+ }
88
+ const { components, formatters, labels, dateLib, locale, classNames } = useMemo(() => {
89
+ const locale = { ...enUS, ...props.locale };
90
+ const weekStartsOn = props.broadcastCalendar ? 1 : props.weekStartsOn;
91
+ const noonOverrides = props.noonSafe && props.timeZone
92
+ ? createNoonOverrides(props.timeZone, {
93
+ weekStartsOn,
94
+ locale,
95
+ })
96
+ : undefined;
97
+ const overrides = props.dateLib && noonOverrides
98
+ ? { ...noonOverrides, ...props.dateLib }
99
+ : (props.dateLib ?? noonOverrides);
100
+ const dateLib = new DateLib({
101
+ locale,
102
+ weekStartsOn,
103
+ firstWeekContainsDate: props.firstWeekContainsDate,
104
+ useAdditionalWeekYearTokens: props.useAdditionalWeekYearTokens,
105
+ useAdditionalDayOfYearTokens: props.useAdditionalDayOfYearTokens,
106
+ timeZone: props.timeZone,
107
+ numerals: props.numerals,
108
+ }, overrides);
109
+ return {
110
+ dateLib,
111
+ components: getComponents(props.components),
112
+ formatters: getFormatters(props.formatters),
113
+ labels: getLabels(props.labels, dateLib.options),
114
+ locale,
115
+ classNames: { ...getDefaultClassNames(), ...props.classNames },
116
+ };
117
+ }, [
118
+ props.locale,
119
+ props.broadcastCalendar,
120
+ props.weekStartsOn,
121
+ props.firstWeekContainsDate,
122
+ props.useAdditionalWeekYearTokens,
123
+ props.useAdditionalDayOfYearTokens,
124
+ props.timeZone,
125
+ props.numerals,
126
+ props.dateLib,
127
+ props.noonSafe,
128
+ props.components,
129
+ props.formatters,
130
+ props.labels,
131
+ props.classNames,
132
+ ]);
133
+ if (!props.today) {
134
+ props = { ...props, today: dateLib.today() };
135
+ }
136
+ const { captionLayout, mode, navLayout, numberOfMonths = 1, onDayBlur, onDayClick, onDayFocus, onDayKeyDown, onDayMouseEnter, onDayMouseLeave, onNextClick, onPrevClick, showWeekNumber, styles, } = props;
137
+ const { formatCaption, formatDay, formatMonthDropdown, formatWeekNumber, formatWeekNumberHeader, formatWeekdayName, formatYearDropdown, } = formatters;
138
+ const calendar = useCalendar(props, dateLib);
139
+ const { days, months, navStart, navEnd, previousMonth, nextMonth, goToMonth, } = calendar;
140
+ const getModifiers = createGetModifiers(days, props, navStart, navEnd, dateLib);
141
+ const { isSelected, select, selected: selectedValue, } = useSelection(props, dateLib) ?? {};
142
+ const { blur, focused, isFocusTarget, moveFocus, setFocused } = useFocus(props, calendar, getModifiers, isSelected ?? (() => false), dateLib);
143
+ const { labelDayButton, labelGridcell, labelGrid, labelMonthDropdown, labelNav, labelPrevious, labelNext, labelWeekday, labelWeekNumber, labelWeekNumberHeader, labelYearDropdown, } = labels;
144
+ const weekdays = useMemo(() => getWeekdays(dateLib, props.ISOWeek, props.broadcastCalendar, props.today), [dateLib, props.ISOWeek, props.broadcastCalendar, props.today]);
145
+ const isInteractive = mode !== undefined || onDayClick !== undefined;
146
+ const handlePreviousClick = useCallback(() => {
147
+ if (!previousMonth)
148
+ return;
149
+ goToMonth(previousMonth);
150
+ onPrevClick?.(previousMonth);
151
+ }, [previousMonth, goToMonth, onPrevClick]);
152
+ const handleNextClick = useCallback(() => {
153
+ if (!nextMonth)
154
+ return;
155
+ goToMonth(nextMonth);
156
+ onNextClick?.(nextMonth);
157
+ }, [goToMonth, nextMonth, onNextClick]);
158
+ const handleDayClick = useCallback((day, m) => (e) => {
159
+ e.preventDefault();
160
+ e.stopPropagation();
161
+ setFocused(day);
162
+ if (m.disabled) {
163
+ return;
164
+ }
165
+ select?.(day.date, m, e);
166
+ onDayClick?.(day.date, m, e);
167
+ }, [select, onDayClick, setFocused]);
168
+ const handleDayFocus = useCallback((day, m) => (e) => {
169
+ setFocused(day);
170
+ onDayFocus?.(day.date, m, e);
171
+ }, [onDayFocus, setFocused]);
172
+ const handleDayBlur = useCallback((day, m) => (e) => {
173
+ blur();
174
+ onDayBlur?.(day.date, m, e);
175
+ }, [blur, onDayBlur]);
176
+ const handleDayKeyDown = useCallback((day, modifiers) => (e) => {
177
+ const keyMap = {
178
+ ArrowLeft: [
179
+ e.shiftKey ? "month" : "day",
180
+ props.dir === "rtl" ? "after" : "before",
181
+ ],
182
+ ArrowRight: [
183
+ e.shiftKey ? "month" : "day",
184
+ props.dir === "rtl" ? "before" : "after",
185
+ ],
186
+ ArrowDown: [e.shiftKey ? "year" : "week", "after"],
187
+ ArrowUp: [e.shiftKey ? "year" : "week", "before"],
188
+ PageUp: [e.shiftKey ? "year" : "month", "before"],
189
+ PageDown: [e.shiftKey ? "year" : "month", "after"],
190
+ Home: ["startOfWeek", "before"],
191
+ End: ["endOfWeek", "after"],
192
+ };
193
+ if (keyMap[e.key]) {
194
+ e.preventDefault();
195
+ e.stopPropagation();
196
+ const [moveBy, moveDir] = keyMap[e.key];
197
+ moveFocus(moveBy, moveDir);
198
+ }
199
+ onDayKeyDown?.(day.date, modifiers, e);
200
+ }, [moveFocus, onDayKeyDown, props.dir]);
201
+ const handleDayMouseEnter = useCallback((day, modifiers) => (e) => {
202
+ onDayMouseEnter?.(day.date, modifiers, e);
203
+ }, [onDayMouseEnter]);
204
+ const handleDayMouseLeave = useCallback((day, modifiers) => (e) => {
205
+ onDayMouseLeave?.(day.date, modifiers, e);
206
+ }, [onDayMouseLeave]);
207
+ const handleMonthChange = useCallback((date, monthOffset) => (e) => {
208
+ const selectedMonth = Number(e.target.value);
209
+ const month = dateLib.setMonth(dateLib.startOfMonth(date), selectedMonth);
210
+ goToMonth(dateLib.addMonths(month, -monthOffset));
211
+ }, [dateLib, goToMonth]);
212
+ const handleYearChange = useCallback((date, monthOffset) => (e) => {
213
+ const selectedYear = Number(e.target.value);
214
+ const month = dateLib.setYear(dateLib.startOfMonth(date), selectedYear);
215
+ goToMonth(dateLib.addMonths(month, -monthOffset));
216
+ }, [dateLib, goToMonth]);
217
+ const { className, style } = useMemo(() => ({
218
+ className: [classNames[UI.Root], props.className]
219
+ .filter(Boolean)
220
+ .join(" "),
221
+ style: { ...styles?.[UI.Root], ...props.style },
222
+ }), [classNames, props.className, props.style, styles]);
223
+ const dataAttributes = getDataAttributes(props);
224
+ const getDropdownStyle = (dropdown) => {
225
+ const dropdownStyle = styles?.[UI.Dropdown];
226
+ const specificDropdownStyle = styles?.[dropdown];
227
+ if (!dropdownStyle && !specificDropdownStyle) {
228
+ return undefined;
229
+ }
230
+ return {
231
+ ...dropdownStyle,
232
+ ...specificDropdownStyle,
233
+ };
234
+ };
235
+ const rootElRef = useRef(null);
236
+ useAnimation(rootElRef, Boolean(props.animate), {
237
+ classNames,
238
+ months,
239
+ focused,
240
+ dateLib,
241
+ });
242
+ const contextValue = {
243
+ dayPickerProps: props,
244
+ selected: selectedValue,
245
+ select: select,
246
+ isSelected,
247
+ months,
248
+ nextMonth,
249
+ previousMonth,
250
+ goToMonth,
251
+ getModifiers,
252
+ components,
253
+ classNames,
254
+ styles,
255
+ labels,
256
+ formatters,
257
+ };
258
+ return (React__default.createElement(dayPickerContext.Provider, { value: contextValue },
259
+ React__default.createElement(components.Root, { rootRef: props.animate ? rootElRef : undefined, className: className, style: style, dir: props.dir, id: props.id, lang: props.lang ?? locale.code, nonce: props.nonce, title: props.title, role: props.role, "aria-label": props["aria-label"], "aria-labelledby": props["aria-labelledby"], ...dataAttributes },
260
+ React__default.createElement(components.Months, { className: classNames[UI.Months], style: styles?.[UI.Months] },
261
+ !props.hideNavigation && !navLayout && (React__default.createElement(components.Nav, { "data-animated-nav": props.animate ? "true" : undefined, className: classNames[UI.Nav], style: styles?.[UI.Nav], "aria-label": labelNav(), onPreviousClick: handlePreviousClick, onNextClick: handleNextClick, previousMonth: previousMonth, nextMonth: nextMonth })),
262
+ months.map((calendarMonth, displayIndex) => {
263
+ const monthOffset = props.reverseMonths
264
+ ? months.length - 1 - displayIndex
265
+ : displayIndex;
266
+ return (React__default.createElement(components.Month, { "data-animated-month": props.animate ? "true" : undefined, className: classNames[UI.Month], style: styles?.[UI.Month],
267
+ // biome-ignore lint/suspicious/noArrayIndexKey: breaks animation
268
+ key: displayIndex, displayIndex: displayIndex, calendarMonth: calendarMonth },
269
+ navLayout === "around" &&
270
+ !props.hideNavigation &&
271
+ displayIndex === 0 && (React__default.createElement(components.PreviousMonthButton, { type: "button", className: classNames[UI.PreviousMonthButton], style: styles?.[UI.PreviousMonthButton], tabIndex: previousMonth ? undefined : -1, "aria-disabled": previousMonth ? undefined : true, "aria-label": labelPrevious(previousMonth), onClick: handlePreviousClick, "data-animated-button": props.animate ? "true" : undefined },
272
+ React__default.createElement(components.Chevron, { disabled: previousMonth ? undefined : true, className: classNames[UI.Chevron], style: styles?.[UI.Chevron], orientation: props.dir === "rtl" ? "right" : "left" }))),
273
+ React__default.createElement(components.MonthCaption, { "data-animated-caption": props.animate ? "true" : undefined, className: classNames[UI.MonthCaption], style: styles?.[UI.MonthCaption], calendarMonth: calendarMonth, displayIndex: displayIndex }, captionLayout?.startsWith("dropdown") ? (React__default.createElement(components.DropdownNav, { className: classNames[UI.Dropdowns], style: styles?.[UI.Dropdowns] },
274
+ (() => {
275
+ const monthControl = captionLayout === "dropdown" ||
276
+ captionLayout === "dropdown-months" ? (React__default.createElement(components.MonthsDropdown, { key: "month", className: classNames[UI.MonthsDropdown], "aria-label": labelMonthDropdown(), disabled: Boolean(props.disableNavigation), onChange: handleMonthChange(calendarMonth.date, monthOffset), options: getMonthOptions(calendarMonth.date, navStart, navEnd, formatters, dateLib), style: getDropdownStyle(UI.MonthsDropdown), value: dateLib.getMonth(calendarMonth.date) })) : (React__default.createElement("span", { key: "month" }, formatMonthDropdown(calendarMonth.date, dateLib)));
277
+ const yearControl = captionLayout === "dropdown" ||
278
+ captionLayout === "dropdown-years" ? (React__default.createElement(components.YearsDropdown, { key: "year", className: classNames[UI.YearsDropdown], "aria-label": labelYearDropdown(dateLib.options), disabled: Boolean(props.disableNavigation), onChange: handleYearChange(calendarMonth.date, monthOffset), options: getYearOptions(navStart, navEnd, formatters, dateLib, Boolean(props.reverseYears)), style: getDropdownStyle(UI.YearsDropdown), value: dateLib.getYear(calendarMonth.date) })) : (React__default.createElement("span", { key: "year" }, formatYearDropdown(calendarMonth.date, dateLib)));
279
+ const controls = dateLib.getMonthYearOrder() === "year-first"
280
+ ? [yearControl, monthControl]
281
+ : [monthControl, yearControl];
282
+ return controls;
283
+ })(),
284
+ React__default.createElement("span", { role: "status", "aria-live": "polite", style: {
285
+ border: 0,
286
+ clip: "rect(0 0 0 0)",
287
+ height: "1px",
288
+ margin: "-1px",
289
+ overflow: "hidden",
290
+ padding: 0,
291
+ position: "absolute",
292
+ width: "1px",
293
+ whiteSpace: "nowrap",
294
+ wordWrap: "normal",
295
+ } }, formatCaption(calendarMonth.date, dateLib.options, dateLib)))) : (React__default.createElement(components.CaptionLabel, { className: classNames[UI.CaptionLabel], style: styles?.[UI.CaptionLabel], role: "status", "aria-live": "polite" }, formatCaption(calendarMonth.date, dateLib.options, dateLib)))),
296
+ navLayout === "around" &&
297
+ !props.hideNavigation &&
298
+ displayIndex === numberOfMonths - 1 && (React__default.createElement(components.NextMonthButton, { type: "button", className: classNames[UI.NextMonthButton], style: styles?.[UI.NextMonthButton], tabIndex: nextMonth ? undefined : -1, "aria-disabled": nextMonth ? undefined : true, "aria-label": labelNext(nextMonth), onClick: handleNextClick, "data-animated-button": props.animate ? "true" : undefined },
299
+ React__default.createElement(components.Chevron, { disabled: nextMonth ? undefined : true, className: classNames[UI.Chevron], style: styles?.[UI.Chevron], orientation: props.dir === "rtl" ? "left" : "right" }))),
300
+ displayIndex === numberOfMonths - 1 &&
301
+ navLayout === "after" &&
302
+ !props.hideNavigation && (React__default.createElement(components.Nav, { "data-animated-nav": props.animate ? "true" : undefined, className: classNames[UI.Nav], style: styles?.[UI.Nav], "aria-label": labelNav(), onPreviousClick: handlePreviousClick, onNextClick: handleNextClick, previousMonth: previousMonth, nextMonth: nextMonth })),
303
+ React__default.createElement(components.MonthGrid, { role: "grid", "aria-multiselectable": mode === "multiple" || mode === "range", "aria-label": labelGrid(calendarMonth.date, dateLib.options, dateLib) ||
304
+ undefined, className: classNames[UI.MonthGrid], style: styles?.[UI.MonthGrid] },
305
+ !props.hideWeekdays && (React__default.createElement(components.Weekdays, { "data-animated-weekdays": props.animate ? "true" : undefined, className: classNames[UI.Weekdays], style: styles?.[UI.Weekdays] },
306
+ showWeekNumber && (React__default.createElement(components.WeekNumberHeader, { "aria-label": labelWeekNumberHeader(dateLib.options), className: classNames[UI.WeekNumberHeader], style: styles?.[UI.WeekNumberHeader], scope: "col" }, formatWeekNumberHeader())),
307
+ weekdays.map((weekday) => (React__default.createElement(components.Weekday, { "aria-label": labelWeekday(weekday, dateLib.options, dateLib), className: classNames[UI.Weekday], key: String(weekday), style: styles?.[UI.Weekday], scope: "col" }, formatWeekdayName(weekday, dateLib.options, dateLib)))))),
308
+ React__default.createElement(components.Weeks, { "data-animated-weeks": props.animate ? "true" : undefined, className: classNames[UI.Weeks], style: styles?.[UI.Weeks] }, calendarMonth.weeks.map((week) => {
309
+ return (React__default.createElement(components.Week, { className: classNames[UI.Week], key: week.weekNumber, style: styles?.[UI.Week], week: week },
310
+ showWeekNumber && (React__default.createElement(components.WeekNumber, { week: week, style: styles?.[UI.WeekNumber], "aria-label": labelWeekNumber(week.weekNumber, {
311
+ locale,
312
+ }), className: classNames[UI.WeekNumber], scope: "row", role: "rowheader" }, formatWeekNumber(week.weekNumber, dateLib))),
313
+ week.days.map((day) => {
314
+ const { date } = day;
315
+ const modifiers = getModifiers(day);
316
+ modifiers[DayFlag.focused] =
317
+ !modifiers.hidden &&
318
+ Boolean(focused?.isEqualTo(day));
319
+ modifiers[SelectionState.selected] =
320
+ isSelected?.(date) || modifiers.selected;
321
+ if (isDateRange(selectedValue)) {
322
+ // add range modifiers
323
+ const { from, to } = selectedValue;
324
+ modifiers[SelectionState.range_start] = Boolean(from && to && dateLib.isSameDay(date, from));
325
+ modifiers[SelectionState.range_end] = Boolean(from && to && dateLib.isSameDay(date, to));
326
+ modifiers[SelectionState.range_middle] =
327
+ rangeIncludesDate(selectedValue, date, true, dateLib);
328
+ }
329
+ const style = getStyleForModifiers(modifiers, styles, props.modifiersStyles);
330
+ const className = getClassNamesForModifiers(modifiers, classNames, props.modifiersClassNames);
331
+ const ariaLabel = !isInteractive && !modifiers.hidden
332
+ ? labelGridcell(date, modifiers, dateLib.options, dateLib)
333
+ : undefined;
334
+ return (React__default.createElement(components.Day, { key: `${day.isoDate}_${day.displayMonthId}`, day: day, modifiers: modifiers, className: className.join(" "), style: style, role: "gridcell", "aria-selected": modifiers.selected || undefined, "aria-label": ariaLabel, "data-day": day.isoDate, "data-month": day.outside ? day.dateMonthId : undefined, "data-selected": modifiers.selected || undefined, "data-disabled": modifiers.disabled || undefined, "data-hidden": modifiers.hidden || undefined, "data-outside": day.outside || undefined, "data-focused": modifiers.focused || undefined, "data-today": modifiers.today || undefined }, !modifiers.hidden && isInteractive ? (React__default.createElement(components.DayButton, { className: classNames[UI.DayButton], style: styles?.[UI.DayButton], type: "button", day: day, modifiers: modifiers, disabled: (!modifiers.focused &&
335
+ modifiers.disabled) ||
336
+ undefined, "aria-disabled": (modifiers.focused &&
337
+ modifiers.disabled) ||
338
+ undefined, tabIndex: isFocusTarget(day) ? 0 : -1, "aria-label": labelDayButton(date, modifiers, dateLib.options, dateLib), onClick: handleDayClick(day, modifiers), onBlur: handleDayBlur(day, modifiers), onFocus: handleDayFocus(day, modifiers), onKeyDown: handleDayKeyDown(day, modifiers), onMouseEnter: handleDayMouseEnter(day, modifiers), onMouseLeave: handleDayMouseLeave(day, modifiers) }, formatDay(date, dateLib.options, dateLib))) : (!modifiers.hidden &&
339
+ formatDay(day.date, dateLib.options, dateLib))));
340
+ })));
341
+ })))));
342
+ })),
343
+ props.footer && (React__default.createElement(components.Footer, { className: classNames[UI.Footer], style: styles?.[UI.Footer], role: "status", "aria-live": "polite" }, props.footer)))));
344
+ }
345
+
346
+ export { DayPicker };
347
+ //# sourceMappingURL=DayPicker.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DayPicker.js","sources":["../../../../../node_modules/react-day-picker/dist/esm/DayPicker.js"],"sourcesContent":["import React, { useCallback, useMemo, useRef } from \"react\";\nimport { DateLib, defaultLocale } from \"./classes/DateLib.js\";\nimport { createGetModifiers } from \"./helpers/createGetModifiers.js\";\nimport { getClassNamesForModifiers } from \"./helpers/getClassNamesForModifiers.js\";\nimport { getComponents } from \"./helpers/getComponents.js\";\nimport { getDataAttributes } from \"./helpers/getDataAttributes.js\";\nimport { getDefaultClassNames } from \"./helpers/getDefaultClassNames.js\";\nimport { getFormatters } from \"./helpers/getFormatters.js\";\nimport { getLabels } from \"./helpers/getLabels.js\";\nimport { getMonthOptions } from \"./helpers/getMonthOptions.js\";\nimport { getStyleForModifiers } from \"./helpers/getStyleForModifiers.js\";\nimport { getWeekdays } from \"./helpers/getWeekdays.js\";\nimport { getYearOptions } from \"./helpers/getYearOptions.js\";\nimport { createNoonOverrides } from \"./noonDateLib.js\";\nimport { DayFlag, SelectionState, UI } from \"./UI.js\";\nimport { useAnimation } from \"./useAnimation.js\";\nimport { useCalendar } from \"./useCalendar.js\";\nimport { dayPickerContext } from \"./useDayPicker.js\";\nimport { useFocus } from \"./useFocus.js\";\nimport { useSelection } from \"./useSelection.js\";\nimport { convertMatchersToTimeZone } from \"./utils/convertMatchersToTimeZone.js\";\nimport { rangeIncludesDate } from \"./utils/rangeIncludesDate.js\";\nimport { toTimeZone } from \"./utils/toTimeZone.js\";\nimport { isDateRange } from \"./utils/typeguards.js\";\n/**\n * Renders the DayPicker calendar component.\n *\n * @param initialProps - The props for the DayPicker component.\n * @returns The rendered DayPicker component.\n * @group DayPicker\n * @see https://daypicker.dev\n */\nexport function DayPicker(initialProps) {\n let props = initialProps;\n const timeZone = props.timeZone;\n if (timeZone) {\n props = {\n ...initialProps,\n timeZone,\n };\n if (props.today) {\n props.today = toTimeZone(props.today, timeZone);\n }\n if (props.month) {\n props.month = toTimeZone(props.month, timeZone);\n }\n if (props.defaultMonth) {\n props.defaultMonth = toTimeZone(props.defaultMonth, timeZone);\n }\n if (props.startMonth) {\n props.startMonth = toTimeZone(props.startMonth, timeZone);\n }\n if (props.endMonth) {\n props.endMonth = toTimeZone(props.endMonth, timeZone);\n }\n if (props.mode === \"single\" && props.selected) {\n props.selected = toTimeZone(props.selected, timeZone);\n }\n else if (props.mode === \"multiple\" && props.selected) {\n props.selected = props.selected?.map((date) => toTimeZone(date, timeZone));\n }\n else if (props.mode === \"range\" && props.selected) {\n props.selected = {\n from: props.selected.from\n ? toTimeZone(props.selected.from, timeZone)\n : props.selected.from,\n to: props.selected.to\n ? toTimeZone(props.selected.to, timeZone)\n : props.selected.to,\n };\n }\n if (props.disabled !== undefined) {\n props.disabled = convertMatchersToTimeZone(props.disabled, timeZone);\n }\n if (props.hidden !== undefined) {\n props.hidden = convertMatchersToTimeZone(props.hidden, timeZone);\n }\n if (props.modifiers) {\n const nextModifiers = {};\n Object.keys(props.modifiers).forEach((key) => {\n nextModifiers[key] = convertMatchersToTimeZone(props.modifiers?.[key], timeZone);\n });\n props.modifiers = nextModifiers;\n }\n }\n const { components, formatters, labels, dateLib, locale, classNames } = useMemo(() => {\n const locale = { ...defaultLocale, ...props.locale };\n const weekStartsOn = props.broadcastCalendar ? 1 : props.weekStartsOn;\n const noonOverrides = props.noonSafe && props.timeZone\n ? createNoonOverrides(props.timeZone, {\n weekStartsOn,\n locale,\n })\n : undefined;\n const overrides = props.dateLib && noonOverrides\n ? { ...noonOverrides, ...props.dateLib }\n : (props.dateLib ?? noonOverrides);\n const dateLib = new DateLib({\n locale,\n weekStartsOn,\n firstWeekContainsDate: props.firstWeekContainsDate,\n useAdditionalWeekYearTokens: props.useAdditionalWeekYearTokens,\n useAdditionalDayOfYearTokens: props.useAdditionalDayOfYearTokens,\n timeZone: props.timeZone,\n numerals: props.numerals,\n }, overrides);\n return {\n dateLib,\n components: getComponents(props.components),\n formatters: getFormatters(props.formatters),\n labels: getLabels(props.labels, dateLib.options),\n locale,\n classNames: { ...getDefaultClassNames(), ...props.classNames },\n };\n }, [\n props.locale,\n props.broadcastCalendar,\n props.weekStartsOn,\n props.firstWeekContainsDate,\n props.useAdditionalWeekYearTokens,\n props.useAdditionalDayOfYearTokens,\n props.timeZone,\n props.numerals,\n props.dateLib,\n props.noonSafe,\n props.components,\n props.formatters,\n props.labels,\n props.classNames,\n ]);\n if (!props.today) {\n props = { ...props, today: dateLib.today() };\n }\n const { captionLayout, mode, navLayout, numberOfMonths = 1, onDayBlur, onDayClick, onDayFocus, onDayKeyDown, onDayMouseEnter, onDayMouseLeave, onNextClick, onPrevClick, showWeekNumber, styles, } = props;\n const { formatCaption, formatDay, formatMonthDropdown, formatWeekNumber, formatWeekNumberHeader, formatWeekdayName, formatYearDropdown, } = formatters;\n const calendar = useCalendar(props, dateLib);\n const { days, months, navStart, navEnd, previousMonth, nextMonth, goToMonth, } = calendar;\n const getModifiers = createGetModifiers(days, props, navStart, navEnd, dateLib);\n const { isSelected, select, selected: selectedValue, } = useSelection(props, dateLib) ?? {};\n const { blur, focused, isFocusTarget, moveFocus, setFocused } = useFocus(props, calendar, getModifiers, isSelected ?? (() => false), dateLib);\n const { labelDayButton, labelGridcell, labelGrid, labelMonthDropdown, labelNav, labelPrevious, labelNext, labelWeekday, labelWeekNumber, labelWeekNumberHeader, labelYearDropdown, } = labels;\n const weekdays = useMemo(() => getWeekdays(dateLib, props.ISOWeek, props.broadcastCalendar, props.today), [dateLib, props.ISOWeek, props.broadcastCalendar, props.today]);\n const isInteractive = mode !== undefined || onDayClick !== undefined;\n const handlePreviousClick = useCallback(() => {\n if (!previousMonth)\n return;\n goToMonth(previousMonth);\n onPrevClick?.(previousMonth);\n }, [previousMonth, goToMonth, onPrevClick]);\n const handleNextClick = useCallback(() => {\n if (!nextMonth)\n return;\n goToMonth(nextMonth);\n onNextClick?.(nextMonth);\n }, [goToMonth, nextMonth, onNextClick]);\n const handleDayClick = useCallback((day, m) => (e) => {\n e.preventDefault();\n e.stopPropagation();\n setFocused(day);\n if (m.disabled) {\n return;\n }\n select?.(day.date, m, e);\n onDayClick?.(day.date, m, e);\n }, [select, onDayClick, setFocused]);\n const handleDayFocus = useCallback((day, m) => (e) => {\n setFocused(day);\n onDayFocus?.(day.date, m, e);\n }, [onDayFocus, setFocused]);\n const handleDayBlur = useCallback((day, m) => (e) => {\n blur();\n onDayBlur?.(day.date, m, e);\n }, [blur, onDayBlur]);\n const handleDayKeyDown = useCallback((day, modifiers) => (e) => {\n const keyMap = {\n ArrowLeft: [\n e.shiftKey ? \"month\" : \"day\",\n props.dir === \"rtl\" ? \"after\" : \"before\",\n ],\n ArrowRight: [\n e.shiftKey ? \"month\" : \"day\",\n props.dir === \"rtl\" ? \"before\" : \"after\",\n ],\n ArrowDown: [e.shiftKey ? \"year\" : \"week\", \"after\"],\n ArrowUp: [e.shiftKey ? \"year\" : \"week\", \"before\"],\n PageUp: [e.shiftKey ? \"year\" : \"month\", \"before\"],\n PageDown: [e.shiftKey ? \"year\" : \"month\", \"after\"],\n Home: [\"startOfWeek\", \"before\"],\n End: [\"endOfWeek\", \"after\"],\n };\n if (keyMap[e.key]) {\n e.preventDefault();\n e.stopPropagation();\n const [moveBy, moveDir] = keyMap[e.key];\n moveFocus(moveBy, moveDir);\n }\n onDayKeyDown?.(day.date, modifiers, e);\n }, [moveFocus, onDayKeyDown, props.dir]);\n const handleDayMouseEnter = useCallback((day, modifiers) => (e) => {\n onDayMouseEnter?.(day.date, modifiers, e);\n }, [onDayMouseEnter]);\n const handleDayMouseLeave = useCallback((day, modifiers) => (e) => {\n onDayMouseLeave?.(day.date, modifiers, e);\n }, [onDayMouseLeave]);\n const handleMonthChange = useCallback((date, monthOffset) => (e) => {\n const selectedMonth = Number(e.target.value);\n const month = dateLib.setMonth(dateLib.startOfMonth(date), selectedMonth);\n goToMonth(dateLib.addMonths(month, -monthOffset));\n }, [dateLib, goToMonth]);\n const handleYearChange = useCallback((date, monthOffset) => (e) => {\n const selectedYear = Number(e.target.value);\n const month = dateLib.setYear(dateLib.startOfMonth(date), selectedYear);\n goToMonth(dateLib.addMonths(month, -monthOffset));\n }, [dateLib, goToMonth]);\n const { className, style } = useMemo(() => ({\n className: [classNames[UI.Root], props.className]\n .filter(Boolean)\n .join(\" \"),\n style: { ...styles?.[UI.Root], ...props.style },\n }), [classNames, props.className, props.style, styles]);\n const dataAttributes = getDataAttributes(props);\n const getDropdownStyle = (dropdown) => {\n const dropdownStyle = styles?.[UI.Dropdown];\n const specificDropdownStyle = styles?.[dropdown];\n if (!dropdownStyle && !specificDropdownStyle) {\n return undefined;\n }\n return {\n ...dropdownStyle,\n ...specificDropdownStyle,\n };\n };\n const rootElRef = useRef(null);\n useAnimation(rootElRef, Boolean(props.animate), {\n classNames,\n months,\n focused,\n dateLib,\n });\n const contextValue = {\n dayPickerProps: props,\n selected: selectedValue,\n select: select,\n isSelected,\n months,\n nextMonth,\n previousMonth,\n goToMonth,\n getModifiers,\n components,\n classNames,\n styles,\n labels,\n formatters,\n };\n return (React.createElement(dayPickerContext.Provider, { value: contextValue },\n React.createElement(components.Root, { rootRef: props.animate ? rootElRef : undefined, className: className, style: style, dir: props.dir, id: props.id, lang: props.lang ?? locale.code, nonce: props.nonce, title: props.title, role: props.role, \"aria-label\": props[\"aria-label\"], \"aria-labelledby\": props[\"aria-labelledby\"], ...dataAttributes },\n React.createElement(components.Months, { className: classNames[UI.Months], style: styles?.[UI.Months] },\n !props.hideNavigation && !navLayout && (React.createElement(components.Nav, { \"data-animated-nav\": props.animate ? \"true\" : undefined, className: classNames[UI.Nav], style: styles?.[UI.Nav], \"aria-label\": labelNav(), onPreviousClick: handlePreviousClick, onNextClick: handleNextClick, previousMonth: previousMonth, nextMonth: nextMonth })),\n months.map((calendarMonth, displayIndex) => {\n const monthOffset = props.reverseMonths\n ? months.length - 1 - displayIndex\n : displayIndex;\n return (React.createElement(components.Month, { \"data-animated-month\": props.animate ? \"true\" : undefined, className: classNames[UI.Month], style: styles?.[UI.Month], \n // biome-ignore lint/suspicious/noArrayIndexKey: breaks animation\n key: displayIndex, displayIndex: displayIndex, calendarMonth: calendarMonth },\n navLayout === \"around\" &&\n !props.hideNavigation &&\n displayIndex === 0 && (React.createElement(components.PreviousMonthButton, { type: \"button\", className: classNames[UI.PreviousMonthButton], style: styles?.[UI.PreviousMonthButton], tabIndex: previousMonth ? undefined : -1, \"aria-disabled\": previousMonth ? undefined : true, \"aria-label\": labelPrevious(previousMonth), onClick: handlePreviousClick, \"data-animated-button\": props.animate ? \"true\" : undefined },\n React.createElement(components.Chevron, { disabled: previousMonth ? undefined : true, className: classNames[UI.Chevron], style: styles?.[UI.Chevron], orientation: props.dir === \"rtl\" ? \"right\" : \"left\" }))),\n React.createElement(components.MonthCaption, { \"data-animated-caption\": props.animate ? \"true\" : undefined, className: classNames[UI.MonthCaption], style: styles?.[UI.MonthCaption], calendarMonth: calendarMonth, displayIndex: displayIndex }, captionLayout?.startsWith(\"dropdown\") ? (React.createElement(components.DropdownNav, { className: classNames[UI.Dropdowns], style: styles?.[UI.Dropdowns] },\n (() => {\n const monthControl = captionLayout === \"dropdown\" ||\n captionLayout === \"dropdown-months\" ? (React.createElement(components.MonthsDropdown, { key: \"month\", className: classNames[UI.MonthsDropdown], \"aria-label\": labelMonthDropdown(), disabled: Boolean(props.disableNavigation), onChange: handleMonthChange(calendarMonth.date, monthOffset), options: getMonthOptions(calendarMonth.date, navStart, navEnd, formatters, dateLib), style: getDropdownStyle(UI.MonthsDropdown), value: dateLib.getMonth(calendarMonth.date) })) : (React.createElement(\"span\", { key: \"month\" }, formatMonthDropdown(calendarMonth.date, dateLib)));\n const yearControl = captionLayout === \"dropdown\" ||\n captionLayout === \"dropdown-years\" ? (React.createElement(components.YearsDropdown, { key: \"year\", className: classNames[UI.YearsDropdown], \"aria-label\": labelYearDropdown(dateLib.options), disabled: Boolean(props.disableNavigation), onChange: handleYearChange(calendarMonth.date, monthOffset), options: getYearOptions(navStart, navEnd, formatters, dateLib, Boolean(props.reverseYears)), style: getDropdownStyle(UI.YearsDropdown), value: dateLib.getYear(calendarMonth.date) })) : (React.createElement(\"span\", { key: \"year\" }, formatYearDropdown(calendarMonth.date, dateLib)));\n const controls = dateLib.getMonthYearOrder() === \"year-first\"\n ? [yearControl, monthControl]\n : [monthControl, yearControl];\n return controls;\n })(),\n React.createElement(\"span\", { role: \"status\", \"aria-live\": \"polite\", style: {\n border: 0,\n clip: \"rect(0 0 0 0)\",\n height: \"1px\",\n margin: \"-1px\",\n overflow: \"hidden\",\n padding: 0,\n position: \"absolute\",\n width: \"1px\",\n whiteSpace: \"nowrap\",\n wordWrap: \"normal\",\n } }, formatCaption(calendarMonth.date, dateLib.options, dateLib)))) : (React.createElement(components.CaptionLabel, { className: classNames[UI.CaptionLabel], style: styles?.[UI.CaptionLabel], role: \"status\", \"aria-live\": \"polite\" }, formatCaption(calendarMonth.date, dateLib.options, dateLib)))),\n navLayout === \"around\" &&\n !props.hideNavigation &&\n displayIndex === numberOfMonths - 1 && (React.createElement(components.NextMonthButton, { type: \"button\", className: classNames[UI.NextMonthButton], style: styles?.[UI.NextMonthButton], tabIndex: nextMonth ? undefined : -1, \"aria-disabled\": nextMonth ? undefined : true, \"aria-label\": labelNext(nextMonth), onClick: handleNextClick, \"data-animated-button\": props.animate ? \"true\" : undefined },\n React.createElement(components.Chevron, { disabled: nextMonth ? undefined : true, className: classNames[UI.Chevron], style: styles?.[UI.Chevron], orientation: props.dir === \"rtl\" ? \"left\" : \"right\" }))),\n displayIndex === numberOfMonths - 1 &&\n navLayout === \"after\" &&\n !props.hideNavigation && (React.createElement(components.Nav, { \"data-animated-nav\": props.animate ? \"true\" : undefined, className: classNames[UI.Nav], style: styles?.[UI.Nav], \"aria-label\": labelNav(), onPreviousClick: handlePreviousClick, onNextClick: handleNextClick, previousMonth: previousMonth, nextMonth: nextMonth })),\n React.createElement(components.MonthGrid, { role: \"grid\", \"aria-multiselectable\": mode === \"multiple\" || mode === \"range\", \"aria-label\": labelGrid(calendarMonth.date, dateLib.options, dateLib) ||\n undefined, className: classNames[UI.MonthGrid], style: styles?.[UI.MonthGrid] },\n !props.hideWeekdays && (React.createElement(components.Weekdays, { \"data-animated-weekdays\": props.animate ? \"true\" : undefined, className: classNames[UI.Weekdays], style: styles?.[UI.Weekdays] },\n showWeekNumber && (React.createElement(components.WeekNumberHeader, { \"aria-label\": labelWeekNumberHeader(dateLib.options), className: classNames[UI.WeekNumberHeader], style: styles?.[UI.WeekNumberHeader], scope: \"col\" }, formatWeekNumberHeader())),\n weekdays.map((weekday) => (React.createElement(components.Weekday, { \"aria-label\": labelWeekday(weekday, dateLib.options, dateLib), className: classNames[UI.Weekday], key: String(weekday), style: styles?.[UI.Weekday], scope: \"col\" }, formatWeekdayName(weekday, dateLib.options, dateLib)))))),\n React.createElement(components.Weeks, { \"data-animated-weeks\": props.animate ? \"true\" : undefined, className: classNames[UI.Weeks], style: styles?.[UI.Weeks] }, calendarMonth.weeks.map((week) => {\n return (React.createElement(components.Week, { className: classNames[UI.Week], key: week.weekNumber, style: styles?.[UI.Week], week: week },\n showWeekNumber && (React.createElement(components.WeekNumber, { week: week, style: styles?.[UI.WeekNumber], \"aria-label\": labelWeekNumber(week.weekNumber, {\n locale,\n }), className: classNames[UI.WeekNumber], scope: \"row\", role: \"rowheader\" }, formatWeekNumber(week.weekNumber, dateLib))),\n week.days.map((day) => {\n const { date } = day;\n const modifiers = getModifiers(day);\n modifiers[DayFlag.focused] =\n !modifiers.hidden &&\n Boolean(focused?.isEqualTo(day));\n modifiers[SelectionState.selected] =\n isSelected?.(date) || modifiers.selected;\n if (isDateRange(selectedValue)) {\n // add range modifiers\n const { from, to } = selectedValue;\n modifiers[SelectionState.range_start] = Boolean(from && to && dateLib.isSameDay(date, from));\n modifiers[SelectionState.range_end] = Boolean(from && to && dateLib.isSameDay(date, to));\n modifiers[SelectionState.range_middle] =\n rangeIncludesDate(selectedValue, date, true, dateLib);\n }\n const style = getStyleForModifiers(modifiers, styles, props.modifiersStyles);\n const className = getClassNamesForModifiers(modifiers, classNames, props.modifiersClassNames);\n const ariaLabel = !isInteractive && !modifiers.hidden\n ? labelGridcell(date, modifiers, dateLib.options, dateLib)\n : undefined;\n return (React.createElement(components.Day, { key: `${day.isoDate}_${day.displayMonthId}`, day: day, modifiers: modifiers, className: className.join(\" \"), style: style, role: \"gridcell\", \"aria-selected\": modifiers.selected || undefined, \"aria-label\": ariaLabel, \"data-day\": day.isoDate, \"data-month\": day.outside ? day.dateMonthId : undefined, \"data-selected\": modifiers.selected || undefined, \"data-disabled\": modifiers.disabled || undefined, \"data-hidden\": modifiers.hidden || undefined, \"data-outside\": day.outside || undefined, \"data-focused\": modifiers.focused || undefined, \"data-today\": modifiers.today || undefined }, !modifiers.hidden && isInteractive ? (React.createElement(components.DayButton, { className: classNames[UI.DayButton], style: styles?.[UI.DayButton], type: \"button\", day: day, modifiers: modifiers, disabled: (!modifiers.focused &&\n modifiers.disabled) ||\n undefined, \"aria-disabled\": (modifiers.focused &&\n modifiers.disabled) ||\n undefined, tabIndex: isFocusTarget(day) ? 0 : -1, \"aria-label\": labelDayButton(date, modifiers, dateLib.options, dateLib), onClick: handleDayClick(day, modifiers), onBlur: handleDayBlur(day, modifiers), onFocus: handleDayFocus(day, modifiers), onKeyDown: handleDayKeyDown(day, modifiers), onMouseEnter: handleDayMouseEnter(day, modifiers), onMouseLeave: handleDayMouseLeave(day, modifiers) }, formatDay(date, dateLib.options, dateLib))) : (!modifiers.hidden &&\n formatDay(day.date, dateLib.options, dateLib))));\n })));\n })))));\n })),\n props.footer && (React.createElement(components.Footer, { className: classNames[UI.Footer], style: styles?.[UI.Footer], role: \"status\", \"aria-live\": \"polite\" }, props.footer)))));\n}\n"],"names":["defaultLocale","React"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAwBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAAS,SAAS,CAAC,YAAY,EAAE;AACxC,IAAI,IAAI,KAAK,GAAG,YAAY;AAC5B,IAAI,MAAM,QAAQ,GAAG,KAAK,CAAC,QAAQ;AACnC,IAAI,IAAI,QAAQ,EAAE;AAClB,QAAQ,KAAK,GAAG;AAChB,YAAY,GAAG,YAAY;AAC3B,YAAY,QAAQ;AACpB,SAAS;AACT,QAAQ,IAAI,KAAK,CAAC,KAAK,EAAE;AACzB,YAAY,KAAK,CAAC,KAAK,GAAG,UAAU,CAAC,KAAK,CAAC,KAAK,EAAE,QAAQ,CAAC;AAC3D,QAAQ;AACR,QAAQ,IAAI,KAAK,CAAC,KAAK,EAAE;AACzB,YAAY,KAAK,CAAC,KAAK,GAAG,UAAU,CAAC,KAAK,CAAC,KAAK,EAAE,QAAQ,CAAC;AAC3D,QAAQ;AACR,QAAQ,IAAI,KAAK,CAAC,YAAY,EAAE;AAChC,YAAY,KAAK,CAAC,YAAY,GAAG,UAAU,CAAC,KAAK,CAAC,YAAY,EAAE,QAAQ,CAAC;AACzE,QAAQ;AACR,QAAQ,IAAI,KAAK,CAAC,UAAU,EAAE;AAC9B,YAAY,KAAK,CAAC,UAAU,GAAG,UAAU,CAAC,KAAK,CAAC,UAAU,EAAE,QAAQ,CAAC;AACrE,QAAQ;AACR,QAAQ,IAAI,KAAK,CAAC,QAAQ,EAAE;AAC5B,YAAY,KAAK,CAAC,QAAQ,GAAG,UAAU,CAAC,KAAK,CAAC,QAAQ,EAAE,QAAQ,CAAC;AACjE,QAAQ;AACR,QAAQ,IAAI,KAAK,CAAC,IAAI,KAAK,QAAQ,IAAI,KAAK,CAAC,QAAQ,EAAE;AACvD,YAA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AAC,IAAI,EAAE,OAAO,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;AAC3F,oCAAoC,CAAC,CAAC,CAAC;AACvC,4BAA4B,CAAC,CAAC,CAAC,CAAC,CAAC;AACjC,gBAAgB,CAAC,CAAC,CAAC;AACnB,YAAY,KAAK,CAAC,MAAM,KAAKA,cAAK,CAAC,aAAa,CAAC,UAAU,CAAC,MAAM,EAAE,EAAE,SAAS,EAAE,UAAU,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,MAAM,GAAG,EAAE,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;AAC7L;;;;","x_google_ignoreList":[0]}
@@ -0,0 +1,123 @@
1
+ /**
2
+ * Enum representing the UI elements composing DayPicker. These elements are
3
+ * mapped to {@link CustomComponents}, {@link ClassNames}, and {@link Styles}.
4
+ *
5
+ * Some elements are extended by flags and modifiers.
6
+ */
7
+ var UI;
8
+ (function (UI) {
9
+ /** The root component displaying the months and the navigation bar. */
10
+ UI["Root"] = "root";
11
+ /** The Chevron SVG element used by navigation buttons and dropdowns. */
12
+ UI["Chevron"] = "chevron";
13
+ /**
14
+ * The grid cell with the day's date. Extended by {@link DayFlag} and
15
+ * {@link SelectionState}.
16
+ */
17
+ UI["Day"] = "day";
18
+ /** The button containing the formatted day's date, inside the grid cell. */
19
+ UI["DayButton"] = "day_button";
20
+ /** The caption label of the month (when not showing the dropdown navigation). */
21
+ UI["CaptionLabel"] = "caption_label";
22
+ /** The container of the dropdown navigation (when enabled). */
23
+ UI["Dropdowns"] = "dropdowns";
24
+ /** The dropdown element to select for years and months. */
25
+ UI["Dropdown"] = "dropdown";
26
+ /** The container element of the dropdown. */
27
+ UI["DropdownRoot"] = "dropdown_root";
28
+ /** The root element of the footer. */
29
+ UI["Footer"] = "footer";
30
+ /** The month grid. */
31
+ UI["MonthGrid"] = "month_grid";
32
+ /** Contains the dropdown navigation or the caption label. */
33
+ UI["MonthCaption"] = "month_caption";
34
+ /** The dropdown with the months. */
35
+ UI["MonthsDropdown"] = "months_dropdown";
36
+ /** Wrapper of the month grid. */
37
+ UI["Month"] = "month";
38
+ /** The container of the displayed months. */
39
+ UI["Months"] = "months";
40
+ /** The navigation bar with the previous and next buttons. */
41
+ UI["Nav"] = "nav";
42
+ /**
43
+ * The next month button in the navigation. *
44
+ *
45
+ * @since 9.1.0
46
+ */
47
+ UI["NextMonthButton"] = "button_next";
48
+ /**
49
+ * The previous month button in the navigation.
50
+ *
51
+ * @since 9.1.0
52
+ */
53
+ UI["PreviousMonthButton"] = "button_previous";
54
+ /** The row containing the week. */
55
+ UI["Week"] = "week";
56
+ /** The group of row weeks in a month (`tbody`). */
57
+ UI["Weeks"] = "weeks";
58
+ /** The column header with the weekday. */
59
+ UI["Weekday"] = "weekday";
60
+ /** The row grouping the weekdays in the column headers. */
61
+ UI["Weekdays"] = "weekdays";
62
+ /** The cell containing the week number. */
63
+ UI["WeekNumber"] = "week_number";
64
+ /** The cell header of the week numbers column. */
65
+ UI["WeekNumberHeader"] = "week_number_header";
66
+ /** The dropdown with the years. */
67
+ UI["YearsDropdown"] = "years_dropdown";
68
+ })(UI || (UI = {}));
69
+ /** Enum representing flags for the {@link UI | UI.Day} element. */
70
+ var DayFlag;
71
+ (function (DayFlag) {
72
+ /** The day is disabled. */
73
+ DayFlag["disabled"] = "disabled";
74
+ /** The day is hidden. */
75
+ DayFlag["hidden"] = "hidden";
76
+ /** The day is outside the current month. */
77
+ DayFlag["outside"] = "outside";
78
+ /** The day is focused. */
79
+ DayFlag["focused"] = "focused";
80
+ /** The day is today. */
81
+ DayFlag["today"] = "today";
82
+ })(DayFlag || (DayFlag = {}));
83
+ /**
84
+ * Enum representing selection states that can be applied to the
85
+ * {@link UI | UI.Day} element in selection mode.
86
+ */
87
+ var SelectionState;
88
+ (function (SelectionState) {
89
+ /** The day is at the end of a selected range. */
90
+ SelectionState["range_end"] = "range_end";
91
+ /** The day is at the middle of a selected range. */
92
+ SelectionState["range_middle"] = "range_middle";
93
+ /** The day is at the start of a selected range. */
94
+ SelectionState["range_start"] = "range_start";
95
+ /** The day is selected. */
96
+ SelectionState["selected"] = "selected";
97
+ })(SelectionState || (SelectionState = {}));
98
+ /**
99
+ * Enum representing different animation states for transitioning between
100
+ * months.
101
+ */
102
+ var Animation;
103
+ (function (Animation) {
104
+ /** The entering weeks when they appear before the exiting month. */
105
+ Animation["weeks_before_enter"] = "weeks_before_enter";
106
+ /** The exiting weeks when they disappear before the entering month. */
107
+ Animation["weeks_before_exit"] = "weeks_before_exit";
108
+ /** The entering weeks when they appear after the exiting month. */
109
+ Animation["weeks_after_enter"] = "weeks_after_enter";
110
+ /** The exiting weeks when they disappear after the entering month. */
111
+ Animation["weeks_after_exit"] = "weeks_after_exit";
112
+ /** The entering caption when it appears after the exiting month. */
113
+ Animation["caption_after_enter"] = "caption_after_enter";
114
+ /** The exiting caption when it disappears after the entering month. */
115
+ Animation["caption_after_exit"] = "caption_after_exit";
116
+ /** The entering caption when it appears before the exiting month. */
117
+ Animation["caption_before_enter"] = "caption_before_enter";
118
+ /** The exiting caption when it disappears before the entering month. */
119
+ Animation["caption_before_exit"] = "caption_before_exit";
120
+ })(Animation || (Animation = {}));
121
+
122
+ export { Animation, DayFlag, SelectionState, UI };
123
+ //# sourceMappingURL=UI.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UI.js","sources":["../../../../../node_modules/react-day-picker/dist/esm/UI.js"],"sourcesContent":["/**\n * Enum representing the UI elements composing DayPicker. These elements are\n * mapped to {@link CustomComponents}, {@link ClassNames}, and {@link Styles}.\n *\n * Some elements are extended by flags and modifiers.\n */\nexport var UI;\n(function (UI) {\n /** The root component displaying the months and the navigation bar. */\n UI[\"Root\"] = \"root\";\n /** The Chevron SVG element used by navigation buttons and dropdowns. */\n UI[\"Chevron\"] = \"chevron\";\n /**\n * The grid cell with the day's date. Extended by {@link DayFlag} and\n * {@link SelectionState}.\n */\n UI[\"Day\"] = \"day\";\n /** The button containing the formatted day's date, inside the grid cell. */\n UI[\"DayButton\"] = \"day_button\";\n /** The caption label of the month (when not showing the dropdown navigation). */\n UI[\"CaptionLabel\"] = \"caption_label\";\n /** The container of the dropdown navigation (when enabled). */\n UI[\"Dropdowns\"] = \"dropdowns\";\n /** The dropdown element to select for years and months. */\n UI[\"Dropdown\"] = \"dropdown\";\n /** The container element of the dropdown. */\n UI[\"DropdownRoot\"] = \"dropdown_root\";\n /** The root element of the footer. */\n UI[\"Footer\"] = \"footer\";\n /** The month grid. */\n UI[\"MonthGrid\"] = \"month_grid\";\n /** Contains the dropdown navigation or the caption label. */\n UI[\"MonthCaption\"] = \"month_caption\";\n /** The dropdown with the months. */\n UI[\"MonthsDropdown\"] = \"months_dropdown\";\n /** Wrapper of the month grid. */\n UI[\"Month\"] = \"month\";\n /** The container of the displayed months. */\n UI[\"Months\"] = \"months\";\n /** The navigation bar with the previous and next buttons. */\n UI[\"Nav\"] = \"nav\";\n /**\n * The next month button in the navigation. *\n *\n * @since 9.1.0\n */\n UI[\"NextMonthButton\"] = \"button_next\";\n /**\n * The previous month button in the navigation.\n *\n * @since 9.1.0\n */\n UI[\"PreviousMonthButton\"] = \"button_previous\";\n /** The row containing the week. */\n UI[\"Week\"] = \"week\";\n /** The group of row weeks in a month (`tbody`). */\n UI[\"Weeks\"] = \"weeks\";\n /** The column header with the weekday. */\n UI[\"Weekday\"] = \"weekday\";\n /** The row grouping the weekdays in the column headers. */\n UI[\"Weekdays\"] = \"weekdays\";\n /** The cell containing the week number. */\n UI[\"WeekNumber\"] = \"week_number\";\n /** The cell header of the week numbers column. */\n UI[\"WeekNumberHeader\"] = \"week_number_header\";\n /** The dropdown with the years. */\n UI[\"YearsDropdown\"] = \"years_dropdown\";\n})(UI || (UI = {}));\n/** Enum representing flags for the {@link UI | UI.Day} element. */\nexport var DayFlag;\n(function (DayFlag) {\n /** The day is disabled. */\n DayFlag[\"disabled\"] = \"disabled\";\n /** The day is hidden. */\n DayFlag[\"hidden\"] = \"hidden\";\n /** The day is outside the current month. */\n DayFlag[\"outside\"] = \"outside\";\n /** The day is focused. */\n DayFlag[\"focused\"] = \"focused\";\n /** The day is today. */\n DayFlag[\"today\"] = \"today\";\n})(DayFlag || (DayFlag = {}));\n/**\n * Enum representing selection states that can be applied to the\n * {@link UI | UI.Day} element in selection mode.\n */\nexport var SelectionState;\n(function (SelectionState) {\n /** The day is at the end of a selected range. */\n SelectionState[\"range_end\"] = \"range_end\";\n /** The day is at the middle of a selected range. */\n SelectionState[\"range_middle\"] = \"range_middle\";\n /** The day is at the start of a selected range. */\n SelectionState[\"range_start\"] = \"range_start\";\n /** The day is selected. */\n SelectionState[\"selected\"] = \"selected\";\n})(SelectionState || (SelectionState = {}));\n/**\n * Enum representing different animation states for transitioning between\n * months.\n */\nexport var Animation;\n(function (Animation) {\n /** The entering weeks when they appear before the exiting month. */\n Animation[\"weeks_before_enter\"] = \"weeks_before_enter\";\n /** The exiting weeks when they disappear before the entering month. */\n Animation[\"weeks_before_exit\"] = \"weeks_before_exit\";\n /** The entering weeks when they appear after the exiting month. */\n Animation[\"weeks_after_enter\"] = \"weeks_after_enter\";\n /** The exiting weeks when they disappear after the entering month. */\n Animation[\"weeks_after_exit\"] = \"weeks_after_exit\";\n /** The entering caption when it appears after the exiting month. */\n Animation[\"caption_after_enter\"] = \"caption_after_enter\";\n /** The exiting caption when it disappears after the entering month. */\n Animation[\"caption_after_exit\"] = \"caption_after_exit\";\n /** The entering caption when it appears before the exiting month. */\n Animation[\"caption_before_enter\"] = \"caption_before_enter\";\n /** The exiting caption when it disappears before the entering month. */\n Animation[\"caption_before_exit\"] = \"caption_before_exit\";\n})(Animation || (Animation = {}));\n"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACU,IAAC;AACX,CAAC,UAAU,EAAE,EAAE;AACf;AACA,IAAI,EAAE,CAAC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IAAI,SAAS,CAAC,oBAAoB,CAAC,GAAG,oBAAoB;AAC1D;AACA,IAAI,SAAS,CAAC,sBAAsB,CAAC,GAAG,sBAAsB;AAC9D;AACA,IAAI,SAAS,CAAC,qBAAqB,CAAC,GAAG,qBAAqB;AAC5D,CAAC,EAAE,SAAS,KAAK,SAAS,GAAG,EAAE,CAAC,CAAC;;;;","x_google_ignoreList":[0]}
@@ -0,0 +1,34 @@
1
+ import { defaultDateLib } from './DateLib.js';
2
+
3
+ /**
4
+ * Represents a day displayed in the calendar.
5
+ *
6
+ * In DayPicker, a `CalendarDay` is a wrapper around a `Date` object that
7
+ * provides additional information about the day, such as whether it belongs to
8
+ * the displayed month.
9
+ */
10
+ class CalendarDay {
11
+ constructor(date, displayMonth, dateLib = defaultDateLib) {
12
+ this.date = date;
13
+ this.displayMonth = displayMonth;
14
+ this.outside = Boolean(displayMonth && !dateLib.isSameMonth(date, displayMonth));
15
+ this.dateLib = dateLib;
16
+ this.isoDate = dateLib.format(date, "yyyy-MM-dd");
17
+ this.displayMonthId = dateLib.format(displayMonth, "yyyy-MM");
18
+ this.dateMonthId = dateLib.format(date, "yyyy-MM");
19
+ }
20
+ /**
21
+ * Checks if this day is equal to another `CalendarDay`, considering both the
22
+ * date and the displayed month.
23
+ *
24
+ * @param day The `CalendarDay` to compare with.
25
+ * @returns `true` if the days are equal, otherwise `false`.
26
+ */
27
+ isEqualTo(day) {
28
+ return (this.dateLib.isSameDay(day.date, this.date) &&
29
+ this.dateLib.isSameMonth(day.displayMonth, this.displayMonth));
30
+ }
31
+ }
32
+
33
+ export { CalendarDay };
34
+ //# sourceMappingURL=CalendarDay.js.map