@fluid-topics/ft-select 1.3.45 → 1.3.46
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-select.js +2 -1
- package/build/ft-select.light.js +147 -129
- package/build/ft-select.min.js +156 -138
- package/package.json +7 -7
package/build/ft-select.js
CHANGED
|
@@ -125,6 +125,7 @@ class FtSelect extends FtLitElement {
|
|
|
125
125
|
`;
|
|
126
126
|
}
|
|
127
127
|
renderOption(option, index) {
|
|
128
|
+
var _a;
|
|
128
129
|
const selected = this.selectedOption === option;
|
|
129
130
|
const classes = {
|
|
130
131
|
"ft-select--option": true,
|
|
@@ -133,7 +134,7 @@ class FtSelect extends FtLitElement {
|
|
|
133
134
|
};
|
|
134
135
|
return html `
|
|
135
136
|
<div class="${classMap(classes)}"
|
|
136
|
-
part="option"
|
|
137
|
+
part="option option-${(_a = option.value) === null || _a === void 0 ? void 0 : _a.replace(/[^\w-]/g, "")}"
|
|
137
138
|
tabindex="0"
|
|
138
139
|
aria-label="${option.label}"
|
|
139
140
|
data-value="${option.value}"
|