@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
@@ -1,8 +1,8 @@
|
|
1
|
-
import
|
1
|
+
import { PureComponent, HTMLAttributes } from 'react';
|
2
2
|
import PropTypes from 'prop-types';
|
3
3
|
export default class Caption extends PureComponent<HTMLAttributes<HTMLElement>> {
|
4
4
|
static propTypes: {
|
5
5
|
className: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
6
6
|
};
|
7
|
-
render():
|
7
|
+
render(): import("react").JSX.Element;
|
8
8
|
}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import
|
1
|
+
import { PureComponent, HTMLAttributes } from 'react';
|
2
2
|
import PropTypes from 'prop-types';
|
3
3
|
export interface ButtonSetProps extends HTMLAttributes<HTMLElement> {
|
4
4
|
'data-test'?: string | null | undefined;
|
@@ -12,5 +12,5 @@ export default class ButtonSet extends PureComponent<ButtonSetProps> {
|
|
12
12
|
className: PropTypes.Requireable<string>;
|
13
13
|
'data-test': PropTypes.Requireable<string>;
|
14
14
|
};
|
15
|
-
render():
|
15
|
+
render(): import("react").JSX.Element;
|
16
16
|
}
|
@@ -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 } 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_fd849143 = {"button":"button_rui_6ad6","light":"light_rui_2ac4","buttonSet":"buttonSet_rui_97ff"};
|
12
13
|
|
13
14
|
var _excluded = ["className", "data-test", "children"];
|
14
|
-
/**
|
15
|
-
* @name Button Set
|
16
|
-
*/
|
17
15
|
var ButtonSet = /*#__PURE__*/function (_PureComponent) {
|
18
16
|
function ButtonSet() {
|
19
17
|
_classCallCheck(this, ButtonSet);
|
@@ -29,10 +27,11 @@ var ButtonSet = /*#__PURE__*/function (_PureComponent) {
|
|
29
27
|
children = _this$props.children,
|
30
28
|
restProps = _objectWithoutProperties(_this$props, _excluded);
|
31
29
|
var classes = classNames(modules_fd849143.buttonSet, className);
|
32
|
-
return /*#__PURE__*/
|
30
|
+
return /*#__PURE__*/jsx("div", _objectSpread2(_objectSpread2({}, restProps), {}, {
|
33
31
|
"data-test": joinDataTestAttributes('ring-button-set', dataTest),
|
34
|
-
className: classes
|
35
|
-
|
32
|
+
className: classes,
|
33
|
+
children: children
|
34
|
+
}));
|
36
35
|
}
|
37
36
|
}]);
|
38
37
|
}(PureComponent);
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import
|
1
|
+
import { PureComponent, HTMLAttributes } from 'react';
|
2
2
|
import PropTypes from 'prop-types';
|
3
3
|
export interface ButtonToolbarProps extends HTMLAttributes<HTMLElement> {
|
4
4
|
'data-test'?: string | null | undefined;
|
@@ -12,5 +12,5 @@ export default class ButtonToolbar extends PureComponent<ButtonToolbarProps> {
|
|
12
12
|
className: PropTypes.Requireable<string>;
|
13
13
|
'data-test': PropTypes.Requireable<string>;
|
14
14
|
};
|
15
|
-
render():
|
15
|
+
render(): import("react").JSX.Element;
|
16
16
|
}
|
@@ -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 PropTypes from 'prop-types';
|
4
4
|
import classNames from 'classnames';
|
5
5
|
import joinDataTestAttributes from '../global/data-tests.js';
|
6
|
+
import { jsx } 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_34154ec0 = {"button":"button_rui_6ad6","light":"light_rui_2ac4","buttonToolbar":"buttonToolbar_rui_5c90","buttonGroup":"buttonGroup_rui_5c90","split":"split_rui_5c90"};
|
12
13
|
|
13
14
|
var _excluded = ["className", "data-test"];
|
14
|
-
/**
|
15
|
-
* @name Button Toolbar
|
16
|
-
*/
|
17
15
|
var ButtonToolbar = /*#__PURE__*/function (_PureComponent) {
|
18
16
|
function ButtonToolbar() {
|
19
17
|
_classCallCheck(this, ButtonToolbar);
|
@@ -28,7 +26,7 @@ var ButtonToolbar = /*#__PURE__*/function (_PureComponent) {
|
|
28
26
|
dataTest = _this$props['data-test'],
|
29
27
|
restProps = _objectWithoutProperties(_this$props, _excluded);
|
30
28
|
var classes = classNames(modules_34154ec0.buttonToolbar, className);
|
31
|
-
return /*#__PURE__*/
|
29
|
+
return /*#__PURE__*/jsx("div", _objectSpread2(_objectSpread2({}, restProps), {}, {
|
32
30
|
"data-test": joinDataTestAttributes('ring-button-toolbar', dataTest),
|
33
31
|
className: classes
|
34
32
|
}));
|
@@ -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.object.to-string.js';
|
3
3
|
import 'core-js/modules/es.regexp.exec.js';
|
4
4
|
import 'core-js/modules/es.regexp.to-string.js';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import
|
1
|
+
import { PureComponent, InputHTMLAttributes, CSSProperties, Ref, ReactNode } from 'react';
|
2
2
|
import PropTypes from 'prop-types';
|
3
3
|
export interface CheckboxProps extends InputHTMLAttributes<HTMLInputElement> {
|
4
4
|
label?: string | null | undefined;
|
@@ -8,6 +8,7 @@ export interface CheckboxProps extends InputHTMLAttributes<HTMLInputElement> {
|
|
8
8
|
labelClassName?: string | null | undefined;
|
9
9
|
indeterminate: boolean;
|
10
10
|
inputRef?: Ref<HTMLInputElement>;
|
11
|
+
help?: ReactNode;
|
11
12
|
}
|
12
13
|
/**
|
13
14
|
* @name Checkbox
|
@@ -41,5 +42,5 @@ export default class Checkbox extends PureComponent<CheckboxProps> {
|
|
41
42
|
componentDidUpdate(prevProps: CheckboxProps): void;
|
42
43
|
input?: HTMLInputElement | null;
|
43
44
|
inputRef: (el: HTMLInputElement | null) => void;
|
44
|
-
render():
|
45
|
+
render(): import("react").JSX.Element;
|
45
46
|
}
|
@@ -1,6 +1,6 @@
|
|
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 classNames from 'classnames';
|
6
6
|
import checkmarkIcon from '@jetbrains/icons/checkmark-12px';
|
@@ -8,6 +8,8 @@ import minusIcon from '@jetbrains/icons/remove-12px';
|
|
8
8
|
import Icon from '../icon/icon.js';
|
9
9
|
import { refObject } from '../global/prop-types.js';
|
10
10
|
import composeRefs from '../global/composeRefs.js';
|
11
|
+
import ControlHelp from '../control-help/control-help.js';
|
12
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
11
13
|
import 'util-deprecate';
|
12
14
|
import '../icon/icon__constants.js';
|
13
15
|
import '../_helpers/icon__svg.js';
|
@@ -22,15 +24,9 @@ import 'core-js/modules/es.weak-map.js';
|
|
22
24
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
23
25
|
import 'core-js/modules/web.dom-collections.for-each.js';
|
24
26
|
|
25
|
-
var modules_3199090e = {"checkboxSize":"14px","light":"light_rui_2ac4","checkbox":"checkbox_rui_219d","cell":"cell_rui_219d","icon":"icon_rui_219d","check":"check_rui_219d icon_rui_219d","minus":"minus_rui_219d icon_rui_219d","input":"input_rui_219d","focus":"focus_rui_219d","label":"label_rui_219d"};
|
27
|
+
var modules_3199090e = {"checkboxSize":"14px","light":"light_rui_2ac4","checkbox":"checkbox_rui_219d","cell":"cell_rui_219d","icon":"icon_rui_219d","check":"check_rui_219d icon_rui_219d","minus":"minus_rui_219d icon_rui_219d","input":"input_rui_219d","cellWrapper":"cellWrapper_rui_219d","focus":"focus_rui_219d","label":"label_rui_219d"};
|
26
28
|
|
27
|
-
var _excluded = ["children", "label", "className", "containerClassName", "containerStyle", "cellClassName", "labelClassName", "indeterminate", "inputRef"];
|
28
|
-
/**
|
29
|
-
* @name Checkbox
|
30
|
-
*/
|
31
|
-
/**
|
32
|
-
* Displays a checkbox.
|
33
|
-
*/
|
29
|
+
var _excluded = ["children", "label", "className", "containerClassName", "containerStyle", "cellClassName", "labelClassName", "indeterminate", "inputRef", "help"];
|
34
30
|
var Checkbox = /*#__PURE__*/function (_PureComponent) {
|
35
31
|
function Checkbox() {
|
36
32
|
var _this;
|
@@ -77,31 +73,40 @@ var Checkbox = /*#__PURE__*/function (_PureComponent) {
|
|
77
73
|
labelClassName = _this$props.labelClassName;
|
78
74
|
_this$props.indeterminate;
|
79
75
|
var inputRef = _this$props.inputRef,
|
76
|
+
help = _this$props.help,
|
80
77
|
restProps = _objectWithoutProperties(_this$props, _excluded);
|
81
78
|
var classes = classNames(modules_3199090e.input, className);
|
82
79
|
var containerClasses = classNames(modules_3199090e.checkbox, containerClassName);
|
83
80
|
var cellClasses = classNames(modules_3199090e.cell, cellClassName);
|
84
81
|
var labelClasses = classNames(modules_3199090e.label, labelClassName);
|
85
|
-
return /*#__PURE__*/
|
82
|
+
return /*#__PURE__*/jsxs("label", {
|
86
83
|
className: containerClasses,
|
87
84
|
style: containerStyle,
|
88
|
-
"data-test": "ring-checkbox"
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
85
|
+
"data-test": "ring-checkbox",
|
86
|
+
children: [/*#__PURE__*/jsx("input", _objectSpread2(_objectSpread2({}, restProps), {}, {
|
87
|
+
"data-checked": restProps.checked,
|
88
|
+
ref: composeRefs(this.inputRef, inputRef),
|
89
|
+
type: "checkbox",
|
90
|
+
className: classes
|
91
|
+
})), /*#__PURE__*/jsx("div", {
|
92
|
+
className: modules_3199090e.cellWrapper,
|
93
|
+
children: /*#__PURE__*/jsxs("span", {
|
94
|
+
className: cellClasses,
|
95
|
+
children: [/*#__PURE__*/jsx(Icon, {
|
96
|
+
glyph: checkmarkIcon,
|
97
|
+
className: modules_3199090e.check
|
98
|
+
}), /*#__PURE__*/jsx(Icon, {
|
99
|
+
glyph: minusIcon,
|
100
|
+
className: modules_3199090e.minus
|
101
|
+
})]
|
102
|
+
})
|
103
|
+
}), /*#__PURE__*/jsxs("span", {
|
104
|
+
className: labelClasses,
|
105
|
+
children: [label || children, help && /*#__PURE__*/jsx(ControlHelp, {
|
106
|
+
children: help
|
107
|
+
})]
|
108
|
+
})]
|
109
|
+
});
|
105
110
|
}
|
106
111
|
}]);
|
107
112
|
}(PureComponent);
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import { g as _asyncToGenerator, h as _regeneratorRuntime } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
2
|
import 'core-js/modules/es.object.to-string.js';
|
3
3
|
import 'core-js/modules/es.promise.js';
|
4
4
|
import alertService from '../alert-service/alert-service.js';
|
@@ -6,12 +6,12 @@ import { copyTextToClipboard, copyHTMLToClipboard } from './clipboard-fallback.j
|
|
6
6
|
import 'core-js/modules/es.array.concat.js';
|
7
7
|
import 'core-js/modules/es.array.filter.js';
|
8
8
|
import 'core-js/modules/es.array.map.js';
|
9
|
-
import 'react';
|
10
9
|
import 'react-dom/client';
|
11
10
|
import '../global/get-uid.js';
|
12
11
|
import 'core-js/modules/es.regexp.to-string.js';
|
13
12
|
import '../alert/alert.js';
|
14
13
|
import 'core-js/modules/es.object.values.js';
|
14
|
+
import 'react';
|
15
15
|
import 'classnames';
|
16
16
|
import 'prop-types';
|
17
17
|
import '@jetbrains/icons/exception';
|
@@ -30,6 +30,7 @@ import 'core-js/modules/es.array.iterator.js';
|
|
30
30
|
import 'core-js/modules/es.map.js';
|
31
31
|
import 'core-js/modules/es.weak-map.js';
|
32
32
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
33
|
+
import 'react/jsx-runtime';
|
33
34
|
import '../loader-inline/loader-inline.js';
|
34
35
|
import '../global/data-tests.js';
|
35
36
|
import 'core-js/modules/es.array.reduce.js';
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/// <reference types="highlight.js" />
|
2
|
-
import
|
2
|
+
import { PureComponent, Ref } from 'react';
|
3
3
|
import PropTypes from 'prop-types';
|
4
4
|
import highlight from 'highlight.js/lib/core';
|
5
5
|
declare function noop(): void;
|
@@ -37,8 +37,8 @@ export default class Code extends PureComponent<CodeProps> {
|
|
37
37
|
code?: HTMLElement | null;
|
38
38
|
highlight(): Promise<void>;
|
39
39
|
get codeRef(): HTMLElement | null | undefined;
|
40
|
-
get initCodeRef():
|
41
|
-
render():
|
40
|
+
get initCodeRef(): import("react").RefObject<HTMLElement> | ((ref: HTMLElement | null) => void);
|
41
|
+
render(): import("react").JSX.Element;
|
42
42
|
}
|
43
43
|
declare const code: (strings: TemplateStringsArray, ...interpolations: unknown[]) => void;
|
44
44
|
export { code, highlight };
|
package/components/code/code.js
CHANGED
@@ -1,8 +1,8 @@
|
|
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.object.to-string.js';
|
4
4
|
import 'core-js/modules/es.promise.js';
|
5
|
-
import
|
5
|
+
import { PureComponent } from 'react';
|
6
6
|
import PropTypes from 'prop-types';
|
7
7
|
import classNames from 'classnames';
|
8
8
|
import _highlight from 'highlight.js/lib/core';
|
@@ -10,6 +10,7 @@ export { default as highlight } from 'highlight.js/lib/core';
|
|
10
10
|
import normalizeIndent from '../global/normalize-indent.js';
|
11
11
|
import trivialTemplateTag from '../global/trivial-template-tag.js';
|
12
12
|
import memoize from '../global/memoize.js';
|
13
|
+
import { jsx } from 'react/jsx-runtime';
|
13
14
|
import 'core-js/modules/es.array.filter.js';
|
14
15
|
import 'core-js/modules/es.array.map.js';
|
15
16
|
import 'core-js/modules/es.array.slice.js';
|
@@ -152,15 +153,17 @@ var Code = /*#__PURE__*/function (_PureComponent) {
|
|
152
153
|
[modules_66c414ea.inline]: inline,
|
153
154
|
[modules_66c414ea.softWrap]: softWrap
|
154
155
|
});
|
155
|
-
return /*#__PURE__*/
|
156
|
+
return /*#__PURE__*/jsx(Tag, {
|
156
157
|
className: classes,
|
157
|
-
"data-test": "ring-code"
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
158
|
+
"data-test": "ring-code",
|
159
|
+
children: /*#__PURE__*/jsx("code", {
|
160
|
+
// should be focusable because it can be scrollable
|
161
|
+
tabIndex: inline ? -1 : 0,
|
162
|
+
ref: this.initCodeRef,
|
163
|
+
className: modules_39cf09e8.highlightContainer,
|
164
|
+
children: normalizeIndent(code)
|
165
|
+
})
|
166
|
+
});
|
164
167
|
}
|
165
168
|
}]);
|
166
169
|
}(PureComponent);
|
@@ -181,7 +184,7 @@ _defineProperty(Code, "defaultProps", {
|
|
181
184
|
replacer: noop
|
182
185
|
});
|
183
186
|
var code = trivialTemplateTag(function (source) {
|
184
|
-
return /*#__PURE__*/
|
187
|
+
return /*#__PURE__*/jsx(Code, {
|
185
188
|
code: source
|
186
189
|
});
|
187
190
|
});
|
@@ -1,11 +1,12 @@
|
|
1
|
-
import {
|
2
|
-
import
|
1
|
+
import { i as _slicedToArray } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
|
+
import { useContext, useRef, useState, useEffect, useMemo } from 'react';
|
3
3
|
import classNames from 'classnames';
|
4
4
|
import joinDataTestAttributes from '../global/data-tests.js';
|
5
5
|
import { getRect } from '../global/dom.js';
|
6
6
|
import { toPx } from './utils.js';
|
7
7
|
import { CollapseContext } from './collapse-context.js';
|
8
8
|
import { COLLAPSE_CONTENT_CONTAINER_TEST_ID, COLLAPSE_CONTENT_TEST_ID } from './consts.js';
|
9
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
9
10
|
import 'core-js/modules/es.array.concat.js';
|
10
11
|
import 'core-js/modules/es.array.reduce.js';
|
11
12
|
import 'core-js/modules/es.object.entries.js';
|
@@ -102,20 +103,22 @@ var CollapseContent = function CollapseContent(_ref) {
|
|
102
103
|
var fadeShouldBeVisible = useMemo(function () {
|
103
104
|
return Boolean(minHeight && showFade);
|
104
105
|
}, [minHeight, showFade]);
|
105
|
-
return /*#__PURE__*/
|
106
|
+
return /*#__PURE__*/jsxs("div", {
|
106
107
|
ref: containerRef,
|
107
108
|
id: "collapse-content-".concat(id),
|
108
109
|
"data-test": joinDataTestAttributes(COLLAPSE_CONTENT_CONTAINER_TEST_ID),
|
109
110
|
className: classNames(modules_9c8b5b00.container, {
|
110
111
|
[modules_9c8b5b00.transition]: !disableAnimation
|
111
112
|
}),
|
112
|
-
style: style
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
113
|
+
style: style,
|
114
|
+
children: [/*#__PURE__*/jsx("div", {
|
115
|
+
ref: contentRef,
|
116
|
+
"data-test": joinDataTestAttributes(COLLAPSE_CONTENT_TEST_ID, dataTest),
|
117
|
+
children: children
|
118
|
+
}), fadeShouldBeVisible && /*#__PURE__*/jsx("div", {
|
119
|
+
className: modules_9c8b5b00.fade
|
120
|
+
})]
|
121
|
+
});
|
119
122
|
};
|
120
123
|
|
121
124
|
export { CollapseContent, CollapseContent as default };
|
@@ -1,16 +1,14 @@
|
|
1
|
-
import
|
1
|
+
import { useContext, useMemo, cloneElement } from 'react';
|
2
2
|
import joinDataTestAttributes from '../global/data-tests.js';
|
3
3
|
import { CollapseContext } from './collapse-context.js';
|
4
4
|
import { COLLAPSE_CONTROL_TEST_ID } from './consts.js';
|
5
|
+
import { jsx } from 'react/jsx-runtime';
|
5
6
|
import '../_helpers/_rollupPluginBabelHelpers.js';
|
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';
|
9
10
|
import 'core-js/modules/es.object.to-string.js';
|
10
11
|
|
11
|
-
/**
|
12
|
-
* @name CollapseControl
|
13
|
-
*/
|
14
12
|
var CollapseControl = function CollapseControl(_ref) {
|
15
13
|
var children = _ref.children,
|
16
14
|
dataTest = _ref['data-test'];
|
@@ -24,13 +22,14 @@ var CollapseControl = function CollapseControl(_ref) {
|
|
24
22
|
}
|
25
23
|
return children;
|
26
24
|
}, [children, collapsed]);
|
27
|
-
return /*#__PURE__*/
|
28
|
-
"data-test": joinDataTestAttributes(COLLAPSE_CONTROL_TEST_ID, dataTest)
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
25
|
+
return /*#__PURE__*/jsx("p", {
|
26
|
+
"data-test": joinDataTestAttributes(COLLAPSE_CONTROL_TEST_ID, dataTest),
|
27
|
+
children: /*#__PURE__*/cloneElement(child, {
|
28
|
+
onClick: setCollapsed,
|
29
|
+
'aria-controls': "collapse-content-".concat(id),
|
30
|
+
'aria-expanded': String(!collapsed)
|
31
|
+
})
|
32
|
+
});
|
34
33
|
};
|
35
34
|
|
36
35
|
export { CollapseControl, CollapseControl as default };
|
@@ -1,11 +1,9 @@
|
|
1
|
-
import {
|
2
|
-
import
|
1
|
+
import { i as _slicedToArray } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
|
+
import { useState, useId, useCallback } from 'react';
|
3
3
|
import { CollapseContext } from './collapse-context.js';
|
4
4
|
import { BASE_ANIMATION_DURATION } from './consts.js';
|
5
|
+
import { jsx } from 'react/jsx-runtime';
|
5
6
|
|
6
|
-
/**
|
7
|
-
* @name Collapse
|
8
|
-
*/
|
9
7
|
var Collapse = function Collapse(_ref) {
|
10
8
|
var children = _ref.children,
|
11
9
|
_ref$duration = _ref.duration,
|
@@ -25,17 +23,19 @@ var Collapse = function Collapse(_ref) {
|
|
25
23
|
toggle(!collapsed);
|
26
24
|
onChange(!collapsed);
|
27
25
|
}, [toggle, onChange, collapsed]);
|
28
|
-
return /*#__PURE__*/
|
29
|
-
className: className
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
26
|
+
return /*#__PURE__*/jsx("div", {
|
27
|
+
className: className,
|
28
|
+
children: /*#__PURE__*/jsx(CollapseContext.Provider, {
|
29
|
+
value: {
|
30
|
+
collapsed,
|
31
|
+
setCollapsed,
|
32
|
+
duration,
|
33
|
+
disableAnimation,
|
34
|
+
id
|
35
|
+
},
|
36
|
+
children: children
|
37
|
+
})
|
38
|
+
});
|
39
39
|
};
|
40
40
|
|
41
41
|
export { Collapse, Collapse as default };
|
@@ -1,13 +1,14 @@
|
|
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.symbol.js';
|
3
3
|
import 'core-js/modules/es.symbol.description.js';
|
4
4
|
import 'core-js/modules/es.array.concat.js';
|
5
|
-
import
|
5
|
+
import { PureComponent } from 'react';
|
6
6
|
import PropTypes from 'prop-types';
|
7
7
|
import Dialog from '../dialog/dialog.js';
|
8
8
|
import { Button } from '../button/button.js';
|
9
9
|
import '../island/island.js';
|
10
10
|
import Panel from '../panel/panel.js';
|
11
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
11
12
|
import HeaderWrapper from '../island/header.js';
|
12
13
|
import ContentWrapper from '../island/content.js';
|
13
14
|
import 'react-dom';
|
@@ -65,9 +66,6 @@ import '../_helpers/button__classes.js';
|
|
65
66
|
|
66
67
|
var modules_4c9c3a3a = {"light":"light_rui_2ac4","description":"description_rui_f040"};
|
67
68
|
|
68
|
-
/**
|
69
|
-
* @name Confirm
|
70
|
-
*/
|
71
69
|
var Confirm = /*#__PURE__*/function (_PureComponent) {
|
72
70
|
function Confirm() {
|
73
71
|
var _this;
|
@@ -98,27 +96,37 @@ var Confirm = /*#__PURE__*/function (_PureComponent) {
|
|
98
96
|
rejectLabel = _this$props.rejectLabel,
|
99
97
|
onConfirm = _this$props.onConfirm,
|
100
98
|
onReject = _this$props.onReject;
|
101
|
-
return /*#__PURE__*/
|
99
|
+
return /*#__PURE__*/jsxs(Dialog, {
|
102
100
|
label: text || (typeof description === 'string' ? description : undefined),
|
103
101
|
className: className,
|
104
102
|
onEscPress: this.onEscPress,
|
105
103
|
show: show,
|
106
104
|
trapFocus: true,
|
107
|
-
"data-test": "ring-confirm"
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
105
|
+
"data-test": "ring-confirm",
|
106
|
+
children: [text && /*#__PURE__*/jsx(HeaderWrapper, {
|
107
|
+
children: text
|
108
|
+
}), description && /*#__PURE__*/jsx(ContentWrapper, {
|
109
|
+
children: /*#__PURE__*/jsx("div", {
|
110
|
+
className: modules_4c9c3a3a.description,
|
111
|
+
children: description
|
112
|
+
})
|
113
|
+
}), /*#__PURE__*/jsxs(Panel, {
|
114
|
+
children: [/*#__PURE__*/jsx(Button, {
|
115
|
+
"data-test": "confirm-ok-button",
|
116
|
+
primary: !cancelIsDefault,
|
117
|
+
loader: inProgress,
|
118
|
+
disabled: inProgress,
|
119
|
+
onClick: onConfirm,
|
120
|
+
children: confirmLabel
|
121
|
+
}), /*#__PURE__*/jsx(Button, {
|
122
|
+
"data-test": "confirm-reject-button",
|
123
|
+
onClick: onReject,
|
124
|
+
disabled: inProgress,
|
125
|
+
primary: cancelIsDefault,
|
126
|
+
children: rejectLabel
|
127
|
+
})]
|
128
|
+
})]
|
129
|
+
});
|
122
130
|
}
|
123
131
|
}]);
|
124
132
|
}(PureComponent);
|
@@ -3,11 +3,12 @@ import 'core-js/modules/es.symbol.js';
|
|
3
3
|
import 'core-js/modules/es.symbol.description.js';
|
4
4
|
import 'core-js/modules/es.object.to-string.js';
|
5
5
|
import 'core-js/modules/es.promise.js';
|
6
|
-
import React from 'react';
|
7
6
|
import { createRoot } from 'react-dom/client';
|
8
7
|
import Confirm from '../confirm/confirm.js';
|
9
8
|
import { ControlsHeightContext, getGlobalControlsHeight } from '../global/controls-height.js';
|
9
|
+
import { jsx } from 'react/jsx-runtime';
|
10
10
|
import 'core-js/modules/es.array.concat.js';
|
11
|
+
import 'react';
|
11
12
|
import 'prop-types';
|
12
13
|
import '../dialog/dialog.js';
|
13
14
|
import 'react-dom';
|
@@ -76,9 +77,10 @@ function renderConfirm(props) {
|
|
76
77
|
var _props$buttonsHeight = props.buttonsHeight,
|
77
78
|
buttonsHeight = _props$buttonsHeight === void 0 ? getGlobalControlsHeight() : _props$buttonsHeight,
|
78
79
|
restProps = _objectWithoutProperties(props, _excluded);
|
79
|
-
reactRoot.render( /*#__PURE__*/
|
80
|
-
value: buttonsHeight
|
81
|
-
|
80
|
+
reactRoot.render( /*#__PURE__*/jsx(ControlsHeightContext.Provider, {
|
81
|
+
value: buttonsHeight,
|
82
|
+
children: /*#__PURE__*/jsx(Confirm, _objectSpread2({}, restProps))
|
83
|
+
}));
|
82
84
|
}
|
83
85
|
function confirm(_ref) {
|
84
86
|
var text = _ref.text,
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import
|
1
|
+
import { Component, HTMLAttributes } from 'react';
|
2
2
|
import PropTypes from 'prop-types';
|
3
3
|
export interface ContentLayoutProps extends HTMLAttributes<HTMLElement> {
|
4
4
|
responsive: boolean;
|
@@ -21,6 +21,6 @@ export default class ContentLayout extends Component<ContentLayoutProps> {
|
|
21
21
|
contentNode: null;
|
22
22
|
};
|
23
23
|
saveContentNode: (contentNode: HTMLElement | null) => void;
|
24
|
-
render():
|
24
|
+
render(): import("react").JSX.Element;
|
25
25
|
}
|
26
26
|
export { default as Sidebar } from './sidebar';
|