@manuscripts/style-guide 1.5.0-LEAN-3180-3 → 1.5.1
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/Avatar.js +1 -1
- package/dist/cjs/components/Dialog.js +3 -3
- package/dist/cjs/components/SimpleModal.js +95 -0
- package/dist/cjs/components/StyledModal.js +3 -80
- package/dist/cjs/index.js +1 -1
- package/dist/es/components/Avatar.js +1 -1
- package/dist/es/components/Dialog.js +2 -2
- package/dist/es/components/SimpleModal.js +88 -0
- package/dist/es/components/StyledModal.js +3 -81
- package/dist/es/index.js +1 -1
- package/dist/types/components/Dialog.d.ts +1 -1
- package/dist/types/components/SimpleModal.d.ts +41 -0
- package/dist/types/components/StyledModal.d.ts +4 -26
- package/dist/types/index.d.ts +1 -1
- package/dist/types/theme.d.ts +2 -0
- package/package.json +1 -2
- package/dist/cjs/components/References/BibliographyItemSource.js +0 -91
- package/dist/cjs/components/References/CitationEditor.js +0 -146
- package/dist/cjs/components/References/CitationViewer.js +0 -69
- package/dist/cjs/components/References/ReferenceForm.js +0 -415
- package/dist/cjs/components/References/ReferenceLine.js +0 -52
- package/dist/cjs/components/References/ReferenceSearch.js +0 -124
- package/dist/cjs/components/References/ReferenceSearchResults.js +0 -68
- package/dist/cjs/components/References/ReferenceSearchResultsPlaceholder.js +0 -43
- package/dist/cjs/components/References/ReferenceSearchSection.js +0 -118
- package/dist/cjs/components/References/ReferencesModal.js +0 -219
- package/dist/cjs/components/References/SearchInput.js +0 -103
- package/dist/cjs/components/References/index.js +0 -20
- package/dist/cjs/components/SelectField.js +0 -25
- package/dist/cjs/components/Sidebar.js +0 -44
- package/dist/cjs/components/icons/delete-icon.js +0 -15
- package/dist/cjs/components/icons/link-icon.js +0 -11
- package/dist/cjs/components/icons/template-icon.js +0 -11
- package/dist/cjs/hooks/use-scroll-detection.js +0 -53
- package/dist/es/components/References/BibliographyItemSource.js +0 -64
- package/dist/es/components/References/CitationEditor.js +0 -116
- package/dist/es/components/References/CitationViewer.js +0 -39
- package/dist/es/components/References/ReferenceForm.js +0 -385
- package/dist/es/components/References/ReferenceLine.js +0 -42
- package/dist/es/components/References/ReferenceSearch.js +0 -94
- package/dist/es/components/References/ReferenceSearchResults.js +0 -61
- package/dist/es/components/References/ReferenceSearchResultsPlaceholder.js +0 -36
- package/dist/es/components/References/ReferenceSearchSection.js +0 -88
- package/dist/es/components/References/ReferencesModal.js +0 -188
- package/dist/es/components/References/SearchInput.js +0 -73
- package/dist/es/components/References/index.js +0 -4
- package/dist/es/components/SelectField.js +0 -18
- package/dist/es/components/Sidebar.js +0 -18
- package/dist/es/components/icons/delete-icon.js +0 -8
- package/dist/es/components/icons/link-icon.js +0 -4
- package/dist/es/components/icons/template-icon.js +0 -4
- package/dist/es/hooks/use-scroll-detection.js +0 -49
- package/dist/types/components/References/BibliographyItemSource.d.ts +0 -38
- package/dist/types/components/References/CitationEditor.d.ts +0 -18
- package/dist/types/components/References/CitationViewer.d.ts +0 -24
- package/dist/types/components/References/ReferenceForm.d.ts +0 -35
- package/dist/types/components/References/ReferenceLine.d.ts +0 -10
- package/dist/types/components/References/ReferenceSearch.d.ts +0 -26
- package/dist/types/components/References/ReferenceSearchResults.d.ts +0 -26
- package/dist/types/components/References/ReferenceSearchResultsPlaceholder.d.ts +0 -2
- package/dist/types/components/References/ReferenceSearchSection.d.ts +0 -25
- package/dist/types/components/References/ReferencesModal.d.ts +0 -14
- package/dist/types/components/References/SearchInput.d.ts +0 -18
- package/dist/types/components/References/index.d.ts +0 -4
- package/dist/types/components/SelectField.d.ts +0 -27
- package/dist/types/components/Sidebar.d.ts +0 -2
- package/dist/types/components/icons/delete-icon.d.ts +0 -2
- package/dist/types/components/icons/link-icon.d.ts +0 -2
- package/dist/types/components/icons/template-icon.d.ts +0 -2
- package/dist/types/hooks/use-scroll-detection.d.ts +0 -22
|
@@ -1,43 +0,0 @@
|
|
|
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.ReferenceSearchResultsPlaceholder = void 0;
|
|
7
|
-
const react_1 = __importDefault(require("react"));
|
|
8
|
-
const styled_components_1 = __importDefault(require("styled-components"));
|
|
9
|
-
const ReferenceLine_1 = require("./ReferenceLine");
|
|
10
|
-
const ReferenceSearchResults_1 = require("./ReferenceSearchResults");
|
|
11
|
-
const IconPlaceholderContainer = styled_components_1.default.div `
|
|
12
|
-
width: 36px;
|
|
13
|
-
`;
|
|
14
|
-
const IconPlaceholder = styled_components_1.default.span `
|
|
15
|
-
margin-left: 8px;
|
|
16
|
-
`;
|
|
17
|
-
const MetadataPlaceholder = (0, styled_components_1.default)(ReferenceLine_1.Metadata) `
|
|
18
|
-
background: ${(props) => props.theme.colors.text.muted};
|
|
19
|
-
height: 1.2em;
|
|
20
|
-
`;
|
|
21
|
-
const TitlePlaceholder = styled_components_1.default.div `
|
|
22
|
-
background: ${(props) => props.theme.colors.border.primary};
|
|
23
|
-
height: 1.2em;
|
|
24
|
-
`;
|
|
25
|
-
const SearchingLabel = styled_components_1.default.div `
|
|
26
|
-
color: ${(props) => props.theme.colors.text.secondary};
|
|
27
|
-
margin-left: ${(props) => props.theme.grid.unit * 9}px;
|
|
28
|
-
`;
|
|
29
|
-
const ReferenceSearchResultPlaceholder = (0, styled_components_1.default)(ReferenceSearchResults_1.ReferenceSearchResult) `
|
|
30
|
-
opacity: 0.2;
|
|
31
|
-
`;
|
|
32
|
-
const Placeholder = () => (react_1.default.createElement(ReferenceSearchResultPlaceholder, null,
|
|
33
|
-
react_1.default.createElement(IconPlaceholderContainer, null,
|
|
34
|
-
react_1.default.createElement(IconPlaceholder, null, "...")),
|
|
35
|
-
react_1.default.createElement(ReferenceLine_1.MetadataContainer, null,
|
|
36
|
-
react_1.default.createElement(TitlePlaceholder, null),
|
|
37
|
-
react_1.default.createElement(MetadataPlaceholder, null))));
|
|
38
|
-
const ReferenceSearchResultsPlaceholder = () => (react_1.default.createElement(ReferenceSearchResults_1.ReferenceSearchResultsContainer, null,
|
|
39
|
-
react_1.default.createElement(SearchingLabel, null, "Searching"),
|
|
40
|
-
react_1.default.createElement(Placeholder, null),
|
|
41
|
-
react_1.default.createElement(Placeholder, null),
|
|
42
|
-
react_1.default.createElement(Placeholder, null)));
|
|
43
|
-
exports.ReferenceSearchResultsPlaceholder = ReferenceSearchResultsPlaceholder;
|
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*!
|
|
3
|
-
* © 2023 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 __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
18
|
-
if (k2 === undefined) k2 = k;
|
|
19
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
20
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
21
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
22
|
-
}
|
|
23
|
-
Object.defineProperty(o, k2, desc);
|
|
24
|
-
}) : (function(o, m, k, k2) {
|
|
25
|
-
if (k2 === undefined) k2 = k;
|
|
26
|
-
o[k2] = m[k];
|
|
27
|
-
}));
|
|
28
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
29
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
30
|
-
}) : function(o, v) {
|
|
31
|
-
o["default"] = v;
|
|
32
|
-
});
|
|
33
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
34
|
-
if (mod && mod.__esModule) return mod;
|
|
35
|
-
var result = {};
|
|
36
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
37
|
-
__setModuleDefault(result, mod);
|
|
38
|
-
return result;
|
|
39
|
-
};
|
|
40
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
41
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
42
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
43
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
44
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
45
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
46
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
47
|
-
});
|
|
48
|
-
};
|
|
49
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
50
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
51
|
-
};
|
|
52
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
53
|
-
exports.ReferenceSearchSection = exports.Arrow = void 0;
|
|
54
|
-
const ArrowDownUp_1 = __importDefault(require("@manuscripts/assets/react/ArrowDownUp"));
|
|
55
|
-
const react_1 = __importStar(require("react"));
|
|
56
|
-
const styled_components_1 = __importDefault(require("styled-components"));
|
|
57
|
-
const ReferenceSearchResults_1 = require("./ReferenceSearchResults");
|
|
58
|
-
const ReferenceSearchResultsPlaceholder_1 = require("./ReferenceSearchResultsPlaceholder");
|
|
59
|
-
const SearchSourceLabel = styled_components_1.default.div `
|
|
60
|
-
margin: 0 ${(props) => props.theme.grid.unit * 4}px
|
|
61
|
-
${(props) => props.theme.grid.unit * 2}px;
|
|
62
|
-
color: ${(props) => props.theme.colors.text.secondary};
|
|
63
|
-
cursor: pointer;
|
|
64
|
-
|
|
65
|
-
&:hover {
|
|
66
|
-
color: ${(props) => props.theme.colors.text.muted};
|
|
67
|
-
}
|
|
68
|
-
`;
|
|
69
|
-
exports.Arrow = (0, styled_components_1.default)(ArrowDownUp_1.default) `
|
|
70
|
-
margin-right: 16px;
|
|
71
|
-
margin-left: 10px;
|
|
72
|
-
|
|
73
|
-
user-select: none;
|
|
74
|
-
|
|
75
|
-
transform: rotate(180deg);
|
|
76
|
-
|
|
77
|
-
&.open {
|
|
78
|
-
transform: rotate(0deg);
|
|
79
|
-
}
|
|
80
|
-
`;
|
|
81
|
-
const ReferenceSearchSection = ({ query, source, isSelected, onSelect }) => {
|
|
82
|
-
const [expanded, setExpanded] = (0, react_1.useState)(true);
|
|
83
|
-
const [state, setState] = (0, react_1.useState)();
|
|
84
|
-
const [limit, setLimit] = (0, react_1.useState)(3);
|
|
85
|
-
const toggleExpanded = () => {
|
|
86
|
-
setExpanded((value) => !value);
|
|
87
|
-
};
|
|
88
|
-
(0, react_1.useEffect)(() => {
|
|
89
|
-
const search = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
90
|
-
const job = source.search(query, limit);
|
|
91
|
-
setState((s) => {
|
|
92
|
-
if ((s === null || s === void 0 ? void 0 : s.type) === 'running' && s.job.cancel) {
|
|
93
|
-
s.job.cancel();
|
|
94
|
-
}
|
|
95
|
-
return {
|
|
96
|
-
type: 'running',
|
|
97
|
-
job,
|
|
98
|
-
};
|
|
99
|
-
});
|
|
100
|
-
const response = yield job.response;
|
|
101
|
-
if (job.isCancelled) {
|
|
102
|
-
return;
|
|
103
|
-
}
|
|
104
|
-
setState(Object.assign({ type: 'completed' }, response));
|
|
105
|
-
});
|
|
106
|
-
search();
|
|
107
|
-
}, [source, query, limit]);
|
|
108
|
-
const handleShowMore = () => {
|
|
109
|
-
setLimit(25);
|
|
110
|
-
};
|
|
111
|
-
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
112
|
-
react_1.default.createElement(SearchSourceLabel, { onClick: toggleExpanded },
|
|
113
|
-
react_1.default.createElement(exports.Arrow, { className: expanded ? 'open' : '' }),
|
|
114
|
-
source.label),
|
|
115
|
-
expanded && (state === null || state === void 0 ? void 0 : state.type) === 'running' && (react_1.default.createElement(ReferenceSearchResultsPlaceholder_1.ReferenceSearchResultsPlaceholder, null)),
|
|
116
|
-
expanded && (state === null || state === void 0 ? void 0 : state.type) === 'completed' && (react_1.default.createElement(ReferenceSearchResults_1.ReferenceSearchResults, { items: state.items, total: state.total, isSelected: isSelected, onSelect: onSelect, onShowMore: handleShowMore }))));
|
|
117
|
-
};
|
|
118
|
-
exports.ReferenceSearchSection = ReferenceSearchSection;
|
|
@@ -1,219 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
|
-
};
|
|
28
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.ReferencesModal = exports.normalize = void 0;
|
|
30
|
-
const ReferenceLibraryIcon_1 = __importDefault(require("@manuscripts/assets/react/ReferenceLibraryIcon"));
|
|
31
|
-
const lodash_1 = require("lodash");
|
|
32
|
-
const react_1 = __importStar(require("react"));
|
|
33
|
-
const react_tooltip_1 = __importDefault(require("react-tooltip"));
|
|
34
|
-
const styled_components_1 = __importDefault(require("styled-components"));
|
|
35
|
-
const use_scroll_detection_1 = require("../../hooks/use-scroll-detection");
|
|
36
|
-
const Dialog_1 = require("../Dialog");
|
|
37
|
-
const Sidebar_1 = require("../Sidebar");
|
|
38
|
-
const StyledModal_1 = require("../StyledModal");
|
|
39
|
-
const ReferenceForm_1 = require("./ReferenceForm");
|
|
40
|
-
const ReferenceLine_1 = require("./ReferenceLine");
|
|
41
|
-
const ReferencesModalContainer = (0, styled_components_1.default)(StyledModal_1.ModalContainer) `
|
|
42
|
-
min-width: 960px;
|
|
43
|
-
`;
|
|
44
|
-
const ReferencesSidebar = (0, styled_components_1.default)(StyledModal_1.ModalSidebar) `
|
|
45
|
-
width: 70%;
|
|
46
|
-
`;
|
|
47
|
-
const ReferencesSidebarContent = (0, styled_components_1.default)(Sidebar_1.SidebarContent) `
|
|
48
|
-
overflow-y: auto;
|
|
49
|
-
`;
|
|
50
|
-
const ReferencesInnerWrapper = styled_components_1.default.div `
|
|
51
|
-
width: 100%;
|
|
52
|
-
`;
|
|
53
|
-
const ReferenceButton = styled_components_1.default.div `
|
|
54
|
-
cursor: pointer;
|
|
55
|
-
display: flex;
|
|
56
|
-
justify-content: flex-start;
|
|
57
|
-
padding: ${(props) => props.theme.grid.unit * 4}px 0;
|
|
58
|
-
border-top: 1px solid transparent;
|
|
59
|
-
border-bottom: 1px solid transparent;
|
|
60
|
-
|
|
61
|
-
path {
|
|
62
|
-
fill: #c9c9c9;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
:hover {
|
|
66
|
-
background: ${(props) => props.theme.colors.background.info};
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
&.selected {
|
|
70
|
-
background: ${(props) => props.theme.colors.background.info};
|
|
71
|
-
border-top-color: #bce7f6;
|
|
72
|
-
border-bottom-color: #bce7f6;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
.tooltip {
|
|
76
|
-
max-width: ${(props) => props.theme.grid.unit * 25}px;
|
|
77
|
-
padding: ${(props) => props.theme.grid.unit * 2}px;
|
|
78
|
-
border-radius: 6px;
|
|
79
|
-
}
|
|
80
|
-
`;
|
|
81
|
-
const IconContainer = styled_components_1.default.div `
|
|
82
|
-
padding-right: ${(props) => props.theme.grid.unit * 5}px;
|
|
83
|
-
position: relative;
|
|
84
|
-
`;
|
|
85
|
-
const CitationCount = styled_components_1.default.div `
|
|
86
|
-
border-radius: 50%;
|
|
87
|
-
width: 12px;
|
|
88
|
-
height: 12px;
|
|
89
|
-
position: absolute;
|
|
90
|
-
color: #ffffff;
|
|
91
|
-
background-color: #bce7f6;
|
|
92
|
-
text-align: center;
|
|
93
|
-
vertical-align: top;
|
|
94
|
-
top: 0;
|
|
95
|
-
left: 16px;
|
|
96
|
-
font-size: 9px;
|
|
97
|
-
|
|
98
|
-
&.unused {
|
|
99
|
-
background-color: #fe8f1f;
|
|
100
|
-
}
|
|
101
|
-
`;
|
|
102
|
-
const selectionTopOffset = 10;
|
|
103
|
-
const pageSize = 12;
|
|
104
|
-
const topTrigger = 0.2;
|
|
105
|
-
const bottomTrigger = 0.8;
|
|
106
|
-
const dropLimit = 36;
|
|
107
|
-
const normalize = (item) => ({
|
|
108
|
-
_id: item._id,
|
|
109
|
-
title: item.title || '',
|
|
110
|
-
author: item.author || [],
|
|
111
|
-
DOI: item.DOI || '',
|
|
112
|
-
issued: item.issued,
|
|
113
|
-
type: item.type || '',
|
|
114
|
-
'container-title': item['container-title'] || '',
|
|
115
|
-
URL: item.URL || '',
|
|
116
|
-
issue: item.issue ? String(item.issue) : '',
|
|
117
|
-
volume: item.volume ? String(item.volume) : '',
|
|
118
|
-
supplement: item.supplement ? String(item.supplement) : '',
|
|
119
|
-
page: item.page ? String(item.page) : '',
|
|
120
|
-
});
|
|
121
|
-
exports.normalize = normalize;
|
|
122
|
-
const ReferencesModal = ({ isOpen, onCancel, items, item, citationCounts, onSave, onDelete, }) => {
|
|
123
|
-
const [confirm, setConfirm] = (0, react_1.useState)(false);
|
|
124
|
-
const valuesRef = (0, react_1.useRef)();
|
|
125
|
-
const [selection, setSelection] = (0, react_1.useState)();
|
|
126
|
-
const selectionRef = (0, react_1.useRef)(null);
|
|
127
|
-
const isSelected = (item) => {
|
|
128
|
-
return item._id === (selection === null || selection === void 0 ? void 0 : selection._id);
|
|
129
|
-
};
|
|
130
|
-
const selectionIndex = items.findIndex(isSelected);
|
|
131
|
-
(0, react_1.useEffect)(() => {
|
|
132
|
-
setSelection(item);
|
|
133
|
-
}, [item]);
|
|
134
|
-
(0, react_1.useEffect)(() => {
|
|
135
|
-
setTimeout(() => {
|
|
136
|
-
var _a;
|
|
137
|
-
(_a = selectionRef.current) === null || _a === void 0 ? void 0 : _a.scrollIntoView({
|
|
138
|
-
block: 'center',
|
|
139
|
-
behavior: 'auto',
|
|
140
|
-
});
|
|
141
|
-
}, 100);
|
|
142
|
-
}, [selectionIndex]);
|
|
143
|
-
const { ref, triggers } = (0, use_scroll_detection_1.useScrollDetection)(topTrigger, bottomTrigger);
|
|
144
|
-
const [startIndex, setStartIndex] = (0, react_1.useState)(Math.max(0, selectionIndex - selectionTopOffset));
|
|
145
|
-
const [endIndex, setEndIndex] = (0, react_1.useState)(pageSize);
|
|
146
|
-
(0, react_1.useEffect)(() => {
|
|
147
|
-
const base = Math.max(0, selectionIndex - selectionTopOffset);
|
|
148
|
-
setStartIndex(base);
|
|
149
|
-
setEndIndex(Math.min(items.length - 1, base + pageSize));
|
|
150
|
-
}, [selectionIndex, items]);
|
|
151
|
-
(0, react_1.useEffect)(() => {
|
|
152
|
-
if (triggers.top) {
|
|
153
|
-
const newFirst = Math.max(0, startIndex - pageSize);
|
|
154
|
-
setStartIndex(newFirst);
|
|
155
|
-
setEndIndex(Math.min(newFirst + dropLimit, endIndex));
|
|
156
|
-
}
|
|
157
|
-
if (triggers.bottom) {
|
|
158
|
-
const newLast = Math.min(items.length - 1, endIndex + pageSize);
|
|
159
|
-
setEndIndex(newLast);
|
|
160
|
-
setStartIndex(Math.max(newLast - dropLimit, startIndex));
|
|
161
|
-
}
|
|
162
|
-
}, [triggers, items]);
|
|
163
|
-
const actionsRef = (0, react_1.useRef)();
|
|
164
|
-
const reset = () => {
|
|
165
|
-
var _a;
|
|
166
|
-
(_a = actionsRef.current) === null || _a === void 0 ? void 0 : _a.reset();
|
|
167
|
-
setConfirm(false);
|
|
168
|
-
};
|
|
169
|
-
const save = (values) => {
|
|
170
|
-
if (!values || !selection) {
|
|
171
|
-
return;
|
|
172
|
-
}
|
|
173
|
-
const item = Object.assign(Object.assign({}, selection), values);
|
|
174
|
-
onSave(item);
|
|
175
|
-
setSelection(item);
|
|
176
|
-
setConfirm(false);
|
|
177
|
-
};
|
|
178
|
-
const handleItemClick = (item) => {
|
|
179
|
-
const values = valuesRef.current;
|
|
180
|
-
if (values && selection && !(0, lodash_1.isEqual)(values, (0, exports.normalize)(selection))) {
|
|
181
|
-
setConfirm(true);
|
|
182
|
-
return;
|
|
183
|
-
}
|
|
184
|
-
setSelection(item);
|
|
185
|
-
};
|
|
186
|
-
const handleChange = (values) => {
|
|
187
|
-
valuesRef.current = values;
|
|
188
|
-
};
|
|
189
|
-
if (items.length <= 0) {
|
|
190
|
-
return react_1.default.createElement(react_1.default.Fragment, null);
|
|
191
|
-
}
|
|
192
|
-
return (react_1.default.createElement(StyledModal_1.StyledModal, { isOpen: isOpen, onRequestClose: onCancel },
|
|
193
|
-
react_1.default.createElement(Dialog_1.Dialog, { isOpen: confirm, category: Dialog_1.Category.confirmation, header: "You've made changes to this option", message: "Would you like to save or discard your changes?", actions: {
|
|
194
|
-
secondary: {
|
|
195
|
-
action: () => reset(),
|
|
196
|
-
title: 'Discard',
|
|
197
|
-
},
|
|
198
|
-
primary: {
|
|
199
|
-
action: () => save(valuesRef.current),
|
|
200
|
-
title: 'Save',
|
|
201
|
-
},
|
|
202
|
-
} }),
|
|
203
|
-
react_1.default.createElement(ReferencesModalContainer, null,
|
|
204
|
-
react_1.default.createElement(StyledModal_1.ModalHeader, null,
|
|
205
|
-
react_1.default.createElement(StyledModal_1.CloseButton, { onClick: onCancel })),
|
|
206
|
-
react_1.default.createElement(StyledModal_1.ModalBody, null,
|
|
207
|
-
react_1.default.createElement(ReferencesSidebar, null,
|
|
208
|
-
react_1.default.createElement(StyledModal_1.ModalSidebarHeader, null,
|
|
209
|
-
react_1.default.createElement(StyledModal_1.ModalSidebarTitle, null, "References")),
|
|
210
|
-
react_1.default.createElement(ReferencesSidebarContent, { ref: ref },
|
|
211
|
-
react_1.default.createElement(ReferencesInnerWrapper, null, items.slice(startIndex, endIndex + 1).map((item) => (react_1.default.createElement(ReferenceButton, { key: item._id, id: item._id, className: isSelected(item) ? 'selected' : '', onClick: () => handleItemClick(item), ref: isSelected(item) ? selectionRef : null },
|
|
212
|
-
react_1.default.createElement(IconContainer, { "data-tip": true, "data-for": 'citation-count' },
|
|
213
|
-
react_1.default.createElement(ReferenceLibraryIcon_1.default, null),
|
|
214
|
-
react_1.default.createElement(CitationCount, { className: citationCounts.get(item._id) ? '' : 'unused' }, citationCounts.get(item._id) || 0),
|
|
215
|
-
react_1.default.createElement(react_tooltip_1.default, { disable: (citationCounts.get(item._id) || 0) < 1, id: "citation-count", place: "bottom", effect: "solid", offset: { top: 40 }, className: "tooltip" }, "Number of times used in the document")),
|
|
216
|
-
react_1.default.createElement(ReferenceLine_1.ReferenceLine, { item: item }))))))),
|
|
217
|
-
react_1.default.createElement(StyledModal_1.ScrollableModalContent, null, selection && (react_1.default.createElement(ReferenceForm_1.ReferenceForm, { values: (0, exports.normalize)(selection), showDelete: !citationCounts.get(selection._id), onChange: handleChange, onCancel: onCancel, onDelete: () => onDelete(selection), onSave: save, actionsRef: actionsRef })))))));
|
|
218
|
-
};
|
|
219
|
-
exports.ReferencesModal = ReferencesModal;
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*!
|
|
3
|
-
* © 2023 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 __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
18
|
-
if (k2 === undefined) k2 = k;
|
|
19
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
20
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
21
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
22
|
-
}
|
|
23
|
-
Object.defineProperty(o, k2, desc);
|
|
24
|
-
}) : (function(o, m, k, k2) {
|
|
25
|
-
if (k2 === undefined) k2 = k;
|
|
26
|
-
o[k2] = m[k];
|
|
27
|
-
}));
|
|
28
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
29
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
30
|
-
}) : function(o, v) {
|
|
31
|
-
o["default"] = v;
|
|
32
|
-
});
|
|
33
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
34
|
-
if (mod && mod.__esModule) return mod;
|
|
35
|
-
var result = {};
|
|
36
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
37
|
-
__setModuleDefault(result, mod);
|
|
38
|
-
return result;
|
|
39
|
-
};
|
|
40
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
41
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
42
|
-
};
|
|
43
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
44
|
-
exports.SearchInput = exports.SearchWrapper = void 0;
|
|
45
|
-
const SearchIconNoBG_1 = __importDefault(require("@manuscripts/assets/react/SearchIconNoBG"));
|
|
46
|
-
const react_1 = __importStar(require("react"));
|
|
47
|
-
const styled_components_1 = __importDefault(require("styled-components"));
|
|
48
|
-
const TextField_1 = require("../TextField");
|
|
49
|
-
const SearchContainer = styled_components_1.default.div `
|
|
50
|
-
align-items: center;
|
|
51
|
-
display: flex;
|
|
52
|
-
flex: 1 0 auto;
|
|
53
|
-
position: relative;
|
|
54
|
-
margin: 12px;
|
|
55
|
-
`;
|
|
56
|
-
const SearchIconContainer = styled_components_1.default.span `
|
|
57
|
-
display: flex;
|
|
58
|
-
left: ${(props) => props.theme.grid.unit * 4}px;
|
|
59
|
-
position: absolute;
|
|
60
|
-
z-index: 2;
|
|
61
|
-
|
|
62
|
-
path {
|
|
63
|
-
fill: ${(props) => props.theme.colors.text.primary};
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
&.active path {
|
|
67
|
-
fill: ${(props) => props.theme.colors.brand.medium};
|
|
68
|
-
}
|
|
69
|
-
`;
|
|
70
|
-
const SearchTextField = (0, styled_components_1.default)(TextField_1.TextField) `
|
|
71
|
-
-webkit-appearance: textfield;
|
|
72
|
-
padding-left: ${(props) => props.theme.grid.unit * 11}px;
|
|
73
|
-
&:hover,
|
|
74
|
-
&:focus {
|
|
75
|
-
background-color: ${(props) => props.theme.colors.background.fifth};
|
|
76
|
-
}
|
|
77
|
-
`;
|
|
78
|
-
exports.SearchWrapper = styled_components_1.default.div `
|
|
79
|
-
display: flex;
|
|
80
|
-
align-items: center;
|
|
81
|
-
padding: ${(props) => props.theme.grid.unit * 3}px;
|
|
82
|
-
`;
|
|
83
|
-
const SearchInput = (props) => {
|
|
84
|
-
const [hover, setHover] = (0, react_1.useState)(false);
|
|
85
|
-
const [focus, setFocus] = (0, react_1.useState)(false);
|
|
86
|
-
const onFocus = () => {
|
|
87
|
-
setFocus(true);
|
|
88
|
-
};
|
|
89
|
-
const onBlur = () => {
|
|
90
|
-
setFocus(false);
|
|
91
|
-
};
|
|
92
|
-
const onMouseEnter = () => {
|
|
93
|
-
setHover(true);
|
|
94
|
-
};
|
|
95
|
-
const onMouseLeave = () => {
|
|
96
|
-
setHover(false);
|
|
97
|
-
};
|
|
98
|
-
return (react_1.default.createElement(SearchContainer, { onMouseEnter: onMouseEnter, onMouseLeave: onMouseLeave, onFocus: onFocus, onBlur: onBlur },
|
|
99
|
-
react_1.default.createElement(SearchIconContainer, { className: hover || focus ? 'active' : '' },
|
|
100
|
-
react_1.default.createElement(SearchIconNoBG_1.default, null)),
|
|
101
|
-
react_1.default.createElement(SearchTextField, Object.assign({}, props, { type: "search", placeholder: "Search", autoComplete: "off" }))));
|
|
102
|
-
};
|
|
103
|
-
exports.SearchInput = SearchInput;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./CitationEditor"), exports);
|
|
18
|
-
__exportStar(require("./CitationViewer"), exports);
|
|
19
|
-
__exportStar(require("./ReferencesModal"), exports);
|
|
20
|
-
__exportStar(require("./BibliographyItemSource"), exports);
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*!
|
|
3
|
-
* © 2024 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
|
-
exports.SelectField = void 0;
|
|
22
|
-
const react_1 = __importDefault(require("react"));
|
|
23
|
-
const react_select_1 = __importDefault(require("react-select"));
|
|
24
|
-
const SelectField = ({ id, options, field, form, }) => (react_1.default.createElement(react_select_1.default, { inputId: id, options: options, name: field.name, value: options === null || options === void 0 ? void 0 : options.find((option) => option.value === field.value), onChange: (option) => form.setFieldValue(field.name, option === null || option === void 0 ? void 0 : option.value), onBlur: field.onBlur }));
|
|
25
|
-
exports.SelectField = SelectField;
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.SidebarContent = exports.SidebarStyles = void 0;
|
|
27
|
-
const styled_components_1 = __importStar(require("styled-components"));
|
|
28
|
-
exports.SidebarStyles = (0, styled_components_1.css) `
|
|
29
|
-
box-sizing: border-box;
|
|
30
|
-
display: flex;
|
|
31
|
-
flex-direction: column;
|
|
32
|
-
height: 100%;
|
|
33
|
-
padding: ${(props) => props.theme.grid.unit * 4}px
|
|
34
|
-
${(props) => props.theme.grid.unit * 2}px;
|
|
35
|
-
width: 100%;
|
|
36
|
-
overflow: hidden;
|
|
37
|
-
`;
|
|
38
|
-
exports.SidebarContent = styled_components_1.default.div `
|
|
39
|
-
flex: 1;
|
|
40
|
-
padding: 0 ${(props) => props.theme.grid.unit * 3}px;
|
|
41
|
-
position: relative;
|
|
42
|
-
flex-shrink: 0;
|
|
43
|
-
overflow-y: auto;
|
|
44
|
-
`;
|
|
@@ -1,15 +0,0 @@
|
|
|
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.DeleteIcon = void 0;
|
|
7
|
-
const react_1 = __importDefault(require("react"));
|
|
8
|
-
const DeleteIcon = () => (react_1.default.createElement("svg", { width: "13", height: "16", viewBox: "0 0 13 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
9
|
-
react_1.default.createElement("path", { className: "icon_element", fillRule: "evenodd", clipRule: "evenodd", d: "M2.00001 2.99995C2 3.0013 2 3.00265 2 3.00399V13.004C2 13.5563 2.44772 14.004 3 14.004H10C10.5523 14.004 11 13.5563 11 13.004V3.00399C11 3.00265 11 3.0013 11 2.99995C11.5978 3.34576 12 3.99211 12 4.73239V13.004C12 14.1086 11.1046 15.004 10 15.004H3C1.89543 15.004 1 14.1086 1 13.004V4.73239C1 3.99211 1.4022 3.34576 2.00001 2.99995Z", fill: "#F35143" }),
|
|
10
|
-
react_1.default.createElement("path", { className: "icon_element", fillRule: "evenodd", clipRule: "evenodd", d: "M4.5 0C3.67157 0 3 0.671573 3 1.5V3.5C3 4.32843 3.67157 5 4.5 5H8.5C9.32843 5 10 4.32843 10 3.5V1.5C10 0.671573 9.32843 0 8.5 0H4.5ZM9 1.5C9 1.22386 8.77614 1 8.5 1H4.5C4.22386 1 4 1.22386 4 1.5C4 1.77614 4.22386 2 4.5 2H8.5C8.77614 2 9 1.77614 9 1.5Z", fill: "#F35143" }),
|
|
11
|
-
react_1.default.createElement("rect", { className: "icon_element", y: "2", width: "13", height: "3", rx: "1.5", fill: "#F35143" }),
|
|
12
|
-
react_1.default.createElement("path", { className: "icon_element", fillRule: "evenodd", clipRule: "evenodd", d: "M8 7.5C8 7.22386 8.22386 7 8.5 7C8.77614 7 9 7.22386 9 7.5V11.5C9 11.7761 8.77614 12 8.5 12C8.22386 12 8 11.7761 8 11.5V7.5Z", fill: "#F35143" }),
|
|
13
|
-
react_1.default.createElement("path", { className: "icon_element", fillRule: "evenodd", clipRule: "evenodd", d: "M4 7.5C4 7.22386 4.22386 7 4.5 7C4.77614 7 5 7.22386 5 7.5V11.5C5 11.7761 4.77614 12 4.5 12C4.22386 12 4 11.7761 4 11.5V7.5Z", fill: "#F35143" }),
|
|
14
|
-
react_1.default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M11.5 3C11.7761 3 12 3.22386 12 3.5C12 3.77614 11.7761 4 11.5 4L1.5 4C1.22386 4 1 3.77614 1 3.5C1 3.22386 1.22386 3 1.5 3L11.5 3Z", fill: "white" })));
|
|
15
|
-
exports.DeleteIcon = DeleteIcon;
|
|
@@ -1,11 +0,0 @@
|
|
|
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.LinkIcon = void 0;
|
|
7
|
-
const react_1 = __importDefault(require("react"));
|
|
8
|
-
const LinkIcon = () => (react_1.default.createElement("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
9
|
-
react_1.default.createElement("path", { d: "M6.63317 12.1949L4.74782 14.0803C3.9662 14.8619 2.70042 14.8619 1.91945 14.0804C1.13832 13.2993 1.13832 12.0334 1.91929 11.2524L5.69063 7.48109C6.4716 6.70009 7.73751 6.70009 8.51848 7.48109C8.77882 7.74143 9.20095 7.74143 9.46129 7.48109C9.72163 7.22075 9.72163 6.79862 9.46129 6.53828C8.1596 5.23659 6.04951 5.23659 4.74782 6.53828L0.97651 10.3096C-0.325178 11.6113 -0.325178 13.7214 0.97651 15.0231C2.27804 16.3254 4.38829 16.3254 5.69067 15.0231L7.57601 13.1377C7.83635 12.8774 7.83635 12.4552 7.57601 12.1949C7.31567 11.9346 6.89351 11.9346 6.63317 12.1949Z", fill: "#6E6E6E" }),
|
|
10
|
-
react_1.default.createElement("path", { d: "M15.0235 0.976266C13.7218 -0.325422 11.6111 -0.325422 10.3094 0.976266L8.04737 3.23827C7.78702 3.49861 7.78702 3.92073 8.04737 4.18108C8.30771 4.44142 8.72984 4.44142 8.99018 4.18108L11.2522 1.91908C12.0331 1.13808 13.2997 1.13808 14.0807 1.91908C14.8617 2.70005 14.8617 3.96595 14.0807 4.74692L9.93271 8.89495C9.15171 9.67595 7.88584 9.67595 7.10487 8.89495C6.84452 8.63461 6.4224 8.63461 6.16205 8.89495C5.90171 9.1553 5.90171 9.57742 6.16205 9.83777C7.46374 11.1395 9.57384 11.1395 10.8755 9.83777L15.0235 5.68977C16.3252 4.38808 16.3252 2.27795 15.0235 0.976266Z", fill: "#6E6E6E" })));
|
|
11
|
-
exports.LinkIcon = LinkIcon;
|
|
@@ -1,11 +0,0 @@
|
|
|
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.TemplateIcon = void 0;
|
|
7
|
-
const react_1 = __importDefault(require("react"));
|
|
8
|
-
const TemplateIcon = () => (react_1.default.createElement("svg", { width: "16", height: "18", viewBox: "0 0 16 18", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
9
|
-
react_1.default.createElement("rect", { x: "1.25", y: "1.25", width: "13.5", height: "15.5", rx: "1.75", fill: "white", stroke: "#6E6E6E", strokeWidth: "1.5" }),
|
|
10
|
-
react_1.default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M9 6.5C9 6.08579 8.66421 5.75 8.25 5.75H7.25V4.75C7.25 4.33579 6.91421 4 6.5 4C6.08579 4 5.75 4.33579 5.75 4.75V5.75H4.75C4.33579 5.75 4 6.08579 4 6.5C4 6.91421 4.33579 7.25 4.75 7.25H5.75V8.25C5.75 8.66421 6.08579 9 6.5 9C6.91421 9 7.25 8.66421 7.25 8.25V7.25H8.25C8.66421 7.25 9 6.91421 9 6.5Z", fill: "#6E6E6E" })));
|
|
11
|
-
exports.TemplateIcon = TemplateIcon;
|