@factorearth/component-library 5.0.17-alpha.0 → 5.0.18-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.
|
@@ -20,13 +20,6 @@ const HeaderDiv = styled.div `
|
|
|
20
20
|
text-align: center;
|
|
21
21
|
border-color: ${({ colorPalette }) => colorPalette.background.secondary};
|
|
22
22
|
`;
|
|
23
|
-
// const HeaderAndBackDiv = styled.div<{ colorPalette: Colors }>`
|
|
24
|
-
// display: flex;
|
|
25
|
-
// justify-content: space-between;
|
|
26
|
-
// align-items: center;
|
|
27
|
-
// align-self: stretch;
|
|
28
|
-
// text-align: right;
|
|
29
|
-
// `;
|
|
30
23
|
const DescriptionDiv = styled.div `
|
|
31
24
|
margin-top: 24px;
|
|
32
25
|
text-align: center;
|
|
@@ -41,8 +34,8 @@ const BackgroundDiv = styled.div `
|
|
|
41
34
|
flex-shrink: 0;
|
|
42
35
|
align-self: stretch;
|
|
43
36
|
flex-wrap: wrap;
|
|
44
|
-
background-image: ${({ backgroundImage }) => `url(${backgroundImage})`};
|
|
45
37
|
flex-grow: 1;
|
|
38
|
+
background-image: ${({ backgroundImage }) => `url(${backgroundImage})`};
|
|
46
39
|
backgroundSize: cover;
|
|
47
40
|
backgroundRepeat: no-repeat;
|
|
48
41
|
overflowY: auto;
|
|
@@ -69,12 +62,13 @@ const ContactContainer = styled.div `
|
|
|
69
62
|
align-self: stretch;
|
|
70
63
|
`;
|
|
71
64
|
export const ErrorSplash = (props) => {
|
|
72
|
-
const { colorPalette, title, description, image, backgroundImage, ...tableHtmlProps } = props;
|
|
65
|
+
const { colorPalette, title, description, image, backgroundImage, errorMessage, ...tableHtmlProps } = props;
|
|
73
66
|
return (React.createElement(ErrorSplashContainer, { colorPalette: colorPalette, ...tableHtmlProps },
|
|
74
67
|
React.createElement(HeaderDiv, { colorPalette: colorPalette },
|
|
75
68
|
React.createElement(Typography, { textColor: colorPalette.text.primary, content: title, variant: "Heading 3" }),
|
|
76
69
|
React.createElement(DescriptionDiv, { colorPalette: colorPalette },
|
|
77
|
-
React.createElement(Typography, { textColor: colorPalette.text.primary, content: description, variant: "Paragraphy Body" })
|
|
70
|
+
React.createElement(Typography, { textColor: colorPalette.text.primary, content: description, variant: "Paragraphy Body" }),
|
|
71
|
+
React.createElement(Typography, { textColor: colorPalette.text.primary, content: `Error Message: ${errorMessage}`, variant: "Paragraphy Body" }))),
|
|
78
72
|
image && React.createElement("img", { src: image, alt: "Splash Image" }),
|
|
79
73
|
React.createElement(BackgroundDiv, { colorPalette: colorPalette, backgroundImage: backgroundImage }),
|
|
80
74
|
React.createElement(ContactContainer, { colors: colorPalette },
|
|
@@ -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;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;;;;;CAKzE,CAAC;AAEF,MAAM,SAAS,GAAG,MAAM,CAAC,GAAG,CAA0B;;;;;;UAM5C,CAAC,EAAE,YAAY,EAAE,EAAE,EAAE,CAAC,YAAY,CAAC,IAAI,CAAC,OAAO;;;;iBAIxC,CAAC,EAAE,YAAY,EAAE,EAAE,EAAE,CAAC,YAAY,CAAC,UAAU,CAAC,SAAS;CACvE,CAAC;AAEF,
|
|
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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;IAE5G,OAAO,CACN,oBAAC,oBAAoB,IAAC,YAAY,EAAE,YAAY,KAAM,cAAc;QACnE,oBAAC,SAAS,IAAC,YAAY,EAAE,YAAY;YACpC,oBAAC,UAAU,IAAC,SAAS,EAAE,YAAY,CAAC,IAAI,CAAC,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,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,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.18-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": "f35e48a8994704ad381327b825e166e7ed155a18",
|
|
50
50
|
"dependencies": {
|
|
51
51
|
"@emotion/react": "^11.13.0",
|
|
52
52
|
"@emotion/styled": "^11.13.0",
|