@npm_leadtech/legal-lib-components 7.36.1 → 7.37.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/src/components/sections/HowGetYourFormsSection/HowGetYourFormsSection.js +3 -2
- package/dist/src/components/sections/HowGetYourFormsSection/HowGetYourFormsSection.styled.js +8 -10
- package/dist/src/components/sections/HowGetYourFormsSection/HowGetYourFormsSection.styled.ts +8 -10
- package/dist/src/components/sections/HowGetYourFormsSection/HowGetYourFormsSection.tsx +10 -3
- package/dist/src/components/sections/HowGetYourFormsSection/HowGetYourFormsSectionProps.types.d.ts +1 -1
- package/dist/src/components/sections/HowGetYourFormsSection/HowGetYourFormsSectionProps.types.ts +1 -1
- package/dist/src/components/sections/PeopleSayAboutUsSection/PeopleSayAboutUsSection.tsx +0 -2
- package/dist/src/components/sections/PeopleSayAboutUsSection/PeopleSayAboutUsSectionProps.types.d.ts +1 -1
- package/dist/src/components/sections/PeopleSayAboutUsSection/PeopleSayAboutUsSectionProps.types.ts +1 -1
- package/package.json +2 -1
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { HowGetYourFormsSectionStyled } from './HowGetYourFormsSection.styled';
|
|
3
3
|
import { ListStepsGetForm } from '../../organisms';
|
|
4
|
-
|
|
4
|
+
import imageFile from '../../../../images/png/graphics-grey-02.png';
|
|
5
|
+
const HowGetYourFormsSection = ({ title = '', steps = [], hasBackgroundImage = true }) => {
|
|
5
6
|
if (steps.length === 0)
|
|
6
7
|
return null;
|
|
7
|
-
return (_jsxs(HowGetYourFormsSectionStyled, { className: 'how-it-works-wrapper',
|
|
8
|
+
return (_jsxs(HowGetYourFormsSectionStyled, { className: 'how-it-works-wrapper', style: hasBackgroundImage ? { backgroundImage: `url(${imageFile})` } : {}, children: [_jsx("p", { className: 'works-title serif --super-large', children: title }), _jsx(ListStepsGetForm, { steps: steps })] }));
|
|
8
9
|
};
|
|
9
10
|
export default HowGetYourFormsSection;
|
package/dist/src/components/sections/HowGetYourFormsSection/HowGetYourFormsSection.styled.js
CHANGED
|
@@ -1,17 +1,15 @@
|
|
|
1
|
-
import { size } from '../../../globalStyles/breakpoints';
|
|
1
|
+
import { device, size } from '../../../globalStyles/breakpoints';
|
|
2
2
|
import styled from 'styled-components';
|
|
3
3
|
export const HowGetYourFormsSectionStyled = styled.section `
|
|
4
4
|
background-color: var(--neutral-neutral-6);
|
|
5
|
-
|
|
5
|
+
@media ${device.laptop} {
|
|
6
|
+
background-repeat: no-repeat;
|
|
7
|
+
background-position: top right;
|
|
8
|
+
background-size: 21rem;
|
|
9
|
+
}
|
|
6
10
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
right: 0;
|
|
10
|
-
width: 388px;
|
|
11
|
-
height: 444px;
|
|
12
|
-
@media only screen and (max-width: ${size.md}) {
|
|
13
|
-
display: none;
|
|
14
|
-
}
|
|
11
|
+
@media only screen and (max-width: ${size.md}) {
|
|
12
|
+
background-image: none !important;
|
|
15
13
|
}
|
|
16
14
|
|
|
17
15
|
.works-title {
|
package/dist/src/components/sections/HowGetYourFormsSection/HowGetYourFormsSection.styled.ts
CHANGED
|
@@ -1,18 +1,16 @@
|
|
|
1
|
-
import { size } from '../../../globalStyles/breakpoints'
|
|
1
|
+
import { device, size } from '../../../globalStyles/breakpoints'
|
|
2
2
|
import styled from 'styled-components'
|
|
3
3
|
|
|
4
4
|
export const HowGetYourFormsSectionStyled = styled.section`
|
|
5
5
|
background-color: var(--neutral-neutral-6);
|
|
6
|
-
|
|
6
|
+
@media ${device.laptop} {
|
|
7
|
+
background-repeat: no-repeat;
|
|
8
|
+
background-position: top right;
|
|
9
|
+
background-size: 21rem;
|
|
10
|
+
}
|
|
7
11
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
right: 0;
|
|
11
|
-
width: 388px;
|
|
12
|
-
height: 444px;
|
|
13
|
-
@media only screen and (max-width: ${size.md}) {
|
|
14
|
-
display: none;
|
|
15
|
-
}
|
|
12
|
+
@media only screen and (max-width: ${size.md}) {
|
|
13
|
+
background-image: none !important;
|
|
16
14
|
}
|
|
17
15
|
|
|
18
16
|
.works-title {
|
|
@@ -3,12 +3,19 @@ import React from 'react'
|
|
|
3
3
|
import { type HowGetYourFormsSectionProps } from './HowGetYourFormsSectionProps.types'
|
|
4
4
|
import { HowGetYourFormsSectionStyled } from './HowGetYourFormsSection.styled'
|
|
5
5
|
import { ListStepsGetForm } from '../../organisms'
|
|
6
|
+
import imageFile from '../../../../images/png/graphics-grey-02.png'
|
|
6
7
|
|
|
7
|
-
const HowGetYourFormsSection: React.FC<HowGetYourFormsSectionProps> = ({
|
|
8
|
+
const HowGetYourFormsSection: React.FC<HowGetYourFormsSectionProps> = ({
|
|
9
|
+
title = '',
|
|
10
|
+
steps = [],
|
|
11
|
+
hasBackgroundImage = true
|
|
12
|
+
}) => {
|
|
8
13
|
if (steps.length === 0) return null
|
|
9
14
|
return (
|
|
10
|
-
<HowGetYourFormsSectionStyled
|
|
11
|
-
|
|
15
|
+
<HowGetYourFormsSectionStyled
|
|
16
|
+
className='how-it-works-wrapper'
|
|
17
|
+
style={hasBackgroundImage ? { backgroundImage: `url(${imageFile})` } : {}}
|
|
18
|
+
>
|
|
12
19
|
<p className='works-title serif --super-large'>{title}</p>
|
|
13
20
|
<ListStepsGetForm steps={steps} />
|
|
14
21
|
</HowGetYourFormsSectionStyled>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@npm_leadtech/legal-lib-components",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.37.0",
|
|
4
4
|
"license": "ISC",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -251,6 +251,7 @@
|
|
|
251
251
|
"./ArticlesList": "./dist/src/components/organisms/ArticlesList/index.js",
|
|
252
252
|
"./AsSeeInContent": "./dist/src/components/organisms/AsSeeInContent/index.js",
|
|
253
253
|
"./CardFunctionality": "./dist/src/components/organisms/CardFunctionality/index.js",
|
|
254
|
+
"./ContactContent": "./dist/src/components/organisms/ContactContent/index.js",
|
|
254
255
|
"./ContactJumbotron": "./dist/src/components/organisms/ContactJumbotron/index.js",
|
|
255
256
|
"./CookiePolicyBar": "./dist/src/components/organisms/CookiePolicyBar/index.js",
|
|
256
257
|
"./ErrorContentRatafia": "./dist/src/components/organisms/ErrorContentRatafia/index.js",
|