@npm_leadtech/legal-lib-components 7.4.0 → 7.4.1

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.
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { RichTextInner, RichTextStrapi } from '../../atoms';
2
+ import { Button, RichTextInner, RichTextStrapi } from '../../atoms';
3
3
  import { GuideslinesContentStyled } from './GuidelinesContent.styled';
4
- const GuidelinesContent = ({ title, image, detail, children }) => {
5
- return (_jsxs(GuideslinesContentStyled, { 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))) }))] }));
4
+ const GuidelinesContent = ({ title, detail, children, tryNowText, tryNowButtonText, tryNowButtonLink, tryNowButtonDataQa, tryNowImage }) => {
5
+ return (_jsxs(GuideslinesContentStyled, { children: [_jsx("div", { className: 'guidelines-section-main wrapper', children: _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 })] }) }), 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))) })), _jsx("div", { className: 'guidelines-section-trial wrapper', children: _jsxs("div", { className: 'guidelines-section-trial__item', children: [_jsx("div", { className: 'guidelines-section__image is-mobile', children: tryNowImage }), _jsxs("div", { className: 'guidelines-section-trial__texts', children: [_jsx(RichTextInner, { customClass: 'guidelines-section__texts__body', children: tryNowText }), _jsx(Button, { givenClass: 'mid-banner-ratafia-content__cta', dataQa: tryNowButtonDataQa, link: tryNowButtonLink, color: 'primary', label: tryNowButtonText })] }), _jsx("div", { className: 'guidelines-section__image big-devices', children: tryNowImage })] }) })] }));
6
6
  };
7
7
  export default GuidelinesContent;
@@ -14,7 +14,6 @@ export const GuideslinesContentStyled = styled.div `
14
14
  }
15
15
 
16
16
  .guidelines-section__texts {
17
- flex-basis: 50%;
18
17
  display: flex;
19
18
  flex-direction: column;
20
19
  justify-content: center;
@@ -34,10 +33,10 @@ export const GuideslinesContentStyled = styled.div `
34
33
  font-family: var(--font-serif);
35
34
  margin-bottom: 2rem;
36
35
  text-align: center;
37
- font-size: 32px;
36
+ font-size: 28px;
38
37
  font-style: normal;
39
- font-weight: 400;
40
- line-height: 42px;
38
+ font-weight: 700;
39
+ line-height: 32px;
41
40
  letter-spacing: -0.3px;
42
41
 
43
42
  @media ${device['landscape-tablets']} {
@@ -57,31 +56,6 @@ export const GuideslinesContentStyled = styled.div `
57
56
  }
58
57
  }
59
58
 
60
- .guidelines-section__image {
61
- flex-basis: 50%;
62
- margin-bottom: 2rem;
63
-
64
- &.big-devices {
65
- display: none;
66
-
67
- @media ${device['landscape-tablets']} {
68
- display: flex;
69
- }
70
- }
71
-
72
- &.is-mobile {
73
- display: none;
74
-
75
- @media ${device['landscape-tablets']} {
76
- display: none;
77
- }
78
-
79
- img {
80
- display: none;
81
- }
82
- }
83
- }
84
-
85
59
  .guidelines-section-detail {
86
60
  display: flex;
87
61
  flex-direction: column;
@@ -108,9 +82,9 @@ export const GuideslinesContentStyled = styled.div `
108
82
  &__title {
109
83
  font-family: var(--font-serif);
110
84
  font-style: normal;
111
- font-weight: 400;
112
- font-size: 24px;
113
- line-height: 32px;
85
+ font-weight: 700;
86
+ font-size: 18px;
87
+ line-height: 24px;
114
88
  letter-spacing: -0.3px;
115
89
  color: var(--neutral-neutral-1);
116
90
  margin: 1.5rem 0 1rem 0;
@@ -135,4 +109,77 @@ export const GuideslinesContentStyled = styled.div `
135
109
  }
136
110
  }
137
111
  }
112
+
113
+ .guidelines-section-trial {
114
+ display: flex;
115
+ flex-direction: column;
116
+ gap: 1.5rem;
117
+ margin: 2rem 0 1rem 0;
118
+
119
+ @media ${device.laptop} {
120
+ flex-direction: row;
121
+ }
122
+
123
+ &__texts {
124
+ flex-basis: 50%;
125
+ display: flex;
126
+ flex-direction: column;
127
+ justify-content: flex-start;
128
+ color: var(--neutral-neutral-1);
129
+ font-style: normal;
130
+ font-weight: 400;
131
+ letter-spacing: -0.3px;
132
+ margin-right: 3rem;
133
+
134
+ &__body {
135
+ font-family: var(--font-sans);
136
+ font-size: 16px;
137
+ line-height: 22px;
138
+ margin-bottom: 1.5rem;
139
+ a {
140
+ color: var(--primary-main-light-1);
141
+ font-weight: 400 !important;
142
+ }
143
+ }
144
+ .e-button {
145
+ height: auto;
146
+ align-self: flex-start;
147
+ margin-top: 2.5rem;
148
+ }
149
+ }
150
+
151
+ &__item {
152
+ display: flex;
153
+ flex-direction: row;
154
+ justify-content: space-between;
155
+ background: var(--others-white);
156
+ border-radius: var(--m-border-radius);
157
+ padding: 1.5rem;
158
+ }
159
+ }
160
+
161
+ .guidelines-section__image {
162
+ flex-basis: 50%;
163
+ margin-bottom: 2rem;
164
+
165
+ &.big-devices {
166
+ display: none;
167
+
168
+ @media ${device['landscape-tablets']} {
169
+ display: flex;
170
+ }
171
+ }
172
+
173
+ &.is-mobile {
174
+ display: none;
175
+
176
+ @media ${device['landscape-tablets']} {
177
+ display: none;
178
+ }
179
+
180
+ img {
181
+ display: none;
182
+ }
183
+ }
184
+ }
138
185
  `;
@@ -15,7 +15,6 @@ export const GuideslinesContentStyled = styled.div`
15
15
  }
16
16
 
17
17
  .guidelines-section__texts {
18
- flex-basis: 50%;
19
18
  display: flex;
20
19
  flex-direction: column;
21
20
  justify-content: center;
@@ -35,10 +34,10 @@ export const GuideslinesContentStyled = styled.div`
35
34
  font-family: var(--font-serif);
36
35
  margin-bottom: 2rem;
37
36
  text-align: center;
38
- font-size: 32px;
37
+ font-size: 28px;
39
38
  font-style: normal;
40
- font-weight: 400;
41
- line-height: 42px;
39
+ font-weight: 700;
40
+ line-height: 32px;
42
41
  letter-spacing: -0.3px;
43
42
 
44
43
  @media ${device['landscape-tablets']} {
@@ -58,31 +57,6 @@ export const GuideslinesContentStyled = styled.div`
58
57
  }
59
58
  }
60
59
 
61
- .guidelines-section__image {
62
- flex-basis: 50%;
63
- margin-bottom: 2rem;
64
-
65
- &.big-devices {
66
- display: none;
67
-
68
- @media ${device['landscape-tablets']} {
69
- display: flex;
70
- }
71
- }
72
-
73
- &.is-mobile {
74
- display: none;
75
-
76
- @media ${device['landscape-tablets']} {
77
- display: none;
78
- }
79
-
80
- img {
81
- display: none;
82
- }
83
- }
84
- }
85
-
86
60
  .guidelines-section-detail {
87
61
  display: flex;
88
62
  flex-direction: column;
@@ -109,9 +83,9 @@ export const GuideslinesContentStyled = styled.div`
109
83
  &__title {
110
84
  font-family: var(--font-serif);
111
85
  font-style: normal;
112
- font-weight: 400;
113
- font-size: 24px;
114
- line-height: 32px;
86
+ font-weight: 700;
87
+ font-size: 18px;
88
+ line-height: 24px;
115
89
  letter-spacing: -0.3px;
116
90
  color: var(--neutral-neutral-1);
117
91
  margin: 1.5rem 0 1rem 0;
@@ -136,4 +110,77 @@ export const GuideslinesContentStyled = styled.div`
136
110
  }
137
111
  }
138
112
  }
113
+
114
+ .guidelines-section-trial {
115
+ display: flex;
116
+ flex-direction: column;
117
+ gap: 1.5rem;
118
+ margin: 2rem 0 1rem 0;
119
+
120
+ @media ${device.laptop} {
121
+ flex-direction: row;
122
+ }
123
+
124
+ &__texts {
125
+ flex-basis: 50%;
126
+ display: flex;
127
+ flex-direction: column;
128
+ justify-content: flex-start;
129
+ color: var(--neutral-neutral-1);
130
+ font-style: normal;
131
+ font-weight: 400;
132
+ letter-spacing: -0.3px;
133
+ margin-right: 3rem;
134
+
135
+ &__body {
136
+ font-family: var(--font-sans);
137
+ font-size: 16px;
138
+ line-height: 22px;
139
+ margin-bottom: 1.5rem;
140
+ a {
141
+ color: var(--primary-main-light-1);
142
+ font-weight: 400 !important;
143
+ }
144
+ }
145
+ .e-button {
146
+ height: auto;
147
+ align-self: flex-start;
148
+ margin-top: 2.5rem;
149
+ }
150
+ }
151
+
152
+ &__item {
153
+ display: flex;
154
+ flex-direction: row;
155
+ justify-content: space-between;
156
+ background: var(--others-white);
157
+ border-radius: var(--m-border-radius);
158
+ padding: 1.5rem;
159
+ }
160
+ }
161
+
162
+ .guidelines-section__image {
163
+ flex-basis: 50%;
164
+ margin-bottom: 2rem;
165
+
166
+ &.big-devices {
167
+ display: none;
168
+
169
+ @media ${device['landscape-tablets']} {
170
+ display: flex;
171
+ }
172
+ }
173
+
174
+ &.is-mobile {
175
+ display: none;
176
+
177
+ @media ${device['landscape-tablets']} {
178
+ display: none;
179
+ }
180
+
181
+ img {
182
+ display: none;
183
+ }
184
+ }
185
+ }
139
186
  `
@@ -1,19 +1,26 @@
1
1
  import React, { type FC } from 'react'
2
2
 
3
- import { RichTextInner, RichTextStrapi } from '../../atoms'
3
+ import { Button, RichTextInner, RichTextStrapi } from '../../atoms'
4
4
  import { type GuidelinesContentProps } from './GuidelinesContentProps.types'
5
5
  import { GuideslinesContentStyled } from './GuidelinesContent.styled'
6
6
 
7
- const GuidelinesContent: FC<GuidelinesContentProps> = ({ title, image, detail, children }) => {
7
+ const GuidelinesContent: FC<GuidelinesContentProps> = ({
8
+ title,
9
+ detail,
10
+ children,
11
+ tryNowText,
12
+ tryNowButtonText,
13
+ tryNowButtonLink,
14
+ tryNowButtonDataQa,
15
+ tryNowImage
16
+ }) => {
8
17
  return (
9
18
  <GuideslinesContentStyled>
10
19
  <div className='guidelines-section-main wrapper'>
11
- <div className='guidelines-section__image big-devices'>{image}</div>
12
20
  <div className='guidelines-section__texts'>
13
21
  <h2 className='guidelines-section__texts__title'>{title}</h2>
14
22
  <RichTextInner customClass='guidelines-section__texts__body'>{children}</RichTextInner>
15
23
  </div>
16
- <div className='guidelines-section__image is-mobile'>{image}</div>
17
24
  </div>
18
25
  {Array.isArray(detail) && (
19
26
  <div className='guidelines-section-detail wrapper'>
@@ -26,6 +33,22 @@ const GuidelinesContent: FC<GuidelinesContentProps> = ({ title, image, detail, c
26
33
  ))}
27
34
  </div>
28
35
  )}
36
+ <div className='guidelines-section-trial wrapper'>
37
+ <div className='guidelines-section-trial__item'>
38
+ <div className='guidelines-section__image is-mobile'>{tryNowImage}</div>
39
+ <div className='guidelines-section-trial__texts'>
40
+ <RichTextInner customClass='guidelines-section__texts__body'>{tryNowText}</RichTextInner>
41
+ <Button
42
+ givenClass='mid-banner-ratafia-content__cta'
43
+ dataQa={tryNowButtonDataQa}
44
+ link={tryNowButtonLink}
45
+ color='primary'
46
+ label={tryNowButtonText}
47
+ />
48
+ </div>
49
+ <div className='guidelines-section__image big-devices'>{tryNowImage}</div>
50
+ </div>
51
+ </div>
29
52
  </GuideslinesContentStyled>
30
53
  )
31
54
  }
@@ -1,6 +1,12 @@
1
+ import React from 'react';
1
2
  export interface GuidelinesContentProps {
2
3
  title: string;
3
- image: React.ReactNode;
4
+ image?: React.ReactNode;
4
5
  children: React.ReactNode;
5
6
  detail?: React.ReactNode;
7
+ tryNowText: React.ReactNode;
8
+ tryNowButtonText: string;
9
+ tryNowButtonLink: string;
10
+ tryNowButtonDataQa: string;
11
+ tryNowImage?: React.ReactNode;
6
12
  }
@@ -1,6 +1,13 @@
1
+ import React from 'react'
2
+
1
3
  export interface GuidelinesContentProps {
2
4
  title: string
3
- image: React.ReactNode
5
+ image?: React.ReactNode
4
6
  children: React.ReactNode
5
7
  detail?: React.ReactNode
8
+ tryNowText: React.ReactNode
9
+ tryNowButtonText: string
10
+ tryNowButtonLink: string
11
+ tryNowButtonDataQa: string
12
+ tryNowImage?: React.ReactNode
6
13
  }
@@ -2,6 +2,6 @@ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { GuidelinesContent } from '../../organisms/GuidelinesContent';
3
3
  import { GuidelinesSectionStyled } from './GuidelinesSection.styled';
4
4
  const GuidelinesSection = ({ contentGuidelines }) => {
5
- return (_jsx(GuidelinesSectionStyled, { className: 'guidelines-section', children: _jsx(GuidelinesContent, { title: contentGuidelines.title, image: contentGuidelines.image, detail: contentGuidelines.detail, children: contentGuidelines.children }) }));
5
+ return (_jsx(GuidelinesSectionStyled, { className: 'guidelines-section', children: _jsx(GuidelinesContent, { title: contentGuidelines.title, image: contentGuidelines.image, detail: contentGuidelines.detail, tryNowText: contentGuidelines.tryNowText, tryNowButtonText: contentGuidelines.tryNowButtonText, tryNowButtonLink: contentGuidelines.tryNowButtonLink, tryNowButtonDataQa: contentGuidelines.tryNowButtonDataQa, tryNowImage: contentGuidelines.tryNowImage, children: contentGuidelines.children }) }));
6
6
  };
7
7
  export default GuidelinesSection;
@@ -11,6 +11,11 @@ const GuidelinesSection: FC<GuidelinesSectionProps> = ({ contentGuidelines }) =>
11
11
  title={contentGuidelines.title}
12
12
  image={contentGuidelines.image}
13
13
  detail={contentGuidelines.detail}
14
+ tryNowText={contentGuidelines.tryNowText}
15
+ tryNowButtonText={contentGuidelines.tryNowButtonText}
16
+ tryNowButtonLink={contentGuidelines.tryNowButtonLink}
17
+ tryNowButtonDataQa={contentGuidelines.tryNowButtonDataQa}
18
+ tryNowImage={contentGuidelines.tryNowImage}
14
19
  >
15
20
  {contentGuidelines.children}
16
21
  </GuidelinesContent>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@npm_leadtech/legal-lib-components",
3
- "version": "7.4.0",
3
+ "version": "7.4.1",
4
4
  "license": "ISC",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",