@salesforcedevs/dx-components 1.3.206 → 1.3.210

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/dx-components",
3
- "version": "1.3.206",
3
+ "version": "1.3.210",
4
4
  "description": "DX Lightning web components",
5
5
  "license": "MIT",
6
6
  "engines": {
@@ -44,5 +44,5 @@
44
44
  "volta": {
45
45
  "node": "16.19.1"
46
46
  },
47
- "gitHead": "64dfbe7681c227a3ff1aa409decf2c079c848715"
47
+ "gitHead": "745b13f8f7e0662b19917885a8e3fadaa49ff3c2"
48
48
  }
@@ -1193,7 +1193,7 @@ License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL
1193
1193
  <path d="M391.17,103.47H352.54v109.7h38.63ZM285,103H246.37V212.75H285ZM120.83,0,24.31,91.42V420.58H140.14V512l96.53-91.42h77.25L487.69,256V0ZM449.07,237.75l-77.22,73.12H294.61l-67.6,64v-64H140.14V36.58H449.07Z"></path>
1194
1194
  </symbol>
1195
1195
  <symbol id="twitter" viewBox="0 0 1200 1227">
1196
- <path d="M714.163 519.284 1160.89 0h-105.86L667.137 450.887 357.328 0H0l468.492 681.821L0 1226.37h105.866l409.625-476.152 327.181 476.152H1200L714.137 519.284h.026ZM569.165 687.828l-47.468-67.894-377.686-540.24h162.604l304.797 435.991 47.468 67.894 396.2 566.721H892.476L569.165 687.854v-.026Z" fill="#fff"/>
1196
+ <path d="M714.163 519.284 1160.89 0h-105.86L667.137 450.887 357.328 0H0l468.492 681.821L0 1226.37h105.866l409.625-476.152 327.181 476.152H1200L714.137 519.284h.026ZM569.165 687.828l-47.468-67.894-377.686-540.24h162.604l304.797 435.991 47.468 67.894 396.2 566.721H892.476L569.165 687.854v-.026Z"/>
1197
1197
  </symbol>
1198
1198
  <symbol id="typo3" viewBox="0 0 448 512">
1199
1199
  <path d="M178.7 78.4c0-24.7 5.4-32.4 13.9-39.4-69.5 8.5-149.3 34-176.3 66.4-5.4 7.7-9.3 20.8-9.3 37.1C7 246 113.8 480 191.1 480c36.3 0 97.3-59.5 146.7-139-7 2.3-11.6 2.3-18.5 2.3-57.2 0-140.6-198.5-140.6-264.9zM301.5 32c-30.1 0-41.7 5.4-41.7 36.3 0 66.4 53.8 198.5 101.7 198.5 26.3 0 78.8-99.7 78.8-182.3 0-40.9-67-52.5-138.8-52.5z"></path>
@@ -1,6 +1,11 @@
1
1
  import { LightningElement, api } from "lwc";
2
2
  import cx from "classnames";
3
- import { IconSprite, IconSymbol, IconBadgeShape } from "typings/custom";
3
+ import {
4
+ IconSprite,
5
+ IconSymbol,
6
+ IconBadgeShape,
7
+ IconSize
8
+ } from "typings/custom";
4
9
  import { toDxColor } from "dxUtils/css";
5
10
 
6
11
  const validShapes = ["square", "circle"];
@@ -11,7 +16,7 @@ export default class IconBadge extends LightningElement {
11
16
  @api color?: string | null = null;
12
17
  @api backgroundColor?: string;
13
18
  @api backgroundSize?: string;
14
- @api iconSize?: string = "override";
19
+ @api iconSize?: IconSize = "override";
15
20
  @api alt: string = "";
16
21
 
17
22
  _shape: IconBadgeShape = "circle";
@@ -6,6 +6,12 @@
6
6
  --dx-c-host-img-margin-right: 16px;
7
7
  }
8
8
 
9
+ dx-icon {
10
+ display: inline-block;
11
+ position: relative;
12
+ top: -1px;
13
+ }
14
+
9
15
  .container {
10
16
  background: white;
11
17
  box-shadow: var(--dx-g-box-shadow-sm);
@@ -14,14 +14,13 @@
14
14
  <div class="host-bio">
15
15
  <p>{bio}</p>
16
16
  </div>
17
- <dx-button
18
- href={twitterHref}
19
- target="_blank"
20
- variant="inline"
21
- icon-symbol="twitter"
22
- icon-sprite="brand"
23
- >
24
- Follow {firstName} on Twitter
17
+ <dx-button href={twitterHref} target="_blank" variant="inline">
18
+ Follow {firstName} on&nbsp;
19
+ <dx-icon
20
+ size="xsmall"
21
+ sprite="brand"
22
+ symbol="twitter"
23
+ ></dx-icon>
25
24
  </dx-button>
26
25
  </div>
27
26
  </div>