@gooddata/sdk-ui-kit 10.43.0 → 10.44.0-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (80) hide show
  1. package/esm/@ui/@types/icon.d.ts +1 -1
  2. package/esm/@ui/@types/icon.d.ts.map +1 -1
  3. package/esm/@ui/UiAsyncTable/UiAsyncTable/UiAsyncTable.d.ts.map +1 -1
  4. package/esm/@ui/UiAsyncTable/UiAsyncTable/UiAsyncTable.js +7 -3
  5. package/esm/@ui/UiAsyncTable/UiAsyncTable/UiAsyncTable.js.map +1 -1
  6. package/esm/@ui/UiAsyncTable/UiAsyncTable/UiAsyncTableEmptyState.d.ts +5 -1
  7. package/esm/@ui/UiAsyncTable/UiAsyncTable/UiAsyncTableEmptyState.d.ts.map +1 -1
  8. package/esm/@ui/UiAsyncTable/UiAsyncTable/UiAsyncTableEmptyState.js +7 -4
  9. package/esm/@ui/UiAsyncTable/UiAsyncTable/UiAsyncTableEmptyState.js.map +1 -1
  10. package/esm/@ui/UiAsyncTable/UiAsyncTable/constants.d.ts +1 -1
  11. package/esm/@ui/UiAsyncTable/UiAsyncTable/constants.js +1 -1
  12. package/esm/@ui/UiAsyncTable/types.d.ts +10 -0
  13. package/esm/@ui/UiAsyncTable/types.d.ts.map +1 -1
  14. package/esm/@ui/UiDate/UiDate.d.ts.map +1 -1
  15. package/esm/@ui/UiDate/UiDate.js +1 -1
  16. package/esm/@ui/UiDate/UiDate.js.map +1 -1
  17. package/esm/@ui/UiDrawer/UiDrawer.d.ts +1 -1
  18. package/esm/@ui/UiDrawer/UiDrawer.d.ts.map +1 -1
  19. package/esm/@ui/UiDrawer/UiDrawer.js +2 -2
  20. package/esm/@ui/UiDrawer/UiDrawer.js.map +1 -1
  21. package/esm/@ui/UiFocusManager/UiAutofocus.d.ts +1 -2
  22. package/esm/@ui/UiFocusManager/UiAutofocus.d.ts.map +1 -1
  23. package/esm/@ui/UiFocusManager/UiAutofocus.js +2 -11
  24. package/esm/@ui/UiFocusManager/UiAutofocus.js.map +1 -1
  25. package/esm/@ui/UiIcon/UiIcon.d.ts +1 -1
  26. package/esm/@ui/UiIcon/UiIcon.d.ts.map +1 -1
  27. package/esm/@ui/UiIcon/UiIcon.js.map +1 -1
  28. package/esm/@ui/UiIcon/icons.d.ts.map +1 -1
  29. package/esm/@ui/UiIcon/icons.js +1 -0
  30. package/esm/@ui/UiIcon/icons.js.map +1 -1
  31. package/esm/@ui/UiTags/interactions.d.ts.map +1 -1
  32. package/esm/@ui/UiTags/interactions.js +0 -1
  33. package/esm/@ui/UiTags/interactions.js.map +1 -1
  34. package/esm/@ui/hooks/useListWithActionsFocus.d.ts.map +1 -1
  35. package/esm/@ui/hooks/useListWithActionsFocus.js +1 -1
  36. package/esm/@ui/hooks/useListWithActionsFocus.js.map +1 -1
  37. package/esm/Datepicker/Datepicker.d.ts +1 -0
  38. package/esm/Datepicker/Datepicker.d.ts.map +1 -1
  39. package/esm/Datepicker/Datepicker.js +9 -24
  40. package/esm/Datepicker/Datepicker.js.map +1 -1
  41. package/esm/Dialog/DialogBase.d.ts.map +1 -1
  42. package/esm/Dialog/DialogBase.js +5 -12
  43. package/esm/Dialog/DialogBase.js.map +1 -1
  44. package/esm/Dialog/DialogCloseButton.d.ts.map +1 -1
  45. package/esm/Dialog/DialogCloseButton.js +1 -0
  46. package/esm/Dialog/DialogCloseButton.js.map +1 -1
  47. package/esm/Dialog/ExportDialogBase.d.ts.map +1 -1
  48. package/esm/Dialog/ExportDialogBase.js +1 -1
  49. package/esm/Dialog/ExportDialogBase.js.map +1 -1
  50. package/esm/Dialog/typings.d.ts +0 -1
  51. package/esm/Dialog/typings.d.ts.map +1 -1
  52. package/esm/Dropdown/DropdownInvertableSelect.d.ts +14 -1
  53. package/esm/Dropdown/DropdownInvertableSelect.d.ts.map +1 -1
  54. package/esm/Dropdown/DropdownInvertableSelect.js +4 -3
  55. package/esm/Dropdown/DropdownInvertableSelect.js.map +1 -1
  56. package/esm/Header/Header.d.ts.map +1 -1
  57. package/esm/Header/Header.js +1 -3
  58. package/esm/Header/Header.js.map +1 -1
  59. package/esm/List/InvertableSelect/InvertableSelectVirtualised.d.ts.map +1 -1
  60. package/esm/List/InvertableSelect/InvertableSelectVirtualised.js +8 -1
  61. package/esm/List/InvertableSelect/InvertableSelectVirtualised.js.map +1 -1
  62. package/esm/index.d.ts +2 -2
  63. package/esm/index.d.ts.map +1 -1
  64. package/esm/index.js +1 -0
  65. package/esm/index.js.map +1 -1
  66. package/esm/sdk-ui-kit.d.ts +32 -7
  67. package/esm/utils/dateTimeConfig.d.ts.map +1 -1
  68. package/esm/utils/dateTimeConfig.js +2 -4
  69. package/esm/utils/dateTimeConfig.js.map +1 -1
  70. package/package.json +15 -15
  71. package/src/@ui/UiAsyncTable/asyncTable.scss +2 -1
  72. package/src/@ui/UiIcon/UiIcon.scss +4 -0
  73. package/src/@ui/defaultTheme.scss +2 -0
  74. package/styles/css/bubble.css +2 -2
  75. package/styles/css/datepicker.css +352 -234
  76. package/styles/css/datepicker.css.map +1 -1
  77. package/styles/css/main.css +359 -235
  78. package/styles/css/main.css.map +1 -1
  79. package/styles/scss/bubble.scss +1 -1
  80. package/styles/scss/datepicker.scss +39 -22
@@ -1,317 +1,421 @@
1
- .rdp {
2
- --rdp-cell-size: 40px; /* Size of the day cells. */
3
- --rdp-caption-font-size: 18px; /* Font size for the caption labels. */
4
- --rdp-accent-color: #0000ff; /* Accent color for the background of selected days. */
5
- --rdp-background-color: #e7edff; /* Background color for the hovered/focused elements. */
6
- --rdp-accent-color-dark: #3003e1; /* Accent color for the background of selected days (to use in dark-mode). */
7
- --rdp-background-color-dark: #180270; /* Background color for the hovered/focused elements (to use in dark-mode). */
8
- --rdp-outline: 2px solid var(--rdp-accent-color); /* Outline border for focused elements */
9
- --rdp-outline-selected: 3px solid var(--rdp-accent-color); /* Outline border for focused _and_ selected elements */
10
- --rdp-selected-color: #fff; /* Color of selected day text */
11
- margin: 1em;
12
- }
13
-
14
- /* Hide elements for devices that are not screen readers */
15
- .rdp-vhidden {
1
+ /* Variables declaration */
2
+ .rdp-root {
3
+ --rdp-accent-color: blue; /* The accent color used for selected days and UI elements. */
4
+ --rdp-accent-background-color: #f0f0ff; /* The accent background color used for selected days and UI elements. */
5
+ --rdp-day-height: 44px; /* The height of the day cells. */
6
+ --rdp-day-width: 44px; /* The width of the day cells. */
7
+ --rdp-day_button-border-radius: 100%; /* The border radius of the day cells. */
8
+ --rdp-day_button-border: 2px solid transparent; /* The border of the day cells. */
9
+ --rdp-day_button-height: 42px; /* The height of the day cells. */
10
+ --rdp-day_button-width: 42px; /* The width of the day cells. */
11
+ --rdp-selected-border: 2px solid var(--rdp-accent-color); /* The border of the selected days. */
12
+ --rdp-disabled-opacity: 0.5; /* The opacity of the disabled days. */
13
+ --rdp-outside-opacity: 0.75; /* The opacity of the days outside the current month. */
14
+ --rdp-today-color: var(--rdp-accent-color); /* The color of the today's date. */
15
+ --rdp-dropdown-gap: 0.5rem; /* The gap between the dropdowns used in the month captons. */
16
+ --rdp-months-gap: 2rem; /* The gap between the months in the multi-month view. */
17
+ --rdp-nav_button-disabled-opacity: 0.5; /* The opacity of the disabled navigation buttons. */
18
+ --rdp-nav_button-height: 2.25rem; /* The height of the navigation buttons. */
19
+ --rdp-nav_button-width: 2.25rem; /* The width of the navigation buttons. */
20
+ --rdp-nav-height: 2.75rem; /* The height of the navigation bar. */
21
+ --rdp-range_middle-background-color: var(--rdp-accent-background-color); /* The color of the background for days in the middle of a range. */
22
+ --rdp-range_middle-color: inherit; /* The color of the range text. */
23
+ --rdp-range_start-color: white; /* The color of the range text. */
24
+ --rdp-range_start-background: linear-gradient(
25
+ var(--rdp-gradient-direction),
26
+ transparent 50%,
27
+ var(--rdp-range_middle-background-color) 50%
28
+ ); /* Used for the background of the start of the selected range. */
29
+ --rdp-range_start-date-background-color: var(--rdp-accent-color); /* The background color of the date when at the start of the selected range. */
30
+ --rdp-range_end-background: linear-gradient(
31
+ var(--rdp-gradient-direction),
32
+ var(--rdp-range_middle-background-color) 50%,
33
+ transparent 50%
34
+ ); /* Used for the background of the end of the selected range. */
35
+ --rdp-range_end-color: white; /* The color of the range text. */
36
+ --rdp-range_end-date-background-color: var(--rdp-accent-color); /* The background color of the date when at the end of the selected range. */
37
+ --rdp-week_number-border-radius: 100%; /* The border radius of the week number. */
38
+ --rdp-week_number-border: 2px solid transparent; /* The border of the week number. */
39
+ --rdp-week_number-height: var(--rdp-day-height); /* The height of the week number cells. */
40
+ --rdp-week_number-opacity: 0.75; /* The opacity of the week number. */
41
+ --rdp-week_number-width: var(--rdp-day-width); /* The width of the week number cells. */
42
+ --rdp-weeknumber-text-align: center; /* The text alignment of the weekday cells. */
43
+ --rdp-weekday-opacity: 0.75; /* The opacity of the weekday. */
44
+ --rdp-weekday-padding: 0.5rem 0rem; /* The padding of the weekday. */
45
+ --rdp-weekday-text-align: center; /* The text alignment of the weekday cells. */
46
+ --rdp-gradient-direction: 90deg;
47
+ --rdp-animation_duration: 0.3s;
48
+ --rdp-animation_timing: cubic-bezier(0.4, 0, 0.2, 1);
49
+ }
50
+
51
+ .rdp-root[dir=rtl] {
52
+ --rdp-gradient-direction: -90deg;
53
+ }
54
+
55
+ .rdp-root[data-broadcast-calendar=true] {
56
+ --rdp-outside-opacity: unset;
57
+ }
58
+
59
+ /* Root of the component. */
60
+ .rdp-root {
61
+ position: relative; /* Required to position the navigation toolbar. */
16
62
  box-sizing: border-box;
17
- padding: 0;
18
- margin: 0;
19
- background: transparent;
20
- border: 0;
21
- -moz-appearance: none;
22
- -webkit-appearance: none;
23
- appearance: none;
24
- position: absolute !important;
25
- top: 0;
26
- width: 1px !important;
27
- height: 1px !important;
28
- padding: 0 !important;
29
- overflow: hidden !important;
30
- clip: rect(1px, 1px, 1px, 1px) !important;
31
- border: 0 !important;
32
63
  }
33
64
 
34
- /* Buttons */
35
- .rdp-button_reset {
36
- appearance: none;
37
- position: relative;
38
- margin: 0;
39
- padding: 0;
40
- cursor: default;
41
- color: inherit;
65
+ .rdp-root * {
66
+ box-sizing: border-box;
67
+ }
68
+
69
+ .rdp-day {
70
+ width: var(--rdp-day-width);
71
+ height: var(--rdp-day-height);
72
+ text-align: center;
73
+ }
74
+
75
+ .rdp-day_button {
42
76
  background: none;
77
+ padding: 0;
78
+ margin: 0;
79
+ cursor: pointer;
43
80
  font: inherit;
44
- -moz-appearance: none;
45
- -webkit-appearance: none;
81
+ color: inherit;
82
+ justify-content: center;
83
+ align-items: center;
84
+ display: flex;
85
+ width: var(--rdp-day_button-width);
86
+ height: var(--rdp-day_button-height);
87
+ border: var(--rdp-day_button-border);
88
+ border-radius: var(--rdp-day_button-border-radius);
46
89
  }
47
90
 
48
- .rdp-button_reset:focus-visible {
49
- /* Make sure to reset outline only when :focus-visible is supported */
50
- outline: none;
91
+ .rdp-day_button:disabled {
92
+ cursor: revert;
51
93
  }
52
94
 
53
- .rdp-button {
54
- border: 2px solid transparent;
95
+ .rdp-caption_label {
96
+ z-index: 1;
97
+ position: relative;
98
+ display: inline-flex;
99
+ align-items: center;
100
+ white-space: nowrap;
101
+ border: 0;
55
102
  }
56
103
 
57
- .rdp-button[disabled]:not(.rdp-day_selected) {
58
- opacity: 0.25;
104
+ .rdp-dropdown:focus-visible ~ .rdp-caption_label {
105
+ outline: 5px auto Highlight;
106
+ /* biome-ignore lint/suspicious/noDuplicateProperties: backward compatibility */
107
+ outline: 5px auto -webkit-focus-ring-color;
59
108
  }
60
109
 
61
- .rdp-button:not([disabled]) {
110
+ .rdp-button_next,
111
+ .rdp-button_previous {
112
+ border: none;
113
+ background: none;
114
+ padding: 0;
115
+ margin: 0;
62
116
  cursor: pointer;
63
- }
64
-
65
- .rdp-button:focus-visible:not([disabled]) {
117
+ font: inherit;
66
118
  color: inherit;
67
- background-color: var(--rdp-background-color);
68
- border: var(--rdp-outline);
119
+ -moz-appearance: none;
120
+ -webkit-appearance: none;
121
+ display: inline-flex;
122
+ align-items: center;
123
+ justify-content: center;
124
+ position: relative;
125
+ appearance: none;
126
+ width: var(--rdp-nav_button-width);
127
+ height: var(--rdp-nav_button-height);
69
128
  }
70
129
 
71
- .rdp-button:hover:not([disabled]):not(.rdp-day_selected) {
72
- background-color: var(--rdp-background-color);
130
+ .rdp-button_next:disabled,
131
+ .rdp-button_next[aria-disabled=true],
132
+ .rdp-button_previous:disabled,
133
+ .rdp-button_previous[aria-disabled=true] {
134
+ cursor: revert;
135
+ opacity: var(--rdp-nav_button-disabled-opacity);
73
136
  }
74
137
 
75
- .rdp-months {
76
- display: flex;
138
+ .rdp-chevron {
139
+ display: inline-block;
140
+ fill: var(--rdp-accent-color);
77
141
  }
78
142
 
79
- .rdp-month {
80
- margin: 0 1em;
143
+ .rdp-root[dir=rtl] .rdp-nav .rdp-chevron {
144
+ transform: rotate(180deg);
145
+ transform-origin: 50%;
81
146
  }
82
147
 
83
- .rdp-month:first-child {
84
- margin-left: 0;
148
+ .rdp-dropdowns {
149
+ position: relative;
150
+ display: inline-flex;
151
+ align-items: center;
152
+ gap: var(--rdp-dropdown-gap);
85
153
  }
86
154
 
87
- .rdp-month:last-child {
88
- margin-right: 0;
155
+ .rdp-dropdown {
156
+ z-index: 2;
157
+ /* Reset */
158
+ opacity: 0;
159
+ appearance: none;
160
+ position: absolute;
161
+ inset-block-start: 0;
162
+ inset-block-end: 0;
163
+ inset-inline-start: 0;
164
+ width: 100%;
165
+ margin: 0;
166
+ padding: 0;
167
+ cursor: inherit;
168
+ border: none;
169
+ line-height: inherit;
89
170
  }
90
171
 
91
- .rdp-table {
92
- margin: 0;
93
- max-width: calc(var(--rdp-cell-size) * 7);
94
- border-collapse: collapse;
172
+ .rdp-dropdown_root {
173
+ position: relative;
174
+ display: inline-flex;
175
+ align-items: center;
95
176
  }
96
177
 
97
- .rdp-with_weeknumber .rdp-table {
98
- max-width: calc(var(--rdp-cell-size) * 8);
99
- border-collapse: collapse;
178
+ .rdp-dropdown_root[data-disabled=true] .rdp-chevron {
179
+ opacity: var(--rdp-disabled-opacity);
100
180
  }
101
181
 
102
- .rdp-caption {
182
+ .rdp-month_caption {
103
183
  display: flex;
104
- align-items: center;
105
- justify-content: space-between;
106
- padding: 0;
107
- text-align: left;
184
+ align-content: center;
185
+ height: var(--rdp-nav-height);
186
+ font-weight: bold;
187
+ font-size: large;
108
188
  }
109
189
 
110
- .rdp-multiple_months .rdp-caption {
190
+ .rdp-root[data-nav-layout=around] .rdp-month,
191
+ .rdp-root[data-nav-layout=after] .rdp-month {
111
192
  position: relative;
112
- display: block;
113
- text-align: center;
114
193
  }
115
194
 
116
- .rdp-caption_dropdowns {
195
+ .rdp-root[data-nav-layout=around] .rdp-month_caption {
196
+ justify-content: center;
197
+ margin-inline-start: var(--rdp-nav_button-width);
198
+ margin-inline-end: var(--rdp-nav_button-width);
117
199
  position: relative;
200
+ }
201
+
202
+ .rdp-root[data-nav-layout=around] .rdp-button_previous {
203
+ position: absolute;
204
+ inset-inline-start: 0;
205
+ top: 0;
206
+ height: var(--rdp-nav-height);
118
207
  display: inline-flex;
119
208
  }
120
209
 
121
- .rdp-caption_label {
122
- position: relative;
123
- z-index: 1;
210
+ .rdp-root[data-nav-layout=around] .rdp-button_next {
211
+ position: absolute;
212
+ inset-inline-end: 0;
213
+ top: 0;
214
+ height: var(--rdp-nav-height);
124
215
  display: inline-flex;
125
- align-items: center;
126
- margin: 0;
127
- padding: 0 0.25em;
128
- white-space: nowrap;
129
- color: currentColor;
130
- border: 0;
131
- border: 2px solid transparent;
132
- font-family: inherit;
133
- font-size: var(--rdp-caption-font-size);
134
- font-weight: bold;
216
+ justify-content: center;
135
217
  }
136
218
 
137
- .rdp-nav {
138
- white-space: nowrap;
219
+ .rdp-months {
220
+ position: relative;
221
+ display: flex;
222
+ flex-wrap: wrap;
223
+ gap: var(--rdp-months-gap);
224
+ max-width: fit-content;
139
225
  }
140
226
 
141
- .rdp-multiple_months .rdp-caption_start .rdp-nav {
142
- position: absolute;
143
- top: 50%;
144
- left: 0;
145
- transform: translateY(-50%);
227
+ .rdp-month_grid {
228
+ border-collapse: collapse;
146
229
  }
147
230
 
148
- .rdp-multiple_months .rdp-caption_end .rdp-nav {
231
+ .rdp-nav {
149
232
  position: absolute;
150
- top: 50%;
151
- right: 0;
152
- transform: translateY(-50%);
233
+ inset-block-start: 0;
234
+ inset-inline-end: 0;
235
+ display: flex;
236
+ align-items: center;
237
+ height: var(--rdp-nav-height);
153
238
  }
154
239
 
155
- .rdp-nav_button {
156
- display: inline-flex;
157
- align-items: center;
158
- justify-content: center;
159
- width: var(--rdp-cell-size);
160
- height: var(--rdp-cell-size);
161
- padding: 0.25em;
162
- border-radius: 100%;
240
+ .rdp-weekday {
241
+ opacity: var(--rdp-weekday-opacity);
242
+ padding: var(--rdp-weekday-padding);
243
+ font-weight: 500;
244
+ font-size: smaller;
245
+ text-align: var(--rdp-weekday-text-align);
246
+ text-transform: var(--rdp-weekday-text-transform);
163
247
  }
164
248
 
165
- /* ---------- */
166
- /* Dropdowns */
167
- /* ---------- */
168
- .rdp-dropdown_year,
169
- .rdp-dropdown_month {
170
- position: relative;
171
- display: inline-flex;
172
- align-items: center;
249
+ .rdp-week_number {
250
+ opacity: var(--rdp-week_number-opacity);
251
+ font-weight: 400;
252
+ font-size: small;
253
+ height: var(--rdp-week_number-height);
254
+ width: var(--rdp-week_number-width);
255
+ border: var(--rdp-week_number-border);
256
+ border-radius: var(--rdp-week_number-border-radius);
257
+ text-align: var(--rdp-weeknumber-text-align);
173
258
  }
174
259
 
175
- .rdp-dropdown {
176
- appearance: none;
177
- position: absolute;
178
- z-index: 2;
179
- top: 0;
180
- bottom: 0;
181
- left: 0;
182
- width: 100%;
183
- margin: 0;
184
- padding: 0;
185
- cursor: inherit;
186
- opacity: 0;
187
- border: none;
188
- background-color: transparent;
189
- font-family: inherit;
190
- font-size: inherit;
191
- line-height: inherit;
260
+ /* DAY MODIFIERS */
261
+ .rdp-today:not(.rdp-outside) {
262
+ color: var(--rdp-today-color);
192
263
  }
193
264
 
194
- .rdp-dropdown[disabled] {
195
- opacity: unset;
196
- color: unset;
265
+ .rdp-selected {
266
+ font-weight: bold;
267
+ font-size: large;
197
268
  }
198
269
 
199
- .rdp-dropdown:focus-visible:not([disabled]) + .rdp-caption_label {
200
- background-color: var(--rdp-background-color);
201
- border: var(--rdp-outline);
202
- border-radius: 6px;
270
+ .rdp-selected .rdp-day_button {
271
+ border: var(--rdp-selected-border);
203
272
  }
204
273
 
205
- .rdp-dropdown_icon {
206
- margin: 0 0 0 5px;
274
+ .rdp-outside {
275
+ opacity: var(--rdp-outside-opacity);
207
276
  }
208
277
 
209
- .rdp-head {
210
- border: 0;
278
+ .rdp-disabled {
279
+ opacity: var(--rdp-disabled-opacity);
211
280
  }
212
281
 
213
- .rdp-head_row,
214
- .rdp-row {
215
- height: 100%;
282
+ .rdp-hidden {
283
+ visibility: hidden;
284
+ color: var(--rdp-range_start-color);
216
285
  }
217
286
 
218
- .rdp-head_cell {
219
- vertical-align: middle;
220
- font-size: 0.75em;
221
- font-weight: 700;
222
- text-align: center;
223
- height: 100%;
224
- height: var(--rdp-cell-size);
225
- padding: 0;
226
- text-transform: uppercase;
287
+ .rdp-range_start {
288
+ background: var(--rdp-range_start-background);
227
289
  }
228
290
 
229
- .rdp-tbody {
230
- border: 0;
291
+ .rdp-range_start .rdp-day_button {
292
+ background-color: var(--rdp-range_start-date-background-color);
293
+ color: var(--rdp-range_start-color);
231
294
  }
232
295
 
233
- .rdp-tfoot {
234
- margin: 0.5em;
296
+ .rdp-range_middle {
297
+ background-color: var(--rdp-range_middle-background-color);
235
298
  }
236
299
 
237
- .rdp-cell {
238
- width: var(--rdp-cell-size);
239
- height: 100%;
240
- height: var(--rdp-cell-size);
241
- padding: 0;
242
- text-align: center;
300
+ .rdp-range_middle .rdp-day_button {
301
+ border: unset;
302
+ border-radius: unset;
303
+ color: var(--rdp-range_middle-color);
243
304
  }
244
305
 
245
- .rdp-weeknumber {
246
- font-size: 0.75em;
306
+ .rdp-range_end {
307
+ background: var(--rdp-range_end-background);
308
+ color: var(--rdp-range_end-color);
247
309
  }
248
310
 
249
- .rdp-weeknumber,
250
- .rdp-day {
251
- display: flex;
252
- overflow: hidden;
253
- align-items: center;
254
- justify-content: center;
255
- box-sizing: border-box;
256
- width: var(--rdp-cell-size);
257
- max-width: var(--rdp-cell-size);
258
- height: var(--rdp-cell-size);
259
- margin: 0;
260
- border: 2px solid transparent;
261
- border-radius: 100%;
311
+ .rdp-range_end .rdp-day_button {
312
+ color: var(--rdp-range_start-color);
313
+ background-color: var(--rdp-range_end-date-background-color);
262
314
  }
263
315
 
264
- .rdp-day_today:not(.rdp-day_outside) {
265
- font-weight: bold;
316
+ .rdp-range_start.rdp-range_end {
317
+ background: revert;
266
318
  }
267
319
 
268
- .rdp-day_selected,
269
- .rdp-day_selected:focus-visible,
270
- .rdp-day_selected:hover {
271
- color: var(--rdp-selected-color);
272
- opacity: 1;
273
- background-color: var(--rdp-accent-color);
320
+ .rdp-focusable {
321
+ cursor: pointer;
274
322
  }
275
323
 
276
- .rdp-day_outside {
277
- opacity: 0.5;
324
+ @keyframes rdp-slide_in_left {
325
+ 0% {
326
+ transform: translateX(-100%);
327
+ }
328
+ 100% {
329
+ transform: translateX(0);
330
+ }
331
+ }
332
+ @keyframes rdp-slide_in_right {
333
+ 0% {
334
+ transform: translateX(100%);
335
+ }
336
+ 100% {
337
+ transform: translateX(0);
338
+ }
339
+ }
340
+ @keyframes rdp-slide_out_left {
341
+ 0% {
342
+ transform: translateX(0);
343
+ }
344
+ 100% {
345
+ transform: translateX(-100%);
346
+ }
347
+ }
348
+ @keyframes rdp-slide_out_right {
349
+ 0% {
350
+ transform: translateX(0);
351
+ }
352
+ 100% {
353
+ transform: translateX(100%);
354
+ }
355
+ }
356
+ .rdp-weeks_before_enter {
357
+ animation: rdp-slide_in_left var(--rdp-animation_duration) var(--rdp-animation_timing) forwards;
278
358
  }
279
359
 
280
- .rdp-day_selected:focus-visible {
281
- /* Since the background is the same use again the outline */
282
- outline: var(--rdp-outline);
283
- outline-offset: 2px;
284
- z-index: 1;
360
+ .rdp-weeks_before_exit {
361
+ animation: rdp-slide_out_left var(--rdp-animation_duration) var(--rdp-animation_timing) forwards;
285
362
  }
286
363
 
287
- .rdp:not([dir=rtl]) .rdp-day_range_start:not(.rdp-day_range_end) {
288
- border-top-right-radius: 0;
289
- border-bottom-right-radius: 0;
364
+ .rdp-weeks_after_enter {
365
+ animation: rdp-slide_in_right var(--rdp-animation_duration) var(--rdp-animation_timing) forwards;
290
366
  }
291
367
 
292
- .rdp:not([dir=rtl]) .rdp-day_range_end:not(.rdp-day_range_start) {
293
- border-top-left-radius: 0;
294
- border-bottom-left-radius: 0;
368
+ .rdp-weeks_after_exit {
369
+ animation: rdp-slide_out_right var(--rdp-animation_duration) var(--rdp-animation_timing) forwards;
295
370
  }
296
371
 
297
- .rdp[dir=rtl] .rdp-day_range_start:not(.rdp-day_range_end) {
298
- border-top-left-radius: 0;
299
- border-bottom-left-radius: 0;
372
+ .rdp-root[dir=rtl] .rdp-weeks_after_enter {
373
+ animation: rdp-slide_in_left var(--rdp-animation_duration) var(--rdp-animation_timing) forwards;
300
374
  }
301
375
 
302
- .rdp[dir=rtl] .rdp-day_range_end:not(.rdp-day_range_start) {
303
- border-top-right-radius: 0;
304
- border-bottom-right-radius: 0;
376
+ .rdp-root[dir=rtl] .rdp-weeks_before_exit {
377
+ animation: rdp-slide_out_right var(--rdp-animation_duration) var(--rdp-animation_timing) forwards;
305
378
  }
306
379
 
307
- .rdp-day_range_end.rdp-day_range_start {
308
- border-radius: 100%;
380
+ .rdp-root[dir=rtl] .rdp-weeks_before_enter {
381
+ animation: rdp-slide_in_right var(--rdp-animation_duration) var(--rdp-animation_timing) forwards;
309
382
  }
310
383
 
311
- .rdp-day_range_middle {
312
- border-radius: 0;
384
+ .rdp-root[dir=rtl] .rdp-weeks_after_exit {
385
+ animation: rdp-slide_out_left var(--rdp-animation_duration) var(--rdp-animation_timing) forwards;
386
+ }
387
+
388
+ @keyframes rdp-fade_in {
389
+ from {
390
+ opacity: 0;
391
+ }
392
+ to {
393
+ opacity: 1;
394
+ }
395
+ }
396
+ @keyframes rdp-fade_out {
397
+ from {
398
+ opacity: 1;
399
+ }
400
+ to {
401
+ opacity: 0;
402
+ }
403
+ }
404
+ .rdp-caption_after_enter {
405
+ animation: rdp-fade_in var(--rdp-animation_duration) var(--rdp-animation_timing) forwards;
313
406
  }
314
407
 
408
+ .rdp-caption_after_exit {
409
+ animation: rdp-fade_out var(--rdp-animation_duration) var(--rdp-animation_timing) forwards;
410
+ }
411
+
412
+ .rdp-caption_before_enter {
413
+ animation: rdp-fade_in var(--rdp-animation_duration) var(--rdp-animation_timing) forwards;
414
+ }
415
+
416
+ .rdp-caption_before_exit {
417
+ animation: rdp-fade_out var(--rdp-animation_duration) var(--rdp-animation_timing) forwards;
418
+ }
315
419
 
316
420
  /* allow vendor prefixes and disable max length */
317
421
  /* allow vendor prefixes and disable max length */
@@ -402,23 +506,28 @@
402
506
  .gd-datepicker-picker .rdp-button {
403
507
  line-height: 16px;
404
508
  }
509
+ .gd-datepicker-picker .rdp-months {
510
+ position: unset;
511
+ }
405
512
  .gd-datepicker-picker .rdp-nav {
406
513
  position: absolute;
407
- top: 1.05em;
514
+ top: 18px;
515
+ height: 29px;
408
516
  right: 0;
409
517
  left: 0;
410
518
  padding: 0 0.5rem;
519
+ display: flex;
520
+ justify-content: space-between;
411
521
  }
412
- .gd-datepicker-picker .rdp-nav_button {
413
- position: absolute;
414
- width: 1.5rem;
415
- height: 1.5rem;
522
+ .gd-datepicker-picker .rdp-nav button {
523
+ width: 29px;
524
+ height: 29px;
416
525
  cursor: pointer;
417
526
  }
418
- .gd-datepicker-picker .rdp-nav_button:hover {
527
+ .gd-datepicker-picker .rdp-nav button:hover {
419
528
  color: var(--gd-palette-complementary-6, #94a1ad);
420
529
  }
421
- .gd-datepicker-picker .rdp-nav_button_previous {
530
+ .gd-datepicker-picker .rdp-button_previous {
422
531
  left: 0.8em;
423
532
  display: block;
424
533
  width: 2em;
@@ -429,7 +538,7 @@
429
538
  font-family: "Indigo", sans-serif;
430
539
  font-size: 18px;
431
540
  }
432
- .gd-datepicker-picker .rdp-nav_button_next {
541
+ .gd-datepicker-picker .rdp-button_next {
433
542
  right: 1em;
434
543
  display: block;
435
544
  width: 2em;
@@ -440,10 +549,14 @@
440
549
  font-family: "Indigo", sans-serif;
441
550
  font-size: 18px;
442
551
  }
443
- .gd-datepicker-picker .rdp-caption {
552
+ .gd-datepicker-picker .rdp-chevron {
553
+ fill: currentColor;
554
+ }
555
+ .gd-datepicker-picker .rdp-month_caption {
444
556
  display: flex;
445
557
  justify-content: center;
446
- margin-bottom: 0.6em;
558
+ margin-bottom: 10px;
559
+ height: 29px;
447
560
  }
448
561
  .gd-datepicker-picker .rdp-caption_label {
449
562
  font-family: var(--gd-font-family, gdcustomfont, Avenir, "Helvetica Neue", arial, sans-serif);
@@ -452,10 +565,10 @@
452
565
  font-weight: normal;
453
566
  color: var(--gd-palette-complementary-9, #000);
454
567
  }
455
- .gd-datepicker-picker .rdp-table {
568
+ .gd-datepicker-picker .rdp-month_grid {
456
569
  margin-top: 10px;
457
570
  }
458
- .gd-datepicker-picker .rdp-head_cell {
571
+ .gd-datepicker-picker .rdp-weekday {
459
572
  display: table-cell;
460
573
  color: var(--gd-palette-complementary-8-from-theme, #94a1ad);
461
574
  cursor: help;
@@ -465,7 +578,7 @@
465
578
  text-transform: none;
466
579
  text-align: center;
467
580
  }
468
- .gd-datepicker-picker .rdp-head_cell span {
581
+ .gd-datepicker-picker .rdp-weekday span {
469
582
  text-decoration: none;
470
583
  border-bottom: none;
471
584
  }
@@ -475,28 +588,33 @@
475
588
  font-family: var(--gd-font-family, gdcustomfont, Avenir, "Helvetica Neue", arial, sans-serif);
476
589
  font-size: 14px;
477
590
  font-weight: 700;
478
- text-align: center;
479
591
  border-radius: 0;
480
592
  }
481
- .gd-datepicker-picker .rdp-day:not([disabled]):not(.rdp-day_selected):hover {
593
+ .gd-datepicker-picker .rdp-day:not([disabled]):not(.rdp-selected):hover {
482
594
  background: var(--gd-palette-complementary-2, #ebeff4);
483
595
  cursor: pointer;
484
596
  }
485
- .gd-datepicker-picker .rdp-day_disabled {
597
+ .gd-datepicker-picker .rdp-day button {
598
+ position: relative;
599
+ left: 50%;
600
+ transform: translateX(-50%);
601
+ text-align: center;
602
+ }
603
+ .gd-datepicker-picker .rdp-disabled {
486
604
  color: var(--gd-palette-complementary-5, #b0beca);
487
605
  cursor: default;
488
606
  font-weight: 400;
489
607
  }
490
- .gd-datepicker-picker .rdp-day_outside {
608
+ .gd-datepicker-picker .rdp-outside {
491
609
  color: var(--gd-palette-complementary-7-from-theme, #687581);
492
610
  cursor: default;
493
611
  font-weight: 400;
494
612
  opacity: 1;
495
613
  }
496
- .gd-datepicker-picker .rdp-day_outside.rdp-day_selected {
614
+ .gd-datepicker-picker .rdp-outside.rdp-selected {
497
615
  font-weight: 700;
498
616
  }
499
- .gd-datepicker-picker .rdp-day_selected:not(.rdp-day_disabled) {
617
+ .gd-datepicker-picker .rdp-selected:not(.rdp-disabled) {
500
618
  color: var(--gd-palette-complementary-0, #fff);
501
619
  background: var(--gd-palette-primary-base, #14b2e2);
502
620
  }