@jetbrains/ring-ui 7.0.100 → 7.0.101
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.
|
@@ -228,7 +228,7 @@ export default class TagsInput extends PureComponent {
|
|
|
228
228
|
};
|
|
229
229
|
render() {
|
|
230
230
|
const { focused, tags, activeIndex } = this.state;
|
|
231
|
-
const { disabled, canNotBeEmpty, allowAddNewTags, filter, size, labelType, height = typeof this.context === 'function' ? this.context() : this.context, label, } = this.props;
|
|
231
|
+
const { disabled, canNotBeEmpty, allowAddNewTags, filter, size, labelType, height = typeof this.context === 'function' ? this.context() : this.context, label, error, } = this.props;
|
|
232
232
|
const classes = classNames(styles.tagsInput, size !== Size.AUTO && [inputStyles[`size${size}`]], [inputStyles[`height${height}`]], {
|
|
233
233
|
[styles.tagsInputDisabled]: disabled,
|
|
234
234
|
[styles.tagsInputFocused]: focused,
|
|
@@ -240,8 +240,8 @@ export default class TagsInput extends PureComponent {
|
|
|
240
240
|
{label}
|
|
241
241
|
</ControlLabel>)}
|
|
242
242
|
|
|
243
|
-
<TagsList tags={tags} activeIndex={activeIndex} disabled={disabled} canNotBeEmpty={canNotBeEmpty} handleRemove={this.handleRemove} className={styles.tagsList} handleClick={this.handleClick} customTagComponent={this.props.customTagComponent}>
|
|
244
|
-
<Select id={this.id} ref={this.selectRef} size={Select.Size.AUTO} type={Select.Type.INPUT_WITHOUT_CONTROLS} inputPlaceholder={this.props.placeholder} data={this.state.suggestions} className={classNames(styles.tagsSelect)} onSelect={this.addTag} onFocus={this._focusHandler} onBlur={this._blurHandler} renderOptimization={this.props.renderOptimization} add={allowAddNewTags ? { prefix: 'Add new tag' } : undefined} onAdd={allowAddNewTags ? this.handleTagCreation : undefined} filter={filter} maxHeight={this.props.maxPopupHeight} minWidth={this.props.minPopupWidth} top={POPUP_VERTICAL_SHIFT} loading={this.state.loading} onFilter={this.loadSuggestions} onBeforeOpen={this.loadSuggestions} onKeyDown={this.handleKeyDown} disabled={this.props.disabled} loadingMessage={this.props.loadingMessage} notFoundMessage={this.props.notFoundMessage} hint={this.props.hint}/>
|
|
243
|
+
<TagsList tags={tags} activeIndex={activeIndex} disabled={disabled} canNotBeEmpty={canNotBeEmpty} handleRemove={this.handleRemove} className={classNames(styles.tagsList, error != null && styles.error)} handleClick={this.handleClick} customTagComponent={this.props.customTagComponent}>
|
|
244
|
+
<Select id={this.id} ref={this.selectRef} size={Select.Size.AUTO} type={Select.Type.INPUT_WITHOUT_CONTROLS} inputPlaceholder={this.props.placeholder} data={this.state.suggestions} className={classNames(styles.tagsSelect)} onSelect={this.addTag} onFocus={this._focusHandler} onBlur={this._blurHandler} renderOptimization={this.props.renderOptimization} add={allowAddNewTags ? { prefix: 'Add new tag' } : undefined} onAdd={allowAddNewTags ? this.handleTagCreation : undefined} filter={filter} maxHeight={this.props.maxPopupHeight} minWidth={this.props.minPopupWidth} top={POPUP_VERTICAL_SHIFT} loading={this.state.loading} onFilter={this.loadSuggestions} onBeforeOpen={this.loadSuggestions} onKeyDown={this.handleKeyDown} disabled={this.props.disabled} loadingMessage={this.props.loadingMessage} notFoundMessage={this.props.notFoundMessage} hint={this.props.hint} error={error}/>
|
|
245
245
|
</TagsList>
|
|
246
246
|
</div>);
|
|
247
247
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jetbrains/ring-ui",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.101",
|
|
4
4
|
"description": "JetBrains UI library",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "JetBrains"
|
|
@@ -103,8 +103,8 @@
|
|
|
103
103
|
"@babel/eslint-parser": "^7.28.6",
|
|
104
104
|
"@csstools/css-parser-algorithms": "^4.0.0",
|
|
105
105
|
"@csstools/stylelint-no-at-nest-rule": "^5.0.0",
|
|
106
|
-
"@eslint/compat": "^2.0.
|
|
107
|
-
"@eslint/eslintrc": "^3.3.
|
|
106
|
+
"@eslint/compat": "^2.0.3",
|
|
107
|
+
"@eslint/eslintrc": "^3.3.5",
|
|
108
108
|
"@eslint/js": "^10.0.1",
|
|
109
109
|
"@figma/code-connect": "^1.4.1",
|
|
110
110
|
"@jetbrains/eslint-config": "^6.0.5",
|
|
@@ -113,15 +113,15 @@
|
|
|
113
113
|
"@jetbrains/stylelint-config": "^4.0.2",
|
|
114
114
|
"@jetbrains/typescript-plugin-css-modules": "^5.3.1",
|
|
115
115
|
"@primer/octicons": "^19.22.0",
|
|
116
|
-
"@rollup/plugin-babel": "^
|
|
116
|
+
"@rollup/plugin-babel": "^7.0.0",
|
|
117
117
|
"@rollup/plugin-json": "^6.1.0",
|
|
118
118
|
"@rollup/plugin-node-resolve": "^16.0.3",
|
|
119
119
|
"@rollup/plugin-replace": "^6.0.3",
|
|
120
|
-
"@storybook/addon-a11y": "10.2.
|
|
121
|
-
"@storybook/addon-docs": "^10.2.
|
|
122
|
-
"@storybook/addon-themes": "^10.2.
|
|
120
|
+
"@storybook/addon-a11y": "10.2.16",
|
|
121
|
+
"@storybook/addon-docs": "^10.2.16",
|
|
122
|
+
"@storybook/addon-themes": "^10.2.16",
|
|
123
123
|
"@storybook/csf": "^0.1.13",
|
|
124
|
-
"@storybook/react-webpack5": "10.2.
|
|
124
|
+
"@storybook/react-webpack5": "10.2.16",
|
|
125
125
|
"@storybook/test-runner": "^0.24.2",
|
|
126
126
|
"@testing-library/dom": "^10.4.1",
|
|
127
127
|
"@testing-library/react": "^16.3.2",
|
|
@@ -136,7 +136,7 @@
|
|
|
136
136
|
"@vitest/eslint-plugin": "^1.6.9",
|
|
137
137
|
"acorn": "^8.16.0",
|
|
138
138
|
"babel-plugin-require-context-hook": "^1.0.0",
|
|
139
|
-
"caniuse-lite": "^1.0.
|
|
139
|
+
"caniuse-lite": "^1.0.30001777",
|
|
140
140
|
"chai-as-promised": "^8.0.2",
|
|
141
141
|
"chai-dom": "^1.12.1",
|
|
142
142
|
"cheerio": "^1.2.0",
|
|
@@ -154,7 +154,7 @@
|
|
|
154
154
|
"eslint-plugin-prettier": "^5.5.5",
|
|
155
155
|
"eslint-plugin-react": "^7.37.5",
|
|
156
156
|
"eslint-plugin-react-hooks": "^7.0.1",
|
|
157
|
-
"eslint-plugin-storybook": "^10.2.
|
|
157
|
+
"eslint-plugin-storybook": "^10.2.16",
|
|
158
158
|
"eslint-plugin-unicorn": "^63.0.0",
|
|
159
159
|
"events": "^3.3.0",
|
|
160
160
|
"glob": "^13.0.6",
|
|
@@ -166,7 +166,7 @@
|
|
|
166
166
|
"jest": "~30.2.0",
|
|
167
167
|
"jest-environment-jsdom": "^30.2.0",
|
|
168
168
|
"jest-teamcity": "^1.12.0",
|
|
169
|
-
"lint-staged": "^16.3.
|
|
169
|
+
"lint-staged": "^16.3.2",
|
|
170
170
|
"markdown-it": "^14.1.1",
|
|
171
171
|
"merge-options": "^3.0.4",
|
|
172
172
|
"pinst": "^3.0.0",
|
|
@@ -179,18 +179,18 @@
|
|
|
179
179
|
"rollup": "^4.59.0",
|
|
180
180
|
"rollup-plugin-clear": "^2.0.7",
|
|
181
181
|
"storage-mock": "^2.1.0",
|
|
182
|
-
"storybook": "10.2.
|
|
182
|
+
"storybook": "10.2.16",
|
|
183
183
|
"stylelint": "^17.4.0",
|
|
184
184
|
"stylelint-config-sass-guidelines": "^13.0.0",
|
|
185
185
|
"svg-inline-loader": "^0.8.2",
|
|
186
186
|
"teamcity-service-messages": "^0.1.14",
|
|
187
|
-
"terser-webpack-plugin": "^5.3.
|
|
187
|
+
"terser-webpack-plugin": "^5.3.17",
|
|
188
188
|
"typed-css-modules": "^0.9.1",
|
|
189
189
|
"typescript": "~5.9.3",
|
|
190
190
|
"typescript-eslint": "^8.56.1",
|
|
191
191
|
"vitest": "^4.0.18",
|
|
192
192
|
"vitest-teamcity-reporter": "^0.4.1",
|
|
193
|
-
"webpack": "^5.105.
|
|
193
|
+
"webpack": "^5.105.4",
|
|
194
194
|
"webpack-cli": "^6.0.1",
|
|
195
195
|
"xmlappend": "^1.0.4"
|
|
196
196
|
},
|
|
@@ -223,7 +223,7 @@
|
|
|
223
223
|
"@types/element-resize-detector": "^1.1.6",
|
|
224
224
|
"@types/react-virtualized": "9.22.3",
|
|
225
225
|
"@types/util-deprecate": "^1.0.4",
|
|
226
|
-
"babel-loader": "10.
|
|
226
|
+
"babel-loader": "10.1.0",
|
|
227
227
|
"babel-plugin-react-compiler": "^1.0.0",
|
|
228
228
|
"babel-plugin-transform-define": "^2.1.4",
|
|
229
229
|
"browserslist": "^4.28.1",
|
|
@@ -241,7 +241,7 @@
|
|
|
241
241
|
"highlight.js": "^10.7.2",
|
|
242
242
|
"just-debounce-it": "^3.2.0",
|
|
243
243
|
"memoize-one": "^6.0.0",
|
|
244
|
-
"postcss": "^8.5.
|
|
244
|
+
"postcss": "^8.5.8",
|
|
245
245
|
"postcss-calc": "^10.1.1",
|
|
246
246
|
"postcss-flexbugs-fixes": "^5.0.2",
|
|
247
247
|
"postcss-font-family-system-ui": "^5.0.0",
|