-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
migrate docs to adhere to the new naming strategy
- Loading branch information
Showing
84 changed files
with
380 additions
and
403 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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
22 changes: 7 additions & 15 deletions
22
.../components/code-example/code-example.jsx → .../src/app/components/CodeExample/index.jsx
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.
File renamed without changes.
File renamed without changes.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import React from 'react'; | ||
import CodeExample from '../../../CodeExample'; | ||
import PropTypeDescription from '../../../PropTypeDescription'; | ||
import MarkdownElement from '../../../MarkdownElement'; | ||
import appBarReadmeText from './README'; | ||
import AppBarExampleIcon from './ExampleIcon'; | ||
import appBarExampleIconCode from '!raw!./ExampleIcon'; | ||
import AppBarExampleIconButton from './ExampleIconButton'; | ||
import appBarExampleIconButtonCode from '!raw!./ExampleIconButton'; | ||
import AppBarExampleIconMenu from './ExampleIconMenu'; | ||
import appBarExampleIconMenuCode from '!raw!./ExampleIconMenu'; | ||
import appBarCode from '!raw!material-ui/lib/app-bar'; | ||
|
||
export default class AppBarPage extends React.Component { | ||
|
||
render() { | ||
return ( | ||
<div> | ||
<MarkdownElement text={appBarReadmeText} /> | ||
<CodeExample code={appBarExampleIconCode}> | ||
<AppBarExampleIcon /> | ||
</CodeExample> | ||
<CodeExample code={appBarExampleIconButtonCode}> | ||
<AppBarExampleIconButton /> | ||
</CodeExample> | ||
<CodeExample code={appBarExampleIconMenuCode}> | ||
<AppBarExampleIconMenu /> | ||
</CodeExample> | ||
<PropTypeDescription code={appBarCode}/> | ||
</div> | ||
); | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
12 changes: 6 additions & 6 deletions
12
...pp/components/pages/components/avatar.jsx → ...mponents/pages/components/Avatar/Page.jsx
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.
File renamed without changes.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import React from 'react'; | ||
import CodeExample from '../../../CodeExample'; | ||
import PropTypeDescription from '../../../PropTypeDescription'; | ||
import MarkdownElement from '../../../MarkdownElement'; | ||
import badgeReadmeText from './README'; | ||
import BadgeExampleSimple from './ExampleSimple'; | ||
import badgeExampleSimpleCode from '!raw!./ExampleSimple'; | ||
import BadgeExampleContent from './ExampleContent'; | ||
import badgeExampleContentCode from '!raw!./ExampleContent'; | ||
import badgeCode from '!raw!material-ui/lib/badge'; | ||
|
||
const BadgePage = () => { | ||
return ( | ||
<div> | ||
<MarkdownElement text={badgeReadmeText} /> | ||
<CodeExample code={badgeExampleSimpleCode}> | ||
<BadgeExampleSimple /> | ||
</CodeExample> | ||
<CodeExample code={badgeExampleContentCode}> | ||
<BadgeExampleContent /> | ||
</CodeExample> | ||
<PropTypeDescription code={badgeCode}/> | ||
</div> | ||
); | ||
}; | ||
|
||
export default BadgePage; |
File renamed without changes.
38 changes: 38 additions & 0 deletions
38
docs/src/app/components/pages/components/Cards/ExampleWithAvatar.jsx
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,38 @@ | ||
import React from 'react'; | ||
import Avatar from 'material-ui/lib/avatar'; | ||
import Card from 'material-ui/lib/card/card'; | ||
import CardActions from 'material-ui/lib/card/card-actions'; | ||
import CardHeader from 'material-ui/lib/card/card-header'; | ||
import CardMedia from 'material-ui/lib/card/card-media'; | ||
import CardTitle from 'material-ui/lib/card/card-title'; | ||
import FlatButton from 'material-ui/lib/flat-button'; | ||
import CardText from 'material-ui/lib/card/card-text'; | ||
|
||
const CardExampleWithAvatar = () => ( | ||
<Card> | ||
<CardHeader | ||
title="Title" | ||
subtitle="Subtitle" | ||
avatar={<Avatar style={{color: 'red'}}>A</Avatar>}/> | ||
<CardHeader | ||
title="Demo Url Based Avatar" | ||
subtitle="Subtitle" | ||
avatar="http://lorempixel.com/100/100/nature/"/> | ||
<CardMedia overlay={<CardTitle title="Title" subtitle="Subtitle"/>}> | ||
<img src="http://lorempixel.com/600/337/nature/"/> | ||
</CardMedia> | ||
<CardTitle title="Title" subtitle="Subtitle"/> | ||
<CardActions> | ||
<FlatButton label="Action1"/> | ||
<FlatButton label="Action2"/> | ||
</CardActions> | ||
<CardText> | ||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. | ||
Donec mattis pretium massa. Aliquam erat volutpat. Nulla facilisi. | ||
Donec vulputate interdum sollicitudin. Nunc lacinia auctor quam sed pellentesque. | ||
Aliquam dui mauris, mattis quis lacus id, pellentesque lobortis odio. | ||
</CardText> | ||
</Card> | ||
); | ||
|
||
export default CardExampleWithAvatar; |
34 changes: 34 additions & 0 deletions
34
docs/src/app/components/pages/components/Cards/ExampleWithoutAvatar.jsx
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 @@ | ||
import React from 'react'; | ||
import Card from 'material-ui/lib/card/card'; | ||
import CardActions from 'material-ui/lib/card/card-actions'; | ||
import CardHeader from 'material-ui/lib/card/card-header'; | ||
import FlatButton from 'material-ui/lib/flat-button'; | ||
import CardText from 'material-ui/lib/card/card-text'; | ||
|
||
const CardExampleWithoutAvatar = () => ( | ||
<Card initiallyExpanded={true}> | ||
<CardHeader | ||
title="Without Avatar" | ||
subtitle="Subtitle" | ||
actAsExpander={true} | ||
showExpandableButton={true} /> | ||
<CardText expandable={true}> | ||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. | ||
Donec mattis pretium massa. Aliquam erat volutpat. Nulla facilisi. | ||
Donec vulputate interdum sollicitudin. Nunc lacinia auctor quam sed pellentesque. | ||
Aliquam dui mauris, mattis quis lacus id, pellentesque lobortis odio. | ||
</CardText> | ||
<CardActions expandable={true}> | ||
<FlatButton label="Action1"/> | ||
<FlatButton label="Action2"/> | ||
</CardActions> | ||
<CardText expandable={true}> | ||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. | ||
Donec mattis pretium massa. Aliquam erat volutpat. Nulla facilisi. | ||
Donec vulputate interdum sollicitudin. Nunc lacinia auctor quam sed pellentesque. | ||
Aliquam dui mauris, mattis quis lacus id, pellentesque lobortis odio. | ||
</CardText> | ||
</Card> | ||
); | ||
|
||
export default CardExampleWithoutAvatar; |
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,27 @@ | ||
import React from 'react'; | ||
import CodeExample from '../../../CodeExample'; | ||
import PropTypeDescription from '../../../PropTypeDescription'; | ||
import MarkdownElement from '../../../MarkdownElement'; | ||
import cardReadmeText from './README'; | ||
import cardExampleWithAvatarCode from '!raw!./ExampleWithAvatar'; | ||
import CardExampleWithAvatar from './ExampleWithAvatar'; | ||
import cardExampleWithoutAvatarCode from '!raw!./ExampleWithoutAvatar'; | ||
import CardExampleWithoutAvatar from './ExampleWithoutAvatar'; | ||
import cardCode from '!raw!material-ui/lib/card/card'; | ||
|
||
export default class CardPage extends React.Component { | ||
render() { | ||
return ( | ||
<div> | ||
<MarkdownElement text={cardReadmeText} /> | ||
<CodeExample code={cardExampleWithAvatarCode}> | ||
<CardExampleWithAvatar /> | ||
</CodeExample> | ||
<CodeExample code={cardExampleWithoutAvatarCode}> | ||
<CardExampleWithoutAvatar /> | ||
</CodeExample> | ||
<PropTypeDescription code={cardCode} /> | ||
</div> | ||
); | ||
} | ||
} |
9 changes: 5 additions & 4 deletions
9
docs/src/app/components/Card/README.md → ...mponents/pages/components/Cards/README.md
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.
File renamed without changes.
Oops, something went wrong.