UNPKG

react-toast-kit

Version:

A modern, accessible toast notification system for React applications with automatic CSS injection

151 lines 4.57 kB
{ "name": "react-toast-kit", "version": "1.0.7", "description": "A modern, accessible toast notification system for React applications with automatic CSS injection", "main": "./dist/index.cjs", "module": "./dist/index.mjs", "types": "./dist/index.d.ts", "type": "module", "sideEffects": [ "*.css", "./dist/styles.css", "./dist/styles.js", "./dist/client.mjs", "./dist/client.cjs", "./dist/nextjs/client.mjs", "./dist/nextjs/client.cjs" ], "style": "dist/styles.css", "exports": { ".": { "types": "./dist/index.d.ts", "import": "./dist/index.mjs", "require": "./dist/index.cjs" }, "./styles": { "import": "./dist/styles.js", "require": "./dist/styles.js", "default": "./dist/styles.css" }, "./css": "./dist/styles.css", "./dist/styles.css": "./dist/styles.css", "./client": { "types": "./dist/index.d.ts", "import": "./dist/client.mjs", "require": "./dist/client.cjs" }, "./devtools": { "types": "./dist/devtools-entry.d.ts", "import": "./dist/devtools-entry.mjs", "require": "./dist/devtools-entry.cjs" }, "./nextjs/client": { "types": "./dist/nextjs/client.d.ts", "import": "./dist/nextjs/client.mjs", "require": "./dist/nextjs/client.cjs" }, "./nextjs/server": { "types": "./dist/nextjs/server.d.ts", "import": "./dist/nextjs/server.mjs" }, "./styles.css": "./dist/styles.css" }, "files": [ "dist", "src", "README.md", "LICENSE" ], "scripts": { "build": "tsup && node build-fix.js", "dev": "tsup --watch", "lint": "eslint \"src/**/*.{ts,tsx}\"", "test": "vitest", "prepublishOnly": "npm run build", "build:clean": "rm -rf dist && npm run build", "test:css": "node -e \"console.log('Testing CSS injection...'); require('./dist/index.cjs');\"", "version:status": "./scripts/version-manager.sh status", "version:bump": "./scripts/version-manager.sh bump", "version:bump:patch": "./scripts/version-manager.sh bump patch", "version:bump:minor": "./scripts/version-manager.sh bump minor", "version:bump:major": "./scripts/version-manager.sh bump major", "version:set": "./scripts/version-manager.sh set", "publish:dry": "./scripts/version-manager.sh publish-dry", "publish:manual": "./scripts/version-manager.sh publish", "release": "./scripts/version-manager.sh release", "release:patch": "./scripts/version-manager.sh release patch", "release:minor": "./scripts/version-manager.sh release minor", "release:major": "./scripts/version-manager.sh release major", "setup:secrets": "./scripts/version-manager.sh setup-secrets" }, "keywords": [ "react", "toast", "notification", "alert", "component", "ui", "react-component", "react-toast", "typescript", "zero-dependency", "auto-css", "css-injection", "pure-css", "accessible", "modern" ], "author": "DanhDeveloper", "license": "MIT", "repository": { "type": "git", "url": "https://github.com/danhnhdeveloper308/react-toast-kit" }, "homepage": "https://github.com/danhnhdeveloper308/react-toast-kit#readme", "bugs": { "url": "https://github.com/danhnhdeveloper308/react-toast-kit/issues" }, "dependencies": { "framer-motion": "^12.11.3", "zustand": "^5.0.4" }, "devDependencies": { "@size-limit/preset-small-lib": "^10.0.1", "@testing-library/jest-dom": "^6.1.4", "@testing-library/react": "^13.4.0", "@testing-library/user-event": "^14.5.1", "@types/jest": "^29.5.5", "@types/node": "^20.10.0", "@types/react": "^19.1.4", "@types/react-dom": "^19.1.5", "@typescript-eslint/eslint-plugin": "^6.15.0", "@typescript-eslint/parser": "^6.15.0", "autoprefixer": "^10.4.16", "eslint": "^8.56.0", "eslint-plugin-react": "^7.33.2", "eslint-plugin-react-hooks": "^4.6.0", "happy-dom": "^12.10.3", "jest": "^29.7.0", "jest-environment-jsdom": "^29.7.0", "postcss": "^8.4.31", "react": "^18.0.0", "react-dom": "^18.0.0", "rimraf": "^5.0.5", "size-limit": "^10.0.1", "tailwindcss": "^3.3.5", "ts-jest": "^29.1.1", "tsup": "^8.0.2", "typescript": "^5.8.3", "vitest": "^1.1.0" }, "peerDependencies": { "framer-motion": "^10.16.0 || ^11.0.0", "react": "^17.0.0 || ^18.0.0", "react-dom": "^17.0.0 || ^18.0.0" }, "peerDependenciesMeta": { "framer-motion": { "optional": false } } }