@jetbrains/ring-ui-built 7.0.0-beta.13 → 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 -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 -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/item.js +8 -8
- package/components/date-picker/date-input.js +2 -2
- package/components/date-picker/date-picker.js +8 -8
- 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.js +13 -13
- 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 +25 -25
- 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.js +6 -6
- package/components/table/row.js +10 -10
- package/components/table/selection.d.ts +2 -3
- package/components/table/simple-table.js +2 -2
- package/components/table/table.js +12 -12
- 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 +3 -3
- 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 +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
@@ -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,
|
@@ -21,9 +21,9 @@ import rerenderHOC from '../global/rerender-hoc.js';
|
|
21
21
|
import { Button } from '../button/button.js';
|
22
22
|
import Icon from '../icon/icon.js';
|
23
23
|
import { ControlsHeightContext, ControlsHeight } from '../global/controls-height.js';
|
24
|
-
import { S as Size,
|
24
|
+
import { S as Size, i as inputStyles } from '../_helpers/input.js';
|
25
25
|
import { I18nContext } from '../i18n/i18n-context.js';
|
26
|
-
import { Q as QueryAssistSuggestions,
|
26
|
+
import { Q as QueryAssistSuggestions, s as styles } from '../_helpers/query-assist__suggestions.js';
|
27
27
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
28
28
|
import 'core-js/modules/es.array.reduce.js';
|
29
29
|
import 'react-dom/server';
|
@@ -737,7 +737,7 @@ class QueryAssist extends Component {
|
|
737
737
|
} = this.state;
|
738
738
|
const classes = [];
|
739
739
|
const LETTER_CLASS = 'letter';
|
740
|
-
const LETTER_DEFAULT_CLASS =
|
740
|
+
const LETTER_DEFAULT_CLASS = styles.letterDefault;
|
741
741
|
if (styleRanges && styleRanges.length) {
|
742
742
|
styleRanges.forEach((item, index) => {
|
743
743
|
if (dirty && index === styleRanges.length - 1 && item.style === 'text') {
|
@@ -745,12 +745,12 @@ class QueryAssist extends Component {
|
|
745
745
|
}
|
746
746
|
const styleName = "".concat(LETTER_CLASS, "-").concat(item.style.replace('_', '-'));
|
747
747
|
for (let i = item.start; i < item.start + item.length; i++) {
|
748
|
-
classes[i] =
|
748
|
+
classes[i] = styles[styleName];
|
749
749
|
}
|
750
750
|
});
|
751
751
|
}
|
752
752
|
return query && Array.from(query).map((letter, index, letters) => {
|
753
|
-
const className = classNames(
|
753
|
+
const className = classNames(styles.letter, classes[index] || LETTER_DEFAULT_CLASS);
|
754
754
|
const dataTest = letters.length - 1 === index ? 'ring-query-assist-last-letter' : null;
|
755
755
|
// \u00a0 ===
|
756
756
|
return /*#__PURE__*/jsx("span", {
|
@@ -787,7 +787,7 @@ class QueryAssist extends Component {
|
|
787
787
|
} = _ref6;
|
788
788
|
return /*#__PURE__*/jsx(Button, {
|
789
789
|
icon: closeIcon,
|
790
|
-
className:
|
790
|
+
className: styles.clear,
|
791
791
|
title: (_this$props$translati = (_this$props$translati2 = this.props.translations) === null || _this$props$translati2 === void 0 ? void 0 : _this$props$translati2.clearTitle) !== null && _this$props$translati !== void 0 ? _this$props$translati : translate('clearTitle'),
|
792
792
|
ref: this.clearRef,
|
793
793
|
onClick: this.clearQuery,
|
@@ -812,23 +812,23 @@ class QueryAssist extends Component {
|
|
812
812
|
const renderLoader = this.props.loader !== false && this.state.loading;
|
813
813
|
const renderGlass = glass && !renderLoader;
|
814
814
|
const actions = this.renderActions();
|
815
|
-
const containerClasses = classNames(className,
|
816
|
-
[
|
817
|
-
[
|
818
|
-
[
|
819
|
-
[
|
815
|
+
const containerClasses = classNames(className, inputStyles["size".concat(huge ? Size.FULL : size)], {
|
816
|
+
[styles.queryAssist]: true,
|
817
|
+
[styles.withIcon]: renderGlass && !huge || renderLoader,
|
818
|
+
[styles.huge]: huge,
|
819
|
+
[styles.queryAssistDisabled]: this.props.disabled
|
820
820
|
});
|
821
821
|
const inputClasses = classNames(this.props.inputClassName, {
|
822
|
-
["".concat(
|
823
|
-
[
|
824
|
-
[
|
822
|
+
["".concat(styles.input, " ring-js-shortcuts")]: true,
|
823
|
+
[styles.inputGap]: actions.length || this.isRenderingGlassOrLoader() && !glass,
|
824
|
+
[styles.inputGap2]: actions.length === 2,
|
825
825
|
// TODO: replace with flex-box layout
|
826
|
-
[
|
826
|
+
[styles.inputRevertOrder]: !glass || huge
|
827
827
|
});
|
828
828
|
const placeholderStyles = classNames({
|
829
|
-
[
|
830
|
-
[
|
831
|
-
[
|
829
|
+
[styles.placeholder]: true,
|
830
|
+
[styles.hugePlaceholder]: huge,
|
831
|
+
[styles.withoutGlass]: !glass || !renderLoader && huge
|
832
832
|
});
|
833
833
|
return /*#__PURE__*/jsx(ControlsHeightContext.Provider, {
|
834
834
|
value: ControlsHeight.M,
|
@@ -848,14 +848,14 @@ class QueryAssist extends Component {
|
|
848
848
|
scope: this.shortcutsScope
|
849
849
|
}), renderGlass && !huge && /*#__PURE__*/jsx(Icon, {
|
850
850
|
glyph: searchIcon,
|
851
|
-
className:
|
851
|
+
className: styles.icon,
|
852
852
|
title: (_translations$searchT = translations === null || translations === void 0 ? void 0 : translations.searchTitle) !== null && _translations$searchT !== void 0 ? _translations$searchT : translate('searchTitle'),
|
853
853
|
ref: this.glassRef,
|
854
854
|
"data-test": "query-assist-search-icon"
|
855
855
|
}), renderLoader && /*#__PURE__*/jsx("div", {
|
856
|
-
className: classNames(
|
857
|
-
[
|
858
|
-
[
|
856
|
+
className: classNames(styles.icon, styles.loader, {
|
857
|
+
[styles.loaderOnTheRight]: !glass && !huge,
|
858
|
+
[styles.loaderActive]: renderLoader
|
859
859
|
}),
|
860
860
|
ref: this.loaderRef,
|
861
861
|
children: /*#__PURE__*/jsx(LoaderInline, {})
|
@@ -893,7 +893,7 @@ class QueryAssist extends Component {
|
|
893
893
|
children: this.props.placeholder
|
894
894
|
}), actions.length ? /*#__PURE__*/jsx("div", {
|
895
895
|
"data-test": "ring-query-assist-actions",
|
896
|
-
className:
|
896
|
+
className: styles.actions,
|
897
897
|
children: actions
|
898
898
|
}) : null, /*#__PURE__*/jsx(PopupMenu, {
|
899
899
|
hidden: !this.state.showPopup,
|
@@ -915,11 +915,11 @@ class QueryAssist extends Component {
|
|
915
915
|
onMouseUp: this.trackPopupMouseState,
|
916
916
|
onSelect: item => this.handleComplete(item)
|
917
917
|
}), glass && huge && /*#__PURE__*/jsx("div", {
|
918
|
-
className:
|
918
|
+
className: styles.rightSearchButton,
|
919
919
|
"data-test": "query-assist-search-button",
|
920
920
|
children: /*#__PURE__*/jsx(Icon, {
|
921
921
|
glyph: searchIcon,
|
922
|
-
className:
|
922
|
+
className: styles.rightSearchIcon,
|
923
923
|
title: (_translations$searchT3 = translations === null || translations === void 0 ? void 0 : translations.searchTitle) !== null && _translations$searchT3 !== void 0 ? _translations$searchT3 : translate('searchTitle'),
|
924
924
|
onClick: this.handleApply,
|
925
925
|
ref: this.glassRef,
|