@manuscripts/style-guide 1.2.1-LEAN-2669 → 1.2.1-LEAN-2669-v1

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.
@@ -29,7 +29,6 @@ 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"));
33
32
  const styled_components_1 = __importDefault(require("styled-components"));
34
33
  const use_dropdown_1 = require("../../hooks/use-dropdown");
35
34
  const dots_icon_1 = __importDefault(require("../icons/dots-icon"));
@@ -74,9 +73,8 @@ const FileReference = ({ attachment, handleReplace, handleDownload, handleUpdate
74
73
  react_1.default.createElement(Container, null,
75
74
  util_1.fileTypesWithIconMap.get(util_1.extensionsWithFileTypesMap.get(fileExtension)),
76
75
  react_1.default.createElement(FileReferenceName, null, attachment.name)),
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", offset: { top: 0 }, effect: "solid", className: "tooltip" }, "File Uploaded"))),
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')))),
80
78
  handleDownload && handleReplace && (react_1.default.createElement(DropdownContainer, { ref: wrapperRef },
81
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 },
82
80
  react_1.default.createElement(dots_icon_1.default, null)),
@@ -89,8 +87,8 @@ const FileReference = ({ attachment, handleReplace, handleDownload, handleUpdate
89
87
  exports.FileDateContainer = styled_components_1.default.div `
90
88
  overflow: hidden;
91
89
  display: none;
92
- width: 100%;
93
- justify-content: flex-end;
90
+ width: 50%;
91
+ line-height: 27px;
94
92
  `;
95
93
  const ElementItem = (0, styled_components_1.default)(FileSectionItem_1.Item) `
96
94
  display: flex;
@@ -1,6 +1,5 @@
1
1
  import { format } from 'date-fns';
2
2
  import React, { useCallback } from 'react';
3
- import ReactTooltip from 'react-tooltip';
4
3
  import styled from 'styled-components';
5
4
  import { useDropdown } from '../../hooks/use-dropdown';
6
5
  import DotsIcon from '../icons/dots-icon';
@@ -44,9 +43,8 @@ const FileReference = ({ attachment, handleReplace, handleDownload, handleUpdate
44
43
  React.createElement(Container, null,
45
44
  fileTypesWithIconMap.get(extensionsWithFileTypesMap.get(fileExtension)),
46
45
  React.createElement(FileReferenceName, null, attachment.name)),
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", offset: { top: 0 }, effect: "solid", className: "tooltip" }, "File Uploaded"))),
46
+ attachment.createdDate && (React.createElement(FileDateContainer, null,
47
+ React.createElement(FileDate, null, format(new Date(attachment.createdDate), 'M/d/yy, HH:mm')))),
50
48
  handleDownload && handleReplace && (React.createElement(DropdownContainer, { ref: wrapperRef },
51
49
  React.createElement(ActionsIcon, { onClick: toggleOpen, type: "button", className: 'external_file_dropdown', "aria-label": "Download or Replace or Detach", "aria-pressed": isOpen },
52
50
  React.createElement(DotsIcon, null)),
@@ -59,8 +57,8 @@ const FileReference = ({ attachment, handleReplace, handleDownload, handleUpdate
59
57
  export const FileDateContainer = styled.div `
60
58
  overflow: hidden;
61
59
  display: none;
62
- width: 100%;
63
- justify-content: flex-end;
60
+ width: 50%;
61
+ line-height: 27px;
64
62
  `;
65
63
  const ElementItem = styled(Item) `
66
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.2.1-LEAN-2669",
4
+ "version": "1.2.1-LEAN-2669-v1",
5
5
  "repository": "github:Atypon-OpenSource/manuscripts-style-guide",
6
6
  "license": "Apache-2.0",
7
7
  "main": "dist/cjs",