@manuscripts/style-guide 1.11.2 → 1.11.3-LEAN-3526.0
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/References/CitationEditor.js +3 -4
- package/dist/cjs/components/icons/delete-solid-icon.js +10 -0
- package/dist/cjs/components/icons/index.js +3 -1
- package/dist/es/components/References/CitationEditor.js +3 -4
- package/dist/es/components/icons/delete-solid-icon.js +3 -0
- package/dist/es/components/icons/index.js +1 -0
- package/dist/types/components/icons/delete-solid-icon.d.ts +3 -0
- package/dist/types/components/icons/index.d.ts +1 -0
- package/package.json +2 -2
|
@@ -28,12 +28,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
exports.CitationEditor = void 0;
|
|
30
30
|
const AnnotationEdit_1 = __importDefault(require("@manuscripts/assets/react/AnnotationEdit"));
|
|
31
|
-
const CloseIconDark_1 = __importDefault(require("@manuscripts/assets/react/CloseIconDark"));
|
|
32
31
|
const json_schema_1 = require("@manuscripts/json-schema");
|
|
33
32
|
const react_1 = __importStar(require("react"));
|
|
34
33
|
const styled_components_1 = __importDefault(require("styled-components"));
|
|
35
34
|
const Button_1 = require("../Button");
|
|
36
35
|
const Dialog_1 = require("../Dialog");
|
|
36
|
+
const icons_1 = require("../icons");
|
|
37
37
|
const CitationViewer_1 = require("./CitationViewer");
|
|
38
38
|
const ReferenceLine_1 = require("./ReferenceLine");
|
|
39
39
|
const ReferenceSearch_1 = require("./ReferenceSearch");
|
|
@@ -52,8 +52,7 @@ const CitedItemActions = styled_components_1.default.div `
|
|
|
52
52
|
margin-left: 12px;
|
|
53
53
|
|
|
54
54
|
svg.remove-icon {
|
|
55
|
-
|
|
56
|
-
width: ${(props) => props.theme.grid.unit * 4}px;
|
|
55
|
+
color: #6e6e6e;
|
|
57
56
|
}
|
|
58
57
|
`;
|
|
59
58
|
const ActionButton = (0, styled_components_1.default)(Button_1.IconButton).attrs({
|
|
@@ -132,7 +131,7 @@ const CitationEditor = ({ query, rids, items, citationCounts, sources, onCite, o
|
|
|
132
131
|
react_1.default.createElement(EditReferenceButton, { value: item._id, disabled: !canEdit, onClick: () => setEditingForm({ show: true, item: item }) },
|
|
133
132
|
react_1.default.createElement(AnnotationEdit_1.default, { color: '#6E6E6E' })),
|
|
134
133
|
react_1.default.createElement(ActionButton, { disabled: !canEdit, onClick: () => setDeleteDialog({ show: true, id: item._id }) },
|
|
135
|
-
react_1.default.createElement(
|
|
134
|
+
react_1.default.createElement(icons_1.DeleteSolidIcon, { className: 'remove-icon' }))))))),
|
|
136
135
|
react_1.default.createElement(ReferencesModal_1.ReferencesModal, { isOpen: editingForm.show, onCancel: () => setEditingForm({ show: false }), items: items, citationCounts: citationCounts, item: editingForm.item, onSave: onSave, onDelete: onDelete }),
|
|
137
136
|
react_1.default.createElement(Actions, null,
|
|
138
137
|
react_1.default.createElement(Button_1.IconTextButton, null),
|
|
@@ -0,0 +1,10 @@
|
|
|
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
|
+
exports.DeleteSolidIcon = void 0;
|
|
7
|
+
const react_1 = __importDefault(require("react"));
|
|
8
|
+
const DeleteSolidIcon = (props) => (react_1.default.createElement("svg", { className: props.className, width: "12", height: "14", viewBox: "0 0 12 14", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
9
|
+
react_1.default.createElement("path", { d: "M11.494 0.375H7.955C7.93 0.165 7.714 0 7.451 0H4.548C4.286 0 4.07 0.165 4.045 0.375H0.506C0.226 0.375 0 0.561 0 0.792V1.583C0 1.813 0.227 2 0.506 2H11.494C11.774 2 12 1.814 12 1.583V0.792C12 0.562 11.773 0.375 11.494 0.375ZM1 3V13.491C1 13.772 1.23 14 1.513 14H10.487C10.5541 14.0004 10.6207 13.9875 10.6829 13.9621C10.745 13.9367 10.8015 13.8993 10.8492 13.852C10.8969 13.8047 10.9347 13.7485 10.9606 13.6866C10.9865 13.6246 10.9999 13.5581 11 13.491V3H1ZM4.753 10.874C4.753 11.184 4.5 11.435 4.188 11.435C4.03886 11.4355 3.89559 11.3769 3.78966 11.2719C3.68373 11.1669 3.62379 11.0241 3.623 10.875V5.311C3.623 5.001 3.876 4.75 4.188 4.75C4.5 4.75 4.753 5 4.753 5.31V10.873V10.874ZM8.377 10.874C8.377 11.184 8.124 11.435 7.812 11.435C7.66286 11.4355 7.51959 11.3769 7.41366 11.2719C7.30773 11.1669 7.24779 11.0241 7.247 10.875V5.311C7.247 5.001 7.5 4.75 7.812 4.75C8.124 4.75 8.377 5 8.377 5.31V10.873V10.874Z", fill: "#6E6E6E" })));
|
|
10
|
+
exports.DeleteSolidIcon = DeleteSolidIcon;
|
|
@@ -18,7 +18,7 @@ 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.DeleteIcon = exports.PlusIcon = exports.PullQuoteIcon = exports.BlockQuoteIcon = exports.LeftArrow = exports.AnnotatorIcon = exports.ReadingIcon = exports.EditIcon = exports.UnsupportedFormatFileIcon = exports.MissingImage = exports.UploadIcon = exports.AttachIcon = exports.TaskStepNextIcon = exports.TaskStepDoneIcon = exports.TaskStepCurrentIcon = exports.ZoomOutIcon = exports.ZoomInIcon = exports.UserIcon = exports.TickMarkIcon = exports.SearchIcon = exports.ProjectsListIcon = exports.ProjectIcon = exports.ProjectNotificationIcon = exports.OrcidIcon = exports.GoogleIcon = exports.AddComment = exports.CloseOIcon = exports.CloseIcon = exports.BookmarkIcon = exports.BackArrowIcon = exports.AddIconInverted = exports.AddIconActive = exports.AddAuthor = void 0;
|
|
21
|
+
exports.DeleteSolidIcon = exports.DeleteIcon = exports.PlusIcon = exports.PullQuoteIcon = exports.BlockQuoteIcon = exports.LeftArrow = exports.AnnotatorIcon = exports.ReadingIcon = exports.EditIcon = exports.UnsupportedFormatFileIcon = exports.MissingImage = exports.UploadIcon = exports.AttachIcon = exports.TaskStepNextIcon = exports.TaskStepDoneIcon = exports.TaskStepCurrentIcon = exports.ZoomOutIcon = exports.ZoomInIcon = exports.UserIcon = exports.TickMarkIcon = exports.SearchIcon = exports.ProjectsListIcon = exports.ProjectIcon = exports.ProjectNotificationIcon = exports.OrcidIcon = exports.GoogleIcon = exports.AddComment = exports.CloseOIcon = exports.CloseIcon = exports.BookmarkIcon = exports.BackArrowIcon = exports.AddIconInverted = exports.AddIconActive = exports.AddAuthor = void 0;
|
|
22
22
|
var add_author_1 = require("./add-author");
|
|
23
23
|
Object.defineProperty(exports, "AddAuthor", { enumerable: true, get: function () { return __importDefault(add_author_1).default; } });
|
|
24
24
|
var add_icon_active_1 = require("./add-icon-active");
|
|
@@ -85,3 +85,5 @@ var plus_icon_1 = require("./plus-icon");
|
|
|
85
85
|
Object.defineProperty(exports, "PlusIcon", { enumerable: true, get: function () { return __importDefault(plus_icon_1).default; } });
|
|
86
86
|
var delete_icon_1 = require("./delete-icon");
|
|
87
87
|
Object.defineProperty(exports, "DeleteIcon", { enumerable: true, get: function () { return delete_icon_1.DeleteIcon; } });
|
|
88
|
+
var delete_solid_icon_1 = require("./delete-solid-icon");
|
|
89
|
+
Object.defineProperty(exports, "DeleteSolidIcon", { enumerable: true, get: function () { return delete_solid_icon_1.DeleteSolidIcon; } });
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import AnnotationEdit from '@manuscripts/assets/react/AnnotationEdit';
|
|
2
|
-
import CloseIconDark from '@manuscripts/assets/react/CloseIconDark';
|
|
3
2
|
import { buildBibliographyItem, } from '@manuscripts/json-schema';
|
|
4
3
|
import React, { useMemo, useState } from 'react';
|
|
5
4
|
import styled from 'styled-components';
|
|
6
5
|
import { ButtonGroup, IconButton, IconTextButton, PrimaryButton, SecondaryButton, } from '../Button';
|
|
7
6
|
import { Category, Dialog } from '../Dialog';
|
|
7
|
+
import { DeleteSolidIcon } from '../icons';
|
|
8
8
|
import { CitedItem, CitedItems } from './CitationViewer';
|
|
9
9
|
import { ReferenceLine } from './ReferenceLine';
|
|
10
10
|
import { ReferenceSearch } from './ReferenceSearch';
|
|
@@ -23,8 +23,7 @@ const CitedItemActions = styled.div `
|
|
|
23
23
|
margin-left: 12px;
|
|
24
24
|
|
|
25
25
|
svg.remove-icon {
|
|
26
|
-
|
|
27
|
-
width: ${(props) => props.theme.grid.unit * 4}px;
|
|
26
|
+
color: #6e6e6e;
|
|
28
27
|
}
|
|
29
28
|
`;
|
|
30
29
|
const ActionButton = styled(IconButton).attrs({
|
|
@@ -103,7 +102,7 @@ export const CitationEditor = ({ query, rids, items, citationCounts, sources, on
|
|
|
103
102
|
React.createElement(EditReferenceButton, { value: item._id, disabled: !canEdit, onClick: () => setEditingForm({ show: true, item: item }) },
|
|
104
103
|
React.createElement(AnnotationEdit, { color: '#6E6E6E' })),
|
|
105
104
|
React.createElement(ActionButton, { disabled: !canEdit, onClick: () => setDeleteDialog({ show: true, id: item._id }) },
|
|
106
|
-
React.createElement(
|
|
105
|
+
React.createElement(DeleteSolidIcon, { className: 'remove-icon' }))))))),
|
|
107
106
|
React.createElement(ReferencesModal, { isOpen: editingForm.show, onCancel: () => setEditingForm({ show: false }), items: items, citationCounts: citationCounts, item: editingForm.item, onSave: onSave, onDelete: onDelete }),
|
|
108
107
|
React.createElement(Actions, null,
|
|
109
108
|
React.createElement(IconTextButton, null),
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export const DeleteSolidIcon = (props) => (React.createElement("svg", { className: props.className, width: "12", height: "14", viewBox: "0 0 12 14", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
3
|
+
React.createElement("path", { d: "M11.494 0.375H7.955C7.93 0.165 7.714 0 7.451 0H4.548C4.286 0 4.07 0.165 4.045 0.375H0.506C0.226 0.375 0 0.561 0 0.792V1.583C0 1.813 0.227 2 0.506 2H11.494C11.774 2 12 1.814 12 1.583V0.792C12 0.562 11.773 0.375 11.494 0.375ZM1 3V13.491C1 13.772 1.23 14 1.513 14H10.487C10.5541 14.0004 10.6207 13.9875 10.6829 13.9621C10.745 13.9367 10.8015 13.8993 10.8492 13.852C10.8969 13.8047 10.9347 13.7485 10.9606 13.6866C10.9865 13.6246 10.9999 13.5581 11 13.491V3H1ZM4.753 10.874C4.753 11.184 4.5 11.435 4.188 11.435C4.03886 11.4355 3.89559 11.3769 3.78966 11.2719C3.68373 11.1669 3.62379 11.0241 3.623 10.875V5.311C3.623 5.001 3.876 4.75 4.188 4.75C4.5 4.75 4.753 5 4.753 5.31V10.873V10.874ZM8.377 10.874C8.377 11.184 8.124 11.435 7.812 11.435C7.66286 11.4355 7.51959 11.3769 7.41366 11.2719C7.30773 11.1669 7.24779 11.0241 7.247 10.875V5.311C7.247 5.001 7.5 4.75 7.812 4.75C8.124 4.75 8.377 5 8.377 5.31V10.873V10.874Z", fill: "#6E6E6E" })));
|
|
@@ -46,3 +46,4 @@ export { default as BlockQuoteIcon } from './block-quote-icon';
|
|
|
46
46
|
export { default as PullQuoteIcon } from './pull-quote-icon';
|
|
47
47
|
export { default as PlusIcon } from './plus-icon';
|
|
48
48
|
export { DeleteIcon } from './delete-icon';
|
|
49
|
+
export { DeleteSolidIcon } from './delete-solid-icon';
|
|
@@ -46,3 +46,4 @@ export { default as BlockQuoteIcon } from './block-quote-icon';
|
|
|
46
46
|
export { default as PullQuoteIcon } from './pull-quote-icon';
|
|
47
47
|
export { default as PlusIcon } from './plus-icon';
|
|
48
48
|
export { DeleteIcon } from './delete-icon';
|
|
49
|
+
export { DeleteSolidIcon } from './delete-solid-icon';
|
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.11.
|
|
4
|
+
"version": "1.11.3-LEAN-3526.0",
|
|
5
5
|
"repository": "github:Atypon-OpenSource/manuscripts-style-guide",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"main": "dist/cjs",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@manuscripts/assets": "^0.6.4",
|
|
36
36
|
"@manuscripts/json-schema": "^2.2.7",
|
|
37
|
-
"@manuscripts/transform": "2.2.
|
|
37
|
+
"@manuscripts/transform": "^2.2.1",
|
|
38
38
|
"@reach/tabs": "^0.18.0",
|
|
39
39
|
"date-fns": "^2.29.3",
|
|
40
40
|
"formik": "^2.2.9",
|