@jetbrains/ring-ui-built 8.0.0-beta.2 → 8.0.0-beta.3
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/anchor.js +1 -1
- package/components/_helpers/avatar-info.js +1 -1
- package/components/_helpers/icon-svg.js +1 -1
- package/components/_helpers/legacy-table.js +3 -0
- package/components/_helpers/tab-link.js +1 -1
- package/components/_helpers/theme.js +49 -37
- package/components/alert/alert.js +1 -1
- package/components/alert-service/alert-service.js +1 -1
- package/components/auth/auth-core.js +1 -1
- package/components/auth/auth.js +1 -1
- package/components/auth/down-notification.js +1 -1
- package/components/auth/iframe-flow.js +1 -1
- package/components/auth/storage.js +1 -1
- package/components/auth-dialog/auth-dialog.js +1 -1
- package/components/auth-dialog-service/auth-dialog-service.js +2 -2
- package/components/avatar/avatar-info.js +1 -1
- package/components/avatar/avatar.js +1 -1
- package/components/avatar/fallback-avatar.js +1 -1
- package/components/avatar-stack/avatar-stack.js +1 -1
- package/components/banner/banner.js +1 -1
- package/components/button/button.js +1 -1
- package/components/button-group/button-group.js +1 -1
- package/components/checkbox/checkbox.js +1 -1
- package/components/clipboard/clipboard.js +1 -1
- package/components/collapse/collapse-content.js +5 -5
- package/components/collapse/collapse-control.js +5 -5
- package/components/collapse/collapse.js +4 -4
- package/components/confirm/confirm.js +1 -1
- package/components/confirm-service/confirm-service.js +2 -2
- package/components/contenteditable/contenteditable.js +1 -1
- package/components/control-help/control-help.js +1 -1
- package/components/control-label/control-label.js +1 -1
- package/components/data-list/data-list.d.ts +1 -1
- package/components/data-list/data-list.js +1 -1
- package/components/data-list/data-list.mock.d.ts +1 -1
- package/components/data-list/data-list.mock.js +1 -1
- package/components/data-list/item.d.ts +1 -1
- package/components/data-list/item.js +1 -1
- package/components/data-list/selection.d.ts +1 -1
- package/components/data-list/selection.js +2 -2
- package/components/data-list/title.js +1 -1
- package/components/date-picker/date-input.js +1 -1
- package/components/date-picker/date-picker.js +1 -2
- package/components/date-picker/date-popup.js +1 -2
- package/components/date-picker/month-names.js +1 -1
- package/components/date-picker/month-slider.js +1 -1
- package/components/date-picker/month.js +1 -1
- package/components/date-picker/months.js +4 -5
- package/components/date-picker/use-intersection-observer.js +1 -1
- package/components/date-picker/use-scroll-behavior.js +45 -44
- package/components/date-picker/weekdays.js +1 -1
- package/components/date-picker/years.js +6 -7
- package/components/dialog/dialog.d.ts +2 -2
- package/components/dialog/dialog.js +3 -3
- package/components/dropdown/anchor.js +1 -1
- package/components/dropdown/dropdown.js +1 -1
- package/components/dropdown-menu/dropdown-menu.d.ts +4 -4
- package/components/dropdown-menu/dropdown-menu.js +62 -57
- package/components/editable-heading/editable-heading.d.ts +1 -2
- package/components/editable-heading/editable-heading.js +13 -12
- package/components/error-bubble/error-bubble.js +1 -1
- package/components/error-message/error-message.js +1 -1
- package/components/expand/collapsible-group.d.ts +5 -1
- package/components/expand/collapsible-group.js +15 -14
- package/components/footer/footer.js +1 -1
- package/components/global/create-stateful-context.js +11 -11
- package/components/global/intersection-observer-context.d.ts +2 -2
- package/components/global/intersection-observer-context.js +12 -12
- package/components/global/rerender-hoc.d.ts +4 -2
- package/components/global/rerender-hoc.js +10 -24
- package/components/{legacy-table/selection.d.ts → global/table-selection.d.ts} +14 -14
- package/components/{legacy-table/selection.js → global/table-selection.js} +3 -3
- package/components/global/theme.d.ts +4 -3
- package/components/global/theme.js +1 -1
- package/components/header/header-icon.js +1 -1
- package/components/header/header.js +1 -1
- package/components/header/links.js +1 -1
- package/components/header/logo.js +1 -1
- package/components/header/profile.js +1 -1
- package/components/header/services.js +1 -1
- package/components/header/smart-profile.js +1 -1
- package/components/header/smart-services.js +1 -1
- package/components/heading/heading.js +1 -1
- package/components/i18n/i18n-context.js +4 -4
- package/components/icon/icon-svg.js +1 -1
- package/components/icon/icon.js +1 -1
- package/components/icon/index.js +1 -1
- package/components/input/input.js +1 -1
- package/components/island/adaptive-island-hoc.js +3 -3
- package/components/island/content.d.ts +7 -2
- package/components/island/content.js +27 -18
- package/components/island/header.js +1 -1
- package/components/island/island.js +1 -1
- package/components/legacy-table/cell.js +1 -1
- package/components/legacy-table/header-cell.js +2 -2
- package/components/legacy-table/header.js +2 -2
- package/components/legacy-table/multitable.d.ts +1 -1
- package/components/legacy-table/row-with-focus-sensor.js +2 -2
- package/components/legacy-table/row.js +4 -4
- package/components/legacy-table/selection-adapter.d.ts +3 -3
- package/components/legacy-table/selection-shortcuts-hoc.d.ts +5 -5
- package/components/legacy-table/simple-table.d.ts +2 -2
- package/components/legacy-table/simple-table.js +4 -4
- package/components/legacy-table/smart-table.d.ts +5 -5
- package/components/legacy-table/smart-table.js +5 -5
- package/components/legacy-table/table.js +2 -2
- package/components/list/list-item.js +1 -1
- package/components/list/list-users-groups-source.js +1 -1
- package/components/list/list.js +1 -1
- package/components/login-dialog/login-dialog.js +1 -1
- package/components/login-dialog/service.js +2 -2
- package/components/message/message.js +1 -1
- package/components/pager/pager.js +1 -1
- package/components/popup/popup.js +1 -1
- package/components/popup/popup.target.d.ts +3 -2
- package/components/popup/popup.target.js +32 -28
- package/components/popup-menu/popup-menu.js +1 -1
- package/components/query-assist/query-assist-suggestions.js +1 -1
- package/components/query-assist/query-assist.d.ts +3 -1
- package/components/query-assist/query-assist.js +2 -2
- package/components/radio/radio-item.d.ts +3 -3
- package/components/radio/radio-item.js +32 -18
- package/components/radio/radio.d.ts +2 -2
- package/components/radio/radio.js +2 -2
- package/components/scrollable-section/scrollable-section.js +1 -1
- package/components/select/chevron-button.js +1 -1
- package/components/select/select-filter.js +1 -1
- package/components/select/select-popup.js +1 -1
- package/components/select/select.d.ts +3 -1
- package/components/select/select.js +1 -1
- package/components/slider/slider.js +100 -96
- package/components/storage/storage-local.js +1 -1
- package/components/storage/storage.js +1 -1
- package/components/style.css +1 -1
- package/components/tab-trap/tab-trap.d.ts +3 -3
- package/components/tab-trap/tab-trap.js +83 -80
- package/components/table/default-item-renderer.d.ts +20 -9
- package/components/table/default-item-renderer.js +83 -142
- package/components/table/table-component.d.ts +43 -16
- package/components/table/table-component.js +162 -188
- package/components/table/table-primitives.d.ts +28 -0
- package/components/table/{table-base.js → table-primitives.js} +110 -98
- package/components/table/table-row-focus.d.ts +4 -0
- package/components/table/table-row-focus.js +41 -0
- package/components/table/table-virtualize.d.ts +3 -3
- package/components/table/table-virtualize.js +111 -112
- package/components/table/table.d.ts +9 -24
- package/components/table/table.js +4 -3
- package/components/tabs/collapsible-more.js +1 -1
- package/components/tabs/collapsible-tab.js +1 -1
- package/components/tabs/collapsible-tabs.js +1 -1
- package/components/tabs/dumb-tabs.js +1 -1
- package/components/tabs/smart-tabs.js +1 -1
- package/components/tabs/tab-link.js +1 -1
- package/components/tabs/tabs.js +1 -1
- package/components/tag/tag.js +1 -1
- package/components/tags-input/tags-input.d.ts +3 -1
- package/components/tags-input/tags-input.js +1 -1
- package/components/tags-list/tags-list.js +1 -1
- package/components/toggle/toggle.js +1 -1
- package/components/tooltip/tooltip.js +2 -2
- package/components/upload/upload.d.ts +4 -3
- package/components/upload/upload.js +7 -29
- package/components/user-agreement/service.js +2 -2
- package/components/user-agreement/user-agreement.js +1 -1
- package/components/user-card/card.js +1 -1
- package/components/user-card/smart-user-card-tooltip.js +1 -1
- package/components/user-card/tooltip.js +1 -1
- package/components/user-card/user-card.js +1 -1
- package/package.json +6 -6
- package/components/_helpers/table2.js +0 -3
- package/components/global/use-event-callback.d.ts +0 -1
- package/components/global/use-event-callback.js +0 -44
- package/components/table/table-base.d.ts +0 -24
package/components/icon/icon.js
CHANGED
|
@@ -4,7 +4,7 @@ import deprecate from 'util-deprecate';
|
|
|
4
4
|
import { Color, Size } from './icon.constants.js';
|
|
5
5
|
import { s as styles, I as IconSVG } from '../_helpers/icon-svg.js';
|
|
6
6
|
import { jsx } from 'react/jsx-runtime';
|
|
7
|
-
import 'react
|
|
7
|
+
import 'react/compiler-runtime';
|
|
8
8
|
import '../global/memoize.js';
|
|
9
9
|
|
|
10
10
|
const warnSize = deprecate(() => {}, `\`size\`, \`width\` and \`height\` props are not recommended to use in Ring UI \`Icon\` component. The intrinsic sizes of SVG icon (\`width\` and \`height\` SVG attributes) are used instead.
|
package/components/icon/index.js
CHANGED
|
@@ -18,7 +18,7 @@ import '../link/clickable-link.js';
|
|
|
18
18
|
import '../_helpers/button.classes.js';
|
|
19
19
|
import '../icon/icon.constants.js';
|
|
20
20
|
import '../_helpers/icon-svg.js';
|
|
21
|
-
import 'react
|
|
21
|
+
import 'react/compiler-runtime';
|
|
22
22
|
import '../global/memoize.js';
|
|
23
23
|
import '../global/configuration.js';
|
|
24
24
|
import '../i18n/i18n.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Component, createContext } from 'react';
|
|
2
2
|
import { interpolateLinear } from '../global/linear-function.js';
|
|
3
3
|
import { jsx } from 'react/jsx-runtime';
|
|
4
4
|
|
|
@@ -25,9 +25,9 @@ function adaptiveIslandHOC(ComposedComponent) {
|
|
|
25
25
|
}
|
|
26
26
|
};
|
|
27
27
|
render() {
|
|
28
|
-
return /*#__PURE__*/jsx(PhaseContext
|
|
28
|
+
return /*#__PURE__*/jsx(PhaseContext, {
|
|
29
29
|
value: this.state.phase,
|
|
30
|
-
children: /*#__PURE__*/jsx(ScrollHandlerContext
|
|
30
|
+
children: /*#__PURE__*/jsx(ScrollHandlerContext, {
|
|
31
31
|
value: this.onContentScroll,
|
|
32
32
|
children: /*#__PURE__*/jsx(ComposedComponent, {
|
|
33
33
|
...this.props
|
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
import { Component, type HTMLAttributes } from 'react';
|
|
1
|
+
import { Component, type Ref, type HTMLAttributes } from 'react';
|
|
2
2
|
import createResizeDetector from 'element-resize-detector';
|
|
3
3
|
export interface IslandContentProps extends Omit<HTMLAttributes<HTMLElement>, 'onScroll'> {
|
|
4
|
+
ref?: Ref<Content>;
|
|
4
5
|
fade?: boolean | null | undefined;
|
|
5
6
|
onScrollToBottom?: (() => void) | null | undefined;
|
|
6
7
|
scrollableWrapperClassName?: string | null | undefined;
|
|
7
8
|
}
|
|
8
9
|
export interface IslandContentInnerProps extends IslandContentProps {
|
|
10
|
+
ref?: Ref<Content>;
|
|
9
11
|
onScroll: (node: HTMLElement) => void;
|
|
10
12
|
bottomBorder: boolean;
|
|
11
13
|
}
|
|
@@ -29,5 +31,8 @@ declare class Content extends Component<IslandContentInnerProps> {
|
|
|
29
31
|
setScrollableNodeAndCalculatePosition: (node: HTMLElement | null) => void;
|
|
30
32
|
render(): import("react").JSX.Element;
|
|
31
33
|
}
|
|
32
|
-
declare const ContentWrapper:
|
|
34
|
+
declare const ContentWrapper: {
|
|
35
|
+
({ ...props }: IslandContentProps): import("react").JSX.Element;
|
|
36
|
+
displayName: string;
|
|
37
|
+
};
|
|
33
38
|
export default ContentWrapper;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c } from 'react
|
|
2
|
-
import {
|
|
1
|
+
import { c } from 'react/compiler-runtime';
|
|
2
|
+
import { Component } from 'react';
|
|
3
3
|
import classNames from 'classnames';
|
|
4
4
|
import createResizeDetector from 'element-resize-detector';
|
|
5
5
|
import scheduleRAF from '../global/schedule-raf.js';
|
|
@@ -73,6 +73,7 @@ class Content extends Component {
|
|
|
73
73
|
};
|
|
74
74
|
render() {
|
|
75
75
|
const {
|
|
76
|
+
ref,
|
|
76
77
|
children,
|
|
77
78
|
className,
|
|
78
79
|
bottomBorder,
|
|
@@ -111,17 +112,27 @@ class Content extends Component {
|
|
|
111
112
|
});
|
|
112
113
|
}
|
|
113
114
|
}
|
|
114
|
-
const ContentWrapper =
|
|
115
|
-
const $ = c(
|
|
116
|
-
if ($[0] !== "
|
|
117
|
-
for (let $i = 0; $i <
|
|
115
|
+
const ContentWrapper = t0 => {
|
|
116
|
+
const $ = c(5);
|
|
117
|
+
if ($[0] !== "e4db06b946c16f75a9eac1dc4434adb1fda7cf8013533176d779915994c312c4") {
|
|
118
|
+
for (let $i = 0; $i < 5; $i += 1) {
|
|
118
119
|
$[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
119
120
|
}
|
|
120
|
-
$[0] = "
|
|
121
|
+
$[0] = "e4db06b946c16f75a9eac1dc4434adb1fda7cf8013533176d779915994c312c4";
|
|
121
122
|
}
|
|
122
|
-
let
|
|
123
|
-
if ($[1] !==
|
|
124
|
-
|
|
123
|
+
let props;
|
|
124
|
+
if ($[1] !== t0) {
|
|
125
|
+
({
|
|
126
|
+
...props
|
|
127
|
+
} = t0);
|
|
128
|
+
$[1] = t0;
|
|
129
|
+
$[2] = props;
|
|
130
|
+
} else {
|
|
131
|
+
props = $[2];
|
|
132
|
+
}
|
|
133
|
+
let t1;
|
|
134
|
+
if ($[3] !== props) {
|
|
135
|
+
t1 = /*#__PURE__*/jsx(ScrollHandlerContext.Consumer, {
|
|
125
136
|
children: onScroll => {
|
|
126
137
|
const addProps = onScroll ? {
|
|
127
138
|
onScroll,
|
|
@@ -129,19 +140,17 @@ const ContentWrapper = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
129
140
|
} : {};
|
|
130
141
|
return /*#__PURE__*/jsx(Content, {
|
|
131
142
|
...props,
|
|
132
|
-
...addProps
|
|
133
|
-
ref: ref
|
|
143
|
+
...addProps
|
|
134
144
|
});
|
|
135
145
|
}
|
|
136
146
|
});
|
|
137
|
-
$[
|
|
138
|
-
$[
|
|
139
|
-
$[3] = t0;
|
|
147
|
+
$[3] = props;
|
|
148
|
+
$[4] = t1;
|
|
140
149
|
} else {
|
|
141
|
-
|
|
150
|
+
t1 = $[4];
|
|
142
151
|
}
|
|
143
|
-
return
|
|
144
|
-
}
|
|
152
|
+
return t1;
|
|
153
|
+
};
|
|
145
154
|
ContentWrapper.displayName = 'ContentWrapper';
|
|
146
155
|
|
|
147
156
|
export { ContentWrapper as default };
|
|
@@ -7,7 +7,7 @@ import { jsx } from 'react/jsx-runtime';
|
|
|
7
7
|
export { default as Header } from './header.js';
|
|
8
8
|
export { default as Content } from './content.js';
|
|
9
9
|
import '../global/linear-function.js';
|
|
10
|
-
import 'react
|
|
10
|
+
import 'react/compiler-runtime';
|
|
11
11
|
import 'element-resize-detector';
|
|
12
12
|
import '../global/schedule-raf.js';
|
|
13
13
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PureComponent } from 'react';
|
|
2
2
|
import classNames from 'classnames';
|
|
3
3
|
import joinDataTestAttributes from '../global/data-tests.js';
|
|
4
|
-
import { s as style } from '../_helpers/
|
|
4
|
+
import { s as style } from '../_helpers/legacy-table.js';
|
|
5
5
|
import { jsx } from 'react/jsx-runtime';
|
|
6
6
|
|
|
7
7
|
class Cell extends PureComponent {
|
|
@@ -4,12 +4,12 @@ import unsortedIcon from '@jetbrains/icons/unsorted-12px';
|
|
|
4
4
|
import chevron12pxDown from '@jetbrains/icons/chevron-12px-down';
|
|
5
5
|
import Icon from '../icon/icon.js';
|
|
6
6
|
import joinDataTestAttributes from '../global/data-tests.js';
|
|
7
|
-
import { s as style } from '../_helpers/
|
|
7
|
+
import { s as style } from '../_helpers/legacy-table.js';
|
|
8
8
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
9
9
|
import 'util-deprecate';
|
|
10
10
|
import '../icon/icon.constants.js';
|
|
11
11
|
import '../_helpers/icon-svg.js';
|
|
12
|
-
import 'react
|
|
12
|
+
import 'react/compiler-runtime';
|
|
13
13
|
import '../global/memoize.js';
|
|
14
14
|
|
|
15
15
|
class HeaderCell extends PureComponent {
|
|
@@ -3,7 +3,7 @@ import classNames from 'classnames';
|
|
|
3
3
|
import Checkbox from '../checkbox/checkbox.js';
|
|
4
4
|
import getUID from '../global/get-uid.js';
|
|
5
5
|
import HeaderCell from './header-cell.js';
|
|
6
|
-
import { s as style } from '../_helpers/
|
|
6
|
+
import { s as style } from '../_helpers/legacy-table.js';
|
|
7
7
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
8
8
|
import '@jetbrains/icons/checkmark-12px';
|
|
9
9
|
import '@jetbrains/icons/remove-12px';
|
|
@@ -11,7 +11,7 @@ import '../icon/icon.js';
|
|
|
11
11
|
import 'util-deprecate';
|
|
12
12
|
import '../icon/icon.constants.js';
|
|
13
13
|
import '../_helpers/icon-svg.js';
|
|
14
|
-
import 'react
|
|
14
|
+
import 'react/compiler-runtime';
|
|
15
15
|
import '../global/memoize.js';
|
|
16
16
|
import '../global/compose-refs.js';
|
|
17
17
|
import 'memoize-one';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PureComponent, type ReactElement } from 'react';
|
|
2
2
|
import { type TableAttrs } from './table';
|
|
3
|
-
import { type SelectionItem } from '
|
|
3
|
+
import { type SelectionItem } from '../global/table-selection';
|
|
4
4
|
type TableComponent = ReactElement<TableAttrs<SelectionItem>>;
|
|
5
5
|
export interface MultiTableProps {
|
|
6
6
|
children: TableComponent[];
|
|
@@ -4,7 +4,7 @@ import Row from './row.js';
|
|
|
4
4
|
import { jsx } from 'react/jsx-runtime';
|
|
5
5
|
import '../global/compose-refs.js';
|
|
6
6
|
import 'memoize-one';
|
|
7
|
-
import 'react
|
|
7
|
+
import 'react/compiler-runtime';
|
|
8
8
|
import 'classnames';
|
|
9
9
|
import '@jetbrains/icons/chevron-right';
|
|
10
10
|
import '@jetbrains/icons/chevron-down';
|
|
@@ -44,7 +44,7 @@ import '../popup/popup.target.js';
|
|
|
44
44
|
import '../popup/position-css.js';
|
|
45
45
|
import '../_helpers/theme.js';
|
|
46
46
|
import './cell.js';
|
|
47
|
-
import '../_helpers/
|
|
47
|
+
import '../_helpers/legacy-table.js';
|
|
48
48
|
|
|
49
49
|
const getContainer = () => focusSensorHOC(Row);
|
|
50
50
|
class RowWithFocusSensorCallbacks extends PureComponent {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c } from 'react
|
|
1
|
+
import { c } from 'react/compiler-runtime';
|
|
2
2
|
import { PureComponent } from 'react';
|
|
3
3
|
import classNames from 'classnames';
|
|
4
4
|
import chevronRightIcon from '@jetbrains/icons/chevron-right';
|
|
@@ -11,7 +11,7 @@ import joinDataTestAttributes from '../global/data-tests.js';
|
|
|
11
11
|
import getUID from '../global/get-uid.js';
|
|
12
12
|
import { createComposedRef } from '../global/compose-refs.js';
|
|
13
13
|
import Cell from './cell.js';
|
|
14
|
-
import { s as style } from '../_helpers/
|
|
14
|
+
import { s as style } from '../_helpers/legacy-table.js';
|
|
15
15
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
16
16
|
import '@jetbrains/icons/checkmark-12px';
|
|
17
17
|
import '@jetbrains/icons/remove-12px';
|
|
@@ -46,11 +46,11 @@ import 'memoize-one';
|
|
|
46
46
|
|
|
47
47
|
const DragHandle = t0 => {
|
|
48
48
|
const $ = c(6);
|
|
49
|
-
if ($[0] !== "
|
|
49
|
+
if ($[0] !== "6d181a7b79d6c43c9efeb4fa43b5ac2047952f3bf582e26f319cda89e9e36280") {
|
|
50
50
|
for (let $i = 0; $i < 6; $i += 1) {
|
|
51
51
|
$[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
52
52
|
}
|
|
53
|
-
$[0] = "
|
|
53
|
+
$[0] = "6d181a7b79d6c43c9efeb4fa43b5ac2047952f3bf582e26f319cda89e9e36280";
|
|
54
54
|
}
|
|
55
55
|
const {
|
|
56
56
|
alwaysShowDragHandle,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import type { SelectionItem } from '
|
|
3
|
-
export default function selectionAdapter(getSelection: () =>
|
|
1
|
+
import type TableSelection from '../global/table-selection';
|
|
2
|
+
import type { SelectionItem } from '../global/table-selection';
|
|
3
|
+
export default function selectionAdapter(getSelection: () => TableSelection<SelectionItem>): {
|
|
4
4
|
readonly size: number;
|
|
5
5
|
readonly items: SelectionItem[];
|
|
6
6
|
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { type ComponentClass } from 'react';
|
|
2
2
|
import { type ShortcutsMap } from '../shortcuts/core';
|
|
3
|
-
import type
|
|
3
|
+
import type TableSelection from '../global/table-selection';
|
|
4
4
|
export interface SelectionShortcutsOuterProps<T extends object> {
|
|
5
|
-
selection:
|
|
5
|
+
selection: TableSelection<T>;
|
|
6
6
|
selectable?: boolean | undefined;
|
|
7
|
-
onSelect?: ((selection:
|
|
7
|
+
onSelect?: ((selection: TableSelection<T>) => void) | undefined;
|
|
8
8
|
shortcuts?: ShortcutsMap | undefined;
|
|
9
9
|
}
|
|
10
10
|
export interface SelectionShortcutsAddProps<T extends object> {
|
|
11
|
-
selection:
|
|
11
|
+
selection: TableSelection<T>;
|
|
12
12
|
selectable: boolean;
|
|
13
|
-
onSelect: (selection:
|
|
13
|
+
onSelect: (selection: TableSelection<T>) => void;
|
|
14
14
|
shortcutsMap: ShortcutsMap;
|
|
15
15
|
}
|
|
16
16
|
export type SelectionShortcutsProps<T extends object, P> = Omit<P, keyof SelectionShortcutsAddProps<T>> & SelectionShortcutsOuterProps<T>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PureComponent } from 'react';
|
|
2
2
|
import { type TableAttrs } from './table';
|
|
3
|
-
import
|
|
3
|
+
import TableSelection, { type SelectionItem } from '../global/table-selection';
|
|
4
4
|
export interface SimpleTableProps<T extends SelectionItem> extends Omit<TableAttrs<T>, 'selection' | 'onSelect' | 'selectable'> {
|
|
5
5
|
}
|
|
6
6
|
declare class SimpleTable<T extends SelectionItem> extends PureComponent<SimpleTableProps<T>> {
|
|
@@ -9,7 +9,7 @@ declare class SimpleTable<T extends SelectionItem> extends PureComponent<SimpleT
|
|
|
9
9
|
wideFirstColumn: boolean;
|
|
10
10
|
};
|
|
11
11
|
state: {
|
|
12
|
-
selection:
|
|
12
|
+
selection: TableSelection<T>;
|
|
13
13
|
};
|
|
14
14
|
classes: string;
|
|
15
15
|
render(): import("react").JSX.Element;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { PureComponent } from 'react';
|
|
2
2
|
import classNames from 'classnames';
|
|
3
3
|
import TableContainer from './table.js';
|
|
4
|
-
import
|
|
5
|
-
import { s as style } from '../_helpers/
|
|
4
|
+
import TableSelection from '../global/table-selection.js';
|
|
5
|
+
import { s as style } from '../_helpers/legacy-table.js';
|
|
6
6
|
import { jsx } from 'react/jsx-runtime';
|
|
7
7
|
import 'react-movable';
|
|
8
8
|
import '../global/focus-sensor-hoc.js';
|
|
@@ -26,7 +26,7 @@ import '../icon/icon.js';
|
|
|
26
26
|
import 'util-deprecate';
|
|
27
27
|
import '../icon/icon.constants.js';
|
|
28
28
|
import '../_helpers/icon-svg.js';
|
|
29
|
-
import 'react
|
|
29
|
+
import 'react/compiler-runtime';
|
|
30
30
|
import '../global/memoize.js';
|
|
31
31
|
import '../control-help/control-help.js';
|
|
32
32
|
import '../global/data-tests.js';
|
|
@@ -63,7 +63,7 @@ class SimpleTable extends PureComponent {
|
|
|
63
63
|
wideFirstColumn: false
|
|
64
64
|
};
|
|
65
65
|
state = {
|
|
66
|
-
selection: new
|
|
66
|
+
selection: new TableSelection({
|
|
67
67
|
data: this.props.data
|
|
68
68
|
})
|
|
69
69
|
};
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { PureComponent } from 'react';
|
|
2
2
|
import { type TableAttrs } from './table';
|
|
3
|
-
import
|
|
3
|
+
import TableSelection, { type SelectionItem } from '../global/table-selection';
|
|
4
4
|
export interface SmartTableProps<T extends SelectionItem> extends Omit<TableAttrs<T>, 'selection' | 'onSelect'> {
|
|
5
|
-
onSelectionChange: (selection:
|
|
6
|
-
selection?:
|
|
5
|
+
onSelectionChange: (selection: TableSelection<T>) => void;
|
|
6
|
+
selection?: TableSelection<T>;
|
|
7
7
|
}
|
|
8
8
|
declare class SmartTable<T extends SelectionItem> extends PureComponent<SmartTableProps<T>> {
|
|
9
9
|
static defaultProps: {
|
|
10
10
|
onSelectionChange: () => void;
|
|
11
11
|
};
|
|
12
12
|
state: {
|
|
13
|
-
selection:
|
|
13
|
+
selection: TableSelection<T>;
|
|
14
14
|
};
|
|
15
15
|
UNSAFE_componentWillReceiveProps(nextProps: SmartTableProps<T>): void;
|
|
16
|
-
onSelect: (selection:
|
|
16
|
+
onSelect: (selection: TableSelection<T>) => void;
|
|
17
17
|
render(): import("react").JSX.Element;
|
|
18
18
|
}
|
|
19
19
|
export default SmartTable;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PureComponent } from 'react';
|
|
2
2
|
import TableContainer from './table.js';
|
|
3
|
-
import
|
|
3
|
+
import TableSelection from '../global/table-selection.js';
|
|
4
4
|
import { jsx } from 'react/jsx-runtime';
|
|
5
5
|
import 'classnames';
|
|
6
6
|
import 'react-movable';
|
|
@@ -25,14 +25,14 @@ import '../icon/icon.js';
|
|
|
25
25
|
import 'util-deprecate';
|
|
26
26
|
import '../icon/icon.constants.js';
|
|
27
27
|
import '../_helpers/icon-svg.js';
|
|
28
|
-
import 'react
|
|
28
|
+
import 'react/compiler-runtime';
|
|
29
29
|
import '../global/memoize.js';
|
|
30
30
|
import '../control-help/control-help.js';
|
|
31
31
|
import '../global/data-tests.js';
|
|
32
32
|
import './header-cell.js';
|
|
33
33
|
import '@jetbrains/icons/unsorted-12px';
|
|
34
34
|
import '@jetbrains/icons/chevron-12px-down';
|
|
35
|
-
import '../_helpers/
|
|
35
|
+
import '../_helpers/legacy-table.js';
|
|
36
36
|
import './selection-shortcuts-hoc.js';
|
|
37
37
|
import './disable-hover-hoc.js';
|
|
38
38
|
import './row-with-focus-sensor.js';
|
|
@@ -62,7 +62,7 @@ class SmartTable extends PureComponent {
|
|
|
62
62
|
onSelectionChange: () => {}
|
|
63
63
|
};
|
|
64
64
|
state = {
|
|
65
|
-
selection: new
|
|
65
|
+
selection: new TableSelection({
|
|
66
66
|
data: this.props.data,
|
|
67
67
|
isItemSelectable: this.props.isItemSelectable
|
|
68
68
|
})
|
|
@@ -79,7 +79,7 @@ class SmartTable extends PureComponent {
|
|
|
79
79
|
});
|
|
80
80
|
} else if (this.props.data !== data || this.props.isItemSelectable !== isItemSelectable) {
|
|
81
81
|
this.setState({
|
|
82
|
-
selection: new
|
|
82
|
+
selection: new TableSelection({
|
|
83
83
|
data,
|
|
84
84
|
isItemSelectable
|
|
85
85
|
})
|
|
@@ -9,7 +9,7 @@ import Header from './header.js';
|
|
|
9
9
|
import selectionShortcutsHOC from './selection-shortcuts-hoc.js';
|
|
10
10
|
import disableHoverHOC from './disable-hover-hoc.js';
|
|
11
11
|
import RowWithFocusSensorCallbacks from './row-with-focus-sensor.js';
|
|
12
|
-
import { s as style } from '../_helpers/
|
|
12
|
+
import { s as style } from '../_helpers/legacy-table.js';
|
|
13
13
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
14
14
|
import '../global/compose-refs.js';
|
|
15
15
|
import 'memoize-one';
|
|
@@ -27,7 +27,7 @@ import '../icon/icon.js';
|
|
|
27
27
|
import 'util-deprecate';
|
|
28
28
|
import '../icon/icon.constants.js';
|
|
29
29
|
import '../_helpers/icon-svg.js';
|
|
30
|
-
import 'react
|
|
30
|
+
import 'react/compiler-runtime';
|
|
31
31
|
import '../global/memoize.js';
|
|
32
32
|
import '../control-help/control-help.js';
|
|
33
33
|
import '../global/data-tests.js';
|
|
@@ -17,7 +17,7 @@ import '../global/url.js';
|
|
|
17
17
|
import '../global/dom.js';
|
|
18
18
|
import '../global/memoize.js';
|
|
19
19
|
import '../avatar/fallback-avatar.js';
|
|
20
|
-
import 'react
|
|
20
|
+
import 'react/compiler-runtime';
|
|
21
21
|
import '../_helpers/avatar-info.js';
|
|
22
22
|
import '@jetbrains/icons/checkmark-12px';
|
|
23
23
|
import '@jetbrains/icons/remove-12px';
|
|
@@ -22,7 +22,7 @@ import 'combokeys';
|
|
|
22
22
|
import '../global/sniffer.js';
|
|
23
23
|
import 'sniffr';
|
|
24
24
|
import '../global/create-stateful-context.js';
|
|
25
|
-
import 'react
|
|
25
|
+
import 'react/compiler-runtime';
|
|
26
26
|
import 'react/jsx-runtime';
|
|
27
27
|
import './list-item.js';
|
|
28
28
|
import '../avatar/avatar.js';
|
package/components/list/list.js
CHANGED
|
@@ -26,7 +26,7 @@ import '../shortcuts/core.js';
|
|
|
26
26
|
import 'combokeys';
|
|
27
27
|
import '../global/sniffer.js';
|
|
28
28
|
import 'sniffr';
|
|
29
|
-
import 'react
|
|
29
|
+
import 'react/compiler-runtime';
|
|
30
30
|
import '../avatar/avatar.js';
|
|
31
31
|
import '../global/url.js';
|
|
32
32
|
import '../avatar/fallback-avatar.js';
|
|
@@ -3,7 +3,7 @@ import Dialog from '../dialog/dialog.js';
|
|
|
3
3
|
import 'classnames';
|
|
4
4
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
5
5
|
import '../_helpers/island.js';
|
|
6
|
-
import 'react
|
|
6
|
+
import 'react/compiler-runtime';
|
|
7
7
|
import ContentWrapper from '../island/content.js';
|
|
8
8
|
import LoaderScreen from '../loader-screen/loader-screen.js';
|
|
9
9
|
import { HUB_AUTH_PAGE_OPENED } from '../auth/background-flow.js';
|
|
@@ -15,7 +15,7 @@ import '../island/adaptive-island-hoc.js';
|
|
|
15
15
|
import '../global/linear-function.js';
|
|
16
16
|
import '../_helpers/island.js';
|
|
17
17
|
import '../island/header.js';
|
|
18
|
-
import 'react
|
|
18
|
+
import 'react/compiler-runtime';
|
|
19
19
|
import '../island/content.js';
|
|
20
20
|
import 'element-resize-detector';
|
|
21
21
|
import '../global/schedule-raf.js';
|
|
@@ -58,7 +58,7 @@ const reactRoot = createRoot(containerElement);
|
|
|
58
58
|
* Renders LoginDialog into virtual node to skip maintaining container
|
|
59
59
|
*/
|
|
60
60
|
function renderLoginDialog(props) {
|
|
61
|
-
reactRoot.render(/*#__PURE__*/jsx(ControlsHeightContext
|
|
61
|
+
reactRoot.render(/*#__PURE__*/jsx(ControlsHeightContext, {
|
|
62
62
|
value: getGlobalControlsHeight(),
|
|
63
63
|
children: /*#__PURE__*/jsx(LoginDialog, {
|
|
64
64
|
...props
|
|
@@ -20,7 +20,7 @@ import '../global/sniffer.js';
|
|
|
20
20
|
import 'sniffr';
|
|
21
21
|
import '../global/data-tests.js';
|
|
22
22
|
import '../tab-trap/tab-trap.js';
|
|
23
|
-
import 'react
|
|
23
|
+
import 'react/compiler-runtime';
|
|
24
24
|
import '../global/configuration.js';
|
|
25
25
|
import '../popup/position.js';
|
|
26
26
|
import '../popup/popup.target.js';
|
|
@@ -20,7 +20,7 @@ import '../global/configuration.js';
|
|
|
20
20
|
import '../_helpers/button.classes.js';
|
|
21
21
|
import '../icon/icon.constants.js';
|
|
22
22
|
import '../_helpers/icon-svg.js';
|
|
23
|
-
import 'react
|
|
23
|
+
import 'react/compiler-runtime';
|
|
24
24
|
import '../global/data-tests.js';
|
|
25
25
|
import '../control-label/control-label.js';
|
|
26
26
|
import '../control-help/control-help.js';
|
|
@@ -19,7 +19,7 @@ import 'core-js/modules/es.array.includes.js';
|
|
|
19
19
|
import 'combokeys';
|
|
20
20
|
import '../global/sniffer.js';
|
|
21
21
|
import 'sniffr';
|
|
22
|
-
import 'react
|
|
22
|
+
import 'react/compiler-runtime';
|
|
23
23
|
|
|
24
24
|
var styles = {"popup":"ring-popup-popup ring-global-font","cssAnchoredPopup":"ring-popup-cssAnchoredPopup","largeBorderRadius":"ring-popup-largeBorderRadius","hidden":"ring-popup-hidden","showing":"ring-popup-showing","attached":"ring-popup-attached"};
|
|
25
25
|
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { type HTMLAttributes, type ReactNode } from 'react';
|
|
1
|
+
import { type HTMLAttributes, type Ref, type ReactNode } from 'react';
|
|
2
2
|
interface ComplexConfig {
|
|
3
3
|
target: string | Element | undefined;
|
|
4
4
|
cssPositioning?: boolean;
|
|
5
5
|
}
|
|
6
6
|
export declare const PopupTargetContext: import("react").Context<string | Element | ComplexConfig | undefined>;
|
|
7
7
|
export interface PopupTargetProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children'> {
|
|
8
|
+
ref?: Ref<HTMLDivElement>;
|
|
8
9
|
id: string;
|
|
9
10
|
children: ReactNode | ((target: ReactNode) => ReactNode);
|
|
10
11
|
}
|
|
11
12
|
export declare function normalizePopupTarget(value: string | Element | undefined | ComplexConfig): string | Element | undefined;
|
|
12
|
-
export declare
|
|
13
|
+
export declare function PopupTarget({ ref, id, children, ...restProps }: PopupTargetProps): import("react").JSX.Element;
|
|
13
14
|
export {};
|