@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.
Files changed (59) hide show
  1. package/dist/cjs/components/AuthorsContainer.js +2 -2
  2. package/dist/cjs/components/AuthorsList/AuthorsList.js +2 -2
  3. package/dist/cjs/components/FileManager/FileManager.js +3 -2
  4. package/dist/cjs/components/FileManager/FileSectionItem/FileInfo.js +7 -7
  5. package/dist/cjs/components/FileManager/FileSectionItem/FileTypeIcon.js +9 -18
  6. package/dist/cjs/components/FileManager/FileSectionItem/ItemActions.js +2 -2
  7. package/dist/cjs/components/FileManager/InlineFilesSection.js +156 -0
  8. package/dist/cjs/components/FileManager/util.js +10 -1
  9. package/dist/cjs/components/icons/audio-icon.js +4 -4
  10. package/dist/cjs/components/icons/code-file-icon.js +4 -4
  11. package/dist/cjs/components/icons/compressed-file-icon.js +11 -11
  12. package/dist/cjs/components/icons/document-icon-with-dot.js +28 -0
  13. package/dist/cjs/components/icons/document-icon.js +5 -5
  14. package/dist/cjs/components/icons/figure-icon.js +4 -4
  15. package/dist/cjs/components/icons/graphical_abstract_icon.js +26 -0
  16. package/dist/cjs/components/icons/image-icon.js +24 -0
  17. package/dist/cjs/components/icons/latex-icon.js +6 -6
  18. package/dist/cjs/components/icons/pdf-file-icon.js +3 -3
  19. package/dist/cjs/components/icons/table-icon.js +2 -4
  20. package/dist/cjs/components/icons/unknown-format-file-icon.js +3 -3
  21. package/dist/cjs/components/icons/video-icon.js +2 -2
  22. package/dist/cjs/hooks/use-dropdown.js +2 -1
  23. package/dist/cjs/lib/inlineFiles.js +65 -0
  24. package/dist/es/components/AuthorsContainer.js +2 -2
  25. package/dist/es/components/AuthorsList/AuthorsList.js +2 -2
  26. package/dist/es/components/FileManager/FileManager.js +3 -2
  27. package/dist/es/components/FileManager/FileSectionItem/FileInfo.js +3 -3
  28. package/dist/es/components/FileManager/FileSectionItem/FileTypeIcon.js +9 -18
  29. package/dist/es/components/FileManager/FileSectionItem/ItemActions.js +2 -2
  30. package/dist/es/components/FileManager/InlineFilesSection.js +130 -0
  31. package/dist/es/components/FileManager/util.js +10 -1
  32. package/dist/es/components/icons/audio-icon.js +4 -4
  33. package/dist/es/components/icons/code-file-icon.js +4 -4
  34. package/dist/es/components/icons/compressed-file-icon.js +11 -11
  35. package/dist/es/components/icons/document-icon-with-dot.js +23 -0
  36. package/dist/es/components/icons/document-icon.js +5 -5
  37. package/dist/es/components/icons/figure-icon.js +4 -4
  38. package/dist/es/components/icons/graphical_abstract_icon.js +21 -0
  39. package/dist/es/components/icons/image-icon.js +19 -0
  40. package/dist/es/components/icons/latex-icon.js +6 -6
  41. package/dist/es/components/icons/pdf-file-icon.js +3 -3
  42. package/dist/es/components/icons/table-icon.js +2 -4
  43. package/dist/es/components/icons/unknown-format-file-icon.js +3 -3
  44. package/dist/es/components/icons/video-icon.js +2 -2
  45. package/dist/es/hooks/use-dropdown.js +2 -1
  46. package/dist/es/lib/inlineFiles.js +63 -0
  47. package/dist/types/components/AuthorsContainer.d.ts +1 -0
  48. package/dist/types/components/AuthorsList/AuthorsList.d.ts +1 -0
  49. package/dist/types/components/FileManager/FileManager.d.ts +2 -1
  50. package/dist/types/components/FileManager/FileSectionItem/FileInfo.d.ts +3 -0
  51. package/dist/types/components/FileManager/FileSectionItem/ItemActions.d.ts +2 -1
  52. package/dist/types/components/FileManager/InlineFilesSection.d.ts +16 -0
  53. package/dist/types/components/FileManager/util.d.ts +3 -1
  54. package/dist/types/components/icons/document-icon-with-dot.d.ts +19 -0
  55. package/dist/types/components/icons/graphical_abstract_icon.d.ts +19 -0
  56. package/dist/types/components/icons/image-icon.d.ts +19 -0
  57. package/dist/types/hooks/use-dropdown.d.ts +1 -1
  58. package/dist/types/lib/inlineFiles.d.ts +11 -0
  59. 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(FilesSection_1.FilesSection, { submissionId: submissionId, enableDragAndDrop: false, handleUpload: handleUploadFile, fileSection: util_1.FileSectionType.Inline, filesItem: getFileSectionExternalFile(util_1.FileSectionType.Inline), state: state, dispatch: dispatch })),
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
- const FileNameTitleContainer = styled_components_1.default.div `
59
+ exports.FileNameTitleContainer = styled_components_1.default.div `
60
60
  display: flex;
61
61
  width: 100%;
62
62
  `;
63
- const FileTitle = styled_components_1.default.div `
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
- const FileDescription = styled_components_1.default.div `
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 (react_1.default.createElement(Container, null,
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(figure_icon_1.default, { key: FileType.Image })],
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: "16", height: "16", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
23
- react_1.default.createElement("path", { d: "M8 14C7.73478 14 7.48043 13.8946 7.29289 13.7071C7.10536 13.5196 7 13.2652 7 13V3C7 2.73478 7.10536 2.48043 7.29289 2.29289C7.48043 2.10536 7.73478 2 8 2C8.26522 2 8.51957 2.10536 8.70711 2.29289C8.89464 2.48043 9 2.73478 9 3V13C9 13.2652 8.89464 13.5196 8.70711 13.7071C8.51957 13.8946 8.26522 14 8 14Z", fill: "#F474AE" }),
24
- react_1.default.createElement("path", { d: "M4 12C3.73478 12 3.48043 11.8946 3.29289 11.7071C3.10536 11.5196 3 11.2652 3 11V5C3 4.73478 3.10536 4.48043 3.29289 4.29289C3.48043 4.10536 3.73478 4 4 4C4.26522 4 4.51957 4.10536 4.70711 4.29289C4.89464 4.48043 5 4.73478 5 5V11C5 11.2652 4.89464 11.5196 4.70711 11.7071C4.51957 11.8946 4.26522 12 4 12Z", fill: "#F474AE" }),
25
- react_1.default.createElement("path", { d: "M12 10C11.7348 10 11.4804 9.89464 11.2929 9.70711C11.1054 9.51957 11 9.26522 11 9V7C11 6.73478 11.1054 6.48043 11.2929 6.29289C11.4804 6.10536 11.7348 6 12 6C12.2652 6 12.5196 6.10536 12.7071 6.29289C12.8946 6.48043 13 6.73478 13 7V9C13 9.26522 12.8946 9.51957 12.7071 9.70711C12.5196 9.89464 12.2652 10 12 10Z", fill: "#F474AE" })));
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: "17", height: "16", viewBox: "0 0 17 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
23
- react_1.default.createElement("path", { d: "M4.28492 11.6493L0.81779 8.18221L4.36914 4.63086", stroke: "#B3A1FC", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }),
24
- react_1.default.createElement("path", { d: "M12.3684 11.6493L15.8355 8.18221L12.2842 4.63086", stroke: "#B3A1FC", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }),
25
- react_1.default.createElement("path", { d: "M10 1L7 15", stroke: "#B3A1FC", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" })));
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: "16", height: "18", viewBox: "0 0 16 18", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
23
- react_1.default.createElement("line", { x1: "8.75", y1: "2", x2: "8.75", y2: "3", stroke: "#353535", strokeWidth: "1.5" }),
24
- react_1.default.createElement("line", { x1: "8.75", y1: "4", x2: "8.75", y2: "5", stroke: "#353535", strokeWidth: "1.5" }),
25
- react_1.default.createElement("line", { x1: "8.75", y1: "6", x2: "8.75", y2: "7", stroke: "#353535", strokeWidth: "1.5" }),
26
- react_1.default.createElement("line", { x1: "7.75", y1: "3", x2: "7.75", y2: "4", stroke: "#353535", strokeWidth: "1.5" }),
27
- react_1.default.createElement("line", { x1: "7.75", y1: "5", x2: "7.75", y2: "6", stroke: "#353535", strokeWidth: "1.5" }),
28
- react_1.default.createElement("line", { x1: "7.75", y1: "7", x2: "7.75", y2: "8", stroke: "#353535", strokeWidth: "1.5" }),
29
- react_1.default.createElement("rect", { x: "1.25", y: "1.25", width: "13.5", height: "15.5", rx: "1.75", stroke: "#353535", strokeWidth: "1.5" }),
30
- react_1.default.createElement("path", { d: "M5.98334 9V9.33493C5.98334 9.38252 5.97553 9.42919 5.95991 9.47495C5.94603 9.5207 5.92607 9.56372 5.90004 9.60398L4.1194 12.2862H5.92607V13H3V12.6431C3 12.601 3.00694 12.5598 3.02083 12.5196C3.03471 12.4775 3.0538 12.439 3.0781 12.4043L4.86394 9.7138H3.14578V9H5.98334Z", fill: "#353535" }),
31
- react_1.default.createElement("path", { d: "M8.39059 13H7.50548V9H8.39059V13Z", fill: "#353535" }),
32
- react_1.default.createElement("path", { d: "M11.0163 11.663V13H10.1364V9H11.4745C11.7418 9 11.9708 9.03386 12.1617 9.10158C12.3544 9.16747 12.5123 9.25898 12.6355 9.37612C12.7605 9.49325 12.8525 9.63143 12.9115 9.79067C12.9705 9.9499 13 10.1219 13 10.3068C13 10.5063 12.9696 10.6893 12.9089 10.8559C12.8481 11.0224 12.7553 11.1652 12.6303 11.2841C12.5054 11.4031 12.3466 11.4965 12.1539 11.5642C11.963 11.6301 11.7365 11.663 11.4745 11.663H11.0163ZM11.0163 10.9629H11.4745C11.7036 10.9629 11.8684 10.9053 11.9691 10.79C12.0698 10.6747 12.1201 10.5136 12.1201 10.3068C12.1201 10.2153 12.1071 10.132 12.081 10.057C12.055 9.98193 12.0151 9.91787 11.9613 9.86479C11.9092 9.80988 11.8424 9.76779 11.7608 9.7385C11.681 9.70922 11.5856 9.69458 11.4745 9.69458H11.0163V10.9629Z", fill: "#353535" })));
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: "16", height: "18", viewBox: "0 0 16 18", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
23
- react_1.default.createElement("rect", { x: "1.25", y: "1.25", width: "13.5", height: "15.5", rx: "1.75", stroke: props.color, strokeWidth: "1.5" }),
24
- react_1.default.createElement("rect", { x: "4.375", y: "4.375", width: "4.25", height: "0.75", rx: "0.375", stroke: props.color, strokeWidth: "0.75" }),
25
- react_1.default.createElement("rect", { x: "4.375", y: "8.375", width: "7.25", height: "0.75", rx: "0.375", stroke: props.color, strokeWidth: "0.75" }),
26
- react_1.default.createElement("rect", { x: "4.375", y: "12.375", width: "7.25", height: "0.75", rx: "0.375", stroke: props.color, strokeWidth: "0.75" })));
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: "11", height: "14", viewBox: "0 0 11 14", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
23
- react_1.default.createElement("path", { d: "M8.25 1.25H2.75C1.64543 1.25 0.75 2.14543 0.75 3.25V10.75C0.75 11.8546 1.64543 12.75 2.75 12.75H8.25C9.35457 12.75 10.25 11.8546 10.25 10.75V3.25C10.25 2.14543 9.35457 1.25 8.25 1.25Z", stroke: "#8DD439", strokeWidth: "1.5" }),
24
- react_1.default.createElement("path", { d: "M5 4.75C5 4.33579 4.66421 4 4.25 4C3.83579 4 3.5 4.33579 3.5 4.75V10.25C3.5 10.6642 3.83579 11 4.25 11C4.66421 11 5 10.6642 5 10.25V4.75Z", fill: "#8DD439" }),
25
- react_1.default.createElement("path", { d: "M7.5 6.75C7.5 6.33579 7.16421 6 6.75 6C6.33579 6 6 6.33579 6 6.75V10.25C6 10.6642 6.33579 11 6.75 11C7.16421 11 7.5 10.6642 7.5 10.25V6.75Z", fill: "#8DD439" })));
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;