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

View File

@@ -1,4 +1,4 @@
import {PropTypes} from 'react';
import { PropTypes } from 'react';
export default {
backgroundColor: PropTypes.string,

View File

@@ -1,4 +1,4 @@
import {PropTypes} from 'react';
import { PropTypes } from 'react';
const numberOrString = PropTypes.oneOfType([
PropTypes.number,

View File

@@ -1,4 +1,4 @@
import {PropTypes} from 'react';
import { PropTypes } from 'react';
export default {
alignContent: PropTypes.oneOf([

View File

@@ -1,4 +1,4 @@
import {PropTypes} from 'react';
import { PropTypes } from 'react';
const numberOrString = PropTypes.oneOfType([
PropTypes.number,
@@ -9,7 +9,7 @@ export default {
position: PropTypes.oneOf([
'absolute',
'fixed',
'relative'
'relative' /*default*/
]),
bottom: numberOrString,
left: numberOrString,

View File

@@ -1,28 +1,33 @@
import {PropTypes} from 'react';
import { PropTypes } from 'react';
export default {
color: PropTypes.string,
direction: PropTypes.oneOf([
'auto', 'ltr', 'rtl'
'auto' /*default*/, 'ltr', 'rtl'
]),
font: PropTypes.string,
fontFamily: PropTypes.string,
fontSize: PropTypes.string,
fontWeight: PropTypes.oneOf([
'100', '200', '300', '400', '500', '600', '700', '800', '900',
'bold', 'normal'
]),
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,
lineHeight: PropTypes.oneOfType([ PropTypes.string, PropTypes.number ]),
lineHeight: PropTypes.oneOfType([
PropTypes.number,
PropTypes.string
]),
textAlign: PropTypes.oneOf([
'auto', 'left', 'right', 'center'
'auto' /*default*/, 'center', 'justify', 'left', 'right'
]),
textDecoration: PropTypes.oneOf([
'none', 'underline'
'none' /*default*/, 'line-through', 'underline', 'underline line-through'
]),
textTransform: PropTypes.oneOf([
'capitalize', 'lowercase', 'none', 'uppercase'
'none' /*default*/, 'capitalize', 'lowercase', 'uppercase'
]),
wordWrap: PropTypes.oneOf([
'break-word', 'normal'