@entur/form 7.0.20 → 7.0.22

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