@ludo.ninja/components 2.2.50 → 2.2.51
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.
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import React, { CSSProperties } from 'react';
|
|
2
|
-
declare const LinkTabs: ({ isUnderlined, children, style, }: {
|
|
2
|
+
declare const LinkTabs: ({ isUnderlined, children, style, className }: {
|
|
3
3
|
children: React.ReactNode;
|
|
4
4
|
isUnderlined: boolean;
|
|
5
5
|
style?: CSSProperties;
|
|
6
|
+
className?: string;
|
|
6
7
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
7
8
|
export default LinkTabs;
|
|
@@ -44,8 +44,8 @@ const StyledLinkTabs = styled_components_1.default.div `
|
|
|
44
44
|
}
|
|
45
45
|
`;
|
|
46
46
|
// Component
|
|
47
|
-
const LinkTabs = ({ isUnderlined, children, style, }) => {
|
|
48
|
-
return ((0, jsx_runtime_1.jsx)(StyledLinkTabs, { isUnderlined: isUnderlined, style: style, children: children }));
|
|
47
|
+
const LinkTabs = ({ isUnderlined, children, style, className }) => {
|
|
48
|
+
return ((0, jsx_runtime_1.jsx)(StyledLinkTabs, { className: className, isUnderlined: isUnderlined, style: style, children: children }));
|
|
49
49
|
};
|
|
50
50
|
// Export
|
|
51
51
|
exports.default = LinkTabs;
|
|
@@ -3,6 +3,7 @@ interface LinkTabsProps {
|
|
|
3
3
|
isActive: boolean;
|
|
4
4
|
countItems: number | null;
|
|
5
5
|
text: string;
|
|
6
|
+
className?: string;
|
|
6
7
|
}
|
|
7
|
-
declare const LinkTabs: ({ link, isActive, countItems, text }: LinkTabsProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
declare const LinkTabs: ({ link, isActive, countItems, text, className }: LinkTabsProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
9
|
export default LinkTabs;
|
|
@@ -66,9 +66,9 @@ const StyledLinkTab = styled_components_1.default.span `
|
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
68
|
`;
|
|
69
|
-
const LinkTabs = ({ link, isActive, countItems, text }) => {
|
|
69
|
+
const LinkTabs = ({ link, isActive, countItems, text, className }) => {
|
|
70
70
|
const { deviceType } = (0, screen_1.useWindowDimensions)();
|
|
71
|
-
return ((0, jsx_runtime_1.jsx)(link_1.default, { href: link, children: (0, jsx_runtime_1.jsxs)(StyledLinkTab, { isActive: isActive, isMobile: deviceType === 'isMobile', children: [countItems !== null && ((0, jsx_runtime_1.jsx)("strong", { className: 'count', children: countItems })), text] }) }));
|
|
71
|
+
return ((0, jsx_runtime_1.jsx)(link_1.default, { className: className, href: link, children: (0, jsx_runtime_1.jsxs)(StyledLinkTab, { isActive: isActive, isMobile: deviceType === 'isMobile', children: [countItems !== null && ((0, jsx_runtime_1.jsx)("strong", { className: 'count', children: countItems })), text] }) }));
|
|
72
72
|
};
|
|
73
73
|
// Export
|
|
74
74
|
exports.default = LinkTabs;
|