@npm_leadtech/legal-lib-components 5.36.0 → 5.38.0
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/css/styles.css +5 -1
- package/dist/src/components/atoms/AddButton/AddButton.styled.js +1 -0
- package/dist/src/components/atoms/AddButton/AddButton.styled.ts +1 -0
- package/dist/src/components/atoms/IconTextInfoSection/IconTextInfoSection.styled.js +1 -1
- package/dist/src/components/atoms/IconTextInfoSection/IconTextInfoSection.styled.ts +1 -1
- package/dist/src/components/atoms/Radio/Radio.scss +2 -0
- package/dist/src/components/atoms/RemoveButton/RemoveButton.styled.js +1 -0
- package/dist/src/components/atoms/RemoveButton/RemoveButton.styled.ts +1 -0
- package/dist/src/components/atoms/TextArea/TextArea.js +1 -1
- package/dist/src/components/atoms/TextArea/TextArea.styled.js +2 -2
- package/dist/src/components/atoms/TextArea/TextArea.styled.ts +2 -2
- package/dist/src/components/atoms/TextArea/TextArea.tsx +3 -3
- package/dist/src/components/atoms/TopBar/TopBar.styled.js +1 -1
- package/dist/src/components/atoms/TopBar/TopBar.styled.ts +1 -1
- package/dist/src/components/molecules/AccordionItem/AccordionItem.styled.js +3 -2
- package/dist/src/components/molecules/AccordionItem/AccordionItem.styled.ts +3 -2
- package/dist/src/components/molecules/CountDownMessage/CountDownMessage.js +4 -4
- package/dist/src/components/molecules/CountDownMessage/CountDownMessage.tsx +6 -8
- package/dist/src/components/molecules/TextInput/TextInput.js +1 -1
- package/dist/src/components/molecules/TextInput/TextInput.scss +1 -1
- package/dist/src/components/molecules/TextInput/TextInput.tsx +1 -1
- package/dist/src/components/molecules/TextInput/TextInputLabel.js +1 -1
- package/dist/src/components/molecules/TextInput/TextInputLabel.tsx +1 -1
- package/dist/src/components/organisms/CardFunctionality/CardFunctionality.js +1 -3
- package/dist/src/components/organisms/CardFunctionality/CardFunctionality.styled.js +0 -5
- package/dist/src/components/organisms/CardFunctionality/CardFunctionality.styled.ts +0 -5
- 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/pages/ErrorRatafiaPage/ErrorRatafiaPage.styled.js +0 -1
- package/dist/src/components/pages/ErrorRatafiaPage/ErrorRatafiaPage.styled.ts +0 -1
- package/dist/src/components/sections/FunctionalityCardsSection/FunctionalityCardsSection.js +1 -0
- package/dist/src/components/sections/FunctionalityCardsSection/FunctionalityCardsSection.styled.js +3 -1
- package/dist/src/components/sections/FunctionalityCardsSection/FunctionalityCardsSection.styled.ts +3 -1
- package/dist/src/components/sections/FunctionalityCardsSection/FunctionalityCardsSection.tsx +1 -0
- package/package.json +1 -1
package/dist/css/styles.css
CHANGED
|
@@ -1780,6 +1780,8 @@ h2.react-datepicker__current-month {
|
|
|
1780
1780
|
flex-flow: row wrap;
|
|
1781
1781
|
width: 100%;
|
|
1782
1782
|
margin-left: 1.5rem;
|
|
1783
|
+
margin-top: 2rem;
|
|
1784
|
+
margin-bottom: 1rem;
|
|
1783
1785
|
}
|
|
1784
1786
|
.e-radio.--regular .e-radio__inner label {
|
|
1785
1787
|
margin-bottom: 0.25rem;
|
|
@@ -1871,6 +1873,8 @@ h2.react-datepicker__current-month {
|
|
|
1871
1873
|
flex-flow: row wrap;
|
|
1872
1874
|
width: 100%;
|
|
1873
1875
|
margin-left: 1.5rem;
|
|
1876
|
+
margin-top: 2rem;
|
|
1877
|
+
margin-bottom: 1rem;
|
|
1874
1878
|
}
|
|
1875
1879
|
.e-radio.--regular:not(.--icons) .e-radio__inner label {
|
|
1876
1880
|
margin-bottom: 0.25rem;
|
|
@@ -2282,7 +2286,7 @@ h2.react-datepicker__current-month {
|
|
|
2282
2286
|
display: none;
|
|
2283
2287
|
}
|
|
2284
2288
|
.e-text__inner {
|
|
2285
|
-
margin-bottom: 0.
|
|
2289
|
+
margin-bottom: 0.6rem;
|
|
2286
2290
|
}
|
|
2287
2291
|
.e-text__children {
|
|
2288
2292
|
margin-top: 0.5rem;
|
|
@@ -27,7 +27,7 @@ export const IconTextInfoSectionStyled = styled.div `
|
|
|
27
27
|
flex-direction: column;
|
|
28
28
|
background-color: var(--neutral-neutral-4);
|
|
29
29
|
justify-content: center;
|
|
30
|
-
padding: 1rem
|
|
30
|
+
padding: 1rem 1.5rem;
|
|
31
31
|
|
|
32
32
|
@media ${device['portrait-tablets']} {
|
|
33
33
|
padding: 0;
|
|
@@ -28,7 +28,7 @@ export const IconTextInfoSectionStyled = styled.div`
|
|
|
28
28
|
flex-direction: column;
|
|
29
29
|
background-color: var(--neutral-neutral-4);
|
|
30
30
|
justify-content: center;
|
|
31
|
-
padding: 1rem
|
|
31
|
+
padding: 1rem 1.5rem;
|
|
32
32
|
|
|
33
33
|
@media ${device['portrait-tablets']} {
|
|
34
34
|
padding: 0;
|
|
@@ -4,6 +4,6 @@ import error from '../../../../images/svg/info-error_24px_outlined.svg';
|
|
|
4
4
|
const TextArea = ({ customClass = '', disabled, errorMessage, label, name, onChange, placeholder, tooltip, validate = false, value, dataQa }) => {
|
|
5
5
|
const classNames = `${validate ? 'e-textarea' : 'e-textarea --is-invalid'}
|
|
6
6
|
${customClass}`;
|
|
7
|
-
return (_jsxs(TextAreaStyled, { className: classNames, children: [
|
|
7
|
+
return (_jsxs(TextAreaStyled, { className: classNames, children: [tooltip !== undefined && _jsx("p", { className: 'tooltip-form sans-serif --small', children: tooltip }), errorMessage !== undefined && !validate && (_jsxs("span", { className: 'e-text--error sans-serif --small', children: [_jsx("img", { src: error, alt: errorMessage }), errorMessage] })), _jsx("textarea", { id: name, name: name, placeholder: placeholder, onChange: onChange, value: value, disabled: disabled, "data-qa": dataQa }), label !== undefined && (_jsx("div", { className: 'e-textarea__inner', children: _jsx("div", { className: 'inputLabel', children: label }) }))] }));
|
|
8
8
|
};
|
|
9
9
|
export default TextArea;
|
|
@@ -22,8 +22,8 @@ const TextArea: FC<TextAreaProps> = ({
|
|
|
22
22
|
|
|
23
23
|
return (
|
|
24
24
|
<TextAreaStyled className={classNames}>
|
|
25
|
-
{
|
|
26
|
-
{
|
|
25
|
+
{tooltip !== undefined && <p className='tooltip-form sans-serif --small'>{tooltip}</p>}
|
|
26
|
+
{errorMessage !== undefined && !validate && (
|
|
27
27
|
<span className='e-text--error sans-serif --small'>
|
|
28
28
|
<img src={error} alt={errorMessage} />
|
|
29
29
|
{errorMessage}
|
|
@@ -38,7 +38,7 @@ const TextArea: FC<TextAreaProps> = ({
|
|
|
38
38
|
disabled={disabled}
|
|
39
39
|
data-qa={dataQa}
|
|
40
40
|
/>
|
|
41
|
-
{
|
|
41
|
+
{label !== undefined && (
|
|
42
42
|
<div className={'e-textarea__inner'}>
|
|
43
43
|
<div className='inputLabel'>{label}</div>
|
|
44
44
|
</div>
|
|
@@ -29,7 +29,7 @@ export const AccordionItemStyled = styled.div `
|
|
|
29
29
|
font-size: 16px;
|
|
30
30
|
font-style: normal;
|
|
31
31
|
font-weight: 400;
|
|
32
|
-
line-height:
|
|
32
|
+
line-height: 22px;
|
|
33
33
|
letter-spacing: -0.3px;
|
|
34
34
|
|
|
35
35
|
&.--success {
|
|
@@ -48,9 +48,10 @@ export const AccordionItemStyled = styled.div `
|
|
|
48
48
|
.accordion__title {
|
|
49
49
|
color: var(--primary-main-dark-1);
|
|
50
50
|
font-family: Inter;
|
|
51
|
-
font-size:
|
|
51
|
+
font-size: 18px;
|
|
52
52
|
font-style: normal;
|
|
53
53
|
font-weight: 700;
|
|
54
|
+
line-height: 24px;
|
|
54
55
|
letter-spacing: -0.3px;
|
|
55
56
|
|
|
56
57
|
&.--locked {
|
|
@@ -30,7 +30,7 @@ export const AccordionItemStyled = styled.div`
|
|
|
30
30
|
font-size: 16px;
|
|
31
31
|
font-style: normal;
|
|
32
32
|
font-weight: 400;
|
|
33
|
-
line-height:
|
|
33
|
+
line-height: 22px;
|
|
34
34
|
letter-spacing: -0.3px;
|
|
35
35
|
|
|
36
36
|
&.--success {
|
|
@@ -49,9 +49,10 @@ export const AccordionItemStyled = styled.div`
|
|
|
49
49
|
.accordion__title {
|
|
50
50
|
color: var(--primary-main-dark-1);
|
|
51
51
|
font-family: Inter;
|
|
52
|
-
font-size:
|
|
52
|
+
font-size: 18px;
|
|
53
53
|
font-style: normal;
|
|
54
54
|
font-weight: 700;
|
|
55
|
+
line-height: 24px;
|
|
55
56
|
letter-spacing: -0.3px;
|
|
56
57
|
|
|
57
58
|
&.--locked {
|
|
@@ -18,18 +18,18 @@ const CountDownMessage = ({ noImg = false, text, time, centered = false }) => {
|
|
|
18
18
|
};
|
|
19
19
|
useEffect(() => {
|
|
20
20
|
window.removeEventListener('scroll', handleScroll);
|
|
21
|
-
if (isTablet) {
|
|
21
|
+
if (isMobile || isTablet) {
|
|
22
22
|
window.addEventListener('scroll', handleScroll);
|
|
23
23
|
}
|
|
24
24
|
return () => {
|
|
25
25
|
window.removeEventListener('scroll', handleScroll);
|
|
26
26
|
};
|
|
27
|
-
}, [isTablet]);
|
|
27
|
+
}, [isMobile, isTablet]);
|
|
28
28
|
const messageInformationHtml = _jsx(MessageInformation, { noImg: noImg, text: text, time: time, centered: centered });
|
|
29
29
|
const classCountDownMessageFixed = classNames({
|
|
30
30
|
'count-down-message-fixed': true,
|
|
31
|
-
'count-down-message-fixed--show': scrollSuperateCountDown
|
|
31
|
+
'count-down-message-fixed--show': scrollSuperateCountDown
|
|
32
32
|
});
|
|
33
|
-
return (_jsxs(_Fragment, { children: [
|
|
33
|
+
return (_jsxs(_Fragment, { children: [_jsx(CountDownMessageStyled, { className: `count-down-message ${noImg && 'extra-margin'}`, ref: countDownRef, children: messageInformationHtml }), _jsx(CountDownMessageStyled, { className: classCountDownMessageFixed, children: messageInformationHtml })] }));
|
|
34
34
|
};
|
|
35
35
|
export default CountDownMessage;
|
|
@@ -24,29 +24,27 @@ const CountDownMessage: FC<CountDownMessageProps> = ({ noImg = false, text, time
|
|
|
24
24
|
useEffect(() => {
|
|
25
25
|
window.removeEventListener('scroll', handleScroll)
|
|
26
26
|
|
|
27
|
-
if (isTablet) {
|
|
27
|
+
if (isMobile || isTablet) {
|
|
28
28
|
window.addEventListener('scroll', handleScroll)
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
return () => {
|
|
32
32
|
window.removeEventListener('scroll', handleScroll)
|
|
33
33
|
}
|
|
34
|
-
}, [isTablet])
|
|
34
|
+
}, [isMobile, isTablet])
|
|
35
35
|
|
|
36
36
|
const messageInformationHtml = <MessageInformation noImg={noImg} text={text} time={time} centered={centered} />
|
|
37
37
|
|
|
38
38
|
const classCountDownMessageFixed = classNames({
|
|
39
39
|
'count-down-message-fixed': true,
|
|
40
|
-
'count-down-message-fixed--show': scrollSuperateCountDown
|
|
40
|
+
'count-down-message-fixed--show': scrollSuperateCountDown
|
|
41
41
|
})
|
|
42
42
|
|
|
43
43
|
return (
|
|
44
44
|
<>
|
|
45
|
-
{
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
</CountDownMessageStyled>
|
|
49
|
-
)}
|
|
45
|
+
<CountDownMessageStyled className={`count-down-message ${noImg && 'extra-margin'}`} ref={countDownRef}>
|
|
46
|
+
{messageInformationHtml}
|
|
47
|
+
</CountDownMessageStyled>
|
|
50
48
|
|
|
51
49
|
<CountDownMessageStyled className={classCountDownMessageFixed}>{messageInformationHtml}</CountDownMessageStyled>
|
|
52
50
|
</>
|
|
@@ -32,7 +32,7 @@ const TextInput = React.forwardRef(({ label, value, validate = true, isValidGrou
|
|
|
32
32
|
}
|
|
33
33
|
return (_jsx(Input, { name: name ?? '', type: type, placeholder: placeholder ?? '', className: 'e-text-input', onChange: handleChange, onClick: onClick ?? (() => { }), value: value, "data-qa": name, disabled: disabled ?? false, maxLength: maxLength, onBlur: onBlur ?? (() => { }), ref: ref, onKeyDown: handleKeyDown, onKeyUp: handleKeyUp }));
|
|
34
34
|
};
|
|
35
|
-
return (_jsxs("div", { className: classnames, children: [
|
|
35
|
+
return (_jsxs("div", { className: classnames, children: [children !== null && _jsx("div", { className: 'e-text__children', children: children }), _jsx(TextInputTooltip, { tooltip: tooltip }), _jsx(TextInputMessage, { errorMessage: errorMessage, validate: validate }), renderInput(), _jsx(TextInputLabel, { label: label, htmlFor: name, notes: notes, dialogMenuTip: dialogMenuTip })] }));
|
|
36
36
|
});
|
|
37
37
|
export default TextInput;
|
|
38
38
|
TextInput.displayName = 'TextInput';
|
|
@@ -97,7 +97,7 @@ const TextInput = React.forwardRef<HTMLInputElement, TextInputProps>(
|
|
|
97
97
|
|
|
98
98
|
return (
|
|
99
99
|
<div className={classnames}>
|
|
100
|
-
{
|
|
100
|
+
{children !== null && <div className='e-text__children'>{children}</div>}
|
|
101
101
|
<TextInputTooltip tooltip={tooltip} />
|
|
102
102
|
<TextInputMessage errorMessage={errorMessage} validate={validate} />
|
|
103
103
|
{renderInput()}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { DialogMenuIcon } from '../../atoms';
|
|
3
3
|
export const TextInputLabel = ({ label, htmlFor, notes, dialogMenuTip = '' }) => {
|
|
4
|
-
if (
|
|
4
|
+
if (label === undefined && notes === undefined)
|
|
5
5
|
return null;
|
|
6
6
|
return (_jsxs("div", { className: 'e-text__inner', children: [_jsxs("label", { htmlFor: htmlFor, className: dialogMenuTip.length > 0 ? 'form-group__label-icon' : 'form-group__label', children: [label, dialogMenuTip.length > 0 ? _jsx(DialogMenuIcon, { content: dialogMenuTip }) : null] }), _jsx("p", { className: 'e-text__inner__notes', children: notes })] }));
|
|
7
7
|
};
|
|
@@ -12,7 +12,7 @@ interface TextInputLabelProps {
|
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
export const TextInputLabel: FC<TextInputLabelProps> = ({ label, htmlFor, notes, dialogMenuTip = '' }) => {
|
|
15
|
-
if (
|
|
15
|
+
if (label === undefined && notes === undefined) return null
|
|
16
16
|
|
|
17
17
|
return (
|
|
18
18
|
<div className='e-text__inner'>
|
|
@@ -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
|
};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { device } from '../../../globalStyles/breakpoints';
|
|
2
1
|
import styled from 'styled-components';
|
|
3
2
|
export const CardFunctionalityStyled = styled.article `
|
|
4
3
|
border-radius: var(--global-border-radius);
|
|
@@ -7,10 +6,6 @@ export const CardFunctionalityStyled = styled.article `
|
|
|
7
6
|
flex-direction: column;
|
|
8
7
|
gap: var(--global-gap);
|
|
9
8
|
padding: 1em;
|
|
10
|
-
width: 100%;
|
|
11
|
-
@media ${device.laptop} {
|
|
12
|
-
width: 50%;
|
|
13
|
-
}
|
|
14
9
|
|
|
15
10
|
.content-tags {
|
|
16
11
|
display: flex;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { device } from '../../../globalStyles/breakpoints'
|
|
2
1
|
import styled from 'styled-components'
|
|
3
2
|
|
|
4
3
|
export const CardFunctionalityStyled = styled.article`
|
|
@@ -8,10 +7,6 @@ export const CardFunctionalityStyled = styled.article`
|
|
|
8
7
|
flex-direction: column;
|
|
9
8
|
gap: var(--global-gap);
|
|
10
9
|
padding: 1em;
|
|
11
|
-
width: 100%;
|
|
12
|
-
@media ${device.laptop} {
|
|
13
|
-
width: 50%;
|
|
14
|
-
}
|
|
15
10
|
|
|
16
11
|
.content-tags {
|
|
17
12
|
display: flex;
|
|
@@ -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'>
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { CardFunctionality } from '../../organisms';
|
|
3
3
|
import { FunctionalityCardsSectionStyled } from './FunctionalityCardsSection.styled';
|
|
4
|
+
// import './FunctionalityCardsSection.scss'
|
|
4
5
|
export const FunctionalityCardsSection = ({ cards = [] }) => {
|
|
5
6
|
if (cards.length === 0)
|
|
6
7
|
return null;
|
package/dist/src/components/sections/FunctionalityCardsSection/FunctionalityCardsSection.styled.js
CHANGED
|
@@ -3,10 +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
|
+
margin-bottom: 2rem;
|
|
7
8
|
width: 100%;
|
|
8
9
|
|
|
9
10
|
@media ${device.laptop} {
|
|
10
11
|
flex-direction: row;
|
|
12
|
+
width: 50%;
|
|
11
13
|
}
|
|
12
14
|
`;
|
package/dist/src/components/sections/FunctionalityCardsSection/FunctionalityCardsSection.styled.ts
CHANGED
|
@@ -4,10 +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
|
+
margin-bottom: 2rem;
|
|
8
9
|
width: 100%;
|
|
9
10
|
|
|
10
11
|
@media ${device.laptop} {
|
|
11
12
|
flex-direction: row;
|
|
13
|
+
width: 50%;
|
|
12
14
|
}
|
|
13
15
|
`
|
package/dist/src/components/sections/FunctionalityCardsSection/FunctionalityCardsSection.tsx
CHANGED
|
@@ -3,6 +3,7 @@ import React from 'react'
|
|
|
3
3
|
import { CardFunctionality } from '../../organisms'
|
|
4
4
|
import { type FunctionalityCardsSectionProps } from './FunctionalityCardsSectionProps'
|
|
5
5
|
import { FunctionalityCardsSectionStyled } from './FunctionalityCardsSection.styled'
|
|
6
|
+
// import './FunctionalityCardsSection.scss'
|
|
6
7
|
|
|
7
8
|
export const FunctionalityCardsSection: React.FC<FunctionalityCardsSectionProps> = ({ cards = [] }) => {
|
|
8
9
|
if (cards.length === 0) return null
|