@jetbrains/ring-ui-built 7.0.0-beta.3 → 7.0.0-beta.4
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 -1
- package/components/auth/auth__core.d.ts +3 -3
- package/components/auth/auth__core.js +28 -20
- package/components/auth/down-notification.js +0 -9
- package/components/auth/iframe-flow.js +0 -1
- package/components/auth/storage.js +0 -1
- 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/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 -7
- 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 +19 -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.js +0 -2
- 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 +0 -20
- 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 +0 -94
- 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 +0 -65
- 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.js +0 -1
- 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 +1 -34
- 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.js +0 -1
- 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 -2
- package/components/global/prop-types.d.ts +0 -4
- package/components/global/prop-types.js +0 -7
@@ -1,6 +1,5 @@
|
|
1
1
|
import { Component, ComponentType, HTMLAttributes, ReactNode } from 'react';
|
2
2
|
import * as React from 'react';
|
3
|
-
import PropTypes from 'prop-types';
|
4
3
|
import { TagAttrs } from '../tag/tag';
|
5
4
|
declare function noop(): void;
|
6
5
|
export interface TagType extends Omit<TagAttrs, 'onClick' | 'children'> {
|
@@ -21,18 +20,6 @@ export interface TagsListProps<T extends TagType> extends HTMLAttributes<HTMLEle
|
|
21
20
|
* @name Tags List
|
22
21
|
*/
|
23
22
|
export default class TagsList<T extends TagType> extends Component<TagsListProps<T>> {
|
24
|
-
static propTypes: {
|
25
|
-
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
26
|
-
tags: PropTypes.Requireable<any[]>;
|
27
|
-
customTagComponent: PropTypes.Requireable<PropTypes.ReactComponentLike>;
|
28
|
-
activeIndex: PropTypes.Requireable<number>;
|
29
|
-
canNotBeEmpty: PropTypes.Requireable<boolean>;
|
30
|
-
disabled: PropTypes.Requireable<boolean>;
|
31
|
-
handleClick: PropTypes.Requireable<(...args: any[]) => any>;
|
32
|
-
handleRemove: PropTypes.Requireable<(...args: any[]) => any>;
|
33
|
-
className: PropTypes.Requireable<string>;
|
34
|
-
tagClassName: PropTypes.Requireable<string>;
|
35
|
-
};
|
36
23
|
static defaultProps: {
|
37
24
|
customTagComponent: null;
|
38
25
|
canNotBeEmpty: boolean;
|
@@ -1,6 +1,5 @@
|
|
1
1
|
import { _ as _defineProperty, b as _objectSpread2, a as _objectWithoutProperties } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
2
|
import { Component, createElement } from 'react';
|
3
|
-
import PropTypes from 'prop-types';
|
4
3
|
import classNames from 'classnames';
|
5
4
|
import Tag from '../tag/tag.js';
|
6
5
|
import { jsxs } from 'react/jsx-runtime';
|
@@ -65,18 +64,6 @@ class TagsList extends Component {
|
|
65
64
|
}));
|
66
65
|
}
|
67
66
|
}
|
68
|
-
_defineProperty(TagsList, "propTypes", {
|
69
|
-
children: PropTypes.node,
|
70
|
-
tags: PropTypes.array,
|
71
|
-
customTagComponent: PropTypes.elementType,
|
72
|
-
activeIndex: PropTypes.number,
|
73
|
-
canNotBeEmpty: PropTypes.bool,
|
74
|
-
disabled: PropTypes.bool,
|
75
|
-
handleClick: PropTypes.func,
|
76
|
-
handleRemove: PropTypes.func,
|
77
|
-
className: PropTypes.string,
|
78
|
-
tagClassName: PropTypes.string
|
79
|
-
});
|
80
67
|
_defineProperty(TagsList, "defaultProps", {
|
81
68
|
customTagComponent: null,
|
82
69
|
canNotBeEmpty: false,
|
@@ -1,5 +1,4 @@
|
|
1
1
|
import { Component, HTMLAttributes } from 'react';
|
2
|
-
import PropTypes from 'prop-types';
|
3
2
|
type TextSize = 's' | 'm' | 'l';
|
4
3
|
export interface TextProps extends HTMLAttributes<HTMLElement> {
|
5
4
|
info?: boolean | null | undefined;
|
@@ -12,12 +11,6 @@ declare const TextSize: Record<string, TextSize>;
|
|
12
11
|
* @name Text
|
13
12
|
*/
|
14
13
|
export default class Text extends Component<TextProps> {
|
15
|
-
static propTypes: {
|
16
|
-
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
17
|
-
info: PropTypes.Requireable<boolean>;
|
18
|
-
size: PropTypes.Requireable<TextSize>;
|
19
|
-
className: PropTypes.Requireable<string>;
|
20
|
-
};
|
21
14
|
static Size: Record<string, TextSize>;
|
22
15
|
render(): import("react").JSX.Element;
|
23
16
|
}
|
package/components/text/text.js
CHANGED
@@ -1,6 +1,5 @@
|
|
1
1
|
import { _ as _defineProperty, a as _objectWithoutProperties, b as _objectSpread2 } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
2
|
import { Component } from 'react';
|
3
|
-
import PropTypes from 'prop-types';
|
4
3
|
import classNames from 'classnames';
|
5
4
|
import { jsx } from 'react/jsx-runtime';
|
6
5
|
|
@@ -40,12 +39,6 @@ class Text extends Component {
|
|
40
39
|
}));
|
41
40
|
}
|
42
41
|
}
|
43
|
-
_defineProperty(Text, "propTypes", {
|
44
|
-
children: PropTypes.node,
|
45
|
-
info: PropTypes.bool,
|
46
|
-
size: PropTypes.oneOf(Object.keys(TextSize).map(it => TextSize[it])),
|
47
|
-
className: PropTypes.string
|
48
|
-
});
|
49
42
|
_defineProperty(Text, "Size", TextSize);
|
50
43
|
|
51
44
|
export { Text as default };
|
@@ -1,5 +1,4 @@
|
|
1
1
|
import { InputHTMLAttributes, PureComponent, ReactNode } from 'react';
|
2
|
-
import PropTypes from 'prop-types';
|
3
2
|
export declare const Size: {
|
4
3
|
Size14: string;
|
5
4
|
Size16: string;
|
@@ -15,20 +14,6 @@ export interface ToggleProps extends Omit<InputHTMLAttributes<HTMLInputElement>,
|
|
15
14
|
help?: ReactNode;
|
16
15
|
}
|
17
16
|
declare class Toggle extends PureComponent<ToggleProps> {
|
18
|
-
static propTypes: {
|
19
|
-
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
20
|
-
name: PropTypes.Requireable<string>;
|
21
|
-
className: PropTypes.Requireable<string>;
|
22
|
-
title: PropTypes.Requireable<string>;
|
23
|
-
leftLabel: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
24
|
-
defaultChecked: PropTypes.Requireable<boolean>;
|
25
|
-
checked: PropTypes.Requireable<boolean>;
|
26
|
-
disabled: PropTypes.Requireable<boolean>;
|
27
|
-
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
28
|
-
onTransitionEnd: PropTypes.Requireable<(...args: any[]) => any>;
|
29
|
-
size: PropTypes.Requireable<string>;
|
30
|
-
'data-test': PropTypes.Requireable<string>;
|
31
|
-
};
|
32
17
|
static defaultProps: {
|
33
18
|
size: string;
|
34
19
|
};
|
@@ -1,6 +1,5 @@
|
|
1
1
|
import { _ as _defineProperty, 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 ControlHelp from '../control-help/control-help.js';
|
@@ -64,20 +63,6 @@ class Toggle extends PureComponent {
|
|
64
63
|
});
|
65
64
|
}
|
66
65
|
}
|
67
|
-
_defineProperty(Toggle, "propTypes", {
|
68
|
-
children: PropTypes.node,
|
69
|
-
name: PropTypes.string,
|
70
|
-
className: PropTypes.string,
|
71
|
-
title: PropTypes.string,
|
72
|
-
leftLabel: PropTypes.node,
|
73
|
-
defaultChecked: PropTypes.bool,
|
74
|
-
checked: PropTypes.bool,
|
75
|
-
disabled: PropTypes.bool,
|
76
|
-
onChange: PropTypes.func,
|
77
|
-
onTransitionEnd: PropTypes.func,
|
78
|
-
size: PropTypes.oneOf(Object.values(Size)),
|
79
|
-
'data-test': PropTypes.string
|
80
|
-
});
|
81
66
|
_defineProperty(Toggle, "defaultProps", {
|
82
67
|
size: Size.Size14
|
83
68
|
});
|
@@ -1,6 +1,5 @@
|
|
1
1
|
import { AllHTMLAttributes, Component, ReactNode } from 'react';
|
2
2
|
import * as React from 'react';
|
3
|
-
import PropTypes from 'prop-types';
|
4
3
|
import Popup, { PopupAttrs } from '../popup/popup';
|
5
4
|
import { Listeners } from '../global/dom';
|
6
5
|
interface Context {
|
@@ -20,14 +19,6 @@ export interface TooltipProps extends Omit<AllHTMLAttributes<HTMLSpanElement>, '
|
|
20
19
|
* @name Tooltip
|
21
20
|
*/
|
22
21
|
export default class Tooltip extends Component<TooltipProps> {
|
23
|
-
static propTypes: {
|
24
|
-
delay: PropTypes.Requireable<number>;
|
25
|
-
selfOverflowOnly: PropTypes.Requireable<boolean>;
|
26
|
-
popupProps: PropTypes.Requireable<object>;
|
27
|
-
title: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
28
|
-
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
29
|
-
'data-test': PropTypes.Requireable<string>;
|
30
|
-
};
|
31
22
|
static defaultProps: {
|
32
23
|
title: string;
|
33
24
|
selfOverflowOnly: boolean;
|
@@ -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 { Component, createContext } from 'react';
|
4
|
-
import PropTypes from 'prop-types';
|
5
4
|
import classNames from 'classnames';
|
6
5
|
import Popup from '../popup/popup.js';
|
7
6
|
import { Listeners } from '../global/dom.js';
|
@@ -181,14 +180,6 @@ class Tooltip extends Component {
|
|
181
180
|
});
|
182
181
|
}
|
183
182
|
}
|
184
|
-
_defineProperty(Tooltip, "propTypes", {
|
185
|
-
delay: PropTypes.number,
|
186
|
-
selfOverflowOnly: PropTypes.bool,
|
187
|
-
popupProps: PropTypes.object,
|
188
|
-
title: PropTypes.node,
|
189
|
-
children: PropTypes.node,
|
190
|
-
'data-test': PropTypes.string
|
191
|
-
});
|
192
183
|
_defineProperty(Tooltip, "defaultProps", {
|
193
184
|
title: '',
|
194
185
|
selfOverflowOnly: false,
|
@@ -2,7 +2,6 @@
|
|
2
2
|
* @name User Agreement
|
3
3
|
*/
|
4
4
|
import { PureComponent, ReactNode } from 'react';
|
5
|
-
import PropTypes from 'prop-types';
|
6
5
|
declare function noop(): void;
|
7
6
|
export interface UserAgreementTranslations {
|
8
7
|
userAgreement: string;
|
@@ -27,23 +26,6 @@ export interface UserAgreementProps {
|
|
27
26
|
* A component that displays a user agreement dialog.
|
28
27
|
*/
|
29
28
|
export default class UserAgreement extends PureComponent<UserAgreementProps> {
|
30
|
-
static propTypes: {
|
31
|
-
show: PropTypes.Requireable<boolean>;
|
32
|
-
preview: PropTypes.Requireable<boolean>;
|
33
|
-
onAccept: PropTypes.Requireable<(...args: any[]) => any>;
|
34
|
-
onDecline: PropTypes.Requireable<(...args: any[]) => any>;
|
35
|
-
onClose: PropTypes.Requireable<(...args: any[]) => any>;
|
36
|
-
onRemindLater: PropTypes.Requireable<(...args: any[]) => any>;
|
37
|
-
translations: PropTypes.Requireable<PropTypes.InferProps<{
|
38
|
-
userAgreement: PropTypes.Validator<string>;
|
39
|
-
accept: PropTypes.Validator<string>;
|
40
|
-
decline: PropTypes.Validator<string>;
|
41
|
-
close: PropTypes.Validator<string>;
|
42
|
-
scrollToAccept: PropTypes.Validator<string>;
|
43
|
-
remindLater: PropTypes.Validator<string>;
|
44
|
-
}>>;
|
45
|
-
className: PropTypes.Requireable<string>;
|
46
|
-
};
|
47
29
|
static defaultProps: {
|
48
30
|
show: boolean;
|
49
31
|
onAccept: typeof noop;
|
@@ -1,21 +1,25 @@
|
|
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 Dialog from '../dialog/dialog.js';
|
7
|
-
import '
|
8
|
-
import Panel from '../panel/panel.js';
|
9
|
-
import { Button } from '../button/button.js';
|
10
|
-
import { I18nContext } from '../i18n/i18n-context.js';
|
6
|
+
import 'core-js/modules/es.array.reduce.js';
|
11
7
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
12
8
|
import HeaderWrapper from '../island/header.js';
|
13
9
|
import ContentWrapper from '../island/content.js';
|
10
|
+
import Panel from '../panel/panel.js';
|
11
|
+
import { Button } from '../button/button.js';
|
12
|
+
import { I18nContext } from '../i18n/i18n-context.js';
|
14
13
|
import 'react-dom';
|
15
14
|
import '@jetbrains/icons/close';
|
16
|
-
import '../
|
15
|
+
import '../island/island.js';
|
17
16
|
import '../global/data-tests.js';
|
18
|
-
import '
|
17
|
+
import '../island/adaptive-island-hoc.js';
|
18
|
+
import '../global/linear-function.js';
|
19
|
+
import '../_helpers/island.js';
|
20
|
+
import 'element-resize-detector';
|
21
|
+
import '../global/schedule-raf.js';
|
22
|
+
import '../global/get-uid.js';
|
19
23
|
import '../shortcuts/shortcuts.js';
|
20
24
|
import '../shortcuts/core.js';
|
21
25
|
import 'core-js/modules/es.regexp.exec.js';
|
@@ -27,11 +31,6 @@ import '../global/dom.js';
|
|
27
31
|
import '../popup/popup.target.js';
|
28
32
|
import '../_helpers/dialog__body-scroll-preventer.js';
|
29
33
|
import 'scrollbar-width';
|
30
|
-
import '../island/adaptive-island-hoc.js';
|
31
|
-
import '../global/linear-function.js';
|
32
|
-
import '../_helpers/island.js';
|
33
|
-
import 'element-resize-detector';
|
34
|
-
import '../global/schedule-raf.js';
|
35
34
|
import '@jetbrains/icons/chevron-down';
|
36
35
|
import '../icon/icon.js';
|
37
36
|
import 'util-deprecate';
|
@@ -132,23 +131,6 @@ class UserAgreement extends PureComponent {
|
|
132
131
|
});
|
133
132
|
}
|
134
133
|
}
|
135
|
-
_defineProperty(UserAgreement, "propTypes", {
|
136
|
-
show: PropTypes.bool,
|
137
|
-
preview: PropTypes.bool,
|
138
|
-
onAccept: PropTypes.func,
|
139
|
-
onDecline: PropTypes.func,
|
140
|
-
onClose: PropTypes.func,
|
141
|
-
onRemindLater: PropTypes.func,
|
142
|
-
translations: PropTypes.shape({
|
143
|
-
userAgreement: PropTypes.string.isRequired,
|
144
|
-
accept: PropTypes.string.isRequired,
|
145
|
-
decline: PropTypes.string.isRequired,
|
146
|
-
close: PropTypes.string.isRequired,
|
147
|
-
scrollToAccept: PropTypes.string.isRequired,
|
148
|
-
remindLater: PropTypes.string.isRequired
|
149
|
-
}),
|
150
|
-
className: PropTypes.string
|
151
|
-
});
|
152
134
|
_defineProperty(UserAgreement, "defaultProps", {
|
153
135
|
show: false,
|
154
136
|
onAccept: noop,
|
@@ -1,6 +1,5 @@
|
|
1
1
|
import { HTMLAttributes, PureComponent, ReactElement } from 'react';
|
2
2
|
import * as React from 'react';
|
3
|
-
import PropTypes from 'prop-types';
|
4
3
|
export interface UserCardUser {
|
5
4
|
name: string;
|
6
5
|
login: string;
|
@@ -29,40 +28,6 @@ export interface UserCardProps extends HTMLAttributes<HTMLDivElement> {
|
|
29
28
|
'data-test'?: string | null | undefined;
|
30
29
|
}
|
31
30
|
export default class UserCard extends PureComponent<UserCardProps> {
|
32
|
-
static propTypes: {
|
33
|
-
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
34
|
-
info: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
35
|
-
className: PropTypes.Requireable<string>;
|
36
|
-
user: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
|
37
|
-
name: PropTypes.Validator<string>;
|
38
|
-
login: PropTypes.Validator<string>;
|
39
|
-
avatarUrl: PropTypes.Validator<string>;
|
40
|
-
email: PropTypes.Requireable<string>;
|
41
|
-
href: PropTypes.Requireable<string>;
|
42
|
-
online: PropTypes.Requireable<boolean>;
|
43
|
-
banned: PropTypes.Requireable<boolean>;
|
44
|
-
banReason: PropTypes.Requireable<string>;
|
45
|
-
unverifiedEmail: PropTypes.Requireable<boolean>;
|
46
|
-
}>>>;
|
47
|
-
wording: PropTypes.Requireable<PropTypes.InferProps<{
|
48
|
-
banned: PropTypes.Validator<string>;
|
49
|
-
online: PropTypes.Validator<string>;
|
50
|
-
offline: PropTypes.Validator<string>;
|
51
|
-
copyToClipboard: PropTypes.Requireable<string>;
|
52
|
-
copiedToClipboard: PropTypes.Requireable<string>;
|
53
|
-
copingToClipboardError: PropTypes.Requireable<string>;
|
54
|
-
unverified: PropTypes.Requireable<string>;
|
55
|
-
}>>;
|
56
|
-
translations: PropTypes.Requireable<PropTypes.InferProps<{
|
57
|
-
banned: PropTypes.Validator<string>;
|
58
|
-
online: PropTypes.Validator<string>;
|
59
|
-
offline: PropTypes.Validator<string>;
|
60
|
-
copyToClipboard: PropTypes.Requireable<string>;
|
61
|
-
copiedToClipboard: PropTypes.Requireable<string>;
|
62
|
-
copingToClipboardError: PropTypes.Requireable<string>;
|
63
|
-
unverified: PropTypes.Requireable<string>;
|
64
|
-
}>>;
|
65
|
-
};
|
66
31
|
static contextType: React.Context<import("../i18n/i18n-context").I18nContextProps>;
|
67
32
|
context: React.ContextType<typeof UserCard.contextType>;
|
68
33
|
copyEmail: () => void;
|
@@ -1,15 +1,10 @@
|
|
1
1
|
import { Component } from 'react';
|
2
|
-
import PropTypes from 'prop-types';
|
3
2
|
import { UserCardTooltipAttrs } from './tooltip';
|
4
3
|
import { UserCardUser } from './card';
|
5
4
|
export interface SmartUserCardTooltipProps extends UserCardTooltipAttrs {
|
6
5
|
userDataSource: () => Promise<UserCardUser | null | undefined> | UserCardUser | null | undefined;
|
7
6
|
}
|
8
7
|
export default class SmartUserCardTooltip extends Component<SmartUserCardTooltipProps> {
|
9
|
-
static propTypes: {
|
10
|
-
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
11
|
-
userDataSource: PropTypes.Requireable<(...args: any[]) => any>;
|
12
|
-
};
|
13
8
|
state: {
|
14
9
|
user: null;
|
15
10
|
loading: boolean;
|
@@ -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 { Component } from 'react';
|
4
|
-
import PropTypes from 'prop-types';
|
5
4
|
import LoaderInline from '../loader-inline/loader-inline.js';
|
6
5
|
import UserCardTooltip from './tooltip.js';
|
7
6
|
import { m as modules_a4196c17 } from '../_helpers/card.js';
|
@@ -116,9 +115,5 @@ class SmartUserCardTooltip extends Component {
|
|
116
115
|
}));
|
117
116
|
}
|
118
117
|
}
|
119
|
-
_defineProperty(SmartUserCardTooltip, "propTypes", {
|
120
|
-
children: PropTypes.node,
|
121
|
-
userDataSource: PropTypes.func
|
122
|
-
});
|
123
118
|
|
124
119
|
export { SmartUserCardTooltip as default };
|
@@ -1,5 +1,4 @@
|
|
1
1
|
import { Component, ReactElement, ReactNode } from 'react';
|
2
|
-
import PropTypes from 'prop-types';
|
3
2
|
import { DropdownAttrs } from '../dropdown/dropdown';
|
4
3
|
import { UserCardAttrs, UserCardUser } from './card';
|
5
4
|
interface ChildrenProps {
|
@@ -14,14 +13,6 @@ export interface UserCardTooltipProps extends Omit<UserCardAttrs, 'children' | '
|
|
14
13
|
renderNoUser: () => ReactNode;
|
15
14
|
}
|
16
15
|
export default class UserCardTooltip extends Component<UserCardTooltipProps> {
|
17
|
-
static propTypes: {
|
18
|
-
className: PropTypes.Requireable<string>;
|
19
|
-
children: PropTypes.Requireable<NonNullable<PropTypes.ReactNodeLike | ((...args: any[]) => any)>>;
|
20
|
-
dropdownProps: PropTypes.Requireable<object>;
|
21
|
-
user: PropTypes.Requireable<object>;
|
22
|
-
renderUserCard: PropTypes.Requireable<(...args: any[]) => any>;
|
23
|
-
renderNoUser: PropTypes.Requireable<(...args: any[]) => any>;
|
24
|
-
};
|
25
16
|
static defaultProps: {
|
26
17
|
renderUserCard: (props: UserCardAttrs) => import("react").JSX.Element;
|
27
18
|
renderNoUser: () => string;
|
@@ -1,7 +1,6 @@
|
|
1
1
|
import { _ as _defineProperty, a as _objectWithoutProperties, b as _objectSpread2 } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
2
|
import { Component } from 'react';
|
3
3
|
import classNames from 'classnames';
|
4
|
-
import PropTypes from 'prop-types';
|
5
4
|
import Dropdown from '../dropdown/dropdown.js';
|
6
5
|
import Popup from '../popup/popup.js';
|
7
6
|
import { m as modules_a4196c17, U as UserCard } from '../_helpers/card.js';
|
@@ -89,14 +88,6 @@ class UserCardTooltip extends Component {
|
|
89
88
|
}));
|
90
89
|
}
|
91
90
|
}
|
92
|
-
_defineProperty(UserCardTooltip, "propTypes", {
|
93
|
-
className: PropTypes.string,
|
94
|
-
children: PropTypes.oneOfType([PropTypes.node, PropTypes.func]),
|
95
|
-
dropdownProps: PropTypes.object,
|
96
|
-
user: PropTypes.object,
|
97
|
-
renderUserCard: PropTypes.func,
|
98
|
-
renderNoUser: PropTypes.func
|
99
|
-
});
|
100
91
|
_defineProperty(UserCardTooltip, "defaultProps", {
|
101
92
|
renderUserCard: props => {
|
102
93
|
const {
|
@@ -4,7 +4,6 @@ export { default as SmartUserCardTooltip } from './smart-user-card-tooltip.js';
|
|
4
4
|
import '../_helpers/_rollupPluginBabelHelpers.js';
|
5
5
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
6
6
|
import 'react';
|
7
|
-
import 'prop-types';
|
8
7
|
import 'classnames';
|
9
8
|
import '@jetbrains/icons/copy';
|
10
9
|
import '../avatar/avatar.js';
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@jetbrains/ring-ui-built",
|
3
|
-
"version": "7.0.0-beta.
|
3
|
+
"version": "7.0.0-beta.4",
|
4
4
|
"description": "JetBrains UI library",
|
5
5
|
"author": "JetBrains",
|
6
6
|
"license": "Apache-2.0",
|
@@ -101,7 +101,6 @@
|
|
101
101
|
"highlight.js": "^10.7.2",
|
102
102
|
"just-debounce-it": "^3.2.0",
|
103
103
|
"memoize-one": "^6.0.0",
|
104
|
-
"prop-types": "^15.8.1",
|
105
104
|
"react-movable": "^3.3.1",
|
106
105
|
"react-virtualized": "^9.22.5",
|
107
106
|
"react-waypoint": "^10.3.0",
|