@entur/form 7.1.9 → 7.1.10

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 +289 -289
  2. package/package.json +5 -5
package/dist/styles.css CHANGED
@@ -1,157 +1,187 @@
1
1
  /* DO NOT CHANGE!*/
2
2
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
3
- .eds-checkbox__container {
4
- display: flex;
3
+ .eds-form-control-wrapper {
5
4
  align-items: center;
5
+ background-color: var(--components-form-baseform-standard-fill-default);
6
+ border-radius: 0.25rem;
7
+ border: 0.125rem solid var(--components-form-baseform-standard-border-default);
8
+ box-shadow: 0 0 0 transparent;
9
+ color: var(--components-form-baseform-standard-text-content);
10
+ display: flex;
6
11
  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;
12
+ width: 100%;
13
+ min-height: 3rem;
14
+ transition: border-color 0.1s ease-in-out;
17
15
  }
18
- .eds-checkbox__container--reduced-click-area {
19
- height: -moz-fit-content;
20
- height: fit-content;
16
+ .eds-form-control-wrapper[focus-within], .eds-form-control-wrapper:hover {
17
+ border-color: var(--components-form-baseform-standard-border-interactive);
21
18
  }
22
- .eds-checkbox__container input {
23
- position: absolute;
24
- opacity: 0;
25
- height: 0;
26
- width: 0;
19
+ .eds-form-control-wrapper:focus-within, .eds-form-control-wrapper:hover {
20
+ border-color: var(--components-form-baseform-standard-border-interactive);
27
21
  }
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);
22
+ .eds-contrast .eds-form-control-wrapper:hover {
23
+ border-color: var(--components-form-baseform-contrast-border-interactive);
30
24
  }
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;
25
+ .eds-form-control-wrapper[focus-within] {
26
+ outline: 1px solid var(--components-form-baseform-standard-border-interactive);
33
27
  }
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;
28
+ .eds-form-control-wrapper:focus-within {
29
+ outline: 1px solid var(--components-form-baseform-standard-border-interactive);
37
30
  }
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);
31
+ .eds-contrast .eds-form-control-wrapper[focus-within] {
32
+ outline: var(--components-form-baseform-contrast-border-interactive);
40
33
  }
41
- .eds-checkbox__container input:checked + .eds-checkbox__icon--disabled, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon--disabled {
42
- opacity: 0.5;
34
+ .eds-contrast .eds-form-control-wrapper:focus-within {
35
+ outline: var(--components-form-baseform-contrast-border-interactive);
43
36
  }
44
- .eds-checkbox__container input:checked + .eds-checkbox__icon--disabled path {
45
- opacity: 0.5;
37
+ .eds-form-control-wrapper ::-moz-placeholder {
38
+ color: var(--components-form-baseform-standard-text-label);
46
39
  }
47
- .eds-checkbox__container input:checked + .eds-checkbox__icon--disabled rect {
48
- opacity: 0.5;
40
+ .eds-form-control-wrapper ::placeholder {
41
+ color: var(--components-form-baseform-standard-text-label);
49
42
  }
50
- .eds-checkbox__container input:indeterminate + .eds-checkbox__icon--disabled path {
51
- opacity: 0.5;
43
+ .eds-form-control-wrapper--disabled {
44
+ border-color: transparent;
45
+ background-color: var(--components-form-baseform-standard-fill-disabled);
46
+ pointer-events: none;
47
+ color: var(--components-form-baseform-standard-text-disabled);
52
48
  }
53
- .eds-checkbox__container input:indeterminate + .eds-checkbox__icon--disabled rect {
54
- opacity: 0.5;
49
+ .eds-form-control-wrapper--disabled .eds-input-group__label {
50
+ color: var(--components-form-baseform-standard-text-disabled);
55
51
  }
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);
52
+ .eds-contrast .eds-form-control-wrapper--disabled {
53
+ border-color: transparent;
54
+ background-color: var(--components-form-baseform-contrast-fill-disabled);
55
+ color: var(--components-form-baseform-contrast-text-disabled);
58
56
  }
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);
57
+ .eds-contrast .eds-form-control-wrapper--disabled .eds-input-group__label {
58
+ color: var(--components-form-baseform-contrast-text-disabled);
61
59
  }
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);
60
+ .eds-form-control-wrapper--disabled::before, .eds-form-control-wrapper--disabled::after {
61
+ display: none;
64
62
  }
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);
63
+ .eds-form-control-wrapper--readonly {
64
+ border-color: transparent;
65
+ pointer-events: none;
66
+ cursor: default;
67
+ background: var(--components-form-baseform-standard-fill-readonly);
68
+ border: var(--components-form-baseform-standard-fill-readonly);
68
69
  }
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);
70
+ .eds-contrast .eds-form-control-wrapper--readonly {
71
+ background: var(--components-form-baseform-contrast-fill-readonly);
72
+ color: var(--components-form-baseform-contrast-text-description);
73
+ border: var(--components-form-baseform-contrast-fill-readonly);
72
74
  }
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);
75
+ .eds-contrast .eds-form-control-wrapper--readonly .eds-input-group__label {
76
+ color: var(--components-form-baseform-contrast-text-description);
77
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);
78
+ .eds-form-control-wrapper--readonly::before, .eds-form-control-wrapper--readonly::after {
79
+ display: none;
81
80
  }
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);
81
+ .eds-form-control-wrapper--size-medium .eds-form-control,
82
+ .eds-form-control-wrapper--size-medium .eds-form-control__append,
83
+ .eds-form-control-wrapper--size-medium .eds-form-control__prepend {
84
+ font-size: 1rem;
85
+ line-height: 1rem;
85
86
  }
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);
87
+ .eds-form-control-wrapper--size-large {
88
+ min-height: 4rem;
89
+ padding: 0 0.5rem;
89
90
  }
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;
91
+ .eds-form-control-wrapper--size-large::before, .eds-form-control-wrapper--size-large::after {
92
+ border-width: 0.25rem;
95
93
  }
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;
94
+ .eds-form-control-wrapper--size-large .eds-form-control,
95
+ .eds-form-control-wrapper--size-large .eds-form-control__append,
96
+ .eds-form-control-wrapper--size-large .eds-form-control__prepend {
97
+ font-size: 1.5rem;
98
+ line-height: 2.25rem;
101
99
  }
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);
100
+ .eds-form-control-wrapper--success {
101
+ border-color: var(--components-form-baseform-standard-border-success);
105
102
  }
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);
103
+ .eds-form-control-wrapper--success[focus-within] {
104
+ border-color: var(--components-form-baseform-standard-border-success);
109
105
  }
110
- .eds-checkbox--disabled {
111
- pointer-events: none;
106
+ .eds-form-control-wrapper--success:focus-within {
107
+ border-color: var(--components-form-baseform-standard-border-success);
112
108
  }
113
- .eds-checkbox--disabled .eds-checkbox__label {
114
- opacity: 0.5;
109
+ .eds-contrast .eds-form-control-wrapper--success {
110
+ border-color: var(--components-form-baseform-standard-border-success);
115
111
  }
116
- .eds-checkbox--disabled .eds-checkbox__icon {
117
- opacity: 0.5;
112
+ .eds-contrast .eds-form-control-wrapper--success[focus-within] {
113
+ border-color: var(--components-form-baseform-contrast-border-success);
118
114
  }
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;
115
+ .eds-contrast .eds-form-control-wrapper--success:focus-within {
116
+ border-color: var(--components-form-baseform-contrast-border-success);
132
117
  }
133
- .eds-checkbox__icon--reduced-click-area {
134
- margin-right: 0;
118
+ .eds-form-control-wrapper--error, .eds-form-control-wrapper--negative {
119
+ border-color: var(--components-form-baseform-standard-border-negative);
135
120
  }
136
- .eds-contrast .eds-checkbox__icon {
137
- border-color: var(--components-form-checkbox-contrast-border);
121
+ .eds-form-control-wrapper--error[focus-within], .eds-form-control-wrapper--negative[focus-within] {
122
+ border-color: var(--components-form-baseform-standard-border-negative);
138
123
  }
139
- .eds-checkbox__icon .eds-checkbox-icon {
140
- height: 1rem;
141
- width: 1rem;
142
- visibility: hidden;
124
+ .eds-form-control-wrapper--error:focus-within, .eds-form-control-wrapper--negative:focus-within {
125
+ border-color: var(--components-form-baseform-standard-border-negative);
143
126
  }
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;
127
+ .eds-contrast .eds-form-control-wrapper--error, .eds-contrast .eds-form-control-wrapper--negative {
128
+ border-color: var(--components-form-baseform-contrast-border-negative);
129
+ }
130
+ .eds-contrast .eds-form-control-wrapper--error[focus-within], .eds-contrast .eds-form-control-wrapper--negative[focus-within] {
131
+ border-color: var(--components-form-baseform-contrast-border-negative);
132
+ }
133
+ .eds-contrast .eds-form-control-wrapper--error:focus-within, .eds-contrast .eds-form-control-wrapper--negative:focus-within {
134
+ border-color: var(--components-form-baseform-contrast-border-negative);
149
135
  }
150
136
 
151
- @keyframes stroke {
152
- 100% {
153
- stroke-dashoffset: 0;
154
- }
137
+ .eds-form-control {
138
+ -webkit-appearance: none;
139
+ -moz-appearance: none;
140
+ appearance: none;
141
+ background-color: transparent;
142
+ border: 0;
143
+ color: var(--components-form-baseform-standard-text-content);
144
+ display: block;
145
+ font-family: inherit;
146
+ line-height: 1rem;
147
+ font-size: 1rem;
148
+ padding: 20px 1rem 0.25rem;
149
+ width: 100%;
150
+ }
151
+ .eds-form-control::-moz-placeholder {
152
+ opacity: 0;
153
+ -moz-transition: opacity 0.2s ease-in-out;
154
+ transition: opacity 0.2s ease-in-out;
155
+ }
156
+ .eds-form-control::placeholder {
157
+ opacity: 0;
158
+ transition: opacity 0.2s ease-in-out;
159
+ }
160
+ .eds-form-control:focus {
161
+ outline: none;
162
+ }
163
+ .eds-form-control:focus::-moz-placeholder {
164
+ opacity: 1;
165
+ }
166
+ .eds-form-control:focus::placeholder {
167
+ opacity: 1;
168
+ }
169
+ .eds-form-control__prepend, .eds-form-control__append {
170
+ position: relative;
171
+ margin: 0 1rem;
172
+ line-height: inherit;
173
+ }
174
+ .eds-form-control__prepend--tooltip, .eds-form-control__append--tooltip {
175
+ position: static;
176
+ }
177
+ .eds-form-control__prepend svg, .eds-form-control__append svg {
178
+ top: 0.125rem;
179
+ }
180
+ .eds-form-control__prepend {
181
+ margin-right: 0;
182
+ }
183
+ .eds-form-control__append {
184
+ margin-left: 0;
155
185
  }
156
186
  /* DO NOT CHANGE!*/
157
187
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
@@ -269,203 +299,173 @@
269
299
  }
270
300
  .eds-form-control-wrapper--size-large:focus-within .eds-input-group__label {
271
301
  top: 0.5rem;
272
- font-size: 0.875rem;
273
- line-height: 1rem;
274
- padding: 0;
275
- margin-left: 1rem;
276
- }
277
- .eds-contrast .eds-form-control-wrapper .eds-tooltip {
278
- background: var(--components-tooltip-tooltip-standard-fill);
279
- color: var(--components-tooltip-tooltip-standard-text);
280
- box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
281
- }
282
- .eds-form-control-wrapper .eds-tooltip::after {
283
- background: var(--components-tooltip-tooltip-standard-fill);
284
- }
285
- /* DO NOT CHANGE!*/
286
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
287
- .eds-form-control-wrapper {
288
- align-items: center;
289
- background-color: var(--components-form-baseform-standard-fill-default);
290
- border-radius: 0.25rem;
291
- border: 0.125rem solid var(--components-form-baseform-standard-border-default);
292
- box-shadow: 0 0 0 transparent;
293
- color: var(--components-form-baseform-standard-text-content);
294
- display: flex;
295
- position: relative;
296
- width: 100%;
297
- min-height: 3rem;
298
- transition: border-color 0.1s ease-in-out;
299
- }
300
- .eds-form-control-wrapper[focus-within], .eds-form-control-wrapper:hover {
301
- border-color: var(--components-form-baseform-standard-border-interactive);
302
- }
303
- .eds-form-control-wrapper:focus-within, .eds-form-control-wrapper:hover {
304
- border-color: var(--components-form-baseform-standard-border-interactive);
305
- }
306
- .eds-contrast .eds-form-control-wrapper:hover {
307
- border-color: var(--components-form-baseform-contrast-border-interactive);
308
- }
309
- .eds-form-control-wrapper[focus-within] {
310
- outline: 1px solid var(--components-form-baseform-standard-border-interactive);
311
- }
312
- .eds-form-control-wrapper:focus-within {
313
- outline: 1px solid var(--components-form-baseform-standard-border-interactive);
314
- }
315
- .eds-contrast .eds-form-control-wrapper[focus-within] {
316
- outline: var(--components-form-baseform-contrast-border-interactive);
317
- }
318
- .eds-contrast .eds-form-control-wrapper:focus-within {
319
- outline: var(--components-form-baseform-contrast-border-interactive);
320
- }
321
- .eds-form-control-wrapper ::-moz-placeholder {
322
- color: var(--components-form-baseform-standard-text-label);
323
- }
324
- .eds-form-control-wrapper ::placeholder {
325
- color: var(--components-form-baseform-standard-text-label);
326
- }
327
- .eds-form-control-wrapper--disabled {
328
- border-color: transparent;
329
- background-color: var(--components-form-baseform-standard-fill-disabled);
330
- pointer-events: none;
331
- color: var(--components-form-baseform-standard-text-disabled);
302
+ font-size: 0.875rem;
303
+ line-height: 1rem;
304
+ padding: 0;
305
+ margin-left: 1rem;
332
306
  }
333
- .eds-form-control-wrapper--disabled .eds-input-group__label {
334
- color: var(--components-form-baseform-standard-text-disabled);
307
+ .eds-contrast .eds-form-control-wrapper .eds-tooltip {
308
+ background: var(--components-tooltip-tooltip-standard-fill);
309
+ color: var(--components-tooltip-tooltip-standard-text);
310
+ box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
335
311
  }
336
- .eds-contrast .eds-form-control-wrapper--disabled {
337
- border-color: transparent;
338
- background-color: var(--components-form-baseform-contrast-fill-disabled);
339
- color: var(--components-form-baseform-contrast-text-disabled);
312
+ .eds-form-control-wrapper .eds-tooltip::after {
313
+ background: var(--components-tooltip-tooltip-standard-fill);
340
314
  }
341
- .eds-contrast .eds-form-control-wrapper--disabled .eds-input-group__label {
342
- color: var(--components-form-baseform-contrast-text-disabled);
315
+ /* DO NOT CHANGE!*/
316
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
317
+ .eds-checkbox__container {
318
+ display: flex;
319
+ align-items: center;
320
+ position: relative;
321
+ -webkit-appearance: none;
322
+ -moz-appearance: none;
323
+ appearance: none;
324
+ cursor: pointer;
325
+ -webkit-user-select: none;
326
+ -moz-user-select: none;
327
+ user-select: none;
328
+ width: -moz-fit-content;
329
+ width: fit-content;
330
+ margin: 0.5rem 0;
343
331
  }
344
- .eds-form-control-wrapper--disabled::before, .eds-form-control-wrapper--disabled::after {
345
- display: none;
332
+ .eds-checkbox__container--reduced-click-area {
333
+ height: -moz-fit-content;
334
+ height: fit-content;
346
335
  }
347
- .eds-form-control-wrapper--readonly {
348
- border-color: transparent;
349
- pointer-events: none;
350
- cursor: default;
351
- background: var(--components-form-baseform-standard-fill-readonly);
352
- border: var(--components-form-baseform-standard-fill-readonly);
336
+ .eds-checkbox__container input {
337
+ position: absolute;
338
+ opacity: 0;
339
+ height: 0;
340
+ width: 0;
353
341
  }
354
- .eds-contrast .eds-form-control-wrapper--readonly {
355
- background: var(--components-form-baseform-contrast-fill-readonly);
356
- color: var(--components-form-baseform-contrast-text-description);
357
- border: var(--components-form-baseform-contrast-fill-readonly);
342
+ .eds-checkbox__container input:checked + .eds-checkbox__icon, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon {
343
+ background-color: var(--components-form-checkbox-standard-fill-selected);
358
344
  }
359
- .eds-contrast .eds-form-control-wrapper--readonly .eds-input-group__label {
360
- color: var(--components-form-baseform-contrast-text-description);
345
+ .eds-checkbox__container input:checked + .eds-checkbox__icon .eds-checkbox-icon, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon .eds-checkbox-icon {
346
+ visibility: visible;
361
347
  }
362
- .eds-form-control-wrapper--readonly::before, .eds-form-control-wrapper--readonly::after {
363
- display: none;
348
+ .eds-checkbox__container input:checked + .eds-checkbox__icon .eds-checkbox-icon path, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon .eds-checkbox-icon path {
349
+ stroke: var(--components-form-checkbox-standard-icon);
350
+ animation: stroke ease-in-out 0.2s 0.1s forwards;
364
351
  }
365
- .eds-form-control-wrapper--size-medium .eds-form-control,
366
- .eds-form-control-wrapper--size-medium .eds-form-control__append,
367
- .eds-form-control-wrapper--size-medium .eds-form-control__prepend {
368
- font-size: 1rem;
369
- line-height: 1rem;
352
+ .eds-checkbox__container input:checked + .eds-checkbox__icon .eds-checkbox-icon rect, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon .eds-checkbox-icon rect {
353
+ fill: var(--components-form-checkbox-standard-icon);
370
354
  }
371
- .eds-form-control-wrapper--size-large {
372
- min-height: 4rem;
373
- padding: 0 0.5rem;
355
+ .eds-checkbox__container input:checked + .eds-checkbox__icon--disabled, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon--disabled {
356
+ opacity: 0.5;
374
357
  }
375
- .eds-form-control-wrapper--size-large::before, .eds-form-control-wrapper--size-large::after {
376
- border-width: 0.25rem;
358
+ .eds-checkbox__container input:checked + .eds-checkbox__icon--disabled path {
359
+ opacity: 0.5;
377
360
  }
378
- .eds-form-control-wrapper--size-large .eds-form-control,
379
- .eds-form-control-wrapper--size-large .eds-form-control__append,
380
- .eds-form-control-wrapper--size-large .eds-form-control__prepend {
381
- font-size: 1.5rem;
382
- line-height: 2.25rem;
361
+ .eds-checkbox__container input:checked + .eds-checkbox__icon--disabled rect {
362
+ opacity: 0.5;
383
363
  }
384
- .eds-form-control-wrapper--success {
385
- border-color: var(--components-form-baseform-standard-border-success);
364
+ .eds-checkbox__container input:indeterminate + .eds-checkbox__icon--disabled path {
365
+ opacity: 0.5;
386
366
  }
387
- .eds-form-control-wrapper--success[focus-within] {
388
- border-color: var(--components-form-baseform-standard-border-success);
367
+ .eds-checkbox__container input:indeterminate + .eds-checkbox__icon--disabled rect {
368
+ opacity: 0.5;
389
369
  }
390
- .eds-form-control-wrapper--success:focus-within {
391
- border-color: var(--components-form-baseform-standard-border-success);
370
+ .eds-contrast .eds-checkbox__container input:checked + .eds-checkbox__icon, .eds-contrast .eds-checkbox__container input:indeterminate + .eds-checkbox__icon {
371
+ background-color: var(--components-form-checkbox-contrast-fill-selected);
392
372
  }
393
- .eds-contrast .eds-form-control-wrapper--success {
394
- border-color: var(--components-form-baseform-standard-border-success);
373
+ .eds-contrast .eds-checkbox__container input:checked + .eds-checkbox__icon path, .eds-contrast .eds-checkbox__container input:indeterminate + .eds-checkbox__icon path {
374
+ stroke: var(--components-form-checkbox-contrast-icon);
395
375
  }
396
- .eds-contrast .eds-form-control-wrapper--success[focus-within] {
397
- border-color: var(--components-form-baseform-contrast-border-success);
376
+ .eds-contrast .eds-checkbox__container input:checked + .eds-checkbox__icon rect, .eds-contrast .eds-checkbox__container input:indeterminate + .eds-checkbox__icon rect {
377
+ fill: var(--components-form-checkbox-contrast-icon);
398
378
  }
399
- .eds-contrast .eds-form-control-wrapper--success:focus-within {
400
- border-color: var(--components-form-baseform-contrast-border-success);
379
+ .eds-checkbox__container:hover input + .eds-checkbox__icon {
380
+ border-color: var(--components-form-checkbox-standard-border);
381
+ background-color: var(--components-form-checkbox-standard-fill-hover);
401
382
  }
402
- .eds-form-control-wrapper--error, .eds-form-control-wrapper--negative {
403
- border-color: var(--components-form-baseform-standard-border-negative);
383
+ .eds-contrast .eds-checkbox__container:hover input + .eds-checkbox__icon {
384
+ border-color: var(--components-form-checkbox-contrast-border);
385
+ background-color: var(--components-form-checkbox-contrast-fill-hover);
404
386
  }
405
- .eds-form-control-wrapper--error[focus-within], .eds-form-control-wrapper--negative[focus-within] {
406
- border-color: var(--components-form-baseform-standard-border-negative);
387
+ .eds-checkbox__container:hover input:checked + .eds-checkbox__icon,
388
+ .eds-checkbox__container:hover input:indeterminate + .eds-checkbox__icon {
389
+ border-color: transparent;
390
+ background-color: var(--components-form-checkbox-standard-fill-selectedhover);
407
391
  }
408
- .eds-form-control-wrapper--error:focus-within, .eds-form-control-wrapper--negative:focus-within {
409
- border-color: var(--components-form-baseform-standard-border-negative);
392
+ .eds-contrast .eds-checkbox__container:hover input:checked + .eds-checkbox__icon,
393
+ .eds-contrast .eds-checkbox__container:hover input:indeterminate + .eds-checkbox__icon {
394
+ background-color: var(--components-form-checkbox-contrast-fill-selectedhover);
410
395
  }
411
- .eds-contrast .eds-form-control-wrapper--error, .eds-contrast .eds-form-control-wrapper--negative {
412
- border-color: var(--components-form-baseform-contrast-border-negative);
396
+ .eds-checkbox__container:active input:checked + .eds-checkbox__icon,
397
+ .eds-checkbox__container:active input:indeterminate + .eds-checkbox__icon {
398
+ background-color: var(--components-form-checkbox-standard-fill-selected);
413
399
  }
414
- .eds-contrast .eds-form-control-wrapper--error[focus-within], .eds-contrast .eds-form-control-wrapper--negative[focus-within] {
415
- border-color: var(--components-form-baseform-contrast-border-negative);
400
+ .eds-contrast .eds-checkbox__container:active input:checked + .eds-checkbox__icon,
401
+ .eds-contrast .eds-checkbox__container:active input:indeterminate + .eds-checkbox__icon {
402
+ background-color: var(--components-form-checkbox-contrast-fill-selected);
416
403
  }
417
- .eds-contrast .eds-form-control-wrapper--error:focus-within, .eds-contrast .eds-form-control-wrapper--negative:focus-within {
418
- border-color: var(--components-form-baseform-contrast-border-negative);
404
+ .eds-checkbox__container:focus + .eds-checkbox__icon,
405
+ .eds-checkbox__container [focus-within] + .eds-checkbox__icon {
406
+ outline: 2px solid #181c56;
407
+ outline-color: var(--basecolors-stroke-focus-standard);
408
+ outline-offset: 0.125rem;
419
409
  }
420
-
421
- .eds-form-control {
422
- -webkit-appearance: none;
423
- -moz-appearance: none;
424
- appearance: none;
425
- background-color: transparent;
426
- border: 0;
427
- color: var(--components-form-baseform-standard-text-content);
428
- display: block;
429
- font-family: inherit;
430
- line-height: 1rem;
431
- font-size: 1rem;
432
- padding: 20px 1rem 0.25rem;
433
- width: 100%;
410
+ .eds-checkbox__container:focus + .eds-checkbox__icon,
411
+ .eds-checkbox__container :focus-within + .eds-checkbox__icon {
412
+ outline: 2px solid #181c56;
413
+ outline-color: var(--basecolors-stroke-focus-standard);
414
+ outline-offset: 0.125rem;
434
415
  }
435
- .eds-form-control::-moz-placeholder {
436
- opacity: 0;
437
- -moz-transition: opacity 0.2s ease-in-out;
438
- transition: opacity 0.2s ease-in-out;
416
+ .eds-contrast .eds-checkbox__container:focus + .eds-checkbox__icon,
417
+ .eds-contrast .eds-checkbox__container [focus-within] + .eds-checkbox__icon {
418
+ outline-color: var(--basecolors-stroke-focus-contrast);
439
419
  }
440
- .eds-form-control::placeholder {
441
- opacity: 0;
442
- transition: opacity 0.2s ease-in-out;
420
+ .eds-contrast .eds-checkbox__container:focus + .eds-checkbox__icon,
421
+ .eds-contrast .eds-checkbox__container :focus-within + .eds-checkbox__icon {
422
+ outline-color: var(--basecolors-stroke-focus-contrast);
443
423
  }
444
- .eds-form-control:focus {
445
- outline: none;
424
+ .eds-checkbox--disabled {
425
+ pointer-events: none;
446
426
  }
447
- .eds-form-control:focus::-moz-placeholder {
448
- opacity: 1;
427
+ .eds-checkbox--disabled .eds-checkbox__label {
428
+ opacity: 0.5;
449
429
  }
450
- .eds-form-control:focus::placeholder {
451
- opacity: 1;
430
+ .eds-checkbox--disabled .eds-checkbox__icon {
431
+ opacity: 0.5;
452
432
  }
453
- .eds-form-control__prepend, .eds-form-control__append {
433
+ .eds-checkbox__icon {
434
+ box-sizing: border-box;
435
+ display: inline-flex;
436
+ justify-content: center;
437
+ align-items: center;
454
438
  position: relative;
455
- margin: 0 1rem;
456
- line-height: inherit;
439
+ margin-right: 1rem;
440
+ height: 1.25rem;
441
+ width: 1.25rem;
442
+ border: 0.125rem solid var(--components-form-checkbox-standard-border);
443
+ border-radius: 0.125rem;
444
+ background-color: transparent;
445
+ transition: border-color 0.1s ease-in-out, background-color 0.1s ease-in-out;
457
446
  }
458
- .eds-form-control__prepend--tooltip, .eds-form-control__append--tooltip {
459
- position: static;
447
+ .eds-checkbox__icon--reduced-click-area {
448
+ margin-right: 0;
460
449
  }
461
- .eds-form-control__prepend svg, .eds-form-control__append svg {
462
- top: 0.125rem;
450
+ .eds-contrast .eds-checkbox__icon {
451
+ border-color: var(--components-form-checkbox-contrast-border);
463
452
  }
464
- .eds-form-control__prepend {
465
- margin-right: 0;
453
+ .eds-checkbox__icon .eds-checkbox-icon {
454
+ height: 1rem;
455
+ width: 1rem;
456
+ visibility: hidden;
466
457
  }
467
- .eds-form-control__append {
468
- margin-left: 0;
458
+ .eds-checkbox__icon .eds-checkbox-icon path {
459
+ transform-origin: 50% 50%;
460
+ stroke-dasharray: 48;
461
+ stroke-dashoffset: 48;
462
+ stroke-width: 0.375rem;
463
+ }
464
+
465
+ @keyframes stroke {
466
+ 100% {
467
+ stroke-dashoffset: 0;
468
+ }
469
469
  }
470
470
  /* DO NOT CHANGE!*/
471
471
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
@@ -551,6 +551,13 @@
551
551
  }
552
552
  /* DO NOT CHANGE!*/
553
553
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
554
+ textarea.eds-form-control.eds-textarea {
555
+ min-height: 7.75rem;
556
+ resize: vertical;
557
+ line-height: 1.5rem;
558
+ }
559
+ /* DO NOT CHANGE!*/
560
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
554
561
  .eds-switch {
555
562
  cursor: pointer;
556
563
  -webkit-user-select: none;
@@ -670,13 +677,6 @@
670
677
  }
671
678
  /* DO NOT CHANGE!*/
672
679
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
673
- textarea.eds-form-control.eds-textarea {
674
- min-height: 7.75rem;
675
- resize: vertical;
676
- line-height: 1.5rem;
677
- }
678
- /* DO NOT CHANGE!*/
679
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
680
680
  .eds-input-panel[focus-within] .eds-input-panel__container {
681
681
  outline: 2px solid #181c56;
682
682
  outline-color: var(--basecolors-stroke-focus-standard);
@@ -831,6 +831,11 @@ input:disabled + .eds-input-panel__container {
831
831
  margin-top: 0.25rem;
832
832
  word-wrap: break-word;
833
833
  }
834
+ .eds-fieldset {
835
+ margin: 0;
836
+ padding: 0;
837
+ border: 0;
838
+ }
834
839
  /* DO NOT CHANGE!*/
835
840
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
836
841
  .eds-feedback-text {
@@ -904,11 +909,6 @@ input:disabled + .eds-input-panel__container {
904
909
  .eds-contrast .eds-feedback-text__icon--warning circle {
905
910
  fill: var(--components-form-feedbacktext-warning-contrast-icon-symbol);
906
911
  }
907
- .eds-fieldset {
908
- margin: 0;
909
- padding: 0;
910
- border: 0;
911
- }
912
912
  /* DO NOT CHANGE!*/
913
913
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
914
914
  .eds-textfield__clear-button {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@entur/form",
3
- "version": "7.1.9",
3
+ "version": "7.1.10",
4
4
  "license": "EUPL-1.2",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/form.esm.js",
@@ -27,12 +27,12 @@
27
27
  "react-dom": ">=16.8.0"
28
28
  },
29
29
  "dependencies": {
30
- "@entur/icons": "^6.17.0",
30
+ "@entur/icons": "^6.17.1",
31
31
  "@entur/tokens": "^3.15.0",
32
- "@entur/tooltip": "^2.7.8",
33
- "@entur/typography": "^1.8.37",
32
+ "@entur/tooltip": "^2.7.9",
33
+ "@entur/typography": "^1.8.38",
34
34
  "@entur/utils": "^0.11.1",
35
35
  "classnames": "^2.3.1"
36
36
  },
37
- "gitHead": "74491efb25596a135f38b50d15305803afe963ae"
37
+ "gitHead": "8f5dd2a35e3794050cdc8664efeb078254404632"
38
38
  }