@entur/form 8.1.4 → 8.1.5-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 +353 -353
  2. package/package.json +6 -6
package/dist/styles.css CHANGED
@@ -1,7 +1,230 @@
1
- .eds-fieldset {
2
- margin: 0;
3
- padding: 0;
4
- border: 0;
1
+ /* DO NOT CHANGE!*/
2
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
3
+ .eds-checkbox__container {
4
+ display: flex;
5
+ align-items: center;
6
+ position: relative;
7
+ -webkit-appearance: none;
8
+ -moz-appearance: none;
9
+ appearance: none;
10
+ cursor: pointer;
11
+ -webkit-user-select: none;
12
+ -moz-user-select: none;
13
+ user-select: none;
14
+ width: -moz-fit-content;
15
+ width: fit-content;
16
+ margin: 0.5rem 0;
17
+ }
18
+ .eds-checkbox__container--reduced-click-area {
19
+ height: -moz-fit-content;
20
+ height: fit-content;
21
+ }
22
+ .eds-checkbox__container input {
23
+ position: absolute;
24
+ opacity: 0;
25
+ height: 0;
26
+ width: 0;
27
+ }
28
+ .eds-checkbox__container input:checked + .eds-checkbox__icon, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon {
29
+ background-color: var(--components-form-checkbox-standard-fill-selected);
30
+ }
31
+ .eds-checkbox__container input:checked + .eds-checkbox__icon .eds-checkbox-icon, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon .eds-checkbox-icon {
32
+ visibility: visible;
33
+ }
34
+ .eds-checkbox__container input:checked + .eds-checkbox__icon .eds-checkbox-icon path, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon .eds-checkbox-icon path {
35
+ stroke: var(--components-form-checkbox-standard-icon);
36
+ animation: stroke ease-in-out 0.2s 0.1s forwards;
37
+ }
38
+ .eds-checkbox__container input:checked + .eds-checkbox__icon .eds-checkbox-icon rect, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon .eds-checkbox-icon rect {
39
+ fill: var(--components-form-checkbox-standard-icon);
40
+ }
41
+ .eds-checkbox__container input:checked + .eds-checkbox__icon--disabled, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon--disabled {
42
+ opacity: 0.5;
43
+ }
44
+ .eds-checkbox__container input:checked + .eds-checkbox__icon--disabled path {
45
+ opacity: 0.5;
46
+ }
47
+ .eds-checkbox__container input:checked + .eds-checkbox__icon--disabled rect {
48
+ opacity: 0.5;
49
+ }
50
+ .eds-checkbox__container input:indeterminate + .eds-checkbox__icon--disabled path {
51
+ opacity: 0.5;
52
+ }
53
+ .eds-checkbox__container input:indeterminate + .eds-checkbox__icon--disabled rect {
54
+ opacity: 0.5;
55
+ }
56
+ .eds-contrast .eds-checkbox__container input:checked + .eds-checkbox__icon, .eds-contrast .eds-checkbox__container input:indeterminate + .eds-checkbox__icon {
57
+ background-color: var(--components-form-checkbox-contrast-fill-selected);
58
+ }
59
+ .eds-contrast .eds-checkbox__container input:checked + .eds-checkbox__icon path, .eds-contrast .eds-checkbox__container input:indeterminate + .eds-checkbox__icon path {
60
+ stroke: var(--components-form-checkbox-contrast-icon);
61
+ }
62
+ .eds-contrast .eds-checkbox__container input:checked + .eds-checkbox__icon rect, .eds-contrast .eds-checkbox__container input:indeterminate + .eds-checkbox__icon rect {
63
+ fill: var(--components-form-checkbox-contrast-icon);
64
+ }
65
+ .eds-checkbox__container:hover input + .eds-checkbox__icon {
66
+ border-color: var(--components-form-checkbox-standard-border);
67
+ background-color: var(--components-form-checkbox-standard-fill-hover);
68
+ }
69
+ .eds-contrast .eds-checkbox__container:hover input + .eds-checkbox__icon {
70
+ border-color: var(--components-form-checkbox-contrast-border);
71
+ background-color: var(--components-form-checkbox-contrast-fill-hover);
72
+ }
73
+ .eds-checkbox__container:hover input:checked + .eds-checkbox__icon,
74
+ .eds-checkbox__container:hover input:indeterminate + .eds-checkbox__icon {
75
+ border-color: transparent;
76
+ background-color: var(--components-form-checkbox-standard-fill-selectedhover);
77
+ }
78
+ .eds-contrast .eds-checkbox__container:hover input:checked + .eds-checkbox__icon,
79
+ .eds-contrast .eds-checkbox__container:hover input:indeterminate + .eds-checkbox__icon {
80
+ background-color: var(--components-form-checkbox-contrast-fill-selectedhover);
81
+ }
82
+ .eds-checkbox__container:active input:checked + .eds-checkbox__icon,
83
+ .eds-checkbox__container:active input:indeterminate + .eds-checkbox__icon {
84
+ background-color: var(--components-form-checkbox-standard-fill-selected);
85
+ }
86
+ .eds-contrast .eds-checkbox__container:active input:checked + .eds-checkbox__icon,
87
+ .eds-contrast .eds-checkbox__container:active input:indeterminate + .eds-checkbox__icon {
88
+ background-color: var(--components-form-checkbox-contrast-fill-selected);
89
+ }
90
+ .eds-checkbox__container:focus + .eds-checkbox__icon,
91
+ .eds-checkbox__container [focus-within] + .eds-checkbox__icon {
92
+ outline: 2px solid #181c56;
93
+ outline-color: var(--basecolors-stroke-focus-standard);
94
+ outline-offset: 0.125rem;
95
+ }
96
+ .eds-checkbox__container:focus + .eds-checkbox__icon,
97
+ .eds-checkbox__container :focus-within + .eds-checkbox__icon {
98
+ outline: 2px solid #181c56;
99
+ outline-color: var(--basecolors-stroke-focus-standard);
100
+ outline-offset: 0.125rem;
101
+ }
102
+ .eds-contrast .eds-checkbox__container:focus + .eds-checkbox__icon,
103
+ .eds-contrast .eds-checkbox__container [focus-within] + .eds-checkbox__icon {
104
+ outline-color: var(--basecolors-stroke-focus-contrast);
105
+ }
106
+ .eds-contrast .eds-checkbox__container:focus + .eds-checkbox__icon,
107
+ .eds-contrast .eds-checkbox__container :focus-within + .eds-checkbox__icon {
108
+ outline-color: var(--basecolors-stroke-focus-contrast);
109
+ }
110
+ .eds-checkbox--disabled {
111
+ pointer-events: none;
112
+ }
113
+ .eds-checkbox--disabled .eds-checkbox__label {
114
+ opacity: 0.5;
115
+ }
116
+ .eds-checkbox--disabled .eds-checkbox__icon {
117
+ opacity: 0.5;
118
+ }
119
+ .eds-checkbox__icon {
120
+ box-sizing: border-box;
121
+ display: inline-flex;
122
+ justify-content: center;
123
+ align-items: center;
124
+ position: relative;
125
+ margin-right: 1rem;
126
+ height: 1.25rem;
127
+ width: 1.25rem;
128
+ border: 0.125rem solid var(--components-form-checkbox-standard-border);
129
+ border-radius: 0.125rem;
130
+ background-color: transparent;
131
+ transition: border-color 0.1s ease-in-out, background-color 0.1s ease-in-out;
132
+ }
133
+ .eds-checkbox__icon--reduced-click-area {
134
+ margin-right: 0;
135
+ }
136
+ .eds-contrast .eds-checkbox__icon {
137
+ border-color: var(--components-form-checkbox-contrast-border);
138
+ }
139
+ .eds-checkbox__icon .eds-checkbox-icon {
140
+ height: 1rem;
141
+ width: 1rem;
142
+ visibility: hidden;
143
+ }
144
+ .eds-checkbox__icon .eds-checkbox-icon path {
145
+ transform-origin: 50% 50%;
146
+ stroke-dasharray: 48;
147
+ stroke-dashoffset: 48;
148
+ stroke-width: 0.375rem;
149
+ }
150
+
151
+ @keyframes stroke {
152
+ 100% {
153
+ stroke-dashoffset: 0;
154
+ }
155
+ }
156
+ /* DO NOT CHANGE!*/
157
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
158
+ .eds-feedback-text {
159
+ display: flex;
160
+ align-items: center;
161
+ margin-top: 0.25rem;
162
+ }
163
+ .eds-feedback-text--info, .eds-feedback-text--information {
164
+ padding-left: calc(1rem + 0.125rem);
165
+ }
166
+ .eds-feedback-text__text {
167
+ color: var(--components-form-feedbacktext-information-standard-text);
168
+ }
169
+ .eds-contrast .eds-feedback-text__text {
170
+ color: var(--components-form-feedbacktext-information-contrast-text);
171
+ }
172
+
173
+ .eds-feedback-text__icon {
174
+ font-size: 1.5rem;
175
+ min-height: 1.5rem;
176
+ min-width: 1.5rem;
177
+ padding-right: 0.5rem;
178
+ position: relative;
179
+ top: -0.1rem;
180
+ }
181
+ .eds-feedback-text__icon--success {
182
+ color: var(--components-form-feedbacktext-success-standard-icon-fill);
183
+ }
184
+ .eds-feedback-text__icon--success circle {
185
+ fill: var(--components-form-feedbacktext-success-standard-icon-symbol);
186
+ }
187
+ .eds-contrast .eds-feedback-text__icon--success {
188
+ color: var(--components-form-feedbacktext-success-contrast-icon-fill);
189
+ }
190
+ .eds-contrast .eds-feedback-text__icon--success circle {
191
+ fill: var(--components-form-feedbacktext-success-contrast-icon-symbol);
192
+ }
193
+ .eds-feedback-text__icon--error, .eds-feedback-text__icon--negative {
194
+ color: var(--components-form-feedbacktext-negative-standard-icon-fill);
195
+ }
196
+ .eds-feedback-text__icon--error circle, .eds-feedback-text__icon--negative circle {
197
+ fill: var(--components-form-feedbacktext-negative-standard-icon-symbol);
198
+ }
199
+ .eds-contrast .eds-feedback-text__icon--error, .eds-contrast .eds-feedback-text__icon--negative {
200
+ color: var(--components-form-feedbacktext-negative-contrast-icon-fill);
201
+ }
202
+ .eds-contrast .eds-feedback-text__icon--error circle, .eds-contrast .eds-feedback-text__icon--negative circle {
203
+ fill: var(--components-form-feedbacktext-negative-contrast-icon-symbol);
204
+ }
205
+ .eds-feedback-text__icon--info, .eds-feedback-text__icon--information {
206
+ color: var(--components-form-feedbacktext-information-standard-icon-fill);
207
+ }
208
+ .eds-feedback-text__icon--info circle, .eds-feedback-text__icon--information circle {
209
+ fill: var(--components-form-feedbacktext-information-standard-icon-symbol);
210
+ }
211
+ .eds-contrast .eds-feedback-text__icon--info, .eds-contrast .eds-feedback-text__icon--information {
212
+ color: var(--components-form-feedbacktext-information-contrast-icon-fill);
213
+ }
214
+ .eds-contrast .eds-feedback-text__icon--info circle, .eds-contrast .eds-feedback-text__icon--information circle {
215
+ fill: var(--components-form-feedbacktext-information-contrast-icon-symbol);
216
+ }
217
+ .eds-feedback-text__icon--warning {
218
+ color: var(--components-form-feedbacktext-warning-standard-icon-fill);
219
+ }
220
+ .eds-feedback-text__icon--warning .svg-exclamation {
221
+ fill: var(--components-form-feedbacktext-warning-standard-icon-symbol);
222
+ }
223
+ .eds-contrast .eds-feedback-text__icon--warning {
224
+ color: var(--components-form-feedbacktext-warning-contrast-icon-fill);
225
+ }
226
+ .eds-contrast .eds-feedback-text__icon--warning circle {
227
+ fill: var(--components-form-feedbacktext-warning-contrast-icon-symbol);
5
228
  }
6
229
  /* DO NOT CHANGE!*/
7
230
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
@@ -174,271 +397,48 @@
174
397
  -moz-transition: opacity 0.2s ease-in-out;
175
398
  transition: opacity 0.2s ease-in-out;
176
399
  }
177
- .eds-form-control::placeholder {
178
- opacity: 0;
179
- transition: opacity 0.2s ease-in-out;
180
- }
181
- .eds-form-control:focus {
182
- outline: none;
183
- }
184
- .eds-form-control:focus::-moz-placeholder {
185
- opacity: 1;
186
- }
187
- .eds-form-control:focus::placeholder {
188
- opacity: 1;
189
- }
190
- .eds-form-control__prepend, .eds-form-control__append {
191
- position: relative;
192
- line-height: inherit;
193
- }
194
- .eds-form-control__prepend--tooltip, .eds-form-control__append--tooltip {
195
- all: unset;
196
- position: absolute;
197
- display: flex;
198
- align-items: center;
199
- justify-content: center;
200
- height: 1.5rem;
201
- width: 1.5rem;
202
- right: -2rem;
203
- border-radius: 100%;
204
- color: var(--primary-text-color);
205
- cursor: pointer;
206
- }
207
- .eds-form-control__prepend {
208
- margin-right: 0.75rem;
209
- margin-left: 0;
210
- }
211
- .eds-form-control__append {
212
- margin-right: 0;
213
- margin-left: 0.75rem;
214
- }
215
- /* DO NOT CHANGE!*/
216
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
217
- .eds-feedback-text {
218
- display: flex;
219
- align-items: center;
220
- margin-top: 0.25rem;
221
- }
222
- .eds-feedback-text--info, .eds-feedback-text--information {
223
- padding-left: calc(1rem + 0.125rem);
224
- }
225
- .eds-feedback-text__text {
226
- color: var(--components-form-feedbacktext-information-standard-text);
227
- }
228
- .eds-contrast .eds-feedback-text__text {
229
- color: var(--components-form-feedbacktext-information-contrast-text);
230
- }
231
-
232
- .eds-feedback-text__icon {
233
- font-size: 1.5rem;
234
- min-height: 1.5rem;
235
- min-width: 1.5rem;
236
- padding-right: 0.5rem;
237
- position: relative;
238
- top: -0.1rem;
239
- }
240
- .eds-feedback-text__icon--success {
241
- color: var(--components-form-feedbacktext-success-standard-icon-fill);
242
- }
243
- .eds-feedback-text__icon--success circle {
244
- fill: var(--components-form-feedbacktext-success-standard-icon-symbol);
245
- }
246
- .eds-contrast .eds-feedback-text__icon--success {
247
- color: var(--components-form-feedbacktext-success-contrast-icon-fill);
248
- }
249
- .eds-contrast .eds-feedback-text__icon--success circle {
250
- fill: var(--components-form-feedbacktext-success-contrast-icon-symbol);
251
- }
252
- .eds-feedback-text__icon--error, .eds-feedback-text__icon--negative {
253
- color: var(--components-form-feedbacktext-negative-standard-icon-fill);
254
- }
255
- .eds-feedback-text__icon--error circle, .eds-feedback-text__icon--negative circle {
256
- fill: var(--components-form-feedbacktext-negative-standard-icon-symbol);
257
- }
258
- .eds-contrast .eds-feedback-text__icon--error, .eds-contrast .eds-feedback-text__icon--negative {
259
- color: var(--components-form-feedbacktext-negative-contrast-icon-fill);
260
- }
261
- .eds-contrast .eds-feedback-text__icon--error circle, .eds-contrast .eds-feedback-text__icon--negative circle {
262
- fill: var(--components-form-feedbacktext-negative-contrast-icon-symbol);
263
- }
264
- .eds-feedback-text__icon--info, .eds-feedback-text__icon--information {
265
- color: var(--components-form-feedbacktext-information-standard-icon-fill);
266
- }
267
- .eds-feedback-text__icon--info circle, .eds-feedback-text__icon--information circle {
268
- fill: var(--components-form-feedbacktext-information-standard-icon-symbol);
269
- }
270
- .eds-contrast .eds-feedback-text__icon--info, .eds-contrast .eds-feedback-text__icon--information {
271
- color: var(--components-form-feedbacktext-information-contrast-icon-fill);
272
- }
273
- .eds-contrast .eds-feedback-text__icon--info circle, .eds-contrast .eds-feedback-text__icon--information circle {
274
- fill: var(--components-form-feedbacktext-information-contrast-icon-symbol);
275
- }
276
- .eds-feedback-text__icon--warning {
277
- color: var(--components-form-feedbacktext-warning-standard-icon-fill);
278
- }
279
- .eds-feedback-text__icon--warning .svg-exclamation {
280
- fill: var(--components-form-feedbacktext-warning-standard-icon-symbol);
281
- }
282
- .eds-contrast .eds-feedback-text__icon--warning {
283
- color: var(--components-form-feedbacktext-warning-contrast-icon-fill);
284
- }
285
- .eds-contrast .eds-feedback-text__icon--warning circle {
286
- fill: var(--components-form-feedbacktext-warning-contrast-icon-symbol);
287
- }
288
- /* DO NOT CHANGE!*/
289
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
290
- .eds-checkbox__container {
291
- display: flex;
292
- align-items: center;
293
- position: relative;
294
- -webkit-appearance: none;
295
- -moz-appearance: none;
296
- appearance: none;
297
- cursor: pointer;
298
- -webkit-user-select: none;
299
- -moz-user-select: none;
300
- user-select: none;
301
- width: -moz-fit-content;
302
- width: fit-content;
303
- margin: 0.5rem 0;
304
- }
305
- .eds-checkbox__container--reduced-click-area {
306
- height: -moz-fit-content;
307
- height: fit-content;
308
- }
309
- .eds-checkbox__container input {
310
- position: absolute;
311
- opacity: 0;
312
- height: 0;
313
- width: 0;
314
- }
315
- .eds-checkbox__container input:checked + .eds-checkbox__icon, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon {
316
- background-color: var(--components-form-checkbox-standard-fill-selected);
317
- }
318
- .eds-checkbox__container input:checked + .eds-checkbox__icon .eds-checkbox-icon, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon .eds-checkbox-icon {
319
- visibility: visible;
320
- }
321
- .eds-checkbox__container input:checked + .eds-checkbox__icon .eds-checkbox-icon path, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon .eds-checkbox-icon path {
322
- stroke: var(--components-form-checkbox-standard-icon);
323
- animation: stroke ease-in-out 0.2s 0.1s forwards;
324
- }
325
- .eds-checkbox__container input:checked + .eds-checkbox__icon .eds-checkbox-icon rect, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon .eds-checkbox-icon rect {
326
- fill: var(--components-form-checkbox-standard-icon);
327
- }
328
- .eds-checkbox__container input:checked + .eds-checkbox__icon--disabled, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon--disabled {
329
- opacity: 0.5;
330
- }
331
- .eds-checkbox__container input:checked + .eds-checkbox__icon--disabled path {
332
- opacity: 0.5;
333
- }
334
- .eds-checkbox__container input:checked + .eds-checkbox__icon--disabled rect {
335
- opacity: 0.5;
336
- }
337
- .eds-checkbox__container input:indeterminate + .eds-checkbox__icon--disabled path {
338
- opacity: 0.5;
339
- }
340
- .eds-checkbox__container input:indeterminate + .eds-checkbox__icon--disabled rect {
341
- opacity: 0.5;
342
- }
343
- .eds-contrast .eds-checkbox__container input:checked + .eds-checkbox__icon, .eds-contrast .eds-checkbox__container input:indeterminate + .eds-checkbox__icon {
344
- background-color: var(--components-form-checkbox-contrast-fill-selected);
345
- }
346
- .eds-contrast .eds-checkbox__container input:checked + .eds-checkbox__icon path, .eds-contrast .eds-checkbox__container input:indeterminate + .eds-checkbox__icon path {
347
- stroke: var(--components-form-checkbox-contrast-icon);
348
- }
349
- .eds-contrast .eds-checkbox__container input:checked + .eds-checkbox__icon rect, .eds-contrast .eds-checkbox__container input:indeterminate + .eds-checkbox__icon rect {
350
- fill: var(--components-form-checkbox-contrast-icon);
351
- }
352
- .eds-checkbox__container:hover input + .eds-checkbox__icon {
353
- border-color: var(--components-form-checkbox-standard-border);
354
- background-color: var(--components-form-checkbox-standard-fill-hover);
355
- }
356
- .eds-contrast .eds-checkbox__container:hover input + .eds-checkbox__icon {
357
- border-color: var(--components-form-checkbox-contrast-border);
358
- background-color: var(--components-form-checkbox-contrast-fill-hover);
359
- }
360
- .eds-checkbox__container:hover input:checked + .eds-checkbox__icon,
361
- .eds-checkbox__container:hover input:indeterminate + .eds-checkbox__icon {
362
- border-color: transparent;
363
- background-color: var(--components-form-checkbox-standard-fill-selectedhover);
364
- }
365
- .eds-contrast .eds-checkbox__container:hover input:checked + .eds-checkbox__icon,
366
- .eds-contrast .eds-checkbox__container:hover input:indeterminate + .eds-checkbox__icon {
367
- background-color: var(--components-form-checkbox-contrast-fill-selectedhover);
368
- }
369
- .eds-checkbox__container:active input:checked + .eds-checkbox__icon,
370
- .eds-checkbox__container:active input:indeterminate + .eds-checkbox__icon {
371
- background-color: var(--components-form-checkbox-standard-fill-selected);
372
- }
373
- .eds-contrast .eds-checkbox__container:active input:checked + .eds-checkbox__icon,
374
- .eds-contrast .eds-checkbox__container:active input:indeterminate + .eds-checkbox__icon {
375
- background-color: var(--components-form-checkbox-contrast-fill-selected);
376
- }
377
- .eds-checkbox__container:focus + .eds-checkbox__icon,
378
- .eds-checkbox__container [focus-within] + .eds-checkbox__icon {
379
- outline: 2px solid #181c56;
380
- outline-color: var(--basecolors-stroke-focus-standard);
381
- outline-offset: 0.125rem;
382
- }
383
- .eds-checkbox__container:focus + .eds-checkbox__icon,
384
- .eds-checkbox__container :focus-within + .eds-checkbox__icon {
385
- outline: 2px solid #181c56;
386
- outline-color: var(--basecolors-stroke-focus-standard);
387
- outline-offset: 0.125rem;
388
- }
389
- .eds-contrast .eds-checkbox__container:focus + .eds-checkbox__icon,
390
- .eds-contrast .eds-checkbox__container [focus-within] + .eds-checkbox__icon {
391
- outline-color: var(--basecolors-stroke-focus-contrast);
392
- }
393
- .eds-contrast .eds-checkbox__container:focus + .eds-checkbox__icon,
394
- .eds-contrast .eds-checkbox__container :focus-within + .eds-checkbox__icon {
395
- outline-color: var(--basecolors-stroke-focus-contrast);
400
+ .eds-form-control::placeholder {
401
+ opacity: 0;
402
+ transition: opacity 0.2s ease-in-out;
396
403
  }
397
- .eds-checkbox--disabled {
398
- pointer-events: none;
404
+ .eds-form-control:focus {
405
+ outline: none;
399
406
  }
400
- .eds-checkbox--disabled .eds-checkbox__label {
401
- opacity: 0.5;
407
+ .eds-form-control:focus::-moz-placeholder {
408
+ opacity: 1;
402
409
  }
403
- .eds-checkbox--disabled .eds-checkbox__icon {
404
- opacity: 0.5;
410
+ .eds-form-control:focus::placeholder {
411
+ opacity: 1;
405
412
  }
406
- .eds-checkbox__icon {
407
- box-sizing: border-box;
408
- display: inline-flex;
409
- justify-content: center;
410
- align-items: center;
413
+ .eds-form-control__prepend, .eds-form-control__append {
411
414
  position: relative;
412
- margin-right: 1rem;
413
- height: 1.25rem;
414
- width: 1.25rem;
415
- border: 0.125rem solid var(--components-form-checkbox-standard-border);
416
- border-radius: 0.125rem;
417
- background-color: transparent;
418
- transition: border-color 0.1s ease-in-out, background-color 0.1s ease-in-out;
419
- }
420
- .eds-checkbox__icon--reduced-click-area {
421
- margin-right: 0;
415
+ line-height: inherit;
422
416
  }
423
- .eds-contrast .eds-checkbox__icon {
424
- border-color: var(--components-form-checkbox-contrast-border);
417
+ .eds-form-control__prepend--tooltip, .eds-form-control__append--tooltip {
418
+ all: unset;
419
+ position: absolute;
420
+ display: flex;
421
+ align-items: center;
422
+ justify-content: center;
423
+ height: 1.5rem;
424
+ width: 1.5rem;
425
+ right: -2rem;
426
+ border-radius: 100%;
427
+ color: var(--primary-text-color);
428
+ cursor: pointer;
425
429
  }
426
- .eds-checkbox__icon .eds-checkbox-icon {
427
- height: 1rem;
428
- width: 1rem;
429
- visibility: hidden;
430
+ .eds-form-control__prepend {
431
+ margin-right: 0.75rem;
432
+ margin-left: 0;
430
433
  }
431
- .eds-checkbox__icon .eds-checkbox-icon path {
432
- transform-origin: 50% 50%;
433
- stroke-dasharray: 48;
434
- stroke-dashoffset: 48;
435
- stroke-width: 0.375rem;
434
+ .eds-form-control__append {
435
+ margin-right: 0;
436
+ margin-left: 0.75rem;
436
437
  }
437
-
438
- @keyframes stroke {
439
- 100% {
440
- stroke-dashoffset: 0;
441
- }
438
+ .eds-fieldset {
439
+ margin: 0;
440
+ padding: 0;
441
+ border: 0;
442
442
  }
443
443
  /* DO NOT CHANGE!*/
444
444
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
@@ -543,88 +543,6 @@
543
543
  }
544
544
  /* DO NOT CHANGE!*/
545
545
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
546
- .eds-form-component--radio__container {
547
- display: flex;
548
- justify-content: center;
549
- align-items: center;
550
- position: relative;
551
- cursor: pointer;
552
- height: 2rem;
553
- width: -moz-fit-content;
554
- width: fit-content;
555
- -webkit-user-select: none;
556
- -moz-user-select: none;
557
- user-select: none;
558
- }
559
- .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio {
560
- background-color: var(--components-form-radio-standard-fill-hover);
561
- }
562
- .eds-contrast .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio {
563
- background-color: var(--components-form-radio-contrast-fill-hover);
564
- }
565
- .eds-form-component--radio__container input {
566
- position: absolute;
567
- opacity: 0;
568
- cursor: pointer;
569
- height: 0;
570
- width: 0;
571
- }
572
- .eds-form-component--radio__container input:checked ~ .eds-form-component--radio__radio .eds-form-component--radio__circle {
573
- height: 0.625rem;
574
- width: 0.625rem;
575
- }
576
- .eds-form-component--radio__container input:focus ~ .eds-form-component--radio__radio {
577
- outline: 2px solid #181c56;
578
- outline-color: var(--basecolors-stroke-focus-standard);
579
- outline-offset: 0.125rem;
580
- }
581
- .eds-contrast .eds-form-component--radio__container input:focus ~ .eds-form-component--radio__radio {
582
- outline-color: var(--basecolors-stroke-focus-contrast);
583
- }
584
- .eds-form-component--radio__container .eds-form-component--radio__radio {
585
- position: relative;
586
- height: 1.25rem;
587
- width: 1.25rem;
588
- margin-right: 1rem;
589
- background-color: var(--components-form-radio-standard-fill-default);
590
- border: 0.125rem solid var(--components-form-radio-standard-border);
591
- border-radius: 50%;
592
- display: flex;
593
- align-items: center;
594
- justify-content: center;
595
- }
596
- .eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio {
597
- background-color: var(--components-form-radio-contrast-fill-default);
598
- border-color: var(--components-form-radio-contrast-border);
599
- }
600
- .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled {
601
- background: var(--components-form-baseform-contrast-fill-disabled);
602
- border-color: var(--components-form-baseform-contrast-text-disabled);
603
- cursor: not-allowed;
604
- }
605
- .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled:hover {
606
- border-color: var(--components-form-baseform-contrast-text-disabled);
607
- }
608
- .eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled {
609
- background: var(--components-form-baseform-contrast-fill-disabled);
610
- border-color: var(--components-form-baseform-contrast-text-disabled);
611
- }
612
- .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled ~ .eds-form-component--radio__label {
613
- color: var(--components-form-baseform-contrast-text-disabled);
614
- }
615
- .eds-form-component--radio__container .eds-form-component--radio__radio .eds-form-component--radio__circle {
616
- display: block;
617
- width: 0;
618
- height: 0;
619
- border-radius: 50%;
620
- background-color: var(--components-form-radio-standard-fill-selected);
621
- transition: width 0.1s ease-in-out, height 0.1s ease-in-out;
622
- }
623
- .eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio .eds-form-component--radio__circle {
624
- background-color: var(--components-form-radio-contrast-icon);
625
- }
626
- /* DO NOT CHANGE!*/
627
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
628
546
  .eds-switch {
629
547
  cursor: pointer;
630
548
  -webkit-user-select: none;
@@ -744,6 +662,88 @@
744
662
  }
745
663
  /* DO NOT CHANGE!*/
746
664
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
665
+ .eds-form-component--radio__container {
666
+ display: flex;
667
+ justify-content: center;
668
+ align-items: center;
669
+ position: relative;
670
+ cursor: pointer;
671
+ height: 2rem;
672
+ width: -moz-fit-content;
673
+ width: fit-content;
674
+ -webkit-user-select: none;
675
+ -moz-user-select: none;
676
+ user-select: none;
677
+ }
678
+ .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio {
679
+ background-color: var(--components-form-radio-standard-fill-hover);
680
+ }
681
+ .eds-contrast .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio {
682
+ background-color: var(--components-form-radio-contrast-fill-hover);
683
+ }
684
+ .eds-form-component--radio__container input {
685
+ position: absolute;
686
+ opacity: 0;
687
+ cursor: pointer;
688
+ height: 0;
689
+ width: 0;
690
+ }
691
+ .eds-form-component--radio__container input:checked ~ .eds-form-component--radio__radio .eds-form-component--radio__circle {
692
+ height: 0.625rem;
693
+ width: 0.625rem;
694
+ }
695
+ .eds-form-component--radio__container input:focus ~ .eds-form-component--radio__radio {
696
+ outline: 2px solid #181c56;
697
+ outline-color: var(--basecolors-stroke-focus-standard);
698
+ outline-offset: 0.125rem;
699
+ }
700
+ .eds-contrast .eds-form-component--radio__container input:focus ~ .eds-form-component--radio__radio {
701
+ outline-color: var(--basecolors-stroke-focus-contrast);
702
+ }
703
+ .eds-form-component--radio__container .eds-form-component--radio__radio {
704
+ position: relative;
705
+ height: 1.25rem;
706
+ width: 1.25rem;
707
+ margin-right: 1rem;
708
+ background-color: var(--components-form-radio-standard-fill-default);
709
+ border: 0.125rem solid var(--components-form-radio-standard-border);
710
+ border-radius: 50%;
711
+ display: flex;
712
+ align-items: center;
713
+ justify-content: center;
714
+ }
715
+ .eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio {
716
+ background-color: var(--components-form-radio-contrast-fill-default);
717
+ border-color: var(--components-form-radio-contrast-border);
718
+ }
719
+ .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled {
720
+ background: var(--components-form-baseform-contrast-fill-disabled);
721
+ border-color: var(--components-form-baseform-contrast-text-disabled);
722
+ cursor: not-allowed;
723
+ }
724
+ .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled:hover {
725
+ border-color: var(--components-form-baseform-contrast-text-disabled);
726
+ }
727
+ .eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled {
728
+ background: var(--components-form-baseform-contrast-fill-disabled);
729
+ border-color: var(--components-form-baseform-contrast-text-disabled);
730
+ }
731
+ .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled ~ .eds-form-component--radio__label {
732
+ color: var(--components-form-baseform-contrast-text-disabled);
733
+ }
734
+ .eds-form-component--radio__container .eds-form-component--radio__radio .eds-form-component--radio__circle {
735
+ display: block;
736
+ width: 0;
737
+ height: 0;
738
+ border-radius: 50%;
739
+ background-color: var(--components-form-radio-standard-fill-selected);
740
+ transition: width 0.1s ease-in-out, height 0.1s ease-in-out;
741
+ }
742
+ .eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio .eds-form-component--radio__circle {
743
+ background-color: var(--components-form-radio-contrast-icon);
744
+ }
745
+ /* DO NOT CHANGE!*/
746
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
747
747
  .eds-input-panel[focus-within] .eds-input-panel__container {
748
748
  outline: 2px solid #181c56;
749
749
  outline-color: var(--basecolors-stroke-focus-standard);
@@ -1104,17 +1104,6 @@ input:disabled + .eds-input-panel__container {
1104
1104
  }
1105
1105
  /* DO NOT CHANGE!*/
1106
1106
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
1107
- .eds-segmented-control {
1108
- margin-top: 0.25rem;
1109
- display: flex;
1110
- background: var(--components-form-segmentedcontrol-standard-background);
1111
- border-radius: 0.5rem;
1112
- }
1113
- .eds-contrast .eds-segmented-control {
1114
- background: var(--components-form-segmentedcontrol-contrast-background);
1115
- }
1116
- /* DO NOT CHANGE!*/
1117
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
1118
1107
  .eds-segmented-choice {
1119
1108
  display: block;
1120
1109
  flex: 1 1 0px;
@@ -1197,6 +1186,17 @@ input:disabled + .eds-input-panel__container {
1197
1186
  }
1198
1187
  /* DO NOT CHANGE!*/
1199
1188
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
1189
+ .eds-segmented-control {
1190
+ margin-top: 0.25rem;
1191
+ display: flex;
1192
+ background: var(--components-form-segmentedcontrol-standard-background);
1193
+ border-radius: 0.5rem;
1194
+ }
1195
+ .eds-contrast .eds-segmented-control {
1196
+ background: var(--components-form-segmentedcontrol-contrast-background);
1197
+ }
1198
+ /* DO NOT CHANGE!*/
1199
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
1200
1200
  /* DO NOT CHANGE!*/
1201
1201
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
1202
1202
  /* DO NOT CHANGE!*/
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@entur/form",
3
- "version": "8.1.4",
3
+ "version": "8.1.5-beta.0",
4
4
  "license": "EUPL-1.2",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/form.esm.js",
@@ -27,12 +27,12 @@
27
27
  "react-dom": ">=16.8.0"
28
28
  },
29
29
  "dependencies": {
30
- "@entur/icons": "^7.4.1",
31
- "@entur/tokens": "^3.17.1",
32
- "@entur/tooltip": "^5.1.0",
33
- "@entur/typography": "^1.8.46",
30
+ "@entur/icons": "^7.4.2-beta.0",
31
+ "@entur/tokens": "^3.17.2-beta.0",
32
+ "@entur/tooltip": "^5.1.1-beta.0",
33
+ "@entur/typography": "^1.8.47-beta.0",
34
34
  "@entur/utils": "^0.12.0",
35
35
  "classnames": "^2.3.1"
36
36
  },
37
- "gitHead": "7df4cea445e3dac77f80619ea0c298dc0b5c31e0"
37
+ "gitHead": "f6ea45ed1980eeed83c71cbb049cf726815dbb3d"
38
38
  }