@entur/form 5.2.3 → 5.3.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.
- package/CHANGELOG.md +6 -0
- package/dist/Switch.d.ts +18 -10
- package/dist/form.cjs.development.js +10 -2
- package/dist/form.cjs.development.js.map +1 -1
- package/dist/form.cjs.production.min.js +1 -1
- package/dist/form.cjs.production.min.js.map +1 -1
- package/dist/form.esm.js +11 -3
- package/dist/form.esm.js.map +1 -1
- package/dist/styles.css +311 -311
- package/package.json +2 -2
package/dist/styles.css
CHANGED
|
@@ -2,10 +2,201 @@
|
|
|
2
2
|
--eds-form: 1;
|
|
3
3
|
}/* DO NOT CHANGE!*/
|
|
4
4
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
.eds-form-control-wrapper {
|
|
6
|
+
--border-color: #181c56;
|
|
7
|
+
--border-color-hover: #aeb7e2;
|
|
8
|
+
align-items: center;
|
|
9
|
+
background-color: #ffffff;
|
|
10
|
+
border-radius: 0.25rem;
|
|
11
|
+
border: 0.125rem solid #d1d3d3;
|
|
12
|
+
box-shadow: 0 0 0 transparent;
|
|
13
|
+
color: #181c56;
|
|
14
|
+
display: flex;
|
|
15
|
+
position: relative;
|
|
16
|
+
width: 100%;
|
|
17
|
+
min-height: 3rem;
|
|
18
|
+
transition: border-color 0.1s ease-in-out;
|
|
19
|
+
--textarea-label-background: $colors-brand-white;
|
|
20
|
+
/*
|
|
21
|
+
Some input controls require a darker design while inside a contrast block.
|
|
22
|
+
These elements require the `--dark` modifier, even on the wrapper.
|
|
23
|
+
*/
|
|
24
|
+
}
|
|
25
|
+
.eds-contrast .eds-form-control-wrapper {
|
|
26
|
+
--border-color: #aeb7e2;
|
|
27
|
+
background-color: #ffffff;
|
|
28
|
+
border-color: #54568c;
|
|
29
|
+
}
|
|
30
|
+
.eds-form-control-wrapper:focus-within, .eds-form-control-wrapper:hover {
|
|
31
|
+
border-color: #181c56;
|
|
32
|
+
}
|
|
33
|
+
.eds-contrast .eds-form-control-wrapper:hover {
|
|
34
|
+
border-color: #aeb7e2;
|
|
35
|
+
background: #ebebf1;
|
|
36
|
+
}
|
|
37
|
+
.eds-form-control-wrapper:focus-within {
|
|
38
|
+
box-shadow: inset 0 0 0 1px var(--border-color);
|
|
39
|
+
}
|
|
40
|
+
.eds-contrast .eds-form-control-wrapper:focus-within {
|
|
41
|
+
border-color: #181c56;
|
|
42
|
+
--border-color: #aeb7e2;
|
|
43
|
+
box-shadow: 0 0 0 0.125rem var(--border-color);
|
|
44
|
+
}
|
|
45
|
+
.eds-form-control-wrapper ::placeholder {
|
|
46
|
+
color: #656782;
|
|
47
|
+
}
|
|
48
|
+
.eds-form-control-wrapper--disabled {
|
|
49
|
+
background-color: #e9e9e9;
|
|
50
|
+
color: #656782;
|
|
51
|
+
border-color: transparent;
|
|
52
|
+
pointer-events: none;
|
|
53
|
+
}
|
|
54
|
+
.eds-form-control-wrapper--disabled::before, .eds-form-control-wrapper--disabled::after {
|
|
55
|
+
display: none;
|
|
56
|
+
}
|
|
57
|
+
.eds-contrast .eds-form-control-wrapper--disabled {
|
|
58
|
+
background: #292b6a;
|
|
59
|
+
border-color: transparent;
|
|
60
|
+
color: #8285a8;
|
|
61
|
+
}
|
|
62
|
+
.eds-form-control-wrapper--readonly {
|
|
63
|
+
pointer-events: none;
|
|
64
|
+
cursor: default;
|
|
65
|
+
border-color: transparent;
|
|
66
|
+
background: #f8f8f8;
|
|
67
|
+
--textarea-label-background: $colors-greys-grey90;
|
|
68
|
+
}
|
|
69
|
+
.eds-contrast .eds-form-control-wrapper--readonly {
|
|
70
|
+
background: #292b6a;
|
|
71
|
+
--textarea-label-background: $colors-blues-blue10;
|
|
72
|
+
color: #ffffff;
|
|
73
|
+
border-color: transparent;
|
|
74
|
+
}
|
|
75
|
+
.eds-form-control-wrapper--readonly::before, .eds-form-control-wrapper--readonly::after {
|
|
76
|
+
display: none;
|
|
77
|
+
}
|
|
78
|
+
.eds-form-control-wrapper--size-medium .eds-form-control,
|
|
79
|
+
.eds-form-control-wrapper--size-medium .eds-form-control__append,
|
|
80
|
+
.eds-form-control-wrapper--size-medium .eds-form-control__prepend {
|
|
81
|
+
font-size: 1rem;
|
|
82
|
+
line-height: 1rem;
|
|
83
|
+
}
|
|
84
|
+
.eds-form-control-wrapper--size-large {
|
|
85
|
+
min-height: 4rem;
|
|
86
|
+
padding: 0 0.5rem;
|
|
87
|
+
}
|
|
88
|
+
.eds-form-control-wrapper--size-large::before, .eds-form-control-wrapper--size-large::after {
|
|
89
|
+
border-width: 0.25rem;
|
|
90
|
+
}
|
|
91
|
+
.eds-form-control-wrapper--size-large .eds-form-control,
|
|
92
|
+
.eds-form-control-wrapper--size-large .eds-form-control__append,
|
|
93
|
+
.eds-form-control-wrapper--size-large .eds-form-control__prepend {
|
|
94
|
+
font-size: 1.5rem;
|
|
95
|
+
line-height: 2.25rem;
|
|
96
|
+
}
|
|
97
|
+
.eds-form-control-wrapper--success {
|
|
98
|
+
border-color: #1a8e60;
|
|
99
|
+
--border-color: #1a8e60;
|
|
100
|
+
}
|
|
101
|
+
.eds-form-control-wrapper--success:hover {
|
|
102
|
+
border-color: #5ac39a;
|
|
103
|
+
}
|
|
104
|
+
.eds-form-control-wrapper--success:focus-within {
|
|
105
|
+
border-color: #1a8e60;
|
|
106
|
+
}
|
|
107
|
+
.eds-contrast .eds-form-control-wrapper--success {
|
|
108
|
+
border-color: #5ac39a;
|
|
109
|
+
--border-color: #5ac39a;
|
|
110
|
+
}
|
|
111
|
+
.eds-contrast .eds-form-control-wrapper--success:hover {
|
|
112
|
+
border-color: #1a8e60;
|
|
113
|
+
}
|
|
114
|
+
.eds-contrast .eds-form-control-wrapper--success:focus-within {
|
|
115
|
+
--border-color: #5ac39a;
|
|
116
|
+
border-color: #181c56;
|
|
117
|
+
}
|
|
118
|
+
.eds-form-control-wrapper--error {
|
|
119
|
+
border-color: #d31b1b;
|
|
120
|
+
--border-color: #d31b1b;
|
|
121
|
+
}
|
|
122
|
+
.eds-form-control-wrapper--error:hover {
|
|
123
|
+
border-color: #ff9494;
|
|
124
|
+
}
|
|
125
|
+
.eds-form-control-wrapper--error:focus-within {
|
|
126
|
+
border-color: #d31b1b;
|
|
127
|
+
}
|
|
128
|
+
.eds-contrast .eds-form-control-wrapper--error {
|
|
129
|
+
border-color: #ff9494;
|
|
130
|
+
--border-color: #ff9494;
|
|
131
|
+
}
|
|
132
|
+
.eds-contrast .eds-form-control-wrapper--error:hover {
|
|
133
|
+
border-color: #d31b1b;
|
|
134
|
+
}
|
|
135
|
+
.eds-contrast .eds-form-control-wrapper--error:focus-within {
|
|
136
|
+
border-color: #181c56;
|
|
137
|
+
--border-color: #ff9494;
|
|
138
|
+
}
|
|
139
|
+
.eds-contrast .eds-form-control-wrapper--dark {
|
|
140
|
+
background-color: #181c56;
|
|
141
|
+
color: #ffffff;
|
|
142
|
+
}
|
|
143
|
+
.eds-contrast .eds-form-control-wrapper--dark ::placeholder {
|
|
144
|
+
color: #aeb7e2;
|
|
145
|
+
}
|
|
146
|
+
.eds-contrast .eds-form-control-wrapper--dark:hover {
|
|
147
|
+
border-color: #aeb7e2;
|
|
148
|
+
}
|
|
149
|
+
.eds-contrast .eds-form-control-wrapper--dark:focus-within {
|
|
150
|
+
background-color: #292b6a;
|
|
151
|
+
border-color: #aeb7e2;
|
|
152
|
+
}
|
|
153
|
+
.eds-contrast .eds-form-control-wrapper--dark * {
|
|
154
|
+
background-color: transparent;
|
|
155
|
+
color: inherit;
|
|
156
|
+
}
|
|
157
|
+
.eds-contrast .eds-form-control-wrapper--dark.eds-form-control-wrapper--disabled {
|
|
158
|
+
background-color: #292b6a;
|
|
159
|
+
color: #8285a8;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.eds-form-control {
|
|
163
|
+
appearance: none;
|
|
164
|
+
background-color: transparent;
|
|
165
|
+
border: 0;
|
|
166
|
+
color: inherit;
|
|
167
|
+
display: block;
|
|
168
|
+
font-family: inherit;
|
|
169
|
+
line-height: 1rem;
|
|
170
|
+
font-size: 1rem;
|
|
171
|
+
padding: 20px 1rem 0.25rem;
|
|
172
|
+
width: 100%;
|
|
173
|
+
}
|
|
174
|
+
.eds-form-control::placeholder {
|
|
175
|
+
opacity: 0;
|
|
176
|
+
transition: opacity 0.2s ease-in-out;
|
|
177
|
+
}
|
|
178
|
+
.eds-form-control:focus {
|
|
179
|
+
outline: none;
|
|
180
|
+
}
|
|
181
|
+
.eds-form-control:focus::placeholder {
|
|
182
|
+
opacity: 1;
|
|
183
|
+
}
|
|
184
|
+
.eds-form-control__prepend, .eds-form-control__append {
|
|
185
|
+
position: relative;
|
|
186
|
+
margin: 0 1rem;
|
|
187
|
+
line-height: inherit;
|
|
188
|
+
}
|
|
189
|
+
.eds-form-control__prepend--tooltip, .eds-form-control__append--tooltip {
|
|
190
|
+
position: static;
|
|
191
|
+
}
|
|
192
|
+
.eds-form-control__prepend svg, .eds-form-control__append svg {
|
|
193
|
+
top: 0.125rem;
|
|
194
|
+
}
|
|
195
|
+
.eds-form-control__prepend {
|
|
196
|
+
margin-right: 0;
|
|
197
|
+
}
|
|
198
|
+
.eds-form-control__append {
|
|
199
|
+
margin-left: 0;
|
|
9
200
|
}/* DO NOT CHANGE!*/
|
|
10
201
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
11
202
|
.eds-fieldset {
|
|
@@ -65,90 +256,6 @@ textarea.eds-form-control.eds-textarea {
|
|
|
65
256
|
color: #64b3e7;
|
|
66
257
|
}/* DO NOT CHANGE!*/
|
|
67
258
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
68
|
-
.eds-form-component--radio__container {
|
|
69
|
-
display: flex;
|
|
70
|
-
justify-content: center;
|
|
71
|
-
align-items: center;
|
|
72
|
-
position: relative;
|
|
73
|
-
cursor: pointer;
|
|
74
|
-
height: 2rem;
|
|
75
|
-
width: fit-content;
|
|
76
|
-
user-select: none;
|
|
77
|
-
}
|
|
78
|
-
.eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio {
|
|
79
|
-
border-color: #54568c;
|
|
80
|
-
}
|
|
81
|
-
.eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio .eds-form-component--radio__circle {
|
|
82
|
-
background-color: #54568c;
|
|
83
|
-
}
|
|
84
|
-
.eds-contrast .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio {
|
|
85
|
-
border-color: #8285a8;
|
|
86
|
-
}
|
|
87
|
-
.eds-contrast .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio .eds-form-component--radio__circle {
|
|
88
|
-
background-color: #8285a8;
|
|
89
|
-
}
|
|
90
|
-
.eds-form-component--radio__container input {
|
|
91
|
-
position: absolute;
|
|
92
|
-
opacity: 0;
|
|
93
|
-
cursor: pointer;
|
|
94
|
-
height: 0;
|
|
95
|
-
width: 0;
|
|
96
|
-
}
|
|
97
|
-
.eds-form-component--radio__container input:checked ~ .eds-form-component--radio__radio .eds-form-component--radio__circle {
|
|
98
|
-
height: 0.625rem;
|
|
99
|
-
width: 0.625rem;
|
|
100
|
-
}
|
|
101
|
-
.eds-form-component--radio__container input:focus ~ .eds-form-component--radio__radio {
|
|
102
|
-
outline: none;
|
|
103
|
-
box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
|
|
104
|
-
outline-offset: 0.125rem;
|
|
105
|
-
}
|
|
106
|
-
.eds-contrast .eds-form-component--radio__container input:focus ~ .eds-form-component--radio__radio {
|
|
107
|
-
box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
|
|
108
|
-
}
|
|
109
|
-
.eds-form-component--radio__container .eds-form-component--radio__radio {
|
|
110
|
-
position: relative;
|
|
111
|
-
height: 1.25rem;
|
|
112
|
-
width: 1.25rem;
|
|
113
|
-
margin-right: 1rem;
|
|
114
|
-
background-color: #ffffff;
|
|
115
|
-
border: 0.125rem solid #181c56;
|
|
116
|
-
border-radius: 50%;
|
|
117
|
-
display: flex;
|
|
118
|
-
align-items: center;
|
|
119
|
-
justify-content: center;
|
|
120
|
-
}
|
|
121
|
-
.eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio {
|
|
122
|
-
background-color: #181c56;
|
|
123
|
-
border-color: #aeb7e2;
|
|
124
|
-
}
|
|
125
|
-
.eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled {
|
|
126
|
-
background: #d1d3d3;
|
|
127
|
-
border-color: #d1d3d3;
|
|
128
|
-
cursor: not-allowed;
|
|
129
|
-
}
|
|
130
|
-
.eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled:hover {
|
|
131
|
-
border-color: #d1d3d3;
|
|
132
|
-
}
|
|
133
|
-
.eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled {
|
|
134
|
-
background: #d1d3d3;
|
|
135
|
-
border-color: #d1d3d3;
|
|
136
|
-
}
|
|
137
|
-
.eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled ~ .eds-form-component--radio__label {
|
|
138
|
-
color: #656782;
|
|
139
|
-
}
|
|
140
|
-
.eds-form-component--radio__container .eds-form-component--radio__radio .eds-form-component--radio__circle {
|
|
141
|
-
display: block;
|
|
142
|
-
width: 0;
|
|
143
|
-
height: 0;
|
|
144
|
-
border-radius: 50%;
|
|
145
|
-
background-color: #181c56;
|
|
146
|
-
transition: width 0.1s ease-in-out, height 0.1s ease-in-out;
|
|
147
|
-
}
|
|
148
|
-
.eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio .eds-form-component--radio__circle {
|
|
149
|
-
background-color: #aeb7e2;
|
|
150
|
-
}/* DO NOT CHANGE!*/
|
|
151
|
-
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
152
259
|
.eds-checkbox__container {
|
|
153
260
|
display: flex;
|
|
154
261
|
align-items: center;
|
|
@@ -224,41 +331,131 @@ textarea.eds-form-control.eds-textarea {
|
|
|
224
331
|
.eds-checkbox--disabled .eds-checkbox__icon {
|
|
225
332
|
opacity: 0.5;
|
|
226
333
|
}
|
|
227
|
-
.eds-checkbox__icon {
|
|
228
|
-
display: inline-flex;
|
|
229
|
-
justify-content: center;
|
|
230
|
-
align-items: center;
|
|
334
|
+
.eds-checkbox__icon {
|
|
335
|
+
display: inline-flex;
|
|
336
|
+
justify-content: center;
|
|
337
|
+
align-items: center;
|
|
338
|
+
position: relative;
|
|
339
|
+
margin-right: 1rem;
|
|
340
|
+
height: 1.25rem;
|
|
341
|
+
width: 1.25rem;
|
|
342
|
+
border: 0.125rem solid #181c56;
|
|
343
|
+
border-radius: 0.0625rem;
|
|
344
|
+
background-color: transparent;
|
|
345
|
+
color: #ffffff;
|
|
346
|
+
}
|
|
347
|
+
.eds-checkbox__icon--reduced-click-area {
|
|
348
|
+
margin-right: 0;
|
|
349
|
+
}
|
|
350
|
+
.eds-contrast .eds-checkbox__icon {
|
|
351
|
+
border-color: #54568c;
|
|
352
|
+
}
|
|
353
|
+
.eds-checkbox__icon .eds-checkbox-icon {
|
|
354
|
+
height: 1rem;
|
|
355
|
+
width: 1rem;
|
|
356
|
+
visibility: hidden;
|
|
357
|
+
}
|
|
358
|
+
.eds-checkbox__icon .eds-checkbox-icon__path {
|
|
359
|
+
transform-origin: 50% 50%;
|
|
360
|
+
stroke-dasharray: 48;
|
|
361
|
+
stroke-dashoffset: 48;
|
|
362
|
+
stroke-width: 0.375rem;
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
@keyframes stroke {
|
|
366
|
+
100% {
|
|
367
|
+
stroke-dashoffset: 0;
|
|
368
|
+
}
|
|
369
|
+
}/* DO NOT CHANGE!*/
|
|
370
|
+
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
371
|
+
textarea.eds-form-control.eds-textarea {
|
|
372
|
+
min-height: 7.75rem;
|
|
373
|
+
resize: vertical;
|
|
374
|
+
line-height: 1.5rem;
|
|
375
|
+
}/* DO NOT CHANGE!*/
|
|
376
|
+
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
377
|
+
.eds-form-component--radio__container {
|
|
378
|
+
display: flex;
|
|
379
|
+
justify-content: center;
|
|
380
|
+
align-items: center;
|
|
381
|
+
position: relative;
|
|
382
|
+
cursor: pointer;
|
|
383
|
+
height: 2rem;
|
|
384
|
+
width: fit-content;
|
|
385
|
+
user-select: none;
|
|
386
|
+
}
|
|
387
|
+
.eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio {
|
|
388
|
+
border-color: #54568c;
|
|
389
|
+
}
|
|
390
|
+
.eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio .eds-form-component--radio__circle {
|
|
391
|
+
background-color: #54568c;
|
|
392
|
+
}
|
|
393
|
+
.eds-contrast .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio {
|
|
394
|
+
border-color: #8285a8;
|
|
395
|
+
}
|
|
396
|
+
.eds-contrast .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio .eds-form-component--radio__circle {
|
|
397
|
+
background-color: #8285a8;
|
|
398
|
+
}
|
|
399
|
+
.eds-form-component--radio__container input {
|
|
400
|
+
position: absolute;
|
|
401
|
+
opacity: 0;
|
|
402
|
+
cursor: pointer;
|
|
403
|
+
height: 0;
|
|
404
|
+
width: 0;
|
|
405
|
+
}
|
|
406
|
+
.eds-form-component--radio__container input:checked ~ .eds-form-component--radio__radio .eds-form-component--radio__circle {
|
|
407
|
+
height: 0.625rem;
|
|
408
|
+
width: 0.625rem;
|
|
409
|
+
}
|
|
410
|
+
.eds-form-component--radio__container input:focus ~ .eds-form-component--radio__radio {
|
|
411
|
+
outline: none;
|
|
412
|
+
box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
|
|
413
|
+
outline-offset: 0.125rem;
|
|
414
|
+
}
|
|
415
|
+
.eds-contrast .eds-form-component--radio__container input:focus ~ .eds-form-component--radio__radio {
|
|
416
|
+
box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
|
|
417
|
+
}
|
|
418
|
+
.eds-form-component--radio__container .eds-form-component--radio__radio {
|
|
231
419
|
position: relative;
|
|
232
|
-
margin-right: 1rem;
|
|
233
420
|
height: 1.25rem;
|
|
234
421
|
width: 1.25rem;
|
|
422
|
+
margin-right: 1rem;
|
|
423
|
+
background-color: #ffffff;
|
|
235
424
|
border: 0.125rem solid #181c56;
|
|
236
|
-
border-radius:
|
|
237
|
-
|
|
238
|
-
|
|
425
|
+
border-radius: 50%;
|
|
426
|
+
display: flex;
|
|
427
|
+
align-items: center;
|
|
428
|
+
justify-content: center;
|
|
239
429
|
}
|
|
240
|
-
.eds-
|
|
241
|
-
|
|
430
|
+
.eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio {
|
|
431
|
+
background-color: #181c56;
|
|
432
|
+
border-color: #aeb7e2;
|
|
242
433
|
}
|
|
243
|
-
.eds-
|
|
244
|
-
|
|
434
|
+
.eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled {
|
|
435
|
+
background: #d1d3d3;
|
|
436
|
+
border-color: #d1d3d3;
|
|
437
|
+
cursor: not-allowed;
|
|
245
438
|
}
|
|
246
|
-
.eds-
|
|
247
|
-
|
|
248
|
-
width: 1rem;
|
|
249
|
-
visibility: hidden;
|
|
439
|
+
.eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled:hover {
|
|
440
|
+
border-color: #d1d3d3;
|
|
250
441
|
}
|
|
251
|
-
.eds-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
stroke-dashoffset: 48;
|
|
255
|
-
stroke-width: 0.375rem;
|
|
442
|
+
.eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled {
|
|
443
|
+
background: #d1d3d3;
|
|
444
|
+
border-color: #d1d3d3;
|
|
256
445
|
}
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
446
|
+
.eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled ~ .eds-form-component--radio__label {
|
|
447
|
+
color: #656782;
|
|
448
|
+
}
|
|
449
|
+
.eds-form-component--radio__container .eds-form-component--radio__radio .eds-form-component--radio__circle {
|
|
450
|
+
display: block;
|
|
451
|
+
width: 0;
|
|
452
|
+
height: 0;
|
|
453
|
+
border-radius: 50%;
|
|
454
|
+
background-color: #181c56;
|
|
455
|
+
transition: width 0.1s ease-in-out, height 0.1s ease-in-out;
|
|
456
|
+
}
|
|
457
|
+
.eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio .eds-form-component--radio__circle {
|
|
458
|
+
background-color: #aeb7e2;
|
|
262
459
|
}/* DO NOT CHANGE!*/
|
|
263
460
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
264
461
|
.eds-switch {
|
|
@@ -598,203 +795,6 @@ textarea.eds-form-control.eds-textarea {
|
|
|
598
795
|
margin-left: 1rem;
|
|
599
796
|
}/* DO NOT CHANGE!*/
|
|
600
797
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
601
|
-
.eds-form-control-wrapper {
|
|
602
|
-
--border-color: #181c56;
|
|
603
|
-
--border-color-hover: #aeb7e2;
|
|
604
|
-
align-items: center;
|
|
605
|
-
background-color: #ffffff;
|
|
606
|
-
border-radius: 0.25rem;
|
|
607
|
-
border: 0.125rem solid #d1d3d3;
|
|
608
|
-
box-shadow: 0 0 0 transparent;
|
|
609
|
-
color: #181c56;
|
|
610
|
-
display: flex;
|
|
611
|
-
position: relative;
|
|
612
|
-
width: 100%;
|
|
613
|
-
min-height: 3rem;
|
|
614
|
-
transition: border-color 0.1s ease-in-out;
|
|
615
|
-
--textarea-label-background: $colors-brand-white;
|
|
616
|
-
/*
|
|
617
|
-
Some input controls require a darker design while inside a contrast block.
|
|
618
|
-
These elements require the `--dark` modifier, even on the wrapper.
|
|
619
|
-
*/
|
|
620
|
-
}
|
|
621
|
-
.eds-contrast .eds-form-control-wrapper {
|
|
622
|
-
--border-color: #aeb7e2;
|
|
623
|
-
background-color: #ffffff;
|
|
624
|
-
border-color: #54568c;
|
|
625
|
-
}
|
|
626
|
-
.eds-form-control-wrapper:focus-within, .eds-form-control-wrapper:hover {
|
|
627
|
-
border-color: #181c56;
|
|
628
|
-
}
|
|
629
|
-
.eds-contrast .eds-form-control-wrapper:hover {
|
|
630
|
-
border-color: #aeb7e2;
|
|
631
|
-
background: #ebebf1;
|
|
632
|
-
}
|
|
633
|
-
.eds-form-control-wrapper:focus-within {
|
|
634
|
-
box-shadow: inset 0 0 0 1px var(--border-color);
|
|
635
|
-
}
|
|
636
|
-
.eds-contrast .eds-form-control-wrapper:focus-within {
|
|
637
|
-
border-color: #181c56;
|
|
638
|
-
--border-color: #aeb7e2;
|
|
639
|
-
box-shadow: 0 0 0 0.125rem var(--border-color);
|
|
640
|
-
}
|
|
641
|
-
.eds-form-control-wrapper ::placeholder {
|
|
642
|
-
color: #656782;
|
|
643
|
-
}
|
|
644
|
-
.eds-form-control-wrapper--disabled {
|
|
645
|
-
background-color: #e9e9e9;
|
|
646
|
-
color: #656782;
|
|
647
|
-
border-color: transparent;
|
|
648
|
-
pointer-events: none;
|
|
649
|
-
}
|
|
650
|
-
.eds-form-control-wrapper--disabled::before, .eds-form-control-wrapper--disabled::after {
|
|
651
|
-
display: none;
|
|
652
|
-
}
|
|
653
|
-
.eds-contrast .eds-form-control-wrapper--disabled {
|
|
654
|
-
background: #292b6a;
|
|
655
|
-
border-color: transparent;
|
|
656
|
-
color: #8285a8;
|
|
657
|
-
}
|
|
658
|
-
.eds-form-control-wrapper--readonly {
|
|
659
|
-
pointer-events: none;
|
|
660
|
-
cursor: default;
|
|
661
|
-
border-color: transparent;
|
|
662
|
-
background: #f8f8f8;
|
|
663
|
-
--textarea-label-background: $colors-greys-grey90;
|
|
664
|
-
}
|
|
665
|
-
.eds-contrast .eds-form-control-wrapper--readonly {
|
|
666
|
-
background: #292b6a;
|
|
667
|
-
--textarea-label-background: $colors-blues-blue10;
|
|
668
|
-
color: #ffffff;
|
|
669
|
-
border-color: transparent;
|
|
670
|
-
}
|
|
671
|
-
.eds-form-control-wrapper--readonly::before, .eds-form-control-wrapper--readonly::after {
|
|
672
|
-
display: none;
|
|
673
|
-
}
|
|
674
|
-
.eds-form-control-wrapper--size-medium .eds-form-control,
|
|
675
|
-
.eds-form-control-wrapper--size-medium .eds-form-control__append,
|
|
676
|
-
.eds-form-control-wrapper--size-medium .eds-form-control__prepend {
|
|
677
|
-
font-size: 1rem;
|
|
678
|
-
line-height: 1rem;
|
|
679
|
-
}
|
|
680
|
-
.eds-form-control-wrapper--size-large {
|
|
681
|
-
min-height: 4rem;
|
|
682
|
-
padding: 0 0.5rem;
|
|
683
|
-
}
|
|
684
|
-
.eds-form-control-wrapper--size-large::before, .eds-form-control-wrapper--size-large::after {
|
|
685
|
-
border-width: 0.25rem;
|
|
686
|
-
}
|
|
687
|
-
.eds-form-control-wrapper--size-large .eds-form-control,
|
|
688
|
-
.eds-form-control-wrapper--size-large .eds-form-control__append,
|
|
689
|
-
.eds-form-control-wrapper--size-large .eds-form-control__prepend {
|
|
690
|
-
font-size: 1.5rem;
|
|
691
|
-
line-height: 2.25rem;
|
|
692
|
-
}
|
|
693
|
-
.eds-form-control-wrapper--success {
|
|
694
|
-
border-color: #1a8e60;
|
|
695
|
-
--border-color: #1a8e60;
|
|
696
|
-
}
|
|
697
|
-
.eds-form-control-wrapper--success:hover {
|
|
698
|
-
border-color: #5ac39a;
|
|
699
|
-
}
|
|
700
|
-
.eds-form-control-wrapper--success:focus-within {
|
|
701
|
-
border-color: #1a8e60;
|
|
702
|
-
}
|
|
703
|
-
.eds-contrast .eds-form-control-wrapper--success {
|
|
704
|
-
border-color: #5ac39a;
|
|
705
|
-
--border-color: #5ac39a;
|
|
706
|
-
}
|
|
707
|
-
.eds-contrast .eds-form-control-wrapper--success:hover {
|
|
708
|
-
border-color: #1a8e60;
|
|
709
|
-
}
|
|
710
|
-
.eds-contrast .eds-form-control-wrapper--success:focus-within {
|
|
711
|
-
--border-color: #5ac39a;
|
|
712
|
-
border-color: #181c56;
|
|
713
|
-
}
|
|
714
|
-
.eds-form-control-wrapper--error {
|
|
715
|
-
border-color: #d31b1b;
|
|
716
|
-
--border-color: #d31b1b;
|
|
717
|
-
}
|
|
718
|
-
.eds-form-control-wrapper--error:hover {
|
|
719
|
-
border-color: #ff9494;
|
|
720
|
-
}
|
|
721
|
-
.eds-form-control-wrapper--error:focus-within {
|
|
722
|
-
border-color: #d31b1b;
|
|
723
|
-
}
|
|
724
|
-
.eds-contrast .eds-form-control-wrapper--error {
|
|
725
|
-
border-color: #ff9494;
|
|
726
|
-
--border-color: #ff9494;
|
|
727
|
-
}
|
|
728
|
-
.eds-contrast .eds-form-control-wrapper--error:hover {
|
|
729
|
-
border-color: #d31b1b;
|
|
730
|
-
}
|
|
731
|
-
.eds-contrast .eds-form-control-wrapper--error:focus-within {
|
|
732
|
-
border-color: #181c56;
|
|
733
|
-
--border-color: #ff9494;
|
|
734
|
-
}
|
|
735
|
-
.eds-contrast .eds-form-control-wrapper--dark {
|
|
736
|
-
background-color: #181c56;
|
|
737
|
-
color: #ffffff;
|
|
738
|
-
}
|
|
739
|
-
.eds-contrast .eds-form-control-wrapper--dark ::placeholder {
|
|
740
|
-
color: #aeb7e2;
|
|
741
|
-
}
|
|
742
|
-
.eds-contrast .eds-form-control-wrapper--dark:hover {
|
|
743
|
-
border-color: #aeb7e2;
|
|
744
|
-
}
|
|
745
|
-
.eds-contrast .eds-form-control-wrapper--dark:focus-within {
|
|
746
|
-
background-color: #292b6a;
|
|
747
|
-
border-color: #aeb7e2;
|
|
748
|
-
}
|
|
749
|
-
.eds-contrast .eds-form-control-wrapper--dark * {
|
|
750
|
-
background-color: transparent;
|
|
751
|
-
color: inherit;
|
|
752
|
-
}
|
|
753
|
-
.eds-contrast .eds-form-control-wrapper--dark.eds-form-control-wrapper--disabled {
|
|
754
|
-
background-color: #292b6a;
|
|
755
|
-
color: #8285a8;
|
|
756
|
-
}
|
|
757
|
-
|
|
758
|
-
.eds-form-control {
|
|
759
|
-
appearance: none;
|
|
760
|
-
background-color: transparent;
|
|
761
|
-
border: 0;
|
|
762
|
-
color: inherit;
|
|
763
|
-
display: block;
|
|
764
|
-
font-family: inherit;
|
|
765
|
-
line-height: 1rem;
|
|
766
|
-
font-size: 1rem;
|
|
767
|
-
padding: 20px 1rem 0.25rem;
|
|
768
|
-
width: 100%;
|
|
769
|
-
}
|
|
770
|
-
.eds-form-control::placeholder {
|
|
771
|
-
opacity: 0;
|
|
772
|
-
transition: opacity 0.2s ease-in-out;
|
|
773
|
-
}
|
|
774
|
-
.eds-form-control:focus {
|
|
775
|
-
outline: none;
|
|
776
|
-
}
|
|
777
|
-
.eds-form-control:focus::placeholder {
|
|
778
|
-
opacity: 1;
|
|
779
|
-
}
|
|
780
|
-
.eds-form-control__prepend, .eds-form-control__append {
|
|
781
|
-
position: relative;
|
|
782
|
-
margin: 0 1rem;
|
|
783
|
-
line-height: inherit;
|
|
784
|
-
}
|
|
785
|
-
.eds-form-control__prepend--tooltip, .eds-form-control__append--tooltip {
|
|
786
|
-
position: static;
|
|
787
|
-
}
|
|
788
|
-
.eds-form-control__prepend svg, .eds-form-control__append svg {
|
|
789
|
-
top: 0.125rem;
|
|
790
|
-
}
|
|
791
|
-
.eds-form-control__prepend {
|
|
792
|
-
margin-right: 0;
|
|
793
|
-
}
|
|
794
|
-
.eds-form-control__append {
|
|
795
|
-
margin-left: 0;
|
|
796
|
-
}/* DO NOT CHANGE!*/
|
|
797
|
-
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
798
798
|
.eds-textfield__clear-button {
|
|
799
799
|
background: none;
|
|
800
800
|
border: none;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@entur/form",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.3.0",
|
|
4
4
|
"license": "EUPL-1.2",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/form.esm.js",
|
|
@@ -34,5 +34,5 @@
|
|
|
34
34
|
"@entur/utils": "^0.4.3",
|
|
35
35
|
"classnames": "^2.3.1"
|
|
36
36
|
},
|
|
37
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "c672c8396ce0c3d436746e4299680137488d579d"
|
|
38
38
|
}
|