diff --git a/.changeset/blue-eggs-suffer.md b/.changeset/blue-eggs-suffer.md deleted file mode 100644 index 7f2aba3a444..00000000000 --- a/.changeset/blue-eggs-suffer.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@primer/react": minor ---- - -feat(LabelGroup): render as list by default diff --git a/.changeset/chilly-phones-explode.md b/.changeset/chilly-phones-explode.md deleted file mode 100644 index 1733d38765a..00000000000 --- a/.changeset/chilly-phones-explode.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@primer/react": patch ---- - -Bug fix: `ButtonBase` sx base styles leaking into CSS modules feat flag diff --git a/.changeset/clean-mails-accept.md b/.changeset/clean-mails-accept.md deleted file mode 100644 index 00d788b60fc..00000000000 --- a/.changeset/clean-mails-accept.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@primer/react": minor ---- - -Convert Details to css module behind feature flag diff --git a/.changeset/few-zebras-drive.md b/.changeset/few-zebras-drive.md deleted file mode 100644 index d283c99f98b..00000000000 --- a/.changeset/few-zebras-drive.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -"@primer/react": minor ---- - -* Convert SkeletonAvatar to CSS modules behind the feature flag -* Convert SkeletonBox to CSS modules behind the feature flag -* Convert SkeletonText to CSS modules behind the feature flag - diff --git a/.changeset/fifty-suns-smoke.md b/.changeset/fifty-suns-smoke.md deleted file mode 100644 index 749aa264863..00000000000 --- a/.changeset/fifty-suns-smoke.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@primer/react": minor ---- - -Convert Radio to css modules behind feature flag diff --git a/.changeset/forty-olives-lay.md b/.changeset/forty-olives-lay.md deleted file mode 100644 index d3e44460ed5..00000000000 --- a/.changeset/forty-olives-lay.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@primer/react': minor ---- - -Overlay: Adds `min-width` to container to improve responsiveness diff --git a/.changeset/four-schools-grin.md b/.changeset/four-schools-grin.md deleted file mode 100644 index 72c447d1a85..00000000000 --- a/.changeset/four-schools-grin.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@primer/react': minor ---- - -Update BranchName to use CSS Modules behind feature flag diff --git a/.changeset/gentle-doors-sell.md b/.changeset/gentle-doors-sell.md deleted file mode 100644 index 795c99d1078..00000000000 --- a/.changeset/gentle-doors-sell.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@primer/react": patch ---- - -Convert Stack to CSS modules behind feature flag diff --git a/.changeset/gold-items-shave.md b/.changeset/gold-items-shave.md deleted file mode 100644 index 3d45affb5f7..00000000000 --- a/.changeset/gold-items-shave.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@primer/react": patch ---- - -Move Checkbox css module feature flag to staff diff --git a/.changeset/grumpy-lamps-behave.md b/.changeset/grumpy-lamps-behave.md deleted file mode 100644 index 9ee089cb00e..00000000000 --- a/.changeset/grumpy-lamps-behave.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@primer/react': patch ---- - -catch TooltipV2 errors in old browsers as a temp fix for unnecessary Sentry reports diff --git a/.changeset/hungry-avocados-remember.md b/.changeset/hungry-avocados-remember.md deleted file mode 100644 index ffe0993061d..00000000000 --- a/.changeset/hungry-avocados-remember.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@primer/react': minor ---- - -Migrated `Spinner` component to use support CSS modules diff --git a/.changeset/itchy-paws-bake.md b/.changeset/itchy-paws-bake.md deleted file mode 100644 index 532507c7a46..00000000000 --- a/.changeset/itchy-paws-bake.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@primer/react": patch ---- - -fix(SegmentedControl): set global focus styles diff --git a/.changeset/loud-spoons-explode.md b/.changeset/loud-spoons-explode.md deleted file mode 100644 index a34200c9342..00000000000 --- a/.changeset/loud-spoons-explode.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@primer/react': minor ---- - -Migrated `VisuallyHidden` to CSS Modules diff --git a/.changeset/lucky-horses-kiss.md b/.changeset/lucky-horses-kiss.md deleted file mode 100644 index 5233032f1e3..00000000000 --- a/.changeset/lucky-horses-kiss.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@primer/react': minor ---- - -Move `aria-*` attributes to `ProgressBar.Item` and marks `ProgressBar.Item` as `role="progressbar". diff --git a/.changeset/modern-icons-clean.md b/.changeset/modern-icons-clean.md deleted file mode 100644 index ac697326b5e..00000000000 --- a/.changeset/modern-icons-clean.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@primer/react': minor ---- - -Migrate `Select` component to css modules diff --git a/.changeset/nice-shoes-fail.md b/.changeset/nice-shoes-fail.md deleted file mode 100644 index be9aa60e94a..00000000000 --- a/.changeset/nice-shoes-fail.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@primer/react": patch ---- - -Update the foreground color for FormControl.Caption to use the control tokens when disabled diff --git a/.changeset/odd-frogs-listen.md b/.changeset/odd-frogs-listen.md deleted file mode 100644 index 9e89ad0a991..00000000000 --- a/.changeset/odd-frogs-listen.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@primer/react': minor ---- - -Update `Header` component to use CSS modules behind the feature flag primer_react_css_modules_team diff --git a/.changeset/old-boxes-clap.md b/.changeset/old-boxes-clap.md deleted file mode 100644 index 27abb9698ec..00000000000 --- a/.changeset/old-boxes-clap.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@primer/react": minor ---- - -feat(Details): Add summary subcomponent diff --git a/.changeset/old-plums-explode.md b/.changeset/old-plums-explode.md deleted file mode 100644 index 494da343cbb..00000000000 --- a/.changeset/old-plums-explode.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@primer/react": patch ---- - -fix(DataTable): export datatable utility types diff --git a/.changeset/quiet-seahorses-yawn.md b/.changeset/quiet-seahorses-yawn.md deleted file mode 100644 index 58b0af858f1..00000000000 --- a/.changeset/quiet-seahorses-yawn.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@primer/react": minor ---- - -Convert `Pagehead` to CSS Modules diff --git a/.changeset/shy-seahorses-mix.md b/.changeset/shy-seahorses-mix.md deleted file mode 100644 index 1819269fecf..00000000000 --- a/.changeset/shy-seahorses-mix.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@primer/react': minor ---- - -AvatarStack: Adds keyboard support to `AvatarStack` diff --git a/.changeset/six-colts-admire.md b/.changeset/six-colts-admire.md deleted file mode 100644 index 91cdb94123e..00000000000 --- a/.changeset/six-colts-admire.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@primer/react": minor ---- - -Remove CSS modules feature flag from Label component diff --git a/.changeset/slow-snails-swim.md b/.changeset/slow-snails-swim.md deleted file mode 100644 index 0e366fd6e38..00000000000 --- a/.changeset/slow-snails-swim.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@primer/react": minor ---- - -SelectPanel: Allow using SelectPanel in FormControl diff --git a/.changeset/sour-flies-camp.md b/.changeset/sour-flies-camp.md deleted file mode 100644 index 11c1801e7a0..00000000000 --- a/.changeset/sour-flies-camp.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@primer/react": minor ---- - -Remove the CSS modules feature flag from the Link component diff --git a/.changeset/twelve-kings-confess.md b/.changeset/twelve-kings-confess.md deleted file mode 100644 index 7d55fca5497..00000000000 --- a/.changeset/twelve-kings-confess.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@primer/react': minor ---- - -Adds NavList.GroupHeading component that can be used instead of the ActionList.Group 'title' prop if you need to render something besides a string diff --git a/.changeset/wild-maps-grow.md b/.changeset/wild-maps-grow.md deleted file mode 100644 index e3b514572c5..00000000000 --- a/.changeset/wild-maps-grow.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@primer/react": patch ---- - -fix(FormControl): allow required check boxes in CheckboxGroup diff --git a/.changeset/wise-llamas-exist.md b/.changeset/wise-llamas-exist.md deleted file mode 100644 index dbd3aeb645d..00000000000 --- a/.changeset/wise-llamas-exist.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@primer/react": patch ---- - -Move CounterLabel css modules feature flag to staff diff --git a/examples/app-router/package.json b/examples/app-router/package.json index 485665f95d0..25fe7dcc5c8 100644 --- a/examples/app-router/package.json +++ b/examples/app-router/package.json @@ -10,7 +10,7 @@ "type-check": "tsc --noEmit" }, "dependencies": { - "@primer/react": "37.0.1", + "@primer/react": "37.1.0", "next": "^14.2.10", "react": "^18.3.1", "react-dom": "^18.3.1", diff --git a/examples/codesandbox/package.json b/examples/codesandbox/package.json index f483b600c7c..95f9c60febd 100644 --- a/examples/codesandbox/package.json +++ b/examples/codesandbox/package.json @@ -20,7 +20,7 @@ "@typescript-eslint/eslint-plugin": "^7.11.0", "@typescript-eslint/parser": "^7.3.1", "@vitejs/plugin-react": "^4.2.1", - "@primer/react": "37.0.1", + "@primer/react": "37.1.0", "eslint": "^8.56.0", "eslint-plugin-react-hooks": "^4.6.0", "eslint-plugin-react-refresh": "^0.4.7", diff --git a/examples/consumer-test/package.json b/examples/consumer-test/package.json index ac945c97926..848d2f117ff 100644 --- a/examples/consumer-test/package.json +++ b/examples/consumer-test/package.json @@ -9,7 +9,7 @@ "@types/react": "^18.3.11", "@types/react-dom": "^18.2.19", "@types/styled-components": "^5.1.11", - "@primer/react": "37.0.1", + "@primer/react": "37.1.0", "react": "^18.0.0", "react-dom": "^18.0.0", "styled-components": "^5.3.11", diff --git a/examples/theming/package.json b/examples/theming/package.json index 461b31ea605..1a08ef0eb92 100644 --- a/examples/theming/package.json +++ b/examples/theming/package.json @@ -11,7 +11,7 @@ }, "dependencies": { "@primer/octicons-react": "^19.9.0", - "@primer/react": "37.0.1", + "@primer/react": "37.1.0", "clsx": "^1.2.1", "next": "^14.2.10", "react": "^18.3.1", diff --git a/packages/react/CHANGELOG.md b/packages/react/CHANGELOG.md index fba871e038d..9766e813765 100644 --- a/packages/react/CHANGELOG.md +++ b/packages/react/CHANGELOG.md @@ -1,5 +1,68 @@ # @primer/react +## 37.1.0 + +### Minor Changes + +- [#5156](https://github.com/primer/react/pull/5156) [`8e58e4d`](https://github.com/primer/react/commit/8e58e4d1fc8a6ec9e9329b152f3d43d15d6dd5d5) Thanks [@francinelucca](https://github.com/francinelucca)! - feat(LabelGroup): render as list by default + +- [#5167](https://github.com/primer/react/pull/5167) [`07b75e7`](https://github.com/primer/react/commit/07b75e78f6842713fff12dad1e7a0502596e30bf) Thanks [@jonrohan](https://github.com/jonrohan)! - Convert Details to css module behind feature flag + +- [#5195](https://github.com/primer/react/pull/5195) [`d349cfc`](https://github.com/primer/react/commit/d349cfcb3fca9982040a1389c0fabcaafca5b85e) Thanks [@jonrohan](https://github.com/jonrohan)! - \* Convert SkeletonAvatar to CSS modules behind the feature flag + + - Convert SkeletonBox to CSS modules behind the feature flag + - Convert SkeletonText to CSS modules behind the feature flag + +- [#5187](https://github.com/primer/react/pull/5187) [`2ab7b9e`](https://github.com/primer/react/commit/2ab7b9e649cc2f6a1c290bdbfcf48d3e635d998f) Thanks [@jonrohan](https://github.com/jonrohan)! - Convert Radio to css modules behind feature flag + +- [#5129](https://github.com/primer/react/pull/5129) [`e27decd`](https://github.com/primer/react/commit/e27decdae5fcff3b25c9c58194709abbf4de85f8) Thanks [@TylerJDev](https://github.com/TylerJDev)! - Overlay: Adds `min-width` to container to improve responsiveness + +- [#5040](https://github.com/primer/react/pull/5040) [`8d9a357`](https://github.com/primer/react/commit/8d9a357db49dbf1f00e19c7aa489bd963a0d3dd5) Thanks [@joshblack](https://github.com/joshblack)! - Update BranchName to use CSS Modules behind feature flag + +- [#5188](https://github.com/primer/react/pull/5188) [`573ae51`](https://github.com/primer/react/commit/573ae5168879998946ba1aa3e21af8ddf54351af) Thanks [@randall-krauskopf](https://github.com/randall-krauskopf)! - Migrated `Spinner` component to use support CSS modules + +- [#5193](https://github.com/primer/react/pull/5193) [`ed3d8c1`](https://github.com/primer/react/commit/ed3d8c1d0825502293b7a772a26e2e3865c9c162) Thanks [@randall-krauskopf](https://github.com/randall-krauskopf)! - Migrated `VisuallyHidden` to CSS Modules + +- [#4878](https://github.com/primer/react/pull/4878) [`73312d8`](https://github.com/primer/react/commit/73312d8ceb98ae84c0291f05b0b30f7f06975d3c) Thanks [@TylerJDev](https://github.com/TylerJDev)! - Move `aria-*` attributes to `ProgressBar.Item` and marks `ProgressBar.Item` as `role="progressbar". + +- [#5194](https://github.com/primer/react/pull/5194) [`719def7`](https://github.com/primer/react/commit/719def7ea83f5212dc6ba888fe22d29b6620ce37) Thanks [@randall-krauskopf](https://github.com/randall-krauskopf)! - Migrate `Select` component to css modules + +- [#5192](https://github.com/primer/react/pull/5192) [`cbeed21`](https://github.com/primer/react/commit/cbeed2111c02c6e4457228acdb7d83f11e866197) Thanks [@hussam-i-am](https://github.com/hussam-i-am)! - Update `Header` component to use CSS modules behind the feature flag primer_react_css_modules_team + +- [#5015](https://github.com/primer/react/pull/5015) [`1473c26`](https://github.com/primer/react/commit/1473c26abb37b2de2af5f4ff848107971ee557c7) Thanks [@francinelucca](https://github.com/francinelucca)! - feat(Details): Add summary subcomponent + +- [#5197](https://github.com/primer/react/pull/5197) [`ad84d4f`](https://github.com/primer/react/commit/ad84d4f494cb424b307ed3fa7eb77aec21c2ad40) Thanks [@randall-krauskopf](https://github.com/randall-krauskopf)! - Convert `Pagehead` to CSS Modules + +- [#5134](https://github.com/primer/react/pull/5134) [`6713e72`](https://github.com/primer/react/commit/6713e72124f4b9e594b31d5abc7dda258940c9cc) Thanks [@TylerJDev](https://github.com/TylerJDev)! - AvatarStack: Adds keyboard support to `AvatarStack` + +- [#5060](https://github.com/primer/react/pull/5060) [`33396ea`](https://github.com/primer/react/commit/33396ead24bb25dc042004cd82bbdbe235403c61) Thanks [@jonrohan](https://github.com/jonrohan)! - Remove CSS modules feature flag from Label component + +- [#5185](https://github.com/primer/react/pull/5185) [`461ae57`](https://github.com/primer/react/commit/461ae57b4efd1053449643fe4dbd8c18ff86ddd0) Thanks [@broccolinisoup](https://github.com/broccolinisoup)! - SelectPanel: Allow using SelectPanel in FormControl + +- [#5148](https://github.com/primer/react/pull/5148) [`002be35`](https://github.com/primer/react/commit/002be358676c2a882893dfbe518e1eafbd38db55) Thanks [@jonrohan](https://github.com/jonrohan)! - Remove the CSS modules feature flag from the Link component + +- [#5106](https://github.com/primer/react/pull/5106) [`851c857`](https://github.com/primer/react/commit/851c857f1a69541b6b8b77dac714f2de51419936) Thanks [@mperrotti](https://github.com/mperrotti)! - Adds NavList.GroupHeading component that can be used instead of the ActionList.Group 'title' prop if you need to render something besides a string + +### Patch Changes + +- [#5213](https://github.com/primer/react/pull/5213) [`a5d7fe3`](https://github.com/primer/react/commit/a5d7fe34a20c9eeffe879e10b4f0165b8f1a6da8) Thanks [@langermank](https://github.com/langermank)! - Bug fix: `ButtonBase` sx base styles leaking into CSS modules feat flag + +- [#5214](https://github.com/primer/react/pull/5214) [`916ed95`](https://github.com/primer/react/commit/916ed952d38502b72640dcb07dac69005cb176e3) Thanks [@jonrohan](https://github.com/jonrohan)! - Convert Stack to CSS modules behind feature flag + +- [#5146](https://github.com/primer/react/pull/5146) [`ad554da`](https://github.com/primer/react/commit/ad554da1ed3907e5764f68190c0a3dd1cf7529b7) Thanks [@jonrohan](https://github.com/jonrohan)! - Move Checkbox css module feature flag to staff + +- [#5171](https://github.com/primer/react/pull/5171) [`8138dee`](https://github.com/primer/react/commit/8138dee8d8235475ec8135591c52abf3df90d50b) Thanks [@alondahari](https://github.com/alondahari)! - catch TooltipV2 errors in old browsers as a temp fix for unnecessary Sentry reports + +- [#5140](https://github.com/primer/react/pull/5140) [`73796d3`](https://github.com/primer/react/commit/73796d3b249ade8b69adb5aa720432d77a433103) Thanks [@francinelucca](https://github.com/francinelucca)! - fix(SegmentedControl): set global focus styles + +- [#5201](https://github.com/primer/react/pull/5201) [`29a9770`](https://github.com/primer/react/commit/29a9770ead42b01026e8277f6c30d18d2ccaaf84) Thanks [@joshblack](https://github.com/joshblack)! - Update the foreground color for FormControl.Caption to use the control tokens when disabled + +- [#5182](https://github.com/primer/react/pull/5182) [`31d9a05`](https://github.com/primer/react/commit/31d9a0587eb76f8d786404881b1727213c55fdbc) Thanks [@francinelucca](https://github.com/francinelucca)! - fix(DataTable): export datatable utility types + +- [#5027](https://github.com/primer/react/pull/5027) [`9a30c63`](https://github.com/primer/react/commit/9a30c63dc8e0c2923952f7ffea831446d0ed6122) Thanks [@francinelucca](https://github.com/francinelucca)! - fix(FormControl): allow required check boxes in CheckboxGroup + +- [#5147](https://github.com/primer/react/pull/5147) [`e421f32`](https://github.com/primer/react/commit/e421f32002ad07582d0221862f7afb6e8afbbc51) Thanks [@jonrohan](https://github.com/jonrohan)! - Move CounterLabel css modules feature flag to staff + ## 37.0.1 ### Patch Changes diff --git a/packages/react/package.json b/packages/react/package.json index 81165d3d9c0..856e1fa609f 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -1,6 +1,6 @@ { "name": "@primer/react", - "version": "37.0.1", + "version": "37.1.0", "description": "An implementation of GitHub's Primer Design System using React", "main": "lib/index.js", "module": "lib-esm/index.js",