@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
package/components/auth/auth.js
CHANGED
@@ -8,12 +8,13 @@ import 'core-js/modules/es.regexp.exec.js';
|
|
8
8
|
import 'core-js/modules/es.string.replace.js';
|
9
9
|
import 'es6-error';
|
10
10
|
import '../global/url.js';
|
11
|
-
import 'react';
|
11
|
+
import 'react/jsx-runtime';
|
12
12
|
import '../alert-service/alert-service.js';
|
13
13
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
14
14
|
import 'react-dom/client';
|
15
15
|
import '../global/get-uid.js';
|
16
16
|
import '../alert/alert.js';
|
17
|
+
import 'react';
|
17
18
|
import 'classnames';
|
18
19
|
import '@jetbrains/icons/exception';
|
19
20
|
import '@jetbrains/icons/checkmark';
|
@@ -24,7 +25,6 @@ import 'util-deprecate';
|
|
24
25
|
import '../icon/icon__constants.js';
|
25
26
|
import '../_helpers/icon__svg.js';
|
26
27
|
import '../global/memoize.js';
|
27
|
-
import 'react/jsx-runtime';
|
28
28
|
import '../loader-inline/loader-inline.js';
|
29
29
|
import '../global/data-tests.js';
|
30
30
|
import '../global/dom.js';
|
@@ -19,6 +19,7 @@ import 'es6-error';
|
|
19
19
|
import 'core-js/modules/es.array.sort.js';
|
20
20
|
import '../storage/storage__local.js';
|
21
21
|
import '../alert-service/alert-service.js';
|
22
|
+
import 'react/jsx-runtime';
|
22
23
|
import 'react-dom/client';
|
23
24
|
import '../global/get-uid.js';
|
24
25
|
import '../alert/alert.js';
|
@@ -33,7 +34,6 @@ import 'util-deprecate';
|
|
33
34
|
import '../icon/icon__constants.js';
|
34
35
|
import '../_helpers/icon__svg.js';
|
35
36
|
import '../global/memoize.js';
|
36
|
-
import 'react/jsx-runtime';
|
37
37
|
import '../loader-inline/loader-inline.js';
|
38
38
|
import '../global/data-tests.js';
|
39
39
|
import '../global/dom.js';
|
@@ -1,14 +1,14 @@
|
|
1
|
-
import 'react';
|
1
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
2
2
|
import alertService from '../alert-service/alert-service.js';
|
3
3
|
import Alert from '../alert/alert.js';
|
4
4
|
import Link from '../link/link.js';
|
5
5
|
import Group from '../group/group.js';
|
6
|
-
import { jsx, jsxs } from 'react/jsx-runtime';
|
7
6
|
import '../_helpers/_rollupPluginBabelHelpers.js';
|
8
7
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
9
8
|
import 'react-dom/client';
|
10
9
|
import '../global/get-uid.js';
|
11
10
|
import '../alert/container.js';
|
11
|
+
import 'react';
|
12
12
|
import 'react-dom';
|
13
13
|
import 'classnames';
|
14
14
|
import '@jetbrains/icons/exception';
|
@@ -72,17 +72,17 @@ function Message(_ref) {
|
|
72
72
|
checkAgain,
|
73
73
|
errorMessage
|
74
74
|
} = translations;
|
75
|
-
return
|
75
|
+
return jsxs("div", {
|
76
76
|
"data-test": "ring-backend-down-notification",
|
77
|
-
children: [
|
78
|
-
children:
|
77
|
+
children: [jsx(Group, {
|
78
|
+
children: jsx("div", {
|
79
79
|
className: styles.title,
|
80
80
|
children: backendIsNotAvailable
|
81
81
|
})
|
82
|
-
}),
|
82
|
+
}), jsxs("span", {
|
83
83
|
className: styles.error,
|
84
84
|
children: [errorMessage, " "]
|
85
|
-
}),
|
85
|
+
}), jsx(Link, {
|
86
86
|
onClick: onCheckAgain,
|
87
87
|
"data-test": "check-again",
|
88
88
|
children: checkAgain
|
@@ -101,13 +101,13 @@ function onBackendDown(_ref2) {
|
|
101
101
|
renderAlert('Connecting...', Alert.Type.LOADING);
|
102
102
|
await onCheckAgain();
|
103
103
|
} catch (err) {
|
104
|
-
renderAlert(
|
104
|
+
renderAlert(jsx(Message, {
|
105
105
|
translations: translations,
|
106
106
|
onCheckAgain: checkAgainWithoutClosing
|
107
107
|
}));
|
108
108
|
}
|
109
109
|
}
|
110
|
-
renderAlert(
|
110
|
+
renderAlert(jsx(Message, {
|
111
111
|
translations: translations,
|
112
112
|
onCheckAgain: checkAgainWithoutClosing
|
113
113
|
}));
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import { _ as _defineProperty } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
|
+
import { jsx } from 'react/jsx-runtime';
|
2
3
|
import showAuthDialog from '../login-dialog/service.js';
|
3
4
|
import Link from '../link/link.js';
|
4
5
|
import AuthResponseParser from './response-parser.js';
|
5
|
-
import { jsx } from 'react/jsx-runtime';
|
6
6
|
import 'react-dom/client';
|
7
7
|
import '../global/controls-height.js';
|
8
8
|
import 'react';
|
@@ -82,7 +82,7 @@ class IFrameFlow {
|
|
82
82
|
}, {
|
83
83
|
nonRedirect: false
|
84
84
|
});
|
85
|
-
const renderFallbackLink = () =>
|
85
|
+
const renderFallbackLink = () => jsx(Link, {
|
86
86
|
href: authRequest.url,
|
87
87
|
target: "_self",
|
88
88
|
children: this._translations.nothingHappensLink
|
@@ -3,6 +3,7 @@ import 'core-js/modules/es.array.sort.js';
|
|
3
3
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
4
4
|
import LocalStorage from '../storage/storage__local.js';
|
5
5
|
import '../alert-service/alert-service.js';
|
6
|
+
import 'react/jsx-runtime';
|
6
7
|
import 'react-dom/client';
|
7
8
|
import '../global/get-uid.js';
|
8
9
|
import '../alert/alert.js';
|
@@ -19,7 +20,6 @@ import '../_helpers/icon__svg.js';
|
|
19
20
|
import 'core-js/modules/es.regexp.exec.js';
|
20
21
|
import 'core-js/modules/es.string.replace.js';
|
21
22
|
import '../global/memoize.js';
|
22
|
-
import 'react/jsx-runtime';
|
23
23
|
import '../loader-inline/loader-inline.js';
|
24
24
|
import '../global/data-tests.js';
|
25
25
|
import '../global/dom.js';
|
@@ -38,5 +38,5 @@ export default class AuthDialog extends Component<AuthDialogProps> {
|
|
38
38
|
componentWillUnmount(): void;
|
39
39
|
onEscPress: () => void;
|
40
40
|
onRetryPress: () => Promise<void>;
|
41
|
-
render(): import("react").JSX.Element;
|
41
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
42
42
|
}
|
@@ -2,9 +2,9 @@ import { _ as _defineProperty } from '../_helpers/_rollupPluginBabelHelpers.js';
|
|
2
2
|
import 'core-js/modules/es.regexp.exec.js';
|
3
3
|
import 'core-js/modules/es.string.replace.js';
|
4
4
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
5
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
5
6
|
import { Component } from 'react';
|
6
7
|
import classNames from 'classnames';
|
7
|
-
import { jsx, jsxs } from 'react/jsx-runtime';
|
8
8
|
import '../_helpers/island.js';
|
9
9
|
import '../island/header.js';
|
10
10
|
import ContentWrapper from '../island/content.js';
|
@@ -100,7 +100,7 @@ class AuthDialog extends Component {
|
|
100
100
|
} = this.state;
|
101
101
|
const defaultTitle = serviceName ? loginToCaption : loginCaption;
|
102
102
|
const title = (this.props.title || defaultTitle).replace('%serviceName%', serviceName !== null && serviceName !== void 0 ? serviceName : '').replace('{{serviceName}}', serviceName !== null && serviceName !== void 0 ? serviceName : '');
|
103
|
-
return
|
103
|
+
return jsx(Dialog, {
|
104
104
|
label: title,
|
105
105
|
"data-test": "ring-auth-dialog",
|
106
106
|
className: className,
|
@@ -108,33 +108,33 @@ class AuthDialog extends Component {
|
|
108
108
|
onEscPress: this.onEscPress,
|
109
109
|
show: show,
|
110
110
|
trapFocus: true,
|
111
|
-
children:
|
112
|
-
children:
|
111
|
+
children: jsx(ContentWrapper, {
|
112
|
+
children: jsxs("div", {
|
113
113
|
className: styles.content,
|
114
|
-
children: [serviceImage &&
|
114
|
+
children: [serviceImage && jsx("img", {
|
115
115
|
alt: "".concat(serviceName, " logo"),
|
116
116
|
className: styles.logo,
|
117
117
|
src: serviceImage
|
118
|
-
}),
|
118
|
+
}), jsx(H2, {
|
119
119
|
className: styles.title,
|
120
120
|
children: title
|
121
|
-
}), errorMessage &&
|
121
|
+
}), errorMessage && jsx("div", {
|
122
122
|
className: styles.error,
|
123
123
|
children: errorMessage
|
124
|
-
}),
|
124
|
+
}), jsx(Button, {
|
125
125
|
primary: true,
|
126
126
|
className: styles.firstButton,
|
127
127
|
"data-test": "auth-dialog-confirm-button",
|
128
128
|
onClick: onConfirm,
|
129
129
|
children: confirmLabel
|
130
|
-
}), onTryAgain &&
|
130
|
+
}), onTryAgain && jsx(Button, {
|
131
131
|
className: styles.button,
|
132
132
|
"data-test": "auth-dialog-retry-button",
|
133
133
|
onClick: () => this.onRetryPress(),
|
134
134
|
loader: retrying,
|
135
135
|
disabled: retrying,
|
136
136
|
children: tryAgainLabel
|
137
|
-
}),
|
137
|
+
}), jsx(Button, {
|
138
138
|
className: styles.button,
|
139
139
|
"data-test": "auth-dialog-cancel-button",
|
140
140
|
onClick: onCancel,
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import { b as _objectSpread2 } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
|
+
import { jsx } from 'react/jsx-runtime';
|
2
3
|
import { createRoot } from 'react-dom/client';
|
3
4
|
import { ControlsHeightContext, getGlobalControlsHeight } from '../global/controls-height.js';
|
4
5
|
import AuthDialog from '../auth-dialog/auth-dialog.js';
|
5
|
-
import { jsx } from 'react/jsx-runtime';
|
6
6
|
import 'react';
|
7
7
|
import 'core-js/modules/es.regexp.exec.js';
|
8
8
|
import 'core-js/modules/es.string.replace.js';
|
@@ -44,15 +44,18 @@ import 'scrollbar-width';
|
|
44
44
|
import '../heading/heading.js';
|
45
45
|
import '../_helpers/heading.js';
|
46
46
|
|
47
|
+
/**
|
48
|
+
* @name Auth Dialog Service
|
49
|
+
*/
|
47
50
|
const containerElement = document.createElement('div');
|
48
51
|
const reactRoot = createRoot(containerElement);
|
49
52
|
/**
|
50
53
|
* Renders AuthDialog into virtual node to skip maintaining container
|
51
54
|
*/
|
52
55
|
function renderAuthDialog(props) {
|
53
|
-
reactRoot.render(
|
56
|
+
reactRoot.render(jsx(ControlsHeightContext.Provider, {
|
54
57
|
value: getGlobalControlsHeight(),
|
55
|
-
children:
|
58
|
+
children: jsx(AuthDialog, _objectSpread2({}, props))
|
56
59
|
}));
|
57
60
|
}
|
58
61
|
function showAuthDialog() {
|
@@ -34,6 +34,6 @@ export default class Avatar extends PureComponent<AvatarProps> {
|
|
34
34
|
};
|
35
35
|
handleError: () => void;
|
36
36
|
handleSuccess: () => void;
|
37
|
-
render(): import("react").JSX.Element;
|
37
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
38
38
|
}
|
39
39
|
export type AvatarAttrs = JSX.LibraryManagedAttributes<typeof Avatar, AvatarProps>;
|
@@ -1,11 +1,11 @@
|
|
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, jsxs } from 'react/jsx-runtime';
|
3
4
|
import { PureComponent } from 'react';
|
4
5
|
import classNames from 'classnames';
|
5
6
|
import { isDataURI, parseQueryString, encodeURL } from '../global/url.js';
|
6
7
|
import { getPixelRatio } from '../global/dom.js';
|
7
8
|
import FallbackAvatar from './fallback-avatar.js';
|
8
|
-
import { jsx, jsxs } from 'react/jsx-runtime';
|
9
9
|
import 'core-js/modules/es.regexp.exec.js';
|
10
10
|
import 'core-js/modules/es.string.replace.js';
|
11
11
|
import '../global/get-uid.js';
|
@@ -13,6 +13,9 @@ import '../global/get-uid.js';
|
|
13
13
|
var styles = {"avatar":"avatar_rui_a03e","subavatar":"subavatar_rui_a03e","empty":"empty_rui_a03e"};
|
14
14
|
|
15
15
|
const _excluded = ["size", "url", "dpr", "style", "round", "subavatar", "subavatarSize", "username", "skipParams"];
|
16
|
+
/**
|
17
|
+
* @name Avatar
|
18
|
+
*/
|
16
19
|
var Size;
|
17
20
|
(function (Size) {
|
18
21
|
Size[Size["Size18"] = 18] = "Size18";
|
@@ -69,13 +72,13 @@ class Avatar extends PureComponent {
|
|
69
72
|
width: subavatarSizeString
|
70
73
|
}, style);
|
71
74
|
if (!url || this.state.errorUrl === url) {
|
72
|
-
return
|
75
|
+
return jsx("span", _objectSpread2(_objectSpread2({}, restProps), {}, {
|
73
76
|
"data-test": "avatar",
|
74
77
|
className: classNames(styles.avatar, this.props.className, {
|
75
78
|
[styles.empty]: username == null
|
76
79
|
}),
|
77
80
|
style: styleObj,
|
78
|
-
children: username != null &&
|
81
|
+
children: username != null && jsx(FallbackAvatar, {
|
79
82
|
size: size,
|
80
83
|
round: round,
|
81
84
|
username: username
|
@@ -99,15 +102,15 @@ class Avatar extends PureComponent {
|
|
99
102
|
subavatarSizeString
|
100
103
|
});
|
101
104
|
subavatarSrc = skipParams ? subavatar : encodeURL(urlStart, queryParams);
|
102
|
-
return
|
103
|
-
children: [
|
105
|
+
return jsxs("div", {
|
106
|
+
children: [jsx("img", _objectSpread2(_objectSpread2({}, restProps), {}, {
|
104
107
|
onError: this.handleError,
|
105
108
|
onLoad: this.handleSuccess,
|
106
109
|
className: classNames(styles.avatar, this.props.className),
|
107
110
|
style: styleObj,
|
108
111
|
src: src,
|
109
112
|
alt: "User avatar"
|
110
|
-
})),
|
113
|
+
})), jsx("img", _objectSpread2(_objectSpread2({}, restProps), {}, {
|
111
114
|
"data-test": "avatar",
|
112
115
|
onError: this.handleError,
|
113
116
|
onLoad: this.handleSuccess,
|
@@ -118,7 +121,7 @@ class Avatar extends PureComponent {
|
|
118
121
|
}))]
|
119
122
|
});
|
120
123
|
} else {
|
121
|
-
return
|
124
|
+
return jsx("img", _objectSpread2(_objectSpread2({}, restProps), {}, {
|
122
125
|
"data-test": "avatar",
|
123
126
|
onError: this.handleError,
|
124
127
|
onLoad: this.handleSuccess,
|
@@ -4,4 +4,4 @@ export interface FallbackAvatarProps {
|
|
4
4
|
size: Size;
|
5
5
|
round: boolean | null | undefined;
|
6
6
|
}
|
7
|
-
export default function FallbackAvatar({ username, size, round }: FallbackAvatarProps): import("react").JSX.Element;
|
7
|
+
export default function FallbackAvatar({ username, size, round }: FallbackAvatarProps): import("react/jsx-runtime").JSX.Element;
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import 'core-js/modules/es.regexp.exec.js';
|
2
2
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
3
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
3
4
|
import { useMemo } from 'react';
|
4
5
|
import getUID from '../global/get-uid.js';
|
5
|
-
import { jsxs, jsx } from 'react/jsx-runtime';
|
6
6
|
|
7
7
|
const colorPairs = [['#60A800', '#D5CA00'], ['#21D370', '#03E9E1'], ['#3BA1FF', '#36E97D'], ['#00C243', '#00FFFF'], ['#4BE098', '#627FFF'], ['#168BFA', '#26F7C7'], ['#9D4CFF', '#39D3C3'], ['#0A81F6', '#0ACFF6'], ['#765AF8', '#5A91F8'], ['#9E54FF', '#0ACFF6'], ['#B345F1', '#669DFF'], ['#765AF8', '#C059EE'], ['#9039D0', '#C239D0'], ['#9F2AFF', '#FD56FD'], ['#AB3AF2', '#E40568'], ['#9F2AFF', '#E9A80B'], ['#D50F6B', '#E73AE8'], ['#ED5502', '#E73AE8'], ['#ED358C', '#DBED18'], ['#ED358C', '#F9902E'], ['#FF7500', '#FFCA00']];
|
8
8
|
const Sizes = {
|
@@ -91,26 +91,26 @@ function FallbackAvatar(_ref) {
|
|
91
91
|
const sizes = Sizes[sizeKey];
|
92
92
|
const radius = round ? '50%' : sizes.radius;
|
93
93
|
const gradientId = useMemo(() => getUID('gradient-'), []);
|
94
|
-
return
|
94
|
+
return jsxs("svg", {
|
95
95
|
viewBox: "0 0 ".concat(sizeKey, " ").concat(sizeKey),
|
96
96
|
xmlns: "http://www.w3.org/2000/svg",
|
97
|
-
children: [
|
98
|
-
children:
|
97
|
+
children: [jsx("defs", {
|
98
|
+
children: jsxs("linearGradient", {
|
99
99
|
id: gradientId,
|
100
100
|
x1: "0",
|
101
101
|
y1: "0",
|
102
102
|
x2: "0",
|
103
103
|
y2: "1",
|
104
|
-
children: [
|
104
|
+
children: [jsx("stop", {
|
105
105
|
stopColor: fromColor,
|
106
106
|
offset: "0"
|
107
|
-
}),
|
107
|
+
}), jsx("stop", {
|
108
108
|
stopColor: toColor,
|
109
109
|
offset: "1"
|
110
110
|
})]
|
111
111
|
})
|
112
|
-
}),
|
113
|
-
children: [
|
112
|
+
}), jsxs("g", {
|
113
|
+
children: [jsx("rect", {
|
114
114
|
fill: "url(#".concat(gradientId, ")"),
|
115
115
|
x: "0",
|
116
116
|
y: "0",
|
@@ -118,7 +118,7 @@ function FallbackAvatar(_ref) {
|
|
118
118
|
height: sizeKey,
|
119
119
|
rx: radius,
|
120
120
|
ry: radius
|
121
|
-
}),
|
121
|
+
}), jsxs("text", {
|
122
122
|
x: sizes.text.x,
|
123
123
|
y: sizes.text.y,
|
124
124
|
fontFamily: "Arial, Helvetica, sans-serif",
|
@@ -127,14 +127,14 @@ function FallbackAvatar(_ref) {
|
|
127
127
|
fill: "#FFFFFF",
|
128
128
|
textAnchor: sizes.textAnchor,
|
129
129
|
cursor: "default",
|
130
|
-
children: [
|
130
|
+
children: [jsx("tspan", {
|
131
131
|
children: extractLetters(username)
|
132
|
-
}), sizes.underscore &&
|
132
|
+
}), sizes.underscore && jsx("tspan", {
|
133
133
|
x: sizes.underscore.x,
|
134
134
|
y: sizes.underscore.y,
|
135
135
|
children: '_'
|
136
136
|
})]
|
137
|
-
}),
|
137
|
+
}), jsx("title", {
|
138
138
|
children: username
|
139
139
|
})]
|
140
140
|
})]
|
@@ -3,4 +3,4 @@ export interface BreadcrumbsSeparatorAttrs {
|
|
3
3
|
separatorClassName?: string | null | undefined;
|
4
4
|
children?: ReactNode;
|
5
5
|
}
|
6
|
-
export default function Breadcrumbs({ separatorClassName, children }: BreadcrumbsSeparatorAttrs): import("react").JSX.Element[];
|
6
|
+
export default function Breadcrumbs({ separatorClassName, children }: BreadcrumbsSeparatorAttrs): import("react/jsx-runtime").JSX.Element[];
|
@@ -1,6 +1,6 @@
|
|
1
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
1
2
|
import classNames from 'classnames';
|
2
3
|
import { Children, Fragment } from 'react';
|
3
|
-
import { jsxs, jsx } from 'react/jsx-runtime';
|
4
4
|
|
5
5
|
var styles = {"separator":"separator_rui_faa8"};
|
6
6
|
|
@@ -10,10 +10,9 @@ function Breadcrumbs(_ref) {
|
|
10
10
|
children
|
11
11
|
} = _ref;
|
12
12
|
return Children.toArray(children).map((child, index) =>
|
13
|
-
/*#__PURE__*/
|
14
13
|
// eslint-disable-next-line react/no-array-index-key
|
15
14
|
jsxs(Fragment, {
|
16
|
-
children: [index > 0 &&
|
15
|
+
children: [index > 0 && jsx("span", {
|
17
16
|
className: classNames(styles.separator, separatorClassName),
|
18
17
|
children: '/'
|
19
18
|
}), child]
|
@@ -42,7 +42,7 @@ export declare class Button extends PureComponent<ButtonProps> {
|
|
42
42
|
static contextType: React.Context<ControlsHeight>;
|
43
43
|
context: React.ContextType<typeof ControlsHeightContext>;
|
44
44
|
buttonRef: React.RefObject<HTMLButtonElement>;
|
45
|
-
render():
|
45
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
46
46
|
}
|
47
47
|
export { Size as IconSize };
|
48
48
|
export type ContainerProps<T extends ButtonProps> = JSX.LibraryManagedAttributes<typeof Button, T>;
|
@@ -1,5 +1,6 @@
|
|
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 { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
3
4
|
import { PureComponent, createRef } from 'react';
|
4
5
|
import classNames from 'classnames';
|
5
6
|
import chevronDownIcon from '@jetbrains/icons/chevron-down';
|
@@ -9,7 +10,6 @@ import Icon from '../icon/icon.js';
|
|
9
10
|
import ClickableLink from '../link/clickableLink.js';
|
10
11
|
import { ControlsHeightContext } from '../global/controls-height.js';
|
11
12
|
import { g as getButtonClasses, s as styles } from '../_helpers/button__classes.js';
|
12
|
-
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
13
13
|
import { Size } from '../icon/icon__constants.js';
|
14
14
|
import '../_helpers/icon__svg.js';
|
15
15
|
import 'core-js/modules/es.regexp.exec.js';
|
@@ -61,14 +61,14 @@ class Button extends PureComponent {
|
|
61
61
|
inline: isInline,
|
62
62
|
height: height !== null && height !== void 0 ? height : this.context
|
63
63
|
}));
|
64
|
-
const content =
|
65
|
-
children: [icon &&
|
64
|
+
const content = jsxs(Fragment, {
|
65
|
+
children: [icon && jsx(Icon, {
|
66
66
|
className: classNames(styles.icon, iconClassName),
|
67
67
|
glyph: icon,
|
68
68
|
size: iconSize,
|
69
69
|
loading: loader && isInline,
|
70
70
|
suppressSizeWarning: iconSuppressSizeWarning
|
71
|
-
}), children, dropdown &&
|
71
|
+
}), children, dropdown && jsx(Icon, {
|
72
72
|
glyph: isInline ? chevron12pxDown : chevronDownIcon,
|
73
73
|
className: styles.dropdownIcon
|
74
74
|
})]
|
@@ -77,13 +77,13 @@ class Button extends PureComponent {
|
|
77
77
|
tabIndex: loader ? -1 : 0
|
78
78
|
}, props), {}, {
|
79
79
|
className: classes,
|
80
|
-
children:
|
81
|
-
children: [loader && !isInline &&
|
80
|
+
children: jsxs(Fragment, {
|
81
|
+
children: [loader && !isInline && jsx("div", {
|
82
82
|
className: styles.loaderBackground
|
83
83
|
}), content]
|
84
84
|
})
|
85
85
|
});
|
86
|
-
return commonProps.href != null ?
|
86
|
+
return commonProps.href != null ? jsx(ClickableLink, _objectSpread2({}, commonProps)) : jsx("button", _objectSpread2({
|
87
87
|
ref: this.buttonRef,
|
88
88
|
type: "button"
|
89
89
|
}, commonProps));
|
@@ -10,6 +10,6 @@ export interface ButtonGroupProps extends HTMLAttributes<HTMLElement> {
|
|
10
10
|
* @name Button Group
|
11
11
|
*/
|
12
12
|
export default class ButtonGroup extends PureComponent<ButtonGroupProps> {
|
13
|
-
render(): import("react").JSX.Element;
|
13
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
14
14
|
}
|
15
15
|
export { Caption };
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import { a as _objectWithoutProperties, b as _objectSpread2 } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
2
|
import 'core-js/modules/es.regexp.exec.js';
|
3
|
+
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
3
4
|
import { PureComponent } from 'react';
|
4
5
|
import classNames from 'classnames';
|
5
6
|
import joinDataTestAttributes from '../global/data-tests.js';
|
@@ -7,10 +8,12 @@ import { ControlLabel } from '../control-label/control-label.js';
|
|
7
8
|
import ControlHelp from '../control-help/control-help.js';
|
8
9
|
import { s as styles } from '../_helpers/caption.js';
|
9
10
|
export { C as Caption } from '../_helpers/caption.js';
|
10
|
-
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
11
11
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
12
12
|
|
13
13
|
const _excluded = ["className", "split", "data-test", "label", "help"];
|
14
|
+
/**
|
15
|
+
* @name Button Group
|
16
|
+
*/
|
14
17
|
class ButtonGroup extends PureComponent {
|
15
18
|
render() {
|
16
19
|
const _this$props = this.props,
|
@@ -23,13 +26,13 @@ class ButtonGroup extends PureComponent {
|
|
23
26
|
} = _this$props,
|
24
27
|
restProps = _objectWithoutProperties(_this$props, _excluded);
|
25
28
|
const classes = classNames(split ? styles.split : styles.buttonGroup, className);
|
26
|
-
return
|
27
|
-
children: [label &&
|
29
|
+
return jsxs(Fragment, {
|
30
|
+
children: [label && jsx(ControlLabel, {
|
28
31
|
children: label
|
29
|
-
}),
|
32
|
+
}), jsx("div", _objectSpread2(_objectSpread2({}, restProps), {}, {
|
30
33
|
"data-test": joinDataTestAttributes('ring-button-group', dataTest),
|
31
34
|
className: classes
|
32
|
-
})), help &&
|
35
|
+
})), help && jsx(ControlHelp, {
|
33
36
|
className: styles.help,
|
34
37
|
children: help
|
35
38
|
})]
|
@@ -1,13 +1,16 @@
|
|
1
1
|
import { a as _objectWithoutProperties, b as _objectSpread2 } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
|
+
import { jsx } from 'react/jsx-runtime';
|
2
3
|
import { PureComponent } from 'react';
|
3
4
|
import classNames from 'classnames';
|
4
5
|
import joinDataTestAttributes from '../global/data-tests.js';
|
5
|
-
import { jsx } from 'react/jsx-runtime';
|
6
6
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
7
7
|
|
8
8
|
var styles = {"button":"button_rui_0b90","buttonSet":"buttonSet_rui_b2a9"};
|
9
9
|
|
10
10
|
const _excluded = ["className", "data-test", "children"];
|
11
|
+
/**
|
12
|
+
* @name Button Set
|
13
|
+
*/
|
11
14
|
class ButtonSet extends PureComponent {
|
12
15
|
render() {
|
13
16
|
const _this$props = this.props,
|
@@ -18,7 +21,7 @@ class ButtonSet extends PureComponent {
|
|
18
21
|
} = _this$props,
|
19
22
|
restProps = _objectWithoutProperties(_this$props, _excluded);
|
20
23
|
const classes = classNames(styles.buttonSet, className);
|
21
|
-
return
|
24
|
+
return jsx("div", _objectSpread2(_objectSpread2({}, restProps), {}, {
|
22
25
|
"data-test": joinDataTestAttributes('ring-button-set', dataTest),
|
23
26
|
className: classes,
|
24
27
|
children: children
|
@@ -6,5 +6,5 @@ export interface ButtonToolbarProps extends HTMLAttributes<HTMLElement> {
|
|
6
6
|
* @name Button Toolbar
|
7
7
|
*/
|
8
8
|
export default class ButtonToolbar extends PureComponent<ButtonToolbarProps> {
|
9
|
-
render(): import("react").JSX.Element;
|
9
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
10
10
|
}
|
@@ -1,13 +1,16 @@
|
|
1
1
|
import { a as _objectWithoutProperties, b as _objectSpread2 } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
|
+
import { jsx } from 'react/jsx-runtime';
|
2
3
|
import { PureComponent } from 'react';
|
3
4
|
import classNames from 'classnames';
|
4
5
|
import joinDataTestAttributes from '../global/data-tests.js';
|
5
|
-
import { jsx } from 'react/jsx-runtime';
|
6
6
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
7
7
|
|
8
8
|
var styles = {"button":"button_rui_0b90","buttonToolbar":"buttonToolbar_rui_f4fc","buttonGroup":"buttonGroup_rui_f4fc","split":"split_rui_f4fc"};
|
9
9
|
|
10
10
|
const _excluded = ["className", "data-test"];
|
11
|
+
/**
|
12
|
+
* @name Button Toolbar
|
13
|
+
*/
|
11
14
|
class ButtonToolbar extends PureComponent {
|
12
15
|
render() {
|
13
16
|
const _this$props = this.props,
|
@@ -17,7 +20,7 @@ class ButtonToolbar extends PureComponent {
|
|
17
20
|
} = _this$props,
|
18
21
|
restProps = _objectWithoutProperties(_this$props, _excluded);
|
19
22
|
const classes = classNames(styles.buttonToolbar, className);
|
20
|
-
return
|
23
|
+
return jsx("div", _objectSpread2(_objectSpread2({}, restProps), {}, {
|
21
24
|
"data-test": joinDataTestAttributes('ring-button-toolbar', dataTest),
|
22
25
|
className: classes
|
23
26
|
}));
|
@@ -24,5 +24,5 @@ export default class Checkbox extends PureComponent<CheckboxProps> {
|
|
24
24
|
input?: HTMLInputElement | null;
|
25
25
|
inputRef: (el: HTMLInputElement | null) => void;
|
26
26
|
composedInputRef: import("memoize-one").MemoizedFn<(...refs: (Ref<HTMLInputElement> | undefined)[]) => (value: HTMLInputElement | null) => void>;
|
27
|
-
render(): import("react").JSX.Element;
|
27
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
28
28
|
}
|