@entur/form 5.2.1 → 5.2.2
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 +4 -0
- package/dist/Checkbox.d.ts +1 -1
- package/dist/RadioPanel.d.ts +1 -1
- package/dist/Switch.d.ts +1 -1
- package/dist/TextArea.d.ts +1 -1
- package/dist/TextField.d.ts +2 -2
- package/dist/form.cjs.development.js +179 -138
- 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 +65 -44
- package/dist/form.esm.js.map +1 -1
- package/dist/segmented-control/SegmentedChoice.d.ts +1 -1
- package/dist/styles.css +269 -269
- package/dist/utils.d.ts +1 -1
- package/package.json +11 -11
package/dist/styles.css
CHANGED
|
@@ -2,6 +2,15 @@
|
|
|
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
|
+
.eds-fieldset {
|
|
6
|
+
margin: 0;
|
|
7
|
+
padding: 0;
|
|
8
|
+
border: 0;
|
|
9
|
+
}
|
|
10
|
+
.eds-fieldset .eds-legend {
|
|
11
|
+
margin: 0 0 0.5rem;
|
|
12
|
+
}/* DO NOT CHANGE!*/
|
|
13
|
+
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
5
14
|
.eds-feedback-text {
|
|
6
15
|
display: flex;
|
|
7
16
|
align-items: center;
|
|
@@ -162,6 +171,236 @@
|
|
|
162
171
|
}
|
|
163
172
|
}/* DO NOT CHANGE!*/
|
|
164
173
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
174
|
+
.eds-radio-panel__wrapper:focus-within .eds-radio-panel__container {
|
|
175
|
+
border-color: #181c56;
|
|
176
|
+
box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
|
|
177
|
+
}
|
|
178
|
+
.eds-contrast .eds-radio-panel__wrapper:focus-within .eds-radio-panel__container {
|
|
179
|
+
border-color: #ffffff;
|
|
180
|
+
box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
|
|
181
|
+
}
|
|
182
|
+
.eds-radio-panel__wrapper input {
|
|
183
|
+
position: absolute;
|
|
184
|
+
opacity: 0;
|
|
185
|
+
cursor: pointer;
|
|
186
|
+
height: 0;
|
|
187
|
+
width: 0;
|
|
188
|
+
}
|
|
189
|
+
.eds-radio-panel__wrapper input:checked + .eds-radio-panel__container {
|
|
190
|
+
border-color: #181c56;
|
|
191
|
+
background: #f5f5f8;
|
|
192
|
+
}
|
|
193
|
+
.eds-contrast .eds-radio-panel__wrapper input:checked + .eds-radio-panel__container {
|
|
194
|
+
border-color: #aeb7e2;
|
|
195
|
+
background: #393d79;
|
|
196
|
+
}
|
|
197
|
+
.eds-radio-panel__wrapper input:checked + .eds-radio-panel__container .eds-radio-panel__check {
|
|
198
|
+
background-color: #181c56;
|
|
199
|
+
border-color: #181c56;
|
|
200
|
+
}
|
|
201
|
+
.eds-radio-panel__wrapper input:checked + .eds-radio-panel__container .eds-radio-panel__check .eds-checkbox-icon {
|
|
202
|
+
visibility: visible;
|
|
203
|
+
}
|
|
204
|
+
.eds-radio-panel__wrapper input:checked + .eds-radio-panel__container .eds-radio-panel__check .eds-checkbox-icon__path {
|
|
205
|
+
stroke: #5ac39a;
|
|
206
|
+
animation: stroke ease-in-out 0.2s 0.1s forwards;
|
|
207
|
+
}
|
|
208
|
+
.eds-radio-panel__wrapper input:checked + .eds-radio-panel__container .eds-radio-panel__check--disabled {
|
|
209
|
+
opacity: 0.5;
|
|
210
|
+
}
|
|
211
|
+
.eds-radio-panel__wrapper input:checked + .eds-radio-panel__container .eds-radio-panel__check--disabled .eds-checkbox-icon__path {
|
|
212
|
+
opacity: 0.5;
|
|
213
|
+
}
|
|
214
|
+
.eds-radio-panel__container {
|
|
215
|
+
background: #ffffff;
|
|
216
|
+
border: 0.125rem solid #d1d3d3;
|
|
217
|
+
border-radius: 0.25rem;
|
|
218
|
+
display: flex;
|
|
219
|
+
flex-direction: column;
|
|
220
|
+
justify-content: flex-start;
|
|
221
|
+
min-width: 20rem;
|
|
222
|
+
position: relative;
|
|
223
|
+
padding: 1rem;
|
|
224
|
+
user-select: none;
|
|
225
|
+
width: fit-content;
|
|
226
|
+
}
|
|
227
|
+
.eds-contrast .eds-radio-panel__container {
|
|
228
|
+
background: #181c56;
|
|
229
|
+
border-color: #54568c;
|
|
230
|
+
}
|
|
231
|
+
.eds-radio-panel__title-wrapper {
|
|
232
|
+
display: flex;
|
|
233
|
+
justify-content: space-between;
|
|
234
|
+
align-items: center;
|
|
235
|
+
}
|
|
236
|
+
.eds-radio-panel__label {
|
|
237
|
+
display: flex;
|
|
238
|
+
justify-content: center;
|
|
239
|
+
}
|
|
240
|
+
.eds-radio-panel__check {
|
|
241
|
+
height: 2rem;
|
|
242
|
+
width: 2rem;
|
|
243
|
+
margin-left: 1rem;
|
|
244
|
+
border-radius: 50%;
|
|
245
|
+
border: 0.125rem solid #e9e9e9;
|
|
246
|
+
display: flex;
|
|
247
|
+
align-items: center;
|
|
248
|
+
justify-content: center;
|
|
249
|
+
background: #ffffff;
|
|
250
|
+
transition: background ease-in-out 0.1s, border-color ease-in-out 0.1s;
|
|
251
|
+
}
|
|
252
|
+
.eds-contrast .eds-radio-panel__check {
|
|
253
|
+
background: #181c56;
|
|
254
|
+
border-color: #54568c;
|
|
255
|
+
}
|
|
256
|
+
.eds-radio-panel__additional-content {
|
|
257
|
+
margin-top: 0.25rem;
|
|
258
|
+
word-wrap: break-word;
|
|
259
|
+
}
|
|
260
|
+
.eds-radio-panel--medium .eds-radio-panel__title {
|
|
261
|
+
font-size: 1rem;
|
|
262
|
+
font-weight: 500;
|
|
263
|
+
}
|
|
264
|
+
.eds-radio-panel--medium.eds-radio-panel__container {
|
|
265
|
+
padding-bottom: 1rem;
|
|
266
|
+
min-height: 3.75rem;
|
|
267
|
+
}
|
|
268
|
+
.eds-radio-panel--large.eds-radio-panel__container {
|
|
269
|
+
min-height: 6.5rem;
|
|
270
|
+
}
|
|
271
|
+
.eds-radio-panel--large .eds-radio-panel__title-wrapper {
|
|
272
|
+
height: 2rem;
|
|
273
|
+
}
|
|
274
|
+
.eds-radio-panel--large .eds-radio-panel__title {
|
|
275
|
+
font-size: 1.25rem;
|
|
276
|
+
font-weight: 500;
|
|
277
|
+
line-height: 1.875rem;
|
|
278
|
+
}
|
|
279
|
+
.eds-radio-panel--disabled {
|
|
280
|
+
background: #f3f3f3;
|
|
281
|
+
border-color: #f3f3f3;
|
|
282
|
+
color: #656782;
|
|
283
|
+
}
|
|
284
|
+
.eds-contrast .eds-radio-panel--disabled {
|
|
285
|
+
background: #181c56;
|
|
286
|
+
border-style: dashed;
|
|
287
|
+
border-color: #54568c;
|
|
288
|
+
color: #babbcf;
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
.eds-checkbox-icon {
|
|
292
|
+
width: 1.5em;
|
|
293
|
+
height: 1.5em;
|
|
294
|
+
}
|
|
295
|
+
.eds-checkbox-icon__path {
|
|
296
|
+
transform-origin: 50% 50%;
|
|
297
|
+
stroke-dasharray: 48;
|
|
298
|
+
stroke-dashoffset: 48;
|
|
299
|
+
stroke-width: 0.375rem;
|
|
300
|
+
}/* DO NOT CHANGE!*/
|
|
301
|
+
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
302
|
+
.eds-input-group {
|
|
303
|
+
color: inherit;
|
|
304
|
+
display: block;
|
|
305
|
+
position: relative;
|
|
306
|
+
}
|
|
307
|
+
.eds-input-group__label {
|
|
308
|
+
color: #656782;
|
|
309
|
+
display: flex;
|
|
310
|
+
font-size: 1rem;
|
|
311
|
+
position: absolute;
|
|
312
|
+
line-height: 1rem;
|
|
313
|
+
height: 3rem;
|
|
314
|
+
padding: 1rem;
|
|
315
|
+
padding-left: 0;
|
|
316
|
+
margin-left: 1rem;
|
|
317
|
+
top: -0.125rem;
|
|
318
|
+
transition: top 0.2s ease-in-out, font-size 0.2s ease-in-out, padding 0.2s ease-in-out, line-height ease-in-out 0.2s;
|
|
319
|
+
user-select: none;
|
|
320
|
+
pointer-events: none;
|
|
321
|
+
}
|
|
322
|
+
.eds-form-control-wrapper--is-filled .eds-input-group__label {
|
|
323
|
+
top: calc(0.5rem - 0.125rem);
|
|
324
|
+
font-size: 0.75rem;
|
|
325
|
+
line-height: 0.75rem;
|
|
326
|
+
height: 10px;
|
|
327
|
+
padding: 0;
|
|
328
|
+
margin-left: 1rem;
|
|
329
|
+
}
|
|
330
|
+
.eds-textarea__label .eds-form-control-wrapper--is-filled .eds-input-group__label {
|
|
331
|
+
box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
|
|
332
|
+
background: var(--textarea-label-background);
|
|
333
|
+
width: calc( 100% - 1rem - 1rem - 4px );
|
|
334
|
+
}
|
|
335
|
+
.eds-form-control-wrapper--size-large .eds-form-control-wrapper--is-filled .eds-input-group__label {
|
|
336
|
+
top: 0.5rem;
|
|
337
|
+
font-size: 0.875rem;
|
|
338
|
+
line-height: 1rem;
|
|
339
|
+
padding: 0;
|
|
340
|
+
margin-left: 1rem;
|
|
341
|
+
}
|
|
342
|
+
.eds-contrast .eds-input-group__label {
|
|
343
|
+
color: #8285a8;
|
|
344
|
+
}
|
|
345
|
+
.eds-contrast .eds-form-control-wrapper--dark .eds-input-group__label {
|
|
346
|
+
color: #aeb7e2;
|
|
347
|
+
}
|
|
348
|
+
.eds-form-control-wrapper--size-large .eds-input-group__label {
|
|
349
|
+
font-size: 1.5rem;
|
|
350
|
+
line-height: 2.25rem;
|
|
351
|
+
height: 4rem;
|
|
352
|
+
}
|
|
353
|
+
.eds-input-group__label--filled {
|
|
354
|
+
top: calc(0.5rem - 0.125rem);
|
|
355
|
+
font-size: 0.75rem;
|
|
356
|
+
line-height: 0.75rem;
|
|
357
|
+
height: 10px;
|
|
358
|
+
padding: 0;
|
|
359
|
+
margin-left: 1rem;
|
|
360
|
+
}
|
|
361
|
+
.eds-textarea__label .eds-input-group__label--filled {
|
|
362
|
+
box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
|
|
363
|
+
background: var(--textarea-label-background);
|
|
364
|
+
width: calc( 100% - 1rem - 1rem - 4px );
|
|
365
|
+
}
|
|
366
|
+
.eds-form-control-wrapper--size-large .eds-input-group__label--filled {
|
|
367
|
+
top: 0.5rem;
|
|
368
|
+
font-size: 0.875rem;
|
|
369
|
+
line-height: 1rem;
|
|
370
|
+
padding: 0;
|
|
371
|
+
margin-left: 1rem;
|
|
372
|
+
}
|
|
373
|
+
.eds-input-group__label-tooltip-icon {
|
|
374
|
+
color: #0082b9;
|
|
375
|
+
padding-left: 0.25rem;
|
|
376
|
+
padding-right: 0.25rem;
|
|
377
|
+
display: flex;
|
|
378
|
+
align-items: center;
|
|
379
|
+
cursor: help;
|
|
380
|
+
font-size: 1rem;
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
.eds-form-control-wrapper:focus-within .eds-input-group__label {
|
|
384
|
+
top: calc(0.5rem - 0.125rem);
|
|
385
|
+
font-size: 0.75rem;
|
|
386
|
+
line-height: 0.75rem;
|
|
387
|
+
height: 10px;
|
|
388
|
+
padding: 0;
|
|
389
|
+
margin-left: 1rem;
|
|
390
|
+
}
|
|
391
|
+
.eds-textarea__label .eds-form-control-wrapper:focus-within .eds-input-group__label {
|
|
392
|
+
box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
|
|
393
|
+
background: var(--textarea-label-background);
|
|
394
|
+
width: calc( 100% - 1rem - 1rem - 4px );
|
|
395
|
+
}
|
|
396
|
+
.eds-form-control-wrapper--size-large:focus-within .eds-input-group__label {
|
|
397
|
+
top: 0.5rem;
|
|
398
|
+
font-size: 0.875rem;
|
|
399
|
+
line-height: 1rem;
|
|
400
|
+
padding: 0;
|
|
401
|
+
margin-left: 1rem;
|
|
402
|
+
}/* DO NOT CHANGE!*/
|
|
403
|
+
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
165
404
|
.eds-form-control-wrapper {
|
|
166
405
|
--border-color: #181c56;
|
|
167
406
|
--border-color-hover: #aeb7e2;
|
|
@@ -365,52 +604,7 @@ textarea.eds-form-control.eds-textarea {
|
|
|
365
604
|
line-height: 1.5rem;
|
|
366
605
|
}/* DO NOT CHANGE!*/
|
|
367
606
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
368
|
-
.eds-
|
|
369
|
-
margin: 0;
|
|
370
|
-
padding: 0;
|
|
371
|
-
border: 0;
|
|
372
|
-
}
|
|
373
|
-
.eds-fieldset .eds-legend {
|
|
374
|
-
margin: 0 0 0.5rem;
|
|
375
|
-
}/* DO NOT CHANGE!*/
|
|
376
|
-
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
377
|
-
.eds-textfield__clear-button {
|
|
378
|
-
background: none;
|
|
379
|
-
border: none;
|
|
380
|
-
border-radius: 50%;
|
|
381
|
-
color: inherit;
|
|
382
|
-
cursor: pointer;
|
|
383
|
-
display: flex;
|
|
384
|
-
font: inherit;
|
|
385
|
-
font-size: 1rem;
|
|
386
|
-
line-height: 1rem;
|
|
387
|
-
padding: 0.5rem;
|
|
388
|
-
margin-right: -0.75rem;
|
|
389
|
-
}
|
|
390
|
-
.eds-textfield__clear-button-wrapper {
|
|
391
|
-
display: flex;
|
|
392
|
-
align-items: center;
|
|
393
|
-
}
|
|
394
|
-
.eds-textfield__clear-button:hover {
|
|
395
|
-
background: #f3f3f3;
|
|
396
|
-
}
|
|
397
|
-
.eds-textfield__clear-button:focus {
|
|
398
|
-
outline: none;
|
|
399
|
-
box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
|
|
400
|
-
}
|
|
401
|
-
|
|
402
|
-
.eds-textfield__divider {
|
|
403
|
-
content: "";
|
|
404
|
-
display: block;
|
|
405
|
-
background-color: #e9e9e9;
|
|
406
|
-
height: 1.5rem;
|
|
407
|
-
width: 1px;
|
|
408
|
-
}
|
|
409
|
-
.eds-contrast .eds-form-control-wrapper--disabled .eds-textfield__divider {
|
|
410
|
-
background-color: #8285a8;
|
|
411
|
-
}/* DO NOT CHANGE!*/
|
|
412
|
-
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
413
|
-
.eds-form-component--radio__container {
|
|
607
|
+
.eds-form-component--radio__container {
|
|
414
608
|
display: flex;
|
|
415
609
|
justify-content: center;
|
|
416
610
|
align-items: center;
|
|
@@ -601,234 +795,50 @@ textarea.eds-form-control.eds-textarea {
|
|
|
601
795
|
font-size: 0.75rem;
|
|
602
796
|
}/* DO NOT CHANGE!*/
|
|
603
797
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
604
|
-
.eds-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
border-color: #ffffff;
|
|
610
|
-
box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
|
|
611
|
-
}
|
|
612
|
-
.eds-radio-panel__wrapper input {
|
|
613
|
-
position: absolute;
|
|
614
|
-
opacity: 0;
|
|
798
|
+
.eds-textfield__clear-button {
|
|
799
|
+
background: none;
|
|
800
|
+
border: none;
|
|
801
|
+
border-radius: 50%;
|
|
802
|
+
color: inherit;
|
|
615
803
|
cursor: pointer;
|
|
616
|
-
height: 0;
|
|
617
|
-
width: 0;
|
|
618
|
-
}
|
|
619
|
-
.eds-radio-panel__wrapper input:checked + .eds-radio-panel__container {
|
|
620
|
-
border-color: #181c56;
|
|
621
|
-
background: #f5f5f8;
|
|
622
|
-
}
|
|
623
|
-
.eds-contrast .eds-radio-panel__wrapper input:checked + .eds-radio-panel__container {
|
|
624
|
-
border-color: #aeb7e2;
|
|
625
|
-
background: #393d79;
|
|
626
|
-
}
|
|
627
|
-
.eds-radio-panel__wrapper input:checked + .eds-radio-panel__container .eds-radio-panel__check {
|
|
628
|
-
background-color: #181c56;
|
|
629
|
-
border-color: #181c56;
|
|
630
|
-
}
|
|
631
|
-
.eds-radio-panel__wrapper input:checked + .eds-radio-panel__container .eds-radio-panel__check .eds-checkbox-icon {
|
|
632
|
-
visibility: visible;
|
|
633
|
-
}
|
|
634
|
-
.eds-radio-panel__wrapper input:checked + .eds-radio-panel__container .eds-radio-panel__check .eds-checkbox-icon__path {
|
|
635
|
-
stroke: #5ac39a;
|
|
636
|
-
animation: stroke ease-in-out 0.2s 0.1s forwards;
|
|
637
|
-
}
|
|
638
|
-
.eds-radio-panel__wrapper input:checked + .eds-radio-panel__container .eds-radio-panel__check--disabled {
|
|
639
|
-
opacity: 0.5;
|
|
640
|
-
}
|
|
641
|
-
.eds-radio-panel__wrapper input:checked + .eds-radio-panel__container .eds-radio-panel__check--disabled .eds-checkbox-icon__path {
|
|
642
|
-
opacity: 0.5;
|
|
643
|
-
}
|
|
644
|
-
.eds-radio-panel__container {
|
|
645
|
-
background: #ffffff;
|
|
646
|
-
border: 0.125rem solid #d1d3d3;
|
|
647
|
-
border-radius: 0.25rem;
|
|
648
804
|
display: flex;
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
user-select: none;
|
|
655
|
-
width: fit-content;
|
|
656
|
-
}
|
|
657
|
-
.eds-contrast .eds-radio-panel__container {
|
|
658
|
-
background: #181c56;
|
|
659
|
-
border-color: #54568c;
|
|
660
|
-
}
|
|
661
|
-
.eds-radio-panel__title-wrapper {
|
|
662
|
-
display: flex;
|
|
663
|
-
justify-content: space-between;
|
|
664
|
-
align-items: center;
|
|
665
|
-
}
|
|
666
|
-
.eds-radio-panel__label {
|
|
667
|
-
display: flex;
|
|
668
|
-
justify-content: center;
|
|
805
|
+
font: inherit;
|
|
806
|
+
font-size: 1rem;
|
|
807
|
+
line-height: 1rem;
|
|
808
|
+
padding: 0.5rem;
|
|
809
|
+
margin-right: -0.75rem;
|
|
669
810
|
}
|
|
670
|
-
.eds-
|
|
671
|
-
height: 2rem;
|
|
672
|
-
width: 2rem;
|
|
673
|
-
margin-left: 1rem;
|
|
674
|
-
border-radius: 50%;
|
|
675
|
-
border: 0.125rem solid #e9e9e9;
|
|
811
|
+
.eds-textfield__clear-button-wrapper {
|
|
676
812
|
display: flex;
|
|
677
813
|
align-items: center;
|
|
678
|
-
justify-content: center;
|
|
679
|
-
background: #ffffff;
|
|
680
|
-
transition: background ease-in-out 0.1s, border-color ease-in-out 0.1s;
|
|
681
|
-
}
|
|
682
|
-
.eds-contrast .eds-radio-panel__check {
|
|
683
|
-
background: #181c56;
|
|
684
|
-
border-color: #54568c;
|
|
685
814
|
}
|
|
686
|
-
.eds-
|
|
687
|
-
margin-top: 0.25rem;
|
|
688
|
-
word-wrap: break-word;
|
|
689
|
-
}
|
|
690
|
-
.eds-radio-panel--medium .eds-radio-panel__title {
|
|
691
|
-
font-size: 1rem;
|
|
692
|
-
font-weight: 500;
|
|
693
|
-
}
|
|
694
|
-
.eds-radio-panel--medium.eds-radio-panel__container {
|
|
695
|
-
padding-bottom: 1rem;
|
|
696
|
-
min-height: 3.75rem;
|
|
697
|
-
}
|
|
698
|
-
.eds-radio-panel--large.eds-radio-panel__container {
|
|
699
|
-
min-height: 6.5rem;
|
|
700
|
-
}
|
|
701
|
-
.eds-radio-panel--large .eds-radio-panel__title-wrapper {
|
|
702
|
-
height: 2rem;
|
|
703
|
-
}
|
|
704
|
-
.eds-radio-panel--large .eds-radio-panel__title {
|
|
705
|
-
font-size: 1.25rem;
|
|
706
|
-
font-weight: 500;
|
|
707
|
-
line-height: 1.875rem;
|
|
708
|
-
}
|
|
709
|
-
.eds-radio-panel--disabled {
|
|
815
|
+
.eds-textfield__clear-button:hover {
|
|
710
816
|
background: #f3f3f3;
|
|
711
|
-
border-color: #f3f3f3;
|
|
712
|
-
color: #656782;
|
|
713
817
|
}
|
|
714
|
-
.eds-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
border-color: #54568c;
|
|
718
|
-
color: #babbcf;
|
|
818
|
+
.eds-textfield__clear-button:focus {
|
|
819
|
+
outline: none;
|
|
820
|
+
box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
|
|
719
821
|
}
|
|
720
822
|
|
|
721
|
-
.eds-
|
|
722
|
-
|
|
723
|
-
|
|
823
|
+
.eds-textfield__divider {
|
|
824
|
+
content: "";
|
|
825
|
+
display: block;
|
|
826
|
+
background-color: #e9e9e9;
|
|
827
|
+
height: 1.5rem;
|
|
828
|
+
width: 1px;
|
|
724
829
|
}
|
|
725
|
-
.eds-
|
|
726
|
-
|
|
727
|
-
stroke-dasharray: 48;
|
|
728
|
-
stroke-dashoffset: 48;
|
|
729
|
-
stroke-width: 0.375rem;
|
|
830
|
+
.eds-contrast .eds-form-control-wrapper--disabled .eds-textfield__divider {
|
|
831
|
+
background-color: #8285a8;
|
|
730
832
|
}/* DO NOT CHANGE!*/
|
|
731
833
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
732
|
-
.eds-
|
|
733
|
-
|
|
734
|
-
display: block;
|
|
735
|
-
position: relative;
|
|
736
|
-
}
|
|
737
|
-
.eds-input-group__label {
|
|
738
|
-
color: #656782;
|
|
739
|
-
display: flex;
|
|
740
|
-
font-size: 1rem;
|
|
741
|
-
position: absolute;
|
|
742
|
-
line-height: 1rem;
|
|
743
|
-
height: 3rem;
|
|
744
|
-
padding: 1rem;
|
|
745
|
-
padding-left: 0;
|
|
746
|
-
margin-left: 1rem;
|
|
747
|
-
top: -0.125rem;
|
|
748
|
-
transition: top 0.2s ease-in-out, font-size 0.2s ease-in-out, padding 0.2s ease-in-out, line-height ease-in-out 0.2s;
|
|
749
|
-
user-select: none;
|
|
750
|
-
pointer-events: none;
|
|
751
|
-
}
|
|
752
|
-
.eds-form-control-wrapper--is-filled .eds-input-group__label {
|
|
753
|
-
top: calc(0.5rem - 0.125rem);
|
|
754
|
-
font-size: 0.75rem;
|
|
755
|
-
line-height: 0.75rem;
|
|
756
|
-
height: 10px;
|
|
757
|
-
padding: 0;
|
|
758
|
-
margin-left: 1rem;
|
|
759
|
-
}
|
|
760
|
-
.eds-textarea__label .eds-form-control-wrapper--is-filled .eds-input-group__label {
|
|
761
|
-
box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
|
|
762
|
-
background: var(--textarea-label-background);
|
|
763
|
-
width: calc( 100% - 1rem - 1rem - 4px );
|
|
764
|
-
}
|
|
765
|
-
.eds-form-control-wrapper--size-large .eds-form-control-wrapper--is-filled .eds-input-group__label {
|
|
766
|
-
top: 0.5rem;
|
|
767
|
-
font-size: 0.875rem;
|
|
768
|
-
line-height: 1rem;
|
|
769
|
-
padding: 0;
|
|
770
|
-
margin-left: 1rem;
|
|
771
|
-
}
|
|
772
|
-
.eds-contrast .eds-input-group__label {
|
|
773
|
-
color: #8285a8;
|
|
774
|
-
}
|
|
775
|
-
.eds-contrast .eds-form-control-wrapper--dark .eds-input-group__label {
|
|
776
|
-
color: #aeb7e2;
|
|
777
|
-
}
|
|
778
|
-
.eds-form-control-wrapper--size-large .eds-input-group__label {
|
|
779
|
-
font-size: 1.5rem;
|
|
780
|
-
line-height: 2.25rem;
|
|
781
|
-
height: 4rem;
|
|
782
|
-
}
|
|
783
|
-
.eds-input-group__label--filled {
|
|
784
|
-
top: calc(0.5rem - 0.125rem);
|
|
785
|
-
font-size: 0.75rem;
|
|
786
|
-
line-height: 0.75rem;
|
|
787
|
-
height: 10px;
|
|
788
|
-
padding: 0;
|
|
789
|
-
margin-left: 1rem;
|
|
790
|
-
}
|
|
791
|
-
.eds-textarea__label .eds-input-group__label--filled {
|
|
792
|
-
box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
|
|
793
|
-
background: var(--textarea-label-background);
|
|
794
|
-
width: calc( 100% - 1rem - 1rem - 4px );
|
|
795
|
-
}
|
|
796
|
-
.eds-form-control-wrapper--size-large .eds-input-group__label--filled {
|
|
797
|
-
top: 0.5rem;
|
|
798
|
-
font-size: 0.875rem;
|
|
799
|
-
line-height: 1rem;
|
|
800
|
-
padding: 0;
|
|
801
|
-
margin-left: 1rem;
|
|
802
|
-
}
|
|
803
|
-
.eds-input-group__label-tooltip-icon {
|
|
804
|
-
color: #0082b9;
|
|
805
|
-
padding-left: 0.25rem;
|
|
806
|
-
padding-right: 0.25rem;
|
|
834
|
+
.eds-segmented-control {
|
|
835
|
+
margin-top: 0.25rem;
|
|
807
836
|
display: flex;
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
font-size: 1rem;
|
|
811
|
-
}
|
|
812
|
-
|
|
813
|
-
.eds-form-control-wrapper:focus-within .eds-input-group__label {
|
|
814
|
-
top: calc(0.5rem - 0.125rem);
|
|
815
|
-
font-size: 0.75rem;
|
|
816
|
-
line-height: 0.75rem;
|
|
817
|
-
height: 10px;
|
|
818
|
-
padding: 0;
|
|
819
|
-
margin-left: 1rem;
|
|
820
|
-
}
|
|
821
|
-
.eds-textarea__label .eds-form-control-wrapper:focus-within .eds-input-group__label {
|
|
822
|
-
box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
|
|
823
|
-
background: var(--textarea-label-background);
|
|
824
|
-
width: calc( 100% - 1rem - 1rem - 4px );
|
|
837
|
+
background: #d1d4e3;
|
|
838
|
+
border-radius: 0.25rem;
|
|
825
839
|
}
|
|
826
|
-
.eds-
|
|
827
|
-
|
|
828
|
-
font-size: 0.875rem;
|
|
829
|
-
line-height: 1rem;
|
|
830
|
-
padding: 0;
|
|
831
|
-
margin-left: 1rem;
|
|
840
|
+
.eds-contrast .eds-segmented-control {
|
|
841
|
+
background: #393d79;
|
|
832
842
|
}/* DO NOT CHANGE!*/
|
|
833
843
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
834
844
|
.eds-segmented-choice {
|
|
@@ -893,14 +903,4 @@ textarea.eds-form-control.eds-textarea {
|
|
|
893
903
|
}
|
|
894
904
|
.eds-contrast .eds-segmented-choice:hover input:checked + .eds-base-segmented {
|
|
895
905
|
--background-color: #d1d4e3;
|
|
896
|
-
}/* DO NOT CHANGE!*/
|
|
897
|
-
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
898
|
-
.eds-segmented-control {
|
|
899
|
-
margin-top: 0.25rem;
|
|
900
|
-
display: flex;
|
|
901
|
-
background: #d1d4e3;
|
|
902
|
-
border-radius: 0.25rem;
|
|
903
|
-
}
|
|
904
|
-
.eds-contrast .eds-segmented-control {
|
|
905
|
-
background: #393d79;
|
|
906
906
|
}
|
package/dist/utils.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export declare function hasValue(value: any): boolean;
|
|
2
|
-
export declare function isFilled(obj: any, SSR?: boolean):
|
|
2
|
+
export declare function isFilled(obj: any, SSR?: boolean): any;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@entur/form",
|
|
3
|
-
"version": "5.2.
|
|
3
|
+
"version": "5.2.2",
|
|
4
4
|
"license": "EUPL-1.2",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/form.esm.js",
|
|
@@ -17,22 +17,22 @@
|
|
|
17
17
|
"access": "public"
|
|
18
18
|
},
|
|
19
19
|
"scripts": {
|
|
20
|
-
"start": "
|
|
21
|
-
"build": "
|
|
22
|
-
"test": "
|
|
23
|
-
"lint": "
|
|
20
|
+
"start": "dts watch --noClean",
|
|
21
|
+
"build": "dts build",
|
|
22
|
+
"test": "dts test --env=jsdom",
|
|
23
|
+
"lint": "dts lint"
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {
|
|
26
26
|
"react": ">=16.8.0",
|
|
27
27
|
"react-dom": ">=16.8.0"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@entur/icons": "^3.4.
|
|
31
|
-
"@entur/tokens": "^3.3.
|
|
32
|
-
"@entur/tooltip": "^2.5.
|
|
33
|
-
"@entur/typography": "^1.6.
|
|
34
|
-
"@entur/utils": "^0.4.
|
|
30
|
+
"@entur/icons": "^3.4.1",
|
|
31
|
+
"@entur/tokens": "^3.3.1",
|
|
32
|
+
"@entur/tooltip": "^2.5.2",
|
|
33
|
+
"@entur/typography": "^1.6.11",
|
|
34
|
+
"@entur/utils": "^0.4.3",
|
|
35
35
|
"classnames": "^2.3.1"
|
|
36
36
|
},
|
|
37
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "61e643371cfc5653c93160b7c220152e5b2bafeb"
|
|
38
38
|
}
|