gatsby-core-theme 32.0.2 → 32.0.4
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 +20 -0
- package/package.json +1 -1
- package/src/components/molecules/bonus-box/template-three/index.js +3 -0
- package/src/components/molecules/bonus-box/template-two/index.js +3 -0
- package/src/components/molecules/newsletter/form/index.js +3 -0
- package/src/components/molecules/newsletter/index.js +8 -1
- package/src/components/molecules/newsletter/newsletter.stories.js +10 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,23 @@
|
|
|
1
|
+
## [32.0.4](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v32.0.3...v32.0.4) (2024-05-31)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Code Refactoring
|
|
5
|
+
|
|
6
|
+
* changes to newsletter ([eeb67ce](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/eeb67ceca6fc4fea273d3c73e36af4e817ac52ab))
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
* Merge branch 'tm-4397-newsletter' into 'master' ([1d9353d](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/1d9353ddc255164bc2c86a8e740c96a23c85ce29))
|
|
10
|
+
|
|
11
|
+
## [32.0.3](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v32.0.2...v32.0.3) (2024-05-30)
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Bug Fixes
|
|
15
|
+
|
|
16
|
+
* updated other bonus templates ([573d206](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/573d206cb46a660d60da068e05feed31f3b88180))
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
* Merge branch 'tm-4323-pretty-link-props' into 'master' ([9ce3012](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/9ce3012a335f865dd2b771480678de408a9ca207))
|
|
20
|
+
|
|
1
21
|
## [32.0.2](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v32.0.1...v32.0.2) (2024-05-30)
|
|
2
22
|
|
|
3
23
|
|
package/package.json
CHANGED
|
@@ -19,6 +19,7 @@ export default function BonusBox({
|
|
|
19
19
|
feSeparator = '+',
|
|
20
20
|
buttonType = 'primary',
|
|
21
21
|
module = 'bonus_box',
|
|
22
|
+
titleSuffix,
|
|
22
23
|
}) {
|
|
23
24
|
const { translations } = useContext(Context) || {};
|
|
24
25
|
const welcomeBonusTranslation = translate(translations, 'welcome_bonus', 'Welcome Bonus');
|
|
@@ -30,6 +31,7 @@ export default function BonusBox({
|
|
|
30
31
|
pageTemplate={pageTemplate}
|
|
31
32
|
module={module}
|
|
32
33
|
tracker={tracker}
|
|
34
|
+
titleSuffix={titleSuffix}
|
|
33
35
|
clickedElement="oneliner"
|
|
34
36
|
className={`${styles.detailsBox} ${'bonus-box-gtm'}`}
|
|
35
37
|
>
|
|
@@ -77,4 +79,5 @@ BonusBox.propTypes = {
|
|
|
77
79
|
buttonType: PropTypes.string,
|
|
78
80
|
variableInsideContainer: PropTypes.bool,
|
|
79
81
|
module: PropTypes.string,
|
|
82
|
+
titleSuffix: PropTypes.string,
|
|
80
83
|
};
|
|
@@ -14,6 +14,7 @@ export default function BonusBox({
|
|
|
14
14
|
feSeparator = '+',
|
|
15
15
|
buttonType = 'primary',
|
|
16
16
|
module = 'bonus_box',
|
|
17
|
+
titleSuffix,
|
|
17
18
|
}) {
|
|
18
19
|
const data = getBonusData(item, tracker, splitBy);
|
|
19
20
|
|
|
@@ -24,6 +25,7 @@ export default function BonusBox({
|
|
|
24
25
|
pageTemplate={pageTemplate}
|
|
25
26
|
module={module}
|
|
26
27
|
tracker={tracker}
|
|
28
|
+
titleSuffix={titleSuffix}
|
|
27
29
|
clickedElement="oneliner"
|
|
28
30
|
className={`${styles.detailsBox} ${'bonus-box-gtm'}`}
|
|
29
31
|
>
|
|
@@ -51,4 +53,5 @@ BonusBox.propTypes = {
|
|
|
51
53
|
feSeparator: PropTypes.string,
|
|
52
54
|
buttonType: PropTypes.string,
|
|
53
55
|
module: PropTypes.string,
|
|
56
|
+
titleSuffix: PropTypes.string,
|
|
54
57
|
};
|
|
@@ -15,6 +15,7 @@ const NewsletterForm = ({
|
|
|
15
15
|
setErr,
|
|
16
16
|
path,
|
|
17
17
|
country,
|
|
18
|
+
showLabels = true,
|
|
18
19
|
}) => {
|
|
19
20
|
const [ip, setIP] = useState('');
|
|
20
21
|
const [error, setError] = useState(false);
|
|
@@ -89,6 +90,7 @@ const NewsletterForm = ({
|
|
|
89
90
|
customError
|
|
90
91
|
buttonLabel={submitText}
|
|
91
92
|
path={path}
|
|
93
|
+
showLabels={showLabels}
|
|
92
94
|
/>
|
|
93
95
|
);
|
|
94
96
|
};
|
|
@@ -100,6 +102,7 @@ NewsletterForm.propTypes = {
|
|
|
100
102
|
setErr: PropTypes.bool,
|
|
101
103
|
path: PropTypes.string,
|
|
102
104
|
country: PropTypes.string,
|
|
105
|
+
showLabels: PropTypes.bool,
|
|
103
106
|
};
|
|
104
107
|
|
|
105
108
|
export default NewsletterForm;
|
|
@@ -7,7 +7,12 @@ import Button from './toggle-button/index';
|
|
|
7
7
|
import NewsletterForm from './form/index';
|
|
8
8
|
import styles from './newsletter.module.scss';
|
|
9
9
|
|
|
10
|
-
const Newsletter = ({
|
|
10
|
+
const Newsletter = ({
|
|
11
|
+
page,
|
|
12
|
+
openBtnText = 'Unlock Bonuses',
|
|
13
|
+
isSticky = false,
|
|
14
|
+
showLabels = true,
|
|
15
|
+
}) => {
|
|
11
16
|
const [toggleNewsetter, setToggleNewsletter] = useState(false);
|
|
12
17
|
const [isClicked, setIsClicked] = useState(false);
|
|
13
18
|
const country = page?.market?.split('_')[0].toUpperCase();
|
|
@@ -53,6 +58,7 @@ const Newsletter = ({ page, openBtnText = 'Unlock Bonuses', isSticky = false })
|
|
|
53
58
|
market={page?.market}
|
|
54
59
|
path={page?.path}
|
|
55
60
|
redirectUrl={redirectUrl}
|
|
61
|
+
showLabels={showLabels}
|
|
56
62
|
/>
|
|
57
63
|
{isSticky && (
|
|
58
64
|
<MdClose
|
|
@@ -76,6 +82,7 @@ Newsletter.propTypes = {
|
|
|
76
82
|
market: PropTypes.string,
|
|
77
83
|
}),
|
|
78
84
|
isSticky: PropTypes.bool,
|
|
85
|
+
showLabels: PropTypes.bool,
|
|
79
86
|
};
|
|
80
87
|
|
|
81
88
|
export default Newsletter;
|
|
@@ -21,6 +21,16 @@ export default {
|
|
|
21
21
|
defaultValue: null,
|
|
22
22
|
description: 'The page object.',
|
|
23
23
|
},
|
|
24
|
+
showLabels: {
|
|
25
|
+
name: 'showLabels',
|
|
26
|
+
type: { name: 'boolean', required: false },
|
|
27
|
+
defaultValue: true,
|
|
28
|
+
description: 'Show form field labels',
|
|
29
|
+
table: {
|
|
30
|
+
type: { summary: 'boolean' },
|
|
31
|
+
defaultValue: { summary: true },
|
|
32
|
+
},
|
|
33
|
+
},
|
|
24
34
|
},
|
|
25
35
|
parameters: {
|
|
26
36
|
docs: {
|