@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.
@@ -7377,7 +7377,7 @@ function sidebar_default(Alpine) {
7377
7377
  el.setAttribute("data-slot", "sidebar-header");
7378
7378
  });
7379
7379
  Alpine.directive("h-sidebar-content", (el) => {
7380
- el.classList.add("vbox", "min-h-0", "flex-1", "gap-2", "overflow-auto", "group-data-[collapsed=true]/sidebar:overflow-hidden");
7380
+ el.classList.add("vbox", "min-h-0", "flex-1", "overflow-auto", "scrollbar-none");
7381
7381
  el.setAttribute("data-slot", "sidebar-content");
7382
7382
  });
7383
7383
  Alpine.directive("h-sidebar-group", (el, { expression, modifiers }, { effect, evaluate: evaluate2, evaluateLater, Alpine: Alpine2 }) => {
@@ -7701,13 +7701,16 @@ function sidebar_default(Alpine) {
7701
7701
  });
7702
7702
  Alpine.directive("h-sidebar-menu-skeleton", (el, { modifiers }) => {
7703
7703
  el.classList.add("flex", "h-8", "items-center", "gap-2", "rounded-md", "px-2");
7704
+ const skeleton = document.createElement("div");
7705
+ skeleton.classList.add("h-4", "flex-1", "bg-sidebar-secondary", "animate-pulse", "rounded-md");
7704
7706
  if (modifiers.includes("icon")) {
7707
+ skeleton.classList.add("group-data-[collapsed=true]/sidebar:!hidden");
7705
7708
  const icon = document.createElement("div");
7706
7709
  icon.classList.add("size-4", "rounded-md", "bg-sidebar-secondary", "animate-pulse", "rounded-md");
7707
7710
  el.appendChild(icon);
7711
+ } else {
7712
+ skeleton.classList.add("group-data-[collapsed=true]/sidebar:!w-4", "group-data-[collapsed=true]/sidebar:!max-w-4");
7708
7713
  }
7709
- const skeleton = document.createElement("div");
7710
- skeleton.classList.add("h-4", "flex-1", "bg-sidebar-secondary", "animate-pulse", "rounded-md");
7711
7714
  skeleton.style.maxWidth = `${Math.floor(Math.random() * 40) + 50}%`;
7712
7715
  el.appendChild(skeleton);
7713
7716
  el.setAttribute("data-slot", "sidebar-menu-skeleton");
@@ -9927,7 +9930,7 @@ function tree_default(Alpine) {
9927
9930
  }
9928
9931
 
9929
9932
  // package.json
9930
- var version = "1.4.0";
9933
+ var version = "1.4.1";
9931
9934
 
9932
9935
  // src/utils/breakpoint-listener.js
9933
9936
  function getBreakpointListener(handler, breakpoint = 768) {