react-timerange-picker

A time range picker for your React app.

MIT License

Downloads
19.8K
Stars
88
Committers
3
react-timerange-picker - Latest Release

Published by wojtekmaj 6 months ago

❗️ = breaking change

What's changed?

  • Added support for React 19.
  • ❗️ New JSX transform is now required. Most likely, you’re already using it, but if you’re not, you’ll need to enable it by following the instructions in the linked blog post.
  • ❗️ propTypes were removed. If you’re using propTypes, we recommend migrating to TypeScript or another type-checking solution.
  • ❗️ Props intended for consumption by React-Clock should now be passed via the clockProps prop. This change was made to avoid conflicts with React-TimeRange-Picker's own props and to make customization easier.

Bug fixes

  • Fixed leading zero having different font in certain scenarios. Thanks, @AaronWatson2975!
react-timerange-picker - v5.5.0

Published by wojtekmaj 11 months ago

What's new?

  • Improved developer experience by moving prop documentation to JSDoc. This means that you can now see descriptions, default values, and examples for all props in your IDE.
  • Improved documentation.
react-timerange-picker - v5.4.4

Published by wojtekmaj about 1 year ago

What's new?

react-timerange-picker - v5.4.3

Published by wojtekmaj about 1 year ago

Bug fixes

  • Fixed "Failed prop type: TimeRangePicker: prop type portalContainer is invalid" error when using server-side rendering.
react-timerange-picker -

Published by wojtekmaj about 1 year ago

Bug fixes

  • Fixed ESM build not working correctly in some environments.
react-timerange-picker - v5.4.1

Published by wojtekmaj about 1 year ago

Bug fixes

  • Fixed "ReferenceError: HTMLElement is not defined" error when using server-side rendering.
react-timerange-picker - v5.4.0

Published by wojtekmaj about 1 year ago

What's new?

  • Added support for native ESM modules (#202).

What's changed?

  • Improved propTypes.
  • Improved TypeScript types.

Bug fixes

  • Fixed propTypes declared twice in every declaration file.
react-timerange-picker - v5.3.0

Published by wojtekmaj over 1 year ago

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.
react-timerange-picker - v5.2.1

Published by wojtekmaj over 1 year ago

What's changed?

  • Updated various dependencies to enable ESM support in the near future.
react-timerange-picker - v5.2.0

Published by wojtekmaj over 1 year ago

What's new?

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

Bug fixes

  • Fixed types for onChange and onFocus props.
react-timerange-picker - v5.1.0

Published by wojtekmaj over 1 year ago

What's new?

  • Added support for shouldOpenClock and shouldCloseClock props.
react-timerange-picker - v5.0.3

Published by wojtekmaj over 1 year ago

Bug fixes

  • Fixed types for clearIcon and clockIcon not allowing null values.
  • Fixed inconsistent text color inside input when text color was set to other than default.
react-timerange-picker - v5.0.1

Published by wojtekmaj over 1 year ago

Bug fixes

  • Improved type accuracy for value prop and onChange callback.
  • Fixed types for portalContainer props not allowing null values, which made it hard to use.
  • Fixed source field and added types field in package.json.
  • Fixed TypeScript types not being included in the published package.
react-timerange-picker - v5.0.0

Published by wojtekmaj over 1 year ago

This is one of the biggest update - for React-TimeRange-Picker and for me personally. React-TimeRange-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 dozens of unit tests we have, please let me know. I hope you will like it.

❗️ = breaking change

What's new?

  • Converted package to TypeScript (#37, #169).
  • Rewritten package using React Hooks (#167).
  • 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-TimeRange-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-Time-Picker to 6.0.0.
  • Updated React-Clock to 4.2.0.
react-timerange-picker -

Published by wojtekmaj almost 2 years ago

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

react-timerange-picker -

Published by wojtekmaj almost 2 years ago

What's changed?

  • Updated React-Clock to 4.0.0.
  • Updated React-Time-Picker to 5.1.0.
  • Replaced merge-class-names with clsx.
react-timerange-picker -

Published by wojtekmaj about 2 years ago

❗️ = breaking change

What's new?

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

What's changed?

❗️ React-TimeRange-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
react-timerange-picker -

Published by wojtekmaj over 2 years ago

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.
react-timerange-picker -

Published by wojtekmaj about 3 years ago

Bug fixes

  • Fix crash after make-event-props update.
react-timerange-picker -

Published by wojtekmaj about 3 years ago

Bug fixes

  • Fixed Clock opening behind AM/PM dropdown.
  • Fixed autoselect on focus not working on Internet Explorer 11.
  • Fixed typing over values not working on Internet Explorer 11.