@factorearth/component-library 4.0.0-alpha.0 → 4.0.1-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,41 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { Colors } from "../../Theme/types";
|
|
3
|
-
export declare const TutorialOverlay: import("@emotion/styled").StyledComponent<{
|
|
4
|
-
theme?: import("@emotion/react").Theme;
|
|
5
|
-
as?: React.ElementType;
|
|
6
|
-
} & {
|
|
7
|
-
color: Colors;
|
|
8
|
-
}, React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
9
|
-
export declare const TutorialWrapper: import("@emotion/styled").StyledComponent<{
|
|
10
|
-
theme?: import("@emotion/react").Theme;
|
|
11
|
-
as?: React.ElementType;
|
|
12
|
-
} & {
|
|
13
|
-
color: Colors;
|
|
14
|
-
}, React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
15
|
-
export declare const HelpHeader: import("@emotion/styled").StyledComponent<{
|
|
16
|
-
theme?: import("@emotion/react").Theme;
|
|
17
|
-
as?: React.ElementType;
|
|
18
|
-
} & {
|
|
19
|
-
color: Colors;
|
|
20
|
-
}, React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
21
|
-
export declare const TitleAndExit: import("@emotion/styled").StyledComponent<{
|
|
22
|
-
theme?: import("@emotion/react").Theme;
|
|
23
|
-
as?: React.ElementType;
|
|
24
|
-
} & {
|
|
25
|
-
color: Colors;
|
|
26
|
-
}, React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
27
|
-
export declare const ContentContainer: import("@emotion/styled").StyledComponent<{
|
|
28
|
-
theme?: import("@emotion/react").Theme;
|
|
29
|
-
as?: React.ElementType;
|
|
30
|
-
} & {
|
|
31
|
-
color: Colors;
|
|
32
|
-
}, React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
33
|
-
export declare const ContactContainer: import("@emotion/styled").StyledComponent<{
|
|
34
|
-
theme?: import("@emotion/react").Theme;
|
|
35
|
-
as?: React.ElementType;
|
|
36
|
-
} & {
|
|
37
|
-
color: Colors;
|
|
38
|
-
}, React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
39
3
|
type Page = {
|
|
40
4
|
title: string;
|
|
41
5
|
"page-summary": string;
|
|
@@ -58,5 +22,5 @@ interface TutorialModalProps extends React.DetailedHTMLProps<React.HTMLAttribute
|
|
|
58
22
|
setOpen: (open: boolean) => void;
|
|
59
23
|
page: Page;
|
|
60
24
|
}
|
|
61
|
-
export declare const
|
|
25
|
+
export declare const Tutorial: (props: TutorialModalProps) => React.JSX.Element;
|
|
62
26
|
export {};
|
|
@@ -4,7 +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
|
-
|
|
7
|
+
const TutorialOverlay = styled.div `
|
|
8
8
|
background-color: ${({ color }) => color.background.secondary};
|
|
9
9
|
// opacity: 0.8;
|
|
10
10
|
position: absolute;
|
|
@@ -15,7 +15,7 @@ export const TutorialOverlay = styled.div `
|
|
|
15
15
|
height: 100vw;
|
|
16
16
|
width: 100vw;
|
|
17
17
|
`;
|
|
18
|
-
|
|
18
|
+
const TutorialWrapper = styled.div `
|
|
19
19
|
background-color: ${({ color }) => color.background.primary};
|
|
20
20
|
color: ${({ color }) => color.text.primary};
|
|
21
21
|
display: flex;
|
|
@@ -32,7 +32,7 @@ export const TutorialWrapper = styled.div `
|
|
|
32
32
|
display: none;
|
|
33
33
|
}
|
|
34
34
|
`;
|
|
35
|
-
|
|
35
|
+
const HelpHeader = styled.div `
|
|
36
36
|
display: flex;
|
|
37
37
|
flex-direction: column;
|
|
38
38
|
align-items: flex-start;
|
|
@@ -41,17 +41,17 @@ export const HelpHeader = styled.div `
|
|
|
41
41
|
padding: 24px;
|
|
42
42
|
box-shadow: ${({ color }) => `${color.text.secondary} 0px 0px 4px 0px`};
|
|
43
43
|
`;
|
|
44
|
-
|
|
44
|
+
const TitleAndExit = styled.div `
|
|
45
45
|
display: flex;
|
|
46
46
|
justify-content: space-between;
|
|
47
47
|
align-items: center;
|
|
48
48
|
align-self: stretch;
|
|
49
49
|
`;
|
|
50
|
-
|
|
50
|
+
const ContentContainer = styled.div `
|
|
51
51
|
padding: 0px 24px;
|
|
52
52
|
width: 90%;
|
|
53
53
|
`;
|
|
54
|
-
|
|
54
|
+
const ContactContainer = styled.div `
|
|
55
55
|
background-color: ${({ color }) => color.background.tertiary};
|
|
56
56
|
color: ${({ color }) => color.text.primary};
|
|
57
57
|
display: flex;
|
|
@@ -61,7 +61,7 @@ export const ContactContainer = styled.div `
|
|
|
61
61
|
gap: 16px;
|
|
62
62
|
align-self: stretch;
|
|
63
63
|
`;
|
|
64
|
-
export const
|
|
64
|
+
export const Tutorial = (props) => {
|
|
65
65
|
const { children, color, page, setOpen, ...htmlProps } = props;
|
|
66
66
|
return (React.createElement(TutorialOverlay, { color: color, onClick: () => setOpen(false) },
|
|
67
67
|
React.createElement(TutorialWrapper, { color: color, ...htmlProps },
|
|
@@ -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,CAAA;AACvD,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAA;AACnD,OAAO,EA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AAG;gBAC9H,IAAI,CAAC,YAAY,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,oBAAC,SAAS,IAAC,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,GAAI,CAAC;gBAC7E,oBAAC,UAAU,IAAC,SAAS,EAAE,KAAK,CAAC,IAAI,CAAC,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,OAAO,EAAE,WAAW,EAAE,KAAK,EAAE,EAAC,aAAa,EAAE,KAAK,EAAC,GAAG;gBAC1H,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,oBAAC,SAAS,IAAC,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,GAAI,CAAC,CAC7D;YACnB,oBAAC,gBAAgB,IAAC,KAAK,EAAE,KAAK;gBAC5B,oBAAC,UAAU,IAAC,SAAS,EAAE,KAAK,CAAC,IAAI,CAAC,OAAO,EAAE,OAAO,EAAE,+EAA+E,EAAE,OAAO,EAAE,OAAO,GAAI;gBACzJ,oBAAC,UAAU,IAAC,SAAS,EAAE,KAAK,CAAC,IAAI,CAAC,OAAO,EAAE,OAAO,EAAE,sBAAsB,EAAE,OAAO,EAAE,WAAW,GAAI;gBAEpG,oBAAC,MAAM,IAAC,YAAY,EAAE,KAAK,EAAE,OAAO,EAAC,QAAQ,iBAAoB,CAEhD,CACH,CACF,CACnB,CAAC;AACJ,CAAC,CAAC;AAEF,kEAAkE;AAClE,iDAAiD;AACjD,qHAAqH"}
|
package/dist/index.d.ts
CHANGED
|
@@ -20,5 +20,6 @@ export * from "./Molecules/NavMenu/NavMenu";
|
|
|
20
20
|
export * from "./Organisms/TabManager/TabManager";
|
|
21
21
|
export * from "./Organisms/Table/Table";
|
|
22
22
|
export * from "./Organisms/EditUserPerms/EditUserPerms";
|
|
23
|
+
export * from "./Organisms/Tutorial/Tutorial";
|
|
23
24
|
export * from "./Theme/ThemeProvider";
|
|
24
25
|
export * from "./Theme/types";
|
package/dist/index.js
CHANGED
|
@@ -24,6 +24,7 @@ export * from "./Molecules/NavMenu/NavMenu";
|
|
|
24
24
|
export * from "./Organisms/TabManager/TabManager";
|
|
25
25
|
export * from "./Organisms/Table/Table";
|
|
26
26
|
export * from "./Organisms/EditUserPerms/EditUserPerms";
|
|
27
|
+
export * from "./Organisms/Tutorial/Tutorial";
|
|
27
28
|
// Themes
|
|
28
29
|
export * from "./Theme/ThemeProvider";
|
|
29
30
|
export * from "./Theme/types";
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../lib/index.ts"],"names":[],"mappings":"AAAA,QAAQ;AACR,cAAc,6CAA6C,CAAC;AAC5D,cAAc,iCAAiC,CAAC;AAChD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,+BAA+B,CAAC;AAC9C,cAAc,qBAAqB,CAAC;AACpC,qDAAqD;AACrD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,wBAAwB,CAAC;AACvC,cAAc,mCAAmC,CAAC;AAClD,cAAc,qCAAqC,CAAC;AACpD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,iCAAiC,CAAC;AAChD,cAAc,iBAAiB,CAAC;AAChC,YAAY;AACZ,cAAc,uBAAuB,CAAC;AACtC,cAAc,iCAAiC,CAAC;AAChD,cAAc,+BAA+B,CAAC;AAC9C,YAAY;AACZ,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,mCAAmC,CAAC;AAClD,cAAc,yBAAyB,CAAC;AACxC,cAAc,yCAAyC,CAAA;AACvD,SAAS;AACT,cAAc,uBAAuB,CAAC;AACtC,cAAc,eAAe,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../lib/index.ts"],"names":[],"mappings":"AAAA,QAAQ;AACR,cAAc,6CAA6C,CAAC;AAC5D,cAAc,iCAAiC,CAAC;AAChD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,+BAA+B,CAAC;AAC9C,cAAc,qBAAqB,CAAC;AACpC,qDAAqD;AACrD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,wBAAwB,CAAC;AACvC,cAAc,mCAAmC,CAAC;AAClD,cAAc,qCAAqC,CAAC;AACpD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,iCAAiC,CAAC;AAChD,cAAc,iBAAiB,CAAC;AAChC,YAAY;AACZ,cAAc,uBAAuB,CAAC;AACtC,cAAc,iCAAiC,CAAC;AAChD,cAAc,+BAA+B,CAAC;AAC9C,YAAY;AACZ,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,mCAAmC,CAAC;AAClD,cAAc,yBAAyB,CAAC;AACxC,cAAc,yCAAyC,CAAA;AACvD,cAAc,+BAA+B,CAAA;AAC7C,SAAS;AACT,cAAc,uBAAuB,CAAC;AACtC,cAAc,eAAe,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@factorearth/component-library",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.1-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": "965ec41a18bec06f6e8f037dc0287575228821e0",
|
|
50
50
|
"dependencies": {
|
|
51
51
|
"@emotion/react": "^11.13.0",
|
|
52
52
|
"@emotion/styled": "^11.13.0",
|