@jetbrains/ring-ui 5.0.82 → 5.0.83

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.
@@ -75,8 +75,6 @@
75
75
 
76
76
  padding: 0 0 0 var(--ring-input-padding-inline);
77
77
 
78
- border-right: 0;
79
-
80
78
  & .actions {
81
79
  padding-right: var(--ring-input-padding-inline);
82
80
  }
@@ -215,6 +213,7 @@
215
213
  color: var(--ring-icon-secondary-color);
216
214
 
217
215
  border: 1px solid var(--ring-borders-color);
216
+ border-right: 0;
218
217
  border-radius: var(--ring-border-radius);
219
218
  border-top-left-radius: 0;
220
219
  border-bottom-left-radius: 0;
@@ -35,6 +35,10 @@
35
35
  --ring-input-padding-start: var(--ring-input-padding-inline);
36
36
  --ring-input-padding-end: var(--ring-input-padding-inline);
37
37
 
38
+ display: flex;
39
+ flex-direction: row;
40
+ flex-wrap: wrap;
41
+
38
42
  width: 100%;
39
43
 
40
44
  margin: 0;
@@ -76,6 +80,17 @@
76
80
  }
77
81
 
78
82
  .tagsSelect {
83
+ flex-grow: 1;
84
+ flex-shrink: 1;
85
+
86
+ min-width: 160px;
87
+
88
+ & .input {
89
+ overflow: hidden;
90
+
91
+ text-overflow: ellipsis;
92
+ }
93
+
79
94
  & .outerContainer {
80
95
  --ring-input-padding-block: 0;
81
96
  }
@@ -141,11 +141,10 @@ export default class TagsInput extends PureComponent {
141
141
  }, this.focusInput);
142
142
  }
143
143
  clickHandler = (event) => {
144
- if (event.target !== this.node) {
144
+ if (event.target !== this.node && event.target.parentElement !== this.node) {
145
145
  return;
146
146
  }
147
- this.loadSuggestions(this.getInputNode()?.value);
148
- this.focusInput();
147
+ this.select?._clickHandler();
149
148
  };
150
149
  filterExistingTags = (suggestions) => {
151
150
  const tagsMap = new Map(this.state.tags.map(tag => [tag.key, tag]));
@@ -7,7 +7,7 @@ import Link from '../link/link.js';
7
7
  import Text from '../text/text.js';
8
8
  import LoaderInline from '../loader-inline/loader-inline.js';
9
9
  import { Button } from '../button/button.js';
10
- import Selection from '../table/selection.js';
10
+ import Selection$1 from '../table/selection.js';
11
11
  import { m as modules_09d014b4, T as Title } from '../_helpers/title.js';
12
12
  import 'focus-visible';
13
13
  import 'classnames';
@@ -202,7 +202,7 @@ Item.propTypes = {
202
202
  onExpand: PropTypes.func,
203
203
  showFocus: PropTypes.bool,
204
204
  onFocus: PropTypes.func.isRequired,
205
- selection: PropTypes.instanceOf(Selection).isRequired,
205
+ selection: PropTypes.instanceOf(Selection$1).isRequired,
206
206
  selectable: PropTypes.bool,
207
207
  selected: PropTypes.bool,
208
208
  onSelect: PropTypes.func.isRequired,