diff --git a/.changeset/angry-spoons-grin.md b/.changeset/angry-spoons-grin.md deleted file mode 100644 index c49e3e0e8ca..00000000000 --- a/.changeset/angry-spoons-grin.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -"@primer/react": patch ---- - -- Add a block prop for full width -- Add alignContent prop to align content to center or start for full width buttons -- Use control sizing CSS variable values (not using CSS vars just yet) -- Use height over padding for more control over sizing -- Adjust invisible button variant to match new design using ActionList colors - diff --git a/.changeset/chilly-rabbits-invent.md b/.changeset/chilly-rabbits-invent.md deleted file mode 100644 index b7f27103eb8..00000000000 --- a/.changeset/chilly-rabbits-invent.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@primer/react": patch ---- - -TreeView: Reliably move focus from loading item to first asynchronously loaded item diff --git a/.changeset/dull-lies-count.md b/.changeset/dull-lies-count.md deleted file mode 100644 index ef99402b69f..00000000000 --- a/.changeset/dull-lies-count.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@primer/react': minor ---- - -Issue a deprecation notice for UnderlineNav v1 diff --git a/.changeset/eleven-jokes-think.md b/.changeset/eleven-jokes-think.md deleted file mode 100644 index 5ac7c24582a..00000000000 --- a/.changeset/eleven-jokes-think.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@primer/react': minor ---- - -Addresses feedback from the accessibility team about our SegmentedControl component. These changes include an update to ActionMenu that allows u to specify the ID of the DOM node that labels the menu. diff --git a/.changeset/few-deers-work.md b/.changeset/few-deers-work.md deleted file mode 100644 index 4f0cb60d3b5..00000000000 --- a/.changeset/few-deers-work.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@primer/react": patch ---- - -TreeView: When moving focus to TreeView, the current item will be focused by default. diff --git a/.changeset/fifty-dolls-speak.md b/.changeset/fifty-dolls-speak.md deleted file mode 100644 index 5aa965233d9..00000000000 --- a/.changeset/fifty-dolls-speak.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@primer/react': minor ---- - -Confine Heading as prop to header element types diff --git a/.changeset/forty-squids-pretend.md b/.changeset/forty-squids-pretend.md deleted file mode 100644 index 4436d16bf75..00000000000 --- a/.changeset/forty-squids-pretend.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -"@primer/react": minor ---- - -TreeView promoted to [beta](https://primer.style/contribute/component-lifecycle#beta) status. You can now import it from the main bundle instead of `/drafts`: - -```diff -- import {TreeView} from '@primer/react/drafts' -+ import {TreeView} from '@primer/react' -``` diff --git a/.changeset/gentle-queens-rest.md b/.changeset/gentle-queens-rest.md deleted file mode 100644 index b3566b02286..00000000000 --- a/.changeset/gentle-queens-rest.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@primer/react': patch ---- - -UnderlineNav2: Handle the case when container is too small to render any items diff --git a/.changeset/giant-games-leave.md b/.changeset/giant-games-leave.md deleted file mode 100644 index c9bac2049f1..00000000000 --- a/.changeset/giant-games-leave.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@primer/react": patch ---- - -Add `aria-modal` attribute to `Dialog` (V2) element diff --git a/.changeset/moody-pugs-hear.md b/.changeset/moody-pugs-hear.md deleted file mode 100644 index ac38ea4c129..00000000000 --- a/.changeset/moody-pugs-hear.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@primer/react": patch ---- - -Upgrade primer/behaviors from 1.3.1 to 1.3.2 diff --git a/.changeset/odd-planes-peel.md b/.changeset/odd-planes-peel.md deleted file mode 100644 index 4d986c8cb47..00000000000 --- a/.changeset/odd-planes-peel.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@primer/react": patch ---- - -TreeView: Set aria-selected=true on focused item diff --git a/.changeset/rare-panthers-smash.md b/.changeset/rare-panthers-smash.md deleted file mode 100644 index 98872fa0c7d..00000000000 --- a/.changeset/rare-panthers-smash.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@primer/react': patch ---- - -CounterLabel: Do not parse children to string for visually hidden content diff --git a/.changeset/silent-rivers-sell.md b/.changeset/silent-rivers-sell.md deleted file mode 100644 index addb854fb6f..00000000000 --- a/.changeset/silent-rivers-sell.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@primer/react': patch ---- - -PageHeader: A11y eng review remediations diff --git a/.changeset/smooth-cameras-press.md b/.changeset/smooth-cameras-press.md deleted file mode 100644 index a7bedaab1d7..00000000000 --- a/.changeset/smooth-cameras-press.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@primer/react': patch ---- - -UnderlineNav2: Update total height of the navigation to `48px` diff --git a/.changeset/ten-peaches-breathe.md b/.changeset/ten-peaches-breathe.md deleted file mode 100644 index fec54d13a4a..00000000000 --- a/.changeset/ten-peaches-breathe.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@primer/react": patch ---- - -Fix `useDynamicTextareaHeight` not taking into account top padding of `textarea` - -Also makes the hook accept a `RefObject` instead of an element instance diff --git a/.changeset/tidy-rice-hammer.md b/.changeset/tidy-rice-hammer.md deleted file mode 100644 index 254d19a2d0a..00000000000 --- a/.changeset/tidy-rice-hammer.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@primer/react": patch ---- - -TabNav: Re-focusing a TabNav will focus the selected tab diff --git a/CHANGELOG.md b/CHANGELOG.md index 77bdadd8c05..914fa056806 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,55 @@ # @primer/components +## 35.20.0 + +### Minor Changes + +- [`5967b0a9`](https://github.com/primer/react/commit/5967b0a9b71b0d2296eada7031ff6c82ad1b17a4) Thanks [@broccolinisoup](https://github.com/broccolinisoup)! - Issue a deprecation notice for UnderlineNav v1 + +- [#2815](https://github.com/primer/react/pull/2815) [`74df59c4`](https://github.com/primer/react/commit/74df59c4e0df580dce7dd5c426fe44143d586b77) Thanks [@mperrotti](https://github.com/mperrotti)! - Addresses feedback from the accessibility team about our SegmentedControl component. These changes include an update to ActionMenu that allows u to specify the ID of the DOM node that labels the menu. + +- [#2768](https://github.com/primer/react/pull/2768) [`5055b91b`](https://github.com/primer/react/commit/5055b91b9cf40e163b9b19fa4a5bcc707adae329) Thanks [@green6erry](https://github.com/green6erry)! - Confine Heading as prop to header element types + +- [#2903](https://github.com/primer/react/pull/2903) [`13651ba1`](https://github.com/primer/react/commit/13651ba1ec73533900dc36501af307266d3a63c7) Thanks [@colebemis](https://github.com/colebemis)! - TreeView promoted to [beta](https://primer.style/contribute/component-lifecycle#beta) status. You can now import it from the main bundle instead of `/drafts`: + + ```diff + - import {TreeView} from '@primer/react/drafts' + + import {TreeView} from '@primer/react' + ``` + +### Patch Changes + +- [#2792](https://github.com/primer/react/pull/2792) [`03b470b0`](https://github.com/primer/react/commit/03b470b0eebc97a9c74483914ab638ae9cf11436) Thanks [@broccolinisoup](https://github.com/broccolinisoup)! - - Add a block prop for full width + + - Add alignContent prop to align content to center or start for full width buttons + - Use control sizing CSS variable values (not using CSS vars just yet) + - Use height over padding for more control over sizing + - Adjust invisible button variant to match new design using ActionList colors + +- [#2868](https://github.com/primer/react/pull/2868) [`03ebf41b`](https://github.com/primer/react/commit/03ebf41b0ae4681841455217661e768ef2237686) Thanks [@colebemis](https://github.com/colebemis)! - TreeView: Reliably move focus from loading item to first asynchronously loaded item + +- [#2845](https://github.com/primer/react/pull/2845) [`c31314c8`](https://github.com/primer/react/commit/c31314c84186999ed6d7d905c04c5aa67057d3b3) Thanks [@colebemis](https://github.com/colebemis)! - TreeView: When moving focus to TreeView, the current item will be focused by default. + +- [#2770](https://github.com/primer/react/pull/2770) [`3bf1b0e3`](https://github.com/primer/react/commit/3bf1b0e368df10180291de205573df6c85434343) Thanks [@broccolinisoup](https://github.com/broccolinisoup)! - UnderlineNav2: Handle the case when container is too small to render any items + +- [`d8f18435`](https://github.com/primer/react/commit/d8f184351f01092ac144b736fd694da07ae9254d) Thanks [@iansan5653](https://github.com/iansan5653)! - Add `aria-modal` attribute to `Dialog` (V2) element + +- [`3127e104`](https://github.com/primer/react/commit/3127e104c6f165e76866c1b834a9d092ca4ca19a) Thanks [@jbrown1618](https://github.com/jbrown1618)! - Upgrade primer/behaviors from 1.3.1 to 1.3.2 + +- [`2a00aab6`](https://github.com/primer/react/commit/2a00aab6a5424ff72f7cffcc75bc8a2fc9ecbc54) Thanks [@colebemis](https://github.com/colebemis)! - TreeView: Set aria-selected=true on focused item + +- [`ca7398df`](https://github.com/primer/react/commit/ca7398dfdda698c2eff9c3ed3744d7b7fee387ad) Thanks [@broccolinisoup](https://github.com/broccolinisoup)! - CounterLabel: Do not parse children to string for visually hidden content + +- [#2900](https://github.com/primer/react/pull/2900) [`3768cd7d`](https://github.com/primer/react/commit/3768cd7d3458081b07c8a21ec6a85cd59d286c39) Thanks [@broccolinisoup](https://github.com/broccolinisoup)! - PageHeader: A11y eng review remediations + +- [`8bce9740`](https://github.com/primer/react/commit/8bce974010967ab203e348a063ae2f2cdf996fe3) Thanks [@broccolinisoup](https://github.com/broccolinisoup)! - UnderlineNav2: Update total height of the navigation to `48px` + +- [`196a7929`](https://github.com/primer/react/commit/196a792964867c92b3beeaab6bbe4681aa10e1a4) Thanks [@iansan5653](https://github.com/iansan5653)! - Fix `useDynamicTextareaHeight` not taking into account top padding of `textarea` + + Also makes the hook accept a `RefObject` instead of an element instance + +- [#2845](https://github.com/primer/react/pull/2845) [`c31314c8`](https://github.com/primer/react/commit/c31314c84186999ed6d7d905c04c5aa67057d3b3) Thanks [@colebemis](https://github.com/colebemis)! - TabNav: Re-focusing a TabNav will focus the selected tab + ## 35.19.0 ### Minor Changes diff --git a/package.json b/package.json index 34f73cba370..18877dc9156 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@primer/react", - "version": "35.19.0", + "version": "35.20.0", "description": "An implementation of GitHub's Primer Design System using React", "main": "lib/index.js", "module": "lib-esm/index.js",