@jetbrains/ring-ui 7.0.13 → 7.0.15
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/button/button.css +12 -14
- package/components/dialog/dialog.js +15 -3
- package/package.json +11 -11
|
@@ -155,6 +155,13 @@
|
|
|
155
155
|
}
|
|
156
156
|
}
|
|
157
157
|
|
|
158
|
+
.active.block {
|
|
159
|
+
--ring-button-background-color: var(--ring-hover-background-color);
|
|
160
|
+
--ring-button-border-color: var(--ring-main-color);
|
|
161
|
+
|
|
162
|
+
transition: none;
|
|
163
|
+
}
|
|
164
|
+
|
|
158
165
|
.danger {
|
|
159
166
|
--ring-button-focus-border-color: var(--ring-button-danger-hover-color);
|
|
160
167
|
|
|
@@ -187,6 +194,11 @@
|
|
|
187
194
|
color: var(--ring-icon-disabled-color);
|
|
188
195
|
}
|
|
189
196
|
}
|
|
197
|
+
|
|
198
|
+
&.active {
|
|
199
|
+
--ring-button-background-color: var(--ring-disabled-selected-background-color);
|
|
200
|
+
--ring-button-border-color: var(--ring-border-selected-disabled-color);
|
|
201
|
+
}
|
|
190
202
|
}
|
|
191
203
|
|
|
192
204
|
.primaryBlock {
|
|
@@ -246,20 +258,6 @@
|
|
|
246
258
|
}
|
|
247
259
|
}
|
|
248
260
|
|
|
249
|
-
.active {
|
|
250
|
-
&.block {
|
|
251
|
-
--ring-button-background-color: var(--ring-hover-background-color);
|
|
252
|
-
--ring-button-border-color: var(--ring-main-color);
|
|
253
|
-
|
|
254
|
-
transition: none;
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
&.disabled {
|
|
258
|
-
--ring-button-background-color: var(--ring-disabled-selected-background-color);
|
|
259
|
-
--ring-button-border-color: var(--ring-border-selected-disabled-color);
|
|
260
|
-
}
|
|
261
|
-
}
|
|
262
|
-
|
|
263
261
|
.iconOnly {
|
|
264
262
|
&.heightS {
|
|
265
263
|
--ring-button-padding-block: calc(var(--ring-unit) * 0.75);
|
|
@@ -9,7 +9,8 @@ import dataTests from '../global/data-tests';
|
|
|
9
9
|
import Shortcuts from '../shortcuts/shortcuts';
|
|
10
10
|
import TabTrap from '../tab-trap/tab-trap';
|
|
11
11
|
import Button from '../button/button';
|
|
12
|
-
import { PopupTarget } from '../popup/popup.target';
|
|
12
|
+
import { PopupTarget, PopupTargetContext } from '../popup/popup.target';
|
|
13
|
+
import { getPopupContainer } from '../popup/popup';
|
|
13
14
|
import { preventerFactory as scrollPreventerFactory } from './dialog__body-scroll-preventer';
|
|
14
15
|
import styles from './dialog.css';
|
|
15
16
|
/**
|
|
@@ -123,7 +124,18 @@ export default class Dialog extends PureComponent {
|
|
|
123
124
|
if (native) {
|
|
124
125
|
return (_jsx("dialog", { className: classNames(styles.nativeDialog, className), ref: this.nativeDialog, children: _jsx(PopupTarget, { id: this.uid, className: styles.popupTarget, children: target => (_jsxs(_Fragment, { children: [content, target] })) }) }));
|
|
125
126
|
}
|
|
126
|
-
return (show &&
|
|
127
|
-
|
|
127
|
+
return (show && (_jsx(PopupTargetContext.Consumer, { children: contextTarget => {
|
|
128
|
+
let targetElement = document.body;
|
|
129
|
+
if (portalTarget instanceof HTMLElement) {
|
|
130
|
+
targetElement = portalTarget;
|
|
131
|
+
}
|
|
132
|
+
else if (contextTarget != null) {
|
|
133
|
+
const container = getPopupContainer(contextTarget);
|
|
134
|
+
if (container != null) {
|
|
135
|
+
targetElement = container;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
return createPortal(_jsx(PopupTarget, { id: this.uid, className: styles.popupTarget, children: target => (_jsxs(TabTrap, { trapDisabled: !trapFocus, "data-test": dataTests('ring-dialog-container', dataTest), ref: this.dialogRef, className: classes, role: "presentation", ...restProps, children: [content, target] })) }), targetElement);
|
|
139
|
+
} })));
|
|
128
140
|
}
|
|
129
141
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jetbrains/ring-ui",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.15",
|
|
4
4
|
"description": "JetBrains UI library",
|
|
5
5
|
"author": "JetBrains",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -77,19 +77,19 @@
|
|
|
77
77
|
},
|
|
78
78
|
"readmeFilename": "README.md",
|
|
79
79
|
"devDependencies": {
|
|
80
|
-
"@babel/cli": "^7.
|
|
80
|
+
"@babel/cli": "^7.26.4",
|
|
81
81
|
"@babel/eslint-parser": "^7.25.9",
|
|
82
82
|
"@babel/plugin-syntax-import-assertions": "^7.26.0",
|
|
83
83
|
"@csstools/css-parser-algorithms": "^3.0.4",
|
|
84
84
|
"@csstools/stylelint-no-at-nest-rule": "^4.0.0",
|
|
85
|
-
"@eslint/compat": "^1.2.
|
|
85
|
+
"@eslint/compat": "^1.2.4",
|
|
86
86
|
"@eslint/eslintrc": "^3.2.0",
|
|
87
87
|
"@eslint/js": "^9.15.0",
|
|
88
88
|
"@jetbrains/eslint-config": "^6.0.4",
|
|
89
89
|
"@jetbrains/logos": "3.0.0-canary.734b213.0",
|
|
90
90
|
"@jetbrains/stylelint-config": "^4.0.2",
|
|
91
91
|
"@jetbrains/rollup-css-plugin": "./packages/rollup-css-plugin",
|
|
92
|
-
"@primer/octicons": "^19.
|
|
92
|
+
"@primer/octicons": "^19.13.0",
|
|
93
93
|
"@rollup/plugin-babel": "^6.0.4",
|
|
94
94
|
"@rollup/plugin-json": "^6.1.0",
|
|
95
95
|
"@rollup/plugin-node-resolve": "^15.3.0",
|
|
@@ -107,7 +107,7 @@
|
|
|
107
107
|
"@storybook/test-runner": "^0.20.1",
|
|
108
108
|
"@storybook/theming": "8.4.7",
|
|
109
109
|
"@testing-library/dom": "^10.4.0",
|
|
110
|
-
"@testing-library/react": "^16.0
|
|
110
|
+
"@testing-library/react": "^16.1.0",
|
|
111
111
|
"@testing-library/user-event": "^14.5.2",
|
|
112
112
|
"@types/chai": "^5.0.1",
|
|
113
113
|
"@types/chai-as-promised": "^8.0.1",
|
|
@@ -122,7 +122,7 @@
|
|
|
122
122
|
"@types/sinon-chai": "^4.0.0",
|
|
123
123
|
"@types/webpack-env": "^1.18.5",
|
|
124
124
|
"@vitejs/plugin-react": "^4.3.4",
|
|
125
|
-
"@vitest/eslint-plugin": "^1.1.
|
|
125
|
+
"@vitest/eslint-plugin": "^1.1.14",
|
|
126
126
|
"@wojtekmaj/enzyme-adapter-react-17": "^0.8.0",
|
|
127
127
|
"acorn": "^8.14.0",
|
|
128
128
|
"axe-playwright": "^2.0.3",
|
|
@@ -144,11 +144,11 @@
|
|
|
144
144
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
145
145
|
"eslint-plugin-prettier": "^5.2.1",
|
|
146
146
|
"eslint-plugin-react": "^7.37.2",
|
|
147
|
-
"eslint-plugin-react-hooks": "^5.
|
|
147
|
+
"eslint-plugin-react-hooks": "^5.1.0",
|
|
148
148
|
"eslint-plugin-storybook": "^0.11.1",
|
|
149
149
|
"events": "^3.3.0",
|
|
150
150
|
"glob": "^11.0.0",
|
|
151
|
-
"globals": "^15.
|
|
151
|
+
"globals": "^15.13.0",
|
|
152
152
|
"html-webpack-plugin": "^5.6.3",
|
|
153
153
|
"http-server": "^14.1.1",
|
|
154
154
|
"husky": "^9.1.7",
|
|
@@ -164,10 +164,10 @@
|
|
|
164
164
|
"raw-loader": "^4.0.2",
|
|
165
165
|
"react": "^18.3.1",
|
|
166
166
|
"react-dom": "^18.3.1",
|
|
167
|
-
"react-test-renderer": "^
|
|
167
|
+
"react-test-renderer": "^19.0.0",
|
|
168
168
|
"regenerator-runtime": "^0.14.1",
|
|
169
169
|
"rimraf": "^6.0.1",
|
|
170
|
-
"rollup": "^4.28.
|
|
170
|
+
"rollup": "^4.28.1",
|
|
171
171
|
"rollup-plugin-clear": "^2.0.7",
|
|
172
172
|
"sinon": "^19.0.2",
|
|
173
173
|
"sinon-chai": "^4.0.0",
|
|
@@ -210,7 +210,7 @@
|
|
|
210
210
|
"@babel/preset-typescript": "^7.26.0",
|
|
211
211
|
"@jetbrains/babel-preset-jetbrains": "^2.4.0",
|
|
212
212
|
"@jetbrains/icons": "^5.4.0",
|
|
213
|
-
"@jetbrains/postcss-require-hover": "^0.1.
|
|
213
|
+
"@jetbrains/postcss-require-hover": "^0.1.3",
|
|
214
214
|
"@types/combokeys": "^2.4.9",
|
|
215
215
|
"@types/element-resize-detector": "^1.1.6",
|
|
216
216
|
"@types/react-virtualized": "9.22.0",
|