Skip to content

Releases: gpbl/react-day-picker

v9.4.0

24 Nov 15:12
10bbecb
Compare
Choose a tag to compare

This version includes support for broadcast calendars and some style fixes.

What's Changed

  • feat: add support for broadcast calendars by @Nradar in #2597
  • fix(styles): dropdown not appearing as focused by @gpbl in #2600
  • fix(styles): inconsistent cell size when selection mode is set by @gpbl in #2601
    • please note that the CSS variables --rdp-day-height, --rdp-day-width, --rdp-day-button-height, --rdp-day-button-width have been updated to pixel values (44px for day cells and 42px for day buttons).

New Contributors

Full Changelog: v9.3.2...v9.4.0

v9.3.2

18 Nov 10:27
Compare
Choose a tag to compare

Bug fixes.

What's Changed

  • fix: "outside days" were shown even when beforeMonth was set by @rodgobbi in #2578

Full Changelog: v9.3.1...v9.3.2

v9.3.1

16 Nov 14:24
1f0506b
Compare
Choose a tag to compare

Bug fixes.

What's Changed

  • fix: months with 4 weeks not displaying 6 weeks when fixedWeeks is used by @gpbl in #2590
  • fix(types): formatMonthDropdown throwing a type error by @gpbl in #2584
  • chore(types): added deprecated initialFocus and InternalModifiers types by @gpbl in #2582
  • chore: removed not used selectionStates from useGetModifiers() by @gpbl in #2586
  • build: update @date-fns/tz package to v1.2.0 by @gpbl in #2591

Full Changelog: v9.3.0...v9.3.1

v9.3.0

05 Nov 10:30
79fc047
Compare
Choose a tag to compare

This release adds the dayPickerProps to the values returned by useDayPicker, enabling access to these props from custom components.

Thanks to the work by @rodgobbi, we could enhance the performance when selecting a range of days.

We’ve also updated the default style to preserve the font-family inherited from the parent element. To restore the previous behavior, update the .rdp-root CSS class to include font-family: system-ui.

What's Changed

  • feat: return dayPickerProps from useDayPicker by @gpbl in #2572
  • fix(style): remove system-ui font family from default style by @gpbl in #2573
  • Improve performance when selecting long ranges of days by @rodgobbi in #2537

New Contributors

Full Changelog: v9.2.1...v9.3.0

v9.2.1

27 Oct 19:11
903745c
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v9.2.0...v9.2.1

v9.2.0

23 Oct 10:28
6b03f89
Compare
Choose a tag to compare

This release addresses an issue with localization and applies some fixes for types and CSS exports.

What's Changed

New Contributors

Full Changelog: v9.1.4...v9.2.0

v9.1.4

15 Oct 11:04
3f0e304
Compare
Choose a tag to compare

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

26 Sep 23:27
f56c3ce
Compare
Choose a tag to compare

This release includes some minor build fixes and documentation updates.

What's Changed

New Contributors

Full Changelog: v9.1.2...v9.1.3

v9.1.2

22 Sep 21:24
5dd5c11
Compare
Choose a tag to compare

What's Changed

  • fix: validate HTML output by @gpbl in #2475
  • fix: use of dateLib to work when mocking dates by @gpbl in #2481
  • fix(types): Improve DayPickerContext type by @gpbl in #2479
  • build(deps): update @date-fs/tz package by @gpbl in #2480

Full Changelog: v9.1.1...v9.1.2

v9.1.1

19 Sep 13:41
d8ce7bc
Compare
Choose a tag to compare

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