@codbex/harmonia 1.4.0 → 1.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/harmonia.js
CHANGED
|
@@ -7330,7 +7330,7 @@
|
|
|
7330
7330
|
el.setAttribute("data-slot", "sidebar-header");
|
|
7331
7331
|
});
|
|
7332
7332
|
Alpine.directive("h-sidebar-content", (el) => {
|
|
7333
|
-
el.classList.add("vbox", "min-h-0", "flex-1", "
|
|
7333
|
+
el.classList.add("vbox", "min-h-0", "flex-1", "overflow-auto", "scrollbar-none");
|
|
7334
7334
|
el.setAttribute("data-slot", "sidebar-content");
|
|
7335
7335
|
});
|
|
7336
7336
|
Alpine.directive("h-sidebar-group", (el, { expression, modifiers }, { effect, evaluate: evaluate2, evaluateLater, Alpine: Alpine2 }) => {
|
|
@@ -7654,13 +7654,16 @@
|
|
|
7654
7654
|
});
|
|
7655
7655
|
Alpine.directive("h-sidebar-menu-skeleton", (el, { modifiers }) => {
|
|
7656
7656
|
el.classList.add("flex", "h-8", "items-center", "gap-2", "rounded-md", "px-2");
|
|
7657
|
+
const skeleton = document.createElement("div");
|
|
7658
|
+
skeleton.classList.add("h-4", "flex-1", "bg-sidebar-secondary", "animate-pulse", "rounded-md");
|
|
7657
7659
|
if (modifiers.includes("icon")) {
|
|
7660
|
+
skeleton.classList.add("group-data-[collapsed=true]/sidebar:!hidden");
|
|
7658
7661
|
const icon = document.createElement("div");
|
|
7659
7662
|
icon.classList.add("size-4", "rounded-md", "bg-sidebar-secondary", "animate-pulse", "rounded-md");
|
|
7660
7663
|
el.appendChild(icon);
|
|
7664
|
+
} else {
|
|
7665
|
+
skeleton.classList.add("group-data-[collapsed=true]/sidebar:!w-4", "group-data-[collapsed=true]/sidebar:!max-w-4");
|
|
7661
7666
|
}
|
|
7662
|
-
const skeleton = document.createElement("div");
|
|
7663
|
-
skeleton.classList.add("h-4", "flex-1", "bg-sidebar-secondary", "animate-pulse", "rounded-md");
|
|
7664
7667
|
skeleton.style.maxWidth = `${Math.floor(Math.random() * 40) + 50}%`;
|
|
7665
7668
|
el.appendChild(skeleton);
|
|
7666
7669
|
el.setAttribute("data-slot", "sidebar-menu-skeleton");
|
|
@@ -10004,7 +10007,7 @@
|
|
|
10004
10007
|
}
|
|
10005
10008
|
|
|
10006
10009
|
// package.json
|
|
10007
|
-
var version = "1.4.
|
|
10010
|
+
var version = "1.4.1";
|
|
10008
10011
|
|
|
10009
10012
|
// src/index.js
|
|
10010
10013
|
window.Harmonia = { getBreakpointListener, addColorSchemeListener, getColorScheme, removeColorSchemeListener, setColorScheme, version };
|