{"name":"@styled-system/should-forward-prop","version":"5.0.6","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.8.1","@emotion/memoize":"^0.7.1","styled-system":"^5.0.6"},"gitHead":"1767bf03168f37c48990a53b654f00bcc90439dd","_id":"@styled-system/should-forward-prop@5.0.6","_nodeVersion":"10.9.0","_npmVersion":"lerna/3.15.0/node@v10.9.0+x64 (darwin)","dist":{"integrity":"sha512-WerEl9sxvw5O+O/1jnugP8/a1iHVkihzIix32gqlqC1Oxyhq7znIL9SNs65BZyQc4snqdmA5ejz6as3moMip4g==","shasum":"e17b2844e8c955bf6031dfea5c0b7f6678b2ddcc","tarball":"http://registry-npm.ywwl.com/@styled-system/should-forward-prop/download/@styled-system/should-forward-prop-5.0.6.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\nwsFcBAEBCAAQBQJc/snoCRA9TVsSAnZWagAAozQQAJDQRGNqfXx6V5B7XzQa\n5mZCSfQyUTKb2PLOYD87/cwId9+K6bt8TjpeCXhw9Kl4AgQTeN9Xf+GdVkZP\nuK5Yt9tOsbqH1H2XUpHMv/dRkgYcqt1RT2+C4R2uzS1oPijNpd4lQT7Onjd0\nKCVhT6yg1gbb8dxjtmjbELCLwhGUh6/DdlyC6OnSz3vXUuurtKPBNcuP0NZe\nRm9E3kGkl4JN7+8CItJZhKG981Nm3TbkAIeifTLK0ZyBwAczcnAlF9tIwmsf\nBNV2nAGqk6oqKnRRnvhJD8wFAnSOfASXox3K45PejsS5mUQQxUPJECzlXFeE\nT8kQB4M+6hwyRhMbM4RDcT9MWcvk3iid8x4UXOYzzYBIX0Sxx6gaAe12sJ5I\n5znuyA/479gVPUE0YrbE1yrnLyPfnqnwtad6fyj8oVCInEPVRpakrij8TkzJ\na/QiCR8UqxSy5gx2yP7eJoH2V9tvkhZ5RIitS8Stpgvu3XnjbixN+h/BYXRY\n4UZ3Hv8Wt85jRitXeW4yhA/+XWX1rqwDHrzAd2UA2b78P7jYolK7s39rSG5W\nwccfWVEDXjtiCF0DTxW1KeQ9BmmKxv2OjZb11x1L//rP47cr85De14L9VlLp\njm20YrvH9KmRW103vgTsRjz9wKvvmKkcNp+aityCDcVjB9ssSFZ00veScjr0\nC2LI\r\n=R/zH\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCwNCmZohKB2/k9B4oNdOPrqiH54FANOyQi9xgarsFLawIgVDgN2pOe48sN8E5qSBWwH2+da5By7ad5/xXXqszK4Qc="}],"size":2201,"noattachment":false,"key":"/@styled-system/should-forward-prop/-/@styled-system/should-forward-prop-5.0.6.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.6_1560201703884_0.6157697860864213"},"_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":1560201704021,"_cnpm_publish_time":1560201704021,"dist-tags":{"latest":"5.1.5","next":"5.0.0-12"}}