gatsby-core-theme 25.0.8 → 25.0.10
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 +21 -0
- package/package.json +1 -1
- package/src/components/atoms/author-box/author-box.module.scss +2 -2
- package/src/components/atoms/collapse/collapse.module.scss +3 -3
- package/src/components/atoms/faq/faq.module.scss +2 -2
- package/src/components/molecules/bonus/template-two/bonus.test.js +1 -1
- package/src/components/molecules/bonus/template-two/index.js +8 -2
- package/src/components/organisms/accordion/accordion.module.scss +2 -2
- package/src/components/organisms/search/search.module.scss +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,24 @@
|
|
|
1
|
+
## [25.0.10](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v25.0.9...v25.0.10) (2023-08-01)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* add for menu ([6786f7a](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/6786f7a5ad4131186723d2a05931f8629e918782))
|
|
7
|
+
* anchro dosen't affect ([1f3c893](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/1f3c893d24230d974795bf10b5d5d8ec493d660b))
|
|
8
|
+
* remove transiton time ([a5bb001](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/a5bb0013af34e36fe8d4742b356f3f595cc518cd))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
* Merge branch 'tm-3570-INP' into 'master' ([676e420](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/676e420456697000cb833a5d1a9a58fbf5db2328))
|
|
12
|
+
|
|
13
|
+
## [25.0.9](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v25.0.8...v25.0.9) (2023-07-28)
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### Bug Fixes
|
|
17
|
+
|
|
18
|
+
* add a props to hide welcome text ([f466dd2](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/f466dd2902bcc021f918d2735f58792e7b6700b6))
|
|
19
|
+
* add translation ([1187556](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/118755677306e37f43787bbf923572290a23868b))
|
|
20
|
+
* fix test ([dee8bb7](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/dee8bb7e975542e84c7b0fc2b6fb50c56063bc13))
|
|
21
|
+
|
|
1
22
|
## [25.0.8](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v25.0.7...v25.0.8) (2023-07-26)
|
|
2
23
|
|
|
3
24
|
|
package/package.json
CHANGED
|
@@ -157,7 +157,7 @@
|
|
|
157
157
|
max-height: 88px;
|
|
158
158
|
min-height: 66px;
|
|
159
159
|
overflow: hidden;
|
|
160
|
-
transition: max-height
|
|
160
|
+
transition: max-height 0s ease-out;
|
|
161
161
|
cursor: pointer;
|
|
162
162
|
|
|
163
163
|
@include max(mobile) {
|
|
@@ -166,7 +166,7 @@
|
|
|
166
166
|
|
|
167
167
|
&.open {
|
|
168
168
|
max-height: 2000px;
|
|
169
|
-
transition: max-height
|
|
169
|
+
transition: max-height 0s ease-in;
|
|
170
170
|
cursor: default;
|
|
171
171
|
}
|
|
172
172
|
}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
font-size: 1.6rem;
|
|
6
6
|
|
|
7
7
|
&:after {
|
|
8
|
-
transition:
|
|
8
|
+
transition: 0s;
|
|
9
9
|
@include arrow(var(--color-20), 0.8rem, down, false, translateY(-50%));
|
|
10
10
|
position: absolute;
|
|
11
11
|
left: 115%;
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
overflow: hidden;
|
|
37
37
|
max-height: 0;
|
|
38
38
|
font-size: 1.6rem;
|
|
39
|
-
transition: max-height
|
|
39
|
+
transition: max-height 0s ease-out;
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
42
|
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
overflow: hidden;
|
|
46
46
|
max-height: 0;
|
|
47
47
|
font-size: 1.6rem;
|
|
48
|
-
transition: max-height
|
|
48
|
+
transition: max-height 0s ease-out;
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
51
|
}
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
&:after {
|
|
50
|
-
transition:
|
|
50
|
+
transition: 0s;
|
|
51
51
|
@include arrow(black, 0.9rem, down, false, translateY(-50%));
|
|
52
52
|
position: absolute;
|
|
53
53
|
right: 0.5rem;
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
.content {
|
|
65
|
-
@include collapse(
|
|
65
|
+
@include collapse(0s, 500rem);
|
|
66
66
|
@include flex-direction(column);
|
|
67
67
|
font-size: 1.6rem;
|
|
68
68
|
color: var(--color-20);
|
|
@@ -40,7 +40,7 @@ describe('TemplateOne', () => {
|
|
|
40
40
|
|
|
41
41
|
test('displays the welcome bonus text', () => {
|
|
42
42
|
renderComponent(operator);
|
|
43
|
-
const welcomeBonus = screen.getByText('Welcome
|
|
43
|
+
const welcomeBonus = screen.getByText('Welcome Bonus');
|
|
44
44
|
expect(welcomeBonus).toBeInTheDocument();
|
|
45
45
|
});
|
|
46
46
|
|
|
@@ -3,7 +3,7 @@ import React, { useState, useEffect, useContext } from 'react';
|
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import { FaArrowRight } from '@react-icons/all-files/fa/FaArrowRight';
|
|
5
5
|
import { IoMdClose } from '@react-icons/all-files/io/IoMdClose';
|
|
6
|
-
import { prettyTracker, imagePrettyUrl } from '~helpers/getters';
|
|
6
|
+
import { prettyTracker, imagePrettyUrl, translate } from '~helpers/getters';
|
|
7
7
|
import LazyImage from '~hooks/lazy-image';
|
|
8
8
|
import isSticky from '~hooks/stickyOnScroll';
|
|
9
9
|
import Onliner from '~atoms/bonus';
|
|
@@ -21,6 +21,7 @@ export default function TemplateOne({
|
|
|
21
21
|
tncEnable = true,
|
|
22
22
|
tncFixed = false,
|
|
23
23
|
showOnLoad = false,
|
|
24
|
+
showWelcomeText = true,
|
|
24
25
|
floating = false,
|
|
25
26
|
}) {
|
|
26
27
|
const prettyLink = prettyTracker(
|
|
@@ -90,7 +91,12 @@ export default function TemplateOne({
|
|
|
90
91
|
</div>
|
|
91
92
|
</a>
|
|
92
93
|
<div className={styles.bonus || ''}>
|
|
93
|
-
|
|
94
|
+
{showWelcomeText && (
|
|
95
|
+
<p className={styles.welcomeBonus}>
|
|
96
|
+
{translate(translations, 'welcome_bonus', 'Welcome Bonus')}
|
|
97
|
+
</p>
|
|
98
|
+
)}
|
|
99
|
+
|
|
94
100
|
<Onliner item={operator} tracker={module?.type || 'main'} />
|
|
95
101
|
{tncEnable && !tncFixed && <Tnc hasCollapse={false} operator={operator} />}
|
|
96
102
|
</div>
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
&:after {
|
|
29
|
-
transition:
|
|
29
|
+
transition: 0s;
|
|
30
30
|
@include arrow(black, 0.9rem, down, false, translateY(-50%));
|
|
31
31
|
position: absolute;
|
|
32
32
|
right: 0.5rem;
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
.content {
|
|
44
|
-
@include collapse(
|
|
44
|
+
@include collapse(0s, 20rem);
|
|
45
45
|
font-size: 1.6rem;
|
|
46
46
|
color: var(--color-20);
|
|
47
47
|
padding: 0;
|