@jetbrains/ring-ui 7.0.111 → 7.0.113
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.
|
@@ -69,6 +69,14 @@
|
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
71
|
|
|
72
|
+
.contentCloseButtonOutside {
|
|
73
|
+
max-width: calc(100dvw - var(--ring-unit) * 8);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.contentCloseButtonInside {
|
|
77
|
+
max-width: calc(100dvw - var(--ring-unit) * 4);
|
|
78
|
+
}
|
|
79
|
+
|
|
72
80
|
.content.content {
|
|
73
81
|
box-shadow: var(--ring-dialog-shadow);
|
|
74
82
|
}
|
|
@@ -120,6 +120,8 @@ export default class Dialog extends PureComponent {
|
|
|
120
120
|
<div className={styles.innerContainer}>
|
|
121
121
|
<AdaptiveIsland className={classNames(styles.content, contentClassName, {
|
|
122
122
|
[styles.dense]: dense,
|
|
123
|
+
[styles.contentCloseButtonOutside]: !closeButtonInside,
|
|
124
|
+
[styles.contentCloseButtonInside]: closeButtonInside,
|
|
123
125
|
})} data-test='ring-dialog' role='dialog' aria-label={label}>
|
|
124
126
|
{children}
|
|
125
127
|
{showCloseButton && (<Button icon={closeIcon} data-test='ring-dialog-close-button' className={classNames(styles.closeButton, {
|
|
@@ -51,11 +51,11 @@ export const setCSSAnchorPositioning = ({ popup, anchor, uid, minWidth, top, lef
|
|
|
51
51
|
if (calculatedMinWidth !== null) {
|
|
52
52
|
popup.style.minWidth = `${calculatedMinWidth}px`;
|
|
53
53
|
}
|
|
54
|
-
if (top) {
|
|
55
|
-
popup.style.transform = `translateY(${top}px)
|
|
54
|
+
if (top || left) {
|
|
55
|
+
popup.style.transform = [top && `translateY(${top}px)`, left && `translateX(${left}px)`].filter(Boolean).join(' ');
|
|
56
56
|
}
|
|
57
|
-
|
|
58
|
-
popup.style.
|
|
57
|
+
else {
|
|
58
|
+
popup.style.removeProperty('transform');
|
|
59
59
|
}
|
|
60
60
|
// When all directions are BOTTOM, the `max-height: 100%` from CSS should stay applied so popup doesn't overflow the anchor RG-2754
|
|
61
61
|
const SHOULD_AUTO_SHRINK = directions.every(d => d.startsWith('BOTTOM'));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jetbrains/ring-ui",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.113",
|
|
4
4
|
"description": "JetBrains UI library",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "JetBrains"
|
|
@@ -106,37 +106,37 @@
|
|
|
106
106
|
"@eslint/compat": "^2.1.0",
|
|
107
107
|
"@eslint/eslintrc": "^3.3.5",
|
|
108
108
|
"@eslint/js": "^10.0.1",
|
|
109
|
-
"@figma/code-connect": "^1.4.
|
|
109
|
+
"@figma/code-connect": "^1.4.5",
|
|
110
110
|
"@jetbrains/eslint-config": "^6.0.5",
|
|
111
111
|
"@jetbrains/logos": "3.0.0-canary.734b213.0",
|
|
112
112
|
"@jetbrains/rollup-css-plugin": "./packages/rollup-css-plugin",
|
|
113
113
|
"@jetbrains/stylelint-config": "^4.0.2",
|
|
114
114
|
"@jetbrains/typescript-plugin-css-modules": "^5.3.1",
|
|
115
|
-
"@primer/octicons": "^19.
|
|
115
|
+
"@primer/octicons": "^19.27.0",
|
|
116
116
|
"@rollup/plugin-babel": "^7.0.0",
|
|
117
117
|
"@rollup/plugin-json": "^6.1.0",
|
|
118
118
|
"@rollup/plugin-node-resolve": "^16.0.3",
|
|
119
119
|
"@rollup/plugin-replace": "^6.0.3",
|
|
120
|
-
"@storybook/addon-a11y": "10.
|
|
121
|
-
"@storybook/addon-docs": "^10.
|
|
122
|
-
"@storybook/addon-themes": "^10.
|
|
120
|
+
"@storybook/addon-a11y": "10.4.1",
|
|
121
|
+
"@storybook/addon-docs": "^10.4.1",
|
|
122
|
+
"@storybook/addon-themes": "^10.4.1",
|
|
123
123
|
"@storybook/csf": "^0.1.13",
|
|
124
|
-
"@storybook/react-webpack5": "10.
|
|
125
|
-
"@storybook/test-runner": "^0.24.
|
|
124
|
+
"@storybook/react-webpack5": "10.4.1",
|
|
125
|
+
"@storybook/test-runner": "^0.24.4",
|
|
126
126
|
"@testing-library/dom": "^10.4.1",
|
|
127
127
|
"@testing-library/react": "^16.3.2",
|
|
128
128
|
"@testing-library/user-event": "^14.6.1",
|
|
129
129
|
"@types/chai-as-promised": "^8.0.2",
|
|
130
130
|
"@types/chai-dom": "1.11.3",
|
|
131
131
|
"@types/markdown-it": "^14.1.2",
|
|
132
|
-
"@types/react": "^19.2.
|
|
132
|
+
"@types/react": "^19.2.15",
|
|
133
133
|
"@types/react-dom": "^19.2.3",
|
|
134
134
|
"@types/webpack-env": "^1.18.8",
|
|
135
|
-
"@vitejs/plugin-react": "^6.0.
|
|
135
|
+
"@vitejs/plugin-react": "^6.0.2",
|
|
136
136
|
"@vitest/eslint-plugin": "^1.6.17",
|
|
137
137
|
"acorn": "^8.16.0",
|
|
138
138
|
"babel-plugin-require-context-hook": "^1.0.0",
|
|
139
|
-
"caniuse-lite": "^1.0.
|
|
139
|
+
"caniuse-lite": "^1.0.30001793",
|
|
140
140
|
"chai-as-promised": "^8.0.2",
|
|
141
141
|
"chai-dom": "^1.12.1",
|
|
142
142
|
"cheerio": "^1.2.0",
|
|
@@ -154,7 +154,7 @@
|
|
|
154
154
|
"eslint-plugin-prettier": "^5.5.5",
|
|
155
155
|
"eslint-plugin-react": "^7.37.5",
|
|
156
156
|
"eslint-plugin-react-hooks": "^7.1.1",
|
|
157
|
-
"eslint-plugin-storybook": "^10.
|
|
157
|
+
"eslint-plugin-storybook": "^10.4.1",
|
|
158
158
|
"eslint-plugin-unicorn": "^64.0.0",
|
|
159
159
|
"events": "^3.3.0",
|
|
160
160
|
"glob": "^13.0.6",
|
|
@@ -166,8 +166,8 @@
|
|
|
166
166
|
"jest": "~30.4.2",
|
|
167
167
|
"jest-environment-jsdom": "^30.4.1",
|
|
168
168
|
"jest-teamcity": "^1.12.0",
|
|
169
|
-
"lint-staged": "^17.0.
|
|
170
|
-
"markdown-it": "^14.
|
|
169
|
+
"lint-staged": "^17.0.5",
|
|
170
|
+
"markdown-it": "^14.2.0",
|
|
171
171
|
"merge-options": "^3.0.4",
|
|
172
172
|
"pinst": "^3.0.0",
|
|
173
173
|
"prettier": "^3.8.3",
|
|
@@ -176,22 +176,22 @@
|
|
|
176
176
|
"react-dom": "^19.2.6",
|
|
177
177
|
"regenerator-runtime": "^0.14.1",
|
|
178
178
|
"rimraf": "^6.1.3",
|
|
179
|
-
"rollup": "^4.60.
|
|
179
|
+
"rollup": "^4.60.4",
|
|
180
180
|
"rollup-plugin-clear": "^2.0.7",
|
|
181
181
|
"storage-mock": "^2.1.0",
|
|
182
|
-
"storybook": "10.
|
|
183
|
-
"stylelint": "^17.
|
|
182
|
+
"storybook": "10.4.1",
|
|
183
|
+
"stylelint": "^17.12.0",
|
|
184
184
|
"stylelint-config-sass-guidelines": "^13.0.0",
|
|
185
185
|
"svg-inline-loader": "^0.8.2",
|
|
186
186
|
"teamcity-service-messages": "^0.1.14",
|
|
187
187
|
"terser-webpack-plugin": "^5.6.0",
|
|
188
188
|
"typed-css-modules": "^0.9.1",
|
|
189
189
|
"typescript": "~6.0.3",
|
|
190
|
-
"typescript-eslint": "^8.
|
|
191
|
-
"vite": "^8.0.
|
|
192
|
-
"vitest": "^4.1.
|
|
190
|
+
"typescript-eslint": "^8.60.0",
|
|
191
|
+
"vite": "^8.0.14",
|
|
192
|
+
"vitest": "^4.1.7",
|
|
193
193
|
"vitest-teamcity-reporter": "^0.4.1",
|
|
194
|
-
"webpack": "^5.
|
|
194
|
+
"webpack": "^5.107.1",
|
|
195
195
|
"webpack-cli": "^7.0.2",
|
|
196
196
|
"xmlappend": "^1.0.4"
|
|
197
197
|
},
|
|
@@ -233,21 +233,21 @@
|
|
|
233
233
|
"combokeys": "^3.0.1",
|
|
234
234
|
"css-loader": "^7.1.4",
|
|
235
235
|
"csstype": "^3.2.1",
|
|
236
|
-
"date-fns": "^4.
|
|
236
|
+
"date-fns": "^4.3.0",
|
|
237
237
|
"dequal": "^2.0.3",
|
|
238
238
|
"element-resize-detector": "^1.2.4",
|
|
239
239
|
"fastdom": "^1.0.12",
|
|
240
240
|
"file-loader": "^6.2.0",
|
|
241
|
-
"focus-trap": "^8.2.
|
|
241
|
+
"focus-trap": "^8.2.1",
|
|
242
242
|
"highlight.js": "^10.7.2",
|
|
243
243
|
"just-debounce-it": "^3.2.0",
|
|
244
244
|
"memoize-one": "^6.0.0",
|
|
245
|
-
"postcss": "^8.5.
|
|
245
|
+
"postcss": "^8.5.15",
|
|
246
246
|
"postcss-calc": "^10.1.1",
|
|
247
247
|
"postcss-font-family-system-ui": "^5.0.0",
|
|
248
248
|
"postcss-loader": "^8.2.1",
|
|
249
249
|
"postcss-modules-values-replace": "^4.2.2",
|
|
250
|
-
"postcss-preset-env": "^11.
|
|
250
|
+
"postcss-preset-env": "^11.3.0",
|
|
251
251
|
"react-compiler-runtime": "^1.0.0",
|
|
252
252
|
"react-movable": "^3.4.1",
|
|
253
253
|
"react-virtualized": "^9.22.6",
|