@salesforcedevs/mrkt-components 0.41.0-alpha.0 → 0.41.0-alpha.3
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 +6 -5
- package/src/modules/mrkt/rectangularHeading/rectangularHeading.css +1 -0
- package/src/modules/mrkt/rectangularHeading/rectangularHeading.html +3 -1
- package/src/modules/mrkt/rectangularHeading/rectangularHeading.ts +0 -1
- package/src/modules/mrkt/sectionHeader/sectionHeader.css +9 -2
- package/src/modules/mrkt/sectionHeader/sectionHeader.html +4 -4
- package/src/modules/mrkt/sectionHeader/sectionHeader.ts +3 -1
- package/src/modules/mrkt/subNavBar/subNavBar.css +2 -0
- package/src/modules/mrkt/subNavBar/subNavBar.ts +1 -1
- package/src/modules/mrkt/tdxSection/tdxSection.css +33 -38
- package/src/modules/mrkt/tdxSection/tdxSection.html +3 -5
- package/src/modules/mrkt/twoColListSection/twoColListSection.css +2 -1
- package/src/modules/mrkt/twoColListSection/twoColListSection.html +2 -1
- package/src/modules/mrkt/twoColListSection/twoColListSection.ts +2 -1
- package/src/modules/mrkt/twoColPanelSection/twoColPanelSection.html +15 -3
- package/src/modules/mrkt/twoColPanelSection/twoColPanelSection.ts +0 -3
- package/src/modules/mrkt/twoColSection/twoColSection.html +1 -1
- package/src/modules/mrkt/videoPlayerSection/videoPlayerSection.css +3 -2
package/package.json
CHANGED
|
@@ -59,12 +59,13 @@ span {
|
|
|
59
59
|
|
|
60
60
|
.img-container {
|
|
61
61
|
position: absolute;
|
|
62
|
-
bottom:
|
|
62
|
+
bottom: -35px;
|
|
63
63
|
left: 0;
|
|
64
64
|
width: 100%;
|
|
65
65
|
display: flex;
|
|
66
66
|
flex-direction: row;
|
|
67
67
|
justify-content: space-between;
|
|
68
|
+
z-index: 100;
|
|
68
69
|
}
|
|
69
70
|
|
|
70
71
|
img {
|
|
@@ -77,6 +78,10 @@ img {
|
|
|
77
78
|
--mrkt-c-cta-section-padding-bottom: var(--dx-g-spacing-5xl);
|
|
78
79
|
}
|
|
79
80
|
|
|
81
|
+
.img-container {
|
|
82
|
+
bottom: -28px;
|
|
83
|
+
}
|
|
84
|
+
|
|
80
85
|
img {
|
|
81
86
|
width: 200px;
|
|
82
87
|
}
|
|
@@ -91,8 +96,4 @@ img {
|
|
|
91
96
|
position: relative;
|
|
92
97
|
padding-top: var(--dx-g-spacing-mlg);
|
|
93
98
|
}
|
|
94
|
-
|
|
95
|
-
img {
|
|
96
|
-
width: 30%;
|
|
97
|
-
}
|
|
98
99
|
}
|
|
@@ -31,13 +31,20 @@
|
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
.img-container {
|
|
34
|
-
position: absolute;
|
|
35
34
|
display: flex;
|
|
36
35
|
flex-direction: row;
|
|
37
36
|
justify-content: space-between;
|
|
37
|
+
width: 100%;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.section-header:not(.overlap-images) .img-container {
|
|
41
|
+
margin-bottom: calc(-1 * var(--dx-g-spacing-md));
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.section-header.overlap-images .img-container {
|
|
45
|
+
position: absolute;
|
|
38
46
|
bottom: calc(100% - var(--image-offset));
|
|
39
47
|
left: 0;
|
|
40
|
-
width: 100%;
|
|
41
48
|
z-index: 0;
|
|
42
49
|
}
|
|
43
50
|
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class={className}>
|
|
3
|
+
<div class="img-container" if:true={hasImages}>
|
|
4
|
+
<img src={imgSrcLeft} alt="" />
|
|
5
|
+
<img src={imgSrcRight} alt="" />
|
|
6
|
+
</div>
|
|
3
7
|
<div class="text-container">
|
|
4
8
|
<dx-icon-badge
|
|
5
9
|
if:true={hasIcon}
|
|
@@ -10,9 +14,5 @@
|
|
|
10
14
|
{subtitle}
|
|
11
15
|
</span>
|
|
12
16
|
</div>
|
|
13
|
-
<div class="img-container" if:true={hasImages}>
|
|
14
|
-
<img src={imgSrcLeft} alt="" />
|
|
15
|
-
<img src={imgSrcRight} alt="" />
|
|
16
|
-
</div>
|
|
17
17
|
</div>
|
|
18
18
|
</template>
|
|
@@ -6,6 +6,7 @@ export default class SectionHeader extends LightningElement {
|
|
|
6
6
|
@api iconSymbol?: string;
|
|
7
7
|
@api imgSrcLeft?: string;
|
|
8
8
|
@api imgSrcRight?: string;
|
|
9
|
+
@api overlapImages?: boolean = false;
|
|
9
10
|
@api lightGradient?: boolean;
|
|
10
11
|
@api subtitle?: string;
|
|
11
12
|
@api title?: string;
|
|
@@ -23,7 +24,8 @@ export default class SectionHeader extends LightningElement {
|
|
|
23
24
|
"section-header",
|
|
24
25
|
this.dark && "dark",
|
|
25
26
|
this.lightGradient && "light-gradient",
|
|
26
|
-
this.subtitle && "has-subtitle"
|
|
27
|
+
this.subtitle && "has-subtitle",
|
|
28
|
+
this.overlapImages && "overlap-images"
|
|
27
29
|
);
|
|
28
30
|
}
|
|
29
31
|
}
|
|
@@ -23,7 +23,7 @@ export default class SubNavBar extends MatchMediaElement {
|
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
private _navItems!: OptionWithLink[];
|
|
26
|
-
private isVisible: boolean =
|
|
26
|
+
private isVisible: boolean = false;
|
|
27
27
|
private sectionIntersectionEntryMap:
|
|
28
28
|
| {
|
|
29
29
|
[id: string]: IntersectionObserverEntry;
|
|
@@ -3,18 +3,20 @@
|
|
|
3
3
|
|
|
4
4
|
:host {
|
|
5
5
|
--dx-g-text-heading-color: white;
|
|
6
|
+
--padding-top: 54px;
|
|
7
|
+
--padding-bottom: 74px;
|
|
6
8
|
}
|
|
7
9
|
|
|
8
10
|
.container {
|
|
9
11
|
background-color: var(--dx-g-indigo-vibrant-20);
|
|
10
12
|
display: flex;
|
|
11
|
-
justify-content:
|
|
12
|
-
|
|
13
|
+
justify-content: space-between;
|
|
14
|
+
padding: 0 var(--dx-g-page-padding-horizontal);
|
|
13
15
|
}
|
|
14
16
|
|
|
15
17
|
.content {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
+
flex-grow: 1;
|
|
19
|
+
margin: var(--padding-top) 0 var(--padding-bottom) 0;
|
|
18
20
|
}
|
|
19
21
|
|
|
20
22
|
.content-subtitle,
|
|
@@ -28,10 +30,6 @@
|
|
|
28
30
|
color: white;
|
|
29
31
|
}
|
|
30
32
|
|
|
31
|
-
.content-title {
|
|
32
|
-
margin-top: 54px;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
33
|
.content-subtitle {
|
|
36
34
|
font-size: 32px;
|
|
37
35
|
letter-spacing: -0.4%;
|
|
@@ -45,7 +43,6 @@
|
|
|
45
43
|
letter-spacing: 0.12%;
|
|
46
44
|
line-height: 30px;
|
|
47
45
|
margin-top: var(--dx-g-spacing-smd);
|
|
48
|
-
max-width: 565px;
|
|
49
46
|
}
|
|
50
47
|
|
|
51
48
|
.content-info {
|
|
@@ -57,20 +54,23 @@
|
|
|
57
54
|
}
|
|
58
55
|
|
|
59
56
|
.image-container {
|
|
60
|
-
|
|
57
|
+
width: 594px;
|
|
58
|
+
flex-shrink: 0;
|
|
59
|
+
position: relative;
|
|
61
60
|
}
|
|
62
61
|
|
|
63
62
|
img {
|
|
64
|
-
position:
|
|
65
|
-
|
|
66
|
-
|
|
63
|
+
position: absolute;
|
|
64
|
+
right: 0;
|
|
65
|
+
bottom: 0;
|
|
67
66
|
}
|
|
68
67
|
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
68
|
+
@media screen and (max-width: 1024px) {
|
|
69
|
+
:host {
|
|
70
|
+
--padding-top: 38px;
|
|
71
|
+
--padding-bottom: 52px;
|
|
72
|
+
}
|
|
72
73
|
|
|
73
|
-
@media screen and (max-width: 900px) {
|
|
74
74
|
.container {
|
|
75
75
|
align-items: center;
|
|
76
76
|
}
|
|
@@ -82,7 +82,6 @@ img {
|
|
|
82
82
|
|
|
83
83
|
.content-title {
|
|
84
84
|
font-size: var(--dx-g-text-3xl);
|
|
85
|
-
margin-top: 39px;
|
|
86
85
|
}
|
|
87
86
|
|
|
88
87
|
.content-subtitle {
|
|
@@ -101,29 +100,29 @@ img {
|
|
|
101
100
|
}
|
|
102
101
|
|
|
103
102
|
.image-container {
|
|
103
|
+
flex-shrink: unset;
|
|
104
104
|
height: unset;
|
|
105
|
+
padding: var(--dx-g-spacing-sm) 0;
|
|
105
106
|
}
|
|
106
107
|
|
|
107
108
|
img {
|
|
108
109
|
position: relative;
|
|
109
|
-
|
|
110
|
-
right: 25px;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
.content-button {
|
|
114
|
-
margin-bottom: 52px;
|
|
110
|
+
margin: 0 auto;
|
|
115
111
|
}
|
|
116
112
|
}
|
|
117
113
|
|
|
118
|
-
@media screen and (max-width:
|
|
114
|
+
@media screen and (max-width: 768px) {
|
|
119
115
|
.container {
|
|
120
116
|
flex-direction: column-reverse;
|
|
121
117
|
text-align: center;
|
|
122
|
-
margin-top: 170px;
|
|
123
118
|
}
|
|
124
119
|
|
|
125
120
|
.content {
|
|
126
|
-
|
|
121
|
+
display: flex;
|
|
122
|
+
flex-direction: column;
|
|
123
|
+
justify-content: center;
|
|
124
|
+
align-items: center;
|
|
125
|
+
margin-top: 0;
|
|
127
126
|
}
|
|
128
127
|
|
|
129
128
|
.content-title {
|
|
@@ -141,20 +140,16 @@ img {
|
|
|
141
140
|
}
|
|
142
141
|
|
|
143
142
|
.image-container {
|
|
144
|
-
height:
|
|
143
|
+
height: 212px;
|
|
144
|
+
width: 100%;
|
|
145
|
+
max-width: 381px;
|
|
146
|
+
padding: unset;
|
|
145
147
|
}
|
|
146
148
|
|
|
147
149
|
img {
|
|
148
|
-
position:
|
|
149
|
-
|
|
150
|
+
position: absolute;
|
|
151
|
+
bottom: 0;
|
|
150
152
|
right: 0;
|
|
151
|
-
width:
|
|
152
|
-
height: 383px;
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
.content-button {
|
|
156
|
-
display: flex;
|
|
157
|
-
justify-content: center;
|
|
158
|
-
margin-bottom: 63px;
|
|
153
|
+
width: 100%;
|
|
159
154
|
}
|
|
160
155
|
}
|
|
@@ -5,12 +5,10 @@
|
|
|
5
5
|
<h4 class="content-subtitle">{subtitle}</h4>
|
|
6
6
|
<p class="content-body">{body}</p>
|
|
7
7
|
<p class="content-info">{info}</p>
|
|
8
|
-
<
|
|
9
|
-
<dx-button>{buttonLabel}</dx-button>
|
|
10
|
-
</div>
|
|
8
|
+
<dx-button>{buttonLabel}</dx-button>
|
|
11
9
|
</div>
|
|
12
|
-
<
|
|
10
|
+
<div class="image-container">
|
|
13
11
|
<img src={imgSrc} alt={imgAlt} />
|
|
14
|
-
</
|
|
12
|
+
</div>
|
|
15
13
|
</div>
|
|
16
14
|
</template>
|
|
@@ -13,6 +13,7 @@
|
|
|
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%;
|
|
16
17
|
}
|
|
17
18
|
|
|
18
19
|
.two-col-list-section.dark {
|
|
@@ -23,7 +24,6 @@
|
|
|
23
24
|
display: grid;
|
|
24
25
|
grid-template-columns: 1fr 1fr;
|
|
25
26
|
grid-gap: var(--dx-g-spacing-3xl) var(--dx-g-spacing-6xl);
|
|
26
|
-
width: max-content;
|
|
27
27
|
margin: auto;
|
|
28
28
|
}
|
|
29
29
|
|
|
@@ -33,6 +33,7 @@
|
|
|
33
33
|
display: grid;
|
|
34
34
|
grid-template-areas: "icon title" "icon subtitle";
|
|
35
35
|
grid-template-columns: min-content auto;
|
|
36
|
+
grid-template-rows: min-content auto;
|
|
36
37
|
grid-gap: var(--dx-g-spacing-xs) var(--dx-g-spacing-mlg);
|
|
37
38
|
}
|
|
38
39
|
|
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
<dx-icon-badge
|
|
7
7
|
symbol={item.iconSymbol}
|
|
8
8
|
sprite={item.iconSprite}
|
|
9
|
-
|
|
9
|
+
color={item.iconColor}
|
|
10
|
+
background-color={item.iconBackgroundColor}
|
|
10
11
|
></dx-icon-badge>
|
|
11
12
|
<h3 class="title dx-text-heading-4b">{item.title}</h3>
|
|
12
13
|
<span class="subtitle dx-text-body-1">{item.subtitle}</span>
|
|
@@ -7,9 +7,21 @@
|
|
|
7
7
|
<dx-button href={buttonHref}>{buttonText}</dx-button>
|
|
8
8
|
</div>
|
|
9
9
|
<div class="card-container">
|
|
10
|
-
<img
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
<img
|
|
11
|
+
class="graphic-1"
|
|
12
|
+
src="/assets/svg/mrkt-two-col-panel-section-graphic-1.svg"
|
|
13
|
+
alt=""
|
|
14
|
+
/>
|
|
15
|
+
<img
|
|
16
|
+
class="graphic-2"
|
|
17
|
+
src="/assets/svg/mrkt-two-col-panel-section-graphic-2.svg"
|
|
18
|
+
alt=""
|
|
19
|
+
/>
|
|
20
|
+
<img
|
|
21
|
+
class="graphic-3"
|
|
22
|
+
src="/assets/svg/mrkt-two-col-panel-section-graphic-3.svg"
|
|
23
|
+
alt=""
|
|
24
|
+
/>
|
|
13
25
|
<slot></slot>
|
|
14
26
|
</div>
|
|
15
27
|
</div>
|
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
align-items: center;
|
|
7
7
|
position: relative;
|
|
8
8
|
overflow: hidden;
|
|
9
|
-
padding
|
|
9
|
+
padding: 0 var(--dx-g-page-padding-horizontal) 20px
|
|
10
|
+
var(--dx-g-page-padding-horizontal);
|
|
10
11
|
}
|
|
11
12
|
|
|
12
13
|
.swoop-container {
|
|
@@ -38,7 +39,7 @@
|
|
|
38
39
|
|
|
39
40
|
.video {
|
|
40
41
|
box-shadow: var(--dx-g-box-shadow-md);
|
|
41
|
-
width:
|
|
42
|
+
width: 74%;
|
|
42
43
|
border-radius: 16px;
|
|
43
44
|
overflow: hidden;
|
|
44
45
|
}
|