UNPKG

geostyler

Version:
30 lines (29 loc) 584 B
import { jsx as o } from "react/jsx-runtime"; import { NumberExpressionInput as r } from "../../../ExpressionInput/NumberExpressionInput/NumberExpressionInput.js"; const u = ({ onChange: e, value: a, ...t }) => { function i() { e(t.defaultValue ? Number(t.defaultValue) : void 0); } return /* @__PURE__ */ o( r, { className: "editor-field saturation-field", value: a, onChange: e, onCancel: i, inputProps: { ...t, min: -1, max: 1, step: 0.1 } } ); }; export { u as SaturationField };