@jetbrains/ring-ui 5.0.150 → 5.0.151

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.
@@ -442,7 +442,7 @@ export default class Select extends Component {
442
442
  }
443
443
  const shownData = this.getListItems(this.filterValue());
444
444
  this.setState({
445
- showPopup: !!shownData.length || !this.props.allowAny,
445
+ showPopup: true,
446
446
  shownData
447
447
  });
448
448
  }
@@ -31,7 +31,7 @@ export interface TagsInputProps {
31
31
  tags?: readonly TagType[] | null | undefined;
32
32
  loadingMessage?: string | undefined;
33
33
  notFoundMessage?: string | undefined;
34
- hint?: string | undefined;
34
+ hint?: ReactNode | null | undefined;
35
35
  size: Size;
36
36
  height?: ControlsHeight | undefined;
37
37
  label?: ReactNode;
@@ -74,7 +74,7 @@ export default class TagsInput extends PureComponent<TagsInputProps, TagsInputSt
74
74
  label: PropTypes.Requireable<PropTypes.ReactNodeLike>;
75
75
  loadingMessage: PropTypes.Requireable<string>;
76
76
  notFoundMessage: PropTypes.Requireable<string>;
77
- hint: PropTypes.Requireable<string>;
77
+ hint: PropTypes.Requireable<PropTypes.ReactNodeLike>;
78
78
  allowAddNewTags: PropTypes.Requireable<boolean>;
79
79
  };
80
80
  static defaultProps: {
@@ -44,7 +44,7 @@ export default class TagsInput extends PureComponent {
44
44
  label: PropTypes.node,
45
45
  loadingMessage: PropTypes.string,
46
46
  notFoundMessage: PropTypes.string,
47
- hint: PropTypes.string,
47
+ hint: PropTypes.node,
48
48
  allowAddNewTags: PropTypes.bool
49
49
  };
50
50
  static defaultProps = {
@@ -569,7 +569,7 @@ class Select extends Component {
569
569
  }
570
570
  const shownData = this.getListItems(this.filterValue());
571
571
  this.setState({
572
- showPopup: !!shownData.length || !this.props.allowAny,
572
+ showPopup: true,
573
573
  shownData
574
574
  });
575
575
  }
@@ -31,7 +31,7 @@ export interface TagsInputProps {
31
31
  tags?: readonly TagType[] | null | undefined;
32
32
  loadingMessage?: string | undefined;
33
33
  notFoundMessage?: string | undefined;
34
- hint?: string | undefined;
34
+ hint?: ReactNode | null | undefined;
35
35
  size: Size;
36
36
  height?: ControlsHeight | undefined;
37
37
  label?: ReactNode;
@@ -74,7 +74,7 @@ export default class TagsInput extends PureComponent<TagsInputProps, TagsInputSt
74
74
  label: PropTypes.Requireable<PropTypes.ReactNodeLike>;
75
75
  loadingMessage: PropTypes.Requireable<string>;
76
76
  notFoundMessage: PropTypes.Requireable<string>;
77
- hint: PropTypes.Requireable<string>;
77
+ hint: PropTypes.Requireable<PropTypes.ReactNodeLike>;
78
78
  allowAddNewTags: PropTypes.Requireable<boolean>;
79
79
  };
80
80
  static defaultProps: {
@@ -117,7 +117,7 @@ class TagsInput extends PureComponent {
117
117
  label: PropTypes.node,
118
118
  loadingMessage: PropTypes.string,
119
119
  notFoundMessage: PropTypes.string,
120
- hint: PropTypes.string,
120
+ hint: PropTypes.node,
121
121
  allowAddNewTags: PropTypes.bool
122
122
  };
123
123
  static defaultProps = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jetbrains/ring-ui",
3
- "version": "5.0.150",
3
+ "version": "5.0.151",
4
4
  "description": "JetBrains UI library",
5
5
  "author": "JetBrains",
6
6
  "license": "Apache-2.0",
@@ -162,7 +162,7 @@
162
162
  "react-test-renderer": "^18.2.0",
163
163
  "regenerator-runtime": "^0.13.11",
164
164
  "rimraf": "^5.0.1",
165
- "rollup": "^3.26.1",
165
+ "rollup": "^3.26.2",
166
166
  "rollup-plugin-clear": "^2.0.7",
167
167
  "rollup-plugin-styles": "^4.0.0",
168
168
  "sinon": "^15.2.0",