@betterinternship/components 1.6.1 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (394) hide show
  1. package/README.md +14 -0
  2. package/dist/components/ui/accordion.js.map +1 -1
  3. package/dist/components/ui/avatar.js.map +1 -1
  4. package/dist/components/ui/badge.js.map +1 -1
  5. package/dist/components/ui/button.js.map +1 -1
  6. package/dist/components/ui/card.js.map +1 -1
  7. package/dist/components/ui/checkbox.js.map +1 -1
  8. package/dist/components/ui/dialog.js.map +1 -1
  9. package/dist/components/ui/icons.js.map +1 -1
  10. package/dist/components/ui/input.js.map +1 -1
  11. package/dist/components/ui/label.js.map +1 -1
  12. package/dist/components/ui/popover.js.map +1 -1
  13. package/dist/components/ui/separator.js.map +1 -1
  14. package/dist/components/ui/skeleton.js.map +1 -1
  15. package/dist/components/ui/switch.js.map +1 -1
  16. package/dist/components/ui/table.js.map +1 -1
  17. package/dist/components/ui/textarea.js.map +1 -1
  18. package/dist/components/ui/tooltip.js.map +1 -1
  19. package/dist/config.js.map +1 -1
  20. package/dist/hooks/useClientProcess.js.map +1 -1
  21. package/dist/index.js +0 -2
  22. package/dist/index.js.map +1 -1
  23. package/dist/{components → src/components}/ui/badge.d.ts +1 -1
  24. package/dist/src/components/ui/button.test.d.ts +1 -0
  25. package/dist/src/index.d.ts +20 -0
  26. package/dist/utils.js.map +1 -1
  27. package/dist/vitest.config.d.ts +2 -0
  28. package/dist/vitest.setup.d.ts +1 -0
  29. package/package.json +14 -5
  30. package/theme.css +223 -0
  31. package/dist/components/Accordion.d.ts +0 -7
  32. package/dist/components/Avatar.d.ts +0 -6
  33. package/dist/components/Badge.d.ts +0 -21
  34. package/dist/components/Button.d.ts +0 -12
  35. package/dist/components/Button.js +0 -77
  36. package/dist/components/Button.js.map +0 -1
  37. package/dist/components/Calendar.d.ts +0 -7
  38. package/dist/components/Input.d.ts +0 -3
  39. package/dist/components/ui/calendar.js +0 -51
  40. package/dist/components/ui/calendar.js.map +0 -1
  41. package/dist/index.css.js +0 -7
  42. package/dist/index.css.js.map +0 -1
  43. package/dist/index.d.ts +0 -22
  44. package/dist/index.esm.js +0 -3761
  45. package/dist/index.esm.js.map +0 -1
  46. package/dist/node_modules/@date-fns/tz/date/index.js +0 -84
  47. package/dist/node_modules/@date-fns/tz/date/index.js.map +0 -1
  48. package/dist/node_modules/@date-fns/tz/date/mini.js +0 -451
  49. package/dist/node_modules/@date-fns/tz/date/mini.js.map +0 -1
  50. package/dist/node_modules/@date-fns/tz/tzName/index.js +0 -40
  51. package/dist/node_modules/@date-fns/tz/tzName/index.js.map +0 -1
  52. package/dist/node_modules/@date-fns/tz/tzOffset/index.js +0 -57
  53. package/dist/node_modules/@date-fns/tz/tzOffset/index.js.map +0 -1
  54. package/dist/node_modules/date-fns/_lib/addLeadingZeros.js +0 -8
  55. package/dist/node_modules/date-fns/_lib/addLeadingZeros.js.map +0 -1
  56. package/dist/node_modules/date-fns/_lib/defaultOptions.js +0 -8
  57. package/dist/node_modules/date-fns/_lib/defaultOptions.js.map +0 -1
  58. package/dist/node_modules/date-fns/_lib/format/formatters.js +0 -776
  59. package/dist/node_modules/date-fns/_lib/format/formatters.js.map +0 -1
  60. package/dist/node_modules/date-fns/_lib/format/lightFormatters.js +0 -95
  61. package/dist/node_modules/date-fns/_lib/format/lightFormatters.js.map +0 -1
  62. package/dist/node_modules/date-fns/_lib/format/longFormatters.js +0 -67
  63. package/dist/node_modules/date-fns/_lib/format/longFormatters.js.map +0 -1
  64. package/dist/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js +0 -32
  65. package/dist/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js.map +0 -1
  66. package/dist/node_modules/date-fns/_lib/normalizeDates.js +0 -12
  67. package/dist/node_modules/date-fns/_lib/normalizeDates.js.map +0 -1
  68. package/dist/node_modules/date-fns/_lib/normalizeInterval.js +0 -9
  69. package/dist/node_modules/date-fns/_lib/normalizeInterval.js.map +0 -1
  70. package/dist/node_modules/date-fns/_lib/protectedTokens.js +0 -26
  71. package/dist/node_modules/date-fns/_lib/protectedTokens.js.map +0 -1
  72. package/dist/node_modules/date-fns/addDays.js +0 -61
  73. package/dist/node_modules/date-fns/addDays.js.map +0 -1
  74. package/dist/node_modules/date-fns/addMonths.js +0 -76
  75. package/dist/node_modules/date-fns/addMonths.js.map +0 -1
  76. package/dist/node_modules/date-fns/addWeeks.js +0 -34
  77. package/dist/node_modules/date-fns/addWeeks.js.map +0 -1
  78. package/dist/node_modules/date-fns/addYears.js +0 -34
  79. package/dist/node_modules/date-fns/addYears.js.map +0 -1
  80. package/dist/node_modules/date-fns/constants.js +0 -47
  81. package/dist/node_modules/date-fns/constants.js.map +0 -1
  82. package/dist/node_modules/date-fns/constructFrom.js +0 -50
  83. package/dist/node_modules/date-fns/constructFrom.js.map +0 -1
  84. package/dist/node_modules/date-fns/differenceInCalendarDays.js +0 -63
  85. package/dist/node_modules/date-fns/differenceInCalendarDays.js.map +0 -1
  86. package/dist/node_modules/date-fns/differenceInCalendarMonths.js +0 -43
  87. package/dist/node_modules/date-fns/differenceInCalendarMonths.js.map +0 -1
  88. package/dist/node_modules/date-fns/eachMonthOfInterval.js +0 -66
  89. package/dist/node_modules/date-fns/eachMonthOfInterval.js.map +0 -1
  90. package/dist/node_modules/date-fns/eachYearOfInterval.js +0 -66
  91. package/dist/node_modules/date-fns/eachYearOfInterval.js.map +0 -1
  92. package/dist/node_modules/date-fns/endOfISOWeek.js +0 -36
  93. package/dist/node_modules/date-fns/endOfISOWeek.js.map +0 -1
  94. package/dist/node_modules/date-fns/endOfMonth.js +0 -38
  95. package/dist/node_modules/date-fns/endOfMonth.js.map +0 -1
  96. package/dist/node_modules/date-fns/endOfWeek.js +0 -54
  97. package/dist/node_modules/date-fns/endOfWeek.js.map +0 -1
  98. package/dist/node_modules/date-fns/endOfYear.js +0 -38
  99. package/dist/node_modules/date-fns/endOfYear.js.map +0 -1
  100. package/dist/node_modules/date-fns/format.js +0 -424
  101. package/dist/node_modules/date-fns/format.js.map +0 -1
  102. package/dist/node_modules/date-fns/getDayOfYear.js +0 -35
  103. package/dist/node_modules/date-fns/getDayOfYear.js.map +0 -1
  104. package/dist/node_modules/date-fns/getDaysInMonth.js +0 -37
  105. package/dist/node_modules/date-fns/getDaysInMonth.js.map +0 -1
  106. package/dist/node_modules/date-fns/getISOWeek.js +0 -41
  107. package/dist/node_modules/date-fns/getISOWeek.js.map +0 -1
  108. package/dist/node_modules/date-fns/getISOWeekYear.js +0 -53
  109. package/dist/node_modules/date-fns/getISOWeekYear.js.map +0 -1
  110. package/dist/node_modules/date-fns/getMonth.js +0 -30
  111. package/dist/node_modules/date-fns/getMonth.js.map +0 -1
  112. package/dist/node_modules/date-fns/getWeek.js +0 -55
  113. package/dist/node_modules/date-fns/getWeek.js.map +0 -1
  114. package/dist/node_modules/date-fns/getWeekYear.js +0 -76
  115. package/dist/node_modules/date-fns/getWeekYear.js.map +0 -1
  116. package/dist/node_modules/date-fns/getYear.js +0 -30
  117. package/dist/node_modules/date-fns/getYear.js.map +0 -1
  118. package/dist/node_modules/date-fns/isAfter.js +0 -26
  119. package/dist/node_modules/date-fns/isAfter.js.map +0 -1
  120. package/dist/node_modules/date-fns/isBefore.js +0 -26
  121. package/dist/node_modules/date-fns/isBefore.js.map +0 -1
  122. package/dist/node_modules/date-fns/isDate.js +0 -42
  123. package/dist/node_modules/date-fns/isDate.js.map +0 -1
  124. package/dist/node_modules/date-fns/isSameDay.js +0 -47
  125. package/dist/node_modules/date-fns/isSameDay.js.map +0 -1
  126. package/dist/node_modules/date-fns/isSameMonth.js +0 -44
  127. package/dist/node_modules/date-fns/isSameMonth.js.map +0 -1
  128. package/dist/node_modules/date-fns/isSameYear.js +0 -36
  129. package/dist/node_modules/date-fns/isSameYear.js.map +0 -1
  130. package/dist/node_modules/date-fns/isValid.js +0 -40
  131. package/dist/node_modules/date-fns/isValid.js.map +0 -1
  132. package/dist/node_modules/date-fns/locale/_lib/buildFormatLongFn.js +0 -11
  133. package/dist/node_modules/date-fns/locale/_lib/buildFormatLongFn.js.map +0 -1
  134. package/dist/node_modules/date-fns/locale/_lib/buildLocalizeFn.js +0 -65
  135. package/dist/node_modules/date-fns/locale/_lib/buildLocalizeFn.js.map +0 -1
  136. package/dist/node_modules/date-fns/locale/_lib/buildMatchFn.js +0 -60
  137. package/dist/node_modules/date-fns/locale/_lib/buildMatchFn.js.map +0 -1
  138. package/dist/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js +0 -23
  139. package/dist/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js.map +0 -1
  140. package/dist/node_modules/date-fns/locale/en-US/_lib/formatDistance.js +0 -104
  141. package/dist/node_modules/date-fns/locale/en-US/_lib/formatDistance.js.map +0 -1
  142. package/dist/node_modules/date-fns/locale/en-US/_lib/formatLong.js +0 -42
  143. package/dist/node_modules/date-fns/locale/en-US/_lib/formatLong.js.map +0 -1
  144. package/dist/node_modules/date-fns/locale/en-US/_lib/formatRelative.js +0 -14
  145. package/dist/node_modules/date-fns/locale/en-US/_lib/formatRelative.js.map +0 -1
  146. package/dist/node_modules/date-fns/locale/en-US/_lib/localize.js +0 -190
  147. package/dist/node_modules/date-fns/locale/en-US/_lib/localize.js.map +0 -1
  148. package/dist/node_modules/date-fns/locale/en-US/_lib/match.js +0 -135
  149. package/dist/node_modules/date-fns/locale/en-US/_lib/match.js.map +0 -1
  150. package/dist/node_modules/date-fns/locale/en-US.js +0 -29
  151. package/dist/node_modules/date-fns/locale/en-US.js.map +0 -1
  152. package/dist/node_modules/date-fns/max.js +0 -50
  153. package/dist/node_modules/date-fns/max.js.map +0 -1
  154. package/dist/node_modules/date-fns/min.js +0 -50
  155. package/dist/node_modules/date-fns/min.js.map +0 -1
  156. package/dist/node_modules/date-fns/setMonth.js +0 -47
  157. package/dist/node_modules/date-fns/setMonth.js.map +0 -1
  158. package/dist/node_modules/date-fns/setYear.js +0 -41
  159. package/dist/node_modules/date-fns/setYear.js.map +0 -1
  160. package/dist/node_modules/date-fns/startOfDay.js +0 -36
  161. package/dist/node_modules/date-fns/startOfDay.js.map +0 -1
  162. package/dist/node_modules/date-fns/startOfISOWeek.js +0 -36
  163. package/dist/node_modules/date-fns/startOfISOWeek.js.map +0 -1
  164. package/dist/node_modules/date-fns/startOfISOWeekYear.js +0 -43
  165. package/dist/node_modules/date-fns/startOfISOWeekYear.js.map +0 -1
  166. package/dist/node_modules/date-fns/startOfMonth.js +0 -38
  167. package/dist/node_modules/date-fns/startOfMonth.js.map +0 -1
  168. package/dist/node_modules/date-fns/startOfWeek.js +0 -54
  169. package/dist/node_modules/date-fns/startOfWeek.js.map +0 -1
  170. package/dist/node_modules/date-fns/startOfWeekYear.js +0 -65
  171. package/dist/node_modules/date-fns/startOfWeekYear.js.map +0 -1
  172. package/dist/node_modules/date-fns/startOfYear.js +0 -37
  173. package/dist/node_modules/date-fns/startOfYear.js.map +0 -1
  174. package/dist/node_modules/date-fns/toDate.js +0 -47
  175. package/dist/node_modules/date-fns/toDate.js.map +0 -1
  176. package/dist/node_modules/react-day-picker/dist/esm/DayPicker.js +0 -347
  177. package/dist/node_modules/react-day-picker/dist/esm/DayPicker.js.map +0 -1
  178. package/dist/node_modules/react-day-picker/dist/esm/UI.js +0 -123
  179. package/dist/node_modules/react-day-picker/dist/esm/UI.js.map +0 -1
  180. package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarDay.js +0 -34
  181. package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarDay.js.map +0 -1
  182. package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarMonth.js +0 -15
  183. package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarMonth.js.map +0 -1
  184. package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarWeek.js +0 -14
  185. package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarWeek.js.map +0 -1
  186. package/dist/node_modules/react-day-picker/dist/esm/classes/DateLib.js +0 -600
  187. package/dist/node_modules/react-day-picker/dist/esm/classes/DateLib.js.map +0 -1
  188. package/dist/node_modules/react-day-picker/dist/esm/components/CaptionLabel.js +0 -14
  189. package/dist/node_modules/react-day-picker/dist/esm/components/CaptionLabel.js.map +0 -1
  190. package/dist/node_modules/react-day-picker/dist/esm/components/Chevron.js +0 -19
  191. package/dist/node_modules/react-day-picker/dist/esm/components/Chevron.js.map +0 -1
  192. package/dist/node_modules/react-day-picker/dist/esm/components/Day.js +0 -19
  193. package/dist/node_modules/react-day-picker/dist/esm/components/Day.js.map +0 -1
  194. package/dist/node_modules/react-day-picker/dist/esm/components/DayButton.js +0 -20
  195. package/dist/node_modules/react-day-picker/dist/esm/components/DayButton.js.map +0 -1
  196. package/dist/node_modules/react-day-picker/dist/esm/components/Dropdown.js +0 -24
  197. package/dist/node_modules/react-day-picker/dist/esm/components/Dropdown.js.map +0 -1
  198. package/dist/node_modules/react-day-picker/dist/esm/components/DropdownNav.js +0 -14
  199. package/dist/node_modules/react-day-picker/dist/esm/components/DropdownNav.js.map +0 -1
  200. package/dist/node_modules/react-day-picker/dist/esm/components/Footer.js +0 -14
  201. package/dist/node_modules/react-day-picker/dist/esm/components/Footer.js.map +0 -1
  202. package/dist/node_modules/react-day-picker/dist/esm/components/Month.js +0 -16
  203. package/dist/node_modules/react-day-picker/dist/esm/components/Month.js.map +0 -1
  204. package/dist/node_modules/react-day-picker/dist/esm/components/MonthCaption.js +0 -15
  205. package/dist/node_modules/react-day-picker/dist/esm/components/MonthCaption.js.map +0 -1
  206. package/dist/node_modules/react-day-picker/dist/esm/components/MonthGrid.js +0 -14
  207. package/dist/node_modules/react-day-picker/dist/esm/components/MonthGrid.js.map +0 -1
  208. package/dist/node_modules/react-day-picker/dist/esm/components/Months.js +0 -14
  209. package/dist/node_modules/react-day-picker/dist/esm/components/Months.js.map +0 -1
  210. package/dist/node_modules/react-day-picker/dist/esm/components/MonthsDropdown.js +0 -16
  211. package/dist/node_modules/react-day-picker/dist/esm/components/MonthsDropdown.js.map +0 -1
  212. package/dist/node_modules/react-day-picker/dist/esm/components/Nav.js +0 -32
  213. package/dist/node_modules/react-day-picker/dist/esm/components/Nav.js.map +0 -1
  214. package/dist/node_modules/react-day-picker/dist/esm/components/NextMonthButton.js +0 -14
  215. package/dist/node_modules/react-day-picker/dist/esm/components/NextMonthButton.js.map +0 -1
  216. package/dist/node_modules/react-day-picker/dist/esm/components/Option.js +0 -14
  217. package/dist/node_modules/react-day-picker/dist/esm/components/Option.js.map +0 -1
  218. package/dist/node_modules/react-day-picker/dist/esm/components/PreviousMonthButton.js +0 -14
  219. package/dist/node_modules/react-day-picker/dist/esm/components/PreviousMonthButton.js.map +0 -1
  220. package/dist/node_modules/react-day-picker/dist/esm/components/Root.js +0 -15
  221. package/dist/node_modules/react-day-picker/dist/esm/components/Root.js.map +0 -1
  222. package/dist/node_modules/react-day-picker/dist/esm/components/Select.js +0 -14
  223. package/dist/node_modules/react-day-picker/dist/esm/components/Select.js.map +0 -1
  224. package/dist/node_modules/react-day-picker/dist/esm/components/Week.js +0 -15
  225. package/dist/node_modules/react-day-picker/dist/esm/components/Week.js.map +0 -1
  226. package/dist/node_modules/react-day-picker/dist/esm/components/WeekNumber.js +0 -15
  227. package/dist/node_modules/react-day-picker/dist/esm/components/WeekNumber.js.map +0 -1
  228. package/dist/node_modules/react-day-picker/dist/esm/components/WeekNumberHeader.js +0 -14
  229. package/dist/node_modules/react-day-picker/dist/esm/components/WeekNumberHeader.js.map +0 -1
  230. package/dist/node_modules/react-day-picker/dist/esm/components/Weekday.js +0 -14
  231. package/dist/node_modules/react-day-picker/dist/esm/components/Weekday.js.map +0 -1
  232. package/dist/node_modules/react-day-picker/dist/esm/components/Weekdays.js +0 -15
  233. package/dist/node_modules/react-day-picker/dist/esm/components/Weekdays.js.map +0 -1
  234. package/dist/node_modules/react-day-picker/dist/esm/components/Weeks.js +0 -14
  235. package/dist/node_modules/react-day-picker/dist/esm/components/Weeks.js.map +0 -1
  236. package/dist/node_modules/react-day-picker/dist/esm/components/YearsDropdown.js +0 -16
  237. package/dist/node_modules/react-day-picker/dist/esm/components/YearsDropdown.js.map +0 -1
  238. package/dist/node_modules/react-day-picker/dist/esm/components/custom-components.js +0 -26
  239. package/dist/node_modules/react-day-picker/dist/esm/components/custom-components.js.map +0 -1
  240. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatCaption.js +0 -21
  241. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatCaption.js.map +0 -1
  242. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatDay.js +0 -20
  243. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatDay.js.map +0 -1
  244. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatMonthDropdown.js +0 -19
  245. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatMonthDropdown.js.map +0 -1
  246. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumber.js +0 -22
  247. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumber.js.map +0 -1
  248. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumberHeader.js +0 -14
  249. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumberHeader.js.map +0 -1
  250. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekdayName.js +0 -20
  251. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekdayName.js.map +0 -1
  252. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatYearDropdown.js +0 -18
  253. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatYearDropdown.js.map +0 -1
  254. package/dist/node_modules/react-day-picker/dist/esm/formatters/index.js +0 -8
  255. package/dist/node_modules/react-day-picker/dist/esm/formatters/index.js.map +0 -1
  256. package/dist/node_modules/react-day-picker/dist/esm/helpers/calculateFocusTarget.js +0 -74
  257. package/dist/node_modules/react-day-picker/dist/esm/helpers/calculateFocusTarget.js.map +0 -1
  258. package/dist/node_modules/react-day-picker/dist/esm/helpers/createGetModifiers.js +0 -96
  259. package/dist/node_modules/react-day-picker/dist/esm/helpers/createGetModifiers.js.map +0 -1
  260. package/dist/node_modules/react-day-picker/dist/esm/helpers/endOfBroadcastWeek.js +0 -23
  261. package/dist/node_modules/react-day-picker/dist/esm/helpers/endOfBroadcastWeek.js.map +0 -1
  262. package/dist/node_modules/react-day-picker/dist/esm/helpers/getBroadcastWeeksInMonth.js +0 -29
  263. package/dist/node_modules/react-day-picker/dist/esm/helpers/getBroadcastWeeksInMonth.js.map +0 -1
  264. package/dist/node_modules/react-day-picker/dist/esm/helpers/getClassNamesForModifiers.js +0 -34
  265. package/dist/node_modules/react-day-picker/dist/esm/helpers/getClassNamesForModifiers.js.map +0 -1
  266. package/dist/node_modules/react-day-picker/dist/esm/helpers/getComponents.js +0 -21
  267. package/dist/node_modules/react-day-picker/dist/esm/helpers/getComponents.js.map +0 -1
  268. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDataAttributes.js +0 -28
  269. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDataAttributes.js.map +0 -1
  270. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDates.js +0 -60
  271. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDates.js.map +0 -1
  272. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDays.js +0 -20
  273. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDays.js.map +0 -1
  274. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDefaultClassNames.js +0 -34
  275. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDefaultClassNames.js.map +0 -1
  276. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDisplayMonths.js +0 -25
  277. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDisplayMonths.js.map +0 -1
  278. package/dist/node_modules/react-day-picker/dist/esm/helpers/getFocusableDate.js +0 -47
  279. package/dist/node_modules/react-day-picker/dist/esm/helpers/getFocusableDate.js.map +0 -1
  280. package/dist/node_modules/react-day-picker/dist/esm/helpers/getFormatters.js +0 -18
  281. package/dist/node_modules/react-day-picker/dist/esm/helpers/getFormatters.js.map +0 -1
  282. package/dist/node_modules/react-day-picker/dist/esm/helpers/getInitialMonth.js +0 -28
  283. package/dist/node_modules/react-day-picker/dist/esm/helpers/getInitialMonth.js.map +0 -1
  284. package/dist/node_modules/react-day-picker/dist/esm/helpers/getLabels.js +0 -54
  285. package/dist/node_modules/react-day-picker/dist/esm/helpers/getLabels.js.map +0 -1
  286. package/dist/node_modules/react-day-picker/dist/esm/helpers/getMonthOptions.js +0 -34
  287. package/dist/node_modules/react-day-picker/dist/esm/helpers/getMonthOptions.js.map +0 -1
  288. package/dist/node_modules/react-day-picker/dist/esm/helpers/getMonths.js +0 -70
  289. package/dist/node_modules/react-day-picker/dist/esm/helpers/getMonths.js.map +0 -1
  290. package/dist/node_modules/react-day-picker/dist/esm/helpers/getNavMonth.js +0 -32
  291. package/dist/node_modules/react-day-picker/dist/esm/helpers/getNavMonth.js.map +0 -1
  292. package/dist/node_modules/react-day-picker/dist/esm/helpers/getNextFocus.js +0 -41
  293. package/dist/node_modules/react-day-picker/dist/esm/helpers/getNextFocus.js.map +0 -1
  294. package/dist/node_modules/react-day-picker/dist/esm/helpers/getNextMonth.js +0 -37
  295. package/dist/node_modules/react-day-picker/dist/esm/helpers/getNextMonth.js.map +0 -1
  296. package/dist/node_modules/react-day-picker/dist/esm/helpers/getPreviousMonth.js +0 -38
  297. package/dist/node_modules/react-day-picker/dist/esm/helpers/getPreviousMonth.js.map +0 -1
  298. package/dist/node_modules/react-day-picker/dist/esm/helpers/getStyleForModifiers.js +0 -28
  299. package/dist/node_modules/react-day-picker/dist/esm/helpers/getStyleForModifiers.js.map +0 -1
  300. package/dist/node_modules/react-day-picker/dist/esm/helpers/getWeekdays.js +0 -27
  301. package/dist/node_modules/react-day-picker/dist/esm/helpers/getWeekdays.js.map +0 -1
  302. package/dist/node_modules/react-day-picker/dist/esm/helpers/getWeeks.js +0 -15
  303. package/dist/node_modules/react-day-picker/dist/esm/helpers/getWeeks.js.map +0 -1
  304. package/dist/node_modules/react-day-picker/dist/esm/helpers/getYearOptions.js +0 -37
  305. package/dist/node_modules/react-day-picker/dist/esm/helpers/getYearOptions.js.map +0 -1
  306. package/dist/node_modules/react-day-picker/dist/esm/helpers/startOfBroadcastWeek.js +0 -28
  307. package/dist/node_modules/react-day-picker/dist/esm/helpers/startOfBroadcastWeek.js.map +0 -1
  308. package/dist/node_modules/react-day-picker/dist/esm/helpers/useControlledValue.js +0 -32
  309. package/dist/node_modules/react-day-picker/dist/esm/helpers/useControlledValue.js.map +0 -1
  310. package/dist/node_modules/react-day-picker/dist/esm/labels/index.js +0 -12
  311. package/dist/node_modules/react-day-picker/dist/esm/labels/index.js.map +0 -1
  312. package/dist/node_modules/react-day-picker/dist/esm/labels/labelDayButton.js +0 -28
  313. package/dist/node_modules/react-day-picker/dist/esm/labels/labelDayButton.js.map +0 -1
  314. package/dist/node_modules/react-day-picker/dist/esm/labels/labelGrid.js +0 -21
  315. package/dist/node_modules/react-day-picker/dist/esm/labels/labelGrid.js.map +0 -1
  316. package/dist/node_modules/react-day-picker/dist/esm/labels/labelGridcell.js +0 -23
  317. package/dist/node_modules/react-day-picker/dist/esm/labels/labelGridcell.js.map +0 -1
  318. package/dist/node_modules/react-day-picker/dist/esm/labels/labelMonthDropdown.js +0 -15
  319. package/dist/node_modules/react-day-picker/dist/esm/labels/labelMonthDropdown.js.map +0 -1
  320. package/dist/node_modules/react-day-picker/dist/esm/labels/labelNav.js +0 -14
  321. package/dist/node_modules/react-day-picker/dist/esm/labels/labelNav.js.map +0 -1
  322. package/dist/node_modules/react-day-picker/dist/esm/labels/labelNext.js +0 -17
  323. package/dist/node_modules/react-day-picker/dist/esm/labels/labelNext.js.map +0 -1
  324. package/dist/node_modules/react-day-picker/dist/esm/labels/labelPrevious.js +0 -16
  325. package/dist/node_modules/react-day-picker/dist/esm/labels/labelPrevious.js.map +0 -1
  326. package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekNumber.js +0 -16
  327. package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekNumber.js.map +0 -1
  328. package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekNumberHeader.js +0 -15
  329. package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekNumberHeader.js.map +0 -1
  330. package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekday.js +0 -19
  331. package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekday.js.map +0 -1
  332. package/dist/node_modules/react-day-picker/dist/esm/labels/labelYearDropdown.js +0 -15
  333. package/dist/node_modules/react-day-picker/dist/esm/labels/labelYearDropdown.js.map +0 -1
  334. package/dist/node_modules/react-day-picker/dist/esm/locale/en-US.js +0 -68
  335. package/dist/node_modules/react-day-picker/dist/esm/locale/en-US.js.map +0 -1
  336. package/dist/node_modules/react-day-picker/dist/esm/noonDateLib.js +0 -164
  337. package/dist/node_modules/react-day-picker/dist/esm/noonDateLib.js.map +0 -1
  338. package/dist/node_modules/react-day-picker/dist/esm/selection/useMulti.js +0 -58
  339. package/dist/node_modules/react-day-picker/dist/esm/selection/useMulti.js.map +0 -1
  340. package/dist/node_modules/react-day-picker/dist/esm/selection/useRange.js +0 -64
  341. package/dist/node_modules/react-day-picker/dist/esm/selection/useRange.js.map +0 -1
  342. package/dist/node_modules/react-day-picker/dist/esm/selection/useSingle.js +0 -45
  343. package/dist/node_modules/react-day-picker/dist/esm/selection/useSingle.js.map +0 -1
  344. package/dist/node_modules/react-day-picker/dist/esm/useAnimation.js +0 -174
  345. package/dist/node_modules/react-day-picker/dist/esm/useAnimation.js.map +0 -1
  346. package/dist/node_modules/react-day-picker/dist/esm/useCalendar.js +0 -114
  347. package/dist/node_modules/react-day-picker/dist/esm/useCalendar.js.map +0 -1
  348. package/dist/node_modules/react-day-picker/dist/esm/useDayPicker.js +0 -26
  349. package/dist/node_modules/react-day-picker/dist/esm/useDayPicker.js.map +0 -1
  350. package/dist/node_modules/react-day-picker/dist/esm/useFocus.js +0 -57
  351. package/dist/node_modules/react-day-picker/dist/esm/useFocus.js.map +0 -1
  352. package/dist/node_modules/react-day-picker/dist/esm/useSelection.js +0 -32
  353. package/dist/node_modules/react-day-picker/dist/esm/useSelection.js.map +0 -1
  354. package/dist/node_modules/react-day-picker/dist/esm/utils/addToRange.js +0 -96
  355. package/dist/node_modules/react-day-picker/dist/esm/utils/addToRange.js.map +0 -1
  356. package/dist/node_modules/react-day-picker/dist/esm/utils/convertMatchersToTimeZone.js +0 -62
  357. package/dist/node_modules/react-day-picker/dist/esm/utils/convertMatchersToTimeZone.js.map +0 -1
  358. package/dist/node_modules/react-day-picker/dist/esm/utils/dateMatchModifiers.js +0 -63
  359. package/dist/node_modules/react-day-picker/dist/esm/utils/dateMatchModifiers.js.map +0 -1
  360. package/dist/node_modules/react-day-picker/dist/esm/utils/rangeContainsDayOfWeek.js +0 -31
  361. package/dist/node_modules/react-day-picker/dist/esm/utils/rangeContainsDayOfWeek.js.map +0 -1
  362. package/dist/node_modules/react-day-picker/dist/esm/utils/rangeContainsModifiers.js +0 -75
  363. package/dist/node_modules/react-day-picker/dist/esm/utils/rangeContainsModifiers.js.map +0 -1
  364. package/dist/node_modules/react-day-picker/dist/esm/utils/rangeIncludesDate.js +0 -36
  365. package/dist/node_modules/react-day-picker/dist/esm/utils/rangeIncludesDate.js.map +0 -1
  366. package/dist/node_modules/react-day-picker/dist/esm/utils/rangeOverlaps.js +0 -22
  367. package/dist/node_modules/react-day-picker/dist/esm/utils/rangeOverlaps.js.map +0 -1
  368. package/dist/node_modules/react-day-picker/dist/esm/utils/toTimeZone.js +0 -17
  369. package/dist/node_modules/react-day-picker/dist/esm/utils/toTimeZone.js.map +0 -1
  370. package/dist/node_modules/react-day-picker/dist/esm/utils/typeguards.js +0 -67
  371. package/dist/node_modules/react-day-picker/dist/esm/utils/typeguards.js.map +0 -1
  372. package/dist/node_modules/style-inject/dist/style-inject.es.js +0 -29
  373. package/dist/node_modules/style-inject/dist/style-inject.es.js.map +0 -1
  374. package/dist/utilities/Icons.d.ts +0 -33
  375. /package/dist/{components → src/components}/ui/accordion.d.ts +0 -0
  376. /package/dist/{components → src/components}/ui/avatar.d.ts +0 -0
  377. /package/dist/{components → src/components}/ui/button.d.ts +0 -0
  378. /package/dist/{components → src/components}/ui/calendar.d.ts +0 -0
  379. /package/dist/{components → src/components}/ui/card.d.ts +0 -0
  380. /package/dist/{components → src/components}/ui/checkbox.d.ts +0 -0
  381. /package/dist/{components → src/components}/ui/dialog.d.ts +0 -0
  382. /package/dist/{components → src/components}/ui/icons.d.ts +0 -0
  383. /package/dist/{components → src/components}/ui/input.d.ts +0 -0
  384. /package/dist/{components → src/components}/ui/label.d.ts +0 -0
  385. /package/dist/{components → src/components}/ui/popover.d.ts +0 -0
  386. /package/dist/{components → src/components}/ui/separator.d.ts +0 -0
  387. /package/dist/{components → src/components}/ui/skeleton.d.ts +0 -0
  388. /package/dist/{components → src/components}/ui/switch.d.ts +0 -0
  389. /package/dist/{components → src/components}/ui/table.d.ts +0 -0
  390. /package/dist/{components → src/components}/ui/textarea.d.ts +0 -0
  391. /package/dist/{components → src/components}/ui/tooltip.d.ts +0 -0
  392. /package/dist/{config.d.ts → src/config.d.ts} +0 -0
  393. /package/dist/{hooks → src/hooks}/useClientProcess.d.ts +0 -0
  394. /package/dist/{utils.d.ts → src/utils.d.ts} +0 -0
@@ -1,53 +0,0 @@
1
- import { constructFrom } from './constructFrom.js';
2
- import { startOfISOWeek } from './startOfISOWeek.js';
3
- import { toDate } from './toDate.js';
4
-
5
- /**
6
- * The {@link getISOWeekYear} function options.
7
- */
8
-
9
- /**
10
- * @name getISOWeekYear
11
- * @category ISO Week-Numbering Year Helpers
12
- * @summary Get the ISO week-numbering year of the given date.
13
- *
14
- * @description
15
- * Get the ISO week-numbering year of the given date,
16
- * which always starts 3 days before the year's first Thursday.
17
- *
18
- * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date
19
- *
20
- * @param date - The given date
21
- *
22
- * @returns The ISO week-numbering year
23
- *
24
- * @example
25
- * // Which ISO-week numbering year is 2 January 2005?
26
- * const result = getISOWeekYear(new Date(2005, 0, 2))
27
- * //=> 2004
28
- */
29
- function getISOWeekYear(date, options) {
30
- const _date = toDate(date, options?.in);
31
- const year = _date.getFullYear();
32
-
33
- const fourthOfJanuaryOfNextYear = constructFrom(_date, 0);
34
- fourthOfJanuaryOfNextYear.setFullYear(year + 1, 0, 4);
35
- fourthOfJanuaryOfNextYear.setHours(0, 0, 0, 0);
36
- const startOfNextYear = startOfISOWeek(fourthOfJanuaryOfNextYear);
37
-
38
- const fourthOfJanuaryOfThisYear = constructFrom(_date, 0);
39
- fourthOfJanuaryOfThisYear.setFullYear(year, 0, 4);
40
- fourthOfJanuaryOfThisYear.setHours(0, 0, 0, 0);
41
- const startOfThisYear = startOfISOWeek(fourthOfJanuaryOfThisYear);
42
-
43
- if (_date.getTime() >= startOfNextYear.getTime()) {
44
- return year + 1;
45
- } else if (_date.getTime() >= startOfThisYear.getTime()) {
46
- return year;
47
- } else {
48
- return year - 1;
49
- }
50
- }
51
-
52
- export { getISOWeekYear as default, getISOWeekYear };
53
- //# sourceMappingURL=getISOWeekYear.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getISOWeekYear.js","sources":["../../../node_modules/date-fns/getISOWeekYear.js"],"sourcesContent":["import { constructFrom } from \"./constructFrom.js\";\nimport { startOfISOWeek } from \"./startOfISOWeek.js\";\nimport { toDate } from \"./toDate.js\";\n\n/**\n * The {@link getISOWeekYear} function options.\n */\n\n/**\n * @name getISOWeekYear\n * @category ISO Week-Numbering Year Helpers\n * @summary Get the ISO week-numbering year of the given date.\n *\n * @description\n * Get the ISO week-numbering year of the given date,\n * which always starts 3 days before the year's first Thursday.\n *\n * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date\n *\n * @param date - The given date\n *\n * @returns The ISO week-numbering year\n *\n * @example\n * // Which ISO-week numbering year is 2 January 2005?\n * const result = getISOWeekYear(new Date(2005, 0, 2))\n * //=> 2004\n */\nexport function getISOWeekYear(date, options) {\n const _date = toDate(date, options?.in);\n const year = _date.getFullYear();\n\n const fourthOfJanuaryOfNextYear = constructFrom(_date, 0);\n fourthOfJanuaryOfNextYear.setFullYear(year + 1, 0, 4);\n fourthOfJanuaryOfNextYear.setHours(0, 0, 0, 0);\n const startOfNextYear = startOfISOWeek(fourthOfJanuaryOfNextYear);\n\n const fourthOfJanuaryOfThisYear = constructFrom(_date, 0);\n fourthOfJanuaryOfThisYear.setFullYear(year, 0, 4);\n fourthOfJanuaryOfThisYear.setHours(0, 0, 0, 0);\n const startOfThisYear = startOfISOWeek(fourthOfJanuaryOfThisYear);\n\n if (_date.getTime() >= startOfNextYear.getTime()) {\n return year + 1;\n } else if (_date.getTime() >= startOfThisYear.getTime()) {\n return year;\n } else {\n return year - 1;\n }\n}\n\n// Fallback for modularized imports:\nexport default getISOWeekYear;\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;AACO,SAAS,cAAc,CAAC,IAAI,EAAE,OAAO,EAAE;AAC9C,EAAE,MAAM,KAAK,GAAG,MAAM,CAAC,IAAI,EAAE,OAAO,EAAE,EAAE,CAAC;AACzC,EAAE,MAAM,IAAI,GAAG,KAAK,CAAC,WAAW,EAAE;;AAElC,EAAE,MAAM,yBAAyB,GAAG,aAAa,CAAC,KAAK,EAAE,CAAC,CAAC;AAC3D,EAAE,yBAAyB,CAAC,WAAW,CAAC,IAAI,GAAG,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;AACvD,EAAE,yBAAyB,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;AAChD,EAAE,MAAM,eAAe,GAAG,cAAc,CAAC,yBAAyB,CAAC;;AAEnE,EAAE,MAAM,yBAAyB,GAAG,aAAa,CAAC,KAAK,EAAE,CAAC,CAAC;AAC3D,EAAE,yBAAyB,CAAC,WAAW,CAAC,IAAI,EAAE,CAAC,EAAE,CAAC,CAAC;AACnD,EAAE,yBAAyB,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;AAChD,EAAE,MAAM,eAAe,GAAG,cAAc,CAAC,yBAAyB,CAAC;;AAEnE,EAAE,IAAI,KAAK,CAAC,OAAO,EAAE,IAAI,eAAe,CAAC,OAAO,EAAE,EAAE;AACpD,IAAI,OAAO,IAAI,GAAG,CAAC;AACnB,EAAE,CAAC,MAAM,IAAI,KAAK,CAAC,OAAO,EAAE,IAAI,eAAe,CAAC,OAAO,EAAE,EAAE;AAC3D,IAAI,OAAO,IAAI;AACf,EAAE,CAAC,MAAM;AACT,IAAI,OAAO,IAAI,GAAG,CAAC;AACnB,EAAE;AACF;;;;","x_google_ignoreList":[0]}
@@ -1,30 +0,0 @@
1
- import { toDate } from './toDate.js';
2
-
3
- /**
4
- * The {@link getMonth} function options.
5
- */
6
-
7
- /**
8
- * @name getMonth
9
- * @category Month Helpers
10
- * @summary Get the month of the given date.
11
- *
12
- * @description
13
- * Get the month of the given date.
14
- *
15
- * @param date - The given date
16
- * @param options - An object with options
17
- *
18
- * @returns The month index (0-11)
19
- *
20
- * @example
21
- * // Which month is 29 February 2012?
22
- * const result = getMonth(new Date(2012, 1, 29))
23
- * //=> 1
24
- */
25
- function getMonth(date, options) {
26
- return toDate(date, options?.in).getMonth();
27
- }
28
-
29
- export { getMonth as default, getMonth };
30
- //# sourceMappingURL=getMonth.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getMonth.js","sources":["../../../node_modules/date-fns/getMonth.js"],"sourcesContent":["import { toDate } from \"./toDate.js\";\n\n/**\n * The {@link getMonth} function options.\n */\n\n/**\n * @name getMonth\n * @category Month Helpers\n * @summary Get the month of the given date.\n *\n * @description\n * Get the month of the given date.\n *\n * @param date - The given date\n * @param options - An object with options\n *\n * @returns The month index (0-11)\n *\n * @example\n * // Which month is 29 February 2012?\n * const result = getMonth(new Date(2012, 1, 29))\n * //=> 1\n */\nexport function getMonth(date, options) {\n return toDate(date, options?.in).getMonth();\n}\n\n// Fallback for modularized imports:\nexport default getMonth;\n"],"names":[],"mappings":";;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAAS,QAAQ,CAAC,IAAI,EAAE,OAAO,EAAE;AACxC,EAAE,OAAO,MAAM,CAAC,IAAI,EAAE,OAAO,EAAE,EAAE,CAAC,CAAC,QAAQ,EAAE;AAC7C;;;;","x_google_ignoreList":[0]}
@@ -1,55 +0,0 @@
1
- import { millisecondsInWeek } from './constants.js';
2
- import { startOfWeek } from './startOfWeek.js';
3
- import { startOfWeekYear } from './startOfWeekYear.js';
4
- import { toDate } from './toDate.js';
5
-
6
- /**
7
- * The {@link getWeek} function options.
8
- */
9
-
10
- /**
11
- * @name getWeek
12
- * @category Week Helpers
13
- * @summary Get the local week index of the given date.
14
- *
15
- * @description
16
- * Get the local week index of the given date.
17
- * The exact calculation depends on the values of
18
- * `options.weekStartsOn` (which is the index of the first day of the week)
19
- * and `options.firstWeekContainsDate` (which is the day of January, which is always in
20
- * the first week of the week-numbering year)
21
- *
22
- * Week numbering: https://en.wikipedia.org/wiki/Week#The_ISO_week_date_system
23
- *
24
- * @param date - The given date
25
- * @param options - An object with options
26
- *
27
- * @returns The week
28
- *
29
- * @example
30
- * // Which week of the local week numbering year is 2 January 2005 with default options?
31
- * const result = getWeek(new Date(2005, 0, 2))
32
- * //=> 2
33
- *
34
- * @example
35
- * // Which week of the local week numbering year is 2 January 2005,
36
- * // if Monday is the first day of the week,
37
- * // and the first week of the year always contains 4 January?
38
- * const result = getWeek(new Date(2005, 0, 2), {
39
- * weekStartsOn: 1,
40
- * firstWeekContainsDate: 4
41
- * })
42
- * //=> 53
43
- */
44
- function getWeek(date, options) {
45
- const _date = toDate(date, options?.in);
46
- const diff = +startOfWeek(_date, options) - +startOfWeekYear(_date, options);
47
-
48
- // Round the number of weeks to the nearest integer because the number of
49
- // milliseconds in a week is not constant (e.g. it's different in the week of
50
- // the daylight saving time clock shift).
51
- return Math.round(diff / millisecondsInWeek) + 1;
52
- }
53
-
54
- export { getWeek as default, getWeek };
55
- //# sourceMappingURL=getWeek.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getWeek.js","sources":["../../../node_modules/date-fns/getWeek.js"],"sourcesContent":["import { millisecondsInWeek } from \"./constants.js\";\nimport { startOfWeek } from \"./startOfWeek.js\";\nimport { startOfWeekYear } from \"./startOfWeekYear.js\";\nimport { toDate } from \"./toDate.js\";\n\n/**\n * The {@link getWeek} function options.\n */\n\n/**\n * @name getWeek\n * @category Week Helpers\n * @summary Get the local week index of the given date.\n *\n * @description\n * Get the local week index of the given date.\n * The exact calculation depends on the values of\n * `options.weekStartsOn` (which is the index of the first day of the week)\n * and `options.firstWeekContainsDate` (which is the day of January, which is always in\n * the first week of the week-numbering year)\n *\n * Week numbering: https://en.wikipedia.org/wiki/Week#The_ISO_week_date_system\n *\n * @param date - The given date\n * @param options - An object with options\n *\n * @returns The week\n *\n * @example\n * // Which week of the local week numbering year is 2 January 2005 with default options?\n * const result = getWeek(new Date(2005, 0, 2))\n * //=> 2\n *\n * @example\n * // Which week of the local week numbering year is 2 January 2005,\n * // if Monday is the first day of the week,\n * // and the first week of the year always contains 4 January?\n * const result = getWeek(new Date(2005, 0, 2), {\n * weekStartsOn: 1,\n * firstWeekContainsDate: 4\n * })\n * //=> 53\n */\nexport function getWeek(date, options) {\n const _date = toDate(date, options?.in);\n const diff = +startOfWeek(_date, options) - +startOfWeekYear(_date, options);\n\n // Round the number of weeks to the nearest integer because the number of\n // milliseconds in a week is not constant (e.g. it's different in the week of\n // the daylight saving time clock shift).\n return Math.round(diff / millisecondsInWeek) + 1;\n}\n\n// Fallback for modularized imports:\nexport default getWeek;\n"],"names":[],"mappings":";;;;;AAKA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAAS,OAAO,CAAC,IAAI,EAAE,OAAO,EAAE;AACvC,EAAE,MAAM,KAAK,GAAG,MAAM,CAAC,IAAI,EAAE,OAAO,EAAE,EAAE,CAAC;AACzC,EAAE,MAAM,IAAI,GAAG,CAAC,WAAW,CAAC,KAAK,EAAE,OAAO,CAAC,GAAG,CAAC,eAAe,CAAC,KAAK,EAAE,OAAO,CAAC;;AAE9E;AACA;AACA;AACA,EAAE,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,GAAG,kBAAkB,CAAC,GAAG,CAAC;AAClD;;;;","x_google_ignoreList":[0]}
@@ -1,76 +0,0 @@
1
- import { getDefaultOptions } from './_lib/defaultOptions.js';
2
- import { constructFrom } from './constructFrom.js';
3
- import { startOfWeek } from './startOfWeek.js';
4
- import { toDate } from './toDate.js';
5
-
6
- /**
7
- * The {@link getWeekYear} function options.
8
- */
9
-
10
- /**
11
- * @name getWeekYear
12
- * @category Week-Numbering Year Helpers
13
- * @summary Get the local week-numbering year of the given date.
14
- *
15
- * @description
16
- * Get the local week-numbering year of the given date.
17
- * The exact calculation depends on the values of
18
- * `options.weekStartsOn` (which is the index of the first day of the week)
19
- * and `options.firstWeekContainsDate` (which is the day of January, which is always in
20
- * the first week of the week-numbering year)
21
- *
22
- * Week numbering: https://en.wikipedia.org/wiki/Week#The_ISO_week_date_system
23
- *
24
- * @param date - The given date
25
- * @param options - An object with options.
26
- *
27
- * @returns The local week-numbering year
28
- *
29
- * @example
30
- * // Which week numbering year is 26 December 2004 with the default settings?
31
- * const result = getWeekYear(new Date(2004, 11, 26))
32
- * //=> 2005
33
- *
34
- * @example
35
- * // Which week numbering year is 26 December 2004 if week starts on Saturday?
36
- * const result = getWeekYear(new Date(2004, 11, 26), { weekStartsOn: 6 })
37
- * //=> 2004
38
- *
39
- * @example
40
- * // Which week numbering year is 26 December 2004 if the first week contains 4 January?
41
- * const result = getWeekYear(new Date(2004, 11, 26), { firstWeekContainsDate: 4 })
42
- * //=> 2004
43
- */
44
- function getWeekYear(date, options) {
45
- const _date = toDate(date, options?.in);
46
- const year = _date.getFullYear();
47
-
48
- const defaultOptions = getDefaultOptions();
49
- const firstWeekContainsDate =
50
- options?.firstWeekContainsDate ??
51
- options?.locale?.options?.firstWeekContainsDate ??
52
- defaultOptions.firstWeekContainsDate ??
53
- defaultOptions.locale?.options?.firstWeekContainsDate ??
54
- 1;
55
-
56
- const firstWeekOfNextYear = constructFrom(options?.in || date, 0);
57
- firstWeekOfNextYear.setFullYear(year + 1, 0, firstWeekContainsDate);
58
- firstWeekOfNextYear.setHours(0, 0, 0, 0);
59
- const startOfNextYear = startOfWeek(firstWeekOfNextYear, options);
60
-
61
- const firstWeekOfThisYear = constructFrom(options?.in || date, 0);
62
- firstWeekOfThisYear.setFullYear(year, 0, firstWeekContainsDate);
63
- firstWeekOfThisYear.setHours(0, 0, 0, 0);
64
- const startOfThisYear = startOfWeek(firstWeekOfThisYear, options);
65
-
66
- if (+_date >= +startOfNextYear) {
67
- return year + 1;
68
- } else if (+_date >= +startOfThisYear) {
69
- return year;
70
- } else {
71
- return year - 1;
72
- }
73
- }
74
-
75
- export { getWeekYear as default, getWeekYear };
76
- //# sourceMappingURL=getWeekYear.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getWeekYear.js","sources":["../../../node_modules/date-fns/getWeekYear.js"],"sourcesContent":["import { getDefaultOptions } from \"./_lib/defaultOptions.js\";\nimport { constructFrom } from \"./constructFrom.js\";\nimport { startOfWeek } from \"./startOfWeek.js\";\nimport { toDate } from \"./toDate.js\";\n\n/**\n * The {@link getWeekYear} function options.\n */\n\n/**\n * @name getWeekYear\n * @category Week-Numbering Year Helpers\n * @summary Get the local week-numbering year of the given date.\n *\n * @description\n * Get the local week-numbering year of the given date.\n * The exact calculation depends on the values of\n * `options.weekStartsOn` (which is the index of the first day of the week)\n * and `options.firstWeekContainsDate` (which is the day of January, which is always in\n * the first week of the week-numbering year)\n *\n * Week numbering: https://en.wikipedia.org/wiki/Week#The_ISO_week_date_system\n *\n * @param date - The given date\n * @param options - An object with options.\n *\n * @returns The local week-numbering year\n *\n * @example\n * // Which week numbering year is 26 December 2004 with the default settings?\n * const result = getWeekYear(new Date(2004, 11, 26))\n * //=> 2005\n *\n * @example\n * // Which week numbering year is 26 December 2004 if week starts on Saturday?\n * const result = getWeekYear(new Date(2004, 11, 26), { weekStartsOn: 6 })\n * //=> 2004\n *\n * @example\n * // Which week numbering year is 26 December 2004 if the first week contains 4 January?\n * const result = getWeekYear(new Date(2004, 11, 26), { firstWeekContainsDate: 4 })\n * //=> 2004\n */\nexport function getWeekYear(date, options) {\n const _date = toDate(date, options?.in);\n const year = _date.getFullYear();\n\n const defaultOptions = getDefaultOptions();\n const firstWeekContainsDate =\n options?.firstWeekContainsDate ??\n options?.locale?.options?.firstWeekContainsDate ??\n defaultOptions.firstWeekContainsDate ??\n defaultOptions.locale?.options?.firstWeekContainsDate ??\n 1;\n\n const firstWeekOfNextYear = constructFrom(options?.in || date, 0);\n firstWeekOfNextYear.setFullYear(year + 1, 0, firstWeekContainsDate);\n firstWeekOfNextYear.setHours(0, 0, 0, 0);\n const startOfNextYear = startOfWeek(firstWeekOfNextYear, options);\n\n const firstWeekOfThisYear = constructFrom(options?.in || date, 0);\n firstWeekOfThisYear.setFullYear(year, 0, firstWeekContainsDate);\n firstWeekOfThisYear.setHours(0, 0, 0, 0);\n const startOfThisYear = startOfWeek(firstWeekOfThisYear, options);\n\n if (+_date >= +startOfNextYear) {\n return year + 1;\n } else if (+_date >= +startOfThisYear) {\n return year;\n } else {\n return year - 1;\n }\n}\n\n// Fallback for modularized imports:\nexport default getWeekYear;\n"],"names":[],"mappings":";;;;;AAKA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAAS,WAAW,CAAC,IAAI,EAAE,OAAO,EAAE;AAC3C,EAAE,MAAM,KAAK,GAAG,MAAM,CAAC,IAAI,EAAE,OAAO,EAAE,EAAE,CAAC;AACzC,EAAE,MAAM,IAAI,GAAG,KAAK,CAAC,WAAW,EAAE;;AAElC,EAAE,MAAM,cAAc,GAAG,iBAAiB,EAAE;AAC5C,EAAE,MAAM,qBAAqB;AAC7B,IAAI,OAAO,EAAE,qBAAqB;AAClC,IAAI,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,qBAAqB;AACnD,IAAI,cAAc,CAAC,qBAAqB;AACxC,IAAI,cAAc,CAAC,MAAM,EAAE,OAAO,EAAE,qBAAqB;AACzD,IAAI,CAAC;;AAEL,EAAE,MAAM,mBAAmB,GAAG,aAAa,CAAC,OAAO,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;AACnE,EAAE,mBAAmB,CAAC,WAAW,CAAC,IAAI,GAAG,CAAC,EAAE,CAAC,EAAE,qBAAqB,CAAC;AACrE,EAAE,mBAAmB,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;AAC1C,EAAE,MAAM,eAAe,GAAG,WAAW,CAAC,mBAAmB,EAAE,OAAO,CAAC;;AAEnE,EAAE,MAAM,mBAAmB,GAAG,aAAa,CAAC,OAAO,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;AACnE,EAAE,mBAAmB,CAAC,WAAW,CAAC,IAAI,EAAE,CAAC,EAAE,qBAAqB,CAAC;AACjE,EAAE,mBAAmB,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;AAC1C,EAAE,MAAM,eAAe,GAAG,WAAW,CAAC,mBAAmB,EAAE,OAAO,CAAC;;AAEnE,EAAE,IAAI,CAAC,KAAK,IAAI,CAAC,eAAe,EAAE;AAClC,IAAI,OAAO,IAAI,GAAG,CAAC;AACnB,EAAE,CAAC,MAAM,IAAI,CAAC,KAAK,IAAI,CAAC,eAAe,EAAE;AACzC,IAAI,OAAO,IAAI;AACf,EAAE,CAAC,MAAM;AACT,IAAI,OAAO,IAAI,GAAG,CAAC;AACnB,EAAE;AACF;;;;","x_google_ignoreList":[0]}
@@ -1,30 +0,0 @@
1
- import { toDate } from './toDate.js';
2
-
3
- /**
4
- * The {@link getYear} function options.
5
- */
6
-
7
- /**
8
- * @name getYear
9
- * @category Year Helpers
10
- * @summary Get the year of the given date.
11
- *
12
- * @description
13
- * Get the year of the given date.
14
- *
15
- * @param date - The given date
16
- * @param options - An object with options
17
- *
18
- * @returns The year
19
- *
20
- * @example
21
- * // Which year is 2 July 2014?
22
- * const result = getYear(new Date(2014, 6, 2))
23
- * //=> 2014
24
- */
25
- function getYear(date, options) {
26
- return toDate(date, options?.in).getFullYear();
27
- }
28
-
29
- export { getYear as default, getYear };
30
- //# sourceMappingURL=getYear.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getYear.js","sources":["../../../node_modules/date-fns/getYear.js"],"sourcesContent":["import { toDate } from \"./toDate.js\";\n\n/**\n * The {@link getYear} function options.\n */\n\n/**\n * @name getYear\n * @category Year Helpers\n * @summary Get the year of the given date.\n *\n * @description\n * Get the year of the given date.\n *\n * @param date - The given date\n * @param options - An object with options\n *\n * @returns The year\n *\n * @example\n * // Which year is 2 July 2014?\n * const result = getYear(new Date(2014, 6, 2))\n * //=> 2014\n */\nexport function getYear(date, options) {\n return toDate(date, options?.in).getFullYear();\n}\n\n// Fallback for modularized imports:\nexport default getYear;\n"],"names":[],"mappings":";;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAAS,OAAO,CAAC,IAAI,EAAE,OAAO,EAAE;AACvC,EAAE,OAAO,MAAM,CAAC,IAAI,EAAE,OAAO,EAAE,EAAE,CAAC,CAAC,WAAW,EAAE;AAChD;;;;","x_google_ignoreList":[0]}
@@ -1,26 +0,0 @@
1
- import { toDate } from './toDate.js';
2
-
3
- /**
4
- * @name isAfter
5
- * @category Common Helpers
6
- * @summary Is the first date after the second one?
7
- *
8
- * @description
9
- * Is the first date after the second one?
10
- *
11
- * @param date - The date that should be after the other one to return true
12
- * @param dateToCompare - The date to compare with
13
- *
14
- * @returns The first date is after the second date
15
- *
16
- * @example
17
- * // Is 10 July 1989 after 11 February 1987?
18
- * const result = isAfter(new Date(1989, 6, 10), new Date(1987, 1, 11))
19
- * //=> true
20
- */
21
- function isAfter(date, dateToCompare) {
22
- return +toDate(date) > +toDate(dateToCompare);
23
- }
24
-
25
- export { isAfter as default, isAfter };
26
- //# sourceMappingURL=isAfter.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"isAfter.js","sources":["../../../node_modules/date-fns/isAfter.js"],"sourcesContent":["import { toDate } from \"./toDate.js\";\n\n/**\n * @name isAfter\n * @category Common Helpers\n * @summary Is the first date after the second one?\n *\n * @description\n * Is the first date after the second one?\n *\n * @param date - The date that should be after the other one to return true\n * @param dateToCompare - The date to compare with\n *\n * @returns The first date is after the second date\n *\n * @example\n * // Is 10 July 1989 after 11 February 1987?\n * const result = isAfter(new Date(1989, 6, 10), new Date(1987, 1, 11))\n * //=> true\n */\nexport function isAfter(date, dateToCompare) {\n return +toDate(date) > +toDate(dateToCompare);\n}\n\n// Fallback for modularized imports:\nexport default isAfter;\n"],"names":[],"mappings":";;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAAS,OAAO,CAAC,IAAI,EAAE,aAAa,EAAE;AAC7C,EAAE,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,aAAa,CAAC;AAC/C;;;;","x_google_ignoreList":[0]}
@@ -1,26 +0,0 @@
1
- import { toDate } from './toDate.js';
2
-
3
- /**
4
- * @name isBefore
5
- * @category Common Helpers
6
- * @summary Is the first date before the second one?
7
- *
8
- * @description
9
- * Is the first date before the second one?
10
- *
11
- * @param date - The date that should be before the other one to return true
12
- * @param dateToCompare - The date to compare with
13
- *
14
- * @returns The first date is before the second date
15
- *
16
- * @example
17
- * // Is 10 July 1989 before 11 February 1987?
18
- * const result = isBefore(new Date(1989, 6, 10), new Date(1987, 1, 11))
19
- * //=> false
20
- */
21
- function isBefore(date, dateToCompare) {
22
- return +toDate(date) < +toDate(dateToCompare);
23
- }
24
-
25
- export { isBefore as default, isBefore };
26
- //# sourceMappingURL=isBefore.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"isBefore.js","sources":["../../../node_modules/date-fns/isBefore.js"],"sourcesContent":["import { toDate } from \"./toDate.js\";\n\n/**\n * @name isBefore\n * @category Common Helpers\n * @summary Is the first date before the second one?\n *\n * @description\n * Is the first date before the second one?\n *\n * @param date - The date that should be before the other one to return true\n * @param dateToCompare - The date to compare with\n *\n * @returns The first date is before the second date\n *\n * @example\n * // Is 10 July 1989 before 11 February 1987?\n * const result = isBefore(new Date(1989, 6, 10), new Date(1987, 1, 11))\n * //=> false\n */\nexport function isBefore(date, dateToCompare) {\n return +toDate(date) < +toDate(dateToCompare);\n}\n\n// Fallback for modularized imports:\nexport default isBefore;\n"],"names":[],"mappings":";;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAAS,QAAQ,CAAC,IAAI,EAAE,aAAa,EAAE;AAC9C,EAAE,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,aAAa,CAAC;AAC/C;;;;","x_google_ignoreList":[0]}
@@ -1,42 +0,0 @@
1
- /**
2
- * @name isDate
3
- * @category Common Helpers
4
- * @summary Is the given value a date?
5
- *
6
- * @description
7
- * Returns true if the given value is an instance of Date. The function works for dates transferred across iframes.
8
- *
9
- * @param value - The value to check
10
- *
11
- * @returns True if the given value is a date
12
- *
13
- * @example
14
- * // For a valid date:
15
- * const result = isDate(new Date())
16
- * //=> true
17
- *
18
- * @example
19
- * // For an invalid date:
20
- * const result = isDate(new Date(NaN))
21
- * //=> true
22
- *
23
- * @example
24
- * // For some value:
25
- * const result = isDate('2014-02-31')
26
- * //=> false
27
- *
28
- * @example
29
- * // For an object:
30
- * const result = isDate({})
31
- * //=> false
32
- */
33
- function isDate(value) {
34
- return (
35
- value instanceof Date ||
36
- (typeof value === "object" &&
37
- Object.prototype.toString.call(value) === "[object Date]")
38
- );
39
- }
40
-
41
- export { isDate as default, isDate };
42
- //# sourceMappingURL=isDate.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"isDate.js","sources":["../../../node_modules/date-fns/isDate.js"],"sourcesContent":["/**\n * @name isDate\n * @category Common Helpers\n * @summary Is the given value a date?\n *\n * @description\n * Returns true if the given value is an instance of Date. The function works for dates transferred across iframes.\n *\n * @param value - The value to check\n *\n * @returns True if the given value is a date\n *\n * @example\n * // For a valid date:\n * const result = isDate(new Date())\n * //=> true\n *\n * @example\n * // For an invalid date:\n * const result = isDate(new Date(NaN))\n * //=> true\n *\n * @example\n * // For some value:\n * const result = isDate('2014-02-31')\n * //=> false\n *\n * @example\n * // For an object:\n * const result = isDate({})\n * //=> false\n */\nexport function isDate(value) {\n return (\n value instanceof Date ||\n (typeof value === \"object\" &&\n Object.prototype.toString.call(value) === \"[object Date]\")\n );\n}\n\n// Fallback for modularized imports:\nexport default isDate;\n"],"names":[],"mappings":"AAAA;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;AACA;AACA;AACA;AACA;AACA;AACO,SAAS,MAAM,CAAC,KAAK,EAAE;AAC9B,EAAE;AACF,IAAI,KAAK,YAAY,IAAI;AACzB,KAAK,OAAO,KAAK,KAAK,QAAQ;AAC9B,MAAM,MAAM,CAAC,SAAS,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,eAAe;AAC/D;AACA;;;;","x_google_ignoreList":[0]}
@@ -1,47 +0,0 @@
1
- import { normalizeDates } from './_lib/normalizeDates.js';
2
- import { startOfDay } from './startOfDay.js';
3
-
4
- /**
5
- * The {@link isSameDay} function options.
6
- */
7
-
8
- /**
9
- * @name isSameDay
10
- * @category Day Helpers
11
- * @summary Are the given dates in the same day (and year and month)?
12
- *
13
- * @description
14
- * Are the given dates in the same day (and year and month)?
15
- *
16
- * @param laterDate - The first date to check
17
- * @param earlierDate - The second date to check
18
- * @param options - An object with options
19
- *
20
- * @returns The dates are in the same day (and year and month)
21
- *
22
- * @example
23
- * // Are 4 September 06:00:00 and 4 September 18:00:00 in the same day?
24
- * const result = isSameDay(new Date(2014, 8, 4, 6, 0), new Date(2014, 8, 4, 18, 0))
25
- * //=> true
26
- *
27
- * @example
28
- * // Are 4 September and 4 October in the same day?
29
- * const result = isSameDay(new Date(2014, 8, 4), new Date(2014, 9, 4))
30
- * //=> false
31
- *
32
- * @example
33
- * // Are 4 September, 2014 and 4 September, 2015 in the same day?
34
- * const result = isSameDay(new Date(2014, 8, 4), new Date(2015, 8, 4))
35
- * //=> false
36
- */
37
- function isSameDay(laterDate, earlierDate, options) {
38
- const [dateLeft_, dateRight_] = normalizeDates(
39
- options?.in,
40
- laterDate,
41
- earlierDate,
42
- );
43
- return +startOfDay(dateLeft_) === +startOfDay(dateRight_);
44
- }
45
-
46
- export { isSameDay as default, isSameDay };
47
- //# sourceMappingURL=isSameDay.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"isSameDay.js","sources":["../../../node_modules/date-fns/isSameDay.js"],"sourcesContent":["import { normalizeDates } from \"./_lib/normalizeDates.js\";\nimport { startOfDay } from \"./startOfDay.js\";\n\n/**\n * The {@link isSameDay} function options.\n */\n\n/**\n * @name isSameDay\n * @category Day Helpers\n * @summary Are the given dates in the same day (and year and month)?\n *\n * @description\n * Are the given dates in the same day (and year and month)?\n *\n * @param laterDate - The first date to check\n * @param earlierDate - The second date to check\n * @param options - An object with options\n *\n * @returns The dates are in the same day (and year and month)\n *\n * @example\n * // Are 4 September 06:00:00 and 4 September 18:00:00 in the same day?\n * const result = isSameDay(new Date(2014, 8, 4, 6, 0), new Date(2014, 8, 4, 18, 0))\n * //=> true\n *\n * @example\n * // Are 4 September and 4 October in the same day?\n * const result = isSameDay(new Date(2014, 8, 4), new Date(2014, 9, 4))\n * //=> false\n *\n * @example\n * // Are 4 September, 2014 and 4 September, 2015 in the same day?\n * const result = isSameDay(new Date(2014, 8, 4), new Date(2015, 8, 4))\n * //=> false\n */\nexport function isSameDay(laterDate, earlierDate, options) {\n const [dateLeft_, dateRight_] = normalizeDates(\n options?.in,\n laterDate,\n earlierDate,\n );\n return +startOfDay(dateLeft_) === +startOfDay(dateRight_);\n}\n\n// Fallback for modularized imports:\nexport default isSameDay;\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;AACA;AACA;AACO,SAAS,SAAS,CAAC,SAAS,EAAE,WAAW,EAAE,OAAO,EAAE;AAC3D,EAAE,MAAM,CAAC,SAAS,EAAE,UAAU,CAAC,GAAG,cAAc;AAChD,IAAI,OAAO,EAAE,EAAE;AACf,IAAI,SAAS;AACb,IAAI,WAAW;AACf,GAAG;AACH,EAAE,OAAO,CAAC,UAAU,CAAC,SAAS,CAAC,KAAK,CAAC,UAAU,CAAC,UAAU,CAAC;AAC3D;;;;","x_google_ignoreList":[0]}
@@ -1,44 +0,0 @@
1
- import { normalizeDates } from './_lib/normalizeDates.js';
2
-
3
- /**
4
- * The {@link isSameMonth} function options.
5
- */
6
-
7
- /**
8
- * @name isSameMonth
9
- * @category Month Helpers
10
- * @summary Are the given dates in the same month (and year)?
11
- *
12
- * @description
13
- * Are the given dates in the same month (and year)?
14
- *
15
- * @param laterDate - The first date to check
16
- * @param earlierDate - The second date to check
17
- * @param options - An object with options
18
- *
19
- * @returns The dates are in the same month (and year)
20
- *
21
- * @example
22
- * // Are 2 September 2014 and 25 September 2014 in the same month?
23
- * const result = isSameMonth(new Date(2014, 8, 2), new Date(2014, 8, 25))
24
- * //=> true
25
- *
26
- * @example
27
- * // Are 2 September 2014 and 25 September 2015 in the same month?
28
- * const result = isSameMonth(new Date(2014, 8, 2), new Date(2015, 8, 25))
29
- * //=> false
30
- */
31
- function isSameMonth(laterDate, earlierDate, options) {
32
- const [laterDate_, earlierDate_] = normalizeDates(
33
- options?.in,
34
- laterDate,
35
- earlierDate,
36
- );
37
- return (
38
- laterDate_.getFullYear() === earlierDate_.getFullYear() &&
39
- laterDate_.getMonth() === earlierDate_.getMonth()
40
- );
41
- }
42
-
43
- export { isSameMonth as default, isSameMonth };
44
- //# sourceMappingURL=isSameMonth.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"isSameMonth.js","sources":["../../../node_modules/date-fns/isSameMonth.js"],"sourcesContent":["import { normalizeDates } from \"./_lib/normalizeDates.js\";\n\n/**\n * The {@link isSameMonth} function options.\n */\n\n/**\n * @name isSameMonth\n * @category Month Helpers\n * @summary Are the given dates in the same month (and year)?\n *\n * @description\n * Are the given dates in the same month (and year)?\n *\n * @param laterDate - The first date to check\n * @param earlierDate - The second date to check\n * @param options - An object with options\n *\n * @returns The dates are in the same month (and year)\n *\n * @example\n * // Are 2 September 2014 and 25 September 2014 in the same month?\n * const result = isSameMonth(new Date(2014, 8, 2), new Date(2014, 8, 25))\n * //=> true\n *\n * @example\n * // Are 2 September 2014 and 25 September 2015 in the same month?\n * const result = isSameMonth(new Date(2014, 8, 2), new Date(2015, 8, 25))\n * //=> false\n */\nexport function isSameMonth(laterDate, earlierDate, options) {\n const [laterDate_, earlierDate_] = normalizeDates(\n options?.in,\n laterDate,\n earlierDate,\n );\n return (\n laterDate_.getFullYear() === earlierDate_.getFullYear() &&\n laterDate_.getMonth() === earlierDate_.getMonth()\n );\n}\n\n// Fallback for modularized imports:\nexport default isSameMonth;\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,WAAW,CAAC,SAAS,EAAE,WAAW,EAAE,OAAO,EAAE;AAC7D,EAAE,MAAM,CAAC,UAAU,EAAE,YAAY,CAAC,GAAG,cAAc;AACnD,IAAI,OAAO,EAAE,EAAE;AACf,IAAI,SAAS;AACb,IAAI,WAAW;AACf,GAAG;AACH,EAAE;AACF,IAAI,UAAU,CAAC,WAAW,EAAE,KAAK,YAAY,CAAC,WAAW,EAAE;AAC3D,IAAI,UAAU,CAAC,QAAQ,EAAE,KAAK,YAAY,CAAC,QAAQ;AACnD;AACA;;;;","x_google_ignoreList":[0]}
@@ -1,36 +0,0 @@
1
- import { normalizeDates } from './_lib/normalizeDates.js';
2
-
3
- /**
4
- * The {@link isSameYear} function options.
5
- */
6
-
7
- /**
8
- * @name isSameYear
9
- * @category Year Helpers
10
- * @summary Are the given dates in the same year?
11
- *
12
- * @description
13
- * Are the given dates in the same year?
14
- *
15
- * @param laterDate - The first date to check
16
- * @param earlierDate - The second date to check
17
- * @param options - An object with options
18
- *
19
- * @returns The dates are in the same year
20
- *
21
- * @example
22
- * // Are 2 September 2014 and 25 September 2014 in the same year?
23
- * const result = isSameYear(new Date(2014, 8, 2), new Date(2014, 8, 25))
24
- * //=> true
25
- */
26
- function isSameYear(laterDate, earlierDate, options) {
27
- const [laterDate_, earlierDate_] = normalizeDates(
28
- options?.in,
29
- laterDate,
30
- earlierDate,
31
- );
32
- return laterDate_.getFullYear() === earlierDate_.getFullYear();
33
- }
34
-
35
- export { isSameYear as default, isSameYear };
36
- //# sourceMappingURL=isSameYear.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"isSameYear.js","sources":["../../../node_modules/date-fns/isSameYear.js"],"sourcesContent":["import { normalizeDates } from \"./_lib/normalizeDates.js\";\n\n/**\n * The {@link isSameYear} function options.\n */\n\n/**\n * @name isSameYear\n * @category Year Helpers\n * @summary Are the given dates in the same year?\n *\n * @description\n * Are the given dates in the same year?\n *\n * @param laterDate - The first date to check\n * @param earlierDate - The second date to check\n * @param options - An object with options\n *\n * @returns The dates are in the same year\n *\n * @example\n * // Are 2 September 2014 and 25 September 2014 in the same year?\n * const result = isSameYear(new Date(2014, 8, 2), new Date(2014, 8, 25))\n * //=> true\n */\nexport function isSameYear(laterDate, earlierDate, options) {\n const [laterDate_, earlierDate_] = normalizeDates(\n options?.in,\n laterDate,\n earlierDate,\n );\n return laterDate_.getFullYear() === earlierDate_.getFullYear();\n}\n\n// Fallback for modularized imports:\nexport default isSameYear;\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;AACO,SAAS,UAAU,CAAC,SAAS,EAAE,WAAW,EAAE,OAAO,EAAE;AAC5D,EAAE,MAAM,CAAC,UAAU,EAAE,YAAY,CAAC,GAAG,cAAc;AACnD,IAAI,OAAO,EAAE,EAAE;AACf,IAAI,SAAS;AACb,IAAI,WAAW;AACf,GAAG;AACH,EAAE,OAAO,UAAU,CAAC,WAAW,EAAE,KAAK,YAAY,CAAC,WAAW,EAAE;AAChE;;;;","x_google_ignoreList":[0]}
@@ -1,40 +0,0 @@
1
- import { isDate } from './isDate.js';
2
- import { toDate } from './toDate.js';
3
-
4
- /**
5
- * @name isValid
6
- * @category Common Helpers
7
- * @summary Is the given date valid?
8
- *
9
- * @description
10
- * Returns false if argument is Invalid Date and true otherwise.
11
- * Argument is converted to Date using `toDate`. See [toDate](https://date-fns.org/docs/toDate)
12
- * Invalid Date is a Date, whose time value is NaN.
13
- *
14
- * Time value of Date: http://es5.github.io/#x15.9.1.1
15
- *
16
- * @param date - The date to check
17
- *
18
- * @returns The date is valid
19
- *
20
- * @example
21
- * // For the valid date:
22
- * const result = isValid(new Date(2014, 1, 31))
23
- * //=> true
24
- *
25
- * @example
26
- * // For the value, convertible into a date:
27
- * const result = isValid(1393804800000)
28
- * //=> true
29
- *
30
- * @example
31
- * // For the invalid date:
32
- * const result = isValid(new Date(''))
33
- * //=> false
34
- */
35
- function isValid(date) {
36
- return !((!isDate(date) && typeof date !== "number") || isNaN(+toDate(date)));
37
- }
38
-
39
- export { isValid as default, isValid };
40
- //# sourceMappingURL=isValid.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"isValid.js","sources":["../../../node_modules/date-fns/isValid.js"],"sourcesContent":["import { isDate } from \"./isDate.js\";\nimport { toDate } from \"./toDate.js\";\n\n/**\n * @name isValid\n * @category Common Helpers\n * @summary Is the given date valid?\n *\n * @description\n * Returns false if argument is Invalid Date and true otherwise.\n * Argument is converted to Date using `toDate`. See [toDate](https://date-fns.org/docs/toDate)\n * Invalid Date is a Date, whose time value is NaN.\n *\n * Time value of Date: http://es5.github.io/#x15.9.1.1\n *\n * @param date - The date to check\n *\n * @returns The date is valid\n *\n * @example\n * // For the valid date:\n * const result = isValid(new Date(2014, 1, 31))\n * //=> true\n *\n * @example\n * // For the value, convertible into a date:\n * const result = isValid(1393804800000)\n * //=> true\n *\n * @example\n * // For the invalid date:\n * const result = isValid(new Date(''))\n * //=> false\n */\nexport function isValid(date) {\n return !((!isDate(date) && typeof date !== \"number\") || isNaN(+toDate(date)));\n}\n\n// Fallback for modularized imports:\nexport default isValid;\n"],"names":[],"mappings":";;;AAGA;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;AACA;AACA;AACA;AACA;AACO,SAAS,OAAO,CAAC,IAAI,EAAE;AAC9B,EAAE,OAAO,EAAE,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,OAAO,IAAI,KAAK,QAAQ,KAAK,KAAK,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC;AAC/E;;;;","x_google_ignoreList":[0]}
@@ -1,11 +0,0 @@
1
- function buildFormatLongFn(args) {
2
- return (options = {}) => {
3
- // TODO: Remove String()
4
- const width = options.width ? String(options.width) : args.defaultWidth;
5
- const format = args.formats[width] || args.formats[args.defaultWidth];
6
- return format;
7
- };
8
- }
9
-
10
- export { buildFormatLongFn };
11
- //# sourceMappingURL=buildFormatLongFn.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"buildFormatLongFn.js","sources":["../../../../../node_modules/date-fns/locale/_lib/buildFormatLongFn.js"],"sourcesContent":["export function buildFormatLongFn(args) {\n return (options = {}) => {\n // TODO: Remove String()\n const width = options.width ? String(options.width) : args.defaultWidth;\n const format = args.formats[width] || args.formats[args.defaultWidth];\n return format;\n };\n}\n"],"names":[],"mappings":"AAAO,SAAS,iBAAiB,CAAC,IAAI,EAAE;AACxC,EAAE,OAAO,CAAC,OAAO,GAAG,EAAE,KAAK;AAC3B;AACA,IAAI,MAAM,KAAK,GAAG,OAAO,CAAC,KAAK,GAAG,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,YAAY;AAC3E,IAAI,MAAM,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,YAAY,CAAC;AACzE,IAAI,OAAO,MAAM;AACjB,EAAE,CAAC;AACH;;;;","x_google_ignoreList":[0]}