@jetbrains/ring-ui 7.0.77 → 7.0.78

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.
@@ -34,6 +34,7 @@ export interface TagProps {
34
34
  outline?: boolean;
35
35
  tagType?: TagType;
36
36
  interactive?: boolean;
37
+ 'data-test'?: string | null;
37
38
  }
38
39
  /**
39
40
  * @name Tag
@@ -5,6 +5,7 @@ import closeIcon from '@jetbrains/icons/close-12px';
5
5
  import Icon from '../icon/icon';
6
6
  import Button from '../button/button';
7
7
  import { ControlsHeight } from '../global/controls-height';
8
+ import dataTests from '../global/data-tests';
8
9
  import styles from './tag.css';
9
10
  export var TagType;
10
11
  (function (TagType) {
@@ -99,13 +100,13 @@ export default class Tag extends PureComponent {
99
100
  [styles.disabled]: this.props.disabled,
100
101
  [styles.withRemove]: !this.props.readOnly && this.props.onRemove,
101
102
  }, this.props.className);
102
- const { backgroundColor, textColor, render } = this.props;
103
+ const { backgroundColor, textColor, render, 'data-test': dataTest } = this.props;
103
104
  return (<span className={classNames(styles.container, this.props.containerClassName, styles[this.props.tagType], {
104
105
  [styles.outline]: this.props.outline,
105
106
  [styles.interactive]: this.props.interactive,
106
107
  })}>
107
108
  {render({
108
- 'data-test': 'ring-tag',
109
+ 'data-test': dataTests('ring-tag', dataTest),
109
110
  className: classes,
110
111
  ref: this.tagRef,
111
112
  onClick: this.props.onClick,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jetbrains/ring-ui",
3
- "version": "7.0.77",
3
+ "version": "7.0.78",
4
4
  "description": "JetBrains UI library",
5
5
  "author": {
6
6
  "name": "JetBrains"
@@ -145,7 +145,7 @@
145
145
  "eslint-plugin-storybook": "^10.0.6",
146
146
  "eslint-plugin-unicorn": "^62.0.0",
147
147
  "events": "^3.3.0",
148
- "glob": "^11.0.3",
148
+ "glob": "^11.1.0",
149
149
  "globals": "^16.5.0",
150
150
  "html-webpack-plugin": "^5.6.4",
151
151
  "http-server": "^14.1.1",