@npm_leadtech/legal-lib-components 7.78.1 → 7.79.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.
|
@@ -2,5 +2,5 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { IconTextInfoSectionStyled } from './IconTextInfoSection.styled';
|
|
4
4
|
export const IconTextInfoSection = ({ items, classnames = '' }) => {
|
|
5
|
-
return (_jsx(IconTextInfoSectionStyled, { className: `icon-text-info-section bottom-side ${classnames}`, children: items.map(({ text, src }, index) => (_jsxs(React.Fragment, { children: [_jsxs("div", { className: 'box', children: [_jsx("div", { className: 'item-image', children: _jsx("img", { className: 'image', src: src, alt:
|
|
5
|
+
return (_jsx(IconTextInfoSectionStyled, { className: `icon-text-info-section bottom-side ${classnames}`, children: items.map(({ text, src }, index) => (_jsxs(React.Fragment, { children: [_jsxs("div", { className: 'box', children: [_jsx("div", { className: 'item-image', children: _jsx("img", { className: 'image', src: src, alt: text, title: text }) }), _jsx("div", { className: 'item-text', children: _jsx("p", { className: 'no-margin', children: text }) })] }), items.length - 1 !== index && _jsx("div", { className: 'icon-text-info-section__separator' })] }, `${src}-${index}`))) }));
|
|
6
6
|
};
|
|
@@ -10,7 +10,7 @@ export const IconTextInfoSection: React.FC<IconTextInfoSectionProps> = ({ items,
|
|
|
10
10
|
<React.Fragment key={`${src}-${index}`}>
|
|
11
11
|
<div className='box'>
|
|
12
12
|
<div className='item-image'>
|
|
13
|
-
<img className='image' src={src} alt=
|
|
13
|
+
<img className='image' src={src} alt={text} title={text}></img>
|
|
14
14
|
</div>
|
|
15
15
|
<div className='item-text'>
|
|
16
16
|
<p className='no-margin'>{text}</p>
|