@factorearth/component-library 6.1.0 → 6.2.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 +2 -10
- package/dist/Atoms/Accordion/Accordion.js +15 -32
- package/dist/Atoms/Accordion/Accordion.js.map +1 -1
- package/dist/Organisms/Tutorial/Tutorial.js +57 -5
- package/dist/Organisms/Tutorial/Tutorial.js.map +1 -1
- package/dist/index.d.ts +19 -13
- package/dist/index.js +20 -18
- package/dist/index.js.map +1 -1
- package/package.json +4 -3
- package/dist/Atoms/MultiToggleButton/MultiToggleButton.d.ts +0 -15
- package/dist/Atoms/MultiToggleButton/MultiToggleButton.js +0 -48
- package/dist/Atoms/MultiToggleButton/MultiToggleButton.js.map +0 -1
- package/dist/Molecules/PhotologRow/PhotologRow.d.ts +0 -15
- package/dist/Molecules/PhotologRow/PhotologRow.js +0 -66
- package/dist/Molecules/PhotologRow/PhotologRow.js.map +0 -1
- 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
|
@@ -1,18 +1,10 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { Colors } from "../../Theme/types";
|
|
3
|
-
import * as FiIcons from 'react-icons/fi';
|
|
4
3
|
interface Props {
|
|
4
|
+
button?: React.ReactNode;
|
|
5
|
+
children: React.ReactNode;
|
|
5
6
|
colors: Colors;
|
|
6
|
-
dropdownContent: DropdownContent;
|
|
7
|
-
}
|
|
8
|
-
interface DropdownContent {
|
|
9
7
|
title: string;
|
|
10
|
-
icon?: keyof typeof FiIcons;
|
|
11
|
-
content: string[];
|
|
12
|
-
imgs?: {
|
|
13
|
-
light: string;
|
|
14
|
-
dark: string;
|
|
15
|
-
};
|
|
16
8
|
}
|
|
17
9
|
declare function Accordion(props: Props): React.JSX.Element;
|
|
18
10
|
export default Accordion;
|
|
@@ -2,21 +2,18 @@ import styled from "@emotion/styled";
|
|
|
2
2
|
import React, { useState } from "react";
|
|
3
3
|
import { FiChevronDown, FiChevronUp } from "react-icons/fi";
|
|
4
4
|
import { Typography } from "../Typography/Typography";
|
|
5
|
-
import * as FiIcons from 'react-icons/fi';
|
|
6
5
|
const Container = styled.div `
|
|
7
|
-
background: ${({ expanded, colors }) => expanded ? colors.background.tertiary : colors.background.primary};
|
|
8
|
-
padding: 8px;
|
|
9
6
|
border-top: ${({ colors }) => `${colors.background.secondary} 1px solid`};
|
|
10
|
-
cursor: pointer
|
|
7
|
+
cursor: pointer;
|
|
11
8
|
`;
|
|
12
|
-
const Header = styled.
|
|
9
|
+
const Header = styled.div `
|
|
10
|
+
background: ${({ colors }) => `${colors.background.tertiary}`};
|
|
11
|
+
padding: 0 24px;
|
|
13
12
|
display: flex;
|
|
14
|
-
|
|
13
|
+
height: 56px;
|
|
15
14
|
flex-direction: row;
|
|
15
|
+
justify-content: space-between;
|
|
16
16
|
align-items: center;
|
|
17
|
-
gap: 8px;
|
|
18
|
-
align-self: stretch;
|
|
19
|
-
background: none;
|
|
20
17
|
border: none;
|
|
21
18
|
cursor: pointer;
|
|
22
19
|
width: 100%;
|
|
@@ -24,35 +21,21 @@ const Header = styled.button `
|
|
|
24
21
|
`;
|
|
25
22
|
const ContentContainer = styled.div `
|
|
26
23
|
align-self: stretch;
|
|
27
|
-
padding
|
|
24
|
+
padding: 0 24px;
|
|
28
25
|
`;
|
|
29
|
-
const Step = styled.div `
|
|
30
|
-
padding: 4px 16px;
|
|
31
|
-
align-self: stretch;
|
|
32
|
-
`;
|
|
33
|
-
;
|
|
34
26
|
function Accordion(props) {
|
|
35
|
-
const { colors,
|
|
27
|
+
const { button, children, colors, title } = props;
|
|
36
28
|
const [dropdownOpen, setDropdownOpen] = useState(false);
|
|
37
29
|
function toggleDropdown() {
|
|
38
30
|
setDropdownOpen(!dropdownOpen);
|
|
39
31
|
}
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
};
|
|
48
|
-
const Icon = buildIcon(dropdownContent.icon);
|
|
49
|
-
return (React.createElement(Container, { colors: colors, expanded: dropdownOpen },
|
|
50
|
-
React.createElement(Header, { onClick: toggleDropdown },
|
|
51
|
-
dropdownOpen ? React.createElement(FiChevronUp, null) : React.createElement(FiChevronDown, null),
|
|
52
|
-
React.createElement(Typography, { style: { flex: "1 0 0" }, textColor: colors.text.primary, content: dropdownContent.title, variant: "Paragraphy Body", "data-test": "accordion-title" }),
|
|
53
|
-
Icon && React.createElement(Icon, null)),
|
|
54
|
-
dropdownOpen && (React.createElement(ContentContainer, null, dropdownContent.content.map(content => React.createElement(Step, { key: `step-${content}` },
|
|
55
|
-
React.createElement(Typography, { textColor: colors.text.primary, content: content, variant: "Paragraphy Body" })))))));
|
|
32
|
+
return (React.createElement(Container, { colors: colors },
|
|
33
|
+
React.createElement(Header, { onClick: toggleDropdown, tabIndex: 0, "aria-expanded": dropdownOpen, "aria-controls": `accordion-content-${title}`, colors: colors, role: "button", onKeyDown: (e) => (e.key === "Enter" || e.key === " ") && toggleDropdown() },
|
|
34
|
+
React.createElement(Typography, { textColor: colors.text.primary, content: title, variant: "Heading 5" }),
|
|
35
|
+
React.createElement("div", { style: { display: "flex", flexDirection: "row", alignItems: "center", gap: "16px" } },
|
|
36
|
+
button && dropdownOpen && button,
|
|
37
|
+
dropdownOpen ? React.createElement(FiChevronUp, null) : React.createElement(FiChevronDown, null))),
|
|
38
|
+
dropdownOpen && (React.createElement(ContentContainer, null, children))));
|
|
56
39
|
}
|
|
57
40
|
export default Accordion;
|
|
58
41
|
//# sourceMappingURL=Accordion.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Accordion.js","sourceRoot":"","sources":["../../../lib/Atoms/Accordion/Accordion.tsx"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,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,EAAE,CAAC,mBACI,YAAY,mBACZ,qBAAqB,KAAK,EAAE,EAC3C,MAAM,EAAE,MAAM,EACd,IAAI,EAAC,QAAQ,EACb,SAAS,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,GAAG,KAAK,OAAO,IAAI,CAAC,CAAC,GAAG,KAAK,GAAG,CAAC,IAAI,cAAc,EAAE;YAE1E,oBAAC,UAAU,IAAC,SAAS,EAAE,MAAM,CAAC,IAAI,CAAC,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAC,WAAW,GAAG;YAClF,6BAAK,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,GAAG,EAAE,MAAM,EAAE;gBACtF,MAAM,IAAI,YAAY,IAAI,MAAM;gBAChC,YAAY,CAAC,CAAC,CAAC,oBAAC,WAAW,OAAG,CAAC,CAAC,CAAC,oBAAC,aAAa,OAAG,CAC9C,CACE;QACR,YAAY,IAAI,CAChB,oBAAC,gBAAgB,QACf,QAAQ,CACS,CACnB,CACU,CACZ,CAAC;AACH,CAAC;AAED,eAAe,SAAS,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import styled from "@emotion/styled";
|
|
2
|
-
import React from "react";
|
|
2
|
+
import React, { useState } from "react";
|
|
3
3
|
import { FiX } from "react-icons/fi";
|
|
4
|
-
import Accordion from "../../Atoms/Accordion/Accordion";
|
|
5
4
|
import { Typography } from "../../Atoms/Typography/Typography";
|
|
5
|
+
import * as FiIcons from "react-icons/fi";
|
|
6
6
|
import { ReportABugButton } from "../../Atoms/Buttons/ReportABugButton";
|
|
7
7
|
import { Button } from "../../Atoms/Buttons/Button";
|
|
8
8
|
const TutorialOverlay = styled.div `
|
|
@@ -64,6 +64,33 @@ const ContactContainer = styled.div `
|
|
|
64
64
|
gap: 16px;
|
|
65
65
|
align-self: stretch;
|
|
66
66
|
`;
|
|
67
|
+
const Container = styled.div `
|
|
68
|
+
background: ${({ expanded, colors }) => expanded ? colors.background.tertiary : colors.background.primary};
|
|
69
|
+
padding: 8px;
|
|
70
|
+
border-top: ${({ colors }) => `${colors.background.secondary} 1px solid`};
|
|
71
|
+
cursor: pointer
|
|
72
|
+
`;
|
|
73
|
+
const Header = styled.button `
|
|
74
|
+
display: flex;
|
|
75
|
+
padding: 8px;
|
|
76
|
+
flex-direction: row;
|
|
77
|
+
align-items: center;
|
|
78
|
+
gap: 8px;
|
|
79
|
+
align-self: stretch;
|
|
80
|
+
background: none;
|
|
81
|
+
border: none;
|
|
82
|
+
cursor: pointer;
|
|
83
|
+
width: 100%;
|
|
84
|
+
text-align: left;
|
|
85
|
+
`;
|
|
86
|
+
const TutorialContentContainer = styled.div `
|
|
87
|
+
align-self: stretch;
|
|
88
|
+
padding-bottom: 16px;
|
|
89
|
+
`;
|
|
90
|
+
const Step = styled.div `
|
|
91
|
+
padding: 4px 16px;
|
|
92
|
+
align-self: stretch;
|
|
93
|
+
`;
|
|
67
94
|
export const Tutorial = (props) => {
|
|
68
95
|
const { colors, page, setOpen, getFeedbackFn, ...htmlProps } = props;
|
|
69
96
|
return (React.createElement(TutorialOverlay, { colors: colors, onClick: () => setOpen(""), "aria-label": "Tutorial overlay background", role: "presentation" },
|
|
@@ -77,15 +104,40 @@ export const Tutorial = (props) => {
|
|
|
77
104
|
React.createElement(ContentContainer, { colors: colors },
|
|
78
105
|
page["user-flows"].length > 0 && (React.createElement(React.Fragment, { key: `user-flows-fragment` },
|
|
79
106
|
React.createElement(Typography, { textColor: colors.text.primary, content: "Common User Flows", variant: "Heading 4", style: { paddingBottom: "8px" } }),
|
|
80
|
-
page["user-flows"].map((flow) =>
|
|
107
|
+
page["user-flows"].map((flow) => {
|
|
108
|
+
return (React.createElement(TutorialAccordion, { colors: colors, dropdownContent: flow, key: `user-flow-${flow.title}` }));
|
|
109
|
+
}))),
|
|
81
110
|
page.features.length > 0 && (React.createElement(React.Fragment, { key: `features-fragment` },
|
|
82
111
|
React.createElement(Typography, { textColor: colors.text.primary, content: "Page Features", variant: "Heading 4", style: { paddingBottom: "8px" } }),
|
|
83
112
|
page.features.length > 0 &&
|
|
84
|
-
page.features.map((feature) =>
|
|
113
|
+
page.features.map((feature) => React.createElement(TutorialAccordion, { colors: colors, dropdownContent: feature, key: `feature-${feature.title}` }))))),
|
|
85
114
|
React.createElement(ContactContainer, { colors: colors },
|
|
86
115
|
React.createElement(Typography, { textColor: colors.text.primary, content: "Please ask further questions, or reach out for additional support by emailing", variant: "Label" }),
|
|
87
116
|
React.createElement(Typography, { textColor: colors.text.primary, content: "devs@factorearth.com", variant: "Heading 4" }),
|
|
88
117
|
React.createElement(ReportABugButton, { colorPalette: colors, getFeedbackFn: getFeedbackFn, variant: "outlined", buttonId: "sentry-feedback-button-tutorial" }))))));
|
|
89
118
|
};
|
|
90
|
-
|
|
119
|
+
;
|
|
120
|
+
function TutorialAccordion(props) {
|
|
121
|
+
const { colors, dropdownContent } = props;
|
|
122
|
+
const [dropdownOpen, setDropdownOpen] = useState(false);
|
|
123
|
+
function toggleDropdown() {
|
|
124
|
+
setDropdownOpen(!dropdownOpen);
|
|
125
|
+
}
|
|
126
|
+
const buildIcon = (icon) => {
|
|
127
|
+
if (!icon)
|
|
128
|
+
return null;
|
|
129
|
+
const IconComponent = FiIcons[icon];
|
|
130
|
+
if (!IconComponent)
|
|
131
|
+
return null;
|
|
132
|
+
return IconComponent;
|
|
133
|
+
};
|
|
134
|
+
const Icon = buildIcon(dropdownContent.icon);
|
|
135
|
+
return (React.createElement(Container, { colors: colors, expanded: dropdownOpen },
|
|
136
|
+
React.createElement(Header, { onClick: toggleDropdown },
|
|
137
|
+
dropdownOpen ? React.createElement(FiIcons.FiChevronUp, null) : React.createElement(FiIcons.FiChevronDown, null),
|
|
138
|
+
React.createElement(Typography, { style: { flex: "1 0 0" }, textColor: colors.text.primary, content: dropdownContent.title, variant: "Paragraphy Body", "data-test": "accordion-title" }),
|
|
139
|
+
Icon && React.createElement(Icon, null)),
|
|
140
|
+
dropdownOpen && (React.createElement(TutorialContentContainer, null, dropdownContent.content.map(content => React.createElement(Step, { key: `step-${content}` },
|
|
141
|
+
React.createElement(Typography, { textColor: colors.text.primary, content: content, variant: "Paragraphy Body" })))))));
|
|
142
|
+
}
|
|
91
143
|
//# 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;
|
|
1
|
+
{"version":3,"file":"Tutorial.js","sourceRoot":"","sources":["../../../lib/Organisms/Tutorial/Tutorial.tsx"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAExC,OAAO,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAC;AACrC,OAAO,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAC;AAC/D,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAC1C,OAAO,EAAqB,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AAC3F,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AAEpD,MAAM,eAAe,GAAG,MAAM,CAAC,GAAG,CAAqB;qBAClC,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,GAAG,MAAM,CAAC,UAAU,CAAC,SAAS,IAAI;;;;;;;;;CAStE,CAAC;AAEF,MAAM,eAAe,GAAG,MAAM,CAAC,GAAG,CAAqB;qBAClC,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,MAAM,CAAC,UAAU,CAAC,OAAO;UACpD,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,MAAM,C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O,EAAE,OAAO,EAAE,eAAe,CAAC,KAAK,EAAE,OAAO,EAAE,iBAAiB,eAAY,iBAAiB,GAAG;YAC/J,IAAI,IAAI,oBAAC,IAAI,OAAG,CACT;QACR,YAAY,IAAI,CAChB,oBAAC,wBAAwB,QACvB,eAAe,CAAC,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE,CAAC,oBAAC,IAAI,IAAC,GAAG,EAAE,QAAQ,OAAO,EAAE;YACnE,oBAAC,UAAU,IAAC,SAAS,EAAE,MAAM,CAAC,IAAI,CAAC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,iBAAiB,GAAI,CACtF,CAAC,CACkB,CAC3B,CACU,CACZ,CAAC;AACH,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,31 +1,37 @@
|
|
|
1
|
-
export * from "./Atoms/
|
|
2
|
-
export * from "./Atoms/NumberField/NumberField";
|
|
3
|
-
export * from "./Atoms/PhoneNumberField/PhoneNumberField";
|
|
4
|
-
export * from "./Atoms/Pagination/Pagination";
|
|
1
|
+
export * from "./Atoms/Accordion/Accordion";
|
|
5
2
|
export * from "./Atoms/Badge/Badge";
|
|
6
|
-
export * from "./Atoms/
|
|
7
|
-
export * from "./Atoms/TextField/TextField";
|
|
3
|
+
export * from "./Atoms/Box/Box";
|
|
8
4
|
export * from "./Atoms/Buttons/Button";
|
|
9
5
|
export * from "./Atoms/Buttons/ReportABugButton";
|
|
10
|
-
export * from "./Atoms/
|
|
6
|
+
export * from "./Atoms/ContentDropdown/ContentDropdown";
|
|
7
|
+
export * from "./Atoms/DateField/DateField";
|
|
11
8
|
export * from "./Atoms/DropdownField/DropdownField";
|
|
9
|
+
export * from "./Atoms/FieldWrapper/FieldWrapper";
|
|
10
|
+
export * from "./Atoms/MoreHorizonButton/MoreHorizonButton";
|
|
12
11
|
export * from "./Atoms/NoteField/NoteField";
|
|
12
|
+
export * from "./Atoms/NumberField/NumberField";
|
|
13
|
+
export * from "./Atoms/OptionsDropdown/OptionsDropdown";
|
|
14
|
+
export * from "./Atoms/Pagination/Pagination";
|
|
15
|
+
export * from "./Atoms/PhoneNumberField/PhoneNumberField";
|
|
16
|
+
export * from "./Atoms/ProgressBar/ProgressBar";
|
|
13
17
|
export * from "./Atoms/SelectField/SelectField";
|
|
18
|
+
export * from "./Atoms/SortDropdown/SortDropdown";
|
|
14
19
|
export * from "./Atoms/Spinner/Spinner";
|
|
15
20
|
export * from "./Atoms/Tab/Tab";
|
|
16
|
-
export * from "./Atoms/
|
|
21
|
+
export * from "./Atoms/TextField/TextField";
|
|
22
|
+
export * from "./Atoms/Toggle/Toggle";
|
|
17
23
|
export * from "./Atoms/Typography/Typography";
|
|
18
|
-
export * from "./Atoms/OptionsDropdown/OptionsDropdown";
|
|
19
24
|
export * from "./Molecules/Form/Form";
|
|
20
|
-
export * from "./Molecules/
|
|
25
|
+
export * from "./Molecules/NavMenu/NavMenu";
|
|
26
|
+
export * from "./Molecules/TableHeader/TableHeader";
|
|
21
27
|
export * from "./Molecules/TableRow/TableRow";
|
|
28
|
+
export * from "./Molecules/Thumbnail/Thumbnail";
|
|
22
29
|
export * from "./Organisms/Card/Card";
|
|
30
|
+
export * from "./Organisms/EditUserPerms/EditUserPerms";
|
|
31
|
+
export * from "./Organisms/ErrorSplash/ErrorSplash";
|
|
23
32
|
export * from "./Organisms/Modal/Modal";
|
|
24
|
-
export * from "./Molecules/NavMenu/NavMenu";
|
|
25
33
|
export * from "./Organisms/TabManager/TabManager";
|
|
26
34
|
export * from "./Organisms/Table/Table";
|
|
27
|
-
export * from "./Organisms/EditUserPerms/EditUserPerms";
|
|
28
35
|
export * from "./Organisms/Tutorial/Tutorial";
|
|
29
|
-
export * from "./Organisms/ErrorSplash/ErrorSplash";
|
|
30
36
|
export * from "./Theme/ThemeProvider";
|
|
31
37
|
export * from "./Theme/types";
|
package/dist/index.js
CHANGED
|
@@ -1,37 +1,39 @@
|
|
|
1
|
-
//
|
|
2
|
-
export * from "./Atoms/
|
|
3
|
-
export * from "./Atoms/NumberField/NumberField";
|
|
4
|
-
export * from "./Atoms/PhoneNumberField/PhoneNumberField";
|
|
5
|
-
export * from "./Atoms/Pagination/Pagination";
|
|
1
|
+
// AUTO-GENERATED FILE. DO NOT EDIT MANUALLY.
|
|
2
|
+
export * from "./Atoms/Accordion/Accordion";
|
|
6
3
|
export * from "./Atoms/Badge/Badge";
|
|
7
|
-
|
|
8
|
-
export * from "./Atoms/DateField/DateField";
|
|
9
|
-
export * from "./Atoms/TextField/TextField";
|
|
4
|
+
export * from "./Atoms/Box/Box";
|
|
10
5
|
export * from "./Atoms/Buttons/Button";
|
|
11
6
|
export * from "./Atoms/Buttons/ReportABugButton";
|
|
12
|
-
export * from "./Atoms/
|
|
7
|
+
export * from "./Atoms/ContentDropdown/ContentDropdown";
|
|
8
|
+
export * from "./Atoms/DateField/DateField";
|
|
13
9
|
export * from "./Atoms/DropdownField/DropdownField";
|
|
10
|
+
export * from "./Atoms/FieldWrapper/FieldWrapper";
|
|
11
|
+
export * from "./Atoms/MoreHorizonButton/MoreHorizonButton";
|
|
14
12
|
export * from "./Atoms/NoteField/NoteField";
|
|
13
|
+
export * from "./Atoms/NumberField/NumberField";
|
|
14
|
+
export * from "./Atoms/OptionsDropdown/OptionsDropdown";
|
|
15
|
+
export * from "./Atoms/Pagination/Pagination";
|
|
16
|
+
export * from "./Atoms/PhoneNumberField/PhoneNumberField";
|
|
17
|
+
export * from "./Atoms/ProgressBar/ProgressBar";
|
|
15
18
|
export * from "./Atoms/SelectField/SelectField";
|
|
19
|
+
export * from "./Atoms/SortDropdown/SortDropdown";
|
|
16
20
|
export * from "./Atoms/Spinner/Spinner";
|
|
17
21
|
export * from "./Atoms/Tab/Tab";
|
|
18
|
-
export * from "./Atoms/
|
|
22
|
+
export * from "./Atoms/TextField/TextField";
|
|
23
|
+
export * from "./Atoms/Toggle/Toggle";
|
|
19
24
|
export * from "./Atoms/Typography/Typography";
|
|
20
|
-
export * from "./Atoms/OptionsDropdown/OptionsDropdown";
|
|
21
|
-
// Molecules
|
|
22
25
|
export * from "./Molecules/Form/Form";
|
|
23
|
-
export * from "./Molecules/
|
|
26
|
+
export * from "./Molecules/NavMenu/NavMenu";
|
|
27
|
+
export * from "./Molecules/TableHeader/TableHeader";
|
|
24
28
|
export * from "./Molecules/TableRow/TableRow";
|
|
25
|
-
|
|
29
|
+
export * from "./Molecules/Thumbnail/Thumbnail";
|
|
26
30
|
export * from "./Organisms/Card/Card";
|
|
31
|
+
export * from "./Organisms/EditUserPerms/EditUserPerms";
|
|
32
|
+
export * from "./Organisms/ErrorSplash/ErrorSplash";
|
|
27
33
|
export * from "./Organisms/Modal/Modal";
|
|
28
|
-
export * from "./Molecules/NavMenu/NavMenu";
|
|
29
34
|
export * from "./Organisms/TabManager/TabManager";
|
|
30
35
|
export * from "./Organisms/Table/Table";
|
|
31
|
-
export * from "./Organisms/EditUserPerms/EditUserPerms";
|
|
32
36
|
export * from "./Organisms/Tutorial/Tutorial";
|
|
33
|
-
export * from "./Organisms/ErrorSplash/ErrorSplash";
|
|
34
|
-
// Themes
|
|
35
37
|
export * from "./Theme/ThemeProvider";
|
|
36
38
|
export * from "./Theme/types";
|
|
37
39
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../lib/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../lib/index.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAE7C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,wBAAwB,CAAC;AACvC,cAAc,kCAAkC,CAAC;AACjD,cAAc,yCAAyC,CAAC;AACxD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,qCAAqC,CAAC;AACpD,cAAc,mCAAmC,CAAC;AAClD,cAAc,6CAA6C,CAAC;AAC5D,cAAc,6BAA6B,CAAC;AAC5C,cAAc,iCAAiC,CAAC;AAChD,cAAc,yCAAyC,CAAC;AACxD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,2CAA2C,CAAC;AAC1D,cAAc,iCAAiC,CAAC;AAChD,cAAc,iCAAiC,CAAC;AAChD,cAAc,mCAAmC,CAAC;AAClD,cAAc,yBAAyB,CAAC;AACxC,cAAc,iBAAiB,CAAC;AAChC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,uBAAuB,CAAC;AACtC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,uBAAuB,CAAC;AACtC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,qCAAqC,CAAC;AACpD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,iCAAiC,CAAC;AAChD,cAAc,uBAAuB,CAAC;AACtC,cAAc,yCAAyC,CAAC;AACxD,cAAc,qCAAqC,CAAC;AACpD,cAAc,yBAAyB,CAAC;AACxC,cAAc,mCAAmC,CAAC;AAClD,cAAc,yBAAyB,CAAC;AACxC,cAAc,+BAA+B,CAAC;AAC9C,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": "6.
|
|
3
|
+
"version": "6.2.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",
|
|
@@ -18,7 +18,8 @@
|
|
|
18
18
|
"scripts": {
|
|
19
19
|
"storybook": "storybook dev -p 6006",
|
|
20
20
|
"build-storybook": "storybook build",
|
|
21
|
-
"chromatic": "npx chromatic"
|
|
21
|
+
"chromatic": "npx chromatic",
|
|
22
|
+
"generate-exports": "node ./scripts/generateExports.mjs"
|
|
22
23
|
},
|
|
23
24
|
"bugs": {
|
|
24
25
|
"url": "https://github.com/FactorEarth/RecordMiddleware/issues"
|
|
@@ -46,7 +47,7 @@
|
|
|
46
47
|
"access": "public",
|
|
47
48
|
"registry": "https://registry.npmjs.org/"
|
|
48
49
|
},
|
|
49
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "5c11529dbb1aceda660ae90924374dcc3d5343af",
|
|
50
51
|
"dependencies": {
|
|
51
52
|
"@emotion/react": "^11.13.0",
|
|
52
53
|
"@emotion/styled": "^11.13.0",
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { Colors } from "Theme/types";
|
|
3
|
-
interface MultiToggleButtonProps extends React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement> {
|
|
4
|
-
colorPalette: Colors;
|
|
5
|
-
optionsObj: Record<string, Category>;
|
|
6
|
-
selected: string;
|
|
7
|
-
setSelected: (value: string) => void;
|
|
8
|
-
}
|
|
9
|
-
interface Category {
|
|
10
|
-
icon?: React.JSX.Element;
|
|
11
|
-
title?: string;
|
|
12
|
-
dataTestId?: string;
|
|
13
|
-
}
|
|
14
|
-
export declare const MultiToggleButton: (props: MultiToggleButtonProps) => React.JSX.Element;
|
|
15
|
-
export {};
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import React, { useState, useRef, useEffect } from "react";
|
|
2
|
-
import styled from "@emotion/styled";
|
|
3
|
-
import { Typography } from "../Typography/Typography";
|
|
4
|
-
const MultiToggleButtonDiv = styled.div `
|
|
5
|
-
display: flex;
|
|
6
|
-
width: fit-content;
|
|
7
|
-
border-radius: 4px;
|
|
8
|
-
border: ${({ colorPalette }) => colorPalette.text.tertiary} 1px solid;
|
|
9
|
-
`;
|
|
10
|
-
const CategoryDiv = styled.div `
|
|
11
|
-
height: 33px;
|
|
12
|
-
border-left: ${({ colorPalette }) => colorPalette.text.tertiary} 1px solid;
|
|
13
|
-
background: ${({ selected, colorPalette }) => selected ? colorPalette.text.tertiary : "none"};
|
|
14
|
-
color: ${({ selected, colorPalette }) => selected ? colorPalette.background.primary : colorPalette.text.tertiary};
|
|
15
|
-
position: relative;
|
|
16
|
-
|
|
17
|
-
&:first-child {
|
|
18
|
-
border-left: none;
|
|
19
|
-
}
|
|
20
|
-
`;
|
|
21
|
-
const CategoryTitle = styled.div `
|
|
22
|
-
display: inline-flex;
|
|
23
|
-
gap: 8px;
|
|
24
|
-
padding: 8px;
|
|
25
|
-
`;
|
|
26
|
-
;
|
|
27
|
-
export const MultiToggleButton = (props) => {
|
|
28
|
-
const { colorPalette, optionsObj, selected, setSelected, ...inputProps } = props;
|
|
29
|
-
const [categories, setCategories] = useState();
|
|
30
|
-
const ref = useRef(null);
|
|
31
|
-
useEffect(() => {
|
|
32
|
-
setCategories(Object.keys(optionsObj));
|
|
33
|
-
}, [optionsObj]);
|
|
34
|
-
const toggleSelected = (location) => {
|
|
35
|
-
setSelected(location);
|
|
36
|
-
};
|
|
37
|
-
return (React.createElement(MultiToggleButtonDiv, { colorPalette: colorPalette, ref: ref }, categories?.map((cat) => {
|
|
38
|
-
return (React.createElement(CategoryDiv, { "data-test": optionsObj[cat]?.dataTestId, colorPalette: colorPalette, selected: selected === cat, onClick: () => {
|
|
39
|
-
toggleSelected(cat);
|
|
40
|
-
} },
|
|
41
|
-
React.createElement(CategoryTitle, { colorPalette: colorPalette },
|
|
42
|
-
optionsObj[cat]?.icon,
|
|
43
|
-
React.createElement(Typography, { textColor: selected === cat
|
|
44
|
-
? colorPalette.background.primary
|
|
45
|
-
: colorPalette.text.tertiary, content: optionsObj[cat]?.title || cat, variant: "Small" }))));
|
|
46
|
-
})));
|
|
47
|
-
};
|
|
48
|
-
//# sourceMappingURL=MultiToggleButton.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"MultiToggleButton.js","sourceRoot":"","sources":["../../../lib/Atoms/MultiToggleButton/MultiToggleButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK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C;IACxC,CAAC,EAAE,CAAC,UAAU,CAAC,CAAC,CAAC;IAEjB,MAAM,cAAc,GAAG,CAAC,QAAgB,EAAE,EAAE;QAC3C,WAAW,CAAC,QAAQ,CAAC,CAAC;IACvB,CAAC,CAAC;IAEF,OAAO,CACN,oBAAC,oBAAoB,IAAC,YAAY,EAAE,YAAY,EAAE,GAAG,EAAE,GAAG,IACxD,UAAU,EAAE,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE;QACxB,OAAO,CACN,oBAAC,WAAW,iBACA,UAAU,CAAC,GAAG,CAAC,EAAE,UAAU,EACtC,YAAY,EAAE,YAAY,EAC1B,QAAQ,EAAE,QAAQ,KAAK,GAAG,EAC1B,OAAO,EAAE,GAAG,EAAE;gBACb,cAAc,CAAC,GAAG,CAAC,CAAC;YACrB,CAAC;YAED,oBAAC,aAAa,IAAC,YAAY,EAAE,YAAY;gBACvC,UAAU,CAAC,GAAG,CAAC,EAAE,IAAI;gBACtB,oBAAC,UAAU,IACV,SAAS,EACR,QAAQ,KAAK,GAAG;wBACf,CAAC,CAAC,YAAY,CAAC,UAAU,CAAC,OAAO;wBACjC,CAAC,CAAC,YAAY,CAAC,IAAI,CAAC,QAAQ,EAE9B,OAAO,EAAE,UAAU,CAAC,GAAG,CAAC,EAAE,KAAK,IAAI,GAAG,EACtC,OAAO,EAAE,OAAO,GACf,CACa,CACH,CACd,CAAC;IACH,CAAC,CAAC,CACoB,CACvB,CAAC;AACH,CAAC,CAAC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { Colors } from "Theme/types";
|
|
3
|
-
interface PhotologRowProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement> {
|
|
4
|
-
colorPalette: Colors;
|
|
5
|
-
thumbnailSrc?: string | undefined;
|
|
6
|
-
fields: React.ReactNode[] | JSX.Element[];
|
|
7
|
-
checkedRows: string[];
|
|
8
|
-
setCheckedRows: React.Dispatch<React.SetStateAction<string[]>>;
|
|
9
|
-
rowId: string;
|
|
10
|
-
allRowIds: string[];
|
|
11
|
-
headers: string[];
|
|
12
|
-
firstRow: boolean;
|
|
13
|
-
}
|
|
14
|
-
export declare const PhotologRow: (props: PhotologRowProps) => React.JSX.Element;
|
|
15
|
-
export {};
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import styled from "@emotion/styled";
|
|
3
|
-
import { Typography } from "../../Atoms/Typography/Typography";
|
|
4
|
-
const Table = styled.table `
|
|
5
|
-
border-collapse: collapse;
|
|
6
|
-
width: max-content;
|
|
7
|
-
`;
|
|
8
|
-
const TableHead = styled.thead `
|
|
9
|
-
background: ${({ colorPalette }) => colorPalette.background.primary};
|
|
10
|
-
`;
|
|
11
|
-
const TableRow = styled.tr `
|
|
12
|
-
height: 56px;
|
|
13
|
-
background: ${({ colorPalette }) => colorPalette.background.primary};
|
|
14
|
-
border-bottom: ${({ colorPalette }) => `${colorPalette.border.primary} 0.5px solid`};
|
|
15
|
-
`;
|
|
16
|
-
const TableHeaderCell = styled.th `
|
|
17
|
-
padding: 8px 24px;
|
|
18
|
-
text-align: left;
|
|
19
|
-
color: ${({ colorPalette }) => colorPalette.text.primary};
|
|
20
|
-
font-weight: 600;
|
|
21
|
-
border-bottom: ${({ colorPalette }) => `${colorPalette.border.primary} 0.5px solid`};
|
|
22
|
-
`;
|
|
23
|
-
const TableCell = styled.td `
|
|
24
|
-
padding: 8px 24px;
|
|
25
|
-
text-align: left;
|
|
26
|
-
border-bottom: ${({ colorPalette }) => `${colorPalette.border.primary} 0.5px solid`};
|
|
27
|
-
`;
|
|
28
|
-
const StyledCheckbox = styled.input `
|
|
29
|
-
display: flex;
|
|
30
|
-
padding: 16px;
|
|
31
|
-
justify-content: center;
|
|
32
|
-
align-items: center;
|
|
33
|
-
gap: 16px;
|
|
34
|
-
width: 20px;
|
|
35
|
-
height: 20px;
|
|
36
|
-
flex-shrink: 0;
|
|
37
|
-
`;
|
|
38
|
-
export const PhotologRow = (props) => {
|
|
39
|
-
const { colorPalette, fields, checkedRows, setCheckedRows, rowId, thumbnailSrc, allRowIds, headers, firstRow } = props;
|
|
40
|
-
const handleCheckOrUncheck = (id) => {
|
|
41
|
-
setCheckedRows((prev) => prev.includes(id)
|
|
42
|
-
? prev.filter((row) => row !== id)
|
|
43
|
-
: [...prev, id]);
|
|
44
|
-
};
|
|
45
|
-
return (React.createElement(Table, { colorPalette: colorPalette },
|
|
46
|
-
firstRow && (React.createElement(TableHead, { colorPalette: colorPalette },
|
|
47
|
-
React.createElement(TableRow, { colorPalette: colorPalette },
|
|
48
|
-
React.createElement(TableHeaderCell, { colorPalette: colorPalette },
|
|
49
|
-
React.createElement(StyledCheckbox, { type: "checkbox", id: "check-all", checked: checkedRows.length === allRowIds.length && allRowIds.length > 0, onChange: (e) => {
|
|
50
|
-
if (e.target.checked) {
|
|
51
|
-
setCheckedRows(allRowIds);
|
|
52
|
-
}
|
|
53
|
-
else {
|
|
54
|
-
setCheckedRows([]);
|
|
55
|
-
}
|
|
56
|
-
} })),
|
|
57
|
-
headers.map((header, idx) => (React.createElement(TableHeaderCell, { colorPalette: colorPalette, key: idx },
|
|
58
|
-
React.createElement(Typography, { variant: "Heading 5", textColor: colorPalette.text.primary }, header || ""))))))),
|
|
59
|
-
React.createElement("tbody", null,
|
|
60
|
-
React.createElement(TableRow, { colorPalette: colorPalette },
|
|
61
|
-
React.createElement(TableCell, { colorPalette: colorPalette },
|
|
62
|
-
React.createElement(StyledCheckbox, { type: "checkbox", id: rowId, checked: checkedRows.includes(rowId), onChange: () => handleCheckOrUncheck(rowId) })),
|
|
63
|
-
Array.isArray(fields) &&
|
|
64
|
-
fields.map((element, idx) => (React.createElement(TableCell, { colorPalette: colorPalette, key: idx }, element)))))));
|
|
65
|
-
};
|
|
66
|
-
//# sourceMappingURL=PhotologRow.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PhotologRow.js","sourceRoot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AI,EAAE,CACJ,CACC,CACrB,CAAC,CACK,CACH,CACf;QACD;YACI,oBAAC,QAAQ,IAAC,YAAY,EAAE,YAAY;gBAChC,oBAAC,SAAS,IAAC,YAAY,EAAE,YAAY;oBACjC,oBAAC,cAAc,IACX,IAAI,EAAC,UAAU,EACf,EAAE,EAAE,KAAK,EACT,OAAO,EAAE,WAAW,CAAC,QAAQ,CAAC,KAAK,CAAC,EACpC,QAAQ,EAAE,GAAG,EAAE,CAAC,oBAAoB,CAAC,KAAK,CAAC,GAC7C,CACM;gBACX,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC;oBAClB,MAAM,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,GAAG,EAAE,EAAE,CAAC,CACzB,oBAAC,SAAS,IAAC,YAAY,EAAE,YAAY,EAAE,GAAG,EAAE,GAAG,IAC1C,OAAO,CACA,CACf,CAAC,CACC,CACP,CACJ,CACX,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -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,MAAM,OAAO,CAAC;AAEnD,OAAO,MAAM,MAAM,iBAAiB,CAA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