File tree Expand file tree Collapse file tree 5 files changed +28
-7
lines changed
src/@primer/gatsby-theme-doctocat Expand file tree Collapse file tree 5 files changed +28
-7
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " @primer/react " : major
3
+ ---
4
+
5
+ ` PageLayout ` is being graduated from the ` drafts ` bundle to the ` main ` bundle.
6
+
7
+ To upgrade, rewrite your imports accordingly:
8
+
9
+ ``` diff
10
+ - import {PageLayout} from '@primer/react/drafts'
11
+ + import {PageLayout} from '@primer/react'
12
+ ```
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ storybook: https://primer.style/react/storybook?path=/story/layout-pagelayout--p
7
7
---
8
8
9
9
``` js
10
- import {PageLayout } from ' @primer/react/drafts '
10
+ import {PageLayout } from ' @primer/react'
11
11
```
12
12
13
13
## Examples
@@ -20,7 +20,7 @@ See [storybook](https://primer.style/react/storybook?path=/story/layout-pagelayo
20
20
21
21
### Default
22
22
23
- ``` jsx live drafts
23
+ ``` jsx live
24
24
< PageLayout>
25
25
< PageLayout .Header >
26
26
< Placeholder label= " Header" height= {64 } / >
@@ -39,7 +39,7 @@ See [storybook](https://primer.style/react/storybook?path=/story/layout-pagelayo
39
39
40
40
### With dividers
41
41
42
- ``` jsx live drafts
42
+ ``` jsx live
43
43
< PageLayout>
44
44
< PageLayout .Header divider= " line" >
45
45
< Placeholder label= " Header" height= {64 } / >
@@ -58,7 +58,7 @@ See [storybook](https://primer.style/react/storybook?path=/story/layout-pagelayo
58
58
59
59
### With pane on left
60
60
61
- ``` jsx live drafts
61
+ ``` jsx live
62
62
< PageLayout>
63
63
< PageLayout .Header >
64
64
< Placeholder label= " Header" height= {64 } / >
@@ -77,7 +77,7 @@ See [storybook](https://primer.style/react/storybook?path=/story/layout-pagelayo
77
77
78
78
### With condensed spacing
79
79
80
- ``` jsx live drafts
80
+ ``` jsx live
81
81
< PageLayout padding= " condensed" rowGap= " condensed" columnGap= " condensed" >
82
82
< PageLayout .Header >
83
83
< Placeholder label= " Header" height= {64 } / >
@@ -96,7 +96,7 @@ See [storybook](https://primer.style/react/storybook?path=/story/layout-pagelayo
96
96
97
97
### Without header or footer
98
98
99
- ``` jsx live drafts
99
+ ``` jsx live
100
100
< PageLayout>
101
101
< PageLayout .Content >
102
102
< Placeholder label= " Content" height= {240 } / >
Original file line number Diff line number Diff line change 87
87
url : /Overlay
88
88
- title : Pagehead
89
89
url : /Pagehead
90
+ - title : PageLayout
91
+ url : /PageLayout
90
92
- title : Pagination
91
93
url : /Pagination
92
94
- title : PointerBox
Original file line number Diff line number Diff line change @@ -11,4 +11,3 @@ export * from '../Button2'
11
11
export * from '../ActionMenu2'
12
12
export * from '../DropdownMenu2'
13
13
export * from '../Label2'
14
- export * from '../PageLayout'
Original file line number Diff line number Diff line change @@ -8,6 +8,14 @@ export type {ThemeProviderProps} from './ThemeProvider'
8
8
// Layout
9
9
export { default as Box } from './Box'
10
10
export type { BoxProps } from './Box'
11
+ export { PageLayout } from './PageLayout'
12
+ export type {
13
+ PageLayoutProps ,
14
+ PageLayoutHeaderProps ,
15
+ PageLayoutContentProps ,
16
+ PageLayoutPaneProps ,
17
+ PageLayoutFooterProps
18
+ } from './PageLayout'
11
19
12
20
// Hooks
13
21
export { default as useDetails } from './hooks/useDetails'
You can’t perform that action at this time.
0 commit comments