@jetbrains/ring-ui-built 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/_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 +22 -6
- 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/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/style.css +1 -1
- 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 +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
|
*/
|
@@ -57,10 +75,9 @@ class Button extends PureComponent {
|
|
57
75
|
className,
|
58
76
|
children,
|
59
77
|
inline,
|
60
|
-
disabled
|
61
|
-
href
|
78
|
+
disabled
|
62
79
|
} = _this$props,
|
63
|
-
props = _objectWithoutProperties(_this$props,
|
80
|
+
props = _objectWithoutProperties(_this$props, _excluded2);
|
64
81
|
const isInline = (_ref = inline !== null && inline !== void 0 ? inline : text) !== null && _ref !== void 0 ? _ref : icon != null;
|
65
82
|
if (text != null) {
|
66
83
|
warnText();
|
@@ -84,8 +101,7 @@ class Button extends PureComponent {
|
|
84
101
|
})]
|
85
102
|
});
|
86
103
|
const isDisabled = disabled || loader || undefined;
|
87
|
-
const commonProps = _objectSpread2(_objectSpread2({}, props), {}, {
|
88
|
-
href: isDisabled ? undefined : href,
|
104
|
+
const commonProps = _objectSpread2(_objectSpread2({}, props.href != null && isDisabled ? removeLinkProps(props) : props), {}, {
|
89
105
|
className: classes,
|
90
106
|
children: jsxs(Fragment, {
|
91
107
|
children: [loader && !isInline && jsx("div", {
|
@@ -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
|
/**
|
@@ -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 {};
|