@betterinternship/components 1.6.1 → 2.0.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 (394) hide show
  1. package/README.md +14 -0
  2. package/dist/components/ui/accordion.js.map +1 -1
  3. package/dist/components/ui/avatar.js.map +1 -1
  4. package/dist/components/ui/badge.js.map +1 -1
  5. package/dist/components/ui/button.js.map +1 -1
  6. package/dist/components/ui/card.js.map +1 -1
  7. package/dist/components/ui/checkbox.js.map +1 -1
  8. package/dist/components/ui/dialog.js.map +1 -1
  9. package/dist/components/ui/icons.js.map +1 -1
  10. package/dist/components/ui/input.js.map +1 -1
  11. package/dist/components/ui/label.js.map +1 -1
  12. package/dist/components/ui/popover.js.map +1 -1
  13. package/dist/components/ui/separator.js.map +1 -1
  14. package/dist/components/ui/skeleton.js.map +1 -1
  15. package/dist/components/ui/switch.js.map +1 -1
  16. package/dist/components/ui/table.js.map +1 -1
  17. package/dist/components/ui/textarea.js.map +1 -1
  18. package/dist/components/ui/tooltip.js.map +1 -1
  19. package/dist/config.js.map +1 -1
  20. package/dist/hooks/useClientProcess.js.map +1 -1
  21. package/dist/index.js +0 -2
  22. package/dist/index.js.map +1 -1
  23. package/dist/{components → src/components}/ui/badge.d.ts +1 -1
  24. package/dist/src/components/ui/button.test.d.ts +1 -0
  25. package/dist/src/index.d.ts +20 -0
  26. package/dist/utils.js.map +1 -1
  27. package/dist/vitest.config.d.ts +2 -0
  28. package/dist/vitest.setup.d.ts +1 -0
  29. package/package.json +14 -5
  30. package/theme.css +223 -0
  31. package/dist/components/Accordion.d.ts +0 -7
  32. package/dist/components/Avatar.d.ts +0 -6
  33. package/dist/components/Badge.d.ts +0 -21
  34. package/dist/components/Button.d.ts +0 -12
  35. package/dist/components/Button.js +0 -77
  36. package/dist/components/Button.js.map +0 -1
  37. package/dist/components/Calendar.d.ts +0 -7
  38. package/dist/components/Input.d.ts +0 -3
  39. package/dist/components/ui/calendar.js +0 -51
  40. package/dist/components/ui/calendar.js.map +0 -1
  41. package/dist/index.css.js +0 -7
  42. package/dist/index.css.js.map +0 -1
  43. package/dist/index.d.ts +0 -22
  44. package/dist/index.esm.js +0 -3761
  45. package/dist/index.esm.js.map +0 -1
  46. package/dist/node_modules/@date-fns/tz/date/index.js +0 -84
  47. package/dist/node_modules/@date-fns/tz/date/index.js.map +0 -1
  48. package/dist/node_modules/@date-fns/tz/date/mini.js +0 -451
  49. package/dist/node_modules/@date-fns/tz/date/mini.js.map +0 -1
  50. package/dist/node_modules/@date-fns/tz/tzName/index.js +0 -40
  51. package/dist/node_modules/@date-fns/tz/tzName/index.js.map +0 -1
  52. package/dist/node_modules/@date-fns/tz/tzOffset/index.js +0 -57
  53. package/dist/node_modules/@date-fns/tz/tzOffset/index.js.map +0 -1
  54. package/dist/node_modules/date-fns/_lib/addLeadingZeros.js +0 -8
  55. package/dist/node_modules/date-fns/_lib/addLeadingZeros.js.map +0 -1
  56. package/dist/node_modules/date-fns/_lib/defaultOptions.js +0 -8
  57. package/dist/node_modules/date-fns/_lib/defaultOptions.js.map +0 -1
  58. package/dist/node_modules/date-fns/_lib/format/formatters.js +0 -776
  59. package/dist/node_modules/date-fns/_lib/format/formatters.js.map +0 -1
  60. package/dist/node_modules/date-fns/_lib/format/lightFormatters.js +0 -95
  61. package/dist/node_modules/date-fns/_lib/format/lightFormatters.js.map +0 -1
  62. package/dist/node_modules/date-fns/_lib/format/longFormatters.js +0 -67
  63. package/dist/node_modules/date-fns/_lib/format/longFormatters.js.map +0 -1
  64. package/dist/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js +0 -32
  65. package/dist/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js.map +0 -1
  66. package/dist/node_modules/date-fns/_lib/normalizeDates.js +0 -12
  67. package/dist/node_modules/date-fns/_lib/normalizeDates.js.map +0 -1
  68. package/dist/node_modules/date-fns/_lib/normalizeInterval.js +0 -9
  69. package/dist/node_modules/date-fns/_lib/normalizeInterval.js.map +0 -1
  70. package/dist/node_modules/date-fns/_lib/protectedTokens.js +0 -26
  71. package/dist/node_modules/date-fns/_lib/protectedTokens.js.map +0 -1
  72. package/dist/node_modules/date-fns/addDays.js +0 -61
  73. package/dist/node_modules/date-fns/addDays.js.map +0 -1
  74. package/dist/node_modules/date-fns/addMonths.js +0 -76
  75. package/dist/node_modules/date-fns/addMonths.js.map +0 -1
  76. package/dist/node_modules/date-fns/addWeeks.js +0 -34
  77. package/dist/node_modules/date-fns/addWeeks.js.map +0 -1
  78. package/dist/node_modules/date-fns/addYears.js +0 -34
  79. package/dist/node_modules/date-fns/addYears.js.map +0 -1
  80. package/dist/node_modules/date-fns/constants.js +0 -47
  81. package/dist/node_modules/date-fns/constants.js.map +0 -1
  82. package/dist/node_modules/date-fns/constructFrom.js +0 -50
  83. package/dist/node_modules/date-fns/constructFrom.js.map +0 -1
  84. package/dist/node_modules/date-fns/differenceInCalendarDays.js +0 -63
  85. package/dist/node_modules/date-fns/differenceInCalendarDays.js.map +0 -1
  86. package/dist/node_modules/date-fns/differenceInCalendarMonths.js +0 -43
  87. package/dist/node_modules/date-fns/differenceInCalendarMonths.js.map +0 -1
  88. package/dist/node_modules/date-fns/eachMonthOfInterval.js +0 -66
  89. package/dist/node_modules/date-fns/eachMonthOfInterval.js.map +0 -1
  90. package/dist/node_modules/date-fns/eachYearOfInterval.js +0 -66
  91. package/dist/node_modules/date-fns/eachYearOfInterval.js.map +0 -1
  92. package/dist/node_modules/date-fns/endOfISOWeek.js +0 -36
  93. package/dist/node_modules/date-fns/endOfISOWeek.js.map +0 -1
  94. package/dist/node_modules/date-fns/endOfMonth.js +0 -38
  95. package/dist/node_modules/date-fns/endOfMonth.js.map +0 -1
  96. package/dist/node_modules/date-fns/endOfWeek.js +0 -54
  97. package/dist/node_modules/date-fns/endOfWeek.js.map +0 -1
  98. package/dist/node_modules/date-fns/endOfYear.js +0 -38
  99. package/dist/node_modules/date-fns/endOfYear.js.map +0 -1
  100. package/dist/node_modules/date-fns/format.js +0 -424
  101. package/dist/node_modules/date-fns/format.js.map +0 -1
  102. package/dist/node_modules/date-fns/getDayOfYear.js +0 -35
  103. package/dist/node_modules/date-fns/getDayOfYear.js.map +0 -1
  104. package/dist/node_modules/date-fns/getDaysInMonth.js +0 -37
  105. package/dist/node_modules/date-fns/getDaysInMonth.js.map +0 -1
  106. package/dist/node_modules/date-fns/getISOWeek.js +0 -41
  107. package/dist/node_modules/date-fns/getISOWeek.js.map +0 -1
  108. package/dist/node_modules/date-fns/getISOWeekYear.js +0 -53
  109. package/dist/node_modules/date-fns/getISOWeekYear.js.map +0 -1
  110. package/dist/node_modules/date-fns/getMonth.js +0 -30
  111. package/dist/node_modules/date-fns/getMonth.js.map +0 -1
  112. package/dist/node_modules/date-fns/getWeek.js +0 -55
  113. package/dist/node_modules/date-fns/getWeek.js.map +0 -1
  114. package/dist/node_modules/date-fns/getWeekYear.js +0 -76
  115. package/dist/node_modules/date-fns/getWeekYear.js.map +0 -1
  116. package/dist/node_modules/date-fns/getYear.js +0 -30
  117. package/dist/node_modules/date-fns/getYear.js.map +0 -1
  118. package/dist/node_modules/date-fns/isAfter.js +0 -26
  119. package/dist/node_modules/date-fns/isAfter.js.map +0 -1
  120. package/dist/node_modules/date-fns/isBefore.js +0 -26
  121. package/dist/node_modules/date-fns/isBefore.js.map +0 -1
  122. package/dist/node_modules/date-fns/isDate.js +0 -42
  123. package/dist/node_modules/date-fns/isDate.js.map +0 -1
  124. package/dist/node_modules/date-fns/isSameDay.js +0 -47
  125. package/dist/node_modules/date-fns/isSameDay.js.map +0 -1
  126. package/dist/node_modules/date-fns/isSameMonth.js +0 -44
  127. package/dist/node_modules/date-fns/isSameMonth.js.map +0 -1
  128. package/dist/node_modules/date-fns/isSameYear.js +0 -36
  129. package/dist/node_modules/date-fns/isSameYear.js.map +0 -1
  130. package/dist/node_modules/date-fns/isValid.js +0 -40
  131. package/dist/node_modules/date-fns/isValid.js.map +0 -1
  132. package/dist/node_modules/date-fns/locale/_lib/buildFormatLongFn.js +0 -11
  133. package/dist/node_modules/date-fns/locale/_lib/buildFormatLongFn.js.map +0 -1
  134. package/dist/node_modules/date-fns/locale/_lib/buildLocalizeFn.js +0 -65
  135. package/dist/node_modules/date-fns/locale/_lib/buildLocalizeFn.js.map +0 -1
  136. package/dist/node_modules/date-fns/locale/_lib/buildMatchFn.js +0 -60
  137. package/dist/node_modules/date-fns/locale/_lib/buildMatchFn.js.map +0 -1
  138. package/dist/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js +0 -23
  139. package/dist/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js.map +0 -1
  140. package/dist/node_modules/date-fns/locale/en-US/_lib/formatDistance.js +0 -104
  141. package/dist/node_modules/date-fns/locale/en-US/_lib/formatDistance.js.map +0 -1
  142. package/dist/node_modules/date-fns/locale/en-US/_lib/formatLong.js +0 -42
  143. package/dist/node_modules/date-fns/locale/en-US/_lib/formatLong.js.map +0 -1
  144. package/dist/node_modules/date-fns/locale/en-US/_lib/formatRelative.js +0 -14
  145. package/dist/node_modules/date-fns/locale/en-US/_lib/formatRelative.js.map +0 -1
  146. package/dist/node_modules/date-fns/locale/en-US/_lib/localize.js +0 -190
  147. package/dist/node_modules/date-fns/locale/en-US/_lib/localize.js.map +0 -1
  148. package/dist/node_modules/date-fns/locale/en-US/_lib/match.js +0 -135
  149. package/dist/node_modules/date-fns/locale/en-US/_lib/match.js.map +0 -1
  150. package/dist/node_modules/date-fns/locale/en-US.js +0 -29
  151. package/dist/node_modules/date-fns/locale/en-US.js.map +0 -1
  152. package/dist/node_modules/date-fns/max.js +0 -50
  153. package/dist/node_modules/date-fns/max.js.map +0 -1
  154. package/dist/node_modules/date-fns/min.js +0 -50
  155. package/dist/node_modules/date-fns/min.js.map +0 -1
  156. package/dist/node_modules/date-fns/setMonth.js +0 -47
  157. package/dist/node_modules/date-fns/setMonth.js.map +0 -1
  158. package/dist/node_modules/date-fns/setYear.js +0 -41
  159. package/dist/node_modules/date-fns/setYear.js.map +0 -1
  160. package/dist/node_modules/date-fns/startOfDay.js +0 -36
  161. package/dist/node_modules/date-fns/startOfDay.js.map +0 -1
  162. package/dist/node_modules/date-fns/startOfISOWeek.js +0 -36
  163. package/dist/node_modules/date-fns/startOfISOWeek.js.map +0 -1
  164. package/dist/node_modules/date-fns/startOfISOWeekYear.js +0 -43
  165. package/dist/node_modules/date-fns/startOfISOWeekYear.js.map +0 -1
  166. package/dist/node_modules/date-fns/startOfMonth.js +0 -38
  167. package/dist/node_modules/date-fns/startOfMonth.js.map +0 -1
  168. package/dist/node_modules/date-fns/startOfWeek.js +0 -54
  169. package/dist/node_modules/date-fns/startOfWeek.js.map +0 -1
  170. package/dist/node_modules/date-fns/startOfWeekYear.js +0 -65
  171. package/dist/node_modules/date-fns/startOfWeekYear.js.map +0 -1
  172. package/dist/node_modules/date-fns/startOfYear.js +0 -37
  173. package/dist/node_modules/date-fns/startOfYear.js.map +0 -1
  174. package/dist/node_modules/date-fns/toDate.js +0 -47
  175. package/dist/node_modules/date-fns/toDate.js.map +0 -1
  176. package/dist/node_modules/react-day-picker/dist/esm/DayPicker.js +0 -347
  177. package/dist/node_modules/react-day-picker/dist/esm/DayPicker.js.map +0 -1
  178. package/dist/node_modules/react-day-picker/dist/esm/UI.js +0 -123
  179. package/dist/node_modules/react-day-picker/dist/esm/UI.js.map +0 -1
  180. package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarDay.js +0 -34
  181. package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarDay.js.map +0 -1
  182. package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarMonth.js +0 -15
  183. package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarMonth.js.map +0 -1
  184. package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarWeek.js +0 -14
  185. package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarWeek.js.map +0 -1
  186. package/dist/node_modules/react-day-picker/dist/esm/classes/DateLib.js +0 -600
  187. package/dist/node_modules/react-day-picker/dist/esm/classes/DateLib.js.map +0 -1
  188. package/dist/node_modules/react-day-picker/dist/esm/components/CaptionLabel.js +0 -14
  189. package/dist/node_modules/react-day-picker/dist/esm/components/CaptionLabel.js.map +0 -1
  190. package/dist/node_modules/react-day-picker/dist/esm/components/Chevron.js +0 -19
  191. package/dist/node_modules/react-day-picker/dist/esm/components/Chevron.js.map +0 -1
  192. package/dist/node_modules/react-day-picker/dist/esm/components/Day.js +0 -19
  193. package/dist/node_modules/react-day-picker/dist/esm/components/Day.js.map +0 -1
  194. package/dist/node_modules/react-day-picker/dist/esm/components/DayButton.js +0 -20
  195. package/dist/node_modules/react-day-picker/dist/esm/components/DayButton.js.map +0 -1
  196. package/dist/node_modules/react-day-picker/dist/esm/components/Dropdown.js +0 -24
  197. package/dist/node_modules/react-day-picker/dist/esm/components/Dropdown.js.map +0 -1
  198. package/dist/node_modules/react-day-picker/dist/esm/components/DropdownNav.js +0 -14
  199. package/dist/node_modules/react-day-picker/dist/esm/components/DropdownNav.js.map +0 -1
  200. package/dist/node_modules/react-day-picker/dist/esm/components/Footer.js +0 -14
  201. package/dist/node_modules/react-day-picker/dist/esm/components/Footer.js.map +0 -1
  202. package/dist/node_modules/react-day-picker/dist/esm/components/Month.js +0 -16
  203. package/dist/node_modules/react-day-picker/dist/esm/components/Month.js.map +0 -1
  204. package/dist/node_modules/react-day-picker/dist/esm/components/MonthCaption.js +0 -15
  205. package/dist/node_modules/react-day-picker/dist/esm/components/MonthCaption.js.map +0 -1
  206. package/dist/node_modules/react-day-picker/dist/esm/components/MonthGrid.js +0 -14
  207. package/dist/node_modules/react-day-picker/dist/esm/components/MonthGrid.js.map +0 -1
  208. package/dist/node_modules/react-day-picker/dist/esm/components/Months.js +0 -14
  209. package/dist/node_modules/react-day-picker/dist/esm/components/Months.js.map +0 -1
  210. package/dist/node_modules/react-day-picker/dist/esm/components/MonthsDropdown.js +0 -16
  211. package/dist/node_modules/react-day-picker/dist/esm/components/MonthsDropdown.js.map +0 -1
  212. package/dist/node_modules/react-day-picker/dist/esm/components/Nav.js +0 -32
  213. package/dist/node_modules/react-day-picker/dist/esm/components/Nav.js.map +0 -1
  214. package/dist/node_modules/react-day-picker/dist/esm/components/NextMonthButton.js +0 -14
  215. package/dist/node_modules/react-day-picker/dist/esm/components/NextMonthButton.js.map +0 -1
  216. package/dist/node_modules/react-day-picker/dist/esm/components/Option.js +0 -14
  217. package/dist/node_modules/react-day-picker/dist/esm/components/Option.js.map +0 -1
  218. package/dist/node_modules/react-day-picker/dist/esm/components/PreviousMonthButton.js +0 -14
  219. package/dist/node_modules/react-day-picker/dist/esm/components/PreviousMonthButton.js.map +0 -1
  220. package/dist/node_modules/react-day-picker/dist/esm/components/Root.js +0 -15
  221. package/dist/node_modules/react-day-picker/dist/esm/components/Root.js.map +0 -1
  222. package/dist/node_modules/react-day-picker/dist/esm/components/Select.js +0 -14
  223. package/dist/node_modules/react-day-picker/dist/esm/components/Select.js.map +0 -1
  224. package/dist/node_modules/react-day-picker/dist/esm/components/Week.js +0 -15
  225. package/dist/node_modules/react-day-picker/dist/esm/components/Week.js.map +0 -1
  226. package/dist/node_modules/react-day-picker/dist/esm/components/WeekNumber.js +0 -15
  227. package/dist/node_modules/react-day-picker/dist/esm/components/WeekNumber.js.map +0 -1
  228. package/dist/node_modules/react-day-picker/dist/esm/components/WeekNumberHeader.js +0 -14
  229. package/dist/node_modules/react-day-picker/dist/esm/components/WeekNumberHeader.js.map +0 -1
  230. package/dist/node_modules/react-day-picker/dist/esm/components/Weekday.js +0 -14
  231. package/dist/node_modules/react-day-picker/dist/esm/components/Weekday.js.map +0 -1
  232. package/dist/node_modules/react-day-picker/dist/esm/components/Weekdays.js +0 -15
  233. package/dist/node_modules/react-day-picker/dist/esm/components/Weekdays.js.map +0 -1
  234. package/dist/node_modules/react-day-picker/dist/esm/components/Weeks.js +0 -14
  235. package/dist/node_modules/react-day-picker/dist/esm/components/Weeks.js.map +0 -1
  236. package/dist/node_modules/react-day-picker/dist/esm/components/YearsDropdown.js +0 -16
  237. package/dist/node_modules/react-day-picker/dist/esm/components/YearsDropdown.js.map +0 -1
  238. package/dist/node_modules/react-day-picker/dist/esm/components/custom-components.js +0 -26
  239. package/dist/node_modules/react-day-picker/dist/esm/components/custom-components.js.map +0 -1
  240. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatCaption.js +0 -21
  241. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatCaption.js.map +0 -1
  242. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatDay.js +0 -20
  243. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatDay.js.map +0 -1
  244. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatMonthDropdown.js +0 -19
  245. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatMonthDropdown.js.map +0 -1
  246. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumber.js +0 -22
  247. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumber.js.map +0 -1
  248. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumberHeader.js +0 -14
  249. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumberHeader.js.map +0 -1
  250. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekdayName.js +0 -20
  251. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekdayName.js.map +0 -1
  252. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatYearDropdown.js +0 -18
  253. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatYearDropdown.js.map +0 -1
  254. package/dist/node_modules/react-day-picker/dist/esm/formatters/index.js +0 -8
  255. package/dist/node_modules/react-day-picker/dist/esm/formatters/index.js.map +0 -1
  256. package/dist/node_modules/react-day-picker/dist/esm/helpers/calculateFocusTarget.js +0 -74
  257. package/dist/node_modules/react-day-picker/dist/esm/helpers/calculateFocusTarget.js.map +0 -1
  258. package/dist/node_modules/react-day-picker/dist/esm/helpers/createGetModifiers.js +0 -96
  259. package/dist/node_modules/react-day-picker/dist/esm/helpers/createGetModifiers.js.map +0 -1
  260. package/dist/node_modules/react-day-picker/dist/esm/helpers/endOfBroadcastWeek.js +0 -23
  261. package/dist/node_modules/react-day-picker/dist/esm/helpers/endOfBroadcastWeek.js.map +0 -1
  262. package/dist/node_modules/react-day-picker/dist/esm/helpers/getBroadcastWeeksInMonth.js +0 -29
  263. package/dist/node_modules/react-day-picker/dist/esm/helpers/getBroadcastWeeksInMonth.js.map +0 -1
  264. package/dist/node_modules/react-day-picker/dist/esm/helpers/getClassNamesForModifiers.js +0 -34
  265. package/dist/node_modules/react-day-picker/dist/esm/helpers/getClassNamesForModifiers.js.map +0 -1
  266. package/dist/node_modules/react-day-picker/dist/esm/helpers/getComponents.js +0 -21
  267. package/dist/node_modules/react-day-picker/dist/esm/helpers/getComponents.js.map +0 -1
  268. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDataAttributes.js +0 -28
  269. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDataAttributes.js.map +0 -1
  270. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDates.js +0 -60
  271. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDates.js.map +0 -1
  272. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDays.js +0 -20
  273. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDays.js.map +0 -1
  274. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDefaultClassNames.js +0 -34
  275. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDefaultClassNames.js.map +0 -1
  276. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDisplayMonths.js +0 -25
  277. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDisplayMonths.js.map +0 -1
  278. package/dist/node_modules/react-day-picker/dist/esm/helpers/getFocusableDate.js +0 -47
  279. package/dist/node_modules/react-day-picker/dist/esm/helpers/getFocusableDate.js.map +0 -1
  280. package/dist/node_modules/react-day-picker/dist/esm/helpers/getFormatters.js +0 -18
  281. package/dist/node_modules/react-day-picker/dist/esm/helpers/getFormatters.js.map +0 -1
  282. package/dist/node_modules/react-day-picker/dist/esm/helpers/getInitialMonth.js +0 -28
  283. package/dist/node_modules/react-day-picker/dist/esm/helpers/getInitialMonth.js.map +0 -1
  284. package/dist/node_modules/react-day-picker/dist/esm/helpers/getLabels.js +0 -54
  285. package/dist/node_modules/react-day-picker/dist/esm/helpers/getLabels.js.map +0 -1
  286. package/dist/node_modules/react-day-picker/dist/esm/helpers/getMonthOptions.js +0 -34
  287. package/dist/node_modules/react-day-picker/dist/esm/helpers/getMonthOptions.js.map +0 -1
  288. package/dist/node_modules/react-day-picker/dist/esm/helpers/getMonths.js +0 -70
  289. package/dist/node_modules/react-day-picker/dist/esm/helpers/getMonths.js.map +0 -1
  290. package/dist/node_modules/react-day-picker/dist/esm/helpers/getNavMonth.js +0 -32
  291. package/dist/node_modules/react-day-picker/dist/esm/helpers/getNavMonth.js.map +0 -1
  292. package/dist/node_modules/react-day-picker/dist/esm/helpers/getNextFocus.js +0 -41
  293. package/dist/node_modules/react-day-picker/dist/esm/helpers/getNextFocus.js.map +0 -1
  294. package/dist/node_modules/react-day-picker/dist/esm/helpers/getNextMonth.js +0 -37
  295. package/dist/node_modules/react-day-picker/dist/esm/helpers/getNextMonth.js.map +0 -1
  296. package/dist/node_modules/react-day-picker/dist/esm/helpers/getPreviousMonth.js +0 -38
  297. package/dist/node_modules/react-day-picker/dist/esm/helpers/getPreviousMonth.js.map +0 -1
  298. package/dist/node_modules/react-day-picker/dist/esm/helpers/getStyleForModifiers.js +0 -28
  299. package/dist/node_modules/react-day-picker/dist/esm/helpers/getStyleForModifiers.js.map +0 -1
  300. package/dist/node_modules/react-day-picker/dist/esm/helpers/getWeekdays.js +0 -27
  301. package/dist/node_modules/react-day-picker/dist/esm/helpers/getWeekdays.js.map +0 -1
  302. package/dist/node_modules/react-day-picker/dist/esm/helpers/getWeeks.js +0 -15
  303. package/dist/node_modules/react-day-picker/dist/esm/helpers/getWeeks.js.map +0 -1
  304. package/dist/node_modules/react-day-picker/dist/esm/helpers/getYearOptions.js +0 -37
  305. package/dist/node_modules/react-day-picker/dist/esm/helpers/getYearOptions.js.map +0 -1
  306. package/dist/node_modules/react-day-picker/dist/esm/helpers/startOfBroadcastWeek.js +0 -28
  307. package/dist/node_modules/react-day-picker/dist/esm/helpers/startOfBroadcastWeek.js.map +0 -1
  308. package/dist/node_modules/react-day-picker/dist/esm/helpers/useControlledValue.js +0 -32
  309. package/dist/node_modules/react-day-picker/dist/esm/helpers/useControlledValue.js.map +0 -1
  310. package/dist/node_modules/react-day-picker/dist/esm/labels/index.js +0 -12
  311. package/dist/node_modules/react-day-picker/dist/esm/labels/index.js.map +0 -1
  312. package/dist/node_modules/react-day-picker/dist/esm/labels/labelDayButton.js +0 -28
  313. package/dist/node_modules/react-day-picker/dist/esm/labels/labelDayButton.js.map +0 -1
  314. package/dist/node_modules/react-day-picker/dist/esm/labels/labelGrid.js +0 -21
  315. package/dist/node_modules/react-day-picker/dist/esm/labels/labelGrid.js.map +0 -1
  316. package/dist/node_modules/react-day-picker/dist/esm/labels/labelGridcell.js +0 -23
  317. package/dist/node_modules/react-day-picker/dist/esm/labels/labelGridcell.js.map +0 -1
  318. package/dist/node_modules/react-day-picker/dist/esm/labels/labelMonthDropdown.js +0 -15
  319. package/dist/node_modules/react-day-picker/dist/esm/labels/labelMonthDropdown.js.map +0 -1
  320. package/dist/node_modules/react-day-picker/dist/esm/labels/labelNav.js +0 -14
  321. package/dist/node_modules/react-day-picker/dist/esm/labels/labelNav.js.map +0 -1
  322. package/dist/node_modules/react-day-picker/dist/esm/labels/labelNext.js +0 -17
  323. package/dist/node_modules/react-day-picker/dist/esm/labels/labelNext.js.map +0 -1
  324. package/dist/node_modules/react-day-picker/dist/esm/labels/labelPrevious.js +0 -16
  325. package/dist/node_modules/react-day-picker/dist/esm/labels/labelPrevious.js.map +0 -1
  326. package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekNumber.js +0 -16
  327. package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekNumber.js.map +0 -1
  328. package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekNumberHeader.js +0 -15
  329. package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekNumberHeader.js.map +0 -1
  330. package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekday.js +0 -19
  331. package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekday.js.map +0 -1
  332. package/dist/node_modules/react-day-picker/dist/esm/labels/labelYearDropdown.js +0 -15
  333. package/dist/node_modules/react-day-picker/dist/esm/labels/labelYearDropdown.js.map +0 -1
  334. package/dist/node_modules/react-day-picker/dist/esm/locale/en-US.js +0 -68
  335. package/dist/node_modules/react-day-picker/dist/esm/locale/en-US.js.map +0 -1
  336. package/dist/node_modules/react-day-picker/dist/esm/noonDateLib.js +0 -164
  337. package/dist/node_modules/react-day-picker/dist/esm/noonDateLib.js.map +0 -1
  338. package/dist/node_modules/react-day-picker/dist/esm/selection/useMulti.js +0 -58
  339. package/dist/node_modules/react-day-picker/dist/esm/selection/useMulti.js.map +0 -1
  340. package/dist/node_modules/react-day-picker/dist/esm/selection/useRange.js +0 -64
  341. package/dist/node_modules/react-day-picker/dist/esm/selection/useRange.js.map +0 -1
  342. package/dist/node_modules/react-day-picker/dist/esm/selection/useSingle.js +0 -45
  343. package/dist/node_modules/react-day-picker/dist/esm/selection/useSingle.js.map +0 -1
  344. package/dist/node_modules/react-day-picker/dist/esm/useAnimation.js +0 -174
  345. package/dist/node_modules/react-day-picker/dist/esm/useAnimation.js.map +0 -1
  346. package/dist/node_modules/react-day-picker/dist/esm/useCalendar.js +0 -114
  347. package/dist/node_modules/react-day-picker/dist/esm/useCalendar.js.map +0 -1
  348. package/dist/node_modules/react-day-picker/dist/esm/useDayPicker.js +0 -26
  349. package/dist/node_modules/react-day-picker/dist/esm/useDayPicker.js.map +0 -1
  350. package/dist/node_modules/react-day-picker/dist/esm/useFocus.js +0 -57
  351. package/dist/node_modules/react-day-picker/dist/esm/useFocus.js.map +0 -1
  352. package/dist/node_modules/react-day-picker/dist/esm/useSelection.js +0 -32
  353. package/dist/node_modules/react-day-picker/dist/esm/useSelection.js.map +0 -1
  354. package/dist/node_modules/react-day-picker/dist/esm/utils/addToRange.js +0 -96
  355. package/dist/node_modules/react-day-picker/dist/esm/utils/addToRange.js.map +0 -1
  356. package/dist/node_modules/react-day-picker/dist/esm/utils/convertMatchersToTimeZone.js +0 -62
  357. package/dist/node_modules/react-day-picker/dist/esm/utils/convertMatchersToTimeZone.js.map +0 -1
  358. package/dist/node_modules/react-day-picker/dist/esm/utils/dateMatchModifiers.js +0 -63
  359. package/dist/node_modules/react-day-picker/dist/esm/utils/dateMatchModifiers.js.map +0 -1
  360. package/dist/node_modules/react-day-picker/dist/esm/utils/rangeContainsDayOfWeek.js +0 -31
  361. package/dist/node_modules/react-day-picker/dist/esm/utils/rangeContainsDayOfWeek.js.map +0 -1
  362. package/dist/node_modules/react-day-picker/dist/esm/utils/rangeContainsModifiers.js +0 -75
  363. package/dist/node_modules/react-day-picker/dist/esm/utils/rangeContainsModifiers.js.map +0 -1
  364. package/dist/node_modules/react-day-picker/dist/esm/utils/rangeIncludesDate.js +0 -36
  365. package/dist/node_modules/react-day-picker/dist/esm/utils/rangeIncludesDate.js.map +0 -1
  366. package/dist/node_modules/react-day-picker/dist/esm/utils/rangeOverlaps.js +0 -22
  367. package/dist/node_modules/react-day-picker/dist/esm/utils/rangeOverlaps.js.map +0 -1
  368. package/dist/node_modules/react-day-picker/dist/esm/utils/toTimeZone.js +0 -17
  369. package/dist/node_modules/react-day-picker/dist/esm/utils/toTimeZone.js.map +0 -1
  370. package/dist/node_modules/react-day-picker/dist/esm/utils/typeguards.js +0 -67
  371. package/dist/node_modules/react-day-picker/dist/esm/utils/typeguards.js.map +0 -1
  372. package/dist/node_modules/style-inject/dist/style-inject.es.js +0 -29
  373. package/dist/node_modules/style-inject/dist/style-inject.es.js.map +0 -1
  374. package/dist/utilities/Icons.d.ts +0 -33
  375. /package/dist/{components → src/components}/ui/accordion.d.ts +0 -0
  376. /package/dist/{components → src/components}/ui/avatar.d.ts +0 -0
  377. /package/dist/{components → src/components}/ui/button.d.ts +0 -0
  378. /package/dist/{components → src/components}/ui/calendar.d.ts +0 -0
  379. /package/dist/{components → src/components}/ui/card.d.ts +0 -0
  380. /package/dist/{components → src/components}/ui/checkbox.d.ts +0 -0
  381. /package/dist/{components → src/components}/ui/dialog.d.ts +0 -0
  382. /package/dist/{components → src/components}/ui/icons.d.ts +0 -0
  383. /package/dist/{components → src/components}/ui/input.d.ts +0 -0
  384. /package/dist/{components → src/components}/ui/label.d.ts +0 -0
  385. /package/dist/{components → src/components}/ui/popover.d.ts +0 -0
  386. /package/dist/{components → src/components}/ui/separator.d.ts +0 -0
  387. /package/dist/{components → src/components}/ui/skeleton.d.ts +0 -0
  388. /package/dist/{components → src/components}/ui/switch.d.ts +0 -0
  389. /package/dist/{components → src/components}/ui/table.d.ts +0 -0
  390. /package/dist/{components → src/components}/ui/textarea.d.ts +0 -0
  391. /package/dist/{components → src/components}/ui/tooltip.d.ts +0 -0
  392. /package/dist/{config.d.ts → src/config.d.ts} +0 -0
  393. /package/dist/{hooks → src/hooks}/useClientProcess.d.ts +0 -0
  394. /package/dist/{utils.d.ts → src/utils.d.ts} +0 -0
@@ -1 +0,0 @@
1
- {"version":3,"file":"getDates.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/helpers/getDates.js"],"sourcesContent":["/**\n * Returns all the dates to display in the calendar.\n *\n * This function calculates the range of dates to display based on the provided\n * display months, constraints, and calendar configuration.\n *\n * @param displayMonths The months to display in the calendar.\n * @param maxDate The maximum date to include in the range.\n * @param props The DayPicker props, including calendar configuration options.\n * @param dateLib The date library to use for date manipulation.\n * @returns An array of dates to display in the calendar.\n */\nexport function getDates(displayMonths, maxDate, props, dateLib) {\n const firstMonth = displayMonths[0];\n const lastMonth = displayMonths[displayMonths.length - 1];\n const { ISOWeek, fixedWeeks, broadcastCalendar } = props ?? {};\n const { addDays, differenceInCalendarDays, differenceInCalendarMonths, endOfBroadcastWeek, endOfISOWeek, endOfMonth, endOfWeek, isAfter, startOfBroadcastWeek, startOfISOWeek, startOfWeek, } = dateLib;\n const startWeekFirstDate = broadcastCalendar\n ? startOfBroadcastWeek(firstMonth, dateLib)\n : ISOWeek\n ? startOfISOWeek(firstMonth)\n : startOfWeek(firstMonth);\n const displayMonthsWeekEnd = broadcastCalendar\n ? endOfBroadcastWeek(lastMonth)\n : ISOWeek\n ? endOfISOWeek(endOfMonth(lastMonth))\n : endOfWeek(endOfMonth(lastMonth));\n // If maxDate is set, clamp the grid to the end of that week.\n const constraintWeekEnd = maxDate &&\n (broadcastCalendar\n ? endOfBroadcastWeek(maxDate)\n : ISOWeek\n ? endOfISOWeek(maxDate)\n : endOfWeek(maxDate));\n // Pick the earliest week end between the displayed months and the constraint.\n const gridEndDate = constraintWeekEnd && isAfter(displayMonthsWeekEnd, constraintWeekEnd)\n ? constraintWeekEnd\n : displayMonthsWeekEnd;\n const nOfDays = differenceInCalendarDays(gridEndDate, startWeekFirstDate);\n const nOfMonths = differenceInCalendarMonths(lastMonth, firstMonth) + 1;\n const dates = [];\n for (let i = 0; i <= nOfDays; i++) {\n const date = addDays(startWeekFirstDate, i);\n dates.push(date);\n }\n // If fixed weeks is enabled, add the extra dates to the array\n const nrOfDaysWithFixedWeeks = broadcastCalendar ? 35 : 42;\n const extraDates = nrOfDaysWithFixedWeeks * nOfMonths;\n if (fixedWeeks && dates.length < extraDates) {\n const daysToAdd = extraDates - dates.length;\n for (let i = 0; i < daysToAdd; i++) {\n const date = addDays(dates[dates.length - 1], 1);\n dates.push(date);\n }\n }\n return dates;\n}\n"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAAS,QAAQ,CAAC,aAAa,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE;AACjE,IAAI,MAAM,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;AACvC,IAAI,MAAM,SAAS,GAAG,aAAa,CAAC,aAAa,CAAC,MAAM,GAAG,CAAC,CAAC;AAC7D,IAAI,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,iBAAiB,EAAE,GAAG,KAAK,IAAI,EAAE;AAClE,IAAI,MAAM,EAAE,OAAO,EAAE,wBAAwB,EAAE,0BAA0B,EAAE,kBAAkB,EAAE,YAAY,EAAE,UAAU,EAAE,SAAS,EAAE,OAAO,EAAE,oBAAoB,EAAE,cAAc,EAAE,WAAW,GAAG,GAAG,OAAO;AAC3M,IAAI,MAAM,kBAAkB,GAAG;AAC/B,UAAU,oBAAoB,CAAC,UAAU,EAAE,OAAO;AAClD,UAAU;AACV,cAAc,cAAc,CAAC,UAAU;AACvC,cAAc,WAAW,CAAC,UAAU,CAAC;AACrC,IAAI,MAAM,oBAAoB,GAAG;AACjC,UAAU,kBAAkB,CAAC,SAAS;AACtC,UAAU;AACV,cAAc,YAAY,CAAC,UAAU,CAAC,SAAS,CAAC;AAChD,cAAc,SAAS,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC;AAC9C;AACA,IAAI,MAAM,iBAAiB,GAAG,OAAO;AACrC,SAAS;AACT,cAAc,kBAAkB,CAAC,OAAO;AACxC,cAAc;AACd,kBAAkB,YAAY,CAAC,OAAO;AACtC,kBAAkB,SAAS,CAAC,OAAO,CAAC,CAAC;AACrC;AACA,IAAI,MAAM,WAAW,GAAG,iBAAiB,IAAI,OAAO,CAAC,oBAAoB,EAAE,iBAAiB;AAC5F,UAAU;AACV,UAAU,oBAAoB;AAC9B,IAAI,MAAM,OAAO,GAAG,wBAAwB,CAAC,WAAW,EAAE,kBAAkB,CAAC;AAC7E,IAAI,MAAM,SAAS,GAAG,0BAA0B,CAAC,SAAS,EAAE,UAAU,CAAC,GAAG,CAAC;AAC3E,IAAI,MAAM,KAAK,GAAG,EAAE;AACpB,IAAI,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,IAAI,OAAO,EAAE,CAAC,EAAE,EAAE;AACvC,QAAQ,MAAM,IAAI,GAAG,OAAO,CAAC,kBAAkB,EAAE,CAAC,CAAC;AACnD,QAAQ,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC;AACxB,IAAI;AACJ;AACA,IAAI,MAAM,sBAAsB,GAAG,iBAAiB,GAAG,EAAE,GAAG,EAAE;AAC9D,IAAI,MAAM,UAAU,GAAG,sBAAsB,GAAG,SAAS;AACzD,IAAI,IAAI,UAAU,IAAI,KAAK,CAAC,MAAM,GAAG,UAAU,EAAE;AACjD,QAAQ,MAAM,SAAS,GAAG,UAAU,GAAG,KAAK,CAAC,MAAM;AACnD,QAAQ,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,SAAS,EAAE,CAAC,EAAE,EAAE;AAC5C,YAAY,MAAM,IAAI,GAAG,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;AAC5D,YAAY,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC;AAC5B,QAAQ;AACR,IAAI;AACJ,IAAI,OAAO,KAAK;AAChB;;;;","x_google_ignoreList":[0]}
@@ -1,20 +0,0 @@
1
- /**
2
- * Returns all the days belonging to the calendar by merging the days in the
3
- * weeks for each month.
4
- *
5
- * @param calendarMonths The array of calendar months.
6
- * @returns An array of `CalendarDay` objects representing all the days in the
7
- * calendar.
8
- */
9
- function getDays(calendarMonths) {
10
- const initialDays = [];
11
- return calendarMonths.reduce((days, month) => {
12
- const weekDays = month.weeks.reduce((weekDays, week) => {
13
- return weekDays.concat(week.days.slice());
14
- }, initialDays.slice());
15
- return days.concat(weekDays.slice());
16
- }, initialDays.slice());
17
- }
18
-
19
- export { getDays };
20
- //# sourceMappingURL=getDays.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getDays.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/helpers/getDays.js"],"sourcesContent":["/**\n * Returns all the days belonging to the calendar by merging the days in the\n * weeks for each month.\n *\n * @param calendarMonths The array of calendar months.\n * @returns An array of `CalendarDay` objects representing all the days in the\n * calendar.\n */\nexport function getDays(calendarMonths) {\n const initialDays = [];\n return calendarMonths.reduce((days, month) => {\n const weekDays = month.weeks.reduce((weekDays, week) => {\n return weekDays.concat(week.days.slice());\n }, initialDays.slice());\n return days.concat(weekDays.slice());\n }, initialDays.slice());\n}\n"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAAS,OAAO,CAAC,cAAc,EAAE;AACxC,IAAI,MAAM,WAAW,GAAG,EAAE;AAC1B,IAAI,OAAO,cAAc,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,KAAK,KAAK;AAClD,QAAQ,MAAM,QAAQ,GAAG,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,QAAQ,EAAE,IAAI,KAAK;AAChE,YAAY,OAAO,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC;AACrD,QAAQ,CAAC,EAAE,WAAW,CAAC,KAAK,EAAE,CAAC;AAC/B,QAAQ,OAAO,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,KAAK,EAAE,CAAC;AAC5C,IAAI,CAAC,EAAE,WAAW,CAAC,KAAK,EAAE,CAAC;AAC3B;;;;","x_google_ignoreList":[0]}
@@ -1,34 +0,0 @@
1
- import { UI, DayFlag, SelectionState, Animation } from '../UI.js';
2
-
3
- /**
4
- * Returns the default class names for the UI elements.
5
- *
6
- * This function generates a mapping of default class names for various UI
7
- * elements, day flags, selection states, and animations.
8
- *
9
- * @returns An object containing the default class names.
10
- * @group Utilities
11
- */
12
- function getDefaultClassNames() {
13
- const classNames = {};
14
- for (const key in UI) {
15
- classNames[UI[key]] =
16
- `rdp-${UI[key]}`;
17
- }
18
- for (const key in DayFlag) {
19
- classNames[DayFlag[key]] =
20
- `rdp-${DayFlag[key]}`;
21
- }
22
- for (const key in SelectionState) {
23
- classNames[SelectionState[key]] =
24
- `rdp-${SelectionState[key]}`;
25
- }
26
- for (const key in Animation) {
27
- classNames[Animation[key]] =
28
- `rdp-${Animation[key]}`;
29
- }
30
- return classNames;
31
- }
32
-
33
- export { getDefaultClassNames };
34
- //# sourceMappingURL=getDefaultClassNames.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getDefaultClassNames.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/helpers/getDefaultClassNames.js"],"sourcesContent":["import { Animation, DayFlag, SelectionState, UI } from \"../UI.js\";\n/**\n * Returns the default class names for the UI elements.\n *\n * This function generates a mapping of default class names for various UI\n * elements, day flags, selection states, and animations.\n *\n * @returns An object containing the default class names.\n * @group Utilities\n */\nexport function getDefaultClassNames() {\n const classNames = {};\n for (const key in UI) {\n classNames[UI[key]] =\n `rdp-${UI[key]}`;\n }\n for (const key in DayFlag) {\n classNames[DayFlag[key]] =\n `rdp-${DayFlag[key]}`;\n }\n for (const key in SelectionState) {\n classNames[SelectionState[key]] =\n `rdp-${SelectionState[key]}`;\n }\n for (const key in Animation) {\n classNames[Animation[key]] =\n `rdp-${Animation[key]}`;\n }\n return classNames;\n}\n"],"names":[],"mappings":";;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAAS,oBAAoB,GAAG;AACvC,IAAI,MAAM,UAAU,GAAG,EAAE;AACzB,IAAI,KAAK,MAAM,GAAG,IAAI,EAAE,EAAE;AAC1B,QAAQ,UAAU,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC;AAC3B,YAAY,CAAC,IAAI,EAAE,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;AAC5B,IAAI;AACJ,IAAI,KAAK,MAAM,GAAG,IAAI,OAAO,EAAE;AAC/B,QAAQ,UAAU,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;AAChC,YAAY,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC;AACjC,IAAI;AACJ,IAAI,KAAK,MAAM,GAAG,IAAI,cAAc,EAAE;AACtC,QAAQ,UAAU,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC;AACvC,YAAY,CAAC,IAAI,EAAE,cAAc,CAAC,GAAG,CAAC,CAAC,CAAC;AACxC,IAAI;AACJ,IAAI,KAAK,MAAM,GAAG,IAAI,SAAS,EAAE;AACjC,QAAQ,UAAU,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC;AAClC,YAAY,CAAC,IAAI,EAAE,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC;AACnC,IAAI;AACJ,IAAI,OAAO,UAAU;AACrB;;;;","x_google_ignoreList":[0]}
@@ -1,25 +0,0 @@
1
- /**
2
- * Returns the months to display in the calendar.
3
- *
4
- * @param firstDisplayedMonth The first month currently displayed in the
5
- * calendar.
6
- * @param calendarEndMonth The latest month the user can navigate to.
7
- * @param props The DayPicker props, including `numberOfMonths`.
8
- * @param dateLib The date library to use for date manipulation.
9
- * @returns An array of dates representing the months to display.
10
- */
11
- function getDisplayMonths(firstDisplayedMonth, calendarEndMonth, props, dateLib) {
12
- const { numberOfMonths = 1 } = props;
13
- const months = [];
14
- for (let i = 0; i < numberOfMonths; i++) {
15
- const month = dateLib.addMonths(firstDisplayedMonth, i);
16
- if (calendarEndMonth && month > calendarEndMonth) {
17
- break;
18
- }
19
- months.push(month);
20
- }
21
- return months;
22
- }
23
-
24
- export { getDisplayMonths };
25
- //# sourceMappingURL=getDisplayMonths.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getDisplayMonths.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/helpers/getDisplayMonths.js"],"sourcesContent":["/**\n * Returns the months to display in the calendar.\n *\n * @param firstDisplayedMonth The first month currently displayed in the\n * calendar.\n * @param calendarEndMonth The latest month the user can navigate to.\n * @param props The DayPicker props, including `numberOfMonths`.\n * @param dateLib The date library to use for date manipulation.\n * @returns An array of dates representing the months to display.\n */\nexport function getDisplayMonths(firstDisplayedMonth, calendarEndMonth, props, dateLib) {\n const { numberOfMonths = 1 } = props;\n const months = [];\n for (let i = 0; i < numberOfMonths; i++) {\n const month = dateLib.addMonths(firstDisplayedMonth, i);\n if (calendarEndMonth && month > calendarEndMonth) {\n break;\n }\n months.push(month);\n }\n return months;\n}\n"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAAS,gBAAgB,CAAC,mBAAmB,EAAE,gBAAgB,EAAE,KAAK,EAAE,OAAO,EAAE;AACxF,IAAI,MAAM,EAAE,cAAc,GAAG,CAAC,EAAE,GAAG,KAAK;AACxC,IAAI,MAAM,MAAM,GAAG,EAAE;AACrB,IAAI,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,cAAc,EAAE,CAAC,EAAE,EAAE;AAC7C,QAAQ,MAAM,KAAK,GAAG,OAAO,CAAC,SAAS,CAAC,mBAAmB,EAAE,CAAC,CAAC;AAC/D,QAAQ,IAAI,gBAAgB,IAAI,KAAK,GAAG,gBAAgB,EAAE;AAC1D,YAAY;AACZ,QAAQ;AACR,QAAQ,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC;AAC1B,IAAI;AACJ,IAAI,OAAO,MAAM;AACjB;;;;","x_google_ignoreList":[0]}
@@ -1,47 +0,0 @@
1
- /**
2
- * Calculates the next date that should be focused in the calendar.
3
- *
4
- * This function determines the next focusable date based on the movement
5
- * direction, constraints, and calendar configuration.
6
- *
7
- * @param moveBy The unit of movement (e.g., "day", "week").
8
- * @param moveDir The direction of movement ("before" or "after").
9
- * @param refDate The reference date from which to calculate the next focusable
10
- * date.
11
- * @param navStart The earliest date the user can navigate to.
12
- * @param navEnd The latest date the user can navigate to.
13
- * @param props The DayPicker props, including calendar configuration options.
14
- * @param dateLib The date library to use for date manipulation.
15
- * @returns The next focusable date.
16
- */
17
- function getFocusableDate(moveBy, moveDir, refDate, navStart, navEnd, props, dateLib) {
18
- const { ISOWeek, broadcastCalendar } = props;
19
- const { addDays, addMonths, addWeeks, addYears, endOfBroadcastWeek, endOfISOWeek, endOfWeek, max, min, startOfBroadcastWeek, startOfISOWeek, startOfWeek, } = dateLib;
20
- const moveFns = {
21
- day: addDays,
22
- week: addWeeks,
23
- month: addMonths,
24
- year: addYears,
25
- startOfWeek: (date) => broadcastCalendar
26
- ? startOfBroadcastWeek(date, dateLib)
27
- : ISOWeek
28
- ? startOfISOWeek(date)
29
- : startOfWeek(date),
30
- endOfWeek: (date) => broadcastCalendar
31
- ? endOfBroadcastWeek(date)
32
- : ISOWeek
33
- ? endOfISOWeek(date)
34
- : endOfWeek(date),
35
- };
36
- let focusableDate = moveFns[moveBy](refDate, moveDir === "after" ? 1 : -1);
37
- if (moveDir === "before" && navStart) {
38
- focusableDate = max([navStart, focusableDate]);
39
- }
40
- else if (moveDir === "after" && navEnd) {
41
- focusableDate = min([navEnd, focusableDate]);
42
- }
43
- return focusableDate;
44
- }
45
-
46
- export { getFocusableDate };
47
- //# sourceMappingURL=getFocusableDate.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getFocusableDate.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/helpers/getFocusableDate.js"],"sourcesContent":["/**\n * Calculates the next date that should be focused in the calendar.\n *\n * This function determines the next focusable date based on the movement\n * direction, constraints, and calendar configuration.\n *\n * @param moveBy The unit of movement (e.g., \"day\", \"week\").\n * @param moveDir The direction of movement (\"before\" or \"after\").\n * @param refDate The reference date from which to calculate the next focusable\n * date.\n * @param navStart The earliest date the user can navigate to.\n * @param navEnd The latest date the user can navigate to.\n * @param props The DayPicker props, including calendar configuration options.\n * @param dateLib The date library to use for date manipulation.\n * @returns The next focusable date.\n */\nexport function getFocusableDate(moveBy, moveDir, refDate, navStart, navEnd, props, dateLib) {\n const { ISOWeek, broadcastCalendar } = props;\n const { addDays, addMonths, addWeeks, addYears, endOfBroadcastWeek, endOfISOWeek, endOfWeek, max, min, startOfBroadcastWeek, startOfISOWeek, startOfWeek, } = dateLib;\n const moveFns = {\n day: addDays,\n week: addWeeks,\n month: addMonths,\n year: addYears,\n startOfWeek: (date) => broadcastCalendar\n ? startOfBroadcastWeek(date, dateLib)\n : ISOWeek\n ? startOfISOWeek(date)\n : startOfWeek(date),\n endOfWeek: (date) => broadcastCalendar\n ? endOfBroadcastWeek(date)\n : ISOWeek\n ? endOfISOWeek(date)\n : endOfWeek(date),\n };\n let focusableDate = moveFns[moveBy](refDate, moveDir === \"after\" ? 1 : -1);\n if (moveDir === \"before\" && navStart) {\n focusableDate = max([navStart, focusableDate]);\n }\n else if (moveDir === \"after\" && navEnd) {\n focusableDate = min([navEnd, focusableDate]);\n }\n return focusableDate;\n}\n"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAAS,gBAAgB,CAAC,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE;AAC7F,IAAI,MAAM,EAAE,OAAO,EAAE,iBAAiB,EAAE,GAAG,KAAK;AAChD,IAAI,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,kBAAkB,EAAE,YAAY,EAAE,SAAS,EAAE,GAAG,EAAE,GAAG,EAAE,oBAAoB,EAAE,cAAc,EAAE,WAAW,GAAG,GAAG,OAAO;AACzK,IAAI,MAAM,OAAO,GAAG;AACpB,QAAQ,GAAG,EAAE,OAAO;AACpB,QAAQ,IAAI,EAAE,QAAQ;AACtB,QAAQ,KAAK,EAAE,SAAS;AACxB,QAAQ,IAAI,EAAE,QAAQ;AACtB,QAAQ,WAAW,EAAE,CAAC,IAAI,KAAK;AAC/B,cAAc,oBAAoB,CAAC,IAAI,EAAE,OAAO;AAChD,cAAc;AACd,kBAAkB,cAAc,CAAC,IAAI;AACrC,kBAAkB,WAAW,CAAC,IAAI,CAAC;AACnC,QAAQ,SAAS,EAAE,CAAC,IAAI,KAAK;AAC7B,cAAc,kBAAkB,CAAC,IAAI;AACrC,cAAc;AACd,kBAAkB,YAAY,CAAC,IAAI;AACnC,kBAAkB,SAAS,CAAC,IAAI,CAAC;AACjC,KAAK;AACL,IAAI,IAAI,aAAa,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,OAAO,EAAE,OAAO,KAAK,OAAO,GAAG,CAAC,GAAG,EAAE,CAAC;AAC9E,IAAI,IAAI,OAAO,KAAK,QAAQ,IAAI,QAAQ,EAAE;AAC1C,QAAQ,aAAa,GAAG,GAAG,CAAC,CAAC,QAAQ,EAAE,aAAa,CAAC,CAAC;AACtD,IAAI;AACJ,SAAS,IAAI,OAAO,KAAK,OAAO,IAAI,MAAM,EAAE;AAC5C,QAAQ,aAAa,GAAG,GAAG,CAAC,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC;AACpD,IAAI;AACJ,IAAI,OAAO,aAAa;AACxB;;;;","x_google_ignoreList":[0]}
@@ -1,18 +0,0 @@
1
- import * as index from '../formatters/index.js';
2
-
3
- /**
4
- * Merges custom formatters from the props with the default formatters.
5
- *
6
- * @param customFormatters The custom formatters provided in the DayPicker
7
- * props.
8
- * @returns The merged formatters object.
9
- */
10
- function getFormatters(customFormatters) {
11
- return {
12
- ...index,
13
- ...customFormatters,
14
- };
15
- }
16
-
17
- export { getFormatters };
18
- //# sourceMappingURL=getFormatters.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getFormatters.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/helpers/getFormatters.js"],"sourcesContent":["import * as defaultFormatters from \"../formatters/index.js\";\n/**\n * Merges custom formatters from the props with the default formatters.\n *\n * @param customFormatters The custom formatters provided in the DayPicker\n * props.\n * @returns The merged formatters object.\n */\nexport function getFormatters(customFormatters) {\n return {\n ...defaultFormatters,\n ...customFormatters,\n };\n}\n"],"names":["defaultFormatters"],"mappings":";;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAAS,aAAa,CAAC,gBAAgB,EAAE;AAChD,IAAI,OAAO;AACX,QAAQ,GAAGA,KAAiB;AAC5B,QAAQ,GAAG,gBAAgB;AAC3B,KAAK;AACL;;;;","x_google_ignoreList":[0]}
@@ -1,28 +0,0 @@
1
- /**
2
- * Determines the initial month to display in the calendar based on the provided
3
- * props.
4
- *
5
- * This function calculates the starting month, considering constraints such as
6
- * `startMonth`, `endMonth`, and the number of months to display.
7
- *
8
- * @param props The DayPicker props, including navigation and date constraints.
9
- * @param dateLib The date library to use for date manipulation.
10
- * @returns The initial month to display.
11
- */
12
- function getInitialMonth(props, navStart, navEnd, dateLib) {
13
- const { month, defaultMonth, today = dateLib.today(), numberOfMonths = 1, } = props;
14
- let initialMonth = month || defaultMonth || today;
15
- const { differenceInCalendarMonths, addMonths, startOfMonth } = dateLib;
16
- if (navEnd &&
17
- differenceInCalendarMonths(navEnd, initialMonth) < numberOfMonths - 1) {
18
- const offset = -1 * (numberOfMonths - 1);
19
- initialMonth = addMonths(navEnd, offset);
20
- }
21
- if (navStart && differenceInCalendarMonths(initialMonth, navStart) < 0) {
22
- initialMonth = navStart;
23
- }
24
- return startOfMonth(initialMonth);
25
- }
26
-
27
- export { getInitialMonth };
28
- //# sourceMappingURL=getInitialMonth.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getInitialMonth.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/helpers/getInitialMonth.js"],"sourcesContent":["/**\n * Determines the initial month to display in the calendar based on the provided\n * props.\n *\n * This function calculates the starting month, considering constraints such as\n * `startMonth`, `endMonth`, and the number of months to display.\n *\n * @param props The DayPicker props, including navigation and date constraints.\n * @param dateLib The date library to use for date manipulation.\n * @returns The initial month to display.\n */\nexport function getInitialMonth(props, navStart, navEnd, dateLib) {\n const { month, defaultMonth, today = dateLib.today(), numberOfMonths = 1, } = props;\n let initialMonth = month || defaultMonth || today;\n const { differenceInCalendarMonths, addMonths, startOfMonth } = dateLib;\n if (navEnd &&\n differenceInCalendarMonths(navEnd, initialMonth) < numberOfMonths - 1) {\n const offset = -1 * (numberOfMonths - 1);\n initialMonth = addMonths(navEnd, offset);\n }\n if (navStart && differenceInCalendarMonths(initialMonth, navStart) < 0) {\n initialMonth = navStart;\n }\n return startOfMonth(initialMonth);\n}\n"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAAS,eAAe,CAAC,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE;AAClE,IAAI,MAAM,EAAE,KAAK,EAAE,YAAY,EAAE,KAAK,GAAG,OAAO,CAAC,KAAK,EAAE,EAAE,cAAc,GAAG,CAAC,GAAG,GAAG,KAAK;AACvF,IAAI,IAAI,YAAY,GAAG,KAAK,IAAI,YAAY,IAAI,KAAK;AACrD,IAAI,MAAM,EAAE,0BAA0B,EAAE,SAAS,EAAE,YAAY,EAAE,GAAG,OAAO;AAC3E,IAAI,IAAI,MAAM;AACd,QAAQ,0BAA0B,CAAC,MAAM,EAAE,YAAY,CAAC,GAAG,cAAc,GAAG,CAAC,EAAE;AAC/E,QAAQ,MAAM,MAAM,GAAG,EAAE,IAAI,cAAc,GAAG,CAAC,CAAC;AAChD,QAAQ,YAAY,GAAG,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC;AAChD,IAAI;AACJ,IAAI,IAAI,QAAQ,IAAI,0BAA0B,CAAC,YAAY,EAAE,QAAQ,CAAC,GAAG,CAAC,EAAE;AAC5E,QAAQ,YAAY,GAAG,QAAQ;AAC/B,IAAI;AACJ,IAAI,OAAO,YAAY,CAAC,YAAY,CAAC;AACrC;;;;","x_google_ignoreList":[0]}
@@ -1,54 +0,0 @@
1
- import * as index from '../labels/index.js';
2
- import { labelWeekday } from '../labels/labelWeekday.js';
3
- import { labelWeekNumberHeader } from '../labels/labelWeekNumberHeader.js';
4
- import { labelNav } from '../labels/labelNav.js';
5
- import { labelGridcell } from '../labels/labelGridcell.js';
6
- import { labelGrid } from '../labels/labelGrid.js';
7
- import { labelYearDropdown } from '../labels/labelYearDropdown.js';
8
- import { labelWeekNumber } from '../labels/labelWeekNumber.js';
9
- import { labelPrevious } from '../labels/labelPrevious.js';
10
- import { labelNext } from '../labels/labelNext.js';
11
- import { labelMonthDropdown } from '../labels/labelMonthDropdown.js';
12
- import { labelDayButton } from '../labels/labelDayButton.js';
13
-
14
- const resolveLabel = (defaultLabel, customLabel, localeLabel) => {
15
- if (customLabel)
16
- return customLabel;
17
- if (localeLabel) {
18
- return (typeof localeLabel === "function"
19
- ? localeLabel
20
- : (..._args) => localeLabel);
21
- }
22
- return defaultLabel;
23
- };
24
- /**
25
- * Merges custom labels from the props with the default labels.
26
- *
27
- * When available, uses the locale-provided translation for `labelNext`.
28
- *
29
- * @param customLabels The custom labels provided in the DayPicker props.
30
- * @param options Options from the date library, used to resolve locale
31
- * translations.
32
- * @returns The merged labels object with locale-aware defaults.
33
- */
34
- function getLabels(customLabels, options) {
35
- const localeLabels = options.locale?.labels ?? {};
36
- return {
37
- ...index,
38
- ...(customLabels ?? {}),
39
- labelDayButton: resolveLabel(labelDayButton, customLabels?.labelDayButton, localeLabels.labelDayButton),
40
- labelMonthDropdown: resolveLabel(labelMonthDropdown, customLabels?.labelMonthDropdown, localeLabels.labelMonthDropdown),
41
- labelNext: resolveLabel(labelNext, customLabels?.labelNext, localeLabels.labelNext),
42
- labelPrevious: resolveLabel(labelPrevious, customLabels?.labelPrevious, localeLabels.labelPrevious),
43
- labelWeekNumber: resolveLabel(labelWeekNumber, customLabels?.labelWeekNumber, localeLabels.labelWeekNumber),
44
- labelYearDropdown: resolveLabel(labelYearDropdown, customLabels?.labelYearDropdown, localeLabels.labelYearDropdown),
45
- labelGrid: resolveLabel(labelGrid, customLabels?.labelGrid, localeLabels.labelGrid),
46
- labelGridcell: resolveLabel(labelGridcell, customLabels?.labelGridcell, localeLabels.labelGridcell),
47
- labelNav: resolveLabel(labelNav, customLabels?.labelNav, localeLabels.labelNav),
48
- labelWeekNumberHeader: resolveLabel(labelWeekNumberHeader, customLabels?.labelWeekNumberHeader, localeLabels.labelWeekNumberHeader),
49
- labelWeekday: resolveLabel(labelWeekday, customLabels?.labelWeekday, localeLabels.labelWeekday),
50
- };
51
- }
52
-
53
- export { getLabels };
54
- //# sourceMappingURL=getLabels.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getLabels.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/helpers/getLabels.js"],"sourcesContent":["import * as defaultLabels from \"../labels/index.js\";\nconst resolveLabel = (defaultLabel, customLabel, localeLabel) => {\n if (customLabel)\n return customLabel;\n if (localeLabel) {\n return (typeof localeLabel === \"function\"\n ? localeLabel\n : (..._args) => localeLabel);\n }\n return defaultLabel;\n};\n/**\n * Merges custom labels from the props with the default labels.\n *\n * When available, uses the locale-provided translation for `labelNext`.\n *\n * @param customLabels The custom labels provided in the DayPicker props.\n * @param options Options from the date library, used to resolve locale\n * translations.\n * @returns The merged labels object with locale-aware defaults.\n */\nexport function getLabels(customLabels, options) {\n const localeLabels = options.locale?.labels ?? {};\n return {\n ...defaultLabels,\n ...(customLabels ?? {}),\n labelDayButton: resolveLabel(defaultLabels.labelDayButton, customLabels?.labelDayButton, localeLabels.labelDayButton),\n labelMonthDropdown: resolveLabel(defaultLabels.labelMonthDropdown, customLabels?.labelMonthDropdown, localeLabels.labelMonthDropdown),\n labelNext: resolveLabel(defaultLabels.labelNext, customLabels?.labelNext, localeLabels.labelNext),\n labelPrevious: resolveLabel(defaultLabels.labelPrevious, customLabels?.labelPrevious, localeLabels.labelPrevious),\n labelWeekNumber: resolveLabel(defaultLabels.labelWeekNumber, customLabels?.labelWeekNumber, localeLabels.labelWeekNumber),\n labelYearDropdown: resolveLabel(defaultLabels.labelYearDropdown, customLabels?.labelYearDropdown, localeLabels.labelYearDropdown),\n labelGrid: resolveLabel(defaultLabels.labelGrid, customLabels?.labelGrid, localeLabels.labelGrid),\n labelGridcell: resolveLabel(defaultLabels.labelGridcell, customLabels?.labelGridcell, localeLabels.labelGridcell),\n labelNav: resolveLabel(defaultLabels.labelNav, customLabels?.labelNav, localeLabels.labelNav),\n labelWeekNumberHeader: resolveLabel(defaultLabels.labelWeekNumberHeader, customLabels?.labelWeekNumberHeader, localeLabels.labelWeekNumberHeader),\n labelWeekday: resolveLabel(defaultLabels.labelWeekday, customLabels?.labelWeekday, localeLabels.labelWeekday),\n };\n}\n"],"names":["defaultLabels","defaultLabels.labelDayButton","defaultLabels.labelMonthDropdown","defaultLabels.labelNext","defaultLabels.labelPrevious","defaultLabels.labelWeekNumber","defaultLabels.labelYearDropdown","defaultLabels.labelGrid","defaultLabels.labelGridcell","defaultLabels.labelNav","defaultLabels.labelWeekNumberHeader","defaultLabels.labelWeekday"],"mappings":";;;;;;;;;;;;;AACA,MAAM,YAAY,GAAG,CAAC,YAAY,EAAE,WAAW,EAAE,WAAW,KAAK;AACjE,IAAI,IAAI,WAAW;AACnB,QAAQ,OAAO,WAAW;AAC1B,IAAI,IAAI,WAAW,EAAE;AACrB,QAAQ,QAAQ,OAAO,WAAW,KAAK;AACvC,cAAc;AACd,cAAc,CAAC,GAAG,KAAK,KAAK,WAAW;AACvC,IAAI;AACJ,IAAI,OAAO,YAAY;AACvB,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAAS,SAAS,CAAC,YAAY,EAAE,OAAO,EAAE;AACjD,IAAI,MAAM,YAAY,GAAG,OAAO,CAAC,MAAM,EAAE,MAAM,IAAI,EAAE;AACrD,IAAI,OAAO;AACX,QAAQ,GAAGA,KAAa;AACxB,QAAQ,IAAI,YAAY,IAAI,EAAE,CAAC;AAC/B,QAAQ,cAAc,EAAE,YAAY,CAACC,cAA4B,EAAE,YAAY,EAAE,cAAc,EAAE,YAAY,CAAC,cAAc,CAAC;AAC7H,QAAQ,kBAAkB,EAAE,YAAY,CAACC,kBAAgC,EAAE,YAAY,EAAE,kBAAkB,EAAE,YAAY,CAAC,kBAAkB,CAAC;AAC7I,QAAQ,SAAS,EAAE,YAAY,CAACC,SAAuB,EAAE,YAAY,EAAE,SAAS,EAAE,YAAY,CAAC,SAAS,CAAC;AACzG,QAAQ,aAAa,EAAE,YAAY,CAACC,aAA2B,EAAE,YAAY,EAAE,aAAa,EAAE,YAAY,CAAC,aAAa,CAAC;AACzH,QAAQ,eAAe,EAAE,YAAY,CAACC,eAA6B,EAAE,YAAY,EAAE,eAAe,EAAE,YAAY,CAAC,eAAe,CAAC;AACjI,QAAQ,iBAAiB,EAAE,YAAY,CAACC,iBAA+B,EAAE,YAAY,EAAE,iBAAiB,EAAE,YAAY,CAAC,iBAAiB,CAAC;AACzI,QAAQ,SAAS,EAAE,YAAY,CAACC,SAAuB,EAAE,YAAY,EAAE,SAAS,EAAE,YAAY,CAAC,SAAS,CAAC;AACzG,QAAQ,aAAa,EAAE,YAAY,CAACC,aAA2B,EAAE,YAAY,EAAE,aAAa,EAAE,YAAY,CAAC,aAAa,CAAC;AACzH,QAAQ,QAAQ,EAAE,YAAY,CAACC,QAAsB,EAAE,YAAY,EAAE,QAAQ,EAAE,YAAY,CAAC,QAAQ,CAAC;AACrG,QAAQ,qBAAqB,EAAE,YAAY,CAACC,qBAAmC,EAAE,YAAY,EAAE,qBAAqB,EAAE,YAAY,CAAC,qBAAqB,CAAC;AACzJ,QAAQ,YAAY,EAAE,YAAY,CAACC,YAA0B,EAAE,YAAY,EAAE,YAAY,EAAE,YAAY,CAAC,YAAY,CAAC;AACrH,KAAK;AACL;;;;","x_google_ignoreList":[0]}
@@ -1,34 +0,0 @@
1
- /**
2
- * Returns the months to show in the dropdown.
3
- *
4
- * This function generates a list of months for the current year, formatted
5
- * using the provided formatter, and determines whether each month should be
6
- * disabled based on the navigation range.
7
- *
8
- * @param displayMonth The currently displayed month.
9
- * @param navStart The start date for navigation.
10
- * @param navEnd The end date for navigation.
11
- * @param formatters The formatters to use for formatting the month labels.
12
- * @param dateLib The date library to use for date manipulation.
13
- * @returns An array of dropdown options representing the months, or `undefined`
14
- * if no months are available.
15
- */
16
- function getMonthOptions(displayMonth, navStart, navEnd, formatters, dateLib) {
17
- const { startOfMonth, startOfYear, endOfYear, eachMonthOfInterval, getMonth, } = dateLib;
18
- const months = eachMonthOfInterval({
19
- start: startOfYear(displayMonth),
20
- end: endOfYear(displayMonth),
21
- });
22
- const options = months.map((month) => {
23
- const label = formatters.formatMonthDropdown(month, dateLib);
24
- const value = getMonth(month);
25
- const disabled = (navStart && month < startOfMonth(navStart)) ||
26
- (navEnd && month > startOfMonth(navEnd)) ||
27
- false;
28
- return { value, label, disabled };
29
- });
30
- return options;
31
- }
32
-
33
- export { getMonthOptions };
34
- //# sourceMappingURL=getMonthOptions.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getMonthOptions.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/helpers/getMonthOptions.js"],"sourcesContent":["/**\n * Returns the months to show in the dropdown.\n *\n * This function generates a list of months for the current year, formatted\n * using the provided formatter, and determines whether each month should be\n * disabled based on the navigation range.\n *\n * @param displayMonth The currently displayed month.\n * @param navStart The start date for navigation.\n * @param navEnd The end date for navigation.\n * @param formatters The formatters to use for formatting the month labels.\n * @param dateLib The date library to use for date manipulation.\n * @returns An array of dropdown options representing the months, or `undefined`\n * if no months are available.\n */\nexport function getMonthOptions(displayMonth, navStart, navEnd, formatters, dateLib) {\n const { startOfMonth, startOfYear, endOfYear, eachMonthOfInterval, getMonth, } = dateLib;\n const months = eachMonthOfInterval({\n start: startOfYear(displayMonth),\n end: endOfYear(displayMonth),\n });\n const options = months.map((month) => {\n const label = formatters.formatMonthDropdown(month, dateLib);\n const value = getMonth(month);\n const disabled = (navStart && month < startOfMonth(navStart)) ||\n (navEnd && month > startOfMonth(navEnd)) ||\n false;\n return { value, label, disabled };\n });\n return options;\n}\n"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAAS,eAAe,CAAC,YAAY,EAAE,QAAQ,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE;AACrF,IAAI,MAAM,EAAE,YAAY,EAAE,WAAW,EAAE,SAAS,EAAE,mBAAmB,EAAE,QAAQ,GAAG,GAAG,OAAO;AAC5F,IAAI,MAAM,MAAM,GAAG,mBAAmB,CAAC;AACvC,QAAQ,KAAK,EAAE,WAAW,CAAC,YAAY,CAAC;AACxC,QAAQ,GAAG,EAAE,SAAS,CAAC,YAAY,CAAC;AACpC,KAAK,CAAC;AACN,IAAI,MAAM,OAAO,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,KAAK;AAC1C,QAAQ,MAAM,KAAK,GAAG,UAAU,CAAC,mBAAmB,CAAC,KAAK,EAAE,OAAO,CAAC;AACpE,QAAQ,MAAM,KAAK,GAAG,QAAQ,CAAC,KAAK,CAAC;AACrC,QAAQ,MAAM,QAAQ,GAAG,CAAC,QAAQ,IAAI,KAAK,GAAG,YAAY,CAAC,QAAQ,CAAC;AACpE,aAAa,MAAM,IAAI,KAAK,GAAG,YAAY,CAAC,MAAM,CAAC,CAAC;AACpD,YAAY,KAAK;AACjB,QAAQ,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE;AACzC,IAAI,CAAC,CAAC;AACN,IAAI,OAAO,OAAO;AAClB;;;;","x_google_ignoreList":[0]}
@@ -1,70 +0,0 @@
1
- import { CalendarDay } from '../classes/CalendarDay.js';
2
- import { CalendarWeek } from '../classes/CalendarWeek.js';
3
- import { CalendarMonth } from '../classes/CalendarMonth.js';
4
-
5
- /**
6
- * Returns the months to display in the calendar.
7
- *
8
- * This function generates `CalendarMonth` objects for each month to be
9
- * displayed, including their weeks and days, based on the provided display
10
- * months and dates.
11
- *
12
- * @param displayMonths The months (as dates) to display in the calendar.
13
- * @param dates The dates to display in the calendar.
14
- * @param props Options from the DayPicker props context.
15
- * @param dateLib The date library to use for date manipulation.
16
- * @returns An array of `CalendarMonth` objects representing the months to
17
- * display.
18
- */
19
- function getMonths(displayMonths, dates, props, dateLib) {
20
- const { addDays, endOfBroadcastWeek, endOfISOWeek, endOfMonth, endOfWeek, getISOWeek, getWeek, startOfBroadcastWeek, startOfISOWeek, startOfWeek, } = dateLib;
21
- const dayPickerMonths = displayMonths.reduce((months, month) => {
22
- const firstDateOfFirstWeek = props.broadcastCalendar
23
- ? startOfBroadcastWeek(month, dateLib)
24
- : props.ISOWeek
25
- ? startOfISOWeek(month)
26
- : startOfWeek(month);
27
- const lastDateOfLastWeek = props.broadcastCalendar
28
- ? endOfBroadcastWeek(month)
29
- : props.ISOWeek
30
- ? endOfISOWeek(endOfMonth(month))
31
- : endOfWeek(endOfMonth(month));
32
- /** The dates to display in the month. */
33
- const monthDates = dates.filter((date) => {
34
- return date >= firstDateOfFirstWeek && date <= lastDateOfLastWeek;
35
- });
36
- const nrOfDaysWithFixedWeeks = props.broadcastCalendar ? 35 : 42;
37
- if (props.fixedWeeks && monthDates.length < nrOfDaysWithFixedWeeks) {
38
- const extraDates = dates.filter((date) => {
39
- const daysToAdd = nrOfDaysWithFixedWeeks - monthDates.length;
40
- return (date > lastDateOfLastWeek &&
41
- date <= addDays(lastDateOfLastWeek, daysToAdd));
42
- });
43
- monthDates.push(...extraDates);
44
- }
45
- const weeks = monthDates.reduce((weeks, date) => {
46
- const weekNumber = props.ISOWeek ? getISOWeek(date) : getWeek(date);
47
- const week = weeks.find((week) => week.weekNumber === weekNumber);
48
- const day = new CalendarDay(date, month, dateLib);
49
- if (!week) {
50
- weeks.push(new CalendarWeek(weekNumber, [day]));
51
- }
52
- else {
53
- week.days.push(day);
54
- }
55
- return weeks;
56
- }, []);
57
- const dayPickerMonth = new CalendarMonth(month, weeks);
58
- months.push(dayPickerMonth);
59
- return months;
60
- }, []);
61
- if (!props.reverseMonths) {
62
- return dayPickerMonths;
63
- }
64
- else {
65
- return dayPickerMonths.reverse();
66
- }
67
- }
68
-
69
- export { getMonths };
70
- //# sourceMappingURL=getMonths.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getMonths.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/helpers/getMonths.js"],"sourcesContent":["import { CalendarDay, CalendarMonth, CalendarWeek } from \"../classes/index.js\";\n/**\n * Returns the months to display in the calendar.\n *\n * This function generates `CalendarMonth` objects for each month to be\n * displayed, including their weeks and days, based on the provided display\n * months and dates.\n *\n * @param displayMonths The months (as dates) to display in the calendar.\n * @param dates The dates to display in the calendar.\n * @param props Options from the DayPicker props context.\n * @param dateLib The date library to use for date manipulation.\n * @returns An array of `CalendarMonth` objects representing the months to\n * display.\n */\nexport function getMonths(displayMonths, dates, props, dateLib) {\n const { addDays, endOfBroadcastWeek, endOfISOWeek, endOfMonth, endOfWeek, getISOWeek, getWeek, startOfBroadcastWeek, startOfISOWeek, startOfWeek, } = dateLib;\n const dayPickerMonths = displayMonths.reduce((months, month) => {\n const firstDateOfFirstWeek = props.broadcastCalendar\n ? startOfBroadcastWeek(month, dateLib)\n : props.ISOWeek\n ? startOfISOWeek(month)\n : startOfWeek(month);\n const lastDateOfLastWeek = props.broadcastCalendar\n ? endOfBroadcastWeek(month)\n : props.ISOWeek\n ? endOfISOWeek(endOfMonth(month))\n : endOfWeek(endOfMonth(month));\n /** The dates to display in the month. */\n const monthDates = dates.filter((date) => {\n return date >= firstDateOfFirstWeek && date <= lastDateOfLastWeek;\n });\n const nrOfDaysWithFixedWeeks = props.broadcastCalendar ? 35 : 42;\n if (props.fixedWeeks && monthDates.length < nrOfDaysWithFixedWeeks) {\n const extraDates = dates.filter((date) => {\n const daysToAdd = nrOfDaysWithFixedWeeks - monthDates.length;\n return (date > lastDateOfLastWeek &&\n date <= addDays(lastDateOfLastWeek, daysToAdd));\n });\n monthDates.push(...extraDates);\n }\n const weeks = monthDates.reduce((weeks, date) => {\n const weekNumber = props.ISOWeek ? getISOWeek(date) : getWeek(date);\n const week = weeks.find((week) => week.weekNumber === weekNumber);\n const day = new CalendarDay(date, month, dateLib);\n if (!week) {\n weeks.push(new CalendarWeek(weekNumber, [day]));\n }\n else {\n week.days.push(day);\n }\n return weeks;\n }, []);\n const dayPickerMonth = new CalendarMonth(month, weeks);\n months.push(dayPickerMonth);\n return months;\n }, []);\n if (!props.reverseMonths) {\n return dayPickerMonths;\n }\n else {\n return dayPickerMonths.reverse();\n }\n}\n"],"names":[],"mappings":";;;;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAAS,SAAS,CAAC,aAAa,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE;AAChE,IAAI,MAAM,EAAE,OAAO,EAAE,kBAAkB,EAAE,YAAY,EAAE,UAAU,EAAE,SAAS,EAAE,UAAU,EAAE,OAAO,EAAE,oBAAoB,EAAE,cAAc,EAAE,WAAW,GAAG,GAAG,OAAO;AACjK,IAAI,MAAM,eAAe,GAAG,aAAa,CAAC,MAAM,CAAC,CAAC,MAAM,EAAE,KAAK,KAAK;AACpE,QAAQ,MAAM,oBAAoB,GAAG,KAAK,CAAC;AAC3C,cAAc,oBAAoB,CAAC,KAAK,EAAE,OAAO;AACjD,cAAc,KAAK,CAAC;AACpB,kBAAkB,cAAc,CAAC,KAAK;AACtC,kBAAkB,WAAW,CAAC,KAAK,CAAC;AACpC,QAAQ,MAAM,kBAAkB,GAAG,KAAK,CAAC;AACzC,cAAc,kBAAkB,CAAC,KAAK;AACtC,cAAc,KAAK,CAAC;AACpB,kBAAkB,YAAY,CAAC,UAAU,CAAC,KAAK,CAAC;AAChD,kBAAkB,SAAS,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;AAC9C;AACA,QAAQ,MAAM,UAAU,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC,IAAI,KAAK;AAClD,YAAY,OAAO,IAAI,IAAI,oBAAoB,IAAI,IAAI,IAAI,kBAAkB;AAC7E,QAAQ,CAAC,CAAC;AACV,QAAQ,MAAM,sBAAsB,GAAG,KAAK,CAAC,iBAAiB,GAAG,EAAE,GAAG,EAAE;AACxE,QAAQ,IAAI,KAAK,CAAC,UAAU,IAAI,UAAU,CAAC,MAAM,GAAG,sBAAsB,EAAE;AAC5E,YAAY,MAAM,UAAU,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC,IAAI,KAAK;AACtD,gBAAgB,MAAM,SAAS,GAAG,sBAAsB,GAAG,UAAU,CAAC,MAAM;AAC5E,gBAAgB,QAAQ,IAAI,GAAG,kBAAkB;AACjD,oBAAoB,IAAI,IAAI,OAAO,CAAC,kBAAkB,EAAE,SAAS,CAAC;AAClE,YAAY,CAAC,CAAC;AACd,YAAY,UAAU,CAAC,IAAI,CAAC,GAAG,UAAU,CAAC;AAC1C,QAAQ;AACR,QAAQ,MAAM,KAAK,GAAG,UAAU,CAAC,MAAM,CAAC,CAAC,KAAK,EAAE,IAAI,KAAK;AACzD,YAAY,MAAM,UAAU,GAAG,KAAK,CAAC,OAAO,GAAG,UAAU,CAAC,IAAI,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC;AAC/E,YAAY,MAAM,IAAI,GAAG,KAAK,CAAC,IAAI,CAAC,CAAC,IAAI,KAAK,IAAI,CAAC,UAAU,KAAK,UAAU,CAAC;AAC7E,YAAY,MAAM,GAAG,GAAG,IAAI,WAAW,CAAC,IAAI,EAAE,KAAK,EAAE,OAAO,CAAC;AAC7D,YAAY,IAAI,CAAC,IAAI,EAAE;AACvB,gBAAgB,KAAK,CAAC,IAAI,CAAC,IAAI,YAAY,CAAC,UAAU,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;AAC/D,YAAY;AACZ,iBAAiB;AACjB,gBAAgB,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC;AACnC,YAAY;AACZ,YAAY,OAAO,KAAK;AACxB,QAAQ,CAAC,EAAE,EAAE,CAAC;AACd,QAAQ,MAAM,cAAc,GAAG,IAAI,aAAa,CAAC,KAAK,EAAE,KAAK,CAAC;AAC9D,QAAQ,MAAM,CAAC,IAAI,CAAC,cAAc,CAAC;AACnC,QAAQ,OAAO,MAAM;AACrB,IAAI,CAAC,EAAE,EAAE,CAAC;AACV,IAAI,IAAI,CAAC,KAAK,CAAC,aAAa,EAAE;AAC9B,QAAQ,OAAO,eAAe;AAC9B,IAAI;AACJ,SAAS;AACT,QAAQ,OAAO,eAAe,CAAC,OAAO,EAAE;AACxC,IAAI;AACJ;;;;","x_google_ignoreList":[0]}
@@ -1,32 +0,0 @@
1
- /**
2
- * Returns the start and end months for calendar navigation.
3
- *
4
- * @param props The DayPicker props, including navigation and layout options.
5
- * @param dateLib The date library to use for date manipulation.
6
- * @returns A tuple containing the start and end months for navigation.
7
- */
8
- function getNavMonths(props, dateLib) {
9
- let { startMonth, endMonth } = props;
10
- const { startOfYear, startOfDay, startOfMonth, endOfMonth, addYears, endOfYear, today, } = dateLib;
11
- const hasYearDropdown = props.captionLayout === "dropdown" ||
12
- props.captionLayout === "dropdown-years";
13
- if (startMonth) {
14
- startMonth = startOfMonth(startMonth);
15
- }
16
- else if (!startMonth && hasYearDropdown) {
17
- startMonth = startOfYear(addYears(props.today ?? today(), -100));
18
- }
19
- if (endMonth) {
20
- endMonth = endOfMonth(endMonth);
21
- }
22
- else if (!endMonth && hasYearDropdown) {
23
- endMonth = endOfYear(props.today ?? today());
24
- }
25
- return [
26
- startMonth ? startOfDay(startMonth) : startMonth,
27
- endMonth ? startOfDay(endMonth) : endMonth,
28
- ];
29
- }
30
-
31
- export { getNavMonths };
32
- //# sourceMappingURL=getNavMonth.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getNavMonth.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/helpers/getNavMonth.js"],"sourcesContent":["/**\n * Returns the start and end months for calendar navigation.\n *\n * @param props The DayPicker props, including navigation and layout options.\n * @param dateLib The date library to use for date manipulation.\n * @returns A tuple containing the start and end months for navigation.\n */\nexport function getNavMonths(props, dateLib) {\n let { startMonth, endMonth } = props;\n const { startOfYear, startOfDay, startOfMonth, endOfMonth, addYears, endOfYear, today, } = dateLib;\n const hasYearDropdown = props.captionLayout === \"dropdown\" ||\n props.captionLayout === \"dropdown-years\";\n if (startMonth) {\n startMonth = startOfMonth(startMonth);\n }\n else if (!startMonth && hasYearDropdown) {\n startMonth = startOfYear(addYears(props.today ?? today(), -100));\n }\n if (endMonth) {\n endMonth = endOfMonth(endMonth);\n }\n else if (!endMonth && hasYearDropdown) {\n endMonth = endOfYear(props.today ?? today());\n }\n return [\n startMonth ? startOfDay(startMonth) : startMonth,\n endMonth ? startOfDay(endMonth) : endMonth,\n ];\n}\n"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAAS,YAAY,CAAC,KAAK,EAAE,OAAO,EAAE;AAC7C,IAAI,IAAI,EAAE,UAAU,EAAE,QAAQ,EAAE,GAAG,KAAK;AACxC,IAAI,MAAM,EAAE,WAAW,EAAE,UAAU,EAAE,YAAY,EAAE,UAAU,EAAE,QAAQ,EAAE,SAAS,EAAE,KAAK,GAAG,GAAG,OAAO;AACtG,IAAI,MAAM,eAAe,GAAG,KAAK,CAAC,aAAa,KAAK,UAAU;AAC9D,QAAQ,KAAK,CAAC,aAAa,KAAK,gBAAgB;AAChD,IAAI,IAAI,UAAU,EAAE;AACpB,QAAQ,UAAU,GAAG,YAAY,CAAC,UAAU,CAAC;AAC7C,IAAI;AACJ,SAAS,IAAI,CAAC,UAAU,IAAI,eAAe,EAAE;AAC7C,QAAQ,UAAU,GAAG,WAAW,CAAC,QAAQ,CAAC,KAAK,CAAC,KAAK,IAAI,KAAK,EAAE,EAAE,IAAI,CAAC,CAAC;AACxE,IAAI;AACJ,IAAI,IAAI,QAAQ,EAAE;AAClB,QAAQ,QAAQ,GAAG,UAAU,CAAC,QAAQ,CAAC;AACvC,IAAI;AACJ,SAAS,IAAI,CAAC,QAAQ,IAAI,eAAe,EAAE;AAC3C,QAAQ,QAAQ,GAAG,SAAS,CAAC,KAAK,CAAC,KAAK,IAAI,KAAK,EAAE,CAAC;AACpD,IAAI;AACJ,IAAI,OAAO;AACX,QAAQ,UAAU,GAAG,UAAU,CAAC,UAAU,CAAC,GAAG,UAAU;AACxD,QAAQ,QAAQ,GAAG,UAAU,CAAC,QAAQ,CAAC,GAAG,QAAQ;AAClD,KAAK;AACL;;;;","x_google_ignoreList":[0]}
@@ -1,41 +0,0 @@
1
- import { dateMatchModifiers } from '../utils/dateMatchModifiers.js';
2
- import { getFocusableDate } from './getFocusableDate.js';
3
- import { CalendarDay } from '../classes/CalendarDay.js';
4
-
5
- /**
6
- * Determines the next focusable day in the calendar.
7
- *
8
- * This function recursively calculates the next focusable day based on the
9
- * movement direction and modifiers applied to the days.
10
- *
11
- * @param moveBy The unit of movement (e.g., "day", "week").
12
- * @param moveDir The direction of movement ("before" or "after").
13
- * @param refDay The currently focused day.
14
- * @param calendarStartMonth The earliest month the user can navigate to.
15
- * @param calendarEndMonth The latest month the user can navigate to.
16
- * @param props The DayPicker props, including modifiers and configuration
17
- * options.
18
- * @param dateLib The date library to use for date manipulation.
19
- * @param attempt The current recursion attempt (used to limit recursion depth).
20
- * @returns The next focusable day, or `undefined` if no focusable day is found.
21
- */
22
- function getNextFocus(moveBy, moveDir, refDay, calendarStartMonth, calendarEndMonth, props, dateLib, attempt = 0) {
23
- if (attempt > 365) {
24
- // Limit the recursion to 365 attempts
25
- return undefined;
26
- }
27
- const focusableDate = getFocusableDate(moveBy, moveDir, refDay.date, calendarStartMonth, calendarEndMonth, props, dateLib);
28
- const isDisabled = Boolean(props.disabled &&
29
- dateMatchModifiers(focusableDate, props.disabled, dateLib));
30
- const isHidden = Boolean(props.hidden && dateMatchModifiers(focusableDate, props.hidden, dateLib));
31
- const targetMonth = focusableDate;
32
- const focusDay = new CalendarDay(focusableDate, targetMonth, dateLib);
33
- if (!isDisabled && !isHidden) {
34
- return focusDay;
35
- }
36
- // Recursively attempt to find the next focusable date
37
- return getNextFocus(moveBy, moveDir, focusDay, calendarStartMonth, calendarEndMonth, props, dateLib, attempt + 1);
38
- }
39
-
40
- export { getNextFocus };
41
- //# sourceMappingURL=getNextFocus.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getNextFocus.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/helpers/getNextFocus.js"],"sourcesContent":["import { CalendarDay } from \"../classes/index.js\";\nimport { dateMatchModifiers } from \"../utils/dateMatchModifiers.js\";\nimport { getFocusableDate } from \"./getFocusableDate.js\";\n/**\n * Determines the next focusable day in the calendar.\n *\n * This function recursively calculates the next focusable day based on the\n * movement direction and modifiers applied to the days.\n *\n * @param moveBy The unit of movement (e.g., \"day\", \"week\").\n * @param moveDir The direction of movement (\"before\" or \"after\").\n * @param refDay The currently focused day.\n * @param calendarStartMonth The earliest month the user can navigate to.\n * @param calendarEndMonth The latest month the user can navigate to.\n * @param props The DayPicker props, including modifiers and configuration\n * options.\n * @param dateLib The date library to use for date manipulation.\n * @param attempt The current recursion attempt (used to limit recursion depth).\n * @returns The next focusable day, or `undefined` if no focusable day is found.\n */\nexport function getNextFocus(moveBy, moveDir, refDay, calendarStartMonth, calendarEndMonth, props, dateLib, attempt = 0) {\n if (attempt > 365) {\n // Limit the recursion to 365 attempts\n return undefined;\n }\n const focusableDate = getFocusableDate(moveBy, moveDir, refDay.date, calendarStartMonth, calendarEndMonth, props, dateLib);\n const isDisabled = Boolean(props.disabled &&\n dateMatchModifiers(focusableDate, props.disabled, dateLib));\n const isHidden = Boolean(props.hidden && dateMatchModifiers(focusableDate, props.hidden, dateLib));\n const targetMonth = focusableDate;\n const focusDay = new CalendarDay(focusableDate, targetMonth, dateLib);\n if (!isDisabled && !isHidden) {\n return focusDay;\n }\n // Recursively attempt to find the next focusable date\n return getNextFocus(moveBy, moveDir, focusDay, calendarStartMonth, calendarEndMonth, props, dateLib, attempt + 1);\n}\n"],"names":[],"mappings":";;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAAS,YAAY,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,GAAG,CAAC,EAAE;AACzH,IAAI,IAAI,OAAO,GAAG,GAAG,EAAE;AACvB;AACA,QAAQ,OAAO,SAAS;AACxB,IAAI;AACJ,IAAI,MAAM,aAAa,GAAG,gBAAgB,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,IAAI,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,KAAK,EAAE,OAAO,CAAC;AAC9H,IAAI,MAAM,UAAU,GAAG,OAAO,CAAC,KAAK,CAAC,QAAQ;AAC7C,QAAQ,kBAAkB,CAAC,aAAa,EAAE,KAAK,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;AACnE,IAAI,MAAM,QAAQ,GAAG,OAAO,CAAC,KAAK,CAAC,MAAM,IAAI,kBAAkB,CAAC,aAAa,EAAE,KAAK,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AACtG,IAAI,MAAM,WAAW,GAAG,aAAa;AACrC,IAAI,MAAM,QAAQ,GAAG,IAAI,WAAW,CAAC,aAAa,EAAE,WAAW,EAAE,OAAO,CAAC;AACzE,IAAI,IAAI,CAAC,UAAU,IAAI,CAAC,QAAQ,EAAE;AAClC,QAAQ,OAAO,QAAQ;AACvB,IAAI;AACJ;AACA,IAAI,OAAO,YAAY,CAAC,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,GAAG,CAAC,CAAC;AACrH;;;;","x_google_ignoreList":[0]}
@@ -1,37 +0,0 @@
1
- /**
2
- * Returns the next month the user can navigate to, based on the given options.
3
- *
4
- * The next month is not always the next calendar month:
5
- *
6
- * - If it is after the `calendarEndMonth`, it returns `undefined`.
7
- * - If paged navigation is enabled, it skips forward by the number of displayed
8
- * months.
9
- *
10
- * @param firstDisplayedMonth The first month currently displayed in the
11
- * calendar.
12
- * @param calendarEndMonth The latest month the user can navigate to.
13
- * @param options Navigation options, including `numberOfMonths` and
14
- * `pagedNavigation`.
15
- * @param dateLib The date library to use for date manipulation.
16
- * @returns The next month, or `undefined` if navigation is not possible.
17
- */
18
- function getNextMonth(firstDisplayedMonth, calendarEndMonth, options, dateLib) {
19
- if (options.disableNavigation) {
20
- return undefined;
21
- }
22
- const { pagedNavigation, numberOfMonths = 1 } = options;
23
- const { startOfMonth, addMonths, differenceInCalendarMonths } = dateLib;
24
- const offset = pagedNavigation ? numberOfMonths : 1;
25
- const month = startOfMonth(firstDisplayedMonth);
26
- if (!calendarEndMonth) {
27
- return addMonths(month, offset);
28
- }
29
- const monthsDiff = differenceInCalendarMonths(calendarEndMonth, firstDisplayedMonth);
30
- if (monthsDiff < numberOfMonths) {
31
- return undefined;
32
- }
33
- return addMonths(month, offset);
34
- }
35
-
36
- export { getNextMonth };
37
- //# sourceMappingURL=getNextMonth.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getNextMonth.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/helpers/getNextMonth.js"],"sourcesContent":["/**\n * Returns the next month the user can navigate to, based on the given options.\n *\n * The next month is not always the next calendar month:\n *\n * - If it is after the `calendarEndMonth`, it returns `undefined`.\n * - If paged navigation is enabled, it skips forward by the number of displayed\n * months.\n *\n * @param firstDisplayedMonth The first month currently displayed in the\n * calendar.\n * @param calendarEndMonth The latest month the user can navigate to.\n * @param options Navigation options, including `numberOfMonths` and\n * `pagedNavigation`.\n * @param dateLib The date library to use for date manipulation.\n * @returns The next month, or `undefined` if navigation is not possible.\n */\nexport function getNextMonth(firstDisplayedMonth, calendarEndMonth, options, dateLib) {\n if (options.disableNavigation) {\n return undefined;\n }\n const { pagedNavigation, numberOfMonths = 1 } = options;\n const { startOfMonth, addMonths, differenceInCalendarMonths } = dateLib;\n const offset = pagedNavigation ? numberOfMonths : 1;\n const month = startOfMonth(firstDisplayedMonth);\n if (!calendarEndMonth) {\n return addMonths(month, offset);\n }\n const monthsDiff = differenceInCalendarMonths(calendarEndMonth, firstDisplayedMonth);\n if (monthsDiff < numberOfMonths) {\n return undefined;\n }\n return addMonths(month, offset);\n}\n"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAAS,YAAY,CAAC,mBAAmB,EAAE,gBAAgB,EAAE,OAAO,EAAE,OAAO,EAAE;AACtF,IAAI,IAAI,OAAO,CAAC,iBAAiB,EAAE;AACnC,QAAQ,OAAO,SAAS;AACxB,IAAI;AACJ,IAAI,MAAM,EAAE,eAAe,EAAE,cAAc,GAAG,CAAC,EAAE,GAAG,OAAO;AAC3D,IAAI,MAAM,EAAE,YAAY,EAAE,SAAS,EAAE,0BAA0B,EAAE,GAAG,OAAO;AAC3E,IAAI,MAAM,MAAM,GAAG,eAAe,GAAG,cAAc,GAAG,CAAC;AACvD,IAAI,MAAM,KAAK,GAAG,YAAY,CAAC,mBAAmB,CAAC;AACnD,IAAI,IAAI,CAAC,gBAAgB,EAAE;AAC3B,QAAQ,OAAO,SAAS,CAAC,KAAK,EAAE,MAAM,CAAC;AACvC,IAAI;AACJ,IAAI,MAAM,UAAU,GAAG,0BAA0B,CAAC,gBAAgB,EAAE,mBAAmB,CAAC;AACxF,IAAI,IAAI,UAAU,GAAG,cAAc,EAAE;AACrC,QAAQ,OAAO,SAAS;AACxB,IAAI;AACJ,IAAI,OAAO,SAAS,CAAC,KAAK,EAAE,MAAM,CAAC;AACnC;;;;","x_google_ignoreList":[0]}
@@ -1,38 +0,0 @@
1
- /**
2
- * Returns the previous month the user can navigate to, based on the given
3
- * options.
4
- *
5
- * The previous month is not always the previous calendar month:
6
- *
7
- * - If it is before the `calendarStartMonth`, it returns `undefined`.
8
- * - If paged navigation is enabled, it skips back by the number of displayed
9
- * months.
10
- *
11
- * @param firstDisplayedMonth The first month currently displayed in the
12
- * calendar.
13
- * @param calendarStartMonth The earliest month the user can navigate to.
14
- * @param options Navigation options, including `numberOfMonths` and
15
- * `pagedNavigation`.
16
- * @param dateLib The date library to use for date manipulation.
17
- * @returns The previous month, or `undefined` if navigation is not possible.
18
- */
19
- function getPreviousMonth(firstDisplayedMonth, calendarStartMonth, options, dateLib) {
20
- if (options.disableNavigation) {
21
- return undefined;
22
- }
23
- const { pagedNavigation, numberOfMonths } = options;
24
- const { startOfMonth, addMonths, differenceInCalendarMonths } = dateLib;
25
- const offset = pagedNavigation ? (numberOfMonths ?? 1) : 1;
26
- const month = startOfMonth(firstDisplayedMonth);
27
- if (!calendarStartMonth) {
28
- return addMonths(month, -offset);
29
- }
30
- const monthsDiff = differenceInCalendarMonths(month, calendarStartMonth);
31
- if (monthsDiff <= 0) {
32
- return undefined;
33
- }
34
- return addMonths(month, -offset);
35
- }
36
-
37
- export { getPreviousMonth };
38
- //# sourceMappingURL=getPreviousMonth.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getPreviousMonth.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/helpers/getPreviousMonth.js"],"sourcesContent":["/**\n * Returns the previous month the user can navigate to, based on the given\n * options.\n *\n * The previous month is not always the previous calendar month:\n *\n * - If it is before the `calendarStartMonth`, it returns `undefined`.\n * - If paged navigation is enabled, it skips back by the number of displayed\n * months.\n *\n * @param firstDisplayedMonth The first month currently displayed in the\n * calendar.\n * @param calendarStartMonth The earliest month the user can navigate to.\n * @param options Navigation options, including `numberOfMonths` and\n * `pagedNavigation`.\n * @param dateLib The date library to use for date manipulation.\n * @returns The previous month, or `undefined` if navigation is not possible.\n */\nexport function getPreviousMonth(firstDisplayedMonth, calendarStartMonth, options, dateLib) {\n if (options.disableNavigation) {\n return undefined;\n }\n const { pagedNavigation, numberOfMonths } = options;\n const { startOfMonth, addMonths, differenceInCalendarMonths } = dateLib;\n const offset = pagedNavigation ? (numberOfMonths ?? 1) : 1;\n const month = startOfMonth(firstDisplayedMonth);\n if (!calendarStartMonth) {\n return addMonths(month, -offset);\n }\n const monthsDiff = differenceInCalendarMonths(month, calendarStartMonth);\n if (monthsDiff <= 0) {\n return undefined;\n }\n return addMonths(month, -offset);\n}\n"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAAS,gBAAgB,CAAC,mBAAmB,EAAE,kBAAkB,EAAE,OAAO,EAAE,OAAO,EAAE;AAC5F,IAAI,IAAI,OAAO,CAAC,iBAAiB,EAAE;AACnC,QAAQ,OAAO,SAAS;AACxB,IAAI;AACJ,IAAI,MAAM,EAAE,eAAe,EAAE,cAAc,EAAE,GAAG,OAAO;AACvD,IAAI,MAAM,EAAE,YAAY,EAAE,SAAS,EAAE,0BAA0B,EAAE,GAAG,OAAO;AAC3E,IAAI,MAAM,MAAM,GAAG,eAAe,IAAI,cAAc,IAAI,CAAC,IAAI,CAAC;AAC9D,IAAI,MAAM,KAAK,GAAG,YAAY,CAAC,mBAAmB,CAAC;AACnD,IAAI,IAAI,CAAC,kBAAkB,EAAE;AAC7B,QAAQ,OAAO,SAAS,CAAC,KAAK,EAAE,CAAC,MAAM,CAAC;AACxC,IAAI;AACJ,IAAI,MAAM,UAAU,GAAG,0BAA0B,CAAC,KAAK,EAAE,kBAAkB,CAAC;AAC5E,IAAI,IAAI,UAAU,IAAI,CAAC,EAAE;AACzB,QAAQ,OAAO,SAAS;AACxB,IAAI;AACJ,IAAI,OAAO,SAAS,CAAC,KAAK,EAAE,CAAC,MAAM,CAAC;AACpC;;;;","x_google_ignoreList":[0]}