@paprika/helpers
Advanced tools
Comparing version 0.2.7 to 0.2.8
@@ -11,6 +11,8 @@ "use strict"; | ||
exports.InputValidTypes = exports.deprecated = exports.AlignTypes = exports.ShirtSizes = void 0; | ||
exports.RefOf = exports.InputValidTypes = exports.deprecated = exports.AlignTypes = exports.ShirtSizes = void 0; | ||
var _values = _interopRequireDefault(require("@babel/runtime-corejs2/core-js/object/values")); | ||
var _propTypes = _interopRequireDefault(require("prop-types")); | ||
// NOTE: Maybe this should be provided as a consumable package? | ||
@@ -59,2 +61,11 @@ var ShirtSizes = { | ||
InputValidTypes.ALL = (0, _values["default"])(InputValidTypes); | ||
var RefOf = function RefOf() { | ||
var propType = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : _propTypes["default"].instanceOf(Element); | ||
return _propTypes["default"].oneOfType([_propTypes["default"].func, _propTypes["default"].shape({ | ||
current: propType | ||
})]); | ||
}; | ||
exports.RefOf = RefOf; | ||
//# sourceMappingURL=customPropTypes.js.map |
{ | ||
"name": "@paprika/helpers", | ||
"version": "0.2.7", | ||
"version": "0.2.8", | ||
"description": "Testing helpers for the components", | ||
@@ -19,3 +19,3 @@ "author": "@paprika", | ||
}, | ||
"gitHead": "dd9484e07788c289241fef8d2c81a45d50c09f40" | ||
"gitHead": "1b62ba547e8433a8c3a6bee564c1090409e740a6" | ||
} |
Sorry, the diff of this file is not supported yet
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
36777
25
325