@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,4 +1,4 @@
|
|
1
|
-
import
|
1
|
+
import { Component } from 'react';
|
2
2
|
import PropTypes from 'prop-types';
|
3
3
|
/**
|
4
4
|
* @name Auth Dialog
|
@@ -56,5 +56,5 @@ export default class AuthDialog extends Component<AuthDialogProps> {
|
|
56
56
|
componentWillUnmount(): void;
|
57
57
|
onEscPress: () => void;
|
58
58
|
onRetryPress: () => Promise<void>;
|
59
|
-
render():
|
59
|
+
render(): import("react").JSX.Element;
|
60
60
|
}
|
@@ -1,14 +1,15 @@
|
|
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.regexp.exec.js';
|
4
4
|
import 'core-js/modules/es.string.replace.js';
|
5
|
-
import
|
5
|
+
import { Component } from 'react';
|
6
6
|
import PropTypes from 'prop-types';
|
7
7
|
import classNames from 'classnames';
|
8
8
|
import '../island/island.js';
|
9
9
|
import Dialog from '../dialog/dialog.js';
|
10
10
|
import { Button } from '../button/button.js';
|
11
11
|
import { H2 } from '../heading/heading.js';
|
12
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
12
13
|
import ContentWrapper from '../island/content.js';
|
13
14
|
import '../global/data-tests.js';
|
14
15
|
import 'core-js/modules/es.array.reduce.js';
|
@@ -148,42 +149,51 @@ var AuthDialog = /*#__PURE__*/function (_Component) {
|
|
148
149
|
var retrying = this.state.retrying;
|
149
150
|
var defaultTitle = serviceName ? loginToCaption : loginCaption;
|
150
151
|
var title = (this.props.title || defaultTitle).replace('%serviceName%', serviceName !== null && serviceName !== void 0 ? serviceName : '').replace('{{serviceName}}', serviceName !== null && serviceName !== void 0 ? serviceName : '');
|
151
|
-
return /*#__PURE__*/
|
152
|
+
return /*#__PURE__*/jsx(Dialog, {
|
152
153
|
label: title,
|
153
154
|
"data-test": "ring-auth-dialog",
|
154
155
|
className: className,
|
155
156
|
contentClassName: classNames(className, modules_ae521deb.dialog),
|
156
157
|
onEscPress: this.onEscPress,
|
157
158
|
show: show,
|
158
|
-
trapFocus: true
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
159
|
+
trapFocus: true,
|
160
|
+
children: /*#__PURE__*/jsx(ContentWrapper, {
|
161
|
+
children: /*#__PURE__*/jsxs("div", {
|
162
|
+
className: modules_ae521deb.content,
|
163
|
+
children: [serviceImage && /*#__PURE__*/jsx("img", {
|
164
|
+
alt: "".concat(serviceName, " logo"),
|
165
|
+
className: modules_ae521deb.logo,
|
166
|
+
src: serviceImage
|
167
|
+
}), /*#__PURE__*/jsx(H2, {
|
168
|
+
className: modules_ae521deb.title,
|
169
|
+
children: title
|
170
|
+
}), errorMessage && /*#__PURE__*/jsx("div", {
|
171
|
+
className: modules_ae521deb.error,
|
172
|
+
children: errorMessage
|
173
|
+
}), /*#__PURE__*/jsx(Button, {
|
174
|
+
primary: true,
|
175
|
+
className: modules_ae521deb.firstButton,
|
176
|
+
"data-test": "auth-dialog-confirm-button",
|
177
|
+
onClick: onConfirm,
|
178
|
+
children: confirmLabel
|
179
|
+
}), onTryAgain && /*#__PURE__*/jsx(Button, {
|
180
|
+
className: modules_ae521deb.button,
|
181
|
+
"data-test": "auth-dialog-retry-button",
|
182
|
+
onClick: function onClick() {
|
183
|
+
return _this2.onRetryPress();
|
184
|
+
},
|
185
|
+
loader: retrying,
|
186
|
+
disabled: retrying,
|
187
|
+
children: tryAgainLabel
|
188
|
+
}), /*#__PURE__*/jsx(Button, {
|
189
|
+
className: modules_ae521deb.button,
|
190
|
+
"data-test": "auth-dialog-cancel-button",
|
191
|
+
onClick: onCancel,
|
192
|
+
children: cancelLabel
|
193
|
+
})]
|
194
|
+
})
|
195
|
+
})
|
196
|
+
});
|
187
197
|
}
|
188
198
|
}]);
|
189
199
|
}(Component);
|
@@ -1,8 +1,9 @@
|
|
1
1
|
import { d as _objectSpread2 } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
|
-
import React from 'react';
|
3
2
|
import { createRoot } from 'react-dom/client';
|
4
3
|
import { ControlsHeightContext, getGlobalControlsHeight } from '../global/controls-height.js';
|
5
4
|
import AuthDialog from '../auth-dialog/auth-dialog.js';
|
5
|
+
import { jsx } from 'react/jsx-runtime';
|
6
|
+
import 'react';
|
6
7
|
import 'core-js/modules/es.array.concat.js';
|
7
8
|
import 'core-js/modules/es.regexp.exec.js';
|
8
9
|
import 'core-js/modules/es.string.replace.js';
|
@@ -64,18 +65,16 @@ import 'scrollbar-width';
|
|
64
65
|
import '../heading/heading.js';
|
65
66
|
import '../_helpers/heading.js';
|
66
67
|
|
67
|
-
/**
|
68
|
-
* @name Auth Dialog Service
|
69
|
-
*/
|
70
68
|
var containerElement = document.createElement('div');
|
71
69
|
var reactRoot = createRoot(containerElement);
|
72
70
|
/**
|
73
71
|
* Renders AuthDialog into virtual node to skip maintaining container
|
74
72
|
*/
|
75
73
|
function renderAuthDialog(props) {
|
76
|
-
reactRoot.render( /*#__PURE__*/
|
77
|
-
value: getGlobalControlsHeight()
|
78
|
-
|
74
|
+
reactRoot.render( /*#__PURE__*/jsx(ControlsHeightContext.Provider, {
|
75
|
+
value: getGlobalControlsHeight(),
|
76
|
+
children: /*#__PURE__*/jsx(AuthDialog, _objectSpread2({}, props))
|
77
|
+
}));
|
79
78
|
}
|
80
79
|
function showAuthDialog() {
|
81
80
|
var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import
|
1
|
+
import { PureComponent, ImgHTMLAttributes } from 'react';
|
2
2
|
import PropTypes from 'prop-types';
|
3
3
|
/**
|
4
4
|
* @name Avatar
|
@@ -47,6 +47,6 @@ export default class Avatar extends PureComponent<AvatarProps> {
|
|
47
47
|
};
|
48
48
|
handleError: () => void;
|
49
49
|
handleSuccess: () => void;
|
50
|
-
render():
|
50
|
+
render(): import("react").JSX.Element;
|
51
51
|
}
|
52
52
|
export type AvatarAttrs = JSX.LibraryManagedAttributes<typeof Avatar, AvatarProps>;
|
@@ -1,11 +1,12 @@
|
|
1
|
-
import { _ as _defineProperty, a as _inherits, b as _createClass, c as _objectWithoutProperties, d as _objectSpread2,
|
1
|
+
import { _ as _defineProperty, a as _inherits, b as _createClass, c as _objectWithoutProperties, d as _objectSpread2, i as _slicedToArray, 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 { isDataURI, parseQueryString, encodeURL } from '../global/url.js';
|
7
7
|
import { getPixelRatio } from '../global/dom.js';
|
8
8
|
import FallbackAvatar from './fallback-avatar.js';
|
9
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
9
10
|
import 'core-js/modules/es.array.index-of.js';
|
10
11
|
import 'core-js/modules/es.regexp.exec.js';
|
11
12
|
import 'core-js/modules/es.string.match.js';
|
@@ -28,9 +29,6 @@ import 'core-js/modules/es.regexp.to-string.js';
|
|
28
29
|
var modules_61ca8c75 = {"light":"light_rui_2ac4","avatar":"avatar_rui_006c","subavatar":"subavatar_rui_006c","empty":"empty_rui_006c"};
|
29
30
|
|
30
31
|
var _excluded = ["size", "url", "dpr", "style", "round", "subavatar", "subavatarSize", "username", "skipParams"];
|
31
|
-
/**
|
32
|
-
* @name Avatar
|
33
|
-
*/
|
34
32
|
var Size;
|
35
33
|
(function (Size) {
|
36
34
|
Size[Size["Size18"] = 18] = "Size18";
|
@@ -94,16 +92,17 @@ var Avatar = /*#__PURE__*/function (_PureComponent) {
|
|
94
92
|
width: subavatarSizeString
|
95
93
|
}, style);
|
96
94
|
if (!url || this.state.errorUrl === url) {
|
97
|
-
return /*#__PURE__*/
|
95
|
+
return /*#__PURE__*/jsx("span", _objectSpread2(_objectSpread2({}, restProps), {}, {
|
98
96
|
"data-test": "avatar",
|
99
97
|
className: classNames(modules_61ca8c75.avatar, this.props.className, {
|
100
98
|
[modules_61ca8c75.empty]: username == null
|
101
99
|
}),
|
102
|
-
style: styleObj
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
100
|
+
style: styleObj,
|
101
|
+
children: username != null && /*#__PURE__*/jsx(FallbackAvatar, {
|
102
|
+
size: size,
|
103
|
+
round: round,
|
104
|
+
username: username
|
105
|
+
})
|
107
106
|
}));
|
108
107
|
}
|
109
108
|
var src = url;
|
@@ -129,24 +128,26 @@ var Avatar = /*#__PURE__*/function (_PureComponent) {
|
|
129
128
|
subavatarSizeString
|
130
129
|
});
|
131
130
|
subavatarSrc = skipParams ? subavatar : encodeURL(_urlStart, _queryParams);
|
132
|
-
return /*#__PURE__*/
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
131
|
+
return /*#__PURE__*/jsxs("div", {
|
132
|
+
children: [/*#__PURE__*/jsx("img", _objectSpread2(_objectSpread2({}, restProps), {}, {
|
133
|
+
onError: this.handleError,
|
134
|
+
onLoad: this.handleSuccess,
|
135
|
+
className: classNames(modules_61ca8c75.avatar, this.props.className),
|
136
|
+
style: styleObj,
|
137
|
+
src: src,
|
138
|
+
alt: "User avatar"
|
139
|
+
})), /*#__PURE__*/jsx("img", _objectSpread2(_objectSpread2({}, restProps), {}, {
|
140
|
+
"data-test": "avatar",
|
141
|
+
onError: this.handleError,
|
142
|
+
onLoad: this.handleSuccess,
|
143
|
+
className: classNames(modules_61ca8c75.subavatar),
|
144
|
+
style: styleObjGroup,
|
145
|
+
src: subavatarSrc,
|
146
|
+
alt: "Subavatar"
|
147
|
+
}))]
|
148
|
+
});
|
148
149
|
} else {
|
149
|
-
return /*#__PURE__*/
|
150
|
+
return /*#__PURE__*/jsx("img", _objectSpread2(_objectSpread2({}, restProps), {}, {
|
150
151
|
"data-test": "avatar",
|
151
152
|
onError: this.handleError,
|
152
153
|
onLoad: this.handleSuccess,
|
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
/// <reference types="react" />
|
2
2
|
import PropTypes from 'prop-types';
|
3
3
|
import { Size } from './avatar';
|
4
4
|
export interface FallbackAvatarProps {
|
@@ -6,7 +6,7 @@ export interface FallbackAvatarProps {
|
|
6
6
|
size: Size;
|
7
7
|
round: boolean | null | undefined;
|
8
8
|
}
|
9
|
-
declare function FallbackAvatar({ username, size, round }: FallbackAvatarProps):
|
9
|
+
declare function FallbackAvatar({ username, size, round }: FallbackAvatarProps): import("react").JSX.Element;
|
10
10
|
declare namespace FallbackAvatar {
|
11
11
|
var propTypes: {
|
12
12
|
username: PropTypes.Validator<string>;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import { i as _slicedToArray, j as _toConsumableArray } 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.from.js';
|
@@ -7,9 +7,10 @@ import 'core-js/modules/es.array.slice.js';
|
|
7
7
|
import 'core-js/modules/es.object.to-string.js';
|
8
8
|
import 'core-js/modules/es.regexp.exec.js';
|
9
9
|
import 'core-js/modules/es.string.split.js';
|
10
|
-
import
|
10
|
+
import { useMemo } from 'react';
|
11
11
|
import PropTypes from 'prop-types';
|
12
12
|
import getUID from '../global/get-uid.js';
|
13
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
13
14
|
import 'core-js/modules/es.regexp.to-string.js';
|
14
15
|
|
15
16
|
var colorPairs = [['#60A800', '#D5CA00'], ['#21D370', '#03E9E1'], ['#3BA1FF', '#36E97D'], ['#00C243', '#00FFFF'], ['#4BE098', '#627FFF'], ['#168BFA', '#26F7C7'], ['#9D4CFF', '#39D3C3'], ['#0A81F6', '#0ACFF6'], ['#765AF8', '#5A91F8'], ['#9E54FF', '#0ACFF6'], ['#B345F1', '#669DFF'], ['#765AF8', '#C059EE'], ['#9039D0', '#C239D0'], ['#9F2AFF', '#FD56FD'], ['#AB3AF2', '#E40568'], ['#9F2AFF', '#E9A80B'], ['#D50F6B', '#E73AE8'], ['#ED5502', '#E73AE8'], ['#ED358C', '#DBED18'], ['#ED358C', '#F9902E'], ['#FF7500', '#FFCA00']];
|
@@ -105,42 +106,54 @@ function FallbackAvatar(_ref) {
|
|
105
106
|
var gradientId = useMemo(function () {
|
106
107
|
return getUID('gradient-');
|
107
108
|
}, []);
|
108
|
-
return /*#__PURE__*/
|
109
|
+
return /*#__PURE__*/jsxs("svg", {
|
109
110
|
viewBox: "0 0 ".concat(sizeKey, " ").concat(sizeKey),
|
110
|
-
xmlns: "http://www.w3.org/2000/svg"
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
111
|
+
xmlns: "http://www.w3.org/2000/svg",
|
112
|
+
children: [/*#__PURE__*/jsx("defs", {
|
113
|
+
children: /*#__PURE__*/jsxs("linearGradient", {
|
114
|
+
id: gradientId,
|
115
|
+
x1: "0",
|
116
|
+
y1: "0",
|
117
|
+
x2: "0",
|
118
|
+
y2: "1",
|
119
|
+
children: [/*#__PURE__*/jsx("stop", {
|
120
|
+
stopColor: fromColor,
|
121
|
+
offset: "0"
|
122
|
+
}), /*#__PURE__*/jsx("stop", {
|
123
|
+
stopColor: toColor,
|
124
|
+
offset: "1"
|
125
|
+
})]
|
126
|
+
})
|
127
|
+
}), /*#__PURE__*/jsxs("g", {
|
128
|
+
children: [/*#__PURE__*/jsx("rect", {
|
129
|
+
fill: "url(#".concat(gradientId, ")"),
|
130
|
+
x: "0",
|
131
|
+
y: "0",
|
132
|
+
width: sizeKey,
|
133
|
+
height: sizeKey,
|
134
|
+
rx: radius,
|
135
|
+
ry: radius
|
136
|
+
}), /*#__PURE__*/jsxs("text", {
|
137
|
+
x: sizes.text.x,
|
138
|
+
y: sizes.text.y,
|
139
|
+
fontFamily: "Arial, Helvetica, sans-serif",
|
140
|
+
fontSize: sizes.fontSize,
|
141
|
+
letterSpacing: sizes.letterSpacing,
|
142
|
+
fill: "#FFFFFF",
|
143
|
+
textAnchor: sizes.textAnchor,
|
144
|
+
cursor: "default",
|
145
|
+
children: [/*#__PURE__*/jsx("tspan", {
|
146
|
+
children: extractLetters(username)
|
147
|
+
}), sizes.underscore && /*#__PURE__*/jsx("tspan", {
|
148
|
+
x: sizes.underscore.x,
|
149
|
+
y: sizes.underscore.y,
|
150
|
+
children: '_'
|
151
|
+
})]
|
152
|
+
}), /*#__PURE__*/jsx("title", {
|
153
|
+
children: username
|
154
|
+
})]
|
155
|
+
})]
|
156
|
+
});
|
144
157
|
}
|
145
158
|
FallbackAvatar.propTypes = {
|
146
159
|
username: PropTypes.string.isRequired,
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import
|
1
|
+
import { PureComponent, HTMLAttributes } from 'react';
|
2
2
|
import PropTypes from 'prop-types';
|
3
3
|
export interface BadgeProps extends HTMLAttributes<HTMLElement> {
|
4
4
|
gray?: boolean | null | undefined;
|
@@ -20,5 +20,5 @@ export default class Badge extends PureComponent<BadgeProps> {
|
|
20
20
|
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
21
21
|
'data-test': PropTypes.Requireable<string>;
|
22
22
|
};
|
23
|
-
render():
|
23
|
+
render(): import("react").JSX.Element;
|
24
24
|
}
|
@@ -1,18 +1,16 @@
|
|
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
6
|
import { m as modules_6c9187df } from '../_helpers/badge.js';
|
7
|
+
import { 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';
|
10
11
|
import 'core-js/modules/es.object.to-string.js';
|
11
12
|
|
12
13
|
var _excluded = ["gray", "valid", "invalid", "disabled", "className", "children", "data-test"];
|
13
|
-
/**
|
14
|
-
* @name Badge
|
15
|
-
*/
|
16
14
|
var Badge = /*#__PURE__*/function (_PureComponent) {
|
17
15
|
function Badge() {
|
18
16
|
_classCallCheck(this, Badge);
|
@@ -37,10 +35,11 @@ var Badge = /*#__PURE__*/function (_PureComponent) {
|
|
37
35
|
[modules_6c9187df.invalid]: invalid,
|
38
36
|
[modules_6c9187df.disabled]: disabled
|
39
37
|
});
|
40
|
-
return /*#__PURE__*/
|
38
|
+
return /*#__PURE__*/jsx("span", _objectSpread2(_objectSpread2({}, props), {}, {
|
41
39
|
"data-test": joinDataTestAttributes('ring-badge', dataTest),
|
42
|
-
className: classes
|
43
|
-
|
40
|
+
className: classes,
|
41
|
+
children: children
|
42
|
+
}));
|
44
43
|
}
|
45
44
|
}]);
|
46
45
|
}(PureComponent);
|
@@ -0,0 +1,6 @@
|
|
1
|
+
import { ReactNode } from 'react';
|
2
|
+
export interface BreadcrumbsSeparatorAttrs {
|
3
|
+
separatorClassName?: string | null | undefined;
|
4
|
+
children?: ReactNode;
|
5
|
+
}
|
6
|
+
export default function Breadcrumbs({ separatorClassName, children }: BreadcrumbsSeparatorAttrs): import("react").JSX.Element[];
|
@@ -0,0 +1,27 @@
|
|
1
|
+
import 'core-js/modules/es.array.map.js';
|
2
|
+
import 'core-js/modules/es.object.to-string.js';
|
3
|
+
import 'core-js/modules/es.promise.js';
|
4
|
+
import classNames from 'classnames';
|
5
|
+
import { Children, Fragment } from 'react';
|
6
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
7
|
+
|
8
|
+
var modules_18e4daa4 = {"separator":"separator_rui_09b2"};
|
9
|
+
|
10
|
+
function Breadcrumbs(_ref) {
|
11
|
+
var separatorClassName = _ref.separatorClassName,
|
12
|
+
children = _ref.children;
|
13
|
+
return Children.toArray(children).map(function (child, index) {
|
14
|
+
return (
|
15
|
+
/*#__PURE__*/
|
16
|
+
// eslint-disable-next-line react/no-array-index-key
|
17
|
+
jsxs(Fragment, {
|
18
|
+
children: [index > 0 && /*#__PURE__*/jsx("span", {
|
19
|
+
className: classNames(modules_18e4daa4.separator, separatorClassName),
|
20
|
+
children: '/'
|
21
|
+
}), child]
|
22
|
+
}, index)
|
23
|
+
);
|
24
|
+
});
|
25
|
+
}
|
26
|
+
|
27
|
+
export { Breadcrumbs as default };
|
@@ -1,4 +1,5 @@
|
|
1
|
-
import
|
1
|
+
import { PureComponent, ButtonHTMLAttributes } from 'react';
|
2
|
+
import * as React from 'react';
|
2
3
|
import PropTypes from 'prop-types';
|
3
4
|
import { IconProps, IconType, Size } from '../icon/icon';
|
4
5
|
import { ClickableLinkProps } from '../link/clickableLink';
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import { _ as _defineProperty, a as _inherits, b as _createClass, c as _objectWithoutProperties, d as _objectSpread2, e as
|
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, createRef } from 'react';
|
4
4
|
import PropTypes from 'prop-types';
|
5
5
|
import classNames from 'classnames';
|
6
6
|
import chevronDown from '@jetbrains/icons/chevron-10px';
|
@@ -8,6 +8,7 @@ import Icon from '../icon/icon.js';
|
|
8
8
|
import ClickableLink from '../link/clickableLink.js';
|
9
9
|
import { ControlsHeightContext } from '../global/controls-height.js';
|
10
10
|
import { g as getButtonClasses, m as modules_e81895c9 } from '../_helpers/button__classes.js';
|
11
|
+
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
11
12
|
import { Size } from '../icon/icon__constants.js';
|
12
13
|
import 'util-deprecate';
|
13
14
|
import '../_helpers/icon__svg.js';
|
@@ -22,12 +23,6 @@ import 'core-js/modules/es.weak-map.js';
|
|
22
23
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
23
24
|
|
24
25
|
var _excluded = ["active", "danger", "delayed", "loader", "primary", "short", "text", "inline", "dropdown", "height", "icon", "iconSize", "iconClassName", "iconSuppressSizeWarning", "className", "children"];
|
25
|
-
/**
|
26
|
-
* @name Button
|
27
|
-
*/
|
28
|
-
/**
|
29
|
-
* A component for displaying variously styled buttons.
|
30
|
-
*/
|
31
26
|
var Button = /*#__PURE__*/function (_PureComponent) {
|
32
27
|
function Button() {
|
33
28
|
var _this;
|
@@ -75,28 +70,34 @@ var Button = /*#__PURE__*/function (_PureComponent) {
|
|
75
70
|
inline,
|
76
71
|
height
|
77
72
|
});
|
78
|
-
var content = /*#__PURE__*/
|
79
|
-
className: modules_e81895c9.content
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
73
|
+
var content = /*#__PURE__*/jsxs("span", {
|
74
|
+
className: modules_e81895c9.content,
|
75
|
+
children: [icon && /*#__PURE__*/jsx("span", {
|
76
|
+
className: classNames(modules_e81895c9.icon, iconClassName),
|
77
|
+
children: /*#__PURE__*/jsx(Icon, {
|
78
|
+
glyph: icon,
|
79
|
+
size: iconSize,
|
80
|
+
loading: loader,
|
81
|
+
suppressSizeWarning: iconSuppressSizeWarning
|
82
|
+
})
|
83
|
+
}), children && /*#__PURE__*/jsx("span", {
|
84
|
+
children: children
|
85
|
+
}), dropdown && /*#__PURE__*/jsx(Icon, {
|
86
|
+
glyph: chevronDown,
|
87
|
+
className: modules_e81895c9.dropdownIcon
|
88
|
+
})]
|
89
|
+
});
|
91
90
|
var commonProps = _objectSpread2(_objectSpread2({
|
92
91
|
tabIndex: loader ? -1 : 0
|
93
92
|
}, props), {}, {
|
94
93
|
className: classes,
|
95
|
-
children: /*#__PURE__*/
|
96
|
-
|
97
|
-
|
94
|
+
children: /*#__PURE__*/jsxs(Fragment, {
|
95
|
+
children: [loader && !text && !icon && /*#__PURE__*/jsx("div", {
|
96
|
+
className: modules_e81895c9.loaderBackground
|
97
|
+
}), content]
|
98
|
+
})
|
98
99
|
});
|
99
|
-
return commonProps.href != null ? /*#__PURE__*/
|
100
|
+
return commonProps.href != null ? /*#__PURE__*/jsx(ClickableLink, _objectSpread2({}, commonProps)) : /*#__PURE__*/jsx("button", _objectSpread2({
|
100
101
|
ref: this.buttonRef,
|
101
102
|
type: "button"
|
102
103
|
}, commonProps));
|
@@ -1,9 +1,11 @@
|
|
1
|
-
import
|
1
|
+
import { PureComponent, HTMLAttributes, ReactNode } from 'react';
|
2
2
|
import PropTypes from 'prop-types';
|
3
3
|
import Caption from './caption';
|
4
4
|
export interface ButtonGroupProps extends HTMLAttributes<HTMLElement> {
|
5
5
|
split?: boolean | null | undefined;
|
6
6
|
'data-test'?: string | null | undefined;
|
7
|
+
label?: ReactNode;
|
8
|
+
help?: ReactNode;
|
7
9
|
}
|
8
10
|
/**
|
9
11
|
* @name Button Group
|
@@ -13,6 +15,6 @@ export default class ButtonGroup extends PureComponent<ButtonGroupProps> {
|
|
13
15
|
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
14
16
|
className: PropTypes.Requireable<string>;
|
15
17
|
};
|
16
|
-
render():
|
18
|
+
render(): import("react").JSX.Element;
|
17
19
|
}
|
18
20
|
export { Caption };
|
@@ -1,21 +1,21 @@
|
|
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.regexp.exec.js';
|
3
3
|
import 'core-js/modules/es.string.split.js';
|
4
|
-
import
|
4
|
+
import { PureComponent } from 'react';
|
5
5
|
import PropTypes from 'prop-types';
|
6
6
|
import classNames from 'classnames';
|
7
7
|
import joinDataTestAttributes from '../global/data-tests.js';
|
8
|
+
import { ControlLabel } from '../control-label/control-label.js';
|
9
|
+
import ControlHelp from '../control-help/control-help.js';
|
8
10
|
import { m as modules_1068e447 } from '../_helpers/caption.js';
|
9
11
|
export { C as Caption } from '../_helpers/caption.js';
|
12
|
+
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
10
13
|
import 'core-js/modules/es.array.concat.js';
|
11
14
|
import 'core-js/modules/es.array.reduce.js';
|
12
15
|
import 'core-js/modules/es.object.entries.js';
|
13
16
|
import 'core-js/modules/es.object.to-string.js';
|
14
17
|
|
15
|
-
var _excluded = ["className", "split", "data-test"];
|
16
|
-
/**
|
17
|
-
* @name Button Group
|
18
|
-
*/
|
18
|
+
var _excluded = ["className", "split", "data-test", "label", "help"];
|
19
19
|
var ButtonGroup = /*#__PURE__*/function (_PureComponent) {
|
20
20
|
function ButtonGroup() {
|
21
21
|
_classCallCheck(this, ButtonGroup);
|
@@ -29,12 +29,21 @@ var ButtonGroup = /*#__PURE__*/function (_PureComponent) {
|
|
29
29
|
className = _this$props.className,
|
30
30
|
split = _this$props.split,
|
31
31
|
dataTest = _this$props['data-test'],
|
32
|
+
label = _this$props.label,
|
33
|
+
help = _this$props.help,
|
32
34
|
restProps = _objectWithoutProperties(_this$props, _excluded);
|
33
35
|
var classes = classNames(split ? modules_1068e447.split : modules_1068e447.buttonGroup, className);
|
34
|
-
return /*#__PURE__*/
|
35
|
-
|
36
|
-
|
37
|
-
|
36
|
+
return /*#__PURE__*/jsxs(Fragment, {
|
37
|
+
children: [label && /*#__PURE__*/jsx(ControlLabel, {
|
38
|
+
children: label
|
39
|
+
}), /*#__PURE__*/jsx("div", _objectSpread2(_objectSpread2({}, restProps), {}, {
|
40
|
+
"data-test": joinDataTestAttributes('ring-button-group', dataTest),
|
41
|
+
className: classes
|
42
|
+
})), help && /*#__PURE__*/jsx(ControlHelp, {
|
43
|
+
className: modules_1068e447.help,
|
44
|
+
children: help
|
45
|
+
})]
|
46
|
+
});
|
38
47
|
}
|
39
48
|
}]);
|
40
49
|
}(PureComponent);
|