{"name":"@reach/popover","version":"0.7.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"},"scripts":{"build":"yarn clean && cross-env NODE_ENV=production tsdx build --format=cjs,esm --tsconfig tsconfig.build.json","clean":"rm -rf ./dist","compile":"cross-env NODE_ENV=production tsdx build --format=cjs,esm --tsconfig tsconfig.build.json"},"dependencies":{"@reach/portal":"^0.7.4","@reach/rect":"^0.7.4","@reach/utils":"^0.7.4","tabbable":"^4.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":"f460709e283a60dd5ea62952b7feaf88546a50ff","bugs":{"url":"https://github.com/reach/reach-ui/issues"},"homepage":"https://github.com/reach/reach-ui#readme","_id":"@reach/popover@0.7.4","_nodeVersion":"13.7.0","_npmVersion":"lerna/3.20.2/node@v13.7.0+x64 (linux)","dist":{"integrity":"sha512-fNODnIqXOJ+Co43E5c1mEvR/ubF7S26ZvDcNHBAVJ0mlJBdO77AdI0ar/nE5fb3qCHBhbOcmOu8OpqsLP4hv1g==","shasum":"def055c588a76ef4a48ac81f0b4e7373e2781b28","tarball":"http://registry-npm.ywwl.com/@reach/popover/download/@reach/popover-0.7.4.tgz","fileCount":11,"unpackedSize":78453,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeK4jyCRA9TVsSAnZWagAAUowQAIGD7btZrR0SXJh3mdeV\nc3PM5PoJhg65y+vB5gnA8IG7KD/jyy9A6nbYpbcaBij+ljY54MH3i0UWBGi1\ntJ19Jt2yQxrHzKqfdOkV+IVmzUGo/1xhljf1V5K1xXA/j35S+ufa/ri6GLbm\n3JcjcuMwInNO99CweHUqpWXPuo/d0t1g0elq1zz/5AXvR4hfcJW4IPKBjrw1\nlhKV0OysBvzi29/vw/tg5hnCtWEdcMicmE/55LzxAu3HnhtmJ6cWCkAE7OSb\ncOYOkFNOuvZ9kjTtiwP6XrrRUVa1h1wUbMF+aiYy3x0ZCYmy/iPHsMVQvdev\nw/Y2T73KbqNKVgOO6mvAoUbgOJR7aeyp50gsE2dTvYxv7myP+Gvsp4WYrhF6\naCcuxQ3SccMPkC2l9jQi9+3VBt+zpLtjRQcPqBX0t7bqxi9DjyU2DdvDlqwo\nC/z2nimyCqO6txhPzbKZx3ECfTQt9ynycQeTyn/vEqPYZoBgjN6l+cGtEp8x\nOObXYbD9hxlSq2NK7o2HrlaE+srUX2SdJLXtTnJuEqQlueCZgJx6mxM3ATM3\nNTjPUMlWkad8QEDNGCGBM6k9MwzWvYSNp0j4DfJxLH4ZySpTzOF9EUGJtJk1\noNq70sXJQL4LVMIqQtzfxfP+3FusAS1c2389OMhGgKnomeLB0ZX0uxm3gPtT\ngBdd\r\n=u2fJ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFsyemscERjMmiUJrhdJStJ0u94R/jPMeSWi/VMa6YTjAiEAsgWuxikR82BeN7EO2OIKDvwjb1EDYZGXk8e+ZNBsg3M="}],"size":14481,"noattachment":false,"key":"/@reach/popover/-/@reach/popover-0.7.4.tgz"},"maintainers":[{"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.7.4_1579911409710_0.984619405641548"},"_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":1579911409862,"_cnpm_publish_time":1579911409862,"dist-tags":{"latest":"0.18.0","next":"0.4.0-beta.0","pre":"0.18.0-pre.5"}}