Commit e97ff2f
feat: [M3-8936] - Add Date Presets Functionality to Date Picker component. (#11395)
* unit test coverage for HostNameTableCell
* Revert "unit test coverage for HostNameTableCell"
This reverts commit b274baf.
* chore: [M3-8662] - Update Github Actions actions (#11009)
* update actions
* add changeset
---------
Co-authored-by: Banks Nussman <[email protected]>
* Basci date picker component
* Test coverage for date picker component
* DatePicker Stories
* Custom DateTimePicker component
* Reusable TimeZone Select Component
* Create custom DateTimeRangePicker component
* Storybook for DateTimePicker
* Fix tests and remove console warnings
* changeset
* Update packages/manager/src/components/DatePicker/DateTimeRangePicker.tsx
Co-authored-by: Connie Liu <[email protected]>
* Adjust styles for DatePicker
* Adjust styles for DateTimePicker
* update imports
* Render time and timezone conditionally in DateTimePicker component
* Move DatePicker to UI package
* Add DatePicker dependencies
* Code cleanup
* PR feedback
* code cleanup
* Move DatePicker back to src/components
* Reverting changes
* Code cleanup
* Adjust broken tests
* Update TimeZoneSelect.tsx
* Code cleanup
* Add validation for start date agains end date.
* Adjust styles for TimePicker component.
* Add the functionality to support Date Presets
* Update presets functionality and add test coverage.
* Added changeset: Add Date Presets Functionality to Date Picker component
* Persist the preset value
* Show the start date and end date fields only when custom is selected
* Add calendar icon to DateTimePicker component
* code cleanup and adjust tests
* Update packages/manager/src/components/DatePicker/DateTimeRangePicker.tsx
Co-authored-by: Nikhil Agrawal <[email protected]>
* update components
* Organize and additional prop support to DateTimeRangePicker component
* Code cleanup
* PR feedback - @coliu-akamai
* Move styles to theme level
* Revert "Move styles to theme level"
This reverts commit 15d9134.
* code cleanup
---------
Co-authored-by: Banks Nussman <[email protected]>
Co-authored-by: Banks Nussman <[email protected]>
Co-authored-by: Connie Liu <[email protected]>
Co-authored-by: Nikhil Agrawal <[email protected]>1 parent 3511734 commit e97ff2f
File tree
5 files changed
+708
-184
lines changed- packages/manager
- .changeset
- src/components/DatePicker
5 files changed
+708
-184
lines changedLines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
Lines changed: 35 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | | - | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
66 | 67 | | |
67 | 68 | | |
68 | 69 | | |
69 | | - | |
| 70 | + | |
70 | 71 | | |
71 | 72 | | |
72 | 73 | | |
| |||
75 | 76 | | |
76 | 77 | | |
77 | 78 | | |
| 79 | + | |
| 80 | + | |
78 | 81 | | |
79 | 82 | | |
80 | 83 | | |
81 | 84 | | |
82 | 85 | | |
83 | 86 | | |
84 | 87 | | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
85 | 95 | | |
86 | 96 | | |
87 | 97 | | |
| |||
115 | 125 | | |
116 | 126 | | |
117 | 127 | | |
| 128 | + | |
| 129 | + | |
118 | 130 | | |
119 | 131 | | |
120 | 132 | | |
| |||
124 | 136 | | |
125 | 137 | | |
126 | 138 | | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
127 | 142 | | |
128 | 143 | | |
129 | 144 | | |
| |||
139 | 154 | | |
140 | 155 | | |
141 | 156 | | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
142 | 173 | | |
143 | 174 | | |
144 | 175 | | |
145 | 176 | | |
146 | 177 | | |
147 | 178 | | |
148 | 179 | | |
149 | | - | |
150 | 180 | | |
151 | 181 | | |
| 182 | + | |
152 | 183 | | |
153 | 184 | | |
154 | 185 | | |
| |||
247 | 278 | | |
248 | 279 | | |
249 | 280 | | |
250 | | - | |
251 | | - | |
252 | | - | |
253 | | - | |
254 | 281 | | |
255 | 282 | | |
256 | 283 | | |
| |||
260 | 287 | | |
261 | 288 | | |
262 | 289 | | |
| 290 | + | |
263 | 291 | | |
264 | 292 | | |
265 | 293 | | |
| |||
Lines changed: 135 additions & 59 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | | - | |
15 | | - | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
16 | 20 | | |
17 | 21 | | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
24 | 37 | | |
25 | 38 | | |
26 | 39 | | |
27 | 40 | | |
28 | 41 | | |
29 | 42 | | |
30 | | - | |
31 | | - | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
32 | 48 | | |
33 | 49 | | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
39 | 63 | | |
40 | 64 | | |
41 | 65 | | |
42 | 66 | | |
43 | 67 | | |
44 | | - | |
45 | | - | |
46 | | - | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
47 | 75 | | |
48 | 76 | | |
49 | | - | |
50 | | - | |
51 | | - | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
52 | 91 | | |
53 | 92 | | |
54 | 93 | | |
55 | 94 | | |
56 | 95 | | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
68 | 118 | | |
69 | 119 | | |
70 | 120 | | |
| |||
74 | 124 | | |
75 | 125 | | |
76 | 126 | | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
94 | 151 | | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
102 | 178 | | |
103 | 179 | | |
104 | 180 | | |
105 | 181 | | |
106 | 182 | | |
107 | 183 | | |
108 | 184 | | |
109 | | - | |
| 185 | + | |
110 | 186 | | |
111 | | - | |
| 187 | + | |
112 | 188 | | |
113 | 189 | | |
114 | 190 | | |
| |||
0 commit comments