@jetbrains/ring-ui 7.0.39 → 7.0.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/alert/container.d.ts +5 -2
- package/components/button/button.d.ts +1 -1
- package/components/button/button.js +6 -3
- package/components/button-group/button-group.js +4 -1
- package/components/code/code.d.ts +1 -1
- package/components/collapse/collapse-control.d.ts +2 -2
- package/components/collapse/collapse-control.js +1 -0
- package/components/data-list/data-list.d.ts +1 -58
- package/components/data-list/title.d.ts +1 -1
- package/components/date-picker/date-popup.d.ts +1 -1
- package/components/date-picker/years.d.ts +1 -1
- package/components/dialog/dialog.d.ts +1 -1
- package/components/dropdown/dropdown.d.ts +1 -1
- package/components/footer/footer.d.ts +2 -2
- package/components/global/focus-sensor-hoc.d.ts +3 -3
- package/components/global/theme.d.ts +1 -1
- package/components/global/use-event-callback.js +1 -1
- package/components/header/profile.d.ts +1 -1
- package/components/island/adaptive-island-hoc.d.ts +2 -56
- package/components/island/island.d.ts +1 -55
- package/components/link/link.d.ts +3 -99
- package/components/list/consts.d.ts +1 -1
- package/components/select/select.d.ts +1 -1
- package/components/select/select.js +1 -0
- package/components/select/select__filter.d.ts +0 -1
- package/components/select/select__filter.js +0 -3
- package/components/shortcuts/shortcuts-hoc.d.ts +2 -52
- package/components/shortcuts/shortcuts.d.ts +3 -3
- package/components/slider/slider.utils.d.ts +2 -2
- package/components/table/disable-hover-hoc.d.ts +2 -59
- package/components/table/multitable.d.ts +3 -1
- package/components/table/multitable.js +2 -2
- package/components/table/row-with-focus-sensor.d.ts +1 -1
- package/components/table/selection-shortcuts-hoc.d.ts +2 -2
- package/components/table/table.d.ts +1 -58
- package/components/user-card/tooltip.d.ts +3 -8
- package/package.json +10 -11
|
@@ -1,10 +1,13 @@
|
|
|
1
|
-
import { PureComponent, HTMLAttributes } from 'react';
|
|
1
|
+
import { PureComponent, HTMLAttributes, ReactElement } from 'react';
|
|
2
|
+
import type { AlertProps } from './alert';
|
|
2
3
|
/**
|
|
3
4
|
* @name Alert Container
|
|
4
5
|
* @description Displays a stack of alerts on top of the page.
|
|
5
6
|
* @extends {PureComponent}
|
|
6
7
|
*/
|
|
7
|
-
export type AlertContainerProps = HTMLAttributes<HTMLDivElement
|
|
8
|
+
export type AlertContainerProps = HTMLAttributes<HTMLDivElement> & {
|
|
9
|
+
children: ReactElement<AlertProps> | ReactElement<AlertProps>[];
|
|
10
|
+
};
|
|
8
11
|
export default class Alerts extends PureComponent<AlertContainerProps> {
|
|
9
12
|
render(): import("react").ReactPortal | null;
|
|
10
13
|
}
|
|
@@ -53,7 +53,7 @@ export declare class Button extends PureComponent<ButtonProps> {
|
|
|
53
53
|
static IconSize: typeof Size;
|
|
54
54
|
static contextType: React.Context<ControlsHeight>;
|
|
55
55
|
context: React.ContextType<typeof ControlsHeightContext>;
|
|
56
|
-
buttonRef: React.RefObject<HTMLButtonElement>;
|
|
56
|
+
buttonRef: React.RefObject<HTMLButtonElement | null>;
|
|
57
57
|
render(): import("react/jsx-runtime").JSX.Element;
|
|
58
58
|
}
|
|
59
59
|
export { Size as IconSize };
|
|
@@ -10,6 +10,10 @@ import { ControlsHeightContext } from '../global/controls-height';
|
|
|
10
10
|
import styles from './button.css';
|
|
11
11
|
import { getButtonClasses } from './button__classes';
|
|
12
12
|
const warnText = deprecate(() => { }, 'Button: "text" prop is deprecated and will be removed in 8.0. Use inline instead.');
|
|
13
|
+
function removeLinkProps(props) {
|
|
14
|
+
const { download, href, hrefLang, media, ping, target, type, referrerPolicy, onConditionalClick, onPlainLeftClick, activeClassName, ...restProps } = props;
|
|
15
|
+
return restProps;
|
|
16
|
+
}
|
|
13
17
|
/**
|
|
14
18
|
* @name Button
|
|
15
19
|
*/
|
|
@@ -28,7 +32,7 @@ export class Button extends PureComponent {
|
|
|
28
32
|
// Modifiers
|
|
29
33
|
active, danger, delayed, loader, primary, success, error, secondary, ghost, short, text, dropdown, height,
|
|
30
34
|
// Props
|
|
31
|
-
icon, iconRight, iconSize, iconClassName, iconRightClassName, iconSuppressSizeWarning, className, children, inline, disabled,
|
|
35
|
+
icon, iconRight, iconSize, iconClassName, iconRightClassName, iconSuppressSizeWarning, className, children, inline, disabled, ...props } = this.props;
|
|
32
36
|
const isInline = inline ?? text ?? icon != null;
|
|
33
37
|
if (text != null) {
|
|
34
38
|
warnText();
|
|
@@ -41,8 +45,7 @@ export class Button extends PureComponent {
|
|
|
41
45
|
const content = (_jsxs(_Fragment, { children: [icon && (_jsx(Icon, { className: classNames(styles.icon, iconClassName), glyph: icon, size: iconSize, suppressSizeWarning: iconSuppressSizeWarning })), children, iconRight && _jsx(Icon, { className: classNames(styles.iconRight, iconRightClassName), glyph: iconRight }), dropdown && _jsx(Icon, { glyph: isInline ? chevron12pxDown : chevronDown, className: styles.dropdownIcon })] }));
|
|
42
46
|
const isDisabled = disabled || loader || undefined;
|
|
43
47
|
const commonProps = {
|
|
44
|
-
...props,
|
|
45
|
-
href: isDisabled ? undefined : href,
|
|
48
|
+
...(props.href != null && isDisabled ? removeLinkProps(props) : props),
|
|
46
49
|
className: classes,
|
|
47
50
|
children: (_jsxs(_Fragment, { children: [loader && !isInline && _jsx("div", { className: styles.loaderBackground }), content] })),
|
|
48
51
|
};
|
|
@@ -13,7 +13,10 @@ export default class ButtonGroup extends PureComponent {
|
|
|
13
13
|
render() {
|
|
14
14
|
const { className, split, 'data-test': dataTest, label, help, ...restProps } = this.props;
|
|
15
15
|
const classes = classNames(split ? styles.split : styles.buttonGroup, className, {
|
|
16
|
-
[styles.disabled]: Children.toArray(this.props.children).every(child => child != null &&
|
|
16
|
+
[styles.disabled]: Children.toArray(this.props.children).every(child => child != null &&
|
|
17
|
+
typeof child === 'object' &&
|
|
18
|
+
'props' in child &&
|
|
19
|
+
child.props.disabled),
|
|
17
20
|
});
|
|
18
21
|
return (_jsxs(_Fragment, { children: [label && _jsx(ControlLabel, { children: label }), _jsx("div", { ...restProps, "data-test": dataTests('ring-button-group', dataTest), className: classes }), help && _jsx(ControlHelp, { className: styles.help, children: help })] }));
|
|
19
22
|
}
|
|
@@ -24,7 +24,7 @@ export default class Code extends PureComponent<CodeProps> {
|
|
|
24
24
|
code?: HTMLElement | null;
|
|
25
25
|
highlight(): Promise<void>;
|
|
26
26
|
get codeRef(): HTMLElement | null | undefined;
|
|
27
|
-
get initCodeRef(): import("react").RefObject<HTMLElement> | ((ref: HTMLElement | null) => void);
|
|
27
|
+
get initCodeRef(): import("react").RefObject<HTMLElement | null> | ((ref: HTMLElement | null) => void);
|
|
28
28
|
render(): import("react/jsx-runtime").JSX.Element;
|
|
29
29
|
}
|
|
30
30
|
declare const code: (strings: TemplateStringsArray, ...interpolations: unknown[]) => void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
type ChildrenFunction = (collapsed: boolean) => React.ReactElement
|
|
2
|
+
type ChildrenFunction = (collapsed: boolean) => React.ReactElement<any>;
|
|
3
3
|
type Props = {
|
|
4
|
-
children: ChildrenFunction | React.ReactElement
|
|
4
|
+
children: ChildrenFunction | React.ReactElement<any>;
|
|
5
5
|
'data-test'?: string | null | undefined;
|
|
6
6
|
};
|
|
7
7
|
/**
|
|
@@ -8,6 +8,7 @@ import { COLLAPSE_CONTROL_TEST_ID } from './consts';
|
|
|
8
8
|
*/
|
|
9
9
|
export const CollapseControl = ({ children, 'data-test': dataTest }) => {
|
|
10
10
|
const { setCollapsed, collapsed, id } = useContext(CollapseContext);
|
|
11
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
11
12
|
const child = useMemo(() => {
|
|
12
13
|
if (typeof children === 'function') {
|
|
13
14
|
return children(collapsed);
|
|
@@ -20,64 +20,7 @@ export interface DataListBaseProps<T extends SelectionItem> {
|
|
|
20
20
|
type FocusableProps<T extends SelectionItem> = DataListBaseProps<T> & DisableHoverAddProps & FocusSensorOuterProps<HTMLDivElement> & SelectionShortcutsAddProps<T>;
|
|
21
21
|
export type DataListContainerProps<T extends SelectionItem> = DataListBaseProps<T> & FocusSensorOuterProps<HTMLDivElement> & SelectionShortcutsOuterProps<T>;
|
|
22
22
|
export default class DataListContainer<T extends SelectionItem> extends Component<DataListContainerProps<T>> {
|
|
23
|
-
DataList:
|
|
24
|
-
new (props: import("../table/disable-hover-hoc").DisableHoverProps<import("../table/selection-shortcuts-hoc").SelectionShortcutsProps<T, FocusableProps<T>>>): {
|
|
25
|
-
state: {
|
|
26
|
-
disabledHover: boolean;
|
|
27
|
-
};
|
|
28
|
-
componentDidMount(): void;
|
|
29
|
-
componentWillUnmount(): void;
|
|
30
|
-
onMouseMove: () => void;
|
|
31
|
-
onKeyDown: (e: KeyboardEvent) => void;
|
|
32
|
-
render(): import("react/jsx-runtime").JSX.Element;
|
|
33
|
-
context: unknown;
|
|
34
|
-
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<import("../table/disable-hover-hoc").DisableHoverProps<import("../table/selection-shortcuts-hoc").SelectionShortcutsProps<T, FocusableProps<T>>>>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
35
|
-
forceUpdate(callback?: (() => void) | undefined): void;
|
|
36
|
-
readonly props: Readonly<import("../table/disable-hover-hoc").DisableHoverProps<import("../table/selection-shortcuts-hoc").SelectionShortcutsProps<T, FocusableProps<T>>>>;
|
|
37
|
-
refs: {
|
|
38
|
-
[key: string]: import("react").ReactInstance;
|
|
39
|
-
};
|
|
40
|
-
shouldComponentUpdate?(nextProps: Readonly<import("../table/disable-hover-hoc").DisableHoverProps<import("../table/selection-shortcuts-hoc").SelectionShortcutsProps<T, FocusableProps<T>>>>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
41
|
-
componentDidCatch?(error: Error, errorInfo: import("react").ErrorInfo): void;
|
|
42
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<import("../table/disable-hover-hoc").DisableHoverProps<import("../table/selection-shortcuts-hoc").SelectionShortcutsProps<T, FocusableProps<T>>>>, prevState: Readonly<{}>): any;
|
|
43
|
-
componentDidUpdate?(prevProps: Readonly<import("../table/disable-hover-hoc").DisableHoverProps<import("../table/selection-shortcuts-hoc").SelectionShortcutsProps<T, FocusableProps<T>>>>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
44
|
-
componentWillMount?(): void;
|
|
45
|
-
UNSAFE_componentWillMount?(): void;
|
|
46
|
-
componentWillReceiveProps?(nextProps: Readonly<import("../table/disable-hover-hoc").DisableHoverProps<import("../table/selection-shortcuts-hoc").SelectionShortcutsProps<T, FocusableProps<T>>>>, nextContext: any): void;
|
|
47
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<import("../table/disable-hover-hoc").DisableHoverProps<import("../table/selection-shortcuts-hoc").SelectionShortcutsProps<T, FocusableProps<T>>>>, nextContext: any): void;
|
|
48
|
-
componentWillUpdate?(nextProps: Readonly<import("../table/disable-hover-hoc").DisableHoverProps<import("../table/selection-shortcuts-hoc").SelectionShortcutsProps<T, FocusableProps<T>>>>, nextState: Readonly<{}>, nextContext: any): void;
|
|
49
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<import("../table/disable-hover-hoc").DisableHoverProps<import("../table/selection-shortcuts-hoc").SelectionShortcutsProps<T, FocusableProps<T>>>>, nextState: Readonly<{}>, nextContext: any): void;
|
|
50
|
-
};
|
|
51
|
-
new (props: import("../table/disable-hover-hoc").DisableHoverProps<import("../table/selection-shortcuts-hoc").SelectionShortcutsProps<T, FocusableProps<T>>>, context: any): {
|
|
52
|
-
state: {
|
|
53
|
-
disabledHover: boolean;
|
|
54
|
-
};
|
|
55
|
-
componentDidMount(): void;
|
|
56
|
-
componentWillUnmount(): void;
|
|
57
|
-
onMouseMove: () => void;
|
|
58
|
-
onKeyDown: (e: KeyboardEvent) => void;
|
|
59
|
-
render(): import("react/jsx-runtime").JSX.Element;
|
|
60
|
-
context: unknown;
|
|
61
|
-
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<import("../table/disable-hover-hoc").DisableHoverProps<import("../table/selection-shortcuts-hoc").SelectionShortcutsProps<T, FocusableProps<T>>>>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
62
|
-
forceUpdate(callback?: (() => void) | undefined): void;
|
|
63
|
-
readonly props: Readonly<import("../table/disable-hover-hoc").DisableHoverProps<import("../table/selection-shortcuts-hoc").SelectionShortcutsProps<T, FocusableProps<T>>>>;
|
|
64
|
-
refs: {
|
|
65
|
-
[key: string]: import("react").ReactInstance;
|
|
66
|
-
};
|
|
67
|
-
shouldComponentUpdate?(nextProps: Readonly<import("../table/disable-hover-hoc").DisableHoverProps<import("../table/selection-shortcuts-hoc").SelectionShortcutsProps<T, FocusableProps<T>>>>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
68
|
-
componentDidCatch?(error: Error, errorInfo: import("react").ErrorInfo): void;
|
|
69
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<import("../table/disable-hover-hoc").DisableHoverProps<import("../table/selection-shortcuts-hoc").SelectionShortcutsProps<T, FocusableProps<T>>>>, prevState: Readonly<{}>): any;
|
|
70
|
-
componentDidUpdate?(prevProps: Readonly<import("../table/disable-hover-hoc").DisableHoverProps<import("../table/selection-shortcuts-hoc").SelectionShortcutsProps<T, FocusableProps<T>>>>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
71
|
-
componentWillMount?(): void;
|
|
72
|
-
UNSAFE_componentWillMount?(): void;
|
|
73
|
-
componentWillReceiveProps?(nextProps: Readonly<import("../table/disable-hover-hoc").DisableHoverProps<import("../table/selection-shortcuts-hoc").SelectionShortcutsProps<T, FocusableProps<T>>>>, nextContext: any): void;
|
|
74
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<import("../table/disable-hover-hoc").DisableHoverProps<import("../table/selection-shortcuts-hoc").SelectionShortcutsProps<T, FocusableProps<T>>>>, nextContext: any): void;
|
|
75
|
-
componentWillUpdate?(nextProps: Readonly<import("../table/disable-hover-hoc").DisableHoverProps<import("../table/selection-shortcuts-hoc").SelectionShortcutsProps<T, FocusableProps<T>>>>, nextState: Readonly<{}>, nextContext: any): void;
|
|
76
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<import("../table/disable-hover-hoc").DisableHoverProps<import("../table/selection-shortcuts-hoc").SelectionShortcutsProps<T, FocusableProps<T>>>>, nextState: Readonly<{}>, nextContext: any): void;
|
|
77
|
-
};
|
|
78
|
-
defaultProps: Partial<import("../table/selection-shortcuts-hoc").SelectionShortcutsProps<T, FocusableProps<T>>> | undefined;
|
|
79
|
-
contextType?: import("react").Context<any> | undefined;
|
|
80
|
-
};
|
|
23
|
+
DataList: import("react").ComponentClass<import("../table/disable-hover-hoc").DisableHoverProps<import("../table/selection-shortcuts-hoc").SelectionShortcutsProps<T, FocusableProps<T>>>, any>;
|
|
81
24
|
render(): import("react/jsx-runtime").JSX.Element;
|
|
82
25
|
}
|
|
83
26
|
export {};
|
|
@@ -22,5 +22,5 @@ declare class Title extends PureComponent<TitleProps> {
|
|
|
22
22
|
toggleSelection(): void;
|
|
23
23
|
render(): import("react/jsx-runtime").JSX.Element;
|
|
24
24
|
}
|
|
25
|
-
declare const _default: import("react").
|
|
25
|
+
declare const _default: import("react").ComponentClass<import("../global/focus-sensor-hoc").FocusSensorProps<TitleProps, HTMLDivElement, typeof Title>, any>;
|
|
26
26
|
export default _default;
|
|
@@ -14,7 +14,7 @@ export default class DatePopup extends Component<DatePopupProps, DatePopupState>
|
|
|
14
14
|
private _scrollDate?;
|
|
15
15
|
private _scrollTS?;
|
|
16
16
|
isInTimeMode: () => boolean;
|
|
17
|
-
componentRef: React.RefObject<HTMLDivElement>;
|
|
17
|
+
componentRef: React.RefObject<HTMLDivElement | null>;
|
|
18
18
|
handleWheel: (e: WheelEvent) => void;
|
|
19
19
|
parse(text: string | null | undefined, type: 'time'): string;
|
|
20
20
|
parse(text: Date | number | string | null | undefined, type?: 'date' | 'from' | 'to'): Date;
|
|
@@ -12,7 +12,7 @@ export default class Years extends PureComponent<CalendarProps> {
|
|
|
12
12
|
componentWillUnmount(): void;
|
|
13
13
|
stoppedScrolling?: boolean;
|
|
14
14
|
setYear(date: number): void;
|
|
15
|
-
componentRef: import("react").RefObject<HTMLDivElement>;
|
|
15
|
+
componentRef: import("react").RefObject<HTMLDivElement | null>;
|
|
16
16
|
handleWheel: (e: WheelEvent) => void;
|
|
17
17
|
render(): import("react/jsx-runtime").JSX.Element;
|
|
18
18
|
}
|
|
@@ -44,7 +44,7 @@ export default class Dialog extends PureComponent<DialogProps> {
|
|
|
44
44
|
};
|
|
45
45
|
dialog?: HTMLElement | null;
|
|
46
46
|
dialogRef: (tabTrap: TabTrap | null) => void;
|
|
47
|
-
nativeDialog: React.RefObject<HTMLDialogElement>;
|
|
47
|
+
nativeDialog: React.RefObject<HTMLDialogElement | null>;
|
|
48
48
|
render(): false | import("react/jsx-runtime").JSX.Element;
|
|
49
49
|
}
|
|
50
50
|
export type DialogAttrs = React.JSX.LibraryManagedAttributes<typeof Dialog, DialogProps>;
|
|
@@ -20,7 +20,7 @@ export interface DropdownProps extends Omit<HTMLAttributes<HTMLElement>, 'childr
|
|
|
20
20
|
* Can be string, React element, or a function accepting an object with {active, pinned} properties and returning a React element
|
|
21
21
|
* React element should render some interactive HTML element like `button` or `a`
|
|
22
22
|
*/
|
|
23
|
-
anchor: ReactElement | readonly ReactElement[] | string | ((props: AnchorProps) => ReactNode);
|
|
23
|
+
anchor: ReactElement<any> | readonly ReactElement<any>[] | string | ((props: AnchorProps) => ReactNode);
|
|
24
24
|
children: DropdownChildren;
|
|
25
25
|
initShown: boolean;
|
|
26
26
|
disabled?: boolean | null | undefined;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @name Footer
|
|
3
3
|
*/
|
|
4
|
-
import { HTMLAttributeAnchorTarget,
|
|
4
|
+
import { HTMLAttributeAnchorTarget, ReactElement } from 'react';
|
|
5
5
|
/**
|
|
6
6
|
* Return copyright string
|
|
7
7
|
* @param year {int}
|
|
@@ -15,7 +15,7 @@ export interface FooterLinkItem {
|
|
|
15
15
|
target?: HTMLAttributeAnchorTarget | undefined;
|
|
16
16
|
title?: string | undefined;
|
|
17
17
|
}
|
|
18
|
-
type FooterItem = FooterLinkItem |
|
|
18
|
+
type FooterItem = FooterLinkItem | ReactElement<any> | string | number;
|
|
19
19
|
type FooterItems = readonly (FooterItem | readonly FooterItem[])[];
|
|
20
20
|
export interface FooterProps {
|
|
21
21
|
className?: string | null | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ComponentClass, Ref } from 'react';
|
|
2
2
|
export interface FocusSensorOuterProps<T extends HTMLElement> {
|
|
3
3
|
focused?: boolean | undefined;
|
|
4
4
|
autofocus?: boolean | undefined;
|
|
@@ -14,6 +14,6 @@ export interface FocusSensorAddProps<T extends HTMLElement> {
|
|
|
14
14
|
onFocusRestore: () => void;
|
|
15
15
|
}
|
|
16
16
|
type RestProps<P, T extends HTMLElement> = Omit<P, keyof FocusSensorAddProps<T>>;
|
|
17
|
-
export type FocusSensorProps<P extends FocusSensorAddProps<T>, T extends HTMLElement, C extends
|
|
18
|
-
export default function focusSensorHOC<T extends HTMLElement, P extends FocusSensorAddProps<T>, C extends
|
|
17
|
+
export type FocusSensorProps<P extends FocusSensorAddProps<T>, T extends HTMLElement, C extends ComponentClass<P>> = RestProps<React.JSX.LibraryManagedAttributes<C, P>, T> & FocusSensorOuterProps<T>;
|
|
18
|
+
export default function focusSensorHOC<T extends HTMLElement, P extends FocusSensorAddProps<T>, C extends ComponentClass<P>>(ComposedComponent: C): ComponentClass<FocusSensorProps<P, T, typeof ComposedComponent>>;
|
|
19
19
|
export {};
|
|
@@ -14,7 +14,7 @@ export interface WithThemeClassesProps {
|
|
|
14
14
|
theme: Theme;
|
|
15
15
|
children: (classes: string) => ReactElement;
|
|
16
16
|
}
|
|
17
|
-
export declare function WithThemeClasses({ theme, children }: WithThemeClassesProps): ReactElement<
|
|
17
|
+
export declare function WithThemeClasses({ theme, children }: WithThemeClassesProps): ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
18
18
|
export declare function applyTheme(theme: Theme.DARK | Theme.LIGHT, container: HTMLElement): void;
|
|
19
19
|
type WrapperType = FunctionComponent<HTMLAttributes<HTMLElement> & React.RefAttributes<HTMLElement>>;
|
|
20
20
|
export interface ThemeProviderProps extends HTMLAttributes<HTMLDivElement> {
|
|
@@ -44,6 +44,6 @@ export default class Profile extends PureComponent<ProfileProps> {
|
|
|
44
44
|
static contextType: React.Context<import("../i18n/i18n-context").I18nContextProps>;
|
|
45
45
|
context: React.ContextType<typeof Profile.contextType>;
|
|
46
46
|
static Size: typeof Size;
|
|
47
|
-
render():
|
|
47
|
+
render(): ReactNode;
|
|
48
48
|
}
|
|
49
49
|
export type ProfileAttrs = React.JSX.LibraryManagedAttributes<typeof Profile, ProfileProps>;
|
|
@@ -1,60 +1,6 @@
|
|
|
1
|
-
import { ComponentType } from 'react';
|
|
1
|
+
import { ComponentClass, ComponentType } from 'react';
|
|
2
2
|
export declare const PhaseContext: import("react").Context<number | null>;
|
|
3
3
|
type ScrollHandler = (element: Element) => void;
|
|
4
4
|
export declare const ScrollHandlerContext: import("react").Context<ScrollHandler | null>;
|
|
5
|
-
export default function adaptiveIslandHOC<P>(ComposedComponent: ComponentType<P>):
|
|
6
|
-
new (props: P): {
|
|
7
|
-
state: {
|
|
8
|
-
phase: null;
|
|
9
|
-
};
|
|
10
|
-
onContentScroll: ({ scrollTop, scrollHeight, clientHeight }: Element) => void;
|
|
11
|
-
render(): import("react/jsx-runtime").JSX.Element;
|
|
12
|
-
context: unknown;
|
|
13
|
-
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<P>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
14
|
-
forceUpdate(callback?: (() => void) | undefined): void;
|
|
15
|
-
readonly props: Readonly<P>;
|
|
16
|
-
refs: {
|
|
17
|
-
[key: string]: import("react").ReactInstance;
|
|
18
|
-
};
|
|
19
|
-
componentDidMount?(): void;
|
|
20
|
-
shouldComponentUpdate?(nextProps: Readonly<P>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
21
|
-
componentWillUnmount?(): void;
|
|
22
|
-
componentDidCatch?(error: Error, errorInfo: import("react").ErrorInfo): void;
|
|
23
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<P>, prevState: Readonly<{}>): any;
|
|
24
|
-
componentDidUpdate?(prevProps: Readonly<P>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
25
|
-
componentWillMount?(): void;
|
|
26
|
-
UNSAFE_componentWillMount?(): void;
|
|
27
|
-
componentWillReceiveProps?(nextProps: Readonly<P>, nextContext: any): void;
|
|
28
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<P>, nextContext: any): void;
|
|
29
|
-
componentWillUpdate?(nextProps: Readonly<P>, nextState: Readonly<{}>, nextContext: any): void;
|
|
30
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<P>, nextState: Readonly<{}>, nextContext: any): void;
|
|
31
|
-
};
|
|
32
|
-
new (props: P, context: any): {
|
|
33
|
-
state: {
|
|
34
|
-
phase: null;
|
|
35
|
-
};
|
|
36
|
-
onContentScroll: ({ scrollTop, scrollHeight, clientHeight }: Element) => void;
|
|
37
|
-
render(): import("react/jsx-runtime").JSX.Element;
|
|
38
|
-
context: unknown;
|
|
39
|
-
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<P>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
40
|
-
forceUpdate(callback?: (() => void) | undefined): void;
|
|
41
|
-
readonly props: Readonly<P>;
|
|
42
|
-
refs: {
|
|
43
|
-
[key: string]: import("react").ReactInstance;
|
|
44
|
-
};
|
|
45
|
-
componentDidMount?(): void;
|
|
46
|
-
shouldComponentUpdate?(nextProps: Readonly<P>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
47
|
-
componentWillUnmount?(): void;
|
|
48
|
-
componentDidCatch?(error: Error, errorInfo: import("react").ErrorInfo): void;
|
|
49
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<P>, prevState: Readonly<{}>): any;
|
|
50
|
-
componentDidUpdate?(prevProps: Readonly<P>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
51
|
-
componentWillMount?(): void;
|
|
52
|
-
UNSAFE_componentWillMount?(): void;
|
|
53
|
-
componentWillReceiveProps?(nextProps: Readonly<P>, nextContext: any): void;
|
|
54
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<P>, nextContext: any): void;
|
|
55
|
-
componentWillUpdate?(nextProps: Readonly<P>, nextState: Readonly<{}>, nextContext: any): void;
|
|
56
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<P>, nextState: Readonly<{}>, nextContext: any): void;
|
|
57
|
-
};
|
|
58
|
-
contextType?: import("react").Context<any> | undefined;
|
|
59
|
-
};
|
|
5
|
+
export default function adaptiveIslandHOC<P>(ComposedComponent: ComponentType<P>): ComponentClass<P>;
|
|
60
6
|
export {};
|
|
@@ -10,60 +10,6 @@ export interface IslandProps extends HTMLAttributes<HTMLElement> {
|
|
|
10
10
|
export default class Island extends Component<IslandProps> {
|
|
11
11
|
render(): import("react/jsx-runtime").JSX.Element;
|
|
12
12
|
}
|
|
13
|
-
export declare const AdaptiveIsland:
|
|
14
|
-
new (props: IslandProps): {
|
|
15
|
-
state: {
|
|
16
|
-
phase: null;
|
|
17
|
-
};
|
|
18
|
-
onContentScroll: ({ scrollTop, scrollHeight, clientHeight }: Element) => void;
|
|
19
|
-
render(): import("react/jsx-runtime").JSX.Element;
|
|
20
|
-
context: unknown;
|
|
21
|
-
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<IslandProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
22
|
-
forceUpdate(callback?: (() => void) | undefined): void;
|
|
23
|
-
readonly props: Readonly<IslandProps>;
|
|
24
|
-
refs: {
|
|
25
|
-
[key: string]: import("react").ReactInstance;
|
|
26
|
-
};
|
|
27
|
-
componentDidMount?(): void;
|
|
28
|
-
shouldComponentUpdate?(nextProps: Readonly<IslandProps>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
29
|
-
componentWillUnmount?(): void;
|
|
30
|
-
componentDidCatch?(error: Error, errorInfo: import("react").ErrorInfo): void;
|
|
31
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<IslandProps>, prevState: Readonly<{}>): any;
|
|
32
|
-
componentDidUpdate?(prevProps: Readonly<IslandProps>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
33
|
-
componentWillMount?(): void;
|
|
34
|
-
UNSAFE_componentWillMount?(): void;
|
|
35
|
-
componentWillReceiveProps?(nextProps: Readonly<IslandProps>, nextContext: any): void;
|
|
36
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<IslandProps>, nextContext: any): void;
|
|
37
|
-
componentWillUpdate?(nextProps: Readonly<IslandProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
38
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<IslandProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
39
|
-
};
|
|
40
|
-
new (props: IslandProps, context: any): {
|
|
41
|
-
state: {
|
|
42
|
-
phase: null;
|
|
43
|
-
};
|
|
44
|
-
onContentScroll: ({ scrollTop, scrollHeight, clientHeight }: Element) => void;
|
|
45
|
-
render(): import("react/jsx-runtime").JSX.Element;
|
|
46
|
-
context: unknown;
|
|
47
|
-
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<IslandProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
48
|
-
forceUpdate(callback?: (() => void) | undefined): void;
|
|
49
|
-
readonly props: Readonly<IslandProps>;
|
|
50
|
-
refs: {
|
|
51
|
-
[key: string]: import("react").ReactInstance;
|
|
52
|
-
};
|
|
53
|
-
componentDidMount?(): void;
|
|
54
|
-
shouldComponentUpdate?(nextProps: Readonly<IslandProps>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
55
|
-
componentWillUnmount?(): void;
|
|
56
|
-
componentDidCatch?(error: Error, errorInfo: import("react").ErrorInfo): void;
|
|
57
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<IslandProps>, prevState: Readonly<{}>): any;
|
|
58
|
-
componentDidUpdate?(prevProps: Readonly<IslandProps>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
59
|
-
componentWillMount?(): void;
|
|
60
|
-
UNSAFE_componentWillMount?(): void;
|
|
61
|
-
componentWillReceiveProps?(nextProps: Readonly<IslandProps>, nextContext: any): void;
|
|
62
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<IslandProps>, nextContext: any): void;
|
|
63
|
-
componentWillUpdate?(nextProps: Readonly<IslandProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
64
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<IslandProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
65
|
-
};
|
|
66
|
-
contextType?: import("react").Context<any> | undefined;
|
|
67
|
-
};
|
|
13
|
+
export declare const AdaptiveIsland: import("react").ComponentClass<IslandProps, any>;
|
|
68
14
|
export { default as Header } from './header';
|
|
69
15
|
export { default as Content } from './content';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReactNode, ComponentType } from 'react';
|
|
1
|
+
import { ReactNode, ComponentType, ComponentClass } from 'react';
|
|
2
2
|
import { ClickableLinkProps } from './clickableLink';
|
|
3
3
|
/**
|
|
4
4
|
* @name Link
|
|
@@ -12,102 +12,6 @@ export interface LinkBaseProps {
|
|
|
12
12
|
children: ReactNode;
|
|
13
13
|
}
|
|
14
14
|
export type LinkProps<P extends ClickableLinkProps = ClickableLinkProps> = Omit<P, keyof LinkBaseProps> & LinkBaseProps;
|
|
15
|
-
export declare function linkHOC<P extends ClickableLinkProps>(ComposedComponent: ComponentType<P> | string):
|
|
16
|
-
|
|
17
|
-
render(): import("react/jsx-runtime").JSX.Element;
|
|
18
|
-
context: unknown;
|
|
19
|
-
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<LinkProps<P>>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
20
|
-
forceUpdate(callback?: (() => void) | undefined): void;
|
|
21
|
-
readonly props: Readonly<LinkProps<P>>;
|
|
22
|
-
state: Readonly<{}>;
|
|
23
|
-
refs: {
|
|
24
|
-
[key: string]: import("react").ReactInstance;
|
|
25
|
-
};
|
|
26
|
-
componentDidMount?(): void;
|
|
27
|
-
shouldComponentUpdate?(nextProps: Readonly<LinkProps<P>>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
28
|
-
componentWillUnmount?(): void;
|
|
29
|
-
componentDidCatch?(error: Error, errorInfo: import("react").ErrorInfo): void;
|
|
30
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<LinkProps<P>>, prevState: Readonly<{}>): any;
|
|
31
|
-
componentDidUpdate?(prevProps: Readonly<LinkProps<P>>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
32
|
-
componentWillMount?(): void;
|
|
33
|
-
UNSAFE_componentWillMount?(): void;
|
|
34
|
-
componentWillReceiveProps?(nextProps: Readonly<LinkProps<P>>, nextContext: any): void;
|
|
35
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<LinkProps<P>>, nextContext: any): void;
|
|
36
|
-
componentWillUpdate?(nextProps: Readonly<LinkProps<P>>, nextState: Readonly<{}>, nextContext: any): void;
|
|
37
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<LinkProps<P>>, nextState: Readonly<{}>, nextContext: any): void;
|
|
38
|
-
};
|
|
39
|
-
new (props: LinkProps<P>, context: any): {
|
|
40
|
-
render(): import("react/jsx-runtime").JSX.Element;
|
|
41
|
-
context: unknown;
|
|
42
|
-
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<LinkProps<P>>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
43
|
-
forceUpdate(callback?: (() => void) | undefined): void;
|
|
44
|
-
readonly props: Readonly<LinkProps<P>>;
|
|
45
|
-
state: Readonly<{}>;
|
|
46
|
-
refs: {
|
|
47
|
-
[key: string]: import("react").ReactInstance;
|
|
48
|
-
};
|
|
49
|
-
componentDidMount?(): void;
|
|
50
|
-
shouldComponentUpdate?(nextProps: Readonly<LinkProps<P>>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
51
|
-
componentWillUnmount?(): void;
|
|
52
|
-
componentDidCatch?(error: Error, errorInfo: import("react").ErrorInfo): void;
|
|
53
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<LinkProps<P>>, prevState: Readonly<{}>): any;
|
|
54
|
-
componentDidUpdate?(prevProps: Readonly<LinkProps<P>>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
55
|
-
componentWillMount?(): void;
|
|
56
|
-
UNSAFE_componentWillMount?(): void;
|
|
57
|
-
componentWillReceiveProps?(nextProps: Readonly<LinkProps<P>>, nextContext: any): void;
|
|
58
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<LinkProps<P>>, nextContext: any): void;
|
|
59
|
-
componentWillUpdate?(nextProps: Readonly<LinkProps<P>>, nextState: Readonly<{}>, nextContext: any): void;
|
|
60
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<LinkProps<P>>, nextState: Readonly<{}>, nextContext: any): void;
|
|
61
|
-
};
|
|
62
|
-
contextType?: import("react").Context<any> | undefined;
|
|
63
|
-
};
|
|
64
|
-
declare const _default: {
|
|
65
|
-
new (props: LinkProps<ClickableLinkProps>): {
|
|
66
|
-
render(): import("react/jsx-runtime").JSX.Element;
|
|
67
|
-
context: unknown;
|
|
68
|
-
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<LinkProps<ClickableLinkProps>>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
69
|
-
forceUpdate(callback?: (() => void) | undefined): void;
|
|
70
|
-
readonly props: Readonly<LinkProps<ClickableLinkProps>>;
|
|
71
|
-
state: Readonly<{}>;
|
|
72
|
-
refs: {
|
|
73
|
-
[key: string]: import("react").ReactInstance;
|
|
74
|
-
};
|
|
75
|
-
componentDidMount?(): void;
|
|
76
|
-
shouldComponentUpdate?(nextProps: Readonly<LinkProps<ClickableLinkProps>>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
77
|
-
componentWillUnmount?(): void;
|
|
78
|
-
componentDidCatch?(error: Error, errorInfo: import("react").ErrorInfo): void;
|
|
79
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<LinkProps<ClickableLinkProps>>, prevState: Readonly<{}>): any;
|
|
80
|
-
componentDidUpdate?(prevProps: Readonly<LinkProps<ClickableLinkProps>>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
81
|
-
componentWillMount?(): void;
|
|
82
|
-
UNSAFE_componentWillMount?(): void;
|
|
83
|
-
componentWillReceiveProps?(nextProps: Readonly<LinkProps<ClickableLinkProps>>, nextContext: any): void;
|
|
84
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<LinkProps<ClickableLinkProps>>, nextContext: any): void;
|
|
85
|
-
componentWillUpdate?(nextProps: Readonly<LinkProps<ClickableLinkProps>>, nextState: Readonly<{}>, nextContext: any): void;
|
|
86
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<LinkProps<ClickableLinkProps>>, nextState: Readonly<{}>, nextContext: any): void;
|
|
87
|
-
};
|
|
88
|
-
new (props: LinkProps<ClickableLinkProps>, context: any): {
|
|
89
|
-
render(): import("react/jsx-runtime").JSX.Element;
|
|
90
|
-
context: unknown;
|
|
91
|
-
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<LinkProps<ClickableLinkProps>>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
92
|
-
forceUpdate(callback?: (() => void) | undefined): void;
|
|
93
|
-
readonly props: Readonly<LinkProps<ClickableLinkProps>>;
|
|
94
|
-
state: Readonly<{}>;
|
|
95
|
-
refs: {
|
|
96
|
-
[key: string]: import("react").ReactInstance;
|
|
97
|
-
};
|
|
98
|
-
componentDidMount?(): void;
|
|
99
|
-
shouldComponentUpdate?(nextProps: Readonly<LinkProps<ClickableLinkProps>>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
100
|
-
componentWillUnmount?(): void;
|
|
101
|
-
componentDidCatch?(error: Error, errorInfo: import("react").ErrorInfo): void;
|
|
102
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<LinkProps<ClickableLinkProps>>, prevState: Readonly<{}>): any;
|
|
103
|
-
componentDidUpdate?(prevProps: Readonly<LinkProps<ClickableLinkProps>>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
104
|
-
componentWillMount?(): void;
|
|
105
|
-
UNSAFE_componentWillMount?(): void;
|
|
106
|
-
componentWillReceiveProps?(nextProps: Readonly<LinkProps<ClickableLinkProps>>, nextContext: any): void;
|
|
107
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<LinkProps<ClickableLinkProps>>, nextContext: any): void;
|
|
108
|
-
componentWillUpdate?(nextProps: Readonly<LinkProps<ClickableLinkProps>>, nextState: Readonly<{}>, nextContext: any): void;
|
|
109
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<LinkProps<ClickableLinkProps>>, nextState: Readonly<{}>, nextContext: any): void;
|
|
110
|
-
};
|
|
111
|
-
contextType?: import("react").Context<any> | undefined;
|
|
112
|
-
};
|
|
15
|
+
export declare function linkHOC<P extends ClickableLinkProps>(ComposedComponent: ComponentType<P> | string): ComponentClass<LinkProps<P>>;
|
|
16
|
+
declare const _default: ComponentClass<LinkProps<ClickableLinkProps>, any>;
|
|
113
17
|
export default _default;
|
|
@@ -55,7 +55,7 @@ export type ListDataItem<T = unknown> = T & Partial<Omit<LinkProps, 'onClick' |
|
|
|
55
55
|
label?: ReactNode;
|
|
56
56
|
rightNodes?: ReactNode;
|
|
57
57
|
leftNodes?: ReactNode;
|
|
58
|
-
tagName?: keyof JSX.IntrinsicElements | null | undefined;
|
|
58
|
+
tagName?: keyof React.JSX.IntrinsicElements | null | undefined;
|
|
59
59
|
selectedLabel?: string | null | undefined;
|
|
60
60
|
originalModel?: never;
|
|
61
61
|
LinkComponent?: ComponentType<ClickableLinkProps> | string | null | undefined;
|
|
@@ -280,5 +280,5 @@ export default class Select<T = unknown> extends Component<SelectProps<T>, Selec
|
|
|
280
280
|
export type SingleSelectAttrs<T = unknown> = React.JSX.LibraryManagedAttributes<typeof Select, SingleSelectProps<T>>;
|
|
281
281
|
export type MultipleSelectAttrs<T = unknown> = React.JSX.LibraryManagedAttributes<typeof Select, MultipleSelectProps<T>>;
|
|
282
282
|
export type SelectAttrs<T = unknown> = React.JSX.LibraryManagedAttributes<typeof Select, SelectProps<T>>;
|
|
283
|
-
export declare const RerenderableSelect: React.ForwardRefExoticComponent<
|
|
283
|
+
export declare const RerenderableSelect: React.ForwardRefExoticComponent<Omit<any, "ref"> & React.RefAttributes<any>>;
|
|
284
284
|
export {};
|
|
@@ -845,4 +845,5 @@ export default class Select extends Component {
|
|
|
845
845
|
return (_jsx(ActiveItemContext.Provider, { children: _jsx(ActiveItemContext.ValueContext.Consumer, { children: activeItemId => this.renderSelect(activeItemId) }) }));
|
|
846
846
|
}
|
|
847
847
|
}
|
|
848
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
848
849
|
export const RerenderableSelect = rerenderHOC(Select);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ComponentType } from 'react';
|
|
1
|
+
import { ComponentClass, ComponentType } from 'react';
|
|
2
2
|
import { ShortcutsMap, ShortcutsScopeOptions } from './core';
|
|
3
3
|
export interface ShortcutsHOCOptions extends ShortcutsScopeOptions {
|
|
4
4
|
disabled?: boolean | null | undefined;
|
|
@@ -7,54 +7,4 @@ export interface ShortcutsHOCProps {
|
|
|
7
7
|
rgShortcutsOptions: ShortcutsHOCOptions;
|
|
8
8
|
rgShortcutsMap: ShortcutsMap;
|
|
9
9
|
}
|
|
10
|
-
export default function shortcutsHOC<P extends {}>(ComposedComponent: ComponentType<P> | string):
|
|
11
|
-
new (props: P & ShortcutsHOCProps): {
|
|
12
|
-
_shortcutsScopeUid: string;
|
|
13
|
-
render(): import("react/jsx-runtime").JSX.Element;
|
|
14
|
-
context: unknown;
|
|
15
|
-
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<P & ShortcutsHOCProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
16
|
-
forceUpdate(callback?: (() => void) | undefined): void;
|
|
17
|
-
readonly props: Readonly<P & ShortcutsHOCProps>;
|
|
18
|
-
state: Readonly<{}>;
|
|
19
|
-
refs: {
|
|
20
|
-
[key: string]: import("react").ReactInstance;
|
|
21
|
-
};
|
|
22
|
-
componentDidMount?(): void;
|
|
23
|
-
shouldComponentUpdate?(nextProps: Readonly<P & ShortcutsHOCProps>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
24
|
-
componentWillUnmount?(): void;
|
|
25
|
-
componentDidCatch?(error: Error, errorInfo: import("react").ErrorInfo): void;
|
|
26
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<P & ShortcutsHOCProps>, prevState: Readonly<{}>): any;
|
|
27
|
-
componentDidUpdate?(prevProps: Readonly<P & ShortcutsHOCProps>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
28
|
-
componentWillMount?(): void;
|
|
29
|
-
UNSAFE_componentWillMount?(): void;
|
|
30
|
-
componentWillReceiveProps?(nextProps: Readonly<P & ShortcutsHOCProps>, nextContext: any): void;
|
|
31
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<P & ShortcutsHOCProps>, nextContext: any): void;
|
|
32
|
-
componentWillUpdate?(nextProps: Readonly<P & ShortcutsHOCProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
33
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<P & ShortcutsHOCProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
34
|
-
};
|
|
35
|
-
new (props: P & ShortcutsHOCProps, context: any): {
|
|
36
|
-
_shortcutsScopeUid: string;
|
|
37
|
-
render(): import("react/jsx-runtime").JSX.Element;
|
|
38
|
-
context: unknown;
|
|
39
|
-
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<P & ShortcutsHOCProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
40
|
-
forceUpdate(callback?: (() => void) | undefined): void;
|
|
41
|
-
readonly props: Readonly<P & ShortcutsHOCProps>;
|
|
42
|
-
state: Readonly<{}>;
|
|
43
|
-
refs: {
|
|
44
|
-
[key: string]: import("react").ReactInstance;
|
|
45
|
-
};
|
|
46
|
-
componentDidMount?(): void;
|
|
47
|
-
shouldComponentUpdate?(nextProps: Readonly<P & ShortcutsHOCProps>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
48
|
-
componentWillUnmount?(): void;
|
|
49
|
-
componentDidCatch?(error: Error, errorInfo: import("react").ErrorInfo): void;
|
|
50
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<P & ShortcutsHOCProps>, prevState: Readonly<{}>): any;
|
|
51
|
-
componentDidUpdate?(prevProps: Readonly<P & ShortcutsHOCProps>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
52
|
-
componentWillMount?(): void;
|
|
53
|
-
UNSAFE_componentWillMount?(): void;
|
|
54
|
-
componentWillReceiveProps?(nextProps: Readonly<P & ShortcutsHOCProps>, nextContext: any): void;
|
|
55
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<P & ShortcutsHOCProps>, nextContext: any): void;
|
|
56
|
-
componentWillUpdate?(nextProps: Readonly<P & ShortcutsHOCProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
57
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<P & ShortcutsHOCProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
58
|
-
};
|
|
59
|
-
contextType?: import("react").Context<any> | undefined;
|
|
60
|
-
};
|
|
10
|
+
export default function shortcutsHOC<P extends {}>(ComposedComponent: ComponentType<P> | string): ComponentClass<P & ShortcutsHOCProps>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { PureComponent } from 'react';
|
|
1
|
+
import { PureComponent, type ReactNode } from 'react';
|
|
2
2
|
import { ShortcutsMap, ShortcutsScopeOptions } from './core';
|
|
3
3
|
export interface ShortcutsProps {
|
|
4
4
|
map: ShortcutsMap;
|
|
5
5
|
scope: string;
|
|
6
6
|
options: ShortcutsScopeOptions;
|
|
7
|
-
children?:
|
|
7
|
+
children?: ReactNode;
|
|
8
8
|
disabled?: boolean | null | undefined;
|
|
9
9
|
}
|
|
10
10
|
export default class Shortcuts extends PureComponent<ShortcutsProps> {
|
|
@@ -16,5 +16,5 @@ export default class Shortcuts extends PureComponent<ShortcutsProps> {
|
|
|
16
16
|
componentWillUnmount(): void;
|
|
17
17
|
turnShorcutsOn(): void;
|
|
18
18
|
turnShorcutsOff(): void;
|
|
19
|
-
render():
|
|
19
|
+
render(): ReactNode;
|
|
20
20
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { RefObject } from 'react';
|
|
2
2
|
export declare const HUNDRED = 100;
|
|
3
3
|
export declare function toPercent(value: number, min: number, max: number): number;
|
|
4
|
-
export declare function calculateValue(ref: RefObject<HTMLDivElement>, x: number, min: number, max: number, step: number): number | null;
|
|
4
|
+
export declare function calculateValue(ref: RefObject<HTMLDivElement | null>, x: number, min: number, max: number, step: number): number | null;
|
|
5
5
|
export declare function validateValue(value: number, min: number, max: number): number;
|
|
6
6
|
export declare function toRange(value: number | number[], min: number, max: number): number[];
|
|
7
|
-
export declare function adjustValues(values: number[], ref: RefObject<HTMLDivElement>, index: number, x: number, max: number, min: number, step: number): number[];
|
|
7
|
+
export declare function adjustValues(values: number[], ref: RefObject<HTMLDivElement | null>, index: number, x: number, max: number, min: number, step: number): number[];
|
|
8
8
|
export declare function calculateMarks(min: number, max: number, step: number): {
|
|
9
9
|
value: number;
|
|
10
10
|
}[];
|
|
@@ -1,63 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ComponentClass } from 'react';
|
|
2
2
|
export interface DisableHoverAddProps {
|
|
3
3
|
disabledHover: boolean;
|
|
4
4
|
}
|
|
5
5
|
export type DisableHoverProps<P extends DisableHoverAddProps> = Omit<P, keyof DisableHoverAddProps>;
|
|
6
|
-
export default function disableHoverHOC<P extends DisableHoverAddProps>(ComposedComponent:
|
|
7
|
-
new (props: DisableHoverProps<P>): {
|
|
8
|
-
state: {
|
|
9
|
-
disabledHover: boolean;
|
|
10
|
-
};
|
|
11
|
-
componentDidMount(): void;
|
|
12
|
-
componentWillUnmount(): void;
|
|
13
|
-
onMouseMove: () => void;
|
|
14
|
-
onKeyDown: (e: KeyboardEvent) => void;
|
|
15
|
-
render(): import("react/jsx-runtime").JSX.Element;
|
|
16
|
-
context: unknown;
|
|
17
|
-
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<DisableHoverProps<P>>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
18
|
-
forceUpdate(callback?: (() => void) | undefined): void;
|
|
19
|
-
readonly props: Readonly<DisableHoverProps<P>>;
|
|
20
|
-
refs: {
|
|
21
|
-
[key: string]: import("react").ReactInstance;
|
|
22
|
-
};
|
|
23
|
-
shouldComponentUpdate?(nextProps: Readonly<DisableHoverProps<P>>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
24
|
-
componentDidCatch?(error: Error, errorInfo: import("react").ErrorInfo): void;
|
|
25
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<DisableHoverProps<P>>, prevState: Readonly<{}>): any;
|
|
26
|
-
componentDidUpdate?(prevProps: Readonly<DisableHoverProps<P>>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
27
|
-
componentWillMount?(): void;
|
|
28
|
-
UNSAFE_componentWillMount?(): void;
|
|
29
|
-
componentWillReceiveProps?(nextProps: Readonly<DisableHoverProps<P>>, nextContext: any): void;
|
|
30
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<DisableHoverProps<P>>, nextContext: any): void;
|
|
31
|
-
componentWillUpdate?(nextProps: Readonly<DisableHoverProps<P>>, nextState: Readonly<{}>, nextContext: any): void;
|
|
32
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<DisableHoverProps<P>>, nextState: Readonly<{}>, nextContext: any): void;
|
|
33
|
-
};
|
|
34
|
-
new (props: DisableHoverProps<P>, context: any): {
|
|
35
|
-
state: {
|
|
36
|
-
disabledHover: boolean;
|
|
37
|
-
};
|
|
38
|
-
componentDidMount(): void;
|
|
39
|
-
componentWillUnmount(): void;
|
|
40
|
-
onMouseMove: () => void;
|
|
41
|
-
onKeyDown: (e: KeyboardEvent) => void;
|
|
42
|
-
render(): import("react/jsx-runtime").JSX.Element;
|
|
43
|
-
context: unknown;
|
|
44
|
-
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<DisableHoverProps<P>>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
45
|
-
forceUpdate(callback?: (() => void) | undefined): void;
|
|
46
|
-
readonly props: Readonly<DisableHoverProps<P>>;
|
|
47
|
-
refs: {
|
|
48
|
-
[key: string]: import("react").ReactInstance;
|
|
49
|
-
};
|
|
50
|
-
shouldComponentUpdate?(nextProps: Readonly<DisableHoverProps<P>>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
51
|
-
componentDidCatch?(error: Error, errorInfo: import("react").ErrorInfo): void;
|
|
52
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<DisableHoverProps<P>>, prevState: Readonly<{}>): any;
|
|
53
|
-
componentDidUpdate?(prevProps: Readonly<DisableHoverProps<P>>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
54
|
-
componentWillMount?(): void;
|
|
55
|
-
UNSAFE_componentWillMount?(): void;
|
|
56
|
-
componentWillReceiveProps?(nextProps: Readonly<DisableHoverProps<P>>, nextContext: any): void;
|
|
57
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<DisableHoverProps<P>>, nextContext: any): void;
|
|
58
|
-
componentWillUpdate?(nextProps: Readonly<DisableHoverProps<P>>, nextState: Readonly<{}>, nextContext: any): void;
|
|
59
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<DisableHoverProps<P>>, nextState: Readonly<{}>, nextContext: any): void;
|
|
60
|
-
};
|
|
61
|
-
defaultProps: Partial<P> | undefined;
|
|
62
|
-
contextType?: import("react").Context<any> | undefined;
|
|
63
|
-
};
|
|
6
|
+
export default function disableHoverHOC<P extends DisableHoverAddProps>(ComposedComponent: ComponentClass<P>): ComponentClass<DisableHoverProps<P>>;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { PureComponent, ReactElement } from 'react';
|
|
2
2
|
import { TableAttrs } from './table';
|
|
3
3
|
import { SelectionItem } from './selection';
|
|
4
|
+
type TableComponent = ReactElement<TableAttrs<SelectionItem>>;
|
|
4
5
|
export interface MultiTableProps {
|
|
5
|
-
children:
|
|
6
|
+
children: TableComponent[];
|
|
6
7
|
}
|
|
7
8
|
export default class MultiTable extends PureComponent<MultiTableProps> {
|
|
8
9
|
componentDidUpdate(prevProps: MultiTableProps): void;
|
|
@@ -19,3 +20,4 @@ export default class MultiTable extends PureComponent<MultiTableProps> {
|
|
|
19
20
|
};
|
|
20
21
|
render(): import("react/jsx-runtime").JSX.Element;
|
|
21
22
|
}
|
|
23
|
+
export {};
|
|
@@ -52,13 +52,13 @@ export default class MultiTable extends PureComponent {
|
|
|
52
52
|
onEscPress = () => {
|
|
53
53
|
const { children } = this.props;
|
|
54
54
|
Children.forEach(children, ({ props: { selection, onSelect } }) => {
|
|
55
|
-
onSelect(selection.reset());
|
|
55
|
+
onSelect?.(selection.reset());
|
|
56
56
|
});
|
|
57
57
|
};
|
|
58
58
|
onCmdAPress = () => {
|
|
59
59
|
const { children } = this.props;
|
|
60
60
|
Children.forEach(children, ({ props: { selection, onSelect } }) => {
|
|
61
|
-
onSelect(selection.selectAll());
|
|
61
|
+
onSelect?.(selection.selectAll());
|
|
62
62
|
});
|
|
63
63
|
return false;
|
|
64
64
|
};
|
|
@@ -9,7 +9,7 @@ export interface RowWithFocusSensorCallbacksProps<T extends SelectionItem> exten
|
|
|
9
9
|
onExpand?: (item: T) => void;
|
|
10
10
|
}
|
|
11
11
|
export default class RowWithFocusSensorCallbacks<T extends SelectionItem> extends PureComponent<RowWithFocusSensorCallbacksProps<T>> {
|
|
12
|
-
RowWithFocusSensor: import("react").
|
|
12
|
+
RowWithFocusSensor: import("react").ComponentClass<FocusSensorProps<RowProps<T>, HTMLDivElement, typeof Row>, any>;
|
|
13
13
|
onFocus: () => void;
|
|
14
14
|
onSelect: (item: T, selected: boolean) => void;
|
|
15
15
|
onCollapse: () => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ComponentClass } from 'react';
|
|
2
2
|
import { ShortcutsMap } from '../shortcuts/core';
|
|
3
3
|
import Selection, { SelectionItem } from './selection';
|
|
4
4
|
export interface SelectionShortcutsOuterProps<T extends SelectionItem> {
|
|
@@ -14,4 +14,4 @@ export interface SelectionShortcutsAddProps<T extends SelectionItem> {
|
|
|
14
14
|
shortcutsMap: ShortcutsMap;
|
|
15
15
|
}
|
|
16
16
|
export type SelectionShortcutsProps<T extends SelectionItem, P> = Omit<P, keyof SelectionShortcutsAddProps<T>> & SelectionShortcutsOuterProps<T>;
|
|
17
|
-
export default function selectionShortcutsHOC<T extends SelectionItem, P extends SelectionShortcutsAddProps<T>>(ComposedComponent:
|
|
17
|
+
export default function selectionShortcutsHOC<T extends SelectionItem, P extends SelectionShortcutsAddProps<T>>(ComposedComponent: ComponentClass<P>): ComponentClass<SelectionShortcutsProps<T, P>>;
|
|
@@ -102,63 +102,6 @@ export declare class Table<T extends SelectionItem> extends PureComponent<TableP
|
|
|
102
102
|
}
|
|
103
103
|
export type TableAttrs<T extends SelectionItem> = DisableHoverProps<SelectionShortcutsProps<T, FocusSensorProps<TableProps<T>, HTMLTableRowElement, typeof Table>>>;
|
|
104
104
|
export default class TableContainer<T extends SelectionItem> extends Component<TableAttrs<T>> {
|
|
105
|
-
Table:
|
|
106
|
-
new (props: DisableHoverProps<SelectionShortcutsProps<T, FocusSensorProps<TableProps<T>, HTMLTableRowElement, typeof Table>>>): {
|
|
107
|
-
state: {
|
|
108
|
-
disabledHover: boolean;
|
|
109
|
-
};
|
|
110
|
-
componentDidMount(): void;
|
|
111
|
-
componentWillUnmount(): void;
|
|
112
|
-
onMouseMove: () => void;
|
|
113
|
-
onKeyDown: (e: KeyboardEvent) => void;
|
|
114
|
-
render(): import("react/jsx-runtime").JSX.Element;
|
|
115
|
-
context: unknown;
|
|
116
|
-
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<DisableHoverProps<SelectionShortcutsProps<T, FocusSensorProps<TableProps<T>, HTMLTableRowElement, typeof Table>>>>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
117
|
-
forceUpdate(callback?: (() => void) | undefined): void;
|
|
118
|
-
readonly props: Readonly<DisableHoverProps<SelectionShortcutsProps<T, FocusSensorProps<TableProps<T>, HTMLTableRowElement, typeof Table>>>>;
|
|
119
|
-
refs: {
|
|
120
|
-
[key: string]: React.ReactInstance;
|
|
121
|
-
};
|
|
122
|
-
shouldComponentUpdate?(nextProps: Readonly<DisableHoverProps<SelectionShortcutsProps<T, FocusSensorProps<TableProps<T>, HTMLTableRowElement, typeof Table>>>>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
123
|
-
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
124
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<DisableHoverProps<SelectionShortcutsProps<T, FocusSensorProps<TableProps<T>, HTMLTableRowElement, typeof Table>>>>, prevState: Readonly<{}>): any;
|
|
125
|
-
componentDidUpdate?(prevProps: Readonly<DisableHoverProps<SelectionShortcutsProps<T, FocusSensorProps<TableProps<T>, HTMLTableRowElement, typeof Table>>>>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
126
|
-
componentWillMount?(): void;
|
|
127
|
-
UNSAFE_componentWillMount?(): void;
|
|
128
|
-
componentWillReceiveProps?(nextProps: Readonly<DisableHoverProps<SelectionShortcutsProps<T, FocusSensorProps<TableProps<T>, HTMLTableRowElement, typeof Table>>>>, nextContext: any): void;
|
|
129
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<DisableHoverProps<SelectionShortcutsProps<T, FocusSensorProps<TableProps<T>, HTMLTableRowElement, typeof Table>>>>, nextContext: any): void;
|
|
130
|
-
componentWillUpdate?(nextProps: Readonly<DisableHoverProps<SelectionShortcutsProps<T, FocusSensorProps<TableProps<T>, HTMLTableRowElement, typeof Table>>>>, nextState: Readonly<{}>, nextContext: any): void;
|
|
131
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<DisableHoverProps<SelectionShortcutsProps<T, FocusSensorProps<TableProps<T>, HTMLTableRowElement, typeof Table>>>>, nextState: Readonly<{}>, nextContext: any): void;
|
|
132
|
-
};
|
|
133
|
-
new (props: DisableHoverProps<SelectionShortcutsProps<T, FocusSensorProps<TableProps<T>, HTMLTableRowElement, typeof Table>>>, context: any): {
|
|
134
|
-
state: {
|
|
135
|
-
disabledHover: boolean;
|
|
136
|
-
};
|
|
137
|
-
componentDidMount(): void;
|
|
138
|
-
componentWillUnmount(): void;
|
|
139
|
-
onMouseMove: () => void;
|
|
140
|
-
onKeyDown: (e: KeyboardEvent) => void;
|
|
141
|
-
render(): import("react/jsx-runtime").JSX.Element;
|
|
142
|
-
context: unknown;
|
|
143
|
-
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<DisableHoverProps<SelectionShortcutsProps<T, FocusSensorProps<TableProps<T>, HTMLTableRowElement, typeof Table>>>>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
144
|
-
forceUpdate(callback?: (() => void) | undefined): void;
|
|
145
|
-
readonly props: Readonly<DisableHoverProps<SelectionShortcutsProps<T, FocusSensorProps<TableProps<T>, HTMLTableRowElement, typeof Table>>>>;
|
|
146
|
-
refs: {
|
|
147
|
-
[key: string]: React.ReactInstance;
|
|
148
|
-
};
|
|
149
|
-
shouldComponentUpdate?(nextProps: Readonly<DisableHoverProps<SelectionShortcutsProps<T, FocusSensorProps<TableProps<T>, HTMLTableRowElement, typeof Table>>>>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
150
|
-
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
151
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<DisableHoverProps<SelectionShortcutsProps<T, FocusSensorProps<TableProps<T>, HTMLTableRowElement, typeof Table>>>>, prevState: Readonly<{}>): any;
|
|
152
|
-
componentDidUpdate?(prevProps: Readonly<DisableHoverProps<SelectionShortcutsProps<T, FocusSensorProps<TableProps<T>, HTMLTableRowElement, typeof Table>>>>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
153
|
-
componentWillMount?(): void;
|
|
154
|
-
UNSAFE_componentWillMount?(): void;
|
|
155
|
-
componentWillReceiveProps?(nextProps: Readonly<DisableHoverProps<SelectionShortcutsProps<T, FocusSensorProps<TableProps<T>, HTMLTableRowElement, typeof Table>>>>, nextContext: any): void;
|
|
156
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<DisableHoverProps<SelectionShortcutsProps<T, FocusSensorProps<TableProps<T>, HTMLTableRowElement, typeof Table>>>>, nextContext: any): void;
|
|
157
|
-
componentWillUpdate?(nextProps: Readonly<DisableHoverProps<SelectionShortcutsProps<T, FocusSensorProps<TableProps<T>, HTMLTableRowElement, typeof Table>>>>, nextState: Readonly<{}>, nextContext: any): void;
|
|
158
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<DisableHoverProps<SelectionShortcutsProps<T, FocusSensorProps<TableProps<T>, HTMLTableRowElement, typeof Table>>>>, nextState: Readonly<{}>, nextContext: any): void;
|
|
159
|
-
};
|
|
160
|
-
defaultProps: Partial<SelectionShortcutsProps<T, FocusSensorProps<TableProps<T>, HTMLTableRowElement, typeof Table>>> | undefined;
|
|
161
|
-
contextType?: React.Context<any> | undefined;
|
|
162
|
-
};
|
|
105
|
+
Table: React.ComponentClass<DisableHoverProps<SelectionShortcutsProps<T, FocusSensorProps<TableProps<T>, HTMLTableRowElement, typeof Table>>>, any>;
|
|
163
106
|
render(): import("react/jsx-runtime").JSX.Element;
|
|
164
107
|
}
|
|
@@ -1,13 +1,9 @@
|
|
|
1
|
-
import { Component,
|
|
2
|
-
import { DropdownAttrs } from '../dropdown/dropdown';
|
|
1
|
+
import { Component, ReactNode } from 'react';
|
|
2
|
+
import { DropdownAttrs, DropdownProps } from '../dropdown/dropdown';
|
|
3
3
|
import { UserCardAttrs, UserCardUser } from './card';
|
|
4
|
-
interface ChildrenProps {
|
|
5
|
-
active: boolean;
|
|
6
|
-
pinned: boolean;
|
|
7
|
-
}
|
|
8
4
|
export interface UserCardTooltipProps extends Omit<UserCardAttrs, 'children' | 'user'> {
|
|
9
5
|
user?: UserCardUser | null | undefined;
|
|
10
|
-
children:
|
|
6
|
+
children: DropdownProps['anchor'];
|
|
11
7
|
dropdownProps: Partial<DropdownAttrs>;
|
|
12
8
|
renderUserCard: (props: UserCardAttrs) => ReactNode;
|
|
13
9
|
renderNoUser: () => ReactNode;
|
|
@@ -24,4 +20,3 @@ export default class UserCardTooltip extends Component<UserCardTooltipProps> {
|
|
|
24
20
|
render(): import("react/jsx-runtime").JSX.Element;
|
|
25
21
|
}
|
|
26
22
|
export type UserCardTooltipAttrs = React.JSX.LibraryManagedAttributes<typeof UserCardTooltip, UserCardTooltipProps>;
|
|
27
|
-
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jetbrains/ring-ui",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.41",
|
|
4
4
|
"description": "JetBrains UI library",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "JetBrains"
|
|
@@ -93,7 +93,7 @@
|
|
|
93
93
|
"@eslint/eslintrc": "^3.2.0",
|
|
94
94
|
"@eslint/js": "^9.20.0",
|
|
95
95
|
"@figma/code-connect": "^1.3.2",
|
|
96
|
-
"@jetbrains/eslint-config": "^6.0.
|
|
96
|
+
"@jetbrains/eslint-config": "^6.0.5",
|
|
97
97
|
"@jetbrains/logos": "3.0.0-canary.734b213.0",
|
|
98
98
|
"@jetbrains/rollup-css-plugin": "./packages/rollup-css-plugin",
|
|
99
99
|
"@jetbrains/stylelint-config": "^4.0.2",
|
|
@@ -122,8 +122,8 @@
|
|
|
122
122
|
"@types/chai-dom": "1.11.3",
|
|
123
123
|
"@types/eslint__js": "^8.42.3",
|
|
124
124
|
"@types/markdown-it": "^14.1.2",
|
|
125
|
-
"@types/react": "^
|
|
126
|
-
"@types/react-dom": "^
|
|
125
|
+
"@types/react": "^19.1.0",
|
|
126
|
+
"@types/react-dom": "^19.1.1",
|
|
127
127
|
"@types/sinon": "^17.0.4",
|
|
128
128
|
"@types/sinon-chai": "^4.0.0",
|
|
129
129
|
"@types/webpack-env": "^1.18.8",
|
|
@@ -161,18 +161,17 @@
|
|
|
161
161
|
"jest": "~29.7.0",
|
|
162
162
|
"jest-environment-jsdom": "^29.7.0",
|
|
163
163
|
"jest-teamcity": "^1.12.0",
|
|
164
|
-
"lint-staged": "^15.5.
|
|
164
|
+
"lint-staged": "^15.5.1",
|
|
165
165
|
"markdown-it": "^14.1.0",
|
|
166
166
|
"merge-options": "^3.0.4",
|
|
167
167
|
"pinst": "^3.0.0",
|
|
168
168
|
"prettier": "^3.5.3",
|
|
169
169
|
"raw-loader": "^4.0.2",
|
|
170
|
-
"react": "^
|
|
171
|
-
"react-dom": "^
|
|
172
|
-
"react-test-renderer": "^19.1.0",
|
|
170
|
+
"react": "^19.1.0",
|
|
171
|
+
"react-dom": "^19.1.0",
|
|
173
172
|
"regenerator-runtime": "^0.14.1",
|
|
174
173
|
"rimraf": "^6.0.1",
|
|
175
|
-
"rollup": "^4.
|
|
174
|
+
"rollup": "^4.40.0",
|
|
176
175
|
"rollup-plugin-clear": "^2.0.7",
|
|
177
176
|
"sinon": "^20.0.0",
|
|
178
177
|
"sinon-chai": "^4.0.0",
|
|
@@ -192,8 +191,8 @@
|
|
|
192
191
|
"xmlappend": "^1.0.4"
|
|
193
192
|
},
|
|
194
193
|
"peerDependencies": {
|
|
195
|
-
"@types/react": ">=
|
|
196
|
-
"@types/react-dom": ">=
|
|
194
|
+
"@types/react": ">=18.0.0",
|
|
195
|
+
"@types/react-dom": ">=18.0.0",
|
|
197
196
|
"core-js": ">=3.0.0",
|
|
198
197
|
"react": ">=18.0.0",
|
|
199
198
|
"react-dom": ">=18.0.0",
|