@salesforcedevs/dx-components 1.3.159 → 1.3.161

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.159",
3
+ "version": "1.3.161",
4
4
  "description": "DX Lightning web components",
5
5
  "license": "MIT",
6
6
  "engines": {
@@ -41,5 +41,5 @@
41
41
  "eventsourcemock": "^2.0.0",
42
42
  "luxon": "^3.1.0"
43
43
  },
44
- "gitHead": "24b050b8a807723b7e8b081e648c7c42946dd72c"
44
+ "gitHead": "debedcea9a397f2b0bb5c5d683d0d4e6eb59015c"
45
45
  }
@@ -2,7 +2,9 @@ import { LightningElement, api } from "lwc";
2
2
  import cx from "classnames";
3
3
  import {
4
4
  ButtonTextColor,
5
+ ButtonTarget,
5
6
  ButtonVariant,
7
+ ButtonSize,
6
8
  IconSprite,
7
9
  IconSize,
8
10
  IconSymbol,
@@ -17,7 +19,7 @@ export default class Button extends LightningElement {
17
19
  @api iconSymbol?: IconSymbol;
18
20
  @api iconPosition?: "right" | "left" = "right";
19
21
  @api loading: boolean = false;
20
- @api size: "large" | "hero" | "small" = "small";
22
+ @api size: ButtonSize = "small";
21
23
  @api variant: ButtonVariant = "primary";
22
24
  @api inlineTextColor: ButtonTextColor = "dark";
23
25
  @api font: "display" | "sans" = "display";
@@ -30,7 +32,7 @@ export default class Button extends LightningElement {
30
32
  // link props
31
33
  @api href: string | null = null;
32
34
  @api download: string | null = null;
33
- @api target: "_self" | "_blank" | "_parent" | "_top" | null = null;
35
+ @api target: ButtonTarget = null;
34
36
  @api rel: string | null = null;
35
37
 
36
38
  @api focus() {