@factorearth/component-library 5.0.7-alpha.0 → 5.0.9-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.
|
@@ -5,17 +5,18 @@ import { GoBug } from "react-icons/go";
|
|
|
5
5
|
import { Button } from "../../Atoms/Buttons/Button";
|
|
6
6
|
import { Typography } from "../../Atoms/Typography/Typography";
|
|
7
7
|
const ErrorSplashContainer = styled.div `
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
background-color: ${({ colorPalette }) => colorPalette.background.primary};
|
|
9
|
+
display: flex;
|
|
10
|
+
flex-direction: column;
|
|
11
|
+
flex-grow: 1;
|
|
11
12
|
`;
|
|
12
13
|
const HeaderDiv = styled.div `
|
|
13
|
-
display: flex;
|
|
14
14
|
padding: 24px;
|
|
15
15
|
flex-direction: column;
|
|
16
16
|
align-items: flex-start;
|
|
17
17
|
gap: 16px;
|
|
18
18
|
align-self: stretch;
|
|
19
|
+
color: ${({ colorPalette }) => colorPalette.text.primary};
|
|
19
20
|
`;
|
|
20
21
|
const HeaderAndBackDiv = styled.div `
|
|
21
22
|
display: flex;
|
|
@@ -24,13 +25,9 @@ const HeaderAndBackDiv = styled.div `
|
|
|
24
25
|
align-self: stretch;
|
|
25
26
|
`;
|
|
26
27
|
const DescriptionDiv = styled.div `
|
|
27
|
-
|
|
28
|
-
-webkit-box-orient: vertical;
|
|
29
|
-
-webkit-line-clamp: 2;
|
|
30
|
-
flex: 1 0 0;
|
|
28
|
+
margin-top: 24px;
|
|
31
29
|
`;
|
|
32
30
|
const ButtonsDiv = styled.div `
|
|
33
|
-
//background is the topo image
|
|
34
31
|
display: flex;
|
|
35
32
|
height: 245px;
|
|
36
33
|
justify-content: center;
|
|
@@ -40,17 +37,19 @@ const ButtonsDiv = styled.div `
|
|
|
40
37
|
flex-shrink: 0;
|
|
41
38
|
align-self: stretch;
|
|
42
39
|
flex-wrap: wrap;
|
|
40
|
+
background-image: ${({ backgroundImage }) => `url(${backgroundImage})`};
|
|
43
41
|
`;
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
42
|
+
// This will replace the ContactContainer when we have the ambassador program set up
|
|
43
|
+
// const AmbassadorContactDiv = styled.div<{ colorPalette: Colors }>`
|
|
44
|
+
// background-color: ${({ colorPalette }) => colorPalette.background.tertiary};
|
|
45
|
+
// border-top: ${({ colorPalette }) => colorPalette.border.tertiary} 1px solid;
|
|
46
|
+
// display: flex;
|
|
47
|
+
// padding: 24px 16px;
|
|
48
|
+
// flex-direction: column;
|
|
49
|
+
// align-items: center;
|
|
50
|
+
// gap: 16px;
|
|
51
|
+
// align-self: stretch;
|
|
52
|
+
// `;
|
|
54
53
|
const ContactContainer = styled.div `
|
|
55
54
|
background-color: ${({ colors }) => colors.background.tertiary};
|
|
56
55
|
color: ${({ colors }) => colors.text.primary};
|
|
@@ -62,17 +61,17 @@ const ContactContainer = styled.div `
|
|
|
62
61
|
align-self: stretch;
|
|
63
62
|
`;
|
|
64
63
|
export const ErrorSplash = (props) => {
|
|
65
|
-
const { colorPalette, title, description, image, ...tableHtmlProps } = props;
|
|
64
|
+
const { colorPalette, title, description, image, backgroundImage, ...tableHtmlProps } = props;
|
|
66
65
|
console.log("colorPalette:", colorPalette);
|
|
67
66
|
return (React.createElement(ErrorSplashContainer, { colorPalette: colorPalette, ...tableHtmlProps },
|
|
68
67
|
React.createElement(HeaderDiv, { colorPalette: colorPalette },
|
|
69
68
|
React.createElement(HeaderAndBackDiv, { colorPalette: colorPalette },
|
|
70
|
-
React.createElement(FiChevronLeft,
|
|
69
|
+
React.createElement(FiChevronLeft, { style: { width: "24px", height: "24px" } }),
|
|
71
70
|
React.createElement(Typography, { textColor: colorPalette.text.primary, content: title, variant: "Heading 3" })),
|
|
72
71
|
React.createElement(DescriptionDiv, { colorPalette: colorPalette },
|
|
73
72
|
React.createElement(Typography, { textColor: colorPalette.text.primary, content: description, variant: "Paragraphy Body" }))),
|
|
74
73
|
image && React.createElement("img", { src: image, alt: "Splash Image" }),
|
|
75
|
-
React.createElement(ButtonsDiv, { colorPalette: colorPalette },
|
|
74
|
+
React.createElement(ButtonsDiv, { colorPalette: colorPalette, backgroundImage: backgroundImage },
|
|
76
75
|
React.createElement(Button, { colorPalette: colorPalette, onClick: () => { }, label: "Refresh", variant: "outlined", icon: React.createElement(FiRefreshCw, null) }),
|
|
77
76
|
React.createElement(Button, { colorPalette: colorPalette, onClick: () => { }, label: "Report a bug", variant: "filled", icon: React.createElement(GoBug, null) })),
|
|
78
77
|
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;AACrC,OAAO,EAAE,aAAa,EAAE,WAAW,EAAoC,MAAM,gBAAgB,CAAC;AAC9F,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AACvC,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAC;AAE/D,MAAM,oBAAoB,GAAG,MAAM,CAAC,GAAG,CAA0B;;;;
|
|
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,EAAE,aAAa,EAAE,WAAW,EAAoC,MAAM,gBAAgB,CAAC;AAC9F,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;A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AAC,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,CACvF,CACD,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.9-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": "8b7051f278e5982ae7243861d4cf3d15faca7e79",
|
|
50
50
|
"dependencies": {
|
|
51
51
|
"@emotion/react": "^11.13.0",
|
|
52
52
|
"@emotion/styled": "^11.13.0",
|