@factorearth/component-library 3.2.9 → 3.3.3-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/Buttons/Button.d.ts +1 -1
- package/dist/Atoms/Buttons/Button.js +17 -17
- package/dist/Atoms/Buttons/Button.js.map +1 -1
- package/dist/Atoms/ContentDropdown/ContentDropdown.d.ts +11 -0
- package/dist/Atoms/ContentDropdown/ContentDropdown.js +37 -0
- package/dist/Atoms/ContentDropdown/ContentDropdown.js.map +1 -0
- package/dist/Atoms/DateField/DateField.d.ts +1 -1
- package/dist/Atoms/DateField/DateField.js +94 -94
- package/dist/Atoms/DateField/DateField.js.map +1 -1
- package/dist/Atoms/DropdownField/DropdownField.d.ts +1 -1
- package/dist/Atoms/FieldWrapper/FieldWrapper.js +21 -21
- package/dist/Atoms/MoreHorizonButton/MoreHorizonButton.js +52 -52
- package/dist/Atoms/NoteField/NoteField.js +38 -38
- package/dist/Atoms/NumberField/NumberField.d.ts +1 -1
- package/dist/Atoms/NumberField/NumberField.js +63 -63
- package/dist/Atoms/NumberField/NumberField.js.map +1 -1
- package/dist/Atoms/Pagination/Pagination.js +26 -26
- package/dist/Atoms/PhoneNumberField/PhoneNumberField.d.ts +1 -1
- package/dist/Atoms/PhoneNumberField/PhoneNumberField.js +8 -6
- package/dist/Atoms/PhoneNumberField/PhoneNumberField.js.map +1 -1
- package/dist/Atoms/SelectField/SelectField.d.ts +1 -1
- package/dist/Atoms/SortDropdown/SortDropdown.js +39 -39
- package/dist/Atoms/Tab/Tab.d.ts +10 -0
- package/dist/Atoms/Tab/Tab.js +27 -0
- package/dist/Atoms/Tab/Tab.js.map +1 -0
- package/dist/Atoms/TextField/TextField.d.ts +1 -1
- package/dist/Atoms/TextField/TextField.js +23 -20
- package/dist/Atoms/TextField/TextField.js.map +1 -1
- package/dist/Molecules/Form/Form.d.ts +14 -0
- package/dist/Molecules/Form/Form.js +17 -0
- package/dist/Molecules/Form/Form.js.map +1 -0
- package/dist/Molecules/Thumbnail/Thumbnail.d.ts +1 -1
- package/dist/Molecules/Thumbnail/Thumbnail.js +51 -51
- package/dist/Molecules/Thumbnail/Thumbnail.js.map +1 -1
- package/dist/Organisms/Card/Card.d.ts +1 -1
- package/dist/Organisms/Card/Card.js +36 -36
- package/dist/Organisms/Card/Card.js.map +1 -1
- package/dist/Organisms/Modal/Modal.d.ts +4 -4
- package/dist/Organisms/Modal/Modal.js +68 -68
- package/dist/Organisms/Modal/Modal.js.map +1 -1
- package/dist/Organisms/TabManager/TabManager.d.ts +9 -0
- package/dist/Organisms/TabManager/TabManager.js +47 -0
- package/dist/Organisms/TabManager/TabManager.js.map +1 -0
- package/dist/Theme/ThemeProvider.js +36 -8
- package/dist/Theme/ThemeProvider.js.map +1 -1
- package/dist/Theme/tokens.json +24 -0
- package/dist/Theme/types.d.ts +21 -1
- package/package.json +2 -2
|
@@ -2,56 +2,56 @@ import React, { useState, useRef, useEffect, } from "react";
|
|
|
2
2
|
import styled from "@emotion/styled";
|
|
3
3
|
import { FiTrash2, FiEye, FiEyeOff, FiSettings } from "react-icons/fi";
|
|
4
4
|
import { Button } from "../../Atoms/Buttons/Button";
|
|
5
|
-
const Container = styled.div `
|
|
6
|
-
display: flex;
|
|
7
|
-
flex-direction: column;
|
|
8
|
-
align-items: end;
|
|
9
|
-
justify-content: start;
|
|
10
|
-
gap: 16px;
|
|
11
|
-
flex-shrink: 0;
|
|
12
|
-
background-color: ${({
|
|
13
|
-
${({ showImage, showSettings }) => showImage && `height: 278px; width: 200px`}
|
|
5
|
+
const Container = styled.div `
|
|
6
|
+
display: flex;
|
|
7
|
+
flex-direction: column;
|
|
8
|
+
align-items: end;
|
|
9
|
+
justify-content: start;
|
|
10
|
+
gap: 16px;
|
|
11
|
+
flex-shrink: 0;
|
|
12
|
+
background-color: ${({ colors }) => colors.background.primary};
|
|
13
|
+
${({ showImage, showSettings }) => showImage && `height: 278px; width: 200px`}
|
|
14
14
|
`;
|
|
15
|
-
const InputArea = styled.div `
|
|
16
|
-
width: 150px;
|
|
17
|
-
height: 132px;
|
|
18
|
-
display: flex;
|
|
19
|
-
justify-content: center;
|
|
20
|
-
align-items: center;
|
|
21
|
-
background-color: ${({
|
|
22
|
-
border-style: solid;
|
|
23
|
-
border-width: 1px;
|
|
24
|
-
border-color: ${({
|
|
25
|
-
position: relative;
|
|
26
|
-
cursor: pointer;
|
|
27
|
-
overflow: hidden;
|
|
28
|
-
border-radius: 4px;
|
|
29
|
-
padding: 24px;
|
|
15
|
+
const InputArea = styled.div `
|
|
16
|
+
width: 150px;
|
|
17
|
+
height: 132px;
|
|
18
|
+
display: flex;
|
|
19
|
+
justify-content: center;
|
|
20
|
+
align-items: center;
|
|
21
|
+
background-color: ${({ colors }) => colors.background.tertiary};
|
|
22
|
+
border-style: solid;
|
|
23
|
+
border-width: 1px;
|
|
24
|
+
border-color: ${({ colors }) => colors.border.primary};
|
|
25
|
+
position: relative;
|
|
26
|
+
cursor: pointer;
|
|
27
|
+
overflow: hidden;
|
|
28
|
+
border-radius: 4px;
|
|
29
|
+
padding: 24px;
|
|
30
30
|
`;
|
|
31
|
-
const SettingsArea = styled.div `
|
|
32
|
-
width: 168px;
|
|
33
|
-
height: 148px;
|
|
34
|
-
display: flex;
|
|
35
|
-
justify-content: center;
|
|
36
|
-
align-items: center;
|
|
37
|
-
background-color: ${({
|
|
38
|
-
border-style: solid;
|
|
39
|
-
border-width: 1px;
|
|
40
|
-
border-color: ${({
|
|
41
|
-
cursor: pointer;
|
|
42
|
-
overflow: hidden;
|
|
43
|
-
border-radius: 4px;
|
|
44
|
-
gap: 16px;
|
|
45
|
-
padding: 16px;
|
|
31
|
+
const SettingsArea = styled.div `
|
|
32
|
+
width: 168px;
|
|
33
|
+
height: 148px;
|
|
34
|
+
display: flex;
|
|
35
|
+
justify-content: center;
|
|
36
|
+
align-items: center;
|
|
37
|
+
background-color: ${({ colors }) => colors.background.secondary};
|
|
38
|
+
border-style: solid;
|
|
39
|
+
border-width: 1px;
|
|
40
|
+
border-color: ${({ colors }) => colors.border.primary};
|
|
41
|
+
cursor: pointer;
|
|
42
|
+
overflow: hidden;
|
|
43
|
+
border-radius: 4px;
|
|
44
|
+
gap: 16px;
|
|
45
|
+
padding: 16px;
|
|
46
46
|
`;
|
|
47
|
-
const PreviewImage = styled.img `
|
|
48
|
-
width: 100%;
|
|
49
|
-
height: 100%;
|
|
50
|
-
object-fit: cover;
|
|
51
|
-
position: absolute;
|
|
52
|
-
top: 0;
|
|
53
|
-
left: 0;
|
|
54
|
-
z-index: 1;
|
|
47
|
+
const PreviewImage = styled.img `
|
|
48
|
+
width: 100%;
|
|
49
|
+
height: 100%;
|
|
50
|
+
object-fit: cover;
|
|
51
|
+
position: absolute;
|
|
52
|
+
top: 0;
|
|
53
|
+
left: 0;
|
|
54
|
+
z-index: 1;
|
|
55
55
|
`;
|
|
56
56
|
export const Thumbnail = ({ colorPalette, handleSubmit, settingsChildren, showImage, setShowImage, fieldInstance, s3Key, signedUrl, uploadButtonText, handleRemove, changed, handleChange, }) => {
|
|
57
57
|
const [selectedImage, setSelectedImage] = useState(null);
|
|
@@ -112,17 +112,17 @@ export const Thumbnail = ({ colorPalette, handleSubmit, settingsChildren, showIm
|
|
|
112
112
|
const handleToggleSettings = () => {
|
|
113
113
|
setShowSettings(!showSettings);
|
|
114
114
|
};
|
|
115
|
-
return (React.createElement(Container, {
|
|
115
|
+
return (React.createElement(Container, { colors: colorPalette, showImage: showImage, showSettings: showSettings, key: `thumbnail_${fieldInstance.id}` },
|
|
116
116
|
React.createElement("div", { style: { display: "flex" } },
|
|
117
117
|
React.createElement(Button, { colorPalette: colorPalette, icon: !showImage ? React.createElement(FiEye, null) : React.createElement(FiEyeOff, null), variant: "outlined", onClick: handleToggleImage, "aria-label": !showImage ? "show-image" : "hide-image" }),
|
|
118
118
|
showImage && selectedImage && (React.createElement(React.Fragment, null,
|
|
119
119
|
React.createElement(Button, { colorPalette: colorPalette, icon: React.createElement(FiSettings, null), variant: "outlined", style: { borderColor: "transparent" }, onClick: handleToggleSettings }),
|
|
120
120
|
handleRemove && (React.createElement(Button, { colorPalette: colorPalette, icon: React.createElement(FiTrash2, null), variant: "destructive", onClick: handleRemove }))))),
|
|
121
|
-
showImage && !showSettings && (React.createElement(InputArea, { onDrop: handleDrop, onDragOver: handleDragOver,
|
|
122
|
-
selectedImage && (React.createElement(PreviewImage, { alt: s3Key || "Uploaded Image",
|
|
121
|
+
showImage && !showSettings && (React.createElement(InputArea, { onDrop: handleDrop, onDragOver: handleDragOver, colors: colorPalette },
|
|
122
|
+
selectedImage && (React.createElement(PreviewImage, { alt: s3Key || "Uploaded Image", src: selectedImage })),
|
|
123
123
|
React.createElement(Button, { colorPalette: colorPalette, label: "Browse", variant: "filled", onClick: handleBrowseClick },
|
|
124
124
|
React.createElement("input", { type: "file", name: "key", accept: acceptedFileTypes.join(","), onChange: handleImageUpload, ref: inputRef, id: `upload-image-${fieldInstance.id}`, multiple: false, style: { display: "none" } })))),
|
|
125
|
-
showSettings && showImage && (React.createElement(SettingsArea, {
|
|
125
|
+
showSettings && showImage && (React.createElement(SettingsArea, { colors: colorPalette }, settingsChildren)),
|
|
126
126
|
changed && (React.createElement(Button, { colorPalette: colorPalette, onClick: handleSubmit, variant: "filled", style: { margin: "0 auto" } }, uploadButtonText))));
|
|
127
127
|
};
|
|
128
128
|
//# sourceMappingURL=Thumbnail.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Thumbnail.js","sourceRoot":"","sources":["../../../lib/Molecules/Thumbnail/Thumbnail.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EACb,QAAQ,EAER,MAAM,EAGN,SAAS,GACT,MAAM,OAAO,CAAC;AACf,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAErC,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,gBAAgB,CA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AE,KAAK,IAAI,gBAAgB,EAC9B,GAAG,EAAE,aAAa,GACjB,CACF;YACD,oBAAC,MAAM,IACN,YAAY,EAAE,YAAY,EAC1B,KAAK,EAAC,QAAQ,EACd,OAAO,EAAC,QAAQ,EAChB,OAAO,EAAE,iBAAiB;gBAE1B,+BACC,IAAI,EAAC,MAAM,EACX,IAAI,EAAC,KAAK,EACV,MAAM,EAAE,iBAAiB,CAAC,IAAI,CAAC,GAAG,CAAC,EACnC,QAAQ,EAAE,iBAAiB,EAC3B,GAAG,EAAE,QAAQ,EACb,EAAE,EAAE,gBAAgB,aAAa,CAAC,EAAE,EAAE,EACtC,QAAQ,EAAE,KAAK,EACf,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,GACzB,CACM,CACE,CACZ;QACA,YAAY,IAAI,SAAS,IAAI,CAC7B,oBAAC,YAAY,IAAC,MAAM,EAAE,YAAY,IAAG,gBAAgB,CAAgB,CACrE;QACA,OAAO,IAAI,CACX,oBAAC,MAAM,IACN,YAAY,EAAE,YAAY,EAC1B,OAAO,EAAE,YAAmB,EAC5B,OAAO,EAAC,QAAQ,EAChB,KAAK,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,IAE1B,gBAAgB,CACT,CACT,CACU,CACZ,CAAC;AACH,CAAC,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { Colors } from "../../Theme/types";
|
|
3
3
|
interface CardProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement> {
|
|
4
|
-
colorPalette: Colors
|
|
4
|
+
colorPalette: Colors;
|
|
5
5
|
thumbnail: JSX.Element;
|
|
6
6
|
thumbnailSectionFields: React.ReactNode[] | JSX.Element[];
|
|
7
7
|
remainingFields: React.ReactNode[] | JSX.Element[];
|
|
@@ -1,44 +1,44 @@
|
|
|
1
1
|
import React, { forwardRef } from "react";
|
|
2
2
|
import styled from "@emotion/styled";
|
|
3
|
-
const CardContainer = styled.div `
|
|
4
|
-
padding: 24px;
|
|
5
|
-
background-color: ${({ colorPalette }) => colorPalette.background.primary};
|
|
6
|
-
border-width: 0.5px;
|
|
7
|
-
border-style: solid;
|
|
8
|
-
border-color: ${({ colorPalette }) => colorPalette.border.primary};
|
|
9
|
-
border-right: none;
|
|
10
|
-
border-left: none;
|
|
3
|
+
const CardContainer = styled.div `
|
|
4
|
+
padding: 24px;
|
|
5
|
+
background-color: ${({ colorPalette }) => colorPalette.background.primary};
|
|
6
|
+
border-width: 0.5px;
|
|
7
|
+
border-style: solid;
|
|
8
|
+
border-color: ${({ colorPalette }) => colorPalette.border.primary};
|
|
9
|
+
border-right: none;
|
|
10
|
+
border-left: none;
|
|
11
11
|
`;
|
|
12
|
-
const FieldsXThumbnailSection = styled.section `
|
|
13
|
-
display: flex;
|
|
14
|
-
justify-content: space-between;
|
|
15
|
-
flex-direction: row-reverse;
|
|
16
|
-
background-color: ${({ colorPalette }) => colorPalette.background.primary};
|
|
17
|
-
@media (max-width: 600px) {
|
|
18
|
-
flex-direction: column;
|
|
19
|
-
align-items: flex-end;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
:has(div > div[aria-label="show-image"]) {
|
|
23
|
-
flex-direction: column;
|
|
24
|
-
}
|
|
12
|
+
const FieldsXThumbnailSection = styled.section `
|
|
13
|
+
display: flex;
|
|
14
|
+
justify-content: space-between;
|
|
15
|
+
flex-direction: row-reverse;
|
|
16
|
+
background-color: ${({ colorPalette }) => colorPalette.background.primary};
|
|
17
|
+
@media (max-width: 600px) {
|
|
18
|
+
flex-direction: column;
|
|
19
|
+
align-items: flex-end;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
:has(div > div[aria-label="show-image"]) {
|
|
23
|
+
flex-direction: column;
|
|
24
|
+
}
|
|
25
25
|
`;
|
|
26
|
-
const ThumbnailSectionFields = styled.section `
|
|
27
|
-
padding: 16px 24px 0px 0px;
|
|
28
|
-
background-color: ${({ colorPalette }) => colorPalette.background.primary};
|
|
29
|
-
display: flex;
|
|
30
|
-
flex-direction: column;
|
|
31
|
-
justify-content: center;
|
|
32
|
-
width: 100%;
|
|
33
|
-
@media (max-width: 600px) {
|
|
34
|
-
padding: 16px 0px 0px 24px;
|
|
35
|
-
}
|
|
26
|
+
const ThumbnailSectionFields = styled.section `
|
|
27
|
+
padding: 16px 24px 0px 0px;
|
|
28
|
+
background-color: ${({ colorPalette }) => colorPalette.background.primary};
|
|
29
|
+
display: flex;
|
|
30
|
+
flex-direction: column;
|
|
31
|
+
justify-content: center;
|
|
32
|
+
width: 100%;
|
|
33
|
+
@media (max-width: 600px) {
|
|
34
|
+
padding: 16px 0px 0px 24px;
|
|
35
|
+
}
|
|
36
36
|
`;
|
|
37
|
-
const ButtonContainer = styled.div `
|
|
38
|
-
display: flex;
|
|
39
|
-
justify-content: flex-end;
|
|
40
|
-
gap: 24px;
|
|
41
|
-
padding-top: 24px;
|
|
37
|
+
const ButtonContainer = styled.div `
|
|
38
|
+
display: flex;
|
|
39
|
+
justify-content: flex-end;
|
|
40
|
+
gap: 24px;
|
|
41
|
+
padding-top: 24px;
|
|
42
42
|
`;
|
|
43
43
|
export const Card = forwardRef((props, ref) => {
|
|
44
44
|
const { colorPalette, thumbnail, thumbnailSectionFields, remainingFields, buttons, } = props;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Card.js","sourceRoot":"","sources":["../../../lib/Organisms/Card/Card.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAgB,UAAU,EAAE,MAAM,OAAO,CAAC;AACxD,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAGrC,MAAM,aAAa,GAAG,MAAM,CAAC,GAAG,
|
|
1
|
+
{"version":3,"file":"Card.js","sourceRoot":"","sources":["../../../lib/Organisms/Card/Card.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAgB,UAAU,EAAE,MAAM,OAAO,CAAC;AACxD,OAAO,MAAM,MAAM,iB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AO,CAAC;QAC1C,oBAAC,eAAe,QAAE,OAAO,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,CAAmB,CACvD,CAChB,CAAC;AACH,CAAC,CACD,CAAC"}
|
|
@@ -1,12 +1,12 @@
|
|
|
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 declare const StyledDialog: import("@emotion/styled").StyledComponent<Dialog.DialogOverlayProps &
|
|
4
|
+
export declare const StyledDialog: import("@emotion/styled").StyledComponent<Dialog.DialogOverlayProps & import("react").RefAttributes<HTMLDivElement> & {
|
|
5
5
|
theme?: import("@emotion/react").Theme;
|
|
6
6
|
} & {
|
|
7
7
|
colorPalette: Colors;
|
|
8
8
|
}, {}, {}>;
|
|
9
|
-
export declare const StyledContent: import("@emotion/styled").StyledComponent<Dialog.DialogContentProps &
|
|
9
|
+
export declare const StyledContent: import("@emotion/styled").StyledComponent<Dialog.DialogContentProps & import("react").RefAttributes<HTMLDivElement> & {
|
|
10
10
|
theme?: import("@emotion/react").Theme;
|
|
11
11
|
} & {
|
|
12
12
|
colorPalette: Colors;
|
|
@@ -42,12 +42,12 @@ export declare const ModalInputBox: import("@emotion/styled").StyledComponent<{
|
|
|
42
42
|
interface ModalProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement> {
|
|
43
43
|
open: boolean;
|
|
44
44
|
children: React.ReactNode;
|
|
45
|
-
colorPalette: Colors
|
|
45
|
+
colorPalette: Colors;
|
|
46
46
|
setOpen: (open: boolean) => void;
|
|
47
47
|
}
|
|
48
48
|
export declare const Modal: (props: ModalProps) => React.JSX.Element;
|
|
49
49
|
interface ConfirmationModalProps {
|
|
50
|
-
colorPalette: Colors
|
|
50
|
+
colorPalette: Colors;
|
|
51
51
|
setOpen: React.Dispatch<React.SetStateAction<boolean>>;
|
|
52
52
|
confirmTitle: string;
|
|
53
53
|
confirmText: string;
|
|
@@ -3,82 +3,82 @@ 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
|
-
export const StyledDialog = styled(Dialog.Overlay) `
|
|
7
|
-
background-color: ${({ colorPalette }) => colorPalette.background.secondary};
|
|
8
|
-
opacity: 0.8;
|
|
9
|
-
position: absolute;
|
|
10
|
-
inset: 0;
|
|
11
|
-
animation: overlayShow 150ms cubic-bezier(0.16, 1, 0.3, 1);
|
|
12
|
-
z-index: 1000;
|
|
6
|
+
export const StyledDialog = styled(Dialog.Overlay) `
|
|
7
|
+
background-color: ${({ colorPalette }) => colorPalette.background.secondary};
|
|
8
|
+
opacity: 0.8;
|
|
9
|
+
position: absolute;
|
|
10
|
+
inset: 0;
|
|
11
|
+
animation: overlayShow 150ms cubic-bezier(0.16, 1, 0.3, 1);
|
|
12
|
+
z-index: 1000;
|
|
13
13
|
`;
|
|
14
|
-
export const StyledContent = styled(Dialog.Content) `
|
|
15
|
-
background-color: ${({ colorPalette }) => colorPalette.background.primary};
|
|
16
|
-
box-shadow: ${({ colorPalette }) => `${colorPalette.background.secondary} 0px 5px 15px`};
|
|
17
|
-
color: ${({ colorPalette }) => colorPalette.text.primary};
|
|
18
|
-
border-radius: 4px;
|
|
19
|
-
position: fixed;
|
|
20
|
-
top: 50%;
|
|
21
|
-
left: 50%;
|
|
22
|
-
transform: translate(-50%, -50%);
|
|
23
|
-
max-height: 85vh;
|
|
24
|
-
animation: contentShow 150ms cubic-bezier(0.16, 1, 0.3, 1);
|
|
25
|
-
z-index: 1000;
|
|
26
|
-
display: flex;
|
|
27
|
-
flex-direction: column;
|
|
28
|
-
min-width: 300px;
|
|
29
|
-
gap: 16px;
|
|
30
|
-
:focus {
|
|
31
|
-
outline: none;
|
|
32
|
-
}
|
|
14
|
+
export const StyledContent = styled(Dialog.Content) `
|
|
15
|
+
background-color: ${({ colorPalette }) => colorPalette.background.primary};
|
|
16
|
+
box-shadow: ${({ colorPalette }) => `${colorPalette.background.secondary} 0px 5px 15px`};
|
|
17
|
+
color: ${({ colorPalette }) => colorPalette.text.primary};
|
|
18
|
+
border-radius: 4px;
|
|
19
|
+
position: fixed;
|
|
20
|
+
top: 50%;
|
|
21
|
+
left: 50%;
|
|
22
|
+
transform: translate(-50%, -50%);
|
|
23
|
+
max-height: 85vh;
|
|
24
|
+
animation: contentShow 150ms cubic-bezier(0.16, 1, 0.3, 1);
|
|
25
|
+
z-index: 1000;
|
|
26
|
+
display: flex;
|
|
27
|
+
flex-direction: column;
|
|
28
|
+
min-width: 300px;
|
|
29
|
+
gap: 16px;
|
|
30
|
+
:focus {
|
|
31
|
+
outline: none;
|
|
32
|
+
}
|
|
33
33
|
`;
|
|
34
|
-
export const DialogContainer = styled.div `
|
|
35
|
-
display: flex;
|
|
36
|
-
padding: 24px 24px 0px 24px;
|
|
37
|
-
flex-direction: column;
|
|
38
|
-
align-items: center;
|
|
39
|
-
gap: 16px;
|
|
40
|
-
align-self: stretch;
|
|
34
|
+
export const DialogContainer = styled.div `
|
|
35
|
+
display: flex;
|
|
36
|
+
padding: 24px 24px 0px 24px;
|
|
37
|
+
flex-direction: column;
|
|
38
|
+
align-items: center;
|
|
39
|
+
gap: 16px;
|
|
40
|
+
align-self: stretch;
|
|
41
41
|
`;
|
|
42
|
-
export const ModalTitleContainer = styled.div `
|
|
43
|
-
display: flex;
|
|
44
|
-
justify-content: space-between;
|
|
45
|
-
width: 100%;
|
|
42
|
+
export const ModalTitleContainer = styled.div `
|
|
43
|
+
display: flex;
|
|
44
|
+
justify-content: space-between;
|
|
45
|
+
width: 100%;
|
|
46
46
|
`;
|
|
47
|
-
export const ModalTitle = styled.div `
|
|
48
|
-
font-size: 24px;
|
|
49
|
-
font-style: normal;
|
|
50
|
-
font-weight: 600;
|
|
51
|
-
line-height: 150%;
|
|
47
|
+
export const ModalTitle = styled.div `
|
|
48
|
+
font-size: 24px;
|
|
49
|
+
font-style: normal;
|
|
50
|
+
font-weight: 600;
|
|
51
|
+
line-height: 150%;
|
|
52
52
|
`;
|
|
53
|
-
export const ModalHeading = styled.div `
|
|
54
|
-
font-size: 16px;
|
|
55
|
-
font-style: normal;
|
|
56
|
-
font-weight: 700;
|
|
57
|
-
line-height: 150%;
|
|
53
|
+
export const ModalHeading = styled.div `
|
|
54
|
+
font-size: 16px;
|
|
55
|
+
font-style: normal;
|
|
56
|
+
font-weight: 700;
|
|
57
|
+
line-height: 150%;
|
|
58
58
|
`;
|
|
59
|
-
export const ModelSubHeading = styled.div `
|
|
60
|
-
font-size: 16px;
|
|
61
|
-
font-style: normal;
|
|
62
|
-
font-weight: 400;
|
|
63
|
-
line-height: 24px; /* 150% */
|
|
64
|
-
letter-spacing: 0.16px;
|
|
65
|
-
width: 100%;
|
|
59
|
+
export const ModelSubHeading = styled.div `
|
|
60
|
+
font-size: 16px;
|
|
61
|
+
font-style: normal;
|
|
62
|
+
font-weight: 400;
|
|
63
|
+
line-height: 24px; /* 150% */
|
|
64
|
+
letter-spacing: 0.16px;
|
|
65
|
+
width: 100%;
|
|
66
66
|
`;
|
|
67
|
-
export const ModalFooter = styled.div `
|
|
68
|
-
display: flex;
|
|
69
|
-
padding: 24px 16px;
|
|
70
|
-
justify-content: center;
|
|
71
|
-
align-items: center;
|
|
72
|
-
gap: 16px;
|
|
73
|
-
align-self: stretch;
|
|
67
|
+
export const ModalFooter = styled.div `
|
|
68
|
+
display: flex;
|
|
69
|
+
padding: 24px 16px;
|
|
70
|
+
justify-content: center;
|
|
71
|
+
align-items: center;
|
|
72
|
+
gap: 16px;
|
|
73
|
+
align-self: stretch;
|
|
74
74
|
`;
|
|
75
|
-
export const ModalInputBox = styled.div `
|
|
76
|
-
display: flex;
|
|
77
|
-
width: 322px;
|
|
78
|
-
flex-direction: column;
|
|
79
|
-
justify-content: center;
|
|
80
|
-
align-items: flex-start;
|
|
81
|
-
gap: 8px;
|
|
75
|
+
export const ModalInputBox = styled.div `
|
|
76
|
+
display: flex;
|
|
77
|
+
width: 322px;
|
|
78
|
+
flex-direction: column;
|
|
79
|
+
justify-content: center;
|
|
80
|
+
align-items: flex-start;
|
|
81
|
+
gap: 8px;
|
|
82
82
|
`;
|
|
83
83
|
export const Modal = (props) => {
|
|
84
84
|
const { open, children, colorPalette, setOpen, ...remainderProps } = props;
|
|
@@ -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;AAErC,MAAM,CAAC,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,
|
|
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;AAErC,MAAM,CAAC,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,CAA4B;qBACzD,CAAC,EAAE,YAAY,EAAE,EAAE,EAAE,CAAC,YAAY,CAAC,UAAU,CAAC,SAAS;;;;;;CAM3E,CAAC;AAEF,MAAM,CAAC,MAAM,aAAa,GAAG,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC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oBAAC,aAAa,OACT,cAAc,EAClB,YAAY,EAAE,YAAY,EAC1B,iBAAiB,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,EACvC,oBAAoB,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,IAEzC,QAAQ,CACM,CACD,CACH,CACd,CAAC;AACH,CAAC,CAAC;AAWF,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,KAA6B,EAAE,EAAE;IAClE,MAAM,EACL,YAAY,EACZ,OAAO,EACP,YAAY,EACZ,WAAW,EACX,YAAY,EACZ,IAAI,GACJ,GAAG,KAAK,CAAC;IACV,OAAO,CACN,oBAAC,KAAK,IAAC,YAAY,EAAE,YAAY,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO;QAC9D,oBAAC,eAAe;YACf,oBAAC,mBAAmB;gBACnB,oBAAC,UAAU,QAAE,YAAY,CAAc;gBACvC,oBAAC,GAAG,IAAC,OAAO,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,IAAI,EAAE,EAAE,GAAI,CAC3B;YACtB,oBAAC,eAAe,QAAE,WAAW,CAAmB;YAChD,oBAAC,WAAW;gBACX,oBAAC,MAAM,IACN,YAAY,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,47 @@
|
|
|
1
|
+
import styled from "@emotion/styled";
|
|
2
|
+
import React, { useMemo, useState } from "react";
|
|
3
|
+
import { MdPersonAddAlt } from "react-icons/md";
|
|
4
|
+
import ContentDropdown from "../../Atoms/ContentDropdown/ContentDropdown";
|
|
5
|
+
import Tab from "../../Atoms/Tab/Tab";
|
|
6
|
+
const Container = styled.div `
|
|
7
|
+
display: flex;
|
|
8
|
+
width: 100%;
|
|
9
|
+
padding: 16px 0px;
|
|
10
|
+
flex-direction: column;
|
|
11
|
+
align-items: flex-start;
|
|
12
|
+
background-color: ${({ colors }) => colors.background.absolute}
|
|
13
|
+
`;
|
|
14
|
+
const NavBar = styled.div `
|
|
15
|
+
display: flex;
|
|
16
|
+
padding: 0px 16px;
|
|
17
|
+
align-items: flex-start;
|
|
18
|
+
gap: 8px;
|
|
19
|
+
align-self: stretch;
|
|
20
|
+
border-bottom: 0.5px solid #89949F;
|
|
21
|
+
`;
|
|
22
|
+
function TabManager(props) {
|
|
23
|
+
const { colors, tabLabels, forms } = props;
|
|
24
|
+
if (tabLabels.length <= 0)
|
|
25
|
+
throw new Error(`No tab labels provided`);
|
|
26
|
+
if (forms.length <= 0)
|
|
27
|
+
throw new Error(`No forms provided`);
|
|
28
|
+
if (tabLabels.length !== forms.length)
|
|
29
|
+
throw new Error(`Number of tab labels does not match number of forms`);
|
|
30
|
+
const [expanded, setExpanded] = useState(false);
|
|
31
|
+
const [selectedTab, setSelectedTab] = useState(0);
|
|
32
|
+
const tabs = useMemo(() => {
|
|
33
|
+
function handleSelectTab(index) {
|
|
34
|
+
setSelectedTab(index);
|
|
35
|
+
}
|
|
36
|
+
return tabLabels.map((label, index) => {
|
|
37
|
+
return (React.createElement(Tab, { colors: colors, selected: index === selectedTab, handleClick: () => handleSelectTab(index), label: label }));
|
|
38
|
+
});
|
|
39
|
+
}, [tabLabels, selectedTab]);
|
|
40
|
+
return (React.createElement(Container, { colors: colors },
|
|
41
|
+
React.createElement(ContentDropdown, { colors: colors, expanded: expanded, style: { alignItems: "flex-start" }, handleClick: () => setExpanded(!expanded), icon: React.createElement(MdPersonAddAlt, { color: colors.buttonText.outlined, style: { width: "24px", height: "24px" } }), label: "Advanced", role: "button", tabIndex: 0 }),
|
|
42
|
+
expanded && (React.createElement(React.Fragment, null,
|
|
43
|
+
React.createElement(NavBar, null, tabs),
|
|
44
|
+
forms[selectedTab]))));
|
|
45
|
+
}
|
|
46
|
+
export default TabManager;
|
|
47
|
+
//# sourceMappingURL=TabManager.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TabManager.js","sourceRoot":"","sources":["../../../lib/Organisms/TabManager/TabManager.tsx"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjD,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,eAAe,MAAM,6CAA6C,CAAC;AAC1E,OAAO,GAAG,MAAM,qBAAqB,CAAC;AAGtC,MAAM,SAAS,GAAG,MAAM,CAAC,GAAG,CAAqB;;;;;;qBAM5B,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,MAAM,CAAC,UAAU,CAAC,QAAQ;CAC9D,CAAC;AAEF,MAAM,MAAM,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;;;CAOxB,CAAC;AAQF,SAAS,UAAU,CAAC,KAAY;IAC/B,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,KAAK,EAAE,GAAG,KAAK,CAAC;IAE3C,IAAI,SAAS,CAAC,MAAM,IAAI,CAAC;QAAE,MAAM,IAAI,KAAK,CAAC,wBAAwB,CAAC,CAAC;IACrE,IAAI,KAAK,CAAC,MAAM,IAAI,CAAC;QAAE,MAAM,IAAI,KAAK,CAAC,mBAAmB,CAAC,CAAC;IAC5D,IAAI,SAAS,CAAC,MAAM,KAAK,KAAK,CAAC,MAAM;QAAE,MAAM,IAAI,KAAK,CAAC,qDAAqD,CAAC,CAAC;IAE9G,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC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State } from "react";
|
|
2
2
|
import tokens from "./tokens.json";
|
|
3
|
-
const {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
300: tokens.global["Base Colors"]["300-French-grey"].value,
|
|
7
|
-
400: tokens.global["Base Colors"]["400-cadet-grey"].value,
|
|
8
|
-
500: tokens.global["Base Colors"]["500-slate-grey"].value,
|
|
9
|
-
600: tokens.global["Base Colors"]["600-space-grey"].value,
|
|
10
|
-
700: tokens.global["Base Colors"]["700-grey"].value,
|
|
3
|
+
const { black, blue, green, grey, red, white } = {
|
|
4
|
+
black: {
|
|
5
|
+
1000: tokens.global["Base Colors"]["1000-black"].value
|
|
11
6
|
},
|
|
12
7
|
blue: {
|
|
13
8
|
300: tokens.global["Base Colors"]["300-light-blue"].value,
|
|
@@ -16,9 +11,22 @@ const { grey, blue, green, red } = {
|
|
|
16
11
|
green: {
|
|
17
12
|
500: tokens.global["Base Colors"]["500-green"].value,
|
|
18
13
|
},
|
|
14
|
+
grey: {
|
|
15
|
+
200: tokens.global["Base Colors"]["200-white-grey"].value,
|
|
16
|
+
300: tokens.global["Base Colors"]["300-French-grey"].value,
|
|
17
|
+
400: tokens.global["Base Colors"]["400-cadet-grey"].value,
|
|
18
|
+
500: tokens.global["Base Colors"]["500-slate-grey"].value,
|
|
19
|
+
600: tokens.global["Base Colors"]["600-space-grey"].value,
|
|
20
|
+
700: tokens.global["Base Colors"]["700-grey"].value,
|
|
21
|
+
800: tokens.global["Base Colors"]["800-grey"].value,
|
|
22
|
+
1000: tokens.global["Base Colors"]["1000-grey"].value
|
|
23
|
+
},
|
|
19
24
|
red: {
|
|
20
25
|
500: tokens.global["Base Colors"]["500-red"].value,
|
|
21
26
|
},
|
|
27
|
+
white: {
|
|
28
|
+
100: tokens.global["Base Colors"]["100-white"].value
|
|
29
|
+
},
|
|
22
30
|
};
|
|
23
31
|
export const lightTheme = {
|
|
24
32
|
text: {
|
|
@@ -28,10 +36,12 @@ export const lightTheme = {
|
|
|
28
36
|
badge: grey["700"],
|
|
29
37
|
},
|
|
30
38
|
background: {
|
|
39
|
+
absolute: white["100"],
|
|
31
40
|
primary: grey["200"],
|
|
32
41
|
secondary: grey["300"],
|
|
33
42
|
tertiary: blue["300"],
|
|
34
43
|
tableRow: blue["300"],
|
|
44
|
+
disabledInput: grey["800"]
|
|
35
45
|
},
|
|
36
46
|
border: {
|
|
37
47
|
primary: grey["500"],
|
|
@@ -66,6 +76,14 @@ export const lightTheme = {
|
|
|
66
76
|
destructive: red["500"],
|
|
67
77
|
success: green["500"],
|
|
68
78
|
},
|
|
79
|
+
tab: {
|
|
80
|
+
selected: grey["500"],
|
|
81
|
+
notSelected: white["100"],
|
|
82
|
+
},
|
|
83
|
+
tabText: {
|
|
84
|
+
selected: white["100"],
|
|
85
|
+
notSelected: grey["500"]
|
|
86
|
+
},
|
|
69
87
|
theme: "light",
|
|
70
88
|
};
|
|
71
89
|
export const darkTheme = {
|
|
@@ -76,10 +94,12 @@ export const darkTheme = {
|
|
|
76
94
|
badge: grey["700"],
|
|
77
95
|
},
|
|
78
96
|
background: {
|
|
97
|
+
absolute: black["1000"],
|
|
79
98
|
primary: grey["700"],
|
|
80
99
|
secondary: grey["600"],
|
|
81
100
|
tertiary: blue["700"],
|
|
82
101
|
tableRow: grey["600"],
|
|
102
|
+
disabledInput: grey["1000"]
|
|
83
103
|
},
|
|
84
104
|
border: {
|
|
85
105
|
primary: grey["500"],
|
|
@@ -114,6 +134,14 @@ export const darkTheme = {
|
|
|
114
134
|
destructive: red["500"],
|
|
115
135
|
success: green["500"],
|
|
116
136
|
},
|
|
137
|
+
tab: {
|
|
138
|
+
selected: grey["400"],
|
|
139
|
+
notSelected: black["1000"],
|
|
140
|
+
},
|
|
141
|
+
tabText: {
|
|
142
|
+
selected: black["1000"],
|
|
143
|
+
notSelected: grey["400"]
|
|
144
|
+
},
|
|
117
145
|
theme: "dark",
|
|
118
146
|
};
|
|
119
147
|
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;AAInC,MAAM,EAAE,
|
|
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;AAInC,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,GAAG,EAAE,KAAK,EAAE,GAAoB;IACjE,KAAK,EAAE;QACN,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC,YAAY,CAAC,CAAC,KAAK;KACtD;IACD,IAAI,EAAE;QACL,GAAG,EAAE,MAAM,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC,gBAAgB,CAAC,CAAC,KAAK;QACzD,GAAG,EAAE,MAAM,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC,UAAU,CAAC,CAAC,KAAK;KACnD;IACD,KAAK,EAAE;QACN,GAAG,EAAE,MAAM,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC,WAAW,CAAC,CAAC,KAAK;KACpD;IACD,IAAI,EAAE;QACL,GAAG,EAAE,MAAM,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC,gBAAgB,CAAC,CAAC,KAAK;QACzD,GAAG,EAAE,MAAM,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC,iBAAiB,CAAC,CAAC,KAAK;QAC1D,GAAG,EAAE,MAAM,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC,gBAAgB,CAAC,CAAC,KAAK;QACzD,GAAG,EAA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