{"_id":"react-toggled","_rev":"18-8a271948cecb9a421e4d03b64259a563","name":"react-toggled","description":"Component to build simple, flexible, and accessible toggle components.","dist-tags":{"latest":"1.2.7"},"versions":{"1.0.0":{"name":"react-toggled","version":"1.0.0","description":"A set of primitives to build simple, flexible, WAI-ARIA compliant React autocomplete components","main":"dist/react-toggled.cjs.js","jsnext:main":"dist/react-toggled.es.js","module":"dist/react-toggled.es.js","scripts":{"start":"nps","test":"nps test","precommit":"lint-staged && opt --in pre-commit --exec \"npm start validate\""},"files":["dist","typings"],"keywords":["toggle","react","accessibility","WAI-ARIA"],"author":{"name":"Kent C. Dodds","email":"kent@doddsfamily.us","url":"http://kentcdodds.com/"},"license":"MIT","peerDependencies":{"react":">=15","prop-types":">=15"},"devDependencies":{"@storybook/react":"^3.2.3","all-contributors-cli":"^4.3.0","babel-cli":"^6.24.1","babel-jest":"^20.0.3","babel-plugin-external-helpers":"^6.22.0","babel-plugin-transform-class-properties":"^6.24.1","babel-plugin-transform-inline-environment-variables":"^0.1.1","babel-plugin-transform-object-rest-spread":"^6.23.0","babel-plugin-transform-react-jsx":"^6.24.1","babel-plugin-transform-react-remove-prop-types":"^0.4.8","babel-preset-env":"^1.6.0","babel-preset-react":"^6.24.1","babel-register":"^6.24.1","enzyme":"^2.9.1","enzyme-to-json":"^1.5.1","eslint":"^4.2.0","eslint-config-kentcdodds":"^12.4.2","husky":"^0.14.3","jest":"^20.0.4","jest-serializer-html":"^4.0.0","lint-staged":"^4.0.1","nps":"^5.4.0","nps-utils":"^1.2.0","opt-cli":"^1.5.1","preact":"^8.2.1","preact-render-to-string":"^3.6.3","prettier":"^1.6.1","prop-types":"^15.5.10","react":"^15.6.1","react-dom":"^15.6.1","react-test-renderer":"^15.6.1","rollup":"^0.45.2","rollup-plugin-alias":"^1.3.1","rollup-plugin-babel":"^2.7.1","rollup-plugin-commonjs":"^8.1.0","rollup-plugin-json":"^2.3.0","rollup-plugin-node-resolve":"^3.0.0","rollup-plugin-uglify":"^2.0.1","rollup-watch":"^4.3.1"},"lint-staged":{"*.+(js|json)":["prettier --write","git add"]},"prettier":{"semi":false,"singleQuote":true,"trailingComma":"es5","bracketSpacing":false},"repository":{"type":"git","url":"git+https://github.com/kentcdodds/react-toggled.git"},"bugs":{"url":"https://github.com/kentcdodds/react-toggled/issues"},"homepage":"https://github.com/kentcdodds/react-toggled#readme","dependencies":{},"gitHead":"da1e61c37c03d784da6d73cec095b676874251a9","_id":"react-toggled@1.0.0","_npmVersion":"5.3.0","_nodeVersion":"8.4.0","_npmUser":{"name":"kentcdodds","email":"kent@doddsfamily.us"},"dist":{"integrity":"sha512-6iDYaOLJNxpj9mYy8vUMOhBDLQGZeqAdMBx2jxZZrXmFZcQ7SHeDGMzeNrHIaXuXfu/vd+lzt4+ffCnP8RuR4Q==","shasum":"bfc352c2f7adbdaccbf6c8bb883643e35434a11d","tarball":"https://registry.npmjs.org/react-toggled/-/react-toggled-1.0.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHAoXSM+mORQsc07EIIl8/nJDvvKUFh+re8VgOSQlTHdAiEA1cJPl+q21M2SyF24dlLb5u76k/QeklVPVMbAdStxpD8="}]},"maintainers":[{"name":"kentcdodds","email":"kent@doddsfamily.us"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-toggled-1.0.0.tgz_1504202847266_0.7719912519678473"},"directories":{}},"1.0.1":{"name":"react-toggled","version":"1.0.1","description":"A set of primitives to build simple, flexible, WAI-ARIA compliant React autocomplete components","main":"dist/react-toggled.cjs.js","jsnext:main":"dist/react-toggled.es.js","module":"dist/react-toggled.es.js","scripts":{"start":"nps","test":"nps test","precommit":"lint-staged && opt --in pre-commit --exec \"npm start validate\""},"files":["dist","typings"],"keywords":["toggle","react","accessibility","WAI-ARIA"],"author":{"name":"Kent C. Dodds","email":"kent@doddsfamily.us","url":"http://kentcdodds.com/"},"license":"MIT","peerDependencies":{"react":">=15","prop-types":">=15"},"devDependencies":{"@storybook/react":"^3.2.3","all-contributors-cli":"^4.3.0","babel-cli":"^6.24.1","babel-jest":"^20.0.3","babel-plugin-external-helpers":"^6.22.0","babel-plugin-transform-class-properties":"^6.24.1","babel-plugin-transform-inline-environment-variables":"^0.1.1","babel-plugin-transform-object-rest-spread":"^6.23.0","babel-plugin-transform-react-jsx":"^6.24.1","babel-plugin-transform-react-remove-prop-types":"^0.4.8","babel-preset-env":"^1.6.0","babel-preset-react":"^6.24.1","babel-register":"^6.24.1","enzyme":"^2.9.1","enzyme-to-json":"^1.5.1","eslint":"^4.2.0","eslint-config-kentcdodds":"^12.4.2","husky":"^0.14.3","jest":"^20.0.4","jest-serializer-html":"^4.0.0","lint-staged":"^4.0.1","nps":"^5.4.0","nps-utils":"^1.2.0","opt-cli":"^1.5.1","preact":"^8.2.1","preact-render-to-string":"^3.6.3","prettier":"^1.6.1","prop-types":"^15.5.10","react":"^15.6.1","react-dom":"^15.6.1","react-test-renderer":"^15.6.1","rollup":"^0.45.2","rollup-plugin-alias":"^1.3.1","rollup-plugin-babel":"^2.7.1","rollup-plugin-commonjs":"^8.1.0","rollup-plugin-json":"^2.3.0","rollup-plugin-node-resolve":"^3.0.0","rollup-plugin-uglify":"^2.0.1","rollup-watch":"^4.3.1"},"lint-staged":{"*.+(js|json)":["prettier --write","git add"]},"prettier":{"semi":false,"singleQuote":true,"trailingComma":"es5","bracketSpacing":false},"repository":{"type":"git","url":"git+https://github.com/kentcdodds/react-toggled.git"},"bugs":{"url":"https://github.com/kentcdodds/react-toggled/issues"},"homepage":"https://github.com/kentcdodds/react-toggled#readme","dependencies":{},"gitHead":"8d825d499b14e6009d50ceb19542d2c1a4915265","_id":"react-toggled@1.0.1","_npmVersion":"5.3.0","_nodeVersion":"8.4.0","_npmUser":{"name":"kentcdodds","email":"kent@doddsfamily.us"},"dist":{"integrity":"sha512-G9jS5MkX9f+ZPNKrP37USboufNdHInVDXNBYqdVRhy9uWXZDPgLKtqRzKQ8jnaDCyPulPbsowMGoaBluLPK2pw==","shasum":"813549fd22116a9a9f66d5b610e16cc60ae2fe8f","tarball":"https://registry.npmjs.org/react-toggled/-/react-toggled-1.0.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHAA58D3EkCgRXP3z8LAv7OwEcVU6pahZVw7/xZdO1C9AiAS2GY0g9eFZpSm1+KezZGu8myZeV1u0EaxAA4FZjX2GA=="}]},"maintainers":[{"name":"kentcdodds","email":"kent@doddsfamily.us"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-toggled-1.0.1.tgz_1504204096403_0.050156133249402046"},"directories":{}},"1.0.2":{"name":"react-toggled","version":"1.0.2","description":"A set of primitives to build simple, flexible, WAI-ARIA compliant React autocomplete components","main":"dist/react-toggled.cjs.js","jsnext:main":"dist/react-toggled.es.js","module":"dist/react-toggled.es.js","scripts":{"start":"nps","test":"nps test","precommit":"lint-staged && opt --in pre-commit --exec \"npm start validate\""},"files":["dist","typings"],"keywords":["toggle","react","accessibility","WAI-ARIA"],"author":{"name":"Kent C. Dodds","email":"kent@doddsfamily.us","url":"http://kentcdodds.com/"},"license":"MIT","peerDependencies":{"react":">=15","prop-types":">=15"},"devDependencies":{"@storybook/react":"^3.2.3","all-contributors-cli":"^4.3.0","babel-cli":"^6.24.1","babel-jest":"^20.0.3","babel-plugin-external-helpers":"^6.22.0","babel-plugin-transform-class-properties":"^6.24.1","babel-plugin-transform-inline-environment-variables":"^0.1.1","babel-plugin-transform-object-rest-spread":"^6.23.0","babel-plugin-transform-react-jsx":"^6.24.1","babel-plugin-transform-react-remove-prop-types":"^0.4.8","babel-preset-env":"^1.6.0","babel-preset-react":"^6.24.1","babel-register":"^6.24.1","enzyme":"^2.9.1","enzyme-to-json":"^1.5.1","eslint":"^4.2.0","eslint-config-kentcdodds":"^12.4.2","husky":"^0.14.3","jest":"^20.0.4","jest-serializer-html":"^4.0.0","lint-staged":"^4.0.1","nps":"^5.4.0","nps-utils":"^1.2.0","opt-cli":"^1.5.1","preact":"^8.2.1","preact-render-to-string":"^3.6.3","prettier":"^1.6.1","prop-types":"^15.5.10","react":"^15.6.1","react-dom":"^15.6.1","react-test-renderer":"^15.6.1","rollup":"^0.45.2","rollup-plugin-alias":"^1.3.1","rollup-plugin-babel":"^2.7.1","rollup-plugin-commonjs":"^8.1.0","rollup-plugin-json":"^2.3.0","rollup-plugin-node-resolve":"^3.0.0","rollup-plugin-uglify":"^2.0.1","rollup-watch":"^4.3.1"},"lint-staged":{"*.+(js|json)":["prettier --write","git add"]},"prettier":{"semi":false,"singleQuote":true,"trailingComma":"es5","bracketSpacing":false},"repository":{"type":"git","url":"git+https://github.com/kentcdodds/react-toggled.git"},"bugs":{"url":"https://github.com/kentcdodds/react-toggled/issues"},"homepage":"https://github.com/kentcdodds/react-toggled#readme","dependencies":{},"gitHead":"3c84bfec5851626ac09d4967d1c12fc160bf2f48","_id":"react-toggled@1.0.2","_npmVersion":"5.3.0","_nodeVersion":"8.4.0","_npmUser":{"name":"kentcdodds","email":"kent@doddsfamily.us"},"dist":{"integrity":"sha512-FMEuU33y4+3jrCPwdW5EYNZ4XlKwn4K0hHUmvTVn7DdkfT8vAsB6MWgJ0EDFuXYVTvxF5U58i+56oz82hJeGjg==","shasum":"88a7f60c12269e5b72dc91e5ccc9c02d1d367594","tarball":"https://registry.npmjs.org/react-toggled/-/react-toggled-1.0.2.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD0EooEwpUOHfO87dXleUhucPrEAGOzXDtfsErxk01w6AIhAMV3kHZPyNhLxr1D6W/AKOKCWb4ZiAnhtfVUW0G8F0Qa"}]},"maintainers":[{"name":"kentcdodds","email":"kent@doddsfamily.us"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-toggled-1.0.2.tgz_1504217218957_0.42486219853162766"},"directories":{}},"1.1.0":{"name":"react-toggled","version":"1.1.0","description":"Component to build simple, flexible, and accessible toggle components.","main":"dist/react-toggled.cjs.js","jsnext:main":"dist/react-toggled.es.js","module":"dist/react-toggled.es.js","scripts":{"start":"nps","test":"nps test","precommit":"lint-staged && opt --in pre-commit --exec \"npm start validate\""},"files":["dist","typings"],"keywords":["toggle","react","accessibility","WAI-ARIA"],"author":{"name":"Kent C. Dodds","email":"kent@doddsfamily.us","url":"http://kentcdodds.com/"},"license":"MIT","peerDependencies":{"react":">=15","prop-types":">=15"},"devDependencies":{"@storybook/react":"^3.2.3","all-contributors-cli":"^4.3.0","babel-cli":"^6.24.1","babel-jest":"^20.0.3","babel-plugin-external-helpers":"^6.22.0","babel-plugin-transform-class-properties":"^6.24.1","babel-plugin-transform-inline-environment-variables":"^0.1.1","babel-plugin-transform-object-rest-spread":"^6.23.0","babel-plugin-transform-react-jsx":"^6.24.1","babel-plugin-transform-react-remove-prop-types":"^0.4.8","babel-preset-env":"^1.6.0","babel-preset-react":"^6.24.1","babel-register":"^6.24.1","enzyme":"^2.9.1","enzyme-to-json":"^1.5.1","eslint":"^4.2.0","eslint-config-kentcdodds":"^12.4.2","husky":"^0.14.3","jest":"^20.0.4","jest-serializer-html":"^4.0.0","lint-staged":"^4.0.1","nps":"^5.4.0","nps-utils":"^1.2.0","opt-cli":"^1.5.1","preact":"^8.2.1","preact-render-to-string":"^3.6.3","prettier":"^1.6.1","prop-types":"^15.5.10","react":"^15.6.1","react-dom":"^15.6.1","react-test-renderer":"^15.6.1","rollup":"^0.45.2","rollup-plugin-alias":"^1.3.1","rollup-plugin-babel":"^2.7.1","rollup-plugin-commonjs":"^8.1.0","rollup-plugin-json":"^2.3.0","rollup-plugin-node-resolve":"^3.0.0","rollup-plugin-uglify":"^2.0.1","rollup-watch":"^4.3.1"},"lint-staged":{"*.+(js|json)":["prettier --write","git add"]},"prettier":{"semi":false,"singleQuote":true,"trailingComma":"es5","bracketSpacing":false},"repository":{"type":"git","url":"git+https://github.com/kentcdodds/react-toggled.git"},"bugs":{"url":"https://github.com/kentcdodds/react-toggled/issues"},"homepage":"https://github.com/kentcdodds/react-toggled#readme","dependencies":{},"gitHead":"0df56371fac3bc596dc0a2720c1cf36e69dbd4cb","_id":"react-toggled@1.1.0","_npmVersion":"5.3.0","_nodeVersion":"8.6.0","_npmUser":{"name":"kentcdodds","email":"kent@doddsfamily.us"},"dist":{"integrity":"sha512-2WZUk6Oi8dQtlLWP/4MBNZEKibf7xx2xIBAZGvuCDf1GKnk5mv1BWShJ8DY+vZcC5uCEGbG9VDTUTNgAOgQdog==","shasum":"a665adbba1e2a46c87174b70a41f029b3d376139","tarball":"https://registry.npmjs.org/react-toggled/-/react-toggled-1.1.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDnBED4yBvL5Qk3szt+IQqAPmSIWvT3tMYjpTYvbVs2jQIgfAfZ4AiqIUX/Ss5UwInso7svl996xhH0UQ4pQW1TfbA="}]},"maintainers":[{"name":"kentcdodds","email":"kent@doddsfamily.us"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-toggled-1.1.0.tgz_1507615272776_0.21895797341130674"},"directories":{}},"1.1.1":{"name":"react-toggled","version":"1.1.1","description":"Component to build simple, flexible, and accessible toggle components.","main":"dist/react-toggled.cjs.js","jsnext:main":"dist/react-toggled.esm.js","module":"dist/react-toggled.esm.js","scripts":{"add-contributor":"kcd-scripts contributors add","build":"kcd-scripts build --bundle --p-react","lint":"kcd-scripts lint","test":"kcd-scripts test","test:cover":"kcd-scripts test --coverage","test:update":"npm run test:cover -s -- --updateSnapshot","test:build":"kcd-scripts test --config other/misc-tests/jest.config.js --no-watch","build-and-test":"npm run build -s && npm run test:build -s","storybook":"start-storybook -p 6006 -c stories","storybook:build":"cd stories && npm install && cd .. && build-storybook -c stories","validate":"kcd-scripts validate lint,build-and-test,test:cover","precommit":"kcd-scripts precommit"},"files":["dist","typings","preact"],"keywords":["toggle","react","accessibility","WAI-ARIA"],"author":{"name":"Kent C. Dodds","email":"kent@doddsfamily.us","url":"http://kentcdodds.com/"},"license":"MIT","peerDependencies":{"react":">=15","prop-types":">=15"},"devDependencies":{"@storybook/react":"^3.2.3","enzyme":"^3.1.0","enzyme-adapter-react-16":"^1.0.1","enzyme-to-json":"^3.1.2","jest-serializer-html":"^4.0.0","kcd-scripts":"^0.24.0","preact":"^8.2.1","preact-render-to-string":"^3.6.3","prop-types":"^15.5.10","react":"^16.0.0","react-dom":"^16.0.0","react-test-renderer":"^16.0.0"},"eslintConfig":{"extends":"./node_modules/kcd-scripts/eslint.js"},"eslintIgnore":["node_modules","coverage","dist","storybook-static","typings"],"repository":{"type":"git","url":"git+https://github.com/kentcdodds/react-toggled.git"},"bugs":{"url":"https://github.com/kentcdodds/react-toggled/issues"},"homepage":"https://github.com/kentcdodds/react-toggled#readme","dependencies":{},"gitHead":"18e0add7fc4f1ef321c4f135ebf9f82ba28490f8","_id":"react-toggled@1.1.1","_npmVersion":"5.3.0","_nodeVersion":"8.6.0","_npmUser":{"name":"kentcdodds","email":"kent@doddsfamily.us"},"dist":{"integrity":"sha512-N5HAuIlsOlS2+hhZW4nflJiGZoBBJJKzFVJgkgvStR+0LJFz0ETd8fF2ViKGbIhbtbcMFVCu2mh5YnOiErpR+g==","shasum":"f2fa332f64c7d20487fd9dd91b307345bec97fc3","tarball":"https://registry.npmjs.org/react-toggled/-/react-toggled-1.1.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIF7cCp1TK1Ms1c5jos5VXormdOCNU7Q6/R9PwERtyE/+AiEA/1A391M0lXLi0zfaQrH+IAEL663JJAzcVxas5c7JD5o="}]},"maintainers":[{"name":"kentcdodds","email":"kent@doddsfamily.us"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-toggled-1.1.1.tgz_1507616743294_0.5986888287588954"},"directories":{}},"1.1.2":{"name":"react-toggled","version":"1.1.2","description":"Component to build simple, flexible, and accessible toggle components.","main":"dist/react-toggled.cjs.js","jsnext:main":"dist/react-toggled.esm.js","module":"dist/react-toggled.esm.js","scripts":{"add-contributor":"kcd-scripts contributors add","build":"kcd-scripts build --bundle --p-react","lint":"kcd-scripts lint","test":"kcd-scripts test","test:cover":"kcd-scripts test --coverage","test:update":"npm run test:cover -s -- --updateSnapshot","test:build":"kcd-scripts test --config other/misc-tests/jest.config.js --no-watch","build-and-test":"npm run build -s && npm run test:build -s","storybook":"start-storybook -p 6006 -c stories","storybook:build":"cd stories && npm install && cd .. && build-storybook -c stories","validate":"kcd-scripts validate lint,build-and-test,test:cover","precommit":"kcd-scripts precommit"},"files":["dist","typings","preact"],"keywords":["toggle","react","accessibility","WAI-ARIA"],"author":{"name":"Kent C. Dodds","email":"kent@doddsfamily.us","url":"http://kentcdodds.com/"},"license":"MIT","peerDependencies":{"react":">=15","prop-types":">=15"},"devDependencies":{"@storybook/react":"^3.2.3","enzyme":"^3.1.0","enzyme-adapter-react-16":"^1.0.1","enzyme-to-json":"^3.1.2","jest-serializer-html":"^4.0.0","kcd-scripts":"^0.24.0","preact":"^8.2.1","preact-render-to-string":"^3.6.3","prop-types":"^15.5.10","react":"^16.0.0","react-dom":"^16.0.0","react-test-renderer":"^16.0.0"},"eslintConfig":{"extends":"./node_modules/kcd-scripts/eslint.js"},"eslintIgnore":["node_modules","coverage","dist","storybook-static","typings"],"repository":{"type":"git","url":"git+https://github.com/kentcdodds/react-toggled.git"},"bugs":{"url":"https://github.com/kentcdodds/react-toggled/issues"},"homepage":"https://github.com/kentcdodds/react-toggled#readme","dependencies":{},"gitHead":"ce0742c324c3ac50c528f8391a9d17ba8b224124","_id":"react-toggled@1.1.2","_npmVersion":"5.4.2","_nodeVersion":"8.7.0","_npmUser":{"name":"kentcdodds","email":"kent@doddsfamily.us"},"dist":{"integrity":"sha512-lNQ34KAu9JUwA98YR9cED3ZO/FxeiL76JsvwjtdT2FAi6m8Tcyw3JHWK2c/ePmzKyFSjpxpY8oofucC1x2AzRw==","shasum":"6214c4caf5ddbb615191f22b4c2d1e03c8efd84e","tarball":"https://registry.npmjs.org/react-toggled/-/react-toggled-1.1.2.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCYHYoAeHxJr5oCkxTpwAnEmX+hOzLt3QKLOKmS/DBYvAIgUekrL4fWxwCIx8ZQOTHsia/PCdvyKT2El44cbIBYMsU="}]},"maintainers":[{"name":"kentcdodds","email":"kent@doddsfamily.us"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-toggled-1.1.2.tgz_1507918263243_0.9562126235105097"},"directories":{}},"1.1.3":{"name":"react-toggled","version":"1.1.3","description":"Component to build simple, flexible, and accessible toggle components.","main":"dist/react-toggled.cjs.js","jsnext:main":"dist/react-toggled.esm.js","module":"dist/react-toggled.esm.js","scripts":{"add-contributor":"kcd-scripts contributors add","build":"kcd-scripts build --bundle --p-react","lint":"kcd-scripts lint","test":"kcd-scripts test","test:cover":"kcd-scripts test --coverage","test:update":"npm run test:cover -s -- --updateSnapshot","test:build":"kcd-scripts test --config other/misc-tests/jest.config.js --no-watch","build-and-test":"npm run build -s && npm run test:build -s","storybook":"start-storybook -p 6006 -c stories","storybook:build":"cd stories && npm install && cd .. && build-storybook -c stories","validate":"kcd-scripts validate lint,build-and-test,test:cover","precommit":"kcd-scripts precommit"},"files":["dist","typings","preact"],"keywords":["toggle","react","accessibility","WAI-ARIA"],"author":{"name":"Kent C. Dodds","email":"kent@doddsfamily.us","url":"http://kentcdodds.com/"},"license":"MIT","peerDependencies":{"react":">=15","prop-types":">=15"},"devDependencies":{"@storybook/react":"^3.2.3","enzyme":"^3.1.0","enzyme-adapter-react-16":"^1.0.1","enzyme-to-json":"^3.1.2","jest-serializer-html":"^4.0.0","kcd-scripts":"^0.24.0","preact":"^8.2.1","preact-render-to-string":"^3.6.3","prop-types":"^15.5.10","react":"^16.0.0","react-dom":"^16.0.0","react-test-renderer":"^16.0.0"},"eslintConfig":{"extends":"./node_modules/kcd-scripts/eslint.js"},"eslintIgnore":["node_modules","coverage","dist","storybook-static","typings"],"repository":{"type":"git","url":"git+https://github.com/kentcdodds/react-toggled.git"},"bugs":{"url":"https://github.com/kentcdodds/react-toggled/issues"},"homepage":"https://github.com/kentcdodds/react-toggled#readme","dependencies":{},"gitHead":"2c8bafaca309019858f594de40cfffd7e6fd0bce","_id":"react-toggled@1.1.3","_npmVersion":"5.5.1","_nodeVersion":"8.9.1","_npmUser":{"name":"kentcdodds","email":"kent@doddsfamily.us"},"dist":{"integrity":"sha512-gFyPB5hos2EwA/f2hSb4s+wys06TwhpdSf3gMQcp+0i6gx49LAEeSuctJZdNpZVoNxWdvfFiF1SxvO3Hsnaa5Q==","shasum":"d5fbab3307387e706a6f1b789cb9d34e0922b672","tarball":"https://registry.npmjs.org/react-toggled/-/react-toggled-1.1.3.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIE+AD4NW6+yDSMMMPTFDy1+kp9h0zxV0bRchupL1EVQPAiBWFXkM9LTg8siUnh/1AK/IIYHzlzU4rd1AVj1fDnjjeg=="}]},"maintainers":[{"name":"kentcdodds","email":"kent@doddsfamily.us"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-toggled-1.1.3.tgz_1510608717883_0.7538559327367693"},"directories":{}},"1.2.0":{"name":"react-toggled","version":"1.2.0","description":"Component to build simple, flexible, and accessible toggle components.","main":"dist/react-toggled.cjs.js","jsnext:main":"dist/react-toggled.esm.js","module":"dist/react-toggled.esm.js","typings":"typings/index.d.ts","scripts":{"add-contributor":"kcd-scripts contributors add","build":"kcd-scripts build --bundle --p-react","lint":"kcd-scripts lint","test":"kcd-scripts test","test:cover":"kcd-scripts test --coverage","test:ts":"tsc --noEmit -p ./tsconfig.json","test:update":"npm run test:cover -s -- --updateSnapshot","test:build":"kcd-scripts test --config other/misc-tests/jest.config.js --no-watch","build-and-test":"npm run build -s && npm run test:build -s","storybook":"start-storybook -p 6006 -c stories","storybook:build":"cd stories && npm install && cd .. && build-storybook -c stories","validate":"kcd-scripts validate lint,build-and-test,test:cover,test:ts","precommit":"kcd-scripts precommit"},"files":["dist","typings","preact"],"keywords":["toggle","react","accessibility","WAI-ARIA"],"author":{"name":"Kent C. Dodds","email":"kent@doddsfamily.us","url":"http://kentcdodds.com/"},"license":"MIT","peerDependencies":{"react":">=15","prop-types":">=15"},"devDependencies":{"@storybook/react":"^3.2.3","enzyme":"^3.1.0","enzyme-adapter-react-16":"^1.0.1","enzyme-to-json":"^3.1.2","jest-serializer-html":"^4.0.0","kcd-scripts":"^0.30.4","preact":"^8.2.1","preact-render-to-string":"^3.6.3","prop-types":"^15.5.10","react":"^16.0.0","react-dom":"^16.0.0","react-test-renderer":"^16.0.0","typescript":"^2.6.2"},"eslintConfig":{"extends":"./node_modules/kcd-scripts/eslint.js"},"eslintIgnore":["node_modules","coverage","dist","storybook-static","typings"],"repository":{"type":"git","url":"git+https://github.com/kentcdodds/react-toggled.git"},"bugs":{"url":"https://github.com/kentcdodds/react-toggled/issues"},"homepage":"https://github.com/kentcdodds/react-toggled#readme","dependencies":{},"gitHead":"94b1a563f3d9a09af13d0f5e0d0a5f4fd2a7df89","_id":"react-toggled@1.2.0","_npmVersion":"5.5.1","_nodeVersion":"8.9.3","_npmUser":{"name":"kentcdodds","email":"kent@doddsfamily.us"},"dist":{"integrity":"sha512-U0R2/gm9domzB2ZlSHxwoFovbKtP22rG8RjlVB22tDBkawQfk2MNCx7n44eohvSjlcljasD5iLqMKXOOW26JYA==","shasum":"4bd777c989d007d01fbeea766221477848b9c99f","tarball":"https://registry.npmjs.org/react-toggled/-/react-toggled-1.2.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDijVUzlo+ecPWIB8OxhLDcPPRAiD15CNjqhRIyywxrvAIgBe77fuRbHOGE9MeV8PKBZ9PdkjnGcLf8OKi/xFxjstQ="}]},"maintainers":[{"name":"kentcdodds","email":"kent@doddsfamily.us"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-toggled-1.2.0.tgz_1512843102283_0.03483585407957435"},"directories":{}},"1.2.1":{"name":"react-toggled","version":"1.2.1","description":"Component to build simple, flexible, and accessible toggle components.","main":"dist/react-toggled.cjs.js","jsnext:main":"dist/react-toggled.esm.js","module":"dist/react-toggled.esm.js","typings":"typings/index.d.ts","scripts":{"add-contributor":"kcd-scripts contributors add","build":"kcd-scripts build --bundle --p-react","lint":"kcd-scripts lint","test":"kcd-scripts test","test:cover":"kcd-scripts test --coverage","test:ts":"tsc --noEmit -p ./tsconfig.json","test:update":"npm run test:cover -s -- --updateSnapshot","test:build":"kcd-scripts test --config other/misc-tests/jest.config.js --no-watch","build-and-test":"npm run build -s && npm run test:build -s","storybook":"start-storybook -p 6006 -c stories","storybook:build":"cd stories && npm install && cd .. && build-storybook -c stories","validate":"kcd-scripts validate lint,build-and-test,test:cover,test:ts","precommit":"kcd-scripts precommit"},"files":["dist","typings","preact"],"keywords":["toggle","react","accessibility","WAI-ARIA"],"author":{"name":"Kent C. Dodds","email":"kent@doddsfamily.us","url":"http://kentcdodds.com/"},"license":"MIT","peerDependencies":{"react":">=15","prop-types":">=15"},"devDependencies":{"@storybook/react":"^3.2.3","enzyme":"^3.1.0","enzyme-adapter-react-16":"^1.0.1","enzyme-to-json":"^3.1.2","jest-serializer-html":"^4.0.0","kcd-scripts":"^0.30.4","preact":"^8.2.1","preact-render-to-string":"^3.6.3","prop-types":"^15.5.10","react":"^16.0.0","react-dom":"^16.0.0","react-test-renderer":"^16.0.0","typescript":"^2.6.2"},"eslintConfig":{"extends":"./node_modules/kcd-scripts/eslint.js"},"eslintIgnore":["node_modules","coverage","dist","storybook-static","typings"],"repository":{"type":"git","url":"git+https://github.com/kentcdodds/react-toggled.git"},"bugs":{"url":"https://github.com/kentcdodds/react-toggled/issues"},"homepage":"https://github.com/kentcdodds/react-toggled#readme","dependencies":{},"gitHead":"56b2430c840cbbb9642ecf9e5dea42ac19de83d8","_id":"react-toggled@1.2.1","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"kentcdodds","email":"kent@doddsfamily.us"},"dist":{"integrity":"sha512-UNqGRCROamcgyudZTowpQZCCWeTF+C2st21mgLIOvVDxJyDnEX98WvU2Dqf0rLHK4mcBVsdyOQxXEylYRwzVGA==","shasum":"a47f1c59d847e947127621d0db17ac8ddfdc1f45","tarball":"https://registry.npmjs.org/react-toggled/-/react-toggled-1.2.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIH+1edPMEauxpkOVeaoNKMGGW6arddavhPjlvf0O2BZbAiBwI9xvwZv2RabUXir4O3Qv7K0Pa4v0nDlolz6vtHeyAw=="}]},"maintainers":[{"name":"kentcdodds","email":"kent@doddsfamily.us"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-toggled-1.2.1.tgz_1516377285481_0.7361496244557202"},"directories":{}},"1.2.2":{"name":"react-toggled","version":"1.2.2","description":"Component to build simple, flexible, and accessible toggle components.","main":"dist/react-toggled.cjs.js","jsnext:main":"dist/react-toggled.esm.js","module":"dist/react-toggled.esm.js","typings":"typings/index.d.ts","scripts":{"add-contributor":"kcd-scripts contributors add","build":"kcd-scripts build --bundle --p-react","lint":"kcd-scripts lint","test":"kcd-scripts test","test:cover":"kcd-scripts test --coverage","test:ts":"tsc --noEmit -p ./tsconfig.json","test:update":"npm run test:cover -s -- --updateSnapshot","test:build":"kcd-scripts test --config other/misc-tests/jest.config.js --no-watch","build-and-test":"npm run build -s && npm run test:build -s","storybook":"start-storybook -p 6006 -c stories","storybook:build":"cd stories && npm install && cd .. && build-storybook -c stories","validate":"kcd-scripts validate lint,build-and-test,test:cover,test:ts","precommit":"kcd-scripts precommit"},"files":["dist","typings","preact"],"keywords":["toggle","react","accessibility","WAI-ARIA"],"author":{"name":"Kent C. Dodds","email":"kent@doddsfamily.us","url":"http://kentcdodds.com/"},"license":"MIT","peerDependencies":{"react":">=15","prop-types":">=15"},"devDependencies":{"@storybook/react":"^3.2.3","enzyme":"^3.1.0","enzyme-adapter-react-16":"^1.0.1","enzyme-to-json":"^3.1.2","jest-serializer-html":"^4.0.0","kcd-scripts":"^0.30.4","preact":"^8.2.1","preact-render-to-string":"^3.6.3","prop-types":"^15.5.10","react":"^16.0.0","react-dom":"^16.0.0","react-test-renderer":"^16.0.0","typescript":"^2.6.2"},"eslintConfig":{"extends":"./node_modules/kcd-scripts/eslint.js"},"eslintIgnore":["node_modules","coverage","dist","storybook-static","typings"],"repository":{"type":"git","url":"git+https://github.com/kentcdodds/react-toggled.git"},"bugs":{"url":"https://github.com/kentcdodds/react-toggled/issues"},"homepage":"https://github.com/kentcdodds/react-toggled#readme","dependencies":{},"gitHead":"7033dce3377d48c5e9ca4e8ae45a5b28ffa7f2d2","_id":"react-toggled@1.2.2","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"kentcdodds","email":"kent@doddsfamily.us"},"dist":{"integrity":"sha512-oSoAL/janifReYPP0+s+eguSGLvC2w24m88vbmCxiiX+0XxfIGI8647d4x9Q3eRrFTrAc/E0B0d2aGPK/wTElg==","shasum":"f1d115a4b3886f539ff2330feae542797ebc7cd7","tarball":"https://registry.npmjs.org/react-toggled/-/react-toggled-1.2.2.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCxTCxhvYPjPUIj97cw93/o5PUUubGHDNC5Wl2A/QCFdgIgX0bro+a/Gu+YmST2mhY5B7C6eaBkq5/QH+7xmoEusb8="}]},"maintainers":[{"name":"kentcdodds","email":"kent@doddsfamily.us"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-toggled-1.2.2.tgz_1516628013021_0.426188001409173"},"directories":{}},"1.2.3":{"name":"react-toggled","version":"1.2.3","description":"Component to build simple, flexible, and accessible toggle components.","main":"dist/react-toggled.cjs.js","jsnext:main":"dist/react-toggled.esm.js","module":"dist/react-toggled.esm.js","typings":"typings/index.d.ts","scripts":{"add-contributor":"kcd-scripts contributors add","build":"kcd-scripts build --bundle --p-react","lint":"kcd-scripts lint","test":"kcd-scripts test","test:cover":"kcd-scripts test --coverage","test:ts":"tsc --noEmit -p ./tsconfig.json","test:update":"npm run test:cover -s -- --updateSnapshot","test:build":"kcd-scripts test --config other/misc-tests/jest.config.js --no-watch","build-and-test":"npm run build -s && npm run test:build -s","storybook":"start-storybook -p 6006 -c stories","storybook:build":"cd stories && npm install && cd .. && build-storybook -c stories","validate":"kcd-scripts validate lint,build-and-test,test:cover,test:ts","precommit":"kcd-scripts precommit"},"files":["dist","typings","preact"],"keywords":["toggle","react","accessibility","WAI-ARIA"],"author":{"name":"Kent C. Dodds","email":"kent@doddsfamily.us","url":"http://kentcdodds.com/"},"license":"MIT","peerDependencies":{"react":">=15","prop-types":">=15"},"devDependencies":{"@storybook/react":"^3.2.3","enzyme":"^3.1.0","enzyme-adapter-react-16":"^1.0.1","enzyme-to-json":"^3.1.2","jest-serializer-html":"^4.0.0","kcd-scripts":"^0.30.4","preact":"^8.2.1","preact-render-to-string":"^3.6.3","prop-types":"^15.5.10","react":"^16.0.0","react-dom":"^16.0.0","react-test-renderer":"^16.0.0","typescript":"^2.6.2"},"eslintConfig":{"extends":"./node_modules/kcd-scripts/eslint.js"},"eslintIgnore":["node_modules","coverage","dist","storybook-static","typings"],"repository":{"type":"git","url":"git+https://github.com/kentcdodds/react-toggled.git"},"bugs":{"url":"https://github.com/kentcdodds/react-toggled/issues"},"homepage":"https://github.com/kentcdodds/react-toggled#readme","dependencies":{},"gitHead":"7aa78054f1b72441318d247be4b3571d993fee15","_id":"react-toggled@1.2.3","_npmVersion":"5.6.0","_nodeVersion":"8.10.0","_npmUser":{"name":"kentcdodds","email":"kent@doddsfamily.us"},"dist":{"integrity":"sha512-CORyUG1+iygp6WvFN3yHUO16EID6JTSDqCMu8BhFXk8wOUP++Bzz4xn0Vg8Pk9ZfCxC5oqRL4q3TknZ7R356Fg==","shasum":"bf787d9d64a0db2d4f1e9611666d1facac64687c","tarball":"https://registry.npmjs.org/react-toggled/-/react-toggled-1.2.3.tgz","fileCount":18,"unpackedSize":82786,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDtVl+fTJvE9s3QUqT67J1gSYw9tcZdvIuHInm5HZwgUAIhAOekzH8gctKkdAO4IRy5XZca3JH3cSy2EvZC8nOdkXI/"}]},"maintainers":[{"name":"kentcdodds","email":"kent@doddsfamily.us"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-toggled_1.2.3_1520777141538_0.5375710937022573"},"_hasShrinkwrap":false},"1.2.4":{"name":"react-toggled","version":"1.2.4","description":"Component to build simple, flexible, and accessible toggle components.","main":"dist/react-toggled.cjs.js","jsnext:main":"dist/react-toggled.esm.js","module":"dist/react-toggled.esm.js","typings":"typings/index.d.ts","scripts":{"add-contributor":"kcd-scripts contributors add","build":"kcd-scripts build --bundle --p-react","lint":"kcd-scripts lint","test":"kcd-scripts test","test:cover":"kcd-scripts test --coverage","test:ts":"tsc --noEmit -p ./tsconfig.json","test:update":"npm run test:cover -s -- --updateSnapshot","test:build":"kcd-scripts test --config other/misc-tests/jest.config.js --no-watch","build-and-test":"npm run build -s && npm run test:build -s","storybook":"start-storybook -p 6006 -c stories","storybook:build":"cd stories && npm install && cd .. && build-storybook -c stories","validate":"kcd-scripts validate lint,build-and-test,test:cover,test:ts","precommit":"kcd-scripts precommit"},"files":["dist","typings","preact"],"keywords":["toggle","react","accessibility","WAI-ARIA"],"author":{"name":"Kent C. Dodds","email":"kent@doddsfamily.us","url":"http://kentcdodds.com/"},"license":"MIT","peerDependencies":{"react":">=15","prop-types":">=15"},"devDependencies":{"@storybook/react":"^3.2.3","enzyme":"^3.1.0","enzyme-adapter-react-16":"^1.0.1","enzyme-to-json":"^3.1.2","jest-serializer-html":"^4.0.0","kcd-scripts":"^0.30.4","preact":"^8.2.1","preact-render-to-string":"^3.6.3","prop-types":"^15.5.10","react":"^16.0.0","react-dom":"^16.0.0","react-test-renderer":"^16.0.0","typescript":"^2.6.2"},"eslintConfig":{"extends":"./node_modules/kcd-scripts/eslint.js"},"eslintIgnore":["node_modules","coverage","dist","storybook-static","typings"],"repository":{"type":"git","url":"git+https://github.com/kentcdodds/react-toggled.git"},"bugs":{"url":"https://github.com/kentcdodds/react-toggled/issues"},"homepage":"https://github.com/kentcdodds/react-toggled#readme","dependencies":{},"gitHead":"f8e32df5bf767fdd2fa02dc7ff64dbc58d97e144","_id":"react-toggled@1.2.4","_npmVersion":"5.6.0","_nodeVersion":"8.10.0","_npmUser":{"name":"kentcdodds","email":"kent@doddsfamily.us"},"dist":{"integrity":"sha512-7oJGgurUDizs6CqCzdSb8mKb0OSl4ucW+a6RzNbEQvkpVw05kBU9mV41UHSLX/7QumX4R98EYP7M93eThhN8rA==","shasum":"f242e6afbe0267729828dc3cc174ed67ab8d8519","tarball":"https://registry.npmjs.org/react-toggled/-/react-toggled-1.2.4.tgz","fileCount":18,"unpackedSize":84682,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBIL/40BtJAWcoLVQuz3juI/MKm7q+kvOsfm9Zt1gM7HAiEAz9o3+Q5vm7EBqVzRXYjnhKqkO/ArosOp6DX3eYEqlj0="}]},"maintainers":[{"name":"kentcdodds","email":"kent@doddsfamily.us"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-toggled_1.2.4_1521858160462_0.10143566022290917"},"_hasShrinkwrap":false},"1.2.5":{"name":"react-toggled","version":"1.2.5","description":"Component to build simple, flexible, and accessible toggle components.","main":"dist/react-toggled.cjs.js","jsnext:main":"dist/react-toggled.esm.js","module":"dist/react-toggled.esm.js","typings":"typings/index.d.ts","scripts":{"add-contributor":"kcd-scripts contributors add","build":"kcd-scripts build --bundle --p-react","lint":"kcd-scripts lint","test":"kcd-scripts test","test:cover":"kcd-scripts test --coverage","test:ts":"tsc --noEmit -p ./tsconfig.json","test:update":"npm run test:cover -s -- --updateSnapshot","test:build":"kcd-scripts test --config other/misc-tests/jest.config.js --no-watch","build-and-test":"npm run build -s && npm run test:build -s","storybook":"start-storybook -p 6006 -c stories","storybook:build":"cd stories && npm install && cd .. && build-storybook -c stories","validate":"kcd-scripts validate lint,build-and-test,test:cover,test:ts","precommit":"kcd-scripts precommit"},"files":["dist","typings","preact"],"keywords":["toggle","react","accessibility","WAI-ARIA"],"author":{"name":"Kent C. Dodds","email":"kent@doddsfamily.us","url":"http://kentcdodds.com/"},"license":"MIT","peerDependencies":{"react":">=15","prop-types":">=15"},"devDependencies":{"@storybook/react":"^3.2.3","enzyme":"^3.1.0","enzyme-adapter-react-16":"^1.0.1","enzyme-to-json":"^3.1.2","jest-serializer-html":"^4.0.0","kcd-scripts":"^0.30.4","preact":"^8.2.1","preact-render-to-string":"^3.6.3","prop-types":"^15.5.10","react":"^16.0.0","react-dom":"^16.0.0","react-test-renderer":"^16.0.0","typescript":"^2.6.2"},"eslintConfig":{"extends":"./node_modules/kcd-scripts/eslint.js"},"eslintIgnore":["node_modules","coverage","dist","storybook-static","typings"],"repository":{"type":"git","url":"git+https://github.com/kentcdodds/react-toggled.git"},"bugs":{"url":"https://github.com/kentcdodds/react-toggled/issues"},"homepage":"https://github.com/kentcdodds/react-toggled#readme","dependencies":{},"gitHead":"bd6fa22a784b22ef3439b5446e4fb67a54f815be","_id":"react-toggled@1.2.5","_npmVersion":"5.6.0","_nodeVersion":"8.10.0","_npmUser":{"name":"kentcdodds","email":"kent@doddsfamily.us"},"dist":{"integrity":"sha512-VjBDTgvN3pbC05qUYKkbwZLyPoB7Ge83TRZt1Tch5oeIDO+56qa0bYFhtMW0IjCezXGulOOjfSzY9HfHMyj/5A==","shasum":"77e520b29affe624a6f6e0625d64fb046b822c01","tarball":"https://registry.npmjs.org/react-toggled/-/react-toggled-1.2.5.tgz","fileCount":18,"unpackedSize":84154,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGK+VSh4dtjtq5D+zbNXpwSMvYdPJkM6E6fJ0HIy+eUnAiEArMMW1PMRQPSA+HX3aUm3rUUK0za3Q9x/UV162wRN+ho="}]},"maintainers":[{"name":"kentcdodds","email":"kent@doddsfamily.us"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-toggled_1.2.5_1521864710018_0.5677816795823138"},"_hasShrinkwrap":false},"1.2.6":{"name":"react-toggled","version":"1.2.6","description":"Component to build simple, flexible, and accessible toggle components.","main":"dist/react-toggled.cjs.js","jsnext:main":"dist/react-toggled.esm.js","module":"dist/react-toggled.esm.js","typings":"typings/index.d.ts","scripts":{"add-contributor":"kcd-scripts contributors add","build":"kcd-scripts build --bundle --p-react","lint":"kcd-scripts lint","test":"kcd-scripts test","test:cover":"kcd-scripts test --coverage","test:ts":"tsc --noEmit -p ./tsconfig.json","test:update":"npm run test:cover -s -- --updateSnapshot","test:build":"kcd-scripts test --config other/misc-tests/jest.config.js --no-watch","build-and-test":"npm run build -s && npm run test:build -s","storybook":"start-storybook -p 6006 -c stories","storybook:build":"cd stories && npm install && cd .. && build-storybook -c stories","validate":"kcd-scripts validate lint,build-and-test,test:cover,test:ts","precommit":"kcd-scripts precommit"},"files":["dist","typings","preact"],"keywords":["toggle","react","accessibility","WAI-ARIA"],"author":{"name":"Kent C. Dodds","email":"kent@doddsfamily.us","url":"http://kentcdodds.com/"},"license":"MIT","peerDependencies":{"react":">=15","prop-types":">=15"},"devDependencies":{"@storybook/react":"^3.2.3","enzyme":"^3.1.0","enzyme-adapter-react-16":"^1.0.1","enzyme-to-json":"^3.1.2","jest-serializer-html":"^4.0.0","kcd-scripts":"^0.30.4","preact":"^8.2.1","preact-render-to-string":"^3.6.3","prop-types":"^15.5.10","react":"^16.0.0","react-dom":"^16.0.0","react-test-renderer":"^16.0.0","typescript":"^2.6.2"},"eslintConfig":{"extends":"./node_modules/kcd-scripts/eslint.js"},"eslintIgnore":["node_modules","coverage","dist","storybook-static","typings"],"repository":{"type":"git","url":"git+https://github.com/kentcdodds/react-toggled.git"},"bugs":{"url":"https://github.com/kentcdodds/react-toggled/issues"},"homepage":"https://github.com/kentcdodds/react-toggled#readme","dependencies":{},"gitHead":"07bcd2b5ed51feef75d511a83bcb4d7806f7eede","_id":"react-toggled@1.2.6","_npmVersion":"5.6.0","_nodeVersion":"8.10.0","_npmUser":{"name":"kentcdodds","email":"kent@doddsfamily.us"},"dist":{"integrity":"sha512-970TrMMP8cBDAcuwQrBegCC6vB2saqzCi5M634khC8n2lWFkmlaJtJn94TmiarYTDygeVYjDdjnrHBimn5/LYQ==","shasum":"c257306e75e0a2b45308d8a6a602fdad05a0dc38","tarball":"https://registry.npmjs.org/react-toggled/-/react-toggled-1.2.6.tgz","fileCount":18,"unpackedSize":84750,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIB2Zcotkqwf9P1Vx/leIcSYz/PUG8wJZdQJX886YGPdCAiEAhxGibbUqonJwZ1IKkSxC95CjoGLrvQSMPKPcH/D81+E="}]},"maintainers":[{"name":"kentcdodds","email":"kent@doddsfamily.us"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-toggled_1.2.6_1521943626677_0.9065133595301649"},"_hasShrinkwrap":false},"1.2.7":{"name":"react-toggled","version":"1.2.7","description":"Component to build simple, flexible, and accessible toggle components.","main":"dist/react-toggled.cjs.js","jsnext:main":"dist/react-toggled.esm.js","module":"dist/react-toggled.esm.js","typings":"typings/index.d.ts","scripts":{"add-contributor":"kcd-scripts contributors add","build":"kcd-scripts build --bundle --p-react --no-clean","lint":"kcd-scripts lint","test":"kcd-scripts test","test:cover":"kcd-scripts test --coverage","test:ts":"tsc --noEmit -p ./tsconfig.json","test:update":"npm run test:cover -s -- --updateSnapshot","test:build":"kcd-scripts test --config other/misc-tests/jest.config.js --no-watch","build-and-test":"npm run build -s && npm run test:build -s","storybook":"start-storybook -p 6006 -c stories","storybook:build":"cd stories && npm install && cd .. && build-storybook -c stories","validate":"kcd-scripts validate lint,build-and-test,test:cover,test:ts","precommit":"kcd-scripts precommit"},"files":["dist","typings","preact"],"keywords":["toggle","react","accessibility","WAI-ARIA"],"author":{"name":"Kent C. Dodds","email":"kent@doddsfamily.us","url":"http://kentcdodds.com/"},"license":"MIT","peerDependencies":{"react":">=15","prop-types":">=15"},"devDependencies":{"@storybook/react":"^3.2.3","enzyme":"^3.1.0","enzyme-adapter-react-16":"^1.0.1","enzyme-to-json":"^3.1.2","jest-serializer-html":"^4.0.0","kcd-scripts":"^0.39.0","preact":"^8.2.1","preact-render-to-string":"^3.6.3","prop-types":"^15.5.10","react":"^16.0.0","react-dom":"^16.0.0","react-test-renderer":"^16.0.0","typescript":"^2.6.2"},"eslintConfig":{"extends":"./node_modules/kcd-scripts/eslint.js"},"eslintIgnore":["node_modules","coverage","dist","storybook-static","typings"],"repository":{"type":"git","url":"git+https://github.com/kentcdodds/react-toggled.git"},"bugs":{"url":"https://github.com/kentcdodds/react-toggled/issues"},"homepage":"https://github.com/kentcdodds/react-toggled#readme","dependencies":{},"gitHead":"1d1b7acb196045dfee4fc5056d314c5f5e837f82","_id":"react-toggled@1.2.7","_npmVersion":"5.6.0","_nodeVersion":"8.11.3","_npmUser":{"name":"kentcdodds","email":"kent@doddsfamily.us"},"dist":{"integrity":"sha512-3am1uA5ZzDwUkReEuUkK+fJ0DAYcGiLraWEPqXfL1kKD/NHbbB7fB/t+5FflMGd+FA6n9hih1es4pui1yzKi0w==","shasum":"be1b72058358dd1ffe11811e4427e5c9cf140c10","tarball":"https://registry.npmjs.org/react-toggled/-/react-toggled-1.2.7.tgz","fileCount":18,"unpackedSize":81143,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbI9cJCRA9TVsSAnZWagAAHYIP/jLmqDEyO1ktrkjyenln\nmts3cQ1ndLJaExZjsQPpcqec7LRY0h2e6EYyltba9O8g21JKHcbjnellybkL\nN9fETnjVypWjL+jvLGDH7V3VR7uzKzzFTDnawz0yfrGk/aKhoGOkAvsSWX+r\nQmfQxjeQpVGeStppGLKybvnV/Qwjm1axxk1wP5VjN46KJjqCakLfDdfFHz2B\ndzH/x3FO10h9f42iG5JtOxbbb7uoJaCCBADrUh4xCUqAEJ+FoSM2SOwxHhT5\ng4Y9SxtwM8+NpMalHB7W7872DxPkj+JXa7jpOOpo/WVrBRO4NsIV97ClwaiI\ng6jHu9mBlz+JKejnsFx6KdvZbaWqI5qN+cie0dN+fpKwXx/BOR+Z8bI6teRU\nqgVsLWlJL5mWMtZzopl40SJt9FzqMSPp/8li2bNEq3UPQWkiVWWye9PVqvaZ\nz+lXbDty0ZTlBykR8gShU8Bv07BJdvfnfCExyguA0Mh7vNGBOj1t7dmk0aX5\nzmwH6v+Cgq3mzyDs/WU5z/ZgJLEZVQN5sjmdLVEAenN9Ik5qOKZbATuMEy/5\nC+JI5HqzCwJlqbCRE1IRgWIGvZjzNGquq6+psi9+hMsDmHhMKaxG3NyW8G6G\n22UZf4no8iGgMwRZxJFhfRLTMf8YilKO7CpOF4yRBRGAhFjv8bFfwKpwD7dN\nUaVN\r\n=6u9F\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQChTtmvFGxXP0toiEbzE5ANm19mek9b6+U3bwwaljfFVgIgZQ6wqI+J/EVxH17hAjXwe3aZEZ9abj8doAg9QDxYzuo="}]},"maintainers":[{"name":"kentcdodds","email":"kent@doddsfamily.us"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-toggled_1.2.7_1529075463498_0.6995706281138927"},"_hasShrinkwrap":false}},"readme":"<h1 align=\"center\">\n  react-toggled ⚛️\n  <br>\n  <img src=\"https://cdn.rawgit.com/kentcdodds/react-toggled/master/other/logo/react-toggled.png\" alt=\"react-toggled logo\" title=\"react-toggled logo\" width=\"300\">\n  <br>\n</h1>\n<p align=\"center\" style=\"font-size: 1.2rem;\">Component to build simple, flexible, and accessible toggle components</p>\n\n<hr />\n\n[![Build Status][build-badge]][build]\n[![Code Coverage][coverage-badge]][coverage]\n[![downloads][downloads-badge]][npmcharts]\n[![version][version-badge]][package]\n[![MIT License][license-badge]][license]\n\n[![All Contributors](https://img.shields.io/badge/all_contributors-5-orange.svg?style=flat-square)](#contributors)\n[![PRs Welcome][prs-badge]][prs]\n[![Chat][chat-badge]][chat]\n[![Code of Conduct][coc-badge]][coc]\n\n[![Supports React and Preact][react-badge]][react]\n[![size][size-badge]][unpkg-dist]\n[![gzip size][gzip-badge]][unpkg-dist]\n[![module formats: umd, cjs, and es][module-formats-badge]][unpkg-dist]\n\n[![Watch on GitHub][github-watch-badge]][github-watch]\n[![Star on GitHub][github-star-badge]][github-star]\n[![Tweet][twitter-badge]][twitter]\n\n## The problem\n\nYou want a toggle component that's simple and gives you complete control over\nrendering and state.\n\n## This solution\n\nThis follows the patterns in [`downshift`][downshift] to expose an API that\nrenders nothing and simply encapsulates the logic of a toggle component.\n\n## Table of Contents\n\n<!-- START doctoc generated TOC please keep comment here to allow auto update -->\n\n<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->\n\n* [Installation](#installation)\n* [Usage](#usage)\n* [Props:](#props)\n  * [defaultOn](#defaulton)\n  * [onToggle](#ontoggle)\n  * [on](#on)\n  * [children](#children)\n* [Examples](#examples)\n* [Inspiration](#inspiration)\n* [Other Solutions](#other-solutions)\n* [Contributors](#contributors)\n* [LICENSE](#license)\n\n<!-- END doctoc generated TOC please keep comment here to allow auto update -->\n\n## Installation\n\nThis module is distributed via [npm][npm] which is bundled with [node][node] and\nshould be installed as one of your project's `dependencies`:\n\n```\nnpm install --save react-toggled\n```\n\n> This package also depends on `react` and `prop-types`. Please make sure you\n> have those installed as well.\n\n> Note also this library supports `preact` out of the box. If you are using\n> `preact` then look in the `preact/` folder and use the module you want.\n> You should be able to simply do: `import Toggle from 'react-toggled/preact'`\n\n## Usage\n\n```jsx\nimport React from 'react'\nimport {render} from 'react-dom'\nimport Toggle from 'react-toggled'\n\nrender(\n  <Toggle>\n    {({on, getTogglerProps}) => (\n      <div>\n        <button {...getTogglerProps()}>Toggle me</button>\n        <div>{on ? 'Toggled On' : 'Toggled Off'}</div>\n      </div>\n    )}\n  </Toggle>,\n  document.getElementById('root'),\n)\n```\n\n`react-toggled` is the only component. It doesn't render anything itself, it just\ncalls the child function and renders that. Wrap everything in\n`<Toggle>{/* your function here! */}</Toggle>`.\n\n## Props:\n\n### defaultOn\n\n> `boolean` | defaults to `false`\n\nThe initial `on` state.\n\n### onToggle\n\n> `function(on: boolean, object: TogglerStateAndHelpers)` | optional, no useful default\n\nCalled when the toggler is clicked.\n\n* `on`: The new on state\n* `TogglerStateAndHelpers`: the exact same thing you get in your child render\n  prop function.\n\n### on\n\n> `boolean` | **control prop**\n\nreact-toggled manages its own state internally and calls your `onToggle`\nhandler whenever the `on` state changes. Your child render prop function\n(read more below) can be used to manipulate this state from within the render\nfunction and can likely support many of your use cases.\n\nHowever, if more control is needed, you can pass the `on` state as a prop\nand that state becomes controlled. As soon as\n`this.props.on !== undefined`, internally, `react-toggled` will determine\nits state based on your prop's value rather than its own internal state. You\nwill be required to keep the state up to date (this is where `onToggle` comes in\nreally handy), but you can also control the state from anywhere, be\nthat state from other components, `redux`, `react-router`, or anywhere else.\n\n> Note: This is very similar to how normal controlled components work elsewhere\n> in react (like `<input />`). If you want to learn more about this concept, you\n> can learn about that from this the\n> [\"Controlled Components\" lecture][controlled-components-lecture] and\n> exercises from [React Training's][react-training] > [Advanced React][advanced-react] course.\n\n### children\n\n> `function({})` | _required_\n\nThis is called with an object.\n\nThis is where you render whatever you want to based on the state of `react-toggled`.\nThe function is passed as the child prop:\n`<Toggle>{/* right here*/}</Toggle>`\n\n<!-- This table was generated via http://www.tablesgenerator.com/markdown_tables -->\n\n| property                 | category    | type                      | description                                                                                                                                                    |\n| ------------------------ | ----------- | ------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `on`                     | state       | `boolean`                 | The current `on` state of toggle                                                                                                                               |\n| `getTogglerProps`        | prop getter | `function(props: object)` | returns the props you should apply to the button element you render. Includes `aria-` attributes                                                               |\n| `getInputTogglerProps`   | prop getter | `function(props: object)` | returns the props you should apply to the input (checkbox) element you render. Includes `aria-` attributes                                                     |\n| `getElementTogglerProps` | prop getter | `function(props: object)` | returns the props you should apply to the element you render. Use this if you are not using a button or input—for example, a span. Includes `aria-` attributes |\n| `setOn`                  | action      | `function()`              | Sets the `on` state to `true`                                                                                                                                  |\n| `setOff`                 | action      | `function()`              | Sets the `on` state to `false`                                                                                                                                 |\n| `toggle`                 | action      | `function()`              | Toggles the `on` state (i.e. if it's currently `true`, will set to `false`)                                                                                    |\n\n## Examples\n\nExamples exist on [codesandbox.io][examples]:\n\n* [Bare bones toggle](https://codesandbox.io/s/m38674w9vy)\n\nIf you would like to add an example, follow these steps:\n\n1. Fork [this codesandbox](https://codesandbox.io/s/m38674w9vy)\n2. Make sure your version (under dependencies) is the latest available version.\n3. Update the title and description\n4. Update the code for your example (add some form of documentation to explain what it is)\n5. Add the tag: `react-toggled:example`\n\nYou'll find other examples in the `stories/examples` folder of the repo.\nAnd you'll find\n[a live version of those examples here](https://react-toggled.netlify.com)\n\n## Inspiration\n\nI built this while building [an example of using `glamorous` with `next.js`][glamorous-with-next]\n\n## Other Solutions\n\nYou can implement any of the other solutions using `react-toggled`, but if\nyou'd prefer to use these out of the box solutions, then that's fine too. There\nare tons of them, so just\n[checkout npm](https://www.npmjs.com/search?q=react%20toggle).\n\n## Contributors\n\nThanks goes to these people ([emoji key][emojis]):\n\n<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->\n<!-- prettier-ignore -->\n| [<img src=\"https://avatars.githubusercontent.com/u/1500684?v=3\" width=\"100px;\"/><br /><sub><b>Kent C. Dodds</b></sub>](https://kentcdodds.com)<br />[💻](https://github.com/kentcdodds/react-toggled/commits?author=kentcdodds \"Code\") [📖](https://github.com/kentcdodds/react-toggled/commits?author=kentcdodds \"Documentation\") [🚇](#infra-kentcdodds \"Infrastructure (Hosting, Build-Tools, etc)\") [⚠️](https://github.com/kentcdodds/react-toggled/commits?author=kentcdodds \"Tests\") | [<img src=\"https://avatars3.githubusercontent.com/u/9488719?v=4\" width=\"100px;\"/><br /><sub><b>Frank Tan</b></sub>](https://github.com/tansongyang)<br />[💻](https://github.com/kentcdodds/react-toggled/commits?author=tansongyang \"Code\") [📖](https://github.com/kentcdodds/react-toggled/commits?author=tansongyang \"Documentation\") [⚠️](https://github.com/kentcdodds/react-toggled/commits?author=tansongyang \"Tests\") | [<img src=\"https://avatars1.githubusercontent.com/u/9408641?v=4\" width=\"100px;\"/><br /><sub><b>Oliver</b></sub>](http://www.oliverjam.es)<br />[💻](https://github.com/kentcdodds/react-toggled/commits?author=oliverjam \"Code\") | [<img src=\"https://avatars2.githubusercontent.com/u/11708648?v=4\" width=\"100px;\"/><br /><sub><b>Jedrzej Lewandowski</b></sub>](http://www.thefullresolution.com/)<br />[💻](https://github.com/kentcdodds/react-toggled/commits?author=TheFullResolution \"Code\") | [<img src=\"https://avatars1.githubusercontent.com/u/603386?v=4\" width=\"100px;\"/><br /><sub><b>Ben Slinger</b></sub>](https://github.com/bslinger)<br />[💻](https://github.com/kentcdodds/react-toggled/commits?author=bslinger \"Code\") [⚠️](https://github.com/kentcdodds/react-toggled/commits?author=bslinger \"Tests\") |\n| :---: | :---: | :---: | :---: | :---: |\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\nThis project follows the [all-contributors][all-contributors] specification.\nContributions of any kind welcome!\n\n## LICENSE\n\nMIT\n\n[npm]: https://www.npmjs.com/\n[node]: https://nodejs.org\n[build-badge]: https://img.shields.io/travis/kentcdodds/react-toggled.svg?style=flat-square\n[build]: https://travis-ci.org/kentcdodds/react-toggled\n[coverage-badge]: https://img.shields.io/codecov/c/github/kentcdodds/react-toggled.svg?style=flat-square\n[coverage]: https://codecov.io/github/kentcdodds/react-toggled\n[version-badge]: https://img.shields.io/npm/v/react-toggled.svg?style=flat-square\n[package]: https://www.npmjs.com/package/react-toggled\n[downloads-badge]: https://img.shields.io/npm/dm/react-toggled.svg?style=flat-square\n[npmcharts]: http://npmcharts.com/compare/react-toggled\n[license-badge]: https://img.shields.io/npm/l/react-toggled.svg?style=flat-square\n[license]: https://github.com/kentcdodds/react-toggled/blob/master/LICENSE\n[prs-badge]: https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square\n[prs]: http://makeapullrequest.com\n[chat]: https://gitter.im/kentcdodds/react-toggled\n[chat-badge]: https://img.shields.io/gitter/room/kentcdodds/react-toggled.svg?style=flat-square\n[coc-badge]: https://img.shields.io/badge/code%20of-conduct-ff69b4.svg?style=flat-square\n[coc]: https://github.com/kentcdodds/react-toggled/blob/master/other/CODE_OF_CONDUCT.md\n[react-badge]: https://img.shields.io/badge/%E2%9A%9B%EF%B8%8F-(p)react-00d8ff.svg?style=flat-square\n[react]: https://facebook.github.io/react/\n[gzip-badge]: http://img.badgesize.io/https://unpkg.com/react-toggled/dist/react-toggled.umd.min.js?compression=gzip&label=gzip%20size&style=flat-square\n[size-badge]: http://img.badgesize.io/https://unpkg.com/react-toggled/dist/react-toggled.umd.min.js?label=size&style=flat-square\n[unpkg-dist]: https://unpkg.com/react-toggled/dist/\n[module-formats-badge]: https://img.shields.io/badge/module%20formats-umd%2C%20cjs%2C%20es-green.svg?style=flat-square\n[github-watch-badge]: https://img.shields.io/github/watchers/kentcdodds/react-toggled.svg?style=social\n[github-watch]: https://github.com/kentcdodds/react-toggled/watchers\n[github-star-badge]: https://img.shields.io/github/stars/kentcdodds/react-toggled.svg?style=social\n[github-star]: https://github.com/kentcdodds/react-toggled/stargazers\n[twitter]: https://twitter.com/intent/tweet?text=Check%20out%20react-toggled%20by%20%40kentcdodds%20https%3A%2F%2Fgithub.com%2Fkentcdodds%2Freact-toggled%20%F0%9F%91%8D\n[twitter-badge]: https://img.shields.io/twitter/url/https/github.com/kentcdodds/react-toggled.svg?style=social\n[emojis]: https://github.com/kentcdodds/all-contributors#emoji-key\n[all-contributors]: https://github.com/kentcdodds/all-contributors\n[ryan]: https://github.com/ryanflorence\n[compound-components-lecture]: https://courses.reacttraining.com/courses/advanced-react/lectures/3060560\n[examples]: https://codesandbox.io/search?refinementList%5Btags%5D%5B0%5D=react-toggled%3Aexample&page=1\n[controlled-components-lecture]: https://courses.reacttraining.com/courses/advanced-react/lectures/3172720\n[react-training]: https://reacttraining.com/\n[advanced-react]: https://courses.reacttraining.com/courses/enrolled/200086\n[fac]: https://medium.com/merrickchristensen/function-as-child-components-5f3920a9ace9\n[glamorous-with-next]: https://github.com/kentcdodds/glamorous-with-next\n[downshift]: https://github.com/paypal/downshift\n","maintainers":[{"name":"kentcdodds","email":"kent@doddsfamily.us"}],"time":{"modified":"2022-05-15T06:18:29.288Z","created":"2017-08-31T18:07:28.268Z","1.0.0":"2017-08-31T18:07:28.268Z","1.0.1":"2017-08-31T18:28:17.804Z","1.0.2":"2017-08-31T22:07:00.041Z","1.1.0":"2017-10-10T06:01:13.799Z","1.1.1":"2017-10-10T06:25:44.442Z","1.1.2":"2017-10-13T18:11:04.431Z","1.1.3":"2017-11-13T21:31:58.947Z","1.2.0":"2017-12-09T18:11:43.400Z","1.2.1":"2018-01-19T15:54:46.551Z","1.2.2":"2018-01-22T13:33:34.802Z","1.2.3":"2018-03-11T14:05:41.591Z","1.2.4":"2018-03-24T02:22:40.571Z","1.2.5":"2018-03-24T04:11:50.103Z","1.2.6":"2018-03-25T02:07:06.833Z","1.2.7":"2018-06-15T15:11:03.534Z"},"homepage":"https://github.com/kentcdodds/react-toggled#readme","keywords":["toggle","react","accessibility","WAI-ARIA"],"repository":{"type":"git","url":"git+https://github.com/kentcdodds/react-toggled.git"},"author":{"name":"Kent C. Dodds","email":"kent@doddsfamily.us","url":"http://kentcdodds.com/"},"bugs":{"url":"https://github.com/kentcdodds/react-toggled/issues"},"license":"MIT","readmeFilename":"README.md","users":{"whathejoe":true,"carsy":true}}