gatsby-matrix-theme 37.0.23 → 37.0.25

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.
Files changed (38) hide show
  1. package/.storybook/main.js +4 -1
  2. package/CHANGELOG.md +26 -0
  3. package/package.json +2 -2
  4. package/src/components/atoms/recommended-operators/index.js +13 -2
  5. package/src/components/atoms/recommended-operators/recommended-operators.module.scss +38 -28
  6. package/src/gatsby-core-theme/components/molecules/module/index.js +7 -4
  7. package/storybook/public/{28.ed292934.iframe.bundle.js → 182.47d823d2.iframe.bundle.js} +4 -4
  8. package/storybook/public/182.47d823d2.iframe.bundle.js.map +1 -0
  9. package/storybook/public/43.3fe696b4.iframe.bundle.js +1 -0
  10. package/storybook/public/555.6eba6df4.iframe.bundle.js +1 -0
  11. package/storybook/public/60.ff674703.iframe.bundle.js +1 -0
  12. package/storybook/public/809.09ed93ec.iframe.bundle.js +1 -0
  13. package/storybook/public/866.e7c9a1aa.iframe.bundle.js +1 -0
  14. package/storybook/public/933.e56e01a1.iframe.bundle.js +1 -0
  15. package/storybook/public/iframe.html +1 -1
  16. package/storybook/public/main.1b3593c6.iframe.bundle.js +2 -0
  17. package/storybook/public/runtime~main.90de754d.iframe.bundle.js +1 -0
  18. package/src/components/molecules/carousel/screenshot-slide/index.js +0 -34
  19. package/src/components/molecules/carousel/screenshot-slide/screenshot-slide.module.scss +0 -0
  20. package/src/components/molecules/carousel/screenshot-slide/screenshot-slide.test.js +0 -34
  21. package/src/components/organisms/anchor/template-two/index.js +0 -104
  22. package/src/components/organisms/anchor/template-two/template-two.module.scss +0 -138
  23. package/src/components/organisms/anchor/template-two/template-two.stories.js +0 -120
  24. package/src/components/organisms/anchor/template-two/template-two.test.js +0 -38
  25. package/src/gatsby-core-theme/components/organisms/carousel/carousel.module.scss +0 -29
  26. package/src/gatsby-core-theme/components/organisms/carousel/index.js +0 -88
  27. package/storybook/public/128.1d816ef4.iframe.bundle.js +0 -1
  28. package/storybook/public/28.ed292934.iframe.bundle.js.map +0 -1
  29. package/storybook/public/355.98fe7319.iframe.bundle.js +0 -1
  30. package/storybook/public/43.86c5498a.iframe.bundle.js +0 -1
  31. package/storybook/public/555.3898ed1b.iframe.bundle.js +0 -1
  32. package/storybook/public/60.c3ac15e1.iframe.bundle.js +0 -1
  33. package/storybook/public/809.764e8392.iframe.bundle.js +0 -1
  34. package/storybook/public/866.df95c862.iframe.bundle.js +0 -1
  35. package/storybook/public/main.88889240.iframe.bundle.js +0 -2
  36. package/storybook/public/runtime~main.43b1a993.iframe.bundle.js +0 -1
  37. /package/storybook/public/{28.ed292934.iframe.bundle.js.LICENSE.txt → 182.47d823d2.iframe.bundle.js.LICENSE.txt} +0 -0
  38. /package/storybook/public/{main.88889240.iframe.bundle.js.LICENSE.txt → main.1b3593c6.iframe.bundle.js.LICENSE.txt} +0 -0
@@ -7,7 +7,8 @@ module.exports = {
7
7
  '../src/**/**/**/**/*.stories.js',
8
8
  '../src/**/**/**/**/**/*.stories.js',
9
9
  '../../node_modules/gatsby-core-theme/src/components/organisms/navigation/navigation.stories.js',
10
- '../../node_modules/gatsby-core-theme/src/components/organisms/anchor/anchor.stories.js',
10
+ '../../node_modules/gatsby-core-theme/src/components/organisms/anchor/template-one/anchor.stories',
11
+ '../../node_modules/gatsby-core-theme/src/components/organisms/anchor/template-two/template-two.stories',
11
12
  '../../node_modules/gatsby-core-theme/src/components/molecules/bonus/template-one/bonus.stories.js',
12
13
  '../../node_modules/gatsby-core-theme/src/components/molecules/bonus/template-two/bonus.stories.js',
13
14
  '../../node_modules/gatsby-core-theme/src/components/molecules/content/text.stories.js',
@@ -18,6 +19,8 @@ module.exports = {
18
19
  '../../node_modules/gatsby-core-theme/src/components/molecules/content/table/table-one.stories.js',
19
20
  '../../node_modules/gatsby-core-theme/src/components/molecules/content/table/table-two.stories.js',
20
21
  '../../node_modules/gatsby-core-theme/src/components/molecules/pagination/pagination.stories.js',
22
+ '../../node_modules/gatsby-core-theme/src/components/organisms/carousel/template-one/template-one.stories',
23
+ '../../node_modules/gatsby-core-theme/src/components/organisms/carousel/template-two/template-two.stories',
21
24
  ],
22
25
  addons: ['@storybook/addon-links', '@storybook/addon-essentials'],
23
26
  env: (config) => ({
package/CHANGELOG.md CHANGED
@@ -1,3 +1,29 @@
1
+ ## [37.0.25](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v37.0.24...v37.0.25) (2023-12-05)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * added more props to the recommended casinos ([25b1141](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/25b1141f48c5279c6d6b14f4a3f3a8138944360b))
7
+ * align matrix ([70ab63f](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/70ab63f8f7dfbacf3b36e815d86533d48dc318ff))
8
+ * remove import ([5b2a74c](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/5b2a74c0f756a639d776d0914898407e6e0fb212))
9
+ * removed extra terms ([7c8b7ed](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/7c8b7ed790d7b76d1379d6f5d487c8bb95b7535a))
10
+ * turned off terms by default ([d94d556](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/d94d5565ee79f08fd12708bd070a263e33391f4e))
11
+ * update theme ([470fad0](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/470fad064b4c917825deb796a6fa8e2d860f552a))
12
+
13
+
14
+ * Merge branch 'align-matrix' into 'master' ([7dc4aa9](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/7dc4aa9065212d261a1429ce9a1ddcbaef3b06b6))
15
+ * Merge branch 'tm-3828-wagering-calculator' into 'master' ([6ea0934](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/6ea0934fc4d6310c158fa3cab0eec17341204ca6))
16
+
17
+ ## [37.0.24](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v37.0.23...v37.0.24) (2023-12-04)
18
+
19
+
20
+ ### Bug Fixes
21
+
22
+ * fixed styling and added prop for grouping coupon and cta ([0710c0e](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/0710c0e83656ba070a6c89d5186e82b124084fba))
23
+
24
+
25
+ * Merge branch 'tm-3828-wagering-calculator' into 'master' ([8ddc567](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/8ddc56725740b520996873e82c30379b649d9428))
26
+
1
27
  ## [37.0.23](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v37.0.22...v37.0.23) (2023-12-04)
2
28
 
3
29
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gatsby-matrix-theme",
3
- "version": "37.0.23",
3
+ "version": "37.0.25",
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": "30.0.28",
28
+ "gatsby-core-theme": "30.0.30",
29
29
  "gatsby-plugin-sharp": "^5.11.0",
30
30
  "gatsby-plugin-sitemap": "^3.3.0",
31
31
  "gatsby-transformer-sharp": "^5.11.0",
@@ -5,12 +5,14 @@ import { prettyTracker, getExtraField } from 'gatsby-core-theme/src/helpers/gett
5
5
 
6
6
  import Bonus from 'gatsby-core-theme/src/components/molecules/bonus-box/template-four';
7
7
  import OperatorCta from 'gatsby-core-theme/src/components/atoms/button/operator-cta';
8
+ import TermsConditions from 'gatsby-core-theme/src/components/molecules/tnc';
8
9
  import OperatorDetails from '../../molecules/operator-details';
9
10
  import Coupon from '../coupon';
10
11
  import styles from './recommended-operators.module.scss';
11
12
 
12
13
  const RecommendedOperators = ({
13
14
  showCouponCode = false,
15
+ showTerms = false,
14
16
  showRating = false,
15
17
  showAuthor = false,
16
18
  title = 'Recommended Casinos:',
@@ -41,9 +43,17 @@ const RecommendedOperators = ({
41
43
  </a>
42
44
  <div className={styles.operatorBonus}>
43
45
  <Bonus item={operator} tracker="main" />
46
+ {showTerms && <TermsConditions operator={operator} hasCollapse={false} />}
44
47
  </div>
45
- {showCouponCode && <Coupon code={couponCode} />}
46
- <OperatorCta operator={operator} tracker="main" buttonType={buttonType} />
48
+ {showCouponCode && (
49
+ <div className={styles.couponCtaContainer}>
50
+ {showCouponCode && <Coupon code={couponCode} />}
51
+ <OperatorCta operator={operator} tracker="main" buttonType={buttonType} />
52
+ </div>
53
+ )}
54
+ {!showCouponCode && (
55
+ <OperatorCta operator={operator} tracker="main" buttonType={buttonType} />
56
+ )}
47
57
  </div>
48
58
  );
49
59
  })}
@@ -55,6 +65,7 @@ export default RecommendedOperators;
55
65
  RecommendedOperators.propTypes = {
56
66
  showCouponCode: PropTypes.bool,
57
67
  showRating: PropTypes.bool,
68
+ showTerms: PropTypes.bool,
58
69
  showAuthor: PropTypes.bool,
59
70
  title: PropTypes.string,
60
71
  buttonType: PropTypes.string,
@@ -22,16 +22,17 @@
22
22
  > div {
23
23
  margin-bottom: 0.8rem;
24
24
  background: #f4f4f4;
25
- display: flex;
26
- align-items: center;
27
- grid-template-columns: 4rem 1fr;
25
+ @include flex-align(center, space-between);
28
26
  row-gap: 0.8rem;
29
27
  border-radius: 1.6rem;
30
28
  color: #fff;
31
29
  padding: 0.8rem;
32
- justify-content: space-between;
33
30
  column-gap: 0.8rem;
34
- @include min(tablet) {
31
+ flex-wrap: wrap;
32
+
33
+
34
+ @include min(mobile) {
35
+ flex-wrap: nowrap;
35
36
  row-gap: 1.6rem;
36
37
  padding: 1.2rem;
37
38
  }
@@ -40,21 +41,12 @@
40
41
  margin-bottom: 0;
41
42
  }
42
43
 
43
- a:first-child{
44
+ & > a:first-child{
44
45
  @include min(tablet){
45
- flex-basis: 30%;
46
- }
47
- .Logo.cta{
48
- height: 4rem;
49
- width: 4rem;
50
- @include min(tablet) {
51
- height: 6.4rem;
52
- width: auto;
53
- }
46
+ flex-basis: 35%;
54
47
  }
55
48
  }
56
49
 
57
-
58
50
  a:nth-child(2) {
59
51
  width: unset;
60
52
  > span{
@@ -72,32 +64,31 @@
72
64
  border-radius: 0.8rem;
73
65
  height: 100%;
74
66
  }
75
- a:last-child {
67
+ a:nth-child(3){
76
68
  padding: 0.8rem 1.6rem;
77
69
  font-size: 1.4rem;
78
70
  font-weight: 700;
79
- grid-column: 1/3;
71
+ width: 100%;
80
72
  @include min(mobile){
81
- grid-column: auto;
73
+ width: unset;
82
74
  }
83
75
  @include min(tablet) {
84
76
  padding: 0.9rem 3rem;
85
77
  width: unset;
86
78
  }
87
- }
79
+ }
88
80
 
89
81
  > div {
90
82
  &.operatorBonus{
91
- // flex-grow: inherit;
92
83
  flex-grow: 1;
84
+ flex-basis: 50%;
93
85
  @include flex-align(flex-start, center);
94
86
  @include flex-direction(column);
87
+
95
88
  @include min(tablet) {
96
- flex-basis: auto;
97
- flex-grow: 1;
98
89
  @include flex-align(center, flex-start);
99
90
  background-color: #fff;
100
-
91
+ padding: .8rem;
101
92
  min-height: 6.4rem;
102
93
  align-items: center;
103
94
  justify-content: center;
@@ -116,11 +107,31 @@
116
107
  line-height: 2.2rem;
117
108
  }
118
109
  }
110
+
111
+ > div{
112
+ font-size: 1rem;
113
+ color: #515156;
114
+ font-weight: 400;
115
+ text-align: left;
116
+
117
+ @include min(mobile){
118
+ padding: 0.4rem 0;
119
+ text-align: center;
120
+ display: inline-block;
121
+ }
122
+ }
119
123
  }
120
- &:not(.operatorBonus){
121
- flex-basis: 20%;
124
+ &.couponCtaContainer{
125
+ > div{ width: 100%; }
126
+ @include min(mobile-s)
127
+ {
128
+ display: grid;
129
+ grid-template-columns: 1fr 1fr;
130
+ gap: .8rem;
131
+ flex-basis: 100%;
132
+ }
122
133
  @include min(tablet){
123
- flex-basis: 15%;
134
+ flex-basis: 30%;
124
135
  }
125
136
  button{
126
137
  width: 100%;
@@ -131,7 +142,6 @@
131
142
  }
132
143
 
133
144
  .operatorDetails {
134
- gap: .8rem;
135
145
  div{
136
146
  display: none;
137
147
  @include min(tablet){
@@ -39,18 +39,21 @@ const Modules = ({ module, pageContext, index, exclOperator }) => {
39
39
  case 'anchor':
40
40
  if (items && items.length > 0) {
41
41
  if (style === 'template_two') {
42
- return loadable(() => import('../../../../components/organisms/anchor/template-two'));
42
+ return loadable(() =>
43
+ import('gatsby-core-theme/src/components/organisms/anchor/template-two')
44
+ );
43
45
  }
44
- return loadable(() => import('gatsby-core-theme/src/components/organisms/anchor'));
46
+ return loadable(() =>
47
+ import('gatsby-core-theme/src/components/organisms/anchor/template-one')
48
+ );
45
49
  }
46
-
47
50
  return null;
48
51
  case 'carousel':
49
52
  if (
50
53
  items.length > 0 && // has items
51
54
  items.filter((item) => item.image === null).length === 0 // not filled with null items
52
55
  ) {
53
- return loadable(() => import('../../organisms/carousel'));
56
+ return loadable(() => import('gatsby-core-theme/src/components/organisms/carousel'));
54
57
  }
55
58
  return null;
56
59
  case 'bonus':