@entur/form 8.1.9 → 8.2.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/styles.css +576 -572
  2. package/package.json +7 -7
package/dist/styles.css CHANGED
@@ -87,14 +87,12 @@
87
87
  .eds-contrast .eds-checkbox__container:active input:indeterminate + .eds-checkbox__icon {
88
88
  background-color: var(--components-form-checkbox-contrast-fill-selected);
89
89
  }
90
- .eds-checkbox__container:focus + .eds-checkbox__icon,
91
- .eds-checkbox__container :focus-within + .eds-checkbox__icon {
90
+ .eds-checkbox__container:has(:focus-visible) .eds-checkbox__icon {
92
91
  outline: 2px solid #181c56;
93
92
  outline-color: var(--basecolors-stroke-focus-standard);
94
93
  outline-offset: 0.125rem;
95
94
  }
96
- .eds-contrast .eds-checkbox__container:focus + .eds-checkbox__icon,
97
- .eds-contrast .eds-checkbox__container :focus-within + .eds-checkbox__icon {
95
+ .eds-contrast .eds-checkbox__container:has(:focus-visible) .eds-checkbox__icon {
98
96
  outline-color: var(--basecolors-stroke-focus-contrast);
99
97
  }
100
98
  .eds-checkbox--disabled {
@@ -143,293 +141,199 @@
143
141
  stroke-dashoffset: 0;
144
142
  }
145
143
  }
146
- .eds-fieldset {
147
- margin: 0;
148
- padding: 0;
149
- border: 0;
150
- }
151
144
  /* DO NOT CHANGE!*/
152
145
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
153
- .eds-input-group {
154
- color: inherit;
155
- display: block;
156
- position: relative;
157
- }
158
- .eds-input-group__label {
159
- color: var(--components-form-baseform-standard-text-label);
146
+ .eds-form-control__field-and-feedback-text {
160
147
  display: flex;
161
- font-size: 1rem;
162
- position: absolute;
163
- line-height: 1rem;
164
- height: 3rem;
165
- padding-left: 0;
166
- top: 1rem;
167
- 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;
168
- -webkit-user-select: none;
169
- -moz-user-select: none;
170
- user-select: none;
171
- pointer-events: none;
148
+ flex-direction: column;
149
+ height: -moz-fit-content;
150
+ height: fit-content;
151
+ width: 100%;
172
152
  }
173
- .eds-form-control-wrapper--is-filled .eds-input-group__label {
174
- top: 0.375rem;
175
- font-size: 0.75rem;
176
- line-height: 0.75rem;
177
- height: 10px;
178
- padding: 0;
153
+ .eds-form-control__field-and-feedback-text--has-tooltip {
154
+ padding-right: 2rem;
179
155
  }
180
- .eds-textarea__label .eds-form-control-wrapper--is-filled .eds-input-group__label {
181
- box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
182
- background: var(--textarea-label-background);
183
- width: calc(100% - 1rem - 1rem - 4px);
156
+ .eds-form-control-wrapper {
157
+ display: flex;
158
+ align-items: center;
159
+ position: relative;
160
+ flex: 1;
161
+ min-height: 3rem;
162
+ padding-left: 1rem;
163
+ padding-right: 1rem;
164
+ background-color: var(--components-form-baseform-standard-fill-default);
165
+ border-radius: 0.25rem;
166
+ border: 0.125rem solid var(--components-form-baseform-standard-border-default);
167
+ box-shadow: 0 0 0 transparent;
168
+ color: var(--components-form-baseform-standard-text-content);
169
+ transition: border-color 0.1s ease-in-out;
184
170
  }
185
- .eds-form-control-wrapper--is-filled.eds-form-control-wrapper--size-large .eds-input-group__label {
186
- top: 0.5rem;
187
- font-size: 0.875rem;
188
- line-height: 1rem;
189
- padding: 0;
171
+ .eds-form-control-wrapper:hover {
172
+ border-color: var(--components-form-baseform-standard-border-interactive);
190
173
  }
191
- .eds-form-control-wrapper--size-large .eds-input-group__label {
192
- top: 0.75rem;
193
- font-size: 1.5rem;
194
- line-height: 2.25rem;
174
+ .eds-contrast .eds-form-control-wrapper:hover {
175
+ border-color: var(--components-form-baseform-contrast-border-interactive);
195
176
  }
196
- .eds-input-group__label--filled {
197
- top: 0.375rem;
198
- font-size: 0.75rem;
199
- line-height: 0.75rem;
200
- height: 10px;
201
- padding: 0;
177
+ .eds-form-control-wrapper:focus-within {
178
+ border-color: var(--components-form-baseform-standard-border-interactive);
179
+ outline: 2px solid var(--components-form-baseform-standard-border-interactive);
202
180
  }
203
- .eds-textarea__label .eds-input-group__label--filled {
204
- box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
205
- background: var(--textarea-label-background);
206
- width: calc(100% - 1rem - 1rem - 4px);
181
+ .eds-contrast .eds-form-control-wrapper:focus-within {
182
+ border-color: var(--components-form-baseform-contrast-border-interactive);
183
+ outline-color: var(--components-form-baseform-contrast-border-interactive);
207
184
  }
208
- .eds-form-control-wrapper--size-large .eds-input-group__label--filled {
209
- top: 0.5rem;
210
- font-size: 0.875rem;
211
- line-height: 1rem;
212
- padding: 0;
185
+ .eds-form-control-wrapper ::-moz-placeholder {
186
+ color: var(--components-form-baseform-standard-text-label);
213
187
  }
214
-
215
- .eds-form-control-wrapper:focus-within .eds-input-group__label {
216
- top: 0.375rem;
217
- font-size: 0.75rem;
218
- line-height: 0.75rem;
219
- height: 10px;
220
- padding: 0;
188
+ .eds-form-control-wrapper ::placeholder {
189
+ color: var(--components-form-baseform-standard-text-label);
221
190
  }
222
- .eds-textarea__label .eds-form-control-wrapper:focus-within .eds-input-group__label {
223
- box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
224
- background: var(--textarea-label-background);
225
- width: calc(100% - 1rem - 1rem - 4px);
191
+ .eds-form-control-wrapper--disabled {
192
+ border-color: transparent;
193
+ background-color: var(--components-form-baseform-standard-fill-disabled);
194
+ pointer-events: none;
195
+ color: var(--components-form-baseform-standard-text-disabled);
226
196
  }
227
- .eds-form-control-wrapper--size-large:focus-within .eds-input-group__label {
228
- top: 0.5rem;
229
- font-size: 0.875rem;
230
- line-height: 1rem;
231
- padding: 0;
197
+ .eds-form-control-wrapper--disabled .eds-input-group__label {
198
+ color: var(--components-form-baseform-standard-text-disabled);
232
199
  }
233
- /* DO NOT CHANGE!*/
234
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
235
- .eds-form-component--radio__container {
236
- display: flex;
237
- justify-content: center;
238
- align-items: center;
239
- position: relative;
240
- cursor: pointer;
241
- height: 2rem;
242
- width: -moz-fit-content;
243
- width: fit-content;
244
- -webkit-user-select: none;
245
- -moz-user-select: none;
246
- user-select: none;
200
+ .eds-contrast .eds-form-control-wrapper--disabled {
201
+ border-color: transparent;
202
+ background-color: var(--components-form-baseform-contrast-fill-disabled);
203
+ color: var(--components-form-baseform-contrast-text-disabled);
247
204
  }
248
- .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio {
249
- background-color: var(--components-form-radio-standard-fill-hover);
205
+ .eds-contrast .eds-form-control-wrapper--disabled .eds-input-group__label {
206
+ color: var(--components-form-baseform-contrast-text-disabled);
250
207
  }
251
- .eds-contrast .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio {
252
- background-color: var(--components-form-radio-contrast-fill-hover);
208
+ .eds-form-control-wrapper--disabled::before, .eds-form-control-wrapper--disabled::after {
209
+ display: none;
253
210
  }
254
- .eds-form-component--radio__container input {
255
- position: absolute;
256
- opacity: 0;
257
- cursor: pointer;
258
- height: 0;
259
- width: 0;
211
+ .eds-form-control-wrapper--readonly {
212
+ border-color: transparent;
213
+ pointer-events: none;
214
+ cursor: default;
215
+ background: var(--components-form-baseform-standard-fill-readonly);
216
+ border: var(--components-form-baseform-standard-fill-readonly);
260
217
  }
261
- .eds-form-component--radio__container input:checked ~ .eds-form-component--radio__radio .eds-form-component--radio__circle {
262
- height: 0.625rem;
263
- width: 0.625rem;
218
+ .eds-contrast .eds-form-control-wrapper--readonly {
219
+ background: var(--components-form-baseform-contrast-fill-readonly);
220
+ color: var(--components-form-baseform-contrast-text-description);
221
+ border: var(--components-form-baseform-contrast-fill-readonly);
264
222
  }
265
- .eds-form-component--radio__container input:focus ~ .eds-form-component--radio__radio {
266
- outline: 2px solid #181c56;
267
- outline-color: var(--basecolors-stroke-focus-standard);
268
- outline-offset: 0.125rem;
223
+ .eds-contrast .eds-form-control-wrapper--readonly .eds-input-group__label {
224
+ color: var(--components-form-baseform-contrast-text-description);
269
225
  }
270
- .eds-contrast .eds-form-component--radio__container input:focus ~ .eds-form-component--radio__radio {
271
- outline-color: var(--basecolors-stroke-focus-contrast);
226
+ .eds-form-control-wrapper--readonly::before, .eds-form-control-wrapper--readonly::after {
227
+ display: none;
272
228
  }
273
- .eds-form-component--radio__container .eds-form-component--radio__radio {
274
- position: relative;
275
- height: 1.25rem;
276
- width: 1.25rem;
277
- margin-right: 1rem;
278
- background-color: var(--components-form-radio-standard-fill-default);
279
- border: 0.125rem solid var(--components-form-radio-standard-border);
280
- border-radius: 50%;
281
- display: flex;
282
- align-items: center;
283
- justify-content: center;
229
+ .eds-form-control-wrapper--size-medium .eds-form-control,
230
+ .eds-form-control-wrapper--size-medium .eds-form-control__append,
231
+ .eds-form-control-wrapper--size-medium .eds-form-control__prepend {
232
+ font-size: 1rem;
233
+ line-height: 1rem;
284
234
  }
285
- .eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio {
286
- background-color: var(--components-form-radio-contrast-fill-default);
287
- border-color: var(--components-form-radio-contrast-border);
235
+ .eds-form-control-wrapper--size-large {
236
+ min-height: 4rem;
288
237
  }
289
- .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled {
290
- background: var(--components-form-baseform-contrast-fill-disabled);
291
- border-color: var(--components-form-baseform-contrast-text-disabled);
292
- cursor: not-allowed;
238
+ .eds-form-control-wrapper--size-large .eds-form-control,
239
+ .eds-form-control-wrapper--size-large .eds-form-control__append,
240
+ .eds-form-control-wrapper--size-large .eds-form-control__prepend {
241
+ font-size: 1.5rem;
293
242
  }
294
- .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled:hover {
295
- border-color: var(--components-form-baseform-contrast-text-disabled);
243
+ .eds-form-control-wrapper--success {
244
+ border-color: var(--components-form-baseform-standard-border-success);
296
245
  }
297
- .eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled {
298
- background: var(--components-form-baseform-contrast-fill-disabled);
299
- border-color: var(--components-form-baseform-contrast-text-disabled);
246
+ .eds-form-control-wrapper--success:focus-within {
247
+ border-color: var(--components-form-baseform-standard-border-success);
248
+ outline-color: var(--components-form-baseform-standard-border-success);
300
249
  }
301
- .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled ~ .eds-form-component--radio__label {
302
- color: var(--components-form-baseform-contrast-text-disabled);
250
+ .eds-contrast .eds-form-control-wrapper--success {
251
+ border-color: var(--components-form-baseform-standard-border-success);
303
252
  }
304
- .eds-form-component--radio__container .eds-form-component--radio__radio .eds-form-component--radio__circle {
305
- display: block;
306
- width: 0;
307
- height: 0;
308
- border-radius: 50%;
309
- background-color: var(--components-form-radio-standard-fill-selected);
310
- transition: width 0.1s ease-in-out, height 0.1s ease-in-out;
253
+ .eds-contrast .eds-form-control-wrapper--success:focus-within {
254
+ border-color: var(--components-form-baseform-contrast-border-success);
255
+ outline-color: var(--components-form-baseform-contrast-border-success);
311
256
  }
312
- .eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio .eds-form-component--radio__circle {
313
- background-color: var(--components-form-radio-contrast-icon);
257
+ .eds-form-control-wrapper--error, .eds-form-control-wrapper--negative {
258
+ border-color: var(--components-form-baseform-standard-border-negative);
314
259
  }
315
- /* DO NOT CHANGE!*/
316
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
317
- .eds-switch {
318
- cursor: pointer;
319
- -webkit-user-select: none;
320
- -moz-user-select: none;
321
- user-select: none;
322
- padding: 0.5rem 0;
323
- width: -moz-fit-content;
324
- width: fit-content;
260
+ .eds-form-control-wrapper--error:focus-within, .eds-form-control-wrapper--negative:focus-within {
261
+ border-color: var(--components-form-baseform-standard-border-negative);
262
+ outline-color: var(--components-form-baseform-standard-border-negative);
325
263
  }
326
- .eds-switch input {
327
- opacity: 0;
328
- pointer-events: none;
329
- position: absolute;
264
+ .eds-contrast .eds-form-control-wrapper--error, .eds-contrast .eds-form-control-wrapper--negative {
265
+ border-color: var(--components-form-baseform-contrast-border-negative);
330
266
  }
331
- .eds-switch--right {
332
- display: flex;
333
- flex-direction: row;
334
- align-items: center;
267
+ .eds-contrast .eds-form-control-wrapper--error:focus-within, .eds-contrast .eds-form-control-wrapper--negative:focus-within {
268
+ border-color: var(--components-form-baseform-contrast-border-negative);
269
+ outline-color: var(--components-form-baseform-contrast-border-negative);
335
270
  }
336
- .eds-switch--bottom {
337
- display: flex;
338
- flex-direction: column;
339
- align-items: center;
271
+ .eds-contrast .eds-form-control .eds-tooltip {
272
+ background: var(--components-tooltip-tooltip-standard-fill);
273
+ color: var(--components-tooltip-tooltip-standard-text);
274
+ box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
340
275
  }
341
- .eds-switch__circle {
342
- border-radius: 50%;
343
- height: 1.25rem;
344
- width: 1.25rem;
345
- content: "";
346
- display: flex;
347
- align-items: center;
348
- justify-content: center;
349
- transition: left 0.1s ease-in-out, background-color 0.1s ease-in-out;
350
- box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
351
- background-color: var(--components-form-switch-standard-switch);
352
- top: 0.125rem;
353
- left: 0.125rem;
354
- position: relative;
355
- }
356
- .eds-switch__switch--large .eds-switch__circle {
357
- height: 1.75rem;
358
- width: 1.75rem;
359
- }
360
- .eds-contrast .eds-switch__circle {
361
- box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.5);
276
+ .eds-form-control .eds-tooltip::after {
277
+ background: var(--components-tooltip-tooltip-standard-fill);
362
278
  }
363
- .eds-switch__switch {
364
- position: relative;
365
- background-color: var(--components-form-switch-standard-fill-false);
366
- content: "";
279
+
280
+ .eds-form-control {
367
281
  display: block;
368
- transition: background-color 0.1s ease-in-out;
369
- height: 1.5rem;
370
- width: 3rem;
371
- border-radius: 1.5rem;
372
- box-shadow: inset 0px 2px 2px -1px rgba(0, 0, 0, 0.1);
373
- }
374
- .eds-contrast .eds-switch__switch {
375
- background-color: var(--components-form-switch-contrast-fill-false);
376
- }
377
- .eds-switch--right .eds-switch__switch {
378
- margin-right: 0.75rem;
379
- }
380
- .eds-switch__switch svg g,
381
- .eds-switch__switch path {
382
- fill: var(--components-form-switch-standard-icon-false);
383
- transition: fill ease-in-out 0.1s;
384
- }
385
- .eds-contrast .eds-switch__switch svg g,
386
- .eds-contrast .eds-switch__switch path {
387
- fill: var(--components-form-switch-contrast-icon-false);
388
- }
389
- :checked + .eds-switch__switch {
390
- background-color: var(--eds-switch-color);
391
- }
392
- :checked + .eds-switch__switch .eds-switch__circle {
393
- left: 1.625rem;
394
- }
395
- :checked + .eds-switch__switch .eds-switch__circle svg g,
396
- :checked + .eds-switch__switch .eds-switch__circle path {
397
- fill: var(--eds-switch-color);
282
+ -webkit-appearance: none;
283
+ -moz-appearance: none;
284
+ appearance: none;
285
+ width: 100%;
286
+ height: 100%;
287
+ padding: 20px 0rem 0.25rem;
288
+ font-family: inherit;
289
+ font-size: 1rem;
290
+ line-height: 1rem;
291
+ border: 0;
292
+ color: var(--components-form-baseform-standard-text-content);
293
+ background-color: transparent;
398
294
  }
399
- .eds-contrast :checked + .eds-switch__switch {
400
- background-color: var(--eds-switch-contrast-color);
295
+ .eds-form-control::-moz-placeholder {
296
+ opacity: 0;
297
+ -moz-transition: opacity 0.2s ease-in-out;
298
+ transition: opacity 0.2s ease-in-out;
401
299
  }
402
- :focus + .eds-switch__switch {
403
- outline: 2px solid #181c56;
404
- outline-color: var(--basecolors-stroke-focus-standard);
405
- outline-offset: 0.125rem;
300
+ .eds-form-control::placeholder {
301
+ opacity: 0;
302
+ transition: opacity 0.2s ease-in-out;
406
303
  }
407
- .eds-contrast :focus + .eds-switch__switch {
408
- outline-color: var(--basecolors-stroke-focus-contrast);
304
+ .eds-form-control:focus {
305
+ outline: none;
409
306
  }
410
- .eds-switch__switch--large {
411
- width: 3.75rem;
412
- height: 2rem;
413
- border-radius: 3.75rem;
307
+ .eds-form-control:focus::-moz-placeholder {
308
+ opacity: 1;
414
309
  }
415
- :checked + .eds-switch__switch--large .eds-switch__circle {
416
- left: 1.875rem;
310
+ .eds-form-control:focus::placeholder {
311
+ opacity: 1;
417
312
  }
418
- .eds-switch__switch--large svg {
313
+ .eds-form-control__prepend, .eds-form-control__append {
419
314
  position: relative;
420
- right: 0.05rem;
421
- }
422
- .eds-switch__label--large--right {
423
- font-size: 1rem;
315
+ line-height: inherit;
424
316
  }
425
- .eds-switch__label--large--bottom {
426
- font-size: 0.875rem;
317
+ .eds-form-control__prepend--tooltip, .eds-form-control__append--tooltip {
318
+ all: unset;
319
+ position: absolute;
320
+ display: flex;
321
+ align-items: center;
322
+ justify-content: center;
323
+ height: 1.5rem;
324
+ width: 1.5rem;
325
+ right: -2rem;
326
+ border-radius: 100%;
327
+ color: var(--primary-text-color);
328
+ cursor: pointer;
427
329
  }
428
- .eds-switch__label--medium--right {
429
- font-size: 0.875rem;
330
+ .eds-form-control__prepend {
331
+ margin-right: 0.75rem;
332
+ margin-left: 0;
430
333
  }
431
- .eds-switch__label--medium--bottom {
432
- font-size: 0.75rem;
334
+ .eds-form-control__append {
335
+ margin-right: 0;
336
+ margin-left: 0.75rem;
433
337
  }
434
338
  /* DO NOT CHANGE!*/
435
339
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
@@ -504,341 +408,92 @@
504
408
  .eds-contrast .eds-feedback-text__icon--warning circle {
505
409
  fill: var(--components-form-feedbacktext-warning-contrast-icon-symbol);
506
410
  }
411
+ .eds-fieldset {
412
+ margin: 0;
413
+ padding: 0;
414
+ border: 0;
415
+ }
507
416
  /* DO NOT CHANGE!*/
508
417
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
509
- .eds-input-panel:focus-within .eds-input-panel__container {
510
- outline: 2px solid #181c56;
511
- outline-color: var(--basecolors-stroke-focus-standard);
512
- outline-offset: 0.125rem;
513
- }
514
- .eds-contrast .eds-input-panel:focus-within .eds-input-panel__container {
515
- outline-color: var(--basecolors-stroke-focus-contrast);
418
+ .eds-input-group {
419
+ color: inherit;
420
+ display: block;
421
+ position: relative;
516
422
  }
517
- .eds-input-panel > input {
423
+ .eds-input-group__label {
424
+ color: var(--components-form-baseform-standard-text-label);
425
+ display: flex;
426
+ font-size: 1rem;
518
427
  position: absolute;
519
- opacity: 0;
520
- cursor: pointer;
521
- height: 0;
522
- width: 0;
523
- }
524
- .eds-input-panel > input:checked + .eds-input-panel__container {
525
- border-color: var(--components-form-basepanel-standard-border-selected);
526
- background: var(--components-form-basepanel-standard-fill-selected);
527
- }
528
- .eds-contrast .eds-input-panel > input:checked + .eds-input-panel__container {
529
- border-color: var(--components-form-basepanel-contrast-border-selected);
530
- background: var(--components-form-basepanel-contrast-fill-selected);
428
+ line-height: 1rem;
429
+ height: 3rem;
430
+ padding-left: 0;
431
+ top: 1rem;
432
+ 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;
433
+ -webkit-user-select: none;
434
+ -moz-user-select: none;
435
+ user-select: none;
436
+ pointer-events: none;
531
437
  }
532
- .eds-input-panel > input:checked + .eds-input-panel__container .eds-form-component--radio__circle {
533
- width: 0.75rem;
534
- height: 0.75rem;
438
+ .eds-form-control-wrapper--is-filled .eds-input-group__label {
439
+ top: 0.375rem;
440
+ font-size: 0.75rem;
441
+ line-height: 0.75rem;
442
+ height: 10px;
443
+ padding: 0;
535
444
  }
536
- .eds-contrast .eds-input-panel > input:checked + .eds-input-panel__container .eds-form-component--radio__circle {
537
- background-color: var(--components-form-radio-contrast-icon);
445
+ .eds-textarea__label .eds-form-control-wrapper--is-filled .eds-input-group__label {
446
+ box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
447
+ background: var(--textarea-label-background);
448
+ width: calc(100% - 1rem - 1rem - 4px);
538
449
  }
539
- .eds-input-panel > input:checked + .eds-input-panel__container:hover {
540
- background-color: var(--components-form-basepanel-standard-fill-hover);
541
- /* The following styling is needed to sync the inner checkbox/radiobutton's
542
- hover state styling with the inputPanel container */
450
+ .eds-form-control-wrapper--is-filled.eds-form-control-wrapper--size-large .eds-input-group__label {
451
+ top: 0.5rem;
452
+ font-size: 0.875rem;
453
+ line-height: 1rem;
454
+ padding: 0;
543
455
  }
544
- .eds-contrast .eds-input-panel > input:checked + .eds-input-panel__container:hover {
545
- background-color: var(--components-form-basepanel-contrast-fill-hover);
456
+ .eds-form-control-wrapper--size-large .eds-input-group__label {
457
+ top: 0.75rem;
458
+ font-size: 1.5rem;
459
+ line-height: 2.25rem;
546
460
  }
547
- .eds-input-panel > input:checked + .eds-input-panel__container:hover .eds-form-component--radio__radio {
548
- background-color: var(--components-form-basepanel-standard-fill-hover);
549
- border-color: var(--components-form-basepanel-standard-border-selected);
461
+ .eds-input-group__label--filled {
462
+ top: 0.375rem;
463
+ font-size: 0.75rem;
464
+ line-height: 0.75rem;
465
+ height: 10px;
466
+ padding: 0;
550
467
  }
551
- .eds-contrast .eds-input-panel > input:checked + .eds-input-panel__container:hover .eds-form-component--radio__radio {
552
- background-color: var(--components-form-basepanel-contrast-fill-hover);
553
- border-color: var(--components-form-basepanel-contrast-border-selected);
468
+ .eds-textarea__label .eds-input-group__label--filled {
469
+ box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
470
+ background: var(--textarea-label-background);
471
+ width: calc(100% - 1rem - 1rem - 4px);
554
472
  }
555
- .eds-input-panel > input:checked + .eds-input-panel__container:hover .eds-checkbox__icon {
556
- border-color: transparent;
473
+ .eds-form-control-wrapper--size-large .eds-input-group__label--filled {
474
+ top: 0.5rem;
475
+ font-size: 0.875rem;
476
+ line-height: 1rem;
477
+ padding: 0;
557
478
  }
558
- .eds-contrast .eds-input-panel > input:checked + .eds-input-panel__container:hover .eds-checkbox__icon {
559
- background-color: var(--components-form-checkbox-contrast-fill-selectedhover);
479
+
480
+ .eds-form-control-wrapper:focus-within .eds-input-group__label {
481
+ top: 0.375rem;
482
+ font-size: 0.75rem;
483
+ line-height: 0.75rem;
484
+ height: 10px;
485
+ padding: 0;
560
486
  }
561
- .eds-input-panel__container {
562
- background: var(--components-form-basepanel-standard-fill-default);
563
- border: 0.125rem solid var(--components-form-basepanel-standard-border-default);
564
- color: var(--components-form-basepanel-standard-text-accent);
565
- border-radius: 0.25rem;
566
- display: flex;
567
- flex-direction: column;
568
- justify-content: flex-start;
569
- min-width: 20rem;
570
- position: relative;
571
- padding: 1rem;
572
- -webkit-user-select: none;
573
- -moz-user-select: none;
574
- user-select: none;
575
- width: -moz-fit-content;
576
- width: fit-content;
577
- transition: background ease-in-out 0.1s, border-color ease-in-out 0.1s;
487
+ .eds-textarea__label .eds-form-control-wrapper:focus-within .eds-input-group__label {
488
+ box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
489
+ background: var(--textarea-label-background);
490
+ width: calc(100% - 1rem - 1rem - 4px);
578
491
  }
579
- .eds-contrast .eds-input-panel__container {
580
- background-color: var(--components-form-basepanel-contrast-fill-default);
581
- border-color: var(--components-form-basepanel-contrast-border-default);
582
- color: var(--components-form-basepanel-contrast-text-accent);
583
- }
584
- .eds-input-panel__container:hover {
585
- background-color: var(--components-form-basepanel-standard-fill-hover);
586
- /* The following styling is needed to sync the inner checkbox/radiobutton's
587
- hover state styling with the inputPanel container */
588
- }
589
- .eds-contrast .eds-input-panel__container:hover {
590
- background-color: var(--components-form-basepanel-contrast-fill-hover);
591
- }
592
- .eds-input-panel__container:hover .eds-checkbox__icon,
593
- .eds-input-panel__container:hover .eds-form-component--radio__radio {
594
- background-color: var(--components-form-basepanel-standard-fill-hover);
595
- border-color: var(--components-form-basepanel-standard-border-selected);
596
- }
597
- .eds-contrast .eds-input-panel__container:hover .eds-checkbox__icon,
598
- .eds-contrast .eds-input-panel__container:hover .eds-form-component--radio__radio {
599
- background-color: var(--components-form-basepanel-contrast-fill-hover);
600
- border-color: var(--components-form-basepanel-contrast-border-selected);
601
- }
602
- input:disabled + .eds-input-panel__container {
603
- background: var(--components-form-basepanel-standard-fill-disabled);
604
- border-color: var(--components-form-basepanel-standard-border-disabled);
605
- color: var(--components-form-basepanel-standard-text-disabled);
606
- cursor: not-allowed;
607
- }
608
- .eds-contrast input:disabled + .eds-input-panel__container {
609
- background: var(--components-form-basepanel-contrast-fill-disabled);
610
- border-style: dashed;
611
- border-color: var(--components-form-basepanel-contrast-border-disabled);
612
- color: var(--components-form-basepanel-contrast-text-disabled);
613
- }
614
- .eds-input-panel__container .eds-checkbox__icon,
615
- .eds-input-panel__container .eds-checkbox__icon .eds-checkbox__icon,
616
- .eds-input-panel__container .eds-form-component--radio__radio {
617
- width: 1.5rem;
618
- height: 1.5rem;
619
- margin-right: 0;
620
- }
621
- .eds-input-panel--medium .eds-input-panel__title {
622
- font-size: 1rem;
623
- font-weight: 500;
624
- }
625
- .eds-input-panel--medium.eds-input-panel__container {
626
- padding-bottom: 1rem;
627
- min-height: 3.75rem;
628
- }
629
- .eds-input-panel--large.eds-input-panel__container {
630
- min-height: 6rem;
631
- }
632
- .eds-input-panel--large .eds-input-panel__title {
633
- font-size: 1.25rem;
634
- font-weight: 500;
635
- line-height: 1.875rem;
636
- }
637
- .eds-input-panel__title-wrapper {
638
- display: flex;
639
- justify-content: space-between;
640
- align-items: center;
641
- }
642
- .eds-input-panel__secondary-label-and-icon-wrapper {
643
- display: flex;
644
- justify-content: center;
645
- align-items: center;
646
- gap: 0.75rem;
647
- }
648
- .eds-input-panel__secondary-label-and-icon-wrapper .eds-checkbox__container {
649
- margin: 0;
650
- }
651
- .eds-input-panel__additional-content {
652
- margin-top: 0.25rem;
653
- word-wrap: break-word;
654
- }
655
- /* DO NOT CHANGE!*/
656
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
657
- .eds-form-control__field-and-feedback-text {
658
- display: flex;
659
- flex-direction: column;
660
- height: -moz-fit-content;
661
- height: fit-content;
662
- width: 100%;
663
- }
664
- .eds-form-control__field-and-feedback-text--has-tooltip {
665
- padding-right: 2rem;
666
- }
667
- .eds-form-control-wrapper {
668
- display: flex;
669
- align-items: center;
670
- position: relative;
671
- flex: 1;
672
- min-height: 3rem;
673
- padding-left: 1rem;
674
- padding-right: 1rem;
675
- background-color: var(--components-form-baseform-standard-fill-default);
676
- border-radius: 0.25rem;
677
- border: 0.125rem solid var(--components-form-baseform-standard-border-default);
678
- box-shadow: 0 0 0 transparent;
679
- color: var(--components-form-baseform-standard-text-content);
680
- transition: border-color 0.1s ease-in-out;
681
- }
682
- .eds-form-control-wrapper:focus-within, .eds-form-control-wrapper:hover {
683
- border-color: var(--components-form-baseform-standard-border-interactive);
684
- }
685
- .eds-contrast .eds-form-control-wrapper:hover {
686
- border-color: var(--components-form-baseform-contrast-border-interactive);
687
- }
688
- .eds-form-control-wrapper:focus-within {
689
- outline: 1px solid var(--components-form-baseform-standard-border-interactive);
690
- }
691
- .eds-contrast .eds-form-control-wrapper:focus-within {
692
- outline: var(--components-form-baseform-contrast-border-interactive);
693
- }
694
- .eds-form-control-wrapper ::-moz-placeholder {
695
- color: var(--components-form-baseform-standard-text-label);
696
- }
697
- .eds-form-control-wrapper ::placeholder {
698
- color: var(--components-form-baseform-standard-text-label);
699
- }
700
- .eds-form-control-wrapper--disabled {
701
- border-color: transparent;
702
- background-color: var(--components-form-baseform-standard-fill-disabled);
703
- pointer-events: none;
704
- color: var(--components-form-baseform-standard-text-disabled);
705
- }
706
- .eds-form-control-wrapper--disabled .eds-input-group__label {
707
- color: var(--components-form-baseform-standard-text-disabled);
708
- }
709
- .eds-contrast .eds-form-control-wrapper--disabled {
710
- border-color: transparent;
711
- background-color: var(--components-form-baseform-contrast-fill-disabled);
712
- color: var(--components-form-baseform-contrast-text-disabled);
713
- }
714
- .eds-contrast .eds-form-control-wrapper--disabled .eds-input-group__label {
715
- color: var(--components-form-baseform-contrast-text-disabled);
716
- }
717
- .eds-form-control-wrapper--disabled::before, .eds-form-control-wrapper--disabled::after {
718
- display: none;
719
- }
720
- .eds-form-control-wrapper--readonly {
721
- border-color: transparent;
722
- pointer-events: none;
723
- cursor: default;
724
- background: var(--components-form-baseform-standard-fill-readonly);
725
- border: var(--components-form-baseform-standard-fill-readonly);
726
- }
727
- .eds-contrast .eds-form-control-wrapper--readonly {
728
- background: var(--components-form-baseform-contrast-fill-readonly);
729
- color: var(--components-form-baseform-contrast-text-description);
730
- border: var(--components-form-baseform-contrast-fill-readonly);
731
- }
732
- .eds-contrast .eds-form-control-wrapper--readonly .eds-input-group__label {
733
- color: var(--components-form-baseform-contrast-text-description);
734
- }
735
- .eds-form-control-wrapper--readonly::before, .eds-form-control-wrapper--readonly::after {
736
- display: none;
737
- }
738
- .eds-form-control-wrapper--size-medium .eds-form-control,
739
- .eds-form-control-wrapper--size-medium .eds-form-control__append,
740
- .eds-form-control-wrapper--size-medium .eds-form-control__prepend {
741
- font-size: 1rem;
742
- line-height: 1rem;
743
- }
744
- .eds-form-control-wrapper--size-large {
745
- min-height: 4rem;
746
- }
747
- .eds-form-control-wrapper--size-large .eds-form-control,
748
- .eds-form-control-wrapper--size-large .eds-form-control__append,
749
- .eds-form-control-wrapper--size-large .eds-form-control__prepend {
750
- font-size: 1.5rem;
751
- }
752
- .eds-form-control-wrapper--success {
753
- border-color: var(--components-form-baseform-standard-border-success);
754
- }
755
- .eds-form-control-wrapper--success:focus-within {
756
- border-color: var(--components-form-baseform-standard-border-success);
757
- }
758
- .eds-contrast .eds-form-control-wrapper--success {
759
- border-color: var(--components-form-baseform-standard-border-success);
760
- }
761
- .eds-contrast .eds-form-control-wrapper--success:focus-within {
762
- border-color: var(--components-form-baseform-contrast-border-success);
763
- }
764
- .eds-form-control-wrapper--error, .eds-form-control-wrapper--negative {
765
- border-color: var(--components-form-baseform-standard-border-negative);
766
- }
767
- .eds-form-control-wrapper--error:focus-within, .eds-form-control-wrapper--negative:focus-within {
768
- border-color: var(--components-form-baseform-standard-border-negative);
769
- }
770
- .eds-contrast .eds-form-control-wrapper--error, .eds-contrast .eds-form-control-wrapper--negative {
771
- border-color: var(--components-form-baseform-contrast-border-negative);
772
- }
773
- .eds-contrast .eds-form-control-wrapper--error:focus-within, .eds-contrast .eds-form-control-wrapper--negative:focus-within {
774
- border-color: var(--components-form-baseform-contrast-border-negative);
775
- }
776
- .eds-contrast .eds-form-control .eds-tooltip {
777
- background: var(--components-tooltip-tooltip-standard-fill);
778
- color: var(--components-tooltip-tooltip-standard-text);
779
- box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
780
- }
781
- .eds-form-control .eds-tooltip::after {
782
- background: var(--components-tooltip-tooltip-standard-fill);
783
- }
784
-
785
- .eds-form-control {
786
- display: block;
787
- -webkit-appearance: none;
788
- -moz-appearance: none;
789
- appearance: none;
790
- width: 100%;
791
- height: 100%;
792
- padding: 20px 0rem 0.25rem;
793
- font-family: inherit;
794
- font-size: 1rem;
795
- line-height: 1rem;
796
- border: 0;
797
- color: var(--components-form-baseform-standard-text-content);
798
- background-color: transparent;
799
- }
800
- .eds-form-control::-moz-placeholder {
801
- opacity: 0;
802
- -moz-transition: opacity 0.2s ease-in-out;
803
- transition: opacity 0.2s ease-in-out;
804
- }
805
- .eds-form-control::placeholder {
806
- opacity: 0;
807
- transition: opacity 0.2s ease-in-out;
808
- }
809
- .eds-form-control:focus {
810
- outline: none;
811
- }
812
- .eds-form-control:focus::-moz-placeholder {
813
- opacity: 1;
814
- }
815
- .eds-form-control:focus::placeholder {
816
- opacity: 1;
817
- }
818
- .eds-form-control__prepend, .eds-form-control__append {
819
- position: relative;
820
- line-height: inherit;
821
- }
822
- .eds-form-control__prepend--tooltip, .eds-form-control__append--tooltip {
823
- all: unset;
824
- position: absolute;
825
- display: flex;
826
- align-items: center;
827
- justify-content: center;
828
- height: 1.5rem;
829
- width: 1.5rem;
830
- right: -2rem;
831
- border-radius: 100%;
832
- color: var(--primary-text-color);
833
- cursor: pointer;
834
- }
835
- .eds-form-control__prepend {
836
- margin-right: 0.75rem;
837
- margin-left: 0;
838
- }
839
- .eds-form-control__append {
840
- margin-right: 0;
841
- margin-left: 0.75rem;
492
+ .eds-form-control-wrapper--size-large:focus-within .eds-input-group__label {
493
+ top: 0.5rem;
494
+ font-size: 0.875rem;
495
+ line-height: 1rem;
496
+ padding: 0;
842
497
  }
843
498
  /* DO NOT CHANGE!*/
844
499
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
@@ -1006,6 +661,355 @@ input:disabled + .eds-input-panel__container {
1006
661
  }
1007
662
  /* DO NOT CHANGE!*/
1008
663
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
664
+ .eds-switch {
665
+ cursor: pointer;
666
+ -webkit-user-select: none;
667
+ -moz-user-select: none;
668
+ user-select: none;
669
+ padding: 0.5rem 0;
670
+ width: -moz-fit-content;
671
+ width: fit-content;
672
+ }
673
+ .eds-switch input {
674
+ opacity: 0;
675
+ pointer-events: none;
676
+ position: absolute;
677
+ }
678
+ .eds-switch--right {
679
+ display: flex;
680
+ flex-direction: row;
681
+ align-items: center;
682
+ }
683
+ .eds-switch--bottom {
684
+ display: flex;
685
+ flex-direction: column;
686
+ align-items: center;
687
+ }
688
+ .eds-switch__circle {
689
+ border-radius: 50%;
690
+ height: 1.25rem;
691
+ width: 1.25rem;
692
+ content: "";
693
+ display: flex;
694
+ align-items: center;
695
+ justify-content: center;
696
+ transition: left 0.1s ease-in-out, background-color 0.1s ease-in-out;
697
+ box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
698
+ background-color: var(--components-form-switch-standard-switch);
699
+ top: 0.125rem;
700
+ left: 0.125rem;
701
+ position: relative;
702
+ }
703
+ .eds-switch__switch--large .eds-switch__circle {
704
+ height: 1.75rem;
705
+ width: 1.75rem;
706
+ }
707
+ .eds-contrast .eds-switch__circle {
708
+ box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.5);
709
+ }
710
+ .eds-switch__switch {
711
+ position: relative;
712
+ background-color: var(--components-form-switch-standard-fill-false);
713
+ content: "";
714
+ display: block;
715
+ transition: background-color 0.1s ease-in-out;
716
+ height: 1.5rem;
717
+ width: 3rem;
718
+ border-radius: 1.5rem;
719
+ box-shadow: inset 0px 2px 2px -1px rgba(0, 0, 0, 0.1);
720
+ }
721
+ .eds-contrast .eds-switch__switch {
722
+ background-color: var(--components-form-switch-contrast-fill-false);
723
+ }
724
+ .eds-switch--right .eds-switch__switch {
725
+ margin-right: 0.75rem;
726
+ }
727
+ .eds-switch__switch svg g,
728
+ .eds-switch__switch path {
729
+ fill: var(--components-form-switch-standard-icon-false);
730
+ transition: fill ease-in-out 0.1s;
731
+ }
732
+ .eds-contrast .eds-switch__switch svg g,
733
+ .eds-contrast .eds-switch__switch path {
734
+ fill: var(--components-form-switch-contrast-icon-false);
735
+ }
736
+ :checked + .eds-switch__switch {
737
+ background-color: var(--eds-switch-color);
738
+ }
739
+ :checked + .eds-switch__switch .eds-switch__circle {
740
+ left: 1.625rem;
741
+ }
742
+ :checked + .eds-switch__switch .eds-switch__circle svg g,
743
+ :checked + .eds-switch__switch .eds-switch__circle path {
744
+ fill: var(--eds-switch-color);
745
+ }
746
+ .eds-contrast :checked + .eds-switch__switch {
747
+ background-color: var(--eds-switch-contrast-color);
748
+ }
749
+ :focus-visible + .eds-switch__switch {
750
+ outline: 2px solid #181c56;
751
+ outline-color: var(--basecolors-stroke-focus-standard);
752
+ outline-offset: 0.125rem;
753
+ }
754
+ .eds-contrast :focus-visible + .eds-switch__switch {
755
+ outline-color: var(--basecolors-stroke-focus-contrast);
756
+ }
757
+ .eds-switch__switch--large {
758
+ width: 3.75rem;
759
+ height: 2rem;
760
+ border-radius: 3.75rem;
761
+ }
762
+ :checked + .eds-switch__switch--large .eds-switch__circle {
763
+ left: 1.875rem;
764
+ }
765
+ .eds-switch__switch--large svg {
766
+ position: relative;
767
+ right: 0.05rem;
768
+ }
769
+ .eds-switch__label--large--right {
770
+ font-size: 1rem;
771
+ }
772
+ .eds-switch__label--large--bottom {
773
+ font-size: 0.875rem;
774
+ }
775
+ .eds-switch__label--medium--right {
776
+ font-size: 0.875rem;
777
+ }
778
+ .eds-switch__label--medium--bottom {
779
+ font-size: 0.75rem;
780
+ }
781
+ /* DO NOT CHANGE!*/
782
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
783
+ .eds-form-component--radio__container {
784
+ display: flex;
785
+ justify-content: center;
786
+ align-items: center;
787
+ position: relative;
788
+ cursor: pointer;
789
+ height: 2rem;
790
+ width: -moz-fit-content;
791
+ width: fit-content;
792
+ -webkit-user-select: none;
793
+ -moz-user-select: none;
794
+ user-select: none;
795
+ }
796
+ .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio {
797
+ background-color: var(--components-form-radio-standard-fill-hover);
798
+ }
799
+ .eds-contrast .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio {
800
+ background-color: var(--components-form-radio-contrast-fill-hover);
801
+ }
802
+ .eds-form-component--radio__container input {
803
+ position: absolute;
804
+ opacity: 0;
805
+ cursor: pointer;
806
+ height: 0;
807
+ width: 0;
808
+ }
809
+ .eds-form-component--radio__container input:checked ~ .eds-form-component--radio__radio .eds-form-component--radio__circle {
810
+ height: 0.625rem;
811
+ width: 0.625rem;
812
+ }
813
+ .eds-form-component--radio__container input:focus-visible ~ .eds-form-component--radio__radio {
814
+ outline: 2px solid #181c56;
815
+ outline-color: var(--basecolors-stroke-focus-standard);
816
+ outline-offset: 0.125rem;
817
+ }
818
+ .eds-contrast .eds-form-component--radio__container input:focus-visible ~ .eds-form-component--radio__radio {
819
+ outline-color: var(--basecolors-stroke-focus-contrast);
820
+ }
821
+ .eds-form-component--radio__container .eds-form-component--radio__radio {
822
+ position: relative;
823
+ height: 1.25rem;
824
+ width: 1.25rem;
825
+ margin-right: 1rem;
826
+ background-color: var(--components-form-radio-standard-fill-default);
827
+ border: 0.125rem solid var(--components-form-radio-standard-border);
828
+ border-radius: 50%;
829
+ display: flex;
830
+ align-items: center;
831
+ justify-content: center;
832
+ }
833
+ .eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio {
834
+ background-color: var(--components-form-radio-contrast-fill-default);
835
+ border-color: var(--components-form-radio-contrast-border);
836
+ }
837
+ .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled {
838
+ background: var(--components-form-baseform-contrast-fill-disabled);
839
+ border-color: var(--components-form-baseform-contrast-text-disabled);
840
+ cursor: not-allowed;
841
+ }
842
+ .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled:hover {
843
+ border-color: var(--components-form-baseform-contrast-text-disabled);
844
+ }
845
+ .eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled {
846
+ background: var(--components-form-baseform-contrast-fill-disabled);
847
+ border-color: var(--components-form-baseform-contrast-text-disabled);
848
+ }
849
+ .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled ~ .eds-form-component--radio__label {
850
+ color: var(--components-form-baseform-contrast-text-disabled);
851
+ }
852
+ .eds-form-component--radio__container .eds-form-component--radio__radio .eds-form-component--radio__circle {
853
+ display: block;
854
+ width: 0;
855
+ height: 0;
856
+ border-radius: 50%;
857
+ background-color: var(--components-form-radio-standard-fill-selected);
858
+ transition: width 0.1s ease-in-out, height 0.1s ease-in-out;
859
+ }
860
+ .eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio .eds-form-component--radio__circle {
861
+ background-color: var(--components-form-radio-contrast-icon);
862
+ }
863
+ /* DO NOT CHANGE!*/
864
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
865
+ .eds-input-panel:has(:focus-visible) .eds-input-panel__container {
866
+ outline: 2px solid #181c56;
867
+ outline-color: var(--basecolors-stroke-focus-standard);
868
+ outline-offset: 0.125rem;
869
+ }
870
+ .eds-contrast .eds-input-panel:has(:focus-visible) .eds-input-panel__container {
871
+ outline-color: var(--basecolors-stroke-focus-contrast);
872
+ }
873
+ .eds-input-panel > input {
874
+ position: absolute;
875
+ opacity: 0;
876
+ cursor: pointer;
877
+ height: 0;
878
+ width: 0;
879
+ }
880
+ .eds-input-panel > input:checked + .eds-input-panel__container {
881
+ border-color: var(--components-form-basepanel-standard-border-selected);
882
+ background: var(--components-form-basepanel-standard-fill-selected);
883
+ }
884
+ .eds-contrast .eds-input-panel > input:checked + .eds-input-panel__container {
885
+ border-color: var(--components-form-basepanel-contrast-border-selected);
886
+ background: var(--components-form-basepanel-contrast-fill-selected);
887
+ }
888
+ .eds-input-panel > input:checked + .eds-input-panel__container .eds-form-component--radio__circle {
889
+ width: 0.75rem;
890
+ height: 0.75rem;
891
+ }
892
+ .eds-contrast .eds-input-panel > input:checked + .eds-input-panel__container .eds-form-component--radio__circle {
893
+ background-color: var(--components-form-radio-contrast-icon);
894
+ }
895
+ .eds-input-panel > input:checked + .eds-input-panel__container:hover {
896
+ background-color: var(--components-form-basepanel-standard-fill-hover);
897
+ /* The following styling is needed to sync the inner checkbox/radiobutton's
898
+ hover state styling with the inputPanel container */
899
+ }
900
+ .eds-contrast .eds-input-panel > input:checked + .eds-input-panel__container:hover {
901
+ background-color: var(--components-form-basepanel-contrast-fill-hover);
902
+ }
903
+ .eds-input-panel > input:checked + .eds-input-panel__container:hover .eds-form-component--radio__radio {
904
+ background-color: var(--components-form-basepanel-standard-fill-hover);
905
+ border-color: var(--components-form-basepanel-standard-border-selected);
906
+ }
907
+ .eds-contrast .eds-input-panel > input:checked + .eds-input-panel__container:hover .eds-form-component--radio__radio {
908
+ background-color: var(--components-form-basepanel-contrast-fill-hover);
909
+ border-color: var(--components-form-basepanel-contrast-border-selected);
910
+ }
911
+ .eds-input-panel > input:checked + .eds-input-panel__container:hover .eds-checkbox__icon {
912
+ border-color: transparent;
913
+ }
914
+ .eds-contrast .eds-input-panel > input:checked + .eds-input-panel__container:hover .eds-checkbox__icon {
915
+ background-color: var(--components-form-checkbox-contrast-fill-selectedhover);
916
+ }
917
+ .eds-input-panel__container {
918
+ background: var(--components-form-basepanel-standard-fill-default);
919
+ border: 0.125rem solid var(--components-form-basepanel-standard-border-default);
920
+ color: var(--components-form-basepanel-standard-text-accent);
921
+ border-radius: 0.25rem;
922
+ display: flex;
923
+ flex-direction: column;
924
+ justify-content: flex-start;
925
+ min-width: 20rem;
926
+ position: relative;
927
+ padding: 1rem;
928
+ -webkit-user-select: none;
929
+ -moz-user-select: none;
930
+ user-select: none;
931
+ width: -moz-fit-content;
932
+ width: fit-content;
933
+ transition: background ease-in-out 0.1s, border-color ease-in-out 0.1s;
934
+ }
935
+ .eds-contrast .eds-input-panel__container {
936
+ background-color: var(--components-form-basepanel-contrast-fill-default);
937
+ border-color: var(--components-form-basepanel-contrast-border-default);
938
+ color: var(--components-form-basepanel-contrast-text-accent);
939
+ }
940
+ .eds-input-panel__container:hover {
941
+ background-color: var(--components-form-basepanel-standard-fill-hover);
942
+ /* The following styling is needed to sync the inner checkbox/radiobutton's
943
+ hover state styling with the inputPanel container */
944
+ }
945
+ .eds-contrast .eds-input-panel__container:hover {
946
+ background-color: var(--components-form-basepanel-contrast-fill-hover);
947
+ }
948
+ .eds-input-panel__container:hover .eds-checkbox__icon,
949
+ .eds-input-panel__container:hover .eds-form-component--radio__radio {
950
+ background-color: var(--components-form-basepanel-standard-fill-hover);
951
+ border-color: var(--components-form-basepanel-standard-border-selected);
952
+ }
953
+ .eds-contrast .eds-input-panel__container:hover .eds-checkbox__icon,
954
+ .eds-contrast .eds-input-panel__container:hover .eds-form-component--radio__radio {
955
+ background-color: var(--components-form-basepanel-contrast-fill-hover);
956
+ border-color: var(--components-form-basepanel-contrast-border-selected);
957
+ }
958
+ input:disabled + .eds-input-panel__container {
959
+ background: var(--components-form-basepanel-standard-fill-disabled);
960
+ border-color: var(--components-form-basepanel-standard-border-disabled);
961
+ color: var(--components-form-basepanel-standard-text-disabled);
962
+ cursor: not-allowed;
963
+ }
964
+ .eds-contrast input:disabled + .eds-input-panel__container {
965
+ background: var(--components-form-basepanel-contrast-fill-disabled);
966
+ border-style: dashed;
967
+ border-color: var(--components-form-basepanel-contrast-border-disabled);
968
+ color: var(--components-form-basepanel-contrast-text-disabled);
969
+ }
970
+ .eds-input-panel__container .eds-checkbox__icon,
971
+ .eds-input-panel__container .eds-checkbox__icon .eds-checkbox__icon,
972
+ .eds-input-panel__container .eds-form-component--radio__radio {
973
+ width: 1.5rem;
974
+ height: 1.5rem;
975
+ margin-right: 0;
976
+ }
977
+ .eds-input-panel--medium .eds-input-panel__title {
978
+ font-size: 1rem;
979
+ font-weight: 500;
980
+ }
981
+ .eds-input-panel--medium.eds-input-panel__container {
982
+ padding-bottom: 1rem;
983
+ min-height: 3.75rem;
984
+ }
985
+ .eds-input-panel--large.eds-input-panel__container {
986
+ min-height: 6rem;
987
+ }
988
+ .eds-input-panel--large .eds-input-panel__title {
989
+ font-size: 1.25rem;
990
+ font-weight: 500;
991
+ line-height: 1.875rem;
992
+ }
993
+ .eds-input-panel__title-wrapper {
994
+ display: flex;
995
+ justify-content: space-between;
996
+ align-items: center;
997
+ }
998
+ .eds-input-panel__secondary-label-and-icon-wrapper {
999
+ display: flex;
1000
+ justify-content: center;
1001
+ align-items: center;
1002
+ gap: 0.75rem;
1003
+ }
1004
+ .eds-input-panel__secondary-label-and-icon-wrapper .eds-checkbox__container {
1005
+ margin: 0;
1006
+ }
1007
+ .eds-input-panel__additional-content {
1008
+ margin-top: 0.25rem;
1009
+ word-wrap: break-word;
1010
+ }
1011
+ /* DO NOT CHANGE!*/
1012
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
1009
1013
  .eds-textfield__clear-button {
1010
1014
  background: none;
1011
1015
  border: none;
@@ -1022,7 +1026,7 @@ input:disabled + .eds-input-panel__container {
1022
1026
  .eds-textfield__clear-button:hover {
1023
1027
  background: var(--components-form-basepanel-standard-fill-hover);
1024
1028
  }
1025
- .eds-textfield__clear-button:focus {
1029
+ .eds-textfield__clear-button:focus-visible {
1026
1030
  outline: 2px solid #181c56;
1027
1031
  outline-color: var(--basecolors-stroke-focus-standard);
1028
1032
  outline-offset: 0.125rem;
@@ -1112,20 +1116,20 @@ input:disabled + .eds-input-panel__container {
1112
1116
  box-shadow: 0 0.0625rem 0.1875rem rgb(57, 61, 121);
1113
1117
  color: var(--components-form-segmentedcontrol-contrast-text-selected);
1114
1118
  }
1115
- .eds-segmented-choice input:focus:not(:checked) + .eds-base-segmented {
1119
+ .eds-segmented-choice input:focus-visible:not(:checked) + .eds-base-segmented {
1116
1120
  outline: 2px solid #181c56;
1117
1121
  outline-color: var(--basecolors-stroke-focus-standard);
1118
1122
  outline-offset: 0.125rem;
1119
1123
  }
1120
- .eds-contrast .eds-segmented-choice input:focus:not(:checked) + .eds-base-segmented {
1124
+ .eds-contrast .eds-segmented-choice input:focus-visible:not(:checked) + .eds-base-segmented {
1121
1125
  outline-color: var(--basecolors-stroke-focus-contrast);
1122
1126
  }
1123
- .eds-segmented-choice input:focus:checked + .eds-base-segmented {
1127
+ .eds-segmented-choice input:focus-visible:checked + .eds-base-segmented {
1124
1128
  outline: 2px solid #181c56;
1125
1129
  outline-color: var(--basecolors-stroke-focus-standard);
1126
1130
  outline-offset: 0.125rem;
1127
1131
  }
1128
- .eds-contrast .eds-segmented-choice input:focus:checked + .eds-base-segmented {
1132
+ .eds-contrast .eds-segmented-choice input:focus-visible:checked + .eds-base-segmented {
1129
1133
  outline-color: var(--basecolors-stroke-focus-contrast);
1130
1134
  }
1131
1135
  /* DO NOT CHANGE!*/
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@entur/form",
3
- "version": "8.1.9",
3
+ "version": "8.2.0-beta.0",
4
4
  "license": "EUPL-1.2",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/form.esm.js",
@@ -27,16 +27,16 @@
27
27
  "react-dom": ">=16.8.0"
28
28
  },
29
29
  "dependencies": {
30
- "@entur/button": "^3.2.37",
31
- "@entur/icons": "^7.5.1",
32
- "@entur/tokens": "^3.17.4",
33
- "@entur/tooltip": "^5.1.5",
34
- "@entur/typography": "^1.8.50",
30
+ "@entur/button": "^3.3.0-beta.0",
31
+ "@entur/icons": "^7.6.0",
32
+ "@entur/tokens": "^3.17.5",
33
+ "@entur/tooltip": "^5.2.0-beta.0",
34
+ "@entur/typography": "^1.9.0-beta.0",
35
35
  "@entur/utils": "^0.12.2",
36
36
  "classnames": "^2.3.1"
37
37
  },
38
38
  "devDependencies": {
39
39
  "dts-cli": "2.0.5"
40
40
  },
41
- "gitHead": "835e1335b390f48b80379ae6c473ac89041a392a"
41
+ "gitHead": "6ee621529704e08c9814cda206da98c37a9f0689"
42
42
  }