{"_id":"@bjnstnkvc/alert","_rev":"5-99ec86cbcba9dc694063cbec18816549","name":"@bjnstnkvc/alert","dist-tags":{"latest":"1.0.6"},"versions":{"1.0.0":{"name":"@bjnstnkvc/alert","version":"1.0.0","description":"Simple JavaScript Alert library.","main":"./lib/Alert.js","directories":{"lib":"lib"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/BJNSTNKVC/js-simple-alert-library.git"},"keywords":["js","alert"],"author":{"name":"Bojan Stankovic"},"license":"MIT","bugs":{"url":"https://github.com/BJNSTNKVC/js-simple-alert-library/issues"},"homepage":"https://github.com/BJNSTNKVC/js-simple-alert-library#readme","gitHead":"d74978bba7a69bfe11b19691f7e19689088aa405","_id":"@bjnstnkvc/alert@1.0.0","_nodeVersion":"16.13.1","_npmVersion":"9.5.1","dist":{"integrity":"sha512-WGDUbQBq7Fk2/tlY7FLqxyrZJiQdqKRFpFviQx0VIxUEqq7fSBr3YgRYz9ULzdzwnTLxVzuRlO3yicSdHWtW9A==","shasum":"c0d8c5531c963894813a49983c37636379f4ef19","tarball":"https://registry.npmjs.org/@bjnstnkvc/alert/-/alert-1.0.0.tgz","fileCount":14,"unpackedSize":46975,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDgXsbnATxqvbQlZnyIGCuQHdBLi/AvOfs6DyPqYK51JAiA9Lsg4HBj9jbAsGF+mE7OXfc3tNgFYhKfS7xE8IAzoww=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkC8KiACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrt8Q/+KS72ScgvGcp1Vf8U7yFV3kUIG0sRdKkvBpOnoyJNazgYtIYw\r\nttrFlb4dhTxnEKC2WWqOeT38AhtVtueSiOFFrRUUpzqtkAre1RUmrd6g7yoh\r\n41qtGqze1056/+Rk6VClrD+i469hhOtlJ2a77tS519BF0uja1yW4nqbAcV0m\r\nAwTGvNcTmay7aF/tm6YuSJME5OsCHG8lEdVcAi2w0f8ruQ+S8PQV5cWbf93T\r\nl2JdW7hJRxAMwBSYfWv/nTWZmdPyWgU0djurbOKOWqphK6gfnwNMgAroIsiu\r\n8FT2YyJSPdpSHnmNv13xSR7UfWD0OTyQ2E1LGra+fUxk7riD/js+S21dA65s\r\n7CzSr9rUXjtr8DML094/JF9WZpcS6EokqpY+qQJ7ImdqCaFTpAmZH9GQZsQg\r\nFTR0lQsR7VbTuVjOM6+pTsYOw/gTYJSp9K/AmmiQD1796kpt8dB00WayJvsw\r\nSnoafMthw/bk5GxzoXa3q08Qu9wV+J+J/uo85stVuI/XJn2Zkl8pBHSG6m0Y\r\nTGSYqVGWmx/GAOgP1ToiMDsWBJOVITJUosvQ18lz11Gz1ODwqJeCHMIGVdvB\r\nMWh9i27ZvKbx0eDty0xLyU+BP1H+kN00sveSSZvsxX9fJLl3qqCt41qR4xMX\r\nY9Yq0PbqHbChYvT8u4jOhPAsUq9J9MyTqBM=\r\n=9Q5d\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"bjnstnkvc","email":"dev.bojan.stankovic@gmail.com"},"maintainers":[{"name":"bjnstnkvc","email":"dev.bojan.stankovic@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/alert_1.0.0_1678492322514_0.5660678397612504"},"_hasShrinkwrap":false},"1.0.1":{"name":"@bjnstnkvc/alert","version":"1.0.1","description":"Simple JavaScript Alert library.","main":"./lib/Alert.js","directories":{"lib":"lib"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/BJNSTNKVC/js-simple-alert-library.git"},"keywords":["js","alert"],"author":{"name":"Bojan Stankovic"},"license":"MIT","bugs":{"url":"https://github.com/BJNSTNKVC/js-simple-alert-library/issues"},"homepage":"https://github.com/BJNSTNKVC/js-simple-alert-library#readme","gitHead":"458691c69f60e28cec8a84a8cfb3056b2d2c096c","_id":"@bjnstnkvc/alert@1.0.1","_nodeVersion":"16.13.1","_npmVersion":"9.5.1","dist":{"integrity":"sha512-54+0rWmGbS1Ev9nKPRRTUQ7ghchlQ0j5xk8TE9/SrVxIPMb79Dcl0HqQ8mh9S/k866rNqu+mmzigMvx1G5jMjA==","shasum":"15ebb2b477c920cceddf82ef213fda06ed7a90a2","tarball":"https://registry.npmjs.org/@bjnstnkvc/alert/-/alert-1.0.1.tgz","fileCount":15,"unpackedSize":47894,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICgIfiHqAV+VDjSR6ULX8Zynblzk4zXpCj/nluYoqn/2AiBPAiKfsbeLXX1ErN04N+MJx1tNL/AnqEOHTYIbZ3wc2w=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkC8dVACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqcPxAAnyo0gQtuD5/Nx2oGbuKieEKkVXjn8NEsYLhqXcLpw00r+ZjW\r\nRs7Io/HiPWkYBb5nTnKi0oUyGcEg1/YrR0Sqnxwk3qae1vNqJjKTy3eXxv0y\r\nQ6PvY9rGe47eK35urOqbziEIJxXUJcEJwLmk6sJbf2ed+xK3jOBQqk0qapwd\r\nm0iHjKxbznKMkk8zm3CdgXFn/9pD9HGvD1aORdbKs3rEDej1x9omUdUaJp48\r\ndUenZQR5ZOEFbUTOGVyAku/BseMhv+Jz1WZsruS0RRCQH6LcVyA4JbGirxur\r\nQcsIH0+fFhBHkt24fdN/CIgji8OUFcqhfqY+TkijlmoI/hbm9FIaNQz3wYCX\r\nqMXTaVwdYYgHK+ZMxqXUTtx5mZkloUsdXfBRYOaZy7xVnzFwkAUT6dKeUmIY\r\n8EsnJuzH84cJ0kMIa4jqYrF/J4J5NB+JQqutnwcVHZTYPibneabAYFIChz2Q\r\nEn/5bKhnwJWOAxCCcRqP6qAGu8Xu4xMI/ul92pAkp3WJG3Vc8NPZ0S3Tg9r8\r\npDY+hiBL/kl8y8KyQycvSQdQpB17cCEwTvHdyZYrGR8XQ+UCN6iU1tVb0Bcs\r\nJUl4pAcvslOfHpi0wgTc+PizRXC1O2leWizovSWKFG1Da6KMFe7UE2zYLouc\r\neG6TttKrbFCEyt6Jv7emrGqqgNHHvhLRh+4=\r\n=ilyB\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"bjnstnkvc","email":"dev.bojan.stankovic@gmail.com"},"maintainers":[{"name":"bjnstnkvc","email":"dev.bojan.stankovic@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/alert_1.0.1_1678493525405_0.8554487373782773"},"_hasShrinkwrap":false},"1.0.2":{"name":"@bjnstnkvc/alert","version":"1.0.2","description":"Simple JavaScript Alert library.","main":"./lib/Alert.js","directories":{"lib":"lib"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/BJNSTNKVC/js-simple-alert-library.git"},"keywords":["js","alert"],"author":{"name":"Bojan Stankovic"},"license":"MIT","bugs":{"url":"https://github.com/BJNSTNKVC/js-simple-alert-library/issues"},"homepage":"https://github.com/BJNSTNKVC/js-simple-alert-library#readme","gitHead":"c49e745a231f532e215d31b23ebffb0b7faabd78","_id":"@bjnstnkvc/alert@1.0.2","_nodeVersion":"16.13.1","_npmVersion":"9.5.1","dist":{"integrity":"sha512-6bQZdTEI1Ayy6/voBui7pkEX0VEpLMfHqgeB33sPI1Y/cQPhVNnDBVFfxJ24Ph/6MOL+At9+0E2VI+4I0ioS2g==","shasum":"4f491c8bd4d4b3721794d137745d8ed46767bf0b","tarball":"https://registry.npmjs.org/@bjnstnkvc/alert/-/alert-1.0.2.tgz","fileCount":15,"unpackedSize":47895,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDB7mBdDK1toPlX0XXATypXQcZTPnZUY1j+41d/Yhe8NAiEAopITQcquwhJtrXKJChnOJp7rl7Boo1wq2XVQtn6PFxY="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkC8kSACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqKgg/7Bl562e9O+aEoAw1RmZe4dr3+0AD10SirhWJFmnusGHZLXrYx\r\nIAnUCucvk92S0Dc6ZG9v6s3D3KhCqpp+0Fq8B50JaVUi3Qe17Sd+ZMpZuAQb\r\n7hZBHx+7aXNVQ/8lJOUW3d6Whsd6dj5GnMs4OC6zAuNQVA6u2pzEFOyiqPTr\r\n5to2+LolY8nZjm1rEyIv9Qw3gVos82vYAyOn3bLOZ+pARtM8ugOObcew2wVL\r\nqZubjorcdbr7efF5swRxP8nEkcK6uKBjWlIaDNeVaGPKGtZx/CbgX+wQ9NDe\r\nm0y0S9MEaWgvEn80bBfNYmV6TfwqU1oSXNGOuZ1TxY3eCcPyqzdZfvAWkhJm\r\nB7Kqg8+ryZ/Tb13gXtSE5mcUkg+NqpEhOThh+/wYvcqiunY+bVpHrXeO54Mb\r\n536vurryNCNPVs4bHgZ+FpykLvO+MA/HZJaPCcIYLAptVfUU27BcZFt1IPT8\r\nQwaiH4ZjKYSkCLSaEAIIUV/isrNELIbkmwhHTxZWKGgcidUdtqC1fjjbtz5q\r\nPql8vCyvDWpAdz3FNjgjshidCxUghr94OW4F4VLBRumqkQRUbS0IAscgUeMO\r\nKt7XSUdD0ymWvV2Fg1J/Bw4fhjHcGrDwj6YdMarLYo1Y/yMj/y7ORNREtjSW\r\nLQUbmUA8wzuH0Qvzom2/FK5Ks9pN24noGrA=\r\n=Jnne\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"bjnstnkvc","email":"dev.bojan.stankovic@gmail.com"},"maintainers":[{"name":"bjnstnkvc","email":"dev.bojan.stankovic@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/alert_1.0.2_1678493970135_0.8881756509416647"},"_hasShrinkwrap":false},"1.0.4":{"name":"@bjnstnkvc/alert","version":"1.0.4","description":"Simple JavaScript Alert library.","main":"./lib/Alert.js","directories":{"lib":"lib"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/BJNSTNKVC/js-simple-alert-library.git"},"keywords":["js","alert"],"author":{"name":"Bojan Stankovic"},"license":"MIT","bugs":{"url":"https://github.com/BJNSTNKVC/js-simple-alert-library/issues"},"homepage":"https://github.com/BJNSTNKVC/js-simple-alert-library#readme","gitHead":"9e1cd5100c4d831b2d64225cec01d3e99c566291","_id":"@bjnstnkvc/alert@1.0.4","_nodeVersion":"16.13.1","_npmVersion":"9.5.1","dist":{"integrity":"sha512-oEdOWbc9FCEMNFQ7VLcbp5A8mWP6aZKx65DZfdjTjsqpGACJAcX/7bEaw94ZJCd+m+GVbDDFyOOvtmG/Yh3S0A==","shasum":"5157cc2e055806799c897da87df8d6a3a7274db6","tarball":"https://registry.npmjs.org/@bjnstnkvc/alert/-/alert-1.0.4.tgz","fileCount":15,"unpackedSize":47894,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC0tpZJHcJuWaEqycND0I4bzJ2X0atkzcRy18Wt9f4fRAIgQr4UdXKsLtbuyrBA8btuTkvG778hqW12v25DAtb72rM="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkC8m3ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqHdw//WIBRsPMZimGtQv0kuWCvp+fCntZbAHVt63xtGY/KidemlP2f\r\nTsr1XhL1+NoNaN36tTuP0SbygQZmg90UMlnOtmWL3lVQJFSsoBTArdfOISs8\r\nrZt4wQsgzo/2pFdFDIb1STrXcGbLMpYrfdRbn6k30qtBLDmmgYPwjCa+p9jt\r\n2nQgD3fS21Y0Ees+VbpBKikD8Ni+knA1b2U4lBuRgezOZkvIfD/DIXXPtZ+C\r\np/R8LUtIpc965m9E8dct3FZT2B4SMltOTpL4jUSWn/Sjdic1xBOe4QGIUlrO\r\nc4jxEGgO1USr0H56YlCjueTcVHXKy9nFY2qXBafMtxQ0UaGBwOFuG7jSRt6+\r\nblK6iZ/h4h4/fhlrRY/eFTaKf0v6bqUq1D4isU7lXhAr4hUq6UHpnp2Ps2XV\r\nOECtnv2cYC+GOGaRCvJrZOMfvjTMtLBv+I2t3oUMXWNZ1tfNMDHzXGrq2IhC\r\n7fQyfJ2UtoWGaOcyP2WW+vsK1tul8FJCbBhHOT2s4ggPJKRNvHYEM2RwSCKV\r\nUDiunAObLZ8Oj1Vho2/93pKjkz0WLH7Q1HAxYMs++xuUpcq9U0M9xNwb6Zoj\r\n6jXhYpLW+mkfV4V4D2O69dCSBVPPnxrFfiqzFq7HmkdBubImtxLzoZpyX54r\r\n7WFd6VL/aW6YCrRzda12oTovgYtHtFjrcUM=\r\n=4+lI\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"bjnstnkvc","email":"dev.bojan.stankovic@gmail.com"},"maintainers":[{"name":"bjnstnkvc","email":"dev.bojan.stankovic@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/alert_1.0.4_1678494135419_0.7797540657614819"},"_hasShrinkwrap":false},"1.0.5":{"name":"@bjnstnkvc/alert","version":"1.0.5","description":"Simple JavaScript Alert library.","main":"./lib/Alert.js","directories":{"lib":"lib"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/BJNSTNKVC/js-simple-alert-library.git"},"keywords":["js","alert"],"author":{"name":"Bojan Stankovic"},"license":"MIT","bugs":{"url":"https://github.com/BJNSTNKVC/js-simple-alert-library/issues"},"homepage":"https://github.com/BJNSTNKVC/js-simple-alert-library#readme","gitHead":"6eb1bd2d370baeea553869f856361848d54b92ad","_id":"@bjnstnkvc/alert@1.0.5","_nodeVersion":"16.13.1","_npmVersion":"9.6.6","dist":{"integrity":"sha512-gkAZZXaK1OETjfdpf0V/5IVAyYHz5K+hfXbcbNsUpGpvfDVks8MABY4abnxKNrtblaZAOXgk+xBEA2VIQqA4bQ==","shasum":"98281e65bf7e56ca801d04110ad15c31011fea4a","tarball":"https://registry.npmjs.org/@bjnstnkvc/alert/-/alert-1.0.5.tgz","fileCount":15,"unpackedSize":47963,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEDCoLZ/FupARIBTAJ9orb+WZNxuu+qAIgo/fGeisfaMAiBEu/otqS16BoaLrsB+fN9FRAwdK6nNUspL7mZ5Oi15rQ=="}]},"_npmUser":{"name":"bjnstnkvc","email":"dev.bojan.stankovic@gmail.com"},"maintainers":[{"name":"bjnstnkvc","email":"dev.bojan.stankovic@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/alert_1.0.5_1685356225917_0.16054717442340216"},"_hasShrinkwrap":false},"1.0.6":{"name":"@bjnstnkvc/alert","version":"1.0.6","description":"Simple JavaScript Alert library.","main":"./lib/Alert.js","directories":{"lib":"lib"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/BJNSTNKVC/js-simple-alert-library.git"},"keywords":["js","alert"],"author":{"name":"Bojan Stankovic"},"license":"MIT","bugs":{"url":"https://github.com/BJNSTNKVC/js-simple-alert-library/issues"},"homepage":"https://github.com/BJNSTNKVC/js-simple-alert-library#readme","gitHead":"5682c900c6c969c390ce5c8aad4b6a5b8863055a","_id":"@bjnstnkvc/alert@1.0.6","_nodeVersion":"16.13.1","_npmVersion":"9.6.6","dist":{"integrity":"sha512-KcTfbaYIQTb/ZE4JP2jkUuS+mvAZzNwXcQKu80uXkTJy70s8YNNyJ0Wslvq+EShHpb6ELGK/+8sjfug8+AGsOw==","shasum":"9fddea997835ca1f823f068bab8d48c5ca8a05b8","tarball":"https://registry.npmjs.org/@bjnstnkvc/alert/-/alert-1.0.6.tgz","fileCount":15,"unpackedSize":48582,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDG5+LOlYkc0fzuEEG2A3AyZiZG1KpKxx3SyLUbJb+5CQIhANyNK3+dlG+wgqvlWqWSLFbedSAkh6x/f54zeif+6Zev"}]},"_npmUser":{"name":"bjnstnkvc","email":"dev.bojan.stankovic@gmail.com"},"maintainers":[{"name":"bjnstnkvc","email":"dev.bojan.stankovic@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/alert_1.0.6_1685359132702_0.7068973577108699"},"_hasShrinkwrap":false}},"time":{"created":"2023-03-10T23:52:02.457Z","1.0.0":"2023-03-10T23:52:02.683Z","modified":"2023-05-29T11:18:53.054Z","1.0.1":"2023-03-11T00:12:05.578Z","1.0.2":"2023-03-11T00:19:30.300Z","1.0.4":"2023-03-11T00:22:15.629Z","1.0.5":"2023-05-29T10:30:26.079Z","1.0.6":"2023-05-29T11:18:52.928Z"},"maintainers":[{"name":"bjnstnkvc","email":"dev.bojan.stankovic@gmail.com"}],"description":"Simple JavaScript Alert library.","homepage":"https://github.com/BJNSTNKVC/js-simple-alert-library#readme","keywords":["js","alert"],"repository":{"type":"git","url":"git+https://github.com/BJNSTNKVC/js-simple-alert-library.git"},"author":{"name":"Bojan Stankovic"},"bugs":{"url":"https://github.com/BJNSTNKVC/js-simple-alert-library/issues"},"license":"MIT","readme":"# Alert\r\n\r\nSimple JavaScript Alert library.\r\n\r\n## Installation & setup\r\n\r\n### NPM\r\n\r\nYou can install the package via npm:\r\n\r\n    npm install @bjnstnkvc/alert\r\n\r\n\r\nOnce the package has been installed, you can import it\r\nusing [import](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import) declaration:\r\n\r\n```js\r\nimport Alert from '@bjnstnkvc/alert'\r\n```\r\n\r\nAdditionally, you can import default library styles:\r\n\r\n```js\r\nimport '@bjnstnkvc/alert/src/alert.css'\r\n```\r\n\r\n### CDN\r\n\r\nYou can install the package via jsDelivr CDN:\r\n\r\n```html\r\n<script src=\"https://cdn.jsdelivr.net/npm/@bjnstnkvc/alert/lib/Alert.min.js\"></script>\r\n```\r\n\r\nAdditionally, you can import default library styles:\r\n\r\n```html\r\n<link rel=\"stylesheet\" href=\"https://cdn.jsdelivr.net/npm/@bjnstnkvc/alert/src/alert.css\">\r\n```\r\n\r\n## Usage\r\n\r\nOnce imported, you can make an AJAX request using the following methods:\r\n\r\n```js\r\nnew Alert({ config })\r\n```\r\n\r\n## Config\r\n\r\nIn order to create an Alert, you need to pass `config` object. The Config object consists of the following properties:\r\n\r\n#### container\r\n\r\nA string representing the DOM element to which Alert will be appended (defaults to `body`):\r\n\r\n```js\r\nnew Alert({\r\n    container: '.element',\r\n})\r\n````\r\n\r\n#### type\r\n\r\nA string representing the type of Alert. The library comes with 4 predefined types (`success`, `error`, `warning`\r\nand `info`)\r\n\r\n```js\r\nnew Alert({\r\n    type: 'success',\r\n    ...\r\n})\r\n````\r\n\r\nDepending on the type of choice, an Alert will look as follows:\r\n\r\n| success                                   | error                                 | warning                                   | info                                |\r\n|-------------------------------------------|---------------------------------------|-------------------------------------------|-------------------------------------|\r\n| ![Success Alert](docs/images/Success.png) | ![Error Alert](docs/images/Error.png) | ![Warning Alert](docs/images/Warning.png) | ![Info Alert](docs/images/Info.png) |\r\n\r\n#### message\r\n\r\nA string representing an Alert message:\r\n\r\n```js\r\nnew Alert({\r\n    type: 'error',\r\n    message: 'Something went wrong!', \r\n    ...\r\n})\r\n````\r\n\r\nYou can also pass HTML to the property: \r\n\r\n```js\r\nnew Alert({\r\n    type: 'error',\r\n    message: '<strong>Oops!</strong> Something went wrong.' ,\r\n    ...\r\n})\r\n````\r\n\r\nExample above would generate the following Alert:\r\n\r\n![Error Alert with HTML message](docs/images/HTML%20Message.png)\r\n\r\n#### duration\r\n\r\nAn integer value that determines for how long an Alert should be displayed (defaults to `5` seconds).\r\n\r\n```js\r\nnew Alert({\r\n    duration: 10,\r\n    ...\r\n})\r\n````\r\n\r\n#### expires\r\n\r\nA boolean value that determines whether an Alert should expire/auto-close (defaults to `true`).\r\n\r\n```js\r\nnew Alert({\r\n    expires: false,\r\n    ...\r\n})\r\n````\r\n\r\n#### info\r\n\r\nIf passed as `boolean`, this property determines whether an Alert should have an info icon (defaults to `true`):\r\n\r\n```js\r\nnew Alert({\r\n    type: 'success',\r\n    message: 'Payment completed!',\r\n    info: false,\r\n    ...\r\n})\r\n````\r\nExample above would generate the following Alert:\r\n\r\n![Alert without HTML info icon](docs/images/Without%20Info%20Icon.png)\r\n\r\nYou can pass an HTML string, which will then be rendered instead of a default icon:\r\n\r\n```js\r\nnew Alert({\r\n    type: 'success',\r\n    message: 'Payment completed!',\r\n    info: '<i class=\"far fa-credit-card\"></i>',\r\n    ...\r\n})\r\n````\r\n\r\nExample above would generate the following Alert:\r\n\r\n![Alert with HTML info icon](docs/images/HTML%20Info%20Icon.png)\r\n\r\n> **Note:** Example above uses [FontAwesome](https://fontawesome.com/) in order to display the icon which needs to be imported.  \r\n\r\n#### close\r\n\r\nIf passed as `boolean`, this property determines whether an Alert should have a close icon (defaults to `true`):\r\n\r\n```js\r\nnew Alert({\r\n    type: 'info',\r\n    message: 'Profile updated!',\r\n    close: false,\r\n    ...\r\n})\r\n````\r\nExample above would generate the following Alert:\r\n\r\n![Alert without HTML close icon](docs/images/Without%20Close%20Icon.png)\r\n\r\nYou can pass an HTML string, which will then be rendered instead of a default icon:\r\n\r\n```js\r\nnew Alert({\r\n    type: 'info',\r\n    message: 'Profile updated!',\r\n    icon: '<i class=\"far fa-times-circle\"></i>',\r\n    ...\r\n})\r\n````\r\n\r\nExample above would generate the following Alert:\r\n\r\n![Alert with HTML close icon](docs/images/HTML%20Close%20Icon.png)\r\n\r\n> **Note:** Example above uses [FontAwesome](https://fontawesome.com/) in order to display the icon which needs to be imported.\r\n\r\n#### withProgress\r\n\r\nA boolean value which determines whether an Alert should have a progress bar (defaults to `false`):\r\n\r\n```js\r\nnew Alert({\r\n    type: 'info',\r\n    message: 'Verification email sent!',\r\n    withProgress: true\r\n})\r\n````\r\n\r\nExample above would generate the following Alert:\r\n\r\n![Alert with Progress Bar](docs/images/Progress%20Bar.png)\r\n\r\n## Customization\r\n\r\n#### colors\r\n\r\nAs mentioned in a [type](#type) section, the library comes with 4 predefined types (`success`, `error`, `warning` and `info`). \r\n\r\nIn case you would like to change the color pallet, you have 2 options:\r\n\r\n1. Change the color by redefining CSS variables:\r\n\r\n```css\r\n:root {\r\n    --alert-success : rgba(118, 189, 87, 1);\r\n    --alert-error   : rgba(214, 45, 48, 1);\r\n    --alert-warning : rgba(238, 146, 19, 1);\r\n    --alert-info    : rgba(63, 175, 239, 1);\r\n}\r\n```\r\n\r\n2. Change the color by setting redefining CSS classes:\r\n\r\n```css\r\n.alert-success {\r\n    color : rgba(118, 189, 87, 1);\r\n}\r\n\r\n.alert-error {\r\n    color : rgba(214, 45, 48, 1);\r\n}\r\n\r\n.alert-warning {\r\n    color : rgba(238, 146, 19, 1);\r\n}\r\n\r\n.alert-info {\r\n    color : rgba(63, 175, 239, 1);\r\n}\r\n```\r\n\r\n#### types\r\n\r\nYou can set your own Alert types, simply by passing it to the constructor. The library will dynamically create a CSS class when generating an Alert.\r\n\r\n\r\n```js\r\nnew Alert({\r\n    type: 'emergency',\r\n    ...\r\n})\r\n````\r\n\r\nExample above would generate the following HTML class:\r\n\r\n```html\r\n<div class=\"alert alert-emergency alert-is-open\" role=\"alert\">\r\n    ...\r\n</div>\r\n```\r\n\r\n#### styles\r\n\r\nAlert is made of following CSS classes:\r\n\r\n1. **alert** - Alert container.\r\n2. **alert__info** - Alert Info icon element. \r\n3. **alert__message** - Alert Message element.\r\n4. **alert__close** - Alert Close icon element.\r\n5. **alert__progress** - Alert Progress Bar element.\r\n6. **alert-is-open** - Class that's utilized when the Alert is open.\r\n7. **alert-is-closed** - Class that's utilized prior to Alert being closed.\r\n\r\nFeel free to redeclare these classes in your own CSS files and overwrite their properties in order to customize the Alert to your liking.\r\n","readmeFilename":"README.md"}