@manuscripts/style-guide 2.0.1 → 2.0.3-LEAN-3821.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.
|
@@ -35,9 +35,9 @@ const ContextMenuIconButton = (0, styled_components_1.default)(Button_1.IconButt
|
|
|
35
35
|
`;
|
|
36
36
|
const icons = {
|
|
37
37
|
AddComment: icons_1.AddCommentIcon,
|
|
38
|
-
|
|
38
|
+
Edit: icons_1.EditIcon,
|
|
39
39
|
};
|
|
40
|
-
const ContextMenu = ({ actions }) => (react_1.default.createElement(Button_1.IconButtonGroup,
|
|
40
|
+
const ContextMenu = ({ actions }) => (react_1.default.createElement(Button_1.IconButtonGroup, { size: 32 }, actions.map((action) => {
|
|
41
41
|
const Icon = icons[action.icon];
|
|
42
42
|
return (react_1.default.createElement(ContextMenuIconButton, { key: action.icon, "data-tooltip-id": action.icon, onClick: action.action },
|
|
43
43
|
react_1.default.createElement(Icon, null),
|
|
@@ -29,9 +29,9 @@ const ContextMenuIconButton = styled(IconButton) `
|
|
|
29
29
|
`;
|
|
30
30
|
const icons = {
|
|
31
31
|
AddComment: AddCommentIcon,
|
|
32
|
-
|
|
32
|
+
Edit: EditIcon,
|
|
33
33
|
};
|
|
34
|
-
export const ContextMenu = ({ actions }) => (React.createElement(IconButtonGroup,
|
|
34
|
+
export const ContextMenu = ({ actions }) => (React.createElement(IconButtonGroup, { size: 32 }, actions.map((action) => {
|
|
35
35
|
const Icon = icons[action.icon];
|
|
36
36
|
return (React.createElement(ContextMenuIconButton, { key: action.icon, "data-tooltip-id": action.icon, onClick: action.action },
|
|
37
37
|
React.createElement(Icon, null),
|
|
@@ -95,4 +95,6 @@ export declare const SecondaryIconButton: import("styled-components").StyledComp
|
|
|
95
95
|
iconColor?: string | undefined;
|
|
96
96
|
}, "type">;
|
|
97
97
|
export declare const ButtonGroup: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
98
|
-
export declare const IconButtonGroup: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
98
|
+
export declare const IconButtonGroup: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
99
|
+
size?: number | undefined;
|
|
100
|
+
}, never>;
|
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.0.1",
|
|
4
|
+
"version": "2.0.3-LEAN-3821.1",
|
|
5
5
|
"repository": "github:Atypon-OpenSource/manuscripts-style-guide",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"main": "dist/cjs",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@manuscripts/json-schema": "2.2.10",
|
|
36
|
-
"@manuscripts/transform": "2.3.
|
|
36
|
+
"@manuscripts/transform": "2.3.22-LEAN-3821.1",
|
|
37
37
|
"@reach/tabs": "^0.18.0",
|
|
38
38
|
"date-fns": "^2.29.3",
|
|
39
39
|
"formik": "^2.2.9",
|