@codbex/harmonia 1.5.2 → 1.6.0

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.
@@ -9613,17 +9613,34 @@ function toolbar_default(Alpine) {
9613
9613
  el.classList.add("size-8", "[[data-size=md]_&]:size-7", "[[data-size=sm]_&]:size-6");
9614
9614
  el.setAttribute("data-slot", "toolbar-image");
9615
9615
  });
9616
+ Alpine.directive("h-toolbar-branding", (el) => {
9617
+ el.classList.add(
9618
+ "flex",
9619
+ "flex-col",
9620
+ "pl-2",
9621
+ "[[data-slot=toolbar-image]~&]:pl-1",
9622
+ "[[data-size=sm]_&,[data-size=md]_&]:flex-row",
9623
+ "[[data-size=sm]_&,[data-size=md]_&]:items-baseline",
9624
+ "[[data-size=sm]_&,[data-size=md]_&]:gap-1",
9625
+ "[[data-size=sm]_&_[data-slot=toolbar-subtitle],[data-size=md]_&_[data-slot=toolbar-subtitle]]:pl-0"
9626
+ );
9627
+ el.setAttribute("data-slot", "toolbar-branding");
9628
+ });
9616
9629
  Alpine.directive("h-toolbar-title", (el) => {
9617
- el.classList.add("text", "[[data-size=sm]_&]:text-sm", "[[data-size=md]_&]:text-sm", "first-of-type:pl-2", "font-medium", "whitespace-nowrap", "text-ellipsis", "overflow-hidden");
9630
+ el.classList.add("pl-2", "[[data-slot=toolbar-branding]_&]:pl-0", "font-medium", "whitespace-nowrap", "text-ellipsis", "overflow-hidden");
9618
9631
  el.setAttribute("data-slot", "toolbar-title");
9619
9632
  });
9633
+ Alpine.directive("h-toolbar-subtitle", (el) => {
9634
+ el.classList.add("text-xs", "font-normal", "whitespace-nowrap", "text-ellipsis", "overflow-hidden");
9635
+ el.setAttribute("data-slot", "toolbar-subtitle");
9636
+ });
9620
9637
  Alpine.directive("h-toolbar-spacer", (el) => {
9621
9638
  el.classList.add("flex-[1_auto]", "h-full");
9622
9639
  el.setAttribute("tabindex", "-1");
9623
9640
  el.setAttribute("data-slot", "toolbar-spacer");
9624
9641
  });
9625
9642
  Alpine.directive("h-toolbar-separator", (el) => {
9626
- el.classList.add("w-px", "h-8", "[[data-size=md]_&]:h-6", "[[data-size=sm]_&]:h-6", "border-l");
9643
+ el.classList.add("w-px", "h-8", "[[data-size=md]_&,[data-size=sm]_&]:h-6", "border-l");
9627
9644
  el.setAttribute("data-slot", "toolbar-separator");
9628
9645
  });
9629
9646
  }
@@ -9933,7 +9950,7 @@ function tree_default(Alpine) {
9933
9950
  }
9934
9951
 
9935
9952
  // package.json
9936
- var version = "1.5.2";
9953
+ var version = "1.6.0";
9937
9954
 
9938
9955
  // src/utils/breakpoint-listener.js
9939
9956
  function getBreakpointListener(handler, breakpoint = 768) {