@salesforcedevs/dx-components 1.3.241 → 1.3.242-alpha.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/assets/icons/salesforcebrand-sprite/svg/symbols.svg +2 -2
- package/src/modules/dx/grid/grid.css +5 -1
- package/src/modules/dx/mainContentHeader/mainContentHeader.css +5 -1
- package/src/modules/dx/mainContentHeader/mainContentHeader.html +8 -3
- package/src/modules/dx/mainContentHeader/mainContentHeader.ts +5 -1
- package/src/modules/dxBaseElements/headerBase/headerBase.ts +1 -1
- package/src/modules/dxConstants/brands/brands.ts +1 -1
- 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.242-alpha.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": "ba302a7ca83b2a7dbbcdb3b7dcb8a34b50ccf7e2"
|
|
46
|
+
}
|
|
48
47
|
}
|
|
@@ -272,7 +272,7 @@
|
|
|
272
272
|
</g>
|
|
273
273
|
</g>
|
|
274
274
|
</symbol>
|
|
275
|
-
<symbol id="data
|
|
275
|
+
<symbol id="data" viewBox="0 0 56 56" xmlns="http://www.w3.org/2000/svg" style="fill:#fff">
|
|
276
276
|
<defs>
|
|
277
277
|
<style>.acls-2,.acls-4{stroke-width:0}.acls-2{fill:#8a8ed1}.acls-4{fill:#fff}</style>
|
|
278
278
|
</defs>
|
|
@@ -927,7 +927,7 @@
|
|
|
927
927
|
</clipPath>
|
|
928
928
|
</defs>
|
|
929
929
|
</symbol>
|
|
930
|
-
<symbol fill="none" id="data
|
|
930
|
+
<symbol fill="none" id="data" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 56 56">
|
|
931
931
|
<path fill="#8a8ed1" d="m28,4C14.77,4,4,14.77,4,28c0,7.9,3.84,14.93,9.76,19.3.7-4.58,3.55-8.46,7.5-10.56-2.61-2.02-4.29-5.17-4.29-8.71,0-6.08,4.95-11.03,11.03-11.03s11.03,4.95,11.03,11.03c0,3.54-1.69,6.69-4.29,8.71,3.95,2.1,6.8,5.98,7.5,10.56,5.92-4.37,9.77-11.4,9.77-19.31,0-13.23-10.77-24-24-24Z"/>
|
|
932
932
|
<path fill="#8a8ed1" d="m11.07,18.3c.69-1.2,2.21-1.61,3.41-.92,1.2.68,1.61,2.21.93,3.41h0c-.46.81-1.3,1.26-2.17,1.26-.42,0-.85-.11-1.24-.34-1.2-.68-1.61-2.21-.92-3.41Z"/>
|
|
933
933
|
<path fill="#8a8ed1" d="m8.49,28.06c0-1.38,1.11-2.5,2.49-2.51,1.38,0,2.51,1.11,2.51,2.5s-1.11,2.5-2.49,2.5h-.01c-1.38,0-2.5-1.11-2.5-2.49Z"/>
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
--dx-c-grid-justify-items: stretch;
|
|
3
|
+
}
|
|
4
|
+
|
|
1
5
|
.container {
|
|
2
6
|
--one-third-width: calc((100% - 2 * var(--dx-g-page-grid-gap)) / 3);
|
|
3
7
|
|
|
@@ -5,7 +9,7 @@
|
|
|
5
9
|
gap: var(--dx-g-page-grid-gap);
|
|
6
10
|
grid-template-rows: repeat(auto-fill, 1fr);
|
|
7
11
|
grid-template-columns: 1fr;
|
|
8
|
-
justify-items:
|
|
12
|
+
justify-items: var(--dx-c-grid-justify-items);
|
|
9
13
|
align-items: stretch;
|
|
10
14
|
position: relative;
|
|
11
15
|
}
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
@import "dxHelpers/reset";
|
|
2
2
|
@import "dxHelpers/text";
|
|
3
3
|
|
|
4
|
+
:host {
|
|
5
|
+
--dx-c-padding: 0 var(--dx-g-page-padding-horizontal);
|
|
6
|
+
}
|
|
7
|
+
|
|
4
8
|
.container {
|
|
5
9
|
display: flex;
|
|
6
10
|
flex-direction: row;
|
|
7
|
-
padding:
|
|
11
|
+
padding: var(--dx-c-padding);
|
|
8
12
|
overflow: hidden;
|
|
9
13
|
}
|
|
10
14
|
|
|
@@ -3,9 +3,14 @@
|
|
|
3
3
|
<div class={textStyle}>
|
|
4
4
|
<h1 class="heading dx-text-display-2">{title}</h1>
|
|
5
5
|
<span class="body dx-text-body-1">{body}</span>
|
|
6
|
-
<span if
|
|
6
|
+
<span lwc:if={subtitle} class="subtitle dx-text-display-7">
|
|
7
7
|
{subtitle}
|
|
8
8
|
</span>
|
|
9
|
+
<span lwc:if={footNote} class="dx-text-body-4">
|
|
10
|
+
<dx-formatted-rich-text
|
|
11
|
+
value={footNote}
|
|
12
|
+
></dx-formatted-rich-text>
|
|
13
|
+
</span>
|
|
9
14
|
<div class="button-container">
|
|
10
15
|
<dx-button
|
|
11
16
|
onclick={onCtaClick}
|
|
@@ -17,7 +22,7 @@
|
|
|
17
22
|
</dx-button>
|
|
18
23
|
<dx-button
|
|
19
24
|
class="secondary-button"
|
|
20
|
-
if
|
|
25
|
+
lwc:if={ctaLabelSecondary}
|
|
21
26
|
onclick={onCtaClickSecondary}
|
|
22
27
|
href={ctaHrefSecondary}
|
|
23
28
|
target={ctaTargetSecondary}
|
|
@@ -33,7 +38,7 @@
|
|
|
33
38
|
<img class="mobile" src={imgSrcMobile} alt="" />
|
|
34
39
|
</div>
|
|
35
40
|
</div>
|
|
36
|
-
<template if
|
|
41
|
+
<template lwc:if={hasSwoop}>
|
|
37
42
|
<svg
|
|
38
43
|
width="500"
|
|
39
44
|
height="80"
|
|
@@ -6,6 +6,7 @@ export default class MainContentHeader extends LightningElement {
|
|
|
6
6
|
@api title!: string;
|
|
7
7
|
@api subtitle?: string;
|
|
8
8
|
@api body!: string;
|
|
9
|
+
@api footNote?: string;
|
|
9
10
|
@api ctaLabel!: string;
|
|
10
11
|
@api ctaLabelSecondary?: string;
|
|
11
12
|
@api ctaHref!: string;
|
|
@@ -16,6 +17,7 @@ export default class MainContentHeader extends LightningElement {
|
|
|
16
17
|
@api ctaTargetSecondary?: string | null = null;
|
|
17
18
|
@api backgroundGradientColor?: string;
|
|
18
19
|
@api backgroundGradientDark: boolean = false;
|
|
20
|
+
@api backgroundImage?: string;
|
|
19
21
|
@api hasSwoop: boolean = false;
|
|
20
22
|
|
|
21
23
|
private get style() {
|
|
@@ -24,7 +26,9 @@ export default class MainContentHeader extends LightningElement {
|
|
|
24
26
|
!this.backgroundGradientDark &&
|
|
25
27
|
`background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #ffff 100%), var(--dx-g-${this.backgroundGradientColor});`,
|
|
26
28
|
this.backgroundGradientDark &&
|
|
27
|
-
`background: linear-gradient(90deg, var(--dx-g-indigo-vibrant-20) 0%, var(--dx-g-indigo-vibrant-30) 100%)
|
|
29
|
+
`background: linear-gradient(90deg, var(--dx-g-indigo-vibrant-20) 0%, var(--dx-g-indigo-vibrant-30) 100%);`,
|
|
30
|
+
this.backgroundImage &&
|
|
31
|
+
`background: #260F8F url('${this.backgroundImage}') no-repeat bottom; background-size: cover;`
|
|
28
32
|
);
|
|
29
33
|
}
|
|
30
34
|
|
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.
|