UNPKG

geostyler

Version:
50 lines (49 loc) 1.05 kB
import { jsx as o } from "react/jsx-runtime"; import { Select as l } from "antd"; import c from "lodash-es/get.js"; import { useGeoStylerLocale as i } from "../../../../context/GeoStylerContext/GeoStylerContext.js"; const p = l.Option, f = ({ onChange: r, value: s = "circle", wellKnownNames: t = [ "circle", "square", "triangle", "star", "cross", "x", "shape://backslash", "shape://carrow", "shape://dot", "shape://horline", "shape://oarrow", "shape://plus", "shape://slash", "shape://times", "shape://vertline" ] }) => { const a = i("WellKnownNameField"); return /* @__PURE__ */ o( l, { className: "editor-field wellknownname-field", value: s, onChange: r, children: t.map((e) => { const n = c(a, "wellKnownNames[" + e + "]") || e; return /* @__PURE__ */ o( p, { value: e, children: n }, e ); }) } ); }; export { f as WellKnownNameField };