forked from Semantic-Org/Semantic-UI-React
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* docs(Button): remove redundant prop in Vertical Group example (Semantic-Org#1699) * feat(typescript): Export generics types (Semantic-Org#1698) * docs(Dropdown): fix world icon in search example (Semantic-Org#1695) * Fix MenuExampleText * add world icon to Dropdown example * rename 'languageOptions' to 'languages' * rename languages to languageOptions and separate line into two * separate line of code in two * separate props in different lines * remove trailing spaces * docs(Introduction): fix declarative example (Semantic-Org#1704) * feat(Item): add unstackable prop to ItemGroup (Semantic-Org#1706) * feat(Item): add unstackable prop to ItemGroup * docs(Item): add example for unstackable * chore(package): commit package-lock.json * 0.68.4 * docs(changelog): update changelog [ci skip] * docs(Icon): fix selector for input (Semantic-Org#1714) * chore(package): update require-dir to version 0.3.2 (Semantic-Org#1721) https://greenkeeper.io/ * docs(ItemExampleFloated): your description (Semantic-Org#1719) Fixes error in docs. "AS" is not being recognized. * chore(package): update react-ace to version 5.0.1 (Semantic-Org#1712) https://greenkeeper.io/ * fix(Dropdown): add addition item key (Semantic-Org#1727) * fix(factories): handle falsy `key` values (Semantic-Org#1729) * fix(Dropdown): fix key handling * fix(Dropdown): fix key handling * fix(factories): handle falsy keys * chore(package): update package-lock.json * chore(package): update chai-enzyme to 0.7.1 (Semantic-Org#1731) * feat(typings): expose FormComponent in typings (Semantic-Org#1680) * Exposed form component in typings to support custom controls in packages. * Update index.d.ts * Update index.d.ts * chore(package): update package-lock.json * 0.68.5 * docs(changelog): update changelog [ci skip] * fix(Input): add missing minLength prop (Semantic-Org#1734) * docs(TableExampleSortable): pass in null when that column shouldn't be sorted (Semantic-Org#1737) * feat(TextArea): add minHeight property, docs example (Semantic-Org#1679) * add minHeight property, example to docs * add rows prop/adjust minHeight prop usage * mixed(TextArea): update docs, tests, props and typings * fix(Textarea): move back minHeight prop to style * fix(htmlInputProps): fix handle on falsy values (Semantic-Org#1746) * fix(Search): Allow default action if there is no selected result (Semantic-Org#1742) * docs(images): add missing images, update urls (Semantic-Org#1763) * fix(Accordion): typings inverted to boolean (Semantic-Org#1758) Tiny fix for typings, inverted type incorrectly set to string. * feat(Icon): add ability use the loading prop without an icon (Semantic-Org#1768) * feat(Button): add focus method (Semantic-Org#1764) * fix(Dropdown): change active item on keyboard up/down (Semantic-Org#1735) * fix(Dropdown): change active item on keyboard up/down * fix(Dropdown): change active item on keyboard up/down * refactor(Dropdown): simplify move constant * refactor(Dropdown): remove hidden select (Semantic-Org#1730) breaking(Dropdown): remove hidden select * fix(Checkbox|Input): fix handling of aria-attributes (Semantic-Org#1752) * fix(Checkbox|Input): fix handling of aria-attributes * feat(htmlInputProps): update handling of aria
- Loading branch information
1 parent
a5b4fb7
commit 0bf1dc8
Showing
53 changed files
with
8,418 additions
and
272 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
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
4 changes: 2 additions & 2 deletions
4
.../addons/TextArea/Usage/TextAreaExample.js → ...TextArea/Types/TextAreaExampleTextArea.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,10 +1,10 @@ | ||
import React from 'react' | ||
import { Form, TextArea } from 'semantic-ui-react' | ||
|
||
const TextAreaExample = () => ( | ||
const TextAreaExampleTextArea = () => ( | ||
<Form> | ||
<TextArea placeholder='Tell us more' /> | ||
</Form> | ||
) | ||
|
||
export default TextAreaExample | ||
export default TextAreaExampleTextArea |
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,16 @@ | ||
import React from 'react' | ||
|
||
import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample' | ||
import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection' | ||
|
||
const TextAreaTypesExamples = () => ( | ||
<ExampleSection title='Types'> | ||
<ComponentExample | ||
title='TextArea' | ||
description='A default TextArea.' | ||
examplePath='addons/TextArea/Types/TextAreaExampleTextArea' | ||
/> | ||
</ExampleSection> | ||
) | ||
|
||
export default TextAreaTypesExamples |
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
10 changes: 10 additions & 0 deletions
10
docs/app/Examples/addons/TextArea/Usage/TextAreaExampleAutoHeightMinHeight.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,10 @@ | ||
import React from 'react' | ||
import { Form, TextArea } from 'semantic-ui-react' | ||
|
||
const TextAreaExampleAutoHeightMinHeight = () => ( | ||
<Form> | ||
<TextArea autoHeight placeholder='Try adding multiple lines' style={{ minHeight: 100 }} /> | ||
</Form> | ||
) | ||
|
||
export default TextAreaExampleAutoHeightMinHeight |
10 changes: 10 additions & 0 deletions
10
docs/app/Examples/addons/TextArea/Usage/TextAreaExampleAutoHeightRows.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,10 @@ | ||
import React from 'react' | ||
import { Form, TextArea } from 'semantic-ui-react' | ||
|
||
const TextAreaExampleAutoHeightRows = () => ( | ||
<Form> | ||
<TextArea autoHeight placeholder='Try adding multiple lines' rows={1} /> | ||
</Form> | ||
) | ||
|
||
export default TextAreaExampleAutoHeightRows |
10 changes: 10 additions & 0 deletions
10
docs/app/Examples/addons/TextArea/Usage/TextAreaExampleMinHeight.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,10 @@ | ||
import React from 'react' | ||
import { Form, TextArea } from 'semantic-ui-react' | ||
|
||
const TextAreaExampleMinHeight = () => ( | ||
<Form> | ||
<TextArea placeholder='Tell us more' style={{ minHeight: 100 }} /> | ||
</Form> | ||
) | ||
|
||
export default TextAreaExampleMinHeight |
10 changes: 10 additions & 0 deletions
10
docs/app/Examples/addons/TextArea/Usage/TextAreaExampleRows.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,10 @@ | ||
import React from 'react' | ||
import { Form, TextArea } from 'semantic-ui-react' | ||
|
||
const TextAreaExampleRows = () => ( | ||
<Form> | ||
<TextArea rows={2} placeholder='Tell us more' /> | ||
</Form> | ||
) | ||
|
||
export default TextAreaExampleRows |
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,20 +1,36 @@ | ||
import React from 'react' | ||
|
||
import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample' | ||
import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection' | ||
|
||
const TextAreaTypesExamples = () => ( | ||
const TextAreaUsageExamples = () => ( | ||
<ExampleSection title='Usage'> | ||
<ComponentExample | ||
title='TextArea' | ||
description='A default TextArea.' | ||
examplePath='addons/TextArea/Usage/TextAreaExample' | ||
title='Min Height' | ||
description='A TextArea can have a minimum height.' | ||
examplePath='addons/TextArea/Usage/TextAreaExampleMinHeight' | ||
/> | ||
|
||
<ComponentExample | ||
title='Rows' | ||
description='A TextArea can have a minimum number of rows.' | ||
examplePath='addons/TextArea/Usage/TextAreaExampleRows' | ||
/> | ||
|
||
<ComponentExample | ||
title='Auto Height' | ||
description='A TextArea can adjust its height to fit its contents.' | ||
examplePath='addons/TextArea/Usage/TextAreaExampleAutoHeight' | ||
/> | ||
<ComponentExample | ||
description='A TextArea can adjust its height to fit its contents and depend on minHeight value.' | ||
examplePath='addons/TextArea/Usage/TextAreaExampleAutoHeightMinHeight' | ||
/> | ||
<ComponentExample | ||
description='A TextArea can adjust its height to fit its contents and depend on rows value.' | ||
examplePath='addons/TextArea/Usage/TextAreaExampleAutoHeightRows' | ||
/> | ||
</ExampleSection> | ||
) | ||
|
||
export default TextAreaTypesExamples | ||
export default TextAreaUsageExamples |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,34 @@ | ||
import React from 'react' | ||
import { Divider, Image, Segment } from 'semantic-ui-react' | ||
|
||
export default (props) => ( | ||
export default () => ( | ||
<Segment> | ||
<Image src='http://semantic-ui.com/images/wireframe/centered-paragraph.png' /> | ||
<Image src='/assets/images/wireframe/centered-paragraph.png' /> | ||
<Divider /> | ||
<Image src='http://semantic-ui.com/images/wireframe/short-paragraph.png' /> | ||
<Image src='/assets/images/wireframe/short-paragraph.png' /> | ||
<Divider /> | ||
<Image src='http://semantic-ui.com/images/wireframe/media-paragraph.png' /> | ||
<Image src='/assets/images/wireframe/media-paragraph.png' /> | ||
<Divider /> | ||
<Image src='http://semantic-ui.com/images/wireframe/paragraph.png' /> | ||
<Image src='/assets/images/wireframe/paragraph.png' /> | ||
<Divider /> | ||
<Image src='http://semantic-ui.com/images/wireframe/centered-paragraph.png' /> | ||
<Image src='/assets/images/wireframe/centered-paragraph.png' /> | ||
<Divider /> | ||
<Image src='http://semantic-ui.com/images/wireframe/short-paragraph.png' /> | ||
<Image src='/assets/images/wireframe/short-paragraph.png' /> | ||
<Divider /> | ||
<Image src='http://semantic-ui.com/images/wireframe/media-paragraph.png' /> | ||
<Image src='/assets/images/wireframe/media-paragraph.png' /> | ||
<Divider /> | ||
<Image src='http://semantic-ui.com/images/wireframe/paragraph.png' /> | ||
<Image src='/assets/images/wireframe/paragraph.png' /> | ||
<Divider /> | ||
<Image src='http://semantic-ui.com/images/wireframe/short-paragraph.png' /> | ||
<Image src='/assets/images/wireframe/short-paragraph.png' /> | ||
<Divider /> | ||
<Image src='http://semantic-ui.com/images/wireframe/centered-paragraph.png' /> | ||
<Image src='/assets/images/wireframe/centered-paragraph.png' /> | ||
<Divider /> | ||
<Image src='http://semantic-ui.com/images/wireframe/short-paragraph.png' /> | ||
<Image src='/assets/images/wireframe/short-paragraph.png' /> | ||
<Divider /> | ||
<Image src='http://semantic-ui.com/images/wireframe/media-paragraph.png' /> | ||
<Image src='/assets/images/wireframe/media-paragraph.png' /> | ||
<Divider /> | ||
<Image src='http://semantic-ui.com/images/wireframe/paragraph.png' /> | ||
<Image src='/assets/images/wireframe/paragraph.png' /> | ||
<Divider /> | ||
<Image src='http://semantic-ui.com/images/wireframe/short-paragraph.png' /> | ||
<Image src='/assets/images/wireframe/short-paragraph.png' /> | ||
</Segment> | ||
) |
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
28 changes: 28 additions & 0 deletions
28
docs/app/Examples/elements/Button/Usage/ButtonExampleFocus.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,28 @@ | ||
import React, { Component } from 'react' | ||
import { Button, Grid } from 'semantic-ui-react' | ||
|
||
export default class ButtonExampleFocus extends Component { | ||
handleClick = () => this.ref.focus() | ||
|
||
handleRef = c => (this.ref = c) | ||
|
||
render() { | ||
return ( | ||
<Grid> | ||
<Grid.Column width={8}> | ||
<Button | ||
content='A button that can be focused' | ||
primary | ||
ref={this.handleRef} | ||
/> | ||
</Grid.Column> | ||
<Grid.Column width={8}> | ||
<Button | ||
content='Set focused' | ||
onClick={this.handleClick} | ||
/> | ||
</Grid.Column> | ||
</Grid> | ||
) | ||
} | ||
} |
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,16 @@ | ||
import React from 'react' | ||
|
||
import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample' | ||
import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection' | ||
|
||
const ButtonUsageExamples = () => ( | ||
<ExampleSection title='Usage'> | ||
<ComponentExample | ||
title='Focus' | ||
description='A button can be focused.' | ||
examplePath='elements/Button/Usage/ButtonExampleFocus' | ||
/> | ||
</ExampleSection> | ||
) | ||
|
||
export default ButtonUsageExamples |
Oops, something went wrong.