geostyler
Version:
Framework for styling geodata
51 lines (50 loc) • 1.26 kB
JavaScript
import { jsxs as d, jsx as l } from "react/jsx-runtime";
import "./StyleFieldContainer.css.js";
import { Form as r } from "antd";
import { FieldContainer as c } from "../FieldContainer/FieldContainer.js";
import { useGeoStylerLocale as s } from "../../context/GeoStylerContext/GeoStylerContext.js";
import { NameField as t } from "../NameField/NameField.js";
import { getFormItemConfig as p } from "../../Util/FormItemUtil.js";
const y = ({
name: i,
title: a,
onNameChange: m,
onTitleChange: n
}) => {
const e = s("StyleFieldContainer"), o = p();
return /* @__PURE__ */ d(c, { className: "gs-style-field-container", children: [
/* @__PURE__ */ l(
r.Item,
{
...o,
label: e.nameFieldLabel,
children: /* @__PURE__ */ l(
t,
{
value: i,
onChange: m,
placeholder: e.nameFieldPlaceholder
}
)
}
),
/* @__PURE__ */ l(
r.Item,
{
...o,
label: e.titleFieldLabel,
children: /* @__PURE__ */ l(
t,
{
value: a,
onChange: n,
placeholder: e.titleFieldPlaceholder
}
)
}
)
] });
};
export {
y as StyleFieldContainer
};