{"_id":"web-dialog","_rev":"8-f0a772364df8d503994c066c59a398ae","name":"web-dialog","dist-tags":{"latest":"0.0.11"},"versions":{"0.0.2":{"name":"web-dialog","version":"0.0.2","description":"A highly accessible, customizable and lightweight dialog.","types":"index.d.ts","module":"index.js","main":"index.js","author":{"name":"Andreas Mehlsen"},"publishConfig":{"access":"public"},"bugs":{"url":"https://github.com/andreasbm/web-dialog/issues"},"homepage":"https://github.com/andreasbm/web-dialog#readme","repository":{"type":"git","url":"git+https://github.com/andreasbm/web-dialog.git"},"keywords":["web","accessibility","accessible","a11y","dialog","modal","focus","trap","components","custom","elements","component","element"],"scripts":{"b:dev":"rollup -c rollup.config.ts --environment NODE_ENV:dev","b:prod":"rollup -c rollup.config.ts --environment NODE_ENV:prod","s:dev":"rollup -c rollup.config.ts --watch --environment NODE_ENV:dev","s:prod":"rollup -c rollup.config.ts --watch --environment NODE_ENV:prod","s":"npm run s:dev","readme":"readme generate","b:lib":"rollup -c rollup.config.build.ts","ncu":"ncu -u -a && npm update && npm install","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/web-config":"^0.4.29","@appnest/readme":"^1.2.4"},"dependencies":{"@a11y/focus-trap":"^1.0.4"},"contributors":[{"name":"Andreas Mehlsen","url":"https://twitter.com/andreasmehlsen"},{"name":"You?","url":"https://github.com/andreasbm/weightless/blob/master/CONTRIBUTING.md"}],"license":"MIT","_id":"web-dialog@0.0.2","_nodeVersion":"10.16.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-2PDQsSzEiWYWdWcGQsC56ArBSHq0qTDYS3WH3THUB8qFtK4VjSeukRvDWJDDhlsfmDW0Qo25OL+6vGlpdQHv1w==","shasum":"aa18ff59dc3826e023d06577693dea55b1da6cf9","tarball":"https://registry.npmjs.org/web-dialog/-/web-dialog-0.0.2.tgz","fileCount":10,"unpackedSize":28644,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdr13ACRA9TVsSAnZWagAAru0P/2mIYp8JS63oJWx3ogvD\n8/Z1+qgESNMzxzClAoAEONjsetGPl3xlWxpRxdVZFUpztpf08rVxtTweONXF\nm14aenVkMTl/9dgFvZymgGKL40kbuV7n7EMF0HDs+Yv3xCk9a4zBzFPC4jyR\nuWYIfEuhwB0kWHHhyMqg+28EDoxuIwSCQdaV9/Q3jBq6QhccCKcJMrx0yV9F\n2RCsnQL7EfxSxOXCs5yV1PcwbwxozUf9eAlH3YMVCDEyS8DJxAFgnZLmWar9\nvNLsES0Es8If8dz4BZ1dCAYqFG4PBbtn6MuF4gLHM0oU2NXliw3vV+nni9oY\nKIKklG417y9AIAEdMLpY0gTVBdX2UeyvJ0e10Nh0ycsxRwIfgo5uGJFWn6bw\nPYMhBDiOo4RsukUDbpOGOlFKrFOCczdB2lS+7w2ZhsUetA3G3B34POEgLywJ\n0FmD6Nhm2mG0x7x+6JNsQDjtyF7SI+1LFTWgbnHaKR5dWGK+6zNvTd8T6MeC\nLVUzxJyNAiiWSpmmnPYaddPUT7NNW/spjhOsPpoIBSC+lS0WS0G+CRX7NDPn\nF8fbsNL1YG8hnx+3cU8iMUSuDbnExtCZ7NUmQg9u6I9JIOdKnDp7PGCzCD5+\nZm1CCN/K9ukbTQ1toQFmpujzHxS0qSOCAJLJeK8aQwhIyUI9aGzVgmJo6Das\nRpnE\r\n=n9Cr\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFpHP6gp1eit5m4S3oWP6OOXrHLndYVukc4nmuuTp7WrAiAcI4kfSleCwk1TYTuLkx9fTVG50KPULP8jLV4YSYG62A=="}]},"maintainers":[{"name":"explore","email":"andmehlsen@gmail.com"}],"_npmUser":{"name":"explore","email":"andmehlsen@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/web-dialog_0.0.2_1571773884998_0.7946986158144826"},"_hasShrinkwrap":false},"0.0.3":{"name":"web-dialog","version":"0.0.3","description":"A highly accessible, customizable and lightweight dialog.","types":"index.d.ts","module":"index.js","main":"index.js","author":{"name":"Andreas Mehlsen"},"publishConfig":{"access":"public"},"bugs":{"url":"https://github.com/andreasbm/web-dialog/issues"},"homepage":"https://github.com/andreasbm/web-dialog#readme","repository":{"type":"git","url":"git+https://github.com/andreasbm/web-dialog.git"},"keywords":["web","accessibility","accessible","a11y","dialog","modal","focus","trap","components","custom","elements","component","element"],"scripts":{"b:dev":"rollup -c rollup.config.ts --environment NODE_ENV:dev","b:prod":"rollup -c rollup.config.ts --environment NODE_ENV:prod","s:dev":"rollup -c rollup.config.ts --watch --environment NODE_ENV:dev","s:prod":"rollup -c rollup.config.ts --watch --environment NODE_ENV:prod","s":"npm run s:dev","readme":"readme generate","b:lib":"rollup -c rollup.config.build.ts","ncu":"ncu -u -a && npm update && npm install","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/web-config":"^0.4.29","@appnest/readme":"^1.2.4"},"dependencies":{"@a11y/focus-trap":"^1.0.4"},"contributors":[{"name":"Andreas Mehlsen","url":"https://twitter.com/andreasmehlsen"},{"name":"You?","url":"https://github.com/andreasbm/weightless/blob/master/CONTRIBUTING.md"}],"license":"MIT","_id":"web-dialog@0.0.3","_nodeVersion":"10.16.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-y7AxUIsoYcm6/02KSr22hcyu20Xs6Q3apYxwArhDPzYEFzuV/fCprEy5U3q08JRf8n7Qtexgxhzm7ynUhlt3Dg==","shasum":"5b59572d52cb4cd5f4e296bcfb960600890d838d","tarball":"https://registry.npmjs.org/web-dialog/-/web-dialog-0.0.3.tgz","fileCount":10,"unpackedSize":28609,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdr2BPCRA9TVsSAnZWagAAouEQAKJ2/9Bp2g253p3L5QL4\nX8Zf3J2qEgHyAEfennG6IyXlWR84ItCJDSln60zk8NtHk290VE8Qiax/Udru\nhDD/RyZXgMwh4zCw4DH9RYtx8hHuCGYwO1sP1CfqYxuoMstHwt+jvn4i4Hki\nHiZzi8728qxZHh20EqB5U/qJM1nIIe/74RoE5pU/cJkd/tWr17TiMKk0ypNB\nECEcH0vSj3Itjn0Y7KzEmpwlOCJY3pVXSlO1WRsKwFpaft3Vp0Tx2nbBHaZt\nO+UbQ3HJqjrfqcGij+0ggBB5inaKYLzkCzFMySu0stj3CRafcCn1lojd1OQG\nMVLToyKsYABVuL+1NbRkVhjM5pZ9grz1YRLsE4w+eTA+zvexQZAAre0VBCeM\nEx495VZ2HRWuDR9wcX1/pNscYLi4fkmBgFumDCEvMGL4YbBfzCf9C/aopQbc\n/ILc8qddF2eIf2CrXwKw5nZJmT51NG64dYHgq4roLnxPoumFxdXStVX2iIQH\nB6QitZXPXloTzz7DBF4OZMcXjPds6r3tujcW4ZDePSOSmI4WdtpuZI9rBMQc\nfxDv7oUZEBzOLVpVhNhiPcQgh/lWIZo8tnF84OFdmDXa9JAffbBY2BKjETYg\nPjx8Zf57oKhkJFhyvmCO2AMc5cHJzB5LDKms7kfB+ia+Z91XAuNte/W39UBv\nUD1D\r\n=7pOt\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC75Y/2ScijZ+rFTJn0k4/CIiefueNM6HeQJjokJTc2xwIgcjJIaFkD9XRJz5ZluoUISL+pNDV68N++N7VzCnzM1uU="}]},"maintainers":[{"name":"explore","email":"andmehlsen@gmail.com"}],"_npmUser":{"name":"explore","email":"andmehlsen@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/web-dialog_0.0.3_1571774542934_0.9804229158765685"},"_hasShrinkwrap":false},"0.0.4":{"name":"web-dialog","version":"0.0.4","description":"A highly accessible, customizable and lightweight dialog.","types":"index.d.ts","module":"index.js","main":"index.js","author":{"name":"Andreas Mehlsen"},"publishConfig":{"access":"public"},"bugs":{"url":"https://github.com/andreasbm/web-dialog/issues"},"homepage":"https://github.com/andreasbm/web-dialog#readme","repository":{"type":"git","url":"git+https://github.com/andreasbm/web-dialog.git"},"keywords":["web","accessibility","accessible","a11y","dialog","modal","focus","trap","components","custom","elements","component","element"],"scripts":{"b:dev":"rollup -c rollup.config.ts --environment NODE_ENV:dev","b:prod":"rollup -c rollup.config.ts --environment NODE_ENV:prod","s:dev":"rollup -c rollup.config.ts --watch --environment NODE_ENV:dev","s:prod":"rollup -c rollup.config.ts --watch --environment NODE_ENV:prod","s":"npm run s:dev","readme":"readme generate","b:lib":"rollup -c rollup.config.build.ts","ncu":"ncu -u -a && npm update && npm install","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/web-config":"^0.4.29","@appnest/readme":"^1.2.4"},"dependencies":{"@a11y/focus-trap":"^1.0.4"},"contributors":[{"name":"Andreas Mehlsen","url":"https://twitter.com/andreasmehlsen"},{"name":"You?","url":"https://github.com/andreasbm/weightless/blob/master/CONTRIBUTING.md"}],"license":"MIT","_id":"web-dialog@0.0.4","_nodeVersion":"10.16.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-gt1C1poRAAFUEUiVw1FkLh2V0ScMMNn+6HpNUEC/Sxolp9j3u++IGeEbP2TibLP0TK+lvAtj8kMe8hh658I/Og==","shasum":"e0ab56012ef1f8a904f87149994dab70cbaf7c87","tarball":"https://registry.npmjs.org/web-dialog/-/web-dialog-0.0.4.tgz","fileCount":10,"unpackedSize":35220,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdsKWLCRA9TVsSAnZWagAAHncQAI0qjolXCMfJOastQH2E\nJ7PtR+IszZRwMFIfASVbkF2QJHXz+l1MmAx7ocDNnQVKXPltmgkJkHDDthy0\nhvZfRxHlztXqDg2LEzw+xS9ax6p3ZyJ7rN1aHyskz82VXXQ58tP3HewNai19\nUtL3myVDBiOREI+z8NHiR2CvRhAV8r6wzM9EVPdUMXwHBpJT0w+rD81QUhYX\nlsfqPmvQU2C0kROaVgQYZq5PkYl/d9krUezuusYbNrhOPvik41wE+LNFMzJx\nE8ldSJoBAOzr13Kmuosv6BSYj1Bg5tRrBcWHUl934OKGW6VbQr/BNM8ICPEh\nPgUe0FoXEsJ1obLwyg88+WGKHC84N2EjA/TIAbK3WQCpRP1/d+h8kOgNVNI8\nlDavSfZ6Z/5ug1Vg14ikyvpRVNcX/iy4DnlBEcVSEAq3BID03Wtt+wEW1QJr\n0+46QMO7aP2ZTTJTM/9M3jTmSZIAXBko5GWWrb2ra2HPfb3UPciU+1iw0zyG\nxDhkpv5201uMW+2Z1D2igg9Krq2n2FjlG/JXraRI/CLiisaY7P1+V8iNimde\ncaclvCaEj2SDHAtM7WOumyZL5qd95/VUy24mwi2slBCjiUYo+C7QBW7LhfYq\n5Ffl1Rw+Fj9YZJbweNFlDaxUq0hmnA3SrIYsRZgQEkyOP3L2sTuIQdH3Grgr\nsXwg\r\n=OCfp\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCgR6IcmwCR5DvumbPoHZrZ48XqewlCyS6jYNqy0lKFowIgMunAXij+aqJ+PfSvuLzxyfIw4VZxcw15Sy0qC+WJKOM="}]},"maintainers":[{"name":"explore","email":"andmehlsen@gmail.com"}],"_npmUser":{"name":"explore","email":"andmehlsen@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/web-dialog_0.0.4_1571857803037_0.08984873955505734"},"_hasShrinkwrap":false},"0.0.5":{"name":"web-dialog","version":"0.0.5","description":"A highly accessible, customizable and lightweight dialog.","types":"index.d.ts","module":"index.js","main":"index.js","author":{"name":"Andreas Mehlsen"},"publishConfig":{"access":"public"},"bugs":{"url":"https://github.com/andreasbm/web-dialog/issues"},"homepage":"https://github.com/andreasbm/web-dialog#readme","repository":{"type":"git","url":"git+https://github.com/andreasbm/web-dialog.git"},"keywords":["web","accessibility","accessible","a11y","dialog","modal","focus","trap","components","custom","elements","component","element"],"scripts":{"b:dev":"rollup -c rollup.config.ts --environment NODE_ENV:dev","b:prod":"rollup -c rollup.config.ts --environment NODE_ENV:prod","s:dev":"rollup -c rollup.config.ts --watch --environment NODE_ENV:dev","s:prod":"rollup -c rollup.config.ts --watch --environment NODE_ENV:prod","s":"npm run s:dev","readme":"readme generate","b:lib":"rollup -c rollup.config.build.ts","ncu":"ncu -u -a && npm update && npm install","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/web-config":"^0.4.29","@appnest/readme":"^1.2.4"},"dependencies":{"@a11y/focus-trap":"^1.0.4"},"contributors":[{"name":"Andreas Mehlsen","url":"https://twitter.com/andreasmehlsen"},{"name":"You?","url":"https://github.com/andreasbm/weightless/blob/master/CONTRIBUTING.md"}],"license":"MIT","_id":"web-dialog@0.0.5","_nodeVersion":"10.16.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-XCUkB0ys+q6+7OEHaaoUATeKiOD3Tn6pNTIN9QSIVv7mWzoQr66cEyyEB+lCJ00f1DhBhBpVkAfoQk0vgBFRUQ==","shasum":"0edab60d2f36be86fbc95e1a3f97f8b05fcf95b2","tarball":"https://registry.npmjs.org/web-dialog/-/web-dialog-0.0.5.tgz","fileCount":10,"unpackedSize":35299,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdsZQyCRA9TVsSAnZWagAAJ+QP/iO5bBvHsVnxzmrDTlIA\nydk5E/cgE8YlZrjcKd5fLOqyze6CPtwbbZ9b67FbK8kWVwrH+RSqO2aSvQa7\nVbgnSUmIzUsBn77n9dRL7Zs9zewSFmhZdQlQdvV7C6zQ5qhn+jPIW4XAeM1U\nlC0anFTQ0cX27pICfQMR2JN/BaM4exKklKAxAEDfnMzeJyEHd67VNcwoI6g+\nH5931el+aU3g2QcoFGimVVEIkP6lC0b0A+qT3t8gq6PFfRJRXI9VxzjHCoSc\nL50K4Nxd5xVn0Kef4zA4a1fk5AQzik1zeEwZRjIIDrpUFvgG4Aty0M69877J\nn9ebk6ysIm6VWDIXFThaIWeWMZF2TSyp/UdHCYCRYeJ7F/ySYHLh3Hzdn0NU\nBmNvMONqDCUXw4RVWl2OP7oR/a8DHVHoEs2m3V89wgbPvYFUYXaMSJ2G9/ww\nN69m+cydqAOLbVSb23AEq6V+MWRYYipAtD5raPMThiQLBpSXD3yb1gFGureF\nraAt/YYhvyT/xu7ees40GOvSOLCwsno+66Mib2VLSIoeegB0pvOkIh2HQzod\nkpzgrGP631l5lQYeFqvhsT0an0JWO6KmjwHUEwe4+twY1636yD/qQvJXdnt7\nr45ibXEdbIKnAgFxv2UiES0ZMmhVapabQyLntuUlc4rVdFzJDAsuLJWE5fid\nLMD9\r\n=2+jX\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIA5yCoyCqlDIn6to0MjF8PyAKVlDxu0I5nn8kTJPSUbgAiA0S0FIDU2PwRg+s6ti71LgIELff3Mi8S309fpY0p60Uw=="}]},"maintainers":[{"name":"explore","email":"andmehlsen@gmail.com"}],"_npmUser":{"name":"explore","email":"andmehlsen@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/web-dialog_0.0.5_1571918897658_0.6902853894051746"},"_hasShrinkwrap":false},"0.0.6":{"name":"web-dialog","version":"0.0.6","description":"A highly accessible, customizable and lightweight dialog.","types":"index.d.ts","module":"index.js","main":"index.js","author":{"name":"Andreas Mehlsen"},"publishConfig":{"access":"public"},"bugs":{"url":"https://github.com/andreasbm/web-dialog/issues"},"homepage":"https://github.com/andreasbm/web-dialog#readme","repository":{"type":"git","url":"git+https://github.com/andreasbm/web-dialog.git"},"keywords":["web","accessibility","accessible","a11y","dialog","modal","focus","trap","components","custom","elements","component","element"],"scripts":{"b:dev":"rollup -c rollup.config.ts --environment NODE_ENV:dev","b:prod":"rollup -c rollup.config.ts --environment NODE_ENV:prod","s:dev":"rollup -c rollup.config.ts --watch --environment NODE_ENV:dev","s:prod":"rollup -c rollup.config.ts --watch --environment NODE_ENV:prod","s":"npm run s:dev","readme":"readme generate","b:lib":"rollup -c rollup.config.build.ts","ncu":"ncu -u -a && npm update && npm install","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/web-config":"^0.4.29","@appnest/readme":"^1.2.4"},"dependencies":{"@a11y/focus-trap":"^1.0.4"},"contributors":[{"name":"Andreas Mehlsen","url":"https://twitter.com/andreasmehlsen"},{"name":"You?","url":"https://github.com/andreasbm/weightless/blob/master/CONTRIBUTING.md"}],"license":"MIT","_id":"web-dialog@0.0.6","_nodeVersion":"10.16.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-H+2A5Wojpyksx1PFYKUiVOIimdzMKqoN6BbgwLauXTJ2Gysr250GTqBg0vYaNzuVDtBbj92g3FX5dYTmxsxlZg==","shasum":"4d898a5d914c64bee1c3f4c93b81f6cdf05197f9","tarball":"https://registry.npmjs.org/web-dialog/-/web-dialog-0.0.6.tgz","fileCount":10,"unpackedSize":36098,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdvIIsCRA9TVsSAnZWagAA/fMQAKGmJ38dEf5QL7Giq/JJ\nKxhKRZ3cJTkE6W7gjz2NXlwdtwUFjwulQhKcZdqmhPaniqffpMMV2wCwEVyE\nenxPS4gIFkzXgwoqisSK/BPWxoN+GIhseSPXK6VA+5acqLx0uooNWgX603rQ\nun8o27z9k0t/z1DRu48ljtPafZiWRToF1ANOp+9tU/88jQaBFlBZivXIcxJH\nVfKuN1g19AuzPGdS3UkrjIz/WdeCwxnUIhsuD8xdu8mW3Xo0tYBIDzyZ2JEh\nhUZhn/VTYhJtqEp+x1W5LFaWwSPc3+gPQxUm+psFfjNSsrqgXwPlrbwzMRrY\ner/Vfaa24vhVhkAFzkUthAnPRtmfEeQmdHa9CYhlps5zSGDF6YSu4DxiPWpn\n9n6/DLgpjfrGk991wjZKyLm5NtmbwI3+snhRZupZ5hwVvh9iss9CD/CRRvMP\nsImQKAhzEwEHetmd7V0jI2QlVZi/uToP5WTUTqE9U13jWy+uTzeip+CGM9mZ\nfalcMK4sTBWv8DlpSWGsE8ma7qtUZZ0fNMve+NFkMUU/i2hL7F5j/c8KJxHN\ntmxCUZZk6Fg5lWq0FPHaEFL2uZIzTPsXpEXKn4zm8cmnwjLvVpnCW1Gx0luL\nKp0YyRjW0LzRtZNczn0RDYnVyw/hM0ZTZeriYwttmNKMxhBzxibO+O4v4QoZ\n1y5d\r\n=AdZm\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCN8oZq2z2W7oS0+ukk0aUE7g1C5gzx+eUNsHOkYywTDgIgRbNT11pGoipHGDJCVXJb8aONkw+fkDOcg/mQneaULeY="}]},"maintainers":[{"name":"explore","email":"andmehlsen@gmail.com"}],"_npmUser":{"name":"explore","email":"andmehlsen@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/web-dialog_0.0.6_1572635179565_0.5229369571941804"},"_hasShrinkwrap":false},"0.0.7":{"name":"web-dialog","version":"0.0.7","description":"A highly accessible, customizable and lightweight dialog.","types":"index.d.ts","module":"index.js","main":"index.js","author":{"name":"Andreas Mehlsen"},"publishConfig":{"access":"public"},"bugs":{"url":"https://github.com/andreasbm/web-dialog/issues"},"homepage":"https://github.com/andreasbm/web-dialog#readme","repository":{"type":"git","url":"git+https://github.com/andreasbm/web-dialog.git"},"keywords":["web","accessibility","accessible","a11y","dialog","modal","focus","trap","components","custom","elements","component","element"],"scripts":{"b:dev":"rollup -c rollup.config.ts --environment NODE_ENV:dev","b:prod":"rollup -c rollup.config.ts --environment NODE_ENV:prod","s:dev":"rollup -c rollup.config.ts --watch --environment NODE_ENV:dev","s:prod":"rollup -c rollup.config.ts --watch --environment NODE_ENV:prod","s":"npm run s:dev","readme":"readme generate","b:lib":"rollup -c rollup.config.build.ts && npm run wca","ncu":"ncu -u -a && npm update && npm install","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","wca":"npx web-component-analyzer analyze src/lib --format json --outFile dist/custom-elements.json"},"devDependencies":{"@appnest/web-config":"^0.4.35","@appnest/readme":"^1.2.5"},"dependencies":{"@a11y/focus-trap":"^1.0.5"},"contributors":[{"name":"Andreas Mehlsen","url":"https://twitter.com/andreasmehlsen"},{"name":"You?","url":"https://github.com/andreasbm/weightless/blob/master/CONTRIBUTING.md"}],"license":"MIT","_id":"web-dialog@0.0.7","_nodeVersion":"13.0.1","_npmVersion":"6.12.0","dist":{"integrity":"sha512-nsdYIt9pFhRij4dxuoiDTIU9vOVtFT1ARyFELCUOmq2XNX9vLTtHkjJJBv6KE6j4PF4AZp1vZMPXnUcjgn/3dQ==","shasum":"a24d7c3b2782f71dc5d7a1d130312394d5dd19e4","tarball":"https://registry.npmjs.org/web-dialog/-/web-dialog-0.0.7.tgz","fileCount":11,"unpackedSize":41759,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd8iseCRA9TVsSAnZWagAAJbcP/3dordGHSawxgPRB+AvF\ndVQQyuS0CEnScD+2RR/7NZiiFaLjvG5YAmXQpXgNyz3T+VunzTMnN24562nb\n3kISWAEu9VrWG54V5V+oTtofkc2X3GliVvD9XRVHRKJUhniB/yK4TiHriZBv\n0Bd18Hn9OGZWAfTvvI6iLKM7qEDTYoiSWfAse80O6WrVBG3416ATnx9EeLKh\n9f3tKC9RtlY5BOkSnpAj7GvQuIJJ3O3OCMlkY7hZZ/c6sedr7CKbjYaei6a1\nANhWmIQkcaPv3nol75tk1uOj9Uj5OLT695pg/Pew0wJppIzQ99BsDFdgwd+j\ngWQkdWlxTqBJAywTygqlilMKuWJ3XSwJG+2rqMv+LhyQoMv+Jxpb5de4JnLB\nB0NLFI7oHLP0oEzD4+V7mcwSpo7R2IGs/jdrPPY0FxXWkf3DUH2O7Ej5jcZk\n9NK8P5tNAY+uhP9pOveH5+hbi3OzP0xKhKDal7ESi8eJh6JTZnPNpbD0Cnen\naRAj0dGaO3R9xRIldOIGeep/3im0JWbupBp5awLNHJQReUpDrYxZb60ssa+E\nTf8pzxsQodGxP4hII8gcR9862e7SRENFofsI1s9S3SsqTjP0TNW4I/Wv0+Ne\nWqMn04bvrJGRe2BasM+SZfeKgMdWkjeeUMu7fLzFg014349jo0CcB5OY4Ui1\nqdB4\r\n=n8mu\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGvIC/TGeylx4gWxZSRAj7bAHHmJIrMckUk1zoEb8DgtAiAgpQvmw2UA8aAvfvyrbObR31giwnnBmDX4EHELXvGx3A=="}]},"maintainers":[{"name":"explore","email":"andmehlsen@gmail.com"}],"_npmUser":{"name":"explore","email":"andmehlsen@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/web-dialog_0.0.7_1576151837901_0.47690340503715656"},"_hasShrinkwrap":false},"0.0.8":{"name":"web-dialog","version":"0.0.8","description":"A highly accessible, customizable and lightweight dialog.","types":"index.d.ts","module":"index.js","main":"index.js","author":{"name":"Andreas Mehlsen"},"publishConfig":{"access":"public"},"bugs":{"url":"https://github.com/andreasbm/web-dialog/issues"},"homepage":"https://github.com/andreasbm/web-dialog#readme","repository":{"type":"git","url":"git+https://github.com/andreasbm/web-dialog.git"},"keywords":["web","accessibility","accessible","a11y","dialog","modal","focus","trap","components","custom","elements","component","element"],"scripts":{"b:dev":"rollup -c rollup.config.ts --environment NODE_ENV:dev","b:prod":"rollup -c rollup.config.ts --environment NODE_ENV:prod","s:dev":"rollup -c rollup.config.ts --watch --environment NODE_ENV:dev","s:prod":"rollup -c rollup.config.ts --watch --environment NODE_ENV:prod","s":"npm run s:dev","readme":"readme generate","b:lib":"rollup -c rollup.config.build.ts && npm run wca","ncu":"ncu -u -a && npm update && npm install","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","wca":"npx web-component-analyzer analyze src/lib --format json --outFile dist/custom-elements.json"},"devDependencies":{"@appnest/web-config":"^0.4.39","@appnest/readme":"^1.2.5"},"dependencies":{"@a11y/focus-trap":"^1.0.5"},"contributors":[{"name":"Andreas Mehlsen","url":"https://twitter.com/andreasmehlsen"},{"name":"You?","url":"https://github.com/andreasbm/weightless/blob/master/CONTRIBUTING.md"}],"license":"MIT","_id":"web-dialog@0.0.8","_nodeVersion":"13.6.0","_npmVersion":"6.13.4","dist":{"integrity":"sha512-dw0CV51NYbkDDbEo7tlUjc40aN06AVgDCzObXjXWoksHTitzsiwJOunxjBkQktScTwo9HRfJ6kVsBnIWQUAqNw==","shasum":"bde247865eb5576f617171903fe3eea6dfe74e37","tarball":"https://registry.npmjs.org/web-dialog/-/web-dialog-0.0.8.tgz","fileCount":11,"unpackedSize":41523,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeIGoLCRA9TVsSAnZWagAAfI8QAKUZIgGxUAo9Si1epbQq\nfLJ3xX/++sWm5/SPO1UW41Eq4fVZCexjhyPFb3dP3UANH031NVebsR0TeuIJ\nSaS0IfIp7/er+YOM+XI43lRvYfmxcdtoZHI1TdEKxTLreuqUGHZk+RSTsiZe\n7i6y2BZ0b2ehTkQyIBaZvgv9sgx3QQWc4GjMel568rybXFVqnnL2WMEUAKcj\nHpN101n+shsNtrTVt//Wxzl2SWfmqoXx2nIw1/YOvnTDGvM7EBtwO2XkqUC0\nIm4SbzqLDuk/HPBF1/ihxSDTTsLk6kp/+39rl5Ap112m6DzpniAF/vcRHmA5\nKHagSIPQpPF5/G+F5yhAGMpcBuPuRKbqduR4GPrOrwMUkXIbHhkjRx36xPDh\n2H4iczh0FG6uHmt9JI898txjEtUMk59NIo35U8/3btb7NedS/jFYn3clQLwM\nq3CoOKUlwFfnrH+3n9hRIbe201w8iNaw5YVb7gywm8/zXVgu1PXWaKJQ+wHq\nO1balFBhsHxRf1t1NjtVHFQWdqweztPOHJDbEALnVeHyCOCTaoY+TPbwRxNM\nnhka0Z8wB6c0Xg5IjP4xAsX93pyexJc+lI8iw/NG8ptA1w/u+geA65FqyhVJ\ndNIi5druBP6lxOlFd82nxRdWHZBiLE37nNslZYNKu5IE6R0M39YYdjMsTpZz\n15k4\r\n=Xq34\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDs3oQZ01rR94GGpqo+A1Duu0YGDSqgZurpdMY7p8wRygIhAJCgtDdMOse7JbePgkczf4u9rwXdzD5vBTG2wNBo8cXE"}]},"maintainers":[{"name":"explore","email":"andmehlsen@gmail.com"}],"_npmUser":{"name":"explore","email":"andmehlsen@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/web-dialog_0.0.8_1579182602681_0.046931691404931364"},"_hasShrinkwrap":false},"0.0.11":{"name":"web-dialog","version":"0.0.11","description":"A highly accessible, customizable and lightweight dialog.","types":"index.d.ts","module":"index.js","main":"index.js","author":{"name":"Andreas Mehlsen"},"publishConfig":{"access":"public"},"bugs":{"url":"https://github.com/andreasbm/web-dialog/issues"},"homepage":"https://github.com/andreasbm/web-dialog#readme","repository":{"type":"git","url":"git+https://github.com/andreasbm/web-dialog.git"},"keywords":["web","accessibility","accessible","a11y","dialog","modal","focus","trap","components","custom","elements","component","element"],"scripts":{"b:dev":"rollup -c rollup.config.ts --environment NODE_ENV:dev","b:prod":"rollup -c rollup.config.ts --environment NODE_ENV:prod","s:dev":"rollup -c rollup.config.ts --watch --environment NODE_ENV:dev","s:prod":"rollup -c rollup.config.ts --watch --environment NODE_ENV:prod","s":"npm run s:dev","readme":"readme generate","b:lib":"rollup -c rollup.config.build.ts && npm run wca","ncu":"ncu -u -a && npm update && npm install","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","wca":"npx web-component-analyzer analyze src/lib --format json --outFile dist/custom-elements.json"},"devDependencies":{"@appnest/web-config":"^0.5.0","@appnest/readme":"^1.2.6"},"dependencies":{"@a11y/focus-trap":"^1.0.5"},"contributors":[{"name":"Andreas Mehlsen","url":"https://twitter.com/andreasmehlsen"},{"name":"You?","url":"https://github.com/andreasbm/weightless/blob/master/CONTRIBUTING.md"}],"license":"MIT","_id":"web-dialog@0.0.11","_nodeVersion":"12.14.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-UGXpUfww+U2zWJCwb8uE0zeiCjyq4gv54VpC2zuT4+sOdR/ukz7flp941472BY9TnI8RrK3S5TLL4K9AQycfwQ==","shasum":"0cd9b25c560fdad01bb84b6754ee5d1ba5fe9562","tarball":"https://registry.npmjs.org/web-dialog/-/web-dialog-0.0.11.tgz","fileCount":11,"unpackedSize":42994,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJed7ChCRA9TVsSAnZWagAAdD4P/jlTwuCQBvh7au6UvD3C\nqsNelvO0p67OeufSflE3Tk4PCB8KAOqPhxRWuSszegEdklxFfB8xh3gD66qs\ntPKu7/puor0PwLbfofQSchEzMQtCYmiXMbE5iytILrMG9wwyBEf0+lJqAUrK\ntpMQPSOc0YCG4kRwasqIL3RxaTX0rBozDXRzf1SkSW8vkk29snXncYOf+q1o\ngl7Hf8zdSpLReHeIqYAz2idufyI8ihKsNTqLWvZ227i+NK8P9XVbjKdNJrks\ner1y/vyOsi+r5fidOUuh5Ce1/BtYrTO4C8Lxg1kqV+ukXNCkst4yRE+FtdlB\nIXTa8AATyHuNq3dMlegmPcBmLKLdWqV8PoxmsMoz59tQBtKKLILtb7YhWOmo\nUBAsW4+3S1adNUTAA92GoJMb1J3gyJHC4X38oCHZJlnpSV/QbknJ1xtYoSdz\njFVtOH20e2nar+CAiZ/MPEwtrjfztWJ5HYpCOv7Jq6rHxW2PzKETPO2wD1y3\noGLNwuAF90yYtEqBcKHvT1/NPmHUiIgaWRZ1hWHz9EM8bF6oMYT6QIXyjaIT\nXjd7SIsSea6oFOB/sEYXdSOangfQJIFWRYPDzdTcIOL2Vhba8SYfQecLhaqJ\nLwcC1kt6nxOIYoCahgudsBhLZ2PRhWscCYA/aDuO4JvzbFZUgYos6/DdDucQ\nfNYK\r\n=sWzJ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDaFRjzzBQOfDr5Zy2ErMMOlbAStCyNgzrQdL4VtoGwdgIgPuEtAO6aZ0Cr46AzGrHNqT9FHG5qjgnKiFyGnPM1E/U="}]},"maintainers":[{"name":"explore","email":"andmehlsen@gmail.com"}],"_npmUser":{"name":"explore","email":"andmehlsen@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/web-dialog_0.0.11_1584902304690_0.3516044086978929"},"_hasShrinkwrap":false}},"time":{"created":"2019-10-22T19:51:24.753Z","0.0.2":"2019-10-22T19:51:25.376Z","modified":"2022-05-24T04:24:08.258Z","0.0.3":"2019-10-22T20:02:23.092Z","0.0.4":"2019-10-23T19:10:03.166Z","0.0.5":"2019-10-24T12:08:17.784Z","0.0.6":"2019-11-01T19:06:19.675Z","0.0.7":"2019-12-12T11:57:18.079Z","0.0.8":"2020-01-16T13:50:02.857Z","0.0.11":"2020-03-22T18:38:24.832Z"},"maintainers":[{"name":"explore","email":"andmehlsen@gmail.com"}],"description":"A highly accessible, customizable and lightweight dialog.","homepage":"https://github.com/andreasbm/web-dialog#readme","keywords":["web","accessibility","accessible","a11y","dialog","modal","focus","trap","components","custom","elements","component","element"],"repository":{"type":"git","url":"git+https://github.com/andreasbm/web-dialog.git"},"contributors":[{"name":"Andreas Mehlsen","url":"https://twitter.com/andreasmehlsen"},{"name":"You?","url":"https://github.com/andreasbm/weightless/blob/master/CONTRIBUTING.md"}],"author":{"name":"Andreas Mehlsen"},"bugs":{"url":"https://github.com/andreasbm/web-dialog/issues"},"license":"MIT","readme":"<!-- ⚠️ This README has been generated from the file(s) \"blueprint.md\" ⚠️--><h1 align=\"center\">web-dialog</h1>\n<p align=\"center\">\n\t\t<a href=\"https://npmcharts.com/compare/web-dialog?minimal=true\"><img alt=\"Downloads per month\" src=\"https://img.shields.io/npm/dm/web-dialog.svg\" height=\"20\"/></a>\r\n<a href=\"https://www.npmjs.com/package/web-dialog\"><img alt=\"NPM Version\" src=\"https://img.shields.io/npm/v/web-dialog.svg\" height=\"20\"/></a>\r\n<a href=\"https://david-dm.org/andreasbm/web-dialog\"><img alt=\"Dependencies\" src=\"https://img.shields.io/david/andreasbm/web-dialog.svg\" height=\"20\"/></a>\r\n<a href=\"https://github.com/andreasbm/web-dialog/graphs/contributors\"><img alt=\"Contributors\" src=\"https://img.shields.io/github/contributors/andreasbm/web-dialog.svg\" height=\"20\"/></a>\n\t</p>\n\n<p align=\"center\">\n  <b>A highly accessible, customizable and lightweight dialog.</b></br>\n  <sub>Try the dialog yourself at <a href=\"https://codepen.io/andreasbm/pen/abbJvme\">Codepen</a>. Go here to see a demo <a href=\"https://appnest-demo.firebaseapp.com/web-dialog/\">https://appnest-demo.firebaseapp.com/web-dialog/</a>.<sub>\n</p>\n\n<br />\n\n\n<p align=\"center\">\n\t<img src=\"https://raw.githubusercontent.com/andreasbm/web-dialog/master/examples/example1.png\" width=\"600\">\n</p>\n\nBuilding a good dialog is hard - there are many things you might not think about if you try to build one. This dialog has been build using the [WAI-ARIA Authoring Practices](https://www.w3.org/TR/wai-aria-practices/#dialog_modal) and follows all of the best practices. This makes the dialog:\n\n* **Accessible** - The dialog is accessible. When opening the dialog, the focus is trapped inside the dialog and outside scrolling is blocked. When the dialog is closed, the focus is restored to what it was before opening it. It is also possible to close the dialog pressing the escape key.\n* **Works well with [Shadow DOM](https://developer.mozilla.org/en-US/docs/Web/Web_Components/Using_shadow_DOM)** - The dialog works very well with Shadow DOM and is therefore super Web Component friendly. Many people don't think about Shadow DOM when they build a dialog - this one has been build with Web Components in mind.\n* **Incredible lightweight** - The footprint of the dialog is around 2500 bytes gzipped.\n* **Customizable** - It is easy to customize the dialog with a few [CSS variables](https://www.w3.org/TR/css-variables-1/) or styling the exposed [Shadow Parts](https://www.w3.org/TR/css-shadow-parts-1/).\n* **Works with [all frameworks](https://custom-elements-everywhere.com/)** - It exposes a [Web Component](https://developer.mozilla.org/en-US/docs/Web/Web_Components) that can be used with your favorite framework.\n* **Can be nested** - The dialogs can spawn on top of each other.\n\n\r\n[![-----------------------------------------------------](https://raw.githubusercontent.com/andreasbm/readme/master/assets/lines/colored.png)](#table-of-contents)\r\n\r\n## ➤ Table of Contents\n\n* [➤ Installation](#-installation)\r\n* [➤ Usage](#-usage)\r\n* [➤ Center the dialog](#-center-the-dialog)\r\n* [➤ Sticky header and footer](#-sticky-header-and-footer)\r\n* [➤ Customize](#-customize)\r\n* [➤ Events](#-events)\r\n* [➤ `openDialog(...)`](#-opendialog)\r\n* [➤ lit-html & lit-element](#-lit-html--lit-element)\r\n* [➤ Extend WebDialog](#-extend-webdialog)\r\n* [➤ Documentation](#-documentation)\r\n\t* [web-dialog](#web-dialog)\r\n\t\t* [Properties](#properties)\r\n\t\t* [Methods](#methods)\r\n\t\t* [Events](#events)\r\n\t\t* [CSS Shadow Parts](#css-shadow-parts)\r\n\t\t* [CSS Custom Properties](#css-custom-properties)\r\n* [➤ Contributors](#-contributors)\r\n* [➤ License](#-license)\n\n\r\n[![-----------------------------------------------------](https://raw.githubusercontent.com/andreasbm/readme/master/assets/lines/colored.png)](#installation)\r\n\r\n## ➤ Installation\n\nIt is recommended that you install the library through [NPM](https://www.npmjs.com/package/web-dialog).\n\n```\n$ npm i web-dialog\n```\n\n\r\n[![-----------------------------------------------------](https://raw.githubusercontent.com/andreasbm/readme/master/assets/lines/colored.png)](#usage)\r\n\r\n## ➤ Usage\n\nTo use this library you first need to get import the library through code somewhere (`import \"web-dialog\";`). After you have done this you'll be able to use the `web-dialog` web component. In-between the opening and closing tags you can add whatever content you'd want to show in the dialog.\n\n```html\n<web-dialog>\n  <span>This is a default dialog!</span>\n</web-dialog>\n```\n\nTo open the dialog you will have to add the `open` attribute to the element.\n\n```html\n<web-dialog open>\n  <span>This is a default dialog!</span>\n</web-dialog>\n```\n\nAlternatively you can set the `.open` property of the dialog to true through Javascript.\n\n```js\nconst $dialog = document.querySelector(\"web-dialog\");\n$dialog.open = true;\n```\n\nWhen the dialog opens it will look like this.\n\n<img src=\"https://raw.githubusercontent.com/andreasbm/web-dialog/master/examples/example1.png\" width=\"600\">\n\n\r\n[![-----------------------------------------------------](https://raw.githubusercontent.com/andreasbm/readme/master/assets/lines/colored.png)](#center-the-dialog)\r\n\r\n## ➤ Center the dialog\n\nYou probably noticed the dialog is not centered as default. This is because, as default, the dialog uses the container around the element to scroll in instead of using the inside of the dialog. To center the dialog you can add the `center` attribute or set the `.center` property to true.\n\n```html\n<web-dialog center>\n  <span>This is a default centered dialog!</span>\n</web-dialog>\n```\n\nWhen opened the dialog will look like this.\n\n<img src=\"https://raw.githubusercontent.com/andreasbm/web-dialog/master/examples/example2.png\" width=\"600\">\n\n\r\n[![-----------------------------------------------------](https://raw.githubusercontent.com/andreasbm/readme/master/assets/lines/colored.png)](#sticky-header-and-footer)\r\n\r\n## ➤ Sticky header and footer\n\nWhat about a sticky header and footer? No problem at all. Just make sure to use `header`, `article` and `footer` HTML tags for your content and center the dialog. This will style the content in such as way that the footer and header is sticky.\n\n```html\n<web-dialog center>\n  <header>\n    <h3>The standard Lorem Ipsum passage</h3>\n  </header>\n  <article>\n    <p>Lorem ipsum dolor sit amet, consectetur adipiscing...</p>\n  </article>\n  <footer>\n    <button>Okay...</button>\n  </footer>\n</web-dialog>\n```\n\nTo make thing look nice you can add some CSS and apply a bottom border to the header, a top border to the footer and add some padding to the elements. When opened the dialog will look like this.\n\n<img src=\"https://raw.githubusercontent.com/andreasbm/web-dialog/master/examples/example4.png\" width=\"600\">\n\n\r\n[![-----------------------------------------------------](https://raw.githubusercontent.com/andreasbm/readme/master/assets/lines/colored.png)](#customize)\r\n\r\n## ➤ Customize\n\nThe dialog can be customized by setting some CSS variables or modifying the shadow parts. You can read about all of the CSS variables you can set and shadow parts you can change [here](#-documentation). Let's say you want to create a fullscreen dialog. Then you could change the following CSS variable to achieve it.\n\n```css\nweb-dialog {\n  --dialog-container-padding: 0;\n  --dialog-border-radius: 0;\n  --dialog-max-width: 100vw;\n  --dialog-height: 100%;\n  --dialog-animation-duration: 0;\n}\n```\n\n```html\n<web-dialog>\n  <header>\n    <h3>The standard Lorem Ipsum passage</h3>\n  </header>\n  <article>\n    <p>Lorem ipsum dolor sit amet, consectetur adipiscing...</p>\n  </article>\n  <footer>\n    <button>Okay...</button>\n  </footer>\n</web-dialog>\n```\n\nWhen opened the dialog will look like this.\n\n<img src=\"https://raw.githubusercontent.com/andreasbm/web-dialog/master/examples/example5.png\" width=\"600\">\n\n\r\n[![-----------------------------------------------------](https://raw.githubusercontent.com/andreasbm/readme/master/assets/lines/colored.png)](#events)\r\n\r\n## ➤ Events\n\nThe dialog can dispatch 3 different events.\n\n* **open** - The first event is the `open` event which is dispatched when the dialog opens.\n* **closing** - The second event is the `closing` event which is dispatched when the dialog is about to close due to the user clicking on the backdrop or pressing escape. If `.preventDefault()` is called on this event the dialog won't close.\n* **close** - The third event is the <code>close</code> event which is dispatched when the dialog closes. If `.result` is set on the dialog, the `.detail` property of the `close` event will have the value of the result.\n\nHere's an example on how you'd use the events.\n\n```js\nconst $dialog = document.querySelector(\"web-dialog\");\n\n$dialog.addEventListener(\"open\", () => {\n  console.log(\"The dialog opened!\");\n});\n\n$dialog.addEventListener(\"closing\", () => {\n  console.log(\"The dialog is about to close because the backdrop was clicked or because escape was pressed!\");\n\n  // Don't allow the dialog to close\n  e.preventDefault();\n});\n\n$dialog.addEventListener(\"close\", e => {\n  console.log(\"The dialog closed!\", e.detail);\n});\n```\n\n\r\n[![-----------------------------------------------------](https://raw.githubusercontent.com/andreasbm/readme/master/assets/lines/colored.png)](#opendialog)\r\n\r\n## ➤ `openDialog(...)`\n\nIf you want to use the dialog programmatically you can use the `openDialog(...)` function. This function makes sure to append content inside the dialog, adds it to the DOM and removes it when it closes. You can give an object with the following fields to the function.\n\n* **$content** - A DOM element that will be placed inside the dialog as content. This can also be a function that takes the dialog and appends the content for the dialog.\n* **$container** - A DOM element where the dialog will be placed inside. As default this is the `body` element.\n* **center** - Whether the dialog is centered. As default this is false.\n* **initialize** - A function that returns an instance of `WebDialog`. This is smart to overwrite if you for example have extended the WebDialog class and want to open that custom dialog instead.\n\nIn it's most simple form you can open a dialog like this:\n\n```js\nimport {openDialog} from \"web-dialog\";\n\nconst $template = document.createElement(\"template\");\n$template.innerHTML = `\n  <span>This is some content for the dialog!</span>\n`;\n\nopenDialog({\n  $content: $template.content.cloneNode(true)\n});\n```\n\nWhen the `openDialog(...)` function above is called it will look like this.\n\n<img src=\"https://raw.githubusercontent.com/andreasbm/web-dialog/master/examples/example8.png\" width=\"600\">\n\nThe `openDialog(...)` function returns an object with the following two properties.\n\n* **$dialog** - The dialog HTML element.\n* **resolver** - A promise that will resolve with the result of the dialog when closed.\n\nBased on the information above, here's a little more advanced example.\n\n```js\nimport {openDialog} from \"web-dialog\";\n\n// Create a template\nconst $template = document.createElement(\"template\");\n$template.innerHTML = `\n  <button data-value=\"no\">No</button>\n  <button data-value=\"yes\">Yes</button>\n`;\n\n// Open the dialog\nconst {$dialog, resolver} = openDialog({\n  $content: $template.content.cloneNode(true)\n});\n\n// Attach an event listener that sets the closes the dialog with the result when a button is clicked\n$dialog.querySelectorAll(\"button\").forEach($button => $button.addEventListener(\"click\", e => {\n  const result = e.target.dataset.value;\n  $dialog.close(result);\n}));\n\n// Wait for the result\nconst result = await resolver;\n\n// Print the result\nconsole.log(`The result was ${result}`);\n```\n\n\r\n[![-----------------------------------------------------](https://raw.githubusercontent.com/andreasbm/readme/master/assets/lines/colored.png)](#lit-html--lit-element)\r\n\r\n## ➤ lit-html & lit-element\n\nHere's a little trick for you if you use [lit-element](https://github.com/polymer/lit-element) or [lit-html](https://github.com/polymer/lit-html). If you want to quickly open a dialog with some content you can use the render function of `lit-html` like this.\n\n```js\nimport {openDialog} from \"web-dialog\";\nimport {render} from \"lit-html\";\n\nopenDialog({\n  $content: $dialog => render(html`\n    <h3>Do you like this dialog?</h3>\n    <button @click=\"${() => $dialog.close()}\">Umm, yeah!</button>\n  `, $dialog)\n});\n```\n\n\r\n[![-----------------------------------------------------](https://raw.githubusercontent.com/andreasbm/readme/master/assets/lines/colored.png)](#extend-webdialog)\r\n\r\n## ➤ Extend WebDialog\n\nIt is totally possible to extend the dialog. The only thing you have to do is define a new class and extend the `WebDialog` class. Then you can add your custom logic and define a new custom element with your new class. Here's an example of what you could if you for example want a custom dialog that shows an image.\n\n```js\nimport { WebDialog } from \"web-dialog\";\n\n// Create a template for the content of the dialog\nconst $template = document.createElement(\"template\");\n$template.innerHTML = `\n  <style>\n    #img {\n      width: 100%;\n      height: 400px;\n      object-fit: cover;\n    }\n  </style>\n  <img id=\"img\" />\n`;\n\n// Create a class extending the WebDialog class.\nclass ImageDialog extends WebDialog {\n\n  // Observe the src attribute so we can react each time it changes\n  static get observedAttributes () { return [\"src\"]; }\n\n  // Make sure the src property is getting reflected as an attribute\n  get src () { return this.hasAttribute(\"src\"); }\n  set src (value) { this.setAttribute(\"src\", value); }\n  \n  constructor () {\n    super();\n    \n    // Append the dialog content\n    this.$dialog.appendChild($template.content.cloneNode(true));\n    \n    // Get a reference to the img element\n    this.$img = this.shadowRoot.querySelector(\"#img\");\n  }\n  \n  // Each time the src attribute changes we set the src of the image element\n  attributeChangedCallback (name, newValue) {\n    switch (name) {\n      case \"src\":\n        this.$img.src = newValue;\n        break;\n    }\n  }\n}\n\n// Remember to define your new custom element\ncustomElements.define(\"image-dialog\", ImageDialog);\n```\n\nAfter you have defined your new dialog you are be able to use it like this.\n\n```html\n<image-dialog open center src=\"https://i.ytimg.com/vi/NCZ0eg1zEvw/maxresdefault.jpg\"></image-dialog>\n```\n\nOr this\n\n```js\nimport {openDialog} from \"web-dialog\";\n\nopenDialog({\n  initialize: () => {\n    const $dialog = new ImageDialog();\n    $dialog.src = `https://i.ytimg.com/vi/NCZ0eg1zEvw/maxresdefault.jpg`;\n    $dialog.center = true;\n    return $dialog;\n  }\n});\n```\n\nWhen our custom dialog opens it will look like this.\n\n<img src=\"https://raw.githubusercontent.com/andreasbm/web-dialog/master/examples/example9.png\" width=\"600\">\n\n\r\n[![-----------------------------------------------------](https://raw.githubusercontent.com/andreasbm/readme/master/assets/lines/colored.png)](#documentation)\r\n\r\n## ➤ Documentation\n\nThis section documents the `attributes`, `css variables` and `slots` of the web components this library exposes.\n\n### web-dialog\n\nA dialog web component that can be used to display highly interruptive messages.\n\n#### Properties\n\n| Property          | Attribute | Type             | Description                                 |\n|-------------------|-----------|------------------|---------------------------------------------|\n| `center`          | `center`  |                  | Whether the dialog is centered on the page. |\n| `onBackdropClick` |           |                  |                                             |\n| `onKeyDown`       |           |                  |                                             |\n| `open`            | `open`    |                  | Whether the dialog is opened.               |\n| `result`          |           | `R \\| undefined` |                                             |\n\n#### Methods\n\n| Method            | Type                              | Description                                      |\n|-------------------|-----------------------------------|--------------------------------------------------|\n| `assertClosing`   | `(): any`                         | Dispatches an event that, if asserts whether the dialog can be closed.<br />If \"preventDefault()\" is called on the event, assertClosing will return true<br />if the event was not cancelled. It will return false if the event was cancelled. |\n| `close`           | `(result?: R \\| undefined): void` | Closes the dialog with a result.                 |\n| `didClose`        | `(): void`                        | Clean up the dialog after it has closed.         |\n| `didOpen`         | `(): void`                        | Setup the dialog after it has opened.            |\n| `onBackdropClick` | `(): void`                        | Closes the dialog when the backdrop is clicked.  |\n| `onKeyDown`       | `(e: any): void`                  | Closes the dialog when escape is pressed.        |\n| `show`            | `(): void`                        | Shows the dialog.                                |\n\n#### Events\n\n| Event     | Description                                      |\n|-----------|--------------------------------------------------|\n| `close`   | This event is fired when the dialog closes.      |\n| `closing` | This event is fired before the dialog is closed by clicking escape or on the backdrop. The event is cancellable which means `event.preventDefault()` can cancel the closing of the dialog. |\n| `open`    | This event is fired when the dialog opens.       |\n\n#### CSS Shadow Parts\n\n| Part       | Description    |\n|------------|----------------|\n| `backdrop` | Backdrop part. |\n| `dialog`   | Dialog part.   |\n\n#### CSS Custom Properties\n\n| Property                      | Description                                  |\n|-------------------------------|----------------------------------------------|\n| `--dialog-animation-duration` | Duration of the dialog animation.            |\n| `--dialog-animation-easing`   | Easing of the dialog animation.              |\n| `--dialog-backdrop-bg`        | Background of the backdrop.                  |\n| `--dialog-bg`                 | Background of the dialog.                    |\n| `--dialog-border-radius`      | Border radius of the dialog.                 |\n| `--dialog-box-shadow`         | Box shadow of the dialog.                    |\n| `--dialog-color`              | Color of the dialog.                         |\n| `--dialog-container-padding`  | Padding of the host container of the dialog. |\n| `--dialog-height`             | Height of the dialog.                        |\n| `--dialog-max-height`         | Max height of the dialog.                    |\n| `--dialog-max-width`          | Max width of the dialog.                     |\n| `--dialog-overflow-x`         | Overflow of the x-axis.                      |\n| `--dialog-overflow-y`         | Overflow of the y-axis.                      |\n| `--dialog-padding`            | Padding of the dialog.                       |\n| `--dialog-width`              | Width of the dialog.                         |\n| `--dialog-z-index`            | Z-index of the dialog.                       |\n\n\n\r\n[![-----------------------------------------------------](https://raw.githubusercontent.com/andreasbm/readme/master/assets/lines/colored.png)](#contributors)\r\n\r\n## ➤ Contributors\n\t\n\n| [<img alt=\"Andreas Mehlsen\" src=\"https://avatars1.githubusercontent.com/u/6267397?s=460&v=4\" width=\"100\">](https://twitter.com/andreasmehlsen) | [<img alt=\"You?\" src=\"https://joeschmoe.io/api/v1/random\" width=\"100\">](https://github.com/andreasbm/weightless/blob/master/CONTRIBUTING.md) |\n|:--------------------------------------------------:|:--------------------------------------------------:|\n| [Andreas Mehlsen](https://twitter.com/andreasmehlsen) | [You?](https://github.com/andreasbm/weightless/blob/master/CONTRIBUTING.md) |\n\n\r\n[![-----------------------------------------------------](https://raw.githubusercontent.com/andreasbm/readme/master/assets/lines/colored.png)](#license)\r\n\r\n## ➤ License\n\t\nLicensed under [MIT](https://opensource.org/licenses/MIT).\n\n  ","readmeFilename":"README.md"}