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
@@ -1,7 +1,7 @@
import React from 'react'
import { Breadcrumb } from 'semantic-ui-react'

const BreadcrumbDividerExample = () => (
const BreadcrumbExampleDivider = () => (
<Breadcrumb>
<Breadcrumb.Section link>Home</Breadcrumb.Section>
<Breadcrumb.Divider>/</Breadcrumb.Divider>
Expand All @@ -11,4 +11,4 @@ const BreadcrumbDividerExample = () => (
</Breadcrumb>
)

export default BreadcrumbDividerExample
export default BreadcrumbExampleDivider
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ const sections = [
{ text: 'Personal Information', active: true },
]

const BreadcrumbDividerPropExample = () => (
const BreadcrumbExampleDividerProps = () => (
<Breadcrumb divider='/' sections={sections} />
)

export default BreadcrumbDividerPropExample
export default BreadcrumbExampleDividerProps
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react'
import { Breadcrumb } from 'semantic-ui-react'

const BreadcrumbIconDividerExample = () => (
const BreadcrumbExampleIconDivider = () => (
<Breadcrumb>
<Breadcrumb.Section link>Home</Breadcrumb.Section>
<Breadcrumb.Divider icon='right chevron' />
Expand All @@ -11,4 +11,4 @@ const BreadcrumbIconDividerExample = () => (
</Breadcrumb>
)

export default BreadcrumbIconDividerExample
export default BreadcrumbExampleIconDivider
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ const sections = [
{ text: 'Personal Information', active: true },
]

const BreadcrumbDividerPropExample = () => (
const BreadcrumbExampleIconDividerProps = () => (
<Breadcrumb divider='/' sections={sections} />
)

export default BreadcrumbDividerPropExample
export default BreadcrumbExampleIconDividerProps
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react'
import { Breadcrumb } from 'semantic-ui-react'

const BreadcrumbLinkExample = () => (
const BreadcrumbExampleLink = () => (
<Breadcrumb>
<Breadcrumb.Section link>Home</Breadcrumb.Section>
<Breadcrumb.Divider />
Expand All @@ -11,4 +11,4 @@ const BreadcrumbLinkExample = () => (
</Breadcrumb>
)

export default BreadcrumbLinkExample
export default BreadcrumbExampleLink
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import React from 'react'
import { Breadcrumb } from 'semantic-ui-react'

const BreadcrumbSectionExample = () => (
const BreadcrumbExampleSection = () => (
<Breadcrumb>
<Breadcrumb.Section link>Home</Breadcrumb.Section>
<Breadcrumb.Divider />
<Breadcrumb.Section active>Search</Breadcrumb.Section>
</Breadcrumb>
)

export default BreadcrumbSectionExample
export default BreadcrumbExampleSection
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ const sections = [
{ text: 'Search', active: true },
]

const BreadcrumbSectionPropExample = () => (
const BreadcrumbExampleSectionProps = () => (
<Breadcrumb sections={sections} />
)

export default BreadcrumbSectionPropExample
export default BreadcrumbExampleSectionProps
36 changes: 36 additions & 0 deletions docs/app/Examples/collections/Breadcrumb/Content/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
import React from 'react'
import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample'
import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection'

const BreadcrumbContentExamples = () => (
<div>
<ExampleSection title='Content'>
<ComponentExample
title='Divider'
description={[
'A breadcrumb can contain a divider to show the relationship between sections,',
'this can be formatted as an icon or text.',
].join(' ')}
examplePath='collections/Breadcrumb/Content/BreadcrumbExampleDivider'
/>
<ComponentExample examplePath='collections/Breadcrumb/Content/BreadcrumbExampleDividerProps' />
<ComponentExample examplePath='collections/Breadcrumb/Content/BreadcrumbExampleIconDivider' />
<ComponentExample examplePath='collections/Breadcrumb/Content/BreadcrumbExampleIconDividerProps' />

<ComponentExample
title='Section'
description='A breadcrumb can contain sections that can either be formatted as a link or text.'
examplePath='collections/Breadcrumb/Content/BreadcrumbExampleSection'
/>
<ComponentExample examplePath='collections/Breadcrumb/Content/BreadcrumbExampleSectionProps' />

<ComponentExample
title='Link'
description='A section may be linkable or contain a link.'
examplePath='collections/Breadcrumb/Content/BreadcrumbExampleLink'
/>
</ExampleSection>
</div>
)

export default BreadcrumbContentExamples
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react'
import { Breadcrumb } from 'semantic-ui-react'

const BreadcrumbDividerExample = () => (
const BreadcrumbExampleDivider = () => (
<Breadcrumb>
<Breadcrumb.Section link>Home</Breadcrumb.Section>
<Breadcrumb.Divider icon='right angle' />
Expand All @@ -11,4 +11,4 @@ const BreadcrumbDividerExample = () => (
</Breadcrumb>
)

export default BreadcrumbDividerExample
export default BreadcrumbExampleDivider
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ const sections = [
{ text: 'T-Shirt', active: true },
]

const BreadcrumbPropExample = () => (
const BreadcrumbExampleProps = () => (
<Breadcrumb icon='right angle' sections={sections} />
)

export default BreadcrumbPropExample
export default BreadcrumbExampleProps
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react'
import { Breadcrumb } from 'semantic-ui-react'

const BreadcrumbExample = () => (
const BreadcrumbExampleStandard = () => (
<Breadcrumb>
<Breadcrumb.Section link>Home</Breadcrumb.Section>
<Breadcrumb.Divider />
Expand All @@ -11,4 +11,4 @@ const BreadcrumbExample = () => (
</Breadcrumb>
)

export default BreadcrumbExample
export default BreadcrumbExampleStandard
19 changes: 19 additions & 0 deletions docs/app/Examples/collections/Breadcrumb/Types/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import React from 'react'
import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample'
import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection'

const BreadcrumbTypesExamples = () => (
<div>
<ExampleSection title='Types'>
<ComponentExample
title='Breadcrumb'
description='A standard breadcrumb.'
examplePath='collections/Breadcrumb/Types/BreadcrumbExampleStandard'
/>
<ComponentExample examplePath='collections/Breadcrumb/Types/BreadcrumbExampleDivider' />
<ComponentExample examplePath='collections/Breadcrumb/Types/BreadcrumbExampleProps' />
</ExampleSection>
</div>
)

export default BreadcrumbTypesExamples
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react'
import { Breadcrumb } from 'semantic-ui-react'

const BreadcrumbBigSizeExample = () => (
const BreadcrumbExampleBigSize = () => (
<Breadcrumb size='big'>
<Breadcrumb.Section link>Home</Breadcrumb.Section>
<Breadcrumb.Divider icon='right chevron' />
Expand All @@ -11,4 +11,4 @@ const BreadcrumbBigSizeExample = () => (
</Breadcrumb>
)

export default BreadcrumbBigSizeExample
export default BreadcrumbExampleBigSize
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react'
import { Breadcrumb } from 'semantic-ui-react'

const BreadcrumbHugeSizeExample = () => (
const BreadcrumbExampleHugeSize = () => (
<Breadcrumb size='huge'>
<Breadcrumb.Section link>Home</Breadcrumb.Section>
<Breadcrumb.Divider icon='right chevron' />
Expand All @@ -11,4 +11,4 @@ const BreadcrumbHugeSizeExample = () => (
</Breadcrumb>
)

export default BreadcrumbHugeSizeExample
export default BreadcrumbExampleHugeSize
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react'
import { Breadcrumb } from 'semantic-ui-react'

const BreadcrumbLargeSizeExample = () => (
const BreadcrumbExampleLargeSize = () => (
<Breadcrumb size='large'>
<Breadcrumb.Section link>Home</Breadcrumb.Section>
<Breadcrumb.Divider icon='right chevron' />
Expand All @@ -11,4 +11,4 @@ const BreadcrumbLargeSizeExample = () => (
</Breadcrumb>
)

export default BreadcrumbLargeSizeExample
export default BreadcrumbExampleLargeSize
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react'
import { Breadcrumb } from 'semantic-ui-react'

const BreadcrumbMassiveSizeExample = () => (
const BreadcrumbExampleMassiveSize = () => (
<Breadcrumb size='massive'>
<Breadcrumb.Section link>Home</Breadcrumb.Section>
<Breadcrumb.Divider icon='right chevron' />
Expand All @@ -11,4 +11,4 @@ const BreadcrumbMassiveSizeExample = () => (
</Breadcrumb>
)

export default BreadcrumbMassiveSizeExample
export default BreadcrumbExampleMassiveSize
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react'
import { Breadcrumb } from 'semantic-ui-react'

const BreadcrumbMiniSizeExample = () => (
const BreadcrumbExampleMiniSize = () => (
<Breadcrumb size='mini'>
<Breadcrumb.Section link>Home</Breadcrumb.Section>
<Breadcrumb.Divider icon='right chevron' />
Expand All @@ -11,4 +11,4 @@ const BreadcrumbMiniSizeExample = () => (
</Breadcrumb>
)

export default BreadcrumbMiniSizeExample
export default BreadcrumbExampleMiniSize
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react'
import { Breadcrumb } from 'semantic-ui-react'

const BreadcrumbSmallSizeExample = () => (
const BreadcrumbExampleSmallSize = () => (
<Breadcrumb size='small'>
<Breadcrumb.Section link>Home</Breadcrumb.Section>
<Breadcrumb.Divider icon='right chevron' />
Expand All @@ -11,4 +11,4 @@ const BreadcrumbSmallSizeExample = () => (
</Breadcrumb>
)

export default BreadcrumbSmallSizeExample
export default BreadcrumbExampleSmallSize
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react'
import { Breadcrumb } from 'semantic-ui-react'

const BreadcrumbTinySizeExample = () => (
const BreadcrumbExampleTinySize = () => (
<Breadcrumb size='tiny'>
<Breadcrumb.Section link>Home</Breadcrumb.Section>
<Breadcrumb.Divider icon='right chevron' />
Expand All @@ -11,4 +11,4 @@ const BreadcrumbTinySizeExample = () => (
</Breadcrumb>
)

export default BreadcrumbTinySizeExample
export default BreadcrumbExampleTinySize
23 changes: 23 additions & 0 deletions docs/app/Examples/collections/Breadcrumb/Variations/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import React from 'react'
import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample'
import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection'

const BreadcrumbVariationsExamples = () => (
<div>
<ExampleSection title='Variations'>
<ComponentExample
title='Size'
description='A breadcrumb can vary in size.'
examplePath='collections/Breadcrumb/Variations/BreadcrumbExampleMiniSize'
/>
<ComponentExample examplePath='collections/Breadcrumb/Variations/BreadcrumbExampleTinySize' />
<ComponentExample examplePath='collections/Breadcrumb/Variations/BreadcrumbExampleSmallSize' />
<ComponentExample examplePath='collections/Breadcrumb/Variations/BreadcrumbExampleLargeSize' />
<ComponentExample examplePath='collections/Breadcrumb/Variations/BreadcrumbExampleBigSize' />
<ComponentExample examplePath='collections/Breadcrumb/Variations/BreadcrumbExampleHugeSize' />
<ComponentExample examplePath='collections/Breadcrumb/Variations/BreadcrumbExampleMassiveSize' />
</ExampleSection>
</div>
)

export default BreadcrumbVariationsExamples
58 changes: 6 additions & 52 deletions docs/app/Examples/collections/Breadcrumb/index.js
Original file line number Diff line number Diff line change
@@ -1,59 +1,13 @@
import React from 'react'
import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample'
import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection'
import Types from './Types'
import Content from './Content'
import Variations from './Variations'

const BreadcrumbExamples = () => (
<div>
<ExampleSection title='Types'>
<ComponentExample
title='Breadcrumb'
description='A standard breadcrumb'
examplePath='collections/Breadcrumb/Types/BreadcrumbExample'
/>
<ComponentExample examplePath='collections/Breadcrumb/Types/BreadcrumbDividerExample' />
<ComponentExample examplePath='collections/Breadcrumb/Types/BreadcrumbPropExample' />
</ExampleSection>

<ExampleSection title='Content'>
<ComponentExample
title='Divider'
description={[
'A breadcrumb can contain a divider to show the relationship between sections,',
'this can be formatted as an icon or text.',
].join(' ')}
examplePath='collections/Breadcrumb/Content/BreadcrumbDividerExample'
/>
<ComponentExample examplePath='collections/Breadcrumb/Content/BreadcrumbDividerPropExample' />
<ComponentExample examplePath='collections/Breadcrumb/Content/BreadcrumbIconDividerExample' />
<ComponentExample examplePath='collections/Breadcrumb/Content/BreadcrumbIconDividerPropExample' />

<ComponentExample
title='Section'
description='A breadcrumb can contain sections that can either be formatted as a link or text'
examplePath='collections/Breadcrumb/Content/BreadcrumbSectionExample'
/>
<ComponentExample examplePath='collections/Breadcrumb/Content/BreadcrumbSectionPropExample' />

<ComponentExample
title='Link'
description='A section may be linkable or contain a link'
examplePath='collections/Breadcrumb/Content/BreadcrumbLinkExample'
/>
</ExampleSection>

<ExampleSection title='Variations'>
<ComponentExample
title='Size'
description='A breadcrumb can vary in size'
examplePath='collections/Breadcrumb/Variations/BreadcrumbMiniSizeExample'
/>
<ComponentExample examplePath='collections/Breadcrumb/Variations/BreadcrumbTinySizeExample' />
<ComponentExample examplePath='collections/Breadcrumb/Variations/BreadcrumbSmallSizeExample' />
<ComponentExample examplePath='collections/Breadcrumb/Variations/BreadcrumbLargeSizeExample' />
<ComponentExample examplePath='collections/Breadcrumb/Variations/BreadcrumbBigSizeExample' />
<ComponentExample examplePath='collections/Breadcrumb/Variations/BreadcrumbHugeSizeExample' />
<ComponentExample examplePath='collections/Breadcrumb/Variations/BreadcrumbMassiveSizeExample' />
</ExampleSection>
<Types />
<Content />
<Variations />
</div>
)

Expand Down