UNPKG

geostyler

Version:
30 lines (29 loc) 591 B
import { jsx as r } from "react/jsx-runtime"; import { NumberExpressionInput as s } from "../../../ExpressionInput/NumberExpressionInput/NumberExpressionInput.js"; const n = ({ value: i, onChange: f, className: t, ...e }) => { function o() { f(e.defaultValue ? Number(e.defaultValue) : void 0); } let l = "editor-field offset-field"; return t && (l += ` ${t}`), /* @__PURE__ */ r( s, { className: l, value: i, onChange: f, onCancel: o, inputProps: { ...e, step: 1 } } ); }; export { n as OffsetField };