{"_id":"@abw/react-night-and-day","_rev":"7-89dbf2e2ed318366f12a6499d78c504a","name":"@abw/react-night-and-day","dist-tags":{"latest":"1.0.0","alpha":"1.0.0-alpha-1"},"versions":{"0.0.1":{"name":"@abw/react-night-and-day","version":"0.0.1","keywords":["react","theme","switch","light","dark"],"author":{"name":"Andy Wardley"},"_id":"@abw/react-night-and-day@0.0.1","maintainers":[{"name":"abw","email":"abw@wardley.org"}],"homepage":"https://abw.github.io/react-night-and-day/","bugs":{"url":"https://github.com/abw/react-night-and-day/issues"},"dist":{"shasum":"2b765c9ed0b84bd16101030e9368d2f5063509fc","tarball":"https://registry.npmjs.org/@abw/react-night-and-day/-/react-night-and-day-0.0.1.tgz","fileCount":5,"integrity":"sha512-ta37kmOUbLI7RnshboUquojESgCJ0tDMDfFhA68g+9jiHUJoYZDnfQat/MdF2xReYJOeA6GOPfRMH4TkIf7EvQ==","signatures":[{"sig":"MEQCICouyyEdwb2XvkOwKd1E3qNeDVgXlTxaPmSavo9TfQTyAiButv+N14nmfarXIjUJBlBP4YrNcQc4xZjOtySdtabX+A==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":14694},"main":"./dist/react-night-and-day.umd.cjs","type":"module","_from":"file:abw-react-night-and-day-0.0.1.tgz","module":"./dist/react-night-and-day.js","exports":{".":{"import":"./dist/react-night-and-day.js","require":"./dist/react-night-and-day.umd.cjs"}},"licence":"ISC","scripts":{"dev":"vite","lint":"eslint 'src/**/*.{js,jsx}' 'lib/**/*.{js,jsx}'","test":"vitest --ui --coverage","build":"vite build","preview":"vite preview --outDir docs --config vite.docs.js","build:docs":"vite build --outDir docs --config vite.docs.js"},"_npmUser":{"name":"abw","email":"abw@wardley.org"},"_resolved":"/private/var/folders/jw/y_b__hgj1n39hh2qgp9s8dnc0000gn/T/dde6b13574c7b8bd5f653853cce80868/abw-react-night-and-day-0.0.1.tgz","_integrity":"sha512-ta37kmOUbLI7RnshboUquojESgCJ0tDMDfFhA68g+9jiHUJoYZDnfQat/MdF2xReYJOeA6GOPfRMH4TkIf7EvQ==","repository":{"url":"git+https://github.com/abw/react-night-and-day.git","type":"git"},"_npmVersion":"8.19.2","description":"A simple React library for switching between light and dark themes","directories":{},"_nodeVersion":"18.12.1","dependencies":{"@abw/react-context":"^2.0.3"},"_hasShrinkwrap":false,"devDependencies":{"sass":"^1.60.0","vite":"^4.2.0","jsdom":"^21.1.1","react":"^18.2.0","eslint":"^8.37.0","vitest":"^0.31.0","react-dom":"^18.2.0","@vitest/ui":"^0.31.0","@types/react":"^18.0.28","@types/react-dom":"^18.0.11","react-router-dom":"^6.10.0","vite-plugin-svgr":"^3.2.0","@vitest/coverage-c8":"^0.31.0","eslint-plugin-react":"^7.32.2","@vitejs/plugin-react":"^3.1.0","@abw/badger-timestamp":"^1.0.4","@testing-library/react":"^14.0.0","react-syntax-highlighter":"^15.5.0","@testing-library/jest-dom":"^5.16.5","@testing-library/user-event":"^14.4.3"},"peerDependencies":{"react":"^18.2.0","react-dom":"^18.2.0"},"_npmOperationalInternal":{"tmp":"tmp/react-night-and-day_0.0.1_1684175477698_0.20561933392548792","host":"s3://npm-registry-packages"}},"0.0.2":{"name":"@abw/react-night-and-day","version":"0.0.2","keywords":["react","theme","switch","light","dark"],"author":{"name":"Andy Wardley"},"license":"ISC","_id":"@abw/react-night-and-day@0.0.2","maintainers":[{"name":"abw","email":"abw@wardley.org"}],"homepage":"https://abw.github.io/react-night-and-day/","bugs":{"url":"https://github.com/abw/react-night-and-day/issues"},"dist":{"shasum":"b868ca3283867e580d63d77d9d0c64e7a9d11730","tarball":"https://registry.npmjs.org/@abw/react-night-and-day/-/react-night-and-day-0.0.2.tgz","fileCount":5,"integrity":"sha512-akdNE/tNFQv88uI7ybp9eHU1IqkYLvhxB6AMhQ1yXbPcGJPZ7Schw5kfQNdCkpfDXk72du7oJuYHyDfoIOiOOA==","signatures":[{"sig":"MEUCIQDO+l2hEW/Z5G4Ot1Oa2UX98v+pr9322QPKdq2J1ph7agIgINIuR86NaCd438xIlznEBsrrM9TLNTfpofXpCckUw8Y=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":14694},"main":"./dist/react-night-and-day.umd.cjs","type":"module","_from":"file:abw-react-night-and-day-0.0.2.tgz","module":"./dist/react-night-and-day.js","exports":{".":{"import":"./dist/react-night-and-day.js","require":"./dist/react-night-and-day.umd.cjs"}},"scripts":{"dev":"vite","lint":"eslint 'src/**/*.{js,jsx}' 'lib/**/*.{js,jsx}'","test":"vitest --ui --coverage","build":"vite build","preview":"vite preview --outDir docs --config vite.docs.js","build:docs":"vite build --outDir docs --config vite.docs.js"},"_npmUser":{"name":"abw","email":"abw@wardley.org"},"_resolved":"/private/var/folders/jw/y_b__hgj1n39hh2qgp9s8dnc0000gn/T/65391ecc6637d1eb3471de9fde79a48c/abw-react-night-and-day-0.0.2.tgz","_integrity":"sha512-akdNE/tNFQv88uI7ybp9eHU1IqkYLvhxB6AMhQ1yXbPcGJPZ7Schw5kfQNdCkpfDXk72du7oJuYHyDfoIOiOOA==","repository":{"url":"git+https://github.com/abw/react-night-and-day.git","type":"git"},"_npmVersion":"8.19.2","description":"A simple React library for switching between light and dark themes","directories":{},"_nodeVersion":"18.12.1","dependencies":{"@abw/react-context":"^2.0.3"},"_hasShrinkwrap":false,"devDependencies":{"sass":"^1.60.0","vite":"^4.2.0","jsdom":"^21.1.1","react":"^18.2.0","eslint":"^8.37.0","vitest":"^0.31.0","react-dom":"^18.2.0","@vitest/ui":"^0.31.0","@types/react":"^18.0.28","@types/react-dom":"^18.0.11","react-router-dom":"^6.10.0","vite-plugin-svgr":"^3.2.0","@vitest/coverage-c8":"^0.31.0","eslint-plugin-react":"^7.32.2","@vitejs/plugin-react":"^3.1.0","@abw/badger-timestamp":"^1.0.4","@testing-library/react":"^14.0.0","react-syntax-highlighter":"^15.5.0","@testing-library/jest-dom":"^5.16.5","@testing-library/user-event":"^14.4.3"},"peerDependencies":{"react":"^18.2.0","react-dom":"^18.2.0"},"_npmOperationalInternal":{"tmp":"tmp/react-night-and-day_0.0.2_1684175655280_0.15746449894966963","host":"s3://npm-registry-packages"}},"0.0.3":{"name":"@abw/react-night-and-day","version":"0.0.3","keywords":["react","theme","switch","light","dark"],"author":{"name":"Andy Wardley"},"license":"ISC","_id":"@abw/react-night-and-day@0.0.3","maintainers":[{"name":"abw","email":"abw@wardley.org"}],"homepage":"https://abw.github.io/react-night-and-day/","bugs":{"url":"https://github.com/abw/react-night-and-day/issues"},"dist":{"shasum":"eb0a95b328348ea9963c15d04869ace0b93a5bde","tarball":"https://registry.npmjs.org/@abw/react-night-and-day/-/react-night-and-day-0.0.3.tgz","fileCount":6,"integrity":"sha512-spSyck1xURLRB7PP4QiJVlMof8t+WZ28NmfLWVVFjnq/fhfGRGdpk91LlZdvt+Qt74d10FhInLm1CfW9a7Uopw==","signatures":[{"sig":"MEUCIFLxSyZEtAa4UFlCVxvgJATtJPE2VXIOej32NZis8/HKAiEAnsUciBRsYHqs+pkHfWvHs1d7C2b3OjrEaTMs8PpMeHM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":16050},"main":"./dist/react-night-and-day.umd.cjs","type":"module","_from":"file:abw-react-night-and-day-0.0.3.tgz","module":"./dist/react-night-and-day.js","exports":{".":{"import":"./dist/react-night-and-day.js","require":"./dist/react-night-and-day.umd.cjs"},"./styles/*":"./dist/styles/*"},"scripts":{"dev":"vite","lint":"eslint 'src/**/*.{js,jsx}' 'lib/**/*.{js,jsx}'","test":"vitest --ui --coverage","build":"vite build","preview":"vite preview --outDir docs --config vite.docs.js","build:docs":"vite build --outDir docs --config vite.docs.js"},"_npmUser":{"name":"abw","email":"abw@wardley.org"},"_resolved":"/private/var/folders/jw/y_b__hgj1n39hh2qgp9s8dnc0000gn/T/daa2252c4478da06983e2f0ef055e269/abw-react-night-and-day-0.0.3.tgz","_integrity":"sha512-spSyck1xURLRB7PP4QiJVlMof8t+WZ28NmfLWVVFjnq/fhfGRGdpk91LlZdvt+Qt74d10FhInLm1CfW9a7Uopw==","repository":{"url":"git+https://github.com/abw/react-night-and-day.git","type":"git"},"_npmVersion":"8.19.2","description":"A simple React library for switching between light and dark themes","directories":{},"_nodeVersion":"18.12.1","_hasShrinkwrap":false,"devDependencies":{"sass":"^1.60.0","vite":"^4.2.0","jsdom":"^21.1.1","react":"^18.2.0","eslint":"^8.37.0","vitest":"^0.31.0","react-dom":"^18.2.0","@vitest/ui":"^0.31.0","@types/react":"^18.0.28","@types/react-dom":"^18.0.11","react-router-dom":"^6.10.0","vite-plugin-svgr":"^3.2.0","@abw/badger-utils":"^1.0.19","@vitest/coverage-c8":"^0.31.0","eslint-plugin-react":"^7.32.2","@vitejs/plugin-react":"^3.1.0","@abw/badger-timestamp":"^1.0.4","@testing-library/react":"^14.0.0","react-syntax-highlighter":"^15.5.0","@testing-library/jest-dom":"^5.16.5","@testing-library/user-event":"^14.4.3"},"peerDependencies":{"react":"^18.2.0","react-dom":"^18.2.0"},"_npmOperationalInternal":{"tmp":"tmp/react-night-and-day_0.0.3_1684233932914_0.0707773402822176","host":"s3://npm-registry-packages"}},"0.0.4":{"name":"@abw/react-night-and-day","version":"0.0.4","keywords":["react","theme","switch","light","dark"],"author":{"name":"Andy Wardley"},"license":"ISC","_id":"@abw/react-night-and-day@0.0.4","maintainers":[{"name":"abw","email":"abw@wardley.org"}],"homepage":"https://abw.github.io/react-night-and-day/","bugs":{"url":"https://github.com/abw/react-night-and-day/issues"},"dist":{"shasum":"b67942af35b96fea1f59f6b4b16535f5cdcad5ed","tarball":"https://registry.npmjs.org/@abw/react-night-and-day/-/react-night-and-day-0.0.4.tgz","fileCount":7,"integrity":"sha512-Y2tjOLIdjza45X4Xcx2f3JrSI/qDKFQKzqRHNfgtXc1OwDyFYfSGyzdn/uM4SHUN1dKGdPDYZFEyK2PjHAKWtw==","signatures":[{"sig":"MEQCIDXmZHviE8CFm9nCpM+V7qOFUA7CLNFm95jGjNPJ+I8gAiBxcZjX6mCSjkfVfA4D9+b57PF193wUG2cB2OFoQ9A9Pg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":18342},"main":"./dist/react-night-and-day.umd.cjs","type":"module","_from":"file:abw-react-night-and-day-0.0.4.tgz","module":"./dist/react-night-and-day.js","exports":{".":{"import":"./dist/react-night-and-day.js","require":"./dist/react-night-and-day.umd.cjs"},"./styles/*":"./dist/styles/*"},"scripts":{"dev":"vite","lint":"eslint 'src/**/*.{js,jsx}' 'lib/**/*.{js,jsx}'","test":"vitest --ui --coverage","build":"vite build","preview":"vite preview --outDir docs --config vite.docs.js","build:docs":"vite build --outDir docs --config vite.docs.js"},"_npmUser":{"name":"abw","email":"abw@wardley.org"},"_resolved":"/private/var/folders/jw/y_b__hgj1n39hh2qgp9s8dnc0000gn/T/c95c5f5c58eac70369fec7fb192c8dd1/abw-react-night-and-day-0.0.4.tgz","_integrity":"sha512-Y2tjOLIdjza45X4Xcx2f3JrSI/qDKFQKzqRHNfgtXc1OwDyFYfSGyzdn/uM4SHUN1dKGdPDYZFEyK2PjHAKWtw==","repository":{"url":"git+https://github.com/abw/react-night-and-day.git","type":"git"},"_npmVersion":"8.19.2","description":"A simple React library for switching between light and dark themes","directories":{},"_nodeVersion":"18.12.1","_hasShrinkwrap":false,"devDependencies":{"sass":"^1.60.0","vite":"^4.2.0","jsdom":"^21.1.1","react":"^18.2.0","eslint":"^8.37.0","vitest":"^0.31.0","react-dom":"^18.2.0","@vitest/ui":"^0.31.0","@types/react":"^18.0.28","@types/react-dom":"^18.0.11","react-router-dom":"^6.10.0","vite-plugin-svgr":"^3.2.0","@abw/badger-utils":"^1.0.19","@vitest/coverage-c8":"^0.31.0","eslint-plugin-react":"^7.32.2","@vitejs/plugin-react":"^3.1.0","@abw/badger-timestamp":"^1.0.4","@testing-library/react":"^14.0.0","react-syntax-highlighter":"^15.5.0","@testing-library/jest-dom":"^5.16.5","@testing-library/user-event":"^14.4.3"},"peerDependencies":{"react":"^18.2.0","react-dom":"^18.2.0"},"_npmOperationalInternal":{"tmp":"tmp/react-night-and-day_0.0.4_1684477383277_0.39968671567495284","host":"s3://npm-registry-packages"}},"0.0.5":{"name":"@abw/react-night-and-day","version":"0.0.5","keywords":["react","theme","switch","light","dark"],"author":{"name":"Andy Wardley"},"license":"ISC","_id":"@abw/react-night-and-day@0.0.5","maintainers":[{"name":"abw","email":"abw@wardley.org"}],"homepage":"https://abw.github.io/react-night-and-day/","bugs":{"url":"https://github.com/abw/react-night-and-day/issues"},"dist":{"shasum":"85ca08b1fdbb1bea1ee6dc00686b213870aa47a1","tarball":"https://registry.npmjs.org/@abw/react-night-and-day/-/react-night-and-day-0.0.5.tgz","fileCount":7,"integrity":"sha512-CiBOTtno1CMNZZ0njY8v19RYq2NyaGbXNTeu9kTeOushQdpzPaUNm04qqFKsYoB5Ag+P+dtaYvTcw2HAR84Euw==","signatures":[{"sig":"MEQCIHEuvKiGDAb5NKuRWd8tUoxJ+eduQp6pmcRce+YovDboAiACiBnSUwp+dJXDbt8mDMvYsUG+A72tjeKp8KmhbZTnUA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":18342},"main":"./dist/react-night-and-day.umd.cjs","type":"module","_from":"file:abw-react-night-and-day-0.0.5.tgz","module":"./dist/react-night-and-day.js","exports":{".":{"import":"./dist/react-night-and-day.js","require":"./dist/react-night-and-day.umd.cjs"},"./styles/*":"./dist/styles/*"},"scripts":{"dev":"vite","lint":"eslint 'src/**/*.{js,jsx}' 'lib/**/*.{js,jsx}'","test":"vitest --ui --coverage","build":"vite build","preview":"vite preview --outDir docs --config vite.docs.js","build:docs":"vite build --outDir docs --config vite.docs.js"},"_npmUser":{"name":"abw","email":"abw@wardley.org"},"_resolved":"/private/var/folders/jw/y_b__hgj1n39hh2qgp9s8dnc0000gn/T/52486abd13bb98fc3f5913999133c63f/abw-react-night-and-day-0.0.5.tgz","_integrity":"sha512-CiBOTtno1CMNZZ0njY8v19RYq2NyaGbXNTeu9kTeOushQdpzPaUNm04qqFKsYoB5Ag+P+dtaYvTcw2HAR84Euw==","repository":{"url":"git+https://github.com/abw/react-night-and-day.git","type":"git"},"_npmVersion":"8.19.2","description":"A simple React library for switching between light and dark themes","directories":{},"_nodeVersion":"18.12.1","_hasShrinkwrap":false,"devDependencies":{"sass":"^1.60.0","vite":"^4.2.0","jsdom":"^21.1.1","react":"^18.2.0","eslint":"^8.37.0","vitest":"^0.31.0","react-dom":"^18.2.0","@vitest/ui":"^0.31.0","@types/react":"^18.0.28","@types/react-dom":"^18.0.11","react-router-dom":"^6.10.0","vite-plugin-svgr":"^3.2.0","@abw/badger-utils":"^1.0.19","@vitest/coverage-c8":"^0.31.0","eslint-plugin-react":"^7.32.2","@vitejs/plugin-react":"^3.1.0","@abw/badger-timestamp":"^1.0.4","@testing-library/react":"^14.0.0","react-syntax-highlighter":"^15.5.0","@testing-library/jest-dom":"^5.16.5","@testing-library/user-event":"^14.4.3"},"peerDependencies":{"react":"^18.2.0","react-dom":"^18.2.0"},"_npmOperationalInternal":{"tmp":"tmp/react-night-and-day_0.0.5_1684840293754_0.4497261658953806","host":"s3://npm-registry-packages"}},"0.0.6":{"name":"@abw/react-night-and-day","version":"0.0.6","keywords":["react","theme","switch","light","dark"],"author":{"name":"Andy Wardley"},"license":"ISC","_id":"@abw/react-night-and-day@0.0.6","maintainers":[{"name":"abw","email":"abw@wardley.org"}],"homepage":"https://abw.github.io/react-night-and-day/","bugs":{"url":"https://github.com/abw/react-night-and-day/issues"},"dist":{"shasum":"a41f8a3196828988bbd7856fff2e24f396a4b1ad","tarball":"https://registry.npmjs.org/@abw/react-night-and-day/-/react-night-and-day-0.0.6.tgz","fileCount":7,"integrity":"sha512-HVvyYuRxs8soPO1c/AFQqylx6uQqe9OHvxdJVVCzOtEtDYRFyM5NGY5Ob9ugUrSkg7o1Ru8p1vDfAJ+7/nyMvQ==","signatures":[{"sig":"MEUCIQD2nYj0p0azVwlwsd38dxjkc9FhC8bfbDQjtgMvJj3wFQIgIfVlMNBi0r2aoU/VjqUVfAd7IOc5Ku0hZbUnH9T4Bgk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":18499},"main":"./dist/react-night-and-day.umd.cjs","type":"module","_from":"file:abw-react-night-and-day-0.0.6.tgz","module":"./dist/react-night-and-day.js","exports":{".":{"import":"./dist/react-night-and-day.js","require":"./dist/react-night-and-day.umd.cjs"},"./styles/*":"./dist/styles/*"},"scripts":{"dev":"vite","lint":"eslint 'src/**/*.{js,jsx}' 'lib/**/*.{js,jsx}'","test":"vitest --ui --coverage","build":"vite build","preview":"vite preview --outDir docs --config vite.docs.js","build:docs":"vite build --outDir docs --config vite.docs.js"},"_npmUser":{"name":"abw","email":"abw@wardley.org"},"_resolved":"/private/var/folders/jw/y_b__hgj1n39hh2qgp9s8dnc0000gn/T/266d27fa224c096598631d78596e88a1/abw-react-night-and-day-0.0.6.tgz","_integrity":"sha512-HVvyYuRxs8soPO1c/AFQqylx6uQqe9OHvxdJVVCzOtEtDYRFyM5NGY5Ob9ugUrSkg7o1Ru8p1vDfAJ+7/nyMvQ==","repository":{"url":"git+https://github.com/abw/react-night-and-day.git","type":"git"},"_npmVersion":"8.19.2","description":"A simple React library for switching between light and dark themes","directories":{},"_nodeVersion":"18.12.1","_hasShrinkwrap":false,"devDependencies":{"sass":"^1.66.1","vite":"^4.4.9","jsdom":"^21.1.2","react":"^18.2.0","eslint":"^8.48.0","vitest":"^0.31.4","react-dom":"^18.2.0","@vitest/ui":"^0.31.4","@types/react":"^18.2.21","@types/react-dom":"^18.2.7","react-router-dom":"^6.15.0","vite-plugin-svgr":"^3.2.0","@abw/badger-utils":"^1.0.21","@vitest/coverage-c8":"^0.31.4","eslint-plugin-react":"^7.33.2","@vitejs/plugin-react":"^3.1.0","@abw/badger-timestamp":"^1.0.4","@testing-library/react":"^14.0.0","react-syntax-highlighter":"^15.5.0","@testing-library/jest-dom":"^5.17.0","@testing-library/user-event":"^14.4.3"},"peerDependencies":{"react":"^18.2.0","react-dom":"^18.2.0"},"_npmOperationalInternal":{"tmp":"tmp/react-night-and-day_0.0.6_1693303045147_0.5094394718503448","host":"s3://npm-registry-packages"}},"1.0.0-alpha-1":{"name":"@abw/react-night-and-day","version":"1.0.0-alpha-1","keywords":["react","theme","switch","light","dark"],"author":{"name":"Andy Wardley"},"license":"ISC","_id":"@abw/react-night-and-day@1.0.0-alpha-1","maintainers":[{"name":"abw","email":"abw@wardley.org"}],"homepage":"https://badgerpower.com/react-night-and-day/","bugs":{"url":"https://github.com/abw/react-night-and-day/issues"},"dist":{"shasum":"7920174b14f1e6a17d1a9acf87a755e4764e84d9","tarball":"https://registry.npmjs.org/@abw/react-night-and-day/-/react-night-and-day-1.0.0-alpha-1.tgz","fileCount":20,"integrity":"sha512-0MUZTHjD1BM6kV+T1nrvKISGyY7r0JVIXjIvPnVFTx7hPBlI2713ohCy6aE1Or4oZaN6lZiQcVVdB0nStvQgiA==","signatures":[{"sig":"MEUCIQC610O/xLaLhyZjvOjKUHAIb3oUpDkWv6OxsiT3Sj98aAIgTvp75elURYdGG5EedpKKvpKB8ZwXQRk/Ir3DHyapiXA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":23232},"main":"./dist/react-night-and-day.umd.cjs","type":"module","_from":"file:abw-react-night-and-day-1.0.0-alpha-1.tgz","types":"./dist/index.d.ts","module":"./dist/react-night-and-day.js","exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/react-night-and-day.js"},"require":"./dist/react-night-and-day.umd.cjs"},"./styles/*":"./dist/styles/*"},"scripts":{"dev":"vite --config vite.docs.js","lint":"eslint 'lib/**/*.{js,jsx,ts,tsx}'","test":"vitest --ui --coverage","build":"$npm_execpath build:lib && $npm_execpath build:docs","preview":"vite preview --config vite.docs.js","build:lib":"vite build","build:docs":"vite build --config vite.docs.js"},"_npmUser":{"name":"abw","email":"abw@wardley.org"},"_resolved":"/private/var/folders/jw/y_b__hgj1n39hh2qgp9s8dnc0000gn/T/f152cf7f3d8bc4d1e142aa4022492197/abw-react-night-and-day-1.0.0-alpha-1.tgz","_integrity":"sha512-0MUZTHjD1BM6kV+T1nrvKISGyY7r0JVIXjIvPnVFTx7hPBlI2713ohCy6aE1Or4oZaN6lZiQcVVdB0nStvQgiA==","repository":{"url":"git+https://github.com/abw/react-night-and-day.git","type":"git"},"_npmVersion":"10.2.3","description":"A simple React library for switching between light and dark themes","directories":{},"_nodeVersion":"20.10.0","_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"sass":"^1.66.1","vite":"^6.0.7","jsdom":"^21.1.2","react":"^18.2.0","eslint":"^9.17.0","vitest":"^2.1.8","globals":"^15.14.0","react-dom":"^18.2.0","@eslint/js":"^9.17.0","@vitest/ui":"^2.1.8","typescript":"^5.7.3","@types/react":"^18.2.21","vite-plugin-dts":"^4.4.0","@eslint/eslintrc":"^3.2.0","@types/react-dom":"^18.2.7","react-router-dom":"^6.15.0","vite-plugin-svgr":"^4.3.0","@abw/badger-utils":"^1.2.1","typescript-eslint":"^8.19.1","@vitest/coverage-v8":"^2.1.8","eslint-plugin-react":"^7.37.3","@vitejs/plugin-react":"^4.3.4","@abw/badger-timestamp":"^1.2.0","@testing-library/react":"^14.0.0","react-syntax-highlighter":"^15.5.0","@testing-library/jest-dom":"^5.17.0","@testing-library/user-event":"^14.4.3"},"peerDependencies":{"react":"^18.2.0","react-dom":"^18.2.0"},"_npmOperationalInternal":{"tmp":"tmp/react-night-and-day_1.0.0-alpha-1_1736448242548_0.47160100715189324","host":"s3://npm-registry-packages-npm-production"}},"1.0.0":{"name":"@abw/react-night-and-day","version":"1.0.0","description":"A simple React library for switching between light and dark themes","type":"module","main":"./dist/react-night-and-day.umd.cjs","module":"./dist/react-night-and-day.js","types":"./dist/index.d.ts","exports":{".":{"require":"./dist/react-night-and-day.umd.cjs","import":{"types":"./dist/index.d.ts","default":"./dist/react-night-and-day.js"}},"./styles/*":"./dist/styles/*"},"author":{"name":"Andy Wardley"},"license":"ISC","keywords":["react","theme","switch","light","dark"],"homepage":"https://badgerpower.com/react-night-and-day/","repository":{"type":"git","url":"git+https://github.com/abw/react-night-and-day.git"},"bugs":{"url":"https://github.com/abw/react-night-and-day/issues"},"peerDependencies":{"react":"^18.2.0 || ^19.0.0","react-dom":"^18.2.0 || ^19.0.0"},"devDependencies":{"@abw/badger-timestamp":"^1.2.0","@abw/badger-utils":"^1.2.1","@eslint/eslintrc":"^3.2.0","@eslint/js":"^9.17.0","@testing-library/jest-dom":"^5.17.0","@testing-library/react":"^16.2.0","@testing-library/user-event":"^14.4.3","@types/react":"^18.2.21","@types/react-dom":"^18.2.7","@vitejs/plugin-react":"^4.3.4","@vitest/coverage-v8":"^2.1.8","@vitest/ui":"^2.1.8","eslint":"^9.17.0","eslint-plugin-react":"^7.37.3","globals":"^15.14.0","jsdom":"^21.1.2","react":"^19.0.0","react-dom":"^19.0.0","react-router-dom":"^6.15.0","react-syntax-highlighter":"^15.5.0","sass":"^1.66.1","typescript":"^5.7.3","typescript-eslint":"^8.19.1","vite":"^6.0.7","vite-plugin-dts":"^4.4.0","vite-plugin-svgr":"^4.3.0","vitest":"^2.1.8"},"scripts":{"dev":"vite --config vite.docs.js","test":"vitest --ui --coverage","build":"$npm_execpath build:lib && $npm_execpath build:docs","build:lib":"vite build","build:docs":"vite build --config vite.docs.js","preview":"vite preview --config vite.docs.js","lint":"eslint 'lib/**/*.{js,jsx,ts,tsx}'"},"_id":"@abw/react-night-and-day@1.0.0","_integrity":"sha512-MFLvGLcBFM4wBuNNwya2bAsmeGJMDFsJRcDgb6MLAzD6EoT0F65W1K3KhQFn/3ysUq3COQ2GxogbNYvrMtH6ug==","_resolved":"/private/var/folders/jw/y_b__hgj1n39hh2qgp9s8dnc0000gn/T/3687484de7503ea018b2866bed62cdf3/abw-react-night-and-day-1.0.0.tgz","_from":"file:abw-react-night-and-day-1.0.0.tgz","_nodeVersion":"20.10.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-MFLvGLcBFM4wBuNNwya2bAsmeGJMDFsJRcDgb6MLAzD6EoT0F65W1K3KhQFn/3ysUq3COQ2GxogbNYvrMtH6ug==","shasum":"25573c0eb4c59cc19968189c59268bec595cab09","tarball":"https://registry.npmjs.org/@abw/react-night-and-day/-/react-night-and-day-1.0.0.tgz","fileCount":20,"unpackedSize":23246,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIDAnaMs6H5WjYcDJYYYFNE1v3PRl0DHSCN4rBtHBn7K+AiBjH36c1CEqgIgnxUwFey2b5jR/3CPUf8Ba/uCc2inA2Q=="}]},"_npmUser":{"name":"abw","email":"abw@wardley.org"},"directories":{},"maintainers":[{"name":"abw","email":"abw@wardley.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/react-night-and-day_1.0.0_1740310205144_0.2560278392765749"},"_hasShrinkwrap":false}},"time":{"created":"2023-05-15T18:31:17.600Z","modified":"2025-02-23T11:30:05.499Z","0.0.1":"2023-05-15T18:31:17.866Z","0.0.2":"2023-05-15T18:34:15.405Z","0.0.3":"2023-05-16T10:45:33.124Z","0.0.4":"2023-05-19T06:23:03.426Z","0.0.5":"2023-05-23T11:11:33.909Z","0.0.6":"2023-08-29T09:57:25.391Z","1.0.0-alpha-1":"2025-01-09T18:44:02.711Z","1.0.0":"2025-02-23T11:30:05.334Z"},"bugs":{"url":"https://github.com/abw/react-night-and-day/issues"},"author":{"name":"Andy Wardley"},"license":"ISC","homepage":"https://badgerpower.com/react-night-and-day/","keywords":["react","theme","switch","light","dark"],"repository":{"type":"git","url":"git+https://github.com/abw/react-night-and-day.git"},"description":"A simple React library for switching between light and dark themes","maintainers":[{"name":"abw","email":"abw@wardley.org"}],"readme":"# react-night-and-day\n\nThis is a simple React library for switching between light and dark themes.\n\nIt respects the user preference set in their browser, detects\nchanges to that preference, and allows the theme to be toggled\nmanually.\n\nAs well as toggling between `light` and `dark` themes it allows you to define\nyour own theme variants.\n\nIt also supports an option to store the user's selected theme (and any\nvariant) in local storage so the site \"remembers\" their preferences for the\nnext time they visit.\n\n## Documentation and Demos\n\nSee the [documentation site](https://abw.github.io/react-night-and-day/)\nfor a demo and detailed documentation.\n\n## Getting Started\n\nAdd the `@abw/react-night-and-day` module to your project using your favourite\npackage manager.\n\n```bash\n## using npm\n$ npm add @abw/react-night-and-day\n\n## using yarn\n$ yarn add @abw/react-night-and-day\n\n## using pnpm\n$ pnpm add @abw/react-night-and-day\n```\n\n## ThemeProvider\n\nAdd the `ThemeProvider` around your application code.\n\n```jsx\nimport React from 'react'\nimport ReactDOM from 'react-dom/client'\nimport YourAppCode from './YourAppCode.jsx'\nimport { ThemeProvider } from '@abw/react-night-and-day'\n\nReactDOM\n  .createRoot( document.getElementById('root') )\n  .render(\n    <React.StrictMode>\n      <ThemeProvider>   {/* add this */}\n        <YourAppCode/>\n      </ThemeProvider>  {/* and this */}\n    </React.StrictMode>,\n  )\n```\n\n## useTheme()\n\nCall `useTheme()` to access the theme state and functions to change the theme.\n\n```jsx\nimport React from 'react'\nimport { useTheme } from '@abw/react-night-and-day'\n\nconst UseThemeExample = () => {\n  const {\n    theme,        // 'light' or 'dark'\n    isDark,       // true if dark theme selected\n    isLight,      // true if light theme selected\n    setDark,      // set theme to 'dark'\n    setLight,     // set theme to 'light'\n    toggleTheme,  // toggle theme between 'light' and 'dark'\n  } = useTheme()\n\n  return (\n    <>\n      <p>\n        The theme is currently {theme}.<br/>\n        It {isLight ? 'is' : 'is not'} light.<br/>\n        It {isDark  ? 'is' : 'is not'} dark.<br/>\n      </p>\n      <button onClick={setLight}>Set Light</button>\n      <button onClick={setDark}>Set Dark</button>\n      <button onClick={toggleTheme}>Toggle Theme</button>\n    </>\n  )\n}\n\nexport default UseThemeExample\n```\n\n## Notes for Maintainers\n\nCheck out the repository.\n\n```bash\n$ git clone https://github.com/abw/react-night-and-day.git\n$ cd react-night-and-day\n```\n\nInstall the dependencies.\n\n```bash\n$ pnpm install\n```\n\nTo run the development server.\n\n```bash\n$ pnpm dev\n```\n\nTo run the tests.\n\n```bash\n$ pnpm test\n```\n\nTo build for production.\n\n```bash\n$ pnpm build\n```\n\nTo build the documentation.\n\n```bash\n$ pnpm build:docs\n```\n\nTo preview the documentation.\n\n```bash\n$ pnpm preview\n```\n\nCheck source code for formatting errors.\n\n```bash\n$ pnpm lint\n```\n\n\n## Project Structure\n\nThe main project code is in the `lib` directory.  The `index.jsx` is the\nmain entry point.\n\nRunning `pnpm build` creates a production build in the `dist`\ndirectory.\n\nThe `src` directory contains the web site for development, testing and\ndocumentation.  The `index.html` is the main entry point.\n\nRunning `pnpm dev` runs a development web server for the site.\n\nRunning `pnpm build:docs` builds the site and saves the bundled\noutput in the `docs` directory.  Any additional resources in the `public`\ndirectory will be included in there.\n\nThe `styles` directory contains SASS stylesheets used by the web site.\nThe `main.scss` file is the main stylesheet which is imported into\n`src/main.jsx`.\n\nThe `test` directory contains test scripts which will be run by\n`pnpm test`.  The `test/setup.js` file is a special setup file.\nAny files in `test/lib` are assumed to be components used by tests and\nare not test scripts in their own right.  They are ignored by the test\nrunner.\n\n## Author\n\nAndy Wardley","readmeFilename":"README.md"}