@jetbrains/ring-ui-built 7.0.0-beta.2 → 7.0.0-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/_helpers/_rollupPluginBabelHelpers.js +1 -504
- package/components/_helpers/anchor.js +7 -5
- package/components/_helpers/button__classes.js +15 -13
- package/components/_helpers/caption.js +11 -17
- package/components/_helpers/card.js +92 -96
- package/components/_helpers/dialog__body-scroll-preventer.js +10 -17
- package/components/_helpers/icon__svg.js +27 -23
- package/components/_helpers/input.js +150 -171
- package/components/_helpers/query-assist__suggestions.js +78 -93
- package/components/_helpers/select__filter.js +56 -67
- package/components/_helpers/services-link.js +23 -29
- package/components/_helpers/sidebar.js +91 -93
- package/components/_helpers/tab-link.js +8 -6
- package/components/_helpers/theme.js +41 -50
- package/components/_helpers/title.js +59 -69
- package/components/alert/alert.js +112 -156
- package/components/alert/container.js +32 -39
- package/components/alert-service/alert-service.js +104 -161
- package/components/analytics/analytics.js +12 -20
- package/components/analytics/analytics__custom-plugin.js +52 -68
- package/components/auth/auth.js +2 -27
- package/components/auth/auth__core.d.ts +1 -1
- package/components/auth/auth__core.js +742 -1428
- package/components/auth/background-flow.js +84 -121
- package/components/auth/down-notification.js +31 -69
- package/components/auth/iframe-flow.js +70 -123
- package/components/auth/request-builder.js +46 -77
- package/components/auth/response-parser.js +84 -112
- package/components/auth/storage.js +160 -318
- package/components/auth/token-validator.js +132 -227
- package/components/auth/window-flow.js +84 -121
- package/components/auth-dialog/auth-dialog.js +99 -150
- package/components/auth-dialog-service/auth-dialog-service.js +6 -26
- package/components/avatar/avatar-example-datauri.js +1 -1
- package/components/avatar/avatar.js +94 -123
- package/components/avatar/fallback-avatar.js +20 -34
- package/components/badge/badge.js +32 -38
- package/components/breadcrumbs/breadcrumbs.js +13 -17
- package/components/button/button.js +67 -80
- package/components/button-group/button-group.js +27 -36
- package/components/button-set/button-set.js +19 -27
- package/components/button-toolbar/button-toolbar.js +17 -25
- package/components/caret/caret.js +184 -211
- package/components/checkbox/checkbox.js +69 -86
- package/components/clipboard/clipboard-fallback.js +7 -7
- package/components/clipboard/clipboard.js +36 -128
- package/components/code/code.js +83 -151
- package/components/collapse/collapse-content.js +42 -60
- package/components/collapse/collapse-context.js +2 -2
- package/components/collapse/collapse-control.js +12 -12
- package/components/collapse/collapse.js +12 -17
- package/components/collapse/consts.js +4 -4
- package/components/collapse/utils.js +1 -3
- package/components/confirm/confirm.js +57 -87
- package/components/confirm-service/confirm-service.js +23 -44
- package/components/content-layout/content-layout.js +41 -56
- package/components/content-layout/sidebar.js +1 -1
- package/components/contenteditable/contenteditable.js +38 -46
- package/components/control-help/control-help.js +5 -3
- package/components/control-label/control-label.js +9 -8
- package/components/data-list/data-list.js +113 -156
- package/components/data-list/data-list.mock.js +3 -5
- package/components/data-list/item.js +120 -140
- package/components/data-list/selection.js +77 -135
- package/components/data-list/title.js +2 -10
- package/components/date-picker/consts.js +16 -22
- package/components/date-picker/date-input.js +99 -124
- package/components/date-picker/date-picker.js +140 -184
- package/components/date-picker/date-popup.js +280 -327
- package/components/date-picker/day.js +71 -94
- package/components/date-picker/month-names.js +41 -59
- package/components/date-picker/month-slider.js +42 -61
- package/components/date-picker/month.js +17 -24
- package/components/date-picker/months.js +44 -49
- package/components/date-picker/weekdays.js +12 -21
- package/components/date-picker/years.js +77 -98
- package/components/dialog/dialog.js +151 -187
- package/components/dialog/dialog__body-scroll-preventer.js +0 -3
- package/components/dropdown/anchor.js +0 -6
- package/components/dropdown/dropdown.js +134 -154
- package/components/dropdown-menu/dropdown-menu.js +59 -87
- package/components/editable-heading/editable-heading.js +69 -116
- package/components/error-bubble/error-bubble.js +29 -54
- package/components/error-message/error-message.js +34 -49
- package/components/footer/footer.js +27 -28
- package/components/global/compose.js +1 -8
- package/components/global/composeRefs.d.ts +0 -3
- package/components/global/composeRefs.js +8 -15
- package/components/global/controls-height.js +2 -2
- package/components/global/create-stateful-context.js +14 -13
- package/components/global/data-tests.js +7 -12
- package/components/global/dom.js +49 -82
- package/components/global/focus-sensor-hoc.js +99 -106
- package/components/global/fuzzy-highlight.js +23 -34
- package/components/global/get-event-key.js +8 -8
- package/components/global/get-uid.js +3 -7
- package/components/global/inject-styles.js +7 -14
- package/components/global/listeners.js +28 -47
- package/components/global/memoize.js +6 -10
- package/components/global/normalize-indent.js +19 -46
- package/components/global/promise-with-timeout.js +6 -8
- package/components/global/prop-types.js +3 -5
- package/components/global/react-dom-renderer.js +29 -40
- package/components/global/rerender-hoc.js +16 -32
- package/components/global/schedule-raf.js +4 -4
- package/components/global/sniffer.js +1 -1
- package/components/global/theme.js +1 -18
- package/components/global/trivial-template-tag.js +4 -9
- package/components/global/typescript-utils.js +2 -6
- package/components/global/url.js +20 -23
- package/components/global/use-event-callback.js +7 -4
- package/components/grid/col.js +27 -39
- package/components/grid/grid.js +18 -27
- package/components/grid/row.js +23 -30
- package/components/group/group.js +16 -22
- package/components/header/header-icon.js +19 -31
- package/components/header/header.d.ts +0 -1
- package/components/header/header.js +30 -64
- package/components/header/links.js +6 -3
- package/components/header/logo.js +15 -26
- package/components/header/profile.js +124 -150
- package/components/header/services-link.js +1 -3
- package/components/header/services.js +64 -97
- package/components/header/smart-profile.js +101 -178
- package/components/header/smart-services.js +55 -90
- package/components/header/tray.js +21 -30
- package/components/heading/heading.js +21 -20
- package/components/http/http.js +162 -319
- package/components/http/http.mock.js +50 -98
- package/components/hub-source/hub-source.js +77 -182
- package/components/hub-source/hub-source__user.js +9 -37
- package/components/hub-source/hub-source__users-groups.js +34 -60
- package/components/i18n/i18n-context.js +7 -8
- package/components/i18n/i18n.js +3 -6
- package/components/icon/icon.js +60 -74
- package/components/icon/icon__svg.js +0 -5
- package/components/icon/index.js +0 -5
- package/components/input/input.js +1 -11
- package/components/island/adaptive-island-hoc.js +29 -37
- package/components/island/content.js +100 -110
- package/components/island/header.js +56 -66
- package/components/island/island.js +25 -33
- package/components/island-legacy/content-legacy.js +16 -22
- package/components/island-legacy/header-legacy.js +19 -25
- package/components/island-legacy/island-legacy.js +16 -22
- package/components/link/clickableLink.js +33 -42
- package/components/link/link.js +47 -55
- package/components/list/consts.js +2 -2
- package/components/list/list.js +399 -486
- package/components/list/list__custom.js +51 -61
- package/components/list/list__hint.js +9 -17
- package/components/list/list__item.js +147 -178
- package/components/list/list__link.js +38 -47
- package/components/list/list__separator.js +15 -24
- package/components/list/list__title.js +25 -34
- package/components/list/list__users-groups-source.js +55 -121
- package/components/loader/loader.js +38 -60
- package/components/loader/loader__core.js +123 -184
- package/components/loader-inline/loader-inline.js +24 -32
- package/components/loader-screen/loader-screen.js +24 -40
- package/components/login-dialog/login-dialog.js +81 -121
- package/components/login-dialog/service.js +6 -29
- package/components/markdown/markdown.js +16 -24
- package/components/message/message.js +170 -201
- package/components/old-browsers-message/old-browsers-message.js +11 -14
- package/components/old-browsers-message/old-browsers-message__stop.js +1 -4
- package/components/old-browsers-message/white-list.js +8 -13
- package/components/pager/pager.js +212 -257
- package/components/panel/panel.js +16 -22
- package/components/permissions/permissions.js +118 -161
- package/components/permissions/permissions__cache.js +191 -218
- package/components/popup/popup.consts.js +1 -1
- package/components/popup/popup.js +237 -288
- package/components/popup/popup.target.js +9 -7
- package/components/popup/position.js +94 -101
- package/components/popup-menu/popup-menu.js +33 -67
- package/components/progress-bar/progress-bar.js +57 -68
- package/components/query-assist/query-assist.js +583 -652
- package/components/query-assist/query-assist__suggestions.js +2 -26
- package/components/radio/radio.js +15 -27
- package/components/radio/radio__item.js +52 -62
- package/components/scrollable-section/scrollable-section.js +22 -32
- package/components/select/select.js +693 -793
- package/components/select/select__filter.js +1 -26
- package/components/select/select__popup.js +316 -413
- package/components/shortcuts/core.js +147 -195
- package/components/shortcuts/shortcut-title.js +6 -10
- package/components/shortcuts/shortcuts-hoc.js +23 -41
- package/components/shortcuts/shortcuts.js +41 -64
- package/components/slider/slider.js +93 -112
- package/components/slider/slider.utils.js +16 -23
- package/components/storage/storage.js +3 -27
- package/components/storage/storage__fallback.js +137 -210
- package/components/storage/storage__local.js +89 -147
- package/components/style.css +1 -1
- package/components/tab-trap/tab-trap.js +35 -53
- package/components/table/cell.js +11 -21
- package/components/table/disable-hover-hoc.js +27 -42
- package/components/table/header-cell.js +59 -75
- package/components/table/header.js +89 -110
- package/components/table/multitable.js +83 -89
- package/components/table/row-with-focus-sensor.js +25 -57
- package/components/table/row.js +169 -200
- package/components/table/selection-adapter.js +2 -2
- package/components/table/selection-shortcuts-hoc.js +108 -113
- package/components/table/selection.js +150 -217
- package/components/table/simple-table.js +19 -55
- package/components/table/smart-table.js +42 -76
- package/components/table/table.js +267 -327
- package/components/tabs/collapsible-more.js +47 -73
- package/components/tabs/collapsible-tab.js +32 -36
- package/components/tabs/collapsible-tabs.js +89 -148
- package/components/tabs/custom-item.js +4 -2
- package/components/tabs/dumb-tabs.js +60 -92
- package/components/tabs/smart-tabs.js +29 -61
- package/components/tabs/tab-link.js +1 -3
- package/components/tabs/tab.js +15 -24
- package/components/tabs/tabs.js +1 -26
- package/components/tag/tag.d.ts +0 -2
- package/components/tag/tag.js +120 -162
- package/components/tags-input/tags-input.js +222 -304
- package/components/tags-list/tags-list.js +45 -61
- package/components/text/text.js +28 -37
- package/components/toggle/toggle.js +51 -61
- package/components/tooltip/tooltip.js +109 -141
- package/components/user-agreement/service.js +259 -400
- package/components/user-agreement/user-agreement.js +80 -108
- package/components/user-card/card.js +1 -25
- package/components/user-card/smart-user-card-tooltip.js +52 -103
- package/components/user-card/tooltip.js +35 -65
- package/components/user-card/user-card.js +1 -25
- package/package.json +1 -1
- package/components/global/react-render-adapter.d.ts +0 -1
- package/components/global/react-render-adapter.js +0 -6
- package/components/header/tray-icon.d.ts +0 -1
- package/components/header/tray-icon.js +0 -26
package/components/global/url.js
CHANGED
@@ -1,7 +1,4 @@
|
|
1
|
-
import 'core-js/modules/es.array.concat.js';
|
2
|
-
import 'core-js/modules/es.array.index-of.js';
|
3
1
|
import 'core-js/modules/es.regexp.exec.js';
|
4
|
-
import 'core-js/modules/es.string.match.js';
|
5
2
|
import 'core-js/modules/es.string.replace.js';
|
6
3
|
|
7
4
|
/**
|
@@ -10,21 +7,21 @@ import 'core-js/modules/es.string.replace.js';
|
|
10
7
|
/**
|
11
8
|
* @const {RegExp}
|
12
9
|
*/
|
13
|
-
|
10
|
+
const ORIGIN_PATTERN = /^[a-z]+:\/\/[^/]+/i;
|
14
11
|
/**
|
15
12
|
* @const {RegExp}
|
16
13
|
*/
|
17
|
-
|
14
|
+
const ABSOLUTE_URL_PATTERN = /^[a-z]+:\/\//i;
|
18
15
|
/**
|
19
16
|
* @const {RegExp}
|
20
17
|
*/
|
21
|
-
|
18
|
+
const ENDING_SLASH_PATTERN = /\/$/;
|
22
19
|
/**
|
23
20
|
* Get URI from the <base> tag
|
24
21
|
* @return {string|undefined} base URI
|
25
22
|
*/
|
26
23
|
function getBaseURI() {
|
27
|
-
|
24
|
+
const baseElement = document.getElementsByTagName('base')[0];
|
28
25
|
return baseElement ? baseElement.href : undefined;
|
29
26
|
}
|
30
27
|
/**
|
@@ -32,9 +29,9 @@ function getBaseURI() {
|
|
32
29
|
* @return {string} absolute base URI
|
33
30
|
*/
|
34
31
|
function getAbsoluteBaseURL() {
|
35
|
-
|
36
|
-
|
37
|
-
|
32
|
+
const baseUrl = getBaseURI();
|
33
|
+
const host = "".concat(window.location.protocol, "//").concat(window.location.host);
|
34
|
+
let uri;
|
38
35
|
if (baseUrl) {
|
39
36
|
uri = ABSOLUTE_URL_PATTERN.test(baseUrl) ? baseUrl : host + baseUrl;
|
40
37
|
} else {
|
@@ -48,7 +45,7 @@ function getAbsoluteBaseURL() {
|
|
48
45
|
* @returns {string|undefined} origin
|
49
46
|
*/
|
50
47
|
function getOrigin(url) {
|
51
|
-
|
48
|
+
const matches = url.match(ORIGIN_PATTERN);
|
52
49
|
if (matches) {
|
53
50
|
return matches[0];
|
54
51
|
}
|
@@ -70,9 +67,9 @@ function getAbsoluteURL() {
|
|
70
67
|
* @return {string} fixed URL
|
71
68
|
*/
|
72
69
|
function fixUrl(url) {
|
73
|
-
|
70
|
+
let baseURIGetter = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : getBaseURI;
|
74
71
|
if (url.indexOf('http://') === -1 && url.indexOf('https://') === -1 && url.indexOf('/') !== 0) {
|
75
|
-
|
72
|
+
const baseUrl = baseURIGetter();
|
76
73
|
if (baseUrl) {
|
77
74
|
return baseUrl + url;
|
78
75
|
}
|
@@ -98,14 +95,14 @@ function parseQueryString(queryString) {
|
|
98
95
|
if (queryString == null) {
|
99
96
|
return {};
|
100
97
|
}
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
98
|
+
const queryParameterPairRE = /([^&;=]+)=?([^&;]*)/g;
|
99
|
+
const FIRST_PAIR_ELEMENT = 1;
|
100
|
+
const SECOND_PAIR_ELEMENT = 2;
|
101
|
+
const urlParams = {};
|
105
102
|
function decode(s) {
|
106
103
|
return decodeURIComponent(s.replace(/\+/g, ' '));
|
107
104
|
}
|
108
|
-
|
105
|
+
let matchedQueryPair;
|
109
106
|
while ((matchedQueryPair = queryParameterPairRE.exec(queryString)) != null) {
|
110
107
|
urlParams[decode(matchedQueryPair[FIRST_PAIR_ELEMENT])] = decode(matchedQueryPair[SECOND_PAIR_ELEMENT]);
|
111
108
|
}
|
@@ -122,11 +119,11 @@ function customEncodeURIComponent(str) {
|
|
122
119
|
* @returns {string} encoded URL
|
123
120
|
*/
|
124
121
|
function encodeURL(url, params) {
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
122
|
+
const equalsSign = '=';
|
123
|
+
const firstSeparator = url.indexOf('?') === -1 ? '?' : '&';
|
124
|
+
let res = url;
|
125
|
+
let k;
|
126
|
+
let i = 0;
|
130
127
|
for (k in params) {
|
131
128
|
if (params.hasOwnProperty(k) && params[k] != null) {
|
132
129
|
res += (i++ === 0 ? firstSeparator : '&') + customEncodeURIComponent(k) + equalsSign + customEncodeURIComponent(params[k]);
|
@@ -1,16 +1,19 @@
|
|
1
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
1
2
|
import { useRef, useLayoutEffect, useCallback } from 'react';
|
2
3
|
|
3
4
|
function useEventCallback(fn) {
|
4
|
-
|
5
|
-
useLayoutEffect(
|
5
|
+
const ref = useRef();
|
6
|
+
useLayoutEffect(() => {
|
6
7
|
ref.current = fn;
|
7
8
|
});
|
8
9
|
return useCallback(function () {
|
9
|
-
|
10
|
+
const {
|
11
|
+
current
|
12
|
+
} = ref;
|
10
13
|
if (current == null) {
|
11
14
|
throw new Error('callback created in useEventCallback can only be called from event handlers');
|
12
15
|
}
|
13
|
-
return current
|
16
|
+
return current(...arguments);
|
14
17
|
}, []);
|
15
18
|
}
|
16
19
|
|
package/components/grid/col.js
CHANGED
@@ -1,18 +1,15 @@
|
|
1
|
-
import { _ as _defineProperty, a as
|
2
|
-
import 'core-js/modules/es.array.
|
3
|
-
import 'core-js/modules/
|
4
|
-
import 'core-js/modules/es.array.map.js';
|
5
|
-
import 'core-js/modules/es.object.entries.js';
|
6
|
-
import 'core-js/modules/es.object.to-string.js';
|
1
|
+
import { _ as _defineProperty, a as _objectWithoutProperties } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
|
+
import 'core-js/modules/es.array.reverse.js';
|
3
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
7
4
|
import { Component } from 'react';
|
8
5
|
import PropTypes from 'prop-types';
|
9
6
|
import classNames from 'classnames';
|
10
7
|
import { m as modules_855170c0 } from '../_helpers/grid.js';
|
11
8
|
import { jsx } from 'react/jsx-runtime';
|
12
9
|
|
13
|
-
|
14
|
-
|
15
|
-
|
10
|
+
const _excluded = ["children", "className", "reverse"];
|
11
|
+
const ModifierType = PropTypes.oneOfType([PropTypes.number, PropTypes.bool]);
|
12
|
+
const classMap = {
|
16
13
|
xs: 'col-xs',
|
17
14
|
sm: 'col-sm',
|
18
15
|
md: 'col-md',
|
@@ -28,41 +25,32 @@ var classMap = {
|
|
28
25
|
* @returns {Array} result classnames
|
29
26
|
*/
|
30
27
|
function getClassNames(props) {
|
31
|
-
return Object.entries(props).filter(
|
32
|
-
|
33
|
-
key = _ref2[0];
|
28
|
+
return Object.entries(props).filter(_ref => {
|
29
|
+
let [key] = _ref;
|
34
30
|
return classMap[key];
|
35
|
-
}).map(
|
36
|
-
|
37
|
-
key = _ref4[0],
|
38
|
-
value = _ref4[1];
|
31
|
+
}).map(_ref2 => {
|
32
|
+
let [key, value] = _ref2;
|
39
33
|
return modules_855170c0[Number.isInteger(value) ? "".concat(classMap[key], "-").concat(value) : classMap[key]];
|
40
34
|
});
|
41
35
|
}
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
36
|
+
class Col extends Component {
|
37
|
+
render() {
|
38
|
+
const _this$props = this.props,
|
39
|
+
{
|
40
|
+
children,
|
41
|
+
className,
|
42
|
+
reverse
|
43
|
+
} = _this$props,
|
44
|
+
restProps = _objectWithoutProperties(_this$props, _excluded);
|
45
|
+
const classes = classNames(modules_855170c0.col, className, getClassNames(restProps), {
|
46
|
+
[modules_855170c0.reverse]: reverse
|
47
|
+
});
|
48
|
+
return /*#__PURE__*/jsx("div", {
|
49
|
+
className: classes,
|
50
|
+
children: children
|
51
|
+
});
|
46
52
|
}
|
47
|
-
|
48
|
-
return _createClass(Col, [{
|
49
|
-
key: "render",
|
50
|
-
value: function render() {
|
51
|
-
var _this$props = this.props,
|
52
|
-
children = _this$props.children,
|
53
|
-
className = _this$props.className,
|
54
|
-
reverse = _this$props.reverse,
|
55
|
-
restProps = _objectWithoutProperties(_this$props, _excluded);
|
56
|
-
var classes = classNames(modules_855170c0.col, className, getClassNames(restProps), {
|
57
|
-
[modules_855170c0.reverse]: reverse
|
58
|
-
});
|
59
|
-
return /*#__PURE__*/jsx("div", {
|
60
|
-
className: classes,
|
61
|
-
children: children
|
62
|
-
});
|
63
|
-
}
|
64
|
-
}]);
|
65
|
-
}(Component);
|
53
|
+
}
|
66
54
|
_defineProperty(Col, "propTypes", {
|
67
55
|
xs: ModifierType,
|
68
56
|
sm: ModifierType,
|
package/components/grid/grid.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { _ as _defineProperty, a as
|
1
|
+
import { _ as _defineProperty, a as _objectWithoutProperties, b as _objectSpread2 } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
2
|
import { Component } from 'react';
|
3
3
|
import PropTypes from 'prop-types';
|
4
4
|
import classNames from 'classnames';
|
@@ -6,35 +6,26 @@ import { m as modules_855170c0 } from '../_helpers/grid.js';
|
|
6
6
|
import { jsx } from 'react/jsx-runtime';
|
7
7
|
export { default as Row } from './row.js';
|
8
8
|
export { default as Col } from './col.js';
|
9
|
-
import 'core-js/modules/es.array.concat.js';
|
10
9
|
import 'core-js/modules/es.array.reduce.js';
|
11
|
-
import 'core-js/modules/es.
|
12
|
-
import 'core-js/modules/
|
13
|
-
import 'core-js/modules/es.array.map.js';
|
14
|
-
import 'core-js/modules/es.object.entries.js';
|
10
|
+
import 'core-js/modules/es.array.reverse.js';
|
11
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
15
12
|
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
13
|
+
const _excluded = ["children", "className"];
|
14
|
+
class Grid extends Component {
|
15
|
+
render() {
|
16
|
+
const _this$props = this.props,
|
17
|
+
{
|
18
|
+
children,
|
19
|
+
className
|
20
|
+
} = _this$props,
|
21
|
+
restProps = _objectWithoutProperties(_this$props, _excluded);
|
22
|
+
const classes = classNames(modules_855170c0['container-fluid'], className);
|
23
|
+
return /*#__PURE__*/jsx("div", _objectSpread2(_objectSpread2({}, restProps), {}, {
|
24
|
+
className: classes,
|
25
|
+
children: children
|
26
|
+
}));
|
21
27
|
}
|
22
|
-
|
23
|
-
return _createClass(Grid, [{
|
24
|
-
key: "render",
|
25
|
-
value: function render() {
|
26
|
-
var _this$props = this.props,
|
27
|
-
children = _this$props.children,
|
28
|
-
className = _this$props.className,
|
29
|
-
restProps = _objectWithoutProperties(_this$props, _excluded);
|
30
|
-
var classes = classNames(modules_855170c0['container-fluid'], className);
|
31
|
-
return /*#__PURE__*/jsx("div", _objectSpread2(_objectSpread2({}, restProps), {}, {
|
32
|
-
className: classes,
|
33
|
-
children: children
|
34
|
-
}));
|
35
|
-
}
|
36
|
-
}]);
|
37
|
-
}(Component);
|
28
|
+
}
|
38
29
|
_defineProperty(Grid, "propTypes", {
|
39
30
|
className: PropTypes.string,
|
40
31
|
children: PropTypes.node
|
package/components/grid/row.js
CHANGED
@@ -1,16 +1,15 @@
|
|
1
|
-
import { _ as _defineProperty, a as
|
2
|
-
import 'core-js/modules/es.array.concat.js';
|
1
|
+
import { _ as _defineProperty, a as _objectWithoutProperties } from '../_helpers/_rollupPluginBabelHelpers.js';
|
3
2
|
import 'core-js/modules/es.array.reduce.js';
|
4
|
-
import 'core-js/modules/es.
|
3
|
+
import 'core-js/modules/es.array.reverse.js';
|
5
4
|
import { Component } from 'react';
|
6
5
|
import PropTypes from 'prop-types';
|
7
6
|
import classNames from 'classnames';
|
8
7
|
import { m as modules_855170c0 } from '../_helpers/grid.js';
|
9
8
|
import { jsx } from 'react/jsx-runtime';
|
10
9
|
|
11
|
-
|
12
|
-
|
13
|
-
|
10
|
+
const _excluded = ["children", "className", "reverse"];
|
11
|
+
const ModifierType = PropTypes.oneOf(['xs', 'sm', 'md', 'lg']);
|
12
|
+
const modifierKeys = ['start', 'center', 'end',
|
14
13
|
// text-align, justify-content
|
15
14
|
'around', 'between',
|
16
15
|
// justify-content
|
@@ -24,37 +23,31 @@ var modifierKeys = ['start', 'center', 'end',
|
|
24
23
|
* @returns {Array} result modifier classes
|
25
24
|
*/
|
26
25
|
function getModifierClassNames(props) {
|
27
|
-
return modifierKeys.reduce(
|
26
|
+
return modifierKeys.reduce((result, key) => {
|
28
27
|
if (props[key]) {
|
29
28
|
return result.concat(modules_855170c0["".concat(key, "-").concat(props[key])]);
|
30
29
|
}
|
31
30
|
return result;
|
32
31
|
}, []);
|
33
32
|
}
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
33
|
+
class Row extends Component {
|
34
|
+
render() {
|
35
|
+
const _this$props = this.props,
|
36
|
+
{
|
37
|
+
children,
|
38
|
+
className,
|
39
|
+
reverse
|
40
|
+
} = _this$props,
|
41
|
+
restProps = _objectWithoutProperties(_this$props, _excluded);
|
42
|
+
const classes = classNames(className, modules_855170c0.row, getModifierClassNames(restProps), {
|
43
|
+
[modules_855170c0.reverse]: reverse
|
44
|
+
});
|
45
|
+
return /*#__PURE__*/jsx("div", {
|
46
|
+
className: classes,
|
47
|
+
children: children
|
48
|
+
});
|
38
49
|
}
|
39
|
-
|
40
|
-
return _createClass(Row, [{
|
41
|
-
key: "render",
|
42
|
-
value: function render() {
|
43
|
-
var _this$props = this.props,
|
44
|
-
children = _this$props.children,
|
45
|
-
className = _this$props.className,
|
46
|
-
reverse = _this$props.reverse,
|
47
|
-
restProps = _objectWithoutProperties(_this$props, _excluded);
|
48
|
-
var classes = classNames(className, modules_855170c0.row, getModifierClassNames(restProps), {
|
49
|
-
[modules_855170c0.reverse]: reverse
|
50
|
-
});
|
51
|
-
return /*#__PURE__*/jsx("div", {
|
52
|
-
className: classes,
|
53
|
-
children: children
|
54
|
-
});
|
55
|
-
}
|
56
|
-
}]);
|
57
|
-
}(Component);
|
50
|
+
}
|
58
51
|
_defineProperty(Row, "propTypes", {
|
59
52
|
reverse: PropTypes.bool,
|
60
53
|
start: ModifierType,
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { _ as _defineProperty, a as
|
1
|
+
import { _ as _defineProperty, a as _objectWithoutProperties, b as _objectSpread2 } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
2
|
import { Component } from 'react';
|
3
3
|
import PropTypes from 'prop-types';
|
4
4
|
import classNames from 'classnames';
|
@@ -6,28 +6,22 @@ import { jsx } from 'react/jsx-runtime';
|
|
6
6
|
|
7
7
|
var modules_d9da30c7 = {"light":"light_rui_2ac4","group":"group_rui_bce8"};
|
8
8
|
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
9
|
+
const _excluded = ["children", "className"];
|
10
|
+
class Group extends Component {
|
11
|
+
render() {
|
12
|
+
const _this$props = this.props,
|
13
|
+
{
|
14
|
+
children,
|
15
|
+
className
|
16
|
+
} = _this$props,
|
17
|
+
restProps = _objectWithoutProperties(_this$props, _excluded);
|
18
|
+
const classes = classNames(modules_d9da30c7.group, className);
|
19
|
+
return /*#__PURE__*/jsx("span", _objectSpread2(_objectSpread2({}, restProps), {}, {
|
20
|
+
className: classes,
|
21
|
+
children: children
|
22
|
+
}));
|
14
23
|
}
|
15
|
-
|
16
|
-
return _createClass(Group, [{
|
17
|
-
key: "render",
|
18
|
-
value: function render() {
|
19
|
-
var _this$props = this.props,
|
20
|
-
children = _this$props.children,
|
21
|
-
className = _this$props.className,
|
22
|
-
restProps = _objectWithoutProperties(_this$props, _excluded);
|
23
|
-
var classes = classNames(modules_d9da30c7.group, className);
|
24
|
-
return /*#__PURE__*/jsx("span", _objectSpread2(_objectSpread2({}, restProps), {}, {
|
25
|
-
className: classes,
|
26
|
-
children: children
|
27
|
-
}));
|
28
|
-
}
|
29
|
-
}]);
|
30
|
-
}(Component);
|
24
|
+
}
|
31
25
|
_defineProperty(Group, "propTypes", {
|
32
26
|
children: PropTypes.node,
|
33
27
|
className: PropTypes.string
|
@@ -1,11 +1,11 @@
|
|
1
|
-
import { _ as _defineProperty,
|
1
|
+
import { _ as _defineProperty, b as _objectSpread2, a as _objectWithoutProperties } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
2
|
import { Component } from 'react';
|
3
3
|
import PropTypes from 'prop-types';
|
4
4
|
import classNames from 'classnames';
|
5
5
|
import { Button } from '../button/button.js';
|
6
6
|
import { m as modules_47759f5e } from '../_helpers/header.js';
|
7
7
|
import { jsx } from 'react/jsx-runtime';
|
8
|
-
import 'core-js/modules/
|
8
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
9
9
|
import '@jetbrains/icons/chevron-down';
|
10
10
|
import '../icon/icon.js';
|
11
11
|
import 'util-deprecate';
|
@@ -13,41 +13,29 @@ import '../icon/icon__constants.js';
|
|
13
13
|
import '../_helpers/icon__svg.js';
|
14
14
|
import 'core-js/modules/es.regexp.exec.js';
|
15
15
|
import 'core-js/modules/es.string.replace.js';
|
16
|
-
import 'core-js/modules/es.string.starts-with.js';
|
17
16
|
import '../global/memoize.js';
|
18
|
-
import 'core-js/modules/es.array.iterator.js';
|
19
|
-
import 'core-js/modules/es.map.js';
|
20
|
-
import 'core-js/modules/es.object.to-string.js';
|
21
|
-
import 'core-js/modules/es.weak-map.js';
|
22
|
-
import 'core-js/modules/web.dom-collections.iterator.js';
|
23
17
|
import '../link/clickableLink.js';
|
24
18
|
import '../global/controls-height.js';
|
25
19
|
import '../_helpers/button__classes.js';
|
26
20
|
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
21
|
+
const _excluded = ["className", "rotatable"];
|
22
|
+
class HeaderIcon extends Component {
|
23
|
+
render() {
|
24
|
+
const _this$props = this.props,
|
25
|
+
{
|
26
|
+
className,
|
27
|
+
rotatable: rotatable
|
28
|
+
} = _this$props,
|
29
|
+
restProps = _objectWithoutProperties(_this$props, _excluded);
|
30
|
+
const classes = classNames(modules_47759f5e.icon, className, {
|
31
|
+
[modules_47759f5e.rotatable]: rotatable,
|
32
|
+
[modules_47759f5e.rotated]: rotatable && restProps.active
|
33
|
+
});
|
34
|
+
return /*#__PURE__*/jsx(Button, _objectSpread2(_objectSpread2({}, restProps), {}, {
|
35
|
+
className: classes
|
36
|
+
}));
|
32
37
|
}
|
33
|
-
|
34
|
-
return _createClass(HeaderIcon, [{
|
35
|
-
key: "render",
|
36
|
-
value: function render() {
|
37
|
-
var _this$props = this.props,
|
38
|
-
className = _this$props.className,
|
39
|
-
rotatable = _this$props.rotatable,
|
40
|
-
restProps = _objectWithoutProperties(_this$props, _excluded);
|
41
|
-
var classes = classNames(modules_47759f5e.icon, className, {
|
42
|
-
[modules_47759f5e.rotatable]: rotatable,
|
43
|
-
[modules_47759f5e.rotated]: rotatable && restProps.active
|
44
|
-
});
|
45
|
-
return /*#__PURE__*/jsx(Button, _objectSpread2(_objectSpread2({}, restProps), {}, {
|
46
|
-
className: classes
|
47
|
-
}));
|
48
|
-
}
|
49
|
-
}]);
|
50
|
-
}(Component);
|
38
|
+
}
|
51
39
|
_defineProperty(HeaderIcon, "propTypes", _objectSpread2(_objectSpread2({}, Button.propTypes), {}, {
|
52
40
|
icon: PropTypes.oneOfType([PropTypes.string, PropTypes.elementType]).isRequired,
|
53
41
|
rotatable: PropTypes.bool
|
@@ -30,7 +30,6 @@ export default Header;
|
|
30
30
|
export { default as Logo } from './logo';
|
31
31
|
export { default as Tray } from './tray';
|
32
32
|
export { default as HeaderIcon } from './header-icon';
|
33
|
-
export { default as TrayIcon } from './tray-icon';
|
34
33
|
export { default as Profile } from './profile';
|
35
34
|
export { default as SmartProfile } from './smart-profile';
|
36
35
|
export { default as Services } from './services';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { _ as _defineProperty, a as
|
1
|
+
import { _ as _defineProperty, a as _objectWithoutProperties, b as _objectSpread2 } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
2
|
import { Component } from 'react';
|
3
3
|
import PropTypes from 'prop-types';
|
4
4
|
import classNames from 'classnames';
|
@@ -7,39 +7,22 @@ import { m as modules_47759f5e } from '../_helpers/header.js';
|
|
7
7
|
import { jsx } from 'react/jsx-runtime';
|
8
8
|
export { default as Logo } from './logo.js';
|
9
9
|
export { default as Tray } from './tray.js';
|
10
|
-
export { default as HeaderIcon
|
10
|
+
export { default as HeaderIcon } from './header-icon.js';
|
11
11
|
export { default as Profile } from './profile.js';
|
12
12
|
export { default as SmartProfile } from './smart-profile.js';
|
13
13
|
export { default as Services } from './services.js';
|
14
14
|
export { default as SmartServices } from './smart-services.js';
|
15
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
15
16
|
import 'react-dom';
|
16
17
|
import '../popup/popup.target.js';
|
17
18
|
import '../popup/popup.js';
|
18
|
-
import 'core-js/modules/es.array.concat.js';
|
19
|
-
import 'core-js/modules/es.object.entries.js';
|
20
|
-
import 'core-js/modules/es.object.to-string.js';
|
21
19
|
import 'core-js/modules/es.regexp.exec.js';
|
22
|
-
import 'core-js/modules/es.regexp.to-string.js';
|
23
20
|
import 'core-js/modules/es.string.replace.js';
|
24
|
-
import 'core-js/modules/web.dom-collections.for-each.js';
|
25
21
|
import '../global/get-uid.js';
|
26
22
|
import '../global/schedule-raf.js';
|
27
23
|
import '../global/dom.js';
|
28
|
-
import 'core-js/modules/es.array.filter.js';
|
29
|
-
import 'core-js/modules/es.array.iterator.js';
|
30
|
-
import 'core-js/modules/es.object.assign.js';
|
31
|
-
import 'core-js/modules/es.set.js';
|
32
|
-
import 'core-js/modules/es.string.split.js';
|
33
|
-
import 'core-js/modules/web.dom-collections.iterator.js';
|
34
24
|
import '../shortcuts/shortcuts.js';
|
35
|
-
import 'core-js/modules/es.array.map.js';
|
36
25
|
import '../shortcuts/core.js';
|
37
|
-
import 'core-js/modules/es.array.find-index.js';
|
38
|
-
import 'core-js/modules/es.array.includes.js';
|
39
|
-
import 'core-js/modules/es.array.slice.js';
|
40
|
-
import 'core-js/modules/es.array.splice.js';
|
41
|
-
import 'core-js/modules/es.string.includes.js';
|
42
|
-
import 'core-js/modules/es.string.match.js';
|
43
26
|
import 'combokeys';
|
44
27
|
import '../global/sniffer.js';
|
45
28
|
import 'sniffr';
|
@@ -53,10 +36,7 @@ import '../icon/icon.js';
|
|
53
36
|
import 'util-deprecate';
|
54
37
|
import '../icon/icon__constants.js';
|
55
38
|
import '../_helpers/icon__svg.js';
|
56
|
-
import 'core-js/modules/es.string.starts-with.js';
|
57
39
|
import '../global/memoize.js';
|
58
|
-
import 'core-js/modules/es.map.js';
|
59
|
-
import 'core-js/modules/es.weak-map.js';
|
60
40
|
import '../button/button.js';
|
61
41
|
import '@jetbrains/icons/chevron-down';
|
62
42
|
import '../link/clickableLink.js';
|
@@ -64,14 +44,10 @@ import '../global/controls-height.js';
|
|
64
44
|
import '../_helpers/button__classes.js';
|
65
45
|
import '../avatar/avatar.js';
|
66
46
|
import '../global/url.js';
|
67
|
-
import 'core-js/modules/es.array.index-of.js';
|
68
47
|
import '../avatar/fallback-avatar.js';
|
69
|
-
import 'core-js/modules/es.array.from.js';
|
70
48
|
import '../dropdown-menu/dropdown-menu.js';
|
71
49
|
import '../list/list.js';
|
72
|
-
import 'core-js/modules/es.symbol.js';
|
73
50
|
import 'core-js/modules/es.symbol.description.js';
|
74
|
-
import 'core-js/modules/es.array.find.js';
|
75
51
|
import 'react-virtualized/dist/es/List';
|
76
52
|
import 'react-virtualized/dist/es/AutoSizer';
|
77
53
|
import 'react-virtualized/dist/es/WindowScroller';
|
@@ -104,14 +80,12 @@ import '../i18n/i18n-context.js';
|
|
104
80
|
import '../i18n/i18n.js';
|
105
81
|
import '../auth/auth.js';
|
106
82
|
import '../auth/window-flow.js';
|
107
|
-
import 'core-js/modules/es.promise.js';
|
108
83
|
import '../auth/response-parser.js';
|
109
84
|
import 'es6-error';
|
110
85
|
import '../auth/down-notification.js';
|
111
86
|
import '../alert-service/alert-service.js';
|
112
87
|
import 'react-dom/client';
|
113
88
|
import '../alert/alert.js';
|
114
|
-
import 'core-js/modules/es.object.values.js';
|
115
89
|
import '@jetbrains/icons/exception';
|
116
90
|
import '@jetbrains/icons/checkmark';
|
117
91
|
import '@jetbrains/icons/warning';
|
@@ -120,13 +94,11 @@ import '../loader-inline/loader-inline.js';
|
|
120
94
|
import '../alert/container.js';
|
121
95
|
import '../group/group.js';
|
122
96
|
import '../auth/auth__core.js';
|
123
|
-
import 'core-js/modules/es.string.search.js';
|
124
97
|
import 'core-js/modules/web.url.js';
|
125
98
|
import 'core-js/modules/web.url.to-json.js';
|
126
99
|
import 'core-js/modules/web.url-search-params.js';
|
127
100
|
import '../global/listeners.js';
|
128
101
|
import '../http/http.js';
|
129
|
-
import 'core-js/modules/es.reflect.delete-property.js';
|
130
102
|
import '../global/promise-with-timeout.js';
|
131
103
|
import '../auth/storage.js';
|
132
104
|
import '../storage/storage.js';
|
@@ -140,41 +112,35 @@ import '../auth/token-validator.js';
|
|
140
112
|
import '@jetbrains/icons/services-20px';
|
141
113
|
import '../_helpers/services-link.js';
|
142
114
|
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
115
|
+
const _excluded = ["children", "className", "spaced", "theme", "vertical"];
|
116
|
+
class Header extends Component {
|
117
|
+
render() {
|
118
|
+
const _this$props = this.props,
|
119
|
+
{
|
120
|
+
children,
|
121
|
+
className,
|
122
|
+
spaced,
|
123
|
+
theme,
|
124
|
+
vertical
|
125
|
+
} = _this$props,
|
126
|
+
restProps = _objectWithoutProperties(_this$props, _excluded);
|
127
|
+
const classes = classNames(vertical ? modules_47759f5e.headerVertical : modules_47759f5e.header, className, {
|
128
|
+
[modules_47759f5e.headerSpaced]: spaced && !vertical
|
129
|
+
});
|
130
|
+
const overrideOuterTheme = theme !== Theme.LIGHT;
|
131
|
+
const header = /*#__PURE__*/jsx("header", _objectSpread2(_objectSpread2({}, restProps), {}, {
|
132
|
+
className: classes,
|
133
|
+
children: children
|
134
|
+
}));
|
135
|
+
if (overrideOuterTheme) {
|
136
|
+
return /*#__PURE__*/jsx(ThemeProvider, {
|
137
|
+
theme: theme,
|
138
|
+
children: header
|
162
139
|
});
|
163
|
-
var overrideOuterTheme = theme !== Theme.LIGHT;
|
164
|
-
var header = /*#__PURE__*/jsx("header", _objectSpread2(_objectSpread2({}, restProps), {}, {
|
165
|
-
className: classes,
|
166
|
-
children: children
|
167
|
-
}));
|
168
|
-
if (overrideOuterTheme) {
|
169
|
-
return /*#__PURE__*/jsx(ThemeProvider, {
|
170
|
-
theme: theme,
|
171
|
-
children: header
|
172
|
-
});
|
173
|
-
}
|
174
|
-
return header;
|
175
140
|
}
|
176
|
-
|
177
|
-
}
|
141
|
+
return header;
|
142
|
+
}
|
143
|
+
}
|
178
144
|
_defineProperty(Header, "propTypes", {
|
179
145
|
className: PropTypes.string,
|
180
146
|
children: PropTypes.node,
|