@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
|
@@ -16,8 +16,8 @@ export interface TabsProps extends Omit<CollapsibleTabsProps, 'onSelect' | 'chil
|
|
|
16
16
|
}
|
|
17
17
|
declare class Tabs extends PureComponent<TabsProps> {
|
|
18
18
|
handleSelect: (arg: string) => () => void | undefined;
|
|
19
|
-
getTabTitle: (child: ReactElement<TabProps>, i: number) =>
|
|
20
|
-
render():
|
|
19
|
+
getTabTitle: (child: ReactElement<TabProps>, i: number) => React.JSX.Element;
|
|
20
|
+
render(): React.JSX.Element;
|
|
21
21
|
}
|
|
22
22
|
export type TabsAttrs = React.JSX.LibraryManagedAttributes<typeof Tabs, TabsProps>;
|
|
23
23
|
export default Tabs;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
1
|
import * as React from 'react';
|
|
3
2
|
import { PureComponent } from 'react';
|
|
4
3
|
import classNames from 'classnames';
|
|
@@ -7,6 +6,8 @@ import joinDataTestAttributes from '../global/data-tests.js';
|
|
|
7
6
|
import { s as styles, T as TabLink } from '../_helpers/tab-link.js';
|
|
8
7
|
import CollapsibleTabs from './collapsible-tabs.js';
|
|
9
8
|
import { CustomItem } from './custom-item.js';
|
|
9
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
10
|
+
import 'react-compiler-runtime';
|
|
10
11
|
import '../link/link.js';
|
|
11
12
|
import '../link/clickable-link.js';
|
|
12
13
|
import '../_helpers/link.js';
|
|
@@ -40,9 +41,9 @@ import '../global/create-stateful-context.js';
|
|
|
40
41
|
import '../list/list-item.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 '../checkbox/checkbox.js';
|
|
47
48
|
import '@jetbrains/icons/checkmark-12px';
|
|
48
49
|
import '@jetbrains/icons/remove-12px';
|
|
@@ -51,9 +52,9 @@ import '../icon/icon.constants.js';
|
|
|
51
52
|
import '../_helpers/icon-svg.js';
|
|
52
53
|
import '../global/compose-refs.js';
|
|
53
54
|
import '../control-help/control-help.js';
|
|
54
|
-
import '../_helpers/list.js';
|
|
55
55
|
import '../list/consts.js';
|
|
56
56
|
import '../list/list.classes.js';
|
|
57
|
+
import '../_helpers/list.js';
|
|
57
58
|
import '../list/list-custom.js';
|
|
58
59
|
import '../global/get-event-key.js';
|
|
59
60
|
import '../list/list-title.js';
|
|
@@ -93,7 +94,7 @@ class Tabs extends PureComponent {
|
|
|
93
94
|
const titleClasses = classNames(styles.title, className, isSelected && activeClassName, {
|
|
94
95
|
[styles.selected]: isSelected
|
|
95
96
|
});
|
|
96
|
-
return jsx(TabLink, {
|
|
97
|
+
return /*#__PURE__*/jsx(TabLink, {
|
|
97
98
|
title: title,
|
|
98
99
|
isSelected: isSelected,
|
|
99
100
|
href: href,
|
|
@@ -116,18 +117,18 @@ class Tabs extends PureComponent {
|
|
|
116
117
|
} = this.props;
|
|
117
118
|
const classes = classNames(styles.tabs, className);
|
|
118
119
|
const childrenArray = React.Children.toArray(children).filter(Boolean);
|
|
119
|
-
return jsxs("div", {
|
|
120
|
+
return /*#__PURE__*/jsxs("div", {
|
|
120
121
|
className: classes,
|
|
121
122
|
"data-test": joinDataTestAttributes('ring-dumb-tabs', dataTest),
|
|
122
|
-
children: [autoCollapse === true ? jsx(CollapsibleTabs, {
|
|
123
|
+
children: [autoCollapse === true ? /*#__PURE__*/jsx(CollapsibleTabs, {
|
|
123
124
|
...restProps,
|
|
124
125
|
onSelect: onSelect ? this.handleSelect : undefined,
|
|
125
126
|
selected: selected,
|
|
126
127
|
children: childrenArray
|
|
127
|
-
}) : jsx("div", {
|
|
128
|
+
}) : /*#__PURE__*/jsx("div", {
|
|
128
129
|
className: styles.titles,
|
|
129
130
|
children: childrenArray.map(this.getTabTitle)
|
|
130
|
-
}), jsx("div", {
|
|
131
|
+
}), /*#__PURE__*/jsx("div", {
|
|
131
132
|
className: classNames(tabContainerClassName),
|
|
132
133
|
children: childrenArray.find(({
|
|
133
134
|
props
|
|
@@ -1,10 +1,11 @@
|
|
|
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 Tabs from './dumb-tabs.js';
|
|
4
|
+
import { jsx } from 'react/jsx-runtime';
|
|
5
5
|
import 'classnames';
|
|
6
6
|
import '../global/memoize.js';
|
|
7
7
|
import '../_helpers/tab-link.js';
|
|
8
|
+
import 'react-compiler-runtime';
|
|
8
9
|
import '../link/link.js';
|
|
9
10
|
import '../link/clickable-link.js';
|
|
10
11
|
import '../_helpers/link.js';
|
|
@@ -39,9 +40,9 @@ import '../global/create-stateful-context.js';
|
|
|
39
40
|
import '../list/list-item.js';
|
|
40
41
|
import '../avatar/avatar.js';
|
|
41
42
|
import '../global/url.js';
|
|
42
|
-
import '../_helpers/avatar-info.js';
|
|
43
|
-
import '../avatar/avatar-size.js';
|
|
44
43
|
import '../avatar/fallback-avatar.js';
|
|
44
|
+
import '../avatar/avatar-size.js';
|
|
45
|
+
import '../_helpers/avatar-info.js';
|
|
45
46
|
import '../checkbox/checkbox.js';
|
|
46
47
|
import '@jetbrains/icons/checkmark-12px';
|
|
47
48
|
import '@jetbrains/icons/remove-12px';
|
|
@@ -50,9 +51,9 @@ import '../icon/icon.constants.js';
|
|
|
50
51
|
import '../_helpers/icon-svg.js';
|
|
51
52
|
import '../global/compose-refs.js';
|
|
52
53
|
import '../control-help/control-help.js';
|
|
53
|
-
import '../_helpers/list.js';
|
|
54
54
|
import '../list/consts.js';
|
|
55
55
|
import '../list/list.classes.js';
|
|
56
|
+
import '../_helpers/list.js';
|
|
56
57
|
import '../list/list-custom.js';
|
|
57
58
|
import '../global/get-event-key.js';
|
|
58
59
|
import '../list/list-title.js';
|
|
@@ -87,7 +88,7 @@ class SmartTabs extends PureComponent {
|
|
|
87
88
|
'data-test': dataTest,
|
|
88
89
|
...restProps
|
|
89
90
|
} = this.props;
|
|
90
|
-
return jsx(Tabs, {
|
|
91
|
+
return /*#__PURE__*/jsx(Tabs, {
|
|
91
92
|
"data-test": joinDataTestAttributes('ring-smart-tabs', dataTest),
|
|
92
93
|
selected: this.state.selected,
|
|
93
94
|
onSelect: this.handleSelect,
|
|
@@ -5,6 +5,6 @@ export interface TabLinkProps extends Omit<LinkProps, 'title' | 'children'> {
|
|
|
5
5
|
collapsed?: boolean;
|
|
6
6
|
title: ReactNode | ((isSelected: boolean, collapsed: boolean | undefined) => ReactNode);
|
|
7
7
|
}
|
|
8
|
-
declare function TabLink({ isSelected, title, collapsed, ...restProps }: TabLinkProps): import("react
|
|
8
|
+
declare function TabLink({ isSelected, title, collapsed, ...restProps }: TabLinkProps): import("react").JSX.Element;
|
|
9
9
|
declare const _default: import("react").MemoExoticComponent<typeof TabLink>;
|
|
10
10
|
export default _default;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import 'react
|
|
1
|
+
import 'react-compiler-runtime';
|
|
2
2
|
import 'react';
|
|
3
3
|
import '../link/link.js';
|
|
4
4
|
export { T as default } from '../_helpers/tab-link.js';
|
|
5
|
+
import 'react/jsx-runtime';
|
|
5
6
|
import 'classnames';
|
|
6
7
|
import '../global/data-tests.js';
|
|
7
8
|
import '../link/clickable-link.js';
|
package/components/tabs/tab.d.ts
CHANGED
package/components/tabs/tab.js
CHANGED
|
@@ -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 joinDataTestAttributes from '../global/data-tests.js';
|
|
4
|
+
import { jsx } from 'react/jsx-runtime';
|
|
5
5
|
|
|
6
6
|
class Tab extends PureComponent {
|
|
7
7
|
render() {
|
|
@@ -10,7 +10,7 @@ class Tab extends PureComponent {
|
|
|
10
10
|
children,
|
|
11
11
|
'data-test': dataTest
|
|
12
12
|
} = this.props;
|
|
13
|
-
return jsx("div", {
|
|
13
|
+
return /*#__PURE__*/jsx("div", {
|
|
14
14
|
"data-test": joinDataTestAttributes('ring-tab', dataTest),
|
|
15
15
|
className: classNames(className),
|
|
16
16
|
children: children
|
package/components/tabs/tabs.js
CHANGED
|
@@ -2,14 +2,15 @@ export { CustomItem } from './custom-item.js';
|
|
|
2
2
|
export { default as Tabs } from './dumb-tabs.js';
|
|
3
3
|
export { default as SmartTabs } from './smart-tabs.js';
|
|
4
4
|
export { default as Tab } from './tab.js';
|
|
5
|
-
import 'react/jsx-runtime';
|
|
6
5
|
import 'react';
|
|
7
6
|
import 'classnames';
|
|
8
7
|
import '../global/memoize.js';
|
|
9
8
|
import '../global/data-tests.js';
|
|
10
9
|
import '../_helpers/tab-link.js';
|
|
10
|
+
import 'react-compiler-runtime';
|
|
11
11
|
import '../link/link.js';
|
|
12
12
|
import '../link/clickable-link.js';
|
|
13
|
+
import 'react/jsx-runtime';
|
|
13
14
|
import '../_helpers/link.js';
|
|
14
15
|
import './collapsible-tabs.js';
|
|
15
16
|
import 'fastdom';
|
|
@@ -42,9 +43,9 @@ import '../global/create-stateful-context.js';
|
|
|
42
43
|
import '../list/list-item.js';
|
|
43
44
|
import '../avatar/avatar.js';
|
|
44
45
|
import '../global/url.js';
|
|
45
|
-
import '../_helpers/avatar-info.js';
|
|
46
|
-
import '../avatar/avatar-size.js';
|
|
47
46
|
import '../avatar/fallback-avatar.js';
|
|
47
|
+
import '../avatar/avatar-size.js';
|
|
48
|
+
import '../_helpers/avatar-info.js';
|
|
48
49
|
import '../checkbox/checkbox.js';
|
|
49
50
|
import '@jetbrains/icons/checkmark-12px';
|
|
50
51
|
import '@jetbrains/icons/remove-12px';
|
|
@@ -53,9 +54,9 @@ import '../icon/icon.constants.js';
|
|
|
53
54
|
import '../_helpers/icon-svg.js';
|
|
54
55
|
import '../global/compose-refs.js';
|
|
55
56
|
import '../control-help/control-help.js';
|
|
56
|
-
import '../_helpers/list.js';
|
|
57
57
|
import '../list/consts.js';
|
|
58
58
|
import '../list/list.classes.js';
|
|
59
|
+
import '../_helpers/list.js';
|
|
59
60
|
import '../list/list-custom.js';
|
|
60
61
|
import '../global/get-event-key.js';
|
|
61
62
|
import '../list/list-title.js';
|
package/components/tag/tag.d.ts
CHANGED
|
@@ -50,11 +50,11 @@ export default class Tag extends PureComponent<TagProps> {
|
|
|
50
50
|
tagNode?: HTMLElement | null;
|
|
51
51
|
tagRef: (el: HTMLElement | null) => void;
|
|
52
52
|
setDocumentClickListener(setListener: boolean): void;
|
|
53
|
-
renderCustomIcon():
|
|
53
|
+
renderCustomIcon(): React.JSX.Element | null;
|
|
54
54
|
private _renderImageElement;
|
|
55
|
-
renderImage():
|
|
56
|
-
renderAvatar():
|
|
57
|
-
renderRemoveIcon():
|
|
58
|
-
render():
|
|
55
|
+
renderImage(): React.JSX.Element | null;
|
|
56
|
+
renderAvatar(): React.JSX.Element | null;
|
|
57
|
+
renderRemoveIcon(): React.JSX.Element | null;
|
|
58
|
+
render(): React.JSX.Element;
|
|
59
59
|
}
|
|
60
60
|
export type TagAttrs = React.JSX.LibraryManagedAttributes<typeof Tag, TagProps>;
|
package/components/tag/tag.js
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
2
1
|
import { PureComponent } from 'react';
|
|
3
2
|
import classNames from 'classnames';
|
|
4
3
|
import closeIcon from '@jetbrains/icons/close-12px';
|
|
5
4
|
import Icon from '../icon/icon.js';
|
|
6
5
|
import { Button } from '../button/button.js';
|
|
7
6
|
import '../global/controls-height.js';
|
|
7
|
+
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
8
8
|
import { ControlsHeight } from '../global/configuration.js';
|
|
9
9
|
import 'util-deprecate';
|
|
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 '@jetbrains/icons/chevron-down';
|
|
14
15
|
import '@jetbrains/icons/chevron-12px-down';
|
|
@@ -36,10 +37,10 @@ class Tag extends PureComponent {
|
|
|
36
37
|
disabled: false,
|
|
37
38
|
focused: false,
|
|
38
39
|
interactive: true,
|
|
39
|
-
render: (props, interactive) => interactive ? jsx("button", {
|
|
40
|
-
type:
|
|
40
|
+
render: (props, interactive) => interactive ? /*#__PURE__*/jsx("button", {
|
|
41
|
+
type: "button",
|
|
41
42
|
...props
|
|
42
|
-
}) : jsx("span", {
|
|
43
|
+
}) : /*#__PURE__*/jsx("span", {
|
|
43
44
|
...props
|
|
44
45
|
}),
|
|
45
46
|
tagType: TagType.DEFAULT
|
|
@@ -85,7 +86,7 @@ class Tag extends PureComponent {
|
|
|
85
86
|
}
|
|
86
87
|
renderCustomIcon() {
|
|
87
88
|
if (this.props.rgTagIcon) {
|
|
88
|
-
return jsx(Icon, {
|
|
89
|
+
return /*#__PURE__*/jsx(Icon, {
|
|
89
90
|
className: styles.icon,
|
|
90
91
|
title: this.props.rgTagTitle,
|
|
91
92
|
glyph: this.props.rgTagIcon
|
|
@@ -98,7 +99,7 @@ class Tag extends PureComponent {
|
|
|
98
99
|
[styles.customIcon]: this.props.icon,
|
|
99
100
|
[styles.avatarIcon]: avatarSrc
|
|
100
101
|
});
|
|
101
|
-
return jsx("img", {
|
|
102
|
+
return /*#__PURE__*/jsx("img", {
|
|
102
103
|
alt: avatarSrc ? 'Avatar' : 'Icon',
|
|
103
104
|
className: classes,
|
|
104
105
|
src: avatarSrc || this.props.icon
|
|
@@ -112,7 +113,7 @@ class Tag extends PureComponent {
|
|
|
112
113
|
}
|
|
113
114
|
renderAvatar() {
|
|
114
115
|
if (this.props.avatar) {
|
|
115
|
-
return jsx("span", {
|
|
116
|
+
return /*#__PURE__*/jsx("span", {
|
|
116
117
|
className: styles.avatarContainer,
|
|
117
118
|
children: this._renderImageElement(this.props.avatar)
|
|
118
119
|
});
|
|
@@ -121,10 +122,10 @@ class Tag extends PureComponent {
|
|
|
121
122
|
}
|
|
122
123
|
renderRemoveIcon() {
|
|
123
124
|
if (!this.props.readOnly && this.props.onRemove) {
|
|
124
|
-
return jsx(Button, {
|
|
125
|
-
title:
|
|
125
|
+
return /*#__PURE__*/jsx(Button, {
|
|
126
|
+
title: "Remove",
|
|
126
127
|
icon: closeIcon,
|
|
127
|
-
"data-test":
|
|
128
|
+
"data-test": "ring-tag-remove",
|
|
128
129
|
className: styles.remove,
|
|
129
130
|
onClick: this.props.onRemove,
|
|
130
131
|
style: {
|
|
@@ -146,7 +147,7 @@ class Tag extends PureComponent {
|
|
|
146
147
|
textColor,
|
|
147
148
|
render
|
|
148
149
|
} = this.props;
|
|
149
|
-
return jsxs("span", {
|
|
150
|
+
return /*#__PURE__*/jsxs("span", {
|
|
150
151
|
className: classNames(styles.container, this.props.containerClassName, styles[this.props.tagType], {
|
|
151
152
|
[styles.outline]: this.props.outline,
|
|
152
153
|
[styles.interactive]: this.props.interactive
|
|
@@ -161,8 +162,8 @@ class Tag extends PureComponent {
|
|
|
161
162
|
color: textColor
|
|
162
163
|
},
|
|
163
164
|
disabled: this.props.disabled,
|
|
164
|
-
children: jsxs(Fragment, {
|
|
165
|
-
children: [this.renderAvatar(), this.renderCustomIcon(), this.renderImage(), jsx("span", {
|
|
165
|
+
children: /*#__PURE__*/jsxs(Fragment, {
|
|
166
|
+
children: [this.renderAvatar(), this.renderCustomIcon(), this.renderImage(), /*#__PURE__*/jsx("span", {
|
|
166
167
|
className: styles.content,
|
|
167
168
|
children: this.props.children
|
|
168
169
|
})]
|
|
@@ -107,7 +107,7 @@ export default class TagsInput extends PureComponent<TagsInputProps, TagsInputSt
|
|
|
107
107
|
handleTagCreation: (label: string | undefined) => void;
|
|
108
108
|
select?: Select | null;
|
|
109
109
|
selectRef: (el: Select | null) => void;
|
|
110
|
-
render():
|
|
110
|
+
render(): React.JSX.Element;
|
|
111
111
|
}
|
|
112
112
|
export declare const RerenderableTagsInput: React.ForwardRefExoticComponent<TagsInputProps & React.RefAttributes<TagsInput>>;
|
|
113
113
|
export type TagsInputAttrs = React.JSX.LibraryManagedAttributes<typeof TagsInput, TagsInputProps>;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
1
|
import { PureComponent } from 'react';
|
|
3
2
|
import classNames from 'classnames';
|
|
4
3
|
import getEventKey from '../global/get-event-key.js';
|
|
@@ -11,12 +10,14 @@ import { S as Size, i as inputStyles } from '../_helpers/input.js';
|
|
|
11
10
|
import { ControlsHeightContext } from '../global/controls-height.js';
|
|
12
11
|
import getUID from '../global/get-uid.js';
|
|
13
12
|
import { ControlLabel } from '../control-label/control-label.js';
|
|
13
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
14
14
|
import '@jetbrains/icons/chevron-down';
|
|
15
15
|
import '@jetbrains/icons/close-12px';
|
|
16
16
|
import 'dequal';
|
|
17
17
|
import '../global/data-tests.js';
|
|
18
18
|
import '../global/typescript-utils.js';
|
|
19
19
|
import '../_helpers/anchor.js';
|
|
20
|
+
import 'react-compiler-runtime';
|
|
20
21
|
import '../button/button.js';
|
|
21
22
|
import '@jetbrains/icons/chevron-12px-down';
|
|
22
23
|
import 'util-deprecate';
|
|
@@ -29,9 +30,9 @@ import '../global/configuration.js';
|
|
|
29
30
|
import '../avatar/avatar.js';
|
|
30
31
|
import '../global/url.js';
|
|
31
32
|
import '../global/dom.js';
|
|
32
|
-
import '../_helpers/avatar-info.js';
|
|
33
|
-
import '../avatar/avatar-size.js';
|
|
34
33
|
import '../avatar/fallback-avatar.js';
|
|
34
|
+
import '../avatar/avatar-size.js';
|
|
35
|
+
import '../_helpers/avatar-info.js';
|
|
35
36
|
import '../popup/popup.js';
|
|
36
37
|
import 'react-dom';
|
|
37
38
|
import '../global/schedule-raf.js';
|
|
@@ -60,9 +61,9 @@ import '../global/compose-refs.js';
|
|
|
60
61
|
import '../control-help/control-help.js';
|
|
61
62
|
import '../link/link.js';
|
|
62
63
|
import '../_helpers/link.js';
|
|
63
|
-
import '../_helpers/list.js';
|
|
64
64
|
import '../list/consts.js';
|
|
65
65
|
import '../list/list.classes.js';
|
|
66
|
+
import '../_helpers/list.js';
|
|
66
67
|
import '../list/list-custom.js';
|
|
67
68
|
import '../list/list-title.js';
|
|
68
69
|
import '../list/list-separator.js';
|
|
@@ -345,19 +346,19 @@ class TagsInput extends PureComponent {
|
|
|
345
346
|
[styles.tagsInputDisabled]: disabled,
|
|
346
347
|
[styles.tagsInputFocused]: focused
|
|
347
348
|
}, this.props.className);
|
|
348
|
-
return jsxs("div", {
|
|
349
|
+
return /*#__PURE__*/jsxs("div", {
|
|
349
350
|
// it transfers focus to input
|
|
350
|
-
role:
|
|
351
|
+
role: "presentation",
|
|
351
352
|
className: classes,
|
|
352
353
|
onKeyDown: this.handleKeyDown,
|
|
353
354
|
onClick: this.clickHandler,
|
|
354
355
|
ref: this.nodeRef,
|
|
355
|
-
children: [label && jsx(ControlLabel, {
|
|
356
|
+
children: [label && /*#__PURE__*/jsx(ControlLabel, {
|
|
356
357
|
htmlFor: this.id,
|
|
357
358
|
disabled: disabled,
|
|
358
359
|
type: labelType,
|
|
359
360
|
children: label
|
|
360
|
-
}), jsx(TagsList, {
|
|
361
|
+
}), /*#__PURE__*/jsx(TagsList, {
|
|
361
362
|
tags: tags,
|
|
362
363
|
activeIndex: activeIndex,
|
|
363
364
|
disabled: disabled,
|
|
@@ -367,7 +368,7 @@ class TagsInput extends PureComponent {
|
|
|
367
368
|
tagClassName: styles.tag,
|
|
368
369
|
handleClick: this.handleClick,
|
|
369
370
|
customTagComponent: this.props.customTagComponent,
|
|
370
|
-
children: jsx(Select, {
|
|
371
|
+
children: /*#__PURE__*/jsx(Select, {
|
|
371
372
|
id: this.id,
|
|
372
373
|
ref: this.selectRef,
|
|
373
374
|
size: Select.Size.AUTO,
|
|
@@ -27,8 +27,8 @@ export default class TagsList<T extends TagType> extends Component<TagsListProps
|
|
|
27
27
|
handleClick: () => typeof noop;
|
|
28
28
|
handleRemove: () => typeof noop;
|
|
29
29
|
};
|
|
30
|
-
renderTag(tag: T, focusTag: boolean):
|
|
31
|
-
render():
|
|
30
|
+
renderTag(tag: T, focusTag: boolean): React.JSX.Element;
|
|
31
|
+
render(): React.JSX.Element;
|
|
32
32
|
}
|
|
33
33
|
export type TagsListAttrs<T extends TagType = TagType> = React.JSX.LibraryManagedAttributes<typeof TagsList, TagsListProps<T>>;
|
|
34
34
|
export {};
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import { jsxs } from 'react/jsx-runtime';
|
|
2
1
|
import { Component, createElement } from 'react';
|
|
3
2
|
import classNames from 'classnames';
|
|
4
3
|
import Tag from '../tag/tag.js';
|
|
4
|
+
import { jsxs } from 'react/jsx-runtime';
|
|
5
5
|
import '@jetbrains/icons/close-12px';
|
|
6
6
|
import '../icon/icon.js';
|
|
7
7
|
import 'util-deprecate';
|
|
8
8
|
import '../icon/icon.constants.js';
|
|
9
9
|
import '../_helpers/icon-svg.js';
|
|
10
|
+
import 'react-compiler-runtime';
|
|
10
11
|
import '../global/memoize.js';
|
|
11
12
|
import '../button/button.js';
|
|
12
13
|
import '@jetbrains/icons/chevron-down';
|
|
@@ -60,8 +61,8 @@ class TagsList extends Component {
|
|
|
60
61
|
} = this.props;
|
|
61
62
|
const classes = classNames('ring-js-shortcuts', className);
|
|
62
63
|
const tagsList = (this.props.tags || []).map((tag, index) => this.renderTag(tag, this.props.activeIndex === index));
|
|
63
|
-
return jsxs("div", {
|
|
64
|
-
"data-test":
|
|
64
|
+
return /*#__PURE__*/jsxs("div", {
|
|
65
|
+
"data-test": "ring-tags-list",
|
|
65
66
|
className: classes,
|
|
66
67
|
...props,
|
|
67
68
|
children: [tagsList, children]
|
package/components/text/text.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
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 = {"text":"ring-text-text","sizeS":"ring-text-sizeS","sizeM":"ring-text-sizeM","sizeL":"ring-text-sizeL","info":"ring-text-info","bold":"ring-text-bold"};
|
|
6
6
|
|
|
@@ -33,7 +33,7 @@ class Text extends Component {
|
|
|
33
33
|
[styles.sizeM]: size === Text.Size.M,
|
|
34
34
|
[styles.sizeL]: size === Text.Size.L
|
|
35
35
|
});
|
|
36
|
-
return jsx("span", {
|
|
36
|
+
return /*#__PURE__*/jsx("span", {
|
|
37
37
|
className: classes,
|
|
38
38
|
...restProps,
|
|
39
39
|
children: children
|
|
@@ -17,7 +17,7 @@ declare class Toggle extends PureComponent<ToggleProps> {
|
|
|
17
17
|
static defaultProps: {
|
|
18
18
|
size: string;
|
|
19
19
|
};
|
|
20
|
-
render(): import("react
|
|
20
|
+
render(): import("react").JSX.Element;
|
|
21
21
|
}
|
|
22
22
|
export type ToggleAttrs = React.JSX.LibraryManagedAttributes<typeof Toggle, ToggleProps>;
|
|
23
23
|
export default Toggle;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { jsxs, 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 ControlHelp from '../control-help/control-help.js';
|
|
5
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
6
|
+
import 'react-compiler-runtime';
|
|
6
7
|
|
|
7
8
|
var styles = {"toggle":"ring-toggle-toggle","switch":"ring-toggle-switch","disabled":"ring-toggle-disabled","label":"ring-toggle-label","help":"ring-toggle-help","leftLabel":"ring-toggle-leftLabel","switchWrapper":"ring-toggle-switchWrapper","input":"ring-toggle-input","size16":"ring-toggle-size16","size14":"ring-toggle-size14","size20":"ring-toggle-size20"};
|
|
8
9
|
|
|
@@ -29,31 +30,31 @@ class Toggle extends PureComponent {
|
|
|
29
30
|
...restProps
|
|
30
31
|
} = this.props;
|
|
31
32
|
const classes = classNames(className, size, styles.toggle, disabled && styles.disabled);
|
|
32
|
-
return jsxs("label", {
|
|
33
|
+
return /*#__PURE__*/jsxs("label", {
|
|
33
34
|
className: classes,
|
|
34
35
|
title: title,
|
|
35
36
|
"data-test": joinDataTestAttributes('ring-toggle', dataTest),
|
|
36
|
-
children: [leftLabel && jsxs("span", {
|
|
37
|
+
children: [leftLabel && /*#__PURE__*/jsxs("span", {
|
|
37
38
|
className: styles.leftLabel,
|
|
38
|
-
children: [leftLabel, help && jsx(ControlHelp, {
|
|
39
|
+
children: [leftLabel, help && /*#__PURE__*/jsx(ControlHelp, {
|
|
39
40
|
className: styles.help,
|
|
40
41
|
children: help
|
|
41
42
|
})]
|
|
42
|
-
}), jsxs("span", {
|
|
43
|
+
}), /*#__PURE__*/jsxs("span", {
|
|
43
44
|
className: styles.switchWrapper,
|
|
44
|
-
children: [jsx("input", {
|
|
45
|
-
"data-test":
|
|
45
|
+
children: [/*#__PURE__*/jsx("input", {
|
|
46
|
+
"data-test": "ring-toggle-input",
|
|
46
47
|
...restProps,
|
|
47
|
-
type:
|
|
48
|
+
type: "checkbox",
|
|
48
49
|
disabled: disabled,
|
|
49
50
|
className: styles.input
|
|
50
|
-
}), jsx("span", {
|
|
51
|
+
}), /*#__PURE__*/jsx("span", {
|
|
51
52
|
className: styles.switch,
|
|
52
53
|
onTransitionEnd: onTransitionEnd
|
|
53
54
|
})]
|
|
54
|
-
}), children && jsxs("div", {
|
|
55
|
+
}), children && /*#__PURE__*/jsxs("div", {
|
|
55
56
|
className: styles.label,
|
|
56
|
-
children: [children, help && jsx(ControlHelp, {
|
|
57
|
+
children: [children, help && /*#__PURE__*/jsx(ControlHelp, {
|
|
57
58
|
className: styles.help,
|
|
58
59
|
children: help
|
|
59
60
|
})]
|
|
@@ -55,7 +55,7 @@ export default class Tooltip extends Component<TooltipProps> {
|
|
|
55
55
|
popupRef: (el: Popup | null) => void;
|
|
56
56
|
onNestedTooltipShow: () => void;
|
|
57
57
|
onNestedTooltipHide: () => void;
|
|
58
|
-
render():
|
|
58
|
+
render(): React.JSX.Element;
|
|
59
59
|
}
|
|
60
60
|
export type TooltipAttrs = React.JSX.LibraryManagedAttributes<typeof Tooltip, TooltipProps>;
|
|
61
61
|
export {};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
1
|
import { Component, createContext } from 'react';
|
|
3
2
|
import classNames from 'classnames';
|
|
4
3
|
import Popup from '../popup/popup.js';
|
|
@@ -6,6 +5,7 @@ import { Listeners } from '../global/dom.js';
|
|
|
6
5
|
import joinDataTestAttributes from '../global/data-tests.js';
|
|
7
6
|
import scheduleRAF from '../global/schedule-raf.js';
|
|
8
7
|
import { T as Theme, a as ThemeProvider } from '../_helpers/theme.js';
|
|
8
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
9
9
|
import 'react-dom';
|
|
10
10
|
import '../global/get-uid.js';
|
|
11
11
|
import '../shortcuts/shortcuts.js';
|
|
@@ -14,6 +14,7 @@ import 'combokeys';
|
|
|
14
14
|
import '../global/sniffer.js';
|
|
15
15
|
import 'sniffr';
|
|
16
16
|
import '../tab-trap/tab-trap.js';
|
|
17
|
+
import 'react-compiler-runtime';
|
|
17
18
|
import '../global/configuration.js';
|
|
18
19
|
import '../popup/position.js';
|
|
19
20
|
import '../popup/popup.consts.js';
|
|
@@ -170,7 +171,7 @@ class Tooltip extends Component {
|
|
|
170
171
|
onNestedTooltipShow,
|
|
171
172
|
onNestedTooltipHide
|
|
172
173
|
} = this;
|
|
173
|
-
const popup = jsx(Popup, {
|
|
174
|
+
const popup = /*#__PURE__*/jsx(Popup, {
|
|
174
175
|
trapFocus: false,
|
|
175
176
|
anchorElement: this.containerNode,
|
|
176
177
|
hidden: !this.state.showPopup || this.state.showNestedPopup,
|
|
@@ -188,21 +189,21 @@ class Tooltip extends Component {
|
|
|
188
189
|
}, popupProps?.className),
|
|
189
190
|
children: title
|
|
190
191
|
});
|
|
191
|
-
return jsx(TooltipContext.Provider, {
|
|
192
|
+
return /*#__PURE__*/jsx(TooltipContext.Provider, {
|
|
192
193
|
value: {
|
|
193
194
|
onNestedTooltipShow,
|
|
194
195
|
onNestedTooltipHide
|
|
195
196
|
},
|
|
196
|
-
children: jsxs("span", {
|
|
197
|
+
children: /*#__PURE__*/jsxs("span", {
|
|
197
198
|
...ariaProps,
|
|
198
199
|
...restProps,
|
|
199
200
|
ref: this.containerRef,
|
|
200
201
|
"data-test": joinDataTestAttributes('ring-tooltip', dataTest),
|
|
201
202
|
"data-test-title": typeof title === 'string' ? title : undefined,
|
|
202
|
-
children: [children, theme === 'inherit' ? popup : jsx(ThemeProvider, {
|
|
203
|
+
children: [children, theme === 'inherit' ? popup : /*#__PURE__*/jsx(ThemeProvider, {
|
|
203
204
|
theme: theme,
|
|
204
205
|
passToPopups: true,
|
|
205
|
-
WrapperComponent: props => jsx("span", {
|
|
206
|
+
WrapperComponent: props => /*#__PURE__*/jsx("span", {
|
|
206
207
|
...props
|
|
207
208
|
}),
|
|
208
209
|
children: popup
|