@betterinternship/components 1.5.28 → 1.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (399) hide show
  1. package/README.md +26 -0
  2. package/dist/components/Accordion.d.ts +7 -0
  3. package/dist/components/Avatar.d.ts +6 -0
  4. package/dist/components/Badge.d.ts +21 -0
  5. package/dist/components/Button.js.map +1 -1
  6. package/dist/components/Calendar.d.ts +7 -0
  7. package/dist/components/Input.d.ts +3 -0
  8. package/dist/components/ui/accordion.d.ts +7 -0
  9. package/dist/components/ui/accordion.js +20 -0
  10. package/dist/components/ui/accordion.js.map +1 -0
  11. package/dist/components/ui/avatar.d.ts +6 -0
  12. package/dist/components/ui/avatar.js +16 -0
  13. package/dist/components/ui/avatar.js.map +1 -0
  14. package/dist/components/ui/badge.d.ts +22 -0
  15. package/dist/components/ui/badge.js +113 -0
  16. package/dist/components/ui/badge.js.map +1 -0
  17. package/dist/components/ui/button.d.ts +13 -0
  18. package/dist/components/ui/button.js +88 -0
  19. package/dist/components/ui/button.js.map +1 -0
  20. package/dist/components/ui/calendar.d.ts +7 -0
  21. package/dist/components/ui/calendar.js +51 -0
  22. package/dist/components/ui/calendar.js.map +1 -0
  23. package/dist/components/ui/card.d.ts +9 -0
  24. package/dist/components/ui/card.js +27 -0
  25. package/dist/components/ui/card.js.map +1 -0
  26. package/dist/components/ui/checkbox.d.ts +4 -0
  27. package/dist/components/ui/checkbox.js +11 -0
  28. package/dist/components/ui/checkbox.js.map +1 -0
  29. package/dist/components/ui/dialog.d.ts +18 -0
  30. package/dist/components/ui/dialog.js +41 -0
  31. package/dist/components/ui/dialog.js.map +1 -0
  32. package/dist/components/ui/icons.d.ts +10 -0
  33. package/dist/components/ui/icons.js +39 -0
  34. package/dist/components/ui/icons.js.map +1 -0
  35. package/dist/components/ui/input.d.ts +3 -0
  36. package/dist/components/ui/input.js +17 -0
  37. package/dist/components/ui/input.js.map +1 -0
  38. package/dist/components/ui/label.d.ts +4 -0
  39. package/dist/components/ui/label.js +10 -0
  40. package/dist/components/ui/label.js.map +1 -0
  41. package/dist/components/ui/popover.d.ts +7 -0
  42. package/dist/components/ui/popover.js +17 -0
  43. package/dist/components/ui/popover.js.map +1 -0
  44. package/dist/components/ui/separator.d.ts +4 -0
  45. package/dist/components/ui/separator.js +10 -0
  46. package/dist/components/ui/separator.js.map +1 -0
  47. package/dist/components/ui/skeleton.d.ts +2 -0
  48. package/dist/components/ui/skeleton.js +9 -0
  49. package/dist/components/ui/skeleton.js.map +1 -0
  50. package/dist/components/ui/switch.d.ts +4 -0
  51. package/dist/components/ui/switch.js +10 -0
  52. package/dist/components/ui/switch.js.map +1 -0
  53. package/dist/components/ui/table.d.ts +10 -0
  54. package/dist/components/ui/table.js +30 -0
  55. package/dist/components/ui/table.js.map +1 -0
  56. package/dist/components/ui/textarea.d.ts +3 -0
  57. package/dist/components/ui/textarea.js +9 -0
  58. package/dist/components/ui/textarea.js.map +1 -0
  59. package/dist/components/ui/tooltip.d.ts +9 -0
  60. package/dist/components/ui/tooltip.js +19 -0
  61. package/dist/components/ui/tooltip.js.map +1 -0
  62. package/dist/hooks/useClientProcess.js +0 -1
  63. package/dist/hooks/useClientProcess.js.map +1 -1
  64. package/dist/index.css.js +1 -1
  65. package/dist/index.d.ts +19 -1
  66. package/dist/index.esm.js +3761 -3761
  67. package/dist/index.js +19 -1
  68. package/dist/index.js.map +1 -1
  69. package/dist/node_modules/@date-fns/tz/date/index.js +84 -0
  70. package/dist/node_modules/@date-fns/tz/date/index.js.map +1 -0
  71. package/dist/node_modules/@date-fns/tz/date/mini.js +451 -0
  72. package/dist/node_modules/@date-fns/tz/date/mini.js.map +1 -0
  73. package/dist/node_modules/@date-fns/tz/tzName/index.js +40 -0
  74. package/dist/node_modules/@date-fns/tz/tzName/index.js.map +1 -0
  75. package/dist/node_modules/@date-fns/tz/tzOffset/index.js +57 -0
  76. package/dist/node_modules/@date-fns/tz/tzOffset/index.js.map +1 -0
  77. package/dist/node_modules/date-fns/_lib/addLeadingZeros.js +8 -0
  78. package/dist/node_modules/date-fns/_lib/addLeadingZeros.js.map +1 -0
  79. package/dist/node_modules/date-fns/_lib/defaultOptions.js +8 -0
  80. package/dist/node_modules/date-fns/_lib/defaultOptions.js.map +1 -0
  81. package/dist/node_modules/date-fns/_lib/format/formatters.js +776 -0
  82. package/dist/node_modules/date-fns/_lib/format/formatters.js.map +1 -0
  83. package/dist/node_modules/date-fns/_lib/format/lightFormatters.js +95 -0
  84. package/dist/node_modules/date-fns/_lib/format/lightFormatters.js.map +1 -0
  85. package/dist/node_modules/date-fns/_lib/format/longFormatters.js +67 -0
  86. package/dist/node_modules/date-fns/_lib/format/longFormatters.js.map +1 -0
  87. package/dist/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js +32 -0
  88. package/dist/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js.map +1 -0
  89. package/dist/node_modules/date-fns/_lib/normalizeDates.js +12 -0
  90. package/dist/node_modules/date-fns/_lib/normalizeDates.js.map +1 -0
  91. package/dist/node_modules/date-fns/_lib/normalizeInterval.js +9 -0
  92. package/dist/node_modules/date-fns/_lib/normalizeInterval.js.map +1 -0
  93. package/dist/node_modules/date-fns/_lib/protectedTokens.js +26 -0
  94. package/dist/node_modules/date-fns/_lib/protectedTokens.js.map +1 -0
  95. package/dist/node_modules/date-fns/addDays.js +61 -0
  96. package/dist/node_modules/date-fns/addDays.js.map +1 -0
  97. package/dist/node_modules/date-fns/addMonths.js +76 -0
  98. package/dist/node_modules/date-fns/addMonths.js.map +1 -0
  99. package/dist/node_modules/date-fns/addWeeks.js +34 -0
  100. package/dist/node_modules/date-fns/addWeeks.js.map +1 -0
  101. package/dist/node_modules/date-fns/addYears.js +34 -0
  102. package/dist/node_modules/date-fns/addYears.js.map +1 -0
  103. package/dist/node_modules/date-fns/constants.js +47 -0
  104. package/dist/node_modules/date-fns/constants.js.map +1 -0
  105. package/dist/node_modules/date-fns/constructFrom.js +50 -0
  106. package/dist/node_modules/date-fns/constructFrom.js.map +1 -0
  107. package/dist/node_modules/date-fns/differenceInCalendarDays.js +63 -0
  108. package/dist/node_modules/date-fns/differenceInCalendarDays.js.map +1 -0
  109. package/dist/node_modules/date-fns/differenceInCalendarMonths.js +43 -0
  110. package/dist/node_modules/date-fns/differenceInCalendarMonths.js.map +1 -0
  111. package/dist/node_modules/date-fns/eachMonthOfInterval.js +66 -0
  112. package/dist/node_modules/date-fns/eachMonthOfInterval.js.map +1 -0
  113. package/dist/node_modules/date-fns/eachYearOfInterval.js +66 -0
  114. package/dist/node_modules/date-fns/eachYearOfInterval.js.map +1 -0
  115. package/dist/node_modules/date-fns/endOfISOWeek.js +36 -0
  116. package/dist/node_modules/date-fns/endOfISOWeek.js.map +1 -0
  117. package/dist/node_modules/date-fns/endOfMonth.js +38 -0
  118. package/dist/node_modules/date-fns/endOfMonth.js.map +1 -0
  119. package/dist/node_modules/date-fns/endOfWeek.js +54 -0
  120. package/dist/node_modules/date-fns/endOfWeek.js.map +1 -0
  121. package/dist/node_modules/date-fns/endOfYear.js +38 -0
  122. package/dist/node_modules/date-fns/endOfYear.js.map +1 -0
  123. package/dist/node_modules/date-fns/format.js +424 -0
  124. package/dist/node_modules/date-fns/format.js.map +1 -0
  125. package/dist/node_modules/date-fns/getDayOfYear.js +35 -0
  126. package/dist/node_modules/date-fns/getDayOfYear.js.map +1 -0
  127. package/dist/node_modules/date-fns/getDaysInMonth.js +37 -0
  128. package/dist/node_modules/date-fns/getDaysInMonth.js.map +1 -0
  129. package/dist/node_modules/date-fns/getISOWeek.js +41 -0
  130. package/dist/node_modules/date-fns/getISOWeek.js.map +1 -0
  131. package/dist/node_modules/date-fns/getISOWeekYear.js +53 -0
  132. package/dist/node_modules/date-fns/getISOWeekYear.js.map +1 -0
  133. package/dist/node_modules/date-fns/getMonth.js +30 -0
  134. package/dist/node_modules/date-fns/getMonth.js.map +1 -0
  135. package/dist/node_modules/date-fns/getWeek.js +55 -0
  136. package/dist/node_modules/date-fns/getWeek.js.map +1 -0
  137. package/dist/node_modules/date-fns/getWeekYear.js +76 -0
  138. package/dist/node_modules/date-fns/getWeekYear.js.map +1 -0
  139. package/dist/node_modules/date-fns/getYear.js +30 -0
  140. package/dist/node_modules/date-fns/getYear.js.map +1 -0
  141. package/dist/node_modules/date-fns/isAfter.js +26 -0
  142. package/dist/node_modules/date-fns/isAfter.js.map +1 -0
  143. package/dist/node_modules/date-fns/isBefore.js +26 -0
  144. package/dist/node_modules/date-fns/isBefore.js.map +1 -0
  145. package/dist/node_modules/date-fns/isDate.js +42 -0
  146. package/dist/node_modules/date-fns/isDate.js.map +1 -0
  147. package/dist/node_modules/date-fns/isSameDay.js +47 -0
  148. package/dist/node_modules/date-fns/isSameDay.js.map +1 -0
  149. package/dist/node_modules/date-fns/isSameMonth.js +44 -0
  150. package/dist/node_modules/date-fns/isSameMonth.js.map +1 -0
  151. package/dist/node_modules/date-fns/isSameYear.js +36 -0
  152. package/dist/node_modules/date-fns/isSameYear.js.map +1 -0
  153. package/dist/node_modules/date-fns/isValid.js +40 -0
  154. package/dist/node_modules/date-fns/isValid.js.map +1 -0
  155. package/dist/node_modules/date-fns/locale/_lib/buildFormatLongFn.js +11 -0
  156. package/dist/node_modules/date-fns/locale/_lib/buildFormatLongFn.js.map +1 -0
  157. package/dist/node_modules/date-fns/locale/_lib/buildLocalizeFn.js +65 -0
  158. package/dist/node_modules/date-fns/locale/_lib/buildLocalizeFn.js.map +1 -0
  159. package/dist/node_modules/date-fns/locale/_lib/buildMatchFn.js +60 -0
  160. package/dist/node_modules/date-fns/locale/_lib/buildMatchFn.js.map +1 -0
  161. package/dist/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js +23 -0
  162. package/dist/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js.map +1 -0
  163. package/dist/node_modules/date-fns/locale/en-US/_lib/formatDistance.js +104 -0
  164. package/dist/node_modules/date-fns/locale/en-US/_lib/formatDistance.js.map +1 -0
  165. package/dist/node_modules/date-fns/locale/en-US/_lib/formatLong.js +42 -0
  166. package/dist/node_modules/date-fns/locale/en-US/_lib/formatLong.js.map +1 -0
  167. package/dist/node_modules/date-fns/locale/en-US/_lib/formatRelative.js +14 -0
  168. package/dist/node_modules/date-fns/locale/en-US/_lib/formatRelative.js.map +1 -0
  169. package/dist/node_modules/date-fns/locale/en-US/_lib/localize.js +190 -0
  170. package/dist/node_modules/date-fns/locale/en-US/_lib/localize.js.map +1 -0
  171. package/dist/node_modules/date-fns/locale/en-US/_lib/match.js +135 -0
  172. package/dist/node_modules/date-fns/locale/en-US/_lib/match.js.map +1 -0
  173. package/dist/node_modules/date-fns/locale/en-US.js +29 -0
  174. package/dist/node_modules/date-fns/locale/en-US.js.map +1 -0
  175. package/dist/node_modules/date-fns/max.js +50 -0
  176. package/dist/node_modules/date-fns/max.js.map +1 -0
  177. package/dist/node_modules/date-fns/min.js +50 -0
  178. package/dist/node_modules/date-fns/min.js.map +1 -0
  179. package/dist/node_modules/date-fns/setMonth.js +47 -0
  180. package/dist/node_modules/date-fns/setMonth.js.map +1 -0
  181. package/dist/node_modules/date-fns/setYear.js +41 -0
  182. package/dist/node_modules/date-fns/setYear.js.map +1 -0
  183. package/dist/node_modules/date-fns/startOfDay.js +36 -0
  184. package/dist/node_modules/date-fns/startOfDay.js.map +1 -0
  185. package/dist/node_modules/date-fns/startOfISOWeek.js +36 -0
  186. package/dist/node_modules/date-fns/startOfISOWeek.js.map +1 -0
  187. package/dist/node_modules/date-fns/startOfISOWeekYear.js +43 -0
  188. package/dist/node_modules/date-fns/startOfISOWeekYear.js.map +1 -0
  189. package/dist/node_modules/date-fns/startOfMonth.js +38 -0
  190. package/dist/node_modules/date-fns/startOfMonth.js.map +1 -0
  191. package/dist/node_modules/date-fns/startOfWeek.js +54 -0
  192. package/dist/node_modules/date-fns/startOfWeek.js.map +1 -0
  193. package/dist/node_modules/date-fns/startOfWeekYear.js +65 -0
  194. package/dist/node_modules/date-fns/startOfWeekYear.js.map +1 -0
  195. package/dist/node_modules/date-fns/startOfYear.js +37 -0
  196. package/dist/node_modules/date-fns/startOfYear.js.map +1 -0
  197. package/dist/node_modules/date-fns/toDate.js +47 -0
  198. package/dist/node_modules/date-fns/toDate.js.map +1 -0
  199. package/dist/node_modules/react/cjs/react-jsx-runtime.development.js +2 -2
  200. package/dist/node_modules/react/cjs/react-jsx-runtime.development.js.map +1 -1
  201. package/dist/node_modules/react-day-picker/dist/esm/DayPicker.js +347 -0
  202. package/dist/node_modules/react-day-picker/dist/esm/DayPicker.js.map +1 -0
  203. package/dist/node_modules/react-day-picker/dist/esm/UI.js +123 -0
  204. package/dist/node_modules/react-day-picker/dist/esm/UI.js.map +1 -0
  205. package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarDay.js +34 -0
  206. package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarDay.js.map +1 -0
  207. package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarMonth.js +15 -0
  208. package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarMonth.js.map +1 -0
  209. package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarWeek.js +14 -0
  210. package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarWeek.js.map +1 -0
  211. package/dist/node_modules/react-day-picker/dist/esm/classes/DateLib.js +600 -0
  212. package/dist/node_modules/react-day-picker/dist/esm/classes/DateLib.js.map +1 -0
  213. package/dist/node_modules/react-day-picker/dist/esm/components/CaptionLabel.js +14 -0
  214. package/dist/node_modules/react-day-picker/dist/esm/components/CaptionLabel.js.map +1 -0
  215. package/dist/node_modules/react-day-picker/dist/esm/components/Chevron.js +19 -0
  216. package/dist/node_modules/react-day-picker/dist/esm/components/Chevron.js.map +1 -0
  217. package/dist/node_modules/react-day-picker/dist/esm/components/Day.js +19 -0
  218. package/dist/node_modules/react-day-picker/dist/esm/components/Day.js.map +1 -0
  219. package/dist/node_modules/react-day-picker/dist/esm/components/DayButton.js +20 -0
  220. package/dist/node_modules/react-day-picker/dist/esm/components/DayButton.js.map +1 -0
  221. package/dist/node_modules/react-day-picker/dist/esm/components/Dropdown.js +24 -0
  222. package/dist/node_modules/react-day-picker/dist/esm/components/Dropdown.js.map +1 -0
  223. package/dist/node_modules/react-day-picker/dist/esm/components/DropdownNav.js +14 -0
  224. package/dist/node_modules/react-day-picker/dist/esm/components/DropdownNav.js.map +1 -0
  225. package/dist/node_modules/react-day-picker/dist/esm/components/Footer.js +14 -0
  226. package/dist/node_modules/react-day-picker/dist/esm/components/Footer.js.map +1 -0
  227. package/dist/node_modules/react-day-picker/dist/esm/components/Month.js +16 -0
  228. package/dist/node_modules/react-day-picker/dist/esm/components/Month.js.map +1 -0
  229. package/dist/node_modules/react-day-picker/dist/esm/components/MonthCaption.js +15 -0
  230. package/dist/node_modules/react-day-picker/dist/esm/components/MonthCaption.js.map +1 -0
  231. package/dist/node_modules/react-day-picker/dist/esm/components/MonthGrid.js +14 -0
  232. package/dist/node_modules/react-day-picker/dist/esm/components/MonthGrid.js.map +1 -0
  233. package/dist/node_modules/react-day-picker/dist/esm/components/Months.js +14 -0
  234. package/dist/node_modules/react-day-picker/dist/esm/components/Months.js.map +1 -0
  235. package/dist/node_modules/react-day-picker/dist/esm/components/MonthsDropdown.js +16 -0
  236. package/dist/node_modules/react-day-picker/dist/esm/components/MonthsDropdown.js.map +1 -0
  237. package/dist/node_modules/react-day-picker/dist/esm/components/Nav.js +32 -0
  238. package/dist/node_modules/react-day-picker/dist/esm/components/Nav.js.map +1 -0
  239. package/dist/node_modules/react-day-picker/dist/esm/components/NextMonthButton.js +14 -0
  240. package/dist/node_modules/react-day-picker/dist/esm/components/NextMonthButton.js.map +1 -0
  241. package/dist/node_modules/react-day-picker/dist/esm/components/Option.js +14 -0
  242. package/dist/node_modules/react-day-picker/dist/esm/components/Option.js.map +1 -0
  243. package/dist/node_modules/react-day-picker/dist/esm/components/PreviousMonthButton.js +14 -0
  244. package/dist/node_modules/react-day-picker/dist/esm/components/PreviousMonthButton.js.map +1 -0
  245. package/dist/node_modules/react-day-picker/dist/esm/components/Root.js +15 -0
  246. package/dist/node_modules/react-day-picker/dist/esm/components/Root.js.map +1 -0
  247. package/dist/node_modules/react-day-picker/dist/esm/components/Select.js +14 -0
  248. package/dist/node_modules/react-day-picker/dist/esm/components/Select.js.map +1 -0
  249. package/dist/node_modules/react-day-picker/dist/esm/components/Week.js +15 -0
  250. package/dist/node_modules/react-day-picker/dist/esm/components/Week.js.map +1 -0
  251. package/dist/node_modules/react-day-picker/dist/esm/components/WeekNumber.js +15 -0
  252. package/dist/node_modules/react-day-picker/dist/esm/components/WeekNumber.js.map +1 -0
  253. package/dist/node_modules/react-day-picker/dist/esm/components/WeekNumberHeader.js +14 -0
  254. package/dist/node_modules/react-day-picker/dist/esm/components/WeekNumberHeader.js.map +1 -0
  255. package/dist/node_modules/react-day-picker/dist/esm/components/Weekday.js +14 -0
  256. package/dist/node_modules/react-day-picker/dist/esm/components/Weekday.js.map +1 -0
  257. package/dist/node_modules/react-day-picker/dist/esm/components/Weekdays.js +15 -0
  258. package/dist/node_modules/react-day-picker/dist/esm/components/Weekdays.js.map +1 -0
  259. package/dist/node_modules/react-day-picker/dist/esm/components/Weeks.js +14 -0
  260. package/dist/node_modules/react-day-picker/dist/esm/components/Weeks.js.map +1 -0
  261. package/dist/node_modules/react-day-picker/dist/esm/components/YearsDropdown.js +16 -0
  262. package/dist/node_modules/react-day-picker/dist/esm/components/YearsDropdown.js.map +1 -0
  263. package/dist/node_modules/react-day-picker/dist/esm/components/custom-components.js +26 -0
  264. package/dist/node_modules/react-day-picker/dist/esm/components/custom-components.js.map +1 -0
  265. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatCaption.js +21 -0
  266. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatCaption.js.map +1 -0
  267. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatDay.js +20 -0
  268. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatDay.js.map +1 -0
  269. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatMonthDropdown.js +19 -0
  270. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatMonthDropdown.js.map +1 -0
  271. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumber.js +22 -0
  272. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumber.js.map +1 -0
  273. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumberHeader.js +14 -0
  274. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumberHeader.js.map +1 -0
  275. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekdayName.js +20 -0
  276. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekdayName.js.map +1 -0
  277. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatYearDropdown.js +18 -0
  278. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatYearDropdown.js.map +1 -0
  279. package/dist/node_modules/react-day-picker/dist/esm/formatters/index.js +8 -0
  280. package/dist/node_modules/react-day-picker/dist/esm/formatters/index.js.map +1 -0
  281. package/dist/node_modules/react-day-picker/dist/esm/helpers/calculateFocusTarget.js +74 -0
  282. package/dist/node_modules/react-day-picker/dist/esm/helpers/calculateFocusTarget.js.map +1 -0
  283. package/dist/node_modules/react-day-picker/dist/esm/helpers/createGetModifiers.js +96 -0
  284. package/dist/node_modules/react-day-picker/dist/esm/helpers/createGetModifiers.js.map +1 -0
  285. package/dist/node_modules/react-day-picker/dist/esm/helpers/endOfBroadcastWeek.js +23 -0
  286. package/dist/node_modules/react-day-picker/dist/esm/helpers/endOfBroadcastWeek.js.map +1 -0
  287. package/dist/node_modules/react-day-picker/dist/esm/helpers/getBroadcastWeeksInMonth.js +29 -0
  288. package/dist/node_modules/react-day-picker/dist/esm/helpers/getBroadcastWeeksInMonth.js.map +1 -0
  289. package/dist/node_modules/react-day-picker/dist/esm/helpers/getClassNamesForModifiers.js +34 -0
  290. package/dist/node_modules/react-day-picker/dist/esm/helpers/getClassNamesForModifiers.js.map +1 -0
  291. package/dist/node_modules/react-day-picker/dist/esm/helpers/getComponents.js +21 -0
  292. package/dist/node_modules/react-day-picker/dist/esm/helpers/getComponents.js.map +1 -0
  293. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDataAttributes.js +28 -0
  294. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDataAttributes.js.map +1 -0
  295. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDates.js +60 -0
  296. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDates.js.map +1 -0
  297. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDays.js +20 -0
  298. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDays.js.map +1 -0
  299. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDefaultClassNames.js +34 -0
  300. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDefaultClassNames.js.map +1 -0
  301. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDisplayMonths.js +25 -0
  302. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDisplayMonths.js.map +1 -0
  303. package/dist/node_modules/react-day-picker/dist/esm/helpers/getFocusableDate.js +47 -0
  304. package/dist/node_modules/react-day-picker/dist/esm/helpers/getFocusableDate.js.map +1 -0
  305. package/dist/node_modules/react-day-picker/dist/esm/helpers/getFormatters.js +18 -0
  306. package/dist/node_modules/react-day-picker/dist/esm/helpers/getFormatters.js.map +1 -0
  307. package/dist/node_modules/react-day-picker/dist/esm/helpers/getInitialMonth.js +28 -0
  308. package/dist/node_modules/react-day-picker/dist/esm/helpers/getInitialMonth.js.map +1 -0
  309. package/dist/node_modules/react-day-picker/dist/esm/helpers/getLabels.js +54 -0
  310. package/dist/node_modules/react-day-picker/dist/esm/helpers/getLabels.js.map +1 -0
  311. package/dist/node_modules/react-day-picker/dist/esm/helpers/getMonthOptions.js +34 -0
  312. package/dist/node_modules/react-day-picker/dist/esm/helpers/getMonthOptions.js.map +1 -0
  313. package/dist/node_modules/react-day-picker/dist/esm/helpers/getMonths.js +70 -0
  314. package/dist/node_modules/react-day-picker/dist/esm/helpers/getMonths.js.map +1 -0
  315. package/dist/node_modules/react-day-picker/dist/esm/helpers/getNavMonth.js +32 -0
  316. package/dist/node_modules/react-day-picker/dist/esm/helpers/getNavMonth.js.map +1 -0
  317. package/dist/node_modules/react-day-picker/dist/esm/helpers/getNextFocus.js +41 -0
  318. package/dist/node_modules/react-day-picker/dist/esm/helpers/getNextFocus.js.map +1 -0
  319. package/dist/node_modules/react-day-picker/dist/esm/helpers/getNextMonth.js +37 -0
  320. package/dist/node_modules/react-day-picker/dist/esm/helpers/getNextMonth.js.map +1 -0
  321. package/dist/node_modules/react-day-picker/dist/esm/helpers/getPreviousMonth.js +38 -0
  322. package/dist/node_modules/react-day-picker/dist/esm/helpers/getPreviousMonth.js.map +1 -0
  323. package/dist/node_modules/react-day-picker/dist/esm/helpers/getStyleForModifiers.js +28 -0
  324. package/dist/node_modules/react-day-picker/dist/esm/helpers/getStyleForModifiers.js.map +1 -0
  325. package/dist/node_modules/react-day-picker/dist/esm/helpers/getWeekdays.js +27 -0
  326. package/dist/node_modules/react-day-picker/dist/esm/helpers/getWeekdays.js.map +1 -0
  327. package/dist/node_modules/react-day-picker/dist/esm/helpers/getWeeks.js +15 -0
  328. package/dist/node_modules/react-day-picker/dist/esm/helpers/getWeeks.js.map +1 -0
  329. package/dist/node_modules/react-day-picker/dist/esm/helpers/getYearOptions.js +37 -0
  330. package/dist/node_modules/react-day-picker/dist/esm/helpers/getYearOptions.js.map +1 -0
  331. package/dist/node_modules/react-day-picker/dist/esm/helpers/startOfBroadcastWeek.js +28 -0
  332. package/dist/node_modules/react-day-picker/dist/esm/helpers/startOfBroadcastWeek.js.map +1 -0
  333. package/dist/node_modules/react-day-picker/dist/esm/helpers/useControlledValue.js +32 -0
  334. package/dist/node_modules/react-day-picker/dist/esm/helpers/useControlledValue.js.map +1 -0
  335. package/dist/node_modules/react-day-picker/dist/esm/labels/index.js +12 -0
  336. package/dist/node_modules/react-day-picker/dist/esm/labels/index.js.map +1 -0
  337. package/dist/node_modules/react-day-picker/dist/esm/labels/labelDayButton.js +28 -0
  338. package/dist/node_modules/react-day-picker/dist/esm/labels/labelDayButton.js.map +1 -0
  339. package/dist/node_modules/react-day-picker/dist/esm/labels/labelGrid.js +21 -0
  340. package/dist/node_modules/react-day-picker/dist/esm/labels/labelGrid.js.map +1 -0
  341. package/dist/node_modules/react-day-picker/dist/esm/labels/labelGridcell.js +23 -0
  342. package/dist/node_modules/react-day-picker/dist/esm/labels/labelGridcell.js.map +1 -0
  343. package/dist/node_modules/react-day-picker/dist/esm/labels/labelMonthDropdown.js +15 -0
  344. package/dist/node_modules/react-day-picker/dist/esm/labels/labelMonthDropdown.js.map +1 -0
  345. package/dist/node_modules/react-day-picker/dist/esm/labels/labelNav.js +14 -0
  346. package/dist/node_modules/react-day-picker/dist/esm/labels/labelNav.js.map +1 -0
  347. package/dist/node_modules/react-day-picker/dist/esm/labels/labelNext.js +17 -0
  348. package/dist/node_modules/react-day-picker/dist/esm/labels/labelNext.js.map +1 -0
  349. package/dist/node_modules/react-day-picker/dist/esm/labels/labelPrevious.js +16 -0
  350. package/dist/node_modules/react-day-picker/dist/esm/labels/labelPrevious.js.map +1 -0
  351. package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekNumber.js +16 -0
  352. package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekNumber.js.map +1 -0
  353. package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekNumberHeader.js +15 -0
  354. package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekNumberHeader.js.map +1 -0
  355. package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekday.js +19 -0
  356. package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekday.js.map +1 -0
  357. package/dist/node_modules/react-day-picker/dist/esm/labels/labelYearDropdown.js +15 -0
  358. package/dist/node_modules/react-day-picker/dist/esm/labels/labelYearDropdown.js.map +1 -0
  359. package/dist/node_modules/react-day-picker/dist/esm/locale/en-US.js +68 -0
  360. package/dist/node_modules/react-day-picker/dist/esm/locale/en-US.js.map +1 -0
  361. package/dist/node_modules/react-day-picker/dist/esm/noonDateLib.js +164 -0
  362. package/dist/node_modules/react-day-picker/dist/esm/noonDateLib.js.map +1 -0
  363. package/dist/node_modules/react-day-picker/dist/esm/selection/useMulti.js +58 -0
  364. package/dist/node_modules/react-day-picker/dist/esm/selection/useMulti.js.map +1 -0
  365. package/dist/node_modules/react-day-picker/dist/esm/selection/useRange.js +64 -0
  366. package/dist/node_modules/react-day-picker/dist/esm/selection/useRange.js.map +1 -0
  367. package/dist/node_modules/react-day-picker/dist/esm/selection/useSingle.js +45 -0
  368. package/dist/node_modules/react-day-picker/dist/esm/selection/useSingle.js.map +1 -0
  369. package/dist/node_modules/react-day-picker/dist/esm/useAnimation.js +174 -0
  370. package/dist/node_modules/react-day-picker/dist/esm/useAnimation.js.map +1 -0
  371. package/dist/node_modules/react-day-picker/dist/esm/useCalendar.js +114 -0
  372. package/dist/node_modules/react-day-picker/dist/esm/useCalendar.js.map +1 -0
  373. package/dist/node_modules/react-day-picker/dist/esm/useDayPicker.js +26 -0
  374. package/dist/node_modules/react-day-picker/dist/esm/useDayPicker.js.map +1 -0
  375. package/dist/node_modules/react-day-picker/dist/esm/useFocus.js +57 -0
  376. package/dist/node_modules/react-day-picker/dist/esm/useFocus.js.map +1 -0
  377. package/dist/node_modules/react-day-picker/dist/esm/useSelection.js +32 -0
  378. package/dist/node_modules/react-day-picker/dist/esm/useSelection.js.map +1 -0
  379. package/dist/node_modules/react-day-picker/dist/esm/utils/addToRange.js +96 -0
  380. package/dist/node_modules/react-day-picker/dist/esm/utils/addToRange.js.map +1 -0
  381. package/dist/node_modules/react-day-picker/dist/esm/utils/convertMatchersToTimeZone.js +62 -0
  382. package/dist/node_modules/react-day-picker/dist/esm/utils/convertMatchersToTimeZone.js.map +1 -0
  383. package/dist/node_modules/react-day-picker/dist/esm/utils/dateMatchModifiers.js +63 -0
  384. package/dist/node_modules/react-day-picker/dist/esm/utils/dateMatchModifiers.js.map +1 -0
  385. package/dist/node_modules/react-day-picker/dist/esm/utils/rangeContainsDayOfWeek.js +31 -0
  386. package/dist/node_modules/react-day-picker/dist/esm/utils/rangeContainsDayOfWeek.js.map +1 -0
  387. package/dist/node_modules/react-day-picker/dist/esm/utils/rangeContainsModifiers.js +75 -0
  388. package/dist/node_modules/react-day-picker/dist/esm/utils/rangeContainsModifiers.js.map +1 -0
  389. package/dist/node_modules/react-day-picker/dist/esm/utils/rangeIncludesDate.js +36 -0
  390. package/dist/node_modules/react-day-picker/dist/esm/utils/rangeIncludesDate.js.map +1 -0
  391. package/dist/node_modules/react-day-picker/dist/esm/utils/rangeOverlaps.js +22 -0
  392. package/dist/node_modules/react-day-picker/dist/esm/utils/rangeOverlaps.js.map +1 -0
  393. package/dist/node_modules/react-day-picker/dist/esm/utils/toTimeZone.js +17 -0
  394. package/dist/node_modules/react-day-picker/dist/esm/utils/toTimeZone.js.map +1 -0
  395. package/dist/node_modules/react-day-picker/dist/esm/utils/typeguards.js +67 -0
  396. package/dist/node_modules/react-day-picker/dist/esm/utils/typeguards.js.map +1 -0
  397. package/dist/utilities/Icons.d.ts +33 -0
  398. package/dist/utils.js.map +1 -1
  399. package/package.json +84 -9
@@ -0,0 +1,135 @@
1
+ import { buildMatchFn } from '../../_lib/buildMatchFn.js';
2
+ import { buildMatchPatternFn } from '../../_lib/buildMatchPatternFn.js';
3
+
4
+ const matchOrdinalNumberPattern = /^(\d+)(th|st|nd|rd)?/i;
5
+ const parseOrdinalNumberPattern = /\d+/i;
6
+
7
+ const matchEraPatterns = {
8
+ narrow: /^(b|a)/i,
9
+ abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
10
+ wide: /^(before christ|before common era|anno domini|common era)/i,
11
+ };
12
+ const parseEraPatterns = {
13
+ any: [/^b/i, /^(a|c)/i],
14
+ };
15
+
16
+ const matchQuarterPatterns = {
17
+ narrow: /^[1234]/i,
18
+ abbreviated: /^q[1234]/i,
19
+ wide: /^[1234](th|st|nd|rd)? quarter/i,
20
+ };
21
+ const parseQuarterPatterns = {
22
+ any: [/1/i, /2/i, /3/i, /4/i],
23
+ };
24
+
25
+ const matchMonthPatterns = {
26
+ narrow: /^[jfmasond]/i,
27
+ abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
28
+ wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i,
29
+ };
30
+ const parseMonthPatterns = {
31
+ narrow: [
32
+ /^j/i,
33
+ /^f/i,
34
+ /^m/i,
35
+ /^a/i,
36
+ /^m/i,
37
+ /^j/i,
38
+ /^j/i,
39
+ /^a/i,
40
+ /^s/i,
41
+ /^o/i,
42
+ /^n/i,
43
+ /^d/i,
44
+ ],
45
+
46
+ any: [
47
+ /^ja/i,
48
+ /^f/i,
49
+ /^mar/i,
50
+ /^ap/i,
51
+ /^may/i,
52
+ /^jun/i,
53
+ /^jul/i,
54
+ /^au/i,
55
+ /^s/i,
56
+ /^o/i,
57
+ /^n/i,
58
+ /^d/i,
59
+ ],
60
+ };
61
+
62
+ const matchDayPatterns = {
63
+ narrow: /^[smtwf]/i,
64
+ short: /^(su|mo|tu|we|th|fr|sa)/i,
65
+ abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
66
+ wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i,
67
+ };
68
+ const parseDayPatterns = {
69
+ narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
70
+ any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i],
71
+ };
72
+
73
+ const matchDayPeriodPatterns = {
74
+ narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
75
+ any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i,
76
+ };
77
+ const parseDayPeriodPatterns = {
78
+ any: {
79
+ am: /^a/i,
80
+ pm: /^p/i,
81
+ midnight: /^mi/i,
82
+ noon: /^no/i,
83
+ morning: /morning/i,
84
+ afternoon: /afternoon/i,
85
+ evening: /evening/i,
86
+ night: /night/i,
87
+ },
88
+ };
89
+
90
+ const match = {
91
+ ordinalNumber: buildMatchPatternFn({
92
+ matchPattern: matchOrdinalNumberPattern,
93
+ parsePattern: parseOrdinalNumberPattern,
94
+ valueCallback: (value) => parseInt(value, 10),
95
+ }),
96
+
97
+ era: buildMatchFn({
98
+ matchPatterns: matchEraPatterns,
99
+ defaultMatchWidth: "wide",
100
+ parsePatterns: parseEraPatterns,
101
+ defaultParseWidth: "any",
102
+ }),
103
+
104
+ quarter: buildMatchFn({
105
+ matchPatterns: matchQuarterPatterns,
106
+ defaultMatchWidth: "wide",
107
+ parsePatterns: parseQuarterPatterns,
108
+ defaultParseWidth: "any",
109
+ valueCallback: (index) => index + 1,
110
+ }),
111
+
112
+ month: buildMatchFn({
113
+ matchPatterns: matchMonthPatterns,
114
+ defaultMatchWidth: "wide",
115
+ parsePatterns: parseMonthPatterns,
116
+ defaultParseWidth: "any",
117
+ }),
118
+
119
+ day: buildMatchFn({
120
+ matchPatterns: matchDayPatterns,
121
+ defaultMatchWidth: "wide",
122
+ parsePatterns: parseDayPatterns,
123
+ defaultParseWidth: "any",
124
+ }),
125
+
126
+ dayPeriod: buildMatchFn({
127
+ matchPatterns: matchDayPeriodPatterns,
128
+ defaultMatchWidth: "any",
129
+ parsePatterns: parseDayPeriodPatterns,
130
+ defaultParseWidth: "any",
131
+ }),
132
+ };
133
+
134
+ export { match };
135
+ //# sourceMappingURL=match.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"match.js","sources":["../../../../../../node_modules/date-fns/locale/en-US/_lib/match.js"],"sourcesContent":["import { buildMatchFn } from \"../../_lib/buildMatchFn.js\";\nimport { buildMatchPatternFn } from \"../../_lib/buildMatchPatternFn.js\";\n\nconst matchOrdinalNumberPattern = /^(\\d+)(th|st|nd|rd)?/i;\nconst parseOrdinalNumberPattern = /\\d+/i;\n\nconst matchEraPatterns = {\n narrow: /^(b|a)/i,\n abbreviated: /^(b\\.?\\s?c\\.?|b\\.?\\s?c\\.?\\s?e\\.?|a\\.?\\s?d\\.?|c\\.?\\s?e\\.?)/i,\n wide: /^(before christ|before common era|anno domini|common era)/i,\n};\nconst parseEraPatterns = {\n any: [/^b/i, /^(a|c)/i],\n};\n\nconst matchQuarterPatterns = {\n narrow: /^[1234]/i,\n abbreviated: /^q[1234]/i,\n wide: /^[1234](th|st|nd|rd)? quarter/i,\n};\nconst parseQuarterPatterns = {\n any: [/1/i, /2/i, /3/i, /4/i],\n};\n\nconst matchMonthPatterns = {\n narrow: /^[jfmasond]/i,\n abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,\n wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i,\n};\nconst parseMonthPatterns = {\n narrow: [\n /^j/i,\n /^f/i,\n /^m/i,\n /^a/i,\n /^m/i,\n /^j/i,\n /^j/i,\n /^a/i,\n /^s/i,\n /^o/i,\n /^n/i,\n /^d/i,\n ],\n\n any: [\n /^ja/i,\n /^f/i,\n /^mar/i,\n /^ap/i,\n /^may/i,\n /^jun/i,\n /^jul/i,\n /^au/i,\n /^s/i,\n /^o/i,\n /^n/i,\n /^d/i,\n ],\n};\n\nconst matchDayPatterns = {\n narrow: /^[smtwf]/i,\n short: /^(su|mo|tu|we|th|fr|sa)/i,\n abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,\n wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i,\n};\nconst parseDayPatterns = {\n narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],\n any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i],\n};\n\nconst matchDayPeriodPatterns = {\n narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,\n any: /^([ap]\\.?\\s?m\\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i,\n};\nconst parseDayPeriodPatterns = {\n any: {\n am: /^a/i,\n pm: /^p/i,\n midnight: /^mi/i,\n noon: /^no/i,\n morning: /morning/i,\n afternoon: /afternoon/i,\n evening: /evening/i,\n night: /night/i,\n },\n};\n\nexport const match = {\n ordinalNumber: buildMatchPatternFn({\n matchPattern: matchOrdinalNumberPattern,\n parsePattern: parseOrdinalNumberPattern,\n valueCallback: (value) => parseInt(value, 10),\n }),\n\n era: buildMatchFn({\n matchPatterns: matchEraPatterns,\n defaultMatchWidth: \"wide\",\n parsePatterns: parseEraPatterns,\n defaultParseWidth: \"any\",\n }),\n\n quarter: buildMatchFn({\n matchPatterns: matchQuarterPatterns,\n defaultMatchWidth: \"wide\",\n parsePatterns: parseQuarterPatterns,\n defaultParseWidth: \"any\",\n valueCallback: (index) => index + 1,\n }),\n\n month: buildMatchFn({\n matchPatterns: matchMonthPatterns,\n defaultMatchWidth: \"wide\",\n parsePatterns: parseMonthPatterns,\n defaultParseWidth: \"any\",\n }),\n\n day: buildMatchFn({\n matchPatterns: matchDayPatterns,\n defaultMatchWidth: \"wide\",\n parsePatterns: parseDayPatterns,\n defaultParseWidth: \"any\",\n }),\n\n dayPeriod: buildMatchFn({\n matchPatterns: matchDayPeriodPatterns,\n defaultMatchWidth: \"any\",\n parsePatterns: parseDayPeriodPatterns,\n defaultParseWidth: \"any\",\n }),\n};\n"],"names":[],"mappings":";;;AAGA,MAAM,yBAAyB,GAAG,uBAAuB;AACzD,MAAM,yBAAyB,GAAG,MAAM;;AAExC,MAAM,gBAAgB,GAAG;AACzB,EAAE,MAAM,EAAE,SAAS;AACnB,EAAE,WAAW,EAAE,4DAA4D;AAC3E,EAAE,IAAI,EAAE,4DAA4D;AACpE,CAAC;AACD,MAAM,gBAAgB,GAAG;AACzB,EAAE,GAAG,EAAE,CAAC,KAAK,EAAE,SAAS,CAAC;AACzB,CAAC;;AAED,MAAM,oBAAoB,GAAG;AAC7B,EAAE,MAAM,EAAE,UAAU;AACpB,EAAE,WAAW,EAAE,WAAW;AAC1B,EAAE,IAAI,EAAE,gCAAgC;AACxC,CAAC;AACD,MAAM,oBAAoB,GAAG;AAC7B,EAAE,GAAG,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC;AAC/B,CAAC;;AAED,MAAM,kBAAkB,GAAG;AAC3B,EAAE,MAAM,EAAE,cAAc;AACxB,EAAE,WAAW,EAAE,qDAAqD;AACpE,EAAE,IAAI,EAAE,2FAA2F;AACnG,CAAC;AACD,MAAM,kBAAkB,GAAG;AAC3B,EAAE,MAAM,EAAE;AACV,IAAI,KAAK;AACT,IAAI,KAAK;AACT,IAAI,KAAK;AACT,IAAI,KAAK;AACT,IAAI,KAAK;AACT,IAAI,KAAK;AACT,IAAI,KAAK;AACT,IAAI,KAAK;AACT,IAAI,KAAK;AACT,IAAI,KAAK;AACT,IAAI,KAAK;AACT,IAAI,KAAK;AACT,GAAG;;AAEH,EAAE,GAAG,EAAE;AACP,IAAI,MAAM;AACV,IAAI,KAAK;AACT,IAAI,OAAO;AACX,IAAI,MAAM;AACV,IAAI,OAAO;AACX,IAAI,OAAO;AACX,IAAI,OAAO;AACX,IAAI,MAAM;AACV,IAAI,KAAK;AACT,IAAI,KAAK;AACT,IAAI,KAAK;AACT,IAAI,KAAK;AACT,GAAG;AACH,CAAC;;AAED,MAAM,gBAAgB,GAAG;AACzB,EAAE,MAAM,EAAE,WAAW;AACrB,EAAE,KAAK,EAAE,0BAA0B;AACnC,EAAE,WAAW,EAAE,iCAAiC;AAChD,EAAE,IAAI,EAAE,8DAA8D;AACtE,CAAC;AACD,MAAM,gBAAgB,GAAG;AACzB,EAAE,MAAM,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC;AAC3D,EAAE,GAAG,EAAE,CAAC,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,CAAC;AAC5D,CAAC;;AAED,MAAM,sBAAsB,GAAG;AAC/B,EAAE,MAAM,EAAE,4DAA4D;AACtE,EAAE,GAAG,EAAE,gFAAgF;AACvF,CAAC;AACD,MAAM,sBAAsB,GAAG;AAC/B,EAAE,GAAG,EAAE;AACP,IAAI,EAAE,EAAE,KAAK;AACb,IAAI,EAAE,EAAE,KAAK;AACb,IAAI,QAAQ,EAAE,MAAM;AACpB,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,UAAU;AACvB,IAAI,SAAS,EAAE,YAAY;AAC3B,IAAI,OAAO,EAAE,UAAU;AACvB,IAAI,KAAK,EAAE,QAAQ;AACnB,GAAG;AACH,CAAC;;AAEW,MAAC,KAAK,GAAG;AACrB,EAAE,aAAa,EAAE,mBAAmB,CAAC;AACrC,IAAI,YAAY,EAAE,yBAAyB;AAC3C,IAAI,YAAY,EAAE,yBAAyB;AAC3C,IAAI,aAAa,EAAE,CAAC,KAAK,KAAK,QAAQ,CAAC,KAAK,EAAE,EAAE,CAAC;AACjD,GAAG,CAAC;;AAEJ,EAAE,GAAG,EAAE,YAAY,CAAC;AACpB,IAAI,aAAa,EAAE,gBAAgB;AACnC,IAAI,iBAAiB,EAAE,MAAM;AAC7B,IAAI,aAAa,EAAE,gBAAgB;AACnC,IAAI,iBAAiB,EAAE,KAAK;AAC5B,GAAG,CAAC;;AAEJ,EAAE,OAAO,EAAE,YAAY,CAAC;AACxB,IAAI,aAAa,EAAE,oBAAoB;AACvC,IAAI,iBAAiB,EAAE,MAAM;AAC7B,IAAI,aAAa,EAAE,oBAAoB;AACvC,IAAI,iBAAiB,EAAE,KAAK;AAC5B,IAAI,aAAa,EAAE,CAAC,KAAK,KAAK,KAAK,GAAG,CAAC;AACvC,GAAG,CAAC;;AAEJ,EAAE,KAAK,EAAE,YAAY,CAAC;AACtB,IAAI,aAAa,EAAE,kBAAkB;AACrC,IAAI,iBAAiB,EAAE,MAAM;AAC7B,IAAI,aAAa,EAAE,kBAAkB;AACrC,IAAI,iBAAiB,EAAE,KAAK;AAC5B,GAAG,CAAC;;AAEJ,EAAE,GAAG,EAAE,YAAY,CAAC;AACpB,IAAI,aAAa,EAAE,gBAAgB;AACnC,IAAI,iBAAiB,EAAE,MAAM;AAC7B,IAAI,aAAa,EAAE,gBAAgB;AACnC,IAAI,iBAAiB,EAAE,KAAK;AAC5B,GAAG,CAAC;;AAEJ,EAAE,SAAS,EAAE,YAAY,CAAC;AAC1B,IAAI,aAAa,EAAE,sBAAsB;AACzC,IAAI,iBAAiB,EAAE,KAAK;AAC5B,IAAI,aAAa,EAAE,sBAAsB;AACzC,IAAI,iBAAiB,EAAE,KAAK;AAC5B,GAAG,CAAC;AACJ;;;;","x_google_ignoreList":[0]}
@@ -0,0 +1,29 @@
1
+ import { formatDistance } from './en-US/_lib/formatDistance.js';
2
+ import { formatLong } from './en-US/_lib/formatLong.js';
3
+ import { formatRelative } from './en-US/_lib/formatRelative.js';
4
+ import { localize } from './en-US/_lib/localize.js';
5
+ import { match } from './en-US/_lib/match.js';
6
+
7
+ /**
8
+ * @category Locales
9
+ * @summary English locale (United States).
10
+ * @language English
11
+ * @iso-639-2 eng
12
+ * @author Sasha Koss [@kossnocorp](https://github.com/kossnocorp)
13
+ * @author Lesha Koss [@leshakoss](https://github.com/leshakoss)
14
+ */
15
+ const enUS = {
16
+ code: "en-US",
17
+ formatDistance: formatDistance,
18
+ formatLong: formatLong,
19
+ formatRelative: formatRelative,
20
+ localize: localize,
21
+ match: match,
22
+ options: {
23
+ weekStartsOn: 0 /* Sunday */,
24
+ firstWeekContainsDate: 1,
25
+ },
26
+ };
27
+
28
+ export { enUS as default, enUS };
29
+ //# sourceMappingURL=en-US.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"en-US.js","sources":["../../../../node_modules/date-fns/locale/en-US.js"],"sourcesContent":["import { formatDistance } from \"./en-US/_lib/formatDistance.js\";\nimport { formatLong } from \"./en-US/_lib/formatLong.js\";\nimport { formatRelative } from \"./en-US/_lib/formatRelative.js\";\nimport { localize } from \"./en-US/_lib/localize.js\";\nimport { match } from \"./en-US/_lib/match.js\";\n\n/**\n * @category Locales\n * @summary English locale (United States).\n * @language English\n * @iso-639-2 eng\n * @author Sasha Koss [@kossnocorp](https://github.com/kossnocorp)\n * @author Lesha Koss [@leshakoss](https://github.com/leshakoss)\n */\nexport const enUS = {\n code: \"en-US\",\n formatDistance: formatDistance,\n formatLong: formatLong,\n formatRelative: formatRelative,\n localize: localize,\n match: match,\n options: {\n weekStartsOn: 0 /* Sunday */,\n firstWeekContainsDate: 1,\n },\n};\n\n// Fallback for modularized imports:\nexport default enUS;\n"],"names":[],"mappings":";;;;;;AAMA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACY,MAAC,IAAI,GAAG;AACpB,EAAE,IAAI,EAAE,OAAO;AACf,EAAE,cAAc,EAAE,cAAc;AAChC,EAAE,UAAU,EAAE,UAAU;AACxB,EAAE,cAAc,EAAE,cAAc;AAChC,EAAE,QAAQ,EAAE,QAAQ;AACpB,EAAE,KAAK,EAAE,KAAK;AACd,EAAE,OAAO,EAAE;AACX,IAAI,YAAY,EAAE,CAAC;AACnB,IAAI,qBAAqB,EAAE,CAAC;AAC5B,GAAG;AACH;;;;","x_google_ignoreList":[0]}
@@ -0,0 +1,50 @@
1
+ import { constructFrom } from './constructFrom.js';
2
+ import { toDate } from './toDate.js';
3
+
4
+ /**
5
+ * The {@link max} function options.
6
+ */
7
+
8
+ /**
9
+ * @name max
10
+ * @category Common Helpers
11
+ * @summary Return the latest of the given dates.
12
+ *
13
+ * @description
14
+ * Return the latest of the given dates.
15
+ *
16
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
17
+ * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.
18
+ *
19
+ * @param dates - The dates to compare
20
+ *
21
+ * @returns The latest of the dates
22
+ *
23
+ * @example
24
+ * // Which of these dates is the latest?
25
+ * const result = max([
26
+ * new Date(1989, 6, 10),
27
+ * new Date(1987, 1, 11),
28
+ * new Date(1995, 6, 2),
29
+ * new Date(1990, 0, 1)
30
+ * ])
31
+ * //=> Sun Jul 02 1995 00:00:00
32
+ */
33
+ function max(dates, options) {
34
+ let result;
35
+ let context = options?.in;
36
+
37
+ dates.forEach((date) => {
38
+ // Use the first date object as the context function
39
+ if (!context && typeof date === "object")
40
+ context = constructFrom.bind(null, date);
41
+
42
+ const date_ = toDate(date, context);
43
+ if (!result || result < date_ || isNaN(+date_)) result = date_;
44
+ });
45
+
46
+ return constructFrom(context, result || NaN);
47
+ }
48
+
49
+ export { max as default, max };
50
+ //# sourceMappingURL=max.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"max.js","sources":["../../../node_modules/date-fns/max.js"],"sourcesContent":["import { constructFrom } from \"./constructFrom.js\";\nimport { toDate } from \"./toDate.js\";\n\n/**\n * The {@link max} function options.\n */\n\n/**\n * @name max\n * @category Common Helpers\n * @summary Return the latest of the given dates.\n *\n * @description\n * Return the latest of the given dates.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.\n *\n * @param dates - The dates to compare\n *\n * @returns The latest of the dates\n *\n * @example\n * // Which of these dates is the latest?\n * const result = max([\n * new Date(1989, 6, 10),\n * new Date(1987, 1, 11),\n * new Date(1995, 6, 2),\n * new Date(1990, 0, 1)\n * ])\n * //=> Sun Jul 02 1995 00:00:00\n */\nexport function max(dates, options) {\n let result;\n let context = options?.in;\n\n dates.forEach((date) => {\n // Use the first date object as the context function\n if (!context && typeof date === \"object\")\n context = constructFrom.bind(null, date);\n\n const date_ = toDate(date, context);\n if (!result || result < date_ || isNaN(+date_)) result = date_;\n });\n\n return constructFrom(context, result || NaN);\n}\n\n// Fallback for modularized imports:\nexport default max;\n"],"names":[],"mappings":";;;AAGA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAAS,GAAG,CAAC,KAAK,EAAE,OAAO,EAAE;AACpC,EAAE,IAAI,MAAM;AACZ,EAAE,IAAI,OAAO,GAAG,OAAO,EAAE,EAAE;;AAE3B,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,IAAI,KAAK;AAC1B;AACA,IAAI,IAAI,CAAC,OAAO,IAAI,OAAO,IAAI,KAAK,QAAQ;AAC5C,MAAM,OAAO,GAAG,aAAa,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC;;AAE9C,IAAI,MAAM,KAAK,GAAG,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC;AACvC,IAAI,IAAI,CAAC,MAAM,IAAI,MAAM,GAAG,KAAK,IAAI,KAAK,CAAC,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,KAAK;AAClE,EAAE,CAAC,CAAC;;AAEJ,EAAE,OAAO,aAAa,CAAC,OAAO,EAAE,MAAM,IAAI,GAAG,CAAC;AAC9C;;;;","x_google_ignoreList":[0]}
@@ -0,0 +1,50 @@
1
+ import { constructFrom } from './constructFrom.js';
2
+ import { toDate } from './toDate.js';
3
+
4
+ /**
5
+ * The {@link min} function options.
6
+ */
7
+
8
+ /**
9
+ * @name min
10
+ * @category Common Helpers
11
+ * @summary Returns the earliest of the given dates.
12
+ *
13
+ * @description
14
+ * Returns the earliest of the given dates.
15
+ *
16
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
17
+ * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.
18
+ *
19
+ * @param dates - The dates to compare
20
+ *
21
+ * @returns The earliest of the dates
22
+ *
23
+ * @example
24
+ * // Which of these dates is the earliest?
25
+ * const result = min([
26
+ * new Date(1989, 6, 10),
27
+ * new Date(1987, 1, 11),
28
+ * new Date(1995, 6, 2),
29
+ * new Date(1990, 0, 1)
30
+ * ])
31
+ * //=> Wed Feb 11 1987 00:00:00
32
+ */
33
+ function min(dates, options) {
34
+ let result;
35
+ let context = options?.in;
36
+
37
+ dates.forEach((date) => {
38
+ // Use the first date object as the context function
39
+ if (!context && typeof date === "object")
40
+ context = constructFrom.bind(null, date);
41
+
42
+ const date_ = toDate(date, context);
43
+ if (!result || result > date_ || isNaN(+date_)) result = date_;
44
+ });
45
+
46
+ return constructFrom(context, result || NaN);
47
+ }
48
+
49
+ export { min as default, min };
50
+ //# sourceMappingURL=min.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"min.js","sources":["../../../node_modules/date-fns/min.js"],"sourcesContent":["import { constructFrom } from \"./constructFrom.js\";\nimport { toDate } from \"./toDate.js\";\n\n/**\n * The {@link min} function options.\n */\n\n/**\n * @name min\n * @category Common Helpers\n * @summary Returns the earliest of the given dates.\n *\n * @description\n * Returns the earliest of the given dates.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.\n *\n * @param dates - The dates to compare\n *\n * @returns The earliest of the dates\n *\n * @example\n * // Which of these dates is the earliest?\n * const result = min([\n * new Date(1989, 6, 10),\n * new Date(1987, 1, 11),\n * new Date(1995, 6, 2),\n * new Date(1990, 0, 1)\n * ])\n * //=> Wed Feb 11 1987 00:00:00\n */\nexport function min(dates, options) {\n let result;\n let context = options?.in;\n\n dates.forEach((date) => {\n // Use the first date object as the context function\n if (!context && typeof date === \"object\")\n context = constructFrom.bind(null, date);\n\n const date_ = toDate(date, context);\n if (!result || result > date_ || isNaN(+date_)) result = date_;\n });\n\n return constructFrom(context, result || NaN);\n}\n\n// Fallback for modularized imports:\nexport default min;\n"],"names":[],"mappings":";;;AAGA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAAS,GAAG,CAAC,KAAK,EAAE,OAAO,EAAE;AACpC,EAAE,IAAI,MAAM;AACZ,EAAE,IAAI,OAAO,GAAG,OAAO,EAAE,EAAE;;AAE3B,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,IAAI,KAAK;AAC1B;AACA,IAAI,IAAI,CAAC,OAAO,IAAI,OAAO,IAAI,KAAK,QAAQ;AAC5C,MAAM,OAAO,GAAG,aAAa,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC;;AAE9C,IAAI,MAAM,KAAK,GAAG,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC;AACvC,IAAI,IAAI,CAAC,MAAM,IAAI,MAAM,GAAG,KAAK,IAAI,KAAK,CAAC,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,KAAK;AAClE,EAAE,CAAC,CAAC;;AAEJ,EAAE,OAAO,aAAa,CAAC,OAAO,EAAE,MAAM,IAAI,GAAG,CAAC;AAC9C;;;;","x_google_ignoreList":[0]}
@@ -0,0 +1,47 @@
1
+ import { constructFrom } from './constructFrom.js';
2
+ import { getDaysInMonth } from './getDaysInMonth.js';
3
+ import { toDate } from './toDate.js';
4
+
5
+ /**
6
+ * The {@link setMonth} function options.
7
+ */
8
+
9
+ /**
10
+ * @name setMonth
11
+ * @category Month Helpers
12
+ * @summary Set the month to the given date.
13
+ *
14
+ * @description
15
+ * Set the month to the given date.
16
+ *
17
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
18
+ * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.
19
+ *
20
+ * @param date - The date to be changed
21
+ * @param month - The month index to set (0-11)
22
+ * @param options - The options
23
+ *
24
+ * @returns The new date with the month set
25
+ *
26
+ * @example
27
+ * // Set February to 1 September 2014:
28
+ * const result = setMonth(new Date(2014, 8, 1), 1)
29
+ * //=> Sat Feb 01 2014 00:00:00
30
+ */
31
+ function setMonth(date, month, options) {
32
+ const _date = toDate(date, options?.in);
33
+ const year = _date.getFullYear();
34
+ const day = _date.getDate();
35
+
36
+ const midMonth = constructFrom(date, 0);
37
+ midMonth.setFullYear(year, month, 15);
38
+ midMonth.setHours(0, 0, 0, 0);
39
+ const daysInMonth = getDaysInMonth(midMonth);
40
+
41
+ // Set the earlier date, allows to wrap Jan 31 to Feb 28
42
+ _date.setMonth(month, Math.min(day, daysInMonth));
43
+ return _date;
44
+ }
45
+
46
+ export { setMonth as default, setMonth };
47
+ //# sourceMappingURL=setMonth.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"setMonth.js","sources":["../../../node_modules/date-fns/setMonth.js"],"sourcesContent":["import { constructFrom } from \"./constructFrom.js\";\nimport { getDaysInMonth } from \"./getDaysInMonth.js\";\nimport { toDate } from \"./toDate.js\";\n\n/**\n * The {@link setMonth} function options.\n */\n\n/**\n * @name setMonth\n * @category Month Helpers\n * @summary Set the month to the given date.\n *\n * @description\n * Set the month to the given date.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.\n *\n * @param date - The date to be changed\n * @param month - The month index to set (0-11)\n * @param options - The options\n *\n * @returns The new date with the month set\n *\n * @example\n * // Set February to 1 September 2014:\n * const result = setMonth(new Date(2014, 8, 1), 1)\n * //=> Sat Feb 01 2014 00:00:00\n */\nexport function setMonth(date, month, options) {\n const _date = toDate(date, options?.in);\n const year = _date.getFullYear();\n const day = _date.getDate();\n\n const midMonth = constructFrom(options?.in || date, 0);\n midMonth.setFullYear(year, month, 15);\n midMonth.setHours(0, 0, 0, 0);\n const daysInMonth = getDaysInMonth(midMonth);\n\n // Set the earlier date, allows to wrap Jan 31 to Feb 28\n _date.setMonth(month, Math.min(day, daysInMonth));\n return _date;\n}\n\n// Fallback for modularized imports:\nexport default setMonth;\n"],"names":[],"mappings":";;;;AAIA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAAS,QAAQ,CAAC,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE;AAC/C,EAAE,MAAM,KAAK,GAAG,MAAM,CAAC,IAAI,EAAE,OAAO,EAAE,EAAE,CAAC;AACzC,EAAE,MAAM,IAAI,GAAG,KAAK,CAAC,WAAW,EAAE;AAClC,EAAE,MAAM,GAAG,GAAG,KAAK,CAAC,OAAO,EAAE;;AAE7B,EAAE,MAAM,QAAQ,GAAG,aAAa,CAAgB,IAAI,EAAE,CAAC,CAAC;AACxD,EAAE,QAAQ,CAAC,WAAW,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC;AACvC,EAAE,QAAQ,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;AAC/B,EAAE,MAAM,WAAW,GAAG,cAAc,CAAC,QAAQ,CAAC;;AAE9C;AACA,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,EAAE,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,WAAW,CAAC,CAAC;AACnD,EAAE,OAAO,KAAK;AACd;;;;","x_google_ignoreList":[0]}
@@ -0,0 +1,41 @@
1
+ import { constructFrom } from './constructFrom.js';
2
+ import { toDate } from './toDate.js';
3
+
4
+ /**
5
+ * The {@link setYear} function options.
6
+ */
7
+
8
+ /**
9
+ * @name setYear
10
+ * @category Year Helpers
11
+ * @summary Set the year to the given date.
12
+ *
13
+ * @description
14
+ * Set the year to the given date.
15
+ *
16
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
17
+ * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.
18
+ *
19
+ * @param date - The date to be changed
20
+ * @param year - The year of the new date
21
+ * @param options - An object with options.
22
+ *
23
+ * @returns The new date with the year set
24
+ *
25
+ * @example
26
+ * // Set year 2013 to 1 September 2014:
27
+ * const result = setYear(new Date(2014, 8, 1), 2013)
28
+ * //=> Sun Sep 01 2013 00:00:00
29
+ */
30
+ function setYear(date, year, options) {
31
+ const date_ = toDate(date, options?.in);
32
+
33
+ // Check if date is Invalid Date because Date.prototype.setFullYear ignores the value of Invalid Date
34
+ if (isNaN(+date_)) return constructFrom(date, NaN);
35
+
36
+ date_.setFullYear(year);
37
+ return date_;
38
+ }
39
+
40
+ export { setYear as default, setYear };
41
+ //# sourceMappingURL=setYear.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"setYear.js","sources":["../../../node_modules/date-fns/setYear.js"],"sourcesContent":["import { constructFrom } from \"./constructFrom.js\";\nimport { toDate } from \"./toDate.js\";\n\n/**\n * The {@link setYear} function options.\n */\n\n/**\n * @name setYear\n * @category Year Helpers\n * @summary Set the year to the given date.\n *\n * @description\n * Set the year to the given date.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.\n *\n * @param date - The date to be changed\n * @param year - The year of the new date\n * @param options - An object with options.\n *\n * @returns The new date with the year set\n *\n * @example\n * // Set year 2013 to 1 September 2014:\n * const result = setYear(new Date(2014, 8, 1), 2013)\n * //=> Sun Sep 01 2013 00:00:00\n */\nexport function setYear(date, year, options) {\n const date_ = toDate(date, options?.in);\n\n // Check if date is Invalid Date because Date.prototype.setFullYear ignores the value of Invalid Date\n if (isNaN(+date_)) return constructFrom(options?.in || date, NaN);\n\n date_.setFullYear(year);\n return date_;\n}\n\n// Fallback for modularized imports:\nexport default setYear;\n"],"names":[],"mappings":";;;AAGA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAAS,OAAO,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE;AAC7C,EAAE,MAAM,KAAK,GAAG,MAAM,CAAC,IAAI,EAAE,OAAO,EAAE,EAAE,CAAC;;AAEzC;AACA,EAAE,IAAI,KAAK,CAAC,CAAC,KAAK,CAAC,EAAE,OAAO,aAAa,CAAgB,IAAI,EAAE,GAAG,CAAC;;AAEnE,EAAE,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC;AACzB,EAAE,OAAO,KAAK;AACd;;;;","x_google_ignoreList":[0]}
@@ -0,0 +1,36 @@
1
+ import { toDate } from './toDate.js';
2
+
3
+ /**
4
+ * The {@link startOfDay} function options.
5
+ */
6
+
7
+ /**
8
+ * @name startOfDay
9
+ * @category Day Helpers
10
+ * @summary Return the start of a day for the given date.
11
+ *
12
+ * @description
13
+ * Return the start of a day for the given date.
14
+ * The result will be in the local timezone.
15
+ *
16
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
17
+ * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.
18
+ *
19
+ * @param date - The original date
20
+ * @param options - The options
21
+ *
22
+ * @returns The start of a day
23
+ *
24
+ * @example
25
+ * // The start of a day for 2 September 2014 11:55:00:
26
+ * const result = startOfDay(new Date(2014, 8, 2, 11, 55, 0))
27
+ * //=> Tue Sep 02 2014 00:00:00
28
+ */
29
+ function startOfDay(date, options) {
30
+ const _date = toDate(date, options?.in);
31
+ _date.setHours(0, 0, 0, 0);
32
+ return _date;
33
+ }
34
+
35
+ export { startOfDay as default, startOfDay };
36
+ //# sourceMappingURL=startOfDay.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"startOfDay.js","sources":["../../../node_modules/date-fns/startOfDay.js"],"sourcesContent":["import { toDate } from \"./toDate.js\";\n\n/**\n * The {@link startOfDay} function options.\n */\n\n/**\n * @name startOfDay\n * @category Day Helpers\n * @summary Return the start of a day for the given date.\n *\n * @description\n * Return the start of a day for the given date.\n * The result will be in the local timezone.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.\n *\n * @param date - The original date\n * @param options - The options\n *\n * @returns The start of a day\n *\n * @example\n * // The start of a day for 2 September 2014 11:55:00:\n * const result = startOfDay(new Date(2014, 8, 2, 11, 55, 0))\n * //=> Tue Sep 02 2014 00:00:00\n */\nexport function startOfDay(date, options) {\n const _date = toDate(date, options?.in);\n _date.setHours(0, 0, 0, 0);\n return _date;\n}\n\n// Fallback for modularized imports:\nexport default startOfDay;\n"],"names":[],"mappings":";;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAAS,UAAU,CAAC,IAAI,EAAE,OAAO,EAAE;AAC1C,EAAE,MAAM,KAAK,GAAG,MAAM,CAAC,IAAI,EAAE,OAAO,EAAE,EAAE,CAAC;AACzC,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;AAC5B,EAAE,OAAO,KAAK;AACd;;;;","x_google_ignoreList":[0]}
@@ -0,0 +1,36 @@
1
+ import { startOfWeek } from './startOfWeek.js';
2
+
3
+ /**
4
+ * The {@link startOfISOWeek} function options.
5
+ */
6
+
7
+ /**
8
+ * @name startOfISOWeek
9
+ * @category ISO Week Helpers
10
+ * @summary Return the start of an ISO week for the given date.
11
+ *
12
+ * @description
13
+ * Return the start of an ISO week for the given date.
14
+ * The result will be in the local timezone.
15
+ *
16
+ * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date
17
+ *
18
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
19
+ * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.
20
+ *
21
+ * @param date - The original date
22
+ * @param options - An object with options
23
+ *
24
+ * @returns The start of an ISO week
25
+ *
26
+ * @example
27
+ * // The start of an ISO week for 2 September 2014 11:55:00:
28
+ * const result = startOfISOWeek(new Date(2014, 8, 2, 11, 55, 0))
29
+ * //=> Mon Sep 01 2014 00:00:00
30
+ */
31
+ function startOfISOWeek(date, options) {
32
+ return startOfWeek(date, { ...options, weekStartsOn: 1 });
33
+ }
34
+
35
+ export { startOfISOWeek as default, startOfISOWeek };
36
+ //# sourceMappingURL=startOfISOWeek.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"startOfISOWeek.js","sources":["../../../node_modules/date-fns/startOfISOWeek.js"],"sourcesContent":["import { startOfWeek } from \"./startOfWeek.js\";\n\n/**\n * The {@link startOfISOWeek} function options.\n */\n\n/**\n * @name startOfISOWeek\n * @category ISO Week Helpers\n * @summary Return the start of an ISO week for the given date.\n *\n * @description\n * Return the start of an ISO week for the given date.\n * The result will be in the local timezone.\n *\n * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.\n *\n * @param date - The original date\n * @param options - An object with options\n *\n * @returns The start of an ISO week\n *\n * @example\n * // The start of an ISO week for 2 September 2014 11:55:00:\n * const result = startOfISOWeek(new Date(2014, 8, 2, 11, 55, 0))\n * //=> Mon Sep 01 2014 00:00:00\n */\nexport function startOfISOWeek(date, options) {\n return startOfWeek(date, { ...options, weekStartsOn: 1 });\n}\n\n// Fallback for modularized imports:\nexport default startOfISOWeek;\n"],"names":[],"mappings":";;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAAS,cAAc,CAAC,IAAI,EAAE,OAAO,EAAE;AAC9C,EAAE,OAAO,WAAW,CAAC,IAAI,EAAE,EAAE,GAAG,OAAO,EAAE,YAAY,EAAE,CAAC,EAAE,CAAC;AAC3D;;;;","x_google_ignoreList":[0]}
@@ -0,0 +1,43 @@
1
+ import { constructFrom } from './constructFrom.js';
2
+ import { getISOWeekYear } from './getISOWeekYear.js';
3
+ import { startOfISOWeek } from './startOfISOWeek.js';
4
+
5
+ /**
6
+ * The {@link startOfISOWeekYear} function options.
7
+ */
8
+
9
+ /**
10
+ * @name startOfISOWeekYear
11
+ * @category ISO Week-Numbering Year Helpers
12
+ * @summary Return the start of an ISO week-numbering year for the given date.
13
+ *
14
+ * @description
15
+ * Return the start of an ISO week-numbering year,
16
+ * which always starts 3 days before the year's first Thursday.
17
+ * The result will be in the local timezone.
18
+ *
19
+ * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date
20
+ *
21
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
22
+ * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.
23
+ *
24
+ * @param date - The original date
25
+ * @param options - An object with options
26
+ *
27
+ * @returns The start of an ISO week-numbering year
28
+ *
29
+ * @example
30
+ * // The start of an ISO week-numbering year for 2 July 2005:
31
+ * const result = startOfISOWeekYear(new Date(2005, 6, 2))
32
+ * //=> Mon Jan 03 2005 00:00:00
33
+ */
34
+ function startOfISOWeekYear(date, options) {
35
+ const year = getISOWeekYear(date, options);
36
+ const fourthOfJanuary = constructFrom(date, 0);
37
+ fourthOfJanuary.setFullYear(year, 0, 4);
38
+ fourthOfJanuary.setHours(0, 0, 0, 0);
39
+ return startOfISOWeek(fourthOfJanuary);
40
+ }
41
+
42
+ export { startOfISOWeekYear as default, startOfISOWeekYear };
43
+ //# sourceMappingURL=startOfISOWeekYear.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"startOfISOWeekYear.js","sources":["../../../node_modules/date-fns/startOfISOWeekYear.js"],"sourcesContent":["import { constructFrom } from \"./constructFrom.js\";\nimport { getISOWeekYear } from \"./getISOWeekYear.js\";\nimport { startOfISOWeek } from \"./startOfISOWeek.js\";\n\n/**\n * The {@link startOfISOWeekYear} function options.\n */\n\n/**\n * @name startOfISOWeekYear\n * @category ISO Week-Numbering Year Helpers\n * @summary Return the start of an ISO week-numbering year for the given date.\n *\n * @description\n * Return the start of an ISO week-numbering year,\n * which always starts 3 days before the year's first Thursday.\n * The result will be in the local timezone.\n *\n * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.\n *\n * @param date - The original date\n * @param options - An object with options\n *\n * @returns The start of an ISO week-numbering year\n *\n * @example\n * // The start of an ISO week-numbering year for 2 July 2005:\n * const result = startOfISOWeekYear(new Date(2005, 6, 2))\n * //=> Mon Jan 03 2005 00:00:00\n */\nexport function startOfISOWeekYear(date, options) {\n const year = getISOWeekYear(date, options);\n const fourthOfJanuary = constructFrom(options?.in || date, 0);\n fourthOfJanuary.setFullYear(year, 0, 4);\n fourthOfJanuary.setHours(0, 0, 0, 0);\n return startOfISOWeek(fourthOfJanuary);\n}\n\n// Fallback for modularized imports:\nexport default startOfISOWeekYear;\n"],"names":[],"mappings":";;;;AAIA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAAS,kBAAkB,CAAC,IAAI,EAAE,OAAO,EAAE;AAClD,EAAE,MAAM,IAAI,GAAG,cAAc,CAAC,IAAI,EAAE,OAAO,CAAC;AAC5C,EAAE,MAAM,eAAe,GAAG,aAAa,CAAgB,IAAI,EAAE,CAAC,CAAC;AAC/D,EAAE,eAAe,CAAC,WAAW,CAAC,IAAI,EAAE,CAAC,EAAE,CAAC,CAAC;AACzC,EAAE,eAAe,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;AACtC,EAAE,OAAO,cAAc,CAAC,eAAe,CAAC;AACxC;;;;","x_google_ignoreList":[0]}
@@ -0,0 +1,38 @@
1
+ import { toDate } from './toDate.js';
2
+
3
+ /**
4
+ * The {@link startOfMonth} function options.
5
+ */
6
+
7
+ /**
8
+ * @name startOfMonth
9
+ * @category Month Helpers
10
+ * @summary Return the start of a month for the given date.
11
+ *
12
+ * @description
13
+ * Return the start of a month for the given date. The result will be in the local timezone.
14
+ *
15
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments.
16
+ * Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
17
+ * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed,
18
+ * or inferred from the arguments.
19
+ *
20
+ * @param date - The original date
21
+ * @param options - An object with options
22
+ *
23
+ * @returns The start of a month
24
+ *
25
+ * @example
26
+ * // The start of a month for 2 September 2014 11:55:00:
27
+ * const result = startOfMonth(new Date(2014, 8, 2, 11, 55, 0))
28
+ * //=> Mon Sep 01 2014 00:00:00
29
+ */
30
+ function startOfMonth(date, options) {
31
+ const _date = toDate(date, options?.in);
32
+ _date.setDate(1);
33
+ _date.setHours(0, 0, 0, 0);
34
+ return _date;
35
+ }
36
+
37
+ export { startOfMonth as default, startOfMonth };
38
+ //# sourceMappingURL=startOfMonth.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"startOfMonth.js","sources":["../../../node_modules/date-fns/startOfMonth.js"],"sourcesContent":["import { toDate } from \"./toDate.js\";\n\n/**\n * The {@link startOfMonth} function options.\n */\n\n/**\n * @name startOfMonth\n * @category Month Helpers\n * @summary Return the start of a month for the given date.\n *\n * @description\n * Return the start of a month for the given date. The result will be in the local timezone.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments.\n * Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed,\n * or inferred from the arguments.\n *\n * @param date - The original date\n * @param options - An object with options\n *\n * @returns The start of a month\n *\n * @example\n * // The start of a month for 2 September 2014 11:55:00:\n * const result = startOfMonth(new Date(2014, 8, 2, 11, 55, 0))\n * //=> Mon Sep 01 2014 00:00:00\n */\nexport function startOfMonth(date, options) {\n const _date = toDate(date, options?.in);\n _date.setDate(1);\n _date.setHours(0, 0, 0, 0);\n return _date;\n}\n\n// Fallback for modularized imports:\nexport default startOfMonth;\n"],"names":[],"mappings":";;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAAS,YAAY,CAAC,IAAI,EAAE,OAAO,EAAE;AAC5C,EAAE,MAAM,KAAK,GAAG,MAAM,CAAC,IAAI,EAAE,OAAO,EAAE,EAAE,CAAC;AACzC,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;AAClB,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;AAC5B,EAAE,OAAO,KAAK;AACd;;;;","x_google_ignoreList":[0]}
@@ -0,0 +1,54 @@
1
+ import { getDefaultOptions } from './_lib/defaultOptions.js';
2
+ import { toDate } from './toDate.js';
3
+
4
+ /**
5
+ * The {@link startOfWeek} function options.
6
+ */
7
+
8
+ /**
9
+ * @name startOfWeek
10
+ * @category Week Helpers
11
+ * @summary Return the start of a week for the given date.
12
+ *
13
+ * @description
14
+ * Return the start of a week for the given date.
15
+ * The result will be in the local timezone.
16
+ *
17
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
18
+ * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.
19
+ *
20
+ * @param date - The original date
21
+ * @param options - An object with options
22
+ *
23
+ * @returns The start of a week
24
+ *
25
+ * @example
26
+ * // The start of a week for 2 September 2014 11:55:00:
27
+ * const result = startOfWeek(new Date(2014, 8, 2, 11, 55, 0))
28
+ * //=> Sun Aug 31 2014 00:00:00
29
+ *
30
+ * @example
31
+ * // If the week starts on Monday, the start of the week for 2 September 2014 11:55:00:
32
+ * const result = startOfWeek(new Date(2014, 8, 2, 11, 55, 0), { weekStartsOn: 1 })
33
+ * //=> Mon Sep 01 2014 00:00:00
34
+ */
35
+ function startOfWeek(date, options) {
36
+ const defaultOptions = getDefaultOptions();
37
+ const weekStartsOn =
38
+ options?.weekStartsOn ??
39
+ options?.locale?.options?.weekStartsOn ??
40
+ defaultOptions.weekStartsOn ??
41
+ defaultOptions.locale?.options?.weekStartsOn ??
42
+ 0;
43
+
44
+ const _date = toDate(date, options?.in);
45
+ const day = _date.getDay();
46
+ const diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn;
47
+
48
+ _date.setDate(_date.getDate() - diff);
49
+ _date.setHours(0, 0, 0, 0);
50
+ return _date;
51
+ }
52
+
53
+ export { startOfWeek as default, startOfWeek };
54
+ //# sourceMappingURL=startOfWeek.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"startOfWeek.js","sources":["../../../node_modules/date-fns/startOfWeek.js"],"sourcesContent":["import { getDefaultOptions } from \"./_lib/defaultOptions.js\";\nimport { toDate } from \"./toDate.js\";\n\n/**\n * The {@link startOfWeek} function options.\n */\n\n/**\n * @name startOfWeek\n * @category Week Helpers\n * @summary Return the start of a week for the given date.\n *\n * @description\n * Return the start of a week for the given date.\n * The result will be in the local timezone.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.\n *\n * @param date - The original date\n * @param options - An object with options\n *\n * @returns The start of a week\n *\n * @example\n * // The start of a week for 2 September 2014 11:55:00:\n * const result = startOfWeek(new Date(2014, 8, 2, 11, 55, 0))\n * //=> Sun Aug 31 2014 00:00:00\n *\n * @example\n * // If the week starts on Monday, the start of the week for 2 September 2014 11:55:00:\n * const result = startOfWeek(new Date(2014, 8, 2, 11, 55, 0), { weekStartsOn: 1 })\n * //=> Mon Sep 01 2014 00:00:00\n */\nexport function startOfWeek(date, options) {\n const defaultOptions = getDefaultOptions();\n const weekStartsOn =\n options?.weekStartsOn ??\n options?.locale?.options?.weekStartsOn ??\n defaultOptions.weekStartsOn ??\n defaultOptions.locale?.options?.weekStartsOn ??\n 0;\n\n const _date = toDate(date, options?.in);\n const day = _date.getDay();\n const diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn;\n\n _date.setDate(_date.getDate() - diff);\n _date.setHours(0, 0, 0, 0);\n return _date;\n}\n\n// Fallback for modularized imports:\nexport default startOfWeek;\n"],"names":[],"mappings":";;;AAGA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAAS,WAAW,CAAC,IAAI,EAAE,OAAO,EAAE;AAC3C,EAAE,MAAM,cAAc,GAAG,iBAAiB,EAAE;AAC5C,EAAE,MAAM,YAAY;AACpB,IAAI,OAAO,EAAE,YAAY;AACzB,IAAI,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,YAAY;AAC1C,IAAI,cAAc,CAAC,YAAY;AAC/B,IAAI,cAAc,CAAC,MAAM,EAAE,OAAO,EAAE,YAAY;AAChD,IAAI,CAAC;;AAEL,EAAE,MAAM,KAAK,GAAG,MAAM,CAAC,IAAI,EAAE,OAAO,EAAE,EAAE,CAAC;AACzC,EAAE,MAAM,GAAG,GAAG,KAAK,CAAC,MAAM,EAAE;AAC5B,EAAE,MAAM,IAAI,GAAG,CAAC,GAAG,GAAG,YAAY,GAAG,CAAC,GAAG,CAAC,IAAI,GAAG,GAAG,YAAY;;AAEhE,EAAE,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,OAAO,EAAE,GAAG,IAAI,CAAC;AACvC,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;AAC5B,EAAE,OAAO,KAAK;AACd;;;;","x_google_ignoreList":[0]}