react-day-picker 8.0.0-beta.27 → 8.0.0-beta.31
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/CHANGELOG.md +8 -70
- package/LICENSE +1 -1
- package/README.md +4 -5
- package/build/DayPicker.d.ts +88 -0
- package/build/DayPicker.js +97 -0
- package/build/DayPicker.js.map +1 -0
- package/build/_virtual/_tslib.js +50 -0
- package/build/_virtual/_tslib.js.map +1 -0
- package/build/components/Button/Button.d.ts +7 -0
- package/build/components/Button/Button.js +23 -0
- package/build/components/Button/Button.js.map +1 -0
- package/build/components/Button/index.d.ts +1 -0
- package/build/components/Caption/Caption.d.ts +11 -0
- package/build/components/Caption/Caption.js +57 -0
- package/build/components/Caption/Caption.js.map +1 -0
- package/build/components/Caption/index.d.ts +1 -0
- package/build/components/CaptionLabel/CaptionLabel.d.ts +8 -0
- package/build/components/CaptionLabel/CaptionLabel.js +11 -0
- package/build/components/CaptionLabel/CaptionLabel.js.map +1 -0
- package/build/components/CaptionLabel/index.d.ts +1 -0
- package/build/components/Day/Day.d.ts +13 -0
- package/build/components/Day/Day.js +24 -0
- package/build/components/Day/Day.js.map +1 -0
- package/build/components/Day/hooks/index.d.ts +1 -0
- package/build/components/Day/hooks/useDay.d.ts +58 -0
- package/build/components/Day/hooks/useDay.js +176 -0
- package/build/components/Day/hooks/useDay.js.map +1 -0
- package/build/components/Day/hooks/useDayFocus.d.ts +8 -0
- package/build/components/Day/hooks/useDayFocus.js +49 -0
- package/build/components/Day/hooks/useDayFocus.js.map +1 -0
- package/build/components/Day/index.d.ts +2 -0
- package/build/components/DayContent/DayContent.d.ts +15 -0
- package/build/components/DayContent/DayContent.js +15 -0
- package/build/components/DayContent/DayContent.js.map +1 -0
- package/build/components/DayContent/index.d.ts +1 -0
- package/build/components/Dropdown/Dropdown.d.ts +16 -0
- package/build/components/Dropdown/Dropdown.js +20 -0
- package/build/components/Dropdown/Dropdown.js.map +1 -0
- package/build/components/Dropdown/index.d.ts +1 -0
- package/build/components/Footer/Footer.d.ts +3 -0
- package/build/components/Footer/Footer.js +15 -0
- package/build/components/Footer/Footer.js.map +1 -0
- package/build/components/Footer/index.d.ts +1 -0
- package/build/components/Head/Head.d.ts +5 -0
- package/build/components/Head/Head.js +20 -0
- package/build/components/Head/Head.js.map +1 -0
- package/build/components/Head/index.d.ts +1 -0
- package/build/components/Head/utils/getWeekdays.d.ts +6 -0
- package/build/components/Head/utils/getWeekdays.js +18 -0
- package/build/components/Head/utils/getWeekdays.js.map +1 -0
- package/build/components/Head/utils/index.d.ts +1 -0
- package/build/components/IconDropdown/IconDropdown.d.ts +6 -0
- package/build/components/IconDropdown/IconDropdown.js +13 -0
- package/build/components/IconDropdown/IconDropdown.js.map +1 -0
- package/build/components/IconDropdown/index.d.ts +1 -0
- package/build/components/IconNext/IconNext.d.ts +6 -0
- package/build/components/IconNext/IconNext.js +13 -0
- package/build/components/IconNext/IconNext.js.map +1 -0
- package/build/components/IconNext/index.d.ts +1 -0
- package/build/components/IconPrevious/IconPrevious.d.ts +6 -0
- package/build/components/IconPrevious/IconPrevious.js +13 -0
- package/build/components/IconPrevious/IconPrevious.js.map +1 -0
- package/build/components/IconPrevious/index.d.ts +1 -0
- package/build/components/MonthsDropdown/MonthsDropdown.d.ts +12 -0
- package/build/components/MonthsDropdown/MonthsDropdown.js +39 -0
- package/build/components/MonthsDropdown/MonthsDropdown.js.map +1 -0
- package/build/components/MonthsDropdown/index.d.ts +1 -0
- package/build/components/Navigation/Navigation.d.ts +20 -0
- package/build/components/Navigation/Navigation.js +37 -0
- package/build/components/Navigation/Navigation.js.map +1 -0
- package/build/components/Navigation/index.d.ts +1 -0
- package/build/components/Root/Root.d.ts +6 -0
- package/build/components/Root/Root.js +50 -0
- package/build/components/Root/Root.js.map +1 -0
- package/build/components/Root/index.d.ts +1 -0
- package/build/components/Row/Row.d.ts +16 -0
- package/build/components/Row/Row.js +22 -0
- package/build/components/Row/Row.js.map +1 -0
- package/build/components/Row/index.d.ts +1 -0
- package/build/components/Table/Table.d.ts +12 -0
- package/build/components/Table/Table.js +18 -0
- package/build/components/Table/Table.js.map +1 -0
- package/build/components/Table/index.d.ts +1 -0
- package/build/components/Table/utils/getOutsideEndDays.d.ts +3 -0
- package/build/components/Table/utils/getOutsideEndDays.js +15 -0
- package/build/components/Table/utils/getOutsideEndDays.js.map +1 -0
- package/build/components/Table/utils/getOutsideStartDays.d.ts +4 -0
- package/build/components/Table/utils/getOutsideStartDays.js +15 -0
- package/build/components/Table/utils/getOutsideStartDays.js.map +1 -0
- package/build/components/Table/utils/getWeeks.d.ts +17 -0
- package/build/components/Table/utils/getWeeks.js +50 -0
- package/build/components/Table/utils/getWeeks.js.map +1 -0
- package/build/components/WeekNumber/WeekNumber.d.ts +15 -0
- package/build/components/WeekNumber/WeekNumber.js +24 -0
- package/build/components/WeekNumber/WeekNumber.js.map +1 -0
- package/build/components/WeekNumber/index.d.ts +1 -0
- package/build/components/YearsDropdown/YearsDropdown.d.ts +16 -0
- package/build/components/YearsDropdown/YearsDropdown.js +28 -0
- package/build/components/YearsDropdown/YearsDropdown.js.map +1 -0
- package/build/components/YearsDropdown/index.d.ts +1 -0
- package/build/components/index.d.ts +18 -0
- package/build/contexts/ContextProvider.d.ts +8 -0
- package/build/contexts/ContextProvider.js +27 -0
- package/build/contexts/ContextProvider.js.map +1 -0
- package/build/contexts/DayPicker/DayPickerContext.d.ts +30 -0
- package/build/contexts/DayPicker/DayPickerContext.js +14 -0
- package/build/contexts/DayPicker/DayPickerContext.js.map +1 -0
- package/build/contexts/DayPicker/DayPickerProvider.d.ts +12 -0
- package/build/contexts/DayPicker/DayPickerProvider.js +59 -0
- package/build/contexts/DayPicker/DayPickerProvider.js.map +1 -0
- package/build/contexts/DayPicker/defaultClassNames.d.ts +5 -0
- package/build/contexts/DayPicker/defaultClassNames.js +44 -0
- package/build/contexts/DayPicker/defaultClassNames.js.map +1 -0
- package/build/contexts/DayPicker/formatters/formatCaption.d.ts +7 -0
- package/build/contexts/DayPicker/formatters/formatCaption.js +11 -0
- package/build/contexts/DayPicker/formatters/formatCaption.js.map +1 -0
- package/build/contexts/DayPicker/formatters/formatDay.d.ts +7 -0
- package/build/contexts/DayPicker/formatters/formatDay.js +11 -0
- package/build/contexts/DayPicker/formatters/formatDay.js.map +1 -0
- package/build/contexts/DayPicker/formatters/formatMonthCaption.d.ts +7 -0
- package/build/contexts/DayPicker/formatters/formatMonthCaption.js +11 -0
- package/build/contexts/DayPicker/formatters/formatMonthCaption.js.map +1 -0
- package/build/contexts/DayPicker/formatters/formatWeekNumber.d.ts +4 -0
- package/build/contexts/DayPicker/formatters/formatWeekNumber.js +9 -0
- package/build/contexts/DayPicker/formatters/formatWeekNumber.js.map +1 -0
- package/build/contexts/DayPicker/formatters/formatWeekdayName.d.ts +7 -0
- package/build/contexts/DayPicker/formatters/formatWeekdayName.js +11 -0
- package/build/contexts/DayPicker/formatters/formatWeekdayName.js.map +1 -0
- package/build/contexts/DayPicker/formatters/formatYearCaption.d.ts +6 -0
- package/build/contexts/DayPicker/formatters/formatYearCaption.js +11 -0
- package/build/contexts/DayPicker/formatters/formatYearCaption.js.map +1 -0
- package/build/contexts/DayPicker/formatters/index.d.ts +6 -0
- package/build/contexts/DayPicker/formatters/index.js +7 -0
- package/build/contexts/DayPicker/formatters/index.js.map +1 -0
- package/build/contexts/DayPicker/index.d.ts +1 -0
- package/build/contexts/DayPicker/labels/index.d.ts +7 -0
- package/build/contexts/DayPicker/labels/index.js +8 -0
- package/build/contexts/DayPicker/labels/index.js.map +1 -0
- package/build/contexts/DayPicker/labels/labelDay.d.ts +5 -0
- package/build/contexts/DayPicker/labels/labelDay.js +11 -0
- package/build/contexts/DayPicker/labels/labelDay.js.map +1 -0
- package/build/contexts/DayPicker/labels/labelMonthDropdown.d.ts +4 -0
- package/build/contexts/DayPicker/labels/labelMonthDropdown.js +9 -0
- package/build/contexts/DayPicker/labels/labelMonthDropdown.js.map +1 -0
- package/build/contexts/DayPicker/labels/labelNext.d.ts +5 -0
- package/build/contexts/DayPicker/labels/labelNext.js +9 -0
- package/build/contexts/DayPicker/labels/labelNext.js.map +1 -0
- package/build/contexts/DayPicker/labels/labelPrevious.d.ts +5 -0
- package/build/contexts/DayPicker/labels/labelPrevious.js +9 -0
- package/build/contexts/DayPicker/labels/labelPrevious.js.map +1 -0
- package/build/contexts/DayPicker/labels/labelWeekNumber.d.ts +5 -0
- package/build/contexts/DayPicker/labels/labelWeekNumber.js +9 -0
- package/build/contexts/DayPicker/labels/labelWeekNumber.js.map +1 -0
- package/build/contexts/DayPicker/labels/labelWeekday.d.ts +5 -0
- package/build/contexts/DayPicker/labels/labelWeekday.js +11 -0
- package/build/contexts/DayPicker/labels/labelWeekday.js.map +1 -0
- package/build/contexts/DayPicker/labels/labelYearDropdown.d.ts +4 -0
- package/build/contexts/DayPicker/labels/labelYearDropdown.js +9 -0
- package/build/contexts/DayPicker/labels/labelYearDropdown.js.map +1 -0
- package/build/contexts/DayPicker/useDayPicker.d.ts +8 -0
- package/build/contexts/DayPicker/useDayPicker.js +19 -0
- package/build/contexts/DayPicker/useDayPicker.js.map +1 -0
- package/build/contexts/DayPicker/utils/index.d.ts +2 -0
- package/build/contexts/DayPicker/utils/parseFromToProps.d.ts +9 -0
- package/build/contexts/DayPicker/utils/parseFromToProps.js +29 -0
- package/build/contexts/DayPicker/utils/parseFromToProps.js.map +1 -0
- package/build/contexts/DayPicker/utils/parseModifierProps.d.ts +9 -0
- package/build/contexts/DayPicker/utils/parseModifierProps.js +53 -0
- package/build/contexts/DayPicker/utils/parseModifierProps.js.map +1 -0
- package/build/contexts/Focus/FocusContext.d.ts +26 -0
- package/build/contexts/Focus/FocusContext.js +11 -0
- package/build/contexts/Focus/FocusContext.js.map +1 -0
- package/build/contexts/Focus/FocusProvider.d.ts +5 -0
- package/build/contexts/Focus/FocusProvider.js +66 -0
- package/build/contexts/Focus/FocusProvider.js.map +1 -0
- package/build/contexts/Focus/index.d.ts +3 -0
- package/build/contexts/Focus/useFocus.d.ts +3 -0
- package/build/contexts/Focus/useFocus.js +14 -0
- package/build/contexts/Focus/useFocus.js.map +1 -0
- package/build/contexts/Navigation/NavigationContext.d.ts +20 -0
- package/build/contexts/Navigation/NavigationContext.js +11 -0
- package/build/contexts/Navigation/NavigationContext.js.map +1 -0
- package/build/contexts/Navigation/NavigationProvider.d.ts +5 -0
- package/build/contexts/Navigation/NavigationProvider.js +26 -0
- package/build/contexts/Navigation/NavigationProvider.js.map +1 -0
- package/build/contexts/Navigation/index.d.ts +3 -0
- package/build/contexts/Navigation/useNavigation.d.ts +3 -0
- package/build/contexts/Navigation/useNavigation.js +14 -0
- package/build/contexts/Navigation/useNavigation.js.map +1 -0
- package/build/contexts/Navigation/useNavigationState.d.ts +7 -0
- package/build/contexts/Navigation/useNavigationState.js +19 -0
- package/build/contexts/Navigation/useNavigationState.js.map +1 -0
- package/build/contexts/Navigation/utils/getDisplayMonths.d.ts +8 -0
- package/build/contexts/Navigation/utils/getDisplayMonths.js +23 -0
- package/build/contexts/Navigation/utils/getDisplayMonths.js.map +1 -0
- package/build/contexts/Navigation/utils/getInitialMonth.d.ts +3 -0
- package/build/contexts/Navigation/utils/getInitialMonth.js +21 -0
- package/build/contexts/Navigation/utils/getInitialMonth.js.map +1 -0
- package/build/contexts/Navigation/utils/getNextMonth.d.ts +18 -0
- package/build/contexts/Navigation/utils/getNextMonth.js +32 -0
- package/build/contexts/Navigation/utils/getNextMonth.js.map +1 -0
- package/build/contexts/Navigation/utils/getPreviousMonth.d.ts +19 -0
- package/build/contexts/Navigation/utils/getPreviousMonth.js +33 -0
- package/build/contexts/Navigation/utils/getPreviousMonth.js.map +1 -0
- package/build/contexts/SelectMultiple/SelectMultipleContext.d.ts +20 -0
- package/build/contexts/SelectMultiple/SelectMultipleContext.js +12 -0
- package/build/contexts/SelectMultiple/SelectMultipleContext.js.map +1 -0
- package/build/contexts/SelectMultiple/SelectMultipleProvider.d.ts +9 -0
- package/build/contexts/SelectMultiple/SelectMultipleProvider.js +76 -0
- package/build/contexts/SelectMultiple/SelectMultipleProvider.js.map +1 -0
- package/build/contexts/SelectMultiple/index.d.ts +3 -0
- package/build/contexts/SelectMultiple/useSelectMultiple.d.ts +3 -0
- package/build/contexts/SelectMultiple/useSelectMultiple.js +14 -0
- package/build/contexts/SelectMultiple/useSelectMultiple.js.map +1 -0
- package/build/contexts/SelectRange/SelectRangeContext.d.ts +21 -0
- package/build/contexts/SelectRange/SelectRangeContext.js +12 -0
- package/build/contexts/SelectRange/SelectRangeContext.js.map +1 -0
- package/build/contexts/SelectRange/SelectRangeProvider.d.ts +13 -0
- package/build/contexts/SelectRange/SelectRangeProvider.js +119 -0
- package/build/contexts/SelectRange/SelectRangeProvider.js.map +1 -0
- package/build/contexts/SelectRange/index.d.ts +3 -0
- package/build/contexts/SelectRange/useSelectRange.d.ts +3 -0
- package/build/contexts/SelectRange/useSelectRange.js +14 -0
- package/build/contexts/SelectRange/useSelectRange.js.map +1 -0
- package/build/contexts/SelectRange/utils/addToRange.d.ts +8 -0
- package/build/contexts/SelectRange/utils/addToRange.js +39 -0
- package/build/contexts/SelectRange/utils/addToRange.js.map +1 -0
- package/build/contexts/SelectSingle/SelectSingleContext.d.ts +21 -0
- package/build/contexts/SelectSingle/SelectSingleContext.js +12 -0
- package/build/contexts/SelectSingle/SelectSingleContext.js.map +1 -0
- package/build/contexts/SelectSingle/SelectSingleProvider.d.ts +13 -0
- package/build/contexts/SelectSingle/SelectSingleProvider.js +44 -0
- package/build/contexts/SelectSingle/SelectSingleProvider.js.map +1 -0
- package/build/contexts/SelectSingle/index.d.ts +3 -0
- package/build/contexts/SelectSingle/useSelectSingle.d.ts +3 -0
- package/build/contexts/SelectSingle/useSelectSingle.js +14 -0
- package/build/contexts/SelectSingle/useSelectSingle.js.map +1 -0
- package/build/contexts/index.d.ts +7 -0
- package/build/hooks/index.d.ts +2 -0
- package/build/hooks/useControlledValue/index.d.ts +1 -0
- package/build/hooks/useControlledValue/useControlledValue.d.ts +12 -0
- package/build/hooks/useControlledValue/useControlledValue.js +19 -0
- package/build/hooks/useControlledValue/useControlledValue.js.map +1 -0
- package/build/hooks/useInput/index.d.ts +2 -0
- package/build/hooks/useInput/types/UseInput.d.ts +12 -0
- package/build/hooks/useInput/types/UseInputDayPickerProps.d.ts +14 -0
- package/build/hooks/useInput/types/UseInputFieldProps.d.ts +12 -0
- package/build/hooks/useInput/types/UseInputOptions.d.ts +35 -0
- package/build/hooks/useInput/types/index.d.ts +4 -0
- package/build/hooks/useInput/useInput.d.ts +4 -0
- package/build/hooks/useInput/useInput.js +103 -0
- package/build/hooks/useInput/useInput.js.map +1 -0
- package/build/hooks/useInput/utils/isValidDate.d.ts +2 -0
- package/build/hooks/useInput/utils/isValidDate.js +7 -0
- package/build/hooks/useInput/utils/isValidDate.js.map +1 -0
- package/build/hooks/useModifiers/index.d.ts +1 -0
- package/build/hooks/useModifiers/types/UseModifiers.d.ts +10 -0
- package/build/hooks/useModifiers/types/index.d.ts +1 -0
- package/build/hooks/useModifiers/useModifiers.d.ts +3 -0
- package/build/hooks/useModifiers/useModifiers.js +67 -0
- package/build/hooks/useModifiers/useModifiers.js.map +1 -0
- package/build/hooks/useModifiers/utils/getModifierStatus.d.ts +7 -0
- package/build/hooks/useModifiers/utils/getModifierStatus.js +22 -0
- package/build/hooks/useModifiers/utils/getModifierStatus.js.map +1 -0
- package/build/hooks/useModifiers/utils/isDateInRange.d.ts +3 -0
- package/build/hooks/useModifiers/utils/isDateInRange.js +25 -0
- package/build/hooks/useModifiers/utils/isDateInRange.js.map +1 -0
- package/build/hooks/useModifiers/utils/isMatch.d.ts +5 -0
- package/build/hooks/useModifiers/utils/isMatch.js +50 -0
- package/build/hooks/useModifiers/utils/isMatch.js.map +1 -0
- package/build/main.d.ts +5 -0
- package/build/main.js +51 -0
- package/build/main.js.map +1 -0
- package/build/test/PageObjects.d.ts +40 -0
- package/build/test/customRender.d.ts +4 -0
- package/build/test/customRenderHook.d.ts +3 -0
- package/build/test/index.d.ts +3 -0
- package/build/test/setup.d.ts +2 -0
- package/build/types/CaptionLayout.d.ts +7 -0
- package/build/types/ClassNames.d.ts +3 -0
- package/build/types/Components.d.ts +39 -0
- package/build/types/CustomModifiers.d.ts +4 -0
- package/build/types/DateAfter.d.ts +7 -0
- package/build/types/DateBefore.d.ts +7 -0
- package/build/types/DateFormatter.d.ts +6 -0
- package/build/types/DateInterval.d.ts +8 -0
- package/build/types/DateRange.d.ts +8 -0
- package/build/types/DayClickEventHandler.d.ts +6 -0
- package/build/types/DayFocusEventHandler.d.ts +6 -0
- package/build/types/DayKeyboardEventHandler.d.ts +6 -0
- package/build/types/DayLabelFormatter.d.ts +7 -0
- package/build/types/DayMouseEventHandler.d.ts +6 -0
- package/build/types/DayOfWeekMatcher.d.ts +7 -0
- package/build/types/DayPickerBase.d.ts +238 -0
- package/build/types/DayPickerCustom.d.ts +7 -0
- package/build/types/DayPickerMultiple.d.ts +17 -0
- package/build/types/DayPickerProps.d.ts +9 -0
- package/build/types/DayPickerRange.d.ts +20 -0
- package/build/types/DayPickerSingle.d.ts +15 -0
- package/build/types/DayTouchEventHandler.d.ts +6 -0
- package/build/types/Formatters.d.ts +19 -0
- package/build/types/InternalModifier.d.ts +2 -0
- package/build/types/Labels.d.ts +17 -0
- package/build/types/Matcher.d.ts +10 -0
- package/build/types/Modifier.d.ts +5 -0
- package/build/types/ModifierClassNames.d.ts +5 -0
- package/build/types/ModifierStatus.d.ts +5 -0
- package/build/types/ModifierStyles.d.ts +4 -0
- package/build/types/Modifiers.d.ts +5 -0
- package/build/types/MonthChangeEventHandler.d.ts +4 -0
- package/build/types/NavButtonLabelFormatter.d.ts +7 -0
- package/build/types/SelectMultipleEventHandler.d.ts +12 -0
- package/build/types/SelectRangeEventHandler.d.ts +10 -0
- package/build/types/SelectSingleEventHandler.d.ts +12 -0
- package/build/types/StyledComponentProps.d.ts +10 -0
- package/build/types/StyledElement.d.ts +76 -0
- package/build/types/Styles.d.ts +4 -0
- package/build/types/WeekNumberClickEventHandler.d.ts +9 -0
- package/build/types/WeekNumberFormatter.d.ts +6 -0
- package/build/types/WeekNumberLabelFormatter.d.ts +5 -0
- package/build/types/WeekdayLabelFormatter.d.ts +4 -0
- package/build/types/index.d.ts +54 -0
- package/build/types/isArrayOfDates.d.ts +2 -0
- package/build/types/isArrayOfDates.js +9 -0
- package/build/types/isArrayOfDates.js.map +1 -0
- package/build/types/isDateAfterType.d.ts +3 -0
- package/build/types/isDateAfterType.js +7 -0
- package/build/types/isDateAfterType.js.map +1 -0
- package/build/types/isDateBeforeType.d.ts +3 -0
- package/build/types/isDateBeforeType.js +7 -0
- package/build/types/isDateBeforeType.js.map +1 -0
- package/build/types/isDateInterval.d.ts +3 -0
- package/build/types/isDateInterval.js +10 -0
- package/build/types/isDateInterval.js.map +1 -0
- package/build/types/isDateRange.d.ts +3 -0
- package/build/types/isDateRange.js +8 -0
- package/build/types/isDateRange.js.map +1 -0
- package/build/types/isDateType.d.ts +2 -0
- package/build/types/isDateType.js +9 -0
- package/build/types/isDateType.js.map +1 -0
- package/build/types/isDayOfWeekType.d.ts +3 -0
- package/build/types/isDayOfWeekType.js +7 -0
- package/build/types/isDayOfWeekType.js.map +1 -0
- package/build/types/isDayPickerCustom.d.ts +4 -0
- package/build/types/isDayPickerCustom.js +7 -0
- package/build/types/isDayPickerCustom.js.map +1 -0
- package/build/types/isDayPickerMultiple.d.ts +4 -0
- package/build/types/isDayPickerMultiple.js +7 -0
- package/build/types/isDayPickerMultiple.js.map +1 -0
- package/build/types/isDayPickerRange.d.ts +4 -0
- package/build/types/isDayPickerRange.js +7 -0
- package/build/types/isDayPickerRange.js.map +1 -0
- package/build/types/isDayPickerSingle.d.ts +4 -0
- package/build/types/isDayPickerSingle.js +7 -0
- package/build/types/isDayPickerSingle.js.map +1 -0
- package/dist/main.js +1936 -0
- package/dist/main.js.map +1 -0
- package/package.json +35 -37
- package/style.css +19 -4
- package/style.css.d.ts +36 -34
- package/dist/DayPicker.js +0 -127
- package/dist/DayPicker.js.map +0 -1
- package/dist/DayPicker.test.js +0 -51
- package/dist/DayPicker.test.js.map +0 -1
- package/dist/components/Button/Button.js +0 -52
- package/dist/components/Button/Button.js.map +0 -1
- package/dist/components/Button/Button.test.js +0 -60
- package/dist/components/Button/Button.test.js.map +0 -1
- package/dist/components/Button/ButtonProps.js +0 -3
- package/dist/components/Button/ButtonProps.js.map +0 -1
- package/dist/components/Button/index.js +0 -14
- package/dist/components/Button/index.js.map +0 -1
- package/dist/components/Caption/Caption.js +0 -73
- package/dist/components/Caption/Caption.js.map +0 -1
- package/dist/components/Caption/Caption.test.js +0 -232
- package/dist/components/Caption/Caption.test.js.map +0 -1
- package/dist/components/Caption/CaptionProps.js +0 -3
- package/dist/components/Caption/CaptionProps.js.map +0 -1
- package/dist/components/Caption/index.js +0 -15
- package/dist/components/Caption/index.js.map +0 -1
- package/dist/components/CaptionLabel/CaptionLabel.js +0 -31
- package/dist/components/CaptionLabel/CaptionLabel.js.map +0 -1
- package/dist/components/CaptionLabel/CaptionLabel.test.js +0 -49
- package/dist/components/CaptionLabel/CaptionLabel.test.js.map +0 -1
- package/dist/components/CaptionLabel/CaptionLabelProps.js +0 -3
- package/dist/components/CaptionLabel/CaptionLabelProps.js.map +0 -1
- package/dist/components/CaptionLabel/index.js +0 -15
- package/dist/components/CaptionLabel/index.js.map +0 -1
- package/dist/components/Day/Day.js +0 -137
- package/dist/components/Day/Day.js.map +0 -1
- package/dist/components/Day/Day.test.js +0 -64
- package/dist/components/Day/Day.test.js.map +0 -1
- package/dist/components/Day/DayProps.js +0 -3
- package/dist/components/Day/DayProps.js.map +0 -1
- package/dist/components/Day/hooks/useDayFocus.js +0 -66
- package/dist/components/Day/hooks/useDayFocus.js.map +0 -1
- package/dist/components/Day/index.js +0 -15
- package/dist/components/Day/index.js.map +0 -1
- package/dist/components/DayContent/DayContent.js +0 -35
- package/dist/components/DayContent/DayContent.js.map +0 -1
- package/dist/components/DayContent/DayContent.test.js +0 -11
- package/dist/components/DayContent/DayContent.test.js.map +0 -1
- package/dist/components/DayContent/DayContentProps.js +0 -3
- package/dist/components/DayContent/DayContentProps.js.map +0 -1
- package/dist/components/DayContent/index.js +0 -15
- package/dist/components/DayContent/index.js.map +0 -1
- package/dist/components/Dropdown/Dropdown.js +0 -40
- package/dist/components/Dropdown/Dropdown.js.map +0 -1
- package/dist/components/Dropdown/Dropdown.test.js +0 -13
- package/dist/components/Dropdown/Dropdown.test.js.map +0 -1
- package/dist/components/Dropdown/DropdownProps.js +0 -3
- package/dist/components/Dropdown/DropdownProps.js.map +0 -1
- package/dist/components/Dropdown/index.js +0 -15
- package/dist/components/Dropdown/index.js.map +0 -1
- package/dist/components/Footer/Footer.js +0 -35
- package/dist/components/Footer/Footer.js.map +0 -1
- package/dist/components/Footer/Footer.test.js +0 -24
- package/dist/components/Footer/Footer.test.js.map +0 -1
- package/dist/components/Footer/index.js +0 -14
- package/dist/components/Footer/index.js.map +0 -1
- package/dist/components/Head/Head.js +0 -40
- package/dist/components/Head/Head.js.map +0 -1
- package/dist/components/Head/Head.test.js +0 -13
- package/dist/components/Head/Head.test.js.map +0 -1
- package/dist/components/Head/index.js +0 -14
- package/dist/components/Head/index.js.map +0 -1
- package/dist/components/Head/utils/getWeekdays.js +0 -19
- package/dist/components/Head/utils/getWeekdays.js.map +0 -1
- package/dist/components/Head/utils/getWeekdays.test.js +0 -3
- package/dist/components/Head/utils/getWeekdays.test.js.map +0 -1
- package/dist/components/Head/utils/index.js +0 -14
- package/dist/components/Head/utils/index.js.map +0 -1
- package/dist/components/IconDropdown/IconDropdown.js +0 -43
- package/dist/components/IconDropdown/IconDropdown.js.map +0 -1
- package/dist/components/IconDropdown/IconDropdown.test.js +0 -38
- package/dist/components/IconDropdown/IconDropdown.test.js.map +0 -1
- package/dist/components/IconDropdown/index.js +0 -14
- package/dist/components/IconDropdown/index.js.map +0 -1
- package/dist/components/IconNext/IconNext.js +0 -43
- package/dist/components/IconNext/IconNext.js.map +0 -1
- package/dist/components/IconNext/IconNext.test.js +0 -38
- package/dist/components/IconNext/IconNext.test.js.map +0 -1
- package/dist/components/IconNext/index.js +0 -14
- package/dist/components/IconNext/index.js.map +0 -1
- package/dist/components/IconPrevious/IconPrevious.js +0 -43
- package/dist/components/IconPrevious/IconPrevious.js.map +0 -1
- package/dist/components/IconPrevious/IconPrevious.test.js +0 -38
- package/dist/components/IconPrevious/IconPrevious.test.js.map +0 -1
- package/dist/components/IconPrevious/index.js +0 -14
- package/dist/components/IconPrevious/index.js.map +0 -1
- package/dist/components/MonthsDropdown/MonthsDropdown.js +0 -59
- package/dist/components/MonthsDropdown/MonthsDropdown.js.map +0 -1
- package/dist/components/MonthsDropdown/MonthsDropdownProps.js +0 -3
- package/dist/components/MonthsDropdown/MonthsDropdownProps.js.map +0 -1
- package/dist/components/MonthsDropdown/index.js +0 -15
- package/dist/components/MonthsDropdown/index.js.map +0 -1
- package/dist/components/Navigation/Navigation.js +0 -57
- package/dist/components/Navigation/Navigation.js.map +0 -1
- package/dist/components/Navigation/NavigationProps.js +0 -3
- package/dist/components/Navigation/NavigationProps.js.map +0 -1
- package/dist/components/Navigation/index.js +0 -15
- package/dist/components/Navigation/index.js.map +0 -1
- package/dist/components/Root/Root.js +0 -77
- package/dist/components/Root/Root.js.map +0 -1
- package/dist/components/Root/index.js +0 -14
- package/dist/components/Root/index.js.map +0 -1
- package/dist/components/Row/Row.js +0 -42
- package/dist/components/Row/Row.js.map +0 -1
- package/dist/components/Row/RowProps.js +0 -3
- package/dist/components/Row/RowProps.js.map +0 -1
- package/dist/components/Row/index.js +0 -15
- package/dist/components/Row/index.js.map +0 -1
- package/dist/components/Table/Table.js +0 -39
- package/dist/components/Table/Table.js.map +0 -1
- package/dist/components/Table/index.js +0 -14
- package/dist/components/Table/index.js.map +0 -1
- package/dist/components/Table/utils/getOutsideEndDays.js +0 -16
- package/dist/components/Table/utils/getOutsideEndDays.js.map +0 -1
- package/dist/components/Table/utils/getOutsideStartDays.js +0 -16
- package/dist/components/Table/utils/getOutsideStartDays.js.map +0 -1
- package/dist/components/Table/utils/getWeeks.js +0 -59
- package/dist/components/Table/utils/getWeeks.js.map +0 -1
- package/dist/components/WeekNumber/WeekNumber.js +0 -44
- package/dist/components/WeekNumber/WeekNumber.js.map +0 -1
- package/dist/components/WeekNumber/index.js +0 -14
- package/dist/components/WeekNumber/index.js.map +0 -1
- package/dist/components/YearsDropdown/YearsDropdown.js +0 -48
- package/dist/components/YearsDropdown/YearsDropdown.js.map +0 -1
- package/dist/components/YearsDropdown/index.js +0 -14
- package/dist/components/YearsDropdown/index.js.map +0 -1
- package/dist/components/index.js +0 -31
- package/dist/components/index.js.map +0 -1
- package/dist/contexts/ContextProvider.js +0 -52
- package/dist/contexts/ContextProvider.js.map +0 -1
- package/dist/contexts/DayPickerContext/DayPickerContext.js +0 -33
- package/dist/contexts/DayPickerContext/DayPickerContext.js.map +0 -1
- package/dist/contexts/DayPickerContext/DayPickerContextValue.js +0 -3
- package/dist/contexts/DayPickerContext/DayPickerContextValue.js.map +0 -1
- package/dist/contexts/DayPickerContext/DayPickerProvider.js +0 -89
- package/dist/contexts/DayPickerContext/DayPickerProvider.js.map +0 -1
- package/dist/contexts/DayPickerContext/defaultClassNames.js +0 -45
- package/dist/contexts/DayPickerContext/defaultClassNames.js.map +0 -1
- package/dist/contexts/DayPickerContext/formatters/formatCaption.js +0 -12
- package/dist/contexts/DayPickerContext/formatters/formatCaption.js.map +0 -1
- package/dist/contexts/DayPickerContext/formatters/formatDay.js +0 -12
- package/dist/contexts/DayPickerContext/formatters/formatDay.js.map +0 -1
- package/dist/contexts/DayPickerContext/formatters/formatMonthCaption.js +0 -12
- package/dist/contexts/DayPickerContext/formatters/formatMonthCaption.js.map +0 -1
- package/dist/contexts/DayPickerContext/formatters/formatWeekNumber.js +0 -11
- package/dist/contexts/DayPickerContext/formatters/formatWeekNumber.js.map +0 -1
- package/dist/contexts/DayPickerContext/formatters/formatWeekdayName.js +0 -12
- package/dist/contexts/DayPickerContext/formatters/formatWeekdayName.js.map +0 -1
- package/dist/contexts/DayPickerContext/formatters/formatYearCaption.js +0 -12
- package/dist/contexts/DayPickerContext/formatters/formatYearCaption.js.map +0 -1
- package/dist/contexts/DayPickerContext/formatters/index.js +0 -19
- package/dist/contexts/DayPickerContext/formatters/index.js.map +0 -1
- package/dist/contexts/DayPickerContext/index.js +0 -18
- package/dist/contexts/DayPickerContext/index.js.map +0 -1
- package/dist/contexts/DayPickerContext/labels/index.js +0 -20
- package/dist/contexts/DayPickerContext/labels/index.js.map +0 -1
- package/dist/contexts/DayPickerContext/labels/labelDay.js +0 -12
- package/dist/contexts/DayPickerContext/labels/labelDay.js.map +0 -1
- package/dist/contexts/DayPickerContext/labels/labelMonthDropdown.js +0 -11
- package/dist/contexts/DayPickerContext/labels/labelMonthDropdown.js.map +0 -1
- package/dist/contexts/DayPickerContext/labels/labelNext.js +0 -11
- package/dist/contexts/DayPickerContext/labels/labelNext.js.map +0 -1
- package/dist/contexts/DayPickerContext/labels/labelPrevious.js +0 -11
- package/dist/contexts/DayPickerContext/labels/labelPrevious.js.map +0 -1
- package/dist/contexts/DayPickerContext/labels/labelWeekNumber.js +0 -11
- package/dist/contexts/DayPickerContext/labels/labelWeekNumber.js.map +0 -1
- package/dist/contexts/DayPickerContext/labels/labelWeekday.js +0 -12
- package/dist/contexts/DayPickerContext/labels/labelWeekday.js.map +0 -1
- package/dist/contexts/DayPickerContext/labels/labelYearDropdown.js +0 -11
- package/dist/contexts/DayPickerContext/labels/labelYearDropdown.js.map +0 -1
- package/dist/contexts/DayPickerContext/useDayPicker.js +0 -39
- package/dist/contexts/DayPickerContext/useDayPicker.js.map +0 -1
- package/dist/contexts/DayPickerContext/utils/index.js +0 -15
- package/dist/contexts/DayPickerContext/utils/index.js.map +0 -1
- package/dist/contexts/DayPickerContext/utils/parseFromToProps.js +0 -30
- package/dist/contexts/DayPickerContext/utils/parseFromToProps.js.map +0 -1
- package/dist/contexts/DayPickerContext/utils/parseModifierProps.js +0 -53
- package/dist/contexts/DayPickerContext/utils/parseModifierProps.js.map +0 -1
- package/dist/contexts/FocusContext/FocusContext.js +0 -30
- package/dist/contexts/FocusContext/FocusContext.js.map +0 -1
- package/dist/contexts/FocusContext/FocusContextValue.js +0 -3
- package/dist/contexts/FocusContext/FocusContextValue.js.map +0 -1
- package/dist/contexts/FocusContext/FocusProvider.js +0 -84
- package/dist/contexts/FocusContext/FocusProvider.js.map +0 -1
- package/dist/contexts/FocusContext/index.js +0 -17
- package/dist/contexts/FocusContext/index.js.map +0 -1
- package/dist/contexts/FocusContext/useFocus.js +0 -34
- package/dist/contexts/FocusContext/useFocus.js.map +0 -1
- package/dist/contexts/NavigationContext/NavigationContext.js +0 -30
- package/dist/contexts/NavigationContext/NavigationContext.js.map +0 -1
- package/dist/contexts/NavigationContext/NavigationContextValue.js +0 -3
- package/dist/contexts/NavigationContext/NavigationContextValue.js.map +0 -1
- package/dist/contexts/NavigationContext/NavigationProvider.js +0 -46
- package/dist/contexts/NavigationContext/NavigationProvider.js.map +0 -1
- package/dist/contexts/NavigationContext/index.js +0 -17
- package/dist/contexts/NavigationContext/index.js.map +0 -1
- package/dist/contexts/NavigationContext/useNavigation.js +0 -34
- package/dist/contexts/NavigationContext/useNavigation.js.map +0 -1
- package/dist/contexts/NavigationContext/useNavigationState.js +0 -49
- package/dist/contexts/NavigationContext/useNavigationState.js.map +0 -1
- package/dist/contexts/NavigationContext/utils/getDisplayMonths.js +0 -24
- package/dist/contexts/NavigationContext/utils/getDisplayMonths.js.map +0 -1
- package/dist/contexts/NavigationContext/utils/getInitialMonth.js +0 -22
- package/dist/contexts/NavigationContext/utils/getInitialMonth.js.map +0 -1
- package/dist/contexts/NavigationContext/utils/getInitialMonth.test.js +0 -57
- package/dist/contexts/NavigationContext/utils/getInitialMonth.test.js.map +0 -1
- package/dist/contexts/NavigationContext/utils/getNextMonth.js +0 -33
- package/dist/contexts/NavigationContext/utils/getNextMonth.js.map +0 -1
- package/dist/contexts/NavigationContext/utils/getNextMonth.test.js +0 -75
- package/dist/contexts/NavigationContext/utils/getNextMonth.test.js.map +0 -1
- package/dist/contexts/NavigationContext/utils/getPreviousMonth.js +0 -34
- package/dist/contexts/NavigationContext/utils/getPreviousMonth.js.map +0 -1
- package/dist/contexts/NavigationContext/utils/getPreviousMonth.test.js +0 -55
- package/dist/contexts/NavigationContext/utils/getPreviousMonth.test.js.map +0 -1
- package/dist/contexts/SelectMultipleContext/SelectMultipleContext.js +0 -31
- package/dist/contexts/SelectMultipleContext/SelectMultipleContext.js.map +0 -1
- package/dist/contexts/SelectMultipleContext/SelectMultipleContextValue.js +0 -3
- package/dist/contexts/SelectMultipleContext/SelectMultipleContextValue.js.map +0 -1
- package/dist/contexts/SelectMultipleContext/SelectMultipleModifiers.js +0 -3
- package/dist/contexts/SelectMultipleContext/SelectMultipleModifiers.js.map +0 -1
- package/dist/contexts/SelectMultipleContext/SelectMultipleProvider.js +0 -101
- package/dist/contexts/SelectMultipleContext/SelectMultipleProvider.js.map +0 -1
- package/dist/contexts/SelectMultipleContext/index.js +0 -18
- package/dist/contexts/SelectMultipleContext/index.js.map +0 -1
- package/dist/contexts/SelectMultipleContext/useSelectMultiple.js +0 -34
- package/dist/contexts/SelectMultipleContext/useSelectMultiple.js.map +0 -1
- package/dist/contexts/SelectRangeContext/SelectRangeContext.js +0 -31
- package/dist/contexts/SelectRangeContext/SelectRangeContext.js.map +0 -1
- package/dist/contexts/SelectRangeContext/SelectRangeContextValue.js +0 -3
- package/dist/contexts/SelectRangeContext/SelectRangeContextValue.js.map +0 -1
- package/dist/contexts/SelectRangeContext/SelectRangeModifiers.js +0 -3
- package/dist/contexts/SelectRangeContext/SelectRangeModifiers.js.map +0 -1
- package/dist/contexts/SelectRangeContext/SelectRangeProvider.js +0 -131
- package/dist/contexts/SelectRangeContext/SelectRangeProvider.js.map +0 -1
- package/dist/contexts/SelectRangeContext/index.js +0 -18
- package/dist/contexts/SelectRangeContext/index.js.map +0 -1
- package/dist/contexts/SelectRangeContext/useSelectRange.js +0 -34
- package/dist/contexts/SelectRangeContext/useSelectRange.js.map +0 -1
- package/dist/contexts/SelectRangeContext/utils/addToRange.js +0 -40
- package/dist/contexts/SelectRangeContext/utils/addToRange.js.map +0 -1
- package/dist/contexts/SelectSingleContext/SelectSingleContext.js +0 -31
- package/dist/contexts/SelectSingleContext/SelectSingleContext.js.map +0 -1
- package/dist/contexts/SelectSingleContext/SelectSingleContextValue.js +0 -3
- package/dist/contexts/SelectSingleContext/SelectSingleContextValue.js.map +0 -1
- package/dist/contexts/SelectSingleContext/SelectSingleModifiers.js +0 -3
- package/dist/contexts/SelectSingleContext/SelectSingleModifiers.js.map +0 -1
- package/dist/contexts/SelectSingleContext/SelectSingleProvider.js +0 -52
- package/dist/contexts/SelectSingleContext/SelectSingleProvider.js.map +0 -1
- package/dist/contexts/SelectSingleContext/index.js +0 -18
- package/dist/contexts/SelectSingleContext/index.js.map +0 -1
- package/dist/contexts/SelectSingleContext/useSelectSingle.js +0 -34
- package/dist/contexts/SelectSingleContext/useSelectSingle.js.map +0 -1
- package/dist/contexts/index.js +0 -20
- package/dist/contexts/index.js.map +0 -1
- package/dist/hooks/index.js +0 -15
- package/dist/hooks/index.js.map +0 -1
- package/dist/hooks/useInput/index.js +0 -15
- package/dist/hooks/useInput/index.js.map +0 -1
- package/dist/hooks/useInput/types/UseInput.js +0 -3
- package/dist/hooks/useInput/types/UseInput.js.map +0 -1
- package/dist/hooks/useInput/types/UseInputDayPickerProps.js +0 -3
- package/dist/hooks/useInput/types/UseInputDayPickerProps.js.map +0 -1
- package/dist/hooks/useInput/types/UseInputFieldProps.js +0 -3
- package/dist/hooks/useInput/types/UseInputFieldProps.js.map +0 -1
- package/dist/hooks/useInput/types/UseInputOptions.js +0 -3
- package/dist/hooks/useInput/types/UseInputOptions.js.map +0 -1
- package/dist/hooks/useInput/types/index.js +0 -17
- package/dist/hooks/useInput/types/index.js.map +0 -1
- package/dist/hooks/useInput/useInput.js +0 -123
- package/dist/hooks/useInput/useInput.js.map +0 -1
- package/dist/hooks/useInput/utils/isValidDate.js +0 -9
- package/dist/hooks/useInput/utils/isValidDate.js.map +0 -1
- package/dist/hooks/useModifiers/index.js +0 -14
- package/dist/hooks/useModifiers/index.js.map +0 -1
- package/dist/hooks/useModifiers/types/UseModifiers.js +0 -3
- package/dist/hooks/useModifiers/types/UseModifiers.js.map +0 -1
- package/dist/hooks/useModifiers/types/index.js +0 -14
- package/dist/hooks/useModifiers/types/index.js.map +0 -1
- package/dist/hooks/useModifiers/useModifiers.js +0 -70
- package/dist/hooks/useModifiers/useModifiers.js.map +0 -1
- package/dist/hooks/useModifiers/utils/getModifierStatus.js +0 -23
- package/dist/hooks/useModifiers/utils/getModifierStatus.js.map +0 -1
- package/dist/hooks/useModifiers/utils/isDateInRange.js +0 -26
- package/dist/hooks/useModifiers/utils/isDateInRange.js.map +0 -1
- package/dist/hooks/useModifiers/utils/isMatch.js +0 -45
- package/dist/hooks/useModifiers/utils/isMatch.js.map +0 -1
- package/dist/index.js +0 -18
- package/dist/index.js.map +0 -1
- package/dist/package.json +0 -3
- package/dist/test/PageObjects.js +0 -132
- package/dist/test/PageObjects.js.map +0 -1
- package/dist/test/customRender.js +0 -43
- package/dist/test/customRender.js.map +0 -1
- package/dist/test/index.js +0 -15
- package/dist/test/index.js.map +0 -1
- package/dist/test/setup.js +0 -5
- package/dist/test/setup.js.map +0 -1
- package/dist/types/CaptionLayout.js +0 -3
- package/dist/types/CaptionLayout.js.map +0 -1
- package/dist/types/ClassNames.js +0 -3
- package/dist/types/ClassNames.js.map +0 -1
- package/dist/types/Components.js +0 -3
- package/dist/types/Components.js.map +0 -1
- package/dist/types/CustomModifiers.js +0 -3
- package/dist/types/CustomModifiers.js.map +0 -1
- package/dist/types/DateAfter.js +0 -3
- package/dist/types/DateAfter.js.map +0 -1
- package/dist/types/DateBefore.js +0 -3
- package/dist/types/DateBefore.js.map +0 -1
- package/dist/types/DateFormatter.js +0 -3
- package/dist/types/DateFormatter.js.map +0 -1
- package/dist/types/DateInterval.js +0 -3
- package/dist/types/DateInterval.js.map +0 -1
- package/dist/types/DateRange.js +0 -3
- package/dist/types/DateRange.js.map +0 -1
- package/dist/types/DayClickEventHandler.js +0 -3
- package/dist/types/DayClickEventHandler.js.map +0 -1
- package/dist/types/DayFocusEventHandler.js +0 -3
- package/dist/types/DayFocusEventHandler.js.map +0 -1
- package/dist/types/DayKeyboardEventHandler.js +0 -3
- package/dist/types/DayKeyboardEventHandler.js.map +0 -1
- package/dist/types/DayLabelFormatter.js +0 -3
- package/dist/types/DayLabelFormatter.js.map +0 -1
- package/dist/types/DayMouseEventHandler.js +0 -3
- package/dist/types/DayMouseEventHandler.js.map +0 -1
- package/dist/types/DayOfWeekMatcher.js +0 -3
- package/dist/types/DayOfWeekMatcher.js.map +0 -1
- package/dist/types/DayPickerBase.js +0 -3
- package/dist/types/DayPickerBase.js.map +0 -1
- package/dist/types/DayPickerMultiple.js +0 -3
- package/dist/types/DayPickerMultiple.js.map +0 -1
- package/dist/types/DayPickerProps.js +0 -3
- package/dist/types/DayPickerProps.js.map +0 -1
- package/dist/types/DayPickerRange.js +0 -3
- package/dist/types/DayPickerRange.js.map +0 -1
- package/dist/types/DayPickerSingle.js +0 -3
- package/dist/types/DayPickerSingle.js.map +0 -1
- package/dist/types/DayPickerUncontrolled.js +0 -3
- package/dist/types/DayPickerUncontrolled.js.map +0 -1
- package/dist/types/DayTouchEventHandler.js +0 -3
- package/dist/types/DayTouchEventHandler.js.map +0 -1
- package/dist/types/Formatters.js +0 -3
- package/dist/types/Formatters.js.map +0 -1
- package/dist/types/InternalModifier.js +0 -3
- package/dist/types/InternalModifier.js.map +0 -1
- package/dist/types/Labels.js +0 -3
- package/dist/types/Labels.js.map +0 -1
- package/dist/types/Matcher.js +0 -3
- package/dist/types/Matcher.js.map +0 -1
- package/dist/types/Modifier.js +0 -3
- package/dist/types/Modifier.js.map +0 -1
- package/dist/types/ModifierClassNames.js +0 -3
- package/dist/types/ModifierClassNames.js.map +0 -1
- package/dist/types/ModifierStatus.js +0 -3
- package/dist/types/ModifierStatus.js.map +0 -1
- package/dist/types/ModifierStyles.js +0 -3
- package/dist/types/ModifierStyles.js.map +0 -1
- package/dist/types/Modifiers.js +0 -3
- package/dist/types/Modifiers.js.map +0 -1
- package/dist/types/MonthChangeEventHandler.js +0 -3
- package/dist/types/MonthChangeEventHandler.js.map +0 -1
- package/dist/types/NavButtonLabelFormatter.js +0 -3
- package/dist/types/NavButtonLabelFormatter.js.map +0 -1
- package/dist/types/SelectMultipleEventHandler.js +0 -3
- package/dist/types/SelectMultipleEventHandler.js.map +0 -1
- package/dist/types/SelectRangeEventHandler.js +0 -3
- package/dist/types/SelectRangeEventHandler.js.map +0 -1
- package/dist/types/SelectSingleEventHandler.js +0 -3
- package/dist/types/SelectSingleEventHandler.js.map +0 -1
- package/dist/types/StyledComponentProps.js +0 -3
- package/dist/types/StyledComponentProps.js.map +0 -1
- package/dist/types/StyledElement.js +0 -3
- package/dist/types/StyledElement.js.map +0 -1
- package/dist/types/Styles.js +0 -3
- package/dist/types/Styles.js.map +0 -1
- package/dist/types/WeekNumberClickEventHandler.js +0 -3
- package/dist/types/WeekNumberClickEventHandler.js.map +0 -1
- package/dist/types/WeekNumberFormatter.js +0 -3
- package/dist/types/WeekNumberFormatter.js.map +0 -1
- package/dist/types/WeekNumberLabelFormatter.js +0 -3
- package/dist/types/WeekNumberLabelFormatter.js.map +0 -1
- package/dist/types/WeekdayLabelFormatter.js +0 -3
- package/dist/types/WeekdayLabelFormatter.js.map +0 -1
- package/dist/types/index.js +0 -67
- package/dist/types/index.js.map +0 -1
- package/dist/types/isArrayOfDates.js +0 -10
- package/dist/types/isArrayOfDates.js.map +0 -1
- package/dist/types/isDateAfterType.js +0 -9
- package/dist/types/isDateAfterType.js.map +0 -1
- package/dist/types/isDateBeforeType.js +0 -9
- package/dist/types/isDateBeforeType.js.map +0 -1
- package/dist/types/isDateInterval.js +0 -12
- package/dist/types/isDateInterval.js.map +0 -1
- package/dist/types/isDateRange.js +0 -10
- package/dist/types/isDateRange.js.map +0 -1
- package/dist/types/isDateType.js +0 -10
- package/dist/types/isDateType.js.map +0 -1
- package/dist/types/isDayOfWeekType.js +0 -9
- package/dist/types/isDayOfWeekType.js.map +0 -1
- package/dist/types/isDayPickerMultiple.js +0 -9
- package/dist/types/isDayPickerMultiple.js.map +0 -1
- package/dist/types/isDayPickerRange.js +0 -9
- package/dist/types/isDayPickerRange.js.map +0 -1
- package/dist/types/isDayPickerSingle.js +0 -9
- package/dist/types/isDayPickerSingle.js.map +0 -1
- package/dist/types/isDayPickerUncontrolled.js +0 -9
- package/dist/types/isDayPickerUncontrolled.js.map +0 -1
- package/esm/DayPicker.d.ts +0 -88
- package/esm/DayPicker.js +0 -104
- package/esm/DayPicker.js.map +0 -1
- package/esm/DayPicker.test.d.ts +0 -0
- package/esm/DayPicker.test.js +0 -51
- package/esm/DayPicker.test.js.map +0 -1
- package/esm/components/Button/Button.d.ts +0 -6
- package/esm/components/Button/Button.js +0 -30
- package/esm/components/Button/Button.js.map +0 -1
- package/esm/components/Button/Button.test.d.ts +0 -1
- package/esm/components/Button/Button.test.js +0 -39
- package/esm/components/Button/Button.test.js.map +0 -1
- package/esm/components/Button/ButtonProps.d.ts +0 -3
- package/esm/components/Button/ButtonProps.js +0 -2
- package/esm/components/Button/ButtonProps.js.map +0 -1
- package/esm/components/Button/index.d.ts +0 -1
- package/esm/components/Button/index.js +0 -2
- package/esm/components/Button/index.js.map +0 -1
- package/esm/components/Caption/Caption.d.ts +0 -7
- package/esm/components/Caption/Caption.js +0 -50
- package/esm/components/Caption/Caption.js.map +0 -1
- package/esm/components/Caption/Caption.test.d.ts +0 -1
- package/esm/components/Caption/Caption.test.js +0 -208
- package/esm/components/Caption/Caption.test.js.map +0 -1
- package/esm/components/Caption/CaptionProps.d.ts +0 -5
- package/esm/components/Caption/CaptionProps.js +0 -2
- package/esm/components/Caption/CaptionProps.js.map +0 -1
- package/esm/components/Caption/index.d.ts +0 -2
- package/esm/components/Caption/index.js +0 -3
- package/esm/components/Caption/index.js.map +0 -1
- package/esm/components/CaptionLabel/CaptionLabel.d.ts +0 -4
- package/esm/components/CaptionLabel/CaptionLabel.js +0 -8
- package/esm/components/CaptionLabel/CaptionLabel.js.map +0 -1
- package/esm/components/CaptionLabel/CaptionLabel.test.d.ts +0 -1
- package/esm/components/CaptionLabel/CaptionLabel.test.js +0 -25
- package/esm/components/CaptionLabel/CaptionLabel.test.js.map +0 -1
- package/esm/components/CaptionLabel/CaptionLabelProps.d.ts +0 -5
- package/esm/components/CaptionLabel/CaptionLabelProps.js +0 -2
- package/esm/components/CaptionLabel/CaptionLabelProps.js.map +0 -1
- package/esm/components/CaptionLabel/index.d.ts +0 -2
- package/esm/components/CaptionLabel/index.js +0 -3
- package/esm/components/CaptionLabel/index.js.map +0 -1
- package/esm/components/Day/Day.d.ts +0 -7
- package/esm/components/Day/Day.js +0 -114
- package/esm/components/Day/Day.js.map +0 -1
- package/esm/components/Day/Day.test.d.ts +0 -0
- package/esm/components/Day/Day.test.js +0 -64
- package/esm/components/Day/Day.test.js.map +0 -1
- package/esm/components/Day/DayProps.d.ts +0 -7
- package/esm/components/Day/DayProps.js +0 -2
- package/esm/components/Day/DayProps.js.map +0 -1
- package/esm/components/Day/hooks/useDayFocus.d.ts +0 -8
- package/esm/components/Day/hooks/useDayFocus.js +0 -43
- package/esm/components/Day/hooks/useDayFocus.js.map +0 -1
- package/esm/components/Day/index.d.ts +0 -2
- package/esm/components/Day/index.js +0 -3
- package/esm/components/Day/index.js.map +0 -1
- package/esm/components/DayContent/DayContent.d.ts +0 -6
- package/esm/components/DayContent/DayContent.js +0 -12
- package/esm/components/DayContent/DayContent.js.map +0 -1
- package/esm/components/DayContent/DayContent.test.d.ts +0 -0
- package/esm/components/DayContent/DayContent.test.js +0 -11
- package/esm/components/DayContent/DayContent.test.js.map +0 -1
- package/esm/components/DayContent/DayContentProps.d.ts +0 -10
- package/esm/components/DayContent/DayContentProps.js +0 -2
- package/esm/components/DayContent/DayContentProps.js.map +0 -1
- package/esm/components/DayContent/index.d.ts +0 -2
- package/esm/components/DayContent/index.js +0 -3
- package/esm/components/DayContent/index.js.map +0 -1
- package/esm/components/Dropdown/Dropdown.d.ts +0 -7
- package/esm/components/Dropdown/Dropdown.js +0 -17
- package/esm/components/Dropdown/Dropdown.js.map +0 -1
- package/esm/components/Dropdown/Dropdown.test.d.ts +0 -0
- package/esm/components/Dropdown/Dropdown.test.js +0 -13
- package/esm/components/Dropdown/Dropdown.test.js.map +0 -1
- package/esm/components/Dropdown/DropdownProps.d.ts +0 -10
- package/esm/components/Dropdown/DropdownProps.js +0 -2
- package/esm/components/Dropdown/DropdownProps.js.map +0 -1
- package/esm/components/Dropdown/index.d.ts +0 -2
- package/esm/components/Dropdown/index.js +0 -3
- package/esm/components/Dropdown/index.js.map +0 -1
- package/esm/components/Footer/Footer.d.ts +0 -3
- package/esm/components/Footer/Footer.js +0 -12
- package/esm/components/Footer/Footer.js.map +0 -1
- package/esm/components/Footer/Footer.test.d.ts +0 -1
- package/esm/components/Footer/Footer.test.js +0 -19
- package/esm/components/Footer/Footer.test.js.map +0 -1
- package/esm/components/Footer/index.d.ts +0 -1
- package/esm/components/Footer/index.js +0 -2
- package/esm/components/Footer/index.js.map +0 -1
- package/esm/components/Head/Head.d.ts +0 -5
- package/esm/components/Head/Head.js +0 -17
- package/esm/components/Head/Head.js.map +0 -1
- package/esm/components/Head/Head.test.d.ts +0 -0
- package/esm/components/Head/Head.test.js +0 -13
- package/esm/components/Head/Head.test.js.map +0 -1
- package/esm/components/Head/index.d.ts +0 -1
- package/esm/components/Head/index.js +0 -2
- package/esm/components/Head/index.js.map +0 -1
- package/esm/components/Head/utils/getWeekdays.d.ts +0 -6
- package/esm/components/Head/utils/getWeekdays.js +0 -15
- package/esm/components/Head/utils/getWeekdays.js.map +0 -1
- package/esm/components/Head/utils/getWeekdays.test.d.ts +0 -0
- package/esm/components/Head/utils/getWeekdays.test.js +0 -3
- package/esm/components/Head/utils/getWeekdays.test.js.map +0 -1
- package/esm/components/Head/utils/index.d.ts +0 -1
- package/esm/components/Head/utils/index.js +0 -2
- package/esm/components/Head/utils/index.js.map +0 -1
- package/esm/components/IconDropdown/IconDropdown.d.ts +0 -6
- package/esm/components/IconDropdown/IconDropdown.js +0 -20
- package/esm/components/IconDropdown/IconDropdown.js.map +0 -1
- package/esm/components/IconDropdown/IconDropdown.test.d.ts +0 -1
- package/esm/components/IconDropdown/IconDropdown.test.js +0 -17
- package/esm/components/IconDropdown/IconDropdown.test.js.map +0 -1
- package/esm/components/IconDropdown/index.d.ts +0 -1
- package/esm/components/IconDropdown/index.js +0 -2
- package/esm/components/IconDropdown/index.js.map +0 -1
- package/esm/components/IconNext/IconNext.d.ts +0 -6
- package/esm/components/IconNext/IconNext.js +0 -20
- package/esm/components/IconNext/IconNext.js.map +0 -1
- package/esm/components/IconNext/IconNext.test.d.ts +0 -1
- package/esm/components/IconNext/IconNext.test.js +0 -17
- package/esm/components/IconNext/IconNext.test.js.map +0 -1
- package/esm/components/IconNext/index.d.ts +0 -1
- package/esm/components/IconNext/index.js +0 -2
- package/esm/components/IconNext/index.js.map +0 -1
- package/esm/components/IconPrevious/IconPrevious.d.ts +0 -6
- package/esm/components/IconPrevious/IconPrevious.js +0 -20
- package/esm/components/IconPrevious/IconPrevious.js.map +0 -1
- package/esm/components/IconPrevious/IconPrevious.test.d.ts +0 -1
- package/esm/components/IconPrevious/IconPrevious.test.js +0 -17
- package/esm/components/IconPrevious/IconPrevious.test.js.map +0 -1
- package/esm/components/IconPrevious/index.d.ts +0 -1
- package/esm/components/IconPrevious/index.js +0 -2
- package/esm/components/IconPrevious/index.js.map +0 -1
- package/esm/components/MonthsDropdown/MonthsDropdown.d.ts +0 -6
- package/esm/components/MonthsDropdown/MonthsDropdown.js +0 -36
- package/esm/components/MonthsDropdown/MonthsDropdown.js.map +0 -1
- package/esm/components/MonthsDropdown/MonthsDropdownProps.d.ts +0 -7
- package/esm/components/MonthsDropdown/MonthsDropdownProps.js +0 -2
- package/esm/components/MonthsDropdown/MonthsDropdownProps.js.map +0 -1
- package/esm/components/MonthsDropdown/index.d.ts +0 -2
- package/esm/components/MonthsDropdown/index.js +0 -3
- package/esm/components/MonthsDropdown/index.js.map +0 -1
- package/esm/components/Navigation/Navigation.d.ts +0 -4
- package/esm/components/Navigation/Navigation.js +0 -34
- package/esm/components/Navigation/Navigation.js.map +0 -1
- package/esm/components/Navigation/NavigationProps.d.ts +0 -18
- package/esm/components/Navigation/NavigationProps.js +0 -2
- package/esm/components/Navigation/NavigationProps.js.map +0 -1
- package/esm/components/Navigation/index.d.ts +0 -2
- package/esm/components/Navigation/index.js +0 -3
- package/esm/components/Navigation/index.js.map +0 -1
- package/esm/components/Root/Root.d.ts +0 -6
- package/esm/components/Root/Root.js +0 -54
- package/esm/components/Root/Root.js.map +0 -1
- package/esm/components/Root/index.d.ts +0 -1
- package/esm/components/Root/index.js +0 -2
- package/esm/components/Root/index.js.map +0 -1
- package/esm/components/Row/Row.d.ts +0 -6
- package/esm/components/Row/Row.js +0 -19
- package/esm/components/Row/Row.js.map +0 -1
- package/esm/components/Row/RowProps.d.ts +0 -11
- package/esm/components/Row/RowProps.js +0 -2
- package/esm/components/Row/RowProps.js.map +0 -1
- package/esm/components/Row/index.d.ts +0 -2
- package/esm/components/Row/index.js +0 -3
- package/esm/components/Row/index.js.map +0 -1
- package/esm/components/Table/Table.d.ts +0 -12
- package/esm/components/Table/Table.js +0 -16
- package/esm/components/Table/Table.js.map +0 -1
- package/esm/components/Table/index.d.ts +0 -1
- package/esm/components/Table/index.js +0 -2
- package/esm/components/Table/index.js.map +0 -1
- package/esm/components/Table/utils/getOutsideEndDays.d.ts +0 -3
- package/esm/components/Table/utils/getOutsideEndDays.js +0 -12
- package/esm/components/Table/utils/getOutsideEndDays.js.map +0 -1
- package/esm/components/Table/utils/getOutsideStartDays.d.ts +0 -4
- package/esm/components/Table/utils/getOutsideStartDays.js +0 -12
- package/esm/components/Table/utils/getOutsideStartDays.js.map +0 -1
- package/esm/components/Table/utils/getWeeks.d.ts +0 -15
- package/esm/components/Table/utils/getWeeks.js +0 -55
- package/esm/components/Table/utils/getWeeks.js.map +0 -1
- package/esm/components/WeekNumber/WeekNumber.d.ts +0 -15
- package/esm/components/WeekNumber/WeekNumber.js +0 -21
- package/esm/components/WeekNumber/WeekNumber.js.map +0 -1
- package/esm/components/WeekNumber/index.d.ts +0 -1
- package/esm/components/WeekNumber/index.js +0 -2
- package/esm/components/WeekNumber/index.js.map +0 -1
- package/esm/components/YearsDropdown/YearsDropdown.d.ts +0 -16
- package/esm/components/YearsDropdown/YearsDropdown.js +0 -25
- package/esm/components/YearsDropdown/YearsDropdown.js.map +0 -1
- package/esm/components/YearsDropdown/index.d.ts +0 -1
- package/esm/components/YearsDropdown/index.js +0 -2
- package/esm/components/YearsDropdown/index.js.map +0 -1
- package/esm/components/index.d.ts +0 -18
- package/esm/components/index.js +0 -19
- package/esm/components/index.js.map +0 -1
- package/esm/contexts/ContextProvider.d.ts +0 -8
- package/esm/contexts/ContextProvider.js +0 -29
- package/esm/contexts/ContextProvider.js.map +0 -1
- package/esm/contexts/DayPickerContext/DayPickerContext.d.ts +0 -78
- package/esm/contexts/DayPickerContext/DayPickerContext.js +0 -11
- package/esm/contexts/DayPickerContext/DayPickerContext.js.map +0 -1
- package/esm/contexts/DayPickerContext/DayPickerContextValue.d.ts +0 -20
- package/esm/contexts/DayPickerContext/DayPickerContextValue.js +0 -2
- package/esm/contexts/DayPickerContext/DayPickerContextValue.js.map +0 -1
- package/esm/contexts/DayPickerContext/DayPickerProvider.d.ts +0 -12
- package/esm/contexts/DayPickerContext/DayPickerProvider.js +0 -63
- package/esm/contexts/DayPickerContext/DayPickerProvider.js.map +0 -1
- package/esm/contexts/DayPickerContext/defaultClassNames.d.ts +0 -5
- package/esm/contexts/DayPickerContext/defaultClassNames.js +0 -42
- package/esm/contexts/DayPickerContext/defaultClassNames.js.map +0 -1
- package/esm/contexts/DayPickerContext/formatters/formatCaption.d.ts +0 -7
- package/esm/contexts/DayPickerContext/formatters/formatCaption.js +0 -8
- package/esm/contexts/DayPickerContext/formatters/formatCaption.js.map +0 -1
- package/esm/contexts/DayPickerContext/formatters/formatDay.d.ts +0 -7
- package/esm/contexts/DayPickerContext/formatters/formatDay.js +0 -8
- package/esm/contexts/DayPickerContext/formatters/formatDay.js.map +0 -1
- package/esm/contexts/DayPickerContext/formatters/formatMonthCaption.d.ts +0 -7
- package/esm/contexts/DayPickerContext/formatters/formatMonthCaption.js +0 -8
- package/esm/contexts/DayPickerContext/formatters/formatMonthCaption.js.map +0 -1
- package/esm/contexts/DayPickerContext/formatters/formatWeekNumber.d.ts +0 -4
- package/esm/contexts/DayPickerContext/formatters/formatWeekNumber.js +0 -7
- package/esm/contexts/DayPickerContext/formatters/formatWeekNumber.js.map +0 -1
- package/esm/contexts/DayPickerContext/formatters/formatWeekdayName.d.ts +0 -7
- package/esm/contexts/DayPickerContext/formatters/formatWeekdayName.js +0 -8
- package/esm/contexts/DayPickerContext/formatters/formatWeekdayName.js.map +0 -1
- package/esm/contexts/DayPickerContext/formatters/formatYearCaption.d.ts +0 -6
- package/esm/contexts/DayPickerContext/formatters/formatYearCaption.js +0 -8
- package/esm/contexts/DayPickerContext/formatters/formatYearCaption.js.map +0 -1
- package/esm/contexts/DayPickerContext/formatters/index.d.ts +0 -6
- package/esm/contexts/DayPickerContext/formatters/index.js +0 -7
- package/esm/contexts/DayPickerContext/formatters/index.js.map +0 -1
- package/esm/contexts/DayPickerContext/index.d.ts +0 -5
- package/esm/contexts/DayPickerContext/index.js +0 -6
- package/esm/contexts/DayPickerContext/index.js.map +0 -1
- package/esm/contexts/DayPickerContext/labels/index.d.ts +0 -7
- package/esm/contexts/DayPickerContext/labels/index.js +0 -8
- package/esm/contexts/DayPickerContext/labels/index.js.map +0 -1
- package/esm/contexts/DayPickerContext/labels/labelDay.d.ts +0 -5
- package/esm/contexts/DayPickerContext/labels/labelDay.js +0 -8
- package/esm/contexts/DayPickerContext/labels/labelDay.js.map +0 -1
- package/esm/contexts/DayPickerContext/labels/labelMonthDropdown.d.ts +0 -4
- package/esm/contexts/DayPickerContext/labels/labelMonthDropdown.js +0 -7
- package/esm/contexts/DayPickerContext/labels/labelMonthDropdown.js.map +0 -1
- package/esm/contexts/DayPickerContext/labels/labelNext.d.ts +0 -5
- package/esm/contexts/DayPickerContext/labels/labelNext.js +0 -7
- package/esm/contexts/DayPickerContext/labels/labelNext.js.map +0 -1
- package/esm/contexts/DayPickerContext/labels/labelPrevious.d.ts +0 -5
- package/esm/contexts/DayPickerContext/labels/labelPrevious.js +0 -7
- package/esm/contexts/DayPickerContext/labels/labelPrevious.js.map +0 -1
- package/esm/contexts/DayPickerContext/labels/labelWeekNumber.d.ts +0 -5
- package/esm/contexts/DayPickerContext/labels/labelWeekNumber.js +0 -7
- package/esm/contexts/DayPickerContext/labels/labelWeekNumber.js.map +0 -1
- package/esm/contexts/DayPickerContext/labels/labelWeekday.d.ts +0 -5
- package/esm/contexts/DayPickerContext/labels/labelWeekday.js +0 -8
- package/esm/contexts/DayPickerContext/labels/labelWeekday.js.map +0 -1
- package/esm/contexts/DayPickerContext/labels/labelYearDropdown.d.ts +0 -4
- package/esm/contexts/DayPickerContext/labels/labelYearDropdown.js +0 -7
- package/esm/contexts/DayPickerContext/labels/labelYearDropdown.js.map +0 -1
- package/esm/contexts/DayPickerContext/useDayPicker.d.ts +0 -8
- package/esm/contexts/DayPickerContext/useDayPicker.js +0 -16
- package/esm/contexts/DayPickerContext/useDayPicker.js.map +0 -1
- package/esm/contexts/DayPickerContext/utils/index.d.ts +0 -2
- package/esm/contexts/DayPickerContext/utils/index.js +0 -3
- package/esm/contexts/DayPickerContext/utils/index.js.map +0 -1
- package/esm/contexts/DayPickerContext/utils/parseFromToProps.d.ts +0 -9
- package/esm/contexts/DayPickerContext/utils/parseFromToProps.js +0 -26
- package/esm/contexts/DayPickerContext/utils/parseFromToProps.js.map +0 -1
- package/esm/contexts/DayPickerContext/utils/parseModifierProps.d.ts +0 -9
- package/esm/contexts/DayPickerContext/utils/parseModifierProps.js +0 -49
- package/esm/contexts/DayPickerContext/utils/parseModifierProps.js.map +0 -1
- package/esm/contexts/FocusContext/FocusContext.d.ts +0 -8
- package/esm/contexts/FocusContext/FocusContext.js +0 -8
- package/esm/contexts/FocusContext/FocusContext.js.map +0 -1
- package/esm/contexts/FocusContext/FocusContextValue.d.ts +0 -19
- package/esm/contexts/FocusContext/FocusContextValue.js +0 -2
- package/esm/contexts/FocusContext/FocusContextValue.js.map +0 -1
- package/esm/contexts/FocusContext/FocusProvider.d.ts +0 -5
- package/esm/contexts/FocusContext/FocusProvider.js +0 -61
- package/esm/contexts/FocusContext/FocusProvider.js.map +0 -1
- package/esm/contexts/FocusContext/index.d.ts +0 -4
- package/esm/contexts/FocusContext/index.js +0 -5
- package/esm/contexts/FocusContext/index.js.map +0 -1
- package/esm/contexts/FocusContext/useFocus.d.ts +0 -3
- package/esm/contexts/FocusContext/useFocus.js +0 -11
- package/esm/contexts/FocusContext/useFocus.js.map +0 -1
- package/esm/contexts/NavigationContext/NavigationContext.d.ts +0 -8
- package/esm/contexts/NavigationContext/NavigationContext.js +0 -8
- package/esm/contexts/NavigationContext/NavigationContext.js.map +0 -1
- package/esm/contexts/NavigationContext/NavigationContextValue.d.ts +0 -13
- package/esm/contexts/NavigationContext/NavigationContextValue.js +0 -2
- package/esm/contexts/NavigationContext/NavigationContextValue.js.map +0 -1
- package/esm/contexts/NavigationContext/NavigationProvider.d.ts +0 -5
- package/esm/contexts/NavigationContext/NavigationProvider.js +0 -23
- package/esm/contexts/NavigationContext/NavigationProvider.js.map +0 -1
- package/esm/contexts/NavigationContext/index.d.ts +0 -4
- package/esm/contexts/NavigationContext/index.js +0 -5
- package/esm/contexts/NavigationContext/index.js.map +0 -1
- package/esm/contexts/NavigationContext/useNavigation.d.ts +0 -3
- package/esm/contexts/NavigationContext/useNavigation.js +0 -11
- package/esm/contexts/NavigationContext/useNavigation.js.map +0 -1
- package/esm/contexts/NavigationContext/useNavigationState.d.ts +0 -7
- package/esm/contexts/NavigationContext/useNavigationState.js +0 -26
- package/esm/contexts/NavigationContext/useNavigationState.js.map +0 -1
- package/esm/contexts/NavigationContext/utils/getDisplayMonths.d.ts +0 -8
- package/esm/contexts/NavigationContext/utils/getDisplayMonths.js +0 -20
- package/esm/contexts/NavigationContext/utils/getDisplayMonths.js.map +0 -1
- package/esm/contexts/NavigationContext/utils/getInitialMonth.d.ts +0 -3
- package/esm/contexts/NavigationContext/utils/getInitialMonth.js +0 -18
- package/esm/contexts/NavigationContext/utils/getInitialMonth.js.map +0 -1
- package/esm/contexts/NavigationContext/utils/getInitialMonth.test.d.ts +0 -1
- package/esm/contexts/NavigationContext/utils/getInitialMonth.test.js +0 -55
- package/esm/contexts/NavigationContext/utils/getInitialMonth.test.js.map +0 -1
- package/esm/contexts/NavigationContext/utils/getNextMonth.d.ts +0 -18
- package/esm/contexts/NavigationContext/utils/getNextMonth.js +0 -29
- package/esm/contexts/NavigationContext/utils/getNextMonth.js.map +0 -1
- package/esm/contexts/NavigationContext/utils/getNextMonth.test.d.ts +0 -1
- package/esm/contexts/NavigationContext/utils/getNextMonth.test.js +0 -73
- package/esm/contexts/NavigationContext/utils/getNextMonth.test.js.map +0 -1
- package/esm/contexts/NavigationContext/utils/getPreviousMonth.d.ts +0 -19
- package/esm/contexts/NavigationContext/utils/getPreviousMonth.js +0 -30
- package/esm/contexts/NavigationContext/utils/getPreviousMonth.js.map +0 -1
- package/esm/contexts/NavigationContext/utils/getPreviousMonth.test.d.ts +0 -1
- package/esm/contexts/NavigationContext/utils/getPreviousMonth.test.js +0 -53
- package/esm/contexts/NavigationContext/utils/getPreviousMonth.test.js.map +0 -1
- package/esm/contexts/SelectMultipleContext/SelectMultipleContext.d.ts +0 -9
- package/esm/contexts/SelectMultipleContext/SelectMultipleContext.js +0 -9
- package/esm/contexts/SelectMultipleContext/SelectMultipleContext.js.map +0 -1
- package/esm/contexts/SelectMultipleContext/SelectMultipleContextValue.d.ts +0 -13
- package/esm/contexts/SelectMultipleContext/SelectMultipleContextValue.js +0 -2
- package/esm/contexts/SelectMultipleContext/SelectMultipleContextValue.js.map +0 -1
- package/esm/contexts/SelectMultipleContext/SelectMultipleModifiers.d.ts +0 -3
- package/esm/contexts/SelectMultipleContext/SelectMultipleModifiers.js +0 -2
- package/esm/contexts/SelectMultipleContext/SelectMultipleModifiers.js.map +0 -1
- package/esm/contexts/SelectMultipleContext/SelectMultipleProvider.d.ts +0 -7
- package/esm/contexts/SelectMultipleContext/SelectMultipleProvider.js +0 -78
- package/esm/contexts/SelectMultipleContext/SelectMultipleProvider.js.map +0 -1
- package/esm/contexts/SelectMultipleContext/index.d.ts +0 -5
- package/esm/contexts/SelectMultipleContext/index.js +0 -6
- package/esm/contexts/SelectMultipleContext/index.js.map +0 -1
- package/esm/contexts/SelectMultipleContext/useSelectMultiple.d.ts +0 -3
- package/esm/contexts/SelectMultipleContext/useSelectMultiple.js +0 -11
- package/esm/contexts/SelectMultipleContext/useSelectMultiple.js.map +0 -1
- package/esm/contexts/SelectRangeContext/SelectRangeContext.d.ts +0 -9
- package/esm/contexts/SelectRangeContext/SelectRangeContext.js +0 -9
- package/esm/contexts/SelectRangeContext/SelectRangeContext.js.map +0 -1
- package/esm/contexts/SelectRangeContext/SelectRangeContextValue.d.ts +0 -13
- package/esm/contexts/SelectRangeContext/SelectRangeContextValue.js +0 -2
- package/esm/contexts/SelectRangeContext/SelectRangeContextValue.js.map +0 -1
- package/esm/contexts/SelectRangeContext/SelectRangeModifiers.d.ts +0 -3
- package/esm/contexts/SelectRangeContext/SelectRangeModifiers.js +0 -2
- package/esm/contexts/SelectRangeContext/SelectRangeModifiers.js.map +0 -1
- package/esm/contexts/SelectRangeContext/SelectRangeProvider.d.ts +0 -7
- package/esm/contexts/SelectRangeContext/SelectRangeProvider.js +0 -108
- package/esm/contexts/SelectRangeContext/SelectRangeProvider.js.map +0 -1
- package/esm/contexts/SelectRangeContext/index.d.ts +0 -5
- package/esm/contexts/SelectRangeContext/index.js +0 -6
- package/esm/contexts/SelectRangeContext/index.js.map +0 -1
- package/esm/contexts/SelectRangeContext/useSelectRange.d.ts +0 -3
- package/esm/contexts/SelectRangeContext/useSelectRange.js +0 -11
- package/esm/contexts/SelectRangeContext/useSelectRange.js.map +0 -1
- package/esm/contexts/SelectRangeContext/utils/addToRange.d.ts +0 -8
- package/esm/contexts/SelectRangeContext/utils/addToRange.js +0 -36
- package/esm/contexts/SelectRangeContext/utils/addToRange.js.map +0 -1
- package/esm/contexts/SelectSingleContext/SelectSingleContext.d.ts +0 -9
- package/esm/contexts/SelectSingleContext/SelectSingleContext.js +0 -9
- package/esm/contexts/SelectSingleContext/SelectSingleContext.js.map +0 -1
- package/esm/contexts/SelectSingleContext/SelectSingleContextValue.d.ts +0 -11
- package/esm/contexts/SelectSingleContext/SelectSingleContextValue.js +0 -2
- package/esm/contexts/SelectSingleContext/SelectSingleContextValue.js.map +0 -1
- package/esm/contexts/SelectSingleContext/SelectSingleModifiers.d.ts +0 -3
- package/esm/contexts/SelectSingleContext/SelectSingleModifiers.js +0 -2
- package/esm/contexts/SelectSingleContext/SelectSingleModifiers.js.map +0 -1
- package/esm/contexts/SelectSingleContext/SelectSingleProvider.d.ts +0 -7
- package/esm/contexts/SelectSingleContext/SelectSingleProvider.js +0 -29
- package/esm/contexts/SelectSingleContext/SelectSingleProvider.js.map +0 -1
- package/esm/contexts/SelectSingleContext/index.d.ts +0 -5
- package/esm/contexts/SelectSingleContext/index.js +0 -6
- package/esm/contexts/SelectSingleContext/index.js.map +0 -1
- package/esm/contexts/SelectSingleContext/useSelectSingle.d.ts +0 -3
- package/esm/contexts/SelectSingleContext/useSelectSingle.js +0 -11
- package/esm/contexts/SelectSingleContext/useSelectSingle.js.map +0 -1
- package/esm/contexts/index.d.ts +0 -7
- package/esm/contexts/index.js +0 -8
- package/esm/contexts/index.js.map +0 -1
- package/esm/hooks/index.d.ts +0 -2
- package/esm/hooks/index.js +0 -3
- package/esm/hooks/index.js.map +0 -1
- package/esm/hooks/useInput/index.d.ts +0 -2
- package/esm/hooks/useInput/index.js +0 -3
- package/esm/hooks/useInput/index.js.map +0 -1
- package/esm/hooks/useInput/types/UseInput.d.ts +0 -12
- package/esm/hooks/useInput/types/UseInput.js +0 -2
- package/esm/hooks/useInput/types/UseInput.js.map +0 -1
- package/esm/hooks/useInput/types/UseInputDayPickerProps.d.ts +0 -14
- package/esm/hooks/useInput/types/UseInputDayPickerProps.js +0 -2
- package/esm/hooks/useInput/types/UseInputDayPickerProps.js.map +0 -1
- package/esm/hooks/useInput/types/UseInputFieldProps.d.ts +0 -12
- package/esm/hooks/useInput/types/UseInputFieldProps.js +0 -2
- package/esm/hooks/useInput/types/UseInputFieldProps.js.map +0 -1
- package/esm/hooks/useInput/types/UseInputOptions.d.ts +0 -35
- package/esm/hooks/useInput/types/UseInputOptions.js +0 -2
- package/esm/hooks/useInput/types/UseInputOptions.js.map +0 -1
- package/esm/hooks/useInput/types/index.d.ts +0 -4
- package/esm/hooks/useInput/types/index.js +0 -5
- package/esm/hooks/useInput/types/index.js.map +0 -1
- package/esm/hooks/useInput/useInput.d.ts +0 -4
- package/esm/hooks/useInput/useInput.js +0 -100
- package/esm/hooks/useInput/useInput.js.map +0 -1
- package/esm/hooks/useInput/utils/isValidDate.d.ts +0 -2
- package/esm/hooks/useInput/utils/isValidDate.js +0 -5
- package/esm/hooks/useInput/utils/isValidDate.js.map +0 -1
- package/esm/hooks/useModifiers/index.d.ts +0 -1
- package/esm/hooks/useModifiers/index.js +0 -2
- package/esm/hooks/useModifiers/index.js.map +0 -1
- package/esm/hooks/useModifiers/types/UseModifiers.d.ts +0 -10
- package/esm/hooks/useModifiers/types/UseModifiers.js +0 -2
- package/esm/hooks/useModifiers/types/UseModifiers.js.map +0 -1
- package/esm/hooks/useModifiers/types/index.d.ts +0 -1
- package/esm/hooks/useModifiers/types/index.js +0 -2
- package/esm/hooks/useModifiers/types/index.js.map +0 -1
- package/esm/hooks/useModifiers/useModifiers.d.ts +0 -3
- package/esm/hooks/useModifiers/useModifiers.js +0 -66
- package/esm/hooks/useModifiers/useModifiers.js.map +0 -1
- package/esm/hooks/useModifiers/utils/getModifierStatus.d.ts +0 -7
- package/esm/hooks/useModifiers/utils/getModifierStatus.js +0 -19
- package/esm/hooks/useModifiers/utils/getModifierStatus.js.map +0 -1
- package/esm/hooks/useModifiers/utils/isDateInRange.d.ts +0 -3
- package/esm/hooks/useModifiers/utils/isDateInRange.js +0 -22
- package/esm/hooks/useModifiers/utils/isDateInRange.js.map +0 -1
- package/esm/hooks/useModifiers/utils/isMatch.d.ts +0 -5
- package/esm/hooks/useModifiers/utils/isMatch.js +0 -41
- package/esm/hooks/useModifiers/utils/isMatch.js.map +0 -1
- package/esm/index.d.ts +0 -5
- package/esm/index.js +0 -6
- package/esm/index.js.map +0 -1
- package/esm/test/PageObjects.d.ts +0 -40
- package/esm/test/PageObjects.js +0 -129
- package/esm/test/PageObjects.js.map +0 -1
- package/esm/test/customRender.d.ts +0 -5
- package/esm/test/customRender.js +0 -20
- package/esm/test/customRender.js.map +0 -1
- package/esm/test/index.d.ts +0 -2
- package/esm/test/index.js +0 -3
- package/esm/test/index.js.map +0 -1
- package/esm/test/setup.d.ts +0 -2
- package/esm/test/setup.js +0 -3
- package/esm/test/setup.js.map +0 -1
- package/esm/types/CaptionLayout.d.ts +0 -7
- package/esm/types/CaptionLayout.js +0 -2
- package/esm/types/CaptionLayout.js.map +0 -1
- package/esm/types/ClassNames.d.ts +0 -3
- package/esm/types/ClassNames.js +0 -2
- package/esm/types/ClassNames.js.map +0 -1
- package/esm/types/Components.d.ts +0 -33
- package/esm/types/Components.js +0 -2
- package/esm/types/Components.js.map +0 -1
- package/esm/types/CustomModifiers.d.ts +0 -4
- package/esm/types/CustomModifiers.js +0 -2
- package/esm/types/CustomModifiers.js.map +0 -1
- package/esm/types/DateAfter.d.ts +0 -7
- package/esm/types/DateAfter.js +0 -2
- package/esm/types/DateAfter.js.map +0 -1
- package/esm/types/DateBefore.d.ts +0 -7
- package/esm/types/DateBefore.js +0 -2
- package/esm/types/DateBefore.js.map +0 -1
- package/esm/types/DateFormatter.d.ts +0 -6
- package/esm/types/DateFormatter.js +0 -2
- package/esm/types/DateFormatter.js.map +0 -1
- package/esm/types/DateInterval.d.ts +0 -8
- package/esm/types/DateInterval.js +0 -2
- package/esm/types/DateInterval.js.map +0 -1
- package/esm/types/DateRange.d.ts +0 -8
- package/esm/types/DateRange.js +0 -2
- package/esm/types/DateRange.js.map +0 -1
- package/esm/types/DayClickEventHandler.d.ts +0 -6
- package/esm/types/DayClickEventHandler.js +0 -2
- package/esm/types/DayClickEventHandler.js.map +0 -1
- package/esm/types/DayFocusEventHandler.d.ts +0 -6
- package/esm/types/DayFocusEventHandler.js +0 -2
- package/esm/types/DayFocusEventHandler.js.map +0 -1
- package/esm/types/DayKeyboardEventHandler.d.ts +0 -6
- package/esm/types/DayKeyboardEventHandler.js +0 -2
- package/esm/types/DayKeyboardEventHandler.js.map +0 -1
- package/esm/types/DayLabelFormatter.d.ts +0 -7
- package/esm/types/DayLabelFormatter.js +0 -2
- package/esm/types/DayLabelFormatter.js.map +0 -1
- package/esm/types/DayMouseEventHandler.d.ts +0 -6
- package/esm/types/DayMouseEventHandler.js +0 -2
- package/esm/types/DayMouseEventHandler.js.map +0 -1
- package/esm/types/DayOfWeekMatcher.d.ts +0 -7
- package/esm/types/DayOfWeekMatcher.js +0 -2
- package/esm/types/DayOfWeekMatcher.js.map +0 -1
- package/esm/types/DayPickerBase.d.ts +0 -269
- package/esm/types/DayPickerBase.js +0 -2
- package/esm/types/DayPickerBase.js.map +0 -1
- package/esm/types/DayPickerMultiple.d.ts +0 -15
- package/esm/types/DayPickerMultiple.js +0 -2
- package/esm/types/DayPickerMultiple.js.map +0 -1
- package/esm/types/DayPickerProps.d.ts +0 -9
- package/esm/types/DayPickerProps.js +0 -2
- package/esm/types/DayPickerProps.js.map +0 -1
- package/esm/types/DayPickerRange.d.ts +0 -16
- package/esm/types/DayPickerRange.js +0 -2
- package/esm/types/DayPickerRange.js.map +0 -1
- package/esm/types/DayPickerSingle.d.ts +0 -13
- package/esm/types/DayPickerSingle.js +0 -2
- package/esm/types/DayPickerSingle.js.map +0 -1
- package/esm/types/DayPickerUncontrolled.d.ts +0 -7
- package/esm/types/DayPickerUncontrolled.js +0 -2
- package/esm/types/DayPickerUncontrolled.js.map +0 -1
- package/esm/types/DayTouchEventHandler.d.ts +0 -6
- package/esm/types/DayTouchEventHandler.js +0 -2
- package/esm/types/DayTouchEventHandler.js.map +0 -1
- package/esm/types/Formatters.d.ts +0 -19
- package/esm/types/Formatters.js +0 -2
- package/esm/types/Formatters.js.map +0 -1
- package/esm/types/InternalModifier.d.ts +0 -2
- package/esm/types/InternalModifier.js +0 -2
- package/esm/types/InternalModifier.js.map +0 -1
- package/esm/types/Labels.d.ts +0 -17
- package/esm/types/Labels.js +0 -2
- package/esm/types/Labels.js.map +0 -1
- package/esm/types/Matcher.d.ts +0 -10
- package/esm/types/Matcher.js +0 -2
- package/esm/types/Matcher.js.map +0 -1
- package/esm/types/Modifier.d.ts +0 -5
- package/esm/types/Modifier.js +0 -2
- package/esm/types/Modifier.js.map +0 -1
- package/esm/types/ModifierClassNames.d.ts +0 -5
- package/esm/types/ModifierClassNames.js +0 -2
- package/esm/types/ModifierClassNames.js.map +0 -1
- package/esm/types/ModifierStatus.d.ts +0 -5
- package/esm/types/ModifierStatus.js +0 -2
- package/esm/types/ModifierStatus.js.map +0 -1
- package/esm/types/ModifierStyles.d.ts +0 -4
- package/esm/types/ModifierStyles.js +0 -2
- package/esm/types/ModifierStyles.js.map +0 -1
- package/esm/types/Modifiers.d.ts +0 -5
- package/esm/types/Modifiers.js +0 -2
- package/esm/types/Modifiers.js.map +0 -1
- package/esm/types/MonthChangeEventHandler.d.ts +0 -4
- package/esm/types/MonthChangeEventHandler.js +0 -2
- package/esm/types/MonthChangeEventHandler.js.map +0 -1
- package/esm/types/NavButtonLabelFormatter.d.ts +0 -7
- package/esm/types/NavButtonLabelFormatter.js +0 -2
- package/esm/types/NavButtonLabelFormatter.js.map +0 -1
- package/esm/types/SelectMultipleEventHandler.d.ts +0 -12
- package/esm/types/SelectMultipleEventHandler.js +0 -2
- package/esm/types/SelectMultipleEventHandler.js.map +0 -1
- package/esm/types/SelectRangeEventHandler.d.ts +0 -10
- package/esm/types/SelectRangeEventHandler.js +0 -2
- package/esm/types/SelectRangeEventHandler.js.map +0 -1
- package/esm/types/SelectSingleEventHandler.d.ts +0 -12
- package/esm/types/SelectSingleEventHandler.js +0 -2
- package/esm/types/SelectSingleEventHandler.js.map +0 -1
- package/esm/types/StyledComponentProps.d.ts +0 -8
- package/esm/types/StyledComponentProps.js +0 -2
- package/esm/types/StyledComponentProps.js.map +0 -1
- package/esm/types/StyledElement.d.ts +0 -76
- package/esm/types/StyledElement.js +0 -2
- package/esm/types/StyledElement.js.map +0 -1
- package/esm/types/Styles.d.ts +0 -4
- package/esm/types/Styles.js +0 -2
- package/esm/types/Styles.js.map +0 -1
- package/esm/types/WeekNumberClickEventHandler.d.ts +0 -9
- package/esm/types/WeekNumberClickEventHandler.js +0 -2
- package/esm/types/WeekNumberClickEventHandler.js.map +0 -1
- package/esm/types/WeekNumberFormatter.d.ts +0 -6
- package/esm/types/WeekNumberFormatter.js +0 -2
- package/esm/types/WeekNumberFormatter.js.map +0 -1
- package/esm/types/WeekNumberLabelFormatter.d.ts +0 -5
- package/esm/types/WeekNumberLabelFormatter.js +0 -2
- package/esm/types/WeekNumberLabelFormatter.js.map +0 -1
- package/esm/types/WeekdayLabelFormatter.d.ts +0 -4
- package/esm/types/WeekdayLabelFormatter.js +0 -2
- package/esm/types/WeekdayLabelFormatter.js.map +0 -1
- package/esm/types/index.d.ts +0 -54
- package/esm/types/index.js +0 -55
- package/esm/types/index.js.map +0 -1
- package/esm/types/isArrayOfDates.d.ts +0 -2
- package/esm/types/isArrayOfDates.js +0 -6
- package/esm/types/isArrayOfDates.js.map +0 -1
- package/esm/types/isDateAfterType.d.ts +0 -3
- package/esm/types/isDateAfterType.js +0 -5
- package/esm/types/isDateAfterType.js.map +0 -1
- package/esm/types/isDateBeforeType.d.ts +0 -3
- package/esm/types/isDateBeforeType.js +0 -5
- package/esm/types/isDateBeforeType.js.map +0 -1
- package/esm/types/isDateInterval.d.ts +0 -3
- package/esm/types/isDateInterval.js +0 -8
- package/esm/types/isDateInterval.js.map +0 -1
- package/esm/types/isDateRange.d.ts +0 -3
- package/esm/types/isDateRange.js +0 -6
- package/esm/types/isDateRange.js.map +0 -1
- package/esm/types/isDateType.d.ts +0 -2
- package/esm/types/isDateType.js +0 -6
- package/esm/types/isDateType.js.map +0 -1
- package/esm/types/isDayOfWeekType.d.ts +0 -3
- package/esm/types/isDayOfWeekType.js +0 -5
- package/esm/types/isDayOfWeekType.js.map +0 -1
- package/esm/types/isDayPickerMultiple.d.ts +0 -4
- package/esm/types/isDayPickerMultiple.js +0 -5
- package/esm/types/isDayPickerMultiple.js.map +0 -1
- package/esm/types/isDayPickerRange.d.ts +0 -4
- package/esm/types/isDayPickerRange.js +0 -5
- package/esm/types/isDayPickerRange.js.map +0 -1
- package/esm/types/isDayPickerSingle.d.ts +0 -4
- package/esm/types/isDayPickerSingle.js +0 -5
- package/esm/types/isDayPickerSingle.js.map +0 -1
- package/esm/types/isDayPickerUncontrolled.d.ts +0 -4
- package/esm/types/isDayPickerUncontrolled.js +0 -5
- package/esm/types/isDayPickerUncontrolled.js.map +0 -1
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { CaptionProps } from './CaptionProps';
|
|
3
|
-
/**
|
|
4
|
-
* Render the caption of a month, which includes title and navigation buttons.
|
|
5
|
-
* The caption has a different layout when setting the `numberOfMonths` prop.
|
|
6
|
-
*/
|
|
7
|
-
export declare function Caption(props: CaptionProps): JSX.Element;
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { isSameMonth } from 'date-fns';
|
|
3
|
-
import { MonthsDropdown, Navigation, YearsDropdown } from '..';
|
|
4
|
-
import { useDayPicker, useNavigation } from '../../contexts';
|
|
5
|
-
/**
|
|
6
|
-
* Render the caption of a month, which includes title and navigation buttons.
|
|
7
|
-
* The caption has a different layout when setting the `numberOfMonths` prop.
|
|
8
|
-
*/
|
|
9
|
-
export function Caption(props) {
|
|
10
|
-
var _a;
|
|
11
|
-
var displayMonth = props.displayMonth;
|
|
12
|
-
var context = useDayPicker();
|
|
13
|
-
var classNames = context.classNames, numberOfMonths = context.numberOfMonths, disableNavigation = context.disableNavigation, styles = context.styles, captionLayout = context.captionLayout, onMonthChange = context.onMonthChange, dir = context.dir, CaptionLabel = context.components.CaptionLabel;
|
|
14
|
-
var _b = useNavigation(), previousMonth = _b.previousMonth, nextMonth = _b.nextMonth, goToMonth = _b.goToMonth, displayMonths = _b.displayMonths;
|
|
15
|
-
var handlePreviousClick = function (e) {
|
|
16
|
-
if (!previousMonth)
|
|
17
|
-
return;
|
|
18
|
-
goToMonth(previousMonth);
|
|
19
|
-
onMonthChange === null || onMonthChange === void 0 ? void 0 : onMonthChange(previousMonth);
|
|
20
|
-
};
|
|
21
|
-
var handleNextClick = function (e) {
|
|
22
|
-
if (!nextMonth)
|
|
23
|
-
return;
|
|
24
|
-
goToMonth(nextMonth);
|
|
25
|
-
onMonthChange === null || onMonthChange === void 0 ? void 0 : onMonthChange(nextMonth);
|
|
26
|
-
};
|
|
27
|
-
var handleMonthChange = function (newMonth) {
|
|
28
|
-
goToMonth(newMonth);
|
|
29
|
-
onMonthChange === null || onMonthChange === void 0 ? void 0 : onMonthChange(newMonth);
|
|
30
|
-
};
|
|
31
|
-
var displayIndex = displayMonths.findIndex(function (month) {
|
|
32
|
-
return isSameMonth(displayMonth, month);
|
|
33
|
-
});
|
|
34
|
-
var isFirst = displayIndex === 0;
|
|
35
|
-
var isLast = displayIndex === displayMonths.length - 1;
|
|
36
|
-
if (dir === 'rtl') {
|
|
37
|
-
_a = [isFirst, isLast], isLast = _a[0], isFirst = _a[1];
|
|
38
|
-
}
|
|
39
|
-
var captionLabel = React.createElement(CaptionLabel, { displayMonth: displayMonth });
|
|
40
|
-
var hideNext = numberOfMonths > 1 && (isFirst || !isLast);
|
|
41
|
-
var hidePrevious = numberOfMonths > 1 && (isLast || !isFirst);
|
|
42
|
-
return (React.createElement("div", { className: classNames.caption, style: styles.caption },
|
|
43
|
-
disableNavigation && captionLabel,
|
|
44
|
-
!disableNavigation && (React.createElement(React.Fragment, null, captionLayout === 'dropdown' ? (React.createElement("div", { className: classNames.caption_dropdowns, style: styles.caption_dropdowns },
|
|
45
|
-
React.createElement(MonthsDropdown, { onChange: handleMonthChange, displayMonth: displayMonth }),
|
|
46
|
-
React.createElement(YearsDropdown, { onChange: handleMonthChange, displayMonth: displayMonth }))) : (React.createElement(React.Fragment, null,
|
|
47
|
-
React.createElement(CaptionLabel, { displayMonth: displayMonth }),
|
|
48
|
-
React.createElement(Navigation, { displayMonth: displayMonth, hideNext: hideNext, hidePrevious: hidePrevious, nextMonth: nextMonth, previousMonth: previousMonth, onPreviousClick: handlePreviousClick, onNextClick: handleNextClick })))))));
|
|
49
|
-
}
|
|
50
|
-
//# sourceMappingURL=Caption.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Caption.js","sourceRoot":"","sources":["../../../src/components/Caption/Caption.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAEvC,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AACvE,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,UAAU,C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1
|
-
export {};
|
|
@@ -1,208 +0,0 @@
|
|
|
1
|
-
var __assign = (this && this.__assign) || function () {
|
|
2
|
-
__assign = Object.assign || function(t) {
|
|
3
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
-
s = arguments[i];
|
|
5
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
-
t[p] = s[p];
|
|
7
|
-
}
|
|
8
|
-
return t;
|
|
9
|
-
};
|
|
10
|
-
return __assign.apply(this, arguments);
|
|
11
|
-
};
|
|
12
|
-
import * as React from 'react';
|
|
13
|
-
import { addMonths, setMonth, setYear } from 'date-fns';
|
|
14
|
-
import tk from 'timekeeper';
|
|
15
|
-
import { customRender, PageObjects } from '../../test';
|
|
16
|
-
import { Caption } from './Caption';
|
|
17
|
-
var today = new Date(2021, 8);
|
|
18
|
-
var po = new PageObjects(today);
|
|
19
|
-
var fromYear = 2020;
|
|
20
|
-
var toYear = 2025;
|
|
21
|
-
beforeEach(function () { return tk.freeze(today); });
|
|
22
|
-
afterEach(function () { return tk.reset(); });
|
|
23
|
-
describe('when navigation is disabled', function () {
|
|
24
|
-
beforeEach(function () {
|
|
25
|
-
customRender(React.createElement(Caption, { displayMonth: today }), {
|
|
26
|
-
disableNavigation: true
|
|
27
|
-
});
|
|
28
|
-
});
|
|
29
|
-
test('should display the caption label', function () {
|
|
30
|
-
expect(po.getCaptionLabel(today)).toBeInTheDocument();
|
|
31
|
-
});
|
|
32
|
-
test('should not render the drop-downs', function () {
|
|
33
|
-
expect(po.monthDropdown).toBeNull();
|
|
34
|
-
expect(po.yearDropdown).toBeNull();
|
|
35
|
-
});
|
|
36
|
-
test('should not render the navigation', function () {
|
|
37
|
-
expect(po.previousButton).toBeNull();
|
|
38
|
-
expect(po.nextButton).toBeNull();
|
|
39
|
-
});
|
|
40
|
-
});
|
|
41
|
-
describe('when the caption layout is "dropdown"', function () {
|
|
42
|
-
var container;
|
|
43
|
-
beforeEach(function () {
|
|
44
|
-
var context = {
|
|
45
|
-
captionLayout: 'dropdown',
|
|
46
|
-
fromYear: fromYear,
|
|
47
|
-
toYear: toYear,
|
|
48
|
-
classNames: { caption_dropdowns: 'foo_dropdowns' },
|
|
49
|
-
styles: { caption_dropdowns: { color: 'red' } }
|
|
50
|
-
};
|
|
51
|
-
var result = customRender(React.createElement(Caption, { displayMonth: today }), context);
|
|
52
|
-
container = result.container;
|
|
53
|
-
});
|
|
54
|
-
test('should use the `caption_dropdowns` class name', function () {
|
|
55
|
-
var _a;
|
|
56
|
-
expect((_a = container.firstChild) === null || _a === void 0 ? void 0 : _a.firstChild).toHaveClass('foo_dropdowns');
|
|
57
|
-
});
|
|
58
|
-
test('should use the `caption_dropdowns` style', function () {
|
|
59
|
-
var _a;
|
|
60
|
-
expect((_a = container.firstChild) === null || _a === void 0 ? void 0 : _a.firstChild).toHaveStyle({ color: 'red' });
|
|
61
|
-
});
|
|
62
|
-
test('should render the month drop-down', function () {
|
|
63
|
-
expect(po.monthDropdown).toBeInTheDocument();
|
|
64
|
-
});
|
|
65
|
-
test('should render the year drop-down', function () {
|
|
66
|
-
expect(po.yearDropdown).toBeInTheDocument();
|
|
67
|
-
});
|
|
68
|
-
});
|
|
69
|
-
describe('when a month is selected', function () {
|
|
70
|
-
var context;
|
|
71
|
-
beforeEach(function () {
|
|
72
|
-
context = {
|
|
73
|
-
captionLayout: 'dropdown',
|
|
74
|
-
fromYear: fromYear,
|
|
75
|
-
toYear: toYear,
|
|
76
|
-
onMonthChange: jest.fn()
|
|
77
|
-
};
|
|
78
|
-
customRender(React.createElement(Caption, { displayMonth: today }), context);
|
|
79
|
-
});
|
|
80
|
-
describe('from the months drop-down', function () {
|
|
81
|
-
var newMonth = setMonth(today, 0);
|
|
82
|
-
beforeEach(function () { return po.runSelectMonth(newMonth); });
|
|
83
|
-
test('should call the `onMonthChange` callback', function () {
|
|
84
|
-
expect(context.onMonthChange).toHaveBeenCalledWith(newMonth);
|
|
85
|
-
});
|
|
86
|
-
});
|
|
87
|
-
describe('from the years drop-down', function () {
|
|
88
|
-
var newMonth = setYear(today, 2022);
|
|
89
|
-
beforeEach(function () { return po.runSelectYear(newMonth); });
|
|
90
|
-
test('should call the `onMonthChange` callback', function () {
|
|
91
|
-
expect(context.onMonthChange).toHaveBeenCalledWith(newMonth);
|
|
92
|
-
});
|
|
93
|
-
});
|
|
94
|
-
});
|
|
95
|
-
describe('when the caption layout is "dropdown" but no date limits are set', function () {
|
|
96
|
-
beforeEach(function () {
|
|
97
|
-
var context = {
|
|
98
|
-
captionLayout: 'dropdown'
|
|
99
|
-
};
|
|
100
|
-
customRender(React.createElement(Caption, { displayMonth: today }), context);
|
|
101
|
-
});
|
|
102
|
-
test('should not render the drop-downs', function () {
|
|
103
|
-
expect(po.monthDropdown).toBeNull();
|
|
104
|
-
expect(po.yearDropdown).toBeNull();
|
|
105
|
-
});
|
|
106
|
-
});
|
|
107
|
-
describe('when the caption layout is "buttons"', function () {
|
|
108
|
-
var context = {
|
|
109
|
-
captionLayout: 'buttons'
|
|
110
|
-
};
|
|
111
|
-
test('should render the caption label', function () {
|
|
112
|
-
customRender(React.createElement(Caption, { displayMonth: today }), context);
|
|
113
|
-
expect(po.getCaptionLabel(today)).toBeInTheDocument();
|
|
114
|
-
});
|
|
115
|
-
test('should render the next month button', function () {
|
|
116
|
-
customRender(React.createElement(Caption, { displayMonth: today }), context);
|
|
117
|
-
expect(po.nextButton).toBeInTheDocument();
|
|
118
|
-
});
|
|
119
|
-
test('should render the previous month button', function () {
|
|
120
|
-
customRender(React.createElement(Caption, { displayMonth: today }), context);
|
|
121
|
-
expect(po.previousButton).toBeInTheDocument();
|
|
122
|
-
});
|
|
123
|
-
describe('when displaying the first of multiple months', function () {
|
|
124
|
-
var numberOfMonths = 3;
|
|
125
|
-
beforeEach(function () {
|
|
126
|
-
customRender(React.createElement(Caption, { displayMonth: today }), __assign(__assign({}, context), { numberOfMonths: numberOfMonths }));
|
|
127
|
-
});
|
|
128
|
-
test('should hide the next month button', function () {
|
|
129
|
-
expect(po.nextButton).toBeNull();
|
|
130
|
-
});
|
|
131
|
-
test('should show the previous month button', function () {
|
|
132
|
-
expect(po.previousButton).toBeInTheDocument();
|
|
133
|
-
});
|
|
134
|
-
});
|
|
135
|
-
describe('when displaying the last of multiple months', function () {
|
|
136
|
-
var numberOfMonths = 3;
|
|
137
|
-
beforeEach(function () {
|
|
138
|
-
var lastMonth = addMonths(today, numberOfMonths - 1);
|
|
139
|
-
customRender(React.createElement(Caption, { displayMonth: lastMonth }), __assign(__assign({}, context), { numberOfMonths: numberOfMonths }));
|
|
140
|
-
});
|
|
141
|
-
test('should hide the previous month button', function () {
|
|
142
|
-
expect(po.previousButton).toBeNull();
|
|
143
|
-
});
|
|
144
|
-
test('should show the next month button', function () {
|
|
145
|
-
expect(po.nextButton).toBeInTheDocument();
|
|
146
|
-
});
|
|
147
|
-
});
|
|
148
|
-
describe('when displaying a month in the middle of multiple months', function () {
|
|
149
|
-
var numberOfMonths = 3;
|
|
150
|
-
beforeEach(function () {
|
|
151
|
-
var lastMonth = addMonths(today, numberOfMonths - 2);
|
|
152
|
-
customRender(React.createElement(Caption, { displayMonth: lastMonth }), __assign(__assign({}, context), { numberOfMonths: numberOfMonths }));
|
|
153
|
-
});
|
|
154
|
-
test('should not render the previous month button', function () {
|
|
155
|
-
expect(po.previousButton).toBeNull();
|
|
156
|
-
});
|
|
157
|
-
test('should not render the next month button', function () {
|
|
158
|
-
expect(po.nextButton).toBeNull();
|
|
159
|
-
});
|
|
160
|
-
});
|
|
161
|
-
describe('when clicking the previous button', function () {
|
|
162
|
-
describe('and a previous month is defined', function () {
|
|
163
|
-
var testContext = __assign(__assign({}, context), { onMonthChange: jest.fn() });
|
|
164
|
-
var previousMonth = addMonths(today, -1);
|
|
165
|
-
beforeEach(function () {
|
|
166
|
-
customRender(React.createElement(Caption, { displayMonth: today }), testContext);
|
|
167
|
-
po.runPreviousClick();
|
|
168
|
-
});
|
|
169
|
-
test('should call the `onMonthChange` callback', function () {
|
|
170
|
-
expect(testContext.onMonthChange).toHaveBeenCalledWith(previousMonth);
|
|
171
|
-
});
|
|
172
|
-
});
|
|
173
|
-
describe('and the previous month is not defined', function () {
|
|
174
|
-
var testContext = __assign(__assign({}, context), { fromDate: today, onMonthChange: jest.fn() });
|
|
175
|
-
beforeEach(function () {
|
|
176
|
-
customRender(React.createElement(Caption, { displayMonth: today }), testContext);
|
|
177
|
-
po.runPreviousClick();
|
|
178
|
-
});
|
|
179
|
-
test('should call the `onMonthChange` callback', function () {
|
|
180
|
-
expect(testContext.onMonthChange).not.toHaveBeenCalled();
|
|
181
|
-
});
|
|
182
|
-
});
|
|
183
|
-
});
|
|
184
|
-
describe('when clicking the next month button', function () {
|
|
185
|
-
describe('and the next month is defined', function () {
|
|
186
|
-
var testContext = __assign(__assign({}, context), { onMonthChange: jest.fn() });
|
|
187
|
-
var nextMonth = addMonths(today, 1);
|
|
188
|
-
beforeEach(function () {
|
|
189
|
-
customRender(React.createElement(Caption, { displayMonth: today }), testContext);
|
|
190
|
-
po.runNextClick();
|
|
191
|
-
});
|
|
192
|
-
test('should call the `onMonthChange` callback', function () {
|
|
193
|
-
expect(testContext.onMonthChange).toHaveBeenCalledWith(nextMonth);
|
|
194
|
-
});
|
|
195
|
-
});
|
|
196
|
-
describe('and the next month is not defined', function () {
|
|
197
|
-
var testContext = __assign(__assign({}, context), { toDate: today, onMonthChange: jest.fn() });
|
|
198
|
-
beforeEach(function () {
|
|
199
|
-
customRender(React.createElement(Caption, { displayMonth: today }), testContext);
|
|
200
|
-
po.runNextClick();
|
|
201
|
-
});
|
|
202
|
-
test('should call the `onMonthChange` callback', function () {
|
|
203
|
-
expect(testContext.onMonthChange).not.toHaveBeenCalled();
|
|
204
|
-
});
|
|
205
|
-
});
|
|
206
|
-
});
|
|
207
|
-
});
|
|
208
|
-
//# sourceMappingURL=Caption.test.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Caption.test.js","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3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Caption/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { CaptionLabelProps } from './CaptionLabelProps';
|
|
3
|
-
/** Render the caption for the displayed month. This component is used when `captionLayout="buttons"`. */
|
|
4
|
-
export declare function CaptionLabel(props: CaptionLabelProps): JSX.Element;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { useDayPicker } from '../../contexts';
|
|
3
|
-
/** Render the caption for the displayed month. This component is used when `captionLayout="buttons"`. */
|
|
4
|
-
export function CaptionLabel(props) {
|
|
5
|
-
var _a = useDayPicker(), locale = _a.locale, classNames = _a.classNames, styles = _a.styles, formatCaption = _a.formatters.formatCaption;
|
|
6
|
-
return (React.createElement("div", { key: "caption", className: classNames.caption_label, style: styles.caption_label, "aria-live": "polite", "aria-atomic": "true" }, formatCaption(props.displayMonth, { locale: locale })));
|
|
7
|
-
}
|
|
8
|
-
//# sourceMappingURL=CaptionLabel.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CaptionLabel.js","sourceRoot":"","sources":["../../../src/components/CaptionLabel/CaptionLabel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAGxC,yGAAyG;AACzG,MAAM,UAAU,YAAY,CAAC,KAAwB;IAC7C,IAAA,KAKF,YAAY,EAAE,EAJhB,MAAM,YAAA,EACN,UAAU,gBAAA,EACV,MAAM,YAAA,EACQ,aAAa,8BACX,CAAC;IACnB,OAAO,CACL,6BACE,GAAG,EAAC,SAAS,EACb,SAAS,EAAE,UAAU,CAAC,aAAa,EACnC,KAAK,EAAE,MAAM,CAAC,aAAa,eACjB,QAAQ,iBACN,MAAM,IAEjB,aAAa,CAAC,KAAK,CAAC,YAAY,EAAE,EAAE,MAAM,QAAA,EAAE,CAAC,CAC1C,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import tk from 'timekeeper';
|
|
3
|
-
import { customRender, PageObjects } from '../../test';
|
|
4
|
-
import { CaptionLabel } from './CaptionLabel';
|
|
5
|
-
var today = new Date(1979, 8);
|
|
6
|
-
var po = new PageObjects(today);
|
|
7
|
-
beforeEach(function () { return tk.freeze(today); });
|
|
8
|
-
afterEach(function () { return tk.reset(); });
|
|
9
|
-
test('should render the formatted display month', function () {
|
|
10
|
-
customRender(React.createElement(CaptionLabel, { displayMonth: today }));
|
|
11
|
-
expect(po.getCaptionLabel(today)).toBeInTheDocument();
|
|
12
|
-
});
|
|
13
|
-
test('should apply the `caption_label` class name', function () {
|
|
14
|
-
customRender(React.createElement(CaptionLabel, { displayMonth: today }), {
|
|
15
|
-
classNames: { caption_label: 'foo' }
|
|
16
|
-
});
|
|
17
|
-
expect(po.getCaptionLabel(today)).toHaveClass('foo');
|
|
18
|
-
});
|
|
19
|
-
test('should apply the `caption_label` style', function () {
|
|
20
|
-
customRender(React.createElement(CaptionLabel, { displayMonth: today }), {
|
|
21
|
-
styles: { caption_label: { color: 'red' } }
|
|
22
|
-
});
|
|
23
|
-
expect(po.getCaptionLabel(today)).toHaveStyle({ color: 'red' });
|
|
24
|
-
});
|
|
25
|
-
//# sourceMappingURL=CaptionLabel.test.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CaptionLabel.test.js","sourceRoot":"","sources":["../../../src/components/CaptionLabel/CaptionLabel.test.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,MAAM,YAAY,CAAC;AAE5B,OAAO,EAAE,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AC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CaptionLabelProps.js","sourceRoot":"","sources":["../../../src/components/CaptionLabel/CaptionLabelProps.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/CaptionLabel/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC"}
|
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
var __assign = (this && this.__assign) || function () {
|
|
2
|
-
__assign = Object.assign || function(t) {
|
|
3
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
-
s = arguments[i];
|
|
5
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
-
t[p] = s[p];
|
|
7
|
-
}
|
|
8
|
-
return t;
|
|
9
|
-
};
|
|
10
|
-
return __assign.apply(this, arguments);
|
|
11
|
-
};
|
|
12
|
-
import * as React from 'react';
|
|
13
|
-
import { isSameMonth } from 'date-fns';
|
|
14
|
-
import { Button } from '..';
|
|
15
|
-
import { useDayPicker, useSelectMultiple, useSelectRange, useSelectSingle } from '../../contexts';
|
|
16
|
-
import { useModifiers } from '../../hooks';
|
|
17
|
-
import { isDayPickerMultiple, isDayPickerRange, isDayPickerSingle } from '../../types';
|
|
18
|
-
import { useDayFocus } from './hooks/useDayFocus';
|
|
19
|
-
/**
|
|
20
|
-
* The content of a day cell – as a button or span element according to its
|
|
21
|
-
* modifiers.
|
|
22
|
-
*/
|
|
23
|
-
export function Day(props) {
|
|
24
|
-
var buttonRef = React.useRef(null);
|
|
25
|
-
var date = props.date, displayMonth = props.displayMonth;
|
|
26
|
-
var context = useDayPicker();
|
|
27
|
-
var single = useSelectSingle();
|
|
28
|
-
var multiple = useSelectMultiple();
|
|
29
|
-
var range = useSelectRange();
|
|
30
|
-
var _a = useDayFocus(date, buttonRef), focus = _a.focus, blur = _a.blur, focusOnKeyDown = _a.focusOnKeyDown, isFocused = _a.isFocused;
|
|
31
|
-
var _b = useModifiers(date), modifiers = _b.modifiers, modifierClassNames = _b.modifierClassNames, modifierStyle = _b.modifierStyle;
|
|
32
|
-
if (modifiers.hidden)
|
|
33
|
-
return React.createElement(React.Fragment, null);
|
|
34
|
-
var DayContent = context.components.DayContent, showOutsideDays = context.showOutsideDays;
|
|
35
|
-
// #region Event handlers
|
|
36
|
-
var handleClick = function (e) {
|
|
37
|
-
var _a, _b, _c, _d;
|
|
38
|
-
if (isDayPickerSingle(context)) {
|
|
39
|
-
(_a = single.handleDayClick) === null || _a === void 0 ? void 0 : _a.call(single, date, modifiers, e);
|
|
40
|
-
}
|
|
41
|
-
else if (isDayPickerMultiple(context)) {
|
|
42
|
-
(_b = multiple.handleDayClick) === null || _b === void 0 ? void 0 : _b.call(multiple, date, modifiers, e);
|
|
43
|
-
}
|
|
44
|
-
else if (isDayPickerRange(context)) {
|
|
45
|
-
(_c = range.handleDayClick) === null || _c === void 0 ? void 0 : _c.call(range, date, modifiers, e);
|
|
46
|
-
}
|
|
47
|
-
(_d = context.onDayClick) === null || _d === void 0 ? void 0 : _d.call(context, date, modifiers, e);
|
|
48
|
-
};
|
|
49
|
-
var handleFocus = function (e) {
|
|
50
|
-
var _a;
|
|
51
|
-
focus(date);
|
|
52
|
-
(_a = context.onDayFocus) === null || _a === void 0 ? void 0 : _a.call(context, date, modifiers, e);
|
|
53
|
-
};
|
|
54
|
-
var handleBlur = function (e) {
|
|
55
|
-
var _a;
|
|
56
|
-
blur();
|
|
57
|
-
(_a = context.onDayBlur) === null || _a === void 0 ? void 0 : _a.call(context, date, modifiers, e);
|
|
58
|
-
};
|
|
59
|
-
var handleKeyDown = function (e) {
|
|
60
|
-
var _a;
|
|
61
|
-
focusOnKeyDown(e);
|
|
62
|
-
(_a = context.onDayKeyDown) === null || _a === void 0 ? void 0 : _a.call(context, date, modifiers, e);
|
|
63
|
-
};
|
|
64
|
-
var handleKeyUp = function (e) {
|
|
65
|
-
var _a;
|
|
66
|
-
(_a = context.onDayKeyUp) === null || _a === void 0 ? void 0 : _a.call(context, date, modifiers, e);
|
|
67
|
-
};
|
|
68
|
-
var handleMouseEnter = function (e) {
|
|
69
|
-
var _a;
|
|
70
|
-
(_a = context.onDayMouseEnter) === null || _a === void 0 ? void 0 : _a.call(context, date, modifiers, e);
|
|
71
|
-
};
|
|
72
|
-
var handleMouseLeave = function (e) {
|
|
73
|
-
var _a;
|
|
74
|
-
(_a = context.onDayMouseLeave) === null || _a === void 0 ? void 0 : _a.call(context, date, modifiers, e);
|
|
75
|
-
};
|
|
76
|
-
var handleTouchCancel = function (e) {
|
|
77
|
-
var _a;
|
|
78
|
-
(_a = context.onDayTouchCancel) === null || _a === void 0 ? void 0 : _a.call(context, date, modifiers, e);
|
|
79
|
-
};
|
|
80
|
-
var handleTouchEnd = function (e) {
|
|
81
|
-
var _a;
|
|
82
|
-
(_a = context.onDayTouchEnd) === null || _a === void 0 ? void 0 : _a.call(context, date, modifiers, e);
|
|
83
|
-
};
|
|
84
|
-
var handleTouchMove = function (e) {
|
|
85
|
-
var _a;
|
|
86
|
-
(_a = context.onDayTouchMove) === null || _a === void 0 ? void 0 : _a.call(context, date, modifiers, e);
|
|
87
|
-
};
|
|
88
|
-
var handleTouchStart = function (e) {
|
|
89
|
-
var _a;
|
|
90
|
-
(_a = context.onDayTouchStart) === null || _a === void 0 ? void 0 : _a.call(context, date, modifiers, e);
|
|
91
|
-
};
|
|
92
|
-
// #endregion
|
|
93
|
-
var isOutside = !isSameMonth(date, displayMonth);
|
|
94
|
-
if (isOutside && !showOutsideDays)
|
|
95
|
-
return React.createElement(React.Fragment, null);
|
|
96
|
-
var classNames = [context.classNames.day].concat(modifierClassNames);
|
|
97
|
-
var style = __assign(__assign({}, context.styles.day), modifierStyle);
|
|
98
|
-
if (isOutside) {
|
|
99
|
-
classNames.push(context.classNames.day_outside);
|
|
100
|
-
style = __assign(__assign({}, context.styles), context.styles.day_outside);
|
|
101
|
-
}
|
|
102
|
-
var dayContent = (React.createElement(DayContent, { date: date, displayMonth: displayMonth, modifiers: modifiers }));
|
|
103
|
-
var className = classNames.join(' ');
|
|
104
|
-
var isControlled = isDayPickerSingle(context) ||
|
|
105
|
-
isDayPickerMultiple(context) ||
|
|
106
|
-
isDayPickerRange(context);
|
|
107
|
-
if (!isControlled && !context.onDayClick) {
|
|
108
|
-
return (React.createElement("div", { style: style, className: className }, dayContent));
|
|
109
|
-
}
|
|
110
|
-
var selected = modifiers.selected, disabled = modifiers.disabled;
|
|
111
|
-
var tabIndex = disabled || isFocused ? -1 : 0;
|
|
112
|
-
return (React.createElement(Button, { ref: buttonRef, "aria-pressed": selected, style: style, disabled: disabled, className: className, tabIndex: tabIndex, onClick: handleClick, onFocus: handleFocus, onBlur: handleBlur, onKeyDown: handleKeyDown, onKeyUp: handleKeyUp, onMouseEnter: handleMouseEnter, onMouseLeave: handleMouseLeave, onTouchCancel: handleTouchCancel, onTouchEnd: handleTouchEnd, onTouchMove: handleTouchMove, onTouchStart: handleTouchStart }, dayContent));
|
|
113
|
-
}
|
|
114
|
-
//# sourceMappingURL=Day.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Day.js","sourceRoot":"","sources":["../../../src/components/Day/Day.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAEvC,OAAO,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AACpC,OAAO,EACL,YAAY,EACZ,iBAAiB,EACjB,cAAc,EACd,eAAe,EAChB,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AACrC,OAAO,EACL,mBAAmB,EACnB,gBAAgB,EAChB,iBAAiB,EAClB,MAAM,OAAO,CAAC;AAEf,OAAO,EAAE,WAAW,EAAE,M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AC5B,gBAAgB,CAAC,OAAO,CAAC,CAAC;IAE5B,IAAI,CAAC,YAAY,IAAI,CAAC,OAAO,CAAC,UAAU,EAAE;QACxC,OAAO,CACL,6BAAK,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,SAAS,IACpC,UAAU,CACP,CACP,CAAC;KACH;IAEO,IAAA,QAAQ,GAAe,SAAS,SAAxB,EAAE,QAAQ,GAAK,SAAS,SAAd,CAAe;IAEzC,IAAM,QAAQ,GAAG,QAAQ,IAAI,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IAEhD,OAAO,CACL,oBAAC,MAAM,IACL,GAAG,EAAE,SAAS,kBACA,QAAQ,EACtB,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,QAAQ,EAClB,SAAS,EAAE,SAAS,EACpB,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE,WAAW,EACpB,OAAO,EAAE,WAAW,EACpB,MAAM,EAAE,UAAU,EAClB,SAAS,EAAE,aAAa,EACxB,OAAO,EAAE,WAAW,EACpB,YAAY,EAAE,gBAAgB,EAC9B,YAAY,EAAE,gBAAgB,EAC9B,aAAa,EAAE,iBAAiB,EAChC,UAAU,EAAE,cAAc,EAC1B,WAAW,EAAE,eAAe,EAC5B,YAAY,EAAE,gBAAgB,IAE7B,UAAU,CACJ,CACV,CAAC;AACJ,CAAC"}
|
|
File without changes
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
describe('when matches the `hidden` modifier', function () {
|
|
3
|
-
test.todo('should not render anything');
|
|
4
|
-
});
|
|
5
|
-
describe('when outside the display month', function () {
|
|
6
|
-
describe('if the outside days are hidden', function () {
|
|
7
|
-
test.todo('should not render anything');
|
|
8
|
-
});
|
|
9
|
-
describe('if the outside days are visible', function () {
|
|
10
|
-
test.todo('should apply the `day_outside` class name`');
|
|
11
|
-
test.todo('should apply the `day_outside` style');
|
|
12
|
-
test.todo('should render the day content in a `div` element');
|
|
13
|
-
});
|
|
14
|
-
});
|
|
15
|
-
describe('when the day is not selectable', function () {
|
|
16
|
-
test.todo('should render the day content in a `div` element');
|
|
17
|
-
});
|
|
18
|
-
describe('when the day is disabled', function () {
|
|
19
|
-
test.todo('should render a disabled button');
|
|
20
|
-
test.todo('should render a not focusable button');
|
|
21
|
-
});
|
|
22
|
-
describe('when the day is focused', function () {
|
|
23
|
-
test.todo('should render a not focusable button');
|
|
24
|
-
});
|
|
25
|
-
describe('when selection mode is not controlled', function () {
|
|
26
|
-
test.todo('should render a `div` element');
|
|
27
|
-
});
|
|
28
|
-
describe('when the day is not selectable', function () {
|
|
29
|
-
test.todo('should render a `div` element');
|
|
30
|
-
});
|
|
31
|
-
describe('when the day is selectable', function () {
|
|
32
|
-
test.todo('should render a `button` element');
|
|
33
|
-
test.todo('should apply the `day` class name');
|
|
34
|
-
test.todo('should apply the `day` style');
|
|
35
|
-
test.todo('should be focusable');
|
|
36
|
-
test.todo('should attach the `onDayClick` event handler');
|
|
37
|
-
test.todo('should attach the `onDayFocus` event handler');
|
|
38
|
-
test.todo('should attach the `onDayBlur` event handler');
|
|
39
|
-
test.todo('should attach the `onDayKeyDown` event handler');
|
|
40
|
-
test.todo('should attach the `onDayKeyUp` event handler');
|
|
41
|
-
test.todo('should attach the `onDayMouseEnter` event handler');
|
|
42
|
-
test.todo('should attach the `onDayMouseLeave` event handler');
|
|
43
|
-
test.todo('should attach the `onDayTouchCancel` event handler');
|
|
44
|
-
test.todo('should attach the `onDayTouchEnd` event handler');
|
|
45
|
-
test.todo('should attach the `onDayTouchMove` event handler');
|
|
46
|
-
test.todo('should attach the `onDayTouchStart` event handler');
|
|
47
|
-
describe('and matches a modifier', function () {
|
|
48
|
-
test.todo('should apply the modifier class names');
|
|
49
|
-
test.todo('should apply the modifier style');
|
|
50
|
-
});
|
|
51
|
-
describe('and is clicked', function () {
|
|
52
|
-
test.todo('should have the `aria-pressed` attribute');
|
|
53
|
-
test.todo('should have the `selected` class name');
|
|
54
|
-
test.todo('should have the `selected` style');
|
|
55
|
-
});
|
|
56
|
-
describe('and is focused', function () {
|
|
57
|
-
test.todo('should be the focused day');
|
|
58
|
-
test.todo('should not be focusable again');
|
|
59
|
-
describe('and then blurred', function () {
|
|
60
|
-
test.todo('should not be the focused day anymore');
|
|
61
|
-
});
|
|
62
|
-
});
|
|
63
|
-
});
|
|
64
|
-
//# sourceMappingURL=Day.test.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Day.test.js","sourceRoot":"","sources":["../../../src/components/Day/Day.test.tsx"],"names":[],"mappings":";AAAA,QAAQ,CAAC,oCAAoC,EAAE;IAC7C,IAAI,CAAC,IAAI,CAAC,4BAA4B,CAAC,CAAC;AAC1C,CAAC,CAAC,CAAC;AAEH,QAAQ,CAAC,gCAAgC,EAAE;IACzC,QAAQ,CAAC,gCAAgC,EAAE;QACzC,IAAI,CAAC,IAAI,CAAC,4BAA4B,CAAC,CAAC;IAC1C,CAAC,CAAC,CAAC;IACH,QAAQ,CAAC,iCAAiC,EAAE;QAC1C,IAAI,CAAC,IAAI,CAAC,4CAA4C,CAAC,CAAC;QACxD,IAAI,CAAC,IAAI,CAAC,sCAAsC,CAAC,CAAC;QAClD,IAAI,CAAC,IAAI,CAAC,kDAAkD,CAAC,CAAC;IAChE,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,QAAQ,CAAC,gCAAgC,EAAE;IACzC,IAAI,CAAC,IAAI,CAAC,kDAAkD,CAAC,CAAC;AAChE,CAAC,CAAC,CAAC;AAEH,QAAQ,CAAC,0BAA0B,EAAE;IACnC,IAAI,CAAC,IAAI,CAAC,iCAAiC,CAAC,CAAC;IAC7C,IAAI,CAAC,IAAI,CAAC,sCAAsC,CAAC,CAAC;AACpD,CAAC,CAAC,CAAC;AAEH,QAAQ,CAAC,yBAAyB,EAAE;IAClC,IAAI,CAAC,IAAI,CAAC,sCAAsC,CAAC,CAAC;AACpD,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