@getsoren/design-system 4.67.3 → 4.68.0
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/main.js
CHANGED
|
@@ -23362,8 +23362,8 @@ var J3 = (e) => /* @__PURE__ */ O(ct, {
|
|
|
23362
23362
|
strokeLinecap: "round",
|
|
23363
23363
|
strokeLinejoin: "round"
|
|
23364
23364
|
})
|
|
23365
|
-
}), y5 = ({ fullPage: e,
|
|
23366
|
-
const { t:
|
|
23365
|
+
}), y5 = ({ fullPage: e, logo: t, onReload: r, title: n, description: a, actionLabel: i }) => {
|
|
23366
|
+
const { t: l } = co();
|
|
23367
23367
|
return /* @__PURE__ */ O(le, {
|
|
23368
23368
|
sx: {
|
|
23369
23369
|
alignItems: "center",
|
|
@@ -23371,25 +23371,25 @@ var J3 = (e) => /* @__PURE__ */ O(ct, {
|
|
|
23371
23371
|
justifyContent: "center"
|
|
23372
23372
|
},
|
|
23373
23373
|
children: [
|
|
23374
|
-
e && /* @__PURE__ */ O(bt, { children: [/* @__PURE__ */ d(wf, { component: "svg" }), /* @__PURE__ */ d(G, { marginY: 4 })] }),
|
|
23374
|
+
e && /* @__PURE__ */ O(bt, { children: [t ?? /* @__PURE__ */ d(wf, { component: "svg" }), /* @__PURE__ */ d(G, { marginY: 4 })] }),
|
|
23375
23375
|
/* @__PURE__ */ O(xe, {
|
|
23376
23376
|
variant: "h2",
|
|
23377
23377
|
textAlign: "center",
|
|
23378
23378
|
children: [
|
|
23379
|
-
|
|
23379
|
+
n ?? l("oops"),
|
|
23380
23380
|
/* @__PURE__ */ d("br", {}),
|
|
23381
|
-
|
|
23381
|
+
a ?? l("anErrorOccurred")
|
|
23382
23382
|
]
|
|
23383
23383
|
}),
|
|
23384
23384
|
/* @__PURE__ */ d(Io, { sx: {
|
|
23385
23385
|
marginY: 4,
|
|
23386
23386
|
width: 200
|
|
23387
23387
|
} }),
|
|
23388
|
-
|
|
23388
|
+
r && /* @__PURE__ */ d(io, {
|
|
23389
23389
|
variant: "contained",
|
|
23390
|
-
onClick:
|
|
23390
|
+
onClick: r,
|
|
23391
23391
|
startIcon: /* @__PURE__ */ d(A6, {}),
|
|
23392
|
-
children:
|
|
23392
|
+
children: i ?? l("reload")
|
|
23393
23393
|
})
|
|
23394
23394
|
]
|
|
23395
23395
|
});
|
|
@@ -2,6 +2,8 @@ import { ReactNode } from 'react';
|
|
|
2
2
|
export interface ErrorStateProps {
|
|
3
3
|
/** Shows the brand logo above the message (full-page crash screens) */
|
|
4
4
|
fullPage?: boolean;
|
|
5
|
+
/** Brand mark rendered when fullPage — override for non-default brands (e.g. the supplier logo) */
|
|
6
|
+
logo?: ReactNode;
|
|
5
7
|
/** Reload/retry callback — the host app owns the navigation strategy */
|
|
6
8
|
onReload?: () => void;
|
|
7
9
|
title?: ReactNode;
|
|
@@ -12,5 +14,5 @@ export interface ErrorStateProps {
|
|
|
12
14
|
* Error screen counterpart of EmptyState: headline, hairline divider and a reload action.
|
|
13
15
|
* Router-agnostic — the reload behaviour comes from `onReload`.
|
|
14
16
|
*/
|
|
15
|
-
declare const ErrorState: ({ fullPage, onReload, title, description, actionLabel }: ErrorStateProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
17
|
+
declare const ErrorState: ({ fullPage, logo, onReload, title, description, actionLabel }: ErrorStateProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
16
18
|
export default ErrorState;
|