fix(StylePropTypes): add missing values and props

This commit is contained in:
Nicolas Gallagher
2015-08-17 13:15:09 -07:00
parent d86c2f4840
commit 1f3ac7a7b8
5 changed files with 21 additions and 16 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ export default {
position: PropTypes.oneOf([ position: PropTypes.oneOf([
'absolute', 'absolute',
'fixed', 'fixed',
'relative' 'relative' /*default*/
]), ]),
bottom: numberOrString, bottom: numberOrString,
left: numberOrString, left: numberOrString,
+15 -10
View File
@@ -1,28 +1,33 @@
import { PropTypes } from 'react'; import { PropTypes } from 'react';
export default { export default {
color: PropTypes.string,
direction: PropTypes.oneOf([ direction: PropTypes.oneOf([
'auto', 'ltr', 'rtl' 'auto' /*default*/, 'ltr', 'rtl'
]), ]),
font: PropTypes.string,
fontFamily: PropTypes.string, fontFamily: PropTypes.string,
fontSize: PropTypes.string, fontSize: PropTypes.string,
fontWeight: PropTypes.oneOf([
'100', '200', '300', '400', '500', '600', '700', '800', '900',
'bold', 'normal'
]),
fontStyle: PropTypes.oneOf([ fontStyle: PropTypes.oneOf([
'normal', 'italic' 'inherit' /*default*/, 'normal', 'italic'
]),
fontWeight: PropTypes.oneOf([
'inherit' /*default*/, 'bold', 'normal',
'100', '200', '300', '400', '500', '600', '700', '800', '900'
]), ]),
letterSpacing: PropTypes.string, letterSpacing: PropTypes.string,
lineHeight: PropTypes.oneOfType([ PropTypes.string, PropTypes.number ]), lineHeight: PropTypes.oneOfType([
PropTypes.number,
PropTypes.string
]),
textAlign: PropTypes.oneOf([ textAlign: PropTypes.oneOf([
'auto', 'left', 'right', 'center' 'auto' /*default*/, 'center', 'justify', 'left', 'right'
]), ]),
textDecoration: PropTypes.oneOf([ textDecoration: PropTypes.oneOf([
'none', 'underline' 'none' /*default*/, 'line-through', 'underline', 'underline line-through'
]), ]),
textTransform: PropTypes.oneOf([ textTransform: PropTypes.oneOf([
'capitalize', 'lowercase', 'none', 'uppercase' 'none' /*default*/, 'capitalize', 'lowercase', 'uppercase'
]), ]),
wordWrap: PropTypes.oneOf([ wordWrap: PropTypes.oneOf([
'break-word', 'normal' 'break-word', 'normal'