@styled-system/prop-types
Advanced tools
Comparing version 5.0.16 to 5.0.18
@@ -6,4 +6,3 @@ 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); } | ||
export var propType = PropTypes.oneOfType([PropTypes.number, PropTypes.string, PropTypes.array, PropTypes.object]); | ||
var createPropTypes = function createPropTypes(props) { | ||
export var createPropTypes = function createPropTypes(props) { | ||
return props.reduce(function (acc, name) { | ||
@@ -15,3 +14,2 @@ var _extends2; | ||
}; | ||
export default { | ||
@@ -18,0 +16,0 @@ space: createPropTypes(space.propNames), |
"use strict"; | ||
exports.__esModule = true; | ||
exports["default"] = exports.propType = void 0; | ||
exports["default"] = exports.createPropTypes = exports.propType = void 0; | ||
@@ -26,2 +26,3 @@ var _propTypes = _interopRequireDefault(require("prop-types")); | ||
exports.createPropTypes = createPropTypes; | ||
var _default = { | ||
@@ -28,0 +29,0 @@ space: createPropTypes(_styledSystem.space.propNames), |
{ | ||
"name": "@styled-system/prop-types", | ||
"version": "5.0.16", | ||
"version": "5.0.18", | ||
"main": "dist/index.js", | ||
@@ -12,3 +12,3 @@ "module": "dist/index.esm.js", | ||
"devDependencies": { | ||
"styled-system": "^5.0.16" | ||
"styled-system": "^5.0.18" | ||
}, | ||
@@ -21,3 +21,3 @@ "dependencies": { | ||
}, | ||
"gitHead": "ba90b18c253dbce67125fb2ba65776ccfde68a9b" | ||
"gitHead": "cfc5f75484d8b6c2639d7a92bb900f6134b6fea9" | ||
} |
6058
58