{"name":"@styled-system/should-forward-prop","version":"5.0.5","description":"Utility for filtering Styled System props with Emotion's shouldForwardProp option","main":"dist/index.js","module":"dist/index.esm.js","keywords":[],"author":{"name":"Brent Jackson","email":"jxnblk@gmail.com"},"license":"MIT","dependencies":{"@emotion/is-prop-valid":"^0.7.3","@emotion/memoize":"^0.7.1","styled-system":"^5.0.5"},"gitHead":"d585cc19c2064684cf9f3b317d0acf982bdf137b","_id":"@styled-system/should-forward-prop@5.0.5","_nodeVersion":"10.15.3","_npmVersion":"lerna/3.14.1/node@v10.15.3+x64 (darwin)","dist":{"integrity":"sha512-xwJAZIn26Zz/1P3Fk9tFaYheF1k5+7+OAmUAnT7dYpyoq/rdnUQ8IvHbWr5L/tFkqm0+6ScT1dCkbnADmMimYA==","shasum":"79a96bd77407176db591c63e8e3286e5d5a23b00","tarball":"http://registry-npm.ywwl.com/@styled-system/should-forward-prop/download/@styled-system/should-forward-prop-5.0.5.tgz","fileCount":7,"unpackedSize":5247,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc9ZsGCRA9TVsSAnZWagAAcgAP/inw61hUwew8KQG9RSVs\ntQrH3fMb+9hJForUK1XR51T4UScWJquAvX0TAuLc5OwalLCifc4qAn/fJ4zW\nafh9AfzlvC+jKXSTgt7wQQ11XLgB+eRRlW8E+TqqdOdZRuWPGIKCSHXVnmiX\nNsDA1DuiufN/T7E2RAmaQHSm5z0y5f334rN/hDEeyNl7z/hKVNKp4azHhRpe\nnk2r1VHQBA84Yv2w6DaSXYXHz7gzPNA1D6FFki67eqAwwlqXlLhLlpJxTZ9V\nn2ODilyGJYhszTDKAKhPgIYNDn3CwQPnEvgGm/nO/0VXikfUhfrBv9dMtHl+\n8yp6vL27WFfKus0UV5fuQQ6ekqiydj1dwxbgTtBvpnJdDmDJbVswyJTDUBCE\nGc2v78t/7ij4L4p4hP26YUkw2UqHxZ/3NW55e6xSSfBL6gxIbjt90NItcSDf\ncK9x1HPyjV9WrUNJBFTNgNACm2f6Miy/AhGadap7q9aNjII2OAmc643N7pFG\nWyJsud/bam9Rhq3lwCN/a9mVuw1Ykaskw2dXR0GpDoKQVh3gIDTEiPJsCesx\nLVnFnKhsc7oCHK1mIfA1gYd4S8w/PIBDPm8+zO/oui2UpXxzqF7Cp2Wc/R3J\nx30tfPtznF9jDaSTXNS2XwVXHNjrcFI7+k9ukZh3TQioKl4uNLSJ+ubAbQ87\nTN5F\r\n=TUzr\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCtp+cQbpc+0YdjfK3M6il2G07E0spOXRE+YBBR/VnZNQIhANR6M9N885IR9DtRkMioRqTcG2aGir9piiyUIRzTJcS9"}],"size":2198,"noattachment":false,"key":"/@styled-system/should-forward-prop/-/@styled-system/should-forward-prop-5.0.5.tgz"},"maintainers":[{"name":"jxnblk","email":"jxnblk@gmail.com"}],"_npmUser":{"name":"jxnblk","email":"jxnblk@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/should-forward-prop_5.0.5_1559599876860_0.48401508563883144"},"_hasShrinkwrap":false,"readme":"\n# @styled-system/should-forward-prop\n\nUtility for filtering Styled System props with Emotion's shouldForwardProp option\n\n```sh\nnpm i @styled-system/should-forward-prop\n```\n\n```js\nimport styled from '@emotion/styled'\nimport {\n  space,\n  color,\n  typography\n} from 'styled-system'\nimport shouldForwardProp from '@styled-system/should-forward-prop'\n\nconst Box = styled('div', { shouldForwardProp })(\n  space,\n  color,\n  typography\n)\n```\n\n## Custom Props\n\nTo exclude other custom props not included in Styled System, use the `createShouldForwardProp` utility.\n\n```js\nimport styled from '@emotion/styled'\nimport { space, color } from 'styled-system'\nimport { createShouldForwardProp, props } from '@styled-system/should-forward-prop'\n\nconst shouldForwardProp = createShouldForwardProp([\n  ...props,\n  'd',\n  'x'\n])\n\nconst Box = styled('div', {\n  shouldForwardProp\n})(props => ({\n  display: props.d,\n  fontWeight: props.x ? 'bold' : null,\n}),\n  space,\n  color\n)\n```\n\nMIT License\n","publish_time":1559599876983,"_cnpm_publish_time":1559599876983,"dist-tags":{"latest":"5.1.5","next":"5.0.0-12"}}