@mailstep/design-system 0.7.62 → 0.7.63
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/package.json
CHANGED
|
@@ -3,5 +3,5 @@ import { Link } from 'react-router-dom';
|
|
|
3
3
|
import { MenuItemsListItem } from '../../styles';
|
|
4
4
|
export var MenuItem = function (_a) {
|
|
5
5
|
var item = _a.item;
|
|
6
|
-
return (_jsx(MenuItemsListItem, { onClick: item.onClick, children: item.link ? _jsx(Link, { to: item.link, children: item.title }) : item.title }));
|
|
6
|
+
return (_jsx(MenuItemsListItem, { onClick: item.onClick, pointer: !!item.onClick, children: item.link ? _jsx(Link, { to: item.link, children: item.title }) : item.title }));
|
|
7
7
|
};
|
|
@@ -1,2 +1,4 @@
|
|
|
1
1
|
export declare const MenuItemsList: import("styled-components").StyledComponent<"ul", import("@xstyled/system").Theme, {}, never>;
|
|
2
|
-
export declare const MenuItemsListItem: import("styled-components").StyledComponent<"li", import("@xstyled/system").Theme, {
|
|
2
|
+
export declare const MenuItemsListItem: import("styled-components").StyledComponent<"li", import("@xstyled/system").Theme, {
|
|
3
|
+
pointer?: boolean | undefined;
|
|
4
|
+
}, never>;
|
|
@@ -4,5 +4,8 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
|
|
|
4
4
|
};
|
|
5
5
|
import styled from '@xstyled/styled-components';
|
|
6
6
|
export var MenuItemsList = styled.ul(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: none;\n gap: 10px;\n\n @media (min-width: 1024px) {\n display: flex;\n }\n"], ["\n display: none;\n gap: 10px;\n\n @media (min-width: 1024px) {\n display: flex;\n }\n"])));
|
|
7
|
-
export var MenuItemsListItem = styled.li(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n
|
|
7
|
+
export var MenuItemsListItem = styled.li(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n ", ";\n\n a {\n text-decoration: none;\n border-color: red1;\n color: typoPrimary;\n }\n\n a:hover {\n border-bottom: 1px solid;\n color: red1;\n }\n"], ["\n ", ";\n\n a {\n text-decoration: none;\n border-color: red1;\n color: typoPrimary;\n }\n\n a:hover {\n border-bottom: 1px solid;\n color: red1;\n }\n"])), function (_a) {
|
|
8
|
+
var pointer = _a.pointer;
|
|
9
|
+
return pointer && 'cursor: pointer;';
|
|
10
|
+
});
|
|
8
11
|
var templateObject_1, templateObject_2;
|