@jetbrains/ring-ui-built 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.
- 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 -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-card/tooltip.d.ts +3 -8
- package/package.json +3 -3
@@ -1,9 +1,9 @@
|
|
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:
|
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:
|
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>>;
|
@@ -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,
|
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.40",
|
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"
|