@octanejs/day-picker 0.0.1
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.
- package/LICENSE +21 -0
- package/README.md +14 -0
- package/UPSTREAM.md +24 -0
- package/package.json +77 -0
- package/src/DayPicker.tsrx +717 -0
- package/src/UI.ts +121 -0
- package/src/classes/CalendarDay.ts +82 -0
- package/src/classes/CalendarMonth.ts +20 -0
- package/src/classes/CalendarWeek.ts +19 -0
- package/src/classes/DateLib.ts +695 -0
- package/src/classes/index.ts +4 -0
- package/src/components/custom-components.tsrx +237 -0
- package/src/formatters/formatCaption.ts +18 -0
- package/src/formatters/formatDay.ts +17 -0
- package/src/formatters/formatMonthDropdown.ts +16 -0
- package/src/formatters/formatWeekNumber.ts +19 -0
- package/src/formatters/formatWeekNumberHeader.ts +11 -0
- package/src/formatters/formatWeekdayName.ts +17 -0
- package/src/formatters/formatYearDropdown.ts +15 -0
- package/src/formatters/index.ts +7 -0
- package/src/helpers/calculateFocusTarget.ts +79 -0
- package/src/helpers/createGetModifiers.ts +117 -0
- package/src/helpers/endOfBroadcastWeek.ts +22 -0
- package/src/helpers/getBroadcastWeeksInMonth.ts +32 -0
- package/src/helpers/getClassNamesForModifiers.ts +38 -0
- package/src/helpers/getComponents.ts +19 -0
- package/src/helpers/getDataAttributes.ts +17 -0
- package/src/helpers/getDates.ts +87 -0
- package/src/helpers/getDays.ts +19 -0
- package/src/helpers/getDefaultClassNames.ts +36 -0
- package/src/helpers/getDisplayMonths.ts +30 -0
- package/src/helpers/getFocusableDate.ts +66 -0
- package/src/helpers/getFormatters.ts +16 -0
- package/src/helpers/getInitialMonth.ts +35 -0
- package/src/helpers/getLabels.ts +93 -0
- package/src/helpers/getMonthOptions.ts +45 -0
- package/src/helpers/getMonths.ts +89 -0
- package/src/helpers/getNavMonth.ts +35 -0
- package/src/helpers/getNextFocus.ts +45 -0
- package/src/helpers/getNextMonth.ts +46 -0
- package/src/helpers/getPreviousMonth.ts +45 -0
- package/src/helpers/getStyleForModifiers.ts +31 -0
- package/src/helpers/getWeekdays.ts +33 -0
- package/src/helpers/getWeeks.ts +14 -0
- package/src/helpers/getYearOptions.ts +43 -0
- package/src/helpers/index.ts +2 -0
- package/src/helpers/startOfBroadcastWeek.ts +26 -0
- package/src/helpers/useControlledValue.ts +38 -0
- package/src/index.ts +13 -0
- package/src/labels/index.ts +12 -0
- package/src/labels/labelDayButton.ts +29 -0
- package/src/labels/labelGrid.ts +18 -0
- package/src/labels/labelGridcell.ts +26 -0
- package/src/labels/labelMonthDropdown.ts +14 -0
- package/src/labels/labelNav.ts +11 -0
- package/src/labels/labelNext.ts +17 -0
- package/src/labels/labelPrevious.ts +13 -0
- package/src/labels/labelWeekNumber.ts +15 -0
- package/src/labels/labelWeekNumberHeader.ts +14 -0
- package/src/labels/labelWeekday.ts +16 -0
- package/src/labels/labelYearDropdown.ts +14 -0
- package/src/locale/af.ts +48 -0
- package/src/locale/ar-DZ.ts +48 -0
- package/src/locale/ar-EG.ts +48 -0
- package/src/locale/ar-MA.ts +48 -0
- package/src/locale/ar-SA.ts +48 -0
- package/src/locale/ar-TN.ts +48 -0
- package/src/locale/ar.ts +48 -0
- package/src/locale/az.ts +48 -0
- package/src/locale/be-tarask.ts +51 -0
- package/src/locale/be.ts +48 -0
- package/src/locale/bg.ts +48 -0
- package/src/locale/bn.ts +48 -0
- package/src/locale/bs.ts +48 -0
- package/src/locale/ca.ts +48 -0
- package/src/locale/ckb.ts +51 -0
- package/src/locale/cs.ts +48 -0
- package/src/locale/cy.ts +48 -0
- package/src/locale/da.ts +48 -0
- package/src/locale/de-AT.ts +48 -0
- package/src/locale/de.ts +48 -0
- package/src/locale/el.ts +48 -0
- package/src/locale/en-AU.ts +48 -0
- package/src/locale/en-CA.ts +48 -0
- package/src/locale/en-GB.ts +51 -0
- package/src/locale/en-IE.ts +48 -0
- package/src/locale/en-IN.ts +48 -0
- package/src/locale/en-NZ.ts +48 -0
- package/src/locale/en-US.ts +72 -0
- package/src/locale/en-ZA.ts +48 -0
- package/src/locale/eo.ts +48 -0
- package/src/locale/es.ts +48 -0
- package/src/locale/et.ts +48 -0
- package/src/locale/eu.ts +48 -0
- package/src/locale/fa-IR.ts +48 -0
- package/src/locale/fi.ts +48 -0
- package/src/locale/fr-CA.ts +48 -0
- package/src/locale/fr-CH.ts +48 -0
- package/src/locale/fr.ts +48 -0
- package/src/locale/fy.ts +48 -0
- package/src/locale/gd.ts +48 -0
- package/src/locale/gl.ts +48 -0
- package/src/locale/gu.ts +48 -0
- package/src/locale/he.ts +48 -0
- package/src/locale/hi.ts +48 -0
- package/src/locale/hr.ts +48 -0
- package/src/locale/ht.ts +48 -0
- package/src/locale/hu.ts +48 -0
- package/src/locale/hy.ts +48 -0
- package/src/locale/id.ts +48 -0
- package/src/locale/is.ts +48 -0
- package/src/locale/it-CH.ts +48 -0
- package/src/locale/it.ts +48 -0
- package/src/locale/ja-Hira.ts +48 -0
- package/src/locale/ja.ts +48 -0
- package/src/locale/ka.ts +48 -0
- package/src/locale/kk.ts +48 -0
- package/src/locale/km.ts +48 -0
- package/src/locale/kn.ts +48 -0
- package/src/locale/ko.ts +48 -0
- package/src/locale/lb.ts +48 -0
- package/src/locale/lt.ts +48 -0
- package/src/locale/lv.ts +48 -0
- package/src/locale/mk.ts +48 -0
- package/src/locale/mn.ts +48 -0
- package/src/locale/ms.ts +48 -0
- package/src/locale/mt.ts +48 -0
- package/src/locale/nb.ts +48 -0
- package/src/locale/nl-BE.ts +48 -0
- package/src/locale/nl.ts +48 -0
- package/src/locale/nn.ts +48 -0
- package/src/locale/oc.ts +48 -0
- package/src/locale/pl.ts +48 -0
- package/src/locale/pt-BR.ts +48 -0
- package/src/locale/pt.ts +48 -0
- package/src/locale/ro.ts +48 -0
- package/src/locale/ru.ts +48 -0
- package/src/locale/se.ts +48 -0
- package/src/locale/sk.ts +48 -0
- package/src/locale/sl.ts +48 -0
- package/src/locale/sq.ts +48 -0
- package/src/locale/sr-Latn.ts +48 -0
- package/src/locale/sr.ts +48 -0
- package/src/locale/sv.ts +48 -0
- package/src/locale/ta.ts +48 -0
- package/src/locale/te.ts +48 -0
- package/src/locale/th.ts +48 -0
- package/src/locale/tr.ts +48 -0
- package/src/locale/ug.ts +48 -0
- package/src/locale/uk.ts +48 -0
- package/src/locale/uz-Cyrl.ts +48 -0
- package/src/locale/uz.ts +48 -0
- package/src/locale/vi.ts +48 -0
- package/src/locale/zh-CN.ts +48 -0
- package/src/locale/zh-HK.ts +51 -0
- package/src/locale/zh-TW.ts +51 -0
- package/src/locale.ts +108 -0
- package/src/noonDateLib.ts +202 -0
- package/src/selection/useMulti.ts +74 -0
- package/src/selection/useRange.ts +89 -0
- package/src/selection/useSingle.ts +77 -0
- package/src/style.css +451 -0
- package/src/style.css.d.ts +3 -0
- package/src/style.module.css +451 -0
- package/src/style.module.css.d.ts +29 -0
- package/src/types/index.ts +3 -0
- package/src/types/props.ts +671 -0
- package/src/types/selection.ts +97 -0
- package/src/types/shared.ts +346 -0
- package/src/useAnimation.ts +242 -0
- package/src/useCalendar.ts +233 -0
- package/src/useDayPicker.ts +91 -0
- package/src/useFocus.ts +109 -0
- package/src/useSelection.ts +36 -0
- package/src/utils/addToRange.ts +91 -0
- package/src/utils/convertMatchersToTimeZone.ts +88 -0
- package/src/utils/dateMatchModifiers.ts +72 -0
- package/src/utils/index.ts +7 -0
- package/src/utils/rangeContainsDayOfWeek.ts +33 -0
- package/src/utils/rangeContainsModifiers.ts +106 -0
- package/src/utils/rangeIncludesDate.ts +40 -0
- package/src/utils/rangeOverlaps.ts +26 -0
- package/src/utils/toTimeZone.ts +13 -0
- package/src/utils/typeguards.ts +71 -0
- package/status.json +13 -0
package/src/style.css
ADDED
|
@@ -0,0 +1,451 @@
|
|
|
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
|
+
|
|
6
|
+
--rdp-day-height: 44px; /* The height of the day cells. */
|
|
7
|
+
--rdp-day-width: 44px; /* The width of the day cells. */
|
|
8
|
+
|
|
9
|
+
--rdp-day_button-border-radius: 100%; /* The border radius of the day cells. */
|
|
10
|
+
--rdp-day_button-border: 2px solid transparent; /* The border of the day cells. */
|
|
11
|
+
--rdp-day_button-height: 42px; /* The height of the day cells. */
|
|
12
|
+
--rdp-day_button-width: 42px; /* The width of the day cells. */
|
|
13
|
+
|
|
14
|
+
--rdp-selected-border: 2px solid var(--rdp-accent-color); /* The border of the selected days. */
|
|
15
|
+
--rdp-disabled-opacity: 0.5; /* The opacity of the disabled days. */
|
|
16
|
+
--rdp-outside-opacity: 0.75; /* The opacity of the days outside the current month. */
|
|
17
|
+
--rdp-today-color: var(--rdp-accent-color); /* The color of the today's date. */
|
|
18
|
+
|
|
19
|
+
--rdp-dropdown-gap: 0.5rem; /* The gap between the dropdowns used in the month captons. */
|
|
20
|
+
|
|
21
|
+
--rdp-months-gap: 2rem; /* The gap between the months in the multi-month view. */
|
|
22
|
+
|
|
23
|
+
--rdp-nav_button-disabled-opacity: 0.5; /* The opacity of the disabled navigation buttons. */
|
|
24
|
+
--rdp-nav_button-height: 2.25rem; /* The height of the navigation buttons. */
|
|
25
|
+
--rdp-nav_button-width: 2.25rem; /* The width of the navigation buttons. */
|
|
26
|
+
--rdp-nav-height: 2.75rem; /* The height of the navigation bar. */
|
|
27
|
+
|
|
28
|
+
--rdp-range_middle-background-color: var(
|
|
29
|
+
--rdp-accent-background-color
|
|
30
|
+
); /* The color of the background for days in the middle of a range. */
|
|
31
|
+
--rdp-range_middle-color: inherit; /* The color of the range text. */
|
|
32
|
+
|
|
33
|
+
--rdp-range_start-color: white; /* The color of the range text. */
|
|
34
|
+
--rdp-range_start-background: linear-gradient(
|
|
35
|
+
var(--rdp-gradient-direction),
|
|
36
|
+
transparent 50%,
|
|
37
|
+
var(--rdp-range_middle-background-color) 50%
|
|
38
|
+
); /* Used for the background of the start of the selected range. */
|
|
39
|
+
--rdp-range_start-date-background-color: var(
|
|
40
|
+
--rdp-accent-color
|
|
41
|
+
); /* The background color of the date when at the start of the selected range. */
|
|
42
|
+
|
|
43
|
+
--rdp-range_end-background: linear-gradient(
|
|
44
|
+
var(--rdp-gradient-direction),
|
|
45
|
+
var(--rdp-range_middle-background-color) 50%,
|
|
46
|
+
transparent 50%
|
|
47
|
+
); /* Used for the background of the end of the selected range. */
|
|
48
|
+
--rdp-range_end-color: white; /* The color of the range text. */
|
|
49
|
+
--rdp-range_end-date-background-color: var(
|
|
50
|
+
--rdp-accent-color
|
|
51
|
+
); /* The background color of the date when at the end of the selected range. */
|
|
52
|
+
|
|
53
|
+
--rdp-week_number-border-radius: 100%; /* The border radius of the week number. */
|
|
54
|
+
--rdp-week_number-border: 2px solid transparent; /* The border of the week number. */
|
|
55
|
+
|
|
56
|
+
--rdp-week_number-height: var(--rdp-day-height); /* The height of the week number cells. */
|
|
57
|
+
--rdp-week_number-opacity: 0.75; /* The opacity of the week number. */
|
|
58
|
+
--rdp-week_number-width: var(--rdp-day-width); /* The width of the week number cells. */
|
|
59
|
+
--rdp-weeknumber-text-align: center; /* The text alignment of the weekday cells. */
|
|
60
|
+
|
|
61
|
+
--rdp-weekday-opacity: 0.75; /* The opacity of the weekday. */
|
|
62
|
+
--rdp-weekday-padding: 0.5rem 0rem; /* The padding of the weekday. */
|
|
63
|
+
--rdp-weekday-text-align: center; /* The text alignment of the weekday cells. */
|
|
64
|
+
|
|
65
|
+
--rdp-gradient-direction: 90deg;
|
|
66
|
+
|
|
67
|
+
--rdp-animation_duration: 0.3s;
|
|
68
|
+
--rdp-animation_timing: cubic-bezier(0.4, 0, 0.2, 1);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.rdp-root[dir='rtl'] {
|
|
72
|
+
--rdp-gradient-direction: -90deg;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.rdp-root[data-broadcast-calendar='true'] {
|
|
76
|
+
--rdp-outside-opacity: unset;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
/* Root of the component. */
|
|
80
|
+
.rdp-root {
|
|
81
|
+
position: relative; /* Required to position the navigation toolbar. */
|
|
82
|
+
box-sizing: border-box;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.rdp-root * {
|
|
86
|
+
box-sizing: border-box;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.rdp-day {
|
|
90
|
+
width: var(--rdp-day-width);
|
|
91
|
+
height: var(--rdp-day-height);
|
|
92
|
+
text-align: center;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.rdp-day_button {
|
|
96
|
+
background: none;
|
|
97
|
+
padding: 0;
|
|
98
|
+
margin: 0;
|
|
99
|
+
cursor: pointer;
|
|
100
|
+
font: inherit;
|
|
101
|
+
color: inherit;
|
|
102
|
+
justify-content: center;
|
|
103
|
+
align-items: center;
|
|
104
|
+
display: flex;
|
|
105
|
+
|
|
106
|
+
width: var(--rdp-day_button-width);
|
|
107
|
+
height: var(--rdp-day_button-height);
|
|
108
|
+
border: var(--rdp-day_button-border);
|
|
109
|
+
border-radius: var(--rdp-day_button-border-radius);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.rdp-day_button:disabled {
|
|
113
|
+
cursor: revert;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.rdp-caption_label {
|
|
117
|
+
z-index: 1;
|
|
118
|
+
|
|
119
|
+
position: relative;
|
|
120
|
+
display: inline-flex;
|
|
121
|
+
align-items: center;
|
|
122
|
+
|
|
123
|
+
white-space: nowrap;
|
|
124
|
+
border: 0;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.rdp-dropdown:focus-visible ~ .rdp-caption_label {
|
|
128
|
+
outline: 5px auto Highlight;
|
|
129
|
+
/* biome-ignore lint/suspicious/noDuplicateProperties: backward compatibility */
|
|
130
|
+
outline: 5px auto -webkit-focus-ring-color;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.rdp-button_next,
|
|
134
|
+
.rdp-button_previous {
|
|
135
|
+
border: none;
|
|
136
|
+
background: none;
|
|
137
|
+
padding: 0;
|
|
138
|
+
margin: 0;
|
|
139
|
+
cursor: pointer;
|
|
140
|
+
font: inherit;
|
|
141
|
+
color: inherit;
|
|
142
|
+
-moz-appearance: none;
|
|
143
|
+
-webkit-appearance: none;
|
|
144
|
+
display: inline-flex;
|
|
145
|
+
align-items: center;
|
|
146
|
+
justify-content: center;
|
|
147
|
+
position: relative;
|
|
148
|
+
appearance: none;
|
|
149
|
+
|
|
150
|
+
width: var(--rdp-nav_button-width);
|
|
151
|
+
height: var(--rdp-nav_button-height);
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.rdp-button_next:disabled,
|
|
155
|
+
.rdp-button_next[aria-disabled='true'],
|
|
156
|
+
.rdp-button_previous:disabled,
|
|
157
|
+
.rdp-button_previous[aria-disabled='true'] {
|
|
158
|
+
cursor: revert;
|
|
159
|
+
|
|
160
|
+
opacity: var(--rdp-nav_button-disabled-opacity);
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.rdp-chevron {
|
|
164
|
+
display: inline-block;
|
|
165
|
+
fill: var(--rdp-accent-color);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.rdp-root[dir='rtl'] .rdp-nav .rdp-chevron {
|
|
169
|
+
transform: rotate(180deg);
|
|
170
|
+
transform-origin: 50%;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.rdp-dropdowns {
|
|
174
|
+
position: relative;
|
|
175
|
+
display: inline-flex;
|
|
176
|
+
align-items: center;
|
|
177
|
+
gap: var(--rdp-dropdown-gap);
|
|
178
|
+
}
|
|
179
|
+
.rdp-dropdown {
|
|
180
|
+
z-index: 2;
|
|
181
|
+
|
|
182
|
+
/* Reset */
|
|
183
|
+
opacity: 0;
|
|
184
|
+
appearance: none;
|
|
185
|
+
position: absolute;
|
|
186
|
+
inset-block-start: 0;
|
|
187
|
+
inset-block-end: 0;
|
|
188
|
+
inset-inline-start: 0;
|
|
189
|
+
width: 100%;
|
|
190
|
+
margin: 0;
|
|
191
|
+
padding: 0;
|
|
192
|
+
cursor: inherit;
|
|
193
|
+
border: none;
|
|
194
|
+
line-height: inherit;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
.rdp-dropdown_root {
|
|
198
|
+
position: relative;
|
|
199
|
+
display: inline-flex;
|
|
200
|
+
align-items: center;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
.rdp-dropdown_root[data-disabled='true'] .rdp-chevron {
|
|
204
|
+
opacity: var(--rdp-disabled-opacity);
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
.rdp-month_caption {
|
|
208
|
+
display: flex;
|
|
209
|
+
align-content: center;
|
|
210
|
+
height: var(--rdp-nav-height);
|
|
211
|
+
font-weight: bold;
|
|
212
|
+
font-size: large;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
.rdp-root[data-nav-layout='around'] .rdp-month,
|
|
216
|
+
.rdp-root[data-nav-layout='after'] .rdp-month {
|
|
217
|
+
position: relative;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
.rdp-root[data-nav-layout='around'] .rdp-month_caption {
|
|
221
|
+
justify-content: center;
|
|
222
|
+
margin-inline-start: var(--rdp-nav_button-width);
|
|
223
|
+
margin-inline-end: var(--rdp-nav_button-width);
|
|
224
|
+
position: relative;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
.rdp-root[data-nav-layout='around'] .rdp-button_previous {
|
|
228
|
+
position: absolute;
|
|
229
|
+
inset-inline-start: 0;
|
|
230
|
+
top: 0;
|
|
231
|
+
height: var(--rdp-nav-height);
|
|
232
|
+
display: inline-flex;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
.rdp-root[data-nav-layout='around'] .rdp-button_next {
|
|
236
|
+
position: absolute;
|
|
237
|
+
inset-inline-end: 0;
|
|
238
|
+
top: 0;
|
|
239
|
+
height: var(--rdp-nav-height);
|
|
240
|
+
display: inline-flex;
|
|
241
|
+
justify-content: center;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
.rdp-months {
|
|
245
|
+
position: relative;
|
|
246
|
+
display: flex;
|
|
247
|
+
flex-wrap: wrap;
|
|
248
|
+
gap: var(--rdp-months-gap);
|
|
249
|
+
max-width: fit-content;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
.rdp-month_grid {
|
|
253
|
+
border-collapse: collapse;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
.rdp-nav {
|
|
257
|
+
position: absolute;
|
|
258
|
+
inset-block-start: 0;
|
|
259
|
+
inset-inline-end: 0;
|
|
260
|
+
|
|
261
|
+
display: flex;
|
|
262
|
+
align-items: center;
|
|
263
|
+
|
|
264
|
+
height: var(--rdp-nav-height);
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
.rdp-weekday {
|
|
268
|
+
opacity: var(--rdp-weekday-opacity);
|
|
269
|
+
padding: var(--rdp-weekday-padding);
|
|
270
|
+
font-weight: 500;
|
|
271
|
+
font-size: smaller;
|
|
272
|
+
text-align: var(--rdp-weekday-text-align);
|
|
273
|
+
text-transform: var(--rdp-weekday-text-transform);
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
.rdp-week_number {
|
|
277
|
+
opacity: var(--rdp-week_number-opacity);
|
|
278
|
+
font-weight: 400;
|
|
279
|
+
font-size: small;
|
|
280
|
+
height: var(--rdp-week_number-height);
|
|
281
|
+
width: var(--rdp-week_number-width);
|
|
282
|
+
border: var(--rdp-week_number-border);
|
|
283
|
+
border-radius: var(--rdp-week_number-border-radius);
|
|
284
|
+
text-align: var(--rdp-weeknumber-text-align);
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
/* DAY MODIFIERS */
|
|
288
|
+
.rdp-today:not(.rdp-outside) {
|
|
289
|
+
color: var(--rdp-today-color);
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
.rdp-selected {
|
|
293
|
+
font-weight: bold;
|
|
294
|
+
font-size: large;
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
.rdp-selected .rdp-day_button {
|
|
298
|
+
border: var(--rdp-selected-border);
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
.rdp-outside {
|
|
302
|
+
opacity: var(--rdp-outside-opacity);
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
.rdp-disabled:not(.rdp-selected) {
|
|
306
|
+
opacity: var(--rdp-disabled-opacity);
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
.rdp-hidden {
|
|
310
|
+
visibility: hidden;
|
|
311
|
+
color: var(--rdp-range_start-color);
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
.rdp-range_start {
|
|
315
|
+
background: var(--rdp-range_start-background);
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
.rdp-range_start .rdp-day_button {
|
|
319
|
+
background-color: var(--rdp-range_start-date-background-color);
|
|
320
|
+
color: var(--rdp-range_start-color);
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
.rdp-range_middle {
|
|
324
|
+
background-color: var(--rdp-range_middle-background-color);
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
.rdp-range_middle .rdp-day_button {
|
|
328
|
+
border: unset;
|
|
329
|
+
border-radius: unset;
|
|
330
|
+
color: var(--rdp-range_middle-color);
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
.rdp-range_end {
|
|
334
|
+
background: var(--rdp-range_end-background);
|
|
335
|
+
color: var(--rdp-range_end-color);
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
.rdp-range_end .rdp-day_button {
|
|
339
|
+
color: var(--rdp-range_start-color);
|
|
340
|
+
background-color: var(--rdp-range_end-date-background-color);
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
.rdp-range_start.rdp-range_end {
|
|
344
|
+
background: revert;
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
.rdp-focusable {
|
|
348
|
+
cursor: pointer;
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
@keyframes rdp-slide_in_left {
|
|
352
|
+
0% {
|
|
353
|
+
transform: translateX(-100%);
|
|
354
|
+
}
|
|
355
|
+
100% {
|
|
356
|
+
transform: translateX(0);
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
@keyframes rdp-slide_in_right {
|
|
361
|
+
0% {
|
|
362
|
+
transform: translateX(100%);
|
|
363
|
+
}
|
|
364
|
+
100% {
|
|
365
|
+
transform: translateX(0);
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
@keyframes rdp-slide_out_left {
|
|
370
|
+
0% {
|
|
371
|
+
transform: translateX(0);
|
|
372
|
+
}
|
|
373
|
+
100% {
|
|
374
|
+
transform: translateX(-100%);
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
@keyframes rdp-slide_out_right {
|
|
379
|
+
0% {
|
|
380
|
+
transform: translateX(0);
|
|
381
|
+
}
|
|
382
|
+
100% {
|
|
383
|
+
transform: translateX(100%);
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
.rdp-weeks_before_enter {
|
|
388
|
+
animation: rdp-slide_in_left var(--rdp-animation_duration) var(--rdp-animation_timing) forwards;
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
.rdp-weeks_before_exit {
|
|
392
|
+
animation: rdp-slide_out_left var(--rdp-animation_duration) var(--rdp-animation_timing) forwards;
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
.rdp-weeks_after_enter {
|
|
396
|
+
animation: rdp-slide_in_right var(--rdp-animation_duration) var(--rdp-animation_timing) forwards;
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
.rdp-weeks_after_exit {
|
|
400
|
+
animation: rdp-slide_out_right var(--rdp-animation_duration) var(--rdp-animation_timing) forwards;
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
.rdp-root[dir='rtl'] .rdp-weeks_after_enter {
|
|
404
|
+
animation: rdp-slide_in_left var(--rdp-animation_duration) var(--rdp-animation_timing) forwards;
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
.rdp-root[dir='rtl'] .rdp-weeks_before_exit {
|
|
408
|
+
animation: rdp-slide_out_right var(--rdp-animation_duration) var(--rdp-animation_timing) forwards;
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
.rdp-root[dir='rtl'] .rdp-weeks_before_enter {
|
|
412
|
+
animation: rdp-slide_in_right var(--rdp-animation_duration) var(--rdp-animation_timing) forwards;
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
.rdp-root[dir='rtl'] .rdp-weeks_after_exit {
|
|
416
|
+
animation: rdp-slide_out_left var(--rdp-animation_duration) var(--rdp-animation_timing) forwards;
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
@keyframes rdp-fade_in {
|
|
420
|
+
from {
|
|
421
|
+
opacity: 0;
|
|
422
|
+
}
|
|
423
|
+
to {
|
|
424
|
+
opacity: 1;
|
|
425
|
+
}
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
@keyframes rdp-fade_out {
|
|
429
|
+
from {
|
|
430
|
+
opacity: 1;
|
|
431
|
+
}
|
|
432
|
+
to {
|
|
433
|
+
opacity: 0;
|
|
434
|
+
}
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
.rdp-caption_after_enter {
|
|
438
|
+
animation: rdp-fade_in var(--rdp-animation_duration) var(--rdp-animation_timing) forwards;
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
.rdp-caption_after_exit {
|
|
442
|
+
animation: rdp-fade_out var(--rdp-animation_duration) var(--rdp-animation_timing) forwards;
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
.rdp-caption_before_enter {
|
|
446
|
+
animation: rdp-fade_in var(--rdp-animation_duration) var(--rdp-animation_timing) forwards;
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
.rdp-caption_before_exit {
|
|
450
|
+
animation: rdp-fade_out var(--rdp-animation_duration) var(--rdp-animation_timing) forwards;
|
|
451
|
+
}
|