-
Notifications
You must be signed in to change notification settings - Fork 839
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
Theo
committed
Apr 23, 2019
1 parent
deace8d
commit 8289439
Showing
3 changed files
with
182 additions
and
145 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 was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,169 @@ | ||
// Sets default displayOptions for EuiTokens based on iconType | ||
// tokenClass: { | ||
// shape: 'square', | ||
// color: 'tokenTint01', | ||
// fill: false, | ||
// }, | ||
|
||
import { EuiTokenMapDisplayOptions } from '@elastic/eui'; | ||
|
||
export type EuiTokenMapType = | ||
| 'tokenClass' | ||
| 'tokenProperty' | ||
| 'tokenEnum' | ||
| 'tokenVariable' | ||
| 'tokenMethod' | ||
| 'tokenAnnotation' | ||
| 'tokenException' | ||
| 'tokenInterface' | ||
| 'tokenParameter' | ||
| 'tokenField' | ||
| 'tokenFunction' | ||
| 'tokenElement' | ||
| 'tokenBoolean' | ||
| 'tokenString' | ||
| 'tokenArray' | ||
| 'tokenConstant' | ||
| 'tokenNumber' | ||
| 'tokenObject' | ||
| 'tokenEvent' | ||
| 'tokenKey' | ||
| 'tokenNull' | ||
| 'tokenStruct' | ||
| 'tokenPackage' | ||
| 'tokenOperator' | ||
| 'tokenEnumMember' | ||
| 'tokenRepo' | ||
| 'tokenSymbol' | ||
| 'tokenFile' | ||
| 'tokenNamespace' | ||
| 'tokenModule'; | ||
|
||
export const TOKEN_MAP: Record< | ||
EuiTokenMapType, | ||
Partial<EuiTokenMapDisplayOptions> | ||
> = { | ||
tokenClass: { | ||
shape: 'circle', | ||
color: 'tokenTint01', | ||
}, | ||
tokenProperty: { | ||
shape: 'circle', | ||
color: 'tokenTint02', | ||
}, | ||
tokenEnum: { | ||
shape: 'circle', | ||
color: 'tokenTint03', | ||
}, | ||
tokenVariable: { | ||
shape: 'circle', | ||
color: 'tokenTint04', | ||
}, | ||
tokenMethod: { | ||
shape: 'square', | ||
color: 'tokenTint02', | ||
}, | ||
tokenAnnotation: { | ||
shape: 'square', | ||
color: 'tokenTint06', | ||
}, | ||
tokenException: { | ||
shape: 'circle', | ||
color: 'tokenTint07', | ||
}, | ||
tokenInterface: { | ||
shape: 'circle', | ||
color: 'tokenTint08', | ||
}, | ||
tokenParameter: { | ||
shape: 'square', | ||
color: 'tokenTint09', | ||
}, | ||
tokenField: { | ||
shape: 'circle', | ||
color: 'tokenTint10', | ||
}, | ||
tokenElement: { | ||
shape: 'square', | ||
color: 'tokenTint03', | ||
}, | ||
tokenFunction: { | ||
shape: 'circle', | ||
color: 'tokenTint02', | ||
}, | ||
tokenBoolean: { | ||
shape: 'square', | ||
color: 'tokenTint05', | ||
}, | ||
tokenString: { | ||
shape: 'square', | ||
color: 'tokenTint07', | ||
}, | ||
tokenArray: { | ||
shape: 'square', | ||
color: 'tokenTint04', | ||
}, | ||
tokenNumber: { | ||
shape: 'circle', | ||
color: 'tokenTint05', | ||
}, | ||
tokenConstant: { | ||
shape: 'circle', | ||
color: 'tokenTint07', | ||
}, | ||
tokenObject: { | ||
shape: 'square', | ||
color: 'tokenTint03', | ||
}, | ||
tokenEvent: { | ||
shape: 'circle', | ||
color: 'tokenTint09', | ||
}, | ||
tokenKey: { | ||
shape: 'circle', | ||
color: 'tokenTint06', | ||
}, | ||
tokenNull: { | ||
shape: 'square', | ||
color: 'tokenTint02', | ||
}, | ||
tokenStruct: { | ||
shape: 'square', | ||
color: 'tokenTint07', | ||
}, | ||
tokenPackage: { | ||
shape: 'square', | ||
color: 'tokenTint10', | ||
}, | ||
tokenOperator: { | ||
shape: 'circle', | ||
color: 'tokenTint09', | ||
}, | ||
tokenEnumMember: { | ||
shape: 'square', | ||
color: 'tokenTint04', | ||
}, | ||
tokenRepo: { | ||
shape: 'rectangle', | ||
color: 'tokenTint05', | ||
fill: true, | ||
}, | ||
tokenSymbol: { | ||
shape: 'rectangle', | ||
color: 'tokenTint07', | ||
fill: true, | ||
}, | ||
tokenFile: { | ||
shape: 'rectangle', | ||
color: 'tokenTint12', | ||
fill: true, | ||
}, | ||
tokenNamespace: { | ||
shape: 'square', | ||
color: 'tokenTint01', | ||
}, | ||
tokenModule: { | ||
shape: 'square', | ||
color: 'tokenTint09', | ||
}, | ||
}; |