@jetbrains/ring-ui 6.0.35 → 6.0.36
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.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-dialog/auth-dialog.d.ts +2 -2
- package/components/auth-dialog/auth-dialog.js +1 -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 +2 -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 -3
- 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-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 +11 -11
- 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 +2 -2
- package/components/date-picker/day.js +1 -1
- package/components/date-picker/month-names.d.ts +2 -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 +2 -2
- package/components/date-picker/month.js +0 -1
- package/components/date-picker/months.d.ts +2 -2
- package/components/date-picker/months.js +1 -1
- package/components/date-picker/weekdays.d.ts +2 -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 +3 -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/create-stateful-context.d.ts +5 -5
- package/components/global/create-stateful-context.js +1 -1
- 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/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 +11 -11
- 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 +10 -10
- 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 +15 -15
- package/components/link/link.js +1 -1
- package/components/list/consts.d.ts +2 -1
- package/components/list/list.d.ts +10 -10
- 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 +2 -1
- 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 +2 -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 +6 -4
- package/components/select/select__popup.js +4 -3
- package/components/shortcuts/core.d.ts +0 -1
- package/components/shortcuts/shortcuts-hoc.d.ts +8 -8
- 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 +9 -9
- 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 +2 -1
- 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/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 +27 -26
|
@@ -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';
|
|
@@ -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>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { Component } from 'react';
|
|
2
|
+
import * as React from 'react';
|
|
2
3
|
import PropTypes from 'prop-types';
|
|
3
4
|
import debounce from 'just-debounce-it';
|
|
4
5
|
import classNames from 'classnames';
|
|
@@ -366,7 +367,7 @@ export default class QueryAssist extends Component {
|
|
|
366
367
|
}
|
|
367
368
|
const diff = this.immediateState.query.length - this.state.query.length;
|
|
368
369
|
const originalIndex = this.immediateState.caret - diff;
|
|
369
|
-
const ranges = [...this.state.styleRanges ?? []];
|
|
370
|
+
const ranges = [...(this.state.styleRanges ?? [])];
|
|
370
371
|
const range = ranges.
|
|
371
372
|
find(r => originalIndex >= r.start && originalIndex <= r.start + r.length);
|
|
372
373
|
if (range) {
|
|
@@ -826,7 +827,7 @@ export default class QueryAssist extends Component {
|
|
|
826
827
|
onKeyUp={this.handleInput} // to handle input and key up
|
|
827
828
|
onKeyDown={this.handleEnter} onPaste={this.handlePaste} spellCheck="false">{this.state.query && <span>{this.renderQuery()}</span>}</ContentEditable>
|
|
828
829
|
|
|
829
|
-
{renderPlaceholder && (<button type="button" className={placeholderStyles} ref={this.placeholderRef} onClick={this.handleCaretMove} data-test="query-assist-placeholder">
|
|
830
|
+
{renderPlaceholder && (<button type="button" className={placeholderStyles} ref={this.placeholderRef} onClick={this.handleCaretMove} data-test="query-assist-placeholder" disabled={this.props.disabled}>
|
|
830
831
|
{this.props.placeholder}
|
|
831
832
|
</button>)}
|
|
832
833
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import { ListDataItem } from '../list/consts';
|
|
3
3
|
export interface QueryAssistSuggestion {
|
|
4
4
|
description: string;
|
|
@@ -19,7 +19,7 @@ export interface SuggestionItem {
|
|
|
19
19
|
}
|
|
20
20
|
export default class QueryAssistSuggestions {
|
|
21
21
|
static createKey(suggestion: QueryAssistSuggestion): string;
|
|
22
|
-
static renderLabel(suggestion: QueryAssistSuggestion):
|
|
22
|
+
static renderLabel(suggestion: QueryAssistSuggestion): import("react").JSX.Element;
|
|
23
23
|
static renderGroupSeparator(suggestion: QueryAssistSuggestion, prevSuggestion: string): {
|
|
24
24
|
key: string;
|
|
25
25
|
description: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { Component } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import { RadioProps } from './radio__item';
|
|
4
4
|
/**
|
|
@@ -12,7 +12,7 @@ export default class Radio extends Component<RadioProps> {
|
|
|
12
12
|
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
13
13
|
children: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
|
|
14
14
|
};
|
|
15
|
-
static Item:
|
|
15
|
+
static Item: import("react").ForwardRefExoticComponent<import("./radio__item").RadioItemProps & import("react").RefAttributes<import("./radio__item").RadioItemInner>>;
|
|
16
16
|
uid: string;
|
|
17
|
-
render():
|
|
17
|
+
render(): import("react").JSX.Element;
|
|
18
18
|
}
|
|
@@ -1,11 +1,14 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { Component, InputHTMLAttributes, ReactNode } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
export interface RadioProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'onChange'> {
|
|
4
4
|
value?: string | undefined;
|
|
5
5
|
onChange?: ((value: string) => void) | null | undefined;
|
|
6
6
|
}
|
|
7
|
-
export declare const RadioContext:
|
|
8
|
-
export
|
|
7
|
+
export declare const RadioContext: import("react").Context<RadioProps>;
|
|
8
|
+
export interface RadioItemInnerProps extends InputHTMLAttributes<HTMLInputElement> {
|
|
9
|
+
help?: ReactNode;
|
|
10
|
+
}
|
|
11
|
+
export declare class RadioItemInner extends Component<RadioItemInnerProps> {
|
|
9
12
|
static propTypes: {
|
|
10
13
|
className: PropTypes.Requireable<string>;
|
|
11
14
|
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
@@ -19,10 +22,10 @@ export declare class Radio extends Component<InputHTMLAttributes<HTMLInputElemen
|
|
|
19
22
|
inputRef: (el: HTMLElement | null) => void;
|
|
20
23
|
label?: HTMLElement | null;
|
|
21
24
|
labelRef: (el: HTMLElement | null) => void;
|
|
22
|
-
render():
|
|
25
|
+
render(): import("react").JSX.Element;
|
|
23
26
|
}
|
|
24
|
-
export interface RadioItemProps extends
|
|
27
|
+
export interface RadioItemProps extends RadioItemInnerProps {
|
|
25
28
|
value: string;
|
|
26
29
|
}
|
|
27
|
-
declare const RadioItem:
|
|
30
|
+
declare const RadioItem: import("react").ForwardRefExoticComponent<RadioItemProps & import("react").RefAttributes<RadioItemInner>>;
|
|
28
31
|
export default RadioItem;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { Component, createContext, forwardRef } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import classNames from 'classnames';
|
|
4
4
|
import getUID from '../global/get-uid';
|
|
5
|
+
import ControlHelp from '../control-help/control-help';
|
|
5
6
|
import styles from './radio.css';
|
|
6
7
|
export const RadioContext = createContext({});
|
|
7
|
-
export class
|
|
8
|
+
export class RadioItemInner extends Component {
|
|
8
9
|
static propTypes = {
|
|
9
10
|
className: PropTypes.string,
|
|
10
11
|
children: PropTypes.node,
|
|
@@ -23,19 +24,22 @@ export class Radio extends Component {
|
|
|
23
24
|
this.label = el;
|
|
24
25
|
};
|
|
25
26
|
render() {
|
|
26
|
-
const { className, children, ...restProps } = this.props;
|
|
27
|
+
const { className, children, help, ...restProps } = this.props;
|
|
27
28
|
const classes = classNames(styles.radio, className);
|
|
28
29
|
return (<label ref={this.labelRef} className={classes} htmlFor={this.uid}>
|
|
29
30
|
<input id={this.uid} {...restProps} ref={this.inputRef} className={styles.input} type="radio"/>
|
|
30
31
|
<span className={styles.circle}/>
|
|
31
|
-
<span className={styles.label}>
|
|
32
|
+
<span className={styles.label}>
|
|
33
|
+
{children}
|
|
34
|
+
{help && <ControlHelp>{help}</ControlHelp>}
|
|
35
|
+
</span>
|
|
32
36
|
</label>);
|
|
33
37
|
}
|
|
34
38
|
}
|
|
35
39
|
const RadioItem = forwardRef(function RadioItem(props, ref) {
|
|
36
40
|
return (<RadioContext.Consumer>
|
|
37
|
-
{({ value, onChange, ...restContext }) => (<
|
|
41
|
+
{({ value, onChange, ...restContext }) => (<RadioItemInner ref={ref} {...restContext} checked={value != null ? value === props.value : undefined} onChange={onChange != null ? () => onChange(props.value) : undefined} {...props}/>)}
|
|
38
42
|
</RadioContext.Consumer>);
|
|
39
43
|
});
|
|
40
|
-
RadioItem.propTypes =
|
|
44
|
+
RadioItem.propTypes = RadioItemInner.propTypes;
|
|
41
45
|
export default RadioItem;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ButtonHTMLAttributes, Component, ComponentType, CSSProperties, HTMLAttributes, ReactNode, Ref, RefCallback, SyntheticEvent } from 'react';
|
|
2
|
+
import * as React from 'react';
|
|
2
3
|
import { SelectHandlerParams } from '../list/list';
|
|
3
4
|
import { Size } from '../input/input';
|
|
4
5
|
import { LabelType } from '../control-label/control-label';
|
|
@@ -100,6 +101,7 @@ export interface BaseSelectProps<T = unknown> {
|
|
|
100
101
|
popupStyle?: CSSProperties | undefined;
|
|
101
102
|
top?: number | undefined;
|
|
102
103
|
left?: number | undefined;
|
|
104
|
+
offset?: number | undefined;
|
|
103
105
|
renderOptimization?: boolean | undefined;
|
|
104
106
|
ringPopupTarget?: string | null | undefined;
|
|
105
107
|
preventListOverscroll?: boolean | undefined;
|
|
@@ -199,6 +201,7 @@ export default class Select<T = unknown> extends Component<SelectProps<T>, Selec
|
|
|
199
201
|
tags: null;
|
|
200
202
|
ringPopupTarget: null;
|
|
201
203
|
dir: string;
|
|
204
|
+
offset: number;
|
|
202
205
|
};
|
|
203
206
|
static getDerivedStateFromProps<T = unknown>(nextProps: SelectProps<T>, prevState: SelectState<T>): Partial<SelectState<T>>;
|
|
204
207
|
state: SelectState<T>;
|
|
@@ -229,7 +232,7 @@ export default class Select<T = unknown> extends Component<SelectProps<T>, Selec
|
|
|
229
232
|
_hidePopup: (tryFocusAnchor?: boolean) => void;
|
|
230
233
|
addHandler: () => void;
|
|
231
234
|
getToolbar(): React.JSX.Element | null;
|
|
232
|
-
getTopbar():
|
|
235
|
+
getTopbar(): ReactNode;
|
|
233
236
|
getLowerCaseLabel: typeof getLowerCaseLabel;
|
|
234
237
|
doesLabelMatch: typeof doesLabelMatch;
|
|
235
238
|
getFilterFn(): FilterFn<T>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { Component, Fragment } from 'react';
|
|
2
|
+
import * as React from 'react';
|
|
2
3
|
import classNames from 'classnames';
|
|
3
4
|
import PropTypes from 'prop-types';
|
|
4
5
|
import chevronDownIcon from '@jetbrains/icons/chevron-down';
|
|
@@ -225,7 +226,8 @@ export default class Select extends Component {
|
|
|
225
226
|
onReset: noop,
|
|
226
227
|
tags: null,
|
|
227
228
|
ringPopupTarget: null,
|
|
228
|
-
dir: 'ltr'
|
|
229
|
+
dir: 'ltr',
|
|
230
|
+
offset: 4
|
|
229
231
|
};
|
|
230
232
|
static getDerivedStateFromProps(nextProps, prevState) {
|
|
231
233
|
const { multiple, data, type } = nextProps;
|
|
@@ -442,7 +444,7 @@ export default class Select extends Component {
|
|
|
442
444
|
else if (!shownData.length) {
|
|
443
445
|
message = this.props.notFoundMessage ?? translate('noOptionsFound');
|
|
444
446
|
}
|
|
445
|
-
return (<SelectPopup data={_shownData} message={message} toolbar={showPopup && this.getToolbar()} topbar={this.getTopbar()} loading={this.props.loading} activeIndex={this.state.selectedIndex} hidden={!showPopup} ref={this.popupRef} maxHeight={this.props.maxHeight} minWidth={this.props.minWidth} directions={this.props.directions} className={this.props.popupClassName} style={this.props.popupStyle} top={this.props.top} left={this.props.left} filter={this.isInputMode() ? false : this.props.filter} // disable popup filter in INPUT mode
|
|
447
|
+
return (<SelectPopup data={_shownData} message={message} toolbar={showPopup && this.getToolbar()} topbar={this.getTopbar()} loading={this.props.loading} activeIndex={this.state.selectedIndex} hidden={!showPopup} ref={this.popupRef} maxHeight={this.props.maxHeight} minWidth={this.props.minWidth} directions={this.props.directions} className={this.props.popupClassName} style={this.props.popupStyle} top={this.props.top} left={this.props.left} offset={this.props.offset} filter={this.isInputMode() ? false : this.props.filter} // disable popup filter in INPUT mode
|
|
446
448
|
filterIcon={this.props.filterIcon} filterRef={this.props.filterRef} multiple={this.props.multiple} filterValue={this.state.filterValue} anchorElement={anchorElement} onCloseAttempt={this._onCloseAttempt} onOutsideClick={this.props.onOutsideClick} onSelect={this._listSelectHandler} onSelectAll={this._listSelectAllHandler} onFilter={this._filterChangeHandler} onClear={this.clearFilter} onLoadMore={this.props.onLoadMore} isInputMode={this.isInputMode()} selected={this.state.selected} tags={this.props.tags} compact={this.props.compact} renderOptimization={this.props.renderOptimization} ringPopupTarget={this.props.ringPopupTarget} disableMoveOverflow={this.props.disableMoveOverflow} disableScrollToActive={this.props.disableScrollToActive} dir={this.props.dir} onEmptyPopupEnter={this.onEmptyPopupEnter} listId={this.listId} preventListOverscroll={this.props.preventListOverscroll}/>);
|
|
447
449
|
}}
|
|
448
450
|
</I18nContext.Consumer>);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { Component, RefCallback } from 'react';
|
|
2
2
|
import { InputAttrs } from '../input/input';
|
|
3
3
|
declare function noop(): void;
|
|
4
4
|
type SelectFilterProps = InputAttrs & {
|
|
@@ -14,6 +14,6 @@ export default class SelectFilter extends Component<SelectFilterProps> {
|
|
|
14
14
|
blur(): void;
|
|
15
15
|
input?: HTMLInputElement | HTMLTextAreaElement | null;
|
|
16
16
|
inputRef: (el: HTMLInputElement | HTMLTextAreaElement | null) => void;
|
|
17
|
-
render():
|
|
17
|
+
render(): import("react").JSX.Element;
|
|
18
18
|
}
|
|
19
19
|
export {};
|