@manuscripts/style-guide 3.2.1 → 3.2.3
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/RelativeDate.js +20 -5
- package/dist/cjs/components/icons/index.js +3 -1
- package/dist/cjs/components/icons/translate.js +16 -0
- package/dist/es/components/RelativeDate.js +20 -5
- package/dist/es/components/icons/index.js +1 -0
- package/dist/es/components/icons/translate.js +11 -0
- package/dist/types/components/icons/index.d.ts +1 -0
- package/dist/types/components/icons/translate.d.ts +4 -0
- package/package.json +1 -1
|
@@ -25,12 +25,27 @@ const RelativeDate = ({ date, ...props }) => {
|
|
|
25
25
|
return null;
|
|
26
26
|
}
|
|
27
27
|
const formatter = new Intl.RelativeTimeFormat('en', { style: 'short' });
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
28
|
+
const msAgo = Date.now() - date;
|
|
29
|
+
const minutesAgo = msAgo / 60000;
|
|
30
|
+
const HOUR = 60;
|
|
31
|
+
const DAY = 24 * 60;
|
|
32
|
+
let value;
|
|
33
|
+
let unit;
|
|
34
|
+
if (minutesAgo < 1) {
|
|
35
|
+
return react_1.default.createElement("span", { ...props }, "just now");
|
|
36
|
+
}
|
|
37
|
+
else if (minutesAgo < HOUR) {
|
|
38
|
+
value = Math.round(minutesAgo);
|
|
39
|
+
unit = 'minute';
|
|
40
|
+
}
|
|
41
|
+
else if (minutesAgo < DAY) {
|
|
42
|
+
value = Math.round(minutesAgo / HOUR);
|
|
43
|
+
unit = 'hour';
|
|
44
|
+
}
|
|
45
|
+
else {
|
|
46
|
+
value = Math.round(minutesAgo / DAY);
|
|
32
47
|
unit = 'day';
|
|
33
48
|
}
|
|
34
|
-
return react_1.default.createElement("span", { ...props }, formatter.format(value, unit));
|
|
49
|
+
return react_1.default.createElement("span", { ...props }, formatter.format(-value, unit));
|
|
35
50
|
};
|
|
36
51
|
exports.RelativeDate = RelativeDate;
|
|
@@ -20,7 +20,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
20
20
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
21
|
exports.FileVideoIcon = exports.FileUnknownIcon = exports.FileTableIcon = exports.FilePdfIcon = exports.FileMainDocumentIcon = exports.FileLatexIcon = exports.FileImageIcon = exports.FileGraphicalAbstractIcon = exports.FileFigureIcon = exports.FileDocumentIcon = exports.FileCorruptedIcon = exports.FileCompressedIcon = exports.FileCodeIcon = exports.FileAudioIcon = exports.EditAttrsTrackingIcon = exports.EditIcon = exports.DraggableIcon = exports.DotsIcon = exports.DeleteIcon = exports.DeleteSolidIcon = exports.CorrespondingAuthorIcon = exports.CommentIcon = exports.CommentResolveIcon = exports.CommentReplyIcon = exports.CitationCountIcon = exports.SystemUserAvatarIcon = exports.ChatIcon = exports.BookIcon = exports.AffiliationPlaceholderIcon = exports.AuthorPlaceholderIcon = exports.AffiliationIcon = exports.AlertIcon = exports.AvatarIcon = exports.AttentionRedIcon = exports.AttentionOrangeIcon = exports.AttentionGreenIcon = exports.AttentionBlueIcon = exports.AttachIcon = exports.ArrowUpIcon = exports.ArrowLeftIcon = exports.ArrowDownCircleIcon = exports.ArrowDownIcon = exports.AddRoleIcon = exports.AddIcon = exports.AddOutlineIcon = exports.AddNewIcon = exports.AddedIcon = exports.AddFigureIcon = exports.AddCommentIcon = exports.AddAuthorIcon = void 0;
|
|
22
22
|
exports.ToolbarUnindentIcon = exports.ToolbarIndentIcon = exports.ToolbarUnorderedListIcon = exports.ToolbarUnderlineIcon = exports.ToolbarTableIcon = exports.ToolbarSymbolIcon = exports.ToolbarSuperscriptIcon = exports.ToolbarSubscriptIcon = exports.ToolbarOrderedListIcon = exports.ToolbarItalicIcon = exports.ToolbarFigureIcon = exports.ToolbarEquationIcon = exports.ToolbarCodeIcon = exports.ToolbarCitationIcon = exports.ToolbarBoldIcon = exports.TickIcon = exports.TaskStepDoneIcon = exports.SliderOnIcon = exports.SliderOffIcon = exports.SectionCategoryIcon = exports.SearchIcon = exports.ScrollIcon = exports.SaveStatusSavingIcon = exports.SaveStatusSavedIcon = exports.SaveStatusOfflineIcon = exports.RoleReadingIcon = exports.RoleAnnotatingIcon = exports.PlusIcon = exports.OutlineUnorderedListIcon = exports.OutlineTableIcon = exports.OutlineSectionIcon = exports.OutlinePullQuoteIcon = exports.OutlineParagraphIcon = exports.OutlineOrderedListIcon = exports.OutlineManuscriptIcon = exports.OutlineFigureIcon = exports.OutlineEmbedIcon = exports.OutlineEquationIcon = exports.OutlineCodeIcon = exports.OutlineBlockQuoteIcon = exports.ManuscriptIcon = exports.LogoutIcon = exports.LockIcon = exports.LinkIcon = exports.ImageRightIcon = exports.ImageDefaultIcon = exports.ImageLeftIcon = exports.HelpIcon = exports.HandleOutlineIcon = exports.HandleInspectorIcon = void 0;
|
|
23
|
-
exports.DangerIcon = exports.AddInstitutionIcon = exports.AddUserIcon = exports.ProfileIcon = exports.CrclTickAnimation = exports.VerticalEllipsisIcon = exports.UploadIcon = exports.TriangleExpandedIcon = exports.TriangleCollapsedIcon = void 0;
|
|
23
|
+
exports.DangerIcon = exports.AddInstitutionIcon = exports.AddUserIcon = exports.ProfileIcon = exports.CrclTickAnimation = exports.VerticalEllipsisIcon = exports.UploadIcon = exports.TriangleExpandedIcon = exports.TriangleCollapsedIcon = exports.TranslateIcon = void 0;
|
|
24
24
|
var add_author_1 = require("./add-author");
|
|
25
25
|
Object.defineProperty(exports, "AddAuthorIcon", { enumerable: true, get: function () { return __importDefault(add_author_1).default; } });
|
|
26
26
|
var add_comment_1 = require("./add-comment");
|
|
@@ -221,6 +221,8 @@ var toolbar_indent_1 = require("./toolbar-indent");
|
|
|
221
221
|
Object.defineProperty(exports, "ToolbarIndentIcon", { enumerable: true, get: function () { return __importDefault(toolbar_indent_1).default; } });
|
|
222
222
|
var toolbar_unindent_1 = require("./toolbar-unindent");
|
|
223
223
|
Object.defineProperty(exports, "ToolbarUnindentIcon", { enumerable: true, get: function () { return __importDefault(toolbar_unindent_1).default; } });
|
|
224
|
+
var translate_1 = require("./translate");
|
|
225
|
+
Object.defineProperty(exports, "TranslateIcon", { enumerable: true, get: function () { return __importDefault(translate_1).default; } });
|
|
224
226
|
var triangle_collapsed_1 = require("./triangle-collapsed");
|
|
225
227
|
Object.defineProperty(exports, "TriangleCollapsedIcon", { enumerable: true, get: function () { return __importDefault(triangle_collapsed_1).default; } });
|
|
226
228
|
var triangle_expanded_1 = require("./triangle-expanded");
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const react_1 = __importDefault(require("react"));
|
|
7
|
+
const TranslateIcon = (props) => (react_1.default.createElement("svg", { width: "20", height: "19", viewBox: "0 0 20 19", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props },
|
|
8
|
+
react_1.default.createElement("path", { d: "M17 7.6829L17.0811 7.69169C17.2631 7.72918 17.4004 7.89016 17.4004 8.08329C17.4004 8.27641 17.2631 8.4374 17.0811 8.47489L17 8.48368H12.5C12.2791 8.48368 12.0996 8.3042 12.0996 8.08329C12.0996 7.86237 12.2791 7.6829 12.5 7.6829H17Z", fill: "#6E6E6E" }),
|
|
9
|
+
react_1.default.createElement("path", { d: "M13.349 7.98829C13.5376 7.96168 13.7123 8.07734 13.7719 8.25545L13.7904 8.33514L13.8378 8.65308C13.9638 9.37209 14.2014 9.94791 14.638 10.5142C15.149 11.1767 15.9471 11.8456 17.2165 12.6998C17.3979 12.8219 17.4485 13.0733 17.3291 13.2614C17.2094 13.4496 16.9649 13.503 16.7833 13.3808C15.4972 12.5153 14.6124 11.7899 14.021 11.023C13.4931 10.3386 13.2104 9.63634 13.0645 8.80858L13.0097 8.44607L13.0073 8.36322C13.0207 8.17493 13.1606 8.01505 13.349 7.98829Z", fill: "#6E6E6E" }),
|
|
10
|
+
react_1.default.createElement("path", { d: "M16.151 7.98829C15.9624 7.96168 15.7877 8.07734 15.7282 8.25545L15.7097 8.33514L15.6623 8.65308C15.5362 9.37209 15.2987 9.94791 14.862 10.5142C14.3511 11.1767 13.5529 11.8456 12.2836 12.6998C12.1021 12.8219 12.0515 13.0733 12.1709 13.2614C12.2906 13.4496 12.5352 13.503 12.7167 13.3808C14.0029 12.5153 14.8876 11.7899 15.4791 11.023C16.0069 10.3386 16.2897 9.63634 16.4356 8.80858L16.4903 8.44607L16.4928 8.36322C16.4793 8.17493 16.3394 8.01505 16.151 7.98829Z", fill: "#6E6E6E" }),
|
|
11
|
+
react_1.default.createElement("path", { d: "M15.1548 7.92969L15.146 8.01074C15.1086 8.19291 14.9476 8.33008 14.7544 8.33008C14.5612 8.33008 14.4002 8.19291 14.3628 8.01074L14.354 7.92969V7C14.354 6.77909 14.5335 6.59961 14.7544 6.59961C14.9753 6.59961 15.1548 6.77909 15.1548 7V7.92969Z", fill: "#6E6E6E" }),
|
|
12
|
+
react_1.default.createElement("path", { d: "M10.0938 14.1494C10.2874 13.9527 10.6039 13.95 10.8008 14.1436C10.9975 14.3372 11.0002 14.6537 10.8066 14.8506L8.23633 17.4629C8.32048 17.4859 8.40856 17.5 8.5 17.5H17.5C18.0523 17.5 18.5 17.0523 18.5 16.5V4.5C18.5 3.94772 18.0523 3.5 17.5 3.5H10C9.72386 3.5 9.5 3.27614 9.5 3C9.5 2.72386 9.72386 2.5 10 2.5H17.5C18.6046 2.5 19.5 3.39543 19.5 4.5V16.5C19.5 17.6046 18.6046 18.5 17.5 18.5H8.5C7.39543 18.5 6.5 17.6046 6.5 16.5V14.5C6.5 14.2239 6.72386 14 7 14C7.27614 14 7.5 14.2239 7.5 14.5V16.5C7.5 16.5871 7.51226 16.6714 7.5332 16.752L10.0938 14.1494Z", fill: "#6E6E6E" }),
|
|
13
|
+
react_1.default.createElement("path", { d: "M0 13V2C0 0.89543 0.895431 0 2 0H8.22565C9.23805 0 10.0908 0.756519 10.2114 1.76171L11.5855 13.2128C11.6996 14.1634 10.9574 15 10 15V14C10.3578 14 10.6354 13.6873 10.5928 13.332L9.21875 1.88086C9.15844 1.37826 8.73179 1 8.22559 1H2C1.48232 1 1.05621 1.39333 1.00488 1.89746L1 2V13C1 13.5523 1.44772 14 2 14L2 15L1.7959 14.9893C0.854346 14.8938 0.1062 14.1457 0.0107422 13.2041L0 13ZM10 14V15H2L2 14H10Z", fill: "#6E6E6E" }),
|
|
14
|
+
react_1.default.createElement("path", { d: "M5.65918 3.00781C6.02373 3.04499 6.34625 3.20823 6.59961 3.45996C6.80754 3.66331 6.95407 3.91034 7.06055 4.15625L7.15527 4.40039L7.15723 4.40723L7.16016 4.41406L8.85938 9.58203L8.93262 9.82422C8.96677 9.96098 8.98846 10.1032 8.99609 10.249L9.26758 10.5283H8.99121C8.98953 10.5469 8.98663 10.5653 8.98438 10.584L8.98633 10.585C8.95038 10.9151 8.82305 11.2818 8.52246 11.5742L8.52344 11.5752C8.52182 11.5768 8.5192 11.5775 8.51758 11.5791C8.51338 11.5832 8.51013 11.5888 8.50586 11.5928L8.50488 11.5908C8.21558 11.868 7.85102 12 7.47754 12C7.06518 11.9999 6.62355 11.8578 6.29688 11.4805L6.28906 11.4717L6.28223 11.4629C6.26561 11.4428 6.25001 11.4212 6.23438 11.4004L6.14746 11.6133L5.82324 10.5283H5.16797L4.84375 11.623L4.75391 11.4053C4.74961 11.4112 4.74655 11.418 4.74219 11.4238C4.42318 11.8507 3.95695 11.9999 3.54395 12C3.16844 12 2.79801 11.8714 2.50195 11.5928L2.48926 11.5811L2.47656 11.5684C2.20132 11.2905 2.06549 10.9487 2.01855 10.6172V10.6123C2.01475 10.5844 2.01235 10.5561 2.00977 10.5283H1.68848L2.00879 10.2031C2.02179 10.0014 2.05787 9.80543 2.11523 9.62012L2.11816 9.61133L2.12109 9.60352L3.82715 4.41406C3.93281 4.09112 4.09769 3.73495 4.37988 3.45898L4.38672 3.45312L4.39355 3.44629C4.68404 3.17277 5.06275 3 5.49707 3L5.65918 3.00781ZM5.497 4C5.34165 4 5.20228 4.05809 5.07891 4.17427C4.96011 4.29046 4.85958 4.47441 4.77734 4.72614L3.0707 9.91563C3.00673 10.1222 2.98617 10.3094 3.00902 10.4772C3.03186 10.6385 3.09127 10.7676 3.18722 10.8645C3.2591 10.9321 3.34389 10.9742 3.44141 10.9912L3.54363 11C3.60547 11 3.66189 10.993 3.7128 10.979C3.77191 10.9627 3.82297 10.9376 3.86719 10.9023L3.94116 10.8257C4.02797 10.7095 4.1125 10.5224 4.19475 10.2642L4.41602 9.52832H6.57031L6.7924 10.2642C6.87008 10.5224 6.95689 10.7095 7.05285 10.8257C7.15337 10.9419 7.29502 11 7.47779 11C7.61487 11 7.72911 10.9548 7.82049 10.8645C7.91645 10.7741 7.97356 10.645 7.99184 10.4772C8.01469 10.3094 7.98956 10.1222 7.91645 9.91563L6.20981 4.72614C6.123 4.47441 6.02019 4.29046 5.90139 4.17427C5.78715 4.05809 5.65236 4 5.497 4ZM5.497 5.94606L6.16016 8.16309H4.82617L5.48329 5.94606H5.497Z", fill: "#6E6E6E" }),
|
|
15
|
+
react_1.default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M2 0C0.895431 0 0 0.89543 0 2V13C0 14.1046 0.89543 15 2 15H10C10.9574 15 11.6996 14.1634 11.5855 13.2128L10.2114 1.76171C10.0908 0.756519 9.23805 0 8.22565 0H2ZM3.18722 10.8645C3.09127 10.7676 3.03186 10.6385 3.00902 10.4772C2.98617 10.3094 3.00673 10.1222 3.0707 9.91563L4.77734 4.72614C4.85958 4.47441 4.96011 4.29046 5.07891 4.17427C5.20228 4.05809 5.34165 4 5.497 4C5.65236 4 5.78715 4.05809 5.90139 4.17427C6.02019 4.29046 6.123 4.47441 6.20981 4.72614L7.91645 9.91563C7.98956 10.1222 8.01469 10.3094 7.99184 10.4772C7.97356 10.645 7.91645 10.7741 7.82049 10.8645C7.72911 10.9548 7.61487 11 7.47779 11C7.29502 11 7.15337 10.9419 7.05285 10.8257C6.95689 10.7095 6.87008 10.5224 6.7924 10.2642L6.57031 9.52832H4.41602L4.19475 10.2642C4.1125 10.5224 4.02797 10.7095 3.94116 10.8257L3.86719 10.9023C3.82297 10.9376 3.77191 10.9627 3.7128 10.979C3.66189 10.993 3.60547 11 3.54363 11L3.44141 10.9912C3.34389 10.9742 3.2591 10.9321 3.18722 10.8645ZM5.48329 5.94606L4.82617 8.16309H6.16016L5.497 5.94606H5.48329Z", fill: "#6E6E6E" })));
|
|
16
|
+
exports.default = TranslateIcon;
|
|
@@ -19,11 +19,26 @@ export const RelativeDate = ({ date, ...props }) => {
|
|
|
19
19
|
return null;
|
|
20
20
|
}
|
|
21
21
|
const formatter = new Intl.RelativeTimeFormat('en', { style: 'short' });
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
22
|
+
const msAgo = Date.now() - date;
|
|
23
|
+
const minutesAgo = msAgo / 60000;
|
|
24
|
+
const HOUR = 60;
|
|
25
|
+
const DAY = 24 * 60;
|
|
26
|
+
let value;
|
|
27
|
+
let unit;
|
|
28
|
+
if (minutesAgo < 1) {
|
|
29
|
+
return React.createElement("span", { ...props }, "just now");
|
|
30
|
+
}
|
|
31
|
+
else if (minutesAgo < HOUR) {
|
|
32
|
+
value = Math.round(minutesAgo);
|
|
33
|
+
unit = 'minute';
|
|
34
|
+
}
|
|
35
|
+
else if (minutesAgo < DAY) {
|
|
36
|
+
value = Math.round(minutesAgo / HOUR);
|
|
37
|
+
unit = 'hour';
|
|
38
|
+
}
|
|
39
|
+
else {
|
|
40
|
+
value = Math.round(minutesAgo / DAY);
|
|
26
41
|
unit = 'day';
|
|
27
42
|
}
|
|
28
|
-
return React.createElement("span", { ...props }, formatter.format(value, unit));
|
|
43
|
+
return React.createElement("span", { ...props }, formatter.format(-value, unit));
|
|
29
44
|
};
|
|
@@ -113,6 +113,7 @@ export { default as ToolbarUnderlineIcon } from './toolbar-underline';
|
|
|
113
113
|
export { default as ToolbarUnorderedListIcon } from './toolbar-unordered-list';
|
|
114
114
|
export { default as ToolbarIndentIcon } from './toolbar-indent';
|
|
115
115
|
export { default as ToolbarUnindentIcon } from './toolbar-unindent';
|
|
116
|
+
export { default as TranslateIcon } from './translate';
|
|
116
117
|
export { default as TriangleCollapsedIcon } from './triangle-collapsed';
|
|
117
118
|
export { default as TriangleExpandedIcon } from './triangle-expanded';
|
|
118
119
|
export { default as UploadIcon } from './upload';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
const TranslateIcon = (props) => (React.createElement("svg", { width: "20", height: "19", viewBox: "0 0 20 19", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props },
|
|
3
|
+
React.createElement("path", { d: "M17 7.6829L17.0811 7.69169C17.2631 7.72918 17.4004 7.89016 17.4004 8.08329C17.4004 8.27641 17.2631 8.4374 17.0811 8.47489L17 8.48368H12.5C12.2791 8.48368 12.0996 8.3042 12.0996 8.08329C12.0996 7.86237 12.2791 7.6829 12.5 7.6829H17Z", fill: "#6E6E6E" }),
|
|
4
|
+
React.createElement("path", { d: "M13.349 7.98829C13.5376 7.96168 13.7123 8.07734 13.7719 8.25545L13.7904 8.33514L13.8378 8.65308C13.9638 9.37209 14.2014 9.94791 14.638 10.5142C15.149 11.1767 15.9471 11.8456 17.2165 12.6998C17.3979 12.8219 17.4485 13.0733 17.3291 13.2614C17.2094 13.4496 16.9649 13.503 16.7833 13.3808C15.4972 12.5153 14.6124 11.7899 14.021 11.023C13.4931 10.3386 13.2104 9.63634 13.0645 8.80858L13.0097 8.44607L13.0073 8.36322C13.0207 8.17493 13.1606 8.01505 13.349 7.98829Z", fill: "#6E6E6E" }),
|
|
5
|
+
React.createElement("path", { d: "M16.151 7.98829C15.9624 7.96168 15.7877 8.07734 15.7282 8.25545L15.7097 8.33514L15.6623 8.65308C15.5362 9.37209 15.2987 9.94791 14.862 10.5142C14.3511 11.1767 13.5529 11.8456 12.2836 12.6998C12.1021 12.8219 12.0515 13.0733 12.1709 13.2614C12.2906 13.4496 12.5352 13.503 12.7167 13.3808C14.0029 12.5153 14.8876 11.7899 15.4791 11.023C16.0069 10.3386 16.2897 9.63634 16.4356 8.80858L16.4903 8.44607L16.4928 8.36322C16.4793 8.17493 16.3394 8.01505 16.151 7.98829Z", fill: "#6E6E6E" }),
|
|
6
|
+
React.createElement("path", { d: "M15.1548 7.92969L15.146 8.01074C15.1086 8.19291 14.9476 8.33008 14.7544 8.33008C14.5612 8.33008 14.4002 8.19291 14.3628 8.01074L14.354 7.92969V7C14.354 6.77909 14.5335 6.59961 14.7544 6.59961C14.9753 6.59961 15.1548 6.77909 15.1548 7V7.92969Z", fill: "#6E6E6E" }),
|
|
7
|
+
React.createElement("path", { d: "M10.0938 14.1494C10.2874 13.9527 10.6039 13.95 10.8008 14.1436C10.9975 14.3372 11.0002 14.6537 10.8066 14.8506L8.23633 17.4629C8.32048 17.4859 8.40856 17.5 8.5 17.5H17.5C18.0523 17.5 18.5 17.0523 18.5 16.5V4.5C18.5 3.94772 18.0523 3.5 17.5 3.5H10C9.72386 3.5 9.5 3.27614 9.5 3C9.5 2.72386 9.72386 2.5 10 2.5H17.5C18.6046 2.5 19.5 3.39543 19.5 4.5V16.5C19.5 17.6046 18.6046 18.5 17.5 18.5H8.5C7.39543 18.5 6.5 17.6046 6.5 16.5V14.5C6.5 14.2239 6.72386 14 7 14C7.27614 14 7.5 14.2239 7.5 14.5V16.5C7.5 16.5871 7.51226 16.6714 7.5332 16.752L10.0938 14.1494Z", fill: "#6E6E6E" }),
|
|
8
|
+
React.createElement("path", { d: "M0 13V2C0 0.89543 0.895431 0 2 0H8.22565C9.23805 0 10.0908 0.756519 10.2114 1.76171L11.5855 13.2128C11.6996 14.1634 10.9574 15 10 15V14C10.3578 14 10.6354 13.6873 10.5928 13.332L9.21875 1.88086C9.15844 1.37826 8.73179 1 8.22559 1H2C1.48232 1 1.05621 1.39333 1.00488 1.89746L1 2V13C1 13.5523 1.44772 14 2 14L2 15L1.7959 14.9893C0.854346 14.8938 0.1062 14.1457 0.0107422 13.2041L0 13ZM10 14V15H2L2 14H10Z", fill: "#6E6E6E" }),
|
|
9
|
+
React.createElement("path", { d: "M5.65918 3.00781C6.02373 3.04499 6.34625 3.20823 6.59961 3.45996C6.80754 3.66331 6.95407 3.91034 7.06055 4.15625L7.15527 4.40039L7.15723 4.40723L7.16016 4.41406L8.85938 9.58203L8.93262 9.82422C8.96677 9.96098 8.98846 10.1032 8.99609 10.249L9.26758 10.5283H8.99121C8.98953 10.5469 8.98663 10.5653 8.98438 10.584L8.98633 10.585C8.95038 10.9151 8.82305 11.2818 8.52246 11.5742L8.52344 11.5752C8.52182 11.5768 8.5192 11.5775 8.51758 11.5791C8.51338 11.5832 8.51013 11.5888 8.50586 11.5928L8.50488 11.5908C8.21558 11.868 7.85102 12 7.47754 12C7.06518 11.9999 6.62355 11.8578 6.29688 11.4805L6.28906 11.4717L6.28223 11.4629C6.26561 11.4428 6.25001 11.4212 6.23438 11.4004L6.14746 11.6133L5.82324 10.5283H5.16797L4.84375 11.623L4.75391 11.4053C4.74961 11.4112 4.74655 11.418 4.74219 11.4238C4.42318 11.8507 3.95695 11.9999 3.54395 12C3.16844 12 2.79801 11.8714 2.50195 11.5928L2.48926 11.5811L2.47656 11.5684C2.20132 11.2905 2.06549 10.9487 2.01855 10.6172V10.6123C2.01475 10.5844 2.01235 10.5561 2.00977 10.5283H1.68848L2.00879 10.2031C2.02179 10.0014 2.05787 9.80543 2.11523 9.62012L2.11816 9.61133L2.12109 9.60352L3.82715 4.41406C3.93281 4.09112 4.09769 3.73495 4.37988 3.45898L4.38672 3.45312L4.39355 3.44629C4.68404 3.17277 5.06275 3 5.49707 3L5.65918 3.00781ZM5.497 4C5.34165 4 5.20228 4.05809 5.07891 4.17427C4.96011 4.29046 4.85958 4.47441 4.77734 4.72614L3.0707 9.91563C3.00673 10.1222 2.98617 10.3094 3.00902 10.4772C3.03186 10.6385 3.09127 10.7676 3.18722 10.8645C3.2591 10.9321 3.34389 10.9742 3.44141 10.9912L3.54363 11C3.60547 11 3.66189 10.993 3.7128 10.979C3.77191 10.9627 3.82297 10.9376 3.86719 10.9023L3.94116 10.8257C4.02797 10.7095 4.1125 10.5224 4.19475 10.2642L4.41602 9.52832H6.57031L6.7924 10.2642C6.87008 10.5224 6.95689 10.7095 7.05285 10.8257C7.15337 10.9419 7.29502 11 7.47779 11C7.61487 11 7.72911 10.9548 7.82049 10.8645C7.91645 10.7741 7.97356 10.645 7.99184 10.4772C8.01469 10.3094 7.98956 10.1222 7.91645 9.91563L6.20981 4.72614C6.123 4.47441 6.02019 4.29046 5.90139 4.17427C5.78715 4.05809 5.65236 4 5.497 4ZM5.497 5.94606L6.16016 8.16309H4.82617L5.48329 5.94606H5.497Z", fill: "#6E6E6E" }),
|
|
10
|
+
React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M2 0C0.895431 0 0 0.89543 0 2V13C0 14.1046 0.89543 15 2 15H10C10.9574 15 11.6996 14.1634 11.5855 13.2128L10.2114 1.76171C10.0908 0.756519 9.23805 0 8.22565 0H2ZM3.18722 10.8645C3.09127 10.7676 3.03186 10.6385 3.00902 10.4772C2.98617 10.3094 3.00673 10.1222 3.0707 9.91563L4.77734 4.72614C4.85958 4.47441 4.96011 4.29046 5.07891 4.17427C5.20228 4.05809 5.34165 4 5.497 4C5.65236 4 5.78715 4.05809 5.90139 4.17427C6.02019 4.29046 6.123 4.47441 6.20981 4.72614L7.91645 9.91563C7.98956 10.1222 8.01469 10.3094 7.99184 10.4772C7.97356 10.645 7.91645 10.7741 7.82049 10.8645C7.72911 10.9548 7.61487 11 7.47779 11C7.29502 11 7.15337 10.9419 7.05285 10.8257C6.95689 10.7095 6.87008 10.5224 6.7924 10.2642L6.57031 9.52832H4.41602L4.19475 10.2642C4.1125 10.5224 4.02797 10.7095 3.94116 10.8257L3.86719 10.9023C3.82297 10.9376 3.77191 10.9627 3.7128 10.979C3.66189 10.993 3.60547 11 3.54363 11L3.44141 10.9912C3.34389 10.9742 3.2591 10.9321 3.18722 10.8645ZM5.48329 5.94606L4.82617 8.16309H6.16016L5.497 5.94606H5.48329Z", fill: "#6E6E6E" })));
|
|
11
|
+
export default TranslateIcon;
|
|
@@ -113,6 +113,7 @@ export { default as ToolbarUnderlineIcon } from './toolbar-underline';
|
|
|
113
113
|
export { default as ToolbarUnorderedListIcon } from './toolbar-unordered-list';
|
|
114
114
|
export { default as ToolbarIndentIcon } from './toolbar-indent';
|
|
115
115
|
export { default as ToolbarUnindentIcon } from './toolbar-unindent';
|
|
116
|
+
export { default as TranslateIcon } from './translate';
|
|
116
117
|
export { default as TriangleCollapsedIcon } from './triangle-collapsed';
|
|
117
118
|
export { default as TriangleExpandedIcon } from './triangle-expanded';
|
|
118
119
|
export { default as UploadIcon } from './upload';
|
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": "3.2.
|
|
4
|
+
"version": "3.2.3",
|
|
5
5
|
"repository": "github:Atypon-OpenSource/manuscripts-style-guide",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"main": "dist/cjs",
|