@npm_leadtech/legal-lib-components 5.2.11 → 5.2.13

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;
@@ -6426,7 +6410,7 @@ html[data-theme=lawdistrict] .document-status.--is-new .icon {
6426
6410
  }
6427
6411
  .trustworthy-websites__image {
6428
6412
  margin: 1.5rem;
6429
- max-width: 8rem;
6413
+ max-width: 7rem;
6430
6414
  }
6431
6415
  .type-modules-list {
6432
6416
  display: flex;
@@ -6867,8 +6851,15 @@ html[data-theme=lawdistrict] .document-status.--is-new .icon {
6867
6851
  }
6868
6852
  .guidelines-section-main {
6869
6853
  display: flex;
6870
- flex-direction: row;
6854
+ flex-direction: column;
6871
6855
  flex-wrap: nowrap;
6856
+ padding: 1.5rem;
6857
+ }
6858
+ @media (min-width: 960px) {
6859
+ .guidelines-section-main {
6860
+ flex-direction: row;
6861
+ padding: 0;
6862
+ }
6872
6863
  }
6873
6864
  .guidelines-section__texts {
6874
6865
  flex-basis: 50%;
@@ -6925,7 +6916,7 @@ html[data-theme=lawdistrict] .document-status.--is-new .icon {
6925
6916
  }
6926
6917
  }
6927
6918
  .guidelines-section__image.is-mobile {
6928
- display: flex;
6919
+ display: none;
6929
6920
  }
6930
6921
  @media (min-width: 720px) {
6931
6922
  .guidelines-section__image.is-mobile {
@@ -7527,9 +7518,14 @@ html[data-theme=lawdistrict] .document-status.--is-new .icon {
7527
7518
  flex-direction: column;
7528
7519
  box-shadow: 0px 2px 6px 0px rgba(2, 55, 74, 0.25);
7529
7520
  background: var(--others-white);
7530
- transform: translateY(-50%);
7521
+ transform: translateY(-5rem);
7531
7522
  padding: 1.5rem 0;
7532
7523
  }
7524
+ @media (min-width: 960px) {
7525
+ .as-seen-in-section-box .as-seen-in-section {
7526
+ transform: translateY(-50%);
7527
+ }
7528
+ }
7533
7529
  .as-seen-in-section-box .as-seen-in-section__title {
7534
7530
  text-align: center;
7535
7531
  font-size: 32px;
@@ -7540,6 +7536,61 @@ html[data-theme=lawdistrict] .document-status.--is-new .icon {
7540
7536
  letter-spacing: -0.3px;
7541
7537
  margin: 1rem 0;
7542
7538
  }
7539
+ .contact-us-section {
7540
+ display: flex;
7541
+ flex-direction: column;
7542
+ transform: translateY(-5rem);
7543
+ color: var(--neutral-neutral-1);
7544
+ margin-top: 1rem;
7545
+ }
7546
+ .contact-us-section__title {
7547
+ text-align: center;
7548
+ font-size: 32px;
7549
+ font-family: "Lora", serif;
7550
+ font-style: normal;
7551
+ font-weight: 400;
7552
+ line-height: 42px;
7553
+ letter-spacing: -0.3px;
7554
+ margin: 1rem 0;
7555
+ }
7556
+ .contact-us-section__text {
7557
+ text-align: center;
7558
+ font-style: normal;
7559
+ font-weight: 400;
7560
+ margin: 0 0 2rem 0;
7561
+ }
7562
+ .contact-us-section-blocks {
7563
+ display: flex;
7564
+ justify-content: center;
7565
+ flex-direction: column;
7566
+ gap: 1rem;
7567
+ }
7568
+ @media (min-width: 960px) {
7569
+ .contact-us-section-blocks {
7570
+ flex-direction: row;
7571
+ gap: 2.5rem;
7572
+ }
7573
+ }
7574
+ .contact-us-section-blocks__item {
7575
+ display: flex;
7576
+ flex-direction: column;
7577
+ align-items: center;
7578
+ background-color: white;
7579
+ box-shadow: 0px 2px 6px 0px rgba(2, 55, 74, 0.25);
7580
+ border-radius: 0.25rem;
7581
+ min-width: 200px;
7582
+ padding: 1rem;
7583
+ }
7584
+ .contact-us-section-blocks__item__image {
7585
+ width: 2rem;
7586
+ }
7587
+ .contact-us-section-blocks__item__title {
7588
+ margin-top: 1rem;
7589
+ line-height: 1rem;
7590
+ }
7591
+ .contact-us-section-blocks__item__text {
7592
+ font-size: 14px;
7593
+ }
7543
7594
  .benefit-ratafia-section {
7544
7595
  display: flex;
7545
7596
  justify-content: center;
@@ -8191,6 +8242,12 @@ html[data-theme=lawdistrict] .document-status.--is-new .icon {
8191
8242
  width: 100%;
8192
8243
  margin: 0 auto;
8193
8244
  text-align: center;
8245
+ padding: 1.5rem;
8246
+ }
8247
+ @media (min-width: 960px) {
8248
+ .people-say {
8249
+ padding: 0;
8250
+ }
8194
8251
  }
8195
8252
  @media (min-width: 1200px) {
8196
8253
  .people-say {
@@ -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
  }
@@ -9,6 +9,6 @@
9
9
 
10
10
  &__image {
11
11
  margin: 1.5rem;
12
- max-width: 8rem;
12
+ max-width: 7rem;
13
13
  }
14
14
  }
@@ -4,8 +4,14 @@
4
4
  .guidelines-section {
5
5
  &-main {
6
6
  display: flex;
7
- flex-direction: row;
7
+ flex-direction: column;
8
8
  flex-wrap: nowrap;
9
+ padding: 1.5rem;
10
+
11
+ @include laptop {
12
+ flex-direction: row;
13
+ padding: 0;
14
+ }
9
15
  }
10
16
 
11
17
  &__texts {
@@ -65,7 +71,7 @@
65
71
  }
66
72
 
67
73
  &.is-mobile {
68
- display: flex;
74
+ display: none;
69
75
 
70
76
  @include landscape-tablets {
71
77
  display: none;
@@ -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;
@@ -14,9 +14,13 @@
14
14
  flex-direction: column;
15
15
  box-shadow: 0px 2px 6px 0px rgba(2, 55, 74, 0.25);
16
16
  background: get-color(others, white);
17
- transform: translateY(-50%);
17
+ transform: translateY(-5rem);
18
18
  padding: 1.5rem 0;
19
19
 
20
+ @include laptop {
21
+ transform: translateY(-50%);
22
+ }
23
+
20
24
  &__title {
21
25
  text-align: center;
22
26
  font-size: 32px;
@@ -29,3 +33,65 @@
29
33
  }
30
34
  }
31
35
  }
36
+
37
+ .contact-us-section {
38
+ display: flex;
39
+ flex-direction: column;
40
+ transform: translateY(-5rem);
41
+ color: var(--neutral-neutral-1);
42
+ margin-top: 1rem;
43
+
44
+ &__title {
45
+ text-align: center;
46
+ font-size: 32px;
47
+ font-family: $font-serif;
48
+ font-style: normal;
49
+ font-weight: 400;
50
+ line-height: 42px;
51
+ letter-spacing: -0.3px;
52
+ margin: 1rem 0;
53
+ }
54
+
55
+ &__text {
56
+ text-align: center;
57
+ font-style: normal;
58
+ font-weight: 400;
59
+ margin: 0 0 2rem 0;
60
+ }
61
+
62
+ &-blocks {
63
+ display: flex;
64
+ justify-content: center;
65
+ flex-direction: column;
66
+ gap: 1rem;
67
+
68
+ @include laptop {
69
+ flex-direction: row;
70
+ gap: 2.5rem;
71
+ }
72
+
73
+ &__item {
74
+ display: flex;
75
+ flex-direction: column;
76
+ align-items: center;
77
+ background-color: white;
78
+ box-shadow: 0px 2px 6px 0px rgba(2, 55, 74, 0.25);
79
+ border-radius: 0.25rem;
80
+ min-width: 200px;
81
+ padding: 1rem;
82
+
83
+ &__image {
84
+ width: 2rem;
85
+ }
86
+
87
+ &__title {
88
+ margin-top: 1rem;
89
+ line-height: 1rem;
90
+ }
91
+
92
+ &__text {
93
+ font-size: 14px;
94
+ }
95
+ }
96
+ }
97
+ }
@@ -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
  }
@@ -5,6 +5,11 @@
5
5
  width: 100%;
6
6
  margin: 0 auto;
7
7
  text-align: center;
8
+ padding: 1.5rem;
9
+
10
+ @include laptop {
11
+ padding: 0;
12
+ }
8
13
 
9
14
  @include desktop {
10
15
  max-width: $max-width;
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.13",
4
4
  "license": "ISC",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",