@salesforcedevs/mrkt-components 0.0.0-alpha.0 → 0.0.0-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
|
@@ -17,7 +17,6 @@
|
|
|
17
17
|
var(--dx-g-page-padding-horizontal)
|
|
18
18
|
var(--mrkt-c-two-col-list-section-padding-bottom)
|
|
19
19
|
var(--dx-g-page-padding-horizontal);
|
|
20
|
-
overflow: hidden;
|
|
21
20
|
}
|
|
22
21
|
|
|
23
22
|
.text-container {
|
|
@@ -36,8 +35,23 @@
|
|
|
36
35
|
margin-bottom: var(--dx-g-spacing-md);
|
|
37
36
|
}
|
|
38
37
|
|
|
39
|
-
|
|
38
|
+
.cta-group {
|
|
39
|
+
width: fit-content;
|
|
40
|
+
display: flex;
|
|
41
|
+
flex-direction: column;
|
|
42
|
+
align-items: center;
|
|
43
|
+
gap: var(--dx-g-spacing-md);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.main-cta {
|
|
40
47
|
margin-top: var(--dx-g-spacing-sm);
|
|
48
|
+
--dx-c-button-font-weight: var(--dx-g-font-bold);
|
|
49
|
+
--dx-c-button-font-size: var(--dx-g-text-base);
|
|
50
|
+
--dx-c-button-horizontal-spacing: var(--dx-g-spacing-xl);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.modal-cta {
|
|
54
|
+
--dx-c-button-font-size: var(--dx-g-text-sm);
|
|
41
55
|
}
|
|
42
56
|
|
|
43
57
|
.card-container {
|
|
@@ -63,7 +77,7 @@ img {
|
|
|
63
77
|
|
|
64
78
|
.graphic-1 {
|
|
65
79
|
width: 306px;
|
|
66
|
-
bottom:
|
|
80
|
+
bottom: 100px;
|
|
67
81
|
left: -106px;
|
|
68
82
|
z-index: 0;
|
|
69
83
|
}
|
|
@@ -77,8 +91,8 @@ img {
|
|
|
77
91
|
|
|
78
92
|
.graphic-3 {
|
|
79
93
|
width: 142px;
|
|
80
|
-
right: -
|
|
81
|
-
bottom: -
|
|
94
|
+
right: -58px;
|
|
95
|
+
bottom: -73px;
|
|
82
96
|
z-index: 0;
|
|
83
97
|
}
|
|
84
98
|
|
|
@@ -1,10 +1,51 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class={className}>
|
|
3
|
+
<dx-modal
|
|
4
|
+
if:true={modalButtonText}
|
|
5
|
+
open={modalOpen}
|
|
6
|
+
ontogglemodal={toggleModal}
|
|
7
|
+
>
|
|
8
|
+
<dx-card-trial-expanded
|
|
9
|
+
badge-background-color={modalBadgeBackgroundColor}
|
|
10
|
+
badge-sprite={modalBadgeSprite}
|
|
11
|
+
badge-symbol={modalBadgeSymbol}
|
|
12
|
+
body={modalBody}
|
|
13
|
+
details={modalDetails}
|
|
14
|
+
href={modalHref}
|
|
15
|
+
label={modalLabel}
|
|
16
|
+
terms={modalTerms}
|
|
17
|
+
title={modalTitle}
|
|
18
|
+
col-two-title={modalTwoColTitle}
|
|
19
|
+
col-two-details={modalTwoColDetails}
|
|
20
|
+
button-cta={modalButtonCta}
|
|
21
|
+
button-href={modalButtonHref}
|
|
22
|
+
button-icon={modalButtonIcon}
|
|
23
|
+
button-icon-size={modalButtonIconSize}
|
|
24
|
+
ontogglemodal={toggleModal}
|
|
25
|
+
></dx-card-trial-expanded>
|
|
26
|
+
</dx-modal>
|
|
3
27
|
<div class="text-container">
|
|
4
28
|
<span class="subtitle dx-text-label-4">{subtitle}</span>
|
|
5
29
|
<h2 class="title dx-text-heading-3">{title}</h2>
|
|
6
30
|
<p class="body dx-text-body-2">{body}</p>
|
|
7
|
-
<
|
|
31
|
+
<div class="cta-group">
|
|
32
|
+
<dx-button
|
|
33
|
+
class="main-cta"
|
|
34
|
+
size="large"
|
|
35
|
+
font="sans"
|
|
36
|
+
href={buttonHref}
|
|
37
|
+
>
|
|
38
|
+
{buttonText}
|
|
39
|
+
</dx-button>
|
|
40
|
+
<dx-button
|
|
41
|
+
if:true={modalButtonText}
|
|
42
|
+
class="modal-cta"
|
|
43
|
+
variant="inline"
|
|
44
|
+
onclick={toggleModal}
|
|
45
|
+
>
|
|
46
|
+
{modalButtonText}
|
|
47
|
+
</dx-button>
|
|
48
|
+
</div>
|
|
8
49
|
</div>
|
|
9
50
|
<div class="card-container">
|
|
10
51
|
<img
|
|
@@ -5,11 +5,33 @@ export default class TwoColPanelSection extends LightningElement {
|
|
|
5
5
|
@api body!: string;
|
|
6
6
|
@api buttonHref!: string;
|
|
7
7
|
@api buttonText!: string;
|
|
8
|
+
@api modalButtonText?: string;
|
|
8
9
|
@api subtitle!: string;
|
|
9
10
|
@api title!: string;
|
|
10
11
|
@api light?: boolean = false;
|
|
11
12
|
|
|
13
|
+
@api modalBadgeBackgroundColor?: string;
|
|
14
|
+
@api modalBadgeSprite?: string;
|
|
15
|
+
@api modalBadgeSymbol?: string;
|
|
16
|
+
@api modalTitle?: string;
|
|
17
|
+
@api modalBody?: string;
|
|
18
|
+
@api modalDetails?: string;
|
|
19
|
+
@api modalLabel?: string;
|
|
20
|
+
@api modalTerms?: string;
|
|
21
|
+
@api modalTwoColTitle?: string;
|
|
22
|
+
@api modalTwoColDetails?: string;
|
|
23
|
+
@api modalButtonCta?: string;
|
|
24
|
+
@api modalButtonHref?: string;
|
|
25
|
+
@api modalButtonIcon?: string;
|
|
26
|
+
@api modalButtonIconSize?: string;
|
|
27
|
+
|
|
28
|
+
private modalOpen: boolean = false;
|
|
29
|
+
|
|
12
30
|
private get className(): string {
|
|
13
31
|
return cx("two-col-panel-section", !this.light && "dark");
|
|
14
32
|
}
|
|
33
|
+
|
|
34
|
+
private toggleModal(): void {
|
|
35
|
+
this.modalOpen = !this.modalOpen;
|
|
36
|
+
}
|
|
15
37
|
}
|