import { jsx as _jsx } from "react/jsx-runtime";
import { NumberField } from '../../../../../scalars/components/number-field/number-field.js';
export const numberCellEditor = (value, onChange, context) => {
    const numericValue = typeof value === 'number' ? value : Number(value) || 0;
    return (_jsx(NumberField, { name: context.column.field, className: "max-w-full", autoFocus: true, value: numericValue, onChange: (event) => {
            onChange(Number(event.target.value));
        } }));
};
//# sourceMappingURL=number-editor.js.map