@fluid-topics/ft-button 1.1.69 → 1.1.71
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-base-button.js +6 -5
- package/build/ft-button.light.js +265 -255
- package/build/ft-button.min.js +454 -392
- package/build/ft-button.styles.js +5 -6
- package/package.json +8 -8
package/build/ft-base-button.js
CHANGED
|
@@ -10,7 +10,7 @@ import { FtTooltip } from "@fluid-topics/ft-tooltip";
|
|
|
10
10
|
import { FtTypography } from "@fluid-topics/ft-typography";
|
|
11
11
|
import { FtIcon } from "@fluid-topics/ft-icon";
|
|
12
12
|
import { FtLoader } from "@fluid-topics/ft-loader";
|
|
13
|
-
import { html
|
|
13
|
+
import { html } from "lit";
|
|
14
14
|
import { classMap } from "lit/directives/class-map.js";
|
|
15
15
|
import { property, query } from "lit/decorators.js";
|
|
16
16
|
class FtBaseButton extends toFtFormComponent(FtLitElement, "button") {
|
|
@@ -73,10 +73,11 @@ class FtBaseButton extends toFtFormComponent(FtLitElement, "button") {
|
|
|
73
73
|
<ft-loader part="loader icon"></ft-loader> `;
|
|
74
74
|
}
|
|
75
75
|
else {
|
|
76
|
-
return this.icon
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
76
|
+
return this.icon ? html `
|
|
77
|
+
<ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon>
|
|
78
|
+
` : html `
|
|
79
|
+
<slot part="icon" name="icon"></slot>
|
|
80
|
+
`;
|
|
80
81
|
}
|
|
81
82
|
}
|
|
82
83
|
focus() {
|