-
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(progress): refactor, add trailing . to description and use state…
…less functional expression (#664) * docs(Radio): refactor, remove trailing period in description and use stateless functional expression * docs(Radio): add trailing . in description and fix a typo * docs(Confirm): add trailing . in description * docs(Progress): refactor, add trailing . in description and use stateless functional expression * Revert "docs(Confirm): add trailing . in description" This reverts commit 5918057. * Revert "docs(Radio): add trailing . in description and fix a typo" This reverts commit fcbf5dc. * Revert "docs(Radio): refactor, remove trailing period in description and use stateless functional expression" This reverts commit 1df9246.
- Loading branch information
1 parent
840c4a5
commit 99f74fc
Showing
21 changed files
with
153 additions
and
163 deletions.
There are no files selected for viewing
4 changes: 2 additions & 2 deletions
4
.../Examples/modules/Progress/Content/Bar.js → ...es/Progress/Content/ProgressExampleBar.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 |
---|---|---|
@@ -1,8 +1,8 @@ | ||
import React from 'react' | ||
import { Progress } from 'semantic-ui-react' | ||
|
||
const ProgressBarExample = () => ( | ||
const ProgressExampleBar = () => ( | ||
<Progress percent={33} /> | ||
) | ||
|
||
export default ProgressBarExample | ||
export default ProgressExampleBar |
4 changes: 2 additions & 2 deletions
4
...xamples/modules/Progress/Content/Label.js → .../Progress/Content/ProgressExampleLabel.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 |
---|---|---|
@@ -1,8 +1,8 @@ | ||
import React from 'react' | ||
import { Progress } from 'semantic-ui-react' | ||
|
||
const ProgressLabelExample = () => ( | ||
const ProgressExampleLabel = () => ( | ||
<Progress percent={55}>Label</Progress> | ||
) | ||
|
||
export default ProgressLabelExample | ||
export default ProgressExampleLabel |
4 changes: 2 additions & 2 deletions
4
...ples/modules/Progress/Content/Progress.js → ...ogress/Content/ProgressExampleProgress.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 |
---|---|---|
@@ -1,8 +1,8 @@ | ||
import React from 'react' | ||
import { Progress } from 'semantic-ui-react' | ||
|
||
const ProgressExample = () => ( | ||
const ProgressExampleProgress = () => ( | ||
<Progress percent={44} progress /> | ||
) | ||
|
||
export default ProgressExample | ||
export default ProgressExampleProgress |
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 ProgressContentExamples extends Component { | ||
render() { | ||
return ( | ||
<ExampleSection title='Content'> | ||
<ComponentExample | ||
title='Bar' | ||
description='A progress element can contain a bar visually indicating progress.' | ||
examplePath='modules/Progress/Content/Bar' | ||
/> | ||
<ComponentExample | ||
title='Progress' | ||
description='A progress bar can contain a text value indicating current progress.' | ||
examplePath='modules/Progress/Content/Progress' | ||
/> | ||
<ComponentExample | ||
title='Label' | ||
description='A progress element can contain a label.' | ||
examplePath='modules/Progress/Content/Label' | ||
/> | ||
</ExampleSection> | ||
) | ||
} | ||
} | ||
const ProgressContentExamples = () => ( | ||
<ExampleSection title='Content'> | ||
<ComponentExample | ||
title='Bar' | ||
description='A progress element can contain a bar visually indicating progress.' | ||
examplePath='modules/Progress/Content/ProgressExampleBar' | ||
/> | ||
<ComponentExample | ||
title='Progress' | ||
description='A progress bar can contain a text value indicating current progress.' | ||
examplePath='modules/Progress/Content/ProgressExampleProgress' | ||
/> | ||
<ComponentExample | ||
title='Label' | ||
description='A progress element can contain a label.' | ||
examplePath='modules/Progress/Content/ProgressExampleLabel' | ||
/> | ||
</ExampleSection> | ||
) | ||
|
||
export default ProgressContentExamples |
4 changes: 2 additions & 2 deletions
4
...xamples/modules/Progress/States/Active.js → .../Progress/States/ProgressExampleActive.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 |
---|---|---|
@@ -1,10 +1,10 @@ | ||
import React from 'react' | ||
import { Progress } from 'semantic-ui-react' | ||
|
||
const ProgressActiveExample = () => ( | ||
const ProgressExampleActive = () => ( | ||
<Progress percent={60} active> | ||
Active | ||
</Progress> | ||
) | ||
|
||
export default ProgressActiveExample | ||
export default ProgressExampleActive |
4 changes: 2 additions & 2 deletions
4
...mples/modules/Progress/States/Disabled.js → ...rogress/States/ProgressExampleDisabled.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 |
---|---|---|
@@ -1,10 +1,10 @@ | ||
import React from 'react' | ||
import { Progress } from 'semantic-ui-react' | ||
|
||
const ProgressDisabledExample = () => ( | ||
const ProgressExampleDisabled = () => ( | ||
<Progress percent={60} disabled> | ||
Disabled | ||
</Progress> | ||
) | ||
|
||
export default ProgressDisabledExample | ||
export default ProgressExampleDisabled |
4 changes: 2 additions & 2 deletions
4
...Examples/modules/Progress/States/Error.js → ...s/Progress/States/ProgressExampleError.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 |
---|---|---|
@@ -1,10 +1,10 @@ | ||
import React from 'react' | ||
import { Progress } from 'semantic-ui-react' | ||
|
||
const ProgressErrorExample = () => ( | ||
const ProgressExampleError = () => ( | ||
<Progress percent={100} error> | ||
There was an error | ||
</Progress> | ||
) | ||
|
||
export default ProgressErrorExample | ||
export default ProgressExampleError |
4 changes: 2 additions & 2 deletions
4
...amples/modules/Progress/States/Success.js → ...Progress/States/ProgressExampleSuccess.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 |
---|---|---|
@@ -1,10 +1,10 @@ | ||
import React from 'react' | ||
import { Progress } from 'semantic-ui-react' | ||
|
||
const ProgressSuccessExample = () => ( | ||
const ProgressExampleSuccess = () => ( | ||
<Progress percent={100} success> | ||
The progress was successful | ||
</Progress> | ||
) | ||
|
||
export default ProgressSuccessExample | ||
export default ProgressExampleSuccess |
4 changes: 2 additions & 2 deletions
4
...amples/modules/Progress/States/Warning.js → ...Progress/States/ProgressExampleWarning.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 |
---|---|---|
@@ -1,10 +1,10 @@ | ||
import React from 'react' | ||
import { Progress } from 'semantic-ui-react' | ||
|
||
const ProgressWarningExample = () => ( | ||
const ProgressExampleWarning = () => ( | ||
<Progress percent={100} warning> | ||
I am warning you | ||
</Progress> | ||
) | ||
|
||
export default ProgressWarningExample | ||
export default ProgressExampleWarning |
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,42 +1,40 @@ | ||
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' | ||
import { Message } from 'semantic-ui-react' | ||
|
||
export default class ProgressStatesExamples extends Component { | ||
render() { | ||
return ( | ||
<ExampleSection title='States'> | ||
<Message info> | ||
Semantic UI states <code>success</code>, <code>warning</code>, and <code>error</code> | ||
{' '}are only retained at 100% completion. | ||
</Message> | ||
<ComponentExample | ||
title='Active' | ||
description='A progress bar can show activity' | ||
examplePath='modules/Progress/States/Active' | ||
/> | ||
<ComponentExample | ||
title='Success' | ||
description='A progress bar can show a success state.' | ||
examplePath='modules/Progress/States/Success' | ||
/> | ||
<ComponentExample | ||
title='Warning' | ||
description='A progress bar can show a warning state.' | ||
examplePath='modules/Progress/States/Warning' | ||
/> | ||
<ComponentExample | ||
title='Error' | ||
description='A progress bar can show an error state.' | ||
examplePath='modules/Progress/States/Error' | ||
/> | ||
<ComponentExample | ||
title='Disabled' | ||
description='A progress bar can be disabled.' | ||
examplePath='modules/Progress/States/Disabled' | ||
/> | ||
</ExampleSection> | ||
) | ||
} | ||
} | ||
const ProgressStatesExamples = () => ( | ||
<ExampleSection title='States'> | ||
<Message info> | ||
Semantic UI states <code>success</code>, <code>warning</code>, and <code>error</code> | ||
{' '}are only retained at 100% completion. | ||
</Message> | ||
<ComponentExample | ||
title='Active' | ||
description='A progress bar can show activity.' | ||
examplePath='modules/Progress/States/ProgressExampleActive' | ||
/> | ||
<ComponentExample | ||
title='Success' | ||
description='A progress bar can show a success state.' | ||
examplePath='modules/Progress/States/ProgressExampleSuccess' | ||
/> | ||
<ComponentExample | ||
title='Warning' | ||
description='A progress bar can show a warning state.' | ||
examplePath='modules/Progress/States/ProgressExampleWarning' | ||
/> | ||
<ComponentExample | ||
title='Error' | ||
description='A progress bar can show an error state.' | ||
examplePath='modules/Progress/States/ProgressExampleError' | ||
/> | ||
<ComponentExample | ||
title='Disabled' | ||
description='A progress bar can be disabled.' | ||
examplePath='modules/Progress/States/ProgressExampleDisabled' | ||
/> | ||
</ExampleSection> | ||
) | ||
|
||
export default ProgressStatesExamples |
2 changes: 1 addition & 1 deletion
2
...les/modules/Progress/Types/AutoSuccess.js → ...gress/Types/ProgressExampleAutoSuccess.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
...ples/modules/Progress/Types/Indicating.js → ...ogress/Types/ProgressExampleIndicating.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
4 changes: 2 additions & 2 deletions
4
...amples/modules/Progress/Types/Standard.js → ...Progress/Types/ProgressExampleStandard.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 |
---|---|---|
@@ -1,8 +1,8 @@ | ||
import React from 'react' | ||
import { Progress } from 'semantic-ui-react' | ||
|
||
const ProgressStandardExample = () => ( | ||
const ProgressExampleStandard = () => ( | ||
<Progress percent={11} /> | ||
) | ||
|
||
export default ProgressStandardExample | ||
export default ProgressExampleStandard |
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 ProgressTypesExamples extends Component { | ||
render() { | ||
return ( | ||
<ExampleSection title='Types'> | ||
<ComponentExample | ||
title='Standard' | ||
description='A standard progress bar.' | ||
examplePath='modules/Progress/Types/Standard' | ||
/> | ||
<ComponentExample | ||
title='Indicating' | ||
description='An indicating progress bar visually indicates the current level of progress of a task.' | ||
examplePath='modules/Progress/Types/Indicating' | ||
/> | ||
<ComponentExample | ||
title='Auto Success' | ||
description='A progress bar can automatically trigger the success state when progress completes.' | ||
examplePath='modules/Progress/Types/AutoSuccess' | ||
/> | ||
</ExampleSection> | ||
) | ||
} | ||
} | ||
const ProgressTypesExamples = () => ( | ||
<ExampleSection title='Types'> | ||
<ComponentExample | ||
title='Standard' | ||
description='A standard progress bar.' | ||
examplePath='modules/Progress/Types/ProgressExampleStandard' | ||
/> | ||
<ComponentExample | ||
title='Indicating' | ||
description='An indicating progress bar visually indicates the current level of progress of a task.' | ||
examplePath='modules/Progress/Types/ProgressExampleIndicating' | ||
/> | ||
<ComponentExample | ||
title='Auto Success' | ||
description='A progress bar can automatically trigger the success state when progress completes.' | ||
examplePath='modules/Progress/Types/ProgressExampleAutoSuccess' | ||
/> | ||
</ExampleSection> | ||
) | ||
|
||
export default ProgressTypesExamples |
4 changes: 2 additions & 2 deletions
4
...s/modules/Progress/Variations/Attached.js → ...ess/Variations/ProgressExampleAttached.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 |
---|---|---|
@@ -1,12 +1,12 @@ | ||
import React from 'react' | ||
import { Progress, Segment } from 'semantic-ui-react' | ||
|
||
const ProgressAttachedExample = () => ( | ||
const ProgressExampleAttached = () => ( | ||
<Segment> | ||
<Progress percent={50} attached='top' /> | ||
La la la la | ||
<Progress percent={50} attached='bottom' /> | ||
</Segment> | ||
) | ||
|
||
export default ProgressAttachedExample | ||
export default ProgressExampleAttached |
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
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.