{"_id":"@cam96stanley/pop-toast","_rev":"3-555ed61accdd97a5cff09bf9ab04438e","name":"@cam96stanley/pop-toast","dist-tags":{"latest":"0.0.3"},"versions":{"0.0.1":{"name":"@cam96stanley/pop-toast","version":"0.0.1","keywords":["toast","react","notifications","alert"],"author":{"name":"Cameron Stanley"},"license":"ISC","_id":"@cam96stanley/pop-toast@0.0.1","maintainers":[{"name":"cam96stanley","email":"cam96stanley@gmail.com"}],"homepage":"https://github.com/Cam96stanley/pop-toast#readme","bugs":{"url":"https://github.com/Cam96stanley/pop-toast/issues"},"dist":{"shasum":"b4f78ebbfe2f58aeea74a05acf80b068e4f3953e","tarball":"https://registry.npmjs.org/@cam96stanley/pop-toast/-/pop-toast-0.0.1.tgz","fileCount":16,"integrity":"sha512-dSKux1Y/opeVbxUdJVFo3tFlMFn+RlvesZiBaSNyhioXFMI5T1zSDK1lJaSBUK6bj1yDpJNCP49t6q2oBpNGQQ==","signatures":[{"sig":"MEQCIC9mund/OJOJqLQ0NzZgakPQwCMcQEwo0KdIAuA9iZdGAiA7JDu/ZtljYW1BZQfRG8OwT9CtzgB7rbxP5q0lCL38Hw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":153964},"main":"dist/index.js","type":"commonjs","types":"dist/index.d.ts","module":"dist/index.mjs","scripts":{"test":"echo \"Error: no test specified\" && exit 1","rollup":"rollup -c --bundleConfigAsCjs"},"_npmUser":{"name":"cam96stanley","email":"cam96stanley@gmail.com"},"repository":{"url":"git+https://github.com/Cam96stanley/pop-toast.git","type":"git"},"_npmVersion":"11.9.0","description":"A lightweight, customizable React toast notification library for stacking and timed alerts.","directories":{},"_nodeVersion":"24.14.0","dependencies":{"@phosphor-icons/react":"^2.1.10"},"_hasShrinkwrap":false,"devDependencies":{"react":"^19.2.4","tslib":"^2.8.1","rollup":"^4.60.0","postcss":"^8.5.8","react-dom":"^19.2.4","typescript":"^6.0.2","tailwindcss":"^4.2.2","@types/react":"^19.2.14","autoprefixer":"^10.4.27","rollup-plugin-dts":"^6.4.1","@tailwindcss/postcss":"^4.2.2","@rollup/plugin-terser":"^1.0.0","rollup-plugin-postcss":"^4.0.2","@rollup/plugin-commonjs":"^29.0.2","@rollup/plugin-typescript":"^12.3.0","@rollup/plugin-node-resolve":"^16.0.3","rollup-plugin-peer-deps-external":"^2.2.4"},"_npmOperationalInternal":{"tmp":"tmp/pop-toast_0.0.1_1774756055437_0.29464357355499704","host":"s3://npm-registry-packages-npm-production"}},"0.0.2":{"name":"@cam96stanley/pop-toast","version":"0.0.2","keywords":["toast","react","notifications","alert"],"author":{"name":"Cameron Stanley"},"license":"ISC","_id":"@cam96stanley/pop-toast@0.0.2","maintainers":[{"name":"cam96stanley","email":"cam96stanley@gmail.com"}],"homepage":"https://github.com/Cam96stanley/pop-toast#readme","bugs":{"url":"https://github.com/Cam96stanley/pop-toast/issues"},"dist":{"shasum":"1d548cadf030b8732e5333141b23d4c627292df6","tarball":"https://registry.npmjs.org/@cam96stanley/pop-toast/-/pop-toast-0.0.2.tgz","fileCount":16,"integrity":"sha512-d89wGTXPRsaduQPo1v0ybHmgBSaw0d08/IapEIPe3E6UFqD+V8cd5Tsoty62AbADbknVcdB/8g9SCUNPbTTR1A==","signatures":[{"sig":"MEUCIQCBwSlezdnSoTlgNgVV8V5QyM4dxyywKn7T6u805R6aRwIgf+QD50N1guflbAVPSGCtgYtKpAoTvAQ74DGh00TEc4U=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":166834},"main":"dist/index.js","type":"commonjs","types":"dist/index.d.ts","module":"dist/index.mjs","scripts":{"test":"echo \"Error: no test specified\" && exit 1","rollup":"rollup -c --bundleConfigAsCjs"},"_npmUser":{"name":"cam96stanley","email":"cam96stanley@gmail.com"},"repository":{"url":"git+https://github.com/Cam96stanley/pop-toast.git","type":"git"},"_npmVersion":"11.9.0","description":"A lightweight, customizable React toast notification library for stacking and timed alerts.","directories":{},"_nodeVersion":"24.14.0","dependencies":{"@phosphor-icons/react":"^2.1.10"},"_hasShrinkwrap":false,"devDependencies":{"react":"^19.2.4","tslib":"^2.8.1","rollup":"^4.60.0","postcss":"^8.5.8","react-dom":"^19.2.4","typescript":"^6.0.2","tailwindcss":"^4.2.2","@types/react":"^19.2.14","autoprefixer":"^10.4.27","rollup-plugin-dts":"^6.4.1","@tailwindcss/postcss":"^4.2.2","@rollup/plugin-terser":"^1.0.0","rollup-plugin-postcss":"^4.0.2","@rollup/plugin-commonjs":"^29.0.2","@rollup/plugin-typescript":"^12.3.0","@rollup/plugin-node-resolve":"^16.0.3","rollup-plugin-peer-deps-external":"^2.2.4"},"_npmOperationalInternal":{"tmp":"tmp/pop-toast_0.0.2_1774757016275_0.768421087121355","host":"s3://npm-registry-packages-npm-production"}},"0.0.3":{"name":"@cam96stanley/pop-toast","version":"0.0.3","description":"A lightweight, customizable React toast notification library for stacking and timed alerts.","keywords":["toast","react","notifications","alert"],"homepage":"https://github.com/Cam96stanley/pop-toast#readme","bugs":{"url":"https://github.com/Cam96stanley/pop-toast/issues"},"repository":{"type":"git","url":"git+https://github.com/Cam96stanley/pop-toast.git"},"license":"ISC","author":{"name":"Cameron Stanley"},"type":"commonjs","main":"dist/index.js","module":"dist/index.mjs","types":"dist/index.d.ts","scripts":{"test":"echo \"Error: no test specified\" && exit 1","rollup":"rollup -c --bundleConfigAsCjs"},"devDependencies":{"@rollup/plugin-commonjs":"^29.0.2","@rollup/plugin-node-resolve":"^16.0.3","@rollup/plugin-terser":"^1.0.0","@rollup/plugin-typescript":"^12.3.0","@tailwindcss/postcss":"^4.2.2","@types/react":"^19.2.14","autoprefixer":"^10.4.27","postcss":"^8.5.8","react":"^19.2.4","react-dom":"^19.2.4","rollup":"^4.60.0","rollup-plugin-dts":"^6.4.1","rollup-plugin-peer-deps-external":"^2.2.4","rollup-plugin-postcss":"^4.0.2","tailwindcss":"^4.2.2","tslib":"^2.8.1","typescript":"^6.0.2"},"dependencies":{"@phosphor-icons/react":"^2.1.10"},"_id":"@cam96stanley/pop-toast@0.0.3","_nodeVersion":"24.14.0","_npmVersion":"11.9.0","dist":{"integrity":"sha512-cB3dEP3K2A9pbMjVbT8GHilKfDUXpJZU8QSFyECZnCV1DZe5OvVBsABcHYEJsZ6e/wU8lmWuKhd4rFeN3k2gSg==","shasum":"88440ef4e205a728ebe9304cf08cbcd7932e2ef7","tarball":"https://registry.npmjs.org/@cam96stanley/pop-toast/-/pop-toast-0.0.3.tgz","fileCount":17,"unpackedSize":169222,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDkV/Jxce3lrlkoSIXL5D4LXdV2S5ECx6kIFdWjgU8PygIhAMzLdCmIoSz1GAw19v796F5ZijS1IoKlDbBKy1ZtzXzZ"}]},"_npmUser":{"name":"cam96stanley","email":"cam96stanley@gmail.com"},"directories":{},"maintainers":[{"name":"cam96stanley","email":"cam96stanley@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/pop-toast_0.0.3_1774759376804_0.24919346652474417"},"_hasShrinkwrap":false}},"time":{"created":"2026-03-29T03:47:35.353Z","modified":"2026-03-29T04:42:57.103Z","0.0.1":"2026-03-29T03:47:35.582Z","0.0.2":"2026-03-29T04:03:36.429Z","0.0.3":"2026-03-29T04:42:56.987Z"},"bugs":{"url":"https://github.com/Cam96stanley/pop-toast/issues"},"author":{"name":"Cameron Stanley"},"license":"ISC","homepage":"https://github.com/Cam96stanley/pop-toast#readme","keywords":["toast","react","notifications","alert"],"repository":{"type":"git","url":"git+https://github.com/Cam96stanley/pop-toast.git"},"description":"A lightweight, customizable React toast notification library for stacking and timed alerts.","maintainers":[{"name":"cam96stanley","email":"cam96stanley@gmail.com"}],"readme":"# @cam96stanley/pop-toast\n\nA lightweight, customizable React toast notification library for stacking and timed alerts. No Tailwind required — styles are bundled in.\n\n## Installation\n\n```bash\nnpm install @cam96stanley/pop-toast\n```\n\n## Setup\n\nAdd `<NotificationContainer />` once at the root of your app (e.g. `App.tsx`):\n\n```tsx\nimport { NotificationContainer } from '@cam96stanley/pop-toast';\n\nfunction App() {\n  return (\n    <>\n      <NotificationContainer position=\"top-right\" />\n      {/* rest of your app */}\n    </>\n  );\n}\n```\n\n## Usage\n\nImport `toast` and call it from anywhere in your app:\n\n```tsx\nimport { toast } from '@cam96stanley/pop-toast';\n\ntoast.success('Changes saved!');\ntoast.error('Something went wrong.');\ntoast.warning('Low disk space.');\ntoast.info('A new update is available.');\n```\n\nToasts automatically dismiss after 5 seconds, or can be closed manually by clicking the X.\n\n## API\n\n### `<NotificationContainer />`\n\n| Prop       | Type                                                                  | Default       | Description                       |\n|------------|-----------------------------------------------------------------------|---------------|-----------------------------------|\n| `position` | `\"top-right\"` \\| `\"top-left\"` \\| `\"bottom-right\"` \\| `\"bottom-left\"` | `\"top-right\"` | Where toasts appear on the screen |\n\n### `toast`\n\n| Method                  | Description                  |\n|-------------------------|------------------------------|\n| `toast.success(message)` | Shows a green success toast |\n| `toast.error(message)`   | Shows a red error toast     |\n| `toast.warning(message)` | Shows a yellow warning toast |\n| `toast.info(message)`    | Shows a blue info toast     |\n\nEach method accepts an optional second argument to override position:\n\n```tsx\ntoast.success('Done!', 'bottom-right');\n```\n\n## Coming Soon\n\n- **Animations** — Entrance and exit animations for notifications\n- **Custom duration** — Control how long each toast stays on screen\n- **Pause on hover** — Auto-dismiss timer pauses when hovering over a toast\n- **Promise toast** — Automatically show a loading, success, or error toast based on the result of a promise — great for API calls and form submissions:\n\n```tsx\ntoast.promise(saveData(), {\n  loading: 'Saving...',\n  success: 'Saved successfully!',\n  error: 'Failed to save.',\n});\n```\n\n## License\n\nISC\n","readmeFilename":"README.md"}