Skip to content

Releases: wojtekmaj/react-time-picker

v6.3.0

21 Jul 19:25
5d355f6
Compare
Choose a tag to compare

What's new?

  • Improved RSC compatibility. You no longer need to add 'use client'; to the parent component for this component to work.

Bug fixes

  • @types/react and @types/react-dom are now optional peerDependencies, which eliminates errors caused by duplicate typings.

v6.2.1

16 Jul 08:22
9bd7bf2
Compare
Choose a tag to compare

What's changed?

  • Updated clsx dependency to 2.0.0 to enable ESM support in the near future.

v6.2.0

22 May 17:41
db0a23c
Compare
Choose a tag to compare

What's new?

  • TimePickerProps type is now exported for your convenience.
  • Added support for onInvalidChange prop.

Bug fixes

  • Fixed types for onChange and onFocus props.

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.