@salesforcedevs/mrkt-components 0.41.0-alpha.0 → 0.41.0-alpha.1

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/mrkt-components",
3
- "version": "0.41.0-alpha.0",
3
+ "version": "0.41.0-alpha.1",
4
4
  "description": "Marketing Lightning web components for DSC",
5
5
  "license": "MIT",
6
6
  "engines": {
@@ -59,12 +59,13 @@ span {
59
59
 
60
60
  .img-container {
61
61
  position: absolute;
62
- bottom: 0;
62
+ bottom: -35px;
63
63
  left: 0;
64
64
  width: 100%;
65
65
  display: flex;
66
66
  flex-direction: row;
67
67
  justify-content: space-between;
68
+ z-index: 100;
68
69
  }
69
70
 
70
71
  img {
@@ -77,6 +78,10 @@ img {
77
78
  --mrkt-c-cta-section-padding-bottom: var(--dx-g-spacing-5xl);
78
79
  }
79
80
 
81
+ .img-container {
82
+ bottom: -28px;
83
+ }
84
+
80
85
  img {
81
86
  width: 200px;
82
87
  }
@@ -91,8 +96,4 @@ img {
91
96
  position: relative;
92
97
  padding-top: var(--dx-g-spacing-mlg);
93
98
  }
94
-
95
- img {
96
- width: 30%;
97
- }
98
99
  }
@@ -26,6 +26,7 @@
26
26
  h1 {
27
27
  color: var(--dx-g-text-heading-color);
28
28
  font-size: var(--dx-g-text-5xl);
29
+ font-weight: bold;
29
30
  line-height: 60px;
30
31
  margin-bottom: var(--dx-g-spacing-lg);
31
32
  letter-spacing: -0.018em;
@@ -1,7 +1,9 @@
1
1
  <template>
2
2
  <div class={className}>
3
3
  <div class="fade"></div>
4
- <h1>{title}</h1>
4
+ <h1>
5
+ <slot>Default Title</slot>
6
+ </h1>
5
7
  <dx-button href={ctaHref} size="large">{ctaLabel}</dx-button>
6
8
  <img src={imgSrc} alt="" />
7
9
  </div>
@@ -3,7 +3,6 @@ import cx from "classnames";
3
3
 
4
4
  export default class RectangularHeading extends LightningElement {
5
5
  @api dark!: boolean;
6
- @api title!: string;
7
6
  @api imgSrc!: string;
8
7
  @api imgSrcMobile?: string;
9
8
  @api ctaLabel!: string;
@@ -31,13 +31,20 @@
31
31
  }
32
32
 
33
33
  .img-container {
34
- position: absolute;
35
34
  display: flex;
36
35
  flex-direction: row;
37
36
  justify-content: space-between;
37
+ width: 100%;
38
+ }
39
+
40
+ .section-header:not(.overlap-images) .img-container {
41
+ margin-bottom: calc(-1 * var(--dx-g-spacing-md));
42
+ }
43
+
44
+ .section-header.overlap-images .img-container {
45
+ position: absolute;
38
46
  bottom: calc(100% - var(--image-offset));
39
47
  left: 0;
40
- width: 100%;
41
48
  z-index: 0;
42
49
  }
43
50
 
@@ -1,5 +1,9 @@
1
1
  <template>
2
2
  <div class={className}>
3
+ <div class="img-container" if:true={hasImages}>
4
+ <img src={imgSrcLeft} alt="" />
5
+ <img src={imgSrcRight} alt="" />
6
+ </div>
3
7
  <div class="text-container">
4
8
  <dx-icon-badge
5
9
  if:true={hasIcon}
@@ -10,9 +14,5 @@
10
14
  {subtitle}
11
15
  </span>
12
16
  </div>
13
- <div class="img-container" if:true={hasImages}>
14
- <img src={imgSrcLeft} alt="" />
15
- <img src={imgSrcRight} alt="" />
16
- </div>
17
17
  </div>
18
18
  </template>
@@ -6,6 +6,7 @@ export default class SectionHeader extends LightningElement {
6
6
  @api iconSymbol?: string;
7
7
  @api imgSrcLeft?: string;
8
8
  @api imgSrcRight?: string;
9
+ @api overlapImages?: boolean = false;
9
10
  @api lightGradient?: boolean;
10
11
  @api subtitle?: string;
11
12
  @api title?: string;
@@ -23,7 +24,8 @@ export default class SectionHeader extends LightningElement {
23
24
  "section-header",
24
25
  this.dark && "dark",
25
26
  this.lightGradient && "light-gradient",
26
- this.subtitle && "has-subtitle"
27
+ this.subtitle && "has-subtitle",
28
+ this.overlapImages && "overlap-images"
27
29
  );
28
30
  }
29
31
  }
@@ -29,6 +29,8 @@
29
29
  align-items: center;
30
30
  justify-content: space-between;
31
31
  animation: slide 0.3s cubic-bezier(0.3, 0.73, 0.3, 0.74) forwards;
32
+ z-index: 100000;
33
+ box-shadow: 0 5px 10px 0 rgb(0 0 0 / 10%);
32
34
  }
33
35
 
34
36
  .subnav.hide {
@@ -23,7 +23,7 @@ export default class SubNavBar extends MatchMediaElement {
23
23
  }
24
24
 
25
25
  private _navItems!: OptionWithLink[];
26
- private isVisible: boolean = true;
26
+ private isVisible: boolean = false;
27
27
  private sectionIntersectionEntryMap:
28
28
  | {
29
29
  [id: string]: IntersectionObserverEntry;
@@ -13,6 +13,7 @@
13
13
  var(--mrkt-c-two-col-list-section-padding-bottom)
14
14
  var(--dx-g-page-padding-horizontal);
15
15
  display: flex;
16
+ width: 100%;
16
17
  }
17
18
 
18
19
  .two-col-list-section.dark {
@@ -23,7 +24,6 @@
23
24
  display: grid;
24
25
  grid-template-columns: 1fr 1fr;
25
26
  grid-gap: var(--dx-g-spacing-3xl) var(--dx-g-spacing-6xl);
26
- width: max-content;
27
27
  margin: auto;
28
28
  }
29
29
 
@@ -33,6 +33,7 @@
33
33
  display: grid;
34
34
  grid-template-areas: "icon title" "icon subtitle";
35
35
  grid-template-columns: min-content auto;
36
+ grid-template-rows: min-content auto;
36
37
  grid-gap: var(--dx-g-spacing-xs) var(--dx-g-spacing-mlg);
37
38
  }
38
39
 
@@ -6,7 +6,8 @@
6
6
  <dx-icon-badge
7
7
  symbol={item.iconSymbol}
8
8
  sprite={item.iconSprite}
9
- background-color={item.backgroundColor}
9
+ color={item.iconColor}
10
+ background-color={item.iconBackgroundColor}
10
11
  ></dx-icon-badge>
11
12
  <h3 class="title dx-text-heading-4b">{item.title}</h3>
12
13
  <span class="subtitle dx-text-body-1">{item.subtitle}</span>
@@ -7,7 +7,8 @@ type Item = {
7
7
  subtitle: string;
8
8
  iconSymbol: string;
9
9
  iconSprite: string;
10
- backgroundColor: string;
10
+ iconColor: string;
11
+ iconBackgroundColor: string;
11
12
  };
12
13
 
13
14
  export default class TwoColListSection extends LightningElement {
@@ -7,9 +7,21 @@
7
7
  <dx-button href={buttonHref}>{buttonText}</dx-button>
8
8
  </div>
9
9
  <div class="card-container">
10
- <img class="graphic-1" src={graphicOne} alt="" />
11
- <img class="graphic-2" src={graphicTwo} alt="" />
12
- <img class="graphic-3" src={graphicThree} alt="" />
10
+ <img
11
+ class="graphic-1"
12
+ src="/assets/svg/mrkt-two-col-panel-section-graphic-1.svg"
13
+ alt=""
14
+ />
15
+ <img
16
+ class="graphic-2"
17
+ src="/assets/svg/mrkt-two-col-panel-section-graphic-2.svg"
18
+ alt=""
19
+ />
20
+ <img
21
+ class="graphic-3"
22
+ src="/assets/svg/mrkt-two-col-panel-section-graphic-3.svg"
23
+ alt=""
24
+ />
13
25
  <slot></slot>
14
26
  </div>
15
27
  </div>
@@ -6,7 +6,4 @@ export default class TwoColPanelSection extends LightningElement {
6
6
  @api buttonText!: string;
7
7
  @api subtitle!: string;
8
8
  @api title!: string;
9
- @api graphicOne!: string;
10
- @api graphicTwo!: string;
11
- @api graphicThree!: string;
12
9
  }
@@ -3,7 +3,7 @@
3
3
  <img src={imgSrc} alt={imgAlt} />
4
4
  <div class="text-container">
5
5
  <h2 class="dx-text-heading-4">{title}</h2>
6
- <span class="dx-text-body-1">{subtitle}</span>
6
+ <span class="dx-text-body-2">{subtitle}</span>
7
7
  </div>
8
8
  </div>
9
9
  </template>