@manuscripts/style-guide 2.1.7-LEAN-4432.0 → 2.1.7

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.
@@ -58,10 +58,6 @@ const ContextMenuIconButton = (0, styled_components_1.default)(Button_1.IconButt
58
58
  background-color: #f2f2f2;
59
59
  border-color: #f2f2f2;
60
60
  }
61
- &[disabled] {
62
- color: #c9c9c9 !important;
63
- background-color: #fff !important;
64
- }
65
61
  `;
66
62
  const icons = Object.entries(Icons).reduce((acc, [name, IconComponent]) => {
67
63
  const iconName = name.replace(/Icon$/, '');
@@ -70,7 +66,7 @@ const icons = Object.entries(Icons).reduce((acc, [name, IconComponent]) => {
70
66
  }, {});
71
67
  const ContextMenu = ({ actions }) => (react_1.default.createElement(Button_1.IconButtonGroup, { size: 32 }, actions.map((action) => {
72
68
  const Icon = icons[action.icon];
73
- return (react_1.default.createElement(ContextMenuIconButton, { key: action.icon, "data-tooltip-id": action.icon, onClick: action.disabled === true ? () => null : action.action, className: action.selected ? 'selected' : '', disabled: !!action.disabled },
69
+ return (react_1.default.createElement(ContextMenuIconButton, { key: action.icon, "data-tooltip-id": action.icon, onClick: action.action, className: action.selected ? 'selected' : '' },
74
70
  react_1.default.createElement(Icon, { width: 18, height: 18 }),
75
71
  react_1.default.createElement(Tooltip_1.Tooltip, { id: action.icon, place: "bottom" }, action.label)));
76
72
  })));
@@ -18,15 +18,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
18
18
  return (mod && mod.__esModule) ? mod : { "default": mod };
19
19
  };
20
20
  Object.defineProperty(exports, "__esModule", { value: true });
21
- exports.HandleOutlineIcon = exports.HandleInspectorIcon = 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.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.AddIcon = exports.AddOutlineIcon = exports.AddNewIcon = exports.AddedIcon = exports.AddFigureIcon = exports.AddCommentIcon = exports.AddAuthorIcon = void 0;
22
- exports.UploadIcon = exports.TriangleExpandedIcon = exports.TriangleCollapsedIcon = 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.LinkIcon = exports.ImageRightIcon = exports.ImageDefaultIcon = exports.ImageLeftIcon = exports.HelpIcon = void 0;
21
+ exports.HelpIcon = exports.HandleOutlineIcon = exports.HandleInspectorIcon = 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.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.AddIcon = exports.AddOutlineIcon = exports.AddNewIcon = exports.AddedIcon = exports.AddCommentIcon = exports.AddAuthorIcon = void 0;
22
+ exports.UploadIcon = exports.TriangleExpandedIcon = exports.TriangleCollapsedIcon = 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 = void 0;
23
23
  exports.AddInstitutionIcon = exports.AddUserIcon = exports.ProfileIcon = exports.CrclTickAnimation = exports.VerticalEllipsisIcon = 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");
27
27
  Object.defineProperty(exports, "AddCommentIcon", { enumerable: true, get: function () { return __importDefault(add_comment_1).default; } });
28
- var add_figure_1 = require("./add-figure");
29
- Object.defineProperty(exports, "AddFigureIcon", { enumerable: true, get: function () { return __importDefault(add_figure_1).default; } });
30
28
  var added_1 = require("./added");
31
29
  Object.defineProperty(exports, "AddedIcon", { enumerable: true, get: function () { return __importDefault(added_1).default; } });
32
30
  var add_new_1 = require("./add-new");
@@ -131,6 +129,8 @@ var image_right_1 = require("./image-right");
131
129
  Object.defineProperty(exports, "ImageRightIcon", { enumerable: true, get: function () { return __importDefault(image_right_1).default; } });
132
130
  var link_1 = require("./link");
133
131
  Object.defineProperty(exports, "LinkIcon", { enumerable: true, get: function () { return __importDefault(link_1).default; } });
132
+ var lock_1 = require("./lock");
133
+ Object.defineProperty(exports, "LockIcon", { enumerable: true, get: function () { return __importDefault(lock_1).default; } });
134
134
  var logout_1 = require("./logout");
135
135
  Object.defineProperty(exports, "LogoutIcon", { enumerable: true, get: function () { return __importDefault(logout_1).default; } });
136
136
  var manuscript_1 = require("./manuscript");
@@ -0,0 +1,12 @@
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 LockIcon = (props) => (react_1.default.createElement("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
8
+ react_1.default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M2.5 8C2.5 7.17158 3.17157 6.5 4 6.5H12C12.8284 6.5 13.5 7.17158 13.5 8V14C13.5 14.8284 12.8284 15.5 12 15.5H4C3.17157 15.5 2.5 14.8284 2.5 14V8ZM4 7.5C3.72386 7.5 3.5 7.72386 3.5 8V14C3.5 14.2761 3.72386 14.5 4 14.5H12C12.2761 14.5 12.5 14.2761 12.5 14V8C12.5 7.72386 12.2761 7.5 12 7.5H4Z", fill: "#6E6E6E" }),
9
+ react_1.default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M10.5 6.75V4.5C10.5 3.11929 9.38071 2 8 2C6.61929 2 5.5 3.11929 5.5 4.5V7C5.5 7.27614 5.27614 7.5 5 7.5C4.72386 7.5 4.5 7.27614 4.5 7V4.5C4.5 2.567 6.067 1 8 1C9.933 1 11.5 2.567 11.5 4.5V6.75C11.5 7.02614 11.2761 7.25 11 7.25C10.7239 7.25 10.5 7.02614 10.5 6.75Z", fill: "#6E6E6E" }),
10
+ react_1.default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M8 10.5C8.27614 10.5 8.5 10.7239 8.5 11V13C8.5 13.2761 8.27614 13.5 8 13.5C7.72386 13.5 7.5 13.2761 7.5 13V11C7.5 10.7239 7.72386 10.5 8 10.5Z", fill: "#6E6E6E" }),
11
+ react_1.default.createElement("path", { d: "M9.5 10.5C9.5 11.3284 8.82843 12 8 12C7.17157 12 6.5 11.3284 6.5 10.5C6.5 9.67158 7.17157 9 8 9C8.82843 9 9.5 9.67158 9.5 10.5Z", fill: "#6E6E6E" })));
12
+ exports.default = LockIcon;
@@ -29,10 +29,6 @@ const ContextMenuIconButton = styled(IconButton) `
29
29
  background-color: #f2f2f2;
30
30
  border-color: #f2f2f2;
31
31
  }
32
- &[disabled] {
33
- color: #c9c9c9 !important;
34
- background-color: #fff !important;
35
- }
36
32
  `;
37
33
  const icons = Object.entries(Icons).reduce((acc, [name, IconComponent]) => {
38
34
  const iconName = name.replace(/Icon$/, '');
@@ -41,7 +37,7 @@ const icons = Object.entries(Icons).reduce((acc, [name, IconComponent]) => {
41
37
  }, {});
42
38
  export const ContextMenu = ({ actions }) => (React.createElement(IconButtonGroup, { size: 32 }, actions.map((action) => {
43
39
  const Icon = icons[action.icon];
44
- return (React.createElement(ContextMenuIconButton, { key: action.icon, "data-tooltip-id": action.icon, onClick: action.disabled === true ? () => null : action.action, className: action.selected ? 'selected' : '', disabled: !!action.disabled },
40
+ return (React.createElement(ContextMenuIconButton, { key: action.icon, "data-tooltip-id": action.icon, onClick: action.action, className: action.selected ? 'selected' : '' },
45
41
  React.createElement(Icon, { width: 18, height: 18 }),
46
42
  React.createElement(Tooltip, { id: action.icon, place: "bottom" }, action.label)));
47
43
  })));
@@ -15,7 +15,6 @@
15
15
  */
16
16
  export { default as AddAuthorIcon } from './add-author';
17
17
  export { default as AddCommentIcon } from './add-comment';
18
- export { default as AddFigureIcon } from './add-figure';
19
18
  export { default as AddedIcon } from './added';
20
19
  export { default as AddNewIcon } from './add-new';
21
20
  export { default as AddOutlineIcon } from './add-outline';
@@ -68,6 +67,7 @@ export { default as ImageLeftIcon } from './image-left';
68
67
  export { default as ImageDefaultIcon } from './image-default';
69
68
  export { default as ImageRightIcon } from './image-right';
70
69
  export { default as LinkIcon } from './link';
70
+ export { default as LockIcon } from './lock';
71
71
  export { default as LogoutIcon } from './logout';
72
72
  export { default as ManuscriptIcon } from './manuscript';
73
73
  export { default as OutlineBlockQuoteIcon } from './outline-block-quote';
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ const LockIcon = (props) => (React.createElement("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
3
+ React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M2.5 8C2.5 7.17158 3.17157 6.5 4 6.5H12C12.8284 6.5 13.5 7.17158 13.5 8V14C13.5 14.8284 12.8284 15.5 12 15.5H4C3.17157 15.5 2.5 14.8284 2.5 14V8ZM4 7.5C3.72386 7.5 3.5 7.72386 3.5 8V14C3.5 14.2761 3.72386 14.5 4 14.5H12C12.2761 14.5 12.5 14.2761 12.5 14V8C12.5 7.72386 12.2761 7.5 12 7.5H4Z", fill: "#6E6E6E" }),
4
+ React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M10.5 6.75V4.5C10.5 3.11929 9.38071 2 8 2C6.61929 2 5.5 3.11929 5.5 4.5V7C5.5 7.27614 5.27614 7.5 5 7.5C4.72386 7.5 4.5 7.27614 4.5 7V4.5C4.5 2.567 6.067 1 8 1C9.933 1 11.5 2.567 11.5 4.5V6.75C11.5 7.02614 11.2761 7.25 11 7.25C10.7239 7.25 10.5 7.02614 10.5 6.75Z", fill: "#6E6E6E" }),
5
+ React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M8 10.5C8.27614 10.5 8.5 10.7239 8.5 11V13C8.5 13.2761 8.27614 13.5 8 13.5C7.72386 13.5 7.5 13.2761 7.5 13V11C7.5 10.7239 7.72386 10.5 8 10.5Z", fill: "#6E6E6E" }),
6
+ React.createElement("path", { d: "M9.5 10.5C9.5 11.3284 8.82843 12 8 12C7.17157 12 6.5 11.3284 6.5 10.5C6.5 9.67158 7.17157 9 8 9C8.82843 9 9.5 9.67158 9.5 10.5Z", fill: "#6E6E6E" })));
7
+ export default LockIcon;
@@ -18,7 +18,6 @@ export interface Actions {
18
18
  label: string;
19
19
  action: () => void;
20
20
  icon: string;
21
- disabled?: boolean;
22
21
  selected?: boolean;
23
22
  }
24
23
  export interface ContextMenuProps {
@@ -15,7 +15,6 @@
15
15
  */
16
16
  export { default as AddAuthorIcon } from './add-author';
17
17
  export { default as AddCommentIcon } from './add-comment';
18
- export { default as AddFigureIcon } from './add-figure';
19
18
  export { default as AddedIcon } from './added';
20
19
  export { default as AddNewIcon } from './add-new';
21
20
  export { default as AddOutlineIcon } from './add-outline';
@@ -68,6 +67,7 @@ export { default as ImageLeftIcon } from './image-left';
68
67
  export { default as ImageDefaultIcon } from './image-default';
69
68
  export { default as ImageRightIcon } from './image-right';
70
69
  export { default as LinkIcon } from './link';
70
+ export { default as LockIcon } from './lock';
71
71
  export { default as LogoutIcon } from './logout';
72
72
  export { default as ManuscriptIcon } from './manuscript';
73
73
  export { default as OutlineBlockQuoteIcon } from './outline-block-quote';
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { IconProps } from './types';
3
+ declare const LockIcon: React.FC<IconProps>;
4
+ export default LockIcon;
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": "2.1.7-LEAN-4432.0",
4
+ "version": "2.1.7",
5
5
  "repository": "github:Atypon-OpenSource/manuscripts-style-guide",
6
6
  "license": "Apache-2.0",
7
7
  "main": "dist/cjs",
@@ -1,26 +0,0 @@
1
- "use strict";
2
- /*!
3
- * © 2019 Atypon Systems LLC
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License");
6
- * you may not use this file except in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing, software
12
- * distributed under the License is distributed on an "AS IS" BASIS,
13
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- * See the License for the specific language governing permissions and
15
- * limitations under the License.
16
- */
17
- var __importDefault = (this && this.__importDefault) || function (mod) {
18
- return (mod && mod.__esModule) ? mod : { "default": mod };
19
- };
20
- Object.defineProperty(exports, "__esModule", { value: true });
21
- const react_1 = __importDefault(require("react"));
22
- const AddFigureIcon = (props) => (react_1.default.createElement("svg", Object.assign({ width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props),
23
- react_1.default.createElement("path", { d: "M14.5 15.5H1.5C0.948 15.5 0.5 15.052 0.5 14.5V1.5C0.5 0.948 0.948 0.5 1.5 0.5H14.5C15.052 0.5 15.5 0.948 15.5 1.5V14.5C15.5 15.052 15.052 15.5 14.5 15.5Z", stroke: "#353535", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }),
24
- react_1.default.createElement("path", { d: "M2.5 12.5L9.5 7.5L13.5 11.5", stroke: "#353535", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }),
25
- react_1.default.createElement("path", { d: "M4.5 7C5.32843 7 6 6.32843 6 5.5C6 4.67157 5.32843 4 4.5 4C3.67157 4 3 4.67157 3 5.5C3 6.32843 3.67157 7 4.5 7Z", fill: "#353535" })));
26
- exports.default = AddFigureIcon;
@@ -1,21 +0,0 @@
1
- /*!
2
- * © 2019 Atypon Systems LLC
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
16
- import React from 'react';
17
- const AddFigureIcon = (props) => (React.createElement("svg", Object.assign({ width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props),
18
- React.createElement("path", { d: "M14.5 15.5H1.5C0.948 15.5 0.5 15.052 0.5 14.5V1.5C0.5 0.948 0.948 0.5 1.5 0.5H14.5C15.052 0.5 15.5 0.948 15.5 1.5V14.5C15.5 15.052 15.052 15.5 14.5 15.5Z", stroke: "#353535", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }),
19
- React.createElement("path", { d: "M2.5 12.5L9.5 7.5L13.5 11.5", stroke: "#353535", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }),
20
- React.createElement("path", { d: "M4.5 7C5.32843 7 6 6.32843 6 5.5C6 4.67157 5.32843 4 4.5 4C3.67157 4 3 4.67157 3 5.5C3 6.32843 3.67157 7 4.5 7Z", fill: "#353535" })));
21
- export default AddFigureIcon;
@@ -1,19 +0,0 @@
1
- /*!
2
- * © 2019 Atypon Systems LLC
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
16
- import React from 'react';
17
- import { IconProps } from './types';
18
- declare const AddFigureIcon: (props: IconProps) => React.JSX.Element;
19
- export default AddFigureIcon;