@entur/datepicker 4.0.0-alpha.1 → 4.0.0-beta.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/CHANGELOG.md +12 -0
- package/dist/DatePicker/beta/DateField.d.ts +15 -1
- package/dist/DatePicker/beta/DatePicker.d.ts +31 -9
- package/dist/datepicker.cjs.development.js +26 -10
- 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 +26 -10
- package/dist/datepicker.esm.js.map +1 -1
- package/dist/styles.css +109 -94
- package/package.json +2 -2
package/dist/styles.css
CHANGED
|
@@ -2,59 +2,6 @@
|
|
|
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. */
|
|
58
5
|
.eds-datepicker__calender {
|
|
59
6
|
font-family: var(--eds-font-family);
|
|
60
7
|
box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
|
|
@@ -177,6 +124,59 @@
|
|
|
177
124
|
height: 2.75rem;
|
|
178
125
|
}/* DO NOT CHANGE!*/
|
|
179
126
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
127
|
+
.eds-timepicker__wrapper {
|
|
128
|
+
position: relative;
|
|
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;
|
|
150
|
+
}
|
|
151
|
+
.eds-timepicker__wrapper .eds-timepicker__arrowbutton--right {
|
|
152
|
+
position: absolute;
|
|
153
|
+
right: 0.4rem;
|
|
154
|
+
}
|
|
155
|
+
.eds-timepicker__wrapper .eds-timepicker__arrowbutton--disabled {
|
|
156
|
+
opacity: 0.5;
|
|
157
|
+
pointer-events: none;
|
|
158
|
+
visibility: hidden;
|
|
159
|
+
}
|
|
160
|
+
.eds-timepicker__wrapper .eds-timepicker__arrowbutton:hover {
|
|
161
|
+
background-color: #d1d4e3;
|
|
162
|
+
}
|
|
163
|
+
.eds-timepicker__wrapper .eds-timepicker .eds-form-control__append--tooltip {
|
|
164
|
+
margin-top: 0.75rem;
|
|
165
|
+
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
|
+
}/* DO NOT CHANGE!*/
|
|
179
|
+
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
180
180
|
[dir="ltr"] .eds-date-and-time-field__segment {
|
|
181
181
|
text-align: right;
|
|
182
182
|
}
|
|
@@ -215,6 +215,49 @@
|
|
|
215
215
|
}
|
|
216
216
|
.eds-datefield.eds-form-control-wrapper--disabled .eds-date-and-time-field__segment:focus {
|
|
217
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;
|
|
218
261
|
}/* DO NOT CHANGE!*/
|
|
219
262
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
220
263
|
.eds-datepicker__calendar,
|
|
@@ -252,6 +295,10 @@
|
|
|
252
295
|
.eds-contrast .eds-datepicker__calendar__header .eds-icon-button:active {
|
|
253
296
|
background-color: #babbcf;
|
|
254
297
|
}
|
|
298
|
+
.eds-datepicker__calendar__header .eds-icon-button--disabled__wrapper,
|
|
299
|
+
.eds-contrast .eds-datepicker__calendar__header .eds-icon-button--disabled__wrapper {
|
|
300
|
+
visibility: hidden;
|
|
301
|
+
}
|
|
255
302
|
.eds-datepicker__calendar__grid,
|
|
256
303
|
.eds-contrast .eds-datepicker__calendar__grid {
|
|
257
304
|
position: relative;
|
|
@@ -307,53 +354,21 @@
|
|
|
307
354
|
}
|
|
308
355
|
.eds-datepicker__calendar__grid__cell--disabled,
|
|
309
356
|
.eds-contrast .eds-datepicker__calendar__grid__cell--disabled {
|
|
310
|
-
|
|
357
|
+
opacity: 0.5;
|
|
311
358
|
}
|
|
312
359
|
.eds-datepicker__calendar__grid__cell--disabled:hover,
|
|
313
360
|
.eds-contrast .eds-datepicker__calendar__grid__cell--disabled:hover {
|
|
314
361
|
background-color: transparent;
|
|
315
362
|
}
|
|
363
|
+
.eds-datepicker__calendar__grid__cell--outside-month,
|
|
364
|
+
.eds-contrast .eds-datepicker__calendar__grid__cell--outside-month {
|
|
365
|
+
color: transparent;
|
|
366
|
+
}
|
|
367
|
+
.eds-datepicker__calendar__grid__cell--outside-month:hover,
|
|
368
|
+
.eds-contrast .eds-datepicker__calendar__grid__cell--outside-month:hover {
|
|
369
|
+
background-color: transparent;
|
|
370
|
+
}
|
|
316
371
|
.eds-datepicker__calendar__grid__cell--today,
|
|
317
372
|
.eds-contrast .eds-datepicker__calendar__grid__cell--today {
|
|
318
373
|
border-bottom: 2px solid #ff5959;
|
|
319
|
-
}/* DO NOT CHANGE!*/
|
|
320
|
-
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
321
|
-
.eds-datepicker {
|
|
322
|
-
position: relative;
|
|
323
|
-
width: -webkit-fit-content;
|
|
324
|
-
width: -moz-fit-content;
|
|
325
|
-
width: fit-content;
|
|
326
|
-
}
|
|
327
|
-
.eds-datepicker__open-calendar-button {
|
|
328
|
-
position: absolute;
|
|
329
|
-
right: 0.5rem;
|
|
330
|
-
top: 0.45rem;
|
|
331
|
-
}
|
|
332
|
-
.eds-datepicker__open-calendar-button.eds-icon-button {
|
|
333
|
-
color: #181c56;
|
|
334
|
-
}
|
|
335
|
-
.eds-datepicker__open-calendar-button.eds-icon-button:hover {
|
|
336
|
-
background-color: #d1d4e3;
|
|
337
|
-
}
|
|
338
|
-
.eds-datepicker__open-calendar-button.eds-icon-button:focus {
|
|
339
|
-
border: 0.0625rem solid #181c56;
|
|
340
|
-
}
|
|
341
|
-
.eds-datepicker__open-calendar-button.eds-icon-button:active {
|
|
342
|
-
background-color: #babbcf;
|
|
343
|
-
}
|
|
344
|
-
.eds-datepicker__datefield {
|
|
345
|
-
padding-right: 4rem;
|
|
346
|
-
}
|
|
347
|
-
.eds-datepicker__datefield--disabled {
|
|
348
|
-
padding-right: 1rem;
|
|
349
|
-
}
|
|
350
|
-
.eds-datepicker__datefield__wrapper {
|
|
351
|
-
display: flex;
|
|
352
|
-
position: relative;
|
|
353
|
-
}
|
|
354
|
-
.eds-datepicker__calendar-modal.eds-modal__content {
|
|
355
|
-
padding: unset;
|
|
356
|
-
width: inherit;
|
|
357
|
-
background-color: unset;
|
|
358
|
-
overflow: visible;
|
|
359
374
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@entur/datepicker",
|
|
3
|
-
"version": "4.0.0-
|
|
3
|
+
"version": "4.0.0-beta.1",
|
|
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": "88f1f6a244e4f9679ec763fb60b620be6122b106"
|
|
57
57
|
}
|