This repository was archived by the owner on Jul 19, 2025. It is now read-only.
Commit 7bed283
[DateRangePicker] Introduce new component 🎉 (#1602)
* Make value for picker be a generic type
* Spread new props from passing to the dom element
* Split makePickerWith state hoc
* Better type inference for new makePickerWithWrapper
* Refactor and opimize shared prop types inference for pickers
* Rename eome type names and files
* Integrate validation back to usePickerState
* Remove DateRangePicker code
* Remove DateRangePickerUsage from index module
* Fix small linter and ts errors
* Fix build erros
* Run prettier manually
* Display calendars for date range
* [WiP] Work on displaying 2 calendars one by one
* WATER ON MY MAC
* Proper display days with margins with range highlights
* Fix unexpected month switchings
* Implement range preview
* Optimize rerenders of Day and DateRangeDay, closes #1306
* Fix crash and missing rerender
* Optimize rerendering performace of <Day />
* Use popper for date range wrapper
* Proper displaying values in DateRangePIckerInput
* Implement ClickAwayListner for popper wrapper
* Fix slide animation in date range picker
* Reorganize test folders
* Reorganize integration test folder
* Add focus managment logic
* Implement autoscrolling for switching between range start/end
* Improve date range picker with disabling min/max dates
* Update date-io adapter version to 2.5.0
* Do not display range preview on highlighted days
* Better focus and blur handling for popper
* Fix range preview border style
* Fix type erros
* Fix fantom borders appearing
* Better styling for popper and possibility to replace transition
* Fix missing mui globals
* Fix werid memoization issue in Safari
* Implement mobile version of DateRangePicker
* Better displaying in mobile mode
* Make possible to switch view by clicking on month and year header
* Properly spread props to mobile keyboard input view
* Fix ts erros and enable api generation
* Fix example ts-checks
* Fix ts error in ServerRerquest.example.jsx
* Fix error if mouning in open state
* Add props test for DateRangePickers
* Export responsive date range picker by default
* Add missing displayName to the ToolbarButton
* Small enhancmenets
* Fix inclusivity of range for non-datefns livs
* Fix ts error
* Remove fake data from range example
* Use tsx in date range picker examples
* Add `startText` and `endText` props
* Update material-ui and fix createSvgIcon import, closes #1619
* Use new TextField `focused` prop for highlighting
* Close picker after range selected
* Update jss version
* Add more date-range-manager tests
* More examples and possibility to change wrapper mode for static wrapper
* Fix ts wrapper props inferring
* Update lib/src/views/Calendar/CalendarView.tsx
Co-Authored-By: Olivier Tassinari <[email protected]>
* Update docs/pages/demo/daterangepicker/CalendarsDateRangePicker.example.tsx
Co-Authored-By: Olivier Tassinari <[email protected]>
* Update createSvgIcon imports
* Fix ts inferrence for static wrapper props
* Add missing props spreading
* Fix more build errors
* Update lib/src/__tests__/setup.js
Co-Authored-By: Olivier Tassinari <[email protected]>
* Address review
* forwardRef for DateRangePicker
Co-authored-by: Olivier Tassinari <[email protected]>1 parent c38b5ed commit 7bed283
File tree
96 files changed
+3968
-800
lines changed- docs
- layout
- pages
- demo
- datepicker
- daterangepicker
- regression
- scripts
- e2e/integration
- lib
- src
- DatePicker
- DateRangePicker
- DateTimePicker
- Picker
- TimePicker
- __tests__
- shallow
- unit
- _helpers
- constants
- typings
- views
- Calendar
- Clock
- wrappers
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
96 files changed
+3968
-800
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | 12 | | |
14 | | - | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
15 | 21 | | |
16 | 22 | | |
17 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
3 | 10 | | |
4 | 11 | | |
5 | 12 | | |
| |||
18 | 25 | | |
19 | 26 | | |
20 | 27 | | |
| 28 | + | |
21 | 29 | | |
22 | 30 | | |
23 | 31 | | |
| |||
Lines changed: 0 additions & 10 deletions
This file was deleted.
Lines changed: 17 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
Lines changed: 33 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
Lines changed: 27 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
0 commit comments