@jetbrains/ring-ui 7.0.110 → 7.0.112
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, {
|
|
@@ -11,6 +11,7 @@ export interface TabsProps extends Omit<CollapsibleTabsProps, 'onSelect' | 'chil
|
|
|
11
11
|
onLastVisibleIndexChange?: ((index: number) => void) | null | undefined;
|
|
12
12
|
className?: string | null | undefined;
|
|
13
13
|
tabContainerClassName?: string | null | undefined;
|
|
14
|
+
tabContainerDataTest?: string | null | undefined;
|
|
14
15
|
titleContainerClassName?: string | null | undefined;
|
|
15
16
|
autoCollapse?: boolean | null | undefined;
|
|
16
17
|
'data-test'?: string | null | undefined;
|
|
@@ -33,7 +33,7 @@ class Tabs extends PureComponent {
|
|
|
33
33
|
return (<TabLink title={title} isSelected={isSelected} key={key} href={href} className={titleClasses} disabled={disabled} onPlainLeftClick={onSelect ? this.handleSelect(key) : undefined} {...titleProps}/>);
|
|
34
34
|
}
|
|
35
35
|
render() {
|
|
36
|
-
const { className, tabContainerClassName, titleContainerClassName, children, selected, autoCollapse, 'data-test': dataTest, onSelect, ...restProps } = this.props;
|
|
36
|
+
const { className, tabContainerClassName, tabContainerDataTest, titleContainerClassName, children, selected, autoCollapse, 'data-test': dataTest, onSelect, ...restProps } = this.props;
|
|
37
37
|
const classes = classNames(styles.tabs, className);
|
|
38
38
|
const childrenArray = React.Children.toArray(children).filter(Boolean);
|
|
39
39
|
const { selectedItem, selectedKey } = this.getSelectedItem();
|
|
@@ -43,7 +43,9 @@ class Tabs extends PureComponent {
|
|
|
43
43
|
</CollapsibleTabs>) : (<div className={classNames(styles.titles, titleContainerClassName)}>
|
|
44
44
|
{childrenArray.map((tab, index) => this.getTabTitle(selectedKey, tab, index))}
|
|
45
45
|
</div>)}
|
|
46
|
-
<div className={classNames(tabContainerClassName)}
|
|
46
|
+
<div className={classNames(tabContainerClassName)} data-test={dataTests('ring-tabs-container', tabContainerDataTest)}>
|
|
47
|
+
{selectedItem}
|
|
48
|
+
</div>
|
|
47
49
|
</div>);
|
|
48
50
|
}
|
|
49
51
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jetbrains/ring-ui",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.112",
|
|
4
4
|
"description": "JetBrains UI library",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "JetBrains"
|
|
@@ -106,7 +106,7 @@
|
|
|
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",
|
|
@@ -117,12 +117,12 @@
|
|
|
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.0",
|
|
121
|
+
"@storybook/addon-docs": "^10.4.0",
|
|
122
|
+
"@storybook/addon-themes": "^10.4.0",
|
|
123
123
|
"@storybook/csf": "^0.1.13",
|
|
124
|
-
"@storybook/react-webpack5": "10.
|
|
125
|
-
"@storybook/test-runner": "^0.24.
|
|
124
|
+
"@storybook/react-webpack5": "10.4.0",
|
|
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",
|
|
@@ -132,7 +132,7 @@
|
|
|
132
132
|
"@types/react": "^19.2.14",
|
|
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",
|
|
@@ -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.0",
|
|
158
158
|
"eslint-plugin-unicorn": "^64.0.0",
|
|
159
159
|
"events": "^3.3.0",
|
|
160
160
|
"glob": "^13.0.6",
|
|
@@ -166,7 +166,7 @@
|
|
|
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.
|
|
169
|
+
"lint-staged": "^17.0.5",
|
|
170
170
|
"markdown-it": "^14.1.1",
|
|
171
171
|
"merge-options": "^3.0.4",
|
|
172
172
|
"pinst": "^3.0.0",
|
|
@@ -176,11 +176,11 @@
|
|
|
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.11.
|
|
182
|
+
"storybook": "10.4.1",
|
|
183
|
+
"stylelint": "^17.11.1",
|
|
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",
|
|
@@ -188,8 +188,8 @@
|
|
|
188
188
|
"typed-css-modules": "^0.9.1",
|
|
189
189
|
"typescript": "~6.0.3",
|
|
190
190
|
"typescript-eslint": "^8.59.3",
|
|
191
|
-
"vite": "^8.0.
|
|
192
|
-
"vitest": "^4.1.
|
|
191
|
+
"vite": "^8.0.13",
|
|
192
|
+
"vitest": "^4.1.6",
|
|
193
193
|
"vitest-teamcity-reporter": "^0.4.1",
|
|
194
194
|
"webpack": "^5.106.2",
|
|
195
195
|
"webpack-cli": "^7.0.2",
|
|
@@ -238,7 +238,7 @@
|
|
|
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",
|
|
@@ -247,7 +247,7 @@
|
|
|
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",
|