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
22 changes: 0 additions & 22 deletions docs/app/Examples/views/Statistic/Content/Labels.js

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import React from 'react'
import { Statistic } from 'semantic-ui-react'

const StatisticExampleLabels = () => (
<div>
<Statistic>
<Statistic.Value>2,204</Statistic.Value>
<Statistic.Label>Views</Statistic.Label>
</Statistic>

<Statistic>
<Statistic.Value value='2,204' />
<Statistic.Label label='Views' />
</Statistic>

<Statistic value='2,204' label='Views' />
</div>
)

export default StatisticExampleLabels
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const items = [
{ label: 'Team Members', value: '42' },
]

const Props = () => (
const StatisticExampleProps = () => (
<div>
<Statistic.Group>
<Statistic label='Saves' value='22' />
Expand All @@ -21,4 +21,4 @@ const Props = () => (
</div>
)

export default Props
export default StatisticExampleProps
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
import React from 'react'
import { Icon, Image, Statistic } from 'semantic-ui-react'

const StatisticExampleValues = () => (
<Statistic.Group>
<Statistic>
<Statistic.Value>22</Statistic.Value>
<Statistic.Label>Saves</Statistic.Label>
</Statistic>

<Statistic>
<Statistic.Value text>
Three<br />
Thousand
</Statistic.Value>
<Statistic.Label>Signups</Statistic.Label>
</Statistic>

<Statistic>
<Statistic.Value>
<Icon name='plane' />
5
</Statistic.Value>
<Statistic.Label>Flights</Statistic.Label>
</Statistic>

<Statistic>
<Statistic.Value>
<Image src='http://semantic-ui.com/images/avatar/small/joe.jpg' inline shape='circular' />
42
</Statistic.Value>
<Statistic.Label>Team Members</Statistic.Label>
</Statistic>
</Statistic.Group>
)

export default StatisticExampleValues
39 changes: 0 additions & 39 deletions docs/app/Examples/views/Statistic/Content/Values.js

This file was deleted.

10 changes: 5 additions & 5 deletions docs/app/Examples/views/Statistic/Content/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ const Content = () => (
<ExampleSection title='Content'>
<ComponentExample
title='Value'
description='A statistic can contain a numeric, icon, image, or text value'
examplePath='views/Statistic/Content/Values'
description='A statistic can contain a numeric, icon, image, or text value.'
examplePath='views/Statistic/Content/StatisticExampleValues'
/>
<ComponentExample examplePath='views/Statistic/Content/Props' />
<ComponentExample examplePath='views/Statistic/Content/StatisticExampleProps' />

<ComponentExample
title='Label'
description='A statistic can contain a label to help provide context for the presented value'
examplePath='views/Statistic/Content/Labels'
description='A statistic can contain a label to help provide context for the presented value.'
examplePath='views/Statistic/Content/StatisticExampleLabels'
/>
</ExampleSection>
)
Expand Down
30 changes: 0 additions & 30 deletions docs/app/Examples/views/Statistic/Types/Groups.js

This file was deleted.

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

const BottomLabel = () => (
const StatisticExampleBottomLabel = () => (
<div>
<Statistic>
<Statistic.Value>5,550</Statistic.Value>
Expand All @@ -12,4 +12,4 @@ const BottomLabel = () => (
</div>
)

export default BottomLabel
export default StatisticExampleBottomLabel
28 changes: 28 additions & 0 deletions docs/app/Examples/views/Statistic/Types/StatisticExampleGroups.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import React from 'react'
import { Statistic } from 'semantic-ui-react'

const items = [
{ label: 'Faves', value: '22' },
{ label: 'Views', value: '31,200' },
{ label: 'Members', value: '22' },
]

const StatisticExampleGroups = () => (
<div>
<Statistic.Group>
<Statistic>
<Statistic.Value>22</Statistic.Value>
<Statistic.Label>Faves</Statistic.Label>
</Statistic>
<Statistic>
<Statistic.Value>31,200</Statistic.Value>
<Statistic.Label>Views</Statistic.Label>
</Statistic>
<Statistic label='Members' value='22' />
</Statistic.Group>

<Statistic.Group items={items} />
</div>
)

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

const TopLabel = () => (
const StatisticExampleTopLabel = () => (
<div>
<Statistic>
<Statistic.Label>Views</Statistic.Label>
Expand All @@ -10,4 +10,4 @@ const TopLabel = () => (
</div>
)

export default TopLabel
export default StatisticExampleTopLabel
10 changes: 5 additions & 5 deletions docs/app/Examples/views/Statistic/Types/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ const Types = () => (
<ExampleSection title='Types'>
<ComponentExample
title='Statistic'
description='A statistic can display a value with a label above or below it'
examplePath='views/Statistic/Types/BottomLabel'
description='A statistic can display a value with a label above or below it.'
examplePath='views/Statistic/Types/StatisticExampleBottomLabel'
/>
<ComponentExample examplePath='views/Statistic/Types/TopLabel' />
<ComponentExample examplePath='views/Statistic/Types/StatisticExampleTopLabel' />

<ComponentExample
title='Statistic Group'
description='A group of statistics'
examplePath='views/Statistic/Types/Groups'
description='A group of statistics.'
examplePath='views/Statistic/Types/StatisticExampleGroups'
/>
</ExampleSection>
)
Expand Down
39 changes: 0 additions & 39 deletions docs/app/Examples/views/Statistic/Variations/EvenlyDivided.js

This file was deleted.

6 changes: 0 additions & 6 deletions docs/app/Examples/views/Statistic/Variations/Horizontal.js

This file was deleted.

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

const Colored = () => (
const StatisticExampleColored = () => (
<Statistic.Group>
<Statistic color='red' value='27' label='red' />
<Statistic color='orange' value='8' label='orange' />
Expand All @@ -18,4 +18,4 @@ const Colored = () => (
</Statistic.Group>
)

export default Colored
export default StatisticExampleColored
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
import React from 'react'
import { Icon, Image, Statistic } from 'semantic-ui-react'

const StatisticExampleEvenlyDivided = () => (
<Statistic.Group widths='four'>
<Statistic>
<Statistic.Value>22</Statistic.Value>
<Statistic.Label>Saves</Statistic.Label>
</Statistic>

<Statistic>
<Statistic.Value text>
Three
<br />Thousand
</Statistic.Value>
<Statistic.Label>Signups</Statistic.Label>
</Statistic>

<Statistic>
<Statistic.Value>
<Icon name='plane' />
5
</Statistic.Value>
<Statistic.Label>Flights</Statistic.Label>
</Statistic>

<Statistic>
<Statistic.Value>
<Image src='http://semantic-ui.com/images/avatar/small/joe.jpg' className='circular inline' />
42
</Statistic.Value>
<Statistic.Label>Team Members</Statistic.Label>
</Statistic>
</Statistic.Group>
)

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

const Floated = () => (
const StatisticExampleFloated = () => (
<Segment>
<Statistic floated='right' label='Views' value='2,204' />

Expand Down Expand Up @@ -32,4 +32,4 @@ const Floated = () => (
</Segment>
)

export default Floated
export default StatisticExampleFloated
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import React from 'react'
import { Statistic } from 'semantic-ui-react'

const StatisticExampleHorizontal = () => <Statistic horizontal value='2,204' label='Views' />

export default StatisticExampleHorizontal
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ const items = [
{ label: 'Tasks', value: '22' },
]

const HorizontalGroup = () => <Statistic.Group horizontal items={items} />
const StatisticExampleHorizontalGroup = () => <Statistic.Group horizontal items={items} />

export default HorizontalGroup
export default StatisticExampleHorizontalGroup
Loading