{"_id":"@antipodes-medical/back-to-top","_rev":"1-c9dfd2a8a3488f7d69755166111d22cd","name":"@antipodes-medical/back-to-top","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"@antipodes-medical/back-to-top","version":"1.0.0","main":"src/index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1","eslint":"eslint '**/*.js'","eslint:fix":"eslint '**/*.js' --fix"},"repository":{"type":"git","url":"git+https://github.com/antipodes-medical/back-to-top.git"},"author":"","license":"ISC","bugs":{"url":"https://github.com/antipodes-medical/back-to-top/issues"},"homepage":"https://github.com/antipodes-medical/back-to-top#readme","description":"## Installation","devDependencies":{"@antipodes-medical/eslint-config-antipodes":"^1.0.5"},"dependencies":{"@antipodes-medical/js-helpers":"^1.0.0"},"gitHead":"7aff983d7e12e713dfe7d90d9e6217049e1a73db","_id":"@antipodes-medical/back-to-top@1.0.0","_nodeVersion":"12.22.12","_npmVersion":"6.14.16","dist":{"integrity":"sha512-+7JG0HJSpwJDHyKrDHQrob6UlHn6ZeiRxMFwR7iYi9RTDgzLPDldcRXrx9eZOl6d+t8KxP6ctQ3MkUuw6RVBrg==","shasum":"9666a2345e6df927dd391b96c1ce8576cf0ebbff","tarball":"https://registry.npmjs.org/@antipodes-medical/back-to-top/-/back-to-top-1.0.0.tgz","fileCount":15,"unpackedSize":43215,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDuDI3DDK9UM2ewBtjYnRZPkIbO+sMOkG+34SDv8kiOOwIhAJGCNjCVQvpPZpLo3oPmmhRG63cHH7f5lQsEs0+K3xDa"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJif5gPACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoLoQ//dHmgJvuvP+6GYdey93y+HC1C/5T15FQ2fnS8+m015q5E9WIZ\r\nwuOQCozlrh/9+mIk8uZFP9gYmIQXN0DnNBYwV7khnDulafU/QZ5dA8NxscBT\r\naGKzO4nSF1TWxstvN3yxI9x4AMyct8QUja+inIepCloZ4ACBWMp4JBKsEwTW\r\nlzJAu/6y+ASwkg45mo/LUAfUFZ1GX00pRNaQuwMJyxDIMDnEHX+n3w7utDXE\r\nyz86VF9LzbyaCMEpWDQnIpZXdIah2d4mDwVBEuUsIwGL8bJidtPvuvHxjqHX\r\n95C7/kUHVnxET2yFFxkv0jF5knREcSvcXQm2h2wIj4wmMKEiJT4N22+hHw2U\r\nZ+7pPZn4bvGWvM+VJZLzt0zGVc9tJdkToz2gnnMTGUflaVCwodl1BpIE+v/L\r\ngbAtIfrF5KYhpN+Zczoe0uLXZ3Cr0/QZyR4L0No4Iu9D6VMahMhWMPkQ2xAA\r\nJdEx84vPGwJDJ5+2djxZRfFALbzi2WQInpRxjR0OLmaQxnNFkaBed0F9YPGL\r\njFZBs5xYSHEC5TRPda6k37k9jyha/GgUOesierCFr+JF6ZFK5D0+/U63mrsh\r\nx1PtGXt4F4kgJiSZmBiHm+uP3B+3xKUt+vonE30n6dBZNHMG91LHVYLXvdUU\r\n5mMQlHB8W8X6XMB3vAeu0bKW4OaSXtJnuo4=\r\n=I7YU\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"antipodes-m","email":"theo@antipodesmultimedia.com"},"directories":{},"maintainers":[{"name":"antipodes-m","email":"theo@antipodesmultimedia.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/back-to-top_1.0.0_1652529167352_0.018816459410635922"},"_hasShrinkwrap":false},"1.0.1":{"name":"@antipodes-medical/back-to-top","version":"1.0.1","main":"src/index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1","eslint":"eslint '**/*.js'","eslint:fix":"eslint '**/*.js' --fix"},"repository":{"type":"git","url":"git+https://github.com/antipodes-medical/back-to-top.git"},"author":"","license":"ISC","bugs":{"url":"https://github.com/antipodes-medical/back-to-top/issues"},"homepage":"https://github.com/antipodes-medical/back-to-top#readme","description":"## Installation","devDependencies":{"@antipodes-medical/eslint-config-antipodes":"^1.0.5"},"dependencies":{"@antipodes-medical/js-helpers":"^1.0.0"},"gitHead":"0218263a9d028913c0e74f7477c400d751d65e9b","_id":"@antipodes-medical/back-to-top@1.0.1","_nodeVersion":"12.22.12","_npmVersion":"6.14.16","dist":{"integrity":"sha512-uK+98dC/o/phuyad6Gm8RKPZATDQWwBYC7hDq+IjNjlMsl3NuH8ihH2EUjxin3iQnzxG19+fnhpSUET9rPsITw==","shasum":"7c679de9f3b81b06b3fdbe2192ed2110d6841f68","tarball":"https://registry.npmjs.org/@antipodes-medical/back-to-top/-/back-to-top-1.0.1.tgz","fileCount":15,"unpackedSize":43758,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDRYx3tzOGTPBH7xJCHxT18N2Ft4eRAsNdI4o3raL/+QQIhAMHi3b8KK+sa4/ErCJvycgfrWec7EooN34LwsDmWouNO"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJif5k1ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo83RAAn4bdBWyc1QrY2r6e9v/b3e7rX/AwVIb9QSD7dEovwEirX3Rx\r\nxEPjy7ysIsUwu3/gcclONZyEHxrC7sM0JW3+NMNOwS3n0vcagT57hdx9fI38\r\nDupeDFA7gAKE/klARQ6vikKTYTjY354jlHRWbUCypz3AA8PFmtI0QelfVVTy\r\nEPio0Byn097/gRs3uGFCdDlgVOM15L0n0ad4jjLF9+R8BbgWbCvKGkMLOHdC\r\nk01z4jx5pjK1Os+J22U0TfkS8zAu2hmsnWmj1F3JmcN6l2LC19Ka+ZrJC1W6\r\n0V2rjimIodXxXK1u3DJm7jdrjXpKPjEVg4SiHY9ou4FfZUc9HnTzP8H6hJc/\r\nnwTTsw/L9lEuQUnX/6YvZSA7RPb07S3kEVGkK3UeZ3TjhOsTNbK169YpfDJ4\r\nsTBEj3BI2qsWR/Q1R3nCbjZvTbHGibLWUnogVsR+zVjn9lTIRQZNVOFLUzFi\r\nPRVf9Ti7lPFzoBtysl0NCoAVmwnWhTCOYGf5iZ2+1cNYjyA6TuwkPH4rloAt\r\nJFtuDP0+V5+LqvFdy3C5qvJyUSMbhRng7Ist04YmStiSaGphSsnKro1bzsk9\r\nkP1YZEr1RdBbS3VLGSLvzRJuxncjhz6jy3KIofXt9fXEFMIqBpGk09HPYKc3\r\ne2qczECBAseoLptC+BgIuclQ+0sYVWd7tvE=\r\n=37an\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"antipodes-m","email":"theo@antipodesmultimedia.com"},"directories":{},"maintainers":[{"name":"antipodes-m","email":"theo@antipodesmultimedia.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/back-to-top_1.0.1_1652529460819_0.45633238896096406"},"_hasShrinkwrap":false}},"time":{"created":"2022-05-14T11:52:47.289Z","1.0.0":"2022-05-14T11:52:47.505Z","modified":"2022-05-14T11:57:41.111Z","1.0.1":"2022-05-14T11:57:41.010Z"},"maintainers":[{"name":"antipodes-m","email":"theo@antipodesmultimedia.com"}],"description":"## Installation","homepage":"https://github.com/antipodes-medical/back-to-top#readme","repository":{"type":"git","url":"git+https://github.com/antipodes-medical/back-to-top.git"},"bugs":{"url":"https://github.com/antipodes-medical/back-to-top/issues"},"license":"ISC","readme":"# Back to top\n\n## Installation\n\n```bash\nyarn add @antipodes-medical/back-to-top\n```\n\n```javascript\nimport '@antipodes-medical/back-to-top';\n```\n\n## Utilisation\n\n```html\n\n<back-to-top>\n    Contenu du back to top\n</back-to-top>\n```\n\n## Attributs disponibles\n\n### Distance\n\nRend le bouton visible à une distance spécifiée.\n\n| Name | Type | Default | \n| ---------- | ------ | ------- | \n| `distance` | Number | `800` |\n\n```html\n\n<back-to-top distance=\"200\">\n    Contenu du back to top\n</back-to-top>\n```\n\n### Rounded\n\nDonnez au bouton la forme d'un cercle.\n\n| Name | Type | Default | \n| --------- | ------- | ------- | \n| `rounded` | Boolean | `true` |\n\n```html\n\n<back-to-top rounded=\"false\">\n    Contenu du back to top\n</back-to-top>\n```\n\n## Évènements disponibles\n\n### back-to-top:is-active\n\nLorsque le bouton est actif.\n\n```javascript\nwindow.addEventListener('back-to-top:is-active', () => console.log('back to top is active'));\n```\n\n### back-to-top:is-hidden\n\nLorsque le bouton est inactif.\n\n```javascript\nwindow.addEventListener('back-to-top:is-hidden', () => console.log('back to top is hidden'));\n```\n\n## Styles disponibles\n\n```css\n:root {\n    /* La largeur du bouton */\n    --back-to-top__width: 50px;\n\n    /* La hauteur du bouton */\n    --back-to-top__height: 50px;\n\n    /* Le z index du bouton */\n    --back-to-top__z-index: 100;\n\n    /* La position à droite de l'écran  du bouton */\n    --back-to-top__right: 0;\n\n    /* La position en bas de l'écran du bouton */\n    --back-to-top__bottom: 20px;\n\n    /* La couleur d'arrière plan du bouton */\n    --back-to-top__background: #000;\n\n    /* La transformation effectuée sur le bouton */\n    --back-to-top__transform: translate3d(calc(100% + var(--back-to-top__extra-offset, 0px)), 0, 0)) var(--back-to-top__extra-transform, rotate(0 deg));\n\n    /* La transformation effectuée sur le bouton lorsqu'il est actif */\n    --back-to-top__transform--active: translate3d(calc((var(--back-to-top__offset-right, 20px) + var(--back-to-top__extra-offset, 0px)) * -1), 0, 0)) var(--back-to-top__extra-transform--active, var(--back-to-top__extra-transform, rotate(0 deg)));\n\n    /* La couleur d'arrière plan du bouton lorsqu'il est actif */\n    --back-to-top__background--active: #FFF;\n}   \n```","readmeFilename":"README.md"}