@jetbrains/ring-ui 7.0.41 → 7.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.
@@ -278,7 +278,7 @@ export default class Select extends Component {
278
278
  shortcutsEnabled: false,
279
279
  popupShortcuts: false,
280
280
  showPopup: this.props.showPopup,
281
- prevData: this.props.data,
281
+ prevData: [],
282
282
  prevSelected: null,
283
283
  prevMultiple: this.props.multiple,
284
284
  multipleMap: {},
@@ -792,15 +792,13 @@ export default class Select extends Component {
792
792
  style = getStyle(icons.length);
793
793
  iconsNode = _jsx("div", { className: styles.icons, children: icons });
794
794
  }
795
- const ariaProps = this.state.showPopup
796
- ? {
797
- 'aria-owns': this.listId,
798
- 'aria-activedescendant': activeItemId,
799
- 'aria-label': this.props.label ?? undefined,
800
- }
801
- : {
802
- 'aria-label': this.props.label ?? undefined,
803
- };
795
+ const ariaProps = {
796
+ role: 'combobox',
797
+ 'aria-expanded': this.state.showPopup,
798
+ 'aria-controls': this.listId,
799
+ 'aria-activedescendant': activeItemId,
800
+ 'aria-label': this.props.label ?? this._getPlaceholder() ?? undefined,
801
+ };
804
802
  switch (this.props.type) {
805
803
  case Type.INPUT_WITHOUT_CONTROLS:
806
804
  case Type.INPUT:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jetbrains/ring-ui",
3
- "version": "7.0.41",
3
+ "version": "7.0.43",
4
4
  "description": "JetBrains UI library",
5
5
  "author": {
6
6
  "name": "JetBrains"
@@ -15,7 +15,17 @@
15
15
  "jslint-xml.js",
16
16
  "typings.d.ts"
17
17
  ],
18
- "main": "src/index.js",
18
+ "exports": {
19
+ "./*.js": "./*.js",
20
+ "./*.css": "./*.css",
21
+ "./*.d.ts": "./*.d.ts",
22
+ "./*.svg": "./*.svg",
23
+ "./*.gif": "./*.gif",
24
+ "./*.json": "./*.json",
25
+ "./*.md": "./*.md",
26
+ "./components/icon": "./components/icon/index.js",
27
+ "./*": "./*.js"
28
+ },
19
29
  "workspaces": [
20
30
  "packages/*"
21
31
  ],
@@ -122,12 +132,12 @@
122
132
  "@types/chai-dom": "1.11.3",
123
133
  "@types/eslint__js": "^8.42.3",
124
134
  "@types/markdown-it": "^14.1.2",
125
- "@types/react": "^19.1.0",
135
+ "@types/react": "^19.1.2",
126
136
  "@types/react-dom": "^19.1.1",
127
137
  "@types/sinon": "^17.0.4",
128
138
  "@types/sinon-chai": "^4.0.0",
129
139
  "@types/webpack-env": "^1.18.8",
130
- "@vitejs/plugin-react": "^4.3.4",
140
+ "@vitejs/plugin-react": "^4.4.0",
131
141
  "@vitest/eslint-plugin": "^1.1.42",
132
142
  "acorn": "^8.14.1",
133
143
  "axe-playwright": "^2.1.0",
@@ -182,7 +192,7 @@
182
192
  "teamcity-service-messages": "^0.1.14",
183
193
  "terser-webpack-plugin": "^5.3.14",
184
194
  "typescript": "~5.8.3",
185
- "typescript-eslint": "^8.29.1",
195
+ "typescript-eslint": "^8.30.1",
186
196
  "vitest": "^3.1.1",
187
197
  "vitest-teamcity-reporter": "^0.3.1",
188
198
  "wallaby-webpack": "^3.9.16",