@jetbrains/ring-ui 5.0.142 → 5.0.143
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/alert/alert.js +1 -2
- package/components/alert/container.js +1 -2
- package/components/auth/auth__core.js +1 -2
- package/components/auth/request-builder.js +1 -2
- package/components/auth/response-parser.js +1 -2
- package/components/auth/token-validator.js +1 -2
- package/components/auth-dialog/auth-dialog.js +1 -2
- package/components/avatar/avatar.js +1 -2
- package/components/badge/badge.js +1 -2
- package/components/button/button.js +1 -2
- package/components/button-group/button-group.js +1 -2
- package/components/button-group/caption.js +1 -2
- package/components/button-set/button-set.js +1 -2
- package/components/button-toolbar/button-toolbar.js +1 -2
- package/components/caret/caret.js +1 -2
- package/components/checkbox/checkbox.js +1 -2
- package/components/code/code.js +1 -2
- package/components/confirm/confirm.js +1 -2
- package/components/content-layout/content-layout.js +1 -2
- package/components/content-layout/sidebar.js +1 -2
- package/components/data-list/data-list.js +1 -2
- package/components/data-list/item.js +1 -2
- package/components/date-picker/date-input.js +1 -2
- package/components/date-picker/date-picker.js +1 -2
- package/components/date-picker/date-popup.js +1 -2
- package/components/date-picker/day.js +1 -2
- package/components/date-picker/month-slider.js +1 -2
- package/components/date-picker/years.js +1 -2
- package/components/dialog/dialog.js +1 -2
- package/components/dropdown/dropdown.js +1 -2
- package/components/error-bubble/error-bubble.js +1 -2
- package/components/error-message/error-message.js +1 -2
- package/components/global/react-dom-renderer.js +1 -2
- package/components/grid/col.js +1 -2
- package/components/grid/grid.js +1 -2
- package/components/grid/row.js +1 -2
- package/components/group/group.js +1 -2
- package/components/header/logo.js +1 -2
- package/components/header/profile.js +1 -2
- package/components/header/services-link.js +1 -2
- package/components/header/services.js +1 -2
- package/components/header/smart-profile.js +1 -2
- package/components/header/smart-services.js +1 -2
- package/components/header/tray-icon.js +1 -2
- package/components/header/tray.js +1 -2
- package/components/hub-source/hub-source.js +1 -2
- package/components/icon/icon.js +1 -2
- package/components/input/input.js +1 -2
- package/components/island/island.js +1 -2
- package/components/island-legacy/content-legacy.js +1 -2
- package/components/island-legacy/header-legacy.js +1 -2
- package/components/island-legacy/island-legacy.js +1 -2
- package/components/link/clickableLink.js +1 -2
- package/components/list/list.js +1 -2
- package/components/list/list__hint.js +1 -2
- package/components/list/list__users-groups-source.js +1 -2
- package/components/loader/loader.js +1 -2
- package/components/loader/loader__core.js +1 -2
- package/components/loader-screen/loader-screen.js +1 -2
- package/components/login-dialog/login-dialog.js +1 -2
- package/components/message/message.js +1 -2
- package/components/pager/pager.js +1 -2
- package/components/panel/panel.js +1 -2
- package/components/permissions/permissions.js +1 -2
- package/components/permissions/permissions__cache.js +1 -2
- package/components/popup/popup.js +1 -2
- package/components/popup-menu/popup-menu.js +1 -2
- package/components/progress-bar/progress-bar.js +1 -2
- package/components/query-assist/query-assist.js +1 -2
- package/components/radio/radio.js +1 -2
- package/components/radio/radio__item.js +1 -2
- package/components/select/select.js +1 -2
- package/components/select/select__filter.js +1 -2
- package/components/select/select__popup.js +1 -2
- package/components/shortcuts/shortcuts.js +1 -2
- package/components/storage/storage__fallback.js +1 -2
- package/components/tab-trap/tab-trap.js +1 -2
- package/components/table/cell.js +1 -2
- package/components/table/header-cell.js +1 -2
- package/components/table/header.js +1 -2
- package/components/table/multitable.js +1 -2
- package/components/table/row.js +1 -2
- package/components/table/table.js +2 -4
- package/components/tabs/smart-tabs.js +1 -2
- package/components/tabs/tab.js +1 -2
- package/components/tag/tag.js +1 -2
- package/components/tags-input/tags-input.js +1 -2
- package/components/tags-list/tags-list.js +1 -2
- package/components/text/text.js +1 -2
- package/components/tooltip/tooltip.js +1 -2
- package/components/user-agreement/user-agreement.js +1 -2
- package/components/user-card/card.js +1 -2
- package/components/user-card/smart-user-card-tooltip.js +1 -2
- package/components/user-card/tooltip.js +1 -2
- package/package.json +9 -9
|
@@ -3,7 +3,7 @@ import PropTypes from 'prop-types';
|
|
|
3
3
|
import classNames from 'classnames';
|
|
4
4
|
import styles from './header.css';
|
|
5
5
|
const wrapChild = (child) => child && (<div className={styles.trayItem}>{child}</div>);
|
|
6
|
-
class Tray extends Component {
|
|
6
|
+
export default class Tray extends Component {
|
|
7
7
|
static propTypes = {
|
|
8
8
|
className: PropTypes.string,
|
|
9
9
|
children: PropTypes.node
|
|
@@ -16,4 +16,3 @@ class Tray extends Component {
|
|
|
16
16
|
</div>);
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
|
-
export default Tray;
|
|
@@ -9,7 +9,7 @@ const defaultOptions = {
|
|
|
9
9
|
* of cached results to greatly increase search speed. Useful for completion and
|
|
10
10
|
* select data source.
|
|
11
11
|
*/
|
|
12
|
-
class HubSource {
|
|
12
|
+
export default class HubSource {
|
|
13
13
|
static TOP_ALL = -1;
|
|
14
14
|
http;
|
|
15
15
|
relativeUrl;
|
|
@@ -105,4 +105,3 @@ class HubSource {
|
|
|
105
105
|
return this.processResults(res);
|
|
106
106
|
}
|
|
107
107
|
}
|
|
108
|
-
export default HubSource;
|
package/components/icon/icon.js
CHANGED
|
@@ -11,7 +11,7 @@ import IconSVG from './icon__svg';
|
|
|
11
11
|
const warnSize = deprecate(() => { }, `\`size\`, \`width\` and \`height\` props are not recommended to use in Ring UI \`Icon\` component. The intrinsic sizes of SVG icon (\`width\` and \`height\` SVG attributes) are used instead.
|
|
12
12
|
|
|
13
13
|
We strongly recommend to use icons handcrafted for particular sizes. If your icon doesn't exist in the desired size, please ask your designer to draw one. "Responsive" checkmark should be unchecked when exporting icon.'`);
|
|
14
|
-
class Icon extends PureComponent {
|
|
14
|
+
export default class Icon extends PureComponent {
|
|
15
15
|
static propTypes = {
|
|
16
16
|
className: PropTypes.string,
|
|
17
17
|
color: PropTypes.string,
|
|
@@ -66,5 +66,4 @@ class Icon extends PureComponent {
|
|
|
66
66
|
</span>);
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
|
-
export default Icon;
|
|
70
69
|
export { Color, Size };
|
|
@@ -23,7 +23,7 @@ var Size;
|
|
|
23
23
|
Size["L"] = "L";
|
|
24
24
|
Size["FULL"] = "FULL";
|
|
25
25
|
})(Size || (Size = {}));
|
|
26
|
-
class Input extends PureComponent {
|
|
26
|
+
export class Input extends PureComponent {
|
|
27
27
|
static defaultProps = {
|
|
28
28
|
size: Size.M,
|
|
29
29
|
onChange: noop,
|
|
@@ -134,7 +134,6 @@ class Input extends PureComponent {
|
|
|
134
134
|
</I18nContext.Consumer>);
|
|
135
135
|
}
|
|
136
136
|
}
|
|
137
|
-
export { Input };
|
|
138
137
|
Input.propTypes = {
|
|
139
138
|
value: PropTypes.string,
|
|
140
139
|
className: PropTypes.string,
|
|
@@ -7,7 +7,7 @@ import styles from './island.css';
|
|
|
7
7
|
/**
|
|
8
8
|
* @name Island
|
|
9
9
|
*/
|
|
10
|
-
class Island extends Component {
|
|
10
|
+
export default class Island extends Component {
|
|
11
11
|
static propTypes = {
|
|
12
12
|
children: PropTypes.node,
|
|
13
13
|
className: PropTypes.string,
|
|
@@ -26,7 +26,6 @@ class Island extends Component {
|
|
|
26
26
|
</div>);
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
|
-
export default Island;
|
|
30
29
|
export const AdaptiveIsland = adaptiveIslandHOC(Island);
|
|
31
30
|
export { default as Header } from './header';
|
|
32
31
|
export { default as Content } from './content';
|
|
@@ -2,7 +2,7 @@ import React, { PureComponent } from 'react';
|
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import classNames from 'classnames';
|
|
4
4
|
import './island-legacy.css';
|
|
5
|
-
class Content extends PureComponent {
|
|
5
|
+
export default class Content extends PureComponent {
|
|
6
6
|
static propTypes = {
|
|
7
7
|
className: PropTypes.string,
|
|
8
8
|
children: PropTypes.node
|
|
@@ -15,4 +15,3 @@ class Content extends PureComponent {
|
|
|
15
15
|
</div>);
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
|
-
export default Content;
|
|
@@ -2,7 +2,7 @@ import React, { PureComponent } from 'react';
|
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import classNames from 'classnames';
|
|
4
4
|
import './island-legacy.css';
|
|
5
|
-
class Header extends PureComponent {
|
|
5
|
+
export default class Header extends PureComponent {
|
|
6
6
|
static propTypes = {
|
|
7
7
|
className: PropTypes.string,
|
|
8
8
|
children: PropTypes.node
|
|
@@ -17,4 +17,3 @@ class Header extends PureComponent {
|
|
|
17
17
|
</div>);
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
|
-
export default Header;
|
|
@@ -2,7 +2,7 @@ import React, { PureComponent } from 'react';
|
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import classNames from 'classnames';
|
|
4
4
|
import './island-legacy.css';
|
|
5
|
-
class Island extends PureComponent {
|
|
5
|
+
export default class Island extends PureComponent {
|
|
6
6
|
static propTypes = {
|
|
7
7
|
className: PropTypes.string,
|
|
8
8
|
children: PropTypes.node
|
|
@@ -15,6 +15,5 @@ class Island extends PureComponent {
|
|
|
15
15
|
</div>);
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
|
-
export default Island;
|
|
19
18
|
export { default as Header } from './header-legacy';
|
|
20
19
|
export { default as Content } from './content-legacy';
|
|
@@ -3,7 +3,7 @@ import PropTypes from 'prop-types';
|
|
|
3
3
|
const LEFT_BUTTON = 0;
|
|
4
4
|
// Cmd/Ctrl/Shift/Alt + Click should trigger default browser behaviour. Same applies to non-left clicks
|
|
5
5
|
const isPlainLeftClick = (e) => e.button === LEFT_BUTTON && !e.altKey && !e.ctrlKey && !e.metaKey && !e.shiftKey;
|
|
6
|
-
class ClickableLink extends PureComponent {
|
|
6
|
+
export default class ClickableLink extends PureComponent {
|
|
7
7
|
static propTypes = {
|
|
8
8
|
onClick: PropTypes.func,
|
|
9
9
|
onPlainLeftClick: PropTypes.func,
|
|
@@ -31,4 +31,3 @@ class ClickableLink extends PureComponent {
|
|
|
31
31
|
return <a href={href} {...restProps} onClick={this.onClick}>{children}</a>;
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
|
-
export default ClickableLink;
|
package/components/list/list.js
CHANGED
|
@@ -60,7 +60,7 @@ export const ActiveItemContext = createStatefulContext(undefined, 'ActiveItem');
|
|
|
60
60
|
/**
|
|
61
61
|
* Displays a list of items.
|
|
62
62
|
*/
|
|
63
|
-
class List extends Component {
|
|
63
|
+
export default class List extends Component {
|
|
64
64
|
static propTypes = {
|
|
65
65
|
id: PropTypes.string,
|
|
66
66
|
className: PropTypes.string,
|
|
@@ -586,4 +586,3 @@ class List extends Component {
|
|
|
586
586
|
</>);
|
|
587
587
|
}
|
|
588
588
|
}
|
|
589
|
-
export default List;
|
|
@@ -6,7 +6,7 @@ import styles from './list.css';
|
|
|
6
6
|
* @constructor
|
|
7
7
|
* @extends {ReactComponent}
|
|
8
8
|
*/
|
|
9
|
-
class ListHint extends PureComponent {
|
|
9
|
+
export default class ListHint extends PureComponent {
|
|
10
10
|
static propTypes = {
|
|
11
11
|
label: PropTypes.node
|
|
12
12
|
};
|
|
@@ -14,4 +14,3 @@ class ListHint extends PureComponent {
|
|
|
14
14
|
return (<span className={classnames(styles.item, styles.hint)} data-test="ring-list-hint">{this.props.label}</span>);
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
|
-
export default ListHint;
|
|
@@ -18,7 +18,7 @@ var Filter;
|
|
|
18
18
|
Filter[Filter["USERS"] = 1] = "USERS";
|
|
19
19
|
Filter[Filter["GROUPS"] = 2] = "GROUPS";
|
|
20
20
|
})(Filter || (Filter = {}));
|
|
21
|
-
class ListUsersGroupsSource extends HubSourceUsersGroups {
|
|
21
|
+
export default class ListUsersGroupsSource extends HubSourceUsersGroups {
|
|
22
22
|
static Filter = Filter;
|
|
23
23
|
listSourceOptions;
|
|
24
24
|
constructor(auth, options) {
|
|
@@ -72,4 +72,3 @@ class ListUsersGroupsSource extends HubSourceUsersGroups {
|
|
|
72
72
|
return items;
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
|
-
export default ListUsersGroupsSource;
|
|
@@ -8,7 +8,7 @@ import LoaderCore from './loader__core';
|
|
|
8
8
|
/**
|
|
9
9
|
* Displays a large animated loader with an optional caption. Typical use cases: page loading animation, major action animation.
|
|
10
10
|
*/
|
|
11
|
-
class Loader extends PureComponent {
|
|
11
|
+
export default class Loader extends PureComponent {
|
|
12
12
|
static propTypes = {
|
|
13
13
|
className: PropTypes.string,
|
|
14
14
|
size: PropTypes.number,
|
|
@@ -42,4 +42,3 @@ class Loader extends PureComponent {
|
|
|
42
42
|
return (<div data-test={dataTests('ring-loader', dataTest)} {...restProps} ref={this.initLoader}/>);
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
|
-
export default Loader;
|
|
@@ -34,7 +34,7 @@ const DETERMINISTIC_VALUE = 0.5;
|
|
|
34
34
|
function deterministic() {
|
|
35
35
|
return DETERMINISTIC_VALUE;
|
|
36
36
|
}
|
|
37
|
-
class LoaderCore {
|
|
37
|
+
export default class LoaderCore {
|
|
38
38
|
static defaultProps = {
|
|
39
39
|
size: 64,
|
|
40
40
|
stop: false,
|
|
@@ -217,4 +217,3 @@ class LoaderCore {
|
|
|
217
217
|
this.isRunning = false;
|
|
218
218
|
}
|
|
219
219
|
}
|
|
220
|
-
export default LoaderCore;
|
|
@@ -6,7 +6,7 @@ import styles from './loader-screen.css';
|
|
|
6
6
|
/**
|
|
7
7
|
* @name Loader Screen
|
|
8
8
|
*/
|
|
9
|
-
class LoaderScreen extends PureComponent {
|
|
9
|
+
export default class LoaderScreen extends PureComponent {
|
|
10
10
|
static propTypes = {
|
|
11
11
|
className: PropTypes.string,
|
|
12
12
|
containerClassName: PropTypes.string,
|
|
@@ -23,4 +23,3 @@ class LoaderScreen extends PureComponent {
|
|
|
23
23
|
</div>);
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
|
-
export default LoaderScreen;
|
|
@@ -13,7 +13,7 @@ const DEFAULT_SHOW_FALLBACK_TIMEOUT = 5000;
|
|
|
13
13
|
/**
|
|
14
14
|
* @name Login Dialog
|
|
15
15
|
*/
|
|
16
|
-
class LoginDialog extends Component {
|
|
16
|
+
export default class LoginDialog extends Component {
|
|
17
17
|
static propTypes = {
|
|
18
18
|
show: PropTypes.bool,
|
|
19
19
|
className: PropTypes.string,
|
|
@@ -82,4 +82,3 @@ class LoginDialog extends Component {
|
|
|
82
82
|
</Dialog>);
|
|
83
83
|
}
|
|
84
84
|
}
|
|
85
|
-
export default LoginDialog;
|
|
@@ -44,7 +44,7 @@ const getTailOffsets = (offset) => ({
|
|
|
44
44
|
/**
|
|
45
45
|
* Displays a popup containing a message.
|
|
46
46
|
*/
|
|
47
|
-
class Message extends Component {
|
|
47
|
+
export default class Message extends Component {
|
|
48
48
|
static defaultProps = {
|
|
49
49
|
icon: gift,
|
|
50
50
|
directions: [
|
|
@@ -112,7 +112,6 @@ class Message extends Component {
|
|
|
112
112
|
</I18nContext.Consumer>);
|
|
113
113
|
}
|
|
114
114
|
}
|
|
115
|
-
export default Message;
|
|
116
115
|
Message.propTypes = {
|
|
117
116
|
children: PropTypes.node,
|
|
118
117
|
className: PropTypes.string,
|
|
@@ -15,7 +15,7 @@ import Link from '../link/link';
|
|
|
15
15
|
import Icon from '../icon/icon';
|
|
16
16
|
import { I18nContext } from '../i18n/i18n-context';
|
|
17
17
|
import style from './pager.css';
|
|
18
|
-
class Pager extends PureComponent {
|
|
18
|
+
export default class Pager extends PureComponent {
|
|
19
19
|
static defaultProps = {
|
|
20
20
|
currentPage: 1,
|
|
21
21
|
pageSize: 50,
|
|
@@ -209,7 +209,6 @@ class Pager extends PureComponent {
|
|
|
209
209
|
</div>);
|
|
210
210
|
}
|
|
211
211
|
}
|
|
212
|
-
export default Pager;
|
|
213
212
|
Pager.propTypes = {
|
|
214
213
|
total: PropTypes.number.isRequired,
|
|
215
214
|
currentPage: PropTypes.number,
|
|
@@ -5,7 +5,7 @@ import styles from './panel.css';
|
|
|
5
5
|
/**
|
|
6
6
|
* @name Panel
|
|
7
7
|
*/
|
|
8
|
-
class Panel extends PureComponent {
|
|
8
|
+
export default class Panel extends PureComponent {
|
|
9
9
|
static propTypes = {
|
|
10
10
|
className: PropTypes.string,
|
|
11
11
|
children: PropTypes.node
|
|
@@ -18,4 +18,3 @@ class Panel extends PureComponent {
|
|
|
18
18
|
</div>);
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
|
-
export default Panel;
|
|
@@ -23,7 +23,7 @@ import PermissionCache from './permissions__cache';
|
|
|
23
23
|
* <code>serviceId</code> if provided then permissions only for the service are loaded.
|
|
24
24
|
* @constructor
|
|
25
25
|
*/
|
|
26
|
-
class Permissions {
|
|
26
|
+
export default class Permissions {
|
|
27
27
|
/**
|
|
28
28
|
* @const {string}
|
|
29
29
|
*/
|
|
@@ -175,4 +175,3 @@ class Permissions {
|
|
|
175
175
|
});
|
|
176
176
|
}
|
|
177
177
|
}
|
|
178
|
-
export default Permissions;
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
* @return {object} permission cache
|
|
12
12
|
* @private
|
|
13
13
|
*/
|
|
14
|
-
class PermissionCache {
|
|
14
|
+
export default class PermissionCache {
|
|
15
15
|
static GLOBAL_PROJECT_ID = 'global';
|
|
16
16
|
/**
|
|
17
17
|
* Convert an array of projects to a set of project ids.
|
|
@@ -226,4 +226,3 @@ class PermissionCache {
|
|
|
226
226
|
}
|
|
227
227
|
}
|
|
228
228
|
}
|
|
229
|
-
export default PermissionCache;
|
|
@@ -23,7 +23,7 @@ export const getPopupContainer = (target) => (typeof target === 'string' ? docum
|
|
|
23
23
|
* @name Popup
|
|
24
24
|
* @extends {ReactComponent}
|
|
25
25
|
*/
|
|
26
|
-
class Popup extends PureComponent {
|
|
26
|
+
export default class Popup extends PureComponent {
|
|
27
27
|
static defaultProps = {
|
|
28
28
|
shortcuts: true,
|
|
29
29
|
hidden: false,
|
|
@@ -273,7 +273,6 @@ class Popup extends PureComponent {
|
|
|
273
273
|
</PopupTargetContext.Consumer>);
|
|
274
274
|
}
|
|
275
275
|
}
|
|
276
|
-
export default Popup;
|
|
277
276
|
Popup.propTypes = {
|
|
278
277
|
anchorElement: PropTypes.instanceOf(Node),
|
|
279
278
|
target: PropTypes.oneOfType([PropTypes.string, PropTypes.instanceOf(Element)]),
|
|
@@ -6,7 +6,7 @@ const { children, ...popupPropTypes } = Popup.propTypes || {};
|
|
|
6
6
|
/**
|
|
7
7
|
* @name Popup Menu
|
|
8
8
|
*/
|
|
9
|
-
class PopupMenu extends Popup {
|
|
9
|
+
export default class PopupMenu extends Popup {
|
|
10
10
|
static isItemType = List.isItemType;
|
|
11
11
|
static ListProps = List.ListProps;
|
|
12
12
|
static defaultProps = {
|
|
@@ -33,7 +33,6 @@ class PopupMenu extends Popup {
|
|
|
33
33
|
</div>);
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
|
-
export default PopupMenu;
|
|
37
36
|
PopupMenu.propTypes = {
|
|
38
37
|
...popupPropTypes,
|
|
39
38
|
...List.propTypes,
|
|
@@ -5,7 +5,7 @@ import styles from './progress-bar.css';
|
|
|
5
5
|
/**
|
|
6
6
|
* @name Progress Bar
|
|
7
7
|
*/
|
|
8
|
-
class ProgressBar extends PureComponent {
|
|
8
|
+
export default class ProgressBar extends PureComponent {
|
|
9
9
|
/**
|
|
10
10
|
* @param {number} value The progress task value
|
|
11
11
|
* @param {number} max The maximum value
|
|
@@ -68,4 +68,3 @@ class ProgressBar extends PureComponent {
|
|
|
68
68
|
</div>);
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
|
-
export default ProgressBar;
|
|
@@ -68,7 +68,7 @@ function cleanText(text) {
|
|
|
68
68
|
+ __group__ \`string=\` Group title. Options with the same title are grouped under it
|
|
69
69
|
+ __icon__ \`string=\` Icon URI, Data URI is possible
|
|
70
70
|
*/
|
|
71
|
-
class QueryAssist extends Component {
|
|
71
|
+
export default class QueryAssist extends Component {
|
|
72
72
|
static propTypes = {
|
|
73
73
|
/**
|
|
74
74
|
* Open suggestions popup during the initial render
|
|
@@ -837,5 +837,4 @@ class QueryAssist extends Component {
|
|
|
837
837
|
</ControlsHeightContext.Provider>);
|
|
838
838
|
}
|
|
839
839
|
}
|
|
840
|
-
export default QueryAssist;
|
|
841
840
|
export const RerenderableQueryAssist = rerenderHOC(QueryAssist);
|
|
@@ -5,7 +5,7 @@ import RadioItem, { RadioContext } from './radio__item';
|
|
|
5
5
|
/**
|
|
6
6
|
* @name Radio
|
|
7
7
|
*/
|
|
8
|
-
class Radio extends Component {
|
|
8
|
+
export default class Radio extends Component {
|
|
9
9
|
static propTypes = {
|
|
10
10
|
name: PropTypes.string,
|
|
11
11
|
disabled: PropTypes.bool,
|
|
@@ -25,4 +25,3 @@ class Radio extends Component {
|
|
|
25
25
|
</RadioContext.Provider>);
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
|
-
export default Radio;
|
|
@@ -4,7 +4,7 @@ import classNames from 'classnames';
|
|
|
4
4
|
import getUID from '../global/get-uid';
|
|
5
5
|
import styles from './radio.css';
|
|
6
6
|
export const RadioContext = createContext({});
|
|
7
|
-
class Radio extends Component {
|
|
7
|
+
export class Radio extends Component {
|
|
8
8
|
static propTypes = {
|
|
9
9
|
className: PropTypes.string,
|
|
10
10
|
children: PropTypes.node,
|
|
@@ -32,7 +32,6 @@ class Radio extends Component {
|
|
|
32
32
|
</label>);
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
|
-
export { Radio };
|
|
36
35
|
const RadioItem = forwardRef(function RadioItem(props, ref) {
|
|
37
36
|
return (<RadioContext.Consumer>
|
|
38
37
|
{({ value, onChange, ...restContext }) => (<Radio ref={ref} {...restContext} checked={value != null ? value === props.value : undefined} onChange={onChange != null ? () => onChange(props.value) : undefined} {...props}/>)}
|
|
@@ -176,7 +176,7 @@ function isSameSelected(prevSelected, selected) {
|
|
|
176
176
|
/**
|
|
177
177
|
* Displays a select.
|
|
178
178
|
*/
|
|
179
|
-
class Select extends Component {
|
|
179
|
+
export default class Select extends Component {
|
|
180
180
|
static defaultProps = {
|
|
181
181
|
data: [],
|
|
182
182
|
filter: false,
|
|
@@ -873,7 +873,6 @@ class Select extends Component {
|
|
|
873
873
|
</ActiveItemContext.Provider>);
|
|
874
874
|
}
|
|
875
875
|
}
|
|
876
|
-
export default Select;
|
|
877
876
|
Select.propTypes = {
|
|
878
877
|
className: PropTypes.string,
|
|
879
878
|
buttonClassName: PropTypes.string,
|
|
@@ -7,7 +7,7 @@ import { ActiveItemContext } from '../list/list';
|
|
|
7
7
|
import { I18nContext } from '../i18n/i18n-context';
|
|
8
8
|
import styles from './select-popup.css';
|
|
9
9
|
function noop() { }
|
|
10
|
-
class SelectFilter extends Component {
|
|
10
|
+
export default class SelectFilter extends Component {
|
|
11
11
|
static defaultProps = {
|
|
12
12
|
inputRef: noop
|
|
13
13
|
};
|
|
@@ -40,7 +40,6 @@ class SelectFilter extends Component {
|
|
|
40
40
|
</ActiveItemContext.ValueContext.Consumer>);
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
|
-
export default SelectFilter;
|
|
44
43
|
SelectFilter.propTypes = {
|
|
45
44
|
placeholder: PropTypes.string,
|
|
46
45
|
className: PropTypes.string,
|
|
@@ -29,7 +29,7 @@ const FILTER_HEIGHT = 35;
|
|
|
29
29
|
const TOOLBAR_HEIGHT = 49;
|
|
30
30
|
function noop() { }
|
|
31
31
|
const FilterWithShortcuts = shortcutsHOC(SelectFilter);
|
|
32
|
-
class SelectPopup extends PureComponent {
|
|
32
|
+
export default class SelectPopup extends PureComponent {
|
|
33
33
|
static defaultProps = {
|
|
34
34
|
data: [],
|
|
35
35
|
activeIndex: null,
|
|
@@ -339,7 +339,6 @@ class SelectPopup extends PureComponent {
|
|
|
339
339
|
</PopupTargetContext.Consumer>);
|
|
340
340
|
}
|
|
341
341
|
}
|
|
342
|
-
export default SelectPopup;
|
|
343
342
|
SelectPopup.propTypes = {
|
|
344
343
|
activeIndex: PropTypes.number,
|
|
345
344
|
anchorElement: PropTypes.instanceOf(HTMLElement),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PureComponent } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import shortcuts from './core';
|
|
4
|
-
class Shortcuts extends PureComponent {
|
|
4
|
+
export default class Shortcuts extends PureComponent {
|
|
5
5
|
static propTypes = {
|
|
6
6
|
map: PropTypes.object.isRequired,
|
|
7
7
|
scope: PropTypes.string.isRequired,
|
|
@@ -48,4 +48,3 @@ class Shortcuts extends PureComponent {
|
|
|
48
48
|
return this.props.children || null;
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
|
-
export default Shortcuts;
|
|
@@ -13,7 +13,7 @@ const SECONDS_IN_DAY = 24 * 60 * 60 * 1000;
|
|
|
13
13
|
* @return {FallbackStorage}
|
|
14
14
|
* @constructor
|
|
15
15
|
*/
|
|
16
|
-
class FallbackStorage {
|
|
16
|
+
export default class FallbackStorage {
|
|
17
17
|
static DEFAULT_COOKIE_NAME = 'localStorage';
|
|
18
18
|
static DEFAULT_SESSION_COOKIE_NAME = 'sessionStorage';
|
|
19
19
|
static DEFAULT_CHECK_DELAY = DEFAULT_CHECK_DELAY;
|
|
@@ -179,4 +179,3 @@ class FallbackStorage {
|
|
|
179
179
|
};
|
|
180
180
|
}
|
|
181
181
|
}
|
|
182
|
-
export default FallbackStorage;
|
|
@@ -6,7 +6,7 @@ export const FOCUSABLE_ELEMENTS = 'input, button, select, textarea, a[href], *[t
|
|
|
6
6
|
/**
|
|
7
7
|
* @name TabTrap
|
|
8
8
|
*/
|
|
9
|
-
class TabTrap extends Component {
|
|
9
|
+
export default class TabTrap extends Component {
|
|
10
10
|
static propTypes = {
|
|
11
11
|
children: PropTypes.node.isRequired,
|
|
12
12
|
trapDisabled: PropTypes.bool,
|
|
@@ -123,4 +123,3 @@ class TabTrap extends Component {
|
|
|
123
123
|
</div>);
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
|
-
export default TabTrap;
|
package/components/table/cell.js
CHANGED
|
@@ -3,7 +3,7 @@ import PropTypes from 'prop-types';
|
|
|
3
3
|
import classNames from 'classnames';
|
|
4
4
|
import dataTests from '../global/data-tests';
|
|
5
5
|
import style from './table.css';
|
|
6
|
-
class Cell extends PureComponent {
|
|
6
|
+
export default class Cell extends PureComponent {
|
|
7
7
|
static propTypes = {
|
|
8
8
|
children: PropTypes.any,
|
|
9
9
|
className: PropTypes.string,
|
|
@@ -14,4 +14,3 @@ class Cell extends PureComponent {
|
|
|
14
14
|
return (<td {...this.props} className={classes} data-test={dataTests('ring-table-cell', this.props['data-test'])}>{this.props.children}</td>);
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
|
-
export default Cell;
|
|
@@ -6,7 +6,7 @@ import sortedIcon from '@jetbrains/icons/chevron-10px';
|
|
|
6
6
|
import Icon from '../icon/icon';
|
|
7
7
|
import dataTests from '../global/data-tests';
|
|
8
8
|
import style from './table.css';
|
|
9
|
-
class HeaderCell extends PureComponent {
|
|
9
|
+
export default class HeaderCell extends PureComponent {
|
|
10
10
|
static propTypes = {
|
|
11
11
|
children: PropTypes.any,
|
|
12
12
|
className: PropTypes.string,
|
|
@@ -54,4 +54,3 @@ class HeaderCell extends PureComponent {
|
|
|
54
54
|
</th>);
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
|
-
export default HeaderCell;
|
|
@@ -6,7 +6,7 @@ import Checkbox from '../checkbox/checkbox';
|
|
|
6
6
|
import getUID from '../global/get-uid';
|
|
7
7
|
import style from './table.css';
|
|
8
8
|
import HeaderCell from './header-cell';
|
|
9
|
-
class Header extends PureComponent {
|
|
9
|
+
export default class Header extends PureComponent {
|
|
10
10
|
static propTypes = {
|
|
11
11
|
caption: PropTypes.string,
|
|
12
12
|
selectable: PropTypes.bool,
|
|
@@ -109,4 +109,3 @@ class Header extends PureComponent {
|
|
|
109
109
|
</thead>);
|
|
110
110
|
}
|
|
111
111
|
}
|
|
112
|
-
export default Header;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { PureComponent, Children, cloneElement } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
|
-
class MultiTable extends PureComponent {
|
|
3
|
+
export default class MultiTable extends PureComponent {
|
|
4
4
|
static propTypes = {
|
|
5
5
|
children: PropTypes.any.isRequired
|
|
6
6
|
};
|
|
@@ -79,4 +79,3 @@ class MultiTable extends PureComponent {
|
|
|
79
79
|
})}</div>);
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
|
-
export default MultiTable;
|
package/components/table/row.js
CHANGED
|
@@ -22,7 +22,7 @@ DragHandle.propTypes = {
|
|
|
22
22
|
alwaysShowDragHandle: PropTypes.bool,
|
|
23
23
|
dragHandleTitle: PropTypes.string
|
|
24
24
|
};
|
|
25
|
-
class Row extends PureComponent {
|
|
25
|
+
export default class Row extends PureComponent {
|
|
26
26
|
static defaultProps = {
|
|
27
27
|
selectable: true,
|
|
28
28
|
showFocus: false,
|
|
@@ -123,7 +123,6 @@ class Row extends PureComponent {
|
|
|
123
123
|
return (<tr id={this.id} ref={composeRefs(this.rowRef, innerRef)} className={classes} tabIndex={0} data-test={dataTests('ring-table-row', dataTest)} {...testAttrs} {...restProps} onMouseMove={this.onMouseEnter} onClick={this.onClick} onDoubleClick={this.onDoubleClick}>{cells}</tr>);
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
|
-
export default Row;
|
|
127
126
|
Row.propTypes = {
|
|
128
127
|
className: PropTypes.string,
|
|
129
128
|
metaColumnClassName: PropTypes.string,
|
|
@@ -18,7 +18,7 @@ import Row from './row-with-focus-sensor';
|
|
|
18
18
|
/**
|
|
19
19
|
* Interactive table with selection and keyboard navigation support.
|
|
20
20
|
*/
|
|
21
|
-
class Table extends PureComponent {
|
|
21
|
+
export class Table extends PureComponent {
|
|
22
22
|
static defaultProps = {
|
|
23
23
|
isItemSelectable: () => true,
|
|
24
24
|
loading: false,
|
|
@@ -175,7 +175,6 @@ class Table extends PureComponent {
|
|
|
175
175
|
</div>);
|
|
176
176
|
}
|
|
177
177
|
}
|
|
178
|
-
export { Table };
|
|
179
178
|
Table.propTypes = {
|
|
180
179
|
className: PropTypes.string,
|
|
181
180
|
loaderClassName: PropTypes.string,
|
|
@@ -222,7 +221,7 @@ Table.propTypes = {
|
|
|
222
221
|
};
|
|
223
222
|
const getContainer = () => disableHoverHOC(selectionShortcutsHOC(focusSensorHOC(Table)));
|
|
224
223
|
// eslint-disable-next-line react/no-multi-comp
|
|
225
|
-
class TableContainer extends Component {
|
|
224
|
+
export default class TableContainer extends Component {
|
|
226
225
|
// https://stackoverflow.com/a/53882322/6304152
|
|
227
226
|
static propTypes = getContainer().propTypes;
|
|
228
227
|
Table = getContainer();
|
|
@@ -230,4 +229,3 @@ class TableContainer extends Component {
|
|
|
230
229
|
return <this.Table {...this.props}/>;
|
|
231
230
|
}
|
|
232
231
|
}
|
|
233
|
-
export default TableContainer;
|
|
@@ -2,7 +2,7 @@ import React, { PureComponent } from 'react';
|
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import dataTests from '../global/data-tests';
|
|
4
4
|
import Tabs from './dumb-tabs';
|
|
5
|
-
class SmartTabs extends PureComponent {
|
|
5
|
+
export default class SmartTabs extends PureComponent {
|
|
6
6
|
static propTypes = {
|
|
7
7
|
children: PropTypes.arrayOf(PropTypes.element).isRequired,
|
|
8
8
|
initSelected: PropTypes.string,
|
|
@@ -23,4 +23,3 @@ class SmartTabs extends PureComponent {
|
|
|
23
23
|
return (<Tabs data-test={dataTests('ring-smart-tabs', dataTest)} selected={this.state.selected} onSelect={this.handleSelect} {...restProps}>{children}</Tabs>);
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
|
-
export default SmartTabs;
|
package/components/tabs/tab.js
CHANGED
|
@@ -2,7 +2,7 @@ import React, { PureComponent } from 'react';
|
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import classNames from 'classnames';
|
|
4
4
|
import dataTests from '../global/data-tests';
|
|
5
|
-
class Tab extends PureComponent {
|
|
5
|
+
export default class Tab extends PureComponent {
|
|
6
6
|
static propTypes = {
|
|
7
7
|
title: PropTypes.oneOfType([PropTypes.node, PropTypes.func]).isRequired,
|
|
8
8
|
id: PropTypes.string,
|
|
@@ -17,4 +17,3 @@ class Tab extends PureComponent {
|
|
|
17
17
|
</div>);
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
|
-
export default Tab;
|