@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,63 +1,6 @@
|
|
1
|
-
import {
|
1
|
+
import { ComponentClass } from 'react';
|
2
2
|
export interface DisableHoverAddProps {
|
3
3
|
disabledHover: boolean;
|
4
4
|
}
|
5
5
|
export type DisableHoverProps<P extends DisableHoverAddProps> = Omit<P, keyof DisableHoverAddProps>;
|
6
|
-
export default function disableHoverHOC<P extends DisableHoverAddProps>(ComposedComponent:
|
7
|
-
new (props: DisableHoverProps<P>): {
|
8
|
-
state: {
|
9
|
-
disabledHover: boolean;
|
10
|
-
};
|
11
|
-
componentDidMount(): void;
|
12
|
-
componentWillUnmount(): void;
|
13
|
-
onMouseMove: () => void;
|
14
|
-
onKeyDown: (e: KeyboardEvent) => void;
|
15
|
-
render(): import("react/jsx-runtime").JSX.Element;
|
16
|
-
context: unknown;
|
17
|
-
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<DisableHoverProps<P>>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
18
|
-
forceUpdate(callback?: (() => void) | undefined): void;
|
19
|
-
readonly props: Readonly<DisableHoverProps<P>>;
|
20
|
-
refs: {
|
21
|
-
[key: string]: import("react").ReactInstance;
|
22
|
-
};
|
23
|
-
shouldComponentUpdate?(nextProps: Readonly<DisableHoverProps<P>>, nextState: Readonly<{}>, nextContext: any): boolean;
|
24
|
-
componentDidCatch?(error: Error, errorInfo: import("react").ErrorInfo): void;
|
25
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<DisableHoverProps<P>>, prevState: Readonly<{}>): any;
|
26
|
-
componentDidUpdate?(prevProps: Readonly<DisableHoverProps<P>>, prevState: Readonly<{}>, snapshot?: any): void;
|
27
|
-
componentWillMount?(): void;
|
28
|
-
UNSAFE_componentWillMount?(): void;
|
29
|
-
componentWillReceiveProps?(nextProps: Readonly<DisableHoverProps<P>>, nextContext: any): void;
|
30
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<DisableHoverProps<P>>, nextContext: any): void;
|
31
|
-
componentWillUpdate?(nextProps: Readonly<DisableHoverProps<P>>, nextState: Readonly<{}>, nextContext: any): void;
|
32
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<DisableHoverProps<P>>, nextState: Readonly<{}>, nextContext: any): void;
|
33
|
-
};
|
34
|
-
new (props: DisableHoverProps<P>, context: any): {
|
35
|
-
state: {
|
36
|
-
disabledHover: boolean;
|
37
|
-
};
|
38
|
-
componentDidMount(): void;
|
39
|
-
componentWillUnmount(): void;
|
40
|
-
onMouseMove: () => void;
|
41
|
-
onKeyDown: (e: KeyboardEvent) => void;
|
42
|
-
render(): import("react/jsx-runtime").JSX.Element;
|
43
|
-
context: unknown;
|
44
|
-
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<DisableHoverProps<P>>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
45
|
-
forceUpdate(callback?: (() => void) | undefined): void;
|
46
|
-
readonly props: Readonly<DisableHoverProps<P>>;
|
47
|
-
refs: {
|
48
|
-
[key: string]: import("react").ReactInstance;
|
49
|
-
};
|
50
|
-
shouldComponentUpdate?(nextProps: Readonly<DisableHoverProps<P>>, nextState: Readonly<{}>, nextContext: any): boolean;
|
51
|
-
componentDidCatch?(error: Error, errorInfo: import("react").ErrorInfo): void;
|
52
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<DisableHoverProps<P>>, prevState: Readonly<{}>): any;
|
53
|
-
componentDidUpdate?(prevProps: Readonly<DisableHoverProps<P>>, prevState: Readonly<{}>, snapshot?: any): void;
|
54
|
-
componentWillMount?(): void;
|
55
|
-
UNSAFE_componentWillMount?(): void;
|
56
|
-
componentWillReceiveProps?(nextProps: Readonly<DisableHoverProps<P>>, nextContext: any): void;
|
57
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<DisableHoverProps<P>>, nextContext: any): void;
|
58
|
-
componentWillUpdate?(nextProps: Readonly<DisableHoverProps<P>>, nextState: Readonly<{}>, nextContext: any): void;
|
59
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<DisableHoverProps<P>>, nextState: Readonly<{}>, nextContext: any): void;
|
60
|
-
};
|
61
|
-
defaultProps: Partial<P> | undefined;
|
62
|
-
contextType?: import("react").Context<any> | undefined;
|
63
|
-
};
|
6
|
+
export default function disableHoverHOC<P extends DisableHoverAddProps>(ComposedComponent: ComponentClass<P>): ComponentClass<DisableHoverProps<P>>;
|
@@ -1,8 +1,9 @@
|
|
1
1
|
import { PureComponent, ReactElement } from 'react';
|
2
2
|
import { TableAttrs } from './table';
|
3
3
|
import { SelectionItem } from './selection';
|
4
|
+
type TableComponent = ReactElement<TableAttrs<SelectionItem>>;
|
4
5
|
export interface MultiTableProps {
|
5
|
-
children:
|
6
|
+
children: TableComponent[];
|
6
7
|
}
|
7
8
|
export default class MultiTable extends PureComponent<MultiTableProps> {
|
8
9
|
componentDidUpdate(prevProps: MultiTableProps): void;
|
@@ -19,3 +20,4 @@ export default class MultiTable extends PureComponent<MultiTableProps> {
|
|
19
20
|
};
|
20
21
|
render(): import("react/jsx-runtime").JSX.Element;
|
21
22
|
}
|
23
|
+
export {};
|
@@ -75,7 +75,7 @@ class MultiTable extends PureComponent {
|
|
75
75
|
onSelect
|
76
76
|
}
|
77
77
|
} = _ref3;
|
78
|
-
onSelect(selection.reset());
|
78
|
+
onSelect === null || onSelect === void 0 || onSelect(selection.reset());
|
79
79
|
});
|
80
80
|
});
|
81
81
|
_defineProperty(this, "onCmdAPress", () => {
|
@@ -89,7 +89,7 @@ class MultiTable extends PureComponent {
|
|
89
89
|
onSelect
|
90
90
|
}
|
91
91
|
} = _ref4;
|
92
|
-
onSelect(selection.selectAll());
|
92
|
+
onSelect === null || onSelect === void 0 || onSelect(selection.selectAll());
|
93
93
|
});
|
94
94
|
return false;
|
95
95
|
});
|
@@ -9,7 +9,7 @@ export interface RowWithFocusSensorCallbacksProps<T extends SelectionItem> exten
|
|
9
9
|
onExpand?: (item: T) => void;
|
10
10
|
}
|
11
11
|
export default class RowWithFocusSensorCallbacks<T extends SelectionItem> extends PureComponent<RowWithFocusSensorCallbacksProps<T>> {
|
12
|
-
RowWithFocusSensor: import("react").
|
12
|
+
RowWithFocusSensor: import("react").ComponentClass<FocusSensorProps<RowProps<T>, HTMLDivElement, typeof Row>, any>;
|
13
13
|
onFocus: () => void;
|
14
14
|
onSelect: (item: T, selected: boolean) => void;
|
15
15
|
onCollapse: () => void;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import { ComponentClass } from 'react';
|
2
2
|
import { ShortcutsMap } from '../shortcuts/core';
|
3
3
|
import Selection, { SelectionItem } from './selection';
|
4
4
|
export interface SelectionShortcutsOuterProps<T extends SelectionItem> {
|
@@ -14,4 +14,4 @@ export interface SelectionShortcutsAddProps<T extends SelectionItem> {
|
|
14
14
|
shortcutsMap: ShortcutsMap;
|
15
15
|
}
|
16
16
|
export type SelectionShortcutsProps<T extends SelectionItem, P> = Omit<P, keyof SelectionShortcutsAddProps<T>> & SelectionShortcutsOuterProps<T>;
|
17
|
-
export default function selectionShortcutsHOC<T extends SelectionItem, P extends SelectionShortcutsAddProps<T>>(ComposedComponent:
|
17
|
+
export default function selectionShortcutsHOC<T extends SelectionItem, P extends SelectionShortcutsAddProps<T>>(ComposedComponent: ComponentClass<P>): ComponentClass<SelectionShortcutsProps<T, P>>;
|
@@ -102,63 +102,6 @@ export declare class Table<T extends SelectionItem> extends PureComponent<TableP
|
|
102
102
|
}
|
103
103
|
export type TableAttrs<T extends SelectionItem> = DisableHoverProps<SelectionShortcutsProps<T, FocusSensorProps<TableProps<T>, HTMLTableRowElement, typeof Table>>>;
|
104
104
|
export default class TableContainer<T extends SelectionItem> extends Component<TableAttrs<T>> {
|
105
|
-
Table:
|
106
|
-
new (props: DisableHoverProps<SelectionShortcutsProps<T, FocusSensorProps<TableProps<T>, HTMLTableRowElement, typeof Table>>>): {
|
107
|
-
state: {
|
108
|
-
disabledHover: boolean;
|
109
|
-
};
|
110
|
-
componentDidMount(): void;
|
111
|
-
componentWillUnmount(): void;
|
112
|
-
onMouseMove: () => void;
|
113
|
-
onKeyDown: (e: KeyboardEvent) => void;
|
114
|
-
render(): import("react/jsx-runtime").JSX.Element;
|
115
|
-
context: unknown;
|
116
|
-
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<DisableHoverProps<SelectionShortcutsProps<T, FocusSensorProps<TableProps<T>, HTMLTableRowElement, typeof Table>>>>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
117
|
-
forceUpdate(callback?: (() => void) | undefined): void;
|
118
|
-
readonly props: Readonly<DisableHoverProps<SelectionShortcutsProps<T, FocusSensorProps<TableProps<T>, HTMLTableRowElement, typeof Table>>>>;
|
119
|
-
refs: {
|
120
|
-
[key: string]: React.ReactInstance;
|
121
|
-
};
|
122
|
-
shouldComponentUpdate?(nextProps: Readonly<DisableHoverProps<SelectionShortcutsProps<T, FocusSensorProps<TableProps<T>, HTMLTableRowElement, typeof Table>>>>, nextState: Readonly<{}>, nextContext: any): boolean;
|
123
|
-
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
124
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<DisableHoverProps<SelectionShortcutsProps<T, FocusSensorProps<TableProps<T>, HTMLTableRowElement, typeof Table>>>>, prevState: Readonly<{}>): any;
|
125
|
-
componentDidUpdate?(prevProps: Readonly<DisableHoverProps<SelectionShortcutsProps<T, FocusSensorProps<TableProps<T>, HTMLTableRowElement, typeof Table>>>>, prevState: Readonly<{}>, snapshot?: any): void;
|
126
|
-
componentWillMount?(): void;
|
127
|
-
UNSAFE_componentWillMount?(): void;
|
128
|
-
componentWillReceiveProps?(nextProps: Readonly<DisableHoverProps<SelectionShortcutsProps<T, FocusSensorProps<TableProps<T>, HTMLTableRowElement, typeof Table>>>>, nextContext: any): void;
|
129
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<DisableHoverProps<SelectionShortcutsProps<T, FocusSensorProps<TableProps<T>, HTMLTableRowElement, typeof Table>>>>, nextContext: any): void;
|
130
|
-
componentWillUpdate?(nextProps: Readonly<DisableHoverProps<SelectionShortcutsProps<T, FocusSensorProps<TableProps<T>, HTMLTableRowElement, typeof Table>>>>, nextState: Readonly<{}>, nextContext: any): void;
|
131
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<DisableHoverProps<SelectionShortcutsProps<T, FocusSensorProps<TableProps<T>, HTMLTableRowElement, typeof Table>>>>, nextState: Readonly<{}>, nextContext: any): void;
|
132
|
-
};
|
133
|
-
new (props: DisableHoverProps<SelectionShortcutsProps<T, FocusSensorProps<TableProps<T>, HTMLTableRowElement, typeof Table>>>, context: any): {
|
134
|
-
state: {
|
135
|
-
disabledHover: boolean;
|
136
|
-
};
|
137
|
-
componentDidMount(): void;
|
138
|
-
componentWillUnmount(): void;
|
139
|
-
onMouseMove: () => void;
|
140
|
-
onKeyDown: (e: KeyboardEvent) => void;
|
141
|
-
render(): import("react/jsx-runtime").JSX.Element;
|
142
|
-
context: unknown;
|
143
|
-
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<DisableHoverProps<SelectionShortcutsProps<T, FocusSensorProps<TableProps<T>, HTMLTableRowElement, typeof Table>>>>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
144
|
-
forceUpdate(callback?: (() => void) | undefined): void;
|
145
|
-
readonly props: Readonly<DisableHoverProps<SelectionShortcutsProps<T, FocusSensorProps<TableProps<T>, HTMLTableRowElement, typeof Table>>>>;
|
146
|
-
refs: {
|
147
|
-
[key: string]: React.ReactInstance;
|
148
|
-
};
|
149
|
-
shouldComponentUpdate?(nextProps: Readonly<DisableHoverProps<SelectionShortcutsProps<T, FocusSensorProps<TableProps<T>, HTMLTableRowElement, typeof Table>>>>, nextState: Readonly<{}>, nextContext: any): boolean;
|
150
|
-
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
151
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<DisableHoverProps<SelectionShortcutsProps<T, FocusSensorProps<TableProps<T>, HTMLTableRowElement, typeof Table>>>>, prevState: Readonly<{}>): any;
|
152
|
-
componentDidUpdate?(prevProps: Readonly<DisableHoverProps<SelectionShortcutsProps<T, FocusSensorProps<TableProps<T>, HTMLTableRowElement, typeof Table>>>>, prevState: Readonly<{}>, snapshot?: any): void;
|
153
|
-
componentWillMount?(): void;
|
154
|
-
UNSAFE_componentWillMount?(): void;
|
155
|
-
componentWillReceiveProps?(nextProps: Readonly<DisableHoverProps<SelectionShortcutsProps<T, FocusSensorProps<TableProps<T>, HTMLTableRowElement, typeof Table>>>>, nextContext: any): void;
|
156
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<DisableHoverProps<SelectionShortcutsProps<T, FocusSensorProps<TableProps<T>, HTMLTableRowElement, typeof Table>>>>, nextContext: any): void;
|
157
|
-
componentWillUpdate?(nextProps: Readonly<DisableHoverProps<SelectionShortcutsProps<T, FocusSensorProps<TableProps<T>, HTMLTableRowElement, typeof Table>>>>, nextState: Readonly<{}>, nextContext: any): void;
|
158
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<DisableHoverProps<SelectionShortcutsProps<T, FocusSensorProps<TableProps<T>, HTMLTableRowElement, typeof Table>>>>, nextState: Readonly<{}>, nextContext: any): void;
|
159
|
-
};
|
160
|
-
defaultProps: Partial<SelectionShortcutsProps<T, FocusSensorProps<TableProps<T>, HTMLTableRowElement, typeof Table>>> | undefined;
|
161
|
-
contextType?: React.Context<any> | undefined;
|
162
|
-
};
|
105
|
+
Table: React.ComponentClass<DisableHoverProps<SelectionShortcutsProps<T, FocusSensorProps<TableProps<T>, HTMLTableRowElement, typeof Table>>>, any>;
|
163
106
|
render(): import("react/jsx-runtime").JSX.Element;
|
164
107
|
}
|
@@ -1,13 +1,9 @@
|
|
1
|
-
import { Component,
|
2
|
-
import { DropdownAttrs } from '../dropdown/dropdown';
|
1
|
+
import { Component, ReactNode } from 'react';
|
2
|
+
import { DropdownAttrs, DropdownProps } from '../dropdown/dropdown';
|
3
3
|
import { UserCardAttrs, UserCardUser } from './card';
|
4
|
-
interface ChildrenProps {
|
5
|
-
active: boolean;
|
6
|
-
pinned: boolean;
|
7
|
-
}
|
8
4
|
export interface UserCardTooltipProps extends Omit<UserCardAttrs, 'children' | 'user'> {
|
9
5
|
user?: UserCardUser | null | undefined;
|
10
|
-
children:
|
6
|
+
children: DropdownProps['anchor'];
|
11
7
|
dropdownProps: Partial<DropdownAttrs>;
|
12
8
|
renderUserCard: (props: UserCardAttrs) => ReactNode;
|
13
9
|
renderNoUser: () => ReactNode;
|
@@ -24,4 +20,3 @@ export default class UserCardTooltip extends Component<UserCardTooltipProps> {
|
|
24
20
|
render(): import("react/jsx-runtime").JSX.Element;
|
25
21
|
}
|
26
22
|
export type UserCardTooltipAttrs = React.JSX.LibraryManagedAttributes<typeof UserCardTooltip, UserCardTooltipProps>;
|
27
|
-
export {};
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@jetbrains/ring-ui-built",
|
3
|
-
"version": "7.0.
|
3
|
+
"version": "7.0.41",
|
4
4
|
"description": "JetBrains UI library",
|
5
5
|
"author": {
|
6
6
|
"name": "JetBrains"
|
@@ -82,8 +82,8 @@
|
|
82
82
|
"readmeFilename": "README.md",
|
83
83
|
"devDependencies": {},
|
84
84
|
"peerDependencies": {
|
85
|
-
"@types/react": ">=
|
86
|
-
"@types/react-dom": ">=
|
85
|
+
"@types/react": ">=18.0.0",
|
86
|
+
"@types/react-dom": ">=18.0.0",
|
87
87
|
"core-js": ">=3.0.0",
|
88
88
|
"react": ">=18.0.0",
|
89
89
|
"react-dom": ">=18.0.0"
|