@entur/datepicker 8.0.11 → 8.0.13
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 +13 -13
- package/dist/DatePicker/CalendarCell.d.ts +10 -10
- package/dist/DatePicker/CalendarGrid.d.ts +9 -9
- package/dist/DatePicker/DateField.d.ts +45 -45
- package/dist/DatePicker/DatePicker.d.ts +65 -65
- package/dist/DatePicker/NativeDatePicker.d.ts +38 -38
- package/dist/DatePicker/index.d.ts +4 -4
- package/dist/TimePicker/NativeTimePicker.d.ts +27 -27
- package/dist/TimePicker/TimePicker.d.ts +43 -43
- package/dist/TimePicker/TimePickerArrowButton.d.ts +6 -6
- package/dist/TimePicker/index.d.ts +3 -3
- package/dist/datepicker.cjs.development.js +88 -94
- 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 +20 -20
- package/dist/datepicker.esm.js.map +1 -1
- package/dist/index.d.ts +6 -6
- package/dist/shared/CalendarButton.d.ts +9 -9
- package/dist/shared/FieldSegment.d.ts +9 -9
- package/dist/shared/index.d.ts +1 -1
- package/dist/shared/utils.d.ts +30 -30
- package/dist/styles.css +79 -83
- package/package.json +10 -10
package/dist/styles.css
CHANGED
|
@@ -1,67 +1,29 @@
|
|
|
1
|
-
:root {
|
|
2
|
-
--eds-datepicker: 1;
|
|
3
|
-
}
|
|
4
1
|
/* DO NOT CHANGE!*/
|
|
5
2
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}
|
|
9
|
-
.eds-datefield.eds-form-control-wrapper--disabled[focus-within] {
|
|
10
|
-
border-color: transparent;
|
|
11
|
-
box-shadow: none;
|
|
12
|
-
}
|
|
13
|
-
.eds-datefield.eds-form-control-wrapper--disabled:focus-within {
|
|
14
|
-
border-color: transparent;
|
|
15
|
-
box-shadow: none;
|
|
16
|
-
}
|
|
17
|
-
.eds-datefield.eds-form-control-wrapper--disabled .eds-date-and-time-field__segment:focus {
|
|
18
|
-
background: none;
|
|
3
|
+
[dir="ltr"] .eds-date-and-time-field__segment {
|
|
4
|
+
text-align: right;
|
|
19
5
|
}
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
margin-right: -0.25rem;
|
|
6
|
+
[dir="rtl"] .eds-date-and-time-field__segment {
|
|
7
|
+
text-align: left;
|
|
23
8
|
}
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
width: fit-content;
|
|
9
|
+
.eds-date-and-time-field__segment {
|
|
10
|
+
margin-top: 1rem;
|
|
11
|
+
padding: 0 2px;
|
|
12
|
+
font-feature-settings: "tnum";
|
|
13
|
+
font-variant-numeric: tabular-nums;
|
|
30
14
|
}
|
|
31
|
-
.eds-
|
|
32
|
-
|
|
33
|
-
right: 0.5rem;
|
|
34
|
-
top: 0.45rem;
|
|
15
|
+
.eds-date-and-time-field__segment--placeholder {
|
|
16
|
+
color: #646464;
|
|
35
17
|
}
|
|
36
|
-
.eds-
|
|
37
|
-
|
|
18
|
+
.eds-date-and-time-field__segment--dot-separator {
|
|
19
|
+
margin-left: -0.1rem;
|
|
20
|
+
margin-right: -0.2rem;
|
|
38
21
|
}
|
|
39
|
-
.eds-
|
|
22
|
+
.eds-date-and-time-field__segment:focus {
|
|
40
23
|
background-color: #656782;
|
|
41
24
|
color: #ffffff;
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
border: 0.0625rem solid #181c56;
|
|
45
|
-
}
|
|
46
|
-
.eds-datepicker__open-calendar-button.eds-icon-button:active {
|
|
47
|
-
background-color: #8285a8;
|
|
48
|
-
}
|
|
49
|
-
.eds-datepicker__datefield {
|
|
50
|
-
padding-right: 4rem;
|
|
51
|
-
}
|
|
52
|
-
.eds-datepicker__datefield--disabled {
|
|
53
|
-
padding-right: 1rem;
|
|
54
|
-
}
|
|
55
|
-
.eds-datepicker__datefield__wrapper {
|
|
56
|
-
position: relative;
|
|
57
|
-
}
|
|
58
|
-
.eds-datepicker__calendar-modal.eds-modal__content {
|
|
59
|
-
padding: 0;
|
|
60
|
-
padding: initial;
|
|
61
|
-
width: inherit;
|
|
62
|
-
background-color: transparent;
|
|
63
|
-
background-color: initial;
|
|
64
|
-
overflow: scroll;
|
|
25
|
+
outline: none;
|
|
26
|
+
border-radius: 0.0625rem;
|
|
65
27
|
}
|
|
66
28
|
/* DO NOT CHANGE!*/
|
|
67
29
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
@@ -190,6 +152,66 @@
|
|
|
190
152
|
.eds-contrast .eds-datepicker__calendar__grid__cell--today {
|
|
191
153
|
border-bottom: 2px solid #ff5959;
|
|
192
154
|
}
|
|
155
|
+
.eds-datefield div:first-of-type.eds-date-and-time-field__segment {
|
|
156
|
+
margin-left: 1rem;
|
|
157
|
+
}
|
|
158
|
+
.eds-datefield.eds-form-control-wrapper--disabled[focus-within] {
|
|
159
|
+
border-color: transparent;
|
|
160
|
+
box-shadow: none;
|
|
161
|
+
}
|
|
162
|
+
.eds-datefield.eds-form-control-wrapper--disabled:focus-within {
|
|
163
|
+
border-color: transparent;
|
|
164
|
+
box-shadow: none;
|
|
165
|
+
}
|
|
166
|
+
.eds-datefield.eds-form-control-wrapper--disabled .eds-date-and-time-field__segment:focus {
|
|
167
|
+
background: none;
|
|
168
|
+
}
|
|
169
|
+
.eds-datefield .eds-form-control__append--tooltip {
|
|
170
|
+
margin-top: 0.75rem;
|
|
171
|
+
margin-right: -0.25rem;
|
|
172
|
+
}
|
|
173
|
+
/* DO NOT CHANGE!*/
|
|
174
|
+
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
175
|
+
.eds-datepicker {
|
|
176
|
+
position: relative;
|
|
177
|
+
width: -moz-fit-content;
|
|
178
|
+
width: fit-content;
|
|
179
|
+
}
|
|
180
|
+
.eds-datepicker__open-calendar-button {
|
|
181
|
+
position: absolute;
|
|
182
|
+
right: 0.5rem;
|
|
183
|
+
top: 0.45rem;
|
|
184
|
+
}
|
|
185
|
+
.eds-datepicker__open-calendar-button.eds-icon-button {
|
|
186
|
+
color: #181c56;
|
|
187
|
+
}
|
|
188
|
+
.eds-datepicker__open-calendar-button.eds-icon-button:hover {
|
|
189
|
+
background-color: #656782;
|
|
190
|
+
color: #ffffff;
|
|
191
|
+
}
|
|
192
|
+
.eds-datepicker__open-calendar-button.eds-icon-button:focus {
|
|
193
|
+
border: 0.0625rem solid #181c56;
|
|
194
|
+
}
|
|
195
|
+
.eds-datepicker__open-calendar-button.eds-icon-button:active {
|
|
196
|
+
background-color: #8285a8;
|
|
197
|
+
}
|
|
198
|
+
.eds-datepicker__datefield {
|
|
199
|
+
padding-right: 4rem;
|
|
200
|
+
}
|
|
201
|
+
.eds-datepicker__datefield--disabled {
|
|
202
|
+
padding-right: 1rem;
|
|
203
|
+
}
|
|
204
|
+
.eds-datepicker__datefield__wrapper {
|
|
205
|
+
position: relative;
|
|
206
|
+
}
|
|
207
|
+
.eds-datepicker__calendar-modal.eds-modal__content {
|
|
208
|
+
padding: 0;
|
|
209
|
+
padding: initial;
|
|
210
|
+
width: inherit;
|
|
211
|
+
background-color: transparent;
|
|
212
|
+
background-color: initial;
|
|
213
|
+
overflow: scroll;
|
|
214
|
+
}
|
|
193
215
|
/* DO NOT CHANGE!*/
|
|
194
216
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
195
217
|
.eds-timepicker__wrapper {
|
|
@@ -238,36 +260,10 @@
|
|
|
238
260
|
position: absolute;
|
|
239
261
|
top: 3.5rem;
|
|
240
262
|
}
|
|
241
|
-
/* DO NOT CHANGE!*/
|
|
242
|
-
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
243
263
|
.eds-native-timepicker input[type=time]::-webkit-calendar-picker-indicator {
|
|
244
264
|
position: relative;
|
|
245
265
|
top: -0.5rem;
|
|
246
266
|
}
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
[dir="ltr"] .eds-date-and-time-field__segment {
|
|
250
|
-
text-align: right;
|
|
251
|
-
}
|
|
252
|
-
[dir="rtl"] .eds-date-and-time-field__segment {
|
|
253
|
-
text-align: left;
|
|
254
|
-
}
|
|
255
|
-
.eds-date-and-time-field__segment {
|
|
256
|
-
margin-top: 1rem;
|
|
257
|
-
padding: 0 2px;
|
|
258
|
-
font-feature-settings: "tnum";
|
|
259
|
-
font-variant-numeric: tabular-nums;
|
|
260
|
-
}
|
|
261
|
-
.eds-date-and-time-field__segment--placeholder {
|
|
262
|
-
color: #646464;
|
|
263
|
-
}
|
|
264
|
-
.eds-date-and-time-field__segment--dot-separator {
|
|
265
|
-
margin-left: -0.1rem;
|
|
266
|
-
margin-right: -0.2rem;
|
|
267
|
-
}
|
|
268
|
-
.eds-date-and-time-field__segment:focus {
|
|
269
|
-
background-color: #656782;
|
|
270
|
-
color: #ffffff;
|
|
271
|
-
outline: none;
|
|
272
|
-
border-radius: 0.0625rem;
|
|
267
|
+
:root {
|
|
268
|
+
--eds-datepicker: 1;
|
|
273
269
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@entur/datepicker",
|
|
3
|
-
"version": "8.0.
|
|
3
|
+
"version": "8.0.13",
|
|
4
4
|
"license": "EUPL-1.2",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/datepicker.esm.js",
|
|
@@ -27,15 +27,15 @@
|
|
|
27
27
|
"react-dom": ">=16.8.0"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@entur/a11y": "^0.2.
|
|
31
|
-
"@entur/button": "^3.1.
|
|
32
|
-
"@entur/form": "^7.0.
|
|
33
|
-
"@entur/icons": "^6.
|
|
34
|
-
"@entur/modal": "^1.7.
|
|
30
|
+
"@entur/a11y": "^0.2.70",
|
|
31
|
+
"@entur/button": "^3.1.2",
|
|
32
|
+
"@entur/form": "^7.0.17",
|
|
33
|
+
"@entur/icons": "^6.5.0",
|
|
34
|
+
"@entur/modal": "^1.7.11",
|
|
35
35
|
"@entur/tokens": "^3.10.0",
|
|
36
|
-
"@entur/tooltip": "^2.6.
|
|
37
|
-
"@entur/typography": "^1.8.
|
|
38
|
-
"@entur/utils": "^0.9.
|
|
36
|
+
"@entur/tooltip": "^2.6.27",
|
|
37
|
+
"@entur/typography": "^1.8.8",
|
|
38
|
+
"@entur/utils": "^0.9.5",
|
|
39
39
|
"@floating-ui/react-dom": "^1.0.0",
|
|
40
40
|
"@internationalized/date": "^3.0.2",
|
|
41
41
|
"@react-aria/button": "^3.6.4",
|
|
@@ -52,5 +52,5 @@
|
|
|
52
52
|
"node": "16.17.0",
|
|
53
53
|
"yarn": "1.22.19"
|
|
54
54
|
},
|
|
55
|
-
"gitHead": "
|
|
55
|
+
"gitHead": "9b8d4e5d2e6f7a74256371e30ebef43e046c9338"
|
|
56
56
|
}
|