@betterinternship/components 1.5.28 → 1.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (399) 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 +0 -1
  63. package/dist/hooks/useClientProcess.js.map +1 -1
  64. package/dist/index.css.js +1 -1
  65. package/dist/index.d.ts +19 -1
  66. package/dist/index.esm.js +3761 -3761
  67. package/dist/index.js +19 -1
  68. package/dist/index.js.map +1 -1
  69. package/dist/node_modules/@date-fns/tz/date/index.js +84 -0
  70. package/dist/node_modules/@date-fns/tz/date/index.js.map +1 -0
  71. package/dist/node_modules/@date-fns/tz/date/mini.js +451 -0
  72. package/dist/node_modules/@date-fns/tz/date/mini.js.map +1 -0
  73. package/dist/node_modules/@date-fns/tz/tzName/index.js +40 -0
  74. package/dist/node_modules/@date-fns/tz/tzName/index.js.map +1 -0
  75. package/dist/node_modules/@date-fns/tz/tzOffset/index.js +57 -0
  76. package/dist/node_modules/@date-fns/tz/tzOffset/index.js.map +1 -0
  77. package/dist/node_modules/date-fns/_lib/addLeadingZeros.js +8 -0
  78. package/dist/node_modules/date-fns/_lib/addLeadingZeros.js.map +1 -0
  79. package/dist/node_modules/date-fns/_lib/defaultOptions.js +8 -0
  80. package/dist/node_modules/date-fns/_lib/defaultOptions.js.map +1 -0
  81. package/dist/node_modules/date-fns/_lib/format/formatters.js +776 -0
  82. package/dist/node_modules/date-fns/_lib/format/formatters.js.map +1 -0
  83. package/dist/node_modules/date-fns/_lib/format/lightFormatters.js +95 -0
  84. package/dist/node_modules/date-fns/_lib/format/lightFormatters.js.map +1 -0
  85. package/dist/node_modules/date-fns/_lib/format/longFormatters.js +67 -0
  86. package/dist/node_modules/date-fns/_lib/format/longFormatters.js.map +1 -0
  87. package/dist/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js +32 -0
  88. package/dist/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js.map +1 -0
  89. package/dist/node_modules/date-fns/_lib/normalizeDates.js +12 -0
  90. package/dist/node_modules/date-fns/_lib/normalizeDates.js.map +1 -0
  91. package/dist/node_modules/date-fns/_lib/normalizeInterval.js +9 -0
  92. package/dist/node_modules/date-fns/_lib/normalizeInterval.js.map +1 -0
  93. package/dist/node_modules/date-fns/_lib/protectedTokens.js +26 -0
  94. package/dist/node_modules/date-fns/_lib/protectedTokens.js.map +1 -0
  95. package/dist/node_modules/date-fns/addDays.js +61 -0
  96. package/dist/node_modules/date-fns/addDays.js.map +1 -0
  97. package/dist/node_modules/date-fns/addMonths.js +76 -0
  98. package/dist/node_modules/date-fns/addMonths.js.map +1 -0
  99. package/dist/node_modules/date-fns/addWeeks.js +34 -0
  100. package/dist/node_modules/date-fns/addWeeks.js.map +1 -0
  101. package/dist/node_modules/date-fns/addYears.js +34 -0
  102. package/dist/node_modules/date-fns/addYears.js.map +1 -0
  103. package/dist/node_modules/date-fns/constants.js +47 -0
  104. package/dist/node_modules/date-fns/constants.js.map +1 -0
  105. package/dist/node_modules/date-fns/constructFrom.js +50 -0
  106. package/dist/node_modules/date-fns/constructFrom.js.map +1 -0
  107. package/dist/node_modules/date-fns/differenceInCalendarDays.js +63 -0
  108. package/dist/node_modules/date-fns/differenceInCalendarDays.js.map +1 -0
  109. package/dist/node_modules/date-fns/differenceInCalendarMonths.js +43 -0
  110. package/dist/node_modules/date-fns/differenceInCalendarMonths.js.map +1 -0
  111. package/dist/node_modules/date-fns/eachMonthOfInterval.js +66 -0
  112. package/dist/node_modules/date-fns/eachMonthOfInterval.js.map +1 -0
  113. package/dist/node_modules/date-fns/eachYearOfInterval.js +66 -0
  114. package/dist/node_modules/date-fns/eachYearOfInterval.js.map +1 -0
  115. package/dist/node_modules/date-fns/endOfISOWeek.js +36 -0
  116. package/dist/node_modules/date-fns/endOfISOWeek.js.map +1 -0
  117. package/dist/node_modules/date-fns/endOfMonth.js +38 -0
  118. package/dist/node_modules/date-fns/endOfMonth.js.map +1 -0
  119. package/dist/node_modules/date-fns/endOfWeek.js +54 -0
  120. package/dist/node_modules/date-fns/endOfWeek.js.map +1 -0
  121. package/dist/node_modules/date-fns/endOfYear.js +38 -0
  122. package/dist/node_modules/date-fns/endOfYear.js.map +1 -0
  123. package/dist/node_modules/date-fns/format.js +424 -0
  124. package/dist/node_modules/date-fns/format.js.map +1 -0
  125. package/dist/node_modules/date-fns/getDayOfYear.js +35 -0
  126. package/dist/node_modules/date-fns/getDayOfYear.js.map +1 -0
  127. package/dist/node_modules/date-fns/getDaysInMonth.js +37 -0
  128. package/dist/node_modules/date-fns/getDaysInMonth.js.map +1 -0
  129. package/dist/node_modules/date-fns/getISOWeek.js +41 -0
  130. package/dist/node_modules/date-fns/getISOWeek.js.map +1 -0
  131. package/dist/node_modules/date-fns/getISOWeekYear.js +53 -0
  132. package/dist/node_modules/date-fns/getISOWeekYear.js.map +1 -0
  133. package/dist/node_modules/date-fns/getMonth.js +30 -0
  134. package/dist/node_modules/date-fns/getMonth.js.map +1 -0
  135. package/dist/node_modules/date-fns/getWeek.js +55 -0
  136. package/dist/node_modules/date-fns/getWeek.js.map +1 -0
  137. package/dist/node_modules/date-fns/getWeekYear.js +76 -0
  138. package/dist/node_modules/date-fns/getWeekYear.js.map +1 -0
  139. package/dist/node_modules/date-fns/getYear.js +30 -0
  140. package/dist/node_modules/date-fns/getYear.js.map +1 -0
  141. package/dist/node_modules/date-fns/isAfter.js +26 -0
  142. package/dist/node_modules/date-fns/isAfter.js.map +1 -0
  143. package/dist/node_modules/date-fns/isBefore.js +26 -0
  144. package/dist/node_modules/date-fns/isBefore.js.map +1 -0
  145. package/dist/node_modules/date-fns/isDate.js +42 -0
  146. package/dist/node_modules/date-fns/isDate.js.map +1 -0
  147. package/dist/node_modules/date-fns/isSameDay.js +47 -0
  148. package/dist/node_modules/date-fns/isSameDay.js.map +1 -0
  149. package/dist/node_modules/date-fns/isSameMonth.js +44 -0
  150. package/dist/node_modules/date-fns/isSameMonth.js.map +1 -0
  151. package/dist/node_modules/date-fns/isSameYear.js +36 -0
  152. package/dist/node_modules/date-fns/isSameYear.js.map +1 -0
  153. package/dist/node_modules/date-fns/isValid.js +40 -0
  154. package/dist/node_modules/date-fns/isValid.js.map +1 -0
  155. package/dist/node_modules/date-fns/locale/_lib/buildFormatLongFn.js +11 -0
  156. package/dist/node_modules/date-fns/locale/_lib/buildFormatLongFn.js.map +1 -0
  157. package/dist/node_modules/date-fns/locale/_lib/buildLocalizeFn.js +65 -0
  158. package/dist/node_modules/date-fns/locale/_lib/buildLocalizeFn.js.map +1 -0
  159. package/dist/node_modules/date-fns/locale/_lib/buildMatchFn.js +60 -0
  160. package/dist/node_modules/date-fns/locale/_lib/buildMatchFn.js.map +1 -0
  161. package/dist/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js +23 -0
  162. package/dist/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js.map +1 -0
  163. package/dist/node_modules/date-fns/locale/en-US/_lib/formatDistance.js +104 -0
  164. package/dist/node_modules/date-fns/locale/en-US/_lib/formatDistance.js.map +1 -0
  165. package/dist/node_modules/date-fns/locale/en-US/_lib/formatLong.js +42 -0
  166. package/dist/node_modules/date-fns/locale/en-US/_lib/formatLong.js.map +1 -0
  167. package/dist/node_modules/date-fns/locale/en-US/_lib/formatRelative.js +14 -0
  168. package/dist/node_modules/date-fns/locale/en-US/_lib/formatRelative.js.map +1 -0
  169. package/dist/node_modules/date-fns/locale/en-US/_lib/localize.js +190 -0
  170. package/dist/node_modules/date-fns/locale/en-US/_lib/localize.js.map +1 -0
  171. package/dist/node_modules/date-fns/locale/en-US/_lib/match.js +135 -0
  172. package/dist/node_modules/date-fns/locale/en-US/_lib/match.js.map +1 -0
  173. package/dist/node_modules/date-fns/locale/en-US.js +29 -0
  174. package/dist/node_modules/date-fns/locale/en-US.js.map +1 -0
  175. package/dist/node_modules/date-fns/max.js +50 -0
  176. package/dist/node_modules/date-fns/max.js.map +1 -0
  177. package/dist/node_modules/date-fns/min.js +50 -0
  178. package/dist/node_modules/date-fns/min.js.map +1 -0
  179. package/dist/node_modules/date-fns/setMonth.js +47 -0
  180. package/dist/node_modules/date-fns/setMonth.js.map +1 -0
  181. package/dist/node_modules/date-fns/setYear.js +41 -0
  182. package/dist/node_modules/date-fns/setYear.js.map +1 -0
  183. package/dist/node_modules/date-fns/startOfDay.js +36 -0
  184. package/dist/node_modules/date-fns/startOfDay.js.map +1 -0
  185. package/dist/node_modules/date-fns/startOfISOWeek.js +36 -0
  186. package/dist/node_modules/date-fns/startOfISOWeek.js.map +1 -0
  187. package/dist/node_modules/date-fns/startOfISOWeekYear.js +43 -0
  188. package/dist/node_modules/date-fns/startOfISOWeekYear.js.map +1 -0
  189. package/dist/node_modules/date-fns/startOfMonth.js +38 -0
  190. package/dist/node_modules/date-fns/startOfMonth.js.map +1 -0
  191. package/dist/node_modules/date-fns/startOfWeek.js +54 -0
  192. package/dist/node_modules/date-fns/startOfWeek.js.map +1 -0
  193. package/dist/node_modules/date-fns/startOfWeekYear.js +65 -0
  194. package/dist/node_modules/date-fns/startOfWeekYear.js.map +1 -0
  195. package/dist/node_modules/date-fns/startOfYear.js +37 -0
  196. package/dist/node_modules/date-fns/startOfYear.js.map +1 -0
  197. package/dist/node_modules/date-fns/toDate.js +47 -0
  198. package/dist/node_modules/date-fns/toDate.js.map +1 -0
  199. package/dist/node_modules/react/cjs/react-jsx-runtime.development.js +2 -2
  200. package/dist/node_modules/react/cjs/react-jsx-runtime.development.js.map +1 -1
  201. package/dist/node_modules/react-day-picker/dist/esm/DayPicker.js +347 -0
  202. package/dist/node_modules/react-day-picker/dist/esm/DayPicker.js.map +1 -0
  203. package/dist/node_modules/react-day-picker/dist/esm/UI.js +123 -0
  204. package/dist/node_modules/react-day-picker/dist/esm/UI.js.map +1 -0
  205. package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarDay.js +34 -0
  206. package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarDay.js.map +1 -0
  207. package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarMonth.js +15 -0
  208. package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarMonth.js.map +1 -0
  209. package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarWeek.js +14 -0
  210. package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarWeek.js.map +1 -0
  211. package/dist/node_modules/react-day-picker/dist/esm/classes/DateLib.js +600 -0
  212. package/dist/node_modules/react-day-picker/dist/esm/classes/DateLib.js.map +1 -0
  213. package/dist/node_modules/react-day-picker/dist/esm/components/CaptionLabel.js +14 -0
  214. package/dist/node_modules/react-day-picker/dist/esm/components/CaptionLabel.js.map +1 -0
  215. package/dist/node_modules/react-day-picker/dist/esm/components/Chevron.js +19 -0
  216. package/dist/node_modules/react-day-picker/dist/esm/components/Chevron.js.map +1 -0
  217. package/dist/node_modules/react-day-picker/dist/esm/components/Day.js +19 -0
  218. package/dist/node_modules/react-day-picker/dist/esm/components/Day.js.map +1 -0
  219. package/dist/node_modules/react-day-picker/dist/esm/components/DayButton.js +20 -0
  220. package/dist/node_modules/react-day-picker/dist/esm/components/DayButton.js.map +1 -0
  221. package/dist/node_modules/react-day-picker/dist/esm/components/Dropdown.js +24 -0
  222. package/dist/node_modules/react-day-picker/dist/esm/components/Dropdown.js.map +1 -0
  223. package/dist/node_modules/react-day-picker/dist/esm/components/DropdownNav.js +14 -0
  224. package/dist/node_modules/react-day-picker/dist/esm/components/DropdownNav.js.map +1 -0
  225. package/dist/node_modules/react-day-picker/dist/esm/components/Footer.js +14 -0
  226. package/dist/node_modules/react-day-picker/dist/esm/components/Footer.js.map +1 -0
  227. package/dist/node_modules/react-day-picker/dist/esm/components/Month.js +16 -0
  228. package/dist/node_modules/react-day-picker/dist/esm/components/Month.js.map +1 -0
  229. package/dist/node_modules/react-day-picker/dist/esm/components/MonthCaption.js +15 -0
  230. package/dist/node_modules/react-day-picker/dist/esm/components/MonthCaption.js.map +1 -0
  231. package/dist/node_modules/react-day-picker/dist/esm/components/MonthGrid.js +14 -0
  232. package/dist/node_modules/react-day-picker/dist/esm/components/MonthGrid.js.map +1 -0
  233. package/dist/node_modules/react-day-picker/dist/esm/components/Months.js +14 -0
  234. package/dist/node_modules/react-day-picker/dist/esm/components/Months.js.map +1 -0
  235. package/dist/node_modules/react-day-picker/dist/esm/components/MonthsDropdown.js +16 -0
  236. package/dist/node_modules/react-day-picker/dist/esm/components/MonthsDropdown.js.map +1 -0
  237. package/dist/node_modules/react-day-picker/dist/esm/components/Nav.js +32 -0
  238. package/dist/node_modules/react-day-picker/dist/esm/components/Nav.js.map +1 -0
  239. package/dist/node_modules/react-day-picker/dist/esm/components/NextMonthButton.js +14 -0
  240. package/dist/node_modules/react-day-picker/dist/esm/components/NextMonthButton.js.map +1 -0
  241. package/dist/node_modules/react-day-picker/dist/esm/components/Option.js +14 -0
  242. package/dist/node_modules/react-day-picker/dist/esm/components/Option.js.map +1 -0
  243. package/dist/node_modules/react-day-picker/dist/esm/components/PreviousMonthButton.js +14 -0
  244. package/dist/node_modules/react-day-picker/dist/esm/components/PreviousMonthButton.js.map +1 -0
  245. package/dist/node_modules/react-day-picker/dist/esm/components/Root.js +15 -0
  246. package/dist/node_modules/react-day-picker/dist/esm/components/Root.js.map +1 -0
  247. package/dist/node_modules/react-day-picker/dist/esm/components/Select.js +14 -0
  248. package/dist/node_modules/react-day-picker/dist/esm/components/Select.js.map +1 -0
  249. package/dist/node_modules/react-day-picker/dist/esm/components/Week.js +15 -0
  250. package/dist/node_modules/react-day-picker/dist/esm/components/Week.js.map +1 -0
  251. package/dist/node_modules/react-day-picker/dist/esm/components/WeekNumber.js +15 -0
  252. package/dist/node_modules/react-day-picker/dist/esm/components/WeekNumber.js.map +1 -0
  253. package/dist/node_modules/react-day-picker/dist/esm/components/WeekNumberHeader.js +14 -0
  254. package/dist/node_modules/react-day-picker/dist/esm/components/WeekNumberHeader.js.map +1 -0
  255. package/dist/node_modules/react-day-picker/dist/esm/components/Weekday.js +14 -0
  256. package/dist/node_modules/react-day-picker/dist/esm/components/Weekday.js.map +1 -0
  257. package/dist/node_modules/react-day-picker/dist/esm/components/Weekdays.js +15 -0
  258. package/dist/node_modules/react-day-picker/dist/esm/components/Weekdays.js.map +1 -0
  259. package/dist/node_modules/react-day-picker/dist/esm/components/Weeks.js +14 -0
  260. package/dist/node_modules/react-day-picker/dist/esm/components/Weeks.js.map +1 -0
  261. package/dist/node_modules/react-day-picker/dist/esm/components/YearsDropdown.js +16 -0
  262. package/dist/node_modules/react-day-picker/dist/esm/components/YearsDropdown.js.map +1 -0
  263. package/dist/node_modules/react-day-picker/dist/esm/components/custom-components.js +26 -0
  264. package/dist/node_modules/react-day-picker/dist/esm/components/custom-components.js.map +1 -0
  265. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatCaption.js +21 -0
  266. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatCaption.js.map +1 -0
  267. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatDay.js +20 -0
  268. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatDay.js.map +1 -0
  269. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatMonthDropdown.js +19 -0
  270. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatMonthDropdown.js.map +1 -0
  271. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumber.js +22 -0
  272. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumber.js.map +1 -0
  273. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumberHeader.js +14 -0
  274. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumberHeader.js.map +1 -0
  275. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekdayName.js +20 -0
  276. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekdayName.js.map +1 -0
  277. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatYearDropdown.js +18 -0
  278. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatYearDropdown.js.map +1 -0
  279. package/dist/node_modules/react-day-picker/dist/esm/formatters/index.js +8 -0
  280. package/dist/node_modules/react-day-picker/dist/esm/formatters/index.js.map +1 -0
  281. package/dist/node_modules/react-day-picker/dist/esm/helpers/calculateFocusTarget.js +74 -0
  282. package/dist/node_modules/react-day-picker/dist/esm/helpers/calculateFocusTarget.js.map +1 -0
  283. package/dist/node_modules/react-day-picker/dist/esm/helpers/createGetModifiers.js +96 -0
  284. package/dist/node_modules/react-day-picker/dist/esm/helpers/createGetModifiers.js.map +1 -0
  285. package/dist/node_modules/react-day-picker/dist/esm/helpers/endOfBroadcastWeek.js +23 -0
  286. package/dist/node_modules/react-day-picker/dist/esm/helpers/endOfBroadcastWeek.js.map +1 -0
  287. package/dist/node_modules/react-day-picker/dist/esm/helpers/getBroadcastWeeksInMonth.js +29 -0
  288. package/dist/node_modules/react-day-picker/dist/esm/helpers/getBroadcastWeeksInMonth.js.map +1 -0
  289. package/dist/node_modules/react-day-picker/dist/esm/helpers/getClassNamesForModifiers.js +34 -0
  290. package/dist/node_modules/react-day-picker/dist/esm/helpers/getClassNamesForModifiers.js.map +1 -0
  291. package/dist/node_modules/react-day-picker/dist/esm/helpers/getComponents.js +21 -0
  292. package/dist/node_modules/react-day-picker/dist/esm/helpers/getComponents.js.map +1 -0
  293. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDataAttributes.js +28 -0
  294. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDataAttributes.js.map +1 -0
  295. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDates.js +60 -0
  296. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDates.js.map +1 -0
  297. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDays.js +20 -0
  298. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDays.js.map +1 -0
  299. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDefaultClassNames.js +34 -0
  300. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDefaultClassNames.js.map +1 -0
  301. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDisplayMonths.js +25 -0
  302. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDisplayMonths.js.map +1 -0
  303. package/dist/node_modules/react-day-picker/dist/esm/helpers/getFocusableDate.js +47 -0
  304. package/dist/node_modules/react-day-picker/dist/esm/helpers/getFocusableDate.js.map +1 -0
  305. package/dist/node_modules/react-day-picker/dist/esm/helpers/getFormatters.js +18 -0
  306. package/dist/node_modules/react-day-picker/dist/esm/helpers/getFormatters.js.map +1 -0
  307. package/dist/node_modules/react-day-picker/dist/esm/helpers/getInitialMonth.js +28 -0
  308. package/dist/node_modules/react-day-picker/dist/esm/helpers/getInitialMonth.js.map +1 -0
  309. package/dist/node_modules/react-day-picker/dist/esm/helpers/getLabels.js +54 -0
  310. package/dist/node_modules/react-day-picker/dist/esm/helpers/getLabels.js.map +1 -0
  311. package/dist/node_modules/react-day-picker/dist/esm/helpers/getMonthOptions.js +34 -0
  312. package/dist/node_modules/react-day-picker/dist/esm/helpers/getMonthOptions.js.map +1 -0
  313. package/dist/node_modules/react-day-picker/dist/esm/helpers/getMonths.js +70 -0
  314. package/dist/node_modules/react-day-picker/dist/esm/helpers/getMonths.js.map +1 -0
  315. package/dist/node_modules/react-day-picker/dist/esm/helpers/getNavMonth.js +32 -0
  316. package/dist/node_modules/react-day-picker/dist/esm/helpers/getNavMonth.js.map +1 -0
  317. package/dist/node_modules/react-day-picker/dist/esm/helpers/getNextFocus.js +41 -0
  318. package/dist/node_modules/react-day-picker/dist/esm/helpers/getNextFocus.js.map +1 -0
  319. package/dist/node_modules/react-day-picker/dist/esm/helpers/getNextMonth.js +37 -0
  320. package/dist/node_modules/react-day-picker/dist/esm/helpers/getNextMonth.js.map +1 -0
  321. package/dist/node_modules/react-day-picker/dist/esm/helpers/getPreviousMonth.js +38 -0
  322. package/dist/node_modules/react-day-picker/dist/esm/helpers/getPreviousMonth.js.map +1 -0
  323. package/dist/node_modules/react-day-picker/dist/esm/helpers/getStyleForModifiers.js +28 -0
  324. package/dist/node_modules/react-day-picker/dist/esm/helpers/getStyleForModifiers.js.map +1 -0
  325. package/dist/node_modules/react-day-picker/dist/esm/helpers/getWeekdays.js +27 -0
  326. package/dist/node_modules/react-day-picker/dist/esm/helpers/getWeekdays.js.map +1 -0
  327. package/dist/node_modules/react-day-picker/dist/esm/helpers/getWeeks.js +15 -0
  328. package/dist/node_modules/react-day-picker/dist/esm/helpers/getWeeks.js.map +1 -0
  329. package/dist/node_modules/react-day-picker/dist/esm/helpers/getYearOptions.js +37 -0
  330. package/dist/node_modules/react-day-picker/dist/esm/helpers/getYearOptions.js.map +1 -0
  331. package/dist/node_modules/react-day-picker/dist/esm/helpers/startOfBroadcastWeek.js +28 -0
  332. package/dist/node_modules/react-day-picker/dist/esm/helpers/startOfBroadcastWeek.js.map +1 -0
  333. package/dist/node_modules/react-day-picker/dist/esm/helpers/useControlledValue.js +32 -0
  334. package/dist/node_modules/react-day-picker/dist/esm/helpers/useControlledValue.js.map +1 -0
  335. package/dist/node_modules/react-day-picker/dist/esm/labels/index.js +12 -0
  336. package/dist/node_modules/react-day-picker/dist/esm/labels/index.js.map +1 -0
  337. package/dist/node_modules/react-day-picker/dist/esm/labels/labelDayButton.js +28 -0
  338. package/dist/node_modules/react-day-picker/dist/esm/labels/labelDayButton.js.map +1 -0
  339. package/dist/node_modules/react-day-picker/dist/esm/labels/labelGrid.js +21 -0
  340. package/dist/node_modules/react-day-picker/dist/esm/labels/labelGrid.js.map +1 -0
  341. package/dist/node_modules/react-day-picker/dist/esm/labels/labelGridcell.js +23 -0
  342. package/dist/node_modules/react-day-picker/dist/esm/labels/labelGridcell.js.map +1 -0
  343. package/dist/node_modules/react-day-picker/dist/esm/labels/labelMonthDropdown.js +15 -0
  344. package/dist/node_modules/react-day-picker/dist/esm/labels/labelMonthDropdown.js.map +1 -0
  345. package/dist/node_modules/react-day-picker/dist/esm/labels/labelNav.js +14 -0
  346. package/dist/node_modules/react-day-picker/dist/esm/labels/labelNav.js.map +1 -0
  347. package/dist/node_modules/react-day-picker/dist/esm/labels/labelNext.js +17 -0
  348. package/dist/node_modules/react-day-picker/dist/esm/labels/labelNext.js.map +1 -0
  349. package/dist/node_modules/react-day-picker/dist/esm/labels/labelPrevious.js +16 -0
  350. package/dist/node_modules/react-day-picker/dist/esm/labels/labelPrevious.js.map +1 -0
  351. package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekNumber.js +16 -0
  352. package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekNumber.js.map +1 -0
  353. package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekNumberHeader.js +15 -0
  354. package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekNumberHeader.js.map +1 -0
  355. package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekday.js +19 -0
  356. package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekday.js.map +1 -0
  357. package/dist/node_modules/react-day-picker/dist/esm/labels/labelYearDropdown.js +15 -0
  358. package/dist/node_modules/react-day-picker/dist/esm/labels/labelYearDropdown.js.map +1 -0
  359. package/dist/node_modules/react-day-picker/dist/esm/locale/en-US.js +68 -0
  360. package/dist/node_modules/react-day-picker/dist/esm/locale/en-US.js.map +1 -0
  361. package/dist/node_modules/react-day-picker/dist/esm/noonDateLib.js +164 -0
  362. package/dist/node_modules/react-day-picker/dist/esm/noonDateLib.js.map +1 -0
  363. package/dist/node_modules/react-day-picker/dist/esm/selection/useMulti.js +58 -0
  364. package/dist/node_modules/react-day-picker/dist/esm/selection/useMulti.js.map +1 -0
  365. package/dist/node_modules/react-day-picker/dist/esm/selection/useRange.js +64 -0
  366. package/dist/node_modules/react-day-picker/dist/esm/selection/useRange.js.map +1 -0
  367. package/dist/node_modules/react-day-picker/dist/esm/selection/useSingle.js +45 -0
  368. package/dist/node_modules/react-day-picker/dist/esm/selection/useSingle.js.map +1 -0
  369. package/dist/node_modules/react-day-picker/dist/esm/useAnimation.js +174 -0
  370. package/dist/node_modules/react-day-picker/dist/esm/useAnimation.js.map +1 -0
  371. package/dist/node_modules/react-day-picker/dist/esm/useCalendar.js +114 -0
  372. package/dist/node_modules/react-day-picker/dist/esm/useCalendar.js.map +1 -0
  373. package/dist/node_modules/react-day-picker/dist/esm/useDayPicker.js +26 -0
  374. package/dist/node_modules/react-day-picker/dist/esm/useDayPicker.js.map +1 -0
  375. package/dist/node_modules/react-day-picker/dist/esm/useFocus.js +57 -0
  376. package/dist/node_modules/react-day-picker/dist/esm/useFocus.js.map +1 -0
  377. package/dist/node_modules/react-day-picker/dist/esm/useSelection.js +32 -0
  378. package/dist/node_modules/react-day-picker/dist/esm/useSelection.js.map +1 -0
  379. package/dist/node_modules/react-day-picker/dist/esm/utils/addToRange.js +96 -0
  380. package/dist/node_modules/react-day-picker/dist/esm/utils/addToRange.js.map +1 -0
  381. package/dist/node_modules/react-day-picker/dist/esm/utils/convertMatchersToTimeZone.js +62 -0
  382. package/dist/node_modules/react-day-picker/dist/esm/utils/convertMatchersToTimeZone.js.map +1 -0
  383. package/dist/node_modules/react-day-picker/dist/esm/utils/dateMatchModifiers.js +63 -0
  384. package/dist/node_modules/react-day-picker/dist/esm/utils/dateMatchModifiers.js.map +1 -0
  385. package/dist/node_modules/react-day-picker/dist/esm/utils/rangeContainsDayOfWeek.js +31 -0
  386. package/dist/node_modules/react-day-picker/dist/esm/utils/rangeContainsDayOfWeek.js.map +1 -0
  387. package/dist/node_modules/react-day-picker/dist/esm/utils/rangeContainsModifiers.js +75 -0
  388. package/dist/node_modules/react-day-picker/dist/esm/utils/rangeContainsModifiers.js.map +1 -0
  389. package/dist/node_modules/react-day-picker/dist/esm/utils/rangeIncludesDate.js +36 -0
  390. package/dist/node_modules/react-day-picker/dist/esm/utils/rangeIncludesDate.js.map +1 -0
  391. package/dist/node_modules/react-day-picker/dist/esm/utils/rangeOverlaps.js +22 -0
  392. package/dist/node_modules/react-day-picker/dist/esm/utils/rangeOverlaps.js.map +1 -0
  393. package/dist/node_modules/react-day-picker/dist/esm/utils/toTimeZone.js +17 -0
  394. package/dist/node_modules/react-day-picker/dist/esm/utils/toTimeZone.js.map +1 -0
  395. package/dist/node_modules/react-day-picker/dist/esm/utils/typeguards.js +67 -0
  396. package/dist/node_modules/react-day-picker/dist/esm/utils/typeguards.js.map +1 -0
  397. package/dist/utilities/Icons.d.ts +33 -0
  398. package/dist/utils.js.map +1 -1
  399. package/package.json +84 -9
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useAnimation.js","sources":["../../../../../node_modules/react-day-picker/dist/esm/useAnimation.js"],"sourcesContent":["import { useLayoutEffect, useRef } from \"react\";\nimport { Animation } from \"./UI.js\";\nconst asHtmlElement = (element) => {\n if (element instanceof HTMLElement)\n return element;\n return null;\n};\nconst queryMonthEls = (element) => [\n ...(element.querySelectorAll(\"[data-animated-month]\") ?? []),\n];\nconst queryMonthEl = (element) => asHtmlElement(element.querySelector(\"[data-animated-month]\"));\nconst queryCaptionEl = (element) => asHtmlElement(element.querySelector(\"[data-animated-caption]\"));\nconst queryWeeksEl = (element) => asHtmlElement(element.querySelector(\"[data-animated-weeks]\"));\nconst queryNavEl = (element) => asHtmlElement(element.querySelector(\"[data-animated-nav]\"));\nconst queryWeekdaysEl = (element) => asHtmlElement(element.querySelector(\"[data-animated-weekdays]\"));\n/**\n * Handles animations for transitioning between months in the DayPicker\n * component.\n *\n * @private\n * @param rootElRef - A reference to the root element of the DayPicker\n * component.\n * @param enabled - Whether animations are enabled.\n * @param options - Configuration options for the animation, including class\n * names, months, focused day, and the date utility library.\n */\nexport function useAnimation(rootElRef, enabled, { classNames, months, focused, dateLib, }) {\n const previousRootElSnapshotRef = useRef(null);\n const previousMonthsRef = useRef(months);\n const animatingRef = useRef(false);\n useLayoutEffect(() => {\n // get previous months before updating the previous months ref\n const previousMonths = previousMonthsRef.current;\n // update previous months ref for next effect trigger\n previousMonthsRef.current = months;\n if (!enabled ||\n !rootElRef.current ||\n // safety check because the ref can be set to anything by consumers\n !(rootElRef.current instanceof HTMLElement) ||\n // validation required for the animation to work as expected\n months.length === 0 ||\n previousMonths.length === 0 ||\n months.length !== previousMonths.length) {\n return;\n }\n const isSameMonth = dateLib.isSameMonth(months[0].date, previousMonths[0].date);\n const isAfterPreviousMonth = dateLib.isAfter(months[0].date, previousMonths[0].date);\n const captionAnimationClass = isAfterPreviousMonth\n ? classNames[Animation.caption_after_enter]\n : classNames[Animation.caption_before_enter];\n const weeksAnimationClass = isAfterPreviousMonth\n ? classNames[Animation.weeks_after_enter]\n : classNames[Animation.weeks_before_enter];\n // get previous root element snapshot before updating the snapshot ref\n const previousRootElSnapshot = previousRootElSnapshotRef.current;\n // update snapshot for next effect trigger\n const rootElSnapshot = rootElRef.current.cloneNode(true);\n if (rootElSnapshot instanceof HTMLElement) {\n // if this effect is triggered while animating, we need to clean up the new root snapshot\n // to put it in the same state as when not animating, to correctly animate the next month change\n const currentMonthElsSnapshot = queryMonthEls(rootElSnapshot);\n currentMonthElsSnapshot.forEach((currentMonthElSnapshot) => {\n if (!(currentMonthElSnapshot instanceof HTMLElement))\n return;\n // remove the old month snapshots from the new root snapshot\n const previousMonthElSnapshot = queryMonthEl(currentMonthElSnapshot);\n if (previousMonthElSnapshot &&\n currentMonthElSnapshot.contains(previousMonthElSnapshot)) {\n currentMonthElSnapshot.removeChild(previousMonthElSnapshot);\n }\n // remove animation classes from the new month snapshots\n const captionEl = queryCaptionEl(currentMonthElSnapshot);\n if (captionEl) {\n captionEl.classList.remove(captionAnimationClass);\n }\n const weeksEl = queryWeeksEl(currentMonthElSnapshot);\n if (weeksEl) {\n weeksEl.classList.remove(weeksAnimationClass);\n }\n });\n previousRootElSnapshotRef.current = rootElSnapshot;\n }\n else {\n previousRootElSnapshotRef.current = null;\n }\n if (animatingRef.current ||\n isSameMonth ||\n // skip animation if a day is focused because it can cause issues to the animation and is better for a11y\n focused) {\n return;\n }\n const previousMonthEls = previousRootElSnapshot instanceof HTMLElement\n ? queryMonthEls(previousRootElSnapshot)\n : [];\n const currentMonthEls = queryMonthEls(rootElRef.current);\n if (currentMonthEls?.every((el) => el instanceof HTMLElement) &&\n previousMonthEls?.every((el) => el instanceof HTMLElement)) {\n animatingRef.current = true;\n const cleanUpFunctions = [];\n // set isolation to isolate to isolate the stacking context during animation\n rootElRef.current.style.isolation = \"isolate\";\n // set z-index to 1 to ensure the nav is clickable over the other elements being animated\n const navEl = queryNavEl(rootElRef.current);\n if (navEl) {\n navEl.style.zIndex = \"1\";\n }\n currentMonthEls.forEach((currentMonthEl, index) => {\n const previousMonthEl = previousMonthEls[index];\n if (!previousMonthEl) {\n return;\n }\n // animate new displayed month\n currentMonthEl.style.position = \"relative\";\n currentMonthEl.style.overflow = \"hidden\";\n const captionEl = queryCaptionEl(currentMonthEl);\n if (captionEl) {\n captionEl.classList.add(captionAnimationClass);\n }\n const weeksEl = queryWeeksEl(currentMonthEl);\n if (weeksEl) {\n weeksEl.classList.add(weeksAnimationClass);\n }\n // animate new displayed month end\n const cleanUp = () => {\n animatingRef.current = false;\n if (rootElRef.current) {\n rootElRef.current.style.isolation = \"\";\n }\n if (navEl) {\n navEl.style.zIndex = \"\";\n }\n if (captionEl) {\n captionEl.classList.remove(captionAnimationClass);\n }\n if (weeksEl) {\n weeksEl.classList.remove(weeksAnimationClass);\n }\n currentMonthEl.style.position = \"\";\n currentMonthEl.style.overflow = \"\";\n if (currentMonthEl.contains(previousMonthEl)) {\n currentMonthEl.removeChild(previousMonthEl);\n }\n };\n cleanUpFunctions.push(cleanUp);\n // animate old displayed month\n previousMonthEl.style.pointerEvents = \"none\";\n previousMonthEl.style.position = \"absolute\";\n previousMonthEl.style.overflow = \"hidden\";\n previousMonthEl.setAttribute(\"aria-hidden\", \"true\");\n // hide the weekdays container of the old month and only the new one\n const previousWeekdaysEl = queryWeekdaysEl(previousMonthEl);\n if (previousWeekdaysEl) {\n previousWeekdaysEl.style.opacity = \"0\";\n }\n const previousCaptionEl = queryCaptionEl(previousMonthEl);\n if (previousCaptionEl) {\n previousCaptionEl.classList.add(isAfterPreviousMonth\n ? classNames[Animation.caption_before_exit]\n : classNames[Animation.caption_after_exit]);\n previousCaptionEl.addEventListener(\"animationend\", cleanUp);\n }\n const previousWeeksEl = queryWeeksEl(previousMonthEl);\n if (previousWeeksEl) {\n previousWeeksEl.classList.add(isAfterPreviousMonth\n ? classNames[Animation.weeks_before_exit]\n : classNames[Animation.weeks_after_exit]);\n }\n currentMonthEl.insertBefore(previousMonthEl, currentMonthEl.firstChild);\n });\n }\n });\n}\n"],"names":[],"mappings":";;;AAEA,MAAM,aAAa,GAAG,CAAC,OAAO,KAAK;AACnC,IAAI,IAAI,OAAO,YAAY,WAAW;AACtC,QAAQ,OAAO,OAAO;AACtB,IAAI,OAAO,IAAI;AACf,CAAC;AACD,MAAM,aAAa,GAAG,CAAC,OAAO,KAAK;AACnC,IAAI,IAAI,OAAO,CAAC,gBAAgB,CAAC,uBAAuB,CAAC,IAAI,EAAE,CAAC;AAChE,CAAC;AACD,MAAM,YAAY,GAAG,CAAC,OAAO,KAAK,aAAa,CAAC,OAAO,CAAC,aAAa,CAAC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AAQ;AACR,IAAI,CAAC,CAAC;AACN;;;;","x_google_ignoreList":[0]}
@@ -0,0 +1,114 @@
1
+ import { useEffect, useMemo } from 'react';
2
+ import { getDates } from './helpers/getDates.js';
3
+ import { getDays } from './helpers/getDays.js';
4
+ import { getDisplayMonths } from './helpers/getDisplayMonths.js';
5
+ import { getInitialMonth } from './helpers/getInitialMonth.js';
6
+ import { getMonths } from './helpers/getMonths.js';
7
+ import { getNavMonths } from './helpers/getNavMonth.js';
8
+ import { getNextMonth } from './helpers/getNextMonth.js';
9
+ import { getPreviousMonth } from './helpers/getPreviousMonth.js';
10
+ import { getWeeks } from './helpers/getWeeks.js';
11
+ import { useControlledValue } from './helpers/useControlledValue.js';
12
+
13
+ /**
14
+ * Provides the calendar object to work with the calendar in custom components.
15
+ *
16
+ * @private
17
+ * @param props - The DayPicker props related to calendar configuration.
18
+ * @param dateLib - The date utility library instance.
19
+ * @returns The calendar object containing displayed days, weeks, months, and
20
+ * navigation methods.
21
+ */
22
+ function useCalendar(props, dateLib) {
23
+ const [navStart, navEnd] = getNavMonths(props, dateLib);
24
+ const { startOfMonth, endOfMonth } = dateLib;
25
+ const initialMonth = getInitialMonth(props, navStart, navEnd, dateLib);
26
+ const [firstMonth, setFirstMonth] = useControlledValue(initialMonth,
27
+ // initialMonth is always computed from props.month if provided
28
+ props.month ? initialMonth : undefined);
29
+ // biome-ignore lint/correctness/useExhaustiveDependencies: change the initial month when the time zone changes.
30
+ useEffect(() => {
31
+ const newInitialMonth = getInitialMonth(props, navStart, navEnd, dateLib);
32
+ setFirstMonth(newInitialMonth);
33
+ }, [props.timeZone]);
34
+ /** The months displayed in the calendar. */
35
+ // biome-ignore lint/correctness/useExhaustiveDependencies: We want to recompute only when specific props change.
36
+ const { months, weeks, days, previousMonth, nextMonth } = useMemo(() => {
37
+ const displayMonths = getDisplayMonths(firstMonth, navEnd, { numberOfMonths: props.numberOfMonths }, dateLib);
38
+ const dates = getDates(displayMonths, props.endMonth ? endOfMonth(props.endMonth) : undefined, {
39
+ ISOWeek: props.ISOWeek,
40
+ fixedWeeks: props.fixedWeeks,
41
+ broadcastCalendar: props.broadcastCalendar,
42
+ }, dateLib);
43
+ const months = getMonths(displayMonths, dates, {
44
+ broadcastCalendar: props.broadcastCalendar,
45
+ fixedWeeks: props.fixedWeeks,
46
+ ISOWeek: props.ISOWeek,
47
+ reverseMonths: props.reverseMonths,
48
+ }, dateLib);
49
+ const weeks = getWeeks(months);
50
+ const days = getDays(months);
51
+ const previousMonth = getPreviousMonth(firstMonth, navStart, props, dateLib);
52
+ const nextMonth = getNextMonth(firstMonth, navEnd, props, dateLib);
53
+ return {
54
+ months,
55
+ weeks,
56
+ days,
57
+ previousMonth,
58
+ nextMonth,
59
+ };
60
+ }, [
61
+ dateLib,
62
+ firstMonth.getTime(),
63
+ navEnd?.getTime(),
64
+ navStart?.getTime(),
65
+ props.disableNavigation,
66
+ props.broadcastCalendar,
67
+ props.endMonth?.getTime(),
68
+ props.fixedWeeks,
69
+ props.ISOWeek,
70
+ props.numberOfMonths,
71
+ props.pagedNavigation,
72
+ props.reverseMonths,
73
+ ]);
74
+ const { disableNavigation, onMonthChange } = props;
75
+ const isDayInCalendar = (day) => weeks.some((week) => week.days.some((d) => d.isEqualTo(day)));
76
+ const goToMonth = (date) => {
77
+ if (disableNavigation) {
78
+ return;
79
+ }
80
+ let newMonth = startOfMonth(date);
81
+ // if month is before start, use the first month instead
82
+ if (navStart && newMonth < startOfMonth(navStart)) {
83
+ newMonth = startOfMonth(navStart);
84
+ }
85
+ // if month is after endMonth, use the last month instead
86
+ if (navEnd && newMonth > startOfMonth(navEnd)) {
87
+ newMonth = startOfMonth(navEnd);
88
+ }
89
+ setFirstMonth(newMonth);
90
+ onMonthChange?.(newMonth);
91
+ };
92
+ const goToDay = (day) => {
93
+ // is this check necessary?
94
+ if (isDayInCalendar(day)) {
95
+ return;
96
+ }
97
+ goToMonth(day.date);
98
+ };
99
+ const calendar = {
100
+ months,
101
+ weeks,
102
+ days,
103
+ navStart,
104
+ navEnd,
105
+ previousMonth,
106
+ nextMonth,
107
+ goToMonth,
108
+ goToDay,
109
+ };
110
+ return calendar;
111
+ }
112
+
113
+ export { useCalendar };
114
+ //# sourceMappingURL=useCalendar.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useCalendar.js","sources":["../../../../../node_modules/react-day-picker/dist/esm/useCalendar.js"],"sourcesContent":["import { useEffect, useMemo } from \"react\";\nimport { getDates } from \"./helpers/getDates.js\";\nimport { getDays } from \"./helpers/getDays.js\";\nimport { getDisplayMonths } from \"./helpers/getDisplayMonths.js\";\nimport { getInitialMonth } from \"./helpers/getInitialMonth.js\";\nimport { getMonths } from \"./helpers/getMonths.js\";\nimport { getNavMonths } from \"./helpers/getNavMonth.js\";\nimport { getNextMonth } from \"./helpers/getNextMonth.js\";\nimport { getPreviousMonth } from \"./helpers/getPreviousMonth.js\";\nimport { getWeeks } from \"./helpers/getWeeks.js\";\nimport { useControlledValue } from \"./helpers/useControlledValue.js\";\n/**\n * Provides the calendar object to work with the calendar in custom components.\n *\n * @private\n * @param props - The DayPicker props related to calendar configuration.\n * @param dateLib - The date utility library instance.\n * @returns The calendar object containing displayed days, weeks, months, and\n * navigation methods.\n */\nexport function useCalendar(props, dateLib) {\n const [navStart, navEnd] = getNavMonths(props, dateLib);\n const { startOfMonth, endOfMonth } = dateLib;\n const initialMonth = getInitialMonth(props, navStart, navEnd, dateLib);\n const [firstMonth, setFirstMonth] = useControlledValue(initialMonth, \n // initialMonth is always computed from props.month if provided\n props.month ? initialMonth : undefined);\n // biome-ignore lint/correctness/useExhaustiveDependencies: change the initial month when the time zone changes.\n useEffect(() => {\n const newInitialMonth = getInitialMonth(props, navStart, navEnd, dateLib);\n setFirstMonth(newInitialMonth);\n }, [props.timeZone]);\n /** The months displayed in the calendar. */\n // biome-ignore lint/correctness/useExhaustiveDependencies: We want to recompute only when specific props change.\n const { months, weeks, days, previousMonth, nextMonth } = useMemo(() => {\n const displayMonths = getDisplayMonths(firstMonth, navEnd, { numberOfMonths: props.numberOfMonths }, dateLib);\n const dates = getDates(displayMonths, props.endMonth ? endOfMonth(props.endMonth) : undefined, {\n ISOWeek: props.ISOWeek,\n fixedWeeks: props.fixedWeeks,\n broadcastCalendar: props.broadcastCalendar,\n }, dateLib);\n const months = getMonths(displayMonths, dates, {\n broadcastCalendar: props.broadcastCalendar,\n fixedWeeks: props.fixedWeeks,\n ISOWeek: props.ISOWeek,\n reverseMonths: props.reverseMonths,\n }, dateLib);\n const weeks = getWeeks(months);\n const days = getDays(months);\n const previousMonth = getPreviousMonth(firstMonth, navStart, props, dateLib);\n const nextMonth = getNextMonth(firstMonth, navEnd, props, dateLib);\n return {\n months,\n weeks,\n days,\n previousMonth,\n nextMonth,\n };\n }, [\n dateLib,\n firstMonth.getTime(),\n navEnd?.getTime(),\n navStart?.getTime(),\n props.disableNavigation,\n props.broadcastCalendar,\n props.endMonth?.getTime(),\n props.fixedWeeks,\n props.ISOWeek,\n props.numberOfMonths,\n props.pagedNavigation,\n props.reverseMonths,\n ]);\n const { disableNavigation, onMonthChange } = props;\n const isDayInCalendar = (day) => weeks.some((week) => week.days.some((d) => d.isEqualTo(day)));\n const goToMonth = (date) => {\n if (disableNavigation) {\n return;\n }\n let newMonth = startOfMonth(date);\n // if month is before start, use the first month instead\n if (navStart && newMonth < startOfMonth(navStart)) {\n newMonth = startOfMonth(navStart);\n }\n // if month is after endMonth, use the last month instead\n if (navEnd && newMonth > startOfMonth(navEnd)) {\n newMonth = startOfMonth(navEnd);\n }\n setFirstMonth(newMonth);\n onMonthChange?.(newMonth);\n };\n const goToDay = (day) => {\n // is this check necessary?\n if (isDayInCalendar(day)) {\n return;\n }\n goToMonth(day.date);\n };\n const calendar = {\n months,\n weeks,\n days,\n navStart,\n navEnd,\n previousMonth,\n nextMonth,\n goToMonth,\n goToDay,\n };\n return calendar;\n}\n"],"names":[],"mappings":";;;;;;;;;;;;AAWA;AACA;AACA;AACA;AACA;AACA;AAC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dayPickerContext = createContext(undefined);
5
+ /**
6
+ * Provides access to the DayPicker context, which includes properties and
7
+ * methods to interact with the DayPicker component. This hook must be used
8
+ * within a custom component.
9
+ *
10
+ * @template T - Use this type to refine the returned context type with a
11
+ * specific selection mode.
12
+ * @returns The context to work with DayPicker.
13
+ * @throws {Error} If the hook is used outside of a DayPicker provider.
14
+ * @group Hooks
15
+ * @see https://daypicker.dev/guides/custom-components
16
+ */
17
+ function useDayPicker() {
18
+ const context = useContext(dayPickerContext);
19
+ if (context === undefined) {
20
+ throw new Error("useDayPicker() must be used within a custom component.");
21
+ }
22
+ return context;
23
+ }
24
+
25
+ export { dayPickerContext, useDayPicker };
26
+ //# sourceMappingURL=useDayPicker.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useDayPicker.js","sources":["../../../../../node_modules/react-day-picker/dist/esm/useDayPicker.js"],"sourcesContent":["import { createContext, useContext } from \"react\";\n/** @ignore */\nexport const dayPickerContext = createContext(undefined);\n/**\n * Provides access to the DayPicker context, which includes properties and\n * methods to interact with the DayPicker component. This hook must be used\n * within a custom component.\n *\n * @template T - Use this type to refine the returned context type with a\n * specific selection mode.\n * @returns The context to work with DayPicker.\n * @throws {Error} If the hook is used outside of a DayPicker provider.\n * @group Hooks\n * @see https://daypicker.dev/guides/custom-components\n */\nexport function useDayPicker() {\n const context = useContext(dayPickerContext);\n if (context === undefined) {\n throw new Error(\"useDayPicker() must be used within a custom component.\");\n }\n return context;\n}\n"],"names":[],"mappings":";;AACA;AACY,MAAC,gBAAgB,GAAG,aAAa,CAAC,SAAS;AACvD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAAS,YAAY,GAAG;AAC/B,IAAI,MAAM,OAAO,GAAG,UAAU,CAAC,gBAAgB,CAAC;AAChD,IAAI,IAAI,OAAO,KAAK,SAAS,EAAE;AAC/B,QAAQ,MAAM,IAAI,KAAK,CAAC,wDAAwD,CAAC;AACjF,IAAI;AACJ,IAAI,OAAO,OAAO;AAClB;;;;","x_google_ignoreList":[0]}
@@ -0,0 +1,57 @@
1
+ import { useState } from 'react';
2
+ import { calculateFocusTarget } from './helpers/calculateFocusTarget.js';
3
+ import { getNextFocus } from './helpers/getNextFocus.js';
4
+
5
+ /**
6
+ * Manages focus behavior for the DayPicker component, including setting,
7
+ * moving, and blurring focus on calendar days.
8
+ *
9
+ * @template T - The type of DayPicker props.
10
+ * @param props - The DayPicker props.
11
+ * @param calendar - The calendar object containing the displayed days and
12
+ * months.
13
+ * @param getModifiers - A function to retrieve modifiers for a given day.
14
+ * @param isSelected - A function to check if a date is selected.
15
+ * @param dateLib - The date utility library instance.
16
+ * @returns An object containing focus-related methods and the currently focused
17
+ * day.
18
+ */
19
+ function useFocus(props, calendar, getModifiers, isSelected, dateLib) {
20
+ const { autoFocus } = props;
21
+ const [lastFocused, setLastFocused] = useState();
22
+ const focusTarget = calculateFocusTarget(calendar.days, getModifiers, isSelected || (() => false), lastFocused);
23
+ const [focusedDay, setFocused] = useState(autoFocus ? focusTarget : undefined);
24
+ const blur = () => {
25
+ setLastFocused(focusedDay);
26
+ setFocused(undefined);
27
+ };
28
+ const moveFocus = (moveBy, moveDir) => {
29
+ if (!focusedDay)
30
+ return;
31
+ const nextFocus = getNextFocus(moveBy, moveDir, focusedDay, calendar.navStart, calendar.navEnd, props, dateLib);
32
+ if (!nextFocus)
33
+ return;
34
+ if (props.disableNavigation) {
35
+ const isNextInCalendar = calendar.days.some((day) => day.isEqualTo(nextFocus));
36
+ if (!isNextInCalendar) {
37
+ return;
38
+ }
39
+ }
40
+ calendar.goToDay(nextFocus);
41
+ setFocused(nextFocus);
42
+ };
43
+ const isFocusTarget = (day) => {
44
+ return Boolean(focusTarget?.isEqualTo(day));
45
+ };
46
+ const useFocus = {
47
+ isFocusTarget,
48
+ setFocused,
49
+ focused: focusedDay,
50
+ blur,
51
+ moveFocus,
52
+ };
53
+ return useFocus;
54
+ }
55
+
56
+ export { useFocus };
57
+ //# sourceMappingURL=useFocus.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useFocus.js","sources":["../../../../../node_modules/react-day-picker/dist/esm/useFocus.js"],"sourcesContent":["import { useState } from \"react\";\nimport { calculateFocusTarget } from \"./helpers/calculateFocusTarget.js\";\nimport { getNextFocus } from \"./helpers/getNextFocus.js\";\n/**\n * Manages focus behavior for the DayPicker component, including setting,\n * moving, and blurring focus on calendar days.\n *\n * @template T - The type of DayPicker props.\n * @param props - The DayPicker props.\n * @param calendar - The calendar object containing the displayed days and\n * months.\n * @param getModifiers - A function to retrieve modifiers for a given day.\n * @param isSelected - A function to check if a date is selected.\n * @param dateLib - The date utility library instance.\n * @returns An object containing focus-related methods and the currently focused\n * day.\n */\nexport function useFocus(props, calendar, getModifiers, isSelected, dateLib) {\n const { autoFocus } = props;\n const [lastFocused, setLastFocused] = useState();\n const focusTarget = calculateFocusTarget(calendar.days, getModifiers, isSelected || (() => false), lastFocused);\n const [focusedDay, setFocused] = useState(autoFocus ? focusTarget : undefined);\n const blur = () => {\n setLastFocused(focusedDay);\n setFocused(undefined);\n };\n const moveFocus = (moveBy, moveDir) => {\n if (!focusedDay)\n return;\n const nextFocus = getNextFocus(moveBy, moveDir, focusedDay, calendar.navStart, calendar.navEnd, props, dateLib);\n if (!nextFocus)\n return;\n if (props.disableNavigation) {\n const isNextInCalendar = calendar.days.some((day) => day.isEqualTo(nextFocus));\n if (!isNextInCalendar) {\n return;\n }\n }\n calendar.goToDay(nextFocus);\n setFocused(nextFocus);\n };\n const isFocusTarget = (day) => {\n return Boolean(focusTarget?.isEqualTo(day));\n };\n const useFocus = {\n isFocusTarget,\n setFocused,\n focused: focusedDay,\n blur,\n moveFocus,\n };\n return useFocus;\n}\n"],"names":[],"mappings":";;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAAS,QAAQ,CAAC,KAAK,EAAE,QAAQ,EAAE,YAAY,EAAE,UAAU,EAAE,OA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WAAW,EAAE,SAAS,CAAC,GAAG,CAAC,CAAC;AACnD,IAAI,CAAC;AACL,IAAI,MAAM,QAAQ,GAAG;AACrB,QAAQ,aAAa;AACrB,QAAQ,UAAU;AAClB,QAAQ,OAAO,EAAE,UAAU;AAC3B,QAAQ,IAAI;AACZ,QAAQ,SAAS;AACjB,KAAK;AACL,IAAI,OAAO,QAAQ;AACnB;;;;","x_google_ignoreList":[0]}
@@ -0,0 +1,32 @@
1
+ import { useMulti } from './selection/useMulti.js';
2
+ import { useRange } from './selection/useRange.js';
3
+ import { useSingle } from './selection/useSingle.js';
4
+
5
+ /**
6
+ * Determines the appropriate selection hook to use based on the selection mode
7
+ * and returns the corresponding selection object.
8
+ *
9
+ * @template T - The type of DayPicker props.
10
+ * @param props - The DayPicker props.
11
+ * @param dateLib - The date utility library instance.
12
+ * @returns The selection object for the specified mode, or `undefined` if no
13
+ * mode is set.
14
+ */
15
+ function useSelection(props, dateLib) {
16
+ const single = useSingle(props, dateLib);
17
+ const multi = useMulti(props, dateLib);
18
+ const range = useRange(props, dateLib);
19
+ switch (props.mode) {
20
+ case "single":
21
+ return single;
22
+ case "multiple":
23
+ return multi;
24
+ case "range":
25
+ return range;
26
+ default:
27
+ return undefined;
28
+ }
29
+ }
30
+
31
+ export { useSelection };
32
+ //# sourceMappingURL=useSelection.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useSelection.js","sources":["../../../../../node_modules/react-day-picker/dist/esm/useSelection.js"],"sourcesContent":["import { useMulti } from \"./selection/useMulti.js\";\nimport { useRange } from \"./selection/useRange.js\";\nimport { useSingle } from \"./selection/useSingle.js\";\n/**\n * Determines the appropriate selection hook to use based on the selection mode\n * and returns the corresponding selection object.\n *\n * @template T - The type of DayPicker props.\n * @param props - The DayPicker props.\n * @param dateLib - The date utility library instance.\n * @returns The selection object for the specified mode, or `undefined` if no\n * mode is set.\n */\nexport function useSelection(props, dateLib) {\n const single = useSingle(props, dateLib);\n const multi = useMulti(props, dateLib);\n const range = useRange(props, dateLib);\n switch (props.mode) {\n case \"single\":\n return single;\n case \"multiple\":\n return multi;\n case \"range\":\n return range;\n default:\n return undefined;\n }\n}\n"],"names":[],"mappings":";;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAAS,YAAY,CAAC,KAAK,EAAE,OAAO,EAAE;AAC7C,IAAI,MAAM,MAAM,GAAG,SAAS,CAAC,KAAK,EAAE,OAAO,CAAC;AAC5C,IAAI,MAAM,KAAK,GAAG,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC;AAC1C,IAAI,MAAM,KAAK,GAAG,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC;AAC1C,IAAI,QAAQ,KAAK,CAAC,IAAI;AACtB,QAAQ,KAAK,QAAQ;AACrB,YAAY,OAAO,MAAM;AACzB,QAAQ,KAAK,UAAU;AACvB,YAAY,OAAO,KAAK;AACxB,QAAQ,KAAK,OAAO;AACpB,YAAY,OAAO,KAAK;AACxB,QAAQ;AACR,YAAY,OAAO,SAAS;AAC5B;AACA;;;;","x_google_ignoreList":[0]}
@@ -0,0 +1,96 @@
1
+ import { defaultDateLib } from '../classes/DateLib.js';
2
+
3
+ /**
4
+ * Adds a date to an existing range, considering constraints like minimum and
5
+ * maximum range size.
6
+ *
7
+ * @param date - The date to add to the range.
8
+ * @param initialRange - The initial range to which the date will be added.
9
+ * @param min - The minimum number of days in the range.
10
+ * @param max - The maximum number of days in the range.
11
+ * @param required - Whether the range must always include at least one date.
12
+ * @param dateLib - The date utility library instance.
13
+ * @returns The updated date range, or `undefined` if the range is cleared.
14
+ * @group Utilities
15
+ */
16
+ function addToRange(date, initialRange, min = 0, max = 0, required = false, dateLib = defaultDateLib) {
17
+ const { from, to } = initialRange || {};
18
+ const { isSameDay, isAfter, isBefore } = dateLib;
19
+ let range;
20
+ if (!from && !to) {
21
+ // the range is empty, add the date
22
+ range = { from: date, to: min > 0 ? undefined : date };
23
+ }
24
+ else if (from && !to) {
25
+ // adding date to an incomplete range
26
+ if (isSameDay(from, date)) {
27
+ // adding a date equal to the start of the range
28
+ if (min === 0) {
29
+ range = { from, to: date };
30
+ }
31
+ else if (required) {
32
+ range = { from, to: undefined };
33
+ }
34
+ else {
35
+ range = undefined;
36
+ }
37
+ }
38
+ else if (isBefore(date, from)) {
39
+ // adding a date before the start of the range
40
+ range = { from: date, to: from };
41
+ }
42
+ else {
43
+ // adding a date after the start of the range
44
+ range = { from, to: date };
45
+ }
46
+ }
47
+ else if (from && to) {
48
+ // adding date to a complete range
49
+ if (isSameDay(from, date) && isSameDay(to, date)) {
50
+ // adding a date that is equal to both start and end of the range
51
+ if (required) {
52
+ range = { from, to };
53
+ }
54
+ else {
55
+ range = undefined;
56
+ }
57
+ }
58
+ else if (isSameDay(from, date)) {
59
+ // adding a date equal to the the start of the range
60
+ range = { from, to: min > 0 ? undefined : date };
61
+ }
62
+ else if (isSameDay(to, date)) {
63
+ // adding a dare equal to the end of the range
64
+ range = { from: date, to: min > 0 ? undefined : date };
65
+ }
66
+ else if (isBefore(date, from)) {
67
+ // adding a date before the start of the range
68
+ range = { from: date, to: to };
69
+ }
70
+ else if (isAfter(date, from)) {
71
+ // adding a date after the start of the range
72
+ range = { from, to: date };
73
+ }
74
+ else if (isAfter(date, to)) {
75
+ // adding a date after the end of the range
76
+ range = { from, to: date };
77
+ }
78
+ else {
79
+ throw new Error("Invalid range");
80
+ }
81
+ }
82
+ // check for min / max
83
+ if (range?.from && range?.to) {
84
+ const diff = dateLib.differenceInCalendarDays(range.to, range.from);
85
+ if (max > 0 && diff > max) {
86
+ range = { from: date, to: undefined };
87
+ }
88
+ else if (min > 1 && diff < min) {
89
+ range = { from: date, to: undefined };
90
+ }
91
+ }
92
+ return range;
93
+ }
94
+
95
+ export { addToRange };
96
+ //# sourceMappingURL=addToRange.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"addToRange.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/utils/addToRange.js"],"sourcesContent":["import { defaultDateLib } from \"../classes/DateLib.js\";\n/**\n * Adds a date to an existing range, considering constraints like minimum and\n * maximum range size.\n *\n * @param date - The date to add to the range.\n * @param initialRange - The initial range to which the date will be added.\n * @param min - The minimum number of days in the range.\n * @param max - The maximum number of days in the range.\n * @param required - Whether the range must always include at least one date.\n * @param dateLib - The date utility library instance.\n * @returns The updated date range, or `undefined` if the range is cleared.\n * @group Utilities\n */\nexport function addToRange(date, initialRange, min = 0, max = 0, required = false, dateLib = defaultDateLib) {\n const { from, to } = initialRange || {};\n const { isSameDay, isAfter, isBefore } = dateLib;\n let range;\n if (!from && !to) {\n // the range is empty, add the date\n range = { from: date, to: min > 0 ? undefined : date };\n }\n else if (from && !to) {\n // adding date to an incomplete range\n if (isSameDay(from, date)) {\n // adding a date equal to the start of the range\n if (min === 0) {\n range = { from, to: date };\n }\n else if (required) {\n range = { from, to: undefined };\n }\n else {\n range = undefined;\n }\n }\n else if (isBefore(date, from)) {\n // adding a date before the start of the range\n range = { from: date, to: from };\n }\n else {\n // adding a date after the start of the range\n range = { from, to: date };\n }\n }\n else if (from && to) {\n // adding date to a complete range\n if (isSameDay(from, date) && isSameDay(to, date)) {\n // adding a date that is equal to both start and end of the range\n if (required) {\n range = { from, to };\n }\n else {\n range = undefined;\n }\n }\n else if (isSameDay(from, date)) {\n // adding a date equal to the the start of the range\n range = { from, to: min > 0 ? undefined : date };\n }\n else if (isSameDay(to, date)) {\n // adding a dare equal to the end of the range\n range = { from: date, to: min > 0 ? undefined : date };\n }\n else if (isBefore(date, from)) {\n // adding a date before the start of the range\n range = { from: date, to: to };\n }\n else if (isAfter(date, from)) {\n // adding a date after the start of the range\n range = { from, to: date };\n }\n else if (isAfter(date, to)) {\n // adding a date after the end of the range\n range = { from, to: date };\n }\n else {\n throw new Error(\"Invalid range\");\n }\n }\n // check for min / max\n if (range?.from && range?.to) {\n const diff = dateLib.differenceInCalendarDays(range.to, range.from);\n if (max > 0 && diff > max) {\n range = { from: date, to: undefined };\n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EAAE;AACtC,QAAQ;AACR,aAAa;AACb,YAAY,MAAM,IAAI,KAAK,CAAC,eAAe,CAAC;AAC5C,QAAQ;AACR,IAAI;AACJ;AACA,IAAI,IAAI,KAAK,EAAE,IAAI,IAAI,KAAK,EAAE,EAAE,EAAE;AAClC,QAAQ,MAAM,IAAI,GAAG,OAAO,CAAC,wBAAwB,CAAC,KAAK,CAAC,EAAE,EAAE,KAAK,CAAC,IAAI,CAAC;AAC3E,QAAQ,IAAI,GAAG,GAAG,CAAC,IAAI,IAAI,GAAG,GAAG,EAAE;AACnC,YAAY,KAAK,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,EAAE,SAAS,EAAE;AACjD,QAAQ;AACR,aAAa,IAAI,GAAG,GAAG,CAAC,IAAI,IAAI,GAAG,GAAG,EAAE;AACxC,YAAY,KAAK,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,EAAE,SAAS,EAAE;AACjD,QAAQ;AACR,IAAI;AACJ,IAAI,OAAO,KAAK;AAChB;;;;","x_google_ignoreList":[0]}
@@ -0,0 +1,62 @@
1
+ import '../../../../@date-fns/tz/date/mini.js';
2
+ import { toTimeZone } from './toTimeZone.js';
3
+ import { isDateRange, isDateInterval, isDateAfterType, isDateBeforeType } from './typeguards.js';
4
+
5
+ function toZoneNoon(date, timeZone, noonSafe) {
6
+ return toTimeZone(date, timeZone);
7
+ }
8
+ function convertMatcher(matcher, timeZone, noonSafe) {
9
+ if (typeof matcher === "boolean" || typeof matcher === "function") {
10
+ return matcher;
11
+ }
12
+ if (matcher instanceof Date) {
13
+ return toZoneNoon(matcher, timeZone);
14
+ }
15
+ if (Array.isArray(matcher)) {
16
+ return matcher.map((value) => value instanceof Date ? toZoneNoon(value, timeZone) : value);
17
+ }
18
+ if (isDateRange(matcher)) {
19
+ return {
20
+ ...matcher,
21
+ from: matcher.from ? toTimeZone(matcher.from, timeZone) : matcher.from,
22
+ to: matcher.to ? toTimeZone(matcher.to, timeZone) : matcher.to,
23
+ };
24
+ }
25
+ if (isDateInterval(matcher)) {
26
+ return {
27
+ before: toZoneNoon(matcher.before, timeZone),
28
+ after: toZoneNoon(matcher.after, timeZone),
29
+ };
30
+ }
31
+ if (isDateAfterType(matcher)) {
32
+ return {
33
+ after: toZoneNoon(matcher.after, timeZone),
34
+ };
35
+ }
36
+ if (isDateBeforeType(matcher)) {
37
+ return {
38
+ before: toZoneNoon(matcher.before, timeZone),
39
+ };
40
+ }
41
+ return matcher;
42
+ }
43
+ /**
44
+ * Convert any {@link Matcher} or array of matchers to the specified time zone.
45
+ *
46
+ * @param matchers - The matcher or matchers to convert.
47
+ * @param timeZone - The target IANA time zone.
48
+ * @returns The converted matcher(s).
49
+ * @group Utilities
50
+ */
51
+ function convertMatchersToTimeZone(matchers, timeZone, noonSafe) {
52
+ if (!matchers) {
53
+ return matchers;
54
+ }
55
+ if (Array.isArray(matchers)) {
56
+ return matchers.map((matcher) => convertMatcher(matcher, timeZone));
57
+ }
58
+ return convertMatcher(matchers, timeZone);
59
+ }
60
+
61
+ export { convertMatchersToTimeZone };
62
+ //# sourceMappingURL=convertMatchersToTimeZone.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"convertMatchersToTimeZone.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/utils/convertMatchersToTimeZone.js"],"sourcesContent":["import { TZDate } from \"@date-fns/tz\";\nimport { toTimeZone } from \"./toTimeZone.js\";\nimport { isDateAfterType, isDateBeforeType, isDateInterval, isDateRange, } from \"./typeguards.js\";\nfunction toZoneNoon(date, timeZone, noonSafe) {\n if (!noonSafe)\n return toTimeZone(date, timeZone);\n const zoned = toTimeZone(date, timeZone);\n const noonZoned = new TZDate(zoned.getFullYear(), zoned.getMonth(), zoned.getDate(), 12, 0, 0, timeZone);\n return new Date(noonZoned.getTime());\n}\nfunction convertMatcher(matcher, timeZone, noonSafe) {\n if (typeof matcher === \"boolean\" || typeof matcher === \"function\") {\n return matcher;\n }\n if (matcher instanceof Date) {\n return toZoneNoon(matcher, timeZone, noonSafe);\n }\n if (Array.isArray(matcher)) {\n return matcher.map((value) => value instanceof Date ? toZoneNoon(value, timeZone, noonSafe) : value);\n }\n if (isDateRange(matcher)) {\n return {\n ...matcher,\n from: matcher.from ? toTimeZone(matcher.from, timeZone) : matcher.from,\n to: matcher.to ? toTimeZone(matcher.to, timeZone) : matcher.to,\n };\n }\n if (isDateInterval(matcher)) {\n return {\n before: toZoneNoon(matcher.before, timeZone, noonSafe),\n after: toZoneNoon(matcher.after, timeZone, noonSafe),\n };\n }\n if (isDateAfterType(matcher)) {\n return {\n after: toZoneNoon(matcher.after, timeZone, noonSafe),\n };\n }\n if (isDateBeforeType(matcher)) {\n return {\n before: toZoneNoon(matcher.before, timeZone, noonSafe),\n };\n }\n return matcher;\n}\n/**\n * Convert any {@link Matcher} or array of matchers to the specified time zone.\n *\n * @param matchers - The matcher or matchers to convert.\n * @param timeZone - The target IANA time zone.\n * @returns The converted matcher(s).\n * @group Utilities\n */\nexport function convertMatchersToTimeZone(matchers, timeZone, noonSafe) {\n if (!matchers) {\n return matchers;\n }\n if (Array.isArray(matchers)) {\n return matchers.map((matcher) => convertMatcher(matcher, timeZone, noonSafe));\n }\n return convertMatcher(matchers, timeZone, noonSafe);\n}\n"],"names":[],"mappings":";;;;AAGA,SAAS,UAAU,CAAC,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE;AAC9C,IACQ,OAAO,UAAU,CAAC,IAAI,EAAE,QAAQ,CAAC;AAIzC;AACA,SAAS,cAAc,CAAC,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE;AACrD,IAAI,IAAI,OAAO,OAAO,KAAK,SAAS,IAAI,OAAO,OAAO,KAAK,UAAU,EAAE;AACvE,QAAQ,OAAO,OAAO;AACtB,IAAI;AACJ,IAAI,IAAI,OAAO,YAAY,IAAI,EAAE;AACjC,QAAQ,OAAO,UAAU,CAAC,OAAO,EAAE,QAAkB,CAAC;AACtD,IAAI;AACJ,IAAI,IAAI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,EAAE,QAAQ,EAAE;AACxE,IAAI,IAAI,CAAC,QAAQ,EAAE;AACnB,QAAQ,OAAO,QAAQ;AACvB,IAAI;AACJ,IAAI,IAAI,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE;AACjC,QAAQ,OAAO,QAAQ,CAAC,GAAG,CAAC,CAAC,OAAO,KAAK,cAAc,CAAC,OAAO,EAAE,QAAkB,CAAC,CAAC;AACrF,IAAI;AACJ,IAAI,OAAO,cAAc,CAAC,QAAQ,EAAE,QAAkB,CAAC;AACvD;;;;","x_google_ignoreList":[0]}
@@ -0,0 +1,63 @@
1
+ import { defaultDateLib } from '../classes/DateLib.js';
2
+ import { rangeIncludesDate } from './rangeIncludesDate.js';
3
+ import { isDatesArray, isDateRange, isDayOfWeekType, isDateInterval, isDateAfterType, isDateBeforeType } from './typeguards.js';
4
+
5
+ /**
6
+ * Checks if a given date matches at least one of the specified {@link Matcher}.
7
+ *
8
+ * @param date - The date to check.
9
+ * @param matchers - The matchers to check against.
10
+ * @param dateLib - The date utility library instance.
11
+ * @returns `true` if the date matches any of the matchers, otherwise `false`.
12
+ * @group Utilities
13
+ */
14
+ function dateMatchModifiers(date, matchers, dateLib = defaultDateLib) {
15
+ const matchersArr = !Array.isArray(matchers) ? [matchers] : matchers;
16
+ const { isSameDay, differenceInCalendarDays, isAfter } = dateLib;
17
+ return matchersArr.some((matcher) => {
18
+ if (typeof matcher === "boolean") {
19
+ return matcher;
20
+ }
21
+ if (dateLib.isDate(matcher)) {
22
+ return isSameDay(date, matcher);
23
+ }
24
+ if (isDatesArray(matcher, dateLib)) {
25
+ return matcher.some((matcherDate) => isSameDay(date, matcherDate));
26
+ }
27
+ if (isDateRange(matcher)) {
28
+ return rangeIncludesDate(matcher, date, false, dateLib);
29
+ }
30
+ if (isDayOfWeekType(matcher)) {
31
+ if (!Array.isArray(matcher.dayOfWeek)) {
32
+ return matcher.dayOfWeek === date.getDay();
33
+ }
34
+ return matcher.dayOfWeek.includes(date.getDay());
35
+ }
36
+ if (isDateInterval(matcher)) {
37
+ const diffBefore = differenceInCalendarDays(matcher.before, date);
38
+ const diffAfter = differenceInCalendarDays(matcher.after, date);
39
+ const isDayBefore = diffBefore > 0;
40
+ const isDayAfter = diffAfter < 0;
41
+ const isClosedInterval = isAfter(matcher.before, matcher.after);
42
+ if (isClosedInterval) {
43
+ return isDayAfter && isDayBefore;
44
+ }
45
+ else {
46
+ return isDayBefore || isDayAfter;
47
+ }
48
+ }
49
+ if (isDateAfterType(matcher)) {
50
+ return differenceInCalendarDays(date, matcher.after) > 0;
51
+ }
52
+ if (isDateBeforeType(matcher)) {
53
+ return differenceInCalendarDays(matcher.before, date) > 0;
54
+ }
55
+ if (typeof matcher === "function") {
56
+ return matcher(date);
57
+ }
58
+ return false;
59
+ });
60
+ }
61
+
62
+ export { dateMatchModifiers };
63
+ //# sourceMappingURL=dateMatchModifiers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dateMatchModifiers.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/utils/dateMatchModifiers.js"],"sourcesContent":["import { defaultDateLib } from \"../classes/DateLib.js\";\nimport { rangeIncludesDate } from \"./rangeIncludesDate.js\";\nimport { isDateAfterType, isDateBeforeType, isDateInterval, isDateRange, isDatesArray, isDayOfWeekType, } from \"./typeguards.js\";\n/**\n * Checks if a given date matches at least one of the specified {@link Matcher}.\n *\n * @param date - The date to check.\n * @param matchers - The matchers to check against.\n * @param dateLib - The date utility library instance.\n * @returns `true` if the date matches any of the matchers, otherwise `false`.\n * @group Utilities\n */\nexport function dateMatchModifiers(date, matchers, dateLib = defaultDateLib) {\n const matchersArr = !Array.isArray(matchers) ? [matchers] : matchers;\n const { isSameDay, differenceInCalendarDays, isAfter } = dateLib;\n return matchersArr.some((matcher) => {\n if (typeof matcher === \"boolean\") {\n return matcher;\n }\n if (dateLib.isDate(matcher)) {\n return isSameDay(date, matcher);\n }\n if (isDatesArray(matcher, dateLib)) {\n return matcher.some((matcherDate) => isSameDay(date, matcherDate));\n }\n if (isDateRange(matcher)) {\n return rangeIncludesDate(matcher, date, false, dateLib);\n }\n if (isDayOfWeekType(matcher)) {\n if (!Array.isArray(matcher.dayOfWeek)) {\n return matcher.dayOfWeek === date.getDay();\n }\n return matcher.dayOfWeek.includes(date.getDay());\n }\n if (isDateInterval(matcher)) {\n const diffBefore = differenceInCalendarDays(matcher.before, date);\n const diffAfter = differenceInCalendarDays(matcher.after, date);\n const isDayBefore = diffBefore > 0;\n const isDayAfter = diffAfter < 0;\n const isClosedInterval = isAfter(matcher.before, matcher.after);\n if (isClosedInterval) {\n return isDayAfter && isDayBefore;\n }\n else {\n return isDayBefore || isDayAfter;\n }\n }\n if (isDateAfterType(matcher)) {\n return differenceInCalendarDays(date, matcher.after) > 0;\n }\n if (isDateBeforeType(matcher)) {\n return differenceInCalendarDays(matcher.before, date) > 0;\n }\n if (typeof matcher === \"function\") {\n return matcher(date);\n }\n return false;\n });\n}\n"],"names":[],"mappings":";;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAAS,kBAAkB,CAAC,IAAI,EAAE,QAAQ,EAAE,OAAO,GAAG,cAAc,EAAE;AAC7E,IAAI,MAAM,WAAW,GAAG,CAAC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAC,QAAQ,CAAC,GAAG,QAAQ;AACxE,IAAI,MAAM,EAAE,SAAS,EAAE,wBAAwB,EAAE,OAAO,EAAE,GAAG,OAAO;AACpE,IAAI,OAAO,WAAW,CAAC,IAAI,CAAC,CAAC,OAAO,KAAK;AACzC,QAAQ,IAAI,OAAO,OAAO,KAAK,SAAS,EAAE;AAC1C,YAAY,OAAO,OAAO;AAC1B,QAAQ;AACR,QAAQ,IAAI,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE;AACrC,YAAY,OAAO,SAAS,CAAC,IAAI,EAAE,OAAO,CAAC;AAC3C,QAAQ;AACR,QAAQ,IAAI,YAAY,CAAC,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AAwB,CAAC,IAAI,EAAE,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC;AACpE,QAAQ;AACR,QAAQ,IAAI,gBAAgB,CAAC,OAAO,CAAC,EAAE;AACvC,YAAY,OAAO,wBAAwB,CAAC,OAAO,CAAC,MAAM,EAAE,IAAI,CAAC,GAAG,CAAC;AACrE,QAAQ;AACR,QAAQ,IAAI,OAAO,OAAO,KAAK,UAAU,EAAE;AAC3C,YAAY,OAAO,OAAO,CAAC,IAAI,CAAC;AAChC,QAAQ;AACR,QAAQ,OAAO,KAAK;AACpB,IAAI,CAAC,CAAC;AACN;;;;","x_google_ignoreList":[0]}
@@ -0,0 +1,31 @@
1
+ import { defaultDateLib } from '../classes/DateLib.js';
2
+
3
+ /**
4
+ * Checks if a date range contains one or more specified days of the week.
5
+ *
6
+ * @since 9.2.2
7
+ * @param range - The date range to check.
8
+ * @param dayOfWeek - The day(s) of the week to check for (`0-6`, where `0` is
9
+ * Sunday).
10
+ * @param dateLib - The date utility library instance.
11
+ * @returns `true` if the range contains the specified day(s) of the week,
12
+ * otherwise `false`.
13
+ * @group Utilities
14
+ */
15
+ function rangeContainsDayOfWeek(range, dayOfWeek, dateLib = defaultDateLib) {
16
+ const dayOfWeekArr = !Array.isArray(dayOfWeek) ? [dayOfWeek] : dayOfWeek;
17
+ let date = range.from;
18
+ const totalDays = dateLib.differenceInCalendarDays(range.to, range.from);
19
+ // iterate at maximum one week or the total days if the range is shorter than one week
20
+ const totalDaysLimit = Math.min(totalDays, 6);
21
+ for (let i = 0; i <= totalDaysLimit; i++) {
22
+ if (dayOfWeekArr.includes(date.getDay())) {
23
+ return true;
24
+ }
25
+ date = dateLib.addDays(date, 1);
26
+ }
27
+ return false;
28
+ }
29
+
30
+ export { rangeContainsDayOfWeek };
31
+ //# sourceMappingURL=rangeContainsDayOfWeek.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rangeContainsDayOfWeek.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/utils/rangeContainsDayOfWeek.js"],"sourcesContent":["import { defaultDateLib } from \"../classes/DateLib.js\";\n/**\n * Checks if a date range contains one or more specified days of the week.\n *\n * @since 9.2.2\n * @param range - The date range to check.\n * @param dayOfWeek - The day(s) of the week to check for (`0-6`, where `0` is\n * Sunday).\n * @param dateLib - The date utility library instance.\n * @returns `true` if the range contains the specified day(s) of the week,\n * otherwise `false`.\n * @group Utilities\n */\nexport function rangeContainsDayOfWeek(range, dayOfWeek, dateLib = defaultDateLib) {\n const dayOfWeekArr = !Array.isArray(dayOfWeek) ? [dayOfWeek] : dayOfWeek;\n let date = range.from;\n const totalDays = dateLib.differenceInCalendarDays(range.to, range.from);\n // iterate at maximum one week or the total days if the range is shorter than one week\n const totalDaysLimit = Math.min(totalDays, 6);\n for (let i = 0; i <= totalDaysLimit; i++) {\n if (dayOfWeekArr.includes(date.getDay())) {\n return true;\n }\n date = dateLib.addDays(date, 1);\n }\n return false;\n}\n"],"names":[],"mappings":";;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAAS,sBAAsB,CAAC,KAAK,EAAE,SAAS,EAAE,OAAO,GAAG,cAAc,EAAE;AACnF,IAAI,MAAM,YAAY,GAAG,CAAC,KAAK,CAAC,OAAO,CAAC,SAAS,CAAC,GAAG,CAAC,SAAS,CAAC,GAAG,SAAS;AAC5E,IAAI,IAAI,IAAI,GAAG,KAAK,CAAC,IAAI;AACzB,IAAI,MAAM,SAAS,GAAG,OAAO,CAAC,wBAAwB,CAAC,KAAK,CAAC,EAAE,EAAE,KAAK,CAAC,IAAI,CAAC;AAC5E;AACA,IAAI,MAAM,cAAc,GAAG,IAAI,CAAC,GAAG,CAAC,SAAS,EAAE,CAAC,CAAC;AACjD,IAAI,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,IAAI,cAAc,EAAE,CAAC,EAAE,EAAE;AAC9C,QAAQ,IAAI,YAAY,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC,EAAE;AAClD,YAAY,OAAO,IAAI;AACvB,QAAQ;AACR,QAAQ,IAAI,GAAG,OAAO,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC,CAAC;AACvC,IAAI;AACJ,IAAI,OAAO,KAAK;AAChB;;;;","x_google_ignoreList":[0]}