UNPKG

geostyler

Version:
28 lines (27 loc) 538 B
import { jsx as l } from "react/jsx-runtime"; import { NumberExpressionInput as o } from "../../../ExpressionInput/NumberExpressionInput/NumberExpressionInput.js"; const a = ({ onChange: i, value: t, ...e }) => { function d() { i(e.defaultValue ? Number(e.defaultValue) : void 0); } return /* @__PURE__ */ l( o, { className: "editor-field width-field", value: t, onChange: i, onCancel: d, inputProps: { ...e, min: 0 } } ); }; export { a as WidthField };