gatsby-matrix-theme 49.0.13 → 50.0.1
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 +3 -2
- package/CHANGELOG.md +35 -0
- package/jest.config.js +1 -0
- package/package.json +2 -2
- package/src/components/atoms/author/socials/index.js +2 -14
- package/src/components/atoms/author/template-one/index.js +5 -5
- package/src/components/atoms/author/template-one/template-one.module.scss +1 -1
- package/src/components/atoms/author/template-one/template-one.stories.js +3 -3
- package/src/components/atoms/author/template-one/template-one.test.js +2 -1
- package/src/components/atoms/author/template-three/index.js +2 -2
- package/src/components/atoms/author/template-three/template-three.module.scss +5 -0
- package/src/components/atoms/author/template-three/template-three.stories.js +3 -3
- package/src/components/atoms/author/template-two/index.js +5 -4
- package/src/components/atoms/author/template-two/template-two.module.scss +7 -3
- package/src/components/atoms/author/template-two/template-two.stories.js +3 -3
- package/src/components/atoms/author/template-two/template-two.test.js +2 -1
- package/src/components/atoms/cards/operator-card/template-four/index.js +3 -2
- package/src/components/atoms/cards/operator-card/template-four/template-four.stories.js +3 -3
- package/src/components/atoms/cards/operator-card/template-one/index.js +3 -2
- package/src/components/atoms/cards/operator-card/template-one/template-one.stories.js +3 -3
- package/src/components/atoms/cards/operator-card/template-three/index.js +3 -2
- package/src/components/atoms/cards/operator-card/template-three/template-three.stories.js +3 -3
- package/src/components/atoms/cards/operator-card/template-two/index.js +3 -2
- package/src/components/atoms/cards/operator-card/template-two/template-two.stories.js +3 -3
- package/src/components/atoms/cards/popup-card/popup-card.stories.js +1 -1
- package/src/components/atoms/coupon/coupon.module.scss +5 -0
- package/src/components/atoms/coupon/coupon.stories.js +6 -6
- package/src/components/atoms/coupon/index.js +8 -8
- package/src/components/atoms/disclaimer/affiliate-disclaimer/affiliate-disclaimer.stories.js +1 -1
- package/src/components/atoms/disclaimer/review-disclaimer/affiliate-disclaimer.stories.js +40 -0
- package/src/components/atoms/review-credits/index.js +5 -5
- package/src/components/atoms/review-credits/review-credits.stories.js +6 -6
- package/src/components/atoms/social-icons/index.js +2 -14
- package/src/components/molecules/header/variants/author/assets/expertise/expertise.module.scss +1 -1
- package/src/components/molecules/header/variants/author/assets/expertise/index.js +4 -11
- package/src/components/molecules/header/variants/author/assets/name/index.js +4 -13
- package/src/components/molecules/header/variants/author/assets/name/name.module.scss +11 -11
- package/src/components/molecules/header/variants/author/template-four/index.js +3 -2
- package/src/components/molecules/header/variants/author/template-four/template-four.stories.js +2 -2
- package/src/components/molecules/header/variants/author/template-one/index.js +5 -4
- package/src/components/molecules/header/variants/author/template-one/template-one.stories.js +4 -4
- package/src/components/molecules/header/variants/author/template-three/index.js +5 -3
- package/src/components/molecules/header/variants/author/template-three/template-three.stories.js +4 -4
- package/src/components/molecules/header/variants/author/template-two/index.js +5 -3
- package/src/components/molecules/header/variants/author/template-two/template-two.stories.js +4 -4
- package/src/components/molecules/header/variants/operator/template-five/index.js +4 -9
- package/src/components/molecules/header/variants/operator/template-five/template-five.module.scss +2 -2
- package/src/components/molecules/header/variants/operator/template-five/template-five.stories.js +2 -2
- package/src/components/molecules/header/variants/operator/template-four/index.js +4 -9
- package/src/components/molecules/header/variants/operator/template-four/template-four.module.scss +2 -2
- package/src/components/molecules/header/variants/operator/template-four/template-four.stories.js +2 -2
- package/src/components/molecules/header/variants/operator/template-three/index.js +4 -9
- package/src/components/molecules/header/variants/operator/template-three/template-three.module.scss +2 -2
- package/src/components/molecules/header/variants/operator/template-three/template-three.stories.js +2 -2
- package/src/components/molecules/header/variants/payment/template-five/index.js +4 -9
- package/src/components/molecules/header/variants/payment/template-five/template-five.module.scss +2 -2
- package/src/components/molecules/header/variants/payment/template-five/template-five.stories.js +2 -2
- package/src/components/molecules/header/variants/payment/template-four/index.js +4 -9
- package/src/components/molecules/header/variants/payment/template-four/template-four.module.scss +2 -2
- package/src/components/molecules/header/variants/payment/template-four/template-four.stories.js +2 -2
- package/src/components/molecules/header/variants/payment/template-one-three/index.js +4 -9
- package/src/components/molecules/header/variants/payment/template-one-three/template-one-three.module.scss +1 -1
- package/src/components/molecules/header/variants/payment/template-one-three/template-one-three.stories.js +2 -2
- package/src/components/molecules/header/variants/payment/template-two/index.js +4 -9
- package/src/components/molecules/header/variants/payment/template-two/template-two.stories.js +2 -2
- package/src/components/molecules/header/variants/slot/template-one/index.js +4 -9
- package/src/components/molecules/header/variants/slot/template-one/template-one.stories.js +2 -2
- package/src/components/molecules/header/variants/slot/template-two/index.js +4 -9
- package/src/components/molecules/header/variants/slot/template-two/template-two.module.scss +2 -2
- package/src/components/molecules/header/variants/slot/template-two/template-two.stories.js +2 -2
- package/src/components/molecules/multiple-contributors/contributor/contributor.stories.js +1 -1
- package/src/components/molecules/multiple-contributors/contributor/index.js +1 -1
- package/src/components/molecules/operator-details/index.js +4 -3
- package/src/components/molecules/operator-details/operator-details.stories.js +2 -2
- package/src/components/molecules/operator-summary/template-one/index.js +7 -5
- package/src/components/molecules/operator-summary/template-one/template-one.module.scss +8 -11
- package/src/components/molecules/operator-summary/template-three/index.js +3 -7
- package/src/components/molecules/operator-summary/template-three/template-three.stories.js +2 -2
- package/src/components/molecules/operator-summary/template-two/index.js +6 -5
- package/src/components/molecules/operator-summary/template-two/template-two.module.scss +8 -11
- package/src/components/molecules/toplist/row/variant-one.js +3 -2
- package/src/components/molecules/toplist/row/variant-one.stories.js +3 -3
- package/src/constants/statistics-counter.js +1 -1
- package/src/gatsby-core-theme/components/molecules/header/index.js +3 -6
- package/src/gatsby-core-theme/components/organisms/toplist/index.js +3 -2
- package/src/gatsby-core-theme/components/organisms/toplist/list/index.js +3 -2
- package/src/gatsby-core-theme/components/organisms/toplist/toplist.stories.js +5 -5
- package/src/gatsby-core-theme/components/pages/body/index.js +0 -1
- package/src/gatsby-core-theme/components/pages/search/index.js +0 -1
- package/src/images/icons/affiliate-disclaimer.js +10 -3
- package/src/images/icons/check-circle.js +31 -0
- package/src/images/icons/copy-icon.js +34 -0
- package/src/images/icons/{countryFlag.js → country-flag.js} +16 -8
- package/src/images/icons/review-disclaimer.js +12 -5
- package/src/images/icons/{fact-check.js → verified-author.js} +11 -5
- package/static/images/logo.svg +4 -4
- package/storybook/public/449.b926d2e5.iframe.bundle.js +2 -0
- package/storybook/public/449.b926d2e5.iframe.bundle.js.LICENSE.txt +8 -0
- package/storybook/public/{451.f97fa45c.iframe.bundle.js → 803.55b7af53.iframe.bundle.js} +4 -4
- package/storybook/public/{451.f97fa45c.iframe.bundle.js.LICENSE.txt → 803.55b7af53.iframe.bundle.js.LICENSE.txt} +0 -9
- package/storybook/public/{451.f97fa45c.iframe.bundle.js.map → 803.55b7af53.iframe.bundle.js.map} +1 -1
- package/storybook/public/iframe.html +1 -1
- package/storybook/public/main.5903cd99.iframe.bundle.js +1 -0
- package/storybook/public/project.json +1 -1
- package/storybook/public/runtime~main.db76197b.iframe.bundle.js +1 -0
- package/storybook/public/static/media/{logo.4219f6a5.svg → logo.515c40a9.svg} +3 -3
- package/tests/factories/pages/operator.factory.js +2 -0
- package/src/images/loading.svg +0 -5
- package/src/images/security.svg +0 -6
- package/src/images/verifiedAuthor.svg +0 -6
- package/src/images/verify.svg +0 -12
- package/static/images/security.svg +0 -4
- package/storybook/public/270.499ccbac.iframe.bundle.js +0 -1
- package/storybook/public/678.3661819e.iframe.bundle.js +0 -1
- package/storybook/public/746.30a2f6fb.iframe.bundle.js +0 -1
- package/storybook/public/main.27dbf582.iframe.bundle.js +0 -1
- package/storybook/public/runtime~main.7dec3771.iframe.bundle.js +0 -1
- package/storybook/public/static/media/check-circle.bf637323.svg +0 -6
- package/storybook/public/static/media/check.488c4e6e.svg +0 -4
- package/storybook/public/static/media/clock.696aca89.svg +0 -6
- package/storybook/public/static/media/copyIcon.f81f6579.svg +0 -6
- package/storybook/public/static/media/verifiedAuthor.a7e3f6b7.svg +0 -6
- package/storybook/public/static/media/verify.d0f80e8a.svg +0 -12
- package/storybook-images/authorship.svg +0 -4
- package/storybook-images/check-circle.svg +0 -6
- package/storybook-images/check.svg +0 -4
- package/storybook-images/clock.svg +0 -6
- package/storybook-images/copyIcon.svg +0 -6
- package/storybook-images/icons/fact-check.js +0 -30
- package/storybook-images/logo.svg +0 -8
- package/storybook-images/security.svg +0 -4
- package/storybook-images/verifiedAuthor.svg +0 -6
- package/storybook-images/verify.svg +0 -12
package/.storybook/main.js
CHANGED
|
@@ -6,8 +6,8 @@ module.exports = {
|
|
|
6
6
|
'../src/**/**/**/*.stories.js',
|
|
7
7
|
'../src/**/**/**/**/*.stories.js',
|
|
8
8
|
'../src/**/**/**/**/**/*.stories.js',
|
|
9
|
-
'../../node_modules/gatsby-core-theme/src/components/molecules/header/variants/default/template-one.stories.js',
|
|
10
|
-
'../../node_modules/gatsby-core-theme/src/components/molecules/header/variants/operator/template-one-two.stories.js',
|
|
9
|
+
'../../node_modules/gatsby-core-theme/src/components/molecules/header/variants/default/template-one/template-one.stories.js',
|
|
10
|
+
'../../node_modules/gatsby-core-theme/src/components/molecules/header/variants/operator/template-one-two/template-one-two.stories.js',
|
|
11
11
|
'../../node_modules/gatsby-core-theme/src/components/molecules/footer/variants/template-one.stories.js',
|
|
12
12
|
'../../node_modules/gatsby-core-theme/src/components/molecules/footer/variants/template-two.stories.js',
|
|
13
13
|
'../../node_modules/gatsby-core-theme/src/components/molecules/footer/variants/template-three.stories.js',
|
|
@@ -90,6 +90,7 @@ module.exports = {
|
|
|
90
90
|
'~hooks': path.resolve(rootPath, '../node_modules/gatsby-core-theme/src/hooks'),
|
|
91
91
|
'~tests': path.resolve(rootPath, '../node_modules/gatsby-core-theme/tests'),
|
|
92
92
|
'~context': path.resolve(rootPath, '../node_modules/gatsby-core-theme/src/context'),
|
|
93
|
+
'~images': path.resolve(rootPath, '../node_modules/gatsby-core-theme/src/images'),
|
|
93
94
|
'gatsby-page-utils': path.resolve(__dirname, '../../node_modules/gatsby-page-utils/dist'),
|
|
94
95
|
'gatsby-core-theme/src/hooks/gatsby-img': path.resolve(
|
|
95
96
|
__dirname,
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,38 @@
|
|
|
1
|
+
## [50.0.1](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v50.0.0...v50.0.1) (2024-08-27)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* lighthouse pipeline ([b7ef863](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/b7ef863a3f3d15628cd56309f065db91d17def10))
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Code Refactoring
|
|
10
|
+
|
|
11
|
+
* add review disclaimer to storybook ([e342961](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/e3429612042511a26602bdbaeddb4384c74ae13e))
|
|
12
|
+
|
|
13
|
+
# [50.0.0](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v49.0.13...v50.0.0) (2024-08-26)
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### Bug Fixes
|
|
17
|
+
|
|
18
|
+
* fix issue on storybook, add logo.svg back ([7a4b0bb](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/7a4b0bb0139860b837d5517cb6bbfb332d2ef4ae))
|
|
19
|
+
* update to latest ([5549f04](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/5549f0431c8482b791620bdc63a2ab32442ac1cf))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
### Code Refactoring
|
|
23
|
+
|
|
24
|
+
* changes ([e84c0cc](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/e84c0cc28453ad56dae12dd7be4ba78d8be54af8))
|
|
25
|
+
* changes ([3f033e5](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/3f033e5e78208aa73d877eef05400b1cc47e8081))
|
|
26
|
+
* initial commit for svgs ([7609de8](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/7609de876d6b6286175a4e8e32ba50e370f1b26a))
|
|
27
|
+
* revert temp ([3cd2dc3](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/3cd2dc3e8c2d72717eeb6ac524d34653aae16488))
|
|
28
|
+
* temp ([c456c93](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/c456c9353b32d7cdd7e6b70b6b5f29bad133359f))
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
* Merge branch 'tm-3996-svg' into 'master' ([9fa7c1c](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/9fa7c1c66146f4bd6d2823cb40db6da2d9bcb691))
|
|
32
|
+
* Merge branch 'master' into tm-3996-svg ([e88067e](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/e88067e2e30ffd9dbc08cb61b0b1fba358807568))
|
|
33
|
+
* Merge branch 'master' into tm-3996-svg ([1ae0285](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/1ae02855c5ca55bd08ea67c57fbf05e17377adae))
|
|
34
|
+
* Merge branch 'master' into tm-3996-svg ([119921f](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/119921f859b45ad368c46d6eee71085b03dca99a))
|
|
35
|
+
|
|
1
36
|
## [49.0.13](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v49.0.12...v49.0.13) (2024-08-22)
|
|
2
37
|
|
|
3
38
|
|
package/jest.config.js
CHANGED
|
@@ -18,6 +18,7 @@ module.exports = {
|
|
|
18
18
|
'^~hooks(.*)$': '<rootDir>../node_modules/gatsby-core-theme/src/hooks$1',
|
|
19
19
|
'^~tests(.*)$': '<rootDir>../node_modules/gatsby-core-theme/tests$1',
|
|
20
20
|
'^~context(.*)$': '<rootDir>../node_modules/gatsby-core-theme/src/context$1',
|
|
21
|
+
'^~images(.*)$': '<rootDir>../node_modules/gatsby-core-theme/src/images$1',
|
|
21
22
|
// JSON Data
|
|
22
23
|
'data.json': '<rootDir>/__mocks__/search-data.json',
|
|
23
24
|
'^gatsby-plugin-utils/(.*)$': [`gatsby-plugin-utils/dist/$1`, `gatsby-plugin-utils/$1`],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gatsby-matrix-theme",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "50.0.1",
|
|
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": "
|
|
28
|
+
"gatsby-core-theme": "37.0.3",
|
|
29
29
|
"gatsby-plugin-sharp": "^5.11.0",
|
|
30
30
|
"gatsby-transformer-sharp": "^5.11.0",
|
|
31
31
|
"prop-types": "15.7.2",
|
|
@@ -6,6 +6,7 @@ import { FaFacebookSquare } from '@react-icons/all-files/fa/FaFacebookSquare';
|
|
|
6
6
|
import { IoLogoTiktok } from '@react-icons/all-files/io5/IoLogoTiktok';
|
|
7
7
|
import { FaLinkedin } from '@react-icons/all-files/fa/FaLinkedin';
|
|
8
8
|
import { SiWikipedia } from '@react-icons/all-files/si/SiWikipedia';
|
|
9
|
+
import TwitterIcon from '~images/icons/twitter';
|
|
9
10
|
import styles from './socials.module.scss';
|
|
10
11
|
|
|
11
12
|
export default function Socials({
|
|
@@ -15,20 +16,7 @@ export default function Socials({
|
|
|
15
16
|
facebook: <FaFacebookSquare title="Facebook Icon" />,
|
|
16
17
|
instagram: <FaInstagram title="Instagram Icon" />,
|
|
17
18
|
linkedin: <FaLinkedin title="Linkedin Icon" />,
|
|
18
|
-
twitter:
|
|
19
|
-
<svg
|
|
20
|
-
role="img"
|
|
21
|
-
aria-labelledby="twitterIcon"
|
|
22
|
-
width="1em"
|
|
23
|
-
height="1em"
|
|
24
|
-
viewBox="0 0 13 12"
|
|
25
|
-
fill="currentcolor"
|
|
26
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
27
|
-
>
|
|
28
|
-
<title id="twitterIcon">Twitter Icon</title>
|
|
29
|
-
<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" />
|
|
30
|
-
</svg>
|
|
31
|
-
),
|
|
19
|
+
twitter: <TwitterIcon />,
|
|
32
20
|
tiktok: <IoLogoTiktok title="Tiktok Icon" />,
|
|
33
21
|
wikipedia: <SiWikipedia title="Wikipedia Icon" />,
|
|
34
22
|
},
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
|
-
import LazyImage from 'gatsby-core-theme/src/hooks/lazy-image';
|
|
4
3
|
import Link from 'gatsby-core-theme/src/hooks/link';
|
|
4
|
+
import VerifiedAuthor from '../../../../images/icons/verified-author';
|
|
5
5
|
import styles from './template-one.module.scss';
|
|
6
6
|
|
|
7
7
|
const AuthorTemplateOne = ({
|
|
@@ -9,7 +9,7 @@ const AuthorTemplateOne = ({
|
|
|
9
9
|
authorName,
|
|
10
10
|
authorPath,
|
|
11
11
|
showLinks = true,
|
|
12
|
-
verify =
|
|
12
|
+
verify = <VerifiedAuthor />,
|
|
13
13
|
}) => {
|
|
14
14
|
const author = authorName?.split(/\s+/);
|
|
15
15
|
|
|
@@ -20,12 +20,12 @@ const AuthorTemplateOne = ({
|
|
|
20
20
|
{showLinks ? (
|
|
21
21
|
<Link to={authorPath}>
|
|
22
22
|
{`${label} ${`${author[0]} ${author[1]?.slice(0, 1)}.`}`}
|
|
23
|
-
|
|
23
|
+
{verify}
|
|
24
24
|
</Link>
|
|
25
25
|
) : (
|
|
26
26
|
<>
|
|
27
27
|
{`${label} ${`${author[0]} ${author[1]?.slice(0, 1)}.`}`}
|
|
28
|
-
|
|
28
|
+
{verify}
|
|
29
29
|
</>
|
|
30
30
|
)}
|
|
31
31
|
</span>
|
|
@@ -37,7 +37,7 @@ AuthorTemplateOne.propTypes = {
|
|
|
37
37
|
label: PropTypes.string,
|
|
38
38
|
authorName: PropTypes.string,
|
|
39
39
|
authorPath: PropTypes.string,
|
|
40
|
-
verify: PropTypes.
|
|
40
|
+
verify: PropTypes.element,
|
|
41
41
|
showLinks: PropTypes.bool,
|
|
42
42
|
};
|
|
43
43
|
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
ArgsTable,
|
|
8
8
|
PRIMARY_STORY,
|
|
9
9
|
} from '@storybook/addon-docs/blocks';
|
|
10
|
-
import
|
|
10
|
+
import VerifiedAuthor from '../../../../images/icons/verified-author';
|
|
11
11
|
import AuthorTemplateOne from '.';
|
|
12
12
|
|
|
13
13
|
export default {
|
|
@@ -31,8 +31,8 @@ export default {
|
|
|
31
31
|
defaultValue: true,
|
|
32
32
|
},
|
|
33
33
|
verify: {
|
|
34
|
-
control: '
|
|
35
|
-
defaultValue:
|
|
34
|
+
control: 'element',
|
|
35
|
+
defaultValue: <VerifiedAuthor />,
|
|
36
36
|
},
|
|
37
37
|
},
|
|
38
38
|
parameters: {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { render, cleanup } from '@testing-library/react';
|
|
3
|
+
import VerifiedAuthor from '../../../../images/icons/verified-author';
|
|
3
4
|
import AuthorTemplateOne from '.';
|
|
4
5
|
|
|
5
6
|
describe('AuthorTemplateOne Component', () => {
|
|
@@ -9,7 +10,7 @@ describe('AuthorTemplateOne Component', () => {
|
|
|
9
10
|
label="Written by"
|
|
10
11
|
authorName="John Doe"
|
|
11
12
|
authorPath="/path-to-author"
|
|
12
|
-
verify=
|
|
13
|
+
verify={<VerifiedAuthor />}
|
|
13
14
|
/>
|
|
14
15
|
);
|
|
15
16
|
|
|
@@ -4,7 +4,7 @@ import { imagePrettyUrl } from 'gatsby-core-theme/src/helpers/getters';
|
|
|
4
4
|
import LazyImage from 'gatsby-core-theme/src/hooks/lazy-image';
|
|
5
5
|
import Link from 'gatsby-core-theme/src/hooks/link';
|
|
6
6
|
import useTranslate from '~hooks/useTranslate/useTranslate';
|
|
7
|
-
import
|
|
7
|
+
import VerifiedAuthor from '../../../../images/icons/verified-author';
|
|
8
8
|
import styles from './template-three.module.scss';
|
|
9
9
|
|
|
10
10
|
const AuthorTemplateThree = ({
|
|
@@ -22,7 +22,7 @@ const AuthorTemplateThree = ({
|
|
|
22
22
|
showTitle = true,
|
|
23
23
|
showVerification = true,
|
|
24
24
|
type,
|
|
25
|
-
verify = <
|
|
25
|
+
verify = <VerifiedAuthor />,
|
|
26
26
|
}) => {
|
|
27
27
|
const getPrefixBasedOnPage = type?.includes('review')
|
|
28
28
|
? useTranslate('reviewed_by', 'Review by')
|
|
@@ -55,4 +55,9 @@
|
|
|
55
55
|
font-size: var(--author-template-three-reviewer-title-font-size, 1.4rem);
|
|
56
56
|
font-weight: var(--author-template-three-reviewer-title-font-weight, 500);
|
|
57
57
|
line-height: var(--author-template-three-reviewer-title-line-height, 2.2rem);
|
|
58
|
+
|
|
59
|
+
svg {
|
|
60
|
+
width: 1.5rem;
|
|
61
|
+
height: 1.5rem;
|
|
62
|
+
}
|
|
58
63
|
}
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
ArgsTable,
|
|
8
8
|
PRIMARY_STORY,
|
|
9
9
|
} from '@storybook/addon-docs/blocks';
|
|
10
|
-
import
|
|
10
|
+
import VerifiedAuthor from '../../../../images/icons/verified-author';
|
|
11
11
|
import AuthorTemplateOne from '.';
|
|
12
12
|
|
|
13
13
|
export default {
|
|
@@ -55,11 +55,11 @@ export default {
|
|
|
55
55
|
verify: {
|
|
56
56
|
name: 'verify',
|
|
57
57
|
type: { name: 'element', required: false },
|
|
58
|
-
defaultValue: <
|
|
58
|
+
defaultValue: <VerifiedAuthor />,
|
|
59
59
|
description: 'Icon for verify badge',
|
|
60
60
|
table: {
|
|
61
61
|
type: { summary: 'element' },
|
|
62
|
-
defaultValue: { summary: <
|
|
62
|
+
defaultValue: { summary: <VerifiedAuthor /> },
|
|
63
63
|
},
|
|
64
64
|
},
|
|
65
65
|
showVerification: {
|
|
@@ -3,6 +3,7 @@ import PropTypes from 'prop-types';
|
|
|
3
3
|
import { imagePrettyUrl } from 'gatsby-core-theme/src/helpers/getters';
|
|
4
4
|
import LazyImage from 'gatsby-core-theme/src/hooks/lazy-image';
|
|
5
5
|
import Link from 'gatsby-core-theme/src/hooks/link';
|
|
6
|
+
import VerifiedAuthor from '../../../../images/icons/verified-author';
|
|
6
7
|
import styles from './template-two.module.scss';
|
|
7
8
|
|
|
8
9
|
const AuthorTemplateTwo = ({
|
|
@@ -10,7 +11,7 @@ const AuthorTemplateTwo = ({
|
|
|
10
11
|
authorPath,
|
|
11
12
|
authorImage,
|
|
12
13
|
showLinks = true,
|
|
13
|
-
verify =
|
|
14
|
+
verify = <VerifiedAuthor />,
|
|
14
15
|
width = '21',
|
|
15
16
|
height = '21',
|
|
16
17
|
}) => (
|
|
@@ -23,7 +24,7 @@ const AuthorTemplateTwo = ({
|
|
|
23
24
|
height={height}
|
|
24
25
|
alt={authorName}
|
|
25
26
|
/>
|
|
26
|
-
|
|
27
|
+
{verify}
|
|
27
28
|
</Link>
|
|
28
29
|
) : (
|
|
29
30
|
<>
|
|
@@ -33,7 +34,7 @@ const AuthorTemplateTwo = ({
|
|
|
33
34
|
height={height}
|
|
34
35
|
alt={authorName}
|
|
35
36
|
/>
|
|
36
|
-
|
|
37
|
+
{verify}
|
|
37
38
|
</>
|
|
38
39
|
)}
|
|
39
40
|
</span>
|
|
@@ -43,7 +44,7 @@ AuthorTemplateTwo.propTypes = {
|
|
|
43
44
|
authorName: PropTypes.string,
|
|
44
45
|
authorPath: PropTypes.string,
|
|
45
46
|
authorImage: PropTypes.string,
|
|
46
|
-
verify: PropTypes.
|
|
47
|
+
verify: PropTypes.element,
|
|
47
48
|
showLinks: PropTypes.bool,
|
|
48
49
|
width: PropTypes.string,
|
|
49
50
|
height: PropTypes.string,
|
|
@@ -6,10 +6,12 @@
|
|
|
6
6
|
border: 1px solid #ececec;
|
|
7
7
|
min-width: 2.1rem;
|
|
8
8
|
}
|
|
9
|
-
>
|
|
9
|
+
> svg {
|
|
10
10
|
position: absolute;
|
|
11
11
|
bottom: 4px;
|
|
12
12
|
right: -1px;
|
|
13
|
+
width: 1rem;
|
|
14
|
+
height: 1rem;
|
|
13
15
|
}
|
|
14
16
|
|
|
15
17
|
> a {
|
|
@@ -18,10 +20,12 @@
|
|
|
18
20
|
border: 1px solid #ececec;
|
|
19
21
|
min-width: 2.1rem;
|
|
20
22
|
}
|
|
21
|
-
>
|
|
23
|
+
> svg {
|
|
22
24
|
position: absolute;
|
|
23
25
|
bottom: 4px;
|
|
24
26
|
right: -1px;
|
|
27
|
+
width: 1rem;
|
|
28
|
+
height: 1rem;
|
|
25
29
|
}
|
|
26
30
|
}
|
|
27
|
-
}
|
|
31
|
+
}
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
ArgsTable,
|
|
8
8
|
PRIMARY_STORY,
|
|
9
9
|
} from '@storybook/addon-docs/blocks';
|
|
10
|
-
import
|
|
10
|
+
import VerifiedAuthor from '../../../../images/icons/verified-author';
|
|
11
11
|
import AuthorTemplateOne from '.';
|
|
12
12
|
|
|
13
13
|
export default {
|
|
@@ -28,8 +28,8 @@ export default {
|
|
|
28
28
|
},
|
|
29
29
|
|
|
30
30
|
verify: {
|
|
31
|
-
control: '
|
|
32
|
-
defaultValue:
|
|
31
|
+
control: 'element',
|
|
32
|
+
defaultValue: <VerifiedAuthor />,
|
|
33
33
|
},
|
|
34
34
|
},
|
|
35
35
|
parameters: {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { render, cleanup } from '@testing-library/react';
|
|
3
|
+
import VerifiedAuthor from '../../../../images/icons/verified-author';
|
|
3
4
|
import AuthorTemplateTwo from '.';
|
|
4
5
|
|
|
5
6
|
describe('AuthorTemplateOne Component', () => {
|
|
@@ -9,7 +10,7 @@ describe('AuthorTemplateOne Component', () => {
|
|
|
9
10
|
label="Written by"
|
|
10
11
|
authorName="John Doe"
|
|
11
12
|
authorPath="/path-to-author"
|
|
12
|
-
verify=
|
|
13
|
+
verify={<VerifiedAuthor />}
|
|
13
14
|
/>
|
|
14
15
|
);
|
|
15
16
|
|
|
@@ -6,6 +6,7 @@ import { BiDislike } from '@react-icons/all-files/bi/BiDislike';
|
|
|
6
6
|
import BonusTemplateDefault from 'gatsby-core-theme/src/components/molecules/bonus-box/template-three';
|
|
7
7
|
import ReviewLink from 'gatsby-core-theme/src/components/atoms/review-link';
|
|
8
8
|
import Rating from 'gatsby-core-theme/src/components/atoms/ratings';
|
|
9
|
+
import Verify from '~images/icons/verify';
|
|
9
10
|
import OperatorDetails from '../../../../molecules/operator-details';
|
|
10
11
|
import styles from './template-four.module.scss';
|
|
11
12
|
|
|
@@ -18,7 +19,7 @@ const TemplateFour = ({
|
|
|
18
19
|
showRatingLabel = false,
|
|
19
20
|
showRatingDecimal = false,
|
|
20
21
|
authorTemplateTwo = true,
|
|
21
|
-
verifyIcon =
|
|
22
|
+
verifyIcon = <Verify />,
|
|
22
23
|
showBonusForAll = false,
|
|
23
24
|
width = '88',
|
|
24
25
|
height = '88',
|
|
@@ -120,7 +121,7 @@ TemplateFour.propTypes = {
|
|
|
120
121
|
authorTemplateTwo: PropTypes.bool,
|
|
121
122
|
showAuthor: PropTypes.bool,
|
|
122
123
|
|
|
123
|
-
verifyIcon: PropTypes.
|
|
124
|
+
verifyIcon: PropTypes.element,
|
|
124
125
|
showRibbon: PropTypes.bool,
|
|
125
126
|
useOneStarRating: PropTypes.bool,
|
|
126
127
|
showRatingLabel: PropTypes.bool,
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
ArgsTable,
|
|
9
9
|
} from '@storybook/addon-docs/blocks';
|
|
10
10
|
import { getSampleOperatorCards } from 'gatsby-core-theme/tests/factories/modules/card.factory';
|
|
11
|
-
import
|
|
11
|
+
import Verify from '~images/icons/verify';
|
|
12
12
|
import TemplateFour from '.';
|
|
13
13
|
import styles from './template-four.module.scss';
|
|
14
14
|
|
|
@@ -26,8 +26,8 @@ export default {
|
|
|
26
26
|
},
|
|
27
27
|
verifyIcon: {
|
|
28
28
|
name: 'verifyIcon',
|
|
29
|
-
type: { name: '
|
|
30
|
-
defaultValue:
|
|
29
|
+
type: { name: 'element', required: false },
|
|
30
|
+
defaultValue: <Verify />,
|
|
31
31
|
description: 'verify icon',
|
|
32
32
|
},
|
|
33
33
|
page: {
|
|
@@ -10,6 +10,7 @@ import ReviewLink from 'gatsby-core-theme/src/components/atoms/review-link';
|
|
|
10
10
|
import Tnc from 'gatsby-core-theme/src/components/molecules/tnc';
|
|
11
11
|
import OperatorCta from 'gatsby-core-theme/src/components/atoms/button/operator-cta';
|
|
12
12
|
import SellingPoints from 'gatsby-core-theme/src/components/atoms/selling-points';
|
|
13
|
+
import Verify from '~images/icons/verify';
|
|
13
14
|
import OperatorDetails from '../../../../molecules/operator-details';
|
|
14
15
|
import styles from './template-one.module.scss';
|
|
15
16
|
import Bonus from '~molecules/bonus-box/template-one';
|
|
@@ -29,7 +30,7 @@ const TemplateOne = ({
|
|
|
29
30
|
authorTemplateTwo = true,
|
|
30
31
|
sellingPointsIcon = <FaCheck title="Check Icon" />,
|
|
31
32
|
showBonusForAll = false,
|
|
32
|
-
verifyIcon =
|
|
33
|
+
verifyIcon = <Verify />,
|
|
33
34
|
showOperatorCta = true,
|
|
34
35
|
operatorLogoWidth = '88',
|
|
35
36
|
operatorLogoHeight = '88',
|
|
@@ -185,7 +186,7 @@ TemplateOne.propTypes = {
|
|
|
185
186
|
showAuthor: PropTypes.bool,
|
|
186
187
|
hasVariableComponent: PropTypes.bool,
|
|
187
188
|
sellingPointsIcon: PropTypes.element,
|
|
188
|
-
verifyIcon: PropTypes.
|
|
189
|
+
verifyIcon: PropTypes.element,
|
|
189
190
|
showRibbon: PropTypes.bool,
|
|
190
191
|
useOneStarRating: PropTypes.bool,
|
|
191
192
|
showRatingLabel: PropTypes.bool,
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
ArgsTable,
|
|
9
9
|
} from '@storybook/addon-docs/blocks';
|
|
10
10
|
import { getSampleOperatorCards } from 'gatsby-core-theme/tests/factories/modules/card.factory';
|
|
11
|
-
import
|
|
11
|
+
import Verify from '~images/icons/verify';
|
|
12
12
|
import TemplateOne from '.';
|
|
13
13
|
|
|
14
14
|
const operatorData = getSampleOperatorCards();
|
|
@@ -32,8 +32,8 @@ export default {
|
|
|
32
32
|
},
|
|
33
33
|
verifyIcon: {
|
|
34
34
|
name: 'verifyIcon',
|
|
35
|
-
type: { name: '
|
|
36
|
-
defaultValue:
|
|
35
|
+
type: { name: 'element', required: false },
|
|
36
|
+
defaultValue: <Verify />,
|
|
37
37
|
description: 'verify icon',
|
|
38
38
|
},
|
|
39
39
|
page: {
|
|
@@ -7,6 +7,7 @@ import { FaArrowRight } from '@react-icons/all-files/fa/FaArrowRight';
|
|
|
7
7
|
import ReviewLink from 'gatsby-core-theme/src/components/atoms/review-link';
|
|
8
8
|
import BonusTemplateDefault from 'gatsby-core-theme/src/components/molecules/bonus-box/template-three';
|
|
9
9
|
import OperatorCta from 'gatsby-core-theme/src/components/atoms/button/operator-cta';
|
|
10
|
+
import Verify from '~images/icons/verify';
|
|
10
11
|
import OperatorDetails from '../../../../molecules/operator-details';
|
|
11
12
|
import VariableComponent from '../variables';
|
|
12
13
|
import styles from './template-three.module.scss';
|
|
@@ -17,7 +18,7 @@ const TemplateThree = ({
|
|
|
17
18
|
useOneStarRating = true,
|
|
18
19
|
page,
|
|
19
20
|
showAuthor = true,
|
|
20
|
-
verifyIcon =
|
|
21
|
+
verifyIcon = <Verify />,
|
|
21
22
|
showRatingLabel = false,
|
|
22
23
|
showRatingDecimal = false,
|
|
23
24
|
authorTemplateTwo = true,
|
|
@@ -141,7 +142,7 @@ TemplateThree.propTypes = {
|
|
|
141
142
|
}),
|
|
142
143
|
authorTemplateTwo: PropTypes.bool,
|
|
143
144
|
showAuthor: PropTypes.bool,
|
|
144
|
-
verifyIcon: PropTypes.
|
|
145
|
+
verifyIcon: PropTypes.element,
|
|
145
146
|
showRibbon: PropTypes.bool,
|
|
146
147
|
hasVariableComponent: PropTypes.bool,
|
|
147
148
|
useOneStarRating: PropTypes.bool,
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
ArgsTable,
|
|
9
9
|
} from '@storybook/addon-docs/blocks';
|
|
10
10
|
import { getSampleOperatorCards } from 'gatsby-core-theme/tests/factories/modules/card.factory';
|
|
11
|
-
import
|
|
11
|
+
import Verify from '~images/icons/verify';
|
|
12
12
|
import TemplateThree from '.';
|
|
13
13
|
|
|
14
14
|
const operatorData = getSampleOperatorCards();
|
|
@@ -25,8 +25,8 @@ export default {
|
|
|
25
25
|
},
|
|
26
26
|
verifyIcon: {
|
|
27
27
|
name: 'verifyIcon',
|
|
28
|
-
type: { name: '
|
|
29
|
-
defaultValue:
|
|
28
|
+
type: { name: 'element', required: false },
|
|
29
|
+
defaultValue: <Verify />,
|
|
30
30
|
description: 'verify icon',
|
|
31
31
|
},
|
|
32
32
|
page: {
|
|
@@ -7,6 +7,7 @@ import BonusTemplateDefault from 'gatsby-core-theme/src/components/molecules/bon
|
|
|
7
7
|
import LazyImage from 'gatsby-core-theme/src/hooks/lazy-image';
|
|
8
8
|
import ReviewLink from 'gatsby-core-theme/src/components/atoms/review-link';
|
|
9
9
|
import Tnc from 'gatsby-core-theme/src/components/molecules/tnc';
|
|
10
|
+
import Verify from '~images/icons/verify';
|
|
10
11
|
import VariableComponent from '../variables';
|
|
11
12
|
import OperatorDetails from '../../../../molecules/operator-details';
|
|
12
13
|
import styles from './template-two.module.scss';
|
|
@@ -23,7 +24,7 @@ const TemplateTwo = ({
|
|
|
23
24
|
authorTemplateTwo = true,
|
|
24
25
|
contentRibbon = false,
|
|
25
26
|
hasVariableComponent = false,
|
|
26
|
-
verifyIcon =
|
|
27
|
+
verifyIcon = <Verify />,
|
|
27
28
|
showBonusForAll = false,
|
|
28
29
|
operatorLogoWidth = '88',
|
|
29
30
|
operatorLogoHeight = '88',
|
|
@@ -163,7 +164,7 @@ TemplateTwo.propTypes = {
|
|
|
163
164
|
authorTemplateTwo: PropTypes.bool,
|
|
164
165
|
showPaymentMethods: PropTypes.bool,
|
|
165
166
|
showAuthor: PropTypes.bool,
|
|
166
|
-
verifyIcon: PropTypes.
|
|
167
|
+
verifyIcon: PropTypes.element,
|
|
167
168
|
showRibbon: PropTypes.bool,
|
|
168
169
|
useOneStarRating: PropTypes.bool,
|
|
169
170
|
showRatingLabel: PropTypes.bool,
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
ArgsTable,
|
|
9
9
|
} from '@storybook/addon-docs/blocks';
|
|
10
10
|
import { getSampleOperatorCards } from 'gatsby-core-theme/tests/factories/modules/card.factory';
|
|
11
|
-
import
|
|
11
|
+
import Verify from '~images/icons/verify';
|
|
12
12
|
import TemplateTwo from '.';
|
|
13
13
|
|
|
14
14
|
const operatorData = getSampleOperatorCards();
|
|
@@ -25,8 +25,8 @@ export default {
|
|
|
25
25
|
},
|
|
26
26
|
verifyIcon: {
|
|
27
27
|
name: 'verifyIcon',
|
|
28
|
-
type: { name: '
|
|
29
|
-
defaultValue:
|
|
28
|
+
type: { name: 'element', required: false },
|
|
29
|
+
defaultValue: <Verify />,
|
|
30
30
|
description: 'verify icon',
|
|
31
31
|
},
|
|
32
32
|
useOneStarRating: {
|
|
@@ -12,7 +12,7 @@ import { singleToplistData } from 'gatsby-core-theme/tests/factories/modules/top
|
|
|
12
12
|
import PopupCard from '.';
|
|
13
13
|
|
|
14
14
|
export default {
|
|
15
|
-
title: 'Theme/
|
|
15
|
+
title: 'Theme/Modules/Cards/Popup/Propup Card',
|
|
16
16
|
component: PopupCard,
|
|
17
17
|
argTypes: {
|
|
18
18
|
item: {
|
|
@@ -8,8 +8,8 @@ import {
|
|
|
8
8
|
ArgsTable,
|
|
9
9
|
} from '@storybook/addon-docs/blocks';
|
|
10
10
|
|
|
11
|
-
import
|
|
12
|
-
import
|
|
11
|
+
import CopyIcon from '../../../images/icons/copy-icon';
|
|
12
|
+
import CheckCircleIcon from '../../../images/icons/check-circle';
|
|
13
13
|
|
|
14
14
|
import Coupon from '.';
|
|
15
15
|
|
|
@@ -68,14 +68,14 @@ export default {
|
|
|
68
68
|
const Template = (args) => <Coupon {...args} />;
|
|
69
69
|
export const Default = Template.bind({});
|
|
70
70
|
Default.args = {
|
|
71
|
-
icon:
|
|
72
|
-
checkIcon:
|
|
71
|
+
icon: <CopyIcon />,
|
|
72
|
+
checkIcon: <CheckCircleIcon />,
|
|
73
73
|
};
|
|
74
74
|
|
|
75
75
|
export const TemplateTwo = Template.bind({});
|
|
76
76
|
TemplateTwo.args = {
|
|
77
77
|
templateOne: false,
|
|
78
|
-
icon:
|
|
79
|
-
checkIcon:
|
|
78
|
+
icon: <CopyIcon />,
|
|
79
|
+
checkIcon: <CheckCircleIcon />,
|
|
80
80
|
showprefix: true,
|
|
81
81
|
};
|