@jetbrains/ring-ui 6.0.35 → 6.0.37
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/babel.config.js +4 -1
- package/components/alert/alert.css +0 -7
- package/components/alert/alert.d.ts +2 -1
- package/components/alert/alert.js +2 -1
- package/components/alert/container.css +4 -0
- package/components/alert/container.d.ts +2 -2
- package/components/alert/container.js +1 -1
- package/components/alert-service/alert-service.d.ts +2 -2
- package/components/alert-service/alert-service.js +0 -1
- package/components/auth/down-notification.d.ts +1 -1
- package/components/auth/down-notification.js +1 -1
- package/components/auth/iframe-flow.js +0 -1
- package/components/auth/request-builder.d.ts +0 -1
- package/components/auth/token-validator.d.ts +1 -1
- package/components/auth-dialog/auth-dialog.d.ts +2 -2
- package/components/auth-dialog/auth-dialog.js +1 -1
- package/components/auth-dialog-service/auth-dialog-service.d.ts +0 -1
- package/components/auth-dialog-service/auth-dialog-service.js +0 -1
- package/components/avatar/avatar.d.ts +2 -2
- package/components/avatar/avatar.js +1 -1
- package/components/avatar/fallback-avatar.d.ts +1 -2
- package/components/avatar/fallback-avatar.js +1 -1
- package/components/badge/badge.d.ts +2 -2
- package/components/badge/badge.js +1 -1
- package/components/breadcrumbs/breadcrumbs.css +7 -0
- package/components/breadcrumbs/breadcrumbs.d.ts +6 -0
- package/components/breadcrumbs/breadcrumbs.js +11 -0
- package/components/button/button.d.ts +2 -1
- package/components/button/button.js +2 -1
- package/components/button-group/button-group.css +12 -11
- package/components/button-group/button-group.d.ts +4 -2
- package/components/button-group/button-group.js +9 -3
- package/components/button-group/caption.d.ts +2 -2
- package/components/button-group/caption.js +1 -1
- package/components/button-set/button-set.d.ts +2 -2
- package/components/button-set/button-set.js +1 -1
- package/components/button-toolbar/button-toolbar.d.ts +2 -2
- package/components/button-toolbar/button-toolbar.js +1 -1
- package/components/checkbox/checkbox.css +16 -20
- package/components/checkbox/checkbox.d.ts +3 -2
- package/components/checkbox/checkbox.js +12 -6
- package/components/code/code.d.ts +3 -4
- package/components/code/code.js +1 -1
- package/components/collapse/collapse-content.d.ts +2 -1
- package/components/collapse/collapse-content.js +2 -1
- package/components/collapse/collapse-context.d.ts +0 -1
- package/components/collapse/collapse-control.d.ts +1 -1
- package/components/collapse/collapse-control.js +2 -1
- package/components/collapse/collapse.d.ts +2 -1
- package/components/collapse/collapse.js +2 -1
- package/components/confirm/confirm.d.ts +2 -1
- package/components/confirm/confirm.js +2 -1
- package/components/confirm-service/confirm-service.js +0 -1
- package/components/content-layout/content-layout.d.ts +2 -2
- package/components/content-layout/content-layout.js +2 -2
- package/components/content-layout/sidebar.d.ts +2 -2
- package/components/content-layout/sidebar.js +1 -1
- package/components/contenteditable/contenteditable.d.ts +3 -3
- package/components/contenteditable/contenteditable.js +1 -1
- package/components/control-help/control-help.css +8 -0
- package/components/control-help/control-help.d.ts +4 -0
- package/components/control-help/control-help.js +5 -0
- package/components/control-label/control-label.d.ts +2 -1
- package/components/control-label/control-label.js +1 -1
- package/components/data-list/data-list.d.ts +15 -15
- package/components/data-list/data-list.js +1 -1
- package/components/data-list/data-list.mock.d.ts +2 -2
- package/components/data-list/data-list.mock.js +0 -2
- package/components/data-list/item.d.ts +3 -3
- package/components/data-list/item.js +1 -1
- package/components/data-list/title.d.ts +3 -3
- package/components/data-list/title.js +1 -1
- package/components/date-picker/date-input.d.ts +1 -1
- package/components/date-picker/date-input.js +1 -1
- package/components/date-picker/date-picker.d.ts +2 -1
- package/components/date-picker/date-picker.js +2 -1
- package/components/date-picker/date-popup.d.ts +2 -1
- package/components/date-picker/date-popup.js +2 -1
- package/components/date-picker/day.d.ts +3 -3
- package/components/date-picker/day.js +1 -1
- package/components/date-picker/month-names.d.ts +1 -2
- package/components/date-picker/month-names.js +1 -1
- package/components/date-picker/month-slider.d.ts +2 -2
- package/components/date-picker/month-slider.js +1 -1
- package/components/date-picker/month.d.ts +1 -2
- package/components/date-picker/month.js +0 -1
- package/components/date-picker/months.d.ts +1 -2
- package/components/date-picker/months.js +1 -1
- package/components/date-picker/weekdays.d.ts +1 -2
- package/components/date-picker/weekdays.js +0 -1
- package/components/date-picker/years.d.ts +3 -3
- package/components/date-picker/years.js +1 -1
- package/components/dialog/dialog.d.ts +2 -1
- package/components/dialog/dialog.js +2 -1
- package/components/dropdown/anchor.d.ts +2 -3
- package/components/dropdown/anchor.js +1 -1
- package/components/dropdown/dropdown.d.ts +2 -1
- package/components/dropdown/dropdown.js +2 -1
- package/components/dropdown-menu/dropdown-menu.d.ts +3 -3
- package/components/dropdown-menu/dropdown-menu.js +2 -2
- package/components/editable-heading/editable-heading.d.ts +2 -1
- package/components/editable-heading/editable-heading.js +2 -1
- package/components/error-bubble/error-bubble.d.ts +2 -2
- package/components/error-bubble/error-bubble.js +1 -1
- package/components/error-message/error-message.d.ts +2 -2
- package/components/error-message/error-message.js +1 -1
- package/components/footer/footer.css +1 -1
- package/components/footer/footer.d.ts +2 -2
- package/components/footer/footer.js +1 -1
- package/components/form/form.css +1 -1
- package/components/form/form.stories.js +0 -1
- package/components/global/controls-height.d.ts +0 -1
- package/components/global/create-stateful-context.d.ts +5 -5
- package/components/global/create-stateful-context.js +1 -1
- package/components/global/dom.d.ts +2 -2
- package/components/global/focus-sensor-hoc.js +1 -1
- package/components/global/get-event-key.d.ts +1 -1
- package/components/global/react-dom-renderer.d.ts +2 -2
- package/components/global/react-dom-renderer.js +1 -1
- package/components/global/rerender-hoc.d.ts +2 -2
- package/components/global/rerender-hoc.js +1 -1
- package/components/global/theme.d.ts +3 -3
- package/components/global/theme.js +1 -1
- package/components/global/typescript-utils.d.ts +1 -1
- package/components/grid/col.d.ts +2 -2
- package/components/grid/col.js +1 -1
- package/components/grid/grid.d.ts +2 -2
- package/components/grid/grid.js +1 -1
- package/components/grid/row.d.ts +2 -2
- package/components/grid/row.js +1 -1
- package/components/group/group.d.ts +2 -2
- package/components/group/group.js +1 -1
- package/components/header/header.d.ts +2 -2
- package/components/header/header.js +1 -1
- package/components/header/logo.d.ts +2 -2
- package/components/header/logo.js +1 -1
- package/components/header/profile.d.ts +4 -3
- package/components/header/profile.js +2 -1
- package/components/header/services-link.d.ts +2 -2
- package/components/header/services-link.js +1 -1
- package/components/header/services.d.ts +2 -2
- package/components/header/services.js +1 -1
- package/components/header/smart-profile.d.ts +2 -2
- package/components/header/smart-profile.js +1 -1
- package/components/header/smart-services.d.ts +2 -2
- package/components/header/smart-services.js +1 -1
- package/components/header/tray-icon.d.ts +2 -2
- package/components/header/tray-icon.js +1 -1
- package/components/header/tray.d.ts +2 -2
- package/components/header/tray.js +1 -1
- package/components/heading/heading.d.ts +6 -6
- package/components/heading/heading.js +1 -1
- package/components/i18n/i18n-context.d.ts +1 -1
- package/components/i18n/i18n-context.js +2 -1
- package/components/icon/icon.d.ts +2 -2
- package/components/icon/icon.js +1 -1
- package/components/icon/icon__svg.d.ts +3 -3
- package/components/icon/icon__svg.js +1 -1
- package/components/input/input.css +5 -1
- package/components/input/input.d.ts +3 -2
- package/components/input/input.js +8 -6
- package/components/input-size/input-size.stories.js +0 -1
- package/components/island/adaptive-island-hoc.d.ts +15 -15
- package/components/island/adaptive-island-hoc.js +1 -1
- package/components/island/content.d.ts +3 -3
- package/components/island/content.js +1 -1
- package/components/island/header.d.ts +2 -2
- package/components/island/header.js +1 -1
- package/components/island/island.css +1 -1
- package/components/island/island.d.ts +14 -14
- package/components/island/island.js +1 -1
- package/components/island-legacy/content-legacy.d.ts +2 -2
- package/components/island-legacy/content-legacy.js +1 -1
- package/components/island-legacy/header-legacy.d.ts +2 -2
- package/components/island-legacy/header-legacy.js +1 -1
- package/components/island-legacy/island-legacy.d.ts +2 -2
- package/components/island-legacy/island-legacy.js +1 -1
- package/components/link/clickableLink.d.ts +2 -1
- package/components/link/clickableLink.js +2 -1
- package/components/link/link.d.ts +23 -23
- package/components/link/link.js +1 -1
- package/components/list/consts.d.ts +2 -1
- package/components/list/list.d.ts +11 -11
- package/components/list/list.js +1 -1
- package/components/list/list__custom.d.ts +2 -1
- package/components/list/list__custom.js +2 -1
- package/components/list/list__hint.d.ts +2 -2
- package/components/list/list__hint.js +1 -1
- package/components/list/list__item.d.ts +2 -2
- package/components/list/list__item.js +2 -2
- package/components/list/list__link.d.ts +2 -2
- package/components/list/list__link.js +1 -1
- package/components/list/list__separator.d.ts +2 -2
- package/components/list/list__separator.js +1 -1
- package/components/list/list__title.d.ts +2 -2
- package/components/list/list__title.js +1 -1
- package/components/loader/loader.d.ts +2 -2
- package/components/loader/loader.js +1 -1
- package/components/loader-inline/loader-inline.d.ts +2 -2
- package/components/loader-inline/loader-inline.js +1 -1
- package/components/loader-screen/loader-screen.d.ts +2 -2
- package/components/loader-screen/loader-screen.js +1 -1
- package/components/login-dialog/login-dialog.d.ts +2 -2
- package/components/login-dialog/login-dialog.js +1 -1
- package/components/login-dialog/service.js +0 -1
- package/components/markdown/markdown.d.ts +2 -2
- package/components/markdown/markdown.js +1 -1
- package/components/message/message.d.ts +2 -2
- package/components/message/message.js +1 -1
- package/components/pager/pager.d.ts +2 -1
- package/components/pager/pager.js +2 -1
- package/components/panel/panel.d.ts +2 -2
- package/components/panel/panel.js +1 -1
- package/components/popup/popup.d.ts +4 -3
- package/components/popup/popup.js +2 -1
- package/components/popup/popup.target.d.ts +3 -3
- package/components/popup/popup.target.js +1 -1
- package/components/popup-menu/popup-menu.d.ts +2 -2
- package/components/popup-menu/popup-menu.js +0 -1
- package/components/progress-bar/progress-bar.d.ts +2 -2
- package/components/progress-bar/progress-bar.js +1 -1
- package/components/query-assist/query-assist.d.ts +3 -2
- package/components/query-assist/query-assist.js +4 -3
- package/components/query-assist/query-assist__suggestions.d.ts +1 -2
- package/components/query-assist/query-assist__suggestions.js +0 -1
- package/components/radio/radio.d.ts +3 -3
- package/components/radio/radio.js +1 -1
- package/components/radio/radio__item.d.ts +9 -6
- package/components/radio/radio__item.js +10 -6
- package/components/select/select-popup.css +1 -0
- package/components/select/select.css +1 -1
- package/components/select/select.d.ts +5 -2
- package/components/select/select.js +5 -3
- package/components/select/select__filter.d.ts +2 -2
- package/components/select/select__filter.js +1 -1
- package/components/select/select__popup.d.ts +4 -35
- package/components/select/select__popup.js +4 -3
- package/components/shortcuts/core.d.ts +0 -1
- package/components/shortcuts/shortcuts-hoc.d.ts +12 -12
- package/components/shortcuts/shortcuts-hoc.js +2 -2
- package/components/slider/slider.d.ts +2 -1
- package/components/slider/slider.js +2 -1
- package/components/tab-trap/tab-trap.d.ts +2 -1
- package/components/tab-trap/tab-trap.js +2 -1
- package/components/table/cell.d.ts +2 -2
- package/components/table/cell.js +1 -1
- package/components/table/disable-hover-hoc.d.ts +13 -13
- package/components/table/disable-hover-hoc.js +1 -1
- package/components/table/header-cell.d.ts +2 -2
- package/components/table/header-cell.js +1 -1
- package/components/table/header.d.ts +3 -3
- package/components/table/header.js +1 -1
- package/components/table/multitable.d.ts +2 -2
- package/components/table/multitable.js +1 -1
- package/components/table/row-with-focus-sensor.d.ts +3 -3
- package/components/table/row-with-focus-sensor.js +1 -1
- package/components/table/row.d.ts +2 -1
- package/components/table/row.js +2 -1
- package/components/table/selection-shortcuts-hoc.js +1 -1
- package/components/table/smart-table.d.ts +44 -44
- package/components/table/smart-table.js +1 -1
- package/components/table/table.d.ts +6 -5
- package/components/table/table.js +2 -1
- package/components/table-legacy/table-legacy.css +1 -1
- package/components/tabs/collapsible-more.d.ts +4 -4
- package/components/tabs/collapsible-more.js +8 -8
- package/components/tabs/collapsible-tab.d.ts +2 -1
- package/components/tabs/collapsible-tab.js +1 -1
- package/components/tabs/collapsible-tabs.d.ts +4 -4
- package/components/tabs/collapsible-tabs.js +14 -14
- package/components/tabs/custom-item.d.ts +1 -1
- package/components/tabs/dumb-tabs.d.ts +2 -1
- package/components/tabs/dumb-tabs.js +2 -1
- package/components/tabs/smart-tabs.d.ts +2 -2
- package/components/tabs/smart-tabs.js +1 -1
- package/components/tabs/tab-link.d.ts +3 -3
- package/components/tabs/tab-link.js +1 -1
- package/components/tabs/tab.d.ts +2 -2
- package/components/tabs/tab.js +1 -1
- package/components/tag/tag.d.ts +2 -1
- package/components/tag/tag.js +2 -1
- package/components/tags-input/tags-input.d.ts +3 -2
- package/components/tags-input/tags-input.js +2 -1
- package/components/tags-list/tags-list.d.ts +2 -1
- package/components/tags-list/tags-list.js +2 -1
- package/components/text/text.d.ts +2 -2
- package/components/text/text.js +1 -1
- package/components/toggle/toggle.d.ts +2 -2
- package/components/toggle/toggle.js +1 -1
- package/components/tooltip/tooltip.d.ts +2 -1
- package/components/tooltip/tooltip.js +2 -1
- package/components/user-agreement/service.js +2 -3
- package/components/user-agreement/user-agreement.d.ts +2 -2
- package/components/user-agreement/user-agreement.js +1 -1
- package/components/user-card/card.d.ts +2 -1
- package/components/user-card/card.js +2 -1
- package/components/user-card/smart-user-card-tooltip.d.ts +3 -3
- package/components/user-card/smart-user-card-tooltip.js +1 -1
- package/components/user-card/tooltip.d.ts +3 -3
- package/components/user-card/tooltip.js +1 -1
- package/components/user-card/user-card.css +1 -1
- package/package.json +32 -31
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ReactNode, ComponentType } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import { ClickableLinkProps } from './clickableLink';
|
|
4
4
|
/**
|
|
@@ -15,20 +15,20 @@ export interface LinkBaseProps {
|
|
|
15
15
|
export type LinkProps<P extends ClickableLinkProps = ClickableLinkProps> = Omit<P, keyof LinkBaseProps> & LinkBaseProps;
|
|
16
16
|
export declare function linkHOC<P extends ClickableLinkProps>(ComposedComponent: ComponentType<P> | string): {
|
|
17
17
|
new (props: LinkProps<P>): {
|
|
18
|
-
render():
|
|
18
|
+
render(): import("react").JSX.Element;
|
|
19
19
|
context: unknown;
|
|
20
|
-
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<LinkProps<P>>) =>
|
|
20
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<LinkProps<P>>) => Pick<{}, K> | {} | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
21
21
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
22
22
|
readonly props: Readonly<LinkProps<P>>;
|
|
23
23
|
state: Readonly<{}>;
|
|
24
24
|
refs: {
|
|
25
|
-
[key: string]:
|
|
25
|
+
[key: string]: import("react").ReactInstance;
|
|
26
26
|
};
|
|
27
27
|
componentDidMount?(): void;
|
|
28
28
|
shouldComponentUpdate?(nextProps: Readonly<LinkProps<P>>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
29
29
|
componentWillUnmount?(): void;
|
|
30
|
-
componentDidCatch?(error: Error, errorInfo:
|
|
31
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<LinkProps<P>>, prevState: Readonly<{}>): any;
|
|
30
|
+
componentDidCatch?(error: Error, errorInfo: import("react").ErrorInfo): void;
|
|
31
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<LinkProps<P>>, prevState: Readonly<{}>): any | null;
|
|
32
32
|
componentDidUpdate?(prevProps: Readonly<LinkProps<P>>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
33
33
|
componentWillMount?(): void;
|
|
34
34
|
UNSAFE_componentWillMount?(): void;
|
|
@@ -38,20 +38,20 @@ export declare function linkHOC<P extends ClickableLinkProps>(ComposedComponent:
|
|
|
38
38
|
UNSAFE_componentWillUpdate?(nextProps: Readonly<LinkProps<P>>, nextState: Readonly<{}>, nextContext: any): void;
|
|
39
39
|
};
|
|
40
40
|
new (props: LinkProps<P>, context: any): {
|
|
41
|
-
render():
|
|
41
|
+
render(): import("react").JSX.Element;
|
|
42
42
|
context: unknown;
|
|
43
|
-
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<LinkProps<P>>) =>
|
|
43
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<LinkProps<P>>) => Pick<{}, K> | {} | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
44
44
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
45
45
|
readonly props: Readonly<LinkProps<P>>;
|
|
46
46
|
state: Readonly<{}>;
|
|
47
47
|
refs: {
|
|
48
|
-
[key: string]:
|
|
48
|
+
[key: string]: import("react").ReactInstance;
|
|
49
49
|
};
|
|
50
50
|
componentDidMount?(): void;
|
|
51
51
|
shouldComponentUpdate?(nextProps: Readonly<LinkProps<P>>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
52
52
|
componentWillUnmount?(): void;
|
|
53
|
-
componentDidCatch?(error: Error, errorInfo:
|
|
54
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<LinkProps<P>>, prevState: Readonly<{}>): any;
|
|
53
|
+
componentDidCatch?(error: Error, errorInfo: import("react").ErrorInfo): void;
|
|
54
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<LinkProps<P>>, prevState: Readonly<{}>): any | null;
|
|
55
55
|
componentDidUpdate?(prevProps: Readonly<LinkProps<P>>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
56
56
|
componentWillMount?(): void;
|
|
57
57
|
UNSAFE_componentWillMount?(): void;
|
|
@@ -72,24 +72,24 @@ export declare function linkHOC<P extends ClickableLinkProps>(ComposedComponent:
|
|
|
72
72
|
onPlainLeftClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
73
73
|
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
74
74
|
};
|
|
75
|
-
contextType?:
|
|
75
|
+
contextType?: import("react").Context<any> | undefined;
|
|
76
76
|
};
|
|
77
77
|
declare const _default: {
|
|
78
78
|
new (props: LinkProps<ClickableLinkProps>): {
|
|
79
|
-
render():
|
|
79
|
+
render(): import("react").JSX.Element;
|
|
80
80
|
context: unknown;
|
|
81
|
-
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<LinkProps<ClickableLinkProps>>) =>
|
|
81
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<LinkProps<ClickableLinkProps>>) => Pick<{}, K> | {} | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
82
82
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
83
83
|
readonly props: Readonly<LinkProps<ClickableLinkProps>>;
|
|
84
84
|
state: Readonly<{}>;
|
|
85
85
|
refs: {
|
|
86
|
-
[key: string]:
|
|
86
|
+
[key: string]: import("react").ReactInstance;
|
|
87
87
|
};
|
|
88
88
|
componentDidMount?(): void;
|
|
89
89
|
shouldComponentUpdate?(nextProps: Readonly<LinkProps<ClickableLinkProps>>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
90
90
|
componentWillUnmount?(): void;
|
|
91
|
-
componentDidCatch?(error: Error, errorInfo:
|
|
92
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<LinkProps<ClickableLinkProps>>, prevState: Readonly<{}>): any;
|
|
91
|
+
componentDidCatch?(error: Error, errorInfo: import("react").ErrorInfo): void;
|
|
92
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<LinkProps<ClickableLinkProps>>, prevState: Readonly<{}>): any | null;
|
|
93
93
|
componentDidUpdate?(prevProps: Readonly<LinkProps<ClickableLinkProps>>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
94
94
|
componentWillMount?(): void;
|
|
95
95
|
UNSAFE_componentWillMount?(): void;
|
|
@@ -99,20 +99,20 @@ declare const _default: {
|
|
|
99
99
|
UNSAFE_componentWillUpdate?(nextProps: Readonly<LinkProps<ClickableLinkProps>>, nextState: Readonly<{}>, nextContext: any): void;
|
|
100
100
|
};
|
|
101
101
|
new (props: LinkProps<ClickableLinkProps>, context: any): {
|
|
102
|
-
render():
|
|
102
|
+
render(): import("react").JSX.Element;
|
|
103
103
|
context: unknown;
|
|
104
|
-
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<LinkProps<ClickableLinkProps>>) =>
|
|
104
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<LinkProps<ClickableLinkProps>>) => Pick<{}, K> | {} | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
105
105
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
106
106
|
readonly props: Readonly<LinkProps<ClickableLinkProps>>;
|
|
107
107
|
state: Readonly<{}>;
|
|
108
108
|
refs: {
|
|
109
|
-
[key: string]:
|
|
109
|
+
[key: string]: import("react").ReactInstance;
|
|
110
110
|
};
|
|
111
111
|
componentDidMount?(): void;
|
|
112
112
|
shouldComponentUpdate?(nextProps: Readonly<LinkProps<ClickableLinkProps>>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
113
113
|
componentWillUnmount?(): void;
|
|
114
|
-
componentDidCatch?(error: Error, errorInfo:
|
|
115
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<LinkProps<ClickableLinkProps>>, prevState: Readonly<{}>): any;
|
|
114
|
+
componentDidCatch?(error: Error, errorInfo: import("react").ErrorInfo): void;
|
|
115
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<LinkProps<ClickableLinkProps>>, prevState: Readonly<{}>): any | null;
|
|
116
116
|
componentDidUpdate?(prevProps: Readonly<LinkProps<ClickableLinkProps>>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
117
117
|
componentWillMount?(): void;
|
|
118
118
|
UNSAFE_componentWillMount?(): void;
|
|
@@ -133,6 +133,6 @@ declare const _default: {
|
|
|
133
133
|
onPlainLeftClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
134
134
|
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
135
135
|
};
|
|
136
|
-
contextType?:
|
|
136
|
+
contextType?: import("react").Context<any> | undefined;
|
|
137
137
|
};
|
|
138
138
|
export default _default;
|
package/components/link/link.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ComponentType, ReactNode, ReactElement, SyntheticEvent } from 'react';
|
|
2
|
+
import * as React from 'react';
|
|
2
3
|
import { LinkProps } from '../link/link';
|
|
3
4
|
import { IconType, Size } from '../icon/icon';
|
|
4
5
|
import { ClickableLinkProps } from '../link/clickableLink';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @name List
|
|
3
3
|
*/
|
|
4
|
-
import
|
|
4
|
+
import { Component, ReactNode, SyntheticEvent } from 'react';
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
6
|
import VirtualizedList, { ListRowProps } from 'react-virtualized/dist/es/List';
|
|
7
7
|
import { Size } from 'react-virtualized/dist/es/AutoSizer';
|
|
@@ -48,17 +48,17 @@ export interface ListProps<T = unknown> {
|
|
|
48
48
|
preventListOverscroll?: boolean | undefined;
|
|
49
49
|
}
|
|
50
50
|
export declare const ActiveItemContext: {
|
|
51
|
-
ValueContext:
|
|
52
|
-
UpdateContext:
|
|
51
|
+
ValueContext: import("react").Context<string | undefined>;
|
|
52
|
+
UpdateContext: import("react").Context<(value: string | undefined) => void>;
|
|
53
53
|
Provider: {
|
|
54
|
-
({ children }: import("../global/create-stateful-context").ProviderProps):
|
|
54
|
+
({ children }: import("../global/create-stateful-context").ProviderProps): import("react").JSX.Element;
|
|
55
55
|
propTypes: {
|
|
56
56
|
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
57
57
|
};
|
|
58
58
|
displayName: string;
|
|
59
59
|
};
|
|
60
|
-
useUpdate: (value: string | undefined, skipUpdate?: boolean
|
|
61
|
-
Updater:
|
|
60
|
+
useUpdate: (value: string | undefined, skipUpdate?: boolean) => void;
|
|
61
|
+
Updater: import("react").MemoExoticComponent<{
|
|
62
62
|
({ value, skipUpdate }: import("../global/create-stateful-context").UpdaterProps<string | undefined>): null;
|
|
63
63
|
displayName: string;
|
|
64
64
|
}>;
|
|
@@ -189,19 +189,19 @@ export default class List<T = unknown> extends Component<ListProps<T>, ListState
|
|
|
189
189
|
getVisibleListHeight(maxHeight: number): number;
|
|
190
190
|
private _deprecatedGenerateKeyFromContent;
|
|
191
191
|
getId(item: ListDataItem<T> | null): string | undefined;
|
|
192
|
-
renderItem: ({ index, style, isScrolling, parent, key }: Partial<ListRowProps>) =>
|
|
192
|
+
renderItem: ({ index, style, isScrolling, parent, key }: Partial<ListRowProps>) => import("react").JSX.Element;
|
|
193
193
|
addItemDataTestToProp: (props: ListDataItemProps<T>) => ListDataItemProps<T>;
|
|
194
194
|
virtualizedListRef: (el: VirtualizedList | null) => void;
|
|
195
195
|
containerRef: (el: HTMLElement | null) => void;
|
|
196
196
|
private _inner?;
|
|
197
197
|
get inner(): HTMLElement | null | undefined;
|
|
198
|
-
renderVirtualizedInner({ height, maxHeight, autoHeight, rowCount, isScrolling, onChildScroll, scrollTop, registerChild }: RenderVirtualizedInnerParams):
|
|
199
|
-
renderVirtualized(maxHeight: number | null | undefined, rowCount: number):
|
|
200
|
-
renderSimple(maxHeight: number | null | undefined, rowCount: number):
|
|
198
|
+
renderVirtualizedInner({ height, maxHeight, autoHeight, rowCount, isScrolling, onChildScroll, scrollTop, registerChild }: RenderVirtualizedInnerParams): import("react").JSX.Element;
|
|
199
|
+
renderVirtualized(maxHeight: number | null | undefined, rowCount: number): import("react").JSX.Element;
|
|
200
|
+
renderSimple(maxHeight: number | null | undefined, rowCount: number): import("react").JSX.Element;
|
|
201
201
|
id: string;
|
|
202
202
|
shortcutsScope: string;
|
|
203
203
|
shortcutsMap: ShortcutsMap;
|
|
204
204
|
/** @override */
|
|
205
|
-
render():
|
|
205
|
+
render(): import("react").JSX.Element;
|
|
206
206
|
}
|
|
207
207
|
export type ListAttrs<T = unknown> = JSX.LibraryManagedAttributes<typeof List, ListProps<T>>;
|
package/components/list/list.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { PureComponent } from 'react';
|
|
2
|
+
import * as React from 'react';
|
|
2
3
|
import { ListDataItemProps } from './consts';
|
|
3
4
|
export default class ListCustom<T> extends PureComponent<ListDataItemProps<T>> {
|
|
4
5
|
handleKeyPress: (event: React.KeyboardEvent) => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { PureComponent, ReactNode } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
export interface ListHintProps {
|
|
4
4
|
label: ReactNode;
|
|
@@ -11,5 +11,5 @@ export default class ListHint extends PureComponent<ListHintProps> {
|
|
|
11
11
|
static propTypes: {
|
|
12
12
|
label: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
13
13
|
};
|
|
14
|
-
render():
|
|
14
|
+
render(): import("react").JSX.Element;
|
|
15
15
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { PureComponent, SyntheticEvent } from 'react';
|
|
2
2
|
import { ListDataItemProps } from './consts';
|
|
3
3
|
export default class ListItem<T> extends PureComponent<ListDataItemProps<T>> {
|
|
4
4
|
id: string;
|
|
5
5
|
stopBubbling: (e: SyntheticEvent) => void;
|
|
6
6
|
private _isString;
|
|
7
|
-
render():
|
|
7
|
+
render(): import("react").JSX.Element;
|
|
8
8
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { PureComponent } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import classNames from 'classnames';
|
|
4
4
|
import dataTests from '../global/data-tests';
|
|
@@ -61,7 +61,7 @@ export default class ListItem extends PureComponent {
|
|
|
61
61
|
{showCheckbox && (<div className={styles.checkboxContainer}>
|
|
62
62
|
<Checkbox aria-labelledby={this.id} checked={checkbox} disabled={disabled} onChange={onCheckboxChange} onClick={this.stopBubbling}/>
|
|
63
63
|
</div>)}
|
|
64
|
-
<button id={this.id} type="button" tabIndex={tabIndex} onClick={onClick} onMouseOver={onMouseOver} onMouseDown={onMouseDown} onFocus={onMouseOver} onMouseUp={onMouseUp} className={classes} style={style}>
|
|
64
|
+
<button id={this.id} type="button" tabIndex={tabIndex} onClick={onClick} onMouseOver={onMouseOver} onMouseDown={onMouseDown} onFocus={onMouseOver} onMouseUp={onMouseUp} className={classes} style={style} disabled={disabled}>
|
|
65
65
|
<div className={styles.top} onMouseOut={this.stopBubbling} onBlur={this.stopBubbling}>
|
|
66
66
|
{!showCheckbox && (<div className={styles.left}>
|
|
67
67
|
{leftNodes}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { PureComponent } from 'react';
|
|
2
2
|
import { ListDataItemProps } from './consts';
|
|
3
3
|
/**
|
|
4
4
|
* @constructor
|
|
5
5
|
* @extends {ReactComponent}
|
|
6
6
|
*/
|
|
7
7
|
export default class ListLink<T> extends PureComponent<ListDataItemProps<T>> {
|
|
8
|
-
render():
|
|
8
|
+
render(): import("react").JSX.Element;
|
|
9
9
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { PureComponent } from 'react';
|
|
2
2
|
import { ListDataItemProps } from './consts';
|
|
3
3
|
export default class ListSeparator<T> extends PureComponent<ListDataItemProps<T>> {
|
|
4
|
-
render():
|
|
4
|
+
render(): import("react").JSX.Element;
|
|
5
5
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { PureComponent } from 'react';
|
|
2
2
|
import { ListDataItemProps } from './consts';
|
|
3
3
|
export default class ListTitle<T> extends PureComponent<ListDataItemProps<T>> {
|
|
4
|
-
render():
|
|
4
|
+
render(): import("react").JSX.Element;
|
|
5
5
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { HTMLAttributes, PureComponent } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import LoaderCore, { LoaderCoreProps } from './loader__core';
|
|
4
4
|
export interface LoaderProps extends Partial<LoaderCoreProps>, HTMLAttributes<HTMLElement> {
|
|
@@ -24,5 +24,5 @@ export default class Loader extends PureComponent<LoaderProps> {
|
|
|
24
24
|
componentWillUnmount(): void;
|
|
25
25
|
loader?: LoaderCore;
|
|
26
26
|
initLoader: (el: Node | null) => void;
|
|
27
|
-
render():
|
|
27
|
+
render(): import("react").JSX.Element;
|
|
28
28
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { HTMLAttributes, PureComponent } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
export interface LoaderInlineProps extends HTMLAttributes<HTMLDivElement> {
|
|
4
4
|
'data-test'?: string | null | undefined;
|
|
@@ -12,7 +12,7 @@ declare class LoaderInline extends PureComponent<LoaderInlineProps> {
|
|
|
12
12
|
'data-test': PropTypes.Requireable<string>;
|
|
13
13
|
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
14
14
|
};
|
|
15
|
-
render():
|
|
15
|
+
render(): import("react").JSX.Element;
|
|
16
16
|
}
|
|
17
17
|
export type LoaderInlineAtrrs = JSX.LibraryManagedAttributes<typeof LoaderInline, LoaderInlineProps>;
|
|
18
18
|
export default LoaderInline;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { PureComponent } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import { LoaderProps } from '../loader/loader';
|
|
4
4
|
export interface LoaderScreenProps extends LoaderProps {
|
|
@@ -13,5 +13,5 @@ export default class LoaderScreen extends PureComponent<LoaderScreenProps> {
|
|
|
13
13
|
containerClassName: PropTypes.Requireable<string>;
|
|
14
14
|
message: PropTypes.Requireable<string>;
|
|
15
15
|
};
|
|
16
|
-
render():
|
|
16
|
+
render(): import("react").JSX.Element;
|
|
17
17
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { Component, ReactNode } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
export interface LoginDialogProps {
|
|
4
4
|
onCancel: () => void;
|
|
@@ -42,6 +42,6 @@ export default class LoginDialog extends Component<LoginDialogProps> {
|
|
|
42
42
|
showFallbackTimout?: number;
|
|
43
43
|
startFallbackCountdown(): void;
|
|
44
44
|
onMessage: (event: MessageEvent) => void;
|
|
45
|
-
render():
|
|
45
|
+
render(): import("react").JSX.Element;
|
|
46
46
|
}
|
|
47
47
|
export type LoginDialogAttrs = JSX.LibraryManagedAttributes<typeof LoginDialog, LoginDialogProps>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { PureComponent, ReactNode } from 'react';
|
|
2
2
|
export interface MarkdownProps {
|
|
3
3
|
inline?: boolean | null | undefined;
|
|
4
4
|
children: ReactNode;
|
|
@@ -8,5 +8,5 @@ export interface MarkdownProps {
|
|
|
8
8
|
* @name Markdown
|
|
9
9
|
*/
|
|
10
10
|
export default class Markdown extends PureComponent<MarkdownProps> {
|
|
11
|
-
render():
|
|
11
|
+
render(): import("react").JSX.Element;
|
|
12
12
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { Component, ReactNode } from 'react';
|
|
2
2
|
import Popup, { PopupAttrs } from '../popup/popup';
|
|
3
3
|
import { Directions } from '../popup/popup.consts';
|
|
4
4
|
import { IconType } from '../icon/icon';
|
|
@@ -49,7 +49,7 @@ export default class Message extends Component<MessageProps> {
|
|
|
49
49
|
node?: HTMLElement | null;
|
|
50
50
|
popupRef: (el: Popup | null) => void;
|
|
51
51
|
getTailOffset(): number;
|
|
52
|
-
render():
|
|
52
|
+
render(): import("react").JSX.Element;
|
|
53
53
|
}
|
|
54
54
|
export type MessageAttrs = JSX.LibraryManagedAttributes<typeof Message, MessageProps>;
|
|
55
55
|
export {};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @name Pager
|
|
3
3
|
*/
|
|
4
|
-
import
|
|
4
|
+
import { PureComponent, ReactNode } from 'react';
|
|
5
|
+
import * as React from 'react';
|
|
5
6
|
import { SelectItem } from '../select/select';
|
|
6
7
|
export interface PagerTranslations {
|
|
7
8
|
perPage: string;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @name Pager
|
|
3
3
|
*/
|
|
4
|
-
import
|
|
4
|
+
import { PureComponent } from 'react';
|
|
5
|
+
import * as React from 'react';
|
|
5
6
|
import PropTypes from 'prop-types';
|
|
6
7
|
import classNames from 'classnames';
|
|
7
8
|
import chevronLeftIcon from '@jetbrains/icons/chevron-left';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { HTMLAttributes, PureComponent } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
/**
|
|
4
4
|
* @name Panel
|
|
@@ -8,5 +8,5 @@ export default class Panel extends PureComponent<HTMLAttributes<HTMLElement>> {
|
|
|
8
8
|
className: PropTypes.Requireable<string>;
|
|
9
9
|
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
10
10
|
};
|
|
11
|
-
render():
|
|
11
|
+
render(): import("react").JSX.Element;
|
|
12
12
|
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @name Popup
|
|
3
3
|
*/
|
|
4
|
-
import
|
|
4
|
+
import { PureComponent, ReactNode, CSSProperties, SyntheticEvent } from 'react';
|
|
5
|
+
import * as React from 'react';
|
|
5
6
|
import { Listeners } from '../global/dom';
|
|
6
7
|
import { PositionStyles } from './position';
|
|
7
8
|
import { Dimension, Directions, Display, MaxHeight, MinWidth } from './popup.consts';
|
|
@@ -97,8 +98,8 @@ export default class Popup<P extends BasePopupProps = PopupProps> extends PureCo
|
|
|
97
98
|
uid: string;
|
|
98
99
|
calculateDisplay: (prevState: PopupState) => {
|
|
99
100
|
display: Display;
|
|
100
|
-
client?: boolean
|
|
101
|
-
direction?: Directions
|
|
101
|
+
client?: boolean;
|
|
102
|
+
direction?: Directions;
|
|
102
103
|
};
|
|
103
104
|
static PopupProps: {
|
|
104
105
|
Directions: typeof Directions;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @name Popup
|
|
3
3
|
*/
|
|
4
|
-
import
|
|
4
|
+
import { PureComponent } from 'react';
|
|
5
|
+
import * as React from 'react';
|
|
5
6
|
import { createPortal } from 'react-dom';
|
|
6
7
|
import PropTypes from 'prop-types';
|
|
7
8
|
import classNames from 'classnames';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
export declare const PopupTargetContext:
|
|
1
|
+
import { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
export declare const PopupTargetContext: import("react").Context<string | Element | undefined>;
|
|
3
3
|
export interface PopupTargetProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children'> {
|
|
4
4
|
id: string;
|
|
5
5
|
children: ReactNode | ((target: ReactNode) => ReactNode);
|
|
6
6
|
}
|
|
7
|
-
export declare const PopupTarget:
|
|
7
|
+
export declare const PopupTarget: import("react").ForwardRefExoticComponent<PopupTargetProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { createContext, forwardRef } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
export const PopupTargetContext = createContext(undefined);
|
|
4
4
|
export const PopupTarget = forwardRef(function PopupTarget({ id, children, ...restProps }, ref) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { SyntheticEvent } from 'react';
|
|
2
2
|
import Popup, { BasePopupProps } from '../popup/popup';
|
|
3
3
|
import List, { ListProps as ListPropsType } from '../list/list';
|
|
4
4
|
import { ListDataItem } from '../list/consts';
|
|
@@ -61,7 +61,7 @@ export default class PopupMenu<T = unknown> extends Popup<PopupMenuProps<T>> {
|
|
|
61
61
|
list?: List<T> | null;
|
|
62
62
|
listRef: (el: List<T> | null) => void;
|
|
63
63
|
/** @override */
|
|
64
|
-
getInternalContent():
|
|
64
|
+
getInternalContent(): import("react").JSX.Element;
|
|
65
65
|
}
|
|
66
66
|
export type PopupMenuAttrs<T = unknown> = JSX.LibraryManagedAttributes<typeof PopupMenu, PopupMenuProps<T>>;
|
|
67
67
|
export declare const ListProps: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { HTMLAttributes, PureComponent } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
export interface ProgressBarProps extends HTMLAttributes<HTMLElement> {
|
|
4
4
|
max: number;
|
|
@@ -59,6 +59,6 @@ export default class ProgressBar extends PureComponent<ProgressBarProps> {
|
|
|
59
59
|
progressbarWrapperRef: (el: HTMLElement | null) => void;
|
|
60
60
|
progressbar?: (HTMLElement | null);
|
|
61
61
|
progressbarRef: (el: HTMLElement | null) => void;
|
|
62
|
-
render():
|
|
62
|
+
render(): import("react").JSX.Element;
|
|
63
63
|
}
|
|
64
64
|
export type ProgressBarAttrs = JSX.LibraryManagedAttributes<typeof ProgressBar, ProgressBarProps>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { Component, ComponentRef, ReactNode, SyntheticEvent } from 'react';
|
|
2
|
+
import * as React from 'react';
|
|
2
3
|
import PropTypes from 'prop-types';
|
|
3
4
|
import Caret, { Position } from '../caret/caret';
|
|
4
5
|
import PopupMenu from '../popup-menu/popup-menu';
|
|
@@ -298,7 +299,7 @@ export default class QueryAssist extends Component<QueryAssistProps> {
|
|
|
298
299
|
shortcutsScope: string;
|
|
299
300
|
shortcutsMap: ShortcutsMap;
|
|
300
301
|
listShortcutsMap: ShortcutsMap;
|
|
301
|
-
renderActions():
|
|
302
|
+
renderActions(): ReactNode[];
|
|
302
303
|
render(): React.JSX.Element;
|
|
303
304
|
}
|
|
304
305
|
export type QueryAssistAttrs = JSX.LibraryManagedAttributes<typeof QueryAssist, QueryAssistProps>;
|