@entur/datepicker 11.0.1 → 11.0.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 CHANGED
@@ -1,26 +1,53 @@
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;
3
+ .eds-datepicker.eds-datefield:not(.eds-datepicker--disabled) .eds-form-control-wrapper {
4
+ padding-right: 0rem;
9
5
  }
10
- .eds-date-and-time-field__segment--placeholder {
11
- color: var(--components-datepicker-datefield-standard-text-content);
6
+ .eds-datepicker.eds-datefield:not(.eds-datepicker--disabled) .eds-form-control__append {
7
+ margin-left: auto;
12
8
  }
13
- .eds-date-and-time-field__segment--dot-separator {
14
- margin-left: -0.1rem;
15
- margin-right: -0.2rem;
9
+ .eds-datepicker__open-calendar-button {
10
+ margin: 0rem 0.25rem 0rem 0.5rem;
16
11
  }
17
- .eds-date-and-time-field__segment:focus-visible {
12
+ .eds-datepicker__open-calendar-button.eds-icon-button {
13
+ color: var(--components-datepicker-calendar-icon);
14
+ }
15
+ .eds-datepicker__open-calendar-button.eds-icon-button:hover {
16
+ background-color: var(--components-button-iconbutton-standard-hover);
17
+ }
18
+ .eds-datepicker__open-calendar-button.eds-icon-button:focus-visible {
19
+ outline: 2px solid #181c56;
20
+ outline-color: var(--basecolors-stroke-focus-standard);
21
+ outline-offset: 0.125rem;
22
+ }
23
+ .eds-datepicker__open-calendar-button.eds-icon-button:active {
18
24
  background-color: var(--components-button-iconbutton-standard-active);
19
- outline: transparent;
20
- border-radius: 0.0625rem;
21
25
  }
22
- .eds-date-and-time-field__segment[aria-valuemax="9999"] {
23
- min-width: 4ch;
26
+ .eds-datepicker__calendar-modal.eds-modal__content {
27
+ padding: 0;
28
+ padding: initial;
29
+ width: inherit;
30
+ background-color: transparent;
31
+ background-color: initial;
32
+ }
33
+ /* DO NOT CHANGE!*/
34
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
35
+ .eds-datefield {
36
+ width: -moz-fit-content;
37
+ width: fit-content;
38
+ }
39
+ .eds-datefield .eds-form-control-wrapper {
40
+ padding-left: 1rem;
41
+ padding-right: 1rem;
42
+ width: -moz-fit-content;
43
+ width: fit-content;
44
+ }
45
+ .eds-datefield .eds-form-control-wrapper--disabled:focus-within {
46
+ border-color: transparent;
47
+ box-shadow: none;
48
+ }
49
+ .eds-datefield .eds-form-control-wrapper--disabled .eds-date-and-time-field__segment:focus {
50
+ background: none;
24
51
  }
25
52
  /* DO NOT CHANGE!*/
26
53
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
@@ -164,58 +191,27 @@
164
191
  }
165
192
  /* DO NOT CHANGE!*/
166
193
  /* 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);
194
+ .eds-date-and-time-field__segment {
195
+ margin-top: 1rem;
196
+ padding: 0 2px;
197
+ font-feature-settings: "tnum";
198
+ font-variant-numeric: tabular-nums;
199
+ text-align: right;
178
200
  }
179
- .eds-datepicker__open-calendar-button.eds-icon-button:hover {
180
- background-color: var(--components-button-iconbutton-standard-hover);
201
+ .eds-date-and-time-field__segment--placeholder {
202
+ color: var(--components-datepicker-datefield-standard-text-content);
181
203
  }
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;
204
+ .eds-date-and-time-field__segment--dot-separator {
205
+ margin-left: -0.1rem;
206
+ margin-right: -0.2rem;
186
207
  }
187
- .eds-datepicker__open-calendar-button.eds-icon-button:active {
208
+ .eds-date-and-time-field__segment:focus-visible {
188
209
  background-color: var(--components-button-iconbutton-standard-active);
210
+ outline: transparent;
211
+ border-radius: 0.0625rem;
189
212
  }
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
- .eds-datefield {
200
- width: -moz-fit-content;
201
- width: fit-content;
202
- }
203
- .eds-datefield .eds-form-control-wrapper {
204
- padding-left: 1rem;
205
- padding-right: 1rem;
206
- width: -moz-fit-content;
207
- width: fit-content;
208
- }
209
- .eds-datefield .eds-form-control-wrapper--disabled:focus-within {
210
- border-color: transparent;
211
- box-shadow: none;
212
- }
213
- .eds-datefield .eds-form-control-wrapper--disabled .eds-date-and-time-field__segment:focus {
214
- background: none;
215
- }
216
- .eds-native-timepicker input[type=time]::-webkit-calendar-picker-indicator {
217
- position: relative;
218
- top: -0.5rem;
213
+ .eds-date-and-time-field__segment[aria-valuemax="9999"] {
214
+ min-width: 4ch;
219
215
  }
220
216
  /* DO NOT CHANGE!*/
221
217
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
@@ -262,31 +258,9 @@
262
258
  .eds-timepicker .eds-icon-button--disabled__wrapper {
263
259
  display: none;
264
260
  }
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;
261
+ .eds-native-timepicker input[type=time]::-webkit-calendar-picker-indicator {
262
+ position: relative;
263
+ top: -0.5rem;
290
264
  }
291
265
  /* DO NOT CHANGE!*/
292
266
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
@@ -324,3 +298,29 @@
324
298
  :root {
325
299
  --eds-datepicker: 1;
326
300
  }
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.1",
3
+ "version": "11.0.3",
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.98",
31
- "@entur/button": "^3.3.5",
32
- "@entur/form": "^8.2.5",
33
- "@entur/icons": "^7.9.0",
34
- "@entur/modal": "^1.7.65",
31
+ "@entur/button": "^3.3.7",
32
+ "@entur/form": "^8.2.7",
33
+ "@entur/icons": "^7.11.0",
34
+ "@entur/modal": "^1.7.67",
35
35
  "@entur/tokens": "^3.19.0",
36
- "@entur/tooltip": "^5.2.5",
37
- "@entur/typography": "^1.9.5",
36
+ "@entur/tooltip": "^5.2.7",
37
+ "@entur/typography": "^1.9.7",
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": "e59bee5bf5aa6ab864c96be6cf4979feab287c61"
54
+ "gitHead": "ccdbbec971e0336510c047873a1e63cc31aa850e"
55
55
  }