@fluid-topics/ft-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.
- package/build/ft-button.css.d.ts +0 -1
- package/build/ft-button.css.js +0 -1
- package/build/ft-button.d.ts +1 -2
- package/build/ft-button.js +8 -9
- package/build/ft-button.light.js +140 -140
- package/build/ft-button.min.js +174 -184
- package/build/ft-button.properties.d.ts +0 -1
- package/build/ft-button.properties.js +0 -1
- package/build/index.d.ts +0 -1
- package/build/index.js +0 -1
- package/package.json +9 -9
package/build/ft-button.css.d.ts
CHANGED
package/build/ft-button.css.js
CHANGED
package/build/ft-button.d.ts
CHANGED
|
@@ -14,7 +14,7 @@ export declare class FtButton extends FtLitElement implements FtButtonProperties
|
|
|
14
14
|
round: boolean;
|
|
15
15
|
label: string;
|
|
16
16
|
icon?: string;
|
|
17
|
-
iconVariant
|
|
17
|
+
iconVariant?: FtIconVariants;
|
|
18
18
|
trailingIcon: boolean;
|
|
19
19
|
loading: boolean;
|
|
20
20
|
tooltipPosition: Position;
|
|
@@ -35,4 +35,3 @@ export declare class FtButton extends FtLitElement implements FtButtonProperties
|
|
|
35
35
|
private onSlotchange;
|
|
36
36
|
private isDisabled;
|
|
37
37
|
}
|
|
38
|
-
//# sourceMappingURL=ft-button.d.ts.map
|
package/build/ft-button.js
CHANGED
|
@@ -13,9 +13,9 @@ import { FtTypography } from "@fluid-topics/ft-typography";
|
|
|
13
13
|
import { FtTooltip } from "@fluid-topics/ft-tooltip";
|
|
14
14
|
import { FtLoader } from "@fluid-topics/ft-loader";
|
|
15
15
|
import "@fluid-topics/ft-loader";
|
|
16
|
-
import { FtIcon
|
|
16
|
+
import { FtIcon } from "@fluid-topics/ft-icon";
|
|
17
17
|
import { styles } from "./ft-button.css";
|
|
18
|
-
|
|
18
|
+
class FtButton extends FtLitElement {
|
|
19
19
|
constructor() {
|
|
20
20
|
super(...arguments);
|
|
21
21
|
this.role = "button";
|
|
@@ -26,7 +26,6 @@ export class FtButton extends FtLitElement {
|
|
|
26
26
|
this.round = false;
|
|
27
27
|
this.label = "";
|
|
28
28
|
this.icon = undefined;
|
|
29
|
-
this.iconVariant = FtIconVariants.material;
|
|
30
29
|
this.trailingIcon = false;
|
|
31
30
|
this.loading = false;
|
|
32
31
|
this.tooltipPosition = "bottom";
|
|
@@ -87,7 +86,7 @@ export class FtButton extends FtLitElement {
|
|
|
87
86
|
else {
|
|
88
87
|
return this.icon
|
|
89
88
|
? html `
|
|
90
|
-
<ft-icon part="icon" variant="${this.iconVariant}" value="${this.icon}"></ft-icon> `
|
|
89
|
+
<ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `
|
|
91
90
|
: nothing;
|
|
92
91
|
}
|
|
93
92
|
}
|
|
@@ -147,13 +146,13 @@ __decorate([
|
|
|
147
146
|
property({ type: Boolean })
|
|
148
147
|
], FtButton.prototype, "round", void 0);
|
|
149
148
|
__decorate([
|
|
150
|
-
property(
|
|
149
|
+
property()
|
|
151
150
|
], FtButton.prototype, "label", void 0);
|
|
152
151
|
__decorate([
|
|
153
|
-
property(
|
|
152
|
+
property()
|
|
154
153
|
], FtButton.prototype, "icon", void 0);
|
|
155
154
|
__decorate([
|
|
156
|
-
property(
|
|
155
|
+
property()
|
|
157
156
|
], FtButton.prototype, "iconVariant", void 0);
|
|
158
157
|
__decorate([
|
|
159
158
|
property({ type: Boolean })
|
|
@@ -162,7 +161,7 @@ __decorate([
|
|
|
162
161
|
property({ type: Boolean })
|
|
163
162
|
], FtButton.prototype, "loading", void 0);
|
|
164
163
|
__decorate([
|
|
165
|
-
property(
|
|
164
|
+
property()
|
|
166
165
|
], FtButton.prototype, "tooltipPosition", void 0);
|
|
167
166
|
__decorate([
|
|
168
167
|
property({ type: Boolean })
|
|
@@ -176,4 +175,4 @@ __decorate([
|
|
|
176
175
|
__decorate([
|
|
177
176
|
query(".ft-button--label slot")
|
|
178
177
|
], FtButton.prototype, "slottedContent", void 0);
|
|
179
|
-
|
|
178
|
+
export { FtButton };
|