@entur/form 5.3.5 → 5.3.6

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/styles.css CHANGED
@@ -2,377 +2,543 @@
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-feedback-text {
6
- display: flex;
7
- align-items: center;
8
- margin-top: 0.25rem;
9
- }
10
- .eds-feedback-text--info {
11
- padding-left: calc(1rem + 0.125rem);
5
+ .eds-fieldset {
6
+ margin: 0;
7
+ padding: 0;
8
+ border: 0;
12
9
  }
13
- .eds-feedback-text__text {
10
+ .eds-fieldset .eds-legend {
11
+ margin: 0 0 0.5rem;
12
+ }/* DO NOT CHANGE!*/
13
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
14
+ .eds-form-control-wrapper {
15
+ --border-color: #181c56;
16
+ --border-color-hover: #aeb7e2;
17
+ align-items: center;
18
+ background-color: #ffffff;
19
+ border-radius: 0.25rem;
20
+ border: 0.125rem solid #d1d3d3;
21
+ box-shadow: 0 0 0 transparent;
14
22
  color: #181c56;
15
- }
16
- .eds-contrast .eds-feedback-text__text {
17
- color: #ffffff;
18
- }
19
-
20
- .eds-feedback-text__icon {
21
- font-size: 1.5rem;
22
- min-height: 1.5rem;
23
- min-width: 1.5rem;
24
- padding-right: 0.5rem;
23
+ display: flex;
25
24
  position: relative;
26
- top: -0.1rem;
25
+ width: 100%;
26
+ min-height: 3rem;
27
+ transition: border-color 0.1s ease-in-out;
28
+ --textarea-label-background: $colors-brand-white;
29
+ /*
30
+ Some input controls require a darker design while inside a contrast block.
31
+ These elements require the `--dark` modifier, even on the wrapper.
32
+ */
27
33
  }
28
- .eds-feedback-text__icon--success {
29
- color: #1a8e60;
34
+ .eds-contrast .eds-form-control-wrapper {
35
+ --border-color: #aeb7e2;
36
+ background-color: #ffffff;
37
+ border-color: #54568c;
30
38
  }
31
- .eds-contrast .eds-feedback-text__icon--success {
32
- color: #5ac39a;
39
+ .eds-form-control-wrapper[focus-within], .eds-form-control-wrapper:hover {
40
+ border-color: #181c56;
33
41
  }
34
- .eds-feedback-text__icon--error {
35
- color: #d31b1b;
42
+ .eds-form-control-wrapper:focus-within, .eds-form-control-wrapper:hover {
43
+ border-color: #181c56;
36
44
  }
37
- .eds-contrast .eds-feedback-text__icon--error {
38
- color: #ff9494;
45
+ .eds-contrast .eds-form-control-wrapper:hover {
46
+ border-color: #aeb7e2;
47
+ background: #ebebf1;
39
48
  }
40
- .eds-feedback-text__icon--info {
41
- color: #0082b9;
49
+ .eds-form-control-wrapper[focus-within] {
50
+ box-shadow: inset 0 0 0 1px var(--border-color);
42
51
  }
43
- .eds-contrast .eds-feedback-text__icon--info {
44
- color: #64b3e7;
52
+ .eds-form-control-wrapper:focus-within {
53
+ box-shadow: inset 0 0 0 1px var(--border-color);
45
54
  }
46
- .eds-feedback-text__icon--warning.eds-icon__ValidationExclamationIcon {
47
- color: #ffca28;
55
+ .eds-contrast .eds-form-control-wrapper[focus-within] {
56
+ border-color: #181c56;
57
+ --border-color: #aeb7e2;
58
+ box-shadow: 0 0 0 0.125rem var(--border-color);
48
59
  }
49
- .eds-feedback-text__icon--warning.eds-icon__ValidationExclamationIcon circle {
50
- color: #181c56;
51
- fill-opacity: 1;
60
+ .eds-contrast .eds-form-control-wrapper:focus-within {
61
+ border-color: #181c56;
62
+ --border-color: #aeb7e2;
63
+ box-shadow: 0 0 0 0.125rem var(--border-color);
52
64
  }
53
- .eds-contrast .eds-feedback-text__icon--warning.eds-icon__ValidationExclamationIcon {
54
- color: #ffe082;
65
+ .eds-form-control-wrapper ::-moz-placeholder {
66
+ color: #656782;
55
67
  }
56
- .eds-contrast .eds-feedback-text__icon--warning.eds-icon__ValidationExclamationIcon circle {
57
- fill-opacity: 0;
58
- }/* DO NOT CHANGE!*/
59
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
60
- .eds-checkbox__container {
61
- display: flex;
62
- align-items: center;
63
- position: relative;
64
- -webkit-appearance: none;
65
- -moz-appearance: none;
66
- appearance: none;
67
- cursor: pointer;
68
- height: 2rem;
69
- -webkit-user-select: none;
70
- -moz-user-select: none;
71
- -ms-user-select: none;
72
- user-select: none;
73
- width: -webkit-fit-content;
74
- width: -moz-fit-content;
75
- width: fit-content;
68
+ .eds-form-control-wrapper :-ms-input-placeholder {
69
+ color: #656782;
76
70
  }
77
- .eds-checkbox__container--reduced-click-area {
78
- height: -webkit-fit-content;
79
- height: -moz-fit-content;
80
- height: fit-content;
71
+ .eds-form-control-wrapper ::placeholder {
72
+ color: #656782;
81
73
  }
82
- .eds-checkbox__container input {
83
- position: absolute;
84
- opacity: 0;
85
- height: 0;
86
- width: 0;
74
+ .eds-form-control-wrapper--disabled {
75
+ background-color: #e9e9e9;
76
+ color: #656782;
77
+ border-color: transparent;
78
+ pointer-events: none;
87
79
  }
88
- .eds-checkbox__container input:checked + .eds-checkbox__icon, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon {
89
- background-color: #181c56;
80
+ .eds-form-control-wrapper--disabled::before, .eds-form-control-wrapper--disabled::after {
81
+ display: none;
90
82
  }
91
- .eds-checkbox__container input:checked + .eds-checkbox__icon .eds-checkbox-icon, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon .eds-checkbox-icon {
92
- visibility: visible;
83
+ .eds-contrast .eds-form-control-wrapper--disabled {
84
+ background: #292b6a;
85
+ border-color: transparent;
86
+ color: #8285a8;
93
87
  }
94
- .eds-checkbox__container input:checked + .eds-checkbox__icon .eds-checkbox-icon__path, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon .eds-checkbox-icon__path {
95
- stroke: #ffffff;
96
- -webkit-animation: stroke ease-in-out 0.2s 0.1s forwards;
97
- animation: stroke ease-in-out 0.2s 0.1s forwards;
88
+ .eds-form-control-wrapper--readonly {
89
+ pointer-events: none;
90
+ cursor: default;
91
+ border-color: transparent;
92
+ background: #f8f8f8;
93
+ --textarea-label-background: $colors-greys-grey90;
98
94
  }
99
- .eds-checkbox__container input:checked + .eds-checkbox__icon--disabled, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon--disabled {
100
- opacity: 0.5;
95
+ .eds-contrast .eds-form-control-wrapper--readonly {
96
+ background: #292b6a;
97
+ --textarea-label-background: $colors-blues-blue10;
98
+ color: #ffffff;
99
+ border-color: transparent;
101
100
  }
102
- .eds-checkbox__container input:checked + .eds-checkbox__icon--disabled .eds-checkbox-icon__path, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon--disabled .eds-checkbox-icon__path {
103
- opacity: 0.5;
101
+ .eds-form-control-wrapper--readonly::before, .eds-form-control-wrapper--readonly::after {
102
+ display: none;
104
103
  }
105
- .eds-contrast .eds-checkbox__container input:checked + .eds-checkbox__icon, .eds-contrast .eds-checkbox__container input:indeterminate + .eds-checkbox__icon {
106
- background: #54568c;
104
+ .eds-form-control-wrapper--size-medium .eds-form-control,
105
+ .eds-form-control-wrapper--size-medium .eds-form-control__append,
106
+ .eds-form-control-wrapper--size-medium .eds-form-control__prepend {
107
+ font-size: 1rem;
108
+ line-height: 1rem;
107
109
  }
108
- .eds-checkbox__container:hover input + .eds-checkbox__icon {
109
- border-color: #54568c;
110
- background: #f3f3f3;
110
+ .eds-form-control-wrapper--size-large {
111
+ min-height: 4rem;
112
+ padding: 0 0.5rem;
111
113
  }
112
- .eds-contrast .eds-checkbox__container:hover input + .eds-checkbox__icon {
113
- border-color: #656782;
114
- background: #292b6a;
114
+ .eds-form-control-wrapper--size-large::before, .eds-form-control-wrapper--size-large::after {
115
+ border-width: 0.25rem;
115
116
  }
116
- .eds-checkbox__container:hover input:checked + .eds-checkbox__icon,
117
- .eds-checkbox__container:hover input:indeterminate + .eds-checkbox__icon {
118
- border-color: #54568c;
119
- background-color: #54568c;
117
+ .eds-form-control-wrapper--size-large .eds-form-control,
118
+ .eds-form-control-wrapper--size-large .eds-form-control__append,
119
+ .eds-form-control-wrapper--size-large .eds-form-control__prepend {
120
+ font-size: 1.5rem;
121
+ line-height: 2.25rem;
120
122
  }
121
- .eds-contrast .eds-checkbox__container:hover input:checked + .eds-checkbox__icon,
122
- .eds-contrast .eds-checkbox__container:hover input:indeterminate + .eds-checkbox__icon {
123
- background: #8285a8;
124
- border-color: #8285a8;
123
+ .eds-form-control-wrapper--success {
124
+ border-color: #1a8e60;
125
+ --border-color: #1a8e60;
125
126
  }
126
- .eds-checkbox__container:focus + .eds-checkbox__icon,
127
- .eds-checkbox__container [focus-within] + .eds-checkbox__icon {
128
- outline: none;
129
- box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
130
- outline-offset: 0.125rem;
127
+ .eds-form-control-wrapper--success:hover {
128
+ border-color: #5ac39a;
131
129
  }
132
- .eds-checkbox__container:focus + .eds-checkbox__icon,
133
- .eds-checkbox__container :focus-within + .eds-checkbox__icon {
134
- outline: none;
135
- box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
136
- outline-offset: 0.125rem;
130
+ .eds-form-control-wrapper--success[focus-within] {
131
+ border-color: #1a8e60;
137
132
  }
138
- .eds-contrast .eds-checkbox__container:focus + .eds-checkbox__icon,
139
- .eds-contrast .eds-checkbox__container [focus-within] + .eds-checkbox__icon {
140
- box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
133
+ .eds-form-control-wrapper--success:focus-within {
134
+ border-color: #1a8e60;
141
135
  }
142
- .eds-contrast .eds-checkbox__container:focus + .eds-checkbox__icon,
143
- .eds-contrast .eds-checkbox__container :focus-within + .eds-checkbox__icon {
144
- box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
136
+ .eds-contrast .eds-form-control-wrapper--success {
137
+ border-color: #5ac39a;
138
+ --border-color: #5ac39a;
145
139
  }
146
- .eds-checkbox--disabled {
147
- pointer-events: none;
140
+ .eds-contrast .eds-form-control-wrapper--success:hover {
141
+ border-color: #1a8e60;
148
142
  }
149
- .eds-checkbox--disabled .eds-checkbox__label {
150
- opacity: 0.5;
143
+ .eds-contrast .eds-form-control-wrapper--success[focus-within] {
144
+ --border-color: #5ac39a;
145
+ border-color: #181c56;
151
146
  }
152
- .eds-checkbox--disabled .eds-checkbox__icon {
153
- opacity: 0.5;
147
+ .eds-contrast .eds-form-control-wrapper--success:focus-within {
148
+ --border-color: #5ac39a;
149
+ border-color: #181c56;
154
150
  }
155
- .eds-checkbox__icon {
156
- display: inline-flex;
157
- justify-content: center;
158
- align-items: center;
159
- position: relative;
160
- margin-right: 1rem;
161
- height: 1.25rem;
162
- width: 1.25rem;
163
- border: 0.125rem solid #181c56;
164
- border-radius: 0.0625rem;
165
- background-color: transparent;
166
- color: #ffffff;
151
+ .eds-form-control-wrapper--error {
152
+ border-color: #d31b1b;
153
+ --border-color: #d31b1b;
167
154
  }
168
- .eds-checkbox__icon--reduced-click-area {
169
- margin-right: 0;
155
+ .eds-form-control-wrapper--error:hover {
156
+ border-color: #ff9494;
170
157
  }
171
- .eds-contrast .eds-checkbox__icon {
172
- border-color: #54568c;
158
+ .eds-form-control-wrapper--error[focus-within] {
159
+ border-color: #d31b1b;
173
160
  }
174
- .eds-checkbox__icon .eds-checkbox-icon {
175
- height: 1rem;
176
- width: 1rem;
177
- visibility: hidden;
178
- }
179
- .eds-checkbox__icon .eds-checkbox-icon__path {
180
- transform-origin: 50% 50%;
181
- stroke-dasharray: 48;
182
- stroke-dashoffset: 48;
183
- stroke-width: 0.375rem;
161
+ .eds-form-control-wrapper--error:focus-within {
162
+ border-color: #d31b1b;
184
163
  }
185
-
186
- @-webkit-keyframes stroke {
187
- 100% {
188
- stroke-dashoffset: 0;
189
- }
164
+ .eds-contrast .eds-form-control-wrapper--error {
165
+ border-color: #ff9494;
166
+ --border-color: #ff9494;
190
167
  }
191
-
192
- @keyframes stroke {
193
- 100% {
194
- stroke-dashoffset: 0;
195
- }
196
- }/* DO NOT CHANGE!*/
197
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
198
- .eds-input-group {
199
- color: inherit;
200
- display: block;
201
- position: relative;
168
+ .eds-contrast .eds-form-control-wrapper--error:hover {
169
+ border-color: #d31b1b;
202
170
  }
203
- .eds-input-group__label {
204
- color: #656782;
205
- display: flex;
206
- font-size: 1rem;
207
- position: absolute;
208
- line-height: 1rem;
209
- height: 3rem;
210
- padding: 1rem;
211
- padding-left: 0;
212
- margin-left: 1rem;
213
- top: -0.125rem;
214
- transition: top 0.2s ease-in-out, font-size 0.2s ease-in-out, padding 0.2s ease-in-out, line-height ease-in-out 0.2s;
215
- -webkit-user-select: none;
216
- -moz-user-select: none;
217
- -ms-user-select: none;
218
- user-select: none;
219
- pointer-events: none;
171
+ .eds-contrast .eds-form-control-wrapper--error[focus-within] {
172
+ border-color: #181c56;
173
+ --border-color: #ff9494;
220
174
  }
221
- .eds-form-control-wrapper--is-filled .eds-input-group__label {
222
- top: calc(0.5rem - 0.125rem);
223
- font-size: 0.75rem;
224
- line-height: 0.75rem;
225
- height: 10px;
226
- padding: 0;
227
- margin-left: 1rem;
175
+ .eds-contrast .eds-form-control-wrapper--error:focus-within {
176
+ border-color: #181c56;
177
+ --border-color: #ff9494;
228
178
  }
229
- .eds-textarea__label .eds-form-control-wrapper--is-filled .eds-input-group__label {
230
- box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
231
- background: var(--textarea-label-background);
232
- width: calc( 100% - 1rem - 1rem - 4px );
179
+ .eds-contrast .eds-form-control-wrapper--dark {
180
+ background-color: #181c56;
181
+ color: #ffffff;
233
182
  }
234
- .eds-form-control-wrapper--size-large .eds-form-control-wrapper--is-filled .eds-input-group__label {
235
- top: 0.5rem;
236
- font-size: 0.875rem;
237
- line-height: 1rem;
238
- padding: 0;
239
- margin-left: 1rem;
183
+ .eds-contrast .eds-form-control-wrapper--dark ::-moz-placeholder {
184
+ color: #aeb7e2;
240
185
  }
241
- .eds-contrast .eds-input-group__label {
242
- color: #8285a8;
186
+ .eds-contrast .eds-form-control-wrapper--dark :-ms-input-placeholder {
187
+ color: #aeb7e2;
243
188
  }
244
- .eds-contrast .eds-form-control-wrapper--dark .eds-input-group__label {
189
+ .eds-contrast .eds-form-control-wrapper--dark ::placeholder {
245
190
  color: #aeb7e2;
246
191
  }
247
- .eds-form-control-wrapper--size-large .eds-input-group__label {
248
- font-size: 1.5rem;
249
- line-height: 2.25rem;
250
- height: 4rem;
192
+ .eds-contrast .eds-form-control-wrapper--dark:hover {
193
+ border-color: #aeb7e2;
251
194
  }
252
- .eds-input-group__label--filled {
253
- top: calc(0.5rem - 0.125rem);
254
- font-size: 0.75rem;
255
- line-height: 0.75rem;
256
- height: 10px;
257
- padding: 0;
258
- margin-left: 1rem;
195
+ .eds-contrast .eds-form-control-wrapper--dark[focus-within] {
196
+ background-color: #292b6a;
197
+ border-color: #aeb7e2;
259
198
  }
260
- .eds-textarea__label .eds-input-group__label--filled {
261
- box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
262
- background: var(--textarea-label-background);
263
- width: calc( 100% - 1rem - 1rem - 4px );
199
+ .eds-contrast .eds-form-control-wrapper--dark:focus-within {
200
+ background-color: #292b6a;
201
+ border-color: #aeb7e2;
264
202
  }
265
- .eds-form-control-wrapper--size-large .eds-input-group__label--filled {
266
- top: 0.5rem;
267
- font-size: 0.875rem;
268
- line-height: 1rem;
269
- padding: 0;
270
- margin-left: 1rem;
203
+ .eds-contrast .eds-form-control-wrapper--dark * {
204
+ background-color: transparent;
205
+ color: inherit;
271
206
  }
272
- .eds-input-group__label-tooltip-icon {
273
- color: #0082b9;
274
- padding-left: 0.25rem;
275
- padding-right: 0.25rem;
276
- display: flex;
277
- align-items: center;
278
- cursor: help;
279
- font-size: 1rem;
207
+ .eds-contrast .eds-form-control-wrapper--dark.eds-form-control-wrapper--disabled {
208
+ background-color: #292b6a;
209
+ color: #8285a8;
280
210
  }
281
211
 
282
- .eds-form-control-wrapper[focus-within] .eds-input-group__label {
283
- top: calc(0.5rem - 0.125rem);
284
- font-size: 0.75rem;
285
- line-height: 0.75rem;
286
- height: 10px;
287
- padding: 0;
288
- margin-left: 1rem;
212
+ .eds-form-control {
213
+ -webkit-appearance: none;
214
+ -moz-appearance: none;
215
+ appearance: none;
216
+ background-color: transparent;
217
+ border: 0;
218
+ color: inherit;
219
+ display: block;
220
+ font-family: inherit;
221
+ line-height: 1rem;
222
+ font-size: 1rem;
223
+ padding: 20px 1rem 0.25rem;
224
+ width: 100%;
289
225
  }
290
-
291
- .eds-form-control-wrapper:focus-within .eds-input-group__label {
292
- top: calc(0.5rem - 0.125rem);
293
- font-size: 0.75rem;
294
- line-height: 0.75rem;
295
- height: 10px;
296
- padding: 0;
297
- margin-left: 1rem;
226
+ .eds-form-control::-moz-placeholder {
227
+ opacity: 0;
228
+ -moz-transition: opacity 0.2s ease-in-out;
229
+ transition: opacity 0.2s ease-in-out;
298
230
  }
299
- .eds-textarea__label .eds-form-control-wrapper[focus-within] .eds-input-group__label {
300
- box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
301
- background: var(--textarea-label-background);
302
- width: calc( 100% - 1rem - 1rem - 4px );
231
+ .eds-form-control:-ms-input-placeholder {
232
+ opacity: 0;
233
+ -ms-transition: opacity 0.2s ease-in-out;
234
+ transition: opacity 0.2s ease-in-out;
303
235
  }
304
- .eds-textarea__label .eds-form-control-wrapper:focus-within .eds-input-group__label {
305
- box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
306
- background: var(--textarea-label-background);
307
- width: calc( 100% - 1rem - 1rem - 4px );
236
+ .eds-form-control::placeholder {
237
+ opacity: 0;
238
+ transition: opacity 0.2s ease-in-out;
308
239
  }
309
- .eds-form-control-wrapper--size-large[focus-within] .eds-input-group__label {
310
- top: 0.5rem;
311
- font-size: 0.875rem;
312
- line-height: 1rem;
313
- padding: 0;
314
- margin-left: 1rem;
240
+ .eds-form-control:focus {
241
+ outline: none;
315
242
  }
316
- .eds-form-control-wrapper--size-large:focus-within .eds-input-group__label {
317
- top: 0.5rem;
318
- font-size: 0.875rem;
319
- line-height: 1rem;
320
- padding: 0;
321
- margin-left: 1rem;
322
- }/* DO NOT CHANGE!*/
323
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
324
- textarea.eds-form-control.eds-textarea {
325
- min-height: 7.75rem;
326
- resize: vertical;
327
- line-height: 1.5rem;
328
- }/* DO NOT CHANGE!*/
329
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
330
- .eds-fieldset {
331
- margin: 0;
332
- padding: 0;
333
- border: 0;
243
+ .eds-form-control:focus::-moz-placeholder {
244
+ opacity: 1;
334
245
  }
335
- .eds-fieldset .eds-legend {
336
- margin: 0 0 0.5rem;
246
+ .eds-form-control:focus:-ms-input-placeholder {
247
+ opacity: 1;
248
+ }
249
+ .eds-form-control:focus::placeholder {
250
+ opacity: 1;
251
+ }
252
+ .eds-form-control__prepend, .eds-form-control__append {
253
+ position: relative;
254
+ margin: 0 1rem;
255
+ line-height: inherit;
256
+ }
257
+ .eds-form-control__prepend--tooltip, .eds-form-control__append--tooltip {
258
+ position: static;
259
+ }
260
+ .eds-form-control__prepend svg, .eds-form-control__append svg {
261
+ top: 0.125rem;
262
+ }
263
+ .eds-form-control__prepend {
264
+ margin-right: 0;
265
+ }
266
+ .eds-form-control__append {
267
+ margin-left: 0;
337
268
  }/* DO NOT CHANGE!*/
338
269
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
339
- .eds-form-component--radio__container {
270
+ .eds-checkbox__container {
340
271
  display: flex;
341
- justify-content: center;
342
272
  align-items: center;
343
273
  position: relative;
274
+ -webkit-appearance: none;
275
+ -moz-appearance: none;
276
+ appearance: none;
344
277
  cursor: pointer;
345
278
  height: 2rem;
346
- width: -webkit-fit-content;
347
- width: -moz-fit-content;
348
- width: fit-content;
349
279
  -webkit-user-select: none;
350
280
  -moz-user-select: none;
351
281
  -ms-user-select: none;
352
282
  user-select: none;
283
+ width: -webkit-fit-content;
284
+ width: -moz-fit-content;
285
+ width: fit-content;
353
286
  }
354
- .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio {
355
- border-color: #54568c;
356
- }
357
- .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio .eds-form-component--radio__circle {
358
- background-color: #54568c;
359
- }
360
- .eds-contrast .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio {
361
- border-color: #8285a8;
362
- }
363
- .eds-contrast .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio .eds-form-component--radio__circle {
364
- background-color: #8285a8;
287
+ .eds-checkbox__container--reduced-click-area {
288
+ height: -webkit-fit-content;
289
+ height: -moz-fit-content;
290
+ height: fit-content;
365
291
  }
366
- .eds-form-component--radio__container input {
292
+ .eds-checkbox__container input {
367
293
  position: absolute;
368
294
  opacity: 0;
369
- cursor: pointer;
370
295
  height: 0;
371
296
  width: 0;
372
297
  }
373
- .eds-form-component--radio__container input:checked ~ .eds-form-component--radio__radio .eds-form-component--radio__circle {
374
- height: 0.625rem;
375
- width: 0.625rem;
298
+ .eds-checkbox__container input:checked + .eds-checkbox__icon, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon {
299
+ background-color: #181c56;
300
+ }
301
+ .eds-checkbox__container input:checked + .eds-checkbox__icon .eds-checkbox-icon, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon .eds-checkbox-icon {
302
+ visibility: visible;
303
+ }
304
+ .eds-checkbox__container input:checked + .eds-checkbox__icon .eds-checkbox-icon__path, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon .eds-checkbox-icon__path {
305
+ stroke: #ffffff;
306
+ -webkit-animation: stroke ease-in-out 0.2s 0.1s forwards;
307
+ animation: stroke ease-in-out 0.2s 0.1s forwards;
308
+ }
309
+ .eds-checkbox__container input:checked + .eds-checkbox__icon--disabled, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon--disabled {
310
+ opacity: 0.5;
311
+ }
312
+ .eds-checkbox__container input:checked + .eds-checkbox__icon--disabled .eds-checkbox-icon__path, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon--disabled .eds-checkbox-icon__path {
313
+ opacity: 0.5;
314
+ }
315
+ .eds-contrast .eds-checkbox__container input:checked + .eds-checkbox__icon, .eds-contrast .eds-checkbox__container input:indeterminate + .eds-checkbox__icon {
316
+ background: #54568c;
317
+ }
318
+ .eds-checkbox__container:hover input + .eds-checkbox__icon {
319
+ border-color: #54568c;
320
+ background: #f3f3f3;
321
+ }
322
+ .eds-contrast .eds-checkbox__container:hover input + .eds-checkbox__icon {
323
+ border-color: #656782;
324
+ background: #292b6a;
325
+ }
326
+ .eds-checkbox__container:hover input:checked + .eds-checkbox__icon,
327
+ .eds-checkbox__container:hover input:indeterminate + .eds-checkbox__icon {
328
+ border-color: #54568c;
329
+ background-color: #54568c;
330
+ }
331
+ .eds-contrast .eds-checkbox__container:hover input:checked + .eds-checkbox__icon,
332
+ .eds-contrast .eds-checkbox__container:hover input:indeterminate + .eds-checkbox__icon {
333
+ background: #8285a8;
334
+ border-color: #8285a8;
335
+ }
336
+ .eds-checkbox__container:focus + .eds-checkbox__icon,
337
+ .eds-checkbox__container [focus-within] + .eds-checkbox__icon {
338
+ outline: none;
339
+ box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
340
+ outline-offset: 0.125rem;
341
+ }
342
+ .eds-checkbox__container:focus + .eds-checkbox__icon,
343
+ .eds-checkbox__container :focus-within + .eds-checkbox__icon {
344
+ outline: none;
345
+ box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
346
+ outline-offset: 0.125rem;
347
+ }
348
+ .eds-contrast .eds-checkbox__container:focus + .eds-checkbox__icon,
349
+ .eds-contrast .eds-checkbox__container [focus-within] + .eds-checkbox__icon {
350
+ box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
351
+ }
352
+ .eds-contrast .eds-checkbox__container:focus + .eds-checkbox__icon,
353
+ .eds-contrast .eds-checkbox__container :focus-within + .eds-checkbox__icon {
354
+ box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
355
+ }
356
+ .eds-checkbox--disabled {
357
+ pointer-events: none;
358
+ }
359
+ .eds-checkbox--disabled .eds-checkbox__label {
360
+ opacity: 0.5;
361
+ }
362
+ .eds-checkbox--disabled .eds-checkbox__icon {
363
+ opacity: 0.5;
364
+ }
365
+ .eds-checkbox__icon {
366
+ display: inline-flex;
367
+ justify-content: center;
368
+ align-items: center;
369
+ position: relative;
370
+ margin-right: 1rem;
371
+ height: 1.25rem;
372
+ width: 1.25rem;
373
+ border: 0.125rem solid #181c56;
374
+ border-radius: 0.0625rem;
375
+ background-color: transparent;
376
+ color: #ffffff;
377
+ }
378
+ .eds-checkbox__icon--reduced-click-area {
379
+ margin-right: 0;
380
+ }
381
+ .eds-contrast .eds-checkbox__icon {
382
+ border-color: #54568c;
383
+ }
384
+ .eds-checkbox__icon .eds-checkbox-icon {
385
+ height: 1rem;
386
+ width: 1rem;
387
+ visibility: hidden;
388
+ }
389
+ .eds-checkbox__icon .eds-checkbox-icon__path {
390
+ transform-origin: 50% 50%;
391
+ stroke-dasharray: 48;
392
+ stroke-dashoffset: 48;
393
+ stroke-width: 0.375rem;
394
+ }
395
+
396
+ @-webkit-keyframes stroke {
397
+ 100% {
398
+ stroke-dashoffset: 0;
399
+ }
400
+ }
401
+
402
+ @keyframes stroke {
403
+ 100% {
404
+ stroke-dashoffset: 0;
405
+ }
406
+ }/* DO NOT CHANGE!*/
407
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
408
+ textarea.eds-form-control.eds-textarea {
409
+ min-height: 7.75rem;
410
+ resize: vertical;
411
+ line-height: 1.5rem;
412
+ }/* DO NOT CHANGE!*/
413
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
414
+ .eds-textfield__clear-button {
415
+ background: none;
416
+ border: none;
417
+ border-radius: 50%;
418
+ color: inherit;
419
+ cursor: pointer;
420
+ display: flex;
421
+ font: inherit;
422
+ font-size: 1rem;
423
+ line-height: 1rem;
424
+ padding: 0.5rem;
425
+ margin-right: -0.75rem;
426
+ }
427
+ .eds-textfield__clear-button-wrapper {
428
+ display: flex;
429
+ align-items: center;
430
+ }
431
+ .eds-textfield__clear-button:hover {
432
+ background: #f3f3f3;
433
+ }
434
+ .eds-textfield__clear-button:focus {
435
+ outline: none;
436
+ box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
437
+ }
438
+
439
+ .eds-textfield__divider {
440
+ content: "";
441
+ display: block;
442
+ background-color: #e9e9e9;
443
+ height: 1.5rem;
444
+ width: 1px;
445
+ }
446
+ .eds-contrast .eds-form-control-wrapper--disabled .eds-textfield__divider {
447
+ background-color: #8285a8;
448
+ }/* DO NOT CHANGE!*/
449
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
450
+ .eds-feedback-text {
451
+ display: flex;
452
+ align-items: center;
453
+ margin-top: 0.25rem;
454
+ }
455
+ .eds-feedback-text--info {
456
+ padding-left: calc(1rem + 0.125rem);
457
+ }
458
+ .eds-feedback-text__text {
459
+ color: #181c56;
460
+ }
461
+ .eds-contrast .eds-feedback-text__text {
462
+ color: #ffffff;
463
+ }
464
+
465
+ .eds-feedback-text__icon {
466
+ font-size: 1.5rem;
467
+ min-height: 1.5rem;
468
+ min-width: 1.5rem;
469
+ padding-right: 0.5rem;
470
+ position: relative;
471
+ top: -0.1rem;
472
+ }
473
+ .eds-feedback-text__icon--success {
474
+ color: #1a8e60;
475
+ }
476
+ .eds-contrast .eds-feedback-text__icon--success {
477
+ color: #5ac39a;
478
+ }
479
+ .eds-feedback-text__icon--error {
480
+ color: #d31b1b;
481
+ }
482
+ .eds-contrast .eds-feedback-text__icon--error {
483
+ color: #ff9494;
484
+ }
485
+ .eds-feedback-text__icon--info {
486
+ color: #0082b9;
487
+ }
488
+ .eds-contrast .eds-feedback-text__icon--info {
489
+ color: #64b3e7;
490
+ }
491
+ .eds-feedback-text__icon--warning.eds-icon__ValidationExclamationIcon {
492
+ color: #ffca28;
493
+ }
494
+ .eds-feedback-text__icon--warning.eds-icon__ValidationExclamationIcon circle {
495
+ color: #181c56;
496
+ fill-opacity: 1;
497
+ }
498
+ .eds-contrast .eds-feedback-text__icon--warning.eds-icon__ValidationExclamationIcon {
499
+ color: #ffe082;
500
+ }
501
+ .eds-contrast .eds-feedback-text__icon--warning.eds-icon__ValidationExclamationIcon circle {
502
+ fill-opacity: 0;
503
+ }/* DO NOT CHANGE!*/
504
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
505
+ .eds-form-component--radio__container {
506
+ display: flex;
507
+ justify-content: center;
508
+ align-items: center;
509
+ position: relative;
510
+ cursor: pointer;
511
+ height: 2rem;
512
+ width: -webkit-fit-content;
513
+ width: -moz-fit-content;
514
+ width: fit-content;
515
+ -webkit-user-select: none;
516
+ -moz-user-select: none;
517
+ -ms-user-select: none;
518
+ user-select: none;
519
+ }
520
+ .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio {
521
+ border-color: #54568c;
522
+ }
523
+ .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio .eds-form-component--radio__circle {
524
+ background-color: #54568c;
525
+ }
526
+ .eds-contrast .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio {
527
+ border-color: #8285a8;
528
+ }
529
+ .eds-contrast .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio .eds-form-component--radio__circle {
530
+ background-color: #8285a8;
531
+ }
532
+ .eds-form-component--radio__container input {
533
+ position: absolute;
534
+ opacity: 0;
535
+ cursor: pointer;
536
+ height: 0;
537
+ width: 0;
538
+ }
539
+ .eds-form-component--radio__container input:checked ~ .eds-form-component--radio__radio .eds-form-component--radio__circle {
540
+ height: 0.625rem;
541
+ width: 0.625rem;
376
542
  }
377
543
  .eds-form-component--radio__container input:focus ~ .eds-form-component--radio__radio {
378
544
  outline: none;
@@ -425,550 +591,384 @@ textarea.eds-form-control.eds-textarea {
425
591
  background-color: #aeb7e2;
426
592
  }/* DO NOT CHANGE!*/
427
593
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
428
- .eds-radio-panel__wrapper[focus-within] .eds-radio-panel__container {
429
- border-color: #181c56;
430
- box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
431
- }
432
- .eds-radio-panel__wrapper:focus-within .eds-radio-panel__container {
433
- border-color: #181c56;
434
- box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
435
- }
436
- .eds-contrast .eds-radio-panel__wrapper[focus-within] .eds-radio-panel__container {
437
- border-color: #ffffff;
438
- box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
439
- }
440
- .eds-contrast .eds-radio-panel__wrapper:focus-within .eds-radio-panel__container {
441
- border-color: #ffffff;
442
- box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
443
- }
444
- .eds-radio-panel__wrapper input {
445
- position: absolute;
446
- opacity: 0;
594
+ .eds-switch {
447
595
  cursor: pointer;
448
- height: 0;
449
- width: 0;
450
- }
451
- .eds-radio-panel__wrapper input:checked + .eds-radio-panel__container {
452
- border-color: #181c56;
453
- background: #f5f5f8;
454
- }
455
- .eds-contrast .eds-radio-panel__wrapper input:checked + .eds-radio-panel__container {
456
- border-color: #aeb7e2;
457
- background: #393d79;
458
- }
459
- .eds-radio-panel__wrapper input:checked + .eds-radio-panel__container .eds-radio-panel__check {
460
- background-color: #181c56;
461
- border-color: #181c56;
462
- }
463
- .eds-radio-panel__wrapper input:checked + .eds-radio-panel__container .eds-radio-panel__check .eds-checkbox-icon {
464
- visibility: visible;
465
- }
466
- .eds-radio-panel__wrapper input:checked + .eds-radio-panel__container .eds-radio-panel__check .eds-checkbox-icon__path {
467
- stroke: #5ac39a;
468
- -webkit-animation: stroke ease-in-out 0.2s 0.1s forwards;
469
- animation: stroke ease-in-out 0.2s 0.1s forwards;
470
- }
471
- .eds-radio-panel__wrapper input:checked + .eds-radio-panel__container .eds-radio-panel__check--disabled {
472
- opacity: 0.5;
473
- }
474
- .eds-radio-panel__wrapper input:checked + .eds-radio-panel__container .eds-radio-panel__check--disabled .eds-checkbox-icon__path {
475
- opacity: 0.5;
476
- }
477
- .eds-radio-panel__container {
478
- background: #ffffff;
479
- border: 0.125rem solid #d1d3d3;
480
- border-radius: 0.25rem;
481
- display: flex;
482
- flex-direction: column;
483
- justify-content: flex-start;
484
- min-width: 20rem;
485
- position: relative;
486
- padding: 1rem;
487
596
  -webkit-user-select: none;
488
597
  -moz-user-select: none;
489
598
  -ms-user-select: none;
490
599
  user-select: none;
600
+ padding: 0.5rem 0;
491
601
  width: -webkit-fit-content;
492
602
  width: -moz-fit-content;
493
603
  width: fit-content;
494
604
  }
495
- .eds-contrast .eds-radio-panel__container {
496
- background: #181c56;
497
- border-color: #54568c;
605
+ .eds-switch input {
606
+ opacity: 0;
607
+ pointer-events: none;
608
+ position: absolute;
498
609
  }
499
- .eds-radio-panel__title-wrapper {
610
+ .eds-switch--right {
500
611
  display: flex;
501
- justify-content: space-between;
612
+ flex-direction: row;
502
613
  align-items: center;
503
614
  }
504
- .eds-radio-panel__label {
615
+ .eds-switch--bottom {
505
616
  display: flex;
506
- justify-content: center;
617
+ flex-direction: column;
618
+ align-items: center;
507
619
  }
508
- .eds-radio-panel__check {
509
- height: 2rem;
510
- width: 2rem;
511
- margin-left: 1rem;
620
+ .eds-switch__circle {
512
621
  border-radius: 50%;
513
- border: 0.125rem solid #e9e9e9;
622
+ height: 1.25rem;
623
+ width: 1.25rem;
624
+ content: "";
514
625
  display: flex;
515
626
  align-items: center;
516
627
  justify-content: center;
517
- background: #ffffff;
518
- transition: background ease-in-out 0.1s, border-color ease-in-out 0.1s;
519
- }
520
- .eds-contrast .eds-radio-panel__check {
521
- background: #181c56;
522
- border-color: #54568c;
523
- }
524
- .eds-radio-panel__additional-content {
525
- margin-top: 0.25rem;
526
- word-wrap: break-word;
527
- }
528
- .eds-radio-panel--medium .eds-radio-panel__title {
529
- font-size: 1rem;
530
- font-weight: 500;
531
- }
532
- .eds-radio-panel--medium.eds-radio-panel__container {
533
- padding-bottom: 1rem;
534
- min-height: 3.75rem;
535
- }
536
- .eds-radio-panel--large.eds-radio-panel__container {
537
- min-height: 6.5rem;
538
- }
539
- .eds-radio-panel--large .eds-radio-panel__title-wrapper {
540
- height: 2rem;
541
- }
542
- .eds-radio-panel--large .eds-radio-panel__title {
543
- font-size: 1.25rem;
544
- font-weight: 500;
545
- line-height: 1.875rem;
546
- }
547
- .eds-radio-panel--disabled {
548
- background: #f3f3f3;
549
- border-color: #f3f3f3;
550
- color: #656782;
551
- }
552
- .eds-contrast .eds-radio-panel--disabled {
553
- background: #181c56;
554
- border-style: dashed;
555
- border-color: #54568c;
556
- color: #babbcf;
557
- }
558
-
559
- .eds-checkbox-icon {
560
- width: 1.5em;
561
- height: 1.5em;
562
- }
563
- .eds-checkbox-icon__path {
564
- transform-origin: 50% 50%;
565
- stroke-dasharray: 48;
566
- stroke-dashoffset: 48;
567
- stroke-width: 0.375rem;
568
- }/* DO NOT CHANGE!*/
569
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
570
- .eds-form-control-wrapper {
571
- --border-color: #181c56;
572
- --border-color-hover: #aeb7e2;
573
- align-items: center;
628
+ transition: left 0.1s ease-in-out, background-color 0.1s ease-in-out;
629
+ box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
574
630
  background-color: #ffffff;
575
- border-radius: 0.25rem;
576
- border: 0.125rem solid #d1d3d3;
577
- box-shadow: 0 0 0 transparent;
578
- color: #181c56;
579
- display: flex;
631
+ top: 0.125rem;
632
+ left: 0.125rem;
580
633
  position: relative;
581
- width: 100%;
582
- min-height: 3rem;
583
- transition: border-color 0.1s ease-in-out;
584
- --textarea-label-background: $colors-brand-white;
585
- /*
586
- Some input controls require a darker design while inside a contrast block.
587
- These elements require the `--dark` modifier, even on the wrapper.
588
- */
589
- }
590
- .eds-contrast .eds-form-control-wrapper {
591
- --border-color: #aeb7e2;
592
- background-color: #ffffff;
593
- border-color: #54568c;
594
634
  }
595
- .eds-form-control-wrapper[focus-within], .eds-form-control-wrapper:hover {
596
- border-color: #181c56;
597
- }
598
- .eds-form-control-wrapper:focus-within, .eds-form-control-wrapper:hover {
599
- border-color: #181c56;
600
- }
601
- .eds-contrast .eds-form-control-wrapper:hover {
602
- border-color: #aeb7e2;
603
- background: #ebebf1;
635
+ .eds-switch__switch--large .eds-switch__circle {
636
+ height: 1.75rem;
637
+ width: 1.75rem;
604
638
  }
605
- .eds-form-control-wrapper[focus-within] {
606
- box-shadow: inset 0 0 0 1px var(--border-color);
639
+ .eds-switch .eds-switch__switch svg g,
640
+ .eds-switch .eds-switch__switch path {
641
+ fill: #949494;
642
+ transition: fill ease-in-out 0.1s;
607
643
  }
608
- .eds-form-control-wrapper:focus-within {
609
- box-shadow: inset 0 0 0 1px var(--border-color);
644
+ .eds-switch__switch {
645
+ position: relative;
646
+ background-color: #d1d3d3;
647
+ content: "";
648
+ display: block;
649
+ transition: background-color 0.1s ease-in-out;
650
+ height: 1.5rem;
651
+ width: 3rem;
652
+ border-radius: 1.5rem;
610
653
  }
611
- .eds-contrast .eds-form-control-wrapper[focus-within] {
612
- border-color: #181c56;
613
- --border-color: #aeb7e2;
614
- box-shadow: 0 0 0 0.125rem var(--border-color);
654
+ .eds-switch--right .eds-switch__switch {
655
+ margin-right: 0.75rem;
615
656
  }
616
- .eds-contrast .eds-form-control-wrapper:focus-within {
617
- border-color: #181c56;
618
- --border-color: #aeb7e2;
619
- box-shadow: 0 0 0 0.125rem var(--border-color);
657
+ :checked + .eds-switch__switch {
658
+ background-color: var(--eds-switch-color);
620
659
  }
621
- .eds-form-control-wrapper ::-moz-placeholder {
622
- color: #656782;
660
+ :checked + .eds-switch__switch .eds-switch__circle {
661
+ left: 1.625rem;
623
662
  }
624
- .eds-form-control-wrapper :-ms-input-placeholder {
625
- color: #656782;
663
+ :checked + .eds-switch__switch .eds-switch__circle svg g,
664
+ :checked + .eds-switch__switch .eds-switch__circle path {
665
+ fill: var(--eds-switch-color);
626
666
  }
627
- .eds-form-control-wrapper ::placeholder {
628
- color: #656782;
667
+ .eds-contrast :checked + .eds-switch__switch .eds-switch__circle svg g,
668
+ .eds-contrast :checked + .eds-switch__switch .eds-switch__circle path {
669
+ fill: var(--eds-switch-color);
629
670
  }
630
- .eds-form-control-wrapper--disabled {
631
- background-color: #e9e9e9;
632
- color: #656782;
633
- border-color: transparent;
634
- pointer-events: none;
671
+ .eds-contrast :checked + .eds-switch__switch {
672
+ background-color: var(--eds-switch-contrast-color);
635
673
  }
636
- .eds-form-control-wrapper--disabled::before, .eds-form-control-wrapper--disabled::after {
637
- display: none;
674
+ :focus + .eds-switch__switch {
675
+ outline: none;
676
+ box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
677
+ outline-offset: 0.125rem;
638
678
  }
639
- .eds-contrast .eds-form-control-wrapper--disabled {
640
- background: #292b6a;
641
- border-color: transparent;
642
- color: #8285a8;
679
+ .eds-contrast :focus + .eds-switch__switch {
680
+ box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
643
681
  }
644
- .eds-form-control-wrapper--readonly {
645
- pointer-events: none;
646
- cursor: default;
647
- border-color: transparent;
648
- background: #f8f8f8;
649
- --textarea-label-background: $colors-greys-grey90;
682
+ .eds-contrast .eds-switch__switch {
683
+ background-color: #54568c;
650
684
  }
651
- .eds-contrast .eds-form-control-wrapper--readonly {
652
- background: #292b6a;
653
- --textarea-label-background: $colors-blues-blue10;
654
- color: #ffffff;
655
- border-color: transparent;
685
+ .eds-switch__switch--large {
686
+ width: 3.75rem;
687
+ height: 2rem;
688
+ border-radius: 3.75rem;
656
689
  }
657
- .eds-form-control-wrapper--readonly::before, .eds-form-control-wrapper--readonly::after {
658
- display: none;
690
+ :checked + .eds-switch__switch--large .eds-switch__circle {
691
+ left: 1.875rem;
659
692
  }
660
- .eds-form-control-wrapper--size-medium .eds-form-control,
661
- .eds-form-control-wrapper--size-medium .eds-form-control__append,
662
- .eds-form-control-wrapper--size-medium .eds-form-control__prepend {
693
+ .eds-switch__label--large--right {
663
694
  font-size: 1rem;
664
- line-height: 1rem;
665
- }
666
- .eds-form-control-wrapper--size-large {
667
- min-height: 4rem;
668
- padding: 0 0.5rem;
669
695
  }
670
- .eds-form-control-wrapper--size-large::before, .eds-form-control-wrapper--size-large::after {
671
- border-width: 0.25rem;
672
- }
673
- .eds-form-control-wrapper--size-large .eds-form-control,
674
- .eds-form-control-wrapper--size-large .eds-form-control__append,
675
- .eds-form-control-wrapper--size-large .eds-form-control__prepend {
676
- font-size: 1.5rem;
677
- line-height: 2.25rem;
678
- }
679
- .eds-form-control-wrapper--success {
680
- border-color: #1a8e60;
681
- --border-color: #1a8e60;
682
- }
683
- .eds-form-control-wrapper--success:hover {
684
- border-color: #5ac39a;
685
- }
686
- .eds-form-control-wrapper--success[focus-within] {
687
- border-color: #1a8e60;
688
- }
689
- .eds-form-control-wrapper--success:focus-within {
690
- border-color: #1a8e60;
691
- }
692
- .eds-contrast .eds-form-control-wrapper--success {
693
- border-color: #5ac39a;
694
- --border-color: #5ac39a;
696
+ .eds-switch__label--large--bottom {
697
+ font-size: 0.875rem;
695
698
  }
696
- .eds-contrast .eds-form-control-wrapper--success:hover {
697
- border-color: #1a8e60;
699
+ .eds-switch__label--medium--right {
700
+ font-size: 0.875rem;
698
701
  }
699
- .eds-contrast .eds-form-control-wrapper--success[focus-within] {
700
- --border-color: #5ac39a;
702
+ .eds-switch__label--medium--bottom {
703
+ font-size: 0.75rem;
704
+ }/* DO NOT CHANGE!*/
705
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
706
+ .eds-radio-panel__wrapper[focus-within] .eds-radio-panel__container {
701
707
  border-color: #181c56;
708
+ box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
702
709
  }
703
- .eds-contrast .eds-form-control-wrapper--success:focus-within {
704
- --border-color: #5ac39a;
710
+ .eds-radio-panel__wrapper:focus-within .eds-radio-panel__container {
705
711
  border-color: #181c56;
712
+ box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
706
713
  }
707
- .eds-form-control-wrapper--error {
708
- border-color: #d31b1b;
709
- --border-color: #d31b1b;
710
- }
711
- .eds-form-control-wrapper--error:hover {
712
- border-color: #ff9494;
713
- }
714
- .eds-form-control-wrapper--error[focus-within] {
715
- border-color: #d31b1b;
716
- }
717
- .eds-form-control-wrapper--error:focus-within {
718
- border-color: #d31b1b;
719
- }
720
- .eds-contrast .eds-form-control-wrapper--error {
721
- border-color: #ff9494;
722
- --border-color: #ff9494;
714
+ .eds-contrast .eds-radio-panel__wrapper[focus-within] .eds-radio-panel__container {
715
+ border-color: #ffffff;
716
+ box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
723
717
  }
724
- .eds-contrast .eds-form-control-wrapper--error:hover {
725
- border-color: #d31b1b;
718
+ .eds-contrast .eds-radio-panel__wrapper:focus-within .eds-radio-panel__container {
719
+ border-color: #ffffff;
720
+ box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
726
721
  }
727
- .eds-contrast .eds-form-control-wrapper--error[focus-within] {
728
- border-color: #181c56;
729
- --border-color: #ff9494;
722
+ .eds-radio-panel__wrapper input {
723
+ position: absolute;
724
+ opacity: 0;
725
+ cursor: pointer;
726
+ height: 0;
727
+ width: 0;
730
728
  }
731
- .eds-contrast .eds-form-control-wrapper--error:focus-within {
729
+ .eds-radio-panel__wrapper input:checked + .eds-radio-panel__container {
732
730
  border-color: #181c56;
733
- --border-color: #ff9494;
734
- }
735
- .eds-contrast .eds-form-control-wrapper--dark {
736
- background-color: #181c56;
737
- color: #ffffff;
738
- }
739
- .eds-contrast .eds-form-control-wrapper--dark ::-moz-placeholder {
740
- color: #aeb7e2;
741
- }
742
- .eds-contrast .eds-form-control-wrapper--dark :-ms-input-placeholder {
743
- color: #aeb7e2;
744
- }
745
- .eds-contrast .eds-form-control-wrapper--dark ::placeholder {
746
- color: #aeb7e2;
747
- }
748
- .eds-contrast .eds-form-control-wrapper--dark:hover {
749
- border-color: #aeb7e2;
750
- }
751
- .eds-contrast .eds-form-control-wrapper--dark[focus-within] {
752
- background-color: #292b6a;
753
- border-color: #aeb7e2;
731
+ background: #f5f5f8;
754
732
  }
755
- .eds-contrast .eds-form-control-wrapper--dark:focus-within {
756
- background-color: #292b6a;
733
+ .eds-contrast .eds-radio-panel__wrapper input:checked + .eds-radio-panel__container {
757
734
  border-color: #aeb7e2;
735
+ background: #393d79;
758
736
  }
759
- .eds-contrast .eds-form-control-wrapper--dark * {
760
- background-color: transparent;
761
- color: inherit;
762
- }
763
- .eds-contrast .eds-form-control-wrapper--dark.eds-form-control-wrapper--disabled {
764
- background-color: #292b6a;
765
- color: #8285a8;
766
- }
767
-
768
- .eds-form-control {
769
- -webkit-appearance: none;
770
- -moz-appearance: none;
771
- appearance: none;
772
- background-color: transparent;
773
- border: 0;
774
- color: inherit;
775
- display: block;
776
- font-family: inherit;
777
- line-height: 1rem;
778
- font-size: 1rem;
779
- padding: 20px 1rem 0.25rem;
780
- width: 100%;
781
- }
782
- .eds-form-control::-moz-placeholder {
783
- opacity: 0;
784
- -moz-transition: opacity 0.2s ease-in-out;
785
- transition: opacity 0.2s ease-in-out;
786
- }
787
- .eds-form-control:-ms-input-placeholder {
788
- opacity: 0;
789
- -ms-transition: opacity 0.2s ease-in-out;
790
- transition: opacity 0.2s ease-in-out;
791
- }
792
- .eds-form-control::placeholder {
793
- opacity: 0;
794
- transition: opacity 0.2s ease-in-out;
795
- }
796
- .eds-form-control:focus {
797
- outline: none;
798
- }
799
- .eds-form-control:focus::-moz-placeholder {
800
- opacity: 1;
801
- }
802
- .eds-form-control:focus:-ms-input-placeholder {
803
- opacity: 1;
804
- }
805
- .eds-form-control:focus::placeholder {
806
- opacity: 1;
807
- }
808
- .eds-form-control__prepend, .eds-form-control__append {
809
- position: relative;
810
- margin: 0 1rem;
811
- line-height: inherit;
812
- }
813
- .eds-form-control__prepend--tooltip, .eds-form-control__append--tooltip {
814
- position: static;
815
- }
816
- .eds-form-control__prepend svg, .eds-form-control__append svg {
817
- top: 0.125rem;
818
- }
819
- .eds-form-control__prepend {
820
- margin-right: 0;
821
- }
822
- .eds-form-control__append {
823
- margin-left: 0;
824
- }/* DO NOT CHANGE!*/
825
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
826
- .eds-textfield__clear-button {
827
- background: none;
828
- border: none;
829
- border-radius: 50%;
830
- color: inherit;
831
- cursor: pointer;
832
- display: flex;
833
- font: inherit;
834
- font-size: 1rem;
835
- line-height: 1rem;
836
- padding: 0.5rem;
837
- margin-right: -0.75rem;
737
+ .eds-radio-panel__wrapper input:checked + .eds-radio-panel__container .eds-radio-panel__check {
738
+ background-color: #181c56;
739
+ border-color: #181c56;
838
740
  }
839
- .eds-textfield__clear-button-wrapper {
840
- display: flex;
841
- align-items: center;
741
+ .eds-radio-panel__wrapper input:checked + .eds-radio-panel__container .eds-radio-panel__check .eds-checkbox-icon {
742
+ visibility: visible;
842
743
  }
843
- .eds-textfield__clear-button:hover {
844
- background: #f3f3f3;
744
+ .eds-radio-panel__wrapper input:checked + .eds-radio-panel__container .eds-radio-panel__check .eds-checkbox-icon__path {
745
+ stroke: #5ac39a;
746
+ -webkit-animation: stroke ease-in-out 0.2s 0.1s forwards;
747
+ animation: stroke ease-in-out 0.2s 0.1s forwards;
845
748
  }
846
- .eds-textfield__clear-button:focus {
847
- outline: none;
848
- box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
749
+ .eds-radio-panel__wrapper input:checked + .eds-radio-panel__container .eds-radio-panel__check--disabled {
750
+ opacity: 0.5;
849
751
  }
850
-
851
- .eds-textfield__divider {
852
- content: "";
853
- display: block;
854
- background-color: #e9e9e9;
855
- height: 1.5rem;
856
- width: 1px;
752
+ .eds-radio-panel__wrapper input:checked + .eds-radio-panel__container .eds-radio-panel__check--disabled .eds-checkbox-icon__path {
753
+ opacity: 0.5;
857
754
  }
858
- .eds-contrast .eds-form-control-wrapper--disabled .eds-textfield__divider {
859
- background-color: #8285a8;
860
- }/* DO NOT CHANGE!*/
861
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
862
- .eds-switch {
863
- cursor: pointer;
755
+ .eds-radio-panel__container {
756
+ background: #ffffff;
757
+ border: 0.125rem solid #d1d3d3;
758
+ border-radius: 0.25rem;
759
+ display: flex;
760
+ flex-direction: column;
761
+ justify-content: flex-start;
762
+ min-width: 20rem;
763
+ position: relative;
764
+ padding: 1rem;
864
765
  -webkit-user-select: none;
865
766
  -moz-user-select: none;
866
767
  -ms-user-select: none;
867
768
  user-select: none;
868
- padding: 0.5rem 0;
869
769
  width: -webkit-fit-content;
870
770
  width: -moz-fit-content;
871
771
  width: fit-content;
872
772
  }
873
- .eds-switch input {
874
- opacity: 0;
875
- pointer-events: none;
876
- position: absolute;
773
+ .eds-contrast .eds-radio-panel__container {
774
+ background: #181c56;
775
+ border-color: #54568c;
877
776
  }
878
- .eds-switch--right {
777
+ .eds-radio-panel__title-wrapper {
879
778
  display: flex;
880
- flex-direction: row;
779
+ justify-content: space-between;
881
780
  align-items: center;
882
781
  }
883
- .eds-switch--bottom {
782
+ .eds-radio-panel__label {
884
783
  display: flex;
885
- flex-direction: column;
886
- align-items: center;
784
+ justify-content: center;
887
785
  }
888
- .eds-switch__circle {
786
+ .eds-radio-panel__check {
787
+ height: 2rem;
788
+ width: 2rem;
789
+ margin-left: 1rem;
889
790
  border-radius: 50%;
890
- height: 1.25rem;
891
- width: 1.25rem;
892
- content: "";
791
+ border: 0.125rem solid #e9e9e9;
893
792
  display: flex;
894
793
  align-items: center;
895
794
  justify-content: center;
896
- transition: left 0.1s ease-in-out, background-color 0.1s ease-in-out;
897
- box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
898
- background-color: #ffffff;
899
- top: 0.125rem;
900
- left: 0.125rem;
901
- position: relative;
902
- }
903
- .eds-switch__switch--large .eds-switch__circle {
904
- height: 1.75rem;
905
- width: 1.75rem;
795
+ background: #ffffff;
796
+ transition: background ease-in-out 0.1s, border-color ease-in-out 0.1s;
906
797
  }
907
- .eds-switch .eds-switch__switch svg g,
908
- .eds-switch .eds-switch__switch path {
909
- fill: #949494;
910
- transition: fill ease-in-out 0.1s;
798
+ .eds-contrast .eds-radio-panel__check {
799
+ background: #181c56;
800
+ border-color: #54568c;
911
801
  }
912
- .eds-switch__switch {
913
- position: relative;
914
- background-color: #d1d3d3;
915
- content: "";
916
- display: block;
917
- transition: background-color 0.1s ease-in-out;
918
- height: 1.5rem;
919
- width: 3rem;
920
- border-radius: 1.5rem;
802
+ .eds-radio-panel__additional-content {
803
+ margin-top: 0.25rem;
804
+ word-wrap: break-word;
921
805
  }
922
- .eds-switch--right .eds-switch__switch {
923
- margin-right: 0.75rem;
806
+ .eds-radio-panel--medium .eds-radio-panel__title {
807
+ font-size: 1rem;
808
+ font-weight: 500;
924
809
  }
925
- :checked + .eds-switch__switch {
926
- background-color: var(--eds-switch-color);
810
+ .eds-radio-panel--medium.eds-radio-panel__container {
811
+ padding-bottom: 1rem;
812
+ min-height: 3.75rem;
927
813
  }
928
- :checked + .eds-switch__switch .eds-switch__circle {
929
- left: 1.625rem;
814
+ .eds-radio-panel--large.eds-radio-panel__container {
815
+ min-height: 6.5rem;
930
816
  }
931
- :checked + .eds-switch__switch .eds-switch__circle svg g,
932
- :checked + .eds-switch__switch .eds-switch__circle path {
933
- fill: var(--eds-switch-color);
817
+ .eds-radio-panel--large .eds-radio-panel__title-wrapper {
818
+ height: 2rem;
934
819
  }
935
- .eds-contrast :checked + .eds-switch__switch .eds-switch__circle svg g,
936
- .eds-contrast :checked + .eds-switch__switch .eds-switch__circle path {
937
- fill: var(--eds-switch-color);
820
+ .eds-radio-panel--large .eds-radio-panel__title {
821
+ font-size: 1.25rem;
822
+ font-weight: 500;
823
+ line-height: 1.875rem;
938
824
  }
939
- .eds-contrast :checked + .eds-switch__switch {
940
- background-color: var(--eds-switch-contrast-color);
825
+ .eds-radio-panel--disabled {
826
+ background: #f3f3f3;
827
+ border-color: #f3f3f3;
828
+ color: #656782;
941
829
  }
942
- :focus + .eds-switch__switch {
943
- outline: none;
944
- box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
945
- outline-offset: 0.125rem;
830
+ .eds-contrast .eds-radio-panel--disabled {
831
+ background: #181c56;
832
+ border-style: dashed;
833
+ border-color: #54568c;
834
+ color: #babbcf;
946
835
  }
947
- .eds-contrast :focus + .eds-switch__switch {
948
- box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
836
+
837
+ .eds-checkbox-icon {
838
+ width: 1.5em;
839
+ height: 1.5em;
949
840
  }
950
- .eds-contrast .eds-switch__switch {
951
- background-color: #54568c;
841
+ .eds-checkbox-icon__path {
842
+ transform-origin: 50% 50%;
843
+ stroke-dasharray: 48;
844
+ stroke-dashoffset: 48;
845
+ stroke-width: 0.375rem;
846
+ }/* DO NOT CHANGE!*/
847
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
848
+ .eds-input-group {
849
+ color: inherit;
850
+ display: block;
851
+ position: relative;
952
852
  }
953
- .eds-switch__switch--large {
954
- width: 3.75rem;
955
- height: 2rem;
956
- border-radius: 3.75rem;
853
+ .eds-input-group__label {
854
+ color: #656782;
855
+ display: flex;
856
+ font-size: 1rem;
857
+ position: absolute;
858
+ line-height: 1rem;
859
+ height: 3rem;
860
+ padding: 1rem;
861
+ padding-left: 0;
862
+ margin-left: 1rem;
863
+ top: -0.125rem;
864
+ transition: top 0.2s ease-in-out, font-size 0.2s ease-in-out, padding 0.2s ease-in-out, line-height ease-in-out 0.2s;
865
+ -webkit-user-select: none;
866
+ -moz-user-select: none;
867
+ -ms-user-select: none;
868
+ user-select: none;
869
+ pointer-events: none;
957
870
  }
958
- :checked + .eds-switch__switch--large .eds-switch__circle {
959
- left: 1.875rem;
871
+ .eds-form-control-wrapper--is-filled .eds-input-group__label {
872
+ top: calc(0.5rem - 0.125rem);
873
+ font-size: 0.75rem;
874
+ line-height: 0.75rem;
875
+ height: 10px;
876
+ padding: 0;
877
+ margin-left: 1rem;
960
878
  }
961
- .eds-switch__label--large--right {
962
- font-size: 1rem;
879
+ .eds-textarea__label .eds-form-control-wrapper--is-filled .eds-input-group__label {
880
+ box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
881
+ background: var(--textarea-label-background);
882
+ width: calc( 100% - 1rem - 1rem - 4px );
963
883
  }
964
- .eds-switch__label--large--bottom {
884
+ .eds-form-control-wrapper--size-large .eds-form-control-wrapper--is-filled .eds-input-group__label {
885
+ top: 0.5rem;
965
886
  font-size: 0.875rem;
887
+ line-height: 1rem;
888
+ padding: 0;
889
+ margin-left: 1rem;
966
890
  }
967
- .eds-switch__label--medium--right {
891
+ .eds-contrast .eds-input-group__label {
892
+ color: #8285a8;
893
+ }
894
+ .eds-contrast .eds-form-control-wrapper--dark .eds-input-group__label {
895
+ color: #aeb7e2;
896
+ }
897
+ .eds-form-control-wrapper--size-large .eds-input-group__label {
898
+ font-size: 1.5rem;
899
+ line-height: 2.25rem;
900
+ height: 4rem;
901
+ }
902
+ .eds-input-group__label--filled {
903
+ top: calc(0.5rem - 0.125rem);
904
+ font-size: 0.75rem;
905
+ line-height: 0.75rem;
906
+ height: 10px;
907
+ padding: 0;
908
+ margin-left: 1rem;
909
+ }
910
+ .eds-textarea__label .eds-input-group__label--filled {
911
+ box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
912
+ background: var(--textarea-label-background);
913
+ width: calc( 100% - 1rem - 1rem - 4px );
914
+ }
915
+ .eds-form-control-wrapper--size-large .eds-input-group__label--filled {
916
+ top: 0.5rem;
968
917
  font-size: 0.875rem;
918
+ line-height: 1rem;
919
+ padding: 0;
920
+ margin-left: 1rem;
969
921
  }
970
- .eds-switch__label--medium--bottom {
922
+ .eds-input-group__label-tooltip-icon {
923
+ color: #0082b9;
924
+ padding-left: 0.25rem;
925
+ padding-right: 0.25rem;
926
+ display: flex;
927
+ align-items: center;
928
+ cursor: help;
929
+ font-size: 1rem;
930
+ }
931
+
932
+ .eds-form-control-wrapper[focus-within] .eds-input-group__label {
933
+ top: calc(0.5rem - 0.125rem);
934
+ font-size: 0.75rem;
935
+ line-height: 0.75rem;
936
+ height: 10px;
937
+ padding: 0;
938
+ margin-left: 1rem;
939
+ }
940
+
941
+ .eds-form-control-wrapper:focus-within .eds-input-group__label {
942
+ top: calc(0.5rem - 0.125rem);
971
943
  font-size: 0.75rem;
944
+ line-height: 0.75rem;
945
+ height: 10px;
946
+ padding: 0;
947
+ margin-left: 1rem;
948
+ }
949
+ .eds-textarea__label .eds-form-control-wrapper[focus-within] .eds-input-group__label {
950
+ box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
951
+ background: var(--textarea-label-background);
952
+ width: calc( 100% - 1rem - 1rem - 4px );
953
+ }
954
+ .eds-textarea__label .eds-form-control-wrapper:focus-within .eds-input-group__label {
955
+ box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
956
+ background: var(--textarea-label-background);
957
+ width: calc( 100% - 1rem - 1rem - 4px );
958
+ }
959
+ .eds-form-control-wrapper--size-large[focus-within] .eds-input-group__label {
960
+ top: 0.5rem;
961
+ font-size: 0.875rem;
962
+ line-height: 1rem;
963
+ padding: 0;
964
+ margin-left: 1rem;
965
+ }
966
+ .eds-form-control-wrapper--size-large:focus-within .eds-input-group__label {
967
+ top: 0.5rem;
968
+ font-size: 0.875rem;
969
+ line-height: 1rem;
970
+ padding: 0;
971
+ margin-left: 1rem;
972
972
  }/* DO NOT CHANGE!*/
973
973
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
974
974
  .eds-segmented-control {