@fluid-topics/ft-select 0.1.18 → 0.2.2
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.inline-styles.js +122 -109
- package/build/ft-select.js +5 -5
- package/build/ft-select.light.js +162 -150
- package/build/ft-select.min.js +126 -113
- package/package.json +7 -7
package/build/ft-select.js
CHANGED
|
@@ -12,7 +12,7 @@ import { designSystemVariables, FtCssVariable, FtLitElement, setVariable } from
|
|
|
12
12
|
import { FtTypography, FtTypographyBody1CssVariables, FtTypographyBody2, FtTypographyCaption } from "@fluid-topics/ft-typography";
|
|
13
13
|
import { FtInputLabel, FtInputLabelCssVariables } from "@fluid-topics/ft-input-label";
|
|
14
14
|
import { FtRipple, FtRippleCssVariables } from "@fluid-topics/ft-ripple";
|
|
15
|
-
import {
|
|
15
|
+
import { FtIcon } from "@fluid-topics/ft-icon";
|
|
16
16
|
export class FtSelectOption extends FtLitElement {
|
|
17
17
|
constructor() {
|
|
18
18
|
super(...arguments);
|
|
@@ -102,7 +102,7 @@ export class FtSelect extends FtLitElement {
|
|
|
102
102
|
<ft-typography variant="body1" class="ft-select--selected-option">
|
|
103
103
|
${(_e = (_d = this.selectedOption) === null || _d === void 0 ? void 0 : _d.label) !== null && _e !== void 0 ? _e : ""}
|
|
104
104
|
</ft-typography>
|
|
105
|
-
<
|
|
105
|
+
<ft-icon variant="material">${optionsDisplayed ? "expand_less" : "expand_more"}</ft-icon>
|
|
106
106
|
</div>
|
|
107
107
|
<div class="ft-select--options"
|
|
108
108
|
part="options"
|
|
@@ -240,7 +240,7 @@ FtSelect.elementDefinitions = {
|
|
|
240
240
|
"ft-input-label": FtInputLabel,
|
|
241
241
|
"ft-typography": FtTypography,
|
|
242
242
|
"ft-ripple": FtRipple,
|
|
243
|
-
"
|
|
243
|
+
"ft-icon": FtIcon,
|
|
244
244
|
};
|
|
245
245
|
// language=CSS
|
|
246
246
|
FtSelect.styles = [
|
|
@@ -298,7 +298,7 @@ FtSelect.styles = [
|
|
|
298
298
|
${setVariable(FtInputLabelCssVariables.verticalSpacing, FtSelectCssVariables.verticalSpacing)};
|
|
299
299
|
}
|
|
300
300
|
|
|
301
|
-
.ft-select:not(.ft-select--disabled):focus-within
|
|
301
|
+
.ft-select:not(.ft-select--disabled):focus-within ft-icon {
|
|
302
302
|
color: ${FtSelectCssVariables.colorPrimary};
|
|
303
303
|
}
|
|
304
304
|
|
|
@@ -318,7 +318,7 @@ FtSelect.styles = [
|
|
|
318
318
|
${setVariable(FtTypographyBody1CssVariables.lineHeight, FtSelectCssVariables.selectedOptionSize)};
|
|
319
319
|
}
|
|
320
320
|
|
|
321
|
-
|
|
321
|
+
ft-icon {
|
|
322
322
|
flex-shrink: 0;
|
|
323
323
|
}
|
|
324
324
|
|