geostyler
Version:
Framework for styling geodata
43 lines (42 loc) • 1.01 kB
JavaScript
import { jsx as l } from "react/jsx-runtime";
import { Form as n, InputNumber as m } from "antd";
import { useGeoStylerLocale as u } from "../../../context/GeoStylerContext/GeoStylerContext.js";
const h = ({
value: r,
validateStatus: o = "success",
onValueChange: t,
size: c
}) => {
const e = u("NumberFilterField"), a = o !== "success" ? e.help : null;
return /* @__PURE__ */ l(
"div",
{
className: "gs-number-filter-field",
draggable: !0,
onDragStart: (s) => s.preventDefault(),
children: /* @__PURE__ */ l(
n.Item,
{
label: e.label,
colon: !1,
validateStatus: o,
help: a,
hasFeedback: !0,
children: /* @__PURE__ */ l(
m,
{
size: c,
defaultValue: r,
value: r,
onChange: t,
placeholder: e.placeholder
}
)
}
)
}
);
};
export {
h as NumberFilterField
};