@npm_leadtech/legal-lib-components 5.64.4 → 5.64.5

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.
Files changed (22) hide show
  1. package/dist/src/components/molecules/TextInput/Input.js +1 -1
  2. package/dist/src/components/molecules/TextInput/Input.tsx +1 -0
  3. package/dist/src/components/organisms/TryOurFreeLegalBlogsContent/TryOurFreeLegalBlogsContent.js +2 -9
  4. package/dist/src/components/organisms/TryOurFreeLegalBlogsContent/TryOurFreeLegalBlogsContent.scss +50 -0
  5. package/dist/src/components/organisms/TryOurFreeLegalBlogsContent/TryOurFreeLegalBlogsContent.styled.js +0 -45
  6. package/dist/src/components/organisms/TryOurFreeLegalBlogsContent/TryOurFreeLegalBlogsContent.styled.ts +0 -45
  7. package/dist/src/components/organisms/TryOurFreeLegalBlogsContent/TryOurFreeLegalBlogsContent.tsx +3 -18
  8. package/dist/src/components/organisms/TryOurFreeLegalBlogsContent/TryOurFreeLegalBlogsContentProps.types.d.ts +0 -6
  9. package/dist/src/components/organisms/TryOurFreeLegalBlogsContent/TryOurFreeLegalBlogsContentProps.types.js +1 -6
  10. package/dist/src/components/organisms/TryOurFreeLegalBlogsContent/TryOurFreeLegalBlogsContentProps.types.ts +0 -7
  11. package/dist/src/components/organisms/TryOurFreeLegalBlogsContent/index.d.ts +1 -1
  12. package/dist/src/components/organisms/TryOurFreeLegalBlogsContent/index.js +0 -1
  13. package/dist/src/components/organisms/TryOurFreeLegalBlogsContent/index.ts +1 -4
  14. package/dist/src/components/pages/AboutUsPage/AboutUsPage.js +2 -2
  15. package/dist/src/components/pages/AboutUsPage/AboutUsPage.tsx +4 -4
  16. package/dist/src/components/pages/AboutUsPage/AboutUsPageProps.d.ts +1 -2
  17. package/dist/src/components/pages/AboutUsPage/AboutUsPageProps.ts +1 -2
  18. package/dist/src/components/sections/TryOurFreeLegalBlogsSection/TryOurFreeLegalBlogsSection.js +1 -1
  19. package/dist/src/components/sections/TryOurFreeLegalBlogsSection/TryOurFreeLegalBlogsSection.tsx +1 -5
  20. package/package.json +1 -1
  21. package/dist/images/jpg/aboutus-img-core-values.jpg +0 -0
  22. package/dist/images/jpg/aboutus-img-our-mission.jpg +0 -0
@@ -8,7 +8,7 @@ export const Input = React.forwardRef(({ value, name, placeholder, className, on
8
8
  if (value !== null)
9
9
  setHidden(!hidden);
10
10
  };
11
- return (_jsxs(_Fragment, { children: [_jsx("input", { type: !hidden && type === 'password' ? 'text' : type, name: name, id: name, className: className, 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", { className: 'input-icon-password-button', onClick: showPassword, onKeyDown: (e) => {
11
+ return (_jsxs(_Fragment, { children: [_jsx("input", { type: !hidden && type === 'password' ? 'text' : type, name: name, id: name, className: className, 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) => {
12
12
  if (e.key === 'Enter')
13
13
  showPassword();
14
14
  }, children: _jsx("img", { src: hidden ? eyeIcon : eyeCloseIcon, alt: '' }) }))] }));
@@ -63,6 +63,7 @@ export const Input = React.forwardRef<HTMLInputElement, InputProps>(
63
63
  />
64
64
  {type === 'password' && (
65
65
  <button
66
+ type='button'
66
67
  className='input-icon-password-button'
67
68
  onClick={showPassword}
68
69
  onKeyDown={(e) => {
@@ -1,14 +1,7 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { TryOurFreeLegalBlogsContentType } from './TryOurFreeLegalBlogsContentProps.types';
3
2
  import { RichTextInner } from '../../atoms';
4
3
  import { TryOurFreeLegalBlogsContentStyled } from './TryOurFreeLegalBlogsContent.styled';
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 })] }));
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 })] }));
13
6
  };
14
7
  export default TryOurFreeLegalBlogsContent;
@@ -0,0 +1,50 @@
1
+ @import '../../../globalStyles/variables.scss';
2
+ @import '../../../globalStyles/mediaqueries.scss';
3
+
4
+ .try-our-free-legal-blogs-section {
5
+ &__texts {
6
+ flex-basis: 50%;
7
+ display: flex;
8
+ flex-direction: column;
9
+ justify-content: center;
10
+ margin-bottom: 1rem;
11
+ margin-right: 0;
12
+ color: var(--neutral-neutral-1);
13
+ font-style: normal;
14
+ font-weight: 400;
15
+ letter-spacing: -0.3px;
16
+
17
+ @include landscape-tablets {
18
+ margin-right: 3rem;
19
+ margin-bottom: 0;
20
+ }
21
+
22
+ &__title {
23
+ font-family: var(--font-serif);
24
+ font-size: 32px;
25
+ line-height: 42px;
26
+ margin-bottom: 2rem;
27
+ text-align: center;
28
+ font-weight: 400;
29
+
30
+ @include landscape-tablets {
31
+ text-align: left;
32
+ }
33
+ }
34
+
35
+ &__body {
36
+ font-family: var(--font-sans);
37
+ font-size: 16px;
38
+ line-height: 22px;
39
+
40
+ a {
41
+ color: var(--primary-main-light-1);
42
+ font-weight: 400 !important;
43
+ }
44
+ }
45
+ }
46
+
47
+ &__image {
48
+ flex-basis: 50%;
49
+ }
50
+ }
@@ -6,51 +6,6 @@ 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
- margin-top: 1.5rem;
12
- margin-bottom: 1.5rem;
13
- align-items: center;
14
- .try-our-free-legal-blogs-section__texts {
15
- margin-bottom: 2rem;
16
- @media ${device['landscape-tablets']} {
17
- margin-bottom: 1rem;
18
- }
19
-
20
- &__title {
21
- font-family: var(--font-sans);
22
- font-size: 28px;
23
- font-weight: 700;
24
- text-align: left;
25
- }
26
- }
27
- }
28
-
29
- &.try-our-free-legal-blogs-section-content--our-mission-first-image {
30
- margin-top: 1.5rem;
31
- margin-bottom: 1.5rem;
32
- align-items: center;
33
- @media ${device['landscape-tablets']} {
34
- flex-direction: row-reverse;
35
- }
36
-
37
- .try-our-free-legal-blogs-section__texts {
38
- margin-bottom: 2rem;
39
- @media ${device['landscape-tablets']} {
40
- margin-bottom: 1rem;
41
- margin-right: 0rem;
42
- margin-left: 3rem;
43
- }
44
-
45
- &__title {
46
- font-family: var(--font-sans);
47
- font-size: 28px;
48
- font-weight: 700;
49
- text-align: left;
50
- }
51
- }
52
- }
53
-
54
9
  .try-our-free-legal-blogs-section__texts {
55
10
  flex-basis: 50%;
56
11
  display: flex;
@@ -7,51 +7,6 @@ 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
- margin-top: 1.5rem;
13
- margin-bottom: 1.5rem;
14
- align-items: center;
15
- .try-our-free-legal-blogs-section__texts {
16
- margin-bottom: 2rem;
17
- @media ${device['landscape-tablets']} {
18
- margin-bottom: 1rem;
19
- }
20
-
21
- &__title {
22
- font-family: var(--font-sans);
23
- font-size: 28px;
24
- font-weight: 700;
25
- text-align: left;
26
- }
27
- }
28
- }
29
-
30
- &.try-our-free-legal-blogs-section-content--our-mission-first-image {
31
- margin-top: 1.5rem;
32
- margin-bottom: 1.5rem;
33
- align-items: center;
34
- @media ${device['landscape-tablets']} {
35
- flex-direction: row-reverse;
36
- }
37
-
38
- .try-our-free-legal-blogs-section__texts {
39
- margin-bottom: 2rem;
40
- @media ${device['landscape-tablets']} {
41
- margin-bottom: 1rem;
42
- margin-right: 0rem;
43
- margin-left: 3rem;
44
- }
45
-
46
- &__title {
47
- font-family: var(--font-sans);
48
- font-size: 28px;
49
- font-weight: 700;
50
- text-align: left;
51
- }
52
- }
53
- }
54
-
55
10
  .try-our-free-legal-blogs-section__texts {
56
11
  flex-basis: 50%;
57
12
  display: flex;
@@ -1,27 +1,12 @@
1
1
  import React, { type FC } from 'react'
2
2
 
3
- import {
4
- type TryOurFreeLegalBlogsContentProps,
5
- TryOurFreeLegalBlogsContentType
6
- } from './TryOurFreeLegalBlogsContentProps.types'
7
3
  import { RichTextInner } from '../../atoms'
4
+ import { type TryOurFreeLegalBlogsContentProps } from './TryOurFreeLegalBlogsContentProps.types'
8
5
  import { TryOurFreeLegalBlogsContentStyled } from './TryOurFreeLegalBlogsContent.styled'
9
- import classNames from 'classnames'
10
6
 
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
- })
7
+ const TryOurFreeLegalBlogsContent: FC<TryOurFreeLegalBlogsContentProps> = ({ title, image, children }) => {
23
8
  return (
24
- <TryOurFreeLegalBlogsContentStyled className={classTry}>
9
+ <TryOurFreeLegalBlogsContentStyled>
25
10
  <div className='try-our-free-legal-blogs-section__texts'>
26
11
  <h2 className='try-our-free-legal-blogs-section__texts__title'>{title}</h2>
27
12
  <RichTextInner customClass='try-our-free-legal-blogs-section__texts__body'>{children}</RichTextInner>
@@ -1,11 +1,5 @@
1
- export declare enum TryOurFreeLegalBlogsContentType {
2
- default = "Default",
3
- ourMission = "Our Mission",
4
- ourMissionFirstImage = "Our Mission First Image"
5
- }
6
1
  export interface TryOurFreeLegalBlogsContentProps {
7
2
  title: string;
8
3
  image: React.ReactNode;
9
4
  children: React.ReactNode;
10
- type?: TryOurFreeLegalBlogsContentType;
11
5
  }
@@ -1,6 +1 @@
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
+ export {};
@@ -1,12 +1,5 @@
1
- export enum TryOurFreeLegalBlogsContentType {
2
- default = 'Default',
3
- ourMission = 'Our Mission',
4
- ourMissionFirstImage = 'Our Mission First Image'
5
- }
6
-
7
1
  export interface TryOurFreeLegalBlogsContentProps {
8
2
  title: string
9
3
  image: React.ReactNode
10
4
  children: React.ReactNode
11
- type?: TryOurFreeLegalBlogsContentType
12
5
  }
@@ -1,2 +1,2 @@
1
1
  export { default as TryOurFreeLegalBlogsContent } from './TryOurFreeLegalBlogsContent';
2
- export { TryOurFreeLegalBlogsContentType, type TryOurFreeLegalBlogsContentProps } from './TryOurFreeLegalBlogsContentProps.types';
2
+ export { type TryOurFreeLegalBlogsContentProps } from './TryOurFreeLegalBlogsContentProps.types';
@@ -1,2 +1 @@
1
1
  export { default as TryOurFreeLegalBlogsContent } from './TryOurFreeLegalBlogsContent';
2
- export { TryOurFreeLegalBlogsContentType } from './TryOurFreeLegalBlogsContentProps.types';
@@ -1,5 +1,2 @@
1
1
  export { default as TryOurFreeLegalBlogsContent } from './TryOurFreeLegalBlogsContent'
2
- export {
3
- TryOurFreeLegalBlogsContentType,
4
- type TryOurFreeLegalBlogsContentProps
5
- } from './TryOurFreeLegalBlogsContentProps.types'
2
+ export { type TryOurFreeLegalBlogsContentProps } from './TryOurFreeLegalBlogsContentProps.types'
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { AboutUsSection, AsSeeInSection, ExpertsSection, GuidelinesSection, PeopleSayAboutUsSection, TryOurFreeLegalBlogsSection } from '../../sections';
3
- export const AboutUsPage = ({ aboutUsSectionProps, ourMissionBlogsSectionProps, ourCoreValuesBlogsSectionProps, peopleSayAboutUsSectionProps, guidelinesSectionProps, expertsSectionProps, asSeeInSectionProps, isJonSnow = false }) => {
4
- return (_jsxs(_Fragment, { children: [aboutUsSectionProps != null && _jsx(AboutUsSection, { ...aboutUsSectionProps }), ourMissionBlogsSectionProps != null && _jsx(TryOurFreeLegalBlogsSection, { ...ourMissionBlogsSectionProps }), ourCoreValuesBlogsSectionProps != null && _jsx(TryOurFreeLegalBlogsSection, { ...ourCoreValuesBlogsSectionProps }), guidelinesSectionProps != null && (_jsx(GuidelinesSection, { ...guidelinesSectionProps, children: guidelinesSectionProps.contentGuidelines?.children })), expertsSectionProps != null && _jsx(ExpertsSection, { ...expertsSectionProps }), !isJonSnow && peopleSayAboutUsSectionProps != null && (_jsx(PeopleSayAboutUsSection, { ...peopleSayAboutUsSectionProps })), !isJonSnow && asSeeInSectionProps != null && _jsx(AsSeeInSection, { ...asSeeInSectionProps })] }));
3
+ export const AboutUsPage = ({ aboutUsSectionProps, tryOurFreeLegalBlogsSectionProps, peopleSayAboutUsSectionProps, guidelinesSectionProps, expertsSectionProps, asSeeInSectionProps, isJonSnow = false }) => {
4
+ return (_jsxs(_Fragment, { children: [aboutUsSectionProps != null && _jsx(AboutUsSection, { ...aboutUsSectionProps }), tryOurFreeLegalBlogsSectionProps != null && (_jsx(TryOurFreeLegalBlogsSection, { ...tryOurFreeLegalBlogsSectionProps })), guidelinesSectionProps != null && (_jsx(GuidelinesSection, { ...guidelinesSectionProps, children: guidelinesSectionProps.contentGuidelines?.children })), expertsSectionProps != null && _jsx(ExpertsSection, { ...expertsSectionProps }), !isJonSnow && peopleSayAboutUsSectionProps != null && (_jsx(PeopleSayAboutUsSection, { ...peopleSayAboutUsSectionProps })), !isJonSnow && asSeeInSectionProps != null && _jsx(AsSeeInSection, { ...asSeeInSectionProps })] }));
5
5
  };
@@ -12,8 +12,7 @@ import { type AboutUsPageProps } from './AboutUsPageProps'
12
12
 
13
13
  export const AboutUsPage: React.FC<AboutUsPageProps> = ({
14
14
  aboutUsSectionProps,
15
- ourMissionBlogsSectionProps,
16
- ourCoreValuesBlogsSectionProps,
15
+ tryOurFreeLegalBlogsSectionProps,
17
16
  peopleSayAboutUsSectionProps,
18
17
  guidelinesSectionProps,
19
18
  expertsSectionProps,
@@ -23,8 +22,9 @@ export const AboutUsPage: React.FC<AboutUsPageProps> = ({
23
22
  return (
24
23
  <>
25
24
  {aboutUsSectionProps != null && <AboutUsSection {...aboutUsSectionProps} />}
26
- {ourMissionBlogsSectionProps != null && <TryOurFreeLegalBlogsSection {...ourMissionBlogsSectionProps} />}
27
- {ourCoreValuesBlogsSectionProps != null && <TryOurFreeLegalBlogsSection {...ourCoreValuesBlogsSectionProps} />}
25
+ {tryOurFreeLegalBlogsSectionProps != null && (
26
+ <TryOurFreeLegalBlogsSection {...tryOurFreeLegalBlogsSectionProps} />
27
+ )}
28
28
  {guidelinesSectionProps != null && (
29
29
  <GuidelinesSection {...guidelinesSectionProps}>
30
30
  {guidelinesSectionProps.contentGuidelines?.children}
@@ -1,8 +1,7 @@
1
1
  import type { AboutUsSectionProps, AsSeeInSectionProps, ExpertsSectionProps, GuidelinesSectionProps, PeopleSayAboutUsSectionProps, TryOurFreeLegalBlogsSectionProps, TryUsSectionProps } from '../../sections';
2
2
  export interface AboutUsPageProps {
3
3
  aboutUsSectionProps?: AboutUsSectionProps;
4
- ourMissionBlogsSectionProps?: TryOurFreeLegalBlogsSectionProps;
5
- ourCoreValuesBlogsSectionProps?: TryOurFreeLegalBlogsSectionProps;
4
+ tryOurFreeLegalBlogsSectionProps?: TryOurFreeLegalBlogsSectionProps;
6
5
  peopleSayAboutUsSectionProps?: PeopleSayAboutUsSectionProps;
7
6
  guidelinesSectionProps?: GuidelinesSectionProps;
8
7
  tryUsSectionProps?: TryUsSectionProps;
@@ -10,8 +10,7 @@ import type {
10
10
 
11
11
  export interface AboutUsPageProps {
12
12
  aboutUsSectionProps?: AboutUsSectionProps
13
- ourMissionBlogsSectionProps?: TryOurFreeLegalBlogsSectionProps
14
- ourCoreValuesBlogsSectionProps?: TryOurFreeLegalBlogsSectionProps
13
+ tryOurFreeLegalBlogsSectionProps?: TryOurFreeLegalBlogsSectionProps
15
14
  peopleSayAboutUsSectionProps?: PeopleSayAboutUsSectionProps
16
15
  guidelinesSectionProps?: GuidelinesSectionProps
17
16
  tryUsSectionProps?: TryUsSectionProps
@@ -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, 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, children: contentTryOurFreeLegalBlogs.children }) }));
6
6
  };
7
7
  export default TryOurFreeLegalBlogsSection;
@@ -7,11 +7,7 @@ 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
11
- title={contentTryOurFreeLegalBlogs.title}
12
- image={contentTryOurFreeLegalBlogs.image}
13
- type={contentTryOurFreeLegalBlogs.type}
14
- >
10
+ <TryOurFreeLegalBlogsContent title={contentTryOurFreeLegalBlogs.title} image={contentTryOurFreeLegalBlogs.image}>
15
11
  {contentTryOurFreeLegalBlogs.children}
16
12
  </TryOurFreeLegalBlogsContent>
17
13
  </TryOurFreeLegalBlogsSectionStyled>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@npm_leadtech/legal-lib-components",
3
- "version": "5.64.4",
3
+ "version": "5.64.5",
4
4
  "license": "ISC",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",