@factorearth/component-library 5.0.18-alpha.0 → 5.0.20-alpha.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.
|
@@ -6,7 +6,8 @@ interface ErrorSplashProps {
|
|
|
6
6
|
description: string;
|
|
7
7
|
image?: string;
|
|
8
8
|
backgroundImage: string;
|
|
9
|
-
errorMessage
|
|
9
|
+
errorMessage?: string;
|
|
10
|
+
refreshOnClick?: () => void;
|
|
10
11
|
}
|
|
11
12
|
export declare const ErrorSplash: (props: ErrorSplashProps) => React.JSX.Element;
|
|
12
13
|
export {};
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import styled from "@emotion/styled";
|
|
3
|
+
import { FiRefreshCw } from "react-icons/fi";
|
|
4
|
+
import { Button } from "../../Atoms/Buttons/Button";
|
|
3
5
|
import { Typography } from "../../Atoms/Typography/Typography";
|
|
4
6
|
const ErrorSplashContainer = styled.div `
|
|
5
7
|
background-color: ${({ colorPalette }) => colorPalette.background.primary};
|
|
@@ -62,7 +64,7 @@ const ContactContainer = styled.div `
|
|
|
62
64
|
align-self: stretch;
|
|
63
65
|
`;
|
|
64
66
|
export const ErrorSplash = (props) => {
|
|
65
|
-
const { colorPalette, title, description, image, backgroundImage, errorMessage, ...tableHtmlProps } = props;
|
|
67
|
+
const { colorPalette, title, description, image, backgroundImage, errorMessage, refreshOnClick, ...tableHtmlProps } = props;
|
|
66
68
|
return (React.createElement(ErrorSplashContainer, { colorPalette: colorPalette, ...tableHtmlProps },
|
|
67
69
|
React.createElement(HeaderDiv, { colorPalette: colorPalette },
|
|
68
70
|
React.createElement(Typography, { textColor: colorPalette.text.primary, content: title, variant: "Heading 3" }),
|
|
@@ -70,7 +72,7 @@ export const ErrorSplash = (props) => {
|
|
|
70
72
|
React.createElement(Typography, { textColor: colorPalette.text.primary, content: description, variant: "Paragraphy Body" }),
|
|
71
73
|
React.createElement(Typography, { textColor: colorPalette.text.primary, content: `Error Message: ${errorMessage}`, variant: "Paragraphy Body" }))),
|
|
72
74
|
image && React.createElement("img", { src: image, alt: "Splash Image" }),
|
|
73
|
-
React.createElement(BackgroundDiv, { colorPalette: colorPalette, backgroundImage: backgroundImage }),
|
|
75
|
+
React.createElement(BackgroundDiv, { colorPalette: colorPalette, backgroundImage: backgroundImage }, refreshOnClick && React.createElement(Button, { colorPalette: colorPalette, onClick: refreshOnClick, label: "Refresh to Try Again", variant: "outlined", icon: React.createElement(FiRefreshCw, null) })),
|
|
74
76
|
React.createElement(ContactContainer, { colors: colorPalette },
|
|
75
77
|
React.createElement(Typography, { textColor: colorPalette.text.primary, content: "Please ask further questions, or reach out for additional support by emailing", variant: "Label" }),
|
|
76
78
|
React.createElement(Typography, { textColor: colorPalette.text.primary, content: "devs@factorearth.com", variant: "Heading 4" }))));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ErrorSplash.js","sourceRoot":"","sources":["../../../lib/Organisms/ErrorSplash/ErrorSplash.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAEnD,OAAO,MAAM,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"ErrorSplash.js","sourceRoot":"","sources":["../../../lib/Organisms/ErrorSplash/ErrorSplash.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAEnD,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,EAAiB,WAAW,EAAoC,MAAM,gBAAgB,CAAC;AAE9F,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAC;AAE/D,MAAM,oBAAoB,GAAG,MAAM,CAAC,GAAG,CAA0B;qBAC5C,CAAC,EAAE,YAAY,EAAE,EAAE,EAAE,CAAC,YAAY,CAAC,UAAU,CAAC,OAAO;;;;;CAKzE,CAAC;AAEF,MAAM,S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AE,WAAW,GAAI;YAC1F,oBAAC,cAAc,IAAC,YAAY,EAAE,YAAY;gBACzC,oBAAC,UAAU,IAAC,SAAS,EAAE,YAAY,CAAC,IAAI,CAAC,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,iBAAiB,GAAI;gBACtG,oBAAC,UAAU,IAAC,SAAS,EAAE,YAAY,CAAC,IAAI,CAAC,OAAO,EAAE,OAAO,EAAE,kBAAkB,YAAY,EAAE,EAAE,OAAO,EAAE,iBAAiB,GAAI,CAC3G,CACN;QACX,KAAK,IAAI,6BAAK,GAAG,EAAE,KAAK,EAAE,GAAG,EAAC,cAAc,GAAG;QAChD,oBAAC,aAAa,IAAC,YAAY,EAAE,YAAY,EAAE,eAAe,EAAE,eAAe,IAEzE,cAAc,IAAI,oBAAC,MAAM,IAAC,YAAY,EAAE,YAAY,EAAE,OAAO,EAAE,cAAc,EAAE,KAAK,EAAC,sBAAsB,EAAC,OAAO,EAAC,UAAU,EAAC,IAAI,EAAE,oBAAC,WAAW,OAAE,GAAG,CAExI;QAKhB,oBAAC,gBAAgB,IAAC,MAAM,EAAE,YAAY;YACrC,oBAAC,UAAU,IAAC,SAAS,EAAE,YAAY,CAAC,IAAI,CAAC,OAAO,EAAE,OAAO,EAAE,+EAA+E,EAAE,OAAO,EAAE,OAAO,GAAI;YAChK,oBAAC,UAAU,IAAC,SAAS,EAAE,YAAY,CAAC,IAAI,CAAC,OAAO,EAAE,OAAO,EAAE,sBAAsB,EAAE,OAAO,EAAE,WAAW,GAAI,CACzF,CACG,CACvB,CAAC;AACH,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@factorearth/component-library",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.20-alpha.0",
|
|
4
4
|
"description": " A storybook component library for FactorEarth",
|
|
5
5
|
"author": "madtrx <marlin.makori@gmail.com>",
|
|
6
6
|
"homepage": "https://github.com/FactorEarth/RecordMiddleware#readme",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"access": "public",
|
|
47
47
|
"registry": "https://registry.npmjs.org/"
|
|
48
48
|
},
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "283fca81f47e3abe8c1919d4288dc3b7e51bdbae",
|
|
50
50
|
"dependencies": {
|
|
51
51
|
"@emotion/react": "^11.13.0",
|
|
52
52
|
"@emotion/styled": "^11.13.0",
|