gatsby-matrix-theme 9.0.0 → 9.0.2

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 CHANGED
@@ -1,3 +1,35 @@
1
+ ## [9.0.2](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v9.0.1...v9.0.2) (2022-11-07)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * horse calculator styling ([124798a](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/124798aba7dd1b89086e8a901373ce5417c2ce17))
7
+ * updaet date ([58e2916](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/58e29166ebdc5ac4262362c36962aaa32f33de7c))
8
+ * updated to latest core version ([42998d1](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/42998d1e7a291cbfe0a090b71efa7dd69f23a79b))
9
+
10
+
11
+ * Merge branch 'master' of git.ilcd.rocks:team-floyd/themes/matrix-theme ([e003101](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/e0031010e5aed9304d06051a71dd74e2f2e35537))
12
+ * Merge branch 'tm-3061-update-date' into 'master' ([26a28f0](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/26a28f086f9be1f111831f2df8b77c4f0aac6656))
13
+
14
+ ## [9.0.1](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v9.0.0...v9.0.1) (2022-11-03)
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * added props ([4255f20](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/4255f208c9c93921c1753b0b5d4f08e0b14575a7))
20
+ * moduel title ([37e2bb9](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/37e2bb9dfdc05371fd8bdd6c7c2470af8805c798))
21
+ * module title ([e0ddc21](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/e0ddc2198a54c781c04fe45f85f74641632e840e))
22
+ * module title matrix ([7a3f9fe](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/7a3f9fe928412651626c487aafb83f392e5641e2))
23
+ * removed margin/padding tops added margin/padding bottom ([584844d](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/584844d1fbc2c19cb6adb6a160a95026b0b2a10a))
24
+ * removed some conditions ([8c0bda6](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/8c0bda6785f17f84d0adb56501a6514f2b1256ae))
25
+ * typo ([1d60a2a](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/1d60a2a9e7249a2e5af3782ff78fcca0cf2e983b))
26
+ * updated to latest core version ([80ef3d7](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/80ef3d73c07697615a35e53ccda1c32ae89c31f7))
27
+
28
+
29
+ * Merge branch 'master' of git.ilcd.rocks:team-floyd/themes/matrix-theme ([3eca20e](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/3eca20e1bd73dbd08e638588bd31d1b9d34eb247))
30
+ * Merge branch 'tm-3062-module-top-bottom-spacing' into 'master' ([7228573](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/7228573261deab4a0804e6cadb1e55a1b9ff8842))
31
+ * Merge branch 'tm-3050-module-title-matrix' into 'master' ([0b83460](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/0b83460e911740d37f6d9ba1e0fc32c65a71a95e))
32
+
1
33
  # [9.0.0](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v8.0.8...v9.0.0) (2022-11-02)
2
34
 
3
35
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gatsby-matrix-theme",
3
- "version": "9.0.0",
3
+ "version": "9.0.2",
4
4
  "main": "index.js",
5
5
  "description": "Matrix Theme NPM Package",
6
6
  "author": "",
@@ -24,7 +24,7 @@
24
24
  },
25
25
  "dependencies": {
26
26
  "gatsby": "^4.20.0",
27
- "gatsby-core-theme": "14.0.1",
27
+ "gatsby-core-theme": "14.0.3",
28
28
  "gatsby-plugin-sharp": "^4.10.2",
29
29
  "gatsby-plugin-sitemap": "^3.3.0",
30
30
  "gatsby-transformer-sharp": "^4.10.0",
@@ -18,7 +18,7 @@ import BaseCard from '../base-card';
18
18
  import styles from './article-card.module.scss';
19
19
 
20
20
  const ArticleCard = ({ item, width, height, authorImage = false }) => {
21
- const { author, created_at, title, path, banner } = item;
21
+ const { author, updated_at, created_at, title, path, banner } = item;
22
22
  const pictureSource = {
23
23
  webp: '../../../../../../../images/default-article.webp',
24
24
  fallback: '../../../../../../../images/default-article.jpg',
@@ -61,7 +61,7 @@ const ArticleCard = ({ item, width, height, authorImage = false }) => {
61
61
  <Author
62
62
  prefix="by"
63
63
  name={AuthorName}
64
- date={created_at}
64
+ date={updated_at || created_at}
65
65
  isCardsAuthor
66
66
  authorImg={authorImage ? item?.author?.image : false}
67
67
  />
@@ -80,6 +80,7 @@ ArticleCard.propTypes = {
80
80
  image: PropTypes.string,
81
81
  }),
82
82
  title: PropTypes.string,
83
+ updated_at: PropTypes.string,
83
84
  created_at: PropTypes.string,
84
85
  path: PropTypes.string,
85
86
  banner: PropTypes.string,
@@ -227,3 +227,7 @@
227
227
  .outcomeColumn {
228
228
  min-width: 20rem;
229
229
  }
230
+
231
+ .oddsColumn {
232
+ min-width: 9rem;
233
+ }
@@ -341,7 +341,7 @@ const HorseCalculator = () => {
341
341
  <tr>
342
342
  <th>#</th>
343
343
  <th className={styles.outcomeColumn}>Outcome</th>
344
- <th>Odds</th>
344
+ <th className={styles.oddsColumn}>Odds</th>
345
345
  {eachWay === 'Yes' && <th>Place Odds</th>}
346
346
  {ruleFour === 'Yes' && <th>Rule 4</th>}
347
347
  </tr>
@@ -1,9 +1,10 @@
1
1
  .moduleTitle {
2
2
  @include flex-align(center, space-between);
3
+ margin-bottom: 1rem !important;
3
4
 
4
5
  .noTag {
5
6
  display: block;
6
- margin-bottom: 1rem;
7
+ margin-bottom: 1.2rem !important;
7
8
  }
8
9
 
9
10
  .viewMore {
@@ -1,7 +1,6 @@
1
1
  .content {
2
2
  width: auto !important;
3
3
  max-width: calc(var(--main-container-max) - 48px) !important;
4
- margin-top: 1rem !important;
5
4
  margin-bottom: 1rem !important;
6
5
 
7
6
  img {
@@ -129,10 +128,6 @@
129
128
  #{$heading},
130
129
  .#{$heading} {
131
130
  margin-bottom: 1rem;
132
-
133
- &:not(:first-child) {
134
- margin-top: 2rem;
135
- }
136
131
  }
137
132
  }
138
133
 
@@ -83,7 +83,7 @@ const Content = ({ module, isHomepageFirstModule = false }) => {
83
83
  <>
84
84
  <div
85
85
  className={`${styles.content} ${showMore && styles.showMore} ${switchStyle(module.style)} ${
86
- isHomepageFirstModule && styles.homepageFirstModule
86
+ isHomepageFirstModule && styles.homepageFirstModuleContent
87
87
  }`}
88
88
  >
89
89
  {module.value &&
@@ -3,6 +3,7 @@
3
3
  position: relative;
4
4
  z-index: 0;
5
5
  margin-top: var(--nav-height);
6
+ margin-bottom: 2rem;
6
7
 
7
8
  .headerImage {
8
9
  position: absolute;
@@ -127,7 +127,9 @@ const Modules = ({ module, page, pageContext, index, exclOperator }) => {
127
127
  style={module.background_color && moduleBackgroundColor}
128
128
  className={`${styles[moduleClassName] !== undefined ? styles[moduleClassName] : ''} ${
129
129
  module.name
130
- } ${styles.module} ${module?.style && styles[module.style]} module`}
130
+ } ${styles.module} ${module?.style && styles[module.style]} module ${
131
+ homepageFirstModule && styles.isHomepageFirstModule
132
+ }`}
131
133
  >
132
134
  {module.name !== 'top_list' && (
133
135
  <ModuleTitle module={module} isHomepageFirstModule={homepageFirstModule} />
@@ -1,5 +1,6 @@
1
1
  .module {
2
2
  background-color: var(--module-background-color);
3
+ padding-bottom: var(--module-bottom-spacing);
3
4
  }
4
5
 
5
6
  .contentModule {
@@ -32,6 +32,8 @@ const TopList = ({
32
32
  </div>
33
33
  ));
34
34
 
35
+ const moduleStyle = module?.style;
36
+
35
37
  const Tabs = showTabs && loadable(() => import('~hooks/tabs'));
36
38
  const Title =
37
39
  !showTabs &&
@@ -45,6 +47,7 @@ const TopList = ({
45
47
  module={module}
46
48
  tabsAlign="right"
47
49
  gtmClass="toplist-tabs-menu-gtm"
50
+ moduleStyle={moduleStyle}
48
51
  isHomepageFirstModule={isHomepageFirstModule}
49
52
  >
50
53
  {content}
@@ -53,10 +56,19 @@ const TopList = ({
53
56
  <>
54
57
  {Title && (
55
58
  <div className={`${styles.tabsHeader} ${styles.titleAndTab}`}>
56
- <Title isHomepageFirstModule={isHomepageFirstModule} module={module} />
59
+ <Title
60
+ module={module}
61
+ moduleStyle={moduleStyle}
62
+ isHomepageFirstModule={isHomepageFirstModule}
63
+ />
57
64
  </div>
58
65
  )}
59
- {ModuleIntro && <ModuleIntro module={{ value: module.module_introduction }} />}
66
+ {ModuleIntro && (
67
+ <ModuleIntro
68
+ module={{ value: module.module_introduction }}
69
+ isHomepageFirstModule={isHomepageFirstModule}
70
+ />
71
+ )}
60
72
  {content}
61
73
  </>
62
74
  );
@@ -16,6 +16,7 @@ const Tabs = ({
16
16
  HeaderComp,
17
17
  headerClass = '',
18
18
  gtmClass = '',
19
+ moduleStyle,
19
20
  isHomepageFirstModule = false,
20
21
  }) => {
21
22
  const showAllTabId = `${showAll}_0`;
@@ -36,8 +37,18 @@ const Tabs = ({
36
37
  return (
37
38
  <>
38
39
  <div className={tabHeaderClass}>
39
- <div className={styles.titleAndTab}>
40
- {Title && <Title isHomepageFirstModule={isHomepageFirstModule} module={module} />}
40
+ <div
41
+ className={`${styles.titleAndTab} ${moduleStyle && styles[moduleStyle]} ${
42
+ isHomepageFirstModule && styles.isHomepageFirstModule
43
+ }`}
44
+ >
45
+ {Title && (
46
+ <Title
47
+ module={module}
48
+ moduleStyle={moduleStyle}
49
+ isHomepageFirstModule={isHomepageFirstModule}
50
+ />
51
+ )}
41
52
  {TabList && (
42
53
  <TabList
43
54
  siteName={siteName}
@@ -58,7 +69,12 @@ const Tabs = ({
58
69
  </div>
59
70
  {HeaderComp && <div className={styles.headerComp}>{HeaderComp}</div>}
60
71
  </div>
61
- {ModuleIntro && <ModuleIntro module={{ value: module.module_introduction }} />}
72
+ {ModuleIntro && (
73
+ <ModuleIntro
74
+ module={{ value: module.module_introduction }}
75
+ isHomepageFirstModule={isHomepageFirstModule}
76
+ />
77
+ )}
62
78
  <div className="tab-content">
63
79
  {children.map(
64
80
  (child, index) =>
@@ -86,6 +102,7 @@ Tabs.propTypes = {
86
102
  module: PropTypes.shape({}),
87
103
  siteName: PropTypes.string,
88
104
  gtmClass: PropTypes.string,
105
+ moduleStyle: PropTypes.string,
89
106
  isHomepageFirstModule: PropTypes.bool,
90
107
  };
91
108
 
@@ -1,7 +1,7 @@
1
1
  .tabList {
2
2
  @include flex-align(center, flex-start);
3
3
  position: relative;
4
- margin: 2rem 0;
4
+ margin: 0 0 2rem 0;
5
5
  &.right {
6
6
  display: unset;
7
7
  @include min(tablet){
@@ -9,7 +9,7 @@ import { Context } from 'gatsby-core-theme/src/context/MainProvider';
9
9
  import styles from './title.module.scss';
10
10
  import { getDate } from '../../../../helpers/strings';
11
11
 
12
- const TabsTitle = ({ module, isHomepageFirstModule }) => {
12
+ const TabsTitle = ({ module, moduleStyle, isHomepageFirstModule = false }) => {
13
13
  const TitleTag = module?.module_title_tag
14
14
  ? `${module?.module_title_tag}`
15
15
  : module?.module_title
@@ -21,7 +21,11 @@ const TabsTitle = ({ module, isHomepageFirstModule }) => {
21
21
  const titleText = module?.module_title || module?.title;
22
22
 
23
23
  return (
24
- <TitleTag className={`${styles.noTag} ${isHomepageFirstModule ? styles.firstModule : ''}`}>
24
+ <TitleTag
25
+ className={`${styles.noTag} ${moduleStyle && styles[moduleStyle]} ${
26
+ isHomepageFirstModule ? styles.firstModule : ''
27
+ } `}
28
+ >
25
29
  {module?.module_title_tag ? <div className={styles.title}>{titleText}</div> : titleText}
26
30
  {showDate && (
27
31
  <span className={styles.toplistDate}>
@@ -35,6 +39,7 @@ const TabsTitle = ({ module, isHomepageFirstModule }) => {
35
39
 
36
40
  TabsTitle.propTypes = {
37
41
  isHomepageFirstModule: PropTypes.bool,
42
+ moduleStyle: PropTypes.string,
38
43
  module: PropTypes.shape({
39
44
  title: PropTypes.string,
40
45
  module_title: PropTypes.string,
@@ -26,7 +26,7 @@
26
26
 
27
27
  --main-font: Roboto, sans-serif;
28
28
 
29
- --module-spacing: 2rem;
29
+ --module-bottom-spacing: 2rem;
30
30
  --side-container: 30rem;
31
31
  --main-container-max: 99rem;
32
32
 
@@ -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.c0611b49.iframe.bundle.js"></script><script src="579.ab2ea34c.iframe.bundle.js"></script><script src="main.9c3c34bb.iframe.bundle.js"></script></body></html>
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.c0611b49.iframe.bundle.js"></script><script src="579.ab2ea34c.iframe.bundle.js"></script><script src="main.bb87da37.iframe.bundle.js"></script></body></html>