change utils location
All checks were successful
Deploy Docs to Synology / deploy (push) Successful in 4s

This commit is contained in:
2026-04-19 17:38:49 +02:00
parent 949be7939d
commit 600c78510a
50 changed files with 429 additions and 233 deletions

View File

@@ -1,6 +1,6 @@
// components/Swap.js
import { Tag } from "sigpro";
import { ui, val } from "../core/utils.js";
import { ui, val } from "../utils.js";
/**
* Swap component
@@ -15,7 +15,7 @@ export const Swap = (props) => {
return Tag("label", { ...rest, class: ui('swap', className) }, [
Tag("input", {
type: "checkbox",
checked: () => val(value), // ← FUNCIÓN: se reevalúa cuando la señal cambia
checked: () => val(value),
onclick: (e) => {
if (typeof value === "function") {
value(e.target.checked);