@betterinternship/components 1.5.27 → 1.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (399) hide show
  1. package/README.md +26 -0
  2. package/dist/components/Accordion.d.ts +7 -0
  3. package/dist/components/Avatar.d.ts +6 -0
  4. package/dist/components/Badge.d.ts +21 -0
  5. package/dist/components/Button.js.map +1 -1
  6. package/dist/components/Calendar.d.ts +7 -0
  7. package/dist/components/Input.d.ts +3 -0
  8. package/dist/components/ui/accordion.d.ts +7 -0
  9. package/dist/components/ui/accordion.js +20 -0
  10. package/dist/components/ui/accordion.js.map +1 -0
  11. package/dist/components/ui/avatar.d.ts +6 -0
  12. package/dist/components/ui/avatar.js +16 -0
  13. package/dist/components/ui/avatar.js.map +1 -0
  14. package/dist/components/ui/badge.d.ts +22 -0
  15. package/dist/components/ui/badge.js +113 -0
  16. package/dist/components/ui/badge.js.map +1 -0
  17. package/dist/components/ui/button.d.ts +13 -0
  18. package/dist/components/ui/button.js +88 -0
  19. package/dist/components/ui/button.js.map +1 -0
  20. package/dist/components/ui/calendar.d.ts +7 -0
  21. package/dist/components/ui/calendar.js +51 -0
  22. package/dist/components/ui/calendar.js.map +1 -0
  23. package/dist/components/ui/card.d.ts +9 -0
  24. package/dist/components/ui/card.js +27 -0
  25. package/dist/components/ui/card.js.map +1 -0
  26. package/dist/components/ui/checkbox.d.ts +4 -0
  27. package/dist/components/ui/checkbox.js +11 -0
  28. package/dist/components/ui/checkbox.js.map +1 -0
  29. package/dist/components/ui/dialog.d.ts +18 -0
  30. package/dist/components/ui/dialog.js +41 -0
  31. package/dist/components/ui/dialog.js.map +1 -0
  32. package/dist/components/ui/icons.d.ts +10 -0
  33. package/dist/components/ui/icons.js +39 -0
  34. package/dist/components/ui/icons.js.map +1 -0
  35. package/dist/components/ui/input.d.ts +3 -0
  36. package/dist/components/ui/input.js +17 -0
  37. package/dist/components/ui/input.js.map +1 -0
  38. package/dist/components/ui/label.d.ts +4 -0
  39. package/dist/components/ui/label.js +10 -0
  40. package/dist/components/ui/label.js.map +1 -0
  41. package/dist/components/ui/popover.d.ts +7 -0
  42. package/dist/components/ui/popover.js +17 -0
  43. package/dist/components/ui/popover.js.map +1 -0
  44. package/dist/components/ui/separator.d.ts +4 -0
  45. package/dist/components/ui/separator.js +10 -0
  46. package/dist/components/ui/separator.js.map +1 -0
  47. package/dist/components/ui/skeleton.d.ts +2 -0
  48. package/dist/components/ui/skeleton.js +9 -0
  49. package/dist/components/ui/skeleton.js.map +1 -0
  50. package/dist/components/ui/switch.d.ts +4 -0
  51. package/dist/components/ui/switch.js +10 -0
  52. package/dist/components/ui/switch.js.map +1 -0
  53. package/dist/components/ui/table.d.ts +10 -0
  54. package/dist/components/ui/table.js +30 -0
  55. package/dist/components/ui/table.js.map +1 -0
  56. package/dist/components/ui/textarea.d.ts +3 -0
  57. package/dist/components/ui/textarea.js +9 -0
  58. package/dist/components/ui/textarea.js.map +1 -0
  59. package/dist/components/ui/tooltip.d.ts +9 -0
  60. package/dist/components/ui/tooltip.js +19 -0
  61. package/dist/components/ui/tooltip.js.map +1 -0
  62. package/dist/hooks/useClientProcess.js +0 -1
  63. package/dist/hooks/useClientProcess.js.map +1 -1
  64. package/dist/index.css.js +1 -1
  65. package/dist/index.d.ts +19 -1
  66. package/dist/index.esm.js +3761 -3761
  67. package/dist/index.js +19 -1
  68. package/dist/index.js.map +1 -1
  69. package/dist/node_modules/@date-fns/tz/date/index.js +84 -0
  70. package/dist/node_modules/@date-fns/tz/date/index.js.map +1 -0
  71. package/dist/node_modules/@date-fns/tz/date/mini.js +451 -0
  72. package/dist/node_modules/@date-fns/tz/date/mini.js.map +1 -0
  73. package/dist/node_modules/@date-fns/tz/tzName/index.js +40 -0
  74. package/dist/node_modules/@date-fns/tz/tzName/index.js.map +1 -0
  75. package/dist/node_modules/@date-fns/tz/tzOffset/index.js +57 -0
  76. package/dist/node_modules/@date-fns/tz/tzOffset/index.js.map +1 -0
  77. package/dist/node_modules/date-fns/_lib/addLeadingZeros.js +8 -0
  78. package/dist/node_modules/date-fns/_lib/addLeadingZeros.js.map +1 -0
  79. package/dist/node_modules/date-fns/_lib/defaultOptions.js +8 -0
  80. package/dist/node_modules/date-fns/_lib/defaultOptions.js.map +1 -0
  81. package/dist/node_modules/date-fns/_lib/format/formatters.js +776 -0
  82. package/dist/node_modules/date-fns/_lib/format/formatters.js.map +1 -0
  83. package/dist/node_modules/date-fns/_lib/format/lightFormatters.js +95 -0
  84. package/dist/node_modules/date-fns/_lib/format/lightFormatters.js.map +1 -0
  85. package/dist/node_modules/date-fns/_lib/format/longFormatters.js +67 -0
  86. package/dist/node_modules/date-fns/_lib/format/longFormatters.js.map +1 -0
  87. package/dist/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js +32 -0
  88. package/dist/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js.map +1 -0
  89. package/dist/node_modules/date-fns/_lib/normalizeDates.js +12 -0
  90. package/dist/node_modules/date-fns/_lib/normalizeDates.js.map +1 -0
  91. package/dist/node_modules/date-fns/_lib/normalizeInterval.js +9 -0
  92. package/dist/node_modules/date-fns/_lib/normalizeInterval.js.map +1 -0
  93. package/dist/node_modules/date-fns/_lib/protectedTokens.js +26 -0
  94. package/dist/node_modules/date-fns/_lib/protectedTokens.js.map +1 -0
  95. package/dist/node_modules/date-fns/addDays.js +61 -0
  96. package/dist/node_modules/date-fns/addDays.js.map +1 -0
  97. package/dist/node_modules/date-fns/addMonths.js +76 -0
  98. package/dist/node_modules/date-fns/addMonths.js.map +1 -0
  99. package/dist/node_modules/date-fns/addWeeks.js +34 -0
  100. package/dist/node_modules/date-fns/addWeeks.js.map +1 -0
  101. package/dist/node_modules/date-fns/addYears.js +34 -0
  102. package/dist/node_modules/date-fns/addYears.js.map +1 -0
  103. package/dist/node_modules/date-fns/constants.js +47 -0
  104. package/dist/node_modules/date-fns/constants.js.map +1 -0
  105. package/dist/node_modules/date-fns/constructFrom.js +50 -0
  106. package/dist/node_modules/date-fns/constructFrom.js.map +1 -0
  107. package/dist/node_modules/date-fns/differenceInCalendarDays.js +63 -0
  108. package/dist/node_modules/date-fns/differenceInCalendarDays.js.map +1 -0
  109. package/dist/node_modules/date-fns/differenceInCalendarMonths.js +43 -0
  110. package/dist/node_modules/date-fns/differenceInCalendarMonths.js.map +1 -0
  111. package/dist/node_modules/date-fns/eachMonthOfInterval.js +66 -0
  112. package/dist/node_modules/date-fns/eachMonthOfInterval.js.map +1 -0
  113. package/dist/node_modules/date-fns/eachYearOfInterval.js +66 -0
  114. package/dist/node_modules/date-fns/eachYearOfInterval.js.map +1 -0
  115. package/dist/node_modules/date-fns/endOfISOWeek.js +36 -0
  116. package/dist/node_modules/date-fns/endOfISOWeek.js.map +1 -0
  117. package/dist/node_modules/date-fns/endOfMonth.js +38 -0
  118. package/dist/node_modules/date-fns/endOfMonth.js.map +1 -0
  119. package/dist/node_modules/date-fns/endOfWeek.js +54 -0
  120. package/dist/node_modules/date-fns/endOfWeek.js.map +1 -0
  121. package/dist/node_modules/date-fns/endOfYear.js +38 -0
  122. package/dist/node_modules/date-fns/endOfYear.js.map +1 -0
  123. package/dist/node_modules/date-fns/format.js +424 -0
  124. package/dist/node_modules/date-fns/format.js.map +1 -0
  125. package/dist/node_modules/date-fns/getDayOfYear.js +35 -0
  126. package/dist/node_modules/date-fns/getDayOfYear.js.map +1 -0
  127. package/dist/node_modules/date-fns/getDaysInMonth.js +37 -0
  128. package/dist/node_modules/date-fns/getDaysInMonth.js.map +1 -0
  129. package/dist/node_modules/date-fns/getISOWeek.js +41 -0
  130. package/dist/node_modules/date-fns/getISOWeek.js.map +1 -0
  131. package/dist/node_modules/date-fns/getISOWeekYear.js +53 -0
  132. package/dist/node_modules/date-fns/getISOWeekYear.js.map +1 -0
  133. package/dist/node_modules/date-fns/getMonth.js +30 -0
  134. package/dist/node_modules/date-fns/getMonth.js.map +1 -0
  135. package/dist/node_modules/date-fns/getWeek.js +55 -0
  136. package/dist/node_modules/date-fns/getWeek.js.map +1 -0
  137. package/dist/node_modules/date-fns/getWeekYear.js +76 -0
  138. package/dist/node_modules/date-fns/getWeekYear.js.map +1 -0
  139. package/dist/node_modules/date-fns/getYear.js +30 -0
  140. package/dist/node_modules/date-fns/getYear.js.map +1 -0
  141. package/dist/node_modules/date-fns/isAfter.js +26 -0
  142. package/dist/node_modules/date-fns/isAfter.js.map +1 -0
  143. package/dist/node_modules/date-fns/isBefore.js +26 -0
  144. package/dist/node_modules/date-fns/isBefore.js.map +1 -0
  145. package/dist/node_modules/date-fns/isDate.js +42 -0
  146. package/dist/node_modules/date-fns/isDate.js.map +1 -0
  147. package/dist/node_modules/date-fns/isSameDay.js +47 -0
  148. package/dist/node_modules/date-fns/isSameDay.js.map +1 -0
  149. package/dist/node_modules/date-fns/isSameMonth.js +44 -0
  150. package/dist/node_modules/date-fns/isSameMonth.js.map +1 -0
  151. package/dist/node_modules/date-fns/isSameYear.js +36 -0
  152. package/dist/node_modules/date-fns/isSameYear.js.map +1 -0
  153. package/dist/node_modules/date-fns/isValid.js +40 -0
  154. package/dist/node_modules/date-fns/isValid.js.map +1 -0
  155. package/dist/node_modules/date-fns/locale/_lib/buildFormatLongFn.js +11 -0
  156. package/dist/node_modules/date-fns/locale/_lib/buildFormatLongFn.js.map +1 -0
  157. package/dist/node_modules/date-fns/locale/_lib/buildLocalizeFn.js +65 -0
  158. package/dist/node_modules/date-fns/locale/_lib/buildLocalizeFn.js.map +1 -0
  159. package/dist/node_modules/date-fns/locale/_lib/buildMatchFn.js +60 -0
  160. package/dist/node_modules/date-fns/locale/_lib/buildMatchFn.js.map +1 -0
  161. package/dist/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js +23 -0
  162. package/dist/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js.map +1 -0
  163. package/dist/node_modules/date-fns/locale/en-US/_lib/formatDistance.js +104 -0
  164. package/dist/node_modules/date-fns/locale/en-US/_lib/formatDistance.js.map +1 -0
  165. package/dist/node_modules/date-fns/locale/en-US/_lib/formatLong.js +42 -0
  166. package/dist/node_modules/date-fns/locale/en-US/_lib/formatLong.js.map +1 -0
  167. package/dist/node_modules/date-fns/locale/en-US/_lib/formatRelative.js +14 -0
  168. package/dist/node_modules/date-fns/locale/en-US/_lib/formatRelative.js.map +1 -0
  169. package/dist/node_modules/date-fns/locale/en-US/_lib/localize.js +190 -0
  170. package/dist/node_modules/date-fns/locale/en-US/_lib/localize.js.map +1 -0
  171. package/dist/node_modules/date-fns/locale/en-US/_lib/match.js +135 -0
  172. package/dist/node_modules/date-fns/locale/en-US/_lib/match.js.map +1 -0
  173. package/dist/node_modules/date-fns/locale/en-US.js +29 -0
  174. package/dist/node_modules/date-fns/locale/en-US.js.map +1 -0
  175. package/dist/node_modules/date-fns/max.js +50 -0
  176. package/dist/node_modules/date-fns/max.js.map +1 -0
  177. package/dist/node_modules/date-fns/min.js +50 -0
  178. package/dist/node_modules/date-fns/min.js.map +1 -0
  179. package/dist/node_modules/date-fns/setMonth.js +47 -0
  180. package/dist/node_modules/date-fns/setMonth.js.map +1 -0
  181. package/dist/node_modules/date-fns/setYear.js +41 -0
  182. package/dist/node_modules/date-fns/setYear.js.map +1 -0
  183. package/dist/node_modules/date-fns/startOfDay.js +36 -0
  184. package/dist/node_modules/date-fns/startOfDay.js.map +1 -0
  185. package/dist/node_modules/date-fns/startOfISOWeek.js +36 -0
  186. package/dist/node_modules/date-fns/startOfISOWeek.js.map +1 -0
  187. package/dist/node_modules/date-fns/startOfISOWeekYear.js +43 -0
  188. package/dist/node_modules/date-fns/startOfISOWeekYear.js.map +1 -0
  189. package/dist/node_modules/date-fns/startOfMonth.js +38 -0
  190. package/dist/node_modules/date-fns/startOfMonth.js.map +1 -0
  191. package/dist/node_modules/date-fns/startOfWeek.js +54 -0
  192. package/dist/node_modules/date-fns/startOfWeek.js.map +1 -0
  193. package/dist/node_modules/date-fns/startOfWeekYear.js +65 -0
  194. package/dist/node_modules/date-fns/startOfWeekYear.js.map +1 -0
  195. package/dist/node_modules/date-fns/startOfYear.js +37 -0
  196. package/dist/node_modules/date-fns/startOfYear.js.map +1 -0
  197. package/dist/node_modules/date-fns/toDate.js +47 -0
  198. package/dist/node_modules/date-fns/toDate.js.map +1 -0
  199. package/dist/node_modules/react/cjs/react-jsx-runtime.development.js +2 -2
  200. package/dist/node_modules/react/cjs/react-jsx-runtime.development.js.map +1 -1
  201. package/dist/node_modules/react-day-picker/dist/esm/DayPicker.js +347 -0
  202. package/dist/node_modules/react-day-picker/dist/esm/DayPicker.js.map +1 -0
  203. package/dist/node_modules/react-day-picker/dist/esm/UI.js +123 -0
  204. package/dist/node_modules/react-day-picker/dist/esm/UI.js.map +1 -0
  205. package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarDay.js +34 -0
  206. package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarDay.js.map +1 -0
  207. package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarMonth.js +15 -0
  208. package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarMonth.js.map +1 -0
  209. package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarWeek.js +14 -0
  210. package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarWeek.js.map +1 -0
  211. package/dist/node_modules/react-day-picker/dist/esm/classes/DateLib.js +600 -0
  212. package/dist/node_modules/react-day-picker/dist/esm/classes/DateLib.js.map +1 -0
  213. package/dist/node_modules/react-day-picker/dist/esm/components/CaptionLabel.js +14 -0
  214. package/dist/node_modules/react-day-picker/dist/esm/components/CaptionLabel.js.map +1 -0
  215. package/dist/node_modules/react-day-picker/dist/esm/components/Chevron.js +19 -0
  216. package/dist/node_modules/react-day-picker/dist/esm/components/Chevron.js.map +1 -0
  217. package/dist/node_modules/react-day-picker/dist/esm/components/Day.js +19 -0
  218. package/dist/node_modules/react-day-picker/dist/esm/components/Day.js.map +1 -0
  219. package/dist/node_modules/react-day-picker/dist/esm/components/DayButton.js +20 -0
  220. package/dist/node_modules/react-day-picker/dist/esm/components/DayButton.js.map +1 -0
  221. package/dist/node_modules/react-day-picker/dist/esm/components/Dropdown.js +24 -0
  222. package/dist/node_modules/react-day-picker/dist/esm/components/Dropdown.js.map +1 -0
  223. package/dist/node_modules/react-day-picker/dist/esm/components/DropdownNav.js +14 -0
  224. package/dist/node_modules/react-day-picker/dist/esm/components/DropdownNav.js.map +1 -0
  225. package/dist/node_modules/react-day-picker/dist/esm/components/Footer.js +14 -0
  226. package/dist/node_modules/react-day-picker/dist/esm/components/Footer.js.map +1 -0
  227. package/dist/node_modules/react-day-picker/dist/esm/components/Month.js +16 -0
  228. package/dist/node_modules/react-day-picker/dist/esm/components/Month.js.map +1 -0
  229. package/dist/node_modules/react-day-picker/dist/esm/components/MonthCaption.js +15 -0
  230. package/dist/node_modules/react-day-picker/dist/esm/components/MonthCaption.js.map +1 -0
  231. package/dist/node_modules/react-day-picker/dist/esm/components/MonthGrid.js +14 -0
  232. package/dist/node_modules/react-day-picker/dist/esm/components/MonthGrid.js.map +1 -0
  233. package/dist/node_modules/react-day-picker/dist/esm/components/Months.js +14 -0
  234. package/dist/node_modules/react-day-picker/dist/esm/components/Months.js.map +1 -0
  235. package/dist/node_modules/react-day-picker/dist/esm/components/MonthsDropdown.js +16 -0
  236. package/dist/node_modules/react-day-picker/dist/esm/components/MonthsDropdown.js.map +1 -0
  237. package/dist/node_modules/react-day-picker/dist/esm/components/Nav.js +32 -0
  238. package/dist/node_modules/react-day-picker/dist/esm/components/Nav.js.map +1 -0
  239. package/dist/node_modules/react-day-picker/dist/esm/components/NextMonthButton.js +14 -0
  240. package/dist/node_modules/react-day-picker/dist/esm/components/NextMonthButton.js.map +1 -0
  241. package/dist/node_modules/react-day-picker/dist/esm/components/Option.js +14 -0
  242. package/dist/node_modules/react-day-picker/dist/esm/components/Option.js.map +1 -0
  243. package/dist/node_modules/react-day-picker/dist/esm/components/PreviousMonthButton.js +14 -0
  244. package/dist/node_modules/react-day-picker/dist/esm/components/PreviousMonthButton.js.map +1 -0
  245. package/dist/node_modules/react-day-picker/dist/esm/components/Root.js +15 -0
  246. package/dist/node_modules/react-day-picker/dist/esm/components/Root.js.map +1 -0
  247. package/dist/node_modules/react-day-picker/dist/esm/components/Select.js +14 -0
  248. package/dist/node_modules/react-day-picker/dist/esm/components/Select.js.map +1 -0
  249. package/dist/node_modules/react-day-picker/dist/esm/components/Week.js +15 -0
  250. package/dist/node_modules/react-day-picker/dist/esm/components/Week.js.map +1 -0
  251. package/dist/node_modules/react-day-picker/dist/esm/components/WeekNumber.js +15 -0
  252. package/dist/node_modules/react-day-picker/dist/esm/components/WeekNumber.js.map +1 -0
  253. package/dist/node_modules/react-day-picker/dist/esm/components/WeekNumberHeader.js +14 -0
  254. package/dist/node_modules/react-day-picker/dist/esm/components/WeekNumberHeader.js.map +1 -0
  255. package/dist/node_modules/react-day-picker/dist/esm/components/Weekday.js +14 -0
  256. package/dist/node_modules/react-day-picker/dist/esm/components/Weekday.js.map +1 -0
  257. package/dist/node_modules/react-day-picker/dist/esm/components/Weekdays.js +15 -0
  258. package/dist/node_modules/react-day-picker/dist/esm/components/Weekdays.js.map +1 -0
  259. package/dist/node_modules/react-day-picker/dist/esm/components/Weeks.js +14 -0
  260. package/dist/node_modules/react-day-picker/dist/esm/components/Weeks.js.map +1 -0
  261. package/dist/node_modules/react-day-picker/dist/esm/components/YearsDropdown.js +16 -0
  262. package/dist/node_modules/react-day-picker/dist/esm/components/YearsDropdown.js.map +1 -0
  263. package/dist/node_modules/react-day-picker/dist/esm/components/custom-components.js +26 -0
  264. package/dist/node_modules/react-day-picker/dist/esm/components/custom-components.js.map +1 -0
  265. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatCaption.js +21 -0
  266. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatCaption.js.map +1 -0
  267. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatDay.js +20 -0
  268. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatDay.js.map +1 -0
  269. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatMonthDropdown.js +19 -0
  270. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatMonthDropdown.js.map +1 -0
  271. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumber.js +22 -0
  272. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumber.js.map +1 -0
  273. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumberHeader.js +14 -0
  274. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumberHeader.js.map +1 -0
  275. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekdayName.js +20 -0
  276. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekdayName.js.map +1 -0
  277. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatYearDropdown.js +18 -0
  278. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatYearDropdown.js.map +1 -0
  279. package/dist/node_modules/react-day-picker/dist/esm/formatters/index.js +8 -0
  280. package/dist/node_modules/react-day-picker/dist/esm/formatters/index.js.map +1 -0
  281. package/dist/node_modules/react-day-picker/dist/esm/helpers/calculateFocusTarget.js +74 -0
  282. package/dist/node_modules/react-day-picker/dist/esm/helpers/calculateFocusTarget.js.map +1 -0
  283. package/dist/node_modules/react-day-picker/dist/esm/helpers/createGetModifiers.js +96 -0
  284. package/dist/node_modules/react-day-picker/dist/esm/helpers/createGetModifiers.js.map +1 -0
  285. package/dist/node_modules/react-day-picker/dist/esm/helpers/endOfBroadcastWeek.js +23 -0
  286. package/dist/node_modules/react-day-picker/dist/esm/helpers/endOfBroadcastWeek.js.map +1 -0
  287. package/dist/node_modules/react-day-picker/dist/esm/helpers/getBroadcastWeeksInMonth.js +29 -0
  288. package/dist/node_modules/react-day-picker/dist/esm/helpers/getBroadcastWeeksInMonth.js.map +1 -0
  289. package/dist/node_modules/react-day-picker/dist/esm/helpers/getClassNamesForModifiers.js +34 -0
  290. package/dist/node_modules/react-day-picker/dist/esm/helpers/getClassNamesForModifiers.js.map +1 -0
  291. package/dist/node_modules/react-day-picker/dist/esm/helpers/getComponents.js +21 -0
  292. package/dist/node_modules/react-day-picker/dist/esm/helpers/getComponents.js.map +1 -0
  293. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDataAttributes.js +28 -0
  294. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDataAttributes.js.map +1 -0
  295. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDates.js +60 -0
  296. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDates.js.map +1 -0
  297. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDays.js +20 -0
  298. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDays.js.map +1 -0
  299. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDefaultClassNames.js +34 -0
  300. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDefaultClassNames.js.map +1 -0
  301. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDisplayMonths.js +25 -0
  302. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDisplayMonths.js.map +1 -0
  303. package/dist/node_modules/react-day-picker/dist/esm/helpers/getFocusableDate.js +47 -0
  304. package/dist/node_modules/react-day-picker/dist/esm/helpers/getFocusableDate.js.map +1 -0
  305. package/dist/node_modules/react-day-picker/dist/esm/helpers/getFormatters.js +18 -0
  306. package/dist/node_modules/react-day-picker/dist/esm/helpers/getFormatters.js.map +1 -0
  307. package/dist/node_modules/react-day-picker/dist/esm/helpers/getInitialMonth.js +28 -0
  308. package/dist/node_modules/react-day-picker/dist/esm/helpers/getInitialMonth.js.map +1 -0
  309. package/dist/node_modules/react-day-picker/dist/esm/helpers/getLabels.js +54 -0
  310. package/dist/node_modules/react-day-picker/dist/esm/helpers/getLabels.js.map +1 -0
  311. package/dist/node_modules/react-day-picker/dist/esm/helpers/getMonthOptions.js +34 -0
  312. package/dist/node_modules/react-day-picker/dist/esm/helpers/getMonthOptions.js.map +1 -0
  313. package/dist/node_modules/react-day-picker/dist/esm/helpers/getMonths.js +70 -0
  314. package/dist/node_modules/react-day-picker/dist/esm/helpers/getMonths.js.map +1 -0
  315. package/dist/node_modules/react-day-picker/dist/esm/helpers/getNavMonth.js +32 -0
  316. package/dist/node_modules/react-day-picker/dist/esm/helpers/getNavMonth.js.map +1 -0
  317. package/dist/node_modules/react-day-picker/dist/esm/helpers/getNextFocus.js +41 -0
  318. package/dist/node_modules/react-day-picker/dist/esm/helpers/getNextFocus.js.map +1 -0
  319. package/dist/node_modules/react-day-picker/dist/esm/helpers/getNextMonth.js +37 -0
  320. package/dist/node_modules/react-day-picker/dist/esm/helpers/getNextMonth.js.map +1 -0
  321. package/dist/node_modules/react-day-picker/dist/esm/helpers/getPreviousMonth.js +38 -0
  322. package/dist/node_modules/react-day-picker/dist/esm/helpers/getPreviousMonth.js.map +1 -0
  323. package/dist/node_modules/react-day-picker/dist/esm/helpers/getStyleForModifiers.js +28 -0
  324. package/dist/node_modules/react-day-picker/dist/esm/helpers/getStyleForModifiers.js.map +1 -0
  325. package/dist/node_modules/react-day-picker/dist/esm/helpers/getWeekdays.js +27 -0
  326. package/dist/node_modules/react-day-picker/dist/esm/helpers/getWeekdays.js.map +1 -0
  327. package/dist/node_modules/react-day-picker/dist/esm/helpers/getWeeks.js +15 -0
  328. package/dist/node_modules/react-day-picker/dist/esm/helpers/getWeeks.js.map +1 -0
  329. package/dist/node_modules/react-day-picker/dist/esm/helpers/getYearOptions.js +37 -0
  330. package/dist/node_modules/react-day-picker/dist/esm/helpers/getYearOptions.js.map +1 -0
  331. package/dist/node_modules/react-day-picker/dist/esm/helpers/startOfBroadcastWeek.js +28 -0
  332. package/dist/node_modules/react-day-picker/dist/esm/helpers/startOfBroadcastWeek.js.map +1 -0
  333. package/dist/node_modules/react-day-picker/dist/esm/helpers/useControlledValue.js +32 -0
  334. package/dist/node_modules/react-day-picker/dist/esm/helpers/useControlledValue.js.map +1 -0
  335. package/dist/node_modules/react-day-picker/dist/esm/labels/index.js +12 -0
  336. package/dist/node_modules/react-day-picker/dist/esm/labels/index.js.map +1 -0
  337. package/dist/node_modules/react-day-picker/dist/esm/labels/labelDayButton.js +28 -0
  338. package/dist/node_modules/react-day-picker/dist/esm/labels/labelDayButton.js.map +1 -0
  339. package/dist/node_modules/react-day-picker/dist/esm/labels/labelGrid.js +21 -0
  340. package/dist/node_modules/react-day-picker/dist/esm/labels/labelGrid.js.map +1 -0
  341. package/dist/node_modules/react-day-picker/dist/esm/labels/labelGridcell.js +23 -0
  342. package/dist/node_modules/react-day-picker/dist/esm/labels/labelGridcell.js.map +1 -0
  343. package/dist/node_modules/react-day-picker/dist/esm/labels/labelMonthDropdown.js +15 -0
  344. package/dist/node_modules/react-day-picker/dist/esm/labels/labelMonthDropdown.js.map +1 -0
  345. package/dist/node_modules/react-day-picker/dist/esm/labels/labelNav.js +14 -0
  346. package/dist/node_modules/react-day-picker/dist/esm/labels/labelNav.js.map +1 -0
  347. package/dist/node_modules/react-day-picker/dist/esm/labels/labelNext.js +17 -0
  348. package/dist/node_modules/react-day-picker/dist/esm/labels/labelNext.js.map +1 -0
  349. package/dist/node_modules/react-day-picker/dist/esm/labels/labelPrevious.js +16 -0
  350. package/dist/node_modules/react-day-picker/dist/esm/labels/labelPrevious.js.map +1 -0
  351. package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekNumber.js +16 -0
  352. package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekNumber.js.map +1 -0
  353. package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekNumberHeader.js +15 -0
  354. package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekNumberHeader.js.map +1 -0
  355. package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekday.js +19 -0
  356. package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekday.js.map +1 -0
  357. package/dist/node_modules/react-day-picker/dist/esm/labels/labelYearDropdown.js +15 -0
  358. package/dist/node_modules/react-day-picker/dist/esm/labels/labelYearDropdown.js.map +1 -0
  359. package/dist/node_modules/react-day-picker/dist/esm/locale/en-US.js +68 -0
  360. package/dist/node_modules/react-day-picker/dist/esm/locale/en-US.js.map +1 -0
  361. package/dist/node_modules/react-day-picker/dist/esm/noonDateLib.js +164 -0
  362. package/dist/node_modules/react-day-picker/dist/esm/noonDateLib.js.map +1 -0
  363. package/dist/node_modules/react-day-picker/dist/esm/selection/useMulti.js +58 -0
  364. package/dist/node_modules/react-day-picker/dist/esm/selection/useMulti.js.map +1 -0
  365. package/dist/node_modules/react-day-picker/dist/esm/selection/useRange.js +64 -0
  366. package/dist/node_modules/react-day-picker/dist/esm/selection/useRange.js.map +1 -0
  367. package/dist/node_modules/react-day-picker/dist/esm/selection/useSingle.js +45 -0
  368. package/dist/node_modules/react-day-picker/dist/esm/selection/useSingle.js.map +1 -0
  369. package/dist/node_modules/react-day-picker/dist/esm/useAnimation.js +174 -0
  370. package/dist/node_modules/react-day-picker/dist/esm/useAnimation.js.map +1 -0
  371. package/dist/node_modules/react-day-picker/dist/esm/useCalendar.js +114 -0
  372. package/dist/node_modules/react-day-picker/dist/esm/useCalendar.js.map +1 -0
  373. package/dist/node_modules/react-day-picker/dist/esm/useDayPicker.js +26 -0
  374. package/dist/node_modules/react-day-picker/dist/esm/useDayPicker.js.map +1 -0
  375. package/dist/node_modules/react-day-picker/dist/esm/useFocus.js +57 -0
  376. package/dist/node_modules/react-day-picker/dist/esm/useFocus.js.map +1 -0
  377. package/dist/node_modules/react-day-picker/dist/esm/useSelection.js +32 -0
  378. package/dist/node_modules/react-day-picker/dist/esm/useSelection.js.map +1 -0
  379. package/dist/node_modules/react-day-picker/dist/esm/utils/addToRange.js +96 -0
  380. package/dist/node_modules/react-day-picker/dist/esm/utils/addToRange.js.map +1 -0
  381. package/dist/node_modules/react-day-picker/dist/esm/utils/convertMatchersToTimeZone.js +62 -0
  382. package/dist/node_modules/react-day-picker/dist/esm/utils/convertMatchersToTimeZone.js.map +1 -0
  383. package/dist/node_modules/react-day-picker/dist/esm/utils/dateMatchModifiers.js +63 -0
  384. package/dist/node_modules/react-day-picker/dist/esm/utils/dateMatchModifiers.js.map +1 -0
  385. package/dist/node_modules/react-day-picker/dist/esm/utils/rangeContainsDayOfWeek.js +31 -0
  386. package/dist/node_modules/react-day-picker/dist/esm/utils/rangeContainsDayOfWeek.js.map +1 -0
  387. package/dist/node_modules/react-day-picker/dist/esm/utils/rangeContainsModifiers.js +75 -0
  388. package/dist/node_modules/react-day-picker/dist/esm/utils/rangeContainsModifiers.js.map +1 -0
  389. package/dist/node_modules/react-day-picker/dist/esm/utils/rangeIncludesDate.js +36 -0
  390. package/dist/node_modules/react-day-picker/dist/esm/utils/rangeIncludesDate.js.map +1 -0
  391. package/dist/node_modules/react-day-picker/dist/esm/utils/rangeOverlaps.js +22 -0
  392. package/dist/node_modules/react-day-picker/dist/esm/utils/rangeOverlaps.js.map +1 -0
  393. package/dist/node_modules/react-day-picker/dist/esm/utils/toTimeZone.js +17 -0
  394. package/dist/node_modules/react-day-picker/dist/esm/utils/toTimeZone.js.map +1 -0
  395. package/dist/node_modules/react-day-picker/dist/esm/utils/typeguards.js +67 -0
  396. package/dist/node_modules/react-day-picker/dist/esm/utils/typeguards.js.map +1 -0
  397. package/dist/utilities/Icons.d.ts +33 -0
  398. package/dist/utils.js.map +1 -1
  399. package/package.json +87 -9
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CalendarDay.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/classes/CalendarDay.js"],"sourcesContent":["import { defaultDateLib } from \"./DateLib.js\";\n/**\n * Represents a day displayed in the calendar.\n *\n * In DayPicker, a `CalendarDay` is a wrapper around a `Date` object that\n * provides additional information about the day, such as whether it belongs to\n * the displayed month.\n */\nexport class CalendarDay {\n constructor(date, displayMonth, dateLib = defaultDateLib) {\n this.date = date;\n this.displayMonth = displayMonth;\n this.outside = Boolean(displayMonth && !dateLib.isSameMonth(date, displayMonth));\n this.dateLib = dateLib;\n this.isoDate = dateLib.format(date, \"yyyy-MM-dd\");\n this.displayMonthId = dateLib.format(displayMonth, \"yyyy-MM\");\n this.dateMonthId = dateLib.format(date, \"yyyy-MM\");\n }\n /**\n * Checks if this day is equal to another `CalendarDay`, considering both the\n * date and the displayed month.\n *\n * @param day The `CalendarDay` to compare with.\n * @returns `true` if the days are equal, otherwise `false`.\n */\n isEqualTo(day) {\n return (this.dateLib.isSameDay(day.date, this.date) &&\n this.dateLib.isSameMonth(day.displayMonth, this.displayMonth));\n }\n}\n"],"names":[],"mappings":";;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,MAAM,WAAW,CAAC;AACzB,IAAI,WAAW,CAAC,IAAI,EAAE,YAAY,EAAE,OAAO,GAAG,cAAc,EAAE;AAC9D,QAAQ,IAAI,CAAC,IAAI,GAAG,IAAI;AACxB,QAAQ,IAAI,CAAC,YAAY,GAAG,YAAY;AACxC,QAAQ,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC,YAAY,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,IAAI,EAAE,YAAY,CAAC,CAAC;AACxF,QAAQ,IAAI,CAAC,OAAO,GAAG,OAAO;AAC9B,QAAQ,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC,MAAM,CAAC,IAAI,EAAE,YAAY,CAAC;AACzD,QAAQ,IAAI,CAAC,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,YAAY,EAAE,SAAS,CAAC;AACrE,QAAQ,IAAI,CAAC,WAAW,GAAG,OAAO,CAAC,MAAM,CAAC,IAAI,EAAE,SAAS,CAAC;AAC1D,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI,SAAS,CAAC,GAAG,EAAE;AACnB,QAAQ,QAAQ,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,GAAG,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC;AAC3D,YAAY,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,GAAG,CAAC,YAAY,EAAE,IAAI,CAAC,YAAY,CAAC;AACzE,IAAI;AACJ;;;;","x_google_ignoreList":[0]}
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Represents a month in a calendar year.
3
+ *
4
+ * A `CalendarMonth` contains the weeks within the month and the date of the
5
+ * month.
6
+ */
7
+ class CalendarMonth {
8
+ constructor(month, weeks) {
9
+ this.date = month;
10
+ this.weeks = weeks;
11
+ }
12
+ }
13
+
14
+ export { CalendarMonth };
15
+ //# sourceMappingURL=CalendarMonth.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CalendarMonth.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/classes/CalendarMonth.js"],"sourcesContent":["/**\n * Represents a month in a calendar year.\n *\n * A `CalendarMonth` contains the weeks within the month and the date of the\n * month.\n */\nexport class CalendarMonth {\n constructor(month, weeks) {\n this.date = month;\n this.weeks = weeks;\n }\n}\n"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACO,MAAM,aAAa,CAAC;AAC3B,IAAI,WAAW,CAAC,KAAK,EAAE,KAAK,EAAE;AAC9B,QAAQ,IAAI,CAAC,IAAI,GAAG,KAAK;AACzB,QAAQ,IAAI,CAAC,KAAK,GAAG,KAAK;AAC1B,IAAI;AACJ;;;;","x_google_ignoreList":[0]}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Represents a week in a calendar month.
3
+ *
4
+ * A `CalendarWeek` contains the days within the week and the week number.
5
+ */
6
+ class CalendarWeek {
7
+ constructor(weekNumber, days) {
8
+ this.days = days;
9
+ this.weekNumber = weekNumber;
10
+ }
11
+ }
12
+
13
+ export { CalendarWeek };
14
+ //# sourceMappingURL=CalendarWeek.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CalendarWeek.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/classes/CalendarWeek.js"],"sourcesContent":["/**\n * Represents a week in a calendar month.\n *\n * A `CalendarWeek` contains the days within the week and the week number.\n */\nexport class CalendarWeek {\n constructor(weekNumber, days) {\n this.days = days;\n this.weekNumber = weekNumber;\n }\n}\n"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACO,MAAM,YAAY,CAAC;AAC1B,IAAI,WAAW,CAAC,UAAU,EAAE,IAAI,EAAE;AAClC,QAAQ,IAAI,CAAC,IAAI,GAAG,IAAI;AACxB,QAAQ,IAAI,CAAC,UAAU,GAAG,UAAU;AACpC,IAAI;AACJ;;;;","x_google_ignoreList":[0]}
@@ -0,0 +1,600 @@
1
+ import { TZDate } from '../../../../@date-fns/tz/date/index.js';
2
+ import '../../../../@date-fns/tz/date/mini.js';
3
+ import { endOfBroadcastWeek } from '../helpers/endOfBroadcastWeek.js';
4
+ import { startOfBroadcastWeek } from '../helpers/startOfBroadcastWeek.js';
5
+ import { enUS } from '../locale/en-US.js';
6
+ import { addDays } from '../../../../date-fns/addDays.js';
7
+ import { addMonths } from '../../../../date-fns/addMonths.js';
8
+ import { addWeeks } from '../../../../date-fns/addWeeks.js';
9
+ import { addYears } from '../../../../date-fns/addYears.js';
10
+ import { differenceInCalendarDays } from '../../../../date-fns/differenceInCalendarDays.js';
11
+ import { differenceInCalendarMonths } from '../../../../date-fns/differenceInCalendarMonths.js';
12
+ import { eachMonthOfInterval } from '../../../../date-fns/eachMonthOfInterval.js';
13
+ import { eachYearOfInterval } from '../../../../date-fns/eachYearOfInterval.js';
14
+ import { endOfISOWeek } from '../../../../date-fns/endOfISOWeek.js';
15
+ import { endOfMonth } from '../../../../date-fns/endOfMonth.js';
16
+ import { endOfWeek } from '../../../../date-fns/endOfWeek.js';
17
+ import { endOfYear } from '../../../../date-fns/endOfYear.js';
18
+ import { getISOWeek } from '../../../../date-fns/getISOWeek.js';
19
+ import { getMonth } from '../../../../date-fns/getMonth.js';
20
+ import { getYear } from '../../../../date-fns/getYear.js';
21
+ import { getWeek } from '../../../../date-fns/getWeek.js';
22
+ import { isAfter } from '../../../../date-fns/isAfter.js';
23
+ import { isBefore } from '../../../../date-fns/isBefore.js';
24
+ import { isDate } from '../../../../date-fns/isDate.js';
25
+ import { isSameDay } from '../../../../date-fns/isSameDay.js';
26
+ import { isSameMonth } from '../../../../date-fns/isSameMonth.js';
27
+ import { isSameYear } from '../../../../date-fns/isSameYear.js';
28
+ import { max } from '../../../../date-fns/max.js';
29
+ import { min } from '../../../../date-fns/min.js';
30
+ import { setMonth } from '../../../../date-fns/setMonth.js';
31
+ import { setYear } from '../../../../date-fns/setYear.js';
32
+ import { startOfDay } from '../../../../date-fns/startOfDay.js';
33
+ import { startOfISOWeek } from '../../../../date-fns/startOfISOWeek.js';
34
+ import { startOfMonth } from '../../../../date-fns/startOfMonth.js';
35
+ import { startOfWeek } from '../../../../date-fns/startOfWeek.js';
36
+ import { startOfYear } from '../../../../date-fns/startOfYear.js';
37
+ import { formatDate as format } from '../../../../date-fns/format.js';
38
+
39
+ /**
40
+ * A wrapper class around [date-fns](http://date-fns.org) that provides utility
41
+ * methods for date manipulation and formatting.
42
+ *
43
+ * @since 9.2.0
44
+ * @example
45
+ * const dateLib = new DateLib({ locale: es });
46
+ * const newDate = dateLib.addDays(new Date(), 5);
47
+ */
48
+ class DateLib {
49
+ /**
50
+ * Creates an instance of `DateLib`.
51
+ *
52
+ * @param options Configuration options for the date library.
53
+ * @param overrides Custom overrides for the date library functions.
54
+ */
55
+ constructor(options, overrides) {
56
+ /**
57
+ * Creates a new `Date` object representing today's date.
58
+ *
59
+ * @since 9.5.0
60
+ * @returns A `Date` object for today's date.
61
+ */
62
+ this.today = () => {
63
+ if (this.overrides?.today) {
64
+ return this.overrides.today();
65
+ }
66
+ if (this.options.timeZone) {
67
+ return TZDate.tz(this.options.timeZone);
68
+ }
69
+ const DateCtor = this.options.Date ?? Date;
70
+ return new DateCtor();
71
+ };
72
+ /**
73
+ * Creates a new `Date` object with the specified year, month, and day.
74
+ *
75
+ * @since 9.5.0
76
+ * @param year The year.
77
+ * @param monthIndex The month (0-11).
78
+ * @param date The day of the month.
79
+ * @returns A new `Date` object.
80
+ */
81
+ this.newDate = (year, monthIndex, date) => {
82
+ if (this.overrides?.newDate) {
83
+ return this.overrides.newDate(year, monthIndex, date);
84
+ }
85
+ if (this.options.timeZone) {
86
+ return new TZDate(year, monthIndex, date, this.options.timeZone);
87
+ }
88
+ return new Date(year, monthIndex, date);
89
+ };
90
+ /**
91
+ * Adds the specified number of days to the given date.
92
+ *
93
+ * @param date The date to add days to.
94
+ * @param amount The number of days to add.
95
+ * @returns The new date with the days added.
96
+ */
97
+ this.addDays = (date, amount) => {
98
+ return this.overrides?.addDays
99
+ ? this.overrides.addDays(date, amount)
100
+ : addDays(date, amount);
101
+ };
102
+ /**
103
+ * Adds the specified number of months to the given date.
104
+ *
105
+ * @param date The date to add months to.
106
+ * @param amount The number of months to add.
107
+ * @returns The new date with the months added.
108
+ */
109
+ this.addMonths = (date, amount) => {
110
+ return this.overrides?.addMonths
111
+ ? this.overrides.addMonths(date, amount)
112
+ : addMonths(date, amount);
113
+ };
114
+ /**
115
+ * Adds the specified number of weeks to the given date.
116
+ *
117
+ * @param date The date to add weeks to.
118
+ * @param amount The number of weeks to add.
119
+ * @returns The new date with the weeks added.
120
+ */
121
+ this.addWeeks = (date, amount) => {
122
+ return this.overrides?.addWeeks
123
+ ? this.overrides.addWeeks(date, amount)
124
+ : addWeeks(date, amount);
125
+ };
126
+ /**
127
+ * Adds the specified number of years to the given date.
128
+ *
129
+ * @param date The date to add years to.
130
+ * @param amount The number of years to add.
131
+ * @returns The new date with the years added.
132
+ */
133
+ this.addYears = (date, amount) => {
134
+ return this.overrides?.addYears
135
+ ? this.overrides.addYears(date, amount)
136
+ : addYears(date, amount);
137
+ };
138
+ /**
139
+ * Returns the number of calendar days between the given dates.
140
+ *
141
+ * @param dateLeft The later date.
142
+ * @param dateRight The earlier date.
143
+ * @returns The number of calendar days between the dates.
144
+ */
145
+ this.differenceInCalendarDays = (dateLeft, dateRight) => {
146
+ return this.overrides?.differenceInCalendarDays
147
+ ? this.overrides.differenceInCalendarDays(dateLeft, dateRight)
148
+ : differenceInCalendarDays(dateLeft, dateRight);
149
+ };
150
+ /**
151
+ * Returns the number of calendar months between the given dates.
152
+ *
153
+ * @param dateLeft The later date.
154
+ * @param dateRight The earlier date.
155
+ * @returns The number of calendar months between the dates.
156
+ */
157
+ this.differenceInCalendarMonths = (dateLeft, dateRight) => {
158
+ return this.overrides?.differenceInCalendarMonths
159
+ ? this.overrides.differenceInCalendarMonths(dateLeft, dateRight)
160
+ : differenceInCalendarMonths(dateLeft, dateRight);
161
+ };
162
+ /**
163
+ * Returns the months between the given dates.
164
+ *
165
+ * @param interval The interval to get the months for.
166
+ */
167
+ this.eachMonthOfInterval = (interval) => {
168
+ return this.overrides?.eachMonthOfInterval
169
+ ? this.overrides.eachMonthOfInterval(interval)
170
+ : eachMonthOfInterval(interval);
171
+ };
172
+ /**
173
+ * Returns the years between the given dates.
174
+ *
175
+ * @since 9.11.1
176
+ * @param interval The interval to get the years for.
177
+ * @returns The array of years in the interval.
178
+ */
179
+ this.eachYearOfInterval = (interval) => {
180
+ const years = this.overrides?.eachYearOfInterval
181
+ ? this.overrides.eachYearOfInterval(interval)
182
+ : eachYearOfInterval(interval);
183
+ // Remove duplicates that may happen across DST transitions (e.g., "America/Sao_Paulo")
184
+ // See https://github.com/date-fns/tz/issues/72
185
+ const uniqueYears = new Set(years.map((d) => this.getYear(d)));
186
+ if (uniqueYears.size === years.length) {
187
+ // No duplicates, return as is
188
+ return years;
189
+ }
190
+ // Rebuild the array to ensure one date per year
191
+ const yearsArray = [];
192
+ uniqueYears.forEach((y) => {
193
+ yearsArray.push(new Date(y, 0, 1));
194
+ });
195
+ return yearsArray;
196
+ };
197
+ /**
198
+ * Returns the end of the broadcast week for the given date.
199
+ *
200
+ * @param date The original date.
201
+ * @returns The end of the broadcast week.
202
+ */
203
+ this.endOfBroadcastWeek = (date) => {
204
+ return this.overrides?.endOfBroadcastWeek
205
+ ? this.overrides.endOfBroadcastWeek(date)
206
+ : endOfBroadcastWeek(date, this);
207
+ };
208
+ /**
209
+ * Returns the end of the ISO week for the given date.
210
+ *
211
+ * @param date The original date.
212
+ * @returns The end of the ISO week.
213
+ */
214
+ this.endOfISOWeek = (date) => {
215
+ return this.overrides?.endOfISOWeek
216
+ ? this.overrides.endOfISOWeek(date)
217
+ : endOfISOWeek(date);
218
+ };
219
+ /**
220
+ * Returns the end of the month for the given date.
221
+ *
222
+ * @param date The original date.
223
+ * @returns The end of the month.
224
+ */
225
+ this.endOfMonth = (date) => {
226
+ return this.overrides?.endOfMonth
227
+ ? this.overrides.endOfMonth(date)
228
+ : endOfMonth(date);
229
+ };
230
+ /**
231
+ * Returns the end of the week for the given date.
232
+ *
233
+ * @param date The original date.
234
+ * @returns The end of the week.
235
+ */
236
+ this.endOfWeek = (date, options) => {
237
+ return this.overrides?.endOfWeek
238
+ ? this.overrides.endOfWeek(date, options)
239
+ : endOfWeek(date, this.options);
240
+ };
241
+ /**
242
+ * Returns the end of the year for the given date.
243
+ *
244
+ * @param date The original date.
245
+ * @returns The end of the year.
246
+ */
247
+ this.endOfYear = (date) => {
248
+ return this.overrides?.endOfYear
249
+ ? this.overrides.endOfYear(date)
250
+ : endOfYear(date);
251
+ };
252
+ /**
253
+ * Formats the given date using the specified format string.
254
+ *
255
+ * @param date The date to format.
256
+ * @param formatStr The format string.
257
+ * @returns The formatted date string.
258
+ */
259
+ this.format = (date, formatStr, _options) => {
260
+ const formatted = this.overrides?.format
261
+ ? this.overrides.format(date, formatStr, this.options)
262
+ : format(date, formatStr, this.options);
263
+ if (this.options.numerals && this.options.numerals !== "latn") {
264
+ return this.replaceDigits(formatted);
265
+ }
266
+ return formatted;
267
+ };
268
+ /**
269
+ * Returns the ISO week number for the given date.
270
+ *
271
+ * @param date The date to get the ISO week number for.
272
+ * @returns The ISO week number.
273
+ */
274
+ this.getISOWeek = (date) => {
275
+ return this.overrides?.getISOWeek
276
+ ? this.overrides.getISOWeek(date)
277
+ : getISOWeek(date);
278
+ };
279
+ /**
280
+ * Returns the month of the given date.
281
+ *
282
+ * @param date The date to get the month for.
283
+ * @returns The month.
284
+ */
285
+ this.getMonth = (date, _options) => {
286
+ return this.overrides?.getMonth
287
+ ? this.overrides.getMonth(date, this.options)
288
+ : getMonth(date, this.options);
289
+ };
290
+ /**
291
+ * Returns the year of the given date.
292
+ *
293
+ * @param date The date to get the year for.
294
+ * @returns The year.
295
+ */
296
+ this.getYear = (date, _options) => {
297
+ return this.overrides?.getYear
298
+ ? this.overrides.getYear(date, this.options)
299
+ : getYear(date, this.options);
300
+ };
301
+ /**
302
+ * Returns the local week number for the given date.
303
+ *
304
+ * @param date The date to get the week number for.
305
+ * @returns The week number.
306
+ */
307
+ this.getWeek = (date, _options) => {
308
+ return this.overrides?.getWeek
309
+ ? this.overrides.getWeek(date, this.options)
310
+ : getWeek(date, this.options);
311
+ };
312
+ /**
313
+ * Checks if the first date is after the second date.
314
+ *
315
+ * @param date The date to compare.
316
+ * @param dateToCompare The date to compare with.
317
+ * @returns True if the first date is after the second date.
318
+ */
319
+ this.isAfter = (date, dateToCompare) => {
320
+ return this.overrides?.isAfter
321
+ ? this.overrides.isAfter(date, dateToCompare)
322
+ : isAfter(date, dateToCompare);
323
+ };
324
+ /**
325
+ * Checks if the first date is before the second date.
326
+ *
327
+ * @param date The date to compare.
328
+ * @param dateToCompare The date to compare with.
329
+ * @returns True if the first date is before the second date.
330
+ */
331
+ this.isBefore = (date, dateToCompare) => {
332
+ return this.overrides?.isBefore
333
+ ? this.overrides.isBefore(date, dateToCompare)
334
+ : isBefore(date, dateToCompare);
335
+ };
336
+ /**
337
+ * Checks if the given value is a Date object.
338
+ *
339
+ * @param value The value to check.
340
+ * @returns True if the value is a Date object.
341
+ */
342
+ this.isDate = (value) => {
343
+ return this.overrides?.isDate
344
+ ? this.overrides.isDate(value)
345
+ : isDate(value);
346
+ };
347
+ /**
348
+ * Checks if the given dates are on the same day.
349
+ *
350
+ * @param dateLeft The first date to compare.
351
+ * @param dateRight The second date to compare.
352
+ * @returns True if the dates are on the same day.
353
+ */
354
+ this.isSameDay = (dateLeft, dateRight) => {
355
+ return this.overrides?.isSameDay
356
+ ? this.overrides.isSameDay(dateLeft, dateRight)
357
+ : isSameDay(dateLeft, dateRight);
358
+ };
359
+ /**
360
+ * Checks if the given dates are in the same month.
361
+ *
362
+ * @param dateLeft The first date to compare.
363
+ * @param dateRight The second date to compare.
364
+ * @returns True if the dates are in the same month.
365
+ */
366
+ this.isSameMonth = (dateLeft, dateRight) => {
367
+ return this.overrides?.isSameMonth
368
+ ? this.overrides.isSameMonth(dateLeft, dateRight)
369
+ : isSameMonth(dateLeft, dateRight);
370
+ };
371
+ /**
372
+ * Checks if the given dates are in the same year.
373
+ *
374
+ * @param dateLeft The first date to compare.
375
+ * @param dateRight The second date to compare.
376
+ * @returns True if the dates are in the same year.
377
+ */
378
+ this.isSameYear = (dateLeft, dateRight) => {
379
+ return this.overrides?.isSameYear
380
+ ? this.overrides.isSameYear(dateLeft, dateRight)
381
+ : isSameYear(dateLeft, dateRight);
382
+ };
383
+ /**
384
+ * Returns the latest date in the given array of dates.
385
+ *
386
+ * @param dates The array of dates to compare.
387
+ * @returns The latest date.
388
+ */
389
+ this.max = (dates) => {
390
+ return this.overrides?.max ? this.overrides.max(dates) : max(dates);
391
+ };
392
+ /**
393
+ * Returns the earliest date in the given array of dates.
394
+ *
395
+ * @param dates The array of dates to compare.
396
+ * @returns The earliest date.
397
+ */
398
+ this.min = (dates) => {
399
+ return this.overrides?.min ? this.overrides.min(dates) : min(dates);
400
+ };
401
+ /**
402
+ * Sets the month of the given date.
403
+ *
404
+ * @param date The date to set the month on.
405
+ * @param month The month to set (0-11).
406
+ * @returns The new date with the month set.
407
+ */
408
+ this.setMonth = (date, month) => {
409
+ return this.overrides?.setMonth
410
+ ? this.overrides.setMonth(date, month)
411
+ : setMonth(date, month);
412
+ };
413
+ /**
414
+ * Sets the year of the given date.
415
+ *
416
+ * @param date The date to set the year on.
417
+ * @param year The year to set.
418
+ * @returns The new date with the year set.
419
+ */
420
+ this.setYear = (date, year) => {
421
+ return this.overrides?.setYear
422
+ ? this.overrides.setYear(date, year)
423
+ : setYear(date, year);
424
+ };
425
+ /**
426
+ * Returns the start of the broadcast week for the given date.
427
+ *
428
+ * @param date The original date.
429
+ * @returns The start of the broadcast week.
430
+ */
431
+ this.startOfBroadcastWeek = (date, _dateLib) => {
432
+ return this.overrides?.startOfBroadcastWeek
433
+ ? this.overrides.startOfBroadcastWeek(date, this)
434
+ : startOfBroadcastWeek(date, this);
435
+ };
436
+ /**
437
+ * Returns the start of the day for the given date.
438
+ *
439
+ * @param date The original date.
440
+ * @returns The start of the day.
441
+ */
442
+ this.startOfDay = (date) => {
443
+ return this.overrides?.startOfDay
444
+ ? this.overrides.startOfDay(date)
445
+ : startOfDay(date);
446
+ };
447
+ /**
448
+ * Returns the start of the ISO week for the given date.
449
+ *
450
+ * @param date The original date.
451
+ * @returns The start of the ISO week.
452
+ */
453
+ this.startOfISOWeek = (date) => {
454
+ return this.overrides?.startOfISOWeek
455
+ ? this.overrides.startOfISOWeek(date)
456
+ : startOfISOWeek(date);
457
+ };
458
+ /**
459
+ * Returns the start of the month for the given date.
460
+ *
461
+ * @param date The original date.
462
+ * @returns The start of the month.
463
+ */
464
+ this.startOfMonth = (date) => {
465
+ return this.overrides?.startOfMonth
466
+ ? this.overrides.startOfMonth(date)
467
+ : startOfMonth(date);
468
+ };
469
+ /**
470
+ * Returns the start of the week for the given date.
471
+ *
472
+ * @param date The original date.
473
+ * @returns The start of the week.
474
+ */
475
+ this.startOfWeek = (date, _options) => {
476
+ return this.overrides?.startOfWeek
477
+ ? this.overrides.startOfWeek(date, this.options)
478
+ : startOfWeek(date, this.options);
479
+ };
480
+ /**
481
+ * Returns the start of the year for the given date.
482
+ *
483
+ * @param date The original date.
484
+ * @returns The start of the year.
485
+ */
486
+ this.startOfYear = (date) => {
487
+ return this.overrides?.startOfYear
488
+ ? this.overrides.startOfYear(date)
489
+ : startOfYear(date);
490
+ };
491
+ this.options = { locale: enUS, ...options };
492
+ this.overrides = overrides;
493
+ }
494
+ /**
495
+ * Generates a mapping of Arabic digits (0-9) to the target numbering system
496
+ * digits.
497
+ *
498
+ * @since 9.5.0
499
+ * @returns A record mapping Arabic digits to the target numerals.
500
+ */
501
+ getDigitMap() {
502
+ const { numerals = "latn" } = this.options;
503
+ // Use Intl.NumberFormat to create a formatter with the specified numbering system
504
+ const formatter = new Intl.NumberFormat("en-US", {
505
+ numberingSystem: numerals,
506
+ });
507
+ // Map Arabic digits (0-9) to the target numerals
508
+ const digitMap = {};
509
+ for (let i = 0; i < 10; i++) {
510
+ digitMap[i.toString()] = formatter.format(i);
511
+ }
512
+ return digitMap;
513
+ }
514
+ /**
515
+ * Replaces Arabic digits in a string with the target numbering system digits.
516
+ *
517
+ * @since 9.5.0
518
+ * @param input The string containing Arabic digits.
519
+ * @returns The string with digits replaced.
520
+ */
521
+ replaceDigits(input) {
522
+ const digitMap = this.getDigitMap();
523
+ return input.replace(/\d/g, (digit) => digitMap[digit] || digit);
524
+ }
525
+ /**
526
+ * Formats a number using the configured numbering system.
527
+ *
528
+ * @since 9.5.0
529
+ * @param value The number to format.
530
+ * @returns The formatted number as a string.
531
+ */
532
+ formatNumber(value) {
533
+ return this.replaceDigits(value.toString());
534
+ }
535
+ /**
536
+ * Returns the preferred ordering for month and year labels for the current
537
+ * locale.
538
+ */
539
+ getMonthYearOrder() {
540
+ const code = this.options.locale?.code;
541
+ if (!code) {
542
+ return "month-first";
543
+ }
544
+ return DateLib.yearFirstLocales.has(code) ? "year-first" : "month-first";
545
+ }
546
+ /**
547
+ * Formats the month/year pair respecting locale conventions.
548
+ *
549
+ * @since 9.11.0
550
+ */
551
+ formatMonthYear(date) {
552
+ const { locale, timeZone, numerals } = this.options;
553
+ const localeCode = locale?.code;
554
+ if (localeCode && DateLib.yearFirstLocales.has(localeCode)) {
555
+ try {
556
+ const intl = new Intl.DateTimeFormat(localeCode, {
557
+ month: "long",
558
+ year: "numeric",
559
+ timeZone,
560
+ numberingSystem: numerals,
561
+ });
562
+ const formatted = intl.format(date);
563
+ return formatted;
564
+ }
565
+ catch {
566
+ // Fallback to date-fns formatting below.
567
+ }
568
+ }
569
+ const pattern = this.getMonthYearOrder() === "year-first" ? "y LLLL" : "LLLL y";
570
+ return this.format(date, pattern);
571
+ }
572
+ }
573
+ DateLib.yearFirstLocales = new Set([
574
+ "eu",
575
+ "hu",
576
+ "ja",
577
+ "ja-Hira",
578
+ "ja-JP",
579
+ "ko",
580
+ "ko-KR",
581
+ "lt",
582
+ "lt-LT",
583
+ "lv",
584
+ "lv-LV",
585
+ "mn",
586
+ "mn-MN",
587
+ "zh",
588
+ "zh-CN",
589
+ "zh-HK",
590
+ "zh-TW",
591
+ ]);
592
+ /**
593
+ * The default date library with English locale.
594
+ *
595
+ * @since 9.2.0
596
+ */
597
+ const defaultDateLib = new DateLib();
598
+
599
+ export { DateLib, defaultDateLib, enUS as defaultLocale };
600
+ //# sourceMappingURL=DateLib.js.map