{"_id":"@0x_amor/dropdown","name":"@0x_amor/dropdown","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@0x_amor/dropdown","version":"1.0.0","description":"A simple dropdown menu npm package, created as a project in Oding Project","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/ZephyrAmmor/dropDown.git"},"keywords":["dropdown","UI","vanilla","menu","Odin"],"author":{"name":"ZephyrAmmor"},"license":"ISC","bugs":{"url":"https://github.com/ZephyrAmmor/dropDown/issues"},"homepage":"https://github.com/ZephyrAmmor/dropDown#readme","_id":"@0x_amor/dropdown@1.0.0","gitHead":"5c7e332a828e9ac92b34aec035987a28ab18d20f","_nodeVersion":"22.19.0","_npmVersion":"10.9.3","dist":{"integrity":"sha512-Qo15e0ZDz2tSWJ7pY1Y1L3AnckvGYiYoR8p5cUboS3nE/bqBsZB7jP5WNiUmIzsrYtz/vIGaWwnmdL+lnbl2qg==","shasum":"8b6e5f2ca96bfe7b7fd94a8427d35a835d63c77f","tarball":"https://registry.npmjs.org/@0x_amor/dropdown/-/dropdown-1.0.0.tgz","fileCount":3,"unpackedSize":5751,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIG/5/y+p5U9+UYdc2kynCmrCZPdEQXnMfuPhMd5CjsLGAiBZCy3Y8GrjyebAHPJYwP8MtZPyHipXdC4A27RzRUQlEQ=="}]},"_npmUser":{"name":"0x_amor","email":"amorzephyr@gmail.com"},"directories":{},"maintainers":[{"name":"0x_amor","email":"amorzephyr@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/dropdown_1.0.0_1757403157482_0.47053417274837606"},"_hasShrinkwrap":false}},"time":{"created":"2025-09-09T07:32:37.384Z","1.0.0":"2025-09-09T07:32:37.659Z","modified":"2025-09-09T07:32:37.899Z"},"maintainers":[{"name":"0x_amor","email":"amorzephyr@gmail.com"}],"description":"A simple dropdown menu npm package, created as a project in Oding Project","homepage":"https://github.com/ZephyrAmmor/dropDown#readme","keywords":["dropdown","UI","vanilla","menu","Odin"],"repository":{"type":"git","url":"git+https://github.com/ZephyrAmmor/dropDown.git"},"author":{"name":"ZephyrAmmor"},"bugs":{"url":"https://github.com/ZephyrAmmor/dropDown/issues"},"license":"ISC","readme":"# dropDown\nA simple dropdown menu npm package, created as a project in Oding Project\n### Usage \nCreate a dropdown by instantiating Dropdown class\n\n__For Example__ \n```javascript\n    // A Node to be used as drop down\n    const parentNode = document.querySelector('.drop-down')\n    // Action Button\n    const button = document.querySelector('.drop-down-btn') \n    // Function to invoke on Event\n    function onSelectFunc (item) {\n        console.log(item)\n    }\n    // Create dropdown\n    const dropDown = new Dropdown(button, 'click', parentNode, [\n        {label : 'Hello', value : 'hello'},\n        {label : 'Odin', value :'odin'},\n        {label : 'Odinite', value : 'odinite'},\n        {label : 'Log Out', value : 'logout', disabled : true}\n    ], {keyboardNavigation : true}, onSelectFunc)\n\n    // Other functionalites provided by this class\n\n    dropDown.removeItemNodeByValue('odinite')\n    dropDown.addItemObject({label : 'FSO', value : 'fso', }, 'prepend')\n    const close = document.querySelector('.close')\n    close.addEventListener('click', () => {\n        dropDown.close()\n    })\n    const open = document.querySelector('.open')\n    open.addEventListener('click', () => {\n        dropDown.open()\n    })\n    const clean = document.querySelector('.clean')\n    clean.addEventListener('click', () => {\n        dropDown.removeAllItems()\n    })\n```","readmeFilename":"README.md","_rev":"1-5c07d5b8353224a908850bd7e5264628"}