{"_id":"@a11y/focus-trap","_rev":"5-9d48b62bb4baa02cc100008f8ecb263f","name":"@a11y/focus-trap","dist-tags":{"latest":"1.0.5"},"versions":{"1.0.1":{"name":"@a11y/focus-trap","version":"1.0.1","license":"MIT","module":"index.js","author":{"name":"Andreas Mehlsen"},"description":"A lightweight web component to trap focus within a DOM node","bugs":{"url":"https://github.com/andreasbm/focus-trap/issues"},"publishConfig":{"access":"public"},"homepage":"https://github.com/andreasbm/focus-trap#readme","repository":{"type":"git","url":"git+https://github.com/andreasbm/focus-trap.git"},"keywords":["custom","elements","web","component","custom element","web component","focus","accessibility","dialog","focus trap","trap"],"main":"index.js","types":"index.d.ts","scripts":{"ncu":"ncu -u -a && npm update && npm install","test":"karma start","b:dev":"rollup -c --environment NODE_ENV:dev","b:prod":"rollup -c --environment NODE_ENV:prod","s:dev":"rollup -c --watch --environment NODE_ENV:dev","s:prod":"rollup -c --watch --environment NODE_ENV:prod","s":"npm run s:dev","start":"npm run s","b:lib":"node pre-build.js && tsc -p tsconfig.build.json","readme":"node node_modules/.bin/readme generate","postversion":"npm run readme && npm run b:lib","publish:patch":"np patch --contents=dist --no-cleanup","publish:minor":"np minor --contents=dist --no-cleanup","publish:major":"np major --contents=dist --no-cleanup"},"devDependencies":{"@appnest/readme":"^1.2.3","@appnest/web-config":"0.4.9"},"_id":"@a11y/focus-trap@1.0.1","_nodeVersion":"11.10.0","_npmVersion":"6.8.0","dist":{"integrity":"sha512-WXMptg6Cu83oe3j/ObwhUWdyosQe8sRVASRIbZd5y55Ey0Mz9twKf8opc6J4dnw6izbjA2Q1x/rbp/xw5Zn67A==","shasum":"832e2fdb144a9ee2e1723c6ce36a6dfb7a9631a5","tarball":"https://registry.npmjs.org/@a11y/focus-trap/-/focus-trap-1.0.1.tgz","fileCount":17,"unpackedSize":26070,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcllIQCRA9TVsSAnZWagAA27YP/0BN1ALP3qczPkAKszcO\nBceqretNd8nWGIqvMJtJphotjQyJqSwc3mHU9v9guRFC0mHCJcCW6hbsSCcw\n7WvdwNH4QGapmNzqqLz4w+Z8vEYtYpScCTRIe49o19GU/g6xcAwt84tFbdrX\nKaJrjOJ9XDVY+4dtkGjNrY3jD3bEWwoctLQNp26D3ulRFRU+1wk2lgWhhwTU\n/SgaJNLxN7WofdK+0a1ibRVvPhBKn/SC32HmNlBbfCUD29YMDoogZ92ukgwi\npUc95E9N6i0OrqGc0Dw9mX6fQXV8+vNqN32WWzbzdto3xVncMwSAjNfNtPSl\n5/x9+wC5AXRHCT3bIqnJoNqkrOG/RTeWdgmrZF1US2Ya1PVAsnoidw3rnvcO\nkrTBIBKSDXi6KUNpc7i+zG9sGGiterCmYeA5WjsV3zLdi5/9crkTKb8gzYFo\nPsS2JUtIF6EadF66+y1jXzH51f8pofi72CqEa3rDUvQNrLTFVP550cNmKYGF\nQC0UUY7LPMnn5x1K1uZH5j4FOJ0LBGMfRhHVsdjF6KFQeu6BtxCm1lsfjN/c\n9jaw/BVSWtS94sngoG6p3YjIyr3RcDGeZ1gl0jP2UAAsaN7nPUfkRmxFlLrW\njHn8WKz03/FuJeT07XtOnj/LTRWj2KfPjzkSnT+g0ECDAAKbNtXL+GlR2Njd\nXdDl\r\n=yarf\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDKRG3VXQAJYVotVx4XsBrBqJ/b8bl2qY9tXpzqeczqgQIhANxKqIGJf80q0d1ccwsezCmdnWYmtRwUqLEvfzezwBGv"}]},"maintainers":[{"name":"explore","email":"andmehlsen@gmail.com"}],"_npmUser":{"name":"explore","email":"andmehlsen@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/focus-trap_1.0.1_1553355279917_0.36433183514614975"},"_hasShrinkwrap":false},"1.0.2":{"name":"@a11y/focus-trap","version":"1.0.2","license":"MIT","module":"index.js","author":{"name":"Andreas Mehlsen"},"description":"A lightweight web component to trap focus within a DOM node","bugs":{"url":"https://github.com/andreasbm/focus-trap/issues"},"publishConfig":{"access":"public"},"homepage":"https://github.com/andreasbm/focus-trap#readme","repository":{"type":"git","url":"git+https://github.com/andreasbm/focus-trap.git"},"keywords":["custom","elements","web","component","custom element","web component","focus","accessibility","dialog","focus trap","trap"],"main":"index.js","types":"index.d.ts","scripts":{"ncu":"ncu -u -a && npm update && npm install","test":"karma start","b:dev":"rollup -c --environment NODE_ENV:dev","b:prod":"rollup -c --environment NODE_ENV:prod","s:dev":"rollup -c --watch --environment NODE_ENV:dev","s:prod":"rollup -c --watch --environment NODE_ENV:prod","s":"npm run s:dev","start":"npm run s","b:lib":"node pre-build.js && tsc -p tsconfig.build.json","readme":"node node_modules/.bin/readme generate","postversion":"npm run readme && npm run b:lib","publish:patch":"np patch --contents=dist --no-cleanup","publish:minor":"np minor --contents=dist --no-cleanup","publish:major":"np major --contents=dist --no-cleanup"},"devDependencies":{"@appnest/readme":"^1.2.3","@appnest/web-config":"0.4.9"},"_id":"@a11y/focus-trap@1.0.2","_nodeVersion":"11.10.0","_npmVersion":"6.8.0","dist":{"integrity":"sha512-5/Wp7UwuUxi5/3nNB+V8bj76BWsxfl9D4Y5+k8SQk/279Yrd0omxHdiU4DMhfnNowPMKWVmWnDD6b7NMqrKf4w==","shasum":"2b5deed2b0f975ddef69c7b401933f67ca05093f","tarball":"https://registry.npmjs.org/@a11y/focus-trap/-/focus-trap-1.0.2.tgz","fileCount":17,"unpackedSize":26464,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcnK6UCRA9TVsSAnZWagAANCUQAJacr6uWMGsO5uZ8P7mc\nGd/XdaCVYHJTwIVsj1grsJsEJ70Xrk+VNoWDVcUZ7rp18hjimq6Jh99MDmax\n0PGT1NGVwwhYaLdOvRjfID9Zel5LOCitjp6uK17SRMZXVJkSOFimpqfLP3uJ\nhIJYcsit7aDn/ivUPREHRC38PTLMqvsoPKtNbn2sG6kpjYH9cnQXxXRCP3vy\nn3+b+sgxsLuz4DUVpVOLW9s44FTIY7xmObeAHDcl3QXVYbAbRNpbjDg9XlDw\nx5NqKve5AKHdlXY5pJGs3h65NNIb35WrhW3B7NGoIKsnwoTIE3WodNt/FhC0\noNb1xbN0jsU2X2tA6rgrMWEGgAPM6CB99FrWh48B98ocAk0VRC3aMe1WUrfJ\n1E+e3f5O6v9qoCDXcPO3CIr1CDI3xs0tKmFMudWY5Y+ieWC+msarK6qX9Msc\npGmyHJ5Rz2CZQIK6tmmEdjwEqP07fyTEWQ72bx347MQ6AzXI/HxWWnYShfEf\nozuB0zhqVmKK7sEuHZ6FDQbVlJ+cpDB/Rl1ToNEKGeFTx0kfr6adP+v5LR8e\nZ3VsxnKSzdNkDQON2HDW+/nEyoLeIeWW9lriS0A2V5E8B2q54moorVvKOVQ9\nuB2IBKCHcqC5o4PpgMS7ueM2TvPMs7DoJkDDA0XGWxtSmpOMirc0UdnYUEss\nXQcX\r\n=wZWr\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHPYOvXeVSOccVmRBtyoPuUEaxaAxi1xgI19Y+DM8aTBAiEAoUUstevCQ5iaaVUFRYQd0ZTNNjIY4mpkVIHlxZjBNV0="}]},"maintainers":[{"name":"explore","email":"andmehlsen@gmail.com"}],"_npmUser":{"name":"explore","email":"andmehlsen@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/focus-trap_1.0.2_1553772180022_0.13368319210774837"},"_hasShrinkwrap":false},"1.0.3":{"name":"@a11y/focus-trap","version":"1.0.3","license":"MIT","module":"index.js","author":{"name":"Andreas Mehlsen"},"description":"A lightweight web component to trap focus within a DOM node","bugs":{"url":"https://github.com/andreasbm/focus-trap/issues"},"publishConfig":{"access":"public"},"homepage":"https://github.com/andreasbm/focus-trap#readme","repository":{"type":"git","url":"git+https://github.com/andreasbm/focus-trap.git"},"keywords":["custom","elements","web","component","custom element","web component","focus","accessibility","dialog","focus trap","trap"],"main":"index.js","types":"index.d.ts","scripts":{"ncu":"ncu -u -a && npm update && npm install","test":"karma start","b:dev":"rollup -c --environment NODE_ENV:dev","b:prod":"rollup -c --environment NODE_ENV:prod","s:dev":"rollup -c --watch --environment NODE_ENV:dev","s:prod":"rollup -c --watch --environment NODE_ENV:prod","s":"npm run s:dev","start":"npm run s","b:lib":"node pre-build.js && tsc -p tsconfig.build.json","readme":"node node_modules/.bin/readme generate","postversion":"npm run readme && npm run b:lib","publish:patch":"np patch --contents=dist --no-cleanup","publish:minor":"np minor --contents=dist --no-cleanup","publish:major":"np major --contents=dist --no-cleanup"},"devDependencies":{"@appnest/readme":"^1.2.3","@appnest/web-config":"0.4.28"},"_id":"@a11y/focus-trap@1.0.3","_nodeVersion":"10.16.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-0djpgInD2Zb2NCCTJ084gjlR/dGTmTjG0LGFqEAuF9L2YbwAgWU8p0nfl4P4mW0aVp+gerTaLQXe/5ZyH8SZFA==","shasum":"35afe034ba794d837e61dd98f9889191e85cd315","tarball":"https://registry.npmjs.org/@a11y/focus-trap/-/focus-trap-1.0.3.tgz","fileCount":17,"unpackedSize":26526,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdoGtmCRA9TVsSAnZWagAANzYP/3d3zHg7HNrhabSx1dwC\nZSDB+8W/AXhPQdOm7wwTL0cr58dYkAGcvndvklTDcCVYu6YdTlvCWolnxu/U\nfDveEyN+BNoEeaM1ptM1U+fpUI0wWG0Ssz7wdjB5+yflekpafMF44ZY2Lfap\ns3JW68NRwznG3cA37I49CA/ZOHZY2FtgGK8Vr2vNfRD724hMyvB092R7UjzA\ndgNYfLEotj0cfyWXsEN7bEGLZGvjX+DJIcYupJETtkjwcK49V3ppjYk7Pmme\nZEN85npHwObMADvxQAes+fEETMV0/Nv+GsYPkyEVL9BYnf1IrOzRoh/rQ9O9\nq6jXxERFDSJhbIM5JMgevtPVkaJkeAXTN2yMIsbrVZ9r964wQdvLOq0B3KkX\nsboUwg46I530M8FwzVum6cB0gFctVRj+Q2Ue+R+dwbytY1cfijiahIZv4I2d\nVYur9JbpocsrEsebWJsI5AcGn85W0CToEYUxClImuYoTmHXwCC5u0actLQb+\nKOcrSG9E3vDT9EanPBekTjSW7fjJmu2mJcoiiv9YrppFP5lF7gLwB6cRRB5t\nA98L6poChnCH79hTvMiSaOynjqn4/Uxv6je4esLUCfkXAaJwI6Pk0RfgefoA\nVdaMXla9rW+9s1Dot6jMGqNJO8dnA/OX0vDMQk7OGGZJSlgzYMg9Ls7ERX6Z\ntKMW\r\n=zywm\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCGKtVkZE/G7SbaKtMKL8yZJHA9NA/ZbbwMRqX3LH6WRwIhANKqh8nb5xyEUedFjY2yl/Jrzo12JUN1FP4V8Bycqb3k"}]},"maintainers":[{"name":"explore","email":"andmehlsen@gmail.com"}],"_npmUser":{"name":"explore","email":"andmehlsen@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/focus-trap_1.0.3_1570794341915_0.5097388351940464"},"_hasShrinkwrap":false},"1.0.4":{"name":"@a11y/focus-trap","version":"1.0.4","license":"MIT","module":"index.js","author":{"name":"Andreas Mehlsen"},"description":"A lightweight web component to trap focus within a DOM node","bugs":{"url":"https://github.com/andreasbm/focus-trap/issues"},"publishConfig":{"access":"public"},"homepage":"https://github.com/andreasbm/focus-trap#readme","repository":{"type":"git","url":"git+https://github.com/andreasbm/focus-trap.git"},"keywords":["custom","elements","web","component","custom element","web component","focus","accessibility","dialog","focus trap","trap"],"main":"index.js","types":"index.d.ts","scripts":{"ncu":"ncu -u -a && npm update && npm install","test":"karma start","b:dev":"rollup -c --environment NODE_ENV:dev","b:prod":"rollup -c --environment NODE_ENV:prod","s:dev":"rollup -c --watch --environment NODE_ENV:dev","s:prod":"rollup -c --watch --environment NODE_ENV:prod","s":"npm run s:dev","start":"npm run s","b:lib":"node pre-build.js && tsc -p tsconfig.build.json","readme":"node node_modules/.bin/readme generate","postversion":"npm run readme && npm run b:lib","publish:patch":"np patch --contents=dist --no-cleanup","publish:minor":"np minor --contents=dist --no-cleanup","publish:major":"np major --contents=dist --no-cleanup"},"devDependencies":{"@appnest/readme":"^1.2.4","@appnest/web-config":"0.4.29"},"_id":"@a11y/focus-trap@1.0.4","_nodeVersion":"10.16.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-Wg1fVOW+4qj1y04M9r2BdHsaZyHG2CSTah/8hAd8Xu/TfaZuk+4uhAuBv6bBxS8CunnkaBNyt15VYM8YBPHaoQ==","shasum":"b9b9db89e9e50e95df134ab0c69f55bec6de2af3","tarball":"https://registry.npmjs.org/@a11y/focus-trap/-/focus-trap-1.0.4.tgz","fileCount":17,"unpackedSize":26377,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdrNEaCRA9TVsSAnZWagAAtfEP/0vUMIErfwRWp/9LKdAM\nyKpWh02X6nFneqYtzOCAegPm2KH1vJHbzr5haJ10S7wr1QFYM0PbFHOKG9si\nS0w59Fq8aY8e2HJu0yejCJ5S0Iz3N8WR3U/+TqzjwJw6nahiKNEFWqyf95cO\n12NbiHdkjJ//TzoKUAbz2mpE8XQ5e+TbjlGfTnQfTig217VmobQQcCSr4Lsi\nXVjUw58VoGoaLezP2wse5+v3PauWRvMbmMoEzkh/jt5Yt4efbBgrNZDgYuYF\nrilr8naDRnwOOxXHbNcmx7W6w9CDtl693uM8yXGV6Qy+SDcX7HKARom/iVKW\nZuZCc443UqcoC8TLTe9aa5gKcSLcSHvpstRu5xrjQhYz8DZBS9VcmG8aAgcg\nQoVjx05KUyv3dz3N0oFOXN/9Rc25Fcrl30aHI/HQ7cLNamZt5qdVSZ0fK5C3\nCwl5zBHEuaU7ZuDF/E8qWkfOtg+vJ30hpvs/c5eR7I5IgsI9hGQU7P6VmhpT\nTbsZ4UGvH2s17qUgxtOjhSMOXbtjzc9wddIOEf6biXli2GHeWTDpNjalsnij\nDxa9VHXEtzCDbT5+Rp3Md2/N0gy1TfnTSBTKOk2YbCrotGIZlRkvnrgYDQvk\n7IAjMBbnfIqVompNnWRPjVTu+sM0LdR+FGAiVirbgC9qIg8DF2enmAV2My7Z\n+L59\r\n=0kFT\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBl7sA3AQdLv5lJc3ztesJ3UdwB3hhP40wzmEyk8aB+AAiANP/IiSV2YIx1njDomkc8x75L3EUNMK9LMTYyoj3AHNg=="}]},"maintainers":[{"name":"explore","email":"andmehlsen@gmail.com"}],"_npmUser":{"name":"explore","email":"andmehlsen@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/focus-trap_1.0.4_1571606809994_0.37628136135075696"},"_hasShrinkwrap":false},"1.0.5":{"name":"@a11y/focus-trap","version":"1.0.5","license":"MIT","module":"index.js","author":{"name":"Andreas Mehlsen"},"description":"A lightweight web component that traps focus within a DOM node","bugs":{"url":"https://github.com/andreasbm/focus-trap/issues"},"publishConfig":{"access":"public"},"homepage":"https://github.com/andreasbm/focus-trap#readme","repository":{"type":"git","url":"git+https://github.com/andreasbm/focus-trap.git"},"keywords":["custom","elements","web","component","custom element","web component","focus","accessibility","dialog","focus trap","trap"],"main":"index.js","types":"index.d.ts","scripts":{"ncu":"ncu -u -a && npm update && npm install","test":"karma start","b:dev":"rollup -c --environment NODE_ENV:dev","b:prod":"rollup -c --environment NODE_ENV:prod","s:dev":"rollup -c --watch --environment NODE_ENV:dev","s:prod":"rollup -c --watch --environment NODE_ENV:prod","s":"npm run s:dev","start":"npm run s","b:lib":"node pre-build.js && tsc -p tsconfig.build.json","readme":"node node_modules/.bin/readme generate","postversion":"npm run readme && npm run b:lib","publish:patch":"np patch --contents=dist --no-cleanup","publish:minor":"np minor --contents=dist --no-cleanup","publish:major":"np major --contents=dist --no-cleanup"},"devDependencies":{"@appnest/readme":"^1.2.5","@appnest/web-config":"0.4.33"},"_id":"@a11y/focus-trap@1.0.5","_nodeVersion":"13.0.1","_npmVersion":"6.12.0","dist":{"integrity":"sha512-3JOd6g+BALysWS8LNf0qdB8ltR651H/RCLAvUmfS0LIHwHO579XfjZUIZbURYiAZrcbp1CBAq4QZ2YwKNQZ1hw==","shasum":"0748189c37ca21255c702aa5de3ee00ed4821d22","tarball":"https://registry.npmjs.org/@a11y/focus-trap/-/focus-trap-1.0.5.tgz","fileCount":17,"unpackedSize":26649,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdxxGeCRA9TVsSAnZWagAAGxwP/2gWlij90Aug9k9+kI/z\nG9TirY9SkVJkh85RM0gGZ9hqRlPVLqLDnBnAni1z8JK/kT7XiSy2s41+M4/L\nV9d3siR3ejfYbYrxEBHlSj39YypcYb+CJv2WrQmCDI7n5Yn4VhGtyczp8ktp\npvD3ZMv/Nr2FFNbDqqY5EDYJvKwTFIv0qud8U2/U9U6s5NBr4wVvAYT9Z9fx\nuN2aF1/p4tv3qDhDomy9RkP5dvqBto6VJuCHmxvY7ikOfhawWAwGba+DlrML\nqDojNMdc7dE7DoycrLqA4JCcSTr3c8KHK5nJEHv/YyqL08xUx+2mu3D1/x/Z\noLKBiHitNRqdnkN4wmbnEBlyvOySWpSD3O/WEls4tinWqjy5K5DKfRe5lRPV\ndEE6rMpJvbTI1c3Dwr+nENAk50v2voN16PIbWjDWSdG/lpgwza8cwrTG9TUO\nHlwGO4Kb7e2MQaK2o6d3IZBL1FHGKoMENubmF/jw2Xe/vR9IPYTn6yKqg9WG\nKJiXBT3YDWIjJPpKL8CEz7xJxaR4AsWKHdhNConEcIhn/7B0EfUKd7LHgVbl\n8q5hqei7Saj9SGGUgDH9cx7evhPoAj00fwSFyEabCkPtmrL0s7rJvT2nKpKQ\ne/GwoNgDBS5PffmW/LJMrmq9TL+mVn4VUGsjvPVw/mQ/8bJNxuoRb9b7T313\n7auL\r\n=3Wr5\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDVamHS6iA4uLC4+OPwCDSQXau9RUHkP3D1linPY9jOLQIgV/0eosJKm+moSUE2KPbC/gGDs0yV6PjB3SuuCqyDOdA="}]},"maintainers":[{"name":"explore","email":"andmehlsen@gmail.com"}],"_npmUser":{"name":"explore","email":"andmehlsen@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/focus-trap_1.0.5_1573327261586_0.20510546850646993"},"_hasShrinkwrap":false}},"time":{"created":"2019-03-23T15:34:39.733Z","1.0.1":"2019-03-23T15:34:40.074Z","modified":"2022-04-04T10:52:46.899Z","1.0.2":"2019-03-28T11:23:00.155Z","1.0.3":"2019-10-11T11:45:42.007Z","1.0.4":"2019-10-20T21:26:50.134Z","1.0.5":"2019-11-09T19:21:01.737Z"},"maintainers":[{"name":"explore","email":"andmehlsen@gmail.com"}],"description":"A lightweight web component that traps focus within a DOM node","homepage":"https://github.com/andreasbm/focus-trap#readme","keywords":["custom","elements","web","component","custom element","web component","focus","accessibility","dialog","focus trap","trap"],"repository":{"type":"git","url":"git+https://github.com/andreasbm/focus-trap.git"},"author":{"name":"Andreas Mehlsen"},"bugs":{"url":"https://github.com/andreasbm/focus-trap/issues"},"license":"MIT","readme":"<h1 align=\"center\">@a11y/focus-trap</h1>\n\n<p align=\"center\">\n\t\t<a href=\"https://npmcharts.com/compare/@a11y/focus-trap?minimal=true\"><img alt=\"Downloads per month\" src=\"https://img.shields.io/npm/dm/@a11y/focus-trap.svg\" height=\"20\"/></a>\r\n<a href=\"https://www.npmjs.com/package/@a11y/focus-trap\"><img alt=\"NPM Version\" src=\"https://img.shields.io/npm/v/@a11y/focus-trap.svg\" height=\"20\"/></a>\r\n<a href=\"https://david-dm.org/andreasbm/focus-trap\"><img alt=\"Dependencies\" src=\"https://img.shields.io/david/andreasbm/focus-trap.svg\" height=\"20\"/></a>\r\n<a href=\"https://github.com/andreasbm/focus-trap/graphs/contributors\"><img alt=\"Contributors\" src=\"https://img.shields.io/github/contributors/andreasbm/focus-trap.svg\" height=\"20\"/></a>\r\n<a href=\"https://www.webcomponents.org/element/@a11y/focus-trap\"><img alt=\"Published on webcomponents.org\" src=\"https://img.shields.io/badge/webcomponents.org-published-blue.svg\" height=\"20\"/></a>\n\t</p>\n\n\n<p align=\"center\">\n  <b>A lightweight web component that traps focus within a DOM node</b></br>\n  <sub>A focus trap ensures that <code>tab</code> and <code>shift + tab</code> keys will cycle through the focus trap's tabbable elements but not leave the focus trap. This is great for making <a href='https://www.w3.org/TR/wai-aria-practices/examples/dialog-modal/dialog.html'>accessible modals</a>. Go here to see a demo <a href=\"https://appnest-demo.firebaseapp.com/focus-trap/\">https://appnest-demo.firebaseapp.com/focus-trap/</a>.<sub>\n</p>\n\n<br />\n\n\n<p align=\"center\">\n\t<img src='https://raw.githubusercontent.com/andreasbm/focus-trap/master/assets/demo.gif' width='400'>\n</p>\n\n* Does one things very very well - it traps the focus!\r\n* Pierces through the shadow roots when looking for focusable elements.\r\n* Works right out of the box (just add it to your markup)\r\n* Created using only vanilla js - no dependencies and framework agnostic!\n\n\r\n[![-----------------------------------------------------](https://raw.githubusercontent.com/andreasbm/readme/master/assets/lines/rainbow.png)](#installation)\r\n\r\n## ➤ Installation\n\n```javascript\nnpm i @a11y/focus-trap\n```\n\n\n\r\n[![-----------------------------------------------------](https://raw.githubusercontent.com/andreasbm/readme/master/assets/lines/rainbow.png)](#usage)\r\n\r\n## ➤ Usage\n\nImport `@a11y/focus-trap` somewhere in your code and you're ready to go! Simply add the focus trap to your `html` and it'll be working without any more effort from your part.\n\n```html\n<focus-trap>\n  <button>Focus 1</button>\n  <button>Focus 2</button>\n  <button>Focus 3</button>\n  <button>Focus 4</button>\n  <button>Focus 5</button>\n</focus-trap>\n```\n\n\n\r\n[![-----------------------------------------------------](https://raw.githubusercontent.com/andreasbm/readme/master/assets/lines/rainbow.png)](#api)\r\n\r\n## ➤ API\n\nThe `focus-trap` element implements the following interface.\n\n```typescript\ninterface IFocusTrap {\n  // Returns whether or not the focus trap is inactive.\n  inactive: boolean;\n\n  // Returns whether the focus trap currently has focus.\n  readonly focused: boolean;\n\n  // Focuses the first focusable element in the focus trap.\n  focusFirstElement: (() => void);\n\n  // Focuses the last focusable element in the focus trap.\n  focusLastElement: (() => void);\n\n  // Returns a list of the focusable children found within the element.\n  getFocusableElements: (() => HTMLElement[]);\n}\n```\n\n\n\r\n[![-----------------------------------------------------](https://raw.githubusercontent.com/andreasbm/readme/master/assets/lines/rainbow.png)](#license)\r\n\r\n## ➤ License\n\t\nLicensed under [MIT](https://opensource.org/licenses/MIT).\n","readmeFilename":"README.md"}