gatsby-matrix-theme 3.2.4 → 3.2.8

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 (45) hide show
  1. package/CHANGELOG.md +55 -0
  2. package/package.json +2 -2
  3. package/src/components/atoms/cards/base-card/index.js +14 -12
  4. package/src/components/atoms/table/banking/banking.module.scss +3 -2
  5. package/src/components/molecules/faq/faq.module.scss +2 -1
  6. package/src/components/molecules/faq/index.js +9 -7
  7. package/src/components/organisms/toplist/list/index.js +1 -1
  8. package/src/gatsby-core-theme/components/atoms/bonus/bonus.module.scss +5 -5
  9. package/src/gatsby-core-theme/components/atoms/bonus/index.js +4 -4
  10. package/src/gatsby-core-theme/components/atoms/module-title/index.js +27 -21
  11. package/src/gatsby-core-theme/components/atoms/module-title/module-title.module.scss +2 -4
  12. package/src/gatsby-core-theme/components/molecules/content/index.js +3 -2
  13. package/src/gatsby-core-theme/components/organisms/head/index.js +0 -1
  14. package/src/gatsby-core-theme/components/organisms/search/index.js +1 -1
  15. package/src/gatsby-core-theme/styles/utils/variables/_main.scss +1 -1
  16. package/storybook/public/{0.4c2881f4.iframe.bundle.js → 0.0416b9e8.iframe.bundle.js} +1 -1
  17. package/storybook/public/{1.318fc035.iframe.bundle.js → 1.02a42b9a.iframe.bundle.js} +1 -1
  18. package/storybook/public/{10.ff8f20a0.iframe.bundle.js → 10.3d48be86.iframe.bundle.js} +1 -1
  19. package/storybook/public/{11.a965ed36.iframe.bundle.js → 11.3e5dcd6e.iframe.bundle.js} +1 -1
  20. package/storybook/public/{12.f31f86bb.iframe.bundle.js → 12.be3dbae0.iframe.bundle.js} +1 -1
  21. package/storybook/public/{13.c72a573a.iframe.bundle.js → 13.4c418d5e.iframe.bundle.js} +1 -1
  22. package/storybook/public/{14.454a253c.iframe.bundle.js → 14.13d10e61.iframe.bundle.js} +1 -1
  23. package/storybook/public/{15.baadf857.iframe.bundle.js → 15.2a8de093.iframe.bundle.js} +1 -1
  24. package/storybook/public/{16.9d6c22db.iframe.bundle.js → 16.e735ba7a.iframe.bundle.js} +1 -1
  25. package/storybook/public/{5.3751341c.iframe.bundle.js → 5.838cb66b.iframe.bundle.js} +3 -3
  26. package/storybook/public/{5.3751341c.iframe.bundle.js.LICENSE.txt → 5.838cb66b.iframe.bundle.js.LICENSE.txt} +0 -0
  27. package/storybook/public/5.838cb66b.iframe.bundle.js.map +1 -0
  28. package/storybook/public/{6.78854fa8.iframe.bundle.js → 6.df5f19c4.iframe.bundle.js} +1 -1
  29. package/storybook/public/7.78ac2f73.iframe.bundle.js +1 -0
  30. package/storybook/public/{8.88be3011.iframe.bundle.js → 8.447f6c90.iframe.bundle.js} +1 -1
  31. package/storybook/public/{9.c2b37d15.iframe.bundle.js → 9.45f5f8ec.iframe.bundle.js} +3 -3
  32. package/storybook/public/{9.c2b37d15.iframe.bundle.js.LICENSE.txt → 9.45f5f8ec.iframe.bundle.js.LICENSE.txt} +0 -0
  33. package/storybook/public/9.45f5f8ec.iframe.bundle.js.map +1 -0
  34. package/storybook/public/iframe.html +1 -1
  35. package/storybook/public/main.83dd99d7.iframe.bundle.js +1 -0
  36. package/storybook/public/{runtime~main.0dbefcaa.iframe.bundle.js → runtime~main.f9464c0b.iframe.bundle.js} +1 -1
  37. package/storybook/public/vendors~main.b98fc72a.iframe.bundle.js +7 -0
  38. package/storybook/public/{vendors~main.2b406462.iframe.bundle.js.LICENSE.txt → vendors~main.b98fc72a.iframe.bundle.js.LICENSE.txt} +0 -0
  39. package/storybook/public/vendors~main.b98fc72a.iframe.bundle.js.map +1 -0
  40. package/storybook/public/5.3751341c.iframe.bundle.js.map +0 -1
  41. package/storybook/public/7.7dfb34cd.iframe.bundle.js +0 -1
  42. package/storybook/public/9.c2b37d15.iframe.bundle.js.map +0 -1
  43. package/storybook/public/main.30a5eba0.iframe.bundle.js +0 -1
  44. package/storybook/public/vendors~main.2b406462.iframe.bundle.js +0 -7
  45. package/storybook/public/vendors~main.2b406462.iframe.bundle.js.map +0 -1
package/CHANGELOG.md CHANGED
@@ -1,3 +1,58 @@
1
+ ## [3.2.8](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v3.2.7...v3.2.8) (2022-01-11)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * bonus remove extra div ([5e108d0](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/5e108d024d9e671d9e12192436bb1c183a804977))
7
+ * removed extra div in module title ([a483704](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/a4837049445250db1641d49e055a173ac77d42cd))
8
+ * removing extra divs ([1280197](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/12801975b30e758820e3a405a3e1eaafe02a45c9))
9
+ * test bonus ([3bb0bd7](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/3bb0bd7713067852232579d62928902a1116c3fa))
10
+ * updated core version and updated cards html ([6c22ad7](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/6c22ad752db25073d21e0d36d0b344bc39d1d6ad))
11
+
12
+
13
+ ### Config
14
+
15
+ * changed site ([20d1730](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/20d17303c4e8716d82a7d57d2b0c1d67b44620e0))
16
+ * updated theme ([f5304b1](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/f5304b1efd50e45d3b72cc846e1bd7abae6fe41c))
17
+
18
+
19
+ * Merge branch 'cards-improvments' into 'master' ([fa54f54](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/fa54f549817558c2a57441f9d49cc14d39634fd1))
20
+
21
+ ## [3.2.7](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v3.2.6...v3.2.7) (2022-01-10)
22
+
23
+
24
+ ### Bug Fixes
25
+
26
+ * content images ([11111d4](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/11111d431cf136001f908fe54fc866c5feaf74cf))
27
+
28
+ ## [3.2.6](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v3.2.5...v3.2.6) (2022-01-05)
29
+
30
+
31
+ ### Config
32
+
33
+ * update theme version ([c08d8cc](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/c08d8cc6e17de76e947deafbf699bc6287ec64cc))
34
+
35
+ ## [3.2.5](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v3.2.4...v3.2.5) (2022-01-05)
36
+
37
+
38
+ ### Code Refactoring
39
+
40
+ * revert score gauge css for svg ([7fa0ffb](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/7fa0ffb36844e4c3138c514f7ab979a3e092d035))
41
+ * update charset, faq container, search close btn ([1237626](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/1237626465c3d6a9ee1319efee2a500aadbac3ce))
42
+ * update main font, empty classes, toplist title container ([3fef52f](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/3fef52fdf4bfcb36dedd0ed41a4dfd387d87eecc))
43
+ * update meta html.js ([2b28e3b](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/2b28e3b29c3a52a0e599f7d150e16fbdc6e3c2ad))
44
+ * update meta viewport for accessibility score ([fee21d7](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/fee21d7080549964eae87017907d465b492e5621))
45
+
46
+
47
+ ### Config
48
+
49
+ * update core version ([c19beba](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/c19bebaed7db3f091eb58595584d21959ecd651f))
50
+
51
+
52
+ * Merge branch 'tm-2567-update-theme-for-w3-validator' into 'master' ([074e89e](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/074e89ef00f88cfe7a589683da6d18af5f76765b))
53
+ * Merge branch 'master' into tm-2567-update-theme-for-w3-validator ([76dd580](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/76dd5804d1adb8de1c1534fb964443cdd25534d6))
54
+ * Merge branch 'master' into tm-2567-update-theme-for-w3-validator ([0ec7c3c](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/0ec7c3c798ad10fcbe698999e376178903972e79))
55
+
1
56
  ## [3.2.4](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v3.2.3...v3.2.4) (2022-01-05)
2
57
 
3
58
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gatsby-matrix-theme",
3
- "version": "3.2.4",
3
+ "version": "3.2.8",
4
4
  "main": "index.js",
5
5
  "description": "Matrix Theme NPM Package",
6
6
  "author": "",
@@ -31,7 +31,7 @@
31
31
  "cross-env": "^7.0.2",
32
32
  "dotenv": "8.2.0",
33
33
  "gatsby": "^3.3.1",
34
- "gatsby-core-theme": "^2.0.14",
34
+ "gatsby-core-theme": "^2.0.19",
35
35
  "gatsby-image": "^3.3.0",
36
36
  "gatsby-plugin-image": "^1.3.1",
37
37
  "gatsby-plugin-postcss": "^4.3.0",
@@ -22,18 +22,20 @@ const BaseCard = ({
22
22
  );
23
23
 
24
24
  return (
25
- <div className={`${styles.baseCard} ${styles[cardType]} ${featured ? styles.featured : ''}`}>
26
- <div className={styles.cardWrapper}>
27
- {featured &&
28
- (isLinked ? (
29
- <Link to={path} title={title} className={`${styles.cardLink} base-card-gtm`}>
30
- {imgContent}
31
- </Link>
32
- ) : (
33
- <div className={styles.cardLink}>{imgContent}</div>
34
- ))}
35
- {children}
36
- </div>
25
+ <div
26
+ className={`${styles.baseCard} ${styles[cardType]} ${featured ? styles.featured : ''} ${
27
+ styles.cardWrapper
28
+ }`}
29
+ >
30
+ {featured &&
31
+ (isLinked ? (
32
+ <Link to={path} title={title} className={`${styles.cardLink} base-card-gtm`}>
33
+ {imgContent}
34
+ </Link>
35
+ ) : (
36
+ <div className={styles.cardLink}>{imgContent}</div>
37
+ ))}
38
+ {children}
37
39
  </div>
38
40
  );
39
41
  };
@@ -1,9 +1,10 @@
1
1
  .contain {
2
- @include flex-align(column, center);
2
+ @include flex-align(stretch, center);
3
3
  @include flex-direction(column);
4
4
  min-height: 12rem;
5
5
  .row {
6
- @include flex-align(row, space-between);
6
+ @include flex-align(stretch, space-between);
7
+ @include flex-direction(row);
7
8
  padding: 0 1.5rem;
8
9
  strong {
9
10
  max-width: 12rem;
@@ -26,7 +26,8 @@
26
26
  @include flex-align (center, center);
27
27
  margin-right: 0.5rem;
28
28
  }
29
- > div{
29
+ > span{
30
+ display: block;
30
31
  margin: 0;
31
32
  margin-right: 2rem;
32
33
  font-weight: 700;
@@ -66,14 +66,16 @@ const Faq = ({ module, openAll = true, openItem, closeOthers = false, icon = ''
66
66
  type="button"
67
67
  ref={(el) => (btnRefs.current[index] = el)}
68
68
  >
69
- <div className={styles.icon}>
70
- {icon && <div className={styles.circle}>{icon} </div>}
71
- <div dangerouslySetInnerHTML={{ __html: item.question }} />
72
- </div>
69
+ <span className={styles.icon}>
70
+ {icon && <span className={styles.circle}>{icon} </span>}
71
+ <span dangerouslySetInnerHTML={{ __html: item.question }} />
72
+ </span>
73
73
  </button>
74
- <div className={styles.content} ref={(el) => (itemRefs.current[index] = el)}>
75
- <div dangerouslySetInnerHTML={{ __html: item.answer }} />
76
- </div>
74
+ <div
75
+ className={styles.content}
76
+ ref={(el) => (itemRefs.current[index] = el)}
77
+ dangerouslySetInnerHTML={{ __html: item.answer }}
78
+ />
77
79
  </div>
78
80
  ))}
79
81
  </div>
@@ -56,7 +56,7 @@ export default function List({
56
56
  <ul className={styles.list} key={keygen()}>
57
57
  {toplist.items.map((item, index) => (
58
58
  <li
59
- className={index + 1 <= initLoadItems ? styles.show : ''}
59
+ className={index + 1 <= initLoadItems ? styles.show : null}
60
60
  key={keygen()}
61
61
  ref={(el) => addToRefs(el, index)}
62
62
  >
@@ -1,15 +1,15 @@
1
- .bonus {
2
- @include flex-direction(column);
3
- div:first-child {
1
+ // .bonus {
2
+ // @include flex-direction(column);
3
+ .title {
4
4
  font-size: 2rem;
5
5
  font-weight: 700;
6
6
  color: var(--primary-color);
7
7
  padding-right: 1rem;
8
8
  }
9
- div:nth-child(2) {
9
+ .desc {
10
10
  font-size: 1.6rem;
11
11
  color: var(--color-22);
12
12
  font-weight: 700;
13
13
  padding: 0.5rem 0;
14
14
  }
15
- }
15
+ // }
@@ -20,10 +20,10 @@ export default function Bonus({ item, tracker }) {
20
20
  }
21
21
 
22
22
  return (
23
- <div className={styles.bonus}>
24
- {!isInoperative && <div className={styles.title}>{mainLine && mainLine}</div>}
25
- {!isInoperative && <div className={styles.desc}>{secondLine && `+${secondLine}`}</div>}
26
- </div>
23
+ <>
24
+ {!isInoperative && <p className={styles.title}>{mainLine && mainLine}</p>}
25
+ {!isInoperative && <p className={styles.desc}>{secondLine && `+${secondLine}`}</p>}
26
+ </>
27
27
  );
28
28
  }
29
29
 
@@ -76,28 +76,34 @@ const ModuleTitle = ({ module, viewMoreIcon = <FaAngleRight />, pageContext = nu
76
76
 
77
77
  const template = pageContext && pageContext?.page?.template;
78
78
  return (
79
- <div className={`${tabsToplist ? styles.tabsToplist : null}`}>
80
- {(module.module_title ||
81
- module.link_label ||
82
- (module.title && (module.name === 'cards' || module.name === 'top_list'))) && (
83
- <div
84
- className={`${styles.moduleTitle} ${styles[template]} ${
85
- module?.style && styles[module.style]
86
- }`}
87
- >
88
- <span className={styles.spanToplist}>
89
- {(module?.title || module.module_title) && getTitle(module)}
90
- </span>
91
-
92
- {module.link_label && (
93
- <Link to={module.link_value} className={`${styles.viewMore} module-title-gtm`}>
94
- {module.link_label}
95
- {viewMoreIcon}
96
- </Link>
97
- )}
79
+ (module.module_title ||
80
+ (module.title && (module.name === 'cards' || module.name === 'top_list'))) &&
81
+ (module.link_label ? (
82
+ <div
83
+ className={`${styles.moduleTitle} ${styles[template]} ${
84
+ module?.style && styles[module.style]
85
+ } ${tabsToplist ? styles.tabsToplist : null}`}
86
+ >
87
+ <div className={styles.toplistTitle}>
88
+ {(module?.title || module.module_title) && getTitle(module)}
98
89
  </div>
99
- )}
100
- </div>
90
+
91
+ {module.link_label && (
92
+ <Link to={module.link_value} className={`${styles.viewMore} module-title-gtm`}>
93
+ {module.link_label}
94
+ {viewMoreIcon}
95
+ </Link>
96
+ )}
97
+ </div>
98
+ ) : (
99
+ <div
100
+ className={`${styles.moduleTitle} ${styles[template]} ${
101
+ module?.style && styles[module.style]
102
+ } ${styles.toplistTitle} ${tabsToplist ? styles.tabsToplist : null}`}
103
+ >
104
+ {(module?.title || module.module_title) && getTitle(module)}
105
+ </div>
106
+ ))
101
107
  );
102
108
  };
103
109
 
@@ -30,7 +30,8 @@
30
30
  position: relative;
31
31
  left: -217px;
32
32
  }
33
- .spanToplist{
33
+ .toplistTitle{
34
+ display: flex;
34
35
  h2{
35
36
  max-width: 461px;
36
37
  @include min(laptop){
@@ -47,6 +48,3 @@
47
48
  position: relative;
48
49
  bottom: 2px;
49
50
  }
50
- .spanToplist{
51
- display: flex;
52
- }
@@ -34,12 +34,13 @@ const Content = ({ module }) => {
34
34
  }
35
35
  const lazyProps = {
36
36
  src: node.attribs.src,
37
- width: node.attribs.width,
38
- height: node.attribs.height,
37
+ width: node.attribs.width && node.attribs.width.replace('px', ''),
38
+ height: node.attribs.height && node.attribs.height.replace('px', ''),
39
39
  style: node.attribs.style ? parseCss(node.attribs.style) : null,
40
40
  alt: node.attribs.alt ? node.attribs.alt : 'missing alt',
41
41
  className: styles[stylesClass],
42
42
  };
43
+
43
44
  return <LazyImage {...lazyProps} />;
44
45
  }
45
46
 
@@ -51,7 +51,6 @@ const Head = ({ page = {}, siteInfo }) => {
51
51
  return (
52
52
  <>
53
53
  <Helmet>
54
- <meta charSet="utf-8" />
55
54
  <title>{page.meta_title}</title>
56
55
  <html lang={getLanguage(page.language)} />
57
56
  <meta name="description" content={parsedMetaDescr} />
@@ -75,7 +75,7 @@ const SearchForm = ({ className, searchIcon, iconWidth = 24, iconHeight = 24 })
75
75
  ) : (
76
76
  <img alt="search" src={searchIcon} width={iconWidth} height={iconHeight} />
77
77
  )}
78
- <div className={styles.close} />
78
+ {styles.close && <span className={styles.close} />}
79
79
  </button>
80
80
  {showSearch && (
81
81
  <div
@@ -21,7 +21,7 @@
21
21
  --empty-star-border-color: grey;
22
22
  --selling-point-icon-color: #00889e;
23
23
 
24
- --main-font: sans-serif;
24
+ --main-font: Roboto, sans-serif;
25
25
 
26
26
  --module-spacing: 2rem;
27
27
  --side-container: 30rem;