gatsby-matrix-theme 28.0.3 → 28.0.5
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/.storybook/main.js +2 -0
- package/CHANGELOG.md +17 -0
- package/package.json +2 -2
- package/src/components/atoms/link-menu/index.js +3 -2
- package/src/components/atoms/rating/index.js +8 -7
- package/src/components/atoms/rating/ratings.module.scss +23 -22
- package/src/components/molecules/operator-summary/operator-summary.test.js +1 -1
- package/src/gatsby-core-theme/components/molecules/module/index.js +3 -1
- package/src/gatsby-core-theme/components/pages/body/index.js +1 -1
- package/storybook/public/{115.958218a1.iframe.bundle.js → 192.0ef9b907.iframe.bundle.js} +4 -4
- package/storybook/public/{115.958218a1.iframe.bundle.js.map → 192.0ef9b907.iframe.bundle.js.map} +1 -1
- package/storybook/public/iframe.html +1 -1
- package/storybook/public/main.cf7b150f.iframe.bundle.js +2 -0
- package/storybook/public/main.71af737e.iframe.bundle.js +0 -2
- /package/storybook/public/{115.958218a1.iframe.bundle.js.LICENSE.txt → 192.0ef9b907.iframe.bundle.js.LICENSE.txt} +0 -0
- /package/storybook/public/{main.71af737e.iframe.bundle.js.LICENSE.txt → main.cf7b150f.iframe.bundle.js.LICENSE.txt} +0 -0
package/.storybook/main.js
CHANGED
|
@@ -8,6 +8,8 @@ module.exports = {
|
|
|
8
8
|
'../src/**/**/**/**/**/*.stories.js',
|
|
9
9
|
'../../node_modules/gatsby-core-theme/src/components/organisms/navigation/navigation.stories.js',
|
|
10
10
|
'../../node_modules/gatsby-core-theme/src/components/organisms/anchor/anchor.stories.js',
|
|
11
|
+
'../../node_modules/gatsby-core-theme/src/components/molecules/bonus/template-one/bonus.stories.js',
|
|
12
|
+
'../../node_modules/gatsby-core-theme/src/components/molecules/bonus/template-two/bonus.stories.js',
|
|
11
13
|
],
|
|
12
14
|
addons: ['@storybook/addon-links', '@storybook/addon-essentials'],
|
|
13
15
|
env: (config) => ({
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,20 @@
|
|
|
1
|
+
## [28.0.5](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v28.0.4...v28.0.5) (2023-07-20)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* bonus templates ([f768349](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/f7683491a8166c0e8ccab221ae65ed6949196b6e))
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
* Merge branch 'tm-3396-bonus-templates' into 'master' ([f8348c8](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/f8348c83e3a1390cb38f3be5284ba93316998b54))
|
|
10
|
+
|
|
11
|
+
## [28.0.4](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v28.0.3...v28.0.4) (2023-07-19)
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Bug Fixes
|
|
15
|
+
|
|
16
|
+
* link menu icon as optional ([59d3f55](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/59d3f5529f54bd2f858f6295fe059261cea4a963))
|
|
17
|
+
|
|
1
18
|
## [28.0.3](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v28.0.2...v28.0.3) (2023-07-19)
|
|
2
19
|
|
|
3
20
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gatsby-matrix-theme",
|
|
3
|
-
"version": "28.0.
|
|
3
|
+
"version": "28.0.5",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"description": "Matrix Theme NPM Package",
|
|
6
6
|
"author": "",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@react-icons/all-files": "^4.1.0",
|
|
27
27
|
"gatsby": "^5.11.0",
|
|
28
|
-
"gatsby-core-theme": "25.0.
|
|
28
|
+
"gatsby-core-theme": "25.0.6",
|
|
29
29
|
"gatsby-plugin-sharp": "^5.11.0",
|
|
30
30
|
"gatsby-plugin-sitemap": "^3.3.0",
|
|
31
31
|
"gatsby-transformer-sharp": "^5.11.0",
|
|
@@ -6,18 +6,19 @@ import LinkList from 'gatsby-core-theme/src/components/molecules/link-list';
|
|
|
6
6
|
import { getFirstModuleByName } from 'gatsby-core-theme/src/helpers/getters';
|
|
7
7
|
import styles from './link-menu.module.scss';
|
|
8
8
|
|
|
9
|
-
const LinkMenu = ({ section }) => {
|
|
9
|
+
const LinkMenu = ({ section, listIcon = <FaChevronRight /> }) => {
|
|
10
10
|
const menuArray = getFirstModuleByName(section, 'menu');
|
|
11
11
|
return (
|
|
12
12
|
<div className={styles?.linkMenuContainer || ''}>
|
|
13
13
|
<div className={styles?.linkMenuContent || ''}>
|
|
14
|
-
<LinkList lists={menuArray} listIcon={
|
|
14
|
+
<LinkList lists={menuArray} listIcon={listIcon} gtmClass="link-menu-gtm" />
|
|
15
15
|
</div>
|
|
16
16
|
</div>
|
|
17
17
|
);
|
|
18
18
|
};
|
|
19
19
|
|
|
20
20
|
LinkMenu.propTypes = {
|
|
21
|
+
listIcon: PropTypes.element,
|
|
21
22
|
section: PropTypes.shape({
|
|
22
23
|
modules: PropTypes.arrayOf(
|
|
23
24
|
PropTypes.shape({
|
|
@@ -49,13 +49,14 @@ export default function Ratings({ item, type, numOfStars = 5, currency = '€' }
|
|
|
49
49
|
<p className={styles?.label || ''}>
|
|
50
50
|
{translate(translations, translationKey, fieldLabel)}
|
|
51
51
|
</p>
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
52
|
+
|
|
53
|
+
{valueDiplayed === 'TBA' ? (
|
|
54
|
+
<p className={`${styles?.value || ''} ${styles?.tbaValue}`}>
|
|
55
|
+
{translate(translations, 'tba', 'TBA')}
|
|
56
|
+
</p>
|
|
57
|
+
) : (
|
|
58
|
+
valueDiplayed
|
|
59
|
+
)}
|
|
59
60
|
</li>
|
|
60
61
|
);
|
|
61
62
|
})}
|
|
@@ -39,29 +39,8 @@
|
|
|
39
39
|
@include min(tablet) {
|
|
40
40
|
margin-bottom: inherit;
|
|
41
41
|
}
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
.label {
|
|
45
|
-
font-weight: 700;
|
|
46
|
-
font-size: 12px;
|
|
47
|
-
line-height: 20px;
|
|
48
|
-
color: #1c1a28;
|
|
49
|
-
padding-bottom: 0.8rem;
|
|
50
|
-
text-align: center;
|
|
51
|
-
|
|
52
|
-
@include min(tablet) {
|
|
53
|
-
font-size: 14px;
|
|
54
|
-
line-height: 22px;
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
.value {
|
|
59
|
-
font-weight: 700;
|
|
60
|
-
font-size: 18px;
|
|
61
|
-
line-height: 28px;
|
|
62
|
-
color: #1c1a28;
|
|
63
|
-
display: flex;
|
|
64
42
|
|
|
43
|
+
// Star rating
|
|
65
44
|
> div {
|
|
66
45
|
display: inline-flex;
|
|
67
46
|
align-items: center;
|
|
@@ -90,6 +69,28 @@
|
|
|
90
69
|
}
|
|
91
70
|
}
|
|
92
71
|
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.label {
|
|
75
|
+
font-weight: 700;
|
|
76
|
+
font-size: 12px;
|
|
77
|
+
line-height: 20px;
|
|
78
|
+
color: #1c1a28;
|
|
79
|
+
padding-bottom: 0.8rem;
|
|
80
|
+
text-align: center;
|
|
81
|
+
|
|
82
|
+
@include min(tablet) {
|
|
83
|
+
font-size: 14px;
|
|
84
|
+
line-height: 22px;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.value {
|
|
89
|
+
font-weight: 700;
|
|
90
|
+
font-size: 18px;
|
|
91
|
+
line-height: 28px;
|
|
92
|
+
color: #1c1a28;
|
|
93
|
+
display: flex;
|
|
93
94
|
|
|
94
95
|
> svg {
|
|
95
96
|
width: 2rem;
|
|
@@ -26,7 +26,7 @@ describe('summary component', () => {
|
|
|
26
26
|
expect(container).toBeTruthy();
|
|
27
27
|
|
|
28
28
|
// Bonus
|
|
29
|
-
expect(getByText('100%
|
|
29
|
+
expect(getByText('100% up to €1,000')).toBeTruthy();
|
|
30
30
|
|
|
31
31
|
// Logo and Background Img
|
|
32
32
|
// expect(container.querySelector('img')).toBeFalsy();
|
|
@@ -57,7 +57,9 @@ const Modules = ({ module, page, pageContext, index, exclOperator }) => {
|
|
|
57
57
|
}
|
|
58
58
|
return null;
|
|
59
59
|
case 'bonus':
|
|
60
|
-
return loadable(() =>
|
|
60
|
+
return loadable(() =>
|
|
61
|
+
import('gatsby-core-theme/src/components/molecules/bonus/template-one')
|
|
62
|
+
);
|
|
61
63
|
case 'image':
|
|
62
64
|
return loadable(() => import('gatsby-core-theme/src/components/atoms/image'));
|
|
63
65
|
case 'spotlights':
|
|
@@ -86,7 +86,7 @@ function Body({ pageContext, children, excludeTemplateInPopup = [], hideOperator
|
|
|
86
86
|
|
|
87
87
|
const OperatorBanner =
|
|
88
88
|
pageType === 'operator' && !hideBanner && !hideOperatorBanner
|
|
89
|
-
? loadable(() => import(`gatsby-core-theme/src/components/molecules/
|
|
89
|
+
? loadable(() => import(`gatsby-core-theme/src/components/molecules/bonus/template-two`))
|
|
90
90
|
: null;
|
|
91
91
|
|
|
92
92
|
const CookieModal = !cookieConsentAccepted
|