Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .changeset/odd-apes-guess.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
"@primer/react": major
---

`PageLayout` has been moved from the `drafts` bundle to the main bundle. To upgrade, rewrite your imports accordingly:

```diff
- import {PageLayout} from '@primer/react/drafts'
+ import {PageLayout} from '@primer/react'
```
1 change: 0 additions & 1 deletion src/drafts/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,3 @@ export * from '../Button2'
export * from '../ActionMenu2'
export * from '../DropdownMenu2'
export * from '../Label2'
export * from '../PageLayout'
8 changes: 8 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,14 @@ export {default as Grid} from './Grid'
export type {GridProps} from './Grid'
export {default as Position, Absolute, Fixed, Relative, Sticky} from './Position'
export type {PositionProps, AbsoluteProps, FixedProps, RelativeProps, StickyProps} from './Position'
export {PageLayout} from './PageLayout'
export type {
PageLayoutProps,
PageLayoutHeaderProps,
PageLayoutContentProps,
PageLayoutPaneProps,
PageLayoutFooterProps
} from './PageLayout'

// Hooks
export {default as useDetails} from './hooks/useDetails'
Expand Down