@jetbrains/ring-ui 7.0.76 → 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.
package/components/tag/tag.css
CHANGED
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
:root,
|
|
7
7
|
:host {
|
|
8
8
|
--ring-error-tag-text-color: var(--ring-main-error-hover-color);
|
|
9
|
+
--ring-tag-max-height: 20px;
|
|
9
10
|
}
|
|
10
11
|
|
|
11
12
|
:global(.ring-ui-theme-dark) {
|
|
@@ -13,8 +14,6 @@
|
|
|
13
14
|
}
|
|
14
15
|
|
|
15
16
|
.tag {
|
|
16
|
-
--ring-tag-max-height: 20px;
|
|
17
|
-
|
|
18
17
|
composes: resetButton from '../global/global.css';
|
|
19
18
|
|
|
20
19
|
position: relative;
|
|
@@ -24,7 +23,6 @@
|
|
|
24
23
|
|
|
25
24
|
box-sizing: border-box;
|
|
26
25
|
max-width: 100%;
|
|
27
|
-
height: var(--ring-tag-max-height);
|
|
28
26
|
|
|
29
27
|
padding: 0 var(--ring-unit);
|
|
30
28
|
|
|
@@ -36,7 +34,7 @@
|
|
|
36
34
|
border-radius: var(--ring-border-radius);
|
|
37
35
|
|
|
38
36
|
font-size: 12px;
|
|
39
|
-
|
|
37
|
+
font-weight: normal;
|
|
40
38
|
}
|
|
41
39
|
|
|
42
40
|
|
|
@@ -50,6 +48,7 @@
|
|
|
50
48
|
display: inline-block;
|
|
51
49
|
|
|
52
50
|
max-width: calc(100% - var(--ring-unit) / 2);
|
|
51
|
+
height: var(--ring-tag-max-height);
|
|
53
52
|
|
|
54
53
|
margin-right: calc(var(--ring-unit) / 2);
|
|
55
54
|
|
|
@@ -60,6 +59,8 @@
|
|
|
60
59
|
border-radius: var(--ring-border-radius);
|
|
61
60
|
|
|
62
61
|
background-color: var(--ring-tag-container-background-color);
|
|
62
|
+
|
|
63
|
+
line-height: var(--ring-line-height);
|
|
63
64
|
}
|
|
64
65
|
|
|
65
66
|
.interactive {
|
package/components/tag/tag.d.ts
CHANGED
package/components/tag/tag.js
CHANGED
|
@@ -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.
|
|
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
|
|
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",
|