@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.
- package/dist/harmonia.css +1 -1
- package/dist/harmonia.esm.js +20 -3
- package/dist/harmonia.esm.min.js +1 -1
- package/dist/harmonia.esm.min.js.map +2 -2
- package/dist/harmonia.js +20 -3
- package/dist/harmonia.min.js +2 -2
- package/dist/harmonia.min.js.map +2 -2
- package/package.json +1 -1
package/dist/harmonia.js
CHANGED
|
@@ -9566,17 +9566,34 @@
|
|
|
9566
9566
|
el.classList.add("size-8", "[[data-size=md]_&]:size-7", "[[data-size=sm]_&]:size-6");
|
|
9567
9567
|
el.setAttribute("data-slot", "toolbar-image");
|
|
9568
9568
|
});
|
|
9569
|
+
Alpine.directive("h-toolbar-branding", (el) => {
|
|
9570
|
+
el.classList.add(
|
|
9571
|
+
"flex",
|
|
9572
|
+
"flex-col",
|
|
9573
|
+
"pl-2",
|
|
9574
|
+
"[[data-slot=toolbar-image]~&]:pl-1",
|
|
9575
|
+
"[[data-size=sm]_&,[data-size=md]_&]:flex-row",
|
|
9576
|
+
"[[data-size=sm]_&,[data-size=md]_&]:items-baseline",
|
|
9577
|
+
"[[data-size=sm]_&,[data-size=md]_&]:gap-1",
|
|
9578
|
+
"[[data-size=sm]_&_[data-slot=toolbar-subtitle],[data-size=md]_&_[data-slot=toolbar-subtitle]]:pl-0"
|
|
9579
|
+
);
|
|
9580
|
+
el.setAttribute("data-slot", "toolbar-branding");
|
|
9581
|
+
});
|
|
9569
9582
|
Alpine.directive("h-toolbar-title", (el) => {
|
|
9570
|
-
el.classList.add("
|
|
9583
|
+
el.classList.add("pl-2", "[[data-slot=toolbar-branding]_&]:pl-0", "font-medium", "whitespace-nowrap", "text-ellipsis", "overflow-hidden");
|
|
9571
9584
|
el.setAttribute("data-slot", "toolbar-title");
|
|
9572
9585
|
});
|
|
9586
|
+
Alpine.directive("h-toolbar-subtitle", (el) => {
|
|
9587
|
+
el.classList.add("text-xs", "font-normal", "whitespace-nowrap", "text-ellipsis", "overflow-hidden");
|
|
9588
|
+
el.setAttribute("data-slot", "toolbar-subtitle");
|
|
9589
|
+
});
|
|
9573
9590
|
Alpine.directive("h-toolbar-spacer", (el) => {
|
|
9574
9591
|
el.classList.add("flex-[1_auto]", "h-full");
|
|
9575
9592
|
el.setAttribute("tabindex", "-1");
|
|
9576
9593
|
el.setAttribute("data-slot", "toolbar-spacer");
|
|
9577
9594
|
});
|
|
9578
9595
|
Alpine.directive("h-toolbar-separator", (el) => {
|
|
9579
|
-
el.classList.add("w-px", "h-8", "[[data-size=md]_
|
|
9596
|
+
el.classList.add("w-px", "h-8", "[[data-size=md]_&,[data-size=sm]_&]:h-6", "border-l");
|
|
9580
9597
|
el.setAttribute("data-slot", "toolbar-separator");
|
|
9581
9598
|
});
|
|
9582
9599
|
}
|
|
@@ -10060,7 +10077,7 @@
|
|
|
10060
10077
|
}
|
|
10061
10078
|
|
|
10062
10079
|
// package.json
|
|
10063
|
-
var version = "1.
|
|
10080
|
+
var version = "1.6.0";
|
|
10064
10081
|
|
|
10065
10082
|
// src/index.js
|
|
10066
10083
|
window.Harmonia = { getBreakpointListener, addColorSchemeListener, getColorScheme, removeColorSchemeListener, setColorScheme, getSystemColorScheme, version };
|