{"name":"@reach/popover","version":"0.18.0-pre.2","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/portal":"0.18.0-pre.2","@reach/rect":"0.18.0-pre.2","@reach/utils":"0.18.0-pre.2","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.2","_integrity":"sha512-gr21SQNglRAtnnV3AeCFCh7HySiZ+sc0AC0mEiIZFwHdhHDPH1d9tkM7tlXwm32pfwDVgffD3X8HmvmFTYVEwg==","_resolved":"/tmp/2c1e22d7eaa3521d3d7bf129f4bbd747/reach-popover-0.18.0-pre.2.tgz","_from":"file:reach-popover-0.18.0-pre.2.tgz","_nodeVersion":"18.10.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-gr21SQNglRAtnnV3AeCFCh7HySiZ+sc0AC0mEiIZFwHdhHDPH1d9tkM7tlXwm32pfwDVgffD3X8HmvmFTYVEwg==","shasum":"b00e543cfb40e9e472fa1e1ac4a28bbdb9dd99cd","tarball":"http://registry-npm.ywwl.com/@reach/popover/download/@reach/popover-0.18.0-pre.2.tgz","fileCount":10,"unpackedSize":48546,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBgXDT7QxifgIXyqb8sykLbtqxuzWJTjI2K1qnB8/byAAiEAi21AQOtZ+46iRXQNjEaDhGmlYVZGd3+m8MU++a+e6UM="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjRd9KACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqsNg//cKPVgoPWh1ecM1ixPCLARmm7NxG86JI6XAF6tgsEbqqRXASk\r\nRigFkemdPtcR9E2ac0UpbPqdHaM/OsVVaTtC9I8AhiQ4c6WGkXIoJlJHDMzY\r\nQTdN5M5dClLw54VT9uOrMGQFhw9q9SERy4iHNnQi0E2XvKQfwaeKk28D0zsL\r\nQSIKYVv3Hca3V6fpKWSLi+K2HZ6h0SseGO+zYInHeNa2fyTz9v+cuSUtd/3H\r\n76+c7DRtM7i1CKTxoTvgYmQAhdLahRWDiEdRRt2dgwqnybKZRqsaMLaHnwS3\r\nQCtkNwdGwH5KY1TbZwb6DTLsBI7Nt5b83TsxBHs5eOzUYp20R3V9f/Cu+GHA\r\nvd2/TMxdCWxfRR5/27NN9VIP7TXIRYaFvXWJhcYj6iIBWyEJzcmK8gTw5aN8\r\naJSzBOYoFytn9PYVrO6TN1weR3DylZyrYSmAVMJDS9x0wy75qwMO3zwdoTRX\r\n+C8u9NbGPBHUnZy+bg9Ci7BpZR4sTVi7HMtbluKHV7p/ET1LkRQniLRFQ/ze\r\nn4XPvTxotuup8uId/kOZHIMlSTUsIJoLK5YQvTojoRxsSSz+2xaOKwT/h6xV\r\n63mc5w60lnPzhx/bxzwgquy0B3irpDSbQUfp59ZiQFKC18AlhdlKQFoB3gSl\r\n/xpe2Dqs5gusuRs7mSgmEUSK3zEza8dB7Ro=\r\n=VJqA\r\n-----END PGP SIGNATURE-----\r\n","size":12218,"noattachment":false,"key":"/@reach/popover/-/@reach/popover-0.18.0-pre.2.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.2_1665523530392_0.7679531103158801"},"_hasShrinkwrap":false,"publish_time":1665523530748,"_cnpm_publish_time":1665523530748,"dist-tags":{"latest":"0.18.0","next":"0.4.0-beta.0","pre":"0.18.0-pre.5"}}