@salesforcedevs/dx-components 1.3.251-alpha.2 → 1.3.251-alpha.4

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 CHANGED
@@ -35,6 +35,7 @@
35
35
  "dx/codeBlock",
36
36
  "dx/coveoRecommendations",
37
37
  "dx/dropdown",
38
+ "dx/embeddedVideo",
38
39
  "dx/emptyState",
39
40
  "dx/faq",
40
41
  "dx/feature",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforcedevs/dx-components",
3
- "version": "1.3.251-alpha.2",
3
+ "version": "1.3.251-alpha.4",
4
4
  "description": "DX Lightning web components",
5
5
  "license": "MIT",
6
6
  "engines": {
@@ -16,7 +16,8 @@ h2 {
16
16
  }
17
17
 
18
18
  .profile-container {
19
- display: flex;
19
+ display: grid;
20
+ grid-template-columns: 48px 1fr 100px;
20
21
  align-items: center;
21
22
  }
22
23
 
@@ -28,6 +29,7 @@ h2 {
28
29
  color: var(--dx-g-blue-vibrant-20);
29
30
  }
30
31
 
31
- dx-icon-badge {
32
- margin-left: auto;
32
+ dx-icon {
33
+ display: inline;
34
+ margin: 0 6px;
33
35
  }
@@ -36,13 +36,20 @@
36
36
  <p class="dx-text-display-8">{socialName}</p>
37
37
  <p class="dx-text-body-3">{socialJobTitle}</p>
38
38
  </div>
39
- <dx-icon-badge
40
- symbol={socialPlatform}
41
- sprite="brand"
42
- background-color="blue-vibrant-20"
43
- icon-size="medium"
44
- background-size="medium"
45
- ></dx-icon-badge>
39
+ <dx-button
40
+ variant="inline"
41
+ icon-symbol="new_window"
42
+ target="_blank"
43
+ href={href}
44
+ >
45
+ View on
46
+ <dx-icon
47
+ sprite="brand"
48
+ symbol={type}
49
+ color={socialIconColor}
50
+ size="large"
51
+ ></dx-icon>
52
+ </dx-button>
46
53
  </div>
47
54
  </div>
48
55
  </div>
@@ -9,10 +9,10 @@ export default class EmbeddedVideo extends LightningElement {
9
9
  @api body = "";
10
10
 
11
11
  @api hasSocial? = false;
12
- @api socialPlatform?: string;
13
12
  @api socialName?: string;
14
13
  @api socialJobTitle?: string;
15
14
  @api socialProfileImgSrc?: string;
15
+ @api href?: string;
16
16
 
17
17
  get isTwitter() {
18
18
  return this.type === "twitter";
@@ -33,4 +33,8 @@ export default class EmbeddedVideo extends LightningElement {
33
33
  get socialProfileImgAlt() {
34
34
  return `headshot of ${this.socialName}`;
35
35
  }
36
+
37
+ get socialIconColor() {
38
+ return this.type === "twitter" ? "black" : "blue-vibrant-50";
39
+ }
36
40
  }