@npm_leadtech/legal-lib-components 5.2.11 → 5.2.12

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.
@@ -1291,20 +1291,9 @@ html[data-theme=lawdistrict] .e-button.--primary-3 {
1291
1291
  }
1292
1292
  .pane-wrapper:nth-child(3) {
1293
1293
  margin-top: 30px;
1294
- padding-right: 0;
1295
- }
1296
- .pane-wrapper:nth-child(4) {
1297
- margin-top: 45px;
1298
- text-align: right;
1299
- }
1300
- @media (min-width: 328px) and (max-width: 720px) {
1301
- .pane-wrapper:nth-child(4) {
1302
- text-align: left;
1303
- margin-top: 16px;
1304
- }
1305
1294
  }
1306
- .pane-wrapper:nth-child(4) .pane--title {
1307
- font-size: 0.75rem;
1295
+ .pane-wrapper:last-child {
1296
+ padding-right: 0;
1308
1297
  }
1309
1298
  .pane-wrapper span {
1310
1299
  display: block;
@@ -1314,8 +1303,6 @@ html[data-theme=lawdistrict] .e-button.--primary-3 {
1314
1303
  text-indent: -0.625rem;
1315
1304
  }
1316
1305
  .pane--title {
1317
- border: none;
1318
- background: none;
1319
1306
  color: var(--neutral-neutral-2);
1320
1307
  font-size: 0.875rem;
1321
1308
  line-height: 1.29;
@@ -1335,9 +1322,6 @@ html[data-theme=lawdistrict] .e-button.--primary-3 {
1335
1322
  font-size: 0.875rem;
1336
1323
  }
1337
1324
  }
1338
- .pane--title.pane--title--button {
1339
- cursor: pointer;
1340
- }
1341
1325
  .pane--description {
1342
1326
  color: var(--neutral-main);
1343
1327
  font-size: 1rem;
@@ -7540,6 +7524,60 @@ html[data-theme=lawdistrict] .document-status.--is-new .icon {
7540
7524
  letter-spacing: -0.3px;
7541
7525
  margin: 1rem 0;
7542
7526
  }
7527
+ .contact-us-section {
7528
+ display: flex;
7529
+ flex-direction: column;
7530
+ transform: translateY(-5rem);
7531
+ color: var(--neutral-neutral-1);
7532
+ margin-top: 1rem;
7533
+ }
7534
+ .contact-us-section__title {
7535
+ text-align: center;
7536
+ font-size: 32px;
7537
+ font-family: "Lora", serif;
7538
+ font-style: normal;
7539
+ font-weight: 400;
7540
+ line-height: 42px;
7541
+ letter-spacing: -0.3px;
7542
+ margin: 1rem 0;
7543
+ }
7544
+ .contact-us-section__text {
7545
+ text-align: center;
7546
+ font-style: normal;
7547
+ font-weight: 400;
7548
+ margin: 0 0 2rem 0;
7549
+ }
7550
+ .contact-us-section-blocks {
7551
+ display: flex;
7552
+ justify-content: center;
7553
+ flex-direction: column;
7554
+ gap: 2.5rem;
7555
+ }
7556
+ @media (min-width: 960px) {
7557
+ .contact-us-section-blocks {
7558
+ flex-direction: row;
7559
+ }
7560
+ }
7561
+ .contact-us-section-blocks__item {
7562
+ display: flex;
7563
+ flex-direction: column;
7564
+ align-items: center;
7565
+ background-color: white;
7566
+ box-shadow: 0px 2px 6px 0px rgba(2, 55, 74, 0.25);
7567
+ border-radius: 0.25rem;
7568
+ min-width: 200px;
7569
+ padding: 1rem;
7570
+ }
7571
+ .contact-us-section-blocks__item__image {
7572
+ width: 2rem;
7573
+ }
7574
+ .contact-us-section-blocks__item__title {
7575
+ margin-top: 1rem;
7576
+ line-height: 1rem;
7577
+ }
7578
+ .contact-us-section-blocks__item__text {
7579
+ font-size: 14px;
7580
+ }
7543
7581
  .benefit-ratafia-section {
7544
7582
  display: flex;
7545
7583
  justify-content: center;
@@ -57,20 +57,10 @@
57
57
  }
58
58
  &:nth-child(3) {
59
59
  margin-top: 30px;
60
- padding-right: 0;
61
60
  }
62
- &:nth-child(4) {
63
- margin-top: 45px;
64
- text-align: right;
65
- @media (min-width: #{$xxs}) and (max-width: #{$sm}) {
66
- text-align: left;
67
- margin-top: 16px;
68
- }
69
- .pane--title {
70
- font-size: 0.75rem;
71
- }
61
+ &:last-child {
62
+ padding-right: 0;
72
63
  }
73
-
74
64
  span {
75
65
  display: block;
76
66
  &.marker {
@@ -80,8 +70,6 @@
80
70
  }
81
71
  }
82
72
  &--title {
83
- border: none;
84
- background: none;
85
73
  color: get-color(neutral, neutral-2);
86
74
  font-size: 0.875rem;
87
75
  line-height: 1.29;
@@ -94,10 +82,6 @@
94
82
  @include laptop {
95
83
  font-size: 0.875rem;
96
84
  }
97
-
98
- &.pane--title--button {
99
- cursor: pointer;
100
- }
101
85
  }
102
86
  &--description {
103
87
  color: get-color(neutral);
@@ -1,6 +1,5 @@
1
- import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
- const CardPaneInfo = ({ description, subdescription, id, title, handleClick }) => {
3
- const paneTitle = (_jsx(_Fragment, { children: handleClick ? (_jsx("button", { onClick: handleClick, className: 'pane--title pane--title--button', children: title })) : (_jsx("div", { className: 'pane--title', children: title })) }));
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ const CardPaneInfo = ({ description, subdescription, id, title }) => {
4
3
  if (description === 'Active' || description === 'Inactive') {
5
4
  let descriptionClass;
6
5
  if (description === 'Active') {
@@ -9,8 +8,8 @@ const CardPaneInfo = ({ description, subdescription, id, title, handleClick }) =
9
8
  else if (description === 'Inactive') {
10
9
  descriptionClass = 'pane--description--inactive';
11
10
  }
12
- return (_jsxs("div", { className: 'pane-wrapper', children: [paneTitle, _jsx("div", { "data-testid": 'description-div', className: descriptionClass, children: _jsx("li", { className: 'position', children: _jsx("div", { className: 'marker', children: description }) }) })] }, id));
11
+ return (_jsxs("div", { className: 'pane-wrapper', children: [_jsx("div", { className: 'pane--title', children: title }), _jsx("div", { "data-testid": 'description-div', className: descriptionClass, children: _jsx("li", { className: 'position', children: _jsx("div", { className: 'marker', children: description }) }) })] }, id));
13
12
  }
14
- return (_jsxs("div", { className: 'pane-wrapper', children: [paneTitle, _jsxs("div", { className: 'pane--description', children: [description, subdescription !== undefined && _jsx("span", { className: 'pane--description--subdescription', children: subdescription })] })] }, id));
13
+ return (_jsxs("div", { className: 'pane-wrapper', children: [_jsx("div", { className: 'pane--title', children: title }), _jsxs("div", { className: 'pane--description', children: [description, subdescription !== undefined && _jsx("span", { className: 'pane--description--subdescription', children: subdescription })] })] }, id));
15
14
  };
16
15
  export default CardPaneInfo;
@@ -4,18 +4,7 @@ import React, { type FC } from 'react'
4
4
 
5
5
  import { type CardPaneInfoProps } from './CardPaneProps.types'
6
6
 
7
- const CardPaneInfo: FC<CardPaneInfoProps> = ({ description, subdescription, id, title, handleClick }) => {
8
- const paneTitle = (
9
- <>
10
- {handleClick ? (
11
- <button onClick={handleClick} className='pane--title pane--title--button'>
12
- {title}
13
- </button>
14
- ) : (
15
- <div className='pane--title'>{title}</div>
16
- )}
17
- </>
18
- )
7
+ const CardPaneInfo: FC<CardPaneInfoProps> = ({ description, subdescription, id, title }) => {
19
8
  if (description === 'Active' || description === 'Inactive') {
20
9
  let descriptionClass
21
10
  if (description === 'Active') {
@@ -25,7 +14,7 @@ const CardPaneInfo: FC<CardPaneInfoProps> = ({ description, subdescription, id,
25
14
  }
26
15
  return (
27
16
  <div key={id} className='pane-wrapper'>
28
- {paneTitle}
17
+ <div className='pane--title'>{title}</div>
29
18
  <div data-testid='description-div' className={descriptionClass}>
30
19
  <li className='position'>
31
20
  <div className='marker'>{description}</div>
@@ -37,7 +26,7 @@ const CardPaneInfo: FC<CardPaneInfoProps> = ({ description, subdescription, id,
37
26
 
38
27
  return (
39
28
  <div key={id} className='pane-wrapper'>
40
- {paneTitle}
29
+ <div className='pane--title'>{title}</div>
41
30
  <div className='pane--description'>
42
31
  {description}
43
32
  {subdescription !== undefined && <span className='pane--description--subdescription'>{subdescription}</span>}
@@ -6,5 +6,4 @@ export interface CardPaneInfoProps {
6
6
  id: string;
7
7
  title: string;
8
8
  subdescription?: string;
9
- handleClick?: () => void;
10
9
  }
@@ -7,5 +7,4 @@ export interface CardPaneInfoProps {
7
7
  id: string
8
8
  title: string
9
9
  subdescription?: string
10
- handleClick?: () => void
11
10
  }
@@ -1,10 +1,10 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { AsSeeInContent } from '../../organisms';
3
3
  // import './AsSeeInSection.scss'
4
- const AsSeeInSection = ({ title, contentAsSeeIn }) => {
4
+ const AsSeeInSection = ({ title, contentAsSeeIn, contactSectionTitle, contactSectionText, contactSectionBlocks }) => {
5
5
  if (contentAsSeeIn.trustWorthyImages.images.length === 0) {
6
6
  return null;
7
7
  }
8
- return (_jsx("section", { className: 'as-seen-in-section-box', children: _jsxs("div", { className: 'as-seen-in-section wrapper', children: [_jsx("h2", { className: 'as-seen-in-section__title', children: title }), _jsx(AsSeeInContent, { trustWorthyImages: contentAsSeeIn.trustWorthyImages, children: contentAsSeeIn.children })] }) }));
8
+ return (_jsxs("section", { className: 'as-seen-in-section-box', children: [_jsxs("div", { className: 'as-seen-in-section wrapper', children: [_jsx("h2", { className: 'as-seen-in-section__title', children: title }), _jsx(AsSeeInContent, { trustWorthyImages: contentAsSeeIn.trustWorthyImages, children: contentAsSeeIn.children })] }), Array.isArray(contactSectionBlocks) && contactSectionBlocks.length > 0 && (_jsxs("div", { className: 'contact-us-section', children: [_jsx("h2", { className: 'contact-us-section__title', children: contactSectionTitle }), _jsx("p", { className: 'contact-us-section__text', children: contactSectionText }), Array.isArray(contactSectionBlocks) && (_jsx("div", { className: 'contact-us-section-blocks', children: contactSectionBlocks.map((item, index) => (_jsxs("div", { className: 'contact-us-section-blocks__item', children: [_jsx("div", { className: 'contact-us-section-blocks__item__image', children: item.image }), _jsx("div", { className: 'contact-us-section-blocks__item__title', children: item.title }), _jsx("p", { className: 'contact-us-section-blocks__item__text', children: item.body })] }, index))) }))] }))] }));
9
9
  };
10
10
  export default AsSeeInSection;
@@ -29,3 +29,64 @@
29
29
  }
30
30
  }
31
31
  }
32
+
33
+ .contact-us-section {
34
+ display: flex;
35
+ flex-direction: column;
36
+ transform: translateY(-5rem);
37
+ color: var(--neutral-neutral-1);
38
+ margin-top: 1rem;
39
+
40
+ &__title {
41
+ text-align: center;
42
+ font-size: 32px;
43
+ font-family: $font-serif;
44
+ font-style: normal;
45
+ font-weight: 400;
46
+ line-height: 42px;
47
+ letter-spacing: -0.3px;
48
+ margin: 1rem 0;
49
+ }
50
+
51
+ &__text {
52
+ text-align: center;
53
+ font-style: normal;
54
+ font-weight: 400;
55
+ margin: 0 0 2rem 0;
56
+ }
57
+
58
+ &-blocks {
59
+ display: flex;
60
+ justify-content: center;
61
+ flex-direction: column;
62
+ gap: 2.5rem;
63
+
64
+ @include laptop {
65
+ flex-direction: row;
66
+ }
67
+
68
+ &__item {
69
+ display: flex;
70
+ flex-direction: column;
71
+ align-items: center;
72
+ background-color: white;
73
+ box-shadow: 0px 2px 6px 0px rgba(2, 55, 74, 0.25);
74
+ border-radius: 0.25rem;
75
+ min-width: 200px;
76
+ padding: 1rem;
77
+
78
+ &__image {
79
+ width: 2rem;
80
+ }
81
+
82
+ &__title {
83
+ margin-top: 1rem;
84
+ line-height: 1rem;
85
+ }
86
+
87
+ &__text {
88
+ font-size: 14px;
89
+ }
90
+ }
91
+ }
92
+ }
@@ -4,7 +4,13 @@ import { AsSeeInContent } from '../../organisms'
4
4
  import { type AsSeeInSectionProps } from './AsSeeInSectionProps.types'
5
5
  // import './AsSeeInSection.scss'
6
6
 
7
- const AsSeeInSection: FC<AsSeeInSectionProps> = ({ title, contentAsSeeIn }) => {
7
+ const AsSeeInSection: FC<AsSeeInSectionProps> = ({
8
+ title,
9
+ contentAsSeeIn,
10
+ contactSectionTitle,
11
+ contactSectionText,
12
+ contactSectionBlocks
13
+ }) => {
8
14
  if (contentAsSeeIn.trustWorthyImages.images.length === 0) {
9
15
  return null
10
16
  }
@@ -15,6 +21,23 @@ const AsSeeInSection: FC<AsSeeInSectionProps> = ({ title, contentAsSeeIn }) => {
15
21
  <h2 className='as-seen-in-section__title'>{title}</h2>
16
22
  <AsSeeInContent trustWorthyImages={contentAsSeeIn.trustWorthyImages}>{contentAsSeeIn.children}</AsSeeInContent>
17
23
  </div>
24
+ {Array.isArray(contactSectionBlocks) && contactSectionBlocks.length > 0 && (
25
+ <div className='contact-us-section'>
26
+ <h2 className='contact-us-section__title'>{contactSectionTitle}</h2>
27
+ <p className='contact-us-section__text'>{contactSectionText}</p>
28
+ {Array.isArray(contactSectionBlocks) && (
29
+ <div className='contact-us-section-blocks'>
30
+ {contactSectionBlocks.map((item, index) => (
31
+ <div className='contact-us-section-blocks__item' key={index}>
32
+ <div className='contact-us-section-blocks__item__image'>{item.image}</div>
33
+ <div className='contact-us-section-blocks__item__title'>{item.title}</div>
34
+ <p className='contact-us-section-blocks__item__text'>{item.body}</p>
35
+ </div>
36
+ ))}
37
+ </div>
38
+ )}
39
+ </div>
40
+ )}
18
41
  </section>
19
42
  )
20
43
  }
@@ -2,4 +2,11 @@ import { type AsSeeInContentProps } from '../../organisms/AsSeeInContent';
2
2
  export interface AsSeeInSectionProps {
3
3
  title: string;
4
4
  contentAsSeeIn: AsSeeInContentProps;
5
+ contactSectionTitle: string;
6
+ contactSectionText: string;
7
+ contactSectionBlocks?: {
8
+ image: React.ReactNode;
9
+ title: string;
10
+ body: string;
11
+ }[];
5
12
  }
@@ -3,4 +3,11 @@ import { type AsSeeInContentProps } from '../../organisms/AsSeeInContent'
3
3
  export interface AsSeeInSectionProps {
4
4
  title: string
5
5
  contentAsSeeIn: AsSeeInContentProps
6
+ contactSectionTitle: string
7
+ contactSectionText: string
8
+ contactSectionBlocks?: {
9
+ image: React.ReactNode
10
+ title: string
11
+ body: string
12
+ }[]
6
13
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@npm_leadtech/legal-lib-components",
3
- "version": "5.2.11",
3
+ "version": "5.2.12",
4
4
  "license": "ISC",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",