{"_id":"@carole-rg/hr-modal-react","_rev":"7-0148ba75508563ede5452147f08e1ff7","name":"@carole-rg/hr-modal-react","dist-tags":{"latest":"1.0.6"},"versions":{"1.0.0":{"name":"@carole-rg/hr-modal-react","version":"1.0.0","keywords":["react","modal","component"],"author":{"name":"carole grellety"},"license":"MIT","_id":"@carole-rg/hr-modal-react@1.0.0","maintainers":[{"name":"carole-rg","email":"carole.rolland.grellety@gmail.com"}],"homepage":"https://github.com/carole-rg/hr-modal-react#readme","bugs":{"url":"https://github.com/CaroleGrllt/hr-modal-react/issues"},"dist":{"shasum":"41a7e0433e4303cd1ad7d6c008529a82eb4d5a7a","tarball":"https://registry.npmjs.org/@carole-rg/hr-modal-react/-/hr-modal-react-1.0.0.tgz","fileCount":8,"integrity":"sha512-A6yWSsuUuHY7vLPGgx05mVJ1JVy0ooLELA8cSAJXzATETlVvVeMQzRhc9evTRcSOsEVUqPQE+i1c7T49iDVwuw==","signatures":[{"sig":"MEUCIHHmztVg+twVh+9p9VR2tnR1LlLQlfiFUrN8zeQFjsBXAiEAsmi9QtSjgAPs3xeF6NYL5dhovpQH3V2w97YXtA9HYQM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":5223},"main":"dist/index.cjs","types":"dist/index.d.ts","module":"dist/index.mjs","source":"src/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","default":"./dist/index.mjs","require":"./dist/index.cjs"},"./styles.css":"./dist/Modal.css"},"gitHead":"0588cff17b5e55be1178dcec8341bcd37c6c6324","scripts":{"build":"microbundle --no-sourcemap --format cjs,esm --css-modules false","prepare":"npm run build","postbuild":"cp src/Modal.css dist/Modal.css || copy src\\Modal.css dist\\Modal.css","prepublishOnly":"npm run build"},"_npmUser":{"name":"carole-rg","email":"carole.rolland.grellety@gmail.com"},"repository":{"url":"git+https://github.com/CaroleGrllt/hr-modal-react.git","type":"git"},"_npmVersion":"10.8.2","description":"Un composant de modal simple pour React.","directories":{},"sideEffects":["**/*.css"],"_nodeVersion":"20.19.4","_hasShrinkwrap":false,"devDependencies":{"microbundle":"^0.15.1"},"peerDependencies":{"react":">=17","react-dom":">=17"},"_npmOperationalInternal":{"tmp":"tmp/hr-modal-react_1.0.0_1756031677287_0.01328100714274183","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@carole-rg/hr-modal-react","version":"1.0.1","keywords":["react","modal","component"],"author":{"name":"carole grellety"},"license":"MIT","_id":"@carole-rg/hr-modal-react@1.0.1","maintainers":[{"name":"carole-rg","email":"carole.rolland.grellety@gmail.com"}],"homepage":"https://github.com/carole-rg/hr-modal-react#readme","bugs":{"url":"https://github.com/CaroleGrllt/hr-modal-react/issues"},"dist":{"shasum":"ab2f731f54e3ffe780908c86956ede65faa9734d","tarball":"https://registry.npmjs.org/@carole-rg/hr-modal-react/-/hr-modal-react-1.0.1.tgz","fileCount":8,"integrity":"sha512-9M7vbKZsYvzRm7FKdRfgfqHZP17oZ7RIPfaTDZHMiLUkqmvKUTbPNl2sNtNUnbrihwg3xPh19j/PBkoXO7G+zQ==","signatures":[{"sig":"MEUCIDWE4pWk5tG/6YD11oYdqdHvXTR6jBEsH6k2eq9ifw56AiEA6td4rAgZ09QK/tSQyL+5ApKJjxI9jVwHxGKMAukM4Zo=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":5224},"main":"dist/index.cjs","types":"dist/index.d.ts","module":"dist/index.mjs","source":"src/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","default":"./dist/index.mjs","require":"./dist/index.cjs"},"./styles.css":"./dist/Modal.css"},"gitHead":"fff6f048c14853961d2c8c809cb3f429fc5b2ddf","scripts":{"build":"microbundle --no-sourcemap --format cjs,esm --css-modules false","prepare":"npm run build","postbuild":"cp src/Modal.css dist/Modal.css || copy src\\Modal.css dist\\Modal.css","prepublishOnly":"npm run build"},"_npmUser":{"name":"carole-rg","email":"carole.rolland.grellety@gmail.com"},"repository":{"url":"git+https://github.com/CaroleGrllt/hr-modal-react.git","type":"git"},"_npmVersion":"10.8.2","description":"Un composant de modal simple pour React.","directories":{},"sideEffects":["**/*.css"],"_nodeVersion":"20.19.4","_hasShrinkwrap":false,"devDependencies":{"microbundle":"^0.15.1"},"peerDependencies":{"react":">=17","react-dom":">=17"},"_npmOperationalInternal":{"tmp":"tmp/hr-modal-react_1.0.1_1756032554200_0.8671592154130265","host":"s3://npm-registry-packages-npm-production"}},"1.0.2":{"name":"@carole-rg/hr-modal-react","version":"1.0.2","keywords":["react","modal","component"],"author":{"name":"carole grellety"},"license":"MIT","_id":"@carole-rg/hr-modal-react@1.0.2","maintainers":[{"name":"carole-rg","email":"carole.rolland.grellety@gmail.com"}],"homepage":"https://github.com/carole-rg/hr-modal-react#readme","bugs":{"url":"https://github.com/CaroleGrllt/hr-modal-react/issues"},"dist":{"shasum":"ba19f395524d5337c2074f4bbf6d265d854faac9","tarball":"https://registry.npmjs.org/@carole-rg/hr-modal-react/-/hr-modal-react-1.0.2.tgz","fileCount":8,"integrity":"sha512-Qetx1AoKjf27JIvrbV2xwxNbMI5ryZFfqt8e3yZxKbtDb2gleXVFXa8jsWWy3cHkrS2q166Z99xIcrGo+f27Ug==","signatures":[{"sig":"MEYCIQCvRSYz+NdqhAkx/dMPuv4gwi31Zg3nZayfP4cA1FTZVQIhAPM9OXN+H6erPAiWFXr9jTEds2t9ASqe+wNl0cehUk0Y","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":5630},"main":"dist/index.cjs","types":"dist/index.d.ts","module":"dist/index.mjs","source":"src/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","default":"./dist/index.mjs","require":"./dist/index.cjs"},"./styles.css":"./dist/Modal.css"},"gitHead":"2671ce48ce154bd7f83c1552dcc835f06f5e6b2d","scripts":{"build":"microbundle --no-sourcemap --format cjs,esm --css-modules false --jsx React.createElement --jsxFragment React.Fragment","prepare":"npm run build","prepublishOnly":"npm run build"},"_npmUser":{"name":"carole-rg","email":"carole.rolland.grellety@gmail.com"},"repository":{"url":"git+https://github.com/CaroleGrllt/hr-modal-react.git","type":"git"},"_npmVersion":"10.8.2","description":"Un composant de modal simple pour React.","directories":{},"sideEffects":["**/*.css"],"_nodeVersion":"20.19.4","_hasShrinkwrap":false,"devDependencies":{"microbundle":"^0.15.1"},"peerDependencies":{"react":">=17","react-dom":">=17"},"_npmOperationalInternal":{"tmp":"tmp/hr-modal-react_1.0.2_1756032940573_0.8940886726083226","host":"s3://npm-registry-packages-npm-production"}},"1.0.3":{"name":"@carole-rg/hr-modal-react","version":"1.0.3","keywords":["react","modal","component"],"author":{"name":"carole grellety"},"license":"MIT","_id":"@carole-rg/hr-modal-react@1.0.3","maintainers":[{"name":"carole-rg","email":"carole.rolland.grellety@gmail.com"}],"homepage":"https://github.com/carole-rg/hr-modal-react#readme","bugs":{"url":"https://github.com/CaroleGrllt/hr-modal-react/issues"},"dist":{"shasum":"a929b248f85e8ee01c3813571cacbda4e05b80cf","tarball":"https://registry.npmjs.org/@carole-rg/hr-modal-react/-/hr-modal-react-1.0.3.tgz","fileCount":8,"integrity":"sha512-yiD0BTmpthArMcl7Iq/D1TUW5y/YgHqmXekvIAIfiWdFUJJAYdgCzzpvSwOpVCesO4V0AC27QVn9UfbNBd7h4Q==","signatures":[{"sig":"MEYCIQD3u4SkQpx8T8HfdBmC8ogRb4SYUwNbucxQWRExRyMDrwIhAJZGR7Kia6GuU+gjBW7WGLBDrhhiCuDZ80a7OMPofdlo","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":5630},"main":"dist/index.cjs","types":"dist/index.d.ts","module":"dist/index.mjs","source":"src/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","default":"./dist/index.mjs","require":"./dist/index.cjs"},"./styles.css":"./dist/Modal.css"},"gitHead":"fc0dbd96c5f17af87b846b1aad3d37a934d58885","scripts":{"build":"microbundle --no-sourcemap --format cjs,esm --css-modules false --jsx react","prepare":"npm run build","prepublishOnly":"npm run build"},"_npmUser":{"name":"carole-rg","email":"carole.rolland.grellety@gmail.com"},"repository":{"url":"git+https://github.com/CaroleGrllt/hr-modal-react.git","type":"git"},"_npmVersion":"10.8.2","description":"Un composant de modal simple pour React.","directories":{},"microbundle":{"jsx":"react"},"sideEffects":["**/*.css"],"_nodeVersion":"20.19.4","_hasShrinkwrap":false,"devDependencies":{"microbundle":"^0.15.1"},"peerDependencies":{"react":">=17","react-dom":">=17"},"_npmOperationalInternal":{"tmp":"tmp/hr-modal-react_1.0.3_1756033356687_0.030280161465979116","host":"s3://npm-registry-packages-npm-production"}},"1.0.4":{"name":"@carole-rg/hr-modal-react","version":"1.0.4","keywords":["react","modal","component"],"author":{"name":"carole grellety"},"license":"MIT","_id":"@carole-rg/hr-modal-react@1.0.4","maintainers":[{"name":"carole-rg","email":"carole.rolland.grellety@gmail.com"}],"homepage":"https://github.com/carole-rg/hr-modal-react#readme","bugs":{"url":"https://github.com/CaroleGrllt/hr-modal-react/issues"},"dist":{"shasum":"648d9d1a6153d99163633befa0cdfe794fb356c4","tarball":"https://registry.npmjs.org/@carole-rg/hr-modal-react/-/hr-modal-react-1.0.4.tgz","fileCount":8,"integrity":"sha512-vdZi0krQkYoHFQ9NOGAQ5Obg/wyclfWAPZs2Dvt7x2d92QEQGkWOiGfQz7UF21D33S5FDG3kDCSdczDe/++Oyg==","signatures":[{"sig":"MEQCIC3gqoemJ9DRw3c8goG8kPj90TQBDafr+gkHSKMLACpFAiBIrYNHsLNFmd9IVceEyoYMMTpDiopXeX7yiu7t2xOAWA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":5479},"main":"dist/index.cjs","types":"dist/index.d.ts","module":"dist/index.mjs","source":"src/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","default":"./dist/index.mjs","require":"./dist/index.cjs"},"./styles.css":"./dist/Modal.css"},"gitHead":"f2e93c1e8c5d42d6eddb3940b3227c931c9045ac","scripts":{"build":"microbundle --no-sourcemap --format cjs,esm --css-modules false --jsx react","prepare":"npm run build","prepublishOnly":"npm run build"},"_npmUser":{"name":"carole-rg","email":"carole.rolland.grellety@gmail.com"},"repository":{"url":"git+https://github.com/CaroleGrllt/hr-modal-react.git","type":"git"},"_npmVersion":"10.8.2","description":"Un composant de modal simple pour React.","directories":{},"microbundle":{"jsx":"react"},"sideEffects":["**/*.css"],"_nodeVersion":"20.19.4","_hasShrinkwrap":false,"devDependencies":{"microbundle":"^0.15.1"},"peerDependencies":{"react":">=17","react-dom":">=17"},"_npmOperationalInternal":{"tmp":"tmp/hr-modal-react_1.0.4_1756034076134_0.6338908441868489","host":"s3://npm-registry-packages-npm-production"}},"1.0.5":{"name":"@carole-rg/hr-modal-react","version":"1.0.5","keywords":["react","modal","component"],"author":{"name":"carole grellety"},"license":"MIT","_id":"@carole-rg/hr-modal-react@1.0.5","maintainers":[{"name":"carole-rg","email":"carole.rolland.grellety@gmail.com"}],"homepage":"https://github.com/carole-rg/hr-modal-react#readme","bugs":{"url":"https://github.com/CaroleGrllt/hr-modal-react/issues"},"dist":{"shasum":"6c9b0b47928f8b27b9ca77930702bed84606708f","tarball":"https://registry.npmjs.org/@carole-rg/hr-modal-react/-/hr-modal-react-1.0.5.tgz","fileCount":8,"integrity":"sha512-0YL6LCGi2m9noArpDKVEGmSoCCljXZyNcyRYJU0iO/3Du3yAvZCMK4oXUJRXdxlbU7ILQW12vKFhl2n2L1lULA==","signatures":[{"sig":"MEQCIBzEwPN6GenuYZgRcEA1F4cz17pV0A9s2fpjR/zsjMUyAiBaJH9t4SUu9RO7DY144rDORZlqxFDrWgG2R6oLN3Q9oA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":5443},"main":"dist/index.cjs","types":"dist/index.d.ts","module":"dist/index.mjs","source":"src/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","default":"./dist/index.mjs","require":"./dist/index.cjs"},"./styles.css":"./dist/Modal.css"},"gitHead":"e41d19a6bca6487f57c2df14a348165915c2235c","scripts":{"build":"microbundle --no-sourcemap --format cjs,esm --css-modules false --jsx react","prepare":"npm run build","prepublishOnly":"npm run build"},"_npmUser":{"name":"carole-rg","email":"carole.rolland.grellety@gmail.com"},"repository":{"url":"git+https://github.com/CaroleGrllt/hr-modal-react.git","type":"git"},"_npmVersion":"10.8.2","description":"Un composant de modal simple pour React.","directories":{},"microbundle":{"jsx":"react"},"sideEffects":["**/*.css"],"_nodeVersion":"20.19.4","_hasShrinkwrap":false,"devDependencies":{"microbundle":"^0.15.1"},"peerDependencies":{"react":">=17","react-dom":">=17"},"_npmOperationalInternal":{"tmp":"tmp/hr-modal-react_1.0.5_1756047641306_0.7773049890611639","host":"s3://npm-registry-packages-npm-production"}},"1.0.6":{"name":"@carole-rg/hr-modal-react","version":"1.0.6","description":"Un composant de modal simple pour React.","source":"src/index.js","main":"dist/index.cjs","module":"dist/index.mjs","types":"dist/index.d.ts","exports":{".":{"import":"./dist/index.mjs","require":"./dist/index.cjs","types":"./dist/index.d.ts","default":"./dist/index.mjs"},"./styles.css":"./dist/Modal.css"},"sideEffects":["**/*.css"],"scripts":{"build":"microbundle --no-sourcemap --format cjs,esm --css-modules false --jsx react","prepublishOnly":"npm run build","prepare":"npm run build"},"microbundle":{"jsx":"react"},"peerDependencies":{"react":">=17","react-dom":">=17"},"devDependencies":{"microbundle":"^0.15.1"},"keywords":["react","modal","component"],"author":{"name":"carole grellety"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/CaroleGrllt/hr-modal-react.git"},"homepage":"https://github.com/carole-rg/hr-modal-react#readme","_id":"@carole-rg/hr-modal-react@1.0.6","gitHead":"0382e63cf679427a783b21bff635ec1d069dcfa0","bugs":{"url":"https://github.com/CaroleGrllt/hr-modal-react/issues"},"_nodeVersion":"20.19.4","_npmVersion":"10.8.2","dist":{"integrity":"sha512-eFHRzexgIojkN/HmtoMxv80WcmXU971nA0ZzxelzgsIxZ4gbJPSomZWYkcnuEG/JZAd5NsTnJBJACqdnXUK7uw==","shasum":"5b7fd460166a8d49b7cbaad7da2fde986f3f55b9","tarball":"https://registry.npmjs.org/@carole-rg/hr-modal-react/-/hr-modal-react-1.0.6.tgz","fileCount":8,"unpackedSize":5494,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCOgnmOxc4dkr8EopRYLIGoEkz2uMp+Ae26nOrwGXJUAAIhAOXkJ3CnRWKxeegUQ+YPxQqk43tDvi4KQbmRt45C3ShR"}]},"_npmUser":{"name":"carole-rg","email":"carole.rolland.grellety@gmail.com"},"directories":{},"maintainers":[{"name":"carole-rg","email":"carole.rolland.grellety@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/hr-modal-react_1.0.6_1756744150845_0.427944936909082"},"_hasShrinkwrap":false}},"time":{"created":"2025-08-24T10:34:37.176Z","modified":"2025-09-01T16:29:11.238Z","1.0.0":"2025-08-24T10:34:37.488Z","1.0.1":"2025-08-24T10:49:14.369Z","1.0.2":"2025-08-24T10:55:40.746Z","1.0.3":"2025-08-24T11:02:36.870Z","1.0.4":"2025-08-24T11:14:36.329Z","1.0.5":"2025-08-24T15:00:41.497Z","1.0.6":"2025-09-01T16:29:11.031Z"},"bugs":{"url":"https://github.com/CaroleGrllt/hr-modal-react/issues"},"author":{"name":"carole grellety"},"license":"MIT","homepage":"https://github.com/carole-rg/hr-modal-react#readme","keywords":["react","modal","component"],"repository":{"type":"git","url":"git+https://github.com/CaroleGrllt/hr-modal-react.git"},"description":"Un composant de modal simple pour React.","maintainers":[{"name":"carole-rg","email":"carole.rolland.grellety@gmail.com"}],"readme":"# @carole-rg/hr-modal-react\n\nA simple modal component for React.\n\n## Installation\n\n```bash\nnpm install @carole-rg/hr-modal-react\n# ou\nyarn add @carole-rg/hr-modal-react\n```\n\n## Prérequis\n\n- Node.js >= 20.19.4\n- npm ou yarn\n\n## Utilisation\n\n```jsx\nimport React, { useState } from 'react';\nimport { Modal } from '@carole-rg/hr-modal-react';\nimport '@carole-rg/hr-modal-react/styles.css';\n\nexport default function App() {\n  const [open, setOpen] = useState(false);\n  return (\n    <div>\n      <button onClick={() => setOpen(true)}>Open</button>\n      <Modal\n        isOpen={open}\n        onClose={() => setOpen(false)}\n        message=\"This is a modal\"\n        closeBtn=\"Close\"\n      />\n    </div>\n  );\n}\n```\n\n## Props\n\n- `isOpen` *(boolean)* — Displays the modal if `true`. Default: `false`.\n- `onClose` *(function)* — Callback when the modal is closed.\n- `message` *(String)* — Contents of the modal body.\n- `closeBtn` *(String)* — Label of the close button.\n\n## Licence\n\nMIT","readmeFilename":"README.md"}