@factorearth/component-library 5.2.2 → 5.2.4-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/README.md +11 -11
- package/dist/Atoms/Accordion/Accordion.js +18 -18
- package/dist/Atoms/Badge/Badge.js +18 -18
- package/dist/Atoms/Box/Box.js +15 -15
- package/dist/Atoms/Buttons/Button.js +23 -23
- package/dist/Atoms/ContentDropdown/ContentDropdown.js +24 -24
- package/dist/Atoms/DateField/DateField.js +94 -94
- package/dist/Atoms/FieldWrapper/FieldWrapper.js +35 -35
- package/dist/Atoms/MoreHorizonButton/MoreHorizonButton.js +52 -52
- package/dist/Atoms/NoteField/NoteField.js +38 -38
- package/dist/Atoms/NumberField/NumberField.js +63 -63
- package/dist/Atoms/OptionsDropdown/OptionsDropdown.js +38 -38
- package/dist/Atoms/Pagination/Pagination.js +25 -25
- package/dist/Atoms/PhoneNumberField/PhoneNumberField.js +4 -4
- package/dist/Atoms/ProgressBar/ProgressBar.js +16 -16
- package/dist/Atoms/SortDropdown/SortDropdown.js +39 -39
- package/dist/Atoms/Spinner/Spinner.d.ts +7 -0
- package/dist/Atoms/Spinner/Spinner.js +10 -0
- package/dist/Atoms/Spinner/Spinner.js.map +1 -0
- package/dist/Atoms/Tab/Tab.js +18 -18
- package/dist/Atoms/TextField/TextField.js +24 -24
- package/dist/Atoms/Toggle/Toggle.js +11 -11
- package/dist/Atoms/Typography/Typography.js +7 -7
- package/dist/Molecules/Form/Form.js +8 -8
- package/dist/Molecules/NavMenu/NavMenu.d.ts +0 -1
- package/dist/Molecules/NavMenu/NavMenu.js +104 -117
- package/dist/Molecules/NavMenu/NavMenu.js.map +1 -1
- package/dist/Molecules/TableHeader/TableHeader.js +14 -14
- package/dist/Molecules/TableRow/TableRow.js +27 -27
- package/dist/Molecules/Thumbnail/Thumbnail.d.ts +4 -4
- package/dist/Molecules/Thumbnail/Thumbnail.js +126 -50
- package/dist/Molecules/Thumbnail/Thumbnail.js.map +1 -1
- package/dist/Organisms/Card/Card.js +33 -33
- package/dist/Organisms/EditUserPerms/EditUserPerms.js +67 -67
- package/dist/Organisms/ErrorSplash/ErrorSplash.js +44 -44
- package/dist/Organisms/Modal/Modal.js +71 -71
- package/dist/Organisms/TabManager/TabManager.js +13 -13
- package/dist/Organisms/Table/Table.js +14 -14
- package/dist/Organisms/Tutorial/Tutorial.js +51 -51
- 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
- package/dist/Organisms/Splash/Splash.d.ts +0 -10
- package/dist/Organisms/Splash/Splash.js +0 -82
- package/dist/Organisms/Splash/Splash.js.map +0 -1
|
@@ -4,87 +4,87 @@ import styled from "@emotion/styled";
|
|
|
4
4
|
import { Button } from "../../Atoms/Buttons/Button";
|
|
5
5
|
import { FiX } from "react-icons/fi";
|
|
6
6
|
import { useEffect } from "react";
|
|
7
|
-
export const StyledDialog = styled(Dialog.Overlay) `
|
|
8
|
-
${({ colorPalette, toast }) => !toast && `background-color: ${colorPalette.background.secondary}`};
|
|
9
|
-
opacity: 0.8;
|
|
10
|
-
position: absolute;
|
|
11
|
-
inset: 0;
|
|
12
|
-
animation: overlayShow 150ms cubic-bezier(0.16, 1, 0.3, 1);
|
|
13
|
-
z-index: 1000;
|
|
7
|
+
export const StyledDialog = styled(Dialog.Overlay) `
|
|
8
|
+
${({ colorPalette, toast }) => !toast && `background-color: ${colorPalette.background.secondary}`};
|
|
9
|
+
opacity: 0.8;
|
|
10
|
+
position: absolute;
|
|
11
|
+
inset: 0;
|
|
12
|
+
animation: overlayShow 150ms cubic-bezier(0.16, 1, 0.3, 1);
|
|
13
|
+
z-index: 1000;
|
|
14
14
|
`;
|
|
15
|
-
export const StyledContent = styled(Dialog.Content) `
|
|
15
|
+
export const StyledContent = styled(Dialog.Content) `
|
|
16
16
|
${({ colorPalette, toast }) => !toast
|
|
17
17
|
? `background-color: ${colorPalette.background.primary}; color: ${colorPalette.text.primary};`
|
|
18
|
-
: `background-color: ${colorPalette.toastBackground[toast]}; color: ${colorPalette.toastText[toast]};`};
|
|
19
|
-
box-shadow: ${({ colorPalette }) => `${colorPalette.background.secondary} 0px 5px 15px`};
|
|
20
|
-
${({ toast }) => !toast && `border-radius: 4px;`};
|
|
21
|
-
position: absolute;
|
|
22
|
-
top: ${({ toast }) => (toast ? "64px" : "50%")};
|
|
23
|
-
${({ minimized }) => minimized && "top: 45px"};
|
|
24
|
-
left: 50%;
|
|
25
|
-
transform: translate(-50%, -50%);
|
|
26
|
-
max-height: 85vh;
|
|
27
|
-
animation: contentShow 150ms cubic-bezier(0.16, 1, 0.3, 1);
|
|
28
|
-
z-index: 1000;
|
|
29
|
-
display: flex;
|
|
30
|
-
flex-direction: column;
|
|
31
|
-
min-width: ${({ minimized }) => (minimized ? "100px" : "300px")};
|
|
32
|
-
${({ toast }) => toast && `width: 100%;`};
|
|
33
|
-
${({ minimized }) => minimized && "width: 30%"};
|
|
34
|
-
gap: 16px;
|
|
35
|
-
:focus {
|
|
36
|
-
outline: none;
|
|
37
|
-
}
|
|
18
|
+
: `background-color: ${colorPalette.toastBackground[toast]}; color: ${colorPalette.toastText[toast]};`};
|
|
19
|
+
box-shadow: ${({ colorPalette }) => `${colorPalette.background.secondary} 0px 5px 15px`};
|
|
20
|
+
${({ toast }) => !toast && `border-radius: 4px;`};
|
|
21
|
+
position: absolute;
|
|
22
|
+
top: ${({ toast }) => (toast ? "64px" : "50%")};
|
|
23
|
+
${({ minimized }) => minimized && "top: 45px"};
|
|
24
|
+
left: 50%;
|
|
25
|
+
transform: translate(-50%, -50%);
|
|
26
|
+
max-height: 85vh;
|
|
27
|
+
animation: contentShow 150ms cubic-bezier(0.16, 1, 0.3, 1);
|
|
28
|
+
z-index: 1000;
|
|
29
|
+
display: flex;
|
|
30
|
+
flex-direction: column;
|
|
31
|
+
min-width: ${({ minimized }) => (minimized ? "100px" : "300px")};
|
|
32
|
+
${({ toast }) => toast && `width: 100%;`};
|
|
33
|
+
${({ minimized }) => minimized && "width: 30%"};
|
|
34
|
+
gap: 16px;
|
|
35
|
+
:focus {
|
|
36
|
+
outline: none;
|
|
37
|
+
}
|
|
38
38
|
`;
|
|
39
|
-
export const DialogContainer = styled.div `
|
|
40
|
-
display: flex;
|
|
41
|
-
padding: 24px 24px 0px 24px;
|
|
42
|
-
flex-direction: column;
|
|
43
|
-
align-items: center;
|
|
44
|
-
gap: 16px;
|
|
45
|
-
align-self: stretch;
|
|
39
|
+
export const DialogContainer = styled.div `
|
|
40
|
+
display: flex;
|
|
41
|
+
padding: 24px 24px 0px 24px;
|
|
42
|
+
flex-direction: column;
|
|
43
|
+
align-items: center;
|
|
44
|
+
gap: 16px;
|
|
45
|
+
align-self: stretch;
|
|
46
46
|
`;
|
|
47
|
-
export const ModalTitleContainer = styled.div `
|
|
48
|
-
display: flex;
|
|
49
|
-
justify-content: space-between;
|
|
50
|
-
align-items: center;
|
|
51
|
-
width: 100%;
|
|
47
|
+
export const ModalTitleContainer = styled.div `
|
|
48
|
+
display: flex;
|
|
49
|
+
justify-content: space-between;
|
|
50
|
+
align-items: center;
|
|
51
|
+
width: 100%;
|
|
52
52
|
`;
|
|
53
|
-
export const ModalTitle = styled.div `
|
|
54
|
-
font-size: ${({ minimized }) => (minimized ? "12px" : "24px")};
|
|
55
|
-
font-style: normal;
|
|
56
|
-
font-weight: 600;
|
|
57
|
-
line-height: 150%;
|
|
53
|
+
export const ModalTitle = styled.div `
|
|
54
|
+
font-size: ${({ minimized }) => (minimized ? "12px" : "24px")};
|
|
55
|
+
font-style: normal;
|
|
56
|
+
font-weight: 600;
|
|
57
|
+
line-height: 150%;
|
|
58
58
|
`;
|
|
59
|
-
export const ModalHeading = styled.div `
|
|
60
|
-
font-size: 16px;
|
|
61
|
-
font-style: normal;
|
|
62
|
-
font-weight: 700;
|
|
63
|
-
line-height: 150%;
|
|
59
|
+
export const ModalHeading = styled.div `
|
|
60
|
+
font-size: 16px;
|
|
61
|
+
font-style: normal;
|
|
62
|
+
font-weight: 700;
|
|
63
|
+
line-height: 150%;
|
|
64
64
|
`;
|
|
65
|
-
export const ModelSubHeading = styled.div `
|
|
66
|
-
font-size: 16px;
|
|
67
|
-
font-style: normal;
|
|
68
|
-
font-weight: 400;
|
|
69
|
-
line-height: 24px; /* 150% */
|
|
70
|
-
letter-spacing: 0.16px;
|
|
71
|
-
width: 100%;
|
|
65
|
+
export const ModelSubHeading = styled.div `
|
|
66
|
+
font-size: 16px;
|
|
67
|
+
font-style: normal;
|
|
68
|
+
font-weight: 400;
|
|
69
|
+
line-height: 24px; /* 150% */
|
|
70
|
+
letter-spacing: 0.16px;
|
|
71
|
+
width: 100%;
|
|
72
72
|
`;
|
|
73
|
-
export const ModalFooter = styled.div `
|
|
74
|
-
display: flex;
|
|
75
|
-
padding: 24px 16px;
|
|
76
|
-
justify-content: center;
|
|
77
|
-
align-items: center;
|
|
78
|
-
gap: 16px;
|
|
79
|
-
align-self: stretch;
|
|
73
|
+
export const ModalFooter = styled.div `
|
|
74
|
+
display: flex;
|
|
75
|
+
padding: 24px 16px;
|
|
76
|
+
justify-content: center;
|
|
77
|
+
align-items: center;
|
|
78
|
+
gap: 16px;
|
|
79
|
+
align-self: stretch;
|
|
80
80
|
`;
|
|
81
|
-
export const ModalInputBox = styled.div `
|
|
82
|
-
display: flex;
|
|
83
|
-
width: 322px;
|
|
84
|
-
flex-direction: column;
|
|
85
|
-
justify-content: center;
|
|
86
|
-
align-items: flex-start;
|
|
87
|
-
gap: 8px;
|
|
81
|
+
export const ModalInputBox = styled.div `
|
|
82
|
+
display: flex;
|
|
83
|
+
width: 322px;
|
|
84
|
+
flex-direction: column;
|
|
85
|
+
justify-content: center;
|
|
86
|
+
align-items: flex-start;
|
|
87
|
+
gap: 8px;
|
|
88
88
|
`;
|
|
89
89
|
export const Modal = (props) => {
|
|
90
90
|
const { open, children, colorPalette, setOpen, toast, timeout, canMinimize, setMinimized, minimized, modal, ...htmlProps } = props;
|
|
@@ -3,20 +3,20 @@ import React, { useMemo, useState } from "react";
|
|
|
3
3
|
import { MdPersonAddAlt } from "react-icons/md";
|
|
4
4
|
import ContentDropdown from "../../Atoms/ContentDropdown/ContentDropdown";
|
|
5
5
|
import Tab from "../../Atoms/Tab/Tab";
|
|
6
|
-
const Container = styled.div `
|
|
7
|
-
display: flex;
|
|
8
|
-
width: 100%;
|
|
9
|
-
flex-direction: column;
|
|
10
|
-
align-items: flex-start;
|
|
11
|
-
background-color: ${({ colorPalette }) => colorPalette.background.primary}
|
|
6
|
+
const Container = styled.div `
|
|
7
|
+
display: flex;
|
|
8
|
+
width: 100%;
|
|
9
|
+
flex-direction: column;
|
|
10
|
+
align-items: flex-start;
|
|
11
|
+
background-color: ${({ colorPalette }) => colorPalette.background.primary}
|
|
12
12
|
`;
|
|
13
|
-
const NavBar = styled.div `
|
|
14
|
-
display: flex;
|
|
15
|
-
padding: 0px 16px;
|
|
16
|
-
align-items: flex-start;
|
|
17
|
-
gap: 8px;
|
|
18
|
-
align-self: stretch;
|
|
19
|
-
border-bottom: 0.5px solid #89949F;
|
|
13
|
+
const NavBar = styled.div `
|
|
14
|
+
display: flex;
|
|
15
|
+
padding: 0px 16px;
|
|
16
|
+
align-items: flex-start;
|
|
17
|
+
gap: 8px;
|
|
18
|
+
align-self: stretch;
|
|
19
|
+
border-bottom: 0.5px solid #89949F;
|
|
20
20
|
`;
|
|
21
21
|
function TabManager(props) {
|
|
22
22
|
const { colorPalette, tabLabels, forms } = props;
|
|
@@ -3,21 +3,21 @@ import { TableHeader } from "../../Molecules/TableHeader/TableHeader";
|
|
|
3
3
|
import { TableRow } from "../../Molecules/TableRow/TableRow";
|
|
4
4
|
import styled from "@emotion/styled";
|
|
5
5
|
import { Pagination } from "../../Atoms/Pagination/Pagination";
|
|
6
|
-
const StyledTable = styled.table `
|
|
7
|
-
display: flex;
|
|
8
|
-
padding: 0px 24px;
|
|
9
|
-
flex-direction: column;
|
|
6
|
+
const StyledTable = styled.table `
|
|
7
|
+
display: flex;
|
|
8
|
+
padding: 0px 24px;
|
|
9
|
+
flex-direction: column;
|
|
10
10
|
`;
|
|
11
|
-
const StyledTableHead = styled.thead `
|
|
12
|
-
position: sticky;
|
|
13
|
-
top: 0;
|
|
14
|
-
z-index: 998;
|
|
15
|
-
border-width: 1px;
|
|
16
|
-
border-style: solid;
|
|
17
|
-
border-color: ${({ colorPalette }) => colorPalette.border.secondary};
|
|
18
|
-
border-right: none;
|
|
19
|
-
border-left: none;
|
|
20
|
-
border-top: none;
|
|
11
|
+
const StyledTableHead = styled.thead `
|
|
12
|
+
position: sticky;
|
|
13
|
+
top: 0;
|
|
14
|
+
z-index: 998;
|
|
15
|
+
border-width: 1px;
|
|
16
|
+
border-style: solid;
|
|
17
|
+
border-color: ${({ colorPalette }) => colorPalette.border.secondary};
|
|
18
|
+
border-right: none;
|
|
19
|
+
border-left: none;
|
|
20
|
+
border-top: none;
|
|
21
21
|
`;
|
|
22
22
|
const paginate = ({ items, pageIndex, pageSize, }) => {
|
|
23
23
|
if (pageIndex === 0) {
|
|
@@ -5,64 +5,64 @@ import Accordion from "../../Atoms/Accordion/Accordion";
|
|
|
5
5
|
import { Button } from "../../Atoms/Buttons/Button";
|
|
6
6
|
import { Typography } from "../../Atoms/Typography/Typography";
|
|
7
7
|
import { GoBug } from "react-icons/go";
|
|
8
|
-
const TutorialOverlay = styled.div `
|
|
9
|
-
background-color: ${({ colors }) => `${colors.background.secondary}90`};
|
|
10
|
-
position: absolute;
|
|
11
|
-
z-index: 1000;
|
|
12
|
-
display: flex;
|
|
13
|
-
justify-content: center;
|
|
14
|
-
height: 100vh;
|
|
15
|
-
width: 100vw;
|
|
16
|
-
top: 0;
|
|
17
|
-
left: 0;
|
|
8
|
+
const TutorialOverlay = styled.div `
|
|
9
|
+
background-color: ${({ colors }) => `${colors.background.secondary}90`};
|
|
10
|
+
position: absolute;
|
|
11
|
+
z-index: 1000;
|
|
12
|
+
display: flex;
|
|
13
|
+
justify-content: center;
|
|
14
|
+
height: 100vh;
|
|
15
|
+
width: 100vw;
|
|
16
|
+
top: 0;
|
|
17
|
+
left: 0;
|
|
18
18
|
`;
|
|
19
|
-
const TutorialWrapper = styled.div `
|
|
20
|
-
background-color: ${({ colors }) => colors.background.primary};
|
|
21
|
-
color: ${({ colors }) => colors.text.primary};
|
|
22
|
-
display: flex;
|
|
23
|
-
flex-direction: column;
|
|
24
|
-
align-items: flex-start;
|
|
25
|
-
gap: 16px;
|
|
26
|
-
align-self: stretch;
|
|
27
|
-
height: 500px;
|
|
28
|
-
width: 500px;
|
|
29
|
-
border-radius: 4px;
|
|
30
|
-
box-shadow: ${({ colors }) => `${colors.background.secondary} 0px 5px 15px`};
|
|
31
|
-
margin-top: calc(50vh - 250px)
|
|
19
|
+
const TutorialWrapper = styled.div `
|
|
20
|
+
background-color: ${({ colors }) => colors.background.primary};
|
|
21
|
+
color: ${({ colors }) => colors.text.primary};
|
|
22
|
+
display: flex;
|
|
23
|
+
flex-direction: column;
|
|
24
|
+
align-items: flex-start;
|
|
25
|
+
gap: 16px;
|
|
26
|
+
align-self: stretch;
|
|
27
|
+
height: 500px;
|
|
28
|
+
width: 500px;
|
|
29
|
+
border-radius: 4px;
|
|
30
|
+
box-shadow: ${({ colors }) => `${colors.background.secondary} 0px 5px 15px`};
|
|
31
|
+
margin-top: calc(50vh - 250px)
|
|
32
32
|
`;
|
|
33
33
|
//I used the calc above because `align-items: center` had no affect when applied to the TutorialOverlay styled div
|
|
34
|
-
const HelpHeader = styled.div `
|
|
35
|
-
display: flex;
|
|
36
|
-
flex-direction: column;
|
|
37
|
-
align-items: flex-start;
|
|
38
|
-
gap: 16px;
|
|
39
|
-
align-self: stretch;
|
|
40
|
-
padding: 24px;
|
|
41
|
-
box-shadow: ${({ colors }) => `${colors.background.secondary} 0px 3px 5px`};
|
|
34
|
+
const HelpHeader = styled.div `
|
|
35
|
+
display: flex;
|
|
36
|
+
flex-direction: column;
|
|
37
|
+
align-items: flex-start;
|
|
38
|
+
gap: 16px;
|
|
39
|
+
align-self: stretch;
|
|
40
|
+
padding: 24px;
|
|
41
|
+
box-shadow: ${({ colors }) => `${colors.background.secondary} 0px 3px 5px`};
|
|
42
42
|
`;
|
|
43
|
-
const TitleAndExit = styled.div `
|
|
44
|
-
display: flex;
|
|
45
|
-
justify-content: space-between;
|
|
46
|
-
align-items: center;
|
|
47
|
-
align-self: stretch;
|
|
43
|
+
const TitleAndExit = styled.div `
|
|
44
|
+
display: flex;
|
|
45
|
+
justify-content: space-between;
|
|
46
|
+
align-items: center;
|
|
47
|
+
align-self: stretch;
|
|
48
48
|
`;
|
|
49
|
-
const ScrollableArea = styled.div `
|
|
50
|
-
overflow: scroll;
|
|
51
|
-
overflow-x: hidden;
|
|
49
|
+
const ScrollableArea = styled.div `
|
|
50
|
+
overflow: scroll;
|
|
51
|
+
overflow-x: hidden;
|
|
52
52
|
`;
|
|
53
|
-
const ContentContainer = styled.div `
|
|
54
|
-
padding: 0px 24px;
|
|
55
|
-
width: 90%;
|
|
53
|
+
const ContentContainer = styled.div `
|
|
54
|
+
padding: 0px 24px;
|
|
55
|
+
width: 90%;
|
|
56
56
|
`;
|
|
57
|
-
const ContactContainer = styled.div `
|
|
58
|
-
background-color: ${({ colors }) => colors.background.tertiary};
|
|
59
|
-
color: ${({ colors }) => colors.text.primary};
|
|
60
|
-
display: flex;
|
|
61
|
-
padding: 24px 16px;
|
|
62
|
-
flex-direction: column;
|
|
63
|
-
align-items: center;
|
|
64
|
-
gap: 16px;
|
|
65
|
-
align-self: stretch;
|
|
57
|
+
const ContactContainer = styled.div `
|
|
58
|
+
background-color: ${({ colors }) => colors.background.tertiary};
|
|
59
|
+
color: ${({ colors }) => colors.text.primary};
|
|
60
|
+
display: flex;
|
|
61
|
+
padding: 24px 16px;
|
|
62
|
+
flex-direction: column;
|
|
63
|
+
align-items: center;
|
|
64
|
+
gap: 16px;
|
|
65
|
+
align-self: stretch;
|
|
66
66
|
`;
|
|
67
67
|
;
|
|
68
68
|
;
|
package/dist/index.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ export * from "./Atoms/FieldWrapper/FieldWrapper";
|
|
|
10
10
|
export * from "./Atoms/DropdownField/DropdownField";
|
|
11
11
|
export * from "./Atoms/NoteField/NoteField";
|
|
12
12
|
export * from "./Atoms/SelectField/SelectField";
|
|
13
|
+
export * from "./Atoms/Spinner/Spinner";
|
|
13
14
|
export * from "./Atoms/Tab/Tab";
|
|
14
15
|
export * from "./Atoms/ProgressBar/ProgressBar";
|
|
15
16
|
export * from "./Atoms/Typography/Typography";
|
package/dist/index.js
CHANGED
|
@@ -12,6 +12,7 @@ export * from "./Atoms/FieldWrapper/FieldWrapper";
|
|
|
12
12
|
export * from "./Atoms/DropdownField/DropdownField";
|
|
13
13
|
export * from "./Atoms/NoteField/NoteField";
|
|
14
14
|
export * from "./Atoms/SelectField/SelectField";
|
|
15
|
+
export * from "./Atoms/Spinner/Spinner";
|
|
15
16
|
export * from "./Atoms/Tab/Tab";
|
|
16
17
|
export * from "./Atoms/ProgressBar/ProgressBar";
|
|
17
18
|
export * from "./Atoms/Typography/Typography";
|
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,cAAc,iCAAiC,CAAC;AAChD,cAAc,+BAA+B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AAA;AACvD,cAAc,+BAA+B,CAAA;AAC7C,cAAc,qCAAqC,CAAA;AACnD,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": "5.2.
|
|
3
|
+
"version": "5.2.4-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": "e26fe5c23d67f49589f583c61b316355be947431",
|
|
50
50
|
"dependencies": {
|
|
51
51
|
"@emotion/react": "^11.13.0",
|
|
52
52
|
"@emotion/styled": "^11.13.0",
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { Colors } from "Theme/types";
|
|
3
|
-
interface ErrorSplashProps {
|
|
4
|
-
colorPalette: Colors & string;
|
|
5
|
-
title: string;
|
|
6
|
-
description: string;
|
|
7
|
-
image?: string;
|
|
8
|
-
}
|
|
9
|
-
export declare const ErrorSplash: (props: ErrorSplashProps) => React.JSX.Element;
|
|
10
|
-
export {};
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import styled from "@emotion/styled";
|
|
3
|
-
import { FiChevronLeft, FiRefreshCw } from "react-icons/fi";
|
|
4
|
-
import { GoBug } from "react-icons/go";
|
|
5
|
-
import { Button } from "../../Atoms/Buttons/Button";
|
|
6
|
-
import { Typography } from "../../Atoms/Typography/Typography";
|
|
7
|
-
const ErrorSplashContainer = styled.div `
|
|
8
|
-
// width: 100vw;
|
|
9
|
-
// height: 100vh;
|
|
10
|
-
|
|
11
|
-
`;
|
|
12
|
-
const HeaderDiv = styled.div `
|
|
13
|
-
display: flex;
|
|
14
|
-
padding: 24px;
|
|
15
|
-
flex-direction: column;
|
|
16
|
-
align-items: flex-start;
|
|
17
|
-
gap: 16px;
|
|
18
|
-
align-self: stretch;
|
|
19
|
-
`;
|
|
20
|
-
const HeaderAndBackDiv = styled.div `
|
|
21
|
-
display: flex;
|
|
22
|
-
justify-content: space-between;
|
|
23
|
-
align-items: center;
|
|
24
|
-
align-self: stretch;
|
|
25
|
-
`;
|
|
26
|
-
const DescriptionDiv = styled.div `
|
|
27
|
-
display: -webkit-box;
|
|
28
|
-
-webkit-box-orient: vertical;
|
|
29
|
-
-webkit-line-clamp: 2;
|
|
30
|
-
flex: 1 0 0;
|
|
31
|
-
`;
|
|
32
|
-
const ButtonsDiv = styled.div `
|
|
33
|
-
//background is the topo image
|
|
34
|
-
display: flex;
|
|
35
|
-
height: 245px;
|
|
36
|
-
justify-content: center;
|
|
37
|
-
align-items: center;
|
|
38
|
-
align-content: center;
|
|
39
|
-
gap: 16px;
|
|
40
|
-
flex-shrink: 0;
|
|
41
|
-
align-self: stretch;
|
|
42
|
-
flex-wrap: wrap;
|
|
43
|
-
`;
|
|
44
|
-
const AmbassadorContactDiv = styled.div `
|
|
45
|
-
background-color: ${({ colorPalette }) => colorPalette.background.tertiary};
|
|
46
|
-
border-top: ${({ colorPalette }) => colorPalette.border.tertiary} 1px solid;
|
|
47
|
-
display: flex;
|
|
48
|
-
padding: 24px 16px;
|
|
49
|
-
flex-direction: column;
|
|
50
|
-
align-items: center;
|
|
51
|
-
gap: 16px;
|
|
52
|
-
align-self: stretch;
|
|
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
|
-
`;
|
|
64
|
-
export const ErrorSplash = (props) => {
|
|
65
|
-
const { colorPalette, title, description, image, ...tableHtmlProps } = props;
|
|
66
|
-
console.log("colorPalette:", colorPalette);
|
|
67
|
-
return (React.createElement(ErrorSplashContainer, { colorPalette: colorPalette, ...tableHtmlProps },
|
|
68
|
-
React.createElement(HeaderDiv, { colorPalette: colorPalette },
|
|
69
|
-
React.createElement(HeaderAndBackDiv, { colorPalette: colorPalette },
|
|
70
|
-
React.createElement(FiChevronLeft, null),
|
|
71
|
-
React.createElement(Typography, { textColor: colorPalette.text.primary, content: title, variant: "Heading 3" })),
|
|
72
|
-
React.createElement(DescriptionDiv, { colorPalette: colorPalette },
|
|
73
|
-
React.createElement(Typography, { textColor: colorPalette.text.primary, content: description, variant: "Paragraphy Body" }))),
|
|
74
|
-
image && React.createElement("img", { src: image, alt: "Splash Image" }),
|
|
75
|
-
React.createElement(ButtonsDiv, { colorPalette: colorPalette },
|
|
76
|
-
React.createElement(Button, { colorPalette: colorPalette, onClick: () => { }, label: "Refresh", variant: "outlined", icon: React.createElement(FiRefreshCw, null) }),
|
|
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" }))));
|
|
81
|
-
};
|
|
82
|
-
//# sourceMappingURL=Splash.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Splash.js","sourceRoot":"","sources":["../../../lib/Organisms/Splash/Splash.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAA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