@salesforcedevs/mrkt-components 0.41.0-alpha.8 → 0.53.5-alpha
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/package.json +1 -1
- package/src/modules/mrkt/ctaSection/ctaSection.css +2 -2
- package/src/modules/mrkt/rectangularHeading/rectangularHeading.css +1 -1
- package/src/modules/mrkt/sectionHeader/sectionHeader.css +29 -9
- package/src/modules/mrkt/sectionHeader/sectionHeader.html +1 -1
- package/src/modules/mrkt/subNavBar/subNavBar.css +4 -2
- package/src/modules/mrkt/subNavBar/subNavBar.ts +10 -5
- package/src/modules/mrkt/tdxSection/tdxSection.css +5 -48
- package/src/modules/mrkt/tdxSection/tdxSection.html +3 -3
- package/src/modules/mrkt/tdxSection/tdxSection.ts +1 -0
- package/src/modules/mrkt/twoColListSection/twoColListSection.css +5 -3
- package/src/modules/mrkt/twoColListSection/twoColListSection.html +1 -1
- package/src/modules/mrkt/twoColPanelSection/twoColPanelSection.css +1 -5
- package/src/modules/mrkt/twoColSection/twoColSection.css +1 -1
package/package.json
CHANGED
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
align-items: center;
|
|
36
36
|
width: 100%;
|
|
37
37
|
text-align: center;
|
|
38
|
-
z-index:
|
|
38
|
+
z-index: 3;
|
|
39
39
|
padding: 0 var(--dx-g-page-padding-horizontal);
|
|
40
40
|
}
|
|
41
41
|
|
|
@@ -65,7 +65,7 @@ span {
|
|
|
65
65
|
display: flex;
|
|
66
66
|
flex-direction: row;
|
|
67
67
|
justify-content: space-between;
|
|
68
|
-
z-index:
|
|
68
|
+
z-index: 2;
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
img {
|
|
@@ -2,12 +2,18 @@
|
|
|
2
2
|
@import "helpers/text";
|
|
3
3
|
|
|
4
4
|
:host {
|
|
5
|
-
|
|
6
|
-
--
|
|
5
|
+
--image-aspect-ratio: 1.43554006969;
|
|
6
|
+
--image-width: 350px;
|
|
7
|
+
--image-height: calc(var(--image-width) / var(--image-aspect-ratio));
|
|
8
|
+
--image-overlap: 44px;
|
|
9
|
+
--image-bottom: calc(var(--image-height) - var(--image-overlap));
|
|
10
|
+
--image-inset: calc(-1 * var(--dx-g-spacing-md));
|
|
11
|
+
--overlap-padding-top: calc(
|
|
12
|
+
var(--image-height) - var(--image-overlap) + var(--image-inset)
|
|
13
|
+
);
|
|
7
14
|
--icon-size: 50px;
|
|
8
15
|
--icon-padding: 24px;
|
|
9
|
-
--
|
|
10
|
-
--mrkt-c-section-header-padding-top: var(--padding-top);
|
|
16
|
+
--mrkt-c-section-header-padding-top: 76px;
|
|
11
17
|
--mrkt-c-section-header-padding-bottom: var(--dx-g-spacing-5xl);
|
|
12
18
|
}
|
|
13
19
|
|
|
@@ -18,6 +24,10 @@
|
|
|
18
24
|
var(--mrkt-c-section-header-padding-bottom) 0;
|
|
19
25
|
}
|
|
20
26
|
|
|
27
|
+
.section-header.section-header.overlap-images {
|
|
28
|
+
padding-top: var(--overlap-padding-top);
|
|
29
|
+
}
|
|
30
|
+
|
|
21
31
|
.section-header.dark {
|
|
22
32
|
background: var(--dx-g-blue-vibrant-15, #03234d);
|
|
23
33
|
}
|
|
@@ -38,19 +48,19 @@
|
|
|
38
48
|
}
|
|
39
49
|
|
|
40
50
|
.section-header:not(.overlap-images) .img-container {
|
|
41
|
-
margin-bottom:
|
|
51
|
+
margin-bottom: var(--image-inset);
|
|
42
52
|
}
|
|
43
53
|
|
|
44
54
|
.section-header.overlap-images .img-container {
|
|
45
55
|
position: absolute;
|
|
46
|
-
bottom: calc(100% - var(--image-
|
|
56
|
+
bottom: calc(100% - var(--image-bottom));
|
|
47
57
|
left: 0;
|
|
48
58
|
z-index: 0;
|
|
49
59
|
}
|
|
50
60
|
|
|
51
61
|
img {
|
|
52
|
-
aspect-ratio:
|
|
53
|
-
width:
|
|
62
|
+
aspect-ratio: var(--image-aspect-ratio);
|
|
63
|
+
width: 350px;
|
|
54
64
|
max-width: 50%;
|
|
55
65
|
}
|
|
56
66
|
|
|
@@ -79,7 +89,7 @@ dx-icon-badge {
|
|
|
79
89
|
}
|
|
80
90
|
|
|
81
91
|
.section-header.has-subtitle .title {
|
|
82
|
-
margin-bottom: var(--dx-g-spacing-
|
|
92
|
+
margin-bottom: var(--dx-g-spacing-md);
|
|
83
93
|
}
|
|
84
94
|
|
|
85
95
|
.section-header.dark .title,
|
|
@@ -93,6 +103,10 @@ dx-icon-badge {
|
|
|
93
103
|
}
|
|
94
104
|
|
|
95
105
|
@media (max-width: 768px) {
|
|
106
|
+
:host {
|
|
107
|
+
--image-width: 50vw;
|
|
108
|
+
}
|
|
109
|
+
|
|
96
110
|
.section-header .title {
|
|
97
111
|
font-size: var(--dx-g-text-2xl);
|
|
98
112
|
letter-spacing: -0.4px;
|
|
@@ -105,3 +119,9 @@ dx-icon-badge {
|
|
|
105
119
|
line-height: 28px;
|
|
106
120
|
}
|
|
107
121
|
}
|
|
122
|
+
|
|
123
|
+
@media (max-width: 360px) {
|
|
124
|
+
:host {
|
|
125
|
+
--overlap-padding-top: var(--mrkt-c-section-header-padding-top);
|
|
126
|
+
}
|
|
127
|
+
}
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
symbol={iconSymbol}
|
|
11
11
|
></dx-icon-badge>
|
|
12
12
|
<h2 if:true={title} class="title dx-text-heading-2b">{title}</h2>
|
|
13
|
-
<span if:true={subtitle} class="subtitle dx-text-
|
|
13
|
+
<span if:true={subtitle} class="subtitle dx-text-body-1">
|
|
14
14
|
{subtitle}
|
|
15
15
|
</span>
|
|
16
16
|
</div>
|
|
@@ -65,6 +65,7 @@ a {
|
|
|
65
65
|
display: flex;
|
|
66
66
|
align-items: center;
|
|
67
67
|
justify-content: center;
|
|
68
|
+
white-space: nowrap;
|
|
68
69
|
}
|
|
69
70
|
|
|
70
71
|
a::after {
|
|
@@ -79,11 +80,12 @@ a::after {
|
|
|
79
80
|
}
|
|
80
81
|
|
|
81
82
|
a.active::after {
|
|
82
|
-
height:
|
|
83
|
+
height: 4px;
|
|
83
84
|
}
|
|
84
85
|
|
|
85
86
|
a > dx-icon-badge {
|
|
86
|
-
--dx-c-icon-badge-size:
|
|
87
|
+
--dx-c-icon-badge-size: 30px;
|
|
88
|
+
--dx-c-icon-badge-icon-size: 17px;
|
|
87
89
|
--dx-c-icon-badge-background-color: var(--dx-g-blue-vibrant-20);
|
|
88
90
|
--dx-c-icon-badge-transition: var(--dx-g-transition-hue-1x);
|
|
89
91
|
|
|
@@ -7,6 +7,7 @@ import { toJson } from "utils/normalizers";
|
|
|
7
7
|
export default class SubNavBar extends MatchMediaElement {
|
|
8
8
|
@api subscribeHref!: string;
|
|
9
9
|
@api containerQuery: string = "body";
|
|
10
|
+
@api showAtId?: string;
|
|
10
11
|
|
|
11
12
|
@api
|
|
12
13
|
get navItems() {
|
|
@@ -36,6 +37,11 @@ export default class SubNavBar extends MatchMediaElement {
|
|
|
36
37
|
return document.querySelector(this.containerQuery) as HTMLElement;
|
|
37
38
|
}
|
|
38
39
|
|
|
40
|
+
private get showAtElement(): HTMLElement {
|
|
41
|
+
const id = this.showAtId || this.hashIds[0];
|
|
42
|
+
return document.getElementById(id) as HTMLElement;
|
|
43
|
+
}
|
|
44
|
+
|
|
39
45
|
private get className(): string {
|
|
40
46
|
return cx("subnav", !this.isVisible && "hide");
|
|
41
47
|
}
|
|
@@ -71,19 +77,18 @@ export default class SubNavBar extends MatchMediaElement {
|
|
|
71
77
|
super.connectedCallback();
|
|
72
78
|
this.observeSectionIntersections();
|
|
73
79
|
this.onPageScroll();
|
|
74
|
-
this.containerElement
|
|
80
|
+
this.containerElement?.addEventListener("scroll", this.onPageScroll);
|
|
75
81
|
}
|
|
76
82
|
|
|
77
83
|
disconnectedCallback(): void {
|
|
78
84
|
super.disconnectedCallback();
|
|
79
85
|
this.sectionsObserver.disconnect();
|
|
80
|
-
this.containerElement
|
|
86
|
+
this.containerElement?.removeEventListener("scroll", this.onPageScroll);
|
|
81
87
|
}
|
|
82
88
|
|
|
83
89
|
private onPageScroll = () => {
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
this.isVisible = firstSection.getBoundingClientRect().y <= 1;
|
|
90
|
+
if (this.showAtElement) {
|
|
91
|
+
this.isVisible = this.showAtElement.getBoundingClientRect().y <= 1;
|
|
87
92
|
}
|
|
88
93
|
};
|
|
89
94
|
|
|
@@ -20,42 +20,20 @@
|
|
|
20
20
|
margin: var(--padding-top) 0 var(--padding-bottom) 0;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
.content-subtitle,
|
|
24
|
-
.content-info {
|
|
25
|
-
font-family: var(--dx-g-font-display);
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.content-subtitle,
|
|
29
|
-
.content-body,
|
|
30
|
-
.content-info {
|
|
31
|
-
color: white;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.content-subtitle {
|
|
35
|
-
font-size: 32px;
|
|
36
|
-
letter-spacing: -0.4%;
|
|
37
|
-
line-height: 40px;
|
|
38
|
-
margin-top: 6px;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
23
|
.content-body {
|
|
24
|
+
color: white;
|
|
42
25
|
font-family: var(--dx-g-font-sans);
|
|
43
|
-
font-size: var(--dx-g-text-
|
|
44
|
-
letter-spacing: 0.12%;
|
|
45
|
-
line-height: 30px;
|
|
26
|
+
font-size: var(--dx-g-text-base);
|
|
46
27
|
margin-top: var(--dx-g-spacing-smd);
|
|
47
28
|
}
|
|
48
29
|
|
|
49
30
|
.content-info {
|
|
50
|
-
font-size: var(--dx-g-text-xl);
|
|
51
|
-
letter-spacing: 0.4%;
|
|
52
|
-
line-height: 32px;
|
|
53
31
|
margin-top: 30px;
|
|
54
32
|
margin-bottom: var(--dx-g-spacing-lg);
|
|
55
33
|
}
|
|
56
34
|
|
|
57
35
|
.image-container {
|
|
58
|
-
width:
|
|
36
|
+
width: 550px;
|
|
59
37
|
flex-shrink: 0;
|
|
60
38
|
position: relative;
|
|
61
39
|
}
|
|
@@ -69,7 +47,7 @@ img {
|
|
|
69
47
|
@media screen and (max-width: 1024px) {
|
|
70
48
|
:host {
|
|
71
49
|
--padding-top: 38px;
|
|
72
|
-
--padding-bottom:
|
|
50
|
+
--padding-bottom: 72px;
|
|
73
51
|
}
|
|
74
52
|
|
|
75
53
|
.container {
|
|
@@ -86,25 +64,10 @@ img {
|
|
|
86
64
|
font-size: var(--dx-g-text-3xl);
|
|
87
65
|
}
|
|
88
66
|
|
|
89
|
-
.content-subtitle {
|
|
90
|
-
font-size: var(--dx-g-text-lg);
|
|
91
|
-
line-height: 28px;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
.content-body {
|
|
95
|
-
font-size: var(--dx-g-text-sm);
|
|
96
|
-
line-height: 20px;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
.content-info {
|
|
100
|
-
font-size: var(--dx-g-text-base);
|
|
101
|
-
line-height: 24px;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
67
|
.image-container {
|
|
105
|
-
flex-shrink: unset;
|
|
106
68
|
height: unset;
|
|
107
69
|
padding: var(--dx-g-spacing-sm) 0;
|
|
70
|
+
width: 400px;
|
|
108
71
|
}
|
|
109
72
|
|
|
110
73
|
img {
|
|
@@ -132,12 +95,6 @@ img {
|
|
|
132
95
|
font-size: var(--dx-g-text-3xl);
|
|
133
96
|
}
|
|
134
97
|
|
|
135
|
-
.content-subtitle {
|
|
136
|
-
font-size: var(--dx-g-text-lg);
|
|
137
|
-
line-height: 28px;
|
|
138
|
-
margin-top: 0;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
98
|
.content-info {
|
|
142
99
|
margin-top: var(--dx-g-spacing-lg);
|
|
143
100
|
}
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
<div class="container">
|
|
3
3
|
<div class="content">
|
|
4
4
|
<h3 class="content-title dx-text-heading-2b">{title}</h3>
|
|
5
|
-
<h4 class="
|
|
5
|
+
<h4 class="dx-text-heading-4">{subtitle}</h4>
|
|
6
6
|
<p class="content-body">{body}</p>
|
|
7
|
-
<p class="content-info">{info}</p>
|
|
8
|
-
<dx-button>{buttonLabel}</dx-button>
|
|
7
|
+
<p class="content-info dx-text-heading-6">{info}</p>
|
|
8
|
+
<dx-button href={buttonHref}>{buttonLabel}</dx-button>
|
|
9
9
|
</div>
|
|
10
10
|
<div class="image-container">
|
|
11
11
|
<img src={imgSrc} alt={imgAlt} />
|
|
@@ -13,7 +13,6 @@
|
|
|
13
13
|
var(--mrkt-c-two-col-list-section-padding-bottom)
|
|
14
14
|
var(--dx-g-page-padding-horizontal);
|
|
15
15
|
display: flex;
|
|
16
|
-
width: 100%;
|
|
17
16
|
}
|
|
18
17
|
|
|
19
18
|
.two-col-list-section.dark {
|
|
@@ -24,6 +23,7 @@
|
|
|
24
23
|
display: grid;
|
|
25
24
|
grid-template-columns: 1fr 1fr;
|
|
26
25
|
grid-gap: var(--dx-g-spacing-3xl) var(--dx-g-spacing-6xl);
|
|
26
|
+
width: max-content;
|
|
27
27
|
margin: auto;
|
|
28
28
|
}
|
|
29
29
|
|
|
@@ -31,9 +31,11 @@
|
|
|
31
31
|
width: 100%;
|
|
32
32
|
max-width: 414px;
|
|
33
33
|
display: grid;
|
|
34
|
-
grid-template-areas:
|
|
34
|
+
grid-template-areas:
|
|
35
|
+
"icon title"
|
|
36
|
+
"icon subtitle";
|
|
35
37
|
grid-template-columns: min-content auto;
|
|
36
|
-
grid-template-rows: min-content
|
|
38
|
+
grid-template-rows: min-content;
|
|
37
39
|
grid-gap: var(--dx-g-spacing-xs) var(--dx-g-spacing-mlg);
|
|
38
40
|
}
|
|
39
41
|
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
background-color={item.iconBackgroundColor}
|
|
11
11
|
></dx-icon-badge>
|
|
12
12
|
<h3 class="title dx-text-heading-4b">{item.title}</h3>
|
|
13
|
-
<span class="subtitle dx-text-body-
|
|
13
|
+
<span class="subtitle dx-text-body-2">{item.subtitle}</span>
|
|
14
14
|
</div>
|
|
15
15
|
</template>
|
|
16
16
|
</div>
|
|
@@ -81,7 +81,7 @@ img {
|
|
|
81
81
|
|
|
82
82
|
@media (max-width: 1024px) {
|
|
83
83
|
:host {
|
|
84
|
-
--padding-vertical: var(--dx-g-spacing-
|
|
84
|
+
--padding-vertical: var(--dx-g-spacing-3xl);
|
|
85
85
|
}
|
|
86
86
|
|
|
87
87
|
.title {
|
|
@@ -112,10 +112,6 @@ img {
|
|
|
112
112
|
}
|
|
113
113
|
|
|
114
114
|
@media (max-width: 768px) {
|
|
115
|
-
:host {
|
|
116
|
-
--padding-vertical: 72px;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
115
|
.two-col-panel-section {
|
|
120
116
|
display: flex;
|
|
121
117
|
flex-direction: column;
|