geostyler
Version:
Framework for styling geodata
30 lines (29 loc) • 581 B
JavaScript
import { jsx as s } from "react/jsx-runtime";
import { NumberExpressionInput as l } from "../../../ExpressionInput/NumberExpressionInput/NumberExpressionInput.js";
const a = ({
onChange: t,
value: i,
...e
}) => {
function r() {
t(e.defaultValue ? Number(e.defaultValue) : void 0);
}
return /* @__PURE__ */ s(
l,
{
className: "editor-field brightness-field",
value: i,
onChange: t,
onCancel: r,
inputProps: {
...e,
min: 0,
max: 0,
step: 0
}
}
);
};
export {
a as BrightnessField
};