@fluid-topics/ft-file-button 0.3.12 → 0.3.13

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.
@@ -0,0 +1,3 @@
1
+ export declare const FtFileButtonCssVariables: {};
2
+ export declare const styles: import("lit").CSSResult;
3
+ //# sourceMappingURL=ft-file-button.css.d.ts.map
@@ -0,0 +1,5 @@
1
+ import { css } from "lit";
2
+ export const FtFileButtonCssVariables = {};
3
+ // language=CSS
4
+ export const styles = css ``;
5
+ //# sourceMappingURL=ft-file-button.css.js.map
@@ -1,12 +1,5 @@
1
1
  import { ElementDefinitionsMap, FtLitElement } from "@fluid-topics/ft-wc-utils";
2
- export interface FtFileButtonProperties {
3
- disabled: boolean;
4
- label: string;
5
- icon?: string;
6
- trailingIcon: boolean;
7
- accept: string;
8
- }
9
- export declare const FtFileButtonCssVariables: {};
2
+ import { FtFileButtonProperties } from "./ft-file-button.properties";
10
3
  export declare class FileChangeEvent extends CustomEvent<{
11
4
  file: File;
12
5
  }> {
@@ -14,7 +7,7 @@ export declare class FileChangeEvent extends CustomEvent<{
14
7
  }
15
8
  export declare class FtFileButton extends FtLitElement implements FtFileButtonProperties {
16
9
  static elementDefinitions: ElementDefinitionsMap;
17
- static get styles(): import("lit").CSSResult;
10
+ static styles: import("lit").CSSResult;
18
11
  disabled: boolean;
19
12
  label: string;
20
13
  icon?: string;
@@ -4,11 +4,11 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
4
4
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
5
  return c > 3 && r && Object.defineProperty(target, key, r), r;
6
6
  };
7
- import { css, html } from "lit";
7
+ import { html } from "lit";
8
8
  import { property, query } from "lit/decorators.js";
9
9
  import { FtLitElement } from "@fluid-topics/ft-wc-utils";
10
10
  import { FtButton } from "@fluid-topics/ft-button";
11
- export const FtFileButtonCssVariables = {};
11
+ import { styles } from "./ft-file-button.css";
12
12
  export class FileChangeEvent extends CustomEvent {
13
13
  constructor(file) {
14
14
  super("change", { detail: { file } });
@@ -23,13 +23,6 @@ export class FtFileButton extends FtLitElement {
23
23
  this.trailingIcon = false;
24
24
  this.accept = "";
25
25
  }
26
- static get styles() {
27
- // language=CSS
28
- return css `
29
- .ft-file-button {
30
- }
31
- `;
32
- }
33
26
  render() {
34
27
  return html `
35
28
  <div class="ft-file-button">
@@ -64,6 +57,7 @@ export class FtFileButton extends FtLitElement {
64
57
  FtFileButton.elementDefinitions = {
65
58
  "ft-button": FtButton,
66
59
  };
60
+ FtFileButton.styles = styles;
67
61
  __decorate([
68
62
  property({ type: Boolean })
69
63
  ], FtFileButton.prototype, "disabled", void 0);