@fluid-topics/ft-chip 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.
@@ -19,4 +19,3 @@ export declare const FtChipDenseCssVariables: {
19
19
  verticalPadding: import("@fluid-topics/ft-wc-utils").FtCssVariable;
20
20
  };
21
21
  export declare const styles: import("lit").CSSResult[];
22
- //# sourceMappingURL=ft-chip.css.d.ts.map
@@ -160,4 +160,3 @@ export const styles = [
160
160
  }
161
161
  `
162
162
  ];
163
- //# sourceMappingURL=ft-chip.css.js.map
@@ -1,4 +1,5 @@
1
1
  import { ElementDefinitionsMap, FtLitElement } from "@fluid-topics/ft-wc-utils";
2
+ import { FtIconVariants } from "@fluid-topics/ft-icon";
2
3
  import { FtChipProperties } from "./ft-chip.property";
3
4
  export declare class IconClickEvent extends CustomEvent<void> {
4
5
  constructor();
@@ -14,6 +15,7 @@ export declare class FtChip extends FtLitElement implements FtChipProperties {
14
15
  multiLine: boolean;
15
16
  label: string;
16
17
  icon?: string;
18
+ iconVariant?: FtIconVariants;
17
19
  trailingIcon: boolean;
18
20
  private slottedContent?;
19
21
  static styles: import("lit").CSSResult[];
@@ -30,4 +32,3 @@ export declare class FtChip extends FtLitElement implements FtChipProperties {
30
32
  private onSlotchange;
31
33
  private get internalIcon();
32
34
  }
33
- //# sourceMappingURL=ft-chip.d.ts.map
package/build/ft-chip.js CHANGED
@@ -17,7 +17,7 @@ export class IconClickEvent extends CustomEvent {
17
17
  super("icon-click");
18
18
  }
19
19
  }
20
- export class FtChip extends FtLitElement {
20
+ class FtChip extends FtLitElement {
21
21
  constructor() {
22
22
  super(...arguments);
23
23
  this.highlighted = false;
@@ -69,7 +69,7 @@ export class FtChip extends FtLitElement {
69
69
  @click=${this.onIconClick}
70
70
  @keyup=${this.onIconKeyUp}>
71
71
  <ft-ripple ?disabled=${!this.interactionsOnIcon}></ft-ripple>
72
- <ft-icon variant="material">${this.internalIcon}</ft-icon>
72
+ <ft-icon .variant=${this.iconVariant} value="${this.internalIcon}"></ft-icon>
73
73
  </div>
74
74
  `;
75
75
  }
@@ -135,15 +135,18 @@ __decorate([
135
135
  property({ type: Boolean })
136
136
  ], FtChip.prototype, "multiLine", void 0);
137
137
  __decorate([
138
- property({ type: String })
138
+ property()
139
139
  ], FtChip.prototype, "label", void 0);
140
140
  __decorate([
141
- property({ type: String })
141
+ property()
142
142
  ], FtChip.prototype, "icon", void 0);
143
+ __decorate([
144
+ property()
145
+ ], FtChip.prototype, "iconVariant", void 0);
143
146
  __decorate([
144
147
  property({ type: Boolean })
145
148
  ], FtChip.prototype, "trailingIcon", void 0);
146
149
  __decorate([
147
150
  query("ft-typography slot")
148
151
  ], FtChip.prototype, "slottedContent", void 0);
149
- //# sourceMappingURL=ft-chip.js.map
152
+ export { FtChip };