{"_id":"@12joan/preact-hint","_rev":"1-b4de4c0d20b8836bb8a139eb9ed367fd","name":"@12joan/preact-hint","dist-tags":{"latest":"0.4.0"},"versions":{"0.3.0":{"name":"@12joan/preact-hint","version":"0.3.0","source":"src/index.tsx","types":"dist/index.d.ts","type":"module","exports":{".":"./dist/preact-hint.js","./style.css":"./dist/style.css","./dist/style.css":"./dist/style.css"},"license":"MIT","description":"Tooltip Component for Preact","homepage":"https://rschristian.github.io/preact-hint","repository":{"type":"git","url":"https://github.com/rschristian/preact-hint"},"keywords":["preact","hint","tooltip","component"],"sideEffects":false,"scripts":{"build":"microbundle -f modern --no-sourcemap --tsconfig tsconfig.build.json && mv dist/preact-hint.css dist/style.css","build:docs":"yarn build:widget --no-watch && mkdir build && wmr build --prerender && node scripts/post-build.js","serve:dev":"wmr -p 3000 & yarn build:widget","serve:prod":"wmr serve -p 3000","build:widget":"microbundle -f modern -i docs/utils/render.ts --external none -o docs --no-sourcemap --generateTypes=false --tsconfig tsconfig.build.json --watch","format":"prettier --write --ignore-path .gitignore ."},"peerDependencies":{"preact":"*"},"devDependencies":{"@twind/wmr":"^1.0.9","dedent":"^0.7.0","htm":"^3.1.0","microbundle":"^0.14.2","preact":"^10.7.0","preact-feather":"^4.2.1","preact-iso":"^2.3.0","prettier":"^2.6.2","prettier-config-rschristian":"^0.1.1","prismjs":"^1.27.0","sass":"^1.53.0","twind":"^0.16.16","typescript":"^4.3.5","wmr":"^3.7.2"},"prettier":"prettier-config-rschristian","licenseText":"MIT License\n\nCopyright (c) 2020 Ryan Christian <rchristian@ryanchristian.dev>\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.\n","_id":"@12joan/preact-hint@0.3.0","dist":{"shasum":"c9afda9f03fcd401a410fd5754a24765d1dac8db","integrity":"sha512-rKuIvp61QYXkGDkDDC9S32skEbpoFAd5UxwWos24KydjOrS94VchYMRulB50kp6Xp0vj85Xtx+tWqj8U2O3Apg==","tarball":"https://registry.npmjs.org/@12joan/preact-hint/-/preact-hint-0.3.0.tgz","fileCount":8,"unpackedSize":7814,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICYrKDelnp/4kuhpkphBhxvZB7ig6b1w4SunSh4yV462AiBtqre7d6MwreUHBSteolb92mjSDpGBNmUEDNpwmE3+2w=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJix/U8ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq9gw//WHJ2yxS0Ep521IJ3wJZ+3iBfaYMBMz4uk5FHkqL01zAA30JJ\r\n+IsZHwMPrFBEWfijJ6egwAgY5WvOhMaJ0Jtydu1Bc3PJVI7jgNJCrBrwP3OP\r\nCi+Ym7b7283gOLMY8j9nx1AeFVS0JERoDmdmNEsujrcYJr2JvF8BX/mWKiE+\r\n7gk9aS9Ij7WyrtqPkYBAxXHVyOHW2aiW5HK3um0HYJebooh7SieAcExxXgVg\r\n6jH/xjm+KDr1GmQLqM+8R4HTskG8zt0YM2PUeN6O8anEU81mHuG6H2xxxrEZ\r\nce3yGR9xR9H4NVdKsNAFbb1mEtsacyskeVpW3iyrTXLDmkMC/Eb/m2zRkLuM\r\nHCG0khenfUPwFBn/yxDiLm8QEO8sFhHk4PUdspHTwSG4f9ILI2Z7eFGN8j89\r\nOFbQwC/i0KWgFdBoo7uqHI4azW5g1rso+6LzcEP4aL/Wx1KNPnAe1Yf4Bjeq\r\nTKJ911Q978Z3Joh/u4BMi9f5Wypu2zWFonE6C6RnkMQ0Mxzm41NwW6/Z+Bpf\r\n/r5s2WVqYtCZfLfvtCSpXhIfij8RTPCDdmknSAD4t8QOzlawZgvwEewefJDo\r\nhZYas/f50oRd5Yf74HqtWOOZfdwFXEmZESwjhggYV2oziEQkQDijuajicsML\r\n+7mUTOSTKkfVVvpHKzk7/uWQSYEF/sHkPPk=\r\n=VY+V\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"12joan","email":"joe_npmjs@osbert.me"},"directories":{},"maintainers":[{"name":"12joan","email":"joe_npmjs@osbert.me"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/preact-hint_0.3.0_1657271612435_0.5068924257190142"},"_hasShrinkwrap":false},"0.4.0":{"name":"@12joan/preact-hint","version":"0.4.0","source":"src/index.tsx","types":"dist/index.d.ts","type":"module","exports":{".":"./dist/preact-hint.js","./style.css":"./dist/style.css","./dist/style.css":"./dist/style.css"},"license":"MIT","description":"Tooltip Component for Preact","homepage":"https://rschristian.github.io/preact-hint","repository":{"type":"git","url":"https://github.com/rschristian/preact-hint"},"keywords":["preact","hint","tooltip","component"],"sideEffects":false,"scripts":{"build":"microbundle -f modern --no-sourcemap --tsconfig tsconfig.build.json && mv dist/preact-hint.css dist/style.css","build:docs":"yarn build:widget --no-watch && mkdir build && wmr build --prerender && node scripts/post-build.js","serve:dev":"wmr -p 3000 & yarn build:widget","serve:prod":"wmr serve -p 3000","build:widget":"microbundle -f modern -i docs/utils/render.ts --external none -o docs --no-sourcemap --generateTypes=false --tsconfig tsconfig.build.json --watch","format":"prettier --write --ignore-path .gitignore ."},"peerDependencies":{"preact":"*"},"devDependencies":{"@twind/wmr":"^1.0.9","dedent":"^0.7.0","htm":"^3.1.0","microbundle":"^0.14.2","preact":"^10.7.0","preact-feather":"^4.2.1","preact-iso":"^2.3.0","prettier":"^2.6.2","prettier-config-rschristian":"^0.1.1","prismjs":"^1.27.0","sass":"^1.53.0","twind":"^0.16.16","typescript":"^4.3.5","wmr":"^3.7.2"},"prettier":"prettier-config-rschristian","licenseText":"MIT License\n\nCopyright (c) 2020 Ryan Christian <rchristian@ryanchristian.dev>\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.\n","_id":"@12joan/preact-hint@0.4.0","dist":{"shasum":"b8ad047a8004b710ce7723b979942caa9147c098","integrity":"sha512-R5x9KcZzIDj6qxiHuZ7q8sLUfuj0dPw7Hy9IHcJp7UJRwX1AVb29OOqJ9EDH5aQXFrhxtqdY/F9fnYXQaY234g==","tarball":"https://registry.npmjs.org/@12joan/preact-hint/-/preact-hint-0.4.0.tgz","fileCount":8,"unpackedSize":7980,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDkBpQGqMwQ7C1xpkYFbksz+z9i+CPF92r2SsqUDEPppQIhAP8klW8FXtUkZW5rK/cDcfSSDRr29b2m8UuPVnqpeM/x"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiyBakACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqfeQ/9EPMJlRhMfNP6HH+RFQ6frUjByVf/pbKa9QA2FnAUuGBbmCnP\r\n+cIm9dwMZQAM97Uy4e/HsfQGkARdaNR5o4nCcEMzI9DKayCNFGDFVe1ULNru\r\naNeBk7HtYeVOYkUqj3usuuvkrDXqrmg2Shg5dPfFRdt1PTHj0lJL35+UDCAm\r\nDKwO1wVUjI5Ocxlpu3aNbLXWcFiuwdH2l1TF9mSy6gv59MUBYkeYMPSxlcfj\r\nE8td1E/79QQ5V07tJV6VJp2E5Sf3B8Phsu9kp3Mor0XNe0i+lLeibWXg8Z/E\r\n69pkZh5PVJ3OIK6W5i04IfaLQgyQYrvK9hE3n/swAkbSIryTV3diVa4uG6K/\r\nXc4RMUCnY3rlNSMMqp1Jid10sY9szKNQPXOa05Lab/LwkKj1wjgxAJJICBMU\r\nLnv6Hq4/zCQax27jvExvpypE+chcOLbW5gjdlvlbk+3RUdViNRMCTso0dz3M\r\nwa2ifyGqKqK30FkLJFdKbHn7mJMGkdtIgiJ9ElS6nAfyKV8ltrBGHluignc2\r\n+4gt+x6FuUTAh7dFmFef2AQo44BUmDW/iiCndo8yUu4BfWvbL5NvhFkzuv+H\r\n3/UG+RPKNku7fRggw7zMHAp6kMuN5uknHJBsALPM/q691hb+hQZtnEeTPSm1\r\nkl0DFz2QWzStqYTgn0oDMdg/cqwvub+0EY8=\r\n=VPDz\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"12joan","email":"joe_npmjs@osbert.me"},"directories":{},"maintainers":[{"name":"12joan","email":"joe_npmjs@osbert.me"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/preact-hint_0.4.0_1657280164268_0.23295542853322337"},"_hasShrinkwrap":false}},"time":{"created":"2022-07-08T09:13:32.377Z","0.3.0":"2022-07-08T09:13:32.679Z","modified":"2022-07-08T11:36:04.508Z","0.4.0":"2022-07-08T11:36:04.420Z"},"maintainers":[{"name":"12joan","email":"joe_npmjs@osbert.me"}],"description":"Tooltip Component for Preact","homepage":"https://rschristian.github.io/preact-hint","keywords":["preact","hint","tooltip","component"],"repository":{"type":"git","url":"https://github.com/rschristian/preact-hint"},"license":"MIT","readme":"<h1 align=\"center\">Preact Hint</h1>\n\n<div align=\"center\">\n    <a href=\"https://github.com/rschristian/preact-hint/blob/master/LICENSE\">\n        <img\n           alt=\"NPM\"\n           src=\"https://img.shields.io/npm/l/preact-hint?color=blue\"\n         />\n    </a>\n</div>\n\n<br />\n\nPreact-Hint is a tiny component library used for displaying tooltips. Try out [the demo](https://preact-hint.rschristian.dev/)!\n\n## Install\n\n```\n$ yarn add preact-hint\n```\n\n## Usage\n\n```jsx\nimport Hint from 'preact-hint';\nimport 'preact-hint/dist/index.css';\n\nexport default function App() {\n    return (\n        <Hint>\n            <button data-hint=\"Hello World!\">Hover over me!</button>\n        </Hint>\n    );\n}\n```\n\n## API\n\n### attribute\n\ntype: `string`<br/>\ndefault: `data-hint`\n\nAllows you to customize which attribute contains hint data on the element.\n\n```jsx\n<Hint attribute=\"data-foo\">\n    <button data-foo=\"Hello World!\">Hover over me!</button>\n</Hint>\n```\n\n### template\n\ntype: `(content: string) => VNode`<br/>\ndefault: `undefined`\n\nAllows you to customize the content within the tooltip. See the following example:\n\n```jsx\n<Hint\n    template={(content) => {\n        const stringPieces = content.split(',');\n        return (\n            <Fragment>\n                <strong>{stringPieces[0]} Contributions</strong> on {stringPieces[1]}\n            </Fragment>\n        );\n    }}\n>\n    <button data-hint={['0', '2019-09-14']}>Hover over me!</button>\n</Hint>\n```\n\n## License\n\nMIT © Ryan Christian\n","readmeFilename":"README.md"}