Skip to content

Releases: rehookify/datepicker

Fix Months Buttons

20 Mar 20:18
a8081d0
Compare
Choose a tag to compare

⚙️ fix Months buttons disabled state when min and max dates provided to config.

Edge offset detection

20 Feb 09:16
Compare
Choose a tag to compare

Thanks to @susosamuel and his #51
Now add/subtractOffset functions defines the edge and allows to switch to the month with max/minDate but set offset to the edge.

Fix: rollback bad typings

14 Feb 09:03
79df6a4
Compare
Choose a tag to compare
  • 🛠️ fix bad typings for Providers
  • 🔁 rallback transition to functions
  • 🆙 bump all deps to latest

Accessibility improvements

01 Dec 19:37
3433c9b
Compare
Choose a tag to compare
  1. All instances now have only one item with tabIndex: 0 it is defined by the active prop which is calculated based on offsetDate.
    It will help navigate the calendar, month, years and time with the Tab key.
  2. Fix the edge case in the create month test where it failed when the current month is December. The date-picker worked as expected tho.

Docs fix

30 Nov 10:49
Compare
Choose a tag to compare
  • fix the tutorials link at the bottom of the README.md
  • change exports in several files

Colocate variables

29 Nov 21:47
Compare
Choose a tag to compare
  • remove constants.ts and colocate all variables directly to the places of use
  • simplify all generative functions for calendars, years, months and time
  • move several files from const to var + functions

Array creation performance

28 Nov 19:44
Compare
Choose a tag to compare

Change logic for array creation for calendars, time, month and years.
It should work 2 times faster and make UX much better.

External documentation

27 Nov 13:58
Compare
Choose a tag to compare
  • updated README.md with new documentation

Now documentation lives on rehookify.com/datepicker

DevEx improments

03 Nov 10:04
fe84137
Compare
Choose a tag to compare

In order to simplify setup and CONTRIBUTION to the library we moved to the pnpm with workspace.
It gives us such benefits:

  • single install, now you need to run pnpm i in the root folder
  • workspace package linking, examples app will get the latest version of the datepicker automatically
  • consistent e2e, because of the previous point we can test over the latest lib version in CI
  • the simplicity of running the app for development pnpm dev in the root folder will run dev server and build lib in watch mode

All changes was reflected in the CONTRIBUTING.md

Fix month and year button behaviour with min/maxDate

10 Sep 12:51
Compare
Choose a tag to compare

Month and Year buttons now check only if the next offset will be more than the corresponding entity.
It will allow you to see all available dates at the closest edges to min/maxDate
If maxDate is 5 of November then November will be available in the Month picker