@factorearth/component-library 3.9.0 → 4.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.
- 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/Tutorial/Tutorial.d.ts +62 -0
- package/dist/Organisms/Tutorial/Tutorial.js +86 -0
- package/dist/Organisms/Tutorial/Tutorial.js.map +1 -0
- package/dist/Theme/tokens.json +96 -98
- 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":[],"mappings":"AAAA,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE5D,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAA;AAErD,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E,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"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import React from "react";
|
|
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
|
+
type Page = {
|
|
40
|
+
title: string;
|
|
41
|
+
"page-summary": string;
|
|
42
|
+
links: string[];
|
|
43
|
+
"user-flows": UserFlow[];
|
|
44
|
+
features: UserFlow[];
|
|
45
|
+
};
|
|
46
|
+
type UserFlow = {
|
|
47
|
+
title: string;
|
|
48
|
+
content: string[];
|
|
49
|
+
imgs: ImageSet;
|
|
50
|
+
};
|
|
51
|
+
type ImageSet = {
|
|
52
|
+
light: string;
|
|
53
|
+
dark: string;
|
|
54
|
+
};
|
|
55
|
+
interface TutorialModalProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement> {
|
|
56
|
+
children: React.ReactNode;
|
|
57
|
+
color: Colors & string;
|
|
58
|
+
setOpen: (open: boolean) => void;
|
|
59
|
+
page: Page;
|
|
60
|
+
}
|
|
61
|
+
export declare const TutorialModal: (props: TutorialModalProps) => React.JSX.Element;
|
|
62
|
+
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
|
+
export 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
|
+
export 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
|
+
export 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
|
+
export const TitleAndExit = styled.div `
|
|
45
|
+
display: flex;
|
|
46
|
+
justify-content: space-between;
|
|
47
|
+
align-items: center;
|
|
48
|
+
align-self: stretch;
|
|
49
|
+
`;
|
|
50
|
+
export const ContentContainer = styled.div `
|
|
51
|
+
padding: 0px 24px;
|
|
52
|
+
width: 90%;
|
|
53
|
+
`;
|
|
54
|
+
export 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 TutorialModal = (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 icons are added
|
|
86
|
+
//# sourceMappingURL=Tutorial.js.map
|
|
@@ -0,0 +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,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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/Theme/tokens.json
CHANGED
|
@@ -164,16 +164,102 @@
|
|
|
164
164
|
"value": "20",
|
|
165
165
|
"type": "borderRadius"
|
|
166
166
|
},
|
|
167
|
-
"
|
|
168
|
-
"
|
|
169
|
-
"
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
167
|
+
"Typography": {
|
|
168
|
+
"Jumbo": {
|
|
169
|
+
"value": {
|
|
170
|
+
"role": "heading",
|
|
171
|
+
"ariaLevel": "1",
|
|
172
|
+
"fontWeight": "700",
|
|
173
|
+
"fontSize": "61px",
|
|
174
|
+
"letterSpacing": "0",
|
|
175
|
+
"lineHeight": "133px"
|
|
176
|
+
},
|
|
177
|
+
"type": "typography"
|
|
178
|
+
},
|
|
179
|
+
"Heading 1": {
|
|
180
|
+
"value": {
|
|
181
|
+
"role": "heading",
|
|
182
|
+
"ariaLevel": "1",
|
|
183
|
+
"fontSize": "47px",
|
|
184
|
+
"lineHeight": "133%",
|
|
185
|
+
"letterSpacing": "0",
|
|
186
|
+
"fontWeight": "700"
|
|
187
|
+
},
|
|
188
|
+
"type": "typography"
|
|
189
|
+
},
|
|
190
|
+
"Heading 2": {
|
|
191
|
+
"value": {
|
|
192
|
+
"role": "heading",
|
|
193
|
+
"ariaLevel": "2",
|
|
194
|
+
"fontSize": "36px",
|
|
195
|
+
"lineHeight": "133%",
|
|
196
|
+
"letterSpacing": "0",
|
|
197
|
+
"fontWeight": "700"
|
|
198
|
+
},
|
|
199
|
+
"type": "typography"
|
|
200
|
+
},
|
|
201
|
+
"Heading 3": {
|
|
202
|
+
"value": {
|
|
203
|
+
"role": "heading",
|
|
204
|
+
"ariaLevel": "3",
|
|
205
|
+
"fontWeight": "700",
|
|
206
|
+
"fontSize": "27px",
|
|
207
|
+
"lineHeight": "133%",
|
|
208
|
+
"letterSpacing": "0"
|
|
209
|
+
},
|
|
210
|
+
"type": "typography"
|
|
211
|
+
},
|
|
212
|
+
"Heading 4": {
|
|
213
|
+
"value": {
|
|
214
|
+
"role": "heading",
|
|
215
|
+
"ariaLevel": "4",
|
|
216
|
+
"fontSize": "21px",
|
|
217
|
+
"lineHeight": "133%",
|
|
218
|
+
"letterSpacing": "0",
|
|
219
|
+
"fontWeight": "700"
|
|
220
|
+
},
|
|
221
|
+
"type": "typography"
|
|
222
|
+
},
|
|
223
|
+
"Paragraphy Body": {
|
|
224
|
+
"value": {
|
|
225
|
+
"role": "paragraph",
|
|
226
|
+
"fontSize": "16px",
|
|
227
|
+
"lineHeight": "133%",
|
|
228
|
+
"letterSpacing": "0",
|
|
229
|
+
"fontWeight": "400"
|
|
230
|
+
},
|
|
231
|
+
"type": "typography"
|
|
232
|
+
},
|
|
233
|
+
"Small": {
|
|
234
|
+
"value": {
|
|
235
|
+
"role": "paragraph",
|
|
236
|
+
"fontSize": "14px",
|
|
237
|
+
"lineHeight": "133%",
|
|
238
|
+
"letterSpacing": "0",
|
|
239
|
+
"fontWeight": "400"
|
|
240
|
+
},
|
|
241
|
+
"type": "typography"
|
|
242
|
+
},
|
|
243
|
+
"Label": {
|
|
244
|
+
"value": {
|
|
245
|
+
"role": "paragraph",
|
|
246
|
+
"fontSize": "12px",
|
|
247
|
+
"lineHeight": "133%",
|
|
248
|
+
"letterSpacing": "0",
|
|
249
|
+
"fontWeight": "700"
|
|
250
|
+
},
|
|
251
|
+
"type": "typography"
|
|
252
|
+
},
|
|
253
|
+
"Legal": {
|
|
254
|
+
"value": {
|
|
255
|
+
"role": "paragraph",
|
|
256
|
+
"fontSize": "9px",
|
|
257
|
+
"lineHeight": "133%",
|
|
258
|
+
"fontWeight": "400",
|
|
259
|
+
"letterSpacing": "0"
|
|
260
|
+
},
|
|
261
|
+
"type": "typography"
|
|
262
|
+
}
|
|
177
263
|
},
|
|
178
264
|
"System ": {
|
|
179
265
|
"SF Compact": {
|
|
@@ -184,94 +270,6 @@
|
|
|
184
270
|
"Thin": {
|
|
185
271
|
"value": ".5",
|
|
186
272
|
"type": "borderWidth"
|
|
187
|
-
},
|
|
188
|
-
"Heading 1": {
|
|
189
|
-
"value": {
|
|
190
|
-
"fontFamily": "{System .SF Compact}",
|
|
191
|
-
"fontWeight": "Bold",
|
|
192
|
-
"fontSize": "47",
|
|
193
|
-
"lineHeight": "{133}",
|
|
194
|
-
"letterSpacing": "0",
|
|
195
|
-
"paragraphSpacing": "0"
|
|
196
|
-
},
|
|
197
|
-
"type": "typography"
|
|
198
|
-
},
|
|
199
|
-
"Heading 2": {
|
|
200
|
-
"value": {
|
|
201
|
-
"fontFamily": "{System .SF Compact}",
|
|
202
|
-
"fontWeight": "Bold",
|
|
203
|
-
"fontSize": "36",
|
|
204
|
-
"lineHeight": "{133}",
|
|
205
|
-
"letterSpacing": "0",
|
|
206
|
-
"paragraphSpacing": "0"
|
|
207
|
-
},
|
|
208
|
-
"type": "typography"
|
|
209
|
-
},
|
|
210
|
-
"Heading 3": {
|
|
211
|
-
"value": {
|
|
212
|
-
"fontFamily": "{System .SF Compact}",
|
|
213
|
-
"fontWeight": "Bold",
|
|
214
|
-
"fontSize": "27",
|
|
215
|
-
"lineHeight": "{133}",
|
|
216
|
-
"letterSpacing": "0",
|
|
217
|
-
"paragraphSpacing": "0"
|
|
218
|
-
},
|
|
219
|
-
"type": "typography"
|
|
220
|
-
},
|
|
221
|
-
"Heading 4": {
|
|
222
|
-
"value": {
|
|
223
|
-
"fontFamily": "{System .SF Compact}",
|
|
224
|
-
"fontWeight": "Bold",
|
|
225
|
-
"fontSize": "21",
|
|
226
|
-
"lineHeight": "{133}",
|
|
227
|
-
"letterSpacing": "0",
|
|
228
|
-
"paragraphSpacing": "0"
|
|
229
|
-
},
|
|
230
|
-
"type": "typography"
|
|
231
|
-
},
|
|
232
|
-
"Paragraphy Body": {
|
|
233
|
-
"value": {
|
|
234
|
-
"fontFamily": "{System .SF Compact}",
|
|
235
|
-
"fontWeight": "Regular",
|
|
236
|
-
"fontSize": "16",
|
|
237
|
-
"lineHeight": "{133}",
|
|
238
|
-
"letterSpacing": "0",
|
|
239
|
-
"paragraphSpacing": "0"
|
|
240
|
-
},
|
|
241
|
-
"type": "typography"
|
|
242
|
-
},
|
|
243
|
-
"Small": {
|
|
244
|
-
"value": {
|
|
245
|
-
"fontFamily": "{System .SF Compact}",
|
|
246
|
-
"fontWeight": "Regular",
|
|
247
|
-
"fontSize": "14",
|
|
248
|
-
"lineHeight": "{133}",
|
|
249
|
-
"letterSpacing": "0",
|
|
250
|
-
"paragraphSpacing": "0"
|
|
251
|
-
},
|
|
252
|
-
"type": "typography"
|
|
253
|
-
},
|
|
254
|
-
"Label": {
|
|
255
|
-
"value": {
|
|
256
|
-
"fontFamily": "{System .SF Compact}",
|
|
257
|
-
"fontWeight": "Bold",
|
|
258
|
-
"fontSize": "12",
|
|
259
|
-
"lineHeight": "{133}",
|
|
260
|
-
"letterSpacing": "0",
|
|
261
|
-
"paragraphSpacing": "0"
|
|
262
|
-
},
|
|
263
|
-
"type": "typography"
|
|
264
|
-
},
|
|
265
|
-
"Legal": {
|
|
266
|
-
"value": {
|
|
267
|
-
"fontFamily": "{System .SF Compact}",
|
|
268
|
-
"fontWeight": "Regular",
|
|
269
|
-
"fontSize": "9",
|
|
270
|
-
"lineHeight": "{133}",
|
|
271
|
-
"paragraphSpacing": "0",
|
|
272
|
-
"paragraphIndent": "0"
|
|
273
|
-
},
|
|
274
|
-
"type": "typography"
|
|
275
273
|
}
|
|
276
274
|
},
|
|
277
275
|
"$themes": [],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@factorearth/component-library",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.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": "
|
|
49
|
+
"gitHead": "93fb81b17bee36e276d0a3d74493a6488bab1247",
|
|
50
50
|
"dependencies": {
|
|
51
51
|
"@emotion/react": "^11.13.0",
|
|
52
52
|
"@emotion/styled": "^11.13.0",
|