UNPKG

geostyler

Version:
24 lines (23 loc) 672 B
import { jsx as e } from "react/jsx-runtime"; import { Form as m, Checkbox as a } from "antd"; import { useGeoStylerLocale as f } from "../../../context/GeoStylerContext/GeoStylerContext.js"; const p = ({ value: t = !1, onValueChange: l, size: r }) => { const i = f("BoolFilterField"), c = (s) => { l && l(s.target.checked); }; let o = "gs-bool-filter-field"; return r === "small" && (o += " ant-input-sm"), /* @__PURE__ */ e("div", { className: o, children: /* @__PURE__ */ e(m.Item, { label: i.label, colon: !1, children: /* @__PURE__ */ e( a, { checked: t === !0, onChange: c } ) }) }); }; export { p as BoolFilterField };