@teknim/rjsf-mantine
Version:
Mantine theme, fields and widgets for react-jsonschema-form
35 lines • 704 B
JavaScript
const uiOptionsKeys = [
'emptyValue',
'classNames',
'title',
'help',
'autocomplete',
'disabled',
'enumDisabled',
'hideError',
'readonly',
'order',
'filePreview',
'inline',
'inputType',
'submitButtonOptions',
'widget',
'enumNames',
'addable',
'copyable',
'orderable',
'removable',
'duplicateKeySuffixSeparator',
'enumOptions',
'enableMarkdownInDescription',
];
export function cleanupOptions(options) {
const result = {};
for (const key in options) {
if (!uiOptionsKeys.includes(key)) {
result[key] = options[key];
}
}
return result;
}
//# sourceMappingURL=utils.js.map