@salesforcedevs/mrkt-components 0.79.1 → 1.2.16
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 -2
- package/src/assets/svg/mrkt-two-col-panel-section-graphic-1-light.svg +9 -0
- package/src/assets/svg/mrkt-two-col-panel-section-graphic-2-light.svg +16 -0
- package/src/assets/svg/mrkt-two-col-panel-section-graphic-3-light.svg +3 -0
- package/src/modules/mrkt/twoColPanelSection/twoColPanelSection.css +45 -11
- package/src/modules/mrkt/twoColPanelSection/twoColPanelSection.html +65 -2
- package/src/modules/mrkt/twoColPanelSection/twoColPanelSection.ts +28 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforcedevs/mrkt-components",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "1.2.16",
|
|
4
4
|
"description": "Marketing Lightning web components for DSC",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"engines": {
|
|
@@ -15,5 +15,5 @@
|
|
|
15
15
|
"devDependencies": {
|
|
16
16
|
"@types/classnames": "^2.2.10"
|
|
17
17
|
},
|
|
18
|
-
"gitHead": "
|
|
18
|
+
"gitHead": "bd151c2d46039c53ca0d9dd818e7f8dbab65e08c"
|
|
19
19
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
<svg width="314" height="306" viewBox="0 0 314 306" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<circle cx="161" cy="153" r="153" fill="#CFE9FE"/>
|
|
3
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M65.9508 60.1695L64.4328 64.2705C64.3248 64.5645 64.0938 64.7945 63.8008 64.9025L59.6998 66.4205C58.7667 66.7665 58.7667 68.0845 59.6998 68.4295L63.8008 69.9465C64.0938 70.0555 64.3248 70.2865 64.4328 70.5795L65.9508 74.6815C66.2958 75.6125 67.6147 75.6125 67.9597 74.6815L69.4768 70.5795C69.5858 70.2865 69.8167 70.0555 70.1097 69.9465L74.2107 68.4295C75.1427 68.0845 75.1427 66.7665 74.2107 66.4205L70.1097 64.9025C69.8167 64.7945 69.5858 64.5645 69.4768 64.2705L67.9597 60.1695C67.6147 59.2365 66.2958 59.2365 65.9508 60.1695Z" stroke="#3A49DA" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
4
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M30.1539 38.096C30.1539 40.359 28.3209 42.192 26.0579 42.192C23.7959 42.192 21.9629 40.359 21.9629 38.096C21.9629 35.834 23.7959 34 26.0579 34C28.3209 34 30.1539 35.834 30.1539 38.096Z" fill="#3A49DA"/>
|
|
5
|
+
<path d="M70.002 188.437V170.47" stroke="#3A49DA" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
6
|
+
<path d="M78.983 179.457H61" stroke="#3A49DA" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
7
|
+
<path d="M13.25 85.9697H32" stroke="#3A49DA" stroke-width="2" stroke-linecap="round"/>
|
|
8
|
+
<path d="M1 85.9697H6" stroke="#3A49DA" stroke-width="2" stroke-linecap="round"/>
|
|
9
|
+
</svg>
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<svg width="174" height="112" viewBox="0 0 174 112" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M81.7071 11.0029H73.3301C67.8071 11.0029 63.3301 15.4809 63.3301 21.0029C63.3301 26.5259 67.8071 31.0029 73.3301 31.0029H79.3951" stroke="#3A49DA" stroke-width="2" stroke-linecap="round"/>
|
|
3
|
+
<path d="M124.975 31.0029H126.699C132.222 31.0029 136.699 26.5259 136.699 21.0029C136.699 15.4809 132.222 11.0029 126.699 11.0029H112.59" stroke="#3A49DA" stroke-width="2" stroke-linecap="round"/>
|
|
4
|
+
<path d="M116.393 36.1767C118.097 33.0967 121.379 31.0117 125.148 31.0117" stroke="#3A49DA" stroke-width="2" stroke-linecap="round"/>
|
|
5
|
+
<path d="M68.9173 86.5827C67.3363 88.9307 64.7843 90.5697 61.8363 90.9297H56.3203C50.7973 90.9297 46.3203 95.4067 46.3203 100.93C46.3203 106.453 50.7973 110.93 56.3203 110.93H109.568C115.09 110.93 119.568 106.453 119.568 100.93C119.568 95.4067 115.09 90.9297 109.568 90.9297H99.2813C94.3363 90.3257 90.5033 86.1207 90.5033 81.0117C90.5033 75.4907 94.9783 71.0147 100.499 71.0127H162.366C167.889 71.0127 172.366 66.5347 172.366 61.0127C172.366 55.4897 167.889 51.0127 162.366 51.0127H125.14C121.265 51.0097 117.905 48.8037 116.247 45.5797C115.543 44.2097 115.146 42.6577 115.146 41.0127" stroke="#3A49DA" stroke-width="2" stroke-linecap="round"/>
|
|
6
|
+
<path d="M85.083 31.0117C90.606 31.0117 95.083 35.4887 95.083 41.0117C95.083 46.5327 90.609 51.0087 85.089 51.0117H11C5.478 51.0117 1 55.4887 1 61.0117C1 66.5337 5.478 71.0117 11 71.0117H60.62C66.141 71.0137 70.615 75.4907 70.615 81.0117" stroke="#3A49DA" stroke-width="2" stroke-linecap="round"/>
|
|
7
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M142.809 78.6591L141.664 81.7521C141.582 81.9731 141.408 82.1481 141.187 82.2301L138.094 83.3741C137.391 83.6351 137.391 84.6291 138.094 84.8891L141.187 86.0341C141.408 86.1161 141.582 86.2901 141.664 86.5111L142.809 89.6041C143.069 90.3071 144.064 90.3071 144.324 89.6041L145.469 86.5111C145.55 86.2901 145.725 86.1161 145.946 86.0341L149.039 84.8891C149.742 84.6291 149.742 83.6351 149.039 83.3741L145.946 82.2301C145.725 82.1481 145.55 81.9731 145.469 81.7521L144.324 78.6591C144.064 77.9561 143.069 77.9561 142.809 78.6591Z" stroke="#3A49DA" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
8
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M107.844 11C107.844 16.522 103.367 21 97.8438 21C92.3208 21 87.8438 16.522 87.8438 11C87.8438 5.477 92.3208 1 97.8438 1C103.367 1 107.844 5.477 107.844 11Z" stroke="#3A49DA" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
9
|
+
<path d="M125.193 40.751H110.551" stroke="#3A49DA" stroke-width="2" stroke-linecap="round"/>
|
|
10
|
+
<path d="M134.662 40.751H132.445" stroke="#3A49DA" stroke-width="2" stroke-linecap="round"/>
|
|
11
|
+
<path d="M59.5781 81.1006H75.2751" stroke="#3A49DA" stroke-width="2" stroke-linecap="round"/>
|
|
12
|
+
<path d="M80.7773 81.1006C80.7773 81.3764 80.5532 81.6006 80.2773 81.6006C80.0015 81.6006 79.7773 81.3764 79.7773 81.1006C79.7773 80.8247 80.0015 80.6006 80.2773 80.6006C80.5532 80.6006 80.7773 80.8247 80.7773 81.1006Z" stroke="#3A49DA"/>
|
|
13
|
+
<path d="M31.3359 100.834C31.3359 101.938 30.4398 102.834 29.3359 102.834C28.2312 102.834 27.3359 101.938 27.3359 100.834C27.3359 99.7291 28.2311 98.834 29.3359 98.834C30.4399 98.834 31.3359 99.7293 31.3359 100.834Z" stroke="#3A49DA"/>
|
|
14
|
+
<path d="M54.2441 44.767V36.791" stroke="#3A49DA" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
15
|
+
<path d="M58.2311 40.7803L50.248 40.7808" stroke="#3A49DA" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
16
|
+
</svg>
|
|
@@ -5,20 +5,19 @@
|
|
|
5
5
|
--padding-vertical: 108px;
|
|
6
6
|
--mrkt-c-two-col-list-section-padding-top: var(--padding-vertical);
|
|
7
7
|
--mrkt-c-two-col-list-section-padding-bottom: var(--padding-vertical);
|
|
8
|
+
--mrkt-c-two-col-list-section-align-items: center;
|
|
8
9
|
}
|
|
9
10
|
|
|
10
11
|
.two-col-panel-section {
|
|
11
12
|
display: flex;
|
|
12
13
|
flex-direction: row;
|
|
13
14
|
justify-content: space-between;
|
|
14
|
-
align-items:
|
|
15
|
-
background: var(--dx-g-indigo-vibrant-15);
|
|
15
|
+
align-items: var(--mrkt-c-two-col-list-section-align-items);
|
|
16
16
|
width: 100%;
|
|
17
17
|
padding: var(--mrkt-c-two-col-list-section-padding-top)
|
|
18
18
|
var(--dx-g-page-padding-horizontal)
|
|
19
19
|
var(--mrkt-c-two-col-list-section-padding-bottom)
|
|
20
20
|
var(--dx-g-page-padding-horizontal);
|
|
21
|
-
overflow: hidden;
|
|
22
21
|
}
|
|
23
22
|
|
|
24
23
|
.text-container {
|
|
@@ -37,10 +36,26 @@
|
|
|
37
36
|
margin-bottom: var(--dx-g-spacing-md);
|
|
38
37
|
}
|
|
39
38
|
|
|
40
|
-
|
|
39
|
+
.cta-group {
|
|
40
|
+
width: fit-content;
|
|
41
|
+
display: flex;
|
|
42
|
+
flex-direction: column;
|
|
43
|
+
align-items: center;
|
|
44
|
+
gap: var(--dx-g-spacing-md);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.main-cta {
|
|
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
|
+
|
|
41
52
|
margin-top: var(--dx-g-spacing-sm);
|
|
42
53
|
}
|
|
43
54
|
|
|
55
|
+
.modal-cta {
|
|
56
|
+
--dx-c-button-font-size: var(--dx-g-text-sm);
|
|
57
|
+
}
|
|
58
|
+
|
|
44
59
|
.card-container {
|
|
45
60
|
position: relative;
|
|
46
61
|
width: 100%;
|
|
@@ -48,9 +63,13 @@ dx-button {
|
|
|
48
63
|
margin: 0 auto;
|
|
49
64
|
}
|
|
50
65
|
|
|
51
|
-
.subtitle
|
|
52
|
-
|
|
53
|
-
|
|
66
|
+
.subtitle {
|
|
67
|
+
color: var(--dx-g-blue-vibrant-20);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.dark .subtitle,
|
|
71
|
+
.dark .title,
|
|
72
|
+
.dark .body {
|
|
54
73
|
color: white;
|
|
55
74
|
}
|
|
56
75
|
|
|
@@ -60,8 +79,8 @@ img {
|
|
|
60
79
|
|
|
61
80
|
.graphic-1 {
|
|
62
81
|
width: 306px;
|
|
63
|
-
bottom:
|
|
64
|
-
left: -
|
|
82
|
+
bottom: 100px;
|
|
83
|
+
left: -120px;
|
|
65
84
|
z-index: 0;
|
|
66
85
|
}
|
|
67
86
|
|
|
@@ -74,8 +93,8 @@ img {
|
|
|
74
93
|
|
|
75
94
|
.graphic-3 {
|
|
76
95
|
width: 142px;
|
|
77
|
-
right: -
|
|
78
|
-
bottom: -
|
|
96
|
+
right: -58px;
|
|
97
|
+
bottom: -73px;
|
|
79
98
|
z-index: 0;
|
|
80
99
|
}
|
|
81
100
|
|
|
@@ -84,6 +103,10 @@ img {
|
|
|
84
103
|
width: 100%;
|
|
85
104
|
}
|
|
86
105
|
|
|
106
|
+
.dark {
|
|
107
|
+
background: var(--dx-g-indigo-vibrant-15);
|
|
108
|
+
}
|
|
109
|
+
|
|
87
110
|
@media (max-width: 1024px) {
|
|
88
111
|
:host {
|
|
89
112
|
--padding-vertical: var(--dx-g-spacing-3xl);
|
|
@@ -115,7 +138,18 @@ img {
|
|
|
115
138
|
}
|
|
116
139
|
}
|
|
117
140
|
|
|
141
|
+
@media (max-width: 850px) {
|
|
142
|
+
.main-cta {
|
|
143
|
+
--dx-c-button-horizontal-spacing: var(--dx-g-spacing-md);
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
|
|
118
147
|
@media (max-width: 768px) {
|
|
148
|
+
.main-cta {
|
|
149
|
+
--dx-c-button-display: inline;
|
|
150
|
+
--dx-c-button-vertical-spacing: var(--dx-g-spacing-xs);
|
|
151
|
+
}
|
|
152
|
+
|
|
119
153
|
.two-col-panel-section {
|
|
120
154
|
display: flex;
|
|
121
155
|
flex-direction: column;
|
|
@@ -1,31 +1,94 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class=
|
|
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
|
|
52
|
+
if:false={light}
|
|
11
53
|
class="graphic-1"
|
|
12
54
|
src="/assets/svg/mrkt-two-col-panel-section-graphic-1.svg"
|
|
13
55
|
alt=""
|
|
14
56
|
/>
|
|
15
57
|
<img
|
|
58
|
+
if:false={light}
|
|
16
59
|
class="graphic-2"
|
|
17
60
|
src="/assets/svg/mrkt-two-col-panel-section-graphic-2.svg"
|
|
18
61
|
alt=""
|
|
19
62
|
/>
|
|
20
63
|
<img
|
|
64
|
+
if:false={light}
|
|
21
65
|
class="graphic-3"
|
|
22
66
|
src="/assets/svg/mrkt-two-col-panel-section-graphic-3.svg"
|
|
23
67
|
alt=""
|
|
24
68
|
/>
|
|
69
|
+
<img
|
|
70
|
+
if:true={light}
|
|
71
|
+
class="graphic-1"
|
|
72
|
+
src="/assets/svg/mrkt-two-col-panel-section-graphic-1-light.svg"
|
|
73
|
+
alt=""
|
|
74
|
+
/>
|
|
75
|
+
<img
|
|
76
|
+
if:true={light}
|
|
77
|
+
class="graphic-2"
|
|
78
|
+
src="/assets/svg/mrkt-two-col-panel-section-graphic-2-light.svg"
|
|
79
|
+
alt=""
|
|
80
|
+
/>
|
|
81
|
+
<img
|
|
82
|
+
if:true={light}
|
|
83
|
+
class="graphic-3"
|
|
84
|
+
src="/assets/svg/mrkt-two-col-panel-section-graphic-3-light.svg"
|
|
85
|
+
alt=""
|
|
86
|
+
/>
|
|
25
87
|
<slot></slot>
|
|
26
88
|
</div>
|
|
27
89
|
</div>
|
|
28
90
|
<img
|
|
91
|
+
if:false={light}
|
|
29
92
|
class="graphic-swoop"
|
|
30
93
|
src="/assets/svg/mrkt-two-col-panel-section-swoop.svg"
|
|
31
94
|
alt=""
|
|
@@ -1,9 +1,37 @@
|
|
|
1
1
|
import { api, LightningElement } from "lwc";
|
|
2
|
+
import cx from "classnames";
|
|
2
3
|
|
|
3
4
|
export default class TwoColPanelSection extends LightningElement {
|
|
4
5
|
@api body!: string;
|
|
5
6
|
@api buttonHref!: string;
|
|
6
7
|
@api buttonText!: string;
|
|
8
|
+
@api modalButtonText?: string;
|
|
7
9
|
@api subtitle!: string;
|
|
8
10
|
@api title!: string;
|
|
11
|
+
@api light?: boolean = false;
|
|
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
|
+
|
|
30
|
+
private get className(): string {
|
|
31
|
+
return cx("two-col-panel-section", !this.light && "dark");
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
private toggleModal(): void {
|
|
35
|
+
this.modalOpen = !this.modalOpen;
|
|
36
|
+
}
|
|
9
37
|
}
|