@jetbrains/ring-ui-built 6.0.35 → 6.0.36
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.js +1 -1
- package/components/auth/response-parser.js +1 -1
- package/components/auth/storage.js +3 -2
- 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.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 +2 -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 -3
- 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-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 +11 -11
- 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 +2 -2
- package/components/date-picker/day.js +11 -8
- package/components/date-picker/month-names.d.ts +2 -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 +2 -2
- package/components/date-picker/month.js +18 -15
- package/components/date-picker/months.d.ts +2 -2
- package/components/date-picker/months.js +18 -15
- package/components/date-picker/weekdays.d.ts +2 -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 +3 -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/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.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/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 +11 -11
- 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 +10 -10
- 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 +15 -15
- package/components/link/link.js +12 -9
- package/components/list/consts.d.ts +2 -1
- package/components/list/list.d.ts +10 -10
- 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 +2 -1
- 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 +2 -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 +6 -4
- 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 +8 -8
- 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 +9 -9
- 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 +2 -1
- 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/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
package/components/tag/tag.d.ts
CHANGED
@@ -1,4 +1,5 @@
|
|
1
|
-
import
|
1
|
+
import { HTMLAttributes, PureComponent, ReactNode, RefCallback } from 'react';
|
2
|
+
import * as React from 'react';
|
2
3
|
import PropTypes from 'prop-types';
|
3
4
|
import { IconType } from '../icon/icon';
|
4
5
|
export interface TagRenderProps extends HTMLAttributes<HTMLElement> {
|
package/components/tag/tag.js
CHANGED
@@ -1,12 +1,13 @@
|
|
1
|
-
import { _ as _defineProperty, a as _inherits, b as _createClass,
|
1
|
+
import { _ as _defineProperty, a as _inherits, b as _createClass, 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 classNames from 'classnames';
|
6
6
|
import closeIcon from '@jetbrains/icons/close-12px';
|
7
7
|
import Icon from '../icon/icon.js';
|
8
8
|
import { Button } from '../button/button.js';
|
9
9
|
import { ControlsHeight } from '../global/controls-height.js';
|
10
|
+
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
10
11
|
import 'util-deprecate';
|
11
12
|
import '../icon/icon__constants.js';
|
12
13
|
import '../_helpers/icon__svg.js';
|
@@ -25,9 +26,6 @@ import '../_helpers/button__classes.js';
|
|
25
26
|
|
26
27
|
var modules_2f9be069 = {"max-height":"20px","tag":"tag_rui_5765 resetButton_rui_f295","tagAngled":"tagAngled_rui_5765","light":"light_rui_2ac4","withRemove":"withRemove_rui_5765","container":"container_rui_5765","focused":"focused_rui_5765","content":"content_rui_5765 ellipsis_rui_f295","disabled":"disabled_rui_5765","remove":"remove_rui_5765","removeIcon":"removeIcon_rui_5765","icon":"icon_rui_5765","avatarContainer":"avatarContainer_rui_5765","customIcon":"customIcon_rui_5765","avatarIcon":"avatarIcon_rui_5765"};
|
27
28
|
|
28
|
-
/**
|
29
|
-
* @name Tag
|
30
|
-
*/
|
31
29
|
var Tag = /*#__PURE__*/function (_PureComponent) {
|
32
30
|
function Tag() {
|
33
31
|
var _this;
|
@@ -88,7 +86,7 @@ var Tag = /*#__PURE__*/function (_PureComponent) {
|
|
88
86
|
key: "renderCustomIcon",
|
89
87
|
value: function renderCustomIcon() {
|
90
88
|
if (this.props.rgTagIcon) {
|
91
|
-
return /*#__PURE__*/
|
89
|
+
return /*#__PURE__*/jsx(Icon, {
|
92
90
|
className: modules_2f9be069.icon,
|
93
91
|
title: this.props.rgTagTitle,
|
94
92
|
glyph: this.props.rgTagIcon
|
@@ -103,7 +101,7 @@ var Tag = /*#__PURE__*/function (_PureComponent) {
|
|
103
101
|
[modules_2f9be069.customIcon]: this.props.icon,
|
104
102
|
[modules_2f9be069.avatarIcon]: avatarSrc
|
105
103
|
});
|
106
|
-
return /*#__PURE__*/
|
104
|
+
return /*#__PURE__*/jsx("img", {
|
107
105
|
alt: avatarSrc ? 'Avatar' : 'Icon',
|
108
106
|
className: classes,
|
109
107
|
src: avatarSrc || this.props.icon
|
@@ -121,9 +119,10 @@ var Tag = /*#__PURE__*/function (_PureComponent) {
|
|
121
119
|
key: "renderAvatar",
|
122
120
|
value: function renderAvatar() {
|
123
121
|
if (this.props.avatar) {
|
124
|
-
return /*#__PURE__*/
|
125
|
-
className: modules_2f9be069.avatarContainer
|
126
|
-
|
122
|
+
return /*#__PURE__*/jsx("span", {
|
123
|
+
className: modules_2f9be069.avatarContainer,
|
124
|
+
children: this._renderImageElement(this.props.avatar)
|
125
|
+
});
|
127
126
|
}
|
128
127
|
return null;
|
129
128
|
}
|
@@ -131,7 +130,7 @@ var Tag = /*#__PURE__*/function (_PureComponent) {
|
|
131
130
|
key: "renderRemoveIcon",
|
132
131
|
value: function renderRemoveIcon() {
|
133
132
|
if (!this.props.readOnly) {
|
134
|
-
return /*#__PURE__*/
|
133
|
+
return /*#__PURE__*/jsx(Button, {
|
135
134
|
title: "Remove",
|
136
135
|
icon: closeIcon,
|
137
136
|
"data-test": "ring-tag-remove",
|
@@ -159,22 +158,26 @@ var Tag = /*#__PURE__*/function (_PureComponent) {
|
|
159
158
|
backgroundColor = _this$props.backgroundColor,
|
160
159
|
textColor = _this$props.textColor,
|
161
160
|
render = _this$props.render;
|
162
|
-
return /*#__PURE__*/
|
163
|
-
className: modules_2f9be069.container
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
161
|
+
return /*#__PURE__*/jsxs("span", {
|
162
|
+
className: modules_2f9be069.container,
|
163
|
+
children: [render({
|
164
|
+
'data-test': 'ring-tag',
|
165
|
+
className: classes,
|
166
|
+
ref: this.tagRef,
|
167
|
+
onClick: this.props.onClick,
|
168
|
+
style: {
|
169
|
+
backgroundColor,
|
170
|
+
color: textColor
|
171
|
+
},
|
172
|
+
disabled: this.props.disabled,
|
173
|
+
children: /*#__PURE__*/jsxs(Fragment, {
|
174
|
+
children: [this.renderAvatar(), this.renderCustomIcon(), this.renderImage(), /*#__PURE__*/jsx("span", {
|
175
|
+
className: modules_2f9be069.content,
|
176
|
+
children: this.props.children
|
177
|
+
})]
|
178
|
+
})
|
179
|
+
}), this.renderRemoveIcon()]
|
180
|
+
});
|
178
181
|
}
|
179
182
|
}]);
|
180
183
|
}(PureComponent);
|
@@ -202,7 +205,7 @@ _defineProperty(Tag, "defaultProps", {
|
|
202
205
|
disabled: false,
|
203
206
|
focused: false,
|
204
207
|
render: function render(props) {
|
205
|
-
return /*#__PURE__*/
|
208
|
+
return /*#__PURE__*/jsx("button", _objectSpread2({
|
206
209
|
type: "button"
|
207
210
|
}, props));
|
208
211
|
}
|
@@ -1,4 +1,5 @@
|
|
1
|
-
import
|
1
|
+
import { Component, PureComponent, SyntheticEvent, ReactNode, ComponentType } from 'react';
|
2
|
+
import * as React from 'react';
|
2
3
|
import PropTypes from 'prop-types';
|
3
4
|
import Select, { SelectItem } from '../select/select';
|
4
5
|
import { TagType } from '../tags-list/tags-list';
|
@@ -62,7 +63,7 @@ export default class TagsInput extends PureComponent<TagsInputProps, TagsInputSt
|
|
62
63
|
dataSource: PropTypes.Requireable<(...args: any[]) => any>;
|
63
64
|
onAddTag: PropTypes.Requireable<(...args: any[]) => any>;
|
64
65
|
onRemoveTag: PropTypes.Requireable<(...args: any[]) => any>;
|
65
|
-
customTagComponent: PropTypes.Requireable<
|
66
|
+
customTagComponent: PropTypes.Requireable<Component<unknown, unknown, unknown>>;
|
66
67
|
maxPopupHeight: PropTypes.Requireable<number>;
|
67
68
|
minPopupWidth: PropTypes.Requireable<number>;
|
68
69
|
placeholder: PropTypes.Requireable<string>;
|
@@ -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 } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
2
|
import 'core-js/modules/es.array.concat.js';
|
3
3
|
import 'core-js/modules/es.array.filter.js';
|
4
4
|
import 'core-js/modules/es.array.index-of.js';
|
@@ -9,7 +9,7 @@ import 'core-js/modules/es.object.assign.js';
|
|
9
9
|
import 'core-js/modules/es.object.to-string.js';
|
10
10
|
import 'core-js/modules/es.promise.js';
|
11
11
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
12
|
-
import
|
12
|
+
import { Component, PureComponent } from 'react';
|
13
13
|
import PropTypes from 'prop-types';
|
14
14
|
import classNames from 'classnames';
|
15
15
|
import getEventKey from '../global/get-event-key.js';
|
@@ -22,6 +22,7 @@ import { S as Size, m as modules_88cfaf40 } from '../_helpers/input.js';
|
|
22
22
|
import { ControlsHeightContext } from '../global/controls-height.js';
|
23
23
|
import getUID from '../global/get-uid.js';
|
24
24
|
import { ControlLabel } from '../control-label/control-label.js';
|
25
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
25
26
|
import 'core-js/modules/es.array.find.js';
|
26
27
|
import 'core-js/modules/es.array.reduce.js';
|
27
28
|
import 'core-js/modules/es.array.slice.js';
|
@@ -93,6 +94,7 @@ import '@jetbrains/icons/checkmark-12px';
|
|
93
94
|
import '@jetbrains/icons/remove-12px';
|
94
95
|
import '../global/prop-types.js';
|
95
96
|
import '../global/composeRefs.js';
|
97
|
+
import '../control-help/control-help.js';
|
96
98
|
import '../list/list__custom.js';
|
97
99
|
import '../list/list__title.js';
|
98
100
|
import '../list/list__separator.js';
|
@@ -405,56 +407,59 @@ var TagsInput = /*#__PURE__*/function (_PureComponent) {
|
|
405
407
|
[modules_5aa8aaf3.tagsInputDisabled]: disabled,
|
406
408
|
[modules_5aa8aaf3.tagsInputFocused]: focused
|
407
409
|
}, this.props.className);
|
408
|
-
return /*#__PURE__*/
|
410
|
+
return /*#__PURE__*/jsxs("div", {
|
409
411
|
// it transfers focus to input
|
410
412
|
role: "presentation",
|
411
413
|
className: classes,
|
412
414
|
onKeyDown: this.handleKeyDown,
|
413
415
|
onClick: this.clickHandler,
|
414
|
-
ref: this.nodeRef
|
415
|
-
|
416
|
-
|
417
|
-
|
418
|
-
|
419
|
-
|
420
|
-
|
421
|
-
|
422
|
-
|
423
|
-
|
424
|
-
|
425
|
-
|
426
|
-
|
427
|
-
|
428
|
-
|
429
|
-
|
430
|
-
|
431
|
-
|
432
|
-
|
433
|
-
|
434
|
-
|
435
|
-
|
436
|
-
|
437
|
-
|
438
|
-
|
439
|
-
|
440
|
-
|
441
|
-
|
442
|
-
|
443
|
-
|
444
|
-
|
445
|
-
|
446
|
-
|
447
|
-
|
448
|
-
|
449
|
-
|
450
|
-
|
451
|
-
|
452
|
-
|
453
|
-
|
454
|
-
|
455
|
-
|
456
|
-
|
457
|
-
|
416
|
+
ref: this.nodeRef,
|
417
|
+
children: [label && /*#__PURE__*/jsx(ControlLabel, {
|
418
|
+
htmlFor: this.id,
|
419
|
+
disabled: disabled,
|
420
|
+
type: labelType,
|
421
|
+
children: label
|
422
|
+
}), /*#__PURE__*/jsx(TagsList, {
|
423
|
+
tags: tags,
|
424
|
+
activeIndex: activeIndex,
|
425
|
+
disabled: disabled,
|
426
|
+
canNotBeEmpty: canNotBeEmpty,
|
427
|
+
handleRemove: this.handleRemove,
|
428
|
+
className: modules_5aa8aaf3.tagsList,
|
429
|
+
tagClassName: modules_5aa8aaf3.tag,
|
430
|
+
handleClick: this.handleClick,
|
431
|
+
customTagComponent: this.props.customTagComponent,
|
432
|
+
children: /*#__PURE__*/jsx(Select, {
|
433
|
+
id: this.id,
|
434
|
+
ref: this.selectRef,
|
435
|
+
size: Select.Size.AUTO,
|
436
|
+
type: Select.Type.INPUT_WITHOUT_CONTROLS,
|
437
|
+
inputPlaceholder: this.props.placeholder,
|
438
|
+
data: this.state.suggestions,
|
439
|
+
className: classNames(modules_5aa8aaf3.tagsSelect),
|
440
|
+
onSelect: this.addTag,
|
441
|
+
onFocus: this._focusHandler,
|
442
|
+
onBlur: this._blurHandler,
|
443
|
+
renderOptimization: this.props.renderOptimization,
|
444
|
+
add: allowAddNewTags ? {
|
445
|
+
prefix: 'Add new tag'
|
446
|
+
} : undefined,
|
447
|
+
onAdd: allowAddNewTags ? this.handleTagCreation : undefined,
|
448
|
+
filter: filter,
|
449
|
+
maxHeight: this.props.maxPopupHeight,
|
450
|
+
minWidth: this.props.minPopupWidth,
|
451
|
+
top: POPUP_VERTICAL_SHIFT,
|
452
|
+
loading: this.state.loading,
|
453
|
+
onFilter: this.loadSuggestions,
|
454
|
+
onBeforeOpen: this.loadSuggestions,
|
455
|
+
onKeyDown: this.handleKeyDown,
|
456
|
+
disabled: this.props.disabled,
|
457
|
+
loadingMessage: this.props.loadingMessage,
|
458
|
+
notFoundMessage: this.props.notFoundMessage,
|
459
|
+
hint: this.props.hint
|
460
|
+
})
|
461
|
+
})]
|
462
|
+
});
|
458
463
|
}
|
459
464
|
}], [{
|
460
465
|
key: "getDerivedStateFromProps",
|
@@ -1,4 +1,5 @@
|
|
1
|
-
import
|
1
|
+
import { Component, ComponentType, HTMLAttributes, ReactNode } from 'react';
|
2
|
+
import * as React from 'react';
|
2
3
|
import PropTypes from 'prop-types';
|
3
4
|
import { TagAttrs } from '../tag/tag';
|
4
5
|
declare function noop(): void;
|
@@ -1,9 +1,10 @@
|
|
1
|
-
import { _ as _defineProperty, a as _inherits, b as _createClass,
|
1
|
+
import { _ as _defineProperty, a as _inherits, b as _createClass, d as _objectSpread2, c as _objectWithoutProperties, e as _classCallCheck, f as _callSuper } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
2
|
import 'core-js/modules/es.array.map.js';
|
3
|
-
import
|
3
|
+
import { createElement, Component } from 'react';
|
4
4
|
import PropTypes from 'prop-types';
|
5
5
|
import classNames from 'classnames';
|
6
6
|
import Tag from '../tag/tag.js';
|
7
|
+
import { jsxs } from 'react/jsx-runtime';
|
7
8
|
import 'core-js/modules/es.array.concat.js';
|
8
9
|
import '@jetbrains/icons/close-12px';
|
9
10
|
import '../icon/icon.js';
|
@@ -42,7 +43,7 @@ var TagsList = /*#__PURE__*/function (_Component) {
|
|
42
43
|
var TagComponent = this.props.customTagComponent || Tag;
|
43
44
|
var readOnly = this.props.disabled || tag.readOnly || this.props.canNotBeEmpty && this.props.tags.length === 1;
|
44
45
|
var tagClassName = this.props.tagClassName;
|
45
|
-
return /*#__PURE__*/
|
46
|
+
return /*#__PURE__*/createElement(TagComponent, _objectSpread2(_objectSpread2({}, tag), {}, {
|
46
47
|
key: tag.key,
|
47
48
|
readOnly: readOnly,
|
48
49
|
disabled: this.props.disabled || tag.disabled,
|
@@ -71,10 +72,12 @@ var TagsList = /*#__PURE__*/function (_Component) {
|
|
71
72
|
var tagsList = (this.props.tags || []).map(function (tag, index) {
|
72
73
|
return _this.renderTag(tag, _this.props.activeIndex === index);
|
73
74
|
});
|
74
|
-
return /*#__PURE__*/
|
75
|
+
return /*#__PURE__*/jsxs("div", _objectSpread2(_objectSpread2({
|
75
76
|
"data-test": "ring-tags-list",
|
76
77
|
className: classes
|
77
|
-
}, props),
|
78
|
+
}, props), {}, {
|
79
|
+
children: [tagsList, children]
|
80
|
+
}));
|
78
81
|
}
|
79
82
|
}]);
|
80
83
|
}(Component);
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import
|
1
|
+
import { Component, HTMLAttributes } from 'react';
|
2
2
|
import PropTypes from 'prop-types';
|
3
3
|
type TextSize = 's' | 'm' | 'l';
|
4
4
|
export interface TextProps extends HTMLAttributes<HTMLElement> {
|
@@ -18,6 +18,6 @@ export default class Text extends Component<TextProps> {
|
|
18
18
|
className: PropTypes.Requireable<string>;
|
19
19
|
};
|
20
20
|
static Size: Record<string, TextSize>;
|
21
|
-
render():
|
21
|
+
render(): import("react").JSX.Element;
|
22
22
|
}
|
23
23
|
export {};
|
package/components/text/text.js
CHANGED
@@ -1,8 +1,9 @@
|
|
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.map.js';
|
3
|
-
import
|
3
|
+
import { Component } from 'react';
|
4
4
|
import PropTypes from 'prop-types';
|
5
5
|
import classNames from 'classnames';
|
6
|
+
import { jsx } from 'react/jsx-runtime';
|
6
7
|
|
7
8
|
var modules_78d1bce6 = {"light":"light_rui_2ac4","text":"text_rui_2f31","sizeS":"sizeS_rui_2f31","sizeM":"sizeM_rui_2f31","sizeL":"sizeL_rui_2f31","info":"info_rui_2f31"};
|
8
9
|
|
@@ -36,9 +37,11 @@ var Text = /*#__PURE__*/function (_Component) {
|
|
36
37
|
[modules_78d1bce6.sizeM]: size === Text.Size.M,
|
37
38
|
[modules_78d1bce6.sizeL]: size === Text.Size.L
|
38
39
|
});
|
39
|
-
return /*#__PURE__*/
|
40
|
+
return /*#__PURE__*/jsx("span", _objectSpread2(_objectSpread2({
|
40
41
|
className: classes
|
41
|
-
}, restProps),
|
42
|
+
}, restProps), {}, {
|
43
|
+
children: children
|
44
|
+
}));
|
42
45
|
}
|
43
46
|
}]);
|
44
47
|
}(Component);
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import
|
1
|
+
import { InputHTMLAttributes, PureComponent, ReactNode } from 'react';
|
2
2
|
import PropTypes from 'prop-types';
|
3
3
|
export declare const Size: {
|
4
4
|
Size14: string;
|
@@ -33,7 +33,7 @@ declare class Toggle extends PureComponent<ToggleProps> {
|
|
33
33
|
static defaultProps: {
|
34
34
|
size: string;
|
35
35
|
};
|
36
|
-
render():
|
36
|
+
render(): import("react").JSX.Element;
|
37
37
|
}
|
38
38
|
export type ToggleAttrs = JSX.LibraryManagedAttributes<typeof Toggle, ToggleProps>;
|
39
39
|
export default Toggle;
|
@@ -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.object.values.js';
|
3
|
-
import
|
3
|
+
import { PureComponent } from 'react';
|
4
4
|
import PropTypes from 'prop-types';
|
5
5
|
import classNames from 'classnames';
|
6
6
|
import joinDataTestAttributes from '../global/data-tests.js';
|
7
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
7
8
|
import 'core-js/modules/es.array.concat.js';
|
8
9
|
import 'core-js/modules/es.array.reduce.js';
|
9
10
|
import 'core-js/modules/es.object.entries.js';
|
@@ -39,26 +40,30 @@ var Toggle = /*#__PURE__*/function (_PureComponent) {
|
|
39
40
|
onTransitionEnd = _this$props.onTransitionEnd,
|
40
41
|
restProps = _objectWithoutProperties(_this$props, _excluded);
|
41
42
|
var classes = classNames(className, size, modules_331c5aa7.toggle, disabled && modules_331c5aa7.disabled);
|
42
|
-
return /*#__PURE__*/
|
43
|
+
return /*#__PURE__*/jsxs("label", {
|
43
44
|
className: classes,
|
44
45
|
title: title,
|
45
|
-
"data-test": joinDataTestAttributes('ring-toggle', dataTest)
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
46
|
+
"data-test": joinDataTestAttributes('ring-toggle', dataTest),
|
47
|
+
children: [leftLabel && /*#__PURE__*/jsx("span", {
|
48
|
+
className: modules_331c5aa7.leftLabel,
|
49
|
+
children: leftLabel
|
50
|
+
}), /*#__PURE__*/jsxs("span", {
|
51
|
+
className: modules_331c5aa7.switchWrapper,
|
52
|
+
children: [/*#__PURE__*/jsx("input", _objectSpread2(_objectSpread2({
|
53
|
+
"data-test": "ring-toggle-input"
|
54
|
+
}, restProps), {}, {
|
55
|
+
type: "checkbox",
|
56
|
+
disabled: disabled,
|
57
|
+
className: modules_331c5aa7.input
|
58
|
+
})), /*#__PURE__*/jsx("span", {
|
59
|
+
className: classNames(modules_331c5aa7.switch, pale && modules_331c5aa7.paleSwitch),
|
60
|
+
onTransitionEnd: onTransitionEnd
|
61
|
+
})]
|
62
|
+
}), children && /*#__PURE__*/jsx("span", {
|
63
|
+
className: modules_331c5aa7.label,
|
64
|
+
children: children
|
65
|
+
})]
|
66
|
+
});
|
62
67
|
}
|
63
68
|
}]);
|
64
69
|
}(PureComponent);
|
@@ -1,4 +1,5 @@
|
|
1
|
-
import
|
1
|
+
import { AllHTMLAttributes, Component, ReactNode } from 'react';
|
2
|
+
import * as React from 'react';
|
2
3
|
import PropTypes from 'prop-types';
|
3
4
|
import Popup, { PopupAttrs } from '../popup/popup';
|
4
5
|
import { Listeners } from '../global/dom';
|
@@ -1,12 +1,13 @@
|
|
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 { createContext, Component } from 'react';
|
4
4
|
import PropTypes from 'prop-types';
|
5
5
|
import classNames from 'classnames';
|
6
6
|
import Popup from '../popup/popup.js';
|
7
7
|
import { Listeners } from '../global/dom.js';
|
8
8
|
import joinDataTestAttributes from '../global/data-tests.js';
|
9
9
|
import scheduleRAF from '../global/schedule-raf.js';
|
10
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
10
11
|
import 'core-js/modules/es.object.entries.js';
|
11
12
|
import 'core-js/modules/es.object.to-string.js';
|
12
13
|
import 'core-js/modules/es.regexp.exec.js';
|
@@ -183,28 +184,32 @@ var Tooltip = /*#__PURE__*/function (_Component) {
|
|
183
184
|
} : {};
|
184
185
|
var onNestedTooltipShow = this.onNestedTooltipShow,
|
185
186
|
onNestedTooltipHide = this.onNestedTooltipHide;
|
186
|
-
return /*#__PURE__*/
|
187
|
+
return /*#__PURE__*/jsx(TooltipContext.Provider, {
|
187
188
|
value: {
|
188
189
|
onNestedTooltipShow,
|
189
190
|
onNestedTooltipHide
|
190
|
-
}
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
191
|
+
},
|
192
|
+
children: /*#__PURE__*/jsxs("span", _objectSpread2(_objectSpread2(_objectSpread2({}, ariaProps), restProps), {}, {
|
193
|
+
ref: this.containerRef,
|
194
|
+
"data-test": joinDataTestAttributes('ring-tooltip', dataTest),
|
195
|
+
"data-test-title": typeof title === 'string' ? title : undefined,
|
196
|
+
children: [children, /*#__PURE__*/jsx(Popup, _objectSpread2(_objectSpread2({
|
197
|
+
trapFocus: false,
|
198
|
+
hidden: !this.state.showPopup || this.state.showNestedPopup,
|
199
|
+
onCloseAttempt: this.hidePopup,
|
200
|
+
maxHeight: 400,
|
201
|
+
className: classNames(modules_cd5e45a9.tooltip, {
|
202
|
+
[modules_cd5e45a9.long]: long
|
203
|
+
}),
|
204
|
+
attached: false,
|
205
|
+
top: 4,
|
206
|
+
dontCloseOnAnchorClick: true,
|
207
|
+
ref: this.popupRef
|
208
|
+
}, popupProps), {}, {
|
209
|
+
children: title
|
210
|
+
}))]
|
211
|
+
}))
|
212
|
+
});
|
208
213
|
}
|
209
214
|
}]);
|
210
215
|
}(Component);
|
@@ -1,9 +1,8 @@
|
|
1
|
-
import { b as _createClass,
|
1
|
+
import { b as _createClass, e as _classCallCheck, _ as _defineProperty, g as _asyncToGenerator, d as _objectSpread2, h as _regeneratorRuntime, i as _slicedToArray } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
2
|
import 'core-js/modules/es.array.iterator.js';
|
3
3
|
import 'core-js/modules/es.object.to-string.js';
|
4
4
|
import 'core-js/modules/es.promise.js';
|
5
5
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
6
|
-
import React from 'react';
|
7
6
|
import { createRoot } from 'react-dom/client';
|
8
7
|
import ActualStorage from '../storage/storage.js';
|
9
8
|
import alertService from '../alert-service/alert-service.js';
|
@@ -12,6 +11,7 @@ import Alert from '../alert/alert.js';
|
|
12
11
|
import Group from '../group/group.js';
|
13
12
|
import { ControlsHeightContext, getGlobalControlsHeight } from '../global/controls-height.js';
|
14
13
|
import UserAgreement from './user-agreement.js';
|
14
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
15
15
|
import '../storage/storage__local.js';
|
16
16
|
import '../storage/storage__fallback.js';
|
17
17
|
import 'core-js/modules/es.array.concat.js';
|
@@ -23,6 +23,7 @@ import 'core-js/modules/es.array.map.js';
|
|
23
23
|
import '../global/get-uid.js';
|
24
24
|
import 'core-js/modules/es.regexp.to-string.js';
|
25
25
|
import '../alert/container.js';
|
26
|
+
import 'react';
|
26
27
|
import 'react-dom';
|
27
28
|
import 'classnames';
|
28
29
|
import 'prop-types';
|
@@ -304,13 +305,19 @@ var UserAgreementService = /*#__PURE__*/_createClass(function UserAgreementServi
|
|
304
305
|
return _ref6.apply(this, arguments);
|
305
306
|
};
|
306
307
|
}();
|
307
|
-
var message = /*#__PURE__*/
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
308
|
+
var message = /*#__PURE__*/jsxs(Group, {
|
309
|
+
children: [/*#__PURE__*/jsx("span", {
|
310
|
+
children: userAgreement || 'User Agreement'
|
311
|
+
}), /*#__PURE__*/jsx(Link, {
|
312
|
+
onClick: onReview,
|
313
|
+
"data-test": "review",
|
314
|
+
children: reviewNow || 'Review now'
|
315
|
+
}), /*#__PURE__*/jsx(Link, {
|
316
|
+
onClick: onRemind,
|
317
|
+
"data-test": "later",
|
318
|
+
children: remindLater || 'Remind me later'
|
319
|
+
})]
|
320
|
+
});
|
314
321
|
_this.alertKey = alertService.addAlert(message, Alert.Type.WARNING, 0, {
|
315
322
|
closeable: false
|
316
323
|
});
|
@@ -390,9 +397,10 @@ var UserAgreementService = /*#__PURE__*/_createClass(function UserAgreementServi
|
|
390
397
|
translations,
|
391
398
|
preview
|
392
399
|
}, restOptions);
|
393
|
-
_this.reactRoot.render( /*#__PURE__*/
|
394
|
-
value: getGlobalControlsHeight()
|
395
|
-
|
400
|
+
_this.reactRoot.render( /*#__PURE__*/jsx(ControlsHeightContext.Provider, {
|
401
|
+
value: getGlobalControlsHeight(),
|
402
|
+
children: /*#__PURE__*/jsx(UserAgreement, _objectSpread2({}, props))
|
403
|
+
}));
|
396
404
|
if (onDialogShow) {
|
397
405
|
onDialogShow();
|
398
406
|
}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/**
|
2
2
|
* @name User Agreement
|
3
3
|
*/
|
4
|
-
import
|
4
|
+
import { PureComponent, ReactNode } from 'react';
|
5
5
|
import PropTypes from 'prop-types';
|
6
6
|
declare function noop(): void;
|
7
7
|
export interface UserAgreementTranslations {
|
@@ -54,7 +54,7 @@ export default class UserAgreement extends PureComponent<UserAgreementProps> {
|
|
54
54
|
scrolledDown: boolean;
|
55
55
|
};
|
56
56
|
onScrollToBottom: () => void;
|
57
|
-
render():
|
57
|
+
render(): import("react").JSX.Element;
|
58
58
|
}
|
59
59
|
export type UserAgreementAttrs = JSX.LibraryManagedAttributes<typeof UserAgreement, UserAgreementProps>;
|
60
60
|
export {};
|