@npm_leadtech/legal-lib-components 5.31.7 → 5.31.8
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/AddButton/AddButton.js +2 -2
- package/dist/src/components/atoms/AddButton/AddButton.styled.js +4 -0
- package/dist/src/components/atoms/AddButton/AddButton.styled.ts +4 -0
- package/dist/src/components/atoms/AddButton/AddButton.tsx +4 -2
- package/dist/src/components/atoms/AddButton/AddButtonProps.types.d.ts +2 -0
- package/dist/src/components/atoms/AddButton/AddButtonProps.types.ts +2 -0
- package/dist/src/components/organisms/CardFunctionality/CardFunctionality.js +1 -3
- package/dist/src/components/organisms/CardFunctionality/CardFunctionality.styled.js +0 -1
- package/dist/src/components/organisms/CardFunctionality/CardFunctionality.styled.ts +0 -1
- package/dist/src/components/organisms/CardFunctionality/CardFunctionality.tsx +1 -9
- package/dist/src/components/organisms/CardFunctionality/CardFunctionalityProps.d.ts +0 -1
- package/dist/src/components/organisms/CardFunctionality/CardFunctionalityProps.ts +0 -1
- package/dist/src/components/sections/FunctionalityCardsSection/FunctionalityCardsSection.styled.js +2 -1
- package/dist/src/components/sections/FunctionalityCardsSection/FunctionalityCardsSection.styled.ts +2 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { AddButtonStyled } from './AddButton.styled';
|
|
3
3
|
// import './AddButton.scss'
|
|
4
|
-
const AddButton = ({ label = '', className = '', items, name = '', onChange, value = '', disabled = false, tooltip = undefined }) => {
|
|
5
|
-
return (_jsxs(AddButtonStyled, { className: `e-addButton ${className}`, children: [items.addButton.value !== '' && (_jsxs("div", { className: 'e-addButton__inner', children: [_jsx("input", { type: 'radio', id: `${name}_${items.addButton.value}`, name: name, onChange: onChange, value: items.addButton.value, checked: items.addButton.value === value, disabled: disabled, "data-qa": `${name}_${items.addButton.value}` }), _jsx("label", { htmlFor: `${name}_${items.addButton.value}`, children: label })] })), tooltip !== undefined && _jsx("p", { className: 'tooltip sans-serif --extra-small', children: tooltip })] }));
|
|
4
|
+
const AddButton = ({ label = '', className = '', items, name = '', onChange, value = '', disabled = false, tooltip = undefined, index = 0, total = 1 }) => {
|
|
5
|
+
return (_jsxs(AddButtonStyled, { className: `e-addButton ${className} ${index === 0 && total > 1 ? 'hidden' : ''}`, children: [items.addButton.value !== '' && (_jsxs("div", { className: 'e-addButton__inner', children: [_jsx("input", { type: 'radio', id: `${name}_${items.addButton.value}`, name: name, onChange: onChange, value: items.addButton.value, checked: items.addButton.value === value, disabled: disabled, "data-qa": `${name}_${items.addButton.value}` }), _jsx("label", { htmlFor: `${name}_${items.addButton.value}`, children: label })] })), tooltip !== undefined && _jsx("p", { className: 'tooltip sans-serif --extra-small', children: tooltip })] }));
|
|
6
6
|
};
|
|
7
7
|
export default AddButton;
|
|
@@ -12,10 +12,12 @@ const AddButton: FC<AddButtonProps> = ({
|
|
|
12
12
|
onChange,
|
|
13
13
|
value = '',
|
|
14
14
|
disabled = false,
|
|
15
|
-
tooltip = undefined
|
|
15
|
+
tooltip = undefined,
|
|
16
|
+
index = 0,
|
|
17
|
+
total = 1
|
|
16
18
|
}) => {
|
|
17
19
|
return (
|
|
18
|
-
<AddButtonStyled className={`e-addButton ${className}`}>
|
|
20
|
+
<AddButtonStyled className={`e-addButton ${className} ${index === 0 && total > 1 ? 'hidden' : ''}`}>
|
|
19
21
|
{items.addButton.value !== '' && (
|
|
20
22
|
<div className={'e-addButton__inner'}>
|
|
21
23
|
<input
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Button, Tag } from '../../atoms';
|
|
3
3
|
import { CardFunctionalityStyled } from './CardFunctionality.styled';
|
|
4
|
-
export const CardFunctionality = ({ icon, title, text, tags, cta
|
|
5
|
-
if (isHidden)
|
|
6
|
-
return null;
|
|
4
|
+
export const CardFunctionality = ({ icon, title, text, tags, cta }) => {
|
|
7
5
|
return (_jsxs(CardFunctionalityStyled, { children: [_jsxs("div", { className: 'content-tags', children: [_jsxs("div", { className: 'content', children: [_jsxs("div", { className: 'header', children: [_jsx("div", { className: 'icon', children: icon }), _jsx("p", { className: 'title', children: title })] }), _jsx("div", { title: text, className: 'text', children: text })] }), _jsx("div", { className: 'tags', children: tags.map((tag) => (_jsx(Tag, { ...tag }, tag.id))) })] }), _jsx(Button, { ...cta, givenClass: 'cta-card' })] }));
|
|
8
6
|
};
|
|
@@ -4,15 +4,7 @@ import { Button, Tag } from '../../atoms'
|
|
|
4
4
|
import { type CardFunctionalityProps } from './CardFunctionalityProps'
|
|
5
5
|
import { CardFunctionalityStyled } from './CardFunctionality.styled'
|
|
6
6
|
|
|
7
|
-
export const CardFunctionality: React.FC<CardFunctionalityProps> = ({
|
|
8
|
-
icon,
|
|
9
|
-
title,
|
|
10
|
-
text,
|
|
11
|
-
tags,
|
|
12
|
-
cta,
|
|
13
|
-
isHidden = false
|
|
14
|
-
}) => {
|
|
15
|
-
if (isHidden) return null
|
|
7
|
+
export const CardFunctionality: React.FC<CardFunctionalityProps> = ({ icon, title, text, tags, cta }) => {
|
|
16
8
|
return (
|
|
17
9
|
<CardFunctionalityStyled>
|
|
18
10
|
<div className='content-tags'>
|
package/dist/src/components/sections/FunctionalityCardsSection/FunctionalityCardsSection.styled.js
CHANGED
|
@@ -3,11 +3,12 @@ import styled from 'styled-components';
|
|
|
3
3
|
export const FunctionalityCardsSectionStyled = styled.section `
|
|
4
4
|
display: flex;
|
|
5
5
|
flex-direction: column;
|
|
6
|
-
gap:
|
|
6
|
+
gap: $global-gap;
|
|
7
7
|
margin-bottom: 2rem;
|
|
8
8
|
width: 100%;
|
|
9
9
|
|
|
10
10
|
@media ${device.laptop} {
|
|
11
11
|
flex-direction: row;
|
|
12
|
+
width: 50%;
|
|
12
13
|
}
|
|
13
14
|
`;
|
package/dist/src/components/sections/FunctionalityCardsSection/FunctionalityCardsSection.styled.ts
CHANGED
|
@@ -4,11 +4,12 @@ import styled from 'styled-components'
|
|
|
4
4
|
export const FunctionalityCardsSectionStyled = styled.section`
|
|
5
5
|
display: flex;
|
|
6
6
|
flex-direction: column;
|
|
7
|
-
gap:
|
|
7
|
+
gap: $global-gap;
|
|
8
8
|
margin-bottom: 2rem;
|
|
9
9
|
width: 100%;
|
|
10
10
|
|
|
11
11
|
@media ${device.laptop} {
|
|
12
12
|
flex-direction: row;
|
|
13
|
+
width: 50%;
|
|
13
14
|
}
|
|
14
15
|
`
|