From 6f7cd021da65fcc0d30217797e6671f76e897bff Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Mon, 8 Aug 2022 23:56:59 +0000 Subject: [PATCH] Version Packages --- .changeset/actionmenu-remove-focus-trap.md | 5 -- .changeset/breezy-trainers-drop.md | 5 -- .changeset/bright-timers-jog.md | 5 -- .changeset/chilly-frogs-act.md | 5 -- .changeset/cuddly-bags-sort.md | 5 -- .changeset/cyan-frogs-pump.md | 5 -- .changeset/empty-garlics-clean.md | 10 --- .changeset/fair-tips-travel.md | 19 ------ .changeset/funny-roses-impress.md | 5 -- .changeset/grumpy-rings-sit.md | 5 -- .changeset/hip-buses-eat.md | 5 -- .changeset/lucky-pianos-yell.md | 5 -- .changeset/odd-donuts-raise.md | 5 -- .changeset/old-experts-applaud.md | 7 -- .changeset/pretty-students-judge.md | 5 -- .changeset/red-wombats-whisper.md | 5 -- .changeset/spotty-parents-cheat.md | 19 ------ .changeset/wicked-otters-warn.md | 5 -- CHANGELOG.md | 79 ++++++++++++++++++++++ package.json | 4 +- 20 files changed, 81 insertions(+), 127 deletions(-) delete mode 100644 .changeset/actionmenu-remove-focus-trap.md delete mode 100644 .changeset/breezy-trainers-drop.md delete mode 100644 .changeset/bright-timers-jog.md delete mode 100644 .changeset/chilly-frogs-act.md delete mode 100644 .changeset/cuddly-bags-sort.md delete mode 100644 .changeset/cyan-frogs-pump.md delete mode 100644 .changeset/empty-garlics-clean.md delete mode 100644 .changeset/fair-tips-travel.md delete mode 100644 .changeset/funny-roses-impress.md delete mode 100644 .changeset/grumpy-rings-sit.md delete mode 100644 .changeset/hip-buses-eat.md delete mode 100644 .changeset/lucky-pianos-yell.md delete mode 100644 .changeset/odd-donuts-raise.md delete mode 100644 .changeset/old-experts-applaud.md delete mode 100644 .changeset/pretty-students-judge.md delete mode 100644 .changeset/red-wombats-whisper.md delete mode 100644 .changeset/spotty-parents-cheat.md delete mode 100644 .changeset/wicked-otters-warn.md diff --git a/.changeset/actionmenu-remove-focus-trap.md b/.changeset/actionmenu-remove-focus-trap.md deleted file mode 100644 index 92d765283b0..00000000000 --- a/.changeset/actionmenu-remove-focus-trap.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@primer/react': patch ---- - -ActionMenu: Remove focus trap to enable Tab and Shift+Tab behavior and fix initial focus on click diff --git a/.changeset/breezy-trainers-drop.md b/.changeset/breezy-trainers-drop.md deleted file mode 100644 index 556c1b71326..00000000000 --- a/.changeset/breezy-trainers-drop.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@primer/react': patch ---- - -Updates SegmentedControl styles to use component primitives. diff --git a/.changeset/bright-timers-jog.md b/.changeset/bright-timers-jog.md deleted file mode 100644 index 712bc028e8c..00000000000 --- a/.changeset/bright-timers-jog.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@primer/react': minor ---- - -Adds responsive behavior to SegmentedControl's `fullWidth` prop. diff --git a/.changeset/chilly-frogs-act.md b/.changeset/chilly-frogs-act.md deleted file mode 100644 index 95686eb4fab..00000000000 --- a/.changeset/chilly-frogs-act.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@primer/react': patch ---- - -Support issues closed as not planned, and correct the standard issue closed backgroud colour diff --git a/.changeset/cuddly-bags-sort.md b/.changeset/cuddly-bags-sort.md deleted file mode 100644 index d9ae0c3c250..00000000000 --- a/.changeset/cuddly-bags-sort.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@primer/react": patch ---- - -Add `InlineAutocomplete` component, `useCombobox` hook, and `useSyntheticChange` hook to drafts diff --git a/.changeset/cyan-frogs-pump.md b/.changeset/cyan-frogs-pump.md deleted file mode 100644 index a1edc6a7223..00000000000 --- a/.changeset/cyan-frogs-pump.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@primer/react': patch ---- - -update types to allow children for react 18 diff --git a/.changeset/empty-garlics-clean.md b/.changeset/empty-garlics-clean.md deleted file mode 100644 index ffb84d52778..00000000000 --- a/.changeset/empty-garlics-clean.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -"@primer/react": minor ---- - -Add a responsive `hidden` prop to `PageLayout.Header`, `PageLayout.Pane`, `PageLayout.Content`, and `PageLayout.Footer` that allows you to hide layout regions based on the viewport width. Example usage: - -```jsx -// Hide pane on narrow viewports - -``` diff --git a/.changeset/fair-tips-travel.md b/.changeset/fair-tips-travel.md deleted file mode 100644 index 1dd8f13d944..00000000000 --- a/.changeset/fair-tips-travel.md +++ /dev/null @@ -1,19 +0,0 @@ ---- -"@primer/react": minor ---- - -* Updated the `position` prop in `PageLayout.Pane` to use the new responsive prop API introduced in https://github.com/primer/react/pull/2174. -* Deprecated the `positionWhenNarrow` prop in favor of the new responsive prop API - -**Before** - -``` -position="start" -positionWhenNarrow="end" -``` - -**After** - -``` -position={{regular: 'start', narrow: 'end'}} -``` diff --git a/.changeset/funny-roses-impress.md b/.changeset/funny-roses-impress.md deleted file mode 100644 index 16e99ea1919..00000000000 --- a/.changeset/funny-roses-impress.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@primer/react": minor ---- - -Add `padding` prop to `PageLayout.Header`, `PageLayout.Content`, `PageLayout.Pane`, and `PageLayout.Footer` diff --git a/.changeset/grumpy-rings-sit.md b/.changeset/grumpy-rings-sit.md deleted file mode 100644 index 7e287caea5f..00000000000 --- a/.changeset/grumpy-rings-sit.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@primer/react': patch ---- - -Updates styles for the Select component so that the focus outline is even all the way around. diff --git a/.changeset/hip-buses-eat.md b/.changeset/hip-buses-eat.md deleted file mode 100644 index 8e9e703d996..00000000000 --- a/.changeset/hip-buses-eat.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@primer/react": patch ---- - -Change `createSlots` to use layout effects when registering slots diff --git a/.changeset/lucky-pianos-yell.md b/.changeset/lucky-pianos-yell.md deleted file mode 100644 index c4d16e77efb..00000000000 --- a/.changeset/lucky-pianos-yell.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@primer/react': patch ---- - -Set ConfirmationDialog initial focus based on the confirmationButtonVariant. When `danger` autoFocus the cancel button, otherwise autoFocus the confirmation button diff --git a/.changeset/odd-donuts-raise.md b/.changeset/odd-donuts-raise.md deleted file mode 100644 index faf2dea7354..00000000000 --- a/.changeset/odd-donuts-raise.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@primer/react': patch ---- - -button should be polymorphic diff --git a/.changeset/old-experts-applaud.md b/.changeset/old-experts-applaud.md deleted file mode 100644 index 12c5b68ed33..00000000000 --- a/.changeset/old-experts-applaud.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'@primer/react': patch ---- - -- Fixes `role` and keyboard behavior for SegmentedControl. -- Fixes a bug where icon-only SegmentedControl buttons did not fill the parent width when the `fullWidth` prop was set -- Fixes a bug where click handlers were not passed correctly when the responsive variant was set to `'hideLabels'` diff --git a/.changeset/pretty-students-judge.md b/.changeset/pretty-students-judge.md deleted file mode 100644 index eb858eb30c8..00000000000 --- a/.changeset/pretty-students-judge.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@primer/react': minor ---- - -Adds support for a responsive 'variant' prop to the SegmentedControl component diff --git a/.changeset/red-wombats-whisper.md b/.changeset/red-wombats-whisper.md deleted file mode 100644 index 67707fad452..00000000000 --- a/.changeset/red-wombats-whisper.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@primer/react": patch ---- - -Replace `useCombinedRefs` with `useRefObjectAsForwardedRef` diff --git a/.changeset/spotty-parents-cheat.md b/.changeset/spotty-parents-cheat.md deleted file mode 100644 index 54544ed8632..00000000000 --- a/.changeset/spotty-parents-cheat.md +++ /dev/null @@ -1,19 +0,0 @@ ---- -"@primer/react": minor ---- - -* Updated the `divider` prop in `PageLayout.Header`, `PageLayout.Pane`, and `PageLayout.Footer` to use the new responsive prop API introduced in https://github.com/primer/react/pull/2174. -* Deprecated the `dividerWhenNarrow` prop in favor of the new responsive prop API - -**Before** - -``` -divider="line" -dividerWhenNarrow="filled" -``` - -**After** - -``` -divider={{regular: 'line', narrow: 'filled'}} -``` diff --git a/.changeset/wicked-otters-warn.md b/.changeset/wicked-otters-warn.md deleted file mode 100644 index 43cede4e2f1..00000000000 --- a/.changeset/wicked-otters-warn.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@primer/react': patch ---- - -Overlay documentation fixes diff --git a/CHANGELOG.md b/CHANGELOG.md index 986aaca7f15..23c2352b06c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,84 @@ # @primer/components +## 35.6.0 + +### Minor Changes + +- [#2191](https://github.com/primer/react/pull/2191) [`7edf1347`](https://github.com/primer/react/commit/7edf134757837e3a8b71bf31f67242226b1a2fd2) Thanks [@mperrotti](https://github.com/mperrotti)! - Adds responsive behavior to SegmentedControl's `fullWidth` prop. + +* [#2174](https://github.com/primer/react/pull/2174) [`62dbc981`](https://github.com/primer/react/commit/62dbc9810f93cf16f17fce412c47ac2bf885a89e) Thanks [@colebemis](https://github.com/colebemis)! - Add a responsive `hidden` prop to `PageLayout.Header`, `PageLayout.Pane`, `PageLayout.Content`, and `PageLayout.Footer` that allows you to hide layout regions based on the viewport width. Example usage: + + ```jsx + // Hide pane on narrow viewports + + ``` + +- [#2199](https://github.com/primer/react/pull/2199) [`fb385b63`](https://github.com/primer/react/commit/fb385b63f22c1eb76193e42e92ea2a056e61fdbb) Thanks [@colebemis](https://github.com/colebemis)! - \* Updated the `position` prop in `PageLayout.Pane` to use the new responsive prop API introduced in https://github.com/primer/react/pull/2174. + + - Deprecated the `positionWhenNarrow` prop in favor of the new responsive prop API + + **Before** + + ``` + position="start" + positionWhenNarrow="end" + ``` + + **After** + + ``` + position={{regular: 'start', narrow: 'end'}} + ``` + +* [#2201](https://github.com/primer/react/pull/2201) [`885064ed`](https://github.com/primer/react/commit/885064edda758f59eb0ce2031632d9924ea6987d) Thanks [@colebemis](https://github.com/colebemis)! - Add `padding` prop to `PageLayout.Header`, `PageLayout.Content`, `PageLayout.Pane`, and `PageLayout.Footer` + +- [#2164](https://github.com/primer/react/pull/2164) [`2b5c86e5`](https://github.com/primer/react/commit/2b5c86e59f16d697433e3302e78d623a177a061e) Thanks [@mperrotti](https://github.com/mperrotti)! - Adds support for a responsive 'variant' prop to the SegmentedControl component + +* [#2198](https://github.com/primer/react/pull/2198) [`4d9b7db9`](https://github.com/primer/react/commit/4d9b7db9d82ca5ac58c2b7e745fad782c6e852b5) Thanks [@colebemis](https://github.com/colebemis)! - \* Updated the `divider` prop in `PageLayout.Header`, `PageLayout.Pane`, and `PageLayout.Footer` to use the new responsive prop API introduced in https://github.com/primer/react/pull/2174. + + - Deprecated the `dividerWhenNarrow` prop in favor of the new responsive prop API + + **Before** + + ``` + divider="line" + dividerWhenNarrow="filled" + ``` + + **After** + + ``` + divider={{regular: 'line', narrow: 'filled'}} + ``` + +### Patch Changes + +- [#2024](https://github.com/primer/react/pull/2024) [`5321f1c9`](https://github.com/primer/react/commit/5321f1c9731087378860d7623480fa0997b6dcd4) Thanks [@siddharthkp](https://github.com/siddharthkp)! - ActionMenu: Remove focus trap to enable Tab and Shift+Tab behavior and fix initial focus on click + +* [#2186](https://github.com/primer/react/pull/2186) [`e28aadbd`](https://github.com/primer/react/commit/e28aadbdf1c5b0d03aba83dcfbe1c77746cfcf97) Thanks [@mperrotti](https://github.com/mperrotti)! - Updates SegmentedControl styles to use component primitives. + +- [#2171](https://github.com/primer/react/pull/2171) [`384ae6b9`](https://github.com/primer/react/commit/384ae6b9adb2bcf1389e2059cbd68f319cc2e56d) Thanks [@anleac](https://github.com/anleac)! - Support issues closed as not planned, and correct the standard issue closed backgroud colour + +* [#2157](https://github.com/primer/react/pull/2157) [`77e7ab05`](https://github.com/primer/react/commit/77e7ab057bef5394e757356c58ca7ae0f0bfdb64) Thanks [@iansan5653](https://github.com/iansan5653)! - Add `InlineAutocomplete` component, `useCombobox` hook, and `useSyntheticChange` hook to drafts + +- [#2196](https://github.com/primer/react/pull/2196) [`5ff5bb81`](https://github.com/primer/react/commit/5ff5bb81f68dc533b2d32fd3f24863c2699ca8f3) Thanks [@mattcosta7](https://github.com/mattcosta7)! - update types to allow children for react 18 + +* [#2173](https://github.com/primer/react/pull/2173) [`ed609719`](https://github.com/primer/react/commit/ed60971944316279bb48128f3fb466dd2385a36e) Thanks [@mperrotti](https://github.com/mperrotti)! - Updates styles for the Select component so that the focus outline is even all the way around. + +- [#2216](https://github.com/primer/react/pull/2216) [`82fd8c35`](https://github.com/primer/react/commit/82fd8c35e4017b34f03119d8eb99188b34bbd713) Thanks [@iansan5653](https://github.com/iansan5653)! - Change `createSlots` to use layout effects when registering slots + +* [#2185](https://github.com/primer/react/pull/2185) [`3756a1ed`](https://github.com/primer/react/commit/3756a1ede2054aee2179e58ac7bbe9d72b85e045) Thanks [@mattcosta7](https://github.com/mattcosta7)! - Set ConfirmationDialog initial focus based on the confirmationButtonVariant. When `danger` autoFocus the cancel button, otherwise autoFocus the confirmation button + +- [#2166](https://github.com/primer/react/pull/2166) [`75d21745`](https://github.com/primer/react/commit/75d21745daa8e50f707a80a4358a86163c64453c) Thanks [@mattcosta7](https://github.com/mattcosta7)! - button should be polymorphic + +* [#2220](https://github.com/primer/react/pull/2220) [`f4ef7b4b`](https://github.com/primer/react/commit/f4ef7b4b1ba2d709847bda7c531d810db63e7d03) Thanks [@mperrotti](https://github.com/mperrotti)! - - Fixes `role` and keyboard behavior for SegmentedControl. + - Fixes a bug where icon-only SegmentedControl buttons did not fill the parent width when the `fullWidth` prop was set + - Fixes a bug where click handlers were not passed correctly when the responsive variant was set to `'hideLabels'` + +- [#2204](https://github.com/primer/react/pull/2204) [`522f5806`](https://github.com/primer/react/commit/522f580666295ba4ca05e226ea773f6fbc8407bc) Thanks [@iansan5653](https://github.com/iansan5653)! - Replace `useCombinedRefs` with `useRefObjectAsForwardedRef` + +* [#2221](https://github.com/primer/react/pull/2221) [`9ce64937`](https://github.com/primer/react/commit/9ce64937ce234d65f3e4ab28bfed1a71aac9a4de) Thanks [@josepmartins](https://github.com/josepmartins)! - Overlay documentation fixes + ## 35.5.0 ### Minor Changes diff --git a/package.json b/package.json index 2489a4a4605..55366129cb6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@primer/react", - "version": "35.5.0", + "version": "35.6.0", "description": "An implementation of GitHub's Primer Design System using React", "main": "lib/index.js", "module": "lib-esm/index.js", @@ -47,7 +47,7 @@ "lint": "eslint '**/*.{js,ts,tsx,md,mdx}' --max-warnings=0", "lint:fix": "npm run lint -- --fix", "test": "jest", - "test:storybook":"test-storybook", + "test:storybook": "test-storybook", "test:update": "npm run test -- --updateSnapshot", "test:type-check": "tsc --noEmit", "release": "npm run build && changeset publish",