{"name":"@styled-system/should-forward-prop","version":"5.0.12","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.12"},"gitHead":"64f48fd0586230324d1a3943dc56257699a8b9ef","_id":"@styled-system/should-forward-prop@5.0.12","_nodeVersion":"10.9.0","_npmVersion":"lerna/3.15.0/node@v10.9.0+x64 (darwin)","dist":{"integrity":"sha512-522JcIdL6cCgyhUjFTj+2/3roNnZiG0u/o4uPbMuQ/G1MjHoWccuayoYXk+sdLc9K4JbJKyVCXJD2oVw0BfxDA==","shasum":"27d5c0dacc6716d0c54d5efc1c68c2a8cc265e4c","tarball":"http://registry-npm.ywwl.com/@styled-system/should-forward-prop/download/@styled-system/should-forward-prop-5.0.12.tgz","fileCount":7,"unpackedSize":5541,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdEo5tCRA9TVsSAnZWagAA5egP/0mXU/I751jrXSztMUo9\njqQLwFBG3EMVZh3Ux9K7NsTsAOe8Ect2eatTlUGyDNlRqM6p+67l2ej7qCaN\ncUVxowQvnFrMCyMpEbhx/KqxiazKZtluwCuw+EkgOQD3TywwHPBXcu91kB5g\n+Dqz1aze3y+Hsfkdkh6Pwh3CqHNq3h5GLf32GSOPRjJO/3tRiO4qNbRknNwG\n8aLsyQ3wgWclWrYDt+957xr9EKVQD8M27RX4rjaiaLA/ZU1j4PKSZBD0P7l8\n2tU8dchadPyNvKCFFWp51I8BJaOvRmNUmaNdfsBDg/N7wUjm8kUOvSYHW97h\ngTkJAmTW76DmvjomApR+FqlYVM7tCjMmn7n0dB48APC106PdVvNTJD6tDqAA\nrJ6v1T9XSqtArdX0cqeiok/B54sDEEssUUpA7UooClOPF2lwtkvAkGEIfJxB\nQ4DRVTUp4ZdtZd2sxlZRTskLP14zcrPl8ppPkAKyBDZjyRD87sVG4oODy2Pz\n5pOu2nO5qgccL7nJMVmX17pnJUcr5zT7vnsLb1RU3pvXJ2wcAqWQpQSl/0do\nJuuN5oX5s+xZKJW+JMcQ218hlOVe2TBYznQRLIF14UTBd5RxixEq5Kp8aY/G\ntihN4GwjPIfCBNubtaZ+1OxutaSmdOxZCp5+8jUwzdI8y/LR1HpfDfF3Jbap\nbsIZ\r\n=DVdZ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICtQfBmGyifYMS+8oM43eo13dcoYSZ6DEm9u8lzC2xbHAiAUDVdTDb1rfmRd+EU6BncPfFb9+22N10TG1oZnuFuzTg=="}],"size":2265,"noattachment":false,"key":"/@styled-system/should-forward-prop/-/@styled-system/should-forward-prop-5.0.12.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.12_1561497196238_0.6735178975715888"},"_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":1561497196574,"_cnpm_publish_time":1561497196574,"dist-tags":{"latest":"5.1.5","next":"5.0.0-12"}}