@factorearth/component-library 5.0.11-alpha.0 → 5.0.13-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.
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import styled from "@emotion/styled";
|
|
3
|
-
import { FiChevronLeft, FiRefreshCw } from "react-icons/fi";
|
|
4
|
-
import { GoBug } from "react-icons/go";
|
|
5
|
-
import { Button } from "../../Atoms/Buttons/Button";
|
|
6
3
|
import { Typography } from "../../Atoms/Typography/Typography";
|
|
7
4
|
const ErrorSplashContainer = styled.div `
|
|
8
5
|
background-color: ${({ colorPalette }) => colorPalette.background.primary};
|
|
@@ -30,7 +27,7 @@ const HeaderAndBackDiv = styled.div `
|
|
|
30
27
|
const DescriptionDiv = styled.div `
|
|
31
28
|
margin-top: 24px;
|
|
32
29
|
`;
|
|
33
|
-
const
|
|
30
|
+
const BackgroundDiv = styled.div `
|
|
34
31
|
display: flex;
|
|
35
32
|
height: 245px;
|
|
36
33
|
justify-content: center;
|
|
@@ -68,15 +65,11 @@ export const ErrorSplash = (props) => {
|
|
|
68
65
|
const { colorPalette, title, description, image, backgroundImage, ...tableHtmlProps } = props;
|
|
69
66
|
return (React.createElement(ErrorSplashContainer, { colorPalette: colorPalette, ...tableHtmlProps },
|
|
70
67
|
React.createElement(HeaderDiv, { colorPalette: colorPalette },
|
|
71
|
-
React.createElement(
|
|
72
|
-
React.createElement(FiChevronLeft, { style: { width: "24px", height: "24px" } }),
|
|
73
|
-
React.createElement(Typography, { textColor: colorPalette.text.primary, content: title, variant: "Heading 3" })),
|
|
68
|
+
React.createElement(Typography, { textColor: colorPalette.text.primary, content: title, variant: "Heading 3" }),
|
|
74
69
|
React.createElement(DescriptionDiv, { colorPalette: colorPalette },
|
|
75
70
|
React.createElement(Typography, { textColor: colorPalette.text.primary, content: description, variant: "Paragraphy Body" }))),
|
|
76
71
|
image && React.createElement("img", { src: image, alt: "Splash Image" }),
|
|
77
|
-
React.createElement(
|
|
78
|
-
React.createElement(Button, { colorPalette: colorPalette, onClick: () => { }, label: "Refresh", variant: "outlined", icon: React.createElement(FiRefreshCw, null) }),
|
|
79
|
-
React.createElement(Button, { colorPalette: colorPalette, onClick: () => { }, label: "Report a bug", variant: "filled", icon: React.createElement(GoBug, null) })),
|
|
72
|
+
React.createElement(BackgroundDiv, { colorPalette: colorPalette, backgroundImage: backgroundImage }),
|
|
80
73
|
React.createElement(ContactContainer, { colors: colorPalette },
|
|
81
74
|
React.createElement(Typography, { textColor: colorPalette.text.primary, content: "Please ask further questions, or reach out for additional support by emailing", variant: "Label" }),
|
|
82
75
|
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;AAIrC,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;;;CAGzE,CAAC;AAEF,MAAM,SAAS,GAAG,MAAM,CAAC,GAAG,CAA0B;;;;;;UAM5C,CAAC,EAAE,YAAY,EAAE,EAAE,EAAE,CAAC,YAAY,CAAC,IAAI,CAAC,OAAO;;;iBAGxC,CAAC,EAAE,YAA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AAC,IAAI,CAAC,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,iBAAiB,GAAI,CACtF,CACN;QACX,KAAK,IAAI,6BAAK,GAAG,EAAE,KAAK,EAAE,GAAG,EAAC,cAAc,GAAG;QAChD,oBAAC,aAAa,IAAC,YAAY,EAAE,YAAY,EAAE,eAAe,EAAE,eAAe,GAI3D;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.13-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": "83a813cefd639730cffdba83c5fc196f8547aa84",
|
|
50
50
|
"dependencies": {
|
|
51
51
|
"@emotion/react": "^11.13.0",
|
|
52
52
|
"@emotion/styled": "^11.13.0",
|