@entur/datepicker 10.0.11-alpha.0 → 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.
- package/dist/DatePicker/DateField.d.ts +1 -1
- package/dist/DatePicker/NativeDatePicker.d.ts +4 -4
- package/dist/TimePicker/NativeTimePicker.d.ts +3 -3
- package/dist/datepicker.cjs.development.js +16 -25
- 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 +16 -25
- package/dist/datepicker.esm.js.map +1 -1
- package/dist/shared/utils.d.ts +3 -3
- package/dist/styles.css +62 -62
- package/package.json +18 -15
package/dist/shared/utils.d.ts
CHANGED
|
@@ -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:
|
|
35
|
-
timezone?: string
|
|
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:
|
|
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,5 +1,66 @@
|
|
|
1
1
|
/* DO NOT CHANGE!*/
|
|
2
2
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
3
|
+
.eds-datepicker.eds-datefield:not(.eds-datepicker--disabled) .eds-form-control-wrapper {
|
|
4
|
+
padding-right: 0rem;
|
|
5
|
+
}
|
|
6
|
+
.eds-datepicker.eds-datefield:not(.eds-datepicker--disabled) .eds-form-control__append {
|
|
7
|
+
margin-left: auto;
|
|
8
|
+
}
|
|
9
|
+
.eds-datepicker__open-calendar-button {
|
|
10
|
+
margin: 0rem 0.25rem 0rem 0.5rem;
|
|
11
|
+
}
|
|
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 {
|
|
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 {
|
|
24
|
+
background-color: var(--components-button-iconbutton-standard-active);
|
|
25
|
+
}
|
|
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
|
+
[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. */
|
|
3
64
|
.eds-datepicker__calendar,
|
|
4
65
|
.eds-contrast .eds-datepicker__calendar {
|
|
5
66
|
width: -moz-fit-content;
|
|
@@ -167,67 +228,6 @@
|
|
|
167
228
|
}
|
|
168
229
|
/* DO NOT CHANGE!*/
|
|
169
230
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
170
|
-
[dir="ltr"] .eds-date-and-time-field__segment {
|
|
171
|
-
text-align: right;
|
|
172
|
-
}
|
|
173
|
-
[dir="rtl"] .eds-date-and-time-field__segment {
|
|
174
|
-
text-align: left;
|
|
175
|
-
}
|
|
176
|
-
.eds-date-and-time-field__segment {
|
|
177
|
-
margin-top: 1rem;
|
|
178
|
-
padding: 0 2px;
|
|
179
|
-
font-feature-settings: "tnum";
|
|
180
|
-
font-variant-numeric: tabular-nums;
|
|
181
|
-
}
|
|
182
|
-
.eds-date-and-time-field__segment--placeholder {
|
|
183
|
-
color: var(--components-datepicker-datefield-standard-text-content);
|
|
184
|
-
}
|
|
185
|
-
.eds-date-and-time-field__segment--dot-separator {
|
|
186
|
-
margin-left: -0.1rem;
|
|
187
|
-
margin-right: -0.2rem;
|
|
188
|
-
}
|
|
189
|
-
.eds-date-and-time-field__segment:focus {
|
|
190
|
-
background-color: var(--components-button-iconbutton-standard-active);
|
|
191
|
-
outline: transparent;
|
|
192
|
-
border-radius: 0.0625rem;
|
|
193
|
-
}
|
|
194
|
-
.eds-date-and-time-field__segment[aria-valuemax="9999"] {
|
|
195
|
-
min-width: 4ch;
|
|
196
|
-
}
|
|
197
|
-
/* DO NOT CHANGE!*/
|
|
198
|
-
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
199
|
-
.eds-datepicker.eds-datefield:not(.eds-datepicker--disabled) .eds-form-control-wrapper {
|
|
200
|
-
padding-right: 0rem;
|
|
201
|
-
}
|
|
202
|
-
.eds-datepicker.eds-datefield:not(.eds-datepicker--disabled) .eds-form-control__append {
|
|
203
|
-
margin-left: auto;
|
|
204
|
-
}
|
|
205
|
-
.eds-datepicker__open-calendar-button {
|
|
206
|
-
margin: 0rem 0.25rem 0rem 0.5rem;
|
|
207
|
-
}
|
|
208
|
-
.eds-datepicker__open-calendar-button.eds-icon-button {
|
|
209
|
-
color: var(--components-datepicker-calendar-icon);
|
|
210
|
-
}
|
|
211
|
-
.eds-datepicker__open-calendar-button.eds-icon-button:hover {
|
|
212
|
-
background-color: var(--components-button-iconbutton-standard-hover);
|
|
213
|
-
}
|
|
214
|
-
.eds-datepicker__open-calendar-button.eds-icon-button:focus {
|
|
215
|
-
outline: 2px solid #181c56;
|
|
216
|
-
outline-color: var(--basecolors-stroke-focus-standard);
|
|
217
|
-
outline-offset: 0.125rem;
|
|
218
|
-
}
|
|
219
|
-
.eds-datepicker__open-calendar-button.eds-icon-button:active {
|
|
220
|
-
background-color: var(--components-button-iconbutton-standard-active);
|
|
221
|
-
}
|
|
222
|
-
.eds-datepicker__calendar-modal.eds-modal__content {
|
|
223
|
-
padding: 0;
|
|
224
|
-
padding: initial;
|
|
225
|
-
width: inherit;
|
|
226
|
-
background-color: transparent;
|
|
227
|
-
background-color: initial;
|
|
228
|
-
}
|
|
229
|
-
/* DO NOT CHANGE!*/
|
|
230
|
-
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
231
231
|
.eds-timepicker {
|
|
232
232
|
width: -moz-fit-content;
|
|
233
233
|
width: fit-content;
|
|
@@ -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.
|
|
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.94-
|
|
31
|
-
"@entur/button": "^3.2.37-
|
|
32
|
-
"@entur/form": "^8.1.
|
|
33
|
-
"@entur/icons": "^7.5.0",
|
|
34
|
-
"@entur/modal": "^1.7.58-
|
|
35
|
-
"@entur/tokens": "^3.17.
|
|
36
|
-
"@entur/tooltip": "^5.1.
|
|
37
|
-
"@entur/typography": "^1.8.50-
|
|
38
|
-
"@entur/utils": "^
|
|
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.
|
|
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.
|
|
46
|
-
"@react-stately/datepicker": "^3.
|
|
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
|
-
"
|
|
50
|
+
"devDependencies": {
|
|
51
|
+
"@react-types/datepicker": "^3.9.0",
|
|
52
|
+
"dts-cli": "2.0.5"
|
|
53
|
+
},
|
|
54
|
+
"gitHead": "d7913682a41ade219cbd4dfc6e45060152c7fa0a"
|
|
52
55
|
}
|