{"_id":"@accessible/toggle-button","_rev":"7-8f94f5d57ef73dbc54883330d8f2864e","name":"@accessible/toggle-button","dist-tags":{"latest":"2.0.2"},"versions":{"1.0.0":{"name":"@accessible/toggle-button","version":"1.0.0","homepage":"https://github.com/accessible-ui/toggle-button#readme","repository":{"type":"git","url":"https://github.com/accessible-ui/toggle-button.git"},"bugs":{"url":"https://github.com/accessible-ui/toggle-button/issues"},"author":{"name":"Jared Lunde","email":"jared.lunde@gmail.com","url":"https://jaredLunde.com"},"license":"MIT","description":"An accessible two-state button that can be either off (not pressed) or on (pressed)","keywords":["react","react component","toggle button","accessible toggle button","a11y toggle button","react a11y toggle button","react accessible toggle button","react toggle button","react toggle button component","a11y","react aria toggle button","aria","aria toggle button"],"main":"dist/cjs/index.js","module":"dist/es/index.js","sideEffects":false,"scripts":{"build":"npm run build:cjs && npm run build:es && npm run build:types","build:cjs":"babel src -d dist/cjs -x .ts,.tsx --ignore \"**/*.test.ts\",\"**/test.ts\",\"**/*.test.tsx\",\"**/test.tsx\" --delete-dir-on-start","build:es":"cross-env BABEL_ENV=es babel src -d dist/es -x .ts,.tsx --ignore \"**/*.test.ts\",\"**/test.ts\",\"**/*.test.tsx\",\"**/test.tsx\" --delete-dir-on-start","build:types":"tsc -p tsconfig.json -d --outDir dist/es --emitDeclarationOnly && mkdir -p dist/cjs && cp -R dist/es/**.d.ts dist/cjs && rimraf dist/**/*.test.d.ts","check-types":"tsc --noEmit -p tsconfig.json","format":"prettier --write \"**/*.{ts,tsx,js,jsx,md,yml,json,babelrc,eslintrc,prettierrc}\"","lint":"eslint . --ext .ts,.tsx","prepublishOnly":"npm run lint && npm run test && npm run build && npm run format","test":"jest","validate":"npm run check-types && npm run lint && npm run test -- --coverage"},"husky":{"hooks":{"pre-commit":"lint-staged && npm run build:types"}},"lint-staged":{"**/*.{ts,tsx,js,jsx}":["eslint","prettier --write"],"**/*.{md,yml,json,babelrc,eslintrc,prettierrc}":["prettier --write"]},"devDependencies":{"@babel/preset-react":"latest","@lunde/babel-preset-es":"latest","@testing-library/jest-dom":"latest","@testing-library/react":"latest","@testing-library/react-hooks":"latest","@types/jest":"latest","@types/react":"latest","@types/react-dom":"latest","@typescript-eslint/eslint-plugin":"latest","@typescript-eslint/parser":"latest","babel-plugin-optimize-react":"latest","babel-plugin-typescript-to-proptypes":"latest","cross-env":"latest","eslint":"latest","eslint-import-resolver-jest":"latest","eslint-plugin-jest":"latest","eslint-plugin-react":"latest","eslint-plugin-react-hooks":"latest","husky":"latest","jest":"latest","lint-staged":"latest","prettier":"latest","react":"latest","react-dom":"latest","react-test-renderer":"latest","rimraf":"^2.6.3","ts-jest":"latest","typescript":"latest"},"dependencies":{"@accessible/button":"^1.0.1","@react-hook/switch":"^1.0.4","clsx":"^1.0.4"},"peerDependencies":{"prop-types":">=15.6","react":">=16.8","react-dom":">=16.8"},"licenseText":"MIT License\n\nCopyright (c) 2019 Jared Lunde\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.","_id":"@accessible/toggle-button@1.0.0","dist":{"shasum":"37b12377b29400395e50a11bb526e4d9ea3abf8f","integrity":"sha512-OavqR4XO8vkX1hPx2yce94Pe78sSjAO8glOtdW1ieoe/AVIOYIJ9X//0lQyKL1g5SkWYBvCnEg+4ND1nsSAWEg==","tarball":"https://registry.npmjs.org/@accessible/toggle-button/-/toggle-button-1.0.0.tgz","fileCount":11,"unpackedSize":18322,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeB883CRA9TVsSAnZWagAAG/8QAKSeAJR/LLGtRfE1deMr\nIGur5Z9rUxvBcPvMvd6iox18snthJSNy3COEewUUncP8HFQsVqJyIN03fzvN\ncYnwG9EO0CI+Gqe5kG8HL3JHDirnYX3qLnt/lKkHbIV47uAKB6/ZC8qzzpsu\nl5Od87PGcx4hrWpt1u6nBs0066zOjenkM6xoyCPDDMnfyTxfoAlfweSqCR11\ntaNKTFm2UpEOh0LviIE/xl3RsIr/yO18M7/K0osGOULc/sK5myehL9jMqwmJ\nVnWsqRPmTlx+yzYdWra9PBIUHtrHU36OWgirL8t56uAWiWDGr5+XPYTbc1Ei\nAxUwOi29dckB6p6AbVOKM6d00TBdG+nHzebnR+k5llgzSlxlESJLOYV95Wck\nq+Si/uyecfRbuHaV9vI3n3oZoTPGUr2N/+M9vD1kK8KoE280aABj2rUaIDxZ\n59GA2n59lCicPDkYUmOQM1bocKm6o7sL2VkGEV4PlntN2UUIbTqu5KKIKTSB\njwzbVgmpQpH3twP+MCQFB3OCTovxDlcI4r5n29c+7FYwb93f+s7K31/zTpxO\nH+02mNxIoTOtV/sMTLHG4T7JoiIhjUo74LNft5rkbsMzq2NlOSg2rCFuCa7T\nBoFaEWVk9W+NlhCH4kq8DYb8cO2oqV6Glw17BssbMTVt8wleMcA2Bnr29iTd\niTRt\r\n=WU9r\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDGEqlhpehEWzgq9zMi+d6SViQW5gxc0NfuMs9attKfXAIhANwWyFo+8aS+qp+zzsa+FYwyk7AzpHox2lRTdExDrbpw"}]},"maintainers":[{"name":"jaredlunde","email":"jared.lunde@gmail.com"}],"_npmUser":{"name":"jaredlunde","email":"jared.lunde@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/toggle-button_1.0.0_1577570102997_0.24497569201680336"},"_hasShrinkwrap":false},"1.0.1":{"name":"@accessible/toggle-button","version":"1.0.1","homepage":"https://github.com/accessible-ui/toggle-button#readme","repository":{"type":"git","url":"https://github.com/accessible-ui/toggle-button.git"},"bugs":{"url":"https://github.com/accessible-ui/toggle-button/issues"},"author":{"name":"Jared Lunde","email":"jared.lunde@gmail.com","url":"https://jaredLunde.com"},"license":"MIT","description":"An accessible two-state button that can be either off (not pressed) or on (pressed)","keywords":["react","react component","toggle button","accessible toggle button","a11y toggle button","react a11y toggle button","react accessible toggle button","react toggle button","react toggle button component","a11y","react aria toggle button","aria","aria toggle button"],"main":"dist/cjs/index.js","module":"dist/es/index.js","sideEffects":false,"scripts":{"build":"npm run build:cjs && npm run build:es && npm run build:types","build:cjs":"babel src -d dist/cjs -x .ts,.tsx --ignore \"**/*.test.ts\",\"**/test.ts\",\"**/*.test.tsx\",\"**/test.tsx\" --delete-dir-on-start","build:es":"cross-env BABEL_ENV=es babel src -d dist/es -x .ts,.tsx --ignore \"**/*.test.ts\",\"**/test.ts\",\"**/*.test.tsx\",\"**/test.tsx\" --delete-dir-on-start","build:types":"tsc -p tsconfig.json -d --outDir dist/es --emitDeclarationOnly && mkdir -p dist/cjs && cp -R dist/es/**.d.ts dist/cjs && rimraf dist/**/*.test.d.ts","check-types":"tsc --noEmit -p tsconfig.json","format":"prettier --write \"**/*.{ts,tsx,js,jsx,md,yml,json,babelrc,eslintrc,prettierrc}\"","lint":"eslint . --ext .ts,.tsx","prepublishOnly":"npm run lint && npm run test && npm run build && npm run format","test":"jest","validate":"npm run check-types && npm run lint && npm run test -- --coverage"},"husky":{"hooks":{"pre-commit":"lint-staged && npm run build:types"}},"lint-staged":{"**/*.{ts,tsx,js,jsx}":["eslint","prettier --write"],"**/*.{md,yml,json,babelrc,eslintrc,prettierrc}":["prettier --write"]},"devDependencies":{"@babel/preset-react":"latest","@lunde/babel-preset-es":"latest","@testing-library/jest-dom":"latest","@testing-library/react":"latest","@testing-library/react-hooks":"latest","@types/jest":"latest","@types/react":"latest","@types/react-dom":"latest","@typescript-eslint/eslint-plugin":"latest","@typescript-eslint/parser":"latest","babel-plugin-optimize-react":"latest","babel-plugin-typescript-to-proptypes":"latest","cross-env":"latest","eslint":"latest","eslint-import-resolver-jest":"latest","eslint-plugin-jest":"latest","eslint-plugin-react":"latest","eslint-plugin-react-hooks":"latest","husky":"latest","jest":"latest","lint-staged":"latest","prettier":"latest","react":"latest","react-dom":"latest","react-test-renderer":"latest","rimraf":"^2.6.3","ts-jest":"latest","typescript":"latest"},"dependencies":{"@accessible/button":"^1.0.1","@react-hook/switch":"^1.0.4","clsx":"^1.0.4"},"peerDependencies":{"prop-types":">=15.6","react":">=16.8","react-dom":">=16.8"},"licenseText":"MIT License\n\nCopyright (c) 2019 Jared Lunde\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.","_id":"@accessible/toggle-button@1.0.1","dist":{"shasum":"64720f473c8819053670aabd0af0d8d23e9846ca","integrity":"sha512-ws7MOIkob52VLQg2P2gw+k45HV1RpBxK6dFGc6mTP0RGG5yUBsdtHXxUbAo6SBZjDtUq0f9VcXHG9UpUtpbNnA==","tarball":"https://registry.npmjs.org/@accessible/toggle-button/-/toggle-button-1.0.1.tgz","fileCount":11,"unpackedSize":18362,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeB+ICCRA9TVsSAnZWagAAG7YP/1RjUxuifP1asu9SxENO\nlK71iIouNgArsDsb/fHf7adGgZaKeU6MJMoTjR3PEw8XdT7mENevAauDX3f8\nou+GXC6TWrXoqP5s5tBpl+3mR7CBYQyThsP6lpDZCB84cY0Qog1PUpqWp68z\ns+3swoS3FCWJ4OVjD7uhq+ACSYMzhsndN6afYd6hbjEv6twLoTxmmNaqfA5Q\nLD+xT0CUEYH6M8W4eVsigBZBnOxr+/p+uuI/4cww3+WZGSK3p23ne+mHxBNk\nkrcXxdFPyDmTbgYa5YmCwh8golFst6YjLEdGSlzo6N0CzVGfxnVonRrOfmIS\npVTHGCjjDACZX+o4gNA7BB2m1I6hbTG+bmDZbxI8IsjKHcjw3rC9e2UrRaGy\n/m0S3wkDSVTvbfsXNS0TpItm42k2PgbM2aVl8ViCvu5qRzNOeCwGS76YuZEE\nTUjYfcDK9nUq28KvAhnlc09Te2F5WL1rc4eOaDBymgWvzTtmLkrGBTENIFrk\nSTXpxmGQYNzzfCY1RSqXSKJ+E0B+L5uXHpOxH9mH9zXHHNvo1iUTfM/1HOkg\nribA4nBkkB5OkYrJLZN1IZShY1IqRYgAqwAp5lBD4U4WCZp9udCBQ26aLpHg\nKxDmGtVgm+6m3HggGijS1tzkdIL4SWHQ6QKa1J7USRWWZe6k72qWYU75jUTL\n8mrl\r\n=cRnv\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD+hoPc5qfenAO8dt3aTWh8kQWGCjhNVAcVdo3ITct22gIhANy2X4xlKghL+XwQrFxx62cn3WWrEdK2UnhgmnM6p6Zr"}]},"maintainers":[{"name":"jaredlunde","email":"jared.lunde@gmail.com"}],"_npmUser":{"name":"jaredlunde","email":"jared.lunde@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/toggle-button_1.0.1_1577574914434_0.3154959169523781"},"_hasShrinkwrap":false},"1.1.0":{"name":"@accessible/toggle-button","version":"1.1.0","homepage":"https://github.com/accessible-ui/accessible#readme","repository":{"type":"git","url":"https://github.com/accessible-ui/accessible.git"},"bugs":{"url":"https://github.com/accessible-ui/accessible/issues"},"author":{"name":"Jared Lunde","email":"jared.lunde@gmail.com","url":"https://jaredLunde.com"},"license":"MIT","description":"An accessible two-state button that can be either off (not pressed) or on (pressed)","keywords":["react","react component","toggle button","accessible toggle button","a11y toggle button","react a11y toggle button","react accessible toggle button","react toggle button","react toggle button component","a11y","react aria toggle button","aria","aria toggle button"],"main":"dist/main/index.js","module":"dist/module/index.js","source":"src/index.tsx","types":"types/index.d.ts","exports":{".":{"browser":"./dist/module/index.js","import":"./dist/esm/index.mjs","require":"./dist/main/index.js","source":"./src/index.tsx","types":"./types/index.d.ts","default":"./dist/main/index.js"},"./package.json":"./package.json","./":"./"},"sideEffects":false,"scripts":{"build":"npm run build-esm && npm run build-main && npm run build-module && npm run build-types","build-esm":"npm run compile -- -d dist/esm --env-name esm --out-file-extension .mjs","build-main":"npm run compile -- -d dist/main --env-name main","build-module":"npm run compile -- -d dist/module --env-name module","build-types":"tsc -p tsconfig.json -d --outDir types --emitDeclarationOnly","check-types":"tsc --noEmit -p tsconfig.json","compile":"babel src -x .ts,.tsx --ignore \"**/*.test.ts\",\"**/*.test.tsx\" --delete-dir-on-start","format":"prettier --write \"**/*.{ts,tsx,js,jsx,md,yml,json,eslintrc,prettierrc}\"","lint":"eslint . --ext .ts,.tsx","prepublishOnly":"npm run lint && npm run test && npm run build && npm run format","test":"jest","validate":"npm run check-types && npm run lint && npm run test -- --coverage"},"husky":{"hooks":{"pre-commit":"npm run build-types && git add types && lint-staged"}},"lint-staged":{"**/*.{ts,tsx,js,jsx}":["eslint","prettier --write"],"**/*.{md,yml,json,eslintrc,prettierrc}":["prettier --write"]},"devDependencies":{"@babel/preset-react":"latest","@lunde/babel-preset-es":"latest","@testing-library/jest-dom":"latest","@testing-library/react":"latest","@testing-library/react-hooks":"latest","@testing-library/user-event":"^10.4.0","@types/jest":"latest","@types/react":"latest","@types/react-dom":"latest","@typescript-eslint/eslint-plugin":"latest","@typescript-eslint/parser":"latest","babel-plugin-annotate-pure-calls":"latest","babel-plugin-optimize-react":"latest","eslint":"latest","eslint-import-resolver-jest":"latest","eslint-plugin-jest":"latest","eslint-plugin-react":"latest","eslint-plugin-react-hooks":"latest","husky":"latest","jest":"^26.0.1","lint-staged":"latest","prettier":"latest","react":"latest","react-dom":"latest","react-test-renderer":"latest","ts-jest":"latest","typescript":"latest"},"dependencies":{"@accessible/button":"^1.1.0","@react-hook/switch":"^1.1.0","clsx":"^1.1.0"},"peerDependencies":{"react":">=16.8","react-dom":">=16.8"},"licenseText":"MIT License\n\nCopyright (c) 2019 Jared Lunde\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.","_id":"@accessible/toggle-button@1.1.0","dist":{"shasum":"8f6975a2cd009e0cd02815e3351391edb9fc688a","integrity":"sha512-mY+IRAX7XChYmkJscnDERDtyfvEQeP83IVqyPJ8jAfW/3GN1NEpK9Gcax1YmbDq7wWWP3dm+EX8r87ERQUHcrQ==","tarball":"https://registry.npmjs.org/@accessible/toggle-button/-/toggle-button-1.1.0.tgz","fileCount":18,"unpackedSize":31318,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe0dJVCRA9TVsSAnZWagAAf3kP/0iEC65ON1GX2Xs9llgo\naUuXIUCFSL/u1ij3EhRMs2HDd7Obt0kOAO7LlQW8n+Xl53rRu99kFo8gSdol\nQhuI4SlluEPIbwYzI+IGE1H2/Ms0nnD2g4p7G9SONAFIKruKhoA24T5Vubms\nqWUe2TgaXILoqm4BixlFKILLZV90c5KIoIluGE4c8/e+RNaCKOBlu3gIPEQi\nhZ/Mlj4Muf3tsQFFmr+GiaCAEZITB7oOtVcFml+VV8Edc/jjM3YKJcX2ct7t\n4NBSme4DKt8OEOzRpktxmu3xm0hfl411rS1SBEeje+GLkrjjxcwTWWST9NuH\n4pKS4ykvFWL41+DnBI8ZVbBRVfoUvw/4jaJ61LfGkRq/rBT/GM0nbGhK9S1/\nvohKAaptgg6yXsCcm59GD7jXKy30cRLfaIh4c9Zryqq6kPMDGT2pHPLc1mim\nQS41yCNW6rIPzaS4ZbNNnP5ZVXwU2V+IF6EFBVgxEUvU0LFaQnhzibF1NIsq\nPaOkRi9DPlGNYRJdniFP7TM8rAbjE9FAU5h/jy1+qQrzzUQdn95JYhpJMBSN\n5evHOSJip0WNtYcmeC+3hl+wYtVA0nec87aosfp466UYctIJbrckdI8X1E3A\n3+uts+3KRS9zbPphMC6UMaKtA3wTfvglN38tM1huFLt/WLQpS8Sooy4CKLLy\nFuhG\r\n=BkEI\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIB7E/QtVBx6TAeDjlONLe8gQQWAU1WiqYKK/bntSecxOAiEAhg3I+WnUrppBYLIZTqAkfu0a1a1DnvHk3KrYWWHpv1o="}]},"maintainers":[{"name":"jaredlunde","email":"jared.lunde@gmail.com"}],"_npmUser":{"name":"jaredlunde","email":"jared.lunde@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/toggle-button_1.1.0_1590809173248_0.7608344405768708"},"_hasShrinkwrap":false},"1.1.1":{"name":"@accessible/toggle-button","version":"1.1.1","homepage":"https://github.com/accessible-ui/toggle-button#readme","repository":{"type":"git","url":"https://github.com/accessible-ui/toggle-button.git"},"bugs":{"url":"https://github.com/accessible-ui/toggle-button/issues"},"author":{"name":"Jared Lunde","email":"jared.lunde@gmail.com","url":"https://jaredLunde.com"},"license":"MIT","description":"An accessible two-state button that can be either off (not pressed) or on (pressed)","keywords":["react","react component","toggle button","accessible toggle button","a11y toggle button","react a11y toggle button","react accessible toggle button","react toggle button","react toggle button component","a11y","react aria toggle button","aria","aria toggle button"],"main":"dist/main/index.js","module":"dist/module/index.js","source":"src/index.tsx","types":"types/index.d.ts","exports":{".":{"browser":"./dist/module/index.js","import":"./dist/esm/index.mjs","require":"./dist/main/index.js","source":"./src/index.tsx","types":"./types/index.d.ts","default":"./dist/main/index.js"},"./package.json":"./package.json","./":"./"},"sideEffects":false,"scripts":{"build":"npm run build-esm && npm run build-main && npm run build-module && npm run build-types","build-esm":"npm run compile -- -d dist/esm --env-name esm --out-file-extension .mjs","build-main":"npm run compile -- -d dist/main --env-name main","build-module":"npm run compile -- -d dist/module --env-name module","build-types":"tsc -p tsconfig.json -d --outDir types --emitDeclarationOnly","check-types":"tsc --noEmit -p tsconfig.json","compile":"babel src -x .ts,.tsx --ignore \"**/*.test.ts\",\"**/*.test.tsx\" --delete-dir-on-start","format":"prettier --write \"**/*.{ts,tsx,js,jsx,md,yml,json,eslintrc,prettierrc}\"","lint":"eslint . --ext .ts,.tsx","prepublishOnly":"npm run lint && npm run test && npm run build && npm run format","test":"jest","validate":"npm run check-types && npm run lint && npm run test -- --coverage"},"husky":{"hooks":{"pre-commit":"npm run build-types && git add types && lint-staged"}},"lint-staged":{"**/*.{ts,tsx,js,jsx}":["eslint","prettier --write"],"**/*.{md,yml,json,eslintrc,prettierrc}":["prettier --write"]},"devDependencies":{"@babel/preset-react":"latest","@lunde/babel-preset-es":"latest","@testing-library/jest-dom":"latest","@testing-library/react":"latest","@testing-library/react-hooks":"latest","@testing-library/user-event":"^10.4.0","@types/jest":"latest","@types/react":"latest","@types/react-dom":"latest","@typescript-eslint/eslint-plugin":"latest","@typescript-eslint/parser":"latest","babel-plugin-annotate-pure-calls":"latest","babel-plugin-optimize-react":"latest","eslint":"latest","eslint-import-resolver-jest":"latest","eslint-plugin-jest":"latest","eslint-plugin-react":"latest","eslint-plugin-react-hooks":"latest","husky":"latest","jest":"^26.0.1","lint-staged":"latest","prettier":"latest","react":"latest","react-dom":"latest","react-test-renderer":"latest","ts-jest":"latest","typescript":"latest"},"dependencies":{"@accessible/button":"^1.1.0","@react-hook/switch":"^1.1.0","clsx":"^1.1.0"},"peerDependencies":{"react":">=16.8","react-dom":">=16.8"},"licenseText":"MIT License\n\nCopyright (c) 2019 Jared Lunde\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.","_id":"@accessible/toggle-button@1.1.1","dist":{"shasum":"86f4e710d172ced1c8ade7b83c523a63e777911d","integrity":"sha512-n4UwFS0jEixLq4SwpJUL7skXEzy+VtWIx4k6oWAH0Rd4cLATKhOXNCLLQcnutlVYvfcUcg77JPqDbW06etsNsA==","tarball":"https://registry.npmjs.org/@accessible/toggle-button/-/toggle-button-1.1.1.tgz","fileCount":18,"unpackedSize":31327,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe0nijCRA9TVsSAnZWagAATuUQAJyKAmLoVdHuCCnkDD2X\nwdqariBvrlOFm0XmV5b6qdnpIm3VlJ8XzQQ9HGZIuNoM4kQeyDMOfT5Onu4B\nS+znx7BYSg/Fbzul25xk5gMYt5kg1dw8cvd4UrQnDPW3DUoeN3FdGkgi+mM7\nawsVVYv6QZb4xguhJqD5awtdHAuzS16mqJVXgIm/PJoqTd4/fyRP8mfvqCbI\nrSveGHc1WeOCzsT4WOZz+ApM2aDbIfPH+vpqMjwuYkrL55D9vV//10pCZNco\nHu96sG+9sYp3aOq+12V5KUm3NttqzasppBoikF93IHA5VCtusJ4obdQM6Sfh\nTshx9oDitepqxhDheA4QzQaqBvBYIyTMfNyF6nElYMnUGme3VH/FmrqbR5bL\n53DP2V1SJiI076DQM38deZyxFoq4wvMTN9XlBXmhsfw26yqyYZH3LvFru7/L\nvmdbVp68HxGpUtYllCQlkucdsZF8Qw7xi3Fw/efeWALLNcPSY+OnnEgTKfvg\nzvc1j7OUzhopC8pWVj9/94PqwInDjP/o4rer5DBWlHH5UV+mrC3cAvspqsOE\nPSjpM6pPU1jVR7YNQgJHkhGo4HPpM4LIWTYdzRIwbqxB9jarnCW0PC36AUXd\nKtyETonQg+f9h3fb8XfKfvm0B3uJb83bDU8lUF9g00wstp83kT3OpPQPc7np\n+s6I\r\n=ohX4\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDp/B4obA63gq6AE5JEgl0gcx4kIfpwazNSz+557/D7FAIhAMut20C4Vw/RwUNdK1DlHR7JWoeChaBQxTFqmT4zkJNb"}]},"maintainers":[{"name":"jaredlunde","email":"jared.lunde@gmail.com"}],"_npmUser":{"name":"jaredlunde","email":"jared.lunde@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/toggle-button_1.1.1_1590851746683_0.4771019146899149"},"_hasShrinkwrap":false},"2.0.0":{"name":"@accessible/toggle-button","version":"2.0.0","homepage":"https://github.com/accessible-ui/toggle-button#readme","repository":{"type":"git","url":"git+https://github.com/accessible-ui/toggle-button.git"},"bugs":{"url":"https://github.com/accessible-ui/toggle-button/issues"},"author":{"name":"Jared Lunde","email":"jared.lunde@gmail.com","url":"https://jaredLunde.com"},"license":"MIT","description":"🅰 An accessible two-state button that can be either off (not pressed) or on (pressed)","keywords":["react","react component","toggle button","accessible toggle button","a11y toggle button","react a11y toggle button","react accessible toggle button","react toggle button","react toggle button component","a11y","react aria toggle button","aria","aria toggle button"],"main":"dist/main/index.js","module":"dist/module/index.js","unpkg":"dist/umd/toggle-button.js","source":"src/index.tsx","types":"types/index.d.ts","exports":{".":{"browser":"./dist/module/index.js","import":"./dist/esm/index.mjs","require":"./dist/main/index.js","umd":"./dist/umd/toggle-button.js","source":"./src/index.tsx","types":"./types/index.d.ts","default":"./dist/main/index.js"},"./package.json":"./package.json","./":"./"},"sideEffects":false,"scripts":{"build":"lundle build","check-types":"lundle check-types","dev":"lundle build -f module,cjs -w","format":"prettier --write \"{,!(node_modules|dist|coverage)/**/}*.{ts,tsx,js,jsx,md,yml,json}\"","lint":"eslint . --ext .ts,.tsx","prepublishOnly":"cli-confirm \"Did you run 'yarn release' first? (y/N)\"","prerelease":"npm run validate && npm run build","release":"git add . && standard-version -a","test":"jest","validate":"lundle check-types && npm run lint && jest --coverage"},"husky":{"hooks":{"pre-commit":"lundle check-types && lint-staged","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"lint-staged":{"**/*.{ts,tsx,js,jsx}":["eslint","prettier --write"],"**/*.{md,yml,json}":["prettier --write"]},"commitlint":{"extends":["@commitlint/config-conventional"]},"config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"eslintConfig":{"extends":["lunde"]},"eslintIgnore":["node_modules","coverage","dist","/types","test","*.config.js"],"jest":{"moduleDirectories":["node_modules","src","test"],"testMatch":["<rootDir>/src/**/?(*.)test.{ts,tsx}"],"collectCoverageFrom":["**/src/**/*.{ts,tsx}"],"setupFilesAfterEnv":["./test/setup.js"],"snapshotResolver":"./test/resolve-snapshot.js","globals":{"__DEV__":true}},"prettier":{"semi":false,"singleQuote":true,"jsxSingleQuote":true,"bracketSpacing":false},"devDependencies":{"@commitlint/cli":"latest","@commitlint/config-conventional":"latest","@testing-library/jest-dom":"latest","@testing-library/react":"latest","@testing-library/react-hooks":"latest","@testing-library/user-event":"latest","@types/jest":"latest","@types/react":"latest","@types/react-dom":"latest","babel-jest":"latest","cli-confirm":"latest","cz-conventional-changelog":"latest","eslint":"latest","eslint-config-lunde":"latest","husky":"latest","jest":"latest","lint-staged":"latest","lundle":"latest","prettier":"latest","react":"latest","react-dom":"latest","react-test-renderer":"latest","standard-version":"latest","typescript":"latest"},"dependencies":{"@accessible/button":"^2.0.1","@react-hook/change":"^1.0.0","@react-hook/merged-ref":"^1.3.0","@react-hook/switch":"^1.3.0","clsx":"^1.1.1"},"peerDependencies":{"react":">=16.8"},"gitHead":"daafeccf658b3a8a52542ab0baf8323e081baf39","_id":"@accessible/toggle-button@2.0.0","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-jjZQ4MzAq1hubPG8t43K2FZ8GveTiFA4oqfwMyp9TsJ6XBLWxyOFPuSfIxXSud0A0R7yMnzUsfnCT8MutSKmrw==","shasum":"f4e45a6969e304ebfd701bb164478b6ce70d40dc","tarball":"https://registry.npmjs.org/@accessible/toggle-button/-/toggle-button-2.0.0.tgz","fileCount":17,"unpackedSize":96884,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfBoSfCRA9TVsSAnZWagAAZvkQAJVvV+/09w7nV9m2yv3S\n/HOcUFoGX4WzfBrqA4aCS+9vzBcWeZMhO2hY3jDDKHyZlac7Bvl4LQXQFJFk\n1ZhMMUVGLvTITEEo1QRlSpP601X3zVxgrtc97LTGUdorSh+7NijZIilC9NeX\n7HMxy0F/SHOfrFGkm5wXaZ77YTqVNOD4USxaDDRXRF7rCx7EsBL9jI7mxDnz\nUyIIm1wU9b4q9nNLR5DvvvNTgTfz64FXXiRaI5KWP5A1txCEX8h7GVyRXwG5\nc3alt5WPBEPPLMwSUAljLembCJigtcDaPbA/KruiJUuvuTUz5Aywbist/wwf\nXD5Aj0qrbQscR2tBpu6sahxOHJDpZsfmZWcYESQ/3ZAVhJmwYyLekPaQEMK5\n75EXPyk8rFjJCEzj8l0aM0EwMLtNwyDrmYxRugksr240p6Nq2HvTVdY71kcj\nP/Lvm66D48rbc1bimuci19w7W+Lukcaq2oBtBF1BuzIp0eZqVXAEiKR4cL0z\n+hmhjUyMyuDStmbY7TahETzk90d5GuNZ63fGO6rI/E2wWvTXGRWUFlsQf+uu\n3jMJScB2G4WsAiqQFwT8EQ1ZRtngEqRoNYccmrERUZd11+rWApbcwM7XGthH\nLyMFsYyckETT1ld0CcWPEOqS4R4zBxzaKnYIwbuj5++cdBZLveslr1fZim9Y\nGK7q\r\n=2NEH\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCJ+ATxaAfI+QMIucGj6AOMHkZNGL2IKpMSu8o6GjIQtwIgFue/BJjseqtOvMmb1FGZukBe1A4VM/lfJkpVJu/vRII="}]},"maintainers":[{"name":"jaredlunde","email":"jared.lunde@gmail.com"}],"_npmUser":{"name":"jaredlunde","email":"jared.lunde@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/toggle-button_2.0.0_1594262686259_0.6334078696927086"},"_hasShrinkwrap":false},"2.0.1":{"name":"@accessible/toggle-button","version":"2.0.1","homepage":"https://github.com/accessible-ui/toggle-button#readme","repository":{"type":"git","url":"git+https://github.com/accessible-ui/toggle-button.git"},"bugs":{"url":"https://github.com/accessible-ui/toggle-button/issues"},"author":{"name":"Jared Lunde","email":"jared.lunde@gmail.com","url":"https://jaredLunde.com"},"license":"MIT","description":"🅰 An accessible two-state button that can be either off (not pressed) or on (pressed)","keywords":["react","react component","toggle button","accessible toggle button","a11y toggle button","react a11y toggle button","react accessible toggle button","react toggle button","react toggle button component","a11y","react aria toggle button","aria","aria toggle button"],"main":"dist/main/index.js","module":"dist/module/index.js","unpkg":"dist/umd/toggle-button.js","source":"src/index.tsx","types":"types/index.d.ts","exports":{".":{"browser":"./dist/module/index.js","import":"./dist/esm/index.mjs","require":"./dist/main/index.js","umd":"./dist/umd/toggle-button.js","source":"./src/index.tsx","types":"./types/index.d.ts","default":"./dist/main/index.js"},"./package.json":"./package.json","./":"./"},"sideEffects":false,"scripts":{"build":"lundle build","check-types":"lundle check-types","dev":"lundle build -f module,cjs -w","format":"prettier --write \"{,!(node_modules|dist|coverage)/**/}*.{ts,tsx,js,jsx,md,yml,json}\"","lint":"eslint . --ext .ts,.tsx","prepublishOnly":"cli-confirm \"Did you run 'yarn release' first? (y/N)\"","prerelease":"npm run validate && npm run build","release":"git add . && standard-version -a","test":"jest","validate":"lundle check-types && npm run lint && jest --coverage"},"husky":{"hooks":{"pre-commit":"lundle check-types && lint-staged","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"lint-staged":{"**/*.{ts,tsx,js,jsx}":["eslint","prettier --write"],"**/*.{md,yml,json}":["prettier --write"]},"commitlint":{"extends":["@commitlint/config-conventional"]},"config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"eslintConfig":{"extends":["lunde"]},"eslintIgnore":["node_modules","coverage","dist","/types","test","*.config.js"],"jest":{"moduleDirectories":["node_modules","src","test"],"testMatch":["<rootDir>/src/**/?(*.)test.{ts,tsx}"],"collectCoverageFrom":["**/src/**/*.{ts,tsx}"],"setupFilesAfterEnv":["./test/setup.js"],"snapshotResolver":"./test/resolve-snapshot.js","globals":{"__DEV__":true}},"prettier":{"semi":false,"singleQuote":true,"jsxSingleQuote":true,"bracketSpacing":false},"devDependencies":{"@commitlint/cli":"latest","@commitlint/config-conventional":"latest","@testing-library/jest-dom":"latest","@testing-library/react":"latest","@testing-library/react-hooks":"latest","@testing-library/user-event":"latest","@types/jest":"latest","@types/react":"latest","@types/react-dom":"latest","babel-jest":"latest","cli-confirm":"latest","cz-conventional-changelog":"latest","eslint":"latest","eslint-config-lunde":"latest","husky":"latest","jest":"latest","lint-staged":"latest","lundle":"latest","prettier":"latest","react":"latest","react-dom":"latest","react-test-renderer":"latest","standard-version":"latest","typescript":"latest"},"dependencies":{"@accessible/button":"^2.0.1","@react-hook/merged-ref":"^1.3.0","@react-hook/switch":"^1.3.0","clsx":"^1.1.1"},"peerDependencies":{"react":">=16.8"},"gitHead":"61fe71bd332e792d99266c410d40547ae070ad7c","_id":"@accessible/toggle-button@2.0.1","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-/4ubo8XJ7HH19DKz3xooKFE/h/1anmAFTAe+I16+4dJ0Eze89A7wVS1yULJrzL6gW5cgs7aVHEu2LgyIMNnxLA==","shasum":"feb40b03b26ac5274534189f9637577307962232","tarball":"https://registry.npmjs.org/@accessible/toggle-button/-/toggle-button-2.0.1.tgz","fileCount":17,"unpackedSize":95800,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfBof2CRA9TVsSAnZWagAAWpoP/jhW4UL5TrRbH1wzVT3r\noMYrso1XO4UrZa9xYMVpABLLqBl3gpCLTlolncYqmhv4tIIwcXHLm+9vgV4O\niA7Sc9dK7IcBGp9UA7nF1kA7GBDIfmmRYX7two4QS9TiOJPSRNVZunwd6PVz\n7RRl7E+HcTOgOI4UCqM1O6+Zc1G+zimLIgohCB1wiLtw54QjxRmajiYokvjo\n6cQi38rzmSAu0Qz5/Bk7G3lCGg6Igs6GOh3tchzntfQsp/iJiWfErxZfAQKo\nO0/JDg3pC0TWvkYGMcNw8wyZ30s5MdseOj+o3X4X73UBD89/+GBVwVlEQevX\n0vukkQVD3kHGxU94hAVYsF5RIETFUV7VJzQhb8csuGvQBut1ZsyAguK0Ke2v\nXkbvMp9lQB68ccpj5VByFq+psckhvzH5UkoRVsBsmTp8YrMPHjvhutBL6Ero\nICXqvho/w9bD4l+j6OYZabez30efYHgUmFzSi1wKrXJQbCseGeKrOsFh8aV3\niK0YiyEjMuMYQ2Mys1QLaj3XNsAH6yh+TIl2dzjYzferFtFdAizdKljjiLgM\nJJVg6IJ4kJy8SNrnqkMdLnMjCk9XUGsYbMXZQaf70ZnaCgDJvvqR+UI0ENi0\nRUmEMqkCAVURzB//dYHCinW3ZMgT2kKM0p4whm18IBo15yHh86/v6k6+9yFy\nOCJr\r\n=NoLV\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGnvwpCGGPcFMS12DWk6bS2DCaOb90k99LWaYObpeKpQAiEAh3rXh0k21ek8QYXtk/Bnoy2KMRTbefVBvN1PDlJ0BnY="}]},"maintainers":[{"name":"jaredlunde","email":"jared.lunde@gmail.com"}],"_npmUser":{"name":"jaredlunde","email":"jared.lunde@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/toggle-button_2.0.1_1594263541923_0.36108480799931164"},"_hasShrinkwrap":false},"2.0.2":{"name":"@accessible/toggle-button","version":"2.0.2","homepage":"https://github.com/accessible-ui/toggle-button#readme","repository":{"type":"git","url":"git+https://github.com/accessible-ui/toggle-button.git"},"bugs":{"url":"https://github.com/accessible-ui/toggle-button/issues"},"author":{"name":"Jared Lunde","email":"jared.lunde@gmail.com","url":"https://jaredLunde.com"},"license":"MIT","description":"🅰 An accessible two-state button that can be either off (not pressed) or on (pressed)","keywords":["react","react component","toggle button","accessible toggle button","a11y toggle button","react a11y toggle button","react accessible toggle button","react toggle button","react toggle button component","a11y","react aria toggle button","aria","aria toggle button"],"main":"dist/main/index.js","module":"dist/module/index.js","unpkg":"dist/umd/toggle-button.js","source":"src/index.tsx","types":"types/index.d.ts","exports":{".":{"browser":"./dist/module/index.js","import":"./dist/esm/index.mjs","require":"./dist/main/index.js","umd":"./dist/umd/toggle-button.js","source":"./src/index.tsx","types":"./types/index.d.ts","default":"./dist/main/index.js"},"./package.json":"./package.json","./":"./"},"sideEffects":false,"scripts":{"build":"lundle build","check-types":"lundle check-types","dev":"lundle build -f module,cjs -w","format":"prettier --write \"{,!(node_modules|dist|coverage)/**/}*.{ts,tsx,js,jsx,md,yml,json}\"","lint":"eslint . --ext .ts,.tsx","prepublishOnly":"cli-confirm \"Did you run 'yarn release' first? (y/N)\"","prerelease":"npm run validate && npm run build","release":"git add . && standard-version -a","test":"jest","validate":"lundle check-types && npm run lint && jest --coverage"},"husky":{"hooks":{"pre-commit":"lundle check-types && lint-staged","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"lint-staged":{"**/*.{ts,tsx,js,jsx}":["eslint","prettier --write"],"**/*.{md,yml,json}":["prettier --write"]},"commitlint":{"extends":["@commitlint/config-conventional"]},"config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"eslintConfig":{"extends":["lunde"]},"eslintIgnore":["node_modules","coverage","dist","/types","test","*.config.js"],"jest":{"moduleDirectories":["node_modules","src","test"],"testMatch":["<rootDir>/src/**/?(*.)test.{ts,tsx}"],"collectCoverageFrom":["**/src/**/*.{ts,tsx}"],"setupFilesAfterEnv":["./test/setup.js"],"snapshotResolver":"./test/resolve-snapshot.js","globals":{"__DEV__":true}},"prettier":{"semi":false,"singleQuote":true,"jsxSingleQuote":true,"bracketSpacing":false},"devDependencies":{"@commitlint/cli":"latest","@commitlint/config-conventional":"latest","@testing-library/jest-dom":"latest","@testing-library/react":"latest","@testing-library/react-hooks":"latest","@testing-library/user-event":"latest","@types/jest":"latest","@types/react":"latest","@types/react-dom":"latest","babel-jest":"latest","cli-confirm":"latest","cz-conventional-changelog":"latest","eslint":"latest","eslint-config-lunde":"latest","husky":"latest","jest":"latest","lint-staged":"latest","lundle":"latest","prettier":"latest","react":"latest","react-dom":"latest","react-test-renderer":"latest","standard-version":"latest","typescript":"latest"},"dependencies":{"@accessible/button":"^2.0.2","@react-hook/merged-ref":"^1.3.0","@react-hook/switch":"^1.3.0","clsx":"^1.1.1"},"peerDependencies":{"react":">=16.8"},"gitHead":"05b69635a801cd3e7bca3a67f620a09bae4153fb","_id":"@accessible/toggle-button@2.0.2","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-7Se0gSsdMHORL2l2hAFbSXRniMZHqQIgw6JuACbV7kMxNzW5odGRjKwupfnSuFLCt9x37iMlbYCoKx3HD1EBFQ==","shasum":"ada3976d1423890a2b861d7dc6b1d2635defb505","tarball":"https://registry.npmjs.org/@accessible/toggle-button/-/toggle-button-2.0.2.tgz","fileCount":17,"unpackedSize":94623,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfMcOsCRA9TVsSAnZWagAAUf0P/RPpwmfMuTkPOgtzkkWm\nYTpJ/Z8jHIDzof2XEJ6SSoTI8ihSXAIPBgADA/nsPveRayqtfWgyKeWaoUBq\nTPmep/B0uHaBZBMjkEDoQ1QIzkGw5IQHcEld32V7o8aVEXplVDNjQ15Lim7M\nqFxNfjnQ0xnZz9hHhZjciQKbWUc2ZJotdZ8MJxy+SdSoOR75CgQgzXtm1VI9\nuA1DxWGvHZmpVsKNxBwRbMkDUOzf4+kL9guOU/tBO8WPppUiXWI+jUBG1eEE\nsFRaTjjgLzUf10CdszFhmDvyp7mrFalQJnhq1VhYVxxgw+TjPOB0eJsXkrbe\nDL1P5qdC1pUnJFHB++UMUx6bJwkJZwNZ8eo7qwRJc6+m03JUXjN/DLHGOcz9\nv/AVKX58PG/mZsouRTWOwEk2yPrNKwKNwZr4CrMXIZoffBPXnCy372+i7nt+\nXgurTVrIk3up0lH9ikLcmT1TWL6qpnqD3NCfOsaIQf8g8mhZH5EgI9Q/zVUk\nrbHlTj3SVR+MDed2muGVXpKl93fq9A6aqCJYJhdi2jZV7gi8pB70aO410PAs\nAMCH/WXCJYk1yo5m/UNNpMC/HhZCFdZiJ0in84GwgNZbZpVW7ObeB2abw9HQ\nddbP36DlpFdKrqvBedm24C3zijzHVlD68/MwqlWv8qoKnR/tmsNv9fZPtp37\nDRkm\r\n=RbFN\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBeTZYRm1NWcoNhX9yt311JRTKn8cBIoZFsKRtQ5DTEMAiEAjEt2EujNrBsDCgrp1Bs2XlUi7KPK/tbackHC78HqHjo="}]},"maintainers":[{"name":"jaredlunde","email":"jared.lunde@gmail.com"}],"_npmUser":{"name":"jaredlunde","email":"jared.lunde@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/toggle-button_2.0.2_1597096876203_0.2498755097204759"},"_hasShrinkwrap":false}},"time":{"created":"2019-12-28T21:55:02.754Z","1.0.0":"2019-12-28T21:55:03.146Z","modified":"2022-04-04T11:07:09.623Z","1.0.1":"2019-12-28T23:15:14.552Z","1.1.0":"2020-05-30T03:26:13.384Z","1.1.1":"2020-05-30T15:15:46.806Z","2.0.0":"2020-07-09T02:44:46.598Z","2.0.1":"2020-07-09T02:59:02.051Z","2.0.2":"2020-08-10T22:01:16.365Z"},"maintainers":[{"name":"jaredlunde","email":"jared.lunde@gmail.com"}],"description":"🅰 An accessible two-state button that can be either off (not pressed) or on (pressed)","homepage":"https://github.com/accessible-ui/toggle-button#readme","keywords":["react","react component","toggle button","accessible toggle button","a11y toggle button","react a11y toggle button","react accessible toggle button","react toggle button","react toggle button component","a11y","react aria toggle button","aria","aria toggle button"],"repository":{"type":"git","url":"git+https://github.com/accessible-ui/toggle-button.git"},"author":{"name":"Jared Lunde","email":"jared.lunde@gmail.com","url":"https://jaredLunde.com"},"bugs":{"url":"https://github.com/accessible-ui/toggle-button/issues"},"license":"MIT","readme":"<hr>\n<div align=\"center\">\n  <h1 align=\"center\">\n    &lt;ToggleButton&gt;\n  </h1>\n</div>\n\n<p align=\"center\">\n  <a href=\"https://bundlephobia.com/result?p=@accessible/toggle-button\">\n    <img alt=\"Bundlephobia\" src=\"https://img.shields.io/bundlephobia/minzip/@accessible/toggle-button?style=for-the-badge&labelColor=24292e\">\n  </a>\n  <a aria-label=\"Types\" href=\"https://www.npmjs.com/package/@accessible/toggle-button\">\n    <img alt=\"Types\" src=\"https://img.shields.io/npm/types/@accessible/toggle-button?style=for-the-badge&labelColor=24292e\">\n  </a>\n  <a aria-label=\"Code coverage report\" href=\"https://codecov.io/gh/accessible-ui/toggle-button\">\n    <img alt=\"Code coverage\" src=\"https://img.shields.io/codecov/c/gh/accessible-ui/toggle-button?style=for-the-badge&labelColor=24292e\">\n  </a>\n  <a aria-label=\"Build status\" href=\"https://travis-ci.org/accessible-ui/toggle-button\">\n    <img alt=\"Build status\" src=\"https://img.shields.io/travis/accessible-ui/toggle-button?style=for-the-badge&labelColor=24292e\">\n  </a>\n  <a aria-label=\"NPM version\" href=\"https://www.npmjs.com/package/@accessible/toggle-button\">\n    <img alt=\"NPM Version\" src=\"https://img.shields.io/npm/v/@accessible/toggle-button?style=for-the-badge&labelColor=24292e\">\n  </a>\n  <a aria-label=\"License\" href=\"https://jaredlunde.mit-license.org/\">\n    <img alt=\"MIT License\" src=\"https://img.shields.io/npm/l/@accessible/toggle-button?style=for-the-badge&labelColor=24292e\">\n  </a>\n</p>\n\n<pre align=\"center\">npm i @accessible/toggle-button</pre>\n<hr>\n\nAn accessible two-state button that can be either off (not pressed) or on (pressed). Common use cases\nare toolbar buttons like Bold, Italic, and Underline. In addition to following the\n[accessibility guidelines here](https://www.w3.org/TR/wai-aria-practices/#button), this component\nprovides interop between real `<button>` elements and faux `<div>`, `<a>`, `<span>`, et. al. buttons.\n\n## Quick Start\n\n[Check out the example on **CodeSandbox**](https://codesandbox.io/s/accessibletoggle-button-example-s1cuy)\n\n```jsx harmony\nimport * as React from 'react'\nimport {ToggleButton, useA11yToggleButton} from '@accessible/toggle-button'\n\nconst Component = () => {\n  const [muted, setMuted] = React.useState(false)\n  return (\n    <ToggleButton active={muted} onChange={setMuted}>\n      <span>{muted ? 'Unmute' : 'Mute'}</span>\n    </ToggleButton>\n  )\n}\n\nconst ComponentWithHook = () => {\n  const ref = React.useRef(null)\n  const [muted, setMuted] = React.useState(false)\n  const a11yProps = useA11yToggleButton(ref, {\n    active: muted,\n    onChange: setMuted,\n  })\n\n  return (\n    <button ref={ref} {...a11yProps}>\n      <span>{muted ? 'Unmute' : 'Mute'}</span>\n    </button>\n  )\n}\n```\n\n## API\n\n### useA11yToggleButton(target, options?)\n\nA React hook for creating a headless a11y toggle button to the\n[W3C accessibility standard](https://www.w3.org/TR/wai-aria-practices/#button). In addition\nto providing accessibility props to your component, this hook will add events for interoperability\nbetween actual `<button>` elements and fake ones e.g. `<a>` and `<div>` to the `target` element.\n\n#### Arguments\n\n| Argument | Type                                                        | Required? | Description                                                                                          |\n| -------- | ----------------------------------------------------------- | --------- | ---------------------------------------------------------------------------------------------------- |\n| target   | <code>React.RefObject&lt;T&gt; &#124; T &#124; null</code>  | Yes       | A React ref or HTML element                                                                          |  |\n| options  | [`UseA11yToggleButtonOptions`](#usea11ytogglebuttonoptions) | Yes       | The component you want to turn into a button that handles focus and `space`, `enter` keydown events. |\n\n#### UseA11yToggleButtonOptions\n\n```ts\nexport interface UseA11yToggleButtonOptions {\n  /**\n   * Creates a controlled hook where the active value always matches this one.\n   */\n  active?: boolean\n  /**\n   * Sets the default active state of the button for uncontrolled hooks.\n   * @default false\n   */\n  defaultActive?: boolean\n  /**\n   * This callback is invoked any time the active state of the\n   * toggle button changes\n   */\n  onChange?: (active: boolean) => void\n  /**\n   * Adds a click event to your button\n   */\n  onClick?: (event: MouseEvent) => any\n}\n```\n\n#### Returns\n\n```ts\ninterface ReturnValue {\n  readonly 'aria-pressed': boolean\n  readonly role: 'button'\n  readonly tabIndex: 0\n}\n```\n\n### &lt;ToggleButton&gt;\n\nThis component clones its child component and adds accessibility roles for pressed/unpressed\nstate buttons. It also creates context so its active state is accessible from its children.\n\n#### Props\n\n| Prop          | Type                        | Default | Required? | Description                                                                            |\n| ------------- | --------------------------- | ------- | --------- | -------------------------------------------------------------------------------------- |\n| active        | `string`                    |         | No        | Creates a controlled component where the active value always matches this one.         |\n| defaultActive | `string`                    | `false` | No        | Sets the default active state of the button.                                           |\n| activeClass   | `string`                    |         | No        | Adds this class name to its child component when the button is in a active state.      |\n| inactiveClass | `string`                    |         | No        | Adds this class name to its child component when the button is in an inactive state.   |\n| activeStyle   | `React.CSSProperties`       |         | No        | Adds this style object to its child component when the button is in a active state.    |\n| inactiveStyle | `React.CSSProperties`       |         | No        | Adds this style object to its child component when the button is in an inactive state. |\n| onChange      | `(active: boolean) => void` |         | No        | This callback is invoked any time the active state changes.                            |\n| children      | `React.ReactElement`        |         | Yes       | This is the element you want to turn into a ToggleButton.                              |\n\n## LICENSE\n\nMIT\n","readmeFilename":"README.md"}