@npm_leadtech/legal-lib-components 7.68.0 → 7.68.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/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>
|