@jetbrains/ring-ui-built 7.0.0-beta.3 → 7.0.0-beta.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/_helpers/anchor.js +0 -5
- package/components/_helpers/caption.js +1 -5
- package/components/_helpers/card.js +0 -28
- package/components/_helpers/icon__svg.js +0 -6
- package/components/_helpers/input.js +0 -21
- package/components/_helpers/select__filter.js +0 -8
- package/components/_helpers/services-link.js +1 -11
- package/components/_helpers/sidebar.js +0 -9
- package/components/_helpers/tab-link.js +0 -6
- package/components/_helpers/theme.js +1 -1
- package/components/_helpers/title.js +0 -15
- package/components/alert/alert.d.ts +7 -24
- package/components/alert/alert.js +0 -24
- package/components/alert/container.d.ts +0 -5
- package/components/alert/container.js +1 -6
- package/components/alert-service/alert-service.js +0 -1
- package/components/auth/auth.js +0 -4
- package/components/auth/auth__core.d.ts +3 -3
- package/components/auth/auth__core.js +32 -24
- package/components/auth/down-notification.js +0 -9
- package/components/auth/iframe-flow.js +0 -1
- package/components/auth/storage.js +3 -7
- package/components/auth-dialog/auth-dialog.d.ts +0 -18
- package/components/auth-dialog/auth-dialog.js +7 -25
- package/components/auth-dialog-service/auth-dialog-service.js +4 -5
- package/components/avatar/avatar.d.ts +0 -13
- package/components/avatar/avatar.js +0 -13
- package/components/avatar/fallback-avatar.d.ts +1 -10
- package/components/avatar/fallback-avatar.js +0 -6
- package/components/badge/badge.d.ts +0 -10
- package/components/badge/badge.js +1 -11
- package/components/button/button.d.ts +0 -21
- package/components/button/button.js +0 -21
- package/components/button-group/button-group.d.ts +0 -5
- package/components/button-group/button-group.js +1 -6
- package/components/button-group/caption.d.ts +0 -4
- package/components/button-group/caption.js +0 -1
- package/components/button-set/button-set.d.ts +0 -6
- package/components/button-set/button-set.js +1 -7
- package/components/button-toolbar/button-toolbar.d.ts +0 -6
- package/components/button-toolbar/button-toolbar.js +1 -7
- package/components/checkbox/checkbox.d.ts +0 -19
- package/components/checkbox/checkbox.js +0 -18
- package/components/clipboard/clipboard.js +0 -1
- package/components/code/code.d.ts +0 -12
- package/components/code/code.js +0 -12
- package/components/confirm/confirm.d.ts +0 -14
- package/components/confirm/confirm.js +10 -24
- package/components/confirm-service/confirm-service.js +0 -1
- package/components/content-layout/content-layout.d.ts +0 -7
- package/components/content-layout/content-layout.js +0 -7
- package/components/content-layout/sidebar.d.ts +0 -9
- package/components/content-layout/sidebar.js +0 -1
- package/components/contenteditable/contenteditable.d.ts +1 -22
- package/components/contenteditable/contenteditable.js +1 -16
- package/components/control-label/control-label.js +0 -6
- package/components/data-list/data-list.d.ts +0 -2
- package/components/data-list/data-list.js +2 -23
- package/components/data-list/data-list.mock.js +0 -1
- package/components/data-list/item.js +0 -26
- package/components/data-list/title.d.ts +2 -2
- package/components/data-list/title.js +0 -2
- package/components/date-picker/consts.d.ts +0 -2
- package/components/date-picker/consts.js +1 -3
- package/components/date-picker/date-input.d.ts +0 -20
- package/components/date-picker/date-input.js +0 -23
- package/components/date-picker/date-picker.d.ts +0 -29
- package/components/date-picker/date-picker.js +3 -40
- package/components/date-picker/date-popup.d.ts +0 -22
- package/components/date-picker/date-popup.js +1 -24
- package/components/date-picker/day.d.ts +0 -14
- package/components/date-picker/day.js +1 -15
- package/components/date-picker/month-names.d.ts +1 -11
- package/components/date-picker/month-names.js +2 -14
- package/components/date-picker/month-slider.d.ts +0 -9
- package/components/date-picker/month-slider.js +1 -10
- package/components/date-picker/month.d.ts +1 -9
- package/components/date-picker/month.js +1 -6
- package/components/date-picker/months.d.ts +1 -9
- package/components/date-picker/months.js +1 -6
- package/components/date-picker/weekdays.d.ts +2 -8
- package/components/date-picker/weekdays.js +0 -4
- package/components/date-picker/years.d.ts +0 -6
- package/components/date-picker/years.js +1 -7
- package/components/dialog/dialog.d.ts +0 -20
- package/components/dialog/dialog.js +2 -24
- package/components/dropdown/anchor.d.ts +1 -8
- package/components/dropdown/anchor.js +0 -1
- package/components/dropdown/dropdown.d.ts +4 -22
- package/components/dropdown/dropdown.js +0 -22
- package/components/dropdown-menu/dropdown-menu.js +9 -33
- package/components/editable-heading/editable-heading.js +0 -2
- package/components/error-bubble/error-bubble.d.ts +0 -6
- package/components/error-bubble/error-bubble.js +1 -7
- package/components/error-message/error-message.d.ts +0 -10
- package/components/error-message/error-message.js +1 -11
- package/components/footer/footer.js +0 -15
- package/components/form/form.js +1 -1
- package/components/global/create-stateful-context.d.ts +0 -4
- package/components/global/create-stateful-context.js +0 -4
- package/components/global/focus-sensor-hoc.js +7 -27
- package/components/global/react-dom-renderer.d.ts +0 -5
- package/components/global/react-dom-renderer.js +0 -5
- package/components/global/theme.d.ts +1 -0
- package/components/global/theme.js +1 -2
- package/components/grid/col.d.ts +0 -14
- package/components/grid/col.js +1 -16
- package/components/grid/grid.d.ts +0 -5
- package/components/grid/grid.js +1 -6
- package/components/grid/row.d.ts +0 -18
- package/components/grid/row.js +1 -19
- package/components/group/group.d.ts +0 -5
- package/components/group/group.js +1 -6
- package/components/header/header-icon.d.ts +0 -22
- package/components/header/header-icon.js +1 -6
- package/components/header/header.d.ts +0 -6
- package/components/header/header.js +0 -10
- package/components/header/logo.d.ts +0 -4
- package/components/header/logo.js +0 -4
- package/components/header/profile.d.ts +1 -39
- package/components/header/profile.js +1 -40
- package/components/header/services-link.d.ts +0 -10
- package/components/header/services-link.js +0 -1
- package/components/header/services.d.ts +0 -14
- package/components/header/services.js +1 -13
- package/components/header/smart-profile.d.ts +0 -9
- package/components/header/smart-profile.js +16 -28
- package/components/header/smart-services.d.ts +0 -4
- package/components/header/smart-services.js +17 -51
- package/components/header/tray.d.ts +0 -5
- package/components/header/tray.js +1 -6
- package/components/heading/heading.js +0 -6
- package/components/icon/icon.d.ts +0 -11
- package/components/icon/icon.js +0 -11
- package/components/icon/icon__svg.d.ts +0 -8
- package/components/icon/icon__svg.js +0 -1
- package/components/icon/index.js +0 -1
- package/components/input/input-legacy.js +1 -1
- package/components/input/input.js +0 -2
- package/components/input-size/input-size.js +1 -1
- package/components/island/adaptive-island-hoc.d.ts +0 -1
- package/components/island/adaptive-island-hoc.js +3 -4
- package/components/island/content.d.ts +0 -10
- package/components/island/content.js +2 -12
- package/components/island/header.js +2 -10
- package/components/island/island.d.ts +0 -9
- package/components/island/island.js +1 -9
- package/components/island-legacy/content-legacy.d.ts +0 -5
- package/components/island-legacy/content-legacy.js +1 -6
- package/components/island-legacy/header-legacy.d.ts +0 -5
- package/components/island-legacy/header-legacy.js +1 -6
- package/components/island-legacy/island-legacy.d.ts +0 -5
- package/components/island-legacy/island-legacy.js +1 -6
- package/components/link/clickableLink.d.ts +0 -9
- package/components/link/clickableLink.js +0 -9
- package/components/link/link.d.ts +0 -25
- package/components/link/link.js +3 -16
- package/components/list/list.d.ts +0 -32
- package/components/list/list.js +1 -31
- package/components/list/list__custom.js +0 -17
- package/components/list/list__hint.d.ts +0 -4
- package/components/list/list__hint.js +0 -5
- package/components/list/list__item.js +0 -33
- package/components/list/list__link.js +2 -13
- package/components/list/list__separator.js +0 -6
- package/components/list/list__title.js +0 -7
- package/components/list/list__users-groups-source.js +0 -2
- package/components/loader/loader.d.ts +0 -10
- package/components/loader/loader.js +0 -10
- package/components/loader-inline/loader-inline.d.ts +0 -6
- package/components/loader-inline/loader-inline.js +1 -7
- package/components/loader-screen/loader-screen.d.ts +0 -6
- package/components/loader-screen/loader-screen.js +1 -7
- package/components/login-dialog/login-dialog.d.ts +0 -11
- package/components/login-dialog/login-dialog.js +12 -23
- package/components/login-dialog/service.js +3 -2
- package/components/markdown/markdown.js +0 -5
- package/components/message/message.js +0 -16
- package/components/pager/pager.js +1 -21
- package/components/panel/panel.d.ts +0 -5
- package/components/panel/panel.js +1 -6
- package/components/popup/popup.js +0 -41
- package/components/popup/popup.target.js +0 -5
- package/components/popup-menu/popup-menu.js +1 -12
- package/components/progress-bar/progress-bar.d.ts +19 -33
- package/components/progress-bar/progress-bar.js +0 -33
- package/components/query-assist/query-assist.d.ts +63 -93
- package/components/query-assist/query-assist.js +2 -96
- package/components/query-assist/query-assist__suggestions.js +0 -2
- package/components/radio/radio.d.ts +0 -8
- package/components/radio/radio.js +0 -8
- package/components/radio/radio__item.d.ts +0 -9
- package/components/radio/radio__item.js +0 -10
- package/components/select/select.js +3 -68
- package/components/select/select__filter.js +0 -2
- package/components/select/select__popup.js +1 -52
- package/components/shortcuts/core.js +1 -1
- package/components/shortcuts/shortcuts-hoc.d.ts +0 -5
- package/components/shortcuts/shortcuts-hoc.js +2 -7
- package/components/shortcuts/shortcuts.d.ts +0 -8
- package/components/shortcuts/shortcuts.js +0 -8
- package/components/slider/slider.js +0 -1
- package/components/storage/storage.d.ts +2 -3
- package/components/storage/storage.js +2 -22
- package/components/storage/storage__local.js +0 -1
- package/components/style.css +1 -1
- package/components/tab-trap/tab-trap.js +0 -8
- package/components/table/cell.d.ts +0 -6
- package/components/table/cell.js +1 -7
- package/components/table/disable-hover-hoc.d.ts +0 -1
- package/components/table/disable-hover-hoc.js +1 -1
- package/components/table/header-cell.d.ts +0 -10
- package/components/table/header-cell.js +0 -10
- package/components/table/header.d.ts +0 -15
- package/components/table/header.js +0 -16
- package/components/table/multitable.d.ts +0 -4
- package/components/table/multitable.js +0 -4
- package/components/table/row-with-focus-sensor.d.ts +2 -2
- package/components/table/row-with-focus-sensor.js +0 -3
- package/components/table/row.js +0 -35
- package/components/table/selection-shortcuts-hoc.js +3 -22
- package/components/table/simple-table.d.ts +0 -44
- package/components/table/simple-table.js +1 -7
- package/components/table/smart-table.d.ts +0 -48
- package/components/table/smart-table.js +1 -10
- package/components/table/table.d.ts +0 -2
- package/components/table/table.js +3 -52
- package/components/tabs/collapsible-more.d.ts +1 -9
- package/components/tabs/collapsible-more.js +0 -24
- package/components/tabs/collapsible-tab.js +1 -9
- package/components/tabs/collapsible-tabs.d.ts +2 -29
- package/components/tabs/collapsible-tabs.js +0 -13
- package/components/tabs/custom-item.d.ts +1 -7
- package/components/tabs/custom-item.js +0 -5
- package/components/tabs/dumb-tabs.d.ts +0 -11
- package/components/tabs/dumb-tabs.js +0 -12
- package/components/tabs/smart-tabs.d.ts +0 -6
- package/components/tabs/smart-tabs.js +0 -7
- package/components/tabs/tab-link.d.ts +0 -8
- package/components/tabs/tab-link.js +0 -1
- package/components/tabs/tab.d.ts +0 -8
- package/components/tabs/tab.js +0 -9
- package/components/tabs/tabs.js +0 -2
- package/components/tag/tag.d.ts +0 -17
- package/components/tag/tag.js +0 -17
- package/components/tags-input/tags-input.d.ts +7 -33
- package/components/tags-input/tags-input.js +2 -35
- package/components/tags-list/tags-list.d.ts +0 -13
- package/components/tags-list/tags-list.js +0 -13
- package/components/text/text.d.ts +0 -7
- package/components/text/text.js +0 -7
- package/components/toggle/toggle.d.ts +0 -15
- package/components/toggle/toggle.js +0 -15
- package/components/tooltip/tooltip.d.ts +0 -9
- package/components/tooltip/tooltip.js +0 -9
- package/components/user-agreement/service.d.ts +2 -1
- package/components/user-agreement/service.js +2 -6
- package/components/user-agreement/user-agreement.d.ts +0 -18
- package/components/user-agreement/user-agreement.js +11 -29
- package/components/user-card/card.d.ts +0 -35
- package/components/user-card/card.js +0 -1
- package/components/user-card/smart-user-card-tooltip.d.ts +0 -5
- package/components/user-card/smart-user-card-tooltip.js +0 -5
- package/components/user-card/tooltip.d.ts +0 -9
- package/components/user-card/tooltip.js +0 -9
- package/components/user-card/user-card.js +0 -1
- package/package.json +1 -3
- package/components/global/prop-types.d.ts +0 -4
- package/components/global/prop-types.js +0 -7
- package/components/storage/storage__fallback.d.ts +0 -79
- package/components/storage/storage__fallback.js +0 -180
@@ -1,5 +1,4 @@
|
|
1
1
|
import { Component } from 'react';
|
2
|
-
import PropTypes from 'prop-types';
|
3
2
|
/**
|
4
3
|
* @name Auth Dialog
|
5
4
|
*/
|
@@ -21,23 +20,6 @@ export interface AuthDialogProps {
|
|
21
20
|
onTryAgain?: () => void;
|
22
21
|
}
|
23
22
|
export default class AuthDialog extends Component<AuthDialogProps> {
|
24
|
-
static propTypes: {
|
25
|
-
className: PropTypes.Requireable<string>;
|
26
|
-
title: PropTypes.Requireable<string>;
|
27
|
-
errorMessage: PropTypes.Requireable<string>;
|
28
|
-
serviceImage: PropTypes.Requireable<string>;
|
29
|
-
serviceName: PropTypes.Requireable<string>;
|
30
|
-
loginCaption: PropTypes.Requireable<string>;
|
31
|
-
loginToCaption: PropTypes.Requireable<string>;
|
32
|
-
show: PropTypes.Requireable<boolean>;
|
33
|
-
cancelOnEsc: PropTypes.Requireable<boolean>;
|
34
|
-
confirmLabel: PropTypes.Requireable<string>;
|
35
|
-
cancelLabel: PropTypes.Requireable<string>;
|
36
|
-
tryAgainLabel: PropTypes.Requireable<string>;
|
37
|
-
onConfirm: PropTypes.Requireable<(...args: any[]) => any>;
|
38
|
-
onCancel: PropTypes.Requireable<(...args: any[]) => any>;
|
39
|
-
onTryAgain: PropTypes.Requireable<(...args: any[]) => any>;
|
40
|
-
};
|
41
23
|
static defaultProps: {
|
42
24
|
loginCaption: string;
|
43
25
|
loginToCaption: string;
|
@@ -3,24 +3,23 @@ import 'core-js/modules/es.regexp.exec.js';
|
|
3
3
|
import 'core-js/modules/es.string.replace.js';
|
4
4
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
5
5
|
import { Component } from 'react';
|
6
|
-
import PropTypes from 'prop-types';
|
7
6
|
import classNames from 'classnames';
|
8
|
-
import '
|
7
|
+
import 'core-js/modules/es.array.reduce.js';
|
8
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
9
|
+
import '../island/header.js';
|
10
|
+
import ContentWrapper from '../island/content.js';
|
9
11
|
import Dialog from '../dialog/dialog.js';
|
10
12
|
import { Button } from '../button/button.js';
|
11
13
|
import { H2 } from '../heading/heading.js';
|
12
|
-
import { jsx, jsxs } from 'react/jsx-runtime';
|
13
|
-
import ContentWrapper from '../island/content.js';
|
14
|
-
import '../global/data-tests.js';
|
15
|
-
import 'core-js/modules/es.array.reduce.js';
|
16
|
-
import '../island/adaptive-island-hoc.js';
|
17
14
|
import '../global/linear-function.js';
|
18
15
|
import '../_helpers/island.js';
|
19
|
-
import '../island/
|
16
|
+
import '../island/adaptive-island-hoc.js';
|
20
17
|
import 'element-resize-detector';
|
21
18
|
import '../global/schedule-raf.js';
|
22
19
|
import 'react-dom';
|
23
20
|
import '@jetbrains/icons/close';
|
21
|
+
import '../island/island.js';
|
22
|
+
import '../global/data-tests.js';
|
24
23
|
import '../global/get-uid.js';
|
25
24
|
import '../shortcuts/shortcuts.js';
|
26
25
|
import '../shortcuts/core.js';
|
@@ -146,23 +145,6 @@ class AuthDialog extends Component {
|
|
146
145
|
});
|
147
146
|
}
|
148
147
|
}
|
149
|
-
_defineProperty(AuthDialog, "propTypes", {
|
150
|
-
className: PropTypes.string,
|
151
|
-
title: PropTypes.string,
|
152
|
-
errorMessage: PropTypes.string,
|
153
|
-
serviceImage: PropTypes.string,
|
154
|
-
serviceName: PropTypes.string,
|
155
|
-
loginCaption: PropTypes.string,
|
156
|
-
loginToCaption: PropTypes.string,
|
157
|
-
show: PropTypes.bool,
|
158
|
-
cancelOnEsc: PropTypes.bool,
|
159
|
-
confirmLabel: PropTypes.string,
|
160
|
-
cancelLabel: PropTypes.string,
|
161
|
-
tryAgainLabel: PropTypes.string,
|
162
|
-
onConfirm: PropTypes.func,
|
163
|
-
onCancel: PropTypes.func,
|
164
|
-
onTryAgain: PropTypes.func
|
165
|
-
});
|
166
148
|
_defineProperty(AuthDialog, "defaultProps", {
|
167
149
|
loginCaption: 'Log in',
|
168
150
|
loginToCaption: 'Log in to %serviceName%',
|
@@ -7,21 +7,20 @@ import 'react';
|
|
7
7
|
import 'core-js/modules/es.regexp.exec.js';
|
8
8
|
import 'core-js/modules/es.string.replace.js';
|
9
9
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
10
|
-
import 'prop-types';
|
11
10
|
import 'classnames';
|
12
|
-
import '../island/island.js';
|
13
|
-
import '../global/data-tests.js';
|
14
11
|
import 'core-js/modules/es.array.reduce.js';
|
15
|
-
import '../island/
|
12
|
+
import '../island/header.js';
|
16
13
|
import '../global/linear-function.js';
|
17
14
|
import '../_helpers/island.js';
|
18
|
-
import '../island/
|
15
|
+
import '../island/adaptive-island-hoc.js';
|
19
16
|
import '../island/content.js';
|
20
17
|
import 'element-resize-detector';
|
21
18
|
import '../global/schedule-raf.js';
|
22
19
|
import '../dialog/dialog.js';
|
23
20
|
import 'react-dom';
|
24
21
|
import '@jetbrains/icons/close';
|
22
|
+
import '../island/island.js';
|
23
|
+
import '../global/data-tests.js';
|
25
24
|
import '../global/get-uid.js';
|
26
25
|
import '../shortcuts/shortcuts.js';
|
27
26
|
import '../shortcuts/core.js';
|
@@ -1,5 +1,4 @@
|
|
1
1
|
import { PureComponent, ImgHTMLAttributes } from 'react';
|
2
|
-
import PropTypes from 'prop-types';
|
3
2
|
/**
|
4
3
|
* @name Avatar
|
5
4
|
*/
|
@@ -24,18 +23,6 @@ export interface AvatarProps extends ImgHTMLAttributes<HTMLImageElement> {
|
|
24
23
|
skipParams?: boolean | null | undefined;
|
25
24
|
}
|
26
25
|
export default class Avatar extends PureComponent<AvatarProps> {
|
27
|
-
static propTypes: {
|
28
|
-
dpr: PropTypes.Requireable<number>;
|
29
|
-
className: PropTypes.Requireable<string>;
|
30
|
-
size: PropTypes.Requireable<number>;
|
31
|
-
style: PropTypes.Requireable<object>;
|
32
|
-
url: PropTypes.Requireable<string>;
|
33
|
-
round: PropTypes.Requireable<boolean>;
|
34
|
-
subavatar: PropTypes.Requireable<string>;
|
35
|
-
subavatarSize: PropTypes.Requireable<number>;
|
36
|
-
username: PropTypes.Requireable<string>;
|
37
|
-
skipParams: PropTypes.Requireable<boolean>;
|
38
|
-
};
|
39
26
|
static defaultProps: {
|
40
27
|
dpr: number;
|
41
28
|
size: Size;
|
@@ -1,7 +1,6 @@
|
|
1
1
|
import { _ as _defineProperty, a as _objectWithoutProperties, b as _objectSpread2 } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
2
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
3
3
|
import { PureComponent } from 'react';
|
4
|
-
import PropTypes from 'prop-types';
|
5
4
|
import classNames from 'classnames';
|
6
5
|
import { isDataURI, parseQueryString, encodeURL } from '../global/url.js';
|
7
6
|
import { getPixelRatio } from '../global/dom.js';
|
@@ -131,18 +130,6 @@ class Avatar extends PureComponent {
|
|
131
130
|
}
|
132
131
|
}
|
133
132
|
}
|
134
|
-
_defineProperty(Avatar, "propTypes", {
|
135
|
-
dpr: PropTypes.number,
|
136
|
-
className: PropTypes.string,
|
137
|
-
size: PropTypes.number,
|
138
|
-
style: PropTypes.object,
|
139
|
-
url: PropTypes.string,
|
140
|
-
round: PropTypes.bool,
|
141
|
-
subavatar: PropTypes.string,
|
142
|
-
subavatarSize: PropTypes.number,
|
143
|
-
username: PropTypes.string,
|
144
|
-
skipParams: PropTypes.bool
|
145
|
-
});
|
146
133
|
_defineProperty(Avatar, "defaultProps", {
|
147
134
|
dpr: getPixelRatio(),
|
148
135
|
size: Size.Size20,
|
@@ -1,16 +1,7 @@
|
|
1
|
-
import PropTypes from 'prop-types';
|
2
1
|
import { Size } from './avatar';
|
3
2
|
export interface FallbackAvatarProps {
|
4
3
|
username: string;
|
5
4
|
size: Size;
|
6
5
|
round: boolean | null | undefined;
|
7
6
|
}
|
8
|
-
|
9
|
-
declare namespace FallbackAvatar {
|
10
|
-
var propTypes: {
|
11
|
-
username: PropTypes.Validator<string>;
|
12
|
-
size: PropTypes.Validator<number>;
|
13
|
-
round: PropTypes.Requireable<boolean>;
|
14
|
-
};
|
15
|
-
}
|
16
|
-
export default FallbackAvatar;
|
7
|
+
export default function FallbackAvatar({ username, size, round }: FallbackAvatarProps): import("react").JSX.Element;
|
@@ -1,7 +1,6 @@
|
|
1
1
|
import 'core-js/modules/es.regexp.exec.js';
|
2
2
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
3
3
|
import { useMemo } from 'react';
|
4
|
-
import PropTypes from 'prop-types';
|
5
4
|
import getUID from '../global/get-uid.js';
|
6
5
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
7
6
|
|
@@ -141,10 +140,5 @@ function FallbackAvatar(_ref) {
|
|
141
140
|
})]
|
142
141
|
});
|
143
142
|
}
|
144
|
-
FallbackAvatar.propTypes = {
|
145
|
-
username: PropTypes.string.isRequired,
|
146
|
-
size: PropTypes.number.isRequired,
|
147
|
-
round: PropTypes.bool
|
148
|
-
};
|
149
143
|
|
150
144
|
export { FallbackAvatar as default };
|
@@ -1,5 +1,4 @@
|
|
1
1
|
import { PureComponent, HTMLAttributes } from 'react';
|
2
|
-
import PropTypes from 'prop-types';
|
3
2
|
export interface BadgeProps extends HTMLAttributes<HTMLElement> {
|
4
3
|
gray?: boolean | null | undefined;
|
5
4
|
valid?: boolean | null | undefined;
|
@@ -11,14 +10,5 @@ export interface BadgeProps extends HTMLAttributes<HTMLElement> {
|
|
11
10
|
* @name Badge
|
12
11
|
*/
|
13
12
|
export default class Badge extends PureComponent<BadgeProps> {
|
14
|
-
static propTypes: {
|
15
|
-
gray: PropTypes.Requireable<boolean>;
|
16
|
-
valid: PropTypes.Requireable<boolean>;
|
17
|
-
invalid: PropTypes.Requireable<boolean>;
|
18
|
-
disabled: PropTypes.Requireable<boolean>;
|
19
|
-
className: PropTypes.Requireable<string>;
|
20
|
-
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
21
|
-
'data-test': PropTypes.Requireable<string>;
|
22
|
-
};
|
23
13
|
render(): import("react").JSX.Element;
|
24
14
|
}
|
@@ -1,6 +1,5 @@
|
|
1
|
-
import {
|
1
|
+
import { a as _objectWithoutProperties, b as _objectSpread2 } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
2
|
import { PureComponent } from 'react';
|
3
|
-
import PropTypes from 'prop-types';
|
4
3
|
import classNames from 'classnames';
|
5
4
|
import deprecate from 'util-deprecate';
|
6
5
|
import joinDataTestAttributes from '../global/data-tests.js';
|
@@ -44,14 +43,5 @@ class Badge extends PureComponent {
|
|
44
43
|
}));
|
45
44
|
}
|
46
45
|
}
|
47
|
-
_defineProperty(Badge, "propTypes", {
|
48
|
-
gray: PropTypes.bool,
|
49
|
-
valid: PropTypes.bool,
|
50
|
-
invalid: PropTypes.bool,
|
51
|
-
disabled: PropTypes.bool,
|
52
|
-
className: PropTypes.string,
|
53
|
-
children: PropTypes.node,
|
54
|
-
'data-test': PropTypes.string
|
55
|
-
});
|
56
46
|
|
57
47
|
export { Badge as default };
|
@@ -1,6 +1,5 @@
|
|
1
1
|
import { PureComponent, ButtonHTMLAttributes } from 'react';
|
2
2
|
import * as React from 'react';
|
3
|
-
import PropTypes from 'prop-types';
|
4
3
|
import { IconProps, IconType, Size } from '../icon/icon';
|
5
4
|
import { ClickableLinkProps } from '../link/clickableLink';
|
6
5
|
import { ControlsHeight, ControlsHeightContext } from '../global/controls-height';
|
@@ -36,26 +35,6 @@ export type ButtonProps = ButtonButtonProps | ButtonLinkProps;
|
|
36
35
|
* A component for displaying variously styled buttons.
|
37
36
|
*/
|
38
37
|
export declare class Button extends PureComponent<ButtonProps> {
|
39
|
-
static propTypes: {
|
40
|
-
active: PropTypes.Requireable<boolean>;
|
41
|
-
danger: PropTypes.Requireable<boolean>;
|
42
|
-
delayed: PropTypes.Requireable<boolean>;
|
43
|
-
loader: PropTypes.Requireable<boolean>;
|
44
|
-
primary: PropTypes.Requireable<boolean>;
|
45
|
-
short: PropTypes.Requireable<boolean>;
|
46
|
-
text: PropTypes.Requireable<boolean>;
|
47
|
-
inline: PropTypes.Requireable<boolean>;
|
48
|
-
dropdown: PropTypes.Requireable<boolean>;
|
49
|
-
href: PropTypes.Requireable<string>;
|
50
|
-
target: PropTypes.Requireable<string>;
|
51
|
-
icon: PropTypes.Requireable<NonNullable<PropTypes.ReactComponentLike | null | undefined>>;
|
52
|
-
iconSize: PropTypes.Requireable<number>;
|
53
|
-
iconClassName: PropTypes.Requireable<string>;
|
54
|
-
iconSuppressSizeWarning: PropTypes.Requireable<boolean>;
|
55
|
-
className: PropTypes.Requireable<string>;
|
56
|
-
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
57
|
-
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
58
|
-
};
|
59
38
|
static IconSize: typeof Size;
|
60
39
|
static contextType: React.Context<ControlsHeight>;
|
61
40
|
context: React.ContextType<typeof ControlsHeightContext>;
|
@@ -1,7 +1,6 @@
|
|
1
1
|
import { _ as _defineProperty, a as _objectWithoutProperties, b as _objectSpread2 } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
2
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
3
3
|
import { PureComponent, createRef } from 'react';
|
4
|
-
import PropTypes from 'prop-types';
|
5
4
|
import classNames from 'classnames';
|
6
5
|
import chevronDownIcon from '@jetbrains/icons/chevron-down';
|
7
6
|
import Icon from '../icon/icon.js';
|
@@ -91,26 +90,6 @@ class Button extends PureComponent {
|
|
91
90
|
}, commonProps));
|
92
91
|
}
|
93
92
|
}
|
94
|
-
_defineProperty(Button, "propTypes", {
|
95
|
-
active: PropTypes.bool,
|
96
|
-
danger: PropTypes.bool,
|
97
|
-
delayed: PropTypes.bool,
|
98
|
-
loader: PropTypes.bool,
|
99
|
-
primary: PropTypes.bool,
|
100
|
-
short: PropTypes.bool,
|
101
|
-
text: PropTypes.bool,
|
102
|
-
inline: PropTypes.bool,
|
103
|
-
dropdown: PropTypes.bool,
|
104
|
-
href: PropTypes.string,
|
105
|
-
target: PropTypes.string,
|
106
|
-
icon: PropTypes.oneOfType([PropTypes.string, PropTypes.elementType]),
|
107
|
-
iconSize: PropTypes.number,
|
108
|
-
iconClassName: PropTypes.string,
|
109
|
-
iconSuppressSizeWarning: PropTypes.bool,
|
110
|
-
className: PropTypes.string,
|
111
|
-
children: PropTypes.node,
|
112
|
-
onClick: PropTypes.func
|
113
|
-
});
|
114
93
|
_defineProperty(Button, "IconSize", Size);
|
115
94
|
_defineProperty(Button, "contextType", ControlsHeightContext);
|
116
95
|
|
@@ -1,5 +1,4 @@
|
|
1
1
|
import { PureComponent, HTMLAttributes, ReactNode } from 'react';
|
2
|
-
import PropTypes from 'prop-types';
|
3
2
|
import Caption from './caption';
|
4
3
|
export interface ButtonGroupProps extends HTMLAttributes<HTMLElement> {
|
5
4
|
split?: boolean | null | undefined;
|
@@ -11,10 +10,6 @@ export interface ButtonGroupProps extends HTMLAttributes<HTMLElement> {
|
|
11
10
|
* @name Button Group
|
12
11
|
*/
|
13
12
|
export default class ButtonGroup extends PureComponent<ButtonGroupProps> {
|
14
|
-
static propTypes: {
|
15
|
-
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
16
|
-
className: PropTypes.Requireable<string>;
|
17
|
-
};
|
18
13
|
render(): import("react").JSX.Element;
|
19
14
|
}
|
20
15
|
export { Caption };
|
@@ -1,7 +1,6 @@
|
|
1
|
-
import {
|
1
|
+
import { a as _objectWithoutProperties, b as _objectSpread2 } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
2
|
import 'core-js/modules/es.regexp.exec.js';
|
3
3
|
import { PureComponent } from 'react';
|
4
|
-
import PropTypes from 'prop-types';
|
5
4
|
import classNames from 'classnames';
|
6
5
|
import joinDataTestAttributes from '../global/data-tests.js';
|
7
6
|
import { ControlLabel } from '../control-label/control-label.js';
|
@@ -38,9 +37,5 @@ class ButtonGroup extends PureComponent {
|
|
38
37
|
});
|
39
38
|
}
|
40
39
|
}
|
41
|
-
_defineProperty(ButtonGroup, "propTypes", {
|
42
|
-
children: PropTypes.node,
|
43
|
-
className: PropTypes.string
|
44
|
-
});
|
45
40
|
|
46
41
|
export { ButtonGroup as default };
|
@@ -1,8 +1,4 @@
|
|
1
1
|
import { PureComponent, HTMLAttributes } from 'react';
|
2
|
-
import PropTypes from 'prop-types';
|
3
2
|
export default class Caption extends PureComponent<HTMLAttributes<HTMLElement>> {
|
4
|
-
static propTypes: {
|
5
|
-
className: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
6
|
-
};
|
7
3
|
render(): import("react").JSX.Element;
|
8
4
|
}
|
@@ -1,5 +1,4 @@
|
|
1
1
|
import { PureComponent, HTMLAttributes } from 'react';
|
2
|
-
import PropTypes from 'prop-types';
|
3
2
|
export interface ButtonSetProps extends HTMLAttributes<HTMLElement> {
|
4
3
|
'data-test'?: string | null | undefined;
|
5
4
|
}
|
@@ -7,10 +6,5 @@ export interface ButtonSetProps extends HTMLAttributes<HTMLElement> {
|
|
7
6
|
* @name Button Set
|
8
7
|
*/
|
9
8
|
export default class ButtonSet extends PureComponent<ButtonSetProps> {
|
10
|
-
static propTypes: {
|
11
|
-
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
12
|
-
className: PropTypes.Requireable<string>;
|
13
|
-
'data-test': PropTypes.Requireable<string>;
|
14
|
-
};
|
15
9
|
render(): import("react").JSX.Element;
|
16
10
|
}
|
@@ -1,7 +1,6 @@
|
|
1
|
-
import {
|
1
|
+
import { a as _objectWithoutProperties, b as _objectSpread2 } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
2
|
import { PureComponent } from 'react';
|
3
3
|
import classNames from 'classnames';
|
4
|
-
import PropTypes from 'prop-types';
|
5
4
|
import joinDataTestAttributes from '../global/data-tests.js';
|
6
5
|
import { jsx } from 'react/jsx-runtime';
|
7
6
|
import 'core-js/modules/es.array.reduce.js';
|
@@ -27,10 +26,5 @@ class ButtonSet extends PureComponent {
|
|
27
26
|
}));
|
28
27
|
}
|
29
28
|
}
|
30
|
-
_defineProperty(ButtonSet, "propTypes", {
|
31
|
-
children: PropTypes.node,
|
32
|
-
className: PropTypes.string,
|
33
|
-
'data-test': PropTypes.string
|
34
|
-
});
|
35
29
|
|
36
30
|
export { ButtonSet as default };
|
@@ -1,5 +1,4 @@
|
|
1
1
|
import { PureComponent, HTMLAttributes } from 'react';
|
2
|
-
import PropTypes from 'prop-types';
|
3
2
|
export interface ButtonToolbarProps extends HTMLAttributes<HTMLElement> {
|
4
3
|
'data-test'?: string | null | undefined;
|
5
4
|
}
|
@@ -7,10 +6,5 @@ export interface ButtonToolbarProps extends HTMLAttributes<HTMLElement> {
|
|
7
6
|
* @name Button Toolbar
|
8
7
|
*/
|
9
8
|
export default class ButtonToolbar extends PureComponent<ButtonToolbarProps> {
|
10
|
-
static propTypes: {
|
11
|
-
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
12
|
-
className: PropTypes.Requireable<string>;
|
13
|
-
'data-test': PropTypes.Requireable<string>;
|
14
|
-
};
|
15
9
|
render(): import("react").JSX.Element;
|
16
10
|
}
|
@@ -1,6 +1,5 @@
|
|
1
|
-
import {
|
1
|
+
import { a as _objectWithoutProperties, b as _objectSpread2 } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
2
|
import { PureComponent } from 'react';
|
3
|
-
import PropTypes from 'prop-types';
|
4
3
|
import classNames from 'classnames';
|
5
4
|
import joinDataTestAttributes from '../global/data-tests.js';
|
6
5
|
import { jsx } from 'react/jsx-runtime';
|
@@ -25,10 +24,5 @@ class ButtonToolbar extends PureComponent {
|
|
25
24
|
}));
|
26
25
|
}
|
27
26
|
}
|
28
|
-
_defineProperty(ButtonToolbar, "propTypes", {
|
29
|
-
children: PropTypes.node,
|
30
|
-
className: PropTypes.string,
|
31
|
-
'data-test': PropTypes.string
|
32
|
-
});
|
33
27
|
|
34
28
|
export { ButtonToolbar as default };
|
@@ -1,5 +1,4 @@
|
|
1
1
|
import { PureComponent, InputHTMLAttributes, CSSProperties, Ref, ReactNode } from 'react';
|
2
|
-
import PropTypes from 'prop-types';
|
3
2
|
export interface CheckboxProps extends InputHTMLAttributes<HTMLInputElement> {
|
4
3
|
label?: string | null | undefined;
|
5
4
|
containerClassName?: string | null | undefined;
|
@@ -17,24 +16,6 @@ export interface CheckboxProps extends InputHTMLAttributes<HTMLInputElement> {
|
|
17
16
|
* Displays a checkbox.
|
18
17
|
*/
|
19
18
|
export default class Checkbox extends PureComponent<CheckboxProps> {
|
20
|
-
static propTypes: {
|
21
|
-
name: PropTypes.Requireable<string>;
|
22
|
-
label: PropTypes.Requireable<string>;
|
23
|
-
className: PropTypes.Requireable<string>;
|
24
|
-
containerClassName: PropTypes.Requireable<string>;
|
25
|
-
containerStyle: PropTypes.Requireable<object>;
|
26
|
-
cellClassName: PropTypes.Requireable<string>;
|
27
|
-
labelClassName: PropTypes.Requireable<string>;
|
28
|
-
defaultChecked: PropTypes.Requireable<boolean>;
|
29
|
-
checked: PropTypes.Requireable<boolean>;
|
30
|
-
indeterminate: PropTypes.Requireable<boolean>;
|
31
|
-
disabled: PropTypes.Requireable<boolean>;
|
32
|
-
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
33
|
-
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
34
|
-
inputRef: PropTypes.Requireable<NonNullable<((...args: any[]) => any) | PropTypes.InferProps<{
|
35
|
-
current: PropTypes.Validator<HTMLInputElement | null | undefined>;
|
36
|
-
}> | null | undefined>>;
|
37
|
-
};
|
38
19
|
static defaultProps: {
|
39
20
|
indeterminate: boolean;
|
40
21
|
};
|
@@ -1,12 +1,10 @@
|
|
1
1
|
import { _ as _defineProperty, a as _objectWithoutProperties, b as _objectSpread2 } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
2
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
3
3
|
import { PureComponent } from 'react';
|
4
|
-
import PropTypes from 'prop-types';
|
5
4
|
import classNames from 'classnames';
|
6
5
|
import checkmarkIcon from '@jetbrains/icons/checkmark-12px';
|
7
6
|
import minusIcon from '@jetbrains/icons/remove-12px';
|
8
7
|
import Icon from '../icon/icon.js';
|
9
|
-
import { refObject } from '../global/prop-types.js';
|
10
8
|
import { createComposedRef } from '../global/composeRefs.js';
|
11
9
|
import ControlHelp from '../control-help/control-help.js';
|
12
10
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
@@ -95,22 +93,6 @@ class Checkbox extends PureComponent {
|
|
95
93
|
});
|
96
94
|
}
|
97
95
|
}
|
98
|
-
_defineProperty(Checkbox, "propTypes", {
|
99
|
-
name: PropTypes.string,
|
100
|
-
label: PropTypes.string,
|
101
|
-
className: PropTypes.string,
|
102
|
-
containerClassName: PropTypes.string,
|
103
|
-
containerStyle: PropTypes.object,
|
104
|
-
cellClassName: PropTypes.string,
|
105
|
-
labelClassName: PropTypes.string,
|
106
|
-
defaultChecked: PropTypes.bool,
|
107
|
-
checked: PropTypes.bool,
|
108
|
-
indeterminate: PropTypes.bool,
|
109
|
-
disabled: PropTypes.bool,
|
110
|
-
onChange: PropTypes.func,
|
111
|
-
children: PropTypes.node,
|
112
|
-
inputRef: PropTypes.oneOfType([PropTypes.func, refObject(PropTypes.instanceOf(HTMLInputElement))])
|
113
|
-
});
|
114
96
|
_defineProperty(Checkbox, "defaultProps", {
|
115
97
|
indeterminate: false
|
116
98
|
});
|
@@ -1,5 +1,4 @@
|
|
1
1
|
import { PureComponent, Ref } from 'react';
|
2
|
-
import PropTypes from 'prop-types';
|
3
2
|
import highlight from 'highlight.js/lib/core';
|
4
3
|
declare function noop(): void;
|
5
4
|
export interface CodeProps {
|
@@ -15,17 +14,6 @@ export interface CodeProps {
|
|
15
14
|
* @name Code
|
16
15
|
*/
|
17
16
|
export default class Code extends PureComponent<CodeProps> {
|
18
|
-
static propTypes: {
|
19
|
-
className: PropTypes.Requireable<string>;
|
20
|
-
code: PropTypes.Validator<string>;
|
21
|
-
inline: PropTypes.Requireable<boolean>;
|
22
|
-
softWrap: PropTypes.Requireable<boolean>;
|
23
|
-
language: PropTypes.Requireable<string>;
|
24
|
-
replacer: PropTypes.Requireable<(...args: any[]) => any>;
|
25
|
-
codeRef: PropTypes.Requireable<NonNullable<((...args: any[]) => any) | PropTypes.InferProps<{
|
26
|
-
current: PropTypes.Requireable<Element>;
|
27
|
-
}> | null | undefined>>;
|
28
|
-
};
|
29
17
|
static defaultProps: {
|
30
18
|
inline: boolean;
|
31
19
|
softWrap: boolean;
|
package/components/code/code.js
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
import { _ as _defineProperty } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
2
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
3
3
|
import { PureComponent } from 'react';
|
4
|
-
import PropTypes from 'prop-types';
|
5
4
|
import classNames from 'classnames';
|
6
5
|
import highlight from 'highlight.js/lib/core';
|
7
6
|
export { default as highlight } from 'highlight.js/lib/core';
|
@@ -101,17 +100,6 @@ class Code extends PureComponent {
|
|
101
100
|
});
|
102
101
|
}
|
103
102
|
}
|
104
|
-
_defineProperty(Code, "propTypes", {
|
105
|
-
className: PropTypes.string,
|
106
|
-
code: PropTypes.string.isRequired,
|
107
|
-
inline: PropTypes.bool,
|
108
|
-
softWrap: PropTypes.bool,
|
109
|
-
language: PropTypes.string,
|
110
|
-
replacer: PropTypes.func,
|
111
|
-
codeRef: PropTypes.oneOfType([PropTypes.shape({
|
112
|
-
current: PropTypes.instanceOf(Element)
|
113
|
-
}), PropTypes.func])
|
114
|
-
});
|
115
103
|
_defineProperty(Code, "defaultProps", {
|
116
104
|
inline: false,
|
117
105
|
softWrap: false,
|
@@ -1,6 +1,5 @@
|
|
1
1
|
import { PureComponent, ReactNode } from 'react';
|
2
2
|
import * as React from 'react';
|
3
|
-
import PropTypes from 'prop-types';
|
4
3
|
export interface ConfirmProps {
|
5
4
|
text: string;
|
6
5
|
description: ReactNode;
|
@@ -19,19 +18,6 @@ export interface ConfirmProps {
|
|
19
18
|
* @name Confirm
|
20
19
|
*/
|
21
20
|
export default class Confirm extends PureComponent<ConfirmProps> {
|
22
|
-
static propTypes: {
|
23
|
-
className: PropTypes.Requireable<string>;
|
24
|
-
text: PropTypes.Requireable<string>;
|
25
|
-
description: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
26
|
-
show: PropTypes.Requireable<boolean>;
|
27
|
-
rejectOnEsc: PropTypes.Requireable<boolean>;
|
28
|
-
inProgress: PropTypes.Requireable<boolean>;
|
29
|
-
cancelIsDefault: PropTypes.Requireable<boolean>;
|
30
|
-
confirmLabel: PropTypes.Requireable<string>;
|
31
|
-
rejectLabel: PropTypes.Requireable<string>;
|
32
|
-
onConfirm: PropTypes.Requireable<(...args: any[]) => any>;
|
33
|
-
onReject: PropTypes.Requireable<(...args: any[]) => any>;
|
34
|
-
};
|
35
21
|
static defaultProps: {
|
36
22
|
text: null;
|
37
23
|
description: null;
|