@betterinternship/components 1.5.27 → 1.6.0
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 +26 -0
- package/dist/components/Accordion.d.ts +7 -0
- package/dist/components/Avatar.d.ts +6 -0
- package/dist/components/Badge.d.ts +21 -0
- package/dist/components/Button.js.map +1 -1
- package/dist/components/Calendar.d.ts +7 -0
- package/dist/components/Input.d.ts +3 -0
- package/dist/components/ui/accordion.d.ts +7 -0
- package/dist/components/ui/accordion.js +20 -0
- package/dist/components/ui/accordion.js.map +1 -0
- package/dist/components/ui/avatar.d.ts +6 -0
- package/dist/components/ui/avatar.js +16 -0
- package/dist/components/ui/avatar.js.map +1 -0
- package/dist/components/ui/badge.d.ts +22 -0
- package/dist/components/ui/badge.js +113 -0
- package/dist/components/ui/badge.js.map +1 -0
- package/dist/components/ui/button.d.ts +13 -0
- package/dist/components/ui/button.js +88 -0
- package/dist/components/ui/button.js.map +1 -0
- package/dist/components/ui/calendar.d.ts +7 -0
- package/dist/components/ui/calendar.js +51 -0
- package/dist/components/ui/calendar.js.map +1 -0
- package/dist/components/ui/card.d.ts +9 -0
- package/dist/components/ui/card.js +27 -0
- package/dist/components/ui/card.js.map +1 -0
- package/dist/components/ui/checkbox.d.ts +4 -0
- package/dist/components/ui/checkbox.js +11 -0
- package/dist/components/ui/checkbox.js.map +1 -0
- package/dist/components/ui/dialog.d.ts +18 -0
- package/dist/components/ui/dialog.js +41 -0
- package/dist/components/ui/dialog.js.map +1 -0
- package/dist/components/ui/icons.d.ts +10 -0
- package/dist/components/ui/icons.js +39 -0
- package/dist/components/ui/icons.js.map +1 -0
- package/dist/components/ui/input.d.ts +3 -0
- package/dist/components/ui/input.js +17 -0
- package/dist/components/ui/input.js.map +1 -0
- package/dist/components/ui/label.d.ts +4 -0
- package/dist/components/ui/label.js +10 -0
- package/dist/components/ui/label.js.map +1 -0
- package/dist/components/ui/popover.d.ts +7 -0
- package/dist/components/ui/popover.js +17 -0
- package/dist/components/ui/popover.js.map +1 -0
- package/dist/components/ui/separator.d.ts +4 -0
- package/dist/components/ui/separator.js +10 -0
- package/dist/components/ui/separator.js.map +1 -0
- package/dist/components/ui/skeleton.d.ts +2 -0
- package/dist/components/ui/skeleton.js +9 -0
- package/dist/components/ui/skeleton.js.map +1 -0
- package/dist/components/ui/switch.d.ts +4 -0
- package/dist/components/ui/switch.js +10 -0
- package/dist/components/ui/switch.js.map +1 -0
- package/dist/components/ui/table.d.ts +10 -0
- package/dist/components/ui/table.js +30 -0
- package/dist/components/ui/table.js.map +1 -0
- package/dist/components/ui/textarea.d.ts +3 -0
- package/dist/components/ui/textarea.js +9 -0
- package/dist/components/ui/textarea.js.map +1 -0
- package/dist/components/ui/tooltip.d.ts +9 -0
- package/dist/components/ui/tooltip.js +19 -0
- package/dist/components/ui/tooltip.js.map +1 -0
- package/dist/hooks/useClientProcess.js +0 -1
- package/dist/hooks/useClientProcess.js.map +1 -1
- package/dist/index.css.js +1 -1
- package/dist/index.d.ts +19 -1
- package/dist/index.esm.js +3761 -3761
- package/dist/index.js +19 -1
- package/dist/index.js.map +1 -1
- package/dist/node_modules/@date-fns/tz/date/index.js +84 -0
- package/dist/node_modules/@date-fns/tz/date/index.js.map +1 -0
- package/dist/node_modules/@date-fns/tz/date/mini.js +451 -0
- package/dist/node_modules/@date-fns/tz/date/mini.js.map +1 -0
- package/dist/node_modules/@date-fns/tz/tzName/index.js +40 -0
- package/dist/node_modules/@date-fns/tz/tzName/index.js.map +1 -0
- package/dist/node_modules/@date-fns/tz/tzOffset/index.js +57 -0
- package/dist/node_modules/@date-fns/tz/tzOffset/index.js.map +1 -0
- package/dist/node_modules/date-fns/_lib/addLeadingZeros.js +8 -0
- package/dist/node_modules/date-fns/_lib/addLeadingZeros.js.map +1 -0
- package/dist/node_modules/date-fns/_lib/defaultOptions.js +8 -0
- package/dist/node_modules/date-fns/_lib/defaultOptions.js.map +1 -0
- package/dist/node_modules/date-fns/_lib/format/formatters.js +776 -0
- package/dist/node_modules/date-fns/_lib/format/formatters.js.map +1 -0
- package/dist/node_modules/date-fns/_lib/format/lightFormatters.js +95 -0
- package/dist/node_modules/date-fns/_lib/format/lightFormatters.js.map +1 -0
- package/dist/node_modules/date-fns/_lib/format/longFormatters.js +67 -0
- package/dist/node_modules/date-fns/_lib/format/longFormatters.js.map +1 -0
- package/dist/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js +32 -0
- package/dist/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js.map +1 -0
- package/dist/node_modules/date-fns/_lib/normalizeDates.js +12 -0
- package/dist/node_modules/date-fns/_lib/normalizeDates.js.map +1 -0
- package/dist/node_modules/date-fns/_lib/normalizeInterval.js +9 -0
- package/dist/node_modules/date-fns/_lib/normalizeInterval.js.map +1 -0
- package/dist/node_modules/date-fns/_lib/protectedTokens.js +26 -0
- package/dist/node_modules/date-fns/_lib/protectedTokens.js.map +1 -0
- package/dist/node_modules/date-fns/addDays.js +61 -0
- package/dist/node_modules/date-fns/addDays.js.map +1 -0
- package/dist/node_modules/date-fns/addMonths.js +76 -0
- package/dist/node_modules/date-fns/addMonths.js.map +1 -0
- package/dist/node_modules/date-fns/addWeeks.js +34 -0
- package/dist/node_modules/date-fns/addWeeks.js.map +1 -0
- package/dist/node_modules/date-fns/addYears.js +34 -0
- package/dist/node_modules/date-fns/addYears.js.map +1 -0
- package/dist/node_modules/date-fns/constants.js +47 -0
- package/dist/node_modules/date-fns/constants.js.map +1 -0
- package/dist/node_modules/date-fns/constructFrom.js +50 -0
- package/dist/node_modules/date-fns/constructFrom.js.map +1 -0
- package/dist/node_modules/date-fns/differenceInCalendarDays.js +63 -0
- package/dist/node_modules/date-fns/differenceInCalendarDays.js.map +1 -0
- package/dist/node_modules/date-fns/differenceInCalendarMonths.js +43 -0
- package/dist/node_modules/date-fns/differenceInCalendarMonths.js.map +1 -0
- package/dist/node_modules/date-fns/eachMonthOfInterval.js +66 -0
- package/dist/node_modules/date-fns/eachMonthOfInterval.js.map +1 -0
- package/dist/node_modules/date-fns/eachYearOfInterval.js +66 -0
- package/dist/node_modules/date-fns/eachYearOfInterval.js.map +1 -0
- package/dist/node_modules/date-fns/endOfISOWeek.js +36 -0
- package/dist/node_modules/date-fns/endOfISOWeek.js.map +1 -0
- package/dist/node_modules/date-fns/endOfMonth.js +38 -0
- package/dist/node_modules/date-fns/endOfMonth.js.map +1 -0
- package/dist/node_modules/date-fns/endOfWeek.js +54 -0
- package/dist/node_modules/date-fns/endOfWeek.js.map +1 -0
- package/dist/node_modules/date-fns/endOfYear.js +38 -0
- package/dist/node_modules/date-fns/endOfYear.js.map +1 -0
- package/dist/node_modules/date-fns/format.js +424 -0
- package/dist/node_modules/date-fns/format.js.map +1 -0
- package/dist/node_modules/date-fns/getDayOfYear.js +35 -0
- package/dist/node_modules/date-fns/getDayOfYear.js.map +1 -0
- package/dist/node_modules/date-fns/getDaysInMonth.js +37 -0
- package/dist/node_modules/date-fns/getDaysInMonth.js.map +1 -0
- package/dist/node_modules/date-fns/getISOWeek.js +41 -0
- package/dist/node_modules/date-fns/getISOWeek.js.map +1 -0
- package/dist/node_modules/date-fns/getISOWeekYear.js +53 -0
- package/dist/node_modules/date-fns/getISOWeekYear.js.map +1 -0
- package/dist/node_modules/date-fns/getMonth.js +30 -0
- package/dist/node_modules/date-fns/getMonth.js.map +1 -0
- package/dist/node_modules/date-fns/getWeek.js +55 -0
- package/dist/node_modules/date-fns/getWeek.js.map +1 -0
- package/dist/node_modules/date-fns/getWeekYear.js +76 -0
- package/dist/node_modules/date-fns/getWeekYear.js.map +1 -0
- package/dist/node_modules/date-fns/getYear.js +30 -0
- package/dist/node_modules/date-fns/getYear.js.map +1 -0
- package/dist/node_modules/date-fns/isAfter.js +26 -0
- package/dist/node_modules/date-fns/isAfter.js.map +1 -0
- package/dist/node_modules/date-fns/isBefore.js +26 -0
- package/dist/node_modules/date-fns/isBefore.js.map +1 -0
- package/dist/node_modules/date-fns/isDate.js +42 -0
- package/dist/node_modules/date-fns/isDate.js.map +1 -0
- package/dist/node_modules/date-fns/isSameDay.js +47 -0
- package/dist/node_modules/date-fns/isSameDay.js.map +1 -0
- package/dist/node_modules/date-fns/isSameMonth.js +44 -0
- package/dist/node_modules/date-fns/isSameMonth.js.map +1 -0
- package/dist/node_modules/date-fns/isSameYear.js +36 -0
- package/dist/node_modules/date-fns/isSameYear.js.map +1 -0
- package/dist/node_modules/date-fns/isValid.js +40 -0
- package/dist/node_modules/date-fns/isValid.js.map +1 -0
- package/dist/node_modules/date-fns/locale/_lib/buildFormatLongFn.js +11 -0
- package/dist/node_modules/date-fns/locale/_lib/buildFormatLongFn.js.map +1 -0
- package/dist/node_modules/date-fns/locale/_lib/buildLocalizeFn.js +65 -0
- package/dist/node_modules/date-fns/locale/_lib/buildLocalizeFn.js.map +1 -0
- package/dist/node_modules/date-fns/locale/_lib/buildMatchFn.js +60 -0
- package/dist/node_modules/date-fns/locale/_lib/buildMatchFn.js.map +1 -0
- package/dist/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js +23 -0
- package/dist/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js.map +1 -0
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatDistance.js +104 -0
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatDistance.js.map +1 -0
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatLong.js +42 -0
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatLong.js.map +1 -0
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatRelative.js +14 -0
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatRelative.js.map +1 -0
- package/dist/node_modules/date-fns/locale/en-US/_lib/localize.js +190 -0
- package/dist/node_modules/date-fns/locale/en-US/_lib/localize.js.map +1 -0
- package/dist/node_modules/date-fns/locale/en-US/_lib/match.js +135 -0
- package/dist/node_modules/date-fns/locale/en-US/_lib/match.js.map +1 -0
- package/dist/node_modules/date-fns/locale/en-US.js +29 -0
- package/dist/node_modules/date-fns/locale/en-US.js.map +1 -0
- package/dist/node_modules/date-fns/max.js +50 -0
- package/dist/node_modules/date-fns/max.js.map +1 -0
- package/dist/node_modules/date-fns/min.js +50 -0
- package/dist/node_modules/date-fns/min.js.map +1 -0
- package/dist/node_modules/date-fns/setMonth.js +47 -0
- package/dist/node_modules/date-fns/setMonth.js.map +1 -0
- package/dist/node_modules/date-fns/setYear.js +41 -0
- package/dist/node_modules/date-fns/setYear.js.map +1 -0
- package/dist/node_modules/date-fns/startOfDay.js +36 -0
- package/dist/node_modules/date-fns/startOfDay.js.map +1 -0
- package/dist/node_modules/date-fns/startOfISOWeek.js +36 -0
- package/dist/node_modules/date-fns/startOfISOWeek.js.map +1 -0
- package/dist/node_modules/date-fns/startOfISOWeekYear.js +43 -0
- package/dist/node_modules/date-fns/startOfISOWeekYear.js.map +1 -0
- package/dist/node_modules/date-fns/startOfMonth.js +38 -0
- package/dist/node_modules/date-fns/startOfMonth.js.map +1 -0
- package/dist/node_modules/date-fns/startOfWeek.js +54 -0
- package/dist/node_modules/date-fns/startOfWeek.js.map +1 -0
- package/dist/node_modules/date-fns/startOfWeekYear.js +65 -0
- package/dist/node_modules/date-fns/startOfWeekYear.js.map +1 -0
- package/dist/node_modules/date-fns/startOfYear.js +37 -0
- package/dist/node_modules/date-fns/startOfYear.js.map +1 -0
- package/dist/node_modules/date-fns/toDate.js +47 -0
- package/dist/node_modules/date-fns/toDate.js.map +1 -0
- package/dist/node_modules/react/cjs/react-jsx-runtime.development.js +2 -2
- package/dist/node_modules/react/cjs/react-jsx-runtime.development.js.map +1 -1
- package/dist/node_modules/react-day-picker/dist/esm/DayPicker.js +347 -0
- package/dist/node_modules/react-day-picker/dist/esm/DayPicker.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/UI.js +123 -0
- package/dist/node_modules/react-day-picker/dist/esm/UI.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarDay.js +34 -0
- package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarDay.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarMonth.js +15 -0
- package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarMonth.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarWeek.js +14 -0
- package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarWeek.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/classes/DateLib.js +600 -0
- package/dist/node_modules/react-day-picker/dist/esm/classes/DateLib.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/CaptionLabel.js +14 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/CaptionLabel.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/Chevron.js +19 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/Chevron.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/Day.js +19 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/Day.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/DayButton.js +20 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/DayButton.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/Dropdown.js +24 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/Dropdown.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/DropdownNav.js +14 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/DropdownNav.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/Footer.js +14 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/Footer.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/Month.js +16 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/Month.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/MonthCaption.js +15 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/MonthCaption.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/MonthGrid.js +14 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/MonthGrid.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/Months.js +14 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/Months.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/MonthsDropdown.js +16 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/MonthsDropdown.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/Nav.js +32 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/Nav.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/NextMonthButton.js +14 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/NextMonthButton.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/Option.js +14 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/Option.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/PreviousMonthButton.js +14 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/PreviousMonthButton.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/Root.js +15 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/Root.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/Select.js +14 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/Select.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/Week.js +15 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/Week.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/WeekNumber.js +15 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/WeekNumber.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/WeekNumberHeader.js +14 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/WeekNumberHeader.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/Weekday.js +14 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/Weekday.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/Weekdays.js +15 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/Weekdays.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/Weeks.js +14 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/Weeks.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/YearsDropdown.js +16 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/YearsDropdown.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/custom-components.js +26 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/custom-components.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/formatters/formatCaption.js +21 -0
- package/dist/node_modules/react-day-picker/dist/esm/formatters/formatCaption.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/formatters/formatDay.js +20 -0
- package/dist/node_modules/react-day-picker/dist/esm/formatters/formatDay.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/formatters/formatMonthDropdown.js +19 -0
- package/dist/node_modules/react-day-picker/dist/esm/formatters/formatMonthDropdown.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumber.js +22 -0
- package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumber.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumberHeader.js +14 -0
- package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumberHeader.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekdayName.js +20 -0
- package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekdayName.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/formatters/formatYearDropdown.js +18 -0
- package/dist/node_modules/react-day-picker/dist/esm/formatters/formatYearDropdown.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/formatters/index.js +8 -0
- package/dist/node_modules/react-day-picker/dist/esm/formatters/index.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/calculateFocusTarget.js +74 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/calculateFocusTarget.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/createGetModifiers.js +96 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/createGetModifiers.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/endOfBroadcastWeek.js +23 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/endOfBroadcastWeek.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getBroadcastWeeksInMonth.js +29 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getBroadcastWeeksInMonth.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getClassNamesForModifiers.js +34 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getClassNamesForModifiers.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getComponents.js +21 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getComponents.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getDataAttributes.js +28 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getDataAttributes.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getDates.js +60 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getDates.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getDays.js +20 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getDays.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getDefaultClassNames.js +34 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getDefaultClassNames.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getDisplayMonths.js +25 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getDisplayMonths.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getFocusableDate.js +47 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getFocusableDate.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getFormatters.js +18 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getFormatters.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getInitialMonth.js +28 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getInitialMonth.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getLabels.js +54 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getLabels.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getMonthOptions.js +34 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getMonthOptions.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getMonths.js +70 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getMonths.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getNavMonth.js +32 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getNavMonth.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getNextFocus.js +41 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getNextFocus.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getNextMonth.js +37 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getNextMonth.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getPreviousMonth.js +38 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getPreviousMonth.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getStyleForModifiers.js +28 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getStyleForModifiers.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getWeekdays.js +27 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getWeekdays.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getWeeks.js +15 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getWeeks.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getYearOptions.js +37 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getYearOptions.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/startOfBroadcastWeek.js +28 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/startOfBroadcastWeek.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/useControlledValue.js +32 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/useControlledValue.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/labels/index.js +12 -0
- package/dist/node_modules/react-day-picker/dist/esm/labels/index.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelDayButton.js +28 -0
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelDayButton.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelGrid.js +21 -0
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelGrid.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelGridcell.js +23 -0
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelGridcell.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelMonthDropdown.js +15 -0
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelMonthDropdown.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelNav.js +14 -0
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelNav.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelNext.js +17 -0
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelNext.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelPrevious.js +16 -0
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelPrevious.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekNumber.js +16 -0
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekNumber.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekNumberHeader.js +15 -0
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekNumberHeader.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekday.js +19 -0
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekday.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelYearDropdown.js +15 -0
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelYearDropdown.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/locale/en-US.js +68 -0
- package/dist/node_modules/react-day-picker/dist/esm/locale/en-US.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/noonDateLib.js +164 -0
- package/dist/node_modules/react-day-picker/dist/esm/noonDateLib.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/selection/useMulti.js +58 -0
- package/dist/node_modules/react-day-picker/dist/esm/selection/useMulti.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/selection/useRange.js +64 -0
- package/dist/node_modules/react-day-picker/dist/esm/selection/useRange.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/selection/useSingle.js +45 -0
- package/dist/node_modules/react-day-picker/dist/esm/selection/useSingle.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/useAnimation.js +174 -0
- package/dist/node_modules/react-day-picker/dist/esm/useAnimation.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/useCalendar.js +114 -0
- package/dist/node_modules/react-day-picker/dist/esm/useCalendar.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/useDayPicker.js +26 -0
- package/dist/node_modules/react-day-picker/dist/esm/useDayPicker.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/useFocus.js +57 -0
- package/dist/node_modules/react-day-picker/dist/esm/useFocus.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/useSelection.js +32 -0
- package/dist/node_modules/react-day-picker/dist/esm/useSelection.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/utils/addToRange.js +96 -0
- package/dist/node_modules/react-day-picker/dist/esm/utils/addToRange.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/utils/convertMatchersToTimeZone.js +62 -0
- package/dist/node_modules/react-day-picker/dist/esm/utils/convertMatchersToTimeZone.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/utils/dateMatchModifiers.js +63 -0
- package/dist/node_modules/react-day-picker/dist/esm/utils/dateMatchModifiers.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/utils/rangeContainsDayOfWeek.js +31 -0
- package/dist/node_modules/react-day-picker/dist/esm/utils/rangeContainsDayOfWeek.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/utils/rangeContainsModifiers.js +75 -0
- package/dist/node_modules/react-day-picker/dist/esm/utils/rangeContainsModifiers.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/utils/rangeIncludesDate.js +36 -0
- package/dist/node_modules/react-day-picker/dist/esm/utils/rangeIncludesDate.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/utils/rangeOverlaps.js +22 -0
- package/dist/node_modules/react-day-picker/dist/esm/utils/rangeOverlaps.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/utils/toTimeZone.js +17 -0
- package/dist/node_modules/react-day-picker/dist/esm/utils/toTimeZone.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/utils/typeguards.js +67 -0
- package/dist/node_modules/react-day-picker/dist/esm/utils/typeguards.js.map +1 -0
- package/dist/utilities/Icons.d.ts +33 -0
- package/dist/utils.js.map +1 -1
- package/package.json +87 -9
|
@@ -0,0 +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 table row containing 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"],"names":["React"],"mappings":";;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAAS,QAAQ,CAAC,KAAK,EAAE;AAChC,IAAI,QAAQA,cAAK,CAAC,aAAa,CAAC,OAAO,EAAE,EAAE,aAAa,EAAE,IAAI,EAAE;AAChE,QAAQA,cAAK,CAAC,aAAa,CAAC,IAAI,EAAE,EAAE,GAAG,KAAK,EAAE,CAAC,CAAC;AAChD;;;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Render the container for the weeks in the month grid.
|
|
5
|
+
*
|
|
6
|
+
* @group Components
|
|
7
|
+
* @see https://daypicker.dev/guides/custom-components
|
|
8
|
+
*/
|
|
9
|
+
function Weeks(props) {
|
|
10
|
+
return React__default.createElement("tbody", { ...props });
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export { Weeks };
|
|
14
|
+
//# sourceMappingURL=Weeks.js.map
|
|
@@ -0,0 +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 container for 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"],"names":["React"],"mappings":";;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAAS,KAAK,CAAC,KAAK,EAAE;AAC7B,IAAI,OAAOA,cAAK,CAAC,aAAa,CAAC,OAAO,EAAE,EAAE,GAAG,KAAK,EAAE,CAAC;AACrD;;;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
import { useDayPicker } from '../useDayPicker.js';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Render a dropdown to navigate between years in the calendar.
|
|
6
|
+
*
|
|
7
|
+
* @group Components
|
|
8
|
+
* @see https://daypicker.dev/guides/custom-components
|
|
9
|
+
*/
|
|
10
|
+
function YearsDropdown(props) {
|
|
11
|
+
const { components } = useDayPicker();
|
|
12
|
+
return React__default.createElement(components.Dropdown, { ...props });
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export { YearsDropdown };
|
|
16
|
+
//# sourceMappingURL=YearsDropdown.js.map
|
|
@@ -0,0 +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 a dropdown to navigate between years in the calendar.\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"],"names":["React"],"mappings":";;;AAEA;AACA;AACA;AACA;AACA;AACA;AACO,SAAS,aAAa,CAAC,KAAK,EAAE;AACrC,IAAI,MAAM,EAAE,UAAU,EAAE,GAAG,YAAY,EAAE;AACzC,IAAI,OAAOA,cAAK,CAAC,aAAa,CAAC,UAAU,CAAC,QAAQ,EAAE,EAAE,GAAG,KAAK,EAAE,CAAC;AACjE;;;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export { CaptionLabel } from './CaptionLabel.js';
|
|
2
|
+
export { Chevron } from './Chevron.js';
|
|
3
|
+
export { Day } from './Day.js';
|
|
4
|
+
export { DayButton } from './DayButton.js';
|
|
5
|
+
export { Dropdown } from './Dropdown.js';
|
|
6
|
+
export { DropdownNav } from './DropdownNav.js';
|
|
7
|
+
export { Footer } from './Footer.js';
|
|
8
|
+
export { Month } from './Month.js';
|
|
9
|
+
export { MonthCaption } from './MonthCaption.js';
|
|
10
|
+
export { MonthGrid } from './MonthGrid.js';
|
|
11
|
+
export { Months } from './Months.js';
|
|
12
|
+
export { MonthsDropdown } from './MonthsDropdown.js';
|
|
13
|
+
export { Nav } from './Nav.js';
|
|
14
|
+
export { NextMonthButton } from './NextMonthButton.js';
|
|
15
|
+
export { Option } from './Option.js';
|
|
16
|
+
export { PreviousMonthButton } from './PreviousMonthButton.js';
|
|
17
|
+
export { Root } from './Root.js';
|
|
18
|
+
export { Select } from './Select.js';
|
|
19
|
+
export { Week } from './Week.js';
|
|
20
|
+
export { Weekday } from './Weekday.js';
|
|
21
|
+
export { Weekdays } from './Weekdays.js';
|
|
22
|
+
export { WeekNumber } from './WeekNumber.js';
|
|
23
|
+
export { WeekNumberHeader } from './WeekNumberHeader.js';
|
|
24
|
+
export { Weeks } from './Weeks.js';
|
|
25
|
+
export { YearsDropdown } from './YearsDropdown.js';
|
|
26
|
+
//# sourceMappingURL=custom-components.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"custom-components.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { DateLib } from '../classes/DateLib.js';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Formats the caption of the month.
|
|
5
|
+
*
|
|
6
|
+
* @defaultValue Locale-specific month/year order (e.g., "November 2022").
|
|
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.
|
|
12
|
+
* @group Formatters
|
|
13
|
+
* @see https://daypicker.dev/docs/translation#custom-formatters
|
|
14
|
+
*/
|
|
15
|
+
function formatCaption(month, options, dateLib) {
|
|
16
|
+
const lib = dateLib ?? new DateLib(options);
|
|
17
|
+
return lib.formatMonthYear(month);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export { formatCaption };
|
|
21
|
+
//# sourceMappingURL=formatCaption.js.map
|
|
@@ -0,0 +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 * Formats the caption of the month.\n *\n * @defaultValue Locale-specific month/year order (e.g., \"November 2022\").\n * @param month The date representing the month.\n * @param options Configuration options for the date library.\n * @param dateLib The date library to use for formatting. If not provided, a new\n * instance is created.\n * @returns The formatted caption as a string.\n * @group Formatters\n * @see https://daypicker.dev/docs/translation#custom-formatters\n */\nexport function formatCaption(month, options, dateLib) {\n const lib = dateLib ?? new DateLib(options);\n return lib.formatMonthYear(month);\n}\n"],"names":[],"mappings":";;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAAS,aAAa,CAAC,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE;AACvD,IAAI,MAAM,GAAG,GAAG,OAAO,IAAI,IAAI,OAAO,CAAC,OAAO,CAAC;AAC/C,IAAI,OAAO,GAAG,CAAC,eAAe,CAAC,KAAK,CAAC;AACrC;;;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { DateLib } from '../classes/DateLib.js';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Formats the day date shown in the day cell.
|
|
5
|
+
*
|
|
6
|
+
* @defaultValue `d` (e.g., "1").
|
|
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.
|
|
12
|
+
* @group Formatters
|
|
13
|
+
* @see https://daypicker.dev/docs/translation#custom-formatters
|
|
14
|
+
*/
|
|
15
|
+
function formatDay(date, options, dateLib) {
|
|
16
|
+
return (dateLib ?? new DateLib(options)).format(date, "d");
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export { formatDay };
|
|
20
|
+
//# sourceMappingURL=formatDay.js.map
|
|
@@ -0,0 +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 * Formats the day date shown in the day cell.\n *\n * @defaultValue `d` (e.g., \"1\").\n * @param date The date to format.\n * @param options Configuration options for the date library.\n * @param dateLib The date library to use for formatting. If not provided, a new\n * instance is created.\n * @returns The formatted day as a string.\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"],"names":[],"mappings":";;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAAS,SAAS,CAAC,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE;AAClD,IAAI,OAAO,CAAC,OAAO,IAAI,IAAI,OAAO,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC,IAAI,EAAE,GAAG,CAAC;AAC9D;;;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { defaultDateLib } from '../classes/DateLib.js';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Formats the month for the dropdown option label.
|
|
5
|
+
*
|
|
6
|
+
* @defaultValue The localized full month name.
|
|
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.
|
|
11
|
+
* @group Formatters
|
|
12
|
+
* @see https://daypicker.dev/docs/translation#custom-formatters
|
|
13
|
+
*/
|
|
14
|
+
function formatMonthDropdown(month, dateLib = defaultDateLib) {
|
|
15
|
+
return dateLib.format(month, "LLLL");
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export { formatMonthDropdown };
|
|
19
|
+
//# sourceMappingURL=formatMonthDropdown.js.map
|
|
@@ -0,0 +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 * Formats the month for the dropdown option label.\n *\n * @defaultValue The localized full month name.\n * @param month The date representing the month.\n * @param dateLib The date library to use for formatting. Defaults to\n * `defaultDateLib`.\n * @returns The formatted month name as a string.\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"],"names":[],"mappings":";;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAAS,mBAAmB,CAAC,KAAK,EAAE,OAAO,GAAG,cAAc,EAAE;AACrE,IAAI,OAAO,OAAO,CAAC,MAAM,CAAC,KAAK,EAAE,MAAM,CAAC;AACxC;;;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { defaultDateLib } from '../classes/DateLib.js';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Formats the week number.
|
|
5
|
+
*
|
|
6
|
+
* @defaultValue The week number as a string, with a leading zero for single-digit numbers.
|
|
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.
|
|
11
|
+
* @group Formatters
|
|
12
|
+
* @see https://daypicker.dev/docs/translation#custom-formatters
|
|
13
|
+
*/
|
|
14
|
+
function formatWeekNumber(weekNumber, dateLib = defaultDateLib) {
|
|
15
|
+
if (weekNumber < 10) {
|
|
16
|
+
return dateLib.formatNumber(`0${weekNumber.toLocaleString()}`);
|
|
17
|
+
}
|
|
18
|
+
return dateLib.formatNumber(`${weekNumber.toLocaleString()}`);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export { formatWeekNumber };
|
|
22
|
+
//# sourceMappingURL=formatWeekNumber.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"formatWeekNumber.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/formatters/formatWeekNumber.js"],"sourcesContent":["import { defaultDateLib } from \"../classes/DateLib.js\";\n/**\n * Formats the week number.\n *\n * @defaultValue The week number as a string, with a leading zero for single-digit numbers.\n * @param weekNumber The week number to format.\n * @param dateLib The date library to use for formatting. Defaults to\n * `defaultDateLib`.\n * @returns The formatted week number as a string.\n * @group Formatters\n * @see https://daypicker.dev/docs/translation#custom-formatters\n */\nexport function formatWeekNumber(weekNumber, dateLib = defaultDateLib) {\n if (weekNumber < 10) {\n return dateLib.formatNumber(`0${weekNumber.toLocaleString()}`);\n }\n return dateLib.formatNumber(`${weekNumber.toLocaleString()}`);\n}\n"],"names":[],"mappings":";;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAAS,gBAAgB,CAAC,UAAU,EAAE,OAAO,GAAG,cAAc,EAAE;AACvE,IAAI,IAAI,UAAU,GAAG,EAAE,EAAE;AACzB,QAAQ,OAAO,OAAO,CAAC,YAAY,CAAC,CAAC,CAAC,EAAE,UAAU,CAAC,cAAc,EAAE,CAAC,CAAC,CAAC;AACtE,IAAI;AACJ,IAAI,OAAO,OAAO,CAAC,YAAY,CAAC,CAAC,EAAE,UAAU,CAAC,cAAc,EAAE,CAAC,CAAC,CAAC;AACjE;;;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Formats the header for the week number column.
|
|
3
|
+
*
|
|
4
|
+
* @defaultValue An empty string `""`.
|
|
5
|
+
* @returns The formatted week number header as a string.
|
|
6
|
+
* @group Formatters
|
|
7
|
+
* @see https://daypicker.dev/docs/translation#custom-formatters
|
|
8
|
+
*/
|
|
9
|
+
function formatWeekNumberHeader() {
|
|
10
|
+
return ``;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export { formatWeekNumberHeader };
|
|
14
|
+
//# sourceMappingURL=formatWeekNumberHeader.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"formatWeekNumberHeader.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/formatters/formatWeekNumberHeader.js"],"sourcesContent":["/**\n * Formats the header for the week number column.\n *\n * @defaultValue An empty string `\"\"`.\n * @returns The formatted week number header as a string.\n * @group Formatters\n * @see https://daypicker.dev/docs/translation#custom-formatters\n */\nexport function formatWeekNumberHeader() {\n return ``;\n}\n"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAAS,sBAAsB,GAAG;AACzC,IAAI,OAAO,CAAC,CAAC;AACb;;;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { DateLib } from '../classes/DateLib.js';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Formats the name of a weekday to be displayed in the weekdays header.
|
|
5
|
+
*
|
|
6
|
+
* @defaultValue `cccccc` (e.g., "Mo" for Monday).
|
|
7
|
+
* @param weekday The date representing the weekday.
|
|
8
|
+
* @param options Configuration options for the date library.
|
|
9
|
+
* @param dateLib The date library to use for formatting. If not provided, a new
|
|
10
|
+
* instance is created.
|
|
11
|
+
* @returns The formatted weekday name as a string.
|
|
12
|
+
* @group Formatters
|
|
13
|
+
* @see https://daypicker.dev/docs/translation#custom-formatters
|
|
14
|
+
*/
|
|
15
|
+
function formatWeekdayName(weekday, options, dateLib) {
|
|
16
|
+
return (dateLib ?? new DateLib(options)).format(weekday, "cccccc");
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export { formatWeekdayName };
|
|
20
|
+
//# sourceMappingURL=formatWeekdayName.js.map
|
|
@@ -0,0 +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 * Formats the name of a weekday to be displayed in the weekdays header.\n *\n * @defaultValue `cccccc` (e.g., \"Mo\" for Monday).\n * @param weekday The date representing the weekday.\n * @param options Configuration options for the date library.\n * @param dateLib The date library to use for formatting. If not provided, a new\n * instance is created.\n * @returns The formatted weekday name as a string.\n * @group Formatters\n * @see https://daypicker.dev/docs/translation#custom-formatters\n */\nexport function formatWeekdayName(weekday, options, dateLib) {\n return (dateLib ?? new DateLib(options)).format(weekday, \"cccccc\");\n}\n"],"names":[],"mappings":";;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAAS,iBAAiB,CAAC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE;AAC7D,IAAI,OAAO,CAAC,OAAO,IAAI,IAAI,OAAO,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC,OAAO,EAAE,QAAQ,CAAC;AACtE;;;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { defaultDateLib } from '../classes/DateLib.js';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Formats the year for the dropdown option label.
|
|
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
|
+
* @group Formatters
|
|
11
|
+
* @see https://daypicker.dev/docs/translation#custom-formatters
|
|
12
|
+
*/
|
|
13
|
+
function formatYearDropdown(year, dateLib = defaultDateLib) {
|
|
14
|
+
return dateLib.format(year, "yyyy");
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export { formatYearDropdown };
|
|
18
|
+
//# sourceMappingURL=formatYearDropdown.js.map
|
|
@@ -0,0 +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 * Formats the year for the dropdown option label.\n *\n * @param year The year to format.\n * @param dateLib The date library to use for formatting. Defaults to\n * `defaultDateLib`.\n * @returns The formatted year as a string.\n * @group Formatters\n * @see https://daypicker.dev/docs/translation#custom-formatters\n */\nexport function formatYearDropdown(year, dateLib = defaultDateLib) {\n return dateLib.format(year, \"yyyy\");\n}\n"],"names":[],"mappings":";;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAAS,kBAAkB,CAAC,IAAI,EAAE,OAAO,GAAG,cAAc,EAAE;AACnE,IAAI,OAAO,OAAO,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC;AACvC;;;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { formatCaption } from './formatCaption.js';
|
|
2
|
+
export { formatDay } from './formatDay.js';
|
|
3
|
+
export { formatMonthDropdown } from './formatMonthDropdown.js';
|
|
4
|
+
export { formatWeekdayName } from './formatWeekdayName.js';
|
|
5
|
+
export { formatWeekNumber } from './formatWeekNumber.js';
|
|
6
|
+
export { formatWeekNumberHeader } from './formatWeekNumberHeader.js';
|
|
7
|
+
export { formatYearDropdown } from './formatYearDropdown.js';
|
|
8
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { DayFlag } from '../UI.js';
|
|
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] &&
|
|
21
|
+
!modifiers[DayFlag.hidden] &&
|
|
22
|
+
!modifiers[DayFlag.outside]);
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Calculates the focus target day based on priority.
|
|
26
|
+
*
|
|
27
|
+
* This function determines the day that should receive focus in the calendar,
|
|
28
|
+
* prioritizing days with specific modifiers (e.g., "focused", "today") or
|
|
29
|
+
* selection states.
|
|
30
|
+
*
|
|
31
|
+
* @param days The array of `CalendarDay` objects to evaluate.
|
|
32
|
+
* @param getModifiers A function to retrieve the modifiers for a given day.
|
|
33
|
+
* @param isSelected A function to determine if a day is selected.
|
|
34
|
+
* @param lastFocused The last focused day, if any.
|
|
35
|
+
* @returns The `CalendarDay` that should receive focus, or `undefined` if no
|
|
36
|
+
* focusable day is found.
|
|
37
|
+
*/
|
|
38
|
+
function calculateFocusTarget(days, getModifiers, isSelected, lastFocused) {
|
|
39
|
+
let focusTarget;
|
|
40
|
+
let foundFocusTargetPriority = -1;
|
|
41
|
+
for (const day of days) {
|
|
42
|
+
const modifiers = getModifiers(day);
|
|
43
|
+
if (isFocusableDay(modifiers)) {
|
|
44
|
+
if (modifiers[DayFlag.focused] &&
|
|
45
|
+
foundFocusTargetPriority < FocusTargetPriority.FocusedModifier) {
|
|
46
|
+
focusTarget = day;
|
|
47
|
+
foundFocusTargetPriority = FocusTargetPriority.FocusedModifier;
|
|
48
|
+
}
|
|
49
|
+
else if (lastFocused?.isEqualTo(day) &&
|
|
50
|
+
foundFocusTargetPriority < FocusTargetPriority.LastFocused) {
|
|
51
|
+
focusTarget = day;
|
|
52
|
+
foundFocusTargetPriority = FocusTargetPriority.LastFocused;
|
|
53
|
+
}
|
|
54
|
+
else if (isSelected(day.date) &&
|
|
55
|
+
foundFocusTargetPriority < FocusTargetPriority.Selected) {
|
|
56
|
+
focusTarget = day;
|
|
57
|
+
foundFocusTargetPriority = FocusTargetPriority.Selected;
|
|
58
|
+
}
|
|
59
|
+
else if (modifiers[DayFlag.today] &&
|
|
60
|
+
foundFocusTargetPriority < FocusTargetPriority.Today) {
|
|
61
|
+
focusTarget = day;
|
|
62
|
+
foundFocusTargetPriority = FocusTargetPriority.Today;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
if (!focusTarget) {
|
|
67
|
+
// Return the first day that is focusable
|
|
68
|
+
focusTarget = days.find((day) => isFocusableDay(getModifiers(day)));
|
|
69
|
+
}
|
|
70
|
+
return focusTarget;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export { calculateFocusTarget };
|
|
74
|
+
//# sourceMappingURL=calculateFocusTarget.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"calculateFocusTarget.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/helpers/calculateFocusTarget.js"],"sourcesContent":["import { DayFlag } from \"../UI.js\";\nvar FocusTargetPriority;\n(function (FocusTargetPriority) {\n FocusTargetPriority[FocusTargetPriority[\"Today\"] = 0] = \"Today\";\n FocusTargetPriority[FocusTargetPriority[\"Selected\"] = 1] = \"Selected\";\n FocusTargetPriority[FocusTargetPriority[\"LastFocused\"] = 2] = \"LastFocused\";\n FocusTargetPriority[FocusTargetPriority[\"FocusedModifier\"] = 3] = \"FocusedModifier\";\n})(FocusTargetPriority || (FocusTargetPriority = {}));\n/**\n * Determines if a day is focusable based on its modifiers.\n *\n * A day is considered focusable if it is not disabled, hidden, or outside the\n * displayed month.\n *\n * @param modifiers The modifiers applied to the day.\n * @returns `true` if the day is focusable, otherwise `false`.\n */\nfunction isFocusableDay(modifiers) {\n return (!modifiers[DayFlag.disabled] &&\n !modifiers[DayFlag.hidden] &&\n !modifiers[DayFlag.outside]);\n}\n/**\n * Calculates the focus target day based on priority.\n *\n * This function determines the day that should receive focus in the calendar,\n * prioritizing days with specific modifiers (e.g., \"focused\", \"today\") or\n * selection states.\n *\n * @param days The array of `CalendarDay` objects to evaluate.\n * @param getModifiers A function to retrieve the modifiers for a given day.\n * @param isSelected A function to determine if a day is selected.\n * @param lastFocused The last focused day, if any.\n * @returns The `CalendarDay` that should receive focus, or `undefined` if no\n * focusable day is found.\n */\nexport function calculateFocusTarget(days, getModifiers, isSelected, lastFocused) {\n let focusTarget;\n let foundFocusTargetPriority = -1;\n for (const day of days) {\n const modifiers = getModifiers(day);\n if (isFocusableDay(modifiers)) {\n if (modifiers[DayFlag.focused] &&\n foundFocusTargetPriority < FocusTargetPriority.FocusedModifier) {\n focusTarget = day;\n foundFocusTargetPriority = FocusTargetPriority.FocusedModifier;\n }\n else if (lastFocused?.isEqualTo(day) &&\n foundFocusTargetPriority < FocusTargetPriority.LastFocused) {\n focusTarget = day;\n foundFocusTargetPriority = FocusTargetPriority.LastFocused;\n }\n else if (isSelected(day.date) &&\n foundFocusTargetPriority < FocusTargetPriority.Selected) {\n focusTarget = day;\n foundFocusTargetPriority = FocusTargetPriority.Selected;\n }\n else if (modifiers[DayFlag.today] &&\n foundFocusTargetPriority < FocusTargetPriority.Today) {\n focusTarget = day;\n foundFocusTargetPriority = FocusTargetPriority.Today;\n }\n }\n }\n if (!focusTarget) {\n // Return the first day that is focusable\n focusTarget = days.find((day) => isFocusableDay(getModifiers(day)));\n }\n return focusTarget;\n}\n"],"names":[],"mappings":";;AACA,IAAI,mBAAmB;AACvB,CAAC,UAAU,mBAAmB,EAAE;AAChC,IAAI,mBAAmB,CAAC,mBAAmB,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,GAAG,OAAO;AACnE,IAAI,mBAAmB,CAAC,mBAAmB,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,GAAG,UAAU;AACzE,IAAI,mBAAmB,CAAC,mBAAmB,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,GAAG,aAAa;AAC/E,IAAI,mBAAmB,CAAC,mBAAmB,CAAC,iBAAiB,CAAC,GAAG,CAAC,CAAC,GAAG,iBAAiB;AACvF,CAAC,EAAE,mBAAmB,KAAK,mBAAmB,GAAG,EAAE,CAAC,CAAC;AACrD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS,cAAc,CAAC,SAAS,EAAE;AACnC,IAAI,QAAQ,CAAC,SAAS,CAAC,OAAO,CAAC,QAAQ,CAAC;AACxC,QAAQ,CAAC,SAAS,CAAC,OAAO,CAAC,MAAM,CAAC;AAClC,QAAQ,CAAC,SAAS,CAAC,OAAO,CAAC,OAAO,CAAC;AACnC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAAS,oBAAoB,CAAC,IAAI,EAAE,YAAY,EAAE,UAAU,EAAE,WAAW,EAAE;AAClF,IAAI,IAAI,WAAW;AACnB,IAAI,IAAI,wBAAwB,GAAG,EAAE;AACrC,IAAI,KAAK,MAAM,GAAG,IAAI,IAAI,EAAE;AAC5B,QAAQ,MAAM,SAAS,GAAG,YAAY,CAAC,GAAG,CAAC;AAC3C,QAAQ,IAAI,cAAc,CAAC,SAAS,CAAC,EAAE;AACvC,YAAY,IAAI,SAAS,CAAC,OAAO,CAAC,OAAO,CAAC;AAC1C,gBAAgB,wBAAwB,GAAG,mBAAmB,CAAC,eAAe,EAAE;AAChF,gBAAgB,WAAW,GAAG,GAAG;AACjC,gBAAgB,wBAAwB,GAAG,mBAAmB,CAAC,eAAe;AAC9E,YAAY;AACZ,iBAAiB,IAAI,WAAW,EAAE,SAAS,CAAC,GAAG,CAAC;AAChD,gBAAgB,wBAAwB,GAAG,mBAAmB,CAAC,WAAW,EAAE;AAC5E,gBAAgB,WAAW,GAAG,GAAG;AACjC,gBAAgB,wBAAwB,GAAG,mBAAmB,CAAC,WAAW;AAC1E,YAAY;AACZ,iBAAiB,IAAI,UAAU,CAAC,GAAG,CAAC,IAAI,CAAC;AACzC,gBAAgB,wBAAwB,GAAG,mBAAmB,CAAC,QAAQ,EAAE;AACzE,gBAAgB,WAAW,GAAG,GAAG;AACjC,gBAAgB,wBAAwB,GAAG,mBAAmB,CAAC,QAAQ;AACvE,YAAY;AACZ,iBAAiB,IAAI,SAAS,CAAC,OAAO,CAAC,KAAK,CAAC;AAC7C,gBAAgB,wBAAwB,GAAG,mBAAmB,CAAC,KAAK,EAAE;AACtE,gBAAgB,WAAW,GAAG,GAAG;AACjC,gBAAgB,wBAAwB,GAAG,mBAAmB,CAAC,KAAK;AACpE,YAAY;AACZ,QAAQ;AACR,IAAI;AACJ,IAAI,IAAI,CAAC,WAAW,EAAE;AACtB;AACA,QAAQ,WAAW,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,KAAK,cAAc,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC,CAAC;AAC3E,IAAI;AACJ,IAAI,OAAO,WAAW;AACtB;;;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { DayFlag } from '../UI.js';
|
|
2
|
+
import { dateMatchModifiers } from '../utils/dateMatchModifiers.js';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Creates a function to retrieve the modifiers for a given day.
|
|
6
|
+
*
|
|
7
|
+
* This function calculates both internal and custom modifiers for each day
|
|
8
|
+
* based on the provided calendar days and DayPicker props.
|
|
9
|
+
*
|
|
10
|
+
* @private
|
|
11
|
+
* @param days The array of `CalendarDay` objects to process.
|
|
12
|
+
* @param props The DayPicker props, including modifiers and configuration
|
|
13
|
+
* options.
|
|
14
|
+
* @param dateLib The date library to use for date manipulation.
|
|
15
|
+
* @returns A function that retrieves the modifiers for a given `CalendarDay`.
|
|
16
|
+
*/
|
|
17
|
+
function createGetModifiers(days, props, navStart, navEnd, dateLib) {
|
|
18
|
+
const { disabled, hidden, modifiers, showOutsideDays, broadcastCalendar, today = dateLib.today(), } = props;
|
|
19
|
+
const { isSameDay, isSameMonth, startOfMonth, isBefore, endOfMonth, isAfter, } = dateLib;
|
|
20
|
+
const computedNavStart = navStart && startOfMonth(navStart);
|
|
21
|
+
const computedNavEnd = navEnd && endOfMonth(navEnd);
|
|
22
|
+
const internalModifiersMap = {
|
|
23
|
+
[DayFlag.focused]: [],
|
|
24
|
+
[DayFlag.outside]: [],
|
|
25
|
+
[DayFlag.disabled]: [],
|
|
26
|
+
[DayFlag.hidden]: [],
|
|
27
|
+
[DayFlag.today]: [],
|
|
28
|
+
};
|
|
29
|
+
const customModifiersMap = {};
|
|
30
|
+
for (const day of days) {
|
|
31
|
+
const { date, displayMonth } = day;
|
|
32
|
+
const isOutside = Boolean(displayMonth && !isSameMonth(date, displayMonth));
|
|
33
|
+
const isBeforeNavStart = Boolean(computedNavStart && isBefore(date, computedNavStart));
|
|
34
|
+
const isAfterNavEnd = Boolean(computedNavEnd && isAfter(date, computedNavEnd));
|
|
35
|
+
const isDisabled = Boolean(disabled && dateMatchModifiers(date, disabled, dateLib));
|
|
36
|
+
const isHidden = Boolean(hidden && dateMatchModifiers(date, hidden, dateLib)) ||
|
|
37
|
+
isBeforeNavStart ||
|
|
38
|
+
isAfterNavEnd ||
|
|
39
|
+
// Broadcast calendar will show outside days as default
|
|
40
|
+
(!broadcastCalendar && !showOutsideDays && isOutside) ||
|
|
41
|
+
(broadcastCalendar && showOutsideDays === false && isOutside);
|
|
42
|
+
const isToday = isSameDay(date, today);
|
|
43
|
+
if (isOutside)
|
|
44
|
+
internalModifiersMap.outside.push(day);
|
|
45
|
+
if (isDisabled)
|
|
46
|
+
internalModifiersMap.disabled.push(day);
|
|
47
|
+
if (isHidden)
|
|
48
|
+
internalModifiersMap.hidden.push(day);
|
|
49
|
+
if (isToday)
|
|
50
|
+
internalModifiersMap.today.push(day);
|
|
51
|
+
// Add custom modifiers
|
|
52
|
+
if (modifiers) {
|
|
53
|
+
Object.keys(modifiers).forEach((name) => {
|
|
54
|
+
const modifierValue = modifiers?.[name];
|
|
55
|
+
const isMatch = modifierValue
|
|
56
|
+
? dateMatchModifiers(date, modifierValue, dateLib)
|
|
57
|
+
: false;
|
|
58
|
+
if (!isMatch)
|
|
59
|
+
return;
|
|
60
|
+
if (customModifiersMap[name]) {
|
|
61
|
+
customModifiersMap[name].push(day);
|
|
62
|
+
}
|
|
63
|
+
else {
|
|
64
|
+
customModifiersMap[name] = [day];
|
|
65
|
+
}
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
return (day) => {
|
|
70
|
+
// Initialize all the modifiers to false
|
|
71
|
+
const dayFlags = {
|
|
72
|
+
[DayFlag.focused]: false,
|
|
73
|
+
[DayFlag.disabled]: false,
|
|
74
|
+
[DayFlag.hidden]: false,
|
|
75
|
+
[DayFlag.outside]: false,
|
|
76
|
+
[DayFlag.today]: false,
|
|
77
|
+
};
|
|
78
|
+
const customModifiers = {};
|
|
79
|
+
// Find the modifiers for the given day
|
|
80
|
+
for (const name in internalModifiersMap) {
|
|
81
|
+
const days = internalModifiersMap[name];
|
|
82
|
+
dayFlags[name] = days.some((d) => d === day);
|
|
83
|
+
}
|
|
84
|
+
for (const name in customModifiersMap) {
|
|
85
|
+
customModifiers[name] = customModifiersMap[name].some((d) => d === day);
|
|
86
|
+
}
|
|
87
|
+
return {
|
|
88
|
+
...dayFlags,
|
|
89
|
+
// custom modifiers should override all the previous ones
|
|
90
|
+
...customModifiers,
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export { createGetModifiers };
|
|
96
|
+
//# sourceMappingURL=createGetModifiers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createGetModifiers.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/helpers/createGetModifiers.js"],"sourcesContent":["import { DayFlag } from \"../UI.js\";\nimport { dateMatchModifiers } from \"../utils/dateMatchModifiers.js\";\n/**\n * Creates a function to retrieve the modifiers for a given day.\n *\n * This function calculates both internal and custom modifiers for each day\n * based on the provided calendar days and DayPicker props.\n *\n * @private\n * @param days The array of `CalendarDay` objects to process.\n * @param props The DayPicker props, including modifiers and configuration\n * options.\n * @param dateLib The date library to use for date manipulation.\n * @returns A function that retrieves the modifiers for a given `CalendarDay`.\n */\nexport function createGetModifiers(days, props, navStart, navEnd, dateLib) {\n const { disabled, hidden, modifiers, showOutsideDays, broadcastCalendar, today = dateLib.today(), } = props;\n const { isSameDay, isSameMonth, startOfMonth, isBefore, endOfMonth, isAfter, } = dateLib;\n const computedNavStart = navStart && startOfMonth(navStart);\n const computedNavEnd = navEnd && endOfMonth(navEnd);\n const internalModifiersMap = {\n [DayFlag.focused]: [],\n [DayFlag.outside]: [],\n [DayFlag.disabled]: [],\n [DayFlag.hidden]: [],\n [DayFlag.today]: [],\n };\n const customModifiersMap = {};\n for (const day of days) {\n const { date, displayMonth } = day;\n const isOutside = Boolean(displayMonth && !isSameMonth(date, displayMonth));\n const isBeforeNavStart = Boolean(computedNavStart && isBefore(date, computedNavStart));\n const isAfterNavEnd = Boolean(computedNavEnd && isAfter(date, computedNavEnd));\n const isDisabled = Boolean(disabled && dateMatchModifiers(date, disabled, dateLib));\n const isHidden = Boolean(hidden && dateMatchModifiers(date, hidden, dateLib)) ||\n isBeforeNavStart ||\n isAfterNavEnd ||\n // Broadcast calendar will show outside days as default\n (!broadcastCalendar && !showOutsideDays && isOutside) ||\n (broadcastCalendar && showOutsideDays === false && isOutside);\n const isToday = isSameDay(date, today);\n if (isOutside)\n internalModifiersMap.outside.push(day);\n if (isDisabled)\n internalModifiersMap.disabled.push(day);\n if (isHidden)\n internalModifiersMap.hidden.push(day);\n if (isToday)\n internalModifiersMap.today.push(day);\n // Add custom modifiers\n if (modifiers) {\n Object.keys(modifiers).forEach((name) => {\n const modifierValue = modifiers?.[name];\n const isMatch = modifierValue\n ? dateMatchModifiers(date, modifierValue, dateLib)\n : false;\n if (!isMatch)\n return;\n if (customModifiersMap[name]) {\n customModifiersMap[name].push(day);\n }\n else {\n customModifiersMap[name] = [day];\n }\n });\n }\n }\n return (day) => {\n // Initialize all the modifiers to false\n const dayFlags = {\n [DayFlag.focused]: false,\n [DayFlag.disabled]: false,\n [DayFlag.hidden]: false,\n [DayFlag.outside]: false,\n [DayFlag.today]: false,\n };\n const customModifiers = {};\n // Find the modifiers for the given day\n for (const name in internalModifiersMap) {\n const days = internalModifiersMap[name];\n dayFlags[name] = days.some((d) => d === day);\n }\n for (const name in customModifiersMap) {\n customModifiers[name] = customModifiersMap[name].some((d) => d === day);\n }\n return {\n ...dayFlags,\n // custom modifiers should override all the previous ones\n ...customModifiers,\n };\n };\n}\n"],"names":[],"mappings":";;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAAS,kBAAkB,CAAC,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE;AAC3E,IAAI,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,eAAe,EAAE,iBAAiB,EAAE,KAAK,GAAG,OAAO,CAAC,KAAK,EAAE,GAAG,GAAG,KAAK;AAC/G,IAAI,MAAM,EAAE,SAAS,EAAE,WAAW,EAAE,YAAY,EAAE,QAAQ,EAAE,UAAU,EAAE,OAAO,GAAG,GAAG,OAAO;AAC5F,IAAI,MAAM,gBAAgB,GAAG,QAAQ,IAAI,YAAY,CAAC,QAAQ,CAAC;AAC/D,IAAI,MAAM,cAAc,GAAG,MAAM,IAAI,UAAU,CAAC,MAAM,CAAC;AACvD,IAAI,MAAM,oBAAoB,GAAG;AACjC,QAAQ,CAAC,OAAO,CAAC,OAAO,GAAG,EAAE;AAC7B,QAAQ,CAAC,OAAO,CAAC,OAAO,GAAG,EAAE;AAC7B,QAAQ,CAAC,OAAO,CAAC,QAAQ,GAAG,EAAE;AAC9B,QAAQ,CAAC,OAAO,CAAC,MAAM,GAAG,EAAE;AAC5B,QAAQ,CAAC,OAAO,CAAC,KAAK,GAAG,EAAE;AAC3B,KAAK;AACL,IAAI,MAAM,kBAAkB,GAAG,EAAE;AACjC,IAAI,KAAK,MAAM,GAAG,IAAI,IAAI,EAAE;AAC5B,QAAQ,MAAM,EAAE,IAAI,EAAE,YAAY,EAAE,GAAG,GAAG;AAC1C,QAAQ,MAAM,SAAS,GAAG,OAAO,CAAC,YAAY,IAAI,CAAC,WAAW,CAAC,IAAI,EAAE,YAAY,CAAC,CAAC;AACnF,QAAQ,MAAM,gBAAgB,GAAG,OAAO,CAAC,gBAAgB,IAAI,QAAQ,CAAC,IAAI,EAAE,gBAAgB,CAAC,CAAC;AAC9F,QAAQ,MAAM,aAAa,GAAG,OAAO,CAAC,cAAc,IAAI,OAAO,CAAC,IAAI,EAAE,cAAc,CAAC,CAAC;AACtF,QAAQ,MAAM,UAAU,GAAG,OAAO,CAAC,QAAQ,IAAI,kBAAkB,CAAC,IAAI,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC;AAC3F,QAAQ,MAAM,QAAQ,GAAG,OAAO,CAAC,MAAM,IAAI,kBAAkB,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC;AACrF,YAAY,gBAAgB;AAC5B,YAAY,aAAa;AACzB;AACA,aAAa,CAAC,iBAAiB,IAAI,CAAC,eAAe,IAAI,SAAS,CAAC;AACjE,aAAa,iBAAiB,IAAI,eAAe,KAAK,KAAK,IAAI,SAAS,CAAC;AACzE,QAAQ,MAAM,OAAO,GAAG,SAAS,CAAC,IAAI,EAAE,KAAK,CAAC;AAC9C,QAAQ,IAAI,SAAS;AACrB,YAAY,oBAAoB,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC;AAClD,QAAQ,IAAI,UAAU;AACtB,YAAY,oBAAoB,CAAC,QAAQ,CAAC,IAAI,CAAC,GAAG,CAAC;AACnD,QAAQ,IAAI,QAAQ;AACpB,YAAY,oBAAoB,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC;AACjD,QAAQ,IAAI,OAAO;AACnB,YAAY,oBAAoB,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC;AAChD;AACA,QAAQ,IAAI,SAAS,EAAE;AACvB,YAAY,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,OAAO,CAAC,CAAC,IAAI,KAAK;AACrD,gBAAgB,MAAM,aAAa,GAAG,SAAS,GAAG,IAAI,CAAC;AACvD,gBAAgB,MAAM,OAAO,GAAG;AAChC,sBAAsB,kBAAkB,CAAC,IAAI,EAAE,aAAa,EAAE,OAAO;AACrE,sBAAsB,KAAK;AAC3B,gBAAgB,IAAI,CAAC,OAAO;AAC5B,oBAAoB;AACpB,gBAAgB,IAAI,kBAAkB,CAAC,IAAI,CAAC,EAAE;AAC9C,oBAAoB,kBAAkB,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC;AACtD,gBAAgB;AAChB,qBAAqB;AACrB,oBAAoB,kBAAkB,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC;AACpD,gBAAgB;AAChB,YAAY,CAAC,CAAC;AACd,QAAQ;AACR,IAAI;AACJ,IAAI,OAAO,CAAC,GAAG,KAAK;AACpB;AACA,QAAQ,MAAM,QAAQ,GAAG;AACzB,YAAY,CAAC,OAAO,CAAC,OAAO,GAAG,KAAK;AACpC,YAAY,CAAC,OAAO,CAAC,QAAQ,GAAG,KAAK;AACrC,YAAY,CAAC,OAAO,CAAC,MAAM,GAAG,KAAK;AACnC,YAAY,CAAC,OAAO,CAAC,OAAO,GAAG,KAAK;AACpC,YAAY,CAAC,OAAO,CAAC,KAAK,GAAG,KAAK;AAClC,SAAS;AACT,QAAQ,MAAM,eAAe,GAAG,EAAE;AAClC;AACA,QAAQ,KAAK,MAAM,IAAI,IAAI,oBAAoB,EAAE;AACjD,YAAY,MAAM,IAAI,GAAG,oBAAoB,CAAC,IAAI,CAAC;AACnD,YAAY,QAAQ,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,GAAG,CAAC;AACxD,QAAQ;AACR,QAAQ,KAAK,MAAM,IAAI,IAAI,kBAAkB,EAAE;AAC/C,YAAY,eAAe,CAAC,IAAI,CAAC,GAAG,kBAAkB,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,GAAG,CAAC;AACnF,QAAQ;AACR,QAAQ,OAAO;AACf,YAAY,GAAG,QAAQ;AACvB;AACA,YAAY,GAAG,eAAe;AAC9B,SAAS;AACT,IAAI,CAAC;AACL;;;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { getBroadcastWeeksInMonth } from './getBroadcastWeeksInMonth.js';
|
|
2
|
+
import { startOfBroadcastWeek } from './startOfBroadcastWeek.js';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Returns the end date of the week in the broadcast calendar.
|
|
6
|
+
*
|
|
7
|
+
* The broadcast week ends on the last day of the last broadcast week for the
|
|
8
|
+
* given date.
|
|
9
|
+
*
|
|
10
|
+
* @since 9.4.0
|
|
11
|
+
* @param date The date for which to calculate the end of the broadcast week.
|
|
12
|
+
* @param dateLib The date library to use for date manipulation.
|
|
13
|
+
* @returns The end date of the broadcast week.
|
|
14
|
+
*/
|
|
15
|
+
function endOfBroadcastWeek(date, dateLib) {
|
|
16
|
+
const startDate = startOfBroadcastWeek(date, dateLib);
|
|
17
|
+
const numberOfWeeks = getBroadcastWeeksInMonth(date, dateLib);
|
|
18
|
+
const endDate = dateLib.addDays(startDate, numberOfWeeks * 7 - 1);
|
|
19
|
+
return endDate;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export { endOfBroadcastWeek };
|
|
23
|
+
//# sourceMappingURL=endOfBroadcastWeek.js.map
|
|
@@ -0,0 +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 * Returns the end date of the week in the broadcast calendar.\n *\n * The broadcast week ends on the last day of the last broadcast week for the\n * given date.\n *\n * @since 9.4.0\n * @param date The date for which to calculate the end of the broadcast week.\n * @param dateLib The date library to use for date manipulation.\n * @returns The end date of the broadcast week.\n */\nexport function endOfBroadcastWeek(date, dateLib) {\n const startDate = startOfBroadcastWeek(date, dateLib);\n const numberOfWeeks = getBroadcastWeeksInMonth(date, dateLib);\n const endDate = dateLib.addDays(startDate, numberOfWeeks * 7 - 1);\n return endDate;\n}\n"],"names":[],"mappings":";;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAAS,kBAAkB,CAAC,IAAI,EAAE,OAAO,EAAE;AAClD,IAAI,MAAM,SAAS,GAAG,oBAAoB,CAAC,IAAI,EAAE,OAAO,CAAC;AACzD,IAAI,MAAM,aAAa,GAAG,wBAAwB,CAAC,IAAI,EAAE,OAAO,CAAC;AACjE,IAAI,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,SAAS,EAAE,aAAa,GAAG,CAAC,GAAG,CAAC,CAAC;AACrE,IAAI,OAAO,OAAO;AAClB;;;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
const FIVE_WEEKS = 5;
|
|
2
|
+
const FOUR_WEEKS = 4;
|
|
3
|
+
/**
|
|
4
|
+
* Returns the number of weeks to display in the broadcast calendar for a given
|
|
5
|
+
* month.
|
|
6
|
+
*
|
|
7
|
+
* The broadcast calendar may have either 4 or 5 weeks in a month, depending on
|
|
8
|
+
* the start and end dates of the broadcast weeks.
|
|
9
|
+
*
|
|
10
|
+
* @since 9.4.0
|
|
11
|
+
* @param month The month for which to calculate the number of weeks.
|
|
12
|
+
* @param dateLib The date library to use for date manipulation.
|
|
13
|
+
* @returns The number of weeks in the broadcast calendar (4 or 5).
|
|
14
|
+
*/
|
|
15
|
+
function getBroadcastWeeksInMonth(month, dateLib) {
|
|
16
|
+
// Get the first day of the month
|
|
17
|
+
const firstDayOfMonth = dateLib.startOfMonth(month);
|
|
18
|
+
// Get the day of the week for the first day of the month (1-7, where 1 is Monday)
|
|
19
|
+
const firstDayOfWeek = firstDayOfMonth.getDay() > 0 ? firstDayOfMonth.getDay() : 7;
|
|
20
|
+
const broadcastStartDate = dateLib.addDays(month, -firstDayOfWeek + 1);
|
|
21
|
+
const lastDateOfLastWeek = dateLib.addDays(broadcastStartDate, FIVE_WEEKS * 7 - 1);
|
|
22
|
+
const numberOfWeeks = dateLib.getMonth(month) === dateLib.getMonth(lastDateOfLastWeek)
|
|
23
|
+
? FIVE_WEEKS
|
|
24
|
+
: FOUR_WEEKS;
|
|
25
|
+
return numberOfWeeks;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export { getBroadcastWeeksInMonth };
|
|
29
|
+
//# sourceMappingURL=getBroadcastWeeksInMonth.js.map
|
|
@@ -0,0 +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 * Returns the number of weeks to display in the broadcast calendar for a given\n * month.\n *\n * The broadcast calendar may have either 4 or 5 weeks in a month, depending on\n * the start and end dates of the broadcast weeks.\n *\n * @since 9.4.0\n * @param month The month for which to calculate the number of weeks.\n * @param dateLib The date library to use for date manipulation.\n * @returns The number of weeks in the broadcast calendar (4 or 5).\n */\nexport function getBroadcastWeeksInMonth(month, dateLib) {\n // Get the first day of the month\n const firstDayOfMonth = dateLib.startOfMonth(month);\n // Get the day of the week for the first day of the month (1-7, where 1 is Monday)\n const firstDayOfWeek = firstDayOfMonth.getDay() > 0 ? firstDayOfMonth.getDay() : 7;\n const broadcastStartDate = dateLib.addDays(month, -firstDayOfWeek + 1);\n const lastDateOfLastWeek = dateLib.addDays(broadcastStartDate, FIVE_WEEKS * 7 - 1);\n const numberOfWeeks = dateLib.getMonth(month) === dateLib.getMonth(lastDateOfLastWeek)\n ? FIVE_WEEKS\n : FOUR_WEEKS;\n return numberOfWeeks;\n}\n"],"names":[],"mappings":"AAAA,MAAM,UAAU,GAAG,CAAC;AACpB,MAAM,UAAU,GAAG,CAAC;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAAS,wBAAwB,CAAC,KAAK,EAAE,OAAO,EAAE;AACzD;AACA,IAAI,MAAM,eAAe,GAAG,OAAO,CAAC,YAAY,CAAC,KAAK,CAAC;AACvD;AACA,IAAI,MAAM,cAAc,GAAG,eAAe,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,eAAe,CAAC,MAAM,EAAE,GAAG,CAAC;AACtF,IAAI,MAAM,kBAAkB,GAAG,OAAO,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC,cAAc,GAAG,CAAC,CAAC;AAC1E,IAAI,MAAM,kBAAkB,GAAG,OAAO,CAAC,OAAO,CAAC,kBAAkB,EAAE,UAAU,GAAG,CAAC,GAAG,CAAC,CAAC;AACtF,IAAI,MAAM,aAAa,GAAG,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,KAAK,OAAO,CAAC,QAAQ,CAAC,kBAAkB;AACzF,UAAU;AACV,UAAU,UAAU;AACpB,IAAI,OAAO,aAAa;AACxB;;;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { DayFlag, SelectionState, UI } from '../UI.js';
|
|
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
|
+
function getClassNamesForModifiers(modifiers, classNames, modifiersClassNames = {}) {
|
|
16
|
+
const modifierClassNames = Object.entries(modifiers)
|
|
17
|
+
.filter(([, active]) => active === true)
|
|
18
|
+
.reduce((previousValue, [key]) => {
|
|
19
|
+
if (modifiersClassNames[key]) {
|
|
20
|
+
previousValue.push(modifiersClassNames[key]);
|
|
21
|
+
}
|
|
22
|
+
else if (classNames[DayFlag[key]]) {
|
|
23
|
+
previousValue.push(classNames[DayFlag[key]]);
|
|
24
|
+
}
|
|
25
|
+
else if (classNames[SelectionState[key]]) {
|
|
26
|
+
previousValue.push(classNames[SelectionState[key]]);
|
|
27
|
+
}
|
|
28
|
+
return previousValue;
|
|
29
|
+
}, [classNames[UI.Day]]);
|
|
30
|
+
return modifierClassNames;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export { getClassNamesForModifiers };
|
|
34
|
+
//# sourceMappingURL=getClassNamesForModifiers.js.map
|
|
@@ -0,0 +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\";\n/**\n * Returns the class names for a day based on its modifiers.\n *\n * This function combines the base class name for the day with any class names\n * associated with active modifiers.\n *\n * @param modifiers The modifiers applied to the day.\n * @param classNames The base class names for the calendar elements.\n * @param modifiersClassNames The class names associated with specific\n * modifiers.\n * @returns An array of class names for the day.\n */\nexport function getClassNamesForModifiers(modifiers, classNames, modifiersClassNames = {}) {\n const modifierClassNames = Object.entries(modifiers)\n .filter(([, active]) => active === true)\n .reduce((previousValue, [key]) => {\n if (modifiersClassNames[key]) {\n previousValue.push(modifiersClassNames[key]);\n }\n else if (classNames[DayFlag[key]]) {\n previousValue.push(classNames[DayFlag[key]]);\n }\n else if (classNames[SelectionState[key]]) {\n previousValue.push(classNames[SelectionState[key]]);\n }\n return previousValue;\n }, [classNames[UI.Day]]);\n return modifierClassNames;\n}\n"],"names":[],"mappings":";;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAAS,yBAAyB,CAAC,SAAS,EAAE,UAAU,EAAE,mBAAmB,GAAG,EAAE,EAAE;AAC3F,IAAI,MAAM,kBAAkB,GAAG,MAAM,CAAC,OAAO,CAAC,SAAS;AACvD,SAAS,MAAM,CAAC,CAAC,GAAG,MAAM,CAAC,KAAK,MAAM,KAAK,IAAI;AAC/C,SAAS,MAAM,CAAC,CAAC,aAAa,EAAE,CAAC,GAAG,CAAC,KAAK;AAC1C,QAAQ,IAAI,mBAAmB,CAAC,GAAG,CAAC,EAAE;AACtC,YAAY,aAAa,CAAC,IAAI,CAAC,mBAAmB,CAAC,GAAG,CAAC,CAAC;AACxD,QAAQ;AACR,aAAa,IAAI,UAAU,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE;AAC3C,YAAY,aAAa,CAAC,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC;AACxD,QAAQ;AACR,aAAa,IAAI,UAAU,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC,EAAE;AAClD,YAAY,aAAa,CAAC,IAAI,CAAC,UAAU,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC,CAAC;AAC/D,QAAQ;AACR,QAAQ,OAAO,aAAa;AAC5B,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;AAC5B,IAAI,OAAO,kBAAkB;AAC7B;;;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as customComponents from '../components/custom-components.js';
|
|
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
|
+
function getComponents(customComponents$1) {
|
|
14
|
+
return {
|
|
15
|
+
...customComponents,
|
|
16
|
+
...customComponents$1,
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export { getComponents };
|
|
21
|
+
//# sourceMappingURL=getComponents.js.map
|
|
@@ -0,0 +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\";\n/**\n * Merges custom components from the props with the default components.\n *\n * This function ensures that any custom components provided in the props\n * override the default components.\n *\n * @param customComponents The custom components provided in the DayPicker\n * props.\n * @returns An object containing the merged components.\n */\nexport function getComponents(customComponents) {\n return {\n ...components,\n ...customComponents,\n };\n}\n"],"names":["customComponents","components"],"mappings":";;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAAS,aAAa,CAACA,kBAAgB,EAAE;AAChD,IAAI,OAAO;AACX,QAAQ,GAAGC,gBAAU;AACrB,QAAQ,GAAGD,kBAAgB;AAC3B,KAAK;AACL;;;;","x_google_ignoreList":[0]}
|