-
Notifications
You must be signed in to change notification settings - Fork 841
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch '2_upstream/master' into update-global-d…
…ate-picker
- Loading branch information
Showing
76 changed files
with
38,998 additions
and
31,079 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 |
---|---|---|
|
@@ -9,6 +9,7 @@ reports/ | |
tmp/ | ||
dist/ | ||
lib/ | ||
es/ | ||
.idea | ||
.vscode/ | ||
.DS_Store | ||
|
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
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -2,3 +2,4 @@ const rimraf = require('rimraf'); | |
|
||
rimraf.sync('dist'); | ||
rimraf.sync('lib'); | ||
rimraf.sync('es'); |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,128 @@ | ||
import React, { Fragment } from 'react'; | ||
|
||
import { | ||
EuiFlexGrid, | ||
EuiFlexItem, | ||
EuiPanel, | ||
EuiText, | ||
EuiToken, | ||
EuiSpacer, | ||
} from '../../../../src/components'; | ||
|
||
const tokens = [ | ||
'tokenAnnotation', | ||
'tokenArray', | ||
'tokenBoolean', | ||
'tokenClass', | ||
'tokenConstant', | ||
'tokenElement', | ||
'tokenEnum', | ||
'tokenEnumMember', | ||
'tokenEvent', | ||
'tokenException', | ||
'tokenField', | ||
'tokenFunction', | ||
'tokenInterface', | ||
'tokenKey', | ||
'tokenMethod', | ||
'tokenNull', | ||
'tokenNumber', | ||
'tokenObject', | ||
'tokenOperator', | ||
'tokenPackage', | ||
'tokenParameter', | ||
'tokenProperty', | ||
'tokenString', | ||
'tokenStruct', | ||
'tokenVariable', | ||
'tokenFile', | ||
'tokenSymbol', | ||
'tokenRepo' | ||
]; | ||
|
||
export default () => ( | ||
<Fragment> | ||
<EuiFlexGrid columns={4}> | ||
{ | ||
tokens.map(token => ( | ||
<EuiFlexItem | ||
className="guideDemo__icon" | ||
key={token} | ||
> | ||
<EuiPanel> | ||
<div style={{ display: 'flex', justifyContent: 'center', marginBottom: '8px' }}> | ||
<EuiToken iconType={token}/> | ||
</div> | ||
<EuiText size="s"> | ||
<p>{token}</p> | ||
</EuiText> | ||
</EuiPanel> | ||
</EuiFlexItem> | ||
)) | ||
} | ||
</EuiFlexGrid> | ||
|
||
<EuiSpacer /> | ||
|
||
<EuiFlexGrid columns={4}> | ||
<EuiFlexItem | ||
className="guideDemo__icon" | ||
> | ||
<EuiPanel> | ||
<div style={{ display: 'flex', justifyContent: 'center', marginBottom: '8px' }}> | ||
<EuiToken | ||
iconType="tokenEvent" | ||
size="m" | ||
displayOptions={{ | ||
color: 'tokenTint10', | ||
shape: 'square', | ||
fill: true, | ||
}} | ||
/> | ||
</div> | ||
<EuiText size="s"> | ||
<p>A custom token</p> | ||
</EuiText> | ||
</EuiPanel> | ||
</EuiFlexItem> | ||
<EuiFlexItem | ||
className="guideDemo__icon" | ||
> | ||
<EuiPanel> | ||
<div style={{ display: 'flex', justifyContent: 'center', marginBottom: '8px' }}> | ||
<EuiToken | ||
iconType="visMapCoordinate" | ||
displayOptions={{ | ||
color: 'tokenTint05', | ||
shape: 'circle', | ||
}} | ||
/> | ||
</div> | ||
<EuiText size="s"> | ||
<p>A custom token</p> | ||
</EuiText> | ||
</EuiPanel> | ||
</EuiFlexItem> | ||
<EuiFlexItem | ||
className="guideDemo__icon" | ||
> | ||
<EuiPanel> | ||
<div style={{ display: 'flex', justifyContent: 'center', marginBottom: '8px' }}> | ||
<EuiToken | ||
iconType="tokenElement" | ||
size="l" | ||
displayOptions={{ | ||
color: 'tokenTint07', | ||
shape: 'rectangle', | ||
hideBorder: true | ||
}} | ||
/> | ||
</div> | ||
<EuiText size="s"> | ||
<p>A custom token</p> | ||
</EuiText> | ||
</EuiPanel> | ||
</EuiFlexItem> | ||
</EuiFlexGrid> | ||
</Fragment> | ||
); |
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.