@entur/form 8.1.0-beta.0 → 8.1.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/dist/form.cjs.development.js +0 -1
- 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 +0 -1
- package/dist/form.esm.js.map +1 -1
- package/dist/styles.css +309 -309
- package/package.json +6 -6
package/dist/styles.css
CHANGED
|
@@ -1,3 +1,212 @@
|
|
|
1
|
+
/* DO NOT CHANGE!*/
|
|
2
|
+
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
3
|
+
.eds-form-control__field-and-feedback-text {
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
height: -moz-fit-content;
|
|
7
|
+
height: fit-content;
|
|
8
|
+
width: 100%;
|
|
9
|
+
}
|
|
10
|
+
.eds-form-control__field-and-feedback-text--has-tooltip {
|
|
11
|
+
padding-right: 2rem;
|
|
12
|
+
}
|
|
13
|
+
.eds-form-control-wrapper {
|
|
14
|
+
display: flex;
|
|
15
|
+
align-items: center;
|
|
16
|
+
position: relative;
|
|
17
|
+
flex: 1;
|
|
18
|
+
min-height: 3rem;
|
|
19
|
+
padding-left: 1rem;
|
|
20
|
+
padding-right: 1rem;
|
|
21
|
+
background-color: var(--components-form-baseform-standard-fill-default);
|
|
22
|
+
border-radius: 0.25rem;
|
|
23
|
+
border: 0.125rem solid var(--components-form-baseform-standard-border-default);
|
|
24
|
+
box-shadow: 0 0 0 transparent;
|
|
25
|
+
color: var(--components-form-baseform-standard-text-content);
|
|
26
|
+
transition: border-color 0.1s ease-in-out;
|
|
27
|
+
}
|
|
28
|
+
.eds-form-control-wrapper[focus-within], .eds-form-control-wrapper:hover {
|
|
29
|
+
border-color: var(--components-form-baseform-standard-border-interactive);
|
|
30
|
+
}
|
|
31
|
+
.eds-form-control-wrapper:focus-within, .eds-form-control-wrapper:hover {
|
|
32
|
+
border-color: var(--components-form-baseform-standard-border-interactive);
|
|
33
|
+
}
|
|
34
|
+
.eds-contrast .eds-form-control-wrapper:hover {
|
|
35
|
+
border-color: var(--components-form-baseform-contrast-border-interactive);
|
|
36
|
+
}
|
|
37
|
+
.eds-form-control-wrapper[focus-within] {
|
|
38
|
+
outline: 1px solid var(--components-form-baseform-standard-border-interactive);
|
|
39
|
+
}
|
|
40
|
+
.eds-form-control-wrapper:focus-within {
|
|
41
|
+
outline: 1px solid var(--components-form-baseform-standard-border-interactive);
|
|
42
|
+
}
|
|
43
|
+
.eds-contrast .eds-form-control-wrapper[focus-within] {
|
|
44
|
+
outline: var(--components-form-baseform-contrast-border-interactive);
|
|
45
|
+
}
|
|
46
|
+
.eds-contrast .eds-form-control-wrapper:focus-within {
|
|
47
|
+
outline: var(--components-form-baseform-contrast-border-interactive);
|
|
48
|
+
}
|
|
49
|
+
.eds-form-control-wrapper ::-moz-placeholder {
|
|
50
|
+
color: var(--components-form-baseform-standard-text-label);
|
|
51
|
+
}
|
|
52
|
+
.eds-form-control-wrapper ::placeholder {
|
|
53
|
+
color: var(--components-form-baseform-standard-text-label);
|
|
54
|
+
}
|
|
55
|
+
.eds-form-control-wrapper--disabled {
|
|
56
|
+
border-color: transparent;
|
|
57
|
+
background-color: var(--components-form-baseform-standard-fill-disabled);
|
|
58
|
+
pointer-events: none;
|
|
59
|
+
color: var(--components-form-baseform-standard-text-disabled);
|
|
60
|
+
}
|
|
61
|
+
.eds-form-control-wrapper--disabled .eds-input-group__label {
|
|
62
|
+
color: var(--components-form-baseform-standard-text-disabled);
|
|
63
|
+
}
|
|
64
|
+
.eds-contrast .eds-form-control-wrapper--disabled {
|
|
65
|
+
border-color: transparent;
|
|
66
|
+
background-color: var(--components-form-baseform-contrast-fill-disabled);
|
|
67
|
+
color: var(--components-form-baseform-contrast-text-disabled);
|
|
68
|
+
}
|
|
69
|
+
.eds-contrast .eds-form-control-wrapper--disabled .eds-input-group__label {
|
|
70
|
+
color: var(--components-form-baseform-contrast-text-disabled);
|
|
71
|
+
}
|
|
72
|
+
.eds-form-control-wrapper--disabled::before, .eds-form-control-wrapper--disabled::after {
|
|
73
|
+
display: none;
|
|
74
|
+
}
|
|
75
|
+
.eds-form-control-wrapper--readonly {
|
|
76
|
+
border-color: transparent;
|
|
77
|
+
pointer-events: none;
|
|
78
|
+
cursor: default;
|
|
79
|
+
background: var(--components-form-baseform-standard-fill-readonly);
|
|
80
|
+
border: var(--components-form-baseform-standard-fill-readonly);
|
|
81
|
+
}
|
|
82
|
+
.eds-contrast .eds-form-control-wrapper--readonly {
|
|
83
|
+
background: var(--components-form-baseform-contrast-fill-readonly);
|
|
84
|
+
color: var(--components-form-baseform-contrast-text-description);
|
|
85
|
+
border: var(--components-form-baseform-contrast-fill-readonly);
|
|
86
|
+
}
|
|
87
|
+
.eds-contrast .eds-form-control-wrapper--readonly .eds-input-group__label {
|
|
88
|
+
color: var(--components-form-baseform-contrast-text-description);
|
|
89
|
+
}
|
|
90
|
+
.eds-form-control-wrapper--readonly::before, .eds-form-control-wrapper--readonly::after {
|
|
91
|
+
display: none;
|
|
92
|
+
}
|
|
93
|
+
.eds-form-control-wrapper--size-medium .eds-form-control,
|
|
94
|
+
.eds-form-control-wrapper--size-medium .eds-form-control__append,
|
|
95
|
+
.eds-form-control-wrapper--size-medium .eds-form-control__prepend {
|
|
96
|
+
font-size: 1rem;
|
|
97
|
+
line-height: 1rem;
|
|
98
|
+
}
|
|
99
|
+
.eds-form-control-wrapper--size-large {
|
|
100
|
+
min-height: 4rem;
|
|
101
|
+
}
|
|
102
|
+
.eds-form-control-wrapper--size-large .eds-form-control,
|
|
103
|
+
.eds-form-control-wrapper--size-large .eds-form-control__append,
|
|
104
|
+
.eds-form-control-wrapper--size-large .eds-form-control__prepend {
|
|
105
|
+
font-size: 1.5rem;
|
|
106
|
+
}
|
|
107
|
+
.eds-form-control-wrapper--success {
|
|
108
|
+
border-color: var(--components-form-baseform-standard-border-success);
|
|
109
|
+
}
|
|
110
|
+
.eds-form-control-wrapper--success[focus-within] {
|
|
111
|
+
border-color: var(--components-form-baseform-standard-border-success);
|
|
112
|
+
}
|
|
113
|
+
.eds-form-control-wrapper--success:focus-within {
|
|
114
|
+
border-color: var(--components-form-baseform-standard-border-success);
|
|
115
|
+
}
|
|
116
|
+
.eds-contrast .eds-form-control-wrapper--success {
|
|
117
|
+
border-color: var(--components-form-baseform-standard-border-success);
|
|
118
|
+
}
|
|
119
|
+
.eds-contrast .eds-form-control-wrapper--success[focus-within] {
|
|
120
|
+
border-color: var(--components-form-baseform-contrast-border-success);
|
|
121
|
+
}
|
|
122
|
+
.eds-contrast .eds-form-control-wrapper--success:focus-within {
|
|
123
|
+
border-color: var(--components-form-baseform-contrast-border-success);
|
|
124
|
+
}
|
|
125
|
+
.eds-form-control-wrapper--error, .eds-form-control-wrapper--negative {
|
|
126
|
+
border-color: var(--components-form-baseform-standard-border-negative);
|
|
127
|
+
}
|
|
128
|
+
.eds-form-control-wrapper--error[focus-within], .eds-form-control-wrapper--negative[focus-within] {
|
|
129
|
+
border-color: var(--components-form-baseform-standard-border-negative);
|
|
130
|
+
}
|
|
131
|
+
.eds-form-control-wrapper--error:focus-within, .eds-form-control-wrapper--negative:focus-within {
|
|
132
|
+
border-color: var(--components-form-baseform-standard-border-negative);
|
|
133
|
+
}
|
|
134
|
+
.eds-contrast .eds-form-control-wrapper--error, .eds-contrast .eds-form-control-wrapper--negative {
|
|
135
|
+
border-color: var(--components-form-baseform-contrast-border-negative);
|
|
136
|
+
}
|
|
137
|
+
.eds-contrast .eds-form-control-wrapper--error[focus-within], .eds-contrast .eds-form-control-wrapper--negative[focus-within] {
|
|
138
|
+
border-color: var(--components-form-baseform-contrast-border-negative);
|
|
139
|
+
}
|
|
140
|
+
.eds-contrast .eds-form-control-wrapper--error:focus-within, .eds-contrast .eds-form-control-wrapper--negative:focus-within {
|
|
141
|
+
border-color: var(--components-form-baseform-contrast-border-negative);
|
|
142
|
+
}
|
|
143
|
+
.eds-contrast .eds-form-control .eds-tooltip {
|
|
144
|
+
background: var(--components-tooltip-tooltip-standard-fill);
|
|
145
|
+
color: var(--components-tooltip-tooltip-standard-text);
|
|
146
|
+
box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
|
|
147
|
+
}
|
|
148
|
+
.eds-form-control .eds-tooltip::after {
|
|
149
|
+
background: var(--components-tooltip-tooltip-standard-fill);
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.eds-form-control {
|
|
153
|
+
display: block;
|
|
154
|
+
-webkit-appearance: none;
|
|
155
|
+
-moz-appearance: none;
|
|
156
|
+
appearance: none;
|
|
157
|
+
width: 100%;
|
|
158
|
+
height: 100%;
|
|
159
|
+
padding: 20px 0rem 0.25rem;
|
|
160
|
+
font-family: inherit;
|
|
161
|
+
font-size: 1rem;
|
|
162
|
+
line-height: 1rem;
|
|
163
|
+
border: 0;
|
|
164
|
+
color: var(--components-form-baseform-standard-text-content);
|
|
165
|
+
background-color: transparent;
|
|
166
|
+
}
|
|
167
|
+
.eds-form-control::-moz-placeholder {
|
|
168
|
+
opacity: 0;
|
|
169
|
+
-moz-transition: opacity 0.2s ease-in-out;
|
|
170
|
+
transition: opacity 0.2s ease-in-out;
|
|
171
|
+
}
|
|
172
|
+
.eds-form-control::placeholder {
|
|
173
|
+
opacity: 0;
|
|
174
|
+
transition: opacity 0.2s ease-in-out;
|
|
175
|
+
}
|
|
176
|
+
.eds-form-control:focus {
|
|
177
|
+
outline: none;
|
|
178
|
+
}
|
|
179
|
+
.eds-form-control:focus::-moz-placeholder {
|
|
180
|
+
opacity: 1;
|
|
181
|
+
}
|
|
182
|
+
.eds-form-control:focus::placeholder {
|
|
183
|
+
opacity: 1;
|
|
184
|
+
}
|
|
185
|
+
.eds-form-control__prepend, .eds-form-control__append {
|
|
186
|
+
position: relative;
|
|
187
|
+
line-height: inherit;
|
|
188
|
+
}
|
|
189
|
+
.eds-form-control__prepend--tooltip, .eds-form-control__append--tooltip {
|
|
190
|
+
all: unset;
|
|
191
|
+
position: absolute;
|
|
192
|
+
display: flex;
|
|
193
|
+
align-items: center;
|
|
194
|
+
justify-content: center;
|
|
195
|
+
height: 1.5rem;
|
|
196
|
+
width: 1.5rem;
|
|
197
|
+
right: -2rem;
|
|
198
|
+
border-radius: 100%;
|
|
199
|
+
color: var(--primary-text-color);
|
|
200
|
+
cursor: pointer;
|
|
201
|
+
}
|
|
202
|
+
.eds-form-control__prepend {
|
|
203
|
+
margin-right: 0.75rem;
|
|
204
|
+
margin-left: 0;
|
|
205
|
+
}
|
|
206
|
+
.eds-form-control__append {
|
|
207
|
+
margin-right: 0;
|
|
208
|
+
margin-left: 0.75rem;
|
|
209
|
+
}
|
|
1
210
|
.eds-fieldset {
|
|
2
211
|
margin: 0;
|
|
3
212
|
padding: 0;
|
|
@@ -5,6 +214,79 @@
|
|
|
5
214
|
}
|
|
6
215
|
/* DO NOT CHANGE!*/
|
|
7
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. */
|
|
8
290
|
.eds-checkbox__container {
|
|
9
291
|
display: flex;
|
|
10
292
|
align-items: center;
|
|
@@ -147,89 +429,16 @@
|
|
|
147
429
|
visibility: hidden;
|
|
148
430
|
}
|
|
149
431
|
.eds-checkbox__icon .eds-checkbox-icon path {
|
|
150
|
-
transform-origin: 50% 50%;
|
|
151
|
-
stroke-dasharray: 48;
|
|
152
|
-
stroke-dashoffset: 48;
|
|
153
|
-
stroke-width: 0.375rem;
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
@keyframes stroke {
|
|
157
|
-
100% {
|
|
158
|
-
stroke-dashoffset: 0;
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
/* DO NOT CHANGE!*/
|
|
162
|
-
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
163
|
-
.eds-feedback-text {
|
|
164
|
-
display: flex;
|
|
165
|
-
align-items: center;
|
|
166
|
-
margin-top: 0.25rem;
|
|
167
|
-
}
|
|
168
|
-
.eds-feedback-text--info, .eds-feedback-text--information {
|
|
169
|
-
padding-left: calc(1rem + 0.125rem);
|
|
170
|
-
}
|
|
171
|
-
.eds-feedback-text__text {
|
|
172
|
-
color: var(--components-form-feedbacktext-information-standard-text);
|
|
173
|
-
}
|
|
174
|
-
.eds-contrast .eds-feedback-text__text {
|
|
175
|
-
color: var(--components-form-feedbacktext-information-contrast-text);
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
.eds-feedback-text__icon {
|
|
179
|
-
font-size: 1.5rem;
|
|
180
|
-
min-height: 1.5rem;
|
|
181
|
-
min-width: 1.5rem;
|
|
182
|
-
padding-right: 0.5rem;
|
|
183
|
-
position: relative;
|
|
184
|
-
top: -0.1rem;
|
|
185
|
-
}
|
|
186
|
-
.eds-feedback-text__icon--success {
|
|
187
|
-
color: var(--components-form-feedbacktext-success-standard-icon-fill);
|
|
188
|
-
}
|
|
189
|
-
.eds-feedback-text__icon--success circle {
|
|
190
|
-
fill: var(--components-form-feedbacktext-success-standard-icon-symbol);
|
|
191
|
-
}
|
|
192
|
-
.eds-contrast .eds-feedback-text__icon--success {
|
|
193
|
-
color: var(--components-form-feedbacktext-success-contrast-icon-fill);
|
|
194
|
-
}
|
|
195
|
-
.eds-contrast .eds-feedback-text__icon--success circle {
|
|
196
|
-
fill: var(--components-form-feedbacktext-success-contrast-icon-symbol);
|
|
197
|
-
}
|
|
198
|
-
.eds-feedback-text__icon--error, .eds-feedback-text__icon--negative {
|
|
199
|
-
color: var(--components-form-feedbacktext-negative-standard-icon-fill);
|
|
200
|
-
}
|
|
201
|
-
.eds-feedback-text__icon--error circle, .eds-feedback-text__icon--negative circle {
|
|
202
|
-
fill: var(--components-form-feedbacktext-negative-standard-icon-symbol);
|
|
203
|
-
}
|
|
204
|
-
.eds-contrast .eds-feedback-text__icon--error, .eds-contrast .eds-feedback-text__icon--negative {
|
|
205
|
-
color: var(--components-form-feedbacktext-negative-contrast-icon-fill);
|
|
206
|
-
}
|
|
207
|
-
.eds-contrast .eds-feedback-text__icon--error circle, .eds-contrast .eds-feedback-text__icon--negative circle {
|
|
208
|
-
fill: var(--components-form-feedbacktext-negative-contrast-icon-symbol);
|
|
209
|
-
}
|
|
210
|
-
.eds-feedback-text__icon--info, .eds-feedback-text__icon--information {
|
|
211
|
-
color: var(--components-form-feedbacktext-information-standard-icon-fill);
|
|
212
|
-
}
|
|
213
|
-
.eds-feedback-text__icon--info circle, .eds-feedback-text__icon--information circle {
|
|
214
|
-
fill: var(--components-form-feedbacktext-information-standard-icon-symbol);
|
|
215
|
-
}
|
|
216
|
-
.eds-contrast .eds-feedback-text__icon--info, .eds-contrast .eds-feedback-text__icon--information {
|
|
217
|
-
color: var(--components-form-feedbacktext-information-contrast-icon-fill);
|
|
218
|
-
}
|
|
219
|
-
.eds-contrast .eds-feedback-text__icon--info circle, .eds-contrast .eds-feedback-text__icon--information circle {
|
|
220
|
-
fill: var(--components-form-feedbacktext-information-contrast-icon-symbol);
|
|
221
|
-
}
|
|
222
|
-
.eds-feedback-text__icon--warning {
|
|
223
|
-
color: var(--components-form-feedbacktext-warning-standard-icon-fill);
|
|
224
|
-
}
|
|
225
|
-
.eds-feedback-text__icon--warning .svg-exclamation {
|
|
226
|
-
fill: var(--components-form-feedbacktext-warning-standard-icon-symbol);
|
|
227
|
-
}
|
|
228
|
-
.eds-contrast .eds-feedback-text__icon--warning {
|
|
229
|
-
color: var(--components-form-feedbacktext-warning-contrast-icon-fill);
|
|
432
|
+
transform-origin: 50% 50%;
|
|
433
|
+
stroke-dasharray: 48;
|
|
434
|
+
stroke-dashoffset: 48;
|
|
435
|
+
stroke-width: 0.375rem;
|
|
230
436
|
}
|
|
231
|
-
|
|
232
|
-
|
|
437
|
+
|
|
438
|
+
@keyframes stroke {
|
|
439
|
+
100% {
|
|
440
|
+
stroke-dashoffset: 0;
|
|
441
|
+
}
|
|
233
442
|
}
|
|
234
443
|
/* DO NOT CHANGE!*/
|
|
235
444
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
@@ -434,18 +643,6 @@
|
|
|
434
643
|
}
|
|
435
644
|
/* DO NOT CHANGE!*/
|
|
436
645
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
437
|
-
textarea.eds-form-control.eds-textarea {
|
|
438
|
-
min-height: 7.75rem;
|
|
439
|
-
resize: vertical;
|
|
440
|
-
line-height: 1.5rem;
|
|
441
|
-
}
|
|
442
|
-
|
|
443
|
-
.eds-textarea__wrapper .eds-form-control-wrapper {
|
|
444
|
-
padding-right: 0;
|
|
445
|
-
cursor: text;
|
|
446
|
-
}
|
|
447
|
-
/* DO NOT CHANGE!*/
|
|
448
|
-
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
449
646
|
.eds-input-group {
|
|
450
647
|
color: inherit;
|
|
451
648
|
display: block;
|
|
@@ -703,212 +900,15 @@ input:disabled + .eds-input-panel__container {
|
|
|
703
900
|
}
|
|
704
901
|
/* DO NOT CHANGE!*/
|
|
705
902
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
706
|
-
.eds-form-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
height:
|
|
710
|
-
height: fit-content;
|
|
711
|
-
width: 100%;
|
|
712
|
-
}
|
|
713
|
-
.eds-form-control__field-and-feedback-text--has-tooltip {
|
|
714
|
-
padding-right: 2rem;
|
|
715
|
-
}
|
|
716
|
-
.eds-form-control-wrapper {
|
|
717
|
-
display: flex;
|
|
718
|
-
align-items: center;
|
|
719
|
-
position: relative;
|
|
720
|
-
flex: 1;
|
|
721
|
-
min-height: 3rem;
|
|
722
|
-
padding-left: 1rem;
|
|
723
|
-
padding-right: 1rem;
|
|
724
|
-
background-color: var(--components-form-baseform-standard-fill-default);
|
|
725
|
-
border-radius: 0.25rem;
|
|
726
|
-
border: 0.125rem solid var(--components-form-baseform-standard-border-default);
|
|
727
|
-
box-shadow: 0 0 0 transparent;
|
|
728
|
-
color: var(--components-form-baseform-standard-text-content);
|
|
729
|
-
transition: border-color 0.1s ease-in-out;
|
|
730
|
-
}
|
|
731
|
-
.eds-form-control-wrapper[focus-within], .eds-form-control-wrapper:hover {
|
|
732
|
-
border-color: var(--components-form-baseform-standard-border-interactive);
|
|
733
|
-
}
|
|
734
|
-
.eds-form-control-wrapper:focus-within, .eds-form-control-wrapper:hover {
|
|
735
|
-
border-color: var(--components-form-baseform-standard-border-interactive);
|
|
736
|
-
}
|
|
737
|
-
.eds-contrast .eds-form-control-wrapper:hover {
|
|
738
|
-
border-color: var(--components-form-baseform-contrast-border-interactive);
|
|
739
|
-
}
|
|
740
|
-
.eds-form-control-wrapper[focus-within] {
|
|
741
|
-
outline: 1px solid var(--components-form-baseform-standard-border-interactive);
|
|
742
|
-
}
|
|
743
|
-
.eds-form-control-wrapper:focus-within {
|
|
744
|
-
outline: 1px solid var(--components-form-baseform-standard-border-interactive);
|
|
745
|
-
}
|
|
746
|
-
.eds-contrast .eds-form-control-wrapper[focus-within] {
|
|
747
|
-
outline: var(--components-form-baseform-contrast-border-interactive);
|
|
748
|
-
}
|
|
749
|
-
.eds-contrast .eds-form-control-wrapper:focus-within {
|
|
750
|
-
outline: var(--components-form-baseform-contrast-border-interactive);
|
|
751
|
-
}
|
|
752
|
-
.eds-form-control-wrapper ::-moz-placeholder {
|
|
753
|
-
color: var(--components-form-baseform-standard-text-label);
|
|
754
|
-
}
|
|
755
|
-
.eds-form-control-wrapper ::placeholder {
|
|
756
|
-
color: var(--components-form-baseform-standard-text-label);
|
|
757
|
-
}
|
|
758
|
-
.eds-form-control-wrapper--disabled {
|
|
759
|
-
border-color: transparent;
|
|
760
|
-
background-color: var(--components-form-baseform-standard-fill-disabled);
|
|
761
|
-
pointer-events: none;
|
|
762
|
-
color: var(--components-form-baseform-standard-text-disabled);
|
|
763
|
-
}
|
|
764
|
-
.eds-form-control-wrapper--disabled .eds-input-group__label {
|
|
765
|
-
color: var(--components-form-baseform-standard-text-disabled);
|
|
766
|
-
}
|
|
767
|
-
.eds-contrast .eds-form-control-wrapper--disabled {
|
|
768
|
-
border-color: transparent;
|
|
769
|
-
background-color: var(--components-form-baseform-contrast-fill-disabled);
|
|
770
|
-
color: var(--components-form-baseform-contrast-text-disabled);
|
|
771
|
-
}
|
|
772
|
-
.eds-contrast .eds-form-control-wrapper--disabled .eds-input-group__label {
|
|
773
|
-
color: var(--components-form-baseform-contrast-text-disabled);
|
|
774
|
-
}
|
|
775
|
-
.eds-form-control-wrapper--disabled::before, .eds-form-control-wrapper--disabled::after {
|
|
776
|
-
display: none;
|
|
777
|
-
}
|
|
778
|
-
.eds-form-control-wrapper--readonly {
|
|
779
|
-
border-color: transparent;
|
|
780
|
-
pointer-events: none;
|
|
781
|
-
cursor: default;
|
|
782
|
-
background: var(--components-form-baseform-standard-fill-readonly);
|
|
783
|
-
border: var(--components-form-baseform-standard-fill-readonly);
|
|
784
|
-
}
|
|
785
|
-
.eds-contrast .eds-form-control-wrapper--readonly {
|
|
786
|
-
background: var(--components-form-baseform-contrast-fill-readonly);
|
|
787
|
-
color: var(--components-form-baseform-contrast-text-description);
|
|
788
|
-
border: var(--components-form-baseform-contrast-fill-readonly);
|
|
789
|
-
}
|
|
790
|
-
.eds-contrast .eds-form-control-wrapper--readonly .eds-input-group__label {
|
|
791
|
-
color: var(--components-form-baseform-contrast-text-description);
|
|
792
|
-
}
|
|
793
|
-
.eds-form-control-wrapper--readonly::before, .eds-form-control-wrapper--readonly::after {
|
|
794
|
-
display: none;
|
|
795
|
-
}
|
|
796
|
-
.eds-form-control-wrapper--size-medium .eds-form-control,
|
|
797
|
-
.eds-form-control-wrapper--size-medium .eds-form-control__append,
|
|
798
|
-
.eds-form-control-wrapper--size-medium .eds-form-control__prepend {
|
|
799
|
-
font-size: 1rem;
|
|
800
|
-
line-height: 1rem;
|
|
801
|
-
}
|
|
802
|
-
.eds-form-control-wrapper--size-large {
|
|
803
|
-
min-height: 4rem;
|
|
804
|
-
}
|
|
805
|
-
.eds-form-control-wrapper--size-large .eds-form-control,
|
|
806
|
-
.eds-form-control-wrapper--size-large .eds-form-control__append,
|
|
807
|
-
.eds-form-control-wrapper--size-large .eds-form-control__prepend {
|
|
808
|
-
font-size: 1.5rem;
|
|
809
|
-
}
|
|
810
|
-
.eds-form-control-wrapper--success {
|
|
811
|
-
border-color: var(--components-form-baseform-standard-border-success);
|
|
812
|
-
}
|
|
813
|
-
.eds-form-control-wrapper--success[focus-within] {
|
|
814
|
-
border-color: var(--components-form-baseform-standard-border-success);
|
|
815
|
-
}
|
|
816
|
-
.eds-form-control-wrapper--success:focus-within {
|
|
817
|
-
border-color: var(--components-form-baseform-standard-border-success);
|
|
818
|
-
}
|
|
819
|
-
.eds-contrast .eds-form-control-wrapper--success {
|
|
820
|
-
border-color: var(--components-form-baseform-standard-border-success);
|
|
821
|
-
}
|
|
822
|
-
.eds-contrast .eds-form-control-wrapper--success[focus-within] {
|
|
823
|
-
border-color: var(--components-form-baseform-contrast-border-success);
|
|
824
|
-
}
|
|
825
|
-
.eds-contrast .eds-form-control-wrapper--success:focus-within {
|
|
826
|
-
border-color: var(--components-form-baseform-contrast-border-success);
|
|
827
|
-
}
|
|
828
|
-
.eds-form-control-wrapper--error, .eds-form-control-wrapper--negative {
|
|
829
|
-
border-color: var(--components-form-baseform-standard-border-negative);
|
|
830
|
-
}
|
|
831
|
-
.eds-form-control-wrapper--error[focus-within], .eds-form-control-wrapper--negative[focus-within] {
|
|
832
|
-
border-color: var(--components-form-baseform-standard-border-negative);
|
|
833
|
-
}
|
|
834
|
-
.eds-form-control-wrapper--error:focus-within, .eds-form-control-wrapper--negative:focus-within {
|
|
835
|
-
border-color: var(--components-form-baseform-standard-border-negative);
|
|
836
|
-
}
|
|
837
|
-
.eds-contrast .eds-form-control-wrapper--error, .eds-contrast .eds-form-control-wrapper--negative {
|
|
838
|
-
border-color: var(--components-form-baseform-contrast-border-negative);
|
|
839
|
-
}
|
|
840
|
-
.eds-contrast .eds-form-control-wrapper--error[focus-within], .eds-contrast .eds-form-control-wrapper--negative[focus-within] {
|
|
841
|
-
border-color: var(--components-form-baseform-contrast-border-negative);
|
|
842
|
-
}
|
|
843
|
-
.eds-contrast .eds-form-control-wrapper--error:focus-within, .eds-contrast .eds-form-control-wrapper--negative:focus-within {
|
|
844
|
-
border-color: var(--components-form-baseform-contrast-border-negative);
|
|
845
|
-
}
|
|
846
|
-
.eds-contrast .eds-form-control .eds-tooltip {
|
|
847
|
-
background: var(--components-tooltip-tooltip-standard-fill);
|
|
848
|
-
color: var(--components-tooltip-tooltip-standard-text);
|
|
849
|
-
box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
|
|
850
|
-
}
|
|
851
|
-
.eds-form-control .eds-tooltip::after {
|
|
852
|
-
background: var(--components-tooltip-tooltip-standard-fill);
|
|
903
|
+
textarea.eds-form-control.eds-textarea {
|
|
904
|
+
min-height: 7.75rem;
|
|
905
|
+
resize: vertical;
|
|
906
|
+
line-height: 1.5rem;
|
|
853
907
|
}
|
|
854
908
|
|
|
855
|
-
.eds-form-control {
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
-moz-appearance: none;
|
|
859
|
-
appearance: none;
|
|
860
|
-
width: 100%;
|
|
861
|
-
height: 100%;
|
|
862
|
-
padding: 20px 0rem 0.25rem;
|
|
863
|
-
font-family: inherit;
|
|
864
|
-
font-size: 1rem;
|
|
865
|
-
line-height: 1rem;
|
|
866
|
-
border: 0;
|
|
867
|
-
color: var(--components-form-baseform-standard-text-content);
|
|
868
|
-
background-color: transparent;
|
|
869
|
-
}
|
|
870
|
-
.eds-form-control::-moz-placeholder {
|
|
871
|
-
opacity: 0;
|
|
872
|
-
-moz-transition: opacity 0.2s ease-in-out;
|
|
873
|
-
transition: opacity 0.2s ease-in-out;
|
|
874
|
-
}
|
|
875
|
-
.eds-form-control::placeholder {
|
|
876
|
-
opacity: 0;
|
|
877
|
-
transition: opacity 0.2s ease-in-out;
|
|
878
|
-
}
|
|
879
|
-
.eds-form-control:focus {
|
|
880
|
-
outline: none;
|
|
881
|
-
}
|
|
882
|
-
.eds-form-control:focus::-moz-placeholder {
|
|
883
|
-
opacity: 1;
|
|
884
|
-
}
|
|
885
|
-
.eds-form-control:focus::placeholder {
|
|
886
|
-
opacity: 1;
|
|
887
|
-
}
|
|
888
|
-
.eds-form-control__prepend, .eds-form-control__append {
|
|
889
|
-
position: relative;
|
|
890
|
-
line-height: inherit;
|
|
891
|
-
}
|
|
892
|
-
.eds-form-control__prepend--tooltip, .eds-form-control__append--tooltip {
|
|
893
|
-
all: unset;
|
|
894
|
-
position: absolute;
|
|
895
|
-
display: flex;
|
|
896
|
-
align-items: center;
|
|
897
|
-
justify-content: center;
|
|
898
|
-
height: 1.5rem;
|
|
899
|
-
width: 1.5rem;
|
|
900
|
-
right: -2rem;
|
|
901
|
-
border-radius: 100%;
|
|
902
|
-
color: var(--primary-text-color);
|
|
903
|
-
cursor: pointer;
|
|
904
|
-
}
|
|
905
|
-
.eds-form-control__prepend {
|
|
906
|
-
margin-right: 0.75rem;
|
|
907
|
-
margin-left: 0;
|
|
908
|
-
}
|
|
909
|
-
.eds-form-control__append {
|
|
910
|
-
margin-right: 0;
|
|
911
|
-
margin-left: 0.75rem;
|
|
909
|
+
.eds-textarea__wrapper .eds-form-control-wrapper {
|
|
910
|
+
padding-right: 0;
|
|
911
|
+
cursor: text;
|
|
912
912
|
}
|
|
913
913
|
/* DO NOT CHANGE!*/
|
|
914
914
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
@@ -1036,17 +1036,6 @@ input:disabled + .eds-input-panel__container {
|
|
|
1036
1036
|
}
|
|
1037
1037
|
/* DO NOT CHANGE!*/
|
|
1038
1038
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
1039
|
-
.eds-segmented-control {
|
|
1040
|
-
margin-top: 0.25rem;
|
|
1041
|
-
display: flex;
|
|
1042
|
-
background: var(--components-form-segmentedcontrol-standard-background);
|
|
1043
|
-
border-radius: 0.5rem;
|
|
1044
|
-
}
|
|
1045
|
-
.eds-contrast .eds-segmented-control {
|
|
1046
|
-
background: var(--components-form-segmentedcontrol-contrast-background);
|
|
1047
|
-
}
|
|
1048
|
-
/* DO NOT CHANGE!*/
|
|
1049
|
-
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
1050
1039
|
/* DO NOT CHANGE!*/
|
|
1051
1040
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
1052
1041
|
/* DO NOT CHANGE!*/
|
|
@@ -1592,3 +1581,14 @@ input:disabled + .eds-input-panel__container {
|
|
|
1592
1581
|
:root {
|
|
1593
1582
|
--eds-form: 1;
|
|
1594
1583
|
}
|
|
1584
|
+
/* DO NOT CHANGE!*/
|
|
1585
|
+
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
1586
|
+
.eds-segmented-control {
|
|
1587
|
+
margin-top: 0.25rem;
|
|
1588
|
+
display: flex;
|
|
1589
|
+
background: var(--components-form-segmentedcontrol-standard-background);
|
|
1590
|
+
border-radius: 0.5rem;
|
|
1591
|
+
}
|
|
1592
|
+
.eds-contrast .eds-segmented-control {
|
|
1593
|
+
background: var(--components-form-segmentedcontrol-contrast-background);
|
|
1594
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@entur/form",
|
|
3
|
-
"version": "8.1.0
|
|
3
|
+
"version": "8.1.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.
|
|
30
|
+
"@entur/icons": "^7.3.0",
|
|
31
31
|
"@entur/tokens": "^3.17.0",
|
|
32
|
-
"@entur/tooltip": "^4.0.0
|
|
33
|
-
"@entur/typography": "^1.8.
|
|
34
|
-
"@entur/utils": "^0.11.
|
|
32
|
+
"@entur/tooltip": "^4.0.0",
|
|
33
|
+
"@entur/typography": "^1.8.44",
|
|
34
|
+
"@entur/utils": "^0.11.2",
|
|
35
35
|
"classnames": "^2.3.1"
|
|
36
36
|
},
|
|
37
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "c5713d9ad333e17ca5714d86181baba74c56e0eb"
|
|
38
38
|
}
|