@npm_leadtech/legal-lib-components 7.69.5 → 7.70.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/src/components/atoms/BenefitCard/BenefitCard.js +2 -1
- package/dist/src/components/atoms/BenefitCard/BenefitCard.tsx +7 -1
- package/dist/src/components/atoms/BenefitCard/BenefitCardProps.types.d.ts +1 -1
- package/dist/src/components/atoms/BenefitCard/BenefitCardProps.types.ts +1 -1
- package/dist/src/components/atoms/BenefitCard/BenefitCardStyled.styled.js +0 -5
- package/dist/src/components/atoms/BenefitCard/BenefitCardStyled.styled.ts +0 -5
- package/dist/src/components/atoms/StepRatafiaCard/StepRatafiaCard.js +2 -1
- package/dist/src/components/atoms/StepRatafiaCard/StepRatafiaCard.styled.js +0 -5
- package/dist/src/components/atoms/StepRatafiaCard/StepRatafiaCard.styled.ts +0 -5
- package/dist/src/components/atoms/StepRatafiaCard/StepRatafiaCard.tsx +2 -1
- package/dist/src/components/atoms/StepRatafiaCard/StepRatafiaCardProps.types.d.ts +1 -1
- package/dist/src/components/atoms/StepRatafiaCard/StepRatafiaCardProps.types.ts +1 -1
- package/dist/src/components/molecules/FooterMenu/FooterMenu.styled.js +15 -2
- package/dist/src/components/molecules/FooterMenu/FooterMenu.styled.ts +15 -2
- package/dist/src/components/organisms/MenuItems/MenuItems.js +1 -1
- package/dist/src/components/organisms/MenuItems/MenuItems.tsx +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { BenefitCardStyled } from './BenefitCardStyled.styled';
|
|
3
|
+
import { IconSvgURLWithThemeColor } from '../IconSvgURLWithThemeColor';
|
|
3
4
|
export const BenefitCard = ({ description, hasShadow = true, hasBigFontSize = true, title, image }) => {
|
|
4
|
-
return (_jsxs(BenefitCardStyled, { className: `benefit-card ${hasShadow && 'has-shadow'}`, children: [image
|
|
5
|
+
return (_jsxs(BenefitCardStyled, { className: `benefit-card ${hasShadow && 'has-shadow'}`, children: [image && (_jsx("div", { className: `benefit-card__icon ${hasShadow && 'has-shadow'}`, children: _jsx(IconSvgURLWithThemeColor, { url: image, height: '32', width: '32' }) })), _jsxs("div", { className: 'benefit-card__content', children: [_jsx("div", { className: `sans-serif ${hasBigFontSize && '--big'} --bold-weight benefit-card__content__title`, children: title }), _jsx("p", { className: 'sans-serif --medium benefit-ratafia-card__content__description', children: description })] })] }));
|
|
5
6
|
};
|
|
@@ -2,6 +2,7 @@ import React from 'react'
|
|
|
2
2
|
|
|
3
3
|
import { type BenefitCardProps } from './BenefitCardProps.types'
|
|
4
4
|
import { BenefitCardStyled } from './BenefitCardStyled.styled'
|
|
5
|
+
import { IconSvgURLWithThemeColor } from '../IconSvgURLWithThemeColor'
|
|
5
6
|
|
|
6
7
|
export const BenefitCard: React.FC<BenefitCardProps> = ({
|
|
7
8
|
description,
|
|
@@ -12,7 +13,12 @@ export const BenefitCard: React.FC<BenefitCardProps> = ({
|
|
|
12
13
|
}) => {
|
|
13
14
|
return (
|
|
14
15
|
<BenefitCardStyled className={`benefit-card ${hasShadow && 'has-shadow'}`}>
|
|
15
|
-
{image
|
|
16
|
+
{image && (
|
|
17
|
+
<div className={`benefit-card__icon ${hasShadow && 'has-shadow'}`}>
|
|
18
|
+
<IconSvgURLWithThemeColor url={image} height='32' width='32' />
|
|
19
|
+
</div>
|
|
20
|
+
)}
|
|
21
|
+
|
|
16
22
|
<div className='benefit-card__content'>
|
|
17
23
|
<div className={`sans-serif ${hasBigFontSize && '--big'} --bold-weight benefit-card__content__title`}>
|
|
18
24
|
{title}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { IconSvgURLWithThemeColor } from '../IconSvgURLWithThemeColor';
|
|
2
3
|
import { StepRatafiaCardStyled } from './StepRatafiaCard.styled';
|
|
3
4
|
export const StepRatafiaCard = ({ title, icon, description }) => {
|
|
4
|
-
return (_jsxs(StepRatafiaCardStyled, { className: 'step-ratafia-card', children: [_jsxs("div", { className: 'step-ratafia-card__title', children: [icon
|
|
5
|
+
return (_jsxs(StepRatafiaCardStyled, { className: 'step-ratafia-card', children: [_jsxs("div", { className: 'step-ratafia-card__title', children: [icon && _jsx(IconSvgURLWithThemeColor, { url: icon, height: '20', width: '20' }), _jsx("h3", { className: 'sans-serif --medium --bold-weight step-ratafia-card__title__text', children: title })] }), _jsx("p", { className: 'sans-serif --small step-ratafia-card__description', children: description })] }));
|
|
5
6
|
};
|
|
6
7
|
export default StepRatafiaCard;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
2
|
|
|
3
|
+
import { IconSvgURLWithThemeColor } from '../IconSvgURLWithThemeColor'
|
|
3
4
|
import { type StepRatafiaCardProps } from './StepRatafiaCardProps.types'
|
|
4
5
|
import { StepRatafiaCardStyled } from './StepRatafiaCard.styled'
|
|
5
6
|
|
|
@@ -7,7 +8,7 @@ export const StepRatafiaCard: React.FC<StepRatafiaCardProps> = ({ title, icon, d
|
|
|
7
8
|
return (
|
|
8
9
|
<StepRatafiaCardStyled className='step-ratafia-card'>
|
|
9
10
|
<div className='step-ratafia-card__title'>
|
|
10
|
-
{icon
|
|
11
|
+
{icon && <IconSvgURLWithThemeColor url={icon} height='20' width='20' />}
|
|
11
12
|
<h3 className='sans-serif --medium --bold-weight step-ratafia-card__title__text'>{title}</h3>
|
|
12
13
|
</div>
|
|
13
14
|
<p className='sans-serif --small step-ratafia-card__description'>{description}</p>
|
|
@@ -16,8 +16,9 @@ export const FooterMenuList = styled.ul `
|
|
|
16
16
|
export const FooterStyledLink = styled.a `
|
|
17
17
|
color: var(--neutral-neutral-6);
|
|
18
18
|
text-decoration: none;
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
|
|
20
|
+
&.ai-link::after,
|
|
21
|
+
&.ki-link::after {
|
|
21
22
|
color: var(--neutral-neutral-1);
|
|
22
23
|
font-weight: 600;
|
|
23
24
|
font-size: 0.625rem;
|
|
@@ -28,4 +29,16 @@ export const FooterStyledLink = styled.a `
|
|
|
28
29
|
display: inline-block;
|
|
29
30
|
line-height: 1;
|
|
30
31
|
}
|
|
32
|
+
|
|
33
|
+
&.ai-link.lowercase::after {
|
|
34
|
+
content: 'Ai';
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
&.ai-link.uppercase::after {
|
|
38
|
+
content: 'AI';
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
&.ki-link::after {
|
|
42
|
+
content: 'KI';
|
|
43
|
+
}
|
|
31
44
|
`;
|
|
@@ -20,8 +20,9 @@ export const FooterMenuList = styled.ul`
|
|
|
20
20
|
export const FooterStyledLink = styled.a`
|
|
21
21
|
color: var(--neutral-neutral-6);
|
|
22
22
|
text-decoration: none;
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
|
|
24
|
+
&.ai-link::after,
|
|
25
|
+
&.ki-link::after {
|
|
25
26
|
color: var(--neutral-neutral-1);
|
|
26
27
|
font-weight: 600;
|
|
27
28
|
font-size: 0.625rem;
|
|
@@ -32,4 +33,16 @@ export const FooterStyledLink = styled.a`
|
|
|
32
33
|
display: inline-block;
|
|
33
34
|
line-height: 1;
|
|
34
35
|
}
|
|
36
|
+
|
|
37
|
+
&.ai-link.lowercase::after {
|
|
38
|
+
content: 'Ai';
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
&.ai-link.uppercase::after {
|
|
42
|
+
content: 'AI';
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
&.ki-link::after {
|
|
46
|
+
content: 'KI';
|
|
47
|
+
}
|
|
35
48
|
`
|
|
@@ -7,7 +7,7 @@ import arrowDown from '../../../../images/svg/arrow-down.svg';
|
|
|
7
7
|
export const MenuItems = ({ hasProducts, seeAllDocumentsText, setCookiePolicyFunc, routes, finalMenu, configVars, aiLabel, documentsMenuItems, navMenuItems, extraMenu }) => {
|
|
8
8
|
return (_jsxs(MenuItemsStyled, { children: [hasProducts && (_jsxs("div", { className: 'navigation-pane__products', children: [_jsxs("div", { className: 'navigation-pane__products__container', children: [_jsx("p", { className: 'navigation-pane__products__title', children: documentsMenuItems?.title }), _jsx("img", { src: arrowDown, alt: 'arrow-down' })] }), _jsxs("div", { className: 'products__list', children: [_jsx("div", { className: 'menu-mobile-wrapper', children: _jsx(DocumentListMenu, { routes: routes, seeAllLegalDocs: seeAllDocumentsText?.seeAllLegalDocs ?? '', seeAllTypeDocs: seeAllDocumentsText?.seeAllTypeDocs ?? '', finalMenu: finalMenu, hasSubCategoryPage: configVars.HAS_SUBCATEGORY_PAGE, setCookiePolicyFunc: setCookiePolicyFunc }) }), _jsx("div", { className: 'menu-desktop-wrapper', children: _jsx(DocumentMainMenu, { seeAllTypeDocs: seeAllDocumentsText?.seeAllTypeDocs ?? '', allLegalDocs: seeAllDocumentsText?.allLegalDocs ?? '', allTypeDocs: seeAllDocumentsText?.allTypeDocs ?? '', setCookiePolicyFunc: setCookiePolicyFunc, routes: routes, hasSubCategoryPage: configVars.HAS_SUBCATEGORY_PAGE, finalMenu: finalMenu }) })] })] })), !!navMenuItems &&
|
|
9
9
|
navMenuItems.map((item) => {
|
|
10
|
-
const showIcon = ['lawgenius', '
|
|
10
|
+
const showIcon = ['lawgenius', 'legalfinity'].includes(item.label.toLowerCase());
|
|
11
11
|
return (_jsx("div", { className: `navigation-pane__link`, children: _jsxs("a", { className: `navigation-pane__link__title`, title: item.title, "data-qa": item.dataQa, href: item.href, children: [_jsx("p", { children: item.label }), showIcon && _jsx(RatafiaLandingIcon, { aiLabel: aiLabel })] }) }, item.title));
|
|
12
12
|
}), !!extraMenu && extraMenu?.items?.length > 0 && (_jsxs("div", { className: 'navigation-pane__resources', children: [_jsxs("div", { className: 'navigation-pane__resources__container', children: [_jsx("p", { className: 'navigation-pane__resources__title', children: extraMenu.title }), _jsx("img", { src: arrowDown, alt: 'arrow-down' })] }), _jsx("ul", { className: 'resources__list', children: extraMenu.items.map((item) => (_jsx("li", { className: 'menu-items-li', children: _jsx("a", { title: item.title, "data-qa": item.dataQa, href: item.href, children: item.label }) }, item.title))) })] }))] }));
|
|
13
13
|
};
|
|
@@ -54,7 +54,7 @@ export const MenuItems: React.FC<MenuItemsProps> = ({
|
|
|
54
54
|
)}
|
|
55
55
|
{!!navMenuItems &&
|
|
56
56
|
navMenuItems.map((item) => {
|
|
57
|
-
const showIcon = ['lawgenius', '
|
|
57
|
+
const showIcon = ['lawgenius', 'legalfinity'].includes(item.label.toLowerCase())
|
|
58
58
|
return (
|
|
59
59
|
<div className={`navigation-pane__link`} key={item.title}>
|
|
60
60
|
<a className={`navigation-pane__link__title`} title={item.title} data-qa={item.dataQa} href={item.href}>
|