{"_id":"@cagov/ds-back-to-top","_rev":"18-9eb0fcd279326af215254111de03e944","name":"@cagov/ds-back-to-top","dist-tags":{"latest":"2.0.3"},"versions":{"1.0.0":{"name":"@cagov/ds-back-to-top","version":"1.0.0","keywords":[],"author":"","license":"ISC","_id":"@cagov/ds-back-to-top@1.0.0","maintainers":[{"name":"timothyshambra","email":"timothy.shambra@gmail.com"},{"name":"xjensen","email":"github@id.xjensen.com"},{"name":"carter.medlin","email":"carter.medlin@gmail.com"},{"name":"aaronhans","email":"aaronhans@gmail.com"},{"name":"chacha-california","email":"chach.sikes@digital.ca.gov"},{"name":"kkoryaka","email":"konstantin.koryaka@state.ca.gov"}],"dist":{"shasum":"6f10805eda9b9caa4e47572b47b5b03877f60ef4","tarball":"https://registry.npmjs.org/@cagov/ds-back-to-top/-/ds-back-to-top-1.0.0.tgz","fileCount":8,"integrity":"sha512-Zy8rAw4zuhKLkVF4xInQr1fXSuiZ2K36tadgxn8n06kvv0DVEkuKmH6djFMUH+1NIC5zIIPnxavuEAD7OVWZ2g==","signatures":[{"sig":"MEUCIB/PBuRUaCmADX5Yv2odJUvr+NpyhCPfOYsbmmbUtjIlAiEAhe4ZC/8DzlzRTyrgqY73n1fo3g0ZfzGGLINZ8jkiqi0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":10527},"main":"index.css","scripts":{"build":"sass src/index.scss index.css"},"_npmUser":{"name":"kkoryaka","email":"konstantin.koryaka@state.ca.gov"},"repository":{"url":"https://github.com/cagov/design-system/components/back-to-top/","type":"git"},"_npmVersion":"7.12.0","description":"When users get at the bottom of a really long page, they often will need to get back to the top. Back to top button will take the user to the top of the page when clicked on. Custom element code can be placed inside the footer tag or right before the clos","directories":{},"_nodeVersion":"14.16.1","_hasShrinkwrap":false,"devDependencies":{"sass":"^1.38.0"},"_npmOperationalInternal":{"tmp":"tmp/ds-back-to-top_1.0.0_1632432492256_0.8795518507011713","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"@cagov/ds-back-to-top","version":"1.0.1","keywords":[],"author":"","license":"ISC","_id":"@cagov/ds-back-to-top@1.0.1","maintainers":[{"name":"zakiyak","email":"zakiya.khabir@digital.ca.gov"},{"name":"timothyshambra","email":"timothy.shambra@gmail.com"},{"name":"xjensen","email":"github@id.xjensen.com"},{"name":"carter.medlin","email":"carter.medlin@gmail.com"},{"name":"aaronhans","email":"aaronhans@gmail.com"},{"name":"chacha-california","email":"chach.sikes@digital.ca.gov"},{"name":"kkoryaka","email":"konstantin.koryaka@state.ca.gov"}],"dist":{"shasum":"df1505d773128799192c4e36bb34e28e12e58c49","tarball":"https://registry.npmjs.org/@cagov/ds-back-to-top/-/ds-back-to-top-1.0.1.tgz","fileCount":8,"integrity":"sha512-zQpVIiztBUA/sYXi5YFIeIWnBhUX+4QXVOC6ip1OaMAWBNYynHhtd7we0r9nEzORlJdoUvQP4L+1b5UrJGm1ug==","signatures":[{"sig":"MEUCIQCBOCP/XwK8xb6UYfJJn6DKAys81vflf05gAU527RtoZAIgTsaaqCoMH8q3h6pKj8UKbSGqbBuwHW6Mex6SKv6pb50=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":11070},"main":"index.css","scripts":{"build":"sass src/index.scss index.css"},"_npmUser":{"name":"kkoryaka","email":"konstantin.koryaka@state.ca.gov"},"repository":{"url":"https://github.com/cagov/design-system/components/back-to-top/","type":"git"},"_npmVersion":"7.21.0","description":"When users get at the bottom of a really long page, they often will need to get back to the top. Back to top button will take the user to the top of the page when clicked on. Custom element code can be placed inside the footer tag or right before the clos","directories":{},"_nodeVersion":"14.16.1","_hasShrinkwrap":false,"devDependencies":{"sass":"^1.38.0"},"_npmOperationalInternal":{"tmp":"tmp/ds-back-to-top_1.0.1_1633040902001_0.2302301942344116","host":"s3://npm-registry-packages"}},"1.0.2":{"name":"@cagov/ds-back-to-top","version":"1.0.2","keywords":[],"author":"","license":"ISC","_id":"@cagov/ds-back-to-top@1.0.2","maintainers":[{"name":"zakiyak","email":"zakiya.khabir@digital.ca.gov"},{"name":"timothyshambra","email":"timothy.shambra@gmail.com"},{"name":"xjensen","email":"github@id.xjensen.com"},{"name":"carter.medlin","email":"carter.medlin@gmail.com"},{"name":"aaronhans","email":"aaronhans@gmail.com"},{"name":"chacha-california","email":"chach.sikes@digital.ca.gov"},{"name":"kkoryaka","email":"konstantin.koryaka@state.ca.gov"}],"dist":{"shasum":"70237c397463408f54296b9e3e8f0ca0af9bd80e","tarball":"https://registry.npmjs.org/@cagov/ds-back-to-top/-/ds-back-to-top-1.0.2.tgz","fileCount":11,"integrity":"sha512-VIGYJV0I5gpMiyN6SDL7rZAKm9JhLWCorOZ70EWj4JAphPCQyYUcZIocxFNgOMGZjYBz/N2sIJE7aMdIz6thbg==","signatures":[{"sig":"MEYCIQChOParJmZQy4+a1Ph59ao0l8lAgdodpc4o1y4Oe4KTrgIhANboYrhlPq+7/PiVvmTOPkiWZnr3qHeFq0eWlZ4iMCCS","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":13185,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhzavnCRA9TVsSAnZWagAAl0AP/AoNw46TTniNOLogChxF\nR3gYSCknKBazPVI3zQ46nrGtFzEavQZlvIHr89DYp6CbOzedPFzSS+i5WFKU\nyY9ONnQ77VnlM9MQ6kU2JwNG9EncpeAHSygIt52pRV6CE882QOsvy7sP9PED\nviBgpNzknwN/xrKBaab3unc3NPYHWSMK5rtEYFNB9R7KSO7jsVNi+7zYNou6\ntUs1rpQTwVYdcXoYDa1O5V1qSPv+7Js9F67U03OEvc8Ca8FylZkzafmYk+pj\nj3REbs/R72RLr2sYfL0eeRxpt6XRetTvFyDRy/otFAHHD6LTwcYYOzBvLOJE\nAV2Bia5TfwNNQKvMMoej9+fsE81FzuXFL9PP+OQSLUm8zxAeHWAhN9Majw7H\nQ/RPvzyHkrWqC8hwPE/91hAMtq1ksWxal6Y/1/3brIsXxJgU/oXXTJXH4n2i\n8WN/r5pRsrfSowR7zyGxyRhWe4QsNhGOQ8VJpsaCdfu9UOzZYO+Y1aQvIzId\nzIcy9tSJwxpgvc4iEAtuOeK6R2GCk6/ABAvmQhIB5ZRn5LAJnga65mkt1Ikz\ndhrquVwM5RZfwPvSuyh6DNin+3mkgpYSBiNMwRkNCe1yG8R5BhOHLcJjiHil\nTnnx/DGNw6/anWStrAa1SuRzUMqas3k3KUJ7/eY6PorFxD6hBMP9WJhz0cfm\nI0OP\r\n=uf39\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.css","type":"module","readme":"# Site branding header layer\n\nWhen users get at the bottom of a really long page, they often will need to get back to the top. Back to top button will take the user to the top of the page when clicked on. Custom element code can be placed inside the footer tag or right before the closing main tag.\n\n## HTML\n\n```\n<cagov-back-to-top data-hide-after=\"7000\" data-label=\"Back to top\">\n</cagov-back-to-top>\n\n```\n\n### Expected variables\n\nThere are some colors that should be defined by the containing page. Here are the CSS variable names and their fallback values used when not defined:\n\n- var(--gray-100, #f9f9fa)\n- var(--primary-color, #004abc)\n- var(--primary-dark-color, #003484)\n- var(--highlight-color, #fec02f)\n- var(--small-text, 0.875rem)\n- var(--white, #fff)\n\n\n","scripts":{"test":"web-test-runner \"test/**/*.js\" --node-resolve","build":"sass src/index.scss index.css","test:visual":"web-test-runner \"test/**/*.js\" --node-resolve --config test-config.js"},"_npmUser":{"name":"aaronhans","email":"aaronhans@gmail.com"},"repository":{"url":"https://github.com/cagov/design-system/components/back-to-top/","type":"git"},"_npmVersion":"7.18.1","description":"When users get at the bottom of a really long page, they often will need to get back to the top. Back to top button will take the user to the top of the page when clicked on. Custom element code can be placed inside the footer tag or right before the clos","directories":{},"_nodeVersion":"14.17.0","_hasShrinkwrap":false,"readmeFilename":"readme.md","devDependencies":{"sass":"^1.38.0","@open-wc/testing":"^3.0.1","@web/test-runner-puppeteer":"^0.10.2"},"_npmOperationalInternal":{"tmp":"tmp/ds-back-to-top_1.0.2_1636145596014_0.41152612747775286","host":"s3://npm-registry-packages"}},"2.0.0":{"name":"@cagov/ds-back-to-top","version":"2.0.0","keywords":[],"author":"","license":"ISC","_id":"@cagov/ds-back-to-top@2.0.0","maintainers":[{"name":"zakiyak","email":"zakiya.khabir@digital.ca.gov"},{"name":"timothyshambra","email":"timothy.shambra@gmail.com"},{"name":"xjensen","email":"github@id.xjensen.com"},{"name":"carter.medlin","email":"carter.medlin@gmail.com"},{"name":"aaronhans","email":"aaronhans@gmail.com"},{"name":"chacha-california","email":"chach.sikes@digital.ca.gov"},{"name":"kkoryaka","email":"konstantin.koryaka@state.ca.gov"}],"dist":{"shasum":"7bf6d47b83b311bd59b0a4d1cbdf6f5df475ac38","tarball":"https://registry.npmjs.org/@cagov/ds-back-to-top/-/ds-back-to-top-2.0.0.tgz","fileCount":13,"integrity":"sha512-oqoWdu82dNq4jbo+s7qOA3mF92ntzGBWhHxBC18ZC5lNsJaJylGgCDKtwNV1Tl83HJXvizmlrZzrirHaX7s2iw==","signatures":[{"sig":"MEYCIQDiwYord6JMXmiJzgLK6P3e3MMhAdwGjIS4pZFT73NZLwIhAO9lqft2YHbnxVZ6CyrzdElwBI88fAw3ptqNEmbdwf5s","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":26560,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh5aSvCRA9TVsSAnZWagAAb1YP/iEHVrYvIfNjg176svlB\nXA3YaqMP1DGqPMqhQYALPSpBSK6BUvgNZWOtJTD/IUu6cyopqxnC2rECaLz1\n1s8LG8Us31/e4hoK06kelCYkX088QbWBzbv10W1JUKhSJ/yVIjnq2prRKUv0\nxFWMCJr3qMirR7Bmnm47aKJnDdL8+YoPvlehzB/FwjN0UG0kBUo0GJWs329X\nKl1gUj85oj391aqB5E5gI+jEJZVTu8f+EckAXnEkQaGvhxjihRt156P7lZ3A\n7/a1W9h3dDb7mcRb7ZLnd7xMn8+FNiPjuCfglKmOhPTB3qxBhMaVeVJCTgBX\nJfzETFzOQwLnEwNRXiZbmJh6qDpE6/+zatmjJGEUUYzQHIt+mVIsvSUrljn5\nmwq8un2MnNTARyhDYt+8RAvoMKTe7jvpZZ7Uo71EApCy/XAmihARh1gKBy4x\n9wb21vnyvWRLc2XF9oxwrX9KIaNXieU1ioJOV08dfqabl/hWaVh5831j51iV\nEgAvu++M7auxRSNOVVF9VLlx7hUWRrdLMkjyWggeiJIqVkmzo3ds37tVeLIv\nW+6Zdvmyx1IjOjHbniULgBzaHQPtvjFgZPbwa+8j4W070uG75z1+n+ww/v3c\n9QMR8ijpuVlD6nVaJfJbLUAHf99AEhb5l4o6vt9Wq2y+4kGk1wI33Z/qqGyi\nq7Ni\r\n=q5FK\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","gitHead":"c9560dbfecc45cf829604966233d5f7422ba43b0","scripts":{"test":"web-test-runner \"test/**/*.js\" --node-resolve","build":"sass src/index.scss index.css && npm run build:js","build:js":"rollup --config rollup.config.js","cdn:publish":"node ../../docs/src/publish/cdn-deploy.js","test:visual":"web-test-runner \"test/**/*.js\" --node-resolve --config test-config.js","html:preview":"node ../../docs/src/publish/dynamic-html.js","prepublishOnly":"npm run html:preview && npm run build && npm test && npm run cdn:publish"},"_npmUser":{"name":"aaronhans","email":"aaronhans@gmail.com"},"repository":{"url":"https://github.com/cagov/design-system/components/back-to-top/","type":"git"},"_npmVersion":"8.1.2","description":"The back to top button lets people go back to the top of a page without scrolling. This can be helpful on long pages. When selected, the back to top button takes you to the top of the page.","directories":{},"_nodeVersion":"16.13.1","dependencies":{"rollup-plugin-import-css":"^3.0.2"},"_hasShrinkwrap":false,"devDependencies":{"sass":"^1.38.0","@open-wc/testing":"^3.0.1","@web/test-runner-puppeteer":"^0.10.2"},"_npmOperationalInternal":{"tmp":"tmp/ds-back-to-top_2.0.0_1642439855187_0.09611003862772471","host":"s3://npm-registry-packages"}},"2.0.1":{"name":"@cagov/ds-back-to-top","version":"2.0.1","keywords":[],"author":"","license":"ISC","_id":"@cagov/ds-back-to-top@2.0.1","maintainers":[{"name":"zakiyak","email":"zakiya.khabir@digital.ca.gov"},{"name":"timothyshambra","email":"timothy.shambra@gmail.com"},{"name":"xjensen","email":"github@id.xjensen.com"},{"name":"carter.medlin","email":"carter.medlin@gmail.com"},{"name":"aaronhans","email":"aaronhans@gmail.com"},{"name":"chacha-california","email":"chach.sikes@digital.ca.gov"},{"name":"kkoryaka","email":"konstantin.koryaka@state.ca.gov"}],"dist":{"shasum":"fec004931f20d68c6e078da6907d5b48281d8908","tarball":"https://registry.npmjs.org/@cagov/ds-back-to-top/-/ds-back-to-top-2.0.1.tgz","fileCount":12,"integrity":"sha512-KhSyf48eewWiApfSabuYYmSJIGMyJSjFHMnu1eoPm3CHzgoQy//WC+S/XS7QRI8bnwDEEBuqRZjjY/wqE9hFrQ==","signatures":[{"sig":"MEYCIQDvV5PhnHw57+mx/2zZgq4u7p/blEY4kTw4qdwBrPETjAIhAJixH4LNCMFKLyslcmWyi59EnaprPvKXh0ZPQ5kTl8px","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":25118,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJidY5BACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmofnA//S+HXyYUw4wUtWys00ydnMWwus9csoxPkHasGsjXB+Ve5UvcM\r\nWdKQD7X+qVToLj4ARIhOSlRUInWlT+s+GAb05TcaXzCQ4sK54y5wh+4r7Oi9\r\ntQLXtnvo0NBPn8hEFfa8XrhADxkH7GeUGgFCX/i4DkUR2RqTOomEU+tTdZ5q\r\n1xzmYSXvc4L/qVipH/F5gD5Oex8TDcJGm5xjPeX2042MYRQ3ZDq2FTEmW8E1\r\nCwEOyfiWoCNepyEhjd+/QC/tAc5DyOQT2a7nS+BnaqhWyi0R0CihFBnvixq2\r\n9pO0dyZypj26I/vRHeMq0RpavWWNsjCtqYmm9yd6+JLLc7vPmrk2C1V9l8Ez\r\nb9oZv8G20GG0q4hneLIIyWbe7AVxG9dK82PnmWk7K9dHdH7H/d6585Lv9Rr4\r\nc2nQDeW/5RZNAIRAB0yHnSSZim/6inbP/yVVEHLp5tMqIk1PJPwSWHHLVmFU\r\nAOpbxtyIcU5wazphJKtoZVoZn1jeJhsPmQL+PDOA+x9T88rBdHZlQ3wOwYaG\r\nljVWkA8yhJ2xu7ktD+vTATccf4Tho5t6tdKMOsO22qQAPYGz/kiPRqSs7LaB\r\nPJHPSK+SaciIJ3kjw7K5Fcdi3iqmI/E5PsxIrFuPeCEx/OenH4oSTIL1EHEN\r\nwMaL/rHkxFHqj6AzLaVEaa3UsubZOi2cAgI=\r\n=9la5\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","gitHead":"752dd8ff70eafb2f15ff41d565859d5e1969ca6e","scripts":{"test":"web-test-runner \"test/**/*.js\" --node-resolve","build":"sass src/index.scss index.css && npm run build:js","build:js":"rollup --config rollup.config.js","cdn:publish":"node ../../docs/src/publish/cdn-deploy.js","html:preview":"node ../../docs/src/publish/dynamic-html.js","prepublishOnly":"npm run html:preview && npm run build && npm test && npm run cdn:publish"},"_npmUser":{"name":"xjensen","email":"github@id.xjensen.com"},"repository":{"url":"https://github.com/cagov/design-system/components/back-to-top/","type":"git"},"_npmVersion":"7.22.0","description":"The back to top button lets people go back to the top of a page without scrolling. This can be helpful on long pages. When selected, the back to top button takes you to the top of the page.","directories":{},"_nodeVersion":"14.17.6","dependencies":{"rollup-plugin-import-css":"^3.0.2"},"_hasShrinkwrap":false,"devDependencies":{"sass":"^1.38.0","@open-wc/testing":"^3.0.1","@web/test-runner-puppeteer":"^0.10.2"},"_npmOperationalInternal":{"tmp":"tmp/ds-back-to-top_2.0.1_1651871297186_0.5252361615570054","host":"s3://npm-registry-packages"}},"2.0.2":{"name":"@cagov/ds-back-to-top","version":"2.0.2","keywords":[],"author":"","license":"ISC","_id":"@cagov/ds-back-to-top@2.0.2","maintainers":[{"name":"zakiyak","email":"zakiya.khabir@digital.ca.gov"},{"name":"timothyshambra","email":"timothy.shambra@gmail.com"},{"name":"xjensen","email":"github@id.xjensen.com"},{"name":"carter.medlin","email":"carter.medlin@gmail.com"},{"name":"aaronhans","email":"aaronhans@gmail.com"},{"name":"chacha-california","email":"chach.sikes@digital.ca.gov"},{"name":"kkoryaka","email":"konstantin.koryaka@state.ca.gov"}],"dist":{"shasum":"1eee1ff38b7bf66ad32f737ae6b451c85a51086c","tarball":"https://registry.npmjs.org/@cagov/ds-back-to-top/-/ds-back-to-top-2.0.2.tgz","fileCount":12,"integrity":"sha512-Bfd6a2E2raiX4bJ7CTvn5o/ew84FRsBjFc8IMEGbJ1mXzgaz6Nk/1fHywChOXCA3k+KJvIMzveI3nhxRGXh+rg==","signatures":[{"sig":"MEUCIQCgKCfOr+4beUWM5TBQyqypky4VYgT0dk3zTj8q3o8s3AIgO03F3vyOImtspRvjbFrcvvBtGgfyShIRtBoRa6tYdRE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":25449,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi6BhQACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqk4g//VAfBFCj60w7cEJ11NzRZ/s6o6M6MvekbIxPP61L7Gydto+AO\r\nzS4YF0Bhhrdw89a3+6pXVMrxkvmfF0WYZa4e2WEgc5Z62y7mLOR8J7vuG8x8\r\nICJV2KDrLF8nkw0NRj/W91n07FZ9hp1TQbVoV7SXmuY6TJRPs6oDAnCAAIXm\r\nGP1Ym3G8zZb6f0g05b+Q7gr6J+xshyjrrlseKiePP9Xdw/Ghf19lmQXou7N/\r\n69zN6rmWpq6C38ddAokgp7mm7Xy2LZxd115cs+OrLR9ap7ePUguyIZpnMRdV\r\n2YcXUp7jB2XizCxQYZOoZClage/nkvZJsR+kjBmG+CKWm5y4PqtZJllEktZ3\r\nnPpkTuPiDeoDzZLfdOSIWw6SARQagj72rZli/XHoDlu8v8lVDGHISNFtRh10\r\nG6TLsMpNnWtBCy0NjKL4gMcI3eSpIN7VDCYiEp/gERjZ1Y+DboMHrlBerbmS\r\narSKOqkGvud+Nn15pqBMu0gZIIaItCKXXPgv65DO2HHsKvq5UK8Byornl0tn\r\nD/27hv4pseuM67vqHBwlrkTPVDxvDkEGtnyqQiIK3KPe0mVoz74dTOvBWXuU\r\noIIEWDs7t6iQewtNByBuE9NtUBqTMr3AstHErRbO0x9NN81j8jHcaKJg37RM\r\n/6lefdz33xWUp5A7dzQIL0o45aM5NNYNeLc=\r\n=JDEC\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","gitHead":"2010c4478bec768ab66ae0b4b7cf096d231f3dc1","scripts":{"test":"web-test-runner \"test/**/*.js\" --node-resolve","build":"sass src/index.scss index.css && npm run build:js","build:js":"rollup --config rollup.config.js","cdn:publish":"node ../../docs/src/publish/cdn-deploy.js","html:preview":"node ../../docs/src/publish/dynamic-html.js","prepublishOnly":"npm run html:preview && npm run build && npm test && npm run cdn:publish"},"_npmUser":{"name":"xjensen","email":"github@id.xjensen.com"},"repository":{"url":"https://github.com/cagov/design-system/components/back-to-top/","type":"git"},"_npmVersion":"8.11.0","description":"The back to top button lets people go back to the top of a page without scrolling. This can be helpful on long pages. When selected, the back to top button takes you to the top of the page.","directories":{},"_nodeVersion":"16.16.0","dependencies":{"rollup-plugin-import-css":"^3.0.2"},"_hasShrinkwrap":false,"devDependencies":{"sass":"^1.38.0","@open-wc/testing":"^3.0.1","@web/test-runner-puppeteer":"^0.10.2"},"_npmOperationalInternal":{"tmp":"tmp/ds-back-to-top_2.0.2_1659377744375_0.9719353287227384","host":"s3://npm-registry-packages"}},"2.0.3":{"name":"@cagov/ds-back-to-top","version":"2.0.3","keywords":[],"author":"","license":"ISC","_id":"@cagov/ds-back-to-top@2.0.3","maintainers":[{"name":"jbum","email":"jbum@jbum.com"},{"name":"zakiyak","email":"zakiya@innovation.ca.gov"},{"name":"timothyshambra","email":"timothy.shambra@gmail.com"},{"name":"xjensen","email":"github@id.xjensen.com"},{"name":"aaronhans","email":"aaronhans@gmail.com"},{"name":"chacha-california","email":"chach.sikes@innovation.ca.gov"},{"name":"kkoryaka","email":"konstantin.koryaka@state.ca.gov"}],"dist":{"shasum":"1cd19452afda7e5cb987dff4330e519fdbd91ec4","tarball":"https://registry.npmjs.org/@cagov/ds-back-to-top/-/ds-back-to-top-2.0.3.tgz","fileCount":12,"integrity":"sha512-LIWjHDYkfDC0K1Zstv22F5L7QuDnaXCAqYkHsvk1uGdC/dZ2ZS/llA/u+MZ7SzM1WYeskrgMwW6mcyPaWpPAvg==","signatures":[{"sig":"MEQCIHfN7k58N9pR+H2npc5g276ot4WDkutRGrLG1asxXNbkAiBkJgWKOij+6kMzhdjtlgXnQ7i32bV94eUKBonspQLJfw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":25803},"main":"dist/index.js","type":"module","gitHead":"479f1353fed9d262e3d33cd8fbaad72a8c7f3da3","scripts":{"test":"web-test-runner \"test/**/*.js\" --node-resolve","build":"sass src/index.scss index.css && npm run build:js","build:js":"rollup --config rollup.config.js","cdn:publish":"node ../../docs/src/publish/cdn-deploy.js","html:preview":"node ../../docs/src/publish/dynamic-html.js","prepublishOnly":"npm run html:preview && npm run build && npm test && npm run cdn:publish"},"_npmUser":{"name":"xjensen","email":"github@id.xjensen.com"},"repository":{"url":"https://github.com/cagov/design-system/components/back-to-top/","type":"git"},"_npmVersion":"10.2.4","description":"The back to top button lets people go back to the top of a page without scrolling. This can be helpful on long pages. When selected, the back to top button takes you to the top of the page.","directories":{},"_nodeVersion":"21.6.2","dependencies":{"rollup-plugin-import-css":"^3.0.2"},"_hasShrinkwrap":false,"devDependencies":{"sass":"^1.38.0","@open-wc/testing":"^3.0.1","@web/test-runner-puppeteer":"^0.10.2"},"_npmOperationalInternal":{"tmp":"tmp/ds-back-to-top_2.0.3_1709242224589_0.5115720800270385","host":"s3://npm-registry-packages"}}},"time":{"created":"2021-09-23T21:28:12.201Z","modified":"2026-04-01T19:49:53.943Z","1.0.0":"2021-09-23T21:28:12.393Z","1.0.1":"2021-09-30T22:28:22.111Z","1.0.2":"2021-11-05T20:53:16.250Z","2.0.0":"2022-01-17T17:17:35.369Z","2.0.1":"2022-05-06T21:08:17.349Z","2.0.2":"2022-08-01T18:15:44.544Z","2.0.3":"2024-02-29T21:30:24.746Z"},"license":"ISC","keywords":[],"repository":{"url":"https://github.com/cagov/design-system/components/back-to-top/","type":"git"},"description":"The back to top button lets people go back to the top of a page without scrolling. This can be helpful on long pages. When selected, the back to top button takes you to the top of the page.","maintainers":[{"email":"github@id.xjensen.com","name":"xjensen"},{"email":"jbum@jbum.com","name":"jbum"},{"email":"chach.sikes@innovation.ca.gov","name":"chacha-california"},{"email":"zakiya@innovation.ca.gov","name":"zakiyak"}],"readme":"# Back to top button\n\nThe back to top button lets people go back to the top of a page without scrolling. This can be helpful on long pages. When selected, the back to top button takes you to the top of the page.\n\nThis can help people with mobility issues navigate the page more easily. It also helps people save time.\n\nThe back to top button is especially helpful for people using mobile devices. It decreases the swiping they have to do to get back to the top of a page.\n\nThe button appears when the user has scrolled past the first screen and begins to scroll back up. It disappears after 7 seconds by default. If someone scrolls again, it will reappear. If the user reaches the top of the page at any point, the button will disappear right away.\n\n## When and how to use it\n\nWe recommend installing the back to top button by default. If a page is not long enough to require scrolling, the back to top button will not appear.\n\n### How not to use it\n\nThis component has no extra guidance. Use the component as specified.\n\n## Demo and sample markup\n\nThe back to top component is integrated into this site and appears at the bottom right of the screen during a pause in scroll activity if you have scrolled down past the first screen and have begun to scroll back up.\n\n<html-preview>\n\n```html preview\n<cagov-back-to-top data-hide-after=\"7000\" data-label=\"Back to top\">\n</cagov-back-to-top>\n```\n\n</html-preview>\n\n## Specs\n\n| Property     | Value            |\n| ------------ | ---------------- |\n| Machine name | ds-back-to-top   |\n| JavaScript   | yes              |\n| SCSS         | ./src/index.scss |\n\n## Project installation\n\nThe instructions assume familiarity with [npm](https://npmjs.com) package management tool, modern JavaScript techniques, and [Sass](https://sass-lang.com/).\n\n1. `npm i @cagov/ds-back-to-top`\n2. Use `import`[¹](/footnotes/#footnote1) or `require` to include the component’s **JavaScript** in your page or compiler.\n3. Add the **sample markup** to your HTML.\n4. Refer to the [Content model section](#content-model) for notes on mapping your data to the **sample markup**.\n\n### CDN installation\n\nWe recommend using a build system and bundling your JavaScript for faster performance. If you do not use a build system, you can include the code from our CDN with a script tag.\n\n```html\n<script type=\"module\" src=\"https://cdn.designsystem.webstandards.ca.gov/components/ds-back-to-top/v2.0.3/dist/index.js\"></script>\n```\n\n## CSS variables\n\nThe following [CSS variables](https://developer.mozilla.org/en-US/docs/Web/CSS/Using_CSS_custom_properties) are used in this component:\n\n- `--primary-700`\n- `--primary-900`\n- `--accent2-500`\n- `--font-size-2`\n- `--font-size-1`\n\nAll CSS variables define their own fallback value so you do not have to use additional CSS unless you want to change them. You may define your own value for the variable by adding your own style rules. Here is an example defining the global hex value for a CSS variable named “--primary-700”:\n\n```css\n:root {\n  --primary-700: #165ac2;\n}\n```\n\n## Accessibility\n\n### Component-specific accessibility review\n\n- Make sure that arrow span has `aria-hidden=”true”` attribute.\n- When button is not visible, make sure it has `aria-hidden=”true”` and `tabindex=”-1”` attributes. When button is visible, make sure those attribute are no longer there.\n- Make sure that button has solid, 2px outline that uses `--accent2-500` variable on focused state.\n\n### Standard accessibility review\n\nAs a component in Alpha status, this component must pass the following accessibility reviews every time a new version is published:\n\n- Tested with the `[axe](https://www.deque.com/axe/)` accessibility tool and passes all automated [WCAG](https://www.w3.org/TR/WCAG21/) Level AA checks\n- Reviewed with the [VoiceOver](https://www.apple.com/voiceover/info/guide/_1121.html) screen reader on desktop\n- Verified keyboard navigation and that all actionable elements of the component are reachable via keyboard commands only\n- Reviewed component layout on a variety of screen sizes\n\n## Progressive enhancement\n\nThis component uses a [custom element](https://developer.mozilla.org/en-US/docs/Web/Web_Components/Using_custom_elements) defined in JavaScript in addition to HTML and CSS. Edge, Firefox, Safari, and Chrome support custom elements. If the JavaScript for this component is not delivered or supported, the component will not display. This is the desired behavior because this component is not critical for site interaction. It uses [CSS variables](<https://developer.mozilla.org/en-US/docs/Web/CSS/var()#syntax>) to inherit design token values. Token definitions are not required because these style rules provide fallback values.\n\n<a name=\"content-model\"></a>\n\n## Content model\n\nThis component uses the following data attributes. We provide this information to help with integrating the component into backend publishing systems or identifying content that may require translation.\n\n| Name       | Attribute name  | Data type | Field type                              |\n| ---------- | --------------- | --------- | --------------------------------------- |\n| Label      | data-label      | string    | Plain text (default is “Back to top”)   |\n| Hide after | data-hide-after | string    | Integer (milliseconds, default is 7000) |\n\n## Contributor/developer documentation\n\n- [Component information](https://github.com/cagov/design-system/blob/main/components/README.md)\n\n- [Unit tests](https://github.com/cagov/design-system/blob/main/components/UNIT-TESTS.md)\n","readmeFilename":"README.md"}