Commit 6bf1acf
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- src/components/experimental
- Calendar
- components
- context
- docs
- DateField
- docs
- DatePicker
- docs
- util
- Field
14 files changed
+1283
-269
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
170 | 170 | | |
171 | 171 | | |
172 | 172 | | |
| 173 | + | |
173 | 174 | | |
174 | 175 | | |
175 | 176 | | |
| |||
0 commit comments