@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.
@@ -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
- const HowGetYourFormsSection = ({ title = '', steps = [], backgroundImage }) => {
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', children: [backgroundImage, _jsx("p", { className: 'works-title serif --super-large', children: title }), _jsx(ListStepsGetForm, { steps: steps })] }));
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;
@@ -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
- position: relative;
5
+ @media ${device.laptop} {
6
+ background-repeat: no-repeat;
7
+ background-position: top right;
8
+ background-size: 21rem;
9
+ }
6
10
 
7
- .how-it-works__background {
8
- position: absolute !important;
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 {
@@ -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
- position: relative;
6
+ @media ${device.laptop} {
7
+ background-repeat: no-repeat;
8
+ background-position: top right;
9
+ background-size: 21rem;
10
+ }
7
11
 
8
- .how-it-works__background {
9
- position: absolute !important;
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> = ({ title = '', steps = [], backgroundImage }) => {
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 className='how-it-works-wrapper'>
11
- {backgroundImage}
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>
@@ -2,5 +2,5 @@ import { type StepGetFormProps } from '../../molecules';
2
2
  export interface HowGetYourFormsSectionProps {
3
3
  title: string;
4
4
  steps: StepGetFormProps[];
5
- backgroundImage?: React.JSX.Element | null;
5
+ hasBackgroundImage: boolean;
6
6
  }
@@ -3,5 +3,5 @@ import { type StepGetFormProps } from '../../molecules'
3
3
  export interface HowGetYourFormsSectionProps {
4
4
  title: string
5
5
  steps: StepGetFormProps[]
6
- backgroundImage?: React.JSX.Element | null
6
+ hasBackgroundImage: boolean
7
7
  }
@@ -1,5 +1,3 @@
1
- /* eslint-disable @typescript-eslint/strict-boolean-expressions */
2
-
3
1
  import React, { type FC } from 'react'
4
2
 
5
3
  import { type PeopleSayAboutUsSectionProps } from './PeopleSayAboutUsSectionProps.types'
@@ -2,5 +2,5 @@ import { type TrustPilotProps } from '../../atoms/TrustPilot';
2
2
  export interface PeopleSayAboutUsSectionProps {
3
3
  title?: string;
4
4
  testimonialsSectionContent: React.ReactNode;
5
- contentTrustPilot: TrustPilotProps;
5
+ contentTrustPilot?: TrustPilotProps;
6
6
  }
@@ -3,5 +3,5 @@ import { type TrustPilotProps } from '../../atoms/TrustPilot'
3
3
  export interface PeopleSayAboutUsSectionProps {
4
4
  title?: string
5
5
  testimonialsSectionContent: React.ReactNode
6
- contentTrustPilot: TrustPilotProps
6
+ contentTrustPilot?: TrustPilotProps
7
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@npm_leadtech/legal-lib-components",
3
- "version": "7.36.1",
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",