@npm_leadtech/legal-lib-components 5.64.0 → 5.64.2

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,7 +1,14 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { TryOurFreeLegalBlogsContentType } from './TryOurFreeLegalBlogsContentProps.types';
2
3
  import { RichTextInner } from '../../atoms';
3
4
  import { TryOurFreeLegalBlogsContentStyled } from './TryOurFreeLegalBlogsContent.styled';
4
- const TryOurFreeLegalBlogsContent = ({ title, image, children }) => {
5
- return (_jsxs(TryOurFreeLegalBlogsContentStyled, { 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 })] }));
5
+ import classNames from 'classnames';
6
+ const TryOurFreeLegalBlogsContent = ({ title, image, children, type = TryOurFreeLegalBlogsContentType.default }) => {
7
+ const classTry = classNames({
8
+ 'try-our-free-legal-blogs-section-content': true,
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
+ });
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 })] }));
6
13
  };
7
14
  export default TryOurFreeLegalBlogsContent;
@@ -6,6 +6,47 @@ export const TryOurFreeLegalBlogsContentStyled = styled.div `
6
6
  @media ${device['landscape-tablets']} {
7
7
  flex-direction: row;
8
8
  }
9
+
10
+ &.try-our-free-legal-blogs-section-content--our-mission {
11
+ align-items: center;
12
+ .try-our-free-legal-blogs-section__texts {
13
+ margin-bottom: 2rem;
14
+ @media ${device['landscape-tablets']} {
15
+ margin-bottom: 1rem;
16
+ }
17
+
18
+ &__title {
19
+ font-family: var(--font-sans);
20
+ font-size: 28px;
21
+ font-weight: 700;
22
+ text-align: left;
23
+ }
24
+ }
25
+ }
26
+
27
+ &.try-our-free-legal-blogs-section-content--our-mission-first-image {
28
+ align-items: center;
29
+ @media ${device['landscape-tablets']} {
30
+ flex-direction: row-reverse;
31
+ }
32
+
33
+ .try-our-free-legal-blogs-section__texts {
34
+ margin-bottom: 2rem;
35
+ @media ${device['landscape-tablets']} {
36
+ margin-bottom: 1rem;
37
+ margin-right: 0rem;
38
+ margin-left: 3rem;
39
+ }
40
+
41
+ &__title {
42
+ font-family: var(--font-sans);
43
+ font-size: 28px;
44
+ font-weight: 700;
45
+ text-align: left;
46
+ }
47
+ }
48
+ }
49
+
9
50
  .try-our-free-legal-blogs-section__texts {
10
51
  flex-basis: 50%;
11
52
  display: flex;
@@ -7,6 +7,47 @@ export const TryOurFreeLegalBlogsContentStyled = styled.div`
7
7
  @media ${device['landscape-tablets']} {
8
8
  flex-direction: row;
9
9
  }
10
+
11
+ &.try-our-free-legal-blogs-section-content--our-mission {
12
+ align-items: center;
13
+ .try-our-free-legal-blogs-section__texts {
14
+ margin-bottom: 2rem;
15
+ @media ${device['landscape-tablets']} {
16
+ margin-bottom: 1rem;
17
+ }
18
+
19
+ &__title {
20
+ font-family: var(--font-sans);
21
+ font-size: 28px;
22
+ font-weight: 700;
23
+ text-align: left;
24
+ }
25
+ }
26
+ }
27
+
28
+ &.try-our-free-legal-blogs-section-content--our-mission-first-image {
29
+ align-items: center;
30
+ @media ${device['landscape-tablets']} {
31
+ flex-direction: row-reverse;
32
+ }
33
+
34
+ .try-our-free-legal-blogs-section__texts {
35
+ margin-bottom: 2rem;
36
+ @media ${device['landscape-tablets']} {
37
+ margin-bottom: 1rem;
38
+ margin-right: 0rem;
39
+ margin-left: 3rem;
40
+ }
41
+
42
+ &__title {
43
+ font-family: var(--font-sans);
44
+ font-size: 28px;
45
+ font-weight: 700;
46
+ text-align: left;
47
+ }
48
+ }
49
+ }
50
+
10
51
  .try-our-free-legal-blogs-section__texts {
11
52
  flex-basis: 50%;
12
53
  display: flex;
@@ -1,12 +1,27 @@
1
1
  import React, { type FC } from 'react'
2
2
 
3
+ import {
4
+ type TryOurFreeLegalBlogsContentProps,
5
+ TryOurFreeLegalBlogsContentType
6
+ } from './TryOurFreeLegalBlogsContentProps.types'
3
7
  import { RichTextInner } from '../../atoms'
4
- import { type TryOurFreeLegalBlogsContentProps } from './TryOurFreeLegalBlogsContentProps.types'
5
8
  import { TryOurFreeLegalBlogsContentStyled } from './TryOurFreeLegalBlogsContent.styled'
9
+ import classNames from 'classnames'
6
10
 
7
- const TryOurFreeLegalBlogsContent: FC<TryOurFreeLegalBlogsContentProps> = ({ title, image, children }) => {
11
+ const TryOurFreeLegalBlogsContent: FC<TryOurFreeLegalBlogsContentProps> = ({
12
+ title,
13
+ image,
14
+ children,
15
+ type = TryOurFreeLegalBlogsContentType.default
16
+ }) => {
17
+ const classTry = classNames({
18
+ 'try-our-free-legal-blogs-section-content': true,
19
+ 'try-our-free-legal-blogs-section-content--our-mission': TryOurFreeLegalBlogsContentType.ourMission === type,
20
+ 'try-our-free-legal-blogs-section-content--our-mission-first-image':
21
+ TryOurFreeLegalBlogsContentType.ourMissionFirstImage === type
22
+ })
8
23
  return (
9
- <TryOurFreeLegalBlogsContentStyled>
24
+ <TryOurFreeLegalBlogsContentStyled className={classTry}>
10
25
  <div className='try-our-free-legal-blogs-section__texts'>
11
26
  <h2 className='try-our-free-legal-blogs-section__texts__title'>{title}</h2>
12
27
  <RichTextInner customClass='try-our-free-legal-blogs-section__texts__body'>{children}</RichTextInner>
@@ -1,5 +1,11 @@
1
+ export declare enum TryOurFreeLegalBlogsContentType {
2
+ default = "Default",
3
+ ourMission = "Our Mission",
4
+ ourMissionFirstImage = "Our Mission First Image"
5
+ }
1
6
  export interface TryOurFreeLegalBlogsContentProps {
2
7
  title: string;
3
8
  image: React.ReactNode;
4
9
  children: React.ReactNode;
10
+ type?: TryOurFreeLegalBlogsContentType;
5
11
  }
@@ -1 +1,6 @@
1
- export {};
1
+ export var TryOurFreeLegalBlogsContentType;
2
+ (function (TryOurFreeLegalBlogsContentType) {
3
+ TryOurFreeLegalBlogsContentType["default"] = "Default";
4
+ TryOurFreeLegalBlogsContentType["ourMission"] = "Our Mission";
5
+ TryOurFreeLegalBlogsContentType["ourMissionFirstImage"] = "Our Mission First Image";
6
+ })(TryOurFreeLegalBlogsContentType || (TryOurFreeLegalBlogsContentType = {}));
@@ -1,5 +1,12 @@
1
+ export enum TryOurFreeLegalBlogsContentType {
2
+ default = 'Default',
3
+ ourMission = 'Our Mission',
4
+ ourMissionFirstImage = 'Our Mission First Image'
5
+ }
6
+
1
7
  export interface TryOurFreeLegalBlogsContentProps {
2
8
  title: string
3
9
  image: React.ReactNode
4
10
  children: React.ReactNode
11
+ type?: TryOurFreeLegalBlogsContentType
5
12
  }
@@ -2,6 +2,6 @@ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { TryOurFreeLegalBlogsContent } from '../../organisms/TryOurFreeLegalBlogsContent';
3
3
  import { TryOurFreeLegalBlogsSectionStyled } from './TryOurFreeLegalBlogsSection.styled';
4
4
  const TryOurFreeLegalBlogsSection = ({ contentTryOurFreeLegalBlogs }) => {
5
- return (_jsx(TryOurFreeLegalBlogsSectionStyled, { className: 'try-our-free-legal-blogs-section wrapper wrapper--responsive', children: _jsx(TryOurFreeLegalBlogsContent, { title: contentTryOurFreeLegalBlogs.title, image: contentTryOurFreeLegalBlogs.image, 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 }) }));
6
6
  };
7
7
  export default TryOurFreeLegalBlogsSection;
@@ -7,7 +7,11 @@ import { TryOurFreeLegalBlogsSectionStyled } from './TryOurFreeLegalBlogsSection
7
7
  const TryOurFreeLegalBlogsSection: FC<TryOurFreeLegalBlogsSectionProps> = ({ contentTryOurFreeLegalBlogs }) => {
8
8
  return (
9
9
  <TryOurFreeLegalBlogsSectionStyled className='try-our-free-legal-blogs-section wrapper wrapper--responsive'>
10
- <TryOurFreeLegalBlogsContent title={contentTryOurFreeLegalBlogs.title} image={contentTryOurFreeLegalBlogs.image}>
10
+ <TryOurFreeLegalBlogsContent
11
+ title={contentTryOurFreeLegalBlogs.title}
12
+ image={contentTryOurFreeLegalBlogs.image}
13
+ type={contentTryOurFreeLegalBlogs.type}
14
+ >
11
15
  {contentTryOurFreeLegalBlogs.children}
12
16
  </TryOurFreeLegalBlogsContent>
13
17
  </TryOurFreeLegalBlogsSectionStyled>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@npm_leadtech/legal-lib-components",
3
- "version": "5.64.0",
3
+ "version": "5.64.2",
4
4
  "license": "ISC",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",