@jetbrains/ring-ui 5.0.127 → 5.0.128
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 +2 -1
- package/components/alert/container.js +2 -1
- package/components/auth/auth__core.js +2 -1
- package/components/auth/request-builder.js +2 -1
- package/components/auth/response-parser.js +2 -1
- package/components/auth/token-validator.js +2 -1
- package/components/auth-dialog/auth-dialog.js +2 -1
- package/components/avatar/avatar.js +2 -1
- package/components/badge/badge.js +2 -1
- package/components/button/button.js +2 -1
- package/components/button-group/button-group.js +2 -1
- package/components/button-group/caption.js +2 -1
- package/components/button-set/button-set.js +2 -1
- package/components/button-toolbar/button-toolbar.js +2 -1
- package/components/caret/caret.js +2 -1
- package/components/checkbox/checkbox.js +2 -1
- package/components/code/code.js +2 -1
- package/components/confirm/confirm.js +2 -1
- package/components/content-layout/content-layout.js +2 -1
- package/components/content-layout/sidebar.js +2 -1
- package/components/data-list/data-list.js +2 -1
- package/components/data-list/item.js +2 -1
- package/components/date-picker/date-input.js +2 -1
- package/components/date-picker/date-picker.js +2 -1
- package/components/date-picker/date-popup.js +2 -1
- package/components/date-picker/day.js +2 -1
- package/components/date-picker/month-slider.js +2 -1
- package/components/date-picker/years.js +2 -1
- package/components/dialog/dialog.d.ts +4 -16
- package/components/dialog/dialog.js +6 -3
- package/components/dropdown/dropdown.js +2 -1
- package/components/error-bubble/error-bubble.js +2 -1
- package/components/error-message/error-message.js +2 -1
- package/components/footer/footer.js +1 -0
- package/components/global/react-dom-renderer.js +2 -1
- package/components/grid/col.js +2 -1
- package/components/grid/grid.js +2 -1
- package/components/grid/row.js +2 -1
- package/components/group/group.js +2 -1
- package/components/header/logo.js +2 -1
- package/components/header/profile.js +2 -1
- package/components/header/services-link.js +2 -1
- package/components/header/services.js +2 -1
- package/components/header/smart-profile.js +2 -1
- package/components/header/smart-services.js +2 -1
- package/components/header/tray-icon.js +2 -1
- package/components/header/tray.js +2 -1
- package/components/hub-source/hub-source.js +2 -1
- package/components/icon/icon.js +2 -1
- package/components/input/input.js +2 -1
- package/components/island/island.js +2 -1
- package/components/island-legacy/content-legacy.js +2 -1
- package/components/island-legacy/header-legacy.js +2 -1
- package/components/island-legacy/island-legacy.js +2 -1
- package/components/link/clickableLink.js +2 -1
- package/components/list/list.js +2 -1
- package/components/list/list__hint.js +2 -1
- package/components/list/list__users-groups-source.js +2 -1
- package/components/loader/loader.js +2 -1
- package/components/loader/loader__core.js +2 -1
- package/components/loader-screen/loader-screen.js +2 -1
- package/components/login-dialog/login-dialog.js +2 -1
- package/components/message/message.js +2 -1
- package/components/pager/pager.js +2 -1
- package/components/panel/panel.js +2 -1
- package/components/permissions/permissions.js +2 -1
- package/components/permissions/permissions__cache.js +2 -1
- package/components/popup/popup.js +2 -1
- package/components/popup-menu/popup-menu.js +2 -1
- package/components/progress-bar/progress-bar.js +2 -1
- package/components/query-assist/query-assist.js +4 -3
- package/components/radio/radio.js +2 -1
- package/components/radio/radio__item.js +2 -1
- package/components/select/select.js +2 -1
- package/components/select/select__filter.js +2 -1
- package/components/select/select__popup.js +4 -2
- package/components/shortcuts/shortcuts.js +2 -1
- package/components/storage/storage__fallback.js +2 -1
- package/components/tab-trap/tab-trap.js +2 -1
- package/components/table/cell.js +2 -1
- package/components/table/header-cell.js +2 -1
- package/components/table/header.js +2 -1
- package/components/table/multitable.js +2 -1
- package/components/table/row.js +3 -2
- package/components/table/table.js +4 -2
- package/components/tabs/smart-tabs.js +2 -1
- package/components/tabs/tab.js +2 -1
- package/components/tag/tag.js +2 -1
- package/components/tags-input/tags-input.d.ts +1 -1
- package/components/tags-input/tags-input.js +3 -2
- package/components/tags-list/tags-list.js +2 -1
- package/components/text/text.js +2 -1
- package/components/tooltip/tooltip.js +2 -1
- package/components/user-agreement/user-agreement.js +2 -1
- package/components/user-card/card.js +2 -1
- package/components/user-card/smart-user-card-tooltip.d.ts +1 -1
- package/components/user-card/smart-user-card-tooltip.js +2 -1
- package/components/user-card/tooltip.js +2 -1
- package/dist/_helpers/_rollupPluginBabelHelpers.js +1 -29
- package/dist/_helpers/anchor.js +1 -1
- package/dist/_helpers/card.js +44 -47
- package/dist/_helpers/footer.js +1 -0
- package/dist/_helpers/select__filter.js +10 -13
- package/dist/_helpers/services-link.js +10 -10
- package/dist/_helpers/sidebar.js +34 -37
- package/dist/_helpers/theme.js +1 -1
- package/dist/_helpers/title.js +12 -16
- package/dist/alert/alert.js +63 -66
- package/dist/alert/container.js +5 -5
- package/dist/alert-service/alert-service.js +5 -7
- package/dist/analytics/analytics.js +1 -2
- package/dist/analytics/analytics__custom-plugin.js +6 -8
- package/dist/auth/auth.js +1 -1
- package/dist/auth/auth__core.js +26 -26
- package/dist/auth/background-flow.js +4 -5
- package/dist/auth/iframe-flow.js +12 -12
- package/dist/auth/landing.js +1 -1
- package/dist/auth/request-builder.js +3 -5
- package/dist/auth/response-parser.js +5 -6
- package/dist/auth/storage.js +12 -12
- package/dist/auth/token-validator.js +13 -16
- package/dist/auth/window-flow.js +18 -19
- package/dist/auth-dialog/auth-dialog.js +54 -57
- package/dist/auth-dialog-service/auth-dialog-service.js +1 -1
- package/dist/auth-ng/auth-ng.js +1 -1
- package/dist/avatar/avatar.js +30 -33
- package/dist/avatar-ng/avatar-ng.js +1 -1
- package/dist/badge/badge.js +10 -10
- package/dist/badge-ng/badge-ng.js +1 -1
- package/dist/breadcrumb-ng/breadcrumb-ng.js +0 -1
- package/dist/button/button.js +24 -27
- package/dist/button-group/button-group.js +5 -5
- package/dist/button-group/caption.js +4 -4
- package/dist/button-ng/button-ng.js +68 -69
- package/dist/button-set/button-set.js +6 -6
- package/dist/button-toolbar/button-toolbar.js +6 -6
- package/dist/caret/caret.js +2 -4
- package/dist/checkbox/checkbox.js +27 -30
- package/dist/checkbox-ng/checkbox-ng.js +0 -1
- package/dist/code/code.js +17 -21
- package/dist/confirm/confirm.js +31 -34
- package/dist/confirm-ng/confirm-ng.js +1 -1
- package/dist/confirm-service/confirm-service.js +1 -1
- package/dist/content-layout/content-layout.js +17 -20
- package/dist/contenteditable/contenteditable.js +11 -11
- package/dist/data-list/data-list.js +49 -55
- package/dist/data-list/item.js +64 -67
- package/dist/data-list/selection.js +0 -1
- package/dist/data-list/title.js +1 -1
- package/dist/data-list-ng/data-list-ng.js +1 -1
- package/dist/date-picker/date-input.js +39 -42
- package/dist/date-picker/date-picker.js +162 -165
- package/dist/date-picker/date-popup.js +119 -119
- package/dist/date-picker/day.js +34 -38
- package/dist/date-picker/month-names.js +11 -14
- package/dist/date-picker/month-slider.js +24 -28
- package/dist/date-picker/month.js +1 -1
- package/dist/date-picker/months.js +1 -1
- package/dist/date-picker/years.js +9 -13
- package/dist/dialog/dialog.d.ts +4 -16
- package/dist/dialog/dialog.js +68 -65
- package/dist/dialog-ng/dialog-ng.js +21 -22
- package/dist/docked-panel-ng/docked-panel-ng.js +0 -1
- package/dist/dropdown/dropdown.js +101 -104
- package/dist/dropdown-menu/dropdown-menu.js +1 -1
- package/dist/editable-heading/editable-heading.js +1 -1
- package/dist/error-bubble/error-bubble.js +6 -6
- package/dist/error-message/error-message.js +10 -10
- package/dist/error-message-ng/error-message-ng.js +0 -1
- package/dist/footer-ng/footer-ng.js +19 -21
- package/dist/global/angular-component-factory.js +2 -3
- package/dist/global/dom.js +1 -5
- package/dist/global/focus-sensor-hoc.js +58 -61
- package/dist/global/listeners.js +1 -5
- package/dist/global/react-dom-renderer.js +8 -12
- package/dist/global/rerender-hoc.js +1 -5
- package/dist/global/ring-angular-component.js +1 -3
- package/dist/grid/col.js +13 -14
- package/dist/grid/grid.js +5 -5
- package/dist/grid/row.js +16 -17
- package/dist/group/group.js +5 -5
- package/dist/header/header.js +10 -10
- package/dist/header/logo.js +9 -9
- package/dist/header/profile.js +58 -58
- package/dist/header/services.js +19 -22
- package/dist/header/smart-profile.js +40 -43
- package/dist/header/smart-services.js +28 -31
- package/dist/header/tray-icon.js +6 -6
- package/dist/header/tray.js +5 -5
- package/dist/heading/heading.js +1 -1
- package/dist/heading-ng/heading-ng.js +1 -1
- package/dist/http/http.js +111 -107
- package/dist/http/http.mock.js +3 -4
- package/dist/hub-source/hub-source.js +7 -9
- package/dist/hub-source/hub-source__user.js +0 -1
- package/dist/hub-source/hub-source__users-groups.js +4 -5
- package/dist/icon/icon.js +18 -18
- package/dist/icon/icon__svg.js +1 -1
- package/dist/icon-ng/icon-ng.js +0 -1
- package/dist/input/input.js +35 -38
- package/dist/input-ng/input-ng.js +25 -26
- package/dist/island/adaptive-island-hoc.js +21 -25
- package/dist/island/content.js +62 -65
- package/dist/island/header.js +11 -11
- package/dist/island/island.js +8 -8
- package/dist/island-legacy/content-legacy.js +5 -5
- package/dist/island-legacy/header-legacy.js +5 -5
- package/dist/island-legacy/island-legacy.js +5 -5
- package/dist/link/clickableLink.js +27 -30
- package/dist/link/link.js +16 -16
- package/dist/list/list.js +389 -391
- package/dist/list/list__custom.js +6 -10
- package/dist/list/list__hint.js +3 -4
- package/dist/list/list__item.js +4 -7
- package/dist/list/list__link.js +1 -1
- package/dist/list/list__users-groups-source.js +3 -3
- package/dist/loader/loader.js +16 -19
- package/dist/loader/loader__core.js +62 -62
- package/dist/loader-inline/loader-inline.js +6 -6
- package/dist/loader-ng/loader-ng.js +3 -4
- package/dist/loader-screen/loader-screen.js +6 -6
- package/dist/loader-screen-ng/loader-screen-ng.js +0 -1
- package/dist/login-dialog/login-dialog.js +55 -58
- package/dist/login-dialog/service.js +1 -1
- package/dist/markdown/code.js +0 -1
- package/dist/markdown/markdown.js +1 -1
- package/dist/message/message.js +22 -25
- package/dist/old-browsers-message/white-list.js +2 -2
- package/dist/pager/pager.js +55 -58
- package/dist/pager-ng/pager-ng.js +1 -1
- package/dist/panel/panel.js +5 -5
- package/dist/panel-ng/panel-ng.js +0 -1
- package/dist/permissions/permissions.js +14 -16
- package/dist/permissions/permissions__cache.js +4 -6
- package/dist/permissions-ng/permissions-ng.js +1 -1
- package/dist/place-under-ng/place-under-ng.js +0 -1
- package/dist/popup/popup.js +118 -121
- package/dist/popup/popup.target.js +1 -1
- package/dist/popup/position.js +0 -1
- package/dist/popup-menu/popup-menu.js +19 -22
- package/dist/progress-bar/progress-bar.js +41 -44
- package/dist/progress-bar-ng/progress-bar-ng.js +1 -1
- package/dist/promised-click-ng/promised-click-ng.js +0 -1
- package/dist/query-assist/query-assist.js +507 -501
- package/dist/query-assist/query-assist__suggestions.js +1 -1
- package/dist/query-assist-ng/query-assist-ng.js +1 -1
- package/dist/radio/radio.js +10 -13
- package/dist/radio/radio__item.js +19 -22
- package/dist/select/select.js +350 -349
- package/dist/select/select__popup.js +148 -152
- package/dist/select-ng/select-ng.js +1 -1
- package/dist/select-ng/select-ng__lazy.js +4 -4
- package/dist/select-ng/select-ng__options.js +14 -15
- package/dist/shortcuts/core.js +35 -36
- package/dist/shortcuts/shortcuts-hoc.js +7 -11
- package/dist/shortcuts/shortcuts.js +10 -11
- package/dist/shortcuts-hint-ng/shortcuts-hint-ng.js +0 -1
- package/dist/shortcuts-ng/shortcuts-ng.js +0 -1
- package/dist/sidebar-ng/sidebar-ng.js +0 -1
- package/dist/storage/storage.js +1 -1
- package/dist/storage/storage__fallback.js +8 -10
- package/dist/storage/storage__local.js +2 -2
- package/dist/style.css +1 -1
- package/dist/tab-trap/tab-trap.js +84 -86
- package/dist/table/cell.js +6 -6
- package/dist/table/disable-hover-hoc.js +23 -25
- package/dist/table/header-cell.js +28 -31
- package/dist/table/header.js +58 -61
- package/dist/table/multitable.js +91 -95
- package/dist/table/row-with-focus-sensor.js +15 -18
- package/dist/table/row.js +51 -54
- package/dist/table/selection-shortcuts-hoc.js +145 -147
- package/dist/table/selection.js +7 -9
- package/dist/table/smart-table.js +21 -24
- package/dist/table/table.js +103 -109
- package/dist/table-legacy-ng/table-legacy-ng.js +1 -1
- package/dist/table-legacy-ng/table-legacy-ng__pager.js +1 -1
- package/dist/table-legacy-ng/table-legacy-ng__selection.js +1 -3
- package/dist/table-legacy-ng/table-legacy-ng__toolbar.js +0 -1
- package/dist/table-ng/smart-table-ng.js +1 -1
- package/dist/table-ng/table-ng.js +1 -1
- package/dist/tabs/collapsible-more.js +1 -1
- package/dist/tabs/collapsible-tab.js +1 -1
- package/dist/tabs/dumb-tabs.js +46 -49
- package/dist/tabs/smart-tabs.js +10 -10
- package/dist/tabs/tab.js +7 -8
- package/dist/tag/tag.js +42 -45
- package/dist/tags-input/tags-input.d.ts +1 -1
- package/dist/tags-input/tags-input.js +214 -213
- package/dist/tags-input-ng/tags-input-ng.js +1 -1
- package/dist/tags-list/tags-list.js +20 -20
- package/dist/template-ng/template-ng.js +25 -26
- package/dist/text/text.js +6 -6
- package/dist/toggle/toggle.js +19 -19
- package/dist/toggle-ng/toggle-ng.js +1 -1
- package/dist/tooltip/tooltip.js +86 -89
- package/dist/tooltip-ng/tooltip-ng.js +1 -1
- package/dist/user-agreement/service.js +207 -205
- package/dist/user-agreement/user-agreement.js +39 -42
- package/dist/user-card/smart-user-card-tooltip.d.ts +1 -1
- package/dist/user-card/smart-user-card-tooltip.js +32 -35
- package/dist/user-card/tooltip.js +26 -26
- package/dist/user-card-ng/user-card-ng.js +1 -1
- package/package.json +15 -15
|
@@ -3,7 +3,7 @@ import PropTypes from 'prop-types';
|
|
|
3
3
|
import classNames from 'classnames';
|
|
4
4
|
import Icon, { Size } from '../icon/icon';
|
|
5
5
|
import styles from './header.css';
|
|
6
|
-
|
|
6
|
+
class Logo extends PureComponent {
|
|
7
7
|
static propTypes = {
|
|
8
8
|
className: PropTypes.string
|
|
9
9
|
};
|
|
@@ -20,3 +20,4 @@ export default class Logo extends PureComponent {
|
|
|
20
20
|
</div>);
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
|
+
export default Logo;
|
|
@@ -8,7 +8,7 @@ import PopupMenu from '../popup-menu/popup-menu';
|
|
|
8
8
|
import { isTruthy } from '../global/typescript-utils';
|
|
9
9
|
import styles from './header.css';
|
|
10
10
|
const rgItemType = PopupMenu.ListProps.Type.LINK;
|
|
11
|
-
|
|
11
|
+
class Profile extends PureComponent {
|
|
12
12
|
static propTypes = {
|
|
13
13
|
className: PropTypes.string,
|
|
14
14
|
closeOnSelect: PropTypes.bool,
|
|
@@ -113,3 +113,4 @@ export default class Profile extends PureComponent {
|
|
|
113
113
|
}}/>);
|
|
114
114
|
}
|
|
115
115
|
}
|
|
116
|
+
export default Profile;
|
|
@@ -2,7 +2,7 @@ import React, { PureComponent } from 'react';
|
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import Link from '../link/link';
|
|
4
4
|
import styles from './services.css';
|
|
5
|
-
|
|
5
|
+
class ServicesLink extends PureComponent {
|
|
6
6
|
static propTypes = {
|
|
7
7
|
isActive: PropTypes.bool,
|
|
8
8
|
service: PropTypes.shape({
|
|
@@ -26,3 +26,4 @@ export default class ServicesLink extends PureComponent {
|
|
|
26
26
|
</Link>);
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
|
+
export default ServicesLink;
|
|
@@ -16,7 +16,7 @@ const makeAnchor = (loading) => {
|
|
|
16
16
|
};
|
|
17
17
|
return Anchor;
|
|
18
18
|
};
|
|
19
|
-
|
|
19
|
+
class Services extends PureComponent {
|
|
20
20
|
static sort = (a, b) => {
|
|
21
21
|
const aApplicationName = a.applicationName || '';
|
|
22
22
|
const bApplicationName = b.applicationName || '';
|
|
@@ -60,3 +60,4 @@ export default class Services extends PureComponent {
|
|
|
60
60
|
</Dropdown>);
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
|
+
export default Services;
|
|
@@ -4,7 +4,7 @@ import Auth, { USER_CHANGED_EVENT, LOGOUT_POSTPONED_EVENT, USER_CHANGE_POSTPONED
|
|
|
4
4
|
import alertService from '../alert-service/alert-service';
|
|
5
5
|
import Profile from './profile';
|
|
6
6
|
const CERTIFICATE_MISMATCH_HEADER = 'x-client-certificate-token-mismatch';
|
|
7
|
-
|
|
7
|
+
class SmartProfile extends PureComponent {
|
|
8
8
|
static propTypes = {
|
|
9
9
|
auth: PropTypes.instanceOf(Auth).isRequired,
|
|
10
10
|
className: PropTypes.string,
|
|
@@ -84,3 +84,4 @@ export default class SmartProfile extends PureComponent {
|
|
|
84
84
|
return (<Profile onLogin={this.login} onLogout={this.logout} onSwitchUser={this.switchUser} loading={loading} user={user} profileUrl={url} showApplyChangedUser={isUserChangePostponed} showLogIn={isLogoutPostponed} showLogOut={!isLogoutPostponed} showSwitchUser={auth._canShowDialogs() && !isLogoutPostponed && !isUserChangePostponed} onRevertPostponement={this.onRevertPostponement} {...props}/>);
|
|
85
85
|
}
|
|
86
86
|
}
|
|
87
|
+
export default SmartProfile;
|
|
@@ -4,7 +4,7 @@ import Auth from '../auth/auth';
|
|
|
4
4
|
import HTTP from '../http/http';
|
|
5
5
|
import Services from './services';
|
|
6
6
|
function noop() { }
|
|
7
|
-
|
|
7
|
+
class SmartServices extends Component {
|
|
8
8
|
static propTypes = {
|
|
9
9
|
auth: PropTypes.instanceOf(Auth).isRequired
|
|
10
10
|
};
|
|
@@ -47,3 +47,4 @@ export default class SmartServices extends Component {
|
|
|
47
47
|
return (<Services {...props} clientId={auth.config.clientId} initShown loading={loading} onClick={this.getServicesContent} services={services}/>);
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
|
+
export default SmartServices;
|
|
@@ -3,7 +3,7 @@ import PropTypes from 'prop-types';
|
|
|
3
3
|
import classNames from 'classnames';
|
|
4
4
|
import Button from '../button/button';
|
|
5
5
|
import styles from './header.css';
|
|
6
|
-
|
|
6
|
+
class TrayIcon extends Component {
|
|
7
7
|
static propTypes = {
|
|
8
8
|
...Button.propTypes,
|
|
9
9
|
icon: PropTypes.oneOfType([PropTypes.string, PropTypes.elementType]).isRequired,
|
|
@@ -18,3 +18,4 @@ export default class TrayIcon extends Component {
|
|
|
18
18
|
return (<Button {...restProps} className={classes}/>);
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
|
+
export default TrayIcon;
|
|
@@ -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
|
-
|
|
6
|
+
class Tray extends Component {
|
|
7
7
|
static propTypes = {
|
|
8
8
|
className: PropTypes.string,
|
|
9
9
|
children: PropTypes.node
|
|
@@ -16,3 +16,4 @@ export default 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
|
-
|
|
12
|
+
class HubSource {
|
|
13
13
|
static TOP_ALL = -1;
|
|
14
14
|
http;
|
|
15
15
|
relativeUrl;
|
|
@@ -105,3 +105,4 @@ export default 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
|
-
|
|
14
|
+
class Icon extends PureComponent {
|
|
15
15
|
static propTypes = {
|
|
16
16
|
className: PropTypes.string,
|
|
17
17
|
color: PropTypes.string,
|
|
@@ -66,4 +66,5 @@ export default class Icon extends PureComponent {
|
|
|
66
66
|
</span>);
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
|
+
export default Icon;
|
|
69
70
|
export { Color, Size };
|
|
@@ -22,7 +22,7 @@ var Size;
|
|
|
22
22
|
Size["L"] = "L";
|
|
23
23
|
Size["FULL"] = "FULL";
|
|
24
24
|
})(Size || (Size = {}));
|
|
25
|
-
|
|
25
|
+
class Input extends PureComponent {
|
|
26
26
|
static defaultProps = {
|
|
27
27
|
size: Size.M,
|
|
28
28
|
onChange: noop,
|
|
@@ -134,6 +134,7 @@ export class Input extends PureComponent {
|
|
|
134
134
|
</div>);
|
|
135
135
|
}
|
|
136
136
|
}
|
|
137
|
+
export { Input };
|
|
137
138
|
Input.propTypes = {
|
|
138
139
|
value: PropTypes.string,
|
|
139
140
|
className: PropTypes.string,
|
|
@@ -7,7 +7,7 @@ import styles from './island.css';
|
|
|
7
7
|
/**
|
|
8
8
|
* @name Island
|
|
9
9
|
*/
|
|
10
|
-
|
|
10
|
+
class Island extends Component {
|
|
11
11
|
static propTypes = {
|
|
12
12
|
children: PropTypes.node,
|
|
13
13
|
className: PropTypes.string,
|
|
@@ -26,6 +26,7 @@ export default class Island extends Component {
|
|
|
26
26
|
</div>);
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
|
+
export default Island;
|
|
29
30
|
export const AdaptiveIsland = adaptiveIslandHOC(Island);
|
|
30
31
|
export { default as Header } from './header';
|
|
31
32
|
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
|
-
|
|
5
|
+
class Content extends PureComponent {
|
|
6
6
|
static propTypes = {
|
|
7
7
|
className: PropTypes.string,
|
|
8
8
|
children: PropTypes.node
|
|
@@ -15,3 +15,4 @@ export default 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
|
-
|
|
5
|
+
class Header extends PureComponent {
|
|
6
6
|
static propTypes = {
|
|
7
7
|
className: PropTypes.string,
|
|
8
8
|
children: PropTypes.node
|
|
@@ -17,3 +17,4 @@ export default 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
|
-
|
|
5
|
+
class Island extends PureComponent {
|
|
6
6
|
static propTypes = {
|
|
7
7
|
className: PropTypes.string,
|
|
8
8
|
children: PropTypes.node
|
|
@@ -15,5 +15,6 @@ export default class Island extends PureComponent {
|
|
|
15
15
|
</div>);
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
|
+
export default Island;
|
|
18
19
|
export { default as Header } from './header-legacy';
|
|
19
20
|
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
|
-
|
|
6
|
+
class ClickableLink extends PureComponent {
|
|
7
7
|
static propTypes = {
|
|
8
8
|
onClick: PropTypes.func,
|
|
9
9
|
onPlainLeftClick: PropTypes.func,
|
|
@@ -31,3 +31,4 @@ export default 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
|
-
|
|
63
|
+
class List extends Component {
|
|
64
64
|
static propTypes = {
|
|
65
65
|
id: PropTypes.string,
|
|
66
66
|
className: PropTypes.string,
|
|
@@ -586,3 +586,4 @@ export default 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
|
-
|
|
9
|
+
class ListHint extends PureComponent {
|
|
10
10
|
static propTypes = {
|
|
11
11
|
label: PropTypes.node
|
|
12
12
|
};
|
|
@@ -14,3 +14,4 @@ export default 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
|
-
|
|
21
|
+
class ListUsersGroupsSource extends HubSourceUsersGroups {
|
|
22
22
|
static Filter = Filter;
|
|
23
23
|
listSourceOptions;
|
|
24
24
|
constructor(auth, options) {
|
|
@@ -72,3 +72,4 @@ export default 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
|
-
|
|
11
|
+
class Loader extends PureComponent {
|
|
12
12
|
static propTypes = {
|
|
13
13
|
className: PropTypes.string,
|
|
14
14
|
size: PropTypes.number,
|
|
@@ -42,3 +42,4 @@ export default 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
|
-
|
|
37
|
+
class LoaderCore {
|
|
38
38
|
static defaultProps = {
|
|
39
39
|
size: 64,
|
|
40
40
|
stop: false,
|
|
@@ -217,3 +217,4 @@ export default 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
|
-
|
|
9
|
+
class LoaderScreen extends PureComponent {
|
|
10
10
|
static propTypes = {
|
|
11
11
|
className: PropTypes.string,
|
|
12
12
|
containerClassName: PropTypes.string,
|
|
@@ -23,3 +23,4 @@ export default 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
|
-
|
|
16
|
+
class LoginDialog extends Component {
|
|
17
17
|
static propTypes = {
|
|
18
18
|
show: PropTypes.bool,
|
|
19
19
|
className: PropTypes.string,
|
|
@@ -82,3 +82,4 @@ export default class LoginDialog extends Component {
|
|
|
82
82
|
</Dialog>);
|
|
83
83
|
}
|
|
84
84
|
}
|
|
85
|
+
export default LoginDialog;
|
|
@@ -43,7 +43,7 @@ const getTailOffsets = (offset) => ({
|
|
|
43
43
|
/**
|
|
44
44
|
* Displays a popup containing a message.
|
|
45
45
|
*/
|
|
46
|
-
|
|
46
|
+
class Message extends Component {
|
|
47
47
|
static defaultProps = {
|
|
48
48
|
icon: gift,
|
|
49
49
|
directions: [
|
|
@@ -111,6 +111,7 @@ export default class Message extends Component {
|
|
|
111
111
|
</WithThemeClasses>);
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
|
+
export default Message;
|
|
114
115
|
Message.propTypes = {
|
|
115
116
|
children: PropTypes.node,
|
|
116
117
|
className: PropTypes.string,
|
|
@@ -14,7 +14,7 @@ import memoize from '../global/memoize';
|
|
|
14
14
|
import Link from '../link/link';
|
|
15
15
|
import Icon from '../icon/icon';
|
|
16
16
|
import style from './pager.css';
|
|
17
|
-
|
|
17
|
+
class Pager extends PureComponent {
|
|
18
18
|
static defaultProps = {
|
|
19
19
|
currentPage: 1,
|
|
20
20
|
pageSize: 50,
|
|
@@ -210,6 +210,7 @@ export default class Pager extends PureComponent {
|
|
|
210
210
|
</div>);
|
|
211
211
|
}
|
|
212
212
|
}
|
|
213
|
+
export default Pager;
|
|
213
214
|
Pager.propTypes = {
|
|
214
215
|
total: PropTypes.number.isRequired,
|
|
215
216
|
currentPage: PropTypes.number,
|
|
@@ -5,7 +5,7 @@ import styles from './panel.css';
|
|
|
5
5
|
/**
|
|
6
6
|
* @name Panel
|
|
7
7
|
*/
|
|
8
|
-
|
|
8
|
+
class Panel extends PureComponent {
|
|
9
9
|
static propTypes = {
|
|
10
10
|
className: PropTypes.string,
|
|
11
11
|
children: PropTypes.node
|
|
@@ -18,3 +18,4 @@ export default 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
|
-
|
|
26
|
+
class Permissions {
|
|
27
27
|
/**
|
|
28
28
|
* @const {string}
|
|
29
29
|
*/
|
|
@@ -175,3 +175,4 @@ export default 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
|
-
|
|
14
|
+
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,3 +226,4 @@ export default 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
|
-
|
|
26
|
+
class Popup extends PureComponent {
|
|
27
27
|
static defaultProps = {
|
|
28
28
|
shortcuts: true,
|
|
29
29
|
hidden: false,
|
|
@@ -273,6 +273,7 @@ export default class Popup extends PureComponent {
|
|
|
273
273
|
</PopupTargetContext.Consumer>);
|
|
274
274
|
}
|
|
275
275
|
}
|
|
276
|
+
export default Popup;
|
|
276
277
|
Popup.propTypes = {
|
|
277
278
|
anchorElement: PropTypes.instanceOf(Node),
|
|
278
279
|
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
|
-
|
|
9
|
+
class PopupMenu extends Popup {
|
|
10
10
|
static isItemType = List.isItemType;
|
|
11
11
|
static ListProps = List.ListProps;
|
|
12
12
|
static defaultProps = {
|
|
@@ -33,6 +33,7 @@ export default class PopupMenu extends Popup {
|
|
|
33
33
|
</div>);
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
|
+
export default PopupMenu;
|
|
36
37
|
PopupMenu.propTypes = {
|
|
37
38
|
...popupPropTypes,
|
|
38
39
|
...List.propTypes,
|
|
@@ -5,7 +5,7 @@ import styles from './progress-bar.css';
|
|
|
5
5
|
/**
|
|
6
6
|
* @name Progress Bar
|
|
7
7
|
*/
|
|
8
|
-
|
|
8
|
+
class ProgressBar extends PureComponent {
|
|
9
9
|
/**
|
|
10
10
|
* @param {number} value The progress task value
|
|
11
11
|
* @param {number} max The maximum value
|
|
@@ -68,3 +68,4 @@ export default class ProgressBar extends PureComponent {
|
|
|
68
68
|
</div>);
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
|
+
export default ProgressBar;
|
|
@@ -67,7 +67,7 @@ function cleanText(text) {
|
|
|
67
67
|
+ __group__ \`string=\` Group title. Options with the same title are grouped under it
|
|
68
68
|
+ __icon__ \`string=\` Icon URI, Data URI is possible
|
|
69
69
|
*/
|
|
70
|
-
|
|
70
|
+
class QueryAssist extends Component {
|
|
71
71
|
static propTypes = {
|
|
72
72
|
/**
|
|
73
73
|
* Open suggestions popup during the initial render
|
|
@@ -803,7 +803,7 @@ export default class QueryAssist extends Component {
|
|
|
803
803
|
[styles.withoutGlass]: !glass || (!renderLoader && huge)
|
|
804
804
|
});
|
|
805
805
|
return (<ControlsHeightContext.Provider value={ControlsHeight.M}>
|
|
806
|
-
<div data-test={dataTests('ring-query-assist', dataTest)} className={containerClasses} role="
|
|
806
|
+
<div data-test={dataTests('ring-query-assist', dataTest)} className={containerClasses} role="presentation" ref={this.nodeRef}>
|
|
807
807
|
{this.state.shortcuts && (<Shortcuts map={this.shortcutsMap} scope={this.shortcutsScope}/>)}
|
|
808
808
|
|
|
809
809
|
{renderGlass && !huge && (<Icon glyph={searchIcon} className={styles.icon} title={this.props.translations.searchTitle} ref={this.glassRef} data-test="query-assist-search-icon"/>)}
|
|
@@ -815,7 +815,7 @@ export default class QueryAssist extends Component {
|
|
|
815
815
|
<LoaderInline />
|
|
816
816
|
</div>)}
|
|
817
817
|
|
|
818
|
-
<ContentEditable aria-label={this.props.translations.searchTitle}
|
|
818
|
+
<ContentEditable aria-label={this.props.translations.searchTitle} className={inputClasses} data-test="ring-query-assist-input" inputRef={this.inputRef} disabled={this.props.disabled} onComponentUpdate={() => this.setCaretPosition({ fromContentEditable: true })} onBlur={this.handleFocusChange} onClick={this.handleCaretMove} onCompositionStart={this.trackCompositionState} onCompositionEnd={this.trackCompositionState} onFocus={this.handleFocusChange} onInput={this.handleInput} // To support IE use the same method
|
|
819
819
|
onKeyUp={this.handleInput} // to handle input and key up
|
|
820
820
|
onKeyDown={this.handleEnter} onPaste={this.handlePaste} spellCheck="false">{this.state.query && <span>{this.renderQuery()}</span>}</ContentEditable>
|
|
821
821
|
|
|
@@ -836,4 +836,5 @@ export default class QueryAssist extends Component {
|
|
|
836
836
|
</ControlsHeightContext.Provider>);
|
|
837
837
|
}
|
|
838
838
|
}
|
|
839
|
+
export default QueryAssist;
|
|
839
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
|
-
|
|
8
|
+
class Radio extends Component {
|
|
9
9
|
static propTypes = {
|
|
10
10
|
name: PropTypes.string,
|
|
11
11
|
disabled: PropTypes.bool,
|
|
@@ -25,3 +25,4 @@ export default 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
|
-
|
|
7
|
+
class Radio extends Component {
|
|
8
8
|
static propTypes = {
|
|
9
9
|
className: PropTypes.string,
|
|
10
10
|
children: PropTypes.node,
|
|
@@ -32,6 +32,7 @@ export class Radio extends Component {
|
|
|
32
32
|
</label>);
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
|
+
export { Radio };
|
|
35
36
|
const RadioItem = forwardRef(function RadioItem(props, ref) {
|
|
36
37
|
return (<RadioContext.Consumer>
|
|
37
38
|
{({ value, onChange, ...restContext }) => (<Radio ref={ref} {...restContext} checked={value != null ? value === props.value : undefined} onChange={onChange != null ? () => onChange(props.value) : undefined} {...props}/>)}
|
|
@@ -175,7 +175,7 @@ function isSameSelected(prevSelected, selected) {
|
|
|
175
175
|
/**
|
|
176
176
|
* Displays a select.
|
|
177
177
|
*/
|
|
178
|
-
|
|
178
|
+
class Select extends Component {
|
|
179
179
|
static defaultProps = {
|
|
180
180
|
data: [],
|
|
181
181
|
filter: false,
|
|
@@ -870,6 +870,7 @@ export default class Select extends Component {
|
|
|
870
870
|
</ActiveItemContext.Provider>);
|
|
871
871
|
}
|
|
872
872
|
}
|
|
873
|
+
export default Select;
|
|
873
874
|
Select.propTypes = {
|
|
874
875
|
className: PropTypes.string,
|
|
875
876
|
buttonClassName: PropTypes.string,
|
|
@@ -6,7 +6,7 @@ import sniffr from '../global/sniffer';
|
|
|
6
6
|
import { ActiveItemContext } from '../list/list';
|
|
7
7
|
import styles from './select-popup.css';
|
|
8
8
|
function noop() { }
|
|
9
|
-
|
|
9
|
+
class SelectFilter extends Component {
|
|
10
10
|
static defaultProps = {
|
|
11
11
|
placeholder: 'Filter items',
|
|
12
12
|
inputRef: noop
|
|
@@ -38,6 +38,7 @@ export default class SelectFilter extends Component {
|
|
|
38
38
|
</ActiveItemContext.ValueContext.Consumer>);
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
|
+
export default SelectFilter;
|
|
41
42
|
SelectFilter.propTypes = {
|
|
42
43
|
placeholder: PropTypes.string,
|
|
43
44
|
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
|
-
|
|
32
|
+
class SelectPopup extends PureComponent {
|
|
33
33
|
static defaultProps = {
|
|
34
34
|
data: [],
|
|
35
35
|
activeIndex: null,
|
|
@@ -75,7 +75,8 @@ export default class SelectPopup extends PureComponent {
|
|
|
75
75
|
}
|
|
76
76
|
caret;
|
|
77
77
|
handleNavigation(event, navigateLeft) {
|
|
78
|
-
if (this.isEventTargetFilter(event) && this.caret != null &&
|
|
78
|
+
if (this.isEventTargetFilter(event) && this.caret != null &&
|
|
79
|
+
Number(this.caret.getPosition()) > 0 ||
|
|
79
80
|
!Array.isArray(this.props.selected)) {
|
|
80
81
|
return;
|
|
81
82
|
}
|
|
@@ -338,6 +339,7 @@ export default class SelectPopup extends PureComponent {
|
|
|
338
339
|
</PopupTargetContext.Consumer>);
|
|
339
340
|
}
|
|
340
341
|
}
|
|
342
|
+
export default SelectPopup;
|
|
341
343
|
SelectPopup.propTypes = {
|
|
342
344
|
activeIndex: PropTypes.number,
|
|
343
345
|
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
|
-
|
|
4
|
+
class Shortcuts extends PureComponent {
|
|
5
5
|
static propTypes = {
|
|
6
6
|
map: PropTypes.object.isRequired,
|
|
7
7
|
scope: PropTypes.string.isRequired,
|
|
@@ -48,3 +48,4 @@ export default 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
|
-
|
|
16
|
+
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,3 +179,4 @@ export default 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
|
-
|
|
9
|
+
class TabTrap extends Component {
|
|
10
10
|
static propTypes = {
|
|
11
11
|
children: PropTypes.node.isRequired,
|
|
12
12
|
trapDisabled: PropTypes.bool,
|
|
@@ -123,3 +123,4 @@ export default class TabTrap extends Component {
|
|
|
123
123
|
</div>);
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
|
+
export default TabTrap;
|