@jetbrains/ring-ui-built 7.0.11 → 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,8 +1,8 @@
|
|
1
1
|
import { a as _objectWithoutProperties, b as _objectSpread2 } from './_rollupPluginBabelHelpers.js';
|
2
|
+
import { jsx } from 'react/jsx-runtime';
|
2
3
|
import { memo } from 'react';
|
3
4
|
import classNames from 'classnames';
|
4
5
|
import { Button } from '../button/button.js';
|
5
|
-
import { jsx } from 'react/jsx-runtime';
|
6
6
|
|
7
7
|
var styles = {"dropdown":"dropdown_rui_13c4","anchor":"anchor_rui_13c4"};
|
8
8
|
|
@@ -13,7 +13,7 @@ const Anchor = _ref => {
|
|
13
13
|
className
|
14
14
|
} = _ref,
|
15
15
|
restProps = _objectWithoutProperties(_ref, _excluded);
|
16
|
-
return
|
16
|
+
return jsx(Button, _objectSpread2(_objectSpread2({
|
17
17
|
"data-test-ring-dropdown-anchor": true,
|
18
18
|
inline: true,
|
19
19
|
dropdown: true,
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { b as _objectSpread2 } from './_rollupPluginBabelHelpers.js';
|
2
|
+
import { jsx } from 'react/jsx-runtime';
|
2
3
|
import { PureComponent } from 'react';
|
3
4
|
import classNames from 'classnames';
|
4
|
-
import { jsx } from 'react/jsx-runtime';
|
5
5
|
|
6
6
|
var styles = {"button":"button_rui_0b90","active":"active_rui_0b90","primary":"primary_rui_0b90","buttonGroup":"buttonGroup_rui_bbca common_rui_bbca buttonGroup_rui_f4fc","common":"common_rui_bbca","split":"split_rui_bbca common_rui_bbca buttonGroup_rui_f4fc","caption":"caption_rui_bbca font_rui_8bff","help":"help_rui_bbca"};
|
7
7
|
|
@@ -11,7 +11,7 @@ class Caption extends PureComponent {
|
|
11
11
|
className
|
12
12
|
} = this.props;
|
13
13
|
const classes = classNames(styles.caption, className);
|
14
|
-
return
|
14
|
+
return jsx("span", _objectSpread2(_objectSpread2({}, this.props), {}, {
|
15
15
|
className: classes
|
16
16
|
}));
|
17
17
|
}
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import { _ as _defineProperty, a as _objectWithoutProperties, b as _objectSpread2 } from './_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 copyIcon from '@jetbrains/icons/copy';
|
@@ -10,7 +11,6 @@ import Tag from '../tag/tag.js';
|
|
10
11
|
import Icon from '../icon/icon.js';
|
11
12
|
import { I18nContext } from '../i18n/i18n-context.js';
|
12
13
|
import Tooltip from '../tooltip/tooltip.js';
|
13
|
-
import { jsx, jsxs } from 'react/jsx-runtime';
|
14
14
|
import { Size as Size$1 } from '../icon/icon__constants.js';
|
15
15
|
|
16
16
|
var styles = {"userCardSpaced":"userCardSpaced_rui_6e59","userInformationContainer":"userInformationContainer_rui_6e59","userAvatar":"userAvatar_rui_6e59","userInformation":"userInformation_rui_6e59","userInformationGeneral":"userInformationGeneral_rui_6e59","userNameLine":"userNameLine_rui_6e59","userName":"userName_rui_6e59","userLogin":"userLogin_rui_6e59","userEmail":"userEmail_rui_6e59","userCopyIcon":"userCopyIcon_rui_6e59","userEmailWrapper":"userEmailWrapper_rui_6e59","unverifiedLabel":"unverifiedLabel_rui_6e59","userNameInfo":"userNameInfo_rui_6e59","banLabel":"banLabel_rui_6e59","userActiveStatus":"userActiveStatus_rui_6e59","online":"online_rui_6e59"};
|
@@ -45,59 +45,59 @@ class UserCard extends PureComponent {
|
|
45
45
|
const translations = this.props.translations;
|
46
46
|
const classes = classNames(className, {});
|
47
47
|
const userActiveStatusClasses = classNames(styles.userActiveStatus, user.online ? styles.online : '');
|
48
|
-
return
|
48
|
+
return jsx("div", _objectSpread2(_objectSpread2({
|
49
49
|
className: classes
|
50
50
|
}, restProps), {}, {
|
51
|
-
children:
|
51
|
+
children: jsxs("div", {
|
52
52
|
className: styles.userInformationContainer,
|
53
|
-
children: [
|
53
|
+
children: [jsxs("div", {
|
54
54
|
className: styles.userAvatar,
|
55
|
-
children: [
|
55
|
+
children: [jsx(Avatar, {
|
56
56
|
size: Size.Size56,
|
57
57
|
url: user.avatarUrl,
|
58
58
|
round: true
|
59
59
|
}), !!avatarInfo && avatarInfo]
|
60
|
-
}),
|
60
|
+
}), jsxs("div", {
|
61
61
|
className: styles.userInformation,
|
62
|
-
children: [
|
62
|
+
children: [jsxs("div", {
|
63
63
|
className: styles.userInformationGeneral,
|
64
|
-
children: [
|
64
|
+
children: [jsxs("div", {
|
65
65
|
className: styles.userNameLine,
|
66
|
-
children: [user.href &&
|
66
|
+
children: [user.href && jsx(Link, {
|
67
67
|
href: user.href,
|
68
68
|
className: styles.userName,
|
69
69
|
children: user.name
|
70
|
-
}), !user.href &&
|
70
|
+
}), !user.href && jsx("span", {
|
71
71
|
className: styles.userName,
|
72
72
|
children: user.name
|
73
|
-
}), typeof user.online === 'boolean' &&
|
73
|
+
}), typeof user.online === 'boolean' && jsx("span", {
|
74
74
|
className: userActiveStatusClasses,
|
75
75
|
title: user.online ? (_translations$online = translations === null || translations === void 0 ? void 0 : translations.online) !== null && _translations$online !== void 0 ? _translations$online : translate('online') : (_translations$offline = translations === null || translations === void 0 ? void 0 : translations.offline) !== null && _translations$offline !== void 0 ? _translations$offline : translate('offline')
|
76
|
-
}), !!info &&
|
76
|
+
}), !!info && jsx("span", {
|
77
77
|
className: styles.userNameInfo,
|
78
78
|
children: info
|
79
|
-
}), user.banned &&
|
79
|
+
}), user.banned && jsx(Tooltip, {
|
80
80
|
title: user.banReason,
|
81
|
-
children:
|
81
|
+
children: jsx(Tag, {
|
82
82
|
className: styles.banLabel,
|
83
83
|
children: (_translations$banned = translations === null || translations === void 0 ? void 0 : translations.banned) !== null && _translations$banned !== void 0 ? _translations$banned : translate('banned')
|
84
84
|
})
|
85
85
|
})]
|
86
|
-
}),
|
86
|
+
}), jsx("div", {
|
87
87
|
className: styles.userLogin,
|
88
88
|
children: user.login
|
89
|
-
}), user.email &&
|
89
|
+
}), user.email && jsxs("span", {
|
90
90
|
className: styles.userEmailWrapper,
|
91
|
-
children: [
|
91
|
+
children: [jsx(Link, {
|
92
92
|
href: "mailto:".concat(user.email),
|
93
93
|
title: "mailto:".concat(user.email),
|
94
94
|
target: "_blank",
|
95
95
|
className: styles.userEmail,
|
96
96
|
children: user.email
|
97
|
-
}), user.unverifiedEmail &&
|
97
|
+
}), user.unverifiedEmail && jsx("span", {
|
98
98
|
className: styles.unverifiedLabel,
|
99
99
|
children: (_translations$unverif = translations === null || translations === void 0 ? void 0 : translations.unverified) !== null && _translations$unverif !== void 0 ? _translations$unverif : translate('unverified')
|
100
|
-
}),
|
100
|
+
}), jsx(Icon, {
|
101
101
|
title: (_translations$copyToC = translations === null || translations === void 0 ? void 0 : translations.copyToClipboard) !== null && _translations$copyToC !== void 0 ? _translations$copyToC : translate('copyToClipboard'),
|
102
102
|
className: styles.userCopyIcon,
|
103
103
|
onClick: this.copyEmail,
|
@@ -1,10 +1,10 @@
|
|
1
1
|
import { a as _objectWithoutProperties, b as _objectSpread2 } from './_rollupPluginBabelHelpers.js';
|
2
2
|
import 'core-js/modules/es.regexp.exec.js';
|
3
3
|
import 'core-js/modules/es.string.replace.js';
|
4
|
+
import { jsx } from 'react/jsx-runtime';
|
4
5
|
import { memo } from 'react';
|
5
6
|
import classNames from 'classnames';
|
6
7
|
import memoize from '../global/memoize.js';
|
7
|
-
import { jsx } from 'react/jsx-runtime';
|
8
8
|
|
9
9
|
var styles = {"icon":"icon_rui_2d39","glyph":"glyph_rui_2d39","compatibilityMode":"compatibilityMode_rui_2d39","gray":"gray_rui_2d39","hover":"hover_rui_2d39","green":"green_rui_2d39","magenta":"magenta_rui_2d39","red":"red_rui_2d39","blue":"blue_rui_2d39","white":"white_rui_2d39","loading":"loading_rui_2d39","icon-loading":"icon-loading_rui_2d39"};
|
10
10
|
|
@@ -62,7 +62,7 @@ function IconSVG(_ref) {
|
|
62
62
|
props,
|
63
63
|
html
|
64
64
|
} = getSVGFromSource(src);
|
65
|
-
return
|
65
|
+
return jsx("svg", _objectSpread2(_objectSpread2(_objectSpread2({}, props), rest), {}, {
|
66
66
|
className: glyphClasses,
|
67
67
|
dangerouslySetInnerHTML: {
|
68
68
|
__html: html
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import { _ as _defineProperty, a as _objectWithoutProperties, b as _objectSpread2 } from './_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 closeIcon from '@jetbrains/icons/close-12px';
|
@@ -11,7 +12,6 @@ import { createComposedRef } from '../global/composeRefs.js';
|
|
11
12
|
import { ControlsHeightContext } from '../global/controls-height.js';
|
12
13
|
import { ControlLabel } from '../control-label/control-label.js';
|
13
14
|
import ControlHelp from '../control-help/control-help.js';
|
14
|
-
import { jsx, jsxs } from 'react/jsx-runtime';
|
15
15
|
|
16
16
|
var inputStyles = {"outerContainer":"outerContainer_rui_e356","borderless":"borderless_rui_e356","container":"container_rui_e356","input":"input_rui_e356","error":"error_rui_e356","withIcon":"withIcon_rui_e356","clearable":"clearable_rui_e356","icon":"icon_rui_e356","clear":"clear_rui_e356","empty":"empty_rui_e356","errorText":"errorText_rui_e356","helpText":"helpText_rui_e356","sizeS":"sizeS_rui_e356","sizeM":"sizeM_rui_e356","sizeL":"sizeL_rui_e356","sizeFULL":"sizeFULL_rui_e356","heightS":"heightS_rui_e356","heightM":"heightM_rui_e356","heightL":"heightL_rui_e356"};
|
17
17
|
|
@@ -146,41 +146,41 @@ class Input extends PureComponent {
|
|
146
146
|
'aria-label': typeof label === 'string' && label ? label : placeholder,
|
147
147
|
'data-enabled-shortcuts': Array.isArray(enableShortcuts) ? enableShortcuts.join(',') : null
|
148
148
|
};
|
149
|
-
return
|
149
|
+
return jsx(I18nContext.Consumer, {
|
150
150
|
children: _ref => {
|
151
151
|
var _translations$clear;
|
152
152
|
let {
|
153
153
|
translate
|
154
154
|
} = _ref;
|
155
|
-
return
|
155
|
+
return jsxs("div", {
|
156
156
|
className: classes,
|
157
157
|
"data-test": "ring-input",
|
158
|
-
children: [label &&
|
158
|
+
children: [label && jsx(ControlLabel, {
|
159
159
|
htmlFor: this.getId(),
|
160
160
|
disabled: disabled,
|
161
161
|
type: labelType,
|
162
162
|
children: label
|
163
|
-
}),
|
163
|
+
}), jsxs("div", {
|
164
164
|
className: inputStyles.container,
|
165
|
-
children: [icon &&
|
165
|
+
children: [icon && jsx(Icon, {
|
166
166
|
glyph: icon,
|
167
167
|
className: inputStyles.icon
|
168
|
-
}), multiline ?
|
168
|
+
}), multiline ? jsx("textarea", _objectSpread2(_objectSpread2({
|
169
169
|
onChange: this.handleTextareaChange,
|
170
170
|
rows: 1
|
171
|
-
}, commonProps), restProps)) :
|
171
|
+
}, commonProps), restProps)) : jsx("input", _objectSpread2(_objectSpread2({
|
172
172
|
onChange: this.handleInputChange
|
173
|
-
}, commonProps), restProps)), clearable && !disabled &&
|
173
|
+
}, commonProps), restProps)), clearable && !disabled && jsx(Button, {
|
174
174
|
title: (_translations$clear = translations === null || translations === void 0 ? void 0 : translations.clear) !== null && _translations$clear !== void 0 ? _translations$clear : translate('clear'),
|
175
175
|
"data-test": "ring-input-clear",
|
176
176
|
className: inputStyles.clear,
|
177
177
|
icon: closeIcon,
|
178
178
|
onClick: this.clear
|
179
179
|
}), afterInput]
|
180
|
-
}), error ?
|
180
|
+
}), error ? jsx("div", {
|
181
181
|
className: inputStyles.errorText,
|
182
182
|
children: error
|
183
|
-
}) : help &&
|
183
|
+
}) : help && jsx(ControlHelp, {
|
184
184
|
className: inputStyles.helpText,
|
185
185
|
children: help
|
186
186
|
})]
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import 'core-js/modules/es.symbol.description.js';
|
2
|
-
import List from '../list/list.js';
|
3
2
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
3
|
+
import List from '../list/list.js';
|
4
4
|
|
5
5
|
var styles = {"queryAssist":"queryAssist_rui_d22e","error":"error_rui_d22e","queryAssistDisabled":"queryAssistDisabled_rui_d22e","huge":"huge_rui_d22e","actions":"actions_rui_d22e","input":"input_rui_d22e","letter-text":"letter-text_rui_d22e","letterDefault":"letterDefault_rui_d22e","letter-field-name":"letter-field-name_rui_d22e","letter-field-value":"letter-field-value_rui_d22e","letter-operator":"letter-operator_rui_d22e","letter-error":"letter-error_rui_d22e","highlight":"highlight_rui_d22e","service":"service_rui_d22e","placeholder":"placeholder_rui_d22e resetButton_rui_8bff","hugePlaceholder":"hugePlaceholder_rui_d22e","letter":"letter_rui_d22e","icon":"icon_rui_d22e","rightSearchButton":"rightSearchButton_rui_d22e","clear":"clear_rui_d22e","withoutGlass":"withoutGlass_rui_d22e","loaderActive":"loaderActive_rui_d22e","loaderOnTheRight":"loaderOnTheRight_rui_d22e","inputRevertOrder":"inputRevertOrder_rui_d22e"};
|
6
6
|
|
@@ -35,7 +35,7 @@ class QueryAssistSuggestions {
|
|
35
35
|
let after = '';
|
36
36
|
if (matchingStart !== matchingEnd) {
|
37
37
|
before = option.substring(0, matchingStart);
|
38
|
-
wrappedOption =
|
38
|
+
wrappedOption = jsx("span", {
|
39
39
|
className: styles.highlight,
|
40
40
|
children: option.substring(matchingStart, matchingEnd)
|
41
41
|
});
|
@@ -43,15 +43,15 @@ class QueryAssistSuggestions {
|
|
43
43
|
} else {
|
44
44
|
wrappedOption = option;
|
45
45
|
}
|
46
|
-
const wrappedPrefix = prefix &&
|
46
|
+
const wrappedPrefix = prefix && jsx("span", {
|
47
47
|
className: styles.service,
|
48
48
|
children: prefix
|
49
49
|
});
|
50
|
-
const wrappedSuffix = suffix &&
|
50
|
+
const wrappedSuffix = suffix && jsx("span", {
|
51
51
|
className: styles.service,
|
52
52
|
children: suffix
|
53
53
|
});
|
54
|
-
return
|
54
|
+
return jsxs("span", {
|
55
55
|
className: className,
|
56
56
|
children: [wrappedPrefix, before, wrappedOption, after, wrappedSuffix]
|
57
57
|
});
|
@@ -1,12 +1,12 @@
|
|
1
1
|
import { _ as _defineProperty, a as _objectWithoutProperties, b as _objectSpread2 } from './_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 classNames from 'classnames';
|
5
6
|
import { I as Input } from './input.js';
|
6
7
|
import sniffr from '../global/sniffer.js';
|
7
8
|
import { ActiveItemContext } from '../list/list.js';
|
8
9
|
import { I18nContext } from '../i18n/i18n-context.js';
|
9
|
-
import { jsx } from 'react/jsx-runtime';
|
10
10
|
|
11
11
|
var styles = {"filterWithTagsFocused":"filterWithTagsFocused_rui_531d","filterWithTags":"filterWithTags_rui_531d","filterWrapper":"filterWrapper_rui_531d","filterWithTagsInput":"filterWithTagsInput_rui_531d","filter":"filter_rui_531d","popup":"popup_rui_531d","filterIcon":"filterIcon_rui_531d","bottomLine":"bottomLine_rui_531d","bottomLineOverItem":"bottomLineOverItem_rui_531d","message":"message_rui_531d","selectAll":"selectAll_rui_531d"};
|
12
12
|
|
@@ -49,14 +49,14 @@ class SelectFilter extends Component {
|
|
49
49
|
} = _this$props,
|
50
50
|
restProps = _objectWithoutProperties(_this$props, _excluded);
|
51
51
|
const classes = classNames(styles.filter, className);
|
52
|
-
return
|
53
|
-
children: activeItemId =>
|
52
|
+
return jsx(ActiveItemContext.ValueContext.Consumer, {
|
53
|
+
children: activeItemId => jsx(I18nContext.Consumer, {
|
54
54
|
children: _ref => {
|
55
55
|
var _restProps$placeholde;
|
56
56
|
let {
|
57
57
|
translate
|
58
58
|
} = _ref;
|
59
|
-
return
|
59
|
+
return jsx(Input, _objectSpread2(_objectSpread2({}, restProps), {}, {
|
60
60
|
placeholder: (_restProps$placeholde = restProps.placeholder) !== null && _restProps$placeholde !== void 0 ? _restProps$placeholde : translate('filterItems'),
|
61
61
|
"aria-owns": listId,
|
62
62
|
"aria-activedescendant": activeItemId,
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { a as _objectWithoutProperties, b as _objectSpread2 } from './_rollupPluginBabelHelpers.js';
|
2
|
+
import { jsx } from 'react/jsx-runtime';
|
2
3
|
import { PureComponent } from 'react';
|
3
4
|
import Link from '../link/link.js';
|
4
|
-
import { jsx } from 'react/jsx-runtime';
|
5
5
|
|
6
6
|
var styles = {"services":"services_rui_e0d5","active":"active_rui_e0d5","item":"item_rui_e0d5","itemLogo":"itemLogo_rui_e0d5","activeItem":"activeItem_rui_e0d5 item_rui_e0d5 active_rui_e0d5","line":"line_rui_e0d5","itemStacked":"itemStacked_rui_e0d5","activeItemStacked":"activeItemStacked_rui_e0d5 itemStacked_rui_e0d5 active_rui_e0d5"};
|
7
7
|
|
@@ -13,16 +13,16 @@ class ServicesLink extends PureComponent {
|
|
13
13
|
service
|
14
14
|
} = _this$props,
|
15
15
|
props = _objectWithoutProperties(_this$props, _excluded);
|
16
|
-
return
|
16
|
+
return jsx(Link, _objectSpread2(_objectSpread2({
|
17
17
|
target: "_self",
|
18
18
|
href: service.homeUrl
|
19
19
|
}, props), {}, {
|
20
|
-
children: service.iconUrl ? [
|
20
|
+
children: service.iconUrl ? [jsx("span", {
|
21
21
|
className: styles.itemLogo,
|
22
22
|
style: {
|
23
23
|
backgroundImage: "url(".concat(service.iconUrl, ")")
|
24
24
|
}
|
25
|
-
}, "icon"),
|
25
|
+
}, "icon"), jsx("div", {
|
26
26
|
children: service.name
|
27
27
|
}, "text")] : service.name
|
28
28
|
}));
|
@@ -1,9 +1,9 @@
|
|
1
1
|
import { _ as _defineProperty, a as _objectWithoutProperties, b as _objectSpread2 } from './_rollupPluginBabelHelpers.js';
|
2
2
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
3
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
3
4
|
import { Component } from 'react';
|
4
5
|
import classNames from 'classnames';
|
5
6
|
import { Waypoint } from 'react-waypoint';
|
6
|
-
import { jsxs, jsx } from 'react/jsx-runtime';
|
7
7
|
|
8
8
|
var styles = {"extra-small-screen-media":"(max-width: 639px)","small-screen-media":"(min-width: 640px) and (max-width: 959px)","contentLayout":"contentLayout_rui_8468","contentLayoutContent":"contentLayoutContent_rui_8468","sidebarContainer":"sidebarContainer_rui_8468","sidebarContainerRight":"sidebarContainerRight_rui_8468","sidebar":"sidebar_rui_8468","sidebarRight":"sidebarRight_rui_8468","sidebarFixedTop":"sidebarFixedTop_rui_8468","sidebarFixedBottom":"sidebarFixedBottom_rui_8468","bottomMarker":"bottomMarker_rui_8468","contentLayoutResponsive":"contentLayoutResponsive_rui_8468"};
|
9
9
|
|
@@ -90,19 +90,19 @@ class Sidebar extends Component {
|
|
90
90
|
const style = {
|
91
91
|
maxHeight: shouldFixateBottom && sidebarVisibleHeight ? "".concat(sidebarVisibleHeight, "px") : undefined
|
92
92
|
};
|
93
|
-
return
|
93
|
+
return jsxs("aside", {
|
94
94
|
className: containerClasses,
|
95
95
|
ref: this.sidebarRef,
|
96
|
-
children: [
|
96
|
+
children: [jsx(Waypoint, {
|
97
97
|
onEnter: this.handleTopWaypoint,
|
98
98
|
onLeave: this.handleTopWaypoint
|
99
|
-
}),
|
99
|
+
}), jsx("div", _objectSpread2(_objectSpread2({}, restProps), {}, {
|
100
100
|
style: style,
|
101
101
|
className: classes,
|
102
102
|
children: children
|
103
|
-
})),
|
103
|
+
})), jsx("div", {
|
104
104
|
className: styles.bottomMarker,
|
105
|
-
children:
|
105
|
+
children: jsx(Waypoint, {
|
106
106
|
onEnter: this.handleBottomWaypoint,
|
107
107
|
onLeave: this.handleBottomWaypoint
|
108
108
|
})
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { a as _objectWithoutProperties, b as _objectSpread2 } from './_rollupPluginBabelHelpers.js';
|
2
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
2
3
|
import { memo } from 'react';
|
3
4
|
import Link from '../link/link.js';
|
4
|
-
import { jsx, jsxs } from 'react/jsx-runtime';
|
5
5
|
|
6
6
|
var styles = {"tabs":"tabs_rui_aa34 font_rui_8bff","titles":"titles_rui_aa34","title":"title_rui_aa34 font_rui_8bff","selected":"selected_rui_aa34","collapsed":"collapsed_rui_aa34","titleLegacy":"titleLegacy_rui_aa34","visible":"visible_rui_aa34","container":"container_rui_aa34","hidden":"hidden_rui_aa34","hiddenBold":"hiddenBold_rui_aa34","hiddenRegular":"hiddenRegular_rui_aa34","tabCounter":"tabCounter_rui_aa34","autoCollapseContainer":"autoCollapseContainer_rui_aa34","autoCollapse":"autoCollapse_rui_aa34","rendered":"rendered_rui_aa34","adjusted":"adjusted_rui_aa34","measure":"measure_rui_aa34","morePopup":"morePopup_rui_aa34","morePopupBeforeEnd":"morePopupBeforeEnd_rui_aa34"};
|
7
7
|
|
@@ -14,19 +14,19 @@ function TabLink(_ref) {
|
|
14
14
|
} = _ref,
|
15
15
|
restProps = _objectWithoutProperties(_ref, _excluded);
|
16
16
|
const renderedTitle = typeof title === 'function' ? title(isSelected, collapsed) : title;
|
17
|
-
return
|
18
|
-
children:
|
17
|
+
return jsx(Link, _objectSpread2(_objectSpread2({}, restProps), {}, {
|
18
|
+
children: jsxs("div", {
|
19
19
|
className: styles.container,
|
20
|
-
children: [
|
20
|
+
children: [jsx("span", {
|
21
21
|
className: styles.visible,
|
22
22
|
children: renderedTitle
|
23
|
-
}),
|
23
|
+
}), jsx("span", {
|
24
24
|
className: styles.hidden,
|
25
25
|
children: renderedTitle
|
26
|
-
}),
|
26
|
+
}), jsx("span", {
|
27
27
|
className: styles.hiddenBold,
|
28
28
|
children: renderedTitle
|
29
|
-
}),
|
29
|
+
}), jsx("span", {
|
30
30
|
className: styles.hiddenRegular,
|
31
31
|
children: renderedTitle
|
32
32
|
})]
|
@@ -1,12 +1,12 @@
|
|
1
1
|
import { a as _objectWithoutProperties, b as _objectSpread2 } from './_rollupPluginBabelHelpers.js';
|
2
2
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
3
|
+
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
3
4
|
import { createContext, useState, useEffect, forwardRef, useMemo, useContext } from 'react';
|
4
5
|
import classNames from 'classnames';
|
5
6
|
import { createPortal } from 'react-dom';
|
6
7
|
import { PopupTargetContext, PopupTarget } from '../popup/popup.target.js';
|
7
8
|
import { getPopupContainer } from '../popup/popup.js';
|
8
9
|
import getUID from '../global/get-uid.js';
|
9
|
-
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
10
10
|
|
11
11
|
var defaultStyles = {"light":"light_rui_6155"};
|
12
12
|
|
@@ -62,7 +62,7 @@ function applyTheme(theme, container) {
|
|
62
62
|
}
|
63
63
|
}
|
64
64
|
const DefaultWrapper = /*#__PURE__*/forwardRef(function Wrapper(props, ref) {
|
65
|
-
return
|
65
|
+
return jsx("div", _objectSpread2(_objectSpread2({}, props), {}, {
|
66
66
|
ref: ref
|
67
67
|
}));
|
68
68
|
});
|
@@ -89,16 +89,16 @@ const ThemeProvider = /*#__PURE__*/forwardRef(function ThemeProvider(_ref2, ref)
|
|
89
89
|
}, [resolvedTheme, target]);
|
90
90
|
const themeClasses = useThemeClasses(theme);
|
91
91
|
const parentTarget = useContext(PopupTargetContext);
|
92
|
-
return
|
92
|
+
return jsx(ThemeContext.Provider, {
|
93
93
|
value: themeValue,
|
94
|
-
children:
|
94
|
+
children: jsx(WrapperComponent, _objectSpread2(_objectSpread2({
|
95
95
|
ref: ref,
|
96
96
|
className: target != null ? undefined : classNames(className, themeClasses)
|
97
97
|
}, restProps), {}, {
|
98
|
-
children: passToPopups ?
|
98
|
+
children: passToPopups ? jsx(PopupTarget, {
|
99
99
|
id: id,
|
100
|
-
children: popupTarget =>
|
101
|
-
children: [children, /*#__PURE__*/createPortal(
|
100
|
+
children: popupTarget => jsxs(Fragment, {
|
101
|
+
children: [children, /*#__PURE__*/createPortal(jsx("div", {
|
102
102
|
className: themeClasses,
|
103
103
|
children: popupTarget
|
104
104
|
}), parentTarget && getPopupContainer(parentTarget) || document.body)]
|
@@ -1,11 +1,11 @@
|
|
1
1
|
import { _ as _defineProperty } from './_rollupPluginBabelHelpers.js';
|
2
2
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
3
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
3
4
|
import { PureComponent } from 'react';
|
4
5
|
import classNames from 'classnames';
|
5
6
|
import focusSensorHOC from '../global/focus-sensor-hoc.js';
|
6
7
|
import Checkbox from '../checkbox/checkbox.js';
|
7
8
|
import getUID from '../global/get-uid.js';
|
8
|
-
import { jsxs, jsx } from 'react/jsx-runtime';
|
9
9
|
|
10
10
|
var styles = {"dataListWrapper":"dataListWrapper_rui_9f76","dataList":"dataList_rui_9f76","itemContent":"itemContent_rui_9f76","title":"title_rui_9f76","disabledHover":"disabledHover_rui_9f76","titleSelected":"titleSelected_rui_9f76","titleFocused":"titleFocused_rui_9f76","showMore":"showMore_rui_9f76","boxes":"boxes_rui_9f76","checkboxBox":"checkboxBox_rui_9f76","collapseButton":"collapseButton_rui_9f76","collapseIcon":"collapseIcon_rui_9f76","loadingOverlay":"loadingOverlay_rui_9f76","showMoreLoader":"showMoreLoader_rui_9f76"};
|
11
11
|
|
@@ -46,18 +46,18 @@ class Title extends PureComponent {
|
|
46
46
|
[styles.titleFocused]: showFocus,
|
47
47
|
[styles.titleSelected]: selected
|
48
48
|
});
|
49
|
-
return
|
49
|
+
return jsxs("div", {
|
50
50
|
id: this.id,
|
51
51
|
className: classes,
|
52
52
|
style: {
|
53
53
|
paddingLeft: offset
|
54
54
|
},
|
55
55
|
ref: innerRef,
|
56
|
-
children: [
|
56
|
+
children: [jsxs("div", {
|
57
57
|
className: styles.boxes,
|
58
|
-
children: [selectable &&
|
58
|
+
children: [selectable && jsx("div", {
|
59
59
|
className: styles.checkboxBox,
|
60
|
-
children:
|
60
|
+
children: jsx(Checkbox, {
|
61
61
|
"aria-labelledby": this.id,
|
62
62
|
className: showFocus ? 'ring-checkbox_focus' : '',
|
63
63
|
checked: selected,
|
@@ -92,6 +92,6 @@ export default class Alert extends PureComponent<AlertProps, State> {
|
|
92
92
|
*/
|
93
93
|
private _getIcon;
|
94
94
|
storeAlertRef: (node: HTMLDivElement | null) => void;
|
95
|
-
render():
|
95
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
96
96
|
}
|
97
97
|
export { default as Container } from './container';
|
@@ -1,5 +1,6 @@
|
|
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 exceptionIcon from '@jetbrains/icons/exception';
|
@@ -12,7 +13,6 @@ import { getRect } from '../global/dom.js';
|
|
12
13
|
import joinDataTestAttributes from '../global/data-tests.js';
|
13
14
|
import { Button } from '../button/button.js';
|
14
15
|
import { T as Theme, a as ThemeProvider } from '../_helpers/theme.js';
|
15
|
-
import { jsx, jsxs } from 'react/jsx-runtime';
|
16
16
|
export { default as Container } from './container.js';
|
17
17
|
import { Color } from '../icon/icon__constants.js';
|
18
18
|
import 'util-deprecate';
|
@@ -138,13 +138,12 @@ class Alert extends PureComponent {
|
|
138
138
|
* @private
|
139
139
|
*/
|
140
140
|
_getCaption() {
|
141
|
-
return
|
141
|
+
return jsx("span", {
|
142
142
|
className: classNames(styles.caption, this.props.captionClassName, {
|
143
143
|
[styles.withCloseButton]: this.props.closeable
|
144
144
|
}),
|
145
|
-
onClick: this._handleCaptionsLinksClick
|
145
|
+
onClick: this._handleCaptionsLinksClick,
|
146
146
|
// We only process clicks on `a` elements, see above
|
147
|
-
,
|
148
147
|
role: "presentation",
|
149
148
|
children: this.props.children
|
150
149
|
});
|
@@ -156,13 +155,13 @@ class Alert extends PureComponent {
|
|
156
155
|
_getIcon() {
|
157
156
|
const glyph = TypeToIcon[this.props.type];
|
158
157
|
if (glyph) {
|
159
|
-
return
|
158
|
+
return jsx(Icon, {
|
160
159
|
glyph: glyph,
|
161
160
|
className: styles.icon,
|
162
161
|
color: TypeToIconColor[this.props.type] || Color.DEFAULT
|
163
162
|
});
|
164
163
|
} else if (this.props.type === AlertType.LOADING) {
|
165
|
-
return
|
164
|
+
return jsx(LoaderInline, {
|
166
165
|
className: styles.loader
|
167
166
|
});
|
168
167
|
}
|
@@ -192,14 +191,14 @@ class Alert extends PureComponent {
|
|
192
191
|
const style = height ? {
|
193
192
|
marginBottom: -height
|
194
193
|
} : undefined;
|
195
|
-
return
|
194
|
+
return jsxs(ThemeProvider, {
|
196
195
|
theme: theme,
|
197
196
|
className: classes,
|
198
197
|
"data-test": joinDataTestAttributes('alert', dataTest),
|
199
198
|
"data-test-type": type,
|
200
199
|
style: style,
|
201
200
|
ref: this.storeAlertRef,
|
202
|
-
children: [this._getIcon(), this._getCaption(), this.props.closeable ?
|
201
|
+
children: [this._getIcon(), this._getCaption(), this.props.closeable ? jsx(Button, {
|
203
202
|
icon: closeIcon,
|
204
203
|
className: classNames(styles.close, closeButtonClassName),
|
205
204
|
"data-test": "alert-close",
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import { a as _objectWithoutProperties, b as _objectSpread2 } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
|
+
import { jsx } from 'react/jsx-runtime';
|
2
3
|
import { PureComponent, Children, isValidElement, cloneElement } from 'react';
|
3
4
|
import { createPortal } from 'react-dom';
|
4
5
|
import classNames from 'classnames';
|
5
|
-
import { jsx } from 'react/jsx-runtime';
|
6
6
|
|
7
7
|
var styles = {"alertContainer":"alertContainer_rui_a9a3","alertInContainer":"alertInContainer_rui_a9a3 alert_rui_2b32"};
|
8
8
|
|
@@ -20,7 +20,7 @@ class Alerts extends PureComponent {
|
|
20
20
|
if (!show) {
|
21
21
|
return null;
|
22
22
|
}
|
23
|
-
return /*#__PURE__*/createPortal(
|
23
|
+
return /*#__PURE__*/createPortal(jsx("div", _objectSpread2(_objectSpread2({
|
24
24
|
"data-test": "alert-container",
|
25
25
|
className: classes,
|
26
26
|
"aria-live": "polite"
|
@@ -14,7 +14,7 @@ declare class AlertService {
|
|
14
14
|
containerElement: HTMLDivElement;
|
15
15
|
reactRoot: import("react-dom/client").Root;
|
16
16
|
_getShowingAlerts(): AlertItem[];
|
17
|
-
renderAlertContainer(alerts: readonly AlertItem[]): import("react").JSX.Element;
|
17
|
+
renderAlertContainer(alerts: readonly AlertItem[]): import("react/jsx-runtime").JSX.Element;
|
18
18
|
/**
|
19
19
|
* Renders alert container into virtual node to skip maintaining container
|
20
20
|
*/
|
@@ -1,9 +1,9 @@
|
|
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 { createRoot } from 'react-dom/client';
|
4
5
|
import getUID from '../global/get-uid.js';
|
5
6
|
import Alert, { ANIMATION_TIME } from '../alert/alert.js';
|
6
|
-
import { jsx } from 'react/jsx-runtime';
|
7
7
|
import Alerts from '../alert/container.js';
|
8
8
|
import 'react';
|
9
9
|
import 'classnames';
|
@@ -44,6 +44,9 @@ import '../popup/popup.consts.js';
|
|
44
44
|
|
45
45
|
const _excluded = ["message", "key"],
|
46
46
|
_excluded2 = ["onCloseRequest", "onClose"];
|
47
|
+
/**
|
48
|
+
* @name Alert Service
|
49
|
+
*/
|
47
50
|
class AlertService {
|
48
51
|
constructor() {
|
49
52
|
_defineProperty(this, "defaultTimeout", 0);
|
@@ -57,16 +60,16 @@ class AlertService {
|
|
57
60
|
}
|
58
61
|
renderAlertContainer(alerts) {
|
59
62
|
if (alerts.length === 0) {
|
60
|
-
return
|
63
|
+
return jsx("span", {});
|
61
64
|
}
|
62
|
-
return
|
65
|
+
return jsx(Alerts, {
|
63
66
|
children: alerts.map(alert => {
|
64
67
|
const {
|
65
68
|
message,
|
66
69
|
key
|
67
70
|
} = alert,
|
68
71
|
rest = _objectWithoutProperties(alert, _excluded);
|
69
|
-
return
|
72
|
+
return jsx(Alert, _objectSpread2(_objectSpread2({}, rest), {}, {
|
70
73
|
children: message
|
71
74
|
}), key);
|
72
75
|
})
|