@fluid-topics/ft-file-button 0.3.71 → 1.0.0-alpha.0

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.
@@ -1,3 +1,2 @@
1
1
  export declare const FtFileButtonCssVariables: {};
2
2
  export declare const styles: import("lit").CSSResult;
3
- //# sourceMappingURL=ft-file-button.css.d.ts.map
@@ -2,4 +2,3 @@ import { css } from "lit";
2
2
  export const FtFileButtonCssVariables = {};
3
3
  // language=CSS
4
4
  export const styles = css ``;
5
- //# sourceMappingURL=ft-file-button.css.js.map
@@ -1,5 +1,6 @@
1
1
  import { ElementDefinitionsMap, FtLitElement } from "@fluid-topics/ft-wc-utils";
2
2
  import { FtFileButtonProperties } from "./ft-file-button.properties";
3
+ import { FtIconVariants } from "@fluid-topics/ft-icon";
3
4
  export declare class FileChangeEvent extends CustomEvent<{
4
5
  file: File;
5
6
  }> {
@@ -11,6 +12,7 @@ export declare class FtFileButton extends FtLitElement implements FtFileButtonPr
11
12
  disabled: boolean;
12
13
  label: string;
13
14
  icon?: string;
15
+ iconVariant?: FtIconVariants;
14
16
  trailingIcon: boolean;
15
17
  accept: string;
16
18
  private input;
@@ -20,4 +22,3 @@ export declare class FtFileButton extends FtLitElement implements FtFileButtonPr
20
22
  focus(): void;
21
23
  clear(): void;
22
24
  }
23
- //# sourceMappingURL=ft-file-button.d.ts.map
@@ -14,7 +14,7 @@ export class FileChangeEvent extends CustomEvent {
14
14
  super("change", { detail: { file } });
15
15
  }
16
16
  }
17
- export class FtFileButton extends FtLitElement {
17
+ class FtFileButton extends FtLitElement {
18
18
  constructor() {
19
19
  super(...arguments);
20
20
  this.disabled = false;
@@ -29,6 +29,7 @@ export class FtFileButton extends FtLitElement {
29
29
  <ft-button ?disabled=${this.disabled}
30
30
  label="${this.label}"
31
31
  icon="${this.icon}"
32
+ .iconVariant="${this.iconVariant}"
32
33
  ?trailingIcon=${this.trailingIcon}
33
34
  @click=${() => this.input.click()}>
34
35
  <slot></slot>
@@ -62,16 +63,19 @@ __decorate([
62
63
  property({ type: Boolean })
63
64
  ], FtFileButton.prototype, "disabled", void 0);
64
65
  __decorate([
65
- property({ type: String })
66
+ property()
66
67
  ], FtFileButton.prototype, "label", void 0);
67
68
  __decorate([
68
- property({ type: String })
69
+ property()
69
70
  ], FtFileButton.prototype, "icon", void 0);
71
+ __decorate([
72
+ property()
73
+ ], FtFileButton.prototype, "iconVariant", void 0);
70
74
  __decorate([
71
75
  property({ type: Boolean })
72
76
  ], FtFileButton.prototype, "trailingIcon", void 0);
73
77
  __decorate([
74
- property({ type: String })
78
+ property()
75
79
  ], FtFileButton.prototype, "accept", void 0);
76
80
  __decorate([
77
81
  query(".ft-file-button--input")
@@ -79,4 +83,4 @@ __decorate([
79
83
  __decorate([
80
84
  query("ft-button")
81
85
  ], FtFileButton.prototype, "button", void 0);
82
- //# sourceMappingURL=ft-file-button.js.map
86
+ export { FtFileButton };