@salesforcedevs/dx-components 1.3.26 → 1.3.29
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.3.
|
|
3
|
+
"version": "1.3.29",
|
|
4
4
|
"description": "DX Lightning web components",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"engines": {
|
|
@@ -38,5 +38,5 @@
|
|
|
38
38
|
"eventsourcemock": "^2.0.0",
|
|
39
39
|
"luxon": "^3.1.0"
|
|
40
40
|
},
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "5d0d8e8ae99896c6f2da9afd8f826a5c37ae45a1"
|
|
42
42
|
}
|
|
@@ -9,6 +9,8 @@
|
|
|
9
9
|
--dx-c-section-padding-top: var(--dx-c-section-padding-vertical);
|
|
10
10
|
--dx-c-section-padding-bottom: var(--dx-c-section-padding-vertical);
|
|
11
11
|
--dx-c-section-heading-margin-bottom: var(--dx-g-spacing-2xl);
|
|
12
|
+
--dx-c-section-cta-color: var(--dx-g-blue-vibrant-50);
|
|
13
|
+
--dx-c-section-cta-inline-hover-color: var(--dx-g-blue-vibrant-30);
|
|
12
14
|
}
|
|
13
15
|
|
|
14
16
|
.section {
|
|
@@ -86,6 +88,13 @@
|
|
|
86
88
|
z-index: 50;
|
|
87
89
|
}
|
|
88
90
|
|
|
91
|
+
.cta {
|
|
92
|
+
--dx-c-button-primary-color: var(--dx-c-section-cta-color);
|
|
93
|
+
--dx-c-button-inline-color-hover: var(
|
|
94
|
+
--dx-c-section-cta-inline-hover-color
|
|
95
|
+
);
|
|
96
|
+
}
|
|
97
|
+
|
|
89
98
|
/* sections with a swoop and center alignment should not left align as it encroaches on the graphic */
|
|
90
99
|
.section.align-center.graphic-top .text {
|
|
91
100
|
text-align: center;
|
|
@@ -32,6 +32,16 @@
|
|
|
32
32
|
<span class="subtitle dx-text-body-1" if:true={subtitle}>
|
|
33
33
|
{subtitle}
|
|
34
34
|
</span>
|
|
35
|
+
<dx-button
|
|
36
|
+
class="cta"
|
|
37
|
+
if:true={ctaLabel}
|
|
38
|
+
href={ctaHref}
|
|
39
|
+
variant={ctaBtnVariant}
|
|
40
|
+
icon-symbol={ctaBtnSymbol}
|
|
41
|
+
target={ctaBtnTarget}
|
|
42
|
+
>
|
|
43
|
+
{ctaLabel}
|
|
44
|
+
</dx-button>
|
|
35
45
|
</div>
|
|
36
46
|
<div part="content" class="content">
|
|
37
47
|
<slot></slot>
|
|
@@ -10,6 +10,11 @@ export default class Section extends LightningElement {
|
|
|
10
10
|
@api subtitle?: string;
|
|
11
11
|
@api textAlign: "center" | "left" = "left";
|
|
12
12
|
@api title?: string;
|
|
13
|
+
@api ctaLabel?: string;
|
|
14
|
+
@api ctaHref?: string;
|
|
15
|
+
@api ctaBtnVariant?: string;
|
|
16
|
+
@api ctaBtnSymbol?: string;
|
|
17
|
+
@api ctaBtnTarget?: string = "_self";
|
|
13
18
|
@api topGraphic: boolean = false;
|
|
14
19
|
@api graphicOverlap: boolean = false;
|
|
15
20
|
@api bottomGraphic: boolean = false;
|