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.
- package/README.md +75 -75
- package/lib/_virtual/_commonjsHelpers.js +26 -1
- package/lib/_virtual/_commonjsHelpers.js.map +1 -1
- package/lib/_virtual/immutable.es.js +7 -0
- package/lib/_virtual/immutable.es.js.map +1 -0
- package/lib/_virtual/index10.js +2 -2
- package/lib/_virtual/index11.js +2 -2
- package/lib/_virtual/index14.js +4 -0
- package/lib/_virtual/index14.js.map +1 -0
- package/lib/_virtual/react-is.development2.js +4 -0
- package/lib/_virtual/react-is.development2.js.map +1 -0
- package/lib/_virtual/react-is.production.min2.js +4 -0
- package/lib/_virtual/react-is.production.min2.js.map +1 -0
- 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 +4 -1
- package/lib/components/DatePicker/DatePicker.js.map +1 -1
- package/lib/components/Drawer/Drawer.js +2 -1
- package/lib/components/Drawer/Drawer.js.map +1 -1
- package/lib/components/Excel/ExcelFile/ExcelFile.d.ts +1 -0
- package/lib/components/Excel/ExcelFile/ExcelFile.js +4 -2
- package/lib/components/Excel/ExcelFile/ExcelFile.js.map +1 -1
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/Spreadsheet.d.ts +1 -0
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/Spreadsheet.js +4 -3
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/Spreadsheet.js.map +1 -1
- package/lib/index.cjs +7029 -2517
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.ts +2 -2
- 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/{immutable → draft-js/node_modules/immutable}/dist/immutable.js +1 -1
- package/lib/node_modules/draft-js/node_modules/immutable/dist/immutable.js.map +1 -0
- package/lib/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js +1 -1
- package/lib/node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js +175 -0
- package/lib/node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js.map +1 -0
- package/lib/node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js +125 -0
- package/lib/node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js.map +1 -0
- package/lib/node_modules/{react-is → hoist-non-react-statics/node_modules/react-is}/index.js +1 -1
- package/lib/node_modules/hoist-non-react-statics/node_modules/react-is/index.js.map +1 -0
- package/lib/node_modules/immutable/dist/immutable.es.js +4829 -0
- package/lib/node_modules/immutable/dist/immutable.es.js.map +1 -0
- package/lib/node_modules/js-beautify/js/src/css/beautifier.js +1 -1
- 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/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-is → prop-types/node_modules/react-is}/cjs/react-is.development.js +1 -1
- package/lib/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js.map +1 -0
- package/lib/node_modules/{react-is → prop-types/node_modules/react-is}/cjs/react-is.production.min.js +1 -1
- package/lib/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js.map +1 -0
- package/lib/node_modules/prop-types/node_modules/react-is/index.js +18 -0
- package/lib/node_modules/prop-types/node_modules/react-is/index.js.map +1 -0
- package/lib/node_modules/react-day-picker/dist/esm/DayPicker.js +17 -112
- 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 +9 -31
- 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 +6 -9
- 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 +1 -6
- 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 +1 -5
- 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 +51 -55
- 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 +6 -16
- 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 +2 -7
- 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 +2 -7
- 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 +2 -7
- 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 +2 -6
- 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 +5 -11
- 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 +2 -3
- 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 +2 -7
- 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 +1 -5
- 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 +19 -46
- package/lib/node_modules/react-day-picker/dist/esm/helpers/calculateFocusTarget.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/helpers/endOfBroadcastWeek.js +1 -7
- 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 +1 -8
- 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 +0 -12
- 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 +0 -10
- 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 +2 -11
- 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 +2 -13
- 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 +1 -4
- 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 +2 -9
- 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 +0 -10
- 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 +2 -17
- 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 +1 -7
- 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 +3 -13
- 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 +1 -15
- 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 +8 -17
- 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 +1 -7
- 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 +7 -20
- 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 +6 -13
- 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 +5 -13
- 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 +0 -11
- 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 +6 -9
- 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 +1 -6
- 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 +1 -13
- 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 +1 -8
- 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 +6 -10
- 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 +5 -9
- 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 +3 -7
- 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 +3 -7
- 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 +1 -3
- 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 +1 -2
- 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 +3 -5
- 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 +3 -5
- 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 +1 -4
- 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 +1 -3
- 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 +1 -5
- 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 +1 -3
- 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 +0 -9
- 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 +2 -10
- 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 +0 -9
- package/lib/node_modules/react-day-picker/dist/esm/selection/useSingle.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/useCalendar.js +1 -9
- 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 +6 -4
- 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 +1 -14
- package/lib/node_modules/react-day-picker/dist/esm/useFocus.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/{helpers/createGetModifiers.js → useGetModifiers.js} +7 -13
- package/lib/node_modules/react-day-picker/dist/esm/useGetModifiers.js.map +1 -0
- package/lib/node_modules/react-day-picker/dist/esm/useSelection.js +0 -10
- 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 +8 -10
- 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 +15 -5
- 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 +9 -7
- 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 +14 -5
- 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 +3 -7
- 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 +2 -6
- 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 +6 -19
- 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 +1609 -1661
- package/lib/node_modules/react-hook-form/dist/index.esm.js.map +1 -1
- 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 +4 -6
- package/lib/node_modules/webrtc-adapter/src/js/utils.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +107 -107
- package/lib/node_modules/immutable/dist/immutable.js.map +0 -1
- package/lib/node_modules/react-day-picker/dist/esm/helpers/createGetModifiers.js.map +0 -1
- package/lib/node_modules/react-day-picker/dist/esm/useAnimation.js +0 -158
- package/lib/node_modules/react-day-picker/dist/esm/useAnimation.js.map +0 -1
- package/lib/node_modules/react-is/cjs/react-is.development.js.map +0 -1
- package/lib/node_modules/react-is/cjs/react-is.production.min.js.map +0 -1
- package/lib/node_modules/react-is/index.js.map +0 -1
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WeekNumberHeader.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/components/WeekNumberHeader.js"],"sourcesContent":["import React from \"react\";\n/**\n * Render the header
|
1
|
+
{"version":3,"file":"WeekNumberHeader.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/components/WeekNumberHeader.js"],"sourcesContent":["import React from \"react\";\n/**\n * Render the column header for the week numbers.\n *\n * @group Components\n * @see https://daypicker.dev/guides/custom-components\n */\nexport function WeekNumberHeader(props) {\n return React.createElement(\"th\", { ...props });\n}\n//# sourceMappingURL=WeekNumberHeader.js.map"],"names":["WeekNumberHeader","props","React","createElement"],"mappings":";;AAEA;;;;;;AAMM,SAAUA,gBAAgBA,CAC9BC,KAA6C,EAAA;EAE7C,oBAAOC,cAAA,CAAAC,aAAA,CAAA,IAAA,EAAA;IAAA,GAAQF;GAAS,CAAA;AAC1B;;;;","x_google_ignoreList":[0]}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import React__default from 'react';
|
2
2
|
|
3
3
|
/**
|
4
|
-
* Render
|
4
|
+
* Render the column header with the weekday name (e.g. "Mo", "Tu", etc.).
|
5
5
|
*
|
6
6
|
* @group Components
|
7
7
|
* @see https://daypicker.dev/guides/custom-components
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Weekday.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/components/Weekday.js"],"sourcesContent":["import React from \"react\";\n/**\n * Render
|
1
|
+
{"version":3,"file":"Weekday.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/components/Weekday.js"],"sourcesContent":["import React from \"react\";\n/**\n * Render the column header with the weekday name (e.g. \"Mo\", \"Tu\", etc.).\n *\n * @group Components\n * @see https://daypicker.dev/guides/custom-components\n */\nexport function Weekday(props) {\n return React.createElement(\"th\", { ...props });\n}\n//# sourceMappingURL=Weekday.js.map"],"names":["Weekday","props","React","createElement"],"mappings":";;AAEA;;;;;;AAMM,SAAUA,OAAOA,CAACC,KAA6C,EAAA;EACnE,oBAAOC,cAAA,CAAAC,aAAA,CAAA,IAAA,EAAA;IAAA,GAAQF;GAAS,CAAA;AAC1B;;;;","x_google_ignoreList":[0]}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Weekdays.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/components/Weekdays.js"],"sourcesContent":["import React from \"react\";\n/**\n * Render the
|
1
|
+
{"version":3,"file":"Weekdays.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/components/Weekdays.js"],"sourcesContent":["import React from \"react\";\n/**\n * Render the row with the weekday names.\n *\n * @group Components\n * @see https://daypicker.dev/guides/custom-components\n */\nexport function Weekdays(props) {\n return (React.createElement(\"thead\", { \"aria-hidden\": true },\n React.createElement(\"tr\", { ...props })));\n}\n//# sourceMappingURL=Weekdays.js.map"],"names":["Weekdays","props","React","createElement"],"mappings":";;AAEA;;;;;;AAMM,SAAUA,QAAQA,CAACC,KAA0C,EAAA;EACjE,oBACEC,cAAA,CAAAC,aAAA,CAAA,OAAA,EAAA;AAAA,IAAA,aAAA,EAAA;GACED,eAAAA,cAAA,CAAAC,aAAA,CAAA,IAAA,EAAA;IAAA,GAAQF;AAAK,GAAA,CAAI,CACX;AAEZ;;;;","x_google_ignoreList":[0]}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Weeks.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/components/Weeks.js"],"sourcesContent":["import React from \"react\";\n/**\n * Render the
|
1
|
+
{"version":3,"file":"Weeks.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/components/Weeks.js"],"sourcesContent":["import React from \"react\";\n/**\n * Render the weeks in the month grid.\n *\n * @group Components\n * @see https://daypicker.dev/guides/custom-components\n */\nexport function Weeks(props) {\n return React.createElement(\"tbody\", { ...props });\n}\n//# sourceMappingURL=Weeks.js.map"],"names":["Weeks","props","React","createElement"],"mappings":";;AAEA;;;;;;AAMM,SAAUA,KAAKA,CAACC,KAA8C,EAAA;EAClE,oBAAOC,cAAA,CAAAC,aAAA,CAAA,OAAA,EAAA;IAAA,GAAWF;GAAS,CAAA;AAC7B;;;;","x_google_ignoreList":[0]}
|
@@ -2,7 +2,7 @@ import React__default from 'react';
|
|
2
2
|
import { useDayPicker } from '../useDayPicker.js';
|
3
3
|
|
4
4
|
/**
|
5
|
-
* Render
|
5
|
+
* Render the dropdown to navigate between years.
|
6
6
|
*
|
7
7
|
* @group Components
|
8
8
|
* @see https://daypicker.dev/guides/custom-components
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"YearsDropdown.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/components/YearsDropdown.js"],"sourcesContent":["import React from \"react\";\nimport { useDayPicker } from \"../useDayPicker.js\";\n/**\n * Render
|
1
|
+
{"version":3,"file":"YearsDropdown.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/components/YearsDropdown.js"],"sourcesContent":["import React from \"react\";\nimport { useDayPicker } from \"../useDayPicker.js\";\n/**\n * Render the dropdown to navigate between years.\n *\n * @group Components\n * @see https://daypicker.dev/guides/custom-components\n */\nexport function YearsDropdown(props) {\n const { components } = useDayPicker();\n return React.createElement(components.Dropdown, { ...props });\n}\n//# sourceMappingURL=YearsDropdown.js.map"],"names":["YearsDropdown","props","components","useDayPicker","React","createElement","Dropdown"],"mappings":";;;AAMA;;;;;;AAMM,SAAUA,aAAaA,CAACC,KAAoB,EAAA;EAChD,MAAM;AAAEC,IAAAA;GAAY,GAAGC,YAAY,EAAE;AACrC,EAAA,oBAAOC,cAAA,CAAAC,aAAA,CAACH,UAAU,CAACI,QAAQ,EAAA;IAAA,GAAKL;GAAS,CAAA;AAC3C;;;;","x_google_ignoreList":[0]}
|
@@ -1,14 +1,9 @@
|
|
1
1
|
import { DateLib } from '../classes/DateLib.js';
|
2
2
|
|
3
3
|
/**
|
4
|
-
*
|
4
|
+
* Format the caption of the month.
|
5
5
|
*
|
6
|
-
* @defaultValue `LLLL y` (e.g
|
7
|
-
* @param month The date representing the month.
|
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 caption as a string.
|
6
|
+
* @defaultValue `LLLL y` (e.g. "November 2022")
|
12
7
|
* @group Formatters
|
13
8
|
* @see https://daypicker.dev/docs/translation#custom-formatters
|
14
9
|
*/
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"formatCaption.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/formatters/formatCaption.js"],"sourcesContent":["import { DateLib } from \"../classes/DateLib.js\";\n/**\n *
|
1
|
+
{"version":3,"file":"formatCaption.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/formatters/formatCaption.js"],"sourcesContent":["import { DateLib } from \"../classes/DateLib.js\";\n/**\n * Format the caption of the month.\n *\n * @defaultValue `LLLL y` (e.g. \"November 2022\")\n * @group Formatters\n * @see https://daypicker.dev/docs/translation#custom-formatters\n */\nexport function formatCaption(month, options, dateLib) {\n return (dateLib ?? new DateLib(options)).format(month, \"LLLL y\");\n}\n/**\n * @private\n * @deprecated Use {@link formatCaption} instead.\n * @group Formatters\n */\nexport const formatMonthCaption = formatCaption;\n//# sourceMappingURL=formatCaption.js.map"],"names":["formatCaption","month","options","dateLib","DateLib","format","formatMonthCaption"],"mappings":";;AAEA;;;;;;;AAOM,SAAUA,aAAaA,CAC3BC,KAAW,EACXC,OAAwB,EACxBC,OAAiB,EAAA;AAEjB,EAAA,OAAO,CAACA,OAAO,IAAI,IAAIC,OAAO,CAACF,OAAO,CAAC,EAAEG,MAAM,CAACJ,KAAK,EAAE,QAAQ,CAAC;AAClE;AAEA;;;;;AAKO,MAAMK,kBAAkB,GAAGN;;;;","x_google_ignoreList":[0]}
|
@@ -1,14 +1,9 @@
|
|
1
1
|
import { DateLib } from '../classes/DateLib.js';
|
2
2
|
|
3
3
|
/**
|
4
|
-
*
|
4
|
+
* Format the day date shown in the day cell.
|
5
5
|
*
|
6
|
-
* @defaultValue `d` (e.g
|
7
|
-
* @param date The date to format.
|
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 day as a string.
|
6
|
+
* @defaultValue `d` (e.g. "1")
|
12
7
|
* @group Formatters
|
13
8
|
* @see https://daypicker.dev/docs/translation#custom-formatters
|
14
9
|
*/
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"formatDay.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/formatters/formatDay.js"],"sourcesContent":["import { DateLib } from \"../classes/DateLib.js\";\n/**\n *
|
1
|
+
{"version":3,"file":"formatDay.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/formatters/formatDay.js"],"sourcesContent":["import { DateLib } from \"../classes/DateLib.js\";\n/**\n * Format the day date shown in the day cell.\n *\n * @defaultValue `d` (e.g. \"1\")\n * @group Formatters\n * @see https://daypicker.dev/docs/translation#custom-formatters\n */\nexport function formatDay(date, options, dateLib) {\n return (dateLib ?? new DateLib(options)).format(date, \"d\");\n}\n//# sourceMappingURL=formatDay.js.map"],"names":["formatDay","date","options","dateLib","DateLib","format"],"mappings":";;AAEA;;;;;;;AAOM,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,GAAG,CAAC;AAC5D;;;;","x_google_ignoreList":[0]}
|
@@ -1,13 +1,9 @@
|
|
1
1
|
import { defaultDateLib } from '../classes/DateLib.js';
|
2
2
|
|
3
3
|
/**
|
4
|
-
*
|
4
|
+
* Format the month number for the dropdown option label.
|
5
5
|
*
|
6
|
-
* @defaultValue The localized
|
7
|
-
* @param month The date representing the month.
|
8
|
-
* @param dateLib The date library to use for formatting. Defaults to
|
9
|
-
* `defaultDateLib`.
|
10
|
-
* @returns The formatted month name as a string.
|
6
|
+
* @defaultValue The localized month name
|
11
7
|
* @group Formatters
|
12
8
|
* @see https://daypicker.dev/docs/translation#custom-formatters
|
13
9
|
*/
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"formatMonthDropdown.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/formatters/formatMonthDropdown.js"],"sourcesContent":["import { defaultDateLib } from \"../classes/DateLib.js\";\n/**\n *
|
1
|
+
{"version":3,"file":"formatMonthDropdown.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/formatters/formatMonthDropdown.js"],"sourcesContent":["import { defaultDateLib } from \"../classes/DateLib.js\";\n/**\n * Format the month number for the dropdown option label.\n *\n * @defaultValue The localized month name\n * @group Formatters\n * @see https://daypicker.dev/docs/translation#custom-formatters\n */\nexport function formatMonthDropdown(month, dateLib = defaultDateLib) {\n return dateLib.format(month, \"LLLL\");\n}\n//# sourceMappingURL=formatMonthDropdown.js.map"],"names":["formatMonthDropdown","month","dateLib","defaultDateLib","format"],"mappings":";;AAEA;;;;;;;AAOM,SAAUA,mBAAmBA,CACjCC,KAAW,EACXC,OAAA,GAAmBC,cAAc,EAAA;AAEjC,EAAA,OAAOD,OAAO,CAACE,MAAM,CAACH,KAAK,EAAE,MAAM,CAAC;AACtC;;;;","x_google_ignoreList":[0]}
|
@@ -1,21 +1,15 @@
|
|
1
|
-
import { defaultDateLib } from '../classes/DateLib.js';
|
2
|
-
|
3
1
|
/**
|
4
|
-
*
|
2
|
+
* Format the week number.
|
5
3
|
*
|
6
|
-
* @defaultValue
|
7
|
-
* @param weekNumber The week number to format.
|
8
|
-
* @param dateLib The date library to use for formatting. Defaults to
|
9
|
-
* `defaultDateLib`.
|
10
|
-
* @returns The formatted week number as a string.
|
4
|
+
* @defaultValue `weekNumber.toLocaleString()` with a leading zero for single-digit numbers
|
11
5
|
* @group Formatters
|
12
6
|
* @see https://daypicker.dev/docs/translation#custom-formatters
|
13
7
|
*/
|
14
|
-
function formatWeekNumber(weekNumber
|
8
|
+
function formatWeekNumber(weekNumber) {
|
15
9
|
if (weekNumber < 10) {
|
16
|
-
return
|
10
|
+
return `0${weekNumber.toLocaleString()}`;
|
17
11
|
}
|
18
|
-
return
|
12
|
+
return `${weekNumber.toLocaleString()}`;
|
19
13
|
}
|
20
14
|
|
21
15
|
export { formatWeekNumber };
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"formatWeekNumber.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/formatters/formatWeekNumber.js"],"sourcesContent":["
|
1
|
+
{"version":3,"file":"formatWeekNumber.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/formatters/formatWeekNumber.js"],"sourcesContent":["/**\n * Format the week number.\n *\n * @defaultValue `weekNumber.toLocaleString()` with a leading zero for single-digit numbers\n * @group Formatters\n * @see https://daypicker.dev/docs/translation#custom-formatters\n */\nexport function formatWeekNumber(weekNumber) {\n if (weekNumber < 10) {\n return `0${weekNumber.toLocaleString()}`;\n }\n return `${weekNumber.toLocaleString()}`;\n}\n//# sourceMappingURL=formatWeekNumber.js.map"],"names":["formatWeekNumber","weekNumber","toLocaleString"],"mappings":"AAAA;;;;;;;AAOM,SAAUA,gBAAgBA,CAACC,UAAkB,EAAA;EACjD,IAAIA,UAAU,GAAG,EAAE,EAAE;AACnB,IAAA,OAAO,CAAIA,CAAAA,EAAAA,UAAU,CAACC,cAAc,EAAE,CAAE,CAAA;AAC1C;AACA,EAAA,OAAO,CAAGD,EAAAA,UAAU,CAACC,cAAc,EAAE,CAAE,CAAA;AACzC;;;;","x_google_ignoreList":[0]}
|
@@ -1,8 +1,7 @@
|
|
1
1
|
/**
|
2
|
-
*
|
2
|
+
* Format the week number header.
|
3
3
|
*
|
4
|
-
* @defaultValue
|
5
|
-
* @returns The formatted week number header as a string.
|
4
|
+
* @defaultValue `""`
|
6
5
|
* @group Formatters
|
7
6
|
* @see https://daypicker.dev/docs/translation#custom-formatters
|
8
7
|
*/
|
@@ -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 * Format the week number header.\n *\n * @defaultValue `\"\"`\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;;;;;;;AAOM,SAAUA,sBAAsBA,GAAA;AACpC,EAAA,OAAO,CAAE,CAAA;AACX;;;;","x_google_ignoreList":[0]}
|
@@ -1,14 +1,9 @@
|
|
1
1
|
import { DateLib } from '../classes/DateLib.js';
|
2
2
|
|
3
3
|
/**
|
4
|
-
*
|
4
|
+
* Format the weekday name to be displayed in the weekdays header.
|
5
5
|
*
|
6
|
-
* @defaultValue `cccccc` (e.g
|
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.
|
6
|
+
* @defaultValue `cccccc` (e.g. "Mo" for Monday)
|
12
7
|
* @group Formatters
|
13
8
|
* @see https://daypicker.dev/docs/translation#custom-formatters
|
14
9
|
*/
|
@@ -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 * Format the weekday name to be displayed in the weekdays header.\n *\n * @defaultValue `cccccc` (e.g. \"Mo\" for Monday)\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;;;;;;;AAOM,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,12 +1,8 @@
|
|
1
1
|
import { defaultDateLib } from '../classes/DateLib.js';
|
2
2
|
|
3
3
|
/**
|
4
|
-
*
|
4
|
+
* Format the years 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.
|
10
6
|
* @group Formatters
|
11
7
|
* @see https://daypicker.dev/docs/translation#custom-formatters
|
12
8
|
*/
|
@@ -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 * Format the years for the dropdown option label.\n *\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;;;;;;AAMM,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,62 +1,35 @@
|
|
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
|
-
*/
|
36
3
|
function calculateFocusTarget(days, getModifiers, isSelected, lastFocused) {
|
37
4
|
let focusTarget;
|
38
|
-
let
|
39
|
-
|
5
|
+
let index = 0;
|
6
|
+
let found = false;
|
7
|
+
while (index < days.length && !found) {
|
8
|
+
const day = days[index];
|
40
9
|
const modifiers = getModifiers(day);
|
41
|
-
if (
|
42
|
-
if (modifiers[DayFlag.focused]
|
10
|
+
if (!modifiers[DayFlag.disabled] && !modifiers[DayFlag.hidden] && !modifiers[DayFlag.outside]) {
|
11
|
+
if (modifiers[DayFlag.focused]) {
|
43
12
|
focusTarget = day;
|
44
|
-
|
45
|
-
} else if (lastFocused?.isEqualTo(day)
|
13
|
+
found = true;
|
14
|
+
} else if (lastFocused?.isEqualTo(day)) {
|
46
15
|
focusTarget = day;
|
47
|
-
|
48
|
-
} else if (isSelected(day.date)
|
16
|
+
found = true;
|
17
|
+
} else if (isSelected(day.date)) {
|
49
18
|
focusTarget = day;
|
50
|
-
|
51
|
-
} else if (modifiers[DayFlag.today]
|
19
|
+
found = true;
|
20
|
+
} else if (modifiers[DayFlag.today]) {
|
52
21
|
focusTarget = day;
|
53
|
-
|
22
|
+
found = true;
|
54
23
|
}
|
55
24
|
}
|
25
|
+
index++;
|
56
26
|
}
|
57
27
|
if (!focusTarget) {
|
58
|
-
//
|
59
|
-
focusTarget = days.find(day =>
|
28
|
+
// return the first day that is focusable
|
29
|
+
focusTarget = days.find(day => {
|
30
|
+
const m = getModifiers(day);
|
31
|
+
return !m[DayFlag.disabled] && !m[DayFlag.hidden] && !m[DayFlag.outside];
|
32
|
+
});
|
60
33
|
}
|
61
34
|
return focusTarget;
|
62
35
|
}
|
@@ -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\";\nexport function calculateFocusTarget(days, getModifiers, isSelected, lastFocused) {\n let focusTarget;\n let index = 0;\n let found = false;\n while (index < days.length && !found) {\n const day = days[index];\n const modifiers = getModifiers(day);\n if (!modifiers[DayFlag.disabled] &&\n !modifiers[DayFlag.hidden] &&\n !modifiers[DayFlag.outside]) {\n if (modifiers[DayFlag.focused]) {\n focusTarget = day;\n found = true;\n }\n else if (lastFocused?.isEqualTo(day)) {\n focusTarget = day;\n found = true;\n }\n else if (isSelected(day.date)) {\n focusTarget = day;\n found = true;\n }\n else if (modifiers[DayFlag.today]) {\n focusTarget = day;\n found = true;\n }\n }\n index++;\n }\n if (!focusTarget) {\n // return the first day that is focusable\n focusTarget = days.find((day) => {\n const m = getModifiers(day);\n return !m[DayFlag.disabled] && !m[DayFlag.hidden] && !m[DayFlag.outside];\n });\n }\n return focusTarget;\n}\n//# sourceMappingURL=calculateFocusTarget.js.map"],"names":["calculateFocusTarget","days","getModifiers","isSelected","lastFocused","focusTarget","index","found","length","day","modifiers","DayFlag","disabled","hidden","outside","focused","isEqualTo","date","today","find","m"],"mappings":";;AAIM,SAAUA,oBAAoBA,CAClCC,IAAmB,EACnBC,YAA6C,EAC7CC,UAAmC,EACnCC,WAAoC,EAAA;AAEpC,EAAA,IAAIC,WAAoC;EAExC,IAAIC,KAAK,GAAG,CAAC;EACb,IAAIC,KAAK,GAAG,KAAK;EAEjB,OAAOD,KAAK,GAAGL,IAAI,CAACO,MAAM,IAAI,CAACD,KAAK,EAAE;AACpC,IAAA,MAAME,GAAG,GAAGR,IAAI,CAACK,KAAK,CAAC;AACvB,IAAA,MAAMI,SAAS,GAAGR,YAAY,CAACO,GAAG,CAAC;IAEnC,IACE,CAACC,SAAS,CAACC,OAAO,CAACC,QAAQ,CAAC,IAC5B,CAACF,SAAS,CAACC,OAAO,CAACE,MAAM,CAAC,IAC1B,CAACH,SAAS,CAACC,OAAO,CAACG,OAAO,CAAC,EAC3B;AACA,MAAA,IAAIJ,SAAS,CAACC,OAAO,CAACI,OAAO,CAAC,EAAE;AAC9BV,QAAAA,WAAW,GAAGI,GAAG;AACjBF,QAAAA,KAAK,GAAG,IAAI;OACb,MAAM,IAAIH,WAAW,EAAEY,SAAS,CAACP,GAAG,CAAC,EAAE;AACtCJ,QAAAA,WAAW,GAAGI,GAAG;AACjBF,QAAAA,KAAK,GAAG,IAAI;OACb,MAAM,IAAIJ,UAAU,CAACM,GAAG,CAACQ,IAAI,CAAC,EAAE;AAC/BZ,QAAAA,WAAW,GAAGI,GAAG;AACjBF,QAAAA,KAAK,GAAG,IAAI;OACb,MAAM,IAAIG,SAAS,CAACC,OAAO,CAACO,KAAK,CAAC,EAAE;AACnCb,QAAAA,WAAW,GAAGI,GAAG;AACjBF,QAAAA,KAAK,GAAG,IAAI;AACd;AACF;AAEAD,IAAAA,KAAK,EAAE;AACT;EAEA,IAAI,CAACD,WAAW,EAAE;AAChB;AACAA,IAAAA,WAAW,GAAGJ,IAAI,CAACkB,IAAI,CAAEV,GAAG,IAAI;AAC9B,MAAA,MAAMW,CAAC,GAAGlB,YAAY,CAACO,GAAG,CAAC;MAC3B,OAAO,CAACW,CAAC,CAACT,OAAO,CAACC,QAAQ,CAAC,IAAI,CAACQ,CAAC,CAACT,OAAO,CAACE,MAAM,CAAC,IAAI,CAACO,CAAC,CAACT,OAAO,CAACG,OAAO,CAAC;AAC1E,KAAC,CAAC;AACJ;AACA,EAAA,OAAOT,WAAW;AACpB;;;;","x_google_ignoreList":[0]}
|
@@ -2,15 +2,9 @@ import { getBroadcastWeeksInMonth } from './getBroadcastWeeksInMonth.js';
|
|
2
2
|
import { startOfBroadcastWeek } from './startOfBroadcastWeek.js';
|
3
3
|
|
4
4
|
/**
|
5
|
-
*
|
6
|
-
*
|
7
|
-
* The broadcast week ends on the last day of the last broadcast week for the
|
8
|
-
* given date.
|
5
|
+
* Return the end date of the week in the broadcast calendar.
|
9
6
|
*
|
10
7
|
* @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.
|
14
8
|
*/
|
15
9
|
function endOfBroadcastWeek(date, dateLib) {
|
16
10
|
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 * Return the end date of the week in the broadcast calendar.\n *\n * @since 9.4.0\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;;;;;AAKM,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,16 +1,9 @@
|
|
1
1
|
const FIVE_WEEKS = 5;
|
2
2
|
const FOUR_WEEKS = 4;
|
3
3
|
/**
|
4
|
-
*
|
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.
|
4
|
+
* Return the number of weeks to display in the broadcast calendar.
|
9
5
|
*
|
10
6
|
* @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).
|
14
7
|
*/
|
15
8
|
function getBroadcastWeeksInMonth(month, dateLib) {
|
16
9
|
// 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 * Return the number of weeks to display in the broadcast calendar.\n *\n * @since 9.4.0\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;;;;;AAKM,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,17 +1,5 @@
|
|
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
|
-
*/
|
15
3
|
function getClassNamesForModifiers(modifiers, classNames, modifiersClassNames = {}) {
|
16
4
|
const modifierClassNames = Object.entries(modifiers).filter(([, active]) => active === true).reduce((previousValue, [key]) => {
|
17
5
|
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\";\
|
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":";;AAGM,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,15 +1,5 @@
|
|
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
|
-
*/
|
13
3
|
function getComponents(customComponents$1) {
|
14
4
|
return {
|
15
5
|
...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\";\
|
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":";;AAGM,SAAUA,aAAaA,CAC3BC,kBAA8C,EAAA;EAE9C,OAAO;AACL,IAAA,GAAGC,gBAAU;IACb,GAAGD;AACJ,GAAA;AACH;;;;","x_google_ignoreList":[0]}
|
@@ -1,20 +1,11 @@
|
|
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
|
-
*/
|
1
|
+
/** Return the `data-` attributes from the props. */
|
10
2
|
function getDataAttributes(props) {
|
11
3
|
const dataAttributes = {
|
12
4
|
"data-mode": props.mode ?? undefined,
|
13
5
|
"data-required": "required" in props ? props.required : undefined,
|
14
6
|
"data-multiple-months": props.numberOfMonths && props.numberOfMonths > 1 || undefined,
|
15
7
|
"data-week-numbers": props.showWeekNumber || undefined,
|
16
|
-
"data-broadcast-calendar": props.broadcastCalendar || undefined
|
17
|
-
"data-nav-layout": props.navLayout || undefined
|
8
|
+
"data-broadcast-calendar": props.broadcastCalendar || undefined
|
18
9
|
};
|
19
10
|
Object.entries(props).forEach(([key, val]) => {
|
20
11
|
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":["/** Return the `data-` attributes from the props. */\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 };\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","Object","entries","forEach","key","val","startsWith"],"mappings":"AAEA;AACM,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;AACvD,GAAA;AACDK,EAAAA,MAAM,CAACC,OAAO,CAACT,KAAK,CAAC,CAACU,OAAO,CAAC,CAAC,CAACC,GAAG,EAAEC,GAAG,CAAC,KAAI;AAC3C,IAAA,IAAID,GAAG,CAACE,UAAU,CAAC,OAAO,CAAC,EAAE;AAC3BZ,MAAAA,cAAc,CAACU,GAAG,CAAC,GAAGC,GAAG;AAC3B;AACF,GAAC,CAAC;AACF,EAAA,OAAOX,cAAc;AACvB;;;;","x_google_ignoreList":[0]}
|
@@ -1,15 +1,4 @@
|
|
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
|
-
*/
|
1
|
+
/** Return all the dates to display in the calendar. */
|
13
2
|
function getDates(displayMonths, maxDate, props, dateLib) {
|
14
3
|
const firstMonth = displayMonths[0];
|
15
4
|
const lastMonth = displayMonths[displayMonths.length - 1];
|
@@ -32,7 +21,7 @@ function getDates(displayMonths, maxDate, props, dateLib) {
|
|
32
21
|
startOfWeek
|
33
22
|
} = dateLib;
|
34
23
|
const startWeekFirstDate = broadcastCalendar ? startOfBroadcastWeek(firstMonth, dateLib) : ISOWeek ? startOfISOWeek(firstMonth) : startOfWeek(firstMonth);
|
35
|
-
const endWeekLastDate = broadcastCalendar ? endOfBroadcastWeek(lastMonth) : ISOWeek ? endOfISOWeek(endOfMonth(lastMonth)) : endOfWeek(endOfMonth(lastMonth));
|
24
|
+
const endWeekLastDate = broadcastCalendar ? endOfBroadcastWeek(lastMonth, dateLib) : ISOWeek ? endOfISOWeek(endOfMonth(lastMonth)) : endOfWeek(endOfMonth(lastMonth));
|
36
25
|
const nOfDays = differenceInCalendarDays(endWeekLastDate, startWeekFirstDate);
|
37
26
|
const nOfMonths = differenceInCalendarMonths(lastMonth, firstMonth) + 1;
|
38
27
|
const dates = [];
|