@entur/datepicker 10.0.11 → 10.0.12-RC.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.
@@ -31,10 +31,10 @@ export declare const ariaLabelIfNorwegian: (norwegianAriaLabel: string, locale:
31
31
  export declare const lastMillisecondOfDay: (dateValue: DateValue) => CalendarDateTime;
32
32
  export declare const convertValueToType: ({ value, type, timezone, }: {
33
33
  value: DateValue | TimeValue | null;
34
- type: 'CalendarDate' | 'CalendarDateTime' | 'ZonedDateTime' | 'Time';
35
- timezone?: string | undefined;
34
+ type: "CalendarDate" | "CalendarDateTime" | "ZonedDateTime" | "Time";
35
+ timezone?: string;
36
36
  }) => CalendarDate | ZonedDateTime | CalendarDateTime | Time | null;
37
37
  export declare const modulo: (a: number, b: number) => number;
38
- export declare const focusSegment: (ref: React.RefObject<HTMLDivElement>, segment: 'first' | 'last') => void;
38
+ export declare const focusSegment: (ref: React.RefObject<HTMLDivElement>, segment: "first" | "last") => void;
39
39
  /** Based on code from https://stackoverflow.com/questions/6117814/get-week-of-year-in-javascript-like-in-php */
40
40
  export declare function getWeekNumberForDate(date: DateValue | null): number;
package/dist/styles.css CHANGED
@@ -1,28 +1,5 @@
1
1
  /* DO NOT CHANGE!*/
2
2
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
3
- .eds-datefield {
4
- width: -moz-fit-content;
5
- width: fit-content;
6
- }
7
- .eds-datefield .eds-form-control-wrapper {
8
- padding-left: 1rem;
9
- padding-right: 1rem;
10
- width: -moz-fit-content;
11
- width: fit-content;
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:focus-within {
18
- border-color: transparent;
19
- box-shadow: none;
20
- }
21
- .eds-datefield .eds-form-control-wrapper--disabled .eds-date-and-time-field__segment:focus {
22
- background: none;
23
- }
24
- /* DO NOT CHANGE!*/
25
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
26
3
  .eds-datepicker.eds-datefield:not(.eds-datepicker--disabled) .eds-form-control-wrapper {
27
4
  padding-right: 0rem;
28
5
  }
@@ -55,6 +32,35 @@
55
32
  }
56
33
  /* DO NOT CHANGE!*/
57
34
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
35
+ [dir="ltr"] .eds-date-and-time-field__segment {
36
+ text-align: right;
37
+ }
38
+ [dir="rtl"] .eds-date-and-time-field__segment {
39
+ text-align: left;
40
+ }
41
+ .eds-date-and-time-field__segment {
42
+ margin-top: 1rem;
43
+ padding: 0 2px;
44
+ font-feature-settings: "tnum";
45
+ font-variant-numeric: tabular-nums;
46
+ }
47
+ .eds-date-and-time-field__segment--placeholder {
48
+ color: var(--components-datepicker-datefield-standard-text-content);
49
+ }
50
+ .eds-date-and-time-field__segment--dot-separator {
51
+ margin-left: -0.1rem;
52
+ margin-right: -0.2rem;
53
+ }
54
+ .eds-date-and-time-field__segment:focus {
55
+ background-color: var(--components-button-iconbutton-standard-active);
56
+ outline: transparent;
57
+ border-radius: 0.0625rem;
58
+ }
59
+ .eds-date-and-time-field__segment[aria-valuemax="9999"] {
60
+ min-width: 4ch;
61
+ }
62
+ /* DO NOT CHANGE!*/
63
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
58
64
  .eds-datepicker__calendar,
59
65
  .eds-contrast .eds-datepicker__calendar {
60
66
  width: -moz-fit-content;
@@ -199,32 +205,26 @@
199
205
  }
200
206
  /* DO NOT CHANGE!*/
201
207
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
202
- [dir="ltr"] .eds-date-and-time-field__segment {
203
- text-align: right;
204
- }
205
- [dir="rtl"] .eds-date-and-time-field__segment {
206
- text-align: left;
207
- }
208
- .eds-date-and-time-field__segment {
209
- margin-top: 1rem;
210
- padding: 0 2px;
211
- font-feature-settings: "tnum";
212
- font-variant-numeric: tabular-nums;
208
+ .eds-datefield {
209
+ width: -moz-fit-content;
210
+ width: fit-content;
213
211
  }
214
- .eds-date-and-time-field__segment--placeholder {
215
- color: var(--components-datepicker-datefield-standard-text-content);
212
+ .eds-datefield .eds-form-control-wrapper {
213
+ padding-left: 1rem;
214
+ padding-right: 1rem;
215
+ width: -moz-fit-content;
216
+ width: fit-content;
216
217
  }
217
- .eds-date-and-time-field__segment--dot-separator {
218
- margin-left: -0.1rem;
219
- margin-right: -0.2rem;
218
+ .eds-datefield .eds-form-control-wrapper--disabled[focus-within] {
219
+ border-color: transparent;
220
+ box-shadow: none;
220
221
  }
221
- .eds-date-and-time-field__segment:focus {
222
- background-color: var(--components-button-iconbutton-standard-active);
223
- outline: transparent;
224
- border-radius: 0.0625rem;
222
+ .eds-datefield .eds-form-control-wrapper--disabled:focus-within {
223
+ border-color: transparent;
224
+ box-shadow: none;
225
225
  }
226
- .eds-date-and-time-field__segment[aria-valuemax="9999"] {
227
- min-width: 4ch;
226
+ .eds-datefield .eds-form-control-wrapper--disabled .eds-date-and-time-field__segment:focus {
227
+ background: none;
228
228
  }
229
229
  /* DO NOT CHANGE!*/
230
230
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
@@ -270,8 +270,8 @@
270
270
  top: -0.5rem;
271
271
  }
272
272
  .eds-simple-timepicker {
273
- --input-width: 7rem;
274
273
  width: var(--input-width);
274
+ --input-width: 7rem;
275
275
  }
276
276
  .eds-simple-timepicker--has-tooltip {
277
277
  --input-width: 9rem;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@entur/datepicker",
3
- "version": "10.0.11",
3
+ "version": "10.0.12-RC.0",
4
4
  "license": "EUPL-1.2",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/datepicker.esm.js",
@@ -27,26 +27,29 @@
27
27
  "react-dom": ">=16.8.0"
28
28
  },
29
29
  "dependencies": {
30
- "@entur/a11y": "^0.2.93",
31
- "@entur/button": "^3.2.36",
32
- "@entur/form": "^8.1.8",
33
- "@entur/icons": "^7.5.0",
34
- "@entur/modal": "^1.7.57",
35
- "@entur/tokens": "^3.17.3",
36
- "@entur/tooltip": "^5.1.4",
37
- "@entur/typography": "^1.8.49",
38
- "@entur/utils": "^0.12.1",
30
+ "@entur/a11y": "^0.2.94-RC.0",
31
+ "@entur/button": "^3.2.37-RC.0",
32
+ "@entur/form": "^8.1.9-RC.0",
33
+ "@entur/icons": "^7.5.1-RC.0",
34
+ "@entur/modal": "^1.7.58-RC.0",
35
+ "@entur/tokens": "^3.17.4-RC.0",
36
+ "@entur/tooltip": "^5.1.5-RC.0",
37
+ "@entur/typography": "^1.8.50-RC.0",
38
+ "@entur/utils": "^0.12.2-RC.0",
39
39
  "@floating-ui/react-dom": "^2.1.0",
40
40
  "@internationalized/date": "^3.4.0",
41
41
  "@react-aria/button": "^3.6.4",
42
- "@react-aria/calendar": "^3.4.1",
42
+ "@react-aria/calendar": "^3.6.0",
43
43
  "@react-aria/datepicker": "^3.6.0",
44
44
  "@react-aria/i18n": "^3.8.1",
45
- "@react-stately/calendar": "^3.3.1",
46
- "@react-stately/datepicker": "^3.6.0",
47
- "@react-types/datepicker": "^3.5.0",
45
+ "@react-stately/calendar": "^3.6.0",
46
+ "@react-stately/datepicker": "^3.11.0",
48
47
  "classnames": "^2.3.1",
49
48
  "react-focus-lock": "^2.9.1"
50
49
  },
51
- "gitHead": "5c9836f2bcab799e31cc52b6fe72c6e198947a71"
50
+ "devDependencies": {
51
+ "@react-types/datepicker": "^3.9.0",
52
+ "dts-cli": "2.0.5"
53
+ },
54
+ "gitHead": "d7913682a41ade219cbd4dfc6e45060152c7fa0a"
52
55
  }