Commit 98067ce
Date range in Calendar (#145)
* [*] Calendar: date range selection
- Add date range struct
- Selecting a range using the mouse
- Selecting a range using the keyboard
- Add selection attributes
- Add range component as variant of the calendar (preview)
* [*] Calendar: date range selection
- Add selection style for last and next month
- Fix keyboard selection
- Update docs for RangeCalendarDay
* [*] Calendar: reset selection by esc
* [*] Calendar: add support for disabled ranges
* [*] Calendar: available_range at Base Context
* factor out some common methods between the two different date components
* tweak css and update dioxus
* fix docs
* final style tweaks
---------
Co-authored-by: Evan Almloff <evanalmloff@gmail.com>1 parent 8e25631 commit 98067ce
File tree
8 files changed
+1726
-432
lines changed- preview/src/components
- calendar
- variants
- range
- primitives/src
8 files changed
+1726
-432
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 | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
| 46 | + | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
24 | 51 | | |
25 | 52 | | |
26 | 53 | | |
| |||
104 | 131 | | |
105 | 132 | | |
106 | 133 | | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
0 commit comments