Skip to content

Commit

Permalink
style(Menu): update docs to the latest standards (#835)
Browse files Browse the repository at this point in the history
  • Loading branch information
dpkwhan authored and levithomason committed Nov 11, 2016
1 parent 608ae24 commit 3ba4c79
Show file tree
Hide file tree
Showing 68 changed files with 172 additions and 172 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react'
import { Button, Menu } from 'semantic-ui-react'

const Buttons = () => {
const MenuExampleButtons = () => {
return (
<Menu>
<Menu.Item>
Expand All @@ -15,4 +15,4 @@ const Buttons = () => {
)
}

export default Buttons
export default MenuExampleButtons
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react'
import { Dropdown, Menu } from 'semantic-ui-react'

const DropdownItem = () => {
const MenuExampleDropdownItem = () => {
return (
<Menu vertical>
<Dropdown as={Menu.Item} text='Categories'>
Expand All @@ -15,4 +15,4 @@ const DropdownItem = () => {
)
}

export default DropdownItem
export default MenuExampleDropdownItem
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { Component } from 'react'
import { Menu } from 'semantic-ui-react'

export default class Header extends Component {
export default class MenuExampleHeader extends Component {
state = {}

handleItemClick = (e, { name }) => this.setState({ activeItem: name })
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { Component } from 'react'
import { Menu } from 'semantic-ui-react'

export default class Vertical extends Component {
export default class MenuExampleHeaderVertical extends Component {
handleItemClick = (name) => this.setState({ activeItem: name })

render() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react'
import { Input, Menu } from 'semantic-ui-react'

const Inputs = () => {
const MenuExampleInputs = () => {
return (
<Menu>
<Menu.Item>
Expand All @@ -15,4 +15,4 @@ const Inputs = () => {
)
}

export default Inputs
export default MenuExampleInputs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { Component } from 'react'
import { Menu, Message } from 'semantic-ui-react'

export default class LinkItem extends Component {
export default class MenuExampleLinkItem extends Component {
handleClick = () => this.setState({ message: 'onClick handled' })

render() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { Component } from 'react'
import { Menu } from 'semantic-ui-react'

export default class Menus extends Component {
export default class MenuExampleMenus extends Component {
state = {}

handleItemClick = (e, { name }) => this.setState({ activeItem: name })
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { Component } from 'react'
import { Dropdown, Icon, Input, Menu } from 'semantic-ui-react'

export default class SubMenu extends Component {
export default class MenuExampleSubMenu extends Component {
state = {}

handleItemClick = (e, { name }) => this.setState({ activeItem: name })
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { Component } from 'react'
import { Header, Menu } from 'semantic-ui-react'

export default class Text extends Component {
export default class MenuExampleText extends Component {
state = {}

handleItemClick = (e, { name }) => this.setState({ activeItem: name })
Expand Down
34 changes: 17 additions & 17 deletions docs/app/Examples/collections/Menu/Content/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,39 +11,39 @@ const Content = () => {
<ExampleSection title='Content'>
<ComponentExample
title='Header'
description='A menu item may include a header or may itself be a header'
examplePath='collections/Menu/Content/Header'
description='A menu item may include a header or may itself be a header.'
examplePath='collections/Menu/Content/MenuExampleHeader'
/>
<ComponentExample examplePath='collections/Menu/Content/Vertical' />
<ComponentExample examplePath='collections/Menu/Content/MenuExampleHeaderVertical' />

<ComponentExample
title='Text'
description='A vertical menu item can include any type of text content'
examplePath='collections/Menu/Content/Text'
description='A vertical menu item can include any type of text content.'
examplePath='collections/Menu/Content/MenuExampleText'
/>

<ComponentExample
title='Input'
description='A menu item can contain an input inside of it'
examplePath='collections/Menu/Content/Inputs'
description='A menu item can contain an input inside of it.'
examplePath='collections/Menu/Content/MenuExampleInputs'
/>

<ComponentExample
title='Button'
description='A menu item can contain a button inside of it'
examplePath='collections/Menu/Content/Buttons'
description='A menu item can contain a button inside of it.'
examplePath='collections/Menu/Content/MenuExampleButtons'
/>

<ComponentExample
title='Link Item'
description='A menu may contain a link item, or an item formatted as if it is a link'
examplePath='collections/Menu/Content/LinkItem'
description='A menu may contain a link item, or an item formatted as if it is a link.'
examplePath='collections/Menu/Content/MenuExampleLinkItem'
/>

<ComponentExample
title='Dropdown Item'
description='An item may contain a nested menu in a dropdown'
examplePath='collections/Menu/Content/DropdownItem'
description='An item may contain a nested menu in a dropdown.'
examplePath='collections/Menu/Content/MenuExampleDropdownItem'
/>

{/* <ComponentExample*/}
Expand All @@ -60,14 +60,14 @@ const Content = () => {

<ComponentExample
title='Menu'
description='A menu may contain another menu group in the same level as menu items'
examplePath='collections/Menu/Content/Menus'
description='A menu may contain another menu group in the same level as menu items.'
examplePath='collections/Menu/Content/MenuExampleMenus'
/>

<ComponentExample
title='Sub Menu'
description='A menu item may contain another menu nested inside that acts as a grouped sub-menu'
examplePath='collections/Menu/Content/SubMenu'
description='A menu item may contain another menu nested inside that acts as a grouped sub-menu.'
examplePath='collections/Menu/Content/MenuExampleSubMenu'
/>
</ExampleSection>
)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react'
import { Menu } from 'semantic-ui-react'

const Active = () => {
const MenuExampleActive = () => {
return (
<Menu compact>
<Menu.Item active>
Expand All @@ -11,4 +11,4 @@ const Active = () => {
)
}

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

const Hover = () => {
const MenuExampleHover = () => {
return (
<Menu compact>
<Menu.Item as='a'>A link</Menu.Item>
Expand All @@ -10,4 +10,4 @@ const Hover = () => {
)
}

export default Hover
export default MenuExampleHover
8 changes: 4 additions & 4 deletions docs/app/Examples/collections/Menu/States/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ const States = () => {
<ExampleSection title='States'>
<ComponentExample
title='Hover'
description='A menu item can be hovered'
examplePath='collections/Menu/States/Hover'
description='A menu item can be hovered.'
examplePath='collections/Menu/States/MenuExampleHover'
/>

<ComponentExample
title='Active'
description='A menu item can be active'
examplePath='collections/Menu/States/Active'
description='A menu item can be active.'
examplePath='collections/Menu/States/MenuExampleActive'
/>
</ExampleSection>
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Dropdown, Icon, Menu, Segment } from 'semantic-ui-react'

// TODO: Update <Search> usage after its will be implemented

const Attached = () => {
const MenuExampleAttached = () => {
return (
<div>
<Menu attached='top'>
Expand Down Expand Up @@ -45,4 +45,4 @@ const Attached = () => {
)
}

export default Attached
export default MenuExampleAttached
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { Component } from 'react'
import { Menu } from 'semantic-ui-react'

export default class Basic extends Component {
export default class MenuExampleBasic extends Component {
state = {}

handleItemClick = (e, { name }) => this.setState({ activeItem: name })
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { Component } from 'react'
import { Menu } from 'semantic-ui-react'

export default class ContentProp extends Component {
export default class MenuExampleContentProp extends Component {
state = {}

handleItemClick = (e, { name }) => this.setState({ activeItem: name })
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { Component } from 'react'
import { Menu } from 'semantic-ui-react'

export default class Names extends Component {
export default class MenuExampleNameProp extends Component {
state = {}

handleItemClick = (e, { name }) => this.setState({ activeItem: name })
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { Component } from 'react'
import { Menu } from 'semantic-ui-react'

export default class Pagination extends Component {
export default class MenuExamplePagination extends Component {
state = { activeItem: '10' }

handleItemClick = (e, { name }) => this.setState({ activeItem: name })
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { Component } from 'react'
import { Input, Menu, Segment } from 'semantic-ui-react'

export default class Pointing extends Component {
export default class MenuExamplePointing extends Component {
state = { activeItem: 'home' }

handleItemClick = (e, { name }) => this.setState({ activeItem: name })
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { Component } from 'react'
import { Menu } from 'semantic-ui-react'

export default class Props extends Component {
export default class MenuExampleProps extends Component {
state = {}

render() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { Component } from 'react'
import { Input, Menu } from 'semantic-ui-react'

export default class Secondary extends Component {
export default class MenuExampleSecondary extends Component {
state = { activeItem: 'home' }

handleItemClick = (e, { name }) => this.setState({ activeItem: name })
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { Component } from 'react'
import { Menu, Segment } from 'semantic-ui-react'

export default class SecondaryPointing extends Component {
export default class MenuExampleSecondaryPointing extends Component {
state = { activeItem: 'home' }

handleItemClick = (e, { name }) => this.setState({ activeItem: name })
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { Component } from 'react'
import { Menu } from 'semantic-ui-react'

export default class Tabular extends Component {
export default class MenuExampleTabular extends Component {
state = { activeItem: 'bio' }

handleItemClick = (e, { name }) => this.setState({ activeItem: name })
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { Component } from 'react'
import { Icon, Menu, Segment } from 'semantic-ui-react'

export default class TabularOnBottom extends Component {
export default class MenuExampleTabularOnBottom extends Component {
state = { activeItem: 'active' }

handleItemClick = (e, { name }) => this.setState({ activeItem: name })
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { Component } from 'react'
import { Grid, Menu, Segment } from 'semantic-ui-react'

export default class TabularOnLeft extends Component {
export default class MenuExampleTabularOnLeft extends Component {
state = { activeItem: 'bio' }

handleItemClick = (e, { name }) => this.setState({ activeItem: name })
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { Component } from 'react'
import { Grid, Menu, Segment } from 'semantic-ui-react'

export default class TabularOnRight extends Component {
export default class MenuExampleTabularOnRight extends Component {
state = { activeItem: 'bio' }

handleItemClick = (e, { name }) => this.setState({ activeItem: name })
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { Component } from 'react'
import { Input, Menu, Segment } from 'semantic-ui-react'

export default class TabularOnTop extends Component {
export default class MenuExampleTabularOnTop extends Component {
state = { activeItem: 'bio' }

handleItemClick = (e, { name }) => this.setState({ activeItem: name })
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { Component } from 'react'
import { Menu } from 'semantic-ui-react'

export default class Text extends Component {
export default class MenuExampleText extends Component {
state = { activeItem: 'closest' }

handleItemClick = (e, { name }) => this.setState({ activeItem: name })
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { Component } from 'react'
import { Input, Label, Menu } from 'semantic-ui-react'

export default class Vertical extends Component {
export default class MenuExampleVertical extends Component {
state = { activeItem: 'inbox' }

handleItemClick = (e, { name }) => this.setState({ activeItem: name })
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { Component } from 'react'
import { Dropdown, Menu } from 'semantic-ui-react'

export default class VerticalDropdown extends Component {
export default class MenuExampleVerticalDropdown extends Component {
state = { activeItem: 'account' }

handleItemClick = (e, { name }) => this.setState({ activeItem: name })
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { Component } from 'react'
import { Menu } from 'semantic-ui-react'

export default class VerticalPointing extends Component {
export default class MenuExampleVerticalPointing extends Component {
state = { activeItem: 'home' }

handleItemClick = (e, { name }) => this.setState({ activeItem: name })
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { Component } from 'react'
import { Menu } from 'semantic-ui-react'

export default class VerticalSecondary extends Component {
export default class MenuExampleVerticalSecondary extends Component {
state = { activeItem: 'home' }

handleItemClick = (e, { name }) => this.setState({ activeItem: name })
Expand Down
Loading

0 comments on commit 3ba4c79

Please sign in to comment.