diff --git a/src/modules/StylePropTypes/Background.js b/src/modules/StylePropTypes/Background.js index c4d3a313..247396c2 100644 --- a/src/modules/StylePropTypes/Background.js +++ b/src/modules/StylePropTypes/Background.js @@ -1,4 +1,4 @@ -import {PropTypes} from 'react'; +import { PropTypes } from 'react'; export default { backgroundColor: PropTypes.string, diff --git a/src/modules/StylePropTypes/BorderTheme.js b/src/modules/StylePropTypes/BorderTheme.js index 8028d1bf..216c5a53 100644 --- a/src/modules/StylePropTypes/BorderTheme.js +++ b/src/modules/StylePropTypes/BorderTheme.js @@ -1,4 +1,4 @@ -import {PropTypes} from 'react'; +import { PropTypes } from 'react'; const numberOrString = PropTypes.oneOfType([ PropTypes.number, diff --git a/src/modules/StylePropTypes/Flexbox.js b/src/modules/StylePropTypes/Flexbox.js index a95718c9..33ab2a06 100644 --- a/src/modules/StylePropTypes/Flexbox.js +++ b/src/modules/StylePropTypes/Flexbox.js @@ -1,4 +1,4 @@ -import {PropTypes} from 'react'; +import { PropTypes } from 'react'; export default { alignContent: PropTypes.oneOf([ diff --git a/src/modules/StylePropTypes/Position.js b/src/modules/StylePropTypes/Position.js index 134bfa99..e6223853 100644 --- a/src/modules/StylePropTypes/Position.js +++ b/src/modules/StylePropTypes/Position.js @@ -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, diff --git a/src/modules/StylePropTypes/Typographic.js b/src/modules/StylePropTypes/Typographic.js index ed19e6ae..ed550eec 100644 --- a/src/modules/StylePropTypes/Typographic.js +++ b/src/modules/StylePropTypes/Typographic.js @@ -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'