@jetbrains/ring-ui 7.0.112 → 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.
- package/components/popup/position-css.js +4 -4
- package/package.json +17 -17
|
@@ -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"
|
|
@@ -112,16 +112,16 @@
|
|
|
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.4.
|
|
121
|
-
"@storybook/addon-docs": "^10.4.
|
|
122
|
-
"@storybook/addon-themes": "^10.4.
|
|
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.4.
|
|
124
|
+
"@storybook/react-webpack5": "10.4.1",
|
|
125
125
|
"@storybook/test-runner": "^0.24.4",
|
|
126
126
|
"@testing-library/dom": "^10.4.1",
|
|
127
127
|
"@testing-library/react": "^16.3.2",
|
|
@@ -129,14 +129,14 @@
|
|
|
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
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.4.
|
|
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",
|
|
@@ -167,7 +167,7 @@
|
|
|
167
167
|
"jest-environment-jsdom": "^30.4.1",
|
|
168
168
|
"jest-teamcity": "^1.12.0",
|
|
169
169
|
"lint-staged": "^17.0.5",
|
|
170
|
-
"markdown-it": "^14.
|
|
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",
|
|
@@ -180,18 +180,18 @@
|
|
|
180
180
|
"rollup-plugin-clear": "^2.0.7",
|
|
181
181
|
"storage-mock": "^2.1.0",
|
|
182
182
|
"storybook": "10.4.1",
|
|
183
|
-
"stylelint": "^17.
|
|
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,7 +233,7 @@
|
|
|
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",
|
|
@@ -242,7 +242,7 @@
|
|
|
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",
|