Skip to content

Commit 01923c3

Browse files
authored
Move Stack out of drafts (#4747)
* move stack out of drafts * update imports * updating things * snaps
1 parent a9730c9 commit 01923c3

File tree

5 files changed

+9
-3
lines changed

5 files changed

+9
-3
lines changed

e2e/components/Stack.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ test.describe('Stack', () => {
1717

1818
test(`${id} @vrt`, async ({page}) => {
1919
await visit(page, {
20-
id: 'drafts-components-stack--playground',
20+
id: 'components-stack--playground',
2121
args: scenario,
2222
})
2323
expect(await page.screenshot()).toMatchSnapshot(`Stack.${id}.png`)

packages/react/src/Stack/Stack.docs.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"status": "alpha",
55
"a11yReviewed": false,
66
"stories": [],
7-
"importPath": "@primer/react/experimental",
7+
"importPath": "@primer/react",
88
"props": [
99
{
1010
"name": "gap",

packages/react/src/Stack/Stack.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import type {ResponsiveValue} from '../hooks/useResponsiveValue'
66
type Story = StoryObj<typeof Stack>
77

88
const meta: Meta<typeof Stack> = {
9-
title: 'Drafts/Components/Stack',
9+
title: 'Components/Stack',
1010
component: Stack,
1111
}
1212

packages/react/src/__tests__/__snapshots__/exports.test.ts.snap

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,9 @@ exports[`@primer/react should not update exports without a semver change 1`] = `
144144
"type SplitPageLayoutPaneProps",
145145
"type SplitPageLayoutProps",
146146
"SSRProvider",
147+
"Stack",
148+
"type StackItemProps",
149+
"type StackProps",
147150
"StateLabel",
148151
"type StateLabelProps",
149152
"SubNav",

packages/react/src/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,9 @@ export type {UnderlineNavProps, UnderlineNavItemProps} from './UnderlineNav'
196196
export {ActionBar} from './ActionBar'
197197
export type {ActionBarProps} from './ActionBar'
198198

199+
export {Stack} from './Stack'
200+
export type {StackProps, StackItemProps} from './Stack'
201+
199202
export {PageHeader} from './PageHeader'
200203
export type {PageHeaderProps} from './PageHeader'
201204

0 commit comments

Comments
 (0)