@fluix-ui/vanilla 0.0.7 → 0.0.8
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/README.md +1 -0
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.global.js +8 -3
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/dist/index.global.js
CHANGED
|
@@ -537,7 +537,12 @@ var Fluix = (function (exports) {
|
|
|
537
537
|
});
|
|
538
538
|
}
|
|
539
539
|
function configure(config) {
|
|
540
|
-
store.update((prev) =>
|
|
540
|
+
store.update((prev) => {
|
|
541
|
+
const merged = { ...prev.config, ...config };
|
|
542
|
+
const keys = Object.keys(merged);
|
|
543
|
+
if (keys.every((k) => prev.config[k] === merged[k])) return prev;
|
|
544
|
+
return { ...prev, config: merged };
|
|
545
|
+
});
|
|
541
546
|
}
|
|
542
547
|
function destroy() {
|
|
543
548
|
}
|
|
@@ -2519,7 +2524,7 @@ var Fluix = (function (exports) {
|
|
|
2519
2524
|
applyAttrs3(indicatorEl, attrs.indicator);
|
|
2520
2525
|
indicatorEl.setAttribute("d", "");
|
|
2521
2526
|
indicatorEl.setAttribute("opacity", "0");
|
|
2522
|
-
indicatorEl.
|
|
2527
|
+
indicatorEl.style.fill = fill ?? "var(--fluix-menu-indicator)";
|
|
2523
2528
|
svg.appendChild(indicatorEl);
|
|
2524
2529
|
} else {
|
|
2525
2530
|
const defs = document.createElementNS(SVG_NS3, "defs");
|
|
@@ -2559,7 +2564,7 @@ var Fluix = (function (exports) {
|
|
|
2559
2564
|
indicatorEl.setAttribute("rx", "0");
|
|
2560
2565
|
indicatorEl.setAttribute("ry", "0");
|
|
2561
2566
|
indicatorEl.setAttribute("opacity", "0");
|
|
2562
|
-
indicatorEl.
|
|
2567
|
+
indicatorEl.style.fill = fill ?? "var(--fluix-menu-indicator)";
|
|
2563
2568
|
gGroup.appendChild(indicatorEl);
|
|
2564
2569
|
svg.appendChild(gGroup);
|
|
2565
2570
|
}
|