{"_id":"@coop/component-popup-box","_rev":"4-f662da1419fbaa2b2966edeae45db2ba","name":"@coop/component-popup-box","dist-tags":{"latest":"1.0.4"},"versions":{"1.0.1":{"name":"@coop/component-popup-box","version":"1.0.1","description":"Popup box alternative to system dialogues","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/theisof/coop-trolley.git"},"author":{"name":"theiscoop"},"license":"ISC","dependencies":{"@coop/config":"^1.0.3"},"bugs":{"url":"https://github.com/theisof/coop-trolley/issues"},"homepage":"https://github.com/theisof/coop-trolley#readme","_id":"@coop/component-popup-box@1.0.1","_npmVersion":"5.6.0","_nodeVersion":"9.3.0","_npmUser":{"name":"theiscoop","email":"theis.othmar.froehlich@coop.dk"},"dist":{"integrity":"sha512-EYKwGr6dR8JdRz4+eBi5Oc5mdPlJSkGLHDHTcrW8k0uxmqhZa0Ux347wLg8kSVqJom6H33AHRZMeiLa9ohErLg==","shasum":"d803b041a53dabf60a41711f15a7bad276a6c9ac","tarball":"https://registry.npmjs.org/@coop/component-popup-box/-/component-popup-box-1.0.1.tgz","fileCount":8,"unpackedSize":688887,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa6wqcCRA9TVsSAnZWagAAdK0P/1hNc9wufOaQkzJDbVWQ\n356a/gPIVGZ19kUdqL62Cv4R/H+UjZTyVZI6OQVQmP3beeBA4wOs1NO7cc4f\niapu7iuXv3qiprz/cgmGWAyAx1cmDj+uBvWBCod+nElgtbMQ92puw/ZG4+gR\nHU2NnLk5fIQs/rXKbYiWeVXQ3GtnyO68JHoz1I4xhxbmwP2p0DzRcUB3p1W+\nT00DmgTtT25QpcrqO2JUBu4C/767iicNSIfInp6wSZXUOe6h6guw33dzcRSF\nov+FB65NGmLEi3ak9q0bkO4W1f3nBvG7uEgc2C7KW441XVVet9HTQvUi0Fz2\nPYAtAENgBFiqli4ApH7BUyhKJWVLR6DoeB89Pgns4lNohVIV2CWixYACur5d\nOp8UtAoUWg1cKfSqXFIEbL30w1XuF+ft0A6/j6y3Y2epuhCYh6YdlShfBskj\nPygSdRl3PCkOkBDUzHaoTo5nTggGrvhlOAHrD0NPPuQdVkvHDpVCQMFmmhf4\ni/GzivuTrnMAAaNvIuTlz5w3fG6Fp5O9eCOIui5B8Nf9rRsaijmlKrNvBrHy\nkkDHn0RQODKoVu5q301ExnLPW1tgSm3WgO7mwrO/aMFpU1jWw9csZQlEmZKA\nQDIXXyrqcuRtFqtAx0V93XwOjAa6MExRzOLD7u+WkqUAN4Fi9KpLVHSUzyKC\n+my5\r\n=z4nB\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC1vel73t02xiZDly5mvpZ3IY9/8Y38gekINmf0Ml/71QIgWVSntNJjsBbAvRtBUVpDLFzYXGhUZJbYh4Tvk4mqhAg="}]},"maintainers":[{"name":"theiscoop","email":"theis.othmar.froehlich@coop.dk"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/component-popup-box_1.0.1_1525353114994_0.09458771353796669"},"_hasShrinkwrap":false},"1.0.2":{"name":"@coop/component-popup-box","version":"1.0.2","description":"Popup box alternative to system dialogues","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/theisof/coop-trolley.git"},"author":{"name":"theiscoop"},"license":"ISC","dependencies":{"@coop/config":"^1.0.3"},"bugs":{"url":"https://github.com/theisof/coop-trolley/issues"},"homepage":"https://github.com/theisof/coop-trolley#readme","_id":"@coop/component-popup-box@1.0.2","_npmVersion":"5.6.0","_nodeVersion":"9.3.0","_npmUser":{"name":"theiscoop","email":"theis.othmar.froehlich@coop.dk"},"dist":{"integrity":"sha512-zsKdw54VX5wMqxHeFdJ9CWDbpzlg4ykL5Wo7QPTm8MP1/qTE+IezlpCxfiJ/3oh/0NXxQK2vfTJKr1BkKvvCOQ==","shasum":"933a3abf1459a6dac8671e3e5efd80b648722b4e","tarball":"https://registry.npmjs.org/@coop/component-popup-box/-/component-popup-box-1.0.2.tgz","fileCount":8,"unpackedSize":688794,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa7CM0CRA9TVsSAnZWagAATCIP/3rR7lqwNXf136Z7cbcn\n4X9Nq1ph70fgJoZokvdu9z22KqgoZFTTO/Bahi4+oVhrn1jMXue6fA4gfqud\niwYc9WaiuehWmYeO2jk9khi8dlgBoVgfM5rlkIFZE6ek5+/mFEpCXnj/Iy44\n0skvjzR0Hr0ewcdjvfzt/X6cKcX4F5PUzqZirhgdeYz5Glzno2Qjxd8N6Utc\nm/7Cdmmk0LW/saAmTh8bw7MPlELTie0RoXC2UNxwbnyka799xt42CcaGXri1\nwtAPhQOU0Q/pOj9/BYJbLVc/ZAXm1+10wNCgK6PBVGecZPyCHePh1nbFjtgH\ngWaHK+HIzHOhz4E6ivI2wXAVngqb0OnI8chK4VMTZLG/zSxni7eLHb7Q9/9O\nFdq5IXjzN2NbkpCeGl0eYgFkdfGyaKHvz+2LIaVMEjUdCo8vhqCeB6j9AeuP\nrAqLS5VBE6omKeOBJleXNGdMTvhlQ3ocum1fIwIvxpiACWTPzFr3HQ9zP51N\nchpc92jn9mWQQwQLFI0M1o4rJs3ynBb4O4Jwa1Decv88L++O9JnoHLSLdRvH\npdF/mujnKy2Pn5jAdS5iPN6xy3oBpcDuvIcWGilOqm+A0FnbxWzCBqBx57F5\nb6/L5sRfurHIWc0WzlVm/rKH5NKBPnMVCDOwhOQhX5Z9T24q9Hi4aPgSS/Ij\nJdPV\r\n=kSAO\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCnVi19x/4+gugSU9TkFQJo26+f1v95FW4avV451WTz/gIhAKryUFPZ6VGenVRHpwdCr7wrvXEoG27QPU8bHnjEhSUC"}]},"maintainers":[{"name":"theiscoop","email":"theis.othmar.froehlich@coop.dk"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/component-popup-box_1.0.2_1525424948185_0.31304400366698504"},"_hasShrinkwrap":false},"1.0.3":{"name":"@coop/component-popup-box","version":"1.0.3","description":"Popup box alternative to system dialogues","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/theisof/coop-trolley.git"},"author":{"name":"theiscoop"},"license":"ISC","dependencies":{"@coop/config":"^1.0.3"},"bugs":{"url":"https://github.com/theisof/coop-trolley/issues"},"homepage":"https://github.com/theisof/coop-trolley#readme","_id":"@coop/component-popup-box@1.0.3","_npmVersion":"5.6.0","_nodeVersion":"9.3.0","_npmUser":{"name":"theiscoop","email":"theis.othmar.froehlich@coop.dk"},"dist":{"integrity":"sha512-GFfLaKUgwz4JTE1Z+xvt7kzEZSfX52eTvIuaT7v0K5wboG8Rw7Cn6pSwFlL8NLZj6eakSW7lGRrJkiCZw3H96g==","shasum":"0ec96cf19da835fc68e00d4452591cff94eeabfb","tarball":"https://registry.npmjs.org/@coop/component-popup-box/-/component-popup-box-1.0.3.tgz","fileCount":8,"unpackedSize":16241,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa7CWSCRA9TVsSAnZWagAA1KUQAJb0CFd8fVUL/rer4iGi\nbNO76Ny4qRlMzwBwYrKEXClc8FZptTLrrHKW2zC7uYQ+q8+m82dQqTP9xoIr\niJyhNUKOY6MxkMLem6iienVmQ+C8q6arcJ07GGR1SQ3QR3xCoi2Tfya7UKnK\nGl4BHCOKOBQUtbUZW0tRhg3FB1of4HWlyw0bliCG9Osz5WYHQRJjJWg+uGzu\ns6gj8ZfOxH+f8s1RyCT0vFE3+VQ1mVUbwTe0Uz1XtDM4cP1b0yjawwthkSGy\nFc3MHmq22EW6pvcu2N2feX3NR5sKLkj227yQdlagVusBPG1vV8t78+WSTMQb\n5VqMyqv38Jm/1hZSAUYUhe+vCCTGSKN3buxem6G30vSyGD3xhJn8RCdCgyjO\nzlTZiNpnGPfg3lUFSuNvsT6oNvE1L4zNFt/dU+0H/PO+RMaI6KXj/4/8+hli\nyG6PgsV2Nwkhrt2OgK80qKHuiw20/KEE1fwcYIdFukX0B6tiWe8DspyG8664\nA8fKZwix3vxkoTam2SzrmiHwxJgcltGf1SGWs705AaugbJaQaJqNBOmHRmUu\nXzmJeUGHTbhxLdKN4KQ6Thq+IWHVrnhV1SkVxfb9CDYLm5ajnCQdR3vx3HAE\nOvil3OanHn2m6hW55l2aX0PFv/0Ge8Myf1uhui0C/L8zBGBiq8R+aCsAW6RI\nZW6F\r\n=1rik\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGlP2lg+txAoMcXLiyuvaESvrjODXAz/hhaPK2vCQGbbAiEAuge+vF9vUl2izGhdCoAWqSscsNK8nCtxL1BIGRNGL5s="}]},"maintainers":[{"name":"theiscoop","email":"theis.othmar.froehlich@coop.dk"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/component-popup-box_1.0.3_1525425553960_0.9227716817197034"},"_hasShrinkwrap":false},"1.0.4":{"name":"@coop/component-popup-box","version":"1.0.4","description":"Popup box alternative to system dialogues","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/theisof/coop-trolley.git"},"author":{"name":"theiscoop"},"license":"ISC","dependencies":{"@coop/config":"^1.0.3"},"bugs":{"url":"https://github.com/theisof/coop-trolley/issues"},"homepage":"https://github.com/theisof/coop-trolley#readme","_id":"@coop/component-popup-box@1.0.4","_npmVersion":"6.4.1","_nodeVersion":"9.3.0","_npmUser":{"name":"theiscoop","email":"theis.othmar.froehlich@coop.dk"},"dist":{"integrity":"sha512-QR6/IIBWPdanyNO2cLO8Usz7VIpxZkgtybDm9wuSZOsuWljbw/XeyrxqcaYSOt/9Q+bipCtmmbQHcuyVAGPBlg==","shasum":"b5cc269cf1e49c3df5f9c81283f39f7436e0ef80","tarball":"https://registry.npmjs.org/@coop/component-popup-box/-/component-popup-box-1.0.4.tgz","fileCount":8,"unpackedSize":17295,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcF6ujCRA9TVsSAnZWagAAmA0QAIMv4gYk+SX0PPaTrgwK\nAobwyLEStEp3jVfgSST2R9aHFBLI7n1DCGsekK1Virzg8SMfilCz1xXtSgYp\nNsNmfQrl/rCbzU1KY6mlIMjjhrNB0NhvWrcJaUS7cWdKbR8IcMJdeH4KuNg2\nIlxAxW9JdTm5DiNP/I0rYZceaE1rHyO2H7NXBELRzk3OeJ9UR2yBAQI3VjyS\nf9RMD+oUrEjdYAMRDRID/Pmdx7txoKdbdtPncnuyrdB68uc8G6NcyH3ZIZXg\nENpTy0MpTK2rWv86Shp2STyGCQAoKIk3BGOsx27v6PZkZO1ZXGLwAp822MVG\n931j9o3q0pDa8+44yhKvNsu5NR6AgzAm0KYnMpuYQK5OT8meZl3Rtl6HC9zu\n8E83EbNJvOBiANlvdyEvEOjg1KczgMQQ8lg/pcv/Py57r3oN0g6xAwmAgw6N\nwL/w5JhdCmrp4PnfzuED9UyLRZWI5cTMCHImRg9Swh1+i70qnyMRkl+DVeVD\niyxo8CAF3oI9sx15uayLTTuQgCIb9QdZs8TyYP0Tx0cANfj5A0RmhvjyDqJp\n7Z8Sc4C6wdT+yUp1SxEMkKMKI4Dn+63AljQfLqaf8K3Y4pgCQILWmca6rCfs\n0uS0Z1HjZqvSwN4f7iRWVuxKg5P+tYMeioV1gGmshwV0dzbcDylDrXToaHCP\nItqS\r\n=v6l5\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBue/8jU2456J4kXok5AgKWlkzuPHxFbikxnynuAgZJ8AiEAgAolce40I4dLocUKHOV+8TMv+oDmH5odPHPdmFYnpKc="}]},"maintainers":[{"name":"theiscoop","email":"theis.othmar.froehlich@coop.dk"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/component-popup-box_1.0.4_1545055139401_0.11476276607358948"},"_hasShrinkwrap":false}},"time":{"created":"2018-05-03T13:11:54.937Z","1.0.1":"2018-05-03T13:11:55.075Z","modified":"2022-04-05T01:17:19.126Z","1.0.2":"2018-05-04T09:09:08.287Z","1.0.3":"2018-05-04T09:19:14.031Z","1.0.4":"2018-12-17T13:58:59.521Z"},"maintainers":[{"name":"theiscoop","email":"theis.othmar.froehlich@coop.dk"}],"description":"Popup box alternative to system dialogues","homepage":"https://github.com/theisof/coop-trolley#readme","repository":{"type":"git","url":"git+https://github.com/theisof/coop-trolley.git"},"author":{"name":"theiscoop"},"bugs":{"url":"https://github.com/theisof/coop-trolley/issues"},"license":"ISC","readme":"# DEPRECATED - Coop Popup Box\n\n## React component\n\nThe popup box is an alternative to sytem dialogues like `alert()` and `confirm()` and can be used anywhere in the application layers.\n\nThe component renders outside the main React app, and is destroyed entirely on close. Hence, use like a function call - not jsx.\n\nPass an object with title, text and an actions array like below.\n\n```\n  import '@coop/component-popup-box/styles.css' // import once somewhere\n  import popupBox from '@coop/component-popup-box'\n\n  popupBox({\n    title: 'Test',\n    text: 'Testing the popup box with a range of random options',\n    actions: [\n      {\n        text: 'Yes',\n        secondary: true,\n        callback: () => { alert('Clicked yes') }\n      },\n      {\n        text: 'No',\n        secondary: true,\n        callback: () => { alert('Clicked no') }\n      },\n      {\n        text: 'Cancel'\n      }\n    ]\n  })\n```\n\nOptionally omit `callback` if the action should do nothing (like cancel).\n\nThe `secodary` prop will apply the alternative button styling to the component.\n\n### Props\n\n| Property            | PropType         | Required | Default Value |\n| ------------------- | ---------------- | -------- | ------------- |\n| title               | string           | true     | -             |\n| text                | string           | false    | null          |\n| actions             | array            | true     | -             |\n| - text              | string           | true     | -             |\n| - callback          | function         | false    | null          |\n| - secondary         | bool             | false    | false         |\n\n\nPart of [Coop Trolley](https://github.com/theisof/coop-trolley)","readmeFilename":"README.md"}