@factorearth/component-library 5.0.8-alpha.0 → 5.0.10-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,6 +5,7 @@ interface ErrorSplashProps {
5
5
  title: string;
6
6
  description: string;
7
7
  image?: string;
8
+ backgroundImage: string;
8
9
  }
9
10
  export declare const ErrorSplash: (props: ErrorSplashProps) => React.JSX.Element;
10
11
  export {};
@@ -16,18 +16,22 @@ 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};
20
+ border-width: 0 0 1px 0;
21
+ border-style: solid;
22
+ border-color: ${({ colorPalette }) => colorPalette.background.secondary};
19
23
  `;
20
24
  const HeaderAndBackDiv = styled.div `
21
25
  display: flex;
22
26
  justify-content: space-between;
23
27
  align-items: center;
24
28
  align-self: stretch;
29
+ text-align: right;
25
30
  `;
26
31
  const DescriptionDiv = styled.div `
27
32
  margin-top: 24px;
28
33
  `;
29
34
  const ButtonsDiv = styled.div `
30
- //background is the topo image
31
35
  display: flex;
32
36
  height: 245px;
33
37
  justify-content: center;
@@ -37,7 +41,9 @@ const ButtonsDiv = styled.div `
37
41
  flex-shrink: 0;
38
42
  align-self: stretch;
39
43
  flex-wrap: wrap;
44
+ background-image: ${({ backgroundImage }) => `url(${backgroundImage})`};
40
45
  `;
46
+ // This will replace the ContactContainer when we have the ambassador program set up
41
47
  // const AmbassadorContactDiv = styled.div<{ colorPalette: Colors }>`
42
48
  // background-color: ${({ colorPalette }) => colorPalette.background.tertiary};
43
49
  // border-top: ${({ colorPalette }) => colorPalette.border.tertiary} 1px solid;
@@ -59,8 +65,7 @@ const ContactContainer = styled.div `
59
65
  align-self: stretch;
60
66
  `;
61
67
  export const ErrorSplash = (props) => {
62
- const { colorPalette, title, description, image, ...tableHtmlProps } = props;
63
- console.log("colorPalette:", colorPalette);
68
+ const { colorPalette, title, description, image, backgroundImage, ...tableHtmlProps } = props;
64
69
  return (React.createElement(ErrorSplashContainer, { colorPalette: colorPalette, ...tableHtmlProps },
65
70
  React.createElement(HeaderDiv, { colorPalette: colorPalette },
66
71
  React.createElement(HeaderAndBackDiv, { colorPalette: colorPalette },
@@ -69,7 +74,7 @@ export const ErrorSplash = (props) => {
69
74
  React.createElement(DescriptionDiv, { colorPalette: colorPalette },
70
75
  React.createElement(Typography, { textColor: colorPalette.text.primary, content: description, variant: "Paragraphy Body" }))),
71
76
  image && React.createElement("img", { src: image, alt: "Splash Image" }),
72
- React.createElement(ButtonsDiv, { colorPalette: colorPalette },
77
+ React.createElement(ButtonsDiv, { colorPalette: colorPalette, backgroundImage: backgroundImage },
73
78
  React.createElement(Button, { colorPalette: colorPalette, onClick: () => { }, label: "Refresh", variant: "outlined", icon: React.createElement(FiRefreshCw, null) }),
74
79
  React.createElement(Button, { colorPalette: colorPalette, onClick: () => { }, label: "Report a bug", variant: "filled", icon: React.createElement(GoBug, null) })),
75
80
  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,SAA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AgB,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.8-alpha.0",
3
+ "version": "5.0.10-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": "98e390a0ad777b89f40603ba7b0dabfc50f5fa79",
49
+ "gitHead": "e8e2ab8720155a96cbbe65f445447902a4888cf1",
50
50
  "dependencies": {
51
51
  "@emotion/react": "^11.13.0",
52
52
  "@emotion/styled": "^11.13.0",