@entur/form 5.4.2 → 5.4.3

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