\n {enumOptions.map((option, index) => {\n const checked = value.indexOf(option.value) !== -1;\n const itemDisabled =\n enumDisabled && enumDisabled.indexOf(option.value) != -1;\n const disabledCls =\n disabled || itemDisabled || readonly ? \"disabled\" : \"\";\n const checkbox = (\n
\n {\n const all = enumOptions.map(({ value }) => value);\n if (event.target.checked) {\n onChange(selectValue(option.value, value, all));\n } else {\n onChange(deselectValue(option.value, value));\n }\n }}\n />\n {option.label}\n \n );\n return inline ? (\n
\n ) : (\n
\n \n
\n );\n })}\n
\n );\n}\n\nCheckboxesWidget.defaultProps = {\n autofocus: false,\n options: {\n inline: false,\n },\n};\n\nif (process.env.NODE_ENV !== \"production\") {\n CheckboxesWidget.propTypes = {\n schema: PropTypes.object.isRequired,\n id: PropTypes.string.isRequired,\n options: PropTypes.shape({\n enumOptions: PropTypes.array,\n inline: PropTypes.bool,\n }).isRequired,\n value: PropTypes.any,\n required: PropTypes.bool,\n readonly: PropTypes.bool,\n disabled: PropTypes.bool,\n multiple: PropTypes.bool,\n autofocus: PropTypes.bool,\n onChange: PropTypes.func,\n };\n}\n\nexport default CheckboxesWidget;\n","import React from \"react\";\nimport PropTypes from \"prop-types\";\n\nfunction ColorWidget(props) {\n const {\n disabled,\n readonly,\n registry: {\n widgets: { BaseInput },\n },\n } = props;\n return