@manuscripts/style-guide 1.1.16-LEAN-2669-v12 → 1.1.17-LEAN-2669
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/FileManager/FileSectionItem/FileInfo.js +3 -2
- package/dist/cjs/components/FileManager/InlineFilesSection.js +1 -1
- package/dist/es/components/FileManager/FileSectionItem/FileInfo.js +3 -2
- package/dist/es/components/FileManager/InlineFilesSection.js +1 -1
- package/package.json +2 -3
|
@@ -47,7 +47,7 @@ const FileInfo = ({ showAttachmentName, title, fileAttachmentName, fileExtension
|
|
|
47
47
|
fileExtension))),
|
|
48
48
|
fileCreatedDate && (react_1.default.createElement(exports.FileDateContainer, { "data-tip": "tooltip-content" },
|
|
49
49
|
react_1.default.createElement(exports.FileDate, null, (0, date_fns_1.format)(new Date(fileCreatedDate), 'M/d/yy, HH:mm')),
|
|
50
|
-
react_1.default.createElement(react_tooltip_1.default, { place: "bottom", offset: { top:
|
|
50
|
+
react_1.default.createElement(react_tooltip_1.default, { place: "bottom", offset: { top: 0 }, effect: "solid", className: "tooltip" }, "File Uploaded"))))));
|
|
51
51
|
};
|
|
52
52
|
exports.FileInfo = FileInfo;
|
|
53
53
|
exports.FileDateContainer = styled_components_1.default.div `
|
|
@@ -55,7 +55,8 @@ exports.FileDateContainer = styled_components_1.default.div `
|
|
|
55
55
|
overflow: hidden;
|
|
56
56
|
width: 100%;
|
|
57
57
|
display: none;
|
|
58
|
-
|
|
58
|
+
display: flex;
|
|
59
|
+
justify-content: flex-end;
|
|
59
60
|
`;
|
|
60
61
|
exports.FileInfoContainer = styled_components_1.default.div `
|
|
61
62
|
margin-left: 8px;
|
|
@@ -76,7 +76,7 @@ const FileReference = ({ attachment, handleReplace, handleDownload, handleUpdate
|
|
|
76
76
|
react_1.default.createElement(FileReferenceName, null, attachment.name)),
|
|
77
77
|
attachment.createdDate && (react_1.default.createElement(exports.FileDateContainer, { "data-tip": "tooltip-content" },
|
|
78
78
|
react_1.default.createElement(exports.FileDate, null, (0, date_fns_1.format)(new Date(attachment.createdDate), 'M/d/yy, HH:mm')),
|
|
79
|
-
react_1.default.createElement(react_tooltip_1.default, { place: "bottom", offset: { top:
|
|
79
|
+
react_1.default.createElement(react_tooltip_1.default, { place: "bottom", offset: { top: 0 }, effect: "solid", className: "tooltip" }, "File Uploaded"))),
|
|
80
80
|
handleDownload && handleReplace && (react_1.default.createElement(DropdownContainer, { ref: wrapperRef },
|
|
81
81
|
react_1.default.createElement(FileSectionItem_1.ActionsIcon, { onClick: toggleOpen, type: "button", className: 'external_file_dropdown', "aria-label": "Download or Replace or Detach", "aria-pressed": isOpen },
|
|
82
82
|
react_1.default.createElement(dots_icon_1.default, null)),
|
|
@@ -18,14 +18,15 @@ export const FileInfo = ({ showAttachmentName, title, fileAttachmentName, fileEx
|
|
|
18
18
|
fileExtension))),
|
|
19
19
|
fileCreatedDate && (React.createElement(FileDateContainer, { "data-tip": "tooltip-content" },
|
|
20
20
|
React.createElement(FileDate, null, format(new Date(fileCreatedDate), 'M/d/yy, HH:mm')),
|
|
21
|
-
React.createElement(ReactTooltip, { place: "bottom", offset: { top:
|
|
21
|
+
React.createElement(ReactTooltip, { place: "bottom", offset: { top: 0 }, effect: "solid", className: "tooltip" }, "File Uploaded"))))));
|
|
22
22
|
};
|
|
23
23
|
export const FileDateContainer = styled.div `
|
|
24
24
|
line-height: 20px;
|
|
25
25
|
overflow: hidden;
|
|
26
26
|
width: 100%;
|
|
27
27
|
display: none;
|
|
28
|
-
|
|
28
|
+
display: flex;
|
|
29
|
+
justify-content: flex-end;
|
|
29
30
|
`;
|
|
30
31
|
export const FileInfoContainer = styled.div `
|
|
31
32
|
margin-left: 8px;
|
|
@@ -46,7 +46,7 @@ const FileReference = ({ attachment, handleReplace, handleDownload, handleUpdate
|
|
|
46
46
|
React.createElement(FileReferenceName, null, attachment.name)),
|
|
47
47
|
attachment.createdDate && (React.createElement(FileDateContainer, { "data-tip": "tooltip-content" },
|
|
48
48
|
React.createElement(FileDate, null, format(new Date(attachment.createdDate), 'M/d/yy, HH:mm')),
|
|
49
|
-
React.createElement(ReactTooltip, { place: "bottom", offset: { top:
|
|
49
|
+
React.createElement(ReactTooltip, { place: "bottom", offset: { top: 0 }, effect: "solid", className: "tooltip" }, "File Uploaded"))),
|
|
50
50
|
handleDownload && handleReplace && (React.createElement(DropdownContainer, { ref: wrapperRef },
|
|
51
51
|
React.createElement(ActionsIcon, { onClick: toggleOpen, type: "button", className: 'external_file_dropdown', "aria-label": "Download or Replace or Detach", "aria-pressed": isOpen },
|
|
52
52
|
React.createElement(DotsIcon, null)),
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@manuscripts/style-guide",
|
|
3
3
|
"description": "Shared components for Manuscripts applications",
|
|
4
|
-
"version": "1.1.
|
|
4
|
+
"version": "1.1.17-LEAN-2669",
|
|
5
5
|
"repository": "github:Atypon-OpenSource/manuscripts-style-guide",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"main": "dist/cjs",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"@formatjs/intl-relativetimeformat": "^4.5.9",
|
|
37
37
|
"@formatjs/intl-utils": "^2.2.0",
|
|
38
38
|
"@manuscripts/assets": "^0.6.2",
|
|
39
|
-
"@manuscripts/transform": "^1.3.
|
|
39
|
+
"@manuscripts/transform": "^1.3.7",
|
|
40
40
|
"@manuscripts/json-schema": "^2.1.0",
|
|
41
41
|
"@manuscripts/title-editor": "^1.1.0",
|
|
42
42
|
"@manuscripts/comment-editor": "^1.0.3",
|
|
@@ -77,7 +77,6 @@
|
|
|
77
77
|
"@inline-svg-unique-id/react": "^1.2.3",
|
|
78
78
|
"@manuscripts/data": "^1.0.2",
|
|
79
79
|
"@manuscripts/eslint-config": "^0.5.1",
|
|
80
|
-
"@manuscripts/examples": "^0.0.7",
|
|
81
80
|
"@storybook/addon-actions": "^6.5.15",
|
|
82
81
|
"@storybook/addons": "^6.5.15",
|
|
83
82
|
"@storybook/core": "^6.5.15",
|