Releases: gpbl/react-day-picker
v9.2.0
This release addresses an issue with localization and applies some fixes for types and CSS exports.
What's Changed
- feat: new
DateLib
class by @gpbl and @daveallie in #2550 - fix(localization): Australian locale may not work as expected by @gpbl and @daveallie in #2550
- fix(styles): day buttons height and width are reversed by @merlinio2000 in #2552
- fix(types): argument of type 'Date' is not assignable to parameter of type 'never' by @cosminpsk in #2542
- build: improve css exports in package.json by @karlshea in #2547
New Contributors
- @karlshea made their first contribution in #2547
- @cosminpsk made their first contribution in #2542
- @daveallie made their first contribution in #2550
- @merlinio2000 made their first contribution in #2552
Full Changelog: v9.1.4...v9.2.0
v9.1.4
This release fixes a localization issue and improves export compatibility across various Node.js environments.
What's Changed
- fix: month not being localized with
dropdown-years
caption layout by @gpbl in #2497 - build: update exports in package.json for better compatibility by @gpbl in #2535
Full Changelog: v9.1.3...v9.1.4
v9.1.3
This release includes some minor build fixes and documentation updates.
What's Changed
- build: add
tsconfig-base.json
to package by @luucvanderzee in #2492 - build(deps): bump @date-fns/tz to 1.1.2 by @gpbl in #2494
New Contributors
- @luucvanderzee made their first contribution in #2492
Full Changelog: v9.1.2...v9.1.3
v9.1.2
v9.1.1
This release improves reliability for controlled mode and adds experimental support for time zones.
Time Zone Support
By integrating the @date-fns/tz utilities for handling time zones, we have added a new experimental timeZone
prop. Please see the updated docs for more details.
import { DayPicker, TZDate } from 'react-day-picker';
<DayPicker
timeZone="Europe/Athens" // set the time zone
disabled={TZDate.tz("Europe/Athens")} // make sure you use `TZDate` to initialize dates
/>
Note
If you were using the experimental react-day-picker/utc
module, you can skip now it. Remove the @date-fns/utc
package and just pass timeZone="UTC"
to <DayPicker />
.
What's Changed
- fix: make sure internal state is not updated in controlled mode by @gpbl in #2473
- feat: new
timeZone
prop (experimental) by @gpbl in #2467 - feat: export locales from
react-day-picker/locale
by @gpbl in #2474
Full Changelog: v9.1.0...v9.1.1
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
v9.0.9
This release fixes a regression causing the calendar to reset when selecting the days, improves compatibility with the previous version and fixes some other bugs.
What's Changed
- feat: added back more properties to the value returned by
useDayPicker
by @gpbl in #2427 - fix: calendar is reset after selecting a day by @gpbl in #2429
- fix(style): remove unnecessary styles to buttons in footer in DayPicker by @hsnaydd in #2383
- fix(style): missing class names for months and years dropdowns @hsnaydd in #2394
- fix(utilities):
dateMatchModifiers
to usedefaultDateLib
by @gpbl in #2413 - fix(types): add
formatWeekNumberHeader
toFormatters
by @gpbl in #2412 - fix(types): add missing
ChevronProps
export by @rishabh-ink in #2363
New Contributors
- @mahata made their first contribution in #2388
- @1eeminhyeong made their first contribution in #2391
- @hsnaydd made their first contribution in #2383
Full Changelog: v9.0.8...v9.0.9
v9.0.8
v9.0.7
This release improves compatibility with v8 and fix an issue with the calendar navigation.
What's Changed
- fix: update calendar state when
startMonth
orendMonth
change by @gpbl in #2343 - feat: allow partial locales, export
defaultLocale
by @gpbl in #2348 - feat: allow
undefined
as initially selected value, as it was in v8 by @gpbl in #2341 - docs: changed class name
calendar
toroot
in the examples by @gpbl in #2347 - docs: replaced deprecated props by @josephmarkus in #2336*
New Contributors
- @josephmarkus made their first contribution in #2336
Full Changelog: v9.0.6...v9.0.7
v9.0.6
This release addresses the failed import of the common-js module for some app builder and add new data-
attributes to help the integration with Tailwind. Thanks for your feedback!
What's Changed
- fix(build): add package.json to dist/cjs module by @gpbl in #2330
- feat: add new data-attributes to the day cells by @gpbl in #2331
New Contributors
Full Changelog: v9.0.5...v9.0.6