@salesforcedevs/dx-components 1.3.202 → 1.3.203-canary.0
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 +2 -3
- package/src/modules/dx/footer/footer.css +5 -5
- package/src/modules/dx/footer/footer.ts +2 -2
- package/src/modules/dx/mainContentHeader/mainContentHeader.css +2 -0
- package/src/modules/dx/mainContentHeader/mainContentHeader.html +1 -1
- package/src/modules/dx/mainContentHeader/mainContentHeader.ts +3 -14
- package/LICENSE +0 -12
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforcedevs/dx-components",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.203-canary.0",
|
|
4
4
|
"description": "DX Lightning web components",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"engines": {
|
|
@@ -43,6 +43,5 @@
|
|
|
43
43
|
},
|
|
44
44
|
"volta": {
|
|
45
45
|
"node": "16.19.1"
|
|
46
|
-
}
|
|
47
|
-
"gitHead": "dd526f48e779bbfb6bcefcec59c1c738a0a9e7f3"
|
|
46
|
+
}
|
|
48
47
|
}
|
|
@@ -57,9 +57,9 @@ footer.signup-variant-no-signup {
|
|
|
57
57
|
justify-content: center;
|
|
58
58
|
align-items: center;
|
|
59
59
|
position: relative;
|
|
60
|
-
background: var(--dx-g-
|
|
60
|
+
background: var(--dx-g-indigo-vibrant-95);
|
|
61
61
|
height: 78px;
|
|
62
|
-
border-bottom: 2px solid var(--dx-g-indigo-vibrant-
|
|
62
|
+
border-bottom: 2px solid var(--dx-g-indigo-vibrant-30);
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
.content-container_top > .subheading {
|
|
@@ -116,7 +116,7 @@ footer.signup-variant-no-signup {
|
|
|
116
116
|
height: 96px;
|
|
117
117
|
width: 220px;
|
|
118
118
|
margin-right: var(--dx-g-spacing-lg);
|
|
119
|
-
background-image: url("https://a.sfdcstatic.com/developer-website/images/footer-graphic-mountains.svg");
|
|
119
|
+
background-image: url("https://a.sfdcstatic.com/developer-website/images/footer-graphic-mountains-2.svg");
|
|
120
120
|
}
|
|
121
121
|
|
|
122
122
|
.graphic-mountains-mobile {
|
|
@@ -143,7 +143,7 @@ footer.signup-variant-no-signup {
|
|
|
143
143
|
bottom: -2px;
|
|
144
144
|
width: 100%;
|
|
145
145
|
height: 100%;
|
|
146
|
-
background-image: url("https://a.sfdcstatic.com/developer-website/images/footer-graphic-large.svg");
|
|
146
|
+
background-image: url("https://a.sfdcstatic.com/developer-website/images/footer-graphic-large-2.svg");
|
|
147
147
|
background-size: 101%;
|
|
148
148
|
}
|
|
149
149
|
|
|
@@ -156,7 +156,7 @@ footer.signup-variant-no-signup {
|
|
|
156
156
|
"logo general" auto
|
|
157
157
|
"socials general" max-content
|
|
158
158
|
"locales general" max-content / auto max-content;
|
|
159
|
-
background: var(--dx-g-
|
|
159
|
+
background: var(--dx-g-indigo-vibrant-95);
|
|
160
160
|
padding-top: var(--dx-g-spacing-4xl);
|
|
161
161
|
padding-bottom: var(--dx-g-spacing-3xl);
|
|
162
162
|
}
|
|
@@ -57,11 +57,11 @@ export default class Footer extends LightningElement {
|
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
get showLargeSignup() {
|
|
60
|
-
return this.variant
|
|
60
|
+
return this.variant === "large-signup";
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
get showSmallSignup() {
|
|
64
|
-
return this.variant
|
|
64
|
+
return this.variant === "small-signup";
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
get hasLocales() {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="container" style={style}>
|
|
3
|
-
<div class=
|
|
3
|
+
<div class="text-container">
|
|
4
4
|
<h1 class="heading dx-text-display-2">{title}</h1>
|
|
5
5
|
<span class="body dx-text-body-1">{body}</span>
|
|
6
6
|
<span if:true={subtitle} class="subtitle dx-text-display-7">
|
|
@@ -14,24 +14,13 @@ export default class MainContentHeader extends LightningElement {
|
|
|
14
14
|
@api imgSrcMobile!: string;
|
|
15
15
|
@api ctaTarget?: string | null = null;
|
|
16
16
|
@api ctaTargetSecondary?: string | null = null;
|
|
17
|
-
@api
|
|
18
|
-
@api backgroundGradientDark: boolean = false;
|
|
17
|
+
@api backgroundColor?: string;
|
|
19
18
|
@api hasSwoop: boolean = false;
|
|
20
19
|
|
|
21
20
|
private get style() {
|
|
22
21
|
return cx(
|
|
23
|
-
this.
|
|
24
|
-
|
|
25
|
-
`background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #ffff 100%), var(--dx-g-${this.backgroundGradientColor});`,
|
|
26
|
-
this.backgroundGradientDark &&
|
|
27
|
-
`background: linear-gradient(90deg, var(--dx-g-indigo-vibrant-20) 0%, var(--dx-g-indigo-vibrant-30) 100%);`
|
|
28
|
-
);
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
private get textStyle() {
|
|
32
|
-
return cx(
|
|
33
|
-
"text-container",
|
|
34
|
-
this.backgroundGradientDark && "light-text"
|
|
22
|
+
this.backgroundColor &&
|
|
23
|
+
`background-color: var(--dx-g-${this.backgroundColor});`
|
|
35
24
|
);
|
|
36
25
|
}
|
|
37
26
|
|
package/LICENSE
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
Copyright (c) 2020, Salesforce.com, Inc.
|
|
2
|
-
All rights reserved.
|
|
3
|
-
|
|
4
|
-
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
|
5
|
-
|
|
6
|
-
* Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
|
7
|
-
|
|
8
|
-
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
|
9
|
-
|
|
10
|
-
* Neither the name of Salesforce.com nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
|
|
11
|
-
|
|
12
|
-
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|