@entur/form 8.2.2-beta.0 → 8.2.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.
Files changed (2) hide show
  1. package/dist/styles.css +488 -471
  2. package/package.json +7 -7
package/dist/styles.css CHANGED
@@ -71,230 +71,10 @@
71
71
  .eds-contrast .eds-feedback-text__icon--warning circle {
72
72
  fill: var(--components-form-feedbacktext-warning-contrast-icon-symbol);
73
73
  }
74
- /* DO NOT CHANGE!*/
75
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
76
- .eds-input-group {
77
- color: inherit;
78
- display: block;
79
- position: relative;
80
- }
81
- .eds-input-group__label {
82
- color: var(--components-form-baseform-standard-text-label);
83
- display: flex;
84
- font-size: 1rem;
85
- position: absolute;
86
- line-height: 1rem;
87
- height: 3rem;
88
- padding-left: 0;
89
- top: 1rem;
90
- 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;
91
- -webkit-user-select: none;
92
- -moz-user-select: none;
93
- user-select: none;
94
- pointer-events: none;
95
- }
96
- .eds-form-control-wrapper--is-filled .eds-input-group__label {
97
- top: 0.375rem;
98
- font-size: 0.75rem;
99
- line-height: 0.75rem;
100
- height: 10px;
101
- padding: 0;
102
- }
103
- .eds-textarea__label .eds-form-control-wrapper--is-filled .eds-input-group__label {
104
- box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
105
- background: var(--textarea-label-background);
106
- width: calc(100% - 1rem - 1rem - 4px);
107
- }
108
- .eds-form-control-wrapper--is-filled.eds-form-control-wrapper--size-large .eds-input-group__label {
109
- top: 0.5rem;
110
- font-size: 0.875rem;
111
- line-height: 1rem;
112
- padding: 0;
113
- }
114
- .eds-form-control-wrapper--size-large .eds-input-group__label {
115
- top: 0.75rem;
116
- font-size: 1.5rem;
117
- line-height: 2.25rem;
118
- }
119
- .eds-input-group__label--filled {
120
- top: 0.375rem;
121
- font-size: 0.75rem;
122
- line-height: 0.75rem;
123
- height: 10px;
124
- padding: 0;
125
- }
126
- .eds-textarea__label .eds-input-group__label--filled {
127
- box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
128
- background: var(--textarea-label-background);
129
- width: calc(100% - 1rem - 1rem - 4px);
130
- }
131
- .eds-form-control-wrapper--size-large .eds-input-group__label--filled {
132
- top: 0.5rem;
133
- font-size: 0.875rem;
134
- line-height: 1rem;
135
- padding: 0;
136
- }
137
-
138
- .eds-form-control-wrapper:focus-within .eds-input-group__label {
139
- top: 0.375rem;
140
- font-size: 0.75rem;
141
- line-height: 0.75rem;
142
- height: 10px;
143
- padding: 0;
144
- }
145
- .eds-textarea__label .eds-form-control-wrapper:focus-within .eds-input-group__label {
146
- box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
147
- background: var(--textarea-label-background);
148
- width: calc(100% - 1rem - 1rem - 4px);
149
- }
150
- .eds-form-control-wrapper--size-large:focus-within .eds-input-group__label {
151
- top: 0.5rem;
152
- font-size: 0.875rem;
153
- line-height: 1rem;
74
+ .eds-fieldset {
75
+ margin: 0;
154
76
  padding: 0;
155
- }
156
- /* DO NOT CHANGE!*/
157
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
158
- .eds-checkbox__container {
159
- display: flex;
160
- align-items: center;
161
- position: relative;
162
- -webkit-appearance: none;
163
- -moz-appearance: none;
164
- appearance: none;
165
- cursor: pointer;
166
- -webkit-user-select: none;
167
- -moz-user-select: none;
168
- user-select: none;
169
- width: -moz-fit-content;
170
- width: fit-content;
171
- margin: 0.5rem 0;
172
- }
173
- .eds-checkbox__container--reduced-click-area {
174
- height: -moz-fit-content;
175
- height: fit-content;
176
- }
177
- .eds-checkbox__container input {
178
- position: absolute;
179
- opacity: 0;
180
- height: 0;
181
- width: 0;
182
- }
183
- .eds-checkbox__container input:checked + .eds-checkbox__icon, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon {
184
- background-color: var(--components-form-checkbox-standard-fill-selected);
185
- }
186
- .eds-checkbox__container input:checked + .eds-checkbox__icon .eds-checkbox-icon, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon .eds-checkbox-icon {
187
- visibility: visible;
188
- }
189
- .eds-checkbox__container input:checked + .eds-checkbox__icon .eds-checkbox-icon path, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon .eds-checkbox-icon path {
190
- stroke: var(--components-form-checkbox-standard-icon);
191
- animation: stroke ease-in-out 0.2s 0.1s forwards;
192
- }
193
- .eds-checkbox__container input:checked + .eds-checkbox__icon .eds-checkbox-icon rect, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon .eds-checkbox-icon rect {
194
- fill: var(--components-form-checkbox-standard-icon);
195
- }
196
- .eds-checkbox__container input:checked + .eds-checkbox__icon--disabled, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon--disabled {
197
- opacity: 0.5;
198
- }
199
- .eds-checkbox__container input:checked + .eds-checkbox__icon--disabled path {
200
- opacity: 0.5;
201
- }
202
- .eds-checkbox__container input:checked + .eds-checkbox__icon--disabled rect {
203
- opacity: 0.5;
204
- }
205
- .eds-checkbox__container input:indeterminate + .eds-checkbox__icon--disabled path {
206
- opacity: 0.5;
207
- }
208
- .eds-checkbox__container input:indeterminate + .eds-checkbox__icon--disabled rect {
209
- opacity: 0.5;
210
- }
211
- .eds-contrast .eds-checkbox__container input:checked + .eds-checkbox__icon, .eds-contrast .eds-checkbox__container input:indeterminate + .eds-checkbox__icon {
212
- background-color: var(--components-form-checkbox-contrast-fill-selected);
213
- }
214
- .eds-contrast .eds-checkbox__container input:checked + .eds-checkbox__icon path, .eds-contrast .eds-checkbox__container input:indeterminate + .eds-checkbox__icon path {
215
- stroke: var(--components-form-checkbox-contrast-icon);
216
- }
217
- .eds-contrast .eds-checkbox__container input:checked + .eds-checkbox__icon rect, .eds-contrast .eds-checkbox__container input:indeterminate + .eds-checkbox__icon rect {
218
- fill: var(--components-form-checkbox-contrast-icon);
219
- }
220
- .eds-checkbox__container:hover input + .eds-checkbox__icon {
221
- border-color: var(--components-form-checkbox-standard-border);
222
- background-color: var(--components-form-checkbox-standard-fill-hover);
223
- }
224
- .eds-contrast .eds-checkbox__container:hover input + .eds-checkbox__icon {
225
- border-color: var(--components-form-checkbox-contrast-border);
226
- background-color: var(--components-form-checkbox-contrast-fill-hover);
227
- }
228
- .eds-checkbox__container:hover input:checked + .eds-checkbox__icon,
229
- .eds-checkbox__container:hover input:indeterminate + .eds-checkbox__icon {
230
- border-color: transparent;
231
- background-color: var(--components-form-checkbox-standard-fill-selectedhover);
232
- }
233
- .eds-contrast .eds-checkbox__container:hover input:checked + .eds-checkbox__icon,
234
- .eds-contrast .eds-checkbox__container:hover input:indeterminate + .eds-checkbox__icon {
235
- background-color: var(--components-form-checkbox-contrast-fill-selectedhover);
236
- }
237
- .eds-checkbox__container:active input:checked + .eds-checkbox__icon,
238
- .eds-checkbox__container:active input:indeterminate + .eds-checkbox__icon {
239
- background-color: var(--components-form-checkbox-standard-fill-selected);
240
- }
241
- .eds-contrast .eds-checkbox__container:active input:checked + .eds-checkbox__icon,
242
- .eds-contrast .eds-checkbox__container:active input:indeterminate + .eds-checkbox__icon {
243
- background-color: var(--components-form-checkbox-contrast-fill-selected);
244
- }
245
- .eds-checkbox__container:has(:focus-visible) .eds-checkbox__icon {
246
- outline: 2px solid #181c56;
247
- outline-color: var(--basecolors-stroke-focus-standard);
248
- outline-offset: 0.125rem;
249
- }
250
- .eds-contrast .eds-checkbox__container:has(:focus-visible) .eds-checkbox__icon {
251
- outline-color: var(--basecolors-stroke-focus-contrast);
252
- }
253
- .eds-checkbox--disabled {
254
- pointer-events: none;
255
- }
256
- .eds-checkbox--disabled .eds-checkbox__label {
257
- opacity: 0.5;
258
- }
259
- .eds-checkbox--disabled .eds-checkbox__icon {
260
- opacity: 0.5;
261
- }
262
- .eds-checkbox__icon {
263
- box-sizing: border-box;
264
- display: inline-flex;
265
- justify-content: center;
266
- align-items: center;
267
- position: relative;
268
- margin-right: 1rem;
269
- height: 1.25rem;
270
- width: 1.25rem;
271
- border: 0.125rem solid var(--components-form-checkbox-standard-border);
272
- border-radius: 0.125rem;
273
- background-color: transparent;
274
- transition: border-color 0.1s ease-in-out, background-color 0.1s ease-in-out;
275
- }
276
- .eds-checkbox__icon--reduced-click-area {
277
- margin-right: 0;
278
- }
279
- .eds-contrast .eds-checkbox__icon {
280
- border-color: var(--components-form-checkbox-contrast-border);
281
- }
282
- .eds-checkbox__icon .eds-checkbox-icon {
283
- height: 1rem;
284
- width: 1rem;
285
- visibility: hidden;
286
- }
287
- .eds-checkbox__icon .eds-checkbox-icon path {
288
- transform-origin: 50% 50%;
289
- stroke-dasharray: 48;
290
- stroke-dashoffset: 48;
291
- stroke-width: 0.375rem;
292
- }
293
-
294
- @keyframes stroke {
295
- 100% {
296
- stroke-dashoffset: 0;
297
- }
77
+ border: 0;
298
78
  }
299
79
  /* DO NOT CHANGE!*/
300
80
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
@@ -308,6 +88,9 @@
308
88
  .eds-form-control__field-and-feedback-text--has-tooltip {
309
89
  padding-right: 2rem;
310
90
  }
91
+ .eds-form-control__field-and-feedback-text:has(.eds-form-control-wrapper--disabled) {
92
+ cursor: not-allowed;
93
+ }
311
94
  .eds-form-control-wrapper {
312
95
  display: flex;
313
96
  align-items: center;
@@ -363,6 +146,14 @@
363
146
  .eds-form-control-wrapper--disabled::before, .eds-form-control-wrapper--disabled::after {
364
147
  display: none;
365
148
  }
149
+ .eds-form-control-wrapper--disabled:focus-within {
150
+ border-color: transparent;
151
+ outline: none;
152
+ }
153
+ .eds-contrast .eds-form-control-wrapper--disabled:focus-within {
154
+ border-color: transparent;
155
+ outline: none;
156
+ }
366
157
  .eds-form-control-wrapper--readonly {
367
158
  border-color: transparent;
368
159
  pointer-events: none;
@@ -476,22 +267,483 @@
476
267
  all: unset;
477
268
  position: absolute;
478
269
  display: flex;
479
- align-items: center;
270
+ align-items: center;
271
+ justify-content: center;
272
+ height: 1.5rem;
273
+ width: 1.5rem;
274
+ right: -2rem;
275
+ border-radius: 100%;
276
+ color: var(--primary-text-color);
277
+ cursor: pointer;
278
+ }
279
+ .eds-form-control__prepend {
280
+ margin-right: 0.75rem;
281
+ margin-left: 0;
282
+ }
283
+ .eds-form-control__append {
284
+ margin-right: 0;
285
+ margin-left: 0.75rem;
286
+ }
287
+ /* DO NOT CHANGE!*/
288
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
289
+ .eds-form-component--radio__container {
290
+ display: flex;
291
+ justify-content: center;
292
+ align-items: center;
293
+ position: relative;
294
+ cursor: pointer;
295
+ height: 2rem;
296
+ width: -moz-fit-content;
297
+ width: fit-content;
298
+ -webkit-user-select: none;
299
+ -moz-user-select: none;
300
+ user-select: none;
301
+ }
302
+ .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio {
303
+ background-color: var(--components-form-radio-standard-fill-hover);
304
+ }
305
+ .eds-contrast .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio {
306
+ background-color: var(--components-form-radio-contrast-fill-hover);
307
+ }
308
+ .eds-form-component--radio__container input {
309
+ position: absolute;
310
+ opacity: 0;
311
+ cursor: pointer;
312
+ height: 0;
313
+ width: 0;
314
+ }
315
+ .eds-form-component--radio__container input:checked ~ .eds-form-component--radio__radio .eds-form-component--radio__circle {
316
+ height: 0.625rem;
317
+ width: 0.625rem;
318
+ }
319
+ .eds-form-component--radio__container input:focus-visible ~ .eds-form-component--radio__radio {
320
+ outline: 2px solid #181c56;
321
+ outline-color: var(--basecolors-stroke-focus-standard);
322
+ outline-offset: 0.125rem;
323
+ }
324
+ .eds-contrast .eds-form-component--radio__container input:focus-visible ~ .eds-form-component--radio__radio {
325
+ outline-color: var(--basecolors-stroke-focus-contrast);
326
+ }
327
+ .eds-form-component--radio__container .eds-form-component--radio__radio {
328
+ position: relative;
329
+ height: 1.25rem;
330
+ width: 1.25rem;
331
+ margin-right: 1rem;
332
+ background-color: var(--components-form-radio-standard-fill-default);
333
+ border: 0.125rem solid var(--components-form-radio-standard-border);
334
+ border-radius: 50%;
335
+ display: flex;
336
+ align-items: center;
337
+ justify-content: center;
338
+ }
339
+ .eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio {
340
+ background-color: var(--components-form-radio-contrast-fill-default);
341
+ border-color: var(--components-form-radio-contrast-border);
342
+ }
343
+ .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled {
344
+ background: var(--components-form-baseform-contrast-fill-disabled);
345
+ border-color: var(--components-form-baseform-contrast-text-disabled);
346
+ cursor: not-allowed;
347
+ }
348
+ .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled:hover {
349
+ border-color: var(--components-form-baseform-contrast-text-disabled);
350
+ }
351
+ .eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled {
352
+ background: var(--components-form-baseform-contrast-fill-disabled);
353
+ border-color: var(--components-form-baseform-contrast-text-disabled);
354
+ }
355
+ .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled ~ .eds-form-component--radio__label {
356
+ color: var(--components-form-baseform-contrast-text-disabled);
357
+ }
358
+ .eds-form-component--radio__container .eds-form-component--radio__radio .eds-form-component--radio__circle {
359
+ display: block;
360
+ width: 0;
361
+ height: 0;
362
+ border-radius: 50%;
363
+ background-color: var(--components-form-radio-standard-fill-selected);
364
+ transition: width 0.1s ease-in-out, height 0.1s ease-in-out;
365
+ }
366
+ .eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio .eds-form-component--radio__circle {
367
+ background-color: var(--components-form-radio-contrast-icon);
368
+ }
369
+ /* DO NOT CHANGE!*/
370
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
371
+ .eds-checkbox__container {
372
+ display: flex;
373
+ align-items: center;
374
+ position: relative;
375
+ -webkit-appearance: none;
376
+ -moz-appearance: none;
377
+ appearance: none;
378
+ cursor: pointer;
379
+ -webkit-user-select: none;
380
+ -moz-user-select: none;
381
+ user-select: none;
382
+ width: -moz-fit-content;
383
+ width: fit-content;
384
+ margin: 0.5rem 0;
385
+ }
386
+ .eds-checkbox__container--reduced-click-area {
387
+ height: -moz-fit-content;
388
+ height: fit-content;
389
+ }
390
+ .eds-checkbox__container input {
391
+ position: absolute;
392
+ opacity: 0;
393
+ height: 0;
394
+ width: 0;
395
+ }
396
+ .eds-checkbox__container input:checked + .eds-checkbox__icon, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon {
397
+ background-color: var(--components-form-checkbox-standard-fill-selected);
398
+ }
399
+ .eds-checkbox__container input:checked + .eds-checkbox__icon .eds-checkbox-icon, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon .eds-checkbox-icon {
400
+ visibility: visible;
401
+ }
402
+ .eds-checkbox__container input:checked + .eds-checkbox__icon .eds-checkbox-icon path, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon .eds-checkbox-icon path {
403
+ stroke: var(--components-form-checkbox-standard-icon);
404
+ animation: stroke ease-in-out 0.2s 0.1s forwards;
405
+ }
406
+ .eds-checkbox__container input:checked + .eds-checkbox__icon .eds-checkbox-icon rect, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon .eds-checkbox-icon rect {
407
+ fill: var(--components-form-checkbox-standard-icon);
408
+ }
409
+ .eds-checkbox__container input:checked + .eds-checkbox__icon--disabled, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon--disabled {
410
+ opacity: 0.5;
411
+ }
412
+ .eds-checkbox__container input:checked + .eds-checkbox__icon--disabled path {
413
+ opacity: 0.5;
414
+ }
415
+ .eds-checkbox__container input:checked + .eds-checkbox__icon--disabled rect {
416
+ opacity: 0.5;
417
+ }
418
+ .eds-checkbox__container input:indeterminate + .eds-checkbox__icon--disabled path {
419
+ opacity: 0.5;
420
+ }
421
+ .eds-checkbox__container input:indeterminate + .eds-checkbox__icon--disabled rect {
422
+ opacity: 0.5;
423
+ }
424
+ .eds-contrast .eds-checkbox__container input:checked + .eds-checkbox__icon, .eds-contrast .eds-checkbox__container input:indeterminate + .eds-checkbox__icon {
425
+ background-color: var(--components-form-checkbox-contrast-fill-selected);
426
+ }
427
+ .eds-contrast .eds-checkbox__container input:checked + .eds-checkbox__icon path, .eds-contrast .eds-checkbox__container input:indeterminate + .eds-checkbox__icon path {
428
+ stroke: var(--components-form-checkbox-contrast-icon);
429
+ }
430
+ .eds-contrast .eds-checkbox__container input:checked + .eds-checkbox__icon rect, .eds-contrast .eds-checkbox__container input:indeterminate + .eds-checkbox__icon rect {
431
+ fill: var(--components-form-checkbox-contrast-icon);
432
+ }
433
+ .eds-checkbox__container:hover input + .eds-checkbox__icon {
434
+ border-color: var(--components-form-checkbox-standard-border);
435
+ background-color: var(--components-form-checkbox-standard-fill-hover);
436
+ }
437
+ .eds-contrast .eds-checkbox__container:hover input + .eds-checkbox__icon {
438
+ border-color: var(--components-form-checkbox-contrast-border);
439
+ background-color: var(--components-form-checkbox-contrast-fill-hover);
440
+ }
441
+ .eds-checkbox__container:hover input:checked + .eds-checkbox__icon,
442
+ .eds-checkbox__container:hover input:indeterminate + .eds-checkbox__icon {
443
+ border-color: transparent;
444
+ background-color: var(--components-form-checkbox-standard-fill-selectedhover);
445
+ }
446
+ .eds-contrast .eds-checkbox__container:hover input:checked + .eds-checkbox__icon,
447
+ .eds-contrast .eds-checkbox__container:hover input:indeterminate + .eds-checkbox__icon {
448
+ background-color: var(--components-form-checkbox-contrast-fill-selectedhover);
449
+ }
450
+ .eds-checkbox__container:active input:checked + .eds-checkbox__icon,
451
+ .eds-checkbox__container:active input:indeterminate + .eds-checkbox__icon {
452
+ background-color: var(--components-form-checkbox-standard-fill-selected);
453
+ }
454
+ .eds-contrast .eds-checkbox__container:active input:checked + .eds-checkbox__icon,
455
+ .eds-contrast .eds-checkbox__container:active input:indeterminate + .eds-checkbox__icon {
456
+ background-color: var(--components-form-checkbox-contrast-fill-selected);
457
+ }
458
+ .eds-checkbox__container:has(:focus-visible) .eds-checkbox__icon {
459
+ outline: 2px solid #181c56;
460
+ outline-color: var(--basecolors-stroke-focus-standard);
461
+ outline-offset: 0.125rem;
462
+ }
463
+ .eds-contrast .eds-checkbox__container:has(:focus-visible) .eds-checkbox__icon {
464
+ outline-color: var(--basecolors-stroke-focus-contrast);
465
+ }
466
+ .eds-checkbox--disabled {
467
+ pointer-events: none;
468
+ }
469
+ .eds-checkbox--disabled .eds-checkbox__label {
470
+ opacity: 0.5;
471
+ }
472
+ .eds-checkbox--disabled .eds-checkbox__icon {
473
+ opacity: 0.5;
474
+ }
475
+ .eds-checkbox__icon {
476
+ box-sizing: border-box;
477
+ display: inline-flex;
478
+ justify-content: center;
479
+ align-items: center;
480
+ position: relative;
481
+ margin-right: 1rem;
482
+ height: 1.25rem;
483
+ width: 1.25rem;
484
+ border: 0.125rem solid var(--components-form-checkbox-standard-border);
485
+ border-radius: 0.125rem;
486
+ background-color: transparent;
487
+ transition: border-color 0.1s ease-in-out, background-color 0.1s ease-in-out;
488
+ }
489
+ .eds-checkbox__icon--reduced-click-area {
490
+ margin-right: 0;
491
+ }
492
+ .eds-contrast .eds-checkbox__icon {
493
+ border-color: var(--components-form-checkbox-contrast-border);
494
+ }
495
+ .eds-checkbox__icon .eds-checkbox-icon {
496
+ height: 1rem;
497
+ width: 1rem;
498
+ visibility: hidden;
499
+ }
500
+ .eds-checkbox__icon .eds-checkbox-icon path {
501
+ transform-origin: 50% 50%;
502
+ stroke-dasharray: 48;
503
+ stroke-dashoffset: 48;
504
+ stroke-width: 0.375rem;
505
+ }
506
+
507
+ @keyframes stroke {
508
+ 100% {
509
+ stroke-dashoffset: 0;
510
+ }
511
+ }
512
+ /* DO NOT CHANGE!*/
513
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
514
+ .eds-input-group {
515
+ color: inherit;
516
+ display: block;
517
+ position: relative;
518
+ }
519
+ .eds-input-group__label {
520
+ color: var(--components-form-baseform-standard-text-label);
521
+ display: flex;
522
+ font-size: 1rem;
523
+ position: absolute;
524
+ line-height: 1rem;
525
+ height: 3rem;
526
+ padding-left: 0;
527
+ top: 1rem;
528
+ 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;
529
+ -webkit-user-select: none;
530
+ -moz-user-select: none;
531
+ user-select: none;
532
+ pointer-events: none;
533
+ }
534
+ .eds-form-control-wrapper--is-filled .eds-input-group__label {
535
+ top: 0.375rem;
536
+ font-size: 0.75rem;
537
+ line-height: 0.75rem;
538
+ height: 10px;
539
+ padding: 0;
540
+ }
541
+ .eds-textarea__label .eds-form-control-wrapper--is-filled .eds-input-group__label {
542
+ box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
543
+ background: var(--textarea-label-background);
544
+ width: calc(100% - 1rem - 1rem - 4px);
545
+ }
546
+ .eds-form-control-wrapper--is-filled.eds-form-control-wrapper--size-large .eds-input-group__label {
547
+ top: 0.5rem;
548
+ font-size: 0.875rem;
549
+ line-height: 1rem;
550
+ padding: 0;
551
+ }
552
+ .eds-form-control-wrapper--size-large .eds-input-group__label {
553
+ top: 0.75rem;
554
+ font-size: 1.5rem;
555
+ line-height: 2.25rem;
556
+ }
557
+ .eds-input-group__label--filled {
558
+ top: 0.375rem;
559
+ font-size: 0.75rem;
560
+ line-height: 0.75rem;
561
+ height: 10px;
562
+ padding: 0;
563
+ }
564
+ .eds-textarea__label .eds-input-group__label--filled {
565
+ box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
566
+ background: var(--textarea-label-background);
567
+ width: calc(100% - 1rem - 1rem - 4px);
568
+ }
569
+ .eds-form-control-wrapper--size-large .eds-input-group__label--filled {
570
+ top: 0.5rem;
571
+ font-size: 0.875rem;
572
+ line-height: 1rem;
573
+ padding: 0;
574
+ }
575
+
576
+ .eds-form-control-wrapper:focus-within .eds-input-group__label {
577
+ top: 0.375rem;
578
+ font-size: 0.75rem;
579
+ line-height: 0.75rem;
580
+ height: 10px;
581
+ padding: 0;
582
+ }
583
+ .eds-textarea__label .eds-form-control-wrapper:focus-within .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:focus-within .eds-input-group__label {
589
+ top: 0.5rem;
590
+ font-size: 0.875rem;
591
+ line-height: 1rem;
592
+ padding: 0;
593
+ }
594
+ .eds-form-control-wrapper--disabled:focus-within .eds-input-group__label {
595
+ top: 1rem;
596
+ font-size: 1rem;
597
+ height: 3rem;
598
+ line-height: 1rem;
599
+ }
600
+ /* DO NOT CHANGE!*/
601
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
602
+ .eds-input-panel:has(:focus-visible) .eds-input-panel__container {
603
+ outline: 2px solid #181c56;
604
+ outline-color: var(--basecolors-stroke-focus-standard);
605
+ outline-offset: 0.125rem;
606
+ }
607
+ .eds-contrast .eds-input-panel:has(:focus-visible) .eds-input-panel__container {
608
+ outline-color: var(--basecolors-stroke-focus-contrast);
609
+ }
610
+ .eds-input-panel > input {
611
+ position: absolute;
612
+ opacity: 0;
613
+ cursor: pointer;
614
+ height: 0;
615
+ width: 0;
616
+ }
617
+ .eds-input-panel > input:checked + .eds-input-panel__container {
618
+ border-color: var(--components-form-basepanel-standard-border-selected);
619
+ background: var(--components-form-basepanel-standard-fill-selected);
620
+ }
621
+ .eds-contrast .eds-input-panel > input:checked + .eds-input-panel__container {
622
+ border-color: var(--components-form-basepanel-contrast-border-selected);
623
+ background: var(--components-form-basepanel-contrast-fill-selected);
624
+ }
625
+ .eds-input-panel > input:checked + .eds-input-panel__container .eds-form-component--radio__circle {
626
+ width: 0.75rem;
627
+ height: 0.75rem;
628
+ }
629
+ .eds-contrast .eds-input-panel > input:checked + .eds-input-panel__container .eds-form-component--radio__circle {
630
+ background-color: var(--components-form-radio-contrast-icon);
631
+ }
632
+ .eds-input-panel > input:checked + .eds-input-panel__container:hover {
633
+ background-color: var(--components-form-basepanel-standard-fill-hover);
634
+ /* The following styling is needed to sync the inner checkbox/radiobutton's
635
+ hover state styling with the inputPanel container */
636
+ }
637
+ .eds-contrast .eds-input-panel > input:checked + .eds-input-panel__container:hover {
638
+ background-color: var(--components-form-basepanel-contrast-fill-hover);
639
+ }
640
+ .eds-input-panel > input:checked + .eds-input-panel__container:hover .eds-form-component--radio__radio {
641
+ background-color: var(--components-form-basepanel-standard-fill-hover);
642
+ border-color: var(--components-form-basepanel-standard-border-selected);
643
+ }
644
+ .eds-contrast .eds-input-panel > input:checked + .eds-input-panel__container:hover .eds-form-component--radio__radio {
645
+ background-color: var(--components-form-basepanel-contrast-fill-hover);
646
+ border-color: var(--components-form-basepanel-contrast-border-selected);
647
+ }
648
+ .eds-input-panel > input:checked + .eds-input-panel__container:hover .eds-checkbox__icon {
649
+ border-color: transparent;
650
+ }
651
+ .eds-contrast .eds-input-panel > input:checked + .eds-input-panel__container:hover .eds-checkbox__icon {
652
+ background-color: var(--components-form-checkbox-contrast-fill-selectedhover);
653
+ }
654
+ .eds-input-panel__container {
655
+ background: var(--components-form-basepanel-standard-fill-default);
656
+ border: 0.125rem solid var(--components-form-basepanel-standard-border-default);
657
+ color: var(--components-form-basepanel-standard-text-accent);
658
+ border-radius: 0.25rem;
659
+ display: flex;
660
+ flex-direction: column;
661
+ justify-content: flex-start;
662
+ min-width: 20rem;
663
+ position: relative;
664
+ padding: 1rem;
665
+ -webkit-user-select: none;
666
+ -moz-user-select: none;
667
+ user-select: none;
668
+ width: -moz-fit-content;
669
+ width: fit-content;
670
+ transition: background ease-in-out 0.1s, border-color ease-in-out 0.1s;
671
+ }
672
+ .eds-contrast .eds-input-panel__container {
673
+ background-color: var(--components-form-basepanel-contrast-fill-default);
674
+ border-color: var(--components-form-basepanel-contrast-border-default);
675
+ color: var(--components-form-basepanel-contrast-text-accent);
676
+ }
677
+ .eds-input-panel__container:hover {
678
+ background-color: var(--components-form-basepanel-standard-fill-hover);
679
+ /* The following styling is needed to sync the inner checkbox/radiobutton's
680
+ hover state styling with the inputPanel container */
681
+ }
682
+ .eds-contrast .eds-input-panel__container:hover {
683
+ background-color: var(--components-form-basepanel-contrast-fill-hover);
684
+ }
685
+ .eds-input-panel__container:hover .eds-checkbox__icon,
686
+ .eds-input-panel__container:hover .eds-form-component--radio__radio {
687
+ background-color: var(--components-form-basepanel-standard-fill-hover);
688
+ border-color: var(--components-form-basepanel-standard-border-selected);
689
+ }
690
+ .eds-contrast .eds-input-panel__container:hover .eds-checkbox__icon,
691
+ .eds-contrast .eds-input-panel__container:hover .eds-form-component--radio__radio {
692
+ background-color: var(--components-form-basepanel-contrast-fill-hover);
693
+ border-color: var(--components-form-basepanel-contrast-border-selected);
694
+ }
695
+ input:disabled + .eds-input-panel__container {
696
+ background: var(--components-form-basepanel-standard-fill-disabled);
697
+ border-color: var(--components-form-basepanel-standard-border-disabled);
698
+ color: var(--components-form-basepanel-standard-text-disabled);
699
+ cursor: not-allowed;
700
+ }
701
+ .eds-contrast input:disabled + .eds-input-panel__container {
702
+ background: var(--components-form-basepanel-contrast-fill-disabled);
703
+ border-style: dashed;
704
+ border-color: var(--components-form-basepanel-contrast-border-disabled);
705
+ color: var(--components-form-basepanel-contrast-text-disabled);
706
+ }
707
+ .eds-input-panel__container .eds-checkbox__icon,
708
+ .eds-input-panel__container .eds-checkbox__icon .eds-checkbox__icon,
709
+ .eds-input-panel__container .eds-form-component--radio__radio {
710
+ width: 1.5rem;
711
+ height: 1.5rem;
712
+ margin-right: 0;
713
+ }
714
+ .eds-input-panel--medium .eds-input-panel__title {
715
+ font-size: 1rem;
716
+ font-weight: 500;
717
+ }
718
+ .eds-input-panel--medium.eds-input-panel__container {
719
+ padding-bottom: 1rem;
720
+ min-height: 3.75rem;
721
+ }
722
+ .eds-input-panel--large.eds-input-panel__container {
723
+ min-height: 6rem;
724
+ }
725
+ .eds-input-panel--large .eds-input-panel__title {
726
+ font-size: 1.25rem;
727
+ font-weight: 500;
728
+ line-height: 1.875rem;
729
+ }
730
+ .eds-input-panel__title-wrapper {
731
+ display: flex;
732
+ justify-content: space-between;
733
+ align-items: center;
734
+ }
735
+ .eds-input-panel__secondary-label-and-icon-wrapper {
736
+ display: flex;
480
737
  justify-content: center;
481
- height: 1.5rem;
482
- width: 1.5rem;
483
- right: -2rem;
484
- border-radius: 100%;
485
- color: var(--primary-text-color);
486
- cursor: pointer;
738
+ align-items: center;
739
+ gap: 0.75rem;
487
740
  }
488
- .eds-form-control__prepend {
489
- margin-right: 0.75rem;
490
- margin-left: 0;
741
+ .eds-input-panel__secondary-label-and-icon-wrapper .eds-checkbox__container {
742
+ margin: 0;
491
743
  }
492
- .eds-form-control__append {
493
- margin-right: 0;
494
- margin-left: 0.75rem;
744
+ .eds-input-panel__additional-content {
745
+ margin-top: 0.25rem;
746
+ word-wrap: break-word;
495
747
  }
496
748
  /* DO NOT CHANGE!*/
497
749
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
@@ -612,93 +864,6 @@
612
864
  .eds-switch__label--medium--bottom {
613
865
  font-size: 0.75rem;
614
866
  }
615
- .eds-fieldset {
616
- margin: 0;
617
- padding: 0;
618
- border: 0;
619
- }
620
- /* DO NOT CHANGE!*/
621
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
622
- .eds-form-component--radio__container {
623
- display: flex;
624
- justify-content: center;
625
- align-items: center;
626
- position: relative;
627
- cursor: pointer;
628
- height: 2rem;
629
- width: -moz-fit-content;
630
- width: fit-content;
631
- -webkit-user-select: none;
632
- -moz-user-select: none;
633
- user-select: none;
634
- }
635
- .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio {
636
- background-color: var(--components-form-radio-standard-fill-hover);
637
- }
638
- .eds-contrast .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio {
639
- background-color: var(--components-form-radio-contrast-fill-hover);
640
- }
641
- .eds-form-component--radio__container input {
642
- position: absolute;
643
- opacity: 0;
644
- cursor: pointer;
645
- height: 0;
646
- width: 0;
647
- }
648
- .eds-form-component--radio__container input:checked ~ .eds-form-component--radio__radio .eds-form-component--radio__circle {
649
- height: 0.625rem;
650
- width: 0.625rem;
651
- }
652
- .eds-form-component--radio__container input:focus-visible ~ .eds-form-component--radio__radio {
653
- outline: 2px solid #181c56;
654
- outline-color: var(--basecolors-stroke-focus-standard);
655
- outline-offset: 0.125rem;
656
- }
657
- .eds-contrast .eds-form-component--radio__container input:focus-visible ~ .eds-form-component--radio__radio {
658
- outline-color: var(--basecolors-stroke-focus-contrast);
659
- }
660
- .eds-form-component--radio__container .eds-form-component--radio__radio {
661
- position: relative;
662
- height: 1.25rem;
663
- width: 1.25rem;
664
- margin-right: 1rem;
665
- background-color: var(--components-form-radio-standard-fill-default);
666
- border: 0.125rem solid var(--components-form-radio-standard-border);
667
- border-radius: 50%;
668
- display: flex;
669
- align-items: center;
670
- justify-content: center;
671
- }
672
- .eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio {
673
- background-color: var(--components-form-radio-contrast-fill-default);
674
- border-color: var(--components-form-radio-contrast-border);
675
- }
676
- .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled {
677
- background: var(--components-form-baseform-contrast-fill-disabled);
678
- border-color: var(--components-form-baseform-contrast-text-disabled);
679
- cursor: not-allowed;
680
- }
681
- .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled:hover {
682
- border-color: var(--components-form-baseform-contrast-text-disabled);
683
- }
684
- .eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled {
685
- background: var(--components-form-baseform-contrast-fill-disabled);
686
- border-color: var(--components-form-baseform-contrast-text-disabled);
687
- }
688
- .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled ~ .eds-form-component--radio__label {
689
- color: var(--components-form-baseform-contrast-text-disabled);
690
- }
691
- .eds-form-component--radio__container .eds-form-component--radio__radio .eds-form-component--radio__circle {
692
- display: block;
693
- width: 0;
694
- height: 0;
695
- border-radius: 50%;
696
- background-color: var(--components-form-radio-standard-fill-selected);
697
- transition: width 0.1s ease-in-out, height 0.1s ease-in-out;
698
- }
699
- .eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio .eds-form-component--radio__circle {
700
- background-color: var(--components-form-radio-contrast-icon);
701
- }
702
867
  /* DO NOT CHANGE!*/
703
868
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
704
869
  /* DO NOT CHANGE!*/
@@ -865,154 +1030,6 @@
865
1030
  }
866
1031
  /* DO NOT CHANGE!*/
867
1032
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
868
- .eds-input-panel:has(:focus-visible) .eds-input-panel__container {
869
- outline: 2px solid #181c56;
870
- outline-color: var(--basecolors-stroke-focus-standard);
871
- outline-offset: 0.125rem;
872
- }
873
- .eds-contrast .eds-input-panel:has(:focus-visible) .eds-input-panel__container {
874
- outline-color: var(--basecolors-stroke-focus-contrast);
875
- }
876
- .eds-input-panel > input {
877
- position: absolute;
878
- opacity: 0;
879
- cursor: pointer;
880
- height: 0;
881
- width: 0;
882
- }
883
- .eds-input-panel > input:checked + .eds-input-panel__container {
884
- border-color: var(--components-form-basepanel-standard-border-selected);
885
- background: var(--components-form-basepanel-standard-fill-selected);
886
- }
887
- .eds-contrast .eds-input-panel > input:checked + .eds-input-panel__container {
888
- border-color: var(--components-form-basepanel-contrast-border-selected);
889
- background: var(--components-form-basepanel-contrast-fill-selected);
890
- }
891
- .eds-input-panel > input:checked + .eds-input-panel__container .eds-form-component--radio__circle {
892
- width: 0.75rem;
893
- height: 0.75rem;
894
- }
895
- .eds-contrast .eds-input-panel > input:checked + .eds-input-panel__container .eds-form-component--radio__circle {
896
- background-color: var(--components-form-radio-contrast-icon);
897
- }
898
- .eds-input-panel > input:checked + .eds-input-panel__container:hover {
899
- background-color: var(--components-form-basepanel-standard-fill-hover);
900
- /* The following styling is needed to sync the inner checkbox/radiobutton's
901
- hover state styling with the inputPanel container */
902
- }
903
- .eds-contrast .eds-input-panel > input:checked + .eds-input-panel__container:hover {
904
- background-color: var(--components-form-basepanel-contrast-fill-hover);
905
- }
906
- .eds-input-panel > input:checked + .eds-input-panel__container:hover .eds-form-component--radio__radio {
907
- background-color: var(--components-form-basepanel-standard-fill-hover);
908
- border-color: var(--components-form-basepanel-standard-border-selected);
909
- }
910
- .eds-contrast .eds-input-panel > input:checked + .eds-input-panel__container:hover .eds-form-component--radio__radio {
911
- background-color: var(--components-form-basepanel-contrast-fill-hover);
912
- border-color: var(--components-form-basepanel-contrast-border-selected);
913
- }
914
- .eds-input-panel > input:checked + .eds-input-panel__container:hover .eds-checkbox__icon {
915
- border-color: transparent;
916
- }
917
- .eds-contrast .eds-input-panel > input:checked + .eds-input-panel__container:hover .eds-checkbox__icon {
918
- background-color: var(--components-form-checkbox-contrast-fill-selectedhover);
919
- }
920
- .eds-input-panel__container {
921
- background: var(--components-form-basepanel-standard-fill-default);
922
- border: 0.125rem solid var(--components-form-basepanel-standard-border-default);
923
- color: var(--components-form-basepanel-standard-text-accent);
924
- border-radius: 0.25rem;
925
- display: flex;
926
- flex-direction: column;
927
- justify-content: flex-start;
928
- min-width: 20rem;
929
- position: relative;
930
- padding: 1rem;
931
- -webkit-user-select: none;
932
- -moz-user-select: none;
933
- user-select: none;
934
- width: -moz-fit-content;
935
- width: fit-content;
936
- transition: background ease-in-out 0.1s, border-color ease-in-out 0.1s;
937
- }
938
- .eds-contrast .eds-input-panel__container {
939
- background-color: var(--components-form-basepanel-contrast-fill-default);
940
- border-color: var(--components-form-basepanel-contrast-border-default);
941
- color: var(--components-form-basepanel-contrast-text-accent);
942
- }
943
- .eds-input-panel__container:hover {
944
- background-color: var(--components-form-basepanel-standard-fill-hover);
945
- /* The following styling is needed to sync the inner checkbox/radiobutton's
946
- hover state styling with the inputPanel container */
947
- }
948
- .eds-contrast .eds-input-panel__container:hover {
949
- background-color: var(--components-form-basepanel-contrast-fill-hover);
950
- }
951
- .eds-input-panel__container:hover .eds-checkbox__icon,
952
- .eds-input-panel__container:hover .eds-form-component--radio__radio {
953
- background-color: var(--components-form-basepanel-standard-fill-hover);
954
- border-color: var(--components-form-basepanel-standard-border-selected);
955
- }
956
- .eds-contrast .eds-input-panel__container:hover .eds-checkbox__icon,
957
- .eds-contrast .eds-input-panel__container:hover .eds-form-component--radio__radio {
958
- background-color: var(--components-form-basepanel-contrast-fill-hover);
959
- border-color: var(--components-form-basepanel-contrast-border-selected);
960
- }
961
- input:disabled + .eds-input-panel__container {
962
- background: var(--components-form-basepanel-standard-fill-disabled);
963
- border-color: var(--components-form-basepanel-standard-border-disabled);
964
- color: var(--components-form-basepanel-standard-text-disabled);
965
- cursor: not-allowed;
966
- }
967
- .eds-contrast input:disabled + .eds-input-panel__container {
968
- background: var(--components-form-basepanel-contrast-fill-disabled);
969
- border-style: dashed;
970
- border-color: var(--components-form-basepanel-contrast-border-disabled);
971
- color: var(--components-form-basepanel-contrast-text-disabled);
972
- }
973
- .eds-input-panel__container .eds-checkbox__icon,
974
- .eds-input-panel__container .eds-checkbox__icon .eds-checkbox__icon,
975
- .eds-input-panel__container .eds-form-component--radio__radio {
976
- width: 1.5rem;
977
- height: 1.5rem;
978
- margin-right: 0;
979
- }
980
- .eds-input-panel--medium .eds-input-panel__title {
981
- font-size: 1rem;
982
- font-weight: 500;
983
- }
984
- .eds-input-panel--medium.eds-input-panel__container {
985
- padding-bottom: 1rem;
986
- min-height: 3.75rem;
987
- }
988
- .eds-input-panel--large.eds-input-panel__container {
989
- min-height: 6rem;
990
- }
991
- .eds-input-panel--large .eds-input-panel__title {
992
- font-size: 1.25rem;
993
- font-weight: 500;
994
- line-height: 1.875rem;
995
- }
996
- .eds-input-panel__title-wrapper {
997
- display: flex;
998
- justify-content: space-between;
999
- align-items: center;
1000
- }
1001
- .eds-input-panel__secondary-label-and-icon-wrapper {
1002
- display: flex;
1003
- justify-content: center;
1004
- align-items: center;
1005
- gap: 0.75rem;
1006
- }
1007
- .eds-input-panel__secondary-label-and-icon-wrapper .eds-checkbox__container {
1008
- margin: 0;
1009
- }
1010
- .eds-input-panel__additional-content {
1011
- margin-top: 0.25rem;
1012
- word-wrap: break-word;
1013
- }
1014
- /* DO NOT CHANGE!*/
1015
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
1016
1033
  .eds-textfield__clear-button {
1017
1034
  background: none;
1018
1035
  border: none;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@entur/form",
3
- "version": "8.2.2-beta.0",
3
+ "version": "8.2.3",
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.3.2-beta.0",
31
- "@entur/icons": "^7.6.2-beta.0",
32
- "@entur/tokens": "^3.17.7-beta.0",
33
- "@entur/tooltip": "^5.2.2-beta.0",
34
- "@entur/typography": "^1.9.2-beta.0",
30
+ "@entur/button": "^3.3.3",
31
+ "@entur/icons": "^7.7.1",
32
+ "@entur/tokens": "^3.18.0",
33
+ "@entur/tooltip": "^5.2.3",
34
+ "@entur/typography": "^1.9.3",
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": "cd66907abaf7faaee1f9dcc5f063b3b153eaf7b2"
41
+ "gitHead": "8ae7ed09699a63cc7e50d546d54750d8ec066c50"
42
42
  }