@scania/tegel-lite 1.7.0 → 1.8.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/components.css +970 -152
- package/dist/global.css +4 -0
- package/dist/tl-dropdown.css +28 -43
- package/dist/tl-folder-tabs.css +0 -1
- package/dist/tl-popover-menu.css +1 -1
- package/dist/tl-table.css +878 -0
- package/dist/tl-text-field.css +46 -70
- package/dist/tl-textarea.css +30 -37
- package/package.json +4 -3
package/dist/tl-text-field.css
CHANGED
|
@@ -211,7 +211,7 @@
|
|
|
211
211
|
--text-field-label-disabled: var(--color-text-disabled);
|
|
212
212
|
--text-field-affix-disabled: var(--color-text-disabled);
|
|
213
213
|
--text-field-textcounter: var(--component--input-text-counter-default);
|
|
214
|
-
--text-field-opacity-disabled: var(--component--input-opacity-disabled);
|
|
214
|
+
--text-field-opacity-disabled: calc(var(--component--input-opacity-disabled) / 100);
|
|
215
215
|
--text-field-border-radius: calc(var(--component--input-border-radius-top-left) * 1px)
|
|
216
216
|
calc(var(--component--input-border-radius-top-right) * 1px)
|
|
217
217
|
calc(var(--component--input-border-radius-bottom-right) * 1px)
|
|
@@ -1484,7 +1484,7 @@
|
|
|
1484
1484
|
.tl-text-field:has(.tl-text-field__input:disabled) {
|
|
1485
1485
|
cursor: not-allowed;
|
|
1486
1486
|
}
|
|
1487
|
-
.tl-text-field:has(.tl-text-field__input:disabled) .tl-text-field__input-wrapper, .tl-text-field:has(.tl-text-field__input:disabled) .tl-text-field__label {
|
|
1487
|
+
.tl-text-field:has(.tl-text-field__input:disabled) .tl-text-field__input-wrapper, .tl-text-field:has(.tl-text-field__input:disabled) .tl-text-field__label, .tl-text-field:has(.tl-text-field__input:disabled) .tl-text-field__bottom {
|
|
1488
1488
|
opacity: var(--text-field-opacity-disabled);
|
|
1489
1489
|
}
|
|
1490
1490
|
.tl-text-field .tl-icon {
|
|
@@ -1494,7 +1494,8 @@
|
|
|
1494
1494
|
.tl-text-field__input-wrapper {
|
|
1495
1495
|
position: relative;
|
|
1496
1496
|
}
|
|
1497
|
-
.tl-text-field:has(.tl-text-field__input[readonly]):not(:has(.tl-text-field__input:disabled)
|
|
1497
|
+
.tl-text-field:has(.tl-text-field__input[readonly]):not(:has(.tl-text-field__input:disabled),
|
|
1498
|
+
.tl-text-field--hide-readonly-icon) .tl-text-field__input-wrapper::before {
|
|
1498
1499
|
content: "";
|
|
1499
1500
|
position: absolute;
|
|
1500
1501
|
top: 50%;
|
|
@@ -1554,11 +1555,17 @@
|
|
|
1554
1555
|
outline-offset: 1px;
|
|
1555
1556
|
z-index: 1;
|
|
1556
1557
|
}
|
|
1557
|
-
.tl-text-field:hover .tl-text-field__input:not(:focus
|
|
1558
|
-
border-
|
|
1558
|
+
.tl-text-field:hover .tl-text-field__input:not(:focus, :disabled) {
|
|
1559
|
+
border-width: calc(var(--component--input-border-width-top) * 1px) calc(var(--component--input-border-width-right) * 1px) calc(var(--component--input-border-width-bottom) * 1px) calc(var(--component--input-border-width-left) * 1px);
|
|
1560
|
+
border-radius: calc(var(--component--input-border-radius-top-left) * 1px) calc(var(--component--input-border-radius-top-right) * 1px) calc(var(--component--input-border-radius-bottom-right) * 1px) calc(var(--component--input-border-radius-bottom-left) * 1px);
|
|
1561
|
+
border-style: solid;
|
|
1562
|
+
border-color: var(--component--input-border-hover);
|
|
1559
1563
|
}
|
|
1560
1564
|
.tl-text-field--error .tl-text-field__input {
|
|
1561
|
-
border-
|
|
1565
|
+
border-width: calc(var(--component--input-border-width-top) * 1px) calc(var(--component--input-border-width-right) * 1px) calc(var(--component--input-border-width-bottom) * 1px) calc(var(--component--input-border-width-left) * 1px);
|
|
1566
|
+
border-radius: calc(var(--component--input-border-radius-top-left) * 1px) calc(var(--component--input-border-radius-top-right) * 1px) calc(var(--component--input-border-radius-bottom-right) * 1px) calc(var(--component--input-border-radius-bottom-left) * 1px);
|
|
1567
|
+
border-style: solid;
|
|
1568
|
+
border-color: var(--component--input-text-error-default);
|
|
1562
1569
|
}
|
|
1563
1570
|
.tl-text-field--error .tl-text-field__input:focus {
|
|
1564
1571
|
outline: 2px solid var(--component--focus-ring-color-strong);
|
|
@@ -1566,18 +1573,28 @@
|
|
|
1566
1573
|
outline-offset: 1px;
|
|
1567
1574
|
z-index: 1;
|
|
1568
1575
|
}
|
|
1569
|
-
.tl-text-field--error:hover .tl-text-field__input:not(:focus
|
|
1570
|
-
border-
|
|
1576
|
+
.tl-text-field--error:hover .tl-text-field__input:not(:focus, :disabled) {
|
|
1577
|
+
border-width: calc(var(--component--input-border-width-top) * 1px) calc(var(--component--input-border-width-right) * 1px) calc(var(--component--input-border-width-bottom) * 1px) calc(var(--component--input-border-width-left) * 1px);
|
|
1578
|
+
border-radius: calc(var(--component--input-border-radius-top-left) * 1px) calc(var(--component--input-border-radius-top-right) * 1px) calc(var(--component--input-border-radius-bottom-right) * 1px) calc(var(--component--input-border-radius-bottom-left) * 1px);
|
|
1579
|
+
border-style: solid;
|
|
1580
|
+
border-color: var(--component--input-text-error-default);
|
|
1571
1581
|
}
|
|
1572
|
-
.tl-text-field--success:not(:has(.tl-text-field__input[readonly])
|
|
1573
|
-
|
|
1582
|
+
.tl-text-field--success:not(:has(.tl-text-field__input[readonly]),
|
|
1583
|
+
:has(.tl-text-field__input:disabled)) .tl-text-field__input:not(:focus) {
|
|
1584
|
+
border-width: calc(var(--component--input-border-width-top) * 1px) calc(var(--component--input-border-width-right) * 1px) calc(var(--component--input-border-width-bottom) * 1px) calc(var(--component--input-border-width-left) * 1px);
|
|
1585
|
+
border-radius: calc(var(--component--input-border-radius-top-left) * 1px) calc(var(--component--input-border-radius-top-right) * 1px) calc(var(--component--input-border-radius-bottom-right) * 1px) calc(var(--component--input-border-radius-bottom-left) * 1px);
|
|
1586
|
+
border-style: solid;
|
|
1587
|
+
border-color: var(--component--input-border-success-default);
|
|
1574
1588
|
}
|
|
1575
1589
|
.tl-text-field__input:disabled {
|
|
1576
1590
|
cursor: not-allowed;
|
|
1577
1591
|
pointer-events: none;
|
|
1578
1592
|
}
|
|
1579
1593
|
:has(.tl-text-field__input[readonly]):not(:has(.tl-text-field__input:disabled)) .tl-text-field__input {
|
|
1580
|
-
border-
|
|
1594
|
+
border-width: calc(var(--component--input-border-width-top) * 1px) calc(var(--component--input-border-width-right) * 1px) calc(var(--component--input-border-width-bottom) * 1px) calc(var(--component--input-border-width-left) * 1px);
|
|
1595
|
+
border-radius: calc(var(--component--input-border-radius-top-left) * 1px) calc(var(--component--input-border-radius-top-right) * 1px) calc(var(--component--input-border-radius-bottom-right) * 1px) calc(var(--component--input-border-radius-bottom-left) * 1px);
|
|
1596
|
+
border-style: solid;
|
|
1597
|
+
border-color: var(--color-border-defined);
|
|
1581
1598
|
}
|
|
1582
1599
|
:has(.tl-text-field__input[readonly]):not(:has(.tl-text-field__input:disabled)) .tl-text-field__input:focus {
|
|
1583
1600
|
outline: 2px solid var(--component--focus-ring-color-strong);
|
|
@@ -1586,7 +1603,10 @@
|
|
|
1586
1603
|
z-index: 1;
|
|
1587
1604
|
}
|
|
1588
1605
|
:has(.tl-text-field__input[readonly]):not(:has(.tl-text-field__input:disabled)):hover .tl-text-field__input:not(:focus) {
|
|
1589
|
-
border-
|
|
1606
|
+
border-width: calc(var(--component--input-border-width-top) * 1px) calc(var(--component--input-border-width-right) * 1px) calc(var(--component--input-border-width-bottom) * 1px) calc(var(--component--input-border-width-left) * 1px);
|
|
1607
|
+
border-radius: calc(var(--component--input-border-radius-top-left) * 1px) calc(var(--component--input-border-radius-top-right) * 1px) calc(var(--component--input-border-radius-bottom-right) * 1px) calc(var(--component--input-border-radius-bottom-left) * 1px);
|
|
1608
|
+
border-style: solid;
|
|
1609
|
+
border-color: var(--component--input-border-hover);
|
|
1590
1610
|
}
|
|
1591
1611
|
:has(.tl-text-field__input[readonly]):not(:has(.tl-text-field__input:disabled)) .tl-text-field__input {
|
|
1592
1612
|
user-select: auto;
|
|
@@ -1594,31 +1614,32 @@
|
|
|
1594
1614
|
cursor: default;
|
|
1595
1615
|
pointer-events: none;
|
|
1596
1616
|
}
|
|
1597
|
-
.tl-text-field:has(.tl-text-field__input[readonly]):not(:has(.tl-text-field__input:disabled)
|
|
1617
|
+
.tl-text-field:has(.tl-text-field__input[readonly]):not(:has(.tl-text-field__input:disabled),
|
|
1618
|
+
.tl-text-field--hide-readonly-icon) .tl-text-field__input {
|
|
1598
1619
|
padding-right: 54px;
|
|
1599
1620
|
}
|
|
1600
1621
|
.tl-text-field--lg .tl-text-field__input {
|
|
1601
|
-
padding: var(--
|
|
1622
|
+
padding: var(--unit-20) var(--unit-16);
|
|
1602
1623
|
height: 56px;
|
|
1603
1624
|
}
|
|
1604
1625
|
.tl-text-field--md .tl-text-field__input {
|
|
1605
|
-
padding: var(--
|
|
1626
|
+
padding: var(--unit-16);
|
|
1606
1627
|
height: 48px;
|
|
1607
1628
|
}
|
|
1608
1629
|
.tl-text-field--sm .tl-text-field__input {
|
|
1609
|
-
padding: var(--
|
|
1630
|
+
padding: var(--unit-12) var(--unit-16);
|
|
1610
1631
|
height: 40px;
|
|
1611
1632
|
}
|
|
1612
1633
|
.tl-text-field--label-inside.tl-text-field--lg .tl-text-field__input {
|
|
1613
|
-
padding-top: var(--
|
|
1634
|
+
padding-top: var(--unit-24);
|
|
1614
1635
|
padding-bottom: 15px;
|
|
1615
1636
|
}
|
|
1616
1637
|
.tl-text-field--label-inside.tl-text-field--md .tl-text-field__input {
|
|
1617
|
-
padding-top: var(--
|
|
1638
|
+
padding-top: var(--unit-20);
|
|
1618
1639
|
padding-bottom: 11px;
|
|
1619
1640
|
}
|
|
1620
1641
|
.tl-text-field--label-inside.tl-text-field--sm .tl-text-field__input:not(:focus):placeholder-shown {
|
|
1621
|
-
padding-top: var(--
|
|
1642
|
+
padding-top: var(--unit-16);
|
|
1622
1643
|
padding-bottom: 7px;
|
|
1623
1644
|
}
|
|
1624
1645
|
.tl-text-field:has(.tl-text-field__prefix--icon) .tl-text-field__input {
|
|
@@ -1636,9 +1657,6 @@
|
|
|
1636
1657
|
.tl-text-field--label-inside .tl-text-field__input::placeholder {
|
|
1637
1658
|
color: transparent !important;
|
|
1638
1659
|
}
|
|
1639
|
-
.tl-text-field:not(.tl-text-field--label-inside) .tl-text-field__input:disabled::placeholder {
|
|
1640
|
-
color: var(--text-field-placeholder-disabled) !important;
|
|
1641
|
-
}
|
|
1642
1660
|
|
|
1643
1661
|
.tl-text-field:not(.tl-text-field--label-inside) .tl-text-field__label {
|
|
1644
1662
|
font-family: var(--detail-05-font-family);
|
|
@@ -1695,12 +1713,6 @@
|
|
|
1695
1713
|
opacity: 0;
|
|
1696
1714
|
visibility: hidden;
|
|
1697
1715
|
}
|
|
1698
|
-
.tl-text-field--label-inside:has(.tl-text-field__input:disabled) .tl-text-field__label {
|
|
1699
|
-
color: var(--text-field-label-disabled);
|
|
1700
|
-
}
|
|
1701
|
-
.tl-text-field:not(.tl-text-field--label-inside):has(.tl-text-field__input:disabled) .tl-text-field__label {
|
|
1702
|
-
color: var(--text-field-label-disabled);
|
|
1703
|
-
}
|
|
1704
1716
|
|
|
1705
1717
|
.tl-text-field__bottom {
|
|
1706
1718
|
display: flex;
|
|
@@ -1718,9 +1730,6 @@
|
|
|
1718
1730
|
color: var(--text-field-helper);
|
|
1719
1731
|
position: relative;
|
|
1720
1732
|
}
|
|
1721
|
-
:has(.tl-text-field__input:disabled) .tl-text-field__helper {
|
|
1722
|
-
color: var(--color-text-disabled);
|
|
1723
|
-
}
|
|
1724
1733
|
.tl-text-field--error .tl-text-field__helper {
|
|
1725
1734
|
padding-left: 24px;
|
|
1726
1735
|
}
|
|
@@ -1743,12 +1752,10 @@
|
|
|
1743
1752
|
.tl-text-field--error:has(.tl-text-field__input[readonly]) .tl-text-field__helper::before {
|
|
1744
1753
|
display: none;
|
|
1745
1754
|
}
|
|
1746
|
-
.tl-text-field--error:not(:has(.tl-text-field__input[readonly])
|
|
1755
|
+
.tl-text-field--error:not(:has(.tl-text-field__input[readonly]),
|
|
1756
|
+
:has(.tl-text-field__input:disabled)) .tl-text-field__helper {
|
|
1747
1757
|
color: var(--text-field-error);
|
|
1748
1758
|
}
|
|
1749
|
-
.tl-text-field--error:has(.tl-text-field__input:disabled) .tl-text-field__helper::before {
|
|
1750
|
-
background-color: var(--color-text-disabled);
|
|
1751
|
-
}
|
|
1752
1759
|
|
|
1753
1760
|
.tl-text-field__charcounter {
|
|
1754
1761
|
font-family: var(--detail-05-font-family);
|
|
@@ -1760,20 +1767,15 @@
|
|
|
1760
1767
|
margin-left: auto;
|
|
1761
1768
|
color: var(--text-field-textcounter);
|
|
1762
1769
|
}
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
}
|
|
1766
|
-
.tl-text-field--error:not(:has(.tl-text-field__input[readonly])):not(:has(.tl-text-field__input:disabled)) .tl-text-field__charcounter {
|
|
1770
|
+
.tl-text-field--error:not(:has(.tl-text-field__input[readonly]),
|
|
1771
|
+
:has(.tl-text-field__input:disabled)) .tl-text-field__charcounter {
|
|
1767
1772
|
color: var(--text-field-error);
|
|
1768
1773
|
}
|
|
1769
|
-
.tl-text-field--error:not(:has(.tl-text-field__input[readonly])
|
|
1774
|
+
.tl-text-field--error:not(:has(.tl-text-field__input[readonly]),
|
|
1775
|
+
:has(.tl-text-field__input:disabled)) .tl-text-field__charcounter .tl-text-field__charcounter-divider {
|
|
1770
1776
|
color: var(--text-field-error);
|
|
1771
1777
|
}
|
|
1772
1778
|
|
|
1773
|
-
.tl-text-field__charcounter-divider {
|
|
1774
|
-
color: var(--color-text-disabled);
|
|
1775
|
-
}
|
|
1776
|
-
|
|
1777
1779
|
.tl-text-field__prefix {
|
|
1778
1780
|
font-family: var(--detail-02-font-family);
|
|
1779
1781
|
font-size: var(--detail-02-font-size);
|
|
@@ -1795,18 +1797,6 @@
|
|
|
1795
1797
|
transform: translateY(-50%);
|
|
1796
1798
|
z-index: 1;
|
|
1797
1799
|
}
|
|
1798
|
-
:has(.tl-text-field__input:disabled) .tl-text-field__prefix--text, :has(.tl-text-field__input:disabled) .tl-text-field__prefix--icon {
|
|
1799
|
-
color: var(--text-field-affix-disabled);
|
|
1800
|
-
}
|
|
1801
|
-
:has(.tl-text-field__input:disabled) .tl-text-field__prefix--text > *, :has(.tl-text-field__input:disabled) .tl-text-field__prefix--icon > * {
|
|
1802
|
-
color: var(--text-field-affix-disabled);
|
|
1803
|
-
}
|
|
1804
|
-
:has(.tl-text-field__input:disabled) .tl-text-field__prefix--text .tl-icon, :has(.tl-text-field__input:disabled) .tl-text-field__prefix--icon .tl-icon {
|
|
1805
|
-
background-color: var(--text-field-affix-disabled);
|
|
1806
|
-
}
|
|
1807
|
-
:has(.tl-text-field__input:disabled) .tl-text-field__prefix--icon.tl-icon {
|
|
1808
|
-
background-color: var(--text-field-affix-disabled);
|
|
1809
|
-
}
|
|
1810
1800
|
|
|
1811
1801
|
.tl-text-field__suffix {
|
|
1812
1802
|
font-family: var(--detail-02-font-family);
|
|
@@ -1833,20 +1823,6 @@
|
|
|
1833
1823
|
transform: translateY(-50%);
|
|
1834
1824
|
z-index: 1;
|
|
1835
1825
|
}
|
|
1836
|
-
:has(.tl-text-field__input:disabled) .tl-text-field__suffix--text, :has(.tl-text-field__input:disabled) .tl-text-field__suffix--icon {
|
|
1837
|
-
color: var(--text-field-affix-disabled);
|
|
1838
|
-
}
|
|
1839
|
-
:has(.tl-text-field__input:disabled) .tl-text-field__suffix--text > *, :has(.tl-text-field__input:disabled) .tl-text-field__suffix--icon > * {
|
|
1840
|
-
color: var(--text-field-affix-disabled);
|
|
1841
|
-
}
|
|
1842
|
-
:has(.tl-text-field__input:disabled) .tl-text-field__suffix--text .tl-icon,
|
|
1843
|
-
:has(.tl-text-field__input:disabled) .tl-text-field__suffix--text > .tl-icon, :has(.tl-text-field__input:disabled) .tl-text-field__suffix--icon .tl-icon,
|
|
1844
|
-
:has(.tl-text-field__input:disabled) .tl-text-field__suffix--icon > .tl-icon {
|
|
1845
|
-
background-color: var(--text-field-affix-disabled) !important;
|
|
1846
|
-
}
|
|
1847
|
-
:has(.tl-text-field__input:disabled) .tl-text-field__suffix--icon.tl-icon {
|
|
1848
|
-
background-color: var(--text-field-affix-disabled);
|
|
1849
|
-
}
|
|
1850
1826
|
|
|
1851
1827
|
.tl-text-field--label-inside:has(.tl-text-field__input:focus) .tl-text-field__label,
|
|
1852
1828
|
.tl-text-field--label-inside:has(.tl-text-field__input:not(:placeholder-shown)) .tl-text-field__label {
|
package/dist/tl-textarea.css
CHANGED
|
@@ -220,16 +220,7 @@
|
|
|
220
220
|
--textarea-error-icon: var(--component--input-icon-error-default);
|
|
221
221
|
--textarea-textcounter: var(--component--input-text-counter-default);
|
|
222
222
|
--textarea-resize-icon: var(--component-textarea-icon-resize-default);
|
|
223
|
-
--textarea-opacity-disabled: var(--component--input-opacity-disabled);
|
|
224
|
-
--textarea-border-radius: calc(var(--component--input-border-radius-top-left) * 1px)
|
|
225
|
-
calc(var(--component--input-border-radius-top-right) * 1px)
|
|
226
|
-
calc(var(--component--input-border-radius-bottom-right) * 1px)
|
|
227
|
-
calc(var(--component--input-border-radius-bottom-left) * 1px);
|
|
228
|
-
--textarea-border-color: var(--component--input-border-default);
|
|
229
|
-
--textarea-border-color-hover: var(--component--input-border-hover);
|
|
230
|
-
--textarea-border-color-success: var(--component--input-border-success-default);
|
|
231
|
-
--textarea-border-color-error: var(--component--input-border-error-default);
|
|
232
|
-
--textarea-border-color-readonly: var(--color-border-strong);
|
|
223
|
+
--textarea-opacity-disabled: calc(var(--component--input-opacity-disabled) / 100);
|
|
233
224
|
--textarea-focus-ring-radius: var(--component-textarea-focus-ring-radius-primary);
|
|
234
225
|
}
|
|
235
226
|
.tl-textarea--primary {
|
|
@@ -360,10 +351,14 @@
|
|
|
360
351
|
font-weight: var(--detail-02-font-weight);
|
|
361
352
|
letter-spacing: var(--detail-02-letter-spacing);
|
|
362
353
|
text-transform: var(--detail-02-text-transform);
|
|
354
|
+
border-width: calc(var(--component--input-border-width-top) * 1px) calc(var(--component--input-border-width-right) * 1px) calc(var(--component--input-border-width-bottom) * 1px) calc(var(--component--input-border-width-left) * 1px);
|
|
355
|
+
border-radius: calc(var(--component--input-border-radius-top-left) * 1px) calc(var(--component--input-border-radius-top-right) * 1px) calc(var(--component--input-border-radius-bottom-right) * 1px) calc(var(--component--input-border-radius-bottom-left) * 1px);
|
|
356
|
+
border-style: solid;
|
|
357
|
+
border-color: var(--component--input-border-default);
|
|
363
358
|
display: block;
|
|
364
359
|
position: relative;
|
|
365
360
|
width: 100%;
|
|
366
|
-
padding: var(--
|
|
361
|
+
padding: var(--unit-20) var(--unit-16);
|
|
367
362
|
color: var(--textarea-text);
|
|
368
363
|
resize: vertical;
|
|
369
364
|
z-index: 0;
|
|
@@ -381,10 +376,16 @@
|
|
|
381
376
|
display: none;
|
|
382
377
|
}
|
|
383
378
|
.tl-textarea:hover .tl-textarea__input:not(:focus, :disabled) {
|
|
384
|
-
border-
|
|
379
|
+
border-width: calc(var(--component--input-border-width-top) * 1px) calc(var(--component--input-border-width-right) * 1px) calc(var(--component--input-border-width-bottom) * 1px) calc(var(--component--input-border-width-left) * 1px);
|
|
380
|
+
border-radius: calc(var(--component--input-border-radius-top-left) * 1px) calc(var(--component--input-border-radius-top-right) * 1px) calc(var(--component--input-border-radius-bottom-right) * 1px) calc(var(--component--input-border-radius-bottom-left) * 1px);
|
|
381
|
+
border-style: solid;
|
|
382
|
+
border-color: var(--component--input-border-hover);
|
|
385
383
|
}
|
|
386
384
|
.tl-textarea--error .tl-textarea__input {
|
|
387
|
-
border-
|
|
385
|
+
border-width: calc(var(--component--input-border-width-top) * 1px) calc(var(--component--input-border-width-right) * 1px) calc(var(--component--input-border-width-bottom) * 1px) calc(var(--component--input-border-width-left) * 1px);
|
|
386
|
+
border-radius: calc(var(--component--input-border-radius-top-left) * 1px) calc(var(--component--input-border-radius-top-right) * 1px) calc(var(--component--input-border-radius-bottom-right) * 1px) calc(var(--component--input-border-radius-bottom-left) * 1px);
|
|
387
|
+
border-style: solid;
|
|
388
|
+
border-color: var(--component--input-text-error-default);
|
|
388
389
|
}
|
|
389
390
|
.tl-textarea--error .tl-textarea__input:focus {
|
|
390
391
|
outline: 2px solid var(--component--focus-ring-color-strong);
|
|
@@ -393,17 +394,26 @@
|
|
|
393
394
|
z-index: 1;
|
|
394
395
|
}
|
|
395
396
|
.tl-textarea--error:hover .tl-textarea__input:not(:focus, :disabled) {
|
|
396
|
-
border-
|
|
397
|
+
border-width: calc(var(--component--input-border-width-top) * 1px) calc(var(--component--input-border-width-right) * 1px) calc(var(--component--input-border-width-bottom) * 1px) calc(var(--component--input-border-width-left) * 1px);
|
|
398
|
+
border-radius: calc(var(--component--input-border-radius-top-left) * 1px) calc(var(--component--input-border-radius-top-right) * 1px) calc(var(--component--input-border-radius-bottom-right) * 1px) calc(var(--component--input-border-radius-bottom-left) * 1px);
|
|
399
|
+
border-style: solid;
|
|
400
|
+
border-color: var(--component--input-text-error-default);
|
|
397
401
|
}
|
|
398
402
|
.tl-textarea--success:not(:has(.tl-textarea__input[readonly]), :has(.tl-textarea__input:disabled)) .tl-textarea__input:not(:focus) {
|
|
399
|
-
border-
|
|
403
|
+
border-width: calc(var(--component--input-border-width-top) * 1px) calc(var(--component--input-border-width-right) * 1px) calc(var(--component--input-border-width-bottom) * 1px) calc(var(--component--input-border-width-left) * 1px);
|
|
404
|
+
border-radius: calc(var(--component--input-border-radius-top-left) * 1px) calc(var(--component--input-border-radius-top-right) * 1px) calc(var(--component--input-border-radius-bottom-right) * 1px) calc(var(--component--input-border-radius-bottom-left) * 1px);
|
|
405
|
+
border-style: solid;
|
|
406
|
+
border-color: var(--component--input-border-success-default);
|
|
400
407
|
}
|
|
401
408
|
.tl-textarea__input:disabled {
|
|
402
409
|
cursor: not-allowed;
|
|
403
410
|
pointer-events: none;
|
|
404
411
|
}
|
|
405
412
|
:has(.tl-textarea__input[readonly]):not(:has(.tl-textarea__input:disabled)) .tl-textarea__input {
|
|
406
|
-
border-
|
|
413
|
+
border-width: calc(var(--component--input-border-width-top) * 1px) calc(var(--component--input-border-width-right) * 1px) calc(var(--component--input-border-width-bottom) * 1px) calc(var(--component--input-border-width-left) * 1px);
|
|
414
|
+
border-radius: calc(var(--component--input-border-radius-top-left) * 1px) calc(var(--component--input-border-radius-top-right) * 1px) calc(var(--component--input-border-radius-bottom-right) * 1px) calc(var(--component--input-border-radius-bottom-left) * 1px);
|
|
415
|
+
border-style: solid;
|
|
416
|
+
border-color: var(--color-border-defined);
|
|
407
417
|
}
|
|
408
418
|
:has(.tl-textarea__input[readonly]):not(:has(.tl-textarea__input:disabled)) .tl-textarea__input:focus {
|
|
409
419
|
outline: 2px solid var(--component--focus-ring-color-strong);
|
|
@@ -412,7 +422,10 @@
|
|
|
412
422
|
z-index: 1;
|
|
413
423
|
}
|
|
414
424
|
:has(.tl-textarea__input[readonly]):not(:has(.tl-textarea__input:disabled)):hover .tl-textarea__input:not(:focus) {
|
|
415
|
-
border-
|
|
425
|
+
border-width: calc(var(--component--input-border-width-top) * 1px) calc(var(--component--input-border-width-right) * 1px) calc(var(--component--input-border-width-bottom) * 1px) calc(var(--component--input-border-width-left) * 1px);
|
|
426
|
+
border-radius: calc(var(--component--input-border-radius-top-left) * 1px) calc(var(--component--input-border-radius-top-right) * 1px) calc(var(--component--input-border-radius-bottom-right) * 1px) calc(var(--component--input-border-radius-bottom-left) * 1px);
|
|
427
|
+
border-style: solid;
|
|
428
|
+
border-color: var(--component--input-border-hover);
|
|
416
429
|
}
|
|
417
430
|
.tl-textarea--label-inside .tl-textarea__input {
|
|
418
431
|
padding-top: 26px;
|
|
@@ -422,9 +435,6 @@
|
|
|
422
435
|
color: transparent;
|
|
423
436
|
transform: translateY(1px);
|
|
424
437
|
}
|
|
425
|
-
.tl-textarea--label-inside .tl-textarea__input:disabled::placeholder {
|
|
426
|
-
color: var(--textarea-placeholder-disabled) !important;
|
|
427
|
-
}
|
|
428
438
|
:has(.tl-textarea__input[readonly]):not(:has(.tl-textarea__input:disabled)) .tl-textarea__input {
|
|
429
439
|
user-select: auto;
|
|
430
440
|
caret-color: transparent;
|
|
@@ -471,12 +481,8 @@
|
|
|
471
481
|
letter-spacing: var(--detail-07-letter-spacing);
|
|
472
482
|
text-transform: var(--detail-07-text-transform);
|
|
473
483
|
top: 8px;
|
|
474
|
-
color: var(--textarea-label-disabled);
|
|
475
484
|
transform: translateY(0);
|
|
476
485
|
}
|
|
477
|
-
.tl-textarea:not(.tl-textarea--label-inside):has(.tl-textarea__input:disabled) .tl-textarea__label {
|
|
478
|
-
color: var(--textarea-label-disabled);
|
|
479
|
-
}
|
|
480
486
|
|
|
481
487
|
.tl-textarea__bottom {
|
|
482
488
|
display: flex;
|
|
@@ -494,9 +500,6 @@
|
|
|
494
500
|
color: var(--textarea-helper);
|
|
495
501
|
position: relative;
|
|
496
502
|
}
|
|
497
|
-
:has(.tl-textarea__input:disabled) .tl-textarea__helper {
|
|
498
|
-
color: var(--color-text-disabled);
|
|
499
|
-
}
|
|
500
503
|
.tl-textarea--error .tl-textarea__helper {
|
|
501
504
|
padding-left: 24px;
|
|
502
505
|
}
|
|
@@ -522,9 +525,6 @@
|
|
|
522
525
|
.tl-textarea--error:not(:has(.tl-textarea__input[readonly]), :has(.tl-textarea__input:disabled)) .tl-textarea__helper {
|
|
523
526
|
color: var(--textarea-error);
|
|
524
527
|
}
|
|
525
|
-
.tl-textarea--error:has(.tl-textarea__input:disabled) .tl-textarea__helper::before {
|
|
526
|
-
background-color: var(--color-text-disabled);
|
|
527
|
-
}
|
|
528
528
|
|
|
529
529
|
.tl-textarea__charcounter {
|
|
530
530
|
font-family: var(--detail-05-font-family);
|
|
@@ -536,9 +536,6 @@
|
|
|
536
536
|
margin-left: auto;
|
|
537
537
|
color: var(--textarea-textcounter);
|
|
538
538
|
}
|
|
539
|
-
:has(.tl-textarea__input:disabled) .tl-textarea__charcounter {
|
|
540
|
-
color: var(--color-text-disabled);
|
|
541
|
-
}
|
|
542
539
|
.tl-textarea--error:not(:has(.tl-textarea__input[readonly]), :has(.tl-textarea__input:disabled)) .tl-textarea__charcounter {
|
|
543
540
|
color: var(--textarea-error);
|
|
544
541
|
}
|
|
@@ -546,10 +543,6 @@
|
|
|
546
543
|
color: var(--textarea-error);
|
|
547
544
|
}
|
|
548
545
|
|
|
549
|
-
.tl-textarea__charcounter-divider {
|
|
550
|
-
color: var(--color-text-disabled);
|
|
551
|
-
}
|
|
552
|
-
|
|
553
546
|
.tl-textarea--label-inside:has(.tl-textarea__input:focus) .tl-textarea__label,
|
|
554
547
|
.tl-textarea--label-inside:has(.tl-textarea__input:not(:placeholder-shown)) .tl-textarea__label {
|
|
555
548
|
font-family: var(--detail-07-font-family);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scania/tegel-lite",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.8.0",
|
|
4
4
|
"description": "Styles-only library for Tegel Design System (Beta)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"keywords": [
|
|
@@ -52,6 +52,7 @@
|
|
|
52
52
|
"./tl-radio-button.css": "./dist/tl-radio-button.css",
|
|
53
53
|
"./tl-side-menu.css": "./dist/tl-side-menu.css",
|
|
54
54
|
"./tl-stepper.css": "./dist/tl-stepper.css",
|
|
55
|
+
"./tl-table.css": "./dist/tl-table.css",
|
|
55
56
|
"./tl-text-field.css": "./dist/tl-text-field.css",
|
|
56
57
|
"./tl-textarea.css": "./dist/tl-textarea.css",
|
|
57
58
|
"./tl-toast.css": "./dist/tl-toast.css",
|
|
@@ -69,8 +70,8 @@
|
|
|
69
70
|
"dist/"
|
|
70
71
|
],
|
|
71
72
|
"devDependencies": {
|
|
72
|
-
"@playwright/test": "1.
|
|
73
|
-
"@types/node": "
|
|
73
|
+
"@playwright/test": "1.63.0",
|
|
74
|
+
"@types/node": "26.6.1",
|
|
74
75
|
"serve": "^14.2.5"
|
|
75
76
|
},
|
|
76
77
|
"license": "MIT",
|