@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,9 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c } from 'react-compiler-runtime';
|
|
2
2
|
import { Component } from 'react';
|
|
3
3
|
import classNames from 'classnames';
|
|
4
4
|
import { interpolateLinear } from '../global/linear-function.js';
|
|
5
|
-
import { s as styles } from '../_helpers/island.js';
|
|
6
5
|
import { PhaseContext } from './adaptive-island-hoc.js';
|
|
6
|
+
import { s as styles } from '../_helpers/island.js';
|
|
7
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
7
8
|
|
|
8
9
|
const Start = {
|
|
9
10
|
FONT_SIZE: 24,
|
|
@@ -66,12 +67,12 @@ class Header extends Component {
|
|
|
66
67
|
paddingBottom: this.style('PADDING_BOTTOM')
|
|
67
68
|
} : undefined;
|
|
68
69
|
const titleStyle = this.getTitleStyle(phase);
|
|
69
|
-
return jsxs("div", {
|
|
70
|
+
return /*#__PURE__*/jsxs("div", {
|
|
70
71
|
...restProps,
|
|
71
|
-
"data-test":
|
|
72
|
+
"data-test": "ring-island-header",
|
|
72
73
|
className: classes,
|
|
73
74
|
style: headerStyle,
|
|
74
|
-
children: [wrapWithTitle && jsx("h2", {
|
|
75
|
+
children: [wrapWithTitle && /*#__PURE__*/jsx("h2", {
|
|
75
76
|
className: styles.title,
|
|
76
77
|
style: titleStyle,
|
|
77
78
|
children: children
|
|
@@ -79,16 +80,33 @@ class Header extends Component {
|
|
|
79
80
|
});
|
|
80
81
|
}
|
|
81
82
|
}
|
|
82
|
-
const HeaderWrapper = props =>
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
83
|
+
const HeaderWrapper = props => {
|
|
84
|
+
const $ = c(3);
|
|
85
|
+
if ($[0] !== "dbbfd9db484c81cb5d8abfe2d50de2fd9035c22d61c0a499e8f82dfe385f2c0e") {
|
|
86
|
+
for (let $i = 0; $i < 3; $i += 1) {
|
|
87
|
+
$[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
88
|
+
}
|
|
89
|
+
$[0] = "dbbfd9db484c81cb5d8abfe2d50de2fd9035c22d61c0a499e8f82dfe385f2c0e";
|
|
90
|
+
}
|
|
91
|
+
let t0;
|
|
92
|
+
if ($[1] !== props) {
|
|
93
|
+
t0 = /*#__PURE__*/jsx(PhaseContext.Consumer, {
|
|
94
|
+
children: phase => {
|
|
95
|
+
const addProps = phase !== null && phase !== undefined ? {
|
|
96
|
+
phase
|
|
97
|
+
} : {};
|
|
98
|
+
return /*#__PURE__*/jsx(Header, {
|
|
99
|
+
...props,
|
|
100
|
+
...addProps
|
|
101
|
+
});
|
|
102
|
+
}
|
|
90
103
|
});
|
|
104
|
+
$[1] = props;
|
|
105
|
+
$[2] = t0;
|
|
106
|
+
} else {
|
|
107
|
+
t0 = $[2];
|
|
91
108
|
}
|
|
92
|
-
|
|
109
|
+
return t0;
|
|
110
|
+
};
|
|
93
111
|
|
|
94
112
|
export { HeaderWrapper as default };
|
|
@@ -8,7 +8,7 @@ export interface IslandProps extends HTMLAttributes<HTMLElement> {
|
|
|
8
8
|
* @name Island
|
|
9
9
|
*/
|
|
10
10
|
export default class Island extends Component<IslandProps> {
|
|
11
|
-
render(): import("react
|
|
11
|
+
render(): import("react").JSX.Element;
|
|
12
12
|
}
|
|
13
13
|
export declare const AdaptiveIsland: import("react").ComponentClass<IslandProps, any>;
|
|
14
14
|
export { default as Header } from './header';
|
|
@@ -1,18 +1,16 @@
|
|
|
1
|
-
import { jsx } from 'react/jsx-runtime';
|
|
2
1
|
import { Component } from 'react';
|
|
3
2
|
import classNames from 'classnames';
|
|
4
3
|
import joinDataTestAttributes from '../global/data-tests.js';
|
|
5
4
|
import adaptiveIslandHOC from './adaptive-island-hoc.js';
|
|
6
5
|
import { s as styles } from '../_helpers/island.js';
|
|
6
|
+
import { jsx } from 'react/jsx-runtime';
|
|
7
7
|
export { default as Header } from './header.js';
|
|
8
8
|
export { default as Content } from './content.js';
|
|
9
9
|
import '../global/linear-function.js';
|
|
10
|
+
import 'react-compiler-runtime';
|
|
10
11
|
import 'element-resize-detector';
|
|
11
12
|
import '../global/schedule-raf.js';
|
|
12
13
|
|
|
13
|
-
/**
|
|
14
|
-
* @name Island
|
|
15
|
-
*/
|
|
16
14
|
class Island extends Component {
|
|
17
15
|
render() {
|
|
18
16
|
const {
|
|
@@ -27,7 +25,7 @@ class Island extends Component {
|
|
|
27
25
|
[styles.narrowIsland]: narrow,
|
|
28
26
|
[styles.withoutPaddings]: withoutPaddings
|
|
29
27
|
});
|
|
30
|
-
return jsx("div", {
|
|
28
|
+
return /*#__PURE__*/jsx("div", {
|
|
31
29
|
...restProps,
|
|
32
30
|
className: classes,
|
|
33
31
|
"data-test": joinDataTestAttributes('ring-island', dataTest),
|
|
@@ -8,5 +8,5 @@ export interface ClickableLinkProps extends AnchorHTMLAttributes<HTMLAnchorEleme
|
|
|
8
8
|
}
|
|
9
9
|
export default class ClickableLink extends PureComponent<ClickableLinkProps> {
|
|
10
10
|
onClick: (e: React.MouseEvent<HTMLAnchorElement>) => void;
|
|
11
|
-
render():
|
|
11
|
+
render(): React.JSX.Element;
|
|
12
12
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { jsx } from 'react/jsx-runtime';
|
|
2
1
|
import { PureComponent } from 'react';
|
|
2
|
+
import { jsx } from 'react/jsx-runtime';
|
|
3
3
|
|
|
4
4
|
const LEFT_BUTTON = 0;
|
|
5
5
|
// Cmd/Ctrl/Shift/Alt + Click should trigger default browser behaviour. Same applies to non-left clicks
|
|
@@ -32,7 +32,7 @@ class ClickableLink extends PureComponent {
|
|
|
32
32
|
children,
|
|
33
33
|
...restProps
|
|
34
34
|
} = this.props;
|
|
35
|
-
return jsx("a", {
|
|
35
|
+
return /*#__PURE__*/jsx("a", {
|
|
36
36
|
href: href,
|
|
37
37
|
...restProps,
|
|
38
38
|
onClick: this.onClick,
|
package/components/link/link.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { jsx } from 'react/jsx-runtime';
|
|
2
1
|
import { PureComponent } from 'react';
|
|
3
2
|
import classNames from 'classnames';
|
|
4
3
|
import joinDataTestAttributes from '../global/data-tests.js';
|
|
5
4
|
import ClickableLink from './clickable-link.js';
|
|
6
5
|
import { l as linkStyles } from '../_helpers/link.js';
|
|
6
|
+
import { jsx } from 'react/jsx-runtime';
|
|
7
7
|
|
|
8
8
|
function linkHOC(ComposedComponent) {
|
|
9
9
|
const isCustom = typeof ComposedComponent !== 'string' && ComposedComponent !== ClickableLink;
|
|
@@ -37,8 +37,8 @@ function linkHOC(ComposedComponent) {
|
|
|
37
37
|
};
|
|
38
38
|
}
|
|
39
39
|
if (useButton) {
|
|
40
|
-
return jsx("button", {
|
|
41
|
-
type:
|
|
40
|
+
return /*#__PURE__*/jsx("button", {
|
|
41
|
+
type: "button",
|
|
42
42
|
...props,
|
|
43
43
|
className: classes,
|
|
44
44
|
onClick: onClick || onPlainLeftClick,
|
|
@@ -46,7 +46,7 @@ function linkHOC(ComposedComponent) {
|
|
|
46
46
|
children: children
|
|
47
47
|
});
|
|
48
48
|
}
|
|
49
|
-
return jsx(ComposedComponent, {
|
|
49
|
+
return /*#__PURE__*/jsx(ComposedComponent, {
|
|
50
50
|
...props,
|
|
51
51
|
href: href,
|
|
52
52
|
className: classes,
|
|
@@ -3,5 +3,5 @@ import * as React from 'react';
|
|
|
3
3
|
import { type ListDataItemProps } from './consts';
|
|
4
4
|
export default class ListCustom<T> extends PureComponent<ListDataItemProps<T>> {
|
|
5
5
|
handleKeyPress: (event: React.KeyboardEvent) => void;
|
|
6
|
-
render():
|
|
6
|
+
render(): React.JSX.Element;
|
|
7
7
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { jsx } from 'react/jsx-runtime';
|
|
2
1
|
import { PureComponent } from 'react';
|
|
3
2
|
import joinDataTestAttributes from '../global/data-tests.js';
|
|
4
3
|
import getEventKey from '../global/get-event-key.js';
|
|
5
4
|
import { getListClasses } from './list.classes.js';
|
|
5
|
+
import { jsx } from 'react/jsx-runtime';
|
|
6
6
|
import 'classnames';
|
|
7
7
|
import './consts.js';
|
|
8
8
|
import '../_helpers/list.js';
|
|
@@ -31,7 +31,7 @@ class ListCustom extends PureComponent {
|
|
|
31
31
|
}, this.props['data-test']);
|
|
32
32
|
const content = typeof template === 'function' ? template(this.props) : template;
|
|
33
33
|
const TagName = tagName || 'span';
|
|
34
|
-
return jsx(TagName, {
|
|
34
|
+
return /*#__PURE__*/jsx(TagName, {
|
|
35
35
|
role: role || 'button',
|
|
36
36
|
"aria-disabled": disabled,
|
|
37
37
|
tabIndex: tabIndex,
|
|
@@ -1,17 +1,13 @@
|
|
|
1
|
-
import { jsx } from 'react/jsx-runtime';
|
|
2
1
|
import { PureComponent } from 'react';
|
|
3
2
|
import classNames from 'classnames';
|
|
4
3
|
import { s as styles } from '../_helpers/list.js';
|
|
4
|
+
import { jsx } from 'react/jsx-runtime';
|
|
5
5
|
|
|
6
|
-
/**
|
|
7
|
-
* @constructor
|
|
8
|
-
* @extends {ReactComponent}
|
|
9
|
-
*/
|
|
10
6
|
class ListHint extends PureComponent {
|
|
11
7
|
render() {
|
|
12
|
-
return jsx("span", {
|
|
8
|
+
return /*#__PURE__*/jsx("span", {
|
|
13
9
|
className: classNames(styles.item, styles.hint),
|
|
14
|
-
"data-test":
|
|
10
|
+
"data-test": "ring-list-hint",
|
|
15
11
|
children: this.props.label
|
|
16
12
|
});
|
|
17
13
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
2
1
|
import { PureComponent } from 'react';
|
|
3
2
|
import classNames from 'classnames';
|
|
4
3
|
import joinDataTestAttributes from '../global/data-tests.js';
|
|
@@ -7,16 +6,18 @@ import Checkbox from '../checkbox/checkbox.js';
|
|
|
7
6
|
import Icon from '../icon/icon.js';
|
|
8
7
|
import getUID from '../global/get-uid.js';
|
|
9
8
|
import Link, { linkHOC } from '../link/link.js';
|
|
10
|
-
import { s as styles } from '../_helpers/list.js';
|
|
11
9
|
import { Type } from './consts.js';
|
|
12
10
|
import { getListClasses } from './list.classes.js';
|
|
11
|
+
import { s as styles } from '../_helpers/list.js';
|
|
12
|
+
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
13
13
|
import { Size } from '../avatar/avatar-size.js';
|
|
14
14
|
import 'util-deprecate';
|
|
15
15
|
import '../global/url.js';
|
|
16
16
|
import '../global/dom.js';
|
|
17
17
|
import '../global/memoize.js';
|
|
18
|
-
import '../_helpers/avatar-info.js';
|
|
19
18
|
import '../avatar/fallback-avatar.js';
|
|
19
|
+
import 'react-compiler-runtime';
|
|
20
|
+
import '../_helpers/avatar-info.js';
|
|
20
21
|
import '@jetbrains/icons/checkmark-12px';
|
|
21
22
|
import '@jetbrains/icons/remove-12px';
|
|
22
23
|
import '../global/compose-refs.js';
|
|
@@ -27,10 +28,6 @@ import '../_helpers/icon-svg.js';
|
|
|
27
28
|
import '../link/clickable-link.js';
|
|
28
29
|
import '../_helpers/link.js';
|
|
29
30
|
|
|
30
|
-
/**
|
|
31
|
-
* @constructor
|
|
32
|
-
* @extends {ReactComponent}
|
|
33
|
-
*/
|
|
34
31
|
const RING_UNIT = 8;
|
|
35
32
|
const DEFAULT_PADDING = 8;
|
|
36
33
|
const CHECKBOX_WIDTH = 28;
|
|
@@ -104,10 +101,10 @@ class ListItem extends PureComponent {
|
|
|
104
101
|
'ring-list-item-selected': checkbox,
|
|
105
102
|
'ring-list-link': isLink
|
|
106
103
|
}, dataTest);
|
|
107
|
-
const labelElement = jsx("span", {
|
|
104
|
+
const labelElement = /*#__PURE__*/jsx("span", {
|
|
108
105
|
className: styles.label,
|
|
109
106
|
title: computedTitle,
|
|
110
|
-
"data-test":
|
|
107
|
+
"data-test": "ring-list-item-label",
|
|
111
108
|
children: label !== null && label !== void 0 ? label : children
|
|
112
109
|
});
|
|
113
110
|
const commonProps = {
|
|
@@ -121,68 +118,68 @@ class ListItem extends PureComponent {
|
|
|
121
118
|
className: classes,
|
|
122
119
|
style,
|
|
123
120
|
disabled,
|
|
124
|
-
children: jsxs(Fragment, {
|
|
125
|
-
children: [jsxs("div", {
|
|
121
|
+
children: /*#__PURE__*/jsxs(Fragment, {
|
|
122
|
+
children: [/*#__PURE__*/jsxs("div", {
|
|
126
123
|
className: styles.top,
|
|
127
124
|
onMouseOut: this.stopBubbling,
|
|
128
125
|
onBlur: this.stopBubbling,
|
|
129
|
-
children: [!showCheckbox && jsxs("div", {
|
|
126
|
+
children: [!showCheckbox && /*#__PURE__*/jsxs("div", {
|
|
130
127
|
className: styles.left,
|
|
131
|
-
children: [leftNodes, glyph && jsx(Icon, {
|
|
128
|
+
children: [leftNodes, glyph && /*#__PURE__*/jsx(Icon, {
|
|
132
129
|
className: styles.glyph,
|
|
133
130
|
glyph: glyph,
|
|
134
131
|
size: this.props.iconSize,
|
|
135
132
|
suppressSizeWarning: this.props.suppressSizeWarning
|
|
136
|
-
}), (avatar || shouldShowGeneratedAvatar) && jsx(Avatar, {
|
|
133
|
+
}), (avatar || shouldShowGeneratedAvatar) && /*#__PURE__*/jsx(Avatar, {
|
|
137
134
|
className: styles.avatar,
|
|
138
135
|
url: avatar,
|
|
139
136
|
size: Size.Size20,
|
|
140
137
|
subavatar: subavatar,
|
|
141
138
|
username: username
|
|
142
139
|
})]
|
|
143
|
-
}), labelWrapper ? labelWrapper(labelElement) : labelElement, description && jsx("span", {
|
|
140
|
+
}), labelWrapper ? labelWrapper(labelElement) : labelElement, description && /*#__PURE__*/jsx("span", {
|
|
144
141
|
className: styles.description,
|
|
145
|
-
"data-test":
|
|
142
|
+
"data-test": "ring-list-item-description",
|
|
146
143
|
children: description
|
|
147
|
-
}), jsxs("div", {
|
|
144
|
+
}), /*#__PURE__*/jsxs("div", {
|
|
148
145
|
className: styles.right,
|
|
149
|
-
children: [rightGlyph && jsx(Icon, {
|
|
146
|
+
children: [rightGlyph && /*#__PURE__*/jsx(Icon, {
|
|
150
147
|
className: styles.rightGlyph,
|
|
151
148
|
glyph: rightGlyph,
|
|
152
149
|
suppressSizeWarning: this.props.suppressSizeWarning,
|
|
153
150
|
size: this.props.iconSize
|
|
154
|
-
}), icon && jsx("div", {
|
|
151
|
+
}), icon && /*#__PURE__*/jsx("div", {
|
|
155
152
|
className: styles.icon,
|
|
156
153
|
style: {
|
|
157
154
|
backgroundImage: `url("${icon}")`
|
|
158
155
|
}
|
|
159
156
|
}), rightNodes]
|
|
160
157
|
})]
|
|
161
|
-
}), details && jsx("div", {
|
|
158
|
+
}), details && /*#__PURE__*/jsx("div", {
|
|
162
159
|
className: detailsClasses,
|
|
163
160
|
children: details
|
|
164
161
|
})]
|
|
165
162
|
})
|
|
166
163
|
};
|
|
167
164
|
const LinkComponentToUse = LinkComponent ? linkHOC(LinkComponent) : Link;
|
|
168
|
-
return jsxs("div", {
|
|
165
|
+
return /*#__PURE__*/jsxs("div", {
|
|
169
166
|
className: styles.itemContainer,
|
|
170
167
|
"data-test": combinedDataTest,
|
|
171
|
-
children: [showCheckbox && jsx("div", {
|
|
168
|
+
children: [showCheckbox && /*#__PURE__*/jsx("div", {
|
|
172
169
|
className: styles.checkboxContainer,
|
|
173
|
-
children: jsx(Checkbox, {
|
|
170
|
+
children: /*#__PURE__*/jsx(Checkbox, {
|
|
174
171
|
"aria-labelledby": this.id,
|
|
175
172
|
checked: checkbox,
|
|
176
173
|
disabled: disabled,
|
|
177
174
|
onChange: onCheckboxChange,
|
|
178
175
|
onClick: this.stopBubbling
|
|
179
176
|
})
|
|
180
|
-
}), isLink ? jsx(LinkComponentToUse, {
|
|
177
|
+
}), isLink ? /*#__PURE__*/jsx(LinkComponentToUse, {
|
|
181
178
|
pseudo: !restLinkProps.href,
|
|
182
179
|
...commonProps,
|
|
183
180
|
...restLinkProps
|
|
184
|
-
}) : jsx("button", {
|
|
185
|
-
type:
|
|
181
|
+
}) : /*#__PURE__*/jsx("button", {
|
|
182
|
+
type: "button",
|
|
186
183
|
...commonProps
|
|
187
184
|
})]
|
|
188
185
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PureComponent } from 'react';
|
|
2
2
|
import { type ListDataItemProps } from './consts';
|
|
3
3
|
export default class ListSeparator<T> extends PureComponent<ListDataItemProps<T>> {
|
|
4
|
-
render(): import("react
|
|
4
|
+
render(): import("react").JSX.Element;
|
|
5
5
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { jsx } from 'react/jsx-runtime';
|
|
2
1
|
import { PureComponent } from 'react';
|
|
3
2
|
import classNames from 'classnames';
|
|
4
3
|
import { s as styles } from '../_helpers/list.js';
|
|
4
|
+
import { jsx } from 'react/jsx-runtime';
|
|
5
5
|
|
|
6
6
|
class ListSeparator extends PureComponent {
|
|
7
7
|
render() {
|
|
@@ -13,8 +13,8 @@ class ListSeparator extends PureComponent {
|
|
|
13
13
|
const classes = classNames(styles.separator, className, {
|
|
14
14
|
[styles.separator_first]: isFirst
|
|
15
15
|
});
|
|
16
|
-
return jsx("span", {
|
|
17
|
-
"data-test":
|
|
16
|
+
return /*#__PURE__*/jsx("span", {
|
|
17
|
+
"data-test": "ring-list-separator",
|
|
18
18
|
className: classes,
|
|
19
19
|
children: description
|
|
20
20
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PureComponent } from 'react';
|
|
2
2
|
import { type ListDataItemProps } from './consts';
|
|
3
3
|
export default class ListTitle<T> extends PureComponent<ListDataItemProps<T>> {
|
|
4
|
-
render(): import("react
|
|
4
|
+
render(): import("react").JSX.Element;
|
|
5
5
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
1
|
import { PureComponent } from 'react';
|
|
3
2
|
import classNames from 'classnames';
|
|
4
3
|
import { s as styles } from '../_helpers/list.js';
|
|
4
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
5
5
|
|
|
6
6
|
class ListTitle extends PureComponent {
|
|
7
7
|
render() {
|
|
@@ -14,16 +14,16 @@ class ListTitle extends PureComponent {
|
|
|
14
14
|
const classes = classNames(styles.title, className, {
|
|
15
15
|
[styles.title_first]: isFirst
|
|
16
16
|
});
|
|
17
|
-
return jsxs("span", {
|
|
17
|
+
return /*#__PURE__*/jsxs("span", {
|
|
18
18
|
className: classes,
|
|
19
|
-
"data-test":
|
|
20
|
-
children: [jsx("span", {
|
|
19
|
+
"data-test": "ring-list-title",
|
|
20
|
+
children: [/*#__PURE__*/jsx("span", {
|
|
21
21
|
className: classNames(styles.label, styles.text),
|
|
22
|
-
"data-test":
|
|
22
|
+
"data-test": "ring-list-title-label",
|
|
23
23
|
children: label
|
|
24
|
-
}), jsx("div", {
|
|
24
|
+
}), /*#__PURE__*/jsx("div", {
|
|
25
25
|
className: styles.description,
|
|
26
|
-
"data-test":
|
|
26
|
+
"data-test": "ring-list-title-description",
|
|
27
27
|
children: description
|
|
28
28
|
})]
|
|
29
29
|
});
|
|
@@ -3,7 +3,6 @@ import HubSourceUsersGroups from '../hub-source/hub-source-users-groups.js';
|
|
|
3
3
|
import List from './list.js';
|
|
4
4
|
import '../hub-source/hub-source.js';
|
|
5
5
|
import 'react';
|
|
6
|
-
import 'react/jsx-runtime';
|
|
7
6
|
import 'classnames';
|
|
8
7
|
import 'react-virtualized/dist/es/List';
|
|
9
8
|
import 'react-virtualized/dist/es/AutoSizer';
|
|
@@ -22,12 +21,14 @@ import 'combokeys';
|
|
|
22
21
|
import '../global/sniffer.js';
|
|
23
22
|
import 'sniffr';
|
|
24
23
|
import '../global/create-stateful-context.js';
|
|
24
|
+
import 'react-compiler-runtime';
|
|
25
|
+
import 'react/jsx-runtime';
|
|
25
26
|
import './list-item.js';
|
|
26
27
|
import '../avatar/avatar.js';
|
|
27
28
|
import '../global/url.js';
|
|
28
|
-
import '../_helpers/avatar-info.js';
|
|
29
|
-
import '../avatar/avatar-size.js';
|
|
30
29
|
import '../avatar/fallback-avatar.js';
|
|
30
|
+
import '../avatar/avatar-size.js';
|
|
31
|
+
import '../_helpers/avatar-info.js';
|
|
31
32
|
import '../checkbox/checkbox.js';
|
|
32
33
|
import '@jetbrains/icons/checkmark-12px';
|
|
33
34
|
import '@jetbrains/icons/remove-12px';
|
|
@@ -39,9 +40,9 @@ import '../control-help/control-help.js';
|
|
|
39
40
|
import '../link/link.js';
|
|
40
41
|
import '../link/clickable-link.js';
|
|
41
42
|
import '../_helpers/link.js';
|
|
42
|
-
import '../_helpers/list.js';
|
|
43
43
|
import './consts.js';
|
|
44
44
|
import './list.classes.js';
|
|
45
|
+
import '../_helpers/list.js';
|
|
45
46
|
import './list-custom.js';
|
|
46
47
|
import '../global/get-event-key.js';
|
|
47
48
|
import './list-title.js';
|
|
@@ -54,7 +55,7 @@ const defaultOptions = {
|
|
|
54
55
|
UsersTitle: 'Users',
|
|
55
56
|
NoUsersTitle: 'No users',
|
|
56
57
|
getPluralForUserCount: count => {
|
|
57
|
-
// eslint-disable-next-line
|
|
58
|
+
// eslint-disable-next-line no-magic-numbers
|
|
58
59
|
const plural = count % 10 !== 1 || count % 100 === 11;
|
|
59
60
|
return `${count} member${plural ? 's' : ''}`;
|
|
60
61
|
}
|
|
@@ -50,7 +50,7 @@ export declare const ActiveItemContext: {
|
|
|
50
50
|
ValueContext: import("react").Context<string | undefined>;
|
|
51
51
|
UpdateContext: import("react").Context<(value: string | undefined) => void>;
|
|
52
52
|
Provider: {
|
|
53
|
-
({ children }: import("../global/create-stateful-context").ProviderProps): import("react
|
|
53
|
+
({ children }: import("../global/create-stateful-context").ProviderProps): import("react").JSX.Element;
|
|
54
54
|
displayName: string;
|
|
55
55
|
};
|
|
56
56
|
useUpdate: (value: string | undefined, skipUpdate?: boolean) => void;
|
|
@@ -151,19 +151,19 @@ export default class List<T = unknown> extends Component<ListProps<T>, ListState
|
|
|
151
151
|
getVisibleListHeight(maxHeight: number): number;
|
|
152
152
|
private _deprecatedGenerateKeyFromContent;
|
|
153
153
|
getId(item: ListDataItem<T> | null): string | undefined;
|
|
154
|
-
renderItem: ({ index, style, isScrolling, parent, key }: Partial<ListRowProps>) => import("react
|
|
154
|
+
renderItem: ({ index, style, isScrolling, parent, key }: Partial<ListRowProps>) => import("react").JSX.Element;
|
|
155
155
|
addItemDataTestToProp: (props: ListDataItemProps<T>) => ListDataItemProps<T>;
|
|
156
156
|
virtualizedListRef: (el: VirtualizedList | null) => void;
|
|
157
157
|
containerRef: (el: HTMLElement | null) => void;
|
|
158
158
|
private _inner?;
|
|
159
159
|
get inner(): HTMLElement | null | undefined;
|
|
160
|
-
renderVirtualizedInner({ height, maxHeight, autoHeight, rowCount, isScrolling, onChildScroll, scrollTop, registerChild, }: RenderVirtualizedInnerParams): import("react
|
|
161
|
-
renderVirtualized(maxHeight: number | null | undefined, rowCount: number): import("react
|
|
162
|
-
renderSimple(maxHeight: number | null | undefined, rowCount: number): import("react
|
|
160
|
+
renderVirtualizedInner({ height, maxHeight, autoHeight, rowCount, isScrolling, onChildScroll, scrollTop, registerChild, }: RenderVirtualizedInnerParams): import("react").JSX.Element;
|
|
161
|
+
renderVirtualized(maxHeight: number | null | undefined, rowCount: number): import("react").JSX.Element;
|
|
162
|
+
renderSimple(maxHeight: number | null | undefined, rowCount: number): import("react").JSX.Element;
|
|
163
163
|
id: string;
|
|
164
164
|
shortcutsScope: string;
|
|
165
165
|
shortcutsMap: ShortcutsMap;
|
|
166
166
|
/** @override */
|
|
167
|
-
render(): import("react
|
|
167
|
+
render(): import("react").JSX.Element;
|
|
168
168
|
}
|
|
169
169
|
export type ListAttrs<T = unknown> = React.JSX.LibraryManagedAttributes<typeof List, ListProps<T>>;
|