@jetbrains/ring-ui 7.0.39 → 7.0.40

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.
Files changed (37) hide show
  1. package/components/alert/container.d.ts +5 -2
  2. package/components/button/button.d.ts +1 -1
  3. package/components/button/button.js +6 -3
  4. package/components/button-group/button-group.js +4 -1
  5. package/components/code/code.d.ts +1 -1
  6. package/components/collapse/collapse-control.d.ts +2 -2
  7. package/components/collapse/collapse-control.js +1 -0
  8. package/components/data-list/data-list.d.ts +1 -30
  9. package/components/data-list/title.d.ts +1 -1
  10. package/components/date-picker/date-popup.d.ts +1 -1
  11. package/components/date-picker/years.d.ts +1 -1
  12. package/components/dialog/dialog.d.ts +1 -1
  13. package/components/dropdown/dropdown.d.ts +1 -1
  14. package/components/footer/footer.d.ts +2 -2
  15. package/components/global/focus-sensor-hoc.d.ts +3 -3
  16. package/components/global/theme.d.ts +1 -1
  17. package/components/global/use-event-callback.js +1 -1
  18. package/components/header/profile.d.ts +1 -1
  19. package/components/island/adaptive-island-hoc.d.ts +1 -29
  20. package/components/island/island.d.ts +1 -29
  21. package/components/link/link.d.ts +2 -52
  22. package/components/list/consts.d.ts +1 -1
  23. package/components/select/select.d.ts +1 -1
  24. package/components/select/select.js +1 -0
  25. package/components/select/select__filter.d.ts +0 -1
  26. package/components/select/select__filter.js +0 -3
  27. package/components/shortcuts/shortcuts-hoc.d.ts +1 -27
  28. package/components/shortcuts/shortcuts.d.ts +1 -1
  29. package/components/slider/slider.utils.d.ts +2 -2
  30. package/components/table/disable-hover-hoc.d.ts +3 -32
  31. package/components/table/multitable.d.ts +3 -1
  32. package/components/table/multitable.js +2 -2
  33. package/components/table/row-with-focus-sensor.d.ts +1 -1
  34. package/components/table/selection-shortcuts-hoc.d.ts +2 -2
  35. package/components/table/table.d.ts +1 -30
  36. package/components/user-card/tooltip.d.ts +3 -8
  37. 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, href, ...props } = this.props;
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 && typeof child === 'object' && 'props' in child && child.props.disabled),
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);
@@ -34,36 +34,6 @@ export default class DataListContainer<T extends SelectionItem> extends Componen
34
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
35
  forceUpdate(callback?: (() => void) | undefined): void;
36
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
37
  shouldComponentUpdate?(nextProps: Readonly<import("../table/disable-hover-hoc").DisableHoverProps<import("../table/selection-shortcuts-hoc").SelectionShortcutsProps<T, FocusableProps<T>>>>, nextState: Readonly<{}>, nextContext: any): boolean;
68
38
  componentDidCatch?(error: Error, errorInfo: import("react").ErrorInfo): void;
69
39
  getSnapshotBeforeUpdate?(prevProps: Readonly<import("../table/disable-hover-hoc").DisableHoverProps<import("../table/selection-shortcuts-hoc").SelectionShortcutsProps<T, FocusableProps<T>>>>, prevState: Readonly<{}>): any;
@@ -77,6 +47,7 @@ export default class DataListContainer<T extends SelectionItem> extends Componen
77
47
  };
78
48
  defaultProps: Partial<import("../table/selection-shortcuts-hoc").SelectionShortcutsProps<T, FocusableProps<T>>> | undefined;
79
49
  contextType?: import("react").Context<any> | undefined;
50
+ propTypes?: any;
80
51
  };
81
52
  render(): import("react/jsx-runtime").JSX.Element;
82
53
  }
@@ -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").ComponentType<import("../global/focus-sensor-hoc").FocusSensorProps<TitleProps, HTMLDivElement, typeof Title>>;
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, ReactChild } from 'react';
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 | ReactChild;
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 { ComponentType, Ref } from 'react';
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 ComponentType<P>> = RestProps<React.JSX.LibraryManagedAttributes<C, P>, T> & FocusSensorOuterProps<T>;
18
- export default function focusSensorHOC<T extends HTMLElement, P extends FocusSensorAddProps<T>, C extends ComponentType<P>>(ComposedComponent: C): ComponentType<FocusSensorProps<P, T, typeof ComposedComponent>>;
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<any, string | import("react").JSXElementConstructor<any>>;
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> {
@@ -1,6 +1,6 @@
1
1
  import { useCallback, useLayoutEffect, useRef } from 'react';
2
2
  export default function useEventCallback(fn) {
3
- const ref = useRef();
3
+ const ref = useRef(null);
4
4
  useLayoutEffect(() => {
5
5
  ref.current = fn;
6
6
  });
@@ -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(): string | number | boolean | import("react/jsx-runtime").JSX.Element | Iterable<ReactNode> | null | undefined;
47
+ render(): string | number | bigint | boolean | import("react/jsx-runtime").JSX.Element | Iterable<ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | null | undefined;
48
48
  }
49
49
  export type ProfileAttrs = React.JSX.LibraryManagedAttributes<typeof Profile, ProfileProps>;
@@ -13,35 +13,6 @@ export default function adaptiveIslandHOC<P>(ComposedComponent: ComponentType<P>
13
13
  setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<P>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
14
14
  forceUpdate(callback?: (() => void) | undefined): void;
15
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
16
  componentDidMount?(): void;
46
17
  shouldComponentUpdate?(nextProps: Readonly<P>, nextState: Readonly<{}>, nextContext: any): boolean;
47
18
  componentWillUnmount?(): void;
@@ -56,5 +27,6 @@ export default function adaptiveIslandHOC<P>(ComposedComponent: ComponentType<P>
56
27
  UNSAFE_componentWillUpdate?(nextProps: Readonly<P>, nextState: Readonly<{}>, nextContext: any): void;
57
28
  };
58
29
  contextType?: import("react").Context<any> | undefined;
30
+ propTypes?: any;
59
31
  };
60
32
  export {};
@@ -21,35 +21,6 @@ export declare const AdaptiveIsland: {
21
21
  setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<IslandProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
22
22
  forceUpdate(callback?: (() => void) | undefined): void;
23
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
24
  componentDidMount?(): void;
54
25
  shouldComponentUpdate?(nextProps: Readonly<IslandProps>, nextState: Readonly<{}>, nextContext: any): boolean;
55
26
  componentWillUnmount?(): void;
@@ -64,6 +35,7 @@ export declare const AdaptiveIsland: {
64
35
  UNSAFE_componentWillUpdate?(nextProps: Readonly<IslandProps>, nextState: Readonly<{}>, nextContext: any): void;
65
36
  };
66
37
  contextType?: import("react").Context<any> | undefined;
38
+ propTypes?: any;
67
39
  };
68
40
  export { default as Header } from './header';
69
41
  export { default as Content } from './content';
@@ -20,32 +20,6 @@ export declare function linkHOC<P extends ClickableLinkProps>(ComposedComponent:
20
20
  forceUpdate(callback?: (() => void) | undefined): void;
21
21
  readonly props: Readonly<LinkProps<P>>;
22
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
23
  componentDidMount?(): void;
50
24
  shouldComponentUpdate?(nextProps: Readonly<LinkProps<P>>, nextState: Readonly<{}>, nextContext: any): boolean;
51
25
  componentWillUnmount?(): void;
@@ -60,6 +34,7 @@ export declare function linkHOC<P extends ClickableLinkProps>(ComposedComponent:
60
34
  UNSAFE_componentWillUpdate?(nextProps: Readonly<LinkProps<P>>, nextState: Readonly<{}>, nextContext: any): void;
61
35
  };
62
36
  contextType?: import("react").Context<any> | undefined;
37
+ propTypes?: any;
63
38
  };
64
39
  declare const _default: {
65
40
  new (props: LinkProps<ClickableLinkProps>): {
@@ -69,32 +44,6 @@ declare const _default: {
69
44
  forceUpdate(callback?: (() => void) | undefined): void;
70
45
  readonly props: Readonly<LinkProps<ClickableLinkProps>>;
71
46
  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
47
  componentDidMount?(): void;
99
48
  shouldComponentUpdate?(nextProps: Readonly<LinkProps<ClickableLinkProps>>, nextState: Readonly<{}>, nextContext: any): boolean;
100
49
  componentWillUnmount?(): void;
@@ -109,5 +58,6 @@ declare const _default: {
109
58
  UNSAFE_componentWillUpdate?(nextProps: Readonly<LinkProps<ClickableLinkProps>>, nextState: Readonly<{}>, nextContext: any): void;
110
59
  };
111
60
  contextType?: import("react").Context<any> | undefined;
61
+ propTypes?: any;
112
62
  };
113
63
  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<SelectProps<unknown> & React.RefAttributes<Select<unknown>>>;
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);
@@ -9,7 +9,6 @@ export default class SelectFilter extends Component<SelectFilterProps> {
9
9
  static defaultProps: {
10
10
  inputRef: typeof noop;
11
11
  };
12
- componentWillUnmount(): void;
13
12
  focus(): void;
14
13
  blur(): void;
15
14
  input?: HTMLInputElement | HTMLTextAreaElement | null;
@@ -11,9 +11,6 @@ export default class SelectFilter extends Component {
11
11
  static defaultProps = {
12
12
  inputRef: noop,
13
13
  };
14
- componentWillUnmount() {
15
- this.blur();
16
- }
17
14
  focus() {
18
15
  const { input } = this;
19
16
  if (input && input !== document.activeElement) {
@@ -16,33 +16,6 @@ export default function shortcutsHOC<P extends {}>(ComposedComponent: ComponentT
16
16
  forceUpdate(callback?: (() => void) | undefined): void;
17
17
  readonly props: Readonly<P & ShortcutsHOCProps>;
18
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
19
  componentDidMount?(): void;
47
20
  shouldComponentUpdate?(nextProps: Readonly<P & ShortcutsHOCProps>, nextState: Readonly<{}>, nextContext: any): boolean;
48
21
  componentWillUnmount?(): void;
@@ -57,4 +30,5 @@ export default function shortcutsHOC<P extends {}>(ComposedComponent: ComponentT
57
30
  UNSAFE_componentWillUpdate?(nextProps: Readonly<P & ShortcutsHOCProps>, nextState: Readonly<{}>, nextContext: any): void;
58
31
  };
59
32
  contextType?: import("react").Context<any> | undefined;
33
+ propTypes?: any;
60
34
  };
@@ -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(): string | number | true | import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | Iterable<import("react").ReactNode> | null;
19
+ render(): string | number | bigint | true | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<import("react").ReactNode> | Promise<string | number | bigint | boolean | import("react").ReactPortal | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<import("react").ReactNode> | null | undefined> | null;
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,9 +1,9 @@
1
- import { ComponentType } from 'react';
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: ComponentType<P>): {
6
+ export default function disableHoverHOC<P extends DisableHoverAddProps>(ComposedComponent: ComponentClass<P>): {
7
7
  new (props: DisableHoverProps<P>): {
8
8
  state: {
9
9
  disabledHover: boolean;
@@ -17,36 +17,6 @@ export default function disableHoverHOC<P extends DisableHoverAddProps>(Composed
17
17
  setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<DisableHoverProps<P>>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
18
18
  forceUpdate(callback?: (() => void) | undefined): void;
19
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
20
  shouldComponentUpdate?(nextProps: Readonly<DisableHoverProps<P>>, nextState: Readonly<{}>, nextContext: any): boolean;
51
21
  componentDidCatch?(error: Error, errorInfo: import("react").ErrorInfo): void;
52
22
  getSnapshotBeforeUpdate?(prevProps: Readonly<DisableHoverProps<P>>, prevState: Readonly<{}>): any;
@@ -60,4 +30,5 @@ export default function disableHoverHOC<P extends DisableHoverAddProps>(Composed
60
30
  };
61
31
  defaultProps: Partial<P> | undefined;
62
32
  contextType?: import("react").Context<any> | undefined;
33
+ propTypes?: any;
63
34
  };
@@ -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: ReactElement<TableAttrs<SelectionItem>>[];
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").ComponentType<FocusSensorProps<RowProps<T>, HTMLDivElement, typeof Row>>;
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 { ComponentType } from 'react';
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: ComponentType<P>): ComponentType<SelectionShortcutsProps<T, P>>;
17
+ export default function selectionShortcutsHOC<T extends SelectionItem, P extends SelectionShortcutsAddProps<T>>(ComposedComponent: ComponentClass<P>): ComponentClass<SelectionShortcutsProps<T, P>>;
@@ -116,36 +116,6 @@ export default class TableContainer<T extends SelectionItem> extends Component<T
116
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
117
  forceUpdate(callback?: (() => void) | undefined): void;
118
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
119
  shouldComponentUpdate?(nextProps: Readonly<DisableHoverProps<SelectionShortcutsProps<T, FocusSensorProps<TableProps<T>, HTMLTableRowElement, typeof Table>>>>, nextState: Readonly<{}>, nextContext: any): boolean;
150
120
  componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
151
121
  getSnapshotBeforeUpdate?(prevProps: Readonly<DisableHoverProps<SelectionShortcutsProps<T, FocusSensorProps<TableProps<T>, HTMLTableRowElement, typeof Table>>>>, prevState: Readonly<{}>): any;
@@ -159,6 +129,7 @@ export default class TableContainer<T extends SelectionItem> extends Component<T
159
129
  };
160
130
  defaultProps: Partial<SelectionShortcutsProps<T, FocusSensorProps<TableProps<T>, HTMLTableRowElement, typeof Table>>> | undefined;
161
131
  contextType?: React.Context<any> | undefined;
132
+ propTypes?: any;
162
133
  };
163
134
  render(): import("react/jsx-runtime").JSX.Element;
164
135
  }
@@ -1,13 +1,9 @@
1
- import { Component, ReactElement, ReactNode } from 'react';
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: ReactElement | readonly ReactElement[] | string | ((props: ChildrenProps) => ReactNode);
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.39",
3
+ "version": "7.0.40",
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.4",
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": "^18.3.12",
126
- "@types/react-dom": "^18.3.1",
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.0",
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": "^18.3.1",
171
- "react-dom": "^18.3.1",
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.39.0",
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": ">=16.8.0",
196
- "@types/react-dom": ">=16.8.0",
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",