-
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.
Merge branch 'master' into feat/flag-names
- Loading branch information
Showing
36 changed files
with
627 additions
and
328 deletions.
There are no files selected for viewing
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,8 +1,6 @@ | ||
import React from 'react' | ||
import { Image } from 'semantic-ui-react' | ||
|
||
const ImageExampleHidden = () => ( | ||
<Image src='/images/wireframe/image.png' size='small' hidden /> | ||
) | ||
const ImageExampleHidden = () => <Image src='/images/wireframe/image.png' size='small' hidden /> | ||
|
||
export default ImageExampleHidden |
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,8 +1,6 @@ | ||
import React from 'react' | ||
import { Image } from 'semantic-ui-react' | ||
|
||
const ImageExampleWrapped = () => ( | ||
<Image src='/images/wireframe/image.png' size='small' wrapped /> | ||
) | ||
const ImageExampleWrapped = () => <Image src='/images/wireframe/image.png' size='small' wrapped /> | ||
|
||
export default ImageExampleWrapped |
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
23 changes: 23 additions & 0 deletions
23
docs/src/examples/modules/Popup/Usage/PopupExampleContext.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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import React from 'react' | ||
import { Button, Popup } from 'semantic-ui-react' | ||
|
||
class PopupExampleContextControlled extends React.Component { | ||
state = {} | ||
|
||
handleRef = node => this.setState({ node }) | ||
|
||
render() { | ||
const { node } = this.state | ||
const trigger = <Button content='Trigger Popup' /> | ||
|
||
return ( | ||
<div> | ||
<Popup trigger={trigger} context={node} content='Hello' position='top center' /> | ||
----------> | ||
<strong ref={this.handleRef}>here</strong> | ||
</div> | ||
) | ||
} | ||
} | ||
|
||
export default PopupExampleContextControlled |
24 changes: 24 additions & 0 deletions
24
docs/src/examples/modules/Popup/Usage/PopupExampleContextControlled.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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import React from 'react' | ||
import { Button, Popup } from 'semantic-ui-react' | ||
|
||
class PopupExampleContextControlled extends React.Component { | ||
state = {} | ||
|
||
toggle = () => this.setState({ open: !this.state.open }) | ||
|
||
handleRef = node => this.setState({ node }) | ||
|
||
render() { | ||
const { node, open } = this.state | ||
return ( | ||
<div> | ||
<Button content='Open controlled Popup' onClick={this.toggle} /> | ||
<Popup context={node} content='Hello' position='top center' open={open} /> | ||
----------> | ||
<strong ref={this.handleRef}>here</strong> | ||
</div> | ||
) | ||
} | ||
} | ||
|
||
export default PopupExampleContextControlled |
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
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
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.