Skip to content

Commit

Permalink
Move <CardMedia /> to card-media/ subfolder
Browse files Browse the repository at this point in the history
  • Loading branch information
ciampo committed Jun 9, 2021
1 parent 33348bf commit 4c7361a
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 8 deletions.
6 changes: 6 additions & 0 deletions docs/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -731,6 +731,12 @@
"markdown_source": "../packages/components/src/card/card-header/README.md",
"parent": "components"
},
{
"title": "CardMedia",
"slug": "card-media",
"markdown_source": "../packages/components/src/card/card-media/README.md",
"parent": "components"
},
{
"title": "Card",
"slug": "card",
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import classnames from 'classnames';
/**
* Internal dependencies
*/
import { MediaUI } from './styles';
import { MediaUI } from '../styles';

export function CardMedia( props ) {
const { className, ...additionalProps } = props;
Expand Down
1 change: 1 addition & 0 deletions packages/components/src/card/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ export { default as CardBody } from './card-body';
export { default as CardDivider } from './card-divider';
export { default as CardFooter } from './card-footer';
export { default as CardHeader } from './card-header';
export { default as CardMedia } from './card-media';
3 changes: 1 addition & 2 deletions packages/components/src/card/stories/media.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ import styled from '@emotion/styled';
/**
* Internal dependencies
*/
import { Card, CardBody, CardFooter, CardHeader } from '../';
import CardMedia from '../media';
import { Card, CardBody, CardFooter, CardHeader, CardMedia } from '../';
import { getCardStoryProps } from './_utils';

export default { title: 'Components/Card/Media', component: CardMedia };
Expand Down
3 changes: 1 addition & 2 deletions packages/components/src/card/test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ import { mount, shallow } from 'enzyme';
/**
* Internal dependencies
*/
import { Card, CardBody, CardDivider, CardFooter, CardHeader } from '../';
import CardMedia from '../media';
import { Card, CardBody, CardDivider, CardFooter, CardHeader, CardMedia } from '../';

describe( 'Card', () => {
describe( 'basic rendering', () => {
Expand Down
2 changes: 1 addition & 1 deletion packages/components/src/card/test/media.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { shallow } from 'enzyme';
/**
* Internal dependencies
*/
import CardMedia from '../media';
import { CardMedia } from '../';

describe( 'CardMedia', () => {
describe( 'basic rendering', () => {
Expand Down
3 changes: 1 addition & 2 deletions packages/components/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ export { default as BaseControl } from './base-control';
export { default as __experimentalBoxControl } from './box-control';
export { default as Button } from './button';
export { default as ButtonGroup } from './button-group';
export { Card, CardBody, CardDivider, CardFooter, CardHeader } from './card';
export { default as CardMedia } from './card/media';
export { Card, CardBody, CardDivider, CardFooter, CardHeader, CardMedia } from './card';
export { default as CheckboxControl } from './checkbox-control';
export { default as ClipboardButton } from './clipboard-button';
export { default as __experimentalColorEdit } from './color-edit';
Expand Down

0 comments on commit 4c7361a

Please sign in to comment.