@semcore/date-picker 3.3.12 → 3.3.14
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/CHANGELOG.md +6 -150
- package/LICENSE +21 -0
- package/lib/cjs/components/Calendar.js +17 -17
- package/lib/cjs/components/PickerAbstract.js +7 -7
- package/lib/cjs/components/RangePickerAbstract.js +7 -7
- package/lib/cjs/components/index.js +3 -3
- package/lib/es6/components/Calendar.js +17 -17
- package/lib/es6/components/PickerAbstract.js +7 -7
- package/lib/es6/components/RangePickerAbstract.js +7 -7
- package/lib/es6/components/index.js +3 -3
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
CHANGELOG.md standards are inspired by [keepachangelog.com](https://keepachangelog.com/en/1.0.0/).
|
|
4
4
|
|
|
5
|
+
## [3.3.14] - 2022-10-10
|
|
6
|
+
|
|
7
|
+
### Changed
|
|
8
|
+
|
|
9
|
+
- Version patch update due to children dependencies update (`@semcore/base-trigger` [3.0.24 ~> 3.1.0], `@semcore/button` [4.0.18 ~> 4.1.0]).
|
|
10
|
+
|
|
5
11
|
## [3.3.12] - 2022-10-04
|
|
6
12
|
|
|
7
13
|
### Changed
|
|
@@ -26,54 +32,6 @@ CHANGELOG.md standards are inspired by [keepachangelog.com](https://keepachangel
|
|
|
26
32
|
|
|
27
33
|
- Version patch update due to children dependencies update (`@semcore/base-trigger` [3.0.21 ~> 3.0.22], `@semcore/icon` [2.32.0 ~> 2.32.1]).
|
|
28
34
|
|
|
29
|
-
## [3.3.8] - 2022-09-29
|
|
30
|
-
|
|
31
|
-
### Changed
|
|
32
|
-
|
|
33
|
-
- Version patch update due to children dependencies update (`@semcore/base-trigger` [3.0.20 ~> 3.0.21], `@semcore/icon` [2.30.4 ~> 2.31.0]).
|
|
34
|
-
|
|
35
|
-
## [3.3.7] - 2022-09-21
|
|
36
|
-
|
|
37
|
-
### Changed
|
|
38
|
-
|
|
39
|
-
- Version patch update due to children dependencies update (`@semcore/base-trigger` [3.0.19 ~> 3.0.20], `@semcore/icon` [2.30.3 ~> 2.30.4]).
|
|
40
|
-
|
|
41
|
-
## [3.3.6] - 2022-09-21
|
|
42
|
-
|
|
43
|
-
### Changed
|
|
44
|
-
|
|
45
|
-
- Version patch update due to children dependencies update (`@semcore/base-trigger` [3.0.18 ~> 3.0.19], `@semcore/icon` [2.30.2 ~> 2.30.3]).
|
|
46
|
-
|
|
47
|
-
## [3.3.5] - 2022-09-21
|
|
48
|
-
|
|
49
|
-
### Changed
|
|
50
|
-
|
|
51
|
-
- Version patch update due to children dependencies update (`@semcore/dropdown` [3.0.11 ~> 3.1.0]).
|
|
52
|
-
|
|
53
|
-
## [3.3.4] - 2022-09-20
|
|
54
|
-
|
|
55
|
-
### Changed
|
|
56
|
-
|
|
57
|
-
- Version patch update due to children dependencies update (`@semcore/base-trigger` [3.0.17 ~> 3.0.18], `@semcore/button` [4.0.16 ~> 4.0.17]).
|
|
58
|
-
|
|
59
|
-
## [3.3.3] - 2022-08-30
|
|
60
|
-
|
|
61
|
-
### Changed
|
|
62
|
-
|
|
63
|
-
- Version patch update due to children dependencies update (`@semcore/utils` [3.37.0 ~> 3.37.1], `@semcore/base-trigger` [3.0.16 ~> 3.0.17], `@semcore/button` [4.0.15 ~> 4.0.16]).
|
|
64
|
-
|
|
65
|
-
## [3.3.2] - 2022-08-30
|
|
66
|
-
|
|
67
|
-
### Changed
|
|
68
|
-
|
|
69
|
-
- Version patch update due to children dependencies update (`@semcore/button` [4.0.14 ~> 4.0.15]).
|
|
70
|
-
|
|
71
|
-
## [3.3.1] - 2022-08-25
|
|
72
|
-
|
|
73
|
-
### Changed
|
|
74
|
-
|
|
75
|
-
- Version patch update due to children dependencies update (`@semcore/button` [4.0.13 ~> 4.0.14]).
|
|
76
|
-
|
|
77
35
|
## [3.3.0] - 2022-08-22
|
|
78
36
|
|
|
79
37
|
### Added
|
|
@@ -98,24 +56,6 @@ CHANGELOG.md standards are inspired by [keepachangelog.com](https://keepachangel
|
|
|
98
56
|
|
|
99
57
|
- Version patch update due to children dependencies update (`@semcore/base-trigger` [3.0.15 ~> 3.0.16], `@semcore/icon` [2.30.0 ~> 2.30.1]).
|
|
100
58
|
|
|
101
|
-
## [3.1.3] - 2022-08-18
|
|
102
|
-
|
|
103
|
-
### Changed
|
|
104
|
-
|
|
105
|
-
- Version patch update due to children dependencies update (`@semcore/base-trigger` [3.0.14 ~> 3.0.15], `@semcore/icon` [2.29.5 ~> 2.30.0]).
|
|
106
|
-
|
|
107
|
-
## [3.1.2] - 2022-08-18
|
|
108
|
-
|
|
109
|
-
### Changed
|
|
110
|
-
|
|
111
|
-
- Version patch update due to children dependencies update (`@semcore/utils` [3.36.0 ~> 3.37.0], `@semcore/base-trigger` [3.0.13 ~> 3.0.14], `@semcore/button` [4.0.11 ~> 4.0.12]).
|
|
112
|
-
|
|
113
|
-
## [3.1.1] - 2022-08-11
|
|
114
|
-
|
|
115
|
-
### Changed
|
|
116
|
-
|
|
117
|
-
- Version patch update due to children dependencies update (`@semcore/utils` [3.35.1 ~> 3.36.0], `@semcore/base-trigger` [3.0.12 ~> 3.0.13], `@semcore/button` [4.0.10 ~> 4.0.11], `@semcore/typography` [4.0.11 ~> 4.1.0]).
|
|
118
|
-
|
|
119
59
|
## [3.1.0] - 2022-07-29
|
|
120
60
|
|
|
121
61
|
### Added
|
|
@@ -128,66 +68,6 @@ CHANGELOG.md standards are inspired by [keepachangelog.com](https://keepachangel
|
|
|
128
68
|
|
|
129
69
|
- Version patch update due to children dependencies update (`@semcore/base-trigger` [3.0.10 ~> 3.0.11], `@semcore/icon` [2.29.1 ~> 2.29.2]).
|
|
130
70
|
|
|
131
|
-
## [3.0.12] - 2022-07-22
|
|
132
|
-
|
|
133
|
-
### Changed
|
|
134
|
-
|
|
135
|
-
- Version patch update due to children dependencies update (`@semcore/utils` [3.34.0 ~> 3.35.0], `@semcore/base-trigger` [3.0.9 ~> 3.0.10], `@semcore/button` [4.0.8 ~> 4.0.9]).
|
|
136
|
-
|
|
137
|
-
## [3.0.11] - 2022-07-21
|
|
138
|
-
|
|
139
|
-
### Changed
|
|
140
|
-
|
|
141
|
-
- Version patch update due to children dependencies update (`@semcore/base-trigger` [3.0.8 ~> 3.0.9], `@semcore/icon` [2.28.0 ~> 2.29.0]).
|
|
142
|
-
|
|
143
|
-
## [3.0.10] - 2022-07-14
|
|
144
|
-
|
|
145
|
-
### Changed
|
|
146
|
-
|
|
147
|
-
- Version patch update due to children dependencies update (`@semcore/base-trigger` [3.0.7 ~> 3.0.8], `@semcore/button` [4.0.7 ~> 4.0.8]).
|
|
148
|
-
|
|
149
|
-
## [3.0.9] - 2022-07-07
|
|
150
|
-
|
|
151
|
-
### Changed
|
|
152
|
-
|
|
153
|
-
- Version patch update due to children dependencies update (`@semcore/utils` [3.33.0 ~> 3.34.0], `@semcore/base-trigger` [3.0.6 ~> 3.0.7], `@semcore/button` [4.0.6 ~> 4.0.7], `@semcore/icon` [2.27.0 ~> 2.28.0]).
|
|
154
|
-
|
|
155
|
-
## [3.0.8] - 2022-06-02
|
|
156
|
-
|
|
157
|
-
### Changed
|
|
158
|
-
|
|
159
|
-
- Version patch update due to children dependencies update (`@semcore/utils` [3.32.2 ~> 3.33.0], `@semcore/base-trigger` [3.0.5 ~> 3.0.6], `@semcore/button` [4.0.5 ~> 4.0.6], `@semcore/icon` [2.26.1 ~> 2.27.0]).
|
|
160
|
-
|
|
161
|
-
## [3.0.7] - 2022-05-31
|
|
162
|
-
|
|
163
|
-
### Changed
|
|
164
|
-
|
|
165
|
-
- Version patch update due to children dependencies update (`@semcore/utils` [3.32.1 ~> 3.32.2], `@semcore/base-trigger` [3.0.4 ~> 3.0.5], `@semcore/button` [4.0.4 ~> 4.0.5]).
|
|
166
|
-
|
|
167
|
-
## [3.0.6] - 2022-05-27
|
|
168
|
-
|
|
169
|
-
### Changed
|
|
170
|
-
|
|
171
|
-
- Version patch update due to children dependencies update (`@semcore/button` [4.0.3 ~> 4.0.4]).
|
|
172
|
-
|
|
173
|
-
## [3.0.5] - 2022-05-23
|
|
174
|
-
|
|
175
|
-
### Changed
|
|
176
|
-
|
|
177
|
-
- Version patch update due to children dependencies update (`@semcore/base-trigger` [3.0.3 ~> 3.0.4], `@semcore/icon` [2.25.1 ~> 2.26.0]).
|
|
178
|
-
|
|
179
|
-
## [3.0.4] - 2022-05-23
|
|
180
|
-
|
|
181
|
-
### Changed
|
|
182
|
-
|
|
183
|
-
- Version patch update due to children dependencies update (`@semcore/button` [4.0.2 ~> 4.0.3]).
|
|
184
|
-
|
|
185
|
-
## [3.0.3] - 2022-05-19
|
|
186
|
-
|
|
187
|
-
### Changed
|
|
188
|
-
|
|
189
|
-
- Version patch update due to children dependencies update (`@semcore/utils` [3.32.0 ~> 3.32.1], `@semcore/base-trigger` [3.0.2 ~> 3.0.3], `@semcore/flex-box` [4.5.1 ~> 4.5.3], `@semcore/button` [4.0.1 ~> 4.0.2], `@semcore/typography` [4.0.1 ~> 4.0.3]).
|
|
190
|
-
|
|
191
71
|
## [3.0.2] - 2022-05-19
|
|
192
72
|
|
|
193
73
|
### Fixed
|
|
@@ -213,30 +93,6 @@ CHANGELOG.md standards are inspired by [keepachangelog.com](https://keepachangel
|
|
|
213
93
|
|
|
214
94
|
- Version patch update due to children dependencies update (`@semcore/base-trigger` [2.6.4 ~> 2.6.5], `@semcore/icon` [2.21.0 ~> 2.24.0]).
|
|
215
95
|
|
|
216
|
-
## [2.8.4] - 2022-04-28
|
|
217
|
-
|
|
218
|
-
### Changed
|
|
219
|
-
|
|
220
|
-
- Version patch update due to children dependencies update (`@semcore/base-trigger` [2.6.3 ~> 2.6.4], `@semcore/icon` [2.20.0 ~> 2.21.0]).
|
|
221
|
-
|
|
222
|
-
## [2.8.3] - 2022-03-21
|
|
223
|
-
|
|
224
|
-
### Changed
|
|
225
|
-
|
|
226
|
-
- Version patch update due to children dependencies update (`@semcore/base-trigger` [2.6.2 ~> 2.6.3], `@semcore/icon` [2.19.4 ~> 2.20.0]).
|
|
227
|
-
|
|
228
|
-
## [2.8.2] - 2022-03-14
|
|
229
|
-
|
|
230
|
-
### Changed
|
|
231
|
-
|
|
232
|
-
- Version patch update due to children dependencies update (`@semcore/utils` [3.31.2 ~> 3.31.2], `@semcore/base-trigger` [2.6.1 ~> 2.6.2], `@semcore/button` [3.3.6 ~> 3.3.7]).
|
|
233
|
-
|
|
234
|
-
## [2.8.1] - 2022-03-05
|
|
235
|
-
|
|
236
|
-
### Changed
|
|
237
|
-
|
|
238
|
-
- Version patch update due to children dependencies update (`@semcore/base-trigger` [2.6.0 ~> 2.6.1]).
|
|
239
|
-
|
|
240
96
|
## [2.8.0] - 2021-03-04
|
|
241
97
|
|
|
242
98
|
### Added
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright ©, 2022, Semrush Inc. (written by Roman Lysov, Sergey Kobets, Mikhail Karachev, Julia Mnizhek, Elena Krasnopolskaia, Mikhail Sereniti).
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -66,26 +66,26 @@ var style = (
|
|
|
66
66
|
/*__reshadow_css_start__*/
|
|
67
67
|
_core.sstyled.insert(
|
|
68
68
|
/*__inner_css_start__*/
|
|
69
|
-
".
|
|
69
|
+
":root {\n\n /* DEPRECATED START\n Deprecated variables should never be used in\n components styles but preserved for backward\n compatibility if they used in projects\n like `<Badge bg=\"red\">alpha</Badge>`\n */\n /* DEPRECATED END */\n}\n\n.___SCalendar_prq3g_gg_ {\n display: flex;\n flex-direction: column;\n}\n\n.___SGridDays_prq3g_gg_ {\n display: grid;\n grid-template-columns: repeat(7, minmax(32px, auto));\n grid-template-rows: repeat(auto-fit, minmax(32px, auto));\n}\n\n.___SGridMonths_prq3g_gg_ {\n display: grid;\n grid-row-gap: 8px;\n grid-template-columns: repeat(3, minmax(60px, auto));\n grid-template-rows: repeat(4, minmax(32px, auto));\n}\n\n.___SWeekDays_prq3g_gg_ {\n display: grid;\n grid-template-columns: repeat(7, minmax(32px, auto));\n}\n\n.___SWeekDay_prq3g_gg_ {\n min-width: 32px;\n min-height: 32px;\n display: flex;\n align-items: center;\n justify-content: center;\n color: #6c6e79;\n font-size: 14px;\n font-weight: 400;\n overflow: hidden;\n}\n\n.___SCalendarUnit_prq3g_gg_ {\n font-family: inherit;\n font-weight: normal;\n line-height: normal;\n text-decoration: none;\n text-align: center;\n vertical-align: middle;\n border: 1px solid transparent;\n color: #191b23;\n outline: 0;\n box-shadow: none;\n overflow: visible;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n touch-action: manipulation;\n -webkit-tap-highlight-color: transparent;\n background: transparent;\n\n align-items: center;\n border-radius: 6px;\n box-sizing: border-box;\n cursor: pointer;\n display: flex;\n font-size: 14px;\n justify-content: center;\n min-height: 32px;\n min-width: 32px;\n position: relative;\n transition: color 0.15s, background 0.15s;\n outline: none;\n margin: 0\n}\n\n.___SCalendarUnit_prq3g_gg_:hover {\n color: #191b23;\n background: #e0e1e9;\n }\n\n.___SCalendarUnit_prq3g_gg_.focus-visible {\n box-shadow: 0 0 0 3px rgba(0, 143, 248, 0.2);\n }\n\n.___SCalendarUnit_prq3g_gg_:focus-visible {\n box-shadow: 0 0 0 3px rgba(0, 143, 248, 0.2);\n }\n\n.___SCalendarUnit_prq3g_gg_.__today_prq3g_gg_:before {\n content: '';\n position: absolute;\n display: block;\n top: 1px;\n left: 1px;\n border-radius: 6px;\n width: calc(100% - 2px);\n height: calc(100% - 2px);\n box-sizing: border-box;\n border: 1px solid #c4c7cf;\n }\n\n.___SCalendarUnit_prq3g_gg_.__today_prq3g_gg_.___SCalendarUnit_prq3g_gg_.__startSelected_prq3g_gg_:before, .___SCalendarUnit_prq3g_gg_.__today_prq3g_gg_.___SCalendarUnit_prq3g_gg_.__endSelected_prq3g_gg_:before {\n border-color: rgba(255, 255, 255, 0.5);\n }\n\n.___SCalendarUnit_prq3g_gg_.__selected_prq3g_gg_ {\n background: #c4e5fe;\n border-radius: 0;\n color: #191b23\n}\n\n.___SCalendarUnit_prq3g_gg_.__selected_prq3g_gg_:hover {\n background: #008ff8;\n }\n\n.___SCalendarUnit_prq3g_gg_.__highlighted_prq3g_gg_ {\n background: rgba(0, 143, 248, 0.2);\n border-radius: 0;\n color: #191b23\n}\n\n.___SCalendarUnit_prq3g_gg_.__highlighted_prq3g_gg_:hover {\n background: rgba(0, 143, 248, 0.3);\n }\n\n.___SCalendarUnit_prq3g_gg_.__startSelected_prq3g_gg_ {\n border-bottom-left-radius: 6px;\n border-bottom-right-radius: 0;\n border-top-left-radius: 6px;\n border-top-right-radius: 0;\n color: white;\n background: #2bb3ff\n}\n\n.___SCalendarUnit_prq3g_gg_.__startSelected_prq3g_gg_:hover {\n color: white;\n background: #008ff8;\n }\n\n.___SCalendarUnit_prq3g_gg_.__endSelected_prq3g_gg_ {\n background: #2bb3ff;\n border-bottom-left-radius: 0;\n border-bottom-right-radius: 6px;\n border-top-left-radius: 0;\n border-top-right-radius: 6px;\n color: white\n}\n\n.___SCalendarUnit_prq3g_gg_.__endSelected_prq3g_gg_:hover {\n color: white;\n background: #008ff8;\n }\n\n.___SCalendarUnit_prq3g_gg_.__startHighlighted_prq3g_gg_ {\n border-bottom-left-radius: 6px;\n border-bottom-right-radius: 0;\n border-top-left-radius: 6px;\n border-top-right-radius: 0;\n}\n\n.___SCalendarUnit_prq3g_gg_.__endHighlighted_prq3g_gg_ {\n border-bottom-left-radius: 0;\n border-bottom-right-radius: 6px;\n border-top-left-radius: 0;\n border-top-right-radius: 6px;\n}\n\n.___SCalendarUnit_prq3g_gg_.__startHighlighted_prq3g_gg_.___SCalendarUnit_prq3g_gg_.__endHighlighted_prq3g_gg_ {\n border-bottom-left-radius: 6px;\n border-bottom-right-radius: 6px;\n border-top-left-radius: 6px;\n border-top-right-radius: 6px;\n}\n\n.___SCalendarUnit_prq3g_gg_.__startSelected_prq3g_gg_.___SCalendarUnit_prq3g_gg_.__endSelected_prq3g_gg_ {\n border-bottom-left-radius: 6px;\n border-bottom-right-radius: 6px;\n border-top-left-radius: 6px;\n border-top-right-radius: 6px;\n}\n\n.___SCalendarUnit_prq3g_gg_.__outdated_prq3g_gg_ {\n opacity: 0.2;\n}\n\n.___SCalendarUnit_prq3g_gg_.__disabled_prq3g_gg_ {\n opacity: 0.4;\n cursor: default;\n pointer-events: none;\n}\n\n@media (prefers-reduced-motion) {\n .___SCalendarUnit_prq3g_gg_ {\n transition: none;\n }\n}\n"
|
|
70
70
|
/*__inner_css_end__*/
|
|
71
|
-
, "
|
|
71
|
+
, "prq3g_gg_")
|
|
72
72
|
/*__reshadow_css_end__*/
|
|
73
73
|
, {
|
|
74
|
-
"__SCalendar": "
|
|
75
|
-
"__SGridDays": "
|
|
76
|
-
"__SGridMonths": "
|
|
77
|
-
"__SWeekDays": "
|
|
78
|
-
"__SWeekDay": "
|
|
79
|
-
"__SCalendarUnit": "
|
|
80
|
-
"_today": "
|
|
81
|
-
"
|
|
82
|
-
"
|
|
83
|
-
"_selected": "
|
|
84
|
-
"_highlighted": "
|
|
85
|
-
"_startHighlighted": "
|
|
86
|
-
"_endHighlighted": "
|
|
87
|
-
"_outdated": "
|
|
88
|
-
"_disabled": "
|
|
74
|
+
"__SCalendar": "___SCalendar_prq3g_gg_",
|
|
75
|
+
"__SGridDays": "___SGridDays_prq3g_gg_",
|
|
76
|
+
"__SGridMonths": "___SGridMonths_prq3g_gg_",
|
|
77
|
+
"__SWeekDays": "___SWeekDays_prq3g_gg_",
|
|
78
|
+
"__SWeekDay": "___SWeekDay_prq3g_gg_",
|
|
79
|
+
"__SCalendarUnit": "___SCalendarUnit_prq3g_gg_",
|
|
80
|
+
"_today": "__today_prq3g_gg_",
|
|
81
|
+
"_startSelected": "__startSelected_prq3g_gg_",
|
|
82
|
+
"_endSelected": "__endSelected_prq3g_gg_",
|
|
83
|
+
"_selected": "__selected_prq3g_gg_",
|
|
84
|
+
"_highlighted": "__highlighted_prq3g_gg_",
|
|
85
|
+
"_startHighlighted": "__startHighlighted_prq3g_gg_",
|
|
86
|
+
"_endHighlighted": "__endHighlighted_prq3g_gg_",
|
|
87
|
+
"_outdated": "__outdated_prq3g_gg_",
|
|
88
|
+
"_disabled": "__disabled_prq3g_gg_"
|
|
89
89
|
});
|
|
90
90
|
|
|
91
91
|
_dayjs["default"].extend(_isBetween["default"]);
|
|
@@ -64,16 +64,16 @@ var style = (
|
|
|
64
64
|
/*__reshadow_css_start__*/
|
|
65
65
|
_core.sstyled.insert(
|
|
66
66
|
/*__inner_css_start__*/
|
|
67
|
-
".
|
|
67
|
+
":root {\n\n /* DEPRECATED START\n Deprecated variables should never be used in\n components styles but preserved for backward\n compatibility if they used in projects\n like `<Badge bg=\"red\">alpha</Badge>`\n */\n /* DEPRECATED END */\n}\n\n.___SPopper_nf3o3_gg_ {\n padding: 16px;\n outline: 0\n}\n\n.___SPopper_nf3o3_gg_::-moz-focus-inner {\n border: none;\n padding: 0;\n }\n\n.___SPopper_nf3o3_gg_:active,\n .___SPopper_nf3o3_gg_:hover,\n .___SPopper_nf3o3_gg_:focus {\n outline: 0;\n text-decoration: none;\n }\n\n.___SPopper_nf3o3_gg_:focus {\n box-shadow: 0 0 0 3px rgba(0, 143, 248, 0.2);\n }\n\n.___SHeader_nf3o3_gg_ {\n display: flex;\n align-items: center;\n}\n\n.___STitle_nf3o3_gg_ {\n font-size: 14px;\n color: #191b23;\n height: 32px;\n width: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n\n.___SToday_nf3o3_gg_ {\n display: flex;\n margin-top: 12px;\n justify-content: center;\n}\n\n.___SPeriod_nf3o3_gg_ {\n display: flex;\n flex-direction: column;\n margin-bottom: 8px;\n}\n"
|
|
68
68
|
/*__inner_css_end__*/
|
|
69
|
-
, "
|
|
69
|
+
, "nf3o3_gg_")
|
|
70
70
|
/*__reshadow_css_end__*/
|
|
71
71
|
, {
|
|
72
|
-
"__SPopper": "
|
|
73
|
-
"__SHeader": "
|
|
74
|
-
"__STitle": "
|
|
75
|
-
"__SToday": "
|
|
76
|
-
"__SPeriod": "
|
|
72
|
+
"__SPopper": "___SPopper_nf3o3_gg_",
|
|
73
|
+
"__SHeader": "___SHeader_nf3o3_gg_",
|
|
74
|
+
"__STitle": "___STitle_nf3o3_gg_",
|
|
75
|
+
"__SToday": "___SToday_nf3o3_gg_",
|
|
76
|
+
"__SPeriod": "___SPeriod_nf3o3_gg_"
|
|
77
77
|
});
|
|
78
78
|
var i18n = {
|
|
79
79
|
de: _de["default"],
|
|
@@ -74,16 +74,16 @@ var style = (
|
|
|
74
74
|
/*__reshadow_css_start__*/
|
|
75
75
|
_core.sstyled.insert(
|
|
76
76
|
/*__inner_css_start__*/
|
|
77
|
-
".
|
|
77
|
+
":root {\n\n /* DEPRECATED START\n Deprecated variables should never be used in\n components styles but preserved for backward\n compatibility if they used in projects\n like `<Badge bg=\"red\">alpha</Badge>`\n */\n /* DEPRECATED END */\n}\n\n.___SPopper_nf3o3_gg_ {\n padding: 16px;\n outline: 0\n}\n\n.___SPopper_nf3o3_gg_::-moz-focus-inner {\n border: none;\n padding: 0;\n }\n\n.___SPopper_nf3o3_gg_:active,\n .___SPopper_nf3o3_gg_:hover,\n .___SPopper_nf3o3_gg_:focus {\n outline: 0;\n text-decoration: none;\n }\n\n.___SPopper_nf3o3_gg_:focus {\n box-shadow: 0 0 0 3px rgba(0, 143, 248, 0.2);\n }\n\n.___SHeader_nf3o3_gg_ {\n display: flex;\n align-items: center;\n}\n\n.___STitle_nf3o3_gg_ {\n font-size: 14px;\n color: #191b23;\n height: 32px;\n width: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n\n.___SToday_nf3o3_gg_ {\n display: flex;\n margin-top: 12px;\n justify-content: center;\n}\n\n.___SPeriod_nf3o3_gg_ {\n display: flex;\n flex-direction: column;\n margin-bottom: 8px;\n}\n"
|
|
78
78
|
/*__inner_css_end__*/
|
|
79
|
-
, "
|
|
79
|
+
, "nf3o3_gg_")
|
|
80
80
|
/*__reshadow_css_end__*/
|
|
81
81
|
, {
|
|
82
|
-
"__SPopper": "
|
|
83
|
-
"__SHeader": "
|
|
84
|
-
"__STitle": "
|
|
85
|
-
"__SToday": "
|
|
86
|
-
"__SPeriod": "
|
|
82
|
+
"__SPopper": "___SPopper_nf3o3_gg_",
|
|
83
|
+
"__SHeader": "___SHeader_nf3o3_gg_",
|
|
84
|
+
"__STitle": "___STitle_nf3o3_gg_",
|
|
85
|
+
"__SToday": "___SToday_nf3o3_gg_",
|
|
86
|
+
"__SPeriod": "___SPeriod_nf3o3_gg_"
|
|
87
87
|
});
|
|
88
88
|
var i18n = {
|
|
89
89
|
de: _de["default"],
|
|
@@ -132,12 +132,12 @@ var stylesBtn = (
|
|
|
132
132
|
/*__reshadow_css_start__*/
|
|
133
133
|
_core.sstyled.insert(
|
|
134
134
|
/*__inner_css_start__*/
|
|
135
|
-
".
|
|
135
|
+
"\n .___SInner_18zm4_gg_ {\n justify-content: flex-start;\n }\n"
|
|
136
136
|
/*__inner_css_end__*/
|
|
137
|
-
, "
|
|
137
|
+
, "18zm4_gg_")
|
|
138
138
|
/*__reshadow_css_end__*/
|
|
139
139
|
, {
|
|
140
|
-
"__SInner": "
|
|
140
|
+
"__SInner": "___SInner_18zm4_gg_"
|
|
141
141
|
});
|
|
142
142
|
|
|
143
143
|
var Period = /*#__PURE__*/function (_Component) {
|
|
@@ -38,26 +38,26 @@ var style = (
|
|
|
38
38
|
/*__reshadow_css_start__*/
|
|
39
39
|
_sstyled.insert(
|
|
40
40
|
/*__inner_css_start__*/
|
|
41
|
-
".
|
|
41
|
+
":root {\n\n /* DEPRECATED START\n Deprecated variables should never be used in\n components styles but preserved for backward\n compatibility if they used in projects\n like `<Badge bg=\"red\">alpha</Badge>`\n */\n /* DEPRECATED END */\n}\n\n.___SCalendar_prq3g_gg_ {\n display: flex;\n flex-direction: column;\n}\n\n.___SGridDays_prq3g_gg_ {\n display: grid;\n grid-template-columns: repeat(7, minmax(32px, auto));\n grid-template-rows: repeat(auto-fit, minmax(32px, auto));\n}\n\n.___SGridMonths_prq3g_gg_ {\n display: grid;\n grid-row-gap: 8px;\n grid-template-columns: repeat(3, minmax(60px, auto));\n grid-template-rows: repeat(4, minmax(32px, auto));\n}\n\n.___SWeekDays_prq3g_gg_ {\n display: grid;\n grid-template-columns: repeat(7, minmax(32px, auto));\n}\n\n.___SWeekDay_prq3g_gg_ {\n min-width: 32px;\n min-height: 32px;\n display: flex;\n align-items: center;\n justify-content: center;\n color: #6c6e79;\n font-size: 14px;\n font-weight: 400;\n overflow: hidden;\n}\n\n.___SCalendarUnit_prq3g_gg_ {\n font-family: inherit;\n font-weight: normal;\n line-height: normal;\n text-decoration: none;\n text-align: center;\n vertical-align: middle;\n border: 1px solid transparent;\n color: #191b23;\n outline: 0;\n box-shadow: none;\n overflow: visible;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n touch-action: manipulation;\n -webkit-tap-highlight-color: transparent;\n background: transparent;\n\n align-items: center;\n border-radius: 6px;\n box-sizing: border-box;\n cursor: pointer;\n display: flex;\n font-size: 14px;\n justify-content: center;\n min-height: 32px;\n min-width: 32px;\n position: relative;\n transition: color 0.15s, background 0.15s;\n outline: none;\n margin: 0\n}\n\n.___SCalendarUnit_prq3g_gg_:hover {\n color: #191b23;\n background: #e0e1e9;\n }\n\n.___SCalendarUnit_prq3g_gg_.focus-visible {\n box-shadow: 0 0 0 3px rgba(0, 143, 248, 0.2);\n }\n\n.___SCalendarUnit_prq3g_gg_:focus-visible {\n box-shadow: 0 0 0 3px rgba(0, 143, 248, 0.2);\n }\n\n.___SCalendarUnit_prq3g_gg_.__today_prq3g_gg_:before {\n content: '';\n position: absolute;\n display: block;\n top: 1px;\n left: 1px;\n border-radius: 6px;\n width: calc(100% - 2px);\n height: calc(100% - 2px);\n box-sizing: border-box;\n border: 1px solid #c4c7cf;\n }\n\n.___SCalendarUnit_prq3g_gg_.__today_prq3g_gg_.___SCalendarUnit_prq3g_gg_.__startSelected_prq3g_gg_:before, .___SCalendarUnit_prq3g_gg_.__today_prq3g_gg_.___SCalendarUnit_prq3g_gg_.__endSelected_prq3g_gg_:before {\n border-color: rgba(255, 255, 255, 0.5);\n }\n\n.___SCalendarUnit_prq3g_gg_.__selected_prq3g_gg_ {\n background: #c4e5fe;\n border-radius: 0;\n color: #191b23\n}\n\n.___SCalendarUnit_prq3g_gg_.__selected_prq3g_gg_:hover {\n background: #008ff8;\n }\n\n.___SCalendarUnit_prq3g_gg_.__highlighted_prq3g_gg_ {\n background: rgba(0, 143, 248, 0.2);\n border-radius: 0;\n color: #191b23\n}\n\n.___SCalendarUnit_prq3g_gg_.__highlighted_prq3g_gg_:hover {\n background: rgba(0, 143, 248, 0.3);\n }\n\n.___SCalendarUnit_prq3g_gg_.__startSelected_prq3g_gg_ {\n border-bottom-left-radius: 6px;\n border-bottom-right-radius: 0;\n border-top-left-radius: 6px;\n border-top-right-radius: 0;\n color: white;\n background: #2bb3ff\n}\n\n.___SCalendarUnit_prq3g_gg_.__startSelected_prq3g_gg_:hover {\n color: white;\n background: #008ff8;\n }\n\n.___SCalendarUnit_prq3g_gg_.__endSelected_prq3g_gg_ {\n background: #2bb3ff;\n border-bottom-left-radius: 0;\n border-bottom-right-radius: 6px;\n border-top-left-radius: 0;\n border-top-right-radius: 6px;\n color: white\n}\n\n.___SCalendarUnit_prq3g_gg_.__endSelected_prq3g_gg_:hover {\n color: white;\n background: #008ff8;\n }\n\n.___SCalendarUnit_prq3g_gg_.__startHighlighted_prq3g_gg_ {\n border-bottom-left-radius: 6px;\n border-bottom-right-radius: 0;\n border-top-left-radius: 6px;\n border-top-right-radius: 0;\n}\n\n.___SCalendarUnit_prq3g_gg_.__endHighlighted_prq3g_gg_ {\n border-bottom-left-radius: 0;\n border-bottom-right-radius: 6px;\n border-top-left-radius: 0;\n border-top-right-radius: 6px;\n}\n\n.___SCalendarUnit_prq3g_gg_.__startHighlighted_prq3g_gg_.___SCalendarUnit_prq3g_gg_.__endHighlighted_prq3g_gg_ {\n border-bottom-left-radius: 6px;\n border-bottom-right-radius: 6px;\n border-top-left-radius: 6px;\n border-top-right-radius: 6px;\n}\n\n.___SCalendarUnit_prq3g_gg_.__startSelected_prq3g_gg_.___SCalendarUnit_prq3g_gg_.__endSelected_prq3g_gg_ {\n border-bottom-left-radius: 6px;\n border-bottom-right-radius: 6px;\n border-top-left-radius: 6px;\n border-top-right-radius: 6px;\n}\n\n.___SCalendarUnit_prq3g_gg_.__outdated_prq3g_gg_ {\n opacity: 0.2;\n}\n\n.___SCalendarUnit_prq3g_gg_.__disabled_prq3g_gg_ {\n opacity: 0.4;\n cursor: default;\n pointer-events: none;\n}\n\n@media (prefers-reduced-motion) {\n .___SCalendarUnit_prq3g_gg_ {\n transition: none;\n }\n}\n"
|
|
42
42
|
/*__inner_css_end__*/
|
|
43
|
-
, "
|
|
43
|
+
, "prq3g_gg_")
|
|
44
44
|
/*__reshadow_css_end__*/
|
|
45
45
|
, {
|
|
46
|
-
"__SCalendar": "
|
|
47
|
-
"__SGridDays": "
|
|
48
|
-
"__SGridMonths": "
|
|
49
|
-
"__SWeekDays": "
|
|
50
|
-
"__SWeekDay": "
|
|
51
|
-
"__SCalendarUnit": "
|
|
52
|
-
"_today": "
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
"_selected": "
|
|
56
|
-
"_highlighted": "
|
|
57
|
-
"_startHighlighted": "
|
|
58
|
-
"_endHighlighted": "
|
|
59
|
-
"_outdated": "
|
|
60
|
-
"_disabled": "
|
|
46
|
+
"__SCalendar": "___SCalendar_prq3g_gg_",
|
|
47
|
+
"__SGridDays": "___SGridDays_prq3g_gg_",
|
|
48
|
+
"__SGridMonths": "___SGridMonths_prq3g_gg_",
|
|
49
|
+
"__SWeekDays": "___SWeekDays_prq3g_gg_",
|
|
50
|
+
"__SWeekDay": "___SWeekDay_prq3g_gg_",
|
|
51
|
+
"__SCalendarUnit": "___SCalendarUnit_prq3g_gg_",
|
|
52
|
+
"_today": "__today_prq3g_gg_",
|
|
53
|
+
"_startSelected": "__startSelected_prq3g_gg_",
|
|
54
|
+
"_endSelected": "__endSelected_prq3g_gg_",
|
|
55
|
+
"_selected": "__selected_prq3g_gg_",
|
|
56
|
+
"_highlighted": "__highlighted_prq3g_gg_",
|
|
57
|
+
"_startHighlighted": "__startHighlighted_prq3g_gg_",
|
|
58
|
+
"_endHighlighted": "__endHighlighted_prq3g_gg_",
|
|
59
|
+
"_outdated": "__outdated_prq3g_gg_",
|
|
60
|
+
"_disabled": "__disabled_prq3g_gg_"
|
|
61
61
|
});
|
|
62
62
|
dayjs.extend(isBetween);
|
|
63
63
|
|
|
@@ -34,16 +34,16 @@ var style = (
|
|
|
34
34
|
/*__reshadow_css_start__*/
|
|
35
35
|
_sstyled.insert(
|
|
36
36
|
/*__inner_css_start__*/
|
|
37
|
-
".
|
|
37
|
+
":root {\n\n /* DEPRECATED START\n Deprecated variables should never be used in\n components styles but preserved for backward\n compatibility if they used in projects\n like `<Badge bg=\"red\">alpha</Badge>`\n */\n /* DEPRECATED END */\n}\n\n.___SPopper_nf3o3_gg_ {\n padding: 16px;\n outline: 0\n}\n\n.___SPopper_nf3o3_gg_::-moz-focus-inner {\n border: none;\n padding: 0;\n }\n\n.___SPopper_nf3o3_gg_:active,\n .___SPopper_nf3o3_gg_:hover,\n .___SPopper_nf3o3_gg_:focus {\n outline: 0;\n text-decoration: none;\n }\n\n.___SPopper_nf3o3_gg_:focus {\n box-shadow: 0 0 0 3px rgba(0, 143, 248, 0.2);\n }\n\n.___SHeader_nf3o3_gg_ {\n display: flex;\n align-items: center;\n}\n\n.___STitle_nf3o3_gg_ {\n font-size: 14px;\n color: #191b23;\n height: 32px;\n width: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n\n.___SToday_nf3o3_gg_ {\n display: flex;\n margin-top: 12px;\n justify-content: center;\n}\n\n.___SPeriod_nf3o3_gg_ {\n display: flex;\n flex-direction: column;\n margin-bottom: 8px;\n}\n"
|
|
38
38
|
/*__inner_css_end__*/
|
|
39
|
-
, "
|
|
39
|
+
, "nf3o3_gg_")
|
|
40
40
|
/*__reshadow_css_end__*/
|
|
41
41
|
, {
|
|
42
|
-
"__SPopper": "
|
|
43
|
-
"__SHeader": "
|
|
44
|
-
"__STitle": "
|
|
45
|
-
"__SToday": "
|
|
46
|
-
"__SPeriod": "
|
|
42
|
+
"__SPopper": "___SPopper_nf3o3_gg_",
|
|
43
|
+
"__SHeader": "___SHeader_nf3o3_gg_",
|
|
44
|
+
"__STitle": "___STitle_nf3o3_gg_",
|
|
45
|
+
"__SToday": "___SToday_nf3o3_gg_",
|
|
46
|
+
"__SPeriod": "___SPeriod_nf3o3_gg_"
|
|
47
47
|
});
|
|
48
48
|
import includesDate from '../utils/includesDate';
|
|
49
49
|
var i18n = {
|
|
@@ -41,16 +41,16 @@ var style = (
|
|
|
41
41
|
/*__reshadow_css_start__*/
|
|
42
42
|
_sstyled.insert(
|
|
43
43
|
/*__inner_css_start__*/
|
|
44
|
-
".
|
|
44
|
+
":root {\n\n /* DEPRECATED START\n Deprecated variables should never be used in\n components styles but preserved for backward\n compatibility if they used in projects\n like `<Badge bg=\"red\">alpha</Badge>`\n */\n /* DEPRECATED END */\n}\n\n.___SPopper_nf3o3_gg_ {\n padding: 16px;\n outline: 0\n}\n\n.___SPopper_nf3o3_gg_::-moz-focus-inner {\n border: none;\n padding: 0;\n }\n\n.___SPopper_nf3o3_gg_:active,\n .___SPopper_nf3o3_gg_:hover,\n .___SPopper_nf3o3_gg_:focus {\n outline: 0;\n text-decoration: none;\n }\n\n.___SPopper_nf3o3_gg_:focus {\n box-shadow: 0 0 0 3px rgba(0, 143, 248, 0.2);\n }\n\n.___SHeader_nf3o3_gg_ {\n display: flex;\n align-items: center;\n}\n\n.___STitle_nf3o3_gg_ {\n font-size: 14px;\n color: #191b23;\n height: 32px;\n width: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n\n.___SToday_nf3o3_gg_ {\n display: flex;\n margin-top: 12px;\n justify-content: center;\n}\n\n.___SPeriod_nf3o3_gg_ {\n display: flex;\n flex-direction: column;\n margin-bottom: 8px;\n}\n"
|
|
45
45
|
/*__inner_css_end__*/
|
|
46
|
-
, "
|
|
46
|
+
, "nf3o3_gg_")
|
|
47
47
|
/*__reshadow_css_end__*/
|
|
48
48
|
, {
|
|
49
|
-
"__SPopper": "
|
|
50
|
-
"__SHeader": "
|
|
51
|
-
"__STitle": "
|
|
52
|
-
"__SToday": "
|
|
53
|
-
"__SPeriod": "
|
|
49
|
+
"__SPopper": "___SPopper_nf3o3_gg_",
|
|
50
|
+
"__SHeader": "___SHeader_nf3o3_gg_",
|
|
51
|
+
"__STitle": "___STitle_nf3o3_gg_",
|
|
52
|
+
"__SToday": "___SToday_nf3o3_gg_",
|
|
53
|
+
"__SPeriod": "___SPeriod_nf3o3_gg_"
|
|
54
54
|
});
|
|
55
55
|
var i18n = {
|
|
56
56
|
de: de,
|
|
@@ -96,12 +96,12 @@ var stylesBtn = (
|
|
|
96
96
|
/*__reshadow_css_start__*/
|
|
97
97
|
sstyled.insert(
|
|
98
98
|
/*__inner_css_start__*/
|
|
99
|
-
".
|
|
99
|
+
"\n .___SInner_18zm4_gg_ {\n justify-content: flex-start;\n }\n"
|
|
100
100
|
/*__inner_css_end__*/
|
|
101
|
-
, "
|
|
101
|
+
, "18zm4_gg_")
|
|
102
102
|
/*__reshadow_css_end__*/
|
|
103
103
|
, {
|
|
104
|
-
"__SInner": "
|
|
104
|
+
"__SInner": "___SInner_18zm4_gg_"
|
|
105
105
|
});
|
|
106
106
|
export var Period = /*#__PURE__*/function (_Component) {
|
|
107
107
|
_inherits(Period, _Component);
|
package/package.json
CHANGED
|
@@ -1,17 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@semcore/date-picker",
|
|
3
3
|
"description": "Semrush DatePicker Component",
|
|
4
|
-
"version": "3.3.
|
|
4
|
+
"version": "3.3.14",
|
|
5
5
|
"main": "lib/cjs/index.js",
|
|
6
6
|
"module": "lib/es6/index.js",
|
|
7
7
|
"typings": "lib/types/index.d.ts",
|
|
8
8
|
"sideEffects": false,
|
|
9
9
|
"author": "UI-kit team <ui-kit-team@semrush.com>",
|
|
10
10
|
"license": "MIT",
|
|
11
|
-
"scripts": {
|
|
12
|
-
"build": "pnpm semcore-builder --source=js",
|
|
13
|
-
"test": "jest"
|
|
14
|
-
},
|
|
15
11
|
"dependencies": {
|
|
16
12
|
"@semcore/utils": "^3.27",
|
|
17
13
|
"@semcore/base-trigger": "^3.0.0",
|
|
@@ -38,5 +34,9 @@
|
|
|
38
34
|
"devDependencies": {
|
|
39
35
|
"@types/react": "16.8 - 17",
|
|
40
36
|
"@semcore/jest-preset-ui": "1.0.0"
|
|
37
|
+
},
|
|
38
|
+
"scripts": {
|
|
39
|
+
"build": "pnpm semcore-builder --source=js",
|
|
40
|
+
"test": "jest"
|
|
41
41
|
}
|
|
42
|
-
}
|
|
42
|
+
}
|