@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.
@@ -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 !== null && _jsx("div", { className: `benefit-card__icon ${hasShadow && 'has-shadow'}`, children: image }), _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
+ 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 !== null && <div className={`benefit-card__icon ${hasShadow && 'has-shadow'}`}>{image}</div>}
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,7 +1,7 @@
1
1
  export interface BenefitCardProps {
2
2
  id: string;
3
3
  title: string;
4
- image?: React.ReactNode;
4
+ image?: string;
5
5
  description: string;
6
6
  hasShadow?: boolean;
7
7
  hasBigFontSize?: boolean;
@@ -1,7 +1,7 @@
1
1
  export interface BenefitCardProps {
2
2
  id: string
3
3
  title: string
4
- image?: React.ReactNode
4
+ image?: string
5
5
  description: string
6
6
  hasShadow?: boolean
7
7
  hasBigFontSize?: boolean
@@ -37,11 +37,6 @@ export const BenefitCardStyled = styled.div `
37
37
  &.has-shadow {
38
38
  box-shadow: 0 2px 6px 0 rgba(2, 55, 74, 0.25);
39
39
  }
40
-
41
- img {
42
- min-width: 32px;
43
- min-height: 32px;
44
- }
45
40
  }
46
41
  &__content {
47
42
  display: flex;
@@ -38,11 +38,6 @@ export const BenefitCardStyled = styled.div`
38
38
  &.has-shadow {
39
39
  box-shadow: 0 2px 6px 0 rgba(2, 55, 74, 0.25);
40
40
  }
41
-
42
- img {
43
- min-width: 32px;
44
- min-height: 32px;
45
- }
46
41
  }
47
42
  &__content {
48
43
  display: flex;
@@ -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 !== null && _jsx("div", { className: 'step-ratafia-card__title__icon', children: icon }), _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
+ 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;
@@ -18,11 +18,6 @@ export const StepRatafiaCardStyled = styled.div `
18
18
  align-self: stretch;
19
19
 
20
20
  color: var(--neutral-neutral-1);
21
-
22
- &__icon {
23
- width: 20px;
24
- height: 20px;
25
- }
26
21
  }
27
22
  }
28
23
  `;
@@ -19,11 +19,6 @@ export const StepRatafiaCardStyled = styled.div`
19
19
  align-self: stretch;
20
20
 
21
21
  color: var(--neutral-neutral-1);
22
-
23
- &__icon {
24
- width: 20px;
25
- height: 20px;
26
- }
27
22
  }
28
23
  }
29
24
  `
@@ -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 !== null && <div className='step-ratafia-card__title__icon'>{icon}</div>}
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>
@@ -1,6 +1,6 @@
1
1
  export interface StepRatafiaCardProps {
2
2
  id: string;
3
3
  title: string;
4
- icon?: React.ReactNode;
4
+ icon?: string;
5
5
  description: string;
6
6
  }
@@ -1,6 +1,6 @@
1
1
  export interface StepRatafiaCardProps {
2
2
  id: string
3
3
  title: string
4
- icon?: React.ReactNode
4
+ icon?: string
5
5
  description: string
6
6
  }
@@ -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
- &.ai-link::after {
20
- content: 'AI';
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
- &.ai-link::after {
24
- content: 'AI';
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', 'copilot'].includes(item.label.toLowerCase());
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', 'copilot'].includes(item.label.toLowerCase())
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}>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@npm_leadtech/legal-lib-components",
3
- "version": "7.69.5",
3
+ "version": "7.70.1",
4
4
  "license": "ISC",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",