@entur/datepicker 9.0.4-beta.0 → 9.1.0-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/DatePicker.d.ts +20 -1
- package/dist/datepicker.cjs.development.js +34 -8
- 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 +35 -10
- package/dist/datepicker.esm.js.map +1 -1
- package/dist/shared/utils.d.ts +4 -0
- package/dist/styles.css +70 -70
- package/package.json +10 -10
package/dist/shared/utils.d.ts
CHANGED
|
@@ -29,3 +29,7 @@ export declare function timeOrDateValueToNativeDate(value: TimeValue | DateValue
|
|
|
29
29
|
export declare const createCalendar: (identifier?: string) => Calendar;
|
|
30
30
|
export declare const ariaLabelIfNorwegian: (norwegianAriaLabel: string, locale: string, propsCollection: any) => any;
|
|
31
31
|
export declare const lastMillisecondOfDay: (dateValue: DateValue) => CalendarDateTime;
|
|
32
|
+
export declare const convertValueToType: ({ value, type, }: {
|
|
33
|
+
value: DateValue | null;
|
|
34
|
+
type: 'CalendarDate' | 'CalendarDateTime' | 'ZonedDateTime';
|
|
35
|
+
}) => DateValue | null;
|
package/dist/styles.css
CHANGED
|
@@ -1,3 +1,30 @@
|
|
|
1
|
+
/* DO NOT CHANGE!*/
|
|
2
|
+
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
3
|
+
[dir="ltr"] .eds-date-and-time-field__segment {
|
|
4
|
+
text-align: right;
|
|
5
|
+
}
|
|
6
|
+
[dir="rtl"] .eds-date-and-time-field__segment {
|
|
7
|
+
text-align: left;
|
|
8
|
+
}
|
|
9
|
+
.eds-date-and-time-field__segment {
|
|
10
|
+
margin-top: 1rem;
|
|
11
|
+
padding: 0 2px;
|
|
12
|
+
font-feature-settings: "tnum";
|
|
13
|
+
font-variant-numeric: tabular-nums;
|
|
14
|
+
}
|
|
15
|
+
.eds-date-and-time-field__segment--placeholder {
|
|
16
|
+
color: #646464;
|
|
17
|
+
}
|
|
18
|
+
.eds-date-and-time-field__segment--dot-separator {
|
|
19
|
+
margin-left: -0.1rem;
|
|
20
|
+
margin-right: -0.2rem;
|
|
21
|
+
}
|
|
22
|
+
.eds-date-and-time-field__segment:focus {
|
|
23
|
+
background-color: #656782;
|
|
24
|
+
color: #ffffff;
|
|
25
|
+
outline: transparent;
|
|
26
|
+
border-radius: 0.0625rem;
|
|
27
|
+
}
|
|
1
28
|
.eds-datefield div:first-of-type.eds-date-and-time-field__segment {
|
|
2
29
|
margin-left: 1rem;
|
|
3
30
|
}
|
|
@@ -18,6 +45,49 @@
|
|
|
18
45
|
}
|
|
19
46
|
/* DO NOT CHANGE!*/
|
|
20
47
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
48
|
+
.eds-datepicker {
|
|
49
|
+
position: relative;
|
|
50
|
+
width: -moz-fit-content;
|
|
51
|
+
width: fit-content;
|
|
52
|
+
height: -moz-fit-content;
|
|
53
|
+
height: fit-content;
|
|
54
|
+
}
|
|
55
|
+
.eds-datepicker__open-calendar-button {
|
|
56
|
+
position: absolute;
|
|
57
|
+
right: 0.5rem;
|
|
58
|
+
top: 0.45rem;
|
|
59
|
+
}
|
|
60
|
+
.eds-datepicker__open-calendar-button.eds-icon-button {
|
|
61
|
+
color: #181c56;
|
|
62
|
+
}
|
|
63
|
+
.eds-datepicker__open-calendar-button.eds-icon-button:hover {
|
|
64
|
+
background-color: #656782;
|
|
65
|
+
color: #ffffff;
|
|
66
|
+
}
|
|
67
|
+
.eds-datepicker__open-calendar-button.eds-icon-button:focus {
|
|
68
|
+
border: 0.0625rem solid #181c56;
|
|
69
|
+
}
|
|
70
|
+
.eds-datepicker__open-calendar-button.eds-icon-button:active {
|
|
71
|
+
background-color: #8285a8;
|
|
72
|
+
}
|
|
73
|
+
.eds-datepicker__datefield {
|
|
74
|
+
padding-right: 4rem;
|
|
75
|
+
}
|
|
76
|
+
.eds-datepicker__datefield--disabled {
|
|
77
|
+
padding-right: 1rem;
|
|
78
|
+
}
|
|
79
|
+
.eds-datepicker__datefield__wrapper {
|
|
80
|
+
position: relative;
|
|
81
|
+
}
|
|
82
|
+
.eds-datepicker__calendar-modal.eds-modal__content {
|
|
83
|
+
padding: 0;
|
|
84
|
+
padding: initial;
|
|
85
|
+
width: inherit;
|
|
86
|
+
background-color: transparent;
|
|
87
|
+
background-color: initial;
|
|
88
|
+
}
|
|
89
|
+
/* DO NOT CHANGE!*/
|
|
90
|
+
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
21
91
|
.eds-datepicker__calendar,
|
|
22
92
|
.eds-contrast .eds-datepicker__calendar {
|
|
23
93
|
width: -moz-fit-content;
|
|
@@ -145,76 +215,6 @@
|
|
|
145
215
|
}
|
|
146
216
|
/* DO NOT CHANGE!*/
|
|
147
217
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
148
|
-
.eds-datepicker {
|
|
149
|
-
position: relative;
|
|
150
|
-
width: -moz-fit-content;
|
|
151
|
-
width: fit-content;
|
|
152
|
-
height: -moz-fit-content;
|
|
153
|
-
height: fit-content;
|
|
154
|
-
}
|
|
155
|
-
.eds-datepicker__open-calendar-button {
|
|
156
|
-
position: absolute;
|
|
157
|
-
right: 0.5rem;
|
|
158
|
-
top: 0.45rem;
|
|
159
|
-
}
|
|
160
|
-
.eds-datepicker__open-calendar-button.eds-icon-button {
|
|
161
|
-
color: #181c56;
|
|
162
|
-
}
|
|
163
|
-
.eds-datepicker__open-calendar-button.eds-icon-button:hover {
|
|
164
|
-
background-color: #656782;
|
|
165
|
-
color: #ffffff;
|
|
166
|
-
}
|
|
167
|
-
.eds-datepicker__open-calendar-button.eds-icon-button:focus {
|
|
168
|
-
border: 0.0625rem solid #181c56;
|
|
169
|
-
}
|
|
170
|
-
.eds-datepicker__open-calendar-button.eds-icon-button:active {
|
|
171
|
-
background-color: #8285a8;
|
|
172
|
-
}
|
|
173
|
-
.eds-datepicker__datefield {
|
|
174
|
-
padding-right: 4rem;
|
|
175
|
-
}
|
|
176
|
-
.eds-datepicker__datefield--disabled {
|
|
177
|
-
padding-right: 1rem;
|
|
178
|
-
}
|
|
179
|
-
.eds-datepicker__datefield__wrapper {
|
|
180
|
-
position: relative;
|
|
181
|
-
}
|
|
182
|
-
.eds-datepicker__calendar-modal.eds-modal__content {
|
|
183
|
-
padding: 0;
|
|
184
|
-
padding: initial;
|
|
185
|
-
width: inherit;
|
|
186
|
-
background-color: transparent;
|
|
187
|
-
background-color: initial;
|
|
188
|
-
}
|
|
189
|
-
/* DO NOT CHANGE!*/
|
|
190
|
-
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
191
|
-
[dir="ltr"] .eds-date-and-time-field__segment {
|
|
192
|
-
text-align: right;
|
|
193
|
-
}
|
|
194
|
-
[dir="rtl"] .eds-date-and-time-field__segment {
|
|
195
|
-
text-align: left;
|
|
196
|
-
}
|
|
197
|
-
.eds-date-and-time-field__segment {
|
|
198
|
-
margin-top: 1rem;
|
|
199
|
-
padding: 0 2px;
|
|
200
|
-
font-feature-settings: "tnum";
|
|
201
|
-
font-variant-numeric: tabular-nums;
|
|
202
|
-
}
|
|
203
|
-
.eds-date-and-time-field__segment--placeholder {
|
|
204
|
-
color: #646464;
|
|
205
|
-
}
|
|
206
|
-
.eds-date-and-time-field__segment--dot-separator {
|
|
207
|
-
margin-left: -0.1rem;
|
|
208
|
-
margin-right: -0.2rem;
|
|
209
|
-
}
|
|
210
|
-
.eds-date-and-time-field__segment:focus {
|
|
211
|
-
background-color: #656782;
|
|
212
|
-
color: #ffffff;
|
|
213
|
-
outline: transparent;
|
|
214
|
-
border-radius: 0.0625rem;
|
|
215
|
-
}
|
|
216
|
-
/* DO NOT CHANGE!*/
|
|
217
|
-
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
218
218
|
.eds-timepicker__wrapper {
|
|
219
219
|
position: relative;
|
|
220
220
|
display: flex;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@entur/datepicker",
|
|
3
|
-
"version": "9.0
|
|
3
|
+
"version": "9.1.0-RC.0",
|
|
4
4
|
"license": "EUPL-1.2",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/datepicker.esm.js",
|
|
@@ -27,14 +27,14 @@
|
|
|
27
27
|
"react-dom": ">=16.8.0"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@entur/a11y": "^0.2.73-
|
|
31
|
-
"@entur/button": "^3.2.4-
|
|
32
|
-
"@entur/form": "^7.0.31-
|
|
33
|
-
"@entur/icons": "^6.13.1-
|
|
34
|
-
"@entur/modal": "^1.7.24-
|
|
35
|
-
"@entur/tokens": "^3.11.2-
|
|
36
|
-
"@entur/tooltip": "^2.6.40-
|
|
37
|
-
"@entur/typography": "^1.8.19-
|
|
30
|
+
"@entur/a11y": "^0.2.73-RC.0",
|
|
31
|
+
"@entur/button": "^3.2.4-RC.0",
|
|
32
|
+
"@entur/form": "^7.0.31-RC.0",
|
|
33
|
+
"@entur/icons": "^6.13.1-RC.0",
|
|
34
|
+
"@entur/modal": "^1.7.24-RC.0",
|
|
35
|
+
"@entur/tokens": "^3.11.2-RC.0",
|
|
36
|
+
"@entur/tooltip": "^2.6.40-RC.0",
|
|
37
|
+
"@entur/typography": "^1.8.19-RC.0",
|
|
38
38
|
"@entur/utils": "^0.9.5",
|
|
39
39
|
"@floating-ui/react-dom": "^1.0.0",
|
|
40
40
|
"@internationalized/date": "^3.4.0",
|
|
@@ -48,5 +48,5 @@
|
|
|
48
48
|
"classnames": "^2.3.1",
|
|
49
49
|
"react-focus-lock": "^2.9.1"
|
|
50
50
|
},
|
|
51
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "ffc1bbef705504dd4e8df8abccc435dd01513ce3"
|
|
52
52
|
}
|