@salesforcedevs/dx-components 1.18.2 → 1.18.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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforcedevs/dx-components",
|
|
3
|
-
"version": "1.18.
|
|
3
|
+
"version": "1.18.3",
|
|
4
4
|
"description": "DX Lightning web components",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"engines": {
|
|
@@ -45,5 +45,5 @@
|
|
|
45
45
|
"volta": {
|
|
46
46
|
"node": "20.19.0"
|
|
47
47
|
},
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "11c6e3dcc70682d872eff8fdbbb734d80dbed953"
|
|
49
49
|
}
|
|
@@ -74,9 +74,17 @@ img.desktop {
|
|
|
74
74
|
|
|
75
75
|
img.mobile {
|
|
76
76
|
display: none;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
img.mobile.top-img {
|
|
77
80
|
min-width: 1024px;
|
|
78
81
|
}
|
|
79
82
|
|
|
83
|
+
img.mobile.center-img {
|
|
84
|
+
min-width: 0;
|
|
85
|
+
padding-bottom: 24px;
|
|
86
|
+
}
|
|
87
|
+
|
|
80
88
|
.multiple-image-container {
|
|
81
89
|
position: relative;
|
|
82
90
|
max-width: 646px;
|
|
@@ -118,6 +126,15 @@ svg {
|
|
|
118
126
|
display: flex;
|
|
119
127
|
}
|
|
120
128
|
|
|
129
|
+
.center-img {
|
|
130
|
+
align-self: center;
|
|
131
|
+
min-width: 0 !important;
|
|
132
|
+
height: auto;
|
|
133
|
+
display: block;
|
|
134
|
+
margin: 0 auto;
|
|
135
|
+
padding-right: 40px;
|
|
136
|
+
}
|
|
137
|
+
|
|
121
138
|
@media screen and (min-width: 1024px) {
|
|
122
139
|
.text-container {
|
|
123
140
|
text-align: left;
|
|
@@ -166,6 +183,17 @@ svg {
|
|
|
166
183
|
}
|
|
167
184
|
}
|
|
168
185
|
|
|
186
|
+
@media screen and (max-width: 1024px) {
|
|
187
|
+
img.center-img {
|
|
188
|
+
padding-left: 20px;
|
|
189
|
+
padding-right: 20px;
|
|
190
|
+
width: calc(100% - 40px);
|
|
191
|
+
min-width: 0;
|
|
192
|
+
box-sizing: border-box;
|
|
193
|
+
max-width: 100%;
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
|
|
169
197
|
@media screen and (max-width: 768px) {
|
|
170
198
|
.body,
|
|
171
199
|
.subtitle {
|
|
@@ -54,8 +54,8 @@
|
|
|
54
54
|
<img class="image-two" src={imgSrcTwo} alt="" />
|
|
55
55
|
</div>
|
|
56
56
|
<div lwc:else class="image-container">
|
|
57
|
-
<img class=
|
|
58
|
-
<img class=
|
|
57
|
+
<img class={desktopImgClass} src={imgSrc} alt="" />
|
|
58
|
+
<img class={mobileImgClass} src={imgSrcMobile} alt="" />
|
|
59
59
|
</div>
|
|
60
60
|
</div>
|
|
61
61
|
<template lwc:if={hasSwoop}>
|
|
@@ -20,20 +20,32 @@ export default class MainContentHeader extends LightningElement {
|
|
|
20
20
|
@api ctaTarget?: string | null = null;
|
|
21
21
|
@api ctaTargetSecondary?: string | null = null;
|
|
22
22
|
@api backgroundGradientColor?: string;
|
|
23
|
+
@api backgroundGradientTarget?: string;
|
|
23
24
|
@api backgroundImage?: string;
|
|
24
25
|
@api backgroundGradientDark = false;
|
|
25
26
|
@api hasSwoop = false;
|
|
26
27
|
@api multipleImages = false;
|
|
27
28
|
@api imgSrcOne?: string;
|
|
28
29
|
@api imgSrcTwo?: string;
|
|
30
|
+
@api centerImg?: boolean;
|
|
31
|
+
|
|
32
|
+
public get desktopImgClass() {
|
|
33
|
+
return cx("desktop", this.centerImg ? "center-img" : "top-img");
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
public get mobileImgClass() {
|
|
37
|
+
return cx("mobile", this.centerImg ? "center-img" : "top-img");
|
|
38
|
+
}
|
|
29
39
|
|
|
30
40
|
private get style() {
|
|
31
41
|
return cx(
|
|
32
42
|
this.backgroundGradientColor &&
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
43
|
+
`background: linear-gradient(180deg, var(--dx-g-${
|
|
44
|
+
this.backgroundGradientColor
|
|
45
|
+
}) 0%, var(--dx-g-${
|
|
46
|
+
this.backgroundGradientTarget ||
|
|
47
|
+
this.backgroundGradientColor
|
|
48
|
+
}) 100%);`,
|
|
37
49
|
this.backgroundImage &&
|
|
38
50
|
`background: #260F8F url('${this.backgroundImage}') no-repeat bottom; background-size: cover;`
|
|
39
51
|
);
|