File size: 94,263 Bytes
1e92f2d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 |
# @chakra-ui/react
## 3.23.0
### Minor Changes
- [`86ca96a`](https://github.com/chakra-ui/chakra-ui/commit/86ca96a0ee8720c9475c0a05019ae8e6e3002831)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - - **System**: Add
`unstyled` prop support to compound component children to opt-out of recipe
styles per component.
```tsx
<Accordion.Root defaultValue={["a"]}>
<Accordion.Item value="a">
{/* Opt-out of recipe styles */}
<Accordion.ItemTrigger unstyled bg="red.500" />
<Accordion.ItemContent>
<Accordion.ItemBody />
</Accordion.ItemContent>
</Accordion.Item>
</Accordion.Root>
```
- **Group**: Add support changing group gap globally via `--group-gap` CSS
variable
### Patch Changes
- [`dd3af62`](https://github.com/chakra-ui/chakra-ui/commit/dd3af62c4e646f8beae791364928f8e2723966b7)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - - **Tree View**
- Fixed issue where tree view doesn't scroll into view when content overflows
- Fix issue where the `filter` method completely deletes the children key from
the node when there are no matching children
- **File Upload**
- Add support for programmatically controlling the accepted files via
`acceptedFiles` and `defaultAcceptedFiles`
- Export `FileError`, `FileMimeType`, and `FileRejection` types and fix
validation issues
- [`dc02076`](https://github.com/chakra-ui/chakra-ui/commit/dc02076d91c1ea837c15a8831f70cad9e40f4eb2)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - Fix HTML semantic
structure for `Breadcrumb.Ellipsis` component by changing the underlying
element from `<span>` to `<li>`.
```tsx
// Before: <span> inside <ol> (invalid HTML)
<Breadcrumb.List>
<Breadcrumb.Ellipsis /> {/* rendered as <span> */}
</Breadcrumb.List>
// After: <li> inside <ol> (valid HTML)
<Breadcrumb.List>
<Breadcrumb.Ellipsis /> {/* now renders as <li> */}
</Breadcrumb.List>
```
- [`4da48e3`](https://github.com/chakra-ui/chakra-ui/commit/4da48e327a8213b8ef8822ccdc6accd51f36779d)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - - **Tabs**: Export
missing types
- **Hooks**: Export entrypoint for better tree-shaking
`@chakra-ui/react/hooks`
- **Theme**: Expose smaller bits of the theme in the entrypoint for better
tree-shaking `@chakra-ui/react/theme`. We now expose `recipes`,
`slotRecipes`, `breakpoints`, `keyframes`, `textStyles`, `layerStyles`,
`animationStyles`, `globalCss`, `cssVarsPrefix`, `cssVarsRoot`,
`semanticTokens`, `tokens` as dedicated modules.
- **Dialog**: Use `dvh` and `dvw` units instead of `vh` and `vw` to
dynamically adjust to viewport size changes.
- **Native Select**: Ensure height is consistent with input and select across
sizes.
## 3.22.0
### Minor Changes
- [#10111](https://github.com/chakra-ui/chakra-ui/pull/10111)
[`32967aa`](https://github.com/chakra-ui/chakra-ui/commit/32967aa8499cd05966c8d3274adf01bc96411516)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - Add new TreeView
component that is used to represent hierarchical data in a tree structure.
### Patch Changes
- [#10126](https://github.com/chakra-ui/chakra-ui/pull/10126)
[`ca40993`](https://github.com/chakra-ui/chakra-ui/commit/ca40993f78cd4de092a38c2e00158b8d686a0f27)
Thanks [@isBatak](https://github.com/isBatak)! - - **Clipboard**: Fix issue
where `clipboardAnatomy` was not exported from `@chakra-ui/react/anatomy`
- **Combobox**
- Expose `reason` to `onOpenChange` and `onInputValueChange` callbacks
- Expose `api.clearHighlightedValue` function to clear highlighted value
- **Toast**: Fix issue where toast `title` or `description` could not accept
React element
- **Progress**: Improve `valueAsString` formatting
- **Select**
- Select highlighted item only if it exists in the collection
- Expose `api.clearHighlightedValue` function to clear highlighted value
- **ClientOnly**: Support `children` as a function
## 3.21.1
### Patch Changes
- [`8ddeb0b`](https://github.com/chakra-ui/chakra-ui/commit/8ddeb0b0f2d24c17d5cbad563553fff5e8a826d0)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - - **Popover**:
Fixed issue where `onOpenChange` could be called twice when controlled
- **Combobox**
- Fixed issue where `onInputValueChange` could be called twice when
selecting an item
- Fixed issue where combobox with `allowCustomValue: true` used within in a
form requires two enter keypress to submit
- **Progress**
- Fix issue where setting orientation to `vertical` don't work
- Fix issue where setting `defaultValue` to `null` doesn't show
indeterminate state
- **Toast**: Fix issue where app crashes when `toaster.promise` is called
without loading option. The `loading` option is now required. A warning will
be logged if it is not provided
- **Combobox, Select, Listbox**: Fix issue where rehydrating `defaultValue` or
`value` after fetching items doesn't update the `valueAsString`
- [#10119](https://github.com/chakra-ui/chakra-ui/pull/10119)
[`6cf8cc6`](https://github.com/chakra-ui/chakra-ui/commit/6cf8cc6c066c95d894ad2104c979fb95f74da2e7)
Thanks [@isBatak](https://github.com/isBatak)! - - improve `Drawer` recipe to
better support conditional variants.
- add `Drawer` conditional variants example to the docs and storybook.
- [#10101](https://github.com/chakra-ui/chakra-ui/pull/10101)
[`2b4fa6d`](https://github.com/chakra-ui/chakra-ui/commit/2b4fa6d1847ae8ae26535a81a90842fd4369b97f)
Thanks [@isBatak](https://github.com/isBatak)! - - **Select**: Export missing
SelectRootComponent type export
- [`d7914ad`](https://github.com/chakra-ui/chakra-ui/commit/d7914ad43a382f30ea221e5fcbb151c658bee440)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - Fix inconsistent
handling of `null` and `undefined` for skipping breakpoints using array syntax
## 3.21.0
### Minor Changes
- [`3df43ba`](https://github.com/chakra-ui/chakra-ui/commit/3df43bab4e98af6cabc4f7e199e38c4b8ec11bbe)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - Add support new
entrypoint for `/theme` which allows for incremental loading of component
recipes to avoid bloating the theme with unused components.
> This is mostly for bundle size optimization.
For example, if you want just the `button` recipe to be included in your
bundle, you can cherry-pick the recipe you need like this:
```tsx
import { createSystem, defaultBaseConfig } from "@chakra-ui/react"
import { buttonRecipe } from "@chakra-ui/react/theme"
export const system = createSystem(defaultBaseConfig, {
theme: {
recipes: {
button: buttonRecipe,
},
},
})
```
### Patch Changes
- [`010f256`](https://github.com/chakra-ui/chakra-ui/commit/010f256d74de2e48283d1f714c6094a4045bcbdd)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - - **File Upload**:
Prevented `undefined` in `acceptedFiles` when no files accepted
- **Select**: Fixed issue where highlighted item could be cleared when
navigating up/down the list with keyboard
- **Tabs**: Fixed issue where tabs with links should not trigger tab change
upon cmd/middle click
- **Menu**: Fixed issue where `Menu.ItemText` could not be used with
`Menu.Item`
## 3.20.0
### Minor Changes
- [`65020dd`](https://github.com/chakra-ui/chakra-ui/commit/65020dd159a8cfa0eebafd60afb98e971a7ee377)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - - **System**: Allow
`undefined` for optional properties in CSS and recipe types
- **Color Picker**: Fixed issue where value change end event is invoked when
committing via an input.
- **Toast**: Fixed issue where calling `toast.remove()` without an id shows a
TypeScript error.
- **Field**: Fixed issue where helper text and error text could not be
detected in shadow DOM environments.
- **Slider**
- Fixed issue where `minStepsBetweenThumbs` isn't computed correctly when
interacting with pointer or keyboard.
- Fixed issue where `Shift` + `ArrowRight` set value to `0` instead of `max`
when step is too large (e.g. `20`).
- Fixed issue where `onValueChangeEnd` doesn't return the latest value when
dragging very fast.
- Fixed issue where slider could throw a error when rendered in an popover
or dialog.
- **File Upload**: Added support for transforming uploaded files via
`transformFiles` context property.
- **Combobox**: Fixed issue where `onInputValueChange` doesn't get called when
`autoFocus` is set to `true`
- **Pin Input**: Fixed issue where input padding could cause clipping of the
text when `fontSize` is increased.
### Patch Changes
- [#10081](https://github.com/chakra-ui/chakra-ui/pull/10081)
[`c2f650b`](https://github.com/chakra-ui/chakra-ui/commit/c2f650bd0c3e4a137fa3622a94aace398e69f483)
Thanks [@isBatak](https://github.com/isBatak)! - - export
`CheckboxRootProviderProps` type
- [#10075](https://github.com/chakra-ui/chakra-ui/pull/10075)
[`63c267f`](https://github.com/chakra-ui/chakra-ui/commit/63c267fe2ef8aa0db707b5932dddbf4db2d54e40)
Thanks [@isBatak](https://github.com/isBatak)! - - export `Quote` typography
component and its types
## 3.19.2
### Patch Changes
- [#10059](https://github.com/chakra-ui/chakra-ui/pull/10059)
[`a289c3c`](https://github.com/chakra-ui/chakra-ui/commit/a289c3c928bc83f2550e374af17068afaed69858)
Thanks [@isBatak](https://github.com/isBatak)! - - **System**: add explicit
`undefined` to generated types to support TS `exactOptionalPropertyTypes`
- [#10064](https://github.com/chakra-ui/chakra-ui/pull/10064)
[`10d0a8e`](https://github.com/chakra-ui/chakra-ui/commit/10d0a8ed2be50c52786f7c9ba4d0edbbbc87c0e0)
Thanks [@mhsattarian](https://github.com/mhsattarian)! - - **Drawer**: Fix
drawer close animation in RTL
- **Button**
- Fix layout issue when in loading state with icons by using
`display: contents` and `visibility: hidden`
- Add `data-loading` attribute when `loading` is `true` so allow styling
loading state with `_loading` pseudo prop
## 3.19.1
### Patch Changes
- [`aa9c2b0`](https://github.com/chakra-ui/chakra-ui/commit/aa9c2b02e455697221b691aca54a82dcf5604fb8)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - - **System**: Fix
issue where some svg element props tend to be treated as style props
- **Checkbox**: Use consistent cursor for checkbox and radio group
## 3.19.0
### Minor Changes
- [#9464](https://github.com/chakra-ui/chakra-ui/pull/9464)
[`d860d48`](https://github.com/chakra-ui/chakra-ui/commit/d860d48cf7d547bfe3970e10ec49b9c7aa5d98b8)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - - **[New]
Combobox** Add combobox component for autocomplete text entry.
- **Progress Circle**: Make progress circle transition smoother.
## 3.18.0
### Minor Changes
- [`e91ec7e`](https://github.com/chakra-ui/chakra-ui/commit/e91ec7e9a393a791743636e934d28bc75a0e6dc8)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - - **DownloadTrigger
[New]** Add `DownloadTrigger` component to help download file contents.
- **System**
- Fix issue where passing `d` prop to `chakra.path` adds it to styles not as
a direct attribute.
- Fix issue where responsive semantic tokens did not get applied.
- **Select**: Fix issue where indicator group doesn't align correctly in RTL
layouts.
## 3.17.0
### Minor Changes
- [#9977](https://github.com/chakra-ui/chakra-ui/pull/9977)
[`ad8cc44`](https://github.com/chakra-ui/chakra-ui/commit/ad8cc44d957821deeaee0885bfd1767f7c53b7d1)
Thanks [@seongminn](https://github.com/seongminn)! - - **Breadcrumb**: Prevent
screen reader from reading the separator
- **Toast**: Added toast queuing when the max limit is reached:
- New toasts were queued instead of dropped
- Queued toasts were shown when space became available
- Queue cleared when all toasts were removed
- **SegmentGroup**: Fix issue where `disabled` prop was not being applied to
`SegmentGroup.Items`
- **RatingGroup**: Fix issue where half-filled icons were not being displayed
correctly in RTL
- **Collapsible**: Fixed issue in React.js <= v18.x where collapse animation
might not work as expected
## 3.16.1
### Patch Changes
- [`46075ba`](https://github.com/chakra-ui/chakra-ui/commit/46075ba8cb69730378c7aeb1b710d36df0e01355)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - - **Dialog,
Drawer**: Use correct z-index for dialog and drawer backdrop
- **SegmentGroup**: Fix issue where `orientation` prop to `SegmentGroup.Root`
doesn't work as expected
## 3.16.0
### Minor Changes
- [`529244d`](https://github.com/chakra-ui/chakra-ui/commit/529244d008db7049d5b7d12590c41eba8df212d9)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - - **Global CSS**:
Improve text selection contrast
- **System**
- Fix issue where `borderEnd` shorthand was not working despite
`borderStart` being present
- Fix issue where `system.cva` return type was incorrect
- Soften the focus ring for all color palettes
- **Dialog, Drawer**: Fix issue where `z-index` was not being applied
correctly
- **[Beta] createOverlay**: Add `createOverlay` utility for programmatically
controlling overlay components (Dialog, Drawer, etc.)
## 3.15.1
### Patch Changes
- [`e3d7db7`](https://github.com/chakra-ui/chakra-ui/commit/e3d7db72dbe53c159a8813fca05f5472aa21d10f)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - - Fix issue where
backdrop could overlap positioner when reopened quickly
- Ensure types are consistent with React 19
## 3.15.0
### Minor Changes
- [`2f4ea3b`](https://github.com/chakra-ui/chakra-ui/commit/2f4ea3b31792b6df212798c5f00e174276acc274)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - -
**useMediaQuery**: Fix type signature to allow skipping the second argument
- **RadioCard**: Fix accessibility issue due to html structure
- **Slider**
- Add support for `origin: end` to align the thumb to the end of the track.
- Expose `thumbSize` as CSS variables in the root element. Can be useful for
styling the slider.
- **Menu**
- Added `onSelect` event to the `Menu.Item` component.
- Ensure menu items have unique IDs to improve accessibility and HTML
validation.
## 3.14.2
### Patch Changes
- [`87a072b`](https://github.com/chakra-ui/chakra-ui/commit/87a072b7c0c699154651a9f415d578a8c972b21d)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - - Fix potential
import error from `@zag-js/utils` in `@ark-ui/react`
## 3.14.1
### Patch Changes
- [`0eb769e`](https://github.com/chakra-ui/chakra-ui/commit/0eb769ef66e3766aa3f78983054766d4371d2008)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - - **System**: Fix
issue where output of `<system>.css(...)` from Chakra UI can't be assigned to
`Interpolation<Theme>` from `@emotion/react`.
- **General**: Bump `@ark-ui/react` to latest version.
## 3.14.0
### Minor Changes
- [`354eaa6`](https://github.com/chakra-ui/chakra-ui/commit/354eaa6a68dd49c3e983f12afb0350c3fc615c6b)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - Improve render
performance by upgrading to the latest Ark UI v5.
This brings a **1.5x–4x** performance improvements across components. Learn
more from the
[Ark UI v5 changelog](https://ark-ui.com/react/docs/overview/changelog#500---2025-03-06).
## 3.13.0
### Minor Changes
- [#9797](https://github.com/chakra-ui/chakra-ui/pull/9797)
[`eba44a3`](https://github.com/chakra-ui/chakra-ui/commit/eba44a33fd51af10cb85eb9a8778325affbee4bd)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - - **ColorPicker**
- Add support for `ColorPicker.ChannelText` component
- Add `ColorPicker.EyeDropper` component that wraps `IconButton`
- Add `ColorPicker.Slider` and `ColorPicker.Input` shortcut components to
reduce LOC.
- **InputGroup**
- Export directly from the `@chakra-ui/react` package
- **Pagination**
- Add `Pagination.Items` shortcut component to render the number of pages
based on the `count` and `pageSize` props.
- Add `Pagination.PageText` component to render the current page and total
pages.
## 3.12.0
### Minor Changes
- [`7abe7e3`](https://github.com/chakra-ui/chakra-ui/commit/7abe7e3ccc589c7088f32d5e8f76d471747bd4eb)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - - **FileUpload:**
- Add `FileUpload.FileText` to render the list of uploaded file names.
- Add `FileUpload.Items` shorcut component to render the list of uploaded
files.
- Add `FileUpload.List` shortcut component that combines `FileUpload.Items`
and `FileUpload.ItemGroup`.
## 3.11.0
### Minor Changes
- [`8789401`](https://github.com/chakra-ui/chakra-ui/commit/87894014191052a24a8cb3716ed068be9a744fbc)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - - **Accordion**
- Fix issue where `Accordion.ItemTrigger` doesn't apply `textAlign: start`
- **SegmentGroup**
- Add new `SegmentGroup.Items` shortcut component to render multiple
`SegmentGroup.Item` components based on the `items` prop
## 3.10.0
### Minor Changes
- [`11bdf77`](https://github.com/chakra-ui/chakra-ui/commit/11bdf77f897ecf36da0ee45f0f52b9edb974da5e)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - - **Menu**
- Set the default children of `Menu.Arrow` to `Menu.ArrowTip`
- **HoverCard**
- Set the default children of `HoverCard.Arrow` to `HoverCard.ArrowTip`
- **Dialog, Drawer**
- Update recipe to include absolute positioning styles for close trigger,
instead of relying on snippet styles.
## 3.9.0
### Minor Changes
- [`52a97d0`](https://github.com/chakra-ui/chakra-ui/commit/52a97d0f0baaa06f257b2af2d17d909993cbb30d)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - - **Skeleton**
Bring back `SkeletonCircle` and `SkeletonText` components.
- **Switch**
- Transition background color when checked
- Set the default `children` for `Switch.Control` to `Switch.Thumb` to
reduce LOC for common use cases.
- **Checkbox**
- Set the default `children` for `Checkbox.Control` to `Checkbox.Indicator`
to reduce LOC for common use cases.
- **NumberInput**
- Set the default `children` for `NumberInput.Control` to
`NumberInput.IncrementTrigger` and `NumberInput.DecrementTrigger` to
reduce LOC for common use cases.
- **QrCode**
- Set the `QrCode.Frame` component to `QrCode.Pattern` to reduce LOC for
common use cases.
- **RatingGroup**
- Set the default `children` for `RatingGroup.Control` to the array of
`RatingGroup.Item` components to reduce LOC for common use cases.
- **Slider**
- Add `Slider.Marks` component to render marks on the slider track. This is
a closed composition of `Slider.MarkerGroup` and `Slider.Marker` to reduce
LOC for common use cases.
- Add `Slider.Thumbs` component to render thumbs on the slider track. This
is a closed composition of `Slider.Thumb` to reduce LOC for common use
cases.
- **PinInput**
- Add support for `attached` variant prop to render a pin input with
attached inputs. This removes the need for the `Group` component to wrap
the inputs.
## 3.8.2
### Patch Changes
- [`91945b7`](https://github.com/chakra-ui/chakra-ui/commit/91945b78792962913fb862ca60cfc1599b655ccf)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - Fix issue where
`mt` alias to `marginBlockStart` instead of `marginTop`
- [#9712](https://github.com/chakra-ui/chakra-ui/pull/9712)
[`f733a87`](https://github.com/chakra-ui/chakra-ui/commit/f733a87477d371a7dc66c69b321f079c0bbe75bd)
Thanks [@CerealeZ](https://github.com/CerealeZ)! - AspectRatio: Fix issue
where `css` prop was not respected
## 3.8.1
### Patch Changes
- [`cdb9459`](https://github.com/chakra-ui/chakra-ui/commit/cdb9459a764800391e15864108fbd8fa94a7164c)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - - Fix performance
regression from `v3.5.x` by reverting memoization logic
- Add `useMemo` to provider components and styling hooks to avoid unnecessary
recomputations
## 3.8.0
### Minor Changes
- [`fa5e966`](https://github.com/chakra-ui/chakra-ui/commit/fa5e966f389e75f4bb795b31e6f6b5dd8df017ba)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - - Add new hooks
`useElementRect`, `useForceUpdate`, `useLiveRef`,`usePrevious` and
`useSafeLayoutEffect`
- Add new `FocusTrap` component for trapping focus within a container
### Patch Changes
- [#9616](https://github.com/chakra-ui/chakra-ui/pull/9616)
[`54a73a7`](https://github.com/chakra-ui/chakra-ui/commit/54a73a79c6121d3b367ffcff1860347d97ab0fd9)
Thanks [@mhsattarian](https://github.com/mhsattarian)! - - **Breadcrumb**: Fix
issue where breadcrumb arrow don't flip in RTL
- **Snippets / Color Mode**: Add `LightMode` and `DarkMode` components to
force light and dark color mode in a subtree
- **Docs / Testing**: Add testing guideline for Vitest
- **Group**: Fix issue where `Group` component doesn't skip invalid children
## 3.7.0
### Minor Changes
- [`cb0ffc9`](https://github.com/chakra-ui/chakra-ui/commit/cb0ffc99b47da92482294bf0cef9743d1eb4c188)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - - **Avatar:** Add
support for passing `name` to the `AvatarFallback` to render the initials. If
no `name` or `children` is passed, it'll render either the initials or a
fallback icon.
- **Hooks**: Add `useConst` and `useUpdateEffect` hooks from v2.
- **Wrap:** Bring back the `Wrap` component from v2.
## 3.6.0
### Minor Changes
- [`04a1a07`](https://github.com/chakra-ui/chakra-ui/commit/04a1a07f1eb8924648b7d1a0de005777330cf5f3)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - - **Styled
System:**
- Boost performance of style resolution by removing `JSON.stringify` in `memo`
function and avoid memoizing non-primitive arguments.
- Connect `assets` token to `backgroundImage` and `listStyleImage` css
properties.
- **Menu, Tooltip:** Set `lazyMount` and `unmountOnExit` to `true` in the
`Root` component to improve initial rendering performance.
- **AbsoluteCenter:** Fix issue where axis doesn't work in RTL mode.
- **Snippets / QRCode:** Remove snippet in favor of compound component
pattern.
- **List:** Fix issue where list items don't wrap correctly.
- **Stat:** Bring back `StatGroup` component from v2.
- **Close Button:** Add `CloseButton` component.
## 3.5.1
### Patch Changes
- [`34d46e3`](https://github.com/chakra-ui/chakra-ui/commit/34d46e38eb16bb5adda70f5445d9e406b4da415b)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - - **Button:** Fix
issue where button is not disabled when loading props is passed
- **ColorPicker, HoverCard, Tooltip:** Fixed intermittent placement shifts
caused by updates to the `data-placement` attribute
- **Snippets / Alert:** Deprecate the `Alert` snippet in favor of using the
`Alert` component directly from `@chakra-ui/react`.
## 3.5.0
### Minor Changes
- [`30a12d0`](https://github.com/chakra-ui/chakra-ui/commit/30a12d01af9672ebf36ea872f3d9bdfcc2b212d2)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - - **Native Select**
- Fix issue where `disabled` and `invalid` props were not being passed to the
`NativeSelectField` component.
- Persist error focus ring when `invalid` prop is set.
- Fix issue where native select isn't readable in dark mode for Windows/Linux
devices.
- **[New] Loader:** Add new `Loader` and `LoaderOverlay` components.
- **[New] Button Group:** Add new `ButtonGroup` component similar to v2 for
grouping similar buttons.
- **Button:** Add `loading` and `loadingText` props to the `Button` component.
- **Snippets / Menu:** Refactor checkbox item to fix rendering
- **Snippets / Button:** Removed the button snippet in favor of built-in
component.
## 3.4.0
### Minor Changes
- [`375e05f`](https://github.com/chakra-ui/chakra-ui/commit/375e05ff087ec79c0d900a5bc01da8ffddc59dbc)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - - **[New]
Presence:** Add component to animate an element using css animation, and
control the mount/unmount behavior
### Patch Changes
- [`882c7f6`](https://github.com/chakra-ui/chakra-ui/commit/882c7f67b3c6de9c15acd97703dc810599fb8562)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - - **Separator**:
Fix issue where `aria-orientation` was missing in the DOM and `orientation`
was added instead.
- **FileUpload**
- Resolved an issue where form-related components reset despite the reset
event being cancelled.
- Fixed a brief warning display when a new image file is added to the
preview.
- Enhanced click detection for the dropzone and added support for the
`disableClick` prop.
- [`4c885df`](https://github.com/chakra-ui/chakra-ui/commit/4c885dfd0be37d00a49201d4930aa76397eeaa61)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - - **Button, Icon**
Fix issue where button and icon doesn't export props providers
- [`b39ea43`](https://github.com/chakra-ui/chakra-ui/commit/b39ea43b1d44305cded9fed1766a2b8ba9969d64)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - **System**: Fix
issue where render times feels slower compared to v2 due to the global style
computation in the provider component. Now, it is much faster.
[See Discussion](https://github.com/chakra-ui/chakra-ui/discussions/9488#discussioncomment-11868684)
## 3.3.3
### Patch Changes
- [`9c55f21`](https://github.com/chakra-ui/chakra-ui/commit/9c55f2138fdb7cfe7422223f11dc4153421c654b)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - Fix issue where
icon sizes doesn't work anymore
## 3.3.2
### Patch Changes
- [`855bb29`](https://github.com/chakra-ui/chakra-ui/commit/855bb290d3e89533e43833abfa21a6863d367953)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - - **Icon:**
Refactor icon recipe `size=inherit` to allow for composition with button
- **Snippet / Tooltip:** Set `portalled` to `true` by default
- [#9470](https://github.com/chakra-ui/chakra-ui/pull/9470)
[`4bd9f8d`](https://github.com/chakra-ui/chakra-ui/commit/4bd9f8d6db8a7f2174ce184e4a921f6b0a6b86f6)
Thanks [@lcswillems](https://github.com/lcswillems)! - - **Menu, Select:** Use
the same semantic token for select `_highlighted` state
- **Toast:** Fix issue where toast close trigger was not visible
- [`e4fe984`](https://github.com/chakra-ui/chakra-ui/commit/e4fe984a14d2538a7913db85eb486491b5d8a9c9)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - Fix issue where
using `<Icon as={...} />` throws an error, forcing users to use the `asChild`
approach
- [`e506044`](https://github.com/chakra-ui/chakra-ui/commit/e506044a175a241b43c1b23b612e322b42de15a9)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - Fix issue where
factory shows a warning React 19 due to accessing `child.ref`
## 3.3.1
### Patch Changes
- [`0fc040a`](https://github.com/chakra-ui/chakra-ui/commit/0fc040adedce9239bb00d7001e0cffc861ff4ea0)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - **HoverCard,
Tooltip**: Resolved an issue where the controlled open state could become
inconsistent during the `opening` or `closing` phases.
- [`1439548`](https://github.com/chakra-ui/chakra-ui/commit/1439548c7f72b02133e3dba7211879c12b698303)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - Fix issue where
`useRecipe` and `useSlotRecipe` returns `never` when key does not match
built-in recipe.
## 3.3.0
### Minor Changes
- [#9437](https://github.com/chakra-ui/chakra-ui/pull/9437)
[`791bcec`](https://github.com/chakra-ui/chakra-ui/commit/791bcec921913cedfe2316b21ed3edfd5d86d07b)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - ### Added
- **Clipboard**: Introduced `Clipboard.ValueText` to display clipboard
content.
- **FileUpload**:
- Added `preventDropOnDocument` to block file drops on the document when the
file upload component is active.
- Added `setClipboardFiles` to the API for setting files from clipboard
data.
- **Progress**: Added support for`onValueChange` and `defaultValue`.
- **Tabs, Menu, Combobox**: Added `navigate` property for custom router
navigation when selections render as links.
- **QrCode**:
- Added support for `onValueChange` and `defaultValue`.
- Added `QrCode.DownloadTrigger` to enable QR code image downloads.
### Fixed
- **Collapsible**: Fixed a bug where the opening animation replayed when an
open collapsible was re-rendered.
- **Dialog, Popover**: Resolved an issue causing dialogs or popovers to close
if the focused element was removed from the DOM.
- **FileUpload**: Fixed a bug causing the hidden input to desync from accepted
files.
- **Menu, Popover**: Fixed inconsistent interaction detection outside the
component when the trigger was inside a scrollable container.
- **Pagination**: Corrected an issue where the page range returned an
incorrect `end` value when `pageSize` exceeded `count`.
- **QRCode**: Fixed `getDataUrl` to generate a properly sized QR code.
- [#9437](https://github.com/chakra-ui/chakra-ui/pull/9437)
[`791bcec`](https://github.com/chakra-ui/chakra-ui/commit/791bcec921913cedfe2316b21ed3edfd5d86d07b)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - Add new QRCode
component for converting text and links to QR codes.
```tsx
import { QrCode } from "@chakra-ui/react"
export const QrCodeWithoutSnippet = () => {
return (
<QrCode.Root value="..." size="md">
<QrCode.Frame>
<QrCode.Pattern />
</QrCode.Frame>
</QrCode.Root>
)
}
```
### Patch Changes
- [`d3f1c19`](https://github.com/chakra-ui/chakra-ui/commit/d3f1c1918d3bb0bb98260f2a3623776f0f392f99)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - Fix issue where
`htmlWidth` and `htmlHeight` doesn't work in `Image` or `chakra.image`
elements.
- [`f32cb4a`](https://github.com/chakra-ui/chakra-ui/commit/f32cb4a7e2240bfd9879b3b4b093d76020f766ef)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - Improve typesafety
for layer styles to support common shorthands like `bg`, `bgColor`, `bgImage`
- [`b11587b`](https://github.com/chakra-ui/chakra-ui/commit/b11587b8b93fd55d30aeac17a7c2413ddc72395d)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - Fix compound
variant matching not working with `colorPalette` prop
## 3.2.5
### Patch Changes
- [`d195ced`](https://github.com/chakra-ui/chakra-ui/commit/d195ced85f53d4d2e0ef39aff3912aee8c94fa62)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - - **Snippets /
Pagination**: Fix issue where pagination page text renders incorrectly when
the `pageSize` is greater than the `count` value with `format=long`
- **Snippets / InputGroup**: Improve typings for `children` prop to prevent TS
errors
- [`609855d`](https://github.com/chakra-ui/chakra-ui/commit/609855df6ae6f3f19b74b65c8d87dd73769be4d4)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - Improve type-safety
in `useRecipe` and `useSlotRecipe` hooks
- [`636c61f`](https://github.com/chakra-ui/chakra-ui/commit/636c61f80ae575c4f37d2d03d3577cc386ea1b0a)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - **useMediaQuery**:
Fix issue where partial media queries like `aspect-ratio < 1` doesn't return
the correct result.
> **Good to know**: Partial media queries like `aspect-ratio < 1` resolves to
> `aspect-ratio < 1 / 1` in the browser.
- [`b1c3f74`](https://github.com/chakra-ui/chakra-ui/commit/b1c3f7467048be9d3ef20062819b0fbfefb1733b)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - Fix issue where
composing `Input` component throws `asChild` React HTML prop warning.
- [`e7fddd5`](https://github.com/chakra-ui/chakra-ui/commit/e7fddd502150f3781b6569c7042608de82f30e1e)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - Fix issue where
`mergeConfigs` does not override functions
- [`55258da`](https://github.com/chakra-ui/chakra-ui/commit/55258daf9c4eec8c3bd8b88b2cf6e7bdbb1905a9)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - - **FileUpload**:
Resolved an issue where the `accept` attribute wasn’t applied to the hidden
input.
- **NumberInput**: Fixed issue where the input event wasn’t triggered on the
first click of the increment/decrement controls.
## 3.2.4
### Patch Changes
- [`df0ac52`](https://github.com/chakra-ui/chakra-ui/commit/df0ac52ca14fc9bb6170bb14c5fcd2183ec7084f)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - Fix issue where
component hook props (like `UseCheckboxProps`, `UseCheckboxGroupProps`, etc.)
are not exported.
- [`be8f80a`](https://github.com/chakra-ui/chakra-ui/commit/be8f80ad9e1a2c987ebb477944377ed72138e33c)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - Fix issue where
`chakra.x` factory component props throws TS error in React 19
## 3.2.3
### Patch Changes
- [`d821ab5`](https://github.com/chakra-ui/chakra-ui/commit/d821ab58b893f725ae7cbcf5122edb7ea1e11756)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - Fix issue where
responsive semantic tokens doesn't work as expected.
## 3.2.2
### Patch Changes
- [`7234d75`](https://github.com/chakra-ui/chakra-ui/commit/7234d756315ed4ccce127229e0687eef060266c4)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - - **Slider**
- Add `DraggingIndicator` component to show an element only while dragging
- Fix issue where slider marks were not styled correctly in vertical
orientation
- **Menu**: Update recipe to use `--available-height` css variable to keep the
menu's height within the available space
- **System**: Fixed issue where exporting `withRootProvider` would result in
type error
- **Snippets / Slider**
- Move `MarkerGroup` into the `Control` component
- Remove hardcoded margin values in favor of recipes and
`data-has-mark-label` attribute
## 3.2.1
### Patch Changes
- [#9240](https://github.com/chakra-ui/chakra-ui/pull/9240)
[`561ccc0`](https://github.com/chakra-ui/chakra-ui/commit/561ccc015561203f53cc12d7c5e6606283bb41ab)
Thanks [@Pagebakers](https://github.com/Pagebakers)! - - **System**: Fix issue
where exporting `withProvider` and `withContext` would result in type error
- **Timeline**: Fix issue where `TimelineTitle` was missing from the export
- **Tabs**: Fix issue where `useTabs` and `useTabsContext` were not exported
- **Snippets / ColorPicker**: Fix flex direction of `ColorPickerChannelInputs`
and `ColorPickerChannelSliders`
## 3.2.0
### Minor Changes
- [#9130](https://github.com/chakra-ui/chakra-ui/pull/9130)
[`e5880fb`](https://github.com/chakra-ui/chakra-ui/commit/e5880fb7eafe9044604ffb893589792b35961eaf)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - - [Preview] Add new
`ColorPicker` component to allow users pick a color in hsl, rgb, hsb formats.
- Add new `ColorSwatch` component to preview a color.
- Fix issue where `mergeConfigs` mutates the underlying configs passed to it.
## 3.1.2
### Patch Changes
- [`65952d7`](https://github.com/chakra-ui/chakra-ui/commit/65952d7a796ae491ea6a0d57661a25a404a11452)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - - **General:** Fix
issue where value change types were not re-exported from Ark UI
- **Layer Style:** Fix issue where `fill.surface` layer style doesn't render
the correct styles
- **Pagination:** Fix issue where `PaginationPageText` did not render the
correct page range
## 3.1.1
### Patch Changes
- [#9128](https://github.com/chakra-ui/chakra-ui/pull/9128)
[`0715e2c`](https://github.com/chakra-ui/chakra-ui/commit/0715e2cd51a20db4d66f1e5290a8c1d74cb59858)
Thanks [@coverlv](https://github.com/coverlv)! - Fix issue where
`useBreakpointValue` throws error if `ssr` is false
- [#9103](https://github.com/chakra-ui/chakra-ui/pull/9103)
[`1254769`](https://github.com/chakra-ui/chakra-ui/commit/12547692bdfe2ebe7be9c16ea381a5c42f553e1c)
Thanks [@Newbie012](https://github.com/Newbie012)! - - **Checkbox**: Fix issue
where checkmark doesn't show on Safari
- **Alert**: Fix issue where indicator icon is not visible on Safari
- **ClientOnly**: Fix issue where returned the incorrect type leading to TS
error like `ClientOnly cannot be used as a JSX component.`
- **Fieldset**: Fix issue where anatomy is not exported
- **Timeline**: Refactor variants such that it responds to `colorPalette`
## 3.1.0
### Minor Changes
- [`9a27c2c`](https://github.com/chakra-ui/chakra-ui/commit/9a27c2c6fd6289cf31a9ad9cd3ba51f3091a6363)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - - **System:** Fix
issue where using `as` prop with logic based components doesn't work as
expected.
- **DataList:** Add support for `bold` variant.
- **Button:** Tweak the horizontal padding when size is `sm`.
- **Snippets**
- Slider: Add `showValue` prop to render the text value of the slider.
- Select
- Add `HiddenSelect` to ensure it works in form submissions.
- Fix type inference is lost when using `SelectRoot` component from
snippet
- Fix issue where form data is not populated when using native form
element
- ColorMode: Fix type error when using the latest `next-themes`.
- Provider: Forward props to `ColorModeProvider` powered by `next-themes`
for better customization.
- **Toggle:** Add `Toggle` component for toggling between two states. It
composes the `Button` component.
## 3.0.2
### Patch Changes
- [`20b91bd`](https://github.com/chakra-ui/chakra-ui/commit/20b91bdc6134e83897fab058b0ff30fd23e61c5d)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - - **InputAddon**:
Fix issue with input addon not stretched correctly.
- **Snippets / Toaster**: Improve toaster styling by adding
`width={{ md: "sm" }}` to the toast root.
## 3.0.1
### Patch Changes
- [`c0020c9`](https://github.com/chakra-ui/chakra-ui/commit/c0020c984cba3b583875b7c1a34e8c7fb1a0d86a)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - Fix issue where
using `keyframe` interpolation in `animation` prop doesn't work
- [`7d4f898`](https://github.com/chakra-ui/chakra-ui/commit/7d4f8987e6b7d49440ecc9c1bd292c065d212267)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - Fix issue where
`scrollBehavior=outside` doesn't allow scrolling outside the dialog content
## 3.0.0
### Major Changes
- [#8153](https://github.com/chakra-ui/chakra-ui/pull/8153)
[`7b6e66a`](https://github.com/chakra-ui/chakra-ui/commit/7b6e66a15b08ad27e8458a009c3fb15ee738ca37)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - Prepares the ground
for the next version Chakra that leverages Ark UI.
**User Facing**
- Consolidate all component packages into a single package
- Remove all deprecated components and APIs
- Simplify the Changelogs for all v2 releases
**Infrastructure**
- Simplify the repo infrastructure and release process
- Migrate from `jest` to `vitest`
- Migrate from `tsup` to custom `rollup` setup for better bundling strategy
- [#8815](https://github.com/chakra-ui/chakra-ui/pull/8815)
[`806be96`](https://github.com/chakra-ui/chakra-ui/commit/806be96aa3be56399af7fb697bbbb92b2533fffd)
Thanks [@isBatak](https://github.com/isBatak)! - Remove the `@chakra-ui/hooks`
package in favour of using dedicated, robust libraries like `react-use` and
`usehooks-ts`
### Minor Changes
- [#8121](https://github.com/chakra-ui/chakra-ui/pull/8121)
[`170198f`](https://github.com/chakra-ui/chakra-ui/commit/170198fc3936ad34f8136a2da173c12d9dc3dc36)
Thanks [@kkieninger](https://github.com/kkieninger)! - ### Fixed
- Fix hard-coded z-index for Menu in favor of one defined from the theme
- Fix problem with leading and trailing spaces when getting initials for the
Avatar component
- Suppress unnecessary re-renders of Checkbox and Radio component
### Added
- Add CSS `accentColor` property to style props
- Add support for `asChild` in chakra factory
- Export `toastStore` from `toast` component
- Upgrade `framer-motion` to allow for skipAnimations
- Add component namespace to reduce imports and provide better composition
- Modal, Drawer: Add default `preserveScrollBarGap`
### Changed
Redesign the component themes and anatomy
- [`192c6b1`](https://github.com/chakra-ui/chakra-ui/commit/192c6b1c0981b9bbb147fda4ad2dd288c624c78c)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - Add new fieldset
component
- [`07b04b1`](https://github.com/chakra-ui/chakra-ui/commit/07b04b1c506995f6f276f5f80a93d09d89b92fce)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - - **[NEW]:** Add
`RatingGroup`, `SegmentControl`
- **[NEW]:** Add `EmptyState` component for empty states
- **[NEW]:** Add `RadioCard` and `CheckboxCard` components for card-based
selection
- [#8568](https://github.com/chakra-ui/chakra-ui/pull/8568)
[`5fd993b`](https://github.com/chakra-ui/chakra-ui/commit/5fd993bfbfd82f340646b3aa55fccc4d633834a7)
Thanks [@isBatak](https://github.com/isBatak)! - Add Collapsible recipe with
default open/close animation
- [`3fc49ca`](https://github.com/chakra-ui/chakra-ui/commit/3fc49ca37df42e793d84afd4bc857c568e2e8b5a)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - Add support for
`FormatNumber` and `FormatByte` components
- [`3ccbbdf`](https://github.com/chakra-ui/chakra-ui/commit/3ccbbdff6e9c48350461358fb898ea1a8a166c08)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - ### Motion Styles
Add support for `motionStyle` props.
The idea is to pair them with text styles and layer styles to create this
three-part mixin that can make your styles a lot cleaner.
Motion styles focus solely on animations, allowing you to orchestrate
animation properties.
```jsx
import { defineMotionStyles } from "@chakra-ui/react"
export const motionStyles = defineMotionStyles({
"slide-fade-in": {
value: {
transformOrigin: "var(--transform-origin)",
animationDuration: "fast",
"&[data-placement^=top]": {
animationName: "slide-from-top, fade-in",
},
"&[data-placement^=bottom]": {
animationName: "slide-from-bottom, fade-in",
},
"&[data-placement^=left]": {
animationName: "slide-from-left, fade-in",
},
"&[data-placement^=right]": {
animationName: "slide-from-right, fade-in",
},
},
},
})
```
### Built-in Keyframe Animations
Chakra new provides built-in keyframe animations that you can use to create
your own motion styles.
**Slide:** `slide-from-top`, `slide-from-bottom`, `slide-from-left`,
`slide-from-right`, `slide-to-top`, `slide-to-bottom`, `slide-to-left`,
`slide-to-right`
**Slide Full:** `slide-from-top-full`, `slide-from-bottom-full`,
`slide-from-left-full`, `slide-from-right-full`, `slide-to-top-full`,
`slide-to-bottom-full`, `slide-to-left-full`, `slide-to-right-full`
**Fade:** `fade-in`, `fade-out`
**Scale:** `scale-in`, `scale-out`
You can compose these animations using the `animationName` property in your
motion styles to create really cool animations. No JS required.
```jsx
<Box animationName="slide-from-top, fade-in" animationDuration="fast">
Slide from top and fade in
</Box>
```
- [`3ccbbdf`](https://github.com/chakra-ui/chakra-ui/commit/3ccbbdff6e9c48350461358fb898ea1a8a166c08)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - Add support for
built-in layer styles to help prototype faster with automatic dark mode.
Paired with `colorPalette`, you can create beautiful designs with little code
that adapts to dark mode automatically.
**Fill Layer Styles:** `fill.muted`, `fill.solid`, `fill.surface`
```jsx
<Box layerStyle="fill.muted" colorPalette="red">
This is a subtle fill layer
</Box>
```
**Border Layer Styles:** `outline.muted`, `outline.solid`
```jsx
<Box layerStyle="outline.muted" colorPalette="red">
This is a subtle outline layer
</Box>
```
**Indicator Styles**: `indicator.top`, `indicator.end`, `indicator.bottom`,
`indicator.start`
```jsx
<Box layerStyle="indicator.top" colorPalette="red">
This is a top indicator layer
</Box>
```
**Disabled Styles:** `disabled`
```jsx
<Box _disabled={{ layerStyle: "disabled" }}>Disabled Button</Box>
```
You can combine these layer styles to create very complex designs with little
code.
```jsx
<Box
layerStyle="fill.muted"
_hover={{ layerStyle: "outline.solid" }}
colorPalette="red"
>
This is a complex layer
</Box>
```
- [`de9c0a0`](https://github.com/chakra-ui/chakra-ui/commit/de9c0a0d78f70db1fb246ea8ec377e57e10919e7)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - Add `DataList`
component
- [`e77a9b8`](https://github.com/chakra-ui/chakra-ui/commit/e77a9b81ecd765d0b0963e5f847a867dfd506363)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - - Add new Timeline
component to presenting chronological information or activities.
- Trim generated `className` in the DOM.
- Add `neutral` status to `Alert` component
- [`763329e`](https://github.com/chakra-ui/chakra-ui/commit/763329ebdca2a9d4b7295d94fff3d2265a793c99)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - Add preset and
preset-base entrypoints.
- The `preset` entrypoint exposes the default theme and recipes for Chakra.
- The `preset-base` entrypoint exposes the base utilities and conditions used
internally.
- [`925cfd9`](https://github.com/chakra-ui/chakra-ui/commit/925cfd99ce0a09c4145b81c17605e882c4aa1840)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - Add ActionBar,
Status, Rating, Pagination components
- [`e9a1537`](https://github.com/chakra-ui/chakra-ui/commit/e9a1537579e80071cc00722a5f707768524f675c)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - BREAKING: Change
signature of `useRecipe`, `useSlotRecipe`, `createSlotRecipeContext`
### createSlotRecipeContext
Before:
```tsx
const { withProvider, withContext } = createSlotRecipeContext("accordion")
```
After:
```tsx
const { withProvider, withContext } = createSlotRecipeContext({
key: "accordion",
})
```
### useSlotRecipe
Before:
```tsx
const recipe = useSlotRecipe("accordion")
```
After:
```tsx
const recipe = useSlotRecipe({ key: "accordion" })
```
- [`3908155`](https://github.com/chakra-ui/chakra-ui/commit/3908155e291b14468c12711abc9e45e94c904358)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - Rename
`createStyleContext` to `createSlotRecipeContext`
- [`c654ee3`](https://github.com/chakra-ui/chakra-ui/commit/c654ee31fff590be2ec132a30deb2be399af7035)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - Improve performance
of styled components to avoid unneeded re-renders.
- [`edec8f7`](https://github.com/chakra-ui/chakra-ui/commit/edec8f79a7e444987a0de0fb43171636d14a6b35)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - Add clipboard
composition
- [`5093e18`](https://github.com/chakra-ui/chakra-ui/commit/5093e186a94f9c73452dd346fcf8becb57c21140)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - Add cursor pointer
to button
- [`4c6838c`](https://github.com/chakra-ui/chakra-ui/commit/4c6838c5e6c262da6b573c8576595bb8cedc5452)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - - Rename `onLabel`
and `offLabel` to `trackLabel`
- Add support for `thumbLabel` prop for rendering an icon within thumb
- [#8393](https://github.com/chakra-ui/chakra-ui/pull/8393)
[`623e558`](https://github.com/chakra-ui/chakra-ui/commit/623e558ac22f84e6250387d0971aafe9713667a6)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - - Integrate Ark UI
components to reduce maintenance surface.
- Add `FileUpload` component
- Remove `trigger=hover` in favor of `HoverCard`
- Replace `Tooltip`, `Popover` and `HoverCard` with those from Ark UI
- [`945a777`](https://github.com/chakra-ui/chakra-ui/commit/945a7774ad138a9b77a36ef46fdbb501addfe1db)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - BREAKING: Integrate
Ark v4. This mostly affects the custom select component that requires the use
of `createListCollection` now.
- [`c26acf0`](https://github.com/chakra-ui/chakra-ui/commit/c26acf01608ad8ef1b4bb7547c97fa111026ecf7)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - Add support for
cursor token type
- [`55c0839`](https://github.com/chakra-ui/chakra-ui/commit/55c08393b46e07c0f229ccd0e448863e2daf3ccf)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - Move the `Prose`
component to snippets so it can be customized by the user.
- [`952647a`](https://github.com/chakra-ui/chakra-ui/commit/952647a1767df596d08f91fd3b50c28e8edc22e7)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - Add `CardTitle` and
`CardDescription` components
- [`f4762bf`](https://github.com/chakra-ui/chakra-ui/commit/f4762bf087a8aac240c83093adde0f84e37a0456)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - Add support for
merging multiple system configs into one within `createSystem`
Before:
```tsx
const config = mergeConfigs(defaultConfig, customConfig)
export const system = createSystem(config)
```
After:
```tsx
const system = createSystem(defaultConfig, customConfig)
```
- [#8218](https://github.com/chakra-ui/chakra-ui/pull/8218)
[`a89c598`](https://github.com/chakra-ui/chakra-ui/commit/a89c598ed822bf11efc519f8789fa7c145e3bba0)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - Add support for
custom theme conditions or pseudo props via `theme.conditions`
```ts
// theme.ts
const theme = extendTheme({
conditions: {
_closed: "[data-state='closed']", // pseudo prop
},
})
```
This allows you to use the pseudo prop in your components
```jsx
<Box data-state="closed" _closed={{ bg: "red.200" }}>
This box is closed
</Box>
```
**For TypeScript users**, you need to use the Chakra CLI to generate the types
for your custom conditions.
```sh
pnpm chakra-cli tokens src/theme/index.ts
```
- [`c2f45ca`](https://github.com/chakra-ui/chakra-ui/commit/c2f45cac80ab9431dd416fe4405bd9252f401b9f)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - Rename
`Fieldset.Control` to `Fieldset.Content`
- [`1738b90`](https://github.com/chakra-ui/chakra-ui/commit/1738b901122932b664f6a4c06701cfab4c00afd2)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - - Icon: Set
`asChild` to `true` by default to reduce repetition
- All components
- Ensure consistent sizing convention (units of 4px). Smaller elements start
at 20px, larger elements start at 40px
- Ensure focus ring matches the colorPalette
- Input, Textarea: Rename `filled` variant to `subtle`
- Tags: Add new `Tag.StartElement` and `Tag.EndElement` components to allow
for easier styling of the start and end elements
- [`3ccbbdf`](https://github.com/chakra-ui/chakra-ui/commit/3ccbbdff6e9c48350461358fb898ea1a8a166c08)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - Redesign `Stepper`
component. It's now called `Steps` and manages the state internally, no need
to use `useSteps` anymore.
We've also improved the accessibility of the component by leveraging the tabs
pattern and adding the required ARIA attributes.
```tsx
<Steps.Root defaultIndex={0} count={2}>
<Steps.List>
<Steps.Item index={0}>
<Steps.Trigger>
<Steps.Title>Step 1</Steps.Title>
</Steps.Trigger>
<Steps.Separator />
</Steps.Item>
<Steps.Item index={1}>
<Steps.Trigger>
<Steps.Title>Step 2</Steps.Title>
</Steps.Trigger>
<Steps.Separator />
</Steps.Item>
</Steps.List>
<Steps.Content index={0}>Step 1</Steps.Content>
<Steps.Content index={1}>Step 2</Steps.Content>
<Steps.CompleteContent>Complete</Steps.CompleteContent>
</Steps.Root>
```
Using the CLI, you can also scaffold an already composed stepper component
```sh
chakra composition add steps
```
- [`548470d`](https://github.com/chakra-ui/chakra-ui/commit/548470dd4306dd39d76555e172da64fd1861fdc5)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - Add custom select
from Ark UI and design recipe
- [`8b110da`](https://github.com/chakra-ui/chakra-ui/commit/8b110dafa8c3db069254ea3e01937165f5bd9321)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - Support inlining
recipe in `createRecipeContext` and `createSlotRecipeContext` for better DX
when shipping libraries based on Chakra.
This reduces the need for using the Chakra CLI to generate types for custom
components.
- [`05793a2`](https://github.com/chakra-ui/chakra-ui/commit/05793a2d15f22b7caa3fb19f93c2a6e1482e5bd0)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - - Make `gray` the
default color palette.
- Change avatar sm size to `36px` for consistency.
- Move `bg` for outline component variants.
- [`43f2c7d`](https://github.com/chakra-ui/chakra-ui/commit/43f2c7d857c8fe3cab911891200fdc75d1aa782d)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - - **CheckboxCard
[New]**
Add support for a new `CheckboxCard` component that can be used to render a
card with a checkbox.
```jsx
<CheckboxCard.Root>
<CheckboxCard.Control>
<Stack gap="0" flex="1">
<CheckboxCard.Label>Checkbox</CheckboxCard.Label>
<Text>Some description</Text>
</Stack>
<CheckboxCard.HiddenInput />
<CheckboxCard.Indicator />
</CheckboxCard.Control>
</CheckboxCard.Root>
```
- **Checkmark [New]**
Add new checkmark component for rendering a static checkmark icon with the
`checked`, `disabled`, and `indeterminate` state baked in.
```jsx
<Stack>
<Checkmark />
<Checkmark checked />
<Checkmark indeterminate />
<Checkmark disabled />
<Checkmark checked disabled />
<Checkmark indeterminate disabled />
</Stack>
```
- **EmptyState [New]**
Add new `EmptyState` component for rendering an empty state message with a
title, description, and optional action button.
```jsx
<EmptyState.Root>
<EmptyState.Content>
<EmptyState.Indicator>
<HiTemplate />
</EmptyState.Indicator>
<VStack textAlign="center">
<Text fontWeight="medium">No template found</Text>
<Text fontSize="sm" color="fg.muted">
Try creating a new template with the button below
</Text>
</VStack>
<Button variant="outline">
<HiPlus /> Create Template
</Button>
</EmptyState.Content>
</EmptyState.Root>
```
- [`e119ae9`](https://github.com/chakra-ui/chakra-ui/commit/e119ae94088a4ab84cf72559fe75621b30f9f4f7)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - Rename
`motionStyle` to `animationStyle` for better intuitiveness
- [#8575](https://github.com/chakra-ui/chakra-ui/pull/8575)
[`d4522d9`](https://github.com/chakra-ui/chakra-ui/commit/d4522d92bca44a79baa404340426b2783d283e2e)
Thanks [@isBatak](https://github.com/isBatak)! - Align theme recipe name with
panda
- [`3ccbbdf`](https://github.com/chakra-ui/chakra-ui/commit/3ccbbdff6e9c48350461358fb898ea1a8a166c08)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - Add support for
`focusRing` and `focusRingColor` style props that allow to quickly style focus
visible state of form controls.
The focus ring values can be either `extend` or `contain`
```jsx
<Box asChild focusRing="extend" focusRingColor="pink.500">
<input type="text" />
</Box>
```
- [`4ff153f`](https://github.com/chakra-ui/chakra-ui/commit/4ff153fd9b449d3e43561b7daceaadfe3c925b08)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - Speed up
intellisence for style props, and add support for `strictTokens` in the CLI.
- [`47a8a9e`](https://github.com/chakra-ui/chakra-ui/commit/47a8a9ebb3fe89d168850b501414da5e8648f5c2)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - - Add `inherit` to
Spinner recipe size
- Refactor button and link button snippets
- [`b6d1d0d`](https://github.com/chakra-ui/chakra-ui/commit/b6d1d0db60644fc43d04e6d40e86b6dba659457a)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - Simplify spinner
component to use less custom props.
- Removed `emptyColor`, prefer to use `--spinner-track-color`
- Removed `speed`, prefer to use `animationDuration`
- Removed `thickness`, prefer to use `borderWidth`
- [#8218](https://github.com/chakra-ui/chakra-ui/pull/8218)
[`a89c598`](https://github.com/chakra-ui/chakra-ui/commit/a89c598ed822bf11efc519f8789fa7c145e3bba0)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - Add support for
`_open` and `_closed` pseudo props for styling their respective selectors.
- `_open`: `&[data-state=open], &[open]`
- `_closed`: `&[data-state=closed]`
- `_groupOpen`: `[data-group][data-state=open] &`
- `_groupClosed`: `[data-group][data-state=closed] &`
Extend the existing pseudo props to support new selectors`
- `_placeholder` now supports `&[data-placeholder]`
- `_placeholderShow` now supports `&[data-placeholder-shown]`
- `_fullscreen` now supports `&[data-fullscreen]`
- `_empty` now supports `&[data-empty]`
- `_expanded` now supports `&[data-state=expanded]`
- `_checked` now supports `&[data-state-checked]`
- [#8569](https://github.com/chakra-ui/chakra-ui/pull/8569)
[`eb26857`](https://github.com/chakra-ui/chakra-ui/commit/eb2685735e25d6790d14d28653c792b9572c080e)
Thanks [@isBatak](https://github.com/isBatak)! - Fix the `boxSize` type to
allow number values.
- [`47b3b5a`](https://github.com/chakra-ui/chakra-ui/commit/47b3b5af95e711f78a5e8452cf4a8debe8e76975)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - Support array in
conditions object. This matches the API in Panda CSS and allow users to define
complex selectors like media hover queries.
- [`e4f2df0`](https://github.com/chakra-ui/chakra-ui/commit/e4f2df05a44d39cb951193cad771bc3f6f917bf2)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - Add `Prose`
component to help style markdown content.
- [`c243698`](https://github.com/chakra-ui/chakra-ui/commit/c243698a30a47c189b7d1c9903feb888055bdff5)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - - Add
referrerPolicy to Avatar component.
- Add CheckboxDescription, CheckboxCardDescription and RadioCardDescription
- Swap `muted` and `subtle` color tokens
### Patch Changes
- [`be98566`](https://github.com/chakra-ui/chakra-ui/commit/be98566181ca98871eb3e94d3fb2a9be29b73388)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - Fix checkbox and
toast on mobile
- [`c941971`](https://github.com/chakra-ui/chakra-ui/commit/c9419714db8b50b2cad3f478d90d4be4268da48f)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - - Convert `Tabs`
component to use Ark UI
- Convert `NumberInput` to use Ark UI
- [#8795](https://github.com/chakra-ui/chakra-ui/pull/8795)
[`4408573`](https://github.com/chakra-ui/chakra-ui/commit/4408573683c0f78eed28413e749701d2da937b06)
Thanks [@TylerAPfledderer](https://github.com/TylerAPfledderer)! - Adds style
prop names to `LayerStyleProperty` union type
- [`83366c4`](https://github.com/chakra-ui/chakra-ui/commit/83366c43e42d7d4d385bbb3d85051768b0e03be7)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - - Fix regression in
`mergeConfigs`
- Decompose `Field` components into smaller components, which can be
optionally used with `Field`
- `Label` which is a generic label component
- `ErrorMessage` which is a generic error message component
- `HelpText` which is a generic help text component
- **Refactor components to use Ark UI:** Avatar, Progress, CircularProgress,
PinInput
- [`0ae054d`](https://github.com/chakra-ui/chakra-ui/commit/0ae054d3745339bd7bdae83b19a7be42957f0f59)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - Fix issue where
`hideFrom` and `hideBelow` doesn't show any autocompletions
- [`0a03bcc`](https://github.com/chakra-ui/chakra-ui/commit/0a03bcc602f36b2901f53e4e03e6498d28bd8fa6)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - - Fix circular
progress element types
- Ensure consistent exports in components
- [#8617](https://github.com/chakra-ui/chakra-ui/pull/8617)
[`7e9fbf0`](https://github.com/chakra-ui/chakra-ui/commit/7e9fbf06db6286220451ba9c4d0784e4e4be3dac)
Thanks [@isBatak](https://github.com/isBatak)! - Refactor text-styles to use
tokens instead of raw values.
- [`6d4cbbe`](https://github.com/chakra-ui/chakra-ui/commit/6d4cbbef2a48cc6a62c9e5ce548fc54426b2ed62)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - Fix ES module
interop for @emotion/is-prop-value that makes Jest throw error.
- [#8857](https://github.com/chakra-ui/chakra-ui/pull/8857)
[`fdc2b9b`](https://github.com/chakra-ui/chakra-ui/commit/fdc2b9b0903dd75f0ddfe6bdf1e5a626d436f84c)
Thanks [@stevensecreti](https://github.com/stevensecreti)! - update mapObject
util to not call fn provided on nullish values
- [`788f493`](https://github.com/chakra-ui/chakra-ui/commit/788f4937e4e3d3774d260030705859eeb56242c0)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - Fix issue where
media query css order is inconsistent with v2
- [`87cf70c`](https://github.com/chakra-ui/chakra-ui/commit/87cf70cc161d1b38f44a5989a5d84867d0e7e4b1)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - Revert text recipe
to prevent color regressions
- [#8740](https://github.com/chakra-ui/chakra-ui/pull/8740)
[`d5a225f`](https://github.com/chakra-ui/chakra-ui/commit/d5a225f1bc3eca8be67a69b78429481cf802372b)
Thanks [@Pagebakers](https://github.com/Pagebakers)! - Use correct extension
for ESM exports
- [#8905](https://github.com/chakra-ui/chakra-ui/pull/8905)
[`807a581`](https://github.com/chakra-ui/chakra-ui/commit/807a581715ed44a279edb042a396fb9c971d6955)
Thanks [@stevensecreti](https://github.com/stevensecreti)! - Added transform
function to backgroundClip to appropriately handle 'text' value
- [#8739](https://github.com/chakra-ui/chakra-ui/pull/8739)
[`651561b`](https://github.com/chakra-ui/chakra-ui/commit/651561bd43dd90894203e22d36b125453016f5f3)
Thanks [@Pagebakers](https://github.com/Pagebakers)! - Added /anatomy to
exports
- [#8792](https://github.com/chakra-ui/chakra-ui/pull/8792)
[`4dd77ec`](https://github.com/chakra-ui/chakra-ui/commit/4dd77ecbcb2a993e771fab12a8eb8ca0a6eb69c7)
Thanks [@TylerAPfledderer](https://github.com/TylerAPfledderer)! - Updates the
exposed list of slot anatomy to ensure all anatomy is included for use in
type-checking extend recipe configs.
- [`bffb68f`](https://github.com/chakra-ui/chakra-ui/commit/bffb68f4fdedf4a438a0e56406315b44b98c6011)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - - **Pagination:**
Fix issue page props were not forwarded correctly.
- **PinInput:** Fix issue mask props were not forwarded correctly.
- [#8601](https://github.com/chakra-ui/chakra-ui/pull/8601)
[`1867d66`](https://github.com/chakra-ui/chakra-ui/commit/1867d6628fa83c97eba5a30c7bf4238dd2c20c09)
Thanks [@isBatak](https://github.com/isBatak)! - Fix `blur` property token
conversion to CSS variable.
- [`32a454d`](https://github.com/chakra-ui/chakra-ui/commit/32a454d0c2ffc67a9f09210d591f68b052e889e9)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - Add missing
`use client` directives to several components
- [#8854](https://github.com/chakra-ui/chakra-ui/pull/8854)
[`388716d`](https://github.com/chakra-ui/chakra-ui/commit/388716daa185a7c93d5fa5375712aa1e9b788a8d)
Thanks [@codebutler](https://github.com/codebutler)! - Fix issue where target
was not passed to link overlay
- [#8475](https://github.com/chakra-ui/chakra-ui/pull/8475)
[`9224f4e`](https://github.com/chakra-ui/chakra-ui/commit/9224f4e16299ab6eee7dbc9b1ba3bc6723f00046)
Thanks [@ryo-manba](https://github.com/ryo-manba)! - Add `aria-current`
attribute to stepper
## 3.0.0-next.32
### Minor Changes
- [`05793a2`](https://github.com/chakra-ui/chakra-ui/commit/05793a2d15f22b7caa3fb19f93c2a6e1482e5bd0)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - - Make `gray` the
default color palette.
- Change avatar sm size to `36px` for consistency.
- Move `bg` for outline component variants.
- [`c243698`](https://github.com/chakra-ui/chakra-ui/commit/c243698a30a47c189b7d1c9903feb888055bdff5)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - - Add
referrerPolicy to Avatar component.
- Add CheckboxDescription, CheckboxCardDescription and RadioCardDescription
- Swap `muted` and `subtle` color tokens
## 3.0.0-next.31
### Minor Changes
- [`47a8a9e`](https://github.com/chakra-ui/chakra-ui/commit/47a8a9ebb3fe89d168850b501414da5e8648f5c2)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - - Add `inherit` to
Spinner recipe size
- Refactor button and link button snippets
## 3.0.0-next.30
### Minor Changes
- [`1738b90`](https://github.com/chakra-ui/chakra-ui/commit/1738b901122932b664f6a4c06701cfab4c00afd2)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - - Icon: Set
`asChild` to `true` by default to reduce repetition
- All components
- Ensure consistent sizing convention (units of 4px). Smaller elements start
at 20px, larger elements start at 40px
- Ensure focus ring matches the colorPalette
- Input, Textarea: Rename `filled` variant to `subtle`
- Tags: Add new `Tag.StartElement` and `Tag.EndElement` components to allow
for easier styling of the start and end elements
## 3.0.0-next.29
### Minor Changes
- [`c2f45ca`](https://github.com/chakra-ui/chakra-ui/commit/c2f45cac80ab9431dd416fe4405bd9252f401b9f)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - Rename
`Fieldset.Control` to `Fieldset.Content`
### Patch Changes
- [#8905](https://github.com/chakra-ui/chakra-ui/pull/8905)
[`807a581`](https://github.com/chakra-ui/chakra-ui/commit/807a581715ed44a279edb042a396fb9c971d6955)
Thanks [@stevensecreti](https://github.com/stevensecreti)! - Added transform
function to backgroundClip to appropriately handle 'text' value
## 3.0.0-next.28
### Minor Changes
- [`47b3b5a`](https://github.com/chakra-ui/chakra-ui/commit/47b3b5af95e711f78a5e8452cf4a8debe8e76975)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - Support array in
conditions object. This matches the API in Panda CSS and allow users to define
complex selectors like media hover queries.
## 3.0.0-next.27
### Minor Changes
- [`5093e18`](https://github.com/chakra-ui/chakra-ui/commit/5093e186a94f9c73452dd346fcf8becb57c21140)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - Add cursor pointer
to button
- [`945a777`](https://github.com/chakra-ui/chakra-ui/commit/945a7774ad138a9b77a36ef46fdbb501addfe1db)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - BREAKING: Integrate
Ark v4. This mostly affects the custom select component that requires the use
of `createListCollection` now.
- [`c26acf0`](https://github.com/chakra-ui/chakra-ui/commit/c26acf01608ad8ef1b4bb7547c97fa111026ecf7)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - Add support for
cursor token type
### Patch Changes
- [#8857](https://github.com/chakra-ui/chakra-ui/pull/8857)
[`fdc2b9b`](https://github.com/chakra-ui/chakra-ui/commit/fdc2b9b0903dd75f0ddfe6bdf1e5a626d436f84c)
Thanks [@stevensecreti](https://github.com/stevensecreti)! - update mapObject
util to not call fn provided on nullish values
- [#8854](https://github.com/chakra-ui/chakra-ui/pull/8854)
[`388716d`](https://github.com/chakra-ui/chakra-ui/commit/388716daa185a7c93d5fa5375712aa1e9b788a8d)
Thanks [@codebutler](https://github.com/codebutler)! - Fix issue where target
was not passed to link overlay
## 3.0.0-next.26
### Patch Changes
- [`6d4cbbe`](https://github.com/chakra-ui/chakra-ui/commit/6d4cbbef2a48cc6a62c9e5ce548fc54426b2ed62)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - Fix ES module
interop for @emotion/is-prop-value that makes Jest throw error.
## 3.0.0-next.25
### Patch Changes
- [`788f493`](https://github.com/chakra-ui/chakra-ui/commit/788f4937e4e3d3774d260030705859eeb56242c0)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - Fix issue where
media query css order is inconsistent with v2
## 3.0.0-next.24
### Major Changes
- [#8815](https://github.com/chakra-ui/chakra-ui/pull/8815)
[`806be96`](https://github.com/chakra-ui/chakra-ui/commit/806be96aa3be56399af7fb697bbbb92b2533fffd)
Thanks [@isBatak](https://github.com/isBatak)! - Remove the `@chakra-ui/hooks`
package in favour of using dedicated, robust libraries like `react-use` and
`usehooks-ts`
## 3.0.0-next.23
### Minor Changes
- [`edec8f7`](https://github.com/chakra-ui/chakra-ui/commit/edec8f79a7e444987a0de0fb43171636d14a6b35)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - Add clipboard
composition
### Patch Changes
- Updated dependencies []:
- @chakra-ui/hooks@3.0.0-next.23
- @chakra-ui/utils@3.0.0-next.23
## 3.0.0-next.22
### Minor Changes
- [`55c0839`](https://github.com/chakra-ui/chakra-ui/commit/55c08393b46e07c0f229ccd0e448863e2daf3ccf)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - Move the `Prose`
component to snippets so it can be customized by the user.
### Patch Changes
- [`be98566`](https://github.com/chakra-ui/chakra-ui/commit/be98566181ca98871eb3e94d3fb2a9be29b73388)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - Fix checkbox and
toast on mobile
- Updated dependencies []:
- @chakra-ui/hooks@3.0.0-next.22
- @chakra-ui/utils@3.0.0-next.22
## 3.0.0-next.21
### Minor Changes
- [`192c6b1`](https://github.com/chakra-ui/chakra-ui/commit/192c6b1c0981b9bbb147fda4ad2dd288c624c78c)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - Add new fieldset
component
### Patch Changes
- [#8795](https://github.com/chakra-ui/chakra-ui/pull/8795)
[`4408573`](https://github.com/chakra-ui/chakra-ui/commit/4408573683c0f78eed28413e749701d2da937b06)
Thanks [@TylerAPfledderer](https://github.com/TylerAPfledderer)! - Adds style
prop names to `LayerStyleProperty` union type
- [#8792](https://github.com/chakra-ui/chakra-ui/pull/8792)
[`4dd77ec`](https://github.com/chakra-ui/chakra-ui/commit/4dd77ecbcb2a993e771fab12a8eb8ca0a6eb69c7)
Thanks [@TylerAPfledderer](https://github.com/TylerAPfledderer)! - Updates the
exposed list of slot anatomy to ensure all anatomy is included for use in
type-checking extend recipe configs.
- Updated dependencies []:
- @chakra-ui/hooks@3.0.0-next.21
- @chakra-ui/utils@3.0.0-next.21
## 3.0.0-next.20
### Patch Changes
- Updated dependencies []:
- @chakra-ui/hooks@3.0.0-next.20
- @chakra-ui/utils@3.0.0-next.20
## 3.0.0-next.19
### Minor Changes
- [`4c6838c`](https://github.com/chakra-ui/chakra-ui/commit/4c6838c5e6c262da6b573c8576595bb8cedc5452)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - - Rename `onLabel`
and `offLabel` to `trackLabel`
- Add support for `thumbLabel` prop for rendering an icon within thumb
- [`f4762bf`](https://github.com/chakra-ui/chakra-ui/commit/f4762bf087a8aac240c83093adde0f84e37a0456)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - Add support for
merging multiple system configs into one within `createSystem`
Before:
```tsx
const config = mergeConfigs(defaultConfig, customConfig)
export const system = createSystem(config)
```
After:
```tsx
const system = createSystem(defaultConfig, customConfig)
```
### Patch Changes
- Updated dependencies []:
- @chakra-ui/hooks@3.0.0-next.19
- @chakra-ui/utils@3.0.0-next.19
## 3.0.0-next.18
### Patch Changes
- Updated dependencies []:
- @chakra-ui/hooks@3.0.0-next.18
- @chakra-ui/utils@3.0.0-next.18
## 3.0.0-next.17
### Minor Changes
- [`e9a1537`](https://github.com/chakra-ui/chakra-ui/commit/e9a1537579e80071cc00722a5f707768524f675c)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - BREAKING: Change
signature of `useRecipe`, `useSlotRecipe`, `createSlotRecipeContext`
### createSlotRecipeContext
Before:
```tsx
const { withProvider, withContext } = createSlotRecipeContext("accordion")
```
After:
```tsx
const { withProvider, withContext } = createSlotRecipeContext({
key: "accordion",
})
```
### useSlotRecipe
Before:
```tsx
const recipe = useSlotRecipe("accordion")
```
After:
```tsx
const recipe = useSlotRecipe({ key: "accordion" })
```
- [`8b110da`](https://github.com/chakra-ui/chakra-ui/commit/8b110dafa8c3db069254ea3e01937165f5bd9321)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - Support inlining
recipe in `createRecipeContext` and `createSlotRecipeContext` for better DX
when shipping libraries based on Chakra.
This reduces the need for using the Chakra CLI to generate types for custom
components.
### Patch Changes
- Updated dependencies []:
- @chakra-ui/hooks@3.0.0-next.17
- @chakra-ui/utils@3.0.0-next.17
## 3.0.0-next.16
### Patch Changes
- [#8740](https://github.com/chakra-ui/chakra-ui/pull/8740)
[`d5a225f`](https://github.com/chakra-ui/chakra-ui/commit/d5a225f1bc3eca8be67a69b78429481cf802372b)
Thanks [@Pagebakers](https://github.com/Pagebakers)! - Use correct extension
for ESM exports
- [#8739](https://github.com/chakra-ui/chakra-ui/pull/8739)
[`651561b`](https://github.com/chakra-ui/chakra-ui/commit/651561bd43dd90894203e22d36b125453016f5f3)
Thanks [@Pagebakers](https://github.com/Pagebakers)! - Added /anatomy to
exports
- Updated dependencies
[[`d5a225f`](https://github.com/chakra-ui/chakra-ui/commit/d5a225f1bc3eca8be67a69b78429481cf802372b)]:
- @chakra-ui/hooks@3.0.0-next.16
- @chakra-ui/utils@3.0.0-next.16
## 3.0.0-next.15
### Minor Changes
- [`e119ae9`](https://github.com/chakra-ui/chakra-ui/commit/e119ae94088a4ab84cf72559fe75621b30f9f4f7)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - Rename
`motionStyle` to `animationStyle` for better intuitiveness
### Patch Changes
- [`87cf70c`](https://github.com/chakra-ui/chakra-ui/commit/87cf70cc161d1b38f44a5989a5d84867d0e7e4b1)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - Revert text recipe
to prevent color regressions
- Updated dependencies []:
- @chakra-ui/hooks@3.0.0-next.15
- @chakra-ui/utils@3.0.0-next.15
## 3.0.0-next.14
### Minor Changes
- [`3908155`](https://github.com/chakra-ui/chakra-ui/commit/3908155e291b14468c12711abc9e45e94c904358)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - Rename
`createStyleContext` to `createSlotRecipeContext`
- [`952647a`](https://github.com/chakra-ui/chakra-ui/commit/952647a1767df596d08f91fd3b50c28e8edc22e7)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - Add `CardTitle` and
`CardDescription` components
- [`b6d1d0d`](https://github.com/chakra-ui/chakra-ui/commit/b6d1d0db60644fc43d04e6d40e86b6dba659457a)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - Simplify spinner
component to use less custom props.
- Removed `emptyColor`, prefer to use `--spinner-track-color`
- Removed `speed`, prefer to use `animationDuration`
- Removed `thickness`, prefer to use `borderWidth`
### Patch Changes
- Updated dependencies []:
- @chakra-ui/hooks@3.0.0-next.14
- @chakra-ui/utils@3.0.0-next.14
## 3.0.0-next.13
### Minor Changes
- [`3fc49ca`](https://github.com/chakra-ui/chakra-ui/commit/3fc49ca37df42e793d84afd4bc857c568e2e8b5a)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - Add support for
`FormatNumber` and `FormatByte` components
### Patch Changes
- [`bffb68f`](https://github.com/chakra-ui/chakra-ui/commit/bffb68f4fdedf4a438a0e56406315b44b98c6011)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - - **Pagination:**
Fix issue page props were not forwarded correctly.
- **PinInput:** Fix issue mask props were not forwarded correctly.
- Updated dependencies []:
- @chakra-ui/hooks@3.0.0-next.13
- @chakra-ui/utils@3.0.0-next.13
## 3.0.0-next.12
### Patch Changes
- [`0ae054d`](https://github.com/chakra-ui/chakra-ui/commit/0ae054d3745339bd7bdae83b19a7be42957f0f59)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - Fix issue where
`hideFrom` and `hideBelow` doesn't show any autocompletions
- Updated dependencies []:
- @chakra-ui/hooks@3.0.0-next.12
- @chakra-ui/utils@3.0.0-next.12
## 3.0.0-next.11
### Minor Changes
- [`e77a9b8`](https://github.com/chakra-ui/chakra-ui/commit/e77a9b81ecd765d0b0963e5f847a867dfd506363)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - - Add new Timeline
component to presenting chronological information or activities.
- Trim generated `className` in the DOM.
- Add `neutral` status to `Alert` component
### Patch Changes
- Updated dependencies []:
- @chakra-ui/hooks@3.0.0-next.11
- @chakra-ui/utils@3.0.0-next.11
## 3.0.0-next.10
### Patch Changes
- Updated dependencies []:
- @chakra-ui/hooks@3.0.0-next.10
- @chakra-ui/utils@3.0.0-next.10
## 3.0.0-next.9
### Minor Changes
- [`3ccbbdf`](https://github.com/chakra-ui/chakra-ui/commit/3ccbbdff6e9c48350461358fb898ea1a8a166c08)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - ### Motion Styles
Add support for `motionStyle` props.
The idea is to pair them with text styles and layer styles to create this
three-part mixin that can make your styles a lot cleaner.
Motion styles focus solely on animations, allowing you to orchestrate
animation properties.
```jsx
import { defineMotionStyles } from "@chakra-ui/react"
export const motionStyles = defineMotionStyles({
"slide-fade-in": {
value: {
transformOrigin: "var(--transform-origin)",
animationDuration: "fast",
"&[data-placement^=top]": {
animationName: "slide-from-top, fade-in",
},
"&[data-placement^=bottom]": {
animationName: "slide-from-bottom, fade-in",
},
"&[data-placement^=left]": {
animationName: "slide-from-left, fade-in",
},
"&[data-placement^=right]": {
animationName: "slide-from-right, fade-in",
},
},
},
})
```
### Built-in Keyframe Animations
Chakra new provides built-in keyframe animations that you can use to create
your own motion styles.
**Slide:** `slide-from-top`, `slide-from-bottom`, `slide-from-left`,
`slide-from-right`, `slide-to-top`, `slide-to-bottom`, `slide-to-left`,
`slide-to-right`
**Slide Full:** `slide-from-top-full`, `slide-from-bottom-full`,
`slide-from-left-full`, `slide-from-right-full`, `slide-to-top-full`,
`slide-to-bottom-full`, `slide-to-left-full`, `slide-to-right-full`
**Fade:** `fade-in`, `fade-out`
**Scale:** `scale-in`, `scale-out`
You can compose these animations using the `animationName` property in your
motion styles to create really cool animations. No JS required.
```jsx
<Box animationName="slide-from-top, fade-in" animationDuration="fast">
Slide from top and fade in
</Box>
```
- [`3ccbbdf`](https://github.com/chakra-ui/chakra-ui/commit/3ccbbdff6e9c48350461358fb898ea1a8a166c08)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - Add support for
built-in layer styles to help prototype faster with automatic dark mode.
Paired with `colorPalette`, you can create beautiful designs with little code
that adapts to dark mode automatically.
**Fill Layer Styles:** `fill.muted`, `fill.solid`, `fill.surface`
```jsx
<Box layerStyle="fill.muted" colorPalette="red">
This is a subtle fill layer
</Box>
```
**Border Layer Styles:** `outline.muted`, `outline.solid`
```jsx
<Box layerStyle="outline.muted" colorPalette="red">
This is a subtle outline layer
</Box>
```
**Indicator Styles**: `indicator.top`, `indicator.end`, `indicator.bottom`,
`indicator.start`
```jsx
<Box layerStyle="indicator.top" colorPalette="red">
This is a top indicator layer
</Box>
```
**Disabled Styles:** `disabled`
```jsx
<Box _disabled={{ layerStyle: "disabled" }}>Disabled Button</Box>
```
You can combine these layer styles to create very complex designs with little
code.
```jsx
<Box
layerStyle="fill.muted"
_hover={{ layerStyle: "outline.solid" }}
colorPalette="red"
>
This is a complex layer
</Box>
```
- [`c654ee3`](https://github.com/chakra-ui/chakra-ui/commit/c654ee31fff590be2ec132a30deb2be399af7035)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - Improve performance
of styled components to avoid unneeded re-renders.
- [`3ccbbdf`](https://github.com/chakra-ui/chakra-ui/commit/3ccbbdff6e9c48350461358fb898ea1a8a166c08)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - Redesign `Stepper`
component. It's now called `Steps` and manages the state internally, no need
to use `useSteps` anymore.
We've also improved the accessibility of the component by leveraging the tabs
pattern and adding the required ARIA attributes.
```tsx
<Steps.Root defaultIndex={0} count={2}>
<Steps.List>
<Steps.Item index={0}>
<Steps.Trigger>
<Steps.Title>Step 1</Steps.Title>
</Steps.Trigger>
<Steps.Separator />
</Steps.Item>
<Steps.Item index={1}>
<Steps.Trigger>
<Steps.Title>Step 2</Steps.Title>
</Steps.Trigger>
<Steps.Separator />
</Steps.Item>
</Steps.List>
<Steps.Content index={0}>Step 1</Steps.Content>
<Steps.Content index={1}>Step 2</Steps.Content>
<Steps.CompleteContent>Complete</Steps.CompleteContent>
</Steps.Root>
```
Using the CLI, you can also scaffold an already composed stepper component
```sh
chakra composition add steps
```
- [`3ccbbdf`](https://github.com/chakra-ui/chakra-ui/commit/3ccbbdff6e9c48350461358fb898ea1a8a166c08)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - Add support for
`focusRing` and `focusRingColor` style props that allow to quickly style focus
visible state of form controls.
The focus ring values can be either `extend` or `contain`
```jsx
<Box asChild focusRing="extend" focusRingColor="pink.500">
<input type="text" />
</Box>
```
### Patch Changes
- [`0a03bcc`](https://github.com/chakra-ui/chakra-ui/commit/0a03bcc602f36b2901f53e4e03e6498d28bd8fa6)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - - Fix circular
progress element types
- Ensure consistent exports in components
- [#8617](https://github.com/chakra-ui/chakra-ui/pull/8617)
[`7e9fbf0`](https://github.com/chakra-ui/chakra-ui/commit/7e9fbf06db6286220451ba9c4d0784e4e4be3dac)
Thanks [@isBatak](https://github.com/isBatak)! - Refactor text-styles to use
tokens instead of raw values.
- [#8601](https://github.com/chakra-ui/chakra-ui/pull/8601)
[`1867d66`](https://github.com/chakra-ui/chakra-ui/commit/1867d6628fa83c97eba5a30c7bf4238dd2c20c09)
Thanks [@isBatak](https://github.com/isBatak)! - Fix `blur` property token
conversion to CSS variable.
- Updated dependencies []:
- @chakra-ui/hooks@3.0.0-next.9
- @chakra-ui/utils@3.0.0-next.9
## 3.0.0-next.8
### Patch Changes
- [`32a454d`](https://github.com/chakra-ui/chakra-ui/commit/32a454d0c2ffc67a9f09210d591f68b052e889e9)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - Add missing
`use client` directives to several components
- Updated dependencies []:
- @chakra-ui/hooks@3.0.0-next.8
- @chakra-ui/utils@3.0.0-next.8
## 3.0.0-next.7
### Minor Changes
- [`4ff153f`](https://github.com/chakra-ui/chakra-ui/commit/4ff153fd9b449d3e43561b7daceaadfe3c925b08)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - Speed up
intellisence for style props, and add support for `strictTokens` in the CLI.
### Patch Changes
- Updated dependencies []:
- @chakra-ui/hooks@3.0.0-next.7
- @chakra-ui/utils@3.0.0-next.7
## 3.0.0-next.6
### Minor Changes
- [`925cfd9`](https://github.com/chakra-ui/chakra-ui/commit/925cfd99ce0a09c4145b81c17605e882c4aa1840)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - Add ActionBar,
Status, Rating, Pagination components
### Patch Changes
- Updated dependencies []:
- @chakra-ui/hooks@3.0.0-next.6
- @chakra-ui/utils@3.0.0-next.6
## 3.0.0-next.5
### Minor Changes
- [`07b04b1`](https://github.com/chakra-ui/chakra-ui/commit/07b04b1c506995f6f276f5f80a93d09d89b92fce)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - - **[NEW]:** Add
`RatingGroup`, `SegmentControl`
- **[NEW]:** Add `EmptyState` component for empty states
- **[NEW]:** Add `RadioCard` and `CheckboxCard` components for card-based
selection
- [#8568](https://github.com/chakra-ui/chakra-ui/pull/8568)
[`5fd993b`](https://github.com/chakra-ui/chakra-ui/commit/5fd993bfbfd82f340646b3aa55fccc4d633834a7)
Thanks [@isBatak](https://github.com/isBatak)! - Add Collapsible recipe with
default open/close animation
- [`43f2c7d`](https://github.com/chakra-ui/chakra-ui/commit/43f2c7d857c8fe3cab911891200fdc75d1aa782d)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - - **CheckboxCard
[New]**
Add support for a new `CheckboxCard` component that can be used to render a
card with a checkbox.
```jsx
<CheckboxCard.Root>
<CheckboxCard.Control>
<Stack gap="0" flex="1">
<CheckboxCard.Label>Checkbox</CheckboxCard.Label>
<Text>Some description</Text>
</Stack>
<CheckboxCard.HiddenInput />
<CheckboxCard.Indicator />
</CheckboxCard.Control>
</CheckboxCard.Root>
```
- **Checkmark [New]**
Add new checkmark component for rendering a static checkmark icon with the
`checked`, `disabled`, and `indeterminate` state baked in.
```jsx
<Stack>
<Checkmark />
<Checkmark checked />
<Checkmark indeterminate />
<Checkmark disabled />
<Checkmark checked disabled />
<Checkmark indeterminate disabled />
</Stack>
```
- **EmptyState [New]**
Add new `EmptyState` component for rendering an empty state message with a
title, description, and optional action button.
```jsx
<EmptyState.Root>
<EmptyState.Content>
<EmptyState.Indicator>
<HiTemplate />
</EmptyState.Indicator>
<VStack textAlign="center">
<Text fontWeight="medium">No template found</Text>
<Text fontSize="sm" color="fg.muted">
Try creating a new template with the button below
</Text>
</VStack>
<Button variant="outline">
<HiPlus /> Create Template
</Button>
</EmptyState.Content>
</EmptyState.Root>
```
- [#8575](https://github.com/chakra-ui/chakra-ui/pull/8575)
[`d4522d9`](https://github.com/chakra-ui/chakra-ui/commit/d4522d92bca44a79baa404340426b2783d283e2e)
Thanks [@isBatak](https://github.com/isBatak)! - Align theme recipe name with
panda
- [#8569](https://github.com/chakra-ui/chakra-ui/pull/8569)
[`eb26857`](https://github.com/chakra-ui/chakra-ui/commit/eb2685735e25d6790d14d28653c792b9572c080e)
Thanks [@isBatak](https://github.com/isBatak)! - Fix the `boxSize` type to
allow number values.
### Patch Changes
- Updated dependencies []:
- @chakra-ui/hooks@3.0.0-next.5
- @chakra-ui/utils@3.0.0-next.5
## 3.0.0-next.4
### Minor Changes
- [`e4f2df0`](https://github.com/chakra-ui/chakra-ui/commit/e4f2df05a44d39cb951193cad771bc3f6f917bf2)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - Add `Prose`
component to help style markdown content.
### Patch Changes
- [#8475](https://github.com/chakra-ui/chakra-ui/pull/8475)
[`9224f4e`](https://github.com/chakra-ui/chakra-ui/commit/9224f4e16299ab6eee7dbc9b1ba3bc6723f00046)
Thanks [@ryo-manba](https://github.com/ryo-manba)! - Add aria-current
attribute to stepper
- Updated dependencies []:
- @chakra-ui/hooks@3.0.0-next.4
- @chakra-ui/utils@3.0.0-next.4
## 3.0.0-next.3
### Minor Changes
- [`de9c0a0`](https://github.com/chakra-ui/chakra-ui/commit/de9c0a0d78f70db1fb246ea8ec377e57e10919e7)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - Add `DataList`
component
- [`763329e`](https://github.com/chakra-ui/chakra-ui/commit/763329ebdca2a9d4b7295d94fff3d2265a793c99)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - Add preset and
preset-base entrypoints.
- The `preset` entrypoint exposes the default theme and recipes for Chakra.
- The `preset-base` entrypoint exposes the base utilities and conditions used
internally.
### Patch Changes
- Updated dependencies []:
- @chakra-ui/hooks@3.0.0-next.3
- @chakra-ui/utils@3.0.0-next.3
## 3.0.0-next.2
### Patch Changes
- [`83366c4`](https://github.com/chakra-ui/chakra-ui/commit/83366c43e42d7d4d385bbb3d85051768b0e03be7)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - - Fix regression in
`mergeConfigs`
- Decompose `Field` component
- Refactor `Avatar` to use Ark UI
- Refactor `Progress` to use Ark UI
- Updated dependencies []:
- @chakra-ui/hooks@3.0.0-next.2
- @chakra-ui/utils@3.0.0-next.2
## 3.0.0-next.1
### Minor Changes
- [`548470d`](https://github.com/chakra-ui/chakra-ui/commit/548470dd4306dd39d76555e172da64fd1861fdc5)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - Add custom select
from Ark UI and design recipe
### Patch Changes
- [`c941971`](https://github.com/chakra-ui/chakra-ui/commit/c9419714db8b50b2cad3f478d90d4be4268da48f)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - Convert Tabs
component to use Ark UI
- Updated dependencies []:
- @chakra-ui/hooks@3.0.0-next.1
- @chakra-ui/utils@3.0.0-next.1
## 3.0.0-next.0
### Major Changes
- [#8153](https://github.com/chakra-ui/chakra-ui/pull/8153)
[`7b6e66a`](https://github.com/chakra-ui/chakra-ui/commit/7b6e66a15b08ad27e8458a009c3fb15ee738ca37)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - Prepares the ground
for the next version Chakra that leverages Ark UI.
**User Facing**
- Consolidate all component packages into a single package
- Remove all deprecated components and APIs
- Simplify the Changelogs for all v2 releases
**Infrastructure**
- Simplify the repo infrastructure and release process
- Migrate from `jest` to `vitest`
- Migrate from `tsup` to custom `rollup` setup for better bundling strategy
### Minor Changes
- [#8121](https://github.com/chakra-ui/chakra-ui/pull/8121)
[`170198f`](https://github.com/chakra-ui/chakra-ui/commit/170198fc3936ad34f8136a2da173c12d9dc3dc36)
Thanks [@kkieninger](https://github.com/kkieninger)! - ### Fixed
- Fix hard-coded z-index for Menu in favor of one defined from the theme
- Fix problem with leading and trailing spaces when getting initials for the
Avatar component
- Suppress unnecessary re-renders of Checkbox and Radio component
### Added
- Add CSS `accentColor` property to style props
- Add support for `asChild` in chakra factory
- Export `toastStore` from `toast` component
- Upgrade `framer-motion` to allow for skipAnimations
- Add component namespace to reduce imports and provide better composition
- Modal, Drawer: Add default `preserveScrollBarGap`
### Changed
Redesign the component themes and anatomy
- [#8393](https://github.com/chakra-ui/chakra-ui/pull/8393)
[`623e558`](https://github.com/chakra-ui/chakra-ui/commit/623e558ac22f84e6250387d0971aafe9713667a6)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - - Integrate Ark UI
components to reduce maintenance surface.
- Add `FileUpload` component
- Remove `trigger=hover` in favor of `HoverCard`
- Replace `Tooltip`, `Popover` and `HoverCard` with those from Ark UI
- [#8218](https://github.com/chakra-ui/chakra-ui/pull/8218)
[`a89c598`](https://github.com/chakra-ui/chakra-ui/commit/a89c598ed822bf11efc519f8789fa7c145e3bba0)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - Add support for
custom theme conditions or pseudo props via `theme.conditions`
```ts
// theme.ts
const theme = extendTheme({
conditions: {
_closed: "[data-state='closed']", // pseudo prop
},
})
```
This allows you to use the pseudo prop in your components
```jsx
<Box data-state="closed" _closed={{ bg: "red.200" }}>
This box is closed
</Box>
```
**For TypeScript users**, you need to use the Chakra CLI to generate the types
for your custom conditions.
```sh
pnpm chakra-cli tokens src/theme/index.ts
```
- [#8218](https://github.com/chakra-ui/chakra-ui/pull/8218)
[`a89c598`](https://github.com/chakra-ui/chakra-ui/commit/a89c598ed822bf11efc519f8789fa7c145e3bba0)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - Add support for
`_open` and `_closed` pseudo props for styling their respective selectors.
- `_open`: `&[data-state=open], &[open]`
- `_closed`: `&[data-state=closed]`
- `_groupOpen`: `[data-group][data-state=open] &`
- `_groupClosed`: `[data-group][data-state=closed] &`
Extend the existing pseudo props to support new selectors`
- `_placeholder` now supports `&[data-placeholder]`
- `_placeholderShow` now supports `&[data-placeholder-shown]`
- `_fullscreen` now supports `&[data-fullscreen]`
- `_empty` now supports `&[data-empty]`
- `_expanded` now supports `&[data-state=expanded]`
- `_checked` now supports `&[data-state-checked]`
### Patch Changes
- Updated dependencies []:
- @chakra-ui/hooks@3.0.0-next.0
- @chakra-ui/utils@3.0.0-next.0
|