{"name":"@emotion/provider","version":"0.10.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.5","@emotion/weak-memoize":"^0.1.1"},"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.10.0","_npmVersion":"5.6.0","_nodeVersion":"9.6.1","_npmUser":{"name":"mitchellhamilton","email":"mitchell@mitchellhamilton.me"},"dist":{"integrity":"sha512-0klyEaAAL28p/mvUpGN5AQyOVRMLp8x6UmUxaDzgjH8bqEyXlb2eAiYx0phTZg95NfWBJPhf9K7HpSldHrx4Rg==","shasum":"4002857cfd9b43029917e70757668088c904a86d","tarball":"http://registry-npm.ywwl.com/@emotion/provider/download/@emotion/provider-0.10.0.tgz","fileCount":11,"unpackedSize":15461,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbSsgaCRA9TVsSAnZWagAAzJ0P/22V/s066A5U1k6Efk9O\nN3zANuczjCFTzZw0Zq6FSto/0q6DFJMXdtN5h0g8C25PqAdrqF6oQxSFti83\n4Wlu8Ha6YdeqWzO44Nwok+Co+N786d3AonmWWUcSvct1hnRuvpMh5A25zMQL\nUv7aY8qRaZqE/Sdj0K07+H943toRP883dfOZ5NLHvLLeVXIi+z+YaZy88Lub\notfZXpnk10A05fAanxDBu95dkfn90Z72XXVhHR1NU/7dK35qpqoDegQnK37D\nBzCjnaAyXLCiQEFRx+yVq8w8POoRfeuDk3L5IhJMvtwHd1qGJMOOs7vza8zK\nwVtdLfyK83qBi9xnNrVp7Blr7MGF02If95Li2vWzRa6oTxfPBuWPHec0gy4E\n5IxuO8NJiSXi4kEd0ojJUKhZoXK+Alym0QoJUPYVFkJvQMsRHljznbIlBcvh\nANsGeu5x8HoNQPU2nRnXwQ0IF8Eay600UGv4MivxEmOLPvzX1d2DDZaKcPgM\nnkEKO/2AekCh379dqVhcLbHzpNbgo+qlJA0UsStMQ7ukFqijKRB69mhJ2jKN\nF5TkS0LUn4ea1mrQx2PmNzUFVN9gDsFGF0A0kSVpKwrKpTE0+MD517dy1pUy\nYAiEmjVj38TYxwyCP+lGAjMufXQyJ3BKxSjlHpkbknl3sWv7TUHXjyeFN4P7\ny0pK\r\n=e6go\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEUmzKkOj9lGwAjOvek8GqbRjH8qzfcFKKmd/8viz1FiAiAggtOYmdCS9v8Ya94UGu0t56DqYijM3rYp+SVYUIpN8Q=="}],"size":3682,"noattachment":false,"key":"/@emotion/provider/-/@emotion/provider-0.10.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.10.0_1531627546495_0.40304314199505664"},"_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":1531627546560,"_cnpm_publish_time":1531627546560,"dist-tags":{"latest":"0.11.2"}}