A date picker for your React app.
MIT License
Bot releases are hidden (Show)
❗️ = breaking change
propTypes
were removed. If you’re using propTypes
, we recommend migrating to TypeScript or another type-checking solution.calendarProps
prop. This change was made to avoid conflicts with React-Date-Picker's own props and to make customization easier.Published by wojtekmaj 10 months ago
Published by wojtekmaj almost 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 about 1 year ago
Published by wojtekmaj about 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
clsx
dependency to 2.0.0
to enable ESM support in the near future.Published by wojtekmaj over 1 year ago
DatePickerProps
type is now exported for your convenience.onInvalidChange
prop (#398, #509). Thanks, @irunner-toptal!onChange
and onFocus
props.Published by wojtekmaj over 1 year ago
shouldOpenCalendar
and shouldCloseCalendar
props.onClick
or onTouchStart
.Published by wojtekmaj over 1 year ago
calendarIcon
and clearIcon
not allowing null
values.index.d.ts
files published in the package.Published by wojtekmaj over 1 year ago
minDetail
to be passed along in calendarProps.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-Date-Picker and for me personally. React-Date-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 207 unit tests we have, please let me know. I hope you will like it.
❗️ = breaking change
id
prop.clearIcon
and calendarIcon
as React functions (e.g. clearIcon={MyIcon}
).Published by wojtekmaj over 1 year ago
data-testid
prop.typeof window …
checks with typeof document …
checks).Published by wojtekmaj about 2 years ago
❗️ = breaking change
portalContainer
prop (#91).❗️ React-Date-Picker no longer supports React versions lower than 16.8.
closeCalendar
was set to false (#361).