@salesforcedevs/dx-components 1.3.242-alpha.1 → 1.3.242-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
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
:host {
|
|
5
5
|
--dx-c-padding: 0 var(--dx-g-page-padding-horizontal);
|
|
6
|
+
--dx-c-container-justify-content: left;
|
|
6
7
|
}
|
|
7
8
|
|
|
8
9
|
dx-formatted-rich-text {
|
|
@@ -18,6 +19,7 @@ dx-formatted-rich-text {
|
|
|
18
19
|
display: flex;
|
|
19
20
|
flex-direction: row;
|
|
20
21
|
padding: var(--dx-c-padding);
|
|
22
|
+
justify-content: var(--dx-c-container-justify-content);
|
|
21
23
|
overflow: hidden;
|
|
22
24
|
}
|
|
23
25
|
|
|
@@ -75,6 +77,29 @@ img.mobile {
|
|
|
75
77
|
min-width: 1024px;
|
|
76
78
|
}
|
|
77
79
|
|
|
80
|
+
.multiple-image-container {
|
|
81
|
+
position: relative;
|
|
82
|
+
max-width: 646px;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.image-one {
|
|
86
|
+
display: block;
|
|
87
|
+
position: absolute;
|
|
88
|
+
left: 0;
|
|
89
|
+
bottom: 0;
|
|
90
|
+
width: 418px;
|
|
91
|
+
height: 515px;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.image-two {
|
|
95
|
+
display: block;
|
|
96
|
+
position: absolute;
|
|
97
|
+
right: 0;
|
|
98
|
+
bottom: 0;
|
|
99
|
+
width: 341px;
|
|
100
|
+
height: 339px;
|
|
101
|
+
}
|
|
102
|
+
|
|
78
103
|
.text-container > *:not(:last-child) {
|
|
79
104
|
margin-bottom: var(--dx-g-spacing-smd);
|
|
80
105
|
}
|
|
@@ -135,6 +160,10 @@ svg {
|
|
|
135
160
|
display: block;
|
|
136
161
|
margin-top: var(--dx-g-spacing-3xl);
|
|
137
162
|
}
|
|
163
|
+
|
|
164
|
+
.multiple-image-container {
|
|
165
|
+
display: none;
|
|
166
|
+
}
|
|
138
167
|
}
|
|
139
168
|
|
|
140
169
|
@media screen and (max-width: 768px) {
|
|
@@ -49,7 +49,11 @@
|
|
|
49
49
|
/>
|
|
50
50
|
</div>
|
|
51
51
|
</div>
|
|
52
|
-
<div class="image-container">
|
|
52
|
+
<div lwc:if={multipleImages} class="multiple-image-container">
|
|
53
|
+
<img class="image-one" src={imgSrcOne} alt="" />
|
|
54
|
+
<img class="image-two" src={imgSrcTwo} alt="" />
|
|
55
|
+
</div>
|
|
56
|
+
<div lwc:else class="image-container">
|
|
53
57
|
<img class="desktop" src={imgSrc} alt="" />
|
|
54
58
|
<img class="mobile" src={imgSrcMobile} alt="" />
|
|
55
59
|
</div>
|
|
@@ -15,14 +15,17 @@ export default class MainContentHeader extends LightningElement {
|
|
|
15
15
|
@api ctaLabelSecondary?: string;
|
|
16
16
|
@api ctaHref!: string;
|
|
17
17
|
@api ctaHrefSecondary?: string;
|
|
18
|
-
@api imgSrc
|
|
19
|
-
@api imgSrcMobile
|
|
18
|
+
@api imgSrc?: string;
|
|
19
|
+
@api imgSrcMobile?: string;
|
|
20
20
|
@api ctaTarget?: string | null = null;
|
|
21
21
|
@api ctaTargetSecondary?: string | null = null;
|
|
22
22
|
@api backgroundGradientColor?: string;
|
|
23
|
-
@api backgroundGradientDark: boolean = false;
|
|
24
23
|
@api backgroundImage?: string;
|
|
25
|
-
@api
|
|
24
|
+
@api backgroundGradientDark = false;
|
|
25
|
+
@api hasSwoop = false;
|
|
26
|
+
@api multipleImages = false;
|
|
27
|
+
@api imgSrcOne?: string;
|
|
28
|
+
@api imgSrcTwo?: string;
|
|
26
29
|
|
|
27
30
|
private get style() {
|
|
28
31
|
return cx(
|