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,9 +1,4 @@
|
|
1
|
-
/**
|
2
|
-
* Returns an array of calendar weeks from an array of calendar months.
|
3
|
-
*
|
4
|
-
* @param months The array of calendar months.
|
5
|
-
* @returns An array of calendar weeks.
|
6
|
-
*/
|
1
|
+
/** Returns an array of calendar weeks from an array of calendar months. */
|
7
2
|
function getWeeks(months) {
|
8
3
|
const initialWeeks = [];
|
9
4
|
return months.reduce((weeks, month) => {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"getWeeks.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/helpers/getWeeks.js"],"sourcesContent":["
|
1
|
+
{"version":3,"file":"getWeeks.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/helpers/getWeeks.js"],"sourcesContent":["/** Returns an array of calendar weeks from an array of calendar months. */\nexport function getWeeks(months) {\n const initialWeeks = [];\n return months.reduce((weeks, month) => {\n return [...weeks, ...month.weeks];\n }, initialWeeks);\n}\n//# sourceMappingURL=getWeeks.js.map"],"names":["getWeeks","months","initialWeeks","reduce","weeks","month"],"mappings":"AAEA;AACM,SAAUA,QAAQA,CAACC,MAAuB,EAAA;EAC9C,MAAMC,YAAY,GAAmB,EAAE;EACvC,OAAOD,MAAM,CAACE,MAAM,CAAC,CAACC,KAAK,EAAEC,KAAK,KAAI;IACpC,OAAO,CAAC,GAAGD,KAAK,EAAE,GAAGC,KAAK,CAACD,KAAK,CAAC;GAClC,EAAEF,YAAY,CAAC;AAClB;;;;","x_google_ignoreList":[0]}
|
@@ -1,16 +1,4 @@
|
|
1
|
-
/**
|
2
|
-
* Returns the years to display in the dropdown.
|
3
|
-
*
|
4
|
-
* This function generates a list of years between the navigation start and end
|
5
|
-
* dates, formatted using the provided formatter.
|
6
|
-
*
|
7
|
-
* @param navStart The start date for navigation.
|
8
|
-
* @param navEnd The end date for navigation.
|
9
|
-
* @param formatters The formatters to use for formatting the year labels.
|
10
|
-
* @param dateLib The date library to use for date manipulation.
|
11
|
-
* @returns An array of dropdown options representing the years, or `undefined`
|
12
|
-
* if `navStart` or `navEnd` is not provided.
|
13
|
-
*/
|
1
|
+
/** Return the years to show in the dropdown. */
|
14
2
|
function getYearOptions(navStart, navEnd, formatters, dateLib) {
|
15
3
|
if (!navStart) return undefined;
|
16
4
|
if (!navEnd) return undefined;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"getYearOptions.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/helpers/getYearOptions.js"],"sourcesContent":["
|
1
|
+
{"version":3,"file":"getYearOptions.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/helpers/getYearOptions.js"],"sourcesContent":["/** Return the years to show in the dropdown. */\nexport function getYearOptions(navStart, navEnd, formatters, dateLib) {\n if (!navStart)\n return undefined;\n if (!navEnd)\n return undefined;\n const { startOfYear, endOfYear, addYears, getYear, isBefore, isSameYear } = dateLib;\n const firstNavYear = startOfYear(navStart);\n const lastNavYear = endOfYear(navEnd);\n const years = [];\n let year = firstNavYear;\n while (isBefore(year, lastNavYear) || isSameYear(year, lastNavYear)) {\n years.push(year);\n year = addYears(year, 1);\n }\n return years.map((year) => {\n const label = formatters.formatYearDropdown(year, dateLib);\n return {\n value: getYear(year),\n label,\n disabled: false\n };\n });\n}\n//# sourceMappingURL=getYearOptions.js.map"],"names":["getYearOptions","navStart","navEnd","formatters","dateLib","undefined","startOfYear","endOfYear","addYears","getYear","isBefore","isSameYear","firstNavYear","lastNavYear","years","year","push","map","label","formatYearDropdown","value","disabled"],"mappings":"AAIA;AACM,SAAUA,cAAcA,CAC5BC,QAA0B,EAC1BC,MAAwB,EACxBC,UAAkD,EAClDC,OAAgB,EAAA;AAEhB,EAAA,IAAI,CAACH,QAAQ,EAAE,OAAOI,SAAS;AAC/B,EAAA,IAAI,CAACH,MAAM,EAAE,OAAOG,SAAS;EAC7B,MAAM;IAAEC,WAAW;IAAEC,SAAS;IAAEC,QAAQ;IAAEC,OAAO;IAAEC,QAAQ;AAAEC,IAAAA;AAAU,GAAE,GACvEP,OAAO;AACT,EAAA,MAAMQ,YAAY,GAAGN,WAAW,CAACL,QAAQ,CAAC;AAC1C,EAAA,MAAMY,WAAW,GAAGN,SAAS,CAACL,MAAM,CAAC;EACrC,MAAMY,KAAK,GAAW,EAAE;EAExB,IAAIC,IAAI,GAAGH,YAAY;AACvB,EAAA,OAAOF,QAAQ,CAACK,IAAI,EAAEF,WAAW,CAAC,IAAIF,UAAU,CAACI,IAAI,EAAEF,WAAW,CAAC,EAAE;AACnEC,IAAAA,KAAK,CAACE,IAAI,CAACD,IAAI,CAAC;AAChBA,IAAAA,IAAI,GAAGP,QAAQ,CAACO,IAAI,EAAE,CAAC,CAAC;AAC1B;AAEA,EAAA,OAAOD,KAAK,CAACG,GAAG,CAAEF,IAAI,IAAI;IACxB,MAAMG,KAAK,GAAGf,UAAU,CAACgB,kBAAkB,CAACJ,IAAI,EAAEX,OAAO,CAAC;IAC1D,OAAO;AACLgB,MAAAA,KAAK,EAAEX,OAAO,CAACM,IAAI,CAAC;MACpBG,KAAK;AACLG,MAAAA,QAAQ,EAAE;AACX,KAAA;AACH,GAAC,CAAC;AACJ;;;;","x_google_ignoreList":[0]}
|
@@ -1,14 +1,7 @@
|
|
1
1
|
/**
|
2
|
-
*
|
3
|
-
*
|
4
|
-
* The broadcast week starts on Monday. If the first day of the month is not a
|
5
|
-
* Monday, this function calculates the previous Monday as the start of the
|
6
|
-
* broadcast week.
|
2
|
+
* Return the start date of the week in the broadcast calendar.
|
7
3
|
*
|
8
4
|
* @since 9.4.0
|
9
|
-
* @param date The date for which to calculate the start of the broadcast week.
|
10
|
-
* @param dateLib The date library to use for date manipulation.
|
11
|
-
* @returns The start date of the broadcast week.
|
12
5
|
*/
|
13
6
|
function startOfBroadcastWeek(date, dateLib) {
|
14
7
|
const firstOfMonth = dateLib.startOfMonth(date);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"startOfBroadcastWeek.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/helpers/startOfBroadcastWeek.js"],"sourcesContent":["/**\n *
|
1
|
+
{"version":3,"file":"startOfBroadcastWeek.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/helpers/startOfBroadcastWeek.js"],"sourcesContent":["/**\n * Return the start date of the week in the broadcast calendar.\n *\n * @since 9.4.0\n */\nexport function startOfBroadcastWeek(date, dateLib) {\n const firstOfMonth = dateLib.startOfMonth(date);\n const dayOfWeek = firstOfMonth.getDay();\n if (dayOfWeek === 1) {\n return firstOfMonth;\n }\n else if (dayOfWeek === 0) {\n return dateLib.addDays(firstOfMonth, -1 * 6);\n }\n else {\n return dateLib.addDays(firstOfMonth, -1 * (dayOfWeek - 1));\n }\n}\n//# sourceMappingURL=startOfBroadcastWeek.js.map"],"names":["startOfBroadcastWeek","date","dateLib","firstOfMonth","startOfMonth","dayOfWeek","getDay","addDays"],"mappings":"AAEA;;;;;AAKM,SAAUA,oBAAoBA,CAACC,IAAU,EAAEC,OAAgB,EAAA;AAC/D,EAAA,MAAMC,YAAY,GAAGD,OAAO,CAACE,YAAY,CAACH,IAAI,CAAC;AAC/C,EAAA,MAAMI,SAAS,GAAGF,YAAY,CAACG,MAAM,EAAE;EAEvC,IAAID,SAAS,KAAK,CAAC,EAAE;AACnB,IAAA,OAAOF,YAAY;AACrB,GAAC,MAAM,IAAIE,SAAS,KAAK,CAAC,EAAE;IAC1B,OAAOH,OAAO,CAACK,OAAO,CAACJ,YAAY,EAAE,EAAE,GAAG,CAAC,CAAC;AAC9C,GAAC,MAAM;AACL,IAAA,OAAOD,OAAO,CAACK,OAAO,CAACJ,YAAY,EAAE,EAAE,IAAIE,SAAS,GAAG,CAAC,CAAC,CAAC;AAC5D;AACF;;;;","x_google_ignoreList":[0]}
|
@@ -3,10 +3,6 @@ import { useState } from 'react';
|
|
3
3
|
/**
|
4
4
|
* A custom hook for managing both controlled and uncontrolled component states.
|
5
5
|
*
|
6
|
-
* This hook allows a component to support both controlled and uncontrolled
|
7
|
-
* states by determining whether the `controlledValue` is provided. If it is
|
8
|
-
* undefined, the hook falls back to using the internal state.
|
9
|
-
*
|
10
6
|
* @example
|
11
7
|
* // Uncontrolled usage
|
12
8
|
* const [value, setValue] = useControlledValue(0, undefined);
|
@@ -15,12 +11,12 @@ import { useState } from 'react';
|
|
15
11
|
* const [value, setValue] = useControlledValue(0, props.value);
|
16
12
|
*
|
17
13
|
* @template T - The type of the value.
|
18
|
-
* @param defaultValue The initial value for the uncontrolled state.
|
19
|
-
* @param controlledValue The value for the controlled state.
|
20
|
-
* component will use the uncontrolled state.
|
21
|
-
* @returns
|
22
|
-
* controlled or uncontrolled) and the
|
23
|
-
* update the value.
|
14
|
+
* @param {T} defaultValue - The initial value for the uncontrolled state.
|
15
|
+
* @param {T | undefined} controlledValue - The value for the controlled state.
|
16
|
+
* If undefined, the component will use the uncontrolled state.
|
17
|
+
* @returns {[T, DispatchStateAction<T>]} - Returns a tuple where the first
|
18
|
+
* element is the current value (either controlled or uncontrolled) and the
|
19
|
+
* second element is a setter function to update the value.
|
24
20
|
*/
|
25
21
|
function useControlledValue(defaultValue, controlledValue) {
|
26
22
|
const [uncontrolledValue, setValue] = useState(defaultValue);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"useControlledValue.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/helpers/useControlledValue.js"],"sourcesContent":["import { useState } from \"react\";\n/**\n * A custom hook for managing both controlled and uncontrolled component states.\n *\n *
|
1
|
+
{"version":3,"file":"useControlledValue.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/helpers/useControlledValue.js"],"sourcesContent":["import { useState } from \"react\";\n/**\n * A custom hook for managing both controlled and uncontrolled component states.\n *\n * @example\n * // Uncontrolled usage\n * const [value, setValue] = useControlledValue(0, undefined);\n *\n * // Controlled usage\n * const [value, setValue] = useControlledValue(0, props.value);\n *\n * @template T - The type of the value.\n * @param {T} defaultValue - The initial value for the uncontrolled state.\n * @param {T | undefined} controlledValue - The value for the controlled state.\n * If undefined, the component will use the uncontrolled state.\n * @returns {[T, DispatchStateAction<T>]} - Returns a tuple where the first\n * element is the current value (either controlled or uncontrolled) and the\n * second element is a setter function to update the value.\n */\nexport function useControlledValue(defaultValue, controlledValue) {\n const [uncontrolledValue, setValue] = useState(defaultValue);\n const value = controlledValue === undefined ? uncontrolledValue : controlledValue;\n return [value, setValue];\n}\n//# sourceMappingURL=useControlledValue.js.map"],"names":["useControlledValue","defaultValue","controlledValue","uncontrolledValue","setValue","useState","value","undefined"],"mappings":";;AAIA;;;;;;;;;;;;;;;;;;AAkBM,SAAUA,kBAAkBA,CAChCC,YAAe,EACfC,eAA8B,EAAA;EAE9B,MAAM,CAACC,iBAAiB,EAAEC,QAAQ,CAAC,GAAGC,QAAQ,CAACJ,YAAY,CAAC;EAE5D,MAAMK,KAAK,GACTJ,eAAe,KAAKK,SAAS,GAAGJ,iBAAiB,GAAGD,eAAe;AAErE,EAAA,OAAO,CAACI,KAAK,EAAEF,QAAQ,CAAgC;AACzD;;;;","x_google_ignoreList":[0]}
|
@@ -1,21 +1,17 @@
|
|
1
1
|
import { DateLib } from '../classes/DateLib.js';
|
2
2
|
|
3
3
|
/**
|
4
|
-
*
|
4
|
+
* The ARIA label for the day button.
|
5
5
|
*
|
6
|
-
* Use the `modifiers` argument to
|
7
|
-
*
|
6
|
+
* Use the `modifiers` argument to add additional context to the label, e.g.
|
7
|
+
* when a day is selected or is today.
|
8
8
|
*
|
9
9
|
* @defaultValue The formatted date.
|
10
|
-
* @param date - The date to format.
|
11
|
-
* @param modifiers - The modifiers providing context for the day.
|
12
|
-
* @param options - Optional configuration for the date formatting library.
|
13
|
-
* @param dateLib - An optional instance of the date formatting library.
|
14
|
-
* @returns The ARIA label for the day button.
|
15
10
|
* @group Labels
|
16
11
|
* @see https://daypicker.dev/docs/translation#aria-labels
|
17
12
|
*/
|
18
|
-
function labelDayButton(date, modifiers
|
13
|
+
function labelDayButton(date, /** The modifiers for the day. */
|
14
|
+
modifiers, options, dateLib) {
|
19
15
|
let label = (dateLib ?? new DateLib(options)).format(date, "PPPP");
|
20
16
|
if (modifiers.today) label = `Today, ${label}`;
|
21
17
|
if (modifiers.selected) label = `${label}, selected`;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"labelDayButton.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/labels/labelDayButton.js"],"sourcesContent":["import { DateLib } from \"../classes/DateLib.js\";\n/**\n *
|
1
|
+
{"version":3,"file":"labelDayButton.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/labels/labelDayButton.js"],"sourcesContent":["import { DateLib } from \"../classes/DateLib.js\";\n/**\n * The ARIA label for the day button.\n *\n * Use the `modifiers` argument to add additional context to the label, e.g.\n * when a day is selected or is today.\n *\n * @defaultValue The formatted date.\n * @group Labels\n * @see https://daypicker.dev/docs/translation#aria-labels\n */\nexport function labelDayButton(date, \n/** The modifiers for the day. */\nmodifiers, options, dateLib) {\n let label = (dateLib ?? new DateLib(options)).format(date, \"PPPP\");\n if (modifiers.today)\n label = `Today, ${label}`;\n if (modifiers.selected)\n label = `${label}, selected`;\n return label;\n}\n/**\n * @ignore\n * @deprecated Use `labelDayButton` instead.\n */\nexport const labelDay = labelDayButton;\n//# sourceMappingURL=labelDayButton.js.map"],"names":["labelDayButton","date","modifiers","options","dateLib","label","DateLib","format","today","selected","labelDay"],"mappings":";;AAGA;;;;;;;;;;AAUM,SAAUA,cAAcA,CAC5BC,IAAU;AAEVC,SAAoB,EACpBC,OAAwB,EACxBC,OAAiB,EAAA;AAEjB,EAAA,IAAIC,KAAK,GAAG,CAACD,OAAO,IAAI,IAAIE,OAAO,CAACH,OAAO,CAAC,EAAEI,MAAM,CAACN,IAAI,EAAE,MAAM,CAAC;EAClE,IAAIC,SAAS,CAACM,KAAK,EAAEH,KAAK,GAAG,CAAA,OAAA,EAAUA,KAAK,CAAE,CAAA;EAC9C,IAAIH,SAAS,CAACO,QAAQ,EAAEJ,KAAK,GAAG,CAAA,EAAGA,KAAK,CAAY,UAAA,CAAA;AACpD,EAAA,OAAOA,KAAK;AACd;AAEA;;;;AAIO,MAAMK,QAAQ,GAAGV;;;;","x_google_ignoreList":[0]}
|
@@ -1,14 +1,10 @@
|
|
1
1
|
import { DateLib } from '../classes/DateLib.js';
|
2
2
|
|
3
3
|
/**
|
4
|
-
*
|
5
|
-
*
|
4
|
+
* The ARIA label for the month grid, that will be announced when entering the
|
5
|
+
* grid.
|
6
6
|
*
|
7
|
-
* @defaultValue `LLLL y` (e.g
|
8
|
-
* @param date - The date representing the month.
|
9
|
-
* @param options - Optional configuration for the date formatting library.
|
10
|
-
* @param dateLib - An optional instance of the date formatting library.
|
11
|
-
* @returns The ARIA label for the month grid.
|
7
|
+
* @defaultValue `LLLL y` (e.g. "November 2022")
|
12
8
|
* @group Labels
|
13
9
|
* @see https://daypicker.dev/docs/translation#aria-labels
|
14
10
|
*/
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"labelGrid.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/labels/labelGrid.js"],"sourcesContent":["import { DateLib } from \"../classes/DateLib.js\";\n/**\n *
|
1
|
+
{"version":3,"file":"labelGrid.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/labels/labelGrid.js"],"sourcesContent":["import { DateLib } from \"../classes/DateLib.js\";\n/**\n * The ARIA label for the month grid, that will be announced when entering the\n * grid.\n *\n * @defaultValue `LLLL y` (e.g. \"November 2022\")\n * @group Labels\n * @see https://daypicker.dev/docs/translation#aria-labels\n */\nexport function labelGrid(date, options, dateLib) {\n return (dateLib ?? new DateLib(options)).format(date, \"LLLL y\");\n}\n/**\n * @ignore\n * @deprecated Use {@link labelGrid} instead.\n */\nexport const labelCaption = labelGrid;\n//# sourceMappingURL=labelGrid.js.map"],"names":["labelGrid","date","options","dateLib","DateLib","format","labelCaption"],"mappings":";;AAEA;;;;;;;;AAQM,SAAUA,SAASA,CACvBC,IAAU,EACVC,OAAwB,EACxBC,OAAiB,EAAA;AAEjB,EAAA,OAAO,CAACA,OAAO,IAAI,IAAIC,OAAO,CAACF,OAAO,CAAC,EAAEG,MAAM,CAACJ,IAAI,EAAE,QAAQ,CAAC;AACjE;AAEA;;;;AAIO,MAAMK,YAAY,GAAGN;;;;","x_google_ignoreList":[0]}
|
@@ -1,17 +1,13 @@
|
|
1
1
|
import { DateLib } from '../classes/DateLib.js';
|
2
2
|
|
3
3
|
/**
|
4
|
-
*
|
4
|
+
* The label for the day gridcell when the calendar is not interactive.
|
5
5
|
*
|
6
|
-
* @param date - The date to format.
|
7
|
-
* @param modifiers - Optional modifiers providing context for the day.
|
8
|
-
* @param options - Optional configuration for the date formatting library.
|
9
|
-
* @param dateLib - An optional instance of the date formatting library.
|
10
|
-
* @returns The label for the day grid cell.
|
11
6
|
* @group Labels
|
12
7
|
* @see https://daypicker.dev/docs/translation#aria-labels
|
13
8
|
*/
|
14
|
-
function labelGridcell(date, modifiers
|
9
|
+
function labelGridcell(date, /** The modifiers for the day. */
|
10
|
+
modifiers, options, dateLib) {
|
15
11
|
let label = (dateLib ?? new DateLib(options)).format(date, "PPPP");
|
16
12
|
if (modifiers?.today) {
|
17
13
|
label = `Today, ${label}`;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"labelGridcell.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/labels/labelGridcell.js"],"sourcesContent":["import { DateLib } from \"../classes/DateLib.js\";\n/**\n *
|
1
|
+
{"version":3,"file":"labelGridcell.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/labels/labelGridcell.js"],"sourcesContent":["import { DateLib } from \"../classes/DateLib.js\";\n/**\n * The label for the day gridcell when the calendar is not interactive.\n *\n * @group Labels\n * @see https://daypicker.dev/docs/translation#aria-labels\n */\nexport function labelGridcell(date, \n/** The modifiers for the day. */\nmodifiers, options, dateLib) {\n let label = (dateLib ?? new DateLib(options)).format(date, \"PPPP\");\n if (modifiers?.today) {\n label = `Today, ${label}`;\n }\n return label;\n}\n//# sourceMappingURL=labelGridcell.js.map"],"names":["labelGridcell","date","modifiers","options","dateLib","label","DateLib","format","today"],"mappings":";;AAGA;;;;;;AAMM,SAAUA,aAAaA,CAC3BC,IAAU;AAEVC,SAAqB,EACrBC,OAAwB,EACxBC,OAAiB,EAAA;AAEjB,EAAA,IAAIC,KAAK,GAAG,CAACD,OAAO,IAAI,IAAIE,OAAO,CAACH,OAAO,CAAC,EAAEI,MAAM,CAACN,IAAI,EAAE,MAAM,CAAC;EAClE,IAAIC,SAAS,EAAEM,KAAK,EAAE;IACpBH,KAAK,GAAG,CAAUA,OAAAA,EAAAA,KAAK,CAAE,CAAA;AAC3B;AACA,EAAA,OAAOA,KAAK;AACd;;;;","x_google_ignoreList":[0]}
|
@@ -1,9 +1,7 @@
|
|
1
1
|
/**
|
2
|
-
*
|
2
|
+
* The ARIA label for the months dropdown.
|
3
3
|
*
|
4
4
|
* @defaultValue `"Choose the Month"`
|
5
|
-
* @param options - Optional configuration for the date formatting library.
|
6
|
-
* @returns The ARIA label for the months dropdown.
|
7
5
|
* @group Labels
|
8
6
|
* @see https://daypicker.dev/docs/translation#aria-labels
|
9
7
|
*/
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"labelMonthDropdown.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/labels/labelMonthDropdown.js"],"sourcesContent":["/**\n *
|
1
|
+
{"version":3,"file":"labelMonthDropdown.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/labels/labelMonthDropdown.js"],"sourcesContent":["/**\n * The ARIA label for the months dropdown.\n *\n * @defaultValue `\"Choose the Month\"`\n * @group Labels\n * @see https://daypicker.dev/docs/translation#aria-labels\n */\nexport function labelMonthDropdown(options) {\n return \"Choose the Month\";\n}\n//# sourceMappingURL=labelMonthDropdown.js.map"],"names":["labelMonthDropdown","options"],"mappings":"AAEA;;;;;;;AAOM,SAAUA,kBAAkBA,CAACC,OAAwB,EAAA;AACzD,EAAA,OAAO,kBAAkB;AAC3B;;;;","x_google_ignoreList":[0]}
|
@@ -1,8 +1,7 @@
|
|
1
1
|
/**
|
2
|
-
*
|
2
|
+
* The ARIA label for the navigation toolbar.
|
3
3
|
*
|
4
4
|
* @defaultValue `""`
|
5
|
-
* @returns The ARIA label for the navigation toolbar.
|
6
5
|
* @group Labels
|
7
6
|
* @see https://daypicker.dev/docs/translation#aria-labels
|
8
7
|
*/
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"labelNav.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/labels/labelNav.js"],"sourcesContent":["/**\n *
|
1
|
+
{"version":3,"file":"labelNav.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/labels/labelNav.js"],"sourcesContent":["/**\n * The ARIA label for the navigation toolbar.\n *\n * @defaultValue `\"\"`\n * @group Labels\n * @see https://daypicker.dev/docs/translation#aria-labels\n */\nexport function labelNav() {\n return \"\";\n}\n//# sourceMappingURL=labelNav.js.map"],"names":["labelNav"],"mappings":"AAAA;;;;;;;AAOM,SAAUA,QAAQA,GAAA;AACtB,EAAA,OAAO,EAAE;AACX;;;;","x_google_ignoreList":[0]}
|
@@ -1,14 +1,12 @@
|
|
1
1
|
/**
|
2
|
-
*
|
2
|
+
* The ARIA label for next month button.
|
3
3
|
*
|
4
4
|
* @defaultValue `"Go to the Next Month"`
|
5
|
-
* @param month - The date representing the next month, or `undefined` if there
|
6
|
-
* is no next month.
|
7
|
-
* @returns The ARIA label for the "next month" button.
|
8
5
|
* @group Labels
|
9
6
|
* @see https://daypicker.dev/docs/translation#aria-labels
|
10
7
|
*/
|
11
|
-
function labelNext(month
|
8
|
+
function labelNext(/** `undefined` where there's no next month to navigate to. */
|
9
|
+
month) {
|
12
10
|
return "Go to the Next Month";
|
13
11
|
}
|
14
12
|
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"labelNext.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/labels/labelNext.js"],"sourcesContent":["/**\n *
|
1
|
+
{"version":3,"file":"labelNext.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/labels/labelNext.js"],"sourcesContent":["/**\n * The ARIA label for next month button.\n *\n * @defaultValue `\"Go to the Next Month\"`\n * @group Labels\n * @see https://daypicker.dev/docs/translation#aria-labels\n */\nexport function labelNext(\n/** `undefined` where there's no next month to navigate to. */\nmonth) {\n return \"Go to the Next Month\";\n}\n//# sourceMappingURL=labelNext.js.map"],"names":["labelNext","month"],"mappings":"AAAA;;;;;;;AAOM,SAAUA,SAASA;AAEvBC,KAAuB,EAAA;AAEvB,EAAA,OAAO,sBAAsB;AAC/B;;;;","x_google_ignoreList":[0]}
|
@@ -1,14 +1,12 @@
|
|
1
1
|
/**
|
2
|
-
*
|
2
|
+
* The ARIA label for previous month button.
|
3
3
|
*
|
4
4
|
* @defaultValue `"Go to the Previous Month"`
|
5
|
-
* @param month - The date representing the previous month, or `undefined` if
|
6
|
-
* there is no previous month.
|
7
|
-
* @returns The ARIA label for the "previous month" button.
|
8
5
|
* @group Labels
|
9
6
|
* @see https://daypicker.dev/docs/translation#aria-labels
|
10
7
|
*/
|
11
|
-
function labelPrevious(month
|
8
|
+
function labelPrevious(/** Undefined where there's no previous month to navigate to. */
|
9
|
+
month) {
|
12
10
|
return "Go to the Previous Month";
|
13
11
|
}
|
14
12
|
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"labelPrevious.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/labels/labelPrevious.js"],"sourcesContent":["/**\n *
|
1
|
+
{"version":3,"file":"labelPrevious.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/labels/labelPrevious.js"],"sourcesContent":["/**\n * The ARIA label for previous month button.\n *\n * @defaultValue `\"Go to the Previous Month\"`\n * @group Labels\n * @see https://daypicker.dev/docs/translation#aria-labels\n */\nexport function labelPrevious(\n/** Undefined where there's no previous month to navigate to. */\nmonth) {\n return \"Go to the Previous Month\";\n}\n//# sourceMappingURL=labelPrevious.js.map"],"names":["labelPrevious","month"],"mappings":"AAAA;;;;;;;AAOM,SAAUA,aAAaA;AAE3BC,KAAuB,EAAA;AAEvB,EAAA,OAAO,0BAA0B;AACnC;;;;","x_google_ignoreList":[0]}
|
@@ -1,10 +1,7 @@
|
|
1
1
|
/**
|
2
|
-
*
|
2
|
+
* The ARIA label for the week number cell (the first cell in the row).
|
3
3
|
*
|
4
4
|
* @defaultValue `Week ${weekNumber}`
|
5
|
-
* @param weekNumber - The number of the week.
|
6
|
-
* @param options - Optional configuration for the date formatting library.
|
7
|
-
* @returns The ARIA label for the week number cell.
|
8
5
|
* @group Labels
|
9
6
|
* @see https://daypicker.dev/docs/translation#aria-labels
|
10
7
|
*/
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"labelWeekNumber.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/labels/labelWeekNumber.js"],"sourcesContent":["/**\n *
|
1
|
+
{"version":3,"file":"labelWeekNumber.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/labels/labelWeekNumber.js"],"sourcesContent":["/**\n * The ARIA label for the week number cell (the first cell in the row).\n *\n * @defaultValue `Week ${weekNumber}`\n * @group Labels\n * @see https://daypicker.dev/docs/translation#aria-labels\n */\nexport function labelWeekNumber(weekNumber, options) {\n return `Week ${weekNumber}`;\n}\n//# sourceMappingURL=labelWeekNumber.js.map"],"names":["labelWeekNumber","weekNumber","options"],"mappings":"AAEA;;;;;;;AAOM,SAAUA,eAAeA,CAC7BC,UAAkB,EAClBC,OAAwB,EAAA;EAExB,OAAO,CAAA,KAAA,EAAQD,UAAU,CAAE,CAAA;AAC7B;;;;","x_google_ignoreList":[0]}
|
@@ -1,9 +1,7 @@
|
|
1
1
|
/**
|
2
|
-
*
|
2
|
+
* The ARIA label for the week number header element.
|
3
3
|
*
|
4
4
|
* @defaultValue `"Week Number"`
|
5
|
-
* @param options - Optional configuration for the date formatting library.
|
6
|
-
* @returns The ARIA label for the week number header.
|
7
5
|
* @group Labels
|
8
6
|
* @see https://daypicker.dev/docs/translation#aria-labels
|
9
7
|
*/
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"labelWeekNumberHeader.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/labels/labelWeekNumberHeader.js"],"sourcesContent":["/**\n *
|
1
|
+
{"version":3,"file":"labelWeekNumberHeader.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/labels/labelWeekNumberHeader.js"],"sourcesContent":["/**\n * The ARIA label for the week number header element.\n *\n * @defaultValue `\"Week Number\"`\n * @group Labels\n * @see https://daypicker.dev/docs/translation#aria-labels\n */\nexport function labelWeekNumberHeader(options) {\n return \"Week Number\";\n}\n//# sourceMappingURL=labelWeekNumberHeader.js.map"],"names":["labelWeekNumberHeader","options"],"mappings":"AAEA;;;;;;;AAOM,SAAUA,qBAAqBA,CAACC,OAAwB,EAAA;AAC5D,EAAA,OAAO,aAAa;AACtB;;;;","x_google_ignoreList":[0]}
|
@@ -1,13 +1,9 @@
|
|
1
1
|
import { DateLib } from '../classes/DateLib.js';
|
2
2
|
|
3
3
|
/**
|
4
|
-
*
|
4
|
+
* The ARIA label for the Weekday column header.
|
5
5
|
*
|
6
6
|
* @defaultValue `"Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"`
|
7
|
-
* @param date - The date representing the weekday.
|
8
|
-
* @param options - Optional configuration for the date formatting library.
|
9
|
-
* @param dateLib - An optional instance of the date formatting library.
|
10
|
-
* @returns The ARIA label for the weekday column header.
|
11
7
|
* @group Labels
|
12
8
|
* @see https://daypicker.dev/docs/translation#aria-labels
|
13
9
|
*/
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"labelWeekday.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/labels/labelWeekday.js"],"sourcesContent":["import { DateLib } from \"../classes/DateLib.js\";\n/**\n *
|
1
|
+
{"version":3,"file":"labelWeekday.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/labels/labelWeekday.js"],"sourcesContent":["import { DateLib } from \"../classes/DateLib.js\";\n/**\n * The ARIA label for the Weekday column header.\n *\n * @defaultValue `\"Monday\", \"Tuesday\", \"Wednesday\", \"Thursday\", \"Friday\", \"Saturday\", \"Sunday\"`\n * @group Labels\n * @see https://daypicker.dev/docs/translation#aria-labels\n */\nexport function labelWeekday(date, options, dateLib) {\n return (dateLib ?? new DateLib(options)).format(date, \"cccc\");\n}\n//# sourceMappingURL=labelWeekday.js.map"],"names":["labelWeekday","date","options","dateLib","DateLib","format"],"mappings":";;AAEA;;;;;;;AAOM,SAAUA,YAAYA,CAC1BC,IAAU,EACVC,OAAwB,EACxBC,OAAiB,EAAA;AAEjB,EAAA,OAAO,CAACA,OAAO,IAAI,IAAIC,OAAO,CAACF,OAAO,CAAC,EAAEG,MAAM,CAACJ,IAAI,EAAE,MAAM,CAAC;AAC/D;;;;","x_google_ignoreList":[0]}
|
@@ -1,9 +1,7 @@
|
|
1
1
|
/**
|
2
|
-
*
|
2
|
+
* The ARIA label for the years dropdown.
|
3
3
|
*
|
4
4
|
* @defaultValue `"Choose the Year"`
|
5
|
-
* @param options - Optional configuration for the date formatting library.
|
6
|
-
* @returns The ARIA label for the years dropdown.
|
7
5
|
* @group Labels
|
8
6
|
* @see https://daypicker.dev/docs/translation#aria-labels
|
9
7
|
*/
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"labelYearDropdown.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/labels/labelYearDropdown.js"],"sourcesContent":["/**\n *
|
1
|
+
{"version":3,"file":"labelYearDropdown.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/labels/labelYearDropdown.js"],"sourcesContent":["/**\n * The ARIA label for the years dropdown.\n *\n * @defaultValue `\"Choose the Year\"`\n * @group Labels\n * @see https://daypicker.dev/docs/translation#aria-labels\n */\nexport function labelYearDropdown(options) {\n return \"Choose the Year\";\n}\n//# sourceMappingURL=labelYearDropdown.js.map"],"names":["labelYearDropdown","options"],"mappings":"AAEA;;;;;;;AAOM,SAAUA,iBAAiBA,CAACC,OAAwB,EAAA;AACxD,EAAA,OAAO,iBAAiB;AAC1B;;;;","x_google_ignoreList":[0]}
|
@@ -1,14 +1,5 @@
|
|
1
1
|
import { useControlledValue } from '../helpers/useControlledValue.js';
|
2
2
|
|
3
|
-
/**
|
4
|
-
* Hook to manage multiple-date selection in the DayPicker component.
|
5
|
-
*
|
6
|
-
* @template T - The type of DayPicker props.
|
7
|
-
* @param props - The DayPicker props.
|
8
|
-
* @param dateLib - The date utility library instance.
|
9
|
-
* @returns An object containing the selected dates, a function to select dates,
|
10
|
-
* and a function to check if a date is selected.
|
11
|
-
*/
|
12
3
|
function useMulti(props, dateLib) {
|
13
4
|
const {
|
14
5
|
selected: initiallySelected,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"useMulti.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/selection/useMulti.js"],"sourcesContent":["import { useControlledValue } from \"../helpers/useControlledValue.js\";\
|
1
|
+
{"version":3,"file":"useMulti.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/selection/useMulti.js"],"sourcesContent":["import { useControlledValue } from \"../helpers/useControlledValue.js\";\nexport function useMulti(props, dateLib) {\n const { selected: initiallySelected, required, onSelect } = props;\n const [internallySelected, setSelected] = useControlledValue(initiallySelected, onSelect ? initiallySelected : undefined);\n const selected = !onSelect ? internallySelected : initiallySelected;\n const { isSameDay } = dateLib;\n const isSelected = (date) => {\n return selected?.some((d) => isSameDay(d, date)) ?? false;\n };\n const { min, max } = props;\n const select = (triggerDate, modifiers, e) => {\n let newDates = [...(selected ?? [])];\n if (isSelected(triggerDate)) {\n if (selected?.length === min) {\n // Min value reached, do nothing\n return;\n }\n if (required && selected?.length === 1) {\n // Required value already selected do nothing\n return;\n }\n newDates = selected?.filter((d) => !isSameDay(d, triggerDate));\n }\n else {\n if (selected?.length === max) {\n // Max value reached, reset the selection to date\n newDates = [triggerDate];\n }\n else {\n // Add the date to the selection\n newDates = [...newDates, triggerDate];\n }\n }\n if (!onSelect) {\n setSelected(newDates);\n }\n onSelect?.(newDates, triggerDate, modifiers, e);\n return newDates;\n };\n return {\n selected,\n select,\n isSelected\n };\n}\n//# sourceMappingURL=useMulti.js.map"],"names":["useMulti","props","dateLib","selected","initiallySelected","required","onSelect","internallySelected","setSelected","useControlledValue","undefined","isSameDay","isSelected","date","some","d","min","max","select","triggerDate","modifiers","e","newDates","length","filter"],"mappings":";;AAWM,SAAUA,QAAQA,CACtBC,KAAQ,EACRC,OAAgB,EAAA;EAEhB,MAAM;AACJC,IAAAA,QAAQ,EAAEC,iBAAiB;IAC3BC,QAAQ;AACRC,IAAAA;AAAQ,GACT,GAAGL,KAAmB;AAEvB,EAAA,MAAM,CAACM,kBAAkB,EAAEC,WAAW,CAAC,GAAGC,kBAAkB,CAC1DL,iBAAiB,EACjBE,QAAQ,GAAGF,iBAAiB,GAAGM,SAAS,CACzC;AAED,EAAA,MAAMP,QAAQ,GAAG,CAACG,QAAQ,GAAGC,kBAAkB,GAAGH,iBAAiB;EAEnE,MAAM;AAAEO,IAAAA;AAAS,GAAE,GAAGT,OAAO;EAE7B,MAAMU,UAAU,GAAIC,IAAU,IAAI;AAChC,IAAA,OAAOV,QAAQ,EAAEW,IAAI,CAAEC,CAAC,IAAKJ,SAAS,CAACI,CAAC,EAAEF,IAAI,CAAC,CAAC,IAAI,KAAK;GAC1D;EAED,MAAM;IAAEG,GAAG;AAAEC,IAAAA;AAAG,GAAE,GAAGhB,KAAmB;EAExC,MAAMiB,MAAM,GAAGA,CACbC,WAAiB,EACjBC,SAAoB,EACpBC,CAAyC,KACvC;IACF,IAAIC,QAAQ,GAAuB,CAAC,IAAInB,QAAQ,IAAI,EAAE,CAAC,CAAC;AACxD,IAAA,IAAIS,UAAU,CAACO,WAAW,CAAC,EAAE;AAC3B,MAAA,IAAIhB,QAAQ,EAAEoB,MAAM,KAAKP,GAAG,EAAE;AAC5B;AACA,QAAA;AACF;AACA,MAAA,IAAIX,QAAQ,IAAIF,QAAQ,EAAEoB,MAAM,KAAK,CAAC,EAAE;AACtC;AACA,QAAA;AACF;AACAD,MAAAA,QAAQ,GAAGnB,QAAQ,EAAEqB,MAAM,CAAET,CAAC,IAAK,CAACJ,SAAS,CAACI,CAAC,EAAEI,WAAW,CAAC,CAAC;AAChE,KAAC,MAAM;AACL,MAAA,IAAIhB,QAAQ,EAAEoB,MAAM,KAAKN,GAAG,EAAE;AAC5B;QACAK,QAAQ,GAAG,CAACH,WAAW,CAAC;AAC1B,OAAC,MAAM;AACL;AACAG,QAAAA,QAAQ,GAAG,CAAC,GAAGA,QAAQ,EAAEH,WAAW,CAAC;AACvC;AACF;IACA,IAAI,CAACb,QAAQ,EAAE;MACbE,WAAW,CAACc,QAAQ,CAAC;AACvB;IACAhB,QAAQ,GAAGgB,QAAQ,EAAEH,WAAW,EAAEC,SAAS,EAAEC,CAAC,CAAC;AAC/C,IAAA,OAAOC,QAAQ;GAChB;EAED,OAAO;IACLnB,QAAQ;IACRe,MAAM;AACNN,IAAAA;AACe,GAAA;AACnB;;;;","x_google_ignoreList":[0]}
|
@@ -1,17 +1,9 @@
|
|
1
1
|
import { useControlledValue } from '../helpers/useControlledValue.js';
|
2
|
-
import { rangeIncludesDate } from '../utils/rangeIncludesDate.js';
|
3
2
|
import { addToRange } from '../utils/addToRange.js';
|
3
|
+
import '../classes/DateLib.js';
|
4
|
+
import { rangeIncludesDate } from '../utils/rangeIncludesDate.js';
|
4
5
|
import { rangeContainsModifiers } from '../utils/rangeContainsModifiers.js';
|
5
6
|
|
6
|
-
/**
|
7
|
-
* Hook to manage range selection in the DayPicker component.
|
8
|
-
*
|
9
|
-
* @template T - The type of DayPicker props.
|
10
|
-
* @param props - The DayPicker props.
|
11
|
-
* @param dateLib - The date utility library instance.
|
12
|
-
* @returns An object containing the selected range, a function to select a
|
13
|
-
* range, and a function to check if a date is within the range.
|
14
|
-
*/
|
15
7
|
function useRange(props, dateLib) {
|
16
8
|
const {
|
17
9
|
disabled,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"useRange.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/selection/useRange.js"],"sourcesContent":["import { useControlledValue } from \"../helpers/useControlledValue.js\";\nimport { addToRange, rangeContainsModifiers } from \"../utils/index.js\";\nimport { rangeIncludesDate } from \"../utils/rangeIncludesDate.js\";\
|
1
|
+
{"version":3,"file":"useRange.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/selection/useRange.js"],"sourcesContent":["import { useControlledValue } from \"../helpers/useControlledValue.js\";\nimport { addToRange, rangeContainsModifiers } from \"../utils/index.js\";\nimport { rangeIncludesDate } from \"../utils/rangeIncludesDate.js\";\nexport function useRange(props, dateLib) {\n const { disabled, excludeDisabled, selected: initiallySelected, required, onSelect } = props;\n const [internallySelected, setSelected] = useControlledValue(initiallySelected, onSelect ? initiallySelected : undefined);\n const selected = !onSelect ? internallySelected : initiallySelected;\n const isSelected = (date) => selected && rangeIncludesDate(selected, date, false, dateLib);\n const select = (triggerDate, modifiers, e) => {\n const { min, max } = props;\n const newRange = triggerDate\n ? addToRange(triggerDate, selected, min, max, required, dateLib)\n : undefined;\n if (excludeDisabled && disabled && newRange?.from && newRange.to) {\n if (rangeContainsModifiers({ from: newRange.from, to: newRange.to }, disabled, dateLib)) {\n // if a disabled days is found, the range is reset\n newRange.from = triggerDate;\n newRange.to = undefined;\n }\n }\n if (!onSelect) {\n setSelected(newRange);\n }\n onSelect?.(newRange, triggerDate, modifiers, e);\n return newRange;\n };\n return {\n selected,\n select,\n isSelected\n };\n}\n//# sourceMappingURL=useRange.js.map"],"names":["useRange","props","dateLib","disabled","excludeDisabled","selected","initiallySelected","required","onSelect","internallySelected","setSelected","useControlledValue","undefined","isSelected","date","rangeIncludesDate","select","triggerDate","modifiers","e","min","max","newRange","addToRange","from","to","rangeContainsModifiers"],"mappings":";;;;;;AAaM,SAAUA,QAAQA,CACtBC,KAAQ,EACRC,OAAgB,EAAA;EAEhB,MAAM;IACJC,QAAQ;IACRC,eAAe;AACfC,IAAAA,QAAQ,EAAEC,iBAAiB;IAC3BC,QAAQ;AACRC,IAAAA;AAAQ,GACT,GAAGP,KAAmB;AAEvB,EAAA,MAAM,CAACQ,kBAAkB,EAAEC,WAAW,CAAC,GAAGC,kBAAkB,CAC1DL,iBAAiB,EACjBE,QAAQ,GAAGF,iBAAiB,GAAGM,SAAS,CACzC;AAED,EAAA,MAAMP,QAAQ,GAAG,CAACG,QAAQ,GAAGC,kBAAkB,GAAGH,iBAAiB;AAEnE,EAAA,MAAMO,UAAU,GAAIC,IAAU,IAC5BT,QAAQ,IAAIU,iBAAiB,CAACV,QAAQ,EAAES,IAAI,EAAE,KAAK,EAAEZ,OAAO,CAAC;EAE/D,MAAMc,MAAM,GAAGA,CACbC,WAAiB,EACjBC,SAAoB,EACpBC,CAAyC,KACvC;IACF,MAAM;MAAEC,GAAG;AAAEC,MAAAA;AAAG,KAAE,GAAGpB,KAAmB;AACxC,IAAA,MAAMqB,QAAQ,GAAGL,WAAW,GACxBM,UAAU,CAACN,WAAW,EAAEZ,QAAQ,EAAEe,GAAG,EAAEC,GAAG,EAAEd,QAAQ,EAAEL,OAAO,CAAC,GAC9DU,SAAS;IAEb,IAAIR,eAAe,IAAID,QAAQ,IAAImB,QAAQ,EAAEE,IAAI,IAAIF,QAAQ,CAACG,EAAE,EAAE;AAChE,MAAA,IACEC,sBAAsB,CACpB;QAAEF,IAAI,EAAEF,QAAQ,CAACE,IAAI;QAAEC,EAAE,EAAEH,QAAQ,CAACG;AAAE,OAAE,EACxCtB,QAAQ,EACRD,OAAO,CACR,EACD;AACA;QACAoB,QAAQ,CAACE,IAAI,GAAGP,WAAW;QAC3BK,QAAQ,CAACG,EAAE,GAAGb,SAAS;AACzB;AACF;IAEA,IAAI,CAACJ,QAAQ,EAAE;MACbE,WAAW,CAACY,QAAQ,CAAC;AACvB;IACAd,QAAQ,GAAGc,QAAQ,EAAEL,WAAW,EAAEC,SAAS,EAAEC,CAAC,CAAC;AAE/C,IAAA,OAAOG,QAAQ;GAChB;EAED,OAAO;IACLjB,QAAQ;IACRW,MAAM;AACNH,IAAAA;AACe,GAAA;AACnB;;;;","x_google_ignoreList":[0]}
|
@@ -1,14 +1,5 @@
|
|
1
1
|
import { useControlledValue } from '../helpers/useControlledValue.js';
|
2
2
|
|
3
|
-
/**
|
4
|
-
* Hook to manage single-date selection in the DayPicker component.
|
5
|
-
*
|
6
|
-
* @template T - The type of DayPicker props.
|
7
|
-
* @param props - The DayPicker props.
|
8
|
-
* @param dateLib - The date utility library instance.
|
9
|
-
* @returns An object containing the selected date, a function to select a date,
|
10
|
-
* and a function to check if a date is selected.
|
11
|
-
*/
|
12
3
|
function useSingle(props, dateLib) {
|
13
4
|
const {
|
14
5
|
selected: initiallySelected,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"useSingle.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/selection/useSingle.js"],"sourcesContent":["import { useControlledValue } from \"../helpers/useControlledValue.js\";\
|
1
|
+
{"version":3,"file":"useSingle.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/selection/useSingle.js"],"sourcesContent":["import { useControlledValue } from \"../helpers/useControlledValue.js\";\nexport function useSingle(props, dateLib) {\n const { selected: initiallySelected, required, onSelect } = props;\n const [internallySelected, setSelected] = useControlledValue(initiallySelected, onSelect ? initiallySelected : undefined);\n const selected = !onSelect ? internallySelected : initiallySelected;\n const { isSameDay } = dateLib;\n const isSelected = (compareDate) => {\n return selected ? isSameDay(selected, compareDate) : false;\n };\n const select = (triggerDate, modifiers, e) => {\n let newDate = triggerDate;\n if (!required && selected && selected && isSameDay(triggerDate, selected)) {\n // If the date is the same, clear the selection.\n newDate = undefined;\n }\n if (!onSelect) {\n setSelected(newDate);\n }\n if (required) {\n onSelect?.(newDate, triggerDate, modifiers, e);\n }\n else {\n onSelect?.(newDate, triggerDate, modifiers, e);\n }\n return newDate;\n };\n return {\n selected,\n select,\n isSelected\n };\n}\n//# sourceMappingURL=useSingle.js.map"],"names":["useSingle","props","dateLib","selected","initiallySelected","required","onSelect","internallySelected","setSelected","useControlledValue","undefined","isSameDay","isSelected","compareDate","select","triggerDate","modifiers","e","newDate"],"mappings":";;AAmBM,SAAUA,SAASA,CACvBC,KAAqB,EACrBC,OAAgB,EAAA;EAEhB,MAAM;AACJC,IAAAA,QAAQ,EAAEC,iBAAiB;IAC3BC,QAAQ;AACRC,IAAAA;AAAQ,GACT,GAAGL,KAAoB;AAExB,EAAA,MAAM,CAACM,kBAAkB,EAAEC,WAAW,CAAC,GAAGC,kBAAkB,CAC1DL,iBAAiB,EACjBE,QAAQ,GAAGF,iBAAiB,GAAGM,SAAS,CACzC;AAED,EAAA,MAAMP,QAAQ,GAAG,CAACG,QAAQ,GAAGC,kBAAkB,GAAGH,iBAAiB;EAEnE,MAAM;AAAEO,IAAAA;AAAS,GAAE,GAAGT,OAAO;EAE7B,MAAMU,UAAU,GAAIC,WAAiB,IAAI;IACvC,OAAOV,QAAQ,GAAGQ,SAAS,CAACR,QAAQ,EAAEU,WAAW,CAAC,GAAG,KAAK;GAC3D;EAED,MAAMC,MAAM,GAAGA,CACbC,WAAiB,EACjBC,SAAoB,EACpBC,CAAyC,KACvC;IACF,IAAIC,OAAO,GAAqBH,WAAW;AAC3C,IAAA,IAAI,CAACV,QAAQ,IAAIF,QAAQ,IAAIA,QAAQ,IAAIQ,SAAS,CAACI,WAAW,EAAEZ,QAAQ,CAAC,EAAE;AACzE;AACAe,MAAAA,OAAO,GAAGR,SAAS;AACrB;IACA,IAAI,CAACJ,QAAQ,EAAE;MACbE,WAAW,CAACU,OAAO,CAAC;AACtB;AACA,IAAA,IAAIb,QAAQ,EAAE;MACZC,QAAQ,GAAGY,OAAe,EAAEH,WAAW,EAAEC,SAAS,EAAEC,CAAC,CAAC;AACxD,KAAC,MAAM;MACLX,QAAQ,GAAGY,OAAO,EAAEH,WAAW,EAAEC,SAAS,EAAEC,CAAC,CAAC;AAChD;AACA,IAAA,OAAOC,OAAO;GACf;EAED,OAAO;IACLf,QAAQ;IACRW,MAAM;AACNF,IAAAA;AACe,GAAA;AACnB;;;;","x_google_ignoreList":[0]}
|
@@ -10,15 +10,7 @@ import { getPreviousMonth } from './helpers/getPreviousMonth.js';
|
|
10
10
|
import { getWeeks } from './helpers/getWeeks.js';
|
11
11
|
import { useControlledValue } from './helpers/useControlledValue.js';
|
12
12
|
|
13
|
-
/**
|
14
|
-
* Provides the calendar object to work with the calendar in custom components.
|
15
|
-
*
|
16
|
-
* @private
|
17
|
-
* @param props - The DayPicker props related to calendar configuration.
|
18
|
-
* @param dateLib - The date utility library instance.
|
19
|
-
* @returns The calendar object containing displayed days, weeks, months, and
|
20
|
-
* navigation methods.
|
21
|
-
*/
|
13
|
+
/** @private */
|
22
14
|
function useCalendar(props, dateLib) {
|
23
15
|
const [navStart, navEnd] = getNavMonths(props, dateLib);
|
24
16
|
const {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"useCalendar.js","sources":["../../../../../node_modules/react-day-picker/dist/esm/useCalendar.js"],"sourcesContent":["import { useEffect } from \"react\";\nimport { getDates } from \"./helpers/getDates.js\";\nimport { getDays } from \"./helpers/getDays.js\";\nimport { getDisplayMonths } from \"./helpers/getDisplayMonths.js\";\nimport { getInitialMonth } from \"./helpers/getInitialMonth.js\";\nimport { getMonths } from \"./helpers/getMonths.js\";\nimport { getNavMonths } from \"./helpers/getNavMonth.js\";\nimport { getNextMonth } from \"./helpers/getNextMonth.js\";\nimport { getPreviousMonth } from \"./helpers/getPreviousMonth.js\";\nimport { getWeeks } from \"./helpers/getWeeks.js\";\nimport { useControlledValue } from \"./helpers/useControlledValue.js\";\n
|
1
|
+
{"version":3,"file":"useCalendar.js","sources":["../../../../../node_modules/react-day-picker/dist/esm/useCalendar.js"],"sourcesContent":["import { useEffect } from \"react\";\nimport { getDates } from \"./helpers/getDates.js\";\nimport { getDays } from \"./helpers/getDays.js\";\nimport { getDisplayMonths } from \"./helpers/getDisplayMonths.js\";\nimport { getInitialMonth } from \"./helpers/getInitialMonth.js\";\nimport { getMonths } from \"./helpers/getMonths.js\";\nimport { getNavMonths } from \"./helpers/getNavMonth.js\";\nimport { getNextMonth } from \"./helpers/getNextMonth.js\";\nimport { getPreviousMonth } from \"./helpers/getPreviousMonth.js\";\nimport { getWeeks } from \"./helpers/getWeeks.js\";\nimport { useControlledValue } from \"./helpers/useControlledValue.js\";\n/** @private */\nexport function useCalendar(props, dateLib) {\n const [navStart, navEnd] = getNavMonths(props, dateLib);\n const { startOfMonth, endOfMonth } = dateLib;\n const initialMonth = getInitialMonth(props, dateLib);\n const [firstMonth, setFirstMonth] = useControlledValue(initialMonth, \n // initialMonth is always computed from props.month if provided\n props.month ? initialMonth : undefined);\n useEffect(() => {\n const newInitialMonth = getInitialMonth(props, dateLib);\n setFirstMonth(newInitialMonth);\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [props.timeZone]);\n /** The months displayed in the calendar. */\n const displayMonths = getDisplayMonths(firstMonth, navEnd, props, dateLib);\n /** The dates displayed in the calendar. */\n const dates = getDates(displayMonths, props.endMonth ? endOfMonth(props.endMonth) : undefined, props, dateLib);\n /** The Months displayed in the calendar. */\n const months = getMonths(displayMonths, dates, props, dateLib);\n /** The Weeks displayed in the calendar. */\n const weeks = getWeeks(months);\n /** The Days displayed in the calendar. */\n const days = getDays(months);\n const previousMonth = getPreviousMonth(firstMonth, navStart, props, dateLib);\n const nextMonth = getNextMonth(firstMonth, navEnd, props, dateLib);\n const { disableNavigation, onMonthChange } = props;\n const isDayInCalendar = (day) => weeks.some((week) => week.days.some((d) => d.isEqualTo(day)));\n const goToMonth = (date) => {\n if (disableNavigation) {\n return;\n }\n let newMonth = startOfMonth(date);\n // if month is before start, use the first month instead\n if (navStart && newMonth < startOfMonth(navStart)) {\n newMonth = startOfMonth(navStart);\n }\n // if month is after endMonth, use the last month instead\n if (navEnd && newMonth > startOfMonth(navEnd)) {\n newMonth = startOfMonth(navEnd);\n }\n setFirstMonth(newMonth);\n onMonthChange?.(newMonth);\n };\n const goToDay = (day) => {\n // is this check necessary?\n if (isDayInCalendar(day)) {\n return;\n }\n goToMonth(day.date);\n };\n const calendar = {\n months,\n weeks,\n days,\n navStart,\n navEnd,\n previousMonth,\n nextMonth,\n goToMonth,\n goToDay\n };\n return calendar;\n}\n//# sourceMappingURL=useCalendar.js.map"],"names":["useCalendar","props","dateLib","navStart","navEnd","getNavMonths","startOfMonth","endOfMonth","initialMonth","getInitialMonth","firstMonth","setFirstMonth","useControlledValue","month","undefined","useEffect","newInitialMonth","timeZone","displayMonths","getDisplayMonths","dates","getDates","endMonth","months","getMonths","weeks","getWeeks","days","getDays","previousMonth","getPreviousMonth","nextMonth","getNextMonth","disableNavigation","onMonthChange","isDayInCalendar","day","some","week","d","isEqualTo","goToMonth","date","newMonth","goToDay","calendar"],"mappings":";;;;;;;;;;;;AAmEA;AACM,SAAUA,WAAWA,CACzBC,KAoBC,EACDC,OAAgB,EAAA;EAEhB,MAAM,CAACC,QAAQ,EAAEC,MAAM,CAAC,GAAGC,YAAY,CAACJ,KAAK,EAAEC,OAAO,CAAC;EAEvD,MAAM;IAAEI,YAAY;AAAEC,IAAAA;AAAU,GAAE,GAAGL,OAAO;AAC5C,EAAA,MAAMM,YAAY,GAAGC,eAAe,CAACR,KAAK,EAAEC,OAAO,CAAC;EACpD,MAAM,CAACQ,UAAU,EAAEC,aAAa,CAAC,GAAGC,kBAAkB,CACpDJ,YAAY;AACZ;AACAP,EAAAA,KAAK,CAACY,KAAK,GAAGL,YAAY,GAAGM,SAAS,CACvC;AAEDC,EAAAA,SAAS,CAAC,MAAK;AACb,IAAA,MAAMC,eAAe,GAAGP,eAAe,CAACR,KAAK,EAAEC,OAAO,CAAC;IACvDS,aAAa,CAACK,eAAe,CAAC;AAC9B;AACF,GAAC,EAAE,CAACf,KAAK,CAACgB,QAAQ,CAAC,CAAC;AAEpB;EACA,MAAMC,aAAa,GAAGC,gBAAgB,CAACT,UAAU,EAAEN,MAAM,EAAEH,KAAK,EAAEC,OAAO,CAAC;AAE1E;EACA,MAAMkB,KAAK,GAAGC,QAAQ,CACpBH,aAAa,EACbjB,KAAK,CAACqB,QAAQ,GAAGf,UAAU,CAACN,KAAK,CAACqB,QAAQ,CAAC,GAAGR,SAAS,EACvDb,KAAK,EACLC,OAAO,CACR;AAED;EACA,MAAMqB,MAAM,GAAGC,SAAS,CAACN,aAAa,EAAEE,KAAK,EAAEnB,KAAK,EAAEC,OAAO,CAAC;AAE9D;AACA,EAAA,MAAMuB,KAAK,GAAGC,QAAQ,CAACH,MAAM,CAAC;AAE9B;AACA,EAAA,MAAMI,IAAI,GAAGC,OAAO,CAACL,MAAM,CAAC;EAE5B,MAAMM,aAAa,GAAGC,gBAAgB,CAACpB,UAAU,EAAEP,QAAQ,EAAEF,KAAK,EAAEC,OAAO,CAAC;EAC5E,MAAM6B,SAAS,GAAGC,YAAY,CAACtB,UAAU,EAAEN,MAAM,EAAEH,KAAK,EAAEC,OAAO,CAAC;EAElE,MAAM;IAAE+B,iBAAiB;AAAEC,IAAAA;AAAa,GAAE,GAAGjC,KAAK;EAElD,MAAMkC,eAAe,GAAIC,GAAgB,IACvCX,KAAK,CAACY,IAAI,CAAEC,IAAkB,IAAKA,IAAI,CAACX,IAAI,CAACU,IAAI,CAAEE,CAAC,IAAKA,CAAC,CAACC,SAAS,CAACJ,GAAG,CAAC,CAAC,CAAC;EAE7E,MAAMK,SAAS,GAAIC,IAAU,IAAI;AAC/B,IAAA,IAAIT,iBAAiB,EAAE;AACrB,MAAA;AACF;AACA,IAAA,IAAIU,QAAQ,GAAGrC,YAAY,CAACoC,IAAI,CAAC;AACjC;IACA,IAAIvC,QAAQ,IAAIwC,QAAQ,GAAGrC,YAAY,CAACH,QAAQ,CAAC,EAAE;AACjDwC,MAAAA,QAAQ,GAAGrC,YAAY,CAACH,QAAQ,CAAC;AACnC;AACA;IACA,IAAIC,MAAM,IAAIuC,QAAQ,GAAGrC,YAAY,CAACF,MAAM,CAAC,EAAE;AAC7CuC,MAAAA,QAAQ,GAAGrC,YAAY,CAACF,MAAM,CAAC;AACjC;IACAO,aAAa,CAACgC,QAAQ,CAAC;IACvBT,aAAa,GAAGS,QAAQ,CAAC;GAC1B;EAED,MAAMC,OAAO,GAAIR,GAAgB,IAAI;AACnC;AACA,IAAA,IAAID,eAAe,CAACC,GAAG,CAAC,EAAE;AACxB,MAAA;AACF;AACAK,IAAAA,SAAS,CAACL,GAAG,CAACM,IAAI,CAAC;GACpB;AAED,EAAA,MAAMG,QAAQ,GAAG;IACftB,MAAM;IACNE,KAAK;IACLE,IAAI;IAEJxB,QAAQ;IACRC,MAAM;IAENyB,aAAa;IACbE,SAAS;IAETU,SAAS;AACTG,IAAAA;AACD,GAAA;AAED,EAAA,OAAOC,QAAQ;AACjB;;;;","x_google_ignoreList":[0]}
|