Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Step } from 'semantic-ui-react'

const { Description, Group, Title } = Step

const Descriptions = () => (
const StepExampleDescriptions = () => (
<div>
<Group>
<Step>
Expand All @@ -29,4 +29,4 @@ const Descriptions = () => (
</div>
)

export default Descriptions
export default StepExampleDescriptions
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Icon, Step } from 'semantic-ui-react'

const { Content, Description, Group, Title } = Step

const Icons = () => (
const StepExampleIcons = () => (
<Group>
<Step>
<Icon name='truck' />
Expand All @@ -22,4 +22,4 @@ const Icons = () => (
</Group>
)

export default Icons
export default StepExampleIcons
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class ClickableStep extends Component {
}
}

const Links = () => (
const StepExampleLinks = () => (
<div>
<Step.Group>
<Step active href='http://google.com' icon='truck' title='Shipping' description='Choose your shipping options' />
Expand All @@ -34,4 +34,4 @@ const Links = () => (
</div>
)

export default Links
export default StepExampleLinks
10 changes: 5 additions & 5 deletions docs/app/Examples/elements/Step/Content/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,26 @@ import React from 'react'
import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample'
import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection'

const Content = () => (
const StepContentExamples = () => (
<ExampleSection title='Content'>
<ComponentExample
title='Description'
description='A step can contain a description.'
examplePath='elements/Step/Content/Descriptions'
examplePath='elements/Step/Content/StepExampleDescriptions'
/>

<ComponentExample
title='Icon'
description='A step can contain an icon.'
examplePath='elements/Step/Content/Icons'
examplePath='elements/Step/Content/StepExampleIcons'
/>

<ComponentExample
title='Link'
description='A step can link.'
examplePath='elements/Step/Content/Links'
examplePath='elements/Step/Content/StepExampleLinks'
/>
</ExampleSection>
)

export default Content
export default StepContentExamples
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const steps = [
{ disabled: true, icon: 'info', title: 'Confirm Order' },
]

const Groups = () => (
const StepExampleGroups = () => (
<div>
<Group>
<Step>
Expand All @@ -33,4 +33,4 @@ const Groups = () => (
</div>
)

export default Groups
export default StepExampleGroups
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const steps = [
{ active: true, title: 'Confirm Order', description: 'Verify order details' },
]

const Ordered = () => (
const StepExampleOrdered = () => (
<div>
<Group ordered>
<Step completed>
Expand All @@ -29,4 +29,4 @@ const Ordered = () => (
</div>
)

export default Ordered
export default StepExampleOrdered
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const steps = [
{ active: true, icon: 'info', title: 'Confirm Order', description: 'Verify order details' },
]

const Vertical = () => (
const StepExampleVertical = () => (
<div>
<Group vertical>
<Step completed>
Expand All @@ -33,4 +33,4 @@ const Vertical = () => (
</div>
)

export default Vertical
export default StepExampleVertical
10 changes: 5 additions & 5 deletions docs/app/Examples/elements/Step/Groups/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ import { Icon, Message } from 'semantic-ui-react'
import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample'
import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection'

const Groups = () => (
const StepGroupsExamples = () => (
<ExampleSection title='Groups'>
<ComponentExample
title='Steps'
description='A set of steps.'
examplePath='elements/Step/Groups/Groups'
examplePath='elements/Step/Groups/StepExampleGroups'
>
<Message positive icon>
<Icon name='mobile' />
Expand All @@ -24,15 +24,15 @@ const Groups = () => (
<ComponentExample
title='Ordered'
description='A step can show a ordered sequence of steps.'
examplePath='elements/Step/Groups/Ordered'
examplePath='elements/Step/Groups/StepExampleOrdered'
/>

<ComponentExample
title='Vertical'
description='A step can be displayed stacked vertically.'
examplePath='elements/Step/Groups/Vertical'
examplePath='elements/Step/Groups/StepExampleVertical'
/>
</ExampleSection>
)

export default Groups
export default StepGroupsExamples
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Icon, Step } from 'semantic-ui-react'

const { Content, Description, Group, Title } = Step

const Active = () => (
const StepExampleActive = () => (
<Group>
<Step active>
<Icon name='credit card' />
Expand All @@ -17,4 +17,4 @@ const Active = () => (
</Group>
)

export default Active
export default StepExampleActive
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Step } from 'semantic-ui-react'

const { Group } = Step

const Completed = () => (
const StepExampleCompleted = () => (
<div>
<Group>
<Step completed icon='payment' title='Billing' description='Enter billing information' />
Expand All @@ -17,4 +17,4 @@ const Completed = () => (
</div>
)

export default Completed
export default StepExampleCompleted
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import React from 'react'
import { Step } from 'semantic-ui-react'

const Disabled = () => (
const StepExampleDisabled = () => (
<Step.Group>
<Step disabled>Billing</Step>
</Step.Group>
)

export default Disabled
export default StepExampleDisabled
34 changes: 16 additions & 18 deletions docs/app/Examples/elements/Step/States/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,26 +3,24 @@ import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample'
import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection'

const States = () => (
<ExampleSection title='Groups'>
<ExampleSection title='States'>
<ComponentExample
title='Active'
description='A step can be highlighted as active.'
examplePath='elements/Step/States/Active'
/>
<ExampleSection title='States'>
<ComponentExample
title='Active'
description='A step can be highlighted as active.'
examplePath='elements/Step/States/StepExampleActive'
/>

<ComponentExample
title='Completed'
description='A step can show that a user has completed it.'
examplePath='elements/Step/States/Completed'
/>
<ComponentExample
title='Completed'
description='A step can show that a user has completed it.'
examplePath='elements/Step/States/StepExampleCompleted'
/>

<ComponentExample
title='Disabled'
description='A step can show that it cannot be selected.'
examplePath='elements/Step/States/Disabled'
/>
</ExampleSection>
<ComponentExample
title='Disabled'
description='A step can show that it cannot be selected.'
examplePath='elements/Step/States/StepExampleDisabled'
/>
</ExampleSection>
)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import React from 'react'
import { Step } from 'semantic-ui-react'

const Basic = () => (
const StepExampleBasic = () => (
<Step.Group>
<Step>Shipping</Step>
</Step.Group>
)

export default Basic
export default StepExampleBasic
6 changes: 3 additions & 3 deletions docs/app/Examples/elements/Step/Types/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ import React from 'react'
import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample'
import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection'

const Types = () => (
const StepTypesExamples = () => (
<ExampleSection title='Types'>
<ComponentExample
title='Step'
description='A single step.'
examplePath='elements/Step/Types/Basic'
examplePath='elements/Step/Types/StepExampleBasic'
/>
</ExampleSection>
)

export default Types
export default StepTypesExamples
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react'
import { Grid, Step } from 'semantic-ui-react'

const Fluid = () => (
const StepExampleFluid = () => (
<Grid columns={2}>
<Grid.Column>
<Step.Group fluid vertical>
Expand All @@ -16,4 +16,4 @@ const Fluid = () => (
</Grid>
)

export default Fluid
export default StepExampleFluid
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const simpleSteps = [
{ active: true, icon: 'payment', title: 'Billing' },
]

const Sizes = () => (
const StepExampleSizes = () => (
<div>
<Step.Group size='mini' items={steps} />
<br />
Expand All @@ -35,4 +35,4 @@ const Sizes = () => (
</div>
)

export default Sizes
export default StepExampleSizes
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import React from 'react'
import { Step } from 'semantic-ui-react'

const Stackable = () => (
const StepExampleStackable = () => (
<Step.Group stackable='tablet'>
<Step icon='plane' title='Shipping' description='Choose your shipping options' />
<Step active icon='dollar' title='Billing' description='Enter billing information' />
<Step disabled icon='info circle' title='Confirm Order' description='Verify order details' />
</Step.Group>
)

export default Stackable
export default StepExampleStackable
10 changes: 5 additions & 5 deletions docs/app/Examples/elements/Step/Variations/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,26 @@ import React from 'react'
import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample'
import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection'

const Variations = () => (
const StepVariationsExamples = () => (
<ExampleSection title='Variations'>
<ComponentExample
title='Stackable'
description='A step can stack vertically only on smaller screens.'
examplePath='elements/Step/Variations/Stackable'
examplePath='elements/Step/Variations/StepExampleStackable'
/>

<ComponentExample
title='Fluid'
description='A fluid step takes up the width of its container.'
examplePath='elements/Step/Variations/Fluid'
examplePath='elements/Step/Variations/StepExampleFluid'
/>

<ComponentExample
title='Size'
description='Steps can have different sizes.'
examplePath='elements/Step/Variations/Sizes'
examplePath='elements/Step/Variations/StepExampleSizes'
/>
</ExampleSection>
)

export default Variations
export default StepVariationsExamples