@factorearth/component-library 5.0.4-alpha.0 → 5.0.6-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.
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import styled from "@emotion/styled";
|
|
3
|
-
import { FiChevronLeft, FiRefreshCw
|
|
3
|
+
import { FiChevronLeft, FiRefreshCw } from "react-icons/fi";
|
|
4
|
+
import { GoBug } from "react-icons/go";
|
|
4
5
|
import { Button } from "../../Atoms/Buttons/Button";
|
|
5
6
|
import { Typography } from "../../Atoms/Typography/Typography";
|
|
6
7
|
const SplashContainer = styled.div `
|
|
@@ -50,8 +51,19 @@ const AmbassadorContactDiv = styled.div `
|
|
|
50
51
|
gap: 16px;
|
|
51
52
|
align-self: stretch;
|
|
52
53
|
`;
|
|
54
|
+
const ContactContainer = styled.div `
|
|
55
|
+
background-color: ${({ colors }) => colors.background.tertiary};
|
|
56
|
+
color: ${({ colors }) => colors.text.primary};
|
|
57
|
+
display: flex;
|
|
58
|
+
padding: 24px 16px;
|
|
59
|
+
flex-direction: column;
|
|
60
|
+
align-items: center;
|
|
61
|
+
gap: 16px;
|
|
62
|
+
align-self: stretch;
|
|
63
|
+
`;
|
|
53
64
|
export const Splash = (props) => {
|
|
54
65
|
const { colorPalette, title, description, image, ...tableHtmlProps } = props;
|
|
66
|
+
console.log("colorPalette:", colorPalette);
|
|
55
67
|
return (React.createElement(SplashContainer, { colorPalette: colorPalette, ...tableHtmlProps },
|
|
56
68
|
React.createElement(HeaderDiv, { colorPalette: colorPalette },
|
|
57
69
|
React.createElement(HeaderAndBackDiv, { colorPalette: colorPalette },
|
|
@@ -61,11 +73,10 @@ export const Splash = (props) => {
|
|
|
61
73
|
React.createElement(Typography, { textColor: colorPalette.text.primary, content: description, variant: "Paragraphy Body" }))),
|
|
62
74
|
image && React.createElement("img", { src: image, alt: "Splash Image" }),
|
|
63
75
|
React.createElement(ButtonsDiv, { colorPalette: colorPalette },
|
|
64
|
-
React.createElement(Button, { colorPalette: colorPalette, onClick: () => { }, label: "FAQ's", variant: "outlined", icon: React.createElement(FiHelpCircle, null) }),
|
|
65
76
|
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(
|
|
67
|
-
React.createElement(
|
|
68
|
-
React.createElement(Typography, { textColor: colorPalette.text.primary, content: "Please ask further questions, or reach out for additional support by emailing
|
|
69
|
-
React.createElement(
|
|
77
|
+
React.createElement(Button, { colorPalette: colorPalette, onClick: () => { }, label: "Report a bug", variant: "filled", icon: React.createElement(GoBug, null) })),
|
|
78
|
+
React.createElement(ContactContainer, { colors: colorPalette },
|
|
79
|
+
React.createElement(Typography, { textColor: colorPalette.text.primary, content: "Please ask further questions, or reach out for additional support by emailing", variant: "Label" }),
|
|
80
|
+
React.createElement(Typography, { textColor: colorPalette.text.primary, content: "devs@factorearth.com", variant: "Heading 4" }))));
|
|
70
81
|
};
|
|
71
82
|
//# sourceMappingURL=Splash.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Splash.js","sourceRoot":"","sources":["../../../lib/Organisms/Splash/Splash.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAEnD,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,EAAE,aAAa,EAAE,WAAW,
|
|
1
|
+
{"version":3,"file":"Splash.js","sourceRoot":"","sources":["../../../lib/Organisms/Splash/Splash.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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C,CAAC"}
|
|
@@ -4,6 +4,7 @@ import { FiX } from "react-icons/fi";
|
|
|
4
4
|
import Accordion from "../../Atoms/Accordion/Accordion";
|
|
5
5
|
import { Button } from "../../Atoms/Buttons/Button";
|
|
6
6
|
import { Typography } from "../../Atoms/Typography/Typography";
|
|
7
|
+
import { GoBug } from "react-icons/go";
|
|
7
8
|
const TutorialOverlay = styled.div `
|
|
8
9
|
background-color: ${({ colors }) => `${colors.background.secondary}90`};
|
|
9
10
|
position: absolute;
|
|
@@ -86,7 +87,7 @@ export const Tutorial = (props) => {
|
|
|
86
87
|
React.createElement(ContactContainer, { colors: colors },
|
|
87
88
|
React.createElement(Typography, { textColor: colors.text.primary, content: "Please ask further questions, or reach out for additional support by emailing", variant: "Label" }),
|
|
88
89
|
React.createElement(Typography, { textColor: colors.text.primary, content: "devs@factorearth.com", variant: "Heading 4" }),
|
|
89
|
-
React.createElement(Button, { colorPalette: colors, onClick: reportBugOnClick, label: "Report a Bug", variant: "filled" }))))));
|
|
90
|
+
React.createElement(Button, { colorPalette: colors, onClick: reportBugOnClick, label: "Report a Bug", variant: "filled", icon: React.createElement(GoBug, null) }))))));
|
|
90
91
|
};
|
|
91
92
|
//test with interaction test that when the user clicks the x oor outside the tutorial it closes, then when the open button is clicked it opens
|
|
92
93
|
//# sourceMappingURL=Tutorial.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tutorial.js","sourceRoot":"","sources":["../../../lib/Organisms/Tutorial/Tutorial.tsx"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAC;AACrC,OAAO,SAAS,MAAM,iCAAiC,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAC;
|
|
1
|
+
{"version":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ACrG,oBAAC,MAAM,IAAC,YAAY,EAAE,MAAM,EAAE,OAAO,EAAE,gBAAgB,EAAE,KAAK,EAAC,cAAc,EAAC,OAAO,EAAC,QAAQ,EAAC,IAAI,EAAE,oBAAC,KAAK,OAAG,GAAG,CAChG,CACJ,CACD,CACF,CACnB,CAAC;AACJ,CAAC,CAAC;AAEF,8IAA8I"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@factorearth/component-library",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.6-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": "27bda906a02cca66189acf6b4ee6cb6199a7dbd1",
|
|
50
50
|
"dependencies": {
|
|
51
51
|
"@emotion/react": "^11.13.0",
|
|
52
52
|
"@emotion/styled": "^11.13.0",
|