{"_id":"@augt/p14-modal","_rev":"6-63d57a8f67fae24e7e9436a4a55af9f7","name":"@augt/p14-modal","description":"A simple React component pop-in modal that either shows an error message or a confirmation message.","dist-tags":{"latest":"1.0.1"},"versions":{"0.0.1":{"name":"@augt/p14-modal","version":"0.0.1","keywords":["react","reactjs","react-component","modal"],"author":{"name":"augt"},"license":"MIT","_id":"@augt/p14-modal@0.0.1","maintainers":[{"name":"augt","email":"augu.tacquet@gmail.com"}],"homepage":"https://github.com/augt/p14-modal#readme","bugs":{"url":"https://github.com/augt/p14-modal/issues"},"dist":{"shasum":"05eb393df36ff0d68987c6e53226e098bce5432f","tarball":"https://registry.npmjs.org/@augt/p14-modal/-/p14-modal-0.0.1.tgz","fileCount":5,"integrity":"sha512-WVd0db8zTPsGLJn0fwYDTd1ypW8cyusPvh0WKsOgRa3mcC4sxcCfhAH8PdaWO0Y7aKlWSUn0VQXvzfxgToW/FA==","signatures":[{"sig":"MEQCIFrwhPdbtowyFRPM4ZWrz7TJCwoXIQfYLpEQ2DFt1LcNAiA0+k+5HRh/Bqjydf/dAyyqAQoZKzud5w2QtJnTCa5qAg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":5119},"main":"dist/index.js","module":"dist/index.js","gitHead":"c02da38973d1f0e10119420b84527235eaf6e88f","private":false,"scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"rm -rf dist && NODE_ENV=production babel src --out-dir dist --copy-files"},"_npmUser":{"name":"augt","email":"augu.tacquet@gmail.com"},"repository":{"url":"git+https://github.com/augt/p14-modal.git","type":"git"},"_npmVersion":"10.2.4","description":"A simple React component pop-in modal that either shows an error message or a confirmation message.","directories":{},"_nodeVersion":"20.11.1","_hasShrinkwrap":false,"devDependencies":{"react":"^18.2.0","react-dom":"^18.2.0","@babel/cli":"^7.24.5","@babel/core":"^7.24.5","@babel/preset-env":"^7.24.5","styled-components":"5.3.11","@babel/preset-react":"^7.24.1"},"peerDependencies":{"react":"^18.2.0","react-dom":"^18.2.0","styled-components":"5.3.11"},"_npmOperationalInternal":{"tmp":"tmp/p14-modal_0.0.1_1714926351461_0.9636700650760484","host":"s3://npm-registry-packages"}},"0.0.2":{"name":"@augt/p14-modal","version":"0.0.2","keywords":["react","reactjs","react-component","modal"],"author":{"name":"augt"},"license":"MIT","_id":"@augt/p14-modal@0.0.2","maintainers":[{"name":"augt","email":"augu.tacquet@gmail.com"}],"homepage":"https://github.com/augt/p14-modal#readme","bugs":{"url":"https://github.com/augt/p14-modal/issues"},"dist":{"shasum":"4b410adb70c4a9863fa56de51e784375ca45eada","tarball":"https://registry.npmjs.org/@augt/p14-modal/-/p14-modal-0.0.2.tgz","fileCount":5,"integrity":"sha512-2arGOlj4+TGqRhxnlEe/kFiwWNmAYDn+hrLIpLzL6Ds1hrwmGwNCx4wZETKWX4EGh4wPlr6LtFIDWTjKFT82Eg==","signatures":[{"sig":"MEUCIQC9ihybmmzScgN90Nf6m8fX7FIkzdIqBUbwiERSpptpPgIgPgnUIaL+JS8F76HAEMpMS2cWm7P28wzZXHAv+k4GNRA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":5256},"main":"dist/index.js","module":"dist/index.js","gitHead":"c02da38973d1f0e10119420b84527235eaf6e88f","private":false,"scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"rm -rf dist && NODE_ENV=production babel src --out-dir dist --copy-files"},"_npmUser":{"name":"augt","email":"augu.tacquet@gmail.com"},"repository":{"url":"git+https://github.com/augt/p14-modal.git","type":"git"},"_npmVersion":"10.2.4","description":"A simple React component pop-in modal that either shows an error message or a confirmation message.","directories":{},"_nodeVersion":"20.11.1","_hasShrinkwrap":false,"devDependencies":{"react":"^18.2.0","react-dom":"^18.2.0","@babel/cli":"^7.24.5","@babel/core":"^7.24.5","@babel/preset-env":"^7.24.5","styled-components":"5.3.11","@babel/preset-react":"^7.24.1"},"peerDependencies":{"react":"^18.2.0","react-dom":"^18.2.0","styled-components":"5.3.11"},"_npmOperationalInternal":{"tmp":"tmp/p14-modal_0.0.2_1715333639918_0.16506333120810202","host":"s3://npm-registry-packages"}},"0.0.3":{"name":"@augt/p14-modal","version":"0.0.3","keywords":["react","reactjs","react-component","modal"],"author":{"name":"augt"},"license":"MIT","_id":"@augt/p14-modal@0.0.3","maintainers":[{"name":"augt","email":"augu.tacquet@gmail.com"}],"homepage":"https://github.com/augt/p14-modal#readme","bugs":{"url":"https://github.com/augt/p14-modal/issues"},"dist":{"shasum":"83a7a6538f3a3d2f4ed4efa20f67fd50f5c271d9","tarball":"https://registry.npmjs.org/@augt/p14-modal/-/p14-modal-0.0.3.tgz","fileCount":5,"integrity":"sha512-ezNoH+FG5LVWY7OMEboy8fl/vjgKtIwiwRIw7cB4gxMMKnqAeIxxgq4513W20ls64BAajink5LGtR4S8ZT2Z1w==","signatures":[{"sig":"MEUCIQDHin6tqn2085vQpPYBHV+9flKUiHqP1KV2OG/JKVALWAIgDRjgVPz3KCpFKrFJh6gfqhC4sJnUgf3abnmk5rQFs7k=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":5267},"main":"dist/index.js","module":"dist/index.js","gitHead":"41f1ed8eafdbf2461cb24b2626a563d104f1142d","private":false,"scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"rm -rf dist && NODE_ENV=production babel src --out-dir dist --copy-files"},"_npmUser":{"name":"augt","email":"augu.tacquet@gmail.com"},"repository":{"url":"git+https://github.com/augt/p14-modal.git","type":"git"},"_npmVersion":"10.2.4","description":"A simple React component pop-in modal that either shows an error message or a confirmation message.","directories":{},"_nodeVersion":"20.11.1","_hasShrinkwrap":false,"devDependencies":{"react":"^18.2.0","react-dom":"^18.2.0","@babel/cli":"^7.24.5","@babel/core":"^7.24.5","@babel/preset-env":"^7.24.5","styled-components":"5.3.11","@babel/preset-react":"^7.24.1"},"peerDependencies":{"react":"^18.2.0","react-dom":"^18.2.0","styled-components":"5.3.11"},"_npmOperationalInternal":{"tmp":"tmp/p14-modal_0.0.3_1715334407833_0.8971775912273052","host":"s3://npm-registry-packages"}},"1.0.0":{"name":"@augt/p14-modal","version":"1.0.0","keywords":["react","reactjs","react-component","modal"],"author":{"name":"augt"},"license":"MIT","_id":"@augt/p14-modal@1.0.0","maintainers":[{"name":"augt","email":"augu.tacquet@gmail.com"}],"homepage":"https://github.com/augt/p14-modal#readme","bugs":{"url":"https://github.com/augt/p14-modal/issues"},"dist":{"shasum":"c2012e5e1710b239a2014ad28c729f0053dd2e1a","tarball":"https://registry.npmjs.org/@augt/p14-modal/-/p14-modal-1.0.0.tgz","fileCount":5,"integrity":"sha512-qQpvugRdCdvPYZmrbL8tug3QZhD+G5kwS7vybUrR74WjLAp/Af3+NcBJcfU2Yy/ayvTM3IykzvzAxuVmu7TiLw==","signatures":[{"sig":"MEQCICMp6iVwa1jUJw/e+qSB5knDFgVJ74mOiN/bjmG/X78UAiBcCdsx/+avKTIEoqYrQVJbRejL8UIIz8KFufbHVorDWw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":5268},"main":"dist/index.js","module":"dist/index.js","gitHead":"8407b232300130e700cd6dc5f762f6cc72da6cae","private":false,"scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"rm -rf dist && NODE_ENV=production babel src --out-dir dist --copy-files"},"_npmUser":{"name":"augt","email":"augu.tacquet@gmail.com"},"repository":{"url":"git+https://github.com/augt/p14-modal.git","type":"git"},"_npmVersion":"10.2.4","description":"A simple React component pop-in modal that either shows an error message or a confirmation message.","directories":{},"_nodeVersion":"20.11.1","_hasShrinkwrap":false,"devDependencies":{"react":"^18.2.0","react-dom":"^18.2.0","@babel/cli":"^7.24.5","@babel/core":"^7.24.5","@babel/preset-env":"^7.24.5","styled-components":"5.3.11","@babel/preset-react":"^7.24.1"},"peerDependencies":{"react":"^18.2.0","react-dom":"^18.2.0","styled-components":"5.3.11"},"_npmOperationalInternal":{"tmp":"tmp/p14-modal_1.0.0_1715335672970_0.6393878053525244","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"@augt/p14-modal","version":"1.0.1","author":{"name":"augt"},"description":"A simple React component pop-in modal that either shows an error message or a confirmation message.","keywords":["react","reactjs","react-component","modal"],"license":"MIT","private":false,"main":"dist/index.js","module":"dist/index.js","repository":{"type":"git","url":"git+https://github.com/augt/p14-modal.git"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"rm -rf dist && NODE_ENV=production babel src --out-dir dist --copy-files"},"peerDependencies":{"react":"^18.2.0","react-dom":"^18.2.0","styled-components":"5.3.11"},"devDependencies":{"@babel/cli":"^7.24.5","@babel/core":"^7.24.5","@babel/preset-env":"^7.24.5","@babel/preset-react":"^7.24.1","react":"^18.2.0","react-dom":"^18.2.0","styled-components":"5.3.11"},"_id":"@augt/p14-modal@1.0.1","gitHead":"8407b232300130e700cd6dc5f762f6cc72da6cae","bugs":{"url":"https://github.com/augt/p14-modal/issues"},"homepage":"https://github.com/augt/p14-modal#readme","_nodeVersion":"20.11.1","_npmVersion":"10.2.4","dist":{"integrity":"sha512-maqj9RWHGCRDjoHWBv8GvOyxsos2Xsdd9co2KsGckbc9bWKdnIQ70lfv5y0mjxYBw/LVfvJnBUxsPdjQwskqOw==","shasum":"c1aa1f6ec591d47fce862290c4629af597eb254e","tarball":"https://registry.npmjs.org/@augt/p14-modal/-/p14-modal-1.0.1.tgz","fileCount":5,"unpackedSize":5308,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIB7+Qp8P/2TGhpGi2SM6x2gGiAG7F7uXkMZHXbouWKtrAiEAtJ/FqlRHB96KWf2RWdf05fD1IG/ufRl+95nnmk5ZsHs="}]},"_npmUser":{"name":"augt","email":"augu.tacquet@gmail.com"},"directories":{},"maintainers":[{"name":"augt","email":"augu.tacquet@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/p14-modal_1.0.1_1717168677863_0.8221782186417947"},"_hasShrinkwrap":false}},"time":{"created":"2024-05-05T16:25:51.357Z","modified":"2024-05-31T15:17:58.184Z","0.0.1":"2024-05-05T16:25:51.640Z","0.0.2":"2024-05-10T09:34:00.071Z","0.0.3":"2024-05-10T09:46:47.981Z","0.0.4":"2024-05-10T09:50:58.717Z","1.0.0":"2024-05-10T10:07:53.125Z","1.0.1":"2024-05-31T15:17:58.018Z"},"maintainers":[{"name":"augt","email":"augu.tacquet@gmail.com"}],"author":{"name":"augt"},"repository":{"type":"git","url":"git+https://github.com/augt/p14-modal.git"},"keywords":["react","reactjs","react-component","modal"],"license":"MIT","homepage":"https://github.com/augt/p14-modal#readme","bugs":{"url":"https://github.com/augt/p14-modal/issues"},"readme":"# p14-modal\n\nA simple React component pop-in modal that either shows an error message or a confirmation message.\n\n## Installation\n\nIt is recommanded to use Node.js v18 or newer.\nAt the root of your React project, run the following command in your terminal to install the module:\n\n`npm install @augt/p14-modal`\n\n## Usage\n\nUse it in your app :\n\n```js\nimport { useState } from \"react\";\nimport { Modal } from \"@augt/p14-modal\";\n\nfunction Component() {\n  const [showModal, setShowModal] = useState(false);\n  const errorMessage = \"This is an error.\";\n  return (\n    <>\n      {showModal && (\n        <Modal\n          onClose={() => setShowModal(false)}\n          errorMessage={errorMessage}\n          confirmationMessage=\"Success !\"\n        />\n      )}\n    </>\n  );\n}\n\nexport default Component;\n```\n\n## Props\n\nCommon props you may want to specify include:\n\n- `onClose` : A function that gets executed when the user clicks on the close button.\n- `errorMessage` : The error message that shows up on the modal.\n- `confirmationMessage` : The confirmation message that shows up on the modal.\n\n## License\n\nMIT © [augt](https://github.com/augt)\n","readmeFilename":"README.md"}