@deque/cauldron-styles 5.4.1 → 5.5.0-canary.4f8a9bac
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/index.css +92 -70
- package/package.json +2 -2
package/dist/index.css
CHANGED
|
@@ -408,7 +408,6 @@ p {
|
|
|
408
408
|
padding: 0 16px;
|
|
409
409
|
position: relative;
|
|
410
410
|
text-align: center;
|
|
411
|
-
text-transform: uppercase;
|
|
412
411
|
min-height: 36px;
|
|
413
412
|
min-width: 100px;
|
|
414
413
|
display: inline-grid;
|
|
@@ -1457,7 +1456,17 @@ ul.semantic-only {
|
|
|
1457
1456
|
--field-background-color-disabled: #f7f7f7;
|
|
1458
1457
|
--field-required-text-color: var(--gray-60);
|
|
1459
1458
|
--field-label-text-color: var(--gray-90);
|
|
1459
|
+
--field-label-error-text-color: var(--error);
|
|
1460
1460
|
--field-label-description-text-color: var(--gray-60);
|
|
1461
|
+
--field-icon-inactive-color: var(--gray-90);
|
|
1462
|
+
--field-icon-active-color: rgba(60, 122, 174, 0.25);
|
|
1463
|
+
--field-icon-error-active-color: rgba(217, 50, 81, 0.25);
|
|
1464
|
+
--field-icon-checked-color: var(--accent-primary);
|
|
1465
|
+
--field-icon-checked-disabled-color: var(--accent-primary-dsiabled, #78a6d8);
|
|
1466
|
+
--field-icon-unchecked-disabled-color: var(--gray-40);
|
|
1467
|
+
--field-icon-focus-color: var(--focus-light);
|
|
1468
|
+
--field-error-text-color: var(--error);
|
|
1469
|
+
--field-error-border-color: var(--error);
|
|
1461
1470
|
--input-min-width: 250px;
|
|
1462
1471
|
}
|
|
1463
1472
|
|
|
@@ -1473,7 +1482,16 @@ ul.semantic-only {
|
|
|
1473
1482
|
--field-background-color-disabled: #5d676f;
|
|
1474
1483
|
--field-required-text-color: var(--white);
|
|
1475
1484
|
--field-label-text-color: var(--white);
|
|
1476
|
-
--field-label-description-text-color:
|
|
1485
|
+
--field-label-description-text-color: var(--accent-light);
|
|
1486
|
+
--field-icon-inactive-color: var(--white);
|
|
1487
|
+
--field-icon-active-color: rgba(212, 221, 224, 0.25);
|
|
1488
|
+
--field-icon-error-active-color: rgba(254, 109, 107, 0.25);
|
|
1489
|
+
--field-icon-checked-color: var(--accent-light);
|
|
1490
|
+
--field-icon-checked-disabled-color: var(--stroke-dark);
|
|
1491
|
+
--field-icon-unchecked-disabled-color: var(--stroke-dark);
|
|
1492
|
+
--field-icon-focus-color: var(--focus-dark);
|
|
1493
|
+
--field-error-text-color: var(--error);
|
|
1494
|
+
--field-error-border-color: var(--error);
|
|
1477
1495
|
}
|
|
1478
1496
|
|
|
1479
1497
|
input,
|
|
@@ -1561,6 +1579,10 @@ textarea.Field--has-error,
|
|
|
1561
1579
|
color: var(--field-border-color-error);
|
|
1562
1580
|
}
|
|
1563
1581
|
|
|
1582
|
+
.Icon--checkbox-unchecked.Checkbox__overlay:active.Field--has-error:not(.Checkbox__overlay--disabled) {
|
|
1583
|
+
background-color: var(--field-icon-error-active-color);
|
|
1584
|
+
}
|
|
1585
|
+
|
|
1564
1586
|
input.Field--has-error:hover,
|
|
1565
1587
|
select.Field--has-error:hover,
|
|
1566
1588
|
textarea.Field--has-error:hover,
|
|
@@ -1601,11 +1623,14 @@ textarea.Field--has-error:focus:hover,
|
|
|
1601
1623
|
}
|
|
1602
1624
|
|
|
1603
1625
|
.Error {
|
|
1604
|
-
color: var(--error);
|
|
1626
|
+
color: var(--field-error-text-color);
|
|
1627
|
+
border-top: 1px solid var(--field-error-border-color);
|
|
1605
1628
|
text-align: left;
|
|
1606
|
-
font-size: var(--text-size-smallest);
|
|
1607
1629
|
font-weight: var(--font-weight-normal);
|
|
1608
|
-
|
|
1630
|
+
font-size: var(--text-size-smallest);
|
|
1631
|
+
margin-top: var(--space-half);
|
|
1632
|
+
margin-left: calc(var(--icon-size) + 2px + var(--space-half));
|
|
1633
|
+
padding: var(--space-half) 0;
|
|
1609
1634
|
}
|
|
1610
1635
|
|
|
1611
1636
|
.Field {
|
|
@@ -1623,14 +1648,27 @@ textarea.Field--has-error:focus:hover,
|
|
|
1623
1648
|
margin-bottom: 0;
|
|
1624
1649
|
}
|
|
1625
1650
|
|
|
1651
|
+
.Checkbox__wrap,
|
|
1652
|
+
.Radio__wrap {
|
|
1653
|
+
margin-bottom: var(--space-smallest);
|
|
1654
|
+
}
|
|
1655
|
+
|
|
1656
|
+
.Checkbox__wrap:last-of-type,
|
|
1657
|
+
.Radio__wrap:last-of-type {
|
|
1658
|
+
margin-bottom: 0;
|
|
1659
|
+
}
|
|
1660
|
+
|
|
1661
|
+
.Radio--inline .Radio__wrap {
|
|
1662
|
+
margin-bottom: 0;
|
|
1663
|
+
}
|
|
1664
|
+
|
|
1626
1665
|
.Checkbox,
|
|
1627
1666
|
.Radio {
|
|
1628
1667
|
box-sizing: border-box;
|
|
1629
1668
|
position: relative;
|
|
1630
|
-
margin-bottom: 0;
|
|
1631
1669
|
flex-direction: row-reverse;
|
|
1632
1670
|
justify-content: flex-end;
|
|
1633
|
-
flex-wrap:
|
|
1671
|
+
flex-wrap: nowrap;
|
|
1634
1672
|
}
|
|
1635
1673
|
|
|
1636
1674
|
.Radio--inline {
|
|
@@ -1640,19 +1678,15 @@ textarea.Field--has-error:focus:hover,
|
|
|
1640
1678
|
gap: var(--space-small);
|
|
1641
1679
|
}
|
|
1642
1680
|
|
|
1643
|
-
.Checkbox
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
.Checkbox + .Checkbox,
|
|
1648
|
-
.Radio + .Radio {
|
|
1649
|
-
margin-top: var(--space-smallest);
|
|
1681
|
+
.Checkbox + .Field__labelDescription,
|
|
1682
|
+
.Radio + .Field__labelDescription {
|
|
1683
|
+
margin-top: var(--space-half);
|
|
1684
|
+
margin-bottom: var(--space-small);
|
|
1650
1685
|
}
|
|
1651
1686
|
|
|
1652
|
-
.Checkbox .
|
|
1653
|
-
.Radio .
|
|
1687
|
+
.Checkbox__wrap:last-of-type .Checkbox + .Field__labelDescription,
|
|
1688
|
+
.Radio__wrap:last-of-type .Radio + .Field__labelDescription {
|
|
1654
1689
|
margin-bottom: 0;
|
|
1655
|
-
padding-bottom: 0;
|
|
1656
1690
|
}
|
|
1657
1691
|
|
|
1658
1692
|
.Field__label {
|
|
@@ -1660,9 +1694,28 @@ textarea.Field--has-error:focus:hover,
|
|
|
1660
1694
|
align-items: center;
|
|
1661
1695
|
text-align: left;
|
|
1662
1696
|
color: var(--field-label-text-color);
|
|
1697
|
+
margin-bottom: var(--space-half);
|
|
1663
1698
|
font-size: var(--text-size-small);
|
|
1664
1699
|
font-weight: var(--font-weight-medium);
|
|
1665
|
-
|
|
1700
|
+
cursor: default;
|
|
1701
|
+
}
|
|
1702
|
+
|
|
1703
|
+
.Field__label + .Checkbox__wrap {
|
|
1704
|
+
margin-top: var(--space-half);
|
|
1705
|
+
}
|
|
1706
|
+
|
|
1707
|
+
.Field__label + [role^='radiogroup'] {
|
|
1708
|
+
margin-top: var(--space-smallest);
|
|
1709
|
+
}
|
|
1710
|
+
|
|
1711
|
+
.Checkbox__label,
|
|
1712
|
+
.Radio__label {
|
|
1713
|
+
display: flex;
|
|
1714
|
+
align-items: center;
|
|
1715
|
+
text-align: left;
|
|
1716
|
+
color: var(--field-label-text-color);
|
|
1717
|
+
font-size: var(--text-size-small);
|
|
1718
|
+
font-weight: var(--font-weight-normal);
|
|
1666
1719
|
cursor: default;
|
|
1667
1720
|
}
|
|
1668
1721
|
|
|
@@ -1682,7 +1735,7 @@ textarea.Field--has-error:focus:hover,
|
|
|
1682
1735
|
}
|
|
1683
1736
|
|
|
1684
1737
|
.Field__label--has-error .Field__required-text {
|
|
1685
|
-
color: var(--error);
|
|
1738
|
+
color: var(--field-label-error-text-color);
|
|
1686
1739
|
}
|
|
1687
1740
|
|
|
1688
1741
|
.Field__label--inline {
|
|
@@ -1727,20 +1780,14 @@ textarea.Field--has-error:focus:hover,
|
|
|
1727
1780
|
font-size: var(--text-size-small);
|
|
1728
1781
|
font-weight: var(--font-weight-normal);
|
|
1729
1782
|
line-height: 1;
|
|
1783
|
+
margin-top: var(--space-half);
|
|
1730
1784
|
margin-left: calc(24px + 2px + var(--space-half));
|
|
1731
1785
|
cursor: default;
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
.Icon + .Error {
|
|
1735
|
-
flex-basis: 100%;
|
|
1736
|
-
margin-top: var(--space-smallest);
|
|
1786
|
+
display: flex;
|
|
1737
1787
|
}
|
|
1738
1788
|
|
|
1739
1789
|
.Field__labelDescription + .Error {
|
|
1740
|
-
|
|
1741
|
-
margin-left: calc(24px + 2px + var(--space-half));
|
|
1742
|
-
padding: 4px 0;
|
|
1743
|
-
margin-top: 4px;
|
|
1790
|
+
margin-top: var(--space-smallest);
|
|
1744
1791
|
}
|
|
1745
1792
|
|
|
1746
1793
|
.Radio__overlay,
|
|
@@ -1748,9 +1795,13 @@ textarea.Field--has-error:focus:hover,
|
|
|
1748
1795
|
border: 1px solid transparent;
|
|
1749
1796
|
box-sizing: border-box;
|
|
1750
1797
|
cursor: pointer;
|
|
1751
|
-
|
|
1752
|
-
color: #333;
|
|
1798
|
+
color: var(--field-icon-inactive-color);
|
|
1753
1799
|
margin-right: var(--space-half);
|
|
1800
|
+
align-self: flex-start;
|
|
1801
|
+
}
|
|
1802
|
+
|
|
1803
|
+
.Checkbox__overlay {
|
|
1804
|
+
border-radius: 5px;
|
|
1754
1805
|
}
|
|
1755
1806
|
|
|
1756
1807
|
.Radio__overlay {
|
|
@@ -1764,7 +1815,7 @@ textarea.Field--has-error:focus:hover,
|
|
|
1764
1815
|
|
|
1765
1816
|
.Radio__overlay:active:not(.Radio__overlay--disabled),
|
|
1766
1817
|
.Checkbox__overlay:active:not(.Checkbox__overlay--disabled) {
|
|
1767
|
-
background-color:
|
|
1818
|
+
background-color: var(--field-icon-active-color);
|
|
1768
1819
|
}
|
|
1769
1820
|
|
|
1770
1821
|
.Radio input[type='radio'] {
|
|
@@ -1779,17 +1830,22 @@ textarea.Field--has-error:focus:hover,
|
|
|
1779
1830
|
|
|
1780
1831
|
.Checkbox__overlay.Checkbox__overlay--focused,
|
|
1781
1832
|
.Radio__overlay.Radio__overlay--focused {
|
|
1782
|
-
|
|
1783
|
-
box-shadow: inset 0 0 0 1px var(--focus), 0 0 4px 2px var(--focus-glow);
|
|
1833
|
+
box-shadow: 0 0 0 2px var(--field-icon-focus-color);
|
|
1784
1834
|
}
|
|
1785
1835
|
|
|
1786
|
-
.Radio__overlay.Icon--radio-checked
|
|
1787
|
-
|
|
1836
|
+
.Radio__overlay.Icon--radio-checked,
|
|
1837
|
+
.Checkbox__overlay.Icon--checkbox-checked {
|
|
1838
|
+
color: var(--field-icon-checked-color);
|
|
1788
1839
|
}
|
|
1789
1840
|
|
|
1790
1841
|
.Radio__overlay--disabled.Icon--radio-checked,
|
|
1842
|
+
.Checkbox__overlay--disabled.Icon--checkbox-checked {
|
|
1843
|
+
color: var(--field-icon-checked-disabled-color);
|
|
1844
|
+
}
|
|
1845
|
+
|
|
1846
|
+
.Checkbox__overlay--disabled.Icon--checkbox-unchecked,
|
|
1791
1847
|
.Radio__overlay--disabled.Icon--radio-unchecked {
|
|
1792
|
-
color:
|
|
1848
|
+
color: var(--field-icon-unchecked-disabled-color);
|
|
1793
1849
|
}
|
|
1794
1850
|
|
|
1795
1851
|
.Field__label:hover ~ .Radio__overlay:not(.Radio__overlay--disabled),
|
|
@@ -1807,45 +1863,11 @@ textarea.Field--has-error:focus:hover,
|
|
|
1807
1863
|
appearance: none;
|
|
1808
1864
|
}
|
|
1809
1865
|
|
|
1810
|
-
.Checkbox__overlay.Icon--checkbox-checked {
|
|
1811
|
-
color: #3c7aae;
|
|
1812
|
-
}
|
|
1813
|
-
|
|
1814
|
-
.Checkbox__overlay--disabled.Icon--checkbox-checked,
|
|
1815
|
-
.Checkbox__overlay--disabled.Icon--checkbox-unchecked {
|
|
1816
|
-
color: #ccc;
|
|
1817
|
-
}
|
|
1818
|
-
|
|
1819
1866
|
.Field__label:hover ~ .Checkbox__overlay:not(.Checkbox__overlay--disabled),
|
|
1820
1867
|
.Checkbox__overlay:hover:not(.Checkbox__overlay--disabled) {
|
|
1821
1868
|
border: 1px solid currentColor;
|
|
1822
1869
|
}
|
|
1823
1870
|
|
|
1824
|
-
/* Dark Theme */
|
|
1825
|
-
|
|
1826
|
-
.cauldron--theme-dark {
|
|
1827
|
-
--field-label-text-color: var(--white);
|
|
1828
|
-
}
|
|
1829
|
-
|
|
1830
|
-
.cauldron--theme-dark .Radio__overlay,
|
|
1831
|
-
.cauldron--theme-dark .Checkbox__overlay {
|
|
1832
|
-
color: var(--white);
|
|
1833
|
-
}
|
|
1834
|
-
|
|
1835
|
-
.cauldron--theme-dark .Checkbox__overlay.Icon--checkbox-checked {
|
|
1836
|
-
color: var(--accent-light);
|
|
1837
|
-
}
|
|
1838
|
-
|
|
1839
|
-
.cauldron--theme-dark .Checkbox__overlay.Field--has-error {
|
|
1840
|
-
color: var(--accent-danger);
|
|
1841
|
-
}
|
|
1842
|
-
|
|
1843
|
-
.cauldron--theme-dark .Radio__overlay--disabled,
|
|
1844
|
-
.cauldron--theme-dark .Checkbox__overlay--disabled.Icon--checkbox-checked,
|
|
1845
|
-
.cauldron--theme-dark .Checkbox__overlay--disabled.Icon--checkbox-unchecked {
|
|
1846
|
-
color: #4c99a9;
|
|
1847
|
-
}
|
|
1848
|
-
|
|
1849
1871
|
:root {
|
|
1850
1872
|
--link-text-color: var(--gray-90);
|
|
1851
1873
|
--link-text-color-hover: #3873a3;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deque/cauldron-styles",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.5.0-canary.4f8a9bac",
|
|
4
4
|
"license": "MPL-2.0",
|
|
5
5
|
"description": "deque cauldron pattern library styles",
|
|
6
6
|
"repository": "https://github.com/dequelabs/cauldron",
|
|
@@ -22,4 +22,4 @@
|
|
|
22
22
|
"postcss-cli": "^7.1.1",
|
|
23
23
|
"postcss-import": "^12.0.1"
|
|
24
24
|
}
|
|
25
|
-
}
|
|
25
|
+
}
|