Skip to content

Releases: wojtekmaj/react-time-picker

v6.1.0

18 May 14:28
3d1b216
Compare
Choose a tag to compare

What's new?

  • Added support for shouldOpenClock and shouldCloseClock props.

Bug fixes

  • Fixed type checking of event handler props like onClick or onTouchStart.
  • Fixed focus jumping two fields when two keys were pressed at once (#131).

v6.0.4

11 Apr 08:49
70bca2d
Compare
Choose a tag to compare

Bug fixes

  • Fixed types for clearIcon and clockIcon not allowing null values (#296).
  • Fixed inconsistent text color inside input when text color was set to other than default (#288). Thanks, @Jib-Abdel!

v6.0.3

06 Apr 08:16
fea0ca8
Compare
Choose a tag to compare

Bug fixes

  • Fixed source field and added types field in package.json.

v6.0.2

05 Apr 09:02
020c37a
Compare
Choose a tag to compare

Bug fixes

  • Improved type accuracy for value prop and onChange callback.

v6.0.1

05 Apr 08:48
ccc1aac
Compare
Choose a tag to compare

Bug fixes

  • Fixed types for portalContainer props not allowing null values, which made it hard to use.
  • Fixed props passed along to React-Clock not typed correctly.

v6.0.0

04 Apr 09:21
38f3eb9
Compare
Choose a tag to compare

This is one of the biggest update - for React-Time-Picker and for me personally. React-Time-Picker has been rewritten from scratch using TypeScript and React Hooks. I've put a tremendous amount of effort to modernize the package without introducing any major breaking changes. If, however, something have slipped through 259 unit tests we have, please let me know. I hope you will like it.

❗️ = breaking change

What's new?

  • Converted package to TypeScript (#285).
  • Rewritten package using React Hooks (#284).
  • Added named export support.
  • Added support for id prop.
  • Added support for passing clearIcon and clockIcon as React functions (e.g. clearIcon={MyIcon}).

What's changed?

  • ❗️ React-Time-Picker no longer imports its styles by default. If you want to continue to use them, import them separately as instructed in README.
  • Updated React-Clock to 4.2.0.

v5.2.0

18 Jan 07:58
a25e81f
Compare
Choose a tag to compare

What's new?

  • Added support for data-testid prop.
  • Increased compatibility with Deno (replaced typeof window … checks with typeof document … checks).

What's changed?

  • Replaced Less with CSS. Don't worry - the CSS produced didn't change, we just have one less tool in our stack.

Bug fixes

  • Fixed "Warning: useLayoutEffect does nothing on the server" warning when using SSR (see: wojtekmaj/react-daterange-picker#152).
  • Fixed divider and leading zero positioning.
  • Fixed native time picker sometimes showing on Safari.

v5.1.0

08 Nov 10:39
fc55c06
Compare
Choose a tag to compare

What's changed?

  • Updated React-Clock to 4.0.0.
  • Replaced merge-class-names with clsx.

v5.0.0

14 Sep 10:02
626a317
Compare
Choose a tag to compare

❗️ = breaking change

What's new?

  • Improved Preact compatibility.
  • Added support for portalContainer prop.

What's changed?

❗️ React-Time-Picker no longer supports React versions lower than 16.8.

Bug fixes

  • Fixed inputs sometimes not properly sized until focused.
  • Fixed memory leak when calling getFormatter.
  • Fixed jumping between fields using arrow keys not working on AM/PM dropdown

v4.5.0

04 Feb 12:11
936a1a5
Compare
Choose a tag to compare

What's new?

  • Added support for React 18.
  • Clock now closes when Escape key is pressed.

What's changed?

  • Improved performance of date formatters.

Bug fixes

  • Fixes styles not reset on Clock close.