@jetbrains/ring-ui-built 6.0.35 → 6.0.37
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/_rollupPluginBabelHelpers.js +1 -10
- package/components/_helpers/anchor.js +9 -6
- package/components/_helpers/caption.js +5 -4
- package/components/_helpers/card.js +65 -49
- package/components/_helpers/icon__svg.js +4 -3
- package/components/_helpers/input.js +45 -36
- package/components/_helpers/query-assist__suggestions.js +18 -14
- package/components/_helpers/select__filter.js +22 -17
- package/components/_helpers/services-link.js +14 -12
- package/components/_helpers/sidebar.js +20 -16
- package/components/_helpers/tab-link.js +21 -13
- package/components/_helpers/theme.js +18 -11
- package/components/_helpers/title.js +20 -16
- package/components/alert/alert.d.ts +2 -1
- package/components/alert/alert.js +20 -17
- package/components/alert/container.d.ts +2 -2
- package/components/alert/container.js +14 -11
- package/components/alert-service/alert-service.d.ts +2 -2
- package/components/alert-service/alert-service.js +14 -14
- package/components/analytics/analytics.js +1 -1
- package/components/analytics/analytics__custom-plugin.js +1 -1
- package/components/auth/auth.js +1 -0
- package/components/auth/auth__core.js +3 -2
- package/components/auth/background-flow.js +1 -1
- package/components/auth/down-notification.d.ts +1 -1
- package/components/auth/down-notification.js +21 -14
- package/components/auth/iframe-flow.js +7 -5
- package/components/auth/request-builder.d.ts +0 -1
- package/components/auth/request-builder.js +1 -1
- package/components/auth/response-parser.js +1 -1
- package/components/auth/storage.js +3 -2
- package/components/auth/token-validator.d.ts +1 -1
- package/components/auth/token-validator.js +1 -1
- package/components/auth/window-flow.js +1 -1
- package/components/auth-dialog/auth-dialog.d.ts +2 -2
- package/components/auth-dialog/auth-dialog.js +42 -32
- package/components/auth-dialog-service/auth-dialog-service.d.ts +0 -1
- package/components/auth-dialog-service/auth-dialog-service.js +6 -7
- package/components/avatar/avatar.d.ts +2 -2
- package/components/avatar/avatar.js +29 -28
- package/components/avatar/fallback-avatar.d.ts +1 -2
- package/components/avatar/fallback-avatar.js +50 -37
- package/components/badge/badge.d.ts +2 -2
- package/components/badge/badge.js +7 -8
- package/components/breadcrumbs/breadcrumbs.d.ts +6 -0
- package/components/breadcrumbs/breadcrumbs.js +27 -0
- package/components/button/button.d.ts +2 -1
- package/components/button/button.js +26 -25
- package/components/button-group/button-group.d.ts +4 -2
- package/components/button-group/button-group.js +19 -10
- package/components/button-group/caption.d.ts +2 -2
- package/components/button-group/caption.js +1 -0
- package/components/button-set/button-set.d.ts +2 -2
- package/components/button-set/button-set.js +7 -8
- package/components/button-toolbar/button-toolbar.d.ts +2 -2
- package/components/button-toolbar/button-toolbar.js +4 -6
- package/components/caret/caret.js +1 -1
- package/components/checkbox/checkbox.d.ts +3 -2
- package/components/checkbox/checkbox.js +33 -28
- package/components/clipboard/clipboard.js +3 -2
- package/components/code/code.d.ts +3 -4
- package/components/code/code.js +14 -11
- package/components/collapse/collapse-content.d.ts +2 -1
- package/components/collapse/collapse-content.js +13 -10
- package/components/collapse/collapse-context.d.ts +0 -1
- package/components/collapse/collapse-control.d.ts +1 -1
- package/components/collapse/collapse-control.js +10 -11
- package/components/collapse/collapse.d.ts +2 -1
- package/components/collapse/collapse.js +16 -16
- package/components/confirm/confirm.d.ts +2 -1
- package/components/confirm/confirm.js +29 -21
- package/components/confirm-service/confirm-service.js +6 -4
- package/components/content-layout/content-layout.d.ts +2 -2
- package/components/content-layout/content-layout.js +12 -12
- package/components/content-layout/sidebar.d.ts +2 -2
- package/components/content-layout/sidebar.js +1 -0
- package/components/contenteditable/contenteditable.d.ts +3 -3
- package/components/contenteditable/contenteditable.js +5 -7
- package/components/control-help/control-help.d.ts +4 -0
- package/components/control-help/control-help.js +16 -0
- package/components/control-label/control-label.d.ts +2 -1
- package/components/control-label/control-label.js +7 -4
- package/components/data-list/data-list.d.ts +15 -15
- package/components/data-list/data-list.js +44 -40
- package/components/data-list/data-list.mock.d.ts +2 -2
- package/components/data-list/data-list.mock.js +165 -73
- package/components/data-list/item.d.ts +3 -3
- package/components/data-list/item.js +49 -40
- package/components/data-list/selection.js +1 -1
- package/components/data-list/title.d.ts +3 -3
- package/components/data-list/title.js +2 -0
- package/components/date-picker/date-input.d.ts +1 -1
- package/components/date-picker/date-input.js +5 -3
- package/components/date-picker/date-picker.d.ts +2 -1
- package/components/date-picker/date-picker.js +43 -34
- package/components/date-picker/date-popup.d.ts +2 -1
- package/components/date-picker/date-popup.js +51 -45
- package/components/date-picker/day.d.ts +3 -3
- package/components/date-picker/day.js +11 -8
- package/components/date-picker/month-names.d.ts +1 -2
- package/components/date-picker/month-names.js +27 -25
- package/components/date-picker/month-slider.d.ts +2 -2
- package/components/date-picker/month-slider.js +15 -13
- package/components/date-picker/month.d.ts +1 -2
- package/components/date-picker/month.js +18 -15
- package/components/date-picker/months.d.ts +1 -2
- package/components/date-picker/months.js +18 -15
- package/components/date-picker/weekdays.d.ts +1 -2
- package/components/date-picker/weekdays.js +14 -13
- package/components/date-picker/years.d.ts +3 -3
- package/components/date-picker/years.js +19 -17
- package/components/dialog/dialog.d.ts +2 -1
- package/components/dialog/dialog.js +48 -45
- package/components/dropdown/anchor.d.ts +2 -3
- package/components/dropdown/anchor.js +1 -0
- package/components/dropdown/dropdown.d.ts +2 -1
- package/components/dropdown/dropdown.js +12 -12
- package/components/dropdown-menu/dropdown-menu.d.ts +3 -3
- package/components/dropdown-menu/dropdown-menu.js +41 -29
- package/components/editable-heading/editable-heading.d.ts +2 -1
- package/components/editable-heading/editable-heading.js +74 -58
- package/components/error-bubble/error-bubble.d.ts +2 -2
- package/components/error-bubble/error-bubble.js +20 -19
- package/components/error-message/error-message.d.ts +2 -2
- package/components/error-message/error-message.js +22 -20
- package/components/footer/footer.d.ts +2 -2
- package/components/footer/footer.js +31 -27
- package/components/form/form.js +1 -1
- package/components/global/controls-height.d.ts +0 -1
- package/components/global/create-stateful-context.d.ts +5 -5
- package/components/global/create-stateful-context.js +10 -7
- package/components/global/data-tests.js +1 -1
- package/components/global/dom.d.ts +2 -2
- package/components/global/dom.js +1 -1
- package/components/global/focus-sensor-hoc.js +4 -3
- package/components/global/fuzzy-highlight.js +1 -1
- package/components/global/get-event-key.d.ts +1 -1
- package/components/global/inject-styles.js +1 -1
- package/components/global/listeners.js +1 -1
- package/components/global/normalize-indent.js +1 -1
- package/components/global/react-dom-renderer.d.ts +2 -2
- package/components/global/react-dom-renderer.js +4 -3
- package/components/global/rerender-hoc.d.ts +2 -2
- package/components/global/rerender-hoc.js +5 -4
- package/components/global/theme.d.ts +3 -3
- package/components/global/theme.js +1 -0
- package/components/global/trivial-template-tag.js +1 -1
- package/components/global/typescript-utils.d.ts +1 -1
- package/components/grid/col.d.ts +2 -2
- package/components/grid/col.js +7 -5
- package/components/grid/grid.d.ts +2 -2
- package/components/grid/grid.js +7 -8
- package/components/grid/row.d.ts +2 -2
- package/components/grid/row.js +7 -5
- package/components/group/group.d.ts +2 -2
- package/components/group/group.js +7 -8
- package/components/header/header.d.ts +2 -2
- package/components/header/header.js +12 -14
- package/components/header/logo.d.ts +2 -2
- package/components/header/logo.js +7 -5
- package/components/header/profile.d.ts +4 -3
- package/components/header/profile.js +40 -29
- package/components/header/services-link.d.ts +2 -2
- package/components/header/services-link.js +1 -0
- package/components/header/services.d.ts +2 -2
- package/components/header/services.js +31 -31
- package/components/header/smart-profile.d.ts +2 -2
- package/components/header/smart-profile.js +5 -3
- package/components/header/smart-services.d.ts +2 -2
- package/components/header/smart-services.js +4 -3
- package/components/header/tray-icon.d.ts +2 -2
- package/components/header/tray-icon.js +4 -3
- package/components/header/tray.d.ts +2 -2
- package/components/header/tray.js +11 -8
- package/components/heading/heading.d.ts +6 -6
- package/components/heading/heading.js +8 -9
- package/components/http/http.js +1 -1
- package/components/http/http.mock.js +1 -1
- package/components/hub-source/hub-source.js +1 -1
- package/components/hub-source/hub-source__user.js +1 -1
- package/components/hub-source/hub-source__users-groups.js +1 -1
- package/components/i18n/i18n-context.d.ts +1 -1
- package/components/i18n/i18n-context.js +7 -4
- package/components/icon/icon.d.ts +2 -2
- package/components/icon/icon.js +12 -10
- package/components/icon/icon__svg.d.ts +3 -3
- package/components/icon/icon__svg.js +1 -0
- package/components/icon/index.js +1 -0
- package/components/input/input.d.ts +3 -2
- package/components/input/input.js +2 -0
- package/components/island/adaptive-island-hoc.d.ts +15 -15
- package/components/island/adaptive-island-hoc.js +10 -7
- package/components/island/content.d.ts +3 -3
- package/components/island/content.js +29 -23
- package/components/island/header.d.ts +2 -2
- package/components/island/header.js +18 -13
- package/components/island/island.d.ts +14 -14
- package/components/island/island.js +7 -8
- package/components/island-legacy/content-legacy.d.ts +2 -2
- package/components/island-legacy/content-legacy.js +7 -5
- package/components/island-legacy/header-legacy.d.ts +2 -2
- package/components/island-legacy/header-legacy.js +10 -7
- package/components/island-legacy/island-legacy.d.ts +2 -2
- package/components/island-legacy/island-legacy.js +7 -5
- package/components/link/clickableLink.d.ts +2 -1
- package/components/link/clickableLink.js +8 -6
- package/components/link/link.d.ts +23 -23
- package/components/link/link.js +12 -9
- package/components/list/consts.d.ts +2 -1
- package/components/list/list.d.ts +11 -11
- package/components/list/list.js +109 -95
- package/components/list/list__custom.d.ts +2 -1
- package/components/list/list__custom.js +7 -5
- package/components/list/list__hint.d.ts +2 -2
- package/components/list/list__hint.js +7 -9
- package/components/list/list__item.d.ts +2 -2
- package/components/list/list__item.js +73 -65
- package/components/list/list__link.d.ts +2 -2
- package/components/list/list__link.js +8 -10
- package/components/list/list__separator.d.ts +2 -2
- package/components/list/list__separator.js +7 -5
- package/components/list/list__title.d.ts +2 -2
- package/components/list/list__title.js +15 -11
- package/components/list/list__users-groups-source.js +3 -1
- package/components/loader/loader.d.ts +2 -2
- package/components/loader/loader.js +5 -10
- package/components/loader/loader__core.js +1 -1
- package/components/loader-inline/loader-inline.d.ts +2 -2
- package/components/loader-inline/loader-inline.js +10 -9
- package/components/loader-screen/loader-screen.d.ts +2 -2
- package/components/loader-screen/loader-screen.js +10 -11
- package/components/login-dialog/login-dialog.d.ts +2 -2
- package/components/login-dialog/login-dialog.js +21 -16
- package/components/login-dialog/service.js +6 -4
- package/components/markdown/markdown.d.ts +2 -2
- package/components/markdown/markdown.js +7 -8
- package/components/message/message.d.ts +2 -2
- package/components/message/message.js +50 -41
- package/components/old-browsers-message/white-list.js +1 -1
- package/components/pager/pager.d.ts +2 -1
- package/components/pager/pager.js +71 -53
- package/components/panel/panel.d.ts +2 -2
- package/components/panel/panel.js +7 -8
- package/components/permissions/permissions.js +1 -1
- package/components/permissions/permissions__cache.js +1 -1
- package/components/popup/popup.d.ts +4 -3
- package/components/popup/popup.js +46 -39
- package/components/popup/popup.target.d.ts +3 -3
- package/components/popup/popup.target.js +11 -8
- package/components/popup-menu/popup-menu.d.ts +2 -2
- package/components/popup-menu/popup-menu.js +13 -9
- package/components/progress-bar/progress-bar.d.ts +2 -2
- package/components/progress-bar/progress-bar.js +17 -18
- package/components/query-assist/query-assist.d.ts +3 -2
- package/components/query-assist/query-assist.js +122 -109
- package/components/query-assist/query-assist__suggestions.d.ts +1 -2
- package/components/query-assist/query-assist__suggestions.js +3 -1
- package/components/radio/radio.d.ts +3 -3
- package/components/radio/radio.js +8 -8
- package/components/radio/radio__item.d.ts +9 -6
- package/components/radio/radio__item.js +46 -37
- package/components/select/select.d.ts +5 -2
- package/components/select/select.js +201 -180
- package/components/select/select__filter.d.ts +2 -2
- package/components/select/select__filter.js +2 -0
- package/components/select/select__popup.d.ts +4 -35
- package/components/select/select__popup.js +101 -84
- package/components/shortcuts/core.d.ts +0 -1
- package/components/shortcuts/core.js +1 -1
- package/components/shortcuts/shortcuts-hoc.d.ts +12 -12
- package/components/shortcuts/shortcuts-hoc.js +10 -8
- package/components/shortcuts/shortcuts.js +1 -1
- package/components/slider/slider.d.ts +2 -1
- package/components/slider/slider.js +78 -78
- package/components/slider/slider.utils.js +1 -1
- package/components/storage/storage.js +2 -1
- package/components/storage/storage__fallback.js +1 -1
- package/components/storage/storage__local.js +3 -2
- package/components/style.css +1 -1
- package/components/tab-trap/tab-trap.d.ts +2 -1
- package/components/tab-trap/tab-trap.js +25 -20
- package/components/table/cell.d.ts +2 -2
- package/components/table/cell.js +7 -5
- package/components/table/disable-hover-hoc.d.ts +13 -13
- package/components/table/disable-hover-hoc.js +4 -3
- package/components/table/header-cell.d.ts +2 -2
- package/components/table/header-cell.js +17 -13
- package/components/table/header.d.ts +3 -3
- package/components/table/header.js +34 -26
- package/components/table/multitable.d.ts +2 -2
- package/components/table/multitable.js +12 -10
- package/components/table/row-with-focus-sensor.d.ts +3 -3
- package/components/table/row-with-focus-sensor.js +5 -3
- package/components/table/row.d.ts +2 -1
- package/components/table/row.js +50 -44
- package/components/table/selection-adapter.js +1 -1
- package/components/table/selection-shortcuts-hoc.js +4 -3
- package/components/table/selection.js +1 -1
- package/components/table/smart-table.d.ts +44 -44
- package/components/table/smart-table.js +5 -3
- package/components/table/table.d.ts +6 -5
- package/components/table/table.js +55 -45
- package/components/tabs/collapsible-more.d.ts +4 -4
- package/components/tabs/collapsible-more.js +37 -30
- package/components/tabs/collapsible-tab.d.ts +2 -1
- package/components/tabs/collapsible-tab.js +6 -6
- package/components/tabs/collapsible-tabs.d.ts +4 -4
- package/components/tabs/collapsible-tabs.js +51 -46
- package/components/tabs/custom-item.d.ts +1 -1
- package/components/tabs/dumb-tabs.d.ts +2 -1
- package/components/tabs/dumb-tabs.js +24 -18
- package/components/tabs/smart-tabs.d.ts +2 -2
- package/components/tabs/smart-tabs.js +8 -4
- package/components/tabs/tab-link.d.ts +3 -3
- package/components/tabs/tab-link.js +1 -0
- package/components/tabs/tab.d.ts +2 -2
- package/components/tabs/tab.js +7 -5
- package/components/tabs/tabs.js +2 -0
- package/components/tag/tag.d.ts +2 -1
- package/components/tag/tag.js +31 -28
- package/components/tags-input/tags-input.d.ts +3 -2
- package/components/tags-input/tags-input.js +52 -47
- package/components/tags-list/tags-list.d.ts +2 -1
- package/components/tags-list/tags-list.js +8 -5
- package/components/text/text.d.ts +2 -2
- package/components/text/text.js +7 -4
- package/components/toggle/toggle.d.ts +2 -2
- package/components/toggle/toggle.js +25 -20
- package/components/tooltip/tooltip.d.ts +2 -1
- package/components/tooltip/tooltip.js +26 -21
- package/components/user-agreement/service.js +20 -12
- package/components/user-agreement/user-agreement.d.ts +2 -2
- package/components/user-agreement/user-agreement.js +56 -39
- package/components/user-card/card.d.ts +2 -1
- package/components/user-card/card.js +1 -0
- package/components/user-card/smart-user-card-tooltip.d.ts +3 -3
- package/components/user-card/smart-user-card-tooltip.js +11 -7
- package/components/user-card/tooltip.d.ts +3 -3
- package/components/user-card/tooltip.js +15 -11
- package/components/user-card/user-card.js +1 -0
- package/package.json +5 -5
@@ -1,6 +1,6 @@
|
|
1
|
-
import { _ as _defineProperty, a as _inherits, b as _createClass,
|
1
|
+
import { _ as _defineProperty, a as _inherits, b as _createClass, e as _classCallCheck, f as _callSuper } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
2
|
import 'core-js/modules/es.array.concat.js';
|
3
|
-
import
|
3
|
+
import { PureComponent } from 'react';
|
4
4
|
import PropTypes from 'prop-types';
|
5
5
|
import classNames from 'classnames';
|
6
6
|
import Dialog from '../dialog/dialog.js';
|
@@ -8,6 +8,7 @@ import '../island/island.js';
|
|
8
8
|
import Panel from '../panel/panel.js';
|
9
9
|
import { Button } from '../button/button.js';
|
10
10
|
import { I18nContext } from '../i18n/i18n-context.js';
|
11
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
11
12
|
import HeaderWrapper from '../island/header.js';
|
12
13
|
import ContentWrapper from '../island/content.js';
|
13
14
|
import 'react-dom';
|
@@ -99,46 +100,62 @@ var UserAgreement = /*#__PURE__*/function (_PureComponent) {
|
|
99
100
|
onDecline = _this$props.onDecline,
|
100
101
|
onClose = _this$props.onClose,
|
101
102
|
onRemindLater = _this$props.onRemindLater,
|
102
|
-
|
103
|
+
_children = _this$props.children,
|
103
104
|
show = _this$props.show,
|
104
105
|
preview = _this$props.preview,
|
105
106
|
className = _this$props.className;
|
106
|
-
return /*#__PURE__*/
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
107
|
+
return /*#__PURE__*/jsx(I18nContext.Consumer, {
|
108
|
+
children: function children(_ref) {
|
109
|
+
var _translations$userAgr, _translations$userAgr2, _translations$scrollT, _translations$accept, _translations$decline, _translations$scrollT2, _translations$remindL, _translations$close;
|
110
|
+
var translate = _ref.translate;
|
111
|
+
return /*#__PURE__*/jsxs(Dialog, {
|
112
|
+
label: (_translations$userAgr = translations === null || translations === void 0 ? void 0 : translations.userAgreement) !== null && _translations$userAgr !== void 0 ? _translations$userAgr : translate('userAgreement'),
|
113
|
+
show: show,
|
114
|
+
className: classNames(modules_f5ed85cf.agreementDialog, className),
|
115
|
+
contentClassName: modules_f5ed85cf.dialogContent,
|
116
|
+
trapFocus: true,
|
117
|
+
autoFocusFirst: false,
|
118
|
+
"data-test": "user-agreement",
|
119
|
+
children: [/*#__PURE__*/jsx(HeaderWrapper, {
|
120
|
+
children: (_translations$userAgr2 = translations === null || translations === void 0 ? void 0 : translations.userAgreement) !== null && _translations$userAgr2 !== void 0 ? _translations$userAgr2 : translate('userAgreement')
|
121
|
+
}), /*#__PURE__*/jsx(ContentWrapper, {
|
122
|
+
fade: true,
|
123
|
+
onScrollToBottom: _this2.onScrollToBottom,
|
124
|
+
children: _children
|
125
|
+
}), !preview && /*#__PURE__*/jsxs(Panel, {
|
126
|
+
children: [onRemindLater && !scrolledDown && /*#__PURE__*/jsx("div", {
|
127
|
+
className: modules_f5ed85cf.suggestion,
|
128
|
+
children: (_translations$scrollT = translations === null || translations === void 0 ? void 0 : translations.scrollToAccept) !== null && _translations$scrollT !== void 0 ? _translations$scrollT : translate('scrollToAccept')
|
129
|
+
}), /*#__PURE__*/jsx(Button, {
|
130
|
+
primary: true,
|
131
|
+
disabled: !scrolledDown,
|
132
|
+
onClick: onAccept,
|
133
|
+
"data-test": "accept",
|
134
|
+
children: (_translations$accept = translations === null || translations === void 0 ? void 0 : translations.accept) !== null && _translations$accept !== void 0 ? _translations$accept : translate('accept')
|
135
|
+
}), /*#__PURE__*/jsx(Button, {
|
136
|
+
onClick: onDecline,
|
137
|
+
autoFocus: true,
|
138
|
+
"data-test": "decline",
|
139
|
+
children: (_translations$decline = translations === null || translations === void 0 ? void 0 : translations.decline) !== null && _translations$decline !== void 0 ? _translations$decline : translate('decline')
|
140
|
+
}), !onRemindLater && !scrolledDown && /*#__PURE__*/jsx("span", {
|
141
|
+
className: modules_f5ed85cf.suggestion,
|
142
|
+
children: (_translations$scrollT2 = translations === null || translations === void 0 ? void 0 : translations.scrollToAccept) !== null && _translations$scrollT2 !== void 0 ? _translations$scrollT2 : translate('scrollToAccept')
|
143
|
+
}), onRemindLater && /*#__PURE__*/jsx(Button, {
|
144
|
+
className: modules_f5ed85cf.remindLaterButton,
|
145
|
+
onClick: onRemindLater,
|
146
|
+
"data-test": "later",
|
147
|
+
children: (_translations$remindL = translations === null || translations === void 0 ? void 0 : translations.remindLater) !== null && _translations$remindL !== void 0 ? _translations$remindL : translate('remindLater')
|
148
|
+
})]
|
149
|
+
}), preview && /*#__PURE__*/jsx(Panel, {
|
150
|
+
children: /*#__PURE__*/jsx(Button, {
|
151
|
+
onClick: onClose,
|
152
|
+
autoFocus: true,
|
153
|
+
"data-test": "close",
|
154
|
+
children: (_translations$close = translations === null || translations === void 0 ? void 0 : translations.close) !== null && _translations$close !== void 0 ? _translations$close : translate('close')
|
155
|
+
})
|
156
|
+
})]
|
157
|
+
});
|
158
|
+
}
|
142
159
|
});
|
143
160
|
}
|
144
161
|
}]);
|
@@ -11,6 +11,7 @@ import '../_helpers/badge.js';
|
|
11
11
|
import '../icon/icon.js';
|
12
12
|
import '../i18n/i18n-context.js';
|
13
13
|
export { U as default } from '../_helpers/card.js';
|
14
|
+
import 'react/jsx-runtime';
|
14
15
|
import '../icon/icon__constants.js';
|
15
16
|
import '../global/url.js';
|
16
17
|
import 'core-js/modules/es.array.index-of.js';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import
|
1
|
+
import { Component } from 'react';
|
2
2
|
import PropTypes from 'prop-types';
|
3
3
|
import { UserCardTooltipAttrs } from './tooltip';
|
4
4
|
import { UserCardUser } from './card';
|
@@ -15,6 +15,6 @@ export default class SmartUserCardTooltip extends Component<SmartUserCardTooltip
|
|
15
15
|
loading: boolean;
|
16
16
|
};
|
17
17
|
loadUser: () => Promise<void>;
|
18
|
-
renderNoUser: () => "" |
|
19
|
-
render():
|
18
|
+
renderNoUser: () => "" | import("react").JSX.Element;
|
19
|
+
render(): import("react").JSX.Element;
|
20
20
|
}
|
@@ -1,10 +1,11 @@
|
|
1
|
-
import { _ as _defineProperty, a as _inherits, b as _createClass, c as _objectWithoutProperties, d as _objectSpread2, e as
|
1
|
+
import { _ as _defineProperty, a as _inherits, b as _createClass, c as _objectWithoutProperties, d as _objectSpread2, e as _classCallCheck, f as _callSuper, g as _asyncToGenerator, h as _regeneratorRuntime } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
2
|
import 'core-js/modules/es.array.concat.js';
|
3
|
-
import
|
3
|
+
import { Component } from 'react';
|
4
4
|
import PropTypes from 'prop-types';
|
5
5
|
import LoaderInline from '../loader-inline/loader-inline.js';
|
6
6
|
import UserCardTooltip from './tooltip.js';
|
7
7
|
import { m as modules_a4196c17 } from '../_helpers/card.js';
|
8
|
+
import { jsx } from 'react/jsx-runtime';
|
8
9
|
import 'classnames';
|
9
10
|
import '../global/data-tests.js';
|
10
11
|
import 'core-js/modules/es.array.reduce.js';
|
@@ -136,9 +137,10 @@ var SmartUserCardTooltip = /*#__PURE__*/function (_Component) {
|
|
136
137
|
}, _callee, null, [[2, 10, 12, 15]]);
|
137
138
|
})));
|
138
139
|
_defineProperty(_this, "renderNoUser", function () {
|
139
|
-
return _this.state.loading ? /*#__PURE__*/
|
140
|
-
className: modules_a4196c17.userCardSpaced
|
141
|
-
|
140
|
+
return _this.state.loading ? /*#__PURE__*/jsx("div", {
|
141
|
+
className: modules_a4196c17.userCardSpaced,
|
142
|
+
children: /*#__PURE__*/jsx(LoaderInline, {})
|
143
|
+
}) : '';
|
142
144
|
});
|
143
145
|
return _this;
|
144
146
|
}
|
@@ -154,11 +156,13 @@ var SmartUserCardTooltip = /*#__PURE__*/function (_Component) {
|
|
154
156
|
var dropdownProps = _objectSpread2({
|
155
157
|
onMouseEnter: this.loadUser
|
156
158
|
}, UserCardTooltip.defaultProps.dropdownProps);
|
157
|
-
return /*#__PURE__*/
|
159
|
+
return /*#__PURE__*/jsx(UserCardTooltip, _objectSpread2(_objectSpread2({
|
158
160
|
user: user,
|
159
161
|
renderNoUser: this.renderNoUser,
|
160
162
|
dropdownProps: dropdownProps
|
161
|
-
}, restProps),
|
163
|
+
}, restProps), {}, {
|
164
|
+
children: children
|
165
|
+
}));
|
162
166
|
}
|
163
167
|
}]);
|
164
168
|
}(Component);
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import
|
1
|
+
import { Component, ReactElement, ReactNode } from 'react';
|
2
2
|
import PropTypes from 'prop-types';
|
3
3
|
import { DropdownAttrs } from '../dropdown/dropdown';
|
4
4
|
import { UserCardAttrs, UserCardUser } from './card';
|
@@ -23,14 +23,14 @@ export default class UserCardTooltip extends Component<UserCardTooltipProps> {
|
|
23
23
|
renderNoUser: PropTypes.Requireable<(...args: any[]) => any>;
|
24
24
|
};
|
25
25
|
static defaultProps: {
|
26
|
-
renderUserCard: (props: UserCardAttrs) =>
|
26
|
+
renderUserCard: (props: UserCardAttrs) => import("react").JSX.Element;
|
27
27
|
renderNoUser: () => string;
|
28
28
|
dropdownProps: {
|
29
29
|
hoverShowTimeOut: number;
|
30
30
|
hoverHideTimeOut: number;
|
31
31
|
};
|
32
32
|
};
|
33
|
-
render():
|
33
|
+
render(): import("react").JSX.Element;
|
34
34
|
}
|
35
35
|
export type UserCardTooltipAttrs = JSX.LibraryManagedAttributes<typeof UserCardTooltip, UserCardTooltipProps>;
|
36
36
|
export {};
|
@@ -1,10 +1,11 @@
|
|
1
|
-
import { _ as _defineProperty, a as _inherits, b as _createClass, c as _objectWithoutProperties,
|
2
|
-
import
|
1
|
+
import { _ as _defineProperty, a as _inherits, b as _createClass, c as _objectWithoutProperties, d as _objectSpread2, e as _classCallCheck, f as _callSuper } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
|
+
import { Component } from 'react';
|
3
3
|
import classNames from 'classnames';
|
4
4
|
import PropTypes from 'prop-types';
|
5
5
|
import Dropdown from '../dropdown/dropdown.js';
|
6
6
|
import Popup from '../popup/popup.js';
|
7
|
-
import {
|
7
|
+
import { U as UserCard, m as modules_a4196c17 } from '../_helpers/card.js';
|
8
|
+
import { jsx } from 'react/jsx-runtime';
|
8
9
|
import 'core-js/modules/es.array.concat.js';
|
9
10
|
import '../global/data-tests.js';
|
10
11
|
import 'core-js/modules/es.array.reduce.js';
|
@@ -101,16 +102,19 @@ var UserCardTooltip = /*#__PURE__*/function (_Component) {
|
|
101
102
|
dropdownProps = _this$props.dropdownProps,
|
102
103
|
user = _this$props.user,
|
103
104
|
restProps = _objectWithoutProperties(_this$props, _excluded);
|
104
|
-
return /*#__PURE__*/
|
105
|
+
return /*#__PURE__*/jsx(Dropdown, _objectSpread2(_objectSpread2({
|
105
106
|
anchor: children,
|
106
107
|
hoverMode: true,
|
107
108
|
clickMode: false
|
108
|
-
}, dropdownProps),
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
109
|
+
}, dropdownProps), {}, {
|
110
|
+
children: /*#__PURE__*/jsx(Popup, {
|
111
|
+
attached: false,
|
112
|
+
children: user ? renderUserCard(_objectSpread2(_objectSpread2({}, restProps), {}, {
|
113
|
+
user,
|
114
|
+
className: classNames(modules_a4196c17.userCardSpaced, this.props.className)
|
115
|
+
})) : renderNoUser()
|
116
|
+
})
|
117
|
+
}));
|
114
118
|
}
|
115
119
|
}]);
|
116
120
|
}(Component);
|
@@ -126,7 +130,7 @@ _defineProperty(UserCardTooltip, "defaultProps", {
|
|
126
130
|
renderUserCard: function renderUserCard(props) {
|
127
131
|
var user = props.user,
|
128
132
|
restProps = _objectWithoutProperties(props, _excluded2);
|
129
|
-
return user && /*#__PURE__*/
|
133
|
+
return user && /*#__PURE__*/jsx(UserCard, _objectSpread2({
|
130
134
|
user: user
|
131
135
|
}, restProps));
|
132
136
|
},
|
@@ -29,6 +29,7 @@ import 'core-js/modules/es.array.map.js';
|
|
29
29
|
import 'core-js/modules/es.array.slice.js';
|
30
30
|
import '../global/get-uid.js';
|
31
31
|
import 'core-js/modules/es.regexp.to-string.js';
|
32
|
+
import 'react/jsx-runtime';
|
32
33
|
import '../link/link.js';
|
33
34
|
import '../global/data-tests.js';
|
34
35
|
import 'core-js/modules/es.array.reduce.js';
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@jetbrains/ring-ui-built",
|
3
|
-
"version": "6.0.
|
3
|
+
"version": "6.0.37",
|
4
4
|
"description": "JetBrains UI library",
|
5
5
|
"author": "JetBrains",
|
6
6
|
"license": "Apache-2.0",
|
@@ -36,10 +36,10 @@
|
|
36
36
|
"console-errors": "jest console-errors.test.js --watchAll",
|
37
37
|
"console-errors-ci": "jest console-errors.test.js --reporters=jest-teamcity",
|
38
38
|
"test": "vitest src",
|
39
|
-
"
|
40
|
-
"
|
41
|
-
"
|
42
|
-
"
|
39
|
+
"screenshots-gui": "npm --prefix packages/screenshots run gui",
|
40
|
+
"screenshots-test": "npm --prefix packages/screenshots run test",
|
41
|
+
"screenshots-test-ci": "npm --prefix packages/screenshots run test-ci",
|
42
|
+
"screenshots-gather": "npm --prefix packages/screenshots run gather",
|
43
43
|
"build-stories": "storybook build --quiet -c .storybook -o storybook-dist",
|
44
44
|
"prebuild": "rimraf components && tsc --project tsconfig-build.json && cpy '**/*' '!**/*.ts' '!**/*.tsx' '!**/__mocks__/**' ../components --parents --cwd=src/",
|
45
45
|
"build": "./node_modules/.bin/rollup -c --bundleConfigAsCjs",
|