@fluid-topics/ft-switch 1.3.16 → 1.3.18

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.
@@ -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=${classMap(classes)}
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()
@@ -426,7 +426,7 @@ Also for action icons.`,r.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
426
426
  color: ${P.selectedTextColor};
427
427
  }
428
428
  `;var tt=function(e,o,a,i){var c=arguments.length,d=c<3?o:i===null?i=Object.getOwnPropertyDescriptor(o,a):i,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(e,o,a,i);else for(var s=e.length-1;s>=0;s--)(l=e[s])&&(d=(c<3?l(d):c>3?l(o,a,d):l(o,a))||d);return c>3&&d&&Object.defineProperty(o,a,d),d},De=class extends CustomEvent{constructor(o){super("option-change-by-user",{detail:o,bubbles:!0,composed:!0})}},Ze=class extends CustomEvent{constructor(o){super("option-change",{detail:o,bubbles:!0,composed:!0})}},I=class extends Mt.FtLitElement{constructor(){super(...arguments),this.value="",this.label="",this.tooltipPosition="bottom",this.selected=!1,this.trailingIcon=!1,this.unselectable=!1,this.isFocused=!1}focus(){this.input.focus()}update(o){super.update(o),o.has("selected")&&this.dispatchEvent(new Ze(this.selected))}render(){let o={"ft-switch-option":!0,"ft-switch-option--trailing-icon":this.trailingIcon,"ft-switch-option--selected":this.selected,"ft-switch-option--focused":this.isFocused};return this.addTooltip(Zt.html`
429
- <label part="label" for="input" class=${(0,ea.classMap)(o)}
429
+ <label part="label" for="input" class="${(0,ea.classMap)(o)}"
430
430
  @click=${this.onChange}>
431
431
  <div class="ft-switch-option--content">
432
432
  <ft-ripple part="ripple" class="ft-switch-option--ripple"></ft-ripple>