@npm_leadtech/legal-lib-components 7.27.4 → 7.28.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 +3 -0
- package/dist/src/components/atoms/DialogMenuIcon/DialogMenuIcon.styled.js +1 -1
- package/dist/src/components/atoms/DialogMenuIcon/DialogMenuIcon.styled.ts +1 -1
- package/dist/src/components/molecules/TextInput/Input.d.ts +1 -0
- package/dist/src/components/molecules/TextInput/Input.js +4 -5
- package/dist/src/components/molecules/TextInput/Input.tsx +8 -7
- package/dist/src/components/molecules/TextInput/TextInput.js +2 -2
- package/dist/src/components/molecules/TextInput/TextInput.scss +4 -0
- package/dist/src/components/molecules/TextInput/TextInput.tsx +3 -1
- package/dist/src/components/molecules/TextInput/TextInputProps.types.d.ts +1 -0
- package/dist/src/components/molecules/TextInput/TextInputProps.types.ts +1 -0
- package/dist/src/components/organisms/TryOurFreeLegalBlogsContent/TryOurFreeLegalBlogsContent.js +1 -3
- package/dist/src/components/organisms/TryOurFreeLegalBlogsContent/TryOurFreeLegalBlogsContent.styled.js +2 -4
- package/dist/src/components/organisms/TryOurFreeLegalBlogsContent/TryOurFreeLegalBlogsContent.styled.ts +2 -4
- package/dist/src/components/organisms/TryOurFreeLegalBlogsContent/TryOurFreeLegalBlogsContent.tsx +1 -4
- package/dist/src/components/organisms/TryOurFreeLegalBlogsContent/TryOurFreeLegalBlogsContentProps.types.d.ts +1 -3
- package/dist/src/components/organisms/TryOurFreeLegalBlogsContent/TryOurFreeLegalBlogsContentProps.types.js +0 -2
- package/dist/src/components/organisms/TryOurFreeLegalBlogsContent/TryOurFreeLegalBlogsContentProps.types.ts +1 -3
- package/dist/src/components/sections/TryOurFreeLegalBlogsSection/TryOurFreeLegalBlogsSection.js +1 -9
- package/dist/src/components/sections/TryOurFreeLegalBlogsSection/TryOurFreeLegalBlogsSection.styled.js +0 -4
- package/dist/src/components/sections/TryOurFreeLegalBlogsSection/TryOurFreeLegalBlogsSection.styled.ts +0 -4
- package/dist/src/components/sections/TryOurFreeLegalBlogsSection/TryOurFreeLegalBlogsSection.tsx +1 -11
- package/dist/src/components/sections/index.d.ts +0 -3
- package/dist/src/components/sections/index.js +0 -3
- package/dist/src/components/sections/index.ts +0 -3
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +7 -2
- package/dist/src/components/molecules/LawGeniusInfoCard/LawGeniusInfoCard.d.ts +0 -3
- package/dist/src/components/molecules/LawGeniusInfoCard/LawGeniusInfoCard.js +0 -5
- package/dist/src/components/molecules/LawGeniusInfoCard/LawGeniusInfoCard.styled.d.ts +0 -1
- package/dist/src/components/molecules/LawGeniusInfoCard/LawGeniusInfoCard.styled.js +0 -50
- package/dist/src/components/molecules/LawGeniusInfoCard/LawGeniusInfoCard.styled.ts +0 -51
- package/dist/src/components/molecules/LawGeniusInfoCard/LawGeniusInfoCard.tsx +0 -20
- package/dist/src/components/molecules/LawGeniusInfoCard/LawGeniusInfoCardProps.d.ts +0 -5
- package/dist/src/components/molecules/LawGeniusInfoCard/LawGeniusInfoCardProps.js +0 -1
- package/dist/src/components/molecules/LawGeniusInfoCard/LawGeniusInfoCardProps.ts +0 -5
- package/dist/src/components/molecules/LawGeniusInfoCard/index.d.ts +0 -2
- package/dist/src/components/molecules/LawGeniusInfoCard/index.js +0 -2
- package/dist/src/components/molecules/LawGeniusInfoCard/index.ts +0 -2
- package/dist/src/components/pages/HowItWorksPage/HowItWorksPage.d.ts +0 -3
- package/dist/src/components/pages/HowItWorksPage/HowItWorksPage.js +0 -5
- package/dist/src/components/pages/HowItWorksPage/HowItWorksPage.tsx +0 -26
- package/dist/src/components/pages/HowItWorksPage/HowItWorksPageProps.d.ts +0 -10
- package/dist/src/components/pages/HowItWorksPage/HowItWorksPageProps.js +0 -1
- package/dist/src/components/pages/HowItWorksPage/HowItWorksPageProps.ts +0 -16
- package/dist/src/components/pages/HowItWorksPage/index.d.ts +0 -2
- package/dist/src/components/pages/HowItWorksPage/index.js +0 -2
- package/dist/src/components/pages/HowItWorksPage/index.ts +0 -2
- package/dist/src/components/sections/LawGeniusCardsSection/LawGeniusCardsSection.d.ts +0 -4
- package/dist/src/components/sections/LawGeniusCardsSection/LawGeniusCardsSection.js +0 -12
- package/dist/src/components/sections/LawGeniusCardsSection/LawGeniusCardsSection.styled.d.ts +0 -1
- package/dist/src/components/sections/LawGeniusCardsSection/LawGeniusCardsSection.styled.js +0 -94
- package/dist/src/components/sections/LawGeniusCardsSection/LawGeniusCardsSection.styled.ts +0 -95
- package/dist/src/components/sections/LawGeniusCardsSection/LawGeniusCardsSection.tsx +0 -69
- package/dist/src/components/sections/LawGeniusCardsSection/LawGeniusCardsSectionProps.types.d.ts +0 -15
- package/dist/src/components/sections/LawGeniusCardsSection/LawGeniusCardsSectionProps.types.js +0 -1
- package/dist/src/components/sections/LawGeniusCardsSection/LawGeniusCardsSectionProps.types.ts +0 -16
- package/dist/src/components/sections/LawGeniusCardsSection/index.d.ts +0 -2
- package/dist/src/components/sections/LawGeniusCardsSection/index.js +0 -1
- package/dist/src/components/sections/LawGeniusCardsSection/index.ts +0 -2
- package/dist/src/components/sections/TryNowSection/TryNowSection.d.ts +0 -3
- package/dist/src/components/sections/TryNowSection/TryNowSection.js +0 -6
- package/dist/src/components/sections/TryNowSection/TryNowSection.styled.d.ts +0 -1
- package/dist/src/components/sections/TryNowSection/TryNowSection.styled.js +0 -186
- package/dist/src/components/sections/TryNowSection/TryNowSection.styled.ts +0 -187
- package/dist/src/components/sections/TryNowSection/TryNowSection.tsx +0 -28
- package/dist/src/components/sections/TryNowSection/TryNowSectionProps.d.ts +0 -8
- package/dist/src/components/sections/TryNowSection/TryNowSectionProps.js +0 -1
- package/dist/src/components/sections/TryNowSection/TryNowSectionProps.ts +0 -9
- package/dist/src/components/sections/TryNowSection/index.d.ts +0 -2
- package/dist/src/components/sections/TryNowSection/index.js +0 -1
- package/dist/src/components/sections/TryNowSection/index.ts +0 -2
package/dist/css/styles.css
CHANGED
|
@@ -14,6 +14,7 @@ interface InputProps {
|
|
|
14
14
|
onKeyDown: (e: React.KeyboardEvent<HTMLInputElement>) => void;
|
|
15
15
|
onKeyUp: (e: React.KeyboardEvent<HTMLInputElement>) => void;
|
|
16
16
|
country: string;
|
|
17
|
+
currrencySymbol?: string;
|
|
17
18
|
}
|
|
18
19
|
export declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
|
|
19
20
|
export {};
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import React, { useState } from 'react';
|
|
3
|
-
import currencyEuro from '../../../../images/svg/currencyDE.svg';
|
|
4
|
-
import currencyOthers from '../../../../images/svg/currencyUS.svg';
|
|
5
3
|
import eyeCloseIcon from '../../../../images/svg/eye-close.svg';
|
|
6
4
|
import eyeIcon from '../../../../images/svg/eye-24-px.svg';
|
|
7
5
|
import percent from '../../../../images/svg/percent.svg';
|
|
8
|
-
export const Input = React.forwardRef(({ value, name, placeholder, className, onChange, onClick, onBlur, onKeyDown, onKeyUp, disabled, type = 'text', maxLength, country, prefix }, ref) => {
|
|
6
|
+
export const Input = React.forwardRef(({ value, name, placeholder, className, onChange, onClick, onBlur, onKeyDown, onKeyUp, disabled, type = 'text', maxLength, country, prefix, currrencySymbol }, ref) => {
|
|
9
7
|
const [hidden, setHidden] = useState(true);
|
|
10
8
|
const showPassword = () => {
|
|
11
9
|
if (value !== null)
|
|
@@ -25,12 +23,13 @@ export const Input = React.forwardRef(({ value, name, placeholder, className, on
|
|
|
25
23
|
else if (isPercent) {
|
|
26
24
|
finalClassName += ' has-percent-suffix';
|
|
27
25
|
}
|
|
28
|
-
return (_jsxs(_Fragment, { children: [isCurrency && !!prefix && otherCurrency && (_jsx("div", { className: 'input-icon-currency-prefix', children: _jsx("
|
|
26
|
+
return (_jsxs(_Fragment, { children: [isCurrency && !!prefix && otherCurrency && currrencySymbol && (_jsx("div", { className: 'input-icon-currency-prefix', children: _jsx("span", { children: currrencySymbol }) })), _jsx("input", { type: !hidden && type === 'password' ? 'text' : type, name: name, id: name, className: finalClassName, maxLength: maxLength, placeholder: placeholder, onChange: onChange, onClick: onClick, onKeyDown: onKeyDown, onKeyUp: onKeyUp, onBlur: onBlur, value: value, "data-qa": name, disabled: disabled, ref: ref }), type === 'password' && (_jsx("button", { type: 'button', className: 'input-icon-password-button', onClick: showPassword, onKeyDown: (e) => {
|
|
29
27
|
if (e.key === 'Enter')
|
|
30
28
|
showPassword();
|
|
31
29
|
}, children: _jsx("img", { src: hidden ? eyeIcon : eyeCloseIcon, alt: '' }) })), isCurrency
|
|
32
30
|
? !!prefix &&
|
|
33
|
-
euro &&
|
|
31
|
+
euro &&
|
|
32
|
+
currrencySymbol && (_jsx("div", { className: 'input-icon-currency-suffix', children: _jsx("span", { children: currrencySymbol }) }))
|
|
34
33
|
: isPercent && (_jsx("div", { className: 'input-icon-percent-suffix', children: _jsx("img", { src: percent, alt: 'percent' }) }))] }));
|
|
35
34
|
});
|
|
36
35
|
Input.displayName = 'Input';
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import React, { useState } from 'react'
|
|
2
2
|
|
|
3
|
-
import currencyEuro from '../../../../images/svg/currencyDE.svg'
|
|
4
|
-
import currencyOthers from '../../../../images/svg/currencyUS.svg'
|
|
5
3
|
import eyeCloseIcon from '../../../../images/svg/eye-close.svg'
|
|
6
4
|
import eyeIcon from '../../../../images/svg/eye-24-px.svg'
|
|
7
5
|
import percent from '../../../../images/svg/percent.svg'
|
|
@@ -21,6 +19,7 @@ interface InputProps {
|
|
|
21
19
|
onKeyDown: (e: React.KeyboardEvent<HTMLInputElement>) => void
|
|
22
20
|
onKeyUp: (e: React.KeyboardEvent<HTMLInputElement>) => void
|
|
23
21
|
country: string
|
|
22
|
+
currrencySymbol?: string
|
|
24
23
|
}
|
|
25
24
|
|
|
26
25
|
export const Input = React.forwardRef<HTMLInputElement, InputProps>(
|
|
@@ -39,7 +38,8 @@ export const Input = React.forwardRef<HTMLInputElement, InputProps>(
|
|
|
39
38
|
type = 'text',
|
|
40
39
|
maxLength,
|
|
41
40
|
country,
|
|
42
|
-
prefix
|
|
41
|
+
prefix,
|
|
42
|
+
currrencySymbol
|
|
43
43
|
}: InputProps,
|
|
44
44
|
ref
|
|
45
45
|
) => {
|
|
@@ -66,9 +66,9 @@ export const Input = React.forwardRef<HTMLInputElement, InputProps>(
|
|
|
66
66
|
|
|
67
67
|
return (
|
|
68
68
|
<>
|
|
69
|
-
{isCurrency && !!prefix && otherCurrency && (
|
|
69
|
+
{isCurrency && !!prefix && otherCurrency && currrencySymbol && (
|
|
70
70
|
<div className='input-icon-currency-prefix'>
|
|
71
|
-
<
|
|
71
|
+
<span>{currrencySymbol}</span>
|
|
72
72
|
</div>
|
|
73
73
|
)}
|
|
74
74
|
<input
|
|
@@ -102,9 +102,10 @@ export const Input = React.forwardRef<HTMLInputElement, InputProps>(
|
|
|
102
102
|
)}
|
|
103
103
|
{isCurrency
|
|
104
104
|
? !!prefix &&
|
|
105
|
-
euro &&
|
|
105
|
+
euro &&
|
|
106
|
+
currrencySymbol && (
|
|
106
107
|
<div className='input-icon-currency-suffix'>
|
|
107
|
-
<
|
|
108
|
+
<span>{currrencySymbol}</span>
|
|
108
109
|
</div>
|
|
109
110
|
)
|
|
110
111
|
: isPercent && (
|
|
@@ -6,7 +6,7 @@ import { Input } from './Input';
|
|
|
6
6
|
import { TextInputLabel } from './TextInputLabel';
|
|
7
7
|
import { TextInputMessage } from './TextInputMessage';
|
|
8
8
|
import { TextInputTooltip } from './TextInputTooltip';
|
|
9
|
-
const TextInput = React.forwardRef(({ label, value, validate = true, isValidGroup = true, format = undefined, name, placeholder, onChange, onClick, onBlur, onKeyDown, onKeyUp, prefix = '', disabled, type = 'text', maxLength, errorMessage = '', notes, dialogMenuTip, tooltip = '', givenClass = '', children, country }, ref) => {
|
|
9
|
+
const TextInput = React.forwardRef(({ label, value, validate = true, isValidGroup = true, format = undefined, name, placeholder, onChange, onClick, onBlur, onKeyDown, onKeyUp, prefix = '', disabled, type = 'text', maxLength, errorMessage = '', notes, dialogMenuTip, tooltip = '', givenClass = '', children, country, currrencySymbol }, ref) => {
|
|
10
10
|
const classnames = classNames('e-text', {
|
|
11
11
|
[givenClass]: givenClass,
|
|
12
12
|
'e-text--is-invalid': !validate,
|
|
@@ -26,7 +26,7 @@ const TextInput = React.forwardRef(({ label, value, validate = true, isValidGrou
|
|
|
26
26
|
if (Boolean(format) && type !== 'number' && type !== 'tel') {
|
|
27
27
|
return (_jsx(NumericFormat, { name: name, id: name, placeholder: placeholder, className: 'e-text-input', onChange: onChange, onClick: onClick, value: value, "data-qa": name, disabled: disabled, maxLength: maxLength, onBlur: onBlur }));
|
|
28
28
|
}
|
|
29
|
-
return (_jsx(Input, { name: name ?? '', type: type, prefix: prefix, 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, country: country }));
|
|
29
|
+
return (_jsx(Input, { name: name ?? '', type: type, prefix: prefix, 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, country: country, currrencySymbol: currrencySymbol }));
|
|
30
30
|
};
|
|
31
31
|
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 })] }));
|
|
32
32
|
});
|
|
@@ -33,7 +33,8 @@ const TextInput = React.forwardRef<HTMLInputElement, TextInputProps>(
|
|
|
33
33
|
tooltip = '',
|
|
34
34
|
givenClass = '',
|
|
35
35
|
children,
|
|
36
|
-
country
|
|
36
|
+
country,
|
|
37
|
+
currrencySymbol
|
|
37
38
|
}: TextInputProps,
|
|
38
39
|
ref
|
|
39
40
|
) => {
|
|
@@ -93,6 +94,7 @@ const TextInput = React.forwardRef<HTMLInputElement, TextInputProps>(
|
|
|
93
94
|
onKeyDown={handleKeyDown}
|
|
94
95
|
onKeyUp={handleKeyUp}
|
|
95
96
|
country={country}
|
|
97
|
+
currrencySymbol={currrencySymbol}
|
|
96
98
|
/>
|
|
97
99
|
)
|
|
98
100
|
}
|
package/dist/src/components/organisms/TryOurFreeLegalBlogsContent/TryOurFreeLegalBlogsContent.js
CHANGED
|
@@ -7,9 +7,7 @@ const TryOurFreeLegalBlogsContent = ({ title, image, children, type = TryOurFree
|
|
|
7
7
|
const classTry = classNames({
|
|
8
8
|
'try-our-free-legal-blogs-section-content': true,
|
|
9
9
|
'try-our-free-legal-blogs-section-content--our-mission': TryOurFreeLegalBlogsContentType.ourMission === type,
|
|
10
|
-
'try-our-free-legal-blogs-section-content--our-mission-first-image': TryOurFreeLegalBlogsContentType.ourMissionFirstImage === type
|
|
11
|
-
'try-our-free-legal-blogs-section-content--how-it-works': TryOurFreeLegalBlogsContentType.howItWorks === type,
|
|
12
|
-
'try-our-free-legal-blogs-section-content--how-it-works-first-image': TryOurFreeLegalBlogsContentType.howItWorksFirstImage === type
|
|
10
|
+
'try-our-free-legal-blogs-section-content--our-mission-first-image': TryOurFreeLegalBlogsContentType.ourMissionFirstImage === type
|
|
13
11
|
});
|
|
14
12
|
return (_jsxs(TryOurFreeLegalBlogsContentStyled, { className: classTry, children: [_jsxs("div", { className: 'try-our-free-legal-blogs-section__texts', children: [_jsx("h2", { className: 'try-our-free-legal-blogs-section__texts__title', children: title }), _jsx(RichTextInner, { customClass: 'try-our-free-legal-blogs-section__texts__body', children: children })] }), _jsx("div", { className: 'try-our-free-legal-blogs-section__image', children: image })] }));
|
|
15
13
|
};
|
|
@@ -7,8 +7,7 @@ export const TryOurFreeLegalBlogsContentStyled = styled.div `
|
|
|
7
7
|
flex-direction: row;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
-
&.try-our-free-legal-blogs-section-content--our-mission
|
|
11
|
-
&.try-our-free-legal-blogs-section-content--how-it-works {
|
|
10
|
+
&.try-our-free-legal-blogs-section-content--our-mission {
|
|
12
11
|
margin-top: 1.5rem;
|
|
13
12
|
margin-bottom: 1.5rem;
|
|
14
13
|
align-items: center;
|
|
@@ -31,8 +30,7 @@ export const TryOurFreeLegalBlogsContentStyled = styled.div `
|
|
|
31
30
|
}
|
|
32
31
|
}
|
|
33
32
|
|
|
34
|
-
&.try-our-free-legal-blogs-section-content--our-mission-first-image
|
|
35
|
-
&.try-our-free-legal-blogs-section-content--how-it-works-first-image {
|
|
33
|
+
&.try-our-free-legal-blogs-section-content--our-mission-first-image {
|
|
36
34
|
margin-top: 1.5rem;
|
|
37
35
|
margin-bottom: 1.5rem;
|
|
38
36
|
align-items: center;
|
|
@@ -8,8 +8,7 @@ export const TryOurFreeLegalBlogsContentStyled = styled.div`
|
|
|
8
8
|
flex-direction: row;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
-
&.try-our-free-legal-blogs-section-content--our-mission
|
|
12
|
-
&.try-our-free-legal-blogs-section-content--how-it-works {
|
|
11
|
+
&.try-our-free-legal-blogs-section-content--our-mission {
|
|
13
12
|
margin-top: 1.5rem;
|
|
14
13
|
margin-bottom: 1.5rem;
|
|
15
14
|
align-items: center;
|
|
@@ -32,8 +31,7 @@ export const TryOurFreeLegalBlogsContentStyled = styled.div`
|
|
|
32
31
|
}
|
|
33
32
|
}
|
|
34
33
|
|
|
35
|
-
&.try-our-free-legal-blogs-section-content--our-mission-first-image
|
|
36
|
-
&.try-our-free-legal-blogs-section-content--how-it-works-first-image {
|
|
34
|
+
&.try-our-free-legal-blogs-section-content--our-mission-first-image {
|
|
37
35
|
margin-top: 1.5rem;
|
|
38
36
|
margin-bottom: 1.5rem;
|
|
39
37
|
align-items: center;
|
package/dist/src/components/organisms/TryOurFreeLegalBlogsContent/TryOurFreeLegalBlogsContent.tsx
CHANGED
|
@@ -18,10 +18,7 @@ const TryOurFreeLegalBlogsContent: FC<TryOurFreeLegalBlogsContentProps> = ({
|
|
|
18
18
|
'try-our-free-legal-blogs-section-content': true,
|
|
19
19
|
'try-our-free-legal-blogs-section-content--our-mission': TryOurFreeLegalBlogsContentType.ourMission === type,
|
|
20
20
|
'try-our-free-legal-blogs-section-content--our-mission-first-image':
|
|
21
|
-
TryOurFreeLegalBlogsContentType.ourMissionFirstImage === type
|
|
22
|
-
'try-our-free-legal-blogs-section-content--how-it-works': TryOurFreeLegalBlogsContentType.howItWorks === type,
|
|
23
|
-
'try-our-free-legal-blogs-section-content--how-it-works-first-image':
|
|
24
|
-
TryOurFreeLegalBlogsContentType.howItWorksFirstImage === type
|
|
21
|
+
TryOurFreeLegalBlogsContentType.ourMissionFirstImage === type
|
|
25
22
|
})
|
|
26
23
|
return (
|
|
27
24
|
<TryOurFreeLegalBlogsContentStyled className={classTry}>
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
export declare enum TryOurFreeLegalBlogsContentType {
|
|
2
2
|
default = "Default",
|
|
3
3
|
ourMission = "Our Mission",
|
|
4
|
-
ourMissionFirstImage = "Our Mission First Image"
|
|
5
|
-
howItWorks = "How It Works",
|
|
6
|
-
howItWorksFirstImage = "How It Works First Image"
|
|
4
|
+
ourMissionFirstImage = "Our Mission First Image"
|
|
7
5
|
}
|
|
8
6
|
export interface TryOurFreeLegalBlogsContentProps {
|
|
9
7
|
title: string;
|
|
@@ -3,6 +3,4 @@ export var TryOurFreeLegalBlogsContentType;
|
|
|
3
3
|
TryOurFreeLegalBlogsContentType["default"] = "Default";
|
|
4
4
|
TryOurFreeLegalBlogsContentType["ourMission"] = "Our Mission";
|
|
5
5
|
TryOurFreeLegalBlogsContentType["ourMissionFirstImage"] = "Our Mission First Image";
|
|
6
|
-
TryOurFreeLegalBlogsContentType["howItWorks"] = "How It Works";
|
|
7
|
-
TryOurFreeLegalBlogsContentType["howItWorksFirstImage"] = "How It Works First Image";
|
|
8
6
|
})(TryOurFreeLegalBlogsContentType || (TryOurFreeLegalBlogsContentType = {}));
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
export enum TryOurFreeLegalBlogsContentType {
|
|
2
2
|
default = 'Default',
|
|
3
3
|
ourMission = 'Our Mission',
|
|
4
|
-
ourMissionFirstImage = 'Our Mission First Image'
|
|
5
|
-
howItWorks = 'How It Works',
|
|
6
|
-
howItWorksFirstImage = 'How It Works First Image'
|
|
4
|
+
ourMissionFirstImage = 'Our Mission First Image'
|
|
7
5
|
}
|
|
8
6
|
|
|
9
7
|
export interface TryOurFreeLegalBlogsContentProps {
|
package/dist/src/components/sections/TryOurFreeLegalBlogsSection/TryOurFreeLegalBlogsSection.js
CHANGED
|
@@ -1,15 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { TryOurFreeLegalBlogsContent } from '../../organisms/TryOurFreeLegalBlogsContent';
|
|
3
3
|
import { TryOurFreeLegalBlogsSectionStyled } from './TryOurFreeLegalBlogsSection.styled';
|
|
4
|
-
import classNames from 'classnames';
|
|
5
4
|
const TryOurFreeLegalBlogsSection = ({ contentTryOurFreeLegalBlogs }) => {
|
|
6
|
-
|
|
7
|
-
default: contentTryOurFreeLegalBlogs.type === 'Default',
|
|
8
|
-
'our-mission': contentTryOurFreeLegalBlogs.type === 'Our Mission',
|
|
9
|
-
'our-mission-first-image': contentTryOurFreeLegalBlogs.type === 'Our Mission First Image',
|
|
10
|
-
'how-it-works': contentTryOurFreeLegalBlogs.type === 'How It Works',
|
|
11
|
-
'how-it-works-first-image': contentTryOurFreeLegalBlogs.type === 'How It Works First Image'
|
|
12
|
-
});
|
|
13
|
-
return (_jsx(TryOurFreeLegalBlogsSectionStyled, { className: `try-our-free-legal-blogs-section wrapper wrapper--responsive ${classTry}`, children: _jsx(TryOurFreeLegalBlogsContent, { title: contentTryOurFreeLegalBlogs.title, image: contentTryOurFreeLegalBlogs.image, type: contentTryOurFreeLegalBlogs.type, children: contentTryOurFreeLegalBlogs.children }) }));
|
|
5
|
+
return (_jsx(TryOurFreeLegalBlogsSectionStyled, { className: 'try-our-free-legal-blogs-section wrapper wrapper--responsive', children: _jsx(TryOurFreeLegalBlogsContent, { title: contentTryOurFreeLegalBlogs.title, image: contentTryOurFreeLegalBlogs.image, type: contentTryOurFreeLegalBlogs.type, children: contentTryOurFreeLegalBlogs.children }) }));
|
|
14
6
|
};
|
|
15
7
|
export default TryOurFreeLegalBlogsSection;
|
package/dist/src/components/sections/TryOurFreeLegalBlogsSection/TryOurFreeLegalBlogsSection.tsx
CHANGED
|
@@ -3,20 +3,10 @@ import React, { type FC } from 'react'
|
|
|
3
3
|
import { TryOurFreeLegalBlogsContent } from '../../organisms/TryOurFreeLegalBlogsContent'
|
|
4
4
|
import { type TryOurFreeLegalBlogsSectionProps } from './TryOurFreeLegalBlogsSectionProps.types'
|
|
5
5
|
import { TryOurFreeLegalBlogsSectionStyled } from './TryOurFreeLegalBlogsSection.styled'
|
|
6
|
-
import classNames from 'classnames'
|
|
7
6
|
|
|
8
7
|
const TryOurFreeLegalBlogsSection: FC<TryOurFreeLegalBlogsSectionProps> = ({ contentTryOurFreeLegalBlogs }) => {
|
|
9
|
-
const classTry = classNames({
|
|
10
|
-
default: contentTryOurFreeLegalBlogs.type === 'Default',
|
|
11
|
-
'our-mission': contentTryOurFreeLegalBlogs.type === 'Our Mission',
|
|
12
|
-
'our-mission-first-image': contentTryOurFreeLegalBlogs.type === 'Our Mission First Image',
|
|
13
|
-
'how-it-works': contentTryOurFreeLegalBlogs.type === 'How It Works',
|
|
14
|
-
'how-it-works-first-image': contentTryOurFreeLegalBlogs.type === 'How It Works First Image'
|
|
15
|
-
})
|
|
16
8
|
return (
|
|
17
|
-
<TryOurFreeLegalBlogsSectionStyled
|
|
18
|
-
className={`try-our-free-legal-blogs-section wrapper wrapper--responsive ${classTry}`}
|
|
19
|
-
>
|
|
9
|
+
<TryOurFreeLegalBlogsSectionStyled className='try-our-free-legal-blogs-section wrapper wrapper--responsive'>
|
|
20
10
|
<TryOurFreeLegalBlogsContent
|
|
21
11
|
title={contentTryOurFreeLegalBlogs.title}
|
|
22
12
|
image={contentTryOurFreeLegalBlogs.image}
|
|
@@ -14,9 +14,7 @@ export * from './GuidelinesSection';
|
|
|
14
14
|
export * from './HowGetYourFormsSection';
|
|
15
15
|
export * from './JumbotronRatafiaSection';
|
|
16
16
|
export * from './JumbotronSimplifiedSection';
|
|
17
|
-
export * from './LawGeniusCardsSection';
|
|
18
17
|
export * from './LegalSection';
|
|
19
|
-
export * from './LawGeniusCardsSection';
|
|
20
18
|
export * from './MidBannerRatafiaSection';
|
|
21
19
|
export * from './MoreDocsSection';
|
|
22
20
|
export * from './PeopleSayAboutUsSection';
|
|
@@ -24,7 +22,6 @@ export * from './StepsRatafiaSection';
|
|
|
24
22
|
export * from './TryItRatafiaSection';
|
|
25
23
|
export * from './TryOurFreeLegalBlogsSection';
|
|
26
24
|
export * from './TryUsSection';
|
|
27
|
-
export * from './TryNowSection';
|
|
28
25
|
export * from './UnsubscribeSection';
|
|
29
26
|
export * from './WhyLawDistrictSection';
|
|
30
27
|
export * from './LearnMoreSection';
|
|
@@ -14,9 +14,7 @@ export * from './GuidelinesSection';
|
|
|
14
14
|
export * from './HowGetYourFormsSection';
|
|
15
15
|
export * from './JumbotronRatafiaSection';
|
|
16
16
|
export * from './JumbotronSimplifiedSection';
|
|
17
|
-
export * from './LawGeniusCardsSection';
|
|
18
17
|
export * from './LegalSection';
|
|
19
|
-
export * from './LawGeniusCardsSection';
|
|
20
18
|
export * from './MidBannerRatafiaSection';
|
|
21
19
|
export * from './MoreDocsSection';
|
|
22
20
|
export * from './PeopleSayAboutUsSection';
|
|
@@ -24,7 +22,6 @@ export * from './StepsRatafiaSection';
|
|
|
24
22
|
export * from './TryItRatafiaSection';
|
|
25
23
|
export * from './TryOurFreeLegalBlogsSection';
|
|
26
24
|
export * from './TryUsSection';
|
|
27
|
-
export * from './TryNowSection';
|
|
28
25
|
export * from './UnsubscribeSection';
|
|
29
26
|
export * from './WhyLawDistrictSection';
|
|
30
27
|
export * from './LearnMoreSection';
|
|
@@ -14,9 +14,7 @@ export * from './GuidelinesSection'
|
|
|
14
14
|
export * from './HowGetYourFormsSection'
|
|
15
15
|
export * from './JumbotronRatafiaSection'
|
|
16
16
|
export * from './JumbotronSimplifiedSection'
|
|
17
|
-
export * from './LawGeniusCardsSection'
|
|
18
17
|
export * from './LegalSection'
|
|
19
|
-
export * from './LawGeniusCardsSection'
|
|
20
18
|
export * from './MidBannerRatafiaSection'
|
|
21
19
|
export * from './MoreDocsSection'
|
|
22
20
|
export * from './PeopleSayAboutUsSection'
|
|
@@ -24,7 +22,6 @@ export * from './StepsRatafiaSection'
|
|
|
24
22
|
export * from './TryItRatafiaSection'
|
|
25
23
|
export * from './TryOurFreeLegalBlogsSection'
|
|
26
24
|
export * from './TryUsSection'
|
|
27
|
-
export * from './TryNowSection'
|
|
28
25
|
export * from './UnsubscribeSection'
|
|
29
26
|
export * from './WhyLawDistrictSection'
|
|
30
27
|
export * from './LearnMoreSection'
|