-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(Dropdown): update options to items
- Loading branch information
1 parent
695dd38
commit 431d47c
Showing
50 changed files
with
134 additions
and
148 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,11 +1,11 @@ | ||
import React from 'react' | ||
import { Select } from 'semantic-ui-react' | ||
|
||
import { countryOptions } from '../common' | ||
import { countryItems } from '../common' | ||
// [{ key: 'af', value: 'af', flag: 'af', text: 'Afghanistan' }, ...{}] | ||
|
||
const SelectExample = () => ( | ||
<Select placeholder='Select your country' options={countryOptions} /> | ||
<Select placeholder='Select your country' items={countryItems} /> | ||
) | ||
|
||
export default SelectExample |
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
4 changes: 2 additions & 2 deletions
4
docs/app/Examples/elements/Input/Variations/InputExampleActionDropdown.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
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
docs/app/Examples/elements/Input/Variations/InputExampleRightLabeled.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
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
7 changes: 3 additions & 4 deletions
7
docs/app/Examples/modules/Dropdown/Content/DropdownExampleImage.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
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
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
6 changes: 3 additions & 3 deletions
6
docs/app/Examples/modules/Dropdown/Types/DropdownExampleMultipleSearchSelection.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,11 @@ | ||
import React from 'react' | ||
import { Dropdown } from 'semantic-ui-react' | ||
|
||
import { stateOptions } from '../common' | ||
// stateOptions = [ { key: 'AL', value: 'AL', text: 'Alabama' }, ... ] | ||
import { stateItems } from '../common' | ||
// stateItems = [ { key: 'AL', value: 'AL', text: 'Alabama' }, ... ] | ||
|
||
const DropdownExampleMultipleSearchSelection = () => ( | ||
<Dropdown placeholder='State' fluid multiple search selection options={stateOptions} /> | ||
<Dropdown placeholder='State' fluid multiple search selection items={stateItems} /> | ||
) | ||
|
||
export default DropdownExampleMultipleSearchSelection |
6 changes: 3 additions & 3 deletions
6
docs/app/Examples/modules/Dropdown/Types/DropdownExampleMultipleSearchSelectionTwo.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,11 @@ | ||
import React from 'react' | ||
import { Dropdown } from 'semantic-ui-react' | ||
|
||
import { countryOptions } from '../common' | ||
// countryOptions = [ { key: 'af', value: 'af', flag: 'af', text: 'Afghanistan' }, ... ] | ||
import { countryItems } from '../common' | ||
// countryItems = [ { key: 'af', value: 'af', flag: 'af', text: 'Afghanistan' }, ... ] | ||
|
||
const DropdownExampleMultipleSearchSelectionTwo = () => ( | ||
<Dropdown placeholder='Select Country' fluid multiple search selection options={countryOptions} /> | ||
<Dropdown placeholder='Select Country' fluid multiple search selection items={countryItems} /> | ||
) | ||
|
||
export default DropdownExampleMultipleSearchSelectionTwo |
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: 13 additions & 10 deletions
23
docs/app/Examples/modules/Dropdown/Types/DropdownExampleSearchDropdown.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,18 +1,21 @@ | ||
import React from 'react' | ||
import { Dropdown } from 'semantic-ui-react' | ||
|
||
import { languageOptions } from '../common' | ||
// languageOptions = [ { key: 'Arabic', text: 'Arabic', value: 'Arabic' }, ... ] | ||
import { languageItems } from '../common' | ||
// languageItems = [ { key: 'Arabic', text: 'Arabic', value: 'Arabic' }, ... ] | ||
|
||
/** | ||
* NOTE: In this example, the dropdown should contain a label on the | ||
* left of the text: | ||
* <i class="world icon"></i> | ||
* | ||
* @returns {Element} | ||
*/ | ||
const DropdownExampleSearchDropdown = () => ( | ||
<Dropdown text='Select Language' search floating labeled button className='icon' options={languageOptions} /> | ||
<Dropdown | ||
text='Select Language' | ||
icon='world' | ||
search | ||
floating | ||
labeled | ||
button | ||
// TODO: remove className once button/icon API is in place | ||
className='icon' | ||
items={languageItems} | ||
/> | ||
) | ||
|
||
export default DropdownExampleSearchDropdown |
Oops, something went wrong.