pixel-react 1.14.17 → 1.14.18

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 (273) hide show
  1. package/README.md +75 -75
  2. package/lib/_virtual/_commonjsHelpers.js +1 -26
  3. package/lib/_virtual/_commonjsHelpers.js.map +1 -1
  4. package/lib/_virtual/index10.js +2 -2
  5. package/lib/_virtual/index9.js +2 -2
  6. package/lib/assets/icons/spinner.svg.js +1 -1
  7. package/lib/assets/icons/spinner.svg.js.map +1 -1
  8. package/lib/components/DatePicker/DatePicker.js +1 -4
  9. package/lib/components/DatePicker/DatePicker.js.map +1 -1
  10. package/lib/index.cjs +2506 -7014
  11. package/lib/index.cjs.map +1 -1
  12. package/lib/index.d.ts +2 -1
  13. package/lib/node_modules/draft-js/lib/AtomicBlockUtils.js +1 -1
  14. package/lib/node_modules/draft-js/lib/BlockMapBuilder.js +1 -1
  15. package/lib/node_modules/draft-js/lib/BlockTree.js +1 -1
  16. package/lib/node_modules/draft-js/lib/CharacterMetadata.js +1 -1
  17. package/lib/node_modules/draft-js/lib/CompositeDraftDecorator.js +1 -1
  18. package/lib/node_modules/draft-js/lib/ContentBlock.js +1 -1
  19. package/lib/node_modules/draft-js/lib/ContentBlockNode.js +1 -1
  20. package/lib/node_modules/draft-js/lib/ContentState.js +1 -1
  21. package/lib/node_modules/draft-js/lib/ContentStateInlineStyle.js +1 -1
  22. package/lib/node_modules/draft-js/lib/DOMObserver.js +1 -1
  23. package/lib/node_modules/draft-js/lib/DefaultDraftBlockRenderMap.js +1 -1
  24. package/lib/node_modules/draft-js/lib/DraftEditorBlockNode.react.js +1 -1
  25. package/lib/node_modules/draft-js/lib/DraftEditorNode.react.js +1 -1
  26. package/lib/node_modules/draft-js/lib/DraftEntity.js +1 -1
  27. package/lib/node_modules/draft-js/lib/DraftEntityInstance.js +1 -1
  28. package/lib/node_modules/draft-js/lib/DraftModifier.js +1 -1
  29. package/lib/node_modules/draft-js/lib/DraftPasteProcessor.js +1 -1
  30. package/lib/node_modules/draft-js/lib/EditorBidiService.js +1 -1
  31. package/lib/node_modules/draft-js/lib/EditorState.js +1 -1
  32. package/lib/node_modules/draft-js/lib/SelectionState.js +1 -1
  33. package/lib/node_modules/draft-js/lib/applyEntityToContentState.js +1 -1
  34. package/lib/node_modules/draft-js/lib/convertFromHTMLToContentBlocks.js +1 -1
  35. package/lib/node_modules/draft-js/lib/convertFromRawToDraftState.js +1 -1
  36. package/lib/node_modules/draft-js/lib/createCharacterList.js +1 -1
  37. package/lib/node_modules/draft-js/lib/decodeInlineStyleRanges.js +1 -1
  38. package/lib/node_modules/draft-js/lib/insertFragmentIntoContentState.js +1 -1
  39. package/lib/node_modules/draft-js/lib/insertTextIntoContentState.js +1 -1
  40. package/lib/node_modules/draft-js/lib/modifyBlockForContentState.js +1 -1
  41. package/lib/node_modules/draft-js/lib/moveBlockInContentState.js +1 -1
  42. package/lib/node_modules/draft-js/lib/randomizeBlockMapKeys.js +1 -1
  43. package/lib/node_modules/draft-js/lib/removeRangeFromContentState.js +1 -1
  44. package/lib/node_modules/draft-js/lib/splitBlockInContentState.js +1 -1
  45. package/lib/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js +1 -1
  46. package/lib/node_modules/{draft-js/node_modules/immutable → immutable}/dist/immutable.js +1 -1
  47. package/lib/node_modules/immutable/dist/immutable.js.map +1 -0
  48. package/lib/node_modules/js-beautify/js/src/css/index.js +1 -1
  49. package/lib/node_modules/js-beautify/js/src/css/options.js +1 -1
  50. package/lib/node_modules/js-beautify/js/src/html/beautifier.js +1 -1
  51. package/lib/node_modules/js-beautify/js/src/html/index.js +1 -1
  52. package/lib/node_modules/js-beautify/js/src/html/options.js +1 -1
  53. package/lib/node_modules/js-beautify/js/src/javascript/beautifier.js +1 -1
  54. package/lib/node_modules/js-beautify/js/src/javascript/options.js +1 -1
  55. package/lib/node_modules/libphonenumber-js/metadata.min.json.js +12 -12
  56. package/lib/node_modules/libphonenumber-js/metadata.min.json.js.map +1 -1
  57. package/lib/node_modules/prop-types/factoryWithTypeCheckers.js +1 -1
  58. package/lib/node_modules/prop-types/index.js +1 -1
  59. package/lib/node_modules/react-day-picker/dist/esm/DayPicker.js +112 -17
  60. package/lib/node_modules/react-day-picker/dist/esm/DayPicker.js.map +1 -1
  61. package/lib/node_modules/react-day-picker/dist/esm/UI.js +31 -9
  62. package/lib/node_modules/react-day-picker/dist/esm/UI.js.map +1 -1
  63. package/lib/node_modules/react-day-picker/dist/esm/classes/CalendarDay.js +9 -6
  64. package/lib/node_modules/react-day-picker/dist/esm/classes/CalendarDay.js.map +1 -1
  65. package/lib/node_modules/react-day-picker/dist/esm/classes/CalendarMonth.js +6 -1
  66. package/lib/node_modules/react-day-picker/dist/esm/classes/CalendarMonth.js.map +1 -1
  67. package/lib/node_modules/react-day-picker/dist/esm/classes/CalendarWeek.js +5 -1
  68. package/lib/node_modules/react-day-picker/dist/esm/classes/CalendarWeek.js.map +1 -1
  69. package/lib/node_modules/react-day-picker/dist/esm/classes/DateLib.js +55 -51
  70. package/lib/node_modules/react-day-picker/dist/esm/classes/DateLib.js.map +1 -1
  71. package/lib/node_modules/react-day-picker/dist/esm/components/Chevron.js +1 -1
  72. package/lib/node_modules/react-day-picker/dist/esm/components/Chevron.js.map +1 -1
  73. package/lib/node_modules/react-day-picker/dist/esm/components/Day.js +4 -4
  74. package/lib/node_modules/react-day-picker/dist/esm/components/Day.js.map +1 -1
  75. package/lib/node_modules/react-day-picker/dist/esm/components/DayButton.js +1 -1
  76. package/lib/node_modules/react-day-picker/dist/esm/components/DayButton.js.map +1 -1
  77. package/lib/node_modules/react-day-picker/dist/esm/components/Dropdown.js +1 -1
  78. package/lib/node_modules/react-day-picker/dist/esm/components/Dropdown.js.map +1 -1
  79. package/lib/node_modules/react-day-picker/dist/esm/components/DropdownNav.js +1 -1
  80. package/lib/node_modules/react-day-picker/dist/esm/components/DropdownNav.js.map +1 -1
  81. package/lib/node_modules/react-day-picker/dist/esm/components/Footer.js +1 -1
  82. package/lib/node_modules/react-day-picker/dist/esm/components/Footer.js.map +1 -1
  83. package/lib/node_modules/react-day-picker/dist/esm/components/Month.js +1 -1
  84. package/lib/node_modules/react-day-picker/dist/esm/components/Month.js.map +1 -1
  85. package/lib/node_modules/react-day-picker/dist/esm/components/MonthCaption.js +1 -1
  86. package/lib/node_modules/react-day-picker/dist/esm/components/MonthCaption.js.map +1 -1
  87. package/lib/node_modules/react-day-picker/dist/esm/components/MonthGrid.js +1 -1
  88. package/lib/node_modules/react-day-picker/dist/esm/components/MonthGrid.js.map +1 -1
  89. package/lib/node_modules/react-day-picker/dist/esm/components/Months.js +1 -1
  90. package/lib/node_modules/react-day-picker/dist/esm/components/Months.js.map +1 -1
  91. package/lib/node_modules/react-day-picker/dist/esm/components/MonthsDropdown.js +1 -1
  92. package/lib/node_modules/react-day-picker/dist/esm/components/MonthsDropdown.js.map +1 -1
  93. package/lib/node_modules/react-day-picker/dist/esm/components/Nav.js +16 -6
  94. package/lib/node_modules/react-day-picker/dist/esm/components/Nav.js.map +1 -1
  95. package/lib/node_modules/react-day-picker/dist/esm/components/NextMonthButton.js +1 -1
  96. package/lib/node_modules/react-day-picker/dist/esm/components/NextMonthButton.js.map +1 -1
  97. package/lib/node_modules/react-day-picker/dist/esm/components/Option.js +1 -1
  98. package/lib/node_modules/react-day-picker/dist/esm/components/Option.js.map +1 -1
  99. package/lib/node_modules/react-day-picker/dist/esm/components/PreviousMonthButton.js +1 -1
  100. package/lib/node_modules/react-day-picker/dist/esm/components/PreviousMonthButton.js.map +1 -1
  101. package/lib/node_modules/react-day-picker/dist/esm/components/Root.js +7 -2
  102. package/lib/node_modules/react-day-picker/dist/esm/components/Root.js.map +1 -1
  103. package/lib/node_modules/react-day-picker/dist/esm/components/Select.js +1 -1
  104. package/lib/node_modules/react-day-picker/dist/esm/components/Select.js.map +1 -1
  105. package/lib/node_modules/react-day-picker/dist/esm/components/Week.js +1 -1
  106. package/lib/node_modules/react-day-picker/dist/esm/components/Week.js.map +1 -1
  107. package/lib/node_modules/react-day-picker/dist/esm/components/WeekNumber.js +1 -1
  108. package/lib/node_modules/react-day-picker/dist/esm/components/WeekNumber.js.map +1 -1
  109. package/lib/node_modules/react-day-picker/dist/esm/components/WeekNumberHeader.js +1 -1
  110. package/lib/node_modules/react-day-picker/dist/esm/components/WeekNumberHeader.js.map +1 -1
  111. package/lib/node_modules/react-day-picker/dist/esm/components/Weekday.js +1 -1
  112. package/lib/node_modules/react-day-picker/dist/esm/components/Weekday.js.map +1 -1
  113. package/lib/node_modules/react-day-picker/dist/esm/components/Weekdays.js +1 -1
  114. package/lib/node_modules/react-day-picker/dist/esm/components/Weekdays.js.map +1 -1
  115. package/lib/node_modules/react-day-picker/dist/esm/components/Weeks.js +1 -1
  116. package/lib/node_modules/react-day-picker/dist/esm/components/Weeks.js.map +1 -1
  117. package/lib/node_modules/react-day-picker/dist/esm/components/YearsDropdown.js +1 -1
  118. package/lib/node_modules/react-day-picker/dist/esm/components/YearsDropdown.js.map +1 -1
  119. package/lib/node_modules/react-day-picker/dist/esm/formatters/formatCaption.js +7 -2
  120. package/lib/node_modules/react-day-picker/dist/esm/formatters/formatCaption.js.map +1 -1
  121. package/lib/node_modules/react-day-picker/dist/esm/formatters/formatDay.js +7 -2
  122. package/lib/node_modules/react-day-picker/dist/esm/formatters/formatDay.js.map +1 -1
  123. package/lib/node_modules/react-day-picker/dist/esm/formatters/formatMonthDropdown.js +6 -2
  124. package/lib/node_modules/react-day-picker/dist/esm/formatters/formatMonthDropdown.js.map +1 -1
  125. package/lib/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumber.js +11 -5
  126. package/lib/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumber.js.map +1 -1
  127. package/lib/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumberHeader.js +3 -2
  128. package/lib/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumberHeader.js.map +1 -1
  129. package/lib/node_modules/react-day-picker/dist/esm/formatters/formatWeekdayName.js +7 -2
  130. package/lib/node_modules/react-day-picker/dist/esm/formatters/formatWeekdayName.js.map +1 -1
  131. package/lib/node_modules/react-day-picker/dist/esm/formatters/formatYearDropdown.js +5 -1
  132. package/lib/node_modules/react-day-picker/dist/esm/formatters/formatYearDropdown.js.map +1 -1
  133. package/lib/node_modules/react-day-picker/dist/esm/helpers/calculateFocusTarget.js +46 -19
  134. package/lib/node_modules/react-day-picker/dist/esm/helpers/calculateFocusTarget.js.map +1 -1
  135. package/lib/node_modules/react-day-picker/dist/esm/{useGetModifiers.js → helpers/createGetModifiers.js} +13 -7
  136. package/lib/node_modules/react-day-picker/dist/esm/helpers/createGetModifiers.js.map +1 -0
  137. package/lib/node_modules/react-day-picker/dist/esm/helpers/endOfBroadcastWeek.js +7 -1
  138. package/lib/node_modules/react-day-picker/dist/esm/helpers/endOfBroadcastWeek.js.map +1 -1
  139. package/lib/node_modules/react-day-picker/dist/esm/helpers/getBroadcastWeeksInMonth.js +8 -1
  140. package/lib/node_modules/react-day-picker/dist/esm/helpers/getBroadcastWeeksInMonth.js.map +1 -1
  141. package/lib/node_modules/react-day-picker/dist/esm/helpers/getClassNamesForModifiers.js +12 -0
  142. package/lib/node_modules/react-day-picker/dist/esm/helpers/getClassNamesForModifiers.js.map +1 -1
  143. package/lib/node_modules/react-day-picker/dist/esm/helpers/getComponents.js +10 -0
  144. package/lib/node_modules/react-day-picker/dist/esm/helpers/getComponents.js.map +1 -1
  145. package/lib/node_modules/react-day-picker/dist/esm/helpers/getDataAttributes.js +11 -2
  146. package/lib/node_modules/react-day-picker/dist/esm/helpers/getDataAttributes.js.map +1 -1
  147. package/lib/node_modules/react-day-picker/dist/esm/helpers/getDates.js +13 -2
  148. package/lib/node_modules/react-day-picker/dist/esm/helpers/getDates.js.map +1 -1
  149. package/lib/node_modules/react-day-picker/dist/esm/helpers/getDays.js +4 -1
  150. package/lib/node_modules/react-day-picker/dist/esm/helpers/getDays.js.map +1 -1
  151. package/lib/node_modules/react-day-picker/dist/esm/helpers/getDefaultClassNames.js +9 -2
  152. package/lib/node_modules/react-day-picker/dist/esm/helpers/getDefaultClassNames.js.map +1 -1
  153. package/lib/node_modules/react-day-picker/dist/esm/helpers/getDisplayMonths.js +10 -0
  154. package/lib/node_modules/react-day-picker/dist/esm/helpers/getDisplayMonths.js.map +1 -1
  155. package/lib/node_modules/react-day-picker/dist/esm/helpers/getFocusableDate.js +17 -2
  156. package/lib/node_modules/react-day-picker/dist/esm/helpers/getFocusableDate.js.map +1 -1
  157. package/lib/node_modules/react-day-picker/dist/esm/helpers/getFormatters.js +7 -1
  158. package/lib/node_modules/react-day-picker/dist/esm/helpers/getFormatters.js.map +1 -1
  159. package/lib/node_modules/react-day-picker/dist/esm/helpers/getInitialMonth.js +13 -3
  160. package/lib/node_modules/react-day-picker/dist/esm/helpers/getInitialMonth.js.map +1 -1
  161. package/lib/node_modules/react-day-picker/dist/esm/helpers/getMonthOptions.js +15 -1
  162. package/lib/node_modules/react-day-picker/dist/esm/helpers/getMonthOptions.js.map +1 -1
  163. package/lib/node_modules/react-day-picker/dist/esm/helpers/getMonths.js +17 -8
  164. package/lib/node_modules/react-day-picker/dist/esm/helpers/getMonths.js.map +1 -1
  165. package/lib/node_modules/react-day-picker/dist/esm/helpers/getNavMonth.js +7 -1
  166. package/lib/node_modules/react-day-picker/dist/esm/helpers/getNavMonth.js.map +1 -1
  167. package/lib/node_modules/react-day-picker/dist/esm/helpers/getNextFocus.js +20 -7
  168. package/lib/node_modules/react-day-picker/dist/esm/helpers/getNextFocus.js.map +1 -1
  169. package/lib/node_modules/react-day-picker/dist/esm/helpers/getNextMonth.js +13 -6
  170. package/lib/node_modules/react-day-picker/dist/esm/helpers/getNextMonth.js.map +1 -1
  171. package/lib/node_modules/react-day-picker/dist/esm/helpers/getPreviousMonth.js +13 -5
  172. package/lib/node_modules/react-day-picker/dist/esm/helpers/getPreviousMonth.js.map +1 -1
  173. package/lib/node_modules/react-day-picker/dist/esm/helpers/getStyleForModifiers.js +11 -0
  174. package/lib/node_modules/react-day-picker/dist/esm/helpers/getStyleForModifiers.js.map +1 -1
  175. package/lib/node_modules/react-day-picker/dist/esm/helpers/getWeekdays.js +9 -6
  176. package/lib/node_modules/react-day-picker/dist/esm/helpers/getWeekdays.js.map +1 -1
  177. package/lib/node_modules/react-day-picker/dist/esm/helpers/getWeeks.js +6 -1
  178. package/lib/node_modules/react-day-picker/dist/esm/helpers/getWeeks.js.map +1 -1
  179. package/lib/node_modules/react-day-picker/dist/esm/helpers/getYearOptions.js +13 -1
  180. package/lib/node_modules/react-day-picker/dist/esm/helpers/getYearOptions.js.map +1 -1
  181. package/lib/node_modules/react-day-picker/dist/esm/helpers/startOfBroadcastWeek.js +8 -1
  182. package/lib/node_modules/react-day-picker/dist/esm/helpers/startOfBroadcastWeek.js.map +1 -1
  183. package/lib/node_modules/react-day-picker/dist/esm/helpers/useControlledValue.js +10 -6
  184. package/lib/node_modules/react-day-picker/dist/esm/helpers/useControlledValue.js.map +1 -1
  185. package/lib/node_modules/react-day-picker/dist/esm/labels/labelDayButton.js +9 -5
  186. package/lib/node_modules/react-day-picker/dist/esm/labels/labelDayButton.js.map +1 -1
  187. package/lib/node_modules/react-day-picker/dist/esm/labels/labelGrid.js +7 -3
  188. package/lib/node_modules/react-day-picker/dist/esm/labels/labelGrid.js.map +1 -1
  189. package/lib/node_modules/react-day-picker/dist/esm/labels/labelGridcell.js +7 -3
  190. package/lib/node_modules/react-day-picker/dist/esm/labels/labelGridcell.js.map +1 -1
  191. package/lib/node_modules/react-day-picker/dist/esm/labels/labelMonthDropdown.js +3 -1
  192. package/lib/node_modules/react-day-picker/dist/esm/labels/labelMonthDropdown.js.map +1 -1
  193. package/lib/node_modules/react-day-picker/dist/esm/labels/labelNav.js +2 -1
  194. package/lib/node_modules/react-day-picker/dist/esm/labels/labelNav.js.map +1 -1
  195. package/lib/node_modules/react-day-picker/dist/esm/labels/labelNext.js +5 -3
  196. package/lib/node_modules/react-day-picker/dist/esm/labels/labelNext.js.map +1 -1
  197. package/lib/node_modules/react-day-picker/dist/esm/labels/labelPrevious.js +5 -3
  198. package/lib/node_modules/react-day-picker/dist/esm/labels/labelPrevious.js.map +1 -1
  199. package/lib/node_modules/react-day-picker/dist/esm/labels/labelWeekNumber.js +4 -1
  200. package/lib/node_modules/react-day-picker/dist/esm/labels/labelWeekNumber.js.map +1 -1
  201. package/lib/node_modules/react-day-picker/dist/esm/labels/labelWeekNumberHeader.js +3 -1
  202. package/lib/node_modules/react-day-picker/dist/esm/labels/labelWeekNumberHeader.js.map +1 -1
  203. package/lib/node_modules/react-day-picker/dist/esm/labels/labelWeekday.js +5 -1
  204. package/lib/node_modules/react-day-picker/dist/esm/labels/labelWeekday.js.map +1 -1
  205. package/lib/node_modules/react-day-picker/dist/esm/labels/labelYearDropdown.js +3 -1
  206. package/lib/node_modules/react-day-picker/dist/esm/labels/labelYearDropdown.js.map +1 -1
  207. package/lib/node_modules/react-day-picker/dist/esm/selection/useMulti.js +9 -0
  208. package/lib/node_modules/react-day-picker/dist/esm/selection/useMulti.js.map +1 -1
  209. package/lib/node_modules/react-day-picker/dist/esm/selection/useRange.js +10 -2
  210. package/lib/node_modules/react-day-picker/dist/esm/selection/useRange.js.map +1 -1
  211. package/lib/node_modules/react-day-picker/dist/esm/selection/useSingle.js +9 -0
  212. package/lib/node_modules/react-day-picker/dist/esm/selection/useSingle.js.map +1 -1
  213. package/lib/node_modules/react-day-picker/dist/esm/useAnimation.js +158 -0
  214. package/lib/node_modules/react-day-picker/dist/esm/useAnimation.js.map +1 -0
  215. package/lib/node_modules/react-day-picker/dist/esm/useCalendar.js +9 -1
  216. package/lib/node_modules/react-day-picker/dist/esm/useCalendar.js.map +1 -1
  217. package/lib/node_modules/react-day-picker/dist/esm/useDayPicker.js +4 -6
  218. package/lib/node_modules/react-day-picker/dist/esm/useDayPicker.js.map +1 -1
  219. package/lib/node_modules/react-day-picker/dist/esm/useFocus.js +14 -1
  220. package/lib/node_modules/react-day-picker/dist/esm/useFocus.js.map +1 -1
  221. package/lib/node_modules/react-day-picker/dist/esm/useSelection.js +10 -0
  222. package/lib/node_modules/react-day-picker/dist/esm/useSelection.js.map +1 -1
  223. package/lib/node_modules/react-day-picker/dist/esm/utils/addToRange.js +10 -8
  224. package/lib/node_modules/react-day-picker/dist/esm/utils/addToRange.js.map +1 -1
  225. package/lib/node_modules/react-day-picker/dist/esm/utils/dateMatchModifiers.js +5 -15
  226. package/lib/node_modules/react-day-picker/dist/esm/utils/dateMatchModifiers.js.map +1 -1
  227. package/lib/node_modules/react-day-picker/dist/esm/utils/rangeContainsDayOfWeek.js +7 -9
  228. package/lib/node_modules/react-day-picker/dist/esm/utils/rangeContainsDayOfWeek.js.map +1 -1
  229. package/lib/node_modules/react-day-picker/dist/esm/utils/rangeContainsModifiers.js +5 -14
  230. package/lib/node_modules/react-day-picker/dist/esm/utils/rangeContainsModifiers.js.map +1 -1
  231. package/lib/node_modules/react-day-picker/dist/esm/utils/rangeIncludesDate.js +7 -3
  232. package/lib/node_modules/react-day-picker/dist/esm/utils/rangeIncludesDate.js.map +1 -1
  233. package/lib/node_modules/react-day-picker/dist/esm/utils/rangeOverlaps.js +6 -2
  234. package/lib/node_modules/react-day-picker/dist/esm/utils/rangeOverlaps.js.map +1 -1
  235. package/lib/node_modules/react-day-picker/dist/esm/utils/typeguards.js +19 -6
  236. package/lib/node_modules/react-day-picker/dist/esm/utils/typeguards.js.map +1 -1
  237. package/lib/node_modules/react-draft-wysiwyg/dist/react-draft-wysiwyg.js +2 -2
  238. package/lib/node_modules/react-draft-wysiwyg/dist/react-draft-wysiwyg.js.map +1 -1
  239. package/lib/node_modules/react-hook-form/dist/index.esm.js +1203 -1151
  240. package/lib/node_modules/react-hook-form/dist/index.esm.js.map +1 -1
  241. package/lib/node_modules/{prop-types/node_modules/react-is → react-is}/cjs/react-is.development.js +1 -1
  242. package/lib/node_modules/react-is/cjs/react-is.development.js.map +1 -0
  243. package/lib/node_modules/{prop-types/node_modules/react-is → react-is}/cjs/react-is.production.min.js +1 -1
  244. package/lib/node_modules/react-is/cjs/react-is.production.min.js.map +1 -0
  245. package/lib/node_modules/{hoist-non-react-statics/node_modules/react-is → react-is}/index.js +1 -1
  246. package/lib/node_modules/react-is/index.js.map +1 -0
  247. package/lib/node_modules/webrtc-adapter/src/js/common_shim.js +1 -1
  248. package/lib/node_modules/webrtc-adapter/src/js/common_shim.js.map +1 -1
  249. package/lib/node_modules/webrtc-adapter/src/js/utils.js +6 -4
  250. package/lib/node_modules/webrtc-adapter/src/js/utils.js.map +1 -1
  251. package/lib/tsconfig.tsbuildinfo +1 -1
  252. package/package.json +106 -106
  253. package/lib/_virtual/immutable.es.js +0 -7
  254. package/lib/_virtual/immutable.es.js.map +0 -1
  255. package/lib/_virtual/index14.js +0 -4
  256. package/lib/_virtual/index14.js.map +0 -1
  257. package/lib/_virtual/react-is.development2.js +0 -4
  258. package/lib/_virtual/react-is.development2.js.map +0 -1
  259. package/lib/_virtual/react-is.production.min2.js +0 -4
  260. package/lib/_virtual/react-is.production.min2.js.map +0 -1
  261. package/lib/node_modules/draft-js/node_modules/immutable/dist/immutable.js.map +0 -1
  262. package/lib/node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js +0 -175
  263. package/lib/node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js.map +0 -1
  264. package/lib/node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js +0 -125
  265. package/lib/node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js.map +0 -1
  266. package/lib/node_modules/hoist-non-react-statics/node_modules/react-is/index.js.map +0 -1
  267. package/lib/node_modules/immutable/dist/immutable.es.js +0 -4829
  268. package/lib/node_modules/immutable/dist/immutable.es.js.map +0 -1
  269. package/lib/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js.map +0 -1
  270. package/lib/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js.map +0 -1
  271. package/lib/node_modules/prop-types/node_modules/react-is/index.js +0 -18
  272. package/lib/node_modules/prop-types/node_modules/react-is/index.js.map +0 -1
  273. package/lib/node_modules/react-day-picker/dist/esm/useGetModifiers.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"getFocusableDate.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/helpers/getFocusableDate.js"],"sourcesContent":["/** Return the next date that should be focused. */\nexport function getFocusableDate(moveBy, moveDir, refDate, navStart, navEnd, props, dateLib) {\n const { ISOWeek, broadcastCalendar } = props;\n const { addDays, addMonths, addWeeks, addYears, endOfBroadcastWeek, endOfISOWeek, endOfWeek, max, min, startOfBroadcastWeek, startOfISOWeek, startOfWeek } = dateLib;\n const moveFns = {\n day: addDays,\n week: addWeeks,\n month: addMonths,\n year: addYears,\n startOfWeek: (date) => broadcastCalendar\n ? startOfBroadcastWeek(date, dateLib)\n : ISOWeek\n ? startOfISOWeek(date)\n : startOfWeek(date),\n endOfWeek: (date) => broadcastCalendar\n ? endOfBroadcastWeek(date, dateLib)\n : ISOWeek\n ? endOfISOWeek(date)\n : endOfWeek(date)\n };\n let focusableDate = moveFns[moveBy](refDate, moveDir === \"after\" ? 1 : -1);\n if (moveDir === \"before\" && navStart) {\n focusableDate = max([navStart, focusableDate]);\n }\n else if (moveDir === \"after\" && navEnd) {\n focusableDate = min([navEnd, focusableDate]);\n }\n return focusableDate;\n}\n//# sourceMappingURL=getFocusableDate.js.map"],"names":["getFocusableDate","moveBy","moveDir","refDate","navStart","navEnd","props","dateLib","ISOWeek","broadcastCalendar","addDays","addMonths","addWeeks","addYears","endOfBroadcastWeek","endOfISOWeek","endOfWeek","max","min","startOfBroadcastWeek","startOfISOWeek","startOfWeek","moveFns","day","week","month","year","date","focusableDate"],"mappings":"AAOA;AACM,SAAUA,gBAAgBA,CAC9BC,MAAmB,EACnBC,OAAqB,EACrBC,OAAa,EACbC,QAA0B,EAC1BC,MAAwB,EACxBC,KAA4D,EAC5DC,OAAgB,EAAA;EAEhB,MAAM;IAAEC,OAAO;AAAEC,IAAAA;AAAiB,GAAE,GAAGH,KAAK;EAC5C,MAAM;IACJI,OAAO;IACPC,SAAS;IACTC,QAAQ;IACRC,QAAQ;IACRC,kBAAkB;IAClBC,YAAY;IACZC,SAAS;IACTC,GAAG;IACHC,GAAG;IACHC,oBAAoB;IACpBC,cAAc;AACdC,IAAAA;AAAW,GACZ,GAAGd,OAAO;AACX,EAAA,MAAMe,OAAO,GAAG;AACdC,IAAAA,GAAG,EAAEb,OAAO;AACZc,IAAAA,IAAI,EAAEZ,QAAQ;AACda,IAAAA,KAAK,EAAEd,SAAS;AAChBe,IAAAA,IAAI,EAAEb,QAAQ;IACdQ,WAAW,EAAGM,IAAU,IACtBlB,iBAAiB,GACbU,oBAAoB,CAACQ,IAAI,EAAEpB,OAAO,CAAC,GACnCC,OAAO,GACLY,cAAc,CAACO,IAAI,CAAC,GACpBN,WAAW,CAACM,IAAI,CAAC;IACzBX,SAAS,EAAGW,IAAU,IACpBlB,iBAAiB,GACbK,kBAAkB,CAACa,IAAI,EAAEpB,OAAO,CAAC,GACjCC,OAAO,GACLO,YAAY,CAACY,IAAI,CAAC,GAClBX,SAAS,CAACW,IAAI;AACvB,GAAA;AAED,EAAA,IAAIC,aAAa,GAAGN,OAAO,CAACrB,MAAM,CAAC,CAACE,OAAO,EAAED,OAAO,KAAK,OAAO,GAAG,CAAC,GAAG,EAAE,CAAC;AAC1E,EAAA,IAAIA,OAAO,KAAK,QAAQ,IAAIE,QAAQ,EAAE;IACpCwB,aAAa,GAAGX,GAAG,CAAC,CAACb,QAAQ,EAAEwB,aAAa,CAAC,CAAC;AAChD,GAAC,MAAM,IAAI1B,OAAO,KAAK,OAAO,IAAIG,MAAM,EAAE;IACxCuB,aAAa,GAAGV,GAAG,CAAC,CAACb,MAAM,EAAEuB,aAAa,CAAC,CAAC;AAC9C;AACA,EAAA,OAAOA,aAAa;AACtB;;;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"getFocusableDate.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/helpers/getFocusableDate.js"],"sourcesContent":["/**\n * Calculates the next date that should be focused in the calendar.\n *\n * This function determines the next focusable date based on the movement\n * direction, constraints, and calendar configuration.\n *\n * @param moveBy The unit of movement (e.g., \"day\", \"week\").\n * @param moveDir The direction of movement (\"before\" or \"after\").\n * @param refDate The reference date from which to calculate the next focusable\n * date.\n * @param navStart The earliest date the user can navigate to.\n * @param navEnd The latest date the user can navigate to.\n * @param props The DayPicker props, including calendar configuration options.\n * @param dateLib The date library to use for date manipulation.\n * @returns The next focusable date.\n */\nexport function getFocusableDate(moveBy, moveDir, refDate, navStart, navEnd, props, dateLib) {\n const { ISOWeek, broadcastCalendar } = props;\n const { addDays, addMonths, addWeeks, addYears, endOfBroadcastWeek, endOfISOWeek, endOfWeek, max, min, startOfBroadcastWeek, startOfISOWeek, startOfWeek } = dateLib;\n const moveFns = {\n day: addDays,\n week: addWeeks,\n month: addMonths,\n year: addYears,\n startOfWeek: (date) => broadcastCalendar\n ? startOfBroadcastWeek(date, dateLib)\n : ISOWeek\n ? startOfISOWeek(date)\n : startOfWeek(date),\n endOfWeek: (date) => broadcastCalendar\n ? endOfBroadcastWeek(date)\n : ISOWeek\n ? endOfISOWeek(date)\n : endOfWeek(date)\n };\n let focusableDate = moveFns[moveBy](refDate, moveDir === \"after\" ? 1 : -1);\n if (moveDir === \"before\" && navStart) {\n focusableDate = max([navStart, focusableDate]);\n }\n else if (moveDir === \"after\" && navEnd) {\n focusableDate = min([navEnd, focusableDate]);\n }\n return focusableDate;\n}\n//# sourceMappingURL=getFocusableDate.js.map"],"names":["getFocusableDate","moveBy","moveDir","refDate","navStart","navEnd","props","dateLib","ISOWeek","broadcastCalendar","addDays","addMonths","addWeeks","addYears","endOfBroadcastWeek","endOfISOWeek","endOfWeek","max","min","startOfBroadcastWeek","startOfISOWeek","startOfWeek","moveFns","day","week","month","year","date","focusableDate"],"mappings":"AAOA;;;;;;;;;;;;;;;;AAgBM,SAAUA,gBAAgBA,CAC9BC,MAAmB,EACnBC,OAAqB,EACrBC,OAAa,EACbC,QAA0B,EAC1BC,MAAwB,EACxBC,KAA4D,EAC5DC,OAAgB,EAAA;EAEhB,MAAM;IAAEC,OAAO;AAAEC,IAAAA;AAAiB,GAAE,GAAGH,KAAK;EAC5C,MAAM;IACJI,OAAO;IACPC,SAAS;IACTC,QAAQ;IACRC,QAAQ;IACRC,kBAAkB;IAClBC,YAAY;IACZC,SAAS;IACTC,GAAG;IACHC,GAAG;IACHC,oBAAoB;IACpBC,cAAc;AACdC,IAAAA;AAAW,GACZ,GAAGd,OAAO;AACX,EAAA,MAAMe,OAAO,GAAG;AACdC,IAAAA,GAAG,EAAEb,OAAO;AACZc,IAAAA,IAAI,EAAEZ,QAAQ;AACda,IAAAA,KAAK,EAAEd,SAAS;AAChBe,IAAAA,IAAI,EAAEb,QAAQ;IACdQ,WAAW,EAAGM,IAAU,IACtBlB,iBAAiB,GACbU,oBAAoB,CAACQ,IAAI,EAAEpB,OAAO,CAAC,GACnCC,OAAO,GACLY,cAAc,CAACO,IAAI,CAAC,GACpBN,WAAW,CAACM,IAAI,CAAC;AACzBX,IAAAA,SAAS,EAAGW,IAAU,IACpBlB,iBAAiB,GACbK,kBAAkB,CAACa,IAAI,CAAC,GACxBnB,OAAO,GACLO,YAAY,CAACY,IAAI,CAAC,GAClBX,SAAS,CAACW,IAAI;AACvB,GAAA;AAED,EAAA,IAAIC,aAAa,GAAGN,OAAO,CAACrB,MAAM,CAAC,CAACE,OAAO,EAAED,OAAO,KAAK,OAAO,GAAG,CAAC,GAAG,EAAE,CAAC;AAC1E,EAAA,IAAIA,OAAO,KAAK,QAAQ,IAAIE,QAAQ,EAAE;IACpCwB,aAAa,GAAGX,GAAG,CAAC,CAACb,QAAQ,EAAEwB,aAAa,CAAC,CAAC;AAChD,GAAC,MAAM,IAAI1B,OAAO,KAAK,OAAO,IAAIG,MAAM,EAAE;IACxCuB,aAAa,GAAGV,GAAG,CAAC,CAACb,MAAM,EAAEuB,aAAa,CAAC,CAAC;AAC9C;AACA,EAAA,OAAOA,aAAa;AACtB;;;;","x_google_ignoreList":[0]}
@@ -1,6 +1,12 @@
1
1
  import * as index from '../formatters/index.js';
2
2
 
3
- /** Return the formatters from the props merged with the default formatters. */
3
+ /**
4
+ * Merges custom formatters from the props with the default formatters.
5
+ *
6
+ * @param customFormatters The custom formatters provided in the DayPicker
7
+ * props.
8
+ * @returns The merged formatters object.
9
+ */
4
10
  function getFormatters(customFormatters) {
5
11
  if (customFormatters?.formatMonthCaption && !customFormatters.formatCaption) {
6
12
  customFormatters.formatCaption = customFormatters.formatMonthCaption;
@@ -1 +1 @@
1
- {"version":3,"file":"getFormatters.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/helpers/getFormatters.js"],"sourcesContent":["import * as defaultFormatters from \"../formatters/index.js\";\n/** Return the formatters from the props merged with the default formatters. */\nexport function getFormatters(customFormatters) {\n if (customFormatters?.formatMonthCaption && !customFormatters.formatCaption) {\n customFormatters.formatCaption = customFormatters.formatMonthCaption;\n }\n if (customFormatters?.formatYearCaption &&\n !customFormatters.formatYearDropdown) {\n customFormatters.formatYearDropdown = customFormatters.formatYearCaption;\n }\n return {\n ...defaultFormatters,\n ...customFormatters\n };\n}\n//# sourceMappingURL=getFormatters.js.map"],"names":["getFormatters","customFormatters","formatMonthCaption","formatCaption","formatYearCaption","formatYearDropdown","defaultFormatters"],"mappings":";;AAGA;AACM,SAAUA,aAAaA,CAACC,gBAA8C,EAAA;EAC1E,IAAIA,gBAAgB,EAAEC,kBAAkB,IAAI,CAACD,gBAAgB,CAACE,aAAa,EAAE;AAC3EF,IAAAA,gBAAgB,CAACE,aAAa,GAAGF,gBAAgB,CAACC,kBAAkB;AACtE;EACA,IACED,gBAAgB,EAAEG,iBAAiB,IACnC,CAACH,gBAAgB,CAACI,kBAAkB,EACpC;AACAJ,IAAAA,gBAAgB,CAACI,kBAAkB,GAAGJ,gBAAgB,CAACG,iBAAiB;AAC1E;EACA,OAAO;AACL,IAAA,GAAGE,KAAiB;IACpB,GAAGL;AACJ,GAAA;AACH;;;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"getFormatters.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/helpers/getFormatters.js"],"sourcesContent":["import * as defaultFormatters from \"../formatters/index.js\";\n/**\n * Merges custom formatters from the props with the default formatters.\n *\n * @param customFormatters The custom formatters provided in the DayPicker\n * props.\n * @returns The merged formatters object.\n */\nexport function getFormatters(customFormatters) {\n if (customFormatters?.formatMonthCaption && !customFormatters.formatCaption) {\n customFormatters.formatCaption = customFormatters.formatMonthCaption;\n }\n if (customFormatters?.formatYearCaption &&\n !customFormatters.formatYearDropdown) {\n customFormatters.formatYearDropdown = customFormatters.formatYearCaption;\n }\n return {\n ...defaultFormatters,\n ...customFormatters\n };\n}\n//# sourceMappingURL=getFormatters.js.map"],"names":["getFormatters","customFormatters","formatMonthCaption","formatCaption","formatYearCaption","formatYearDropdown","defaultFormatters"],"mappings":";;AAGA;;;;;;;AAOM,SAAUA,aAAaA,CAACC,gBAA8C,EAAA;EAC1E,IAAIA,gBAAgB,EAAEC,kBAAkB,IAAI,CAACD,gBAAgB,CAACE,aAAa,EAAE;AAC3EF,IAAAA,gBAAgB,CAACE,aAAa,GAAGF,gBAAgB,CAACC,kBAAkB;AACtE;EACA,IACED,gBAAgB,EAAEG,iBAAiB,IACnC,CAACH,gBAAgB,CAACI,kBAAkB,EACpC;AACAJ,IAAAA,gBAAgB,CAACI,kBAAkB,GAAGJ,gBAAgB,CAACG,iBAAiB;AAC1E;EACA,OAAO;AACL,IAAA,GAAGE,KAAiB;IACpB,GAAGL;AACJ,GAAA;AACH;;;;","x_google_ignoreList":[0]}
@@ -1,4 +1,14 @@
1
- /** Return the start month based on the props passed to DayPicker. */
1
+ /**
2
+ * Determines the initial month to display in the calendar based on the provided
3
+ * props.
4
+ *
5
+ * This function calculates the starting month, considering constraints such as
6
+ * `startMonth`, `endMonth`, and the number of months to display.
7
+ *
8
+ * @param props The DayPicker props, including navigation and date constraints.
9
+ * @param dateLib The date library to use for date manipulation.
10
+ * @returns The initial month to display.
11
+ */
2
12
  function getInitialMonth(props, dateLib) {
3
13
  const {
4
14
  month,
@@ -14,12 +24,12 @@ function getInitialMonth(props, dateLib) {
14
24
  addMonths,
15
25
  startOfMonth
16
26
  } = dateLib;
17
- // Fix the initialMonth if is after the endMonth
27
+ // Adjust the initial month if it is after the endMonth
18
28
  if (endMonth && differenceInCalendarMonths(endMonth, initialMonth) < 0) {
19
29
  const offset = -1 * (numberOfMonths - 1);
20
30
  initialMonth = addMonths(endMonth, offset);
21
31
  }
22
- // Fix the initialMonth if is before the startMonth
32
+ // Adjust the initial month if it is before the startMonth
23
33
  if (startMonth && differenceInCalendarMonths(initialMonth, startMonth) < 0) {
24
34
  initialMonth = startMonth;
25
35
  }
@@ -1 +1 @@
1
- {"version":3,"file":"getInitialMonth.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/helpers/getInitialMonth.js"],"sourcesContent":["/** Return the start month based on the props passed to DayPicker. */\nexport function getInitialMonth(props, dateLib) {\n const { month, defaultMonth, today = dateLib.today(), numberOfMonths = 1, endMonth, startMonth } = props;\n let initialMonth = month || defaultMonth || today;\n const { differenceInCalendarMonths, addMonths, startOfMonth } = dateLib;\n // Fix the initialMonth if is after the endMonth\n if (endMonth && differenceInCalendarMonths(endMonth, initialMonth) < 0) {\n const offset = -1 * (numberOfMonths - 1);\n initialMonth = addMonths(endMonth, offset);\n }\n // Fix the initialMonth if is before the startMonth\n if (startMonth && differenceInCalendarMonths(initialMonth, startMonth) < 0) {\n initialMonth = startMonth;\n }\n return startOfMonth(initialMonth);\n}\n//# sourceMappingURL=getInitialMonth.js.map"],"names":["getInitialMonth","props","dateLib","month","defaultMonth","today","numberOfMonths","endMonth","startMonth","initialMonth","differenceInCalendarMonths","addMonths","startOfMonth","offset"],"mappings":"AAGA;AACM,SAAUA,eAAeA,CAC7BC,KAWC,EACDC,OAAgB,EAAA;EAEhB,MAAM;IACJC,KAAK;IACLC,YAAY;AACZC,IAAAA,KAAK,GAAGH,OAAO,CAACG,KAAK,EAAE;AACvBC,IAAAA,cAAc,GAAG,CAAC;IAClBC,QAAQ;AACRC,IAAAA;AAAU,GACX,GAAGP,KAAK;AACT,EAAA,IAAIQ,YAAY,GAAGN,KAAK,IAAIC,YAAY,IAAIC,KAAK;EACjD,MAAM;IAAEK,0BAA0B;IAAEC,SAAS;AAAEC,IAAAA;AAAY,GAAE,GAAGV,OAAO;AAEvE;EACA,IAAIK,QAAQ,IAAIG,0BAA0B,CAACH,QAAQ,EAAEE,YAAY,CAAC,GAAG,CAAC,EAAE;IACtE,MAAMI,MAAM,GAAG,EAAE,IAAIP,cAAc,GAAG,CAAC,CAAC;AACxCG,IAAAA,YAAY,GAAGE,SAAS,CAACJ,QAAQ,EAAEM,MAAM,CAAC;AAC5C;AACA;EACA,IAAIL,UAAU,IAAIE,0BAA0B,CAACD,YAAY,EAAED,UAAU,CAAC,GAAG,CAAC,EAAE;AAC1EC,IAAAA,YAAY,GAAGD,UAAU;AAC3B;EACA,OAAOI,YAAY,CAACH,YAAY,CAAC;AACnC;;;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"getInitialMonth.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/helpers/getInitialMonth.js"],"sourcesContent":["/**\n * Determines the initial month to display in the calendar based on the provided\n * props.\n *\n * This function calculates the starting month, considering constraints such as\n * `startMonth`, `endMonth`, and the number of months to display.\n *\n * @param props The DayPicker props, including navigation and date constraints.\n * @param dateLib The date library to use for date manipulation.\n * @returns The initial month to display.\n */\nexport function getInitialMonth(props, dateLib) {\n const { month, defaultMonth, today = dateLib.today(), numberOfMonths = 1, endMonth, startMonth } = props;\n let initialMonth = month || defaultMonth || today;\n const { differenceInCalendarMonths, addMonths, startOfMonth } = dateLib;\n // Adjust the initial month if it is after the endMonth\n if (endMonth && differenceInCalendarMonths(endMonth, initialMonth) < 0) {\n const offset = -1 * (numberOfMonths - 1);\n initialMonth = addMonths(endMonth, offset);\n }\n // Adjust the initial month if it is before the startMonth\n if (startMonth && differenceInCalendarMonths(initialMonth, startMonth) < 0) {\n initialMonth = startMonth;\n }\n return startOfMonth(initialMonth);\n}\n//# sourceMappingURL=getInitialMonth.js.map"],"names":["getInitialMonth","props","dateLib","month","defaultMonth","today","numberOfMonths","endMonth","startMonth","initialMonth","differenceInCalendarMonths","addMonths","startOfMonth","offset"],"mappings":"AAGA;;;;;;;;;;;AAWM,SAAUA,eAAeA,CAC7BC,KAWC,EACDC,OAAgB,EAAA;EAEhB,MAAM;IACJC,KAAK;IACLC,YAAY;AACZC,IAAAA,KAAK,GAAGH,OAAO,CAACG,KAAK,EAAE;AACvBC,IAAAA,cAAc,GAAG,CAAC;IAClBC,QAAQ;AACRC,IAAAA;AAAU,GACX,GAAGP,KAAK;AACT,EAAA,IAAIQ,YAAY,GAAGN,KAAK,IAAIC,YAAY,IAAIC,KAAK;EACjD,MAAM;IAAEK,0BAA0B;IAAEC,SAAS;AAAEC,IAAAA;AAAY,GAAE,GAAGV,OAAO;AAEvE;EACA,IAAIK,QAAQ,IAAIG,0BAA0B,CAACH,QAAQ,EAAEE,YAAY,CAAC,GAAG,CAAC,EAAE;IACtE,MAAMI,MAAM,GAAG,EAAE,IAAIP,cAAc,GAAG,CAAC,CAAC;AACxCG,IAAAA,YAAY,GAAGE,SAAS,CAACJ,QAAQ,EAAEM,MAAM,CAAC;AAC5C;AACA;EACA,IAAIL,UAAU,IAAIE,0BAA0B,CAACD,YAAY,EAAED,UAAU,CAAC,GAAG,CAAC,EAAE;AAC1EC,IAAAA,YAAY,GAAGD,UAAU;AAC3B;EAEA,OAAOI,YAAY,CAACH,YAAY,CAAC;AACnC;;;;","x_google_ignoreList":[0]}
@@ -1,4 +1,18 @@
1
- /** Return the months to show in the dropdown. */
1
+ /**
2
+ * Returns the months to show in the dropdown.
3
+ *
4
+ * This function generates a list of months for the current year, formatted
5
+ * using the provided formatter, and determines whether each month should be
6
+ * disabled based on the navigation range.
7
+ *
8
+ * @param displayMonth The currently displayed month.
9
+ * @param navStart The start date for navigation.
10
+ * @param navEnd The end date for navigation.
11
+ * @param formatters The formatters to use for formatting the month labels.
12
+ * @param dateLib The date library to use for date manipulation.
13
+ * @returns An array of dropdown options representing the months, or `undefined`
14
+ * if no months are available.
15
+ */
2
16
  function getMonthOptions(displayMonth, navStart, navEnd, formatters, dateLib) {
3
17
  const {
4
18
  startOfMonth,
@@ -1 +1 @@
1
- {"version":3,"file":"getMonthOptions.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/helpers/getMonthOptions.js"],"sourcesContent":["/** Return the months to show in the dropdown. */\nexport function getMonthOptions(displayMonth, navStart, navEnd, formatters, dateLib) {\n const { startOfMonth, startOfYear, endOfYear, eachMonthOfInterval, getMonth } = dateLib;\n const months = eachMonthOfInterval({\n start: startOfYear(displayMonth),\n end: endOfYear(displayMonth)\n });\n const options = months.map((month) => {\n const label = formatters.formatMonthDropdown(month, dateLib);\n const value = getMonth(month);\n const disabled = (navStart && month < startOfMonth(navStart)) ||\n (navEnd && month > startOfMonth(navEnd)) ||\n false;\n return { value, label, disabled };\n });\n return options;\n}\n//# sourceMappingURL=getMonthOptions.js.map"],"names":["getMonthOptions","displayMonth","navStart","navEnd","formatters","dateLib","startOfMonth","startOfYear","endOfYear","eachMonthOfInterval","getMonth","months","start","end","options","map","month","label","formatMonthDropdown","value","disabled"],"mappings":"AAIA;AACM,SAAUA,eAAeA,CAC7BC,YAAkB,EAClBC,QAA0B,EAC1BC,MAAwB,EACxBC,UAAmD,EACnDC,OAAgB,EAAA;EAEhB,MAAM;IACJC,YAAY;IACZC,WAAW;IACXC,SAAS;IACTC,mBAAmB;AACnBC,IAAAA;AAAQ,GACT,GAAGL,OAAO;EAEX,MAAMM,MAAM,GAAGF,mBAAmB,CAAC;AACjCG,IAAAA,KAAK,EAAEL,WAAW,CAACN,YAAY,CAAC;IAChCY,GAAG,EAAEL,SAAS,CAACP,YAAY;GAC5B,CAAC;AAEF,EAAA,MAAMa,OAAO,GAAGH,MAAM,CAACI,GAAG,CAAEC,KAAK,IAAI;IACnC,MAAMC,KAAK,GAAGb,UAAU,CAACc,mBAAmB,CAACF,KAAK,EAAEX,OAAO,CAAC;AAC5D,IAAA,MAAMc,KAAK,GAAGT,QAAQ,CAACM,KAAK,CAAC;IAC7B,MAAMI,QAAQ,GACXlB,QAAQ,IAAIc,KAAK,GAAGV,YAAY,CAACJ,QAAQ,CAAC,IAC1CC,MAAM,IAAIa,KAAK,GAAGV,YAAY,CAACH,MAAM,CAAE,IACxC,KAAK;IACP,OAAO;MAAEgB,KAAK;MAAEF,KAAK;AAAEG,MAAAA;KAAU;AACnC,GAAC,CAAC;AAEF,EAAA,OAAON,OAAO;AAChB;;;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"getMonthOptions.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/helpers/getMonthOptions.js"],"sourcesContent":["/**\n * Returns the months to show in the dropdown.\n *\n * This function generates a list of months for the current year, formatted\n * using the provided formatter, and determines whether each month should be\n * disabled based on the navigation range.\n *\n * @param displayMonth The currently displayed month.\n * @param navStart The start date for navigation.\n * @param navEnd The end date for navigation.\n * @param formatters The formatters to use for formatting the month labels.\n * @param dateLib The date library to use for date manipulation.\n * @returns An array of dropdown options representing the months, or `undefined`\n * if no months are available.\n */\nexport function getMonthOptions(displayMonth, navStart, navEnd, formatters, dateLib) {\n const { startOfMonth, startOfYear, endOfYear, eachMonthOfInterval, getMonth } = dateLib;\n const months = eachMonthOfInterval({\n start: startOfYear(displayMonth),\n end: endOfYear(displayMonth)\n });\n const options = months.map((month) => {\n const label = formatters.formatMonthDropdown(month, dateLib);\n const value = getMonth(month);\n const disabled = (navStart && month < startOfMonth(navStart)) ||\n (navEnd && month > startOfMonth(navEnd)) ||\n false;\n return { value, label, disabled };\n });\n return options;\n}\n//# sourceMappingURL=getMonthOptions.js.map"],"names":["getMonthOptions","displayMonth","navStart","navEnd","formatters","dateLib","startOfMonth","startOfYear","endOfYear","eachMonthOfInterval","getMonth","months","start","end","options","map","month","label","formatMonthDropdown","value","disabled"],"mappings":"AAIA;;;;;;;;;;;;;;;AAeM,SAAUA,eAAeA,CAC7BC,YAAkB,EAClBC,QAA0B,EAC1BC,MAAwB,EACxBC,UAAmD,EACnDC,OAAgB,EAAA;EAEhB,MAAM;IACJC,YAAY;IACZC,WAAW;IACXC,SAAS;IACTC,mBAAmB;AACnBC,IAAAA;AAAQ,GACT,GAAGL,OAAO;EAEX,MAAMM,MAAM,GAAGF,mBAAmB,CAAC;AACjCG,IAAAA,KAAK,EAAEL,WAAW,CAACN,YAAY,CAAC;IAChCY,GAAG,EAAEL,SAAS,CAACP,YAAY;GAC5B,CAAC;AAEF,EAAA,MAAMa,OAAO,GAAGH,MAAM,CAACI,GAAG,CAAEC,KAAK,IAAI;IACnC,MAAMC,KAAK,GAAGb,UAAU,CAACc,mBAAmB,CAACF,KAAK,EAAEX,OAAO,CAAC;AAC5D,IAAA,MAAMc,KAAK,GAAGT,QAAQ,CAACM,KAAK,CAAC;IAC7B,MAAMI,QAAQ,GACXlB,QAAQ,IAAIc,KAAK,GAAGV,YAAY,CAACJ,QAAQ,CAAC,IAC1CC,MAAM,IAAIa,KAAK,GAAGV,YAAY,CAACH,MAAM,CAAE,IACxC,KAAK;IACP,OAAO;MAAEgB,KAAK;MAAEF,KAAK;AAAEG,MAAAA;KAAU;AACnC,GAAC,CAAC;AAEF,EAAA,OAAON,OAAO;AAChB;;;;","x_google_ignoreList":[0]}
@@ -1,13 +1,22 @@
1
1
  import { CalendarDay } from '../classes/CalendarDay.js';
2
- import { CalendarMonth } from '../classes/CalendarMonth.js';
3
2
  import { CalendarWeek } from '../classes/CalendarWeek.js';
4
- import '../classes/DateLib.js';
3
+ import { CalendarMonth } from '../classes/CalendarMonth.js';
5
4
 
6
- /** Return the months to display in the calendar. */
7
- function getMonths(/** The months (as dates) to display in the calendar. */
8
- displayMonths, /** The dates to display in the calendar. */
9
- dates, /** Options from the props context. */
10
- props, dateLib) {
5
+ /**
6
+ * Returns the months to display in the calendar.
7
+ *
8
+ * This function generates `CalendarMonth` objects for each month to be
9
+ * displayed, including their weeks and days, based on the provided display
10
+ * months and dates.
11
+ *
12
+ * @param displayMonths The months (as dates) to display in the calendar.
13
+ * @param dates The dates to display in the calendar.
14
+ * @param props Options from the DayPicker props context.
15
+ * @param dateLib The date library to use for date manipulation.
16
+ * @returns An array of `CalendarMonth` objects representing the months to
17
+ * display.
18
+ */
19
+ function getMonths(displayMonths, dates, props, dateLib) {
11
20
  const {
12
21
  addDays,
13
22
  endOfBroadcastWeek,
@@ -22,7 +31,7 @@ props, dateLib) {
22
31
  } = dateLib;
23
32
  const dayPickerMonths = displayMonths.reduce((months, month) => {
24
33
  const firstDateOfFirstWeek = props.broadcastCalendar ? startOfBroadcastWeek(month, dateLib) : props.ISOWeek ? startOfISOWeek(month) : startOfWeek(month);
25
- const lastDateOfLastWeek = props.broadcastCalendar ? endOfBroadcastWeek(month, dateLib) : props.ISOWeek ? endOfISOWeek(endOfMonth(month)) : endOfWeek(endOfMonth(month));
34
+ const lastDateOfLastWeek = props.broadcastCalendar ? endOfBroadcastWeek(month) : props.ISOWeek ? endOfISOWeek(endOfMonth(month)) : endOfWeek(endOfMonth(month));
26
35
  /** The dates to display in the month. */
27
36
  const monthDates = dates.filter(date => {
28
37
  return date >= firstDateOfFirstWeek && date <= lastDateOfLastWeek;
@@ -1 +1 @@
1
- {"version":3,"file":"getMonths.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/helpers/getMonths.js"],"sourcesContent":["import { CalendarWeek, CalendarDay, CalendarMonth } from \"../classes/index.js\";\n/** Return the months to display in the calendar. */\nexport function getMonths(\n/** The months (as dates) to display in the calendar. */\ndisplayMonths, \n/** The dates to display in the calendar. */\ndates, \n/** Options from the props context. */\nprops, dateLib) {\n const { addDays, endOfBroadcastWeek, endOfISOWeek, endOfMonth, endOfWeek, getISOWeek, getWeek, startOfBroadcastWeek, startOfISOWeek, startOfWeek } = dateLib;\n const dayPickerMonths = displayMonths.reduce((months, month) => {\n const firstDateOfFirstWeek = props.broadcastCalendar\n ? startOfBroadcastWeek(month, dateLib)\n : props.ISOWeek\n ? startOfISOWeek(month)\n : startOfWeek(month);\n const lastDateOfLastWeek = props.broadcastCalendar\n ? endOfBroadcastWeek(month, dateLib)\n : props.ISOWeek\n ? endOfISOWeek(endOfMonth(month))\n : endOfWeek(endOfMonth(month));\n /** The dates to display in the month. */\n const monthDates = dates.filter((date) => {\n return date >= firstDateOfFirstWeek && date <= lastDateOfLastWeek;\n });\n const nrOfDaysWithFixedWeeks = props.broadcastCalendar ? 35 : 42;\n if (props.fixedWeeks && monthDates.length < nrOfDaysWithFixedWeeks) {\n const extraDates = dates.filter((date) => {\n const daysToAdd = nrOfDaysWithFixedWeeks - monthDates.length;\n return (date > lastDateOfLastWeek &&\n date <= addDays(lastDateOfLastWeek, daysToAdd));\n });\n monthDates.push(...extraDates);\n }\n const weeks = monthDates.reduce((weeks, date) => {\n const weekNumber = props.ISOWeek ? getISOWeek(date) : getWeek(date);\n const week = weeks.find((week) => week.weekNumber === weekNumber);\n const day = new CalendarDay(date, month, dateLib);\n if (!week) {\n weeks.push(new CalendarWeek(weekNumber, [day]));\n }\n else {\n week.days.push(day);\n }\n return weeks;\n }, []);\n const dayPickerMonth = new CalendarMonth(month, weeks);\n months.push(dayPickerMonth);\n return months;\n }, []);\n if (!props.reverseMonths) {\n return dayPickerMonths;\n }\n else {\n return dayPickerMonths.reverse();\n }\n}\n//# sourceMappingURL=getMonths.js.map"],"names":["getMonths","displayMonths","dates","props","dateLib","addDays","endOfBroadcastWeek","endOfISOWeek","endOfMonth","endOfWeek","getISOWeek","getWeek","startOfBroadcastWeek","startOfISOWeek","startOfWeek","dayPickerMonths","reduce","months","month","firstDateOfFirstWeek","broadcastCalendar","ISOWeek","lastDateOfLastWeek","monthDates","filter","date","nrOfDaysWithFixedWeeks","fixedWeeks","length","extraDates","daysToAdd","push","weeks","weekNumber","week","find","day","CalendarDay","CalendarWeek","days","dayPickerMonth","CalendarMonth","reverseMonths","reverse"],"mappings":";;;;;AAIA;AACM,SAAUA,SAASA;AAEvBC,aAAqB;AAErBC,KAAa;AAEbC,KAGC,EACDC,OAAgB,EAAA;EAEhB,MAAM;IACJC,OAAO;IACPC,kBAAkB;IAClBC,YAAY;IACZC,UAAU;IACVC,SAAS;IACTC,UAAU;IACVC,OAAO;IACPC,oBAAoB;IACpBC,cAAc;AACdC,IAAAA;AAAW,GACZ,GAAGV,OAAO;EACX,MAAMW,eAAe,GAAGd,aAAa,CAACe,MAAM,CAC1C,CAACC,MAAM,EAAEC,KAAK,KAAI;IAChB,MAAMC,oBAAoB,GAAGhB,KAAK,CAACiB,iBAAiB,GAChDR,oBAAoB,CAACM,KAAK,EAAEd,OAAO,CAAC,GACpCD,KAAK,CAACkB,OAAO,GACXR,cAAc,CAACK,KAAK,CAAC,GACrBJ,WAAW,CAACI,KAAK,CAAC;AAExB,IAAA,MAAMI,kBAAkB,GAAGnB,KAAK,CAACiB,iBAAiB,GAC9Cd,kBAAkB,CAACY,KAAK,EAAEd,OAAO,CAAC,GAClCD,KAAK,CAACkB,OAAO,GACXd,YAAY,CAACC,UAAU,CAACU,KAAK,CAAC,CAAC,GAC/BT,SAAS,CAACD,UAAU,CAACU,KAAK,CAAC,CAAC;AAElC;AACA,IAAA,MAAMK,UAAU,GAAGrB,KAAK,CAACsB,MAAM,CAAEC,IAAI,IAAI;AACvC,MAAA,OAAOA,IAAI,IAAIN,oBAAoB,IAAIM,IAAI,IAAIH,kBAAkB;AACnE,KAAC,CAAC;IAEF,MAAMI,sBAAsB,GAAGvB,KAAK,CAACiB,iBAAiB,GAAG,EAAE,GAAG,EAAE;IAEhE,IAAIjB,KAAK,CAACwB,UAAU,IAAIJ,UAAU,CAACK,MAAM,GAAGF,sBAAsB,EAAE;AAClE,MAAA,MAAMG,UAAU,GAAG3B,KAAK,CAACsB,MAAM,CAAEC,IAAI,IAAI;AACvC,QAAA,MAAMK,SAAS,GAAGJ,sBAAsB,GAAGH,UAAU,CAACK,MAAM;QAC5D,OACEH,IAAI,GAAGH,kBAAkB,IACzBG,IAAI,IAAIpB,OAAO,CAACiB,kBAAkB,EAAEQ,SAAS,CAAC;AAElD,OAAC,CAAC;AACFP,MAAAA,UAAU,CAACQ,IAAI,CAAC,GAAGF,UAAU,CAAC;AAChC;IAEA,MAAMG,KAAK,GAAmBT,UAAU,CAACP,MAAM,CAC7C,CAACgB,KAAK,EAAEP,IAAI,KAAI;AACd,MAAA,MAAMQ,UAAU,GAAG9B,KAAK,CAACkB,OAAO,GAAGX,UAAU,CAACe,IAAI,CAAC,GAAGd,OAAO,CAACc,IAAI,CAAC;AACnE,MAAA,MAAMS,IAAI,GAAGF,KAAK,CAACG,IAAI,CAAED,IAAI,IAAKA,IAAI,CAACD,UAAU,KAAKA,UAAU,CAAC;MAEjE,MAAMG,GAAG,GAAG,IAAIC,WAAW,CAACZ,IAAI,EAAEP,KAAK,EAAEd,OAAO,CAAC;MACjD,IAAI,CAAC8B,IAAI,EAAE;AACTF,QAAAA,KAAK,CAACD,IAAI,CAAC,IAAIO,YAAY,CAACL,UAAU,EAAE,CAACG,GAAG,CAAC,CAAC,CAAC;AACjD,OAAC,MAAM;AACLF,QAAAA,IAAI,CAACK,IAAI,CAACR,IAAI,CAACK,GAAG,CAAC;AACrB;AACA,MAAA,OAAOJ,KAAK;KACb,EACD,EAAE,CACH;IAED,MAAMQ,cAAc,GAAG,IAAIC,aAAa,CAACvB,KAAK,EAAEc,KAAK,CAAC;AACtDf,IAAAA,MAAM,CAACc,IAAI,CAACS,cAAc,CAAC;AAC3B,IAAA,OAAOvB,MAAM;GACd,EACD,EAAE,CACH;AAED,EAAA,IAAI,CAACd,KAAK,CAACuC,aAAa,EAAE;AACxB,IAAA,OAAO3B,eAAe;AACxB,GAAC,MAAM;IACL,OAAOA,eAAe,CAAC4B,OAAO,EAAE;AAClC;AACF;;;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"getMonths.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/helpers/getMonths.js"],"sourcesContent":["import { CalendarWeek, CalendarDay, CalendarMonth } from \"../classes/index.js\";\n/**\n * Returns the months to display in the calendar.\n *\n * This function generates `CalendarMonth` objects for each month to be\n * displayed, including their weeks and days, based on the provided display\n * months and dates.\n *\n * @param displayMonths The months (as dates) to display in the calendar.\n * @param dates The dates to display in the calendar.\n * @param props Options from the DayPicker props context.\n * @param dateLib The date library to use for date manipulation.\n * @returns An array of `CalendarMonth` objects representing the months to\n * display.\n */\nexport function getMonths(displayMonths, dates, props, dateLib) {\n const { addDays, endOfBroadcastWeek, endOfISOWeek, endOfMonth, endOfWeek, getISOWeek, getWeek, startOfBroadcastWeek, startOfISOWeek, startOfWeek } = dateLib;\n const dayPickerMonths = displayMonths.reduce((months, month) => {\n const firstDateOfFirstWeek = props.broadcastCalendar\n ? startOfBroadcastWeek(month, dateLib)\n : props.ISOWeek\n ? startOfISOWeek(month)\n : startOfWeek(month);\n const lastDateOfLastWeek = props.broadcastCalendar\n ? endOfBroadcastWeek(month)\n : props.ISOWeek\n ? endOfISOWeek(endOfMonth(month))\n : endOfWeek(endOfMonth(month));\n /** The dates to display in the month. */\n const monthDates = dates.filter((date) => {\n return date >= firstDateOfFirstWeek && date <= lastDateOfLastWeek;\n });\n const nrOfDaysWithFixedWeeks = props.broadcastCalendar ? 35 : 42;\n if (props.fixedWeeks && monthDates.length < nrOfDaysWithFixedWeeks) {\n const extraDates = dates.filter((date) => {\n const daysToAdd = nrOfDaysWithFixedWeeks - monthDates.length;\n return (date > lastDateOfLastWeek &&\n date <= addDays(lastDateOfLastWeek, daysToAdd));\n });\n monthDates.push(...extraDates);\n }\n const weeks = monthDates.reduce((weeks, date) => {\n const weekNumber = props.ISOWeek ? getISOWeek(date) : getWeek(date);\n const week = weeks.find((week) => week.weekNumber === weekNumber);\n const day = new CalendarDay(date, month, dateLib);\n if (!week) {\n weeks.push(new CalendarWeek(weekNumber, [day]));\n }\n else {\n week.days.push(day);\n }\n return weeks;\n }, []);\n const dayPickerMonth = new CalendarMonth(month, weeks);\n months.push(dayPickerMonth);\n return months;\n }, []);\n if (!props.reverseMonths) {\n return dayPickerMonths;\n }\n else {\n return dayPickerMonths.reverse();\n }\n}\n//# sourceMappingURL=getMonths.js.map"],"names":["getMonths","displayMonths","dates","props","dateLib","addDays","endOfBroadcastWeek","endOfISOWeek","endOfMonth","endOfWeek","getISOWeek","getWeek","startOfBroadcastWeek","startOfISOWeek","startOfWeek","dayPickerMonths","reduce","months","month","firstDateOfFirstWeek","broadcastCalendar","ISOWeek","lastDateOfLastWeek","monthDates","filter","date","nrOfDaysWithFixedWeeks","fixedWeeks","length","extraDates","daysToAdd","push","weeks","weekNumber","week","find","day","CalendarDay","CalendarWeek","days","dayPickerMonth","CalendarMonth","reverseMonths","reverse"],"mappings":";;;;AAIA;;;;;;;;;;;;;;AAcM,SAAUA,SAASA,CACvBC,aAAqB,EACrBC,KAAa,EACbC,KAGC,EACDC,OAAgB,EAAA;EAEhB,MAAM;IACJC,OAAO;IACPC,kBAAkB;IAClBC,YAAY;IACZC,UAAU;IACVC,SAAS;IACTC,UAAU;IACVC,OAAO;IACPC,oBAAoB;IACpBC,cAAc;AACdC,IAAAA;AAAW,GACZ,GAAGV,OAAO;EAEX,MAAMW,eAAe,GAAGd,aAAa,CAACe,MAAM,CAC1C,CAACC,MAAM,EAAEC,KAAK,KAAI;IAChB,MAAMC,oBAAoB,GAAGhB,KAAK,CAACiB,iBAAiB,GAChDR,oBAAoB,CAACM,KAAK,EAAEd,OAAO,CAAC,GACpCD,KAAK,CAACkB,OAAO,GACXR,cAAc,CAACK,KAAK,CAAC,GACrBJ,WAAW,CAACI,KAAK,CAAC;AAExB,IAAA,MAAMI,kBAAkB,GAAGnB,KAAK,CAACiB,iBAAiB,GAC9Cd,kBAAkB,CAACY,KAAK,CAAC,GACzBf,KAAK,CAACkB,OAAO,GACXd,YAAY,CAACC,UAAU,CAACU,KAAK,CAAC,CAAC,GAC/BT,SAAS,CAACD,UAAU,CAACU,KAAK,CAAC,CAAC;AAElC;AACA,IAAA,MAAMK,UAAU,GAAGrB,KAAK,CAACsB,MAAM,CAAEC,IAAI,IAAI;AACvC,MAAA,OAAOA,IAAI,IAAIN,oBAAoB,IAAIM,IAAI,IAAIH,kBAAkB;AACnE,KAAC,CAAC;IAEF,MAAMI,sBAAsB,GAAGvB,KAAK,CAACiB,iBAAiB,GAAG,EAAE,GAAG,EAAE;IAEhE,IAAIjB,KAAK,CAACwB,UAAU,IAAIJ,UAAU,CAACK,MAAM,GAAGF,sBAAsB,EAAE;AAClE,MAAA,MAAMG,UAAU,GAAG3B,KAAK,CAACsB,MAAM,CAAEC,IAAI,IAAI;AACvC,QAAA,MAAMK,SAAS,GAAGJ,sBAAsB,GAAGH,UAAU,CAACK,MAAM;QAC5D,OACEH,IAAI,GAAGH,kBAAkB,IACzBG,IAAI,IAAIpB,OAAO,CAACiB,kBAAkB,EAAEQ,SAAS,CAAC;AAElD,OAAC,CAAC;AACFP,MAAAA,UAAU,CAACQ,IAAI,CAAC,GAAGF,UAAU,CAAC;AAChC;IAEA,MAAMG,KAAK,GAAmBT,UAAU,CAACP,MAAM,CAC7C,CAACgB,KAAK,EAAEP,IAAI,KAAI;AACd,MAAA,MAAMQ,UAAU,GAAG9B,KAAK,CAACkB,OAAO,GAAGX,UAAU,CAACe,IAAI,CAAC,GAAGd,OAAO,CAACc,IAAI,CAAC;AACnE,MAAA,MAAMS,IAAI,GAAGF,KAAK,CAACG,IAAI,CAAED,IAAI,IAAKA,IAAI,CAACD,UAAU,KAAKA,UAAU,CAAC;MAEjE,MAAMG,GAAG,GAAG,IAAIC,WAAW,CAACZ,IAAI,EAAEP,KAAK,EAAEd,OAAO,CAAC;MACjD,IAAI,CAAC8B,IAAI,EAAE;AACTF,QAAAA,KAAK,CAACD,IAAI,CAAC,IAAIO,YAAY,CAACL,UAAU,EAAE,CAACG,GAAG,CAAC,CAAC,CAAC;AACjD,OAAC,MAAM;AACLF,QAAAA,IAAI,CAACK,IAAI,CAACR,IAAI,CAACK,GAAG,CAAC;AACrB;AACA,MAAA,OAAOJ,KAAK;KACb,EACD,EAAE,CACH;IAED,MAAMQ,cAAc,GAAG,IAAIC,aAAa,CAACvB,KAAK,EAAEc,KAAK,CAAC;AACtDf,IAAAA,MAAM,CAACc,IAAI,CAACS,cAAc,CAAC;AAC3B,IAAA,OAAOvB,MAAM;GACd,EACD,EAAE,CACH;AAED,EAAA,IAAI,CAACd,KAAK,CAACuC,aAAa,EAAE;AACxB,IAAA,OAAO3B,eAAe;AACxB,GAAC,MAAM;IACL,OAAOA,eAAe,CAAC4B,OAAO,EAAE;AAClC;AACF;;;;","x_google_ignoreList":[0]}
@@ -1,4 +1,10 @@
1
- /** Return the start and end months for the calendar navigation. */
1
+ /**
2
+ * Returns the start and end months for calendar navigation.
3
+ *
4
+ * @param props The DayPicker props, including navigation and layout options.
5
+ * @param dateLib The date library to use for date manipulation.
6
+ * @returns A tuple containing the start and end months for navigation.
7
+ */
2
8
  function getNavMonths(props, dateLib) {
3
9
  let {
4
10
  startMonth,
@@ -1 +1 @@
1
- {"version":3,"file":"getNavMonth.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/helpers/getNavMonth.js"],"sourcesContent":["/** Return the start and end months for the calendar navigation. */\nexport function getNavMonths(props, dateLib) {\n let { startMonth, endMonth } = props;\n const { startOfYear, startOfDay, startOfMonth, endOfMonth, addYears, endOfYear, newDate, today } = dateLib;\n // Handle deprecated code\n const { fromYear, toYear, fromMonth, toMonth } = props;\n if (!startMonth && fromMonth) {\n startMonth = fromMonth;\n }\n if (!startMonth && fromYear) {\n startMonth = dateLib.newDate(fromYear, 0, 1);\n }\n if (!endMonth && toMonth) {\n endMonth = toMonth;\n }\n if (!endMonth && toYear) {\n endMonth = newDate(toYear, 11, 31);\n }\n const hasYearDropdown = props.captionLayout === \"dropdown\" ||\n props.captionLayout === \"dropdown-years\";\n if (startMonth) {\n startMonth = startOfMonth(startMonth);\n }\n else if (fromYear) {\n startMonth = newDate(fromYear, 0, 1);\n }\n else if (!startMonth && hasYearDropdown) {\n startMonth = startOfYear(addYears(props.today ?? today(), -100));\n }\n if (endMonth) {\n endMonth = endOfMonth(endMonth);\n }\n else if (toYear) {\n endMonth = newDate(toYear, 11, 31);\n }\n else if (!endMonth && hasYearDropdown) {\n endMonth = endOfYear(props.today ?? today());\n }\n return [\n startMonth ? startOfDay(startMonth) : startMonth,\n endMonth ? startOfDay(endMonth) : endMonth\n ];\n}\n//# sourceMappingURL=getNavMonth.js.map"],"names":["getNavMonths","props","dateLib","startMonth","endMonth","startOfYear","startOfDay","startOfMonth","endOfMonth","addYears","endOfYear","newDate","today","fromYear","toYear","fromMonth","toMonth","hasYearDropdown","captionLayout"],"mappings":"AAGA;AACM,SAAUA,YAAYA,CAC1BC,KAYC,EACDC,OAAgB,EAAA;EAEhB,IAAI;IAAEC,UAAU;AAAEC,IAAAA;AAAQ,GAAE,GAAGH,KAAK;EAEpC,MAAM;IACJI,WAAW;IACXC,UAAU;IACVC,YAAY;IACZC,UAAU;IACVC,QAAQ;IACRC,SAAS;IACTC,OAAO;AACPC,IAAAA;AAAK,GACN,GAAGV,OAAO;AAEX;EACA,MAAM;IAAEW,QAAQ;IAAEC,MAAM;IAAEC,SAAS;AAAEC,IAAAA;AAAO,GAAE,GAAGf,KAAK;AACtD,EAAA,IAAI,CAACE,UAAU,IAAIY,SAAS,EAAE;AAC5BZ,IAAAA,UAAU,GAAGY,SAAS;AACxB;AACA,EAAA,IAAI,CAACZ,UAAU,IAAIU,QAAQ,EAAE;IAC3BV,UAAU,GAAGD,OAAO,CAACS,OAAO,CAACE,QAAQ,EAAE,CAAC,EAAE,CAAC,CAAC;AAC9C;AACA,EAAA,IAAI,CAACT,QAAQ,IAAIY,OAAO,EAAE;AACxBZ,IAAAA,QAAQ,GAAGY,OAAO;AACpB;AACA,EAAA,IAAI,CAACZ,QAAQ,IAAIU,MAAM,EAAE;IACvBV,QAAQ,GAAGO,OAAO,CAACG,MAAM,EAAE,EAAE,EAAE,EAAE,CAAC;AACpC;AAEA,EAAA,MAAMG,eAAe,GACnBhB,KAAK,CAACiB,aAAa,KAAK,UAAU,IAClCjB,KAAK,CAACiB,aAAa,KAAK,gBAAgB;AAC1C,EAAA,IAAIf,UAAU,EAAE;AACdA,IAAAA,UAAU,GAAGI,YAAY,CAACJ,UAAU,CAAC;GACtC,MAAM,IAAIU,QAAQ,EAAE;IACnBV,UAAU,GAAGQ,OAAO,CAACE,QAAQ,EAAE,CAAC,EAAE,CAAC,CAAC;AACtC,GAAC,MAAM,IAAI,CAACV,UAAU,IAAIc,eAAe,EAAE;AACzCd,IAAAA,UAAU,GAAGE,WAAW,CAACI,QAAQ,CAACR,KAAK,CAACW,KAAK,IAAIA,KAAK,EAAE,EAAE,IAAI,CAAC,CAAC;AAClE;AACA,EAAA,IAAIR,QAAQ,EAAE;AACZA,IAAAA,QAAQ,GAAGI,UAAU,CAACJ,QAAQ,CAAC;GAChC,MAAM,IAAIU,MAAM,EAAE;IACjBV,QAAQ,GAAGO,OAAO,CAACG,MAAM,EAAE,EAAE,EAAE,EAAE,CAAC;AACpC,GAAC,MAAM,IAAI,CAACV,QAAQ,IAAIa,eAAe,EAAE;IACvCb,QAAQ,GAAGM,SAAS,CAACT,KAAK,CAACW,KAAK,IAAIA,KAAK,EAAE,CAAC;AAC9C;AACA,EAAA,OAAO,CACLT,UAAU,GAAGG,UAAU,CAACH,UAAU,CAAC,GAAGA,UAAU,EAChDC,QAAQ,GAAGE,UAAU,CAACF,QAAQ,CAAC,GAAGA,QAAQ,CAC3C;AACH;;;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"getNavMonth.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/helpers/getNavMonth.js"],"sourcesContent":["/**\n * Returns the start and end months for calendar navigation.\n *\n * @param props The DayPicker props, including navigation and layout options.\n * @param dateLib The date library to use for date manipulation.\n * @returns A tuple containing the start and end months for navigation.\n */\nexport function getNavMonths(props, dateLib) {\n let { startMonth, endMonth } = props;\n const { startOfYear, startOfDay, startOfMonth, endOfMonth, addYears, endOfYear, newDate, today } = dateLib;\n // Handle deprecated code\n const { fromYear, toYear, fromMonth, toMonth } = props;\n if (!startMonth && fromMonth) {\n startMonth = fromMonth;\n }\n if (!startMonth && fromYear) {\n startMonth = dateLib.newDate(fromYear, 0, 1);\n }\n if (!endMonth && toMonth) {\n endMonth = toMonth;\n }\n if (!endMonth && toYear) {\n endMonth = newDate(toYear, 11, 31);\n }\n const hasYearDropdown = props.captionLayout === \"dropdown\" ||\n props.captionLayout === \"dropdown-years\";\n if (startMonth) {\n startMonth = startOfMonth(startMonth);\n }\n else if (fromYear) {\n startMonth = newDate(fromYear, 0, 1);\n }\n else if (!startMonth && hasYearDropdown) {\n startMonth = startOfYear(addYears(props.today ?? today(), -100));\n }\n if (endMonth) {\n endMonth = endOfMonth(endMonth);\n }\n else if (toYear) {\n endMonth = newDate(toYear, 11, 31);\n }\n else if (!endMonth && hasYearDropdown) {\n endMonth = endOfYear(props.today ?? today());\n }\n return [\n startMonth ? startOfDay(startMonth) : startMonth,\n endMonth ? startOfDay(endMonth) : endMonth\n ];\n}\n//# sourceMappingURL=getNavMonth.js.map"],"names":["getNavMonths","props","dateLib","startMonth","endMonth","startOfYear","startOfDay","startOfMonth","endOfMonth","addYears","endOfYear","newDate","today","fromYear","toYear","fromMonth","toMonth","hasYearDropdown","captionLayout"],"mappings":"AAGA;;;;;;;AAOM,SAAUA,YAAYA,CAC1BC,KAYC,EACDC,OAAgB,EAAA;EAEhB,IAAI;IAAEC,UAAU;AAAEC,IAAAA;AAAQ,GAAE,GAAGH,KAAK;EAEpC,MAAM;IACJI,WAAW;IACXC,UAAU;IACVC,YAAY;IACZC,UAAU;IACVC,QAAQ;IACRC,SAAS;IACTC,OAAO;AACPC,IAAAA;AAAK,GACN,GAAGV,OAAO;AAEX;EACA,MAAM;IAAEW,QAAQ;IAAEC,MAAM;IAAEC,SAAS;AAAEC,IAAAA;AAAO,GAAE,GAAGf,KAAK;AACtD,EAAA,IAAI,CAACE,UAAU,IAAIY,SAAS,EAAE;AAC5BZ,IAAAA,UAAU,GAAGY,SAAS;AACxB;AACA,EAAA,IAAI,CAACZ,UAAU,IAAIU,QAAQ,EAAE;IAC3BV,UAAU,GAAGD,OAAO,CAACS,OAAO,CAACE,QAAQ,EAAE,CAAC,EAAE,CAAC,CAAC;AAC9C;AACA,EAAA,IAAI,CAACT,QAAQ,IAAIY,OAAO,EAAE;AACxBZ,IAAAA,QAAQ,GAAGY,OAAO;AACpB;AACA,EAAA,IAAI,CAACZ,QAAQ,IAAIU,MAAM,EAAE;IACvBV,QAAQ,GAAGO,OAAO,CAACG,MAAM,EAAE,EAAE,EAAE,EAAE,CAAC;AACpC;AAEA,EAAA,MAAMG,eAAe,GACnBhB,KAAK,CAACiB,aAAa,KAAK,UAAU,IAClCjB,KAAK,CAACiB,aAAa,KAAK,gBAAgB;AAC1C,EAAA,IAAIf,UAAU,EAAE;AACdA,IAAAA,UAAU,GAAGI,YAAY,CAACJ,UAAU,CAAC;GACtC,MAAM,IAAIU,QAAQ,EAAE;IACnBV,UAAU,GAAGQ,OAAO,CAACE,QAAQ,EAAE,CAAC,EAAE,CAAC,CAAC;AACtC,GAAC,MAAM,IAAI,CAACV,UAAU,IAAIc,eAAe,EAAE;AACzCd,IAAAA,UAAU,GAAGE,WAAW,CAACI,QAAQ,CAACR,KAAK,CAACW,KAAK,IAAIA,KAAK,EAAE,EAAE,IAAI,CAAC,CAAC;AAClE;AACA,EAAA,IAAIR,QAAQ,EAAE;AACZA,IAAAA,QAAQ,GAAGI,UAAU,CAACJ,QAAQ,CAAC;GAChC,MAAM,IAAIU,MAAM,EAAE;IACjBV,QAAQ,GAAGO,OAAO,CAACG,MAAM,EAAE,EAAE,EAAE,EAAE,CAAC;AACpC,GAAC,MAAM,IAAI,CAACV,QAAQ,IAAIa,eAAe,EAAE;IACvCb,QAAQ,GAAGM,SAAS,CAACT,KAAK,CAACW,KAAK,IAAIA,KAAK,EAAE,CAAC;AAC9C;AACA,EAAA,OAAO,CACLT,UAAU,GAAGG,UAAU,CAACH,UAAU,CAAC,GAAGA,UAAU,EAChDC,QAAQ,GAAGE,UAAU,CAACF,QAAQ,CAAC,GAAGA,QAAQ,CAC3C;AACH;;;;","x_google_ignoreList":[0]}
@@ -1,17 +1,30 @@
1
- import { CalendarDay } from '../classes/CalendarDay.js';
2
- import '../classes/DateLib.js';
3
1
  import { dateMatchModifiers } from '../utils/dateMatchModifiers.js';
4
2
  import { getFocusableDate } from './getFocusableDate.js';
3
+ import { CalendarDay } from '../classes/CalendarDay.js';
5
4
 
6
- function getNextFocus(moveBy, moveDir, /** The date that is currently focused. */
7
- refDay, calendarStartMonth, calendarEndMonth, props, dateLib, attempt = 0) {
5
+ /**
6
+ * Determines the next focusable day in the calendar.
7
+ *
8
+ * This function recursively calculates the next focusable day based on the
9
+ * movement direction and modifiers applied to the days.
10
+ *
11
+ * @param moveBy The unit of movement (e.g., "day", "week").
12
+ * @param moveDir The direction of movement ("before" or "after").
13
+ * @param refDay The currently focused day.
14
+ * @param calendarStartMonth The earliest month the user can navigate to.
15
+ * @param calendarEndMonth The latest month the user can navigate to.
16
+ * @param props The DayPicker props, including modifiers and configuration
17
+ * options.
18
+ * @param dateLib The date library to use for date manipulation.
19
+ * @param attempt The current recursion attempt (used to limit recursion depth).
20
+ * @returns The next focusable day, or `undefined` if no focusable day is found.
21
+ */
22
+ function getNextFocus(moveBy, moveDir, refDay, calendarStartMonth, calendarEndMonth, props, dateLib, attempt = 0) {
8
23
  if (attempt > 365) {
9
24
  // Limit the recursion to 365 attempts
10
25
  return undefined;
11
26
  }
12
- const focusableDate = getFocusableDate(moveBy, moveDir, refDay.date,
13
- // should be refDay? or refDay.date?
14
- calendarStartMonth, calendarEndMonth, props, dateLib);
27
+ const focusableDate = getFocusableDate(moveBy, moveDir, refDay.date, calendarStartMonth, calendarEndMonth, props, dateLib);
15
28
  const isDisabled = Boolean(props.disabled && dateMatchModifiers(focusableDate, props.disabled, dateLib));
16
29
  const isHidden = Boolean(props.hidden && dateMatchModifiers(focusableDate, props.hidden, dateLib));
17
30
  const targetMonth = focusableDate;
@@ -1 +1 @@
1
- {"version":3,"file":"getNextFocus.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/helpers/getNextFocus.js"],"sourcesContent":["import { CalendarDay } from \"../classes/index.js\";\nimport { dateMatchModifiers } from \"../utils/dateMatchModifiers.js\";\nimport { getFocusableDate } from \"./getFocusableDate.js\";\nexport function getNextFocus(moveBy, moveDir, \n/** The date that is currently focused. */\nrefDay, calendarStartMonth, calendarEndMonth, props, dateLib, attempt = 0) {\n if (attempt > 365) {\n // Limit the recursion to 365 attempts\n return undefined;\n }\n const focusableDate = getFocusableDate(moveBy, moveDir, refDay.date, // should be refDay? or refDay.date?\n calendarStartMonth, calendarEndMonth, props, dateLib);\n const isDisabled = Boolean(props.disabled && dateMatchModifiers(focusableDate, props.disabled, dateLib));\n const isHidden = Boolean(props.hidden && dateMatchModifiers(focusableDate, props.hidden, dateLib));\n const targetMonth = focusableDate;\n const focusDay = new CalendarDay(focusableDate, targetMonth, dateLib);\n if (!isDisabled && !isHidden) {\n return focusDay;\n }\n // Recursively attempt to find the next focusable date\n return getNextFocus(moveBy, moveDir, focusDay, calendarStartMonth, calendarEndMonth, props, dateLib, attempt + 1);\n}\n//# sourceMappingURL=getNextFocus.js.map"],"names":["getNextFocus","moveBy","moveDir","refDay","calendarStartMonth","calendarEndMonth","props","dateLib","attempt","undefined","focusableDate","getFocusableDate","date","isDisabled","Boolean","disabled","dateMatchModifiers","isHidden","hidden","targetMonth","focusDay","CalendarDay"],"mappings":";;;;;AAWM,SAAUA,YAAYA,CAC1BC,MAAmB,EACnBC,OAAqB;AAErBC,MAAmB,EACnBC,kBAAoC,EACpCC,gBAAkC,EAClCC,KAGC,EACDC,OAAgB,EAChBC,OAAA,GAAkB,CAAC,EAAA;EAEnB,IAAIA,OAAO,GAAG,GAAG,EAAE;AACjB;AACA,IAAA,OAAOC,SAAS;AAClB;EAEA,MAAMC,aAAa,GAAGC,gBAAgB,CACpCV,MAAM,EACNC,OAAO,EACPC,MAAM,CAACS,IAAI;AAAE;AACbR,EAAAA,kBAAkB,EAClBC,gBAAgB,EAChBC,KAAK,EACLC,OAAO,CACR;AAED,EAAA,MAAMM,UAAU,GAAGC,OAAO,CACxBR,KAAK,CAACS,QAAQ,IAAIC,kBAAkB,CAACN,aAAa,EAAEJ,KAAK,CAACS,QAAQ,EAAER,OAAO,CAAC,CAC7E;AAED,EAAA,MAAMU,QAAQ,GAAGH,OAAO,CACtBR,KAAK,CAACY,MAAM,IAAIF,kBAAkB,CAACN,aAAa,EAAEJ,KAAK,CAACY,MAAM,EAAEX,OAAO,CAAC,CACzE;EAED,MAAMY,WAAW,GAAGT,aAAa;EACjC,MAAMU,QAAQ,GAAG,IAAIC,WAAW,CAACX,aAAa,EAAES,WAAW,EAAEZ,OAAO,CAAC;AAErE,EAAA,IAAI,CAACM,UAAU,IAAI,CAACI,QAAQ,EAAE;AAC5B,IAAA,OAAOG,QAAQ;AACjB;AAEA;AACA,EAAA,OAAOpB,YAAY,CACjBC,MAAM,EACNC,OAAO,EACPkB,QAAQ,EACRhB,kBAAkB,EAClBC,gBAAgB,EAChBC,KAAK,EACLC,OAAO,EACPC,OAAO,GAAG,CAAC,CACZ;AACH;;;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"getNextFocus.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/helpers/getNextFocus.js"],"sourcesContent":["import { CalendarDay } from \"../classes/index.js\";\nimport { dateMatchModifiers } from \"../utils/dateMatchModifiers.js\";\nimport { getFocusableDate } from \"./getFocusableDate.js\";\n/**\n * Determines the next focusable day in the calendar.\n *\n * This function recursively calculates the next focusable day based on the\n * movement direction and modifiers applied to the days.\n *\n * @param moveBy The unit of movement (e.g., \"day\", \"week\").\n * @param moveDir The direction of movement (\"before\" or \"after\").\n * @param refDay The currently focused day.\n * @param calendarStartMonth The earliest month the user can navigate to.\n * @param calendarEndMonth The latest month the user can navigate to.\n * @param props The DayPicker props, including modifiers and configuration\n * options.\n * @param dateLib The date library to use for date manipulation.\n * @param attempt The current recursion attempt (used to limit recursion depth).\n * @returns The next focusable day, or `undefined` if no focusable day is found.\n */\nexport function getNextFocus(moveBy, moveDir, refDay, calendarStartMonth, calendarEndMonth, props, dateLib, attempt = 0) {\n if (attempt > 365) {\n // Limit the recursion to 365 attempts\n return undefined;\n }\n const focusableDate = getFocusableDate(moveBy, moveDir, refDay.date, calendarStartMonth, calendarEndMonth, props, dateLib);\n const isDisabled = Boolean(props.disabled && dateMatchModifiers(focusableDate, props.disabled, dateLib));\n const isHidden = Boolean(props.hidden && dateMatchModifiers(focusableDate, props.hidden, dateLib));\n const targetMonth = focusableDate;\n const focusDay = new CalendarDay(focusableDate, targetMonth, dateLib);\n if (!isDisabled && !isHidden) {\n return focusDay;\n }\n // Recursively attempt to find the next focusable date\n return getNextFocus(moveBy, moveDir, focusDay, calendarStartMonth, calendarEndMonth, props, dateLib, attempt + 1);\n}\n//# sourceMappingURL=getNextFocus.js.map"],"names":["getNextFocus","moveBy","moveDir","refDay","calendarStartMonth","calendarEndMonth","props","dateLib","attempt","undefined","focusableDate","getFocusableDate","date","isDisabled","Boolean","disabled","dateMatchModifiers","isHidden","hidden","targetMonth","focusDay","CalendarDay"],"mappings":";;;;AAWA;;;;;;;;;;;;;;;;;AAiBM,SAAUA,YAAYA,CAC1BC,MAAmB,EACnBC,OAAqB,EACrBC,MAAmB,EACnBC,kBAAoC,EACpCC,gBAAkC,EAClCC,KAGC,EACDC,OAAgB,EAChBC,OAAA,GAAkB,CAAC,EAAA;EAEnB,IAAIA,OAAO,GAAG,GAAG,EAAE;AACjB;AACA,IAAA,OAAOC,SAAS;AAClB;AAEA,EAAA,MAAMC,aAAa,GAAGC,gBAAgB,CACpCV,MAAM,EACNC,OAAO,EACPC,MAAM,CAACS,IAAI,EACXR,kBAAkB,EAClBC,gBAAgB,EAChBC,KAAK,EACLC,OAAO,CACR;AAED,EAAA,MAAMM,UAAU,GAAGC,OAAO,CACxBR,KAAK,CAACS,QAAQ,IAAIC,kBAAkB,CAACN,aAAa,EAAEJ,KAAK,CAACS,QAAQ,EAAER,OAAO,CAAC,CAC7E;AAED,EAAA,MAAMU,QAAQ,GAAGH,OAAO,CACtBR,KAAK,CAACY,MAAM,IAAIF,kBAAkB,CAACN,aAAa,EAAEJ,KAAK,CAACY,MAAM,EAAEX,OAAO,CAAC,CACzE;EAED,MAAMY,WAAW,GAAGT,aAAa;EACjC,MAAMU,QAAQ,GAAG,IAAIC,WAAW,CAACX,aAAa,EAAES,WAAW,EAAEZ,OAAO,CAAC;AAErE,EAAA,IAAI,CAACM,UAAU,IAAI,CAACI,QAAQ,EAAE;AAC5B,IAAA,OAAOG,QAAQ;AACjB;AAEA;AACA,EAAA,OAAOpB,YAAY,CACjBC,MAAM,EACNC,OAAO,EACPkB,QAAQ,EACRhB,kBAAkB,EAClBC,gBAAgB,EAChBC,KAAK,EACLC,OAAO,EACPC,OAAO,GAAG,CAAC,CACZ;AACH;;;;","x_google_ignoreList":[0]}
@@ -1,11 +1,19 @@
1
1
  /**
2
- * Return the next month the user can navigate to according to the given
3
- * options.
2
+ * Returns the next month the user can navigate to, based on the given options.
4
3
  *
5
- * Please note that the next month is not always the next calendar month:
4
+ * The next month is not always the next calendar month:
6
5
  *
7
- * - If after the `calendarEndMonth` range, is `undefined`;
8
- * - If the navigation is paged , is the number of months displayed ahead.
6
+ * - If it is after the `calendarEndMonth`, it returns `undefined`.
7
+ * - If paged navigation is enabled, it skips forward by the number of displayed
8
+ * months.
9
+ *
10
+ * @param firstDisplayedMonth The first month currently displayed in the
11
+ * calendar.
12
+ * @param calendarEndMonth The latest month the user can navigate to.
13
+ * @param options Navigation options, including `numberOfMonths` and
14
+ * `pagedNavigation`.
15
+ * @param dateLib The date library to use for date manipulation.
16
+ * @returns The next month, or `undefined` if navigation is not possible.
9
17
  */
10
18
  function getNextMonth(firstDisplayedMonth, calendarEndMonth, options, dateLib) {
11
19
  if (options.disableNavigation) {
@@ -29,7 +37,6 @@ function getNextMonth(firstDisplayedMonth, calendarEndMonth, options, dateLib) {
29
37
  if (monthsDiff < numberOfMonths) {
30
38
  return undefined;
31
39
  }
32
- // Jump forward as the number of months when paged navigation
33
40
  return addMonths(month, offset);
34
41
  }
35
42
 
@@ -1 +1 @@
1
- {"version":3,"file":"getNextMonth.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/helpers/getNextMonth.js"],"sourcesContent":["/**\n * Return the next month the user can navigate to according to the given\n * options.\n *\n * Please note that the next month is not always the next calendar month:\n *\n * - If after the `calendarEndMonth` range, is `undefined`;\n * - If the navigation is paged , is the number of months displayed ahead.\n */\nexport function getNextMonth(firstDisplayedMonth, calendarEndMonth, options, dateLib) {\n if (options.disableNavigation) {\n return undefined;\n }\n const { pagedNavigation, numberOfMonths = 1 } = options;\n const { startOfMonth, addMonths, differenceInCalendarMonths } = dateLib;\n const offset = pagedNavigation ? numberOfMonths : 1;\n const month = startOfMonth(firstDisplayedMonth);\n if (!calendarEndMonth) {\n return addMonths(month, offset);\n }\n const monthsDiff = differenceInCalendarMonths(calendarEndMonth, firstDisplayedMonth);\n if (monthsDiff < numberOfMonths) {\n return undefined;\n }\n // Jump forward as the number of months when paged navigation\n return addMonths(month, offset);\n}\n//# sourceMappingURL=getNextMonth.js.map"],"names":["getNextMonth","firstDisplayedMonth","calendarEndMonth","options","dateLib","disableNavigation","undefined","pagedNavigation","numberOfMonths","startOfMonth","addMonths","differenceInCalendarMonths","offset","month","monthsDiff"],"mappings":"AAGA;;;;;;;;;AASM,SAAUA,YAAYA,CAC1BC,mBAAyB,EACzBC,gBAAkC,EAClCC,OAGC,EACDC,OAAgB,EAAA;EAEhB,IAAID,OAAO,CAACE,iBAAiB,EAAE;AAC7B,IAAA,OAAOC,SAAS;AAClB;EACA,MAAM;IAAEC,eAAe;AAAEC,IAAAA,cAAc,GAAG;AAAC,GAAE,GAAGL,OAAO;EACvD,MAAM;IAAEM,YAAY;IAAEC,SAAS;AAAEC,IAAAA;AAA0B,GAAE,GAAGP,OAAO;AACvE,EAAA,MAAMQ,MAAM,GAAGL,eAAe,GAAGC,cAAc,GAAG,CAAC;AACnD,EAAA,MAAMK,KAAK,GAAGJ,YAAY,CAACR,mBAAmB,CAAC;EAE/C,IAAI,CAACC,gBAAgB,EAAE;AACrB,IAAA,OAAOQ,SAAS,CAACG,KAAK,EAAED,MAAM,CAAC;AACjC;AAEA,EAAA,MAAME,UAAU,GAAGH,0BAA0B,CAC3CT,gBAAgB,EAChBD,mBAAmB,CACpB;EAED,IAAIa,UAAU,GAAGN,cAAc,EAAE;AAC/B,IAAA,OAAOF,SAAS;AAClB;AAEA;AACA,EAAA,OAAOI,SAAS,CAACG,KAAK,EAAED,MAAM,CAAC;AACjC;;;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"getNextMonth.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/helpers/getNextMonth.js"],"sourcesContent":["/**\n * Returns the next month the user can navigate to, based on the given options.\n *\n * The next month is not always the next calendar month:\n *\n * - If it is after the `calendarEndMonth`, it returns `undefined`.\n * - If paged navigation is enabled, it skips forward by the number of displayed\n * months.\n *\n * @param firstDisplayedMonth The first month currently displayed in the\n * calendar.\n * @param calendarEndMonth The latest month the user can navigate to.\n * @param options Navigation options, including `numberOfMonths` and\n * `pagedNavigation`.\n * @param dateLib The date library to use for date manipulation.\n * @returns The next month, or `undefined` if navigation is not possible.\n */\nexport function getNextMonth(firstDisplayedMonth, calendarEndMonth, options, dateLib) {\n if (options.disableNavigation) {\n return undefined;\n }\n const { pagedNavigation, numberOfMonths = 1 } = options;\n const { startOfMonth, addMonths, differenceInCalendarMonths } = dateLib;\n const offset = pagedNavigation ? numberOfMonths : 1;\n const month = startOfMonth(firstDisplayedMonth);\n if (!calendarEndMonth) {\n return addMonths(month, offset);\n }\n const monthsDiff = differenceInCalendarMonths(calendarEndMonth, firstDisplayedMonth);\n if (monthsDiff < numberOfMonths) {\n return undefined;\n }\n return addMonths(month, offset);\n}\n//# sourceMappingURL=getNextMonth.js.map"],"names":["getNextMonth","firstDisplayedMonth","calendarEndMonth","options","dateLib","disableNavigation","undefined","pagedNavigation","numberOfMonths","startOfMonth","addMonths","differenceInCalendarMonths","offset","month","monthsDiff"],"mappings":"AAGA;;;;;;;;;;;;;;;;;AAiBM,SAAUA,YAAYA,CAC1BC,mBAAyB,EACzBC,gBAAkC,EAClCC,OAGC,EACDC,OAAgB,EAAA;EAEhB,IAAID,OAAO,CAACE,iBAAiB,EAAE;AAC7B,IAAA,OAAOC,SAAS;AAClB;EACA,MAAM;IAAEC,eAAe;AAAEC,IAAAA,cAAc,GAAG;AAAC,GAAE,GAAGL,OAAO;EACvD,MAAM;IAAEM,YAAY;IAAEC,SAAS;AAAEC,IAAAA;AAA0B,GAAE,GAAGP,OAAO;AACvE,EAAA,MAAMQ,MAAM,GAAGL,eAAe,GAAGC,cAAc,GAAG,CAAC;AACnD,EAAA,MAAMK,KAAK,GAAGJ,YAAY,CAACR,mBAAmB,CAAC;EAE/C,IAAI,CAACC,gBAAgB,EAAE;AACrB,IAAA,OAAOQ,SAAS,CAACG,KAAK,EAAED,MAAM,CAAC;AACjC;AAEA,EAAA,MAAME,UAAU,GAAGH,0BAA0B,CAC3CT,gBAAgB,EAChBD,mBAAmB,CACpB;EAED,IAAIa,UAAU,GAAGN,cAAc,EAAE;AAC/B,IAAA,OAAOF,SAAS;AAClB;AAEA,EAAA,OAAOI,SAAS,CAACG,KAAK,EAAED,MAAM,CAAC;AACjC;;;;","x_google_ignoreList":[0]}
@@ -1,12 +1,20 @@
1
1
  /**
2
- * Return the next previous the user can navigate to, according to the given
2
+ * Returns the previous month the user can navigate to, based on the given
3
3
  * options.
4
4
  *
5
- * Please note that the previous month is not always the previous calendar
6
- * month:
5
+ * The previous month is not always the previous calendar month:
7
6
  *
8
- * - If before the `calendarStartMonth` date, is `undefined`;
9
- * - If the navigation is paged, is the number of months displayed before.
7
+ * - If it is before the `calendarStartMonth`, it returns `undefined`.
8
+ * - If paged navigation is enabled, it skips back by the number of displayed
9
+ * months.
10
+ *
11
+ * @param firstDisplayedMonth The first month currently displayed in the
12
+ * calendar.
13
+ * @param calendarStartMonth The earliest month the user can navigate to.
14
+ * @param options Navigation options, including `numberOfMonths` and
15
+ * `pagedNavigation`.
16
+ * @param dateLib The date library to use for date manipulation.
17
+ * @returns The previous month, or `undefined` if navigation is not possible.
10
18
  */
11
19
  function getPreviousMonth(firstDisplayedMonth, calendarStartMonth, options, dateLib) {
12
20
  if (options.disableNavigation) {
@@ -1 +1 @@
1
- {"version":3,"file":"getPreviousMonth.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/helpers/getPreviousMonth.js"],"sourcesContent":["/**\n * Return the next previous the user can navigate to, according to the given\n * options.\n *\n * Please note that the previous month is not always the previous calendar\n * month:\n *\n * - If before the `calendarStartMonth` date, is `undefined`;\n * - If the navigation is paged, is the number of months displayed before.\n */\nexport function getPreviousMonth(firstDisplayedMonth, calendarStartMonth, options, dateLib) {\n if (options.disableNavigation) {\n return undefined;\n }\n const { pagedNavigation, numberOfMonths } = options;\n const { startOfMonth, addMonths, differenceInCalendarMonths } = dateLib;\n const offset = pagedNavigation ? (numberOfMonths ?? 1) : 1;\n const month = startOfMonth(firstDisplayedMonth);\n if (!calendarStartMonth) {\n return addMonths(month, -offset);\n }\n const monthsDiff = differenceInCalendarMonths(month, calendarStartMonth);\n if (monthsDiff <= 0) {\n return undefined;\n }\n return addMonths(month, -offset);\n}\n//# sourceMappingURL=getPreviousMonth.js.map"],"names":["getPreviousMonth","firstDisplayedMonth","calendarStartMonth","options","dateLib","disableNavigation","undefined","pagedNavigation","numberOfMonths","startOfMonth","addMonths","differenceInCalendarMonths","offset","month","monthsDiff"],"mappings":"AAGA;;;;;;;;;;AAUM,SAAUA,gBAAgBA,CAC9BC,mBAAyB,EACzBC,kBAAoC,EACpCC,OAGC,EACDC,OAAgB,EAAA;EAEhB,IAAID,OAAO,CAACE,iBAAiB,EAAE;AAC7B,IAAA,OAAOC,SAAS;AAClB;EACA,MAAM;IAAEC,eAAe;AAAEC,IAAAA;AAAc,GAAE,GAAGL,OAAO;EACnD,MAAM;IAAEM,YAAY;IAAEC,SAAS;AAAEC,IAAAA;AAA0B,GAAE,GAAGP,OAAO;EACvE,MAAMQ,MAAM,GAAGL,eAAe,GAAIC,cAAc,IAAI,CAAC,GAAI,CAAC;AAC1D,EAAA,MAAMK,KAAK,GAAGJ,YAAY,CAACR,mBAAmB,CAAC;EAC/C,IAAI,CAACC,kBAAkB,EAAE;AACvB,IAAA,OAAOQ,SAAS,CAACG,KAAK,EAAE,CAACD,MAAM,CAAC;AAClC;AACA,EAAA,MAAME,UAAU,GAAGH,0BAA0B,CAACE,KAAK,EAAEX,kBAAkB,CAAC;EAExE,IAAIY,UAAU,IAAI,CAAC,EAAE;AACnB,IAAA,OAAOR,SAAS;AAClB;AAEA,EAAA,OAAOI,SAAS,CAACG,KAAK,EAAE,CAACD,MAAM,CAAC;AAClC;;;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"getPreviousMonth.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/helpers/getPreviousMonth.js"],"sourcesContent":["/**\n * Returns the previous month the user can navigate to, based on the given\n * options.\n *\n * The previous month is not always the previous calendar month:\n *\n * - If it is before the `calendarStartMonth`, it returns `undefined`.\n * - If paged navigation is enabled, it skips back by the number of displayed\n * months.\n *\n * @param firstDisplayedMonth The first month currently displayed in the\n * calendar.\n * @param calendarStartMonth The earliest month the user can navigate to.\n * @param options Navigation options, including `numberOfMonths` and\n * `pagedNavigation`.\n * @param dateLib The date library to use for date manipulation.\n * @returns The previous month, or `undefined` if navigation is not possible.\n */\nexport function getPreviousMonth(firstDisplayedMonth, calendarStartMonth, options, dateLib) {\n if (options.disableNavigation) {\n return undefined;\n }\n const { pagedNavigation, numberOfMonths } = options;\n const { startOfMonth, addMonths, differenceInCalendarMonths } = dateLib;\n const offset = pagedNavigation ? (numberOfMonths ?? 1) : 1;\n const month = startOfMonth(firstDisplayedMonth);\n if (!calendarStartMonth) {\n return addMonths(month, -offset);\n }\n const monthsDiff = differenceInCalendarMonths(month, calendarStartMonth);\n if (monthsDiff <= 0) {\n return undefined;\n }\n return addMonths(month, -offset);\n}\n//# sourceMappingURL=getPreviousMonth.js.map"],"names":["getPreviousMonth","firstDisplayedMonth","calendarStartMonth","options","dateLib","disableNavigation","undefined","pagedNavigation","numberOfMonths","startOfMonth","addMonths","differenceInCalendarMonths","offset","month","monthsDiff"],"mappings":"AAGA;;;;;;;;;;;;;;;;;;AAkBM,SAAUA,gBAAgBA,CAC9BC,mBAAyB,EACzBC,kBAAoC,EACpCC,OAGC,EACDC,OAAgB,EAAA;EAEhB,IAAID,OAAO,CAACE,iBAAiB,EAAE;AAC7B,IAAA,OAAOC,SAAS;AAClB;EACA,MAAM;IAAEC,eAAe;AAAEC,IAAAA;AAAc,GAAE,GAAGL,OAAO;EACnD,MAAM;IAAEM,YAAY;IAAEC,SAAS;AAAEC,IAAAA;AAA0B,GAAE,GAAGP,OAAO;EACvE,MAAMQ,MAAM,GAAGL,eAAe,GAAIC,cAAc,IAAI,CAAC,GAAI,CAAC;AAC1D,EAAA,MAAMK,KAAK,GAAGJ,YAAY,CAACR,mBAAmB,CAAC;EAC/C,IAAI,CAACC,kBAAkB,EAAE;AACvB,IAAA,OAAOQ,SAAS,CAACG,KAAK,EAAE,CAACD,MAAM,CAAC;AAClC;AACA,EAAA,MAAME,UAAU,GAAGH,0BAA0B,CAACE,KAAK,EAAEX,kBAAkB,CAAC;EAExE,IAAIY,UAAU,IAAI,CAAC,EAAE;AACnB,IAAA,OAAOR,SAAS;AAClB;AAEA,EAAA,OAAOI,SAAS,CAACG,KAAK,EAAE,CAACD,MAAM,CAAC;AAClC;;;;","x_google_ignoreList":[0]}
@@ -1,5 +1,16 @@
1
1
  import { UI } from '../UI.js';
2
2
 
3
+ /**
4
+ * Returns the computed style for a day based on its modifiers.
5
+ *
6
+ * This function merges the base styles for the day with any styles associated
7
+ * with active modifiers.
8
+ *
9
+ * @param dayModifiers The modifiers applied to the day.
10
+ * @param styles The base styles for the calendar elements.
11
+ * @param modifiersStyles The styles associated with specific modifiers.
12
+ * @returns The computed style for the day.
13
+ */
3
14
  function getStyleForModifiers(dayModifiers, styles = {}, modifiersStyles = {}) {
4
15
  let style = {
5
16
  ...styles?.[UI.Day]
@@ -1 +1 @@
1
- {"version":3,"file":"getStyleForModifiers.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/helpers/getStyleForModifiers.js"],"sourcesContent":["import { UI } from \"../UI.js\";\nexport function getStyleForModifiers(dayModifiers, styles = {}, modifiersStyles = {}) {\n let style = { ...styles?.[UI.Day] };\n Object.entries(dayModifiers)\n .filter(([, active]) => active === true)\n .forEach(([modifier]) => {\n style = {\n ...style,\n ...modifiersStyles?.[modifier]\n };\n });\n return style;\n}\n//# sourceMappingURL=getStyleForModifiers.js.map"],"names":["getStyleForModifiers","dayModifiers","styles","modifiersStyles","style","UI","Day","Object","entries","filter","active","forEach","modifier"],"mappings":";;AAKM,SAAUA,oBAAoBA,CAClCC,YAAuB,EACvBC,MAAA,GAA0B,EAAE,EAC5BC,eAAA,GAA4C,EAAE,EAAA;AAE9C,EAAA,IAAIC,KAAK,GAAkB;AAAE,IAAA,GAAGF,MAAM,GAAGG,EAAE,CAACC,GAAG;GAAG;EAClDC,MAAM,CAACC,OAAO,CAACP,YAAY,CAAC,CACzBQ,MAAM,CAAC,CAAC,GAAGC,MAAM,CAAC,KAAKA,MAAM,KAAK,IAAI,CAAC,CACvCC,OAAO,CAAC,CAAC,CAACC,QAAQ,CAAC,KAAI;AACtBR,IAAAA,KAAK,GAAG;AACN,MAAA,GAAGA,KAAK;MACR,GAAGD,eAAe,GAAGS,QAAQ;AAC9B,KAAA;AACH,GAAC,CAAC;AACJ,EAAA,OAAOR,KAAK;AACd;;;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"getStyleForModifiers.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/helpers/getStyleForModifiers.js"],"sourcesContent":["import { UI } from \"../UI.js\";\n/**\n * Returns the computed style for a day based on its modifiers.\n *\n * This function merges the base styles for the day with any styles associated\n * with active modifiers.\n *\n * @param dayModifiers The modifiers applied to the day.\n * @param styles The base styles for the calendar elements.\n * @param modifiersStyles The styles associated with specific modifiers.\n * @returns The computed style for the day.\n */\nexport function getStyleForModifiers(dayModifiers, styles = {}, modifiersStyles = {}) {\n let style = { ...styles?.[UI.Day] };\n Object.entries(dayModifiers)\n .filter(([, active]) => active === true)\n .forEach(([modifier]) => {\n style = {\n ...style,\n ...modifiersStyles?.[modifier]\n };\n });\n return style;\n}\n//# sourceMappingURL=getStyleForModifiers.js.map"],"names":["getStyleForModifiers","dayModifiers","styles","modifiersStyles","style","UI","Day","Object","entries","filter","active","forEach","modifier"],"mappings":";;AAKA;;;;;;;;;;;AAWM,SAAUA,oBAAoBA,CAClCC,YAAuB,EACvBC,MAAA,GAA0B,EAAE,EAC5BC,eAAA,GAA4C,EAAE,EAAA;AAE9C,EAAA,IAAIC,KAAK,GAAkB;AAAE,IAAA,GAAGF,MAAM,GAAGG,EAAE,CAACC,GAAG;GAAG;EAClDC,MAAM,CAACC,OAAO,CAACP,YAAY,CAAC,CACzBQ,MAAM,CAAC,CAAC,GAAGC,MAAM,CAAC,KAAKA,MAAM,KAAK,IAAI,CAAC,CACvCC,OAAO,CAAC,CAAC,CAACC,QAAQ,CAAC,KAAI;AACtBR,IAAAA,KAAK,GAAG;AACN,MAAA,GAAGA,KAAK;MACR,GAAGD,eAAe,GAAGS,QAAQ;AAC9B,KAAA;AACH,GAAC,CAAC;AACJ,EAAA,OAAOR,KAAK;AACd;;;;","x_google_ignoreList":[0]}
@@ -1,11 +1,14 @@
1
1
  /**
2
- * Generate a series of 7 days, starting from the week, to use for formatting
3
- * the weekday names (Monday, Tuesday, etc.).
2
+ * Generates a series of 7 days, starting from the beginning of the week, to use
3
+ * for formatting weekday names (e.g., Monday, Tuesday, etc.).
4
+ *
5
+ * @param dateLib The date library to use for date manipulation.
6
+ * @param ISOWeek Whether to use ISO week numbering (weeks start on Monday).
7
+ * @param broadcastCalendar Whether to use the broadcast calendar (weeks start
8
+ * on Monday, but may include adjustments for broadcast-specific rules).
9
+ * @returns An array of 7 dates representing the weekdays.
4
10
  */
5
- function getWeekdays(/** The date library. */
6
- dateLib, /** Use ISOWeek instead of locale/ */
7
- ISOWeek, /** @since 9.4.0 */
8
- broadcastCalendar) {
11
+ function getWeekdays(dateLib, ISOWeek, broadcastCalendar) {
9
12
  const today = dateLib.today();
10
13
  const start = ISOWeek ? dateLib.startOfISOWeek(today) : dateLib.startOfWeek(today);
11
14
  const days = [];
@@ -1 +1 @@
1
- {"version":3,"file":"getWeekdays.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/helpers/getWeekdays.js"],"sourcesContent":["/**\n * Generate a series of 7 days, starting from the week, to use for formatting\n * the weekday names (Monday, Tuesday, etc.).\n */\nexport function getWeekdays(\n/** The date library. */\ndateLib, \n/** Use ISOWeek instead of locale/ */\nISOWeek, \n/** @since 9.4.0 */\nbroadcastCalendar) {\n const today = dateLib.today();\n const start = broadcastCalendar\n ? dateLib.startOfBroadcastWeek(today, dateLib)\n : ISOWeek\n ? dateLib.startOfISOWeek(today)\n : dateLib.startOfWeek(today);\n const days = [];\n for (let i = 0; i < 7; i++) {\n const day = dateLib.addDays(start, i);\n days.push(day);\n }\n return days;\n}\n//# sourceMappingURL=getWeekdays.js.map"],"names":["getWeekdays","dateLib","ISOWeek","broadcastCalendar","today","start","startOfISOWeek","startOfWeek","days","i","day","addDays","push"],"mappings":"AAEA;;;;AAIM,SAAUA,WAAWA;AAEzBC,OAAgB;AAEhBC,OAA6B;AAE7BC,iBAAuC,EAAA;AAEvC,EAAA,MAAMC,KAAK,GAAGH,OAAO,CAACG,KAAK,EAAE;EAE7B,MAAMC,KAAK,GAEPH,OAAO,GACLD,OAAO,CAACK,cAAc,CAACF,KAAK,CAAC,GAC7BH,OAAO,CAACM,WAAW,CAACH,KAAK,CAAC;EAEhC,MAAMI,IAAI,GAAW,EAAE;EACvB,KAAK,IAAIC,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAG,CAAC,EAAEA,CAAC,EAAE,EAAE;IAC1B,MAAMC,GAAG,GAAGT,OAAO,CAACU,OAAO,CAACN,KAAK,EAAEI,CAAC,CAAC;AACrCD,IAAAA,IAAI,CAACI,IAAI,CAACF,GAAG,CAAC;AAChB;AACA,EAAA,OAAOF,IAAI;AACb;;;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"getWeekdays.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/helpers/getWeekdays.js"],"sourcesContent":["/**\n * Generates a series of 7 days, starting from the beginning of the week, to use\n * for formatting weekday names (e.g., Monday, Tuesday, etc.).\n *\n * @param dateLib The date library to use for date manipulation.\n * @param ISOWeek Whether to use ISO week numbering (weeks start on Monday).\n * @param broadcastCalendar Whether to use the broadcast calendar (weeks start\n * on Monday, but may include adjustments for broadcast-specific rules).\n * @returns An array of 7 dates representing the weekdays.\n */\nexport function getWeekdays(dateLib, ISOWeek, broadcastCalendar) {\n const today = dateLib.today();\n const start = broadcastCalendar\n ? dateLib.startOfBroadcastWeek(today, dateLib)\n : ISOWeek\n ? dateLib.startOfISOWeek(today)\n : dateLib.startOfWeek(today);\n const days = [];\n for (let i = 0; i < 7; i++) {\n const day = dateLib.addDays(start, i);\n days.push(day);\n }\n return days;\n}\n//# sourceMappingURL=getWeekdays.js.map"],"names":["getWeekdays","dateLib","ISOWeek","broadcastCalendar","today","start","startOfISOWeek","startOfWeek","days","i","day","addDays","push"],"mappings":"AAEA;;;;;;;;;;AAUM,SAAUA,WAAWA,CACzBC,OAAgB,EAChBC,OAA6B,EAC7BC,iBAAuC,EAAA;AAEvC,EAAA,MAAMC,KAAK,GAAGH,OAAO,CAACG,KAAK,EAAE;EAE7B,MAAMC,KAAK,GAEPH,OAAO,GACLD,OAAO,CAACK,cAAc,CAACF,KAAK,CAAC,GAC7BH,OAAO,CAACM,WAAW,CAACH,KAAK,CAAC;EAEhC,MAAMI,IAAI,GAAW,EAAE;EACvB,KAAK,IAAIC,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAG,CAAC,EAAEA,CAAC,EAAE,EAAE;IAC1B,MAAMC,GAAG,GAAGT,OAAO,CAACU,OAAO,CAACN,KAAK,EAAEI,CAAC,CAAC;AACrCD,IAAAA,IAAI,CAACI,IAAI,CAACF,GAAG,CAAC;AAChB;AACA,EAAA,OAAOF,IAAI;AACb;;;;","x_google_ignoreList":[0]}
@@ -1,4 +1,9 @@
1
- /** Returns an array of calendar weeks from an array of calendar months. */
1
+ /**
2
+ * Returns an array of calendar weeks from an array of calendar months.
3
+ *
4
+ * @param months The array of calendar months.
5
+ * @returns An array of calendar weeks.
6
+ */
2
7
  function getWeeks(months) {
3
8
  const initialWeeks = [];
4
9
  return months.reduce((weeks, month) => {
@@ -1 +1 @@
1
- {"version":3,"file":"getWeeks.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/helpers/getWeeks.js"],"sourcesContent":["/** Returns an array of calendar weeks from an array of calendar months. */\nexport function getWeeks(months) {\n const initialWeeks = [];\n return months.reduce((weeks, month) => {\n return [...weeks, ...month.weeks];\n }, initialWeeks);\n}\n//# sourceMappingURL=getWeeks.js.map"],"names":["getWeeks","months","initialWeeks","reduce","weeks","month"],"mappings":"AAEA;AACM,SAAUA,QAAQA,CAACC,MAAuB,EAAA;EAC9C,MAAMC,YAAY,GAAmB,EAAE;EACvC,OAAOD,MAAM,CAACE,MAAM,CAAC,CAACC,KAAK,EAAEC,KAAK,KAAI;IACpC,OAAO,CAAC,GAAGD,KAAK,EAAE,GAAGC,KAAK,CAACD,KAAK,CAAC;GAClC,EAAEF,YAAY,CAAC;AAClB;;;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"getWeeks.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/helpers/getWeeks.js"],"sourcesContent":["/**\n * Returns an array of calendar weeks from an array of calendar months.\n *\n * @param months The array of calendar months.\n * @returns An array of calendar weeks.\n */\nexport function getWeeks(months) {\n const initialWeeks = [];\n return months.reduce((weeks, month) => {\n return [...weeks, ...month.weeks];\n }, initialWeeks);\n}\n//# sourceMappingURL=getWeeks.js.map"],"names":["getWeeks","months","initialWeeks","reduce","weeks","month"],"mappings":"AAEA;;;;;;AAMM,SAAUA,QAAQA,CAACC,MAAuB,EAAA;EAC9C,MAAMC,YAAY,GAAmB,EAAE;EACvC,OAAOD,MAAM,CAACE,MAAM,CAAC,CAACC,KAAK,EAAEC,KAAK,KAAI;IACpC,OAAO,CAAC,GAAGD,KAAK,EAAE,GAAGC,KAAK,CAACD,KAAK,CAAC;GAClC,EAAEF,YAAY,CAAC;AAClB;;;;","x_google_ignoreList":[0]}
@@ -1,4 +1,16 @@
1
- /** Return the years to show in the dropdown. */
1
+ /**
2
+ * Returns the years to display in the dropdown.
3
+ *
4
+ * This function generates a list of years between the navigation start and end
5
+ * dates, formatted using the provided formatter.
6
+ *
7
+ * @param navStart The start date for navigation.
8
+ * @param navEnd The end date for navigation.
9
+ * @param formatters The formatters to use for formatting the year labels.
10
+ * @param dateLib The date library to use for date manipulation.
11
+ * @returns An array of dropdown options representing the years, or `undefined`
12
+ * if `navStart` or `navEnd` is not provided.
13
+ */
2
14
  function getYearOptions(navStart, navEnd, formatters, dateLib) {
3
15
  if (!navStart) return undefined;
4
16
  if (!navEnd) return undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"getYearOptions.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/helpers/getYearOptions.js"],"sourcesContent":["/** Return the years to show in the dropdown. */\nexport function getYearOptions(navStart, navEnd, formatters, dateLib) {\n if (!navStart)\n return undefined;\n if (!navEnd)\n return undefined;\n const { startOfYear, endOfYear, addYears, getYear, isBefore, isSameYear } = dateLib;\n const firstNavYear = startOfYear(navStart);\n const lastNavYear = endOfYear(navEnd);\n const years = [];\n let year = firstNavYear;\n while (isBefore(year, lastNavYear) || isSameYear(year, lastNavYear)) {\n years.push(year);\n year = addYears(year, 1);\n }\n return years.map((year) => {\n const label = formatters.formatYearDropdown(year, dateLib);\n return {\n value: getYear(year),\n label,\n disabled: false\n };\n });\n}\n//# sourceMappingURL=getYearOptions.js.map"],"names":["getYearOptions","navStart","navEnd","formatters","dateLib","undefined","startOfYear","endOfYear","addYears","getYear","isBefore","isSameYear","firstNavYear","lastNavYear","years","year","push","map","label","formatYearDropdown","value","disabled"],"mappings":"AAIA;AACM,SAAUA,cAAcA,CAC5BC,QAA0B,EAC1BC,MAAwB,EACxBC,UAAkD,EAClDC,OAAgB,EAAA;AAEhB,EAAA,IAAI,CAACH,QAAQ,EAAE,OAAOI,SAAS;AAC/B,EAAA,IAAI,CAACH,MAAM,EAAE,OAAOG,SAAS;EAC7B,MAAM;IAAEC,WAAW;IAAEC,SAAS;IAAEC,QAAQ;IAAEC,OAAO;IAAEC,QAAQ;AAAEC,IAAAA;AAAU,GAAE,GACvEP,OAAO;AACT,EAAA,MAAMQ,YAAY,GAAGN,WAAW,CAACL,QAAQ,CAAC;AAC1C,EAAA,MAAMY,WAAW,GAAGN,SAAS,CAACL,MAAM,CAAC;EACrC,MAAMY,KAAK,GAAW,EAAE;EAExB,IAAIC,IAAI,GAAGH,YAAY;AACvB,EAAA,OAAOF,QAAQ,CAACK,IAAI,EAAEF,WAAW,CAAC,IAAIF,UAAU,CAACI,IAAI,EAAEF,WAAW,CAAC,EAAE;AACnEC,IAAAA,KAAK,CAACE,IAAI,CAACD,IAAI,CAAC;AAChBA,IAAAA,IAAI,GAAGP,QAAQ,CAACO,IAAI,EAAE,CAAC,CAAC;AAC1B;AAEA,EAAA,OAAOD,KAAK,CAACG,GAAG,CAAEF,IAAI,IAAI;IACxB,MAAMG,KAAK,GAAGf,UAAU,CAACgB,kBAAkB,CAACJ,IAAI,EAAEX,OAAO,CAAC;IAC1D,OAAO;AACLgB,MAAAA,KAAK,EAAEX,OAAO,CAACM,IAAI,CAAC;MACpBG,KAAK;AACLG,MAAAA,QAAQ,EAAE;AACX,KAAA;AACH,GAAC,CAAC;AACJ;;;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"getYearOptions.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/helpers/getYearOptions.js"],"sourcesContent":["/**\n * Returns the years to display in the dropdown.\n *\n * This function generates a list of years between the navigation start and end\n * dates, formatted using the provided formatter.\n *\n * @param navStart The start date for navigation.\n * @param navEnd The end date for navigation.\n * @param formatters The formatters to use for formatting the year labels.\n * @param dateLib The date library to use for date manipulation.\n * @returns An array of dropdown options representing the years, or `undefined`\n * if `navStart` or `navEnd` is not provided.\n */\nexport function getYearOptions(navStart, navEnd, formatters, dateLib) {\n if (!navStart)\n return undefined;\n if (!navEnd)\n return undefined;\n const { startOfYear, endOfYear, addYears, getYear, isBefore, isSameYear } = dateLib;\n const firstNavYear = startOfYear(navStart);\n const lastNavYear = endOfYear(navEnd);\n const years = [];\n let year = firstNavYear;\n while (isBefore(year, lastNavYear) || isSameYear(year, lastNavYear)) {\n years.push(year);\n year = addYears(year, 1);\n }\n return years.map((year) => {\n const label = formatters.formatYearDropdown(year, dateLib);\n return {\n value: getYear(year),\n label,\n disabled: false\n };\n });\n}\n//# sourceMappingURL=getYearOptions.js.map"],"names":["getYearOptions","navStart","navEnd","formatters","dateLib","undefined","startOfYear","endOfYear","addYears","getYear","isBefore","isSameYear","firstNavYear","lastNavYear","years","year","push","map","label","formatYearDropdown","value","disabled"],"mappings":"AAIA;;;;;;;;;;;;;AAaM,SAAUA,cAAcA,CAC5BC,QAA0B,EAC1BC,MAAwB,EACxBC,UAAkD,EAClDC,OAAgB,EAAA;AAEhB,EAAA,IAAI,CAACH,QAAQ,EAAE,OAAOI,SAAS;AAC/B,EAAA,IAAI,CAACH,MAAM,EAAE,OAAOG,SAAS;EAC7B,MAAM;IAAEC,WAAW;IAAEC,SAAS;IAAEC,QAAQ;IAAEC,OAAO;IAAEC,QAAQ;AAAEC,IAAAA;AAAU,GAAE,GACvEP,OAAO;AACT,EAAA,MAAMQ,YAAY,GAAGN,WAAW,CAACL,QAAQ,CAAC;AAC1C,EAAA,MAAMY,WAAW,GAAGN,SAAS,CAACL,MAAM,CAAC;EACrC,MAAMY,KAAK,GAAW,EAAE;EAExB,IAAIC,IAAI,GAAGH,YAAY;AACvB,EAAA,OAAOF,QAAQ,CAACK,IAAI,EAAEF,WAAW,CAAC,IAAIF,UAAU,CAACI,IAAI,EAAEF,WAAW,CAAC,EAAE;AACnEC,IAAAA,KAAK,CAACE,IAAI,CAACD,IAAI,CAAC;AAChBA,IAAAA,IAAI,GAAGP,QAAQ,CAACO,IAAI,EAAE,CAAC,CAAC;AAC1B;AAEA,EAAA,OAAOD,KAAK,CAACG,GAAG,CAAEF,IAAI,IAAI;IACxB,MAAMG,KAAK,GAAGf,UAAU,CAACgB,kBAAkB,CAACJ,IAAI,EAAEX,OAAO,CAAC;IAC1D,OAAO;AACLgB,MAAAA,KAAK,EAAEX,OAAO,CAACM,IAAI,CAAC;MACpBG,KAAK;AACLG,MAAAA,QAAQ,EAAE;AACX,KAAA;AACH,GAAC,CAAC;AACJ;;;;","x_google_ignoreList":[0]}
@@ -1,7 +1,14 @@
1
1
  /**
2
- * Return the start date of the week in the broadcast calendar.
2
+ * Returns the start date of the week in the broadcast calendar.
3
+ *
4
+ * The broadcast week starts on Monday. If the first day of the month is not a
5
+ * Monday, this function calculates the previous Monday as the start of the
6
+ * broadcast week.
3
7
  *
4
8
  * @since 9.4.0
9
+ * @param date The date for which to calculate the start of the broadcast week.
10
+ * @param dateLib The date library to use for date manipulation.
11
+ * @returns The start date of the broadcast week.
5
12
  */
6
13
  function startOfBroadcastWeek(date, dateLib) {
7
14
  const firstOfMonth = dateLib.startOfMonth(date);
@@ -1 +1 @@
1
- {"version":3,"file":"startOfBroadcastWeek.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/helpers/startOfBroadcastWeek.js"],"sourcesContent":["/**\n * Return the start date of the week in the broadcast calendar.\n *\n * @since 9.4.0\n */\nexport function startOfBroadcastWeek(date, dateLib) {\n const firstOfMonth = dateLib.startOfMonth(date);\n const dayOfWeek = firstOfMonth.getDay();\n if (dayOfWeek === 1) {\n return firstOfMonth;\n }\n else if (dayOfWeek === 0) {\n return dateLib.addDays(firstOfMonth, -1 * 6);\n }\n else {\n return dateLib.addDays(firstOfMonth, -1 * (dayOfWeek - 1));\n }\n}\n//# sourceMappingURL=startOfBroadcastWeek.js.map"],"names":["startOfBroadcastWeek","date","dateLib","firstOfMonth","startOfMonth","dayOfWeek","getDay","addDays"],"mappings":"AAEA;;;;;AAKM,SAAUA,oBAAoBA,CAACC,IAAU,EAAEC,OAAgB,EAAA;AAC/D,EAAA,MAAMC,YAAY,GAAGD,OAAO,CAACE,YAAY,CAACH,IAAI,CAAC;AAC/C,EAAA,MAAMI,SAAS,GAAGF,YAAY,CAACG,MAAM,EAAE;EAEvC,IAAID,SAAS,KAAK,CAAC,EAAE;AACnB,IAAA,OAAOF,YAAY;AACrB,GAAC,MAAM,IAAIE,SAAS,KAAK,CAAC,EAAE;IAC1B,OAAOH,OAAO,CAACK,OAAO,CAACJ,YAAY,EAAE,EAAE,GAAG,CAAC,CAAC;AAC9C,GAAC,MAAM;AACL,IAAA,OAAOD,OAAO,CAACK,OAAO,CAACJ,YAAY,EAAE,EAAE,IAAIE,SAAS,GAAG,CAAC,CAAC,CAAC;AAC5D;AACF;;;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"startOfBroadcastWeek.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/helpers/startOfBroadcastWeek.js"],"sourcesContent":["/**\n * Returns the start date of the week in the broadcast calendar.\n *\n * The broadcast week starts on Monday. If the first day of the month is not a\n * Monday, this function calculates the previous Monday as the start of the\n * broadcast week.\n *\n * @since 9.4.0\n * @param date The date for which to calculate the start of the broadcast week.\n * @param dateLib The date library to use for date manipulation.\n * @returns The start date of the broadcast week.\n */\nexport function startOfBroadcastWeek(date, dateLib) {\n const firstOfMonth = dateLib.startOfMonth(date);\n const dayOfWeek = firstOfMonth.getDay();\n if (dayOfWeek === 1) {\n return firstOfMonth;\n }\n else if (dayOfWeek === 0) {\n return dateLib.addDays(firstOfMonth, -1 * 6);\n }\n else {\n return dateLib.addDays(firstOfMonth, -1 * (dayOfWeek - 1));\n }\n}\n//# sourceMappingURL=startOfBroadcastWeek.js.map"],"names":["startOfBroadcastWeek","date","dateLib","firstOfMonth","startOfMonth","dayOfWeek","getDay","addDays"],"mappings":"AAEA;;;;;;;;;;;;AAYM,SAAUA,oBAAoBA,CAACC,IAAU,EAAEC,OAAgB,EAAA;AAC/D,EAAA,MAAMC,YAAY,GAAGD,OAAO,CAACE,YAAY,CAACH,IAAI,CAAC;AAC/C,EAAA,MAAMI,SAAS,GAAGF,YAAY,CAACG,MAAM,EAAE;EAEvC,IAAID,SAAS,KAAK,CAAC,EAAE;AACnB,IAAA,OAAOF,YAAY;AACrB,GAAC,MAAM,IAAIE,SAAS,KAAK,CAAC,EAAE;IAC1B,OAAOH,OAAO,CAACK,OAAO,CAACJ,YAAY,EAAE,EAAE,GAAG,CAAC,CAAC;AAC9C,GAAC,MAAM;AACL,IAAA,OAAOD,OAAO,CAACK,OAAO,CAACJ,YAAY,EAAE,EAAE,IAAIE,SAAS,GAAG,CAAC,CAAC,CAAC;AAC5D;AACF;;;;","x_google_ignoreList":[0]}
@@ -3,6 +3,10 @@ import { useState } from 'react';
3
3
  /**
4
4
  * A custom hook for managing both controlled and uncontrolled component states.
5
5
  *
6
+ * This hook allows a component to support both controlled and uncontrolled
7
+ * states by determining whether the `controlledValue` is provided. If it is
8
+ * undefined, the hook falls back to using the internal state.
9
+ *
6
10
  * @example
7
11
  * // Uncontrolled usage
8
12
  * const [value, setValue] = useControlledValue(0, undefined);
@@ -11,12 +15,12 @@ import { useState } from 'react';
11
15
  * const [value, setValue] = useControlledValue(0, props.value);
12
16
  *
13
17
  * @template T - The type of the value.
14
- * @param {T} defaultValue - The initial value for the uncontrolled state.
15
- * @param {T | undefined} controlledValue - The value for the controlled state.
16
- * If undefined, the component will use the uncontrolled state.
17
- * @returns {[T, DispatchStateAction<T>]} - Returns a tuple where the first
18
- * element is the current value (either controlled or uncontrolled) and the
19
- * second element is a setter function to update the value.
18
+ * @param defaultValue The initial value for the uncontrolled state.
19
+ * @param controlledValue The value for the controlled state. If undefined, the
20
+ * component will use the uncontrolled state.
21
+ * @returns A tuple where the first element is the current value (either
22
+ * controlled or uncontrolled) and the second element is a setter function to
23
+ * update the value.
20
24
  */
21
25
  function useControlledValue(defaultValue, controlledValue) {
22
26
  const [uncontrolledValue, setValue] = useState(defaultValue);
@@ -1 +1 @@
1
- {"version":3,"file":"useControlledValue.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/helpers/useControlledValue.js"],"sourcesContent":["import { useState } from \"react\";\n/**\n * A custom hook for managing both controlled and uncontrolled component states.\n *\n * @example\n * // Uncontrolled usage\n * const [value, setValue] = useControlledValue(0, undefined);\n *\n * // Controlled usage\n * const [value, setValue] = useControlledValue(0, props.value);\n *\n * @template T - The type of the value.\n * @param {T} defaultValue - The initial value for the uncontrolled state.\n * @param {T | undefined} controlledValue - The value for the controlled state.\n * If undefined, the component will use the uncontrolled state.\n * @returns {[T, DispatchStateAction<T>]} - Returns a tuple where the first\n * element is the current value (either controlled or uncontrolled) and the\n * second element is a setter function to update the value.\n */\nexport function useControlledValue(defaultValue, controlledValue) {\n const [uncontrolledValue, setValue] = useState(defaultValue);\n const value = controlledValue === undefined ? uncontrolledValue : controlledValue;\n return [value, setValue];\n}\n//# sourceMappingURL=useControlledValue.js.map"],"names":["useControlledValue","defaultValue","controlledValue","uncontrolledValue","setValue","useState","value","undefined"],"mappings":";;AAIA;;;;;;;;;;;;;;;;;;AAkBM,SAAUA,kBAAkBA,CAChCC,YAAe,EACfC,eAA8B,EAAA;EAE9B,MAAM,CAACC,iBAAiB,EAAEC,QAAQ,CAAC,GAAGC,QAAQ,CAACJ,YAAY,CAAC;EAE5D,MAAMK,KAAK,GACTJ,eAAe,KAAKK,SAAS,GAAGJ,iBAAiB,GAAGD,eAAe;AAErE,EAAA,OAAO,CAACI,KAAK,EAAEF,QAAQ,CAAgC;AACzD;;;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"useControlledValue.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/helpers/useControlledValue.js"],"sourcesContent":["import { useState } from \"react\";\n/**\n * A custom hook for managing both controlled and uncontrolled component states.\n *\n * This hook allows a component to support both controlled and uncontrolled\n * states by determining whether the `controlledValue` is provided. If it is\n * undefined, the hook falls back to using the internal state.\n *\n * @example\n * // Uncontrolled usage\n * const [value, setValue] = useControlledValue(0, undefined);\n *\n * // Controlled usage\n * const [value, setValue] = useControlledValue(0, props.value);\n *\n * @template T - The type of the value.\n * @param defaultValue The initial value for the uncontrolled state.\n * @param controlledValue The value for the controlled state. If undefined, the\n * component will use the uncontrolled state.\n * @returns A tuple where the first element is the current value (either\n * controlled or uncontrolled) and the second element is a setter function to\n * update the value.\n */\nexport function useControlledValue(defaultValue, controlledValue) {\n const [uncontrolledValue, setValue] = useState(defaultValue);\n const value = controlledValue === undefined ? uncontrolledValue : controlledValue;\n return [value, setValue];\n}\n//# sourceMappingURL=useControlledValue.js.map"],"names":["useControlledValue","defaultValue","controlledValue","uncontrolledValue","setValue","useState","value","undefined"],"mappings":";;AAIA;;;;;;;;;;;;;;;;;;;;;;AAsBM,SAAUA,kBAAkBA,CAChCC,YAAe,EACfC,eAA8B,EAAA;EAE9B,MAAM,CAACC,iBAAiB,EAAEC,QAAQ,CAAC,GAAGC,QAAQ,CAACJ,YAAY,CAAC;EAE5D,MAAMK,KAAK,GACTJ,eAAe,KAAKK,SAAS,GAAGJ,iBAAiB,GAAGD,eAAe;AAErE,EAAA,OAAO,CAACI,KAAK,EAAEF,QAAQ,CAAgC;AACzD;;;;","x_google_ignoreList":[0]}