@popsure/dirty-swan 0.63.1 → 0.64.0
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/dist/cjs/index.js +7762 -1991
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/lib/components/dateSelector/components/Calendar.d.ts +0 -1
- package/dist/esm/Calendar-C7I0F5Gv.js +8032 -0
- package/dist/esm/Calendar-C7I0F5Gv.js.map +1 -0
- package/dist/esm/components/dateSelector/components/Calendar.js +2 -3
- package/dist/esm/components/dateSelector/components/Calendar.js.map +1 -1
- package/dist/esm/components/dateSelector/index.js +1 -2
- package/dist/esm/components/dateSelector/index.js.map +1 -1
- package/dist/esm/components/dateSelector/index.stories.js +1 -2
- package/dist/esm/components/dateSelector/index.stories.js.map +1 -1
- package/dist/esm/components/dateSelector/index.test.js +4 -5
- package/dist/esm/components/dateSelector/index.test.js.map +1 -1
- package/dist/esm/index.js +2 -3
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/lib/components/dateSelector/components/Calendar.d.ts +0 -1
- package/dist/esm/util/images/index.stories.js +1 -2
- package/dist/esm/util/images/index.stories.js.map +1 -1
- package/package.json +2 -3
- package/src/lib/components/dateSelector/components/Calendar.tsx +22 -39
- package/src/lib/components/dateSelector/components/datepicker.module.scss +199 -0
- package/src/lib/components/dateSelector/index.test.tsx +2 -2
- package/dist/cjs/lib/components/dateSelector/components/CalendarCaption.d.ts +0 -13
- package/dist/esm/Calendar-OjEwgyw8.js +0 -2191
- package/dist/esm/Calendar-OjEwgyw8.js.map +0 -1
- package/dist/esm/CalendarCaption-Bs7RbqJC.js +0 -77
- package/dist/esm/CalendarCaption-Bs7RbqJC.js.map +0 -1
- package/dist/esm/components/dateSelector/components/CalendarCaption.js +0 -7
- package/dist/esm/components/dateSelector/components/CalendarCaption.js.map +0 -1
- package/dist/esm/lib/components/dateSelector/components/CalendarCaption.d.ts +0 -13
- package/src/lib/components/dateSelector/components/CalendarCaption.tsx +0 -175
- package/src/lib/components/dateSelector/components/calendarCaption.module.scss +0 -168
- package/src/lib/components/dateSelector/components/datepicker.scss +0 -356
|
@@ -1,175 +0,0 @@
|
|
|
1
|
-
import { useState, useRef, useCallback } from 'react';
|
|
2
|
-
import classNames from 'classnames';
|
|
3
|
-
|
|
4
|
-
import { useOnClickOutside } from '../../../hooks/useOnClickOutside';
|
|
5
|
-
import styles from './calendarCaption.module.scss';
|
|
6
|
-
|
|
7
|
-
interface CalendarCaptionProps {
|
|
8
|
-
date: Date;
|
|
9
|
-
months: string[];
|
|
10
|
-
yearBoundaries: { min: number; max: number };
|
|
11
|
-
onMonthChange: (date: Date) => void;
|
|
12
|
-
onPrevClick: () => void;
|
|
13
|
-
onNextClick: () => void;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export const CalendarCaption = ({
|
|
17
|
-
date,
|
|
18
|
-
months,
|
|
19
|
-
yearBoundaries,
|
|
20
|
-
onMonthChange,
|
|
21
|
-
onPrevClick,
|
|
22
|
-
onNextClick,
|
|
23
|
-
}: CalendarCaptionProps) => {
|
|
24
|
-
const [openDropdown, setOpenDropdown] = useState<
|
|
25
|
-
'month' | 'year' | null
|
|
26
|
-
>(null);
|
|
27
|
-
|
|
28
|
-
const captionRef = useRef<HTMLDivElement | null>(null);
|
|
29
|
-
|
|
30
|
-
const closeDropdowns = useCallback(() => setOpenDropdown(null), []);
|
|
31
|
-
|
|
32
|
-
useOnClickOutside(captionRef, closeDropdowns);
|
|
33
|
-
|
|
34
|
-
const currentMonth = date.getMonth();
|
|
35
|
-
const currentYear = date.getFullYear();
|
|
36
|
-
|
|
37
|
-
const fromMonth = new Date(yearBoundaries.min, 0);
|
|
38
|
-
const toMonth = new Date(yearBoundaries.max, 11);
|
|
39
|
-
|
|
40
|
-
const isMonthDisabled = (monthIndex: number) => {
|
|
41
|
-
const candidate = new Date(currentYear, monthIndex);
|
|
42
|
-
return candidate < fromMonth || candidate > toMonth;
|
|
43
|
-
};
|
|
44
|
-
|
|
45
|
-
const years: number[] = [];
|
|
46
|
-
for (let y = yearBoundaries.min; y <= yearBoundaries.max; y++) {
|
|
47
|
-
years.push(y);
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
const handleMonthSelect = (monthIndex: number) => {
|
|
51
|
-
onMonthChange(new Date(currentYear, monthIndex));
|
|
52
|
-
setOpenDropdown(null);
|
|
53
|
-
};
|
|
54
|
-
|
|
55
|
-
const handleYearSelect = (year: number) => {
|
|
56
|
-
onMonthChange(new Date(year, currentMonth));
|
|
57
|
-
setOpenDropdown(null);
|
|
58
|
-
};
|
|
59
|
-
|
|
60
|
-
const toggleDropdown = (dropdown: 'month' | 'year') => {
|
|
61
|
-
setOpenDropdown((prev) => (prev === dropdown ? null : dropdown));
|
|
62
|
-
};
|
|
63
|
-
|
|
64
|
-
const isPrevDisabled =
|
|
65
|
-
currentYear === yearBoundaries.min && currentMonth === 0;
|
|
66
|
-
const isNextDisabled =
|
|
67
|
-
currentYear === yearBoundaries.max && currentMonth === 11;
|
|
68
|
-
|
|
69
|
-
return (
|
|
70
|
-
<div className={styles.caption} ref={captionRef}>
|
|
71
|
-
<button
|
|
72
|
-
type="button"
|
|
73
|
-
className={classNames(styles.navButton, styles.navButtonPrev)}
|
|
74
|
-
onClick={onPrevClick}
|
|
75
|
-
disabled={isPrevDisabled}
|
|
76
|
-
data-testid="calendar-nav-prev"
|
|
77
|
-
/>
|
|
78
|
-
|
|
79
|
-
<div className={styles.dropdownContainer}>
|
|
80
|
-
<button
|
|
81
|
-
type="button"
|
|
82
|
-
className={styles.captionButton}
|
|
83
|
-
onClick={() => toggleDropdown('month')}
|
|
84
|
-
data-testid="calendar-caption-month"
|
|
85
|
-
>
|
|
86
|
-
{months[currentMonth]}
|
|
87
|
-
<span
|
|
88
|
-
className={classNames(styles.chevron, {
|
|
89
|
-
[styles.chevronOpen]: openDropdown === 'month',
|
|
90
|
-
})}
|
|
91
|
-
/>
|
|
92
|
-
</button>
|
|
93
|
-
|
|
94
|
-
{openDropdown === 'month' && (
|
|
95
|
-
<div className={styles.dropdown} data-testid="month-dropdown">
|
|
96
|
-
<div className={styles.mobileHeader}>
|
|
97
|
-
<button
|
|
98
|
-
type="button"
|
|
99
|
-
className={styles.mobileCloseButton}
|
|
100
|
-
onClick={closeDropdowns}
|
|
101
|
-
>
|
|
102
|
-
✕
|
|
103
|
-
</button>
|
|
104
|
-
</div>
|
|
105
|
-
{months.map((monthName, index) => (
|
|
106
|
-
<button
|
|
107
|
-
key={monthName}
|
|
108
|
-
type="button"
|
|
109
|
-
className={classNames(styles.dropdownItem, {
|
|
110
|
-
[styles.dropdownItemSelected]: index === currentMonth,
|
|
111
|
-
})}
|
|
112
|
-
disabled={isMonthDisabled(index)}
|
|
113
|
-
onClick={() => handleMonthSelect(index)}
|
|
114
|
-
>
|
|
115
|
-
<span className={styles.radio} />
|
|
116
|
-
{monthName}
|
|
117
|
-
</button>
|
|
118
|
-
))}
|
|
119
|
-
</div>
|
|
120
|
-
)}
|
|
121
|
-
</div>
|
|
122
|
-
|
|
123
|
-
<div className={styles.dropdownContainer}>
|
|
124
|
-
<button
|
|
125
|
-
type="button"
|
|
126
|
-
className={styles.captionButton}
|
|
127
|
-
onClick={() => toggleDropdown('year')}
|
|
128
|
-
data-testid="calendar-caption-year"
|
|
129
|
-
>
|
|
130
|
-
{currentYear}
|
|
131
|
-
<span
|
|
132
|
-
className={classNames(styles.chevron, {
|
|
133
|
-
[styles.chevronOpen]: openDropdown === 'year',
|
|
134
|
-
})}
|
|
135
|
-
/>
|
|
136
|
-
</button>
|
|
137
|
-
|
|
138
|
-
{openDropdown === 'year' && (
|
|
139
|
-
<div className={styles.dropdown} data-testid="year-dropdown">
|
|
140
|
-
<div className={styles.mobileHeader}>
|
|
141
|
-
<button
|
|
142
|
-
type="button"
|
|
143
|
-
className={styles.mobileCloseButton}
|
|
144
|
-
onClick={closeDropdowns}
|
|
145
|
-
>
|
|
146
|
-
✕
|
|
147
|
-
</button>
|
|
148
|
-
</div>
|
|
149
|
-
{years.map((year) => (
|
|
150
|
-
<button
|
|
151
|
-
key={year}
|
|
152
|
-
type="button"
|
|
153
|
-
className={classNames(styles.dropdownItem, {
|
|
154
|
-
[styles.dropdownItemSelected]: year === currentYear,
|
|
155
|
-
})}
|
|
156
|
-
onClick={() => handleYearSelect(year)}
|
|
157
|
-
>
|
|
158
|
-
<span className={styles.radio} />
|
|
159
|
-
{year}
|
|
160
|
-
</button>
|
|
161
|
-
))}
|
|
162
|
-
</div>
|
|
163
|
-
)}
|
|
164
|
-
</div>
|
|
165
|
-
|
|
166
|
-
<button
|
|
167
|
-
type="button"
|
|
168
|
-
className={classNames(styles.navButton, styles.navButtonNext)}
|
|
169
|
-
onClick={onNextClick}
|
|
170
|
-
disabled={isNextDisabled}
|
|
171
|
-
data-testid="calendar-nav-next"
|
|
172
|
-
/>
|
|
173
|
-
</div>
|
|
174
|
-
);
|
|
175
|
-
};
|
|
@@ -1,168 +0,0 @@
|
|
|
1
|
-
@use '../../../scss/public/grid' as *;
|
|
2
|
-
@use '../../../scss/public/colors' as *;
|
|
3
|
-
|
|
4
|
-
.caption {
|
|
5
|
-
display: flex;
|
|
6
|
-
align-items: center;
|
|
7
|
-
justify-content: space-between;
|
|
8
|
-
gap: 8px;
|
|
9
|
-
position: relative;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
.navButton {
|
|
13
|
-
width: 48px;
|
|
14
|
-
height: 48px;
|
|
15
|
-
border: none;
|
|
16
|
-
background: none;
|
|
17
|
-
cursor: pointer;
|
|
18
|
-
background-position: center;
|
|
19
|
-
background-size: 50%;
|
|
20
|
-
background-repeat: no-repeat;
|
|
21
|
-
flex-shrink: 0;
|
|
22
|
-
|
|
23
|
-
&:hover:not(:disabled) {
|
|
24
|
-
border-radius: 50%;
|
|
25
|
-
background-color: $ds-orange-200;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
&:disabled {
|
|
29
|
-
opacity: 0.3;
|
|
30
|
-
cursor: default;
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.navButtonPrev {
|
|
35
|
-
background-image: url('../../icon/assets/chevron-left.svg');
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.navButtonNext {
|
|
39
|
-
background-image: url('../../icon/assets/chevron-right.svg');
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.captionButton {
|
|
43
|
-
background: none;
|
|
44
|
-
border: 1px solid $ds-neutral-300;
|
|
45
|
-
cursor: pointer;
|
|
46
|
-
font-weight: 700;
|
|
47
|
-
color: $ds-neutral-900;
|
|
48
|
-
padding: 8px 12px;
|
|
49
|
-
border-radius: 8px;
|
|
50
|
-
display: inline-flex;
|
|
51
|
-
align-items: center;
|
|
52
|
-
gap: 4px;
|
|
53
|
-
|
|
54
|
-
&:hover {
|
|
55
|
-
background-color: $ds-orange-200;
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
.chevron {
|
|
60
|
-
display: inline-block;
|
|
61
|
-
width: 8px;
|
|
62
|
-
height: 8px;
|
|
63
|
-
border-right: 2px solid $ds-neutral-600;
|
|
64
|
-
border-bottom: 2px solid $ds-neutral-600;
|
|
65
|
-
transform: rotate(45deg);
|
|
66
|
-
margin-left: 2px;
|
|
67
|
-
margin-bottom: 2px;
|
|
68
|
-
transition: transform 0.2s;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
.chevronOpen {
|
|
72
|
-
transform: rotate(-135deg);
|
|
73
|
-
margin-bottom: -2px;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
.dropdownContainer {
|
|
77
|
-
position: relative;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
.dropdown {
|
|
81
|
-
position: absolute;
|
|
82
|
-
top: calc(100% + 4px);
|
|
83
|
-
left: 50%;
|
|
84
|
-
transform: translateX(-50%);
|
|
85
|
-
background: white;
|
|
86
|
-
border: 1px solid $ds-neutral-300;
|
|
87
|
-
border-radius: 12px;
|
|
88
|
-
box-shadow: 0px 4px 16px rgba(0, 0, 0, 0.1);
|
|
89
|
-
z-index: 200;
|
|
90
|
-
max-height: 240px;
|
|
91
|
-
overflow-y: auto;
|
|
92
|
-
min-width: 140px;
|
|
93
|
-
padding: 8px 0;
|
|
94
|
-
|
|
95
|
-
@include p-size-mobile {
|
|
96
|
-
position: fixed;
|
|
97
|
-
top: 16px;
|
|
98
|
-
left: 16px;
|
|
99
|
-
right: 16px;
|
|
100
|
-
bottom: 16px;
|
|
101
|
-
width: auto;
|
|
102
|
-
height: fit-content;
|
|
103
|
-
max-height: calc(100vh - 32px);
|
|
104
|
-
transform: none;
|
|
105
|
-
border-radius: 16px;
|
|
106
|
-
display: flex;
|
|
107
|
-
flex-direction: column;
|
|
108
|
-
padding: 16px 0;
|
|
109
|
-
min-width: unset;
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
.dropdownItem {
|
|
114
|
-
display: flex;
|
|
115
|
-
align-items: center;
|
|
116
|
-
gap: 12px;
|
|
117
|
-
width: 100%;
|
|
118
|
-
padding: 8px 16px;
|
|
119
|
-
background: none;
|
|
120
|
-
border: none;
|
|
121
|
-
cursor: pointer;
|
|
122
|
-
font-size: 16px;
|
|
123
|
-
text-align: left;
|
|
124
|
-
color: $ds-neutral-900;
|
|
125
|
-
white-space: nowrap;
|
|
126
|
-
|
|
127
|
-
&:hover:not(:disabled) {
|
|
128
|
-
background-color: $ds-orange-200;
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
&:disabled {
|
|
132
|
-
color: $ds-neutral-400;
|
|
133
|
-
cursor: not-allowed;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
@include p-size-mobile {
|
|
137
|
-
padding: 16px 24px;
|
|
138
|
-
font-size: 18px;
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
.radio {
|
|
143
|
-
display: inline-block;
|
|
144
|
-
width: 16px;
|
|
145
|
-
height: 16px;
|
|
146
|
-
border-radius: 50%;
|
|
147
|
-
border: 2px solid $ds-neutral-400;
|
|
148
|
-
flex-shrink: 0;
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
.dropdownItemSelected {
|
|
152
|
-
font-weight: 700;
|
|
153
|
-
background-color: $ds-orange-100;
|
|
154
|
-
|
|
155
|
-
.radio {
|
|
156
|
-
border-color: $ds-neutral-900;
|
|
157
|
-
background-color: $ds-neutral-900;
|
|
158
|
-
box-shadow: inset 0 0 0 3px white;
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
.mobileHeader {
|
|
163
|
-
display: none;
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
.mobileCloseButton {
|
|
167
|
-
display: none;
|
|
168
|
-
}
|
|
@@ -1,356 +0,0 @@
|
|
|
1
|
-
@use '../../../scss/public/grid' as *;
|
|
2
|
-
@use '../../../scss/public/colors' as *;
|
|
3
|
-
|
|
4
|
-
.DayPickerInput {
|
|
5
|
-
cursor: pointer;
|
|
6
|
-
position: relative;
|
|
7
|
-
background-color: white;
|
|
8
|
-
display: flex;
|
|
9
|
-
align-items: center;
|
|
10
|
-
height: 40px;
|
|
11
|
-
min-width: 180px;
|
|
12
|
-
padding-left: 8px;
|
|
13
|
-
line-height: 40px;
|
|
14
|
-
border-radius: 4px;
|
|
15
|
-
text-align: left;
|
|
16
|
-
border: 1px solid $ds-neutral-600;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.DayPickerInput input {
|
|
20
|
-
cursor: pointer;
|
|
21
|
-
border: none;
|
|
22
|
-
background-color: transparent;
|
|
23
|
-
height: 100%;
|
|
24
|
-
color: $ds-neutral-800;
|
|
25
|
-
font-size: 16px;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.DayPickerInput::before {
|
|
29
|
-
content: '';
|
|
30
|
-
display: inline-block;
|
|
31
|
-
position: absolute;
|
|
32
|
-
right: 8px;
|
|
33
|
-
top: 50%;
|
|
34
|
-
transform: translateY(-50%);
|
|
35
|
-
border-left: 9px solid transparent;
|
|
36
|
-
border-right: 9px solid transparent;
|
|
37
|
-
border-top: 12px solid $ds-neutral-600;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
.DayPickerInput:hover::before {
|
|
41
|
-
border-top: 12px solid $ds-neutral-800;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
.DayPickerInput:hover {
|
|
45
|
-
border-color: $ds-neutral-800;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
.DayPicker {
|
|
49
|
-
position: absolute;
|
|
50
|
-
left: -9px;
|
|
51
|
-
top: 8px;
|
|
52
|
-
z-index: 100;
|
|
53
|
-
border-radius: 4px;
|
|
54
|
-
box-shadow: 0 1px 4px 1px rgba(0, 0, 0, 0.08);
|
|
55
|
-
background-color: white;
|
|
56
|
-
display: inline-block;
|
|
57
|
-
font-size: 1rem;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
.DayPicker-wrapper {
|
|
61
|
-
position: relative;
|
|
62
|
-
|
|
63
|
-
flex-direction: row;
|
|
64
|
-
padding-bottom: 1em;
|
|
65
|
-
|
|
66
|
-
user-select: none;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
.DayPicker-Months {
|
|
70
|
-
display: flex;
|
|
71
|
-
flex-wrap: wrap;
|
|
72
|
-
justify-content: center;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
.DayPicker-Month {
|
|
76
|
-
display: table;
|
|
77
|
-
margin: 0 1em;
|
|
78
|
-
margin-top: 1em;
|
|
79
|
-
border-spacing: 0;
|
|
80
|
-
border-collapse: collapse;
|
|
81
|
-
|
|
82
|
-
user-select: none;
|
|
83
|
-
|
|
84
|
-
font: 16px;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
.DayPicker-NavButton {
|
|
88
|
-
position: absolute;
|
|
89
|
-
top: 1em;
|
|
90
|
-
right: 1.5em;
|
|
91
|
-
left: auto;
|
|
92
|
-
display: inline-block;
|
|
93
|
-
margin-top: 2px;
|
|
94
|
-
width: 1.25em;
|
|
95
|
-
height: 1.25em;
|
|
96
|
-
background-position: center;
|
|
97
|
-
background-size: 50%;
|
|
98
|
-
background-repeat: no-repeat;
|
|
99
|
-
color: #8b9898;
|
|
100
|
-
cursor: pointer;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
.DayPicker-NavButton:hover {
|
|
104
|
-
opacity: 0.8;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
.DayPicker-NavButton--prev {
|
|
108
|
-
margin-right: 1.5em;
|
|
109
|
-
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAwCAYAAAB5R9gVAAAABGdBTUEAALGPC/xhBQAAAVVJREFUWAnN2G0KgjAYwPHpGfRkaZeqvgQaK+hY3SUHrk1YzNLay/OiEFp92I+/Mp2F2Mh2lLISWnflFjzH263RQjzMZ19wgs73ez0o1WmtW+dgA01VxrE3p6l2GLsnBy1VYQOtVSEH/atCCgqpQgKKqYIOiq2CBkqtggLKqQIKgqgCBjpJ2Y5CdJ+zrT9A7HHSTA1dxUdHgzCqJIEwq0SDsKsEg6iqBIEoq/wEcVRZBXFV+QJxV5mBtlDFB5VjYTaGZ2sf4R9PM7U9ZU+lLuaetPP/5Die3ToO1+u+MKtHs06qODB2zBnI/jBd4MPQm1VkY79Tb18gB+C62FdBFsZR6yeIo1YQiLJWMIiqVjQIu1YSCLNWFgijVjYIuhYYCKoWKAiiFgoopxYaKLUWOii2FgkophYp6F3r42W5A9s9OcgNvva8xQaysKXlFytoqdYmQH6tF3toSUo0INq9AAAAAElFTkSuQmCC');
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
.DayPicker-NavButton--next {
|
|
113
|
-
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAwCAYAAAB5R9gVAAAABGdBTUEAALGPC/xhBQAAAXRJREFUWAnN119ugjAcwPHWzJ1gnmxzB/BBE0n24m4xfNkTaOL7wOtsl3AXMMb+Vjaa1BG00N8fSEibPpAP3xAKKs2yjzTPH9RAjhEo9WzPr/Vm8zgE0+gXATAxxuxtqeJ9t5tIwv5AtQAApsfT6TPdbp+kUBcgVwvO51KqVhMkXKsVJFXrOkigVhCIs1Y4iKlWZxB1rX4gwlpRIIpa8SDkWmggrFq4IIRaJKCYWnSgnrXIQV1r8YD+1Vrn+bReagysIFfLABRt31v8oBu1xEBttfRbltmfjgEcWh9snUS2kNdBK6WN1vrOWxObWsz+fjxevsxmB1GQDfINWiev83nhaoiB/CoOU438oPrhXS0WpQ9xc1ZQWxWHqUYe0I0qrKCQKjygDlXIQV2r0IF6ViEBxVTBBSFUQQNhVYkHIVeJAtkNsbQ7c1LtzP6FsObhb2rCKv7NBIGoq4SDmKoEgTirXAcJVGkFSVVpgoSrXICGUMUH/QBZNSUy5XWUhwAAAABJRU5ErkJggg==');
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
.DayPicker-NavButton--interactionDisabled {
|
|
117
|
-
visibility: hidden;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
.DayPicker-Caption {
|
|
121
|
-
display: table-caption;
|
|
122
|
-
margin-bottom: 0.5em;
|
|
123
|
-
padding: 0 0.5em;
|
|
124
|
-
text-align: left;
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
.DayPicker-Caption > div {
|
|
128
|
-
font-weight: 500;
|
|
129
|
-
font-size: 1.15em;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
.DayPicker-Weekdays {
|
|
133
|
-
display: table-header-group;
|
|
134
|
-
margin-top: 1em;
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
.DayPicker-WeekdaysRow {
|
|
138
|
-
display: table-row;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
.DayPicker-Weekday {
|
|
142
|
-
display: table-cell;
|
|
143
|
-
padding: 0.5em;
|
|
144
|
-
color: #8b9898;
|
|
145
|
-
text-align: center;
|
|
146
|
-
font-size: 0.875em;
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
.DayPicker-Weekday abbr[title] {
|
|
150
|
-
border-bottom: none;
|
|
151
|
-
text-decoration: none;
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
.DayPicker-Body {
|
|
155
|
-
display: table-row-group;
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
.DayPicker-Week {
|
|
159
|
-
display: table-row;
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
.DayPicker-Day {
|
|
163
|
-
min-width: 40px;
|
|
164
|
-
height: 40px;
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
.DayPicker-WeekNumber {
|
|
168
|
-
display: table-cell;
|
|
169
|
-
padding: 0.5em;
|
|
170
|
-
min-width: 1em;
|
|
171
|
-
border-right: 1px solid #eaecec;
|
|
172
|
-
color: #8b9898;
|
|
173
|
-
vertical-align: middle;
|
|
174
|
-
text-align: right;
|
|
175
|
-
font-size: 0.75em;
|
|
176
|
-
cursor: pointer;
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
.DayPicker--interactionDisabled .DayPicker-Day {
|
|
180
|
-
cursor: default;
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
.DayPicker-Footer {
|
|
184
|
-
padding-top: 0.5em;
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
.DayPicker-TodayButton {
|
|
188
|
-
border: none;
|
|
189
|
-
background-color: transparent;
|
|
190
|
-
background-image: none;
|
|
191
|
-
box-shadow: none;
|
|
192
|
-
color: #4a90e2;
|
|
193
|
-
font-size: 0.875em;
|
|
194
|
-
cursor: pointer;
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
.DayPicker-Day--sunday {
|
|
198
|
-
background-color: #f7f8f8;
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
.DayPicker-Day--sunday:not(.DayPicker-Day--today) {
|
|
202
|
-
color: #dce0e0;
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
.DayPicker-Day--selected:not(.DayPicker-Day--disabled):not(.DayPicker-Day--outside) {
|
|
206
|
-
position: relative;
|
|
207
|
-
|
|
208
|
-
background-color: $ds-orange-500;
|
|
209
|
-
color: $ds-neutral-900;
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
.DayPicker-Day--selected:not(.DayPicker-Day--disabled):not(.DayPicker-Day--outside):hover {
|
|
213
|
-
background-color: $ds-orange-500;
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
.DayPicker:not(.DayPicker--interactionDisabled)
|
|
217
|
-
.DayPicker-Day:not(.DayPicker-Day--disabled):not(.DayPicker-Day--selected):not(.DayPicker-Day--outside):hover {
|
|
218
|
-
background-color: white;
|
|
219
|
-
outline: 2px solid $ds-orange-600;
|
|
220
|
-
outline-offset: -2px;
|
|
221
|
-
border-radius: 50%;
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
.DayPickerInput {
|
|
225
|
-
display: inline-block;
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
.DayPickerInput-OverlayWrapper {
|
|
229
|
-
position: relative;
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
.DayPickerInput-Overlay {
|
|
233
|
-
position: absolute;
|
|
234
|
-
left: 0;
|
|
235
|
-
z-index: 1;
|
|
236
|
-
|
|
237
|
-
background: white;
|
|
238
|
-
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
.DayPicker {
|
|
242
|
-
position: absolute;
|
|
243
|
-
left: 40px;
|
|
244
|
-
top: -112px;
|
|
245
|
-
z-index: 100;
|
|
246
|
-
background-color: white;
|
|
247
|
-
box-shadow: 0px 0px 32px rgba(210, 210, 216, 0.25);
|
|
248
|
-
border-radius: 16px;
|
|
249
|
-
display: inline-block;
|
|
250
|
-
color: $ds-neutral-900;
|
|
251
|
-
|
|
252
|
-
@include p-size-mobile {
|
|
253
|
-
position: fixed;
|
|
254
|
-
top: 0;
|
|
255
|
-
left: 0;
|
|
256
|
-
right: 0;
|
|
257
|
-
bottom: 0;
|
|
258
|
-
margin: auto;
|
|
259
|
-
width: fit-content;
|
|
260
|
-
height: fit-content;
|
|
261
|
-
}
|
|
262
|
-
}
|
|
263
|
-
|
|
264
|
-
.DayPicker-wrapper {
|
|
265
|
-
padding: 0 16px 24px 16px;
|
|
266
|
-
}
|
|
267
|
-
|
|
268
|
-
.DayPicker-NavBar {
|
|
269
|
-
display: none;
|
|
270
|
-
}
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
.DayPicker-Months {
|
|
274
|
-
display: flex;
|
|
275
|
-
flex-wrap: wrap;
|
|
276
|
-
justify-content: center;
|
|
277
|
-
margin-top: 14px;
|
|
278
|
-
}
|
|
279
|
-
|
|
280
|
-
.DayPicker-Month {
|
|
281
|
-
display: block;
|
|
282
|
-
margin: 0;
|
|
283
|
-
user-select: none;
|
|
284
|
-
font: 16px;
|
|
285
|
-
width: 308px;
|
|
286
|
-
}
|
|
287
|
-
|
|
288
|
-
.DayPicker-Caption {
|
|
289
|
-
display: block;
|
|
290
|
-
margin: 0 0 16px 0;
|
|
291
|
-
padding: unset;
|
|
292
|
-
}
|
|
293
|
-
|
|
294
|
-
.DayPicker-Weekdays,
|
|
295
|
-
.DayPicker-Body {
|
|
296
|
-
display: table;
|
|
297
|
-
width: 100%;
|
|
298
|
-
border-spacing: 0;
|
|
299
|
-
border-collapse: collapse;
|
|
300
|
-
}
|
|
301
|
-
|
|
302
|
-
.DayPicker-WeekdaysRow {
|
|
303
|
-
display: table-row;
|
|
304
|
-
}
|
|
305
|
-
|
|
306
|
-
.DayPicker-Weekday {
|
|
307
|
-
display: table-cell;
|
|
308
|
-
padding: 0.5em;
|
|
309
|
-
color: #8b9898;
|
|
310
|
-
text-align: center;
|
|
311
|
-
font-size: 0.875em;
|
|
312
|
-
}
|
|
313
|
-
|
|
314
|
-
.DayPicker-Weekday abbr[title] {
|
|
315
|
-
border-bottom: none;
|
|
316
|
-
text-decoration: none;
|
|
317
|
-
}
|
|
318
|
-
|
|
319
|
-
.DayPicker-Week {
|
|
320
|
-
display: table-row;
|
|
321
|
-
}
|
|
322
|
-
|
|
323
|
-
.DayPicker-Day {
|
|
324
|
-
display: table-cell;
|
|
325
|
-
width: 44px;
|
|
326
|
-
height: 44px;
|
|
327
|
-
padding: 0;
|
|
328
|
-
border-radius: 50%;
|
|
329
|
-
vertical-align: middle;
|
|
330
|
-
text-align: center;
|
|
331
|
-
cursor: pointer;
|
|
332
|
-
|
|
333
|
-
font: normal 16px Lato;
|
|
334
|
-
}
|
|
335
|
-
|
|
336
|
-
.DayPicker--interactionDisabled .DayPicker-Day {
|
|
337
|
-
cursor: default;
|
|
338
|
-
}
|
|
339
|
-
|
|
340
|
-
.DayPicker-Day--outside {
|
|
341
|
-
color: $ds-neutral-400;
|
|
342
|
-
cursor: pointer;
|
|
343
|
-
|
|
344
|
-
&:hover {
|
|
345
|
-
background: white;
|
|
346
|
-
outline: 2px solid $ds-orange-600;
|
|
347
|
-
outline-offset: -2px;
|
|
348
|
-
border-radius: 50%;
|
|
349
|
-
}
|
|
350
|
-
}
|
|
351
|
-
|
|
352
|
-
.DayPicker-Day--disabled {
|
|
353
|
-
color: $ds-neutral-400;
|
|
354
|
-
background-color: transparent;
|
|
355
|
-
pointer-events: none;
|
|
356
|
-
}
|