{"name":"@reach/popover","version":"0.8.5","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":"yarn clean && yarn compile","clean":"rm -rf ./dist","compile":"cross-env NODE_ENV=production tsdx build --format=cjs,esm --tsconfig tsconfig.build.json"},"dependencies":{"@reach/portal":"^0.8.5","@reach/rect":"^0.8.2","@reach/utils":"^0.8.5","tabbable":"^4.0.0","tslib":"^1.10.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":"ac419cf63d0827016ca448bf95482bcd4c5f879e","bugs":{"url":"https://github.com/reach/reach-ui/issues"},"homepage":"https://github.com/reach/reach-ui#readme","_id":"@reach/popover@0.8.5","_nodeVersion":"13.9.0","_npmVersion":"lerna/3.20.2/node@v13.9.0+x64 (linux)","dist":{"integrity":"sha512-6s+DJGvuK9ZimQQP9/JFhWSdQAIafte7kwIPeNmQUQNf51RYHYRX30xyhAqcuuogXjEr+tRDWVOfEBXEmtt4RA==","shasum":"0e64b89585655d5e4290fc5a41f8e62f5f617889","tarball":"http://registry-npm.ywwl.com/@reach/popover/download/@reach/popover-0.8.5.tgz","fileCount":11,"unpackedSize":77003,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeUDgfCRA9TVsSAnZWagAAkqUP/idieDtuvkwSsZjAD0/J\nmvRFYDucn1HHM9milhrO22jokbI2K8nb/W8eqhz3Cvmt5BM7AYm9tYrgMpNC\nOkdlbLVtIA2oz1p4GAk2ZgWXv+UUjOXV9r0svjLejLAB0SVOg3ubNZzkadOS\nhd8L2kOOXGuFKDorTBo8x1PQCl+3l8hqmU8O/LXRjB4CE35hGYZokZF+9oey\ncR1/XFD0ClhAET12btW4mSB312Zk+t5ZYXSPlLlakzZeCx8Hs5+OH8SyQhSQ\nZFCvmvtISm1VSlpxq34L91SVbMrr2vJuh26Q+b/HZWG+SnBHT8vcItEaaZnf\n98dv+E8eWnXD3cN2+fH9tU7YvT56T2lEyJS+nxQbEkVNelTJmUHTdQo8phwj\nuMZcSzf1SuBqyy4/htxojx5bXYxRXK6RhTz3vIMg95Jj/dCtumrjVRRq8S4m\n8aHGyndv5ixI1eALF6ZG15uQ0IEhJiop46yZ3vdnmyRaiebcKG/rPe7bAmE8\n5DHuOtMWHWico2kNwQJIzGZLaK1OFHkLnEfWMqx2GxgtbthsZPNlSxBgAZeL\nq7mbPMWpMgb39ScriUr07+v8VxPGLsLfzdNFBtoNXW9sVyRL1oLku5kaPgc7\ntiVHi2Mmy9ANvGkhQC4BwWWz5yQ+KD58Etu0hh1e0dqUIknsUl26XRRf0R7U\n5wPl\r\n=B1l1\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD6ln4NNVMy/ygXiP7JfjQWQOkegV1PchXztrIHaUwcBQIhAOS38JjV8+xuCA+ZgqaNXSGNmnPN9idzu9oOGmF4a14m"}],"size":14431,"noattachment":false,"key":"/@reach/popover/-/@reach/popover-0.8.5.tgz"},"maintainers":[{"email":"blainekasten@gmail.com","name":"blainekasten"},{"email":"chance.strickland@gmail.com","name":"chancestrickland"},{"email":"npm@mjackson.me","name":"mjackson"},{"email":"rpflorence@gmail.com","name":"ryanflorence"}],"_npmUser":{"name":"mjackson","email":"npm@mjackson.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/popover_0.8.5_1582315551346_0.5822726266212159"},"_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":1582315551475,"_cnpm_publish_time":1582315551475,"dist-tags":{"latest":"0.18.0","next":"0.4.0-beta.0","pre":"0.18.0-pre.5"}}