@jetbrains/ring-ui-built 7.0.0-beta.9 → 7.0.0
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/button__classes.js +13 -13
- package/components/_helpers/caption.js +3 -3
- package/components/_helpers/card.js +23 -20
- 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 +10 -10
- 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 +4 -4
- 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 +5 -6
- 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 +2 -3
- package/components/avatar/avatar.js +6 -6
- 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 +7 -7
- package/components/collapse/collapse-content.d.ts +1 -2
- package/components/collapse/collapse-content.js +25 -11
- 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 +1 -2
- 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 +16 -10
- package/components/data-list/item.js +8 -9
- package/components/date-picker/date-input.js +2 -2
- package/components/date-picker/date-picker.d.ts +2 -1
- package/components/date-picker/date-picker.js +12 -12
- 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.d.ts +1 -0
- package/components/dialog/dialog.js +22 -18
- 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 +5 -5
- package/components/error-message/error-message.js +6 -7
- package/components/footer/footer.js +9 -10
- 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 +5 -4
- package/components/grid/grid.js +5 -4
- package/components/grid/row.js +5 -5
- package/components/group/group.js +5 -3
- 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 +1 -2
- 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 +6 -7
- 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 +27 -28
- 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 +25 -25
- 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.d.ts +1 -2
- package/components/table/header.js +7 -14
- package/components/table/row-with-focus-sensor.js +0 -1
- package/components/table/row.d.ts +0 -1
- package/components/table/row.js +11 -18
- 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.d.ts +0 -1
- package/components/table/table.js +17 -20
- 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.d.ts +1 -1
- package/components/tag/tag.js +14 -15
- package/components/tags-input/tags-input.js +8 -9
- package/components/tags-list/tags-list.d.ts +2 -2
- package/components/tags-list/tags-list.js +2 -2
- 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 +12 -6
- package/components/user-agreement/service.js +1 -2
- package/components/user-agreement/user-agreement.js +7 -8
- package/components/user-card/card.js +3 -2
- package/components/user-card/smart-user-card-tooltip.js +5 -4
- package/components/user-card/tooltip.js +5 -4
- package/components/user-card/user-card.js +3 -2
- package/package.json +6 -5
- package/typings.d.ts +2 -4
- package/components/_helpers/badge.js +0 -3
- package/components/badge/badge.d.ts +0 -14
- package/components/badge/badge.js +0 -47
- 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
@@ -1,2 +1,2 @@
|
|
1
1
|
import { ButtonProps } from './button';
|
2
|
-
export declare function getButtonClasses({ className, active, disabled, loader, primary, short, inline, danger, delayed, icon, height, children }: ButtonProps): string;
|
2
|
+
export declare function getButtonClasses({ className, active, disabled, loader, primary, short, inline, danger, delayed, icon, height, children, }: ButtonProps): string;
|
@@ -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,13 +11,13 @@ 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 => {
|
20
|
-
const languageExports = await import(
|
20
|
+
const languageExports = await import(/* webpackChunkName: "highlight-[request]" */"highlight.js/lib/languages/".concat(language));
|
21
21
|
highlight.registerLanguage(language, languageExports.default);
|
22
22
|
});
|
23
23
|
/**
|
@@ -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;
|
@@ -41,13 +40,27 @@ const CollapseContent = _ref => {
|
|
41
40
|
height: 0
|
42
41
|
});
|
43
42
|
const [height, setHeight] = useState(toPx(minHeight));
|
44
|
-
const [showFade, setShowFade] = useState(
|
43
|
+
const [showFade, setShowFade] = useState(collapsed);
|
44
|
+
const [shouldHideContent, setShouldHideContent] = useState(collapsed && minHeight <= DEFAULT_HEIGHT);
|
45
45
|
useEffect(() => {
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
46
|
+
function onTransitionEnd() {
|
47
|
+
if (initialContentHeight.current <= DEFAULT_HEIGHT) {
|
48
|
+
setShouldHideContent(collapsed);
|
49
|
+
}
|
50
50
|
}
|
51
|
+
const container = containerRef.current;
|
52
|
+
if (container) {
|
53
|
+
container.addEventListener('transitionend', onTransitionEnd);
|
54
|
+
}
|
55
|
+
return () => {
|
56
|
+
if (container) {
|
57
|
+
container.removeEventListener('transitionend', onTransitionEnd);
|
58
|
+
}
|
59
|
+
};
|
60
|
+
}, [collapsed]);
|
61
|
+
useEffect(() => {
|
62
|
+
setShowFade(collapsed);
|
63
|
+
if (!collapsed) setShouldHideContent(false);
|
51
64
|
}, [collapsed]);
|
52
65
|
useEffect(() => {
|
53
66
|
if (contentRef.current) {
|
@@ -85,20 +98,21 @@ const CollapseContent = _ref => {
|
|
85
98
|
};
|
86
99
|
}, [duration, height, collapsed, minHeight]);
|
87
100
|
const fadeShouldBeVisible = useMemo(() => Boolean(minHeight && showFade), [minHeight, showFade]);
|
101
|
+
const shouldRenderContent = disableAnimation ? !collapsed : !shouldHideContent;
|
88
102
|
return /*#__PURE__*/jsxs("div", {
|
89
103
|
ref: containerRef,
|
90
104
|
id: "collapse-content-".concat(id),
|
91
105
|
"data-test": joinDataTestAttributes(COLLAPSE_CONTENT_CONTAINER_TEST_ID),
|
92
|
-
className: classNames(
|
93
|
-
[
|
106
|
+
className: classNames(styles.container, {
|
107
|
+
[styles.transition]: !disableAnimation
|
94
108
|
}),
|
95
109
|
style: style,
|
96
110
|
children: [/*#__PURE__*/jsx("div", {
|
97
111
|
ref: contentRef,
|
98
112
|
"data-test": joinDataTestAttributes(COLLAPSE_CONTENT_TEST_ID, dataTest),
|
99
|
-
children: children
|
113
|
+
children: shouldRenderContent ? children : null
|
100
114
|
}), fadeShouldBeVisible && /*#__PURE__*/jsx("div", {
|
101
|
-
className:
|
115
|
+
className: styles.fade
|
102
116
|
})]
|
103
117
|
});
|
104
118
|
};
|
@@ -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';
|
@@ -55,7 +54,7 @@ function renderConfirm(props) {
|
|
55
54
|
buttonsHeight = getGlobalControlsHeight()
|
56
55
|
} = props,
|
57
56
|
restProps = _objectWithoutProperties(props, _excluded);
|
58
|
-
reactRoot.render(
|
57
|
+
reactRoot.render(/*#__PURE__*/jsx(ControlsHeightContext.Provider, {
|
59
58
|
value: buttonsHeight,
|
60
59
|
children: /*#__PURE__*/jsx(Confirm, _objectSpread2({}, restProps))
|
61
60
|
}));
|
@@ -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
|
});
|
@@ -1,16 +1,25 @@
|
|
1
1
|
import Link from '../link/link.js';
|
2
|
-
import
|
2
|
+
import Tag from '../tag/tag.js';
|
3
3
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
4
4
|
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';
|
11
|
+
import '@jetbrains/icons/close-12px';
|
12
|
+
import '../icon/icon.js';
|
12
13
|
import 'util-deprecate';
|
13
|
-
import '../
|
14
|
+
import '../icon/icon__constants.js';
|
15
|
+
import '../_helpers/icon__svg.js';
|
16
|
+
import 'core-js/modules/es.regexp.exec.js';
|
17
|
+
import 'core-js/modules/es.string.replace.js';
|
18
|
+
import '../global/memoize.js';
|
19
|
+
import '../button/button.js';
|
20
|
+
import '@jetbrains/icons/chevron-down';
|
21
|
+
import '../global/controls-height.js';
|
22
|
+
import '../_helpers/button__classes.js';
|
14
23
|
|
15
24
|
const items = [{
|
16
25
|
id: 1,
|
@@ -81,8 +90,7 @@ const items = [{
|
|
81
90
|
children: "JetProfile"
|
82
91
|
}), /*#__PURE__*/jsx("span", {
|
83
92
|
children: " "
|
84
|
-
}), /*#__PURE__*/jsx(
|
85
|
-
gray: true,
|
93
|
+
}), /*#__PURE__*/jsx(Tag, {
|
86
94
|
children: "duplicate"
|
87
95
|
})]
|
88
96
|
})
|
@@ -209,7 +217,7 @@ const items = [{
|
|
209
217
|
children: "Developer"
|
210
218
|
}), /*#__PURE__*/jsx("span", {
|
211
219
|
children: " in 57 projects "
|
212
|
-
}), /*#__PURE__*/jsx(
|
220
|
+
}), /*#__PURE__*/jsx(Tag, {
|
213
221
|
children: "team role"
|
214
222
|
})]
|
215
223
|
}),
|
@@ -257,8 +265,7 @@ const moreItems = [{
|
|
257
265
|
children: "More item 1"
|
258
266
|
}), /*#__PURE__*/jsx("span", {
|
259
267
|
children: " "
|
260
|
-
}), /*#__PURE__*/jsx(
|
261
|
-
gray: true,
|
268
|
+
}), /*#__PURE__*/jsx(Tag, {
|
262
269
|
children: "duplicate"
|
263
270
|
})]
|
264
271
|
})
|
@@ -272,8 +279,7 @@ const moreItems = [{
|
|
272
279
|
children: "More item 2"
|
273
280
|
}), /*#__PURE__*/jsx("span", {
|
274
281
|
children: " "
|
275
|
-
}), /*#__PURE__*/jsx(
|
276
|
-
gray: true,
|
282
|
+
}), /*#__PURE__*/jsx(Tag, {
|
277
283
|
children: "duplicate"
|
278
284
|
})]
|
279
285
|
})
|
@@ -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,
|