-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(Divider): refactor, use stateless functional express and add tra…
…iling . in description (#715)
- Loading branch information
1 parent
80a57d7
commit c482e5a
Showing
15 changed files
with
125 additions
and
139 deletions.
There are no files selected for viewing
10 changes: 0 additions & 10 deletions
10
docs/app/Examples/elements/Divider/Types/DividerDividerExample.js
This file was deleted.
Oops, something went wrong.
8 changes: 8 additions & 0 deletions
8
docs/app/Examples/elements/Divider/Types/DividerExampleDivider.js
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,8 @@ | ||
import React from 'react' | ||
import { Divider } from 'semantic-ui-react' | ||
|
||
const DividerExampleDivider = () => ( | ||
<Divider /> | ||
) | ||
|
||
export default DividerExampleDivider |
12 changes: 12 additions & 0 deletions
12
docs/app/Examples/elements/Divider/Types/DividerExampleHorizontal.js
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,12 @@ | ||
import React from 'react' | ||
import { Segment, Button, Divider } from 'semantic-ui-react' | ||
|
||
const DividerExampleHorizontal = () => ( | ||
<Segment padded> | ||
<Button primary fluid>Login</Button> | ||
<Divider horizontal>Or</Divider> | ||
<Button secondary fluid>Sign Up Now</Button> | ||
</Segment> | ||
) | ||
|
||
export default DividerExampleHorizontal |
26 changes: 26 additions & 0 deletions
26
docs/app/Examples/elements/Divider/Types/DividerExampleVertical.js
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,26 @@ | ||
import React from 'react' | ||
import { Grid, Segment, Divider } from 'semantic-ui-react' | ||
|
||
const DividerExampleVertical = () => ( | ||
<Grid columns={3} relaxed> | ||
<Grid.Column> | ||
<Segment basic> | ||
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec odio. | ||
</Segment> | ||
</Grid.Column> | ||
<Divider vertical>Or</Divider> | ||
<Grid.Column> | ||
<Segment basic> | ||
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec odio. | ||
</Segment> | ||
</Grid.Column> | ||
<Divider vertical>And</Divider> | ||
<Grid.Column> | ||
<Segment basic> | ||
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec odio. | ||
</Segment> | ||
</Grid.Column> | ||
</Grid> | ||
) | ||
|
||
export default DividerExampleVertical |
14 changes: 0 additions & 14 deletions
14
docs/app/Examples/elements/Divider/Types/DividerHorizontalExample.js
This file was deleted.
Oops, something went wrong.
28 changes: 0 additions & 28 deletions
28
docs/app/Examples/elements/Divider/Types/DividerVerticalExample.js
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,25 @@ | ||
import React, { Component } from 'react' | ||
import React from 'react' | ||
import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample' | ||
import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection' | ||
|
||
export default class DividerTypesExamples extends Component { | ||
render() { | ||
return ( | ||
<ExampleSection title='Types'> | ||
<ComponentExample | ||
title='Divider' | ||
description='A standard divider' | ||
examplePath='elements/Divider/Types/DividerDividerExample' | ||
/> | ||
<ComponentExample | ||
title='Vertical Divider' | ||
description='A divider can segment content vertically' | ||
examplePath='elements/Divider/Types/DividerVerticalExample' | ||
/> | ||
<ComponentExample | ||
title='Horizontal Divider' | ||
description='A divider can segement content horizontally' | ||
examplePath='elements/Divider/Types/DividerHorizontalExample' | ||
/> | ||
</ExampleSection> | ||
) | ||
} | ||
} | ||
const DividerTypesExamples = () => ( | ||
<ExampleSection title='Types'> | ||
<ComponentExample | ||
title='Divider' | ||
description='A standard divider.' | ||
examplePath='elements/Divider/Types/DividerExampleDivider' | ||
/> | ||
<ComponentExample | ||
title='Vertical Divider' | ||
description='A divider can segment content vertically.' | ||
examplePath='elements/Divider/Types/DividerExampleVertical' | ||
/> | ||
<ComponentExample | ||
title='Horizontal Divider' | ||
description='A divider can segement content horizontally.' | ||
examplePath='elements/Divider/Types/DividerExampleHorizontal' | ||
/> | ||
</ExampleSection> | ||
) | ||
|
||
export default DividerTypesExamples |
14 changes: 0 additions & 14 deletions
14
docs/app/Examples/elements/Divider/Variations/DividerClearingExample.js
This file was deleted.
Oops, something went wrong.
12 changes: 12 additions & 0 deletions
12
docs/app/Examples/elements/Divider/Variations/DividerExampleClearing.js
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,12 @@ | ||
import React from 'react' | ||
import { Segment, Button, Divider } from 'semantic-ui-react' | ||
|
||
const DividerExampleClearing = () => ( | ||
<Segment> | ||
<Button floated='right'>Floated Button</Button> | ||
<Divider clearing /> | ||
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore... | ||
</Segment> | ||
) | ||
|
||
export default DividerExampleClearing |
2 changes: 1 addition & 1 deletion
2
...ivider/Variations/DividerFittedExample.js → ...ivider/Variations/DividerExampleFitted.js
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
...ivider/Variations/DividerHiddenExample.js → ...ivider/Variations/DividerExampleHidden.js
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
...ider/Variations/DividerInvertedExample.js → ...ider/Variations/DividerExampleInverted.js
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
...vider/Variations/DividerSectionExample.js → ...vider/Variations/DividerExampleSection.js
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,37 +1,35 @@ | ||
import React, { Component } from 'react' | ||
import React from 'react' | ||
import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample' | ||
import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection' | ||
|
||
export default class DividerVariationsExamples extends Component { | ||
render() { | ||
return ( | ||
<ExampleSection title='Variations'> | ||
<ComponentExample | ||
title='Inverted' | ||
description='A divider can have its colors inverted' | ||
examplePath='elements/Divider/Variations/DividerInvertedExample' | ||
/> | ||
<ComponentExample | ||
title='Fitted' | ||
description='A divider can be fitted, without any space above or below it' | ||
examplePath='elements/Divider/Variations/DividerFittedExample' | ||
/> | ||
<ComponentExample | ||
title='Hidden' | ||
description='A hidden divider divides content without creating a dividing line' | ||
examplePath='elements/Divider/Variations/DividerHiddenExample' | ||
/> | ||
<ComponentExample | ||
title='Section' | ||
description='A divider can provide greater margins to divide sections of content' | ||
examplePath='elements/Divider/Variations/DividerSectionExample' | ||
/> | ||
<ComponentExample | ||
title='Clearing' | ||
description='A divider can clear the contents above it' | ||
examplePath='elements/Divider/Variations/DividerClearingExample' | ||
/> | ||
</ExampleSection> | ||
) | ||
} | ||
} | ||
const DividerVariationsExamples = () => ( | ||
<ExampleSection title='Variations'> | ||
<ComponentExample | ||
title='Inverted' | ||
description='A divider can have its colors inverted.' | ||
examplePath='elements/Divider/Variations/DividerExampleInverted' | ||
/> | ||
<ComponentExample | ||
title='Fitted' | ||
description='A divider can be fitted, without any space above or below it.' | ||
examplePath='elements/Divider/Variations/DividerExampleFitted' | ||
/> | ||
<ComponentExample | ||
title='Hidden' | ||
description='A hidden divider divides content without creating a dividing line.' | ||
examplePath='elements/Divider/Variations/DividerExampleHidden' | ||
/> | ||
<ComponentExample | ||
title='Section' | ||
description='A divider can provide greater margins to divide sections of content.' | ||
examplePath='elements/Divider/Variations/DividerExampleSection' | ||
/> | ||
<ComponentExample | ||
title='Clearing' | ||
description='A divider can clear the contents above it.' | ||
examplePath='elements/Divider/Variations/DividerExampleClearing' | ||
/> | ||
</ExampleSection> | ||
) | ||
|
||
export default DividerVariationsExamples |
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,14 +1,12 @@ | ||
import React, { Component } from 'react' | ||
import React from 'react' | ||
import Types from './Types' | ||
import Variations from './Variations' | ||
|
||
export default class DividerExamples extends Component { | ||
render() { | ||
return ( | ||
<div> | ||
<Types /> | ||
<Variations /> | ||
</div> | ||
) | ||
} | ||
} | ||
const DividerExamples = () => ( | ||
<div> | ||
<Types /> | ||
<Variations /> | ||
</div> | ||
) | ||
|
||
export default DividerExamples |