@ntragas/pouncejstest
Version:
A collection of UI components from Panther labs
16 lines (10 loc) • 676 B
JavaScript
;
exports.__esModule = true;
exports.shouldForwardProp = void 0;
var _shouldForwardProp = require("@styled-system/should-forward-prop");
var otherProps = ['nativeWidth', 'nativeHeight', 'minRows', 'maxRows']; // extend the forwarded props by stuff that styled-system doesn't deal with
var shouldForwardSystemProp = (0, _shouldForwardProp.createShouldForwardProp)([].concat(_shouldForwardProp.props, ['textDecoration', 'pointerEvents', 'visibility', 'transform', 'cursor']));
var shouldForwardProp = function shouldForwardProp(prop) {
return otherProps.includes(prop) ? true : shouldForwardSystemProp(prop);
};
exports.shouldForwardProp = shouldForwardProp;