@jetbrains/ring-ui-built 7.0.10 → 7.0.12
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 +2 -2
- package/components/_helpers/caption.js +2 -2
- package/components/_helpers/card.js +19 -19
- package/components/_helpers/icon__svg.js +2 -2
- package/components/_helpers/input.js +11 -11
- package/components/_helpers/query-assist__suggestions.js +5 -5
- package/components/_helpers/select__filter.js +4 -4
- package/components/_helpers/services-link.js +4 -4
- package/components/_helpers/sidebar.js +6 -6
- package/components/_helpers/tab-link.js +7 -7
- package/components/_helpers/theme.js +7 -7
- package/components/_helpers/title.js +5 -5
- package/components/alert/alert.d.ts +1 -1
- package/components/alert/alert.js +7 -8
- package/components/alert/container.js +2 -2
- package/components/alert-service/alert-service.d.ts +1 -1
- package/components/alert-service/alert-service.js +7 -4
- package/components/auth/auth.js +2 -2
- package/components/auth/auth__core.js +1 -1
- package/components/auth/down-notification.js +9 -9
- package/components/auth/iframe-flow.js +2 -2
- package/components/auth/storage.js +1 -1
- package/components/auth-dialog/auth-dialog.d.ts +1 -1
- package/components/auth-dialog/auth-dialog.js +10 -10
- package/components/auth-dialog-service/auth-dialog-service.js +6 -3
- package/components/avatar/avatar.d.ts +1 -1
- package/components/avatar/avatar.js +10 -7
- package/components/avatar/fallback-avatar.d.ts +1 -1
- package/components/avatar/fallback-avatar.js +12 -12
- package/components/breadcrumbs/breadcrumbs.d.ts +1 -1
- package/components/breadcrumbs/breadcrumbs.js +2 -3
- package/components/button/button.d.ts +1 -1
- package/components/button/button.js +7 -7
- package/components/button-group/button-group.d.ts +1 -1
- package/components/button-group/button-group.js +8 -5
- 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 +5 -2
- package/components/button-toolbar/button-toolbar.d.ts +1 -1
- package/components/button-toolbar/button-toolbar.js +5 -2
- package/components/checkbox/checkbox.d.ts +1 -1
- package/components/checkbox/checkbox.js +15 -9
- package/components/clipboard/clipboard.js +1 -1
- package/components/code/code.d.ts +1 -1
- package/components/code/code.js +4 -4
- package/components/collapse/collapse-content.js +4 -4
- package/components/collapse/collapse-control.js +5 -2
- package/components/collapse/collapse.js +6 -3
- package/components/confirm/confirm.d.ts +1 -1
- package/components/confirm/confirm.js +11 -8
- package/components/confirm-service/confirm-service.js +3 -3
- package/components/content-layout/content-layout.d.ts +1 -1
- package/components/content-layout/content-layout.js +6 -3
- 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 +7 -5
- package/components/control-help/control-help.d.ts +1 -1
- package/components/control-help/control-help.js +2 -2
- package/components/control-label/control-label.js +2 -3
- package/components/data-list/data-list.d.ts +3 -3
- package/components/data-list/data-list.js +8 -8
- package/components/data-list/data-list.mock.d.ts +1 -1
- package/components/data-list/data-list.mock.js +58 -58
- package/components/data-list/item.d.ts +2 -2
- package/components/data-list/item.js +13 -13
- package/components/data-list/title.d.ts +1 -1
- package/components/data-list/title.js +1 -1
- package/components/date-picker/date-input.d.ts +1 -1
- package/components/date-picker/date-input.js +2 -2
- package/components/date-picker/date-picker.d.ts +1 -1
- package/components/date-picker/date-picker.js +10 -10
- package/components/date-picker/date-popup.d.ts +1 -1
- package/components/date-picker/date-popup.js +9 -9
- package/components/date-picker/day.d.ts +1 -1
- package/components/date-picker/day.js +2 -3
- package/components/date-picker/month-names.d.ts +1 -1
- package/components/date-picker/month-names.js +6 -6
- package/components/date-picker/month-slider.d.ts +1 -1
- package/components/date-picker/month-slider.js +3 -3
- package/components/date-picker/month.d.ts +1 -1
- package/components/date-picker/month.js +6 -6
- package/components/date-picker/months.d.ts +1 -1
- package/components/date-picker/months.js +6 -6
- package/components/date-picker/weekdays.d.ts +1 -1
- package/components/date-picker/weekdays.js +3 -3
- package/components/date-picker/years.d.ts +1 -1
- package/components/date-picker/years.js +3 -3
- package/components/dialog/dialog.d.ts +1 -1
- package/components/dialog/dialog.js +15 -12
- package/components/dropdown/anchor.d.ts +1 -1
- package/components/dropdown/anchor.js +1 -1
- package/components/dropdown/dropdown.d.ts +1 -1
- package/components/dropdown/dropdown.js +7 -5
- package/components/dropdown-menu/dropdown-menu.js +8 -8
- package/components/editable-heading/editable-heading.d.ts +2 -2
- package/components/editable-heading/editable-heading.js +15 -15
- package/components/error-bubble/error-bubble.d.ts +1 -1
- package/components/error-bubble/error-bubble.js +7 -4
- package/components/error-message/error-message.d.ts +1 -1
- package/components/error-message/error-message.js +9 -6
- package/components/footer/footer.js +8 -8
- package/components/global/create-stateful-context.d.ts +1 -1
- package/components/global/create-stateful-context.js +3 -3
- package/components/global/focus-sensor-hoc.js +2 -2
- 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 +3 -3
- package/components/global/theme.js +1 -1
- package/components/grid/col.d.ts +1 -1
- package/components/grid/col.js +2 -2
- package/components/grid/grid.d.ts +1 -1
- package/components/grid/grid.js +5 -2
- package/components/grid/row.d.ts +1 -1
- package/components/grid/row.js +2 -2
- package/components/group/group.d.ts +1 -1
- package/components/group/group.js +5 -2
- package/components/header/header-icon.d.ts +1 -1
- package/components/header/header-icon.js +2 -2
- package/components/header/header.d.ts +1 -1
- package/components/header/header.js +9 -3
- package/components/header/links.d.ts +1 -1
- package/components/header/links.js +3 -2
- package/components/header/logo.d.ts +1 -1
- package/components/header/logo.js +3 -3
- package/components/header/profile.d.ts +1 -1
- package/components/header/profile.js +11 -11
- 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 +8 -8
- package/components/header/smart-profile.d.ts +1 -1
- package/components/header/smart-profile.js +2 -2
- package/components/header/smart-services.d.ts +1 -1
- package/components/header/smart-services.js +2 -2
- package/components/header/tray.d.ts +1 -1
- package/components/header/tray.js +3 -3
- package/components/heading/heading.js +9 -6
- package/components/i18n/i18n-context.js +2 -2
- package/components/icon/icon.d.ts +1 -1
- package/components/icon/icon.js +4 -4
- package/components/icon/icon__svg.d.ts +1 -1
- package/components/icon/icon__svg.js +1 -1
- package/components/icon/index.js +1 -1
- package/components/input/input.d.ts +1 -1
- package/components/input/input.js +1 -1
- package/components/island/adaptive-island-hoc.d.ts +2 -2
- package/components/island/adaptive-island-hoc.js +4 -4
- package/components/island/content.d.ts +1 -1
- package/components/island/content.js +6 -6
- package/components/island/header.d.ts +1 -1
- package/components/island/header.js +5 -5
- package/components/island/island.d.ts +3 -3
- package/components/island/island.js +5 -2
- package/components/link/clickableLink.d.ts +1 -1
- package/components/link/clickableLink.js +2 -2
- package/components/link/link.d.ts +4 -4
- package/components/link/link.js +3 -3
- package/components/list/list.d.ts +6 -6
- package/components/list/list.js +20 -21
- 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 +6 -2
- package/components/list/list__item.d.ts +1 -1
- package/components/list/list__item.js +19 -15
- package/components/list/list__link.d.ts +1 -1
- package/components/list/list__link.js +6 -2
- package/components/list/list__separator.d.ts +1 -1
- package/components/list/list__separator.js +2 -2
- package/components/list/list__title.d.ts +1 -1
- package/components/list/list__title.js +4 -4
- package/components/list/list__users-groups-source.js +1 -1
- package/components/loader/loader.d.ts +1 -1
- package/components/loader/loader.js +8 -2
- package/components/loader-inline/loader-inline.d.ts +1 -1
- package/components/loader-inline/loader-inline.js +7 -4
- package/components/loader-screen/loader-screen.d.ts +1 -1
- package/components/loader-screen/loader-screen.js +6 -3
- package/components/login-dialog/login-dialog.d.ts +1 -1
- package/components/login-dialog/login-dialog.js +6 -6
- package/components/login-dialog/service.js +3 -3
- package/components/markdown/markdown.d.ts +1 -1
- package/components/markdown/markdown.js +5 -2
- package/components/message/message.d.ts +1 -1
- package/components/message/message.js +14 -11
- package/components/old-browsers-message/white-list.js +2 -2
- package/components/pager/pager.d.ts +5 -5
- package/components/pager/pager.js +21 -21
- package/components/panel/panel.d.ts +1 -1
- package/components/panel/panel.js +5 -2
- package/components/popup/popup.d.ts +2 -2
- package/components/popup/popup.js +9 -11
- package/components/popup/popup.target.js +3 -3
- package/components/popup-menu/popup-menu.d.ts +1 -1
- package/components/popup-menu/popup-menu.js +6 -3
- package/components/progress-bar/progress-bar.d.ts +1 -1
- package/components/progress-bar/progress-bar.js +6 -3
- package/components/query-assist/query-assist.d.ts +2 -2
- package/components/query-assist/query-assist.js +20 -22
- package/components/query-assist/query-assist__suggestions.d.ts +1 -1
- package/components/query-assist/query-assist__suggestions.js +1 -1
- package/components/radio/radio.d.ts +1 -1
- package/components/radio/radio.js +5 -2
- package/components/radio/radio__item.d.ts +1 -1
- package/components/radio/radio__item.js +8 -8
- package/components/scrollable-section/scrollable-section.d.ts +1 -1
- package/components/scrollable-section/scrollable-section.js +2 -2
- package/components/select/select.d.ts +3 -3
- package/components/select/select.js +35 -34
- package/components/select/select__filter.d.ts +1 -1
- package/components/select/select__filter.js +1 -1
- package/components/select/select__popup.d.ts +7 -7
- package/components/select/select__popup.js +18 -18
- package/components/shortcuts/shortcuts-hoc.d.ts +2 -2
- package/components/shortcuts/shortcuts-hoc.js +3 -3
- package/components/slider/slider.js +9 -10
- package/components/storage/storage.js +1 -1
- package/components/storage/storage__local.js +1 -1
- package/components/style.css +1 -1
- package/components/tab-trap/tab-trap.js +5 -5
- package/components/table/cell.d.ts +1 -1
- package/components/table/cell.js +2 -2
- package/components/table/disable-hover-hoc.d.ts +2 -2
- package/components/table/disable-hover-hoc.js +2 -2
- package/components/table/header-cell.d.ts +1 -1
- package/components/table/header-cell.js +5 -5
- package/components/table/header.d.ts +2 -2
- package/components/table/header.js +8 -8
- package/components/table/multitable.d.ts +1 -1
- package/components/table/multitable.js +2 -2
- package/components/table/row-with-focus-sensor.d.ts +1 -1
- package/components/table/row-with-focus-sensor.js +2 -2
- package/components/table/row.d.ts +1 -1
- package/components/table/row.js +12 -12
- package/components/table/selection-shortcuts-hoc.js +2 -2
- package/components/table/simple-table.d.ts +1 -1
- package/components/table/simple-table.js +2 -2
- package/components/table/smart-table.d.ts +1 -1
- package/components/table/smart-table.js +2 -2
- package/components/table/table.d.ts +4 -4
- package/components/table/table.js +17 -14
- package/components/tabs/collapsible-more.d.ts +3 -3
- package/components/tabs/collapsible-more.js +8 -8
- package/components/tabs/collapsible-tab.d.ts +1 -1
- package/components/tabs/collapsible-tab.js +3 -3
- package/components/tabs/collapsible-tabs.d.ts +2 -2
- package/components/tabs/collapsible-tabs.js +6 -6
- package/components/tabs/dumb-tabs.d.ts +2 -3
- package/components/tabs/dumb-tabs.js +6 -6
- package/components/tabs/smart-tabs.d.ts +1 -1
- package/components/tabs/smart-tabs.js +2 -2
- package/components/tabs/tab-link.d.ts +1 -1
- package/components/tabs/tab-link.js +1 -1
- package/components/tabs/tab.d.ts +1 -1
- package/components/tabs/tab.js +2 -2
- package/components/tabs/tabs.js +1 -1
- package/components/tag/tag.d.ts +5 -5
- package/components/tag/tag.js +12 -9
- package/components/tags-input/tags-input.d.ts +1 -1
- package/components/tags-input/tags-input.js +5 -5
- package/components/tags-list/tags-list.d.ts +2 -2
- package/components/tags-list/tags-list.js +2 -2
- 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 +9 -9
- package/components/tooltip/tooltip.d.ts +1 -1
- package/components/tooltip/tooltip.js +6 -6
- package/components/user-agreement/service.js +7 -7
- package/components/user-agreement/user-agreement.d.ts +1 -1
- package/components/user-agreement/user-agreement.js +13 -13
- package/components/user-card/card.d.ts +1 -1
- package/components/user-card/card.js +1 -1
- package/components/user-card/smart-user-card-tooltip.d.ts +2 -2
- package/components/user-card/smart-user-card-tooltip.js +4 -4
- package/components/user-card/tooltip.d.ts +2 -2
- package/components/user-card/tooltip.js +4 -4
- package/components/user-card/user-card.js +1 -1
- package/package.json +2 -2
@@ -1,5 +1,6 @@
|
|
1
1
|
import { _ as _defineProperty, b as _objectSpread2 } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
2
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
3
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
3
4
|
import { createRoot } from 'react-dom/client';
|
4
5
|
import LocalStorage from '../storage/storage__local.js';
|
5
6
|
import alertService from '../alert-service/alert-service.js';
|
@@ -8,7 +9,6 @@ import Alert from '../alert/alert.js';
|
|
8
9
|
import Group from '../group/group.js';
|
9
10
|
import { ControlsHeightContext, getGlobalControlsHeight } from '../global/controls-height.js';
|
10
11
|
import UserAgreement from './user-agreement.js';
|
11
|
-
import { jsx, jsxs } from 'react/jsx-runtime';
|
12
12
|
import '../global/get-uid.js';
|
13
13
|
import '../alert/container.js';
|
14
14
|
import 'react';
|
@@ -193,14 +193,14 @@ class UserAgreementService {
|
|
193
193
|
this.hideAlert(withoutNotifications);
|
194
194
|
resolve();
|
195
195
|
};
|
196
|
-
const message =
|
197
|
-
children: [
|
196
|
+
const message = jsxs(Group, {
|
197
|
+
children: [jsx("span", {
|
198
198
|
children: userAgreement || 'User Agreement'
|
199
|
-
}),
|
199
|
+
}), jsx(Link, {
|
200
200
|
onClick: onReview,
|
201
201
|
"data-test": "review",
|
202
202
|
children: reviewNow || 'Review now'
|
203
|
-
}),
|
203
|
+
}), jsx(Link, {
|
204
204
|
onClick: onRemind,
|
205
205
|
"data-test": "later",
|
206
206
|
children: remindLater || 'Remind me later'
|
@@ -260,9 +260,9 @@ class UserAgreementService {
|
|
260
260
|
translations,
|
261
261
|
preview
|
262
262
|
}, restOptions);
|
263
|
-
_this.reactRoot.render(
|
263
|
+
_this.reactRoot.render(jsx(ControlsHeightContext.Provider, {
|
264
264
|
value: getGlobalControlsHeight(),
|
265
|
-
children:
|
265
|
+
children: jsx(UserAgreement, _objectSpread2({}, props))
|
266
266
|
}));
|
267
267
|
if (onDialogShow) {
|
268
268
|
onDialogShow();
|
@@ -36,7 +36,7 @@ export default class UserAgreement extends PureComponent<UserAgreementProps> {
|
|
36
36
|
scrolledDown: boolean;
|
37
37
|
};
|
38
38
|
onScrollToBottom: () => void;
|
39
|
-
render(): import("react").JSX.Element;
|
39
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
40
40
|
}
|
41
41
|
export type UserAgreementAttrs = JSX.LibraryManagedAttributes<typeof UserAgreement, UserAgreementProps>;
|
42
42
|
export {};
|
@@ -1,9 +1,9 @@
|
|
1
1
|
import { _ as _defineProperty } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
2
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
3
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
3
4
|
import { PureComponent } from 'react';
|
4
5
|
import classNames from 'classnames';
|
5
6
|
import Dialog from '../dialog/dialog.js';
|
6
|
-
import { jsx, jsxs } from 'react/jsx-runtime';
|
7
7
|
import '../_helpers/island.js';
|
8
8
|
import HeaderWrapper from '../island/header.js';
|
9
9
|
import ContentWrapper from '../island/content.js';
|
@@ -74,13 +74,13 @@ class UserAgreement extends PureComponent {
|
|
74
74
|
preview,
|
75
75
|
className
|
76
76
|
} = this.props;
|
77
|
-
return
|
77
|
+
return jsx(I18nContext.Consumer, {
|
78
78
|
children: _ref => {
|
79
79
|
var _translations$userAgr, _translations$userAgr2, _translations$scrollT, _translations$accept, _translations$decline, _translations$scrollT2, _translations$remindL, _translations$close;
|
80
80
|
let {
|
81
81
|
translate
|
82
82
|
} = _ref;
|
83
|
-
return
|
83
|
+
return jsxs(Dialog, {
|
84
84
|
label: (_translations$userAgr = translations === null || translations === void 0 ? void 0 : translations.userAgreement) !== null && _translations$userAgr !== void 0 ? _translations$userAgr : translate('userAgreement'),
|
85
85
|
show: show,
|
86
86
|
className: classNames(style.agreementDialog, className),
|
@@ -88,38 +88,38 @@ class UserAgreement extends PureComponent {
|
|
88
88
|
trapFocus: true,
|
89
89
|
autoFocusFirst: false,
|
90
90
|
"data-test": "user-agreement",
|
91
|
-
children: [
|
91
|
+
children: [jsx(HeaderWrapper, {
|
92
92
|
children: (_translations$userAgr2 = translations === null || translations === void 0 ? void 0 : translations.userAgreement) !== null && _translations$userAgr2 !== void 0 ? _translations$userAgr2 : translate('userAgreement')
|
93
|
-
}),
|
93
|
+
}), jsx(ContentWrapper, {
|
94
94
|
fade: true,
|
95
95
|
onScrollToBottom: this.onScrollToBottom,
|
96
96
|
children: children
|
97
|
-
}), !preview &&
|
98
|
-
children: [onRemindLater && !scrolledDown &&
|
97
|
+
}), !preview && jsxs(Panel, {
|
98
|
+
children: [onRemindLater && !scrolledDown && jsx("div", {
|
99
99
|
className: style.suggestion,
|
100
100
|
children: (_translations$scrollT = translations === null || translations === void 0 ? void 0 : translations.scrollToAccept) !== null && _translations$scrollT !== void 0 ? _translations$scrollT : translate('scrollToAccept')
|
101
|
-
}),
|
101
|
+
}), jsx(Button, {
|
102
102
|
primary: true,
|
103
103
|
disabled: !scrolledDown,
|
104
104
|
onClick: onAccept,
|
105
105
|
"data-test": "accept",
|
106
106
|
children: (_translations$accept = translations === null || translations === void 0 ? void 0 : translations.accept) !== null && _translations$accept !== void 0 ? _translations$accept : translate('accept')
|
107
|
-
}),
|
107
|
+
}), jsx(Button, {
|
108
108
|
onClick: onDecline,
|
109
109
|
autoFocus: true,
|
110
110
|
"data-test": "decline",
|
111
111
|
children: (_translations$decline = translations === null || translations === void 0 ? void 0 : translations.decline) !== null && _translations$decline !== void 0 ? _translations$decline : translate('decline')
|
112
|
-
}), !onRemindLater && !scrolledDown &&
|
112
|
+
}), !onRemindLater && !scrolledDown && jsx("span", {
|
113
113
|
className: style.suggestion,
|
114
114
|
children: (_translations$scrollT2 = translations === null || translations === void 0 ? void 0 : translations.scrollToAccept) !== null && _translations$scrollT2 !== void 0 ? _translations$scrollT2 : translate('scrollToAccept')
|
115
|
-
}), onRemindLater &&
|
115
|
+
}), onRemindLater && jsx(Button, {
|
116
116
|
className: style.remindLaterButton,
|
117
117
|
onClick: onRemindLater,
|
118
118
|
"data-test": "later",
|
119
119
|
children: (_translations$remindL = translations === null || translations === void 0 ? void 0 : translations.remindLater) !== null && _translations$remindL !== void 0 ? _translations$remindL : translate('remindLater')
|
120
120
|
})]
|
121
|
-
}), preview &&
|
122
|
-
children:
|
121
|
+
}), preview && jsx(Panel, {
|
122
|
+
children: jsx(Button, {
|
123
123
|
onClick: onClose,
|
124
124
|
autoFocus: true,
|
125
125
|
"data-test": "close",
|
@@ -31,6 +31,6 @@ export default class UserCard extends PureComponent<UserCardProps> {
|
|
31
31
|
static contextType: React.Context<import("../i18n/i18n-context").I18nContextProps>;
|
32
32
|
context: React.ContextType<typeof UserCard.contextType>;
|
33
33
|
copyEmail: () => void;
|
34
|
-
render():
|
34
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
35
35
|
}
|
36
36
|
export type UserCardAttrs = JSX.LibraryManagedAttributes<typeof UserCard, UserCardProps>;
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import '../_helpers/_rollupPluginBabelHelpers.js';
|
2
2
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
3
|
+
import 'react/jsx-runtime';
|
3
4
|
import 'react';
|
4
5
|
import 'classnames';
|
5
6
|
import '@jetbrains/icons/copy';
|
@@ -11,7 +12,6 @@ import '../icon/icon.js';
|
|
11
12
|
import '../i18n/i18n-context.js';
|
12
13
|
import '../tooltip/tooltip.js';
|
13
14
|
export { U as default } from '../_helpers/card.js';
|
14
|
-
import 'react/jsx-runtime';
|
15
15
|
import '../icon/icon__constants.js';
|
16
16
|
import '../global/url.js';
|
17
17
|
import 'core-js/modules/es.regexp.exec.js';
|
@@ -10,6 +10,6 @@ export default class SmartUserCardTooltip extends Component<SmartUserCardTooltip
|
|
10
10
|
loading: boolean;
|
11
11
|
};
|
12
12
|
loadUser: () => Promise<void>;
|
13
|
-
renderNoUser: () => "" | import("react").JSX.Element;
|
14
|
-
render(): import("react").JSX.Element;
|
13
|
+
renderNoUser: () => "" | import("react/jsx-runtime").JSX.Element;
|
14
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
15
15
|
}
|
@@ -1,10 +1,10 @@
|
|
1
1
|
import { _ as _defineProperty, a as _objectWithoutProperties, b as _objectSpread2 } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
2
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
3
|
+
import { jsx } from 'react/jsx-runtime';
|
3
4
|
import { Component } from 'react';
|
4
5
|
import LoaderInline from '../loader-inline/loader-inline.js';
|
5
6
|
import UserCardTooltip from './tooltip.js';
|
6
7
|
import { s as styles } from '../_helpers/card.js';
|
7
|
-
import { jsx } from 'react/jsx-runtime';
|
8
8
|
import 'classnames';
|
9
9
|
import '../global/data-tests.js';
|
10
10
|
import '../dropdown/dropdown.js';
|
@@ -89,9 +89,9 @@ class SmartUserCardTooltip extends Component {
|
|
89
89
|
});
|
90
90
|
}
|
91
91
|
});
|
92
|
-
_defineProperty(this, "renderNoUser", () => this.state.loading ?
|
92
|
+
_defineProperty(this, "renderNoUser", () => this.state.loading ? jsx("div", {
|
93
93
|
className: styles.userCardSpaced,
|
94
|
-
children:
|
94
|
+
children: jsx(LoaderInline, {})
|
95
95
|
}) : '');
|
96
96
|
}
|
97
97
|
render() {
|
@@ -107,7 +107,7 @@ class SmartUserCardTooltip extends Component {
|
|
107
107
|
const dropdownProps = _objectSpread2({
|
108
108
|
onMouseEnter: this.loadUser
|
109
109
|
}, UserCardTooltip.defaultProps.dropdownProps);
|
110
|
-
return
|
110
|
+
return jsx(UserCardTooltip, _objectSpread2(_objectSpread2({
|
111
111
|
user: user,
|
112
112
|
renderNoUser: this.renderNoUser,
|
113
113
|
dropdownProps: dropdownProps
|
@@ -14,14 +14,14 @@ export interface UserCardTooltipProps extends Omit<UserCardAttrs, 'children' | '
|
|
14
14
|
}
|
15
15
|
export default class UserCardTooltip extends Component<UserCardTooltipProps> {
|
16
16
|
static defaultProps: {
|
17
|
-
renderUserCard: (props: UserCardAttrs) => import("react").JSX.Element;
|
17
|
+
renderUserCard: (props: UserCardAttrs) => import("react/jsx-runtime").JSX.Element;
|
18
18
|
renderNoUser: () => string;
|
19
19
|
dropdownProps: {
|
20
20
|
hoverShowTimeOut: number;
|
21
21
|
hoverHideTimeOut: number;
|
22
22
|
};
|
23
23
|
};
|
24
|
-
render(): import("react").JSX.Element;
|
24
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
25
25
|
}
|
26
26
|
export type UserCardTooltipAttrs = JSX.LibraryManagedAttributes<typeof UserCardTooltip, UserCardTooltipProps>;
|
27
27
|
export {};
|
@@ -1,10 +1,10 @@
|
|
1
1
|
import { _ as _defineProperty, a as _objectWithoutProperties, b as _objectSpread2 } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
|
+
import { jsx } from 'react/jsx-runtime';
|
2
3
|
import { Component } from 'react';
|
3
4
|
import classNames from 'classnames';
|
4
5
|
import Dropdown from '../dropdown/dropdown.js';
|
5
6
|
import Popup from '../popup/popup.js';
|
6
7
|
import { s as styles, U as UserCard } from '../_helpers/card.js';
|
7
|
-
import { jsx } from 'react/jsx-runtime';
|
8
8
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
9
9
|
import '../global/data-tests.js';
|
10
10
|
import '../global/typescript-utils.js';
|
@@ -74,12 +74,12 @@ class UserCardTooltip extends Component {
|
|
74
74
|
user
|
75
75
|
} = _this$props,
|
76
76
|
restProps = _objectWithoutProperties(_this$props, _excluded);
|
77
|
-
return
|
77
|
+
return jsx(Dropdown, _objectSpread2(_objectSpread2({
|
78
78
|
anchor: children,
|
79
79
|
hoverMode: true,
|
80
80
|
clickMode: false
|
81
81
|
}, dropdownProps), {}, {
|
82
|
-
children:
|
82
|
+
children: jsx(Popup, {
|
83
83
|
attached: false,
|
84
84
|
children: user ? renderUserCard(_objectSpread2(_objectSpread2({}, restProps), {}, {
|
85
85
|
user,
|
@@ -95,7 +95,7 @@ _defineProperty(UserCardTooltip, "defaultProps", {
|
|
95
95
|
user
|
96
96
|
} = props,
|
97
97
|
restProps = _objectWithoutProperties(props, _excluded2);
|
98
|
-
return user &&
|
98
|
+
return user && jsx(UserCard, _objectSpread2({
|
99
99
|
user: user
|
100
100
|
}, restProps));
|
101
101
|
},
|
@@ -3,6 +3,7 @@ export { default as UserCardTooltip } from './tooltip.js';
|
|
3
3
|
export { default as SmartUserCardTooltip } from './smart-user-card-tooltip.js';
|
4
4
|
import '../_helpers/_rollupPluginBabelHelpers.js';
|
5
5
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
6
|
+
import 'react/jsx-runtime';
|
6
7
|
import 'react';
|
7
8
|
import 'classnames';
|
8
9
|
import '@jetbrains/icons/copy';
|
@@ -13,7 +14,6 @@ import 'core-js/modules/es.string.replace.js';
|
|
13
14
|
import '../global/dom.js';
|
14
15
|
import '../avatar/fallback-avatar.js';
|
15
16
|
import '../global/get-uid.js';
|
16
|
-
import 'react/jsx-runtime';
|
17
17
|
import '../link/link.js';
|
18
18
|
import '../global/data-tests.js';
|
19
19
|
import '../link/clickableLink.js';
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@jetbrains/ring-ui-built",
|
3
|
-
"version": "7.0.
|
3
|
+
"version": "7.0.12",
|
4
4
|
"description": "JetBrains UI library",
|
5
5
|
"author": "JetBrains",
|
6
6
|
"license": "Apache-2.0",
|
@@ -89,7 +89,7 @@
|
|
89
89
|
}
|
90
90
|
},
|
91
91
|
"dependencies": {
|
92
|
-
"@jetbrains/icons": "^5.
|
92
|
+
"@jetbrains/icons": "^5.4.0",
|
93
93
|
"change-case": "^4.1.1",
|
94
94
|
"classnames": "^2.5.1",
|
95
95
|
"combokeys": "^3.0.1",
|