@entur/datepicker 9.1.5 → 9.2.0-beta.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/DatePicker/Calendar.d.ts +17 -3
- package/dist/DatePicker/CalendarCell.d.ts +3 -1
- package/dist/DatePicker/CalendarGrid.d.ts +4 -1
- package/dist/DatePicker/DatePicker.d.ts +22 -15
- package/dist/TimePicker/TimePicker.d.ts +21 -3
- package/dist/TimePicker/TimePickerArrowButton.d.ts +6 -2
- package/dist/datepicker.cjs.development.js +151 -74
- 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 +151 -76
- package/dist/datepicker.esm.js.map +1 -1
- package/dist/shared/FieldSegment.d.ts +2 -1
- package/dist/shared/utils.d.ts +7 -4
- package/dist/styles.css +38 -52
- package/package.json +6 -6
package/dist/styles.css
CHANGED
|
@@ -18,6 +18,33 @@
|
|
|
18
18
|
}
|
|
19
19
|
/* DO NOT CHANGE!*/
|
|
20
20
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
21
|
+
[dir="ltr"] .eds-date-and-time-field__segment {
|
|
22
|
+
text-align: right;
|
|
23
|
+
}
|
|
24
|
+
[dir="rtl"] .eds-date-and-time-field__segment {
|
|
25
|
+
text-align: left;
|
|
26
|
+
}
|
|
27
|
+
.eds-date-and-time-field__segment {
|
|
28
|
+
margin-top: 1rem;
|
|
29
|
+
padding: 0 2px;
|
|
30
|
+
font-feature-settings: "tnum";
|
|
31
|
+
font-variant-numeric: tabular-nums;
|
|
32
|
+
}
|
|
33
|
+
.eds-date-and-time-field__segment--placeholder {
|
|
34
|
+
color: #646464;
|
|
35
|
+
}
|
|
36
|
+
.eds-date-and-time-field__segment--dot-separator {
|
|
37
|
+
margin-left: -0.1rem;
|
|
38
|
+
margin-right: -0.2rem;
|
|
39
|
+
}
|
|
40
|
+
.eds-date-and-time-field__segment:focus {
|
|
41
|
+
background-color: #656782;
|
|
42
|
+
color: #ffffff;
|
|
43
|
+
outline: transparent;
|
|
44
|
+
border-radius: 0.0625rem;
|
|
45
|
+
}
|
|
46
|
+
/* DO NOT CHANGE!*/
|
|
47
|
+
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
21
48
|
.eds-datepicker__calendar,
|
|
22
49
|
.eds-contrast .eds-datepicker__calendar {
|
|
23
50
|
width: -moz-fit-content;
|
|
@@ -188,62 +215,25 @@
|
|
|
188
215
|
}
|
|
189
216
|
/* DO NOT CHANGE!*/
|
|
190
217
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
191
|
-
[dir="ltr"] .eds-date-and-time-field__segment {
|
|
192
|
-
text-align: right;
|
|
193
|
-
}
|
|
194
|
-
[dir="rtl"] .eds-date-and-time-field__segment {
|
|
195
|
-
text-align: left;
|
|
196
|
-
}
|
|
197
|
-
.eds-date-and-time-field__segment {
|
|
198
|
-
margin-top: 1rem;
|
|
199
|
-
padding: 0 2px;
|
|
200
|
-
font-feature-settings: "tnum";
|
|
201
|
-
font-variant-numeric: tabular-nums;
|
|
202
|
-
}
|
|
203
|
-
.eds-date-and-time-field__segment--placeholder {
|
|
204
|
-
color: #646464;
|
|
205
|
-
}
|
|
206
|
-
.eds-date-and-time-field__segment--dot-separator {
|
|
207
|
-
margin-left: -0.1rem;
|
|
208
|
-
margin-right: -0.2rem;
|
|
209
|
-
}
|
|
210
|
-
.eds-date-and-time-field__segment:focus {
|
|
211
|
-
background-color: #656782;
|
|
212
|
-
color: #ffffff;
|
|
213
|
-
outline: transparent;
|
|
214
|
-
border-radius: 0.0625rem;
|
|
215
|
-
}
|
|
216
|
-
/* DO NOT CHANGE!*/
|
|
217
|
-
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
218
218
|
.eds-timepicker__wrapper {
|
|
219
|
-
position: relative;
|
|
220
|
-
display: flex;
|
|
221
|
-
align-items: center;
|
|
222
219
|
width: -moz-fit-content;
|
|
223
220
|
width: fit-content;
|
|
224
|
-
height: -moz-fit-content;
|
|
225
|
-
height: fit-content;
|
|
226
221
|
}
|
|
227
222
|
.eds-timepicker__wrapper .eds-timepicker {
|
|
228
223
|
justify-content: center;
|
|
229
|
-
padding: 0rem 3rem;
|
|
230
224
|
}
|
|
231
225
|
.eds-timepicker__wrapper .eds-timepicker .eds-input-group__label,
|
|
232
226
|
.eds-timepicker__wrapper .eds-timepicker .eds-input-group__label--filled {
|
|
233
227
|
margin-left: 0rem !important;
|
|
234
228
|
}
|
|
229
|
+
.eds-timepicker__wrapper .eds-timepicker--disabled {
|
|
230
|
+
padding-left: 1rem;
|
|
231
|
+
padding-right: 1rem;
|
|
232
|
+
}
|
|
235
233
|
.eds-timepicker__wrapper .eds-timepicker__arrowbutton {
|
|
234
|
+
margin: 0 0.25rem;
|
|
236
235
|
color: #181c56;
|
|
237
236
|
}
|
|
238
|
-
.eds-timepicker__wrapper .eds-timepicker__arrowbutton--left {
|
|
239
|
-
position: absolute;
|
|
240
|
-
left: 0.35rem;
|
|
241
|
-
z-index: 1;
|
|
242
|
-
}
|
|
243
|
-
.eds-timepicker__wrapper .eds-timepicker__arrowbutton--right {
|
|
244
|
-
position: absolute;
|
|
245
|
-
right: 0.4rem;
|
|
246
|
-
}
|
|
247
237
|
.eds-timepicker__wrapper .eds-timepicker__arrowbutton--disabled {
|
|
248
238
|
opacity: 0.5;
|
|
249
239
|
pointer-events: none;
|
|
@@ -258,24 +248,17 @@
|
|
|
258
248
|
.eds-timepicker__wrapper .eds-timepicker__arrowbutton:active {
|
|
259
249
|
background-color: #8285a8;
|
|
260
250
|
}
|
|
261
|
-
.eds-timepicker__wrapper .eds-timepicker .eds-form-
|
|
262
|
-
|
|
263
|
-
margin
|
|
251
|
+
.eds-timepicker__wrapper .eds-timepicker .eds-form-control__prepend,
|
|
252
|
+
.eds-timepicker__wrapper .eds-timepicker .eds-form-control__append {
|
|
253
|
+
margin: 0;
|
|
264
254
|
}
|
|
265
255
|
.eds-timepicker__wrapper .eds-icon-button--disabled__wrapper {
|
|
266
256
|
display: none;
|
|
267
257
|
}
|
|
268
|
-
.eds-timepicker__wrapper .eds-feedback-text {
|
|
269
|
-
position: absolute;
|
|
270
|
-
top: 3.5rem;
|
|
271
|
-
}
|
|
272
258
|
.eds-native-timepicker input[type=time]::-webkit-calendar-picker-indicator {
|
|
273
259
|
position: relative;
|
|
274
260
|
top: -0.5rem;
|
|
275
261
|
}
|
|
276
|
-
:root {
|
|
277
|
-
--eds-datepicker: 1;
|
|
278
|
-
}
|
|
279
262
|
.eds-simple-timepicker {
|
|
280
263
|
--input-width: 7rem;
|
|
281
264
|
width: var(--input-width);
|
|
@@ -293,3 +276,6 @@
|
|
|
293
276
|
margin-top: -0.2rem;
|
|
294
277
|
margin-left: -0.5rem;
|
|
295
278
|
}
|
|
279
|
+
:root {
|
|
280
|
+
--eds-datepicker: 1;
|
|
281
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@entur/datepicker",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.2.0-beta.0",
|
|
4
4
|
"license": "EUPL-1.2",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/datepicker.esm.js",
|
|
@@ -28,12 +28,12 @@
|
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@entur/a11y": "^0.2.75",
|
|
31
|
-
"@entur/button": "^3.2.
|
|
32
|
-
"@entur/form": "^7.0.
|
|
31
|
+
"@entur/button": "^3.2.10",
|
|
32
|
+
"@entur/form": "^7.0.38-beta.0",
|
|
33
33
|
"@entur/icons": "^6.15.0",
|
|
34
|
-
"@entur/modal": "^1.7.
|
|
34
|
+
"@entur/modal": "^1.7.31-beta.0",
|
|
35
35
|
"@entur/tokens": "^3.12.0",
|
|
36
|
-
"@entur/tooltip": "^2.6.
|
|
36
|
+
"@entur/tooltip": "^2.6.47-beta.0",
|
|
37
37
|
"@entur/typography": "^1.8.23",
|
|
38
38
|
"@entur/utils": "^0.10.0",
|
|
39
39
|
"@floating-ui/react-dom": "^1.0.0",
|
|
@@ -48,5 +48,5 @@
|
|
|
48
48
|
"classnames": "^2.3.1",
|
|
49
49
|
"react-focus-lock": "^2.9.1"
|
|
50
50
|
},
|
|
51
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "453c823f5b935959f701f0c777236a8e0c23601e"
|
|
52
52
|
}
|