@jetbrains/ring-ui 6.0.20 → 6.0.21
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/list/list.js
CHANGED
|
@@ -480,7 +480,7 @@ export default class List extends Component {
|
|
|
480
480
|
default:
|
|
481
481
|
throw new Error(`Unknown menu element type: ${itemProps.rgItemType}`);
|
|
482
482
|
}
|
|
483
|
-
el = <ItemComponent {...itemProps}/>;
|
|
483
|
+
el = <ItemComponent {...itemProps} key={itemProps.key}/>;
|
|
484
484
|
}
|
|
485
485
|
return parent
|
|
486
486
|
? (<CellMeasurer cache={this._cache} key={itemKey} parent={parent} rowIndex={index} columnIndex={0}>
|
|
@@ -151,7 +151,7 @@ export class Table extends PureComponent {
|
|
|
151
151
|
return null;
|
|
152
152
|
}
|
|
153
153
|
const { ref, ...restProps } = props;
|
|
154
|
-
const row = (<Row innerRef={ref}
|
|
154
|
+
const row = (<Row innerRef={ref} level={getItemLevel(value)} item={value} showFocus={selection.isFocused(value)} autofocus={selection.isFocused(value)} focused={focused && selection.isFocused(value)} selectable={selectable && isItemSelectable(value)} selected={selectable && selection.isSelected(value)} onFocus={this.onRowFocus} onSelect={this.onRowSelect} onDoubleClick={onItemDoubleClick} onClick={onItemClick} collapsible={isItemCollapsible(value)} parentCollapsible={isParentCollapsible(value)} collapsed={isItemCollapsed(value)} onCollapse={onItemCollapse} onExpand={onItemExpand} showDisabledSelection={isDisabledSelectionVisible(value)} checkboxTooltip={getCheckboxTooltip(value)} className={classNames(getItemClassName(value), { [style.draggingRow]: isDragged })} metaColumnClassName={getMetaColumnClassName(value)} draggable={draggable} alwaysShowDragHandle={alwaysShowDragHandle} dragHandleTitle={dragHandleTitle} columns={columns} data-test={getItemDataTest(value)} {...restProps} key={restProps.key ?? getItemKey(value)}/>);
|
|
155
155
|
return isDragged
|
|
156
156
|
? (<table style={{ ...props.style }} className={style.draggingTable}>
|
|
157
157
|
<tbody>{row}</tbody>
|
|
@@ -31,7 +31,7 @@ export default class TagsList extends Component {
|
|
|
31
31
|
const readOnly = this.props.disabled || tag.readOnly ||
|
|
32
32
|
(this.props.canNotBeEmpty && this.props.tags.length === 1);
|
|
33
33
|
const { tagClassName } = this.props;
|
|
34
|
-
return (<TagComponent {...tag} readOnly={readOnly} disabled={this.props.disabled || tag.disabled} focused={focusTag} onClick={this.props.handleClick(tag)} onRemove={this.props.handleRemove(tag)} className={tagClassName}>{tag.label}</TagComponent>);
|
|
34
|
+
return (<TagComponent {...tag} key={tag.key} readOnly={readOnly} disabled={this.props.disabled || tag.disabled} focused={focusTag} onClick={this.props.handleClick(tag)} onRemove={this.props.handleRemove(tag)} className={tagClassName}>{tag.label}</TagComponent>);
|
|
35
35
|
}
|
|
36
36
|
render() {
|
|
37
37
|
const { children, className, customTagComponent, canNotBeEmpty, handleClick, tagClassName, handleRemove, tags, activeIndex, ...props } = this.props;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jetbrains/ring-ui",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.21",
|
|
4
4
|
"description": "JetBrains UI library",
|
|
5
5
|
"author": "JetBrains",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -108,7 +108,7 @@
|
|
|
108
108
|
"@types/chai-enzyme": "^0.6.13",
|
|
109
109
|
"@types/enzyme": "^3.10.18",
|
|
110
110
|
"@types/markdown-it": "^14.0.1",
|
|
111
|
-
"@types/react": "^18.
|
|
111
|
+
"@types/react": "^18.3.1",
|
|
112
112
|
"@types/react-dom": "^18.2.25",
|
|
113
113
|
"@types/sinon": "^17.0.3",
|
|
114
114
|
"@types/sinon-chai": "^3.2.12",
|
|
@@ -156,14 +156,14 @@
|
|
|
156
156
|
"mocha": "^10.4.0",
|
|
157
157
|
"pinst": "^3.0.0",
|
|
158
158
|
"prettier": "^3.2.5",
|
|
159
|
-
"puppeteer": "^22.7.
|
|
159
|
+
"puppeteer": "^22.7.1",
|
|
160
160
|
"raw-loader": "^4.0.2",
|
|
161
|
-
"react": "^18.
|
|
161
|
+
"react": "^18.3.1",
|
|
162
162
|
"react-dom": "^18.2.0",
|
|
163
163
|
"react-test-renderer": "^18.2.0",
|
|
164
164
|
"regenerator-runtime": "^0.14.1",
|
|
165
165
|
"rimraf": "^5.0.5",
|
|
166
|
-
"rollup": "^4.
|
|
166
|
+
"rollup": "^4.17.1",
|
|
167
167
|
"rollup-plugin-clear": "^2.0.7",
|
|
168
168
|
"rollup-plugin-styles": "^4.0.0",
|
|
169
169
|
"sinon": "^17.0.1",
|
|
@@ -226,7 +226,7 @@
|
|
|
226
226
|
"deep-equal": "^2.2.3",
|
|
227
227
|
"element-resize-detector": "^1.2.4",
|
|
228
228
|
"es6-error": "^4.1.1",
|
|
229
|
-
"eslint-plugin-react-hooks": "^4.6.
|
|
229
|
+
"eslint-plugin-react-hooks": "^4.6.2",
|
|
230
230
|
"fastdom": "^1.0.12",
|
|
231
231
|
"file-loader": "^6.2.0",
|
|
232
232
|
"focus-trap": "^7.5.4",
|
|
@@ -234,7 +234,7 @@
|
|
|
234
234
|
"just-debounce-it": "^3.2.0",
|
|
235
235
|
"memoize-one": "^6.0.0",
|
|
236
236
|
"postcss": "^8.4.38",
|
|
237
|
-
"postcss-calc": "^
|
|
237
|
+
"postcss-calc": "^10.0.0",
|
|
238
238
|
"postcss-flexbugs-fixes": "^5.0.2",
|
|
239
239
|
"postcss-font-family-system-ui": "^5.0.0",
|
|
240
240
|
"postcss-loader": "^8.1.1",
|