{"name":"@styled-system/should-forward-prop","version":"5.0.14","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.14"},"gitHead":"0a42765abf8d3183aa7b79b527118db86788eb90","_id":"@styled-system/should-forward-prop@5.0.14","_nodeVersion":"10.16.0","_npmVersion":"lerna/3.15.0/node@v10.16.0+x64 (darwin)","dist":{"integrity":"sha512-zz7BXeRPi4YfvmOTk26jPZAXfnD67xczgliwAGY9C7V28O84YYg0+EF0hi4uCgrKU4YiyKkjJRm1ARTOEbSuJQ==","shasum":"33c41a77f351b99a6909dfcd6f3330abd28eb89d","tarball":"http://registry-npm.ywwl.com/@styled-system/should-forward-prop/download/@styled-system/should-forward-prop-5.0.14.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\nwsFcBAEBCAAQBQJdLLfSCRA9TVsSAnZWagAAwUoQAIhy46stH/y7TT8W8R7r\nHZ+ND31hMGZQRG8xHsi9Yd7Ouv9wtE2kFXtjoablp/5v/aXE8vrHFQWNQaoo\nH5jviJeLZR0nz/LPjo0SZc5Whm/k07So57BcMSxwGBcSrQS3sJVymcjGX3ln\nW0qiEfIWlcRPZ3UM/hbirPq4bKLzu1/gKLMg6vNOGTKQIAbELEodtxkPOI54\nZjXgKPmvYCNSlYfaqRss1EIq2/B+QTv0+VDXjQIi1tKzFyjELZ81un7r9QXY\nrv7lxM5yxV8dYdLuYKee87sGpLQSaGUv6yGAgmrSdFkE/FcYrTZJb8+Cm7t3\nPd+AnTg56u8Zn/rE6SFAncfsk0Ht9bh5/pwCwmXbucZ0F3t23D1OTKfDFRMk\nbuQO9rdhNlbqxA96/9EeYuyppF3NxGqM3awP8d53GJMpcJOro6Mn9rvD2pxV\nie+pdpE+/gQC4SI9wLgDllm4I6SC+ohXLk2tzqwPssD+zuCxNTrSAFCKStie\naGxOPyPTSH1q8HNiW9xweCxSiN1iV/8ISI+DjPkfugR+aAtAP1DJsYWWhBye\nq+5livF8JifaVWAKVkdzaY/gVmB1kajCo2U0RizRGDVARIjFnkxF6xxBy9T1\nOP9y9ljGKQ0P8PReF+KKN32IQ8lgWgMlkp4YOPCYLdvENbCjtSMSzmQdSIWh\nBG1R\r\n=mLmO\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC5dcQjMQ5ddpQpXiPEWSKU3QGne42LMmhUfLk5pnqoQwIgMyj06MPsmf7rq/4zea+Wn1N6d+ocxCRVkKFHz1l5WQM="}],"size":2264,"noattachment":false,"key":"/@styled-system/should-forward-prop/-/@styled-system/should-forward-prop-5.0.14.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.14_1563211729335_0.685560742291508"},"_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":1563211729470,"_cnpm_publish_time":1563211729470,"dist-tags":{"latest":"5.1.5","next":"5.0.0-12"}}