gatsby-matrix-theme 37.0.21 → 37.0.23

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,24 @@
1
+ ## [37.0.23](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v37.0.22...v37.0.23) (2023-12-04)
2
+
3
+
4
+ ### Code Refactoring
5
+
6
+ * add author data ([22779ae](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/22779ae37106745bd17f325cf3935233252f91ed))
7
+ * separate ribbon from main component and separate social links as a prop ([8debf21](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/8debf215596d1d8fe3e9f738caa7a262354182ec))
8
+
9
+
10
+ * Merge branch 'tm-3765-author-headers' into 'master' ([ea3056e](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/ea3056e55ee89981108573b23fdac9f16fd07a7e))
11
+
12
+ ## [37.0.22](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v37.0.21...v37.0.22) (2023-12-04)
13
+
14
+
15
+ ### Bug Fixes
16
+
17
+ * fixed empty recommendedCasinos bug ([a01741f](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/a01741fe6e7e1038b28d3e0705a894a2052a0573))
18
+
19
+
20
+ * Merge branch 'tm-3828-wagering-calculator' into 'master' ([577c7e9](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/577c7e992bfe2c4255e0daadb8c470f6065b8845))
21
+
1
22
  ## [37.0.21](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v37.0.20...v37.0.21) (2023-12-01)
2
23
 
3
24
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gatsby-matrix-theme",
3
- "version": "37.0.21",
3
+ "version": "37.0.23",
4
4
  "main": "index.js",
5
5
  "description": "Matrix Theme NPM Package",
6
6
  "author": "",
@@ -7,27 +7,33 @@ import { IoLogoTiktok } from '@react-icons/all-files/io5/IoLogoTiktok';
7
7
  import { FaLinkedin } from '@react-icons/all-files/fa/FaLinkedin';
8
8
  import styles from './socials.module.scss';
9
9
 
10
- export default function Socials({ className = '', author }) {
10
+ export default function Socials({
11
+ className = '',
12
+ author,
13
+ socialIcons = {
14
+ facebook: <FaFacebookSquare title="Facebook Icon" />,
15
+ instagram: <FaInstagram title="Instagram Icon" />,
16
+ linkedin: <FaLinkedin title="Linkedin Icon" />,
17
+ twitter: (
18
+ <svg
19
+ width="1em"
20
+ height="1em"
21
+ viewBox="0 0 13 12"
22
+ fill="currentcolor"
23
+ xmlns="http://www.w3.org/2000/svg"
24
+ >
25
+ <path d="M9.97574 0H11.9181L7.67469 4.84989L12.6667 11.4495H8.75802L5.69659 7.44685L2.19363 11.4495H0.250147L4.78881 6.26203L0 0H4.0079L6.7752 3.65856L9.97574 0ZM9.29408 10.287H10.3703L3.42314 1.1015H2.26822L9.29408 10.287Z" />
26
+ </svg>
27
+ ),
28
+ tiktok: <IoLogoTiktok title="Tiktok Icon" />,
29
+ },
30
+ }) {
11
31
  const socialLinks = [
12
- { id: 'fb', link: author.facebook_profile, icon: <FaFacebookSquare title="Facebook Icon " /> },
13
- { id: 'ig', link: author.instagram_profile, icon: <FaInstagram title="Instagram Icon " /> },
14
- { id: 'li', link: author.linkedin_profile, icon: <FaLinkedin title="Linkedin Icon" /> },
15
- {
16
- id: 'tw',
17
- link: author.twitter_profile,
18
- icon: (
19
- <svg
20
- width="1em"
21
- height="1em"
22
- viewBox="0 0 13 12"
23
- fill="currentcolor"
24
- xmlns="http://www.w3.org/2000/svg"
25
- >
26
- <path d="M9.97574 0H11.9181L7.67469 4.84989L12.6667 11.4495H8.75802L5.69659 7.44685L2.19363 11.4495H0.250147L4.78881 6.26203L0 0H4.0079L6.7752 3.65856L9.97574 0ZM9.29408 10.287H10.3703L3.42314 1.1015H2.26822L9.29408 10.287Z" />
27
- </svg>
28
- ),
29
- },
30
- { id: 'tt', link: author.tik_tok, icon: <IoLogoTiktok title="Tiktok Icon" /> },
32
+ { id: 'fb', link: author.facebook_profile, icon: socialIcons.facebook },
33
+ { id: 'ig', link: author.instagram_profile, icon: socialIcons.instagram },
34
+ { id: 'li', link: author.linkedin_profile, icon: socialIcons.linkedin },
35
+ { id: 'tw', link: author.twitter_profile, icon: socialIcons.twitter },
36
+ { id: 'tt', link: author.tik_tok, icon: socialIcons.tiktok },
31
37
  ].filter((socialLink) => socialLink.link);
32
38
 
33
39
  return (
@@ -60,4 +66,5 @@ Socials.propTypes = {
60
66
  twitter_profile: PropTypes.string,
61
67
  tik_tok: PropTypes.string,
62
68
  }),
69
+ socialIcons: PropTypes.shape({}),
63
70
  };
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ import PropTypes from 'prop-types';
3
+ import styles from './ribbon.module.scss';
4
+
5
+ export default function Ribbon({ className = '', content }) {
6
+ return <span className={`${styles?.ribbon || ''} ${className}`}>{content}</span>;
7
+ }
8
+
9
+ Ribbon.propTypes = {
10
+ className: PropTypes.string,
11
+ content: PropTypes.string,
12
+ };
@@ -0,0 +1,12 @@
1
+ .ribbon {
2
+ position: absolute;
3
+ top: 2.4rem;
4
+ right: 2.4rem;
5
+ background: red;
6
+ border-radius: 100px;
7
+ color: #fff;
8
+ font-weight: 700;
9
+ font-size: 10px;
10
+ line-height: 13px;
11
+ padding: 0.6rem;
12
+ }
@@ -3,6 +3,7 @@ import React, { useContext } from 'react';
3
3
  import { Context } from 'gatsby-core-theme/src/context/MainProvider';
4
4
  import PropTypes from 'prop-types';
5
5
  import Portrait from '../assets/portrait';
6
+ import Ribbon from '../assets/ribbon';
6
7
  import Name from '../assets/name';
7
8
  import Socials from '../../../../../atoms/author/socials';
8
9
  import styles from './template-four.module.scss';
@@ -15,9 +16,11 @@ export default function TemplateFour({ author, icons, authorTitle }) {
15
16
  <div>
16
17
  <div className={styles?.portraitContainer || ''}>
17
18
  <Portrait className={styles?.portrait || ''} author={author} />
18
- <span className={styles?.posts || ''}>
19
- {author.pages_count} {translate(translations, 'posts', 'Posts')}
20
- </span>
19
+ <Ribbon
20
+ className={styles?.posts || ''}
21
+ author={author}
22
+ content={`${author.pages_count} ${translate(translations, 'posts', 'Posts')}`}
23
+ />
21
24
  </div>
22
25
 
23
26
  <div>
@@ -48,6 +48,8 @@
48
48
  font-size: 10px;
49
49
  line-height: 13px;
50
50
  padding: 0.6rem;
51
+ top: unset;
52
+ right: unset;
51
53
  }
52
54
 
53
55
  .portrait {
@@ -6,6 +6,7 @@ import Portrait from '../assets/portrait';
6
6
  import Name from '../assets/name';
7
7
  import Socials from '../../../../../atoms/author/socials';
8
8
  import Expertise from '../assets/expertise';
9
+ import Ribbon from '../assets/ribbon';
9
10
  import { translate } from '~helpers/getters';
10
11
  import styles from './template-one.module.scss';
11
12
 
@@ -13,9 +14,11 @@ export default function TemplateOne({ author, icons, authorTitle }) {
13
14
  const { translations } = useContext(Context);
14
15
  return (
15
16
  <div className={styles?.container || ''}>
16
- <span className={styles?.posts || ''}>
17
- {author.pages_count} {translate(translations, 'posts', 'Posts')}
18
- </span>
17
+ <Ribbon
18
+ className={styles?.posts || ''}
19
+ author={author}
20
+ content={`${author.pages_count} ${translate(translations, 'posts', 'Posts')}`}
21
+ />
19
22
  <Portrait className={styles?.portrait || ''} author={author} />
20
23
  <div>
21
24
  <div className={styles?.title || ''}>{author.author_title}</div>
@@ -22,19 +22,6 @@
22
22
  }
23
23
  }
24
24
 
25
- .posts {
26
- position: absolute;
27
- top: 2.4rem;
28
- right: 2.4rem;
29
- background: var(--primary-color);
30
- border-radius: 100px;
31
- color: #fff;
32
- font-weight: 700;
33
- font-size: 10px;
34
- line-height: 13px;
35
- padding: 0.6rem;
36
- }
37
-
38
25
  .portrait {
39
26
  margin-top: -3.4rem;
40
27
  margin-bottom: 2.4rem;
@@ -6,6 +6,7 @@ import Portrait from '../assets/portrait';
6
6
  import Name from '../assets/name';
7
7
  import Socials from '../../../../../atoms/author/socials';
8
8
  import Expertise from '../assets/expertise';
9
+ import Ribbon from '../assets/ribbon';
9
10
  import { translate } from '~helpers/getters';
10
11
  import styles from './template-three.module.scss';
11
12
 
@@ -13,9 +14,11 @@ export default function TemplateThree({ author, icons, authorTitle }) {
13
14
  const { translations } = useContext(Context);
14
15
  return (
15
16
  <div className={styles?.container || ''}>
16
- <span className={styles?.posts || ''}>
17
- {author.pages_count} {translate(translations, 'posts', 'Posts')}
18
- </span>
17
+ <Ribbon
18
+ className={styles?.posts || ''}
19
+ author={author}
20
+ content={`${author.pages_count} ${translate(translations, 'posts', 'Posts')}`}
21
+ />
19
22
  <div>
20
23
  <Portrait className={styles?.portrait || ''} author={author} />
21
24
  <div>
@@ -6,6 +6,7 @@ import Portrait from '../assets/portrait';
6
6
  import Name from '../assets/name';
7
7
  import Socials from '../../../../../atoms/author/socials';
8
8
  import Expertise from '../assets/expertise';
9
+ import Ribbon from '../assets/ribbon';
9
10
  import { translate } from '~helpers/getters';
10
11
  import styles from './template-two.module.scss';
11
12
 
@@ -13,9 +14,11 @@ export default function TemplateTwo({ author, icons, authorTitle }) {
13
14
  const { translations } = useContext(Context);
14
15
  return (
15
16
  <div className={styles?.container || ''}>
16
- <span className={styles?.posts || ''}>
17
- {author.pages_count} {translate(translations, 'posts', 'Posts')}
18
- </span>
17
+ <Ribbon
18
+ className={styles?.posts || ''}
19
+ author={author}
20
+ content={`${author.pages_count} ${translate(translations, 'posts', 'Posts')}`}
21
+ />
19
22
  <div>
20
23
  <Portrait className={styles?.portrait || ''} author={author} />
21
24
  <div>
@@ -32,7 +32,7 @@ const WageringCalculator = ({
32
32
  const [result, setResult] = useState(null);
33
33
  const { translations } = useContext(Context);
34
34
  const InfoIcon = infoIcon || AiOutlineQuestionCircle;
35
- const operators = pageContext.marketSections
35
+ const operators = pageContext.marketSections.recommended_casinos.modules.length
36
36
  ? getRecommendedToplist(pageContext.marketSections)
37
37
  : [];
38
38
 
@@ -361,4 +361,4 @@
361
361
 
362
362
 
363
363
 
364
- 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)$"},{"titlePrefix":"","directory":"../node_modules/gatsby-core-theme/src/components/organisms/navigation","files":"navigation.stories.js","importPathMatcher":"^(?:\\.\\.\\/node_modules\\/gatsby-core-theme\\/src\\/components\\/organisms\\/navigation\\/navigation\\.stories\\.js)$"},{"titlePrefix":"","directory":"../node_modules/gatsby-core-theme/src/components/organisms/anchor","files":"anchor.stories.js","importPathMatcher":"^(?:\\.\\.\\/node_modules\\/gatsby-core-theme\\/src\\/components\\/organisms\\/anchor\\/anchor\\.stories\\.js)$"},{"titlePrefix":"","directory":"../node_modules/gatsby-core-theme/src/components/molecules/bonus/template-one","files":"bonus.stories.js","importPathMatcher":"^(?:\\.\\.\\/node_modules\\/gatsby-core-theme\\/src\\/components\\/molecules\\/bonus\\/template-one\\/bonus\\.stories\\.js)$"},{"titlePrefix":"","directory":"../node_modules/gatsby-core-theme/src/components/molecules/bonus/template-two","files":"bonus.stories.js","importPathMatcher":"^(?:\\.\\.\\/node_modules\\/gatsby-core-theme\\/src\\/components\\/molecules\\/bonus\\/template-two\\/bonus\\.stories\\.js)$"},{"titlePrefix":"","directory":"../node_modules/gatsby-core-theme/src/components/molecules/content","files":"text.stories.js","importPathMatcher":"^(?:\\.\\.\\/node_modules\\/gatsby-core-theme\\/src\\/components\\/molecules\\/content\\/text\\.stories\\.js)$"},{"titlePrefix":"","directory":"../node_modules/gatsby-core-theme/src/components/molecules/content","files":"show-more.stories.js","importPathMatcher":"^(?:\\.\\.\\/node_modules\\/gatsby-core-theme\\/src\\/components\\/molecules\\/content\\/show-more\\.stories\\.js)$"},{"titlePrefix":"","directory":"../node_modules/gatsby-core-theme/src/components/molecules/content","files":"content.stories.js","importPathMatcher":"^(?:\\.\\.\\/node_modules\\/gatsby-core-theme\\/src\\/components\\/molecules\\/content\\/content\\.stories\\.js)$"},{"titlePrefix":"","directory":"../node_modules/gatsby-core-theme/src/components/molecules/content/lists","files":"lists.stories.js","importPathMatcher":"^(?:\\.\\.\\/node_modules\\/gatsby-core-theme\\/src\\/components\\/molecules\\/content\\/lists\\/lists\\.stories\\.js)$"},{"titlePrefix":"","directory":"../node_modules/gatsby-core-theme/src/components/molecules/content/frame","files":"frame.stories.js","importPathMatcher":"^(?:\\.\\.\\/node_modules\\/gatsby-core-theme\\/src\\/components\\/molecules\\/content\\/frame\\/frame\\.stories\\.js)$"},{"titlePrefix":"","directory":"../node_modules/gatsby-core-theme/src/components/molecules/content/table","files":"table-one.stories.js","importPathMatcher":"^(?:\\.\\.\\/node_modules\\/gatsby-core-theme\\/src\\/components\\/molecules\\/content\\/table\\/table-one\\.stories\\.js)$"},{"titlePrefix":"","directory":"../node_modules/gatsby-core-theme/src/components/molecules/content/table","files":"table-two.stories.js","importPathMatcher":"^(?:\\.\\.\\/node_modules\\/gatsby-core-theme\\/src\\/components\\/molecules\\/content\\/table\\/table-two\\.stories\\.js)$"},{"titlePrefix":"","directory":"../node_modules/gatsby-core-theme/src/components/molecules/pagination","files":"pagination.stories.js","importPathMatcher":"^(?:\\.\\.\\/node_modules\\/gatsby-core-theme\\/src\\/components\\/molecules\\/pagination\\/pagination\\.stories\\.js)$"}];</script><script src="runtime~main.43b1a993.iframe.bundle.js"></script><script src="28.ed292934.iframe.bundle.js"></script><script src="main.bf27531e.iframe.bundle.js"></script></body></html>
364
+ 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)$"},{"titlePrefix":"","directory":"../node_modules/gatsby-core-theme/src/components/organisms/navigation","files":"navigation.stories.js","importPathMatcher":"^(?:\\.\\.\\/node_modules\\/gatsby-core-theme\\/src\\/components\\/organisms\\/navigation\\/navigation\\.stories\\.js)$"},{"titlePrefix":"","directory":"../node_modules/gatsby-core-theme/src/components/organisms/anchor","files":"anchor.stories.js","importPathMatcher":"^(?:\\.\\.\\/node_modules\\/gatsby-core-theme\\/src\\/components\\/organisms\\/anchor\\/anchor\\.stories\\.js)$"},{"titlePrefix":"","directory":"../node_modules/gatsby-core-theme/src/components/molecules/bonus/template-one","files":"bonus.stories.js","importPathMatcher":"^(?:\\.\\.\\/node_modules\\/gatsby-core-theme\\/src\\/components\\/molecules\\/bonus\\/template-one\\/bonus\\.stories\\.js)$"},{"titlePrefix":"","directory":"../node_modules/gatsby-core-theme/src/components/molecules/bonus/template-two","files":"bonus.stories.js","importPathMatcher":"^(?:\\.\\.\\/node_modules\\/gatsby-core-theme\\/src\\/components\\/molecules\\/bonus\\/template-two\\/bonus\\.stories\\.js)$"},{"titlePrefix":"","directory":"../node_modules/gatsby-core-theme/src/components/molecules/content","files":"text.stories.js","importPathMatcher":"^(?:\\.\\.\\/node_modules\\/gatsby-core-theme\\/src\\/components\\/molecules\\/content\\/text\\.stories\\.js)$"},{"titlePrefix":"","directory":"../node_modules/gatsby-core-theme/src/components/molecules/content","files":"show-more.stories.js","importPathMatcher":"^(?:\\.\\.\\/node_modules\\/gatsby-core-theme\\/src\\/components\\/molecules\\/content\\/show-more\\.stories\\.js)$"},{"titlePrefix":"","directory":"../node_modules/gatsby-core-theme/src/components/molecules/content","files":"content.stories.js","importPathMatcher":"^(?:\\.\\.\\/node_modules\\/gatsby-core-theme\\/src\\/components\\/molecules\\/content\\/content\\.stories\\.js)$"},{"titlePrefix":"","directory":"../node_modules/gatsby-core-theme/src/components/molecules/content/lists","files":"lists.stories.js","importPathMatcher":"^(?:\\.\\.\\/node_modules\\/gatsby-core-theme\\/src\\/components\\/molecules\\/content\\/lists\\/lists\\.stories\\.js)$"},{"titlePrefix":"","directory":"../node_modules/gatsby-core-theme/src/components/molecules/content/frame","files":"frame.stories.js","importPathMatcher":"^(?:\\.\\.\\/node_modules\\/gatsby-core-theme\\/src\\/components\\/molecules\\/content\\/frame\\/frame\\.stories\\.js)$"},{"titlePrefix":"","directory":"../node_modules/gatsby-core-theme/src/components/molecules/content/table","files":"table-one.stories.js","importPathMatcher":"^(?:\\.\\.\\/node_modules\\/gatsby-core-theme\\/src\\/components\\/molecules\\/content\\/table\\/table-one\\.stories\\.js)$"},{"titlePrefix":"","directory":"../node_modules/gatsby-core-theme/src/components/molecules/content/table","files":"table-two.stories.js","importPathMatcher":"^(?:\\.\\.\\/node_modules\\/gatsby-core-theme\\/src\\/components\\/molecules\\/content\\/table\\/table-two\\.stories\\.js)$"},{"titlePrefix":"","directory":"../node_modules/gatsby-core-theme/src/components/molecules/pagination","files":"pagination.stories.js","importPathMatcher":"^(?:\\.\\.\\/node_modules\\/gatsby-core-theme\\/src\\/components\\/molecules\\/pagination\\/pagination\\.stories\\.js)$"}];</script><script src="runtime~main.43b1a993.iframe.bundle.js"></script><script src="28.ed292934.iframe.bundle.js"></script><script src="main.88889240.iframe.bundle.js"></script></body></html>