A time range picker for your React app.
MIT License
❗️ = breaking change
propTypes
were removed. If you’re using propTypes
, we recommend migrating to TypeScript or another type-checking solution.clockProps
prop. This change was made to avoid conflicts with React-TimeRange-Picker's own props and to make customization easier.Published by wojtekmaj 11 months ago
Published by wojtekmaj about 1 year ago
Published by wojtekmaj about 1 year ago
Published by wojtekmaj about 1 year ago
Published by wojtekmaj about 1 year ago
Published by wojtekmaj over 1 year ago
'use client';
to the parent component for this component to work.@types/react
and @types/react-dom
are now optional peerDependencies, which eliminates errors caused by duplicate typings.Published by wojtekmaj over 1 year ago
Published by wojtekmaj over 1 year ago
TimeRangePickerProps
type is now exported for your convenience.onInvalidChange
prop.onChange
and onFocus
props.Published by wojtekmaj over 1 year ago
shouldOpenClock
and shouldCloseClock
props.Published by wojtekmaj over 1 year ago
clearIcon
and clockIcon
not allowing null
values.Published by wojtekmaj over 1 year ago
onChange
callback.portalContainer
props not allowing null
values, which made it hard to use.source
field and added types
field in package.json
.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
id
prop.clearIcon
and clockIcon
as React functions (e.g. clearIcon={MyIcon}
).data-testid
prop.typeof window …
checks with typeof document …
checks).❗️ = breaking change
portalContainer
prop.❗️ React-TimeRange-Picker no longer supports React versions lower than 16.8.