@jetbrains/ring-ui-built 6.0.42 → 6.0.43
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/components/select/select.js +11 -7
- package/package.json +1 -1
@@ -982,12 +982,16 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
982
982
|
[modules_9d0de074["size".concat(this.props.size)]]: this.props.type !== Type.INLINE,
|
983
983
|
[modules_9d0de074.disabled]: this.props.disabled
|
984
984
|
});
|
985
|
-
var
|
986
|
-
var
|
987
|
-
|
988
|
-
|
989
|
-
|
990
|
-
|
985
|
+
var style;
|
986
|
+
var iconsNode;
|
987
|
+
if (this.props.type === Type.INPUT || this.props.type === Type.BUTTON) {
|
988
|
+
var icons = this._getIcons();
|
989
|
+
style = getStyle(icons.length);
|
990
|
+
iconsNode = /*#__PURE__*/jsx("div", {
|
991
|
+
className: modules_9d0de074.icons,
|
992
|
+
children: icons
|
993
|
+
});
|
994
|
+
}
|
991
995
|
var ariaProps = this.state.showPopup ? {
|
992
996
|
'aria-owns': this.listId,
|
993
997
|
'aria-activedescendant': activeItemId,
|
@@ -1029,7 +1033,7 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
1029
1033
|
"data-test": "ring-select__focus",
|
1030
1034
|
enableShortcuts: shortcutsEnabled ? Object.keys(_objectSpread2(_objectSpread2({}, this.getShortcutsMap()), (_this$_popup5 = this._popup) === null || _this$_popup5 === void 0 || (_this$_popup5 = _this$_popup5.list) === null || _this$_popup5 === void 0 ? void 0 : _this$_popup5.shortcutsMap)) : undefined,
|
1031
1035
|
icon: this.props.filterIcon,
|
1032
|
-
afterInput:
|
1036
|
+
afterInput: iconsNode
|
1033
1037
|
})), this._renderPopup()]
|
1034
1038
|
}), this.props.error && /*#__PURE__*/jsx("div", {
|
1035
1039
|
className: classNames(modules_88cfaf40.errorText, modules_88cfaf40["size".concat(this.props.size)]),
|