{"name":"@reach/popover","version":"0.7.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"},"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.2","@reach/rect":"^0.7.2","@reach/utils":"^0.7.2","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":"96cf6c191cca0f2cbcb7ff578f15e289efeda1e2","bugs":{"url":"https://github.com/reach/reach-ui/issues"},"homepage":"https://github.com/reach/reach-ui#readme","_id":"@reach/popover@0.7.2","_nodeVersion":"13.6.0","_npmVersion":"lerna/3.20.2/node@v13.6.0+x64 (linux)","dist":{"integrity":"sha512-bh7PQY0ZMlLy3S98UV+cHWfI9XrGthQuFFLMSldHaRTA0c3lTSr5jaygEdKHRQmlLfZhlvnhPLnzBR9Y/Sy/fw==","shasum":"77a271e0ec3b881c6c501554582d9905642ea7f4","tarball":"http://registry-npm.ywwl.com/@reach/popover/download/@reach/popover-0.7.2.tgz","fileCount":10,"unpackedSize":75364,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeGQvdCRA9TVsSAnZWagAAhEgP/Rizx5b6lkgD/TqMpl8v\npuFKT/O2SUaYYtIfXzvrCc++khdPyVxbze+O/UBUjUmUmCu78v/brB8gjzYx\nmgQhtILAzJX0zdlv7G6gzLj2PDx/vhCy4sjDnT9a9EWf0VM4i42+7smZzRmk\nz810Q+5KDtdLybP+GloFgKIsfD4AECf6LehC22oSO5T1ijJWbsdd1I4AWp39\n4b8THpa4q0rHcQxj9WgI1H6ZoVZczattC7kk1vERxkvCM/QGcu/AieY2CoaT\nGj0fYdwiEpukQ97DU7Q1U4fMD3qhbDVKJaL/M5oy2uYp1jdMKeDF9icNJ5AT\n5iEGJuOnAxDX7cUQDRXg/zOLxAOv7DO8WNnFUxiRAqlZ4QOk1ZCBH5PRpV8w\np1Ol/2prt+zix82ix77A5vBmwmoVy8caTn2Yw4NK/0vkQM/eg7QOnOSM5SnD\nU+LEh8VSDV8gaFwhauglktQqFd9nBUXP/A/24VCvjyrxk9DmEjrsg8wMJYeD\nmal1kAw8XJd4MXql2e9MmSnPsIbdK4AppZox9UdseaOPZoio8/vVupG+OYXN\nZ4le8FATmI93lTF8disBvZUnvRVo7MyZUBDPyfv8a+YH3Wq5G0ppi3v96zBh\nQpCyKAGnZBDFwRV/2reTSN+ICCdnaXHOXXBmkAF1Wa01+peOipihfygO/Bhe\nbOr9\r\n=LK4/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFduDudiF1Dbgyrx8lAAfMla8pb5gPGd3lTbn/VxOSa4AiEApaYSFYgs62ZEdEv0rcmJUE3nKn5J/JlhzDlVCZfs/WM="}],"size":13655,"noattachment":false,"key":"/@reach/popover/-/@reach/popover-0.7.2.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.2_1578699741290_0.6688561247851006"},"_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":1578699741399,"_cnpm_publish_time":1578699741399,"dist-tags":{"latest":"0.18.0","next":"0.4.0-beta.0","pre":"0.18.0-pre.5"}}