{"_id":"@2two2d/solid-modal-manager","_rev":"7-74d2d593cd775193820e50db02e6ea7a","name":"@2two2d/solid-modal-manager","dist-tags":{"latest":"1.0.8"},"versions":{"1.0.0":{"name":"@2two2d/solid-modal-manager","version":"1.0.0","keywords":["solid-js","modal","modal-manager","provider"],"author":{"name":"2two2d"},"license":"MIT","_id":"@2two2d/solid-modal-manager@1.0.0","maintainers":[{"name":"2two2d","email":"notmax2000@mail.ru"}],"homepage":"https://github.com/2two2d/solid-modal-manager#readme","bugs":{"url":"https://github.com/2two2d/solid-modal-manager/issues"},"dist":{"shasum":"eba56c9bd5801fb0555b85361be872920b11abf4","tarball":"https://registry.npmjs.org/@2two2d/solid-modal-manager/-/solid-modal-manager-1.0.0.tgz","fileCount":9,"integrity":"sha512-grMTSSLSJPhLa3vVNTe/y1l5cJSO/sqw7USaqCEmXS5UWxnVzd4ON5yvd5/sVzS1KfnhLF3NezxcAS4mIscWxQ==","signatures":[{"sig":"MEUCIQCENuf2WK74PJsrspWPtksfIXuQQm011x96xZIhRv3m3QIgG1Oh/N+FeriRWug6y5jxGAhhAmh4OTpP7BwhqodKs20=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":22228},"main":"dist/index.cjs.js","types":"dist/index.d.ts","module":"dist/index.esm.js","scripts":{"test":"vitest","build":"tsup","clean":"rimraf dist","prebuild":"rimraf dist","dev:example":"cd example && npm run dev"},"_npmUser":{"name":"2two2d","email":"notmax2000@mail.ru"},"repository":{"url":"git+https://github.com/2two2d/solid-modal-manager.git","type":"git"},"_npmVersion":"11.0.0","description":"Modal manager Provider + hook for SolidJS","directories":{},"_nodeVersion":"20.18.0","_hasShrinkwrap":false,"devDependencies":{"tsup":"^6.0.0","rimraf":"^3.0.0","vitest":"^0.30.0","typescript":"^5.0.0"},"peerDependencies":{"solid-js":">=1.0.0"},"_npmOperationalInternal":{"tmp":"tmp/solid-modal-manager_1.0.0_1763290791334_0.1434087435113247","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@2two2d/solid-modal-manager","version":"1.0.1","keywords":["solid-js","modal","modal-manager","provider"],"author":{"name":"2two2d"},"license":"MIT","_id":"@2two2d/solid-modal-manager@1.0.1","maintainers":[{"name":"2two2d","email":"notmax2000@mail.ru"}],"homepage":"https://github.com/2two2d/solid-modal-manager#readme","bugs":{"url":"https://github.com/2two2d/solid-modal-manager/issues"},"dist":{"shasum":"21461e31513947d26b5476d35c7a9cc834318f83","tarball":"https://registry.npmjs.org/@2two2d/solid-modal-manager/-/solid-modal-manager-1.0.1.tgz","fileCount":9,"integrity":"sha512-Nnan5TAryEMBj/R/aBTYz9TeuI+4F7IMZpwtC2JkSSZv4udKePWSNJrOwGXlX1JNTL012ZBeKpw7qmXILW3c+g==","signatures":[{"sig":"MEQCIDEUyNhfQhcNPZBVV3RFiHR0z+A4HHrWSub+3D9qmmr/AiB3ehhSCZUWcqy5TsNMhkAWyXKiwiomDe/4t4cnkUAluw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":23579},"main":"dist/index.cjs.js","types":"dist/index.d.ts","module":"dist/index.esm.js","scripts":{"test":"vitest","build":"tsup","clean":"rimraf dist","prebuild":"rimraf dist","dev:example":"cd example && npm run dev"},"_npmUser":{"name":"2two2d","email":"notmax2000@mail.ru"},"repository":{"url":"git+https://github.com/2two2d/solid-modal-manager.git","type":"git"},"_npmVersion":"11.0.0","description":"Modal manager Provider + hook for SolidJS","directories":{},"_nodeVersion":"20.18.0","_hasShrinkwrap":false,"devDependencies":{"tsup":"^6.0.0","rimraf":"^3.0.0","vitest":"^0.30.0","typescript":"^5.0.0"},"peerDependencies":{"solid-js":">=1.0.0"},"_npmOperationalInternal":{"tmp":"tmp/solid-modal-manager_1.0.1_1763291901194_0.2980872322967547","host":"s3://npm-registry-packages-npm-production"}},"1.0.3":{"name":"@2two2d/solid-modal-manager","version":"1.0.3","keywords":["solid-js","modal","modal-manager","provider"],"author":{"name":"2two2d"},"license":"MIT","_id":"@2two2d/solid-modal-manager@1.0.3","maintainers":[{"name":"2two2d","email":"notmax2000@mail.ru"}],"homepage":"https://github.com/2two2d/solid-modal-manager#readme","bugs":{"url":"https://github.com/2two2d/solid-modal-manager/issues"},"dist":{"shasum":"793f101ea3cdec9993c5123f23e9ffb061c77403","tarball":"https://registry.npmjs.org/@2two2d/solid-modal-manager/-/solid-modal-manager-1.0.3.tgz","fileCount":9,"integrity":"sha512-NKBcwa/LTpKW+lDbt14KfJEg1/PkN44SWxpdIWDZXTLZluXjDsEON39QS4IB6BjP/+tZsyNdUkgkRoBxhjEbNw==","signatures":[{"sig":"MEQCIF99EpVIjgVR7Ds58hxVx1yNY1jEpj2xwqZHM5MvXHDFAiA6qQE8UWGr0PnPXgwRUKPcCu37F3RnOY0WT++YLwwLDw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":23961},"main":"dist/index.cjs.js","types":"dist/index.d.ts","module":"dist/index.esm.js","gitHead":"51e0303bc4020a35ae252d533f3d18402b17f3da","scripts":{"test":"vitest","build":"tsup","clean":"rimraf dist","prebuild":"rimraf dist","dev:example":"cd example && npm run dev"},"_npmUser":{"name":"2two2d","email":"notmax2000@mail.ru"},"repository":{"url":"git+https://github.com/2two2d/solid-modal-manager.git","type":"git"},"_npmVersion":"11.0.0","description":"Modal manager Provider + hook for SolidJS","directories":{},"_nodeVersion":"20.18.0","_hasShrinkwrap":false,"devDependencies":{"tsup":"^6.0.0","rimraf":"^3.0.0","vitest":"^0.30.0","typescript":"^5.0.0"},"peerDependencies":{"solid-js":">=1.0.0"},"_npmOperationalInternal":{"tmp":"tmp/solid-modal-manager_1.0.3_1763579665580_0.02459342070302095","host":"s3://npm-registry-packages-npm-production"}},"1.0.4":{"name":"@2two2d/solid-modal-manager","version":"1.0.4","keywords":["solid-js","modal","modal-manager","solid-start"],"author":{"name":"2two2d"},"license":"MIT","_id":"@2two2d/solid-modal-manager@1.0.4","maintainers":[{"name":"2two2d","email":"notmax2000@mail.ru"}],"dist":{"shasum":"0f599b7519841625641a9575dd8af4c8900403b6","tarball":"https://registry.npmjs.org/@2two2d/solid-modal-manager/-/solid-modal-manager-1.0.4.tgz","fileCount":10,"integrity":"sha512-RMavYBnWFwJ1LQf2Xg4jr0ORBH8yKTHliIAGeJbHrDyeVbs7XH/Q/zRO00CLSQsvZTS+c99sq9bHYX9KEeMqMg==","signatures":[{"sig":"MEUCIQCcX4o64OcpA8UusIMC1diGoIJ4bhfZL3vT80CGOjaVwQIgC+a0MKLHqYmsa3sWp5l9HHoyoye8UK0FfkVBqYfmgKI=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":35654},"main":"./dist/index.cjs.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.esm.js","exports":{".":{"solid":"./dist/index.jsx","types":"./dist/index.d.ts","import":"./dist/index.esm.js","default":"./dist/index.esm.js","require":"./dist/index.cjs.js"}},"gitHead":"51e0303bc4020a35ae252d533f3d18402b17f3da","scripts":{"dev":"tsup --watch","build":"tsup","clean":"rimraf dist","prebuild":"rimraf dist"},"_npmUser":{"name":"2two2d","email":"notmax2000@mail.ru"},"_npmVersion":"11.0.0","description":"Simple and typed modal manager for SolidJS","directories":{},"_nodeVersion":"20.18.0","_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.1","rimraf":"^6.0.0","typescript":"^5.5.0"},"peerDependencies":{"solid-js":">=1.8.0"},"_npmOperationalInternal":{"tmp":"tmp/solid-modal-manager_1.0.4_1764259425892_0.7268757769740295","host":"s3://npm-registry-packages-npm-production"}},"1.0.5":{"name":"@2two2d/solid-modal-manager","version":"1.0.5","keywords":["solidjs","solid","modal","dialog","portal","manager"],"author":{"name":"2two2d"},"license":"MIT","_id":"@2two2d/solid-modal-manager@1.0.5","maintainers":[{"name":"2two2d","email":"notmax2000@mail.ru"}],"dist":{"shasum":"6ecf22e589ed4d115f58b630a0e1c0196547325e","tarball":"https://registry.npmjs.org/@2two2d/solid-modal-manager/-/solid-modal-manager-1.0.5.tgz","fileCount":10,"integrity":"sha512-DcwMoh3UhULvLpohB+bkgaRJfSDxZt5zUpnhVF0LojPbLFEk4N+uKJwwal+zeA64D/WHf5feT/HA0tsVYWLs/w==","signatures":[{"sig":"MEQCIGYDRxG9BC9I0dvdhkU4idUZnjJEQQq64i+h0d0BxDNBAiAUnhg7awzOwJEO8IFaBfdeODn9prkqvUz2wmj7czboQw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":35535},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"solid":"./dist/index.js","types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"51e0303bc4020a35ae252d533f3d18402b17f3da","scripts":{"build":"tsup","prepublishOnly":"npm run build"},"_npmUser":{"name":"2two2d","email":"notmax2000@mail.ru"},"_npmVersion":"11.0.0","description":"Simple, typed and powerful modal manager for SolidJS","directories":{},"_nodeVersion":"20.18.0","_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.0","typescript":"^5.5.0"},"peerDependencies":{"solid-js":"^1.8.0"},"_npmOperationalInternal":{"tmp":"tmp/solid-modal-manager_1.0.5_1764260294845_0.9006830598407793","host":"s3://npm-registry-packages-npm-production"}},"1.0.6":{"name":"@2two2d/solid-modal-manager","version":"1.0.6","keywords":["solidjs","solid","modal","dialog","portal","manager"],"author":{"name":"2two2d"},"license":"MIT","_id":"@2two2d/solid-modal-manager@1.0.6","maintainers":[{"name":"2two2d","email":"notmax2000@mail.ru"}],"dist":{"shasum":"d74514cd8f218ac71b721472acace3d2b08faa6d","tarball":"https://registry.npmjs.org/@2two2d/solid-modal-manager/-/solid-modal-manager-1.0.6.tgz","fileCount":10,"integrity":"sha512-qhSh0Ae8kP6kVGriFE9SG5cWYosv2MBSPmdM2+J3FdrbgCXLCbHy1uLH29+DkGzsTkD/aymrNSoiqQ72sLrnug==","signatures":[{"sig":"MEYCIQDW0U9BfMbHUIQI7cikH9kab24f51f6KQjTriOynnwqFwIhAJ5zIDOFaZVy47KV5/Zkfs9pOGa0NrdiTTsguW+a/eIk","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":36040},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"solid":"./dist/index.js","types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"51e0303bc4020a35ae252d533f3d18402b17f3da","scripts":{"build":"tsup","prepublishOnly":"npm run build"},"_npmUser":{"name":"2two2d","email":"notmax2000@mail.ru"},"_npmVersion":"11.0.0","description":"Simple, typed and powerful modal manager for SolidJS","directories":{},"_nodeVersion":"20.18.0","_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.0","typescript":"^5.5.0"},"peerDependencies":{"solid-js":"^1.8.0"},"_npmOperationalInternal":{"tmp":"tmp/solid-modal-manager_1.0.6_1764260493768_0.10996446351215305","host":"s3://npm-registry-packages-npm-production"}},"1.0.8":{"name":"@2two2d/solid-modal-manager","version":"1.0.8","description":"Simple, typed and powerful modal manager for SolidJS","type":"module","main":"./dist/index.cjs","module":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","solid":"./dist/index.js","import":"./dist/index.js","require":"./dist/index.cjs","default":"./dist/index.js"},"./index.css":"./dist/index.css"},"scripts":{"build":"tsup","prepublishOnly":"npm run build","release":"npm version patch && git push --follow-tags","release:minor":"npm version minor && git push --follow-tags","release:major":"npm version major && git push --follow-tags"},"keywords":["solidjs","solid","modal","dialog","portal","manager"],"author":{"name":"2two2d"},"license":"MIT","peerDependencies":{"solid-js":"^1.8.0"},"devDependencies":{"tsup":"^8.5.0","typescript":"^5.5.0"},"repository":{"type":"git","url":"git+https://github.com/2two2d/solid-modal-manager.git"},"bugs":{"url":"https://github.com/2two2d/solid-modal-manager/issues"},"homepage":"https://github.com/2two2d/solid-modal-manager#readme","publishConfig":{"access":"public"},"_id":"@2two2d/solid-modal-manager@1.0.8","gitHead":"a6772f693ceae95be0d035d34578a532f6936915","_nodeVersion":"20.18.0","_npmVersion":"11.0.0","dist":{"integrity":"sha512-ARstmhr5A/SMz+ueDEJ77DpyQp+FRXIrBBQUik95Q4nZcT78GXr4Fg4jmPIypf+KjbE1wLGPZrZ6NPCkgnoNiQ==","shasum":"e04e3f38e5d86b561df972a5ed9fc35d8087126d","tarball":"https://registry.npmjs.org/@2two2d/solid-modal-manager/-/solid-modal-manager-1.0.8.tgz","fileCount":14,"unpackedSize":37717,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIHXPEjVxeDCI9qpjTKrHJlOZ2Nw9ZTnW60hNxhilZe2mAiEAiHaQ8aELTC58++SL4QqI5DoFdcudyZC61c5IXpbx7Ro="}]},"_npmUser":{"name":"2two2d","email":"notmax2000@mail.ru"},"directories":{},"maintainers":[{"name":"2two2d","email":"notmax2000@mail.ru"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/solid-modal-manager_1.0.8_1765362913446_0.3750042835526568"},"_hasShrinkwrap":false}},"time":{"created":"2025-11-16T10:59:51.230Z","modified":"2025-12-10T10:35:13.810Z","1.0.0":"2025-11-16T10:59:51.556Z","1.0.1":"2025-11-16T11:18:21.422Z","1.0.3":"2025-11-19T19:14:25.785Z","1.0.4":"2025-11-27T16:03:46.095Z","1.0.5":"2025-11-27T16:18:15.016Z","1.0.6":"2025-11-27T16:21:33.955Z","1.0.8":"2025-12-10T10:35:13.594Z"},"author":{"name":"2two2d"},"license":"MIT","keywords":["solidjs","solid","modal","dialog","portal","manager"],"description":"Simple, typed and powerful modal manager for SolidJS","maintainers":[{"name":"2two2d","email":"notmax2000@mail.ru"}],"readme":"# solid-modal-manager\n\nMinimal, type-safe modal manager for SolidJS.\n\n## Install\n\n```bash\nnpm install solid-modal-manager\n# or\npnpm add solid-modal-manager\n# or\nyarn add solid-modal-manager\n```\n\nMake sure `solid-js` is installed (peer dependency).\n\n## Quick usage\n\nWrap your app with the provider and register modals:\n\n```tsx\nimport { render } from \"solid-js/web\";\nimport { ModalWindowProvider } from \"solid-modal-manager\";\nimport \"solid-modal-manager/style/index.css\";\nimport App from \"./App\";\nimport LoginModal from \"./modals/LoginModal\";\n\nconst MODALS = {\n  [EModalKeys.LOGIN]: (props?: ILoginModalProps) => <LoginModal {...props} />\n} as const;\n\nrender(\n  () => (\n    <ModalWindowProvider modals={MODALS}\n    >\n      <App />\n    </ModalWindowProvider>\n  ),\n  document.getElementById(\"root\")!\n);\n```\n\nOpen / close modal from any component:\n\n```tsx\nimport { useModalWindow } from \"solid-modal-manager\";\n\nconst OpenLoginButton = () => {\n  const login = useModalWindow(EModalKeys.LOGIN);\n  // pass payload (optional)\n  return <button onClick={() => login.handleOpen({ payload: { userId: 123 } })}>Open</button>;\n};\n```\n\nInside modal component you can read `props` passed from the manager:\n\n```tsx\nconst LoginModal = (props: ILoginModalProps) => {\n  // props contains payload set by handleOpen / handleToggleVisibility\n  return <div>Modal content - {JSON.stringify(props)}</div>;\n};\n```\n\n## Notes\n\n- Use `as const` on `modals` to keep type-safe keys.\n- Import the provided CSS or copy `.modal-backdrop` styles to your project.\n- API: `ModalWindowProvider`, `useModalWindow(key) -> IModalWindowState` (access `handleOpen`, `handleClose`, `handleToggleVisibility`, `isOpen`, `props`).\n\n","readmeFilename":"README.md","homepage":"https://github.com/2two2d/solid-modal-manager#readme","repository":{"type":"git","url":"git+https://github.com/2two2d/solid-modal-manager.git"},"bugs":{"url":"https://github.com/2two2d/solid-modal-manager/issues"}}