@jetbrains/ring-ui 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.
@@ -799,9 +799,13 @@ export default class Select extends Component {
799
799
  [styles[`size${this.props.size}`]]: this.props.type !== Type.INLINE,
800
800
  [styles.disabled]: this.props.disabled
801
801
  });
802
- const icons = this._getIcons();
803
- const style = getStyle(icons.length);
804
- const iconsNode = <div className={styles.icons}>{icons}</div>;
802
+ let style;
803
+ let iconsNode;
804
+ if (this.props.type === Type.INPUT || this.props.type === Type.BUTTON) {
805
+ const icons = this._getIcons();
806
+ style = getStyle(icons.length);
807
+ iconsNode = <div className={styles.icons}>{icons}</div>;
808
+ }
805
809
  const ariaProps = this.state.showPopup
806
810
  ? {
807
811
  'aria-owns': this.listId,
@@ -823,7 +827,7 @@ export default class Select extends Component {
823
827
  ...this.getShortcutsMap(),
824
828
  ...this._popup?.list?.shortcutsMap
825
829
  })
826
- : undefined} icon={this.props.filterIcon} afterInput={this.props.type === Type.INPUT && iconsNode}/>
830
+ : undefined} icon={this.props.filterIcon} afterInput={iconsNode}/>
827
831
  {this._renderPopup()}
828
832
  </div>
829
833
  {this.props.error && (<div className={classNames(inputStyles.errorText, inputStyles[`size${this.props.size}`])}>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jetbrains/ring-ui",
3
- "version": "6.0.42",
3
+ "version": "6.0.43",
4
4
  "description": "JetBrains UI library",
5
5
  "author": "JetBrains",
6
6
  "license": "Apache-2.0",
@@ -88,16 +88,16 @@
88
88
  "@rollup/plugin-json": "^6.1.0",
89
89
  "@rollup/plugin-node-resolve": "^15.2.3",
90
90
  "@rollup/plugin-replace": "^5.0.7",
91
- "@storybook/addon-a11y": "8.1.11",
92
- "@storybook/addon-docs": "8.1.11",
93
- "@storybook/addon-essentials": "8.1.11",
94
- "@storybook/components": "8.1.11",
95
- "@storybook/manager-api": "8.1.11",
96
- "@storybook/preview-api": "8.1.11",
97
- "@storybook/react": "8.1.11",
98
- "@storybook/react-webpack5": "8.1.11",
91
+ "@storybook/addon-a11y": "8.2.0",
92
+ "@storybook/addon-docs": "8.2.0",
93
+ "@storybook/addon-essentials": "8.2.0",
94
+ "@storybook/components": "8.2.0",
95
+ "@storybook/manager-api": "8.2.0",
96
+ "@storybook/preview-api": "8.2.0",
97
+ "@storybook/react": "8.2.0",
98
+ "@storybook/react-webpack5": "8.2.0",
99
99
  "@storybook/test-runner": "^0.19.0",
100
- "@storybook/theming": "8.1.11",
100
+ "@storybook/theming": "8.2.0",
101
101
  "@testing-library/dom": "^10.3.1",
102
102
  "@testing-library/react": "^16.0.0",
103
103
  "@testing-library/user-event": "^14.5.2",
@@ -112,14 +112,14 @@
112
112
  "@types/sinon": "^17.0.3",
113
113
  "@types/sinon-chai": "^3.2.12",
114
114
  "@types/webpack-env": "^1.18.5",
115
- "@typescript-eslint/eslint-plugin": "^7.15.0",
116
- "@typescript-eslint/parser": "^7.15.0",
115
+ "@typescript-eslint/eslint-plugin": "^7.16.0",
116
+ "@typescript-eslint/parser": "^7.16.0",
117
117
  "@vitejs/plugin-react": "^4.3.1",
118
118
  "@wojtekmaj/enzyme-adapter-react-17": "^0.8.0",
119
119
  "acorn": "^8.12.1",
120
120
  "axe-playwright": "^2.0.1",
121
121
  "babel-plugin-require-context-hook": "^1.0.0",
122
- "caniuse-lite": "^1.0.30001640",
122
+ "caniuse-lite": "^1.0.30001641",
123
123
  "chai": "^5.1.1",
124
124
  "chai-as-promised": "^8.0.0",
125
125
  "chai-dom": "^1.10.0",
@@ -137,7 +137,7 @@
137
137
  "eslint-plugin-react-hooks": "^4.6.2",
138
138
  "eslint-plugin-storybook": "^0.8.0",
139
139
  "events": "^3.3.0",
140
- "glob": "^10.4.3",
140
+ "glob": "^11.0.0",
141
141
  "html-webpack-plugin": "^5.6.0",
142
142
  "http-server": "^14.1.1",
143
143
  "husky": "^9.0.11",
@@ -155,21 +155,21 @@
155
155
  "react-dom": "^18.3.1",
156
156
  "react-test-renderer": "^18.3.1",
157
157
  "regenerator-runtime": "^0.14.1",
158
- "rimraf": "^5.0.8",
159
- "rollup": "^4.18.0",
158
+ "rimraf": "^6.0.0",
159
+ "rollup": "^4.18.1",
160
160
  "rollup-plugin-clear": "^2.0.7",
161
161
  "rollup-plugin-styles": "^4.0.0",
162
162
  "sinon": "^18.0.0",
163
163
  "sinon-chai": "^3.7.0",
164
164
  "storage-mock": "^2.1.0",
165
- "storybook": "8.1.11",
165
+ "storybook": "8.2.0",
166
166
  "storybook-addon-themes": "^6.1.0",
167
167
  "stylelint": "^16.6.1",
168
168
  "svg-inline-loader": "^0.8.2",
169
169
  "teamcity-service-messages": "^0.1.14",
170
170
  "terser-webpack-plugin": "^5.3.10",
171
171
  "typescript": "~5.5.3",
172
- "vitest": "^1.6.0",
172
+ "vitest": "^2.0.1",
173
173
  "vitest-teamcity-reporter": "^0.3.0",
174
174
  "wallaby-webpack": "^3.9.16",
175
175
  "webpack": "^5.92.1",
@@ -210,7 +210,7 @@
210
210
  "@ungap/url-search-params": "^0.2.2",
211
211
  "babel-loader": "9.1.3",
212
212
  "babel-plugin-transform-define": "^2.1.4",
213
- "browserslist": "^4.23.1",
213
+ "browserslist": "^4.23.2",
214
214
  "change-case": "^4.1.1",
215
215
  "classnames": "^2.5.1",
216
216
  "combokeys": "^3.0.1",