@npm_leadtech/legal-lib-components 5.2.13 → 5.2.15

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,10 +1291,22 @@ html[data-theme=lawdistrict] .e-button.--primary-3 {
1291
1291
  }
1292
1292
  .pane-wrapper:nth-child(3) {
1293
1293
  margin-top: 30px;
1294
- }
1295
- .pane-wrapper:last-child {
1296
1294
  padding-right: 0;
1297
1295
  }
1296
+ .pane-wrapper:nth-child(4) {
1297
+ margin-top: 45px;
1298
+ text-align: right;
1299
+ padding: 0;
1300
+ }
1301
+ @media (min-width: 328px) and (max-width: 720px) {
1302
+ .pane-wrapper:nth-child(4) {
1303
+ text-align: left;
1304
+ margin-top: 16px;
1305
+ }
1306
+ }
1307
+ .pane-wrapper:nth-child(4) .pane--title {
1308
+ font-size: 0.75rem;
1309
+ }
1298
1310
  .pane-wrapper span {
1299
1311
  display: block;
1300
1312
  }
@@ -1303,6 +1315,8 @@ html[data-theme=lawdistrict] .e-button.--primary-3 {
1303
1315
  text-indent: -0.625rem;
1304
1316
  }
1305
1317
  .pane--title {
1318
+ border: none;
1319
+ background: none;
1306
1320
  color: var(--neutral-neutral-2);
1307
1321
  font-size: 0.875rem;
1308
1322
  line-height: 1.29;
@@ -1322,6 +1336,9 @@ html[data-theme=lawdistrict] .e-button.--primary-3 {
1322
1336
  font-size: 0.875rem;
1323
1337
  }
1324
1338
  }
1339
+ .pane--title.pane--title--button {
1340
+ cursor: pointer;
1341
+ }
1325
1342
  .pane--description {
1326
1343
  color: var(--neutral-main);
1327
1344
  font-size: 1rem;
@@ -6410,7 +6427,7 @@ html[data-theme=lawdistrict] .document-status.--is-new .icon {
6410
6427
  }
6411
6428
  .trustworthy-websites__image {
6412
6429
  margin: 1.5rem;
6413
- max-width: 7rem;
6430
+ max-width: 8rem;
6414
6431
  }
6415
6432
  .type-modules-list {
6416
6433
  display: flex;
@@ -6851,15 +6868,8 @@ html[data-theme=lawdistrict] .document-status.--is-new .icon {
6851
6868
  }
6852
6869
  .guidelines-section-main {
6853
6870
  display: flex;
6854
- flex-direction: column;
6871
+ flex-direction: row;
6855
6872
  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
- }
6863
6873
  }
6864
6874
  .guidelines-section__texts {
6865
6875
  flex-basis: 50%;
@@ -6916,7 +6926,7 @@ html[data-theme=lawdistrict] .document-status.--is-new .icon {
6916
6926
  }
6917
6927
  }
6918
6928
  .guidelines-section__image.is-mobile {
6919
- display: none;
6929
+ display: flex;
6920
6930
  }
6921
6931
  @media (min-width: 720px) {
6922
6932
  .guidelines-section__image.is-mobile {
@@ -7518,14 +7528,9 @@ html[data-theme=lawdistrict] .document-status.--is-new .icon {
7518
7528
  flex-direction: column;
7519
7529
  box-shadow: 0px 2px 6px 0px rgba(2, 55, 74, 0.25);
7520
7530
  background: var(--others-white);
7521
- transform: translateY(-5rem);
7531
+ transform: translateY(-50%);
7522
7532
  padding: 1.5rem 0;
7523
7533
  }
7524
- @media (min-width: 960px) {
7525
- .as-seen-in-section-box .as-seen-in-section {
7526
- transform: translateY(-50%);
7527
- }
7528
- }
7529
7534
  .as-seen-in-section-box .as-seen-in-section__title {
7530
7535
  text-align: center;
7531
7536
  font-size: 32px;
@@ -7536,61 +7541,6 @@ html[data-theme=lawdistrict] .document-status.--is-new .icon {
7536
7541
  letter-spacing: -0.3px;
7537
7542
  margin: 1rem 0;
7538
7543
  }
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
- }
7594
7544
  .benefit-ratafia-section {
7595
7545
  display: flex;
7596
7546
  justify-content: center;
@@ -8242,12 +8192,6 @@ html[data-theme=lawdistrict] .document-status.--is-new .icon {
8242
8192
  width: 100%;
8243
8193
  margin: 0 auto;
8244
8194
  text-align: center;
8245
- padding: 1.5rem;
8246
- }
8247
- @media (min-width: 960px) {
8248
- .people-say {
8249
- padding: 0;
8250
- }
8251
8195
  }
8252
8196
  @media (min-width: 1200px) {
8253
8197
  .people-say {
@@ -57,10 +57,21 @@
57
57
  }
58
58
  &:nth-child(3) {
59
59
  margin-top: 30px;
60
- }
61
- &:last-child {
62
60
  padding-right: 0;
63
61
  }
62
+ &:nth-child(4) {
63
+ margin-top: 45px;
64
+ text-align: right;
65
+ padding: 0;
66
+ @media (min-width: #{$xxs}) and (max-width: #{$sm}) {
67
+ text-align: left;
68
+ margin-top: 16px;
69
+ }
70
+ .pane--title {
71
+ font-size: 0.75rem;
72
+ }
73
+ }
74
+
64
75
  span {
65
76
  display: block;
66
77
  &.marker {
@@ -70,6 +81,8 @@
70
81
  }
71
82
  }
72
83
  &--title {
84
+ border: none;
85
+ background: none;
73
86
  color: get-color(neutral, neutral-2);
74
87
  font-size: 0.875rem;
75
88
  line-height: 1.29;
@@ -82,6 +95,10 @@
82
95
  @include laptop {
83
96
  font-size: 0.875rem;
84
97
  }
98
+
99
+ &.pane--title--button {
100
+ cursor: pointer;
101
+ }
85
102
  }
86
103
  &--description {
87
104
  color: get-color(neutral);
@@ -1,5 +1,6 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- const CardPaneInfo = ({ description, subdescription, id, title }) => {
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 })) }));
3
4
  if (description === 'Active' || description === 'Inactive') {
4
5
  let descriptionClass;
5
6
  if (description === 'Active') {
@@ -8,8 +9,8 @@ const CardPaneInfo = ({ description, subdescription, id, title }) => {
8
9
  else if (description === 'Inactive') {
9
10
  descriptionClass = 'pane--description--inactive';
10
11
  }
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));
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));
12
13
  }
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));
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));
14
15
  };
15
16
  export default CardPaneInfo;
@@ -4,7 +4,18 @@ 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 }) => {
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
+ )
8
19
  if (description === 'Active' || description === 'Inactive') {
9
20
  let descriptionClass
10
21
  if (description === 'Active') {
@@ -14,7 +25,7 @@ const CardPaneInfo: FC<CardPaneInfoProps> = ({ description, subdescription, id,
14
25
  }
15
26
  return (
16
27
  <div key={id} className='pane-wrapper'>
17
- <div className='pane--title'>{title}</div>
28
+ {paneTitle}
18
29
  <div data-testid='description-div' className={descriptionClass}>
19
30
  <li className='position'>
20
31
  <div className='marker'>{description}</div>
@@ -26,7 +37,7 @@ const CardPaneInfo: FC<CardPaneInfoProps> = ({ description, subdescription, id,
26
37
 
27
38
  return (
28
39
  <div key={id} className='pane-wrapper'>
29
- <div className='pane--title'>{title}</div>
40
+ {paneTitle}
30
41
  <div className='pane--description'>
31
42
  {description}
32
43
  {subdescription !== undefined && <span className='pane--description--subdescription'>{subdescription}</span>}
@@ -6,4 +6,5 @@ export interface CardPaneInfoProps {
6
6
  id: string;
7
7
  title: string;
8
8
  subdescription?: string;
9
+ handleClick?: () => void;
9
10
  }
@@ -7,4 +7,5 @@ export interface CardPaneInfoProps {
7
7
  id: string
8
8
  title: string
9
9
  subdescription?: string
10
+ handleClick?: () => void
10
11
  }
@@ -9,6 +9,6 @@
9
9
 
10
10
  &__image {
11
11
  margin: 1.5rem;
12
- max-width: 7rem;
12
+ max-width: 8rem;
13
13
  }
14
14
  }
@@ -4,14 +4,8 @@
4
4
  .guidelines-section {
5
5
  &-main {
6
6
  display: flex;
7
- flex-direction: column;
7
+ flex-direction: row;
8
8
  flex-wrap: nowrap;
9
- padding: 1.5rem;
10
-
11
- @include laptop {
12
- flex-direction: row;
13
- padding: 0;
14
- }
15
9
  }
16
10
 
17
11
  &__texts {
@@ -71,7 +65,7 @@
71
65
  }
72
66
 
73
67
  &.is-mobile {
74
- display: none;
68
+ display: flex;
75
69
 
76
70
  @include landscape-tablets {
77
71
  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, contactSectionTitle, contactSectionText, contactSectionBlocks }) => {
4
+ const AsSeeInSection = ({ title, contentAsSeeIn }) => {
5
5
  if (contentAsSeeIn.trustWorthyImages.images.length === 0) {
6
6
  return null;
7
7
  }
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))) }))] }))] }));
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 })] }) }));
9
9
  };
10
10
  export default AsSeeInSection;
@@ -14,13 +14,9 @@
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(-5rem);
17
+ transform: translateY(-50%);
18
18
  padding: 1.5rem 0;
19
19
 
20
- @include laptop {
21
- transform: translateY(-50%);
22
- }
23
-
24
20
  &__title {
25
21
  text-align: center;
26
22
  font-size: 32px;
@@ -33,65 +29,3 @@
33
29
  }
34
30
  }
35
31
  }
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,13 +4,7 @@ import { AsSeeInContent } from '../../organisms'
4
4
  import { type AsSeeInSectionProps } from './AsSeeInSectionProps.types'
5
5
  // import './AsSeeInSection.scss'
6
6
 
7
- const AsSeeInSection: FC<AsSeeInSectionProps> = ({
8
- title,
9
- contentAsSeeIn,
10
- contactSectionTitle,
11
- contactSectionText,
12
- contactSectionBlocks
13
- }) => {
7
+ const AsSeeInSection: FC<AsSeeInSectionProps> = ({ title, contentAsSeeIn }) => {
14
8
  if (contentAsSeeIn.trustWorthyImages.images.length === 0) {
15
9
  return null
16
10
  }
@@ -21,23 +15,6 @@ const AsSeeInSection: FC<AsSeeInSectionProps> = ({
21
15
  <h2 className='as-seen-in-section__title'>{title}</h2>
22
16
  <AsSeeInContent trustWorthyImages={contentAsSeeIn.trustWorthyImages}>{contentAsSeeIn.children}</AsSeeInContent>
23
17
  </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
- )}
41
18
  </section>
42
19
  )
43
20
  }
@@ -2,11 +2,4 @@ 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
- }[];
12
5
  }
@@ -3,11 +3,4 @@ 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
- }[]
13
6
  }
@@ -5,11 +5,6 @@
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
- }
13
8
 
14
9
  @include desktop {
15
10
  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.13",
3
+ "version": "5.2.15",
4
4
  "license": "ISC",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",