-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update tests to cover more and Remove redundant transforms in `transl…
…ateKeys`
- Loading branch information
Thomas
committed
May 28, 2019
1 parent
24f2f65
commit 0fc2c62
Showing
6 changed files
with
159 additions
and
21 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 +1,2 @@ | ||
/node_modules | ||
/coverage |
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,58 @@ | ||
module.exports = { | ||
shadow: { | ||
shadowColor: '#FF0000', | ||
shadowOffset: {width: 0, height: 1}, | ||
shadowOpacity: 1, | ||
shadowRadius: 3, | ||
elevation: 1.5, | ||
}, | ||
shadowMd: { | ||
shadowColor: '#FFFF00', | ||
shadowOffset: {width: 0, height: 4}, | ||
shadowOpacity: 1, | ||
shadowRadius: 6, | ||
elevation: 3, | ||
}, | ||
shadowLg: { | ||
shadowColor: '#FFFFFF', | ||
shadowOffset: {width: 0, height: 10}, | ||
shadowOpacity: 1, | ||
shadowRadius: 15, | ||
elevation: 7.5, | ||
}, | ||
shadowXl: { | ||
shadowColor: '#00FF00', | ||
shadowOffset: {width: 0, height: 20}, | ||
shadowOpacity: 1, | ||
shadowRadius: 25, | ||
elevation: 12.5, | ||
}, | ||
shadow2xl: { | ||
shadowColor: '#0000FF', | ||
shadowOffset: {width: 0, height: 25}, | ||
shadowOpacity: 1, | ||
shadowRadius: 50, | ||
elevation: 25, | ||
}, | ||
shadowInner: { | ||
shadowColor: 'rgba(0, 0, 0, 0)', | ||
shadowOffset: {width: 0, height: 0}, | ||
shadowOpacity: 0, | ||
shadowRadius: 0, | ||
elevation: 0, | ||
}, | ||
shadowOutline: { | ||
shadowColor: '#000FF0', | ||
shadowOffset: {width: 0, height: 0}, | ||
shadowOpacity: 1, | ||
shadowRadius: 0, | ||
elevation: 0, | ||
}, | ||
shadowNone: { | ||
shadowColor: 'rgba(0, 0, 0, 0)', | ||
shadowOffset: {width: 0, height: 0}, | ||
shadowOpacity: 0, | ||
shadowRadius: 0, | ||
elevation: 0, | ||
}, | ||
}; |
42 changes: 42 additions & 0 deletions
42
__tests__/fixtures/outputs/generator/hexColorTextShadow.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,42 @@ | ||
module.exports = { | ||
textShadow: { | ||
textShadowColor: '#FF0000', | ||
textShadowOffset: {width: 0, height: 1}, | ||
textShadowRadius: 3, | ||
}, | ||
textShadow2xl: { | ||
textShadowColor: '#0000FF', | ||
textShadowOffset: {width: 0, height: 25}, | ||
textShadowRadius: 50, | ||
}, | ||
textShadowInner: { | ||
textShadowColor: 'rgba(0, 0, 0, 0)', | ||
textShadowOffset: {width: 0, height: 0}, | ||
textShadowRadius: 0, | ||
}, | ||
textShadowMd: { | ||
textShadowColor: '#FFFF00', | ||
textShadowOffset: {width: 0, height: 4}, | ||
textShadowRadius: 6, | ||
}, | ||
textShadowLg: { | ||
textShadowColor: '#FFFFFF', | ||
textShadowOffset: {width: 0, height: 10}, | ||
textShadowRadius: 15, | ||
}, | ||
textShadowXl: { | ||
textShadowColor: '#00FF00', | ||
textShadowOffset: {width: 0, height: 20}, | ||
textShadowRadius: 25, | ||
}, | ||
textShadowOutline: { | ||
textShadowColor: '#000FF0', | ||
textShadowOffset: {width: 0, height: 0}, | ||
textShadowRadius: 0, | ||
}, | ||
textShadowNone: { | ||
textShadowColor: 'rgba(0, 0, 0, 0)', | ||
textShadowOffset: {width: 0, height: 0}, | ||
textShadowRadius: 0, | ||
}, | ||
}; |
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 @@ | ||
module.exports = { | ||
z0: {zIndex: 0}, | ||
z10: {zIndex: 10}, | ||
z20: {zIndex: 20}, | ||
z30: {zIndex: 30}, | ||
z40: {zIndex: 40}, | ||
z50: {zIndex: 50}, | ||
zAuto: {zIndex: 0}, | ||
zK0: {zIndex: 0}, | ||
zK10: {zIndex: 10}, | ||
zK20: {zIndex: 20}, | ||
zK30: {zIndex: 30}, | ||
zK40: {zIndex: 40}, | ||
zK50: {zIndex: 50}, | ||
zKAuto: {zIndex: 0}, | ||
}; |
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