{"name":"@emotion/provider","version":"0.11.1","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.7","@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.1","_npmVersion":"5.6.0","_nodeVersion":"9.6.1","_npmUser":{"name":"mitchellhamilton","email":"mitchell@mitchellhamilton.me"},"dist":{"integrity":"sha512-BIjZ1Z96IJCEHv090b/xaOPnDvCfCG1N+ZjtF/dTRCeX/AT+ICqVG3XPzJPEEJHz8z1XNqLg7Cfn9GaQsiTc+Q==","shasum":"65267dea4a67a4488ba46316420f6238f0d1c644","tarball":"http://registry-npm.ywwl.com/@emotion/provider/download/@emotion/provider-0.11.1.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\nwsFcBAEBCAAQBQJbZQPNCRA9TVsSAnZWagAAnKkP/iyCeKRh2XRKia5Jh/gH\nrR7lE/HJtv0Jy0gNrAPNZxEHip9UGj8rnjYR0vJzamCund1KUgGuHnVbiG13\ndeMe+KLxBOIaE0e/DiDsZlJPa3gmrij2dF9FGG68R+lB4gF8+beZd80SWGtC\n2qu81aSI/k+JgtDVquDnTu8fvydN+kYsQKoAZtRxGsm47PMHhz/4uRewsXHy\nCVHsC7tHfFUlBKTPJJh3uV5UQq7SBmPaUWNL9UW6DuBTOVUI5NhKhmti9P22\n5zY4bQHs9Iyw2Z7cyRsiW9AmrH/TszGIwf4o8nNEUp310Ht7zYXBe7of/5EN\nT3x0uKOLw5MNWUhg4qpuEK7+poWFmE6LfcTFQ7Qy9PGsyliDqHkbyRJ08ylE\n4jv9iJDPa0saIj0mXO+rKzC0pLLtL9B6DQCTYrVtsLwbEIHbHyGf2bn7Zqlu\nu89EOeLkMrTv+0y/3J7AiEDpWWwDwwxZWtB3FFBdBOiwFHANUfWNNCn04Yh2\n6CYqA3aMAAFvdyKl7ZDGr15pS4vv6QyTDQ3Cmf34/V43WU0XZ6asEiPkmzID\nZRiS+/vQTRq0pOm4RwVdc6JQttrGqWeAa21PmsItw6bnX39wHZN+mdwkWhIv\n9x8vy9vbYFswbr1mknGeh2xQxnPd0OQGVH9awpqgvewjzziBQnnpwdta2p9w\nfngI\r\n=RvTI\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDbZFN63BFcLNBPNWTiu9ijwOnYxn7Yh/vWPs2rdo1nWAiALQPigSbLkEWbOutcKSTAakoq2ZGCBLcwEP0drgx0wzQ=="}],"size":3053,"noattachment":false,"key":"/@emotion/provider/-/@emotion/provider-0.11.1.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.1_1533346764776_0.33603069731979174"},"_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":1533346764858,"_cnpm_publish_time":1533346764858,"dist-tags":{"latest":"0.11.2"}}