@manuscripts/style-guide 1.1.16-LEAN-2669-v2 → 1.1.16-LEAN-2669-v23
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 +1 -1
- package/dist/cjs/components/FileManager/InlineFilesSection.js +2 -1
- package/dist/es/components/FileManager/FileSectionItem/FileInfo.js +1 -1
- package/dist/es/components/FileManager/InlineFilesSection.js +2 -1
- package/package.json +1 -1
|
@@ -45,7 +45,7 @@ const FileInfo = ({ showAttachmentName, title, fileAttachmentName, fileExtension
|
|
|
45
45
|
".",
|
|
46
46
|
fileExtension))),
|
|
47
47
|
fileCreatedDate && (react_1.default.createElement(exports.FileDateContainer, null,
|
|
48
|
-
react_1.default.createElement(exports.FileDate, null, (0, date_fns_1.format)(fileCreatedDate, 'd
|
|
48
|
+
react_1.default.createElement(exports.FileDate, null, (0, date_fns_1.format)(new Date(fileCreatedDate), 'M/d/yy, HH:mm')))))));
|
|
49
49
|
};
|
|
50
50
|
exports.FileInfo = FileInfo;
|
|
51
51
|
exports.FileDateContainer = styled_components_1.default.div `
|
|
@@ -74,7 +74,7 @@ const FileReference = ({ attachment, handleReplace, handleDownload, handleUpdate
|
|
|
74
74
|
util_1.fileTypesWithIconMap.get(util_1.extensionsWithFileTypesMap.get(fileExtension)),
|
|
75
75
|
react_1.default.createElement(FileReferenceName, null, attachment.name)),
|
|
76
76
|
attachment.createdDate && (react_1.default.createElement(exports.FileDateContainer, null,
|
|
77
|
-
react_1.default.createElement(exports.FileDate, null, (0, date_fns_1.format)(attachment.createdDate, 'd
|
|
77
|
+
react_1.default.createElement(exports.FileDate, null, (0, date_fns_1.format)(new Date(attachment.createdDate), 'M/d/yy, HH:mm')))),
|
|
78
78
|
handleDownload && handleReplace && (react_1.default.createElement(DropdownContainer, { ref: wrapperRef },
|
|
79
79
|
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 },
|
|
80
80
|
react_1.default.createElement(dots_icon_1.default, null)),
|
|
@@ -88,6 +88,7 @@ exports.FileDateContainer = styled_components_1.default.div `
|
|
|
88
88
|
overflow: hidden;
|
|
89
89
|
display: none;
|
|
90
90
|
width: 50%;
|
|
91
|
+
line-height: 27px;
|
|
91
92
|
`;
|
|
92
93
|
const ElementItem = (0, styled_components_1.default)(FileSectionItem_1.Item) `
|
|
93
94
|
display: flex;
|
|
@@ -16,7 +16,7 @@ export const FileInfo = ({ showAttachmentName, title, fileAttachmentName, fileEx
|
|
|
16
16
|
".",
|
|
17
17
|
fileExtension))),
|
|
18
18
|
fileCreatedDate && (React.createElement(FileDateContainer, null,
|
|
19
|
-
React.createElement(FileDate, null, format(fileCreatedDate, 'd
|
|
19
|
+
React.createElement(FileDate, null, format(new Date(fileCreatedDate), 'M/d/yy, HH:mm')))))));
|
|
20
20
|
};
|
|
21
21
|
export const FileDateContainer = styled.div `
|
|
22
22
|
line-height: 20px;
|
|
@@ -44,7 +44,7 @@ const FileReference = ({ attachment, handleReplace, handleDownload, handleUpdate
|
|
|
44
44
|
fileTypesWithIconMap.get(extensionsWithFileTypesMap.get(fileExtension)),
|
|
45
45
|
React.createElement(FileReferenceName, null, attachment.name)),
|
|
46
46
|
attachment.createdDate && (React.createElement(FileDateContainer, null,
|
|
47
|
-
React.createElement(FileDate, null, format(attachment.createdDate, 'd
|
|
47
|
+
React.createElement(FileDate, null, format(new Date(attachment.createdDate), 'M/d/yy, HH:mm')))),
|
|
48
48
|
handleDownload && handleReplace && (React.createElement(DropdownContainer, { ref: wrapperRef },
|
|
49
49
|
React.createElement(ActionsIcon, { onClick: toggleOpen, type: "button", className: 'external_file_dropdown', "aria-label": "Download or Replace or Detach", "aria-pressed": isOpen },
|
|
50
50
|
React.createElement(DotsIcon, null)),
|
|
@@ -58,6 +58,7 @@ export const FileDateContainer = styled.div `
|
|
|
58
58
|
overflow: hidden;
|
|
59
59
|
display: none;
|
|
60
60
|
width: 50%;
|
|
61
|
+
line-height: 27px;
|
|
61
62
|
`;
|
|
62
63
|
const ElementItem = styled(Item) `
|
|
63
64
|
display: flex;
|
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.16-LEAN-2669-
|
|
4
|
+
"version": "1.1.16-LEAN-2669-v23",
|
|
5
5
|
"repository": "github:Atypon-OpenSource/manuscripts-style-guide",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"main": "dist/cjs",
|