@jetbrains/ring-ui 5.0.0-beta.3 → 5.0.0-beta.7
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/CHANGELOG.md +49 -1
- package/babel.config.js +1 -12
- package/components/alert/alert.css +3 -14
- package/components/alert/alert.d.ts +3 -0
- package/components/alert/alert.js +8 -7
- package/components/alert/container.css +0 -2
- package/components/alert-service/alert-service.examples.css +5 -3
- package/components/auth/auth__core.d.ts +3 -1
- package/components/auth/auth__core.js +42 -15
- package/components/auth/down-notification.css +1 -1
- package/components/auth-dialog/auth-dialog.d.ts +11 -0
- package/components/auth-dialog/auth-dialog.js +33 -2
- package/components/autofocus-ng/autofocus-ng.js +1 -1
- package/components/autofocus-ng/autofocus-ng.test.js +1 -1
- package/components/button/button.css +93 -204
- package/components/button/button.d.ts +7 -8
- package/components/button/button.js +6 -8
- package/components/button/button__classes.d.ts +1 -1
- package/components/button/button__classes.js +4 -7
- package/components/button-group/button-group.css +136 -19
- package/components/button-group/button-group.d.ts +4 -1
- package/components/button-group/button-group.js +3 -3
- package/components/button-group-ng/button-group-ng.css +1 -0
- package/components/button-group-ng/button-group-ng.examples.js +1 -1
- package/components/button-ng/button-ng.examples.js +6 -7
- package/components/button-ng/button-ng.js +6 -25
- package/components/button-set/button-set.css +1 -0
- package/components/button-toolbar/button-toolbar.css +2 -0
- package/components/checkbox/checkbox.css +10 -4
- package/components/date-picker/date-input.js +2 -1
- package/components/date-picker/date-picker.css +2 -1
- package/components/dialog/dialog.css +10 -3
- package/components/dialog-ng/dialog-ng__template.js +1 -0
- package/components/error-bubble/error-bubble-legacy.css +1 -1
- package/components/error-bubble/error-bubble.css +1 -1
- package/components/global/controls-height.d.ts +7 -0
- package/components/global/controls-height.js +8 -0
- package/components/global/theme.d.ts +7 -20
- package/components/global/theme.js +26 -32
- package/components/global/variables.css +30 -25
- package/components/global/variables.d.ts +10 -8
- package/components/global/variables_dark.css +68 -0
- package/components/header/header.css +19 -10
- package/components/header/header.d.ts +7 -69
- package/components/header/header.js +10 -9
- package/components/header/services.css +3 -3
- package/components/header/services.d.ts +5 -0
- package/components/header/services.js +8 -2
- package/components/header/tray-icon.d.ts +18 -575
- package/components/heading/heading.css +4 -1
- package/components/icon/icon.css +1 -1
- package/components/input/input.css +81 -151
- package/components/input/input.d.ts +13 -17
- package/components/input/input.js +28 -32
- package/components/input-ng/input-ng.examples.js +1 -1
- package/components/input-ng/input-ng.js +45 -49
- package/components/island/adaptive-island-hoc.d.ts +2 -2
- package/components/island/adaptive-island-hoc.js +2 -2
- package/components/island/content.js +2 -7
- package/components/island/header.js +7 -4
- package/components/island/island.css +8 -5
- package/components/island/island.d.ts +2 -2
- package/components/island-legacy/island-legacy.css +1 -1
- package/components/list/list.d.ts +1 -1
- package/components/loader-inline/loader-inline.css +14 -0
- package/components/loader-inline/loader-inline.d.ts +4 -41
- package/components/loader-inline/loader-inline.js +3 -11
- package/components/loader-inline-ng/loader-inline-ng.js +1 -17
- package/components/loader-inline-ng/loader-inline-ng.test.js +0 -11
- package/components/markdown/code.d.ts +6 -13
- package/components/markdown/code.js +2 -2
- package/components/markdown/heading.d.ts +5 -9
- package/components/markdown/heading.js +2 -2
- package/components/markdown/link.d.ts +4 -8
- package/components/markdown/link.js +1 -1
- package/components/markdown/markdown.d.ts +2 -3
- package/components/markdown/markdown.js +14 -11
- package/components/message/message.css +7 -3
- package/components/message/message.d.ts +3 -0
- package/components/message/message.js +16 -9
- package/components/pager/pager.js +2 -8
- package/components/popup/popup.css +1 -1
- package/components/popup/popup.target.d.ts +1 -0
- package/components/progress-bar/progress-bar.css +8 -12
- package/components/progress-bar/progress-bar.d.ts +0 -4
- package/components/progress-bar/progress-bar.js +1 -6
- package/components/progress-bar-ng/progress-bar-ng.examples.js +3 -2
- package/components/query-assist/query-assist.css +48 -64
- package/components/query-assist/query-assist.d.ts +0 -5
- package/components/query-assist/query-assist.js +4 -10
- package/components/radio/radio.css +10 -4
- package/components/select/select.css +19 -37
- package/components/select/select.d.ts +4 -6
- package/components/select/select.js +17 -30
- package/components/select/select__filter.js +2 -1
- package/components/select/select__popup.js +1 -2
- package/components/select-ng/select-ng.examples.js +1 -0
- package/components/select-ng/select-ng.js +3 -1
- package/components/select-ng/select-ng.test.js +1 -1
- package/components/select-ng/select-ng__lazy.js +1 -2
- package/components/shortcuts-hint-ng/shortcuts-hint-ng.css +1 -1
- package/components/shortcuts-hint-ng/shortcuts-hint-ng.examples.js +1 -1
- package/components/tabs/collapsible-tab.js +2 -2
- package/components/tabs/dumb-tabs.d.ts +4 -107
- package/components/tabs/dumb-tabs.js +5 -9
- package/components/tabs/tab.d.ts +2 -0
- package/components/tabs/tabs.css +8 -28
- package/components/tabs-ng/tabs-ng.examples.js +11 -3
- package/components/tabs-ng/tabs-ng.js +1 -4
- package/components/tabs-ng/tabs-ng__template.js +1 -1
- package/components/tag/tag.css +31 -8
- package/components/tag/tag.d.ts +1 -0
- package/components/tag/tag.js +1 -0
- package/components/tags-input/tags-input.css +10 -4
- package/components/toggle/toggle.css +61 -35
- package/components/toggle/toggle.d.ts +9 -89
- package/components/toggle/toggle.js +7 -7
- package/components/tooltip/tooltip.css +7 -0
- package/components/tooltip/tooltip.d.ts +1 -0
- package/components/tooltip/tooltip.js +3 -2
- package/components/user-agreement/service.d.ts +2 -2
- package/components/user-agreement/user-agreement.js +1 -1
- package/dist/_helpers/anchor.js +3 -3
- package/dist/_helpers/badge.js +1 -1
- package/dist/_helpers/button-group.js +1 -1
- package/dist/_helpers/button-set.js +1 -1
- package/dist/_helpers/button-toolbar.js +1 -1
- package/dist/_helpers/button__classes.js +5 -8
- package/dist/_helpers/card.js +1 -1
- package/dist/_helpers/checkbox.js +1 -1
- package/dist/_helpers/date-picker.js +1 -1
- package/dist/_helpers/dialog__body-scroll-preventer.js +1 -1
- package/dist/_helpers/error-message.js +1 -1
- package/dist/_helpers/footer.js +1 -1
- package/dist/_helpers/grid.js +1 -1
- package/dist/_helpers/group.js +1 -1
- package/dist/_helpers/header.js +1 -1
- package/dist/_helpers/icon.js +1 -1
- package/dist/_helpers/input.js +1 -1
- package/dist/_helpers/island.js +1 -1
- package/dist/_helpers/link.js +1 -1
- package/dist/_helpers/list.js +1 -1
- package/dist/_helpers/loader-inline.js +3 -0
- package/dist/_helpers/loader-screen.js +1 -1
- package/dist/_helpers/panel.js +1 -1
- package/dist/_helpers/query-assist__suggestions.js +1 -1
- package/dist/_helpers/radio.js +1 -1
- package/dist/_helpers/select__filter.js +5 -3
- package/dist/_helpers/services-link.js +1 -1
- package/dist/_helpers/sidebar.js +1 -1
- package/dist/_helpers/table.js +1 -1
- package/dist/_helpers/tabs.js +1 -1
- package/dist/_helpers/theme.js +50 -0
- package/dist/_helpers/title.js +1 -1
- package/dist/alert/alert.d.ts +3 -0
- package/dist/alert/alert.js +21 -19
- package/dist/alert/container.js +1 -1
- package/dist/alert-service/alert-service.js +9 -7
- package/dist/auth/auth.js +9 -9
- package/dist/auth/auth__core.d.ts +3 -1
- package/dist/auth/auth__core.js +58 -26
- package/dist/auth/down-notification.js +8 -8
- package/dist/auth/iframe-flow.js +1 -1
- package/dist/auth/landing.js +9 -9
- package/dist/auth/storage.js +9 -7
- package/dist/auth-dialog/auth-dialog.d.ts +11 -0
- package/dist/auth-dialog/auth-dialog.js +52 -7
- package/dist/auth-dialog-service/auth-dialog-service.js +1 -1
- package/dist/auth-ng/auth-ng.js +9 -9
- package/dist/autofocus-ng/autofocus-ng.js +1 -1
- package/dist/avatar/avatar.js +1 -1
- package/dist/avatar-editor-ng/avatar-editor-ng.js +9 -7
- package/dist/breadcrumb-ng/breadcrumb-ng.js +1 -1
- package/dist/button/button.d.ts +7 -8
- package/dist/button/button.js +6 -8
- package/dist/button/button__classes.d.ts +1 -1
- package/dist/button/button__classes.js +0 -3
- package/dist/button-group/button-group.d.ts +4 -1
- package/dist/button-group/button-group.js +5 -3
- package/dist/button-group-ng/button-group-ng.js +1 -1
- package/dist/button-ng/button-ng.js +6 -31
- package/dist/code/code.js +1 -1
- package/dist/confirm/confirm.js +5 -5
- package/dist/confirm-ng/confirm-ng.js +1 -1
- package/dist/confirm-service/confirm-service.js +1 -1
- package/dist/data-list/data-list.js +2 -7
- package/dist/data-list/item.js +8 -13
- package/dist/data-list-ng/data-list-ng.js +2 -7
- package/dist/date-picker/date-input.js +4 -3
- package/dist/date-picker/date-picker.js +1 -1
- package/dist/date-picker/date-popup.js +1 -1
- package/dist/dialog/dialog.js +3 -3
- package/dist/dialog-ng/dialog-ng.js +3 -3
- package/dist/dialog-ng/dialog-ng__template.js +1 -0
- package/dist/docked-panel-ng/docked-panel-ng.js +1 -1
- package/dist/dropdown/anchor.js +1 -1
- package/dist/dropdown/dropdown.js +1 -1
- package/dist/dropdown-menu/dropdown-menu.js +1 -1
- package/dist/error-bubble/error-bubble.js +1 -1
- package/dist/global/controls-height.d.ts +7 -0
- package/dist/global/controls-height.js +13 -0
- package/dist/global/theme.d.ts +7 -20
- package/dist/global/theme.js +7 -62
- package/dist/global/variables.d.ts +10 -8
- package/dist/header/header.d.ts +7 -69
- package/dist/header/header.js +13 -17
- package/dist/header/profile.js +3 -3
- package/dist/header/services.d.ts +5 -0
- package/dist/header/services.js +11 -3
- package/dist/header/smart-profile.js +10 -14
- package/dist/header/smart-services.js +9 -13
- package/dist/header/tray-icon.d.ts +18 -575
- package/dist/header/tray-icon.js +4 -4
- package/dist/heading/heading.js +1 -1
- package/dist/input/input.d.ts +13 -17
- package/dist/input/input.js +32 -41
- package/dist/input-ng/input-ng.js +46 -49
- package/dist/island/adaptive-island-hoc.d.ts +2 -2
- package/dist/island/adaptive-island-hoc.js +4 -2
- package/dist/island/content.js +2 -9
- package/dist/island/header.js +7 -4
- package/dist/island/island.d.ts +2 -2
- package/dist/list/list.d.ts +1 -1
- package/dist/loader/loader__core.js +1 -1
- package/dist/loader-inline/loader-inline.d.ts +4 -41
- package/dist/loader-inline/loader-inline.js +3 -21
- package/dist/loader-inline-ng/loader-inline-ng.js +2 -30
- package/dist/login-dialog/login-dialog.js +2 -2
- package/dist/login-dialog/service.js +1 -1
- package/dist/markdown/code.d.ts +6 -13
- package/dist/markdown/code.js +3 -3
- package/dist/markdown/heading.d.ts +5 -9
- package/dist/markdown/heading.js +2 -2
- package/dist/markdown/link.d.ts +4 -8
- package/dist/markdown/link.js +1 -1
- package/dist/markdown/markdown.d.ts +2 -3
- package/dist/markdown/markdown.js +16 -16
- package/dist/message/message.d.ts +3 -0
- package/dist/message/message.js +18 -10
- package/dist/pager/pager.js +8 -12
- package/dist/pager-ng/pager-ng.js +3 -7
- package/dist/permissions-ng/permissions-ng.js +9 -9
- package/dist/popup/popup.js +1 -1
- package/dist/popup/popup.target.d.ts +1 -0
- package/dist/progress-bar/progress-bar.d.ts +0 -4
- package/dist/progress-bar/progress-bar.js +1 -7
- package/dist/progress-bar-ng/progress-bar-ng.js +0 -1
- package/dist/promised-click-ng/promised-click-ng.js +2 -2
- package/dist/query-assist/query-assist.d.ts +0 -5
- package/dist/query-assist/query-assist.js +10 -26
- package/dist/query-assist-ng/query-assist-ng.js +2 -7
- package/dist/save-field-ng/save-field-ng.js +2 -9
- package/dist/select/select.d.ts +4 -6
- package/dist/select/select.js +35 -58
- package/dist/select/select__filter.js +1 -1
- package/dist/select/select__popup.js +7 -13
- package/dist/select-ng/select-ng.js +5 -9
- package/dist/select-ng/select-ng__lazy.js +7 -11
- package/dist/shortcuts-hint-ng/shortcuts-hint-ng.js +2 -2
- package/dist/sidebar-ng/sidebar-ng.js +2 -2
- package/dist/storage/storage.js +9 -7
- package/dist/storage/storage__local.js +9 -7
- package/dist/style.css +1 -1
- package/dist/tab-trap/tab-trap.js +1 -1
- package/dist/table/row-with-focus-sensor.js +1 -1
- package/dist/table/row.js +5 -5
- package/dist/table/smart-table.js +1 -1
- package/dist/table/table.js +1 -1
- package/dist/table-legacy-ng/table-legacy-ng.js +3 -7
- package/dist/table-legacy-ng/table-legacy-ng__pager.js +3 -7
- package/dist/table-ng/smart-table-ng.js +1 -1
- package/dist/table-ng/table-ng.js +1 -1
- package/dist/tabs/collapsible-more.js +1 -1
- package/dist/tabs/collapsible-tab.js +3 -2
- package/dist/tabs/collapsible-tabs.js +1 -1
- package/dist/tabs/dumb-tabs.d.ts +4 -107
- package/dist/tabs/dumb-tabs.js +6 -12
- package/dist/tabs/smart-tabs.js +3 -3
- package/dist/tabs/tab.d.ts +2 -0
- package/dist/tabs/tabs.js +1 -1
- package/dist/tabs-ng/tabs-ng.js +1 -6
- package/dist/tabs-ng/tabs-ng__template.js +1 -1
- package/dist/tag/tag.d.ts +1 -0
- package/dist/tag/tag.js +5 -4
- package/dist/tags-input/tags-input.js +5 -9
- package/dist/tags-input-ng/tags-input-ng.js +4 -8
- package/dist/tags-list/tags-list.js +1 -1
- package/dist/text/text.js +1 -1
- package/dist/toggle/toggle.d.ts +9 -89
- package/dist/toggle/toggle.js +7 -8
- package/dist/toggle-ng/toggle-ng.js +2 -3
- package/dist/tooltip/tooltip.d.ts +1 -0
- package/dist/tooltip/tooltip.js +6 -3
- package/dist/user-agreement/service.d.ts +2 -2
- package/dist/user-agreement/service.js +9 -13
- package/dist/user-agreement/user-agreement.js +8 -10
- package/dist/user-card/smart-user-card-tooltip.js +6 -11
- package/dist/user-card/tooltip.js +1 -1
- package/dist/user-card/user-card.js +2 -7
- package/dist/user-card-ng/user-card-ng.js +4 -9
- package/package.json +5 -5
- package/webpack.config.js +0 -11
- package/components/global/conic-gradient.d.ts +0 -796
- package/components/global/conic-gradient.js +0 -21
- package/components/global/radial-gradient-mask.d.ts +0 -9
- package/components/global/radial-gradient-mask.js +0 -39
- package/components/global/supports-css.d.ts +0 -2
- package/components/global/supports-css.js +0 -14
- package/components/global/variables_dark.d.ts +0 -3
- package/components/global/variables_dark.js +0 -53
- package/components/loader-inline/inject-styles.d.ts +0 -2
- package/components/loader-inline/inject-styles.js +0 -17
- package/dist/_helpers/inject-styles.js +0 -22
- package/dist/global/conic-gradient.d.ts +0 -796
- package/dist/global/conic-gradient.js +0 -35
- package/dist/global/radial-gradient-mask.d.ts +0 -9
- package/dist/global/radial-gradient-mask.js +0 -49
- package/dist/global/supports-css.d.ts +0 -2
- package/dist/global/supports-css.js +0 -20
- package/dist/global/variables_dark.d.ts +0 -3
- package/dist/global/variables_dark.js +0 -57
- package/dist/loader-inline/inject-styles.d.ts +0 -2
- package/dist/loader-inline/inject-styles.js +0 -11
package/dist/pager/pager.js
CHANGED
|
@@ -4,7 +4,7 @@ import PropTypes from 'prop-types';
|
|
|
4
4
|
import classNames from 'classnames';
|
|
5
5
|
import chevronLeftIcon from '@jetbrains/icons/chevron-left';
|
|
6
6
|
import chevronRightIcon from '@jetbrains/icons/chevron-right';
|
|
7
|
-
import
|
|
7
|
+
import { Button } from '../button/button.js';
|
|
8
8
|
import ButtonGroup from '../button-group/button-group.js';
|
|
9
9
|
import ButtonToolbar from '../button-toolbar/button-toolbar.js';
|
|
10
10
|
import Select from '../select/select.js';
|
|
@@ -13,8 +13,8 @@ import Link from '../link/link.js';
|
|
|
13
13
|
import Icon from '../icon/icon.js';
|
|
14
14
|
import 'focus-visible';
|
|
15
15
|
import '@jetbrains/icons/chevron-10px';
|
|
16
|
-
import '../global/theme.js';
|
|
17
16
|
import '../link/clickableLink.js';
|
|
17
|
+
import '../global/controls-height.js';
|
|
18
18
|
import '../_helpers/button__classes.js';
|
|
19
19
|
import '../icon/icon__constants.js';
|
|
20
20
|
import 'util-deprecate';
|
|
@@ -23,6 +23,7 @@ import '../icon/icon__svg.js';
|
|
|
23
23
|
import '../button-group/caption.js';
|
|
24
24
|
import '../_helpers/button-group.js';
|
|
25
25
|
import '../_helpers/button-toolbar.js';
|
|
26
|
+
import '@jetbrains/icons/chevron-down';
|
|
26
27
|
import '@jetbrains/icons/close';
|
|
27
28
|
import 'deep-equal';
|
|
28
29
|
import '../dropdown/dropdown.js';
|
|
@@ -76,12 +77,7 @@ import '../global/fuzzy-highlight.js';
|
|
|
76
77
|
import '../select/select__popup.js';
|
|
77
78
|
import '@jetbrains/icons/search';
|
|
78
79
|
import '../loader-inline/loader-inline.js';
|
|
79
|
-
import '../_helpers/
|
|
80
|
-
import '../global/conic-gradient.js';
|
|
81
|
-
import 'conic-gradient';
|
|
82
|
-
import '../global/supports-css.js';
|
|
83
|
-
import '../global/inject-styles.js';
|
|
84
|
-
import '../global/radial-gradient-mask.js';
|
|
80
|
+
import '../_helpers/loader-inline.js';
|
|
85
81
|
import '../shortcuts/shortcuts-hoc.js';
|
|
86
82
|
import '../tags-list/tags-list.js';
|
|
87
83
|
import '../tag/tag.js';
|
|
@@ -89,7 +85,7 @@ import '../caret/caret.js';
|
|
|
89
85
|
import '../text/text.js';
|
|
90
86
|
import '../_helpers/select__filter.js';
|
|
91
87
|
|
|
92
|
-
var modules_1a5f0d42 = {"unit":"8px","pager":"
|
|
88
|
+
var modules_1a5f0d42 = {"unit":"8px","pager":"pager_rui_f590","links":"links_rui_f590","link":"link_rui_f590","linkDisabled":"linkDisabled_rui_f590"};
|
|
93
89
|
|
|
94
90
|
class Pager extends PureComponent {
|
|
95
91
|
constructor() {
|
|
@@ -167,7 +163,7 @@ class Pager extends PureComponent {
|
|
|
167
163
|
}
|
|
168
164
|
|
|
169
165
|
getButton(page, content, key, active) {
|
|
170
|
-
return /*#__PURE__*/React.createElement(
|
|
166
|
+
return /*#__PURE__*/React.createElement(Button, _extends({
|
|
171
167
|
href: this.generateHref(page),
|
|
172
168
|
key: key,
|
|
173
169
|
active: active,
|
|
@@ -311,10 +307,10 @@ class Pager extends PureComponent {
|
|
|
311
307
|
}
|
|
312
308
|
|
|
313
309
|
const lastPageButtonAvailable = end < totalPages && !this.props.openTotal || this.props.openTotal && this.props.canLoadLastPageWithOpenTotal;
|
|
314
|
-
return /*#__PURE__*/React.createElement("div", null, this.getPagerLinks(), /*#__PURE__*/React.createElement(ButtonToolbar, null, start > 1 &&
|
|
310
|
+
return /*#__PURE__*/React.createElement("div", null, this.getPagerLinks(), /*#__PURE__*/React.createElement(ButtonToolbar, null, start > 1 && this.getButton(1, this.props.translations.firstPage), /*#__PURE__*/React.createElement(ButtonGroup, null, start > 1 && this.getButton(start - 1, '...'), buttons, end < totalPages && this.getButton(end + 1, '...'), end === totalPages && this.props.openTotal && /*#__PURE__*/React.createElement(Button, _extends({
|
|
315
311
|
href: this.generateHref(end + 1),
|
|
316
312
|
disabled: this.props.loader
|
|
317
|
-
}, this.getClickProps(this.handleLoadMore(end + 1))), '...')), lastPageButtonAvailable &&
|
|
313
|
+
}, this.getClickProps(this.handleLoadMore(end + 1))), '...')), lastPageButtonAvailable && this.getButton(this.props.openTotal ? -1 : totalPages, this.props.translations.lastPage)), this.getPageSizeSelector());
|
|
318
314
|
}
|
|
319
315
|
|
|
320
316
|
render() {
|
|
@@ -19,8 +19,8 @@ import '../icon/icon__constants.js';
|
|
|
19
19
|
import '../_helpers/icon.js';
|
|
20
20
|
import '../icon/icon__svg.js';
|
|
21
21
|
import '../global/memoize.js';
|
|
22
|
-
import '../global/theme.js';
|
|
23
22
|
import '../link/clickableLink.js';
|
|
23
|
+
import '../global/controls-height.js';
|
|
24
24
|
import '../_helpers/button__classes.js';
|
|
25
25
|
import '../button-group/button-group.js';
|
|
26
26
|
import '../button-group/caption.js';
|
|
@@ -28,6 +28,7 @@ import '../_helpers/button-group.js';
|
|
|
28
28
|
import '../button-toolbar/button-toolbar.js';
|
|
29
29
|
import '../_helpers/button-toolbar.js';
|
|
30
30
|
import '../select/select.js';
|
|
31
|
+
import '@jetbrains/icons/chevron-down';
|
|
31
32
|
import '@jetbrains/icons/close';
|
|
32
33
|
import 'deep-equal';
|
|
33
34
|
import '../dropdown/dropdown.js';
|
|
@@ -81,12 +82,7 @@ import '../global/fuzzy-highlight.js';
|
|
|
81
82
|
import '../select/select__popup.js';
|
|
82
83
|
import '@jetbrains/icons/search';
|
|
83
84
|
import '../loader-inline/loader-inline.js';
|
|
84
|
-
import '../_helpers/
|
|
85
|
-
import '../global/conic-gradient.js';
|
|
86
|
-
import 'conic-gradient';
|
|
87
|
-
import '../global/supports-css.js';
|
|
88
|
-
import '../global/inject-styles.js';
|
|
89
|
-
import '../global/radial-gradient-mask.js';
|
|
85
|
+
import '../_helpers/loader-inline.js';
|
|
90
86
|
import '../shortcuts/shortcuts-hoc.js';
|
|
91
87
|
import '../tags-list/tags-list.js';
|
|
92
88
|
import '../tag/tag.js';
|
|
@@ -27,19 +27,19 @@ import '../_helpers/icon.js';
|
|
|
27
27
|
import '../icon/icon__svg.js';
|
|
28
28
|
import '../global/memoize.js';
|
|
29
29
|
import '../loader-inline/loader-inline.js';
|
|
30
|
-
import '../global/theme.js';
|
|
31
30
|
import '../global/data-tests.js';
|
|
32
|
-
import '../_helpers/
|
|
33
|
-
import '../global/conic-gradient.js';
|
|
34
|
-
import 'conic-gradient';
|
|
35
|
-
import '../global/supports-css.js';
|
|
36
|
-
import '../global/inject-styles.js';
|
|
37
|
-
import '../global/radial-gradient-mask.js';
|
|
31
|
+
import '../_helpers/loader-inline.js';
|
|
38
32
|
import '../global/dom.js';
|
|
39
|
-
import '../
|
|
40
|
-
import '../link/link.js';
|
|
33
|
+
import '../button/button.js';
|
|
41
34
|
import 'focus-visible';
|
|
35
|
+
import '@jetbrains/icons/chevron-10px';
|
|
42
36
|
import '../link/clickableLink.js';
|
|
37
|
+
import '../global/controls-height.js';
|
|
38
|
+
import '../_helpers/button__classes.js';
|
|
39
|
+
import '../_helpers/theme.js';
|
|
40
|
+
import '../popup/popup.target.js';
|
|
41
|
+
import '../alert/container.js';
|
|
42
|
+
import '../link/link.js';
|
|
43
43
|
import '../_helpers/link.js';
|
|
44
44
|
import '../group/group.js';
|
|
45
45
|
import '../_helpers/group.js';
|
package/dist/popup/popup.js
CHANGED
|
@@ -18,7 +18,7 @@ import 'combokeys';
|
|
|
18
18
|
import '../global/sniffer.js';
|
|
19
19
|
import 'sniffr';
|
|
20
20
|
|
|
21
|
-
var modules_2f69e2e2 = {"popup":"
|
|
21
|
+
var modules_2f69e2e2 = {"popup":"popup_rui_c0b0 font_rui_750f","hidden":"hidden_rui_c0b0","showing":"showing_rui_c0b0","attached":"attached_rui_c0b0"};
|
|
22
22
|
|
|
23
23
|
const stop = e => e.stopPropagation();
|
|
24
24
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React, { HTMLAttributes, ReactNode } from 'react';
|
|
2
2
|
export declare const PopupTargetContext: React.Context<string | undefined>;
|
|
3
3
|
export interface PopupTargetProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children'> {
|
|
4
|
+
id: string;
|
|
4
5
|
children: ReactNode | ((target: ReactNode) => ReactNode);
|
|
5
6
|
}
|
|
6
7
|
export declare const PopupTarget: React.ForwardRefExoticComponent<PopupTargetProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import { HTMLAttributes, PureComponent } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
|
-
import Theme from '../global/theme';
|
|
4
3
|
export interface ProgressBarProps extends HTMLAttributes<HTMLElement> {
|
|
5
4
|
max: number;
|
|
6
5
|
value: number;
|
|
7
|
-
theme: Theme;
|
|
8
6
|
label: string;
|
|
9
7
|
global?: boolean | null | undefined;
|
|
10
8
|
}
|
|
@@ -21,7 +19,6 @@ export default class ProgressBar extends PureComponent<ProgressBarProps> {
|
|
|
21
19
|
static toPercent(value: number, max: number): number;
|
|
22
20
|
static propTypes: {
|
|
23
21
|
label: PropTypes.Requireable<string>;
|
|
24
|
-
theme: PropTypes.Requireable<string>;
|
|
25
22
|
/**
|
|
26
23
|
* Sets the ring-progress-bar_global class to position the progress bar on top of the screen.
|
|
27
24
|
* Should be placed directly inside body, will be positioned right below .ring-header
|
|
@@ -50,7 +47,6 @@ export default class ProgressBar extends PureComponent<ProgressBarProps> {
|
|
|
50
47
|
static defaultProps: {
|
|
51
48
|
max: number;
|
|
52
49
|
value: number;
|
|
53
|
-
theme: Theme;
|
|
54
50
|
label: string;
|
|
55
51
|
};
|
|
56
52
|
progressbarWrapper?: (HTMLElement | null);
|
|
@@ -2,9 +2,8 @@ import { _ as _defineProperty, a as _extends } from '../_helpers/_rollupPluginBa
|
|
|
2
2
|
import React, { PureComponent } from 'react';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import classNames from 'classnames';
|
|
5
|
-
import Theme from '../global/theme.js';
|
|
6
5
|
|
|
7
|
-
var modules_fb7af416 = {"
|
|
6
|
+
var modules_fb7af416 = {"dark":"dark_rui_4ecf","unit":"8px","progressBar":"progressBar_rui_a2aa","globalMode":"globalMode_rui_a2aa","line":"line_rui_a2aa","progress-bar":"progressBar_rui_a2aa"};
|
|
8
7
|
|
|
9
8
|
/**
|
|
10
9
|
* @name Progress Bar
|
|
@@ -41,7 +40,6 @@ class ProgressBar extends PureComponent {
|
|
|
41
40
|
|
|
42
41
|
render() {
|
|
43
42
|
const {
|
|
44
|
-
theme,
|
|
45
43
|
className,
|
|
46
44
|
global,
|
|
47
45
|
max,
|
|
@@ -51,8 +49,6 @@ class ProgressBar extends PureComponent {
|
|
|
51
49
|
} = this.props;
|
|
52
50
|
const width = value ? `${ProgressBar.toPercent(value, max)}%` : undefined;
|
|
53
51
|
const classes = classNames(modules_fb7af416.progressBar, className, {
|
|
54
|
-
[modules_fb7af416.light]: theme === Theme.LIGHT,
|
|
55
|
-
[modules_fb7af416.dark]: theme === Theme.DARK,
|
|
56
52
|
[modules_fb7af416.globalMode]: global
|
|
57
53
|
});
|
|
58
54
|
return /*#__PURE__*/React.createElement("div", _extends({}, otherProps, {
|
|
@@ -76,7 +72,6 @@ class ProgressBar extends PureComponent {
|
|
|
76
72
|
|
|
77
73
|
_defineProperty(ProgressBar, "propTypes", {
|
|
78
74
|
label: PropTypes.string,
|
|
79
|
-
theme: PropTypes.string,
|
|
80
75
|
|
|
81
76
|
/**
|
|
82
77
|
* Sets the ring-progress-bar_global class to position the progress bar on top of the screen.
|
|
@@ -110,7 +105,6 @@ _defineProperty(ProgressBar, "propTypes", {
|
|
|
110
105
|
_defineProperty(ProgressBar, "defaultProps", {
|
|
111
106
|
max: 1.0,
|
|
112
107
|
value: 0,
|
|
113
|
-
theme: Theme.LIGHT,
|
|
114
108
|
label: 'Progress'
|
|
115
109
|
});
|
|
116
110
|
|
|
@@ -5,12 +5,12 @@ import { applyMethodToClasses } from '../global/dom.js';
|
|
|
5
5
|
import RingAngularComponent from '../global/ring-angular-component.js';
|
|
6
6
|
import { LOADER_BACKGROUND_SELECTOR } from '../button-ng/button-ng.js';
|
|
7
7
|
import 'classnames';
|
|
8
|
-
import '../global/theme.js';
|
|
9
|
-
import 'react';
|
|
10
8
|
import '../icon-ng/icon-ng.js';
|
|
11
9
|
import '../icon/icon__constants.js';
|
|
12
10
|
import '../template-ng/template-ng.js';
|
|
13
11
|
import '../_helpers/icon.js';
|
|
12
|
+
import '../global/controls-height.js';
|
|
13
|
+
import 'react';
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
16
|
* @name Promised Click Ng
|
|
@@ -2,7 +2,6 @@ import React, { Component, ComponentRef, ReactNode, SyntheticEvent } from 'react
|
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import Caret, { Position } from '../caret/caret';
|
|
4
4
|
import PopupMenu from '../popup-menu/popup-menu';
|
|
5
|
-
import Theme from '../global/theme';
|
|
6
5
|
import Button from '../button/button';
|
|
7
6
|
import { ShortcutsMap } from '../shortcuts/core';
|
|
8
7
|
import { QueryAssistSuggestion, SuggestionItem } from './query-assist__suggestions';
|
|
@@ -34,7 +33,6 @@ export interface QueryAssistRequestParams {
|
|
|
34
33
|
omitSuggestions?: boolean;
|
|
35
34
|
}
|
|
36
35
|
export interface QueryAssistProps {
|
|
37
|
-
theme: Theme;
|
|
38
36
|
onApply: (change: QueryAssistChange) => void;
|
|
39
37
|
onChange: (change: QueryAssistChange) => void;
|
|
40
38
|
onApplySuggestion: (suggestion: QueryAssistSuggestion, change: QueryAssistChange) => void;
|
|
@@ -125,7 +123,6 @@ interface HistoryEntry {
|
|
|
125
123
|
*/
|
|
126
124
|
export default class QueryAssist extends Component<QueryAssistProps> {
|
|
127
125
|
static propTypes: {
|
|
128
|
-
theme: PropTypes.Requireable<string>;
|
|
129
126
|
/**
|
|
130
127
|
* Open suggestions popup during the initial render
|
|
131
128
|
*/
|
|
@@ -212,7 +209,6 @@ export default class QueryAssist extends Component<QueryAssistProps> {
|
|
|
212
209
|
'data-test': PropTypes.Requireable<string>;
|
|
213
210
|
};
|
|
214
211
|
static defaultProps: {
|
|
215
|
-
theme: Theme;
|
|
216
212
|
onApply: typeof noop;
|
|
217
213
|
onChange: typeof noop;
|
|
218
214
|
onApplySuggestion: typeof noop;
|
|
@@ -230,7 +226,6 @@ export default class QueryAssist extends Component<QueryAssistProps> {
|
|
|
230
226
|
shouldComponentUpdate(props: QueryAssistProps, state: QueryAssistState): boolean;
|
|
231
227
|
componentDidUpdate(prevProps: QueryAssistProps): void;
|
|
232
228
|
static ngModelStateField: string;
|
|
233
|
-
static Theme: typeof Theme;
|
|
234
229
|
immediateState: QueryAssistChange;
|
|
235
230
|
requestData?: (afterCompletion?: boolean) => void;
|
|
236
231
|
ngModelStateField: string;
|
|
@@ -12,11 +12,10 @@ import { preventDefault, getRect } from '../global/dom.js';
|
|
|
12
12
|
import Caret from '../caret/caret.js';
|
|
13
13
|
import ContentEditable from '../contenteditable/contenteditable.js';
|
|
14
14
|
import PopupMenu from '../popup-menu/popup-menu.js';
|
|
15
|
-
import
|
|
15
|
+
import LoaderInline from '../loader-inline/loader-inline.js';
|
|
16
16
|
import Shortcuts from '../shortcuts/shortcuts.js';
|
|
17
17
|
import rerenderHOC from '../global/rerender-hoc.js';
|
|
18
|
-
import
|
|
19
|
-
import ThemedButton from '../button/button.js';
|
|
18
|
+
import { Button } from '../button/button.js';
|
|
20
19
|
import { Q as QueryAssistSuggestions, m as modules_da7ab055 } from '../_helpers/query-assist__suggestions.js';
|
|
21
20
|
import 'react-dom/server';
|
|
22
21
|
import '../popup/popup.js';
|
|
@@ -63,13 +62,9 @@ import '../list/list__title.js';
|
|
|
63
62
|
import '../list/list__separator.js';
|
|
64
63
|
import '../list/list__hint.js';
|
|
65
64
|
import '../list/consts.js';
|
|
66
|
-
import '../_helpers/
|
|
67
|
-
import '../global/conic-gradient.js';
|
|
68
|
-
import 'conic-gradient';
|
|
69
|
-
import '../global/supports-css.js';
|
|
70
|
-
import '../global/inject-styles.js';
|
|
71
|
-
import '../global/radial-gradient-mask.js';
|
|
65
|
+
import '../_helpers/loader-inline.js';
|
|
72
66
|
import '@jetbrains/icons/chevron-10px';
|
|
67
|
+
import '../global/controls-height.js';
|
|
73
68
|
import '../_helpers/button__classes.js';
|
|
74
69
|
|
|
75
70
|
const POPUP_COMPENSATION = PopupMenu.ListProps.Dimension.ITEM_PADDING + PopupMenu.PopupProps.Dimension.BORDER_WIDTH;
|
|
@@ -911,7 +906,7 @@ class QueryAssist extends Component {
|
|
|
911
906
|
const renderClear = this.props.clear && !!this.state.query;
|
|
912
907
|
|
|
913
908
|
if (renderClear) {
|
|
914
|
-
actions.push( /*#__PURE__*/React.createElement(
|
|
909
|
+
actions.push( /*#__PURE__*/React.createElement(Button, {
|
|
915
910
|
icon: closeIcon,
|
|
916
911
|
key: 'clearAction',
|
|
917
912
|
className: modules_da7ab055.icon,
|
|
@@ -928,7 +923,6 @@ class QueryAssist extends Component {
|
|
|
928
923
|
|
|
929
924
|
render() {
|
|
930
925
|
const {
|
|
931
|
-
theme,
|
|
932
926
|
glass,
|
|
933
927
|
'data-test': dataTest,
|
|
934
928
|
className,
|
|
@@ -937,7 +931,6 @@ class QueryAssist extends Component {
|
|
|
937
931
|
const renderPlaceholder = !!this.props.placeholder && this.state.placeholderEnabled;
|
|
938
932
|
const renderLoader = this.props.loader !== false && this.state.loading;
|
|
939
933
|
const renderGlass = glass && !renderLoader;
|
|
940
|
-
const renderUnderline = theme === Theme.DARK;
|
|
941
934
|
const actions = this.renderActions();
|
|
942
935
|
const inputClasses = classNames({
|
|
943
936
|
[`${modules_da7ab055.input} ring-js-shortcuts`]: true,
|
|
@@ -948,13 +941,13 @@ class QueryAssist extends Component {
|
|
|
948
941
|
});
|
|
949
942
|
return /*#__PURE__*/React.createElement("div", {
|
|
950
943
|
"data-test": joinDataTestAttributes('ring-query-assist', dataTest),
|
|
951
|
-
className: classNames(className, modules_da7ab055.queryAssist
|
|
944
|
+
className: classNames(className, modules_da7ab055.queryAssist),
|
|
952
945
|
role: "presentation",
|
|
953
946
|
ref: this.nodeRef
|
|
954
947
|
}, this.state.shortcuts && /*#__PURE__*/React.createElement(Shortcuts, {
|
|
955
948
|
map: this.shortcutsMap,
|
|
956
949
|
scope: this.shortcutsScope
|
|
957
|
-
}), renderGlass && /*#__PURE__*/React.createElement(
|
|
950
|
+
}), renderGlass && /*#__PURE__*/React.createElement(Button, {
|
|
958
951
|
icon: searchIcon,
|
|
959
952
|
className: modules_da7ab055.icon,
|
|
960
953
|
iconClassName: modules_da7ab055.iconInner,
|
|
@@ -967,9 +960,7 @@ class QueryAssist extends Component {
|
|
|
967
960
|
[modules_da7ab055.loaderOnTheRight]: !glass
|
|
968
961
|
}),
|
|
969
962
|
ref: this.loaderRef
|
|
970
|
-
}, /*#__PURE__*/React.createElement(
|
|
971
|
-
theme: theme
|
|
972
|
-
})), /*#__PURE__*/React.createElement(ContentEditable, {
|
|
963
|
+
}, /*#__PURE__*/React.createElement(LoaderInline, null)), /*#__PURE__*/React.createElement(ContentEditable, {
|
|
973
964
|
"aria-label": this.props.translations.searchTitle,
|
|
974
965
|
className: inputClasses,
|
|
975
966
|
"data-test": "ring-query-assist-input",
|
|
@@ -998,9 +989,7 @@ class QueryAssist extends Component {
|
|
|
998
989
|
ref: this.placeholderRef,
|
|
999
990
|
onClick: this.handleCaretMove,
|
|
1000
991
|
"data-test": "query-assist-placeholder"
|
|
1001
|
-
}, this.props.placeholder),
|
|
1002
|
-
className: modules_da7ab055.focusUnderline
|
|
1003
|
-
}), actions && /*#__PURE__*/React.createElement("div", {
|
|
992
|
+
}, this.props.placeholder), actions && /*#__PURE__*/React.createElement("div", {
|
|
1004
993
|
"data-test": "ring-query-assist-actions",
|
|
1005
994
|
className: modules_da7ab055.actions
|
|
1006
995
|
}, actions), /*#__PURE__*/React.createElement(PopupMenu, {
|
|
@@ -1010,7 +999,7 @@ class QueryAssist extends Component {
|
|
|
1010
999
|
anchorElement: this.node,
|
|
1011
1000
|
keepMounted: true,
|
|
1012
1001
|
attached: true,
|
|
1013
|
-
className:
|
|
1002
|
+
className: this.props.popupClassName,
|
|
1014
1003
|
directions: [PopupMenu.PopupProps.Directions.BOTTOM_RIGHT],
|
|
1015
1004
|
data: useCustomItemRender ? this.state.suggestions : this.renderSuggestions(),
|
|
1016
1005
|
"data-test": "ring-query-assist-popup",
|
|
@@ -1027,8 +1016,6 @@ class QueryAssist extends Component {
|
|
|
1027
1016
|
}
|
|
1028
1017
|
|
|
1029
1018
|
_defineProperty(QueryAssist, "propTypes", {
|
|
1030
|
-
theme: PropTypes.string,
|
|
1031
|
-
|
|
1032
1019
|
/**
|
|
1033
1020
|
* Open suggestions popup during the initial render
|
|
1034
1021
|
*/
|
|
@@ -1135,7 +1122,6 @@ _defineProperty(QueryAssist, "propTypes", {
|
|
|
1135
1122
|
});
|
|
1136
1123
|
|
|
1137
1124
|
_defineProperty(QueryAssist, "defaultProps", {
|
|
1138
|
-
theme: Theme.LIGHT,
|
|
1139
1125
|
onApply: noop,
|
|
1140
1126
|
onChange: noop,
|
|
1141
1127
|
onApplySuggestion: noop,
|
|
@@ -1149,8 +1135,6 @@ _defineProperty(QueryAssist, "defaultProps", {
|
|
|
1149
1135
|
|
|
1150
1136
|
_defineProperty(QueryAssist, "ngModelStateField", ngModelStateField);
|
|
1151
1137
|
|
|
1152
|
-
_defineProperty(QueryAssist, "Theme", Theme);
|
|
1153
|
-
|
|
1154
1138
|
const RerenderableQueryAssist = rerenderHOC(QueryAssist);
|
|
1155
1139
|
|
|
1156
1140
|
export { RerenderableQueryAssist, QueryAssist as default };
|
|
@@ -64,16 +64,11 @@ import '../list/list__separator.js';
|
|
|
64
64
|
import '../list/list__hint.js';
|
|
65
65
|
import '../list/consts.js';
|
|
66
66
|
import '../loader-inline/loader-inline.js';
|
|
67
|
-
import '../
|
|
68
|
-
import '../_helpers/inject-styles.js';
|
|
69
|
-
import '../global/conic-gradient.js';
|
|
70
|
-
import 'conic-gradient';
|
|
71
|
-
import '../global/supports-css.js';
|
|
72
|
-
import '../global/inject-styles.js';
|
|
73
|
-
import '../global/radial-gradient-mask.js';
|
|
67
|
+
import '../_helpers/loader-inline.js';
|
|
74
68
|
import '../global/rerender-hoc.js';
|
|
75
69
|
import '../button/button.js';
|
|
76
70
|
import '@jetbrains/icons/chevron-10px';
|
|
71
|
+
import '../global/controls-height.js';
|
|
77
72
|
import '../_helpers/button__classes.js';
|
|
78
73
|
import '../_helpers/query-assist__suggestions.js';
|
|
79
74
|
|
|
@@ -11,16 +11,8 @@ import '../_helpers/_rollupPluginBabelHelpers.js';
|
|
|
11
11
|
import 'react';
|
|
12
12
|
import 'classnames';
|
|
13
13
|
import 'prop-types';
|
|
14
|
-
import '../global/theme.js';
|
|
15
14
|
import '../global/data-tests.js';
|
|
16
|
-
import '../_helpers/
|
|
17
|
-
import '../global/conic-gradient.js';
|
|
18
|
-
import 'conic-gradient';
|
|
19
|
-
import '../global/memoize.js';
|
|
20
|
-
import '../global/supports-css.js';
|
|
21
|
-
import '../global/inject-styles.js';
|
|
22
|
-
import '../global/radial-gradient-mask.js';
|
|
23
|
-
import '../global/get-uid.js';
|
|
15
|
+
import '../_helpers/loader-inline.js';
|
|
24
16
|
import '../_helpers/button-set.js';
|
|
25
17
|
import '@jetbrains/angular-elastic';
|
|
26
18
|
import '../global/dom.js';
|
|
@@ -34,6 +26,7 @@ import '../icon/icon__constants.js';
|
|
|
34
26
|
import '../template-ng/template-ng.js';
|
|
35
27
|
import '../_helpers/icon.js';
|
|
36
28
|
import '../_helpers/button__classes.js';
|
|
29
|
+
import '../global/controls-height.js';
|
|
37
30
|
|
|
38
31
|
const angularModule = angular.module('Ring.save-field', [MessageBundle,
|
|
39
32
|
/**
|
package/dist/select/select.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React, { ButtonHTMLAttributes, Component, CSSProperties, HTMLAttributes, ReactNode, RefCallback, SyntheticEvent } from 'react';
|
|
2
2
|
import { SelectHandlerParams } from '../list/list';
|
|
3
3
|
import { Size } from '../input/input';
|
|
4
|
-
import Theme from '../global/theme';
|
|
5
4
|
import { ListDataItem } from '../list/consts';
|
|
6
5
|
import { Directions } from '../popup/popup.consts';
|
|
6
|
+
import { ControlsHeight } from '../global/controls-height';
|
|
7
7
|
import SelectPopup, { Filter, FilterFn, Multiple, Tags } from './select__popup';
|
|
8
8
|
/**
|
|
9
9
|
* @name Select
|
|
@@ -17,7 +17,6 @@ declare enum Type {
|
|
|
17
17
|
INPUT = "INPUT",
|
|
18
18
|
CUSTOM = "CUSTOM",
|
|
19
19
|
INLINE = "INLINE",
|
|
20
|
-
MATERIAL = "MATERIAL",
|
|
21
20
|
INPUT_WITHOUT_CONTROLS = "INPUT_WITHOUT_CONTROLS"
|
|
22
21
|
}
|
|
23
22
|
declare type SelectItemData<T> = T & {
|
|
@@ -78,6 +77,7 @@ export interface BaseSelectProps<T = unknown> {
|
|
|
78
77
|
onDone: () => void;
|
|
79
78
|
onReset: () => void;
|
|
80
79
|
dir: 'ltr' | 'rtl';
|
|
80
|
+
height?: ControlsHeight | undefined;
|
|
81
81
|
targetElement?: HTMLElement | null | undefined;
|
|
82
82
|
className?: string | null | undefined;
|
|
83
83
|
buttonClassName?: string | null | undefined;
|
|
@@ -93,7 +93,6 @@ export interface BaseSelectProps<T = unknown> {
|
|
|
93
93
|
hint?: ReactNode;
|
|
94
94
|
add?: Add | null | undefined;
|
|
95
95
|
compact?: boolean | null | undefined;
|
|
96
|
-
theme?: string | null | undefined;
|
|
97
96
|
customAnchor?: ((props: CustomAnchorProps) => ReactNode) | null | undefined;
|
|
98
97
|
disableMoveOverflow?: boolean | null | undefined;
|
|
99
98
|
disableScrollToActive?: boolean | null | undefined;
|
|
@@ -188,9 +187,9 @@ export default class Select<T = unknown> extends Component<SelectProps<T>, Selec
|
|
|
188
187
|
static getDerivedStateFromProps<T = unknown>(nextProps: SelectProps<T>, prevState: SelectState<T>): Partial<SelectState<T>>;
|
|
189
188
|
state: SelectState<T>;
|
|
190
189
|
componentDidUpdate(prevProps: SelectProps<T>, prevState: SelectState<T>): void;
|
|
190
|
+
static contextType: React.Context<ControlsHeight>;
|
|
191
191
|
static Type: typeof Type;
|
|
192
192
|
static Size: typeof Size;
|
|
193
|
-
static Theme: typeof Theme;
|
|
194
193
|
id: string;
|
|
195
194
|
shortcutsScope: string;
|
|
196
195
|
listId: string;
|
|
@@ -221,6 +220,7 @@ export default class Select<T = unknown> extends Component<SelectProps<T>, Selec
|
|
|
221
220
|
filterValue(setValue: string): void;
|
|
222
221
|
isInputMode(): boolean;
|
|
223
222
|
_clickHandler: () => void;
|
|
223
|
+
_openPopupIfClosed: () => void;
|
|
224
224
|
_filterChangeHandler: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
225
225
|
private _setFilter;
|
|
226
226
|
private _rebuildMultipleMap;
|
|
@@ -235,8 +235,6 @@ export default class Select<T = unknown> extends Component<SelectProps<T>, Selec
|
|
|
235
235
|
_getSelectedString(): string | null;
|
|
236
236
|
private _getIcons;
|
|
237
237
|
private _getAvatar;
|
|
238
|
-
button?: HTMLElement | null;
|
|
239
|
-
buttonRef: (el: HTMLElement | null) => void;
|
|
240
238
|
filter?: HTMLInputElement | null;
|
|
241
239
|
filterRef: (el: HTMLInputElement | null) => void;
|
|
242
240
|
getShortcutsMap(): {
|