@entur/datepicker 4.0.6 → 4.0.8
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/README.md +2 -2
- package/dist/styles.css +116 -116
- package/package.json +10 -10
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
This package contains the different Datepicker components.
|
|
4
4
|
|
|
5
|
-
> 💡 Looking for the [documentation](https://design.entur.
|
|
5
|
+
> 💡 Looking for the [documentation](https://design.entur.no/komponenter/skjemaelementer/datepicker)?
|
|
6
6
|
|
|
7
7
|
## Installation
|
|
8
8
|
|
|
@@ -14,4 +14,4 @@ yarn add @entur/datepicker
|
|
|
14
14
|
|
|
15
15
|
## Usage
|
|
16
16
|
|
|
17
|
-
Please refer to the [documentation](https://design.entur.
|
|
17
|
+
Please refer to the [documentation](https://design.entur.no/komponenter/skjemaelementer/datepicker) for usage information.
|
package/dist/styles.css
CHANGED
|
@@ -3,122 +3,6 @@
|
|
|
3
3
|
}
|
|
4
4
|
/* DO NOT CHANGE!*/
|
|
5
5
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
6
|
-
.eds-native-timepicker input[type=time]::-webkit-calendar-picker-indicator {
|
|
7
|
-
position: relative;
|
|
8
|
-
top: -0.5rem;
|
|
9
|
-
}
|
|
10
|
-
/* DO NOT CHANGE!*/
|
|
11
|
-
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
12
|
-
.eds-timepicker__wrapper {
|
|
13
|
-
position: relative;
|
|
14
|
-
display: flex;
|
|
15
|
-
align-items: center;
|
|
16
|
-
width: -moz-fit-content;
|
|
17
|
-
width: fit-content;
|
|
18
|
-
}
|
|
19
|
-
.eds-timepicker__wrapper .eds-timepicker {
|
|
20
|
-
justify-content: center;
|
|
21
|
-
padding: 0rem 3rem;
|
|
22
|
-
}
|
|
23
|
-
.eds-timepicker__wrapper .eds-timepicker .eds-input-group__label,
|
|
24
|
-
.eds-timepicker__wrapper .eds-timepicker .eds-input-group__label--filled {
|
|
25
|
-
margin-left: 0rem !important;
|
|
26
|
-
}
|
|
27
|
-
.eds-timepicker__wrapper .eds-timepicker__arrowbutton {
|
|
28
|
-
color: #181c56;
|
|
29
|
-
}
|
|
30
|
-
.eds-timepicker__wrapper .eds-timepicker__arrowbutton--left {
|
|
31
|
-
position: absolute;
|
|
32
|
-
left: 0.35rem;
|
|
33
|
-
z-index: 1;
|
|
34
|
-
}
|
|
35
|
-
.eds-timepicker__wrapper .eds-timepicker__arrowbutton--right {
|
|
36
|
-
position: absolute;
|
|
37
|
-
right: 0.4rem;
|
|
38
|
-
}
|
|
39
|
-
.eds-timepicker__wrapper .eds-timepicker__arrowbutton--disabled {
|
|
40
|
-
opacity: 0.5;
|
|
41
|
-
pointer-events: none;
|
|
42
|
-
visibility: hidden;
|
|
43
|
-
}
|
|
44
|
-
.eds-timepicker__wrapper .eds-timepicker__arrowbutton:hover {
|
|
45
|
-
background-color: #d1d4e3;
|
|
46
|
-
}
|
|
47
|
-
.eds-timepicker__wrapper .eds-timepicker .eds-form-control__append--tooltip {
|
|
48
|
-
margin-top: 0.75rem;
|
|
49
|
-
margin-right: -0.25rem;
|
|
50
|
-
}
|
|
51
|
-
.eds-timepicker__wrapper .eds-icon-button--disabled__wrapper {
|
|
52
|
-
display: none;
|
|
53
|
-
}
|
|
54
|
-
.eds-timepicker__wrapper .eds-feedback-text {
|
|
55
|
-
position: absolute;
|
|
56
|
-
top: 3.5rem;
|
|
57
|
-
}
|
|
58
|
-
/* DO NOT CHANGE!*/
|
|
59
|
-
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
60
|
-
.eds-datefield div:first-of-type.eds-date-and-time-field__segment {
|
|
61
|
-
margin-left: 1rem;
|
|
62
|
-
}
|
|
63
|
-
.eds-datefield.eds-form-control-wrapper--disabled[focus-within] {
|
|
64
|
-
border-color: transparent;
|
|
65
|
-
box-shadow: none;
|
|
66
|
-
}
|
|
67
|
-
.eds-datefield.eds-form-control-wrapper--disabled:focus-within {
|
|
68
|
-
border-color: transparent;
|
|
69
|
-
box-shadow: none;
|
|
70
|
-
}
|
|
71
|
-
.eds-datefield.eds-form-control-wrapper--disabled .eds-date-and-time-field__segment:focus {
|
|
72
|
-
background: none;
|
|
73
|
-
}
|
|
74
|
-
.eds-datefield .eds-form-control__append--tooltip {
|
|
75
|
-
margin-top: 0.75rem;
|
|
76
|
-
margin-right: -0.25rem;
|
|
77
|
-
}
|
|
78
|
-
/* DO NOT CHANGE!*/
|
|
79
|
-
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
80
|
-
.eds-datepicker {
|
|
81
|
-
position: relative;
|
|
82
|
-
width: -moz-fit-content;
|
|
83
|
-
width: fit-content;
|
|
84
|
-
}
|
|
85
|
-
.eds-datepicker__open-calendar-button {
|
|
86
|
-
position: absolute;
|
|
87
|
-
right: 0.5rem;
|
|
88
|
-
top: 0.45rem;
|
|
89
|
-
}
|
|
90
|
-
.eds-datepicker__open-calendar-button.eds-icon-button {
|
|
91
|
-
color: #181c56;
|
|
92
|
-
}
|
|
93
|
-
.eds-datepicker__open-calendar-button.eds-icon-button:hover {
|
|
94
|
-
background-color: #656782;
|
|
95
|
-
color: #ffffff;
|
|
96
|
-
}
|
|
97
|
-
.eds-datepicker__open-calendar-button.eds-icon-button:focus {
|
|
98
|
-
border: 0.0625rem solid #181c56;
|
|
99
|
-
}
|
|
100
|
-
.eds-datepicker__open-calendar-button.eds-icon-button:active {
|
|
101
|
-
background-color: #8285a8;
|
|
102
|
-
}
|
|
103
|
-
.eds-datepicker__datefield {
|
|
104
|
-
padding-right: 4rem;
|
|
105
|
-
}
|
|
106
|
-
.eds-datepicker__datefield--disabled {
|
|
107
|
-
padding-right: 1rem;
|
|
108
|
-
}
|
|
109
|
-
.eds-datepicker__datefield__wrapper {
|
|
110
|
-
position: relative;
|
|
111
|
-
}
|
|
112
|
-
.eds-datepicker__calendar-modal.eds-modal__content {
|
|
113
|
-
padding: 0;
|
|
114
|
-
padding: initial;
|
|
115
|
-
width: inherit;
|
|
116
|
-
background-color: transparent;
|
|
117
|
-
background-color: initial;
|
|
118
|
-
overflow: scroll;
|
|
119
|
-
}
|
|
120
|
-
/* DO NOT CHANGE!*/
|
|
121
|
-
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
122
6
|
.eds-datepicker__calendar,
|
|
123
7
|
.eds-contrast .eds-datepicker__calendar {
|
|
124
8
|
width: -moz-fit-content;
|
|
@@ -246,6 +130,122 @@
|
|
|
246
130
|
}
|
|
247
131
|
/* DO NOT CHANGE!*/
|
|
248
132
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
133
|
+
.eds-datefield div:first-of-type.eds-date-and-time-field__segment {
|
|
134
|
+
margin-left: 1rem;
|
|
135
|
+
}
|
|
136
|
+
.eds-datefield.eds-form-control-wrapper--disabled[focus-within] {
|
|
137
|
+
border-color: transparent;
|
|
138
|
+
box-shadow: none;
|
|
139
|
+
}
|
|
140
|
+
.eds-datefield.eds-form-control-wrapper--disabled:focus-within {
|
|
141
|
+
border-color: transparent;
|
|
142
|
+
box-shadow: none;
|
|
143
|
+
}
|
|
144
|
+
.eds-datefield.eds-form-control-wrapper--disabled .eds-date-and-time-field__segment:focus {
|
|
145
|
+
background: none;
|
|
146
|
+
}
|
|
147
|
+
.eds-datefield .eds-form-control__append--tooltip {
|
|
148
|
+
margin-top: 0.75rem;
|
|
149
|
+
margin-right: -0.25rem;
|
|
150
|
+
}
|
|
151
|
+
/* DO NOT CHANGE!*/
|
|
152
|
+
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
153
|
+
.eds-datepicker {
|
|
154
|
+
position: relative;
|
|
155
|
+
width: -moz-fit-content;
|
|
156
|
+
width: fit-content;
|
|
157
|
+
}
|
|
158
|
+
.eds-datepicker__open-calendar-button {
|
|
159
|
+
position: absolute;
|
|
160
|
+
right: 0.5rem;
|
|
161
|
+
top: 0.45rem;
|
|
162
|
+
}
|
|
163
|
+
.eds-datepicker__open-calendar-button.eds-icon-button {
|
|
164
|
+
color: #181c56;
|
|
165
|
+
}
|
|
166
|
+
.eds-datepicker__open-calendar-button.eds-icon-button:hover {
|
|
167
|
+
background-color: #656782;
|
|
168
|
+
color: #ffffff;
|
|
169
|
+
}
|
|
170
|
+
.eds-datepicker__open-calendar-button.eds-icon-button:focus {
|
|
171
|
+
border: 0.0625rem solid #181c56;
|
|
172
|
+
}
|
|
173
|
+
.eds-datepicker__open-calendar-button.eds-icon-button:active {
|
|
174
|
+
background-color: #8285a8;
|
|
175
|
+
}
|
|
176
|
+
.eds-datepicker__datefield {
|
|
177
|
+
padding-right: 4rem;
|
|
178
|
+
}
|
|
179
|
+
.eds-datepicker__datefield--disabled {
|
|
180
|
+
padding-right: 1rem;
|
|
181
|
+
}
|
|
182
|
+
.eds-datepicker__datefield__wrapper {
|
|
183
|
+
position: relative;
|
|
184
|
+
}
|
|
185
|
+
.eds-datepicker__calendar-modal.eds-modal__content {
|
|
186
|
+
padding: 0;
|
|
187
|
+
padding: initial;
|
|
188
|
+
width: inherit;
|
|
189
|
+
background-color: transparent;
|
|
190
|
+
background-color: initial;
|
|
191
|
+
overflow: scroll;
|
|
192
|
+
}
|
|
193
|
+
/* DO NOT CHANGE!*/
|
|
194
|
+
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
195
|
+
.eds-native-timepicker input[type=time]::-webkit-calendar-picker-indicator {
|
|
196
|
+
position: relative;
|
|
197
|
+
top: -0.5rem;
|
|
198
|
+
}
|
|
199
|
+
/* DO NOT CHANGE!*/
|
|
200
|
+
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
201
|
+
.eds-timepicker__wrapper {
|
|
202
|
+
position: relative;
|
|
203
|
+
display: flex;
|
|
204
|
+
align-items: center;
|
|
205
|
+
width: -moz-fit-content;
|
|
206
|
+
width: fit-content;
|
|
207
|
+
}
|
|
208
|
+
.eds-timepicker__wrapper .eds-timepicker {
|
|
209
|
+
justify-content: center;
|
|
210
|
+
padding: 0rem 3rem;
|
|
211
|
+
}
|
|
212
|
+
.eds-timepicker__wrapper .eds-timepicker .eds-input-group__label,
|
|
213
|
+
.eds-timepicker__wrapper .eds-timepicker .eds-input-group__label--filled {
|
|
214
|
+
margin-left: 0rem !important;
|
|
215
|
+
}
|
|
216
|
+
.eds-timepicker__wrapper .eds-timepicker__arrowbutton {
|
|
217
|
+
color: #181c56;
|
|
218
|
+
}
|
|
219
|
+
.eds-timepicker__wrapper .eds-timepicker__arrowbutton--left {
|
|
220
|
+
position: absolute;
|
|
221
|
+
left: 0.35rem;
|
|
222
|
+
z-index: 1;
|
|
223
|
+
}
|
|
224
|
+
.eds-timepicker__wrapper .eds-timepicker__arrowbutton--right {
|
|
225
|
+
position: absolute;
|
|
226
|
+
right: 0.4rem;
|
|
227
|
+
}
|
|
228
|
+
.eds-timepicker__wrapper .eds-timepicker__arrowbutton--disabled {
|
|
229
|
+
opacity: 0.5;
|
|
230
|
+
pointer-events: none;
|
|
231
|
+
visibility: hidden;
|
|
232
|
+
}
|
|
233
|
+
.eds-timepicker__wrapper .eds-timepicker__arrowbutton:hover {
|
|
234
|
+
background-color: #d1d4e3;
|
|
235
|
+
}
|
|
236
|
+
.eds-timepicker__wrapper .eds-timepicker .eds-form-control__append--tooltip {
|
|
237
|
+
margin-top: 0.75rem;
|
|
238
|
+
margin-right: -0.25rem;
|
|
239
|
+
}
|
|
240
|
+
.eds-timepicker__wrapper .eds-icon-button--disabled__wrapper {
|
|
241
|
+
display: none;
|
|
242
|
+
}
|
|
243
|
+
.eds-timepicker__wrapper .eds-feedback-text {
|
|
244
|
+
position: absolute;
|
|
245
|
+
top: 3.5rem;
|
|
246
|
+
}
|
|
247
|
+
/* DO NOT CHANGE!*/
|
|
248
|
+
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
249
249
|
[dir="ltr"] .eds-date-and-time-field__segment {
|
|
250
250
|
text-align: right;
|
|
251
251
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@entur/datepicker",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.8",
|
|
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.
|
|
31
|
-
"@entur/button": "^
|
|
32
|
-
"@entur/form": "^
|
|
33
|
-
"@entur/icons": "^
|
|
34
|
-
"@entur/modal": "^1.6.
|
|
35
|
-
"@entur/tokens": "^3.8.
|
|
36
|
-
"@entur/tooltip": "^2.6.
|
|
37
|
-
"@entur/typography": "^1.7.
|
|
30
|
+
"@entur/a11y": "^0.2.60",
|
|
31
|
+
"@entur/button": "^3.0.1",
|
|
32
|
+
"@entur/form": "^6.0.1",
|
|
33
|
+
"@entur/icons": "^6.0.1",
|
|
34
|
+
"@entur/modal": "^1.6.27",
|
|
35
|
+
"@entur/tokens": "^3.8.1",
|
|
36
|
+
"@entur/tooltip": "^2.6.9",
|
|
37
|
+
"@entur/typography": "^1.7.12",
|
|
38
38
|
"@entur/utils": "^0.5.5",
|
|
39
39
|
"@floating-ui/react-dom": "^1.0.0",
|
|
40
40
|
"@internationalized/date": "^3.0.2",
|
|
@@ -52,5 +52,5 @@
|
|
|
52
52
|
"node": "16.17.0",
|
|
53
53
|
"yarn": "1.22.19"
|
|
54
54
|
},
|
|
55
|
-
"gitHead": "
|
|
55
|
+
"gitHead": "1e78a655ffc4c4ca80d8e54495768282dc374201"
|
|
56
56
|
}
|