@entur/datepicker 10.0.11 → 10.0.12-beta.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 +33 -33
- 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
|
@@ -23,38 +23,6 @@
|
|
|
23
23
|
}
|
|
24
24
|
/* DO NOT CHANGE!*/
|
|
25
25
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
26
|
-
.eds-datepicker.eds-datefield:not(.eds-datepicker--disabled) .eds-form-control-wrapper {
|
|
27
|
-
padding-right: 0rem;
|
|
28
|
-
}
|
|
29
|
-
.eds-datepicker.eds-datefield:not(.eds-datepicker--disabled) .eds-form-control__append {
|
|
30
|
-
margin-left: auto;
|
|
31
|
-
}
|
|
32
|
-
.eds-datepicker__open-calendar-button {
|
|
33
|
-
margin: 0rem 0.25rem 0rem 0.5rem;
|
|
34
|
-
}
|
|
35
|
-
.eds-datepicker__open-calendar-button.eds-icon-button {
|
|
36
|
-
color: var(--components-datepicker-calendar-icon);
|
|
37
|
-
}
|
|
38
|
-
.eds-datepicker__open-calendar-button.eds-icon-button:hover {
|
|
39
|
-
background-color: var(--components-button-iconbutton-standard-hover);
|
|
40
|
-
}
|
|
41
|
-
.eds-datepicker__open-calendar-button.eds-icon-button:focus {
|
|
42
|
-
outline: 2px solid #181c56;
|
|
43
|
-
outline-color: var(--basecolors-stroke-focus-standard);
|
|
44
|
-
outline-offset: 0.125rem;
|
|
45
|
-
}
|
|
46
|
-
.eds-datepicker__open-calendar-button.eds-icon-button:active {
|
|
47
|
-
background-color: var(--components-button-iconbutton-standard-active);
|
|
48
|
-
}
|
|
49
|
-
.eds-datepicker__calendar-modal.eds-modal__content {
|
|
50
|
-
padding: 0;
|
|
51
|
-
padding: initial;
|
|
52
|
-
width: inherit;
|
|
53
|
-
background-color: transparent;
|
|
54
|
-
background-color: initial;
|
|
55
|
-
}
|
|
56
|
-
/* DO NOT CHANGE!*/
|
|
57
|
-
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
58
26
|
.eds-datepicker__calendar,
|
|
59
27
|
.eds-contrast .eds-datepicker__calendar {
|
|
60
28
|
width: -moz-fit-content;
|
|
@@ -199,6 +167,38 @@
|
|
|
199
167
|
}
|
|
200
168
|
/* DO NOT CHANGE!*/
|
|
201
169
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
170
|
+
.eds-datepicker.eds-datefield:not(.eds-datepicker--disabled) .eds-form-control-wrapper {
|
|
171
|
+
padding-right: 0rem;
|
|
172
|
+
}
|
|
173
|
+
.eds-datepicker.eds-datefield:not(.eds-datepicker--disabled) .eds-form-control__append {
|
|
174
|
+
margin-left: auto;
|
|
175
|
+
}
|
|
176
|
+
.eds-datepicker__open-calendar-button {
|
|
177
|
+
margin: 0rem 0.25rem 0rem 0.5rem;
|
|
178
|
+
}
|
|
179
|
+
.eds-datepicker__open-calendar-button.eds-icon-button {
|
|
180
|
+
color: var(--components-datepicker-calendar-icon);
|
|
181
|
+
}
|
|
182
|
+
.eds-datepicker__open-calendar-button.eds-icon-button:hover {
|
|
183
|
+
background-color: var(--components-button-iconbutton-standard-hover);
|
|
184
|
+
}
|
|
185
|
+
.eds-datepicker__open-calendar-button.eds-icon-button:focus {
|
|
186
|
+
outline: 2px solid #181c56;
|
|
187
|
+
outline-color: var(--basecolors-stroke-focus-standard);
|
|
188
|
+
outline-offset: 0.125rem;
|
|
189
|
+
}
|
|
190
|
+
.eds-datepicker__open-calendar-button.eds-icon-button:active {
|
|
191
|
+
background-color: var(--components-button-iconbutton-standard-active);
|
|
192
|
+
}
|
|
193
|
+
.eds-datepicker__calendar-modal.eds-modal__content {
|
|
194
|
+
padding: 0;
|
|
195
|
+
padding: initial;
|
|
196
|
+
width: inherit;
|
|
197
|
+
background-color: transparent;
|
|
198
|
+
background-color: initial;
|
|
199
|
+
}
|
|
200
|
+
/* DO NOT CHANGE!*/
|
|
201
|
+
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
202
202
|
[dir="ltr"] .eds-date-and-time-field__segment {
|
|
203
203
|
text-align: right;
|
|
204
204
|
}
|
|
@@ -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-beta.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.
|
|
31
|
-
"@entur/button": "^3.2.
|
|
32
|
-
"@entur/form": "^8.1.
|
|
33
|
-
"@entur/icons": "^7.5.0",
|
|
34
|
-
"@entur/modal": "^1.7.
|
|
35
|
-
"@entur/tokens": "^3.17.
|
|
36
|
-
"@entur/tooltip": "^5.1.
|
|
37
|
-
"@entur/typography": "^1.8.
|
|
38
|
-
"@entur/utils": "^0.12.
|
|
30
|
+
"@entur/a11y": "^0.2.94-beta.0",
|
|
31
|
+
"@entur/button": "^3.2.37-beta.0",
|
|
32
|
+
"@entur/form": "^8.1.9-beta.0",
|
|
33
|
+
"@entur/icons": "^7.5.1-beta.0",
|
|
34
|
+
"@entur/modal": "^1.7.58-beta.0",
|
|
35
|
+
"@entur/tokens": "^3.17.4-beta.0",
|
|
36
|
+
"@entur/tooltip": "^5.1.5-beta.0",
|
|
37
|
+
"@entur/typography": "^1.8.50-beta.0",
|
|
38
|
+
"@entur/utils": "^0.12.2-beta.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": "b213fa4fd10a1a07abada3fa987b7ee2ed110ac2"
|
|
52
55
|
}
|