@npm_leadtech/legal-lib-components 5.33.15 → 5.33.16
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 +1 -5
- package/dist/src/components/atoms/AddButton/AddButton.styled.js +0 -1
- package/dist/src/components/atoms/AddButton/AddButton.styled.ts +0 -1
- package/dist/src/components/atoms/Radio/Radio.scss +0 -2
- package/dist/src/components/atoms/RemoveButton/RemoveButton.styled.js +0 -1
- package/dist/src/components/atoms/RemoveButton/RemoveButton.styled.ts +0 -1
- 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/molecules/Article/Article.js +2 -2
- package/dist/src/components/molecules/Article/Article.tsx +3 -3
- package/dist/src/components/molecules/Article/ArticleProps.types.d.ts +0 -1
- package/dist/src/components/molecules/Article/ArticleProps.types.ts +0 -1
- package/dist/src/components/molecules/ContinueEditingBanner/ContinueEditingBanner.js +2 -2
- package/dist/src/components/molecules/ContinueEditingBanner/ContinueEditingBanner.tsx +2 -3
- package/dist/src/components/molecules/ContinueEditingBanner/ContinueEditingBannerProps.types.d.ts +0 -1
- package/dist/src/components/molecules/ContinueEditingBanner/ContinueEditingBannerProps.types.ts +0 -1
- 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/ContactJumbotron/ContactJumbotron.js +2 -2
- package/dist/src/components/organisms/ContactJumbotron/ContactJumbotron.tsx +1 -2
- package/dist/src/components/organisms/ContactJumbotron/ContactJumbotronProps.types.d.ts +0 -1
- package/dist/src/components/organisms/ContactJumbotron/ContactJumbotronProps.types.ts +0 -1
- package/dist/src/components/organisms/CookiePolicyBar/CookiePolicyBar.js +2 -2
- package/dist/src/components/organisms/CookiePolicyBar/CookiePolicyBar.tsx +2 -2
- package/dist/src/components/organisms/CookiePolicyBar/CookiePolicyBarProps.d.ts +0 -1
- package/dist/src/components/organisms/CookiePolicyBar/CookiePolicyBarProps.ts +0 -1
- package/package.json +1 -1
package/dist/css/styles.css
CHANGED
|
@@ -1780,8 +1780,6 @@ 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;
|
|
1785
1783
|
}
|
|
1786
1784
|
.e-radio.--regular .e-radio__inner label {
|
|
1787
1785
|
margin-bottom: 0.25rem;
|
|
@@ -1873,8 +1871,6 @@ h2.react-datepicker__current-month {
|
|
|
1873
1871
|
flex-flow: row wrap;
|
|
1874
1872
|
width: 100%;
|
|
1875
1873
|
margin-left: 1.5rem;
|
|
1876
|
-
margin-top: 2rem;
|
|
1877
|
-
margin-bottom: 1rem;
|
|
1878
1874
|
}
|
|
1879
1875
|
.e-radio.--regular:not(.--icons) .e-radio__inner label {
|
|
1880
1876
|
margin-bottom: 0.25rem;
|
|
@@ -2286,7 +2282,7 @@ h2.react-datepicker__current-month {
|
|
|
2286
2282
|
display: none;
|
|
2287
2283
|
}
|
|
2288
2284
|
.e-text__inner {
|
|
2289
|
-
margin-bottom: 0.
|
|
2285
|
+
margin-bottom: 0.5rem;
|
|
2290
2286
|
}
|
|
2291
2287
|
.e-text__children {
|
|
2292
2288
|
margin-top: 0.5rem;
|
|
@@ -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: [tooltip
|
|
7
|
+
return (_jsxs(TextAreaStyled, { className: classNames, children: [Boolean(tooltip) && _jsx("p", { className: 'tooltip-form sans-serif --small', children: tooltip }), Boolean(errorMessage) && !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 }), Boolean(label) && (_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
|
-
{tooltip
|
|
26
|
-
{errorMessage
|
|
25
|
+
{Boolean(tooltip) && <p className='tooltip-form sans-serif --small'>{tooltip}</p>}
|
|
26
|
+
{Boolean(errorMessage) && !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
|
-
{label
|
|
41
|
+
{Boolean(label) && (
|
|
42
42
|
<div className={'e-textarea__inner'}>
|
|
43
43
|
<div className='inputLabel'>{label}</div>
|
|
44
44
|
</div>
|
|
@@ -2,7 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import ArrowRight from '../../../../images/svg/arrow-right-24px-outlined.svg';
|
|
3
3
|
import { ArticleStyled } from './Article.styled';
|
|
4
4
|
import { Button } from '../../atoms';
|
|
5
|
-
const Article = ({ imageUrl, title, articleUrl, summary, isCategoryProductPage
|
|
6
|
-
return (_jsxs(ArticleStyled, { className: 'article', children: [_jsx("img", { src: imageUrl, className: isCategoryProductPage ? 'image image-category' : 'image', loading: 'lazy', alt: title }), _jsxs("div", { className: isCategoryProductPage ? 'information information-category' : 'information', children: [_jsx("a", { href: articleUrl, target: '_blank', rel: 'noreferrer', children: _jsxs("p", { className: 'title sans-serif --big', children: [title, " "] }) }), _jsx("div", { className: 'summary', children: summary }), isCategoryProductPage ? (_jsxs("div", { className: 'button-image-container', children: [_jsx(Button, { givenClass: 'thinner-letter', color: 'tertiary', label:
|
|
5
|
+
const Article = ({ imageUrl, title, articleUrl, summary, isCategoryProductPage }) => {
|
|
6
|
+
return (_jsxs(ArticleStyled, { className: 'article', children: [_jsx("img", { src: imageUrl, className: isCategoryProductPage ? 'image image-category' : 'image', loading: 'lazy', alt: title }), _jsxs("div", { className: isCategoryProductPage ? 'information information-category' : 'information', children: [_jsx("a", { href: articleUrl, target: '_blank', rel: 'noreferrer', children: _jsxs("p", { className: 'title sans-serif --big', children: [title, " "] }) }), _jsx("div", { className: 'summary', children: summary }), isCategoryProductPage ? (_jsxs("div", { className: 'button-image-container', children: [_jsx(Button, { givenClass: 'thinner-letter', color: 'tertiary', label: 'Read more', dataQa: 'article-read-more', link: articleUrl, isExternal: true }), _jsx("img", { className: 'article__arrow-right', src: ArrowRight, alt: '' })] })) : (_jsx(Button, { color: 'tertiary', label: 'Read more', dataQa: 'article-read-more', link: articleUrl, isExternal: true }))] })] }));
|
|
7
7
|
};
|
|
8
8
|
export default Article;
|
|
@@ -5,7 +5,7 @@ import { type ArticleProps } from './ArticleProps.types'
|
|
|
5
5
|
import { ArticleStyled } from './Article.styled'
|
|
6
6
|
import { Button } from '../../atoms'
|
|
7
7
|
|
|
8
|
-
const Article: FC<ArticleProps> = ({ imageUrl, title, articleUrl, summary, isCategoryProductPage
|
|
8
|
+
const Article: FC<ArticleProps> = ({ imageUrl, title, articleUrl, summary, isCategoryProductPage }) => {
|
|
9
9
|
return (
|
|
10
10
|
<ArticleStyled className='article'>
|
|
11
11
|
<img
|
|
@@ -24,7 +24,7 @@ const Article: FC<ArticleProps> = ({ imageUrl, title, articleUrl, summary, isCat
|
|
|
24
24
|
<Button
|
|
25
25
|
givenClass='thinner-letter'
|
|
26
26
|
color='tertiary'
|
|
27
|
-
label={
|
|
27
|
+
label={'Read more'}
|
|
28
28
|
dataQa='article-read-more'
|
|
29
29
|
link={articleUrl}
|
|
30
30
|
isExternal
|
|
@@ -32,7 +32,7 @@ const Article: FC<ArticleProps> = ({ imageUrl, title, articleUrl, summary, isCat
|
|
|
32
32
|
<img className='article__arrow-right' src={ArrowRight} alt=''></img>
|
|
33
33
|
</div>
|
|
34
34
|
) : (
|
|
35
|
-
<Button color='tertiary' label={
|
|
35
|
+
<Button color='tertiary' label={'Read more'} dataQa='article-read-more' link={articleUrl} isExternal />
|
|
36
36
|
)}
|
|
37
37
|
</div>
|
|
38
38
|
</ArticleStyled>
|
|
@@ -2,11 +2,11 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import { Button } from '../../atoms/Button';
|
|
3
3
|
import { ContinueEditingBannerStyled } from './ContinueEditingBanner.styled';
|
|
4
4
|
// import './ContinueEditingBanner.scss'
|
|
5
|
-
export const ContinueEditingBanner = ({ latestApplicationInProgress, editFormClicked, tagLine, title, token
|
|
5
|
+
export const ContinueEditingBanner = ({ latestApplicationInProgress, editFormClicked, tagLine, title, token }) => {
|
|
6
6
|
if (latestApplicationInProgress == null || token.length === 0) {
|
|
7
7
|
return null;
|
|
8
8
|
}
|
|
9
|
-
return (_jsx(ContinueEditingBannerStyled, { className: 'continue-banner', children: _jsxs("div", { className: 'continue-banner__wrapper wrapper', children: [_jsx("span", { className: 'continue-banner__title', children: title }), _jsx("span", { className: 'continue-banner__tagline', children: tagLine }), _jsx(Button, { label:
|
|
9
|
+
return (_jsx(ContinueEditingBannerStyled, { className: 'continue-banner', children: _jsxs("div", { className: 'continue-banner__wrapper wrapper', children: [_jsx("span", { className: 'continue-banner__title', children: title }), _jsx("span", { className: 'continue-banner__tagline', children: tagLine }), _jsx(Button, { label: 'Complete It Today', dataQa: 'continue-editing-banner-button', noLink: true, onClick: () => {
|
|
10
10
|
if (editFormClicked != null) {
|
|
11
11
|
editFormClicked(latestApplicationInProgress);
|
|
12
12
|
}
|
|
@@ -10,8 +10,7 @@ export const ContinueEditingBanner: React.FC<ContinueEditingBannerProps> = ({
|
|
|
10
10
|
editFormClicked,
|
|
11
11
|
tagLine,
|
|
12
12
|
title,
|
|
13
|
-
token
|
|
14
|
-
buttonLabel
|
|
13
|
+
token
|
|
15
14
|
}) => {
|
|
16
15
|
if (latestApplicationInProgress == null || token.length === 0) {
|
|
17
16
|
return null
|
|
@@ -23,7 +22,7 @@ export const ContinueEditingBanner: React.FC<ContinueEditingBannerProps> = ({
|
|
|
23
22
|
<span className='continue-banner__title'>{title}</span>
|
|
24
23
|
<span className='continue-banner__tagline'>{tagLine}</span>
|
|
25
24
|
<Button
|
|
26
|
-
label=
|
|
25
|
+
label='Complete It Today'
|
|
27
26
|
dataQa='continue-editing-banner-button'
|
|
28
27
|
noLink
|
|
29
28
|
onClick={() => {
|
|
@@ -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: [children
|
|
35
|
+
return (_jsxs("div", { className: classnames, children: [Boolean(children) && _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
|
-
{children
|
|
100
|
+
{Boolean(children) && <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 (label
|
|
4
|
+
if (!label && !notes)
|
|
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 (label
|
|
15
|
+
if (!label && !notes) return null
|
|
16
16
|
|
|
17
17
|
return (
|
|
18
18
|
<div className='e-text__inner'>
|
|
@@ -2,6 +2,6 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import { EmailContactBox, PhoneContactBoxDesktop } from '../../molecules';
|
|
3
3
|
import { Button } from '../../atoms';
|
|
4
4
|
import { ContactJumbotronStyled } from './ContactJumbotron.styled';
|
|
5
|
-
export const ContactJumbotron = ({ phoneBoxDesktopProps, emailContactBoxProps, faqsTitle,
|
|
6
|
-
return (_jsxs(ContactJumbotronStyled, { children: [!isJonSnow && _jsx(PhoneContactBoxDesktop, { ...phoneBoxDesktopProps }), _jsx("h2", { className: 'contact__text__title sans-serif', children: faqsTitle }), _jsx("div", { className: 'contact__text__subtitle sans-serif', children: children }), !isJonSnow && (_jsx(Button, { givenClass: 'faq-button', color: 'secondary', label:
|
|
5
|
+
export const ContactJumbotron = ({ phoneBoxDesktopProps, emailContactBoxProps, faqsTitle, children, isJonSnow = false }) => {
|
|
6
|
+
return (_jsxs(ContactJumbotronStyled, { children: [!isJonSnow && _jsx(PhoneContactBoxDesktop, { ...phoneBoxDesktopProps }), _jsx("h2", { className: 'contact__text__title sans-serif', children: faqsTitle }), _jsx("div", { className: 'contact__text__subtitle sans-serif', children: children }), !isJonSnow && (_jsx(Button, { givenClass: 'faq-button', color: 'secondary', label: 'Visit FAQ Page', link: '/faqs/', dataQa: 'visitFaq' })), _jsx(EmailContactBox, { ...emailContactBoxProps })] }));
|
|
7
7
|
};
|
|
@@ -9,7 +9,6 @@ export const ContactJumbotron: React.FC<ContactJumbotronProps> = ({
|
|
|
9
9
|
phoneBoxDesktopProps,
|
|
10
10
|
emailContactBoxProps,
|
|
11
11
|
faqsTitle,
|
|
12
|
-
visitFaqPageLabel,
|
|
13
12
|
children,
|
|
14
13
|
isJonSnow = false
|
|
15
14
|
}) => {
|
|
@@ -22,7 +21,7 @@ export const ContactJumbotron: React.FC<ContactJumbotronProps> = ({
|
|
|
22
21
|
<Button
|
|
23
22
|
givenClass='faq-button'
|
|
24
23
|
color='secondary'
|
|
25
|
-
label={
|
|
24
|
+
label={'Visit FAQ Page'}
|
|
26
25
|
link={'/faqs/'}
|
|
27
26
|
dataQa={'visitFaq'}
|
|
28
27
|
/>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Button, RichTextStrapi } from '../../atoms';
|
|
3
3
|
import { CookiePolicyBarStyled } from './CookiePolicyBar.styled';
|
|
4
|
-
export const CookiePolicyBar = ({ clickFunc, text
|
|
5
|
-
return (_jsxs(CookiePolicyBarStyled, { children: [_jsx(RichTextStrapi, { html: text, className: 'cookie-policy-bar__text sans-serif --extra-small' }), _jsx(Button, { dataQa: '', givenClass: 'accept-cookies-button', noLink: true, color: 'primary3', label:
|
|
4
|
+
export const CookiePolicyBar = ({ clickFunc, text }) => {
|
|
5
|
+
return (_jsxs(CookiePolicyBarStyled, { children: [_jsx(RichTextStrapi, { html: text, className: 'cookie-policy-bar__text sans-serif --extra-small' }), _jsx(Button, { dataQa: '', givenClass: 'accept-cookies-button', noLink: true, color: 'primary3', label: 'Accept Cookies', onClick: clickFunc })] }));
|
|
6
6
|
};
|
|
@@ -4,7 +4,7 @@ import { Button, RichTextStrapi } from '../../atoms'
|
|
|
4
4
|
import { type CookiePolicyBarProps } from './CookiePolicyBarProps'
|
|
5
5
|
import { CookiePolicyBarStyled } from './CookiePolicyBar.styled'
|
|
6
6
|
|
|
7
|
-
export const CookiePolicyBar: FC<CookiePolicyBarProps> = ({ clickFunc, text
|
|
7
|
+
export const CookiePolicyBar: FC<CookiePolicyBarProps> = ({ clickFunc, text }) => {
|
|
8
8
|
return (
|
|
9
9
|
<CookiePolicyBarStyled>
|
|
10
10
|
<RichTextStrapi html={text} className='cookie-policy-bar__text sans-serif --extra-small' />
|
|
@@ -13,7 +13,7 @@ export const CookiePolicyBar: FC<CookiePolicyBarProps> = ({ clickFunc, text, but
|
|
|
13
13
|
givenClass='accept-cookies-button'
|
|
14
14
|
noLink
|
|
15
15
|
color='primary3'
|
|
16
|
-
label={
|
|
16
|
+
label={'Accept Cookies'}
|
|
17
17
|
onClick={clickFunc}
|
|
18
18
|
/>
|
|
19
19
|
</CookiePolicyBarStyled>
|