@jetbrains/ring-ui-built 7.0.0-beta.13 → 7.0.0-beta.15
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/anchor.js +4 -4
- package/components/_helpers/badge.js +2 -2
- package/components/_helpers/button__classes.js +13 -13
- package/components/_helpers/caption.js +3 -3
- package/components/_helpers/card.js +18 -18
- package/components/_helpers/date-picker.js +2 -2
- package/components/_helpers/dialog__body-scroll-preventer.js +4 -4
- package/components/_helpers/grid.js +2 -2
- package/components/_helpers/header.js +2 -2
- package/components/_helpers/heading.js +2 -2
- package/components/_helpers/icon__svg.js +6 -6
- package/components/_helpers/input.js +14 -14
- package/components/_helpers/island.js +2 -2
- package/components/_helpers/link.js +2 -2
- package/components/_helpers/list.js +2 -2
- package/components/_helpers/query-assist__suggestions.js +7 -7
- package/components/_helpers/select__filter.js +3 -3
- package/components/_helpers/services-link.js +3 -3
- package/components/_helpers/sidebar.js +9 -9
- package/components/_helpers/tab-link.js +7 -7
- package/components/_helpers/table.js +2 -2
- package/components/_helpers/theme.js +9 -9
- package/components/_helpers/title.js +7 -7
- package/components/alert/alert.d.ts +2 -2
- package/components/alert/alert.js +12 -13
- package/components/alert/container.js +3 -3
- package/components/alert-service/alert-service.js +0 -1
- package/components/auth/auth.js +0 -1
- package/components/auth/auth__core.js +1 -2
- package/components/auth/background-flow.js +2 -2
- package/components/auth/down-notification.js +3 -4
- package/components/auth/iframe-flow.js +0 -1
- package/components/auth/storage.js +0 -1
- package/components/auth/token-validator.js +1 -1
- package/components/auth-dialog/auth-dialog.js +10 -11
- package/components/auth-dialog-service/auth-dialog-service.js +1 -2
- package/components/avatar/avatar.js +6 -6
- package/components/badge/badge.js +6 -7
- package/components/breadcrumbs/breadcrumbs.js +2 -2
- package/components/button/button.js +4 -4
- package/components/button/button__classes.d.ts +1 -1
- package/components/button-group/button-group.js +3 -4
- package/components/button-set/button-set.js +2 -3
- package/components/button-toolbar/button-toolbar.d.ts +1 -1
- package/components/button-toolbar/button-toolbar.js +2 -3
- package/components/checkbox/checkbox.js +8 -8
- package/components/clipboard/clipboard.js +0 -1
- package/components/code/code.d.ts +1 -1
- package/components/code/code.js +6 -6
- package/components/collapse/collapse-content.js +4 -5
- package/components/collapse/collapse-control.js +0 -1
- package/components/confirm/confirm.d.ts +2 -2
- package/components/confirm/confirm.js +3 -4
- package/components/confirm-service/confirm-service.d.ts +1 -1
- package/components/confirm-service/confirm-service.js +0 -1
- package/components/content-layout/content-layout.js +4 -4
- package/components/contenteditable/contenteditable.d.ts +1 -1
- package/components/control-help/control-help.js +2 -2
- package/components/control-label/control-label.js +5 -5
- package/components/data-list/data-list.d.ts +2 -2
- package/components/data-list/data-list.js +6 -7
- package/components/data-list/data-list.mock.js +0 -1
- package/components/data-list/item.js +8 -9
- package/components/date-picker/date-input.js +2 -2
- package/components/date-picker/date-picker.js +8 -9
- package/components/date-picker/date-popup.js +4 -5
- package/components/date-picker/day.js +15 -15
- package/components/date-picker/month-names.js +5 -5
- package/components/date-picker/month-slider.js +3 -3
- package/components/date-picker/month.js +3 -3
- package/components/date-picker/months.js +3 -3
- package/components/date-picker/weekdays.js +4 -4
- package/components/date-picker/years.js +5 -5
- package/components/dialog/dialog.js +13 -14
- package/components/dropdown/dropdown.d.ts +2 -2
- package/components/dropdown/dropdown.js +2 -3
- package/components/dropdown-menu/dropdown-menu.js +0 -1
- package/components/editable-heading/editable-heading.js +19 -19
- package/components/error-bubble/error-bubble.js +4 -5
- package/components/error-message/error-message.js +6 -7
- package/components/footer/footer.js +8 -9
- package/components/form/form.js +2 -3
- package/components/global/compose.js +0 -2
- package/components/global/data-tests.js +0 -1
- package/components/global/theme.js +1 -2
- package/components/grid/col.js +4 -4
- package/components/grid/grid.js +2 -3
- package/components/grid/row.js +4 -5
- package/components/group/group.js +2 -2
- package/components/header/header-icon.js +4 -4
- package/components/header/header.js +3 -4
- package/components/header/links.js +2 -2
- package/components/header/logo.js +2 -2
- package/components/header/profile.d.ts +2 -2
- package/components/header/profile.js +10 -11
- package/components/header/services-link.js +0 -1
- package/components/header/services.js +7 -8
- package/components/header/smart-profile.js +0 -1
- package/components/header/smart-services.js +0 -1
- package/components/header/tray.js +3 -3
- package/components/heading/heading.js +3 -3
- package/components/http/http.d.ts +3 -3
- package/components/icon/icon.js +8 -6
- package/components/input/input-legacy.js +2 -3
- package/components/input-size/input-size.js +2 -3
- package/components/island/content.js +7 -7
- package/components/island/header.js +4 -4
- package/components/island/island.js +4 -5
- package/components/link/link.js +7 -8
- package/components/list/list.d.ts +1 -1
- package/components/list/list.js +5 -6
- package/components/list/list__custom.js +5 -6
- package/components/list/list__hint.js +2 -2
- package/components/list/list__item.js +22 -23
- package/components/list/list__link.js +5 -6
- package/components/list/list__separator.js +3 -3
- package/components/list/list__title.js +5 -5
- package/components/list/list__users-groups-source.js +0 -1
- package/components/loader/loader.js +0 -1
- package/components/loader/loader__core.js +5 -5
- package/components/loader-inline/loader-inline.js +3 -4
- package/components/loader-screen/loader-screen.js +4 -5
- package/components/login-dialog/login-dialog.js +6 -7
- package/components/login-dialog/service.js +0 -1
- package/components/markdown/markdown.d.ts +2 -2
- package/components/markdown/markdown.js +6 -6
- package/components/message/message.js +9 -10
- package/components/old-browsers-message/old-browsers-message.js +0 -1
- package/components/old-browsers-message/old-browsers-message__stop.js +0 -1
- package/components/old-browsers-message/white-list.js +2 -3
- package/components/pager/pager.js +9 -10
- package/components/panel/panel.js +2 -2
- package/components/permissions/permissions.js +0 -1
- package/components/permissions/permissions__cache.js +2 -3
- package/components/popup/popup.js +5 -6
- package/components/popup/position.js +2 -2
- package/components/popup-menu/popup-menu.js +0 -1
- package/components/progress-bar/progress-bar.d.ts +2 -2
- package/components/progress-bar/progress-bar.js +5 -5
- package/components/query-assist/query-assist.js +25 -26
- package/components/query-assist/query-assist__suggestions.js +0 -1
- package/components/radio/radio__item.js +5 -5
- package/components/scrollable-section/scrollable-section.js +6 -6
- package/components/select/select.d.ts +1 -1
- package/components/select/select.js +22 -22
- package/components/select/select__filter.js +0 -1
- package/components/select/select__popup.js +11 -12
- package/components/shortcuts/core.js +1 -1
- package/components/slider/slider.js +20 -20
- package/components/storage/storage.js +0 -1
- package/components/storage/storage__local.js +0 -1
- package/components/style.css +1 -1
- package/components/tab-trap/tab-trap.js +2 -2
- package/components/table/cell.js +2 -3
- package/components/table/header-cell.js +8 -9
- package/components/table/header.js +6 -7
- package/components/table/row-with-focus-sensor.js +0 -1
- package/components/table/row.js +10 -11
- package/components/table/selection.d.ts +2 -3
- package/components/table/simple-table.js +2 -3
- package/components/table/smart-table.js +0 -1
- package/components/table/table.js +12 -13
- package/components/tabs/collapsible-more.d.ts +1 -1
- package/components/tabs/collapsible-more.js +6 -7
- package/components/tabs/collapsible-tab.js +4 -5
- package/components/tabs/collapsible-tabs.d.ts +2 -2
- package/components/tabs/collapsible-tabs.js +5 -6
- package/components/tabs/dumb-tabs.js +5 -6
- package/components/tabs/smart-tabs.js +0 -1
- package/components/tabs/tab-link.js +0 -1
- package/components/tabs/tab.js +0 -1
- package/components/tabs/tabs.js +0 -1
- package/components/tag/tag.js +13 -13
- package/components/tags-input/tags-input.js +8 -9
- package/components/text/text.js +7 -7
- package/components/toggle/toggle.d.ts +2 -2
- package/components/toggle/toggle.js +12 -13
- package/components/tooltip/tooltip.js +3 -4
- package/components/user-agreement/service.js +0 -1
- package/components/user-agreement/user-agreement.js +7 -8
- package/components/user-card/card.js +0 -1
- package/components/user-card/smart-user-card-tooltip.js +2 -3
- package/components/user-card/tooltip.js +2 -3
- package/components/user-card/user-card.js +0 -1
- package/package.json +8 -7
- package/typings.d.ts +2 -4
- package/components/island-legacy/content-legacy.d.ts +0 -5
- package/components/island-legacy/content-legacy.js +0 -23
- package/components/island-legacy/header-legacy.d.ts +0 -5
- package/components/island-legacy/header-legacy.js +0 -26
- package/components/island-legacy/island-legacy.d.ts +0 -7
- package/components/island-legacy/island-legacy.js +0 -25
@@ -5,10 +5,9 @@ import classNames from 'classnames';
|
|
5
5
|
import joinDataTestAttributes from '../global/data-tests.js';
|
6
6
|
import { ControlLabel } from '../control-label/control-label.js';
|
7
7
|
import ControlHelp from '../control-help/control-help.js';
|
8
|
-
import {
|
8
|
+
import { s as styles } from '../_helpers/caption.js';
|
9
9
|
export { C as Caption } from '../_helpers/caption.js';
|
10
10
|
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
11
|
-
import 'core-js/modules/es.array.reduce.js';
|
12
11
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
13
12
|
|
14
13
|
const _excluded = ["className", "split", "data-test", "label", "help"];
|
@@ -23,7 +22,7 @@ class ButtonGroup extends PureComponent {
|
|
23
22
|
help
|
24
23
|
} = _this$props,
|
25
24
|
restProps = _objectWithoutProperties(_this$props, _excluded);
|
26
|
-
const classes = classNames(split ?
|
25
|
+
const classes = classNames(split ? styles.split : styles.buttonGroup, className);
|
27
26
|
return /*#__PURE__*/jsxs(Fragment, {
|
28
27
|
children: [label && /*#__PURE__*/jsx(ControlLabel, {
|
29
28
|
children: label
|
@@ -31,7 +30,7 @@ class ButtonGroup extends PureComponent {
|
|
31
30
|
"data-test": joinDataTestAttributes('ring-button-group', dataTest),
|
32
31
|
className: classes
|
33
32
|
})), help && /*#__PURE__*/jsx(ControlHelp, {
|
34
|
-
className:
|
33
|
+
className: styles.help,
|
35
34
|
children: help
|
36
35
|
})]
|
37
36
|
});
|
@@ -3,10 +3,9 @@ import { PureComponent } from 'react';
|
|
3
3
|
import classNames from 'classnames';
|
4
4
|
import joinDataTestAttributes from '../global/data-tests.js';
|
5
5
|
import { jsx } from 'react/jsx-runtime';
|
6
|
-
import 'core-js/modules/es.array.reduce.js';
|
7
6
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
8
7
|
|
9
|
-
var
|
8
|
+
var styles = {"button":"button_rui_6ad6","buttonSet":"buttonSet_rui_97ff"};
|
10
9
|
|
11
10
|
const _excluded = ["className", "data-test", "children"];
|
12
11
|
class ButtonSet extends PureComponent {
|
@@ -18,7 +17,7 @@ class ButtonSet extends PureComponent {
|
|
18
17
|
children
|
19
18
|
} = _this$props,
|
20
19
|
restProps = _objectWithoutProperties(_this$props, _excluded);
|
21
|
-
const classes = classNames(
|
20
|
+
const classes = classNames(styles.buttonSet, className);
|
22
21
|
return /*#__PURE__*/jsx("div", _objectSpread2(_objectSpread2({}, restProps), {}, {
|
23
22
|
"data-test": joinDataTestAttributes('ring-button-set', dataTest),
|
24
23
|
className: classes,
|
@@ -3,10 +3,9 @@ import { PureComponent } from 'react';
|
|
3
3
|
import classNames from 'classnames';
|
4
4
|
import joinDataTestAttributes from '../global/data-tests.js';
|
5
5
|
import { jsx } from 'react/jsx-runtime';
|
6
|
-
import 'core-js/modules/es.array.reduce.js';
|
7
6
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
8
7
|
|
9
|
-
var
|
8
|
+
var styles = {"button":"button_rui_6ad6","buttonToolbar":"buttonToolbar_rui_5c90","buttonGroup":"buttonGroup_rui_5c90","split":"split_rui_5c90"};
|
10
9
|
|
11
10
|
const _excluded = ["className", "data-test"];
|
12
11
|
class ButtonToolbar extends PureComponent {
|
@@ -17,7 +16,7 @@ class ButtonToolbar extends PureComponent {
|
|
17
16
|
'data-test': dataTest
|
18
17
|
} = _this$props,
|
19
18
|
restProps = _objectWithoutProperties(_this$props, _excluded);
|
20
|
-
const classes = classNames(
|
19
|
+
const classes = classNames(styles.buttonToolbar, className);
|
21
20
|
return /*#__PURE__*/jsx("div", _objectSpread2(_objectSpread2({}, restProps), {}, {
|
22
21
|
"data-test": joinDataTestAttributes('ring-button-toolbar', dataTest),
|
23
22
|
className: classes
|
@@ -16,7 +16,7 @@ import 'core-js/modules/es.string.replace.js';
|
|
16
16
|
import '../global/memoize.js';
|
17
17
|
import 'memoize-one';
|
18
18
|
|
19
|
-
var
|
19
|
+
var styles = {"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"};
|
20
20
|
|
21
21
|
const _excluded = ["children", "label", "className", "containerClassName", "containerStyle", "cellClassName", "labelClassName", "indeterminate", "inputRef", "help"];
|
22
22
|
class Checkbox extends PureComponent {
|
@@ -59,10 +59,10 @@ class Checkbox extends PureComponent {
|
|
59
59
|
help
|
60
60
|
} = _this$props,
|
61
61
|
restProps = _objectWithoutProperties(_this$props, _excluded);
|
62
|
-
const classes = classNames(
|
63
|
-
const containerClasses = classNames(
|
64
|
-
const cellClasses = classNames(
|
65
|
-
const labelClasses = classNames(
|
62
|
+
const classes = classNames(styles.input, className);
|
63
|
+
const containerClasses = classNames(styles.checkbox, containerClassName);
|
64
|
+
const cellClasses = classNames(styles.cell, cellClassName);
|
65
|
+
const labelClasses = classNames(styles.label, labelClassName);
|
66
66
|
return /*#__PURE__*/jsxs("label", {
|
67
67
|
className: containerClasses,
|
68
68
|
style: containerStyle,
|
@@ -73,15 +73,15 @@ class Checkbox extends PureComponent {
|
|
73
73
|
type: "checkbox",
|
74
74
|
className: classes
|
75
75
|
})), /*#__PURE__*/jsx("div", {
|
76
|
-
className:
|
76
|
+
className: styles.cellWrapper,
|
77
77
|
children: /*#__PURE__*/jsxs("span", {
|
78
78
|
className: cellClasses,
|
79
79
|
children: [/*#__PURE__*/jsx(Icon, {
|
80
80
|
glyph: checkmarkIcon,
|
81
|
-
className:
|
81
|
+
className: styles.check
|
82
82
|
}), /*#__PURE__*/jsx(Icon, {
|
83
83
|
glyph: minusIcon,
|
84
|
-
className:
|
84
|
+
className: styles.minus
|
85
85
|
})]
|
86
86
|
})
|
87
87
|
}), /*#__PURE__*/jsxs("span", {
|
@@ -21,7 +21,6 @@ import '../global/memoize.js';
|
|
21
21
|
import 'react/jsx-runtime';
|
22
22
|
import '../loader-inline/loader-inline.js';
|
23
23
|
import '../global/data-tests.js';
|
24
|
-
import 'core-js/modules/es.array.reduce.js';
|
25
24
|
import '../global/dom.js';
|
26
25
|
import '../button/button.js';
|
27
26
|
import '@jetbrains/icons/chevron-down';
|
@@ -5,7 +5,7 @@ export interface CodeProps {
|
|
5
5
|
code: string;
|
6
6
|
inline: boolean;
|
7
7
|
softWrap: boolean;
|
8
|
-
replacer: (
|
8
|
+
replacer: (element: HTMLElement | null) => void;
|
9
9
|
className?: string | null | undefined;
|
10
10
|
language?: string | null | undefined;
|
11
11
|
codeRef?: Ref<HTMLElement> | null | undefined;
|
package/components/code/code.js
CHANGED
@@ -11,9 +11,9 @@ import { jsx } from 'react/jsx-runtime';
|
|
11
11
|
import 'core-js/modules/es.array.reverse.js';
|
12
12
|
import 'core-js/modules/es.regexp.exec.js';
|
13
13
|
|
14
|
-
var
|
14
|
+
var styles = {"code":"code_rui_1c82","inline":"inline_rui_1c82","softWrap":"softWrap_rui_1c82"};
|
15
15
|
|
16
|
-
var
|
16
|
+
var highlightStyles = {"highlightContainer":"highlightContainer_rui_1a79"};
|
17
17
|
|
18
18
|
function noop() {}
|
19
19
|
const registerLanguage = memoize(async language => {
|
@@ -83,9 +83,9 @@ class Code extends PureComponent {
|
|
83
83
|
language
|
84
84
|
} = this.props;
|
85
85
|
const Tag = inline ? 'span' : 'pre';
|
86
|
-
const classes = classNames(
|
87
|
-
[
|
88
|
-
[
|
86
|
+
const classes = classNames(styles.code, className, language, {
|
87
|
+
[styles.inline]: inline,
|
88
|
+
[styles.softWrap]: softWrap
|
89
89
|
});
|
90
90
|
return /*#__PURE__*/jsx(Tag, {
|
91
91
|
className: classes,
|
@@ -94,7 +94,7 @@ class Code extends PureComponent {
|
|
94
94
|
// should be focusable because it can be scrollable
|
95
95
|
tabIndex: inline ? -1 : 0,
|
96
96
|
ref: this.initCodeRef,
|
97
|
-
className:
|
97
|
+
className: highlightStyles.highlightContainer,
|
98
98
|
children: normalizeIndent(code)
|
99
99
|
})
|
100
100
|
});
|
@@ -7,11 +7,10 @@ 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
9
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
10
|
-
import 'core-js/modules/es.array.reduce.js';
|
11
10
|
import '../_helpers/_rollupPluginBabelHelpers.js';
|
12
11
|
import 'core-js/modules/es.regexp.exec.js';
|
13
12
|
|
14
|
-
var
|
13
|
+
var styles = {"container":"container_rui_93ce","transition":"transition_rui_93ce","summary":"summary_rui_93ce","trigger":"trigger_rui_93ce","fade":"fade_rui_93ce"};
|
15
14
|
|
16
15
|
const DURATION_FACTOR = 0.5;
|
17
16
|
const DEFAULT_HEIGHT = 0;
|
@@ -89,8 +88,8 @@ const CollapseContent = _ref => {
|
|
89
88
|
ref: containerRef,
|
90
89
|
id: "collapse-content-".concat(id),
|
91
90
|
"data-test": joinDataTestAttributes(COLLAPSE_CONTENT_CONTAINER_TEST_ID),
|
92
|
-
className: classNames(
|
93
|
-
[
|
91
|
+
className: classNames(styles.container, {
|
92
|
+
[styles.transition]: !disableAnimation
|
94
93
|
}),
|
95
94
|
style: style,
|
96
95
|
children: [/*#__PURE__*/jsx("div", {
|
@@ -98,7 +97,7 @@ const CollapseContent = _ref => {
|
|
98
97
|
"data-test": joinDataTestAttributes(COLLAPSE_CONTENT_TEST_ID, dataTest),
|
99
98
|
children: children
|
100
99
|
}), fadeShouldBeVisible && /*#__PURE__*/jsx("div", {
|
101
|
-
className:
|
100
|
+
className: styles.fade
|
102
101
|
})]
|
103
102
|
});
|
104
103
|
};
|
@@ -3,7 +3,6 @@ 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
5
|
import { jsx } from 'react/jsx-runtime';
|
6
|
-
import 'core-js/modules/es.array.reduce.js';
|
7
6
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
8
7
|
|
9
8
|
const CollapseControl = _ref => {
|
@@ -9,8 +9,8 @@ export interface ConfirmProps {
|
|
9
9
|
cancelIsDefault: boolean;
|
10
10
|
confirmLabel: string;
|
11
11
|
rejectLabel: string;
|
12
|
-
onConfirm: (
|
13
|
-
onReject: (
|
12
|
+
onConfirm: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
13
|
+
onReject: (event?: React.MouseEvent<HTMLButtonElement>) => void;
|
14
14
|
className?: string | undefined;
|
15
15
|
native?: boolean;
|
16
16
|
}
|
@@ -5,8 +5,8 @@ import { PureComponent } from 'react';
|
|
5
5
|
import Dialog from '../dialog/dialog.js';
|
6
6
|
import { Button } from '../button/button.js';
|
7
7
|
import 'classnames';
|
8
|
-
import 'core-js/modules/es.array.reduce.js';
|
9
8
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
9
|
+
import '../_helpers/island.js';
|
10
10
|
import HeaderWrapper from '../island/header.js';
|
11
11
|
import ContentWrapper from '../island/content.js';
|
12
12
|
import Panel from '../panel/panel.js';
|
@@ -16,7 +16,6 @@ import '../island/island.js';
|
|
16
16
|
import '../global/data-tests.js';
|
17
17
|
import '../island/adaptive-island-hoc.js';
|
18
18
|
import '../global/linear-function.js';
|
19
|
-
import '../_helpers/island.js';
|
20
19
|
import 'element-resize-detector';
|
21
20
|
import '../global/schedule-raf.js';
|
22
21
|
import '../global/get-uid.js';
|
@@ -42,7 +41,7 @@ import '../link/clickableLink.js';
|
|
42
41
|
import '../global/controls-height.js';
|
43
42
|
import '../_helpers/button__classes.js';
|
44
43
|
|
45
|
-
var
|
44
|
+
var styles = {"description":"description_rui_f040"};
|
46
45
|
|
47
46
|
class Confirm extends PureComponent {
|
48
47
|
constructor() {
|
@@ -79,7 +78,7 @@ class Confirm extends PureComponent {
|
|
79
78
|
children: text
|
80
79
|
}), description && /*#__PURE__*/jsx(ContentWrapper, {
|
81
80
|
children: /*#__PURE__*/jsx("div", {
|
82
|
-
className:
|
81
|
+
className: styles.description,
|
83
82
|
children: description
|
84
83
|
})
|
85
84
|
}), /*#__PURE__*/jsxs(Panel, {
|
@@ -17,5 +17,5 @@ export interface ConfirmServiceParams {
|
|
17
17
|
onBeforeConfirm?: (() => void) | undefined;
|
18
18
|
buttonsHeight?: ControlsHeight | undefined;
|
19
19
|
}
|
20
|
-
export default function confirm({ text, description, confirmLabel, rejectLabel, cancelIsDefault, onBeforeConfirm, buttonsHeight }: ConfirmServiceParams): Promise<void>;
|
20
|
+
export default function confirm({ text, description, confirmLabel, rejectLabel, cancelIsDefault, onBeforeConfirm, buttonsHeight, }: ConfirmServiceParams): Promise<void>;
|
21
21
|
export declare function hideConfirm(): void;
|
@@ -12,7 +12,6 @@ import 'classnames';
|
|
12
12
|
import '@jetbrains/icons/close';
|
13
13
|
import '../island/island.js';
|
14
14
|
import '../global/data-tests.js';
|
15
|
-
import 'core-js/modules/es.array.reduce.js';
|
16
15
|
import '../island/adaptive-island-hoc.js';
|
17
16
|
import '../global/linear-function.js';
|
18
17
|
import '../_helpers/island.js';
|
@@ -2,7 +2,7 @@ import { _ as _defineProperty, a as _objectWithoutProperties, b as _objectSpread
|
|
2
2
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
3
3
|
import { Component, Children, cloneElement } from 'react';
|
4
4
|
import classNames from 'classnames';
|
5
|
-
import {
|
5
|
+
import { s as styles, S as Sidebar } from '../_helpers/sidebar.js';
|
6
6
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
7
7
|
import 'react-waypoint';
|
8
8
|
|
@@ -28,10 +28,10 @@ class ContentLayout extends Component {
|
|
28
28
|
responsive
|
29
29
|
} = _this$props,
|
30
30
|
restProps = _objectWithoutProperties(_this$props, _excluded);
|
31
|
-
const classes = classNames(
|
32
|
-
[
|
31
|
+
const classes = classNames(styles.contentLayout, className, {
|
32
|
+
[styles.contentLayoutResponsive]: responsive
|
33
33
|
});
|
34
|
-
const contentClasses = classNames(
|
34
|
+
const contentClasses = classNames(styles.contentLayoutContent, contentClassName);
|
35
35
|
const childrenArray = Children.toArray(children);
|
36
36
|
const sidebarChild = childrenArray.filter(child => child != null && typeof child === 'object' && 'type' in child && child.type === Sidebar)[0];
|
37
37
|
const sidebar = sidebarChild && /*#__PURE__*/cloneElement(sidebarChild, {
|
@@ -5,7 +5,7 @@ import { Component, HTMLAttributes, Ref } from 'react';
|
|
5
5
|
declare function noop(): void;
|
6
6
|
export interface ContentEditableBaseProps extends HTMLAttributes<HTMLElement> {
|
7
7
|
disabled: boolean;
|
8
|
-
onComponentUpdate: (
|
8
|
+
onComponentUpdate: (prevProps: ContentEditableBaseProps) => void;
|
9
9
|
inputRef?: Ref<HTMLDivElement> | null | undefined;
|
10
10
|
__html: string;
|
11
11
|
}
|
@@ -2,7 +2,7 @@ import { a as _objectWithoutProperties, b as _objectSpread2 } from '../_helpers/
|
|
2
2
|
import classNames from 'classnames';
|
3
3
|
import { jsx } from 'react/jsx-runtime';
|
4
4
|
|
5
|
-
var
|
5
|
+
var styles = {"help":"help_rui_63a3"};
|
6
6
|
|
7
7
|
const _excluded = ["className"];
|
8
8
|
function ControlHelp(_ref) {
|
@@ -11,7 +11,7 @@ function ControlHelp(_ref) {
|
|
11
11
|
} = _ref,
|
12
12
|
restProps = _objectWithoutProperties(_ref, _excluded);
|
13
13
|
return /*#__PURE__*/jsx("div", _objectSpread2({
|
14
|
-
className: classNames(className,
|
14
|
+
className: classNames(className, styles.help)
|
15
15
|
}, restProps));
|
16
16
|
}
|
17
17
|
|
@@ -3,7 +3,7 @@ import 'react';
|
|
3
3
|
import classNames from 'classnames';
|
4
4
|
import { jsx } from 'react/jsx-runtime';
|
5
5
|
|
6
|
-
var
|
6
|
+
var styles = {"label":"label_rui_fe46","formLabel":"formLabel_rui_fe46","secondaryLabel":"secondaryLabel_rui_fe46","disabledLabel":"disabledLabel_rui_fe46"};
|
7
7
|
|
8
8
|
const _excluded = ["children", "type", "disabled"];
|
9
9
|
var LabelType;
|
@@ -12,8 +12,8 @@ var LabelType;
|
|
12
12
|
LabelType["FORM"] = "form";
|
13
13
|
})(LabelType || (LabelType = {}));
|
14
14
|
const classNameByType = {
|
15
|
-
[LabelType.SECONDARY]:
|
16
|
-
[LabelType.FORM]:
|
15
|
+
[LabelType.SECONDARY]: styles.secondaryLabel,
|
16
|
+
[LabelType.FORM]: styles.formLabel
|
17
17
|
};
|
18
18
|
const ControlLabel = _ref => {
|
19
19
|
let {
|
@@ -23,8 +23,8 @@ const ControlLabel = _ref => {
|
|
23
23
|
} = _ref,
|
24
24
|
rest = _objectWithoutProperties(_ref, _excluded);
|
25
25
|
return /*#__PURE__*/jsx("label", _objectSpread2(_objectSpread2({
|
26
|
-
className: classNames(
|
27
|
-
[
|
26
|
+
className: classNames(styles.label, classNameByType[type], {
|
27
|
+
[styles.disabledLabel]: disabled
|
28
28
|
})
|
29
29
|
}, rest), {}, {
|
30
30
|
children: children
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/**
|
2
|
-
|
3
|
-
|
2
|
+
* @name Data List
|
3
|
+
*/
|
4
4
|
import { Component } from 'react';
|
5
5
|
import { FocusSensorOuterProps } from '../global/focus-sensor-hoc';
|
6
6
|
import { SelectionShortcutsAddProps, SelectionShortcutsOuterProps } from '../table/selection-shortcuts-hoc';
|
@@ -9,7 +9,7 @@ import getUID from '../global/get-uid.js';
|
|
9
9
|
import Shortcuts from '../shortcuts/shortcuts.js';
|
10
10
|
import Loader from '../loader/loader.js';
|
11
11
|
import Item, { moreLessButtonStates } from './item.js';
|
12
|
-
import {
|
12
|
+
import { s as styles } from '../_helpers/title.js';
|
13
13
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
14
14
|
import '../global/composeRefs.js';
|
15
15
|
import 'memoize-one';
|
@@ -19,7 +19,6 @@ import 'combokeys';
|
|
19
19
|
import '../global/sniffer.js';
|
20
20
|
import 'sniffr';
|
21
21
|
import '../global/data-tests.js';
|
22
|
-
import 'core-js/modules/es.array.reduce.js';
|
23
22
|
import '../loader/loader__core.js';
|
24
23
|
import '../global/dom.js';
|
25
24
|
import '@jetbrains/icons/chevron-right';
|
@@ -116,12 +115,12 @@ class DataList extends PureComponent {
|
|
116
115
|
} = this.props;
|
117
116
|
const shortcutsMap = _objectSpread2(_objectSpread2({}, this.shortcutsMap), this.props.shortcutsMap);
|
118
117
|
const classes = classNames(className, {
|
119
|
-
[
|
120
|
-
[
|
121
|
-
[
|
118
|
+
[styles.dataList]: true,
|
119
|
+
[styles.disabledHover]: disabledHover,
|
120
|
+
[styles.multiSelection]: selection.getSelected().size > 0
|
122
121
|
});
|
123
122
|
return /*#__PURE__*/jsxs("div", {
|
124
|
-
className:
|
123
|
+
className: styles.dataListWrapper,
|
125
124
|
"data-test": "ring-data-list",
|
126
125
|
ref: innerRef,
|
127
126
|
children: [focused && /*#__PURE__*/jsx(Shortcuts, {
|
@@ -159,7 +158,7 @@ class DataList extends PureComponent {
|
|
159
158
|
}, key || id);
|
160
159
|
})
|
161
160
|
}), loading && /*#__PURE__*/jsx("div", {
|
162
|
-
className: data.length > 0 ?
|
161
|
+
className: data.length > 0 ? styles.loadingOverlay : undefined,
|
163
162
|
children: /*#__PURE__*/jsx(Loader, {})
|
164
163
|
})]
|
165
164
|
});
|
@@ -5,7 +5,6 @@ import '../_helpers/_rollupPluginBabelHelpers.js';
|
|
5
5
|
import 'react';
|
6
6
|
import 'classnames';
|
7
7
|
import '../global/data-tests.js';
|
8
|
-
import 'core-js/modules/es.array.reduce.js';
|
9
8
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
10
9
|
import '../link/clickableLink.js';
|
11
10
|
import '../_helpers/link.js';
|
@@ -7,11 +7,10 @@ import Link from '../link/link.js';
|
|
7
7
|
import Text from '../text/text.js';
|
8
8
|
import LoaderInline from '../loader-inline/loader-inline.js';
|
9
9
|
import { Button } from '../button/button.js';
|
10
|
-
import {
|
10
|
+
import { s as styles, T as Title } from '../_helpers/title.js';
|
11
11
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
12
12
|
import 'classnames';
|
13
13
|
import '../global/data-tests.js';
|
14
|
-
import 'core-js/modules/es.array.reduce.js';
|
15
14
|
import '../link/clickableLink.js';
|
16
15
|
import '../_helpers/link.js';
|
17
16
|
import 'util-deprecate';
|
@@ -126,7 +125,7 @@ class Item extends PureComponent {
|
|
126
125
|
onClick: this.onShowMore,
|
127
126
|
children: 'Show more'
|
128
127
|
}), showMoreLessButton === moreLessButtonStates.MORE_LOADING && /*#__PURE__*/jsx(LoaderInline, {
|
129
|
-
className:
|
128
|
+
className: styles.showMoreLoader
|
130
129
|
})]
|
131
130
|
});
|
132
131
|
} else if (showMoreLessButton === moreLessButtonStates.LESS) {
|
@@ -147,8 +146,8 @@ class Item extends PureComponent {
|
|
147
146
|
title: "Expand",
|
148
147
|
onClick: onExpand,
|
149
148
|
icon: chevronRightIcon,
|
150
|
-
className:
|
151
|
-
iconClassName:
|
149
|
+
className: styles.collapseButton,
|
150
|
+
iconClassName: styles.collapseIcon,
|
152
151
|
"data-test": "ring-data-list-expand"
|
153
152
|
});
|
154
153
|
} else {
|
@@ -156,8 +155,8 @@ class Item extends PureComponent {
|
|
156
155
|
title: "Collapse",
|
157
156
|
onClick: onCollapse,
|
158
157
|
icon: chevronDownIcon,
|
159
|
-
className:
|
160
|
-
iconClassName:
|
158
|
+
className: styles.collapseButton,
|
159
|
+
iconClassName: styles.collapseIcon,
|
161
160
|
"data-test": "ring-data-list-collapse"
|
162
161
|
});
|
163
162
|
}
|
@@ -176,9 +175,9 @@ class Item extends PureComponent {
|
|
176
175
|
onSelect: this.onSelect,
|
177
176
|
offset: offset
|
178
177
|
}), !itemIsEmpty ? /*#__PURE__*/jsxs("ul", {
|
179
|
-
className:
|
178
|
+
className: styles.itemContent,
|
180
179
|
children: [items.map(model => this.renderItem(model, parentShift)), showMoreLessButton !== moreLessButtonStates.UNUSED ? /*#__PURE__*/jsx("li", {
|
181
|
-
className:
|
180
|
+
className: styles.showMore,
|
182
181
|
children: moreLessButton
|
183
182
|
}) : null]
|
184
183
|
}) : null]
|
@@ -7,7 +7,7 @@ import classNames from 'classnames';
|
|
7
7
|
import { I as Input } from '../_helpers/input.js';
|
8
8
|
import { ControlsHeight } from '../global/controls-height.js';
|
9
9
|
import { I18nContext } from '../i18n/i18n-context.js';
|
10
|
-
import {
|
10
|
+
import { s as styles } from '../_helpers/date-picker.js';
|
11
11
|
import { jsx } from 'react/jsx-runtime';
|
12
12
|
import '@jetbrains/icons/close-12px';
|
13
13
|
import '../button/button.js';
|
@@ -121,7 +121,7 @@ class DateInput extends React.PureComponent {
|
|
121
121
|
return ((_translations$selectN = translations === null || translations === void 0 ? void 0 : translations.selectName) !== null && _translations$selectN !== void 0 ? _translations$selectN : translate('selectName')).replace('%name%', name).replace('{{name}}', name);
|
122
122
|
}
|
123
123
|
})();
|
124
|
-
const classes = classNames(
|
124
|
+
const classes = classNames(styles.filter, styles["".concat(name, "Input")], divider && styles["".concat(name, "InputWithDivider")], 'ring-js-shortcuts');
|
125
125
|
return /*#__PURE__*/jsx(Input, {
|
126
126
|
autoComplete: "off",
|
127
127
|
borderless: true,
|
@@ -20,7 +20,7 @@ import Link from '../link/link.js';
|
|
20
20
|
import { S as Size } from '../_helpers/input.js';
|
21
21
|
import { I18nContext } from '../i18n/i18n-context.js';
|
22
22
|
import DatePopup from './date-popup.js';
|
23
|
-
import {
|
23
|
+
import { s as styles } from '../_helpers/date-picker.js';
|
24
24
|
import formats from './formats.js';
|
25
25
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
26
26
|
import 'core-js/modules/es.regexp.exec.js';
|
@@ -35,7 +35,6 @@ import 'combokeys';
|
|
35
35
|
import '../global/sniffer.js';
|
36
36
|
import 'sniffr';
|
37
37
|
import '../global/data-tests.js';
|
38
|
-
import 'core-js/modules/es.array.reduce.js';
|
39
38
|
import '../tab-trap/tab-trap.js';
|
40
39
|
import '../popup/position.js';
|
41
40
|
import 'core-js/modules/es.array.sort.js';
|
@@ -226,13 +225,13 @@ class DatePicker extends PureComponent {
|
|
226
225
|
render() {
|
227
226
|
var _this$props$disabled, _this$props$disabled2;
|
228
227
|
const anchorContent = /*#__PURE__*/jsxs("div", {
|
229
|
-
className:
|
228
|
+
className: styles.anchorContent,
|
230
229
|
children: [/*#__PURE__*/jsx(Icon, {
|
231
230
|
glyph: calendarIcon,
|
232
|
-
className:
|
231
|
+
className: styles.calendarIcon
|
233
232
|
}), this.getAnchorText(), /*#__PURE__*/jsx(Icon, {
|
234
233
|
glyph: chevronDownIcon,
|
235
|
-
className:
|
234
|
+
className: styles.chevronDownIcon
|
236
235
|
})]
|
237
236
|
});
|
238
237
|
const _this$props = this.props,
|
@@ -245,8 +244,8 @@ class DatePicker extends PureComponent {
|
|
245
244
|
translations
|
246
245
|
} = _this$props,
|
247
246
|
datePopupProps = _objectWithoutProperties(_this$props, _excluded2);
|
248
|
-
const classes = classNames(
|
249
|
-
[
|
247
|
+
const classes = classNames(styles.datePicker, className, styles["size".concat(this.props.size)], {
|
248
|
+
[styles.inline]: inline
|
250
249
|
});
|
251
250
|
return /*#__PURE__*/jsx(Dropdown, _objectSpread2(_objectSpread2({
|
252
251
|
className: classes,
|
@@ -254,13 +253,13 @@ class DatePicker extends PureComponent {
|
|
254
253
|
"data-test": "ring-date-picker",
|
255
254
|
anchor: inline ? /*#__PURE__*/jsx(Link, {
|
256
255
|
"data-test-ring-dropdown-anchor": true,
|
257
|
-
className:
|
256
|
+
className: styles.anchor,
|
258
257
|
disabled: (_this$props$disabled = this.props.disabled) !== null && _this$props$disabled !== void 0 ? _this$props$disabled : false,
|
259
258
|
pseudo: true,
|
260
259
|
children: this.getAnchorText()
|
261
260
|
}) : /*#__PURE__*/jsx(Button, _objectSpread2(_objectSpread2({
|
262
261
|
"data-test-ring-dropdown-anchor": true,
|
263
|
-
className:
|
262
|
+
className: styles.anchor,
|
264
263
|
text: false,
|
265
264
|
disabled: (_this$props$disabled2 = this.props.disabled) !== null && _this$props$disabled2 !== void 0 ? _this$props$disabled2 : false
|
266
265
|
}, this.props.buttonAttributes), {}, {
|
@@ -1,5 +1,4 @@
|
|
1
1
|
import { _ as _defineProperty, b as _objectSpread2, a as _objectWithoutProperties } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
|
-
import 'core-js/modules/es.array.reduce.js';
|
3
2
|
import * as React from 'react';
|
4
3
|
import { Component, createElement } from 'react';
|
5
4
|
import { isAfter } from 'date-fns/isAfter';
|
@@ -13,7 +12,7 @@ import Months from './months.js';
|
|
13
12
|
import Years from './years.js';
|
14
13
|
import Weekdays from './weekdays.js';
|
15
14
|
import { parseTime } from './consts.js';
|
16
|
-
import {
|
15
|
+
import { s as styles } from '../_helpers/date-picker.js';
|
17
16
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
18
17
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
19
18
|
import 'core-js/modules/es.regexp.exec.js';
|
@@ -368,11 +367,11 @@ class DatePopup extends Component {
|
|
368
367
|
});
|
369
368
|
const clearable = Boolean(this.props.onClear);
|
370
369
|
return /*#__PURE__*/jsxs("div", {
|
371
|
-
className:
|
370
|
+
className: styles.datePopup,
|
372
371
|
"data-test": "ring-date-popup",
|
373
372
|
ref: this.componentRef,
|
374
373
|
children: [/*#__PURE__*/jsxs("div", {
|
375
|
-
className:
|
374
|
+
className: styles.filterWrapper,
|
376
375
|
children: [names.map(name => {
|
377
376
|
let onClear;
|
378
377
|
if (clearable && name !== 'from' && !this.isInTimeMode()) {
|
@@ -408,7 +407,7 @@ class DatePopup extends Component {
|
|
408
407
|
}), /*#__PURE__*/jsx(Weekdays, {
|
409
408
|
locale: locale
|
410
409
|
}), /*#__PURE__*/jsxs("div", {
|
411
|
-
className:
|
410
|
+
className: styles.calendar,
|
412
411
|
children: [/*#__PURE__*/jsx(Months, _objectSpread2(_objectSpread2({}, calendarProps), {}, {
|
413
412
|
onHover: this.hoverHandler,
|
414
413
|
onSelect: this.selectHandler,
|