@entur/datepicker 10.1.2-beta.0 → 10.1.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/dist/styles.css +82 -82
- package/package.json +10 -10
package/dist/styles.css
CHANGED
|
@@ -1,5 +1,61 @@
|
|
|
1
1
|
/* DO NOT CHANGE!*/
|
|
2
2
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
3
|
+
.eds-date-and-time-field__segment {
|
|
4
|
+
margin-top: 1rem;
|
|
5
|
+
padding: 0 2px;
|
|
6
|
+
font-feature-settings: "tnum";
|
|
7
|
+
font-variant-numeric: tabular-nums;
|
|
8
|
+
text-align: right;
|
|
9
|
+
}
|
|
10
|
+
.eds-date-and-time-field__segment--placeholder {
|
|
11
|
+
color: var(--components-datepicker-datefield-standard-text-content);
|
|
12
|
+
}
|
|
13
|
+
.eds-date-and-time-field__segment--dot-separator {
|
|
14
|
+
margin-left: -0.1rem;
|
|
15
|
+
margin-right: -0.2rem;
|
|
16
|
+
}
|
|
17
|
+
.eds-date-and-time-field__segment:focus-visible {
|
|
18
|
+
background-color: var(--components-button-iconbutton-standard-active);
|
|
19
|
+
outline: transparent;
|
|
20
|
+
border-radius: 0.0625rem;
|
|
21
|
+
}
|
|
22
|
+
.eds-date-and-time-field__segment[aria-valuemax="9999"] {
|
|
23
|
+
min-width: 4ch;
|
|
24
|
+
}
|
|
25
|
+
/* DO NOT CHANGE!*/
|
|
26
|
+
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
27
|
+
.eds-datepicker.eds-datefield:not(.eds-datepicker--disabled) .eds-form-control-wrapper {
|
|
28
|
+
padding-right: 0rem;
|
|
29
|
+
}
|
|
30
|
+
.eds-datepicker.eds-datefield:not(.eds-datepicker--disabled) .eds-form-control__append {
|
|
31
|
+
margin-left: auto;
|
|
32
|
+
}
|
|
33
|
+
.eds-datepicker__open-calendar-button {
|
|
34
|
+
margin: 0rem 0.25rem 0rem 0.5rem;
|
|
35
|
+
}
|
|
36
|
+
.eds-datepicker__open-calendar-button.eds-icon-button {
|
|
37
|
+
color: var(--components-datepicker-calendar-icon);
|
|
38
|
+
}
|
|
39
|
+
.eds-datepicker__open-calendar-button.eds-icon-button:hover {
|
|
40
|
+
background-color: var(--components-button-iconbutton-standard-hover);
|
|
41
|
+
}
|
|
42
|
+
.eds-datepicker__open-calendar-button.eds-icon-button:focus-visible {
|
|
43
|
+
outline: 2px solid #181c56;
|
|
44
|
+
outline-color: var(--basecolors-stroke-focus-standard);
|
|
45
|
+
outline-offset: 0.125rem;
|
|
46
|
+
}
|
|
47
|
+
.eds-datepicker__open-calendar-button.eds-icon-button:active {
|
|
48
|
+
background-color: var(--components-button-iconbutton-standard-active);
|
|
49
|
+
}
|
|
50
|
+
.eds-datepicker__calendar-modal.eds-modal__content {
|
|
51
|
+
padding: 0;
|
|
52
|
+
padding: initial;
|
|
53
|
+
width: inherit;
|
|
54
|
+
background-color: transparent;
|
|
55
|
+
background-color: initial;
|
|
56
|
+
}
|
|
57
|
+
/* DO NOT CHANGE!*/
|
|
58
|
+
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
3
59
|
.eds-datepicker__calendar,
|
|
4
60
|
.eds-contrast .eds-datepicker__calendar {
|
|
5
61
|
width: -moz-fit-content;
|
|
@@ -140,62 +196,6 @@
|
|
|
140
196
|
}
|
|
141
197
|
/* DO NOT CHANGE!*/
|
|
142
198
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
143
|
-
.eds-date-and-time-field__segment {
|
|
144
|
-
margin-top: 1rem;
|
|
145
|
-
padding: 0 2px;
|
|
146
|
-
font-feature-settings: "tnum";
|
|
147
|
-
font-variant-numeric: tabular-nums;
|
|
148
|
-
text-align: right;
|
|
149
|
-
}
|
|
150
|
-
.eds-date-and-time-field__segment--placeholder {
|
|
151
|
-
color: var(--components-datepicker-datefield-standard-text-content);
|
|
152
|
-
}
|
|
153
|
-
.eds-date-and-time-field__segment--dot-separator {
|
|
154
|
-
margin-left: -0.1rem;
|
|
155
|
-
margin-right: -0.2rem;
|
|
156
|
-
}
|
|
157
|
-
.eds-date-and-time-field__segment:focus-visible {
|
|
158
|
-
background-color: var(--components-button-iconbutton-standard-active);
|
|
159
|
-
outline: transparent;
|
|
160
|
-
border-radius: 0.0625rem;
|
|
161
|
-
}
|
|
162
|
-
.eds-date-and-time-field__segment[aria-valuemax="9999"] {
|
|
163
|
-
min-width: 4ch;
|
|
164
|
-
}
|
|
165
|
-
/* DO NOT CHANGE!*/
|
|
166
|
-
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
167
|
-
.eds-datepicker.eds-datefield:not(.eds-datepicker--disabled) .eds-form-control-wrapper {
|
|
168
|
-
padding-right: 0rem;
|
|
169
|
-
}
|
|
170
|
-
.eds-datepicker.eds-datefield:not(.eds-datepicker--disabled) .eds-form-control__append {
|
|
171
|
-
margin-left: auto;
|
|
172
|
-
}
|
|
173
|
-
.eds-datepicker__open-calendar-button {
|
|
174
|
-
margin: 0rem 0.25rem 0rem 0.5rem;
|
|
175
|
-
}
|
|
176
|
-
.eds-datepicker__open-calendar-button.eds-icon-button {
|
|
177
|
-
color: var(--components-datepicker-calendar-icon);
|
|
178
|
-
}
|
|
179
|
-
.eds-datepicker__open-calendar-button.eds-icon-button:hover {
|
|
180
|
-
background-color: var(--components-button-iconbutton-standard-hover);
|
|
181
|
-
}
|
|
182
|
-
.eds-datepicker__open-calendar-button.eds-icon-button:focus-visible {
|
|
183
|
-
outline: 2px solid #181c56;
|
|
184
|
-
outline-color: var(--basecolors-stroke-focus-standard);
|
|
185
|
-
outline-offset: 0.125rem;
|
|
186
|
-
}
|
|
187
|
-
.eds-datepicker__open-calendar-button.eds-icon-button:active {
|
|
188
|
-
background-color: var(--components-button-iconbutton-standard-active);
|
|
189
|
-
}
|
|
190
|
-
.eds-datepicker__calendar-modal.eds-modal__content {
|
|
191
|
-
padding: 0;
|
|
192
|
-
padding: initial;
|
|
193
|
-
width: inherit;
|
|
194
|
-
background-color: transparent;
|
|
195
|
-
background-color: initial;
|
|
196
|
-
}
|
|
197
|
-
/* DO NOT CHANGE!*/
|
|
198
|
-
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
199
199
|
.eds-datefield {
|
|
200
200
|
width: -moz-fit-content;
|
|
201
201
|
width: fit-content;
|
|
@@ -256,6 +256,32 @@
|
|
|
256
256
|
position: relative;
|
|
257
257
|
top: -0.5rem;
|
|
258
258
|
}
|
|
259
|
+
.eds-simple-timepicker {
|
|
260
|
+
width: 7rem;
|
|
261
|
+
width: var(--input-width);
|
|
262
|
+
--input-width: 7rem;
|
|
263
|
+
}
|
|
264
|
+
.eds-simple-timepicker--has-tooltip {
|
|
265
|
+
--input-width: 9rem;
|
|
266
|
+
}
|
|
267
|
+
.eds-simple-timepicker--hide-clock {
|
|
268
|
+
--input-width: 5rem;
|
|
269
|
+
}
|
|
270
|
+
.eds-simple-timepicker--hide-clock.eds-simple-timepicker--has-tooltip {
|
|
271
|
+
--input-width: 7rem;
|
|
272
|
+
}
|
|
273
|
+
.eds-simple-timepicker--show-seconds {
|
|
274
|
+
--input-width: 8.5rem;
|
|
275
|
+
}
|
|
276
|
+
.eds-simple-timepicker--show-seconds.eds-simple-timepicker--hide-clock {
|
|
277
|
+
--input-width: 6.5rem;
|
|
278
|
+
}
|
|
279
|
+
.eds-simple-timepicker--show-seconds.eds-simple-timepicker--hide-clock.eds-simple-timepicker--has-tooltip {
|
|
280
|
+
--input-width: 8.5rem;
|
|
281
|
+
}
|
|
282
|
+
.eds-simple-timepicker--show-seconds.eds-simple-timepicker--has-tooltip {
|
|
283
|
+
--input-width: 10.5rem;
|
|
284
|
+
}
|
|
259
285
|
/* DO NOT CHANGE!*/
|
|
260
286
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
261
287
|
/* DO NOT CHANGE!*/
|
|
@@ -292,29 +318,3 @@
|
|
|
292
318
|
:root {
|
|
293
319
|
--eds-datepicker: 1;
|
|
294
320
|
}
|
|
295
|
-
.eds-simple-timepicker {
|
|
296
|
-
width: 7rem;
|
|
297
|
-
width: var(--input-width);
|
|
298
|
-
--input-width: 7rem;
|
|
299
|
-
}
|
|
300
|
-
.eds-simple-timepicker--has-tooltip {
|
|
301
|
-
--input-width: 9rem;
|
|
302
|
-
}
|
|
303
|
-
.eds-simple-timepicker--hide-clock {
|
|
304
|
-
--input-width: 5rem;
|
|
305
|
-
}
|
|
306
|
-
.eds-simple-timepicker--hide-clock.eds-simple-timepicker--has-tooltip {
|
|
307
|
-
--input-width: 7rem;
|
|
308
|
-
}
|
|
309
|
-
.eds-simple-timepicker--show-seconds {
|
|
310
|
-
--input-width: 8.5rem;
|
|
311
|
-
}
|
|
312
|
-
.eds-simple-timepicker--show-seconds.eds-simple-timepicker--hide-clock {
|
|
313
|
-
--input-width: 6.5rem;
|
|
314
|
-
}
|
|
315
|
-
.eds-simple-timepicker--show-seconds.eds-simple-timepicker--hide-clock.eds-simple-timepicker--has-tooltip {
|
|
316
|
-
--input-width: 8.5rem;
|
|
317
|
-
}
|
|
318
|
-
.eds-simple-timepicker--show-seconds.eds-simple-timepicker--has-tooltip {
|
|
319
|
-
--input-width: 10.5rem;
|
|
320
|
-
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@entur/datepicker",
|
|
3
|
-
"version": "10.1.
|
|
3
|
+
"version": "10.1.3",
|
|
4
4
|
"license": "EUPL-1.2",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/datepicker.esm.js",
|
|
@@ -27,14 +27,14 @@
|
|
|
27
27
|
"react-dom": ">=16.8.0"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@entur/a11y": "^0.2.97
|
|
31
|
-
"@entur/button": "^3.3.
|
|
32
|
-
"@entur/form": "^8.2.
|
|
33
|
-
"@entur/icons": "^7.
|
|
34
|
-
"@entur/modal": "^1.7.
|
|
35
|
-
"@entur/tokens": "^3.
|
|
36
|
-
"@entur/tooltip": "^5.2.
|
|
37
|
-
"@entur/typography": "^1.9.
|
|
30
|
+
"@entur/a11y": "^0.2.97",
|
|
31
|
+
"@entur/button": "^3.3.3",
|
|
32
|
+
"@entur/form": "^8.2.3",
|
|
33
|
+
"@entur/icons": "^7.7.1",
|
|
34
|
+
"@entur/modal": "^1.7.63",
|
|
35
|
+
"@entur/tokens": "^3.18.0",
|
|
36
|
+
"@entur/tooltip": "^5.2.3",
|
|
37
|
+
"@entur/typography": "^1.9.3",
|
|
38
38
|
"@entur/utils": "^0.12.2",
|
|
39
39
|
"@floating-ui/react-dom": "^2.1.0",
|
|
40
40
|
"@internationalized/date": "^3.4.0",
|
|
@@ -51,5 +51,5 @@
|
|
|
51
51
|
"@react-types/datepicker": "^3.9.0",
|
|
52
52
|
"dts-cli": "2.0.5"
|
|
53
53
|
},
|
|
54
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "8ae7ed09699a63cc7e50d546d54750d8ec066c50"
|
|
55
55
|
}
|