@contactstudio/mindbeui
Advanced tools
Comparing version 0.0.90 to 0.0.92
{ | ||
"name": "@contactstudio/mindbeui", | ||
"version": "0.0.90", | ||
"displayName": "Mindbe UI", | ||
"version": "0.0.92", | ||
"type": "module", | ||
"main": "dist/mindbeui.js", | ||
"devDependencies": { | ||
"sass": "^1.58.0", | ||
"vite": "^4.1.0" | ||
}, | ||
"scripts": { | ||
"dev": "vite", | ||
"build": "vite build", | ||
"preview": "vite preview" | ||
"preview": "vite preview", | ||
"release": "changelogen --release && npm publish && git push --follow-tags" | ||
}, | ||
"devDependencies": { | ||
"sass": "^1.58.0", | ||
"vite": "^4.1.0", | ||
"changelogen": "^0.5.3" | ||
} | ||
} |
@@ -1,3 +0,5 @@ | ||
console.log("Mindbe UI"); | ||
import pkg from "../package.json"; | ||
console.log(`🎨 ${pkg.displayName} - ${pkg.version}`); | ||
function Tooltip() { | ||
@@ -171,3 +173,11 @@ const items = document.querySelectorAll("[tooltip]"); | ||
if (window && document) { | ||
document.addEventListener("DOMContentLoaded", () => { | ||
let debounce = false; | ||
const enableDebounce = () => (debounce = true); | ||
const disableDebounce = () => (debounce = false); | ||
document.body.addEventListener("mousemove", () => { | ||
if (debounce) return; | ||
enableDebounce(); | ||
setTimeout(disableDebounce, 2000); | ||
Tooltip(); | ||
@@ -177,8 +187,3 @@ Accordion(); | ||
}); | ||
document.addEventListener("click", () => { | ||
Tooltip(); | ||
Accordion(); | ||
Dropdown(); | ||
}); | ||
} | ||
})(); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
49640
27
259
3