-
Notifications
You must be signed in to change notification settings - Fork 842
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
82f22d8
commit 4383158
Showing
32 changed files
with
499 additions
and
19 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
// DON'T USE THIS | ||
// DON'T USE THIS | ||
// DON'T USE THIS | ||
// DON'T USE THIS | ||
// DON'T USE THIS | ||
|
||
// This example JS is overly complex for simple icon usage | ||
// and is set up this way for ease of use in our docs. | ||
// | ||
// Check the snippet tab for a more common usage. | ||
|
||
import React from 'react'; | ||
|
||
import { | ||
EuiFlexGrid, | ||
EuiFlexItem, | ||
EuiIcon, | ||
EuiPanel, | ||
EuiText, | ||
EuiCopy, | ||
} from '../../../../src/components'; | ||
|
||
const iconTypes = [ | ||
'editorAlignCenter', | ||
'editorAlignLeft', | ||
'editorAlignRight', | ||
'editorBold', | ||
'editorCodeBlock', | ||
'editorComment', | ||
'editorDistributeHorizontal', | ||
'editorDistributeVertical', | ||
'editorHeading', | ||
'editorItalic', | ||
'editorItemAlignBottom', | ||
'editorItemAlignCenter', | ||
'editorItemAlignLeft', | ||
'editorItemAlignMiddle', | ||
'editorItemAlignRight', | ||
'editorItemAlignTop', | ||
'editorLink', | ||
'editorOrderedList', | ||
'editorPositionBottomLeft', | ||
'editorPositionBottomRight', | ||
'editorPositionTopLeft', | ||
'editorPositionTopRight', | ||
'editorRedo', | ||
'editorStrike', | ||
'editorTable', | ||
'editorUnderline', | ||
'editorUndo', | ||
'editorUnorderedList', | ||
]; | ||
|
||
export default () => ( | ||
<EuiFlexGrid columns={4}> | ||
{iconTypes.map(iconType => ( | ||
<EuiFlexItem | ||
className="guideDemo__icon" | ||
key={iconType} | ||
style={{ width: '200px' }}> | ||
<EuiCopy textToCopy={iconType} afterMessage={`${iconType} copied`}> | ||
{copy => ( | ||
<EuiPanel onClick={copy} className="eui-textCenter"> | ||
<EuiIcon type={iconType} /> | ||
<EuiText size="s"> | ||
<p>{iconType}</p> | ||
</EuiText> | ||
</EuiPanel> | ||
)} | ||
</EuiCopy> | ||
</EuiFlexItem> | ||
))} | ||
</EuiFlexGrid> | ||
); |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import React from 'react'; | ||
|
||
const EuiIconEditorDistributeHorizontal = props => ( | ||
<svg | ||
width={16} | ||
height={16} | ||
viewBox="0 0 16 16" | ||
xmlns="http://www.w3.org/2000/svg" | ||
{...props}> | ||
<path d="M7 2h2a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2zM1.5 1a.5.5 0 0 1 .5.5v13a.5.5 0 1 1-1 0v-13a.5.5 0 0 1 .5-.5zm13 0a.5.5 0 0 1 .5.5v13a.5.5 0 1 1-1 0v-13a.5.5 0 0 1 .5-.5z" /> | ||
</svg> | ||
); | ||
|
||
export const icon = EuiIconEditorDistributeHorizontal; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,14 @@ | ||
import React from 'react'; | ||
|
||
const EuiIconEditorDistributeVertical = props => ( | ||
<svg | ||
width={16} | ||
height={16} | ||
viewBox="0 0 16 16" | ||
xmlns="http://www.w3.org/2000/svg" | ||
{...props}> | ||
<path d="M4 5h8a2 2 0 0 1 2 2v2a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2zM1.5 1h13a.5.5 0 1 1 0 1h-13a.5.5 0 0 1 0-1zm0 13h13a.5.5 0 1 1 0 1h-13a.5.5 0 1 1 0-1z" /> | ||
</svg> | ||
); | ||
|
||
export const icon = EuiIconEditorDistributeVertical; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.