pixel-react 1.13.89 → 1.13.90

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 (280) hide show
  1. package/README.md +75 -75
  2. package/lib/_virtual/_commonjsHelpers.js +26 -1
  3. package/lib/_virtual/_commonjsHelpers.js.map +1 -1
  4. package/lib/_virtual/immutable.es.js +7 -0
  5. package/lib/_virtual/immutable.es.js.map +1 -0
  6. package/lib/_virtual/index10.js +2 -2
  7. package/lib/_virtual/index11.js +2 -2
  8. package/lib/_virtual/index14.js +4 -0
  9. package/lib/_virtual/index14.js.map +1 -0
  10. package/lib/_virtual/react-is.development2.js +4 -0
  11. package/lib/_virtual/react-is.development2.js.map +1 -0
  12. package/lib/_virtual/react-is.production.min2.js +4 -0
  13. package/lib/_virtual/react-is.production.min2.js.map +1 -0
  14. package/lib/assets/icons/spinner.svg.js +1 -1
  15. package/lib/assets/icons/spinner.svg.js.map +1 -1
  16. package/lib/components/DatePicker/DatePicker.js +4 -1
  17. package/lib/components/DatePicker/DatePicker.js.map +1 -1
  18. package/lib/components/Drawer/Drawer.js +2 -1
  19. package/lib/components/Drawer/Drawer.js.map +1 -1
  20. package/lib/components/Excel/ExcelFile/ExcelFile.d.ts +1 -0
  21. package/lib/components/Excel/ExcelFile/ExcelFile.js +4 -2
  22. package/lib/components/Excel/ExcelFile/ExcelFile.js.map +1 -1
  23. package/lib/components/Excel/ExcelFile/ExcelFileComponents/Spreadsheet.d.ts +1 -0
  24. package/lib/components/Excel/ExcelFile/ExcelFileComponents/Spreadsheet.js +4 -3
  25. package/lib/components/Excel/ExcelFile/ExcelFileComponents/Spreadsheet.js.map +1 -1
  26. package/lib/index.cjs +7029 -2517
  27. package/lib/index.cjs.map +1 -1
  28. package/lib/index.d.ts +2 -2
  29. package/lib/node_modules/draft-js/lib/AtomicBlockUtils.js +1 -1
  30. package/lib/node_modules/draft-js/lib/BlockMapBuilder.js +1 -1
  31. package/lib/node_modules/draft-js/lib/BlockTree.js +1 -1
  32. package/lib/node_modules/draft-js/lib/CharacterMetadata.js +1 -1
  33. package/lib/node_modules/draft-js/lib/CompositeDraftDecorator.js +1 -1
  34. package/lib/node_modules/draft-js/lib/ContentBlock.js +1 -1
  35. package/lib/node_modules/draft-js/lib/ContentBlockNode.js +1 -1
  36. package/lib/node_modules/draft-js/lib/ContentState.js +1 -1
  37. package/lib/node_modules/draft-js/lib/ContentStateInlineStyle.js +1 -1
  38. package/lib/node_modules/draft-js/lib/DOMObserver.js +1 -1
  39. package/lib/node_modules/draft-js/lib/DefaultDraftBlockRenderMap.js +1 -1
  40. package/lib/node_modules/draft-js/lib/DraftEditorBlockNode.react.js +1 -1
  41. package/lib/node_modules/draft-js/lib/DraftEditorNode.react.js +1 -1
  42. package/lib/node_modules/draft-js/lib/DraftEntity.js +1 -1
  43. package/lib/node_modules/draft-js/lib/DraftEntityInstance.js +1 -1
  44. package/lib/node_modules/draft-js/lib/DraftModifier.js +1 -1
  45. package/lib/node_modules/draft-js/lib/DraftPasteProcessor.js +1 -1
  46. package/lib/node_modules/draft-js/lib/EditorBidiService.js +1 -1
  47. package/lib/node_modules/draft-js/lib/EditorState.js +1 -1
  48. package/lib/node_modules/draft-js/lib/SelectionState.js +1 -1
  49. package/lib/node_modules/draft-js/lib/applyEntityToContentState.js +1 -1
  50. package/lib/node_modules/draft-js/lib/convertFromHTMLToContentBlocks.js +1 -1
  51. package/lib/node_modules/draft-js/lib/convertFromRawToDraftState.js +1 -1
  52. package/lib/node_modules/draft-js/lib/createCharacterList.js +1 -1
  53. package/lib/node_modules/draft-js/lib/decodeInlineStyleRanges.js +1 -1
  54. package/lib/node_modules/draft-js/lib/insertFragmentIntoContentState.js +1 -1
  55. package/lib/node_modules/draft-js/lib/insertTextIntoContentState.js +1 -1
  56. package/lib/node_modules/draft-js/lib/modifyBlockForContentState.js +1 -1
  57. package/lib/node_modules/draft-js/lib/moveBlockInContentState.js +1 -1
  58. package/lib/node_modules/draft-js/lib/randomizeBlockMapKeys.js +1 -1
  59. package/lib/node_modules/draft-js/lib/removeRangeFromContentState.js +1 -1
  60. package/lib/node_modules/draft-js/lib/splitBlockInContentState.js +1 -1
  61. package/lib/node_modules/{immutable → draft-js/node_modules/immutable}/dist/immutable.js +1 -1
  62. package/lib/node_modules/draft-js/node_modules/immutable/dist/immutable.js.map +1 -0
  63. package/lib/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js +1 -1
  64. package/lib/node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js +175 -0
  65. package/lib/node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js.map +1 -0
  66. package/lib/node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js +125 -0
  67. package/lib/node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js.map +1 -0
  68. package/lib/node_modules/{react-is → hoist-non-react-statics/node_modules/react-is}/index.js +1 -1
  69. package/lib/node_modules/hoist-non-react-statics/node_modules/react-is/index.js.map +1 -0
  70. package/lib/node_modules/immutable/dist/immutable.es.js +4829 -0
  71. package/lib/node_modules/immutable/dist/immutable.es.js.map +1 -0
  72. package/lib/node_modules/js-beautify/js/src/css/beautifier.js +1 -1
  73. package/lib/node_modules/js-beautify/js/src/css/index.js +1 -1
  74. package/lib/node_modules/js-beautify/js/src/css/options.js +1 -1
  75. package/lib/node_modules/js-beautify/js/src/html/beautifier.js +1 -1
  76. package/lib/node_modules/js-beautify/js/src/html/index.js +1 -1
  77. package/lib/node_modules/js-beautify/js/src/html/options.js +1 -1
  78. package/lib/node_modules/libphonenumber-js/metadata.min.json.js +12 -12
  79. package/lib/node_modules/libphonenumber-js/metadata.min.json.js.map +1 -1
  80. package/lib/node_modules/prop-types/factoryWithTypeCheckers.js +1 -1
  81. package/lib/node_modules/prop-types/index.js +1 -1
  82. package/lib/node_modules/{react-is → prop-types/node_modules/react-is}/cjs/react-is.development.js +1 -1
  83. package/lib/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js.map +1 -0
  84. package/lib/node_modules/{react-is → prop-types/node_modules/react-is}/cjs/react-is.production.min.js +1 -1
  85. package/lib/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js.map +1 -0
  86. package/lib/node_modules/prop-types/node_modules/react-is/index.js +18 -0
  87. package/lib/node_modules/prop-types/node_modules/react-is/index.js.map +1 -0
  88. package/lib/node_modules/react-day-picker/dist/esm/DayPicker.js +17 -112
  89. package/lib/node_modules/react-day-picker/dist/esm/DayPicker.js.map +1 -1
  90. package/lib/node_modules/react-day-picker/dist/esm/UI.js +9 -31
  91. package/lib/node_modules/react-day-picker/dist/esm/UI.js.map +1 -1
  92. package/lib/node_modules/react-day-picker/dist/esm/classes/CalendarDay.js +6 -9
  93. package/lib/node_modules/react-day-picker/dist/esm/classes/CalendarDay.js.map +1 -1
  94. package/lib/node_modules/react-day-picker/dist/esm/classes/CalendarMonth.js +1 -6
  95. package/lib/node_modules/react-day-picker/dist/esm/classes/CalendarMonth.js.map +1 -1
  96. package/lib/node_modules/react-day-picker/dist/esm/classes/CalendarWeek.js +1 -5
  97. package/lib/node_modules/react-day-picker/dist/esm/classes/CalendarWeek.js.map +1 -1
  98. package/lib/node_modules/react-day-picker/dist/esm/classes/DateLib.js +51 -55
  99. package/lib/node_modules/react-day-picker/dist/esm/classes/DateLib.js.map +1 -1
  100. package/lib/node_modules/react-day-picker/dist/esm/components/Chevron.js +1 -1
  101. package/lib/node_modules/react-day-picker/dist/esm/components/Chevron.js.map +1 -1
  102. package/lib/node_modules/react-day-picker/dist/esm/components/Day.js +4 -4
  103. package/lib/node_modules/react-day-picker/dist/esm/components/Day.js.map +1 -1
  104. package/lib/node_modules/react-day-picker/dist/esm/components/DayButton.js +1 -1
  105. package/lib/node_modules/react-day-picker/dist/esm/components/DayButton.js.map +1 -1
  106. package/lib/node_modules/react-day-picker/dist/esm/components/Dropdown.js +1 -1
  107. package/lib/node_modules/react-day-picker/dist/esm/components/Dropdown.js.map +1 -1
  108. package/lib/node_modules/react-day-picker/dist/esm/components/DropdownNav.js +1 -1
  109. package/lib/node_modules/react-day-picker/dist/esm/components/DropdownNav.js.map +1 -1
  110. package/lib/node_modules/react-day-picker/dist/esm/components/Footer.js +1 -1
  111. package/lib/node_modules/react-day-picker/dist/esm/components/Footer.js.map +1 -1
  112. package/lib/node_modules/react-day-picker/dist/esm/components/Month.js +1 -1
  113. package/lib/node_modules/react-day-picker/dist/esm/components/Month.js.map +1 -1
  114. package/lib/node_modules/react-day-picker/dist/esm/components/MonthCaption.js +1 -1
  115. package/lib/node_modules/react-day-picker/dist/esm/components/MonthCaption.js.map +1 -1
  116. package/lib/node_modules/react-day-picker/dist/esm/components/MonthGrid.js +1 -1
  117. package/lib/node_modules/react-day-picker/dist/esm/components/MonthGrid.js.map +1 -1
  118. package/lib/node_modules/react-day-picker/dist/esm/components/Months.js +1 -1
  119. package/lib/node_modules/react-day-picker/dist/esm/components/Months.js.map +1 -1
  120. package/lib/node_modules/react-day-picker/dist/esm/components/MonthsDropdown.js +1 -1
  121. package/lib/node_modules/react-day-picker/dist/esm/components/MonthsDropdown.js.map +1 -1
  122. package/lib/node_modules/react-day-picker/dist/esm/components/Nav.js +6 -16
  123. package/lib/node_modules/react-day-picker/dist/esm/components/Nav.js.map +1 -1
  124. package/lib/node_modules/react-day-picker/dist/esm/components/NextMonthButton.js +1 -1
  125. package/lib/node_modules/react-day-picker/dist/esm/components/NextMonthButton.js.map +1 -1
  126. package/lib/node_modules/react-day-picker/dist/esm/components/Option.js +1 -1
  127. package/lib/node_modules/react-day-picker/dist/esm/components/Option.js.map +1 -1
  128. package/lib/node_modules/react-day-picker/dist/esm/components/PreviousMonthButton.js +1 -1
  129. package/lib/node_modules/react-day-picker/dist/esm/components/PreviousMonthButton.js.map +1 -1
  130. package/lib/node_modules/react-day-picker/dist/esm/components/Root.js +2 -7
  131. package/lib/node_modules/react-day-picker/dist/esm/components/Root.js.map +1 -1
  132. package/lib/node_modules/react-day-picker/dist/esm/components/Select.js +1 -1
  133. package/lib/node_modules/react-day-picker/dist/esm/components/Select.js.map +1 -1
  134. package/lib/node_modules/react-day-picker/dist/esm/components/Week.js +1 -1
  135. package/lib/node_modules/react-day-picker/dist/esm/components/Week.js.map +1 -1
  136. package/lib/node_modules/react-day-picker/dist/esm/components/WeekNumber.js +1 -1
  137. package/lib/node_modules/react-day-picker/dist/esm/components/WeekNumber.js.map +1 -1
  138. package/lib/node_modules/react-day-picker/dist/esm/components/WeekNumberHeader.js +1 -1
  139. package/lib/node_modules/react-day-picker/dist/esm/components/WeekNumberHeader.js.map +1 -1
  140. package/lib/node_modules/react-day-picker/dist/esm/components/Weekday.js +1 -1
  141. package/lib/node_modules/react-day-picker/dist/esm/components/Weekday.js.map +1 -1
  142. package/lib/node_modules/react-day-picker/dist/esm/components/Weekdays.js +1 -1
  143. package/lib/node_modules/react-day-picker/dist/esm/components/Weekdays.js.map +1 -1
  144. package/lib/node_modules/react-day-picker/dist/esm/components/Weeks.js +1 -1
  145. package/lib/node_modules/react-day-picker/dist/esm/components/Weeks.js.map +1 -1
  146. package/lib/node_modules/react-day-picker/dist/esm/components/YearsDropdown.js +1 -1
  147. package/lib/node_modules/react-day-picker/dist/esm/components/YearsDropdown.js.map +1 -1
  148. package/lib/node_modules/react-day-picker/dist/esm/formatters/formatCaption.js +2 -7
  149. package/lib/node_modules/react-day-picker/dist/esm/formatters/formatCaption.js.map +1 -1
  150. package/lib/node_modules/react-day-picker/dist/esm/formatters/formatDay.js +2 -7
  151. package/lib/node_modules/react-day-picker/dist/esm/formatters/formatDay.js.map +1 -1
  152. package/lib/node_modules/react-day-picker/dist/esm/formatters/formatMonthDropdown.js +2 -6
  153. package/lib/node_modules/react-day-picker/dist/esm/formatters/formatMonthDropdown.js.map +1 -1
  154. package/lib/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumber.js +5 -11
  155. package/lib/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumber.js.map +1 -1
  156. package/lib/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumberHeader.js +2 -3
  157. package/lib/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumberHeader.js.map +1 -1
  158. package/lib/node_modules/react-day-picker/dist/esm/formatters/formatWeekdayName.js +2 -7
  159. package/lib/node_modules/react-day-picker/dist/esm/formatters/formatWeekdayName.js.map +1 -1
  160. package/lib/node_modules/react-day-picker/dist/esm/formatters/formatYearDropdown.js +1 -5
  161. package/lib/node_modules/react-day-picker/dist/esm/formatters/formatYearDropdown.js.map +1 -1
  162. package/lib/node_modules/react-day-picker/dist/esm/helpers/calculateFocusTarget.js +19 -46
  163. package/lib/node_modules/react-day-picker/dist/esm/helpers/calculateFocusTarget.js.map +1 -1
  164. package/lib/node_modules/react-day-picker/dist/esm/helpers/endOfBroadcastWeek.js +1 -7
  165. package/lib/node_modules/react-day-picker/dist/esm/helpers/endOfBroadcastWeek.js.map +1 -1
  166. package/lib/node_modules/react-day-picker/dist/esm/helpers/getBroadcastWeeksInMonth.js +1 -8
  167. package/lib/node_modules/react-day-picker/dist/esm/helpers/getBroadcastWeeksInMonth.js.map +1 -1
  168. package/lib/node_modules/react-day-picker/dist/esm/helpers/getClassNamesForModifiers.js +0 -12
  169. package/lib/node_modules/react-day-picker/dist/esm/helpers/getClassNamesForModifiers.js.map +1 -1
  170. package/lib/node_modules/react-day-picker/dist/esm/helpers/getComponents.js +0 -10
  171. package/lib/node_modules/react-day-picker/dist/esm/helpers/getComponents.js.map +1 -1
  172. package/lib/node_modules/react-day-picker/dist/esm/helpers/getDataAttributes.js +2 -11
  173. package/lib/node_modules/react-day-picker/dist/esm/helpers/getDataAttributes.js.map +1 -1
  174. package/lib/node_modules/react-day-picker/dist/esm/helpers/getDates.js +2 -13
  175. package/lib/node_modules/react-day-picker/dist/esm/helpers/getDates.js.map +1 -1
  176. package/lib/node_modules/react-day-picker/dist/esm/helpers/getDays.js +1 -4
  177. package/lib/node_modules/react-day-picker/dist/esm/helpers/getDays.js.map +1 -1
  178. package/lib/node_modules/react-day-picker/dist/esm/helpers/getDefaultClassNames.js +2 -9
  179. package/lib/node_modules/react-day-picker/dist/esm/helpers/getDefaultClassNames.js.map +1 -1
  180. package/lib/node_modules/react-day-picker/dist/esm/helpers/getDisplayMonths.js +0 -10
  181. package/lib/node_modules/react-day-picker/dist/esm/helpers/getDisplayMonths.js.map +1 -1
  182. package/lib/node_modules/react-day-picker/dist/esm/helpers/getFocusableDate.js +2 -17
  183. package/lib/node_modules/react-day-picker/dist/esm/helpers/getFocusableDate.js.map +1 -1
  184. package/lib/node_modules/react-day-picker/dist/esm/helpers/getFormatters.js +1 -7
  185. package/lib/node_modules/react-day-picker/dist/esm/helpers/getFormatters.js.map +1 -1
  186. package/lib/node_modules/react-day-picker/dist/esm/helpers/getInitialMonth.js +3 -13
  187. package/lib/node_modules/react-day-picker/dist/esm/helpers/getInitialMonth.js.map +1 -1
  188. package/lib/node_modules/react-day-picker/dist/esm/helpers/getMonthOptions.js +1 -15
  189. package/lib/node_modules/react-day-picker/dist/esm/helpers/getMonthOptions.js.map +1 -1
  190. package/lib/node_modules/react-day-picker/dist/esm/helpers/getMonths.js +8 -17
  191. package/lib/node_modules/react-day-picker/dist/esm/helpers/getMonths.js.map +1 -1
  192. package/lib/node_modules/react-day-picker/dist/esm/helpers/getNavMonth.js +1 -7
  193. package/lib/node_modules/react-day-picker/dist/esm/helpers/getNavMonth.js.map +1 -1
  194. package/lib/node_modules/react-day-picker/dist/esm/helpers/getNextFocus.js +7 -20
  195. package/lib/node_modules/react-day-picker/dist/esm/helpers/getNextFocus.js.map +1 -1
  196. package/lib/node_modules/react-day-picker/dist/esm/helpers/getNextMonth.js +6 -13
  197. package/lib/node_modules/react-day-picker/dist/esm/helpers/getNextMonth.js.map +1 -1
  198. package/lib/node_modules/react-day-picker/dist/esm/helpers/getPreviousMonth.js +5 -13
  199. package/lib/node_modules/react-day-picker/dist/esm/helpers/getPreviousMonth.js.map +1 -1
  200. package/lib/node_modules/react-day-picker/dist/esm/helpers/getStyleForModifiers.js +0 -11
  201. package/lib/node_modules/react-day-picker/dist/esm/helpers/getStyleForModifiers.js.map +1 -1
  202. package/lib/node_modules/react-day-picker/dist/esm/helpers/getWeekdays.js +6 -9
  203. package/lib/node_modules/react-day-picker/dist/esm/helpers/getWeekdays.js.map +1 -1
  204. package/lib/node_modules/react-day-picker/dist/esm/helpers/getWeeks.js +1 -6
  205. package/lib/node_modules/react-day-picker/dist/esm/helpers/getWeeks.js.map +1 -1
  206. package/lib/node_modules/react-day-picker/dist/esm/helpers/getYearOptions.js +1 -13
  207. package/lib/node_modules/react-day-picker/dist/esm/helpers/getYearOptions.js.map +1 -1
  208. package/lib/node_modules/react-day-picker/dist/esm/helpers/startOfBroadcastWeek.js +1 -8
  209. package/lib/node_modules/react-day-picker/dist/esm/helpers/startOfBroadcastWeek.js.map +1 -1
  210. package/lib/node_modules/react-day-picker/dist/esm/helpers/useControlledValue.js +6 -10
  211. package/lib/node_modules/react-day-picker/dist/esm/helpers/useControlledValue.js.map +1 -1
  212. package/lib/node_modules/react-day-picker/dist/esm/labels/labelDayButton.js +5 -9
  213. package/lib/node_modules/react-day-picker/dist/esm/labels/labelDayButton.js.map +1 -1
  214. package/lib/node_modules/react-day-picker/dist/esm/labels/labelGrid.js +3 -7
  215. package/lib/node_modules/react-day-picker/dist/esm/labels/labelGrid.js.map +1 -1
  216. package/lib/node_modules/react-day-picker/dist/esm/labels/labelGridcell.js +3 -7
  217. package/lib/node_modules/react-day-picker/dist/esm/labels/labelGridcell.js.map +1 -1
  218. package/lib/node_modules/react-day-picker/dist/esm/labels/labelMonthDropdown.js +1 -3
  219. package/lib/node_modules/react-day-picker/dist/esm/labels/labelMonthDropdown.js.map +1 -1
  220. package/lib/node_modules/react-day-picker/dist/esm/labels/labelNav.js +1 -2
  221. package/lib/node_modules/react-day-picker/dist/esm/labels/labelNav.js.map +1 -1
  222. package/lib/node_modules/react-day-picker/dist/esm/labels/labelNext.js +3 -5
  223. package/lib/node_modules/react-day-picker/dist/esm/labels/labelNext.js.map +1 -1
  224. package/lib/node_modules/react-day-picker/dist/esm/labels/labelPrevious.js +3 -5
  225. package/lib/node_modules/react-day-picker/dist/esm/labels/labelPrevious.js.map +1 -1
  226. package/lib/node_modules/react-day-picker/dist/esm/labels/labelWeekNumber.js +1 -4
  227. package/lib/node_modules/react-day-picker/dist/esm/labels/labelWeekNumber.js.map +1 -1
  228. package/lib/node_modules/react-day-picker/dist/esm/labels/labelWeekNumberHeader.js +1 -3
  229. package/lib/node_modules/react-day-picker/dist/esm/labels/labelWeekNumberHeader.js.map +1 -1
  230. package/lib/node_modules/react-day-picker/dist/esm/labels/labelWeekday.js +1 -5
  231. package/lib/node_modules/react-day-picker/dist/esm/labels/labelWeekday.js.map +1 -1
  232. package/lib/node_modules/react-day-picker/dist/esm/labels/labelYearDropdown.js +1 -3
  233. package/lib/node_modules/react-day-picker/dist/esm/labels/labelYearDropdown.js.map +1 -1
  234. package/lib/node_modules/react-day-picker/dist/esm/selection/useMulti.js +0 -9
  235. package/lib/node_modules/react-day-picker/dist/esm/selection/useMulti.js.map +1 -1
  236. package/lib/node_modules/react-day-picker/dist/esm/selection/useRange.js +2 -10
  237. package/lib/node_modules/react-day-picker/dist/esm/selection/useRange.js.map +1 -1
  238. package/lib/node_modules/react-day-picker/dist/esm/selection/useSingle.js +0 -9
  239. package/lib/node_modules/react-day-picker/dist/esm/selection/useSingle.js.map +1 -1
  240. package/lib/node_modules/react-day-picker/dist/esm/useCalendar.js +1 -9
  241. package/lib/node_modules/react-day-picker/dist/esm/useCalendar.js.map +1 -1
  242. package/lib/node_modules/react-day-picker/dist/esm/useDayPicker.js +6 -4
  243. package/lib/node_modules/react-day-picker/dist/esm/useDayPicker.js.map +1 -1
  244. package/lib/node_modules/react-day-picker/dist/esm/useFocus.js +1 -14
  245. package/lib/node_modules/react-day-picker/dist/esm/useFocus.js.map +1 -1
  246. package/lib/node_modules/react-day-picker/dist/esm/{helpers/createGetModifiers.js → useGetModifiers.js} +7 -13
  247. package/lib/node_modules/react-day-picker/dist/esm/useGetModifiers.js.map +1 -0
  248. package/lib/node_modules/react-day-picker/dist/esm/useSelection.js +0 -10
  249. package/lib/node_modules/react-day-picker/dist/esm/useSelection.js.map +1 -1
  250. package/lib/node_modules/react-day-picker/dist/esm/utils/addToRange.js +8 -10
  251. package/lib/node_modules/react-day-picker/dist/esm/utils/addToRange.js.map +1 -1
  252. package/lib/node_modules/react-day-picker/dist/esm/utils/dateMatchModifiers.js +15 -5
  253. package/lib/node_modules/react-day-picker/dist/esm/utils/dateMatchModifiers.js.map +1 -1
  254. package/lib/node_modules/react-day-picker/dist/esm/utils/rangeContainsDayOfWeek.js +9 -7
  255. package/lib/node_modules/react-day-picker/dist/esm/utils/rangeContainsDayOfWeek.js.map +1 -1
  256. package/lib/node_modules/react-day-picker/dist/esm/utils/rangeContainsModifiers.js +14 -5
  257. package/lib/node_modules/react-day-picker/dist/esm/utils/rangeContainsModifiers.js.map +1 -1
  258. package/lib/node_modules/react-day-picker/dist/esm/utils/rangeIncludesDate.js +3 -7
  259. package/lib/node_modules/react-day-picker/dist/esm/utils/rangeIncludesDate.js.map +1 -1
  260. package/lib/node_modules/react-day-picker/dist/esm/utils/rangeOverlaps.js +2 -6
  261. package/lib/node_modules/react-day-picker/dist/esm/utils/rangeOverlaps.js.map +1 -1
  262. package/lib/node_modules/react-day-picker/dist/esm/utils/typeguards.js +6 -19
  263. package/lib/node_modules/react-day-picker/dist/esm/utils/typeguards.js.map +1 -1
  264. package/lib/node_modules/react-draft-wysiwyg/dist/react-draft-wysiwyg.js +2 -2
  265. package/lib/node_modules/react-draft-wysiwyg/dist/react-draft-wysiwyg.js.map +1 -1
  266. package/lib/node_modules/react-hook-form/dist/index.esm.js +1609 -1661
  267. package/lib/node_modules/react-hook-form/dist/index.esm.js.map +1 -1
  268. package/lib/node_modules/webrtc-adapter/src/js/common_shim.js +1 -1
  269. package/lib/node_modules/webrtc-adapter/src/js/common_shim.js.map +1 -1
  270. package/lib/node_modules/webrtc-adapter/src/js/utils.js +4 -6
  271. package/lib/node_modules/webrtc-adapter/src/js/utils.js.map +1 -1
  272. package/lib/tsconfig.tsbuildinfo +1 -1
  273. package/package.json +107 -107
  274. package/lib/node_modules/immutable/dist/immutable.js.map +0 -1
  275. package/lib/node_modules/react-day-picker/dist/esm/helpers/createGetModifiers.js.map +0 -1
  276. package/lib/node_modules/react-day-picker/dist/esm/useAnimation.js +0 -158
  277. package/lib/node_modules/react-day-picker/dist/esm/useAnimation.js.map +0 -1
  278. package/lib/node_modules/react-is/cjs/react-is.development.js.map +0 -1
  279. package/lib/node_modules/react-is/cjs/react-is.production.min.js.map +0 -1
  280. package/lib/node_modules/react-is/index.js.map +0 -1
@@ -1,9 +1,4 @@
1
- /**
2
- * Returns an array of calendar weeks from an array of calendar months.
3
- *
4
- * @param months The array of calendar months.
5
- * @returns An array of calendar weeks.
6
- */
1
+ /** Returns an array of calendar weeks from an array of calendar months. */
7
2
  function getWeeks(months) {
8
3
  const initialWeeks = [];
9
4
  return months.reduce((weeks, month) => {
@@ -1 +1 @@
1
- {"version":3,"file":"getWeeks.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/helpers/getWeeks.js"],"sourcesContent":["/**\n * Returns an array of calendar weeks from an array of calendar months.\n *\n * @param months The array of calendar months.\n * @returns An array of calendar weeks.\n */\nexport function getWeeks(months) {\n const initialWeeks = [];\n return months.reduce((weeks, month) => {\n return [...weeks, ...month.weeks];\n }, initialWeeks);\n}\n//# sourceMappingURL=getWeeks.js.map"],"names":["getWeeks","months","initialWeeks","reduce","weeks","month"],"mappings":"AAEA;;;;;;AAMM,SAAUA,QAAQA,CAACC,MAAuB,EAAA;EAC9C,MAAMC,YAAY,GAAmB,EAAE;EACvC,OAAOD,MAAM,CAACE,MAAM,CAAC,CAACC,KAAK,EAAEC,KAAK,KAAI;IACpC,OAAO,CAAC,GAAGD,KAAK,EAAE,GAAGC,KAAK,CAACD,KAAK,CAAC;GAClC,EAAEF,YAAY,CAAC;AAClB;;;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"getWeeks.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/helpers/getWeeks.js"],"sourcesContent":["/** Returns an array of calendar weeks from an array of calendar months. */\nexport function getWeeks(months) {\n const initialWeeks = [];\n return months.reduce((weeks, month) => {\n return [...weeks, ...month.weeks];\n }, initialWeeks);\n}\n//# sourceMappingURL=getWeeks.js.map"],"names":["getWeeks","months","initialWeeks","reduce","weeks","month"],"mappings":"AAEA;AACM,SAAUA,QAAQA,CAACC,MAAuB,EAAA;EAC9C,MAAMC,YAAY,GAAmB,EAAE;EACvC,OAAOD,MAAM,CAACE,MAAM,CAAC,CAACC,KAAK,EAAEC,KAAK,KAAI;IACpC,OAAO,CAAC,GAAGD,KAAK,EAAE,GAAGC,KAAK,CAACD,KAAK,CAAC;GAClC,EAAEF,YAAY,CAAC;AAClB;;;;","x_google_ignoreList":[0]}
@@ -1,16 +1,4 @@
1
- /**
2
- * Returns the years to display in the dropdown.
3
- *
4
- * This function generates a list of years between the navigation start and end
5
- * dates, formatted using the provided formatter.
6
- *
7
- * @param navStart The start date for navigation.
8
- * @param navEnd The end date for navigation.
9
- * @param formatters The formatters to use for formatting the year labels.
10
- * @param dateLib The date library to use for date manipulation.
11
- * @returns An array of dropdown options representing the years, or `undefined`
12
- * if `navStart` or `navEnd` is not provided.
13
- */
1
+ /** Return the years to show in the dropdown. */
14
2
  function getYearOptions(navStart, navEnd, formatters, dateLib) {
15
3
  if (!navStart) return undefined;
16
4
  if (!navEnd) return undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"getYearOptions.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/helpers/getYearOptions.js"],"sourcesContent":["/**\n * Returns the years to display in the dropdown.\n *\n * This function generates a list of years between the navigation start and end\n * dates, formatted using the provided formatter.\n *\n * @param navStart The start date for navigation.\n * @param navEnd The end date for navigation.\n * @param formatters The formatters to use for formatting the year labels.\n * @param dateLib The date library to use for date manipulation.\n * @returns An array of dropdown options representing the years, or `undefined`\n * if `navStart` or `navEnd` is not provided.\n */\nexport function getYearOptions(navStart, navEnd, formatters, dateLib) {\n if (!navStart)\n return undefined;\n if (!navEnd)\n return undefined;\n const { startOfYear, endOfYear, addYears, getYear, isBefore, isSameYear } = dateLib;\n const firstNavYear = startOfYear(navStart);\n const lastNavYear = endOfYear(navEnd);\n const years = [];\n let year = firstNavYear;\n while (isBefore(year, lastNavYear) || isSameYear(year, lastNavYear)) {\n years.push(year);\n year = addYears(year, 1);\n }\n return years.map((year) => {\n const label = formatters.formatYearDropdown(year, dateLib);\n return {\n value: getYear(year),\n label,\n disabled: false\n };\n });\n}\n//# sourceMappingURL=getYearOptions.js.map"],"names":["getYearOptions","navStart","navEnd","formatters","dateLib","undefined","startOfYear","endOfYear","addYears","getYear","isBefore","isSameYear","firstNavYear","lastNavYear","years","year","push","map","label","formatYearDropdown","value","disabled"],"mappings":"AAIA;;;;;;;;;;;;;AAaM,SAAUA,cAAcA,CAC5BC,QAA0B,EAC1BC,MAAwB,EACxBC,UAAkD,EAClDC,OAAgB,EAAA;AAEhB,EAAA,IAAI,CAACH,QAAQ,EAAE,OAAOI,SAAS;AAC/B,EAAA,IAAI,CAACH,MAAM,EAAE,OAAOG,SAAS;EAC7B,MAAM;IAAEC,WAAW;IAAEC,SAAS;IAAEC,QAAQ;IAAEC,OAAO;IAAEC,QAAQ;AAAEC,IAAAA;AAAU,GAAE,GACvEP,OAAO;AACT,EAAA,MAAMQ,YAAY,GAAGN,WAAW,CAACL,QAAQ,CAAC;AAC1C,EAAA,MAAMY,WAAW,GAAGN,SAAS,CAACL,MAAM,CAAC;EACrC,MAAMY,KAAK,GAAW,EAAE;EAExB,IAAIC,IAAI,GAAGH,YAAY;AACvB,EAAA,OAAOF,QAAQ,CAACK,IAAI,EAAEF,WAAW,CAAC,IAAIF,UAAU,CAACI,IAAI,EAAEF,WAAW,CAAC,EAAE;AACnEC,IAAAA,KAAK,CAACE,IAAI,CAACD,IAAI,CAAC;AAChBA,IAAAA,IAAI,GAAGP,QAAQ,CAACO,IAAI,EAAE,CAAC,CAAC;AAC1B;AAEA,EAAA,OAAOD,KAAK,CAACG,GAAG,CAAEF,IAAI,IAAI;IACxB,MAAMG,KAAK,GAAGf,UAAU,CAACgB,kBAAkB,CAACJ,IAAI,EAAEX,OAAO,CAAC;IAC1D,OAAO;AACLgB,MAAAA,KAAK,EAAEX,OAAO,CAACM,IAAI,CAAC;MACpBG,KAAK;AACLG,MAAAA,QAAQ,EAAE;AACX,KAAA;AACH,GAAC,CAAC;AACJ;;;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"getYearOptions.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/helpers/getYearOptions.js"],"sourcesContent":["/** Return the years to show in the dropdown. */\nexport function getYearOptions(navStart, navEnd, formatters, dateLib) {\n if (!navStart)\n return undefined;\n if (!navEnd)\n return undefined;\n const { startOfYear, endOfYear, addYears, getYear, isBefore, isSameYear } = dateLib;\n const firstNavYear = startOfYear(navStart);\n const lastNavYear = endOfYear(navEnd);\n const years = [];\n let year = firstNavYear;\n while (isBefore(year, lastNavYear) || isSameYear(year, lastNavYear)) {\n years.push(year);\n year = addYears(year, 1);\n }\n return years.map((year) => {\n const label = formatters.formatYearDropdown(year, dateLib);\n return {\n value: getYear(year),\n label,\n disabled: false\n };\n });\n}\n//# sourceMappingURL=getYearOptions.js.map"],"names":["getYearOptions","navStart","navEnd","formatters","dateLib","undefined","startOfYear","endOfYear","addYears","getYear","isBefore","isSameYear","firstNavYear","lastNavYear","years","year","push","map","label","formatYearDropdown","value","disabled"],"mappings":"AAIA;AACM,SAAUA,cAAcA,CAC5BC,QAA0B,EAC1BC,MAAwB,EACxBC,UAAkD,EAClDC,OAAgB,EAAA;AAEhB,EAAA,IAAI,CAACH,QAAQ,EAAE,OAAOI,SAAS;AAC/B,EAAA,IAAI,CAACH,MAAM,EAAE,OAAOG,SAAS;EAC7B,MAAM;IAAEC,WAAW;IAAEC,SAAS;IAAEC,QAAQ;IAAEC,OAAO;IAAEC,QAAQ;AAAEC,IAAAA;AAAU,GAAE,GACvEP,OAAO;AACT,EAAA,MAAMQ,YAAY,GAAGN,WAAW,CAACL,QAAQ,CAAC;AAC1C,EAAA,MAAMY,WAAW,GAAGN,SAAS,CAACL,MAAM,CAAC;EACrC,MAAMY,KAAK,GAAW,EAAE;EAExB,IAAIC,IAAI,GAAGH,YAAY;AACvB,EAAA,OAAOF,QAAQ,CAACK,IAAI,EAAEF,WAAW,CAAC,IAAIF,UAAU,CAACI,IAAI,EAAEF,WAAW,CAAC,EAAE;AACnEC,IAAAA,KAAK,CAACE,IAAI,CAACD,IAAI,CAAC;AAChBA,IAAAA,IAAI,GAAGP,QAAQ,CAACO,IAAI,EAAE,CAAC,CAAC;AAC1B;AAEA,EAAA,OAAOD,KAAK,CAACG,GAAG,CAAEF,IAAI,IAAI;IACxB,MAAMG,KAAK,GAAGf,UAAU,CAACgB,kBAAkB,CAACJ,IAAI,EAAEX,OAAO,CAAC;IAC1D,OAAO;AACLgB,MAAAA,KAAK,EAAEX,OAAO,CAACM,IAAI,CAAC;MACpBG,KAAK;AACLG,MAAAA,QAAQ,EAAE;AACX,KAAA;AACH,GAAC,CAAC;AACJ;;;;","x_google_ignoreList":[0]}
@@ -1,14 +1,7 @@
1
1
  /**
2
- * Returns the start date of the week in the broadcast calendar.
3
- *
4
- * The broadcast week starts on Monday. If the first day of the month is not a
5
- * Monday, this function calculates the previous Monday as the start of the
6
- * broadcast week.
2
+ * Return the start date of the week in the broadcast calendar.
7
3
  *
8
4
  * @since 9.4.0
9
- * @param date The date for which to calculate the start of the broadcast week.
10
- * @param dateLib The date library to use for date manipulation.
11
- * @returns The start date of the broadcast week.
12
5
  */
13
6
  function startOfBroadcastWeek(date, dateLib) {
14
7
  const firstOfMonth = dateLib.startOfMonth(date);
@@ -1 +1 @@
1
- {"version":3,"file":"startOfBroadcastWeek.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/helpers/startOfBroadcastWeek.js"],"sourcesContent":["/**\n * Returns the start date of the week in the broadcast calendar.\n *\n * The broadcast week starts on Monday. If the first day of the month is not a\n * Monday, this function calculates the previous Monday as the start of the\n * broadcast week.\n *\n * @since 9.4.0\n * @param date The date for which to calculate the start of the broadcast week.\n * @param dateLib The date library to use for date manipulation.\n * @returns The start date of the broadcast week.\n */\nexport function startOfBroadcastWeek(date, dateLib) {\n const firstOfMonth = dateLib.startOfMonth(date);\n const dayOfWeek = firstOfMonth.getDay();\n if (dayOfWeek === 1) {\n return firstOfMonth;\n }\n else if (dayOfWeek === 0) {\n return dateLib.addDays(firstOfMonth, -1 * 6);\n }\n else {\n return dateLib.addDays(firstOfMonth, -1 * (dayOfWeek - 1));\n }\n}\n//# sourceMappingURL=startOfBroadcastWeek.js.map"],"names":["startOfBroadcastWeek","date","dateLib","firstOfMonth","startOfMonth","dayOfWeek","getDay","addDays"],"mappings":"AAEA;;;;;;;;;;;;AAYM,SAAUA,oBAAoBA,CAACC,IAAU,EAAEC,OAAgB,EAAA;AAC/D,EAAA,MAAMC,YAAY,GAAGD,OAAO,CAACE,YAAY,CAACH,IAAI,CAAC;AAC/C,EAAA,MAAMI,SAAS,GAAGF,YAAY,CAACG,MAAM,EAAE;EAEvC,IAAID,SAAS,KAAK,CAAC,EAAE;AACnB,IAAA,OAAOF,YAAY;AACrB,GAAC,MAAM,IAAIE,SAAS,KAAK,CAAC,EAAE;IAC1B,OAAOH,OAAO,CAACK,OAAO,CAACJ,YAAY,EAAE,EAAE,GAAG,CAAC,CAAC;AAC9C,GAAC,MAAM;AACL,IAAA,OAAOD,OAAO,CAACK,OAAO,CAACJ,YAAY,EAAE,EAAE,IAAIE,SAAS,GAAG,CAAC,CAAC,CAAC;AAC5D;AACF;;;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"startOfBroadcastWeek.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/helpers/startOfBroadcastWeek.js"],"sourcesContent":["/**\n * Return the start date of the week in the broadcast calendar.\n *\n * @since 9.4.0\n */\nexport function startOfBroadcastWeek(date, dateLib) {\n const firstOfMonth = dateLib.startOfMonth(date);\n const dayOfWeek = firstOfMonth.getDay();\n if (dayOfWeek === 1) {\n return firstOfMonth;\n }\n else if (dayOfWeek === 0) {\n return dateLib.addDays(firstOfMonth, -1 * 6);\n }\n else {\n return dateLib.addDays(firstOfMonth, -1 * (dayOfWeek - 1));\n }\n}\n//# sourceMappingURL=startOfBroadcastWeek.js.map"],"names":["startOfBroadcastWeek","date","dateLib","firstOfMonth","startOfMonth","dayOfWeek","getDay","addDays"],"mappings":"AAEA;;;;;AAKM,SAAUA,oBAAoBA,CAACC,IAAU,EAAEC,OAAgB,EAAA;AAC/D,EAAA,MAAMC,YAAY,GAAGD,OAAO,CAACE,YAAY,CAACH,IAAI,CAAC;AAC/C,EAAA,MAAMI,SAAS,GAAGF,YAAY,CAACG,MAAM,EAAE;EAEvC,IAAID,SAAS,KAAK,CAAC,EAAE;AACnB,IAAA,OAAOF,YAAY;AACrB,GAAC,MAAM,IAAIE,SAAS,KAAK,CAAC,EAAE;IAC1B,OAAOH,OAAO,CAACK,OAAO,CAACJ,YAAY,EAAE,EAAE,GAAG,CAAC,CAAC;AAC9C,GAAC,MAAM;AACL,IAAA,OAAOD,OAAO,CAACK,OAAO,CAACJ,YAAY,EAAE,EAAE,IAAIE,SAAS,GAAG,CAAC,CAAC,CAAC;AAC5D;AACF;;;;","x_google_ignoreList":[0]}
@@ -3,10 +3,6 @@ import { useState } from 'react';
3
3
  /**
4
4
  * A custom hook for managing both controlled and uncontrolled component states.
5
5
  *
6
- * This hook allows a component to support both controlled and uncontrolled
7
- * states by determining whether the `controlledValue` is provided. If it is
8
- * undefined, the hook falls back to using the internal state.
9
- *
10
6
  * @example
11
7
  * // Uncontrolled usage
12
8
  * const [value, setValue] = useControlledValue(0, undefined);
@@ -15,12 +11,12 @@ import { useState } from 'react';
15
11
  * const [value, setValue] = useControlledValue(0, props.value);
16
12
  *
17
13
  * @template T - The type of the value.
18
- * @param defaultValue The initial value for the uncontrolled state.
19
- * @param controlledValue The value for the controlled state. If undefined, the
20
- * component will use the uncontrolled state.
21
- * @returns A tuple where the first element is the current value (either
22
- * controlled or uncontrolled) and the second element is a setter function to
23
- * update the value.
14
+ * @param {T} defaultValue - The initial value for the uncontrolled state.
15
+ * @param {T | undefined} controlledValue - The value for the controlled state.
16
+ * If undefined, the component will use the uncontrolled state.
17
+ * @returns {[T, DispatchStateAction<T>]} - Returns a tuple where the first
18
+ * element is the current value (either controlled or uncontrolled) and the
19
+ * second element is a setter function to update the value.
24
20
  */
25
21
  function useControlledValue(defaultValue, controlledValue) {
26
22
  const [uncontrolledValue, setValue] = useState(defaultValue);
@@ -1 +1 @@
1
- {"version":3,"file":"useControlledValue.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/helpers/useControlledValue.js"],"sourcesContent":["import { useState } from \"react\";\n/**\n * A custom hook for managing both controlled and uncontrolled component states.\n *\n * This hook allows a component to support both controlled and uncontrolled\n * states by determining whether the `controlledValue` is provided. If it is\n * undefined, the hook falls back to using the internal state.\n *\n * @example\n * // Uncontrolled usage\n * const [value, setValue] = useControlledValue(0, undefined);\n *\n * // Controlled usage\n * const [value, setValue] = useControlledValue(0, props.value);\n *\n * @template T - The type of the value.\n * @param defaultValue The initial value for the uncontrolled state.\n * @param controlledValue The value for the controlled state. If undefined, the\n * component will use the uncontrolled state.\n * @returns A tuple where the first element is the current value (either\n * controlled or uncontrolled) and the second element is a setter function to\n * update the value.\n */\nexport function useControlledValue(defaultValue, controlledValue) {\n const [uncontrolledValue, setValue] = useState(defaultValue);\n const value = controlledValue === undefined ? uncontrolledValue : controlledValue;\n return [value, setValue];\n}\n//# sourceMappingURL=useControlledValue.js.map"],"names":["useControlledValue","defaultValue","controlledValue","uncontrolledValue","setValue","useState","value","undefined"],"mappings":";;AAIA;;;;;;;;;;;;;;;;;;;;;;AAsBM,SAAUA,kBAAkBA,CAChCC,YAAe,EACfC,eAA8B,EAAA;EAE9B,MAAM,CAACC,iBAAiB,EAAEC,QAAQ,CAAC,GAAGC,QAAQ,CAACJ,YAAY,CAAC;EAE5D,MAAMK,KAAK,GACTJ,eAAe,KAAKK,SAAS,GAAGJ,iBAAiB,GAAGD,eAAe;AAErE,EAAA,OAAO,CAACI,KAAK,EAAEF,QAAQ,CAAgC;AACzD;;;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"useControlledValue.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/helpers/useControlledValue.js"],"sourcesContent":["import { useState } from \"react\";\n/**\n * A custom hook for managing both controlled and uncontrolled component states.\n *\n * @example\n * // Uncontrolled usage\n * const [value, setValue] = useControlledValue(0, undefined);\n *\n * // Controlled usage\n * const [value, setValue] = useControlledValue(0, props.value);\n *\n * @template T - The type of the value.\n * @param {T} defaultValue - The initial value for the uncontrolled state.\n * @param {T | undefined} controlledValue - The value for the controlled state.\n * If undefined, the component will use the uncontrolled state.\n * @returns {[T, DispatchStateAction<T>]} - Returns a tuple where the first\n * element is the current value (either controlled or uncontrolled) and the\n * second element is a setter function to update the value.\n */\nexport function useControlledValue(defaultValue, controlledValue) {\n const [uncontrolledValue, setValue] = useState(defaultValue);\n const value = controlledValue === undefined ? uncontrolledValue : controlledValue;\n return [value, setValue];\n}\n//# sourceMappingURL=useControlledValue.js.map"],"names":["useControlledValue","defaultValue","controlledValue","uncontrolledValue","setValue","useState","value","undefined"],"mappings":";;AAIA;;;;;;;;;;;;;;;;;;AAkBM,SAAUA,kBAAkBA,CAChCC,YAAe,EACfC,eAA8B,EAAA;EAE9B,MAAM,CAACC,iBAAiB,EAAEC,QAAQ,CAAC,GAAGC,QAAQ,CAACJ,YAAY,CAAC;EAE5D,MAAMK,KAAK,GACTJ,eAAe,KAAKK,SAAS,GAAGJ,iBAAiB,GAAGD,eAAe;AAErE,EAAA,OAAO,CAACI,KAAK,EAAEF,QAAQ,CAAgC;AACzD;;;;","x_google_ignoreList":[0]}
@@ -1,21 +1,17 @@
1
1
  import { DateLib } from '../classes/DateLib.js';
2
2
 
3
3
  /**
4
- * Generates the ARIA label for a day button.
4
+ * The ARIA label for the day button.
5
5
  *
6
- * Use the `modifiers` argument to provide additional context for the label,
7
- * such as indicating if the day is "today" or "selected."
6
+ * Use the `modifiers` argument to add additional context to the label, e.g.
7
+ * when a day is selected or is today.
8
8
  *
9
9
  * @defaultValue The formatted date.
10
- * @param date - The date to format.
11
- * @param modifiers - The modifiers providing context for the day.
12
- * @param options - Optional configuration for the date formatting library.
13
- * @param dateLib - An optional instance of the date formatting library.
14
- * @returns The ARIA label for the day button.
15
10
  * @group Labels
16
11
  * @see https://daypicker.dev/docs/translation#aria-labels
17
12
  */
18
- function labelDayButton(date, modifiers, options, dateLib) {
13
+ function labelDayButton(date, /** The modifiers for the day. */
14
+ modifiers, options, dateLib) {
19
15
  let label = (dateLib ?? new DateLib(options)).format(date, "PPPP");
20
16
  if (modifiers.today) label = `Today, ${label}`;
21
17
  if (modifiers.selected) label = `${label}, selected`;
@@ -1 +1 @@
1
- {"version":3,"file":"labelDayButton.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/labels/labelDayButton.js"],"sourcesContent":["import { DateLib } from \"../classes/DateLib.js\";\n/**\n * Generates the ARIA label for a day button.\n *\n * Use the `modifiers` argument to provide additional context for the label,\n * such as indicating if the day is \"today\" or \"selected.\"\n *\n * @defaultValue The formatted date.\n * @param date - The date to format.\n * @param modifiers - The modifiers providing context for the day.\n * @param options - Optional configuration for the date formatting library.\n * @param dateLib - An optional instance of the date formatting library.\n * @returns The ARIA label for the day button.\n * @group Labels\n * @see https://daypicker.dev/docs/translation#aria-labels\n */\nexport function labelDayButton(date, modifiers, options, dateLib) {\n let label = (dateLib ?? new DateLib(options)).format(date, \"PPPP\");\n if (modifiers.today)\n label = `Today, ${label}`;\n if (modifiers.selected)\n label = `${label}, selected`;\n return label;\n}\n/**\n * @ignore\n * @deprecated Use `labelDayButton` instead.\n */\nexport const labelDay = labelDayButton;\n//# sourceMappingURL=labelDayButton.js.map"],"names":["labelDayButton","date","modifiers","options","dateLib","label","DateLib","format","today","selected","labelDay"],"mappings":";;AAGA;;;;;;;;;;;;;;;AAeM,SAAUA,cAAcA,CAC5BC,IAAU,EACVC,SAAoB,EACpBC,OAAwB,EACxBC,OAAiB,EAAA;AAEjB,EAAA,IAAIC,KAAK,GAAG,CAACD,OAAO,IAAI,IAAIE,OAAO,CAACH,OAAO,CAAC,EAAEI,MAAM,CAACN,IAAI,EAAE,MAAM,CAAC;EAClE,IAAIC,SAAS,CAACM,KAAK,EAAEH,KAAK,GAAG,CAAA,OAAA,EAAUA,KAAK,CAAE,CAAA;EAC9C,IAAIH,SAAS,CAACO,QAAQ,EAAEJ,KAAK,GAAG,CAAA,EAAGA,KAAK,CAAY,UAAA,CAAA;AACpD,EAAA,OAAOA,KAAK;AACd;AAEA;;;;AAIO,MAAMK,QAAQ,GAAGV;;;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"labelDayButton.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/labels/labelDayButton.js"],"sourcesContent":["import { DateLib } from \"../classes/DateLib.js\";\n/**\n * The ARIA label for the day button.\n *\n * Use the `modifiers` argument to add additional context to the label, e.g.\n * when a day is selected or is today.\n *\n * @defaultValue The formatted date.\n * @group Labels\n * @see https://daypicker.dev/docs/translation#aria-labels\n */\nexport function labelDayButton(date, \n/** The modifiers for the day. */\nmodifiers, options, dateLib) {\n let label = (dateLib ?? new DateLib(options)).format(date, \"PPPP\");\n if (modifiers.today)\n label = `Today, ${label}`;\n if (modifiers.selected)\n label = `${label}, selected`;\n return label;\n}\n/**\n * @ignore\n * @deprecated Use `labelDayButton` instead.\n */\nexport const labelDay = labelDayButton;\n//# sourceMappingURL=labelDayButton.js.map"],"names":["labelDayButton","date","modifiers","options","dateLib","label","DateLib","format","today","selected","labelDay"],"mappings":";;AAGA;;;;;;;;;;AAUM,SAAUA,cAAcA,CAC5BC,IAAU;AAEVC,SAAoB,EACpBC,OAAwB,EACxBC,OAAiB,EAAA;AAEjB,EAAA,IAAIC,KAAK,GAAG,CAACD,OAAO,IAAI,IAAIE,OAAO,CAACH,OAAO,CAAC,EAAEI,MAAM,CAACN,IAAI,EAAE,MAAM,CAAC;EAClE,IAAIC,SAAS,CAACM,KAAK,EAAEH,KAAK,GAAG,CAAA,OAAA,EAAUA,KAAK,CAAE,CAAA;EAC9C,IAAIH,SAAS,CAACO,QAAQ,EAAEJ,KAAK,GAAG,CAAA,EAAGA,KAAK,CAAY,UAAA,CAAA;AACpD,EAAA,OAAOA,KAAK;AACd;AAEA;;;;AAIO,MAAMK,QAAQ,GAAGV;;;;","x_google_ignoreList":[0]}
@@ -1,14 +1,10 @@
1
1
  import { DateLib } from '../classes/DateLib.js';
2
2
 
3
3
  /**
4
- * Generates the ARIA label for the month grid, which is announced when entering
5
- * the grid.
4
+ * The ARIA label for the month grid, that will be announced when entering the
5
+ * grid.
6
6
  *
7
- * @defaultValue `LLLL y` (e.g., "November 2022").
8
- * @param date - The date representing the month.
9
- * @param options - Optional configuration for the date formatting library.
10
- * @param dateLib - An optional instance of the date formatting library.
11
- * @returns The ARIA label for the month grid.
7
+ * @defaultValue `LLLL y` (e.g. "November 2022")
12
8
  * @group Labels
13
9
  * @see https://daypicker.dev/docs/translation#aria-labels
14
10
  */
@@ -1 +1 @@
1
- {"version":3,"file":"labelGrid.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/labels/labelGrid.js"],"sourcesContent":["import { DateLib } from \"../classes/DateLib.js\";\n/**\n * Generates the ARIA label for the month grid, which is announced when entering\n * the grid.\n *\n * @defaultValue `LLLL y` (e.g., \"November 2022\").\n * @param date - The date representing the month.\n * @param options - Optional configuration for the date formatting library.\n * @param dateLib - An optional instance of the date formatting library.\n * @returns The ARIA label for the month grid.\n * @group Labels\n * @see https://daypicker.dev/docs/translation#aria-labels\n */\nexport function labelGrid(date, options, dateLib) {\n return (dateLib ?? new DateLib(options)).format(date, \"LLLL y\");\n}\n/**\n * @ignore\n * @deprecated Use {@link labelGrid} instead.\n */\nexport const labelCaption = labelGrid;\n//# sourceMappingURL=labelGrid.js.map"],"names":["labelGrid","date","options","dateLib","DateLib","format","labelCaption"],"mappings":";;AAEA;;;;;;;;;;;;AAYM,SAAUA,SAASA,CACvBC,IAAU,EACVC,OAAwB,EACxBC,OAAiB,EAAA;AAEjB,EAAA,OAAO,CAACA,OAAO,IAAI,IAAIC,OAAO,CAACF,OAAO,CAAC,EAAEG,MAAM,CAACJ,IAAI,EAAE,QAAQ,CAAC;AACjE;AAEA;;;;AAIO,MAAMK,YAAY,GAAGN;;;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"labelGrid.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/labels/labelGrid.js"],"sourcesContent":["import { DateLib } from \"../classes/DateLib.js\";\n/**\n * The ARIA label for the month grid, that will be announced when entering the\n * grid.\n *\n * @defaultValue `LLLL y` (e.g. \"November 2022\")\n * @group Labels\n * @see https://daypicker.dev/docs/translation#aria-labels\n */\nexport function labelGrid(date, options, dateLib) {\n return (dateLib ?? new DateLib(options)).format(date, \"LLLL y\");\n}\n/**\n * @ignore\n * @deprecated Use {@link labelGrid} instead.\n */\nexport const labelCaption = labelGrid;\n//# sourceMappingURL=labelGrid.js.map"],"names":["labelGrid","date","options","dateLib","DateLib","format","labelCaption"],"mappings":";;AAEA;;;;;;;;AAQM,SAAUA,SAASA,CACvBC,IAAU,EACVC,OAAwB,EACxBC,OAAiB,EAAA;AAEjB,EAAA,OAAO,CAACA,OAAO,IAAI,IAAIC,OAAO,CAACF,OAAO,CAAC,EAAEG,MAAM,CAACJ,IAAI,EAAE,QAAQ,CAAC;AACjE;AAEA;;;;AAIO,MAAMK,YAAY,GAAGN;;;;","x_google_ignoreList":[0]}
@@ -1,17 +1,13 @@
1
1
  import { DateLib } from '../classes/DateLib.js';
2
2
 
3
3
  /**
4
- * Generates the label for a day grid cell when the calendar is not interactive.
4
+ * The label for the day gridcell when the calendar is not interactive.
5
5
  *
6
- * @param date - The date to format.
7
- * @param modifiers - Optional modifiers providing context for the day.
8
- * @param options - Optional configuration for the date formatting library.
9
- * @param dateLib - An optional instance of the date formatting library.
10
- * @returns The label for the day grid cell.
11
6
  * @group Labels
12
7
  * @see https://daypicker.dev/docs/translation#aria-labels
13
8
  */
14
- function labelGridcell(date, modifiers, options, dateLib) {
9
+ function labelGridcell(date, /** The modifiers for the day. */
10
+ modifiers, options, dateLib) {
15
11
  let label = (dateLib ?? new DateLib(options)).format(date, "PPPP");
16
12
  if (modifiers?.today) {
17
13
  label = `Today, ${label}`;
@@ -1 +1 @@
1
- {"version":3,"file":"labelGridcell.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/labels/labelGridcell.js"],"sourcesContent":["import { DateLib } from \"../classes/DateLib.js\";\n/**\n * Generates the label for a day grid cell when the calendar is not interactive.\n *\n * @param date - The date to format.\n * @param modifiers - Optional modifiers providing context for the day.\n * @param options - Optional configuration for the date formatting library.\n * @param dateLib - An optional instance of the date formatting library.\n * @returns The label for the day grid cell.\n * @group Labels\n * @see https://daypicker.dev/docs/translation#aria-labels\n */\nexport function labelGridcell(date, modifiers, options, dateLib) {\n let label = (dateLib ?? new DateLib(options)).format(date, \"PPPP\");\n if (modifiers?.today) {\n label = `Today, ${label}`;\n }\n return label;\n}\n//# sourceMappingURL=labelGridcell.js.map"],"names":["labelGridcell","date","modifiers","options","dateLib","label","DateLib","format","today"],"mappings":";;AAGA;;;;;;;;;;;AAWM,SAAUA,aAAaA,CAC3BC,IAAU,EACVC,SAAqB,EACrBC,OAAwB,EACxBC,OAAiB,EAAA;AAEjB,EAAA,IAAIC,KAAK,GAAG,CAACD,OAAO,IAAI,IAAIE,OAAO,CAACH,OAAO,CAAC,EAAEI,MAAM,CAACN,IAAI,EAAE,MAAM,CAAC;EAClE,IAAIC,SAAS,EAAEM,KAAK,EAAE;IACpBH,KAAK,GAAG,CAAUA,OAAAA,EAAAA,KAAK,CAAE,CAAA;AAC3B;AACA,EAAA,OAAOA,KAAK;AACd;;;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"labelGridcell.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/labels/labelGridcell.js"],"sourcesContent":["import { DateLib } from \"../classes/DateLib.js\";\n/**\n * The label for the day gridcell when the calendar is not interactive.\n *\n * @group Labels\n * @see https://daypicker.dev/docs/translation#aria-labels\n */\nexport function labelGridcell(date, \n/** The modifiers for the day. */\nmodifiers, options, dateLib) {\n let label = (dateLib ?? new DateLib(options)).format(date, \"PPPP\");\n if (modifiers?.today) {\n label = `Today, ${label}`;\n }\n return label;\n}\n//# sourceMappingURL=labelGridcell.js.map"],"names":["labelGridcell","date","modifiers","options","dateLib","label","DateLib","format","today"],"mappings":";;AAGA;;;;;;AAMM,SAAUA,aAAaA,CAC3BC,IAAU;AAEVC,SAAqB,EACrBC,OAAwB,EACxBC,OAAiB,EAAA;AAEjB,EAAA,IAAIC,KAAK,GAAG,CAACD,OAAO,IAAI,IAAIE,OAAO,CAACH,OAAO,CAAC,EAAEI,MAAM,CAACN,IAAI,EAAE,MAAM,CAAC;EAClE,IAAIC,SAAS,EAAEM,KAAK,EAAE;IACpBH,KAAK,GAAG,CAAUA,OAAAA,EAAAA,KAAK,CAAE,CAAA;AAC3B;AACA,EAAA,OAAOA,KAAK;AACd;;;;","x_google_ignoreList":[0]}
@@ -1,9 +1,7 @@
1
1
  /**
2
- * Generates the ARIA label for the months dropdown.
2
+ * The ARIA label for the months dropdown.
3
3
  *
4
4
  * @defaultValue `"Choose the Month"`
5
- * @param options - Optional configuration for the date formatting library.
6
- * @returns The ARIA label for the months dropdown.
7
5
  * @group Labels
8
6
  * @see https://daypicker.dev/docs/translation#aria-labels
9
7
  */
@@ -1 +1 @@
1
- {"version":3,"file":"labelMonthDropdown.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/labels/labelMonthDropdown.js"],"sourcesContent":["/**\n * Generates the ARIA label for the months dropdown.\n *\n * @defaultValue `\"Choose the Month\"`\n * @param options - Optional configuration for the date formatting library.\n * @returns The ARIA label for the months dropdown.\n * @group Labels\n * @see https://daypicker.dev/docs/translation#aria-labels\n */\nexport function labelMonthDropdown(options) {\n return \"Choose the Month\";\n}\n//# sourceMappingURL=labelMonthDropdown.js.map"],"names":["labelMonthDropdown","options"],"mappings":"AAEA;;;;;;;;;AASM,SAAUA,kBAAkBA,CAACC,OAAwB,EAAA;AACzD,EAAA,OAAO,kBAAkB;AAC3B;;;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"labelMonthDropdown.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/labels/labelMonthDropdown.js"],"sourcesContent":["/**\n * The ARIA label for the months dropdown.\n *\n * @defaultValue `\"Choose the Month\"`\n * @group Labels\n * @see https://daypicker.dev/docs/translation#aria-labels\n */\nexport function labelMonthDropdown(options) {\n return \"Choose the Month\";\n}\n//# sourceMappingURL=labelMonthDropdown.js.map"],"names":["labelMonthDropdown","options"],"mappings":"AAEA;;;;;;;AAOM,SAAUA,kBAAkBA,CAACC,OAAwB,EAAA;AACzD,EAAA,OAAO,kBAAkB;AAC3B;;;;","x_google_ignoreList":[0]}
@@ -1,8 +1,7 @@
1
1
  /**
2
- * Generates the ARIA label for the navigation toolbar.
2
+ * The ARIA label for the navigation toolbar.
3
3
  *
4
4
  * @defaultValue `""`
5
- * @returns The ARIA label for the navigation toolbar.
6
5
  * @group Labels
7
6
  * @see https://daypicker.dev/docs/translation#aria-labels
8
7
  */
@@ -1 +1 @@
1
- {"version":3,"file":"labelNav.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/labels/labelNav.js"],"sourcesContent":["/**\n * Generates the ARIA label for the navigation toolbar.\n *\n * @defaultValue `\"\"`\n * @returns The ARIA label for the navigation toolbar.\n * @group Labels\n * @see https://daypicker.dev/docs/translation#aria-labels\n */\nexport function labelNav() {\n return \"\";\n}\n//# sourceMappingURL=labelNav.js.map"],"names":["labelNav"],"mappings":"AAAA;;;;;;;;AAQM,SAAUA,QAAQA,GAAA;AACtB,EAAA,OAAO,EAAE;AACX;;;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"labelNav.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/labels/labelNav.js"],"sourcesContent":["/**\n * The ARIA label for the navigation toolbar.\n *\n * @defaultValue `\"\"`\n * @group Labels\n * @see https://daypicker.dev/docs/translation#aria-labels\n */\nexport function labelNav() {\n return \"\";\n}\n//# sourceMappingURL=labelNav.js.map"],"names":["labelNav"],"mappings":"AAAA;;;;;;;AAOM,SAAUA,QAAQA,GAAA;AACtB,EAAA,OAAO,EAAE;AACX;;;;","x_google_ignoreList":[0]}
@@ -1,14 +1,12 @@
1
1
  /**
2
- * Generates the ARIA label for the "next month" button.
2
+ * The ARIA label for next month button.
3
3
  *
4
4
  * @defaultValue `"Go to the Next Month"`
5
- * @param month - The date representing the next month, or `undefined` if there
6
- * is no next month.
7
- * @returns The ARIA label for the "next month" button.
8
5
  * @group Labels
9
6
  * @see https://daypicker.dev/docs/translation#aria-labels
10
7
  */
11
- function labelNext(month) {
8
+ function labelNext(/** `undefined` where there's no next month to navigate to. */
9
+ month) {
12
10
  return "Go to the Next Month";
13
11
  }
14
12
 
@@ -1 +1 @@
1
- {"version":3,"file":"labelNext.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/labels/labelNext.js"],"sourcesContent":["/**\n * Generates the ARIA label for the \"next month\" button.\n *\n * @defaultValue `\"Go to the Next Month\"`\n * @param month - The date representing the next month, or `undefined` if there\n * is no next month.\n * @returns The ARIA label for the \"next month\" button.\n * @group Labels\n * @see https://daypicker.dev/docs/translation#aria-labels\n */\nexport function labelNext(month) {\n return \"Go to the Next Month\";\n}\n//# sourceMappingURL=labelNext.js.map"],"names":["labelNext","month"],"mappings":"AAAA;;;;;;;;;;AAUM,SAAUA,SAASA,CAACC,KAAuB,EAAA;AAC/C,EAAA,OAAO,sBAAsB;AAC/B;;;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"labelNext.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/labels/labelNext.js"],"sourcesContent":["/**\n * The ARIA label for next month button.\n *\n * @defaultValue `\"Go to the Next Month\"`\n * @group Labels\n * @see https://daypicker.dev/docs/translation#aria-labels\n */\nexport function labelNext(\n/** `undefined` where there's no next month to navigate to. */\nmonth) {\n return \"Go to the Next Month\";\n}\n//# sourceMappingURL=labelNext.js.map"],"names":["labelNext","month"],"mappings":"AAAA;;;;;;;AAOM,SAAUA,SAASA;AAEvBC,KAAuB,EAAA;AAEvB,EAAA,OAAO,sBAAsB;AAC/B;;;;","x_google_ignoreList":[0]}
@@ -1,14 +1,12 @@
1
1
  /**
2
- * Generates the ARIA label for the "previous month" button.
2
+ * The ARIA label for previous month button.
3
3
  *
4
4
  * @defaultValue `"Go to the Previous Month"`
5
- * @param month - The date representing the previous month, or `undefined` if
6
- * there is no previous month.
7
- * @returns The ARIA label for the "previous month" button.
8
5
  * @group Labels
9
6
  * @see https://daypicker.dev/docs/translation#aria-labels
10
7
  */
11
- function labelPrevious(month) {
8
+ function labelPrevious(/** Undefined where there's no previous month to navigate to. */
9
+ month) {
12
10
  return "Go to the Previous Month";
13
11
  }
14
12
 
@@ -1 +1 @@
1
- {"version":3,"file":"labelPrevious.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/labels/labelPrevious.js"],"sourcesContent":["/**\n * Generates the ARIA label for the \"previous month\" button.\n *\n * @defaultValue `\"Go to the Previous Month\"`\n * @param month - The date representing the previous month, or `undefined` if\n * there is no previous month.\n * @returns The ARIA label for the \"previous month\" button.\n * @group Labels\n * @see https://daypicker.dev/docs/translation#aria-labels\n */\nexport function labelPrevious(month) {\n return \"Go to the Previous Month\";\n}\n//# sourceMappingURL=labelPrevious.js.map"],"names":["labelPrevious","month"],"mappings":"AAAA;;;;;;;;;;AAUM,SAAUA,aAAaA,CAACC,KAAuB,EAAA;AACnD,EAAA,OAAO,0BAA0B;AACnC;;;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"labelPrevious.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/labels/labelPrevious.js"],"sourcesContent":["/**\n * The ARIA label for previous month button.\n *\n * @defaultValue `\"Go to the Previous Month\"`\n * @group Labels\n * @see https://daypicker.dev/docs/translation#aria-labels\n */\nexport function labelPrevious(\n/** Undefined where there's no previous month to navigate to. */\nmonth) {\n return \"Go to the Previous Month\";\n}\n//# sourceMappingURL=labelPrevious.js.map"],"names":["labelPrevious","month"],"mappings":"AAAA;;;;;;;AAOM,SAAUA,aAAaA;AAE3BC,KAAuB,EAAA;AAEvB,EAAA,OAAO,0BAA0B;AACnC;;;;","x_google_ignoreList":[0]}
@@ -1,10 +1,7 @@
1
1
  /**
2
- * Generates the ARIA label for the week number cell (the first cell in a row).
2
+ * The ARIA label for the week number cell (the first cell in the row).
3
3
  *
4
4
  * @defaultValue `Week ${weekNumber}`
5
- * @param weekNumber - The number of the week.
6
- * @param options - Optional configuration for the date formatting library.
7
- * @returns The ARIA label for the week number cell.
8
5
  * @group Labels
9
6
  * @see https://daypicker.dev/docs/translation#aria-labels
10
7
  */
@@ -1 +1 @@
1
- {"version":3,"file":"labelWeekNumber.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/labels/labelWeekNumber.js"],"sourcesContent":["/**\n * Generates the ARIA label for the week number cell (the first cell in a row).\n *\n * @defaultValue `Week ${weekNumber}`\n * @param weekNumber - The number of the week.\n * @param options - Optional configuration for the date formatting library.\n * @returns The ARIA label for the week number cell.\n * @group Labels\n * @see https://daypicker.dev/docs/translation#aria-labels\n */\nexport function labelWeekNumber(weekNumber, options) {\n return `Week ${weekNumber}`;\n}\n//# sourceMappingURL=labelWeekNumber.js.map"],"names":["labelWeekNumber","weekNumber","options"],"mappings":"AAEA;;;;;;;;;;AAUM,SAAUA,eAAeA,CAC7BC,UAAkB,EAClBC,OAAwB,EAAA;EAExB,OAAO,CAAA,KAAA,EAAQD,UAAU,CAAE,CAAA;AAC7B;;;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"labelWeekNumber.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/labels/labelWeekNumber.js"],"sourcesContent":["/**\n * The ARIA label for the week number cell (the first cell in the row).\n *\n * @defaultValue `Week ${weekNumber}`\n * @group Labels\n * @see https://daypicker.dev/docs/translation#aria-labels\n */\nexport function labelWeekNumber(weekNumber, options) {\n return `Week ${weekNumber}`;\n}\n//# sourceMappingURL=labelWeekNumber.js.map"],"names":["labelWeekNumber","weekNumber","options"],"mappings":"AAEA;;;;;;;AAOM,SAAUA,eAAeA,CAC7BC,UAAkB,EAClBC,OAAwB,EAAA;EAExB,OAAO,CAAA,KAAA,EAAQD,UAAU,CAAE,CAAA;AAC7B;;;;","x_google_ignoreList":[0]}
@@ -1,9 +1,7 @@
1
1
  /**
2
- * Generates the ARIA label for the week number header element.
2
+ * The ARIA label for the week number header element.
3
3
  *
4
4
  * @defaultValue `"Week Number"`
5
- * @param options - Optional configuration for the date formatting library.
6
- * @returns The ARIA label for the week number header.
7
5
  * @group Labels
8
6
  * @see https://daypicker.dev/docs/translation#aria-labels
9
7
  */
@@ -1 +1 @@
1
- {"version":3,"file":"labelWeekNumberHeader.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/labels/labelWeekNumberHeader.js"],"sourcesContent":["/**\n * Generates the ARIA label for the week number header element.\n *\n * @defaultValue `\"Week Number\"`\n * @param options - Optional configuration for the date formatting library.\n * @returns The ARIA label for the week number header.\n * @group Labels\n * @see https://daypicker.dev/docs/translation#aria-labels\n */\nexport function labelWeekNumberHeader(options) {\n return \"Week Number\";\n}\n//# sourceMappingURL=labelWeekNumberHeader.js.map"],"names":["labelWeekNumberHeader","options"],"mappings":"AAEA;;;;;;;;;AASM,SAAUA,qBAAqBA,CAACC,OAAwB,EAAA;AAC5D,EAAA,OAAO,aAAa;AACtB;;;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"labelWeekNumberHeader.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/labels/labelWeekNumberHeader.js"],"sourcesContent":["/**\n * The ARIA label for the week number header element.\n *\n * @defaultValue `\"Week Number\"`\n * @group Labels\n * @see https://daypicker.dev/docs/translation#aria-labels\n */\nexport function labelWeekNumberHeader(options) {\n return \"Week Number\";\n}\n//# sourceMappingURL=labelWeekNumberHeader.js.map"],"names":["labelWeekNumberHeader","options"],"mappings":"AAEA;;;;;;;AAOM,SAAUA,qBAAqBA,CAACC,OAAwB,EAAA;AAC5D,EAAA,OAAO,aAAa;AACtB;;;;","x_google_ignoreList":[0]}
@@ -1,13 +1,9 @@
1
1
  import { DateLib } from '../classes/DateLib.js';
2
2
 
3
3
  /**
4
- * Generates the ARIA label for a weekday column header.
4
+ * The ARIA label for the Weekday column header.
5
5
  *
6
6
  * @defaultValue `"Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"`
7
- * @param date - The date representing the weekday.
8
- * @param options - Optional configuration for the date formatting library.
9
- * @param dateLib - An optional instance of the date formatting library.
10
- * @returns The ARIA label for the weekday column header.
11
7
  * @group Labels
12
8
  * @see https://daypicker.dev/docs/translation#aria-labels
13
9
  */
@@ -1 +1 @@
1
- {"version":3,"file":"labelWeekday.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/labels/labelWeekday.js"],"sourcesContent":["import { DateLib } from \"../classes/DateLib.js\";\n/**\n * Generates the ARIA label for a weekday column header.\n *\n * @defaultValue `\"Monday\", \"Tuesday\", \"Wednesday\", \"Thursday\", \"Friday\", \"Saturday\", \"Sunday\"`\n * @param date - The date representing the weekday.\n * @param options - Optional configuration for the date formatting library.\n * @param dateLib - An optional instance of the date formatting library.\n * @returns The ARIA label for the weekday column header.\n * @group Labels\n * @see https://daypicker.dev/docs/translation#aria-labels\n */\nexport function labelWeekday(date, options, dateLib) {\n return (dateLib ?? new DateLib(options)).format(date, \"cccc\");\n}\n//# sourceMappingURL=labelWeekday.js.map"],"names":["labelWeekday","date","options","dateLib","DateLib","format"],"mappings":";;AAEA;;;;;;;;;;;AAWM,SAAUA,YAAYA,CAC1BC,IAAU,EACVC,OAAwB,EACxBC,OAAiB,EAAA;AAEjB,EAAA,OAAO,CAACA,OAAO,IAAI,IAAIC,OAAO,CAACF,OAAO,CAAC,EAAEG,MAAM,CAACJ,IAAI,EAAE,MAAM,CAAC;AAC/D;;;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"labelWeekday.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/labels/labelWeekday.js"],"sourcesContent":["import { DateLib } from \"../classes/DateLib.js\";\n/**\n * The ARIA label for the Weekday column header.\n *\n * @defaultValue `\"Monday\", \"Tuesday\", \"Wednesday\", \"Thursday\", \"Friday\", \"Saturday\", \"Sunday\"`\n * @group Labels\n * @see https://daypicker.dev/docs/translation#aria-labels\n */\nexport function labelWeekday(date, options, dateLib) {\n return (dateLib ?? new DateLib(options)).format(date, \"cccc\");\n}\n//# sourceMappingURL=labelWeekday.js.map"],"names":["labelWeekday","date","options","dateLib","DateLib","format"],"mappings":";;AAEA;;;;;;;AAOM,SAAUA,YAAYA,CAC1BC,IAAU,EACVC,OAAwB,EACxBC,OAAiB,EAAA;AAEjB,EAAA,OAAO,CAACA,OAAO,IAAI,IAAIC,OAAO,CAACF,OAAO,CAAC,EAAEG,MAAM,CAACJ,IAAI,EAAE,MAAM,CAAC;AAC/D;;;;","x_google_ignoreList":[0]}
@@ -1,9 +1,7 @@
1
1
  /**
2
- * Generates the ARIA label for the years dropdown.
2
+ * The ARIA label for the years dropdown.
3
3
  *
4
4
  * @defaultValue `"Choose the Year"`
5
- * @param options - Optional configuration for the date formatting library.
6
- * @returns The ARIA label for the years dropdown.
7
5
  * @group Labels
8
6
  * @see https://daypicker.dev/docs/translation#aria-labels
9
7
  */
@@ -1 +1 @@
1
- {"version":3,"file":"labelYearDropdown.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/labels/labelYearDropdown.js"],"sourcesContent":["/**\n * Generates the ARIA label for the years dropdown.\n *\n * @defaultValue `\"Choose the Year\"`\n * @param options - Optional configuration for the date formatting library.\n * @returns The ARIA label for the years dropdown.\n * @group Labels\n * @see https://daypicker.dev/docs/translation#aria-labels\n */\nexport function labelYearDropdown(options) {\n return \"Choose the Year\";\n}\n//# sourceMappingURL=labelYearDropdown.js.map"],"names":["labelYearDropdown","options"],"mappings":"AAEA;;;;;;;;;AASM,SAAUA,iBAAiBA,CAACC,OAAwB,EAAA;AACxD,EAAA,OAAO,iBAAiB;AAC1B;;;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"labelYearDropdown.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/labels/labelYearDropdown.js"],"sourcesContent":["/**\n * The ARIA label for the years dropdown.\n *\n * @defaultValue `\"Choose the Year\"`\n * @group Labels\n * @see https://daypicker.dev/docs/translation#aria-labels\n */\nexport function labelYearDropdown(options) {\n return \"Choose the Year\";\n}\n//# sourceMappingURL=labelYearDropdown.js.map"],"names":["labelYearDropdown","options"],"mappings":"AAEA;;;;;;;AAOM,SAAUA,iBAAiBA,CAACC,OAAwB,EAAA;AACxD,EAAA,OAAO,iBAAiB;AAC1B;;;;","x_google_ignoreList":[0]}
@@ -1,14 +1,5 @@
1
1
  import { useControlledValue } from '../helpers/useControlledValue.js';
2
2
 
3
- /**
4
- * Hook to manage multiple-date selection in the DayPicker component.
5
- *
6
- * @template T - The type of DayPicker props.
7
- * @param props - The DayPicker props.
8
- * @param dateLib - The date utility library instance.
9
- * @returns An object containing the selected dates, a function to select dates,
10
- * and a function to check if a date is selected.
11
- */
12
3
  function useMulti(props, dateLib) {
13
4
  const {
14
5
  selected: initiallySelected,
@@ -1 +1 @@
1
- {"version":3,"file":"useMulti.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/selection/useMulti.js"],"sourcesContent":["import { useControlledValue } from \"../helpers/useControlledValue.js\";\n/**\n * Hook to manage multiple-date selection in the DayPicker component.\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 An object containing the selected dates, a function to select dates,\n * and a function to check if a date is selected.\n */\nexport function useMulti(props, dateLib) {\n const { selected: initiallySelected, required, onSelect } = props;\n const [internallySelected, setSelected] = useControlledValue(initiallySelected, onSelect ? initiallySelected : undefined);\n const selected = !onSelect ? internallySelected : initiallySelected;\n const { isSameDay } = dateLib;\n const isSelected = (date) => {\n return selected?.some((d) => isSameDay(d, date)) ?? false;\n };\n const { min, max } = props;\n const select = (triggerDate, modifiers, e) => {\n let newDates = [...(selected ?? [])];\n if (isSelected(triggerDate)) {\n if (selected?.length === min) {\n // Min value reached, do nothing\n return;\n }\n if (required && selected?.length === 1) {\n // Required value already selected do nothing\n return;\n }\n newDates = selected?.filter((d) => !isSameDay(d, triggerDate));\n }\n else {\n if (selected?.length === max) {\n // Max value reached, reset the selection to date\n newDates = [triggerDate];\n }\n else {\n // Add the date to the selection\n newDates = [...newDates, triggerDate];\n }\n }\n if (!onSelect) {\n setSelected(newDates);\n }\n onSelect?.(newDates, triggerDate, modifiers, e);\n return newDates;\n };\n return {\n selected,\n select,\n isSelected\n };\n}\n//# sourceMappingURL=useMulti.js.map"],"names":["useMulti","props","dateLib","selected","initiallySelected","required","onSelect","internallySelected","setSelected","useControlledValue","undefined","isSameDay","isSelected","date","some","d","min","max","select","triggerDate","modifiers","e","newDates","length","filter"],"mappings":";;AAWA;;;;;;;;;AASM,SAAUA,QAAQA,CACtBC,KAAQ,EACRC,OAAgB,EAAA;EAEhB,MAAM;AACJC,IAAAA,QAAQ,EAAEC,iBAAiB;IAC3BC,QAAQ;AACRC,IAAAA;AAAQ,GACT,GAAGL,KAAmB;AAEvB,EAAA,MAAM,CAACM,kBAAkB,EAAEC,WAAW,CAAC,GAAGC,kBAAkB,CAC1DL,iBAAiB,EACjBE,QAAQ,GAAGF,iBAAiB,GAAGM,SAAS,CACzC;AAED,EAAA,MAAMP,QAAQ,GAAG,CAACG,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B,QAAQ;IACRe,MAAM;AACNN,IAAAA;AACe,GAAA;AACnB;;;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"useMulti.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/selection/useMulti.js"],"sourcesContent":["import { useControlledValue } from \"../helpers/useControlledValue.js\";\nexport function useMulti(props, dateLib) {\n const { selected: initiallySelected, required, onSelect } = props;\n const [internallySelected, setSelected] = useControlledValue(initiallySelected, onSelect ? initiallySelected : undefined);\n const selected = !onSelect ? internallySelected : initiallySelected;\n const { isSameDay } = dateLib;\n const isSelected = (date) => {\n return selected?.some((d) => isSameDay(d, date)) ?? false;\n };\n const { min, max } = props;\n const select = (triggerDate, modifiers, e) => {\n let newDates = [...(selected ?? [])];\n if (isSelected(triggerDate)) {\n if (selected?.length === min) {\n // Min value reached, do nothing\n return;\n }\n if (required && selected?.length === 1) {\n // Required value already selected do nothing\n return;\n }\n newDates = selected?.filter((d) => !isSameDay(d, triggerDate));\n }\n else {\n if (selected?.length === max) {\n // Max value reached, reset the selection to date\n newDates = [triggerDate];\n }\n else {\n // Add the date to the selection\n newDates = [...newDates, triggerDate];\n }\n }\n if (!onSelect) {\n setSelected(newDates);\n }\n onSelect?.(newDates, triggerDate, modifiers, e);\n return newDates;\n };\n return {\n selected,\n select,\n isSelected\n };\n}\n//# sourceMappingURL=useMulti.js.map"],"names":["useMulti","props","dateLib","selected","initiallySelected","required","onSelect","internallySelected","setSelected","useControlledValue","undefined","isSameDay","isSelected","date","some","d","min","max","select","triggerDate","modifiers","e","newDates","length","filter"],"mappings":";;AAWM,SAAUA,QAAQA,CACtBC,KAAQ,EACRC,OAAgB,EAAA;EAEhB,MAAM;AACJC,IAAAA,QAAQ,EAAEC,iBAAiB;IAC3BC,QAAQ;AACRC,IAAAA;AAAQ,GACT,GAAGL,KAAmB;AAEvB,EAAA,MAAM,CAACM,kBAAkB,EAAEC,WAAW,CAAC,GAAGC,kBAAkB,CAC1DL,iBAAiB,EACjBE,QAAQ,G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S,EAAEC,CAAC,CAAC;AAC/C,IAAA,OAAOC,QAAQ;GAChB;EAED,OAAO;IACLnB,QAAQ;IACRe,MAAM;AACNN,IAAAA;AACe,GAAA;AACnB;;;;","x_google_ignoreList":[0]}
@@ -1,17 +1,9 @@
1
1
  import { useControlledValue } from '../helpers/useControlledValue.js';
2
- import { rangeIncludesDate } from '../utils/rangeIncludesDate.js';
3
2
  import { addToRange } from '../utils/addToRange.js';
3
+ import '../classes/DateLib.js';
4
+ import { rangeIncludesDate } from '../utils/rangeIncludesDate.js';
4
5
  import { rangeContainsModifiers } from '../utils/rangeContainsModifiers.js';
5
6
 
6
- /**
7
- * Hook to manage range selection in the DayPicker component.
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 An object containing the selected range, a function to select a
13
- * range, and a function to check if a date is within the range.
14
- */
15
7
  function useRange(props, dateLib) {
16
8
  const {
17
9
  disabled,
@@ -1 +1 @@
1
- {"version":3,"file":"useRange.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/selection/useRange.js"],"sourcesContent":["import { useControlledValue } from \"../helpers/useControlledValue.js\";\nimport { addToRange, rangeContainsModifiers } from \"../utils/index.js\";\nimport { rangeIncludesDate } from \"../utils/rangeIncludesDate.js\";\n/**\n * Hook to manage range selection in the DayPicker component.\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 An object containing the selected range, a function to select a\n * range, and a function to check if a date is within the range.\n */\nexport function useRange(props, dateLib) {\n const { disabled, excludeDisabled, selected: initiallySelected, required, onSelect } = props;\n const [internallySelected, setSelected] = useControlledValue(initiallySelected, onSelect ? initiallySelected : undefined);\n const selected = !onSelect ? internallySelected : initiallySelected;\n const isSelected = (date) => selected && rangeIncludesDate(selected, date, false, dateLib);\n const select = (triggerDate, modifiers, e) => {\n const { min, max } = props;\n const newRange = triggerDate\n ? addToRange(triggerDate, selected, min, max, required, dateLib)\n : undefined;\n if (excludeDisabled && disabled && newRange?.from && newRange.to) {\n if (rangeContainsModifiers({ from: newRange.from, to: newRange.to }, disabled, dateLib)) {\n // if a disabled days is found, the range is reset\n newRange.from = triggerDate;\n newRange.to = undefined;\n }\n }\n if (!onSelect) {\n setSelected(newRange);\n }\n onSelect?.(newRange, triggerDate, modifiers, e);\n return newRange;\n };\n return {\n selected,\n select,\n isSelected\n };\n}\n//# sourceMappingURL=useRange.js.map"],"names":["useRange","props","dateLib","disabled","excludeDisabled","selected","initiallySelected","required","onSelect","internallySelected","setSelected","useControlledValue","undefined","isSelected","date","rangeIncludesDate","select","triggerDate","modifiers","e","min","max","newRange","addToRange","from","to","rangeContainsModifiers"],"mappings":";;;;;AAaA;;;;;;;;;AASM,SAAUA,QAAQA,CACtBC,KAAQ,EACRC,OAAgB,EAAA;EAEhB,MAAM;IACJC,QAAQ;IACRC,eAAe;AACfC,IAAAA,QAAQ,EAAEC,iBAAiB;IAC3BC,QAAQ;AACRC,IAAAA;AAAQ,GACT,GAAGP,KAAmB;AAEvB,EAAA,MAAM,CAACQ,kBAAkB,EAAEC,WAAW,CAAC,GAAGC,kBAAkB,CAC1DL,iBAAiB,EACjBE,QAAQ,GAAGF,iBAAiB,GAAGM,SAAS,CACzC;AAED,EAAA,MAAMP,QAAQ,GAAG,CAACG,QAAQ,GAAGC,kBAAkB,GAAGH,iBAAiB;AAEnE,EAAA,MAAMO,UAAU,GAAIC,IAAU,IAC5BT,QAAQ,IAAIU,iBAAiB,CAACV,QAAQ,EAAES,IAAI,EAAE,KAAK,EAAEZ,OAAO,CAAC;EAE/D,MAAMc,MAAM,GAAGA,CACbC,WAAiB,EACjBC,SAAoB,EACpBC,CAAyC,KACvC;IACF,MAAM;MAAEC,GAAG;AAAEC,MAAAA;AAAG,KAAE,GAAGpB,KAAmB;AACxC,IAAA,MAAMqB,QAAQ,GAAGL,WAAW,GACxBM,UAAU,CAACN,WAAW,EAAEZ,QAAQ,EAAEe,GAAG,EAAEC,GAAG,EAAEd,QAAQ,EAAEL,OAAO,CAAC,GAC9DU,SAAS;IAEb,IAAIR,eAAe,IAAID,QAAQ,IAAImB,QAAQ,EAAEE,IAAI,IAAIF,QAAQ,CAACG,EAAE,EAAE;AAChE,MAAA,IACEC,sBAAsB,CACpB;QAAEF,IAAI,EAAEF,QAAQ,CAACE,IAAI;QAAEC,EAAE,EAAEH,QAAQ,CAACG;AAAE,OAAE,EACxCtB,QAAQ,EACRD,OAAO,CACR,EACD;AACA;QACAoB,QAAQ,CAACE,IAAI,GAAGP,WAAW;QAC3BK,QAAQ,CAACG,EAAE,GAAGb,SAAS;AACzB;AACF;IAEA,IAAI,CAACJ,QAAQ,EAAE;MACbE,WAAW,CAACY,QAAQ,CAAC;AACvB;IACAd,QAAQ,GAAGc,QAAQ,EAAEL,WAAW,EAAEC,SAAS,EAAEC,CAAC,CAAC;AAE/C,IAAA,OAAOG,QAAQ;GAChB;EAED,OAAO;IACLjB,QAAQ;IACRW,MAAM;AACNH,IAAAA;AACe,GAAA;AACnB;;;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"useRange.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/selection/useRange.js"],"sourcesContent":["import { useControlledValue } from \"../helpers/useControlledValue.js\";\nimport { addToRange, rangeContainsModifiers } from \"../utils/index.js\";\nimport { rangeIncludesDate } from \"../utils/rangeIncludesDate.js\";\nexport function useRange(props, dateLib) {\n const { disabled, excludeDisabled, selected: initiallySelected, required, onSelect } = props;\n const [internallySelected, setSelected] = useControlledValue(initiallySelected, onSelect ? initiallySelected : undefined);\n const selected = !onSelect ? internallySelected : initiallySelected;\n const isSelected = (date) => selected && rangeIncludesDate(selected, date, false, dateLib);\n const select = (triggerDate, modifiers, e) => {\n const { min, max } = props;\n const newRange = triggerDate\n ? addToRange(triggerDate, selected, min, max, required, dateLib)\n : undefined;\n if (excludeDisabled && disabled && newRange?.from && newRange.to) {\n if (rangeContainsModifiers({ from: newRange.from, to: newRange.to }, disabled, dateLib)) {\n // if a disabled days is found, the range is reset\n newRange.from = triggerDate;\n newRange.to = undefined;\n }\n }\n if (!onSelect) {\n setSelected(newRange);\n }\n onSelect?.(newRange, triggerDate, modifiers, e);\n return newRange;\n };\n return {\n selected,\n select,\n isSelected\n };\n}\n//# sourceMappingURL=useRange.js.map"],"names":["useRange","props","dateLib","disabled","excludeDisabled","selected","initiallySelected","required","onSelect","internallySelected","setSelected","useControlledValue","undefined","isSelected","date","rangeIncludesDate","select","triggerDate","modifiers","e","min","max","newRange","addToRange","from","to","rangeContainsModifiers"],"mappings":";;;;;;AAaM,SAAUA,QAAQA,CACtBC,KAAQ,EACRC,OAAgB,EAAA;EAEhB,MAAM;IACJC,QAAQ;IACRC,eAAe;AACfC,IAAAA,QAAQ,EAAEC,iBAAiB;IAC3BC,QAAQ;AACRC,IAAAA;AAAQ,GACT,GAAGP,KAAmB;AAEvB,EAAA,MAAM,CAACQ,kBAAkB,EAAEC,WAAW,CAAC,GAAGC,kBAAkB,CAC1DL,iBAAiB,EACjBE,QAAQ,GAAGF,iBAAiB,GAAGM,SAAS,CACzC;AAED,EAAA,MAAMP,QAAQ,GAAG,CAACG,QAAQ,GAAGC,kBAAkB,GAAGH,iBAAiB;AAEnE,EAAA,MAAMO,UAAU,GAAIC,IAAU,IAC5BT,QAAQ,IAAIU,iBAAiB,CAACV,QAAQ,EAAES,IAAI,EAAE,KAAK,EAAEZ,OAAO,CAAC;EAE/D,MAAMc,MAAM,GAAGA,CACbC,WAAiB,EACjBC,SAAoB,EACpBC,CAAyC,KACvC;IACF,MAAM;MAAEC,GAAG;AAAEC,MAAAA;AAAG,KAAE,GAAGpB,KAAmB;AACxC,IAAA,MAAMqB,QAAQ,GAAGL,WAAW,GACxBM,UAAU,CAACN,WAAW,EAAEZ,QAAQ,EAAEe,GAAG,EAAEC,GAAG,EAAEd,QAAQ,EAAEL,OAAO,CAAC,GAC9DU,SAAS;IAEb,IAAIR,eAAe,IAAID,QAAQ,IAAImB,QAAQ,EAAEE,IAAI,IAAIF,QAAQ,CAACG,EAAE,EAAE;AAChE,MAAA,IACEC,sBAAsB,CACpB;QAAEF,IAAI,EAAEF,QAAQ,CAACE,IAAI;QAAEC,EAAE,EAAEH,QAAQ,CAACG;AAAE,OAAE,EACxCtB,QAAQ,EACRD,OAAO,CACR,EACD;AACA;QACAoB,QAAQ,CAACE,IAAI,GAAGP,WAAW;QAC3BK,QAAQ,CAACG,EAAE,GAAGb,SAAS;AACzB;AACF;IAEA,IAAI,CAACJ,QAAQ,EAAE;MACbE,WAAW,CAACY,QAAQ,CAAC;AACvB;IACAd,QAAQ,GAAGc,QAAQ,EAAEL,WAAW,EAAEC,SAAS,EAAEC,CAAC,CAAC;AAE/C,IAAA,OAAOG,QAAQ;GAChB;EAED,OAAO;IACLjB,QAAQ;IACRW,MAAM;AACNH,IAAAA;AACe,GAAA;AACnB;;;;","x_google_ignoreList":[0]}
@@ -1,14 +1,5 @@
1
1
  import { useControlledValue } from '../helpers/useControlledValue.js';
2
2
 
3
- /**
4
- * Hook to manage single-date selection in the DayPicker component.
5
- *
6
- * @template T - The type of DayPicker props.
7
- * @param props - The DayPicker props.
8
- * @param dateLib - The date utility library instance.
9
- * @returns An object containing the selected date, a function to select a date,
10
- * and a function to check if a date is selected.
11
- */
12
3
  function useSingle(props, dateLib) {
13
4
  const {
14
5
  selected: initiallySelected,
@@ -1 +1 @@
1
- {"version":3,"file":"useSingle.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/selection/useSingle.js"],"sourcesContent":["import { useControlledValue } from \"../helpers/useControlledValue.js\";\n/**\n * Hook to manage single-date selection in the DayPicker component.\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 An object containing the selected date, a function to select a date,\n * and a function to check if a date is selected.\n */\nexport function useSingle(props, dateLib) {\n const { selected: initiallySelected, required, onSelect } = props;\n const [internallySelected, setSelected] = useControlledValue(initiallySelected, onSelect ? initiallySelected : undefined);\n const selected = !onSelect ? internallySelected : initiallySelected;\n const { isSameDay } = dateLib;\n const isSelected = (compareDate) => {\n return selected ? isSameDay(selected, compareDate) : false;\n };\n const select = (triggerDate, modifiers, e) => {\n let newDate = triggerDate;\n if (!required && selected && selected && isSameDay(triggerDate, selected)) {\n // If the date is the same, clear the selection.\n newDate = undefined;\n }\n if (!onSelect) {\n setSelected(newDate);\n }\n if (required) {\n onSelect?.(newDate, triggerDate, modifiers, e);\n }\n else {\n onSelect?.(newDate, triggerDate, modifiers, e);\n }\n return newDate;\n };\n return {\n selected,\n select,\n isSelected\n };\n}\n//# sourceMappingURL=useSingle.js.map"],"names":["useSingle","props","dateLib","selected","initiallySelected","required","onSelect","internallySelected","setSelected","useControlledValue","undefined","isSameDay","isSelected","compareDate","select","triggerDate","modifiers","e","newDate"],"mappings":";;AAmBA;;;;;;;;;AASM,SAAUA,SAASA,CACvBC,KAAqB,EACrBC,OAAgB,EAAA;EAEhB,MAAM;AACJC,IAAAA,QAAQ,EAAEC,iBAAiB;IAC3BC,QAAQ;AACRC,IAAAA;AAAQ,GACT,GAAGL,KAAoB;AAExB,EAAA,MAAM,CAACM,kBAAkB,EAAEC,WAAW,CAAC,GAAGC,kBAAkB,CAC1DL,iBAAiB,EACjBE,QAAQ,GAAGF,iBAAiB,GAAGM,SAAS,CACzC;AAED,EAAA,MAAMP,QAAQ,GAAG,CAACG,QAAQ,GAAGC,kBAAkB,GAAGH,iBAAiB;EAEnE,MAAM;AAAEO,IAAAA;AAAS,GAAE,GAAGT,OAAO;EAE7B,MAAMU,UAAU,GAAIC,WAAiB,IAAI;IACvC,OAAOV,QAAQ,GAAGQ,SAAS,CAACR,QAAQ,EAAEU,WAAW,CAAC,GAAG,KAAK;GAC3D;EAED,MAAMC,MAAM,GAAGA,CACbC,WAAiB,EACjBC,SAAoB,EACpBC,CAAyC,KACvC;IACF,IAAIC,OAAO,GAAqBH,WAAW;AAC3C,IAAA,IAAI,CAACV,QAAQ,IAAIF,QAAQ,IAAIA,QAAQ,IAAIQ,SAAS,CAACI,WAAW,EAAEZ,QAAQ,CAAC,EAAE;AACzE;AACAe,MAAAA,OAAO,GAAGR,SAAS;AACrB;IACA,IAAI,CAACJ,QAAQ,EAAE;MACbE,WAAW,CAACU,OAAO,CAAC;AACtB;AACA,IAAA,IAAIb,QAAQ,EAAE;MACZC,QAAQ,GAAGY,OAAe,EAAEH,WAAW,EAAEC,SAAS,EAAEC,CAAC,CAAC;AACxD,KAAC,MAAM;MACLX,QAAQ,GAAGY,OAAO,EAAEH,WAAW,EAAEC,SAAS,EAAEC,CAAC,CAAC;AAChD;AACA,IAAA,OAAOC,OAAO;GACf;EAED,OAAO;IACLf,QAAQ;IACRW,MAAM;AACNF,IAAAA;AACe,GAAA;AACnB;;;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"useSingle.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/selection/useSingle.js"],"sourcesContent":["import { useControlledValue } from \"../helpers/useControlledValue.js\";\nexport function useSingle(props, dateLib) {\n const { selected: initiallySelected, required, onSelect } = props;\n const [internallySelected, setSelected] = useControlledValue(initiallySelected, onSelect ? initiallySelected : undefined);\n const selected = !onSelect ? internallySelected : initiallySelected;\n const { isSameDay } = dateLib;\n const isSelected = (compareDate) => {\n return selected ? isSameDay(selected, compareDate) : false;\n };\n const select = (triggerDate, modifiers, e) => {\n let newDate = triggerDate;\n if (!required && selected && selected && isSameDay(triggerDate, selected)) {\n // If the date is the same, clear the selection.\n newDate = undefined;\n }\n if (!onSelect) {\n setSelected(newDate);\n }\n if (required) {\n onSelect?.(newDate, triggerDate, modifiers, e);\n }\n else {\n onSelect?.(newDate, triggerDate, modifiers, e);\n }\n return newDate;\n };\n return {\n selected,\n select,\n isSelected\n };\n}\n//# sourceMappingURL=useSingle.js.map"],"names":["useSingle","props","dateLib","selected","initiallySelected","required","onSelect","internallySelected","setSelected","useControlledValue","undefined","isSameDay","isSelected","compareDate","select","triggerDate","modifiers","e","newDate"],"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reviousMonth } from './helpers/getPreviousMonth.js';
10
10
  import { getWeeks } from './helpers/getWeeks.js';
11
11
  import { useControlledValue } from './helpers/useControlledValue.js';
12
12
 
13
- /**
14
- * Provides the calendar object to work with the calendar in custom components.
15
- *
16
- * @private
17
- * @param props - The DayPicker props related to calendar configuration.
18
- * @param dateLib - The date utility library instance.
19
- * @returns The calendar object containing displayed days, weeks, months, and
20
- * navigation methods.
21
- */
13
+ /** @private */
22
14
  function useCalendar(props, dateLib) {
23
15
  const [navStart, navEnd] = getNavMonths(props, dateLib);
24
16
  const {
@@ -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/**\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":";;;;;;;;;;;;AAmE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":"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,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,K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