changed to new functions
All checks were successful
Deploy Docs to Synology / deploy (push) Successful in 3s

This commit is contained in:
2026-04-22 12:06:34 +02:00
parent 5a5f593025
commit 59e6d972a8
125 changed files with 1934 additions and 2015 deletions

View File

@@ -1,5 +1,5 @@
// components/Radio.js
import { Tag } from "sigpro";
import { h } from "sigpro";
import { val, ui } from "../utils.js";
/**
@@ -15,7 +15,7 @@ import { val, ui } from "../utils.js";
export const Radio = (props) => {
const { class: className, label, tooltip, value, inputValue, name, ...rest } = props;
const radioEl = Tag("input", {
const radioEl = h("input", {
...rest,
type: "radio",
name: name,
@@ -28,10 +28,10 @@ export const Radio = (props) => {
if (!label && !tooltip) return radioEl;
const layout = Tag("label", { class: "label cursor-pointer justify-start gap-3" }, [
const layout = h("label", { class: "label cursor-pointer justify-start gap-3" }, [
radioEl,
label ? Tag("span", { class: "label-text" }, label) : null,
label ? h("span", { class: "label-text" }, label) : null,
]);
return tooltip ? Tag("div", { class: "tooltip", "data-tip": tooltip }, layout) : layout;
return tooltip ? h("div", { class: "tooltip", "data-tip": tooltip }, layout) : layout;
};