@betterinternship/components 1.7.0 → 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 (370) hide show
  1. package/dist/index.js +0 -1
  2. package/dist/index.js.map +1 -1
  3. package/dist/src/index.d.ts +19 -20
  4. package/package.json +5 -3
  5. package/theme.css +223 -0
  6. package/dist/components/Accordion.d.ts +0 -7
  7. package/dist/components/Avatar.d.ts +0 -6
  8. package/dist/components/Badge.d.ts +0 -21
  9. package/dist/components/Button.d.ts +0 -12
  10. package/dist/components/Button.js +0 -77
  11. package/dist/components/Button.js.map +0 -1
  12. package/dist/components/Calendar.d.ts +0 -7
  13. package/dist/components/Input.d.ts +0 -3
  14. package/dist/components/ui/accordion.d.ts +0 -7
  15. package/dist/components/ui/avatar.d.ts +0 -6
  16. package/dist/components/ui/badge.d.ts +0 -22
  17. package/dist/components/ui/button.d.ts +0 -13
  18. package/dist/components/ui/calendar.d.ts +0 -7
  19. package/dist/components/ui/calendar.js +0 -51
  20. package/dist/components/ui/calendar.js.map +0 -1
  21. package/dist/components/ui/card.d.ts +0 -9
  22. package/dist/components/ui/checkbox.d.ts +0 -4
  23. package/dist/components/ui/dialog.d.ts +0 -18
  24. package/dist/components/ui/icons.d.ts +0 -10
  25. package/dist/components/ui/input.d.ts +0 -3
  26. package/dist/components/ui/label.d.ts +0 -4
  27. package/dist/components/ui/popover.d.ts +0 -7
  28. package/dist/components/ui/separator.d.ts +0 -4
  29. package/dist/components/ui/skeleton.d.ts +0 -2
  30. package/dist/components/ui/switch.d.ts +0 -4
  31. package/dist/components/ui/table.d.ts +0 -10
  32. package/dist/components/ui/textarea.d.ts +0 -3
  33. package/dist/components/ui/tooltip.d.ts +0 -9
  34. package/dist/config.d.ts +0 -6
  35. package/dist/hooks/useClientProcess.d.ts +0 -69
  36. package/dist/index.css.js +0 -7
  37. package/dist/index.css.js.map +0 -1
  38. package/dist/index.d.ts +0 -21
  39. package/dist/index.esm.js +0 -3761
  40. package/dist/index.esm.js.map +0 -1
  41. package/dist/node_modules/@date-fns/tz/date/index.js +0 -84
  42. package/dist/node_modules/@date-fns/tz/date/index.js.map +0 -1
  43. package/dist/node_modules/@date-fns/tz/date/mini.js +0 -451
  44. package/dist/node_modules/@date-fns/tz/date/mini.js.map +0 -1
  45. package/dist/node_modules/@date-fns/tz/tzName/index.js +0 -40
  46. package/dist/node_modules/@date-fns/tz/tzName/index.js.map +0 -1
  47. package/dist/node_modules/@date-fns/tz/tzOffset/index.js +0 -57
  48. package/dist/node_modules/@date-fns/tz/tzOffset/index.js.map +0 -1
  49. package/dist/node_modules/date-fns/_lib/addLeadingZeros.js +0 -8
  50. package/dist/node_modules/date-fns/_lib/addLeadingZeros.js.map +0 -1
  51. package/dist/node_modules/date-fns/_lib/defaultOptions.js +0 -8
  52. package/dist/node_modules/date-fns/_lib/defaultOptions.js.map +0 -1
  53. package/dist/node_modules/date-fns/_lib/format/formatters.js +0 -776
  54. package/dist/node_modules/date-fns/_lib/format/formatters.js.map +0 -1
  55. package/dist/node_modules/date-fns/_lib/format/lightFormatters.js +0 -95
  56. package/dist/node_modules/date-fns/_lib/format/lightFormatters.js.map +0 -1
  57. package/dist/node_modules/date-fns/_lib/format/longFormatters.js +0 -67
  58. package/dist/node_modules/date-fns/_lib/format/longFormatters.js.map +0 -1
  59. package/dist/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js +0 -32
  60. package/dist/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js.map +0 -1
  61. package/dist/node_modules/date-fns/_lib/normalizeDates.js +0 -12
  62. package/dist/node_modules/date-fns/_lib/normalizeDates.js.map +0 -1
  63. package/dist/node_modules/date-fns/_lib/normalizeInterval.js +0 -9
  64. package/dist/node_modules/date-fns/_lib/normalizeInterval.js.map +0 -1
  65. package/dist/node_modules/date-fns/_lib/protectedTokens.js +0 -26
  66. package/dist/node_modules/date-fns/_lib/protectedTokens.js.map +0 -1
  67. package/dist/node_modules/date-fns/addDays.js +0 -61
  68. package/dist/node_modules/date-fns/addDays.js.map +0 -1
  69. package/dist/node_modules/date-fns/addMonths.js +0 -76
  70. package/dist/node_modules/date-fns/addMonths.js.map +0 -1
  71. package/dist/node_modules/date-fns/addWeeks.js +0 -34
  72. package/dist/node_modules/date-fns/addWeeks.js.map +0 -1
  73. package/dist/node_modules/date-fns/addYears.js +0 -34
  74. package/dist/node_modules/date-fns/addYears.js.map +0 -1
  75. package/dist/node_modules/date-fns/constants.js +0 -47
  76. package/dist/node_modules/date-fns/constants.js.map +0 -1
  77. package/dist/node_modules/date-fns/constructFrom.js +0 -50
  78. package/dist/node_modules/date-fns/constructFrom.js.map +0 -1
  79. package/dist/node_modules/date-fns/differenceInCalendarDays.js +0 -63
  80. package/dist/node_modules/date-fns/differenceInCalendarDays.js.map +0 -1
  81. package/dist/node_modules/date-fns/differenceInCalendarMonths.js +0 -43
  82. package/dist/node_modules/date-fns/differenceInCalendarMonths.js.map +0 -1
  83. package/dist/node_modules/date-fns/eachMonthOfInterval.js +0 -66
  84. package/dist/node_modules/date-fns/eachMonthOfInterval.js.map +0 -1
  85. package/dist/node_modules/date-fns/eachYearOfInterval.js +0 -66
  86. package/dist/node_modules/date-fns/eachYearOfInterval.js.map +0 -1
  87. package/dist/node_modules/date-fns/endOfISOWeek.js +0 -36
  88. package/dist/node_modules/date-fns/endOfISOWeek.js.map +0 -1
  89. package/dist/node_modules/date-fns/endOfMonth.js +0 -38
  90. package/dist/node_modules/date-fns/endOfMonth.js.map +0 -1
  91. package/dist/node_modules/date-fns/endOfWeek.js +0 -54
  92. package/dist/node_modules/date-fns/endOfWeek.js.map +0 -1
  93. package/dist/node_modules/date-fns/endOfYear.js +0 -38
  94. package/dist/node_modules/date-fns/endOfYear.js.map +0 -1
  95. package/dist/node_modules/date-fns/format.js +0 -424
  96. package/dist/node_modules/date-fns/format.js.map +0 -1
  97. package/dist/node_modules/date-fns/getDayOfYear.js +0 -35
  98. package/dist/node_modules/date-fns/getDayOfYear.js.map +0 -1
  99. package/dist/node_modules/date-fns/getDaysInMonth.js +0 -37
  100. package/dist/node_modules/date-fns/getDaysInMonth.js.map +0 -1
  101. package/dist/node_modules/date-fns/getISOWeek.js +0 -41
  102. package/dist/node_modules/date-fns/getISOWeek.js.map +0 -1
  103. package/dist/node_modules/date-fns/getISOWeekYear.js +0 -53
  104. package/dist/node_modules/date-fns/getISOWeekYear.js.map +0 -1
  105. package/dist/node_modules/date-fns/getMonth.js +0 -30
  106. package/dist/node_modules/date-fns/getMonth.js.map +0 -1
  107. package/dist/node_modules/date-fns/getWeek.js +0 -55
  108. package/dist/node_modules/date-fns/getWeek.js.map +0 -1
  109. package/dist/node_modules/date-fns/getWeekYear.js +0 -76
  110. package/dist/node_modules/date-fns/getWeekYear.js.map +0 -1
  111. package/dist/node_modules/date-fns/getYear.js +0 -30
  112. package/dist/node_modules/date-fns/getYear.js.map +0 -1
  113. package/dist/node_modules/date-fns/isAfter.js +0 -26
  114. package/dist/node_modules/date-fns/isAfter.js.map +0 -1
  115. package/dist/node_modules/date-fns/isBefore.js +0 -26
  116. package/dist/node_modules/date-fns/isBefore.js.map +0 -1
  117. package/dist/node_modules/date-fns/isDate.js +0 -42
  118. package/dist/node_modules/date-fns/isDate.js.map +0 -1
  119. package/dist/node_modules/date-fns/isSameDay.js +0 -47
  120. package/dist/node_modules/date-fns/isSameDay.js.map +0 -1
  121. package/dist/node_modules/date-fns/isSameMonth.js +0 -44
  122. package/dist/node_modules/date-fns/isSameMonth.js.map +0 -1
  123. package/dist/node_modules/date-fns/isSameYear.js +0 -36
  124. package/dist/node_modules/date-fns/isSameYear.js.map +0 -1
  125. package/dist/node_modules/date-fns/isValid.js +0 -40
  126. package/dist/node_modules/date-fns/isValid.js.map +0 -1
  127. package/dist/node_modules/date-fns/locale/_lib/buildFormatLongFn.js +0 -11
  128. package/dist/node_modules/date-fns/locale/_lib/buildFormatLongFn.js.map +0 -1
  129. package/dist/node_modules/date-fns/locale/_lib/buildLocalizeFn.js +0 -65
  130. package/dist/node_modules/date-fns/locale/_lib/buildLocalizeFn.js.map +0 -1
  131. package/dist/node_modules/date-fns/locale/_lib/buildMatchFn.js +0 -60
  132. package/dist/node_modules/date-fns/locale/_lib/buildMatchFn.js.map +0 -1
  133. package/dist/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js +0 -23
  134. package/dist/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js.map +0 -1
  135. package/dist/node_modules/date-fns/locale/en-US/_lib/formatDistance.js +0 -104
  136. package/dist/node_modules/date-fns/locale/en-US/_lib/formatDistance.js.map +0 -1
  137. package/dist/node_modules/date-fns/locale/en-US/_lib/formatLong.js +0 -42
  138. package/dist/node_modules/date-fns/locale/en-US/_lib/formatLong.js.map +0 -1
  139. package/dist/node_modules/date-fns/locale/en-US/_lib/formatRelative.js +0 -14
  140. package/dist/node_modules/date-fns/locale/en-US/_lib/formatRelative.js.map +0 -1
  141. package/dist/node_modules/date-fns/locale/en-US/_lib/localize.js +0 -190
  142. package/dist/node_modules/date-fns/locale/en-US/_lib/localize.js.map +0 -1
  143. package/dist/node_modules/date-fns/locale/en-US/_lib/match.js +0 -135
  144. package/dist/node_modules/date-fns/locale/en-US/_lib/match.js.map +0 -1
  145. package/dist/node_modules/date-fns/locale/en-US.js +0 -29
  146. package/dist/node_modules/date-fns/locale/en-US.js.map +0 -1
  147. package/dist/node_modules/date-fns/max.js +0 -50
  148. package/dist/node_modules/date-fns/max.js.map +0 -1
  149. package/dist/node_modules/date-fns/min.js +0 -50
  150. package/dist/node_modules/date-fns/min.js.map +0 -1
  151. package/dist/node_modules/date-fns/setMonth.js +0 -47
  152. package/dist/node_modules/date-fns/setMonth.js.map +0 -1
  153. package/dist/node_modules/date-fns/setYear.js +0 -41
  154. package/dist/node_modules/date-fns/setYear.js.map +0 -1
  155. package/dist/node_modules/date-fns/startOfDay.js +0 -36
  156. package/dist/node_modules/date-fns/startOfDay.js.map +0 -1
  157. package/dist/node_modules/date-fns/startOfISOWeek.js +0 -36
  158. package/dist/node_modules/date-fns/startOfISOWeek.js.map +0 -1
  159. package/dist/node_modules/date-fns/startOfISOWeekYear.js +0 -43
  160. package/dist/node_modules/date-fns/startOfISOWeekYear.js.map +0 -1
  161. package/dist/node_modules/date-fns/startOfMonth.js +0 -38
  162. package/dist/node_modules/date-fns/startOfMonth.js.map +0 -1
  163. package/dist/node_modules/date-fns/startOfWeek.js +0 -54
  164. package/dist/node_modules/date-fns/startOfWeek.js.map +0 -1
  165. package/dist/node_modules/date-fns/startOfWeekYear.js +0 -65
  166. package/dist/node_modules/date-fns/startOfWeekYear.js.map +0 -1
  167. package/dist/node_modules/date-fns/startOfYear.js +0 -37
  168. package/dist/node_modules/date-fns/startOfYear.js.map +0 -1
  169. package/dist/node_modules/date-fns/toDate.js +0 -47
  170. package/dist/node_modules/date-fns/toDate.js.map +0 -1
  171. package/dist/node_modules/react-day-picker/dist/esm/DayPicker.js +0 -347
  172. package/dist/node_modules/react-day-picker/dist/esm/DayPicker.js.map +0 -1
  173. package/dist/node_modules/react-day-picker/dist/esm/UI.js +0 -123
  174. package/dist/node_modules/react-day-picker/dist/esm/UI.js.map +0 -1
  175. package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarDay.js +0 -34
  176. package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarDay.js.map +0 -1
  177. package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarMonth.js +0 -15
  178. package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarMonth.js.map +0 -1
  179. package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarWeek.js +0 -14
  180. package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarWeek.js.map +0 -1
  181. package/dist/node_modules/react-day-picker/dist/esm/classes/DateLib.js +0 -600
  182. package/dist/node_modules/react-day-picker/dist/esm/classes/DateLib.js.map +0 -1
  183. package/dist/node_modules/react-day-picker/dist/esm/components/CaptionLabel.js +0 -14
  184. package/dist/node_modules/react-day-picker/dist/esm/components/CaptionLabel.js.map +0 -1
  185. package/dist/node_modules/react-day-picker/dist/esm/components/Chevron.js +0 -19
  186. package/dist/node_modules/react-day-picker/dist/esm/components/Chevron.js.map +0 -1
  187. package/dist/node_modules/react-day-picker/dist/esm/components/Day.js +0 -19
  188. package/dist/node_modules/react-day-picker/dist/esm/components/Day.js.map +0 -1
  189. package/dist/node_modules/react-day-picker/dist/esm/components/DayButton.js +0 -20
  190. package/dist/node_modules/react-day-picker/dist/esm/components/DayButton.js.map +0 -1
  191. package/dist/node_modules/react-day-picker/dist/esm/components/Dropdown.js +0 -24
  192. package/dist/node_modules/react-day-picker/dist/esm/components/Dropdown.js.map +0 -1
  193. package/dist/node_modules/react-day-picker/dist/esm/components/DropdownNav.js +0 -14
  194. package/dist/node_modules/react-day-picker/dist/esm/components/DropdownNav.js.map +0 -1
  195. package/dist/node_modules/react-day-picker/dist/esm/components/Footer.js +0 -14
  196. package/dist/node_modules/react-day-picker/dist/esm/components/Footer.js.map +0 -1
  197. package/dist/node_modules/react-day-picker/dist/esm/components/Month.js +0 -16
  198. package/dist/node_modules/react-day-picker/dist/esm/components/Month.js.map +0 -1
  199. package/dist/node_modules/react-day-picker/dist/esm/components/MonthCaption.js +0 -15
  200. package/dist/node_modules/react-day-picker/dist/esm/components/MonthCaption.js.map +0 -1
  201. package/dist/node_modules/react-day-picker/dist/esm/components/MonthGrid.js +0 -14
  202. package/dist/node_modules/react-day-picker/dist/esm/components/MonthGrid.js.map +0 -1
  203. package/dist/node_modules/react-day-picker/dist/esm/components/Months.js +0 -14
  204. package/dist/node_modules/react-day-picker/dist/esm/components/Months.js.map +0 -1
  205. package/dist/node_modules/react-day-picker/dist/esm/components/MonthsDropdown.js +0 -16
  206. package/dist/node_modules/react-day-picker/dist/esm/components/MonthsDropdown.js.map +0 -1
  207. package/dist/node_modules/react-day-picker/dist/esm/components/Nav.js +0 -32
  208. package/dist/node_modules/react-day-picker/dist/esm/components/Nav.js.map +0 -1
  209. package/dist/node_modules/react-day-picker/dist/esm/components/NextMonthButton.js +0 -14
  210. package/dist/node_modules/react-day-picker/dist/esm/components/NextMonthButton.js.map +0 -1
  211. package/dist/node_modules/react-day-picker/dist/esm/components/Option.js +0 -14
  212. package/dist/node_modules/react-day-picker/dist/esm/components/Option.js.map +0 -1
  213. package/dist/node_modules/react-day-picker/dist/esm/components/PreviousMonthButton.js +0 -14
  214. package/dist/node_modules/react-day-picker/dist/esm/components/PreviousMonthButton.js.map +0 -1
  215. package/dist/node_modules/react-day-picker/dist/esm/components/Root.js +0 -15
  216. package/dist/node_modules/react-day-picker/dist/esm/components/Root.js.map +0 -1
  217. package/dist/node_modules/react-day-picker/dist/esm/components/Select.js +0 -14
  218. package/dist/node_modules/react-day-picker/dist/esm/components/Select.js.map +0 -1
  219. package/dist/node_modules/react-day-picker/dist/esm/components/Week.js +0 -15
  220. package/dist/node_modules/react-day-picker/dist/esm/components/Week.js.map +0 -1
  221. package/dist/node_modules/react-day-picker/dist/esm/components/WeekNumber.js +0 -15
  222. package/dist/node_modules/react-day-picker/dist/esm/components/WeekNumber.js.map +0 -1
  223. package/dist/node_modules/react-day-picker/dist/esm/components/WeekNumberHeader.js +0 -14
  224. package/dist/node_modules/react-day-picker/dist/esm/components/WeekNumberHeader.js.map +0 -1
  225. package/dist/node_modules/react-day-picker/dist/esm/components/Weekday.js +0 -14
  226. package/dist/node_modules/react-day-picker/dist/esm/components/Weekday.js.map +0 -1
  227. package/dist/node_modules/react-day-picker/dist/esm/components/Weekdays.js +0 -15
  228. package/dist/node_modules/react-day-picker/dist/esm/components/Weekdays.js.map +0 -1
  229. package/dist/node_modules/react-day-picker/dist/esm/components/Weeks.js +0 -14
  230. package/dist/node_modules/react-day-picker/dist/esm/components/Weeks.js.map +0 -1
  231. package/dist/node_modules/react-day-picker/dist/esm/components/YearsDropdown.js +0 -16
  232. package/dist/node_modules/react-day-picker/dist/esm/components/YearsDropdown.js.map +0 -1
  233. package/dist/node_modules/react-day-picker/dist/esm/components/custom-components.js +0 -26
  234. package/dist/node_modules/react-day-picker/dist/esm/components/custom-components.js.map +0 -1
  235. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatCaption.js +0 -21
  236. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatCaption.js.map +0 -1
  237. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatDay.js +0 -20
  238. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatDay.js.map +0 -1
  239. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatMonthDropdown.js +0 -19
  240. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatMonthDropdown.js.map +0 -1
  241. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumber.js +0 -22
  242. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumber.js.map +0 -1
  243. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumberHeader.js +0 -14
  244. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumberHeader.js.map +0 -1
  245. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekdayName.js +0 -20
  246. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekdayName.js.map +0 -1
  247. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatYearDropdown.js +0 -18
  248. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatYearDropdown.js.map +0 -1
  249. package/dist/node_modules/react-day-picker/dist/esm/formatters/index.js +0 -8
  250. package/dist/node_modules/react-day-picker/dist/esm/formatters/index.js.map +0 -1
  251. package/dist/node_modules/react-day-picker/dist/esm/helpers/calculateFocusTarget.js +0 -74
  252. package/dist/node_modules/react-day-picker/dist/esm/helpers/calculateFocusTarget.js.map +0 -1
  253. package/dist/node_modules/react-day-picker/dist/esm/helpers/createGetModifiers.js +0 -96
  254. package/dist/node_modules/react-day-picker/dist/esm/helpers/createGetModifiers.js.map +0 -1
  255. package/dist/node_modules/react-day-picker/dist/esm/helpers/endOfBroadcastWeek.js +0 -23
  256. package/dist/node_modules/react-day-picker/dist/esm/helpers/endOfBroadcastWeek.js.map +0 -1
  257. package/dist/node_modules/react-day-picker/dist/esm/helpers/getBroadcastWeeksInMonth.js +0 -29
  258. package/dist/node_modules/react-day-picker/dist/esm/helpers/getBroadcastWeeksInMonth.js.map +0 -1
  259. package/dist/node_modules/react-day-picker/dist/esm/helpers/getClassNamesForModifiers.js +0 -34
  260. package/dist/node_modules/react-day-picker/dist/esm/helpers/getClassNamesForModifiers.js.map +0 -1
  261. package/dist/node_modules/react-day-picker/dist/esm/helpers/getComponents.js +0 -21
  262. package/dist/node_modules/react-day-picker/dist/esm/helpers/getComponents.js.map +0 -1
  263. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDataAttributes.js +0 -28
  264. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDataAttributes.js.map +0 -1
  265. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDates.js +0 -60
  266. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDates.js.map +0 -1
  267. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDays.js +0 -20
  268. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDays.js.map +0 -1
  269. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDefaultClassNames.js +0 -34
  270. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDefaultClassNames.js.map +0 -1
  271. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDisplayMonths.js +0 -25
  272. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDisplayMonths.js.map +0 -1
  273. package/dist/node_modules/react-day-picker/dist/esm/helpers/getFocusableDate.js +0 -47
  274. package/dist/node_modules/react-day-picker/dist/esm/helpers/getFocusableDate.js.map +0 -1
  275. package/dist/node_modules/react-day-picker/dist/esm/helpers/getFormatters.js +0 -18
  276. package/dist/node_modules/react-day-picker/dist/esm/helpers/getFormatters.js.map +0 -1
  277. package/dist/node_modules/react-day-picker/dist/esm/helpers/getInitialMonth.js +0 -28
  278. package/dist/node_modules/react-day-picker/dist/esm/helpers/getInitialMonth.js.map +0 -1
  279. package/dist/node_modules/react-day-picker/dist/esm/helpers/getLabels.js +0 -54
  280. package/dist/node_modules/react-day-picker/dist/esm/helpers/getLabels.js.map +0 -1
  281. package/dist/node_modules/react-day-picker/dist/esm/helpers/getMonthOptions.js +0 -34
  282. package/dist/node_modules/react-day-picker/dist/esm/helpers/getMonthOptions.js.map +0 -1
  283. package/dist/node_modules/react-day-picker/dist/esm/helpers/getMonths.js +0 -70
  284. package/dist/node_modules/react-day-picker/dist/esm/helpers/getMonths.js.map +0 -1
  285. package/dist/node_modules/react-day-picker/dist/esm/helpers/getNavMonth.js +0 -32
  286. package/dist/node_modules/react-day-picker/dist/esm/helpers/getNavMonth.js.map +0 -1
  287. package/dist/node_modules/react-day-picker/dist/esm/helpers/getNextFocus.js +0 -41
  288. package/dist/node_modules/react-day-picker/dist/esm/helpers/getNextFocus.js.map +0 -1
  289. package/dist/node_modules/react-day-picker/dist/esm/helpers/getNextMonth.js +0 -37
  290. package/dist/node_modules/react-day-picker/dist/esm/helpers/getNextMonth.js.map +0 -1
  291. package/dist/node_modules/react-day-picker/dist/esm/helpers/getPreviousMonth.js +0 -38
  292. package/dist/node_modules/react-day-picker/dist/esm/helpers/getPreviousMonth.js.map +0 -1
  293. package/dist/node_modules/react-day-picker/dist/esm/helpers/getStyleForModifiers.js +0 -28
  294. package/dist/node_modules/react-day-picker/dist/esm/helpers/getStyleForModifiers.js.map +0 -1
  295. package/dist/node_modules/react-day-picker/dist/esm/helpers/getWeekdays.js +0 -27
  296. package/dist/node_modules/react-day-picker/dist/esm/helpers/getWeekdays.js.map +0 -1
  297. package/dist/node_modules/react-day-picker/dist/esm/helpers/getWeeks.js +0 -15
  298. package/dist/node_modules/react-day-picker/dist/esm/helpers/getWeeks.js.map +0 -1
  299. package/dist/node_modules/react-day-picker/dist/esm/helpers/getYearOptions.js +0 -37
  300. package/dist/node_modules/react-day-picker/dist/esm/helpers/getYearOptions.js.map +0 -1
  301. package/dist/node_modules/react-day-picker/dist/esm/helpers/startOfBroadcastWeek.js +0 -28
  302. package/dist/node_modules/react-day-picker/dist/esm/helpers/startOfBroadcastWeek.js.map +0 -1
  303. package/dist/node_modules/react-day-picker/dist/esm/helpers/useControlledValue.js +0 -32
  304. package/dist/node_modules/react-day-picker/dist/esm/helpers/useControlledValue.js.map +0 -1
  305. package/dist/node_modules/react-day-picker/dist/esm/labels/index.js +0 -12
  306. package/dist/node_modules/react-day-picker/dist/esm/labels/index.js.map +0 -1
  307. package/dist/node_modules/react-day-picker/dist/esm/labels/labelDayButton.js +0 -28
  308. package/dist/node_modules/react-day-picker/dist/esm/labels/labelDayButton.js.map +0 -1
  309. package/dist/node_modules/react-day-picker/dist/esm/labels/labelGrid.js +0 -21
  310. package/dist/node_modules/react-day-picker/dist/esm/labels/labelGrid.js.map +0 -1
  311. package/dist/node_modules/react-day-picker/dist/esm/labels/labelGridcell.js +0 -23
  312. package/dist/node_modules/react-day-picker/dist/esm/labels/labelGridcell.js.map +0 -1
  313. package/dist/node_modules/react-day-picker/dist/esm/labels/labelMonthDropdown.js +0 -15
  314. package/dist/node_modules/react-day-picker/dist/esm/labels/labelMonthDropdown.js.map +0 -1
  315. package/dist/node_modules/react-day-picker/dist/esm/labels/labelNav.js +0 -14
  316. package/dist/node_modules/react-day-picker/dist/esm/labels/labelNav.js.map +0 -1
  317. package/dist/node_modules/react-day-picker/dist/esm/labels/labelNext.js +0 -17
  318. package/dist/node_modules/react-day-picker/dist/esm/labels/labelNext.js.map +0 -1
  319. package/dist/node_modules/react-day-picker/dist/esm/labels/labelPrevious.js +0 -16
  320. package/dist/node_modules/react-day-picker/dist/esm/labels/labelPrevious.js.map +0 -1
  321. package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekNumber.js +0 -16
  322. package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekNumber.js.map +0 -1
  323. package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekNumberHeader.js +0 -15
  324. package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekNumberHeader.js.map +0 -1
  325. package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekday.js +0 -19
  326. package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekday.js.map +0 -1
  327. package/dist/node_modules/react-day-picker/dist/esm/labels/labelYearDropdown.js +0 -15
  328. package/dist/node_modules/react-day-picker/dist/esm/labels/labelYearDropdown.js.map +0 -1
  329. package/dist/node_modules/react-day-picker/dist/esm/locale/en-US.js +0 -68
  330. package/dist/node_modules/react-day-picker/dist/esm/locale/en-US.js.map +0 -1
  331. package/dist/node_modules/react-day-picker/dist/esm/noonDateLib.js +0 -164
  332. package/dist/node_modules/react-day-picker/dist/esm/noonDateLib.js.map +0 -1
  333. package/dist/node_modules/react-day-picker/dist/esm/selection/useMulti.js +0 -58
  334. package/dist/node_modules/react-day-picker/dist/esm/selection/useMulti.js.map +0 -1
  335. package/dist/node_modules/react-day-picker/dist/esm/selection/useRange.js +0 -64
  336. package/dist/node_modules/react-day-picker/dist/esm/selection/useRange.js.map +0 -1
  337. package/dist/node_modules/react-day-picker/dist/esm/selection/useSingle.js +0 -45
  338. package/dist/node_modules/react-day-picker/dist/esm/selection/useSingle.js.map +0 -1
  339. package/dist/node_modules/react-day-picker/dist/esm/useAnimation.js +0 -174
  340. package/dist/node_modules/react-day-picker/dist/esm/useAnimation.js.map +0 -1
  341. package/dist/node_modules/react-day-picker/dist/esm/useCalendar.js +0 -114
  342. package/dist/node_modules/react-day-picker/dist/esm/useCalendar.js.map +0 -1
  343. package/dist/node_modules/react-day-picker/dist/esm/useDayPicker.js +0 -26
  344. package/dist/node_modules/react-day-picker/dist/esm/useDayPicker.js.map +0 -1
  345. package/dist/node_modules/react-day-picker/dist/esm/useFocus.js +0 -57
  346. package/dist/node_modules/react-day-picker/dist/esm/useFocus.js.map +0 -1
  347. package/dist/node_modules/react-day-picker/dist/esm/useSelection.js +0 -32
  348. package/dist/node_modules/react-day-picker/dist/esm/useSelection.js.map +0 -1
  349. package/dist/node_modules/react-day-picker/dist/esm/utils/addToRange.js +0 -96
  350. package/dist/node_modules/react-day-picker/dist/esm/utils/addToRange.js.map +0 -1
  351. package/dist/node_modules/react-day-picker/dist/esm/utils/convertMatchersToTimeZone.js +0 -62
  352. package/dist/node_modules/react-day-picker/dist/esm/utils/convertMatchersToTimeZone.js.map +0 -1
  353. package/dist/node_modules/react-day-picker/dist/esm/utils/dateMatchModifiers.js +0 -63
  354. package/dist/node_modules/react-day-picker/dist/esm/utils/dateMatchModifiers.js.map +0 -1
  355. package/dist/node_modules/react-day-picker/dist/esm/utils/rangeContainsDayOfWeek.js +0 -31
  356. package/dist/node_modules/react-day-picker/dist/esm/utils/rangeContainsDayOfWeek.js.map +0 -1
  357. package/dist/node_modules/react-day-picker/dist/esm/utils/rangeContainsModifiers.js +0 -75
  358. package/dist/node_modules/react-day-picker/dist/esm/utils/rangeContainsModifiers.js.map +0 -1
  359. package/dist/node_modules/react-day-picker/dist/esm/utils/rangeIncludesDate.js +0 -36
  360. package/dist/node_modules/react-day-picker/dist/esm/utils/rangeIncludesDate.js.map +0 -1
  361. package/dist/node_modules/react-day-picker/dist/esm/utils/rangeOverlaps.js +0 -22
  362. package/dist/node_modules/react-day-picker/dist/esm/utils/rangeOverlaps.js.map +0 -1
  363. package/dist/node_modules/react-day-picker/dist/esm/utils/toTimeZone.js +0 -17
  364. package/dist/node_modules/react-day-picker/dist/esm/utils/toTimeZone.js.map +0 -1
  365. package/dist/node_modules/react-day-picker/dist/esm/utils/typeguards.js +0 -67
  366. package/dist/node_modules/react-day-picker/dist/esm/utils/typeguards.js.map +0 -1
  367. package/dist/node_modules/style-inject/dist/style-inject.es.js +0 -29
  368. package/dist/node_modules/style-inject/dist/style-inject.es.js.map +0 -1
  369. package/dist/utilities/Icons.d.ts +0 -33
  370. package/dist/utils.d.ts +0 -2
@@ -1,21 +0,0 @@
1
- import { DateLib } from '../classes/DateLib.js';
2
-
3
- /**
4
- * Formats the caption of the month.
5
- *
6
- * @defaultValue Locale-specific month/year order (e.g., "November 2022").
7
- * @param month The date representing the month.
8
- * @param options Configuration options for the date library.
9
- * @param dateLib The date library to use for formatting. If not provided, a new
10
- * instance is created.
11
- * @returns The formatted caption as a string.
12
- * @group Formatters
13
- * @see https://daypicker.dev/docs/translation#custom-formatters
14
- */
15
- function formatCaption(month, options, dateLib) {
16
- const lib = dateLib ?? new DateLib(options);
17
- return lib.formatMonthYear(month);
18
- }
19
-
20
- export { formatCaption };
21
- //# sourceMappingURL=formatCaption.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"formatCaption.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/formatters/formatCaption.js"],"sourcesContent":["import { DateLib } from \"../classes/DateLib.js\";\n/**\n * Formats the caption of the month.\n *\n * @defaultValue Locale-specific month/year order (e.g., \"November 2022\").\n * @param month The date representing the month.\n * @param options Configuration options for the date library.\n * @param dateLib The date library to use for formatting. If not provided, a new\n * instance is created.\n * @returns The formatted caption as a string.\n * @group Formatters\n * @see https://daypicker.dev/docs/translation#custom-formatters\n */\nexport function formatCaption(month, options, dateLib) {\n const lib = dateLib ?? new DateLib(options);\n return lib.formatMonthYear(month);\n}\n"],"names":[],"mappings":";;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAAS,aAAa,CAAC,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE;AACvD,IAAI,MAAM,GAAG,GAAG,OAAO,IAAI,IAAI,OAAO,CAAC,OAAO,CAAC;AAC/C,IAAI,OAAO,GAAG,CAAC,eAAe,CAAC,KAAK,CAAC;AACrC;;;;","x_google_ignoreList":[0]}
@@ -1,20 +0,0 @@
1
- import { DateLib } from '../classes/DateLib.js';
2
-
3
- /**
4
- * Formats the day date shown in the day cell.
5
- *
6
- * @defaultValue `d` (e.g., "1").
7
- * @param date The date to format.
8
- * @param options Configuration options for the date library.
9
- * @param dateLib The date library to use for formatting. If not provided, a new
10
- * instance is created.
11
- * @returns The formatted day as a string.
12
- * @group Formatters
13
- * @see https://daypicker.dev/docs/translation#custom-formatters
14
- */
15
- function formatDay(date, options, dateLib) {
16
- return (dateLib ?? new DateLib(options)).format(date, "d");
17
- }
18
-
19
- export { formatDay };
20
- //# sourceMappingURL=formatDay.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"formatDay.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/formatters/formatDay.js"],"sourcesContent":["import { DateLib } from \"../classes/DateLib.js\";\n/**\n * Formats the day date shown in the day cell.\n *\n * @defaultValue `d` (e.g., \"1\").\n * @param date The date to format.\n * @param options Configuration options for the date library.\n * @param dateLib The date library to use for formatting. If not provided, a new\n * instance is created.\n * @returns The formatted day as a string.\n * @group Formatters\n * @see https://daypicker.dev/docs/translation#custom-formatters\n */\nexport function formatDay(date, options, dateLib) {\n return (dateLib ?? new DateLib(options)).format(date, \"d\");\n}\n"],"names":[],"mappings":";;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAAS,SAAS,CAAC,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE;AAClD,IAAI,OAAO,CAAC,OAAO,IAAI,IAAI,OAAO,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC,IAAI,EAAE,GAAG,CAAC;AAC9D;;;;","x_google_ignoreList":[0]}
@@ -1,19 +0,0 @@
1
- import { defaultDateLib } from '../classes/DateLib.js';
2
-
3
- /**
4
- * Formats the month for the dropdown option label.
5
- *
6
- * @defaultValue The localized full month name.
7
- * @param month The date representing the month.
8
- * @param dateLib The date library to use for formatting. Defaults to
9
- * `defaultDateLib`.
10
- * @returns The formatted month name as a string.
11
- * @group Formatters
12
- * @see https://daypicker.dev/docs/translation#custom-formatters
13
- */
14
- function formatMonthDropdown(month, dateLib = defaultDateLib) {
15
- return dateLib.format(month, "LLLL");
16
- }
17
-
18
- export { formatMonthDropdown };
19
- //# sourceMappingURL=formatMonthDropdown.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"formatMonthDropdown.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/formatters/formatMonthDropdown.js"],"sourcesContent":["import { defaultDateLib } from \"../classes/DateLib.js\";\n/**\n * Formats the month for the dropdown option label.\n *\n * @defaultValue The localized full month name.\n * @param month The date representing the month.\n * @param dateLib The date library to use for formatting. Defaults to\n * `defaultDateLib`.\n * @returns The formatted month name as a string.\n * @group Formatters\n * @see https://daypicker.dev/docs/translation#custom-formatters\n */\nexport function formatMonthDropdown(month, dateLib = defaultDateLib) {\n return dateLib.format(month, \"LLLL\");\n}\n"],"names":[],"mappings":";;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAAS,mBAAmB,CAAC,KAAK,EAAE,OAAO,GAAG,cAAc,EAAE;AACrE,IAAI,OAAO,OAAO,CAAC,MAAM,CAAC,KAAK,EAAE,MAAM,CAAC;AACxC;;;;","x_google_ignoreList":[0]}
@@ -1,22 +0,0 @@
1
- import { defaultDateLib } from '../classes/DateLib.js';
2
-
3
- /**
4
- * Formats the week number.
5
- *
6
- * @defaultValue The week number as a string, with a leading zero for single-digit numbers.
7
- * @param weekNumber The week number to format.
8
- * @param dateLib The date library to use for formatting. Defaults to
9
- * `defaultDateLib`.
10
- * @returns The formatted week number as a string.
11
- * @group Formatters
12
- * @see https://daypicker.dev/docs/translation#custom-formatters
13
- */
14
- function formatWeekNumber(weekNumber, dateLib = defaultDateLib) {
15
- if (weekNumber < 10) {
16
- return dateLib.formatNumber(`0${weekNumber.toLocaleString()}`);
17
- }
18
- return dateLib.formatNumber(`${weekNumber.toLocaleString()}`);
19
- }
20
-
21
- export { formatWeekNumber };
22
- //# sourceMappingURL=formatWeekNumber.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"formatWeekNumber.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/formatters/formatWeekNumber.js"],"sourcesContent":["import { defaultDateLib } from \"../classes/DateLib.js\";\n/**\n * Formats the week number.\n *\n * @defaultValue The week number as a string, with a leading zero for single-digit numbers.\n * @param weekNumber The week number to format.\n * @param dateLib The date library to use for formatting. Defaults to\n * `defaultDateLib`.\n * @returns The formatted week number as a string.\n * @group Formatters\n * @see https://daypicker.dev/docs/translation#custom-formatters\n */\nexport function formatWeekNumber(weekNumber, dateLib = defaultDateLib) {\n if (weekNumber < 10) {\n return dateLib.formatNumber(`0${weekNumber.toLocaleString()}`);\n }\n return dateLib.formatNumber(`${weekNumber.toLocaleString()}`);\n}\n"],"names":[],"mappings":";;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAAS,gBAAgB,CAAC,UAAU,EAAE,OAAO,GAAG,cAAc,EAAE;AACvE,IAAI,IAAI,UAAU,GAAG,EAAE,EAAE;AACzB,QAAQ,OAAO,OAAO,CAAC,YAAY,CAAC,CAAC,CAAC,EAAE,UAAU,CAAC,cAAc,EAAE,CAAC,CAAC,CAAC;AACtE,IAAI;AACJ,IAAI,OAAO,OAAO,CAAC,YAAY,CAAC,CAAC,EAAE,UAAU,CAAC,cAAc,EAAE,CAAC,CAAC,CAAC;AACjE;;;;","x_google_ignoreList":[0]}
@@ -1,14 +0,0 @@
1
- /**
2
- * Formats the header for the week number column.
3
- *
4
- * @defaultValue An empty string `""`.
5
- * @returns The formatted week number header as a string.
6
- * @group Formatters
7
- * @see https://daypicker.dev/docs/translation#custom-formatters
8
- */
9
- function formatWeekNumberHeader() {
10
- return ``;
11
- }
12
-
13
- export { formatWeekNumberHeader };
14
- //# sourceMappingURL=formatWeekNumberHeader.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"formatWeekNumberHeader.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/formatters/formatWeekNumberHeader.js"],"sourcesContent":["/**\n * Formats the header for the week number column.\n *\n * @defaultValue An empty string `\"\"`.\n * @returns The formatted week number header as a string.\n * @group Formatters\n * @see https://daypicker.dev/docs/translation#custom-formatters\n */\nexport function formatWeekNumberHeader() {\n return ``;\n}\n"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAAS,sBAAsB,GAAG;AACzC,IAAI,OAAO,CAAC,CAAC;AACb;;;;","x_google_ignoreList":[0]}
@@ -1,20 +0,0 @@
1
- import { DateLib } from '../classes/DateLib.js';
2
-
3
- /**
4
- * Formats the name of a weekday to be displayed in the weekdays header.
5
- *
6
- * @defaultValue `cccccc` (e.g., "Mo" for Monday).
7
- * @param weekday The date representing the weekday.
8
- * @param options Configuration options for the date library.
9
- * @param dateLib The date library to use for formatting. If not provided, a new
10
- * instance is created.
11
- * @returns The formatted weekday name as a string.
12
- * @group Formatters
13
- * @see https://daypicker.dev/docs/translation#custom-formatters
14
- */
15
- function formatWeekdayName(weekday, options, dateLib) {
16
- return (dateLib ?? new DateLib(options)).format(weekday, "cccccc");
17
- }
18
-
19
- export { formatWeekdayName };
20
- //# sourceMappingURL=formatWeekdayName.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"formatWeekdayName.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/formatters/formatWeekdayName.js"],"sourcesContent":["import { DateLib } from \"../classes/DateLib.js\";\n/**\n * Formats the name of a weekday to be displayed in the weekdays header.\n *\n * @defaultValue `cccccc` (e.g., \"Mo\" for Monday).\n * @param weekday The date representing the weekday.\n * @param options Configuration options for the date library.\n * @param dateLib The date library to use for formatting. If not provided, a new\n * instance is created.\n * @returns The formatted weekday name as a string.\n * @group Formatters\n * @see https://daypicker.dev/docs/translation#custom-formatters\n */\nexport function formatWeekdayName(weekday, options, dateLib) {\n return (dateLib ?? new DateLib(options)).format(weekday, \"cccccc\");\n}\n"],"names":[],"mappings":";;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAAS,iBAAiB,CAAC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE;AAC7D,IAAI,OAAO,CAAC,OAAO,IAAI,IAAI,OAAO,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC,OAAO,EAAE,QAAQ,CAAC;AACtE;;;;","x_google_ignoreList":[0]}
@@ -1,18 +0,0 @@
1
- import { defaultDateLib } from '../classes/DateLib.js';
2
-
3
- /**
4
- * Formats the year for the dropdown option label.
5
- *
6
- * @param year The year to format.
7
- * @param dateLib The date library to use for formatting. Defaults to
8
- * `defaultDateLib`.
9
- * @returns The formatted year as a string.
10
- * @group Formatters
11
- * @see https://daypicker.dev/docs/translation#custom-formatters
12
- */
13
- function formatYearDropdown(year, dateLib = defaultDateLib) {
14
- return dateLib.format(year, "yyyy");
15
- }
16
-
17
- export { formatYearDropdown };
18
- //# sourceMappingURL=formatYearDropdown.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"formatYearDropdown.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/formatters/formatYearDropdown.js"],"sourcesContent":["import { defaultDateLib } from \"../classes/DateLib.js\";\n/**\n * Formats the year for the dropdown option label.\n *\n * @param year The year to format.\n * @param dateLib The date library to use for formatting. Defaults to\n * `defaultDateLib`.\n * @returns The formatted year as a string.\n * @group Formatters\n * @see https://daypicker.dev/docs/translation#custom-formatters\n */\nexport function formatYearDropdown(year, dateLib = defaultDateLib) {\n return dateLib.format(year, \"yyyy\");\n}\n"],"names":[],"mappings":";;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAAS,kBAAkB,CAAC,IAAI,EAAE,OAAO,GAAG,cAAc,EAAE;AACnE,IAAI,OAAO,OAAO,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC;AACvC;;;;","x_google_ignoreList":[0]}
@@ -1,8 +0,0 @@
1
- export { formatCaption } from './formatCaption.js';
2
- export { formatDay } from './formatDay.js';
3
- export { formatMonthDropdown } from './formatMonthDropdown.js';
4
- export { formatWeekdayName } from './formatWeekdayName.js';
5
- export { formatWeekNumber } from './formatWeekNumber.js';
6
- export { formatWeekNumberHeader } from './formatWeekNumberHeader.js';
7
- export { formatYearDropdown } from './formatYearDropdown.js';
8
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
@@ -1,74 +0,0 @@
1
- import { DayFlag } from '../UI.js';
2
-
3
- var FocusTargetPriority;
4
- (function (FocusTargetPriority) {
5
- FocusTargetPriority[FocusTargetPriority["Today"] = 0] = "Today";
6
- FocusTargetPriority[FocusTargetPriority["Selected"] = 1] = "Selected";
7
- FocusTargetPriority[FocusTargetPriority["LastFocused"] = 2] = "LastFocused";
8
- FocusTargetPriority[FocusTargetPriority["FocusedModifier"] = 3] = "FocusedModifier";
9
- })(FocusTargetPriority || (FocusTargetPriority = {}));
10
- /**
11
- * Determines if a day is focusable based on its modifiers.
12
- *
13
- * A day is considered focusable if it is not disabled, hidden, or outside the
14
- * displayed month.
15
- *
16
- * @param modifiers The modifiers applied to the day.
17
- * @returns `true` if the day is focusable, otherwise `false`.
18
- */
19
- function isFocusableDay(modifiers) {
20
- return (!modifiers[DayFlag.disabled] &&
21
- !modifiers[DayFlag.hidden] &&
22
- !modifiers[DayFlag.outside]);
23
- }
24
- /**
25
- * Calculates the focus target day based on priority.
26
- *
27
- * This function determines the day that should receive focus in the calendar,
28
- * prioritizing days with specific modifiers (e.g., "focused", "today") or
29
- * selection states.
30
- *
31
- * @param days The array of `CalendarDay` objects to evaluate.
32
- * @param getModifiers A function to retrieve the modifiers for a given day.
33
- * @param isSelected A function to determine if a day is selected.
34
- * @param lastFocused The last focused day, if any.
35
- * @returns The `CalendarDay` that should receive focus, or `undefined` if no
36
- * focusable day is found.
37
- */
38
- function calculateFocusTarget(days, getModifiers, isSelected, lastFocused) {
39
- let focusTarget;
40
- let foundFocusTargetPriority = -1;
41
- for (const day of days) {
42
- const modifiers = getModifiers(day);
43
- if (isFocusableDay(modifiers)) {
44
- if (modifiers[DayFlag.focused] &&
45
- foundFocusTargetPriority < FocusTargetPriority.FocusedModifier) {
46
- focusTarget = day;
47
- foundFocusTargetPriority = FocusTargetPriority.FocusedModifier;
48
- }
49
- else if (lastFocused?.isEqualTo(day) &&
50
- foundFocusTargetPriority < FocusTargetPriority.LastFocused) {
51
- focusTarget = day;
52
- foundFocusTargetPriority = FocusTargetPriority.LastFocused;
53
- }
54
- else if (isSelected(day.date) &&
55
- foundFocusTargetPriority < FocusTargetPriority.Selected) {
56
- focusTarget = day;
57
- foundFocusTargetPriority = FocusTargetPriority.Selected;
58
- }
59
- else if (modifiers[DayFlag.today] &&
60
- foundFocusTargetPriority < FocusTargetPriority.Today) {
61
- focusTarget = day;
62
- foundFocusTargetPriority = FocusTargetPriority.Today;
63
- }
64
- }
65
- }
66
- if (!focusTarget) {
67
- // Return the first day that is focusable
68
- focusTarget = days.find((day) => isFocusableDay(getModifiers(day)));
69
- }
70
- return focusTarget;
71
- }
72
-
73
- export { calculateFocusTarget };
74
- //# sourceMappingURL=calculateFocusTarget.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"calculateFocusTarget.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/helpers/calculateFocusTarget.js"],"sourcesContent":["import { DayFlag } from \"../UI.js\";\nvar FocusTargetPriority;\n(function (FocusTargetPriority) {\n FocusTargetPriority[FocusTargetPriority[\"Today\"] = 0] = \"Today\";\n FocusTargetPriority[FocusTargetPriority[\"Selected\"] = 1] = \"Selected\";\n FocusTargetPriority[FocusTargetPriority[\"LastFocused\"] = 2] = \"LastFocused\";\n FocusTargetPriority[FocusTargetPriority[\"FocusedModifier\"] = 3] = \"FocusedModifier\";\n})(FocusTargetPriority || (FocusTargetPriority = {}));\n/**\n * Determines if a day is focusable based on its modifiers.\n *\n * A day is considered focusable if it is not disabled, hidden, or outside the\n * displayed month.\n *\n * @param modifiers The modifiers applied to the day.\n * @returns `true` if the day is focusable, otherwise `false`.\n */\nfunction isFocusableDay(modifiers) {\n return (!modifiers[DayFlag.disabled] &&\n !modifiers[DayFlag.hidden] &&\n !modifiers[DayFlag.outside]);\n}\n/**\n * Calculates the focus target day based on priority.\n *\n * This function determines the day that should receive focus in the calendar,\n * prioritizing days with specific modifiers (e.g., \"focused\", \"today\") or\n * selection states.\n *\n * @param days The array of `CalendarDay` objects to evaluate.\n * @param getModifiers A function to retrieve the modifiers for a given day.\n * @param isSelected A function to determine if a day is selected.\n * @param lastFocused The last focused day, if any.\n * @returns The `CalendarDay` that should receive focus, or `undefined` if no\n * focusable day is found.\n */\nexport function calculateFocusTarget(days, getModifiers, isSelected, lastFocused) {\n let focusTarget;\n let foundFocusTargetPriority = -1;\n for (const day of days) {\n const modifiers = getModifiers(day);\n if (isFocusableDay(modifiers)) {\n if (modifiers[DayFlag.focused] &&\n foundFocusTargetPriority < FocusTargetPriority.FocusedModifier) {\n focusTarget = day;\n foundFocusTargetPriority = FocusTargetPriority.FocusedModifier;\n }\n else if (lastFocused?.isEqualTo(day) &&\n foundFocusTargetPriority < FocusTargetPriority.LastFocused) {\n focusTarget = day;\n foundFocusTargetPriority = FocusTargetPriority.LastFocused;\n }\n else if (isSelected(day.date) &&\n foundFocusTargetPriority < FocusTargetPriority.Selected) {\n focusTarget = day;\n foundFocusTargetPriority = FocusTargetPriority.Selected;\n }\n else if (modifiers[DayFlag.today] &&\n foundFocusTargetPriority < FocusTargetPriority.Today) {\n focusTarget = day;\n foundFocusTargetPriority = FocusTargetPriority.Today;\n }\n }\n }\n if (!focusTarget) {\n // Return the first day that is focusable\n focusTarget = days.find((day) => isFocusableDay(getModifiers(day)));\n }\n return focusTarget;\n}\n"],"names":[],"mappings":";;AACA,IAAI,mBAAmB;AACvB,CAAC,UAAU,mBAAmB,EAAE;AAChC,IAAI,mBAAmB,CAAC,mBAAmB,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,GAAG,OAAO;AACnE,IAAI,mBAAmB,CAAC,mBAAmB,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,GAAG,UAAU;AACzE,IAAI,mBAAmB,CAAC,mBAAmB,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,GAAG,aAAa;AAC/E,IAAI,mBAAmB,CAAC,mBAAmB,CAAC,iBAAiB,CAAC,GAAG,CAAC,CAAC,GAAG,iBAAiB;AACvF,CAAC,EAAE,mBAAmB,KAAK,mBAAmB,GAAG,EAAE,CAAC,CAAC;AACrD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS,cAAc,CAAC,SAAS,EAAE;AACnC,IAAI,QAAQ,CAAC,SAAS,CAAC,OAAO,CAAC,QAAQ,CAAC;AACxC,QAAQ,CAAC,SAAS,CAAC,OAAO,CAAC,MAAM,CAAC;AAClC,QAAQ,CAAC,SAAS,CAAC,OAAO,CAAC,OAAO,CAAC;AACnC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAAS,oBAAoB,CAAC,IAAI,EAAE,YAAY,EAAE,UAAU,EAAE,WAAW,EAAE;AAClF,IAAI,IAAI,WAAW;AACnB,IAAI,IAAI,wBAAwB,GAAG,EAAE;AACrC,IAAI,KAAK,MAAM,GAAG,IAAI,IAAI,EAAE;AAC5B,QAAQ,MAAM,SAAS,GAAG,YAAY,CAAC,GAAG,CAAC;AAC3C,QAAQ,IAAI,cAAc,CAAC,SAAS,CAAC,EAAE;AACvC,YAAY,IAAI,SAAS,CAAC,OAAO,CAAC,OAAO,CAAC;AAC1C,gBAAgB,wBAAwB,GAAG,mBAAmB,CAAC,eAAe,EAAE;AAChF,gBAAgB,WAAW,GAAG,GAAG;AACjC,gBAAgB,wBAAwB,GAAG,mBAAmB,CAAC,eAAe;AAC9E,YAAY;AACZ,iBAAiB,IAAI,WAAW,EAAE,SAAS,CAAC,GAAG,CAAC;AAChD,gBAAgB,wBAAwB,GAAG,mBAAmB,CAAC,WAAW,EAAE;AAC5E,gBAAgB,WAAW,GAAG,GAAG;AACjC,gBAAgB,wBAAwB,GAAG,mBAAmB,CAAC,WAAW;AAC1E,YAAY;AACZ,iBAAiB,IAAI,UAAU,CAAC,GAAG,CAAC,IAAI,CAAC;AACzC,gBAAgB,wBAAwB,GAAG,mBAAmB,CAAC,QAAQ,EAAE;AACzE,gBAAgB,WAAW,GAAG,GAAG;AACjC,gBAAgB,wBAAwB,GAAG,mBAAmB,CAAC,QAAQ;AACvE,YAAY;AACZ,iBAAiB,IAAI,SAAS,CAAC,OAAO,CAAC,KAAK,CAAC;AAC7C,gBAAgB,wBAAwB,GAAG,mBAAmB,CAAC,KAAK,EAAE;AACtE,gBAAgB,WAAW,GAAG,GAAG;AACjC,gBAAgB,wBAAwB,GAAG,mBAAmB,CAAC,KAAK;AACpE,YAAY;AACZ,QAAQ;AACR,IAAI;AACJ,IAAI,IAAI,CAAC,WAAW,EAAE;AACtB;AACA,QAAQ,WAAW,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,KAAK,cAAc,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC,CAAC;AAC3E,IAAI;AACJ,IAAI,OAAO,WAAW;AACtB;;;;","x_google_ignoreList":[0]}
@@ -1,96 +0,0 @@
1
- import { DayFlag } from '../UI.js';
2
- import { dateMatchModifiers } from '../utils/dateMatchModifiers.js';
3
-
4
- /**
5
- * Creates a function to retrieve the modifiers for a given day.
6
- *
7
- * This function calculates both internal and custom modifiers for each day
8
- * based on the provided calendar days and DayPicker props.
9
- *
10
- * @private
11
- * @param days The array of `CalendarDay` objects to process.
12
- * @param props The DayPicker props, including modifiers and configuration
13
- * options.
14
- * @param dateLib The date library to use for date manipulation.
15
- * @returns A function that retrieves the modifiers for a given `CalendarDay`.
16
- */
17
- function createGetModifiers(days, props, navStart, navEnd, dateLib) {
18
- const { disabled, hidden, modifiers, showOutsideDays, broadcastCalendar, today = dateLib.today(), } = props;
19
- const { isSameDay, isSameMonth, startOfMonth, isBefore, endOfMonth, isAfter, } = dateLib;
20
- const computedNavStart = navStart && startOfMonth(navStart);
21
- const computedNavEnd = navEnd && endOfMonth(navEnd);
22
- const internalModifiersMap = {
23
- [DayFlag.focused]: [],
24
- [DayFlag.outside]: [],
25
- [DayFlag.disabled]: [],
26
- [DayFlag.hidden]: [],
27
- [DayFlag.today]: [],
28
- };
29
- const customModifiersMap = {};
30
- for (const day of days) {
31
- const { date, displayMonth } = day;
32
- const isOutside = Boolean(displayMonth && !isSameMonth(date, displayMonth));
33
- const isBeforeNavStart = Boolean(computedNavStart && isBefore(date, computedNavStart));
34
- const isAfterNavEnd = Boolean(computedNavEnd && isAfter(date, computedNavEnd));
35
- const isDisabled = Boolean(disabled && dateMatchModifiers(date, disabled, dateLib));
36
- const isHidden = Boolean(hidden && dateMatchModifiers(date, hidden, dateLib)) ||
37
- isBeforeNavStart ||
38
- isAfterNavEnd ||
39
- // Broadcast calendar will show outside days as default
40
- (!broadcastCalendar && !showOutsideDays && isOutside) ||
41
- (broadcastCalendar && showOutsideDays === false && isOutside);
42
- const isToday = isSameDay(date, today);
43
- if (isOutside)
44
- internalModifiersMap.outside.push(day);
45
- if (isDisabled)
46
- internalModifiersMap.disabled.push(day);
47
- if (isHidden)
48
- internalModifiersMap.hidden.push(day);
49
- if (isToday)
50
- internalModifiersMap.today.push(day);
51
- // Add custom modifiers
52
- if (modifiers) {
53
- Object.keys(modifiers).forEach((name) => {
54
- const modifierValue = modifiers?.[name];
55
- const isMatch = modifierValue
56
- ? dateMatchModifiers(date, modifierValue, dateLib)
57
- : false;
58
- if (!isMatch)
59
- return;
60
- if (customModifiersMap[name]) {
61
- customModifiersMap[name].push(day);
62
- }
63
- else {
64
- customModifiersMap[name] = [day];
65
- }
66
- });
67
- }
68
- }
69
- return (day) => {
70
- // Initialize all the modifiers to false
71
- const dayFlags = {
72
- [DayFlag.focused]: false,
73
- [DayFlag.disabled]: false,
74
- [DayFlag.hidden]: false,
75
- [DayFlag.outside]: false,
76
- [DayFlag.today]: false,
77
- };
78
- const customModifiers = {};
79
- // Find the modifiers for the given day
80
- for (const name in internalModifiersMap) {
81
- const days = internalModifiersMap[name];
82
- dayFlags[name] = days.some((d) => d === day);
83
- }
84
- for (const name in customModifiersMap) {
85
- customModifiers[name] = customModifiersMap[name].some((d) => d === day);
86
- }
87
- return {
88
- ...dayFlags,
89
- // custom modifiers should override all the previous ones
90
- ...customModifiers,
91
- };
92
- };
93
- }
94
-
95
- export { createGetModifiers };
96
- //# sourceMappingURL=createGetModifiers.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"createGetModifiers.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/helpers/createGetModifiers.js"],"sourcesContent":["import { DayFlag } from \"../UI.js\";\nimport { dateMatchModifiers } from \"../utils/dateMatchModifiers.js\";\n/**\n * Creates a function to retrieve the modifiers for a given day.\n *\n * This function calculates both internal and custom modifiers for each day\n * based on the provided calendar days and DayPicker props.\n *\n * @private\n * @param days The array of `CalendarDay` objects to process.\n * @param props The DayPicker props, including modifiers and configuration\n * options.\n * @param dateLib The date library to use for date manipulation.\n * @returns A function that retrieves the modifiers for a given `CalendarDay`.\n */\nexport function createGetModifiers(days, props, navStart, navEnd, dateLib) {\n const { disabled, hidden, modifiers, showOutsideDays, broadcastCalendar, today = dateLib.today(), } = props;\n const { isSameDay, isSameMonth, startOfMonth, isBefore, endOfMonth, isAfter, } = dateLib;\n const computedNavStart = navStart && startOfMonth(navStart);\n const computedNavEnd = navEnd && endOfMonth(navEnd);\n const internalModifiersMap = {\n [DayFlag.focused]: [],\n [DayFlag.outside]: [],\n [DayFlag.disabled]: [],\n [DayFlag.hidden]: [],\n [DayFlag.today]: [],\n };\n const customModifiersMap = {};\n for (const day of days) {\n const { date, displayMonth } = day;\n const isOutside = Boolean(displayMonth && !isSameMonth(date, displayMonth));\n const isBeforeNavStart = Boolean(computedNavStart && isBefore(date, computedNavStart));\n const isAfterNavEnd = Boolean(computedNavEnd && isAfter(date, computedNavEnd));\n const isDisabled = Boolean(disabled && dateMatchModifiers(date, disabled, dateLib));\n const isHidden = Boolean(hidden && dateMatchModifiers(date, hidden, dateLib)) ||\n isBeforeNavStart ||\n isAfterNavEnd ||\n // Broadcast calendar will show outside days as default\n (!broadcastCalendar && !showOutsideDays && isOutside) ||\n (broadcastCalendar && showOutsideDays === false && isOutside);\n const isToday = isSameDay(date, today);\n if (isOutside)\n internalModifiersMap.outside.push(day);\n if (isDisabled)\n internalModifiersMap.disabled.push(day);\n if (isHidden)\n internalModifiersMap.hidden.push(day);\n if (isToday)\n internalModifiersMap.today.push(day);\n // Add custom modifiers\n if (modifiers) {\n Object.keys(modifiers).forEach((name) => {\n const modifierValue = modifiers?.[name];\n const isMatch = modifierValue\n ? dateMatchModifiers(date, modifierValue, dateLib)\n : false;\n if (!isMatch)\n return;\n if (customModifiersMap[name]) {\n customModifiersMap[name].push(day);\n }\n else {\n customModifiersMap[name] = [day];\n }\n });\n }\n }\n return (day) => {\n // Initialize all the modifiers to false\n const dayFlags = {\n [DayFlag.focused]: false,\n [DayFlag.disabled]: false,\n [DayFlag.hidden]: false,\n [DayFlag.outside]: false,\n [DayFlag.today]: false,\n };\n const customModifiers = {};\n // Find the modifiers for the given day\n for (const name in internalModifiersMap) {\n const days = internalModifiersMap[name];\n dayFlags[name] = days.some((d) => d === day);\n }\n for (const name in customModifiersMap) {\n customModifiers[name] = customModifiersMap[name].some((d) => d === day);\n }\n return {\n ...dayFlags,\n // custom modifiers should override all the previous ones\n ...customModifiers,\n };\n };\n}\n"],"names":[],"mappings":";;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAAS,kBAAkB,CAAC,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE;AAC3E,IAAI,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,eAAe,EAAE,iBAAiB,EAAE,KAAK,GAAG,OAAO,CAAC,KAAK,EAAE,GAAG,GAAG,KAAK;AAC/G,IAAI,MAAM,EAAE,SAAS,EAAE,WAAW,EAAE,YAAY,EAAE,QAAQ,EAAE,UAAU,EAAE,OAAO,GAAG,GAAG,OAAO;AAC5F,IAAI,MAAM,gBAAgB,GAAG,QAAQ,IAAI,YAAY,CAAC,QAAQ,CAAC;AAC/D,IAAI,MAAM,cAAc,GAAG,MAAM,IAAI,UAAU,CAAC,MAAM,CAAC;AACvD,IAAI,MAAM,oBAAoB,GAAG;AACjC,QAAQ,CAAC,OAAO,CAAC,OAAO,GAAG,EAAE;AAC7B,QAAQ,CAAC,OAAO,CAAC,OAAO,GAAG,EAAE;AAC7B,QAAQ,CAAC,OAAO,CAAC,QAAQ,GAAG,EAAE;AAC9B,QAAQ,CAAC,OAAO,CAAC,MAAM,GAAG,EAAE;AAC5B,QAAQ,CAAC,OAAO,CAAC,KAAK,GAAG,EAAE;AAC3B,KAAK;AACL,IAAI,MAAM,kBAAkB,GAAG,EAAE;AACjC,IAAI,KAAK,MAAM,GAAG,IAAI,IAAI,EAAE;AAC5B,QAAQ,MAAM,EAAE,IAAI,EAAE,YAAY,EAAE,GAAG,GAAG;AAC1C,QAAQ,MAAM,SAAS,GAAG,OAAO,CAAC,YAAY,IAAI,CAAC,WAAW,CAAC,IAAI,EAAE,YAAY,CAAC,CAAC;AACnF,QAAQ,MAAM,gBAAgB,GAAG,OAAO,CAAC,gBAAgB,IAAI,QAAQ,CAAC,IAAI,EAAE,gBAAgB,CAAC,CAAC;AAC9F,QAAQ,MAAM,aAAa,GAAG,OAAO,CAAC,cAAc,IAAI,OAAO,CAAC,IAAI,EAAE,cAAc,CAAC,CAAC;AACtF,QAAQ,MAAM,UAAU,GAAG,OAAO,CAAC,QAAQ,IAAI,kBAAkB,CAAC,IAAI,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC;AAC3F,QAAQ,MAAM,QAAQ,GAAG,OAAO,CAAC,MAAM,IAAI,kBAAkB,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC;AACrF,YAAY,gBAAgB;AAC5B,YAAY,aAAa;AACzB;AACA,aAAa,CAAC,iBAAiB,IAAI,CAAC,eAAe,IAAI,SAAS,CAAC;AACjE,aAAa,iBAAiB,IAAI,eAAe,KAAK,KAAK,IAAI,SAAS,CAAC;AACzE,QAAQ,MAAM,OAAO,GAAG,SAAS,CAAC,IAAI,EAAE,KAAK,CAAC;AAC9C,QAAQ,IAAI,SAAS;AACrB,YAAY,oBAAoB,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC;AAClD,QAAQ,IAAI,UAAU;AACtB,YAAY,oBAAoB,CAAC,QAAQ,CAAC,IAAI,CAAC,GAAG,CAAC;AACnD,QAAQ,IAAI,QAAQ;AACpB,YAAY,oBAAoB,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC;AACjD,QAAQ,IAAI,OAAO;AACnB,YAAY,oBAAoB,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC;AAChD;AACA,QAAQ,IAAI,SAAS,EAAE;AACvB,YAAY,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,OAAO,CAAC,CAAC,IAAI,KAAK;AACrD,gBAAgB,MAAM,aAAa,GAAG,SAAS,GAAG,IAAI,CAAC;AACvD,gBAAgB,MAAM,OAAO,GAAG;AAChC,sBAAsB,kBAAkB,CAAC,IAAI,EAAE,aAAa,EAAE,OAAO;AACrE,sBAAsB,KAAK;AAC3B,gBAAgB,IAAI,CAAC,OAAO;AAC5B,oBAAoB;AACpB,gBAAgB,IAAI,kBAAkB,CAAC,IAAI,CAAC,EAAE;AAC9C,oBAAoB,kBAAkB,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC;AACtD,gBAAgB;AAChB,qBAAqB;AACrB,oBAAoB,kBAAkB,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC;AACpD,gBAAgB;AAChB,YAAY,CAAC,CAAC;AACd,QAAQ;AACR,IAAI;AACJ,IAAI,OAAO,CAAC,GAAG,KAAK;AACpB;AACA,QAAQ,MAAM,QAAQ,GAAG;AACzB,YAAY,CAAC,OAAO,CAAC,OAAO,GAAG,KAAK;AACpC,YAAY,CAAC,OAAO,CAAC,QAAQ,GAAG,KAAK;AACrC,YAAY,CAAC,OAAO,CAAC,MAAM,GAAG,KAAK;AACnC,YAAY,CAAC,OAAO,CAAC,OAAO,GAAG,KAAK;AACpC,YAAY,CAAC,OAAO,CAAC,KAAK,GAAG,KAAK;AAClC,SAAS;AACT,QAAQ,MAAM,eAAe,GAAG,EAAE;AAClC;AACA,QAAQ,KAAK,MAAM,IAAI,IAAI,oBAAoB,EAAE;AACjD,YAAY,MAAM,IAAI,GAAG,oBAAoB,CAAC,IAAI,CAAC;AACnD,YAAY,QAAQ,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,GAAG,CAAC;AACxD,QAAQ;AACR,QAAQ,KAAK,MAAM,IAAI,IAAI,kBAAkB,EAAE;AAC/C,YAAY,eAAe,CAAC,IAAI,CAAC,GAAG,kBAAkB,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,GAAG,CAAC;AACnF,QAAQ;AACR,QAAQ,OAAO;AACf,YAAY,GAAG,QAAQ;AACvB;AACA,YAAY,GAAG,eAAe;AAC9B,SAAS;AACT,IAAI,CAAC;AACL;;;;","x_google_ignoreList":[0]}
@@ -1,23 +0,0 @@
1
- import { getBroadcastWeeksInMonth } from './getBroadcastWeeksInMonth.js';
2
- import { startOfBroadcastWeek } from './startOfBroadcastWeek.js';
3
-
4
- /**
5
- * Returns the end date of the week in the broadcast calendar.
6
- *
7
- * The broadcast week ends on the last day of the last broadcast week for the
8
- * given date.
9
- *
10
- * @since 9.4.0
11
- * @param date The date for which to calculate the end of the broadcast week.
12
- * @param dateLib The date library to use for date manipulation.
13
- * @returns The end date of the broadcast week.
14
- */
15
- function endOfBroadcastWeek(date, dateLib) {
16
- const startDate = startOfBroadcastWeek(date, dateLib);
17
- const numberOfWeeks = getBroadcastWeeksInMonth(date, dateLib);
18
- const endDate = dateLib.addDays(startDate, numberOfWeeks * 7 - 1);
19
- return endDate;
20
- }
21
-
22
- export { endOfBroadcastWeek };
23
- //# sourceMappingURL=endOfBroadcastWeek.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"endOfBroadcastWeek.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/helpers/endOfBroadcastWeek.js"],"sourcesContent":["import { getBroadcastWeeksInMonth } from \"./getBroadcastWeeksInMonth.js\";\nimport { startOfBroadcastWeek } from \"./startOfBroadcastWeek.js\";\n/**\n * Returns the end date of the week in the broadcast calendar.\n *\n * The broadcast week ends on the last day of the last broadcast week for the\n * given date.\n *\n * @since 9.4.0\n * @param date The date for which to calculate the end of the broadcast week.\n * @param dateLib The date library to use for date manipulation.\n * @returns The end date of the broadcast week.\n */\nexport function endOfBroadcastWeek(date, dateLib) {\n const startDate = startOfBroadcastWeek(date, dateLib);\n const numberOfWeeks = getBroadcastWeeksInMonth(date, dateLib);\n const endDate = dateLib.addDays(startDate, numberOfWeeks * 7 - 1);\n return endDate;\n}\n"],"names":[],"mappings":";;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAAS,kBAAkB,CAAC,IAAI,EAAE,OAAO,EAAE;AAClD,IAAI,MAAM,SAAS,GAAG,oBAAoB,CAAC,IAAI,EAAE,OAAO,CAAC;AACzD,IAAI,MAAM,aAAa,GAAG,wBAAwB,CAAC,IAAI,EAAE,OAAO,CAAC;AACjE,IAAI,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,SAAS,EAAE,aAAa,GAAG,CAAC,GAAG,CAAC,CAAC;AACrE,IAAI,OAAO,OAAO;AAClB;;;;","x_google_ignoreList":[0]}
@@ -1,29 +0,0 @@
1
- const FIVE_WEEKS = 5;
2
- const FOUR_WEEKS = 4;
3
- /**
4
- * Returns the number of weeks to display in the broadcast calendar for a given
5
- * month.
6
- *
7
- * The broadcast calendar may have either 4 or 5 weeks in a month, depending on
8
- * the start and end dates of the broadcast weeks.
9
- *
10
- * @since 9.4.0
11
- * @param month The month for which to calculate the number of weeks.
12
- * @param dateLib The date library to use for date manipulation.
13
- * @returns The number of weeks in the broadcast calendar (4 or 5).
14
- */
15
- function getBroadcastWeeksInMonth(month, dateLib) {
16
- // Get the first day of the month
17
- const firstDayOfMonth = dateLib.startOfMonth(month);
18
- // Get the day of the week for the first day of the month (1-7, where 1 is Monday)
19
- const firstDayOfWeek = firstDayOfMonth.getDay() > 0 ? firstDayOfMonth.getDay() : 7;
20
- const broadcastStartDate = dateLib.addDays(month, -firstDayOfWeek + 1);
21
- const lastDateOfLastWeek = dateLib.addDays(broadcastStartDate, FIVE_WEEKS * 7 - 1);
22
- const numberOfWeeks = dateLib.getMonth(month) === dateLib.getMonth(lastDateOfLastWeek)
23
- ? FIVE_WEEKS
24
- : FOUR_WEEKS;
25
- return numberOfWeeks;
26
- }
27
-
28
- export { getBroadcastWeeksInMonth };
29
- //# sourceMappingURL=getBroadcastWeeksInMonth.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getBroadcastWeeksInMonth.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/helpers/getBroadcastWeeksInMonth.js"],"sourcesContent":["const FIVE_WEEKS = 5;\nconst FOUR_WEEKS = 4;\n/**\n * Returns the number of weeks to display in the broadcast calendar for a given\n * month.\n *\n * The broadcast calendar may have either 4 or 5 weeks in a month, depending on\n * the start and end dates of the broadcast weeks.\n *\n * @since 9.4.0\n * @param month The month for which to calculate the number of weeks.\n * @param dateLib The date library to use for date manipulation.\n * @returns The number of weeks in the broadcast calendar (4 or 5).\n */\nexport function getBroadcastWeeksInMonth(month, dateLib) {\n // Get the first day of the month\n const firstDayOfMonth = dateLib.startOfMonth(month);\n // Get the day of the week for the first day of the month (1-7, where 1 is Monday)\n const firstDayOfWeek = firstDayOfMonth.getDay() > 0 ? firstDayOfMonth.getDay() : 7;\n const broadcastStartDate = dateLib.addDays(month, -firstDayOfWeek + 1);\n const lastDateOfLastWeek = dateLib.addDays(broadcastStartDate, FIVE_WEEKS * 7 - 1);\n const numberOfWeeks = dateLib.getMonth(month) === dateLib.getMonth(lastDateOfLastWeek)\n ? FIVE_WEEKS\n : FOUR_WEEKS;\n return numberOfWeeks;\n}\n"],"names":[],"mappings":"AAAA,MAAM,UAAU,GAAG,CAAC;AACpB,MAAM,UAAU,GAAG,CAAC;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAAS,wBAAwB,CAAC,KAAK,EAAE,OAAO,EAAE;AACzD;AACA,IAAI,MAAM,eAAe,GAAG,OAAO,CAAC,YAAY,CAAC,KAAK,CAAC;AACvD;AACA,IAAI,MAAM,cAAc,GAAG,eAAe,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,eAAe,CAAC,MAAM,EAAE,GAAG,CAAC;AACtF,IAAI,MAAM,kBAAkB,GAAG,OAAO,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC,cAAc,GAAG,CAAC,CAAC;AAC1E,IAAI,MAAM,kBAAkB,GAAG,OAAO,CAAC,OAAO,CAAC,kBAAkB,EAAE,UAAU,GAAG,CAAC,GAAG,CAAC,CAAC;AACtF,IAAI,MAAM,aAAa,GAAG,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,KAAK,OAAO,CAAC,QAAQ,CAAC,kBAAkB;AACzF,UAAU;AACV,UAAU,UAAU;AACpB,IAAI,OAAO,aAAa;AACxB;;;;","x_google_ignoreList":[0]}
@@ -1,34 +0,0 @@
1
- import { DayFlag, SelectionState, UI } from '../UI.js';
2
-
3
- /**
4
- * Returns the class names for a day based on its modifiers.
5
- *
6
- * This function combines the base class name for the day with any class names
7
- * associated with active modifiers.
8
- *
9
- * @param modifiers The modifiers applied to the day.
10
- * @param classNames The base class names for the calendar elements.
11
- * @param modifiersClassNames The class names associated with specific
12
- * modifiers.
13
- * @returns An array of class names for the day.
14
- */
15
- function getClassNamesForModifiers(modifiers, classNames, modifiersClassNames = {}) {
16
- const modifierClassNames = Object.entries(modifiers)
17
- .filter(([, active]) => active === true)
18
- .reduce((previousValue, [key]) => {
19
- if (modifiersClassNames[key]) {
20
- previousValue.push(modifiersClassNames[key]);
21
- }
22
- else if (classNames[DayFlag[key]]) {
23
- previousValue.push(classNames[DayFlag[key]]);
24
- }
25
- else if (classNames[SelectionState[key]]) {
26
- previousValue.push(classNames[SelectionState[key]]);
27
- }
28
- return previousValue;
29
- }, [classNames[UI.Day]]);
30
- return modifierClassNames;
31
- }
32
-
33
- export { getClassNamesForModifiers };
34
- //# sourceMappingURL=getClassNamesForModifiers.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getClassNamesForModifiers.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/helpers/getClassNamesForModifiers.js"],"sourcesContent":["import { DayFlag, SelectionState, UI } from \"../UI.js\";\n/**\n * Returns the class names for a day based on its modifiers.\n *\n * This function combines the base class name for the day with any class names\n * associated with active modifiers.\n *\n * @param modifiers The modifiers applied to the day.\n * @param classNames The base class names for the calendar elements.\n * @param modifiersClassNames The class names associated with specific\n * modifiers.\n * @returns An array of class names for the day.\n */\nexport function getClassNamesForModifiers(modifiers, classNames, modifiersClassNames = {}) {\n const modifierClassNames = Object.entries(modifiers)\n .filter(([, active]) => active === true)\n .reduce((previousValue, [key]) => {\n if (modifiersClassNames[key]) {\n previousValue.push(modifiersClassNames[key]);\n }\n else if (classNames[DayFlag[key]]) {\n previousValue.push(classNames[DayFlag[key]]);\n }\n else if (classNames[SelectionState[key]]) {\n previousValue.push(classNames[SelectionState[key]]);\n }\n return previousValue;\n }, [classNames[UI.Day]]);\n return modifierClassNames;\n}\n"],"names":[],"mappings":";;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAAS,yBAAyB,CAAC,SAAS,EAAE,UAAU,EAAE,mBAAmB,GAAG,EAAE,EAAE;AAC3F,IAAI,MAAM,kBAAkB,GAAG,MAAM,CAAC,OAAO,CAAC,SAAS;AACvD,SAAS,MAAM,CAAC,CAAC,GAAG,MAAM,CAAC,KAAK,MAAM,KAAK,IAAI;AAC/C,SAAS,MAAM,CAAC,CAAC,aAAa,EAAE,CAAC,GAAG,CAAC,KAAK;AAC1C,QAAQ,IAAI,mBAAmB,CAAC,GAAG,CAAC,EAAE;AACtC,YAAY,aAAa,CAAC,IAAI,CAAC,mBAAmB,CAAC,GAAG,CAAC,CAAC;AACxD,QAAQ;AACR,aAAa,IAAI,UAAU,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE;AAC3C,YAAY,aAAa,CAAC,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC;AACxD,QAAQ;AACR,aAAa,IAAI,UAAU,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC,EAAE;AAClD,YAAY,aAAa,CAAC,IAAI,CAAC,UAAU,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC,CAAC;AAC/D,QAAQ;AACR,QAAQ,OAAO,aAAa;AAC5B,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;AAC5B,IAAI,OAAO,kBAAkB;AAC7B;;;;","x_google_ignoreList":[0]}
@@ -1,21 +0,0 @@
1
- import * as customComponents from '../components/custom-components.js';
2
-
3
- /**
4
- * Merges custom components from the props with the default components.
5
- *
6
- * This function ensures that any custom components provided in the props
7
- * override the default components.
8
- *
9
- * @param customComponents The custom components provided in the DayPicker
10
- * props.
11
- * @returns An object containing the merged components.
12
- */
13
- function getComponents(customComponents$1) {
14
- return {
15
- ...customComponents,
16
- ...customComponents$1,
17
- };
18
- }
19
-
20
- export { getComponents };
21
- //# sourceMappingURL=getComponents.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getComponents.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/helpers/getComponents.js"],"sourcesContent":["import * as components from \"../components/custom-components.js\";\n/**\n * Merges custom components from the props with the default components.\n *\n * This function ensures that any custom components provided in the props\n * override the default components.\n *\n * @param customComponents The custom components provided in the DayPicker\n * props.\n * @returns An object containing the merged components.\n */\nexport function getComponents(customComponents) {\n return {\n ...components,\n ...customComponents,\n };\n}\n"],"names":["customComponents","components"],"mappings":";;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAAS,aAAa,CAACA,kBAAgB,EAAE;AAChD,IAAI,OAAO;AACX,QAAQ,GAAGC,gBAAU;AACrB,QAAQ,GAAGD,kBAAgB;AAC3B,KAAK;AACL;;;;","x_google_ignoreList":[0]}
@@ -1,28 +0,0 @@
1
- /**
2
- * Extracts `data-` attributes from the DayPicker props.
3
- *
4
- * This function collects all `data-` attributes from the props and adds
5
- * additional attributes based on the DayPicker configuration.
6
- *
7
- * @param props The DayPicker props.
8
- * @returns An object containing the `data-` attributes.
9
- */
10
- function getDataAttributes(props) {
11
- const dataAttributes = {
12
- "data-mode": props.mode ?? undefined,
13
- "data-required": "required" in props ? props.required : undefined,
14
- "data-multiple-months": (props.numberOfMonths && props.numberOfMonths > 1) || undefined,
15
- "data-week-numbers": props.showWeekNumber || undefined,
16
- "data-broadcast-calendar": props.broadcastCalendar || undefined,
17
- "data-nav-layout": props.navLayout || undefined,
18
- };
19
- Object.entries(props).forEach(([key, val]) => {
20
- if (key.startsWith("data-")) {
21
- dataAttributes[key] = val;
22
- }
23
- });
24
- return dataAttributes;
25
- }
26
-
27
- export { getDataAttributes };
28
- //# sourceMappingURL=getDataAttributes.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getDataAttributes.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/helpers/getDataAttributes.js"],"sourcesContent":["/**\n * Extracts `data-` attributes from the DayPicker props.\n *\n * This function collects all `data-` attributes from the props and adds\n * additional attributes based on the DayPicker configuration.\n *\n * @param props The DayPicker props.\n * @returns An object containing the `data-` attributes.\n */\nexport function getDataAttributes(props) {\n const dataAttributes = {\n \"data-mode\": props.mode ?? undefined,\n \"data-required\": \"required\" in props ? props.required : undefined,\n \"data-multiple-months\": (props.numberOfMonths && props.numberOfMonths > 1) || undefined,\n \"data-week-numbers\": props.showWeekNumber || undefined,\n \"data-broadcast-calendar\": props.broadcastCalendar || undefined,\n \"data-nav-layout\": props.navLayout || undefined,\n };\n Object.entries(props).forEach(([key, val]) => {\n if (key.startsWith(\"data-\")) {\n dataAttributes[key] = val;\n }\n });\n return dataAttributes;\n}\n"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAAS,iBAAiB,CAAC,KAAK,EAAE;AACzC,IAAI,MAAM,cAAc,GAAG;AAC3B,QAAQ,WAAW,EAAE,KAAK,CAAC,IAAI,IAAI,SAAS;AAC5C,QAAQ,eAAe,EAAE,UAAU,IAAI,KAAK,GAAG,KAAK,CAAC,QAAQ,GAAG,SAAS;AACzE,QAAQ,sBAAsB,EAAE,CAAC,KAAK,CAAC,cAAc,IAAI,KAAK,CAAC,cAAc,GAAG,CAAC,KAAK,SAAS;AAC/F,QAAQ,mBAAmB,EAAE,KAAK,CAAC,cAAc,IAAI,SAAS;AAC9D,QAAQ,yBAAyB,EAAE,KAAK,CAAC,iBAAiB,IAAI,SAAS;AACvE,QAAQ,iBAAiB,EAAE,KAAK,CAAC,SAAS,IAAI,SAAS;AACvD,KAAK;AACL,IAAI,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,EAAE,GAAG,CAAC,KAAK;AAClD,QAAQ,IAAI,GAAG,CAAC,UAAU,CAAC,OAAO,CAAC,EAAE;AACrC,YAAY,cAAc,CAAC,GAAG,CAAC,GAAG,GAAG;AACrC,QAAQ;AACR,IAAI,CAAC,CAAC;AACN,IAAI,OAAO,cAAc;AACzB;;;;","x_google_ignoreList":[0]}
@@ -1,60 +0,0 @@
1
- /**
2
- * Returns all the dates to display in the calendar.
3
- *
4
- * This function calculates the range of dates to display based on the provided
5
- * display months, constraints, and calendar configuration.
6
- *
7
- * @param displayMonths The months to display in the calendar.
8
- * @param maxDate The maximum date to include in the range.
9
- * @param props The DayPicker props, including calendar configuration options.
10
- * @param dateLib The date library to use for date manipulation.
11
- * @returns An array of dates to display in the calendar.
12
- */
13
- function getDates(displayMonths, maxDate, props, dateLib) {
14
- const firstMonth = displayMonths[0];
15
- const lastMonth = displayMonths[displayMonths.length - 1];
16
- const { ISOWeek, fixedWeeks, broadcastCalendar } = props ?? {};
17
- const { addDays, differenceInCalendarDays, differenceInCalendarMonths, endOfBroadcastWeek, endOfISOWeek, endOfMonth, endOfWeek, isAfter, startOfBroadcastWeek, startOfISOWeek, startOfWeek, } = dateLib;
18
- const startWeekFirstDate = broadcastCalendar
19
- ? startOfBroadcastWeek(firstMonth, dateLib)
20
- : ISOWeek
21
- ? startOfISOWeek(firstMonth)
22
- : startOfWeek(firstMonth);
23
- const displayMonthsWeekEnd = broadcastCalendar
24
- ? endOfBroadcastWeek(lastMonth)
25
- : ISOWeek
26
- ? endOfISOWeek(endOfMonth(lastMonth))
27
- : endOfWeek(endOfMonth(lastMonth));
28
- // If maxDate is set, clamp the grid to the end of that week.
29
- const constraintWeekEnd = maxDate &&
30
- (broadcastCalendar
31
- ? endOfBroadcastWeek(maxDate)
32
- : ISOWeek
33
- ? endOfISOWeek(maxDate)
34
- : endOfWeek(maxDate));
35
- // Pick the earliest week end between the displayed months and the constraint.
36
- const gridEndDate = constraintWeekEnd && isAfter(displayMonthsWeekEnd, constraintWeekEnd)
37
- ? constraintWeekEnd
38
- : displayMonthsWeekEnd;
39
- const nOfDays = differenceInCalendarDays(gridEndDate, startWeekFirstDate);
40
- const nOfMonths = differenceInCalendarMonths(lastMonth, firstMonth) + 1;
41
- const dates = [];
42
- for (let i = 0; i <= nOfDays; i++) {
43
- const date = addDays(startWeekFirstDate, i);
44
- dates.push(date);
45
- }
46
- // If fixed weeks is enabled, add the extra dates to the array
47
- const nrOfDaysWithFixedWeeks = broadcastCalendar ? 35 : 42;
48
- const extraDates = nrOfDaysWithFixedWeeks * nOfMonths;
49
- if (fixedWeeks && dates.length < extraDates) {
50
- const daysToAdd = extraDates - dates.length;
51
- for (let i = 0; i < daysToAdd; i++) {
52
- const date = addDays(dates[dates.length - 1], 1);
53
- dates.push(date);
54
- }
55
- }
56
- return dates;
57
- }
58
-
59
- export { getDates };
60
- //# sourceMappingURL=getDates.js.map