{"name":"@reach/popover","version":"0.18.0-pre.4","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"},"dependencies":{"@reach/polymorphic":"0.18.0-pre.4","@reach/portal":"0.18.0-pre.4","@reach/rect":"0.18.0-pre.4","@reach/utils":"0.18.0-pre.4","tabbable":"^5.3.3"},"devDependencies":{"@reach-internal/dev":"0.0.0","@reach-internal/test":"0.0.0","@reach-internal/tsconfig":"0.0.0","react":"^17.0.2","react-dom":"^17.0.2","tsup":"^6.1.3"},"peerDependencies":{"react":"^16.8.0 || 17.x","react-dom":"^16.8.0 || 17.x"},"main":"./dist/reach-popover.cjs.js","types":"./dist/reach-popover.d.ts","module":"./dist/reach-popover.mjs","scripts":{"build":"tsup"},"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","readmeFilename":"README.md","bugs":{"url":"https://github.com/reach/reach-ui/issues"},"homepage":"https://github.com/reach/reach-ui#readme","_id":"@reach/popover@0.18.0-pre.4","_integrity":"sha512-Maj9MTd2eWiCCb+A95VhF2dO6zhq997/cJBL3sbAwLjnpR+RldJW15b1BXmPjFVVFQ6LQhMX50sOEP2kmI0eUg==","_resolved":"/tmp/9578ba3b57d60a47c1c5317222f548e7/reach-popover-0.18.0-pre.4.tgz","_from":"file:reach-popover-0.18.0-pre.4.tgz","_nodeVersion":"18.10.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-Maj9MTd2eWiCCb+A95VhF2dO6zhq997/cJBL3sbAwLjnpR+RldJW15b1BXmPjFVVFQ6LQhMX50sOEP2kmI0eUg==","shasum":"add80b461e86749474d7bc355f0f7491c8386806","tarball":"http://registry-npm.ywwl.com/@reach/popover/download/@reach/popover-0.18.0-pre.4.tgz","fileCount":10,"unpackedSize":49327,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDUbTvS5cWvDl6312mWhy/neqWFI6OyX64wHvOm07MPaAiAIh34Cwc1CTemkK0/6vN+x5TmQDuRc/5T3tfZh633Jfg=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjRh/RACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp2SA//WF3DLGC9OeCqs9yYCNkAt65vksftVBTq2VJgXhv7dn2h+Yms\r\niQgieaWvChyOLBPXKuYzenoGU566/hoY6rtX1pJkNbDjhl3TKwVpdrIPQ0V+\r\nDdS7TgMC1/y2BB/VTI1UQxQT39DfKDuKjhKhYXeuc22baHpiAshhu8GDglNz\r\nqx2Bo3X9Xmo7FP396wXKTgf1y4C3PlgL7j2AF3zJqeJsZtmR4ug3F7fX+wJh\r\n1k2mtUqDW+ihfb5kRl/GjR1FHrCspL6f+ZUha6k9ksmp5iTvhSo6vD5qEL0K\r\nEwszGTagA3pxLN/FSia4OE7iBdA0/ffEvc/p5bOnV/x7bufPgVDhMQ30L0tL\r\nrfRVkRrcWu0pJ2v8RFN2HkTVAILjvODCTvjT0I3XaAww0y+k7Gvbg4omy6FK\r\nfUX27NTXYFOMz+K3cD8SRjNUYYm9bk6ROv39M3NK1Kjt4Lrgere/aT5jqtoH\r\nLlzltkhphVvj2hmg90nDyUJ1ooiKpl3T09uDOMwa8I8bsQ71ErEQWF9/dkxS\r\nxUwVuK15RbYanROIALC4nGl34rq5WZkRJa8rmIGhRE+FrGH4BbCUKXHLWedq\r\nu6ibAyIRQ6UPhRUlFSBH4/2AGXtmxZLlL+y+EqheIqEm/JGGJEbCspddHxy2\r\nBg5SPx+0EU8uPL9GGD7ioI3VCB2tC/lX9eg=\r\n=ivCG\r\n-----END PGP SIGNATURE-----\r\n","size":12426,"noattachment":false,"key":"/@reach/popover/-/@reach/popover-0.18.0-pre.4.tgz"},"_npmUser":{"name":"chancestrickland","email":"hi@chance.dev"},"directories":{},"maintainers":[{"name":"ryanflorence","email":"rpflorence@gmail.com"},{"name":"mjackson","email":"npm@mjackson.me"},{"name":"chancestrickland","email":"hi@chance.dev"},{"name":"blainekasten","email":"blainekasten@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/popover_0.18.0-pre.4_1665540049120_0.3305204585887569"},"_hasShrinkwrap":false,"publish_time":1665540049402,"_cnpm_publish_time":1665540049402,"dist-tags":{"latest":"0.18.0","next":"0.4.0-beta.0","pre":"0.18.0-pre.5"}}