v9.1.0
Thank you for using and helping improve DayPicker. Here are the notable changes in this release:
- Updated to date-fns v4.
- Please update
@date-fns/utc
if you are usingreact-day-picker/utc
.
- Please update
- Introduced new custom components for dropdowns and navigation buttons.
- Fixed issues with controlled vs. uncontrolled selections not working as expected.
What's Changed
- build: update to date-fns@4 by @gpbl in #2466
- feat: add
PreviousMonthButton
andNextMonthButton
to custom components by @gpbl in #2437 - feat: add
MonthsDropdown
andYearsDropdown
custom components by @gpbl in #2454 - feat(types): remove restrictions on
components
andclassNames
prop types by @gpbl in #2452 - feat(types): add
OnSelectHandler
type by @gpbl in #2436 - fix: controlled vs. uncontrolled selections by @gpbl in #2462
- fix: use correct month to disable
Chevron
ofNextMonthButton
by @qgadrian in #2449 - fix(types): add missing
ClassNames
types for dropdowns by @hsnaydd in #2441 - chore: remove unnecessary
labelOptions
fromlabelNext
andlabelPrevious
by @gpbl in #2434 - chore: move
Nav
to its own component by @gpbl in #2435 - chore(types): deprecate
Button
inCustomComponents
by @gpbl in #2439
New Contributors
Full Changelog: v9.0.9...v9.1.0