@jetbrains/ring-ui-built 7.0.0-beta.12 → 7.0.0-beta.14
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 -12
- package/components/alert/container.js +3 -3
- package/components/auth/auth__core.js +1 -1
- package/components/auth/background-flow.js +2 -2
- package/components/auth/down-notification.js +3 -3
- package/components/auth/token-validator.js +1 -1
- package/components/auth-dialog/auth-dialog.js +10 -10
- package/components/auth-dialog-service/auth-dialog-service.js +1 -1
- package/components/avatar/avatar.js +6 -6
- package/components/badge/badge.js +6 -13
- 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 -3
- package/components/button-set/button-set.js +2 -2
- package/components/button-toolbar/button-toolbar.d.ts +1 -1
- package/components/button-toolbar/button-toolbar.js +2 -2
- package/components/checkbox/checkbox.js +8 -8
- package/components/code/code.d.ts +1 -1
- package/components/code/code.js +6 -6
- package/components/collapse/collapse-content.js +4 -4
- package/components/confirm/confirm.d.ts +2 -2
- package/components/confirm/confirm.js +3 -3
- package/components/confirm-service/confirm-service.d.ts +1 -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 -6
- package/components/data-list/data-list.mock.js +0 -1
- package/components/data-list/item.js +8 -8
- 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 -11
- package/components/date-picker/date-popup.js +4 -4
- 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 +21 -16
- package/components/dropdown/dropdown.d.ts +2 -2
- package/components/dropdown/dropdown.js +2 -2
- package/components/editable-heading/editable-heading.js +19 -19
- package/components/error-bubble/error-bubble.js +4 -4
- package/components/error-message/error-message.js +6 -6
- package/components/footer/footer.js +8 -8
- package/components/form/form.js +2 -3
- package/components/global/theme.js +1 -1
- package/components/grid/col.js +4 -4
- package/components/grid/grid.js +2 -2
- package/components/grid/row.js +4 -4
- package/components/group/group.js +2 -2
- package/components/header/header-icon.js +4 -4
- package/components/header/header.js +3 -3
- 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 -10
- package/components/header/services.js +7 -7
- 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 -4
- package/components/link/link.js +7 -7
- package/components/list/list.d.ts +1 -1
- package/components/list/list.js +5 -5
- package/components/list/list__custom.js +5 -5
- package/components/list/list__hint.js +2 -2
- package/components/list/list__item.js +22 -22
- package/components/list/list__link.js +5 -5
- package/components/list/list__separator.js +3 -3
- package/components/list/list__title.js +5 -5
- package/components/loader/loader__core.js +5 -5
- package/components/loader-inline/loader-inline.js +3 -3
- package/components/loader-screen/loader-screen.js +4 -4
- package/components/login-dialog/login-dialog.js +6 -6
- package/components/markdown/markdown.d.ts +2 -2
- package/components/markdown/markdown.js +6 -6
- package/components/message/message.js +9 -9
- package/components/old-browsers-message/white-list.js +2 -2
- package/components/pager/pager.js +9 -9
- package/components/panel/panel.js +2 -2
- package/components/permissions/permissions__cache.js +2 -2
- package/components/popup/popup.js +5 -5
- package/components/popup/position.js +2 -2
- 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 +26 -26
- 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 -21
- package/components/select/select__popup.js +11 -11
- package/components/shortcuts/core.js +1 -1
- package/components/slider/slider.js +20 -20
- package/components/style.css +1 -1
- package/components/tab-trap/tab-trap.js +2 -2
- package/components/table/cell.js +2 -2
- package/components/table/header-cell.js +8 -8
- package/components/table/header.d.ts +1 -2
- package/components/table/header.js +7 -13
- package/components/table/row.d.ts +0 -1
- package/components/table/row.js +11 -17
- package/components/table/selection.d.ts +2 -3
- package/components/table/simple-table.js +2 -2
- package/components/table/table.d.ts +0 -1
- package/components/table/table.js +17 -19
- package/components/tabs/collapsible-more.d.ts +1 -1
- package/components/tabs/collapsible-more.js +6 -6
- package/components/tabs/collapsible-tab.js +4 -4
- package/components/tabs/collapsible-tabs.d.ts +2 -2
- package/components/tabs/collapsible-tabs.js +5 -5
- package/components/tabs/dumb-tabs.js +5 -5
- package/components/tag/tag.js +13 -13
- package/components/tags-input/tags-input.js +8 -8
- package/components/text/text.js +7 -7
- package/components/toggle/toggle.d.ts +2 -2
- package/components/toggle/toggle.js +12 -12
- package/components/tooltip/tooltip.js +11 -4
- package/components/user-agreement/user-agreement.js +7 -7
- package/components/user-card/smart-user-card-tooltip.js +2 -2
- package/components/user-card/tooltip.js +2 -2
- package/package.json +6 -5
- 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
@@ -8,8 +8,8 @@ import Avatar, { Size } from '../avatar/avatar.js';
|
|
8
8
|
import Checkbox from '../checkbox/checkbox.js';
|
9
9
|
import Icon from '../icon/icon.js';
|
10
10
|
import getUID from '../global/get-uid.js';
|
11
|
-
import {
|
12
|
-
import {
|
11
|
+
import { s as styles } from '../_helpers/list.js';
|
12
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
13
13
|
import 'core-js/modules/es.array.reduce.js';
|
14
14
|
import '../global/url.js';
|
15
15
|
import 'core-js/modules/es.regexp.exec.js';
|
@@ -26,7 +26,7 @@ import '../icon/icon__constants.js';
|
|
26
26
|
import '../_helpers/icon__svg.js';
|
27
27
|
import '../global/memoize.js';
|
28
28
|
|
29
|
-
var
|
29
|
+
var globalStyles = {"breakpoint-small":"640px","breakpoint-middle":"960px","breakpoint-large":"1200px","extra-small-screen-media":"(max-width: 639px)","small-screen-media":"(min-width: 640px) and (max-width: 959px)","middle-screen-media":"(min-width: 960px) and (max-width: 1199px)","large-screen-media":"(min-width: 1200px)","clearfix":"clearfix_rui_f295","font":"font_rui_f295","font-lower":"font-lower_rui_f295 font_rui_f295","font-smaller":"font-smaller_rui_f295 font-lower_rui_f295 font_rui_f295","font-smaller-lower":"font-smaller-lower_rui_f295 font-smaller_rui_f295 font-lower_rui_f295 font_rui_f295","font-larger-lower":"font-larger-lower_rui_f295 font-lower_rui_f295 font_rui_f295","font-larger":"font-larger_rui_f295 font-larger-lower_rui_f295 font-lower_rui_f295 font_rui_f295","thin-font":"thin-font_rui_f295","monospace-font":"monospace-font_rui_f295","ellipsis":"ellipsis_rui_f295","resetButton":"resetButton_rui_f295"};
|
30
30
|
|
31
31
|
const _excluded = ["scrolling", "className", "disabled", "checkbox", "avatar", "subavatar", "glyph", "icon", "rightGlyph", "description", "label", "title", "details", "hover", "rgItemType", "level", "tabIndex", "compact", "onClick", "onCheckboxChange", "onMouseOver", "onMouseDown", "onMouseUp", "rightNodes", "leftNodes", "showGeneratedAvatar", "username", "labelWrapper"];
|
32
32
|
const RING_UNIT = 8;
|
@@ -76,16 +76,16 @@ class ListItem extends PureComponent {
|
|
76
76
|
const shouldShowGeneratedAvatar = showGeneratedAvatar && username != null;
|
77
77
|
const hasLeftNodes = leftNodes || glyph || avatar || shouldShowGeneratedAvatar;
|
78
78
|
const showCheckbox = checkable && (checkbox || !hasLeftNodes || hover && !disabled);
|
79
|
-
const classes = classNames(
|
80
|
-
[
|
81
|
-
[
|
82
|
-
[
|
83
|
-
[
|
84
|
-
[
|
79
|
+
const classes = classNames(styles.item, globalStyles.resetButton, className, {
|
80
|
+
[styles.action]: !disabled,
|
81
|
+
[styles.hover]: hover && !disabled,
|
82
|
+
[styles.compact]: compact,
|
83
|
+
[styles.scrolling]: scrolling,
|
84
|
+
[styles.disabled]: disabled
|
85
85
|
});
|
86
86
|
const detailsClasses = classNames({
|
87
|
-
[
|
88
|
-
[
|
87
|
+
[styles.details]: details,
|
88
|
+
[styles.padded]: icon !== undefined || checkbox !== undefined || glyph !== undefined
|
89
89
|
});
|
90
90
|
const style = {
|
91
91
|
paddingLeft: "".concat((Number(level) || 0) * RING_UNIT + DEFAULT_PADDING + (showCheckbox ? CHECKBOX_WIDTH : 0), "px")
|
@@ -105,16 +105,16 @@ class ListItem extends PureComponent {
|
|
105
105
|
'ring-list-item-selected': checkbox
|
106
106
|
}, restProps['data-test']);
|
107
107
|
const labelElement = /*#__PURE__*/jsx("span", {
|
108
|
-
className:
|
108
|
+
className: styles.label,
|
109
109
|
title: computedTitle,
|
110
110
|
"data-test": "ring-list-item-label",
|
111
111
|
children: label
|
112
112
|
});
|
113
113
|
return /*#__PURE__*/jsxs("div", {
|
114
|
-
className:
|
114
|
+
className: styles.itemContainer,
|
115
115
|
"data-test": dataTest,
|
116
116
|
children: [showCheckbox && /*#__PURE__*/jsx("div", {
|
117
|
-
className:
|
117
|
+
className: styles.checkboxContainer,
|
118
118
|
children: /*#__PURE__*/jsx(Checkbox, {
|
119
119
|
"aria-labelledby": this.id,
|
120
120
|
checked: checkbox,
|
@@ -135,36 +135,36 @@ class ListItem extends PureComponent {
|
|
135
135
|
style: style,
|
136
136
|
disabled: disabled,
|
137
137
|
children: [/*#__PURE__*/jsxs("div", {
|
138
|
-
className:
|
138
|
+
className: styles.top,
|
139
139
|
onMouseOut: this.stopBubbling,
|
140
140
|
onBlur: this.stopBubbling,
|
141
141
|
children: [!showCheckbox && /*#__PURE__*/jsxs("div", {
|
142
|
-
className:
|
142
|
+
className: styles.left,
|
143
143
|
children: [leftNodes, glyph && /*#__PURE__*/jsx(Icon, {
|
144
|
-
className:
|
144
|
+
className: styles.glyph,
|
145
145
|
glyph: glyph,
|
146
146
|
size: this.props.iconSize,
|
147
147
|
suppressSizeWarning: this.props.suppressSizeWarning
|
148
148
|
}), (avatar || shouldShowGeneratedAvatar) && /*#__PURE__*/jsx(Avatar, {
|
149
|
-
className:
|
149
|
+
className: styles.avatar,
|
150
150
|
url: avatar,
|
151
151
|
size: Size.Size20,
|
152
152
|
subavatar: subavatar,
|
153
153
|
username: username
|
154
154
|
})]
|
155
155
|
}), labelWrapper ? labelWrapper(labelElement) : labelElement, description && /*#__PURE__*/jsx("span", {
|
156
|
-
className:
|
156
|
+
className: styles.description,
|
157
157
|
"data-test": "ring-list-item-description",
|
158
158
|
children: description
|
159
159
|
}), /*#__PURE__*/jsxs("div", {
|
160
|
-
className:
|
160
|
+
className: styles.right,
|
161
161
|
children: [rightGlyph && /*#__PURE__*/jsx(Icon, {
|
162
|
-
className:
|
162
|
+
className: styles.rightGlyph,
|
163
163
|
glyph: rightGlyph,
|
164
164
|
suppressSizeWarning: this.props.suppressSizeWarning,
|
165
165
|
size: this.props.iconSize
|
166
166
|
}), icon && /*#__PURE__*/jsx("div", {
|
167
|
-
className:
|
167
|
+
className: styles.icon,
|
168
168
|
style: {
|
169
169
|
backgroundImage: "url(\"".concat(icon, "\")")
|
170
170
|
}
|
@@ -4,7 +4,7 @@ import { PureComponent } from 'react';
|
|
4
4
|
import classNames from 'classnames';
|
5
5
|
import Link, { linkHOC } from '../link/link.js';
|
6
6
|
import joinDataTestAttributes from '../global/data-tests.js';
|
7
|
-
import {
|
7
|
+
import { s as styles } from '../_helpers/list.js';
|
8
8
|
import { jsx } from 'react/jsx-runtime';
|
9
9
|
import '../link/clickableLink.js';
|
10
10
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
@@ -32,10 +32,10 @@ class ListLink extends PureComponent {
|
|
32
32
|
children
|
33
33
|
} = _this$props,
|
34
34
|
restProps = _objectWithoutProperties(_this$props, _excluded);
|
35
|
-
const classes = classNames(
|
36
|
-
[
|
37
|
-
[
|
38
|
-
[
|
35
|
+
const classes = classNames(styles.item, className, {
|
36
|
+
[styles.actionLink]: !disabled,
|
37
|
+
[styles.compact]: compact,
|
38
|
+
[styles.scrolling]: scrolling
|
39
39
|
});
|
40
40
|
const Comp = LinkComponent ? linkHOC(LinkComponent) : Link;
|
41
41
|
return /*#__PURE__*/jsx(Comp, _objectSpread2(_objectSpread2({
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import 'core-js/modules/es.symbol.description.js';
|
2
2
|
import { PureComponent } from 'react';
|
3
3
|
import classNames from 'classnames';
|
4
|
-
import {
|
4
|
+
import { s as styles } from '../_helpers/list.js';
|
5
5
|
import { jsx } from 'react/jsx-runtime';
|
6
6
|
|
7
7
|
class ListSeparator extends PureComponent {
|
@@ -11,8 +11,8 @@ class ListSeparator extends PureComponent {
|
|
11
11
|
isFirst,
|
12
12
|
className
|
13
13
|
} = this.props;
|
14
|
-
const classes = classNames(
|
15
|
-
[
|
14
|
+
const classes = classNames(styles.separator, className, {
|
15
|
+
[styles.separator_first]: isFirst
|
16
16
|
});
|
17
17
|
return /*#__PURE__*/jsx("span", {
|
18
18
|
className: classes,
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import 'core-js/modules/es.symbol.description.js';
|
2
2
|
import { PureComponent } from 'react';
|
3
3
|
import classNames from 'classnames';
|
4
|
-
import {
|
4
|
+
import { s as styles } from '../_helpers/list.js';
|
5
5
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
6
6
|
|
7
7
|
class ListTitle extends PureComponent {
|
@@ -12,18 +12,18 @@ class ListTitle extends PureComponent {
|
|
12
12
|
label,
|
13
13
|
isFirst
|
14
14
|
} = this.props;
|
15
|
-
const classes = classNames(
|
16
|
-
[
|
15
|
+
const classes = classNames(styles.title, className, {
|
16
|
+
[styles.title_first]: isFirst
|
17
17
|
});
|
18
18
|
return /*#__PURE__*/jsxs("span", {
|
19
19
|
className: classes,
|
20
20
|
"data-test": "ring-list-title",
|
21
21
|
children: [/*#__PURE__*/jsx("span", {
|
22
|
-
className: classNames(
|
22
|
+
className: classNames(styles.label, styles.text),
|
23
23
|
"data-test": "ring-list-title-label",
|
24
24
|
children: label
|
25
25
|
}), /*#__PURE__*/jsx("div", {
|
26
|
-
className:
|
26
|
+
className: styles.description,
|
27
27
|
"data-test": "ring-list-title-description",
|
28
28
|
children: description
|
29
29
|
})]
|
@@ -3,7 +3,7 @@ import 'core-js/modules/es.regexp.exec.js';
|
|
3
3
|
import { getPixelRatio } from '../global/dom.js';
|
4
4
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
5
5
|
|
6
|
-
var
|
6
|
+
var styles = {"canvas":"canvas_rui_eff2","animate":"animate_rui_eff2","rotation-keyframes":"rotation-keyframes_rui_eff2","text":"text_rui_eff2"};
|
7
7
|
|
8
8
|
const INITIAL_TICKS = 100;
|
9
9
|
class Particle {
|
@@ -79,10 +79,10 @@ class LoaderCore {
|
|
79
79
|
this.props = Object.assign({}, LoaderCore.defaultProps, props);
|
80
80
|
this.canvas = document.createElement('canvas');
|
81
81
|
this.canvas.dataset.test = 'ring-loader';
|
82
|
-
this.canvas.classList.add(
|
82
|
+
this.canvas.classList.add(styles.canvas);
|
83
83
|
this.textNode = document.createElement('div');
|
84
84
|
this.textNode.dataset.test = 'ring-loader-text';
|
85
|
-
this.textNode.classList.add(
|
85
|
+
this.textNode.classList.add(styles.text);
|
86
86
|
this.textNode.textContent = this.props.message ? this.props.message : '';
|
87
87
|
containerNode.appendChild(this.canvas);
|
88
88
|
containerNode.appendChild(this.textNode);
|
@@ -202,11 +202,11 @@ class LoaderCore {
|
|
202
202
|
}
|
203
203
|
stopAnimation() {
|
204
204
|
this.isRunning = false;
|
205
|
-
this.canvas.classList.remove(
|
205
|
+
this.canvas.classList.remove(styles.animate);
|
206
206
|
}
|
207
207
|
startAnimation() {
|
208
208
|
this.isRunning = true;
|
209
|
-
this.canvas.classList.add(
|
209
|
+
this.canvas.classList.add(styles.animate);
|
210
210
|
this.loop();
|
211
211
|
}
|
212
212
|
destroy() {
|
@@ -6,7 +6,7 @@ import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
6
6
|
import 'core-js/modules/es.array.reduce.js';
|
7
7
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
8
8
|
|
9
|
-
var
|
9
|
+
var styles = {"loader":"loader_rui_092a","spin":"spin_rui_092a","pulse":"pulse_rui_092a","children":"children_rui_092a"};
|
10
10
|
|
11
11
|
const _excluded = ["className", "data-test", "children"];
|
12
12
|
class LoaderInline extends PureComponent {
|
@@ -18,14 +18,14 @@ class LoaderInline extends PureComponent {
|
|
18
18
|
children
|
19
19
|
} = _this$props,
|
20
20
|
restProps = _objectWithoutProperties(_this$props, _excluded);
|
21
|
-
const classes = classNames(
|
21
|
+
const classes = classNames(styles.loader, className);
|
22
22
|
const loader = /*#__PURE__*/jsx("div", _objectSpread2(_objectSpread2({}, restProps), {}, {
|
23
23
|
"data-test": joinDataTestAttributes('ring-loader-inline', dataTest),
|
24
24
|
className: classes
|
25
25
|
}));
|
26
26
|
return children ? /*#__PURE__*/jsxs(Fragment, {
|
27
27
|
children: [loader, /*#__PURE__*/jsx("span", {
|
28
|
-
className:
|
28
|
+
className: styles.children,
|
29
29
|
children: children
|
30
30
|
})]
|
31
31
|
}) : loader;
|
@@ -10,7 +10,7 @@ import '../loader/loader__core.js';
|
|
10
10
|
import 'core-js/modules/es.regexp.exec.js';
|
11
11
|
import '../global/dom.js';
|
12
12
|
|
13
|
-
var
|
13
|
+
var styles = {"loaderScreen":"loaderScreen_rui_90dd","loader":"loader_rui_90dd","loaderWithoutSpacing":"loaderWithoutSpacing_rui_90dd"};
|
14
14
|
|
15
15
|
const _excluded = ["message", "className", "containerClassName"];
|
16
16
|
class LoaderScreen extends PureComponent {
|
@@ -22,9 +22,9 @@ class LoaderScreen extends PureComponent {
|
|
22
22
|
containerClassName
|
23
23
|
} = _this$props,
|
24
24
|
restProps = _objectWithoutProperties(_this$props, _excluded);
|
25
|
-
const containerClasses = classNames(containerClassName,
|
26
|
-
const loaderClasses = classNames(className,
|
27
|
-
[
|
25
|
+
const containerClasses = classNames(containerClassName, styles.loaderScreen);
|
26
|
+
const loaderClasses = classNames(className, styles.loader, {
|
27
|
+
[styles.loaderWithoutSpacing]: !message
|
28
28
|
});
|
29
29
|
return /*#__PURE__*/jsx("div", {
|
30
30
|
className: containerClasses,
|
@@ -5,6 +5,7 @@ import Dialog from '../dialog/dialog.js';
|
|
5
5
|
import 'classnames';
|
6
6
|
import 'core-js/modules/es.array.reduce.js';
|
7
7
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
8
|
+
import '../_helpers/island.js';
|
8
9
|
import '../island/header.js';
|
9
10
|
import ContentWrapper from '../island/content.js';
|
10
11
|
import LoaderScreen from '../loader-screen/loader-screen.js';
|
@@ -15,7 +16,6 @@ import '../island/island.js';
|
|
15
16
|
import '../global/data-tests.js';
|
16
17
|
import '../island/adaptive-island-hoc.js';
|
17
18
|
import '../global/linear-function.js';
|
18
|
-
import '../_helpers/island.js';
|
19
19
|
import 'element-resize-detector';
|
20
20
|
import '../global/schedule-raf.js';
|
21
21
|
import '../global/get-uid.js';
|
@@ -47,7 +47,7 @@ import '../auth/response-parser.js';
|
|
47
47
|
import 'es6-error';
|
48
48
|
import '../global/url.js';
|
49
49
|
|
50
|
-
var
|
50
|
+
var styles = {"iFrame":"iFrame_rui_2d2e","dialogContent":"dialogContent_rui_2d2e","nonOpaqueLoader":"nonOpaqueLoader_rui_2d2e","fallbackLinkContainer":"fallbackLinkContainer_rui_2d2e"};
|
51
51
|
|
52
52
|
const HUB_AUTH_PAGE_LOGIN_STARTED = 'HUB_AUTH_PAGE_LOGIN_STARTED';
|
53
53
|
const HUB_AUTH_PAGE_LOGIN_DIMENSIONS = 'HUB_AUTH_PAGE_LOGIN_DIMENSIONS';
|
@@ -134,7 +134,7 @@ class LoginDialog extends Component {
|
|
134
134
|
return /*#__PURE__*/jsxs(Dialog, {
|
135
135
|
"data-test": "ring-login-dialog",
|
136
136
|
className: className,
|
137
|
-
contentClassName:
|
137
|
+
contentClassName: styles.dialogContent,
|
138
138
|
trapFocus: true,
|
139
139
|
autoFocusFirst: false,
|
140
140
|
show: show,
|
@@ -145,14 +145,14 @@ class LoginDialog extends Component {
|
|
145
145
|
title: "Login dialog",
|
146
146
|
style: iFrameStyle,
|
147
147
|
src: url,
|
148
|
-
className:
|
148
|
+
className: styles.iFrame,
|
149
149
|
scrolling: "no"
|
150
150
|
})
|
151
151
|
}), loading && /*#__PURE__*/jsx(LoaderScreen, {
|
152
152
|
message: loadingMessage,
|
153
|
-
containerClassName:
|
153
|
+
containerClassName: styles.nonOpaqueLoader
|
154
154
|
}), showFallbackLink && /*#__PURE__*/jsx("div", {
|
155
|
-
className:
|
155
|
+
className: styles.fallbackLinkContainer,
|
156
156
|
children: renderFallbackLink(loggingIn)
|
157
157
|
})]
|
158
158
|
});
|
@@ -1,10 +1,10 @@
|
|
1
1
|
import { PureComponent } from 'react';
|
2
2
|
import classNames from 'classnames';
|
3
|
-
import {
|
4
|
-
import {
|
3
|
+
import { s as styles$1 } from '../_helpers/heading.js';
|
4
|
+
import { l as linkStyles } from '../_helpers/link.js';
|
5
5
|
import { jsx } from 'react/jsx-runtime';
|
6
6
|
|
7
|
-
var
|
7
|
+
var styles = {"inline":"inline_rui_9a22","markdown":"markdown_rui_9a22 font_rui_f295"};
|
8
8
|
|
9
9
|
class Markdown extends PureComponent {
|
10
10
|
render() {
|
@@ -13,9 +13,9 @@ class Markdown extends PureComponent {
|
|
13
13
|
children,
|
14
14
|
inline
|
15
15
|
} = this.props;
|
16
|
-
const classes = classNames(className,
|
17
|
-
[
|
18
|
-
[
|
16
|
+
const classes = classNames(className, styles$1.contentWithHeadings, linkStyles.withLinks, {
|
17
|
+
[styles.markdown]: !inline,
|
18
|
+
[styles.inline]: inline
|
19
19
|
});
|
20
20
|
return /*#__PURE__*/jsx("div", {
|
21
21
|
className: classes,
|
@@ -9,7 +9,7 @@ import { Directions } from '../popup/popup.consts.js';
|
|
9
9
|
import Icon from '../icon/icon.js';
|
10
10
|
import { Button } from '../button/button.js';
|
11
11
|
import { I18nContext } from '../i18n/i18n-context.js';
|
12
|
-
import { T as Theme,
|
12
|
+
import { T as Theme, d as darkStyles, W as WithThemeClasses, a as ThemeProvider } from '../_helpers/theme.js';
|
13
13
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
14
14
|
import 'core-js/modules/es.regexp.exec.js';
|
15
15
|
import 'core-js/modules/es.string.replace.js';
|
@@ -38,7 +38,7 @@ import '../global/controls-height.js';
|
|
38
38
|
import '../_helpers/button__classes.js';
|
39
39
|
import '../i18n/i18n.js';
|
40
40
|
|
41
|
-
var
|
41
|
+
var styles = {"container":"container_rui_a216","message":"message_rui_a216","icon":"icon_rui_a216","title":"title_rui_a216 font-lower_rui_f295 font_rui_f295","description":"description_rui_a216","gotIt":"gotIt_rui_a216","tail":"tail_rui_a216"};
|
42
42
|
|
43
43
|
const UNIT = 8;
|
44
44
|
const TAIL_SIZE = 11;
|
@@ -156,10 +156,10 @@ class Message extends Component {
|
|
156
156
|
translations,
|
157
157
|
theme
|
158
158
|
} = this.props;
|
159
|
-
const classes = classNames(
|
160
|
-
[
|
159
|
+
const classes = classNames(styles.message, className, {
|
160
|
+
[darkStyles.dark]: theme === Theme.DARK
|
161
161
|
});
|
162
|
-
const tailClasses = classNames(
|
162
|
+
const tailClasses = classNames(styles.tail, tailClassName);
|
163
163
|
const popupDirections = this.props.direction ? [this.props.direction] : this.props.directions;
|
164
164
|
const {
|
165
165
|
direction
|
@@ -188,17 +188,17 @@ class Message extends Component {
|
|
188
188
|
className: tailClasses,
|
189
189
|
style: getTailOffsets(this.getTailOffset())[direction]
|
190
190
|
}), icon && /*#__PURE__*/jsx(Icon, {
|
191
|
-
className:
|
191
|
+
className: styles.icon,
|
192
192
|
glyph: icon
|
193
193
|
}), title && /*#__PURE__*/jsx("h1", {
|
194
194
|
"data-test": "rgMessageTitle",
|
195
|
-
className:
|
195
|
+
className: styles.title,
|
196
196
|
children: title
|
197
197
|
}), children && /*#__PURE__*/jsx("div", {
|
198
|
-
className:
|
198
|
+
className: styles.description,
|
199
199
|
children: children
|
200
200
|
}), (onClose || buttonProps) && /*#__PURE__*/jsx(Button, _objectSpread2(_objectSpread2({
|
201
|
-
className:
|
201
|
+
className: styles.gotIt,
|
202
202
|
onClick: onClose,
|
203
203
|
primary: true
|
204
204
|
}, buttonProps), {}, {
|
@@ -9,11 +9,11 @@ const MAJOR_VERSION_INDEX = 0;
|
|
9
9
|
/**
|
10
10
|
* SUPPORTED_BROWSERS are defined by Babel plugin, see babel config
|
11
11
|
*/
|
12
|
-
if (!["and_chr
|
12
|
+
if (!["and_chr 130", "and_uc 15.5", "chrome 128", "chrome 127", "chrome 126", "chrome 109", "edge 127", "firefox 129", "ios_saf 17.6", "ios_saf 17.5", "op_mob 80", "safari 17.5", "samsung 25"]) {
|
13
13
|
// eslint-disable-next-line no-console
|
14
14
|
console.warn('Ring UI: no SUPPORTED_BROWSERS passed. Please check babel config.');
|
15
15
|
}
|
16
|
-
const SUPPORTED = ["and_chr
|
16
|
+
const SUPPORTED = ["and_chr 130", "and_uc 15.5", "chrome 128", "chrome 127", "chrome 126", "chrome 109", "edge 127", "firefox 129", "ios_saf 17.6", "ios_saf 17.5", "op_mob 80", "safari 17.5", "samsung 25"] || [];
|
17
17
|
const WHITE_LISTED_BROWSERS = ['chrome', 'firefox', 'safari', 'edge'];
|
18
18
|
const WHITE_LIST = SUPPORTED.reduce((acc, item) => {
|
19
19
|
var _item$match;
|
@@ -88,7 +88,7 @@ import '../text/text.js';
|
|
88
88
|
import '../_helpers/select__filter.js';
|
89
89
|
import '../i18n/i18n.js';
|
90
90
|
|
91
|
-
var
|
91
|
+
var style = {"pager":"pager_rui_ad65","links":"links_rui_ad65","link":"link_rui_ad65","linkDisabled":"linkDisabled_rui_ad65","actions":"actions_rui_ad65","pageSize":"pageSize_rui_ad65"};
|
92
92
|
|
93
93
|
class Pager extends PureComponent {
|
94
94
|
constructor() {
|
@@ -189,7 +189,7 @@ class Pager extends PureComponent {
|
|
189
189
|
const selectOptions = this.getSelectOptions();
|
190
190
|
return !this.props.disablePageSizeSelector && /*#__PURE__*/jsx("div", {
|
191
191
|
"data-test": "ring-pager-page-size-selector",
|
192
|
-
className:
|
192
|
+
className: style.pageSize,
|
193
193
|
children: /*#__PURE__*/jsx(Select, {
|
194
194
|
data: selectOptions.data,
|
195
195
|
selected: selectOptions.selected,
|
@@ -223,14 +223,14 @@ class Pager extends PureComponent {
|
|
223
223
|
const prevLinkHref = this.generateHref(this.props.currentPage - 1);
|
224
224
|
const nextLinkHref = this.generateHref(this.props.currentPage + 1);
|
225
225
|
const disabledLinkClasses = classNames({
|
226
|
-
[
|
227
|
-
[
|
226
|
+
[style.link]: true,
|
227
|
+
[style.linkDisabled]: true
|
228
228
|
});
|
229
229
|
return /*#__PURE__*/jsxs("div", {
|
230
|
-
className:
|
230
|
+
className: style.links,
|
231
231
|
children: [prevLinkAvailable && (!this.props.loader || this.props.loaderNavigation) ? /*#__PURE__*/jsx(Link, _objectSpread2(_objectSpread2({
|
232
232
|
href: prevLinkHref,
|
233
|
-
className:
|
233
|
+
className: style.link
|
234
234
|
}, this.getClickProps(this.handlePrevClick)), {}, {
|
235
235
|
children: prevLinkContent
|
236
236
|
})) : /*#__PURE__*/jsxs("span", {
|
@@ -240,7 +240,7 @@ class Pager extends PureComponent {
|
|
240
240
|
}, "text")]
|
241
241
|
}), nextLinkAvailable && (!this.props.loader || this.props.loaderNavigation) ? /*#__PURE__*/jsx(Link, _objectSpread2(_objectSpread2({
|
242
242
|
href: nextLinkHref,
|
243
|
-
className:
|
243
|
+
className: style.link
|
244
244
|
}, this.getClickProps(this.handleNextClick)), {}, {
|
245
245
|
children: nextLinkContent
|
246
246
|
})) : /*#__PURE__*/jsxs("span", {
|
@@ -300,7 +300,7 @@ class Pager extends PureComponent {
|
|
300
300
|
const lastPageButtonAvailable = !this.props.disableLastPageButton && end < totalPages && !this.props.openTotal || this.props.openTotal && this.props.canLoadLastPageWithOpenTotal;
|
301
301
|
return /*#__PURE__*/jsxs("div", {
|
302
302
|
children: [this.getPagerLinks(), /*#__PURE__*/jsxs("div", {
|
303
|
-
className:
|
303
|
+
className: style.actions,
|
304
304
|
children: [/*#__PURE__*/jsxs(ButtonToolbar, {
|
305
305
|
children: [start > 1 && this.getButton(1, (_this$props$translati7 = (_this$props$translati8 = this.props.translations) === null || _this$props$translati8 === void 0 ? void 0 : _this$props$translati8.firstPage) !== null && _this$props$translati7 !== void 0 ? _this$props$translati7 : translate('firstPage')), /*#__PURE__*/jsxs(ButtonGroup, {
|
306
306
|
children: [start > 1 && this.getButton(start - 1, '...'), buttons, end < totalPages && this.getButton(end + 1, '...'), end === totalPages && this.props.openTotal && /*#__PURE__*/jsx(Button, _objectSpread2(_objectSpread2({
|
@@ -315,7 +315,7 @@ class Pager extends PureComponent {
|
|
315
315
|
});
|
316
316
|
}
|
317
317
|
render() {
|
318
|
-
const classes = classNames(
|
318
|
+
const classes = classNames(style.pager, this.props.className);
|
319
319
|
return /*#__PURE__*/jsx("div", {
|
320
320
|
"data-test": "ring-pager",
|
321
321
|
className: classes,
|
@@ -3,7 +3,7 @@ import { PureComponent } from 'react';
|
|
3
3
|
import classNames from 'classnames';
|
4
4
|
import { jsx } from 'react/jsx-runtime';
|
5
5
|
|
6
|
-
var
|
6
|
+
var styles = {"panel":"panel_rui_e32c panel_rui_027b"};
|
7
7
|
|
8
8
|
const _excluded = ["className", "children"];
|
9
9
|
class Panel extends PureComponent {
|
@@ -14,7 +14,7 @@ class Panel extends PureComponent {
|
|
14
14
|
children
|
15
15
|
} = _this$props,
|
16
16
|
props = _objectWithoutProperties(_this$props, _excluded);
|
17
|
-
const classes = classNames(
|
17
|
+
const classes = classNames(styles.panel, className);
|
18
18
|
return /*#__PURE__*/jsx("div", _objectSpread2(_objectSpread2({}, props), {}, {
|
19
19
|
className: classes,
|
20
20
|
children: children
|
@@ -140,7 +140,7 @@ class PermissionCache {
|
|
140
140
|
let result = this.and(lexems, projectId);
|
141
141
|
while (lexems.length > 0 && lexems[0] !== ')') {
|
142
142
|
if (lexems.shift() !== '|') {
|
143
|
-
throw new Error(
|
143
|
+
throw new Error("Operator '|' was expected");
|
144
144
|
}
|
145
145
|
result = this.and(lexems, projectId) || result;
|
146
146
|
}
|
@@ -192,7 +192,7 @@ class PermissionCache {
|
|
192
192
|
result = this.or(lexems, projectId);
|
193
193
|
// Expect ')'
|
194
194
|
if (lexems.shift() !== ')') {
|
195
|
-
throw new Error(
|
195
|
+
throw new Error("Operator ')' was expected");
|
196
196
|
}
|
197
197
|
} else {
|
198
198
|
result = t != null && this.testPermission(t, projectId);
|
@@ -22,7 +22,7 @@ import 'sniffr';
|
|
22
22
|
import 'core-js/modules/es.array.reduce.js';
|
23
23
|
import 'core-js/modules/es.array.sort.js';
|
24
24
|
|
25
|
-
var
|
25
|
+
var styles = {"popup":"popup_rui_871b font_rui_f295","hidden":"hidden_rui_871b","showing":"showing_rui_871b","attached":"attached_rui_871b"};
|
26
26
|
|
27
27
|
const isPossibleClientSideNavigation = event => {
|
28
28
|
const target = event.target;
|
@@ -287,10 +287,10 @@ class Popup extends PureComponent {
|
|
287
287
|
'data-test': dataTest
|
288
288
|
} = this.props;
|
289
289
|
const showing = this.state.display === Display.SHOWING;
|
290
|
-
const classes = classNames(className,
|
291
|
-
[
|
292
|
-
[
|
293
|
-
[
|
290
|
+
const classes = classNames(className, styles.popup, {
|
291
|
+
[styles.attached]: attached,
|
292
|
+
[styles.hidden]: hidden,
|
293
|
+
[styles.showing]: showing
|
294
294
|
});
|
295
295
|
const direction = (this.state.direction || '').toLowerCase().replace(/[_]/g, '-');
|
296
296
|
return /*#__PURE__*/jsx(PopupTargetContext.Consumer, {
|
@@ -206,9 +206,9 @@ function position(attrs) {
|
|
206
206
|
styles = directionsMatrix[directions[0]];
|
207
207
|
chosenDirection = directions[0];
|
208
208
|
} else {
|
209
|
-
const sortedByIncreasingOverflow = directions
|
209
|
+
const sortedByIncreasingOverflow = directions
|
210
210
|
// Fall back to the first option
|
211
|
-
concat(directions[0]).filter(direction => directionsMatrix[direction]).map(direction => ({
|
211
|
+
.concat(directions[0]).filter(direction => directionsMatrix[direction]).map(direction => ({
|
212
212
|
styles: directionsMatrix[direction],
|
213
213
|
direction
|
214
214
|
})).sort((_ref2, _ref3) => {
|
@@ -41,9 +41,9 @@ export default class ProgressBar extends PureComponent<ProgressBarProps> {
|
|
41
41
|
value: number;
|
42
42
|
label: string;
|
43
43
|
};
|
44
|
-
progressbarWrapper?:
|
44
|
+
progressbarWrapper?: HTMLElement | null;
|
45
45
|
progressbarWrapperRef: (el: HTMLElement | null) => void;
|
46
|
-
progressbar?:
|
46
|
+
progressbar?: HTMLElement | null;
|
47
47
|
progressbarRef: (el: HTMLElement | null) => void;
|
48
48
|
render(): import("react").JSX.Element;
|
49
49
|
}
|
@@ -4,7 +4,7 @@ import { PureComponent } from 'react';
|
|
4
4
|
import classNames from 'classnames';
|
5
5
|
import { jsx } from 'react/jsx-runtime';
|
6
6
|
|
7
|
-
var
|
7
|
+
var styles = {"progressBar":"progressBar_rui_7662","globalMode":"globalMode_rui_7662","line":"line_rui_7662","progress-bar-animation":"progress-bar-animation_rui_7662","staticLineColor":"staticLineColor_rui_7662"};
|
8
8
|
|
9
9
|
const _excluded = ["className", "global", "max", "value", "label", "staticColor"];
|
10
10
|
class ProgressBar extends PureComponent {
|
@@ -42,15 +42,15 @@ class ProgressBar extends PureComponent {
|
|
42
42
|
} = _this$props,
|
43
43
|
otherProps = _objectWithoutProperties(_this$props, _excluded);
|
44
44
|
const width = value ? "".concat(ProgressBar.toPercent(value, max), "%") : undefined;
|
45
|
-
const classes = classNames(
|
46
|
-
[
|
47
|
-
[
|
45
|
+
const classes = classNames(styles.progressBar, className, {
|
46
|
+
[styles.globalMode]: global,
|
47
|
+
[styles.staticLineColor]: staticColor
|
48
48
|
});
|
49
49
|
return /*#__PURE__*/jsx("div", _objectSpread2(_objectSpread2({}, otherProps), {}, {
|
50
50
|
className: classes,
|
51
51
|
ref: this.progressbarWrapperRef,
|
52
52
|
children: /*#__PURE__*/jsx("div", {
|
53
|
-
className:
|
53
|
+
className: styles.line,
|
54
54
|
ref: this.progressbarRef,
|
55
55
|
role: "progressbar",
|
56
56
|
"aria-label": label,
|