UNPKG

@aokiapp/rjsf-mantine-theme

Version:

Mantine theme, fields and widgets for react-jsonschema-form

16 lines (13 loc) 685 B
import { jsx } from 'react/jsx-runtime'; import { Alert, List } from '@mantine/core'; import { TranslatableString } from '@rjsf/utils'; import { IconZoomExclamation } from '@tabler/icons-react'; function ErrorList({ errors, registry }) { const { translateString } = registry; return /* @__PURE__ */ jsx(Alert, { title: translateString(TranslatableString.ErrorsLabel), icon: /* @__PURE__ */ jsx(IconZoomExclamation, {}), children: /* @__PURE__ */ jsx(List, { size: "sm", children: errors.map((error, index) => /* @__PURE__ */ jsx(List.Item, { children: error.stack }, `error-${index}`)) }) }); } export { ErrorList as default }; //# sourceMappingURL=ErrorListTemplate.mjs.map