gatsby-core-theme 44.25.3 → 44.26.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/CHANGELOG.md +20 -0
- package/package.json +1 -1
- package/src/components/atoms/button/operator-cta.js +12 -0
- package/src/components/molecules/content/content.module.scss +47 -0
- package/src/components/molecules/content/index.js +2 -0
- package/src/components/molecules/module/module.module.scss +10 -0
- package/src/constants/operatorTypes.js +4 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,23 @@
|
|
|
1
|
+
## [44.26.1](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v44.26.0...v44.26.1) (2026-06-10)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* update operator cta ([8614ca6](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/8614ca6112b95852b1d78b75ce34e380876bd33e))
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
* Merge branch 'en-531-data-attributes' into 'master' ([3e06e32](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/3e06e32253e79ccc1cfc41bea38f5e5a22aa3596))
|
|
10
|
+
|
|
11
|
+
# [44.26.0](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v44.25.3...v44.26.0) (2026-06-10)
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
* Merge branch 'EN-494/content-template-four' into 'master' ([2029c81](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/2029c81166c9c3ada7c133831d62c377fe7ab887))
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* add content template four ([217253c](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/217253c8f3eeab92639ec5d004c343b1e61f441c))
|
|
20
|
+
|
|
1
21
|
## [44.25.3](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v44.25.2...v44.25.3) (2026-06-08)
|
|
2
22
|
|
|
3
23
|
|
package/package.json
CHANGED
|
@@ -7,6 +7,7 @@ import { prettyTracker } from '~helpers/getters';
|
|
|
7
7
|
import { trackerLinkActive } from '~helpers/tracker';
|
|
8
8
|
import styles from './button.module.scss';
|
|
9
9
|
import useCtaClickHandler from '../../../hooks/useCtaClickHandler/index';
|
|
10
|
+
import operatorTypes from "../../../constants/operatorTypes";
|
|
10
11
|
|
|
11
12
|
const OperatorCtaButton = ({
|
|
12
13
|
operator,
|
|
@@ -70,6 +71,8 @@ const OperatorCtaButton = ({
|
|
|
70
71
|
const classes = `${styles[buttonType] || ''} ${status && styles[status] ? styles[status] : ''} ${buttonSize ? styles[`${buttonSize}_size`] : ''
|
|
71
72
|
} `;
|
|
72
73
|
|
|
74
|
+
const operatorName = operator?.short_name || operator?.name || undefined;
|
|
75
|
+
const dataModule = moduleName && modulePosition ? `${moduleName}-${modulePosition}` : undefined;
|
|
73
76
|
return (
|
|
74
77
|
trackerLinkActive(operator, tracker) && status === "active" ? (
|
|
75
78
|
<a
|
|
@@ -83,6 +86,13 @@ const OperatorCtaButton = ({
|
|
|
83
86
|
target="_blank"
|
|
84
87
|
rel={rel}
|
|
85
88
|
onClick={handleCtaClick}
|
|
89
|
+
data-interaction="outbound-click"
|
|
90
|
+
{...(operator?.type && { 'data-vertical': operatorTypes[operator?.type] || operator?.type })}
|
|
91
|
+
{...(operatorName && { 'data-operator': operatorName })}
|
|
92
|
+
{...(trackerType && { 'data-tracker': trackerType })}
|
|
93
|
+
{...(modulePosition && { 'data-location': modulePosition })}
|
|
94
|
+
{...(itemPosition && { 'data-position': itemPosition })}
|
|
95
|
+
{...(dataModule && { 'data-module': dataModule })}
|
|
86
96
|
>
|
|
87
97
|
{translateBtn}
|
|
88
98
|
{icon && icon}
|
|
@@ -103,6 +113,8 @@ OperatorCtaButton.propTypes = {
|
|
|
103
113
|
operator: PropTypes.shape({
|
|
104
114
|
name: PropTypes.string,
|
|
105
115
|
status: PropTypes.string,
|
|
116
|
+
short_name: PropTypes.string,
|
|
117
|
+
type: PropTypes.string,
|
|
106
118
|
}),
|
|
107
119
|
titleSuffix: PropTypes.string,
|
|
108
120
|
gtmClass: PropTypes.string,
|
|
@@ -317,3 +317,50 @@ ul, ol{
|
|
|
317
317
|
.three-column-block {
|
|
318
318
|
grid-template-columns: repeat(3, 1fr);
|
|
319
319
|
}
|
|
320
|
+
|
|
321
|
+
.templateFour {
|
|
322
|
+
h2 {
|
|
323
|
+
margin-top: 0;
|
|
324
|
+
margin-bottom: 2.4rem;
|
|
325
|
+
color: #1B1B1C;
|
|
326
|
+
text-transform: capitalize;
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
img {
|
|
330
|
+
min-width: 34.3rem;
|
|
331
|
+
width: 100%;
|
|
332
|
+
height: auto;
|
|
333
|
+
border-radius: 1.6rem;
|
|
334
|
+
|
|
335
|
+
@include min(desktop) {
|
|
336
|
+
min-width: 46rem;
|
|
337
|
+
border-radius: 2.4rem;
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
/* stylelint-disable no-descending-specificity */
|
|
341
|
+
p {
|
|
342
|
+
--paragraph-content-first-margin-bottom: 0;
|
|
343
|
+
|
|
344
|
+
color: #515156;
|
|
345
|
+
text-align: left;
|
|
346
|
+
margin-bottom: 0 !important;
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
.column {
|
|
350
|
+
display: flex;
|
|
351
|
+
flex-direction: column;
|
|
352
|
+
gap: 4rem;
|
|
353
|
+
|
|
354
|
+
@include min(tablet) {
|
|
355
|
+
display: grid;
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
>:has(p > img) {
|
|
359
|
+
order: 2;
|
|
360
|
+
|
|
361
|
+
@include min(tablet) {
|
|
362
|
+
order: unset;
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
}
|
|
@@ -40,6 +40,8 @@ const Content = ({
|
|
|
40
40
|
return `${table.templateTwo || ''}`
|
|
41
41
|
case 'template_three':
|
|
42
42
|
return `${table.templateOne || ''} ${frame.frame || ''}`
|
|
43
|
+
case 'template_four':
|
|
44
|
+
return `${styles.templateFour || ''}`
|
|
43
45
|
default:
|
|
44
46
|
return `${table.templateOne || ''}`
|
|
45
47
|
}
|
|
@@ -29,4 +29,14 @@
|
|
|
29
29
|
|
|
30
30
|
.archiveModule_suspense {
|
|
31
31
|
min-height: 100rem;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.content-module:has([class*="templateFour"]) {
|
|
35
|
+
--max-width-content: 96rem;
|
|
36
|
+
|
|
37
|
+
background-color: var(--content-template-four-bg-color, #fff);
|
|
38
|
+
|
|
39
|
+
@include min(desktop) {
|
|
40
|
+
--padding-content-min-tablet: 0;
|
|
41
|
+
}
|
|
32
42
|
}
|