Skip to content

Commit f4b2979

Browse files
authored
Merge branch 'main' into configureable-confirmation-dialog-autofocus
2 parents e016508 + 5321f1c commit f4b2979

File tree

133 files changed

+10041
-4221
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

133 files changed

+10041
-4221
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@primer/react': patch
3+
---
4+
5+
ActionMenu: Remove focus trap to enable Tab and Shift+Tab behavior and fix initial focus on click

.changeset/breezy-trainers-drop.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@primer/react': patch
3+
---
4+
5+
Updates SegmentedControl styles to use component primitives.

.changeset/cyan-frogs-pump.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@primer/react': patch
3+
---
4+
5+
update types to allow children for react 18

.changeset/empty-garlics-clean.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
"@primer/react": minor
3+
---
4+
5+
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:
6+
7+
```jsx
8+
// Hide pane on narrow viewports
9+
<PageLayout.Pane hidden={{narrow: true}}>...</PageLayout.Pane>
10+
```

.changeset/fair-tips-travel.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
"@primer/react": minor
3+
---
4+
5+
* Updated the `position` prop in `PageLayout.Pane` to use the new responsive prop API introduced in https://github.com/primer/react/pull/2174.
6+
* Deprecated the `positionWhenNarrow` prop in favor of the new responsive prop API
7+
8+
**Before**
9+
10+
```
11+
position="start"
12+
positionWhenNarrow="end"
13+
```
14+
15+
**After**
16+
17+
```
18+
position={{regular: 'start', narrow: 'end'}}
19+
```

.changeset/odd-donuts-raise.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@primer/react': patch
3+
---
4+
5+
button should be polymorphic
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@primer/react': minor
3+
---
4+
5+
Adds support for a responsive 'variant' prop to the SegmentedControl component

.changeset/spotty-parents-cheat.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
"@primer/react": minor
3+
---
4+
5+
* 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.
6+
* Deprecated the `dividerWhenNarrow` prop in favor of the new responsive prop API
7+
8+
**Before**
9+
10+
```
11+
divider="line"
12+
dividerWhenNarrow="filled"
13+
```
14+
15+
**After**
16+
17+
```
18+
divider={{regular: 'line', narrow: 'filled'}}
19+
```
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: 'Storybook Tests'
2+
on:
3+
pull_request:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
test:
10+
timeout-minutes: 60
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v2
14+
- uses: actions/setup-node@v2
15+
- name: Install dependencies
16+
run: npm i
17+
- name: Install Playwright
18+
run: npx playwright install --with-deps
19+
- name: Build Storybook
20+
run: npm run build:storybook:visual-testing --quiet
21+
- name: Serve Storybook and run tests
22+
run: |
23+
npx concurrently -k -s first -n "SB,TEST" -c "magenta,blue" \
24+
"npx http-server storybook-static --port 6006 --silent" \
25+
"npx wait-on tcp:6006 && npm run test:storybook"

.storybook/main.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ module.exports = {
33
addons: [
44
'@storybook/addon-a11y',
55
'@storybook/addon-links',
6+
'@storybook/addon-interactions',
67
{name: '@storybook/addon-essentials', options: {backgrounds: false}},
78
'storybook-addon-performance/register',
89
{name: 'storybook-addon-turbo-build', options: {optimizationLevel: 2}},
@@ -13,5 +14,8 @@ module.exports = {
1314
babel: options => {
1415
options.plugins.push(['open-source', {editor: process.env.NODE_ENV === 'production' ? 'github' : 'vscode'}])
1516
return options
17+
},
18+
features: {
19+
interactionsDebugger: true
1620
}
1721
}

0 commit comments

Comments
 (0)