{"name":"vanilla-picker","version":"2.11.0","description":"A simple, easy to use vanilla JS color picker with alpha selection.","keywords":["ux","ui","color","colour","picker","vanilla","vanilla-js","color picker","color-picker","colorpicker","rgb","rgba","hsl","hsla","hex","alpha"],"author":{"name":"Andreas Borgen","url":"https://github.com/Sphinxxxx"},"homepage":"https://vanilla-picker.js.org","license":"ISC","repository":{"type":"git","url":"git+https://github.com/Sphinxxxx/vanilla-picker.git"},"bugs":{"url":"https://github.com/Sphinxxxx/vanilla-picker/issues"},"main":"dist/vanilla-picker.js","unpkg":"dist/vanilla-picker.min.js","module":"dist/vanilla-picker.mjs","scripts":{"prepublish":"bash ./scripts/prepub.sh","postpublish":"bash ./scripts/postpub.sh","test":"echo \"Error: no test specified\" && exit 1"},"devDependencies":{"autoprefixer":"^9.6.0","babel-core":"^6.26.3","babel-plugin-external-helpers":"^6.22.0","babel-preset-env":"^1.7.0","babel-register":"^6.26.0","gulp":"^4.0.2","gulp-file":"^0.4.0","gulp-header":"^2.0.7","gulp-jsdoc3":"^2.0.0","gulp-rename":"^1.4.0","gulp-replace":"^1.0.0","gulp-strip-comments":"^2.5.2","gulp-uglify":"^3.0.2","node-sass":"^4.12.0","postcss-cli":"^6.1.2","pug":"^2.0.4","rollup":"^0.67.4","rollup-plugin-babel":"^3.0.7","rollup-plugin-cleanup":"^3.1.1","rollup-plugin-node-resolve":"^3.4.0","rollup-plugin-replace":"^2.2.0"},"dependencies":{"@sphinxxxx/color-conversion":"^2.2.2"},"browserslist":">.1%, last 2 versions, Firefox ESR, not dead","typings":"src/index.d.ts","gitHead":"9381166ec5c3a172bd3c520aec981c843bc7bc1c","_id":"vanilla-picker@2.11.0","_nodeVersion":"12.16.2","_npmVersion":"6.14.4","dist":{"integrity":"sha512-MsTAyROQRN3yoUdToiQtfnW752wC9DpnXbOhAMGJgBi+TMDZ0IUfbmIVB5u3P1ltBDlqy8TjY59a4lOioSlgZw==","shasum":"a30d7174402d846b97c74f81e00be7837a140d64","tarball":"http://registry-npm.ywwl.com/vanilla-picker/download/vanilla-picker-2.11.0.tgz","fileCount":17,"unpackedSize":142191,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfrb6ZCRA9TVsSAnZWagAAGE0QAJIpnBy4yCofe2+IwNJR\nkj4xmdAM7fgw/13UrlPD4MBxJfQ8n0dHCqREPXo8e725aZ9CsrMbz1uUxWYw\ngk5dV1M/PaXRgvj6eeX3WVXqvwCOjheHJXy8t6s/1T6l9ywopy9i2WySW+Rn\n1h7cCWZQwopLPPyEwcxFYN71yGkJzfTUeT4XL8v2dH6wVmZB4kpmbbwkQ7bP\n5HgIxKW7f2ofm0vjnSuBCg60kjhIv2tiI+eKk8GE3Sg6BY/Ck4xgxgUYMcXs\nOXVpq1Eou1STAvlZWy4AHLcfC43UcbvqsTClrox15E+vNNuCZ6xqI8kNoF3o\nloiXGL+DKgHHkjTZaL8EnU6ahr8f4xHpOvzoXb5/1Q+uYSz64tu2EegwK/Tg\nonHV1s+8UXzebDuNsjOSiRqO0B6CWT8792E9KV/E/pTTaLML8VhmcBbvhiCq\nCZ+V8urvX0toYv+QIZSGeGzJazXgvqJukYEntu+4bXpI1OaXFfjkNn2A7uz9\nk4YesQNAMRg/mPFfrWWTpX2mDIveNJjx1ccDzVBS/HRFF8d02ip2beQctvrd\nwl6BEQsyZqfCTz5x+dCUW3dzrN/hxa7ov+xAimCclMLtWUO8eyQ3gcmErCKO\nfWS2B3C9YF/Q4Ue47CHnkFbXz0oy/0y3VA+nnT0NLs/l5CkQBWK9aF1fgBsK\nfePx\r\n=mLfY\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCRjV8jaI7PzyGMnh52RGF9xWA+v7h5O6mCGlFU0b90NQIhAOJGmD6baI3R4jnDJcOa+FpK3L6qPtBa9LJH+8lfT/sG"}],"size":37472,"noattachment":false,"key":"/vanilla-picker/-/vanilla-picker-2.11.0.tgz"},"_npmUser":{"name":"sphinxxxx","email":"coding@enthuses.me"},"directories":{},"maintainers":[{"name":"sphinxxxx","email":"coding@enthuses.me"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vanilla-picker_2.11.0_1605222040606_0.7219049868587497"},"_hasShrinkwrap":false,"readme":"# vanilla-picker\n\n[![License](https://img.shields.io/npm/l/vanilla-picker.svg)](https://github.com/Sphinxxxx/vanilla-picker/blob/master/LICENSE.md)\n[![Version](https://img.shields.io/npm/v/vanilla-picker.svg)](https://npmjs.com/vanilla-picker)\n[![Size](https://badgen.net/badgesize/gzip/sphinxxxx/vanilla-picker/master/dist/vanilla-picker.min.js?label=min%2Bgzip)](https://unpkg.com/vanilla-picker)\n[![Downloads](https://img.shields.io/npm/dm/vanilla-picker.svg)](https://npmjs.com/vanilla-picker)\n\nA simple, easy to use vanilla JS (no dependencies) color picker with alpha selection.\n\n#### Demo\n\nhttps://codepen.io/Sphinxxxx/pen/zRmKBX\n\n\n## Getting Started\n\n#### Installing\n\n* For the pros:\n\n  + ```npm install vanilla-picker --save```\n  + ```import Picker from 'vanilla-picker';```\n\n* For the rest of us:\n\n```\n<script src=\"https://unpkg.com/vanilla-picker@2\"></script>\n```\n\n> **_Note:_**\n> \n> The script adds a `<style>` element to the page, with all the needed CSS. If your site's [Content Security Policy](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP) doesn't allow that, use the CSP build with a separate CSS file instead:\n> ```\n> import Picker from 'vanilla-picker/csp';\n> import 'vanilla-picker/dist/vanilla-picker.csp.css';\n> ```\n> ..or\n> ```\n> <script src=\"vanilla-picker.csp.min.js\"></script>\n> <link  href=\"vanilla-picker.csp.css\" rel=\"stylesheet\">\n> ```\n\n#### Usage\n\n```html\n<div id=\"parent\">Click me</div>\n\n<script>\n\n    /*\n        Create a new Picker instance and set the parent element.\n        By default, the color picker is a popup which appears when you click the parent.\n    */\n    var parent = document.querySelector('#parent');\n    var picker = new Picker(parent);\n\n    /*\n        You can do what you want with the chosen color using two callbacks: onChange and onDone.\n    */\n    picker.onChange = function(color) {\n        parent.style.background = color.rgbaString;\n    };\n\n    /* onDone is similar to onChange, but only called when you click 'Ok' */\n\n</script>\n```\n\n\n## API and advanced options\n\nhttps://vanilla-picker.js.org/gen/Picker.html\n\n\n## Accessibility\n\nThe color picker is built to support basic keyboard navigation and use with screen readers.\nI would be very interested in feedback on improvements that could be done here!\n\n\n## Credits\n\n* Based on https://github.com/dissimulate/Picker by **Adam Brooks**\n* Built with https://github.com/Joudee/color-conversion by **Joudee**\n* Built with https://gist.github.com/mjackson/5311256 by **Michael Jackson**\n\n\n## License\n\nThe ISC license - see the [LICENSE.md](LICENSE.md) file for details.\n","publish_time":1605222040767,"_cnpm_publish_time":1605222040767,"dist-tags":{"latest":"2.12.3"}}