@entur/form 9.0.2-beta.0 → 9.1.1-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/BaseFormControl.d.ts +12 -4
- package/dist/RadioGroup.d.ts +2 -0
- package/dist/RadioGroupContext.d.ts +1 -0
- package/dist/TextField.d.ts +21 -3
- package/dist/form.cjs.js +127 -51
- package/dist/form.cjs.js.map +1 -1
- package/dist/form.esm.js +127 -51
- package/dist/form.esm.js.map +1 -1
- package/dist/inputPanel/CheckboxPanel.d.ts +4 -0
- package/dist/inputPanel/InputPanelBase.d.ts +4 -0
- package/dist/inputPanel/RadioPanel.d.ts +4 -0
- package/dist/styles.css +106 -107
- package/package.json +7 -7
package/dist/styles.css
CHANGED
|
@@ -1145,37 +1145,37 @@
|
|
|
1145
1145
|
.eds-contrast .eds-checkbox__container input:checked + .eds-checkbox__icon--readonly .eds-checkbox-icon rect, .eds-contrast .eds-checkbox__container input:indeterminate + .eds-checkbox__icon--readonly .eds-checkbox-icon rect{
|
|
1146
1146
|
fill:var(--components-form-checkbox-contrast-icon-readonly);
|
|
1147
1147
|
}
|
|
1148
|
-
.eds-
|
|
1148
|
+
.eds-checkbox:hover:not(.eds-checkbox--readonly):not(.eds-checkbox--disabled) input + .eds-checkbox__icon{
|
|
1149
1149
|
border-color:var(--components-form-checkbox-standard-border);
|
|
1150
1150
|
background-color:var(--components-form-checkbox-standard-fill-hover);
|
|
1151
1151
|
}
|
|
1152
|
-
.eds-contrast .eds-
|
|
1152
|
+
.eds-contrast .eds-checkbox:hover:not(.eds-checkbox--readonly):not(.eds-checkbox--disabled) input + .eds-checkbox__icon{
|
|
1153
1153
|
border-color:var(--components-form-checkbox-contrast-border);
|
|
1154
1154
|
background-color:var(--components-form-checkbox-contrast-fill-hover);
|
|
1155
1155
|
}
|
|
1156
|
-
.eds-
|
|
1157
|
-
.eds-
|
|
1156
|
+
.eds-checkbox:hover:not(.eds-checkbox--readonly):not(.eds-checkbox--disabled) input:checked + .eds-checkbox__icon,
|
|
1157
|
+
.eds-checkbox:hover:not(.eds-checkbox--readonly):not(.eds-checkbox--disabled) input:indeterminate + .eds-checkbox__icon:not(.eds-checkbox--disabled){
|
|
1158
1158
|
border-color:transparent;
|
|
1159
1159
|
background-color:var(--components-form-checkbox-standard-fill-selectedhover);
|
|
1160
1160
|
}
|
|
1161
|
-
.eds-contrast .eds-
|
|
1162
|
-
.eds-contrast .eds-
|
|
1161
|
+
.eds-contrast .eds-checkbox:hover:not(.eds-checkbox--readonly):not(.eds-checkbox--disabled) input:checked + .eds-checkbox__icon,
|
|
1162
|
+
.eds-contrast .eds-checkbox:hover:not(.eds-checkbox--readonly):not(.eds-checkbox--disabled) input:indeterminate + .eds-checkbox__icon:not(.eds-checkbox--disabled){
|
|
1163
1163
|
background-color:var(--components-form-checkbox-contrast-fill-selectedhover);
|
|
1164
1164
|
}
|
|
1165
|
-
.eds-
|
|
1166
|
-
.eds-
|
|
1165
|
+
.eds-checkbox:active:not(.eds-checkbox--readonly):not(.eds-checkbox--disabled) input:checked + .eds-checkbox__icon,
|
|
1166
|
+
.eds-checkbox:active:not(.eds-checkbox--readonly):not(.eds-checkbox--disabled) input:indeterminate + .eds-checkbox__icon{
|
|
1167
1167
|
background-color:var(--components-form-checkbox-standard-fill-selected);
|
|
1168
1168
|
}
|
|
1169
|
-
.eds-contrast .eds-
|
|
1170
|
-
.eds-contrast .eds-
|
|
1169
|
+
.eds-contrast .eds-checkbox:active:not(.eds-checkbox--readonly):not(.eds-checkbox--disabled) input:checked + .eds-checkbox__icon,
|
|
1170
|
+
.eds-contrast .eds-checkbox:active:not(.eds-checkbox--readonly):not(.eds-checkbox--disabled) input:indeterminate + .eds-checkbox__icon{
|
|
1171
1171
|
background-color:var(--components-form-checkbox-contrast-fill-selected);
|
|
1172
1172
|
}
|
|
1173
|
-
.eds-
|
|
1173
|
+
.eds-checkbox:has(:focus-visible) .eds-checkbox__icon{
|
|
1174
1174
|
outline:2px solid #181c56;
|
|
1175
1175
|
outline-color:var(--basecolors-stroke-focus-standard);
|
|
1176
1176
|
outline-offset:0.125rem;
|
|
1177
1177
|
}
|
|
1178
|
-
.eds-contrast .eds-
|
|
1178
|
+
.eds-contrast .eds-checkbox:has(:focus-visible) .eds-checkbox__icon{
|
|
1179
1179
|
outline-color:var(--basecolors-stroke-focus-contrast);
|
|
1180
1180
|
}
|
|
1181
1181
|
.eds-checkbox--disabled{
|
|
@@ -1428,7 +1428,7 @@
|
|
|
1428
1428
|
border-color:var(--components-form-radio-contrast-border-readonly);
|
|
1429
1429
|
}
|
|
1430
1430
|
.eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--readonly:checked ~ .eds-form-component--radio__radio .eds-form-component--radio__circle{
|
|
1431
|
-
background-color:var(--components-form-radio-standard-
|
|
1431
|
+
background-color:var(--components-form-radio-standard-fill-selected);
|
|
1432
1432
|
border-color:var(--components-form-radio-standard-border-readonly);
|
|
1433
1433
|
}
|
|
1434
1434
|
.eds-form-component--radio__container .eds-form-component--radio__radio .eds-form-component--radio__circle{
|
|
@@ -1461,43 +1461,6 @@
|
|
|
1461
1461
|
height:0;
|
|
1462
1462
|
width:0;
|
|
1463
1463
|
}
|
|
1464
|
-
.eds-input-panel > input:checked + .eds-input-panel__container{
|
|
1465
|
-
border-color:var(--components-form-basepanel-standard-border-selected);
|
|
1466
|
-
background:var(--components-form-basepanel-standard-fill-selected);
|
|
1467
|
-
}
|
|
1468
|
-
.eds-contrast .eds-input-panel > input:checked + .eds-input-panel__container{
|
|
1469
|
-
border-color:var(--components-form-basepanel-contrast-border-selected);
|
|
1470
|
-
background:var(--components-form-basepanel-contrast-fill-selected);
|
|
1471
|
-
}
|
|
1472
|
-
.eds-input-panel > input:checked + .eds-input-panel__container .eds-form-component--radio__circle{
|
|
1473
|
-
width:0.75rem;
|
|
1474
|
-
height:0.75rem;
|
|
1475
|
-
}
|
|
1476
|
-
.eds-contrast .eds-input-panel > input:checked + .eds-input-panel__container .eds-form-component--radio__circle{
|
|
1477
|
-
background-color:var(--components-form-radio-contrast-icon);
|
|
1478
|
-
}
|
|
1479
|
-
.eds-input-panel > input:checked + .eds-input-panel__container:hover{
|
|
1480
|
-
background-color:var(--components-form-basepanel-standard-fill-hover);
|
|
1481
|
-
/* The following styling is needed to sync the inner checkbox/radiobutton's
|
|
1482
|
-
hover state styling with the inputPanel container */
|
|
1483
|
-
}
|
|
1484
|
-
.eds-contrast .eds-input-panel > input:checked + .eds-input-panel__container:hover{
|
|
1485
|
-
background-color:var(--components-form-basepanel-contrast-fill-hover);
|
|
1486
|
-
}
|
|
1487
|
-
.eds-input-panel > input:checked + .eds-input-panel__container:hover .eds-form-component--radio__radio{
|
|
1488
|
-
background-color:var(--components-form-basepanel-standard-fill-hover);
|
|
1489
|
-
border-color:var(--components-form-basepanel-standard-border-selected);
|
|
1490
|
-
}
|
|
1491
|
-
.eds-contrast .eds-input-panel > input:checked + .eds-input-panel__container:hover .eds-form-component--radio__radio{
|
|
1492
|
-
background-color:var(--components-form-basepanel-contrast-fill-hover);
|
|
1493
|
-
border-color:var(--components-form-basepanel-contrast-border-selected);
|
|
1494
|
-
}
|
|
1495
|
-
.eds-input-panel > input:checked + .eds-input-panel__container:hover .eds-checkbox__icon{
|
|
1496
|
-
border-color:transparent;
|
|
1497
|
-
}
|
|
1498
|
-
.eds-contrast .eds-input-panel > input:checked + .eds-input-panel__container:hover .eds-checkbox__icon{
|
|
1499
|
-
background-color:var(--components-form-checkbox-contrast-fill-selectedhover);
|
|
1500
|
-
}
|
|
1501
1464
|
.eds-input-panel__container{
|
|
1502
1465
|
background:var(--components-form-basepanel-standard-fill-default);
|
|
1503
1466
|
border:0.125rem solid var(--components-form-basepanel-standard-border-default);
|
|
@@ -1534,47 +1497,89 @@
|
|
|
1534
1497
|
-moz-transition:background ease-in-out 0.1s, border-color ease-in-out 0.1s;
|
|
1535
1498
|
transition:background ease-in-out 0.1s, border-color ease-in-out 0.1s;
|
|
1536
1499
|
}
|
|
1500
|
+
.eds-input-panel__container:hover{
|
|
1501
|
+
background-color:var(--components-form-basepanel-standard-fill-hover);
|
|
1502
|
+
}
|
|
1503
|
+
.eds-contrast .eds-input-panel__container:hover{
|
|
1504
|
+
background-color:var(--components-form-basepanel-contrast-fill-hover);
|
|
1505
|
+
}
|
|
1537
1506
|
.eds-contrast .eds-input-panel__container{
|
|
1538
1507
|
background-color:var(--components-form-basepanel-contrast-fill-default);
|
|
1539
1508
|
border-color:var(--components-form-basepanel-contrast-border-default);
|
|
1540
1509
|
color:var(--components-form-basepanel-contrast-text-accent);
|
|
1541
1510
|
}
|
|
1542
|
-
.eds-input-panel__container
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1511
|
+
.eds-input-panel__container .eds-checkbox__icon,
|
|
1512
|
+
.eds-input-panel__container .eds-checkbox__icon .eds-checkbox__icon,
|
|
1513
|
+
.eds-input-panel__container .eds-form-component--radio__radio{
|
|
1514
|
+
width:1.5rem;
|
|
1515
|
+
height:1.5rem;
|
|
1516
|
+
margin-right:0;
|
|
1546
1517
|
}
|
|
1547
|
-
.eds-
|
|
1548
|
-
|
|
1518
|
+
.eds-input-panel :where(input:checked) + .eds-input-panel__container{
|
|
1519
|
+
border-color:var(--components-form-basepanel-standard-border-selected);
|
|
1520
|
+
background:var(--components-form-basepanel-standard-fill-selected);
|
|
1521
|
+
}
|
|
1522
|
+
.eds-contrast .eds-input-panel :where(input:checked) + .eds-input-panel__container{
|
|
1523
|
+
border-color:var(--components-form-basepanel-contrast-border-selected);
|
|
1524
|
+
background:var(--components-form-basepanel-contrast-fill-selected);
|
|
1549
1525
|
}
|
|
1550
|
-
.eds-input-
|
|
1551
|
-
.eds-input-panel__container:hover .eds-form-component--radio__radio{
|
|
1526
|
+
.eds-input-panel :where(input:checked) + .eds-input-panel__container:hover{
|
|
1552
1527
|
background-color:var(--components-form-basepanel-standard-fill-hover);
|
|
1553
|
-
border-color:var(--components-form-basepanel-standard-border-selected);
|
|
1554
1528
|
}
|
|
1555
|
-
.eds-contrast .eds-input-
|
|
1556
|
-
.eds-contrast .eds-input-panel__container:hover .eds-form-component--radio__radio{
|
|
1529
|
+
.eds-contrast .eds-input-panel :where(input:checked) + .eds-input-panel__container:hover{
|
|
1557
1530
|
background-color:var(--components-form-basepanel-contrast-fill-hover);
|
|
1558
|
-
border-color:var(--components-form-basepanel-contrast-border-selected);
|
|
1559
1531
|
}
|
|
1560
|
-
input
|
|
1561
|
-
|
|
1532
|
+
.eds-input-panel--readonly .eds-input-panel__container{
|
|
1533
|
+
border-style:dashed;
|
|
1534
|
+
cursor:default;
|
|
1535
|
+
border-color:var(--components-form-checkbox-standard-border-readonly);
|
|
1536
|
+
background:var(--components-form-basepanel-standard-fill-default);
|
|
1537
|
+
color:var(--components-form-basepanel-standard-text-accent);
|
|
1538
|
+
}
|
|
1539
|
+
.eds-contrast .eds-input-panel--readonly .eds-input-panel__container{
|
|
1540
|
+
border-color:var(--components-form-checkbox-contrast-border-readonly);
|
|
1541
|
+
background:var(--components-form-basepanel-contrast-fill-default);
|
|
1542
|
+
color:var(--components-form-basepanel-contrast-text-accent);
|
|
1543
|
+
}
|
|
1544
|
+
.eds-input-panel--readonly .eds-input-panel__container:hover{
|
|
1545
|
+
background-color:var(--components-form-basepanel-standard-fill-default);
|
|
1546
|
+
}
|
|
1547
|
+
.eds-contrast .eds-input-panel--readonly .eds-input-panel__container:hover{
|
|
1548
|
+
background-color:var(--components-form-basepanel-contrast-fill-default);
|
|
1549
|
+
}
|
|
1550
|
+
.eds-input-panel--readonly :where(input:checked) + .eds-input-panel__container{
|
|
1551
|
+
border-style:dashed;
|
|
1552
|
+
border-color:var(--components-form-checkbox-standard-border-readonly);
|
|
1553
|
+
background:var(--components-form-basepanel-standard-fill-default);
|
|
1554
|
+
}
|
|
1555
|
+
.eds-contrast .eds-input-panel--readonly :where(input:checked) + .eds-input-panel__container{
|
|
1556
|
+
border-color:var(--components-form-checkbox-contrast-border-readonly);
|
|
1557
|
+
background:var(--components-form-basepanel-contrast-fill-default);
|
|
1558
|
+
}
|
|
1559
|
+
.eds-input-panel--disabled .eds-input-panel__container{
|
|
1560
|
+
cursor:not-allowed;
|
|
1562
1561
|
border-color:var(--components-form-basepanel-standard-border-disabled);
|
|
1562
|
+
background:var(--components-form-basepanel-standard-fill-disabled);
|
|
1563
1563
|
color:var(--components-form-basepanel-standard-text-disabled);
|
|
1564
|
-
cursor:not-allowed;
|
|
1565
1564
|
}
|
|
1566
|
-
.eds-contrast input
|
|
1567
|
-
background:var(--components-form-basepanel-contrast-fill-disabled);
|
|
1568
|
-
border-style:dashed;
|
|
1565
|
+
.eds-contrast .eds-input-panel--disabled .eds-input-panel__container{
|
|
1569
1566
|
border-color:var(--components-form-basepanel-contrast-border-disabled);
|
|
1567
|
+
background:var(--components-form-basepanel-contrast-fill-disabled);
|
|
1570
1568
|
color:var(--components-form-basepanel-contrast-text-disabled);
|
|
1571
1569
|
}
|
|
1572
|
-
.eds-input-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1570
|
+
.eds-input-panel--disabled .eds-input-panel__container:hover{
|
|
1571
|
+
background-color:var(--components-form-basepanel-standard-fill-disabled);
|
|
1572
|
+
}
|
|
1573
|
+
.eds-contrast .eds-input-panel--disabled .eds-input-panel__container:hover{
|
|
1574
|
+
background-color:var(--components-form-basepanel-contrast-fill-disabled);
|
|
1575
|
+
}
|
|
1576
|
+
.eds-input-panel--disabled :where(input:checked) + .eds-input-panel__container{
|
|
1577
|
+
border-color:var(--components-form-basepanel-standard-border-disabled);
|
|
1578
|
+
background:var(--components-form-basepanel-standard-fill-disabled);
|
|
1579
|
+
}
|
|
1580
|
+
.eds-contrast .eds-input-panel--disabled :where(input:checked) + .eds-input-panel__container{
|
|
1581
|
+
border-color:var(--components-form-basepanel-contrast-border-disabled);
|
|
1582
|
+
background:var(--components-form-basepanel-contrast-fill-disabled);
|
|
1578
1583
|
}
|
|
1579
1584
|
.eds-input-panel--medium .eds-input-panel__title{
|
|
1580
1585
|
font-size:1rem;
|
|
@@ -1584,14 +1589,14 @@ input:disabled + .eds-input-panel__container{
|
|
|
1584
1589
|
padding-bottom:1rem;
|
|
1585
1590
|
min-height:3.75rem;
|
|
1586
1591
|
}
|
|
1587
|
-
.eds-input-panel--large.eds-input-panel__container{
|
|
1588
|
-
min-height:6rem;
|
|
1589
|
-
}
|
|
1590
1592
|
.eds-input-panel--large .eds-input-panel__title{
|
|
1591
1593
|
font-size:1.25rem;
|
|
1592
1594
|
font-weight:500;
|
|
1593
1595
|
line-height:1.875rem;
|
|
1594
1596
|
}
|
|
1597
|
+
.eds-input-panel--large.eds-input-panel__container{
|
|
1598
|
+
min-height:6rem;
|
|
1599
|
+
}
|
|
1595
1600
|
.eds-input-panel__title-wrapper{
|
|
1596
1601
|
display:-webkit-box;
|
|
1597
1602
|
display:-webkit-flex;
|
|
@@ -1954,45 +1959,43 @@ input:disabled + .eds-input-panel__container{
|
|
|
1954
1959
|
.eds-textarea__wrapper .eds-form-control-wrapper{
|
|
1955
1960
|
padding-right:0;
|
|
1956
1961
|
cursor:text;
|
|
1957
|
-
}.eds-
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
-moz-border-radius:50%;
|
|
1962
|
-
border-radius:50%;
|
|
1963
|
-
color:inherit;
|
|
1964
|
-
cursor:pointer;
|
|
1962
|
+
}.eds-textfield__wrapper{
|
|
1963
|
+
cursor:text;
|
|
1964
|
+
}
|
|
1965
|
+
.eds-textfield__append{
|
|
1965
1966
|
display:-webkit-box;
|
|
1966
1967
|
display:-webkit-flex;
|
|
1967
1968
|
display:-moz-box;
|
|
1968
1969
|
display:flex;
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1970
|
+
-webkit-box-orient:horizontal;
|
|
1971
|
+
-webkit-box-direction:normal;
|
|
1972
|
+
-webkit-flex-direction:row;
|
|
1973
|
+
-moz-box-orient:horizontal;
|
|
1974
|
+
-moz-box-direction:normal;
|
|
1975
|
+
flex-direction:row;
|
|
1976
|
+
-webkit-box-align:center;
|
|
1977
|
+
-webkit-align-items:center;
|
|
1978
|
+
-moz-box-align:center;
|
|
1979
|
+
align-items:center;
|
|
1980
|
+
}
|
|
1981
|
+
.eds-textfield__append:has(.eds-textfield__clear-button){
|
|
1982
|
+
margin-right:-1rem;
|
|
1983
|
+
}
|
|
1984
|
+
.eds-textfield__clear-button{
|
|
1985
|
+
margin-inline:0.25rem;
|
|
1974
1986
|
}
|
|
1975
1987
|
.eds-textfield__clear-button:hover{
|
|
1976
|
-
background:var(--components-
|
|
1988
|
+
background:var(--components-button-iconbutton-standard-hover);
|
|
1977
1989
|
}
|
|
1978
1990
|
.eds-textfield__clear-button:focus-visible{
|
|
1979
1991
|
outline:2px solid #181c56;
|
|
1980
1992
|
outline-color:var(--basecolors-stroke-focus-standard);
|
|
1981
|
-
outline-offset:0.125rem;
|
|
1982
1993
|
}
|
|
1983
|
-
.eds-textfield__clear-button-wrapper{
|
|
1984
|
-
display:-webkit-box;
|
|
1985
|
-
display:-webkit-flex;
|
|
1986
|
-
display:-moz-box;
|
|
1987
|
-
display:flex;
|
|
1988
|
-
-webkit-box-align:center;
|
|
1989
|
-
-webkit-align-items:center;
|
|
1990
|
-
-moz-box-align:center;
|
|
1991
|
-
align-items:center;
|
|
1992
|
-
}
|
|
1993
|
-
|
|
1994
1994
|
.eds-textfield__divider{
|
|
1995
1995
|
content:"";
|
|
1996
|
+
-webkit-margin-start:0.75rem;
|
|
1997
|
+
-moz-margin-start:0.75rem;
|
|
1998
|
+
margin-inline-start:0.75rem;
|
|
1996
1999
|
display:block;
|
|
1997
2000
|
background-color:var(--components-form-baseform-standard-icon);
|
|
1998
2001
|
height:1.5rem;
|
|
@@ -2000,10 +2003,6 @@ input:disabled + .eds-input-panel__container{
|
|
|
2000
2003
|
}
|
|
2001
2004
|
.eds-contrast .eds-form-control-wrapper--disabled .eds-textfield__divider{
|
|
2002
2005
|
background-color:var(--components-form-baseform-contrast-icon);
|
|
2003
|
-
}
|
|
2004
|
-
|
|
2005
|
-
.eds-textfield__wrapper{
|
|
2006
|
-
cursor:text;
|
|
2007
2006
|
}.eds-segmented-control .eds-label{
|
|
2008
2007
|
font-weight:600;
|
|
2009
2008
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@entur/form",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.1.1-beta.0",
|
|
4
4
|
"license": "EUPL-1.2",
|
|
5
5
|
"main": "dist/form.cjs.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/button": "^3.
|
|
31
|
-
"@entur/icons": "^8.3.0
|
|
30
|
+
"@entur/button": "^3.3.20-beta.0",
|
|
31
|
+
"@entur/icons": "^8.3.0",
|
|
32
32
|
"@entur/tokens": "^3.20.0",
|
|
33
|
-
"@entur/tooltip": "^5.2.
|
|
34
|
-
"@entur/typography": "^
|
|
35
|
-
"@entur/utils": "^0.12.
|
|
33
|
+
"@entur/tooltip": "^5.2.19-beta.0",
|
|
34
|
+
"@entur/typography": "^3.0.0-beta.0",
|
|
35
|
+
"@entur/utils": "^0.12.6-beta.0",
|
|
36
36
|
"classnames": "^2.5.1"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
@@ -48,5 +48,5 @@
|
|
|
48
48
|
"vite": "^7.1.3",
|
|
49
49
|
"vite-plugin-dts": "^4.5.4"
|
|
50
50
|
},
|
|
51
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "89f96eb3e2da5ec84f0a1224bc6e20021255e389"
|
|
52
52
|
}
|