@entur/datepicker 4.0.0-beta.1 → 4.0.0-beta.3
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 +13 -0
- package/dist/DatePicker/beta/DatePicker.d.ts +3 -3
- package/dist/datepicker.cjs.development.js +52 -28
- package/dist/datepicker.cjs.development.js.map +1 -1
- package/dist/datepicker.cjs.production.min.js +1 -1
- package/dist/datepicker.cjs.production.min.js.map +1 -1
- package/dist/datepicker.esm.js +52 -28
- package/dist/datepicker.esm.js.map +1 -1
- package/dist/shared/index.d.ts +1 -1
- package/dist/shared/utils.d.ts +10 -9
- package/dist/styles.css +103 -103
- package/package.json +2 -2
package/dist/styles.css
CHANGED
|
@@ -2,6 +2,59 @@
|
|
|
2
2
|
--eds-datepicker: 1;
|
|
3
3
|
}/* DO NOT CHANGE!*/
|
|
4
4
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
5
|
+
.eds-native-timepicker input[type=time]::-webkit-calendar-picker-indicator {
|
|
6
|
+
position: relative;
|
|
7
|
+
top: -0.5rem;
|
|
8
|
+
}/* DO NOT CHANGE!*/
|
|
9
|
+
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
10
|
+
.eds-timepicker__wrapper {
|
|
11
|
+
position: relative;
|
|
12
|
+
display: flex;
|
|
13
|
+
align-items: center;
|
|
14
|
+
width: -webkit-fit-content;
|
|
15
|
+
width: -moz-fit-content;
|
|
16
|
+
width: fit-content;
|
|
17
|
+
}
|
|
18
|
+
.eds-timepicker__wrapper .eds-timepicker {
|
|
19
|
+
justify-content: center;
|
|
20
|
+
padding: 0rem 3rem;
|
|
21
|
+
}
|
|
22
|
+
.eds-timepicker__wrapper .eds-timepicker .eds-input-group__label,
|
|
23
|
+
.eds-timepicker__wrapper .eds-timepicker .eds-input-group__label--filled {
|
|
24
|
+
margin-left: 0rem !important;
|
|
25
|
+
}
|
|
26
|
+
.eds-timepicker__wrapper .eds-timepicker__arrowbutton {
|
|
27
|
+
color: #181c56;
|
|
28
|
+
}
|
|
29
|
+
.eds-timepicker__wrapper .eds-timepicker__arrowbutton--left {
|
|
30
|
+
position: absolute;
|
|
31
|
+
left: 0.35rem;
|
|
32
|
+
z-index: 1;
|
|
33
|
+
}
|
|
34
|
+
.eds-timepicker__wrapper .eds-timepicker__arrowbutton--right {
|
|
35
|
+
position: absolute;
|
|
36
|
+
right: 0.4rem;
|
|
37
|
+
}
|
|
38
|
+
.eds-timepicker__wrapper .eds-timepicker__arrowbutton--disabled {
|
|
39
|
+
opacity: 0.5;
|
|
40
|
+
pointer-events: none;
|
|
41
|
+
visibility: hidden;
|
|
42
|
+
}
|
|
43
|
+
.eds-timepicker__wrapper .eds-timepicker__arrowbutton:hover {
|
|
44
|
+
background-color: #d1d4e3;
|
|
45
|
+
}
|
|
46
|
+
.eds-timepicker__wrapper .eds-timepicker .eds-form-control__append--tooltip {
|
|
47
|
+
margin-top: 0.75rem;
|
|
48
|
+
margin-right: -0.25rem;
|
|
49
|
+
}
|
|
50
|
+
.eds-timepicker__wrapper .eds-icon-button--disabled__wrapper {
|
|
51
|
+
display: none;
|
|
52
|
+
}
|
|
53
|
+
.eds-timepicker__wrapper .eds-feedback-text {
|
|
54
|
+
position: absolute;
|
|
55
|
+
top: 3.5rem;
|
|
56
|
+
}/* DO NOT CHANGE!*/
|
|
57
|
+
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
5
58
|
.eds-datepicker__calender {
|
|
6
59
|
font-family: var(--eds-font-family);
|
|
7
60
|
box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
|
|
@@ -124,57 +177,23 @@
|
|
|
124
177
|
height: 2.75rem;
|
|
125
178
|
}/* DO NOT CHANGE!*/
|
|
126
179
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
127
|
-
.eds-
|
|
128
|
-
|
|
129
|
-
display: flex;
|
|
130
|
-
align-items: center;
|
|
131
|
-
width: -webkit-fit-content;
|
|
132
|
-
width: -moz-fit-content;
|
|
133
|
-
width: fit-content;
|
|
134
|
-
}
|
|
135
|
-
.eds-timepicker__wrapper .eds-timepicker {
|
|
136
|
-
justify-content: center;
|
|
137
|
-
padding: 0rem 3rem;
|
|
138
|
-
}
|
|
139
|
-
.eds-timepicker__wrapper .eds-timepicker .eds-input-group__label,
|
|
140
|
-
.eds-timepicker__wrapper .eds-timepicker .eds-input-group__label--filled {
|
|
141
|
-
margin-left: 0rem !important;
|
|
142
|
-
}
|
|
143
|
-
.eds-timepicker__wrapper .eds-timepicker__arrowbutton {
|
|
144
|
-
color: #181c56;
|
|
145
|
-
}
|
|
146
|
-
.eds-timepicker__wrapper .eds-timepicker__arrowbutton--left {
|
|
147
|
-
position: absolute;
|
|
148
|
-
left: 0.35rem;
|
|
149
|
-
z-index: 1;
|
|
180
|
+
.eds-datefield div:first-of-type.eds-date-and-time-field__segment {
|
|
181
|
+
margin-left: 1rem;
|
|
150
182
|
}
|
|
151
|
-
.eds-
|
|
152
|
-
|
|
153
|
-
|
|
183
|
+
.eds-datefield.eds-form-control-wrapper--disabled[focus-within] {
|
|
184
|
+
border-color: transparent;
|
|
185
|
+
box-shadow: none;
|
|
154
186
|
}
|
|
155
|
-
.eds-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
visibility: hidden;
|
|
187
|
+
.eds-datefield.eds-form-control-wrapper--disabled:focus-within {
|
|
188
|
+
border-color: transparent;
|
|
189
|
+
box-shadow: none;
|
|
159
190
|
}
|
|
160
|
-
.eds-
|
|
161
|
-
background
|
|
191
|
+
.eds-datefield.eds-form-control-wrapper--disabled .eds-date-and-time-field__segment:focus {
|
|
192
|
+
background: none;
|
|
162
193
|
}
|
|
163
|
-
.eds-
|
|
194
|
+
.eds-datefield .eds-form-control__append--tooltip {
|
|
164
195
|
margin-top: 0.75rem;
|
|
165
196
|
margin-right: -0.25rem;
|
|
166
|
-
}
|
|
167
|
-
.eds-timepicker__wrapper .eds-icon-button--disabled__wrapper {
|
|
168
|
-
display: none;
|
|
169
|
-
}
|
|
170
|
-
.eds-timepicker__wrapper .eds-feedback-text {
|
|
171
|
-
position: absolute;
|
|
172
|
-
top: 3.5rem;
|
|
173
|
-
}/* DO NOT CHANGE!*/
|
|
174
|
-
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
175
|
-
.eds-native-timepicker input[type=time]::-webkit-calendar-picker-indicator {
|
|
176
|
-
position: relative;
|
|
177
|
-
top: -0.5rem;
|
|
178
197
|
}/* DO NOT CHANGE!*/
|
|
179
198
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
180
199
|
[dir="ltr"] .eds-date-and-time-field__segment {
|
|
@@ -202,64 +221,6 @@
|
|
|
202
221
|
border-radius: 0.0625rem;
|
|
203
222
|
}/* DO NOT CHANGE!*/
|
|
204
223
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
205
|
-
.eds-datefield div:first-of-type.eds-date-and-time-field__segment {
|
|
206
|
-
margin-left: 1rem;
|
|
207
|
-
}
|
|
208
|
-
.eds-datefield.eds-form-control-wrapper--disabled[focus-within] {
|
|
209
|
-
border-color: transparent;
|
|
210
|
-
box-shadow: none;
|
|
211
|
-
}
|
|
212
|
-
.eds-datefield.eds-form-control-wrapper--disabled:focus-within {
|
|
213
|
-
border-color: transparent;
|
|
214
|
-
box-shadow: none;
|
|
215
|
-
}
|
|
216
|
-
.eds-datefield.eds-form-control-wrapper--disabled .eds-date-and-time-field__segment:focus {
|
|
217
|
-
background: none;
|
|
218
|
-
}
|
|
219
|
-
.eds-datefield .eds-form-control__append--tooltip {
|
|
220
|
-
margin-top: 0.75rem;
|
|
221
|
-
margin-right: -0.25rem;
|
|
222
|
-
}/* DO NOT CHANGE!*/
|
|
223
|
-
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
224
|
-
.eds-datepicker {
|
|
225
|
-
position: relative;
|
|
226
|
-
width: -webkit-fit-content;
|
|
227
|
-
width: -moz-fit-content;
|
|
228
|
-
width: fit-content;
|
|
229
|
-
}
|
|
230
|
-
.eds-datepicker__open-calendar-button {
|
|
231
|
-
position: absolute;
|
|
232
|
-
right: 0.5rem;
|
|
233
|
-
top: 0.45rem;
|
|
234
|
-
}
|
|
235
|
-
.eds-datepicker__open-calendar-button.eds-icon-button {
|
|
236
|
-
color: #181c56;
|
|
237
|
-
}
|
|
238
|
-
.eds-datepicker__open-calendar-button.eds-icon-button:hover {
|
|
239
|
-
background-color: #d1d4e3;
|
|
240
|
-
}
|
|
241
|
-
.eds-datepicker__open-calendar-button.eds-icon-button:focus {
|
|
242
|
-
border: 0.0625rem solid #181c56;
|
|
243
|
-
}
|
|
244
|
-
.eds-datepicker__open-calendar-button.eds-icon-button:active {
|
|
245
|
-
background-color: #babbcf;
|
|
246
|
-
}
|
|
247
|
-
.eds-datepicker__datefield {
|
|
248
|
-
padding-right: 4rem;
|
|
249
|
-
}
|
|
250
|
-
.eds-datepicker__datefield--disabled {
|
|
251
|
-
padding-right: 1rem;
|
|
252
|
-
}
|
|
253
|
-
.eds-datepicker__datefield__wrapper {
|
|
254
|
-
position: relative;
|
|
255
|
-
}
|
|
256
|
-
.eds-datepicker__calendar-modal.eds-modal__content {
|
|
257
|
-
padding: unset;
|
|
258
|
-
width: inherit;
|
|
259
|
-
background-color: unset;
|
|
260
|
-
overflow: visible;
|
|
261
|
-
}/* DO NOT CHANGE!*/
|
|
262
|
-
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
263
224
|
.eds-datepicker__calendar,
|
|
264
225
|
.eds-contrast .eds-datepicker__calendar {
|
|
265
226
|
width: -webkit-fit-content;
|
|
@@ -371,4 +332,43 @@
|
|
|
371
332
|
.eds-datepicker__calendar__grid__cell--today,
|
|
372
333
|
.eds-contrast .eds-datepicker__calendar__grid__cell--today {
|
|
373
334
|
border-bottom: 2px solid #ff5959;
|
|
335
|
+
}/* DO NOT CHANGE!*/
|
|
336
|
+
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
337
|
+
.eds-datepicker {
|
|
338
|
+
position: relative;
|
|
339
|
+
width: -webkit-fit-content;
|
|
340
|
+
width: -moz-fit-content;
|
|
341
|
+
width: fit-content;
|
|
342
|
+
}
|
|
343
|
+
.eds-datepicker__open-calendar-button {
|
|
344
|
+
position: absolute;
|
|
345
|
+
right: 0.5rem;
|
|
346
|
+
top: 0.45rem;
|
|
347
|
+
}
|
|
348
|
+
.eds-datepicker__open-calendar-button.eds-icon-button {
|
|
349
|
+
color: #181c56;
|
|
350
|
+
}
|
|
351
|
+
.eds-datepicker__open-calendar-button.eds-icon-button:hover {
|
|
352
|
+
background-color: #d1d4e3;
|
|
353
|
+
}
|
|
354
|
+
.eds-datepicker__open-calendar-button.eds-icon-button:focus {
|
|
355
|
+
border: 0.0625rem solid #181c56;
|
|
356
|
+
}
|
|
357
|
+
.eds-datepicker__open-calendar-button.eds-icon-button:active {
|
|
358
|
+
background-color: #babbcf;
|
|
359
|
+
}
|
|
360
|
+
.eds-datepicker__datefield {
|
|
361
|
+
padding-right: 4rem;
|
|
362
|
+
}
|
|
363
|
+
.eds-datepicker__datefield--disabled {
|
|
364
|
+
padding-right: 1rem;
|
|
365
|
+
}
|
|
366
|
+
.eds-datepicker__datefield__wrapper {
|
|
367
|
+
position: relative;
|
|
368
|
+
}
|
|
369
|
+
.eds-datepicker__calendar-modal.eds-modal__content {
|
|
370
|
+
padding: unset;
|
|
371
|
+
width: inherit;
|
|
372
|
+
background-color: unset;
|
|
373
|
+
overflow: visible;
|
|
374
374
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@entur/datepicker",
|
|
3
|
-
"version": "4.0.0-beta.
|
|
3
|
+
"version": "4.0.0-beta.3",
|
|
4
4
|
"license": "EUPL-1.2",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/datepicker.esm.js",
|
|
@@ -53,5 +53,5 @@
|
|
|
53
53
|
"node": "14.17.0",
|
|
54
54
|
"yarn": "1.18.0"
|
|
55
55
|
},
|
|
56
|
-
"gitHead": "
|
|
56
|
+
"gitHead": "d640cc441f05f76a621e2601d36d517ab7358c39"
|
|
57
57
|
}
|