{"name":"@emotion/provider","version":"0.11.0","description":"A provider component to provide options to emotion and allow theming","main":"dist/provider.cjs.js","module":"dist/provider.esm.js","license":"MIT","repository":{"type":"git","url":"https://github.com/emotion-js/emotion/tree/master/next-packages/provider"},"dependencies":{"@emotion/cache":"^0.8.6","@emotion/weak-memoize":"^0.1.2"},"peerDependencies":{"@emotion/core":"0.x.x","react":">=16.3.0"},"publishConfig":{"access":"public"},"files":["src","dist"],"umd:main":"./dist/index.min.js","_id":"@emotion/provider@0.11.0","_npmVersion":"5.6.0","_nodeVersion":"9.6.1","_npmUser":{"name":"mitchellhamilton","email":"mitchell@mitchellhamilton.me"},"dist":{"integrity":"sha512-0WNHNM5OKj4nDwJGTvh44QQGdDLC8Yn9Vd8xfhoZahVnc/zABa9zuvgBWfo9dRW00bJW9qSbXnzoIs0X6W5JdA==","shasum":"21ee21f01ab539b3ce30a921e5d5a975fb438167","tarball":"http://registry-npm.ywwl.com/@emotion/provider/download/@emotion/provider-0.11.0.tgz","fileCount":9,"unpackedSize":9931,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbXRkzCRA9TVsSAnZWagAAhiAP/3zoVR2F7BOcoZWPIkNn\nR5WUITIztIsBycR0HZIWRKNCZlWqsFBmR9TKb7LmkF1b8UBo6gLwxo5muPux\nIb1ckehXAHN1lSrsKNdQxSC9FZbijJGfdJIFjTIl+4atlPkYLm0kQ0EHjhWB\nplaoA/i5oJKBtY/3cJfBHbwblDvxY948Ax34hxeRWStWLfX66DmOsqNjx7aM\nlhmT6RJvxOK8j7Xh2yI4tqTxlp7M1xpUcsP/DpQ48+u6Zfwob6czCJ7Lchwu\njhTryCFus/ep4JGLOxSeam9nARRya+pJWC/t1NsBlJ9JOLQ+S2CiXutfkdXY\nr23r08p50sA5ZGy/aXL/qPxe19Om8qdRBv5QIjlMW0v6xHLpu4lBrxWuM2yc\nbCbelu7WcE9+VURqq53rFal4lBRozpFOL6h9QJWq+Kvj1OeO9fRlr7izZo9Z\ndI2Pog04OPjki6nSezXHye83c42AFZ62GEPKlQUKSbyuV8tpA/kdX0fTDZKa\nIhrBlPEQdc3F22rbogi7nIYHIaXeTJKuH1tfPunnigNswqCvNxmYMxl7yc7F\nqAafqA31dUbZpwE1wKXfSX2a8xjT6nAhhBZ5BB5dVyEJkegt6cys57SLrO6V\n2wC+uwP6sRhrYgtgWedRCUxsqJX+g8jr4ebwaldwtCXNPtXxl8zoFwAqhg0G\n+FlQ\r\n=/fEq\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC8fOBpcvajs55blJl9PqbA8rMuK+pjuPvKHSxC5P0+LAIgPvqzfwcR2gOZa563NYP5PAdxTQRIOw1DxJdwn+OnSTc="}],"size":3058,"noattachment":false,"key":"/@emotion/provider/-/@emotion/provider-0.11.0.tgz"},"maintainers":[{"name":"mitchellhamilton","email":"mitchell@mitchellhamilton.me"},{"name":"tkh44","email":"kye.hohenberger@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/provider_0.11.0_1532827955544_0.24148166559551476"},"_hasShrinkwrap":false,"readme":"# @emotion/provider\n\n> A React component to provide a theme to child components\n\n## Install\n\n```bash\nyarn add @emotion/provider\n```\n\n## Usage\n\n```jsx\n/** @jsx jsx */\nimport { jsx } from '@emotion/jsx'\nimport styled from '@emotion/styled'\nimport * as React from 'react'\nimport ThemeProvider from '@emotion/provider'\n\nlet SomeParagraph = styled.p`\n  color: ${props => props.theme.primaryColor};\n`\n\nclass SomeComponent extends React.Component {\n  constructor(props) {\n    super(props)\n    this.state = {\n      theme: {\n        primaryColor: 'hotpink'\n      }\n    }\n  }\n  render() {\n    return (\n      <ThemeProvider theme={this.state.theme}>\n        <h1 css={theme => ({ color: theme.primaryColor })}>some heading</h1>\n        <SomeParagraph>some text</SomeParagraph>\n      </ThemeProvider>\n    )\n  }\n}\n```\n","publish_time":1532827955609,"_cnpm_publish_time":1532827955609,"dist-tags":{"latest":"0.11.2"}}