Skip to content

Releases: gpbl/react-day-picker

v9.5.0

29 Dec 23:05
Compare
Choose a tag to compare

This release adds full support for the Persian calendar and a new numerals prop to set the numbering system.

Breaking Change: Dropdown Formatters

The formatMonthDropdown and formatYearDropdown now receive a Date (instead of a number) as first argument.

<DayPicker formatters={{ 
-     formatMonthDropdown: (month) => format(new Date(month), "mmmm") }} 
+     formatMonthDropdown: (date) => format(date, "mmmm") }} />
-     formatYearDropdown: (year) => format(new Date(year), "yyyy") }} 
+     formatYearDropdown: (date) => format(date, "yyyy") }} />
/>

Persian Calendar

Persian Calendar get fulls support in DayPicker and replaces the previous "Jalali Calendar".

If you were using DayPicker from react-day-picker/jalali, change your imports to react-day-picker/persian:

- import { DayPicker } from  `react-day-picker/jalali`;
+ import { DayPicker } from  `react-day-picker/persian`;

See the Persian calendar documentation for more details about using Persian calendar in DayPicker.

What's Changed

  • feat: add Persian calendar support by @gpbl in #2645
  • feat: add new numerals prop by @gpbl in #2647
  • feat: add today, newDate, timeZone to the DateLib class by @gpbl in #2642
  • feat: remove startMonth/endMonth constraints when caption layout is dropdown-months by @rodgobbi in #2648
  • build: add date-fns-jalali to the package dependencies by @gpbl in #2640
  • fix(breaking): dropdown formatters to use dateLib format by @gpbl in #2644
  • fix(jalali): incorrect Jalali month names when using dropdown layouts by @gpbl in #2645
  • fix(chore): always use Date constructor from dateLib by @gpbl in #2636
  • fix(chore): use dateLib for getting days/months/years from a Date by @gpbl in #2643

Full Changelog: v9.4.4...v9.5.0

v9.4.4

15 Dec 19:07
ee20914
Compare
Choose a tag to compare

This release fixes an issue with the month names in the Jalali calendar.

What's Changed

  • fix(jalali): defaults calendar to faIR locale and RTL direction by @gpbl in #2624

Full Changelog: v9.4.3...v9.4.4

v9.4.3

11 Dec 22:58
Compare
Choose a tag to compare

This release enhances compatibility with React 19.

What's Changed

  • chore(types): update HTML attributes for React 19 compatibility by @gpbl in #2621
  • refactor(jest): switch to @swc/jest for faster transforms by @thevuong in #2620

New Contributors

Full Changelog: v9.4.2...v9.4.3

v9.4.2

08 Dec 23:11
a617141
Compare
Choose a tag to compare

This release addresses some bugs in the dropdown caption layout.

What's Changed

New Contributors

Full Changelog: v9.4.1...v9.4.2

v9.4.1

30 Nov 23:50
35a2824
Compare
Choose a tag to compare

This release improves support for screen readers and fixes a VoiceOver issue when navigating the calendar.

What's Changed

  • fix(a11y): improve screen reader and VoiceOver support by @gpbl in #2609
  • feat(a11y): added role and aria-label props by @gpbl in #2609
  • chore(style): remove unused CSS variable by @gpbl in #2610
  • chore: use callbacks for dropdown event handlers by @gpbl in #2602

Full Changelog: v9.4.0...v9.4.1

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