@factorearth/component-library 3.10.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.
- package/dist/Atoms/Accordion/Accordion.d.ts +17 -0
- package/dist/Atoms/Accordion/Accordion.js +40 -0
- package/dist/Atoms/Accordion/Accordion.js.map +1 -0
- package/dist/Atoms/Typography/Typography.d.ts +9 -0
- package/dist/Atoms/Typography/Typography.js +16 -0
- package/dist/Atoms/Typography/Typography.js.map +1 -0
- package/dist/Organisms/Modal/Modal.d.ts +1 -7
- package/dist/Organisms/Modal/Modal.js +14 -34
- package/dist/Organisms/Modal/Modal.js.map +1 -1
- package/dist/Organisms/Tutorial/Tutorial.d.ts +26 -0
- package/dist/Organisms/Tutorial/Tutorial.js +86 -0
- package/dist/Organisms/Tutorial/Tutorial.js.map +1 -0
- package/dist/Theme/ThemeProvider.js +0 -28
- package/dist/Theme/ThemeProvider.js.map +1 -1
- package/dist/Theme/types.d.ts +0 -14
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Colors } from "../../Theme/types";
|
|
3
|
+
interface Props {
|
|
4
|
+
color: Colors & string;
|
|
5
|
+
content: Content;
|
|
6
|
+
}
|
|
7
|
+
type Content = {
|
|
8
|
+
title: string;
|
|
9
|
+
content: string[];
|
|
10
|
+
imgs?: {
|
|
11
|
+
light: string;
|
|
12
|
+
dark: string;
|
|
13
|
+
};
|
|
14
|
+
icon?: string;
|
|
15
|
+
};
|
|
16
|
+
declare function Accordion(props: Props): React.JSX.Element;
|
|
17
|
+
export default Accordion;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import styled from "@emotion/styled";
|
|
2
|
+
import React, { useState } from "react";
|
|
3
|
+
import { FiChevronDown, FiChevronUp } from "react-icons/fi";
|
|
4
|
+
import { Typography } from "../Typography/Typography";
|
|
5
|
+
const Container = styled.div `
|
|
6
|
+
background: ${({ expanded, color }) => expanded ? color.background.tertiary : color.background.primary};
|
|
7
|
+
padding: 8px;
|
|
8
|
+
border-top: ${({ color }) => `${color.background.secondary} 1px solid`};
|
|
9
|
+
`;
|
|
10
|
+
const Header = styled.div `
|
|
11
|
+
display: flex;
|
|
12
|
+
padding: 8px;
|
|
13
|
+
flex-direction: row;
|
|
14
|
+
align-items: center;
|
|
15
|
+
gap: 8px;
|
|
16
|
+
align-self: stretch;
|
|
17
|
+
`;
|
|
18
|
+
const ContentContainer = styled.div `
|
|
19
|
+
align-self: stretch;
|
|
20
|
+
padding-bottom: 16px;
|
|
21
|
+
`;
|
|
22
|
+
const Step = styled.div `
|
|
23
|
+
padding: 4px 16px;
|
|
24
|
+
align-self: stretch;
|
|
25
|
+
`;
|
|
26
|
+
function Accordion(props) {
|
|
27
|
+
const { color, content } = props;
|
|
28
|
+
const [dropdownOpen, setDropdownOpen] = useState(false);
|
|
29
|
+
function toggleDropdown() {
|
|
30
|
+
setDropdownOpen(!dropdownOpen);
|
|
31
|
+
}
|
|
32
|
+
return (React.createElement(Container, { color: color, expanded: dropdownOpen },
|
|
33
|
+
React.createElement(Header, { onClick: toggleDropdown },
|
|
34
|
+
dropdownOpen ? React.createElement(FiChevronUp, null) : React.createElement(FiChevronDown, null),
|
|
35
|
+
React.createElement(Typography, { textColor: color.text.primary, content: content.title, variant: "Paragraphy Body" })),
|
|
36
|
+
dropdownOpen && (React.createElement(ContentContainer, { color: color }, content.content.map(content => React.createElement(Step, { color: color },
|
|
37
|
+
React.createElement(Typography, { textColor: color.text.primary, content: content, variant: "Paragraphy Body" })))))));
|
|
38
|
+
}
|
|
39
|
+
export default Accordion;
|
|
40
|
+
//# sourceMappingURL=Accordion.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Accordion.js","sourceRoot":"","sources":["../../../lib/Atoms/Accordion/Accordion.tsx"],"names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AAE,KAAK,CAAC,IAAI,CAAC,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC,KAAK,EAAE,OAAO,EAAE,iBAAiB,GAAI,CACzF;QACR,YAAY,IAAI,CAChB,oBAAC,gBAAgB,IAAC,KAAK,EAAE,KAAK,IAC7B,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE,CAAC,oBAAC,IAAI,IAAC,KAAK,EAAE,KAAK;YACjD,oBAAC,UAAU,IAAC,SAAS,EAAE,KAAK,CAAC,IAAI,CAAC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,iBAAiB,GAAI,CACrF,CAAC,CAOW,CACnB,CACU,CACZ,CAAC;AACH,CAAC;AAED,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
type TypographyVariants = "Jumbo" | "Heading 1" | "Heading 2" | "Heading 3" | "Heading 4" | "Paragraphy Body" | "Small" | "Legal" | "Label";
|
|
3
|
+
interface TypographyProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement> {
|
|
4
|
+
textColor: string;
|
|
5
|
+
variant: TypographyVariants;
|
|
6
|
+
content: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const Typography: (props: TypographyProps) => React.JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import styled from "@emotion/styled";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import tokens from '../../Theme/tokens.json';
|
|
4
|
+
// const text = tokens.global.Typography;
|
|
5
|
+
const StyledText = styled.div `
|
|
6
|
+
color: ${({ textColor }) => textColor};
|
|
7
|
+
font-size: ${({ text }) => text.fontSize};
|
|
8
|
+
line-height: ${({ text }) => text.lineHeight};
|
|
9
|
+
font-weight: ${({ text }) => text.fontWeight};
|
|
10
|
+
`;
|
|
11
|
+
export const Typography = (props) => {
|
|
12
|
+
const { textColor, variant, content, ...htmlProps } = props;
|
|
13
|
+
const text = tokens.global.Typography[variant].value;
|
|
14
|
+
return (React.createElement(StyledText, { ...htmlProps, textColor: textColor, text: text, role: text.role, "aria-level": text?.ariaLevel ? parseInt(text.ariaLevel, 10) : undefined }, content));
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=Typography.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Typography.js","sourceRoot":"","sources":["../../../lib/Atoms/Typography/Typography.tsx"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,MAAM,MAAM,yBAAyB,CAAA;AAmB5C,yCAAyC;AAEzC,MAAM,UAAU,GAAG,MAAM,CAAC,GAAG,CAA+C;UAClE,CAAC,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC,SAAS;cACxB,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,IAAI,CAAC,QAAQ;iBACxB,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,IAAI,CAAC,UAAU;iBAC7B,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,IAAI,CAAC,UAAU;CAC7C,CAAC;AAEF,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,KAAsB,EAAE,EAAE;IACpD,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,SAAS,EAAE,GAAG,KAAK,CAAC;IAE5D,MAAM,IAAI,GAAG,MAAM,CAAC,MAAM,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,KAAyB,CAAC;IAEzE,OAAO,CACN,oBAAC,UAAU,OAAK,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,gBAAc,IAAI,EAAE,SAAS,CAAC,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,SAAS,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,SAAS,IAClJ,OAAO,CACI,CACb,CAAC;AACH,CAAC,CAAC"}
|
|
@@ -1,18 +1,15 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import * as Dialog from "@radix-ui/react-dialog";
|
|
3
3
|
import { Colors } from "../../Theme/types";
|
|
4
|
-
export type ToastVariant = "primary" | "success" | "destructive" | "warning" | "info";
|
|
5
4
|
export declare const StyledDialog: import("@emotion/styled").StyledComponent<Dialog.DialogOverlayProps & React.RefAttributes<HTMLDivElement> & {
|
|
6
5
|
theme?: import("@emotion/react").Theme;
|
|
7
6
|
} & {
|
|
8
7
|
colorPalette: Colors;
|
|
9
|
-
toast?: ToastVariant;
|
|
10
8
|
}, {}, {}>;
|
|
11
9
|
export declare const StyledContent: import("@emotion/styled").StyledComponent<Dialog.DialogContentProps & React.RefAttributes<HTMLDivElement> & {
|
|
12
10
|
theme?: import("@emotion/react").Theme;
|
|
13
11
|
} & {
|
|
14
12
|
colorPalette: Colors;
|
|
15
|
-
toast?: ToastVariant;
|
|
16
13
|
}, {}, {}>;
|
|
17
14
|
export declare const DialogContainer: import("@emotion/styled").StyledComponent<{
|
|
18
15
|
theme?: import("@emotion/react").Theme;
|
|
@@ -47,18 +44,15 @@ interface ModalProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLDi
|
|
|
47
44
|
children: React.ReactNode;
|
|
48
45
|
colorPalette: Colors;
|
|
49
46
|
setOpen: (open: boolean) => void;
|
|
50
|
-
toast?: ToastVariant;
|
|
51
|
-
timeout?: number;
|
|
52
47
|
}
|
|
53
48
|
export declare const Modal: (props: ModalProps) => React.JSX.Element;
|
|
54
|
-
interface ConfirmationModalProps
|
|
49
|
+
interface ConfirmationModalProps {
|
|
55
50
|
colorPalette: Colors;
|
|
56
51
|
setOpen: React.Dispatch<React.SetStateAction<boolean>>;
|
|
57
52
|
confirmTitle: string;
|
|
58
53
|
confirmText: string;
|
|
59
54
|
handleSubmit: any;
|
|
60
55
|
open: boolean;
|
|
61
|
-
toast?: ToastVariant;
|
|
62
56
|
}
|
|
63
57
|
export declare const ConfirmationModal: (props: ConfirmationModalProps) => React.JSX.Element;
|
|
64
58
|
export {};
|
|
@@ -3,9 +3,8 @@ import * as Dialog from "@radix-ui/react-dialog";
|
|
|
3
3
|
import styled from "@emotion/styled";
|
|
4
4
|
import { Button } from "../../Atoms/Buttons/Button";
|
|
5
5
|
import { FiX } from "react-icons/fi";
|
|
6
|
-
import { useEffect } from "react";
|
|
7
6
|
export const StyledDialog = styled(Dialog.Overlay) `
|
|
8
|
-
${({ colorPalette
|
|
7
|
+
background-color: ${({ colorPalette }) => colorPalette.background.secondary};
|
|
9
8
|
opacity: 0.8;
|
|
10
9
|
position: absolute;
|
|
11
10
|
inset: 0;
|
|
@@ -13,13 +12,12 @@ export const StyledDialog = styled(Dialog.Overlay) `
|
|
|
13
12
|
z-index: 1000;
|
|
14
13
|
`;
|
|
15
14
|
export const StyledContent = styled(Dialog.Content) `
|
|
16
|
-
${({ colorPalette
|
|
17
|
-
? `background-color: ${colorPalette.background.primary}; color: ${colorPalette.text.primary};`
|
|
18
|
-
: `background-color: ${colorPalette.toastBackground[toast]}; color: ${colorPalette.toastText[toast]};`};
|
|
15
|
+
background-color: ${({ colorPalette }) => colorPalette.background.primary};
|
|
19
16
|
box-shadow: ${({ colorPalette }) => `${colorPalette.background.secondary} 0px 5px 15px`};
|
|
20
|
-
${({
|
|
21
|
-
|
|
22
|
-
|
|
17
|
+
color: ${({ colorPalette }) => colorPalette.text.primary};
|
|
18
|
+
border-radius: 4px;
|
|
19
|
+
position: fixed;
|
|
20
|
+
top: 50%;
|
|
23
21
|
left: 50%;
|
|
24
22
|
transform: translate(-50%, -50%);
|
|
25
23
|
max-height: 85vh;
|
|
@@ -28,7 +26,6 @@ export const StyledContent = styled(Dialog.Content) `
|
|
|
28
26
|
display: flex;
|
|
29
27
|
flex-direction: column;
|
|
30
28
|
min-width: 300px;
|
|
31
|
-
${({ toast }) => toast && `width: 100%;`};
|
|
32
29
|
gap: 16px;
|
|
33
30
|
:focus {
|
|
34
31
|
outline: none;
|
|
@@ -45,7 +42,6 @@ export const DialogContainer = styled.div `
|
|
|
45
42
|
export const ModalTitleContainer = styled.div `
|
|
46
43
|
display: flex;
|
|
47
44
|
justify-content: space-between;
|
|
48
|
-
align-items: center;
|
|
49
45
|
width: 100%;
|
|
50
46
|
`;
|
|
51
47
|
export const ModalTitle = styled.div `
|
|
@@ -85,39 +81,23 @@ export const ModalInputBox = styled.div `
|
|
|
85
81
|
gap: 8px;
|
|
86
82
|
`;
|
|
87
83
|
export const Modal = (props) => {
|
|
88
|
-
const { open, children, colorPalette, setOpen,
|
|
89
|
-
useEffect(() => {
|
|
90
|
-
let timer;
|
|
91
|
-
if (open && toast) {
|
|
92
|
-
timer = setTimeout(() => {
|
|
93
|
-
setOpen(false);
|
|
94
|
-
}, timeout || 5000);
|
|
95
|
-
}
|
|
96
|
-
return () => {
|
|
97
|
-
if (timer) {
|
|
98
|
-
clearTimeout(timer);
|
|
99
|
-
}
|
|
100
|
-
};
|
|
101
|
-
}, [open]);
|
|
84
|
+
const { open, children, colorPalette, setOpen, ...htmlProps } = props;
|
|
102
85
|
return (React.createElement(Dialog.Root, { open: open, modal: true },
|
|
103
86
|
React.createElement(Dialog.Portal, null,
|
|
104
87
|
React.createElement(Dialog.Title, null),
|
|
105
|
-
React.createElement(StyledDialog, { colorPalette: colorPalette
|
|
106
|
-
React.createElement(StyledContent, { ...htmlProps, colorPalette: colorPalette, onInteractOutside: () =>
|
|
107
|
-
if (toast)
|
|
108
|
-
setOpen(true);
|
|
109
|
-
}, onPointerDownOutside: () => setOpen(false), toast: toast }, children))));
|
|
88
|
+
React.createElement(StyledDialog, { colorPalette: colorPalette }),
|
|
89
|
+
React.createElement(StyledContent, { ...htmlProps, colorPalette: colorPalette, onInteractOutside: () => setOpen(false), onPointerDownOutside: () => setOpen(false) }, children))));
|
|
110
90
|
};
|
|
111
91
|
export const ConfirmationModal = (props) => {
|
|
112
|
-
const { colorPalette, setOpen, confirmTitle, confirmText, handleSubmit, open,
|
|
113
|
-
return (React.createElement(Modal, { colorPalette: colorPalette, open: open, setOpen: setOpen
|
|
114
|
-
React.createElement(DialogContainer,
|
|
92
|
+
const { colorPalette, setOpen, confirmTitle, confirmText, handleSubmit, open, } = props;
|
|
93
|
+
return (React.createElement(Modal, { colorPalette: colorPalette, open: open, setOpen: setOpen },
|
|
94
|
+
React.createElement(DialogContainer, null,
|
|
115
95
|
React.createElement(ModalTitleContainer, null,
|
|
116
96
|
React.createElement(ModalTitle, null, confirmTitle),
|
|
117
97
|
React.createElement(FiX, { onClick: () => setOpen(false), size: 24 })),
|
|
118
98
|
React.createElement(ModelSubHeading, null, confirmText),
|
|
119
|
-
|
|
99
|
+
React.createElement(ModalFooter, null,
|
|
120
100
|
React.createElement(Button, { colorPalette: colorPalette, variant: "filled", label: "Ok", onClick: handleSubmit }),
|
|
121
|
-
React.createElement(Button, { colorPalette: colorPalette, variant: "destructive", label: "Cancel", onClick: () => setOpen(false) })))))
|
|
101
|
+
React.createElement(Button, { colorPalette: colorPalette, variant: "destructive", label: "Cancel", onClick: () => setOpen(false) })))));
|
|
122
102
|
};
|
|
123
103
|
//# sourceMappingURL=Modal.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Modal.js","sourceRoot":"","sources":["../../../lib/Organisms/Modal/Modal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,MAAM,MAAM,wBAAwB,CAAC;AAEjD,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACpD,OAAO,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"Modal.js","sourceRoot":"","sources":["../../../lib/Organisms/Modal/Modal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,M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AAY,EAAE,YAAY,EAC1B,OAAO,EAAC,QAAQ,EAChB,KAAK,EAAC,IAAI,EACV,OAAO,EAAE,YAAY,GACpB;gBACF,oBAAC,MAAM,IACN,YAAY,EAAE,YAAY,EAC1B,OAAO,EAAC,aAAa,EACrB,KAAK,EAAC,QAAQ,EACd,OAAO,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,GAC5B,CACW,CACG,CACX,CACR,CAAC;AACH,CAAC,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Colors } from "../../Theme/types";
|
|
3
|
+
type Page = {
|
|
4
|
+
title: string;
|
|
5
|
+
"page-summary": string;
|
|
6
|
+
links: string[];
|
|
7
|
+
"user-flows": UserFlow[];
|
|
8
|
+
features: UserFlow[];
|
|
9
|
+
};
|
|
10
|
+
type UserFlow = {
|
|
11
|
+
title: string;
|
|
12
|
+
content: string[];
|
|
13
|
+
imgs: ImageSet;
|
|
14
|
+
};
|
|
15
|
+
type ImageSet = {
|
|
16
|
+
light: string;
|
|
17
|
+
dark: string;
|
|
18
|
+
};
|
|
19
|
+
interface TutorialModalProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement> {
|
|
20
|
+
children: React.ReactNode;
|
|
21
|
+
color: Colors & string;
|
|
22
|
+
setOpen: (open: boolean) => void;
|
|
23
|
+
page: Page;
|
|
24
|
+
}
|
|
25
|
+
export declare const Tutorial: (props: TutorialModalProps) => React.JSX.Element;
|
|
26
|
+
export {};
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import styled from "@emotion/styled";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { FiX } from "react-icons/fi";
|
|
4
|
+
import Accordion from "../../Atoms/Accordion/Accordion";
|
|
5
|
+
import { Button } from "../../Atoms/Buttons/Button";
|
|
6
|
+
import { Typography } from "../../Atoms/Typography/Typography";
|
|
7
|
+
const TutorialOverlay = styled.div `
|
|
8
|
+
background-color: ${({ color }) => color.background.secondary};
|
|
9
|
+
// opacity: 0.8;
|
|
10
|
+
position: absolute;
|
|
11
|
+
z-index: 1000;
|
|
12
|
+
display: flex;
|
|
13
|
+
justify-content: center;
|
|
14
|
+
align-items: center;
|
|
15
|
+
height: 100vw;
|
|
16
|
+
width: 100vw;
|
|
17
|
+
`;
|
|
18
|
+
const TutorialWrapper = styled.div `
|
|
19
|
+
background-color: ${({ color }) => color.background.primary};
|
|
20
|
+
color: ${({ color }) => color.text.primary};
|
|
21
|
+
display: flex;
|
|
22
|
+
flex-direction: column;
|
|
23
|
+
align-items: flex-start;
|
|
24
|
+
gap: 16px;
|
|
25
|
+
align-self: stretch;
|
|
26
|
+
height: 500px;
|
|
27
|
+
width: 500px;
|
|
28
|
+
overflow: scroll;
|
|
29
|
+
border-radius: 4px;
|
|
30
|
+
box-shadow: ${({ color }) => `${color.background.secondary} 0px 5px 15px`};
|
|
31
|
+
&::-webkit-scrollbar {
|
|
32
|
+
display: none;
|
|
33
|
+
}
|
|
34
|
+
`;
|
|
35
|
+
const HelpHeader = styled.div `
|
|
36
|
+
display: flex;
|
|
37
|
+
flex-direction: column;
|
|
38
|
+
align-items: flex-start;
|
|
39
|
+
gap: 16px;
|
|
40
|
+
align-self: stretch;
|
|
41
|
+
padding: 24px;
|
|
42
|
+
box-shadow: ${({ color }) => `${color.text.secondary} 0px 0px 4px 0px`};
|
|
43
|
+
`;
|
|
44
|
+
const TitleAndExit = styled.div `
|
|
45
|
+
display: flex;
|
|
46
|
+
justify-content: space-between;
|
|
47
|
+
align-items: center;
|
|
48
|
+
align-self: stretch;
|
|
49
|
+
`;
|
|
50
|
+
const ContentContainer = styled.div `
|
|
51
|
+
padding: 0px 24px;
|
|
52
|
+
width: 90%;
|
|
53
|
+
`;
|
|
54
|
+
const ContactContainer = styled.div `
|
|
55
|
+
background-color: ${({ color }) => color.background.tertiary};
|
|
56
|
+
color: ${({ color }) => color.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
|
+
`;
|
|
64
|
+
export const Tutorial = (props) => {
|
|
65
|
+
const { children, color, page, setOpen, ...htmlProps } = props;
|
|
66
|
+
return (React.createElement(TutorialOverlay, { color: color, onClick: () => setOpen(false) },
|
|
67
|
+
React.createElement(TutorialWrapper, { color: color, ...htmlProps },
|
|
68
|
+
React.createElement(HelpHeader, { color: color },
|
|
69
|
+
React.createElement(TitleAndExit, { color: color },
|
|
70
|
+
React.createElement(Typography, { textColor: color.text.primary, content: page.title, variant: "Heading 3" }),
|
|
71
|
+
React.createElement(FiX, { onClick: () => setOpen(false), size: 24 })),
|
|
72
|
+
React.createElement(Typography, { textColor: color.text.primary, content: page["page-summary"], variant: "Paragraphy Body" })),
|
|
73
|
+
React.createElement(ContentContainer, { color: color },
|
|
74
|
+
React.createElement(Typography, { textColor: color.text.primary, content: "Common User Flows", variant: "Heading 4", style: { paddingBottom: "8px" } }),
|
|
75
|
+
page["user-flows"].map((flow) => React.createElement(Accordion, { color: color, content: flow })),
|
|
76
|
+
React.createElement(Typography, { textColor: color.text.primary, content: "Page Features", variant: "Heading 4", style: { paddingBottom: "8px" } }),
|
|
77
|
+
page.features.map((feature) => React.createElement(Accordion, { color: color, content: feature }))),
|
|
78
|
+
React.createElement(ContactContainer, { color: color },
|
|
79
|
+
React.createElement(Typography, { textColor: color.text.primary, content: "Please ask further questions, or reach out for additional support by emailing", variant: "Label" }),
|
|
80
|
+
React.createElement(Typography, { textColor: color.text.primary, content: "devs@factorearth.com", variant: "Heading 4" }),
|
|
81
|
+
React.createElement(Button, { colorPalette: color, variant: "filled" }, "Report Bug")))));
|
|
82
|
+
};
|
|
83
|
+
//needs to take in content from the json like the drawer in record
|
|
84
|
+
//use the styles from the modal container I think
|
|
85
|
+
//drop downs are similar to the exsiting ones in Record but some styling changes need to happen, plus ic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E,KAAK,EAAC,GAAG;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"}
|
|
@@ -122,20 +122,6 @@ export const lightTheme = {
|
|
|
122
122
|
selected: white["100"],
|
|
123
123
|
notSelected: grey["800"],
|
|
124
124
|
},
|
|
125
|
-
toastText: {
|
|
126
|
-
success: green["300"],
|
|
127
|
-
destructive: red["400"],
|
|
128
|
-
info: blue["500"],
|
|
129
|
-
warning: orange["300"],
|
|
130
|
-
primary: grey["1100"],
|
|
131
|
-
},
|
|
132
|
-
toastBackground: {
|
|
133
|
-
success: green["100"],
|
|
134
|
-
destructive: red["100"],
|
|
135
|
-
info: blue["100"],
|
|
136
|
-
warning: orange["100"],
|
|
137
|
-
primary: grey["200"],
|
|
138
|
-
},
|
|
139
125
|
theme: "light",
|
|
140
126
|
};
|
|
141
127
|
export const darkTheme = {
|
|
@@ -216,20 +202,6 @@ export const darkTheme = {
|
|
|
216
202
|
selected: grey["1200"],
|
|
217
203
|
notSelected: grey["400"],
|
|
218
204
|
},
|
|
219
|
-
toastText: {
|
|
220
|
-
success: green["300"],
|
|
221
|
-
destructive: red["400"],
|
|
222
|
-
info: blue["500"],
|
|
223
|
-
warning: orange["300"],
|
|
224
|
-
primary: grey["1100"],
|
|
225
|
-
},
|
|
226
|
-
toastBackground: {
|
|
227
|
-
success: green["100"],
|
|
228
|
-
destructive: red["100"],
|
|
229
|
-
info: blue["100"],
|
|
230
|
-
warning: orange["100"],
|
|
231
|
-
primary: grey["200"],
|
|
232
|
-
},
|
|
233
205
|
theme: "dark",
|
|
234
206
|
};
|
|
235
207
|
const ThemeContext = createContext({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ThemeProvider.js","sourceRoot":"","sources":["../../lib/Theme/ThemeProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,aAAa,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnE,OAAO,MAAM,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"ThemeProvider.js","sourceRoot":"","sources":["../../lib/Theme/ThemeProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,aAAa,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnE,OAAO,MAAM,MAAM,eAAe,CAAC;AAGnC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,EAAE,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|
|
128
128
|
disabled: string;
|
|
129
129
|
};
|
|
130
|
-
toastText: {
|
|
131
|
-
success: string;
|
|
132
|
-
destructive: string;
|
|
133
|
-
info: string;
|
|
134
|
-
primary: string;
|
|
135
|
-
warning: string;
|
|
136
|
-
};
|
|
137
|
-
toastBackground: {
|
|
138
|
-
success: string;
|
|
139
|
-
destructive: string;
|
|
140
|
-
info: string;
|
|
141
|
-
primary: string;
|
|
142
|
-
warning: string;
|
|
143
|
-
};
|
|
144
130
|
theme: "light" | "dark";
|
|
145
131
|
}
|
|
146
132
|
export {};
|
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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CAAyC,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": "
|
|
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",
|