geostyler
Version:
Framework for styling geodata
31 lines (30 loc) • 750 B
JavaScript
import { jsxs as o, jsx as i } from "react/jsx-runtime";
import m from "react";
import { Checkbox as d } from "antd";
/* empty css */
const u = ({
className: t,
checked: r = !0,
title: s,
onCheckChange: l,
children: a
}) => {
let e = "gs-fieldset";
return e = r ? e + " checked" : e, e = t ? e + " " + r : e, /* @__PURE__ */ o("div", { className: e, children: [
/* @__PURE__ */ i("span", { className: "fieldset-title", children: /* @__PURE__ */ i(
d,
{
checked: r,
onChange: l,
children: s
}
) }),
/* @__PURE__ */ i("div", { className: "fieldset-body", children: m.Children.map(a, (n) => {
if (r)
return n;
}) })
] });
};
export {
u as FieldSet
};