@npm_leadtech/legal-lib-components 5.2.2 → 5.2.3

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.
@@ -2554,6 +2554,9 @@ html[data-theme=lawdistrict] .document-status.--is-new .icon {
2554
2554
  position: absolute;
2555
2555
  transform: translateY(-115%);
2556
2556
  }
2557
+ .expert-card__image img {
2558
+ border-radius: 100%;
2559
+ }
2557
2560
  .expert-card__title {
2558
2561
  font-family: "Inter", sans-serif;
2559
2562
  font-size: 18px;
@@ -6913,11 +6916,20 @@ html[data-theme=lawdistrict] .document-status.--is-new .icon {
6913
6916
  display: none;
6914
6917
  }
6915
6918
  }
6919
+ .guidelines-section__image.is-mobile img {
6920
+ display: none;
6921
+ }
6916
6922
  .guidelines-section-detail {
6917
6923
  display: flex;
6924
+ flex-direction: column;
6918
6925
  gap: 1.5rem;
6919
6926
  margin: 2rem 0 1rem 0;
6920
6927
  }
6928
+ @media (min-width: 960px) {
6929
+ .guidelines-section-detail {
6930
+ flex-direction: row;
6931
+ }
6932
+ }
6921
6933
  .guidelines-section-detail__item {
6922
6934
  display: flex;
6923
6935
  flex: 1;
@@ -6940,6 +6952,21 @@ html[data-theme=lawdistrict] .document-status.--is-new .icon {
6940
6952
  color: var(--neutral-neutral-1);
6941
6953
  margin: 1.5rem 0 1rem 0;
6942
6954
  }
6955
+ .guidelines-section-detail__item ul {
6956
+ list-style-type: disc;
6957
+ }
6958
+ .guidelines-section-detail__item ol {
6959
+ list-style-type: decimal;
6960
+ }
6961
+ .guidelines-section-detail__item ul,
6962
+ .guidelines-section-detail__item ol {
6963
+ margin-left: 1rem;
6964
+ margin-bottom: 1rem;
6965
+ }
6966
+ .guidelines-section-detail__item ul li,
6967
+ .guidelines-section-detail__item ol li {
6968
+ margin-bottom: 0;
6969
+ }
6943
6970
  .jumbotron-ratafia-content {
6944
6971
  display: flex;
6945
6972
  flex-direction: column;
@@ -8149,6 +8176,11 @@ html[data-theme=lawdistrict] .document-status.--is-new .icon {
8149
8176
  margin: 0 auto;
8150
8177
  text-align: center;
8151
8178
  }
8179
+ @media (min-width: 1200px) {
8180
+ .people-say {
8181
+ max-width: 1200px;
8182
+ }
8183
+ }
8152
8184
  .people-say__title {
8153
8185
  font-family: "Lora", serif;
8154
8186
  font-size: 32px;
@@ -8157,6 +8189,19 @@ html[data-theme=lawdistrict] .document-status.--is-new .icon {
8157
8189
  letter-spacing: -0.3px;
8158
8190
  text-align: center;
8159
8191
  }
8192
+ .people-say .richt-text-strapi {
8193
+ text-align: left;
8194
+ margin-top: 2rem;
8195
+ }
8196
+ .people-say .richt-text-strapi > p,
8197
+ .people-say .richt-text-strapi > blockquote {
8198
+ margin-top: 1.5rem;
8199
+ }
8200
+ .people-say .richt-text-strapi blockquote {
8201
+ padding: 1rem;
8202
+ background: var(--neutral-neutral-6);
8203
+ border-radius: 4px;
8204
+ }
8160
8205
  .steps-ratafia-section {
8161
8206
  z-index: 999;
8162
8207
  width: 100%;
@@ -36,6 +36,10 @@
36
36
  &__image {
37
37
  position: absolute;
38
38
  transform: translateY(-115%);
39
+
40
+ img {
41
+ border-radius: 100%;
42
+ }
39
43
  }
40
44
 
41
45
  &__title {
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
- import { RichTextInner } from '../../atoms';
2
+ import { RichTextInner, RichTextStrapi } from '../../atoms';
3
3
  // import './GuidelinesContent.scss'
4
4
  const GuidelinesContent = ({ title, image, detail, children }) => {
5
- return (_jsxs(_Fragment, { children: [_jsxs("div", { className: 'guidelines-section-main wrapper', children: [_jsx("div", { className: 'guidelines-section__image big-devices', children: image }), _jsxs("div", { className: 'guidelines-section__texts', children: [_jsx("h2", { className: 'guidelines-section__texts__title', children: title }), _jsx(RichTextInner, { customClass: 'guidelines-section__texts__body', children: children })] }), _jsx("div", { className: 'guidelines-section__image is-mobile', children: image })] }), Array.isArray(detail) && (_jsx("div", { className: 'guidelines-section-detail wrapper', children: detail.map((item, index) => (_jsxs("div", { className: 'guidelines-section-detail__item', children: [_jsx("div", { className: 'guidelines-section-detail__item__image', children: item.image }), _jsx("div", { className: 'guidelines-section-detail__item__title', children: item.title }), _jsx(RichTextInner, { customClass: 'guidelines-section-detail__item__text', children: item.text })] }, index))) }))] }));
5
+ return (_jsxs(_Fragment, { children: [_jsxs("div", { className: 'guidelines-section-main wrapper', children: [_jsx("div", { className: 'guidelines-section__image big-devices', children: image }), _jsxs("div", { className: 'guidelines-section__texts', children: [_jsx("h2", { className: 'guidelines-section__texts__title', children: title }), _jsx(RichTextInner, { customClass: 'guidelines-section__texts__body', children: children })] }), _jsx("div", { className: 'guidelines-section__image is-mobile', children: image })] }), Array.isArray(detail) && (_jsx("div", { className: 'guidelines-section-detail wrapper', children: detail.map((item, index) => (_jsxs("div", { className: 'guidelines-section-detail__item', children: [_jsx("div", { className: 'guidelines-section-detail__item__image', children: item.image }), _jsx("div", { className: 'guidelines-section-detail__item__title', children: item.title }), _jsx(RichTextStrapi, { html: item.body?.data?.childMarkdownRemark?.html })] }, index))) }))] }));
6
6
  };
7
7
  export default GuidelinesContent;
@@ -70,14 +70,23 @@
70
70
  @include landscape-tablets {
71
71
  display: none;
72
72
  }
73
+
74
+ img {
75
+ display: none;
76
+ }
73
77
  }
74
78
  }
75
79
 
76
80
  &-detail {
77
81
  display: flex;
82
+ flex-direction: column;
78
83
  gap: 1.5rem;
79
84
  margin: 2rem 0 1rem 0;
80
85
 
86
+ @include laptop {
87
+ flex-direction: row;
88
+ }
89
+
81
90
  &__item {
82
91
  display: flex;
83
92
  flex: 1;
@@ -101,6 +110,24 @@
101
110
  color: get-color(neutral, neutral-1);
102
111
  margin: 1.5rem 0 1rem 0;
103
112
  }
113
+
114
+ ul {
115
+ list-style-type: disc;
116
+ }
117
+
118
+ ol {
119
+ list-style-type: decimal;
120
+ }
121
+
122
+ ul,
123
+ ol {
124
+ margin-left: 1rem;
125
+ margin-bottom: 1rem;
126
+
127
+ li {
128
+ margin-bottom: 0;
129
+ }
130
+ }
104
131
  }
105
132
  }
106
133
  }
@@ -1,8 +1,8 @@
1
1
  /* eslint-disable @typescript-eslint/no-unsafe-member-access */
2
2
  import React, { type FC } from 'react'
3
3
 
4
+ import { RichTextInner, RichTextStrapi } from '../../atoms'
4
5
  import { type GuidelinesContentProps } from './GuidelinesContentProps.types'
5
- import { RichTextInner } from '../../atoms'
6
6
  // import './GuidelinesContent.scss'
7
7
 
8
8
  const GuidelinesContent: FC<GuidelinesContentProps> = ({ title, image, detail, children }) => {
@@ -22,7 +22,7 @@ const GuidelinesContent: FC<GuidelinesContentProps> = ({ title, image, detail, c
22
22
  <div className='guidelines-section-detail__item' key={index}>
23
23
  <div className='guidelines-section-detail__item__image'>{item.image}</div>
24
24
  <div className='guidelines-section-detail__item__title'>{item.title}</div>
25
- <RichTextInner customClass='guidelines-section-detail__item__text'>{item.text}</RichTextInner>
25
+ <RichTextStrapi html={item.body?.data?.childMarkdownRemark?.html as string} />
26
26
  </div>
27
27
  ))}
28
28
  </div>
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { TrustPilot } from '../../atoms';
3
3
  // import './PeopleSayAboutUsSection.scss'
4
- const PeopleSayAboutUsSection = ({ title, contentTrustPilot }) => {
5
- return (_jsxs("section", { className: 'people-say', children: [Boolean(title) && _jsx("h2", { className: 'people-say__title', children: title }), _jsx(TrustPilot, { children: contentTrustPilot.children })] }));
4
+ const PeopleSayAboutUsSection = ({ title, testimonialsSectionContent, contentTrustPilot }) => {
5
+ return (_jsxs("section", { className: 'people-say', children: [Boolean(title) && _jsx("h2", { className: 'people-say__title', children: title }), testimonialsSectionContent, _jsx(TrustPilot, { children: contentTrustPilot.children })] }));
6
6
  };
7
7
  export default PeopleSayAboutUsSection;
@@ -6,6 +6,10 @@
6
6
  margin: 0 auto;
7
7
  text-align: center;
8
8
 
9
+ @include desktop {
10
+ max-width: $max-width;
11
+ }
12
+
9
13
  &__title {
10
14
  font-family: $font-serif;
11
15
  font-size: 32px;
@@ -14,4 +18,20 @@
14
18
  letter-spacing: -0.3px;
15
19
  text-align: center;
16
20
  }
21
+
22
+ .richt-text-strapi {
23
+ text-align: left;
24
+ margin-top: 2rem;
25
+
26
+ > p,
27
+ > blockquote {
28
+ margin-top: 1.5rem;
29
+ }
30
+
31
+ blockquote {
32
+ padding: 1rem;
33
+ background: var(--neutral-neutral-6);
34
+ border-radius: 4px;
35
+ }
36
+ }
17
37
  }
@@ -4,10 +4,15 @@ import { type PeopleSayAboutUsSectionProps } from './PeopleSayAboutUsSectionProp
4
4
  import { TrustPilot } from '../../atoms'
5
5
  // import './PeopleSayAboutUsSection.scss'
6
6
 
7
- const PeopleSayAboutUsSection: FC<PeopleSayAboutUsSectionProps> = ({ title, contentTrustPilot }) => {
7
+ const PeopleSayAboutUsSection: FC<PeopleSayAboutUsSectionProps> = ({
8
+ title,
9
+ testimonialsSectionContent,
10
+ contentTrustPilot
11
+ }) => {
8
12
  return (
9
13
  <section className='people-say'>
10
14
  {Boolean(title) && <h2 className='people-say__title'>{title}</h2>}
15
+ {testimonialsSectionContent}
11
16
  <TrustPilot>{contentTrustPilot.children}</TrustPilot>
12
17
  </section>
13
18
  )
@@ -1,5 +1,6 @@
1
1
  import { type TrustPilotProps } from '../../atoms/TrustPilot';
2
2
  export interface PeopleSayAboutUsSectionProps {
3
3
  title?: string;
4
+ testimonialsSectionContent?: string;
4
5
  contentTrustPilot: TrustPilotProps;
5
6
  }
@@ -2,5 +2,6 @@ import { type TrustPilotProps } from '../../atoms/TrustPilot'
2
2
 
3
3
  export interface PeopleSayAboutUsSectionProps {
4
4
  title?: string
5
+ testimonialsSectionContent?: string
5
6
  contentTrustPilot: TrustPilotProps
6
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@npm_leadtech/legal-lib-components",
3
- "version": "5.2.2",
3
+ "version": "5.2.3",
4
4
  "license": "ISC",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",