@salesforcedevs/mrkt-components 0.69.1 → 0.73.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/lwc.config.json +1 -0
- package/package.json +2 -2
- package/src/modules/mrkt/sectionHeader/sectionHeader.css +0 -2
- package/src/modules/mrkt/sectionHeader/sectionHeader.html +1 -0
- package/src/modules/mrkt/threeColListSection/threeColListSection.css +95 -0
- package/src/modules/mrkt/threeColListSection/threeColListSection.html +23 -0
- package/src/modules/mrkt/threeColListSection/threeColListSection.ts +24 -0
- package/src/modules/mrkt/twoColListSection/twoColListSection.html +1 -0
package/lwc.config.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforcedevs/mrkt-components",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.73.0",
|
|
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": "d00cb2ff48d311a87d986d317c78b8a026a0b055"
|
|
19
19
|
}
|
|
@@ -11,7 +11,6 @@
|
|
|
11
11
|
--overlap-padding-top: calc(
|
|
12
12
|
var(--image-height) - var(--image-overlap) + var(--image-inset)
|
|
13
13
|
);
|
|
14
|
-
--icon-size: 50px;
|
|
15
14
|
--icon-padding: 24px;
|
|
16
15
|
--mrkt-c-section-header-padding-top: 76px;
|
|
17
16
|
--mrkt-c-section-header-padding-bottom: var(--dx-g-spacing-5xl);
|
|
@@ -94,7 +93,6 @@
|
|
|
94
93
|
}
|
|
95
94
|
|
|
96
95
|
dx-icon-badge {
|
|
97
|
-
--dx-c-icon-badge-size: var(--icon-size);
|
|
98
96
|
--dx-c-icon-badge-icon-size: var(--dx-g-spacing-xl);
|
|
99
97
|
--dx-c-icon-badge-color: white;
|
|
100
98
|
--dx-c-icon-badge-background-color: var(--dx-g-blue-vibrant-20);
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
@import "dxHelpers/reset";
|
|
2
|
+
@import "dxHelpers/text";
|
|
3
|
+
|
|
4
|
+
:host {
|
|
5
|
+
--padding-vertical: 56px;
|
|
6
|
+
--mrkt-c-three-col-list-section-padding-top: var(--padding-vertical);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.three-col-list-section {
|
|
10
|
+
padding-top: var(--mrkt-c-three-col-list-section-padding-top);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.three-col-list-section.dark {
|
|
14
|
+
background: var(--dx-g-blue-vibrant-15, #03234d);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.item-grid {
|
|
18
|
+
display: grid;
|
|
19
|
+
grid-template-columns: 1fr 1fr 1fr;
|
|
20
|
+
grid-gap: var(--dx-g-spacing-xl) var(--dx-g-spacing-3xl);
|
|
21
|
+
justify-items: center;
|
|
22
|
+
padding: 0 var(--dx-g-page-padding-horizontal);
|
|
23
|
+
width: 100%;
|
|
24
|
+
max-width: 1024px;
|
|
25
|
+
margin: auto;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.item {
|
|
29
|
+
width: 100%;
|
|
30
|
+
max-width: 450px;
|
|
31
|
+
display: grid;
|
|
32
|
+
grid-template-areas:
|
|
33
|
+
"icon"
|
|
34
|
+
"title"
|
|
35
|
+
"subtitle";
|
|
36
|
+
grid-gap: var(--dx-g-spacing-sm);
|
|
37
|
+
justify-items: center;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
dx-icon-badge {
|
|
41
|
+
--dx-c-icon-badge-size: 60px;
|
|
42
|
+
|
|
43
|
+
grid-area: icon;
|
|
44
|
+
margin-bottom: var(--dx-g-spacing-md);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.title,
|
|
48
|
+
.subtitle {
|
|
49
|
+
text-align: center;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.title {
|
|
53
|
+
grid-area: title;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.subtitle {
|
|
57
|
+
grid-area: subtitle;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.three-col-list-section.dark .title,
|
|
61
|
+
.three-col-list-section.dark .subtitle {
|
|
62
|
+
color: white;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.img-container {
|
|
66
|
+
position: relative;
|
|
67
|
+
width: 100%;
|
|
68
|
+
display: flex;
|
|
69
|
+
flex-direction: row;
|
|
70
|
+
justify-content: space-between;
|
|
71
|
+
z-index: 2;
|
|
72
|
+
margin-top: var(--dx-g-spacing-3xl);
|
|
73
|
+
margin-bottom: -35px;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
img {
|
|
77
|
+
width: 250px;
|
|
78
|
+
aspect-ratio: 25 / 14;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
@media (max-width: 1024px) {
|
|
82
|
+
.img-container {
|
|
83
|
+
margin-bottom: -28px;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
img {
|
|
87
|
+
width: 200px;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
@media (max-width: 768px) {
|
|
92
|
+
.item-grid {
|
|
93
|
+
grid-template-columns: 1fr;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="three-col-list-section">
|
|
3
|
+
<div class="item-grid">
|
|
4
|
+
<template for:each={items} for:item="item">
|
|
5
|
+
<div class="item" key={item.title}>
|
|
6
|
+
<dx-icon-badge
|
|
7
|
+
symbol={item.iconSymbol}
|
|
8
|
+
sprite={item.iconSprite}
|
|
9
|
+
color={item.iconColor}
|
|
10
|
+
background-color={item.iconBackgroundColor}
|
|
11
|
+
background-size="large"
|
|
12
|
+
></dx-icon-badge>
|
|
13
|
+
<h3 class="title dx-text-heading-4b">{item.title}</h3>
|
|
14
|
+
<span class="subtitle dx-text-body-2">{item.subtitle}</span>
|
|
15
|
+
</div>
|
|
16
|
+
</template>
|
|
17
|
+
</div>
|
|
18
|
+
<div class="img-container">
|
|
19
|
+
<img src="/assets/svg/mrkt-cta-section-img-left.svg" alt="" />
|
|
20
|
+
<img src="/assets/svg/mrkt-cta-section-img-right.svg" alt="" />
|
|
21
|
+
</div>
|
|
22
|
+
</div>
|
|
23
|
+
</template>
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { api, LightningElement } from "lwc";
|
|
2
|
+
import { toJson } from "dxUtils/normalizers";
|
|
3
|
+
|
|
4
|
+
type Item = {
|
|
5
|
+
title: string;
|
|
6
|
+
subtitle: string;
|
|
7
|
+
iconSymbol: string;
|
|
8
|
+
iconSprite: string;
|
|
9
|
+
iconColor: string;
|
|
10
|
+
iconBackgroundColor: string;
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export default class ThreeColListSection extends LightningElement {
|
|
14
|
+
@api dark?: boolean;
|
|
15
|
+
@api
|
|
16
|
+
get items() {
|
|
17
|
+
return this._items;
|
|
18
|
+
}
|
|
19
|
+
set items(value) {
|
|
20
|
+
this._items = toJson(value);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
private _items!: Item[];
|
|
24
|
+
}
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
sprite={item.iconSprite}
|
|
9
9
|
color={item.iconColor}
|
|
10
10
|
background-color={item.iconBackgroundColor}
|
|
11
|
+
background-size="large"
|
|
11
12
|
></dx-icon-badge>
|
|
12
13
|
<h3 class="title dx-text-heading-4b">{item.title}</h3>
|
|
13
14
|
<span class="subtitle dx-text-body-2">{item.subtitle}</span>
|