@entur/form 5.4.4 → 5.4.6-alpha.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/CHANGELOG.md +8 -0
- package/dist/styles.css +387 -387
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [5.4.6-alpha.0](https://bitbucket.org/enturas/design-system/compare/@entur/form@5.4.5...@entur/form@5.4.6-alpha.0) (2022-10-20)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @entur/form
|
|
9
|
+
|
|
10
|
+
## [5.4.5](https://bitbucket.org/enturas/design-system/compare/@entur/form@5.4.4...@entur/form@5.4.5) (2022-10-12)
|
|
11
|
+
|
|
12
|
+
**Note:** Version bump only for package @entur/form
|
|
13
|
+
|
|
6
14
|
## [5.4.3](https://bitbucket.org/enturas/design-system/compare/@entur/form@5.4.2...@entur/form@5.4.3) (2022-08-31)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @entur/form
|
package/dist/styles.css
CHANGED
|
@@ -2,401 +2,181 @@
|
|
|
2
2
|
--eds-form: 1;
|
|
3
3
|
}/* DO NOT CHANGE!*/
|
|
4
4
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
5
|
-
.eds-form-control-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
5
|
+
textarea.eds-form-control.eds-textarea {
|
|
6
|
+
min-height: 7.75rem;
|
|
7
|
+
resize: vertical;
|
|
8
|
+
line-height: 1.5rem;
|
|
9
|
+
}/* DO NOT CHANGE!*/
|
|
10
|
+
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
11
|
+
.eds-fieldset {
|
|
12
|
+
margin: 0;
|
|
13
|
+
padding: 0;
|
|
14
|
+
border: 0;
|
|
15
|
+
}
|
|
16
|
+
.eds-fieldset .eds-legend {
|
|
17
|
+
margin: 0 0 0.5rem;
|
|
18
|
+
}/* DO NOT CHANGE!*/
|
|
19
|
+
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
20
|
+
.eds-textfield__clear-button {
|
|
21
|
+
background: none;
|
|
22
|
+
border: none;
|
|
23
|
+
border-radius: 50%;
|
|
24
|
+
color: inherit;
|
|
25
|
+
cursor: pointer;
|
|
14
26
|
display: flex;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
/*
|
|
21
|
-
Some input controls require a darker design while inside a contrast block.
|
|
22
|
-
These elements require the `--dark` modifier, even on the wrapper.
|
|
23
|
-
*/
|
|
27
|
+
font: inherit;
|
|
28
|
+
font-size: 1rem;
|
|
29
|
+
line-height: 1rem;
|
|
30
|
+
padding: 0.5rem;
|
|
31
|
+
margin-right: -0.75rem;
|
|
24
32
|
}
|
|
25
|
-
.eds-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
border-color: #54568c;
|
|
33
|
+
.eds-textfield__clear-button-wrapper {
|
|
34
|
+
display: flex;
|
|
35
|
+
align-items: center;
|
|
29
36
|
}
|
|
30
|
-
.eds-
|
|
31
|
-
|
|
37
|
+
.eds-textfield__clear-button:hover {
|
|
38
|
+
background: #f3f3f3;
|
|
32
39
|
}
|
|
33
|
-
.eds-
|
|
34
|
-
|
|
40
|
+
.eds-textfield__clear-button:focus {
|
|
41
|
+
outline: none;
|
|
42
|
+
box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
|
|
35
43
|
}
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
44
|
+
|
|
45
|
+
.eds-textfield__divider {
|
|
46
|
+
content: "";
|
|
47
|
+
display: block;
|
|
48
|
+
background-color: #e9e9e9;
|
|
49
|
+
height: 1.5rem;
|
|
50
|
+
width: 1px;
|
|
39
51
|
}
|
|
40
|
-
.eds-form-control-wrapper
|
|
41
|
-
|
|
52
|
+
.eds-contrast .eds-form-control-wrapper--disabled .eds-textfield__divider {
|
|
53
|
+
background-color: #8285a8;
|
|
54
|
+
}/* DO NOT CHANGE!*/
|
|
55
|
+
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
56
|
+
.eds-feedback-text {
|
|
57
|
+
display: flex;
|
|
58
|
+
align-items: center;
|
|
59
|
+
margin-top: 0.25rem;
|
|
42
60
|
}
|
|
43
|
-
.eds-
|
|
44
|
-
|
|
61
|
+
.eds-feedback-text--info {
|
|
62
|
+
padding-left: calc(1rem + 0.125rem);
|
|
45
63
|
}
|
|
46
|
-
.eds-
|
|
47
|
-
|
|
48
|
-
--border-color: #aeb7e2;
|
|
49
|
-
box-shadow: 0 0 0 0.125rem var(--border-color);
|
|
64
|
+
.eds-feedback-text__text {
|
|
65
|
+
color: #181c56;
|
|
50
66
|
}
|
|
51
|
-
.eds-contrast .eds-
|
|
52
|
-
|
|
53
|
-
--border-color: #aeb7e2;
|
|
54
|
-
box-shadow: 0 0 0 0.125rem var(--border-color);
|
|
67
|
+
.eds-contrast .eds-feedback-text__text {
|
|
68
|
+
color: #ffffff;
|
|
55
69
|
}
|
|
56
|
-
|
|
57
|
-
|
|
70
|
+
|
|
71
|
+
.eds-feedback-text__icon {
|
|
72
|
+
font-size: 1.5rem;
|
|
73
|
+
min-height: 1.5rem;
|
|
74
|
+
min-width: 1.5rem;
|
|
75
|
+
padding-right: 0.5rem;
|
|
76
|
+
position: relative;
|
|
77
|
+
top: -0.1rem;
|
|
58
78
|
}
|
|
59
|
-
.eds-
|
|
60
|
-
color: #
|
|
79
|
+
.eds-feedback-text__icon--success {
|
|
80
|
+
color: #1a8e60;
|
|
61
81
|
}
|
|
62
|
-
.eds-
|
|
63
|
-
color: #
|
|
82
|
+
.eds-contrast .eds-feedback-text__icon--success {
|
|
83
|
+
color: #5ac39a;
|
|
64
84
|
}
|
|
65
|
-
.eds-
|
|
66
|
-
|
|
67
|
-
color: #656782;
|
|
68
|
-
border-color: transparent;
|
|
69
|
-
pointer-events: none;
|
|
85
|
+
.eds-feedback-text__icon--error {
|
|
86
|
+
color: #d31b1b;
|
|
70
87
|
}
|
|
71
|
-
.eds-
|
|
72
|
-
|
|
88
|
+
.eds-contrast .eds-feedback-text__icon--error {
|
|
89
|
+
color: #ff9494;
|
|
73
90
|
}
|
|
74
|
-
.eds-
|
|
75
|
-
|
|
76
|
-
border-color: transparent;
|
|
77
|
-
color: #8285a8;
|
|
91
|
+
.eds-feedback-text__icon--info {
|
|
92
|
+
color: #0082b9;
|
|
78
93
|
}
|
|
79
|
-
.eds-
|
|
80
|
-
|
|
81
|
-
cursor: default;
|
|
82
|
-
border-color: transparent;
|
|
83
|
-
background: #f8f8f8;
|
|
84
|
-
--textarea-label-background: $colors-greys-grey90;
|
|
94
|
+
.eds-contrast .eds-feedback-text__icon--info {
|
|
95
|
+
color: #64b3e7;
|
|
85
96
|
}
|
|
86
|
-
.eds-
|
|
87
|
-
|
|
88
|
-
--textarea-label-background: $colors-blues-blue10;
|
|
89
|
-
color: #ffffff;
|
|
90
|
-
border-color: transparent;
|
|
97
|
+
.eds-feedback-text__icon--warning {
|
|
98
|
+
color: #ffca28;
|
|
91
99
|
}
|
|
92
|
-
.eds-
|
|
93
|
-
|
|
100
|
+
.eds-feedback-text__icon--warning circle {
|
|
101
|
+
fill: #181c56;
|
|
94
102
|
}
|
|
95
|
-
.eds-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
103
|
+
.eds-contrast .eds-feedback-text__icon--warning {
|
|
104
|
+
color: #ffe082;
|
|
105
|
+
}/* DO NOT CHANGE!*/
|
|
106
|
+
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
107
|
+
.eds-form-component--radio__container {
|
|
108
|
+
display: flex;
|
|
109
|
+
justify-content: center;
|
|
110
|
+
align-items: center;
|
|
111
|
+
position: relative;
|
|
112
|
+
cursor: pointer;
|
|
113
|
+
height: 2rem;
|
|
114
|
+
width: -webkit-fit-content;
|
|
115
|
+
width: -moz-fit-content;
|
|
116
|
+
width: fit-content;
|
|
117
|
+
-webkit-user-select: none;
|
|
118
|
+
-moz-user-select: none;
|
|
119
|
+
-ms-user-select: none;
|
|
120
|
+
user-select: none;
|
|
100
121
|
}
|
|
101
|
-
.eds-form-
|
|
102
|
-
|
|
103
|
-
padding: 0 0.5rem;
|
|
122
|
+
.eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio {
|
|
123
|
+
border-color: #54568c;
|
|
104
124
|
}
|
|
105
|
-
.eds-form-
|
|
106
|
-
|
|
125
|
+
.eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio .eds-form-component--radio__circle {
|
|
126
|
+
background-color: #54568c;
|
|
107
127
|
}
|
|
108
|
-
.eds-form-
|
|
109
|
-
|
|
110
|
-
.eds-form-control-wrapper--size-large .eds-form-control__prepend {
|
|
111
|
-
font-size: 1.5rem;
|
|
112
|
-
line-height: 2.25rem;
|
|
128
|
+
.eds-contrast .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio {
|
|
129
|
+
border-color: #8285a8;
|
|
113
130
|
}
|
|
114
|
-
.eds-form-
|
|
115
|
-
|
|
116
|
-
--border-color: #1a8e60;
|
|
131
|
+
.eds-contrast .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio .eds-form-component--radio__circle {
|
|
132
|
+
background-color: #8285a8;
|
|
117
133
|
}
|
|
118
|
-
.eds-form-
|
|
119
|
-
|
|
134
|
+
.eds-form-component--radio__container input {
|
|
135
|
+
position: absolute;
|
|
136
|
+
opacity: 0;
|
|
137
|
+
cursor: pointer;
|
|
138
|
+
height: 0;
|
|
139
|
+
width: 0;
|
|
120
140
|
}
|
|
121
|
-
.eds-form-
|
|
122
|
-
|
|
141
|
+
.eds-form-component--radio__container input:checked ~ .eds-form-component--radio__radio .eds-form-component--radio__circle {
|
|
142
|
+
height: 0.625rem;
|
|
143
|
+
width: 0.625rem;
|
|
123
144
|
}
|
|
124
|
-
.eds-form-
|
|
125
|
-
|
|
145
|
+
.eds-form-component--radio__container input:focus ~ .eds-form-component--radio__radio {
|
|
146
|
+
outline: none;
|
|
147
|
+
box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
|
|
148
|
+
outline-offset: 0.125rem;
|
|
126
149
|
}
|
|
127
|
-
.eds-contrast .eds-form-
|
|
128
|
-
|
|
129
|
-
--border-color: #5ac39a;
|
|
150
|
+
.eds-contrast .eds-form-component--radio__container input:focus ~ .eds-form-component--radio__radio {
|
|
151
|
+
box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
|
|
130
152
|
}
|
|
131
|
-
.eds-
|
|
132
|
-
|
|
153
|
+
.eds-form-component--radio__container .eds-form-component--radio__radio {
|
|
154
|
+
position: relative;
|
|
155
|
+
height: 1.25rem;
|
|
156
|
+
width: 1.25rem;
|
|
157
|
+
margin-right: 1rem;
|
|
158
|
+
background-color: #ffffff;
|
|
159
|
+
border: 0.125rem solid #181c56;
|
|
160
|
+
border-radius: 50%;
|
|
161
|
+
display: flex;
|
|
162
|
+
align-items: center;
|
|
163
|
+
justify-content: center;
|
|
133
164
|
}
|
|
134
|
-
.eds-contrast .eds-form-
|
|
135
|
-
|
|
136
|
-
border-color: #
|
|
165
|
+
.eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio {
|
|
166
|
+
background-color: #181c56;
|
|
167
|
+
border-color: #aeb7e2;
|
|
137
168
|
}
|
|
138
|
-
.eds-
|
|
139
|
-
|
|
140
|
-
border-color: #
|
|
169
|
+
.eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled {
|
|
170
|
+
background: #d1d3d3;
|
|
171
|
+
border-color: #d1d3d3;
|
|
172
|
+
cursor: not-allowed;
|
|
141
173
|
}
|
|
142
|
-
.eds-form-
|
|
143
|
-
border-color: #
|
|
144
|
-
--border-color: #d31b1b;
|
|
174
|
+
.eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled:hover {
|
|
175
|
+
border-color: #d1d3d3;
|
|
145
176
|
}
|
|
146
|
-
.eds-form-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
.eds-form-control-wrapper--error[focus-within] {
|
|
150
|
-
border-color: #d31b1b;
|
|
151
|
-
}
|
|
152
|
-
.eds-form-control-wrapper--error:focus-within {
|
|
153
|
-
border-color: #d31b1b;
|
|
154
|
-
}
|
|
155
|
-
.eds-contrast .eds-form-control-wrapper--error {
|
|
156
|
-
border-color: #ff9494;
|
|
157
|
-
--border-color: #ff9494;
|
|
158
|
-
}
|
|
159
|
-
.eds-contrast .eds-form-control-wrapper--error:hover {
|
|
160
|
-
border-color: #d31b1b;
|
|
161
|
-
}
|
|
162
|
-
.eds-contrast .eds-form-control-wrapper--error[focus-within] {
|
|
163
|
-
border-color: #181c56;
|
|
164
|
-
--border-color: #ff9494;
|
|
165
|
-
}
|
|
166
|
-
.eds-contrast .eds-form-control-wrapper--error:focus-within {
|
|
167
|
-
border-color: #181c56;
|
|
168
|
-
--border-color: #ff9494;
|
|
169
|
-
}
|
|
170
|
-
.eds-contrast .eds-form-control-wrapper--dark {
|
|
171
|
-
background-color: #181c56;
|
|
172
|
-
color: #ffffff;
|
|
173
|
-
}
|
|
174
|
-
.eds-contrast .eds-form-control-wrapper--dark ::-moz-placeholder {
|
|
175
|
-
color: #aeb7e2;
|
|
176
|
-
}
|
|
177
|
-
.eds-contrast .eds-form-control-wrapper--dark :-ms-input-placeholder {
|
|
178
|
-
color: #aeb7e2;
|
|
179
|
-
}
|
|
180
|
-
.eds-contrast .eds-form-control-wrapper--dark ::placeholder {
|
|
181
|
-
color: #aeb7e2;
|
|
182
|
-
}
|
|
183
|
-
.eds-contrast .eds-form-control-wrapper--dark:hover {
|
|
184
|
-
border-color: #aeb7e2;
|
|
185
|
-
}
|
|
186
|
-
.eds-contrast .eds-form-control-wrapper--dark[focus-within] {
|
|
187
|
-
background-color: #292b6a;
|
|
188
|
-
border-color: #aeb7e2;
|
|
189
|
-
}
|
|
190
|
-
.eds-contrast .eds-form-control-wrapper--dark:focus-within {
|
|
191
|
-
background-color: #292b6a;
|
|
192
|
-
border-color: #aeb7e2;
|
|
193
|
-
}
|
|
194
|
-
.eds-contrast .eds-form-control-wrapper--dark * {
|
|
195
|
-
background-color: transparent;
|
|
196
|
-
color: inherit;
|
|
197
|
-
}
|
|
198
|
-
.eds-contrast .eds-form-control-wrapper--dark.eds-form-control-wrapper--disabled {
|
|
199
|
-
background-color: #292b6a;
|
|
200
|
-
color: #8285a8;
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
.eds-form-control {
|
|
204
|
-
-webkit-appearance: none;
|
|
205
|
-
-moz-appearance: none;
|
|
206
|
-
appearance: none;
|
|
207
|
-
background-color: transparent;
|
|
208
|
-
border: 0;
|
|
209
|
-
color: inherit;
|
|
210
|
-
display: block;
|
|
211
|
-
font-family: inherit;
|
|
212
|
-
line-height: 1rem;
|
|
213
|
-
font-size: 1rem;
|
|
214
|
-
padding: 20px 1rem 0.25rem;
|
|
215
|
-
width: 100%;
|
|
216
|
-
}
|
|
217
|
-
.eds-form-control::-moz-placeholder {
|
|
218
|
-
opacity: 0;
|
|
219
|
-
-moz-transition: opacity 0.2s ease-in-out;
|
|
220
|
-
transition: opacity 0.2s ease-in-out;
|
|
221
|
-
}
|
|
222
|
-
.eds-form-control:-ms-input-placeholder {
|
|
223
|
-
opacity: 0;
|
|
224
|
-
-ms-transition: opacity 0.2s ease-in-out;
|
|
225
|
-
transition: opacity 0.2s ease-in-out;
|
|
226
|
-
}
|
|
227
|
-
.eds-form-control::placeholder {
|
|
228
|
-
opacity: 0;
|
|
229
|
-
transition: opacity 0.2s ease-in-out;
|
|
230
|
-
}
|
|
231
|
-
.eds-form-control:focus {
|
|
232
|
-
outline: none;
|
|
233
|
-
}
|
|
234
|
-
.eds-form-control:focus::-moz-placeholder {
|
|
235
|
-
opacity: 1;
|
|
236
|
-
}
|
|
237
|
-
.eds-form-control:focus:-ms-input-placeholder {
|
|
238
|
-
opacity: 1;
|
|
239
|
-
}
|
|
240
|
-
.eds-form-control:focus::placeholder {
|
|
241
|
-
opacity: 1;
|
|
242
|
-
}
|
|
243
|
-
.eds-form-control__prepend, .eds-form-control__append {
|
|
244
|
-
position: relative;
|
|
245
|
-
margin: 0 1rem;
|
|
246
|
-
line-height: inherit;
|
|
247
|
-
}
|
|
248
|
-
.eds-form-control__prepend--tooltip, .eds-form-control__append--tooltip {
|
|
249
|
-
position: static;
|
|
250
|
-
}
|
|
251
|
-
.eds-form-control__prepend svg, .eds-form-control__append svg {
|
|
252
|
-
top: 0.125rem;
|
|
253
|
-
}
|
|
254
|
-
.eds-form-control__prepend {
|
|
255
|
-
margin-right: 0;
|
|
256
|
-
}
|
|
257
|
-
.eds-form-control__append {
|
|
258
|
-
margin-left: 0;
|
|
259
|
-
}/* DO NOT CHANGE!*/
|
|
260
|
-
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
261
|
-
textarea.eds-form-control.eds-textarea {
|
|
262
|
-
min-height: 7.75rem;
|
|
263
|
-
resize: vertical;
|
|
264
|
-
line-height: 1.5rem;
|
|
265
|
-
}/* DO NOT CHANGE!*/
|
|
266
|
-
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
267
|
-
.eds-fieldset {
|
|
268
|
-
margin: 0;
|
|
269
|
-
padding: 0;
|
|
270
|
-
border: 0;
|
|
271
|
-
}
|
|
272
|
-
.eds-fieldset .eds-legend {
|
|
273
|
-
margin: 0 0 0.5rem;
|
|
274
|
-
}/* DO NOT CHANGE!*/
|
|
275
|
-
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
276
|
-
.eds-feedback-text {
|
|
277
|
-
display: flex;
|
|
278
|
-
align-items: center;
|
|
279
|
-
margin-top: 0.25rem;
|
|
280
|
-
}
|
|
281
|
-
.eds-feedback-text--info {
|
|
282
|
-
padding-left: calc(1rem + 0.125rem);
|
|
283
|
-
}
|
|
284
|
-
.eds-feedback-text__text {
|
|
285
|
-
color: #181c56;
|
|
286
|
-
}
|
|
287
|
-
.eds-contrast .eds-feedback-text__text {
|
|
288
|
-
color: #ffffff;
|
|
289
|
-
}
|
|
290
|
-
|
|
291
|
-
.eds-feedback-text__icon {
|
|
292
|
-
font-size: 1.5rem;
|
|
293
|
-
min-height: 1.5rem;
|
|
294
|
-
min-width: 1.5rem;
|
|
295
|
-
padding-right: 0.5rem;
|
|
296
|
-
position: relative;
|
|
297
|
-
top: -0.1rem;
|
|
298
|
-
}
|
|
299
|
-
.eds-feedback-text__icon--success {
|
|
300
|
-
color: #1a8e60;
|
|
301
|
-
}
|
|
302
|
-
.eds-contrast .eds-feedback-text__icon--success {
|
|
303
|
-
color: #5ac39a;
|
|
304
|
-
}
|
|
305
|
-
.eds-feedback-text__icon--error {
|
|
306
|
-
color: #d31b1b;
|
|
307
|
-
}
|
|
308
|
-
.eds-contrast .eds-feedback-text__icon--error {
|
|
309
|
-
color: #ff9494;
|
|
310
|
-
}
|
|
311
|
-
.eds-feedback-text__icon--info {
|
|
312
|
-
color: #0082b9;
|
|
313
|
-
}
|
|
314
|
-
.eds-contrast .eds-feedback-text__icon--info {
|
|
315
|
-
color: #64b3e7;
|
|
316
|
-
}
|
|
317
|
-
.eds-feedback-text__icon--warning {
|
|
318
|
-
color: #ffca28;
|
|
319
|
-
}
|
|
320
|
-
.eds-feedback-text__icon--warning circle {
|
|
321
|
-
fill: #181c56;
|
|
322
|
-
}
|
|
323
|
-
.eds-contrast .eds-feedback-text__icon--warning {
|
|
324
|
-
color: #ffe082;
|
|
325
|
-
}/* DO NOT CHANGE!*/
|
|
326
|
-
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
327
|
-
.eds-form-component--radio__container {
|
|
328
|
-
display: flex;
|
|
329
|
-
justify-content: center;
|
|
330
|
-
align-items: center;
|
|
331
|
-
position: relative;
|
|
332
|
-
cursor: pointer;
|
|
333
|
-
height: 2rem;
|
|
334
|
-
width: -webkit-fit-content;
|
|
335
|
-
width: -moz-fit-content;
|
|
336
|
-
width: fit-content;
|
|
337
|
-
-webkit-user-select: none;
|
|
338
|
-
-moz-user-select: none;
|
|
339
|
-
-ms-user-select: none;
|
|
340
|
-
user-select: none;
|
|
341
|
-
}
|
|
342
|
-
.eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio {
|
|
343
|
-
border-color: #54568c;
|
|
344
|
-
}
|
|
345
|
-
.eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio .eds-form-component--radio__circle {
|
|
346
|
-
background-color: #54568c;
|
|
347
|
-
}
|
|
348
|
-
.eds-contrast .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio {
|
|
349
|
-
border-color: #8285a8;
|
|
350
|
-
}
|
|
351
|
-
.eds-contrast .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio .eds-form-component--radio__circle {
|
|
352
|
-
background-color: #8285a8;
|
|
353
|
-
}
|
|
354
|
-
.eds-form-component--radio__container input {
|
|
355
|
-
position: absolute;
|
|
356
|
-
opacity: 0;
|
|
357
|
-
cursor: pointer;
|
|
358
|
-
height: 0;
|
|
359
|
-
width: 0;
|
|
360
|
-
}
|
|
361
|
-
.eds-form-component--radio__container input:checked ~ .eds-form-component--radio__radio .eds-form-component--radio__circle {
|
|
362
|
-
height: 0.625rem;
|
|
363
|
-
width: 0.625rem;
|
|
364
|
-
}
|
|
365
|
-
.eds-form-component--radio__container input:focus ~ .eds-form-component--radio__radio {
|
|
366
|
-
outline: none;
|
|
367
|
-
box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
|
|
368
|
-
outline-offset: 0.125rem;
|
|
369
|
-
}
|
|
370
|
-
.eds-contrast .eds-form-component--radio__container input:focus ~ .eds-form-component--radio__radio {
|
|
371
|
-
box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
|
|
372
|
-
}
|
|
373
|
-
.eds-form-component--radio__container .eds-form-component--radio__radio {
|
|
374
|
-
position: relative;
|
|
375
|
-
height: 1.25rem;
|
|
376
|
-
width: 1.25rem;
|
|
377
|
-
margin-right: 1rem;
|
|
378
|
-
background-color: #ffffff;
|
|
379
|
-
border: 0.125rem solid #181c56;
|
|
380
|
-
border-radius: 50%;
|
|
381
|
-
display: flex;
|
|
382
|
-
align-items: center;
|
|
383
|
-
justify-content: center;
|
|
384
|
-
}
|
|
385
|
-
.eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio {
|
|
386
|
-
background-color: #181c56;
|
|
387
|
-
border-color: #aeb7e2;
|
|
388
|
-
}
|
|
389
|
-
.eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled {
|
|
390
|
-
background: #d1d3d3;
|
|
391
|
-
border-color: #d1d3d3;
|
|
392
|
-
cursor: not-allowed;
|
|
393
|
-
}
|
|
394
|
-
.eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled:hover {
|
|
395
|
-
border-color: #d1d3d3;
|
|
396
|
-
}
|
|
397
|
-
.eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled {
|
|
398
|
-
background: #d1d3d3;
|
|
399
|
-
border-color: #d1d3d3;
|
|
177
|
+
.eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled {
|
|
178
|
+
background: #d1d3d3;
|
|
179
|
+
border-color: #d1d3d3;
|
|
400
180
|
}
|
|
401
181
|
.eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled ~ .eds-form-component--radio__label {
|
|
402
182
|
color: #656782;
|
|
@@ -931,40 +711,260 @@ textarea.eds-form-control.eds-textarea {
|
|
|
931
711
|
margin-left: 1rem;
|
|
932
712
|
}/* DO NOT CHANGE!*/
|
|
933
713
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
934
|
-
.eds-
|
|
935
|
-
|
|
936
|
-
border:
|
|
937
|
-
|
|
938
|
-
color:
|
|
939
|
-
|
|
714
|
+
.eds-form-control-wrapper {
|
|
715
|
+
--border-color: #181c56;
|
|
716
|
+
--border-color-hover: #aeb7e2;
|
|
717
|
+
align-items: center;
|
|
718
|
+
background-color: #ffffff;
|
|
719
|
+
border-radius: 0.25rem;
|
|
720
|
+
border: 0.125rem solid #d1d3d3;
|
|
721
|
+
box-shadow: 0 0 0 transparent;
|
|
722
|
+
color: #181c56;
|
|
940
723
|
display: flex;
|
|
941
|
-
|
|
724
|
+
position: relative;
|
|
725
|
+
width: 100%;
|
|
726
|
+
min-height: 3rem;
|
|
727
|
+
transition: border-color 0.1s ease-in-out;
|
|
728
|
+
--textarea-label-background: $colors-brand-white;
|
|
729
|
+
/*
|
|
730
|
+
Some input controls require a darker design while inside a contrast block.
|
|
731
|
+
These elements require the `--dark` modifier, even on the wrapper.
|
|
732
|
+
*/
|
|
733
|
+
}
|
|
734
|
+
.eds-contrast .eds-form-control-wrapper {
|
|
735
|
+
--border-color: #aeb7e2;
|
|
736
|
+
background-color: #ffffff;
|
|
737
|
+
border-color: #54568c;
|
|
738
|
+
}
|
|
739
|
+
.eds-form-control-wrapper[focus-within], .eds-form-control-wrapper:hover {
|
|
740
|
+
border-color: #181c56;
|
|
741
|
+
}
|
|
742
|
+
.eds-form-control-wrapper:focus-within, .eds-form-control-wrapper:hover {
|
|
743
|
+
border-color: #181c56;
|
|
744
|
+
}
|
|
745
|
+
.eds-contrast .eds-form-control-wrapper:hover {
|
|
746
|
+
border-color: #aeb7e2;
|
|
747
|
+
background: #ebebf1;
|
|
748
|
+
}
|
|
749
|
+
.eds-form-control-wrapper[focus-within] {
|
|
750
|
+
box-shadow: inset 0 0 0 1px var(--border-color);
|
|
751
|
+
}
|
|
752
|
+
.eds-form-control-wrapper:focus-within {
|
|
753
|
+
box-shadow: inset 0 0 0 1px var(--border-color);
|
|
754
|
+
}
|
|
755
|
+
.eds-contrast .eds-form-control-wrapper[focus-within] {
|
|
756
|
+
border-color: #181c56;
|
|
757
|
+
--border-color: #aeb7e2;
|
|
758
|
+
box-shadow: 0 0 0 0.125rem var(--border-color);
|
|
759
|
+
}
|
|
760
|
+
.eds-contrast .eds-form-control-wrapper:focus-within {
|
|
761
|
+
border-color: #181c56;
|
|
762
|
+
--border-color: #aeb7e2;
|
|
763
|
+
box-shadow: 0 0 0 0.125rem var(--border-color);
|
|
764
|
+
}
|
|
765
|
+
.eds-form-control-wrapper ::-moz-placeholder {
|
|
766
|
+
color: #656782;
|
|
767
|
+
}
|
|
768
|
+
.eds-form-control-wrapper :-ms-input-placeholder {
|
|
769
|
+
color: #656782;
|
|
770
|
+
}
|
|
771
|
+
.eds-form-control-wrapper ::placeholder {
|
|
772
|
+
color: #656782;
|
|
773
|
+
}
|
|
774
|
+
.eds-form-control-wrapper--disabled {
|
|
775
|
+
background-color: #e9e9e9;
|
|
776
|
+
color: #656782;
|
|
777
|
+
border-color: transparent;
|
|
778
|
+
pointer-events: none;
|
|
779
|
+
}
|
|
780
|
+
.eds-form-control-wrapper--disabled::before, .eds-form-control-wrapper--disabled::after {
|
|
781
|
+
display: none;
|
|
782
|
+
}
|
|
783
|
+
.eds-contrast .eds-form-control-wrapper--disabled {
|
|
784
|
+
background: #292b6a;
|
|
785
|
+
border-color: transparent;
|
|
786
|
+
color: #8285a8;
|
|
787
|
+
}
|
|
788
|
+
.eds-form-control-wrapper--readonly {
|
|
789
|
+
pointer-events: none;
|
|
790
|
+
cursor: default;
|
|
791
|
+
border-color: transparent;
|
|
792
|
+
background: #f8f8f8;
|
|
793
|
+
--textarea-label-background: $colors-greys-grey90;
|
|
794
|
+
}
|
|
795
|
+
.eds-contrast .eds-form-control-wrapper--readonly {
|
|
796
|
+
background: #292b6a;
|
|
797
|
+
--textarea-label-background: $colors-blues-blue10;
|
|
798
|
+
color: #ffffff;
|
|
799
|
+
border-color: transparent;
|
|
800
|
+
}
|
|
801
|
+
.eds-form-control-wrapper--readonly::before, .eds-form-control-wrapper--readonly::after {
|
|
802
|
+
display: none;
|
|
803
|
+
}
|
|
804
|
+
.eds-form-control-wrapper--size-medium .eds-form-control,
|
|
805
|
+
.eds-form-control-wrapper--size-medium .eds-form-control__append,
|
|
806
|
+
.eds-form-control-wrapper--size-medium .eds-form-control__prepend {
|
|
942
807
|
font-size: 1rem;
|
|
943
808
|
line-height: 1rem;
|
|
944
|
-
padding: 0.5rem;
|
|
945
|
-
margin-right: -0.75rem;
|
|
946
809
|
}
|
|
947
|
-
.eds-
|
|
948
|
-
|
|
949
|
-
|
|
810
|
+
.eds-form-control-wrapper--size-large {
|
|
811
|
+
min-height: 4rem;
|
|
812
|
+
padding: 0 0.5rem;
|
|
950
813
|
}
|
|
951
|
-
.eds-
|
|
952
|
-
|
|
814
|
+
.eds-form-control-wrapper--size-large::before, .eds-form-control-wrapper--size-large::after {
|
|
815
|
+
border-width: 0.25rem;
|
|
953
816
|
}
|
|
954
|
-
.eds-
|
|
955
|
-
|
|
956
|
-
|
|
817
|
+
.eds-form-control-wrapper--size-large .eds-form-control,
|
|
818
|
+
.eds-form-control-wrapper--size-large .eds-form-control__append,
|
|
819
|
+
.eds-form-control-wrapper--size-large .eds-form-control__prepend {
|
|
820
|
+
font-size: 1.5rem;
|
|
821
|
+
line-height: 2.25rem;
|
|
822
|
+
}
|
|
823
|
+
.eds-form-control-wrapper--success {
|
|
824
|
+
border-color: #1a8e60;
|
|
825
|
+
--border-color: #1a8e60;
|
|
826
|
+
}
|
|
827
|
+
.eds-form-control-wrapper--success:hover {
|
|
828
|
+
border-color: #5ac39a;
|
|
829
|
+
}
|
|
830
|
+
.eds-form-control-wrapper--success[focus-within] {
|
|
831
|
+
border-color: #1a8e60;
|
|
832
|
+
}
|
|
833
|
+
.eds-form-control-wrapper--success:focus-within {
|
|
834
|
+
border-color: #1a8e60;
|
|
835
|
+
}
|
|
836
|
+
.eds-contrast .eds-form-control-wrapper--success {
|
|
837
|
+
border-color: #5ac39a;
|
|
838
|
+
--border-color: #5ac39a;
|
|
839
|
+
}
|
|
840
|
+
.eds-contrast .eds-form-control-wrapper--success:hover {
|
|
841
|
+
border-color: #1a8e60;
|
|
842
|
+
}
|
|
843
|
+
.eds-contrast .eds-form-control-wrapper--success[focus-within] {
|
|
844
|
+
--border-color: #5ac39a;
|
|
845
|
+
border-color: #181c56;
|
|
846
|
+
}
|
|
847
|
+
.eds-contrast .eds-form-control-wrapper--success:focus-within {
|
|
848
|
+
--border-color: #5ac39a;
|
|
849
|
+
border-color: #181c56;
|
|
850
|
+
}
|
|
851
|
+
.eds-form-control-wrapper--error {
|
|
852
|
+
border-color: #d31b1b;
|
|
853
|
+
--border-color: #d31b1b;
|
|
854
|
+
}
|
|
855
|
+
.eds-form-control-wrapper--error:hover {
|
|
856
|
+
border-color: #ff9494;
|
|
857
|
+
}
|
|
858
|
+
.eds-form-control-wrapper--error[focus-within] {
|
|
859
|
+
border-color: #d31b1b;
|
|
860
|
+
}
|
|
861
|
+
.eds-form-control-wrapper--error:focus-within {
|
|
862
|
+
border-color: #d31b1b;
|
|
863
|
+
}
|
|
864
|
+
.eds-contrast .eds-form-control-wrapper--error {
|
|
865
|
+
border-color: #ff9494;
|
|
866
|
+
--border-color: #ff9494;
|
|
867
|
+
}
|
|
868
|
+
.eds-contrast .eds-form-control-wrapper--error:hover {
|
|
869
|
+
border-color: #d31b1b;
|
|
870
|
+
}
|
|
871
|
+
.eds-contrast .eds-form-control-wrapper--error[focus-within] {
|
|
872
|
+
border-color: #181c56;
|
|
873
|
+
--border-color: #ff9494;
|
|
874
|
+
}
|
|
875
|
+
.eds-contrast .eds-form-control-wrapper--error:focus-within {
|
|
876
|
+
border-color: #181c56;
|
|
877
|
+
--border-color: #ff9494;
|
|
878
|
+
}
|
|
879
|
+
.eds-contrast .eds-form-control-wrapper--dark {
|
|
880
|
+
background-color: #181c56;
|
|
881
|
+
color: #ffffff;
|
|
882
|
+
}
|
|
883
|
+
.eds-contrast .eds-form-control-wrapper--dark ::-moz-placeholder {
|
|
884
|
+
color: #aeb7e2;
|
|
885
|
+
}
|
|
886
|
+
.eds-contrast .eds-form-control-wrapper--dark :-ms-input-placeholder {
|
|
887
|
+
color: #aeb7e2;
|
|
888
|
+
}
|
|
889
|
+
.eds-contrast .eds-form-control-wrapper--dark ::placeholder {
|
|
890
|
+
color: #aeb7e2;
|
|
891
|
+
}
|
|
892
|
+
.eds-contrast .eds-form-control-wrapper--dark:hover {
|
|
893
|
+
border-color: #aeb7e2;
|
|
894
|
+
}
|
|
895
|
+
.eds-contrast .eds-form-control-wrapper--dark[focus-within] {
|
|
896
|
+
background-color: #292b6a;
|
|
897
|
+
border-color: #aeb7e2;
|
|
898
|
+
}
|
|
899
|
+
.eds-contrast .eds-form-control-wrapper--dark:focus-within {
|
|
900
|
+
background-color: #292b6a;
|
|
901
|
+
border-color: #aeb7e2;
|
|
902
|
+
}
|
|
903
|
+
.eds-contrast .eds-form-control-wrapper--dark * {
|
|
904
|
+
background-color: transparent;
|
|
905
|
+
color: inherit;
|
|
906
|
+
}
|
|
907
|
+
.eds-contrast .eds-form-control-wrapper--dark.eds-form-control-wrapper--disabled {
|
|
908
|
+
background-color: #292b6a;
|
|
909
|
+
color: #8285a8;
|
|
957
910
|
}
|
|
958
911
|
|
|
959
|
-
.eds-
|
|
960
|
-
|
|
912
|
+
.eds-form-control {
|
|
913
|
+
-webkit-appearance: none;
|
|
914
|
+
-moz-appearance: none;
|
|
915
|
+
appearance: none;
|
|
916
|
+
background-color: transparent;
|
|
917
|
+
border: 0;
|
|
918
|
+
color: inherit;
|
|
961
919
|
display: block;
|
|
962
|
-
|
|
963
|
-
height:
|
|
964
|
-
|
|
920
|
+
font-family: inherit;
|
|
921
|
+
line-height: 1rem;
|
|
922
|
+
font-size: 1rem;
|
|
923
|
+
padding: 20px 1rem 0.25rem;
|
|
924
|
+
width: 100%;
|
|
965
925
|
}
|
|
966
|
-
.eds-
|
|
967
|
-
|
|
926
|
+
.eds-form-control::-moz-placeholder {
|
|
927
|
+
opacity: 0;
|
|
928
|
+
-moz-transition: opacity 0.2s ease-in-out;
|
|
929
|
+
transition: opacity 0.2s ease-in-out;
|
|
930
|
+
}
|
|
931
|
+
.eds-form-control:-ms-input-placeholder {
|
|
932
|
+
opacity: 0;
|
|
933
|
+
-ms-transition: opacity 0.2s ease-in-out;
|
|
934
|
+
transition: opacity 0.2s ease-in-out;
|
|
935
|
+
}
|
|
936
|
+
.eds-form-control::placeholder {
|
|
937
|
+
opacity: 0;
|
|
938
|
+
transition: opacity 0.2s ease-in-out;
|
|
939
|
+
}
|
|
940
|
+
.eds-form-control:focus {
|
|
941
|
+
outline: none;
|
|
942
|
+
}
|
|
943
|
+
.eds-form-control:focus::-moz-placeholder {
|
|
944
|
+
opacity: 1;
|
|
945
|
+
}
|
|
946
|
+
.eds-form-control:focus:-ms-input-placeholder {
|
|
947
|
+
opacity: 1;
|
|
948
|
+
}
|
|
949
|
+
.eds-form-control:focus::placeholder {
|
|
950
|
+
opacity: 1;
|
|
951
|
+
}
|
|
952
|
+
.eds-form-control__prepend, .eds-form-control__append {
|
|
953
|
+
position: relative;
|
|
954
|
+
margin: 0 1rem;
|
|
955
|
+
line-height: inherit;
|
|
956
|
+
}
|
|
957
|
+
.eds-form-control__prepend--tooltip, .eds-form-control__append--tooltip {
|
|
958
|
+
position: static;
|
|
959
|
+
}
|
|
960
|
+
.eds-form-control__prepend svg, .eds-form-control__append svg {
|
|
961
|
+
top: 0.125rem;
|
|
962
|
+
}
|
|
963
|
+
.eds-form-control__prepend {
|
|
964
|
+
margin-right: 0;
|
|
965
|
+
}
|
|
966
|
+
.eds-form-control__append {
|
|
967
|
+
margin-left: 0;
|
|
968
968
|
}/* DO NOT CHANGE!*/
|
|
969
969
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
970
970
|
.eds-segmented-control {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@entur/form",
|
|
3
|
-
"version": "5.4.
|
|
3
|
+
"version": "5.4.6-alpha.0",
|
|
4
4
|
"license": "EUPL-1.2",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/form.esm.js",
|
|
@@ -27,12 +27,12 @@
|
|
|
27
27
|
"react-dom": ">=16.8.0"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@entur/icons": "^
|
|
30
|
+
"@entur/icons": "^5.0.1-alpha.0",
|
|
31
31
|
"@entur/tokens": "^3.4.1",
|
|
32
|
-
"@entur/tooltip": "^2.5.
|
|
33
|
-
"@entur/typography": "^1.7.0",
|
|
34
|
-
"@entur/utils": "^0.4.
|
|
32
|
+
"@entur/tooltip": "^2.5.18-alpha.0",
|
|
33
|
+
"@entur/typography": "^1.7.1-alpha.0",
|
|
34
|
+
"@entur/utils": "^0.4.6-alpha.0",
|
|
35
35
|
"classnames": "^2.3.1"
|
|
36
36
|
},
|
|
37
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "497df350c3af082f714f461c7089a1fec1b4f8c9"
|
|
38
38
|
}
|