@styled-system/prop-types
Advanced tools
Comparing version 5.0.6 to 5.0.8
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } | ||
import PropTypes from 'prop-types'; | ||
import { space, color, layout, typography, flexbox, border, background, position, grid } from 'styled-system'; | ||
import { space, color, layout, typography, flexbox, border, background, position, grid, shadow, buttonStyle, textStyle, colorStyle } from 'styled-system'; | ||
export var propType = PropTypes.oneOfType([PropTypes.number, PropTypes.string, PropTypes.array, PropTypes.object]); | ||
@@ -24,3 +24,7 @@ | ||
position: createPropTypes(position.propNames), | ||
grid: createPropTypes(grid.propNames) | ||
grid: createPropTypes(grid.propNames), | ||
shadow: createPropTypes(shadow.propNames), | ||
buttonStyle: createPropTypes(buttonStyle.propNames), | ||
textStyle: createPropTypes(textStyle.propNames), | ||
colorStyle: createPropTypes(colorStyle.propNames) | ||
}; |
@@ -35,4 +35,8 @@ "use strict"; | ||
position: createPropTypes(_styledSystem.position.propNames), | ||
grid: createPropTypes(_styledSystem.grid.propNames) | ||
grid: createPropTypes(_styledSystem.grid.propNames), | ||
shadow: createPropTypes(_styledSystem.shadow.propNames), | ||
buttonStyle: createPropTypes(_styledSystem.buttonStyle.propNames), | ||
textStyle: createPropTypes(_styledSystem.textStyle.propNames), | ||
colorStyle: createPropTypes(_styledSystem.colorStyle.propNames) | ||
}; | ||
exports["default"] = _default; |
{ | ||
"name": "@styled-system/prop-types", | ||
"version": "5.0.6", | ||
"version": "5.0.8", | ||
"main": "dist/index.js", | ||
@@ -20,3 +20,3 @@ "module": "dist/index.esm.js", | ||
}, | ||
"gitHead": "1767bf03168f37c48990a53b654f00bcc90439dd" | ||
"gitHead": "6ec2bf9c4f59acfba7ef1fb837fe8f20942f2aa5" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5982
57