@jetbrains/ring-ui-built 7.0.72 → 7.0.73
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/_helpers/anchor.js +55 -13
- package/components/_helpers/avatar-info.js +44 -11
- package/components/_helpers/caption.js +2 -2
- package/components/_helpers/card.js +21 -21
- package/components/_helpers/icon-svg.js +75 -17
- package/components/_helpers/input.js +13 -13
- package/components/_helpers/query-assist-suggestions.js +5 -5
- package/components/_helpers/select-filter.js +5 -5
- package/components/_helpers/services-link.js +5 -5
- package/components/_helpers/sidebar.js +6 -6
- package/components/_helpers/tab-link.js +69 -17
- package/components/_helpers/theme.js +231 -54
- package/components/_helpers/title.js +5 -5
- package/components/alert/alert.d.ts +1 -1
- package/components/alert/alert.js +12 -10
- package/components/alert/container.js +4 -4
- package/components/alert-service/alert-service.d.ts +1 -1
- package/components/alert-service/alert-service.js +5 -4
- package/components/auth/auth-core.js +8 -8
- package/components/auth/auth.js +3 -2
- package/components/auth/down-notification.js +61 -17
- package/components/auth/iframe-flow.js +7 -6
- package/components/auth/storage.js +3 -2
- package/components/auth/token-validator.js +1 -1
- package/components/auth/window-flow.js +2 -2
- package/components/auth-dialog/auth-dialog.d.ts +1 -1
- package/components/auth-dialog/auth-dialog.js +15 -14
- package/components/auth-dialog-service/auth-dialog-service.js +4 -6
- package/components/avatar/avatar-info.d.ts +1 -1
- package/components/avatar/avatar-info.js +3 -2
- package/components/avatar/avatar.d.ts +1 -1
- package/components/avatar/avatar.js +16 -15
- package/components/avatar/fallback-avatar.d.ts +1 -1
- package/components/avatar/fallback-avatar.js +183 -59
- package/components/avatar-stack/avatar-stack.d.ts +1 -1
- package/components/avatar-stack/avatar-stack.js +115 -29
- package/components/banner/banner.d.ts +1 -1
- package/components/banner/banner.js +11 -10
- package/components/breadcrumbs/breadcrumbs.d.ts +1 -1
- package/components/breadcrumbs/breadcrumbs.js +3 -2
- package/components/button/button.d.ts +1 -1
- package/components/button/button.js +11 -10
- package/components/button-group/button-group.d.ts +1 -1
- package/components/button-group/button-group.js +6 -8
- package/components/button-group/caption.d.ts +1 -1
- package/components/button-group/caption.js +1 -1
- package/components/button-set/button-set.d.ts +1 -1
- package/components/button-set/button-set.js +2 -5
- package/components/button-toolbar/button-toolbar.d.ts +1 -1
- package/components/button-toolbar/button-toolbar.js +2 -5
- package/components/checkbox/checkbox.d.ts +1 -1
- package/components/checkbox/checkbox.js +12 -17
- package/components/clipboard/clipboard.js +2 -1
- package/components/code/code.d.ts +1 -1
- package/components/code/code.js +5 -5
- package/components/collapse/collapse-content.js +161 -77
- package/components/collapse/collapse-control.js +69 -22
- package/components/collapse/collapse.js +83 -31
- package/components/confirm/confirm.d.ts +1 -1
- package/components/confirm/confirm.js +11 -13
- package/components/confirm-service/confirm-service.js +4 -3
- package/components/content-layout/content-layout.d.ts +1 -1
- package/components/content-layout/content-layout.js +4 -7
- package/components/content-layout/sidebar.d.ts +1 -1
- package/components/content-layout/sidebar.js +1 -1
- package/components/contenteditable/contenteditable.d.ts +2 -2
- package/components/contenteditable/contenteditable.js +50 -14
- package/components/control-help/control-help.d.ts +1 -1
- package/components/control-help/control-help.js +45 -9
- package/components/control-label/control-label.js +62 -13
- package/components/data-list/data-list.d.ts +1 -1
- package/components/data-list/data-list.js +10 -9
- package/components/data-list/data-list.mock.d.ts +1 -1
- package/components/data-list/data-list.mock.js +79 -78
- package/components/data-list/item.d.ts +2 -2
- package/components/data-list/item.js +18 -17
- package/components/data-list/title.d.ts +1 -1
- package/components/data-list/title.js +2 -1
- package/components/date-picker/consts.js +1 -1
- package/components/date-picker/date-input.d.ts +1 -1
- package/components/date-picker/date-input.js +4 -3
- package/components/date-picker/date-picker.d.ts +1 -1
- package/components/date-picker/date-picker.js +97 -31
- package/components/date-picker/date-popup.d.ts +1 -1
- package/components/date-picker/date-popup.js +11 -10
- package/components/date-picker/day.d.ts +1 -1
- package/components/date-picker/day.js +4 -3
- package/components/date-picker/month-names.d.ts +1 -1
- package/components/date-picker/month-names.js +98 -22
- package/components/date-picker/month-slider.d.ts +1 -1
- package/components/date-picker/month-slider.js +4 -4
- package/components/date-picker/month.d.ts +1 -1
- package/components/date-picker/month.js +79 -18
- package/components/date-picker/months.d.ts +1 -1
- package/components/date-picker/months.js +163 -53
- package/components/date-picker/weekdays.d.ts +1 -1
- package/components/date-picker/weekdays.js +56 -16
- package/components/date-picker/years.d.ts +1 -1
- package/components/date-picker/years.js +5 -5
- package/components/dialog/dialog.d.ts +1 -1
- package/components/dialog/dialog.js +21 -23
- package/components/dropdown/anchor.d.ts +1 -1
- package/components/dropdown/anchor.js +2 -1
- package/components/dropdown/dropdown.d.ts +1 -1
- package/components/dropdown/dropdown.js +7 -8
- package/components/dropdown-menu/dropdown-menu.js +299 -83
- package/components/editable-heading/editable-heading.d.ts +2 -2
- package/components/editable-heading/editable-heading.js +523 -174
- package/components/error-bubble/error-bubble.d.ts +1 -1
- package/components/error-bubble/error-bubble.js +7 -9
- package/components/error-message/error-message.d.ts +1 -1
- package/components/error-message/error-message.js +8 -10
- package/components/footer/footer.js +205 -61
- package/components/global/create-stateful-context.d.ts +1 -1
- package/components/global/create-stateful-context.js +73 -18
- package/components/global/focus-sensor-hoc.js +2 -2
- package/components/global/get-uid.js +1 -1
- package/components/global/react-dom-renderer.d.ts +1 -1
- package/components/global/react-dom-renderer.js +2 -2
- package/components/global/rerender-hoc.js +23 -6
- package/components/global/theme.js +3 -2
- package/components/global/use-event-callback.js +37 -13
- package/components/grid/col.d.ts +1 -1
- package/components/grid/col.js +3 -3
- package/components/grid/grid.d.ts +1 -1
- package/components/grid/grid.js +3 -6
- package/components/grid/row.d.ts +1 -1
- package/components/grid/row.js +3 -3
- package/components/group/group.d.ts +1 -1
- package/components/group/group.js +3 -6
- package/components/header/header-icon.d.ts +1 -1
- package/components/header/header-icon.js +3 -2
- package/components/header/header.d.ts +1 -1
- package/components/header/header.js +7 -12
- package/components/header/links.d.ts +1 -1
- package/components/header/links.js +45 -10
- package/components/header/logo.d.ts +1 -1
- package/components/header/logo.js +4 -3
- package/components/header/profile.js +17 -16
- package/components/header/services-link.d.ts +1 -1
- package/components/header/services-link.js +1 -1
- package/components/header/services.d.ts +1 -1
- package/components/header/services.js +35 -16
- package/components/header/smart-profile.d.ts +1 -1
- package/components/header/smart-profile.js +6 -5
- package/components/header/smart-services.d.ts +1 -1
- package/components/header/smart-services.js +3 -2
- package/components/header/tray.d.ts +1 -1
- package/components/header/tray.js +3 -3
- package/components/heading/heading.js +188 -44
- package/components/i18n/i18n-context.js +51 -13
- package/components/icon/icon-svg.d.ts +1 -1
- package/components/icon/icon-svg.js +2 -1
- package/components/icon/icon.d.ts +1 -1
- package/components/icon/icon.js +6 -5
- package/components/icon/index.js +2 -1
- package/components/input/input.d.ts +1 -1
- package/components/input/input.js +2 -1
- package/components/island/adaptive-island-hoc.js +4 -4
- package/components/island/content.d.ts +1 -1
- package/components/island/content.js +36 -17
- package/components/island/header.d.ts +1 -1
- package/components/island/header.js +32 -14
- package/components/island/island.d.ts +1 -1
- package/components/island/island.js +3 -5
- package/components/link/clickable-link.d.ts +1 -1
- package/components/link/clickable-link.js +2 -2
- package/components/link/link.js +4 -4
- package/components/list/list-custom.d.ts +1 -1
- package/components/list/list-custom.js +2 -2
- package/components/list/list-hint.d.ts +1 -1
- package/components/list/list-hint.js +3 -7
- package/components/list/list-item.d.ts +1 -1
- package/components/list/list-item.js +23 -26
- package/components/list/list-separator.d.ts +1 -1
- package/components/list/list-separator.js +3 -3
- package/components/list/list-title.d.ts +1 -1
- package/components/list/list-title.js +7 -7
- package/components/list/list-users-groups-source.js +6 -5
- package/components/list/list.d.ts +6 -6
- package/components/list/list.js +33 -31
- package/components/loader/loader.d.ts +1 -1
- package/components/loader/loader.js +8 -14
- package/components/loader-inline/loader-inline.d.ts +1 -1
- package/components/loader-inline/loader-inline.js +4 -7
- package/components/loader-screen/loader-screen.d.ts +1 -1
- package/components/loader-screen/loader-screen.js +3 -6
- package/components/login-dialog/login-dialog.d.ts +1 -1
- package/components/login-dialog/login-dialog.js +10 -9
- package/components/login-dialog/service.js +4 -3
- package/components/markdown/markdown.d.ts +1 -1
- package/components/markdown/markdown.js +3 -6
- package/components/message/message.d.ts +1 -1
- package/components/message/message.js +13 -15
- package/components/old-browsers-message/white-list.js +2 -2
- package/components/pager/pager.d.ts +5 -5
- package/components/pager/pager.js +28 -27
- package/components/panel/panel.d.ts +1 -1
- package/components/panel/panel.js +3 -6
- package/components/popup/popup.d.ts +2 -2
- package/components/popup/popup.js +14 -11
- package/components/popup/popup.target.js +68 -16
- package/components/popup-menu/popup-menu.d.ts +1 -1
- package/components/popup-menu/popup-menu.js +7 -9
- package/components/progress-bar/progress-bar.d.ts +1 -1
- package/components/progress-bar/progress-bar.js +4 -7
- package/components/query-assist/query-assist-suggestions.d.ts +1 -1
- package/components/query-assist/query-assist-suggestions.js +5 -4
- package/components/query-assist/query-assist.d.ts +2 -2
- package/components/query-assist/query-assist.js +37 -34
- package/components/radio/radio-item.d.ts +1 -1
- package/components/radio/radio-item.js +40 -20
- package/components/radio/radio.d.ts +1 -1
- package/components/radio/radio.js +3 -5
- package/components/scrollable-section/scrollable-section.d.ts +1 -1
- package/components/scrollable-section/scrollable-section.js +100 -38
- package/components/select/select-filter.d.ts +1 -1
- package/components/select/select-filter.js +5 -4
- package/components/select/select-popup.d.ts +7 -7
- package/components/select/select-popup.js +26 -25
- package/components/select/select.d.ts +3 -3
- package/components/select/select.js +52 -52
- package/components/shortcuts/shortcuts-hoc.js +3 -3
- package/components/slider/slider.js +591 -196
- package/components/storage/storage-local.js +2 -1
- package/components/storage/storage.js +2 -1
- package/components/style.css +1 -1
- package/components/tab-trap/tab-trap.js +247 -102
- package/components/table/cell.d.ts +1 -1
- package/components/table/cell.js +2 -2
- package/components/table/disable-hover-hoc.js +3 -3
- package/components/table/header-cell.d.ts +1 -1
- package/components/table/header-cell.js +7 -6
- package/components/table/header.d.ts +2 -2
- package/components/table/header.js +14 -13
- package/components/table/multitable.d.ts +1 -1
- package/components/table/multitable.js +3 -3
- package/components/table/row-with-focus-sensor.d.ts +1 -1
- package/components/table/row-with-focus-sensor.js +3 -2
- package/components/table/row.d.ts +1 -1
- package/components/table/row.js +51 -24
- package/components/table/selection-shortcuts-hoc.js +2 -2
- package/components/table/simple-table.d.ts +1 -1
- package/components/table/simple-table.js +4 -3
- package/components/table/smart-table.d.ts +1 -1
- package/components/table/smart-table.js +4 -3
- package/components/table/table.d.ts +2 -2
- package/components/table/table.js +21 -23
- package/components/tabs/collapsible-more.d.ts +3 -3
- package/components/tabs/collapsible-more.js +253 -83
- package/components/tabs/collapsible-tab.d.ts +1 -1
- package/components/tabs/collapsible-tab.js +4 -3
- package/components/tabs/collapsible-tabs.d.ts +2 -2
- package/components/tabs/collapsible-tabs.js +450 -188
- package/components/tabs/dumb-tabs.d.ts +2 -2
- package/components/tabs/dumb-tabs.js +10 -9
- package/components/tabs/smart-tabs.d.ts +1 -1
- package/components/tabs/smart-tabs.js +6 -5
- package/components/tabs/tab-link.d.ts +1 -1
- package/components/tabs/tab-link.js +2 -1
- package/components/tabs/tab.d.ts +1 -1
- package/components/tabs/tab.js +2 -2
- package/components/tabs/tabs.js +5 -4
- package/components/tag/tag.d.ts +5 -5
- package/components/tag/tag.js +14 -13
- package/components/tags-input/tags-input.d.ts +1 -1
- package/components/tags-input/tags-input.js +10 -9
- package/components/tags-list/tags-list.d.ts +2 -2
- package/components/tags-list/tags-list.js +4 -3
- package/components/text/text.d.ts +1 -1
- package/components/text/text.js +2 -2
- package/components/toggle/toggle.d.ts +1 -1
- package/components/toggle/toggle.js +12 -11
- package/components/tooltip/tooltip.d.ts +1 -1
- package/components/tooltip/tooltip.js +7 -6
- package/components/upload/upload.js +10 -9
- package/components/user-agreement/service.js +11 -10
- package/components/user-agreement/user-agreement.d.ts +1 -1
- package/components/user-agreement/user-agreement.js +19 -18
- package/components/user-card/card.d.ts +1 -1
- package/components/user-card/card.js +3 -2
- package/components/user-card/smart-user-card-tooltip.d.ts +2 -2
- package/components/user-card/smart-user-card-tooltip.js +7 -6
- package/components/user-card/tooltip.d.ts +2 -2
- package/components/user-card/tooltip.js +7 -6
- package/components/user-card/user-card.js +4 -3
- package/package.json +3 -9
|
@@ -1,19 +1,43 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c } from 'react-compiler-runtime';
|
|
2
|
+
import { useRef, useLayoutEffect } from 'react';
|
|
2
3
|
|
|
3
4
|
function useEventCallback(fn) {
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
return useCallback((...args) => {
|
|
9
|
-
const {
|
|
10
|
-
current
|
|
11
|
-
} = ref;
|
|
12
|
-
if (current === null || current === undefined) {
|
|
13
|
-
throw new Error('callback created in useEventCallback can only be called from event handlers');
|
|
5
|
+
const $ = c(4);
|
|
6
|
+
if ($[0] !== "6d4062362887898e583cc15ffe3261e4c8e7c93150afb27f66c9b6c760b8aef8") {
|
|
7
|
+
for (let $i = 0; $i < 4; $i += 1) {
|
|
8
|
+
$[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
14
9
|
}
|
|
15
|
-
|
|
16
|
-
}
|
|
10
|
+
$[0] = "6d4062362887898e583cc15ffe3261e4c8e7c93150afb27f66c9b6c760b8aef8";
|
|
11
|
+
}
|
|
12
|
+
const ref = useRef(null);
|
|
13
|
+
let t0;
|
|
14
|
+
if ($[1] !== fn) {
|
|
15
|
+
t0 = () => {
|
|
16
|
+
ref.current = fn;
|
|
17
|
+
};
|
|
18
|
+
$[1] = fn;
|
|
19
|
+
$[2] = t0;
|
|
20
|
+
} else {
|
|
21
|
+
t0 = $[2];
|
|
22
|
+
}
|
|
23
|
+
useLayoutEffect(t0);
|
|
24
|
+
let t1;
|
|
25
|
+
if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
|
|
26
|
+
t1 = (...t2) => {
|
|
27
|
+
const args = t2;
|
|
28
|
+
const {
|
|
29
|
+
current
|
|
30
|
+
} = ref;
|
|
31
|
+
if (current === null || current === undefined) {
|
|
32
|
+
throw new Error("callback created in useEventCallback can only be called from event handlers");
|
|
33
|
+
}
|
|
34
|
+
return current(...args);
|
|
35
|
+
};
|
|
36
|
+
$[3] = t1;
|
|
37
|
+
} else {
|
|
38
|
+
t1 = $[3];
|
|
39
|
+
}
|
|
40
|
+
return t1;
|
|
17
41
|
}
|
|
18
42
|
|
|
19
43
|
export { useEventCallback as default };
|
package/components/grid/col.d.ts
CHANGED
package/components/grid/col.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { jsx } from 'react/jsx-runtime';
|
|
2
1
|
import { Component } from 'react';
|
|
3
2
|
import classNames from 'classnames';
|
|
4
3
|
import { s as styles } from '../_helpers/grid.js';
|
|
4
|
+
import { jsx } from 'react/jsx-runtime';
|
|
5
5
|
|
|
6
6
|
const classMap = {
|
|
7
7
|
xs: 'col-xs',
|
|
@@ -32,9 +32,9 @@ class Col extends Component {
|
|
|
32
32
|
const classes = classNames(styles.col, className, getClassNames(restProps), {
|
|
33
33
|
[styles.reverse]: reverse
|
|
34
34
|
});
|
|
35
|
-
return jsx("div", {
|
|
35
|
+
return /*#__PURE__*/jsx("div", {
|
|
36
36
|
className: classes,
|
|
37
|
-
"data-test":
|
|
37
|
+
"data-test": "ring-grid-column",
|
|
38
38
|
children: children
|
|
39
39
|
});
|
|
40
40
|
}
|
|
@@ -3,7 +3,7 @@ import { Component, type HTMLAttributes } from 'react';
|
|
|
3
3
|
* @name Grid
|
|
4
4
|
*/
|
|
5
5
|
export declare class Grid extends Component<HTMLAttributes<HTMLDivElement>> {
|
|
6
|
-
render(): import("react
|
|
6
|
+
render(): import("react").JSX.Element;
|
|
7
7
|
}
|
|
8
8
|
export { default as Row } from './row';
|
|
9
9
|
export { default as Col } from './col';
|
package/components/grid/grid.js
CHANGED
|
@@ -1,13 +1,10 @@
|
|
|
1
|
-
import { jsx } from 'react/jsx-runtime';
|
|
2
1
|
import { Component } from 'react';
|
|
3
2
|
import classNames from 'classnames';
|
|
4
3
|
import { s as styles } from '../_helpers/grid.js';
|
|
4
|
+
import { jsx } from 'react/jsx-runtime';
|
|
5
5
|
export { default as Row } from './row.js';
|
|
6
6
|
export { default as Col } from './col.js';
|
|
7
7
|
|
|
8
|
-
/**
|
|
9
|
-
* @name Grid
|
|
10
|
-
*/
|
|
11
8
|
class Grid extends Component {
|
|
12
9
|
render() {
|
|
13
10
|
const {
|
|
@@ -16,8 +13,8 @@ class Grid extends Component {
|
|
|
16
13
|
...restProps
|
|
17
14
|
} = this.props;
|
|
18
15
|
const classes = classNames(styles['container-fluid'], className);
|
|
19
|
-
return jsx("div", {
|
|
20
|
-
"data-test":
|
|
16
|
+
return /*#__PURE__*/jsx("div", {
|
|
17
|
+
"data-test": "ring-grid",
|
|
21
18
|
...restProps,
|
|
22
19
|
className: classes,
|
|
23
20
|
children: children
|
package/components/grid/row.d.ts
CHANGED
package/components/grid/row.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { jsx } from 'react/jsx-runtime';
|
|
2
1
|
import { Component } from 'react';
|
|
3
2
|
import classNames from 'classnames';
|
|
4
3
|
import { s as styles } from '../_helpers/grid.js';
|
|
4
|
+
import { jsx } from 'react/jsx-runtime';
|
|
5
5
|
|
|
6
6
|
const modifierKeys = ['start', 'center', 'end',
|
|
7
7
|
// text-align, justify-content
|
|
@@ -35,9 +35,9 @@ class Row extends Component {
|
|
|
35
35
|
const classes = classNames(className, styles.row, getModifierClassNames(restProps), {
|
|
36
36
|
[styles.reverse]: reverse
|
|
37
37
|
});
|
|
38
|
-
return jsx("div", {
|
|
38
|
+
return /*#__PURE__*/jsx("div", {
|
|
39
39
|
className: classes,
|
|
40
|
-
"data-test":
|
|
40
|
+
"data-test": "ring-grid-row",
|
|
41
41
|
children: children
|
|
42
42
|
});
|
|
43
43
|
}
|
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
import { jsx } from 'react/jsx-runtime';
|
|
2
1
|
import { Component } from 'react';
|
|
3
2
|
import classNames from 'classnames';
|
|
3
|
+
import { jsx } from 'react/jsx-runtime';
|
|
4
4
|
|
|
5
5
|
var styles = {"group":"ring-group-group"};
|
|
6
6
|
|
|
7
|
-
/**
|
|
8
|
-
* @name Group
|
|
9
|
-
*/
|
|
10
7
|
class Group extends Component {
|
|
11
8
|
render() {
|
|
12
9
|
const {
|
|
@@ -15,8 +12,8 @@ class Group extends Component {
|
|
|
15
12
|
...restProps
|
|
16
13
|
} = this.props;
|
|
17
14
|
const classes = classNames(styles.group, className);
|
|
18
|
-
return jsx("span", {
|
|
19
|
-
"data-test":
|
|
15
|
+
return /*#__PURE__*/jsx("span", {
|
|
16
|
+
"data-test": "ring-group",
|
|
20
17
|
...restProps,
|
|
21
18
|
className: classes,
|
|
22
19
|
children: children
|
|
@@ -6,5 +6,5 @@ export interface HeaderIconSpecificProps {
|
|
|
6
6
|
rotatable?: boolean | null | undefined;
|
|
7
7
|
}
|
|
8
8
|
export default class HeaderIcon extends Component<ButtonAttrs & HeaderIconSpecificProps> {
|
|
9
|
-
render(): import("react
|
|
9
|
+
render(): import("react").JSX.Element;
|
|
10
10
|
}
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import { jsx } from 'react/jsx-runtime';
|
|
2
1
|
import { Component } from 'react';
|
|
3
2
|
import classNames from 'classnames';
|
|
4
3
|
import { Button } from '../button/button.js';
|
|
5
4
|
import { s as styles } from '../_helpers/header.js';
|
|
5
|
+
import { jsx } from 'react/jsx-runtime';
|
|
6
6
|
import '@jetbrains/icons/chevron-down';
|
|
7
7
|
import '@jetbrains/icons/chevron-12px-down';
|
|
8
8
|
import 'util-deprecate';
|
|
9
9
|
import '../icon/icon.js';
|
|
10
10
|
import '../icon/icon.constants.js';
|
|
11
11
|
import '../_helpers/icon-svg.js';
|
|
12
|
+
import 'react-compiler-runtime';
|
|
12
13
|
import '../global/memoize.js';
|
|
13
14
|
import '../link/clickable-link.js';
|
|
14
15
|
import '../global/controls-height.js';
|
|
@@ -26,7 +27,7 @@ class HeaderIcon extends Component {
|
|
|
26
27
|
[styles.rotatable]: rotatable,
|
|
27
28
|
[styles.rotated]: rotatable && restProps.active
|
|
28
29
|
});
|
|
29
|
-
return jsx(Button, {
|
|
30
|
+
return /*#__PURE__*/jsx(Button, {
|
|
30
31
|
...restProps,
|
|
31
32
|
className: classes
|
|
32
33
|
});
|
|
@@ -17,7 +17,7 @@ declare class Header extends Component<HeaderProps> {
|
|
|
17
17
|
theme: Theme;
|
|
18
18
|
vertical: boolean;
|
|
19
19
|
};
|
|
20
|
-
render(): import("react
|
|
20
|
+
render(): import("react").JSX.Element;
|
|
21
21
|
}
|
|
22
22
|
export type HeaderAttrs = React.JSX.LibraryManagedAttributes<typeof Header, HeaderProps>;
|
|
23
23
|
export default Header;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { jsx } from 'react/jsx-runtime';
|
|
2
1
|
import { Component } from 'react';
|
|
3
2
|
import classNames from 'classnames';
|
|
4
3
|
import { T as Theme, a as ThemeProvider } from '../_helpers/theme.js';
|
|
5
4
|
import { s as styles } from '../_helpers/header.js';
|
|
5
|
+
import { jsx } from 'react/jsx-runtime';
|
|
6
6
|
export { default as Logo } from './logo.js';
|
|
7
7
|
export { default as Tray } from './tray.js';
|
|
8
8
|
export { default as HeaderIcon } from './header-icon.js';
|
|
@@ -10,6 +10,7 @@ export { default as Profile } from './profile.js';
|
|
|
10
10
|
export { default as SmartProfile } from './smart-profile.js';
|
|
11
11
|
export { default as Services } from './services.js';
|
|
12
12
|
export { default as SmartServices } from './smart-services.js';
|
|
13
|
+
import 'react-compiler-runtime';
|
|
13
14
|
import 'react-dom';
|
|
14
15
|
import '../popup/popup.target.js';
|
|
15
16
|
import '../popup/popup.js';
|
|
@@ -40,9 +41,9 @@ import '../global/controls-height.js';
|
|
|
40
41
|
import '../_helpers/button.classes.js';
|
|
41
42
|
import '../avatar/avatar.js';
|
|
42
43
|
import '../global/url.js';
|
|
43
|
-
import '../_helpers/avatar-info.js';
|
|
44
|
-
import '../avatar/avatar-size.js';
|
|
45
44
|
import '../avatar/fallback-avatar.js';
|
|
45
|
+
import '../avatar/avatar-size.js';
|
|
46
|
+
import '../_helpers/avatar-info.js';
|
|
46
47
|
import '../dropdown-menu/dropdown-menu.js';
|
|
47
48
|
import '../list/list.js';
|
|
48
49
|
import 'react-virtualized/dist/es/List';
|
|
@@ -59,9 +60,9 @@ import '../global/compose-refs.js';
|
|
|
59
60
|
import '../control-help/control-help.js';
|
|
60
61
|
import '../link/link.js';
|
|
61
62
|
import '../_helpers/link.js';
|
|
62
|
-
import '../_helpers/list.js';
|
|
63
63
|
import '../list/consts.js';
|
|
64
64
|
import '../list/list.classes.js';
|
|
65
|
+
import '../_helpers/list.js';
|
|
65
66
|
import '../list/list-custom.js';
|
|
66
67
|
import '../global/get-event-key.js';
|
|
67
68
|
import '../list/list-title.js';
|
|
@@ -100,12 +101,6 @@ import '../auth/token-validator.js';
|
|
|
100
101
|
import '@jetbrains/icons/services-20px';
|
|
101
102
|
import '../_helpers/services-link.js';
|
|
102
103
|
|
|
103
|
-
/**
|
|
104
|
-
* @name Header
|
|
105
|
-
*/
|
|
106
|
-
/**
|
|
107
|
-
* Displays a configurable page header. See available presentation options in the knobs panel.
|
|
108
|
-
*/
|
|
109
104
|
class Header extends Component {
|
|
110
105
|
static defaultProps = {
|
|
111
106
|
spaced: true,
|
|
@@ -125,13 +120,13 @@ class Header extends Component {
|
|
|
125
120
|
[styles.headerSpaced]: spaced && !vertical
|
|
126
121
|
});
|
|
127
122
|
const overrideOuterTheme = theme !== Theme.LIGHT;
|
|
128
|
-
const header = jsx("header", {
|
|
123
|
+
const header = /*#__PURE__*/jsx("header", {
|
|
129
124
|
...restProps,
|
|
130
125
|
className: classes,
|
|
131
126
|
children: children
|
|
132
127
|
});
|
|
133
128
|
if (overrideOuterTheme) {
|
|
134
|
-
return jsx(ThemeProvider, {
|
|
129
|
+
return /*#__PURE__*/jsx(ThemeProvider, {
|
|
135
130
|
theme: theme,
|
|
136
131
|
children: header
|
|
137
132
|
});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { type HTMLAttributes } from 'react';
|
|
2
|
-
export default function Links({ className, ...restProps }: HTMLAttributes<HTMLDivElement>): import("react
|
|
2
|
+
export default function Links({ className, ...restProps }: HTMLAttributes<HTMLDivElement>): import("react").JSX.Element;
|
|
@@ -1,18 +1,53 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c } from 'react-compiler-runtime';
|
|
2
2
|
import classNames from 'classnames';
|
|
3
3
|
import ScrollableSection from '../scrollable-section/scrollable-section.js';
|
|
4
4
|
import { s as styles } from '../_helpers/header.js';
|
|
5
|
+
import { jsx } from 'react/jsx-runtime';
|
|
5
6
|
import 'react';
|
|
6
7
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
8
|
+
function Links(t0) {
|
|
9
|
+
const $ = c(9);
|
|
10
|
+
if ($[0] !== "d896f540dfbd50c7773e72435650f7342fe2a42ec7a521489534085809fdab89") {
|
|
11
|
+
for (let $i = 0; $i < 9; $i += 1) {
|
|
12
|
+
$[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
13
|
+
}
|
|
14
|
+
$[0] = "d896f540dfbd50c7773e72435650f7342fe2a42ec7a521489534085809fdab89";
|
|
15
|
+
}
|
|
16
|
+
let className;
|
|
17
|
+
let restProps;
|
|
18
|
+
if ($[1] !== t0) {
|
|
19
|
+
({
|
|
20
|
+
className,
|
|
21
|
+
...restProps
|
|
22
|
+
} = t0);
|
|
23
|
+
$[1] = t0;
|
|
24
|
+
$[2] = className;
|
|
25
|
+
$[3] = restProps;
|
|
26
|
+
} else {
|
|
27
|
+
className = $[2];
|
|
28
|
+
restProps = $[3];
|
|
29
|
+
}
|
|
30
|
+
let t1;
|
|
31
|
+
if ($[4] !== className) {
|
|
32
|
+
t1 = classNames(styles.links, className);
|
|
33
|
+
$[4] = className;
|
|
34
|
+
$[5] = t1;
|
|
35
|
+
} else {
|
|
36
|
+
t1 = $[5];
|
|
37
|
+
}
|
|
38
|
+
let t2;
|
|
39
|
+
if ($[6] !== restProps || $[7] !== t1) {
|
|
40
|
+
t2 = /*#__PURE__*/jsx(ScrollableSection, {
|
|
41
|
+
...restProps,
|
|
42
|
+
className: t1
|
|
43
|
+
});
|
|
44
|
+
$[6] = restProps;
|
|
45
|
+
$[7] = t1;
|
|
46
|
+
$[8] = t2;
|
|
47
|
+
} else {
|
|
48
|
+
t2 = $[8];
|
|
49
|
+
}
|
|
50
|
+
return t2;
|
|
16
51
|
}
|
|
17
52
|
|
|
18
53
|
export { Links as default };
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { jsx } from 'react/jsx-runtime';
|
|
2
1
|
import { PureComponent } from 'react';
|
|
3
2
|
import classNames from 'classnames';
|
|
4
3
|
import Icon from '../icon/icon.js';
|
|
5
4
|
import { s as styles } from '../_helpers/header.js';
|
|
5
|
+
import { jsx } from 'react/jsx-runtime';
|
|
6
6
|
import { Size } from '../icon/icon.constants.js';
|
|
7
7
|
import 'util-deprecate';
|
|
8
8
|
import '../_helpers/icon-svg.js';
|
|
9
|
+
import 'react-compiler-runtime';
|
|
9
10
|
import '../global/memoize.js';
|
|
10
11
|
|
|
11
12
|
class Logo extends PureComponent {
|
|
@@ -20,9 +21,9 @@ class Logo extends PureComponent {
|
|
|
20
21
|
...restProps
|
|
21
22
|
} = this.props;
|
|
22
23
|
const classes = classNames(styles.logo, className);
|
|
23
|
-
return jsx("div", {
|
|
24
|
+
return /*#__PURE__*/jsx("div", {
|
|
24
25
|
className: classes,
|
|
25
|
-
children: jsx(Icon, {
|
|
26
|
+
children: /*#__PURE__*/jsx(Icon, {
|
|
26
27
|
...restProps
|
|
27
28
|
})
|
|
28
29
|
});
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
1
|
import { PureComponent } from 'react';
|
|
3
2
|
import classNames from 'classnames';
|
|
4
3
|
import Avatar from '../avatar/avatar.js';
|
|
@@ -8,14 +7,16 @@ import PopupMenu from '../popup-menu/popup-menu.js';
|
|
|
8
7
|
import { I18nContext } from '../i18n/i18n-context.js';
|
|
9
8
|
import { isTruthy } from '../global/typescript-utils.js';
|
|
10
9
|
import { s as styles } from '../_helpers/header.js';
|
|
10
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
11
11
|
import { Size } from '../avatar/avatar-size.js';
|
|
12
12
|
import 'util-deprecate';
|
|
13
13
|
import '../global/url.js';
|
|
14
14
|
import '../global/dom.js';
|
|
15
15
|
import '../global/memoize.js';
|
|
16
|
-
import '../_helpers/avatar-info.js';
|
|
17
16
|
import '../avatar/fallback-avatar.js';
|
|
17
|
+
import 'react-compiler-runtime';
|
|
18
18
|
import '../global/get-uid.js';
|
|
19
|
+
import '../_helpers/avatar-info.js';
|
|
19
20
|
import '@jetbrains/icons/chevron-down';
|
|
20
21
|
import '@jetbrains/icons/chevron-12px-down';
|
|
21
22
|
import '../icon/icon.js';
|
|
@@ -47,9 +48,9 @@ import '../global/compose-refs.js';
|
|
|
47
48
|
import '../control-help/control-help.js';
|
|
48
49
|
import '../link/link.js';
|
|
49
50
|
import '../_helpers/link.js';
|
|
50
|
-
import '../_helpers/list.js';
|
|
51
51
|
import '../list/consts.js';
|
|
52
52
|
import '../list/list.classes.js';
|
|
53
|
+
import '../_helpers/list.js';
|
|
53
54
|
import '../list/list-custom.js';
|
|
54
55
|
import '../global/get-event-key.js';
|
|
55
56
|
import '../list/list-title.js';
|
|
@@ -77,16 +78,16 @@ class Profile extends PureComponent {
|
|
|
77
78
|
onLogin,
|
|
78
79
|
className,
|
|
79
80
|
translations
|
|
80
|
-
}) => jsx(I18nContext.Consumer, {
|
|
81
|
+
}) => /*#__PURE__*/jsx(I18nContext.Consumer, {
|
|
81
82
|
children: ({
|
|
82
83
|
translate
|
|
83
84
|
}) => {
|
|
84
85
|
var _translations$login;
|
|
85
|
-
return jsx("div", {
|
|
86
|
+
return /*#__PURE__*/jsx("div", {
|
|
86
87
|
className: classNames(styles.profileEmpty, className),
|
|
87
|
-
children: jsx(Button, {
|
|
88
|
+
children: /*#__PURE__*/jsx(Button, {
|
|
88
89
|
primary: true,
|
|
89
|
-
"data-test":
|
|
90
|
+
"data-test": "ring-header-login-button",
|
|
90
91
|
disabled: loading,
|
|
91
92
|
loader: loading,
|
|
92
93
|
onClick: onLogin,
|
|
@@ -132,10 +133,10 @@ class Profile extends PureComponent {
|
|
|
132
133
|
translate
|
|
133
134
|
} = this.context;
|
|
134
135
|
if (!user) {
|
|
135
|
-
return jsx("div", {
|
|
136
|
+
return /*#__PURE__*/jsx("div", {
|
|
136
137
|
...props,
|
|
137
138
|
className: classNames(styles.profileEmpty, className),
|
|
138
|
-
children: jsx(Avatar, {
|
|
139
|
+
children: /*#__PURE__*/jsx(Avatar, {
|
|
139
140
|
size: size,
|
|
140
141
|
round: round
|
|
141
142
|
})
|
|
@@ -147,18 +148,18 @@ class Profile extends PureComponent {
|
|
|
147
148
|
const avatarWrapper = classNames(styles.avatarWrapper, {
|
|
148
149
|
[styles.hasUpdates]: hasUpdates
|
|
149
150
|
});
|
|
150
|
-
const anchor = jsxs("button", {
|
|
151
|
-
type:
|
|
151
|
+
const anchor = /*#__PURE__*/jsxs("button", {
|
|
152
|
+
type: "button",
|
|
152
153
|
className: styles.anchorClassName,
|
|
153
|
-
children: [jsx("span", {
|
|
154
|
+
children: [/*#__PURE__*/jsx("span", {
|
|
154
155
|
className: avatarWrapper,
|
|
155
|
-
children: jsx(Avatar, {
|
|
156
|
+
children: /*#__PURE__*/jsx(Avatar, {
|
|
156
157
|
url: user.profile && user.profile.avatar && user.profile.avatar.url,
|
|
157
158
|
size: size,
|
|
158
159
|
round: round,
|
|
159
160
|
username: user.name
|
|
160
161
|
})
|
|
161
|
-
}), showName && jsx("span", {
|
|
162
|
+
}), showName && /*#__PURE__*/jsx("span", {
|
|
162
163
|
children: user.name
|
|
163
164
|
})]
|
|
164
165
|
});
|
|
@@ -189,14 +190,14 @@ class Profile extends PureComponent {
|
|
|
189
190
|
label: (_translations$logout = translations?.logout) !== null && _translations$logout !== void 0 ? _translations$logout : translate('logout'),
|
|
190
191
|
onClick: onLogout
|
|
191
192
|
}].filter(isTruthy);
|
|
192
|
-
return jsx(DropdownMenu, {
|
|
193
|
+
return /*#__PURE__*/jsx(DropdownMenu, {
|
|
193
194
|
...props,
|
|
194
195
|
onShow: onShow,
|
|
195
196
|
onHide: onHide,
|
|
196
197
|
title: user.name,
|
|
197
198
|
anchor: anchor,
|
|
198
199
|
data: renderPopupItems(items),
|
|
199
|
-
"data-test":
|
|
200
|
+
"data-test": "ring-profile",
|
|
200
201
|
className: classNames(styles.profile, className),
|
|
201
202
|
activeClassName: activeClassName,
|
|
202
203
|
menuProps: {
|
|
@@ -11,5 +11,5 @@ export interface ServicesLinkProps extends Partial<LinkProps> {
|
|
|
11
11
|
service: Service;
|
|
12
12
|
}
|
|
13
13
|
export default class ServicesLink extends PureComponent<ServicesLinkProps> {
|
|
14
|
-
render(): import("react
|
|
14
|
+
render(): import("react").JSX.Element;
|
|
15
15
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c } from 'react-compiler-runtime';
|
|
2
2
|
import { PureComponent } from 'react';
|
|
3
3
|
import servicesIcon from '@jetbrains/icons/services-20px';
|
|
4
4
|
import classNames from 'classnames';
|
|
@@ -7,6 +7,7 @@ import Popup from '../popup/popup.js';
|
|
|
7
7
|
import { T as Theme, d as darkStyles } from '../_helpers/theme.js';
|
|
8
8
|
import HeaderIcon from './header-icon.js';
|
|
9
9
|
import { S as ServicesLink, s as styles } from '../_helpers/services-link.js';
|
|
10
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
10
11
|
import '../global/data-tests.js';
|
|
11
12
|
import '../global/typescript-utils.js';
|
|
12
13
|
import '../_helpers/anchor.js';
|
|
@@ -41,14 +42,32 @@ import '../link/link.js';
|
|
|
41
42
|
import '../_helpers/link.js';
|
|
42
43
|
|
|
43
44
|
const makeAnchor = loading => {
|
|
44
|
-
const Anchor =
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
45
|
+
const Anchor = t0 => {
|
|
46
|
+
const $ = c(3);
|
|
47
|
+
if ($[0] !== "7179851c58be53d5aed1c4bed9ace9b1addb19694ee004f1e36235728ee31e45") {
|
|
48
|
+
for (let $i = 0; $i < 3; $i += 1) {
|
|
49
|
+
$[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
50
|
+
}
|
|
51
|
+
$[0] = "7179851c58be53d5aed1c4bed9ace9b1addb19694ee004f1e36235728ee31e45";
|
|
52
|
+
}
|
|
53
|
+
const {
|
|
54
|
+
active
|
|
55
|
+
} = t0;
|
|
56
|
+
let t1;
|
|
57
|
+
if ($[1] !== active) {
|
|
58
|
+
t1 = /*#__PURE__*/jsx(HeaderIcon, {
|
|
59
|
+
loader: loading,
|
|
60
|
+
active: active,
|
|
61
|
+
icon: servicesIcon,
|
|
62
|
+
"aria-label": "Services"
|
|
63
|
+
});
|
|
64
|
+
$[1] = active;
|
|
65
|
+
$[2] = t1;
|
|
66
|
+
} else {
|
|
67
|
+
t1 = $[2];
|
|
68
|
+
}
|
|
69
|
+
return t1;
|
|
70
|
+
};
|
|
52
71
|
return Anchor;
|
|
53
72
|
};
|
|
54
73
|
class Services extends PureComponent {
|
|
@@ -72,39 +91,39 @@ class Services extends PureComponent {
|
|
|
72
91
|
...props
|
|
73
92
|
} = this.props;
|
|
74
93
|
if (!services) {
|
|
75
|
-
return jsx(HeaderIcon, {
|
|
94
|
+
return /*#__PURE__*/jsx(HeaderIcon, {
|
|
76
95
|
...props,
|
|
77
96
|
loader: loading,
|
|
78
97
|
active: loading,
|
|
79
98
|
icon: servicesIcon,
|
|
80
|
-
"aria-label":
|
|
99
|
+
"aria-label": "Services"
|
|
81
100
|
});
|
|
82
101
|
}
|
|
83
102
|
const sortedServices = [...services].sort(Services.sort);
|
|
84
103
|
const servicesWithIcons = sortedServices.filter(service => service.iconUrl && service.homeUrl);
|
|
85
104
|
const servicesWithOutIcons = sortedServices.filter(service => !service.iconUrl && service.homeUrl);
|
|
86
105
|
const separatorIsRequired = servicesWithIcons.length !== 0 && servicesWithOutIcons.length !== 0;
|
|
87
|
-
return jsx(Dropdown, {
|
|
106
|
+
return /*#__PURE__*/jsx(Dropdown, {
|
|
88
107
|
...props,
|
|
89
108
|
anchor: makeAnchor(loading),
|
|
90
109
|
initShown: initShown,
|
|
91
|
-
children: jsxs(Popup, {
|
|
110
|
+
children: /*#__PURE__*/jsxs(Popup, {
|
|
92
111
|
className: classNames(styles.services, {
|
|
93
112
|
[darkStyles.dark]: theme === Theme.DARK
|
|
94
113
|
}),
|
|
95
114
|
top: -3,
|
|
96
115
|
children: [servicesWithIcons.map(service => {
|
|
97
116
|
const isActive = this.serviceIsActive(service);
|
|
98
|
-
return jsx(Services.Link, {
|
|
117
|
+
return /*#__PURE__*/jsx(Services.Link, {
|
|
99
118
|
active: isActive,
|
|
100
119
|
className: isActive ? styles.activeItem : styles.item,
|
|
101
120
|
service: service
|
|
102
121
|
}, service.id);
|
|
103
|
-
}), separatorIsRequired && jsx("div", {
|
|
122
|
+
}), separatorIsRequired && /*#__PURE__*/jsx("div", {
|
|
104
123
|
className: styles.line
|
|
105
124
|
}, 'separator'), servicesWithOutIcons.map(service => {
|
|
106
125
|
const isActive = this.serviceIsActive(service);
|
|
107
|
-
return jsx(Services.Link, {
|
|
126
|
+
return /*#__PURE__*/jsx(Services.Link, {
|
|
108
127
|
active: isActive,
|
|
109
128
|
className: isActive ? styles.activeItemStacked : styles.itemStacked,
|
|
110
129
|
service: service
|
|
@@ -22,6 +22,6 @@ export default class SmartProfile extends PureComponent<SmartProfileProps, Smart
|
|
|
22
22
|
onRevertPostponement: () => void;
|
|
23
23
|
requestUser(): Promise<void>;
|
|
24
24
|
checkUserCertificateMismatch(user: AuthUser): void;
|
|
25
|
-
render(): import("react
|
|
25
|
+
render(): import("react").JSX.Element;
|
|
26
26
|
}
|
|
27
27
|
export {};
|