diff --git a/.changeset/pre.json b/.changeset/pre.json index e82f465821d..be9b5b2c87f 100644 --- a/.changeset/pre.json +++ b/.changeset/pre.json @@ -9,10 +9,13 @@ "postcss-preset-primer": "0.0.0", "@primer/react": "37.31.0", "rollup-plugin-import-css": "0.0.0", - "@primer/styled-react": "0.1.0" + "@primer/styled-react": "0.1.0", + "@primer/doc-gen": "0.0.1" }, "changesets": [ "afraid-eyes-serve", + "afraid-teams-throw", + "angry-guests-listen", "beige-plums-obey", "beige-shrimps-sleep", "better-coins-dream", @@ -20,6 +23,7 @@ "bright-dolls-dance", "bright-parents-flow", "busy-bananas-smash", + "chilled-spoons-roll", "chilly-dingos-build", "chilly-lemons-promise", "chubby-buses-greet", @@ -33,19 +37,25 @@ "deprecate-textinputwithtokens", "dirty-chairs-invent", "eighty-queens-tap", + "eleven-cameras-hammer", + "fair-bars-smile", "fair-flowers-share", "fair-views-laugh", "famous-jobs-applaud", "few-mails-sing", "fifty-walls-yawn", "five-squids-sin", + "flat-llamas-beam", "fresh-points-cover", + "fruity-monkeys-cover", "gentle-rockets-go", "gentle-sheep-feel", "giant-impalas-occur", "gold-dingos-sneeze", + "gold-geckos-send", "good-snakes-fix", "great-hats-serve", + "grumpy-lobsters-obey", "hot-bears-cry", "hot-melons-jump", "hot-mirrors-feel", @@ -54,10 +64,12 @@ "lazy-elephants-shave", "lazy-gifts-join", "lemon-jokes-camp", + "lemon-onions-teach", "light-colts-burn", "light-schools-wish", "little-peas-mix", "lovely-vans-burn", + "lucky-walls-jog", "lucky-wasps-nail", "metal-badgers-joke", "metal-cups-peel", @@ -76,6 +88,10 @@ "pretty-women-sing", "proud-chairs-study", "purple-waves-pay", + "quick-queens-rescue", + "rare-otters-deliver", + "real-cooks-melt", + "replace-usetheme-with-theme", "rich-walls-fold", "rotten-carpets-raise", "rude-cycles-scream", @@ -93,8 +109,10 @@ "silly-parks-give", "slick-months-cry", "slimy-parrots-love", + "smart-hornets-happen", "smooth-singers-thank", "soft-islands-warn", + "spicy-items-watch", "spotty-colts-hear", "stale-avocados-enjoy", "stale-wasps-smell", @@ -102,11 +120,14 @@ "strange-peas-kiss", "strong-falcons-design", "strong-lions-tan", + "styled-react-themeprovider", "sweet-islands-sleep", "sweet-owls-do", "sweet-results-smell", "tame-ducks-ring", + "tame-eggs-taste", "tasty-cheetahs-pay", + "tasty-suns-behave", "ten-jobs-attack", "tender-dodos-create", "thin-oranges-lick", @@ -114,8 +135,10 @@ "three-vans-join", "tricky-boats-visit", "tricky-eggs-cross", + "tricky-plums-smoke", "twelve-sloths-flow", "twenty-baboons-pull", + "two-pots-battle", "unlucky-hotels-shake", "upset-flowers-yawn", "weak-papers-drive", diff --git a/examples/codesandbox/package.json b/examples/codesandbox/package.json index 41bd4282611..2e9155c77eb 100644 --- a/examples/codesandbox/package.json +++ b/examples/codesandbox/package.json @@ -17,7 +17,7 @@ "@types/react": "^18.3.11", "@types/react-dom": "^18.3.0", "@vitejs/plugin-react": "^4.3.3", - "@primer/react": "38.0.0-rc.6", + "@primer/react": "38.0.0-rc.7", "styled-components": "5.x", "typescript": "^5.9.2", "vite": "^7.1.5" diff --git a/examples/nextjs/package.json b/examples/nextjs/package.json index e38c6799d5b..40fe91f2445 100644 --- a/examples/nextjs/package.json +++ b/examples/nextjs/package.json @@ -10,8 +10,8 @@ "type-check": "tsc --noEmit" }, "dependencies": { - "@primer/react": "38.0.0-rc.6", - "@primer/styled-react": "1.0.0-rc.7", + "@primer/react": "38.0.0-rc.7", + "@primer/styled-react": "1.0.0-rc.8", "next": "^15.2.3", "react": "18.3.1", "react-dom": "18.3.1", diff --git a/examples/theming/package.json b/examples/theming/package.json index 1a025b7d01d..00fecb66a3c 100644 --- a/examples/theming/package.json +++ b/examples/theming/package.json @@ -11,7 +11,7 @@ }, "dependencies": { "@primer/octicons-react": "^19.14.0", - "@primer/react": "38.0.0-rc.6", + "@primer/react": "38.0.0-rc.7", "clsx": "^2.1.1", "next": "^15.2.3", "react": "18.3.1", diff --git a/packages/mcp/CHANGELOG.md b/packages/mcp/CHANGELOG.md index 5ab8d4201f6..06164274817 100644 --- a/packages/mcp/CHANGELOG.md +++ b/packages/mcp/CHANGELOG.md @@ -1,5 +1,14 @@ # @primer/mcp +## 0.0.6-rc.0 + +### Patch Changes + +- [#6969](https://github.com/primer/react/pull/6969) [`553c1a0`](https://github.com/primer/react/commit/553c1a0f82450757100800b252c1cae831864aec) Thanks [@kendallgassner](https://github.com/kendallgassner)! - Update MCP tool descriptions to improve usage. + +- Updated dependencies [[`446956d`](https://github.com/primer/react/commit/446956d3466ca11b95adf720d7cf07a1bb6bad92), [`701a9d0`](https://github.com/primer/react/commit/701a9d02cc5958bdeb12d63bbc169c5d40bd26e6), [`f61238c`](https://github.com/primer/react/commit/f61238c295377f59a5d3c5b0c782e98c238fa639), [`c58f171`](https://github.com/primer/react/commit/c58f171be98dfec354eeb85c870368e84796fe6e), [`c395547`](https://github.com/primer/react/commit/c395547ae30bb51ea40388183f384848a397dc80), [`260c74c`](https://github.com/primer/react/commit/260c74c4e9f780a891157c9a2bc1450a12f8593a), [`3ced917`](https://github.com/primer/react/commit/3ced917f595667e1f68a6b9110bd034e0d88bf2a), [`2703bc9`](https://github.com/primer/react/commit/2703bc9cad2d3f16552b748f3799949a35464a1a), [`76f1ca3`](https://github.com/primer/react/commit/76f1ca32a9303b18a2084c4e11c4699963b88e4e), [`2ec5bf2`](https://github.com/primer/react/commit/2ec5bf2898a6966161a076f5896910bf1b1f4018), [`173f76d`](https://github.com/primer/react/commit/173f76d917a688515ae36f2240bf5461db5eda0c), [`7dd483f`](https://github.com/primer/react/commit/7dd483f74e2a75e5c0a44f46a860afc2bdf0da9a), [`c1448cc`](https://github.com/primer/react/commit/c1448cc6546b0e58b1ceb54fa2989a1fd7cbfe30), [`8641c7a`](https://github.com/primer/react/commit/8641c7a778f88c9f65fa1f3d2c40994468651ae7), [`ecc81b5`](https://github.com/primer/react/commit/ecc81b569b421a4181b0a2f4cdff9cfe60fe28fd), [`3032026`](https://github.com/primer/react/commit/30320263482baf9d2c634ec27122c9a42ece308a), [`1c84c0f`](https://github.com/primer/react/commit/1c84c0ff2b261a02d81c11fb16c7d3fb05294506), [`62df166`](https://github.com/primer/react/commit/62df166574d6248b3405c224a2f63f1e53a75ece), [`32e12c6`](https://github.com/primer/react/commit/32e12c690a53aef918e765d128f381c8f57bfd02)]: + - @primer/react@38.0.0-rc.7 + ## 0.0.5 ### Patch Changes diff --git a/packages/mcp/package.json b/packages/mcp/package.json index aa606f49a6f..7ec70842d11 100644 --- a/packages/mcp/package.json +++ b/packages/mcp/package.json @@ -2,7 +2,7 @@ "name": "@primer/mcp", "private": true, "description": "An MCP server that connects AI tools to the Primer Design System", - "version": "0.0.5", + "version": "0.0.6-rc.0", "type": "module", "bin": { "mcp": "./bin/mcp.js" @@ -34,7 +34,7 @@ "@modelcontextprotocol/sdk": "^1.12.0", "@primer/octicons": "^19.15.5", "@primer/primitives": "10.x || 11.x", - "@primer/react": "^38.0.0-rc.3", + "@primer/react": "^38.0.0-rc.7", "cheerio": "^1.0.0", "turndown": "^7.2.0", "zod": "^3.23.8" diff --git a/packages/react/CHANGELOG.md b/packages/react/CHANGELOG.md index cb13b011c96..86518c8a440 100644 --- a/packages/react/CHANGELOG.md +++ b/packages/react/CHANGELOG.md @@ -1,5 +1,52 @@ # @primer/react +## 38.0.0-rc.7 + +### Major Changes + +- [#6944](https://github.com/primer/react/pull/6944) [`446956d`](https://github.com/primer/react/commit/446956d3466ca11b95adf720d7cf07a1bb6bad92) Thanks [@liuliu-dev](https://github.com/liuliu-dev)! - Remove sx from deprecated ActionList component. + +- [#6965](https://github.com/primer/react/pull/6965) [`f61238c`](https://github.com/primer/react/commit/f61238c295377f59a5d3c5b0c782e98c238fa639) Thanks [@francinelucca](https://github.com/francinelucca)! - Chore/remove styled. components: deprecated UnderlineNav, ValidationAnimation, LabelGroup, Tooltip + +- [#6921](https://github.com/primer/react/pull/6921) [`c58f171`](https://github.com/primer/react/commit/c58f171be98dfec354eeb85c870368e84796fe6e) Thanks [@llastflowers](https://github.com/llastflowers)! - Update ActionList component and related components to no longer support sx/styled-components + +- [#6902](https://github.com/primer/react/pull/6902) [`c395547`](https://github.com/primer/react/commit/c395547ae30bb51ea40388183f384848a397dc80) Thanks [@iansan5653](https://github.com/iansan5653)! - Support nested children in ActionBar. + +- [#6930](https://github.com/primer/react/pull/6930) [`260c74c`](https://github.com/primer/react/commit/260c74c4e9f780a891157c9a2bc1450a12f8593a) Thanks [@mperrotti](https://github.com/mperrotti)! - Removes `sx` prop from DataTable.Container + +- [#6942](https://github.com/primer/react/pull/6942) [`3ced917`](https://github.com/primer/react/commit/3ced917f595667e1f68a6b9110bd034e0d88bf2a) Thanks [@francinelucca](https://github.com/francinelucca)! - Removes sx prop from PageLayout and subcomponents + +- [#6951](https://github.com/primer/react/pull/6951) [`2703bc9`](https://github.com/primer/react/commit/2703bc9cad2d3f16552b748f3799949a35464a1a) Thanks [@francinelucca](https://github.com/francinelucca)! - Update FormControl component to no longer support sx + +- [#6897](https://github.com/primer/react/pull/6897) [`c1448cc`](https://github.com/primer/react/commit/c1448cc6546b0e58b1ceb54fa2989a1fd7cbfe30) Thanks [@siddharthkp](https://github.com/siddharthkp)! - Replaces `useTheme` usage with `theme`. If an application uses a custom theme that modifies one of the following 5 tokens, they will be reset to the default theme values. (`space.2, colors.success.fg, colors.border.default, colors.border.muted, animation.easeOutCubic`) + +- [#6945](https://github.com/primer/react/pull/6945) [`1c84c0f`](https://github.com/primer/react/commit/1c84c0ff2b261a02d81c11fb16c7d3fb05294506) Thanks [@francinelucca](https://github.com/francinelucca)! - chore(Octicon): remove sx + +- [#6904](https://github.com/primer/react/pull/6904) [`62df166`](https://github.com/primer/react/commit/62df166574d6248b3405c224a2f63f1e53a75ece) Thanks [@pksjce](https://github.com/pksjce)! - Remove sx property from Button + +### Minor Changes + +- [#6976](https://github.com/primer/react/pull/6976) [`2ec5bf2`](https://github.com/primer/react/commit/2ec5bf2898a6966161a076f5896910bf1b1f4018) Thanks [@francinelucca](https://github.com/francinelucca)! - feat: support custom slots + +- [#6919](https://github.com/primer/react/pull/6919) [`32e12c6`](https://github.com/primer/react/commit/32e12c690a53aef918e765d128f381c8f57bfd02) Thanks [@TylerJDev](https://github.com/TylerJDev)! - TreeView: Add `count` and `className` support for trailing actions + +### Patch Changes + +- [#6994](https://github.com/primer/react/pull/6994) [`701a9d0`](https://github.com/primer/react/commit/701a9d02cc5958bdeb12d63bbc169c5d40bd26e6) Thanks [@francinelucca](https://github.com/francinelucca)! - chore: prevent slot rewrite on CheckboxOrRadioGroup subcomponents + +- [#6959](https://github.com/primer/react/pull/6959) [`76f1ca3`](https://github.com/primer/react/commit/76f1ca32a9303b18a2084c4e11c4699963b88e4e) Thanks [@francinelucca](https://github.com/francinelucca)! - chore(AvatarStack, CheckboxOrRadioGroup, UnstyledTextInput): cleanup remaining sx props + +- [#6996](https://github.com/primer/react/pull/6996) [`173f76d`](https://github.com/primer/react/commit/173f76d917a688515ae36f2240bf5461db5eda0c) Thanks [@francinelucca](https://github.com/francinelucca)! - chore: add missing slot checks to CheckboxOrRadioGroup, SelectPanel, ActionMenu, Treeview, SegmentedControl and PageHeader + +- [#6954](https://github.com/primer/react/pull/6954) [`7dd483f`](https://github.com/primer/react/commit/7dd483f74e2a75e5c0a44f46a860afc2bdf0da9a) Thanks [@langermank](https://github.com/langermank)! - Adjust ConfirmationDialog heading styling + +- [#6935](https://github.com/primer/react/pull/6935) [`8641c7a`](https://github.com/primer/react/commit/8641c7a778f88c9f65fa1f3d2c40994468651ae7) Thanks [@JelloBagel](https://github.com/JelloBagel)! - Fix overflow calculations of more menu button in action bar + +- [#6925](https://github.com/primer/react/pull/6925) [`ecc81b5`](https://github.com/primer/react/commit/ecc81b569b421a4181b0a2f4cdff9cfe60fe28fd) Thanks [@francinelucca](https://github.com/francinelucca)! - chore(TextInput): remove sx + +- [#6958](https://github.com/primer/react/pull/6958) [`3032026`](https://github.com/primer/react/commit/30320263482baf9d2c634ec27122c9a42ece308a) Thanks [@siddharthkp](https://github.com/siddharthkp)! - @primer/react: Export `useId` and `useSyncedState` + @primer/styled-react: Add `ThemeProvider` and `BaseStyles` + ## 38.0.0-rc.6 ### Patch Changes diff --git a/packages/react/package.json b/packages/react/package.json index 33e9d986145..df803b516c9 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -1,7 +1,7 @@ { "name": "@primer/react", "type": "module", - "version": "38.0.0-rc.6", + "version": "38.0.0-rc.7", "description": "An implementation of GitHub's Primer Design System using React", "main": "./dist/index.js", "module": "./dist/index.js", diff --git a/packages/styled-react/CHANGELOG.md b/packages/styled-react/CHANGELOG.md index b9fcd686a65..153d56793f4 100644 --- a/packages/styled-react/CHANGELOG.md +++ b/packages/styled-react/CHANGELOG.md @@ -1,5 +1,31 @@ # @primer/styled-react +## 1.0.0-rc.8 + +### Minor Changes + +- [#6944](https://github.com/primer/react/pull/6944) [`446956d`](https://github.com/primer/react/commit/446956d3466ca11b95adf720d7cf07a1bb6bad92) Thanks [@liuliu-dev](https://github.com/liuliu-dev)! - Remove sx from deprecated ActionList component. + +- [#6958](https://github.com/primer/react/pull/6958) [`3032026`](https://github.com/primer/react/commit/30320263482baf9d2c634ec27122c9a42ece308a) Thanks [@siddharthkp](https://github.com/siddharthkp)! - @primer/react: Export `useId` and `useSyncedState` + @primer/styled-react: Add `ThemeProvider` and `BaseStyles` + +### Patch Changes + +- [#6976](https://github.com/primer/react/pull/6976) [`2ec5bf2`](https://github.com/primer/react/commit/2ec5bf2898a6966161a076f5896910bf1b1f4018) Thanks [@francinelucca](https://github.com/francinelucca)! - feat: support custom slots + +- [#6995](https://github.com/primer/react/pull/6995) [`2d37fab`](https://github.com/primer/react/commit/2d37fab9a02bac5426b4ee9154a1d299343f9f43) Thanks [@francinelucca](https://github.com/francinelucca)! - chore: ActionList use forwardedAs in subcomponents + +- [#6925](https://github.com/primer/react/pull/6925) [`ecc81b5`](https://github.com/primer/react/commit/ecc81b569b421a4181b0a2f4cdff9cfe60fe28fd) Thanks [@francinelucca](https://github.com/francinelucca)! - chore(TextInput): remove sx + +- [#6945](https://github.com/primer/react/pull/6945) [`1c84c0f`](https://github.com/primer/react/commit/1c84c0ff2b261a02d81c11fb16c7d3fb05294506) Thanks [@francinelucca](https://github.com/francinelucca)! - chore(Octicon): remove sx + +- [#6904](https://github.com/primer/react/pull/6904) [`62df166`](https://github.com/primer/react/commit/62df166574d6248b3405c224a2f63f1e53a75ece) Thanks [@pksjce](https://github.com/pksjce)! - Remove sx property from Button + +- [#6968](https://github.com/primer/react/pull/6968) [`9fcaedf`](https://github.com/primer/react/commit/9fcaedfad29ed5bf7cb3ed512a8051eeb45b7944) Thanks [@siddharthkp](https://github.com/siddharthkp)! - Export BaseStyles + +- Updated dependencies [[`446956d`](https://github.com/primer/react/commit/446956d3466ca11b95adf720d7cf07a1bb6bad92), [`701a9d0`](https://github.com/primer/react/commit/701a9d02cc5958bdeb12d63bbc169c5d40bd26e6), [`f61238c`](https://github.com/primer/react/commit/f61238c295377f59a5d3c5b0c782e98c238fa639), [`c58f171`](https://github.com/primer/react/commit/c58f171be98dfec354eeb85c870368e84796fe6e), [`c395547`](https://github.com/primer/react/commit/c395547ae30bb51ea40388183f384848a397dc80), [`260c74c`](https://github.com/primer/react/commit/260c74c4e9f780a891157c9a2bc1450a12f8593a), [`3ced917`](https://github.com/primer/react/commit/3ced917f595667e1f68a6b9110bd034e0d88bf2a), [`2703bc9`](https://github.com/primer/react/commit/2703bc9cad2d3f16552b748f3799949a35464a1a), [`76f1ca3`](https://github.com/primer/react/commit/76f1ca32a9303b18a2084c4e11c4699963b88e4e), [`2ec5bf2`](https://github.com/primer/react/commit/2ec5bf2898a6966161a076f5896910bf1b1f4018), [`173f76d`](https://github.com/primer/react/commit/173f76d917a688515ae36f2240bf5461db5eda0c), [`7dd483f`](https://github.com/primer/react/commit/7dd483f74e2a75e5c0a44f46a860afc2bdf0da9a), [`c1448cc`](https://github.com/primer/react/commit/c1448cc6546b0e58b1ceb54fa2989a1fd7cbfe30), [`8641c7a`](https://github.com/primer/react/commit/8641c7a778f88c9f65fa1f3d2c40994468651ae7), [`ecc81b5`](https://github.com/primer/react/commit/ecc81b569b421a4181b0a2f4cdff9cfe60fe28fd), [`3032026`](https://github.com/primer/react/commit/30320263482baf9d2c634ec27122c9a42ece308a), [`1c84c0f`](https://github.com/primer/react/commit/1c84c0ff2b261a02d81c11fb16c7d3fb05294506), [`62df166`](https://github.com/primer/react/commit/62df166574d6248b3405c224a2f63f1e53a75ece), [`32e12c6`](https://github.com/primer/react/commit/32e12c690a53aef918e765d128f381c8f57bfd02)]: + - @primer/react@38.0.0-rc.7 + ## 1.0.0-rc.7 ### Patch Changes diff --git a/packages/styled-react/package.json b/packages/styled-react/package.json index b3e78132356..0eb9ba3f96e 100644 --- a/packages/styled-react/package.json +++ b/packages/styled-react/package.json @@ -1,6 +1,6 @@ { "name": "@primer/styled-react", - "version": "1.0.0-rc.7", + "version": "1.0.0-rc.8", "type": "module", "exports": { ".": { @@ -30,7 +30,7 @@ "devDependencies": { "@babel/preset-react": "^7.27.1", "@babel/preset-typescript": "^7.27.1", - "@primer/react": "^38.0.0-rc.6", + "@primer/react": "^38.0.0-rc.7", "@rollup/plugin-babel": "^6.0.4", "@types/react": "18.3.11", "@types/react-dom": "18.3.1", @@ -46,7 +46,7 @@ "typescript": "^5.9.2" }, "peerDependencies": { - "@primer/react": "38.0.0-rc.6", + "@primer/react": "38.0.0-rc.7", "@types/react": "18.x || 19.x", "@types/react-dom": "18.x || 19.x", "@types/react-is": "18.x || 19.x",