react-day-picker 8.0.0-beta.31 → 8.0.0-beta.36
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 +36 -1
- package/README.md +1 -1
- package/build/DayPicker.d.ts +93 -88
- package/build/DayPicker.js +94 -96
- package/build/DayPicker.js.map +1 -1
- package/build/components/Button/Button.d.ts +7 -7
- package/build/components/Button/Button.js +19 -22
- package/build/components/Button/Button.js.map +1 -1
- package/build/components/Button/index.d.ts +1 -1
- package/build/components/Button/index.js +2 -0
- package/build/components/Button/index.js.map +1 -0
- package/build/components/Caption/Caption.d.ts +20 -11
- package/build/components/Caption/Caption.js +60 -55
- package/build/components/Caption/Caption.js.map +1 -1
- package/build/components/Caption/index.d.ts +1 -1
- package/build/components/Caption/index.js +2 -0
- package/build/components/Caption/index.js.map +1 -0
- package/build/components/CaptionLabel/CaptionLabel.d.ts +10 -8
- package/build/components/CaptionLabel/CaptionLabel.js +7 -10
- package/build/components/CaptionLabel/CaptionLabel.js.map +1 -1
- package/build/components/CaptionLabel/index.d.ts +1 -1
- package/build/components/CaptionLabel/index.js +2 -0
- package/build/components/CaptionLabel/index.js.map +1 -0
- package/build/components/Day/Day.d.ts +13 -13
- package/build/components/Day/Day.js +20 -23
- package/build/components/Day/Day.js.map +1 -1
- package/build/components/Day/hooks/index.d.ts +1 -1
- package/build/components/Day/hooks/index.js +2 -0
- package/build/components/Day/hooks/index.js.map +1 -0
- package/build/components/Day/hooks/useDay.d.ts +60 -58
- package/build/components/Day/hooks/useDay.js +167 -174
- package/build/components/Day/hooks/useDay.js.map +1 -1
- package/build/components/Day/hooks/useDayFocus.d.ts +8 -8
- package/build/components/Day/hooks/useDayFocus.js +63 -47
- package/build/components/Day/hooks/useDayFocus.js.map +1 -1
- package/build/components/Day/index.d.ts +2 -2
- package/build/components/Day/index.js +3 -0
- package/build/components/Day/index.js.map +1 -0
- package/build/components/DayContent/DayContent.d.ts +15 -15
- package/build/components/DayContent/DayContent.js +11 -14
- package/build/components/DayContent/DayContent.js.map +1 -1
- package/build/components/DayContent/index.d.ts +1 -1
- package/build/components/DayContent/index.js +2 -0
- package/build/components/DayContent/index.js.map +1 -0
- package/build/components/Dropdown/Dropdown.d.ts +16 -16
- package/build/components/Dropdown/Dropdown.js +16 -19
- package/build/components/Dropdown/Dropdown.js.map +1 -1
- package/build/components/Dropdown/index.d.ts +1 -1
- package/build/components/Dropdown/index.js +2 -0
- package/build/components/Dropdown/index.js.map +1 -0
- package/build/components/Footer/Footer.d.ts +3 -3
- package/build/components/Footer/Footer.js +11 -14
- package/build/components/Footer/Footer.js.map +1 -1
- package/build/components/Footer/index.d.ts +1 -1
- package/build/components/Footer/index.js +2 -0
- package/build/components/Footer/index.js.map +1 -0
- package/build/components/Head/Head.d.ts +5 -5
- package/build/components/Head/Head.js +16 -19
- package/build/components/Head/Head.js.map +1 -1
- package/build/components/Head/index.d.ts +1 -1
- package/build/components/Head/index.js +2 -0
- package/build/components/Head/index.js.map +1 -0
- package/build/components/Head/utils/getWeekdays.d.ts +6 -6
- package/build/components/Head/utils/getWeekdays.js +14 -17
- package/build/components/Head/utils/getWeekdays.js.map +1 -1
- package/build/components/Head/utils/index.d.ts +1 -1
- package/build/components/Head/utils/index.js +2 -0
- package/build/components/Head/utils/index.js.map +1 -0
- package/build/components/IconDropdown/IconDropdown.d.ts +6 -6
- package/build/components/IconDropdown/IconDropdown.js +9 -12
- package/build/components/IconDropdown/IconDropdown.js.map +1 -1
- package/build/components/IconDropdown/index.d.ts +1 -1
- package/build/components/IconDropdown/index.js +2 -0
- package/build/components/IconDropdown/index.js.map +1 -0
- package/build/components/IconLeft/IconLeft.d.ts +6 -0
- package/build/components/{IconPrevious/IconPrevious.js → IconLeft/IconLeft.js} +9 -12
- package/build/components/IconLeft/IconLeft.js.map +1 -0
- package/build/components/IconLeft/index.d.ts +1 -0
- package/build/components/IconLeft/index.js +2 -0
- package/build/components/IconLeft/index.js.map +1 -0
- package/build/components/IconRight/IconRight.d.ts +6 -0
- package/build/components/{IconNext/IconNext.js → IconRight/IconRight.js} +9 -12
- package/build/components/IconRight/IconRight.js.map +1 -0
- package/build/components/IconRight/index.d.ts +1 -0
- package/build/components/IconRight/index.js +2 -0
- package/build/components/IconRight/index.js.map +1 -0
- package/build/components/Month/Month.d.ts +8 -0
- package/build/components/Month/Month.js +37 -0
- package/build/components/Month/Month.js.map +1 -0
- package/build/components/Month/index.d.ts +1 -0
- package/build/components/Month/index.js +2 -0
- package/build/components/Month/index.js.map +1 -0
- package/build/components/MonthsDropdown/MonthsDropdown.d.ts +12 -12
- package/build/components/MonthsDropdown/MonthsDropdown.js +35 -38
- package/build/components/MonthsDropdown/MonthsDropdown.js.map +1 -1
- package/build/components/MonthsDropdown/index.d.ts +1 -1
- package/build/components/MonthsDropdown/index.js +2 -0
- package/build/components/MonthsDropdown/index.js.map +1 -0
- package/build/components/Navigation/Navigation.d.ts +20 -20
- package/build/components/Navigation/Navigation.js +29 -36
- package/build/components/Navigation/Navigation.js.map +1 -1
- package/build/components/Navigation/index.d.ts +1 -1
- package/build/components/Navigation/index.js +2 -0
- package/build/components/Navigation/index.js.map +1 -0
- package/build/components/Root/Root.d.ts +6 -6
- package/build/components/Root/Root.js +31 -49
- package/build/components/Root/Root.js.map +1 -1
- package/build/components/Root/index.d.ts +1 -1
- package/build/components/Root/index.js +2 -0
- package/build/components/Root/index.js.map +1 -0
- package/build/components/Row/Row.d.ts +16 -16
- package/build/components/Row/Row.js +17 -20
- package/build/components/Row/Row.js.map +1 -1
- package/build/components/Row/index.d.ts +1 -1
- package/build/components/Row/index.js +2 -0
- package/build/components/Row/index.js.map +1 -0
- package/build/components/Table/Table.d.ts +14 -12
- package/build/components/Table/Table.js +14 -17
- package/build/components/Table/Table.js.map +1 -1
- package/build/components/Table/index.d.ts +1 -1
- package/build/components/Table/index.js +2 -0
- package/build/components/Table/index.js.map +1 -0
- package/build/components/Table/utils/getOutsideEndDays.d.ts +3 -3
- package/build/components/Table/utils/getOutsideEndDays.js +11 -14
- package/build/components/Table/utils/getOutsideEndDays.js.map +1 -1
- package/build/components/Table/utils/getOutsideStartDays.d.ts +4 -4
- package/build/components/Table/utils/getOutsideStartDays.js +11 -14
- package/build/components/Table/utils/getOutsideStartDays.js.map +1 -1
- package/build/components/Table/utils/getWeeks.d.ts +17 -17
- package/build/components/Table/utils/getWeeks.js +46 -49
- package/build/components/Table/utils/getWeeks.js.map +1 -1
- package/build/components/WeekNumber/WeekNumber.d.ts +15 -15
- package/build/components/WeekNumber/WeekNumber.js +20 -23
- package/build/components/WeekNumber/WeekNumber.js.map +1 -1
- package/build/components/WeekNumber/index.d.ts +1 -1
- package/build/components/WeekNumber/index.js +2 -0
- package/build/components/WeekNumber/index.js.map +1 -0
- package/build/components/YearsDropdown/YearsDropdown.d.ts +16 -16
- package/build/components/YearsDropdown/YearsDropdown.js +23 -26
- package/build/components/YearsDropdown/YearsDropdown.js.map +1 -1
- package/build/components/YearsDropdown/index.d.ts +1 -1
- package/build/components/YearsDropdown/index.js +2 -0
- package/build/components/YearsDropdown/index.js.map +1 -0
- package/build/contexts/DayPicker/DayPickerContext.d.ts +48 -30
- package/build/contexts/DayPicker/DayPickerContext.js +55 -14
- package/build/contexts/DayPicker/DayPickerContext.js.map +1 -1
- package/build/contexts/DayPicker/defaultClassNames.d.ts +5 -5
- package/build/contexts/DayPicker/defaultClassNames.js +39 -43
- package/build/contexts/DayPicker/defaultClassNames.js.map +1 -1
- package/build/contexts/DayPicker/formatters/formatCaption.d.ts +7 -7
- package/build/contexts/DayPicker/formatters/formatCaption.js +6 -9
- package/build/contexts/DayPicker/formatters/formatCaption.js.map +1 -1
- package/build/contexts/DayPicker/formatters/formatDay.d.ts +7 -7
- package/build/contexts/DayPicker/formatters/formatDay.js +6 -9
- package/build/contexts/DayPicker/formatters/formatDay.js.map +1 -1
- package/build/contexts/DayPicker/formatters/formatMonthCaption.d.ts +7 -7
- package/build/contexts/DayPicker/formatters/formatMonthCaption.js +6 -9
- package/build/contexts/DayPicker/formatters/formatMonthCaption.js.map +1 -1
- package/build/contexts/DayPicker/formatters/formatWeekNumber.d.ts +4 -4
- package/build/contexts/DayPicker/formatters/formatWeekNumber.js +6 -8
- package/build/contexts/DayPicker/formatters/formatWeekNumber.js.map +1 -1
- package/build/contexts/DayPicker/formatters/formatWeekdayName.d.ts +7 -7
- package/build/contexts/DayPicker/formatters/formatWeekdayName.js +6 -9
- package/build/contexts/DayPicker/formatters/formatWeekdayName.js.map +1 -1
- package/build/contexts/DayPicker/formatters/formatYearCaption.d.ts +6 -6
- package/build/contexts/DayPicker/formatters/formatYearCaption.js +6 -9
- package/build/contexts/DayPicker/formatters/formatYearCaption.js.map +1 -1
- package/build/contexts/DayPicker/formatters/index.d.ts +6 -6
- package/build/contexts/DayPicker/formatters/index.js +7 -7
- package/build/contexts/DayPicker/formatters/index.js.map +1 -1
- package/build/contexts/DayPicker/index.d.ts +2 -1
- package/build/contexts/DayPicker/index.js +3 -0
- package/build/contexts/DayPicker/index.js.map +1 -0
- package/build/contexts/DayPicker/labels/index.d.ts +7 -7
- package/build/contexts/DayPicker/labels/index.js +8 -8
- package/build/contexts/DayPicker/labels/index.js.map +1 -1
- package/build/contexts/DayPicker/labels/labelDay.d.ts +5 -5
- package/build/contexts/DayPicker/labels/labelDay.js +6 -9
- package/build/contexts/DayPicker/labels/labelDay.js.map +1 -1
- package/build/contexts/DayPicker/labels/labelMonthDropdown.d.ts +4 -4
- package/build/contexts/DayPicker/labels/labelMonthDropdown.js +6 -8
- package/build/contexts/DayPicker/labels/labelMonthDropdown.js.map +1 -1
- package/build/contexts/DayPicker/labels/labelNext.d.ts +5 -5
- package/build/contexts/DayPicker/labels/labelNext.js +6 -8
- package/build/contexts/DayPicker/labels/labelNext.js.map +1 -1
- package/build/contexts/DayPicker/labels/labelPrevious.d.ts +5 -5
- package/build/contexts/DayPicker/labels/labelPrevious.js +6 -8
- package/build/contexts/DayPicker/labels/labelPrevious.js.map +1 -1
- package/build/contexts/DayPicker/labels/labelWeekNumber.d.ts +5 -5
- package/build/contexts/DayPicker/labels/labelWeekNumber.js +6 -8
- package/build/contexts/DayPicker/labels/labelWeekNumber.js.map +1 -1
- package/build/contexts/DayPicker/labels/labelWeekday.d.ts +5 -5
- package/build/contexts/DayPicker/labels/labelWeekday.js +6 -9
- package/build/contexts/DayPicker/labels/labelWeekday.js.map +1 -1
- package/build/contexts/DayPicker/labels/labelYearDropdown.d.ts +4 -4
- package/build/contexts/DayPicker/labels/labelYearDropdown.js +6 -8
- package/build/contexts/DayPicker/labels/labelYearDropdown.js.map +1 -1
- package/build/contexts/DayPicker/useDayPicker.d.ts +8 -8
- package/build/contexts/DayPicker/useDayPicker.js +15 -18
- package/build/contexts/DayPicker/useDayPicker.js.map +1 -1
- package/build/contexts/DayPicker/utils/index.d.ts +1 -2
- package/build/contexts/DayPicker/utils/index.js +2 -0
- package/build/contexts/DayPicker/utils/index.js.map +1 -0
- package/build/contexts/DayPicker/utils/parseFromToProps.d.ts +9 -9
- package/build/contexts/DayPicker/utils/parseFromToProps.js +24 -27
- package/build/contexts/DayPicker/utils/parseFromToProps.js.map +1 -1
- package/build/contexts/Focus/FocusContext.d.ts +36 -26
- package/build/contexts/Focus/FocusContext.js +131 -11
- package/build/contexts/Focus/FocusContext.js.map +1 -1
- package/build/contexts/Focus/getInitialFocusTarget.d.ts +10 -0
- package/build/contexts/Focus/getInitialFocusTarget.js +44 -0
- package/build/contexts/Focus/getInitialFocusTarget.js.map +1 -0
- package/build/contexts/Focus/index.d.ts +2 -3
- package/build/contexts/Focus/index.js +3 -0
- package/build/contexts/Focus/index.js.map +1 -0
- package/build/contexts/Focus/useFocus.d.ts +3 -3
- package/build/contexts/Focus/useFocus.js +10 -13
- package/build/contexts/Focus/useFocus.js.map +1 -1
- package/build/contexts/Modifiers/ModifiersContext.d.ts +9 -0
- package/build/contexts/Modifiers/ModifiersContext.js +20 -0
- package/build/contexts/Modifiers/ModifiersContext.js.map +1 -0
- package/build/contexts/Modifiers/index.d.ts +2 -0
- package/build/contexts/Modifiers/index.js +3 -0
- package/build/contexts/Modifiers/index.js.map +1 -0
- package/build/contexts/Modifiers/useModifiers.d.ts +3 -0
- package/build/contexts/Modifiers/useModifiers.js +11 -0
- package/build/contexts/Modifiers/useModifiers.js.map +1 -0
- package/build/contexts/Modifiers/utils/getCustomModifiers.d.ts +4 -0
- package/build/contexts/Modifiers/utils/getCustomModifiers.js +11 -0
- package/build/contexts/Modifiers/utils/getCustomModifiers.js.map +1 -0
- package/build/contexts/Modifiers/utils/getInternalModifiers.d.ts +6 -0
- package/build/contexts/Modifiers/utils/getInternalModifiers.js +34 -0
- package/build/contexts/Modifiers/utils/getInternalModifiers.js.map +1 -0
- package/build/contexts/Modifiers/utils/toMatcherArray.d.ts +2 -0
- package/build/contexts/Modifiers/utils/toMatcherArray.js +12 -0
- package/build/contexts/Modifiers/utils/toMatcherArray.js.map +1 -0
- package/build/contexts/Navigation/NavigationContext.d.ts +24 -20
- package/build/contexts/Navigation/NavigationContext.js +28 -11
- package/build/contexts/Navigation/NavigationContext.js.map +1 -1
- package/build/contexts/Navigation/index.d.ts +2 -3
- package/build/contexts/Navigation/index.js +3 -0
- package/build/contexts/Navigation/index.js.map +1 -0
- package/build/contexts/Navigation/useNavigation.d.ts +3 -3
- package/build/contexts/Navigation/useNavigation.js +10 -13
- package/build/contexts/Navigation/useNavigation.js.map +1 -1
- package/build/contexts/Navigation/useNavigationState.d.ts +7 -7
- package/build/contexts/Navigation/useNavigationState.js +15 -18
- package/build/contexts/Navigation/useNavigationState.js.map +1 -1
- package/build/contexts/Navigation/utils/getDisplayMonths.d.ts +8 -8
- package/build/contexts/Navigation/utils/getDisplayMonths.js +19 -22
- package/build/contexts/Navigation/utils/getDisplayMonths.js.map +1 -1
- package/build/contexts/Navigation/utils/getInitialMonth.d.ts +3 -3
- package/build/contexts/Navigation/utils/getInitialMonth.js +17 -20
- package/build/contexts/Navigation/utils/getInitialMonth.js.map +1 -1
- package/build/contexts/Navigation/utils/getNextMonth.d.ts +18 -18
- package/build/contexts/Navigation/utils/getNextMonth.js +28 -31
- package/build/contexts/Navigation/utils/getNextMonth.js.map +1 -1
- package/build/contexts/Navigation/utils/getPreviousMonth.d.ts +19 -19
- package/build/contexts/Navigation/utils/getPreviousMonth.js +29 -32
- package/build/contexts/Navigation/utils/getPreviousMonth.js.map +1 -1
- package/build/contexts/RootProvider.d.ts +8 -0
- package/build/contexts/RootProvider.js +21 -0
- package/build/contexts/RootProvider.js.map +1 -0
- package/build/contexts/SelectMultiple/SelectMultipleContext.d.ts +35 -20
- package/build/contexts/SelectMultiple/SelectMultipleContext.js +76 -12
- package/build/contexts/SelectMultiple/SelectMultipleContext.js.map +1 -1
- package/build/contexts/SelectMultiple/index.d.ts +2 -3
- package/build/contexts/SelectMultiple/index.js +3 -0
- package/build/contexts/SelectMultiple/index.js.map +1 -0
- package/build/contexts/SelectMultiple/useSelectMultiple.d.ts +3 -3
- package/build/contexts/SelectMultiple/useSelectMultiple.js +10 -13
- package/build/contexts/SelectMultiple/useSelectMultiple.js.map +1 -1
- package/build/contexts/SelectRange/SelectRangeContext.d.ts +36 -21
- package/build/contexts/SelectRange/SelectRangeContext.js +117 -12
- package/build/contexts/SelectRange/SelectRangeContext.js.map +1 -1
- package/build/contexts/SelectRange/index.d.ts +2 -3
- package/build/contexts/SelectRange/index.js +3 -0
- package/build/contexts/SelectRange/index.js.map +1 -0
- package/build/contexts/SelectRange/useSelectRange.d.ts +3 -3
- package/build/contexts/SelectRange/useSelectRange.js +10 -13
- package/build/contexts/SelectRange/useSelectRange.js.map +1 -1
- package/build/contexts/SelectRange/utils/addToRange.d.ts +8 -8
- package/build/contexts/SelectRange/utils/addToRange.js +35 -38
- package/build/contexts/SelectRange/utils/addToRange.js.map +1 -1
- package/build/contexts/SelectSingle/SelectSingleContext.d.ts +30 -21
- package/build/contexts/SelectSingle/SelectSingleContext.js +36 -12
- package/build/contexts/SelectSingle/SelectSingleContext.js.map +1 -1
- package/build/contexts/SelectSingle/index.d.ts +2 -3
- package/build/contexts/SelectSingle/index.js +3 -0
- package/build/contexts/SelectSingle/index.js.map +1 -0
- package/build/contexts/SelectSingle/useSelectSingle.d.ts +3 -3
- package/build/contexts/SelectSingle/useSelectSingle.js +10 -13
- package/build/contexts/SelectSingle/useSelectSingle.js.map +1 -1
- package/build/hooks/useControlledValue/index.d.ts +1 -1
- package/build/hooks/useControlledValue/index.js +2 -0
- package/build/hooks/useControlledValue/index.js.map +1 -0
- package/build/hooks/useControlledValue/useControlledValue.d.ts +12 -12
- package/build/hooks/useControlledValue/useControlledValue.js +15 -18
- package/build/hooks/useControlledValue/useControlledValue.js.map +1 -1
- package/build/hooks/useDayModifiers/index.d.ts +1 -0
- package/build/hooks/useDayModifiers/index.js +2 -0
- package/build/hooks/useDayModifiers/index.js.map +1 -0
- package/build/hooks/{useModifiers/types/UseModifiers.d.ts → useDayModifiers/useDayModifiers.d.ts} +12 -10
- package/build/hooks/useDayModifiers/useDayModifiers.js +34 -0
- package/build/hooks/useDayModifiers/useDayModifiers.js.map +1 -0
- package/build/hooks/{useModifiers → useDayModifiers}/utils/getModifierStatus.d.ts +7 -7
- package/build/hooks/{useModifiers → useDayModifiers}/utils/getModifierStatus.js +18 -21
- package/build/hooks/useDayModifiers/utils/getModifierStatus.js.map +1 -0
- package/build/hooks/{useModifiers → useDayModifiers}/utils/isDateInRange.d.ts +3 -3
- package/build/hooks/{useModifiers → useDayModifiers}/utils/isDateInRange.js +21 -24
- package/build/hooks/useDayModifiers/utils/isDateInRange.js.map +1 -0
- package/build/hooks/{useModifiers → useDayModifiers}/utils/isMatch.d.ts +5 -5
- package/build/hooks/{useModifiers → useDayModifiers}/utils/isMatch.js +48 -49
- package/build/hooks/useDayModifiers/utils/isMatch.js.map +1 -0
- package/build/hooks/useInput/index.d.ts +1 -2
- package/build/hooks/useInput/index.js +2 -0
- package/build/hooks/useInput/index.js.map +1 -0
- package/build/hooks/useInput/useInput.d.ts +28 -4
- package/build/hooks/useInput/useInput.js +96 -101
- package/build/hooks/useInput/useInput.js.map +1 -1
- package/build/hooks/useInput/utils/isValidDate.d.ts +2 -2
- package/build/hooks/useInput/utils/isValidDate.js +4 -6
- package/build/hooks/useInput/utils/isValidDate.js.map +1 -1
- package/build/index.d.ts +33 -0
- package/build/index.js +35 -0
- package/build/index.js.map +1 -0
- package/build/types/{DayPickerBase.d.ts → DayPicker.d.ts} +241 -238
- package/build/types/DayPicker.js +2 -0
- package/build/types/DayPicker.js.map +1 -0
- package/build/types/DayPickerCustom.d.ts +9 -7
- package/build/types/DayPickerCustom.js +5 -0
- package/build/types/DayPickerCustom.js.map +1 -0
- package/build/types/DayPickerMultiple.d.ts +16 -17
- package/build/types/DayPickerMultiple.js +5 -0
- package/build/types/DayPickerMultiple.js.map +1 -0
- package/build/types/DayPickerRange.d.ts +17 -20
- package/build/types/DayPickerRange.js +5 -0
- package/build/types/DayPickerRange.js.map +1 -0
- package/build/types/DayPickerSingle.d.ts +14 -15
- package/build/types/DayPickerSingle.js +5 -0
- package/build/types/DayPickerSingle.js.map +1 -0
- package/build/types/EventHandlers.d.ts +51 -0
- package/build/types/EventHandlers.js +2 -0
- package/build/types/EventHandlers.js.map +1 -0
- package/build/types/Formatters.d.ts +24 -19
- package/build/types/Formatters.js +2 -0
- package/build/types/Formatters.js.map +1 -0
- package/build/types/Labels.d.ts +28 -17
- package/build/types/Labels.js +2 -0
- package/build/types/Labels.js.map +1 -0
- package/build/types/Matchers.d.ts +34 -0
- package/build/types/Matchers.js +25 -0
- package/build/types/Matchers.js.map +1 -0
- package/build/types/Modifiers.d.ts +38 -5
- package/build/types/Modifiers.js +19 -0
- package/build/types/Modifiers.js.map +1 -0
- package/build/types/Styles.d.ts +85 -4
- package/build/types/Styles.js +2 -0
- package/build/types/Styles.js.map +1 -0
- package/dist/DayPicker.js +99 -0
- package/dist/DayPicker.js.map +1 -0
- package/dist/components/Button/Button.js +23 -0
- package/dist/components/Button/Button.js.map +1 -0
- package/dist/components/Button/index.js +5 -0
- package/dist/components/Button/index.js.map +1 -0
- package/dist/components/Caption/Caption.js +67 -0
- package/dist/components/Caption/Caption.js.map +1 -0
- package/dist/components/Caption/index.js +5 -0
- package/dist/components/Caption/index.js.map +1 -0
- package/dist/components/CaptionLabel/CaptionLabel.js +13 -0
- package/dist/components/CaptionLabel/CaptionLabel.js.map +1 -0
- package/dist/components/CaptionLabel/index.js +5 -0
- package/dist/components/CaptionLabel/index.js.map +1 -0
- package/dist/components/Day/Day.js +25 -0
- package/dist/components/Day/Day.js.map +1 -0
- package/dist/components/Day/hooks/index.js +5 -0
- package/dist/components/Day/hooks/index.js.map +1 -0
- package/dist/components/Day/hooks/useDay.js +173 -0
- package/dist/components/Day/hooks/useDay.js.map +1 -0
- package/dist/components/Day/hooks/useDayFocus.js +70 -0
- package/dist/components/Day/hooks/useDayFocus.js.map +1 -0
- package/dist/components/Day/index.js +6 -0
- package/dist/components/Day/index.js.map +1 -0
- package/dist/components/DayContent/DayContent.js +17 -0
- package/dist/components/DayContent/DayContent.js.map +1 -0
- package/dist/components/DayContent/index.js +5 -0
- package/dist/components/DayContent/index.js.map +1 -0
- package/dist/components/Dropdown/Dropdown.js +22 -0
- package/dist/components/Dropdown/Dropdown.js.map +1 -0
- package/dist/components/Dropdown/index.js +5 -0
- package/dist/components/Dropdown/index.js.map +1 -0
- package/dist/components/Footer/Footer.js +17 -0
- package/dist/components/Footer/Footer.js.map +1 -0
- package/dist/components/Footer/index.js +5 -0
- package/dist/components/Footer/index.js.map +1 -0
- package/dist/components/Head/Head.js +22 -0
- package/dist/components/Head/Head.js.map +1 -0
- package/dist/components/Head/index.js +5 -0
- package/dist/components/Head/index.js.map +1 -0
- package/dist/components/Head/utils/getWeekdays.js +19 -0
- package/dist/components/Head/utils/getWeekdays.js.map +1 -0
- package/dist/components/Head/utils/index.js +5 -0
- package/dist/components/Head/utils/index.js.map +1 -0
- package/dist/components/IconDropdown/IconDropdown.js +14 -0
- package/dist/components/IconDropdown/IconDropdown.js.map +1 -0
- package/dist/components/IconDropdown/index.js +5 -0
- package/dist/components/IconDropdown/index.js.map +1 -0
- package/dist/components/IconLeft/IconLeft.js +14 -0
- package/dist/components/IconLeft/IconLeft.js.map +1 -0
- package/dist/components/IconLeft/index.js +5 -0
- package/dist/components/IconLeft/index.js.map +1 -0
- package/dist/components/IconRight/IconRight.js +14 -0
- package/dist/components/IconRight/IconRight.js.map +1 -0
- package/dist/components/IconRight/index.js +5 -0
- package/dist/components/IconRight/index.js.map +1 -0
- package/dist/components/Month/Month.js +41 -0
- package/dist/components/Month/Month.js.map +1 -0
- package/dist/components/Month/index.js +5 -0
- package/dist/components/Month/index.js.map +1 -0
- package/dist/components/MonthsDropdown/MonthsDropdown.js +41 -0
- package/dist/components/MonthsDropdown/MonthsDropdown.js.map +1 -0
- package/dist/components/MonthsDropdown/index.js +5 -0
- package/dist/components/MonthsDropdown/index.js.map +1 -0
- package/dist/components/Navigation/Navigation.js +35 -0
- package/dist/components/Navigation/Navigation.js.map +1 -0
- package/dist/components/Navigation/index.js +5 -0
- package/dist/components/Navigation/index.js.map +1 -0
- package/dist/components/Root/Root.js +36 -0
- package/dist/components/Root/Root.js.map +1 -0
- package/dist/components/Root/index.js +5 -0
- package/dist/components/Root/index.js.map +1 -0
- package/dist/components/Row/Row.js +24 -0
- package/dist/components/Row/Row.js.map +1 -0
- package/dist/components/Row/index.js +5 -0
- package/dist/components/Row/index.js.map +1 -0
- package/dist/components/Table/Table.js +20 -0
- package/dist/components/Table/Table.js.map +1 -0
- package/dist/components/Table/index.js +5 -0
- package/dist/components/Table/index.js.map +1 -0
- package/dist/components/Table/utils/getOutsideEndDays.js +16 -0
- package/dist/components/Table/utils/getOutsideEndDays.js.map +1 -0
- package/dist/components/Table/utils/getOutsideStartDays.js +16 -0
- package/dist/components/Table/utils/getOutsideStartDays.js.map +1 -0
- package/dist/components/Table/utils/getWeeks.js +51 -0
- package/dist/components/Table/utils/getWeeks.js.map +1 -0
- package/dist/components/WeekNumber/WeekNumber.js +26 -0
- package/dist/components/WeekNumber/WeekNumber.js.map +1 -0
- package/dist/components/WeekNumber/index.js +5 -0
- package/dist/components/WeekNumber/index.js.map +1 -0
- package/dist/components/YearsDropdown/YearsDropdown.js +30 -0
- package/dist/components/YearsDropdown/YearsDropdown.js.map +1 -0
- package/dist/components/YearsDropdown/index.js +5 -0
- package/dist/components/YearsDropdown/index.js.map +1 -0
- package/dist/contexts/DayPicker/DayPickerContext.js +57 -0
- package/dist/contexts/DayPicker/DayPickerContext.js.map +1 -0
- package/dist/contexts/DayPicker/DayPickerProvider.js +49 -0
- package/dist/contexts/DayPicker/DayPickerProvider.js.map +1 -0
- package/dist/contexts/DayPicker/defaultClassNames.js +43 -0
- package/dist/contexts/DayPicker/defaultClassNames.js.map +1 -0
- package/dist/contexts/DayPicker/defaultContextValues.js +65 -0
- package/dist/contexts/DayPicker/defaultContextValues.js.map +1 -0
- package/dist/contexts/DayPicker/formatters/formatCaption.js +12 -0
- package/dist/contexts/DayPicker/formatters/formatCaption.js.map +1 -0
- package/dist/contexts/DayPicker/formatters/formatDay.js +12 -0
- package/dist/contexts/DayPicker/formatters/formatDay.js.map +1 -0
- package/dist/contexts/DayPicker/formatters/formatMonthCaption.js +12 -0
- package/dist/contexts/DayPicker/formatters/formatMonthCaption.js.map +1 -0
- package/dist/contexts/DayPicker/formatters/formatWeekNumber.js +11 -0
- package/dist/contexts/DayPicker/formatters/formatWeekNumber.js.map +1 -0
- package/dist/contexts/DayPicker/formatters/formatWeekdayName.js +12 -0
- package/dist/contexts/DayPicker/formatters/formatWeekdayName.js.map +1 -0
- package/dist/contexts/DayPicker/formatters/formatYearCaption.js +12 -0
- package/dist/contexts/DayPicker/formatters/formatYearCaption.js.map +1 -0
- package/dist/contexts/DayPicker/formatters/index.js +10 -0
- package/dist/contexts/DayPicker/formatters/index.js.map +1 -0
- package/dist/contexts/DayPicker/index.js +6 -0
- package/dist/contexts/DayPicker/index.js.map +1 -0
- package/dist/contexts/DayPicker/labels/index.js +11 -0
- package/dist/contexts/DayPicker/labels/index.js.map +1 -0
- package/dist/contexts/DayPicker/labels/labelDay.js +12 -0
- package/dist/contexts/DayPicker/labels/labelDay.js.map +1 -0
- package/dist/contexts/DayPicker/labels/labelMonthDropdown.js +11 -0
- package/dist/contexts/DayPicker/labels/labelMonthDropdown.js.map +1 -0
- package/dist/contexts/DayPicker/labels/labelNext.js +11 -0
- package/dist/contexts/DayPicker/labels/labelNext.js.map +1 -0
- package/dist/contexts/DayPicker/labels/labelPrevious.js +11 -0
- package/dist/contexts/DayPicker/labels/labelPrevious.js.map +1 -0
- package/dist/contexts/DayPicker/labels/labelWeekNumber.js +11 -0
- package/dist/contexts/DayPicker/labels/labelWeekNumber.js.map +1 -0
- package/dist/contexts/DayPicker/labels/labelWeekday.js +12 -0
- package/dist/contexts/DayPicker/labels/labelWeekday.js.map +1 -0
- package/dist/contexts/DayPicker/labels/labelYearDropdown.js +11 -0
- package/dist/contexts/DayPicker/labels/labelYearDropdown.js.map +1 -0
- package/dist/contexts/DayPicker/useDayPicker.js +21 -0
- package/dist/contexts/DayPicker/useDayPicker.js.map +1 -0
- package/dist/contexts/DayPicker/utils/index.js +5 -0
- package/dist/contexts/DayPicker/utils/index.js.map +1 -0
- package/dist/contexts/DayPicker/utils/parseFromToProps.js +30 -0
- package/dist/contexts/DayPicker/utils/parseFromToProps.js.map +1 -0
- package/dist/contexts/Focus/FocusContext.js +136 -0
- package/dist/contexts/Focus/FocusContext.js.map +1 -0
- package/dist/contexts/Focus/getInitialFocusTarget.js +48 -0
- package/dist/contexts/Focus/getInitialFocusTarget.js.map +1 -0
- package/dist/contexts/Focus/index.js +6 -0
- package/dist/contexts/Focus/index.js.map +1 -0
- package/dist/contexts/Focus/useFocus.js +16 -0
- package/dist/contexts/Focus/useFocus.js.map +1 -0
- package/dist/contexts/Modifiers/ModifiersContext.js +65 -0
- package/dist/contexts/Modifiers/ModifiersContext.js.map +1 -0
- package/dist/contexts/Modifiers/index.js +6 -0
- package/dist/contexts/Modifiers/index.js.map +1 -0
- package/dist/contexts/Modifiers/useModifiers.js +16 -0
- package/dist/contexts/Modifiers/useModifiers.js.map +1 -0
- package/dist/contexts/Modifiers/utils/getCustomModifiers.js +15 -0
- package/dist/contexts/Modifiers/utils/getCustomModifiers.js.map +1 -0
- package/dist/contexts/Modifiers/utils/getInternalModifiers.js +39 -0
- package/dist/contexts/Modifiers/utils/getInternalModifiers.js.map +1 -0
- package/dist/contexts/Modifiers/utils/matcherToArray.js +17 -0
- package/dist/contexts/Modifiers/utils/matcherToArray.js.map +1 -0
- package/dist/contexts/Modifiers/utils/toMatcherArray.js +16 -0
- package/dist/contexts/Modifiers/utils/toMatcherArray.js.map +1 -0
- package/dist/contexts/Navigation/NavigationContext.js +33 -0
- package/dist/contexts/Navigation/NavigationContext.js.map +1 -0
- package/dist/contexts/Navigation/index.js +6 -0
- package/dist/contexts/Navigation/index.js.map +1 -0
- package/dist/contexts/Navigation/useNavigation.js +16 -0
- package/dist/contexts/Navigation/useNavigation.js.map +1 -0
- package/dist/contexts/Navigation/useNavigationState.js +20 -0
- package/dist/contexts/Navigation/useNavigationState.js.map +1 -0
- package/dist/contexts/Navigation/utils/getDisplayMonths.js +24 -0
- package/dist/contexts/Navigation/utils/getDisplayMonths.js.map +1 -0
- package/dist/contexts/Navigation/utils/getInitialMonth.js +22 -0
- package/dist/contexts/Navigation/utils/getInitialMonth.js.map +1 -0
- package/dist/contexts/Navigation/utils/getNextMonth.js +33 -0
- package/dist/contexts/Navigation/utils/getNextMonth.js.map +1 -0
- package/dist/contexts/Navigation/utils/getPreviousMonth.js +34 -0
- package/dist/contexts/Navigation/utils/getPreviousMonth.js.map +1 -0
- package/dist/contexts/RootProvider.js +25 -0
- package/dist/contexts/RootProvider.js.map +1 -0
- package/dist/contexts/SelectMultiple/SelectMultipleContext.js +81 -0
- package/dist/contexts/SelectMultiple/SelectMultipleContext.js.map +1 -0
- package/dist/contexts/SelectMultiple/index.js +6 -0
- package/dist/contexts/SelectMultiple/index.js.map +1 -0
- package/dist/contexts/SelectMultiple/useSelectMultiple.js +16 -0
- package/dist/contexts/SelectMultiple/useSelectMultiple.js.map +1 -0
- package/{build/contexts/SelectRange/SelectRangeProvider.js → dist/contexts/SelectRange/SelectRangeContext.js} +122 -118
- package/dist/contexts/SelectRange/SelectRangeContext.js.map +1 -0
- package/dist/contexts/SelectRange/index.js +6 -0
- package/dist/contexts/SelectRange/index.js.map +1 -0
- package/dist/contexts/SelectRange/useSelectRange.js +16 -0
- package/dist/contexts/SelectRange/useSelectRange.js.map +1 -0
- package/dist/contexts/SelectRange/utils/addToRange.js +40 -0
- package/dist/contexts/SelectRange/utils/addToRange.js.map +1 -0
- package/dist/contexts/SelectSingle/SelectSingleContext.js +42 -0
- package/dist/contexts/SelectSingle/SelectSingleContext.js.map +1 -0
- package/dist/contexts/SelectSingle/index.js +6 -0
- package/dist/contexts/SelectSingle/index.js.map +1 -0
- package/dist/contexts/SelectSingle/useSelectSingle.js +16 -0
- package/dist/contexts/SelectSingle/useSelectSingle.js.map +1 -0
- package/dist/hooks/useControlledValue/index.js +5 -0
- package/dist/hooks/useControlledValue/index.js.map +1 -0
- package/dist/hooks/useControlledValue/useControlledValue.js +21 -0
- package/dist/hooks/useControlledValue/useControlledValue.js.map +1 -0
- package/dist/hooks/useDayModifiers/index.js +5 -0
- package/dist/hooks/useDayModifiers/index.js.map +1 -0
- package/dist/hooks/useDayModifiers/useDayModifiers.js +38 -0
- package/dist/hooks/useDayModifiers/useDayModifiers.js.map +1 -0
- package/dist/hooks/useDayModifiers/utils/getModifierStatus.js +23 -0
- package/dist/hooks/useDayModifiers/utils/getModifierStatus.js.map +1 -0
- package/dist/hooks/useDayModifiers/utils/isDateInRange.js +26 -0
- package/dist/hooks/useDayModifiers/utils/isDateInRange.js.map +1 -0
- package/dist/hooks/useDayModifiers/utils/isMatch.js +53 -0
- package/dist/hooks/useDayModifiers/utils/isMatch.js.map +1 -0
- package/dist/hooks/useInput/index.js +5 -0
- package/dist/hooks/useInput/index.js.map +1 -0
- package/dist/hooks/useInput/useInput.js +103 -0
- package/dist/hooks/useInput/useInput.js.map +1 -0
- package/dist/hooks/useInput/utils/isValidDate.js +9 -0
- package/dist/hooks/useInput/utils/isValidDate.js.map +1 -0
- package/dist/index.js +38 -0
- package/dist/index.js.map +1 -0
- package/dist/types/DayPicker.js +3 -0
- package/dist/types/DayPicker.js.map +1 -0
- package/dist/types/DayPickerCustom.js +9 -0
- package/dist/types/DayPickerCustom.js.map +1 -0
- package/dist/types/DayPickerMultiple.js +9 -0
- package/dist/types/DayPickerMultiple.js.map +1 -0
- package/dist/types/DayPickerRange.js +9 -0
- package/dist/types/DayPickerRange.js.map +1 -0
- package/dist/types/DayPickerSingle.js +9 -0
- package/dist/types/DayPickerSingle.js.map +1 -0
- package/dist/types/EventHandlers.js +3 -0
- package/dist/types/EventHandlers.js.map +1 -0
- package/dist/types/Formatters.js +3 -0
- package/dist/types/Formatters.js.map +1 -0
- package/dist/types/Labels.js +3 -0
- package/dist/types/Labels.js.map +1 -0
- package/dist/types/Matchers.js +33 -0
- package/dist/types/Matchers.js.map +1 -0
- package/dist/types/Modifiers.js +3 -0
- package/dist/types/Modifiers.js.map +1 -0
- package/dist/types/Styles.js +3 -0
- package/dist/types/Styles.js.map +1 -0
- package/package.json +25 -21
- package/style.css +21 -10
- package/style.css.d.ts +2 -2
- package/build/_virtual/_tslib.js +0 -50
- package/build/_virtual/_tslib.js.map +0 -1
- package/build/components/IconNext/IconNext.d.ts +0 -6
- package/build/components/IconNext/IconNext.js.map +0 -1
- package/build/components/IconNext/index.d.ts +0 -1
- package/build/components/IconPrevious/IconPrevious.d.ts +0 -6
- package/build/components/IconPrevious/IconPrevious.js.map +0 -1
- package/build/components/IconPrevious/index.d.ts +0 -1
- package/build/components/index.d.ts +0 -18
- package/build/contexts/ContextProvider.d.ts +0 -8
- package/build/contexts/ContextProvider.js +0 -27
- package/build/contexts/ContextProvider.js.map +0 -1
- package/build/contexts/DayPicker/DayPickerProvider.d.ts +0 -12
- package/build/contexts/DayPicker/DayPickerProvider.js +0 -59
- package/build/contexts/DayPicker/DayPickerProvider.js.map +0 -1
- package/build/contexts/DayPicker/utils/parseModifierProps.d.ts +0 -9
- package/build/contexts/DayPicker/utils/parseModifierProps.js +0 -53
- package/build/contexts/DayPicker/utils/parseModifierProps.js.map +0 -1
- package/build/contexts/Focus/FocusProvider.d.ts +0 -5
- package/build/contexts/Focus/FocusProvider.js +0 -66
- package/build/contexts/Focus/FocusProvider.js.map +0 -1
- package/build/contexts/Navigation/NavigationProvider.d.ts +0 -5
- package/build/contexts/Navigation/NavigationProvider.js +0 -26
- package/build/contexts/Navigation/NavigationProvider.js.map +0 -1
- package/build/contexts/SelectMultiple/SelectMultipleProvider.d.ts +0 -9
- package/build/contexts/SelectMultiple/SelectMultipleProvider.js +0 -76
- package/build/contexts/SelectMultiple/SelectMultipleProvider.js.map +0 -1
- package/build/contexts/SelectRange/SelectRangeProvider.d.ts +0 -13
- package/build/contexts/SelectRange/SelectRangeProvider.js.map +0 -1
- package/build/contexts/SelectSingle/SelectSingleProvider.d.ts +0 -13
- package/build/contexts/SelectSingle/SelectSingleProvider.js +0 -44
- package/build/contexts/SelectSingle/SelectSingleProvider.js.map +0 -1
- package/build/contexts/index.d.ts +0 -7
- package/build/hooks/index.d.ts +0 -2
- package/build/hooks/useInput/types/UseInput.d.ts +0 -12
- package/build/hooks/useInput/types/UseInputDayPickerProps.d.ts +0 -14
- package/build/hooks/useInput/types/UseInputFieldProps.d.ts +0 -12
- package/build/hooks/useInput/types/UseInputOptions.d.ts +0 -35
- package/build/hooks/useInput/types/index.d.ts +0 -4
- package/build/hooks/useModifiers/index.d.ts +0 -1
- package/build/hooks/useModifiers/types/index.d.ts +0 -1
- package/build/hooks/useModifiers/useModifiers.d.ts +0 -3
- package/build/hooks/useModifiers/useModifiers.js +0 -67
- package/build/hooks/useModifiers/useModifiers.js.map +0 -1
- package/build/hooks/useModifiers/utils/getModifierStatus.js.map +0 -1
- package/build/hooks/useModifiers/utils/isDateInRange.js.map +0 -1
- package/build/hooks/useModifiers/utils/isMatch.js.map +0 -1
- package/build/main.d.ts +0 -5
- package/build/main.js +0 -51
- package/build/main.js.map +0 -1
- package/build/test/PageObjects.d.ts +0 -40
- package/build/test/customRender.d.ts +0 -4
- package/build/test/customRenderHook.d.ts +0 -3
- package/build/test/index.d.ts +0 -3
- package/build/test/setup.d.ts +0 -2
- package/build/types/CaptionLayout.d.ts +0 -7
- package/build/types/ClassNames.d.ts +0 -3
- package/build/types/Components.d.ts +0 -39
- package/build/types/CustomModifiers.d.ts +0 -4
- package/build/types/DateAfter.d.ts +0 -7
- package/build/types/DateBefore.d.ts +0 -7
- package/build/types/DateFormatter.d.ts +0 -6
- package/build/types/DateInterval.d.ts +0 -8
- package/build/types/DateRange.d.ts +0 -8
- package/build/types/DayClickEventHandler.d.ts +0 -6
- package/build/types/DayFocusEventHandler.d.ts +0 -6
- package/build/types/DayKeyboardEventHandler.d.ts +0 -6
- package/build/types/DayLabelFormatter.d.ts +0 -7
- package/build/types/DayMouseEventHandler.d.ts +0 -6
- package/build/types/DayOfWeekMatcher.d.ts +0 -7
- package/build/types/DayPickerProps.d.ts +0 -9
- package/build/types/DayTouchEventHandler.d.ts +0 -6
- package/build/types/InternalModifier.d.ts +0 -2
- package/build/types/Matcher.d.ts +0 -10
- package/build/types/Modifier.d.ts +0 -5
- package/build/types/ModifierClassNames.d.ts +0 -5
- package/build/types/ModifierStatus.d.ts +0 -5
- package/build/types/ModifierStyles.d.ts +0 -4
- package/build/types/MonthChangeEventHandler.d.ts +0 -4
- package/build/types/NavButtonLabelFormatter.d.ts +0 -7
- package/build/types/SelectMultipleEventHandler.d.ts +0 -12
- package/build/types/SelectRangeEventHandler.d.ts +0 -10
- package/build/types/SelectSingleEventHandler.d.ts +0 -12
- package/build/types/StyledComponentProps.d.ts +0 -10
- package/build/types/StyledElement.d.ts +0 -76
- package/build/types/WeekNumberClickEventHandler.d.ts +0 -9
- package/build/types/WeekNumberFormatter.d.ts +0 -6
- package/build/types/WeekNumberLabelFormatter.d.ts +0 -5
- package/build/types/WeekdayLabelFormatter.d.ts +0 -4
- package/build/types/index.d.ts +0 -54
- package/build/types/isArrayOfDates.d.ts +0 -2
- package/build/types/isArrayOfDates.js +0 -9
- package/build/types/isArrayOfDates.js.map +0 -1
- package/build/types/isDateAfterType.d.ts +0 -3
- package/build/types/isDateAfterType.js +0 -7
- package/build/types/isDateAfterType.js.map +0 -1
- package/build/types/isDateBeforeType.d.ts +0 -3
- package/build/types/isDateBeforeType.js +0 -7
- package/build/types/isDateBeforeType.js.map +0 -1
- package/build/types/isDateInterval.d.ts +0 -3
- package/build/types/isDateInterval.js +0 -10
- package/build/types/isDateInterval.js.map +0 -1
- package/build/types/isDateRange.d.ts +0 -3
- package/build/types/isDateRange.js +0 -8
- package/build/types/isDateRange.js.map +0 -1
- package/build/types/isDateType.d.ts +0 -2
- package/build/types/isDateType.js +0 -9
- package/build/types/isDateType.js.map +0 -1
- package/build/types/isDayOfWeekType.d.ts +0 -3
- package/build/types/isDayOfWeekType.js +0 -7
- package/build/types/isDayOfWeekType.js.map +0 -1
- package/build/types/isDayPickerCustom.d.ts +0 -4
- package/build/types/isDayPickerCustom.js +0 -7
- package/build/types/isDayPickerCustom.js.map +0 -1
- package/build/types/isDayPickerMultiple.d.ts +0 -4
- package/build/types/isDayPickerMultiple.js +0 -7
- package/build/types/isDayPickerMultiple.js.map +0 -1
- package/build/types/isDayPickerRange.d.ts +0 -4
- package/build/types/isDayPickerRange.js +0 -7
- package/build/types/isDayPickerRange.js.map +0 -1
- package/build/types/isDayPickerSingle.d.ts +0 -4
- package/build/types/isDayPickerSingle.js +0 -7
- package/build/types/isDayPickerSingle.js.map +0 -1
- package/dist/main.js +0 -1936
- package/dist/main.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -16,7 +16,42 @@ with the previous versions.
|
|
|
16
16
|
|
|
17
17
|
See the preview website at https://react-day-picker-next.netlify.app.
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
### v8.0.0-beta.36
|
|
22
|
+
|
|
23
|
+
- feat: added caption ARIA labels. This change introduce `@reach/auto-id` dependency (#1358) (b8bbf419)
|
|
24
|
+
- feat: caption element has now an heading role (uses `h2`) (#1335) (bfb77869)
|
|
25
|
+
- feat: improved focus support (#1343) (9d09587d)
|
|
26
|
+
- feat: added `initialFocus` focus prop (#1351) (8f6d979d)
|
|
27
|
+
- feat: table uses `grid` role (#1337) (4ae64022)
|
|
28
|
+
- chore: added Month component (#1327) (fc9d9136)
|
|
29
|
+
- chore: rename styles and elements (#1336, #1329, #1325)
|
|
30
|
+
- fix: fixed type `useInput`'s `setSelected` (#1344) (c8f64fdf)
|
|
31
|
+
- fix: missing today modifier (#1319) (c4445a4c)
|
|
32
|
+
|
|
33
|
+
### v8.0.0-beta.35
|
|
34
|
+
|
|
35
|
+
- feat: add extended keyboard navigation (#1300) (2a098719)
|
|
36
|
+
- chore: export missing Button component (5ba65841)
|
|
37
|
+
- chore: rename `handleDayClick` to `onDayClick` (3d1678b2)
|
|
38
|
+
- chore: limit documented exports (c2fbd576)
|
|
39
|
+
- build: fix circular dependency (5cd0c2c8)
|
|
40
|
+
|
|
41
|
+
### v8.0.0-beta.33
|
|
42
|
+
|
|
43
|
+
- chore: unify context files (#1303) (d66b3981)
|
|
44
|
+
- chore: cleanup useInput types (7faec569)
|
|
45
|
+
- chore: improve internal modifiers typings (#1299) (9ddc64d9)
|
|
46
|
+
- chore: consolidate types (#1297) (e00c59e7)
|
|
47
|
+
|
|
48
|
+
### v8.0.0-beta.32
|
|
49
|
+
|
|
50
|
+
- fix: previous/next month navigation with RTL direction (68ad0adf)
|
|
51
|
+
- chore: updated `useInput` API (#1293)
|
|
52
|
+
- chore: removed `defaultSelected` prop (cd4f5790)
|
|
53
|
+
|
|
54
|
+
### v8.0.0-beta.31
|
|
20
55
|
|
|
21
56
|
- Switched to rollup as module bundler
|
|
22
57
|
- Added `custom` selection mode
|
package/README.md
CHANGED
package/build/DayPicker.d.ts
CHANGED
|
@@ -1,88 +1,93 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { DayPickerProps } from './types';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
* `
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
*
|
|
33
|
-
*
|
|
34
|
-
*
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
-
*
|
|
38
|
-
*
|
|
39
|
-
*
|
|
40
|
-
*
|
|
41
|
-
*
|
|
42
|
-
*
|
|
43
|
-
* selection
|
|
44
|
-
*
|
|
45
|
-
*
|
|
46
|
-
*
|
|
47
|
-
*
|
|
48
|
-
*
|
|
49
|
-
*
|
|
50
|
-
*
|
|
51
|
-
*
|
|
52
|
-
*
|
|
53
|
-
*
|
|
54
|
-
*
|
|
55
|
-
*
|
|
56
|
-
*
|
|
57
|
-
*
|
|
58
|
-
*
|
|
59
|
-
*
|
|
60
|
-
*
|
|
61
|
-
*
|
|
62
|
-
*
|
|
63
|
-
*
|
|
64
|
-
*
|
|
65
|
-
*
|
|
66
|
-
*
|
|
67
|
-
*
|
|
68
|
-
*
|
|
69
|
-
*
|
|
70
|
-
*
|
|
71
|
-
*
|
|
72
|
-
*
|
|
73
|
-
*
|
|
74
|
-
*
|
|
75
|
-
*
|
|
76
|
-
*
|
|
77
|
-
*
|
|
78
|
-
*
|
|
79
|
-
*
|
|
80
|
-
*
|
|
81
|
-
*
|
|
82
|
-
*
|
|
83
|
-
*
|
|
84
|
-
*
|
|
85
|
-
*
|
|
86
|
-
*
|
|
87
|
-
|
|
88
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { DayPickerProps } from './types/DayPicker';
|
|
3
|
+
import { DayPickerCustomProps } from './types/DayPickerCustom';
|
|
4
|
+
import { DayPickerMultipleProps } from './types/DayPickerMultiple';
|
|
5
|
+
import { DayPickerRangeProps } from './types/DayPickerRange';
|
|
6
|
+
import { DayPickerSingleProps } from './types/DayPickerSingle';
|
|
7
|
+
/**
|
|
8
|
+
* DayPicker render a date picker component to let users pick dates from a
|
|
9
|
+
* calendar. See http://react-day-picker.js.org for updated documentation and
|
|
10
|
+
* examples.
|
|
11
|
+
*
|
|
12
|
+
* ### Customization
|
|
13
|
+
*
|
|
14
|
+
* DayPicker offers different customization props. For example,
|
|
15
|
+
*
|
|
16
|
+
* - show multiple months using `numberOfMonths`
|
|
17
|
+
* - display a dropdown to navigate the months via `captionLayout`
|
|
18
|
+
* - display the week numbers with `showWeekNumbers`
|
|
19
|
+
* - disable or hide days with `disabled` or `hidden`
|
|
20
|
+
*
|
|
21
|
+
* ### Controlling the months
|
|
22
|
+
*
|
|
23
|
+
* Change the initially displayed month using the `defaultMonth` prop. The
|
|
24
|
+
* displayed months are controlled by DayPicker and stored in its internal
|
|
25
|
+
* state. To control the months yourself, use `month` instead of `defaultMonth`
|
|
26
|
+
* and use the `onMonthChange` event to set it.
|
|
27
|
+
*
|
|
28
|
+
* To limit the months the user can navigate to, use
|
|
29
|
+
* `fromDate`/`fromMonth`/`fromYear` or `toDate`/`toMonth`/`toYear`.
|
|
30
|
+
*
|
|
31
|
+
* ### Selection modes
|
|
32
|
+
*
|
|
33
|
+
* DayPicker supports different selection mode that can be toggled using the
|
|
34
|
+
* `mode` prop:
|
|
35
|
+
*
|
|
36
|
+
* - `mode="single"`: only one day can be selected. Use `required` to make the
|
|
37
|
+
* selection required. Use the `onSelect` event handler to get the selected
|
|
38
|
+
* days.
|
|
39
|
+
* - `mode="multiple"`: users can select one or more days. Limit the amount of
|
|
40
|
+
* days that can be selected with the `min` or the `max` props.
|
|
41
|
+
* - `mode="range"`: users can select a range of days. Limit the amount of days
|
|
42
|
+
* in the range with the `min` or the `max` props.
|
|
43
|
+
* - `mode="custom"`: implement your own selection mode with `onDayClick`.
|
|
44
|
+
*
|
|
45
|
+
* These selection modes should cover the most common use cases. In case you
|
|
46
|
+
* need a more refined way of selecting days, use `mode="custom"`. Use the
|
|
47
|
+
* `selected` props and add the day event handlers to add/remove days from the
|
|
48
|
+
* selection.
|
|
49
|
+
*
|
|
50
|
+
* ### Modifiers
|
|
51
|
+
*
|
|
52
|
+
* A _modifier_ represents different styles or states for the days displayed in
|
|
53
|
+
* the calendar (like "selected" or "disabled"). Define custom modifiers using
|
|
54
|
+
* the `modifiers` prop.
|
|
55
|
+
*
|
|
56
|
+
* ### Formatters and custom component
|
|
57
|
+
*
|
|
58
|
+
* You can customize how the content is displayed in the date picker by using
|
|
59
|
+
* either the formatters or replacing the internal components.
|
|
60
|
+
*
|
|
61
|
+
* For the most common cases you want to use the `formatters` prop to change how
|
|
62
|
+
* the content is formatted in the calendar. Use the `components` prop to
|
|
63
|
+
* replace the internal components, like the navigation icons.
|
|
64
|
+
*
|
|
65
|
+
* ### Styling
|
|
66
|
+
*
|
|
67
|
+
* DayPicker comes with a default, basic style in `react-day-picker/style` – use
|
|
68
|
+
* it as template for your own style.
|
|
69
|
+
*
|
|
70
|
+
* If you are using CSS modules, pass the imported styles object the
|
|
71
|
+
* `classNames` props.
|
|
72
|
+
*
|
|
73
|
+
* You can also style the elements via inline-styles using the `styles` prop.
|
|
74
|
+
*
|
|
75
|
+
* ### Form fields
|
|
76
|
+
*
|
|
77
|
+
* If you need to bind the date picker to a form field, you can use the
|
|
78
|
+
* `useInput` hooks for a basic behavior. See the `useInput` source as an
|
|
79
|
+
* example to bind the date picker with form fields.
|
|
80
|
+
*
|
|
81
|
+
* ### Localization
|
|
82
|
+
*
|
|
83
|
+
* To localize DayPicker, import the locale from `date-fns` package and use the
|
|
84
|
+
* `locale` prop.
|
|
85
|
+
*
|
|
86
|
+
* For example, to use Spanish locale:
|
|
87
|
+
*
|
|
88
|
+
* ```
|
|
89
|
+
* import es from 'date-fns/locale/es';
|
|
90
|
+
* <DayPicker locale={es} />
|
|
91
|
+
* ```
|
|
92
|
+
*/
|
|
93
|
+
export declare function DayPicker(props: DayPickerProps | DayPickerSingleProps | DayPickerMultipleProps | DayPickerRangeProps | DayPickerCustomProps): JSX.Element;
|
package/build/DayPicker.js
CHANGED
|
@@ -1,97 +1,95 @@
|
|
|
1
|
-
import { __assign } from
|
|
2
|
-
import
|
|
3
|
-
import { Root } from './components/Root
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
* -
|
|
16
|
-
* - display
|
|
17
|
-
* -
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
*
|
|
33
|
-
*
|
|
34
|
-
*
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
-
*
|
|
38
|
-
*
|
|
39
|
-
*
|
|
40
|
-
*
|
|
41
|
-
*
|
|
42
|
-
*
|
|
43
|
-
* These selection modes should cover the most common use cases. In case you
|
|
44
|
-
* need a more refined way of selecting days, use `mode="custom"`. Use the
|
|
45
|
-
* `selected` props and add the day event handlers to add/remove days from the
|
|
46
|
-
* selection.
|
|
47
|
-
*
|
|
48
|
-
* ### Modifiers
|
|
49
|
-
*
|
|
50
|
-
* A _modifier_ represents different styles or states for the days displayed in
|
|
51
|
-
* the calendar (like "selected" or "disabled"). Define custom modifiers using
|
|
52
|
-
* the `modifiers` prop.
|
|
53
|
-
*
|
|
54
|
-
* ### Formatters and custom component
|
|
55
|
-
*
|
|
56
|
-
* You can customize how the content is displayed in the date picker by using
|
|
57
|
-
* either the formatters or replacing the internal components.
|
|
58
|
-
*
|
|
59
|
-
* For the most common cases you want to use the `formatters` prop to change how
|
|
60
|
-
* the content is formatted in the calendar. Use the `components` prop to
|
|
61
|
-
* replace the internal components, like the navigation icons.
|
|
62
|
-
*
|
|
63
|
-
* ### Styling
|
|
64
|
-
*
|
|
65
|
-
* DayPicker comes with a default, basic style in `react-day-picker/style` –
|
|
66
|
-
*
|
|
67
|
-
*
|
|
68
|
-
* If you are using CSS modules, pass the imported styles object the
|
|
69
|
-
* `classNames` props.
|
|
70
|
-
*
|
|
71
|
-
* You can also style the elements via inline-styles using the `styles` prop.
|
|
72
|
-
*
|
|
73
|
-
* ### Form fields
|
|
74
|
-
*
|
|
75
|
-
* If you need to bind the date picker to a form field, you can use the
|
|
76
|
-
* `useInput` hooks for a basic behavior. See the `useInput` source as an
|
|
77
|
-
* example to bind the date picker with form fields.
|
|
78
|
-
*
|
|
79
|
-
* ### Localization
|
|
80
|
-
*
|
|
81
|
-
* To localize DayPicker, import the locale from `date-fns` package and use the
|
|
82
|
-
* `locale` prop.
|
|
83
|
-
*
|
|
84
|
-
* For example, to use Spanish locale:
|
|
85
|
-
*
|
|
86
|
-
* ```
|
|
87
|
-
* import es from 'date-fns/locale/es';
|
|
88
|
-
* <DayPicker locale={es} />
|
|
89
|
-
* ```
|
|
90
|
-
*/
|
|
91
|
-
function DayPicker(props) {
|
|
92
|
-
return (React.createElement(
|
|
93
|
-
React.createElement(Root, null)));
|
|
1
|
+
import { __assign } from "tslib";
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { Root } from './components/Root';
|
|
4
|
+
import { RootProvider } from './contexts/RootProvider';
|
|
5
|
+
/**
|
|
6
|
+
* DayPicker render a date picker component to let users pick dates from a
|
|
7
|
+
* calendar. See http://react-day-picker.js.org for updated documentation and
|
|
8
|
+
* examples.
|
|
9
|
+
*
|
|
10
|
+
* ### Customization
|
|
11
|
+
*
|
|
12
|
+
* DayPicker offers different customization props. For example,
|
|
13
|
+
*
|
|
14
|
+
* - show multiple months using `numberOfMonths`
|
|
15
|
+
* - display a dropdown to navigate the months via `captionLayout`
|
|
16
|
+
* - display the week numbers with `showWeekNumbers`
|
|
17
|
+
* - disable or hide days with `disabled` or `hidden`
|
|
18
|
+
*
|
|
19
|
+
* ### Controlling the months
|
|
20
|
+
*
|
|
21
|
+
* Change the initially displayed month using the `defaultMonth` prop. The
|
|
22
|
+
* displayed months are controlled by DayPicker and stored in its internal
|
|
23
|
+
* state. To control the months yourself, use `month` instead of `defaultMonth`
|
|
24
|
+
* and use the `onMonthChange` event to set it.
|
|
25
|
+
*
|
|
26
|
+
* To limit the months the user can navigate to, use
|
|
27
|
+
* `fromDate`/`fromMonth`/`fromYear` or `toDate`/`toMonth`/`toYear`.
|
|
28
|
+
*
|
|
29
|
+
* ### Selection modes
|
|
30
|
+
*
|
|
31
|
+
* DayPicker supports different selection mode that can be toggled using the
|
|
32
|
+
* `mode` prop:
|
|
33
|
+
*
|
|
34
|
+
* - `mode="single"`: only one day can be selected. Use `required` to make the
|
|
35
|
+
* selection required. Use the `onSelect` event handler to get the selected
|
|
36
|
+
* days.
|
|
37
|
+
* - `mode="multiple"`: users can select one or more days. Limit the amount of
|
|
38
|
+
* days that can be selected with the `min` or the `max` props.
|
|
39
|
+
* - `mode="range"`: users can select a range of days. Limit the amount of days
|
|
40
|
+
* in the range with the `min` or the `max` props.
|
|
41
|
+
* - `mode="custom"`: implement your own selection mode with `onDayClick`.
|
|
42
|
+
*
|
|
43
|
+
* These selection modes should cover the most common use cases. In case you
|
|
44
|
+
* need a more refined way of selecting days, use `mode="custom"`. Use the
|
|
45
|
+
* `selected` props and add the day event handlers to add/remove days from the
|
|
46
|
+
* selection.
|
|
47
|
+
*
|
|
48
|
+
* ### Modifiers
|
|
49
|
+
*
|
|
50
|
+
* A _modifier_ represents different styles or states for the days displayed in
|
|
51
|
+
* the calendar (like "selected" or "disabled"). Define custom modifiers using
|
|
52
|
+
* the `modifiers` prop.
|
|
53
|
+
*
|
|
54
|
+
* ### Formatters and custom component
|
|
55
|
+
*
|
|
56
|
+
* You can customize how the content is displayed in the date picker by using
|
|
57
|
+
* either the formatters or replacing the internal components.
|
|
58
|
+
*
|
|
59
|
+
* For the most common cases you want to use the `formatters` prop to change how
|
|
60
|
+
* the content is formatted in the calendar. Use the `components` prop to
|
|
61
|
+
* replace the internal components, like the navigation icons.
|
|
62
|
+
*
|
|
63
|
+
* ### Styling
|
|
64
|
+
*
|
|
65
|
+
* DayPicker comes with a default, basic style in `react-day-picker/style` – use
|
|
66
|
+
* it as template for your own style.
|
|
67
|
+
*
|
|
68
|
+
* If you are using CSS modules, pass the imported styles object the
|
|
69
|
+
* `classNames` props.
|
|
70
|
+
*
|
|
71
|
+
* You can also style the elements via inline-styles using the `styles` prop.
|
|
72
|
+
*
|
|
73
|
+
* ### Form fields
|
|
74
|
+
*
|
|
75
|
+
* If you need to bind the date picker to a form field, you can use the
|
|
76
|
+
* `useInput` hooks for a basic behavior. See the `useInput` source as an
|
|
77
|
+
* example to bind the date picker with form fields.
|
|
78
|
+
*
|
|
79
|
+
* ### Localization
|
|
80
|
+
*
|
|
81
|
+
* To localize DayPicker, import the locale from `date-fns` package and use the
|
|
82
|
+
* `locale` prop.
|
|
83
|
+
*
|
|
84
|
+
* For example, to use Spanish locale:
|
|
85
|
+
*
|
|
86
|
+
* ```
|
|
87
|
+
* import es from 'date-fns/locale/es';
|
|
88
|
+
* <DayPicker locale={es} />
|
|
89
|
+
* ```
|
|
90
|
+
*/
|
|
91
|
+
export function DayPicker(props) {
|
|
92
|
+
return (React.createElement(RootProvider, __assign({}, props),
|
|
93
|
+
React.createElement(Root, null)));
|
|
94
94
|
}
|
|
95
|
-
|
|
96
|
-
export { DayPicker };
|
|
97
|
-
//# sourceMappingURL=DayPicker.js.map
|
|
95
|
+
//# sourceMappingURL=DayPicker.js.map
|
package/build/DayPicker.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DayPicker.js","sources":["../src/DayPicker.tsx"],"
|
|
1
|
+
{"version":3,"file":"DayPicker.js","sourceRoot":"","sources":["../src/DayPicker.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAQ1B,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAEvD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqFG;AACH,MAAM,UAAU,SAAS,CACvB,KAKwB;IAExB,OAAO,CACL,oBAAC,YAAY,eAAK,KAAK;QACrB,oBAAC,IAAI,OAAG,CACK,CAChB,CAAC;AACJ,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
/** The props for the [[Button]] component. */
|
|
3
|
-
export declare type ButtonProps = React.HTMLProps<HTMLButtonElement>;
|
|
4
|
-
/**
|
|
5
|
-
* Render a button HTML element applying the reset class name.
|
|
6
|
-
*/
|
|
7
|
-
export declare const Button: React.ForwardRefExoticComponent<Pick<ButtonProps, "accept" | "acceptCharset" | "action" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "async" | "autoComplete" | "autoFocus" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "
|
|
1
|
+
import React from 'react';
|
|
2
|
+
/** The props for the [[Button]] component. */
|
|
3
|
+
export declare type ButtonProps = React.HTMLProps<HTMLButtonElement>;
|
|
4
|
+
/**
|
|
5
|
+
* Render a button HTML element applying the reset class name.
|
|
6
|
+
*/
|
|
7
|
+
export declare const Button: React.ForwardRefExoticComponent<Pick<ButtonProps, "cite" | "data" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "children" | "className" | "id" | "accept" | "acceptCharset" | "action" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "async" | "autoComplete" | "autoFocus" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "classID" | "cols" | "colSpan" | "content" | "controls" | "coords" | "crossOrigin" | "dateTime" | "default" | "defer" | "disabled" | "download" | "encType" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "headers" | "height" | "high" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "list" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "media" | "mediaGroup" | "method" | "min" | "minLength" | "multiple" | "muted" | "name" | "nonce" | "noValidate" | "open" | "optimum" | "placeholder" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "size" | "sizes" | "src" | "srcDoc" | "srcLang" | "srcSet" | "start" | "step" | "target" | "type" | "useMap" | "value" | "width" | "wmode" | "wrap" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "lang" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key"> & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -1,23 +1,20 @@
|
|
|
1
|
-
import { __assign } from
|
|
2
|
-
import
|
|
3
|
-
import { useDayPicker } from '../../contexts/DayPicker
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
var
|
|
9
|
-
var
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
var
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
}
|
|
19
|
-
return (React.createElement("button", __assign({}, props, { ref: ref, type: "button", className: className, style: style })));
|
|
1
|
+
import { __assign } from "tslib";
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { useDayPicker } from '../../contexts/DayPicker';
|
|
4
|
+
/**
|
|
5
|
+
* Render a button HTML element applying the reset class name.
|
|
6
|
+
*/
|
|
7
|
+
export var Button = React.forwardRef(function (props, ref) {
|
|
8
|
+
var _a = useDayPicker(), classNames = _a.classNames, styles = _a.styles;
|
|
9
|
+
var classNamesArr = [classNames.button_reset, classNames.button];
|
|
10
|
+
if (props.className) {
|
|
11
|
+
classNamesArr.push(props.className);
|
|
12
|
+
}
|
|
13
|
+
var className = classNamesArr.join(' ');
|
|
14
|
+
var style = __assign(__assign({}, styles.button_reset), styles.button);
|
|
15
|
+
if (props.style) {
|
|
16
|
+
Object.assign(style, props.style);
|
|
17
|
+
}
|
|
18
|
+
return (React.createElement("button", __assign({}, props, { ref: ref, type: "button", className: className, style: style })));
|
|
20
19
|
});
|
|
21
|
-
|
|
22
|
-
export { Button };
|
|
23
|
-
//# sourceMappingURL=Button.js.map
|
|
20
|
+
//# sourceMappingURL=Button.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.js","sources":["../../../src/components/Button/Button.tsx"],"
|
|
1
|
+
{"version":3,"file":"Button.js","sourceRoot":"","sources":["../../../src/components/Button/Button.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAKlD;;GAEG;AACH,MAAM,CAAC,IAAM,MAAM,GAAG,KAAK,CAAC,UAAU,CACpC,UAAC,KAAK,EAAE,GAAG;IACH,IAAA,KAAyB,YAAY,EAAE,EAArC,UAAU,gBAAA,EAAE,MAAM,YAAmB,CAAC;IAE9C,IAAM,aAAa,GAAG,CAAC,UAAU,CAAC,YAAY,EAAE,UAAU,CAAC,MAAM,CAAC,CAAC;IACnE,IAAI,KAAK,CAAC,SAAS,EAAE;QACnB,aAAa,CAAC,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;KACrC;IACD,IAAM,SAAS,GAAG,aAAa,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAE1C,IAAM,KAAK,yBAAQ,MAAM,CAAC,YAAY,GAAK,MAAM,CAAC,MAAM,CAAE,CAAC;IAC3D,IAAI,KAAK,CAAC,KAAK,EAAE;QACf,MAAM,CAAC,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;KACnC;IAED,OAAO,CACL,2CACM,KAAK,IACT,GAAG,EAAE,GAAG,EACR,IAAI,EAAC,QAAQ,EACb,SAAS,EAAE,SAAS,EACpB,KAAK,EAAE,KAAK,IACZ,CACH,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './Button';
|
|
1
|
+
export * from './Button';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Button/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC"}
|
|
@@ -1,11 +1,20 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
/** Represent the props of the [[Caption]] component. */
|
|
3
|
-
export interface CaptionProps {
|
|
4
|
-
/** The
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
/** Represent the props of the [[Caption]] component. */
|
|
3
|
+
export interface CaptionProps {
|
|
4
|
+
/** The ID for the heading element. Must be the same as the labelled-by in Table. */
|
|
5
|
+
id?: string;
|
|
6
|
+
/** The month where the caption is displayed. */
|
|
7
|
+
displayMonth: Date;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* The layout of the caption:
|
|
11
|
+
*
|
|
12
|
+
* - `dropdown`: display dropdowns for choosing the month and the year.
|
|
13
|
+
* - `buttons`: display previous month / next month buttons.
|
|
14
|
+
*/
|
|
15
|
+
export declare type CaptionLayout = 'dropdown' | 'buttons';
|
|
16
|
+
/**
|
|
17
|
+
* Render the caption of a month, which includes title and navigation buttons.
|
|
18
|
+
* The caption has a different layout when setting the [[DayPickerProps.captionLayout]] prop.
|
|
19
|
+
*/
|
|
20
|
+
export declare function Caption(props: CaptionProps): JSX.Element;
|