@fluid-topics/ft-chip 0.3.70 → 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.
- package/build/ft-chip.css.d.ts +0 -1
- package/build/ft-chip.css.js +0 -1
- package/build/ft-chip.d.ts +2 -1
- package/build/ft-chip.js +8 -5
- package/build/ft-chip.light.js +122 -122
- package/build/ft-chip.min.js +146 -156
- package/build/ft-chip.property.d.ts +2 -1
- package/build/ft-chip.property.js +0 -1
- package/build/index.d.ts +0 -1
- package/build/index.js +0 -1
- package/package.json +7 -7
package/build/ft-chip.css.d.ts
CHANGED
package/build/ft-chip.css.js
CHANGED
package/build/ft-chip.d.ts
CHANGED
|
@@ -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
|
-
|
|
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="
|
|
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(
|
|
138
|
+
property()
|
|
139
139
|
], FtChip.prototype, "label", void 0);
|
|
140
140
|
__decorate([
|
|
141
|
-
property(
|
|
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
|
-
|
|
152
|
+
export { FtChip };
|