Skip to content

Commit 6bf1acf

Browse files
renejfcAlanFnz
andauthored
feat: calendar refactor and multiple choices (#558)
* refactor: migrate calendar from react-aria to react-day-picker * refactor: calendar current features * feat: add multiple date selection mode to Calendar component * fix: add react-day-picker dep * fix: lint warns * refactor: rename classNames prop in Calendar to avoid naming conflicts * fix: improve Calendar and DatePicker components integration * feat: add minValue prop to DatePicker to disable dates before threshold * feat: date components refactor * fix: typing * chore: replace type using date-fns format * chore: replace useMemo usage with React.memo for DayButton * chore: calendar day button refactor * feat: support auto focus * feat: make segments the default config for date picker * chore: small refactor * fix: support disabled prop in text variant * chore: add type overloads * fix: support on blur and make mode param optional for single props * feat: allow uncontrolled value on every mode * feat: support modifiers and on day click props * chore: cleanup * feat: support up to six visible months * chore: cleanup * feat: support hide out of range flag --------- Co-authored-by: Alan Fernández Saavedra <[email protected]>
1 parent 7e11272 commit 6bf1acf

File tree

14 files changed

+1283
-269
lines changed

14 files changed

+1283
-269
lines changed

package-lock.json

Lines changed: 44 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,7 @@
170170
"date-fns": "^2.11.1",
171171
"react-aria": "3.39.0",
172172
"react-aria-components": "1.8.0",
173+
"react-day-picker": "^9.9.0",
173174
"react-popper": "^2.3.0",
174175
"react-transition-group": "^4.3.0",
175176
"styled-system": "^5.1.5",

0 commit comments

Comments
 (0)