@vectoriox/iox-ui 5.27.0 → 5.28.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.
@@ -1511,7 +1511,8 @@ declare const SPEC_FIELD_CLASS_BASELINE: {
1511
1511
  readonly ".iox-es-field .iox-field__control:focus-visible": {
1512
1512
  readonly "border-color": "var(--iox-accent-text)";
1513
1513
  readonly "box-shadow": "var(--iox-field-focus)";
1514
- readonly outline: "none";
1514
+ readonly outline: "2px solid transparent";
1515
+ readonly "outline-offset": "2px";
1515
1516
  };
1516
1517
  readonly ".iox-es-field .iox-field__label": {
1517
1518
  readonly "font-family": "var(--iox-font-body)";
@@ -1519,6 +1520,12 @@ declare const SPEC_FIELD_CLASS_BASELINE: {
1519
1520
  readonly "font-weight": "var(--iox-field-label-weight)";
1520
1521
  readonly color: "var(--iox-text)";
1521
1522
  };
1523
+ readonly ".iox-es-field .iox-field__option": {
1524
+ readonly "font-family": "var(--iox-font-body)";
1525
+ readonly "font-size": "var(--iox-size-body)";
1526
+ readonly color: "var(--iox-text)";
1527
+ readonly cursor: "pointer";
1528
+ };
1522
1529
  readonly ".iox-es-field .iox-field__help": {
1523
1530
  readonly "font-size": "var(--iox-size-small)";
1524
1531
  readonly color: "var(--iox-text-muted)";
@@ -1534,11 +1541,121 @@ declare const SPEC_FIELD_CLASS_BASELINE: {
1534
1541
  readonly color: "var(--iox-text-muted)";
1535
1542
  readonly opacity: "1";
1536
1543
  };
1537
- readonly ".iox-es-field .iox-field__control:where([type='checkbox'], [type='radio'], [type='range'])": {
1544
+ readonly ".iox-es-field .iox-field__control:disabled": {
1545
+ readonly opacity: "0.55";
1546
+ readonly cursor: "not-allowed";
1547
+ };
1548
+ readonly ".iox-es-field .iox-field__control:where(.iox-field__control--switch, [type='range'])": {
1538
1549
  readonly border: "none";
1539
1550
  readonly padding: "0";
1540
1551
  readonly background: "transparent";
1541
- readonly "accent-color": "var(--iox-accent-text)";
1552
+ };
1553
+ readonly ".iox-es-field .iox-field__control:where([type='checkbox']:not(.iox-field__control--switch), [type='radio'])": {
1554
+ readonly appearance: "none";
1555
+ readonly "-webkit-appearance": "none";
1556
+ readonly display: "inline-grid";
1557
+ readonly "place-content": "center";
1558
+ readonly "flex-shrink": "0";
1559
+ readonly margin: "0";
1560
+ readonly padding: "0";
1561
+ readonly "inline-size": "1.25em";
1562
+ readonly "block-size": "1.25em";
1563
+ readonly "vertical-align": "middle";
1564
+ readonly cursor: "pointer";
1565
+ readonly background: "var(--iox-surface)";
1566
+ readonly "border-color": "var(--iox-line-strong)";
1567
+ readonly "border-radius": "var(--iox-radius-xs)";
1568
+ readonly transition: "background var(--iox-dur-fast) var(--iox-ease-standard), border-color var(--iox-dur-fast) var(--iox-ease-standard), box-shadow var(--iox-dur-fast) var(--iox-ease-standard)";
1569
+ };
1570
+ readonly ".iox-es-field .iox-field__control[type='radio']": {
1571
+ readonly "border-radius": "50%";
1572
+ };
1573
+ readonly ".iox-es-field .iox-field__control:where([type='checkbox']:not(.iox-field__control--switch), [type='radio'])::before": {
1574
+ readonly content: "''";
1575
+ readonly "inline-size": "0.28em";
1576
+ readonly "block-size": "0.56em";
1577
+ readonly "border-style": "solid";
1578
+ readonly "border-color": "var(--iox-accent-ink)";
1579
+ readonly "border-width": "0 0.14em 0.14em 0";
1580
+ readonly transform: "translateY(-0.08em) rotate(45deg) scale(0)";
1581
+ readonly transition: "transform var(--iox-dur-fast) var(--iox-ease-standard)";
1582
+ };
1583
+ readonly ".iox-es-field .iox-field__control[type='radio']::before": {
1584
+ readonly "inline-size": "0";
1585
+ readonly "block-size": "0";
1586
+ readonly "border-width": "0.25em";
1587
+ readonly "border-radius": "50%";
1588
+ readonly transform: "scale(0)";
1589
+ };
1590
+ readonly ".iox-es-field .iox-field__control:where([type='checkbox']:not(.iox-field__control--switch), [type='radio']):hover": {
1591
+ readonly "border-color": "var(--iox-accent-text)";
1592
+ };
1593
+ readonly ".iox-es-field .iox-field__control:where([type='checkbox']:not(.iox-field__control--switch), [type='radio']):checked": {
1594
+ readonly background: "var(--iox-accent)";
1595
+ readonly "border-color": "var(--iox-accent-text)";
1596
+ };
1597
+ readonly ".iox-es-field .iox-field__control:where([type='checkbox']:not(.iox-field__control--switch), [type='radio']):checked:hover": {
1598
+ readonly background: "var(--iox-accent-hover)";
1599
+ };
1600
+ readonly ".iox-es-field .iox-field__control:where([type='checkbox']:not(.iox-field__control--switch), [type='radio']):checked::before": {
1601
+ readonly transform: "translateY(-0.08em) rotate(45deg) scale(1)";
1602
+ };
1603
+ readonly ".iox-es-field .iox-field__control[type='radio']:checked::before": {
1604
+ readonly transform: "scale(1)";
1605
+ };
1606
+ readonly ".iox-es-field .iox-field__control:where([type='checkbox']:not(.iox-field__control--switch), [type='radio']):focus-visible": {
1607
+ readonly "box-shadow": "var(--iox-focus-ring)";
1608
+ };
1609
+ readonly ".iox-es-field .iox-field__control:where([type='range'])": {
1610
+ readonly appearance: "none";
1611
+ readonly "-webkit-appearance": "none";
1612
+ readonly "inline-size": "100%";
1613
+ readonly "block-size": "1.25em";
1614
+ readonly cursor: "pointer";
1615
+ };
1616
+ readonly ".iox-es-field .iox-field__control:where([type='range'])::-webkit-slider-runnable-track": {
1617
+ readonly "block-size": "0.25em";
1618
+ readonly "border-radius": "var(--iox-radius-pill)";
1619
+ readonly background: "var(--iox-line-strong)";
1620
+ readonly outline: "1px solid transparent";
1621
+ };
1622
+ readonly ".iox-es-field .iox-field__control:where([type='range'])::-moz-range-track": {
1623
+ readonly "block-size": "0.25em";
1624
+ readonly "border-radius": "var(--iox-radius-pill)";
1625
+ readonly background: "var(--iox-line-strong)";
1626
+ readonly outline: "1px solid transparent";
1627
+ };
1628
+ readonly ".iox-es-field .iox-field__control:where([type='range'])::-webkit-slider-thumb": {
1629
+ readonly appearance: "none";
1630
+ readonly "-webkit-appearance": "none";
1631
+ readonly "inline-size": "1.25em";
1632
+ readonly "block-size": "1.25em";
1633
+ readonly "border-radius": "50%";
1634
+ readonly background: "var(--iox-accent-text)";
1635
+ readonly border: "2px solid var(--iox-bg)";
1636
+ readonly "box-sizing": "border-box";
1637
+ readonly cursor: "pointer";
1638
+ readonly "margin-block-start": "-0.5em";
1639
+ };
1640
+ readonly ".iox-es-field .iox-field__control:where([type='range'])::-moz-range-thumb": {
1641
+ readonly appearance: "none";
1642
+ readonly "-webkit-appearance": "none";
1643
+ readonly "inline-size": "1.25em";
1644
+ readonly "block-size": "1.25em";
1645
+ readonly "border-radius": "50%";
1646
+ readonly background: "var(--iox-accent-text)";
1647
+ readonly border: "2px solid var(--iox-bg)";
1648
+ readonly "box-sizing": "border-box";
1649
+ readonly cursor: "pointer";
1650
+ };
1651
+ readonly ".iox-es-field .iox-field__control:where([type='range']):focus-visible": {
1652
+ readonly "box-shadow": "none";
1653
+ };
1654
+ readonly ".iox-es-field .iox-field__control:where([type='range']):focus-visible::-webkit-slider-thumb": {
1655
+ readonly "box-shadow": "var(--iox-focus-ring)";
1656
+ };
1657
+ readonly ".iox-es-field .iox-field__control:where([type='range']):focus-visible::-moz-range-thumb": {
1658
+ readonly "box-shadow": "var(--iox-focus-ring)";
1542
1659
  };
1543
1660
  readonly ".iox-es-field .iox-field__control--switch": {
1544
1661
  readonly background: "var(--iox-text-muted)";
@@ -1699,9 +1816,32 @@ declare const SPEC_CONTRAST_AUDIT: {
1699
1816
  readonly thumb: "var(--iox-bg)";
1700
1817
  readonly min: 3;
1701
1818
  }, {
1702
- readonly part: "checkbox · radio · range";
1819
+ readonly part: "checkbox · radio edge";
1820
+ readonly fg: "var(--iox-line-strong)";
1821
+ readonly min: 3;
1822
+ }, {
1823
+ readonly part: "checkbox · radio edge on its fill";
1824
+ readonly fg: "var(--iox-line-strong)";
1825
+ readonly on: "var(--iox-surface)";
1826
+ readonly min: 3;
1827
+ }, {
1828
+ readonly part: "checkbox · radio checked";
1829
+ readonly fg: readonly ["var(--iox-accent-text)", "var(--iox-accent)"];
1830
+ readonly any: true;
1831
+ readonly min: 3;
1832
+ }, {
1833
+ readonly part: "check mark · radio dot";
1834
+ readonly fg: "var(--iox-accent-ink)";
1835
+ readonly on: "var(--iox-accent)";
1836
+ readonly min: 3;
1837
+ }, {
1838
+ readonly part: "hover edge · range thumb";
1703
1839
  readonly fg: "var(--iox-accent-text)";
1704
1840
  readonly min: 3;
1841
+ }, {
1842
+ readonly part: "range track";
1843
+ readonly fg: "var(--iox-line-strong)";
1844
+ readonly min: 3;
1705
1845
  }];
1706
1846
  };
1707
1847
  declare const SPEC_LEGACY_ALIASES: {
@@ -1798,7 +1798,8 @@ const SPEC_FIELD_CLASS_BASELINE = {
1798
1798
  ".iox-es-field .iox-field__control:focus-visible": {
1799
1799
  "border-color": "var(--iox-accent-text)",
1800
1800
  "box-shadow": "var(--iox-field-focus)",
1801
- "outline": "none"
1801
+ "outline": "2px solid transparent",
1802
+ "outline-offset": "2px"
1802
1803
  },
1803
1804
  ".iox-es-field .iox-field__label": {
1804
1805
  "font-family": "var(--iox-font-body)",
@@ -1806,6 +1807,12 @@ const SPEC_FIELD_CLASS_BASELINE = {
1806
1807
  "font-weight": "var(--iox-field-label-weight)",
1807
1808
  "color": "var(--iox-text)"
1808
1809
  },
1810
+ ".iox-es-field .iox-field__option": {
1811
+ "font-family": "var(--iox-font-body)",
1812
+ "font-size": "var(--iox-size-body)",
1813
+ "color": "var(--iox-text)",
1814
+ "cursor": "pointer"
1815
+ },
1809
1816
  ".iox-es-field .iox-field__help": {
1810
1817
  "font-size": "var(--iox-size-small)",
1811
1818
  "color": "var(--iox-text-muted)"
@@ -1821,11 +1828,121 @@ const SPEC_FIELD_CLASS_BASELINE = {
1821
1828
  "color": "var(--iox-text-muted)",
1822
1829
  "opacity": "1"
1823
1830
  },
1824
- ".iox-es-field .iox-field__control:where([type='checkbox'], [type='radio'], [type='range'])": {
1831
+ ".iox-es-field .iox-field__control:disabled": {
1832
+ "opacity": "0.55",
1833
+ "cursor": "not-allowed"
1834
+ },
1835
+ ".iox-es-field .iox-field__control:where(.iox-field__control--switch, [type='range'])": {
1825
1836
  "border": "none",
1826
1837
  "padding": "0",
1827
- "background": "transparent",
1828
- "accent-color": "var(--iox-accent-text)"
1838
+ "background": "transparent"
1839
+ },
1840
+ ".iox-es-field .iox-field__control:where([type='checkbox']:not(.iox-field__control--switch), [type='radio'])": {
1841
+ "appearance": "none",
1842
+ "-webkit-appearance": "none",
1843
+ "display": "inline-grid",
1844
+ "place-content": "center",
1845
+ "flex-shrink": "0",
1846
+ "margin": "0",
1847
+ "padding": "0",
1848
+ "inline-size": "1.25em",
1849
+ "block-size": "1.25em",
1850
+ "vertical-align": "middle",
1851
+ "cursor": "pointer",
1852
+ "background": "var(--iox-surface)",
1853
+ "border-color": "var(--iox-line-strong)",
1854
+ "border-radius": "var(--iox-radius-xs)",
1855
+ "transition": "background var(--iox-dur-fast) var(--iox-ease-standard), border-color var(--iox-dur-fast) var(--iox-ease-standard), box-shadow var(--iox-dur-fast) var(--iox-ease-standard)"
1856
+ },
1857
+ ".iox-es-field .iox-field__control[type='radio']": {
1858
+ "border-radius": "50%"
1859
+ },
1860
+ ".iox-es-field .iox-field__control:where([type='checkbox']:not(.iox-field__control--switch), [type='radio'])::before": {
1861
+ "content": "''",
1862
+ "inline-size": "0.28em",
1863
+ "block-size": "0.56em",
1864
+ "border-style": "solid",
1865
+ "border-color": "var(--iox-accent-ink)",
1866
+ "border-width": "0 0.14em 0.14em 0",
1867
+ "transform": "translateY(-0.08em) rotate(45deg) scale(0)",
1868
+ "transition": "transform var(--iox-dur-fast) var(--iox-ease-standard)"
1869
+ },
1870
+ ".iox-es-field .iox-field__control[type='radio']::before": {
1871
+ "inline-size": "0",
1872
+ "block-size": "0",
1873
+ "border-width": "0.25em",
1874
+ "border-radius": "50%",
1875
+ "transform": "scale(0)"
1876
+ },
1877
+ ".iox-es-field .iox-field__control:where([type='checkbox']:not(.iox-field__control--switch), [type='radio']):hover": {
1878
+ "border-color": "var(--iox-accent-text)"
1879
+ },
1880
+ ".iox-es-field .iox-field__control:where([type='checkbox']:not(.iox-field__control--switch), [type='radio']):checked": {
1881
+ "background": "var(--iox-accent)",
1882
+ "border-color": "var(--iox-accent-text)"
1883
+ },
1884
+ ".iox-es-field .iox-field__control:where([type='checkbox']:not(.iox-field__control--switch), [type='radio']):checked:hover": {
1885
+ "background": "var(--iox-accent-hover)"
1886
+ },
1887
+ ".iox-es-field .iox-field__control:where([type='checkbox']:not(.iox-field__control--switch), [type='radio']):checked::before": {
1888
+ "transform": "translateY(-0.08em) rotate(45deg) scale(1)"
1889
+ },
1890
+ ".iox-es-field .iox-field__control[type='radio']:checked::before": {
1891
+ "transform": "scale(1)"
1892
+ },
1893
+ ".iox-es-field .iox-field__control:where([type='checkbox']:not(.iox-field__control--switch), [type='radio']):focus-visible": {
1894
+ "box-shadow": "var(--iox-focus-ring)"
1895
+ },
1896
+ ".iox-es-field .iox-field__control:where([type='range'])": {
1897
+ "appearance": "none",
1898
+ "-webkit-appearance": "none",
1899
+ "inline-size": "100%",
1900
+ "block-size": "1.25em",
1901
+ "cursor": "pointer"
1902
+ },
1903
+ ".iox-es-field .iox-field__control:where([type='range'])::-webkit-slider-runnable-track": {
1904
+ "block-size": "0.25em",
1905
+ "border-radius": "var(--iox-radius-pill)",
1906
+ "background": "var(--iox-line-strong)",
1907
+ "outline": "1px solid transparent"
1908
+ },
1909
+ ".iox-es-field .iox-field__control:where([type='range'])::-moz-range-track": {
1910
+ "block-size": "0.25em",
1911
+ "border-radius": "var(--iox-radius-pill)",
1912
+ "background": "var(--iox-line-strong)",
1913
+ "outline": "1px solid transparent"
1914
+ },
1915
+ ".iox-es-field .iox-field__control:where([type='range'])::-webkit-slider-thumb": {
1916
+ "appearance": "none",
1917
+ "-webkit-appearance": "none",
1918
+ "inline-size": "1.25em",
1919
+ "block-size": "1.25em",
1920
+ "border-radius": "50%",
1921
+ "background": "var(--iox-accent-text)",
1922
+ "border": "2px solid var(--iox-bg)",
1923
+ "box-sizing": "border-box",
1924
+ "cursor": "pointer",
1925
+ "margin-block-start": "-0.5em"
1926
+ },
1927
+ ".iox-es-field .iox-field__control:where([type='range'])::-moz-range-thumb": {
1928
+ "appearance": "none",
1929
+ "-webkit-appearance": "none",
1930
+ "inline-size": "1.25em",
1931
+ "block-size": "1.25em",
1932
+ "border-radius": "50%",
1933
+ "background": "var(--iox-accent-text)",
1934
+ "border": "2px solid var(--iox-bg)",
1935
+ "box-sizing": "border-box",
1936
+ "cursor": "pointer"
1937
+ },
1938
+ ".iox-es-field .iox-field__control:where([type='range']):focus-visible": {
1939
+ "box-shadow": "none"
1940
+ },
1941
+ ".iox-es-field .iox-field__control:where([type='range']):focus-visible::-webkit-slider-thumb": {
1942
+ "box-shadow": "var(--iox-focus-ring)"
1943
+ },
1944
+ ".iox-es-field .iox-field__control:where([type='range']):focus-visible::-moz-range-thumb": {
1945
+ "box-shadow": "var(--iox-focus-ring)"
1829
1946
  },
1830
1947
  ".iox-es-field .iox-field__control--switch": {
1831
1948
  "background": "var(--iox-text-muted)",
@@ -2029,9 +2146,40 @@ const SPEC_CONTRAST_AUDIT = {
2029
2146
  "min": 3
2030
2147
  },
2031
2148
  {
2032
- "part": "checkbox · radio · range",
2149
+ "part": "checkbox · radio edge",
2150
+ "fg": "var(--iox-line-strong)",
2151
+ "min": 3
2152
+ },
2153
+ {
2154
+ "part": "checkbox · radio edge on its fill",
2155
+ "fg": "var(--iox-line-strong)",
2156
+ "on": "var(--iox-surface)",
2157
+ "min": 3
2158
+ },
2159
+ {
2160
+ "part": "checkbox · radio checked",
2161
+ "fg": [
2162
+ "var(--iox-accent-text)",
2163
+ "var(--iox-accent)"
2164
+ ],
2165
+ "any": true,
2166
+ "min": 3
2167
+ },
2168
+ {
2169
+ "part": "check mark · radio dot",
2170
+ "fg": "var(--iox-accent-ink)",
2171
+ "on": "var(--iox-accent)",
2172
+ "min": 3
2173
+ },
2174
+ {
2175
+ "part": "hover edge · range thumb",
2033
2176
  "fg": "var(--iox-accent-text)",
2034
2177
  "min": 3
2178
+ },
2179
+ {
2180
+ "part": "range track",
2181
+ "fg": "var(--iox-line-strong)",
2182
+ "min": 3
2035
2183
  }
2036
2184
  ]
2037
2185
  };