@fluid-topics/ft-switch 1.3.17 → 1.3.19
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-switch-option.js +4 -4
- package/build/ft-switch.light.js +14 -14
- package/build/ft-switch.min.js +3 -3
- package/package.json +7 -7
|
@@ -51,7 +51,7 @@ class FtSwitchOption extends FtLitElement {
|
|
|
51
51
|
"ft-switch-option--focused": this.isFocused,
|
|
52
52
|
};
|
|
53
53
|
return this.addTooltip(html `
|
|
54
|
-
<label part="label" for="input" class
|
|
54
|
+
<label part="label" for="input" class="${classMap(classes)}"
|
|
55
55
|
@click=${this.onChange}>
|
|
56
56
|
<div class="ft-switch-option--content">
|
|
57
57
|
<ft-ripple part="ripple" class="ft-switch-option--ripple"></ft-ripple>
|
|
@@ -102,7 +102,7 @@ class FtSwitchOption extends FtLitElement {
|
|
|
102
102
|
}
|
|
103
103
|
get textContent() {
|
|
104
104
|
var _a, _b;
|
|
105
|
-
return (_b = (_a = this.slottedContent) === null || _a === void 0 ? void 0 : _a.assignedNodes().map(n => n.textContent).join("").trim()) !== null && _b !== void 0 ? _b : "";
|
|
105
|
+
return (_b = (_a = this.slottedContent) === null || _a === void 0 ? void 0 : _a.assignedNodes().map((n) => n.textContent).join("").trim()) !== null && _b !== void 0 ? _b : "";
|
|
106
106
|
}
|
|
107
107
|
hasTextContent() {
|
|
108
108
|
return this.textContent.length > 0;
|
|
@@ -115,11 +115,11 @@ FtSwitchOption.elementDefinitions = {
|
|
|
115
115
|
"ft-ripple": FtRipple,
|
|
116
116
|
"ft-typography": FtTypography,
|
|
117
117
|
"ft-tooltip": FtTooltip,
|
|
118
|
-
"ft-icon": FtIcon
|
|
118
|
+
"ft-icon": FtIcon,
|
|
119
119
|
};
|
|
120
120
|
FtSwitchOption.styles = [
|
|
121
121
|
safariEllipsisFix,
|
|
122
|
-
optionStyles
|
|
122
|
+
optionStyles,
|
|
123
123
|
];
|
|
124
124
|
__decorate([
|
|
125
125
|
property()
|