-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Editor: Move the sidebar component to the editor package (#61497)
Co-authored-by: youknowriad <[email protected]> Co-authored-by: Mamaduka <[email protected]> Co-authored-by: jameskoster <[email protected]>
- Loading branch information
1 parent
1eb7644
commit 293537d
Showing
23 changed files
with
137 additions
and
253 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 0 additions & 5 deletions
5
packages/edit-post/src/components/sidebar/post-format/style.scss
This file was deleted.
Oops, something went wrong.
27 changes: 0 additions & 27 deletions
27
packages/edit-post/src/components/sidebar/post-pending-status/index.js
This file was deleted.
Oops, something went wrong.
27 changes: 0 additions & 27 deletions
27
packages/edit-post/src/components/sidebar/post-sticky/index.js
This file was deleted.
Oops, something went wrong.
12 changes: 0 additions & 12 deletions
12
packages/edit-post/src/components/sidebar/post-trash/index.js
This file was deleted.
Oops, something went wrong.
88 changes: 0 additions & 88 deletions
88
packages/edit-post/src/components/sidebar/post-visibility/index.js
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
packages/edit-post/src/components/sidebar/post-visibility/style.scss
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
[class].editor-post-format__suggestion { | ||
margin: $grid-unit-05 0 0 0; | ||
} | ||
|
||
.editor-post-format__panel { | ||
display: flex; | ||
flex-direction: column; | ||
align-items: stretch; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...c/components/sidebar/post-slug/style.scss → ...ditor/src/components/post-slug/style.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
.edit-post-post-slug { | ||
.editor-post-slug { | ||
display: flex; | ||
flex-direction: column; | ||
align-items: stretch; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
/** | ||
* Internal dependencies | ||
*/ | ||
import PostPanelRow from '../post-panel-row'; | ||
import PostStickyForm from './'; | ||
import PostStickyCheck from './check'; | ||
|
||
export function PostStickyPanel() { | ||
return ( | ||
<PostStickyCheck> | ||
<PostPanelRow> | ||
<PostStickyForm /> | ||
</PostPanelRow> | ||
</PostStickyCheck> | ||
); | ||
} | ||
|
||
export default PostStickyPanel; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/** | ||
* Internal dependencies | ||
*/ | ||
import PostTrashCheck from './check'; | ||
import PostTrashLink from './'; | ||
|
||
export default function PostTrashPanel() { | ||
return ( | ||
<PostTrashCheck> | ||
<PostTrashLink /> | ||
</PostTrashCheck> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
export const sidebars = { | ||
document: 'edit-post/document', | ||
block: 'edit-post/block', | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.