-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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 InterfaceSkeleton to the editor package (#62118)
Co-authored-by: youknowriad <[email protected]> Co-authored-by: draganescu <[email protected]>
- Loading branch information
1 parent
9c5897f
commit 097d4c6
Showing
25 changed files
with
432 additions
and
450 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
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,34 @@ | ||
/** | ||
* WordPress dependencies | ||
*/ | ||
import { privateApis as editorPrivateApis } from '@wordpress/editor'; | ||
import { __unstableMotion as motion } from '@wordpress/components'; | ||
|
||
/** | ||
* Internal dependencies | ||
*/ | ||
import FullscreenModeClose from './fullscreen-mode-close'; | ||
import { unlock } from '../../lock-unlock'; | ||
|
||
const { BackButton: BackButtonFill } = unlock( editorPrivateApis ); | ||
|
||
const slideX = { | ||
hidden: { x: '-100%' }, | ||
distractionFreeInactive: { x: 0 }, | ||
hover: { x: 0, transition: { type: 'tween', delay: 0.2 } }, | ||
}; | ||
|
||
function BackButton( { initialPost } ) { | ||
return ( | ||
<BackButtonFill> | ||
<motion.div | ||
variants={ slideX } | ||
transition={ { type: 'tween', delay: 0.8 } } | ||
> | ||
<FullscreenModeClose showTooltip initialPost={ initialPost } /> | ||
</motion.div> | ||
</BackButtonFill> | ||
); | ||
} | ||
|
||
export default BackButton; |
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
File renamed without changes.
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.