diff --git a/.changeset/action-list-group-heading-trailing-action.md b/.changeset/action-list-group-heading-trailing-action.md deleted file mode 100644 index 181348357cf..00000000000 --- a/.changeset/action-list-group-heading-trailing-action.md +++ /dev/null @@ -1,19 +0,0 @@ ---- -'@primer/react': minor ---- - -ActionList: Add `ActionList.GroupHeading.TrailingAction` for header-level actions on grouped lists. Closes #2043. - -When the `primer_react_action_list_group_heading_trailing_action` feature flag is enabled, you can place an `ActionList.GroupHeading.TrailingAction` (a small invisible `IconButton`) inside `ActionList.GroupHeading` to render a uniform square action target next to the group's heading. Only supported inside an `ActionList` with the default `list` role — using it inside `ActionMenu` or with `role="listbox"` will throw. - -```tsx - - - - Custom fields - - - ... - - -``` diff --git a/.changeset/datatable-zero-sorting.md b/.changeset/datatable-zero-sorting.md deleted file mode 100644 index cdfa47548ba..00000000000 --- a/.changeset/datatable-zero-sorting.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@primer/react': patch ---- - -DataTable: Treat zero as a populated value when sorting numeric columns diff --git a/.changeset/great-toes-sin.md b/.changeset/great-toes-sin.md deleted file mode 100644 index 4a06f26a107..00000000000 --- a/.changeset/great-toes-sin.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@primer/react": minor ---- - -Add data-component attributes and associated tests for Hidden, InlineMessage, KeybindingHint, Label, and LabelGroup diff --git a/.changeset/healthy-pens-boil.md b/.changeset/healthy-pens-boil.md deleted file mode 100644 index a69698b45f8..00000000000 --- a/.changeset/healthy-pens-boil.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@primer/react": minor ---- - -Add `data-component` attributes for Blankslate, BranchName, Breadcrumbs, ButtonGroup, Checkbox, CheckboxGroup, CircleBadge, ConfirmationDialog, CounterLabel, and Dialog to provide stable selectors. diff --git a/.changeset/many-suns-promise.md b/.changeset/many-suns-promise.md deleted file mode 100644 index 6b465792c8e..00000000000 --- a/.changeset/many-suns-promise.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@primer/react": minor ---- - -Replace `ActionBar` overflow calculations with CSS wrapping approach to improve performance and stability diff --git a/.changeset/shiny-cheetahs-compare.md b/.changeset/shiny-cheetahs-compare.md deleted file mode 100644 index c38f37df279..00000000000 --- a/.changeset/shiny-cheetahs-compare.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@primer/styled-react": patch ---- - -Removing `ActionList, Box, Button, Dialog, Flash, FormControl, Header, Heading, IconButton, Label, Link, LinkButton, SegmentedControl, Spinner, Text, TextInput, ToggleSwitch, UnderlineNav, DialogV1, Octicon, TabNav` from the @primer/styled-react package diff --git a/.changeset/silent-taxis-eat.md b/.changeset/silent-taxis-eat.md deleted file mode 100644 index c8c54b45681..00000000000 --- a/.changeset/silent-taxis-eat.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@primer/react": patch ---- - -Fix `usePaneWidth` triggering unnecessary React re-renders on every window resize diff --git a/.changeset/tall-impalas-wash.md b/.changeset/tall-impalas-wash.md deleted file mode 100644 index 6db7476129a..00000000000 --- a/.changeset/tall-impalas-wash.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@primer/react': minor ---- - -Dialog: Support custom width values. diff --git a/.changeset/timeline-badge-border-fix.md b/.changeset/timeline-badge-border-fix.md deleted file mode 100644 index a321d50c9c7..00000000000 --- a/.changeset/timeline-badge-border-fix.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@primer/react': patch ---- - -Timeline: Remove border override from TimelineBadge when variant is set diff --git a/.changeset/tiny-hats-applaud.md b/.changeset/tiny-hats-applaud.md deleted file mode 100644 index 8c563308bfc..00000000000 --- a/.changeset/tiny-hats-applaud.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@primer/react": minor ---- - -Add `data-component` attributes for Details, Flash, FormControl (+ update InputValidation to forward from FormControl.Validation), Header, and Heading. diff --git a/examples/codesandbox/package.json b/examples/codesandbox/package.json index 0092a511973..eca666f068b 100644 --- a/examples/codesandbox/package.json +++ b/examples/codesandbox/package.json @@ -17,8 +17,8 @@ "@types/react": "^18.3.11", "@types/react-dom": "^18.3.0", "@vitejs/plugin-react": "^4.3.3", - "@primer/react": "38.23.0", - "@primer/styled-react": "1.0.8", + "@primer/react": "38.24.0", + "@primer/styled-react": "1.0.9", "styled-components": "5.x", "typescript": "^6.0.3", "vite": "^7.1.11" diff --git a/examples/nextjs/package.json b/examples/nextjs/package.json index 7ffc37f67e4..d27ffec563c 100644 --- a/examples/nextjs/package.json +++ b/examples/nextjs/package.json @@ -10,8 +10,8 @@ "type-check": "tsc --noEmit" }, "dependencies": { - "@primer/react": "38.23.0", - "@primer/styled-react": "1.0.8", + "@primer/react": "38.24.0", + "@primer/styled-react": "1.0.9", "next": "^16.1.7", "react": "^19.2.0", "react-dom": "^19.2.0", diff --git a/examples/theming/package.json b/examples/theming/package.json index a37bf0ae7de..791a7020a5e 100644 --- a/examples/theming/package.json +++ b/examples/theming/package.json @@ -11,8 +11,8 @@ }, "dependencies": { "@primer/octicons-react": "^19.21.0", - "@primer/react": "38.23.0", - "@primer/styled-react": "1.0.8", + "@primer/react": "38.24.0", + "@primer/styled-react": "1.0.9", "clsx": "^2.1.1", "next": "^16.1.7", "react": "^19.2.0", diff --git a/packages/react/CHANGELOG.md b/packages/react/CHANGELOG.md index 6280c8ef12b..e006cbdaf1c 100644 --- a/packages/react/CHANGELOG.md +++ b/packages/react/CHANGELOG.md @@ -1,5 +1,43 @@ # @primer/react +## 38.24.0 + +### Minor Changes + +- [#7829](https://github.com/primer/react/pull/7829) [`228019c`](https://github.com/primer/react/commit/228019cac474e94558e571c325692d3b40ca4488) Thanks [@adierkens](https://github.com/adierkens)! - ActionList: Add `ActionList.GroupHeading.TrailingAction` for header-level actions on grouped lists. Closes #2043. + + When the `primer_react_action_list_group_heading_trailing_action` feature flag is enabled, you can place an `ActionList.GroupHeading.TrailingAction` (a small invisible `IconButton`) inside `ActionList.GroupHeading` to render a uniform square action target next to the group's heading. Only supported inside an `ActionList` with the default `list` role — using it inside `ActionMenu` or with `role="listbox"` will throw. + + ```tsx + + + + Custom fields + + + ... + + + ``` + +- [#7838](https://github.com/primer/react/pull/7838) [`8ddf1b0`](https://github.com/primer/react/commit/8ddf1b0b0082e43ffb83c572877f38eb6e9e30c3) Thanks [@llastflowers](https://github.com/llastflowers)! - Add data-component attributes and associated tests for Hidden, InlineMessage, KeybindingHint, Label, and LabelGroup + +- [#7776](https://github.com/primer/react/pull/7776) [`d6f61c1`](https://github.com/primer/react/commit/d6f61c1e197b52eb75cff97299bfac4caedcc1ac) Thanks [@llastflowers](https://github.com/llastflowers)! - Add `data-component` attributes for Blankslate, BranchName, Breadcrumbs, ButtonGroup, Checkbox, CheckboxGroup, CircleBadge, ConfirmationDialog, CounterLabel, and Dialog to provide stable selectors. + +- [#7816](https://github.com/primer/react/pull/7816) [`aef8548`](https://github.com/primer/react/commit/aef85486a77a544ab36fcc18470dc06bf2502b09) Thanks [@iansan5653](https://github.com/iansan5653)! - Replace `ActionBar` overflow calculations with CSS wrapping approach to improve performance and stability + +- [#7831](https://github.com/primer/react/pull/7831) [`0de97c2`](https://github.com/primer/react/commit/0de97c25ae2adb026b04f7cac46463779ff023a1) Thanks [@liuliu-dev](https://github.com/liuliu-dev)! - Dialog: Support custom width values. + +- [#7819](https://github.com/primer/react/pull/7819) [`8ed6149`](https://github.com/primer/react/commit/8ed6149b45093449c6e12a71a374618fe282d6a1) Thanks [@llastflowers](https://github.com/llastflowers)! - Add `data-component` attributes for Details, Flash, FormControl (+ update InputValidation to forward from FormControl.Validation), Header, and Heading. + +### Patch Changes + +- [#7842](https://github.com/primer/react/pull/7842) [`635357e`](https://github.com/primer/react/commit/635357e7d2963bb594718a754fb7f53c1f917c41) Thanks [@joshblack](https://github.com/joshblack)! - DataTable: Treat zero as a populated value when sorting numeric columns + +- [#7824](https://github.com/primer/react/pull/7824) [`6889235`](https://github.com/primer/react/commit/6889235fac93f17cfd0354758f4f9a1e6ff01942) Thanks [@jonrohan](https://github.com/jonrohan)! - Fix `usePaneWidth` triggering unnecessary React re-renders on every window resize + +- [#7833](https://github.com/primer/react/pull/7833) [`dfed7ca`](https://github.com/primer/react/commit/dfed7ca73532922ec0526dd85afcf7ae471c566e) Thanks [@copilot-swe-agent](https://github.com/apps/copilot-swe-agent)! - Timeline: Remove border override from TimelineBadge when variant is set + ## 38.23.0 ### Minor Changes diff --git a/packages/react/package.json b/packages/react/package.json index 665179de202..ed09e9de487 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -1,7 +1,7 @@ { "name": "@primer/react", "type": "module", - "version": "38.23.0", + "version": "38.24.0", "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 98020a36fe5..5f5f83fcbe3 100644 --- a/packages/styled-react/CHANGELOG.md +++ b/packages/styled-react/CHANGELOG.md @@ -1,5 +1,11 @@ # @primer/styled-react +## 1.0.9 + +### Patch Changes + +- [#7806](https://github.com/primer/react/pull/7806) [`36a4922`](https://github.com/primer/react/commit/36a4922bb12dc4abf135c7ac035dd3cc73075693) Thanks [@jonrohan](https://github.com/jonrohan)! - Removing `ActionList, Box, Button, Dialog, Flash, FormControl, Header, Heading, IconButton, Label, Link, LinkButton, SegmentedControl, Spinner, Text, TextInput, ToggleSwitch, UnderlineNav, DialogV1, Octicon, TabNav` from the @primer/styled-react package + ## 1.0.8 ### Patch Changes diff --git a/packages/styled-react/package.json b/packages/styled-react/package.json index 46fb7377aa6..d9a229b383b 100644 --- a/packages/styled-react/package.json +++ b/packages/styled-react/package.json @@ -1,6 +1,6 @@ { "name": "@primer/styled-react", - "version": "1.0.8", + "version": "1.0.9", "type": "module", "exports": { ".": { @@ -41,7 +41,7 @@ "@babel/preset-react": "^7.28.5", "@babel/preset-typescript": "^7.28.5", "@primer/primitives": "10.x || 11.x", - "@primer/react": "^38.23.0", + "@primer/react": "^38.24.0", "@rollup/plugin-babel": "^6.1.0", "@storybook/react-vite": "^10.3.3", "@types/react": "18.3.11",