{"name":"@styled-system/should-forward-prop","version":"5.0.2","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.2"},"gitHead":"563a753edcb0f441fe5040458ac36c5c72f03a9d","_id":"@styled-system/should-forward-prop@5.0.2","_nodeVersion":"10.9.0","_npmVersion":"lerna/3.14.1/node@v10.9.0+x64 (darwin)","dist":{"integrity":"sha512-xh5Ixbnlbuqdf4ew+OfMNgHrGbaiUw50QRDQO9JDMj2eX6D45b1Nim5wDT1lkHk3/+PQ6kmNyV8qAoZbHjpDRA==","shasum":"3a94f053c84aeda8fb697be8d08627c088a8367e","tarball":"http://registry-npm.ywwl.com/@styled-system/should-forward-prop/download/@styled-system/should-forward-prop-5.0.2.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\nwsFcBAEBCAAQBQJc9FDeCRA9TVsSAnZWagAAilwP/R2D9apdTh/CHshXn8sB\n9OEb+gxU7sngcjq+TokB4GFGhmrpa40x3qmix26h7y0623qSzwzKhnQrETls\nK4sIA/y8Wm6k3Uwth3d3iwHgoxyZdrpFZt8ZUDD5vJPi5h9OE4pe+hO+AEXq\nGB7QY7LAxgfwVQd2fLPaFXEToiN0WaFXvSvi6e6tN9pjHmHhfQ9sKiKze+iQ\nkcWWiInHTH6hiKj14iUeCTlU1AenNxcW72eGiUNywAk61Awfev1Yp5Yk17vr\nWObZsb+o0f+4yqEApJl+i0IEADakwDwFf7R0iOMs/0w7iYYjA1Fu8b/vwoZm\njJ8xKj1EWh1v/1IMwtFK+aGPrK2dj/L2GOGiqf23hFGIRRrc+LKTI6utFGMe\nNxtqpgp4GbsALZ5E7i2yRxggkuB66bkqwc2kAKguvTHcEKd7oOo2aWOPD4zf\ncoaqEDxqqYS6nATOz+3ZS25Xh7nYgQKslSx8M1Rl8o2sIFKxCAdxUolE8X/N\nG7Lb7k0SGKgnf6oiBPxKMozQ16ENYaf7RHYDzEfMgk6GVAXv0uXyHK6uSkgO\n6/uyg50kPQr3cRUtpqYpgKFgXn+h87pU2xP/ggNlsk66C13DTAggKFfQHEYK\nY425EWMTb4pfvwKKuota7FLONvEcZjixY3mtzeTR7VJaeeUMsBZR9WrPU9J7\ntW3r\r\n=f9Qv\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHw89VP5/eqnoaNy+sBDykCyPRBkxvsmqc6BpsjEBeG7AiBWKzPGQzkHzu2up9CDa2HnscZKyJyoa+7YkzfeFE73Lg=="}],"size":2199,"noattachment":false,"key":"/@styled-system/should-forward-prop/-/@styled-system/should-forward-prop-5.0.2.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.2_1559515358269_0.0383211417959588"},"_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":1559515358365,"_cnpm_publish_time":1559515358365,"dist-tags":{"latest":"5.1.5","next":"5.0.0-12"}}