@bsol-oss/react-datatable5 12.0.0-beta.60 → 12.0.0-beta.61
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +4 -1
- package/dist/index.mjs +4 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5953,7 +5953,10 @@ const FormBody = () => {
|
|
|
5953
5953
|
};
|
|
5954
5954
|
// Custom error renderer for validation errors with i18n support
|
|
5955
5955
|
const renderValidationErrors = (validationErrors) => {
|
|
5956
|
-
return (jsxRuntime.jsx(AccordionRoot, {
|
|
5956
|
+
return (jsxRuntime.jsx(AccordionRoot, { backgroundColor: {
|
|
5957
|
+
base: "red.50",
|
|
5958
|
+
_dark: "red.950",
|
|
5959
|
+
}, p: "4", colorPalette: "red", collapsible: true, defaultValue: [], children: jsxRuntime.jsxs(AccordionItem, { value: "validation-errors", children: [jsxRuntime.jsx(AccordionItemTrigger, { children: translate.t("validation_error") }), jsxRuntime.jsx(AccordionItemContent, { display: "flex", flexFlow: "column", gap: "2", children: validationErrors.map((err, index) => (jsxRuntime.jsxs(react.AlertRoot, { status: "error", display: "flex", alignItems: "center", children: [jsxRuntime.jsx(react.AlertIndicator, {}), jsxRuntime.jsxs(react.AlertContent, { children: [jsxRuntime.jsx(react.AlertTitle, { fontWeight: "bold", children: err.instancePath }), jsxRuntime.jsx(react.AlertDescription, { children: err.message }), err.params !== undefined && (jsxRuntime.jsx(react.AlertDescription, { whiteSpace: "pre-wrap", wordBreak: "break-all", children: JSON.stringify(err.data, null, 2) }))] })] }))) })] }) }));
|
|
5957
5960
|
};
|
|
5958
5961
|
const renderColumns = ({ order, keys, ignore, include, }) => {
|
|
5959
5962
|
const included = include.length > 0 ? include : keys;
|
package/dist/index.mjs
CHANGED
|
@@ -5933,7 +5933,10 @@ const FormBody = () => {
|
|
|
5933
5933
|
};
|
|
5934
5934
|
// Custom error renderer for validation errors with i18n support
|
|
5935
5935
|
const renderValidationErrors = (validationErrors) => {
|
|
5936
|
-
return (jsx(AccordionRoot, {
|
|
5936
|
+
return (jsx(AccordionRoot, { backgroundColor: {
|
|
5937
|
+
base: "red.50",
|
|
5938
|
+
_dark: "red.950",
|
|
5939
|
+
}, p: "4", colorPalette: "red", collapsible: true, defaultValue: [], children: jsxs(AccordionItem, { value: "validation-errors", children: [jsx(AccordionItemTrigger, { children: translate.t("validation_error") }), jsx(AccordionItemContent, { display: "flex", flexFlow: "column", gap: "2", children: validationErrors.map((err, index) => (jsxs(AlertRoot, { status: "error", display: "flex", alignItems: "center", children: [jsx(AlertIndicator, {}), jsxs(AlertContent, { children: [jsx(AlertTitle, { fontWeight: "bold", children: err.instancePath }), jsx(AlertDescription, { children: err.message }), err.params !== undefined && (jsx(AlertDescription, { whiteSpace: "pre-wrap", wordBreak: "break-all", children: JSON.stringify(err.data, null, 2) }))] })] }))) })] }) }));
|
|
5937
5940
|
};
|
|
5938
5941
|
const renderColumns = ({ order, keys, ignore, include, }) => {
|
|
5939
5942
|
const included = include.length > 0 ? include : keys;
|