@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,9 +1,9 @@
|
|
1
|
-
import { a as _inherits, b as _createClass, c as _objectWithoutProperties,
|
1
|
+
import { a as _inherits, b as _createClass, c as _objectWithoutProperties, e as _classCallCheck, f as _callSuper, _ as _defineProperty } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
2
|
import 'core-js/modules/es.symbol.js';
|
3
3
|
import 'core-js/modules/es.symbol.description.js';
|
4
4
|
import 'core-js/modules/es.array.concat.js';
|
5
5
|
import 'core-js/modules/es.array.index-of.js';
|
6
|
-
import
|
6
|
+
import { PureComponent } from 'react';
|
7
7
|
import PropTypes from 'prop-types';
|
8
8
|
import classNames from 'classnames';
|
9
9
|
import joinDataTestAttributes from '../global/data-tests.js';
|
@@ -12,6 +12,7 @@ import Checkbox from '../checkbox/checkbox.js';
|
|
12
12
|
import Icon from '../icon/icon.js';
|
13
13
|
import getUID from '../global/get-uid.js';
|
14
14
|
import { m as modules_3b67a421 } from '../_helpers/list.js';
|
15
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
15
16
|
import 'core-js/modules/es.array.reduce.js';
|
16
17
|
import 'core-js/modules/es.object.entries.js';
|
17
18
|
import 'core-js/modules/es.object.to-string.js';
|
@@ -36,6 +37,7 @@ import '@jetbrains/icons/checkmark-12px';
|
|
36
37
|
import '@jetbrains/icons/remove-12px';
|
37
38
|
import '../global/prop-types.js';
|
38
39
|
import '../global/composeRefs.js';
|
40
|
+
import '../control-help/control-help.js';
|
39
41
|
import 'util-deprecate';
|
40
42
|
import '../icon/icon__constants.js';
|
41
43
|
import '../_helpers/icon__svg.js';
|
@@ -47,10 +49,6 @@ import 'core-js/modules/es.weak-map.js';
|
|
47
49
|
var modules_5b0fb3e8 = {"footer-height":"calc(var(--ring-unit)*8)","breakpoint-small":"640px","breakpoint-middle":"960px","breakpoint-large":"1200px","extra-small-screen-media":"(max-width: 639px)","small-screen-media":"(min-width: 640px) and (max-width: 959px)","middle-screen-media":"(min-width: 960px) and (max-width: 1199px)","large-screen-media":"(min-width: 1200px)","clearfix":"clearfix_rui_f295","font":"font_rui_f295","font-lower":"font-lower_rui_f295 font_rui_f295","font-smaller":"font-smaller_rui_f295 font-lower_rui_f295 font_rui_f295","font-smaller-lower":"font-smaller-lower_rui_f295 font-smaller_rui_f295 font-lower_rui_f295 font_rui_f295","font-larger-lower":"font-larger-lower_rui_f295 font-lower_rui_f295 font_rui_f295","font-larger":"font-larger_rui_f295 font-larger-lower_rui_f295 font-lower_rui_f295 font_rui_f295","thin-font":"thin-font_rui_f295","monospace-font":"monospace-font_rui_f295","ellipsis":"ellipsis_rui_f295","resetButton":"resetButton_rui_f295"};
|
48
50
|
|
49
51
|
var _excluded = ["scrolling", "className", "disabled", "checkbox", "avatar", "subavatar", "glyph", "icon", "rightGlyph", "description", "label", "title", "details", "hover", "rgItemType", "level", "tabIndex", "compact", "onClick", "onCheckboxChange", "onMouseOver", "onMouseDown", "onMouseUp", "rightNodes", "leftNodes", "showGeneratedAvatar", "username", "labelWrapper"];
|
50
|
-
/**
|
51
|
-
* @constructor
|
52
|
-
* @extends {ReactComponent}
|
53
|
-
*/
|
54
52
|
var RING_UNIT = 8;
|
55
53
|
var DEFAULT_PADDING = 16;
|
56
54
|
var CHECKBOX_WIDTH = 28;
|
@@ -137,68 +135,78 @@ var ListItem = /*#__PURE__*/function (_PureComponent) {
|
|
137
135
|
'ring-list-item-action': !disabled,
|
138
136
|
'ring-list-item-selected': checkbox
|
139
137
|
}, restProps['data-test']);
|
140
|
-
var labelElement = /*#__PURE__*/
|
138
|
+
var labelElement = /*#__PURE__*/jsx("span", {
|
141
139
|
className: modules_3b67a421.label,
|
142
140
|
title: computedTitle,
|
143
|
-
"data-test": "ring-list-item-label"
|
144
|
-
|
145
|
-
|
141
|
+
"data-test": "ring-list-item-label",
|
142
|
+
children: label
|
143
|
+
});
|
144
|
+
return /*#__PURE__*/jsxs("div", {
|
146
145
|
className: modules_3b67a421.itemContainer,
|
147
|
-
"data-test": dataTest
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
146
|
+
"data-test": dataTest,
|
147
|
+
children: [showCheckbox && /*#__PURE__*/jsx("div", {
|
148
|
+
className: modules_3b67a421.checkboxContainer,
|
149
|
+
children: /*#__PURE__*/jsx(Checkbox, {
|
150
|
+
"aria-labelledby": this.id,
|
151
|
+
checked: checkbox,
|
152
|
+
disabled: disabled,
|
153
|
+
onChange: onCheckboxChange,
|
154
|
+
onClick: this.stopBubbling
|
155
|
+
})
|
156
|
+
}), /*#__PURE__*/jsxs("button", {
|
157
|
+
id: this.id,
|
158
|
+
type: "button",
|
159
|
+
tabIndex: tabIndex,
|
160
|
+
onClick: onClick,
|
161
|
+
onMouseOver: onMouseOver,
|
162
|
+
onMouseDown: onMouseDown,
|
163
|
+
onFocus: onMouseOver,
|
164
|
+
onMouseUp: onMouseUp,
|
165
|
+
className: classes,
|
166
|
+
style: style,
|
167
|
+
disabled: disabled,
|
168
|
+
children: [/*#__PURE__*/jsxs("div", {
|
169
|
+
className: modules_3b67a421.top,
|
170
|
+
onMouseOut: this.stopBubbling,
|
171
|
+
onBlur: this.stopBubbling,
|
172
|
+
children: [!showCheckbox && /*#__PURE__*/jsxs("div", {
|
173
|
+
className: modules_3b67a421.left,
|
174
|
+
children: [leftNodes, glyph && /*#__PURE__*/jsx(Icon, {
|
175
|
+
className: modules_3b67a421.glyph,
|
176
|
+
glyph: glyph,
|
177
|
+
size: this.props.iconSize,
|
178
|
+
suppressSizeWarning: this.props.suppressSizeWarning
|
179
|
+
}), (avatar || shouldShowGeneratedAvatar) && /*#__PURE__*/jsx(Avatar, {
|
180
|
+
className: modules_3b67a421.avatar,
|
181
|
+
url: avatar,
|
182
|
+
size: Size.Size20,
|
183
|
+
subavatar: subavatar,
|
184
|
+
username: username
|
185
|
+
})]
|
186
|
+
}), labelWrapper ? labelWrapper(labelElement) : labelElement, description && /*#__PURE__*/jsx("span", {
|
187
|
+
className: modules_3b67a421.description,
|
188
|
+
"data-test": "ring-list-item-description",
|
189
|
+
children: description
|
190
|
+
}), /*#__PURE__*/jsxs("div", {
|
191
|
+
className: modules_3b67a421.right,
|
192
|
+
children: [rightGlyph && /*#__PURE__*/jsx(Icon, {
|
193
|
+
className: modules_3b67a421.rightGlyph,
|
194
|
+
glyph: rightGlyph,
|
195
|
+
suppressSizeWarning: this.props.suppressSizeWarning,
|
196
|
+
size: this.props.iconSize
|
197
|
+
}), icon && /*#__PURE__*/jsx("div", {
|
198
|
+
className: modules_3b67a421.icon,
|
199
|
+
style: {
|
200
|
+
backgroundImage: "url(\"".concat(icon, "\")")
|
201
|
+
}
|
202
|
+
}), rightNodes]
|
203
|
+
})]
|
204
|
+
}), details && /*#__PURE__*/jsx("div", {
|
205
|
+
className: detailsClasses,
|
206
|
+
children: details
|
207
|
+
})]
|
208
|
+
})]
|
209
|
+
});
|
202
210
|
}
|
203
211
|
}]);
|
204
212
|
}(PureComponent);
|
@@ -1,9 +1,9 @@
|
|
1
|
-
import
|
1
|
+
import { PureComponent } from 'react';
|
2
2
|
import { ListDataItemProps } from './consts';
|
3
3
|
/**
|
4
4
|
* @constructor
|
5
5
|
* @extends {ReactComponent}
|
6
6
|
*/
|
7
7
|
export default class ListLink<T> extends PureComponent<ListDataItemProps<T>> {
|
8
|
-
render():
|
8
|
+
render(): import("react").JSX.Element;
|
9
9
|
}
|
@@ -1,12 +1,13 @@
|
|
1
|
-
import { d as _objectSpread2, a as _inherits, b as _createClass, c as _objectWithoutProperties, e as
|
1
|
+
import { d as _objectSpread2, a as _inherits, b as _createClass, c as _objectWithoutProperties, e as _classCallCheck, f as _callSuper } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
2
|
import 'core-js/modules/es.symbol.js';
|
3
3
|
import 'core-js/modules/es.symbol.description.js';
|
4
|
-
import
|
4
|
+
import { Component, PureComponent } from 'react';
|
5
5
|
import PropTypes from 'prop-types';
|
6
6
|
import classNames from 'classnames';
|
7
7
|
import Link, { linkHOC } from '../link/link.js';
|
8
8
|
import joinDataTestAttributes from '../global/data-tests.js';
|
9
9
|
import { m as modules_3b67a421 } from '../_helpers/list.js';
|
10
|
+
import { jsx } from 'react/jsx-runtime';
|
10
11
|
import '../link/clickableLink.js';
|
11
12
|
import 'core-js/modules/es.array.concat.js';
|
12
13
|
import '../_helpers/link.js';
|
@@ -15,10 +16,6 @@ import 'core-js/modules/es.object.entries.js';
|
|
15
16
|
import 'core-js/modules/es.object.to-string.js';
|
16
17
|
|
17
18
|
var _excluded = ["scrolling", "data-test", "className", "label", "hover", "description", "rgItemType", "url", "onCheckboxChange", "disabled", "LinkComponent", "compact", "hoverClassName", "children"];
|
18
|
-
/**
|
19
|
-
* @constructor
|
20
|
-
* @extends {ReactComponent}
|
21
|
-
*/
|
22
19
|
var ListLink = /*#__PURE__*/function (_PureComponent) {
|
23
20
|
function ListLink() {
|
24
21
|
_classCallCheck(this, ListLink);
|
@@ -50,13 +47,14 @@ var ListLink = /*#__PURE__*/function (_PureComponent) {
|
|
50
47
|
[modules_3b67a421.scrolling]: scrolling
|
51
48
|
});
|
52
49
|
var Comp = LinkComponent ? linkHOC(LinkComponent) : Link;
|
53
|
-
return /*#__PURE__*/
|
50
|
+
return /*#__PURE__*/jsx(Comp, _objectSpread2(_objectSpread2({
|
54
51
|
pseudo: !this.props.href
|
55
|
-
}, restProps, {
|
52
|
+
}, restProps), {}, {
|
56
53
|
hover: hover && !disabled,
|
57
54
|
className: classes,
|
58
|
-
"data-test": joinDataTestAttributes('ring-list-link', dataTest)
|
59
|
-
|
55
|
+
"data-test": joinDataTestAttributes('ring-list-link', dataTest),
|
56
|
+
children: label !== null && label !== void 0 ? label : children
|
57
|
+
}));
|
60
58
|
}
|
61
59
|
}]);
|
62
60
|
}(PureComponent);
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import
|
1
|
+
import { PureComponent } from 'react';
|
2
2
|
import { ListDataItemProps } from './consts';
|
3
3
|
export default class ListSeparator<T> extends PureComponent<ListDataItemProps<T>> {
|
4
|
-
render():
|
4
|
+
render(): import("react").JSX.Element;
|
5
5
|
}
|
@@ -1,10 +1,11 @@
|
|
1
|
-
import { a as _inherits, b as _createClass,
|
1
|
+
import { a as _inherits, b as _createClass, e as _classCallCheck, f as _callSuper } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
2
|
import 'core-js/modules/es.symbol.js';
|
3
3
|
import 'core-js/modules/es.symbol.description.js';
|
4
|
-
import
|
4
|
+
import { PureComponent } from 'react';
|
5
5
|
import PropTypes from 'prop-types';
|
6
6
|
import classNames from 'classnames';
|
7
7
|
import { m as modules_3b67a421 } from '../_helpers/list.js';
|
8
|
+
import { jsx } from 'react/jsx-runtime';
|
8
9
|
|
9
10
|
var ListSeparator = /*#__PURE__*/function (_PureComponent) {
|
10
11
|
function ListSeparator() {
|
@@ -22,9 +23,10 @@ var ListSeparator = /*#__PURE__*/function (_PureComponent) {
|
|
22
23
|
var classes = classNames(modules_3b67a421.separator, className, {
|
23
24
|
[modules_3b67a421.separator_first]: isFirst
|
24
25
|
});
|
25
|
-
return /*#__PURE__*/
|
26
|
-
className: classes
|
27
|
-
|
26
|
+
return /*#__PURE__*/jsx("span", {
|
27
|
+
className: classes,
|
28
|
+
children: description
|
29
|
+
});
|
28
30
|
}
|
29
31
|
}]);
|
30
32
|
}(PureComponent);
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import
|
1
|
+
import { PureComponent } from 'react';
|
2
2
|
import { ListDataItemProps } from './consts';
|
3
3
|
export default class ListTitle<T> extends PureComponent<ListDataItemProps<T>> {
|
4
|
-
render():
|
4
|
+
render(): import("react").JSX.Element;
|
5
5
|
}
|
@@ -1,10 +1,11 @@
|
|
1
|
-
import { a as _inherits, b as _createClass,
|
1
|
+
import { a as _inherits, b as _createClass, e as _classCallCheck, f as _callSuper } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
2
|
import 'core-js/modules/es.symbol.js';
|
3
3
|
import 'core-js/modules/es.symbol.description.js';
|
4
|
-
import
|
4
|
+
import { PureComponent } from 'react';
|
5
5
|
import PropTypes from 'prop-types';
|
6
6
|
import classNames from 'classnames';
|
7
7
|
import { m as modules_3b67a421 } from '../_helpers/list.js';
|
8
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
8
9
|
|
9
10
|
var ListTitle = /*#__PURE__*/function (_PureComponent) {
|
10
11
|
function ListTitle() {
|
@@ -23,16 +24,19 @@ var ListTitle = /*#__PURE__*/function (_PureComponent) {
|
|
23
24
|
var classes = classNames(modules_3b67a421.title, className, {
|
24
25
|
[modules_3b67a421.title_first]: isFirst
|
25
26
|
});
|
26
|
-
return /*#__PURE__*/
|
27
|
+
return /*#__PURE__*/jsxs("span", {
|
27
28
|
className: classes,
|
28
|
-
"data-test": "ring-list-title"
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
29
|
+
"data-test": "ring-list-title",
|
30
|
+
children: [/*#__PURE__*/jsx("span", {
|
31
|
+
className: classNames(modules_3b67a421.label, modules_3b67a421.text),
|
32
|
+
"data-test": "ring-list-title-label",
|
33
|
+
children: label
|
34
|
+
}), /*#__PURE__*/jsx("div", {
|
35
|
+
className: modules_3b67a421.description,
|
36
|
+
"data-test": "ring-list-title-description",
|
37
|
+
children: description
|
38
|
+
})]
|
39
|
+
});
|
36
40
|
}
|
37
41
|
}]);
|
38
42
|
}(PureComponent);
|
@@ -1,4 +1,4 @@
|
|
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, g as _asyncToGenerator, h as _regeneratorRuntime, i as _slicedToArray, d as _objectSpread2 } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
2
|
import 'core-js/modules/es.array.concat.js';
|
3
3
|
import 'core-js/modules/es.object.assign.js';
|
4
4
|
import 'core-js/modules/es.object.to-string.js';
|
@@ -50,6 +50,7 @@ import 'combokeys';
|
|
50
50
|
import '../global/sniffer.js';
|
51
51
|
import 'sniffr';
|
52
52
|
import '../global/create-stateful-context.js';
|
53
|
+
import 'react/jsx-runtime';
|
53
54
|
import './list__link.js';
|
54
55
|
import '../link/link.js';
|
55
56
|
import '../link/clickableLink.js';
|
@@ -70,6 +71,7 @@ import '../_helpers/icon__svg.js';
|
|
70
71
|
import 'core-js/modules/es.string.starts-with.js';
|
71
72
|
import '../global/prop-types.js';
|
72
73
|
import '../global/composeRefs.js';
|
74
|
+
import '../control-help/control-help.js';
|
73
75
|
import './list__custom.js';
|
74
76
|
import '../global/get-event-key.js';
|
75
77
|
import './list__title.js';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import
|
1
|
+
import { HTMLAttributes, PureComponent } from 'react';
|
2
2
|
import PropTypes from 'prop-types';
|
3
3
|
import LoaderCore, { LoaderCoreProps } from './loader__core';
|
4
4
|
export interface LoaderProps extends Partial<LoaderCoreProps>, HTMLAttributes<HTMLElement> {
|
@@ -24,5 +24,5 @@ export default class Loader extends PureComponent<LoaderProps> {
|
|
24
24
|
componentWillUnmount(): void;
|
25
25
|
loader?: LoaderCore;
|
26
26
|
initLoader: (el: Node | null) => void;
|
27
|
-
render():
|
27
|
+
render(): import("react").JSX.Element;
|
28
28
|
}
|
@@ -1,9 +1,10 @@
|
|
1
|
-
import { _ as _defineProperty, a as _inherits, b as _createClass, c as _objectWithoutProperties,
|
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
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 joinDataTestAttributes from '../global/data-tests.js';
|
6
6
|
import LoaderCore from './loader__core.js';
|
7
|
+
import { jsx } from 'react/jsx-runtime';
|
7
8
|
import 'core-js/modules/es.array.reduce.js';
|
8
9
|
import 'core-js/modules/es.object.entries.js';
|
9
10
|
import 'core-js/modules/es.object.to-string.js';
|
@@ -19,12 +20,6 @@ import 'core-js/modules/es.string.split.js';
|
|
19
20
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
20
21
|
|
21
22
|
var _excluded = ["message", "size", "colors", "data-test", "stop", "deterministic"];
|
22
|
-
/**
|
23
|
-
* @name Loader
|
24
|
-
*/
|
25
|
-
/**
|
26
|
-
* Displays a large animated loader with an optional caption. Typical use cases: page loading animation, major action animation.
|
27
|
-
*/
|
28
23
|
var Loader = /*#__PURE__*/function (_PureComponent) {
|
29
24
|
function Loader() {
|
30
25
|
var _this;
|
@@ -70,9 +65,9 @@ var Loader = /*#__PURE__*/function (_PureComponent) {
|
|
70
65
|
_this$props.stop;
|
71
66
|
_this$props.deterministic;
|
72
67
|
var restProps = _objectWithoutProperties(_this$props, _excluded);
|
73
|
-
return /*#__PURE__*/
|
68
|
+
return /*#__PURE__*/jsx("div", _objectSpread2(_objectSpread2({
|
74
69
|
"data-test": joinDataTestAttributes('ring-loader', dataTest)
|
75
|
-
}, restProps, {
|
70
|
+
}, restProps), {}, {
|
76
71
|
ref: this.initLoader
|
77
72
|
}));
|
78
73
|
}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { _ as _defineProperty, b as _createClass,
|
1
|
+
import { _ as _defineProperty, b as _createClass, e as _classCallCheck } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
2
|
import 'core-js/modules/es.array.concat.js';
|
3
3
|
import 'core-js/modules/es.array.fill.js';
|
4
4
|
import 'core-js/modules/es.array.filter.js';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import
|
1
|
+
import { HTMLAttributes, PureComponent } from 'react';
|
2
2
|
import PropTypes from 'prop-types';
|
3
3
|
export interface LoaderInlineProps extends HTMLAttributes<HTMLDivElement> {
|
4
4
|
'data-test'?: string | null | undefined;
|
@@ -12,7 +12,7 @@ declare class LoaderInline extends PureComponent<LoaderInlineProps> {
|
|
12
12
|
'data-test': PropTypes.Requireable<string>;
|
13
13
|
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
14
14
|
};
|
15
|
-
render():
|
15
|
+
render(): import("react").JSX.Element;
|
16
16
|
}
|
17
17
|
export type LoaderInlineAtrrs = JSX.LibraryManagedAttributes<typeof LoaderInline, LoaderInlineProps>;
|
18
18
|
export default LoaderInline;
|
@@ -1,8 +1,9 @@
|
|
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 { PureComponent } from 'react';
|
3
3
|
import classNames from 'classnames';
|
4
4
|
import PropTypes from 'prop-types';
|
5
5
|
import joinDataTestAttributes from '../global/data-tests.js';
|
6
|
+
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
6
7
|
import 'core-js/modules/es.array.concat.js';
|
7
8
|
import 'core-js/modules/es.array.reduce.js';
|
8
9
|
import 'core-js/modules/es.object.entries.js';
|
@@ -11,9 +12,6 @@ import 'core-js/modules/es.object.to-string.js';
|
|
11
12
|
var modules_e49a3529 = {"dark":"dark_rui_f090","light":"light_rui_2ac4","loader":"loader_rui_092a","spin":"spin_rui_092a","pulse":"pulse_rui_092a","children":"children_rui_092a"};
|
12
13
|
|
13
14
|
var _excluded = ["className", "data-test", "children"];
|
14
|
-
/**
|
15
|
-
* @name Loader Inline
|
16
|
-
*/
|
17
15
|
var LoaderInline = /*#__PURE__*/function (_PureComponent) {
|
18
16
|
function LoaderInline() {
|
19
17
|
_classCallCheck(this, LoaderInline);
|
@@ -29,13 +27,16 @@ var LoaderInline = /*#__PURE__*/function (_PureComponent) {
|
|
29
27
|
children = _this$props.children,
|
30
28
|
restProps = _objectWithoutProperties(_this$props, _excluded);
|
31
29
|
var classes = classNames(modules_e49a3529.loader, className);
|
32
|
-
var loader = /*#__PURE__*/
|
30
|
+
var loader = /*#__PURE__*/jsx("div", _objectSpread2(_objectSpread2({}, restProps), {}, {
|
33
31
|
"data-test": joinDataTestAttributes('ring-loader-inline', dataTest),
|
34
32
|
className: classes
|
35
33
|
}));
|
36
|
-
return children ? /*#__PURE__*/
|
37
|
-
|
38
|
-
|
34
|
+
return children ? /*#__PURE__*/jsxs(Fragment, {
|
35
|
+
children: [loader, /*#__PURE__*/jsx("span", {
|
36
|
+
className: modules_e49a3529.children,
|
37
|
+
children: children
|
38
|
+
})]
|
39
|
+
}) : loader;
|
39
40
|
}
|
40
41
|
}]);
|
41
42
|
}(PureComponent);
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import
|
1
|
+
import { PureComponent } from 'react';
|
2
2
|
import PropTypes from 'prop-types';
|
3
3
|
import { LoaderProps } from '../loader/loader';
|
4
4
|
export interface LoaderScreenProps extends LoaderProps {
|
@@ -13,5 +13,5 @@ export default class LoaderScreen extends PureComponent<LoaderScreenProps> {
|
|
13
13
|
containerClassName: PropTypes.Requireable<string>;
|
14
14
|
message: PropTypes.Requireable<string>;
|
15
15
|
};
|
16
|
-
render():
|
16
|
+
render(): import("react").JSX.Element;
|
17
17
|
}
|
@@ -1,8 +1,9 @@
|
|
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 { PureComponent } from 'react';
|
3
3
|
import classNames from 'classnames';
|
4
4
|
import PropTypes from 'prop-types';
|
5
5
|
import Loader from '../loader/loader.js';
|
6
|
+
import { jsx } from 'react/jsx-runtime';
|
6
7
|
import 'core-js/modules/es.array.concat.js';
|
7
8
|
import '../global/data-tests.js';
|
8
9
|
import 'core-js/modules/es.array.reduce.js';
|
@@ -23,9 +24,6 @@ import 'core-js/modules/web.dom-collections.iterator.js';
|
|
23
24
|
var modules_122a82e9 = {"light":"light_rui_2ac4","loaderScreen":"loaderScreen_rui_90dd","loader":"loader_rui_90dd","loaderWithoutSpacing":"loaderWithoutSpacing_rui_90dd"};
|
24
25
|
|
25
26
|
var _excluded = ["message", "className", "containerClassName"];
|
26
|
-
/**
|
27
|
-
* @name Loader Screen
|
28
|
-
*/
|
29
27
|
var LoaderScreen = /*#__PURE__*/function (_PureComponent) {
|
30
28
|
function LoaderScreen() {
|
31
29
|
_classCallCheck(this, LoaderScreen);
|
@@ -44,12 +42,13 @@ var LoaderScreen = /*#__PURE__*/function (_PureComponent) {
|
|
44
42
|
var loaderClasses = classNames(className, modules_122a82e9.loader, {
|
45
43
|
[modules_122a82e9.loaderWithoutSpacing]: !message
|
46
44
|
});
|
47
|
-
return /*#__PURE__*/
|
48
|
-
className: containerClasses
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
45
|
+
return /*#__PURE__*/jsx("div", {
|
46
|
+
className: containerClasses,
|
47
|
+
children: /*#__PURE__*/jsx(Loader, _objectSpread2(_objectSpread2({}, restProps), {}, {
|
48
|
+
message: message,
|
49
|
+
className: loaderClasses
|
50
|
+
}))
|
51
|
+
});
|
53
52
|
}
|
54
53
|
}]);
|
55
54
|
}(PureComponent);
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import
|
1
|
+
import { Component, ReactNode } from 'react';
|
2
2
|
import PropTypes from 'prop-types';
|
3
3
|
export interface LoginDialogProps {
|
4
4
|
onCancel: () => void;
|
@@ -42,6 +42,6 @@ export default class LoginDialog extends Component<LoginDialogProps> {
|
|
42
42
|
showFallbackTimout?: number;
|
43
43
|
startFallbackCountdown(): void;
|
44
44
|
onMessage: (event: MessageEvent) => void;
|
45
|
-
render():
|
45
|
+
render(): import("react").JSX.Element;
|
46
46
|
}
|
47
47
|
export type LoginDialogAttrs = JSX.LibraryManagedAttributes<typeof LoginDialog, LoginDialogProps>;
|
@@ -1,11 +1,12 @@
|
|
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 { Component } from 'react';
|
4
4
|
import PropTypes from 'prop-types';
|
5
5
|
import Dialog from '../dialog/dialog.js';
|
6
6
|
import '../island/island.js';
|
7
7
|
import LoaderScreen from '../loader-screen/loader-screen.js';
|
8
8
|
import { HUB_AUTH_PAGE_OPENED } from '../auth/background-flow.js';
|
9
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
9
10
|
import ContentWrapper from '../island/content.js';
|
10
11
|
import 'react-dom';
|
11
12
|
import 'classnames';
|
@@ -168,7 +169,7 @@ var LoginDialog = /*#__PURE__*/function (_Component) {
|
|
168
169
|
height,
|
169
170
|
width
|
170
171
|
};
|
171
|
-
return /*#__PURE__*/
|
172
|
+
return /*#__PURE__*/jsxs(Dialog, {
|
172
173
|
"data-test": "ring-login-dialog",
|
173
174
|
className: className,
|
174
175
|
contentClassName: modules_45da1992.dialogContent,
|
@@ -176,19 +177,23 @@ var LoginDialog = /*#__PURE__*/function (_Component) {
|
|
176
177
|
autoFocusFirst: false,
|
177
178
|
show: show,
|
178
179
|
showCloseButton: true,
|
179
|
-
onCloseAttempt: onCancel
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
180
|
+
onCloseAttempt: onCancel,
|
181
|
+
children: [/*#__PURE__*/jsx(ContentWrapper, {
|
182
|
+
children: /*#__PURE__*/jsx("iframe", {
|
183
|
+
title: "Login dialog",
|
184
|
+
style: iFrameStyle,
|
185
|
+
src: url,
|
186
|
+
className: modules_45da1992.iFrame,
|
187
|
+
scrolling: "no"
|
188
|
+
})
|
189
|
+
}), loading && /*#__PURE__*/jsx(LoaderScreen, {
|
190
|
+
message: loadingMessage,
|
191
|
+
containerClassName: modules_45da1992.nonOpaqueLoader
|
192
|
+
}), showFallbackLink && /*#__PURE__*/jsx("div", {
|
193
|
+
className: modules_45da1992.fallbackLinkContainer,
|
194
|
+
children: renderFallbackLink(loggingIn)
|
195
|
+
})]
|
196
|
+
});
|
192
197
|
}
|
193
198
|
}]);
|
194
199
|
}(Component);
|
@@ -1,8 +1,9 @@
|
|
1
1
|
import { d as _objectSpread2 } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
|
-
import React from 'react';
|
3
2
|
import { createRoot } from 'react-dom/client';
|
4
3
|
import { ControlsHeightContext, getGlobalControlsHeight } from '../global/controls-height.js';
|
5
4
|
import LoginDialog from './login-dialog.js';
|
5
|
+
import { jsx } from 'react/jsx-runtime';
|
6
|
+
import 'react';
|
6
7
|
import 'core-js/modules/es.array.concat.js';
|
7
8
|
import 'prop-types';
|
8
9
|
import '../dialog/dialog.js';
|
@@ -78,9 +79,10 @@ var reactRoot = createRoot(containerElement);
|
|
78
79
|
* Renders LoginDialog into virtual node to skip maintaining container
|
79
80
|
*/
|
80
81
|
function renderLoginDialog(props) {
|
81
|
-
reactRoot.render( /*#__PURE__*/
|
82
|
-
value: getGlobalControlsHeight()
|
83
|
-
|
82
|
+
reactRoot.render( /*#__PURE__*/jsx(ControlsHeightContext.Provider, {
|
83
|
+
value: getGlobalControlsHeight(),
|
84
|
+
children: /*#__PURE__*/jsx(LoginDialog, _objectSpread2({}, props))
|
85
|
+
}));
|
84
86
|
}
|
85
87
|
function noop() {}
|
86
88
|
function showAuthDialog() {
|