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":"useCalendar.js","sources":["../../../../../node_modules/react-day-picker/dist/esm/useCalendar.js"],"sourcesContent":["import { useEffect } from \"react\";\nimport { getDates } from \"./helpers/getDates.js\";\nimport { getDays } from \"./helpers/getDays.js\";\nimport { getDisplayMonths } from \"./helpers/getDisplayMonths.js\";\nimport { getInitialMonth } from \"./helpers/getInitialMonth.js\";\nimport { getMonths } from \"./helpers/getMonths.js\";\nimport { getNavMonths } from \"./helpers/getNavMonth.js\";\nimport { getNextMonth } from \"./helpers/getNextMonth.js\";\nimport { getPreviousMonth } from \"./helpers/getPreviousMonth.js\";\nimport { getWeeks } from \"./helpers/getWeeks.js\";\nimport { useControlledValue } from \"./helpers/useControlledValue.js\";\n/** @private */\nexport function useCalendar(props, dateLib) {\n const [navStart, navEnd] = getNavMonths(props, dateLib);\n const { startOfMonth, endOfMonth } = dateLib;\n const initialMonth = getInitialMonth(props, dateLib);\n const [firstMonth, setFirstMonth] = useControlledValue(initialMonth, \n // initialMonth is always computed from props.month if provided\n props.month ? initialMonth : undefined);\n useEffect(() => {\n const newInitialMonth = getInitialMonth(props, dateLib);\n setFirstMonth(newInitialMonth);\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [props.timeZone]);\n /** The months displayed in the calendar. */\n const displayMonths = getDisplayMonths(firstMonth, navEnd, props, dateLib);\n /** The dates displayed in the calendar. */\n const dates = getDates(displayMonths, props.endMonth ? endOfMonth(props.endMonth) : undefined, props, dateLib);\n /** The Months displayed in the calendar. */\n const months = getMonths(displayMonths, dates, props, dateLib);\n /** The Weeks displayed in the calendar. */\n const weeks = getWeeks(months);\n /** The Days displayed in the calendar. */\n const days = getDays(months);\n const previousMonth = getPreviousMonth(firstMonth, navStart, props, dateLib);\n const nextMonth = getNextMonth(firstMonth, navEnd, props, dateLib);\n const { disableNavigation, onMonthChange } = props;\n const isDayInCalendar = (day) => weeks.some((week) => week.days.some((d) => d.isEqualTo(day)));\n const goToMonth = (date) => {\n if (disableNavigation) {\n return;\n }\n let newMonth = startOfMonth(date);\n // if month is before start, use the first month instead\n if (navStart && newMonth < startOfMonth(navStart)) {\n newMonth = startOfMonth(navStart);\n }\n // if month is after endMonth, use the last month instead\n if (navEnd && newMonth > startOfMonth(navEnd)) {\n newMonth = startOfMonth(navEnd);\n }\n setFirstMonth(newMonth);\n onMonthChange?.(newMonth);\n };\n const goToDay = (day) => {\n // is this check necessary?\n if (isDayInCalendar(day)) {\n return;\n }\n goToMonth(day.date);\n };\n const calendar = {\n months,\n weeks,\n days,\n navStart,\n navEnd,\n previousMonth,\n nextMonth,\n goToMonth,\n goToDay\n };\n return calendar;\n}\n//# sourceMappingURL=useCalendar.js.map"],"names":["useCalendar","props","dateLib","navStart","navEnd","getNavMonths","startOfMonth","endOfMonth","initialMonth","getInitialMonth","firstMonth","setFirstMonth","useControlledValue","month","undefined","useEffect","newInitialMonth","timeZone","displayMonths","getDisplayMonths","dates","getDates","endMonth","months","getMonths","weeks","getWeeks","days","getDays","previousMonth","getPreviousMonth","nextMonth","getNextMonth","disableNavigation","onMonthChange","isDayInCalendar","day","some","week","d","isEqualTo","goToMonth","date","newMonth","goToDay","calendar"],"mappings":";;;;;;;;;;;;AAmEA;AACM,SAAUA,WAAWA,CACzBC,KAoBC,EACDC,OAAgB,EAAA;EAEhB,MAAM,CAACC,QAAQ,EAAEC,MAAM,CAAC,GAAGC,YAAY,CAACJ,KAAK,EAAEC,OAAO,CAAC;EAEvD,MAAM;IAAEI,YAAY;AAAEC,IAAAA;AAAU,GAAE,GAAGL,OAAO;AAC5C,EAAA,MAAMM,YAAY,GAAGC,eAAe,CAACR,KAAK,EAAEC,OAAO,CAAC;EACpD,MAAM,CAACQ,UAAU,EAAEC,aAAa,CAAC,GAA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,MAAMK,SAAS,GAAIC,IAAU,IAAI;AAC/B,IAAA,IAAIT,iBAAiB,EAAE;AACrB,MAAA;AACF;AACA,IAAA,IAAIU,QAAQ,GAAGrC,YAAY,CAACoC,IAAI,CAAC;AACjC;IACA,IAAIvC,QAAQ,IAAIwC,QAAQ,GAAGrC,YAAY,CAACH,QAAQ,CAAC,EAAE;AACjDwC,MAAAA,QAAQ,GAAGrC,YAAY,CAACH,QAAQ,CAAC;AACnC;AACA;IACA,IAAIC,MAAM,IAAIuC,QAAQ,GAAGrC,YAAY,CAACF,MAAM,CAAC,EAAE;AAC7CuC,MAAAA,QAAQ,GAAGrC,YAAY,CAACF,MAAM,CAAC;AACjC;IACAO,aAAa,CAACgC,QAAQ,CAAC;IACvBT,aAAa,GAAGS,QAAQ,CAAC;GAC1B;EAED,MAAMC,OAAO,GAAIR,GAAgB,IAAI;AACnC;AACA,IAAA,IAAID,eAAe,CAACC,GAAG,CAAC,EAAE;AACxB,MAAA;AACF;AACAK,IAAAA,SAAS,CAACL,GAAG,CAACM,IAAI,CAAC;GACpB;AAED,EAAA,MAAMG,QAAQ,GAAG;IACftB,MAAM;IACNE,KAAK;IACLE,IAAI;IAEJxB,QAAQ;IACRC,MAAM;IAENyB,aAAa;IACbE,SAAS;IAETU,SAAS;AACTG,IAAAA;AACD,GAAA;AAED,EAAA,OAAOC,QAAQ;AACjB;;;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"useCalendar.js","sources":["../../../../../node_modules/react-day-picker/dist/esm/useCalendar.js"],"sourcesContent":["import { useEffect } from \"react\";\nimport { getDates } from \"./helpers/getDates.js\";\nimport { getDays } from \"./helpers/getDays.js\";\nimport { getDisplayMonths } from \"./helpers/getDisplayMonths.js\";\nimport { getInitialMonth } from \"./helpers/getInitialMonth.js\";\nimport { getMonths } from \"./helpers/getMonths.js\";\nimport { getNavMonths } from \"./helpers/getNavMonth.js\";\nimport { getNextMonth } from \"./helpers/getNextMonth.js\";\nimport { getPreviousMonth } from \"./helpers/getPreviousMonth.js\";\nimport { getWeeks } from \"./helpers/getWeeks.js\";\nimport { useControlledValue } from \"./helpers/useControlledValue.js\";\n/**\n * Provides the calendar object to work with the calendar in custom components.\n *\n * @private\n * @param props - The DayPicker props related to calendar configuration.\n * @param dateLib - The date utility library instance.\n * @returns The calendar object containing displayed days, weeks, months, and\n * navigation methods.\n */\nexport function useCalendar(props, dateLib) {\n const [navStart, navEnd] = getNavMonths(props, dateLib);\n const { startOfMonth, endOfMonth } = dateLib;\n const initialMonth = getInitialMonth(props, dateLib);\n const [firstMonth, setFirstMonth] = useControlledValue(initialMonth, \n // initialMonth is always computed from props.month if provided\n props.month ? initialMonth : undefined);\n useEffect(() => {\n const newInitialMonth = getInitialMonth(props, dateLib);\n setFirstMonth(newInitialMonth);\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [props.timeZone]);\n /** The months displayed in the calendar. */\n const displayMonths = getDisplayMonths(firstMonth, navEnd, props, dateLib);\n /** The dates displayed in the calendar. */\n const dates = getDates(displayMonths, props.endMonth ? endOfMonth(props.endMonth) : undefined, props, dateLib);\n /** The Months displayed in the calendar. */\n const months = getMonths(displayMonths, dates, props, dateLib);\n /** The Weeks displayed in the calendar. */\n const weeks = getWeeks(months);\n /** The Days displayed in the calendar. */\n const days = getDays(months);\n const previousMonth = getPreviousMonth(firstMonth, navStart, props, dateLib);\n const nextMonth = getNextMonth(firstMonth, navEnd, props, dateLib);\n const { disableNavigation, onMonthChange } = props;\n const isDayInCalendar = (day) => weeks.some((week) => week.days.some((d) => d.isEqualTo(day)));\n const goToMonth = (date) => {\n if (disableNavigation) {\n return;\n }\n let newMonth = startOfMonth(date);\n // if month is before start, use the first month instead\n if (navStart && newMonth < startOfMonth(navStart)) {\n newMonth = startOfMonth(navStart);\n }\n // if month is after endMonth, use the last month instead\n if (navEnd && newMonth > startOfMonth(navEnd)) {\n newMonth = startOfMonth(navEnd);\n }\n setFirstMonth(newMonth);\n onMonthChange?.(newMonth);\n };\n const goToDay = (day) => {\n // is this check necessary?\n if (isDayInCalendar(day)) {\n return;\n }\n goToMonth(day.date);\n };\n const calendar = {\n months,\n weeks,\n days,\n navStart,\n navEnd,\n previousMonth,\n nextMonth,\n goToMonth,\n goToDay\n };\n return calendar;\n}\n//# sourceMappingURL=useCalendar.js.map"],"names":["useCalendar","props","dateLib","navStart","navEnd","getNavMonths","startOfMonth","endOfMonth","initialMonth","getInitialMonth","firstMonth","setFirstMonth","useControlledValue","month","undefined","useEffect","newInitialMonth","timeZone","displayMonths","getDisplayMonths","dates","getDates","endMonth","months","getMonths","weeks","getWeeks","days","getDays","previousMonth","getPreviousMonth","nextMonth","getNextMonth","disableNavigation","onMonthChange","isDayInCalendar","day","some","week","d","isEqualTo","goToMonth","date","newMonth","goToDay","calendar"],"mappings":";;;;;;;;;;;;AAmEA;;;;;;;;;AASM,SAAUA,WAAWA,CACzBC,KAoBC,EACDC,OAAgB,EAAA;EAEhB,MAAM,CAACC,QAAQ,EAAEC,MAAM,CAAC,GAAGC,YAAY,CAACJ,KAAK,EAAEC,OAAO,CAAC;EAEvD,MAAM;IAAEI,YAAY;AAAEC,IAAAA;AAAU,GAAE,GAAGL,OAAO;AAC5C,EAAA,MAAMM,YAAY,GAAGC,eAAe,CAACR,KAAK,EAAEC,OAAO,CAAC;EACpD,MAAM,CAACQ,UAAU,EAAEC,aAAa,CAAC,GAAGC,kBAAkB,CACpDJ,YAAY;AACZ;AACAP,EAAAA,KAAK,CAACY,KAAK,GAAGL,YAAY,GAAGM,SAAS,CACvC;AAEDC,EAAAA,SAAS,CAAC,MAAK;AACb,IAAA,MAAMC,eAAe,GAAGP,eAAe,CAACR,KAAK,EAAEC,OAAO,CAAC;IACvDS,aAAa,CAACK,eAAe,CAAC;AAC9B;AACF,GAAC,EAAE,CAACf,KAAK,CAACgB,QAAQ,CAAC,CAAC;AAEpB;EACA,MAAMC,aAAa,GAAGC,gBAAgB,CAACT,UAAU,EAAEN,MAAM,EAAEH,KAAK,EAAEC,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AAA,QAAQ,GAAGrC,YAAY,CAACF,MAAM,CAAC;AACjC;IACAO,aAAa,CAACgC,QAAQ,CAAC;IACvBT,aAAa,GAAGS,QAAQ,CAAC;GAC1B;EAED,MAAMC,OAAO,GAAIR,GAAgB,IAAI;AACnC;AACA,IAAA,IAAID,eAAe,CAACC,GAAG,CAAC,EAAE;AACxB,MAAA;AACF;AACAK,IAAAA,SAAS,CAACL,GAAG,CAACM,IAAI,CAAC;GACpB;AAED,EAAA,MAAMG,QAAQ,GAAG;IACftB,MAAM;IACNE,KAAK;IACLE,IAAI;IAEJxB,QAAQ;IACRC,MAAM;IAENyB,aAAa;IACbE,SAAS;IAETU,SAAS;AACTG,IAAAA;AACD,GAAA;AAED,EAAA,OAAOC,QAAQ;AACjB;;;;","x_google_ignoreList":[0]}
@@ -3,15 +3,13 @@ import { createContext, useContext } from 'react';
3
3
  /** @ignore */
4
4
  const dayPickerContext = /*#__PURE__*/createContext(undefined);
5
5
  /**
6
- * Returns the context to work with `<DayPicker />` inside custom components.
7
- *
8
- * This hook provides access to the DayPicker context, which includes various
9
- * properties and methods to interact with the DayPicker component. It must be
10
- * used within a custom component.
6
+ * Provides access to the DayPicker context, which includes properties and
7
+ * methods to interact with the DayPicker component. This hook must be used
8
+ * within a custom component.
11
9
  *
12
10
  * @template T - Use this type to refine the returned context type with a
13
11
  * specific selection mode.
14
- * @returns {DayPickerContext<T>} The context to work with DayPicker.
12
+ * @returns The context to work with DayPicker.
15
13
  * @throws {Error} If the hook is used outside of a DayPicker provider.
16
14
  * @group Hooks
17
15
  * @see https://daypicker.dev/guides/custom-components
@@ -1 +1 @@
1
- {"version":3,"file":"useDayPicker.js","sources":["../../../../../node_modules/react-day-picker/dist/esm/useDayPicker.js"],"sourcesContent":["import { createContext, useContext } from \"react\";\n/** @ignore */\nexport const dayPickerContext = createContext(undefined);\n/**\n * Returns the context to work with `<DayPicker />` inside custom components.\n *\n * This hook provides access to the DayPicker context, which includes various\n * properties and methods to interact with the DayPicker component. It must be\n * used within a custom component.\n *\n * @template T - Use this type to refine the returned context type with a\n * specific selection mode.\n * @returns {DayPickerContext<T>} The context to work with DayPicker.\n * @throws {Error} If the hook is used outside of a DayPicker provider.\n * @group Hooks\n * @see https://daypicker.dev/guides/custom-components\n */\nexport function useDayPicker() {\n const context = useContext(dayPickerContext);\n if (context === undefined) {\n throw new Error(\"useDayPicker() must be used within a custom component.\");\n }\n return context;\n}\n//# sourceMappingURL=useDayPicker.js.map"],"names":["dayPickerContext","createContext","undefined","useDayPicker","context","useContext","Error"],"mappings":";;AAgBA;MACaA,gBAAgB,gBAAGC,aAAa,CAM3CC,SAAS;AA+CX;;;;;;;;;;;;;;AAcM,SAAUC,YAAYA,GAAA;AAG1B,EAAA,MAAMC,OAAO,GAAGC,UAAU,CAACL,gBAAgB,CAAC;EAC5C,IAAII,OAAO,KAAKF,SAAS,EAAE;AACzB,IAAA,MAAM,IAAII,KAAK,CAAC,wDAAwD,CAAC;AAC3E;AACA,EAAA,OAAOF,OAAO;AAChB;;;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"useDayPicker.js","sources":["../../../../../node_modules/react-day-picker/dist/esm/useDayPicker.js"],"sourcesContent":["import { createContext, useContext } from \"react\";\n/** @ignore */\nexport const dayPickerContext = createContext(undefined);\n/**\n * Provides access to the DayPicker context, which includes properties and\n * methods to interact with the DayPicker component. This hook must be used\n * within a custom component.\n *\n * @template T - Use this type to refine the returned context type with a\n * specific selection mode.\n * @returns The context to work with DayPicker.\n * @throws {Error} If the hook is used outside of a DayPicker provider.\n * @group Hooks\n * @see https://daypicker.dev/guides/custom-components\n */\nexport function useDayPicker() {\n const context = useContext(dayPickerContext);\n if (context === undefined) {\n throw new Error(\"useDayPicker() must be used within a custom component.\");\n }\n return context;\n}\n//# sourceMappingURL=useDayPicker.js.map"],"names":["dayPickerContext","createContext","undefined","useDayPicker","context","useContext","Error"],"mappings":";;AAgBA;MACaA,gBAAgB,gBAAGC,aAAa,CAM3CC,SAAS;AA+CX;;;;;;;;;;;;AAYM,SAAUC,YAAYA,GAAA;AAG1B,EAAA,MAAMC,OAAO,GAAGC,UAAU,CAACL,gBAAgB,CAAC;EAC5C,IAAII,OAAO,KAAKF,SAAS,EAAE;AACzB,IAAA,MAAM,IAAII,KAAK,CAAC,wDAAwD,CAAC;AAC3E;AACA,EAAA,OAAOF,OAAO;AAChB;;;;","x_google_ignoreList":[0]}
@@ -2,7 +2,20 @@ import { useState } from 'react';
2
2
  import { calculateFocusTarget } from './helpers/calculateFocusTarget.js';
3
3
  import { getNextFocus } from './helpers/getNextFocus.js';
4
4
 
5
- /** @private */
5
+ /**
6
+ * Manages focus behavior for the DayPicker component, including setting,
7
+ * moving, and blurring focus on calendar days.
8
+ *
9
+ * @template T - The type of DayPicker props.
10
+ * @param props - The DayPicker props.
11
+ * @param calendar - The calendar object containing the displayed days and
12
+ * months.
13
+ * @param getModifiers - A function to retrieve modifiers for a given day.
14
+ * @param isSelected - A function to check if a date is selected.
15
+ * @param dateLib - The date utility library instance.
16
+ * @returns An object containing focus-related methods and the currently focused
17
+ * day.
18
+ */
6
19
  function useFocus(props, calendar, getModifiers, isSelected, dateLib) {
7
20
  const {
8
21
  autoFocus
@@ -1 +1 @@
1
- {"version":3,"file":"useFocus.js","sources":["../../../../../node_modules/react-day-picker/dist/esm/useFocus.js"],"sourcesContent":["import { useState } from \"react\";\nimport { calculateFocusTarget } from \"./helpers/calculateFocusTarget.js\";\nimport { getNextFocus } from \"./helpers/getNextFocus.js\";\n/** @private */\nexport function useFocus(props, calendar, getModifiers, isSelected, dateLib) {\n const { autoFocus } = props;\n const [lastFocused, setLastFocused] = useState();\n const focusTarget = calculateFocusTarget(calendar.days, getModifiers, isSelected || (() => false), lastFocused);\n const [focusedDay, setFocused] = useState(autoFocus ? focusTarget : undefined);\n const blur = () => {\n setLastFocused(focusedDay);\n setFocused(undefined);\n };\n const moveFocus = (moveBy, moveDir) => {\n if (!focusedDay)\n return;\n const nextFocus = getNextFocus(moveBy, moveDir, focusedDay, calendar.navStart, calendar.navEnd, props, dateLib);\n if (!nextFocus)\n return;\n calendar.goToDay(nextFocus);\n setFocused(nextFocus);\n };\n const isFocusTarget = (day) => {\n return Boolean(focusTarget?.isEqualTo(day));\n };\n const useFocus = {\n isFocusTarget,\n setFocused,\n focused: focusedDay,\n blur,\n moveFocus\n };\n return useFocus;\n}\n//# sourceMappingURL=useFocus.js.map"],"names":["useFocus","props","calendar","getModifiers","isSelected","dateLib","autoFocus","lastFocused","setLastFocused","useState","focusTarget","calculateFocusTarget","days","focusedDay","setFocused","undefined","blur","moveFocus","moveBy","moveDir","nextFocus","getNextFocus","navStart","navEnd","goToDay","isFocusTarget","day","Boolean","isEqualTo","focused"],"mappings":";;;;AA8BA;AACM,SAAUA,QAAQA,CACtBC,KAAQ,EACRC,QAAkB,EAClBC,YAA6C,EAC7CC,UAAmC,EACnCC,OAAgB,EAAA;EAEhB,MAAM;AAAEC,IAAAA;AAAS,GAAE,GAAGL,KAAK;AAC3B,EAAA,MAAM,CAACM,WAAW,EAAEC,cAAc,CAAC,GAAGC,QAAQ,EAA2B;AAEzE,EAAA,MAAMC,WAAW,GAAGC,oBAAoB,CACtCT,QAAQ,CAACU,IAAI,EACbT,YAAY,EACZC,UAAU,KAAK,MAAM,KAAK,CAAC,EAC3BG,WAAW,CACZ;AACD,EAAA,MAAM,CAACM,UAAU,EAAEC,UAAU,CAAC,GAAGL,QAAQ,CACvCH,SAAS,GAAGI,WAAW,GAAGK,SAAS,CACpC;EAED,MAAMC,IAAI,GAAGA,MAAK;IAChBR,cAAc,CAACK,UAAU,CAAC;IAC1BC,UAAU,CAACC,SAAS,CAAC;GACtB;AAED,EAAA,MAAME,SAAS,GAAGA,CAACC,MAAmB,EAAEC,OAAqB,KAAI;IAC/D,IAAI,CAACN,UAAU,EAAE;IACjB,MAAMO,SAAS,GAAGC,YAAY,CAC5BH,MAAM,EACNC,OAAO,EACPN,UAAU,EACVX,QAAQ,CAACoB,QAAQ,EACjBpB,QAAQ,CAACqB,MAAM,EACftB,KAAK,EACLI,OAAO,CACR;IACD,IAAI,CAACe,SAAS,EAAE;AAEhBlB,IAAAA,QAAQ,CAACsB,OAAO,CAACJ,SAAS,CAAC;IAC3BN,UAAU,CAACM,SAAS,CAAC;GACtB;EAED,MAAMK,aAAa,GAAIC,GAAgB,IAAI;IACzC,OAAOC,OAAO,CAACjB,WAAW,EAAEkB,SAAS,CAACF,GAAG,CAAC,CAAC;GAC5C;AAED,EAAA,MAAM1B,QAAQ,GAAa;IACzByB,aAAa;IACbX,UAAU;AACVe,IAAAA,OAAO,EAAEhB,UAAU;IACnBG,IAAI;AACJC,IAAAA;AACD,GAAA;AAED,EAAA,OAAOjB,QAAQ;AACjB;;;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"useFocus.js","sources":["../../../../../node_modules/react-day-picker/dist/esm/useFocus.js"],"sourcesContent":["import { useState } from \"react\";\nimport { calculateFocusTarget } from \"./helpers/calculateFocusTarget.js\";\nimport { getNextFocus } from \"./helpers/getNextFocus.js\";\n/**\n * Manages focus behavior for the DayPicker component, including setting,\n * moving, and blurring focus on calendar days.\n *\n * @template T - The type of DayPicker props.\n * @param props - The DayPicker props.\n * @param calendar - The calendar object containing the displayed days and\n * months.\n * @param getModifiers - A function to retrieve modifiers for a given day.\n * @param isSelected - A function to check if a date is selected.\n * @param dateLib - The date utility library instance.\n * @returns An object containing focus-related methods and the currently focused\n * day.\n */\nexport function useFocus(props, calendar, getModifiers, isSelected, dateLib) {\n const { autoFocus } = props;\n const [lastFocused, setLastFocused] = useState();\n const focusTarget = calculateFocusTarget(calendar.days, getModifiers, isSelected || (() => false), lastFocused);\n const [focusedDay, setFocused] = useState(autoFocus ? focusTarget : undefined);\n const blur = () => {\n setLastFocused(focusedDay);\n setFocused(undefined);\n };\n const moveFocus = (moveBy, moveDir) => {\n if (!focusedDay)\n return;\n const nextFocus = getNextFocus(moveBy, moveDir, focusedDay, calendar.navStart, calendar.navEnd, props, dateLib);\n if (!nextFocus)\n return;\n calendar.goToDay(nextFocus);\n setFocused(nextFocus);\n };\n const isFocusTarget = (day) => {\n return Boolean(focusTarget?.isEqualTo(day));\n };\n const useFocus = {\n isFocusTarget,\n setFocused,\n focused: focusedDay,\n blur,\n moveFocus\n };\n return useFocus;\n}\n//# sourceMappingURL=useFocus.js.map"],"names":["useFocus","props","calendar","getModifiers","isSelected","dateLib","autoFocus","lastFocused","setLastFocused","useState","focusTarget","calculateFocusTarget","days","focusedDay","setFocused","undefined","blur","moveFocus","moveBy","moveDir","nextFocus","getNextFocus","navStart","navEnd","goToDay","isFocusTarget","day","Boolean","isEqualTo","focused"],"mappings":";;;;AA8BA;;;;;;;;;;;;;;AAcM,SAAUA,QAAQA,CACtBC,KAAQ,EACRC,QAAkB,EAClBC,YAA6C,EAC7CC,UAAmC,EACnCC,OAAgB,EAAA;EAEhB,MAAM;AAAEC,IAAAA;AAAS,GAAE,GAAGL,KAAK;AAC3B,EAAA,MAAM,CAACM,WAAW,EAAEC,cAAc,CAAC,GAAGC,QAAQ,EAA2B;AAEzE,EAAA,MAAMC,WAAW,GAAGC,oBAAoB,CACtCT,QAAQ,CAACU,IAAI,EACbT,YAAY,EACZC,UAAU,KAAK,MAAM,KAAK,CAAC,EAC3BG,WAAW,CACZ;AACD,EAAA,MAAM,CAACM,UAAU,EAAEC,UAAU,CAAC,GAAGL,QAAQ,CACvCH,SAAS,GAAGI,WAAW,GAAGK,SAAS,CACpC;EAED,MAAMC,IAAI,GAAGA,MAAK;IAChBR,cAAc,CAACK,UAAU,CAAC;IAC1BC,UAAU,CAACC,SAAS,CAAC;GACtB;AAED,EAAA,MAAME,SAAS,GAAGA,CAACC,MAAmB,EAAEC,OAAqB,KAAI;IAC/D,IAAI,CAACN,UAAU,EAAE;IACjB,MAAMO,SAAS,GAAGC,YAAY,CAC5BH,MAAM,EACNC,OAAO,EACPN,UAAU,EACVX,QAAQ,CAACoB,QAAQ,EACjBpB,QAAQ,CAACqB,MAAM,EACftB,KAAK,EACLI,OAAO,CACR;IACD,IAAI,CAACe,SAAS,EAAE;AAEhBlB,IAAAA,QAAQ,CAACsB,OAAO,CAACJ,SAAS,CAAC;IAC3BN,UAAU,CAACM,SAAS,CAAC;GACtB;EAED,MAAMK,aAAa,GAAIC,GAAgB,IAAI;IACzC,OAAOC,OAAO,CAACjB,WAAW,EAAEkB,SAAS,CAACF,GAAG,CAAC,CAAC;GAC5C;AAED,EAAA,MAAM1B,QAAQ,GAAa;IACzByB,aAAa;IACbX,UAAU;AACVe,IAAAA,OAAO,EAAEhB,UAAU;IACnBG,IAAI;AACJC,IAAAA;AACD,GAAA;AAED,EAAA,OAAOjB,QAAQ;AACjB;;;;","x_google_ignoreList":[0]}
@@ -2,6 +2,16 @@ import { useMulti } from './selection/useMulti.js';
2
2
  import { useRange } from './selection/useRange.js';
3
3
  import { useSingle } from './selection/useSingle.js';
4
4
 
5
+ /**
6
+ * Determines the appropriate selection hook to use based on the selection mode
7
+ * and returns the corresponding selection object.
8
+ *
9
+ * @template T - The type of DayPicker props.
10
+ * @param props - The DayPicker props.
11
+ * @param dateLib - The date utility library instance.
12
+ * @returns The selection object for the specified mode, or `undefined` if no
13
+ * mode is set.
14
+ */
5
15
  function useSelection(props, dateLib) {
6
16
  const single = useSingle(props, dateLib);
7
17
  const multi = useMulti(props, dateLib);
@@ -1 +1 @@
1
- {"version":3,"file":"useSelection.js","sources":["../../../../../node_modules/react-day-picker/dist/esm/useSelection.js"],"sourcesContent":["import { useMulti } from \"./selection/useMulti.js\";\nimport { useRange } from \"./selection/useRange.js\";\nimport { useSingle } from \"./selection/useSingle.js\";\nexport function useSelection(props, dateLib) {\n const single = useSingle(props, dateLib);\n const multi = useMulti(props, dateLib);\n const range = useRange(props, dateLib);\n switch (props.mode) {\n case \"single\":\n return single;\n case \"multiple\":\n return multi;\n case \"range\":\n return range;\n default:\n return undefined;\n }\n}\n//# sourceMappingURL=useSelection.js.map"],"names":["useSelection","props","dateLib","single","useSingle","multi","useMulti","range","useRange","mode","undefined"],"mappings":";;;;AAOM,SAAUA,YAAYA,CAC1BC,KAAQ,EACRC,OAAgB,EAAA;AAEhB,EAAA,MAAMC,MAAM,GAAGC,SAAS,CAACH,KAAK,EAAEC,OAAO,CAAC;AACxC,EAAA,MAAMG,KAAK,GAAGC,QAAQ,CAACL,KAAK,EAAEC,OAAO,CAAC;AACtC,EAAA,MAAMK,KAAK,GAAGC,QAAQ,CAACP,KAAK,EAAEC,OAAO,CAAC;EAEtC,QAAQD,KAAK,CAACQ,IAAI;AAChB,IAAA,KAAK,QAAQ;AACX,MAAA,OAAON,MAAM;AACf,IAAA,KAAK,UAAU;AACb,MAAA,OAAOE,KAAK;AACd,IAAA,KAAK,OAAO;AACV,MAAA,OAAOE,KAAK;AACd,IAAA;AACE,MAAA,OAAOG,SAAS;AACpB;AACF;;;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"useSelection.js","sources":["../../../../../node_modules/react-day-picker/dist/esm/useSelection.js"],"sourcesContent":["import { useMulti } from \"./selection/useMulti.js\";\nimport { useRange } from \"./selection/useRange.js\";\nimport { useSingle } from \"./selection/useSingle.js\";\n/**\n * Determines the appropriate selection hook to use based on the selection mode\n * and returns the corresponding selection object.\n *\n * @template T - The type of DayPicker props.\n * @param props - The DayPicker props.\n * @param dateLib - The date utility library instance.\n * @returns The selection object for the specified mode, or `undefined` if no\n * mode is set.\n */\nexport function useSelection(props, dateLib) {\n const single = useSingle(props, dateLib);\n const multi = useMulti(props, dateLib);\n const range = useRange(props, dateLib);\n switch (props.mode) {\n case \"single\":\n return single;\n case \"multiple\":\n return multi;\n case \"range\":\n return range;\n default:\n return undefined;\n }\n}\n//# sourceMappingURL=useSelection.js.map"],"names":["useSelection","props","dateLib","single","useSingle","multi","useMulti","range","useRange","mode","undefined"],"mappings":";;;;AAOA;;;;;;;;;;AAUM,SAAUA,YAAYA,CAC1BC,KAAQ,EACRC,OAAgB,EAAA;AAEhB,EAAA,MAAMC,MAAM,GAAGC,SAAS,CAACH,KAAK,EAAEC,OAAO,CAAC;AACxC,EAAA,MAAMG,KAAK,GAAGC,QAAQ,CAACL,KAAK,EAAEC,OAAO,CAAC;AACtC,EAAA,MAAMK,KAAK,GAAGC,QAAQ,CAACP,KAAK,EAAEC,OAAO,CAAC;EAEtC,QAAQD,KAAK,CAACQ,IAAI;AAChB,IAAA,KAAK,QAAQ;AACX,MAAA,OAAON,MAAM;AACf,IAAA,KAAK,UAAU;AACb,MAAA,OAAOE,KAAK;AACd,IAAA,KAAK,OAAO;AACV,MAAA,OAAOE,KAAK;AACd,IAAA;AACE,MAAA,OAAOG,SAAS;AACpB;AACF;;;;","x_google_ignoreList":[0]}
@@ -1,17 +1,19 @@
1
1
  import { defaultDateLib } from '../classes/DateLib.js';
2
2
 
3
3
  /**
4
- * Add a day to an existing range.
5
- *
6
- * The returned range takes in account the `undefined` values and if the added
7
- * day is already present in the range.
4
+ * Adds a date to an existing range, considering constraints like minimum and
5
+ * maximum range size.
8
6
  *
7
+ * @param date - The date to add to the range.
8
+ * @param initialRange - The initial range to which the date will be added.
9
+ * @param min - The minimum number of days in the range.
10
+ * @param max - The maximum number of days in the range.
11
+ * @param required - Whether the range must always include at least one date.
12
+ * @param dateLib - The date utility library instance.
13
+ * @returns The updated date range, or `undefined` if the range is cleared.
9
14
  * @group Utilities
10
15
  */
11
- function addToRange(/** The date to add to the range. */
12
- date, /** The range where to add `date`. */
13
- initialRange, min = 0, max = 0, required = false, /** @ignore */
14
- dateLib = defaultDateLib) {
16
+ function addToRange(date, initialRange, min = 0, max = 0, required = false, dateLib = defaultDateLib) {
15
17
  const {
16
18
  from,
17
19
  to
@@ -1 +1 @@
1
- {"version":3,"file":"addToRange.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/utils/addToRange.js"],"sourcesContent":["import { defaultDateLib } from \"../classes/DateLib.js\";\n/**\n * Add a day to an existing range.\n *\n * The returned range takes in account the `undefined` values and if the added\n * day is already present in the range.\n *\n * @group Utilities\n */\nexport function addToRange(\n/** The date to add to the range. */\ndate, \n/** The range where to add `date`. */\ninitialRange, min = 0, max = 0, required = false, \n/** @ignore */\ndateLib = defaultDateLib) {\n const { from, to } = initialRange || {};\n const { isSameDay, isAfter, isBefore } = dateLib;\n let range;\n if (!from && !to) {\n // the range is empty, add the date\n range = { from: date, to: min > 0 ? undefined : date };\n }\n else if (from && !to) {\n // adding date to an incomplete range\n if (isSameDay(from, date)) {\n // adding a date equal to the start of the range\n if (required) {\n range = { from, to: undefined };\n }\n else {\n range = undefined;\n }\n }\n else if (isBefore(date, from)) {\n // adding a date before the start of the range\n range = { from: date, to: from };\n }\n else {\n // adding a date after the start of the range\n range = { from, to: date };\n }\n }\n else if (from && to) {\n // adding date to a complete range\n if (isSameDay(from, date) && isSameDay(to, date)) {\n // adding a date that is equal to both start and end of the range\n if (required) {\n range = { from, to };\n }\n else {\n range = undefined;\n }\n }\n else if (isSameDay(from, date)) {\n // adding a date equal to the the start of the range\n range = { from, to: min > 0 ? undefined : date };\n }\n else if (isSameDay(to, date)) {\n // adding a dare equal to the end of the range\n range = { from: date, to: min > 0 ? undefined : date };\n }\n else if (isBefore(date, from)) {\n // adding a date before the start of the range\n range = { from: date, to: to };\n }\n else if (isAfter(date, from)) {\n // adding a date after the start of the range\n range = { from, to: date };\n }\n else if (isAfter(date, to)) {\n // adding a date after the end of the range\n range = { from, to: date };\n }\n else {\n throw new Error(\"Invalid range\");\n }\n }\n // check for min / max\n if (range?.from && range?.to) {\n const diff = dateLib.differenceInCalendarDays(range.to, range.from);\n if (max > 0 && diff > max) {\n range = { from: date, to: undefined };\n }\n else if (min > 1 && diff < min) {\n range = { from: date, to: undefined };\n }\n }\n return range;\n}\n//# sourceMappingURL=addToRange.js.map"],"names":["addToRange","date","initialRange","min","max","required","dateLib","defaultDateLib","from","to","isSameDay","isAfter","isBefore","range","undefined","Error","diff","differenceInCalendarDays"],"mappings":";;AAGA;;;;;;;;AAQM,SAAUA,UAAUA;AAExBC,IAAU;AA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IAAA,IAAIJ,GAAG,GAAG,CAAC,IAAIY,IAAI,GAAGZ,GAAG,EAAE;AACzBS,MAAAA,KAAK,GAAG;AAAEL,QAAAA,IAAI,EAAEP,IAAI;AAAEQ,QAAAA,EAAE,EAAEK;OAAW;KACtC,MAAM,IAAIX,GAAG,GAAG,CAAC,IAAIa,IAAI,GAAGb,GAAG,EAAE;AAChCU,MAAAA,KAAK,GAAG;AAAEL,QAAAA,IAAI,EAAEP,IAAI;AAAEQ,QAAAA,EAAE,EAAEK;OAAW;AACvC;AACF;AAEA,EAAA,OAAOD,KAAK;AACd;;;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"addToRange.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/utils/addToRange.js"],"sourcesContent":["import { defaultDateLib } from \"../classes/DateLib.js\";\n/**\n * Adds a date to an existing range, considering constraints like minimum and\n * maximum range size.\n *\n * @param date - The date to add to the range.\n * @param initialRange - The initial range to which the date will be added.\n * @param min - The minimum number of days in the range.\n * @param max - The maximum number of days in the range.\n * @param required - Whether the range must always include at least one date.\n * @param dateLib - The date utility library instance.\n * @returns The updated date range, or `undefined` if the range is cleared.\n * @group Utilities\n */\nexport function addToRange(date, initialRange, min = 0, max = 0, required = false, dateLib = defaultDateLib) {\n const { from, to } = initialRange || {};\n const { isSameDay, isAfter, isBefore } = dateLib;\n let range;\n if (!from && !to) {\n // the range is empty, add the date\n range = { from: date, to: min > 0 ? undefined : date };\n }\n else if (from && !to) {\n // adding date to an incomplete range\n if (isSameDay(from, date)) {\n // adding a date equal to the start of the range\n if (required) {\n range = { from, to: undefined };\n }\n else {\n range = undefined;\n }\n }\n else if (isBefore(date, from)) {\n // adding a date before the start of the range\n range = { from: date, to: from };\n }\n else {\n // adding a date after the start of the range\n range = { from, to: date };\n }\n }\n else if (from && to) {\n // adding date to a complete range\n if (isSameDay(from, date) && isSameDay(to, date)) {\n // adding a date that is equal to both start and end of the range\n if (required) {\n range = { from, to };\n }\n else {\n range = undefined;\n }\n }\n else if (isSameDay(from, date)) {\n // adding a date equal to the the start of the range\n range = { from, to: min > 0 ? undefined : date };\n }\n else if (isSameDay(to, date)) {\n // adding a dare equal to the end of the range\n range = { from: date, to: min > 0 ? undefined : date };\n }\n else if (isBefore(date, from)) {\n // adding a date before the start of the range\n range = { from: date, to: to };\n }\n else if (isAfter(date, from)) {\n // adding a date after the start of the range\n range = { from, to: date };\n }\n else if (isAfter(date, to)) {\n // adding a date after the end of the range\n range = { from, to: date };\n }\n else {\n throw new Error(\"Invalid range\");\n }\n }\n // check for min / max\n if (range?.from && range?.to) {\n const diff = dateLib.differenceInCalendarDays(range.to, range.from);\n if (max > 0 && diff > max) {\n range = { from: date, to: undefined };\n }\n else if (min > 1 && diff < min) {\n range = { from: date, to: undefined };\n }\n }\n return range;\n}\n//# sourceMappingURL=addToRange.js.map"],"names":["addToRange","date","initialRange","min","max","required","dateLib","defaultDateLib","from","to","isSameDay","isAfter","isBefore","range","undefined","Error","diff","differenceInCalendarDays"],"mappings":";;AAGA;;;;;;;;;;;;;AAaM,SAAUA,UAAUA,CACxBC,IAAU,EACVC,YAAmC,EACnCC,GAAG,GAAG,CAAC,EACPC,GAAG,GAAG,CAAC,EACPC,QAAQ,GAAG,KAAK,EAChBC,OAAA,GAAmBC,cAAc,EAAA;EAEjC,MAAM;IAAEC,IAAI;AAAEC,IAAAA;GAAI,GAAGP,YAAY,IAAI,EAAE;EACvC,MAAM;IAAEQ,SAAS;IAAEC,OAAO;AAAEC,IAAAA;AAAQ,GAAE,GAAGN,OAAO;AAEhD,EAAA,IAAIO,KAA4B;AAEhC,EAAA,IAAI,CAACL,IAAI,IAAI,CAACC,EAAE,EAAE;AAChB;AACAI,IAAAA,KAAK,GAAG;AAAEL,MAAAA,IAAI,EAAEP,IAAI;AAAEQ,MAAAA,EAAE,EAAEN,GAAG,GAAG,CAAC,GAAGW,SAAS,GAAGb;KAAM;AACxD,GAAC,MAAM,IAAIO,IAAI,IAAI,CAACC,EAAE,EAAE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AEO,IAAI,CAAC,EAAE;AAC/B;AACAK,MAAAA,KAAK,GAAG;AAAEL,QAAAA,IAAI,EAAEP,IAAI;AAAEQ,QAAAA,EAAE,EAAEA;OAAI;KAC/B,MAAM,IAAIE,OAAO,CAACV,IAAI,EAAEO,IAAI,CAAC,EAAE;AAC9B;AACAK,MAAAA,KAAK,GAAG;QAAEL,IAAI;AAAEC,QAAAA,EAAE,EAAER;OAAM;KAC3B,MAAM,IAAIU,OAAO,CAACV,IAAI,EAAEQ,EAAE,CAAC,EAAE;AAC5B;AACAI,MAAAA,KAAK,GAAG;QAAEL,IAAI;AAAEC,QAAAA,EAAE,EAAER;OAAM;AAC5B,KAAC,MAAM;AACL,MAAA,MAAM,IAAIc,KAAK,CAAC,eAAe,CAAC;AAClC;AACF;AAEA;AACA,EAAA,IAAIF,KAAK,EAAEL,IAAI,IAAIK,KAAK,EAAEJ,EAAE,EAAE;AAC5B,IAAA,MAAMO,IAAI,GAAGV,OAAO,CAACW,wBAAwB,CAACJ,KAAK,CAACJ,EAAE,EAAEI,KAAK,CAACL,IAAI,CAAC;AACnE,IAAA,IAAIJ,GAAG,GAAG,CAAC,IAAIY,IAAI,GAAGZ,GAAG,EAAE;AACzBS,MAAAA,KAAK,GAAG;AAAEL,QAAAA,IAAI,EAAEP,IAAI;AAAEQ,QAAAA,EAAE,EAAEK;OAAW;KACtC,MAAM,IAAIX,GAAG,GAAG,CAAC,IAAIa,IAAI,GAAGb,GAAG,EAAE;AAChCU,MAAAA,KAAK,GAAG;AAAEL,QAAAA,IAAI,EAAEP,IAAI;AAAEQ,QAAAA,EAAE,EAAEK;OAAW;AACvC;AACF;AAEA,EAAA,OAAOD,KAAK;AACd;;;;","x_google_ignoreList":[0]}
@@ -3,22 +3,12 @@ import { rangeIncludesDate } from './rangeIncludesDate.js';
3
3
  import { isDatesArray, isDateRange, isDayOfWeekType, isDateInterval, isDateAfterType, isDateBeforeType } from './typeguards.js';
4
4
 
5
5
  /**
6
- * Returns whether a day matches against at least one of the given
7
- * {@link Matcher}.
8
- *
9
- * ```tsx
10
- * const date = new Date(2022, 5, 19);
11
- * const matcher1: DateRange = {
12
- * from: new Date(2021, 12, 21),
13
- * to: new Date(2021, 12, 30)
14
- * };
15
- * const matcher2: DateRange = {
16
- * from: new Date(2022, 5, 1),
17
- * to: new Date(2022, 5, 23)
18
- * };
19
- * dateMatchModifiers(date, [matcher1, matcher2]); // true, since day is in the matcher1 range.
20
- * ```
6
+ * Checks if a given date matches at least one of the specified {@link Matcher}.
21
7
  *
8
+ * @param date - The date to check.
9
+ * @param matchers - The matchers to check against.
10
+ * @param dateLib - The date utility library instance.
11
+ * @returns `true` if the date matches any of the matchers, otherwise `false`.
22
12
  * @group Utilities
23
13
  */
24
14
  function dateMatchModifiers(date, matchers, dateLib = defaultDateLib) {
@@ -1 +1 @@
1
- {"version":3,"file":"dateMatchModifiers.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/utils/dateMatchModifiers.js"],"sourcesContent":["import { defaultDateLib } from \"../classes/DateLib.js\";\nimport { rangeIncludesDate } from \"./rangeIncludesDate.js\";\nimport { isDateAfterType, isDateBeforeType, isDateInterval, isDateRange, isDatesArray, isDayOfWeekType } from \"./typeguards.js\";\n/**\n * Returns whether a day matches against at least one of the given\n * {@link Matcher}.\n *\n * ```tsx\n * const date = new Date(2022, 5, 19);\n * const matcher1: DateRange = {\n * from: new Date(2021, 12, 21),\n * to: new Date(2021, 12, 30)\n * };\n * const matcher2: DateRange = {\n * from: new Date(2022, 5, 1),\n * to: new Date(2022, 5, 23)\n * };\n * dateMatchModifiers(date, [matcher1, matcher2]); // true, since day is in the matcher1 range.\n * ```\n *\n * @group Utilities\n */\nexport function dateMatchModifiers(date, matchers, dateLib = defaultDateLib) {\n const matchersArr = !Array.isArray(matchers) ? [matchers] : matchers;\n const { isSameDay, differenceInCalendarDays, isAfter } = dateLib;\n return matchersArr.some((matcher) => {\n if (typeof matcher === \"boolean\") {\n return matcher;\n }\n if (dateLib.isDate(matcher)) {\n return isSameDay(date, matcher);\n }\n if (isDatesArray(matcher, dateLib)) {\n return matcher.includes(date);\n }\n if (isDateRange(matcher)) {\n return rangeIncludesDate(matcher, date, false, dateLib);\n }\n if (isDayOfWeekType(matcher)) {\n if (!Array.isArray(matcher.dayOfWeek)) {\n return matcher.dayOfWeek === date.getDay();\n }\n return matcher.dayOfWeek.includes(date.getDay());\n }\n if (isDateInterval(matcher)) {\n const diffBefore = differenceInCalendarDays(matcher.before, date);\n const diffAfter = differenceInCalendarDays(matcher.after, date);\n const isDayBefore = diffBefore > 0;\n const isDayAfter = diffAfter < 0;\n const isClosedInterval = isAfter(matcher.before, matcher.after);\n if (isClosedInterval) {\n return isDayAfter && isDayBefore;\n }\n else {\n return isDayBefore || isDayAfter;\n }\n }\n if (isDateAfterType(matcher)) {\n return differenceInCalendarDays(date, matcher.after) > 0;\n }\n if (isDateBeforeType(matcher)) {\n return differenceInCalendarDays(matcher.before, date) > 0;\n }\n if (typeof matcher === \"function\") {\n return matcher(date);\n }\n return false;\n });\n}\n/**\n * @private\n * @deprecated Use {@link dateMatchModifiers} instead.\n */\nexport const isMatch = dateMatchModifiers;\n//# sourceMappingURL=dateMatchModifiers.js.map"],"names":["dateMatchModifiers","date","matchers","dateLib","defaultDateLib","matchersArr","Array","isArray","isSameDay","differenceInCalendarDays","isAfter","some","matcher","isDate","isDatesArray","includes","isDateRange","rangeIncludesDate","isDayOfWeekType","dayOfWeek","getDay","isDateInterval","diffBefore","before","diffAfter","after","isDayBefore","isDayAfter","isClosedInterval","isDateAfterType","isDateBeforeType"],"mappings":";;;;AAaA;;;;;;;;;;;;;;;;;;;AAmBM,SAAUA,kBAAkBA,CAChCC,IAAU,EACVC,QAA6B,EAC7BC,OAAA,GAAmBC,cAAc,EAAA;AAEjC,EAAA,MAAMC,WAAW,GAAG,CAACC,KAAK,CAACC,OAAO,CAACL,QAAQ,CAAC,GAAG,CAACA,QAAQ,CAAC,GAAGA,QAAQ;EACpE,MAAM;I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OAAO,CAACW,MAAM,EAAEX,OAAO,CAACa,KAAK,CAAC;AAC/D,MAAA,IAAIG,gBAAgB,EAAE;QACpB,OAAOD,UAAU,IAAID,WAAW;AAClC,OAAC,MAAM;QACL,OAAOA,WAAW,IAAIC,UAAU;AAClC;AACF;AACA,IAAA,IAAIE,eAAe,CAACjB,OAAO,CAAC,EAAE;MAC5B,OAAOH,wBAAwB,CAACR,IAAI,EAAEW,OAAO,CAACa,KAAK,CAAC,GAAG,CAAC;AAC1D;AACA,IAAA,IAAIK,gBAAgB,CAAClB,OAAO,CAAC,EAAE;MAC7B,OAAOH,wBAAwB,CAACG,OAAO,CAACW,MAAM,EAAEtB,IAAI,CAAC,GAAG,CAAC;AAC3D;AACA,IAAA,IAAI,OAAOW,OAAO,KAAK,UAAU,EAAE;MACjC,OAAOA,OAAO,CAACX,IAAI,CAAC;AACtB;AACA,IAAA,OAAO,KAAK;AACd,GAAC,CAAC;AACJ;;;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"dateMatchModifiers.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/utils/dateMatchModifiers.js"],"sourcesContent":["import { defaultDateLib } from \"../classes/DateLib.js\";\nimport { rangeIncludesDate } from \"./rangeIncludesDate.js\";\nimport { isDateAfterType, isDateBeforeType, isDateInterval, isDateRange, isDatesArray, isDayOfWeekType } from \"./typeguards.js\";\n/**\n * Checks if a given date matches at least one of the specified {@link Matcher}.\n *\n * @param date - The date to check.\n * @param matchers - The matchers to check against.\n * @param dateLib - The date utility library instance.\n * @returns `true` if the date matches any of the matchers, otherwise `false`.\n * @group Utilities\n */\nexport function dateMatchModifiers(date, matchers, dateLib = defaultDateLib) {\n const matchersArr = !Array.isArray(matchers) ? [matchers] : matchers;\n const { isSameDay, differenceInCalendarDays, isAfter } = dateLib;\n return matchersArr.some((matcher) => {\n if (typeof matcher === \"boolean\") {\n return matcher;\n }\n if (dateLib.isDate(matcher)) {\n return isSameDay(date, matcher);\n }\n if (isDatesArray(matcher, dateLib)) {\n return matcher.includes(date);\n }\n if (isDateRange(matcher)) {\n return rangeIncludesDate(matcher, date, false, dateLib);\n }\n if (isDayOfWeekType(matcher)) {\n if (!Array.isArray(matcher.dayOfWeek)) {\n return matcher.dayOfWeek === date.getDay();\n }\n return matcher.dayOfWeek.includes(date.getDay());\n }\n if (isDateInterval(matcher)) {\n const diffBefore = differenceInCalendarDays(matcher.before, date);\n const diffAfter = differenceInCalendarDays(matcher.after, date);\n const isDayBefore = diffBefore > 0;\n const isDayAfter = diffAfter < 0;\n const isClosedInterval = isAfter(matcher.before, matcher.after);\n if (isClosedInterval) {\n return isDayAfter && isDayBefore;\n }\n else {\n return isDayBefore || isDayAfter;\n }\n }\n if (isDateAfterType(matcher)) {\n return differenceInCalendarDays(date, matcher.after) > 0;\n }\n if (isDateBeforeType(matcher)) {\n return differenceInCalendarDays(matcher.before, date) > 0;\n }\n if (typeof matcher === \"function\") {\n return matcher(date);\n }\n return false;\n });\n}\n/**\n * @private\n * @deprecated Use {@link dateMatchModifiers} instead.\n */\nexport const isMatch = dateMatchModifiers;\n//# sourceMappingURL=dateMatchModifiers.js.map"],"names":["dateMatchModifiers","date","matchers","dateLib","defaultDateLib","matchersArr","Array","isArray","isSameDay","differenceInCalendarDays","isAfter","some","matcher","isDate","isDatesArray","includes","isDateRange","rangeIncludesDate","isDayOfWeekType","dayOfWeek","getDay","isDateInterval","diffBefore","before","diffAfter","after","isDayBefore","isDayAfter","isClosedInterval","isDateAfterType","isDateBeforeType"],"mappings":";;;;AAaA;;;;;;;;;AASM,SAAUA,kBAAkBA,CAChCC,IAAU,EACVC,QAA6B,EAC7BC,OAAA,GAAmBC,cAAc,EAAA;AAEjC,EAAA,MAAMC,WAAW,GAAG,CAACC,KAAK,CAACC,OAAO,CAACL,QAAQ,CAAC,GAAG,CAACA,QAAQ,CAAC,GAAGA,QAAQ;EACpE,MAAM;IAAEM,SAAS;IAAEC,wBAAwB;AAAEC,IAAAA;AAAO,GAAE,GAAGP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A,IAAIG,gBAAgB,EAAE;QACpB,OAAOD,UAAU,IAAID,WAAW;AAClC,OAAC,MAAM;QACL,OAAOA,WAAW,IAAIC,UAAU;AAClC;AACF;AACA,IAAA,IAAIE,eAAe,CAACjB,OAAO,CAAC,EAAE;MAC5B,OAAOH,wBAAwB,CAACR,IAAI,EAAEW,OAAO,CAACa,KAAK,CAAC,GAAG,CAAC;AAC1D;AACA,IAAA,IAAIK,gBAAgB,CAAClB,OAAO,CAAC,EAAE;MAC7B,OAAOH,wBAAwB,CAACG,OAAO,CAACW,MAAM,EAAEtB,IAAI,CAAC,GAAG,CAAC;AAC3D;AACA,IAAA,IAAI,OAAOW,OAAO,KAAK,UAAU,EAAE;MACjC,OAAOA,OAAO,CAACX,IAAI,CAAC;AACtB;AACA,IAAA,OAAO,KAAK;AACd,GAAC,CAAC;AACJ;;;;","x_google_ignoreList":[0]}
@@ -1,17 +1,15 @@
1
1
  import { defaultDateLib } from '../classes/DateLib.js';
2
2
 
3
3
  /**
4
- * Returns whether a date range contains one or more days of the week.
5
- *
6
- * ```tsx
7
- * const range: DateRange = {
8
- * from: new Date(2024, 8, 1), // Sunday
9
- * to: new Date(2024, 8, 6) // Thursday
10
- * };
11
- * rangeContainsDayOfWeek(date, 1); // true: contains range contains Monday
12
- * ```
4
+ * Checks if a date range contains one or more specified days of the week.
13
5
  *
14
6
  * @since 9.2.2
7
+ * @param range - The date range to check.
8
+ * @param dayOfWeek - The day(s) of the week to check for (`0-6`, where `0` is
9
+ * Sunday).
10
+ * @param dateLib - The date utility library instance.
11
+ * @returns `true` if the range contains the specified day(s) of the week,
12
+ * otherwise `false`.
15
13
  * @group Utilities
16
14
  */
17
15
  function rangeContainsDayOfWeek(range, dayOfWeek, dateLib = defaultDateLib) {
@@ -1 +1 @@
1
- {"version":3,"file":"rangeContainsDayOfWeek.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/utils/rangeContainsDayOfWeek.js"],"sourcesContent":["import { defaultDateLib } from \"../classes/DateLib.js\";\n/**\n * Returns whether a date range contains one or more days of the week.\n *\n * ```tsx\n * const range: DateRange = {\n * from: new Date(2024, 8, 1), // Sunday\n * to: new Date(2024, 8, 6) // Thursday\n * };\n * rangeContainsDayOfWeek(date, 1); // true: contains range contains Monday\n * ```\n *\n * @since 9.2.2\n * @group Utilities\n */\nexport function rangeContainsDayOfWeek(range, dayOfWeek, dateLib = defaultDateLib) {\n const dayOfWeekArr = !Array.isArray(dayOfWeek) ? [dayOfWeek] : dayOfWeek;\n let date = range.from;\n const totalDays = dateLib.differenceInCalendarDays(range.to, range.from);\n // iterate at maximum one week or the total days if the range is shorter than one week\n const totalDaysLimit = Math.min(totalDays, 6);\n for (let i = 0; i <= totalDaysLimit; i++) {\n if (dayOfWeekArr.includes(date.getDay())) {\n return true;\n }\n date = dateLib.addDays(date, 1);\n }\n return false;\n}\n//# sourceMappingURL=rangeContainsDayOfWeek.js.map"],"names":["rangeContainsDayOfWeek","range","dayOfWeek","dateLib","defaultDateLib","dayOfWeekArr","Array","isArray","date","from","totalDays","differenceInCalendarDays","to","totalDaysLimit","Math","min","i","includes","getDay","addDays"],"mappings":";;AAEA;;;;;;;;;;;;;;AAcM,SAAUA,sBAAsBA,CACpCC,KAA+B,EAC/BC,SAA4B,EAC5BC,OAAA,GAAmBC,cAAc,EAAA;AAEjC,EAAA,MAAMC,YAAY,GAAG,CAACC,KAAK,CAACC,OAAO,CAACL,SAAS,CAAC,GAAG,CAACA,SAAS,CAAC,GAAGA,SAAS;AACxE,EAAA,IAAIM,IAAI,GAAGP,KAAK,CAACQ,IAAI;AACrB,EAAA,MAAMC,SAAS,GAAGP,OAAO,CAACQ,wBAAwB,CAACV,KAAK,CAACW,EAAE,EAAEX,KAAK,CAACQ,IAAI,CAAC;AAExE;EACA,MAAMI,cAAc,GAAGC,IAAI,CAACC,GAAG,CAACL,SAAS,EAAE,CAAC,CAAC;EAC7C,KAAK,IAAIM,CAAC,GAAG,CAAC,EAAEA,CAAC,IAAIH,cAAc,EAAEG,CAAC,EAAE,EAAE;IACxC,IAAIX,YAAY,CAACY,QAAQ,CAACT,IAAI,CAACU,MAAM,EAAE,CAAC,EAAE;AACxC,MAAA,OAAO,IAAI;AACb;IACAV,IAAI,GAAGL,OAAO,CAACgB,OAAO,CAACX,IAAI,EAAE,CAAC,CAAC;AACjC;AACA,EAAA,OAAO,KAAK;AACd;;;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"rangeContainsDayOfWeek.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/utils/rangeContainsDayOfWeek.js"],"sourcesContent":["import { defaultDateLib } from \"../classes/DateLib.js\";\n/**\n * Checks if a date range contains one or more specified days of the week.\n *\n * @since 9.2.2\n * @param range - The date range to check.\n * @param dayOfWeek - The day(s) of the week to check for (`0-6`, where `0` is\n * Sunday).\n * @param dateLib - The date utility library instance.\n * @returns `true` if the range contains the specified day(s) of the week,\n * otherwise `false`.\n * @group Utilities\n */\nexport function rangeContainsDayOfWeek(range, dayOfWeek, dateLib = defaultDateLib) {\n const dayOfWeekArr = !Array.isArray(dayOfWeek) ? [dayOfWeek] : dayOfWeek;\n let date = range.from;\n const totalDays = dateLib.differenceInCalendarDays(range.to, range.from);\n // iterate at maximum one week or the total days if the range is shorter than one week\n const totalDaysLimit = Math.min(totalDays, 6);\n for (let i = 0; i <= totalDaysLimit; i++) {\n if (dayOfWeekArr.includes(date.getDay())) {\n return true;\n }\n date = dateLib.addDays(date, 1);\n }\n return false;\n}\n//# sourceMappingURL=rangeContainsDayOfWeek.js.map"],"names":["rangeContainsDayOfWeek","range","dayOfWeek","dateLib","defaultDateLib","dayOfWeekArr","Array","isArray","date","from","totalDays","differenceInCalendarDays","to","totalDaysLimit","Math","min","i","includes","getDay","addDays"],"mappings":";;AAEA;;;;;;;;;;;;AAYM,SAAUA,sBAAsBA,CACpCC,KAA+B,EAC/BC,SAA4B,EAC5BC,OAAA,GAAmBC,cAAc,EAAA;AAEjC,EAAA,MAAMC,YAAY,GAAG,CAACC,KAAK,CAACC,OAAO,CAACL,SAAS,CAAC,GAAG,CAACA,SAAS,CAAC,GAAGA,SAAS;AACxE,EAAA,IAAIM,IAAI,GAAGP,KAAK,CAACQ,IAAI;AACrB,EAAA,MAAMC,SAAS,GAAGP,OAAO,CAACQ,wBAAwB,CAACV,KAAK,CAACW,EAAE,EAAEX,KAAK,CAACQ,IAAI,CAAC;AAExE;EACA,MAAMI,cAAc,GAAGC,IAAI,CAACC,GAAG,CAACL,SAAS,EAAE,CAAC,CAAC;EAC7C,KAAK,IAAIM,CAAC,GAAG,CAAC,EAAEA,CAAC,IAAIH,cAAc,EAAEG,CAAC,EAAE,EAAE;IACxC,IAAIX,YAAY,CAACY,QAAQ,CAACT,IAAI,CAACU,MAAM,EAAE,CAAC,EAAE;AACxC,MAAA,OAAO,IAAI;AACb;IACAV,IAAI,GAAGL,OAAO,CAACgB,OAAO,CAACX,IAAI,EAAE,CAAC,CAAC;AACjC;AACA,EAAA,OAAO,KAAK;AACd;;;;","x_google_ignoreList":[0]}
@@ -6,22 +6,13 @@ import { rangeOverlaps } from './rangeOverlaps.js';
6
6
  import { isDatesArray, isDateRange, isDayOfWeekType, isDateInterval, isDateAfterType, isDateBeforeType } from './typeguards.js';
7
7
 
8
8
  /**
9
- * Returns whether a range contains dates that match the given modifiers.
10
- *
11
- * ```tsx
12
- * const range: DateRange = {
13
- * from: new Date(2021, 12, 21),
14
- * to: new Date(2021, 12, 30)
15
- * };
16
- * const matcher1: Date = new Date(2021, 12, 21);
17
- * const matcher2: DateRange = {
18
- * from: new Date(2022, 5, 1),
19
- * to: new Date(2022, 5, 23)
20
- * };
21
- * rangeContainsModifiers(range, [matcher1, matcher2]); // true, since matcher1 is in the date.
22
- * ```
9
+ * Checks if a date range contains dates that match the given modifiers.
23
10
  *
24
11
  * @since 9.2.2
12
+ * @param range - The date range to check.
13
+ * @param modifiers - The modifiers to match against.
14
+ * @param dateLib - The date utility library instance.
15
+ * @returns `true` if the range contains matching dates, otherwise `false`.
25
16
  * @group Utilities
26
17
  */
27
18
  function rangeContainsModifiers(range, modifiers, dateLib = defaultDateLib) {
@@ -1 +1 @@
1
- {"version":3,"file":"rangeContainsModifiers.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/utils/rangeContainsModifiers.js"],"sourcesContent":["import { defaultDateLib } from \"../classes/DateLib.js\";\nimport { dateMatchModifiers } from \"./dateMatchModifiers.js\";\nimport { rangeContainsDayOfWeek } from \"./rangeContainsDayOfWeek.js\";\nimport { rangeIncludesDate } from \"./rangeIncludesDate.js\";\nimport { rangeOverlaps } from \"./rangeOverlaps.js\";\nimport { isDateAfterType, isDateBeforeType, isDateInterval, isDateRange, isDatesArray, isDayOfWeekType } from \"./typeguards.js\";\n/**\n * Returns whether a range contains dates that match the given modifiers.\n *\n * ```tsx\n * const range: DateRange = {\n * from: new Date(2021, 12, 21),\n * to: new Date(2021, 12, 30)\n * };\n * const matcher1: Date = new Date(2021, 12, 21);\n * const matcher2: DateRange = {\n * from: new Date(2022, 5, 1),\n * to: new Date(2022, 5, 23)\n * };\n * rangeContainsModifiers(range, [matcher1, matcher2]); // true, since matcher1 is in the date.\n * ```\n *\n * @since 9.2.2\n * @group Utilities\n */\nexport function rangeContainsModifiers(range, modifiers, dateLib = defaultDateLib) {\n const matchers = Array.isArray(modifiers) ? modifiers : [modifiers];\n // Defer function matchers evaluation as they are the least performant.\n const nonFunctionMatchers = matchers.filter((matcher) => typeof matcher !== \"function\");\n const nonFunctionMatchersResult = nonFunctionMatchers.some((matcher) => {\n if (typeof matcher === \"boolean\")\n return matcher;\n if (dateLib.isDate(matcher)) {\n return rangeIncludesDate(range, matcher, false, dateLib);\n }\n if (isDatesArray(matcher, dateLib)) {\n return matcher.some((date) => rangeIncludesDate(range, date, false, dateLib));\n }\n if (isDateRange(matcher)) {\n if (matcher.from && matcher.to) {\n return rangeOverlaps(range, { from: matcher.from, to: matcher.to }, dateLib);\n }\n return false;\n }\n if (isDayOfWeekType(matcher)) {\n return rangeContainsDayOfWeek(range, matcher.dayOfWeek, dateLib);\n }\n if (isDateInterval(matcher)) {\n const isClosedInterval = dateLib.isAfter(matcher.before, matcher.after);\n if (isClosedInterval) {\n return rangeOverlaps(range, {\n from: dateLib.addDays(matcher.after, 1),\n to: dateLib.addDays(matcher.before, -1)\n }, dateLib);\n }\n return (dateMatchModifiers(range.from, matcher, dateLib) ||\n dateMatchModifiers(range.to, matcher, dateLib));\n }\n if (isDateAfterType(matcher) || isDateBeforeType(matcher)) {\n return (dateMatchModifiers(range.from, matcher, dateLib) ||\n dateMatchModifiers(range.to, matcher, dateLib));\n }\n return false;\n });\n if (nonFunctionMatchersResult) {\n return true;\n }\n const functionMatchers = matchers.filter((matcher) => typeof matcher === \"function\");\n if (functionMatchers.length) {\n let date = range.from;\n const totalDays = dateLib.differenceInCalendarDays(range.to, range.from);\n for (let i = 0; i <= totalDays; i++) {\n if (functionMatchers.some((matcher) => matcher(date))) {\n return true;\n }\n date = dateLib.addDays(date, 1);\n }\n }\n return false;\n}\n//# sourceMappingURL=rangeContainsModifiers.js.map"],"names":["rangeContainsModifiers","range","modifiers","dateLib","defaultDateLib","matchers","Array","isArray","nonFunctionMatchers","filter","matcher","nonFunctionMatchersResult","some","isDate","rangeIncludesDate","isDatesArray","date","isDateRange","from","to","rangeOverlaps","isDayOfWeekType","rangeContainsDayOfWeek","dayOfWeek","isDateInterval","isClosedInterval","isAfter","before","after","addDays","dateMatchModifiers","isDateAfterType","isDateBeforeType","functionMatchers","length","totalDays","differenceInCalendarDays","i"],"mappings":";;;;;;;AAgBA;;;;;;;;;;;;;;;;;;;AAmBM,SAAUA,sBAAsBA,CACpCC,KAA+B,EAC/BC,SAA8B,EAC9BC,OAAA,GAAmBC,cAAc,EAAA;AAEjC,EAAA,MAAMC,QAAQ,GAAGC,KAAK,CAACC,OAAO,CAACL,SAAS,CAAC,GAAGA,SAAS,GAAG,CAACA,SAAS,CAAC;AAEnE;AACA,EAAA,MAAMM,mBAAmB,GAAGH,QA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,GAAGb,OAAO,CAAC0B,OAAO,CAACb,IAAI,EAAE,CAAC,CAAC;AACjC;AACF;AAEA,EAAA,OAAO,KAAK;AACd;;;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"rangeContainsModifiers.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/utils/rangeContainsModifiers.js"],"sourcesContent":["import { defaultDateLib } from \"../classes/DateLib.js\";\nimport { dateMatchModifiers } from \"./dateMatchModifiers.js\";\nimport { rangeContainsDayOfWeek } from \"./rangeContainsDayOfWeek.js\";\nimport { rangeIncludesDate } from \"./rangeIncludesDate.js\";\nimport { rangeOverlaps } from \"./rangeOverlaps.js\";\nimport { isDateAfterType, isDateBeforeType, isDateInterval, isDateRange, isDatesArray, isDayOfWeekType } from \"./typeguards.js\";\n/**\n * Checks if a date range contains dates that match the given modifiers.\n *\n * @since 9.2.2\n * @param range - The date range to check.\n * @param modifiers - The modifiers to match against.\n * @param dateLib - The date utility library instance.\n * @returns `true` if the range contains matching dates, otherwise `false`.\n * @group Utilities\n */\nexport function rangeContainsModifiers(range, modifiers, dateLib = defaultDateLib) {\n const matchers = Array.isArray(modifiers) ? modifiers : [modifiers];\n // Defer function matchers evaluation as they are the least performant.\n const nonFunctionMatchers = matchers.filter((matcher) => typeof matcher !== \"function\");\n const nonFunctionMatchersResult = nonFunctionMatchers.some((matcher) => {\n if (typeof matcher === \"boolean\")\n return matcher;\n if (dateLib.isDate(matcher)) {\n return rangeIncludesDate(range, matcher, false, dateLib);\n }\n if (isDatesArray(matcher, dateLib)) {\n return matcher.some((date) => rangeIncludesDate(range, date, false, dateLib));\n }\n if (isDateRange(matcher)) {\n if (matcher.from && matcher.to) {\n return rangeOverlaps(range, { from: matcher.from, to: matcher.to }, dateLib);\n }\n return false;\n }\n if (isDayOfWeekType(matcher)) {\n return rangeContainsDayOfWeek(range, matcher.dayOfWeek, dateLib);\n }\n if (isDateInterval(matcher)) {\n const isClosedInterval = dateLib.isAfter(matcher.before, matcher.after);\n if (isClosedInterval) {\n return rangeOverlaps(range, {\n from: dateLib.addDays(matcher.after, 1),\n to: dateLib.addDays(matcher.before, -1)\n }, dateLib);\n }\n return (dateMatchModifiers(range.from, matcher, dateLib) ||\n dateMatchModifiers(range.to, matcher, dateLib));\n }\n if (isDateAfterType(matcher) || isDateBeforeType(matcher)) {\n return (dateMatchModifiers(range.from, matcher, dateLib) ||\n dateMatchModifiers(range.to, matcher, dateLib));\n }\n return false;\n });\n if (nonFunctionMatchersResult) {\n return true;\n }\n const functionMatchers = matchers.filter((matcher) => typeof matcher === \"function\");\n if (functionMatchers.length) {\n let date = range.from;\n const totalDays = dateLib.differenceInCalendarDays(range.to, range.from);\n for (let i = 0; i <= totalDays; i++) {\n if (functionMatchers.some((matcher) => matcher(date))) {\n return true;\n }\n date = dateLib.addDays(date, 1);\n }\n }\n return false;\n}\n//# sourceMappingURL=rangeContainsModifiers.js.map"],"names":["rangeContainsModifiers","range","modifiers","dateLib","defaultDateLib","matchers","Array","isArray","nonFunctionMatchers","filter","matcher","nonFunctionMatchersResult","some","isDate","rangeIncludesDate","isDatesArray","date","isDateRange","from","to","rangeOverlaps","isDayOfWeekType","rangeContainsDayOfWeek","dayOfWeek","isDateInterval","isClosedInterval","isAfter","before","after","addDays","dateMatchModifiers","isDateAfterType","isDateBeforeType","functionMatchers","length","totalDays","differenceInCalendarDays","i"],"mappings":";;;;;;;AAgBA;;;;;;;;;;AAUM,SAAUA,sBAAsBA,CACpCC,KAA+B,EAC/BC,SAA8B,EAC9BC,OAAA,GAAmBC,cAAc,EAAA;AAEjC,EAAA,MAAMC,QAAQ,GAAGC,KAAK,CAACC,OAAO,CAACL,SAAS,CAAC,GAAGA,SAAS,GAAG,CAACA,SAAS,CAAC;AAEnE;AACA,EAAA,MAAMM,mBAAmB,GAAGH,QAAQ,CAACI,MAAM,CACxCC,OAAO,IAAK,OAAOA,OAAO,KAAK,UAAU,CAC3C;AAED,EAAA,MAAMC,yBAAyB,GAAGH,mBAAmB,CAAC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":[0]}
@@ -1,13 +1,17 @@
1
1
  import { defaultDateLib } from '../classes/DateLib.js';
2
2
 
3
3
  /**
4
- * Determines whether a given date is inside a specified date range.
4
+ * Checks if a given date is within a specified date range.
5
5
  *
6
6
  * @since 9.0.0
7
+ * @param range - The date range to check against.
8
+ * @param date - The date to check.
9
+ * @param excludeEnds - If `true`, the range's start and end dates are excluded.
10
+ * @param dateLib - The date utility library instance.
11
+ * @returns `true` if the date is within the range, otherwise `false`.
7
12
  * @group Utilities
8
13
  */
9
- function rangeIncludesDate(range, date, /** If `true`, the ends of the range are excluded. */
10
- excludeEnds = false, dateLib = defaultDateLib) {
14
+ function rangeIncludesDate(range, date, excludeEnds = false, dateLib = defaultDateLib) {
11
15
  let {
12
16
  from,
13
17
  to
@@ -1 +1 @@
1
- {"version":3,"file":"rangeIncludesDate.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/utils/rangeIncludesDate.js"],"sourcesContent":["import { defaultDateLib } from \"../classes/index.js\";\n/**\n * Determines whether a given date is inside a specified date range.\n *\n * @since 9.0.0\n * @group Utilities\n */\nexport function rangeIncludesDate(range, date, \n/** If `true`, the ends of the range are excluded. */\nexcludeEnds = false, dateLib = defaultDateLib) {\n let { from, to } = range;\n const { differenceInCalendarDays, isSameDay } = dateLib;\n if (from && to) {\n const isRangeInverted = differenceInCalendarDays(to, from) < 0;\n if (isRangeInverted) {\n [from, to] = [to, from];\n }\n const isInRange = differenceInCalendarDays(date, from) >= (excludeEnds ? 1 : 0) &&\n differenceInCalendarDays(to, date) >= (excludeEnds ? 1 : 0);\n return isInRange;\n }\n if (!excludeEnds && to) {\n return isSameDay(to, date);\n }\n if (!excludeEnds && from) {\n return isSameDay(from, date);\n }\n return false;\n}\n/**\n * @private\n * @deprecated Use {@link rangeIncludesDate} instead.\n */\nexport const isDateInRange = (range, date) => rangeIncludesDate(range, date, false, defaultDateLib);\n//# sourceMappingURL=rangeIncludesDate.js.map"],"names":["rangeIncludesDate","range","date","excludeEnds","dateLib","defaultDateLib","from","to","differenceInCalendarDays","isSameDay","isRangeInverted","isInRange"],"mappings":";;AAGA;;;;;;AAMM,SAAUA,iBAAiBA,CAC/BC,KAAgB,EAChBC,IAAU;AAEVC,WAAW,GAAG,KAAK,EACnBC,OAAO,GAAGC,cAAc,EAAA;EAExB,IAAI;IAAEC,IAAI;AAAEC,IAAAA;AAAE,GAAE,GAAGN,KAAK;EACxB,MAAM;IAAEO,wBAAwB;AAAEC,IAAAA;AAAS,GAAE,GAAGL,OAAO;EACvD,IAAIE,IAAI,IAAIC,EAAE,EAAE;IACd,MAAMG,eAAe,GAAGF,wBAAwB,CAACD,EAAE,EAAED,IAAI,CAAC,GAAG,CAAC;AAC9D,IAAA,IAAII,eAAe,EAAE;MACnB,CAACJ,IAAI,EAAEC,EAAE,CAAC,GAAG,CAACA,EAAE,EAAED,IAAI,CAAC;AACzB;AACA,IAAA,MAAMK,SAAS,GACbH,wBAAwB,CAACN,IAAI,EAAEI,IAAI,CAAC,KAAKH,WAAW,GAAG,CAAC,GAAG,CAAC,CAAC,IAC7DK,wBAAwB,CAACD,EAAE,EAAEL,IAAI,CAAC,KAAKC,WAAW,GAAG,CAAC,GAAG,CAAC,CAAC;AAC7D,IAAA,OAAOQ,SAAS;AAClB;AACA,EAAA,IAAI,CAACR,WAAW,IAAII,EAAE,EAAE;AACtB,IAAA,OAAOE,SAAS,CAACF,EAAE,EAAEL,IAAI,CAAC;AAC5B;AACA,EAAA,IAAI,CAACC,WAAW,IAAIG,IAAI,EAAE;AACxB,IAAA,OAAOG,SAAS,CAACH,IAAI,EAAEJ,IAAI,CAAC;AAC9B;AACA,EAAA,OAAO,KAAK;AACd;;;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"rangeIncludesDate.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/utils/rangeIncludesDate.js"],"sourcesContent":["import { defaultDateLib } from \"../classes/index.js\";\n/**\n * Checks if a given date is within a specified date range.\n *\n * @since 9.0.0\n * @param range - The date range to check against.\n * @param date - The date to check.\n * @param excludeEnds - If `true`, the range's start and end dates are excluded.\n * @param dateLib - The date utility library instance.\n * @returns `true` if the date is within the range, otherwise `false`.\n * @group Utilities\n */\nexport function rangeIncludesDate(range, date, excludeEnds = false, dateLib = defaultDateLib) {\n let { from, to } = range;\n const { differenceInCalendarDays, isSameDay } = dateLib;\n if (from && to) {\n const isRangeInverted = differenceInCalendarDays(to, from) < 0;\n if (isRangeInverted) {\n [from, to] = [to, from];\n }\n const isInRange = differenceInCalendarDays(date, from) >= (excludeEnds ? 1 : 0) &&\n differenceInCalendarDays(to, date) >= (excludeEnds ? 1 : 0);\n return isInRange;\n }\n if (!excludeEnds && to) {\n return isSameDay(to, date);\n }\n if (!excludeEnds && from) {\n return isSameDay(from, date);\n }\n return false;\n}\n/**\n * @private\n * @deprecated Use {@link rangeIncludesDate} instead.\n */\nexport const isDateInRange = (range, date) => rangeIncludesDate(range, date, false, defaultDateLib);\n//# sourceMappingURL=rangeIncludesDate.js.map"],"names":["rangeIncludesDate","range","date","excludeEnds","dateLib","defaultDateLib","from","to","differenceInCalendarDays","isSameDay","isRangeInverted","isInRange"],"mappings":";;AAGA;;;;;;;;;;;AAWM,SAAUA,iBAAiBA,CAC/BC,KAAgB,EAChBC,IAAU,EACVC,WAAW,GAAG,KAAK,EACnBC,OAAO,GAAGC,cAAc,EAAA;EAExB,IAAI;IAAEC,IAAI;AAAEC,IAAAA;AAAE,GAAE,GAAGN,KAAK;EACxB,MAAM;IAAEO,wBAAwB;AAAEC,IAAAA;AAAS,GAAE,GAAGL,OAAO;EACvD,IAAIE,IAAI,IAAIC,EAAE,EAAE;IACd,MAAMG,eAAe,GAAGF,wBAAwB,CAACD,EAAE,EAAED,IAAI,CAAC,GAAG,CAAC;AAC9D,IAAA,IAAII,eAAe,EAAE;MACnB,CAACJ,IAAI,EAAEC,EAAE,CAAC,GAAG,CAACA,EAAE,EAAED,IAAI,CAAC;AACzB;AACA,IAAA,MAAMK,SAAS,GACbH,wBAAwB,CAACN,IAAI,EAAEI,IAAI,CAAC,KAAKH,WAAW,GAAG,CAAC,GAAG,CAAC,CAAC,IAC7DK,wBAAwB,CAACD,EAAE,EAAEL,IAAI,CAAC,KAAKC,WAAW,GAAG,CAAC,GAAG,CAAC,CAAC;AAC7D,IAAA,OAAOQ,SAAS;AAClB;AACA,EAAA,IAAI,CAACR,WAAW,IAAII,EAAE,EAAE;AACtB,IAAA,OAAOE,SAAS,CAACF,EAAE,EAAEL,IAAI,CAAC;AAC5B;AACA,EAAA,IAAI,CAACC,WAAW,IAAIG,IAAI,EAAE;AACxB,IAAA,OAAOG,SAAS,CAACH,IAAI,EAAEJ,IAAI,CAAC;AAC9B;AACA,EAAA,OAAO,KAAK;AACd;;;;","x_google_ignoreList":[0]}
@@ -1,10 +1,14 @@
1
- import { defaultDateLib } from '../classes/DateLib.js';
2
1
  import { rangeIncludesDate } from './rangeIncludesDate.js';
2
+ import { defaultDateLib } from '../classes/DateLib.js';
3
3
 
4
4
  /**
5
- * Determines whether a given range overlaps with another range.
5
+ * Determines if two date ranges overlap.
6
6
  *
7
7
  * @since 9.2.2
8
+ * @param rangeLeft - The first date range.
9
+ * @param rangeRight - The second date range.
10
+ * @param dateLib - The date utility library instance.
11
+ * @returns `true` if the ranges overlap, otherwise `false`.
8
12
  * @group Utilities
9
13
  */
10
14
  function rangeOverlaps(rangeLeft, rangeRight, dateLib = defaultDateLib) {
@@ -1 +1 @@
1
- {"version":3,"file":"rangeOverlaps.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/utils/rangeOverlaps.js"],"sourcesContent":["import { defaultDateLib } from \"../classes/index.js\";\nimport { rangeIncludesDate } from \"./rangeIncludesDate.js\";\n/**\n * Determines whether a given range overlaps with another range.\n *\n * @since 9.2.2\n * @group Utilities\n */\nexport function rangeOverlaps(rangeLeft, rangeRight, dateLib = defaultDateLib) {\n return (rangeIncludesDate(rangeLeft, rangeRight.from, false, dateLib) ||\n rangeIncludesDate(rangeLeft, rangeRight.to, false, dateLib) ||\n rangeIncludesDate(rangeRight, rangeLeft.from, false, dateLib) ||\n rangeIncludesDate(rangeRight, rangeLeft.to, false, dateLib));\n}\n//# sourceMappingURL=rangeOverlaps.js.map"],"names":["rangeOverlaps","rangeLeft","rangeRight","dateLib","defaultDateLib","rangeIncludesDate","from","to"],"mappings":";;;AAIA;;;;;;AAMM,SAAUA,aAAaA,CAC3BC,SAAmC,EACnCC,UAAoC,EACpCC,OAAO,GAAGC,cAAc,EAAA;EAExB,OACEC,iBAAiB,CAACJ,SAAS,EAAEC,UAAU,CAACI,IAAI,EAAE,KAAK,EAAEH,OAAO,CAAC,IAC7DE,iBAAiB,CAACJ,SAAS,EAAEC,UAAU,CAACK,EAAE,EAAE,KAAK,EAAEJ,OAAO,CAAC,IAC3DE,iBAAiB,CAACH,UAAU,EAAED,SAAS,CAACK,IAAI,EAAE,KAAK,EAAEH,OAAO,CAAC,IAC7DE,iBAAiB,CAACH,UAAU,EAAED,SAAS,CAACM,EAAE,EAAE,KAAK,EAAEJ,OAAO,CAAC;AAE/D;;;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"rangeOverlaps.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/utils/rangeOverlaps.js"],"sourcesContent":["import { defaultDateLib } from \"../classes/index.js\";\nimport { rangeIncludesDate } from \"./rangeIncludesDate.js\";\n/**\n * Determines if two date ranges overlap.\n *\n * @since 9.2.2\n * @param rangeLeft - The first date range.\n * @param rangeRight - The second date range.\n * @param dateLib - The date utility library instance.\n * @returns `true` if the ranges overlap, otherwise `false`.\n * @group Utilities\n */\nexport function rangeOverlaps(rangeLeft, rangeRight, dateLib = defaultDateLib) {\n return (rangeIncludesDate(rangeLeft, rangeRight.from, false, dateLib) ||\n rangeIncludesDate(rangeLeft, rangeRight.to, false, dateLib) ||\n rangeIncludesDate(rangeRight, rangeLeft.from, false, dateLib) ||\n rangeIncludesDate(rangeRight, rangeLeft.to, false, dateLib));\n}\n//# sourceMappingURL=rangeOverlaps.js.map"],"names":["rangeOverlaps","rangeLeft","rangeRight","dateLib","defaultDateLib","rangeIncludesDate","from","to"],"mappings":";;;AAIA;;;;;;;;;;AAUM,SAAUA,aAAaA,CAC3BC,SAAmC,EACnCC,UAAoC,EACpCC,OAAO,GAAGC,cAAc,EAAA;EAExB,OACEC,iBAAiB,CAACJ,SAAS,EAAEC,UAAU,CAACI,IAAI,EAAE,KAAK,EAAEH,OAAO,CAAC,IAC7DE,iBAAiB,CAACJ,SAAS,EAAEC,UAAU,CAACK,EAAE,EAAE,KAAK,EAAEJ,OAAO,CAAC,IAC3DE,iBAAiB,CAACH,UAAU,EAAED,SAAS,CAACK,IAAI,EAAE,KAAK,EAAEH,OAAO,CAAC,IAC7DE,iBAAiB,CAACH,UAAU,EAAED,SAAS,CAACM,EAAE,EAAE,KAAK,EAAEJ,OAAO,CAAC;AAE/D;;;;","x_google_ignoreList":[0]}
@@ -1,47 +1,60 @@
1
1
  /**
2
- * Returns true if `matcher` is of type {@link DateInterval}.
2
+ * Checks if the given value is of type {@link DateInterval}.
3
3
  *
4
+ * @param matcher - The value to check.
5
+ * @returns `true` if the value is a {@link DateInterval}, otherwise `false`.
4
6
  * @group Utilities
5
7
  */
6
8
  function isDateInterval(matcher) {
7
9
  return Boolean(matcher && typeof matcher === "object" && "before" in matcher && "after" in matcher);
8
10
  }
9
11
  /**
10
- * Returns true if `value` is a {@link DateRange} type.
12
+ * Checks if the given value is of type {@link DateRange}.
11
13
  *
14
+ * @param value - The value to check.
15
+ * @returns `true` if the value is a {@link DateRange}, otherwise `false`.
12
16
  * @group Utilities
13
17
  */
14
18
  function isDateRange(value) {
15
19
  return Boolean(value && typeof value === "object" && "from" in value);
16
20
  }
17
21
  /**
18
- * Returns true if `value` is of type {@link DateAfter}.
22
+ * Checks if the given value is of type {@link DateAfter}.
19
23
  *
24
+ * @param value - The value to check.
25
+ * @returns `true` if the value is a {@link DateAfter}, otherwise `false`.
20
26
  * @group Utilities
21
27
  */
22
28
  function isDateAfterType(value) {
23
29
  return Boolean(value && typeof value === "object" && "after" in value);
24
30
  }
25
31
  /**
26
- * Returns true if `value` is of type {@link DateBefore}.
32
+ * Checks if the given value is of type {@link DateBefore}.
27
33
  *
34
+ * @param value - The value to check.
35
+ * @returns `true` if the value is a {@link DateBefore}, otherwise `false`.
28
36
  * @group Utilities
29
37
  */
30
38
  function isDateBeforeType(value) {
31
39
  return Boolean(value && typeof value === "object" && "before" in value);
32
40
  }
33
41
  /**
34
- * Returns true if `value` is a {@link DayOfWeek} type.
42
+ * Checks if the given value is of type {@link DayOfWeek}.
35
43
  *
44
+ * @param value - The value to check.
45
+ * @returns `true` if the value is a {@link DayOfWeek}, otherwise `false`.
36
46
  * @group Utilities
37
47
  */
38
48
  function isDayOfWeekType(value) {
39
49
  return Boolean(value && typeof value === "object" && "dayOfWeek" in value);
40
50
  }
41
51
  /**
42
- * Returns true if `value` is an array of valid dates.
52
+ * Checks if the given value is an array of valid dates.
43
53
  *
44
54
  * @private
55
+ * @param value - The value to check.
56
+ * @param dateLib - The date utility library instance.
57
+ * @returns `true` if the value is an array of valid dates, otherwise `false`.
45
58
  */
46
59
  function isDatesArray(value, dateLib) {
47
60
  return Array.isArray(value) && value.every(dateLib.isDate);
@@ -1 +1 @@
1
- {"version":3,"file":"typeguards.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/utils/typeguards.js"],"sourcesContent":["/**\n * Returns true if `matcher` is of type {@link DateInterval}.\n *\n * @group Utilities\n */\nexport function isDateInterval(matcher) {\n return Boolean(matcher &&\n typeof matcher === \"object\" &&\n \"before\" in matcher &&\n \"after\" in matcher);\n}\n/**\n * Returns true if `value` is a {@link DateRange} type.\n *\n * @group Utilities\n */\nexport function isDateRange(value) {\n return Boolean(value && typeof value === \"object\" && \"from\" in value);\n}\n/**\n * Returns true if `value` is of type {@link DateAfter}.\n *\n * @group Utilities\n */\nexport function isDateAfterType(value) {\n return Boolean(value && typeof value === \"object\" && \"after\" in value);\n}\n/**\n * Returns true if `value` is of type {@link DateBefore}.\n *\n * @group Utilities\n */\nexport function isDateBeforeType(value) {\n return Boolean(value && typeof value === \"object\" && \"before\" in value);\n}\n/**\n * Returns true if `value` is a {@link DayOfWeek} type.\n *\n * @group Utilities\n */\nexport function isDayOfWeekType(value) {\n return Boolean(value && typeof value === \"object\" && \"dayOfWeek\" in value);\n}\n/**\n * Returns true if `value` is an array of valid dates.\n *\n * @private\n */\nexport function isDatesArray(value, dateLib) {\n return Array.isArray(value) && value.every(dateLib.isDate);\n}\n//# sourceMappingURL=typeguards.js.map"],"names":["isDateInterval","matcher","Boolean","isDateRange","value","isDateAfterType","isDateBeforeType","isDayOfWeekType","isDatesArray","dateLib","Array","isArray","every","isDate"],"mappings":"AASA;;;;;AAKM,SAAUA,cAAcA,CAACC,OAAgB,EAAA;AAC7C,EAAA,OAAOC,OAAO,CACZD,OAAO,IACL,OAAOA,OAAO,KAAK,QAAQ,IAC3B,QAAQ,IAAIA,OAAO,IACnB,OAAO,IAAIA,OAAO,CACrB;AACH;AAEA;;;;;AAKM,SAAUE,WAAWA,CAACC,KAAc,EAAA;AACxC,EAAA,OAAOF,OAAO,CAACE,KAAK,IAAI,OAAOA,KAAK,KAAK,QAAQ,IAAI,MAAM,IAAIA,KAAK,CAAC;AACvE;AAEA;;;;;AAKM,SAAUC,eAAeA,CAACD,KAAc,EAAA;AAC5C,EAAA,OAAOF,OAAO,CAACE,KAAK,IAAI,OAAOA,KAAK,KAAK,QAAQ,IAAI,OAAO,IAAIA,KAAK,CAAC;AACxE;AAEA;;;;;AAKM,SAAUE,gBAAgBA,CAACF,KAAc,EAAA;AAC7C,EAAA,OAAOF,OAAO,CAACE,KAAK,IAAI,OAAOA,KAAK,KAAK,QAAQ,IAAI,QAAQ,IAAIA,KAAK,CAAC;AACzE;AAEA;;;;;AAKM,SAAUG,eAAeA,CAACH,KAAc,EAAA;AAC5C,EAAA,OAAOF,OAAO,CAACE,KAAK,IAAI,OAAOA,KAAK,KAAK,QAAQ,IAAI,WAAW,IAAIA,KAAK,CAAC;AAC5E;AAEA;;;;;AAKM,SAAUI,YAAYA,CAC1BJ,KAAc,EACdK,OAAgB,EAAA;AAEhB,EAAA,OAAOC,KAAK,CAACC,OAAO,CAACP,KAAK,CAAC,IAAIA,KAAK,CAACQ,KAAK,CAACH,OAAO,CAACI,MAAM,CAAC;AAC5D;;;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"typeguards.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/utils/typeguards.js"],"sourcesContent":["/**\n * Checks if the given value is of type {@link DateInterval}.\n *\n * @param matcher - The value to check.\n * @returns `true` if the value is a {@link DateInterval}, otherwise `false`.\n * @group Utilities\n */\nexport function isDateInterval(matcher) {\n return Boolean(matcher &&\n typeof matcher === \"object\" &&\n \"before\" in matcher &&\n \"after\" in matcher);\n}\n/**\n * Checks if the given value is of type {@link DateRange}.\n *\n * @param value - The value to check.\n * @returns `true` if the value is a {@link DateRange}, otherwise `false`.\n * @group Utilities\n */\nexport function isDateRange(value) {\n return Boolean(value && typeof value === \"object\" && \"from\" in value);\n}\n/**\n * Checks if the given value is of type {@link DateAfter}.\n *\n * @param value - The value to check.\n * @returns `true` if the value is a {@link DateAfter}, otherwise `false`.\n * @group Utilities\n */\nexport function isDateAfterType(value) {\n return Boolean(value && typeof value === \"object\" && \"after\" in value);\n}\n/**\n * Checks if the given value is of type {@link DateBefore}.\n *\n * @param value - The value to check.\n * @returns `true` if the value is a {@link DateBefore}, otherwise `false`.\n * @group Utilities\n */\nexport function isDateBeforeType(value) {\n return Boolean(value && typeof value === \"object\" && \"before\" in value);\n}\n/**\n * Checks if the given value is of type {@link DayOfWeek}.\n *\n * @param value - The value to check.\n * @returns `true` if the value is a {@link DayOfWeek}, otherwise `false`.\n * @group Utilities\n */\nexport function isDayOfWeekType(value) {\n return Boolean(value && typeof value === \"object\" && \"dayOfWeek\" in value);\n}\n/**\n * Checks if the given value is an array of valid dates.\n *\n * @private\n * @param value - The value to check.\n * @param dateLib - The date utility library instance.\n * @returns `true` if the value is an array of valid dates, otherwise `false`.\n */\nexport function isDatesArray(value, dateLib) {\n return Array.isArray(value) && value.every(dateLib.isDate);\n}\n//# sourceMappingURL=typeguards.js.map"],"names":["isDateInterval","matcher","Boolean","isDateRange","value","isDateAfterType","isDateBeforeType","isDayOfWeekType","isDatesArray","dateLib","Array","isArray","every","isDate"],"mappings":"AASA;;;;;;;AAOM,SAAUA,cAAcA,CAACC,OAAgB,EAAA;AAC7C,EAAA,OAAOC,OAAO,CACZD,OAAO,IACL,OAAOA,OAAO,KAAK,QAAQ,IAC3B,QAAQ,IAAIA,OAAO,IACnB,OAAO,IAAIA,OAAO,CACrB;AACH;AAEA;;;;;;;AAOM,SAAUE,WAAWA,CAACC,KAAc,EAAA;AACxC,EAAA,OAAOF,OAAO,CAACE,KAAK,IAAI,OAAOA,KAAK,KAAK,QAAQ,IAAI,MAAM,IAAIA,KAAK,CAAC;AACvE;AAEA;;;;;;;AAOM,SAAUC,eAAeA,CAACD,KAAc,EAAA;AAC5C,EAAA,OAAOF,OAAO,CAACE,KAAK,IAAI,OAAOA,KAAK,KAAK,QAAQ,IAAI,OAAO,IAAIA,KAAK,CAAC;AACxE;AAEA;;;;;;;AAOM,SAAUE,gBAAgBA,CAACF,KAAc,EAAA;AAC7C,EAAA,OAAOF,OAAO,CAACE,KAAK,IAAI,OAAOA,KAAK,KAAK,QAAQ,IAAI,QAAQ,IAAIA,KAAK,CAAC;AACzE;AAEA;;;;;;;AAOM,SAAUG,eAAeA,CAACH,KAAc,EAAA;AAC5C,EAAA,OAAOF,OAAO,CAACE,KAAK,IAAI,OAAOA,KAAK,KAAK,QAAQ,IAAI,WAAW,IAAIA,KAAK,CAAC;AAC5E;AAEA;;;;;;;;AAQM,SAAUI,YAAYA,CAC1BJ,KAAc,EACdK,OAAgB,EAAA;AAEhB,EAAA,OAAOC,KAAK,CAACC,OAAO,CAACP,KAAK,CAAC,IAAIA,KAAK,CAACQ,KAAK,CAACH,OAAO,CAACI,MAAM,CAAC;AAC5D;;;;","x_google_ignoreList":[0]}
@@ -1,7 +1,7 @@
1
1
  import { __module as reactDraftWysiwyg } from '../../../_virtual/react-draft-wysiwyg2.js';
2
2
  import React__default from 'react';
3
3
  import { __require as requireDraft } from '../../draft-js/lib/Draft.js';
4
- import require$$2 from '../../../_virtual/immutable.es.js';
4
+ import { __require as requireImmutable } from '../../immutable/dist/immutable.js';
5
5
 
6
6
  var hasRequiredReactDraftWysiwyg;
7
7
  function requireReactDraftWysiwyg() {
@@ -9,7 +9,7 @@ function requireReactDraftWysiwyg() {
9
9
  hasRequiredReactDraftWysiwyg = 1;
10
10
  (function (module, exports) {
11
11
  !function (t, e) {
12
- module.exports = e(React__default, requireDraft(), require$$2) ;
12
+ module.exports = e(React__default, requireDraft(), requireImmutable()) ;
13
13
  }(window, function (n, o, r) {
14
14
  return a = {}, i.m = c = [function (t, e, n) {
15
15
  t.exports = n(10)();