import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
import { Option, Select } from '@citric/core';
export const BooleanField = ({ name, onChange, value, disabled, onBlur }) => (_jsxs(Select, { value: value === undefined ? '' : (value ? 'true' : 'false'), onChange: e => onChange(e.target.value === '' ? undefined : e.target.value === 'true'), name: name, disabled: disabled, onBlur: onBlur, children: [_jsx(Option, { value: "true", children: "True" }), _jsx(Option, { value: "false", children: "False" })] }));
//# sourceMappingURL=BooleanField.js.map