-
Notifications
You must be signed in to change notification settings - Fork 4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
style(docs): revert Table and Menu changes, splitted to #1938
- Loading branch information
Alexander Fedyashov
committed
Aug 7, 2017
1 parent
556905f
commit 0709c6c
Showing
56 changed files
with
2,034 additions
and
1,928 deletions.
There are no files selected for viewing
22 changes: 12 additions & 10 deletions
22
docs/app/Examples/collections/Menu/Content/MenuExampleButtons.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,16 +1,18 @@ | ||
import React from 'react' | ||
import { Button, Menu } from 'semantic-ui-react' | ||
|
||
const MenuExampleButtons = () => ( | ||
<Menu> | ||
<Menu.Item> | ||
<Button primary>Sign up</Button> | ||
</Menu.Item> | ||
const MenuExampleButtons = () => { | ||
return ( | ||
<Menu> | ||
<Menu.Item> | ||
<Button primary>Sign up</Button> | ||
</Menu.Item> | ||
|
||
<Menu.Item> | ||
<Button>Log-in</Button> | ||
</Menu.Item> | ||
</Menu> | ||
) | ||
<Menu.Item> | ||
<Button>Log-in</Button> | ||
</Menu.Item> | ||
</Menu> | ||
) | ||
} | ||
|
||
export default MenuExampleButtons |
24 changes: 13 additions & 11 deletions
24
docs/app/Examples/collections/Menu/Content/MenuExampleDropdownItem.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,16 +1,18 @@ | ||
import React from 'react' | ||
import { Dropdown, Menu } from 'semantic-ui-react' | ||
|
||
const MenuExampleDropdownItem = () => ( | ||
<Menu vertical> | ||
<Dropdown item text='Categories'> | ||
<Dropdown.Menu> | ||
<Dropdown.Item>Electronics</Dropdown.Item> | ||
<Dropdown.Item>Automotive</Dropdown.Item> | ||
<Dropdown.Item>Home</Dropdown.Item> | ||
</Dropdown.Menu> | ||
</Dropdown> | ||
</Menu> | ||
) | ||
const MenuExampleDropdownItem = () => { | ||
return ( | ||
<Menu vertical> | ||
<Dropdown item text='Categories'> | ||
<Dropdown.Menu> | ||
<Dropdown.Item>Electronics</Dropdown.Item> | ||
<Dropdown.Item>Automotive</Dropdown.Item> | ||
<Dropdown.Item>Home</Dropdown.Item> | ||
</Dropdown.Menu> | ||
</Dropdown> | ||
</Menu> | ||
) | ||
} | ||
|
||
export default MenuExampleDropdownItem |
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
22 changes: 12 additions & 10 deletions
22
docs/app/Examples/collections/Menu/Content/MenuExampleInputs.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,16 +1,18 @@ | ||
import React from 'react' | ||
import { Input, Menu } from 'semantic-ui-react' | ||
|
||
const MenuExampleInputs = () => ( | ||
<Menu> | ||
<Menu.Item> | ||
<Input className='icon' icon='search' placeholder='Search...' /> | ||
</Menu.Item> | ||
const MenuExampleInputs = () => { | ||
return ( | ||
<Menu> | ||
<Menu.Item> | ||
<Input className='icon' icon='search' placeholder='Search...' /> | ||
</Menu.Item> | ||
|
||
<Menu.Item position='right'> | ||
<Input action={{ type: 'submit', content: 'Go' }} placeholder='Navigate to...' /> | ||
</Menu.Item> | ||
</Menu> | ||
) | ||
<Menu.Item position='right'> | ||
<Input action={{ type: 'submit', content: 'Go' }} placeholder='Navigate to...' /> | ||
</Menu.Item> | ||
</Menu> | ||
) | ||
} | ||
|
||
export default MenuExampleInputs |
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
14 changes: 8 additions & 6 deletions
14
docs/app/Examples/collections/Menu/States/MenuExampleActive.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,14 @@ | ||
import React from 'react' | ||
import { Menu } from 'semantic-ui-react' | ||
|
||
const MenuExampleActive = () => ( | ||
<Menu compact> | ||
<Menu.Item active> | ||
const MenuExampleActive = () => { | ||
return ( | ||
<Menu compact> | ||
<Menu.Item active> | ||
Link | ||
</Menu.Item> | ||
</Menu> | ||
) | ||
</Menu.Item> | ||
</Menu> | ||
) | ||
} | ||
|
||
export default MenuExampleActive |
14 changes: 8 additions & 6 deletions
14
docs/app/Examples/collections/Menu/States/MenuExampleDisabled.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,14 @@ | ||
import React from 'react' | ||
import { Menu } from 'semantic-ui-react' | ||
|
||
const MenuExampleDisabled = () => ( | ||
<Menu compact> | ||
<Menu.Item disabled> | ||
const MenuExampleDisabled = () => { | ||
return ( | ||
<Menu compact> | ||
<Menu.Item disabled> | ||
Link | ||
</Menu.Item> | ||
</Menu> | ||
) | ||
</Menu.Item> | ||
</Menu> | ||
) | ||
} | ||
|
||
export default MenuExampleDisabled |
14 changes: 8 additions & 6 deletions
14
docs/app/Examples/collections/Menu/States/MenuExampleHover.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,11 +1,13 @@ | ||
import React from 'react' | ||
import { Menu } from 'semantic-ui-react' | ||
|
||
const MenuExampleHover = () => ( | ||
<Menu compact> | ||
<Menu.Item as='a'>A link</Menu.Item> | ||
<Menu.Item link>div Link</Menu.Item> | ||
</Menu> | ||
) | ||
const MenuExampleHover = () => { | ||
return ( | ||
<Menu compact> | ||
<Menu.Item as='a'>A link</Menu.Item> | ||
<Menu.Item link>div Link</Menu.Item> | ||
</Menu> | ||
) | ||
} | ||
|
||
export default MenuExampleHover |
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.