react-day-and-night-toggle
Version:
🌞Day & Night🌛 (light/dark) theme switch with pretty cool animation for React.
88 lines (87 loc) • 2.35 kB
JSON
{
"name": "react-day-and-night-toggle",
"version": "2.0.7",
"author": "@cutelilangel",
"license": "MIT",
"description": "🌞Day & Night🌛 (light/dark) theme switch with pretty cool animation for React.",
"exports": {
".": {
"import": "./lib/esm/index.jsx",
"require": "./lib/cjs/index.jsx"
}
},
"main": "./lib/cjs/index.jsx",
"module": "./lib/esm/index.jsx",
"types": "./lib/esm/index.d.tsx",
"private": false,
"files": [
"lib"
],
"scripts": {
"dev": "vite",
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"preview": "vite preview",
"test": "vitest",
"format": "prettier --write \"src/**/*.tsx\" \"tests/**/*.tsx\"",
"build": "yarn build:esm && yarn build:cjs",
"build:esm": "tsc",
"build:cjs": "tsc --module commonjs --outDir lib/cjs"
},
"dependencies": {
"react": ">=18",
"react-dom": ">=18",
"styled-components": "^6.1.11"
},
"devDependencies": {
"@cfaester/enzyme-adapter-react-18": "^0.8.0",
"@types/enzyme": "^3.10.18",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"@types/react-test-renderer": "^17.0.1",
"@types/styled-components": "^5.1.11",
"@typescript-eslint/eslint-plugin": "^7.13.1",
"@typescript-eslint/parser": "^7.13.1",
"@vitejs/plugin-legacy": "^5.4.1",
"@vitejs/plugin-react": "^4.3.1",
"enzyme": "^3.11.0",
"eslint": "^8.57.0",
"eslint-plugin-react-hooks": "^4.6.2",
"eslint-plugin-react-refresh": "^0.4.7",
"prettier": "^3.3.2",
"prop-types": "^15.8.1",
"react-test-renderer": "^18.3.1",
"terser": "^5.31.2",
"typescript": "^5.2.2",
"vite": "^5.3.1",
"vitest": "^2.0.2"
},
"peerDependencies": {
"react": ">=18",
"react-dom": ">=18",
"styled-components": ">=6"
},
"keywords": [
"react",
"react-component",
"theme",
"light",
"day",
"dark",
"night",
"moon",
"sun",
"clouds",
"stars",
"mode",
"toggle",
"button"
],
"repository": {
"type": "git",
"url": "git+https://github.com/cutelilangel/react-day-and-night-toggle.git"
},
"bugs": {
"url": "https://github.com/cutelilangel/react-day-and-night-toggle/issues"
},
"homepage": "https://github.com/cutelilangel/react-day-and-night-toggle#readme"
}