A datetime picker for your React app.
MIT License
react
and react-dom
.Published by wojtekmaj 6 months ago
❗️ = breaking change
propTypes
were removed. If you’re using propTypes
, we recommend migrating to TypeScript or another type-checking solution.calendarProps
and clockProps
props respectively. This change was made to avoid conflicts with React-DateTime-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
Published by wojtekmaj over 1 year ago
DateTimePickerProps
type is now exported for your convenience.onInvalidChange
prop.onChange
and onFocus
props (#375).Published by wojtekmaj over 1 year ago
shouldOpenWidgets
and shouldCloseWidgets
props (#374).onClick
or onTouchStart
.Published by wojtekmaj over 1 year ago
calendarIcon
and clearIcon
not allowing null
values.Published by wojtekmaj over 1 year ago
source
field and added types
field in package.json
.Published by wojtekmaj over 1 year ago
onChange
callback (it's now explicitly Date | [Date, Date]
instead of Date | Date[]
).portalContainer
props not allowing null
values, which made it hard to use.Published by wojtekmaj over 1 year ago
This is one of the biggest update - for React-DateTime-Picker and for me personally. React-DateTime-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 186 unit tests we have, please let me know. I hope you will like it.
❗️ = breaking change
id
prop.clearIcon
, calendarIcon
and clockIcon
as React functions (e.g. clearIcon={MyIcon}
).Published by wojtekmaj over 1 year ago
data-testid
prop.typeof window …
checks with typeof document …
checks).