react-grid-system
Advanced tools
Comparing version 4.2.0 to 4.2.1
@@ -181,3 +181,3 @@ 'use strict'; | ||
*/ | ||
component: _propTypes2.default.oneOfType([_propTypes2.default.element, _propTypes2.default.string]) | ||
component: _propTypes2.default.oneOfType([_propTypes2.default.func, _propTypes2.default.string]) | ||
}; | ||
@@ -184,0 +184,0 @@ Col.defaultProps = { |
@@ -89,3 +89,8 @@ 'use strict'; | ||
style: theStyle | ||
}, otherProps), [children, _react2.default.createElement('span', { style: (0, _style.getAfterStyle)() })]); | ||
}, otherProps), _react2.default.createElement( | ||
_react2.default.Fragment, | ||
null, | ||
children, | ||
_react2.default.createElement('span', { style: (0, _style.getAfterStyle)() }) | ||
)); | ||
}; | ||
@@ -143,3 +148,3 @@ | ||
*/ | ||
component: _propTypes2.default.oneOfType([_propTypes2.default.element, _propTypes2.default.string]) | ||
component: _propTypes2.default.oneOfType([_propTypes2.default.func, _propTypes2.default.string]) | ||
}; | ||
@@ -146,0 +151,0 @@ Container.defaultProps = { |
@@ -101,3 +101,3 @@ 'use strict'; | ||
*/ | ||
component: _propTypes2.default.oneOfType([_propTypes2.default.element, _propTypes2.default.string]) | ||
component: _propTypes2.default.oneOfType([_propTypes2.default.func, _propTypes2.default.string]) | ||
}; | ||
@@ -104,0 +104,0 @@ Row.defaultProps = { |
{ | ||
"name": "react-grid-system", | ||
"version": "4.2.0", | ||
"version": "4.2.1", | ||
"description": "A powerful Bootstrap-like responsive grid system for React.", | ||
@@ -5,0 +5,0 @@ "main": "./build/index.js", |
@@ -82,3 +82,3 @@ /* global window */ | ||
component: PropTypes.oneOfType([ | ||
PropTypes.element, | ||
PropTypes.func, | ||
PropTypes.string, | ||
@@ -85,0 +85,0 @@ ]), |
@@ -56,3 +56,3 @@ /* global window */ | ||
component: PropTypes.oneOfType([ | ||
PropTypes.element, | ||
PropTypes.func, | ||
PropTypes.string, | ||
@@ -115,5 +115,7 @@ ]), | ||
}, | ||
[children, | ||
<span style={getAfterStyle()} />]); | ||
<React.Fragment> | ||
{children} | ||
<span style={getAfterStyle()} /> | ||
</React.Fragment>); | ||
} | ||
} |
@@ -37,3 +37,3 @@ import React from 'react'; | ||
component: PropTypes.oneOfType([ | ||
PropTypes.element, | ||
PropTypes.func, | ||
PropTypes.string, | ||
@@ -40,0 +40,0 @@ ]), |
71272
1638