v9.0.0 released #2280
Replies: 5 comments 20 replies
-
Great job @gpbl Too many I tried migration from 8 to 9rc-5 a couple days ago and had difficult experience with no success at the end. You are the best one know what has changed. |
Beta Was this translation helpful? Give feedback.
-
@TheMikeyRoss We need to rely on third-party packages for supporting other calendars, as we do for date-fns-jalali. In the JS ecosystem see only https://www.npmjs.com/package/hijri-date and its HijriDate.js. I have no experience with this calendar - is an updated Date constructor as in HijriDate enough? If yes, then this should work: import HijriDate from 'hijri-date';
<DayPicker dateLib={{ Date: HijriDate }} /> |
Beta Was this translation helpful? Give feedback.
-
what is the new class to replace the old nav_button? |
Beta Was this translation helpful? Give feedback.
-
@gpbl I think you'll be bombarded with devs having issues specifically with the incompatible classnames with shadcn-ui 😅 I think the best course of action is to make a code snippet of the new way to replicate shadcn-ui/calendar and pin it in the discussion board. I wish I could help with that but I'm also stuck with nav buttons, table, rows, cells, and pretty much 60% of the deprecated classes. |
Beta Was this translation helpful? Give feedback.
-
It seems the @AhmedBaset Are you facing something similar? where the selected day changes to light gray when you hover on it? (from shadcn) |
Beta Was this translation helpful? Give feedback.
-
DayPicker v9 is a major release including significant updates related to accessibility, customization and localization.
Install the Latest Version
What’s New
date-fns
from peer dependencies to dependencies.dropdown-years
anddropdown-months
caption layouts.hideWeekdayRow
andhideNavigation
props.strict
mode.Breaking Changes
While we tried to keep the API as stable as possible, some breaking changes were necessary to improve the library:
useInput
hook has been removed. See Input fields guide for more details.onWeekNumberClick
has been removed. Use a custom component to handle week number clicks.Upgrading Guide
We prepared a Upgrading guide for help upgrading your app to v9. We welcome feedback about the upgrade process, to ensure it's smooth for everyone.
Compatibility
DayPicker v9 is compatible with React 16.8+.
Get Support and Report Issues
Get support, report issues, and provide feedback on the Discussion forums. Thanks.
New Contributors
??
ingetNextMonth
#2275Full Changelog: v8.10.1...v9.0.0
This discussion was created from the release v9.0.0.
Beta Was this translation helpful? Give feedback.
All reactions