@npm_leadtech/legal-lib-components 7.35.0 → 7.36.1

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,4 +1,4 @@
1
- import { ButtonProps } from 'src/components/atoms';
1
+ import { ButtonProps } from '../../atoms';
2
2
  export interface HowWeHelpProps {
3
3
  title: string;
4
4
  image: React.ReactNode;
@@ -1,4 +1,4 @@
1
- import { ButtonProps } from 'src/components/atoms'
1
+ import { ButtonProps } from '../../atoms'
2
2
 
3
3
  export interface HowWeHelpProps {
4
4
  title: string
@@ -1,10 +1,9 @@
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
- import imageFile from '../../../../images/png/graphics-grey-02.png';
5
- const HowGetYourFormsSection = ({ title = '', steps = [], hasBackgroundImage = true }) => {
4
+ const HowGetYourFormsSection = ({ title = '', steps = [], backgroundImage }) => {
6
5
  if (steps.length === 0)
7
6
  return null;
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 })] }));
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 })] }));
9
8
  };
10
9
  export default HowGetYourFormsSection;
@@ -1,15 +1,17 @@
1
- import { device, size } from '../../../globalStyles/breakpoints';
1
+ import { 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
- @media ${device.laptop} {
6
- background-repeat: no-repeat;
7
- background-position: top right;
8
- background-size: 21rem;
9
- }
5
+ position: relative;
10
6
 
11
- @media only screen and (max-width: ${size.md}) {
12
- background-image: none !important;
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
+ }
13
15
  }
14
16
 
15
17
  .works-title {
@@ -1,16 +1,18 @@
1
- import { device, size } from '../../../globalStyles/breakpoints'
1
+ import { 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
- @media ${device.laptop} {
7
- background-repeat: no-repeat;
8
- background-position: top right;
9
- background-size: 21rem;
10
- }
6
+ position: relative;
11
7
 
12
- @media only screen and (max-width: ${size.md}) {
13
- background-image: none !important;
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
+ }
14
16
  }
15
17
 
16
18
  .works-title {
@@ -3,19 +3,12 @@ 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'
7
6
 
8
- const HowGetYourFormsSection: React.FC<HowGetYourFormsSectionProps> = ({
9
- title = '',
10
- steps = [],
11
- hasBackgroundImage = true
12
- }) => {
7
+ const HowGetYourFormsSection: React.FC<HowGetYourFormsSectionProps> = ({ title = '', steps = [], backgroundImage }) => {
13
8
  if (steps.length === 0) return null
14
9
  return (
15
- <HowGetYourFormsSectionStyled
16
- className='how-it-works-wrapper'
17
- style={hasBackgroundImage ? { backgroundImage: `url(${imageFile})` } : {}}
18
- >
10
+ <HowGetYourFormsSectionStyled className='how-it-works-wrapper'>
11
+ {backgroundImage}
19
12
  <p className='works-title serif --super-large'>{title}</p>
20
13
  <ListStepsGetForm steps={steps} />
21
14
  </HowGetYourFormsSectionStyled>
@@ -2,5 +2,5 @@ import { type StepGetFormProps } from '../../molecules';
2
2
  export interface HowGetYourFormsSectionProps {
3
3
  title: string;
4
4
  steps: StepGetFormProps[];
5
- hasBackgroundImage: boolean;
5
+ backgroundImage?: React.JSX.Element | null;
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
- hasBackgroundImage: boolean
6
+ backgroundImage?: React.JSX.Element | null
7
7
  }
@@ -1,6 +1,6 @@
1
1
  import { type TrustPilotProps } from '../../atoms/TrustPilot';
2
2
  export interface PeopleSayAboutUsSectionProps {
3
3
  title?: string;
4
- testimonialsSectionContent?: string;
4
+ testimonialsSectionContent: React.ReactNode;
5
5
  contentTrustPilot: TrustPilotProps;
6
6
  }
@@ -2,6 +2,6 @@ import { type TrustPilotProps } from '../../atoms/TrustPilot'
2
2
 
3
3
  export interface PeopleSayAboutUsSectionProps {
4
4
  title?: string
5
- testimonialsSectionContent?: string
5
+ testimonialsSectionContent: React.ReactNode
6
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.35.0",
3
+ "version": "7.36.1",
4
4
  "license": "ISC",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",