@entur/datepicker 3.0.4 → 4.0.0-alpha.1
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/CHANGELOG.md +23 -4
- package/dist/DatePicker/beta/Calendar.d.ts +12 -0
- package/dist/DatePicker/beta/CalendarCell.d.ts +9 -0
- package/dist/DatePicker/beta/CalendarGrid.d.ts +8 -0
- package/dist/DatePicker/beta/DateField.d.ts +32 -0
- package/dist/DatePicker/beta/DatePicker.d.ts +41 -0
- package/dist/DatePicker/beta/index.d.ts +3 -0
- package/dist/DatePicker/index.d.ts +1 -0
- package/dist/TimePicker/index.d.ts +1 -1
- package/dist/datepicker.cjs.development.js +518 -92
- 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 +517 -97
- package/dist/datepicker.esm.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/shared/CalendarButton.d.ts +9 -0
- package/dist/{TimePicker/TimeSegment.d.ts → shared/FieldSegment.d.ts} +2 -1
- package/dist/shared/index.d.ts +1 -0
- package/dist/{TimePicker → shared}/utils.d.ts +3 -0
- package/dist/styles.css +181 -20
- package/package.json +15 -7
package/dist/styles.css
CHANGED
|
@@ -43,26 +43,6 @@
|
|
|
43
43
|
.eds-timepicker__wrapper .eds-timepicker__arrowbutton:hover {
|
|
44
44
|
background-color: #d1d4e3;
|
|
45
45
|
}
|
|
46
|
-
[dir="ltr"] .eds-timepicker__wrapper .eds-timepicker__segment {
|
|
47
|
-
text-align: right;
|
|
48
|
-
}
|
|
49
|
-
[dir="rtl"] .eds-timepicker__wrapper .eds-timepicker__segment {
|
|
50
|
-
text-align: left;
|
|
51
|
-
}
|
|
52
|
-
.eds-timepicker__wrapper .eds-timepicker__segment {
|
|
53
|
-
margin-top: 1rem;
|
|
54
|
-
padding: 0 2px;
|
|
55
|
-
font-feature-settings: "tnum";
|
|
56
|
-
font-variant-numeric: tabular-nums;
|
|
57
|
-
}
|
|
58
|
-
.eds-timepicker__wrapper .eds-timepicker__segment--placeholder {
|
|
59
|
-
color: grey;
|
|
60
|
-
}
|
|
61
|
-
.eds-timepicker__wrapper .eds-timepicker__segment:focus {
|
|
62
|
-
background: rgba(68, 192, 255, 0.5);
|
|
63
|
-
outline: none;
|
|
64
|
-
border-radius: 0.0625rem;
|
|
65
|
-
}
|
|
66
46
|
.eds-timepicker__wrapper .eds-timepicker .eds-form-control__append--tooltip {
|
|
67
47
|
margin-top: 0.75rem;
|
|
68
48
|
margin-right: -0.25rem;
|
|
@@ -195,4 +175,185 @@
|
|
|
195
175
|
|
|
196
176
|
.eds-native-date-picker {
|
|
197
177
|
height: 2.75rem;
|
|
178
|
+
}/* DO NOT CHANGE!*/
|
|
179
|
+
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
180
|
+
[dir="ltr"] .eds-date-and-time-field__segment {
|
|
181
|
+
text-align: right;
|
|
182
|
+
}
|
|
183
|
+
[dir="rtl"] .eds-date-and-time-field__segment {
|
|
184
|
+
text-align: left;
|
|
185
|
+
}
|
|
186
|
+
.eds-date-and-time-field__segment {
|
|
187
|
+
margin-top: 1rem;
|
|
188
|
+
padding: 0 2px;
|
|
189
|
+
font-feature-settings: "tnum";
|
|
190
|
+
font-variant-numeric: tabular-nums;
|
|
191
|
+
}
|
|
192
|
+
.eds-date-and-time-field__segment--placeholder {
|
|
193
|
+
color: #646464;
|
|
194
|
+
}
|
|
195
|
+
.eds-date-and-time-field__segment--dot-separator {
|
|
196
|
+
margin-left: -0.1rem;
|
|
197
|
+
margin-right: -0.2rem;
|
|
198
|
+
}
|
|
199
|
+
.eds-date-and-time-field__segment:focus {
|
|
200
|
+
background: rgba(68, 192, 255, 0.5);
|
|
201
|
+
outline: none;
|
|
202
|
+
border-radius: 0.0625rem;
|
|
203
|
+
}/* DO NOT CHANGE!*/
|
|
204
|
+
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
205
|
+
.eds-datefield div:first-of-type.eds-date-and-time-field__segment {
|
|
206
|
+
margin-left: 1rem;
|
|
207
|
+
}
|
|
208
|
+
.eds-datefield.eds-form-control-wrapper--disabled[focus-within] {
|
|
209
|
+
border-color: transparent;
|
|
210
|
+
box-shadow: none;
|
|
211
|
+
}
|
|
212
|
+
.eds-datefield.eds-form-control-wrapper--disabled:focus-within {
|
|
213
|
+
border-color: transparent;
|
|
214
|
+
box-shadow: none;
|
|
215
|
+
}
|
|
216
|
+
.eds-datefield.eds-form-control-wrapper--disabled .eds-date-and-time-field__segment:focus {
|
|
217
|
+
background: none;
|
|
218
|
+
}/* DO NOT CHANGE!*/
|
|
219
|
+
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
220
|
+
.eds-datepicker__calendar,
|
|
221
|
+
.eds-contrast .eds-datepicker__calendar {
|
|
222
|
+
width: -webkit-fit-content;
|
|
223
|
+
width: -moz-fit-content;
|
|
224
|
+
width: fit-content;
|
|
225
|
+
padding: 1.5rem;
|
|
226
|
+
padding-top: 0.75rem;
|
|
227
|
+
background-color: #ffffff;
|
|
228
|
+
color: #181c56;
|
|
229
|
+
border-radius: 4px;
|
|
230
|
+
box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
|
|
231
|
+
}
|
|
232
|
+
.eds-datepicker__calendar__header,
|
|
233
|
+
.eds-contrast .eds-datepicker__calendar__header {
|
|
234
|
+
display: flex;
|
|
235
|
+
justify-content: space-between;
|
|
236
|
+
align-items: center;
|
|
237
|
+
}
|
|
238
|
+
.eds-datepicker__calendar__header h2,
|
|
239
|
+
.eds-contrast .eds-datepicker__calendar__header h2 {
|
|
240
|
+
font-size: 1rem;
|
|
241
|
+
font-weight: 600;
|
|
242
|
+
}
|
|
243
|
+
.eds-datepicker__calendar__header .eds-icon-button:hover,
|
|
244
|
+
.eds-contrast .eds-datepicker__calendar__header .eds-icon-button:hover {
|
|
245
|
+
background-color: #d1d4e3;
|
|
246
|
+
}
|
|
247
|
+
.eds-datepicker__calendar__header .eds-icon-button:focus,
|
|
248
|
+
.eds-contrast .eds-datepicker__calendar__header .eds-icon-button:focus {
|
|
249
|
+
border: 0.0625rem solid #181c56;
|
|
250
|
+
}
|
|
251
|
+
.eds-datepicker__calendar__header .eds-icon-button:active,
|
|
252
|
+
.eds-contrast .eds-datepicker__calendar__header .eds-icon-button:active {
|
|
253
|
+
background-color: #babbcf;
|
|
254
|
+
}
|
|
255
|
+
.eds-datepicker__calendar__grid,
|
|
256
|
+
.eds-contrast .eds-datepicker__calendar__grid {
|
|
257
|
+
position: relative;
|
|
258
|
+
border-spacing: 0px;
|
|
259
|
+
border-collapse: collapse;
|
|
260
|
+
}
|
|
261
|
+
.eds-datepicker__calendar__grid thead tr th,
|
|
262
|
+
.eds-contrast .eds-datepicker__calendar__grid thead tr th {
|
|
263
|
+
color: #54568c;
|
|
264
|
+
font-size: 0.75rem;
|
|
265
|
+
}
|
|
266
|
+
.eds-datepicker__calendar__grid__cell,
|
|
267
|
+
.eds-contrast .eds-datepicker__calendar__grid__cell {
|
|
268
|
+
height: 40px;
|
|
269
|
+
width: 40px;
|
|
270
|
+
display: flex;
|
|
271
|
+
align-items: center;
|
|
272
|
+
justify-content: center;
|
|
273
|
+
font-size: 0.875rem;
|
|
274
|
+
cursor: default;
|
|
275
|
+
}
|
|
276
|
+
.eds-datepicker__calendar__grid__cell__td,
|
|
277
|
+
.eds-contrast .eds-datepicker__calendar__grid__cell__td {
|
|
278
|
+
position: relative;
|
|
279
|
+
padding: 0;
|
|
280
|
+
border: 1px solid #e9e9e9;
|
|
281
|
+
}
|
|
282
|
+
.eds-datepicker__calendar__grid__cell__td[focus-within],
|
|
283
|
+
.eds-contrast .eds-datepicker__calendar__grid__cell__td[focus-within] {
|
|
284
|
+
z-index: 2;
|
|
285
|
+
}
|
|
286
|
+
.eds-datepicker__calendar__grid__cell__td:focus-within,
|
|
287
|
+
.eds-contrast .eds-datepicker__calendar__grid__cell__td:focus-within {
|
|
288
|
+
z-index: 2;
|
|
289
|
+
}
|
|
290
|
+
.eds-datepicker__calendar__grid__cell:hover,
|
|
291
|
+
.eds-contrast .eds-datepicker__calendar__grid__cell:hover {
|
|
292
|
+
background-color: #babbcf;
|
|
293
|
+
}
|
|
294
|
+
.eds-datepicker__calendar__grid__cell:focus,
|
|
295
|
+
.eds-contrast .eds-datepicker__calendar__grid__cell:focus {
|
|
296
|
+
box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
|
|
297
|
+
outline: 1px solid #e9e9e9;
|
|
298
|
+
}
|
|
299
|
+
.eds-datepicker__calendar__grid__cell--selected,
|
|
300
|
+
.eds-contrast .eds-datepicker__calendar__grid__cell--selected {
|
|
301
|
+
background-color: #181c56;
|
|
302
|
+
color: #ffffff;
|
|
303
|
+
}
|
|
304
|
+
.eds-datepicker__calendar__grid__cell--selected:hover,
|
|
305
|
+
.eds-contrast .eds-datepicker__calendar__grid__cell--selected:hover {
|
|
306
|
+
background-color: #393d79;
|
|
307
|
+
}
|
|
308
|
+
.eds-datepicker__calendar__grid__cell--disabled,
|
|
309
|
+
.eds-contrast .eds-datepicker__calendar__grid__cell--disabled {
|
|
310
|
+
color: transparent;
|
|
311
|
+
}
|
|
312
|
+
.eds-datepicker__calendar__grid__cell--disabled:hover,
|
|
313
|
+
.eds-contrast .eds-datepicker__calendar__grid__cell--disabled:hover {
|
|
314
|
+
background-color: transparent;
|
|
315
|
+
}
|
|
316
|
+
.eds-datepicker__calendar__grid__cell--today,
|
|
317
|
+
.eds-contrast .eds-datepicker__calendar__grid__cell--today {
|
|
318
|
+
border-bottom: 2px solid #ff5959;
|
|
319
|
+
}/* DO NOT CHANGE!*/
|
|
320
|
+
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
321
|
+
.eds-datepicker {
|
|
322
|
+
position: relative;
|
|
323
|
+
width: -webkit-fit-content;
|
|
324
|
+
width: -moz-fit-content;
|
|
325
|
+
width: fit-content;
|
|
326
|
+
}
|
|
327
|
+
.eds-datepicker__open-calendar-button {
|
|
328
|
+
position: absolute;
|
|
329
|
+
right: 0.5rem;
|
|
330
|
+
top: 0.45rem;
|
|
331
|
+
}
|
|
332
|
+
.eds-datepicker__open-calendar-button.eds-icon-button {
|
|
333
|
+
color: #181c56;
|
|
334
|
+
}
|
|
335
|
+
.eds-datepicker__open-calendar-button.eds-icon-button:hover {
|
|
336
|
+
background-color: #d1d4e3;
|
|
337
|
+
}
|
|
338
|
+
.eds-datepicker__open-calendar-button.eds-icon-button:focus {
|
|
339
|
+
border: 0.0625rem solid #181c56;
|
|
340
|
+
}
|
|
341
|
+
.eds-datepicker__open-calendar-button.eds-icon-button:active {
|
|
342
|
+
background-color: #babbcf;
|
|
343
|
+
}
|
|
344
|
+
.eds-datepicker__datefield {
|
|
345
|
+
padding-right: 4rem;
|
|
346
|
+
}
|
|
347
|
+
.eds-datepicker__datefield--disabled {
|
|
348
|
+
padding-right: 1rem;
|
|
349
|
+
}
|
|
350
|
+
.eds-datepicker__datefield__wrapper {
|
|
351
|
+
display: flex;
|
|
352
|
+
position: relative;
|
|
353
|
+
}
|
|
354
|
+
.eds-datepicker__calendar-modal.eds-modal__content {
|
|
355
|
+
padding: unset;
|
|
356
|
+
width: inherit;
|
|
357
|
+
background-color: unset;
|
|
358
|
+
overflow: visible;
|
|
198
359
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@entur/datepicker",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0-alpha.1",
|
|
4
4
|
"license": "EUPL-1.2",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/datepicker.esm.js",
|
|
@@ -27,23 +27,31 @@
|
|
|
27
27
|
"react-dom": ">=16.8.0"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@entur/
|
|
31
|
-
"@entur/
|
|
30
|
+
"@entur/a11y": "0.2.49",
|
|
31
|
+
"@entur/button": "^2.10.5-alpha.1",
|
|
32
|
+
"@entur/form": "^5.4.6-alpha.1",
|
|
33
|
+
"@entur/icons": "^5.0.1-alpha.1",
|
|
34
|
+
"@entur/modal": "1.6.12",
|
|
32
35
|
"@entur/tokens": "^3.4.1",
|
|
33
|
-
"@entur/typography": "^1.7.
|
|
34
|
-
"@entur/utils": "^0.
|
|
36
|
+
"@entur/typography": "^1.7.1-alpha.1",
|
|
37
|
+
"@entur/utils": "^0.5.0-alpha.0",
|
|
38
|
+
"@floating-ui/react-dom": "^1.0.0",
|
|
35
39
|
"@internationalized/date": "^3.0.1",
|
|
40
|
+
"@react-aria/button": "3.6.2",
|
|
41
|
+
"@react-aria/calendar": "3.0.3",
|
|
36
42
|
"@react-aria/datepicker": "^3.1.1",
|
|
37
43
|
"@react-aria/i18n": "^3.6.0",
|
|
44
|
+
"@react-stately/calendar": "3.0.3",
|
|
38
45
|
"@react-stately/datepicker": "^3.0.2",
|
|
39
46
|
"@react-types/datepicker": "^3.1.1",
|
|
40
47
|
"@types/react-datepicker": "^4.3.4",
|
|
41
48
|
"classnames": "^2.3.1",
|
|
42
|
-
"react-datepicker": "^4.7.0"
|
|
49
|
+
"react-datepicker": "^4.7.0",
|
|
50
|
+
"react-focus-lock": "^2.9.1"
|
|
43
51
|
},
|
|
44
52
|
"volta": {
|
|
45
53
|
"node": "14.17.0",
|
|
46
54
|
"yarn": "1.18.0"
|
|
47
55
|
},
|
|
48
|
-
"gitHead": "
|
|
56
|
+
"gitHead": "8e5d6c63d180d5b3a7b2d0c6c4cdbb8ecb8af8f4"
|
|
49
57
|
}
|