@fluid-topics/ft-confirm-button 1.2.44 → 1.2.46

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.
@@ -2,7 +2,7 @@ import { ElementDefinitionsMap, FtLitElement } from "@fluid-topics/ft-wc-utils";
2
2
  import { FtIcons } from "@fluid-topics/ft-icon";
3
3
  import { FtdsModalConfirm } from "@fluid-topics/ft-modal";
4
4
  import { FtdsConfirmButtonProperties } from "./ftds-confirm-button.properties";
5
- import { DesignSystemSize } from "@fluid-topics/design-system-variables";
5
+ import { DesignSystemSize, DesignSystemFamily } from "@fluid-topics/design-system-variables";
6
6
  import { Position } from "@fluid-topics/ft-tooltip";
7
7
  export declare class ConfirmEvent extends CustomEvent<void> {
8
8
  constructor();
@@ -15,6 +15,7 @@ export declare class FtdsConfirmButton extends FtLitElement implements FtdsConfi
15
15
  buttonText: string;
16
16
  buttonIcon: FtIcons;
17
17
  buttonSize: DesignSystemSize;
18
+ buttonFamily: DesignSystemFamily;
18
19
  buttonForceTooltip: boolean;
19
20
  buttonTooltipPosition: Position;
20
21
  buttonLabel: string;
@@ -10,7 +10,7 @@ import { css, html } from "lit";
10
10
  import { FtdsButton } from "@fluid-topics/ft-button";
11
11
  import { FtIcons } from "@fluid-topics/ft-icon";
12
12
  import { FtdsModalConfirm } from "@fluid-topics/ft-modal";
13
- import { DesignSystemSize } from "@fluid-topics/design-system-variables";
13
+ import { DesignSystemSize, DesignSystemFamily } from "@fluid-topics/design-system-variables";
14
14
  export class ConfirmEvent extends CustomEvent {
15
15
  constructor() {
16
16
  super("confirm");
@@ -23,6 +23,7 @@ let FtdsConfirmButton = class FtdsConfirmButton extends FtLitElement {
23
23
  this.secondary = false;
24
24
  this.buttonIcon = FtIcons.CLOSE;
25
25
  this.buttonSize = DesignSystemSize.medium;
26
+ this.buttonFamily = DesignSystemFamily.brand;
26
27
  this.buttonForceTooltip = false;
27
28
  this.buttonTooltipPosition = "bottom";
28
29
  this.buttonLabel = "";
@@ -46,6 +47,7 @@ let FtdsConfirmButton = class FtdsConfirmButton extends FtLitElement {
46
47
  tooltipPosition=${this.buttonTooltipPosition}
47
48
  .label=${this.buttonLabel}
48
49
  size=${this.buttonSize}
50
+ family=${this.buttonFamily}
49
51
  @click=${() => this.askConfirmation()}>
50
52
  ${this.buttonText}
51
53
  </ftds-button>
@@ -85,6 +87,9 @@ __decorate([
85
87
  __decorate([
86
88
  property()
87
89
  ], FtdsConfirmButton.prototype, "buttonSize", void 0);
90
+ __decorate([
91
+ property()
92
+ ], FtdsConfirmButton.prototype, "buttonFamily", void 0);
88
93
  __decorate([
89
94
  property({ type: Boolean })
90
95
  ], FtdsConfirmButton.prototype, "buttonForceTooltip", void 0);
@@ -1,5 +1,5 @@
1
1
  import { FtIcons } from "@fluid-topics/ft-icon";
2
- import { DesignSystemSize } from "@fluid-topics/design-system-variables";
2
+ import { DesignSystemSize, DesignSystemFamily } from "@fluid-topics/design-system-variables";
3
3
  export interface FtdsConfirmButtonProperties {
4
4
  primary?: boolean;
5
5
  secondary?: boolean;
@@ -14,4 +14,5 @@ export interface FtdsConfirmButtonProperties {
14
14
  loading?: boolean;
15
15
  disabled?: boolean;
16
16
  buttonSize: DesignSystemSize;
17
+ buttonFamily: DesignSystemFamily;
17
18
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-confirm-button",
3
- "version": "1.2.44",
3
+ "version": "1.2.46",
4
4
  "description": "A two step confirmation button",
5
5
  "keywords": [
6
6
  "Lit"
@@ -19,11 +19,11 @@
19
19
  "url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
20
20
  },
21
21
  "dependencies": {
22
- "@fluid-topics/ft-wc-utils": "1.2.44",
22
+ "@fluid-topics/ft-wc-utils": "1.2.46",
23
23
  "lit": "3.1.0"
24
24
  },
25
25
  "devDependencies": {
26
- "@fluid-topics/ft-wc-test-utils": "1.2.44"
26
+ "@fluid-topics/ft-wc-test-utils": "1.2.46"
27
27
  },
28
- "gitHead": "9cbc1788339e7a5d3d4dc94c36ec5a28f31dba6c"
28
+ "gitHead": "6f4b20e9b729890b8af13cb79dfc6ed07d4389b0"
29
29
  }