{"name":"@styled-system/should-forward-prop","version":"5.1.0","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.1.0"},"gitHead":"6477ac28b98015cea35c7b8c873b92cae453d910","_id":"@styled-system/should-forward-prop@5.1.0","_nodeVersion":"10.16.0","_npmVersion":"lerna/3.16.4/node@v10.16.0+x64 (darwin)","dist":{"integrity":"sha512-cHANlnbyHxSqp/wtq14NlSOgk77lAli3kDYq7yjMt8oxIuHRKwJDKdO/ainxSTtgTqVHm2Irr/UEmulphu1YFg==","shasum":"3af2c04643c66f14fba098c17e21e5855ae23078","tarball":"http://registry-npm.ywwl.com/@styled-system/should-forward-prop/download/@styled-system/should-forward-prop-5.1.0.tgz","fileCount":7,"unpackedSize":5539,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdUbmKCRA9TVsSAnZWagAAqgkP/0BfpCiEekXSrmmYiWN4\n2GMPavkdMcFN/Ch+At8iIM+TsXMpX5DNUlczbAGTEgZX63DcXEGgykllgQdZ\nIBGgwhmFbKGuvbXCOoL8zxMvL8VOluQYj334p1AF3fHKhccg33uPWlcnhYUV\nmhKmq7jrKDr9GwEvt3iOSCrP+9B45hBKCopAOoc4KFukd5n44qQMSUSnMeX9\ndCsQMLZP81tALn+jmuknMJjxZeIfrLZYyDN0x4g47B+8vQGddrXAi5k34GEP\nR+fNuur+VMIqnV5SUDnY21ijPhbPLblzidWNj0HHZGZ6GoWRTRWwHM3G2GSe\n26vwbQU7izBYQTxlK/K55jk/dSUDNoRnXphRKXktNdsI+IO+DmuVtSnUL1o3\nCAA+zI98OzTssaZwwCpLjhuby0Ci19ZrZYvYOBQvctic5bDJlcyXq4HZeJK8\nrdkQlguJ5+C2OyN2z/lNqWL7AeVOmIqC501PgkCGJwGY64X4Wb6HT8OtmAB0\nr/e0ObbjsRX/X31xuWN+x3vVtFdPEHAqAW+JUqGSW0VUyogp41KBf1SO9g7j\nilkJ9+6Hl5H8ZjBk/Mc8jh0oO/rLjLI6NcDTUwelMPrEAkYpSBXSQMAcFdKK\nAoC/0GVNCJ34zawOdodwPMGxuMj9ZgJoy0dhDspQ1xrAXToecLsYTRg9Aqd2\nIlr8\r\n=hWge\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEAOEkVQd8IXPHdpApQ00bX37EvMULJZkUFmjK6WWSsSAiBT8bjtUrS6ya6fUXE1bKcstp9wG12qGfcJLQu+tXy1wQ=="}],"size":2279,"noattachment":false,"key":"/@styled-system/should-forward-prop/-/@styled-system/should-forward-prop-5.1.0.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.1.0_1565637001572_0.4427177192870957"},"_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":1565637001803,"_cnpm_publish_time":1565637001803,"dist-tags":{"latest":"5.1.5","next":"5.0.0-12"}}