@factorearth/component-library 4.6.2-alpha.0 → 5.0.0-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.
@@ -4,10 +4,6 @@ const FieldWrapperContainer = styled.div `
4
4
  display: flex;
5
5
  width: 100%;
6
6
  gap: 16px;
7
- @media (max-width: 500px) {
8
- flex-direction: column;
9
- gap: 8px;
10
- }
11
7
  `;
12
8
  const LabelContainer = styled.label `
13
9
  display: flex;
@@ -22,19 +18,12 @@ const LabelContainer = styled.label `
22
18
  line-height: 125%;
23
19
  color: ${({ colorPalette }) => colorPalette.text.primary};
24
20
  width: 50%;
25
- @media (max-width: 500px) {
26
- min-height: 16px;
27
- padding-top: 0;
28
- }
29
21
  `;
30
22
  const FieldActionContainer = styled.div `
31
23
  display: flex;
32
24
  width: 100%;
33
25
  padding: 8px 0;
34
26
  align-items: center;
35
- @media (max-width: 500px) {
36
- padding: 0;
37
- }
38
27
  `;
39
28
  export const FieldWrapper = (props) => {
40
29
  const { colorPalette, label, children, link, ...htmlProps } = props;
@@ -1 +1 @@
1
- {"version":3,"file":"FieldWrapper.js","sourceRoot":"","sources":["../../../lib/Atoms/FieldWrapper/FieldWrapper.tsx"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,MAAM,qBAAqB,GAAG,MAAM,CAAC,GAAG,CAA2B;;;;;;;;CAQlE,CAAC;AACF,MAAM,cAAc,GAAG,MAAM,CAAC,KAAK,CAA2B;;;;;;;;;;;UAWpD,CAAC,EAAE,YAAY,EAAE,EAAE,EAAE,CAAC,YAAY,CAAC,IAAI,CAAC,OAAO;;;;;;CAMxD,CAAC;AAEF,MAAM,oBAAoB,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;;;;EAQrC,CAAC;AAaH,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,KAAwB,EAAE,EAAE;IACxD,MA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D,KAAK,IAAI,CACT,oBAAC,cAAc,IAAC,YAAY,EAAE,YAAY;YACxC,KAAK;YACL,IAAI,CACW,CACjB;QACA,QAAQ,CACc,CACxB,CAAC;AACH,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,KAA8B,EAAE,EAAE;IACpE,MAAM,EAAE,QAAQ,EAAE,GAAG,SAAS,EAAE,GAAG,KAAK,CAAC;IACzC,OAAO,CACN,oBAAC,oBAAoB,OAAK,SAAS,IAAG,QAAQ,CAAwB,CACtE,CAAC;AACH,CAAC,CAAC"}
@@ -0,0 +1,10 @@
1
+ import React from "react";
2
+ import { Colors } from "Theme/types";
3
+ interface SplashProps {
4
+ colorPalette: Colors;
5
+ title: string;
6
+ description: string;
7
+ image?: string;
8
+ }
9
+ export declare const Splash: (props: SplashProps) => React.JSX.Element;
10
+ export default Splash;
@@ -0,0 +1,72 @@
1
+ import React from "react";
2
+ import styled from "@emotion/styled";
3
+ import { FiChevronLeft, FiRefreshCw, FiHelpCircle, FiActivity, FiUser } from "react-icons/fi";
4
+ import { Button } from "../../Atoms/Buttons/Button";
5
+ import { Typography } from "../../Atoms/Typography/Typography";
6
+ const SplashContainer = styled.div `
7
+ // width: 100vw;
8
+ // height: 100vh;
9
+
10
+ `;
11
+ const HeaderDiv = styled.div `
12
+ display: flex;
13
+ padding: 24px;
14
+ flex-direction: column;
15
+ align-items: flex-start;
16
+ gap: 16px;
17
+ align-self: stretch;
18
+ `;
19
+ const HeaderAndBackDiv = styled.div `
20
+ display: flex;
21
+ justify-content: space-between;
22
+ align-items: center;
23
+ align-self: stretch;
24
+ `;
25
+ const DescriptionDiv = styled.div `
26
+ display: -webkit-box;
27
+ -webkit-box-orient: vertical;
28
+ -webkit-line-clamp: 2;
29
+ flex: 1 0 0;
30
+ `;
31
+ const ButtonsDiv = styled.div `
32
+ //background is the topo image
33
+ display: flex;
34
+ height: 245px;
35
+ justify-content: center;
36
+ align-items: center;
37
+ align-content: center;
38
+ gap: 16px;
39
+ flex-shrink: 0;
40
+ align-self: stretch;
41
+ flex-wrap: wrap;
42
+ `;
43
+ const AmbassadorContactDiv = styled.div `
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
+ `;
53
+ export const Splash = (props) => {
54
+ const { colorPalette, title, description, image, ...tableHtmlProps } = props;
55
+ return (React.createElement(SplashContainer, { colorPalette: colorPalette, ...tableHtmlProps },
56
+ React.createElement(HeaderDiv, { colorPalette: colorPalette },
57
+ React.createElement(HeaderAndBackDiv, { colorPalette: colorPalette },
58
+ React.createElement(FiChevronLeft, null),
59
+ React.createElement(Typography, { textColor: colorPalette.text.primary, content: title, variant: "Heading 3" })),
60
+ React.createElement(DescriptionDiv, { colorPalette: colorPalette },
61
+ React.createElement(Typography, { textColor: colorPalette.text.primary, content: description, variant: "Paragraphy Body" }))),
62
+ image && React.createElement("img", { src: image, alt: "Splash Image" }),
63
+ React.createElement(ButtonsDiv, { colorPalette: colorPalette },
64
+ React.createElement(Button, { colorPalette: colorPalette, onClick: () => { }, label: "FAQ's", variant: "outlined", icon: React.createElement(FiHelpCircle, null) }),
65
+ React.createElement(Button, { colorPalette: colorPalette, onClick: () => { }, label: "Refresh", variant: "outlined", icon: React.createElement(FiRefreshCw, null) }),
66
+ React.createElement(Button, { colorPalette: colorPalette, onClick: () => { }, label: "Report a bug", variant: "filled", icon: React.createElement(FiActivity, null) })),
67
+ React.createElement(AmbassadorContactDiv, { colorPalette: colorPalette },
68
+ React.createElement(Typography, { textColor: colorPalette.text.primary, content: "Please ask further questions, or reach out for additional support by emailing your Tech Ambassador", variant: "Heading 5" }),
69
+ React.createElement(Button, { colorPalette: colorPalette, onClick: () => { }, label: "Tech Ambassador", variant: "filled", icon: React.createElement(FiUser, null) }))));
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,OAAO,EAAE,WAAW,GAAI;YACzL,oBAAC,MAAM,IAAC,YAAY,EAAE,YAAY,EAAE,OAAO,EAAE,GAAG,EAAE,GAAE,CAAC,EAAE,KAAK,EAAC,iBAAiB,EAAC,OAAO,EAAC,QAAQ,EAAC,IAAI,EAAE,oBAAC,MAAM,OAAE,GAAG,CAC5F,CACN,CAClB,CAAC;AACH,CAAC,CAAC;AAEF,eAAe,MAAM,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@factorearth/component-library",
3
- "version": "4.6.2-alpha.0",
3
+ "version": "5.0.0-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": "29f5e3531ad326709f534cf4e2363a1d7651914a",
49
+ "gitHead": "0351d2f82b59bddb8541b41ad82f4f09adfe86ab",
50
50
  "dependencies": {
51
51
  "@emotion/react": "^11.13.0",
52
52
  "@emotion/styled": "^11.13.0",