pixel-react 1.14.17 → 1.14.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +75 -75
- package/lib/_virtual/_commonjsHelpers.js +1 -26
- package/lib/_virtual/_commonjsHelpers.js.map +1 -1
- package/lib/_virtual/index10.js +2 -2
- package/lib/_virtual/index9.js +2 -2
- package/lib/assets/icons/spinner.svg.js +1 -1
- package/lib/assets/icons/spinner.svg.js.map +1 -1
- package/lib/components/DatePicker/DatePicker.js +1 -4
- package/lib/components/DatePicker/DatePicker.js.map +1 -1
- package/lib/index.cjs +2506 -7014
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.ts +2 -1
- package/lib/node_modules/draft-js/lib/AtomicBlockUtils.js +1 -1
- package/lib/node_modules/draft-js/lib/BlockMapBuilder.js +1 -1
- package/lib/node_modules/draft-js/lib/BlockTree.js +1 -1
- package/lib/node_modules/draft-js/lib/CharacterMetadata.js +1 -1
- package/lib/node_modules/draft-js/lib/CompositeDraftDecorator.js +1 -1
- package/lib/node_modules/draft-js/lib/ContentBlock.js +1 -1
- package/lib/node_modules/draft-js/lib/ContentBlockNode.js +1 -1
- package/lib/node_modules/draft-js/lib/ContentState.js +1 -1
- package/lib/node_modules/draft-js/lib/ContentStateInlineStyle.js +1 -1
- package/lib/node_modules/draft-js/lib/DOMObserver.js +1 -1
- package/lib/node_modules/draft-js/lib/DefaultDraftBlockRenderMap.js +1 -1
- package/lib/node_modules/draft-js/lib/DraftEditorBlockNode.react.js +1 -1
- package/lib/node_modules/draft-js/lib/DraftEditorNode.react.js +1 -1
- package/lib/node_modules/draft-js/lib/DraftEntity.js +1 -1
- package/lib/node_modules/draft-js/lib/DraftEntityInstance.js +1 -1
- package/lib/node_modules/draft-js/lib/DraftModifier.js +1 -1
- package/lib/node_modules/draft-js/lib/DraftPasteProcessor.js +1 -1
- package/lib/node_modules/draft-js/lib/EditorBidiService.js +1 -1
- package/lib/node_modules/draft-js/lib/EditorState.js +1 -1
- package/lib/node_modules/draft-js/lib/SelectionState.js +1 -1
- package/lib/node_modules/draft-js/lib/applyEntityToContentState.js +1 -1
- package/lib/node_modules/draft-js/lib/convertFromHTMLToContentBlocks.js +1 -1
- package/lib/node_modules/draft-js/lib/convertFromRawToDraftState.js +1 -1
- package/lib/node_modules/draft-js/lib/createCharacterList.js +1 -1
- package/lib/node_modules/draft-js/lib/decodeInlineStyleRanges.js +1 -1
- package/lib/node_modules/draft-js/lib/insertFragmentIntoContentState.js +1 -1
- package/lib/node_modules/draft-js/lib/insertTextIntoContentState.js +1 -1
- package/lib/node_modules/draft-js/lib/modifyBlockForContentState.js +1 -1
- package/lib/node_modules/draft-js/lib/moveBlockInContentState.js +1 -1
- package/lib/node_modules/draft-js/lib/randomizeBlockMapKeys.js +1 -1
- package/lib/node_modules/draft-js/lib/removeRangeFromContentState.js +1 -1
- package/lib/node_modules/draft-js/lib/splitBlockInContentState.js +1 -1
- package/lib/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js +1 -1
- package/lib/node_modules/{draft-js/node_modules/immutable → immutable}/dist/immutable.js +1 -1
- package/lib/node_modules/immutable/dist/immutable.js.map +1 -0
- package/lib/node_modules/js-beautify/js/src/css/index.js +1 -1
- package/lib/node_modules/js-beautify/js/src/css/options.js +1 -1
- package/lib/node_modules/js-beautify/js/src/html/beautifier.js +1 -1
- package/lib/node_modules/js-beautify/js/src/html/index.js +1 -1
- package/lib/node_modules/js-beautify/js/src/html/options.js +1 -1
- package/lib/node_modules/js-beautify/js/src/javascript/beautifier.js +1 -1
- package/lib/node_modules/js-beautify/js/src/javascript/options.js +1 -1
- package/lib/node_modules/libphonenumber-js/metadata.min.json.js +12 -12
- package/lib/node_modules/libphonenumber-js/metadata.min.json.js.map +1 -1
- package/lib/node_modules/prop-types/factoryWithTypeCheckers.js +1 -1
- package/lib/node_modules/prop-types/index.js +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/DayPicker.js +112 -17
- package/lib/node_modules/react-day-picker/dist/esm/DayPicker.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/UI.js +31 -9
- package/lib/node_modules/react-day-picker/dist/esm/UI.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/classes/CalendarDay.js +9 -6
- package/lib/node_modules/react-day-picker/dist/esm/classes/CalendarDay.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/classes/CalendarMonth.js +6 -1
- package/lib/node_modules/react-day-picker/dist/esm/classes/CalendarMonth.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/classes/CalendarWeek.js +5 -1
- package/lib/node_modules/react-day-picker/dist/esm/classes/CalendarWeek.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/classes/DateLib.js +55 -51
- package/lib/node_modules/react-day-picker/dist/esm/classes/DateLib.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/components/Chevron.js +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/components/Chevron.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/components/Day.js +4 -4
- package/lib/node_modules/react-day-picker/dist/esm/components/Day.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/components/DayButton.js +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/components/DayButton.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/components/Dropdown.js +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/components/Dropdown.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/components/DropdownNav.js +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/components/DropdownNav.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/components/Footer.js +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/components/Footer.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/components/Month.js +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/components/Month.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/components/MonthCaption.js +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/components/MonthCaption.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/components/MonthGrid.js +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/components/MonthGrid.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/components/Months.js +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/components/Months.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/components/MonthsDropdown.js +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/components/MonthsDropdown.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/components/Nav.js +16 -6
- package/lib/node_modules/react-day-picker/dist/esm/components/Nav.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/components/NextMonthButton.js +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/components/NextMonthButton.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/components/Option.js +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/components/Option.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/components/PreviousMonthButton.js +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/components/PreviousMonthButton.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/components/Root.js +7 -2
- package/lib/node_modules/react-day-picker/dist/esm/components/Root.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/components/Select.js +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/components/Select.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/components/Week.js +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/components/Week.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/components/WeekNumber.js +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/components/WeekNumber.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/components/WeekNumberHeader.js +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/components/WeekNumberHeader.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/components/Weekday.js +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/components/Weekday.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/components/Weekdays.js +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/components/Weekdays.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/components/Weeks.js +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/components/Weeks.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/components/YearsDropdown.js +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/components/YearsDropdown.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/formatters/formatCaption.js +7 -2
- package/lib/node_modules/react-day-picker/dist/esm/formatters/formatCaption.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/formatters/formatDay.js +7 -2
- package/lib/node_modules/react-day-picker/dist/esm/formatters/formatDay.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/formatters/formatMonthDropdown.js +6 -2
- package/lib/node_modules/react-day-picker/dist/esm/formatters/formatMonthDropdown.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumber.js +11 -5
- package/lib/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumber.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumberHeader.js +3 -2
- package/lib/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumberHeader.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/formatters/formatWeekdayName.js +7 -2
- package/lib/node_modules/react-day-picker/dist/esm/formatters/formatWeekdayName.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/formatters/formatYearDropdown.js +5 -1
- package/lib/node_modules/react-day-picker/dist/esm/formatters/formatYearDropdown.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/helpers/calculateFocusTarget.js +46 -19
- package/lib/node_modules/react-day-picker/dist/esm/helpers/calculateFocusTarget.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/{useGetModifiers.js → helpers/createGetModifiers.js} +13 -7
- package/lib/node_modules/react-day-picker/dist/esm/helpers/createGetModifiers.js.map +1 -0
- package/lib/node_modules/react-day-picker/dist/esm/helpers/endOfBroadcastWeek.js +7 -1
- package/lib/node_modules/react-day-picker/dist/esm/helpers/endOfBroadcastWeek.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/helpers/getBroadcastWeeksInMonth.js +8 -1
- package/lib/node_modules/react-day-picker/dist/esm/helpers/getBroadcastWeeksInMonth.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/helpers/getClassNamesForModifiers.js +12 -0
- package/lib/node_modules/react-day-picker/dist/esm/helpers/getClassNamesForModifiers.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/helpers/getComponents.js +10 -0
- package/lib/node_modules/react-day-picker/dist/esm/helpers/getComponents.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/helpers/getDataAttributes.js +11 -2
- package/lib/node_modules/react-day-picker/dist/esm/helpers/getDataAttributes.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/helpers/getDates.js +13 -2
- package/lib/node_modules/react-day-picker/dist/esm/helpers/getDates.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/helpers/getDays.js +4 -1
- package/lib/node_modules/react-day-picker/dist/esm/helpers/getDays.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/helpers/getDefaultClassNames.js +9 -2
- package/lib/node_modules/react-day-picker/dist/esm/helpers/getDefaultClassNames.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/helpers/getDisplayMonths.js +10 -0
- package/lib/node_modules/react-day-picker/dist/esm/helpers/getDisplayMonths.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/helpers/getFocusableDate.js +17 -2
- package/lib/node_modules/react-day-picker/dist/esm/helpers/getFocusableDate.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/helpers/getFormatters.js +7 -1
- package/lib/node_modules/react-day-picker/dist/esm/helpers/getFormatters.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/helpers/getInitialMonth.js +13 -3
- package/lib/node_modules/react-day-picker/dist/esm/helpers/getInitialMonth.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/helpers/getMonthOptions.js +15 -1
- package/lib/node_modules/react-day-picker/dist/esm/helpers/getMonthOptions.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/helpers/getMonths.js +17 -8
- package/lib/node_modules/react-day-picker/dist/esm/helpers/getMonths.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/helpers/getNavMonth.js +7 -1
- package/lib/node_modules/react-day-picker/dist/esm/helpers/getNavMonth.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/helpers/getNextFocus.js +20 -7
- package/lib/node_modules/react-day-picker/dist/esm/helpers/getNextFocus.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/helpers/getNextMonth.js +13 -6
- package/lib/node_modules/react-day-picker/dist/esm/helpers/getNextMonth.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/helpers/getPreviousMonth.js +13 -5
- package/lib/node_modules/react-day-picker/dist/esm/helpers/getPreviousMonth.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/helpers/getStyleForModifiers.js +11 -0
- package/lib/node_modules/react-day-picker/dist/esm/helpers/getStyleForModifiers.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/helpers/getWeekdays.js +9 -6
- package/lib/node_modules/react-day-picker/dist/esm/helpers/getWeekdays.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/helpers/getWeeks.js +6 -1
- package/lib/node_modules/react-day-picker/dist/esm/helpers/getWeeks.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/helpers/getYearOptions.js +13 -1
- package/lib/node_modules/react-day-picker/dist/esm/helpers/getYearOptions.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/helpers/startOfBroadcastWeek.js +8 -1
- package/lib/node_modules/react-day-picker/dist/esm/helpers/startOfBroadcastWeek.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/helpers/useControlledValue.js +10 -6
- package/lib/node_modules/react-day-picker/dist/esm/helpers/useControlledValue.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/labels/labelDayButton.js +9 -5
- package/lib/node_modules/react-day-picker/dist/esm/labels/labelDayButton.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/labels/labelGrid.js +7 -3
- package/lib/node_modules/react-day-picker/dist/esm/labels/labelGrid.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/labels/labelGridcell.js +7 -3
- package/lib/node_modules/react-day-picker/dist/esm/labels/labelGridcell.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/labels/labelMonthDropdown.js +3 -1
- package/lib/node_modules/react-day-picker/dist/esm/labels/labelMonthDropdown.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/labels/labelNav.js +2 -1
- package/lib/node_modules/react-day-picker/dist/esm/labels/labelNav.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/labels/labelNext.js +5 -3
- package/lib/node_modules/react-day-picker/dist/esm/labels/labelNext.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/labels/labelPrevious.js +5 -3
- package/lib/node_modules/react-day-picker/dist/esm/labels/labelPrevious.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/labels/labelWeekNumber.js +4 -1
- package/lib/node_modules/react-day-picker/dist/esm/labels/labelWeekNumber.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/labels/labelWeekNumberHeader.js +3 -1
- package/lib/node_modules/react-day-picker/dist/esm/labels/labelWeekNumberHeader.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/labels/labelWeekday.js +5 -1
- package/lib/node_modules/react-day-picker/dist/esm/labels/labelWeekday.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/labels/labelYearDropdown.js +3 -1
- package/lib/node_modules/react-day-picker/dist/esm/labels/labelYearDropdown.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/selection/useMulti.js +9 -0
- package/lib/node_modules/react-day-picker/dist/esm/selection/useMulti.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/selection/useRange.js +10 -2
- package/lib/node_modules/react-day-picker/dist/esm/selection/useRange.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/selection/useSingle.js +9 -0
- package/lib/node_modules/react-day-picker/dist/esm/selection/useSingle.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/useAnimation.js +158 -0
- package/lib/node_modules/react-day-picker/dist/esm/useAnimation.js.map +1 -0
- package/lib/node_modules/react-day-picker/dist/esm/useCalendar.js +9 -1
- package/lib/node_modules/react-day-picker/dist/esm/useCalendar.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/useDayPicker.js +4 -6
- package/lib/node_modules/react-day-picker/dist/esm/useDayPicker.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/useFocus.js +14 -1
- package/lib/node_modules/react-day-picker/dist/esm/useFocus.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/useSelection.js +10 -0
- package/lib/node_modules/react-day-picker/dist/esm/useSelection.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/utils/addToRange.js +10 -8
- package/lib/node_modules/react-day-picker/dist/esm/utils/addToRange.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/utils/dateMatchModifiers.js +5 -15
- package/lib/node_modules/react-day-picker/dist/esm/utils/dateMatchModifiers.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/utils/rangeContainsDayOfWeek.js +7 -9
- package/lib/node_modules/react-day-picker/dist/esm/utils/rangeContainsDayOfWeek.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/utils/rangeContainsModifiers.js +5 -14
- package/lib/node_modules/react-day-picker/dist/esm/utils/rangeContainsModifiers.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/utils/rangeIncludesDate.js +7 -3
- package/lib/node_modules/react-day-picker/dist/esm/utils/rangeIncludesDate.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/utils/rangeOverlaps.js +6 -2
- package/lib/node_modules/react-day-picker/dist/esm/utils/rangeOverlaps.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/utils/typeguards.js +19 -6
- package/lib/node_modules/react-day-picker/dist/esm/utils/typeguards.js.map +1 -1
- package/lib/node_modules/react-draft-wysiwyg/dist/react-draft-wysiwyg.js +2 -2
- package/lib/node_modules/react-draft-wysiwyg/dist/react-draft-wysiwyg.js.map +1 -1
- package/lib/node_modules/react-hook-form/dist/index.esm.js +1203 -1151
- package/lib/node_modules/react-hook-form/dist/index.esm.js.map +1 -1
- package/lib/node_modules/{prop-types/node_modules/react-is → react-is}/cjs/react-is.development.js +1 -1
- package/lib/node_modules/react-is/cjs/react-is.development.js.map +1 -0
- package/lib/node_modules/{prop-types/node_modules/react-is → react-is}/cjs/react-is.production.min.js +1 -1
- package/lib/node_modules/react-is/cjs/react-is.production.min.js.map +1 -0
- package/lib/node_modules/{hoist-non-react-statics/node_modules/react-is → react-is}/index.js +1 -1
- package/lib/node_modules/react-is/index.js.map +1 -0
- package/lib/node_modules/webrtc-adapter/src/js/common_shim.js +1 -1
- package/lib/node_modules/webrtc-adapter/src/js/common_shim.js.map +1 -1
- package/lib/node_modules/webrtc-adapter/src/js/utils.js +6 -4
- package/lib/node_modules/webrtc-adapter/src/js/utils.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +106 -106
- package/lib/_virtual/immutable.es.js +0 -7
- package/lib/_virtual/immutable.es.js.map +0 -1
- package/lib/_virtual/index14.js +0 -4
- package/lib/_virtual/index14.js.map +0 -1
- package/lib/_virtual/react-is.development2.js +0 -4
- package/lib/_virtual/react-is.development2.js.map +0 -1
- package/lib/_virtual/react-is.production.min2.js +0 -4
- package/lib/_virtual/react-is.production.min2.js.map +0 -1
- package/lib/node_modules/draft-js/node_modules/immutable/dist/immutable.js.map +0 -1
- package/lib/node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js +0 -175
- package/lib/node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js.map +0 -1
- package/lib/node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js +0 -125
- package/lib/node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js.map +0 -1
- package/lib/node_modules/hoist-non-react-statics/node_modules/react-is/index.js.map +0 -1
- package/lib/node_modules/immutable/dist/immutable.es.js +0 -4829
- package/lib/node_modules/immutable/dist/immutable.es.js.map +0 -1
- package/lib/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js.map +0 -1
- package/lib/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js.map +0 -1
- package/lib/node_modules/prop-types/node_modules/react-is/index.js +0 -18
- package/lib/node_modules/prop-types/node_modules/react-is/index.js.map +0 -1
- package/lib/node_modules/react-day-picker/dist/esm/useGetModifiers.js.map +0 -1
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"formatWeekNumber.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/formatters/formatWeekNumber.js"],"sourcesContent":["/**\n *
|
1
|
+
{"version":3,"file":"formatWeekNumber.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/formatters/formatWeekNumber.js"],"sourcesContent":["import { defaultDateLib } from \"../classes/DateLib.js\";\n/**\n * Formats the week number.\n *\n * @defaultValue The week number as a string, with a leading zero for single-digit numbers.\n * @param weekNumber The week number to format.\n * @param dateLib The date library to use for formatting. Defaults to\n * `defaultDateLib`.\n * @returns The formatted week number as a string.\n * @group Formatters\n * @see https://daypicker.dev/docs/translation#custom-formatters\n */\nexport function formatWeekNumber(weekNumber, dateLib = defaultDateLib) {\n if (weekNumber < 10) {\n return dateLib.formatNumber(`0${weekNumber.toLocaleString()}`);\n }\n return dateLib.formatNumber(`${weekNumber.toLocaleString()}`);\n}\n//# sourceMappingURL=formatWeekNumber.js.map"],"names":["formatWeekNumber","weekNumber","dateLib","defaultDateLib","formatNumber","toLocaleString"],"mappings":";;AAEA;;;;;;;;;;;AAWM,SAAUA,gBAAgBA,CAACC,UAAkB,EAAEC,OAAO,GAAGC,cAAc,EAAA;EAC3E,IAAIF,UAAU,GAAG,EAAE,EAAE;IACnB,OAAOC,OAAO,CAACE,YAAY,CAAC,CAAA,CAAA,EAAIH,UAAU,CAACI,cAAc,EAAE,CAAA,CAAE,CAAC;AAChE;EACA,OAAOH,OAAO,CAACE,YAAY,CAAC,CAAA,EAAGH,UAAU,CAACI,cAAc,EAAE,CAAA,CAAE,CAAC;AAC/D;;;;","x_google_ignoreList":[0]}
|
@@ -1,7 +1,8 @@
|
|
1
1
|
/**
|
2
|
-
*
|
2
|
+
* Formats the header for the week number column.
|
3
3
|
*
|
4
|
-
* @defaultValue `""
|
4
|
+
* @defaultValue An empty string `""`.
|
5
|
+
* @returns The formatted week number header as a string.
|
5
6
|
* @group Formatters
|
6
7
|
* @see https://daypicker.dev/docs/translation#custom-formatters
|
7
8
|
*/
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"formatWeekNumberHeader.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/formatters/formatWeekNumberHeader.js"],"sourcesContent":["/**\n *
|
1
|
+
{"version":3,"file":"formatWeekNumberHeader.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/formatters/formatWeekNumberHeader.js"],"sourcesContent":["/**\n * Formats the header for the week number column.\n *\n * @defaultValue An empty string `\"\"`.\n * @returns The formatted week number header as a string.\n * @group Formatters\n * @see https://daypicker.dev/docs/translation#custom-formatters\n */\nexport function formatWeekNumberHeader() {\n return ``;\n}\n//# sourceMappingURL=formatWeekNumberHeader.js.map"],"names":["formatWeekNumberHeader"],"mappings":"AAAA;;;;;;;;AAQM,SAAUA,sBAAsBA,GAAA;AACpC,EAAA,OAAO,CAAE,CAAA;AACX;;;;","x_google_ignoreList":[0]}
|
@@ -1,9 +1,14 @@
|
|
1
1
|
import { DateLib } from '../classes/DateLib.js';
|
2
2
|
|
3
3
|
/**
|
4
|
-
*
|
4
|
+
* Formats the name of a weekday to be displayed in the weekdays header.
|
5
5
|
*
|
6
|
-
* @defaultValue `cccccc` (e.g
|
6
|
+
* @defaultValue `cccccc` (e.g., "Mo" for Monday).
|
7
|
+
* @param weekday The date representing the weekday.
|
8
|
+
* @param options Configuration options for the date library.
|
9
|
+
* @param dateLib The date library to use for formatting. If not provided, a new
|
10
|
+
* instance is created.
|
11
|
+
* @returns The formatted weekday name as a string.
|
7
12
|
* @group Formatters
|
8
13
|
* @see https://daypicker.dev/docs/translation#custom-formatters
|
9
14
|
*/
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"formatWeekdayName.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/formatters/formatWeekdayName.js"],"sourcesContent":["import { DateLib } from \"../classes/DateLib.js\";\n/**\n *
|
1
|
+
{"version":3,"file":"formatWeekdayName.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/formatters/formatWeekdayName.js"],"sourcesContent":["import { DateLib } from \"../classes/DateLib.js\";\n/**\n * Formats the name of a weekday to be displayed in the weekdays header.\n *\n * @defaultValue `cccccc` (e.g., \"Mo\" for Monday).\n * @param weekday The date representing the weekday.\n * @param options Configuration options for the date library.\n * @param dateLib The date library to use for formatting. If not provided, a new\n * instance is created.\n * @returns The formatted weekday name as a string.\n * @group Formatters\n * @see https://daypicker.dev/docs/translation#custom-formatters\n */\nexport function formatWeekdayName(weekday, options, dateLib) {\n return (dateLib ?? new DateLib(options)).format(weekday, \"cccccc\");\n}\n//# sourceMappingURL=formatWeekdayName.js.map"],"names":["formatWeekdayName","weekday","options","dateLib","DateLib","format"],"mappings":";;AAEA;;;;;;;;;;;;AAYM,SAAUA,iBAAiBA,CAC/BC,OAAa,EACbC,OAAwB,EACxBC,OAAiB,EAAA;AAEjB,EAAA,OAAO,CAACA,OAAO,IAAI,IAAIC,OAAO,CAACF,OAAO,CAAC,EAAEG,MAAM,CAACJ,OAAO,EAAE,QAAQ,CAAC;AACpE;;;;","x_google_ignoreList":[0]}
|
@@ -1,8 +1,12 @@
|
|
1
1
|
import { defaultDateLib } from '../classes/DateLib.js';
|
2
2
|
|
3
3
|
/**
|
4
|
-
*
|
4
|
+
* Formats the year for the dropdown option label.
|
5
5
|
*
|
6
|
+
* @param year The year to format.
|
7
|
+
* @param dateLib The date library to use for formatting. Defaults to
|
8
|
+
* `defaultDateLib`.
|
9
|
+
* @returns The formatted year as a string.
|
6
10
|
* @group Formatters
|
7
11
|
* @see https://daypicker.dev/docs/translation#custom-formatters
|
8
12
|
*/
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"formatYearDropdown.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/formatters/formatYearDropdown.js"],"sourcesContent":["import { defaultDateLib } from \"../classes/DateLib.js\";\n/**\n *
|
1
|
+
{"version":3,"file":"formatYearDropdown.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/formatters/formatYearDropdown.js"],"sourcesContent":["import { defaultDateLib } from \"../classes/DateLib.js\";\n/**\n * Formats the year for the dropdown option label.\n *\n * @param year The year to format.\n * @param dateLib The date library to use for formatting. Defaults to\n * `defaultDateLib`.\n * @returns The formatted year as a string.\n * @group Formatters\n * @see https://daypicker.dev/docs/translation#custom-formatters\n */\nexport function formatYearDropdown(year, dateLib = defaultDateLib) {\n return dateLib.format(year, \"yyyy\");\n}\n/**\n * @private\n * @deprecated Use `formatYearDropdown` instead.\n * @group Formatters\n */\nexport const formatYearCaption = formatYearDropdown;\n//# sourceMappingURL=formatYearDropdown.js.map"],"names":["formatYearDropdown","year","dateLib","defaultDateLib","format","formatYearCaption"],"mappings":";;AAEA;;;;;;;;;;AAUM,SAAUA,kBAAkBA,CAChCC,IAAU,EACVC,OAAA,GAAmBC,cAAc,EAAA;AAEjC,EAAA,OAAOD,OAAO,CAACE,MAAM,CAACH,IAAI,EAAE,MAAM,CAAC;AACrC;AAEA;;;;;AAKO,MAAMI,iBAAiB,GAAGL;;;;","x_google_ignoreList":[0]}
|
@@ -1,35 +1,62 @@
|
|
1
1
|
import { DayFlag } from '../UI.js';
|
2
2
|
|
3
|
+
var FocusTargetPriority;
|
4
|
+
(function (FocusTargetPriority) {
|
5
|
+
FocusTargetPriority[FocusTargetPriority["Today"] = 0] = "Today";
|
6
|
+
FocusTargetPriority[FocusTargetPriority["Selected"] = 1] = "Selected";
|
7
|
+
FocusTargetPriority[FocusTargetPriority["LastFocused"] = 2] = "LastFocused";
|
8
|
+
FocusTargetPriority[FocusTargetPriority["FocusedModifier"] = 3] = "FocusedModifier";
|
9
|
+
})(FocusTargetPriority || (FocusTargetPriority = {}));
|
10
|
+
/**
|
11
|
+
* Determines if a day is focusable based on its modifiers.
|
12
|
+
*
|
13
|
+
* A day is considered focusable if it is not disabled, hidden, or outside the
|
14
|
+
* displayed month.
|
15
|
+
*
|
16
|
+
* @param modifiers The modifiers applied to the day.
|
17
|
+
* @returns `true` if the day is focusable, otherwise `false`.
|
18
|
+
*/
|
19
|
+
function isFocusableDay(modifiers) {
|
20
|
+
return !modifiers[DayFlag.disabled] && !modifiers[DayFlag.hidden] && !modifiers[DayFlag.outside];
|
21
|
+
}
|
22
|
+
/**
|
23
|
+
* Calculates the focus target day based on priority.
|
24
|
+
*
|
25
|
+
* This function determines the day that should receive focus in the calendar,
|
26
|
+
* prioritizing days with specific modifiers (e.g., "focused", "today") or
|
27
|
+
* selection states.
|
28
|
+
*
|
29
|
+
* @param days The array of `CalendarDay` objects to evaluate.
|
30
|
+
* @param getModifiers A function to retrieve the modifiers for a given day.
|
31
|
+
* @param isSelected A function to determine if a day is selected.
|
32
|
+
* @param lastFocused The last focused day, if any.
|
33
|
+
* @returns The `CalendarDay` that should receive focus, or `undefined` if no
|
34
|
+
* focusable day is found.
|
35
|
+
*/
|
3
36
|
function calculateFocusTarget(days, getModifiers, isSelected, lastFocused) {
|
4
37
|
let focusTarget;
|
5
|
-
let
|
6
|
-
|
7
|
-
while (index < days.length && !found) {
|
8
|
-
const day = days[index];
|
38
|
+
let foundFocusTargetPriority = -1;
|
39
|
+
for (const day of days) {
|
9
40
|
const modifiers = getModifiers(day);
|
10
|
-
if (
|
11
|
-
if (modifiers[DayFlag.focused]) {
|
41
|
+
if (isFocusableDay(modifiers)) {
|
42
|
+
if (modifiers[DayFlag.focused] && foundFocusTargetPriority < FocusTargetPriority.FocusedModifier) {
|
12
43
|
focusTarget = day;
|
13
|
-
|
14
|
-
} else if (lastFocused?.isEqualTo(day)) {
|
44
|
+
foundFocusTargetPriority = FocusTargetPriority.FocusedModifier;
|
45
|
+
} else if (lastFocused?.isEqualTo(day) && foundFocusTargetPriority < FocusTargetPriority.LastFocused) {
|
15
46
|
focusTarget = day;
|
16
|
-
|
17
|
-
} else if (isSelected(day.date)) {
|
47
|
+
foundFocusTargetPriority = FocusTargetPriority.LastFocused;
|
48
|
+
} else if (isSelected(day.date) && foundFocusTargetPriority < FocusTargetPriority.Selected) {
|
18
49
|
focusTarget = day;
|
19
|
-
|
20
|
-
} else if (modifiers[DayFlag.today]) {
|
50
|
+
foundFocusTargetPriority = FocusTargetPriority.Selected;
|
51
|
+
} else if (modifiers[DayFlag.today] && foundFocusTargetPriority < FocusTargetPriority.Today) {
|
21
52
|
focusTarget = day;
|
22
|
-
|
53
|
+
foundFocusTargetPriority = FocusTargetPriority.Today;
|
23
54
|
}
|
24
55
|
}
|
25
|
-
index++;
|
26
56
|
}
|
27
57
|
if (!focusTarget) {
|
28
|
-
//
|
29
|
-
focusTarget = days.find(day =>
|
30
|
-
const m = getModifiers(day);
|
31
|
-
return !m[DayFlag.disabled] && !m[DayFlag.hidden] && !m[DayFlag.outside];
|
32
|
-
});
|
58
|
+
// Return the first day that is focusable
|
59
|
+
focusTarget = days.find(day => isFocusableDay(getModifiers(day)));
|
33
60
|
}
|
34
61
|
return focusTarget;
|
35
62
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"calculateFocusTarget.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/helpers/calculateFocusTarget.js"],"sourcesContent":["import { DayFlag } from \"../UI.js\";\
|
1
|
+
{"version":3,"file":"calculateFocusTarget.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/helpers/calculateFocusTarget.js"],"sourcesContent":["import { DayFlag } from \"../UI.js\";\nvar FocusTargetPriority;\n(function (FocusTargetPriority) {\n FocusTargetPriority[FocusTargetPriority[\"Today\"] = 0] = \"Today\";\n FocusTargetPriority[FocusTargetPriority[\"Selected\"] = 1] = \"Selected\";\n FocusTargetPriority[FocusTargetPriority[\"LastFocused\"] = 2] = \"LastFocused\";\n FocusTargetPriority[FocusTargetPriority[\"FocusedModifier\"] = 3] = \"FocusedModifier\";\n})(FocusTargetPriority || (FocusTargetPriority = {}));\n/**\n * Determines if a day is focusable based on its modifiers.\n *\n * A day is considered focusable if it is not disabled, hidden, or outside the\n * displayed month.\n *\n * @param modifiers The modifiers applied to the day.\n * @returns `true` if the day is focusable, otherwise `false`.\n */\nfunction isFocusableDay(modifiers) {\n return (!modifiers[DayFlag.disabled] &&\n !modifiers[DayFlag.hidden] &&\n !modifiers[DayFlag.outside]);\n}\n/**\n * Calculates the focus target day based on priority.\n *\n * This function determines the day that should receive focus in the calendar,\n * prioritizing days with specific modifiers (e.g., \"focused\", \"today\") or\n * selection states.\n *\n * @param days The array of `CalendarDay` objects to evaluate.\n * @param getModifiers A function to retrieve the modifiers for a given day.\n * @param isSelected A function to determine if a day is selected.\n * @param lastFocused The last focused day, if any.\n * @returns The `CalendarDay` that should receive focus, or `undefined` if no\n * focusable day is found.\n */\nexport function calculateFocusTarget(days, getModifiers, isSelected, lastFocused) {\n let focusTarget;\n let foundFocusTargetPriority = -1;\n for (const day of days) {\n const modifiers = getModifiers(day);\n if (isFocusableDay(modifiers)) {\n if (modifiers[DayFlag.focused] &&\n foundFocusTargetPriority < FocusTargetPriority.FocusedModifier) {\n focusTarget = day;\n foundFocusTargetPriority = FocusTargetPriority.FocusedModifier;\n }\n else if (lastFocused?.isEqualTo(day) &&\n foundFocusTargetPriority < FocusTargetPriority.LastFocused) {\n focusTarget = day;\n foundFocusTargetPriority = FocusTargetPriority.LastFocused;\n }\n else if (isSelected(day.date) &&\n foundFocusTargetPriority < FocusTargetPriority.Selected) {\n focusTarget = day;\n foundFocusTargetPriority = FocusTargetPriority.Selected;\n }\n else if (modifiers[DayFlag.today] &&\n foundFocusTargetPriority < FocusTargetPriority.Today) {\n focusTarget = day;\n foundFocusTargetPriority = FocusTargetPriority.Today;\n }\n }\n }\n if (!focusTarget) {\n // Return the first day that is focusable\n focusTarget = days.find((day) => isFocusableDay(getModifiers(day)));\n }\n return focusTarget;\n}\n//# sourceMappingURL=calculateFocusTarget.js.map"],"names":["FocusTargetPriority","isFocusableDay","modifiers","DayFlag","disabled","hidden","outside","calculateFocusTarget","days","getModifiers","isSelected","lastFocused","focusTarget","foundFocusTargetPriority","day","focused","FocusedModifier","isEqualTo","LastFocused","date","Selected","today","Today","find"],"mappings":";;AAIA,IAAKA,mBAKJ;AALD,CAAA,UAAKA,mBAAmB,EAAA;EACtBA,mBAAA,CAAAA,mBAAA,CAAS,OAAA,CAAA,GAAA,CAAA,CAAA,GAAA,OAAA;EACTA,mBAAA,CAAAA,mBAAA,CAAQ,UAAA,CAAA,GAAA,CAAA,CAAA,GAAA,UAAA;EACRA,mBAAA,CAAAA,mBAAA,CAAW,aAAA,CAAA,GAAA,CAAA,CAAA,GAAA,aAAA;EACXA,mBAAA,CAAAA,mBAAA,CAAe,iBAAA,CAAA,GAAA,CAAA,CAAA,GAAA,iBAAA;AACjB,CAAC,EALIA,mBAAmB,KAAnBA,mBAAmB,GAAA,EAAA,CAAA,CAAA;AAOxB;;;;;;;;;AASA,SAASC,cAAcA,CAACC,SAAoB,EAAA;EAC1C,OACE,CAACA,SAAS,CAACC,OAAO,CAACC,QAAQ,CAAC,IAC5B,CAACF,SAAS,CAACC,OAAO,CAACE,MAAM,CAAC,IAC1B,CAACH,SAAS,CAACC,OAAO,CAACG,OAAO,CAAC;AAE/B;AAEA;;;;;;;;;;;;;;AAcM,SAAUC,oBAAoBA,CAClCC,IAAmB,EACnBC,YAA6C,EAC7CC,UAAmC,EACnCC,WAAoC,EAAA;AAEpC,EAAA,IAAIC,WAAoC;EAExC,IAAIC,wBAAwB,GAA6B,EAAE;AAC3D,EAAA,KAAK,MAAMC,GAAG,IAAIN,IAAI,EAAE;AACtB,IAAA,MAAMN,SAAS,GAAGO,YAAY,CAACK,GAAG,CAAC;AAEnC,IAAA,IAAIb,cAAc,CAACC,SAAS,CAAC,EAAE;AAC7B,MAAA,IACEA,SAAS,CAACC,OAAO,CAACY,OAAO,CAAC,IAC1BF,wBAAwB,GAAGb,mBAAmB,CAACgB,eAAe,EAC9D;AACAJ,QAAAA,WAAW,GAAGE,GAAG;QACjBD,wBAAwB,GAAGb,mBAAmB,CAACgB,eAAe;AAChE,OAAC,MAAM,IACLL,WAAW,EAAEM,SAAS,CAACH,GAAG,CAAC,IAC3BD,wBAAwB,GAAGb,mBAAmB,CAACkB,WAAW,EAC1D;AACAN,QAAAA,WAAW,GAAGE,GAAG;QACjBD,wBAAwB,GAAGb,mBAAmB,CAACkB,WAAW;AAC5D,OAAC,MAAM,IACLR,UAAU,CAACI,GAAG,CAACK,IAAI,CAAC,IACpBN,wBAAwB,GAAGb,mBAAmB,CAACoB,QAAQ,EACvD;AACAR,QAAAA,WAAW,GAAGE,GAAG;QACjBD,wBAAwB,GAAGb,mBAAmB,CAACoB,QAAQ;AACzD,OAAC,MAAM,IACLlB,SAAS,CAACC,OAAO,CAACkB,KAAK,CAAC,IACxBR,wBAAwB,GAAGb,mBAAmB,CAACsB,KAAK,EACpD;AACAV,QAAAA,WAAW,GAAGE,GAAG;QACjBD,wBAAwB,GAAGb,mBAAmB,CAACsB,KAAK;AACtD;AACF;AACF;EAEA,IAAI,CAACV,WAAW,EAAE;AAChB;AACAA,IAAAA,WAAW,GAAGJ,IAAI,CAACe,IAAI,CAAET,GAAG,IAAKb,cAAc,CAACQ,YAAY,CAACK,GAAG,CAAC,CAAC,CAAC;AACrE;AACA,EAAA,OAAOF,WAAW;AACpB;;;;","x_google_ignoreList":[0]}
|
@@ -1,14 +1,20 @@
|
|
1
|
-
import { DayFlag } from '
|
2
|
-
import { dateMatchModifiers } from '
|
1
|
+
import { DayFlag } from '../UI.js';
|
2
|
+
import { dateMatchModifiers } from '../utils/dateMatchModifiers.js';
|
3
3
|
|
4
4
|
/**
|
5
|
-
*
|
5
|
+
* Creates a function to retrieve the modifiers for a given day.
|
6
6
|
*
|
7
|
-
*
|
7
|
+
* This function calculates both internal and custom modifiers for each day
|
8
|
+
* based on the provided calendar days and DayPicker props.
|
8
9
|
*
|
9
10
|
* @private
|
11
|
+
* @param days The array of `CalendarDay` objects to process.
|
12
|
+
* @param props The DayPicker props, including modifiers and configuration
|
13
|
+
* options.
|
14
|
+
* @param dateLib The date library to use for date manipulation.
|
15
|
+
* @returns A function that retrieves the modifiers for a given `CalendarDay`.
|
10
16
|
*/
|
11
|
-
function
|
17
|
+
function createGetModifiers(days, props, dateLib) {
|
12
18
|
const {
|
13
19
|
disabled,
|
14
20
|
hidden,
|
@@ -92,5 +98,5 @@ function useGetModifiers(days, props, dateLib) {
|
|
92
98
|
};
|
93
99
|
}
|
94
100
|
|
95
|
-
export {
|
96
|
-
//# sourceMappingURL=
|
101
|
+
export { createGetModifiers };
|
102
|
+
//# sourceMappingURL=createGetModifiers.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"createGetModifiers.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/helpers/createGetModifiers.js"],"sourcesContent":["import { DayFlag } from \"../UI.js\";\nimport { dateMatchModifiers } from \"../utils/dateMatchModifiers.js\";\n/**\n * Creates a function to retrieve the modifiers for a given day.\n *\n * This function calculates both internal and custom modifiers for each day\n * based on the provided calendar days and DayPicker props.\n *\n * @private\n * @param days The array of `CalendarDay` objects to process.\n * @param props The DayPicker props, including modifiers and configuration\n * options.\n * @param dateLib The date library to use for date manipulation.\n * @returns A function that retrieves the modifiers for a given `CalendarDay`.\n */\nexport function createGetModifiers(days, props, dateLib) {\n const { disabled, hidden, modifiers, showOutsideDays, broadcastCalendar, today } = props;\n const { isSameDay, isSameMonth, startOfMonth, isBefore, endOfMonth, isAfter } = dateLib;\n const startMonth = props.startMonth && startOfMonth(props.startMonth);\n const endMonth = props.endMonth && endOfMonth(props.endMonth);\n const internalModifiersMap = {\n [DayFlag.focused]: [],\n [DayFlag.outside]: [],\n [DayFlag.disabled]: [],\n [DayFlag.hidden]: [],\n [DayFlag.today]: []\n };\n const customModifiersMap = {};\n for (const day of days) {\n const { date, displayMonth } = day;\n const isOutside = Boolean(displayMonth && !isSameMonth(date, displayMonth));\n const isBeforeStartMonth = Boolean(startMonth && isBefore(date, startMonth));\n const isAfterEndMonth = Boolean(endMonth && isAfter(date, endMonth));\n const isDisabled = Boolean(disabled && dateMatchModifiers(date, disabled, dateLib));\n const isHidden = Boolean(hidden && dateMatchModifiers(date, hidden, dateLib)) ||\n isBeforeStartMonth ||\n isAfterEndMonth ||\n // Broadcast calendar will show outside days as default\n (!broadcastCalendar && !showOutsideDays && isOutside) ||\n (broadcastCalendar && showOutsideDays === false && isOutside);\n const isToday = isSameDay(date, today ?? dateLib.today());\n if (isOutside)\n internalModifiersMap.outside.push(day);\n if (isDisabled)\n internalModifiersMap.disabled.push(day);\n if (isHidden)\n internalModifiersMap.hidden.push(day);\n if (isToday)\n internalModifiersMap.today.push(day);\n // Add custom modifiers\n if (modifiers) {\n Object.keys(modifiers).forEach((name) => {\n const modifierValue = modifiers?.[name];\n const isMatch = modifierValue\n ? dateMatchModifiers(date, modifierValue, dateLib)\n : false;\n if (!isMatch)\n return;\n if (customModifiersMap[name]) {\n customModifiersMap[name].push(day);\n }\n else {\n customModifiersMap[name] = [day];\n }\n });\n }\n }\n return (day) => {\n // Initialize all the modifiers to false\n const dayFlags = {\n [DayFlag.focused]: false,\n [DayFlag.disabled]: false,\n [DayFlag.hidden]: false,\n [DayFlag.outside]: false,\n [DayFlag.today]: false\n };\n const customModifiers = {};\n // Find the modifiers for the given day\n for (const name in internalModifiersMap) {\n const days = internalModifiersMap[name];\n dayFlags[name] = days.some((d) => d === day);\n }\n for (const name in customModifiersMap) {\n customModifiers[name] = customModifiersMap[name].some((d) => d === day);\n }\n return {\n ...dayFlags,\n // custom modifiers should override all the previous ones\n ...customModifiers\n };\n };\n}\n//# sourceMappingURL=createGetModifiers.js.map"],"names":["createGetModifiers","days","props","dateLib","disabled","hidden","modifiers","showOutsideDays","broadcastCalendar","today","isSameDay","isSameMonth","startOfMonth","isBefore","endOfMonth","isAfter","startMonth","endMonth","internalModifiersMap","DayFlag","focused","outside","customModifiersMap","day","date","displayMonth","isOutside","Boolean","isBeforeStartMonth","isAfterEndMonth","isDisabled","dateMatchModifiers","isHidden","isToday","push","Object","keys","forEach","name","modifierValue","isMatch","dayFlags","customModifiers","some","d"],"mappings":";;;AAKA;;;;;;;;;;;;;AAaM,SAAUA,kBAAkBA,CAChCC,IAAmB,EACnBC,KAAqB,EACrBC,OAAgB,EAAA;EAEhB,MAAM;IACJC,QAAQ;IACRC,MAAM;IACNC,SAAS;IACTC,eAAe;IACfC,iBAAiB;AACjBC,IAAAA;AAAK,GACN,GAAGP,KAAK;EAET,MAAM;IACJQ,SAAS;IACTC,WAAW;IACXC,YAAY;IACZC,QAAQ;IACRC,UAAU;AACVC,IAAAA;AAAO,GACR,GAAGZ,OAAO;EAEX,MAAMa,UAAU,GAAGd,KAAK,CAACc,UAAU,IAAIJ,YAAY,CAACV,KAAK,CAACc,UAAU,CAAC;EACrE,MAAMC,QAAQ,GAAGf,KAAK,CAACe,QAAQ,IAAIH,UAAU,CAACZ,KAAK,CAACe,QAAQ,CAAC;AAE7D,EAAA,MAAMC,oBAAoB,GAAmC;AAC3D,IAAA,CAACC,OAAO,CAACC,OAAO,GAAG,EAAE;AACrB,IAAA,CAACD,OAAO,CAACE,OAAO,GAAG,EAAE;AACrB,IAAA,CAACF,OAAO,CAACf,QAAQ,GAAG,EAAE;AACtB,IAAA,CAACe,OAAO,CAACd,MAAM,GAAG,EAAE;IACpB,CAACc,OAAO,CAACV,KAAK,GAAG;AAClB,GAAA;EAED,MAAMa,kBAAkB,GAAkC,EAAE;AAE5D,EAAA,KAAK,MAAMC,GAAG,IAAItB,IAAI,EAAE;IACtB,MAAM;MAAEuB,IAAI;AAAEC,MAAAA;AAAY,KAAE,GAAGF,GAAG;AAElC,IAAA,MAAMG,SAAS,GAAGC,OAAO,CAACF,YAAY,IAAI,CAACd,WAAW,CAACa,IAAI,EAAEC,YAAY,CAAC,CAAC;AAE3E,IAAA,MAAMG,kBAAkB,GAAGD,OAAO,CAChCX,UAAU,IAAIH,QAAQ,CAACW,IAAI,EAAER,UAAU,CAAC,CACzC;AAED,IAAA,MAAMa,eAAe,GAAGF,OAAO,CAACV,QAAQ,IAAIF,OAAO,CAACS,IAAI,EAAEP,QAAQ,CAAC,CAAC;AAEpE,IAAA,MAAMa,UAAU,GAAGH,OAAO,CACxBvB,QAAQ,IAAI2B,kBAAkB,CAACP,IAAI,EAAEpB,QAAQ,EAAED,OAAO,CAAC,CACxD;AAED,IAAA,MAAM6B,QAAQ,GACZL,OAAO,CAACtB,MAAM,IAAI0B,kBAAkB,CAACP,IAAI,EAAEnB,MAAM,EAAEF,OAAO,CAAC,CAAC,IAC5DyB,kBAAkB,IAClBC,eAAe;AACf;AACC,IAAA,CAACrB,iBAAiB,IAAI,CAACD,eAAe,IAAImB,SAAU,IACpDlB,iBAAiB,IAAID,eAAe,KAAK,KAAK,IAAImB,SAAU;AAE/D,IAAA,MAAMO,OAAO,GAAGvB,SAAS,CAACc,IAAI,EAAEf,KAAK,IAAIN,OAAO,CAACM,KAAK,EAAE,CAAC;IAEzD,IAAIiB,SAAS,EAAER,oBAAoB,CAACG,OAAO,CAACa,IAAI,CAACX,GAAG,CAAC;IACrD,IAAIO,UAAU,EAAEZ,oBAAoB,CAACd,QAAQ,CAAC8B,IAAI,CAACX,GAAG,CAAC;IACvD,IAAIS,QAAQ,EAAEd,oBAAoB,CAACb,MAAM,CAAC6B,IAAI,CAACX,GAAG,CAAC;IACnD,IAAIU,OAAO,EAAEf,oBAAoB,CAACT,KAAK,CAACyB,IAAI,CAACX,GAAG,CAAC;AAEjD;AACA,IAAA,IAAIjB,SAAS,EAAE;MACb6B,MAAM,CAACC,IAAI,CAAC9B,SAAS,CAAC,CAAC+B,OAAO,CAAEC,IAAI,IAAI;AACtC,QAAA,MAAMC,aAAa,GAAGjC,SAAS,GAAGgC,IAAI,CAAC;AACvC,QAAA,MAAME,OAAO,GAAGD,aAAa,GACzBR,kBAAkB,CAACP,IAAI,EAAEe,aAAa,EAAEpC,OAAO,CAAC,GAChD,KAAK;QACT,IAAI,CAACqC,OAAO,EAAE;AACd,QAAA,IAAIlB,kBAAkB,CAACgB,IAAI,CAAC,EAAE;AAC5BhB,UAAAA,kBAAkB,CAACgB,IAAI,CAAC,CAACJ,IAAI,CAACX,GAAG,CAAC;AACpC,SAAC,MAAM;AACLD,UAAAA,kBAAkB,CAACgB,IAAI,CAAC,GAAG,CAACf,GAAG,CAAC;AAClC;AACF,OAAC,CAAC;AACJ;AACF;AAEA,EAAA,OAAQA,GAAgB,IAAe;AACrC;AACA,IAAA,MAAMkB,QAAQ,GAA6B;AACzC,MAAA,CAACtB,OAAO,CAACC,OAAO,GAAG,KAAK;AACxB,MAAA,CAACD,OAAO,CAACf,QAAQ,GAAG,KAAK;AACzB,MAAA,CAACe,OAAO,CAACd,MAAM,GAAG,KAAK;AACvB,MAAA,CAACc,OAAO,CAACE,OAAO,GAAG,KAAK;MACxB,CAACF,OAAO,CAACV,KAAK,GAAG;AAClB,KAAA;IACD,MAAMiC,eAAe,GAAc,EAAE;AAErC;AACA,IAAA,KAAK,MAAMJ,IAAI,IAAIpB,oBAAoB,EAAE;AACvC,MAAA,MAAMjB,IAAI,GAAGiB,oBAAoB,CAACoB,IAAe,CAAC;AAClDG,MAAAA,QAAQ,CAACH,IAAe,CAAC,GAAGrC,IAAI,CAAC0C,IAAI,CAAEC,CAAC,IAAKA,CAAC,KAAKrB,GAAG,CAAC;AACzD;AACA,IAAA,KAAK,MAAMe,IAAI,IAAIhB,kBAAkB,EAAE;AACrCoB,MAAAA,eAAe,CAACJ,IAAI,CAAC,GAAGhB,kBAAkB,CAACgB,IAAI,CAAC,CAACK,IAAI,CAAEC,CAAC,IAAKA,CAAC,KAAKrB,GAAG,CAAC;AACzE;IAEA,OAAO;AACL,MAAA,GAAGkB,QAAQ;AACX;MACA,GAAGC;AACJ,KAAA;GACF;AACH;;;;","x_google_ignoreList":[0]}
|
@@ -2,9 +2,15 @@ import { getBroadcastWeeksInMonth } from './getBroadcastWeeksInMonth.js';
|
|
2
2
|
import { startOfBroadcastWeek } from './startOfBroadcastWeek.js';
|
3
3
|
|
4
4
|
/**
|
5
|
-
*
|
5
|
+
* Returns the end date of the week in the broadcast calendar.
|
6
|
+
*
|
7
|
+
* The broadcast week ends on the last day of the last broadcast week for the
|
8
|
+
* given date.
|
6
9
|
*
|
7
10
|
* @since 9.4.0
|
11
|
+
* @param date The date for which to calculate the end of the broadcast week.
|
12
|
+
* @param dateLib The date library to use for date manipulation.
|
13
|
+
* @returns The end date of the broadcast week.
|
8
14
|
*/
|
9
15
|
function endOfBroadcastWeek(date, dateLib) {
|
10
16
|
const startDate = startOfBroadcastWeek(date, dateLib);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"endOfBroadcastWeek.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/helpers/endOfBroadcastWeek.js"],"sourcesContent":["import { getBroadcastWeeksInMonth } from \"./getBroadcastWeeksInMonth.js\";\nimport { startOfBroadcastWeek } from \"./startOfBroadcastWeek.js\";\n/**\n *
|
1
|
+
{"version":3,"file":"endOfBroadcastWeek.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/helpers/endOfBroadcastWeek.js"],"sourcesContent":["import { getBroadcastWeeksInMonth } from \"./getBroadcastWeeksInMonth.js\";\nimport { startOfBroadcastWeek } from \"./startOfBroadcastWeek.js\";\n/**\n * Returns the end date of the week in the broadcast calendar.\n *\n * The broadcast week ends on the last day of the last broadcast week for the\n * given date.\n *\n * @since 9.4.0\n * @param date The date for which to calculate the end of the broadcast week.\n * @param dateLib The date library to use for date manipulation.\n * @returns The end date of the broadcast week.\n */\nexport function endOfBroadcastWeek(date, dateLib) {\n const startDate = startOfBroadcastWeek(date, dateLib);\n const numberOfWeeks = getBroadcastWeeksInMonth(date, dateLib);\n const endDate = dateLib.addDays(startDate, numberOfWeeks * 7 - 1);\n return endDate;\n}\n//# sourceMappingURL=endOfBroadcastWeek.js.map"],"names":["endOfBroadcastWeek","date","dateLib","startDate","startOfBroadcastWeek","numberOfWeeks","getBroadcastWeeksInMonth","endDate","addDays"],"mappings":";;;AAKA;;;;;;;;;;;AAWM,SAAUA,kBAAkBA,CAACC,IAAU,EAAEC,OAAgB,EAAA;AAC7D,EAAA,MAAMC,SAAS,GAAGC,oBAAoB,CAACH,IAAI,EAAEC,OAAO,CAAC;AACrD,EAAA,MAAMG,aAAa,GAAGC,wBAAwB,CAACL,IAAI,EAAEC,OAAO,CAAC;AAC7D,EAAA,MAAMK,OAAO,GAAGL,OAAO,CAACM,OAAO,CAACL,SAAS,EAAEE,aAAa,GAAG,CAAC,GAAG,CAAC,CAAC;AACjE,EAAA,OAAOE,OAAO;AAChB;;;;","x_google_ignoreList":[0]}
|
@@ -1,9 +1,16 @@
|
|
1
1
|
const FIVE_WEEKS = 5;
|
2
2
|
const FOUR_WEEKS = 4;
|
3
3
|
/**
|
4
|
-
*
|
4
|
+
* Returns the number of weeks to display in the broadcast calendar for a given
|
5
|
+
* month.
|
6
|
+
*
|
7
|
+
* The broadcast calendar may have either 4 or 5 weeks in a month, depending on
|
8
|
+
* the start and end dates of the broadcast weeks.
|
5
9
|
*
|
6
10
|
* @since 9.4.0
|
11
|
+
* @param month The month for which to calculate the number of weeks.
|
12
|
+
* @param dateLib The date library to use for date manipulation.
|
13
|
+
* @returns The number of weeks in the broadcast calendar (4 or 5).
|
7
14
|
*/
|
8
15
|
function getBroadcastWeeksInMonth(month, dateLib) {
|
9
16
|
// Get the first day of the month
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"getBroadcastWeeksInMonth.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/helpers/getBroadcastWeeksInMonth.js"],"sourcesContent":["const FIVE_WEEKS = 5;\nconst FOUR_WEEKS = 4;\n/**\n *
|
1
|
+
{"version":3,"file":"getBroadcastWeeksInMonth.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/helpers/getBroadcastWeeksInMonth.js"],"sourcesContent":["const FIVE_WEEKS = 5;\nconst FOUR_WEEKS = 4;\n/**\n * Returns the number of weeks to display in the broadcast calendar for a given\n * month.\n *\n * The broadcast calendar may have either 4 or 5 weeks in a month, depending on\n * the start and end dates of the broadcast weeks.\n *\n * @since 9.4.0\n * @param month The month for which to calculate the number of weeks.\n * @param dateLib The date library to use for date manipulation.\n * @returns The number of weeks in the broadcast calendar (4 or 5).\n */\nexport function getBroadcastWeeksInMonth(month, dateLib) {\n // Get the first day of the month\n const firstDayOfMonth = dateLib.startOfMonth(month);\n // Get the day of the week for the first day of the month (1-7, where 1 is Monday)\n const firstDayOfWeek = firstDayOfMonth.getDay() > 0 ? firstDayOfMonth.getDay() : 7;\n const broadcastStartDate = dateLib.addDays(month, -firstDayOfWeek + 1);\n const lastDateOfLastWeek = dateLib.addDays(broadcastStartDate, FIVE_WEEKS * 7 - 1);\n const numberOfWeeks = dateLib.getMonth(month) === dateLib.getMonth(lastDateOfLastWeek)\n ? FIVE_WEEKS\n : FOUR_WEEKS;\n return numberOfWeeks;\n}\n//# sourceMappingURL=getBroadcastWeeksInMonth.js.map"],"names":["FIVE_WEEKS","FOUR_WEEKS","getBroadcastWeeksInMonth","month","dateLib","firstDayOfMonth","startOfMonth","firstDayOfWeek","getDay","broadcastStartDate","addDays","lastDateOfLastWeek","numberOfWeeks","getMonth"],"mappings":"AAEA,MAAMA,UAAU,GAAG,CAAC;AACpB,MAAMC,UAAU,GAAG,CAAC;AAEpB;;;;;;;;;;;;AAYM,SAAUC,wBAAwBA,CAACC,KAAW,EAAEC,OAAgB,EAAA;AACpE;AACA,EAAA,MAAMC,eAAe,GAAGD,OAAO,CAACE,YAAY,CAACH,KAAK,CAAC;AAEnD;AACA,EAAA,MAAMI,cAAc,GAClBF,eAAe,CAACG,MAAM,EAAE,GAAG,CAAC,GAAGH,eAAe,CAACG,MAAM,EAAE,GAAG,CAAC;AAE7D,EAAA,MAAMC,kBAAkB,GAAGL,OAAO,CAACM,OAAO,CAACP,KAAK,EAAE,CAACI,cAAc,GAAG,CAAC,CAAC;AAEtE,EAAA,MAAMI,kBAAkB,GAAGP,OAAO,CAACM,OAAO,CACxCD,kBAAkB,EAClBT,UAAU,GAAG,CAAC,GAAG,CAAC,CACnB;AACD,EAAA,MAAMY,aAAa,GACjBR,OAAO,CAACS,QAAQ,CAACV,KAAK,CAAC,KAAKC,OAAO,CAACS,QAAQ,CAACF,kBAAkB,CAAC,GAC5DX,UAAU,GACVC,UAAU;AAEhB,EAAA,OAAOW,aAAa;AACtB;;;;","x_google_ignoreList":[0]}
|
@@ -1,5 +1,17 @@
|
|
1
1
|
import { DayFlag, SelectionState, UI } from '../UI.js';
|
2
2
|
|
3
|
+
/**
|
4
|
+
* Returns the class names for a day based on its modifiers.
|
5
|
+
*
|
6
|
+
* This function combines the base class name for the day with any class names
|
7
|
+
* associated with active modifiers.
|
8
|
+
*
|
9
|
+
* @param modifiers The modifiers applied to the day.
|
10
|
+
* @param classNames The base class names for the calendar elements.
|
11
|
+
* @param modifiersClassNames The class names associated with specific
|
12
|
+
* modifiers.
|
13
|
+
* @returns An array of class names for the day.
|
14
|
+
*/
|
3
15
|
function getClassNamesForModifiers(modifiers, classNames, modifiersClassNames = {}) {
|
4
16
|
const modifierClassNames = Object.entries(modifiers).filter(([, active]) => active === true).reduce((previousValue, [key]) => {
|
5
17
|
if (modifiersClassNames[key]) {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"getClassNamesForModifiers.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/helpers/getClassNamesForModifiers.js"],"sourcesContent":["import { DayFlag, SelectionState, UI } from \"../UI.js\";\nexport function getClassNamesForModifiers(modifiers, classNames, modifiersClassNames = {}) {\n const modifierClassNames = Object.entries(modifiers)\n .filter(([, active]) => active === true)\n .reduce((previousValue, [key]) => {\n if (modifiersClassNames[key]) {\n previousValue.push(modifiersClassNames[key]);\n }\n else if (classNames[DayFlag[key]]) {\n previousValue.push(classNames[DayFlag[key]]);\n }\n else if (classNames[SelectionState[key]]) {\n previousValue.push(classNames[SelectionState[key]]);\n }\n return previousValue;\n }, [classNames[UI.Day]]);\n return modifierClassNames;\n}\n//# sourceMappingURL=getClassNamesForModifiers.js.map"],"names":["getClassNamesForModifiers","modifiers","classNames","modifiersClassNames","modifierClassNames","Object","entries","filter","active","reduce","previousValue","key","push","DayFlag","SelectionState","UI","Day"],"mappings":";;
|
1
|
+
{"version":3,"file":"getClassNamesForModifiers.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/helpers/getClassNamesForModifiers.js"],"sourcesContent":["import { DayFlag, SelectionState, UI } from \"../UI.js\";\n/**\n * Returns the class names for a day based on its modifiers.\n *\n * This function combines the base class name for the day with any class names\n * associated with active modifiers.\n *\n * @param modifiers The modifiers applied to the day.\n * @param classNames The base class names for the calendar elements.\n * @param modifiersClassNames The class names associated with specific\n * modifiers.\n * @returns An array of class names for the day.\n */\nexport function getClassNamesForModifiers(modifiers, classNames, modifiersClassNames = {}) {\n const modifierClassNames = Object.entries(modifiers)\n .filter(([, active]) => active === true)\n .reduce((previousValue, [key]) => {\n if (modifiersClassNames[key]) {\n previousValue.push(modifiersClassNames[key]);\n }\n else if (classNames[DayFlag[key]]) {\n previousValue.push(classNames[DayFlag[key]]);\n }\n else if (classNames[SelectionState[key]]) {\n previousValue.push(classNames[SelectionState[key]]);\n }\n return previousValue;\n }, [classNames[UI.Day]]);\n return modifierClassNames;\n}\n//# sourceMappingURL=getClassNamesForModifiers.js.map"],"names":["getClassNamesForModifiers","modifiers","classNames","modifiersClassNames","modifierClassNames","Object","entries","filter","active","reduce","previousValue","key","push","DayFlag","SelectionState","UI","Day"],"mappings":";;AAGA;;;;;;;;;;;;AAYM,SAAUA,yBAAyBA,CACvCC,SAAkC,EAClCC,UAAsB,EACtBC,mBAAA,GAA2C,EAAE,EAAA;AAE7C,EAAA,MAAMC,kBAAkB,GAAGC,MAAM,CAACC,OAAO,CAACL,SAAS,CAAC,CACjDM,MAAM,CAAC,CAAC,GAAGC,MAAM,CAAC,KAAKA,MAAM,KAAK,IAAI,CAAC,CACvCC,MAAM,CACL,CAACC,aAAa,EAAE,CAACC,GAAG,CAAC,KAAI;AACvB,IAAA,IAAIR,mBAAmB,CAACQ,GAAG,CAAC,EAAE;AAC5BD,MAAAA,aAAa,CAACE,IAAI,CAACT,mBAAmB,CAACQ,GAAa,CAAC,CAAC;KACvD,MAAM,IAAIT,UAAU,CAACW,OAAO,CAACF,GAAc,CAAC,CAAC,EAAE;MAC9CD,aAAa,CAACE,IAAI,CAACV,UAAU,CAACW,OAAO,CAACF,GAAc,CAAC,CAAC,CAAC;KACxD,MAAM,IAAIT,UAAU,CAACY,cAAc,CAACH,GAAqB,CAAC,CAAC,EAAE;MAC5DD,aAAa,CAACE,IAAI,CAACV,UAAU,CAACY,cAAc,CAACH,GAAqB,CAAC,CAAC,CAAC;AACvE;AACA,IAAA,OAAOD,aAAa;GACrB,EACD,CAACR,UAAU,CAACa,EAAE,CAACC,GAAG,CAAC,CAAa,CACjC;AAEH,EAAA,OAAOZ,kBAAkB;AAC3B;;;;","x_google_ignoreList":[0]}
|
@@ -1,5 +1,15 @@
|
|
1
1
|
import * as customComponents from '../components/custom-components.js';
|
2
2
|
|
3
|
+
/**
|
4
|
+
* Merges custom components from the props with the default components.
|
5
|
+
*
|
6
|
+
* This function ensures that any custom components provided in the props
|
7
|
+
* override the default components.
|
8
|
+
*
|
9
|
+
* @param customComponents The custom components provided in the DayPicker
|
10
|
+
* props.
|
11
|
+
* @returns An object containing the merged components.
|
12
|
+
*/
|
3
13
|
function getComponents(customComponents$1) {
|
4
14
|
return {
|
5
15
|
...customComponents,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"getComponents.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/helpers/getComponents.js"],"sourcesContent":["import * as components from \"../components/custom-components.js\";\nexport function getComponents(customComponents) {\n return {\n ...components,\n ...customComponents\n };\n}\n//# sourceMappingURL=getComponents.js.map"],"names":["getComponents","customComponents","components"],"mappings":";;
|
1
|
+
{"version":3,"file":"getComponents.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/helpers/getComponents.js"],"sourcesContent":["import * as components from \"../components/custom-components.js\";\n/**\n * Merges custom components from the props with the default components.\n *\n * This function ensures that any custom components provided in the props\n * override the default components.\n *\n * @param customComponents The custom components provided in the DayPicker\n * props.\n * @returns An object containing the merged components.\n */\nexport function getComponents(customComponents) {\n return {\n ...components,\n ...customComponents\n };\n}\n//# sourceMappingURL=getComponents.js.map"],"names":["getComponents","customComponents","components"],"mappings":";;AAGA;;;;;;;;;;AAUM,SAAUA,aAAaA,CAC3BC,kBAA8C,EAAA;EAE9C,OAAO;AACL,IAAA,GAAGC,gBAAU;IACb,GAAGD;AACJ,GAAA;AACH;;;;","x_google_ignoreList":[0]}
|
@@ -1,11 +1,20 @@
|
|
1
|
-
/**
|
1
|
+
/**
|
2
|
+
* Extracts `data-` attributes from the DayPicker props.
|
3
|
+
*
|
4
|
+
* This function collects all `data-` attributes from the props and adds
|
5
|
+
* additional attributes based on the DayPicker configuration.
|
6
|
+
*
|
7
|
+
* @param props The DayPicker props.
|
8
|
+
* @returns An object containing the `data-` attributes.
|
9
|
+
*/
|
2
10
|
function getDataAttributes(props) {
|
3
11
|
const dataAttributes = {
|
4
12
|
"data-mode": props.mode ?? undefined,
|
5
13
|
"data-required": "required" in props ? props.required : undefined,
|
6
14
|
"data-multiple-months": props.numberOfMonths && props.numberOfMonths > 1 || undefined,
|
7
15
|
"data-week-numbers": props.showWeekNumber || undefined,
|
8
|
-
"data-broadcast-calendar": props.broadcastCalendar || undefined
|
16
|
+
"data-broadcast-calendar": props.broadcastCalendar || undefined,
|
17
|
+
"data-nav-layout": props.navLayout || undefined
|
9
18
|
};
|
10
19
|
Object.entries(props).forEach(([key, val]) => {
|
11
20
|
if (key.startsWith("data-")) {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"getDataAttributes.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/helpers/getDataAttributes.js"],"sourcesContent":["
|
1
|
+
{"version":3,"file":"getDataAttributes.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/helpers/getDataAttributes.js"],"sourcesContent":["/**\n * Extracts `data-` attributes from the DayPicker props.\n *\n * This function collects all `data-` attributes from the props and adds\n * additional attributes based on the DayPicker configuration.\n *\n * @param props The DayPicker props.\n * @returns An object containing the `data-` attributes.\n */\nexport function getDataAttributes(props) {\n const dataAttributes = {\n \"data-mode\": props.mode ?? undefined,\n \"data-required\": \"required\" in props ? props.required : undefined,\n \"data-multiple-months\": (props.numberOfMonths && props.numberOfMonths > 1) || undefined,\n \"data-week-numbers\": props.showWeekNumber || undefined,\n \"data-broadcast-calendar\": props.broadcastCalendar || undefined,\n \"data-nav-layout\": props.navLayout || undefined\n };\n Object.entries(props).forEach(([key, val]) => {\n if (key.startsWith(\"data-\")) {\n dataAttributes[key] = val;\n }\n });\n return dataAttributes;\n}\n//# sourceMappingURL=getDataAttributes.js.map"],"names":["getDataAttributes","props","dataAttributes","mode","undefined","required","numberOfMonths","showWeekNumber","broadcastCalendar","navLayout","Object","entries","forEach","key","val","startsWith"],"mappings":"AAEA;;;;;;;;;AASM,SAAUA,iBAAiBA,CAC/BC,KAAqB,EAAA;AAErB,EAAA,MAAMC,cAAc,GAA4B;AAC9C,IAAA,WAAW,EAAED,KAAK,CAACE,IAAI,IAAIC,SAAS;IACpC,eAAe,EAAE,UAAU,IAAIH,KAAK,GAAGA,KAAK,CAACI,QAAQ,GAAGD,SAAS;IACjE,sBAAsB,EACnBH,KAAK,CAACK,cAAc,IAAIL,KAAK,CAACK,cAAc,GAAG,CAAC,IAAKF,SAAS;AACjE,IAAA,mBAAmB,EAAEH,KAAK,CAACM,cAAc,IAAIH,SAAS;AACtD,IAAA,yBAAyB,EAAEH,KAAK,CAACO,iBAAiB,IAAIJ,SAAS;AAC/D,IAAA,iBAAiB,EAAEH,KAAK,CAACQ,SAAS,IAAIL;AACvC,GAAA;AACDM,EAAAA,MAAM,CAACC,OAAO,CAACV,KAAK,CAAC,CAACW,OAAO,CAAC,CAAC,CAACC,GAAG,EAAEC,GAAG,CAAC,KAAI;AAC3C,IAAA,IAAID,GAAG,CAACE,UAAU,CAAC,OAAO,CAAC,EAAE;AAC3Bb,MAAAA,cAAc,CAACW,GAAG,CAAC,GAAGC,GAAG;AAC3B;AACF,GAAC,CAAC;AACF,EAAA,OAAOZ,cAAc;AACvB;;;;","x_google_ignoreList":[0]}
|
@@ -1,4 +1,15 @@
|
|
1
|
-
/**
|
1
|
+
/**
|
2
|
+
* Returns all the dates to display in the calendar.
|
3
|
+
*
|
4
|
+
* This function calculates the range of dates to display based on the provided
|
5
|
+
* display months, constraints, and calendar configuration.
|
6
|
+
*
|
7
|
+
* @param displayMonths The months to display in the calendar.
|
8
|
+
* @param maxDate The maximum date to include in the range.
|
9
|
+
* @param props The DayPicker props, including calendar configuration options.
|
10
|
+
* @param dateLib The date library to use for date manipulation.
|
11
|
+
* @returns An array of dates to display in the calendar.
|
12
|
+
*/
|
2
13
|
function getDates(displayMonths, maxDate, props, dateLib) {
|
3
14
|
const firstMonth = displayMonths[0];
|
4
15
|
const lastMonth = displayMonths[displayMonths.length - 1];
|
@@ -21,7 +32,7 @@ function getDates(displayMonths, maxDate, props, dateLib) {
|
|
21
32
|
startOfWeek
|
22
33
|
} = dateLib;
|
23
34
|
const startWeekFirstDate = broadcastCalendar ? startOfBroadcastWeek(firstMonth, dateLib) : ISOWeek ? startOfISOWeek(firstMonth) : startOfWeek(firstMonth);
|
24
|
-
const endWeekLastDate = broadcastCalendar ? endOfBroadcastWeek(lastMonth
|
35
|
+
const endWeekLastDate = broadcastCalendar ? endOfBroadcastWeek(lastMonth) : ISOWeek ? endOfISOWeek(endOfMonth(lastMonth)) : endOfWeek(endOfMonth(lastMonth));
|
25
36
|
const nOfDays = differenceInCalendarDays(endWeekLastDate, startWeekFirstDate);
|
26
37
|
const nOfMonths = differenceInCalendarMonths(lastMonth, firstMonth) + 1;
|
27
38
|
const dates = [];
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"getDates.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/helpers/getDates.js"],"sourcesContent":["
|
1
|
+
{"version":3,"file":"getDates.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/helpers/getDates.js"],"sourcesContent":["/**\n * Returns all the dates to display in the calendar.\n *\n * This function calculates the range of dates to display based on the provided\n * display months, constraints, and calendar configuration.\n *\n * @param displayMonths The months to display in the calendar.\n * @param maxDate The maximum date to include in the range.\n * @param props The DayPicker props, including calendar configuration options.\n * @param dateLib The date library to use for date manipulation.\n * @returns An array of dates to display in the calendar.\n */\nexport function getDates(displayMonths, maxDate, props, dateLib) {\n const firstMonth = displayMonths[0];\n const lastMonth = displayMonths[displayMonths.length - 1];\n const { ISOWeek, fixedWeeks, broadcastCalendar } = props ?? {};\n const { addDays, differenceInCalendarDays, differenceInCalendarMonths, endOfBroadcastWeek, endOfISOWeek, endOfMonth, endOfWeek, isAfter, startOfBroadcastWeek, startOfISOWeek, startOfWeek } = dateLib;\n const startWeekFirstDate = broadcastCalendar\n ? startOfBroadcastWeek(firstMonth, dateLib)\n : ISOWeek\n ? startOfISOWeek(firstMonth)\n : startOfWeek(firstMonth);\n const endWeekLastDate = broadcastCalendar\n ? endOfBroadcastWeek(lastMonth)\n : ISOWeek\n ? endOfISOWeek(endOfMonth(lastMonth))\n : endOfWeek(endOfMonth(lastMonth));\n const nOfDays = differenceInCalendarDays(endWeekLastDate, startWeekFirstDate);\n const nOfMonths = differenceInCalendarMonths(lastMonth, firstMonth) + 1;\n const dates = [];\n for (let i = 0; i <= nOfDays; i++) {\n const date = addDays(startWeekFirstDate, i);\n if (maxDate && isAfter(date, maxDate)) {\n break;\n }\n dates.push(date);\n }\n // If fixed weeks is enabled, add the extra dates to the array\n const nrOfDaysWithFixedWeeks = broadcastCalendar ? 35 : 42;\n const extraDates = nrOfDaysWithFixedWeeks * nOfMonths;\n if (fixedWeeks && dates.length < extraDates) {\n const daysToAdd = extraDates - dates.length;\n for (let i = 0; i < daysToAdd; i++) {\n const date = addDays(dates[dates.length - 1], 1);\n dates.push(date);\n }\n }\n return dates;\n}\n//# sourceMappingURL=getDates.js.map"],"names":["getDates","displayMonths","maxDate","props","dateLib","firstMonth","lastMonth","length","ISOWeek","fixedWeeks","broadcastCalendar","addDays","differenceInCalendarDays","differenceInCalendarMonths","endOfBroadcastWeek","endOfISOWeek","endOfMonth","endOfWeek","isAfter","startOfBroadcastWeek","startOfISOWeek","startOfWeek","startWeekFirstDate","endWeekLastDate","nOfDays","nOfMonths","dates","i","date","push","nrOfDaysWithFixedWeeks","extraDates","daysToAdd"],"mappings":"AAGA;;;;;;;;;;;;AAYM,SAAUA,QAAQA,CACtBC,aAAqB,EACrBC,OAAyB,EACzBC,KAA2E,EAC3EC,OAAgB,EAAA;AAEhB,EAAA,MAAMC,UAAU,GAAGJ,aAAa,CAAC,CAAC,CAAC;EACnC,MAAMK,SAAS,GAAGL,aAAa,CAACA,aAAa,CAACM,MAAM,GAAG,CAAC,CAAC;EAEzD,MAAM;IAAEC,OAAO;IAAEC,UAAU;AAAEC,IAAAA;GAAmB,GAAGP,KAAK,IAAI,EAAE;EAC9D,MAAM;IACJQ,OAAO;IACPC,wBAAwB;IACxBC,0BAA0B;IAC1BC,kBAAkB;IAClBC,YAAY;IACZC,UAAU;IACVC,SAAS;IACTC,OAAO;IACPC,oBAAoB;IACpBC,cAAc;AACdC,IAAAA;AAAW,GACZ,GAAGjB,OAAO;EAEX,MAAMkB,kBAAkB,GAAGZ,iBAAiB,GACxCS,oBAAoB,CAACd,UAAU,EAAED,OAAO,CAAC,GACzCI,OAAO,GACLY,cAAc,CAACf,UAAU,CAAC,GAC1BgB,WAAW,CAAChB,UAAU,CAAC;EAE7B,MAAMkB,eAAe,GAAGb,iBAAiB,GACrCI,kBAAkB,CAACR,SAAS,CAAC,GAC7BE,OAAO,GACLO,YAAY,CAACC,UAAU,CAACV,SAAS,CAAC,CAAC,GACnCW,SAAS,CAACD,UAAU,CAACV,SAAS,CAAC,CAAC;AAEtC,EAAA,MAAMkB,OAAO,GAAGZ,wBAAwB,CAACW,eAAe,EAAED,kBAAkB,CAAC;EAC7E,MAAMG,SAAS,GAAGZ,0BAA0B,CAACP,SAAS,EAAED,UAAU,CAAC,GAAG,CAAC;EAEvE,MAAMqB,KAAK,GAAW,EAAE;EACxB,KAAK,IAAIC,CAAC,GAAG,CAAC,EAAEA,CAAC,IAAIH,OAAO,EAAEG,CAAC,EAAE,EAAE;AACjC,IAAA,MAAMC,IAAI,GAAGjB,OAAO,CAACW,kBAAkB,EAAEK,CAAC,CAAC;IAC3C,IAAIzB,OAAO,IAAIgB,OAAO,CAACU,IAAI,EAAE1B,OAAO,CAAC,EAAE;AACrC,MAAA;AACF;AACAwB,IAAAA,KAAK,CAACG,IAAI,CAACD,IAAI,CAAC;AAClB;AAEA;AACA,EAAA,MAAME,sBAAsB,GAAGpB,iBAAiB,GAAG,EAAE,GAAG,EAAE;AAC1D,EAAA,MAAMqB,UAAU,GAAGD,sBAAsB,GAAGL,SAAS;AACrD,EAAA,IAAIhB,UAAU,IAAIiB,KAAK,CAACnB,MAAM,GAAGwB,UAAU,EAAE;AAC3C,IAAA,MAAMC,SAAS,GAAGD,UAAU,GAAGL,KAAK,CAACnB,MAAM;IAC3C,KAAK,IAAIoB,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGK,SAAS,EAAEL,CAAC,EAAE,EAAE;AAClC,MAAA,MAAMC,IAAI,GAAGjB,OAAO,CAACe,KAAK,CAACA,KAAK,CAACnB,MAAM,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;AAChDmB,MAAAA,KAAK,CAACG,IAAI,CAACD,IAAI,CAAC;AAClB;AACF;AACA,EAAA,OAAOF,KAAK;AACd;;;;","x_google_ignoreList":[0]}
|
@@ -1,11 +1,14 @@
|
|
1
1
|
/**
|
2
2
|
* Returns all the days belonging to the calendar by merging the days in the
|
3
3
|
* weeks for each month.
|
4
|
+
*
|
5
|
+
* @param calendarMonths The array of calendar months.
|
6
|
+
* @returns An array of `CalendarDay` objects representing all the days in the
|
7
|
+
* calendar.
|
4
8
|
*/
|
5
9
|
function getDays(calendarMonths) {
|
6
10
|
const initialDays = [];
|
7
11
|
return calendarMonths.reduce((days, month) => {
|
8
|
-
const initialDays = [];
|
9
12
|
const weekDays = month.weeks.reduce((weekDays, week) => {
|
10
13
|
return [...weekDays, ...week.days];
|
11
14
|
}, initialDays);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"getDays.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/helpers/getDays.js"],"sourcesContent":["/**\n * Returns all the days belonging to the calendar by merging the days in the\n * weeks for each month.\n */\nexport function getDays(calendarMonths) {\n const initialDays = [];\n return calendarMonths.reduce((days, month) => {\n const
|
1
|
+
{"version":3,"file":"getDays.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/helpers/getDays.js"],"sourcesContent":["/**\n * Returns all the days belonging to the calendar by merging the days in the\n * weeks for each month.\n *\n * @param calendarMonths The array of calendar months.\n * @returns An array of `CalendarDay` objects representing all the days in the\n * calendar.\n */\nexport function getDays(calendarMonths) {\n const initialDays = [];\n return calendarMonths.reduce((days, month) => {\n const weekDays = month.weeks.reduce((weekDays, week) => {\n return [...weekDays, ...week.days];\n }, initialDays);\n return [...days, ...weekDays];\n }, initialDays);\n}\n//# sourceMappingURL=getDays.js.map"],"names":["getDays","calendarMonths","initialDays","reduce","days","month","weekDays","weeks","week"],"mappings":"AAEA;;;;;;;;AAQM,SAAUA,OAAOA,CAACC,cAA+B,EAAA;EACrD,MAAMC,WAAW,GAAkB,EAAE;EACrC,OAAOD,cAAc,CAACE,MAAM,CAAC,CAACC,IAAI,EAAEC,KAAK,KAAI;AAC3C,IAAA,MAAMC,QAAQ,GAAkBD,KAAK,CAACE,KAAK,CAACJ,MAAM,CAAC,CAACG,QAAQ,EAAEE,IAAI,KAAI;MACpE,OAAO,CAAC,GAAGF,QAAQ,EAAE,GAAGE,IAAI,CAACJ,IAAI,CAAC;KACnC,EAAEF,WAAW,CAAC;AACf,IAAA,OAAO,CAAC,GAAGE,IAAI,EAAE,GAAGE,QAAQ,CAAC;GAC9B,EAAEJ,WAAW,CAAC;AACjB;;;;","x_google_ignoreList":[0]}
|
@@ -1,8 +1,12 @@
|
|
1
|
-
import { UI, DayFlag, SelectionState } from '../UI.js';
|
1
|
+
import { UI, DayFlag, SelectionState, Animation } from '../UI.js';
|
2
2
|
|
3
3
|
/**
|
4
|
-
*
|
4
|
+
* Returns the default class names for the UI elements.
|
5
5
|
*
|
6
|
+
* This function generates a mapping of default class names for various UI
|
7
|
+
* elements, day flags, selection states, and animations.
|
8
|
+
*
|
9
|
+
* @returns An object containing the default class names.
|
6
10
|
* @group Utilities
|
7
11
|
*/
|
8
12
|
function getDefaultClassNames() {
|
@@ -16,6 +20,9 @@ function getDefaultClassNames() {
|
|
16
20
|
for (const key in SelectionState) {
|
17
21
|
classNames[SelectionState[key]] = `rdp-${SelectionState[key]}`;
|
18
22
|
}
|
23
|
+
for (const key in Animation) {
|
24
|
+
classNames[Animation[key]] = `rdp-${Animation[key]}`;
|
25
|
+
}
|
19
26
|
return classNames;
|
20
27
|
}
|
21
28
|
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"getDefaultClassNames.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/helpers/getDefaultClassNames.js"],"sourcesContent":["import { UI, DayFlag, SelectionState } from \"../UI.js\";\n/**\n *
|
1
|
+
{"version":3,"file":"getDefaultClassNames.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/helpers/getDefaultClassNames.js"],"sourcesContent":["import { UI, DayFlag, SelectionState, Animation } from \"../UI.js\";\n/**\n * Returns the default class names for the UI elements.\n *\n * This function generates a mapping of default class names for various UI\n * elements, day flags, selection states, and animations.\n *\n * @returns An object containing the default class names.\n * @group Utilities\n */\nexport function getDefaultClassNames() {\n const classNames = {};\n for (const key in UI) {\n classNames[UI[key]] =\n `rdp-${UI[key]}`;\n }\n for (const key in DayFlag) {\n classNames[DayFlag[key]] =\n `rdp-${DayFlag[key]}`;\n }\n for (const key in SelectionState) {\n classNames[SelectionState[key]] =\n `rdp-${SelectionState[key]}`;\n }\n for (const key in Animation) {\n classNames[Animation[key]] =\n `rdp-${Animation[key]}`;\n }\n return classNames;\n}\n//# sourceMappingURL=getDefaultClassNames.js.map"],"names":["getDefaultClassNames","classNames","key","UI","DayFlag","SelectionState","Animation"],"mappings":";;AAGA;;;;;;;;;AASM,SAAUA,oBAAoBA,GAAA;EAClC,MAAMC,UAAU,GAAkC,EAAE;AAEpD,EAAA,KAAK,MAAMC,GAAG,IAAIC,EAAE,EAAE;AACpBF,IAAAA,UAAU,CAACE,EAAE,CAACD,GAAsB,CAAC,CAAC,GACpC,CAAA,IAAA,EAAOC,EAAE,CAACD,GAAsB,CAAC,CAAE,CAAA;AACvC;AAEA,EAAA,KAAK,MAAMA,GAAG,IAAIE,OAAO,EAAE;AACzBH,IAAAA,UAAU,CAACG,OAAO,CAACF,GAA2B,CAAC,CAAC,GAC9C,CAAA,IAAA,EAAOE,OAAO,CAACF,GAA2B,CAAC,CAAE,CAAA;AACjD;AAEA,EAAA,KAAK,MAAMA,GAAG,IAAIG,cAAc,EAAE;AAChCJ,IAAAA,UAAU,CAACI,cAAc,CAACH,GAAkC,CAAC,CAAC,GAC5D,CAAA,IAAA,EAAOG,cAAc,CAACH,GAAkC,CAAC,CAAE,CAAA;AAC/D;AAEA,EAAA,KAAK,MAAMA,GAAG,IAAII,SAAS,EAAE;AAC3BL,IAAAA,UAAU,CAACK,SAAS,CAACJ,GAA6B,CAAC,CAAC,GAClD,CAAA,IAAA,EAAOI,SAAS,CAACJ,GAA6B,CAAC,CAAE,CAAA;AACrD;AAEA,EAAA,OAAOD,UAAkC;AAC3C;;;;","x_google_ignoreList":[0]}
|
@@ -1,3 +1,13 @@
|
|
1
|
+
/**
|
2
|
+
* Returns the months to display in the calendar.
|
3
|
+
*
|
4
|
+
* @param firstDisplayedMonth The first month currently displayed in the
|
5
|
+
* calendar.
|
6
|
+
* @param calendarEndMonth The latest month the user can navigate to.
|
7
|
+
* @param props The DayPicker props, including `numberOfMonths`.
|
8
|
+
* @param dateLib The date library to use for date manipulation.
|
9
|
+
* @returns An array of dates representing the months to display.
|
10
|
+
*/
|
1
11
|
function getDisplayMonths(firstDisplayedMonth, calendarEndMonth, props, dateLib) {
|
2
12
|
const {
|
3
13
|
numberOfMonths = 1
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"getDisplayMonths.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/helpers/getDisplayMonths.js"],"sourcesContent":["
|
1
|
+
{"version":3,"file":"getDisplayMonths.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/helpers/getDisplayMonths.js"],"sourcesContent":["/**\n * Returns the months to display in the calendar.\n *\n * @param firstDisplayedMonth The first month currently displayed in the\n * calendar.\n * @param calendarEndMonth The latest month the user can navigate to.\n * @param props The DayPicker props, including `numberOfMonths`.\n * @param dateLib The date library to use for date manipulation.\n * @returns An array of dates representing the months to display.\n */\nexport function getDisplayMonths(firstDisplayedMonth, calendarEndMonth, props, dateLib) {\n const { numberOfMonths = 1 } = props;\n const months = [];\n for (let i = 0; i < numberOfMonths; i++) {\n const month = dateLib.addMonths(firstDisplayedMonth, i);\n if (calendarEndMonth && month > calendarEndMonth) {\n break;\n }\n months.push(month);\n }\n return months;\n}\n//# sourceMappingURL=getDisplayMonths.js.map"],"names":["getDisplayMonths","firstDisplayedMonth","calendarEndMonth","props","dateLib","numberOfMonths","months","i","month","addMonths","push"],"mappings":"AAGA;;;;;;;;;;AAUM,SAAUA,gBAAgBA,CAC9BC,mBAAyB,EACzBC,gBAAkC,EAClCC,KAA6C,EAC7CC,OAAgB,EAAA;EAEhB,MAAM;AAAEC,IAAAA,cAAc,GAAG;AAAC,GAAE,GAAGF,KAAK;EACpC,MAAMG,MAAM,GAAW,EAAE;EACzB,KAAK,IAAIC,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGF,cAAc,EAAEE,CAAC,EAAE,EAAE;IACvC,MAAMC,KAAK,GAAGJ,OAAO,CAACK,SAAS,CAACR,mBAAmB,EAAEM,CAAC,CAAC;AACvD,IAAA,IAAIL,gBAAgB,IAAIM,KAAK,GAAGN,gBAAgB,EAAE;AAChD,MAAA;AACF;AACAI,IAAAA,MAAM,CAACI,IAAI,CAACF,KAAK,CAAC;AACpB;AACA,EAAA,OAAOF,MAAM;AACf;;;;","x_google_ignoreList":[0]}
|
@@ -1,4 +1,19 @@
|
|
1
|
-
/**
|
1
|
+
/**
|
2
|
+
* Calculates the next date that should be focused in the calendar.
|
3
|
+
*
|
4
|
+
* This function determines the next focusable date based on the movement
|
5
|
+
* direction, constraints, and calendar configuration.
|
6
|
+
*
|
7
|
+
* @param moveBy The unit of movement (e.g., "day", "week").
|
8
|
+
* @param moveDir The direction of movement ("before" or "after").
|
9
|
+
* @param refDate The reference date from which to calculate the next focusable
|
10
|
+
* date.
|
11
|
+
* @param navStart The earliest date the user can navigate to.
|
12
|
+
* @param navEnd The latest date the user can navigate to.
|
13
|
+
* @param props The DayPicker props, including calendar configuration options.
|
14
|
+
* @param dateLib The date library to use for date manipulation.
|
15
|
+
* @returns The next focusable date.
|
16
|
+
*/
|
2
17
|
function getFocusableDate(moveBy, moveDir, refDate, navStart, navEnd, props, dateLib) {
|
3
18
|
const {
|
4
19
|
ISOWeek,
|
@@ -24,7 +39,7 @@ function getFocusableDate(moveBy, moveDir, refDate, navStart, navEnd, props, dat
|
|
24
39
|
month: addMonths,
|
25
40
|
year: addYears,
|
26
41
|
startOfWeek: date => broadcastCalendar ? startOfBroadcastWeek(date, dateLib) : ISOWeek ? startOfISOWeek(date) : startOfWeek(date),
|
27
|
-
endOfWeek: date => broadcastCalendar ? endOfBroadcastWeek(date
|
42
|
+
endOfWeek: date => broadcastCalendar ? endOfBroadcastWeek(date) : ISOWeek ? endOfISOWeek(date) : endOfWeek(date)
|
28
43
|
};
|
29
44
|
let focusableDate = moveFns[moveBy](refDate, moveDir === "after" ? 1 : -1);
|
30
45
|
if (moveDir === "before" && navStart) {
|