{"name":"@reach/popover","version":"0.12.0","description":"Render a portal positioned relative to another element.","author":{"name":"React Training","email":"hello@reacttraining.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/reach/reach-ui.git","directory":"packages/popover"},"scripts":{"build":"ts-node --transpile-only ../../scripts/build-package $npm_package_name"},"dependencies":{"@reach/portal":"0.12.0","@reach/rect":"0.12.0","@reach/utils":"0.12.0","tabbable":"^4.0.0","tslib":"^2.0.0"},"peerDependencies":{"react":"^16.8.0","react-dom":"^16.8.0"},"main":"dist/index.js","module":"dist/popover.esm.js","typings":"dist/index.d.ts","gitHead":"09eeccda6e4597d21545982c53db5c42beddce6b","bugs":{"url":"https://github.com/reach/reach-ui/issues"},"homepage":"https://github.com/reach/reach-ui#readme","_id":"@reach/popover@0.12.0","_nodeVersion":"14.6.0","_npmVersion":"lerna/3.22.1/node@v14.6.0+x64 (darwin)","dist":{"integrity":"sha512-Rscp2xvgHDCVtvjGtHhPSnXQhx6xJYpoEl7qN/M4W0uMiLTGepQbYeHeTPxjo2fp0OLPFiBF+YHK2XGwxuRsig==","shasum":"8831ac4c3ef61ad70c7201e6f8cac92b7569cf11","tarball":"http://registry-npm.ywwl.com/@reach/popover/download/@reach/popover-0.12.0.tgz","fileCount":11,"unpackedSize":88710,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfvvEACRA9TVsSAnZWagAA780P+gL9n+AW24+CE5jO5XPP\n9PyXwmQCy5n0r+cvclTzSxKjkS6IwInnqTW1kuq0VJPjUnUzZduMznY+TmTF\nRwGSaCocDWuke6sIWapSyBLRBG90MreNER6nKq+mvlLDFvF5piKz1gUj8vjg\n55JMiy8YSdSO1Aa5Bd+wNjXxAxzhthmdyr6o2Ybl3sRmzTVz5gjXcWptf05Y\nVxf20atyXKYX16C5xSGOdLsv+cTe8UiWQVo5QV5HKdJ3XmVnUz+fdp5CxfWY\nXGCRKrHmJ2NdYUGR//rdYI6tERLXmqhWFJySNivFLLJy1SbONuvjL+Sjy/nO\n/IVPfj/SlX7IcoZGCO63Hn6abcB0Ot8tkaDcLj5D+ArUzfNbg7Gn42W3JAOx\nOBwghsUjhQWtKt1SQpn9txP2fpeiThZz3JtOyosxdqq7x4c8SCXfZ6qSVZMm\nWlKDogPjsKxgsN0Un7HbPTRD0sFVK+EHWvfB+AKYO35X8r6fyewwRq/qnVQf\nIsFKfQ9s4ldpwhvQoQ0fW1lxwBqK8g0A8qsL/l7YDI7XGxsMmWP4amnlmV6R\nAG40Z+cvw/+OsNKjfBvljT+S+7EaGpfOXrOCEGCweSCZj7iQpiGJfkgAlHPw\nQgKDdjA4txayXswo3IFN7+jUbXRuKFjGjm+7/zwIGIu2jyC8bVdukIFaqROd\nnixI\r\n=YmcO\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCuQax4uw1gPOlvr3syi1cKmxWeUpamTAEl+Yqnqu//YwIgbliHUQwOAV1paIX02A0lsXTaIFgxdKUIfuMs29RVbn0="}],"size":16324,"noattachment":false,"key":"/@reach/popover/-/@reach/popover-0.12.0.tgz"},"_npmUser":{"name":"chancestrickland","email":"chance.strickland@gmail.com"},"directories":{},"maintainers":[{"name":"blainekasten","email":"blainekasten@gmail.com"},{"name":"chancestrickland","email":"chance.strickland@gmail.com"},{"name":"mjackson","email":"npm@mjackson.me"},{"name":"ryanflorence","email":"rpflorence@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/popover_0.12.0_1606349055844_0.0597618847228103"},"_hasShrinkwrap":false,"readme":"# @reach/popover\n\n[![Stable release](https://img.shields.io/npm/v/@reach/popover.svg)](https://npm.im/@reach/popover) ![MIT license](https://badgen.now.sh/badge/license/MIT)\n\n```jsx\nimport * as React from \"react\";\nimport { Popover, positionDefault } from \"@reach/popover\";\n\nfunction Example() {\n\tconst ref = React.useRef(null);\n\tconst [value, setValue] = React.useState(\"\");\n\treturn (\n\t\t<div>\n\t\t\t<label>\n\t\t\t\t<span>Type for a special message</span>\n\t\t\t\t<input\n\t\t\t\t\ttype=\"text\"\n\t\t\t\t\tref={ref}\n\t\t\t\t\tonChange={(event) => setValue(event.target.value)}\n\t\t\t\t/>\n\t\t\t</label>\n\n\t\t\t{value.length > 0 && (\n\t\t\t\t<Popover targetRef={ref} position={positionDefault}>\n\t\t\t\t\t<div>\n\t\t\t\t\t\t<p>Whoa! Look at me!</p>\n\t\t\t\t\t</div>\n\t\t\t\t</Popover>\n\t\t\t)}\n\t\t</div>\n\t);\n}\n```\n","publish_time":1606349056046,"_cnpm_publish_time":1606349056046,"dist-tags":{"latest":"0.18.0","next":"0.4.0-beta.0","pre":"0.18.0-pre.5"}}