@entur/datepicker 11.0.6 → 11.1.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/styles.css CHANGED
@@ -1,5 +1,80 @@
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. */
59
+ .eds-datefield {
60
+ width: -moz-fit-content;
61
+ width: fit-content;
62
+ }
63
+ .eds-datefield .eds-form-control-wrapper {
64
+ padding-left: 1rem;
65
+ padding-right: 1rem;
66
+ width: -moz-fit-content;
67
+ width: fit-content;
68
+ }
69
+ .eds-datefield .eds-form-control-wrapper--disabled:focus-within {
70
+ border-color: transparent;
71
+ box-shadow: none;
72
+ }
73
+ .eds-datefield .eds-form-control-wrapper--disabled .eds-date-and-time-field__segment:focus {
74
+ background: none;
75
+ }
76
+ /* DO NOT CHANGE!*/
77
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
3
78
  .eds-datepicker__calendar,
4
79
  .eds-contrast .eds-datepicker__calendar {
5
80
  width: -moz-fit-content;
@@ -140,81 +215,6 @@
140
215
  }
141
216
  /* DO NOT CHANGE!*/
142
217
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
143
- .eds-datefield {
144
- width: -moz-fit-content;
145
- width: fit-content;
146
- }
147
- .eds-datefield .eds-form-control-wrapper {
148
- padding-left: 1rem;
149
- padding-right: 1rem;
150
- width: -moz-fit-content;
151
- width: fit-content;
152
- }
153
- .eds-datefield .eds-form-control-wrapper--disabled:focus-within {
154
- border-color: transparent;
155
- box-shadow: none;
156
- }
157
- .eds-datefield .eds-form-control-wrapper--disabled .eds-date-and-time-field__segment:focus {
158
- background: none;
159
- }
160
- /* DO NOT CHANGE!*/
161
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
162
- .eds-date-and-time-field__segment {
163
- margin-top: 1rem;
164
- padding: 0 2px;
165
- font-feature-settings: "tnum";
166
- font-variant-numeric: tabular-nums;
167
- text-align: right;
168
- }
169
- .eds-date-and-time-field__segment--placeholder {
170
- color: var(--components-datepicker-datefield-standard-text-content);
171
- }
172
- .eds-date-and-time-field__segment--dot-separator {
173
- margin-left: -0.1rem;
174
- margin-right: -0.2rem;
175
- }
176
- .eds-date-and-time-field__segment:focus-visible {
177
- background-color: var(--components-button-iconbutton-standard-active);
178
- outline: transparent;
179
- border-radius: 0.0625rem;
180
- }
181
- .eds-date-and-time-field__segment[aria-valuemax="9999"] {
182
- min-width: 4ch;
183
- }
184
- /* DO NOT CHANGE!*/
185
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
186
- .eds-datepicker.eds-datefield:not(.eds-datepicker--disabled) .eds-form-control-wrapper {
187
- padding-right: 0rem;
188
- }
189
- .eds-datepicker.eds-datefield:not(.eds-datepicker--disabled) .eds-form-control__append {
190
- margin-left: auto;
191
- }
192
- .eds-datepicker__open-calendar-button {
193
- margin: 0rem 0.25rem 0rem 0.5rem;
194
- }
195
- .eds-datepicker__open-calendar-button.eds-icon-button {
196
- color: var(--components-datepicker-calendar-icon);
197
- }
198
- .eds-datepicker__open-calendar-button.eds-icon-button:hover {
199
- background-color: var(--components-button-iconbutton-standard-hover);
200
- }
201
- .eds-datepicker__open-calendar-button.eds-icon-button:focus-visible {
202
- outline: 2px solid #181c56;
203
- outline-color: var(--basecolors-stroke-focus-standard);
204
- outline-offset: 0.125rem;
205
- }
206
- .eds-datepicker__open-calendar-button.eds-icon-button:active {
207
- background-color: var(--components-button-iconbutton-standard-active);
208
- }
209
- .eds-datepicker__calendar-modal.eds-modal__content {
210
- padding: 0;
211
- padding: initial;
212
- width: inherit;
213
- background-color: transparent;
214
- background-color: initial;
215
- }
216
- /* DO NOT CHANGE!*/
217
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
218
218
  .eds-timepicker {
219
219
  width: -moz-fit-content;
220
220
  width: fit-content;
@@ -262,6 +262,32 @@
262
262
  position: relative;
263
263
  top: -0.5rem;
264
264
  }
265
+ .eds-simple-timepicker {
266
+ width: 7rem;
267
+ width: var(--input-width);
268
+ --input-width: 7rem;
269
+ }
270
+ .eds-simple-timepicker--has-tooltip {
271
+ --input-width: 9rem;
272
+ }
273
+ .eds-simple-timepicker--hide-clock {
274
+ --input-width: 5rem;
275
+ }
276
+ .eds-simple-timepicker--hide-clock.eds-simple-timepicker--has-tooltip {
277
+ --input-width: 7rem;
278
+ }
279
+ .eds-simple-timepicker--show-seconds {
280
+ --input-width: 8.5rem;
281
+ }
282
+ .eds-simple-timepicker--show-seconds.eds-simple-timepicker--hide-clock {
283
+ --input-width: 6.5rem;
284
+ }
285
+ .eds-simple-timepicker--show-seconds.eds-simple-timepicker--hide-clock.eds-simple-timepicker--has-tooltip {
286
+ --input-width: 8.5rem;
287
+ }
288
+ .eds-simple-timepicker--show-seconds.eds-simple-timepicker--has-tooltip {
289
+ --input-width: 10.5rem;
290
+ }
265
291
  /* DO NOT CHANGE!*/
266
292
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
267
293
  /* DO NOT CHANGE!*/
@@ -298,29 +324,3 @@
298
324
  :root {
299
325
  --eds-datepicker: 1;
300
326
  }
301
- .eds-simple-timepicker {
302
- width: 7rem;
303
- width: var(--input-width);
304
- --input-width: 7rem;
305
- }
306
- .eds-simple-timepicker--has-tooltip {
307
- --input-width: 9rem;
308
- }
309
- .eds-simple-timepicker--hide-clock {
310
- --input-width: 5rem;
311
- }
312
- .eds-simple-timepicker--hide-clock.eds-simple-timepicker--has-tooltip {
313
- --input-width: 7rem;
314
- }
315
- .eds-simple-timepicker--show-seconds {
316
- --input-width: 8.5rem;
317
- }
318
- .eds-simple-timepicker--show-seconds.eds-simple-timepicker--hide-clock {
319
- --input-width: 6.5rem;
320
- }
321
- .eds-simple-timepicker--show-seconds.eds-simple-timepicker--hide-clock.eds-simple-timepicker--has-tooltip {
322
- --input-width: 8.5rem;
323
- }
324
- .eds-simple-timepicker--show-seconds.eds-simple-timepicker--has-tooltip {
325
- --input-width: 10.5rem;
326
- }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@entur/datepicker",
3
- "version": "11.0.6",
3
+ "version": "11.1.0",
4
4
  "license": "EUPL-1.2",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/datepicker.esm.js",
@@ -28,13 +28,13 @@
28
28
  },
29
29
  "dependencies": {
30
30
  "@entur/a11y": "^0.2.99",
31
- "@entur/button": "^3.3.10",
32
- "@entur/form": "^8.2.10",
33
- "@entur/icons": "^7.13.0",
34
- "@entur/modal": "^1.7.70",
31
+ "@entur/button": "^3.3.11",
32
+ "@entur/form": "^8.2.11",
33
+ "@entur/icons": "^7.14.0",
34
+ "@entur/modal": "^1.7.71",
35
35
  "@entur/tokens": "^3.19.1",
36
- "@entur/tooltip": "^5.2.10",
37
- "@entur/typography": "^1.9.10",
36
+ "@entur/tooltip": "^5.2.11",
37
+ "@entur/typography": "^1.9.11",
38
38
  "@entur/utils": "^0.12.3",
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": "fce8c4670732d7dd2742d18f0d7759a364ba2c3c"
54
+ "gitHead": "c029bee6d513246d1576ab72b62c410a1afdebd4"
55
55
  }