@manuscripts/style-guide 0.30.21 → 0.30.24
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/cjs/components/AuthorsContainer.js +2 -2
- package/dist/cjs/components/AuthorsList/AuthorsList.js +2 -2
- package/dist/cjs/components/FileManager/FileManager.js +3 -2
- package/dist/cjs/components/FileManager/FileSectionItem/FileInfo.js +7 -7
- package/dist/cjs/components/FileManager/FileSectionItem/FileTypeIcon.js +9 -18
- package/dist/cjs/components/FileManager/FileSectionItem/ItemActions.js +2 -2
- package/dist/cjs/components/FileManager/InlineFilesSection.js +156 -0
- package/dist/cjs/components/FileManager/util.js +10 -1
- package/dist/cjs/components/icons/audio-icon.js +4 -4
- package/dist/cjs/components/icons/code-file-icon.js +4 -4
- package/dist/cjs/components/icons/compressed-file-icon.js +11 -11
- package/dist/cjs/components/icons/document-icon-with-dot.js +28 -0
- package/dist/cjs/components/icons/document-icon.js +5 -5
- package/dist/cjs/components/icons/figure-icon.js +4 -4
- package/dist/cjs/components/icons/graphical_abstract_icon.js +26 -0
- package/dist/cjs/components/icons/image-icon.js +24 -0
- package/dist/cjs/components/icons/latex-icon.js +6 -6
- package/dist/cjs/components/icons/pdf-file-icon.js +3 -3
- package/dist/cjs/components/icons/table-icon.js +2 -4
- package/dist/cjs/components/icons/unknown-format-file-icon.js +3 -3
- package/dist/cjs/components/icons/video-icon.js +2 -2
- package/dist/cjs/hooks/use-dropdown.js +2 -1
- package/dist/cjs/lib/inlineFiles.js +65 -0
- package/dist/es/components/AuthorsContainer.js +2 -2
- package/dist/es/components/AuthorsList/AuthorsList.js +2 -2
- package/dist/es/components/FileManager/FileManager.js +3 -2
- package/dist/es/components/FileManager/FileSectionItem/FileInfo.js +3 -3
- package/dist/es/components/FileManager/FileSectionItem/FileTypeIcon.js +9 -18
- package/dist/es/components/FileManager/FileSectionItem/ItemActions.js +2 -2
- package/dist/es/components/FileManager/InlineFilesSection.js +130 -0
- package/dist/es/components/FileManager/util.js +10 -1
- package/dist/es/components/icons/audio-icon.js +4 -4
- package/dist/es/components/icons/code-file-icon.js +4 -4
- package/dist/es/components/icons/compressed-file-icon.js +11 -11
- package/dist/es/components/icons/document-icon-with-dot.js +23 -0
- package/dist/es/components/icons/document-icon.js +5 -5
- package/dist/es/components/icons/figure-icon.js +4 -4
- package/dist/es/components/icons/graphical_abstract_icon.js +21 -0
- package/dist/es/components/icons/image-icon.js +19 -0
- package/dist/es/components/icons/latex-icon.js +6 -6
- package/dist/es/components/icons/pdf-file-icon.js +3 -3
- package/dist/es/components/icons/table-icon.js +2 -4
- package/dist/es/components/icons/unknown-format-file-icon.js +3 -3
- package/dist/es/components/icons/video-icon.js +2 -2
- package/dist/es/hooks/use-dropdown.js +2 -1
- package/dist/es/lib/inlineFiles.js +63 -0
- package/dist/types/components/AuthorsContainer.d.ts +1 -0
- package/dist/types/components/AuthorsList/AuthorsList.d.ts +1 -0
- package/dist/types/components/FileManager/FileManager.d.ts +2 -1
- package/dist/types/components/FileManager/FileSectionItem/FileInfo.d.ts +3 -0
- package/dist/types/components/FileManager/FileSectionItem/ItemActions.d.ts +2 -1
- package/dist/types/components/FileManager/InlineFilesSection.d.ts +16 -0
- package/dist/types/components/FileManager/util.d.ts +3 -1
- package/dist/types/components/icons/document-icon-with-dot.d.ts +19 -0
- package/dist/types/components/icons/graphical_abstract_icon.d.ts +19 -0
- package/dist/types/components/icons/image-icon.d.ts +19 -0
- package/dist/types/hooks/use-dropdown.d.ts +1 -1
- package/dist/types/lib/inlineFiles.d.ts +11 -0
- package/package.json +4 -4
|
@@ -42,11 +42,11 @@ const react_1 = __importStar(require("react"));
|
|
|
42
42
|
const styled_components_1 = __importDefault(require("styled-components"));
|
|
43
43
|
const AffiliationsList_1 = require("./AffiliationsList");
|
|
44
44
|
const AuthorsList_1 = require("./AuthorsList");
|
|
45
|
-
const AuthorsContainer = ({ authorData, showEditButton, startEditing, selectAuthor }) => {
|
|
45
|
+
const AuthorsContainer = ({ authorData, showEditButton, startEditing, selectAuthor, disableEditButton, }) => {
|
|
46
46
|
const authorAffiliations = (0, react_1.useMemo)(() => authorData.authors.filter((author) => author.role === 'author'), [authorData.authors]);
|
|
47
47
|
const isThereJointContributor = (0, react_1.useMemo)(() => authorData.authors.find((contributor) => contributor.isJointContributor), [authorData.authors]);
|
|
48
48
|
return (react_1.default.createElement(Container, { "data-cy": 'author-container' },
|
|
49
|
-
react_1.default.createElement(AuthorsList_1.AuthorsList, { authors: authorAffiliations, authorAffiliations: authorData.authorAffiliations, startEditing: startEditing, showEditButton: showEditButton, selectAuthor: selectAuthor }),
|
|
49
|
+
react_1.default.createElement(AuthorsList_1.AuthorsList, { authors: authorAffiliations, authorAffiliations: authorData.authorAffiliations, startEditing: startEditing, showEditButton: showEditButton, selectAuthor: selectAuthor, disableEditButton: disableEditButton }),
|
|
50
50
|
react_1.default.createElement(AffiliationsList_1.AffiliationsList, { affiliations: authorData.affiliations }),
|
|
51
51
|
isThereJointContributor && (react_1.default.createElement(LegendWrapper, null,
|
|
52
52
|
react_1.default.createElement(Legend, null, "\u2020"),
|
|
@@ -43,10 +43,10 @@ const AuthorsActions = styled_components_1.default.div `
|
|
|
43
43
|
display: flex;
|
|
44
44
|
margin-left: ${(props) => props.theme.grid.unit * 2}px;
|
|
45
45
|
`;
|
|
46
|
-
const AuthorsList = ({ authors, authorAffiliations, startEditing, showEditButton, selectAuthor, }) => (react_1.default.createElement(AuthorsContainer, { isEmpty: !authors.length },
|
|
46
|
+
const AuthorsList = ({ authors, authorAffiliations, startEditing, showEditButton, disableEditButton, selectAuthor, }) => (react_1.default.createElement(AuthorsContainer, { isEmpty: !authors.length },
|
|
47
47
|
react_1.default.createElement("div", null, authors.map((author, index) => (react_1.default.createElement(react_1.default.Fragment, { key: author._id },
|
|
48
48
|
!!index && ', ',
|
|
49
49
|
react_1.default.createElement(Author_1.Author, { author: author, jointFirstAuthor: (0, authors_1.isJointFirstAuthor)(authors, index), affiliations: authorAffiliations.get(author._id), selectAuthor: selectAuthor, startEditing: startEditing, showEditButton: showEditButton }))))),
|
|
50
50
|
showEditButton && startEditing && (react_1.default.createElement(AuthorsActions, null,
|
|
51
|
-
react_1.default.createElement(Button_1.PrimaryButton, { mini: true, onClick: startEditing }, "Edit Authors")))));
|
|
51
|
+
react_1.default.createElement(Button_1.PrimaryButton, { mini: true, onClick: startEditing, className: 'edit_authors_button', disabled: disableEditButton }, "Edit Authors")))));
|
|
52
52
|
exports.AuthorsList = AuthorsList;
|
|
@@ -42,10 +42,11 @@ const DragLayer_1 = require("./FileSectionItem/DragLayer");
|
|
|
42
42
|
const FileSectionItem_1 = require("./FileSectionItem/FileSectionItem");
|
|
43
43
|
const FileSectionState_1 = require("./FileSectionState");
|
|
44
44
|
const FilesSection_1 = require("./FilesSection");
|
|
45
|
+
const InlineFilesSection_1 = require("./InlineFilesSection");
|
|
45
46
|
const TooltipDiv_1 = require("./TooltipDiv");
|
|
46
47
|
const util_1 = require("./util");
|
|
47
48
|
exports.PermissionsContext = (0, react_1.createContext)(null);
|
|
48
|
-
const FileManager = ({ submissionId, externalFiles, enableDragAndDrop, can, handleUpload, handleDownload, handleReplace, handleChangeDesignation, }) => {
|
|
49
|
+
const FileManager = ({ submissionId, externalFiles, modelMap, enableDragAndDrop, can, handleUpload, handleDownload, handleReplace, handleChangeDesignation, }) => {
|
|
49
50
|
const [state, dispatch] = (0, react_1.useReducer)(FileSectionState_1.reducer, (0, FileSectionState_1.getInitialState)());
|
|
50
51
|
const handleReplaceFile = (0, react_1.useCallback)((submissionId, name, file, typeId) => __awaiter(void 0, void 0, void 0, function* () {
|
|
51
52
|
dispatch(FileSectionState_1.actions.HANDLE_UPLOAD_ACTION());
|
|
@@ -147,7 +148,7 @@ const FileManager = ({ submissionId, externalFiles, enableDragAndDrop, can, hand
|
|
|
147
148
|
react_1.default.createElement("div", null, "Files excluded from the final submission.")))),
|
|
148
149
|
react_1.default.createElement(Inspector_1.InspectorTabPanels, { style: { overflowY: 'visible', position: 'relative' } },
|
|
149
150
|
react_1.default.createElement(Inspector_1.InspectorTabPanel, null,
|
|
150
|
-
react_1.default.createElement(
|
|
151
|
+
react_1.default.createElement(InlineFilesSection_1.InlineFilesSection, { modelMap: modelMap, submissionId: submissionId, handleReplace: handleReplace, handleDownload: handleDownload, isEditor: enableDragAndDrop, dispatch: dispatch })),
|
|
151
152
|
react_1.default.createElement(Inspector_1.InspectorTabPanel, null,
|
|
152
153
|
react_1.default.createElement(FilesSection_1.FilesSection, { submissionId: submissionId, enableDragAndDrop: enableDragAndDrop, handleUpload: handleUploadFile, fileSection: util_1.FileSectionType.Supplements, filesItem: getFileSectionExternalFile(util_1.FileSectionType.Supplements), state: state, dispatch: dispatch })),
|
|
153
154
|
react_1.default.createElement(Inspector_1.InspectorTabPanel, null,
|
|
@@ -22,7 +22,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
22
22
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.FileName = exports.FileNameContainer = exports.FileInfoContainer = exports.FileInfo = void 0;
|
|
25
|
+
exports.FileDescription = exports.FileName = exports.FileNameContainer = exports.FileTitle = exports.FileNameTitleContainer = exports.FileInfoContainer = exports.FileInfo = void 0;
|
|
26
26
|
const react_1 = __importStar(require("react"));
|
|
27
27
|
const styled_components_1 = __importDefault(require("styled-components"));
|
|
28
28
|
const FileManager_1 = require("../FileManager");
|
|
@@ -35,8 +35,8 @@ const FileInfo = ({ showAttachmentName, showDesignationActions, title, submissio
|
|
|
35
35
|
showDesignationActions &&
|
|
36
36
|
designation &&
|
|
37
37
|
submissionId && (react_1.default.createElement(DesignationActions_1.DesignationActions, { designation: designation, fileExtension: fileExtension, handleChangeDesignation: handleChangeDesignation, submissionId: submissionId, fileName: submissionAttachmentName, dispatch: dispatch })),
|
|
38
|
-
react_1.default.createElement(FileNameTitleContainer, null,
|
|
39
|
-
react_1.default.createElement(FileTitle, null,
|
|
38
|
+
react_1.default.createElement(exports.FileNameTitleContainer, null,
|
|
39
|
+
react_1.default.createElement(exports.FileTitle, null,
|
|
40
40
|
!showAttachmentName ? fileName : title,
|
|
41
41
|
showAttachmentName && ':'),
|
|
42
42
|
showAttachmentName && (react_1.default.createElement(exports.FileNameContainer, null,
|
|
@@ -44,7 +44,7 @@ const FileInfo = ({ showAttachmentName, showDesignationActions, title, submissio
|
|
|
44
44
|
react_1.default.createElement("div", null,
|
|
45
45
|
".",
|
|
46
46
|
fileExtension)))),
|
|
47
|
-
description && react_1.default.createElement(FileDescription, null, description)));
|
|
47
|
+
description && react_1.default.createElement(exports.FileDescription, null, description)));
|
|
48
48
|
};
|
|
49
49
|
exports.FileInfo = FileInfo;
|
|
50
50
|
exports.FileInfoContainer = styled_components_1.default.div `
|
|
@@ -56,11 +56,11 @@ exports.FileInfoContainer = styled_components_1.default.div `
|
|
|
56
56
|
align-items: start;
|
|
57
57
|
width: 100%;
|
|
58
58
|
`;
|
|
59
|
-
|
|
59
|
+
exports.FileNameTitleContainer = styled_components_1.default.div `
|
|
60
60
|
display: flex;
|
|
61
61
|
width: 100%;
|
|
62
62
|
`;
|
|
63
|
-
|
|
63
|
+
exports.FileTitle = styled_components_1.default.div `
|
|
64
64
|
color: ${(props) => props.theme.colors.text.primary};
|
|
65
65
|
font-weight: bold;
|
|
66
66
|
font-size: 16px;
|
|
@@ -82,7 +82,7 @@ exports.FileName = styled_components_1.default.div `
|
|
|
82
82
|
white-space: nowrap;
|
|
83
83
|
overflow: hidden;
|
|
84
84
|
`;
|
|
85
|
-
|
|
85
|
+
exports.FileDescription = styled_components_1.default.div `
|
|
86
86
|
color: ${(props) => props.theme.colors.text.secondary};
|
|
87
87
|
font-size: 14px;
|
|
88
88
|
line-height: 20px;
|
|
@@ -7,46 +7,37 @@ exports.FileTypeIcon = void 0;
|
|
|
7
7
|
const react_1 = __importDefault(require("react"));
|
|
8
8
|
const react_tooltip_1 = __importDefault(require("react-tooltip"));
|
|
9
9
|
const styled_components_1 = __importDefault(require("styled-components"));
|
|
10
|
+
const document_icon_with_dot_1 = __importDefault(require("../../icons/document-icon-with-dot"));
|
|
10
11
|
const unknown_format_file_icon_1 = __importDefault(require("../../icons/unknown-format-file-icon"));
|
|
11
12
|
const TooltipDiv_1 = require("../TooltipDiv");
|
|
12
13
|
const util_1 = require("../util");
|
|
13
14
|
const FileTypeIcon = ({ withDot, fileExtension, alt }) => {
|
|
14
15
|
let fileIcon = react_1.default.createElement(unknown_format_file_icon_1.default, null);
|
|
16
|
+
if (withDot) {
|
|
17
|
+
return (react_1.default.createElement(Container, null,
|
|
18
|
+
react_1.default.createElement(document_icon_with_dot_1.default, null),
|
|
19
|
+
react_1.default.createElement(TooltipDiv_1.TooltipDiv, null,
|
|
20
|
+
react_1.default.createElement(react_tooltip_1.default, { id: "dot", place: "bottom", effect: "float", className: "tooltip" },
|
|
21
|
+
react_1.default.createElement("div", null, "Main manuscript. Only one file per submission")))));
|
|
22
|
+
}
|
|
15
23
|
if (fileExtension) {
|
|
16
24
|
const fileType = util_1.extensionsWithFileTypesMap.get(fileExtension.toLowerCase());
|
|
17
25
|
fileIcon = util_1.fileTypesWithIconMap.get(fileType);
|
|
18
26
|
}
|
|
19
|
-
return
|
|
20
|
-
withDot && react_1.default.createElement(Dot, { "data-for": "dot", "data-tip": true }),
|
|
21
|
-
react_1.default.createElement(TooltipDiv_1.TooltipDiv, null,
|
|
22
|
-
react_1.default.createElement(react_tooltip_1.default, { id: "dot", place: "bottom", offset: { bottom: -7 }, effect: "solid", className: "tooltip" },
|
|
23
|
-
react_1.default.createElement("div", null, "Main manuscript. Only one file per submission"))),
|
|
24
|
-
fileIcon));
|
|
27
|
+
return react_1.default.createElement(Container, null, fileIcon);
|
|
25
28
|
};
|
|
26
29
|
exports.FileTypeIcon = FileTypeIcon;
|
|
27
30
|
const Container = styled_components_1.default.div `
|
|
28
31
|
width: 40px;
|
|
29
32
|
min-width: 40px;
|
|
30
33
|
height: 40px;
|
|
31
|
-
background-color: ${(props) => props.theme.colors.background.secondary};
|
|
32
34
|
display: flex;
|
|
33
35
|
justify-content: center;
|
|
34
36
|
align-items: center;
|
|
35
|
-
border: 1px solid #f2f2f2;
|
|
36
37
|
box-sizing: border-box;
|
|
37
38
|
border-radius: 4px;
|
|
38
39
|
position: relative;
|
|
39
40
|
`;
|
|
40
|
-
const Dot = styled_components_1.default.div `
|
|
41
|
-
width: 12px;
|
|
42
|
-
height: 12px;
|
|
43
|
-
background: #1a9bc7;
|
|
44
|
-
border: 2px solid #ffffff;
|
|
45
|
-
border-radius: 50%;
|
|
46
|
-
position: absolute;
|
|
47
|
-
top: -8px;
|
|
48
|
-
left: -8px;
|
|
49
|
-
`;
|
|
50
41
|
const Img = styled_components_1.default.img `
|
|
51
42
|
width: 100%;
|
|
52
43
|
height: 100%;
|
|
@@ -25,7 +25,7 @@ const Dropdown_1 = require("../../Dropdown");
|
|
|
25
25
|
const FileManager_1 = require("../FileManager");
|
|
26
26
|
const FileSectionState_1 = require("../FileSectionState");
|
|
27
27
|
const ItemsAction_1 = require("../ItemsAction");
|
|
28
|
-
const ItemActions = ({ downloadAttachmentHandler, replaceAttachmentHandler, submissionId, fileName, designation, publicUrl, hideActionList, dispatch, }) => {
|
|
28
|
+
const ItemActions = ({ downloadAttachmentHandler, replaceAttachmentHandler, submissionId, fileName, designation, publicUrl, hideActionList, dispatch, dropDownClassName, }) => {
|
|
29
29
|
const attachmentDesignation = designation == undefined ? 'undefined' : designation;
|
|
30
30
|
const fileInputRef = (0, react_1.useRef)(null);
|
|
31
31
|
const [selectedFile, setSelectedFile] = (0, react_1.useState)();
|
|
@@ -46,7 +46,7 @@ const ItemActions = ({ downloadAttachmentHandler, replaceAttachmentHandler, subm
|
|
|
46
46
|
fileInputRef.current.click();
|
|
47
47
|
}
|
|
48
48
|
};
|
|
49
|
-
return (react_1.default.createElement(Dropdown_1.DropdownList, { direction: 'right', width: 125, height: 96, top: 5, onClick: hideActionList },
|
|
49
|
+
return (react_1.default.createElement(Dropdown_1.DropdownList, { direction: 'right', className: dropDownClassName, width: 125, height: 96, top: 5, onClick: hideActionList },
|
|
50
50
|
react_1.default.createElement(ItemsAction_1.ActionsItem, { onClick: () => {
|
|
51
51
|
publicUrl !== undefined ? downloadAttachmentHandler(publicUrl) : {};
|
|
52
52
|
} }, "Download"),
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
10
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
11
|
+
}) : function(o, v) {
|
|
12
|
+
o["default"] = v;
|
|
13
|
+
});
|
|
14
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
15
|
+
if (mod && mod.__esModule) return mod;
|
|
16
|
+
var result = {};
|
|
17
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
18
|
+
__setModuleDefault(result, mod);
|
|
19
|
+
return result;
|
|
20
|
+
};
|
|
21
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
22
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
23
|
+
};
|
|
24
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
+
exports.InlineFilesSection = void 0;
|
|
26
|
+
const react_1 = __importStar(require("react"));
|
|
27
|
+
const styled_components_1 = __importDefault(require("styled-components"));
|
|
28
|
+
const use_dropdown_1 = require("../../hooks/use-dropdown");
|
|
29
|
+
const inlineFiles_1 = __importDefault(require("../../lib/inlineFiles"));
|
|
30
|
+
const dots_icon_1 = __importDefault(require("../icons/dots-icon"));
|
|
31
|
+
const FileInfo_1 = require("./FileSectionItem/FileInfo");
|
|
32
|
+
const FileSectionItem_1 = require("./FileSectionItem/FileSectionItem");
|
|
33
|
+
const ItemActions_1 = require("./FileSectionItem/ItemActions");
|
|
34
|
+
const util_1 = require("./util");
|
|
35
|
+
const InlineFilesSection = ({ submissionId, handleReplace, handleDownload, modelMap, isEditor, dispatch, }) => {
|
|
36
|
+
const inlineFiles = (0, react_1.useMemo)(() => (0, inlineFiles_1.default)(modelMap), [modelMap]);
|
|
37
|
+
const onElementClick = (0, react_1.useCallback)((e) => {
|
|
38
|
+
if (!isEditor) {
|
|
39
|
+
return;
|
|
40
|
+
}
|
|
41
|
+
const { id } = e.currentTarget;
|
|
42
|
+
const isSelected = id == window.location.hash.substr(1);
|
|
43
|
+
window.location.hash = !isSelected ? `#${id}` : '#';
|
|
44
|
+
if (isSelected) {
|
|
45
|
+
window.location.hash = `#${id}`;
|
|
46
|
+
}
|
|
47
|
+
}, [isEditor]);
|
|
48
|
+
return (react_1.default.createElement("div", null, inlineFiles.map((file, index) => {
|
|
49
|
+
var _a;
|
|
50
|
+
return (react_1.default.createElement(ElementItem, { className: 'item', key: index, id: file.id, onClick: onElementClick },
|
|
51
|
+
react_1.default.createElement(FileReferences, { className: 'refItems' }, (_a = file.externalFileReferences) === null || _a === void 0 ? void 0 : _a.map((externalFile, index) => (react_1.default.createElement(FileReference, { key: index, externalFile: externalFile.ref, submissionId: submissionId, handleReplace: handleReplace, handleDownload: handleDownload, dispatch: dispatch })))),
|
|
52
|
+
react_1.default.createElement(Element, { className: 'element' },
|
|
53
|
+
util_1.fileTypesWithIconMap.get(file.type),
|
|
54
|
+
react_1.default.createElement(FileInfo_1.FileInfoContainer, null,
|
|
55
|
+
react_1.default.createElement(FileInfo_1.FileNameTitleContainer, null,
|
|
56
|
+
react_1.default.createElement(FileInfo_1.FileTitle, null, file.label)),
|
|
57
|
+
file.caption && (react_1.default.createElement(FileInfo_1.FileDescription, null, file.caption))))));
|
|
58
|
+
})));
|
|
59
|
+
};
|
|
60
|
+
exports.InlineFilesSection = InlineFilesSection;
|
|
61
|
+
const FileReference = ({ externalFile, submissionId, handleReplace, handleDownload, dispatch, }) => {
|
|
62
|
+
const { isOpen, toggleOpen, wrapperRef } = (0, use_dropdown_1.useDropdown)();
|
|
63
|
+
if (!externalFile || !externalFile.filename) {
|
|
64
|
+
return null;
|
|
65
|
+
}
|
|
66
|
+
const fileExtension = externalFile.filename.substring(externalFile.filename.lastIndexOf('.') + 1);
|
|
67
|
+
return (react_1.default.createElement(FileReferenceItem, { key: externalFile._id },
|
|
68
|
+
react_1.default.createElement(Container, null,
|
|
69
|
+
util_1.fileTypesWithIconMap.get(util_1.extensionsWithFileTypesMap.get(fileExtension)),
|
|
70
|
+
react_1.default.createElement(FileReferenceName, null, externalFile.filename)),
|
|
71
|
+
handleDownload && handleReplace && submissionId && (react_1.default.createElement(DropdownContainer, { ref: wrapperRef },
|
|
72
|
+
react_1.default.createElement(FileSectionItem_1.ActionsIcon, { onClick: toggleOpen, type: "button", className: 'external_file_dropdown', "aria-label": "Download or Replace", "aria-pressed": isOpen },
|
|
73
|
+
react_1.default.createElement(dots_icon_1.default, null)),
|
|
74
|
+
isOpen && (react_1.default.createElement(ItemActions_1.ItemActions, { replaceAttachmentHandler: handleReplace, downloadAttachmentHandler: handleDownload, submissionId: submissionId, fileName: externalFile.filename, designation: externalFile.designation, publicUrl: externalFile.publicUrl, hideActionList: toggleOpen, dispatch: dispatch, dropDownClassName: 'ref_item_dropdown' }))))));
|
|
75
|
+
};
|
|
76
|
+
const ElementItem = (0, styled_components_1.default)(FileSectionItem_1.Item) `
|
|
77
|
+
display: flex;
|
|
78
|
+
// this will allow us to select the previous sibling node,
|
|
79
|
+
// to change the background on the hover for adjacent node
|
|
80
|
+
flex-direction: column-reverse;
|
|
81
|
+
padding: 0;
|
|
82
|
+
|
|
83
|
+
:hover {
|
|
84
|
+
background: #f2fbfc;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.refItems:hover ~ .element {
|
|
88
|
+
background: white !important;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.refItems:hover {
|
|
92
|
+
background: white !important;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
border-bottom: 1px dashed #f0f0f0;
|
|
96
|
+
|
|
97
|
+
:last-child {
|
|
98
|
+
border-bottom: 0;
|
|
99
|
+
}
|
|
100
|
+
`;
|
|
101
|
+
const Container = styled_components_1.default.div `
|
|
102
|
+
display: flex;
|
|
103
|
+
`;
|
|
104
|
+
const Element = styled_components_1.default.div `
|
|
105
|
+
display: flex;
|
|
106
|
+
padding: 20px 15px;
|
|
107
|
+
`;
|
|
108
|
+
const FileReferences = styled_components_1.default.div ``;
|
|
109
|
+
const FileReferenceItem = styled_components_1.default.div `
|
|
110
|
+
display: flex;
|
|
111
|
+
align-items: center;
|
|
112
|
+
justify-content: space-between;
|
|
113
|
+
|
|
114
|
+
svg {
|
|
115
|
+
width: 14px;
|
|
116
|
+
height: 17px;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
path {
|
|
120
|
+
fill: #6e6e6e;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
padding: ${(props) => props.theme.grid.unit * 2}px
|
|
124
|
+
${(props) => props.theme.grid.unit * 4}px;
|
|
125
|
+
|
|
126
|
+
:hover {
|
|
127
|
+
background: #f2fbfc;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.external_file_dropdown {
|
|
131
|
+
opacity: 0;
|
|
132
|
+
}
|
|
133
|
+
:hover .external_file_dropdown {
|
|
134
|
+
opacity: 1;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.ref_item_dropdown {
|
|
138
|
+
top: 65%;
|
|
139
|
+
right: 10px;
|
|
140
|
+
width: 180px;
|
|
141
|
+
}
|
|
142
|
+
:last-child {
|
|
143
|
+
margin-bottom: 25px;
|
|
144
|
+
}
|
|
145
|
+
`;
|
|
146
|
+
const FileReferenceName = styled_components_1.default.div `
|
|
147
|
+
font-family: ${(props) => props.theme.font.family.Lato};
|
|
148
|
+
font-size: ${(props) => props.theme.font.size.medium};
|
|
149
|
+
line-height: ${(props) => props.theme.font.lineHeight.large};
|
|
150
|
+
font-weight: ${(props) => props.theme.font.weight.normal};
|
|
151
|
+
color: ${(props) => props.theme.colors.text.primary};
|
|
152
|
+
margin-left: ${(props) => props.theme.grid.unit * 2}px;
|
|
153
|
+
`;
|
|
154
|
+
const DropdownContainer = styled_components_1.default.div `
|
|
155
|
+
position: relative;
|
|
156
|
+
`;
|
|
@@ -10,6 +10,8 @@ const code_file_icon_1 = __importDefault(require("../icons/code-file-icon"));
|
|
|
10
10
|
const compressed_file_icon_1 = __importDefault(require("../icons/compressed-file-icon"));
|
|
11
11
|
const document_icon_1 = __importDefault(require("../icons/document-icon"));
|
|
12
12
|
const figure_icon_1 = __importDefault(require("../icons/figure-icon"));
|
|
13
|
+
const graphical_abstract_icon_1 = __importDefault(require("../icons/graphical_abstract_icon"));
|
|
14
|
+
const image_icon_1 = __importDefault(require("../icons/image-icon"));
|
|
13
15
|
const latex_icon_1 = __importDefault(require("../icons/latex-icon"));
|
|
14
16
|
const pdf_file_icon_1 = __importDefault(require("../icons/pdf-file-icon"));
|
|
15
17
|
const table_icon_1 = __importDefault(require("../icons/table-icon"));
|
|
@@ -33,6 +35,8 @@ var FileType;
|
|
|
33
35
|
FileType[FileType["PdfFile"] = 7] = "PdfFile";
|
|
34
36
|
FileType[FileType["CompressedFile"] = 8] = "CompressedFile";
|
|
35
37
|
FileType[FileType["PlainText"] = 9] = "PlainText";
|
|
38
|
+
FileType[FileType["Figure"] = 10] = "Figure";
|
|
39
|
+
FileType[FileType["GraphicalAbstract"] = 11] = "GraphicalAbstract";
|
|
36
40
|
})(FileType = exports.FileType || (exports.FileType = {}));
|
|
37
41
|
var Designation;
|
|
38
42
|
(function (Designation) {
|
|
@@ -340,7 +344,12 @@ exports.fileTypesWithIconMap = new Map([
|
|
|
340
344
|
FileType.PlainText,
|
|
341
345
|
react_1.default.createElement(document_icon_1.default, { key: FileType.PlainText, color: "#FFBD26" }),
|
|
342
346
|
],
|
|
343
|
-
[FileType.Image, react_1.default.createElement(
|
|
347
|
+
[FileType.Image, react_1.default.createElement(image_icon_1.default, { key: FileType.Image })],
|
|
348
|
+
[FileType.Figure, react_1.default.createElement(figure_icon_1.default, { key: FileType.Figure })],
|
|
349
|
+
[
|
|
350
|
+
FileType.GraphicalAbstract,
|
|
351
|
+
react_1.default.createElement(graphical_abstract_icon_1.default, { key: FileType.GraphicalAbstract }),
|
|
352
|
+
],
|
|
344
353
|
[undefined, react_1.default.createElement(unknown_format_file_icon_1.default, { key: undefined })],
|
|
345
354
|
]);
|
|
346
355
|
const generateExternalFilesTitles = (externalFiles, fileSectionType) => {
|
|
@@ -19,8 +19,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
19
19
|
};
|
|
20
20
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
21
|
const react_1 = __importDefault(require("react"));
|
|
22
|
-
const AudioIcon = (props) => (react_1.default.createElement("svg", { className: props.className, width: "
|
|
23
|
-
react_1.default.createElement("path", { d: "
|
|
24
|
-
react_1.default.createElement("path", { d: "
|
|
25
|
-
react_1.default.createElement("path", { d: "
|
|
22
|
+
const AudioIcon = (props) => (react_1.default.createElement("svg", { className: props.className, width: "24", height: "25", viewBox: "0 0 24 25", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
23
|
+
react_1.default.createElement("path", { d: "M12 21.7197C11.6022 21.7197 11.2206 21.5617 10.9393 21.2804C10.658 20.9991 10.5 20.6176 10.5 20.2197V5.21973C10.5 4.8219 10.658 4.44037 10.9393 4.15907C11.2206 3.87776 11.6022 3.71973 12 3.71973C12.3978 3.71973 12.7794 3.87776 13.0607 4.15907C13.342 4.44037 13.5 4.8219 13.5 5.21973V20.2197C13.5 20.6176 13.342 20.9991 13.0607 21.2804C12.7794 21.5617 12.3978 21.7197 12 21.7197Z", fill: "#F474AE" }),
|
|
24
|
+
react_1.default.createElement("path", { d: "M6 18.7197C5.60218 18.7197 5.22064 18.5617 4.93934 18.2804C4.65804 17.9991 4.5 17.6176 4.5 17.2197V8.21973C4.5 7.8219 4.65804 7.44037 4.93934 7.15907C5.22064 6.87776 5.60218 6.71973 6 6.71973C6.39782 6.71973 6.77936 6.87776 7.06066 7.15907C7.34196 7.44037 7.5 7.8219 7.5 8.21973V17.2197C7.5 17.6176 7.34196 17.9991 7.06066 18.2804C6.77936 18.5617 6.39782 18.7197 6 18.7197Z", fill: "#F474AE" }),
|
|
25
|
+
react_1.default.createElement("path", { d: "M18 15.7197C17.6022 15.7197 17.2206 15.5617 16.9393 15.2804C16.658 14.9991 16.5 14.6176 16.5 14.2197V11.2197C16.5 10.8219 16.658 10.4404 16.9393 10.1591C17.2206 9.87776 17.6022 9.71973 18 9.71973C18.3978 9.71973 18.7794 9.87776 19.0607 10.1591C19.342 10.4404 19.5 10.8219 19.5 11.2197V14.2197C19.5 14.6176 19.342 14.9991 19.0607 15.2804C18.7794 15.5617 18.3978 15.7197 18 15.7197Z", fill: "#F474AE" })));
|
|
26
26
|
exports.default = AudioIcon;
|
|
@@ -19,8 +19,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
19
19
|
};
|
|
20
20
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
21
|
const react_1 = __importDefault(require("react"));
|
|
22
|
-
const CodeFileIcon = (props) => (react_1.default.createElement("svg", { className: props.className, width: "
|
|
23
|
-
react_1.default.createElement("path", { d: "
|
|
24
|
-
react_1.default.createElement("path", { d: "
|
|
25
|
-
react_1.default.createElement("path", { d: "
|
|
22
|
+
const CodeFileIcon = (props) => (react_1.default.createElement("svg", { className: props.className, width: "21", height: "21", viewBox: "0 0 21 21", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
23
|
+
react_1.default.createElement("path", { d: "M5.35566 15.2819L1.02175 10.948L5.46094 6.50879", stroke: "#B3A1FC", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
24
|
+
react_1.default.createElement("path", { d: "M15.4617 15.2819L19.7956 10.948L15.3564 6.50879", stroke: "#B3A1FC", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
25
|
+
react_1.default.createElement("path", { d: "M12.5 1.96973L8.75 19.4697", stroke: "#B3A1FC", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" })));
|
|
26
26
|
exports.default = CodeFileIcon;
|
|
@@ -19,15 +19,15 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
19
19
|
};
|
|
20
20
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
21
|
const react_1 = __importDefault(require("react"));
|
|
22
|
-
const CompressedFileIcon = (props) => (react_1.default.createElement("svg", { className: props.className, width: "
|
|
23
|
-
react_1.default.createElement("line", { x1: "
|
|
24
|
-
react_1.default.createElement("line", { x1: "
|
|
25
|
-
react_1.default.createElement("line", { x1: "
|
|
26
|
-
react_1.default.createElement("line", { x1: "
|
|
27
|
-
react_1.default.createElement("line", { x1: "
|
|
28
|
-
react_1.default.createElement("line", { x1: "
|
|
29
|
-
react_1.default.createElement("rect", { x: "1
|
|
30
|
-
react_1.default.createElement("path", { d: "
|
|
31
|
-
react_1.default.createElement("path", { d: "
|
|
32
|
-
react_1.default.createElement("path", { d: "
|
|
22
|
+
const CompressedFileIcon = (props) => (react_1.default.createElement("svg", { className: props.className, width: "22", height: "26", viewBox: "0 0 22 26", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
23
|
+
react_1.default.createElement("line", { x1: "11.75", y1: "2.21973", x2: "11.75", y2: "3.71973", stroke: "#6E6E6E", strokeWidth: "1.5" }),
|
|
24
|
+
react_1.default.createElement("line", { x1: "11.75", y1: "5.21973", x2: "11.75", y2: "6.71973", stroke: "#6E6E6E", strokeWidth: "1.5" }),
|
|
25
|
+
react_1.default.createElement("line", { x1: "11.75", y1: "8.21973", x2: "11.75", y2: "9.71973", stroke: "#6E6E6E", strokeWidth: "1.5" }),
|
|
26
|
+
react_1.default.createElement("line", { x1: "10.25", y1: "3.71973", x2: "10.25", y2: "5.21973", stroke: "#6E6E6E", strokeWidth: "1.5" }),
|
|
27
|
+
react_1.default.createElement("line", { x1: "10.25", y1: "6.71973", x2: "10.25", y2: "8.21973", stroke: "#6E6E6E", strokeWidth: "1.5" }),
|
|
28
|
+
react_1.default.createElement("line", { x1: "10.25", y1: "9.71973", x2: "10.25", y2: "11.2197", stroke: "#6E6E6E", strokeWidth: "1.5" }),
|
|
29
|
+
react_1.default.createElement("rect", { x: "1", y: "1.21973", width: "20", height: "23", rx: "2", stroke: "#6E6E6E", strokeWidth: "2" }),
|
|
30
|
+
react_1.default.createElement("path", { d: "M7.97502 12.7197V13.2221C7.97502 13.2935 7.9633 13.3635 7.93987 13.4321C7.91904 13.5008 7.88911 13.5653 7.85006 13.6257L5.17911 17.649H7.88911V18.7197H3.5V18.1844C3.5 18.1212 3.51041 18.0595 3.53124 17.9991C3.55207 17.9359 3.5807 17.8783 3.61715 17.8261L6.29591 13.7904H3.71867V12.7197H7.97502Z", fill: "#6E6E6E" }),
|
|
31
|
+
react_1.default.createElement("path", { d: "M11.5859 18.7197H10.2582V12.7197H11.5859V18.7197Z", fill: "#6E6E6E" }),
|
|
32
|
+
react_1.default.createElement("path", { d: "M15.5245 16.7142V18.7197H14.2046V12.7197H16.2117C16.6126 12.7197 16.9563 12.7705 17.2426 12.8721C17.5316 12.9709 17.7685 13.1082 17.9533 13.2839C18.1407 13.4596 18.2787 13.6669 18.3672 13.9057C18.4557 14.1446 18.5 14.4026 18.5 14.6799C18.5 14.9792 18.4544 15.2537 18.3633 15.5035C18.2722 15.7534 18.1329 15.9675 17.9455 16.1459C17.7581 16.3244 17.5199 16.4644 17.2309 16.566C16.9445 16.6648 16.6048 16.7142 16.2117 16.7142H15.5245ZM15.5245 15.6641H16.2117C16.5554 15.6641 16.8027 15.5777 16.9537 15.4047C17.1046 15.2317 17.1801 14.9901 17.1801 14.6799C17.1801 14.5427 17.1606 14.4177 17.1216 14.3052C17.0825 14.1926 17.0226 14.0965 16.9419 14.0169C16.8638 13.9346 16.7636 13.8714 16.6413 13.8275C16.5215 13.7836 16.3783 13.7616 16.2117 13.7616H15.5245V15.6641Z", fill: "#6E6E6E" })));
|
|
33
33
|
exports.default = CompressedFileIcon;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*!
|
|
3
|
+
* © 2019 Atypon Systems LLC
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
18
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
19
|
+
};
|
|
20
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
+
const react_1 = __importDefault(require("react"));
|
|
22
|
+
const DocumentIconWithDot = (props) => (react_1.default.createElement("svg", { width: "28", height: "33", viewBox: "0 0 28 33", fill: "none", xmlns: "http://www.w3.org/2000/svg", "data-for": "dot", "data-tip": true },
|
|
23
|
+
react_1.default.createElement("rect", { x: "9", y: "9.71973", width: "18", height: "22", rx: "2", stroke: "#1A9BC7", strokeWidth: "2" }),
|
|
24
|
+
react_1.default.createElement("rect", { x: "13.167", y: "14.0771", width: "5.66667", height: "1.14286", rx: "0.5", fill: "#1A9BC7", stroke: "#1A9BC7" }),
|
|
25
|
+
react_1.default.createElement("rect", { x: "13.167", y: "19.791", width: "9.66667", height: "1.14286", rx: "0.5", fill: "#1A9BC7", stroke: "#1A9BC7" }),
|
|
26
|
+
react_1.default.createElement("rect", { x: "13.167", y: "25.5059", width: "9.66667", height: "1.14286", rx: "0.5", fill: "#1A9BC7", stroke: "#1A9BC7" }),
|
|
27
|
+
react_1.default.createElement("circle", { cx: "8", cy: "8.71973", r: "7", fill: "#1A9BC7", stroke: "white", strokeWidth: "2" })));
|
|
28
|
+
exports.default = DocumentIconWithDot;
|
|
@@ -19,9 +19,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
19
19
|
};
|
|
20
20
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
21
|
const react_1 = __importDefault(require("react"));
|
|
22
|
-
const DocumentIcon = (props) => (react_1.default.createElement("svg", { className: props.className, width: "
|
|
23
|
-
react_1.default.createElement("rect", { x: "1
|
|
24
|
-
react_1.default.createElement("rect", { x: "
|
|
25
|
-
react_1.default.createElement("rect", { x: "
|
|
26
|
-
react_1.default.createElement("rect", { x: "
|
|
22
|
+
const DocumentIcon = (props) => (react_1.default.createElement("svg", { className: props.className, width: "20", height: "25", viewBox: "0 0 20 25", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
23
|
+
react_1.default.createElement("rect", { x: "1", y: "1.71973", width: "18", height: "22", rx: "2", stroke: props.color, strokeWidth: "2" }),
|
|
24
|
+
react_1.default.createElement("rect", { x: "5.16699", y: "6.07715", width: "5.66667", height: "1.14286", rx: "0.5", fill: "#1A9BC7", stroke: props.color }),
|
|
25
|
+
react_1.default.createElement("rect", { x: "5.16699", y: "11.791", width: "9.66667", height: "1.14286", rx: "0.5", fill: "#1A9BC7", stroke: props.color }),
|
|
26
|
+
react_1.default.createElement("rect", { x: "5.16699", y: "17.5059", width: "9.66667", height: "1.14286", rx: "0.5", fill: "#1A9BC7", stroke: props.color })));
|
|
27
27
|
exports.default = DocumentIcon;
|
|
@@ -19,8 +19,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
19
19
|
};
|
|
20
20
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
21
|
const react_1 = __importDefault(require("react"));
|
|
22
|
-
const FigureIcon = (props) => (react_1.default.createElement("svg", { className: props.className, width: "
|
|
23
|
-
react_1.default.createElement("path", { d: "
|
|
24
|
-
react_1.default.createElement("path", { d: "
|
|
25
|
-
react_1.default.createElement("path", { d: "
|
|
22
|
+
const FigureIcon = (props) => (react_1.default.createElement("svg", { className: props.className, width: "19", height: "23", viewBox: "0 0 19 23", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
23
|
+
react_1.default.createElement("path", { d: "M14.0435 1.71973H4.47826C2.55727 1.71973 1 3.277 1 5.19799V18.2415C1 20.1625 2.55727 21.7197 4.47826 21.7197H14.0435C15.9645 21.7197 17.5217 20.1625 17.5217 18.2415V5.19799C17.5217 3.277 15.9645 1.71973 14.0435 1.71973Z", stroke: "#8DD439", strokeWidth: "2" }),
|
|
24
|
+
react_1.default.createElement("path", { d: "M8.39092 7.8063C8.39092 7.08594 7.80694 6.50195 7.08657 6.50195C6.36621 6.50195 5.78223 7.08594 5.78223 7.8063V17.3715C5.78223 18.0919 6.36621 18.6759 7.08657 18.6759C7.80694 18.6759 8.39092 18.0919 8.39092 17.3715V7.8063Z", fill: "#8DD439" }),
|
|
25
|
+
react_1.default.createElement("path", { d: "M12.7396 11.2848C12.7396 10.5645 12.1556 9.98047 11.4352 9.98047C10.7148 9.98047 10.1309 10.5645 10.1309 11.2848V17.3718C10.1309 18.0921 10.7148 18.6761 11.4352 18.6761C12.1556 18.6761 12.7396 18.0921 12.7396 17.3718V11.2848Z", fill: "#8DD439" })));
|
|
26
26
|
exports.default = FigureIcon;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*!
|
|
3
|
+
* © 2019 Atypon Systems LLC
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
18
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
19
|
+
};
|
|
20
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
+
const react_1 = __importDefault(require("react"));
|
|
22
|
+
const GraphicalAbstractIcon = (props) => (react_1.default.createElement("svg", { className: props.className, width: "24", height: "25", viewBox: "0 0 24 25", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
23
|
+
react_1.default.createElement("path", { d: "M18.5 12.7197C20.9853 12.7197 23 10.705 23 8.21973C23 5.73445 20.9853 3.71973 18.5 3.71973C16.0147 3.71973 14 5.73445 14 8.21973C14 10.705 16.0147 12.7197 18.5 12.7197Z", stroke: "#FFBD26", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
24
|
+
react_1.default.createElement("path", { d: "M13 14.7197H6V21.7197H13V14.7197Z", stroke: "#FFBD26", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
25
|
+
react_1.default.createElement("path", { d: "M2 9.71973L6 2.71973L10 9.71973H2Z", stroke: "#FFBD26", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" })));
|
|
26
|
+
exports.default = GraphicalAbstractIcon;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*!
|
|
3
|
+
* © 2019 Atypon Systems LLC
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
18
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
19
|
+
};
|
|
20
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
+
const react_1 = __importDefault(require("react"));
|
|
22
|
+
const ImageIcon = (props) => (react_1.default.createElement("svg", { className: props.className, width: "20", height: "25", viewBox: "0 0 20 25", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
23
|
+
react_1.default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M17 0.719727H3C1.34315 0.719727 0 2.06287 0 3.71973V21.7197C0 23.3766 1.34315 24.7197 3 24.7197H17C18.6569 24.7197 20 23.3766 20 21.7197V3.71973C20 2.06287 18.6569 0.719727 17 0.719727ZM2 3.71973C2 3.16744 2.44772 2.71973 3 2.71973H17C17.5523 2.71973 18 3.16744 18 3.71973V16.4876L13.2952 11.5701C12.948 11.1982 12.3852 11.1982 12.0381 11.5701L2.27769 22.4113C2.10568 22.2317 2 21.988 2 21.7197V3.71973ZM4.46682 22.7197H17C17.5523 22.7197 18 22.272 18 21.7197V19.1483C18 19.1483 18 19.1483 18 19.1483L12.6666 13.5904L4.46682 22.7197ZM5.55552 10.815C5.55552 10.552 5.7545 10.3388 5.99996 10.3388C6.24542 10.3388 6.44441 10.552 6.44441 10.815C6.44441 11.078 6.24542 11.2912 5.99996 11.2912C5.7545 11.2912 5.55552 11.078 5.55552 10.815ZM5.99996 8.43401C4.77266 8.43401 3.77774 9.5 3.77774 10.815C3.77774 12.1299 4.77266 13.1959 5.99996 13.1959C7.22726 13.1959 8.22218 12.1299 8.22218 10.815C8.22218 9.5 7.22726 8.43401 5.99996 8.43401Z", fill: "#36B260" })));
|
|
24
|
+
exports.default = ImageIcon;
|