@factorearth/component-library 5.0.8-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.
|
@@ -16,6 +16,7 @@ const HeaderDiv = styled.div `
|
|
|
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;
|
|
@@ -27,7 +28,6 @@ const DescriptionDiv = styled.div `
|
|
|
27
28
|
margin-top: 24px;
|
|
28
29
|
`;
|
|
29
30
|
const ButtonsDiv = styled.div `
|
|
30
|
-
//background is the topo image
|
|
31
31
|
display: flex;
|
|
32
32
|
height: 245px;
|
|
33
33
|
justify-content: center;
|
|
@@ -37,7 +37,9 @@ const ButtonsDiv = styled.div `
|
|
|
37
37
|
flex-shrink: 0;
|
|
38
38
|
align-self: stretch;
|
|
39
39
|
flex-wrap: wrap;
|
|
40
|
+
background-image: ${({ backgroundImage }) => `url(${backgroundImage})`};
|
|
40
41
|
`;
|
|
42
|
+
// This will replace the ContactContainer when we have the ambassador program set up
|
|
41
43
|
// const AmbassadorContactDiv = styled.div<{ colorPalette: Colors }>`
|
|
42
44
|
// background-color: ${({ colorPalette }) => colorPalette.background.tertiary};
|
|
43
45
|
// border-top: ${({ colorPalette }) => colorPalette.border.tertiary} 1px solid;
|
|
@@ -59,7 +61,7 @@ const ContactContainer = styled.div `
|
|
|
59
61
|
align-self: stretch;
|
|
60
62
|
`;
|
|
61
63
|
export const ErrorSplash = (props) => {
|
|
62
|
-
const { colorPalette, title, description, image, ...tableHtmlProps } = props;
|
|
64
|
+
const { colorPalette, title, description, image, backgroundImage, ...tableHtmlProps } = props;
|
|
63
65
|
console.log("colorPalette:", colorPalette);
|
|
64
66
|
return (React.createElement(ErrorSplashContainer, { colorPalette: colorPalette, ...tableHtmlProps },
|
|
65
67
|
React.createElement(HeaderDiv, { colorPalette: colorPalette },
|
|
@@ -69,7 +71,7 @@ export const ErrorSplash = (props) => {
|
|
|
69
71
|
React.createElement(DescriptionDiv, { colorPalette: colorPalette },
|
|
70
72
|
React.createElement(Typography, { textColor: colorPalette.text.primary, content: description, variant: "Paragraphy Body" }))),
|
|
71
73
|
image && React.createElement("img", { src: image, alt: "Splash Image" }),
|
|
72
|
-
React.createElement(ButtonsDiv, { colorPalette: colorPalette },
|
|
74
|
+
React.createElement(ButtonsDiv, { colorPalette: colorPalette, backgroundImage: backgroundImage },
|
|
73
75
|
React.createElement(Button, { colorPalette: colorPalette, onClick: () => { }, label: "Refresh", variant: "outlined", icon: React.createElement(FiRefreshCw, null) }),
|
|
74
76
|
React.createElement(Button, { colorPalette: colorPalette, onClick: () => { }, label: "Report a bug", variant: "filled", icon: React.createElement(GoBug, null) })),
|
|
75
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;qBAC5C,CAAC,EAAE,YAAY,EAAE,EAAE,EAAE,CAAC,YAAY,CAAC,UAAU,CAAC,OAAO;;;;CAIzE,CAAC;AAEF,MAAM,SAAS,GAAG,MAAM,CAAC,GAAG,CAA0B;;;;;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,OAAE,GAAG;YACjH,oBAAC,MAAM,IAAC,YAAY,EAAE,YAAY,EAAE,OAAO,EAAE,GAAG,EAAE,GAAE,CAAC,EAAE,KAAK,EAAC,cAAc,EAAC,OAAO,EAAC,QAAQ,EAAC,IAAI,EAAE,oBAAC,KAAK,OAAE,GAAG,CAClG;QAKb,oBAAC,gBAAgB,IAAC,MAAM,EAAE,YAAY;YACnC,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,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",
|