@jetbrains/ring-ui-built 7.0.38 → 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.
- package/components/_helpers/select__filter.js +0 -3
- package/components/alert/container.d.ts +5 -2
- package/components/button/button.d.ts +1 -1
- package/components/button/button.js +26 -7
- 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 -30
- 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 +1 -29
- package/components/island/island.d.ts +1 -29
- package/components/link/link.d.ts +2 -52
- 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/shortcuts/shortcuts-hoc.d.ts +1 -27
- package/components/shortcuts/shortcuts.d.ts +1 -1
- package/components/slider/slider.utils.d.ts +2 -2
- package/components/style.css +1 -1
- package/components/table/disable-hover-hoc.d.ts +3 -32
- 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 -30
- package/components/user-agreement/service.js +8 -7
- package/components/user-card/tooltip.d.ts +3 -8
- package/package.json +3 -3
@@ -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 };
|
@@ -16,8 +16,26 @@ import 'core-js/modules/es.regexp.exec.js';
|
|
16
16
|
import 'core-js/modules/es.string.replace.js';
|
17
17
|
import '../global/memoize.js';
|
18
18
|
|
19
|
-
const _excluded = ["
|
19
|
+
const _excluded = ["download", "href", "hrefLang", "media", "ping", "target", "type", "referrerPolicy", "onConditionalClick", "onPlainLeftClick", "activeClassName"],
|
20
|
+
_excluded2 = ["active", "danger", "delayed", "loader", "primary", "success", "error", "secondary", "ghost", "short", "text", "dropdown", "height", "icon", "iconRight", "iconSize", "iconClassName", "iconRightClassName", "iconSuppressSizeWarning", "className", "children", "inline", "disabled"];
|
20
21
|
const warnText = deprecate(() => {}, 'Button: "text" prop is deprecated and will be removed in 8.0. Use inline instead.');
|
22
|
+
function removeLinkProps(props) {
|
23
|
+
const {
|
24
|
+
download,
|
25
|
+
href,
|
26
|
+
hrefLang,
|
27
|
+
media,
|
28
|
+
ping,
|
29
|
+
target,
|
30
|
+
type,
|
31
|
+
referrerPolicy,
|
32
|
+
onConditionalClick,
|
33
|
+
onPlainLeftClick,
|
34
|
+
activeClassName
|
35
|
+
} = props,
|
36
|
+
restProps = _objectWithoutProperties(props, _excluded);
|
37
|
+
return restProps;
|
38
|
+
}
|
21
39
|
/**
|
22
40
|
* @name Button
|
23
41
|
*/
|
@@ -56,9 +74,10 @@ class Button extends PureComponent {
|
|
56
74
|
iconSuppressSizeWarning,
|
57
75
|
className,
|
58
76
|
children,
|
59
|
-
inline
|
77
|
+
inline,
|
78
|
+
disabled
|
60
79
|
} = _this$props,
|
61
|
-
props = _objectWithoutProperties(_this$props,
|
80
|
+
props = _objectWithoutProperties(_this$props, _excluded2);
|
62
81
|
const isInline = (_ref = inline !== null && inline !== void 0 ? inline : text) !== null && _ref !== void 0 ? _ref : icon != null;
|
63
82
|
if (text != null) {
|
64
83
|
warnText();
|
@@ -81,9 +100,8 @@ class Button extends PureComponent {
|
|
81
100
|
className: styles.dropdownIcon
|
82
101
|
})]
|
83
102
|
});
|
84
|
-
const
|
85
|
-
|
86
|
-
}, props), {}, {
|
103
|
+
const isDisabled = disabled || loader || undefined;
|
104
|
+
const commonProps = _objectSpread2(_objectSpread2({}, props.href != null && isDisabled ? removeLinkProps(props) : props), {}, {
|
87
105
|
className: classes,
|
88
106
|
children: jsxs(Fragment, {
|
89
107
|
children: [loader && !isInline && jsx("div", {
|
@@ -93,7 +111,8 @@ class Button extends PureComponent {
|
|
93
111
|
});
|
94
112
|
return commonProps.href != null ? jsx(ClickableLink, _objectSpread2({}, commonProps)) : jsx("button", _objectSpread2({
|
95
113
|
ref: this.buttonRef,
|
96
|
-
type: "button"
|
114
|
+
type: "button",
|
115
|
+
disabled: isDisabled
|
97
116
|
}, commonProps));
|
98
117
|
}
|
99
118
|
}
|
@@ -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
|
/**
|
@@ -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").
|
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(): 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<
|
283
|
+
export declare const RerenderableSelect: React.ForwardRefExoticComponent<Omit<any, "ref"> & React.RefAttributes<any>>;
|
284
284
|
export {};
|
@@ -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
|
}[];
|