@manuscripts/style-guide 1.1.16-LEAN-2669-v22 → 1.1.16-LEAN-2669-v11

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.
@@ -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)(new Date(fileCreatedDate), 'M/d/yy HH:mm')))))));
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 `
@@ -29,6 +29,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.FileDate = exports.FileDateContainer = exports.InlineFilesSection = void 0;
30
30
  const date_fns_1 = require("date-fns");
31
31
  const react_1 = __importStar(require("react"));
32
+ const react_tooltip_1 = __importDefault(require("react-tooltip"));
32
33
  const styled_components_1 = __importDefault(require("styled-components"));
33
34
  const use_dropdown_1 = require("../../hooks/use-dropdown");
34
35
  const dots_icon_1 = __importDefault(require("../icons/dots-icon"));
@@ -73,8 +74,9 @@ const FileReference = ({ attachment, handleReplace, handleDownload, handleUpdate
73
74
  react_1.default.createElement(Container, null,
74
75
  util_1.fileTypesWithIconMap.get(util_1.extensionsWithFileTypesMap.get(fileExtension)),
75
76
  react_1.default.createElement(FileReferenceName, null, attachment.name)),
76
- attachment.createdDate && (react_1.default.createElement(exports.FileDateContainer, null,
77
- react_1.default.createElement(exports.FileDate, null, (0, date_fns_1.format)(new Date(attachment.createdDate), 'M/d/yy HH:mm')))),
77
+ attachment.createdDate && (react_1.default.createElement(exports.FileDateContainer, { "data-tip": "tooltip-content" },
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', className: "tooltip", offset: { top: 10 } }, "File Uploaded"))),
78
80
  handleDownload && handleReplace && (react_1.default.createElement(DropdownContainer, { ref: wrapperRef },
79
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 },
80
82
  react_1.default.createElement(dots_icon_1.default, null)),
@@ -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(new Date(fileCreatedDate), 'M/d/yy HH:mm')))))));
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;
@@ -1,5 +1,6 @@
1
1
  import { format } from 'date-fns';
2
2
  import React, { useCallback } from 'react';
3
+ import ReactTooltip from 'react-tooltip';
3
4
  import styled from 'styled-components';
4
5
  import { useDropdown } from '../../hooks/use-dropdown';
5
6
  import DotsIcon from '../icons/dots-icon';
@@ -43,8 +44,9 @@ const FileReference = ({ attachment, handleReplace, handleDownload, handleUpdate
43
44
  React.createElement(Container, null,
44
45
  fileTypesWithIconMap.get(extensionsWithFileTypesMap.get(fileExtension)),
45
46
  React.createElement(FileReferenceName, null, attachment.name)),
46
- attachment.createdDate && (React.createElement(FileDateContainer, null,
47
- React.createElement(FileDate, null, format(new Date(attachment.createdDate), 'M/d/yy HH:mm')))),
47
+ attachment.createdDate && (React.createElement(FileDateContainer, { "data-tip": "tooltip-content" },
48
+ React.createElement(FileDate, null, format(new Date(attachment.createdDate), 'M/d/yy, HH:mm')),
49
+ React.createElement(ReactTooltip, { place: 'bottom', className: "tooltip", offset: { top: 10 } }, "File Uploaded"))),
48
50
  handleDownload && handleReplace && (React.createElement(DropdownContainer, { ref: wrapperRef },
49
51
  React.createElement(ActionsIcon, { onClick: toggleOpen, type: "button", className: 'external_file_dropdown', "aria-label": "Download or Replace or Detach", "aria-pressed": isOpen },
50
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.16-LEAN-2669-v22",
4
+ "version": "1.1.16-LEAN-2669-v11",
5
5
  "repository": "github:Atypon-OpenSource/manuscripts-style-guide",
6
6
  "license": "Apache-2.0",
7
7
  "main": "dist/cjs",