{"_id":"accordion","_rev":"12-e0c4d4edeead2626e728827f5859b009","name":"accordion","description":"Silky-smooth accordion widgets with no external dependencies.","dist-tags":{"latest":"3.0.2"},"versions":{"2.0.1":{"name":"accordion","version":"2.0.1","description":"Silky-smooth accordion widgets with no external dependencies.","keywords":["accordion","widget","component","folding","foldable","fold","ui"],"repository":{"type":"git","url":"git+https://github.com/Alhadis/Accordion.git"},"license":"ISC","dependencies":{},"main":"src/accordion.js","bugs":{"url":"https://github.com/Alhadis/Accordion/issues"},"homepage":"https://github.com/Alhadis/Accordion#readme","_id":"accordion@2.0.1","scripts":{},"_shasum":"30857b35f1af3d23de7703b154c8d32d95635ec6","_from":".","_npmVersion":"3.6.0","_nodeVersion":"5.5.0","_npmUser":{"name":"alhadis","email":"gardnerjohng@gmail.com"},"dist":{"shasum":"30857b35f1af3d23de7703b154c8d32d95635ec6","tarball":"https://registry.npmjs.org/accordion/-/accordion-2.0.1.tgz","integrity":"sha512-nuUoHcZdIvXJB59SDtTXLej4eMgLNgNe9rDiD0/J1WVP9/lZdRS5E+EaXmx6GdM5N3lg141W8OhT/uodc7cBVA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCepiL8o/HuYeUirtyHXr26YBzF3I7MSxyRBpPbCQ79TQIhAM/YeBDcFbuWtt/fVOL9lNIKmvbybgWVhBEVXazatIx9"}]},"maintainers":[{"name":"alhadis","email":"gardnerjohng@gmail.com"}],"_npmOperationalInternal":{"host":"packages-6-west.internal.npmjs.com","tmp":"tmp/accordion-2.0.1.tgz_1454612512577_0.1918117932509631"},"directories":{}},"2.1.0":{"name":"accordion","version":"2.1.0","description":"Silky-smooth accordion widgets with no external dependencies.","keywords":["accordion","widget","component","folding","foldable","fold","ui"],"repository":{"type":"git","url":"git+https://github.com/Alhadis/Accordion.git"},"license":"ISC","dependencies":{},"main":"src/accordion.js","gitHead":"8163f42fb587db095c6f57b93c071122ae56e6ce","bugs":{"url":"https://github.com/Alhadis/Accordion/issues"},"homepage":"https://github.com/Alhadis/Accordion#readme","_id":"accordion@2.1.0","scripts":{},"_shasum":"b855a6fc22a60a623c60235f5ffe03119b237f22","_from":".","_npmVersion":"3.6.0","_nodeVersion":"5.5.0","_npmUser":{"name":"alhadis","email":"gardnerjohng@gmail.com"},"dist":{"shasum":"b855a6fc22a60a623c60235f5ffe03119b237f22","tarball":"https://registry.npmjs.org/accordion/-/accordion-2.1.0.tgz","integrity":"sha512-eQOAX9NG2x8Yy4AAP3S58PYPqhUoTd3vlHpKwf/HFv9M5tI0Hcu+g/RGiedZKF/GFTWZiyQ6FXP/l+A1Gzlg1w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC/tbFkLn6V/lcp4HvhgsSYE0bFaKbidYyfsl3BcO3iNAIhAJcG4utl/JqRfs6f+a/A2eykwQQLJmAJMWofLtJ+5PWq"}]},"maintainers":[{"name":"alhadis","email":"gardnerjohng@gmail.com"}],"_npmOperationalInternal":{"host":"packages-5-east.internal.npmjs.com","tmp":"tmp/accordion-2.1.0.tgz_1454904509089_0.6000218389090151"},"directories":{}},"2.1.1":{"name":"accordion","version":"2.1.1","description":"Silky-smooth accordion widgets with no external dependencies.","keywords":["accordion","widget","component","folding","foldable","fold","ui"],"repository":{"type":"git","url":"git+https://github.com/Alhadis/Accordion.git"},"license":"ISC","dependencies":{},"main":"src/accordion.js","gitHead":"cb8a5d5988a27a5a2c202e0bc6d522c3d6f27d1e","bugs":{"url":"https://github.com/Alhadis/Accordion/issues"},"homepage":"https://github.com/Alhadis/Accordion#readme","_id":"accordion@2.1.1","_npmVersion":"5.3.0","_nodeVersion":"8.1.4","_npmUser":{"name":"alhadis","email":"gardnerjohng@gmail.com"},"dist":{"integrity":"sha512-SjRHoAQueMNDBSZf4BdrODW5NDXepSX7Lf/xjwGz093eNvScuNbh3iOHljg8DNrLEVzEYDjA7vG35K9LF/vaSA==","shasum":"afad0f8cc77cd25fd322911a21a21a07acb9301b","tarball":"https://registry.npmjs.org/accordion/-/accordion-2.1.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIC6U+He4hsEWz6cjsuPgKTy9axPVb6TC8v6PqdwZPgh+AiAR7c5amTJpIAxAXoBPwm2vQwBF7iGPLhgSBwd1wJ+VfQ=="}]},"maintainers":[{"name":"alhadis","email":"gardnerjohng@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/accordion-2.1.1.tgz_1500317449926_0.8183805947192013"},"directories":{}},"3.0.0":{"name":"accordion","version":"3.0.0","description":"Silky-smooth accordion widgets with no external dependencies.","keywords":["accordion","widget","component","folding","foldable","fold","ui"],"repository":{"type":"git","url":"git+https://github.com/Alhadis/Accordion.git"},"license":"ISC","dependencies":{},"main":"src/accordion.js","scripts":{"lint":"eslint --ext .mjs src"},"gitHead":"55bec844f14a4d7547a61b6a2c8d58f2d7fc147d","bugs":{"url":"https://github.com/Alhadis/Accordion/issues"},"homepage":"https://github.com/Alhadis/Accordion#readme","_id":"accordion@3.0.0","_npmVersion":"6.0.1","_nodeVersion":"10.1.0","_npmUser":{"name":"alhadis","email":"gardnerjohng@gmail.com"},"dist":{"integrity":"sha512-4R/HQ1sbWHwpGcquvBUopejmlnsmjnudYap2BN/6+jYFwqhWwTtSVeFpwEapG3IpICcFzVIEvA4MMffkuKmIfg==","shasum":"1d7fc5453c3aa749c523be6f95236a349886194f","tarball":"https://registry.npmjs.org/accordion/-/accordion-3.0.0.tgz","fileCount":17,"unpackedSize":81982,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa/tvPCRA9TVsSAnZWagAAXS8P/joEw32/c9nDli6pt2/4\nwvAyWO/ZasRBAlNt3DR1j5AA2X9nrwEEk3oD/8mMBgnpg6bY31LHoIr2oQ/N\nwP1FmxUWDzlH2dwIhR0TJRolwZMh+CpiDfFFhSJrc3gOIHP4j8J+AsJJvuv7\nXzmAxlTNdMFenEsnNhQTbyrXtc5Msli6MrRUwxaErz7eUgrkshMrOpULiOnt\nwqaYgjkhj0TLTN1uYddYRnldsOvnizIGBfgk6njy6Ek79br5vGuychALRcGk\nn38zC+OtImnt3KNHH55HaOgpqEOXz98ShdGKeSi3dG/4F7N0PC6HdCIdwD0C\n6U1dUwHff9+P8odx66imsyRFp4C3JA1Yiy8SZeJ/RR+HDglL8VXHPtZlnY8e\ncQ47lhso5PkwZGyoq3+jt+5YpcFYvi/gE/V5TgQtrjGgpsMbWpjgfCWmJcqn\nh7xP8CjErwjuuk7OoRbmAgpQcr4jJRH/jWeN64gO2eB3C8Oyi/JzxyI+AKl6\nGZvUNCO6V1VpI6UQEBsdrWWeJljgL61PhqouoHAp6nWSU+QIjWVHpGOOfNwo\nU3RmsfUP7P3py27SeYCzaNRP2u+x8wS3+sYk8uEs7b2lj2dweDPyFwrG7oD+\nsFScoV8te2EzdradSsdE/qwEAPLnRr5CxAsXE391yBSm9t7gSOXdhbkF9RsB\nhD/R\r\n=FzGw\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDd4SOZm9IyPF9uBUaLVOn+2k3jYkEP7feO6PNn0IgNEgIhANm/vGV0/LzaVWBv9ylf/gy32b4mijrZFQzQfeXc0IE0"}]},"maintainers":[{"name":"alhadis","email":"gardnerjohng@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/accordion_3.0.0_1526651853670_0.16997525227064458"},"_hasShrinkwrap":false},"3.0.1":{"name":"accordion","version":"3.0.1","description":"Silky-smooth accordion widgets with no external dependencies.","keywords":["accordion","widget","component","folding","foldable","fold","ui"],"repository":{"type":"git","url":"git+https://github.com/Alhadis/Accordion.git"},"license":"ISC","dependencies":{},"main":"src/accordion.js","scripts":{"lint":"eslint --ext .mjs src"},"gitHead":"50be7b7b7f7b2c08cda9dcee4c8a3749cff798b1","bugs":{"url":"https://github.com/Alhadis/Accordion/issues"},"homepage":"https://github.com/Alhadis/Accordion#readme","_id":"accordion@3.0.1","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"alhadis","email":"gardnerjohng@gmail.com"},"dist":{"integrity":"sha512-YucPI/7ivE40ACWTxsjKvXlaR0iT3pDbFvMZgvoNlslLpwZYO/g+x/EH3yvtuDe/8jRJRmMg6fBH1BS1zARlHA==","shasum":"b75aa295e7ea5a939167ff9032383e5906e698b8","tarball":"https://registry.npmjs.org/accordion/-/accordion-3.0.1.tgz","fileCount":17,"unpackedSize":82281,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbJN78CRA9TVsSAnZWagAAuicP/1J857VApUhwOE+8VFC2\nkOWoFly+TOR/3IFNIMUx0DAceF5rMVrZp4nyhsm1DgoRgoFRwOgfzHXkv4qk\nQvGPOBQFou8R/AxJLEYc8LV3q+lwnDOtOkKVeuLIqNIIYbemjaLNkrRzVlsM\nSW1BkOnfw5vEPVdXXAfTdwlFA4jXZkVc7zQOIU+cfuAFYY9rVINhYzsNSeAa\nxyJEw2Hw4UvIDWuDFCCg2eGHCAxx35LeyQtXWM4gBzcdSgwAaWb8m2bA/jZY\nRSR5ykf66Ec3tH++Lz/51yAlKiXwSJghX2SqBn9o2GorahKJgVOFuLBlh/gk\nfdxrNWymTDxX9qBojMpigDGzVU3tw8ExOe8YHOHE+wSI6o+KlwfgVde4HD0o\n7BDiJz7jlF+oTKQyQWylEKmgTeBwPtIBAPaASCLyTi3GVsCtOyykGsfW12ww\nbNTAZ+B7GuG8BuUf3H2sgLfqN72adH4qmDV0mJxG6pGM3ZbL6LXyE6x+jpTR\nO9APpYF7nMc6hC2Aj0g/Ocu6vMpPLt46AFucNH7Q9aJptRTFDCJ7LhqWwGpS\nfSZTin0ueAh+uYuOw1L6ZtjAH38O6ONCuG+b0yNKq7I/xncj99xa5DR5Lr3h\nTTO8H/n4gfAdLmThNNMd6DH6pPVajD/K+HfNxjVJl2nXjwarWONZAOoTd97m\nXeMI\r\n=PnB2\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDAyJRHfybL72Q1QXoZQVTLYS5h1WteGK0s/l1vIpPumgIgPzVXgMDeOrsoa1oV5HSnKL0ZvducRcwGkyeKD1u/EtQ="}]},"maintainers":[{"name":"alhadis","email":"gardnerjohng@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/accordion_3.0.1_1529143035106_0.6660806236518773"},"_hasShrinkwrap":false},"3.0.2":{"name":"accordion","version":"3.0.2","description":"Silky-smooth accordion widgets with no external dependencies.","keywords":["accordion","widget","component","folding","foldable","fold","ui"],"repository":{"type":"git","url":"git+https://github.com/Alhadis/Accordion.git"},"license":"ISC","dependencies":{},"main":"src/accordion.js","scripts":{"lint":"eslint --ext .mjs src"},"gitHead":"057b2fdf9f875519120991df59e68e4ec0c06a6d","bugs":{"url":"https://github.com/Alhadis/Accordion/issues"},"homepage":"https://github.com/Alhadis/Accordion#readme","_id":"accordion@3.0.2","_npmVersion":"6.4.1","_nodeVersion":"10.10.0","_npmUser":{"name":"alhadis","email":"gardnerjohng@gmail.com"},"dist":{"integrity":"sha512-jbQfFaw+57OBwPt7qSNHuW+RA8smmRwkWRS1Ozh6K/QxUspBgBV/LpdSzlY7vee8TomS6j3D33B9rIeH1qMwsA==","shasum":"1badb97f4eab94208165f794aaaa97198781fdfe","tarball":"https://registry.npmjs.org/accordion/-/accordion-3.0.2.tgz","fileCount":17,"unpackedSize":82816,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbo5ZnCRA9TVsSAnZWagAAztMP/A9DpO7O6pjX0MLGUfmQ\n+lCHmPm/2qsbWMvhi22Z5qs3Kbh83yT8WOPZ6uji5MDvqqGQ1ERVBxH7l4wo\nepNZAPSHwq4ODZ56BPJFsCr10u3rA7fUt9FhOD+YE26LDdB0GO/O2F4K0qim\nsZTviqHyrTzvCUZU3XUkQ4pqylX9oNeUowM3X65UP7xQkMn2vyO67OvI9kX9\nv7hfhoxjj9T7IxTLtNqV1c/UjhYhsSBphMk74uaVV1tQcUQ23eU7Obe2ILMV\n9YEaC5xrANOMkROqH6nBHfU56eaK4e3b0Jnn7ACeqix0fq/vB0L7LMU5NPRO\nBIiYTaHKwvZy/4vjNsUbIdla821c01YsPwWS1I5ZMqE0nqhxXfXKFKATvdMq\n/pJgDdkt5aS8Ba8pxC+Dm1vfHb2goE6/ctXq49Q/WUyAj21cYKhS5XHbYxFb\nWzJktpE8764KV/QeqUjx49wpAy26cbCWa4PtFsonDWCf2mI/1FOtug/69TUz\nAL+7pi+bt8XJRGNA91qb3Lp/xrSRvNMvMZA1ozqoKgYcl4Z1Jl0ZhzWyyos3\nd51RFTGB3ibu3IoJ6XMsoCK+Gkzs8N4dgP+we07OV9Kmh4WxyvdOLvjvYLZS\n8KQ5TU9KDovATnPwk0wYMKoIOQ/A+dCrasZkdrfcnjeaBTMkZRRRp/hLOnSz\nqz9P\r\n=8/Ds\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBTCI/LZpXxi6yD5yxIGFuhw834Lz3xcoPHiGWQi82rYAiB4kVIrQ0HN+KD6gx88gJ/Xhj5RZMsxqPNPvX0k2an0Dw=="}]},"maintainers":[{"name":"alhadis","email":"gardnerjohng@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/accordion_3.0.2_1537447526501_0.42483883649767784"},"_hasShrinkwrap":false}},"readme":"<!---*-tab-width:4;indent-tabs-mode:t;truncate-lines:t;-*- vim:set ts=4 noet nowrap:--->\n\nAccordion\n================================================================\n\nSilky-smooth accordion widgets with no external dependencies.\n\n~~~shell\nnpm install accordion --save\nbower install silk-accordion --save\n~~~\n\nAn simple interactive demo can be [found here](https://cdn.rawgit.com/Alhadis/Accordion/v3.0.1/demos/basic-large.htm).\nMore complicated and extreme demos can be found in the [`demos`](./demos/README.md) directory.\n\n\nUsage\n----------------------------------------------------------------\n\nInclude the following two files in your project:\n\n\tsrc/accordion.css\n\tsrc/accordion.js\n\n\nLayout your markup like this:\n\n~~~html\n<div class=\"accordion\">\n\n\t<div>\n\t\t<h1> Heading </h1>\n\t\t<div> Content </div>\n\t</div>\n\t\n\t<div>\n\t\t<h1> Heading </h1>\n\t\t<div> Content </div>\n\t</div>\n\t\n</div>\n~~~\n\n\nThen create an `Accordion` instance with a reference to a DOM element:\n\n~~~js\nvar el = document.querySelector(\".accordion\");\nnew Accordion(el);\n~~~\n\n\n[Options](docs/options.adoc) can be passed in a second argument:\n\n~~~js\nnew Accordion(el, {\n\tonToggle: function(fold, isOpen){\n\t\tconsole.log(fold);   // -> Reference to a `Fold` instance\n\t\tconsole.log(isOpen); // -> true / false\n\t}\n});\n~~~\n\n### Styling\nThe base stylesheet is located at `src/accordion.css`.\nEmbed it into your application's existing styling, tweaking it if desired.\n\n**Note:** This stylesheet only includes properties necessary for the Accordion to function.\nMaking it look appealing with colours and fonts is left as an exercise to the developer.\nCheck the source of the [bundled demos](demos/anim-switch.htm) for some ideas.\n\n\n\n### Using ES6 modules\nIf your project uses native JavaScript modules, consider loading `src/accordion.mjs` instead:\n\n~~~html\n<!-- ES6+ -->\n<script type=\"module\">\n\timport Accordion from \"./src/accordion.mjs\";\n\tfor(const el of document.querySelectorAll(\".accordion\"))\n\t\tnew Accordion(el);\n</script>\n~~~\n\nThe old `accordion.js` file contains only ES5, and can be used as a fallback for older platforms which lack ES module support:\n\n~~~html\n<!-- Fallback to ES5 for legacy browsers -->\n<script nomodule src=\"src/accordion.js\"></script>\n<script nomodule>\n\t\"use strict\";\n\tvar accordions = document.querySelectorAll(\".accordion\");\n\tfor(var i = 0, l = accordions.length; i < l; ++i)\n\t\tnew Accordion(accordions[i]);\n</script>\n~~~\n\n\n### IE8 support\nFor IE8-9 compatibility, install [`fix-ie`](https://www.npmjs.com/package/fix-ie):\n\n~~~shell\nnpm install fix-ie --save\nbower install fix-ie --save\n~~~\n\n\nThen link to it using a conditional comment, *before any other script on the page!*\n\n~~~html\n<!DOCTYPE html>\n<html lang=\"en\">\n\t<head>\n\t<!--[if lte IE 9]>\n\t\t<script src=\"node_modules/fix-ie/dist/ie.lteIE9.js\"></script>\n\t<![endif]-->\n\t<meta charset=\"utf-8\" />\n~~~\n\nThis [fixes](https://www.npmjs.com/package/fix-ie#ie8pp) IE's buggy handling of `Object.defineProperty`, which the Accordion makes extensive use of. `fix-ie` also provides oodles of helpful polyfills to fix IE8's shoddy DOM support.\n\n\n\nOptions\n----------------------------------------------------------------\n\n| Name                                             | Type     | Default          | Description                                                     |\n|--------------------------------------------------|----------|------------------|-----------------------------------------------------------------|\n| [closeClass](docs/options.adoc#closeclass)       | String   | `\"closed\"`       | CSS class used to mark a fold as closed                         |\n| [disabled](docs/options.adoc#disabled)           | Boolean  | `false`          | Whether to disable the accordion on creation                    |\n| [disabledClass](docs/options.adoc#disabledclass) | String   | `undefined`      | CSS class marking an accordion as disabled                      |\n| [edgeClass](docs/options.adoc#edgeclass)         | String   | `\"edge-visible\"` | CSS class toggled based on whether the bottom-edge is visible   |\n| [enabledClass](docs/options.adoc#enabledclass)   | String   | `\"accordion\"`    | CSS class marking an accordion as enabled                       |\n| [heightOffset](docs/options.adoc#heightoffset)   | Number   | `0`              | Distance to offset each fold by                                 |\n| [modal](docs/options.adoc#modal)                 | Boolean  | `false`          | Whether to close the current fold when opening another          |\n| [noAria](docs/options.adoc#noaria)               | Boolean  | `false`          | Disable the addition and management of ARIA attributes          |\n| [noKeys](docs/options.adoc#nokeys)               | Boolean  | `false`          | Disable keyboard navigation                                     |\n| [noTransforms](docs/options.adoc#notransforms)   | Boolean  | `false`          | Disable CSS transforms; positioning will be used instead        |\n| [onToggle](docs/options.adoc#ontoggle)           | Function | `undefined`      | Callback executed when opening or closing a fold                |\n| [openClass](docs/options.adoc#openclass)         | String   | `\"open\"`         | CSS class controlling each fold's \"open\" state                  |\n| [snapClass](docs/options.adoc#snapclass)         | String   | `\"snap\"`         | CSS class for disabling transitions between window resizes      |\n| [useBorders](docs/options.adoc#useborders)       | Boolean  | `\"auto\"`         | Consider borders when calculating fold heights                  |\n","maintainers":[{"name":"alhadis","email":"gardnerjohng@gmail.com"}],"time":{"modified":"2022-06-13T02:21:32.136Z","created":"2013-03-08T12:37:23.938Z","2.0.1":"2016-02-04T19:01:53.676Z","2.1.0":"2016-02-08T04:08:31.616Z","2.1.1":"2017-07-17T18:50:50.104Z","3.0.0":"2018-05-18T13:57:33.910Z","3.0.1":"2018-06-16T09:57:15.223Z","3.0.2":"2018-09-20T12:45:26.622Z"},"readmeFilename":"README.md","homepage":"https://github.com/Alhadis/Accordion#readme","keywords":["accordion","widget","component","folding","foldable","fold","ui"],"repository":{"type":"git","url":"git+https://github.com/Alhadis/Accordion.git"},"bugs":{"url":"https://github.com/Alhadis/Accordion/issues"},"license":"ISC"}