gatsby-matrix-theme 17.1.1 → 17.1.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.
- package/CHANGELOG.md +24 -0
- package/package.json +1 -1
- package/src/components/atoms/cards/article-card/template-one/article-card.module.scss +14 -3
- package/src/components/atoms/cards/article-card/template-one/index.js +1 -0
- package/src/components/atoms/cards/author/template-one/index.js +1 -1
- package/src/components/atoms/cards/author/template-one/template-one.module.scss +10 -3
- package/src/components/atoms/cards/author/template-two/index.js +1 -1
- package/src/components/atoms/cards/author/template-two/template-two.module.scss +7 -0
- package/src/components/atoms/cards/payment-method/template-one/index.js +8 -3
- package/src/components/atoms/cards/payment-method/template-three/index.js +8 -3
- package/src/components/atoms/feedBackModule/feedback-module.module.scss +31 -15
- package/src/components/atoms/feedBackModule/index.js +24 -12
- package/storybook/public/iframe.html +1 -1
- package/storybook/public/main.c915a422.iframe.bundle.js +1 -0
- package/tests/factories/cards/articles.factory.js +1 -1
- package/storybook/public/main.a08237e2.iframe.bundle.js +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,27 @@
|
|
|
1
|
+
## [17.1.3](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v17.1.2...v17.1.3) (2023-04-03)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* news article ([3291a1f](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/3291a1fd331340423d9a31338cb4104c84896258))
|
|
7
|
+
* update feedback module ([1ee939b](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/1ee939b48ffd884cd0f3e04cd3a241ab171f85ec))
|
|
8
|
+
* update feedback module ([af1dac7](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/af1dac7e2c6e66bc7dd1ee8ff59147229ef54eba))
|
|
9
|
+
* update feedback module ([2a153da](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/2a153dadaa1d0eda64e1816eb4f76f484849d94e))
|
|
10
|
+
* update main and feedback scss ([a53c81f](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/a53c81fddf032f4dc42a1e899df4c75756f41283))
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
* Merge branch 'tm-3088-feedbackmodule-feature' into 'master' ([3d4a0ed](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/3d4a0eda8d9da75705836b64f44345253eb9339e))
|
|
14
|
+
* Merge branch 'tm-3311-news-article-matrix' into 'master' ([044b898](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/044b898d36a8a8323366d182f51f6760a86fe155))
|
|
15
|
+
|
|
16
|
+
## [17.1.2](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v17.1.1...v17.1.2) (2023-03-30)
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
### Bug Fixes
|
|
20
|
+
|
|
21
|
+
* author card template styling ([9df14a4](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/9df14a4410259e19be59a9017b0754ddd7a791b5))
|
|
22
|
+
* payment method ([756586e](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/756586eaf0f234efdf85ffafefcd49c70cefad38))
|
|
23
|
+
* payment method ([5808dd9](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/5808dd9fba19c6019d700200270333841708e01b))
|
|
24
|
+
|
|
1
25
|
## [17.1.1](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v17.1.0...v17.1.1) (2023-03-29)
|
|
2
26
|
|
|
3
27
|
|
package/package.json
CHANGED
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
display: grid;
|
|
10
10
|
grid-template-rows: 24rem 1fr;
|
|
11
11
|
padding: 1.6rem;
|
|
12
|
+
border-radius: 1.6rem;
|
|
12
13
|
}
|
|
13
14
|
|
|
14
15
|
.cardContent {
|
|
@@ -33,12 +34,19 @@
|
|
|
33
34
|
@include flex-align(center, space-between);
|
|
34
35
|
width: 100%;
|
|
35
36
|
|
|
37
|
+
> div {
|
|
38
|
+
display: grid;
|
|
39
|
+
grid-template-columns: auto 1fr;
|
|
40
|
+
}
|
|
41
|
+
|
|
36
42
|
> div > div {
|
|
43
|
+
white-space: normal !important;
|
|
37
44
|
> a {
|
|
38
45
|
display: block !important;
|
|
39
46
|
color: #165af8 !important;
|
|
40
47
|
font-size: 1.4rem;
|
|
41
|
-
|
|
48
|
+
line-height: 21px;
|
|
49
|
+
font-weight: 700 !important;
|
|
42
50
|
}
|
|
43
51
|
> img {
|
|
44
52
|
position: absolute;
|
|
@@ -49,7 +57,7 @@
|
|
|
49
57
|
> span {
|
|
50
58
|
font-size: 1.4rem;
|
|
51
59
|
line-height: 2.2rem;
|
|
52
|
-
color: #3e3c47;
|
|
60
|
+
color: #3e3c47 !important;
|
|
53
61
|
font-weight: 500;
|
|
54
62
|
}
|
|
55
63
|
> p {
|
|
@@ -57,7 +65,10 @@
|
|
|
57
65
|
span {
|
|
58
66
|
font-size: 1.4rem;
|
|
59
67
|
color: #3e3c47;
|
|
60
|
-
font-weight:
|
|
68
|
+
font-weight: 400;
|
|
69
|
+
line-height: 22px;
|
|
70
|
+
text-transform: capitalize;
|
|
71
|
+
white-space: nowrap;
|
|
61
72
|
}
|
|
62
73
|
}
|
|
63
74
|
}
|
|
@@ -25,7 +25,7 @@ export default function TemplateOne({ item }) {
|
|
|
25
25
|
/>
|
|
26
26
|
<span className={styles.title}>{author.author_title}</span>
|
|
27
27
|
<span className={styles.name}>{author.name}</span>
|
|
28
|
-
<Socials author={author} />
|
|
28
|
+
<Socials className={styles.socials} author={author} />
|
|
29
29
|
<div
|
|
30
30
|
className={styles.bio}
|
|
31
31
|
// eslint-disable-next-line react/no-danger
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
position: relative;
|
|
9
9
|
|
|
10
10
|
> img {
|
|
11
|
-
margin-bottom:
|
|
11
|
+
margin-bottom: 1.6rem;
|
|
12
12
|
border-radius: 4rem;
|
|
13
13
|
}
|
|
14
14
|
|
|
@@ -18,6 +18,13 @@
|
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
+
.socials {
|
|
22
|
+
a {
|
|
23
|
+
height: 2.4rem !important;
|
|
24
|
+
width: 2.4rem !important;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
21
28
|
.posts {
|
|
22
29
|
position: absolute;
|
|
23
30
|
background: #5545a9;
|
|
@@ -46,14 +53,14 @@
|
|
|
46
53
|
color: #000;
|
|
47
54
|
font-weight: 700;
|
|
48
55
|
font-size: 20px;
|
|
49
|
-
margin-bottom:
|
|
56
|
+
margin-bottom: 1.6rem;
|
|
50
57
|
line-height: 30px;
|
|
51
58
|
}
|
|
52
59
|
|
|
53
60
|
.bio {
|
|
54
61
|
font-size: 16px;
|
|
55
62
|
line-height: 27px;
|
|
56
|
-
margin-top:
|
|
63
|
+
margin-top: 2.4rem;
|
|
57
64
|
}
|
|
58
65
|
|
|
59
66
|
.readMore {
|
|
@@ -28,7 +28,7 @@ export default function TemplateTwo({ item }) {
|
|
|
28
28
|
<span className={styles.posts}>
|
|
29
29
|
{author.pages_count} {translate(translations, 'posts', 'Posts')}
|
|
30
30
|
</span>
|
|
31
|
-
<Socials author={author} />
|
|
31
|
+
<Socials className={styles.socials} author={author} />
|
|
32
32
|
</div>
|
|
33
33
|
);
|
|
34
34
|
}
|
|
@@ -18,8 +18,8 @@ import styles from './template-one.module.scss';
|
|
|
18
18
|
|
|
19
19
|
const TemplateOneTwo = ({ item, showSellingPoints = true, width = 150, height = 150 }) => {
|
|
20
20
|
const { translations } = useContext(Context);
|
|
21
|
-
const { title, path, relation, sections, description } = item;
|
|
22
|
-
const { name, selling_points } = item
|
|
21
|
+
const { title, path, relation, sections, description } = item || {};
|
|
22
|
+
const { name, selling_points } = item?.relation || {};
|
|
23
23
|
|
|
24
24
|
const imageObject = relation?.standardised_logo_filename_object || relation?.logo_filename_object;
|
|
25
25
|
const StarRating = loadable(() =>
|
|
@@ -47,7 +47,12 @@ const TemplateOneTwo = ({ item, showSellingPoints = true, width = 150, height =
|
|
|
47
47
|
|
|
48
48
|
<div className={`${styles.links}`}>
|
|
49
49
|
<span className={styles.title}>{name}</span>
|
|
50
|
-
<StarRating
|
|
50
|
+
<StarRating
|
|
51
|
+
numOfStars={5}
|
|
52
|
+
halfStars={false}
|
|
53
|
+
rating={relation?.rating}
|
|
54
|
+
showDot={false}
|
|
55
|
+
/>
|
|
51
56
|
</div>
|
|
52
57
|
</div>
|
|
53
58
|
|
|
@@ -12,8 +12,8 @@ import SellingPoints from '../sellingPoints';
|
|
|
12
12
|
import styles from './template-three.module.scss';
|
|
13
13
|
|
|
14
14
|
const TemplateThree = ({ item, width = 150, height = 150 }) => {
|
|
15
|
-
const { title, path, relation } = item;
|
|
16
|
-
const { name, selling_points } = item
|
|
15
|
+
const { title, path, relation } = item || {};
|
|
16
|
+
const { name, selling_points } = item?.relation || {};
|
|
17
17
|
|
|
18
18
|
const imageObject = relation?.standardised_logo_filename_object || relation?.logo_filename_object;
|
|
19
19
|
const StarRating = loadable(() =>
|
|
@@ -41,7 +41,12 @@ const TemplateThree = ({ item, width = 150, height = 150 }) => {
|
|
|
41
41
|
<div className={`${styles.links}`}>
|
|
42
42
|
<span className={styles.title}>{name}</span>
|
|
43
43
|
|
|
44
|
-
<StarRating
|
|
44
|
+
<StarRating
|
|
45
|
+
numOfStars={5}
|
|
46
|
+
halfStars={false}
|
|
47
|
+
rating={relation?.rating}
|
|
48
|
+
showDot={false}
|
|
49
|
+
/>
|
|
45
50
|
</div>
|
|
46
51
|
</div>
|
|
47
52
|
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
.mainContainer {
|
|
2
|
-
padding: 0
|
|
2
|
+
padding: 0 1.6rem;
|
|
3
|
+
@include min(tablet) {
|
|
4
|
+
padding: 0.2.4rem
|
|
5
|
+
}
|
|
3
6
|
}
|
|
4
7
|
|
|
5
8
|
.dottedBorder {
|
|
@@ -9,7 +12,7 @@
|
|
|
9
12
|
max-width: var(--main-container-max) !important;
|
|
10
13
|
margin-bottom: 1rem !important;
|
|
11
14
|
margin: 0 auto;
|
|
12
|
-
padding: 1.6rem;
|
|
15
|
+
padding: 1.6rem 0 ;
|
|
13
16
|
}
|
|
14
17
|
.container {
|
|
15
18
|
@include flex-align(center, space-between);
|
|
@@ -42,8 +45,9 @@
|
|
|
42
45
|
font-size: 16px;
|
|
43
46
|
line-height: var(--feedbackModule-secondText-anchor-line-height);
|
|
44
47
|
color: var(--color-73);
|
|
45
|
-
|
|
46
|
-
|
|
48
|
+
text-decoration: var(--feedbackModule-here-underline);
|
|
49
|
+
> svg {
|
|
50
|
+
display: none;
|
|
47
51
|
}
|
|
48
52
|
}
|
|
49
53
|
}
|
|
@@ -71,7 +75,28 @@
|
|
|
71
75
|
display: none;
|
|
72
76
|
}
|
|
73
77
|
}
|
|
74
|
-
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
>:first-child:disabled,
|
|
81
|
+
>:last-child:disabled {
|
|
82
|
+
cursor: not-allowed;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.yesButton {
|
|
86
|
+
color: var(--color-77);
|
|
87
|
+
background: var(--color-75) !important;
|
|
88
|
+
border: var(--feedbackModule-first-button-border);
|
|
89
|
+
box-shadow: var(--feedback-first-button-box-shadow-hover) !important;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.noButton {
|
|
93
|
+
color: var(--color-77);
|
|
94
|
+
background-color: var(--color-76) !important;
|
|
95
|
+
border: var(--feedbackModule-second-button-border);
|
|
96
|
+
box-shadow: var(--feedback-second-button-box-shadow-hover) !important;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
>:first-child {
|
|
75
100
|
box-shadow: var(--feedbackModule-first-button-box-shadow);
|
|
76
101
|
background: var(--feedback-first-button-background);
|
|
77
102
|
}
|
|
@@ -79,16 +104,7 @@
|
|
|
79
104
|
box-shadow: var(--feedbackModule-second-button-box-shadow);
|
|
80
105
|
background: var(--feedback-second-button-background);
|
|
81
106
|
}
|
|
82
|
-
|
|
83
|
-
background-color: var(--color-75);
|
|
84
|
-
border: var(--feedbackModule-first-button-border);
|
|
85
|
-
box-shadow: var(--feedback-first-button-box-shadow-hover);
|
|
86
|
-
}
|
|
87
|
-
> :last-child:hover {
|
|
88
|
-
background-color: var(--color-76);
|
|
89
|
-
border: var(--feedbackModule-second-button-border);
|
|
90
|
-
box-shadow: var(--feedback-second-button-box-shadow-hover);
|
|
91
|
-
}
|
|
107
|
+
|
|
92
108
|
.onlyDesktop {
|
|
93
109
|
display: none;
|
|
94
110
|
}
|
|
@@ -48,7 +48,11 @@ const FeedBackModule = ({ path = 'contact-us' }) => {
|
|
|
48
48
|
'yes_second_text',
|
|
49
49
|
'Tell us more about what you liked best. Send us a message'
|
|
50
50
|
)}`}{' '}
|
|
51
|
-
<Button
|
|
51
|
+
<Button
|
|
52
|
+
btnText={`${translate(translations, 'here_text', 'here')}`}
|
|
53
|
+
noStyle
|
|
54
|
+
to={path}
|
|
55
|
+
/>
|
|
52
56
|
</p>
|
|
53
57
|
)}
|
|
54
58
|
|
|
@@ -67,23 +71,31 @@ const FeedBackModule = ({ path = 'contact-us' }) => {
|
|
|
67
71
|
'no_second_text',
|
|
68
72
|
'Tell us what you need to know on this topic'
|
|
69
73
|
)}`}{' '}
|
|
70
|
-
<Button
|
|
74
|
+
<Button
|
|
75
|
+
btnText={`${translate(translations, 'here_text', 'here')}`}
|
|
76
|
+
noStyle
|
|
77
|
+
to={path}
|
|
78
|
+
/>
|
|
71
79
|
</p>
|
|
72
80
|
)}
|
|
73
81
|
</div>
|
|
74
82
|
<div className={styles.buttonContainer}>
|
|
75
|
-
<
|
|
76
|
-
|
|
77
|
-
noStyle
|
|
78
|
-
btnText={`${translate(translations, 'yes_button', 'Yes')}`}
|
|
83
|
+
<button
|
|
84
|
+
type="button"
|
|
79
85
|
onClick={() => handleClick('yes')}
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
86
|
+
className={response === 'yes' ? styles.yesButton : ''}
|
|
87
|
+
disabled={response !== null}
|
|
88
|
+
>
|
|
89
|
+
{`${translate(translations, 'yes_button', 'Yes')}`}
|
|
90
|
+
</button>
|
|
91
|
+
<button
|
|
92
|
+
type="button"
|
|
85
93
|
onClick={() => handleClick('no')}
|
|
86
|
-
|
|
94
|
+
className={response === 'no' ? styles.noButton : ''}
|
|
95
|
+
disabled={response !== null}
|
|
96
|
+
>
|
|
97
|
+
{`${translate(translations, 'no_button', 'No')}`}
|
|
98
|
+
</button>
|
|
87
99
|
</div>
|
|
88
100
|
</div>
|
|
89
101
|
</div>
|
|
@@ -345,4 +345,4 @@
|
|
|
345
345
|
|
|
346
346
|
|
|
347
347
|
|
|
348
|
-
window['STORIES'] = [{"titlePrefix":"","directory":"./src","files":"**/**/**/*.stories.js","importPathMatcher":"^\\.[\\\\/](?:src(?:\\/(?!\\.)(?:(?:(?!(?:^|\\/)\\.).)*?)\\/|\\/|$)(?!\\.)(?=.)[^/]*?\\.stories\\.js)$"},{"titlePrefix":"","directory":"./src","files":"**/**/**/**/*.stories.js","importPathMatcher":"^\\.[\\\\/](?:src(?:\\/(?!\\.)(?:(?:(?!(?:^|\\/)\\.).)*?)\\/|\\/|$)(?!\\.)(?=.)[^/]*?\\.stories\\.js)$"},{"titlePrefix":"","directory":"./src","files":"**/**/**/**/**/*.stories.js","importPathMatcher":"^\\.[\\\\/](?:src(?:\\/(?!\\.)(?:(?:(?!(?:^|\\/)\\.).)*?)\\/|\\/|$)(?!\\.)(?=.)[^/]*?\\.stories\\.js)$"}];</script><script src="runtime~main.514de402.iframe.bundle.js"></script><script src="870.4fcc5488.iframe.bundle.js"></script><script src="main.
|
|
348
|
+
window['STORIES'] = [{"titlePrefix":"","directory":"./src","files":"**/**/**/*.stories.js","importPathMatcher":"^\\.[\\\\/](?:src(?:\\/(?!\\.)(?:(?:(?!(?:^|\\/)\\.).)*?)\\/|\\/|$)(?!\\.)(?=.)[^/]*?\\.stories\\.js)$"},{"titlePrefix":"","directory":"./src","files":"**/**/**/**/*.stories.js","importPathMatcher":"^\\.[\\\\/](?:src(?:\\/(?!\\.)(?:(?:(?!(?:^|\\/)\\.).)*?)\\/|\\/|$)(?!\\.)(?=.)[^/]*?\\.stories\\.js)$"},{"titlePrefix":"","directory":"./src","files":"**/**/**/**/**/*.stories.js","importPathMatcher":"^\\.[\\\\/](?:src(?:\\/(?!\\.)(?:(?:(?!(?:^|\\/)\\.).)*?)\\/|\\/|$)(?!\\.)(?=.)[^/]*?\\.stories\\.js)$"}];</script><script src="runtime~main.514de402.iframe.bundle.js"></script><script src="870.4fcc5488.iframe.bundle.js"></script><script src="main.c915a422.iframe.bundle.js"></script></body></html>
|