@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
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import { c } from 'react
|
|
1
|
+
import { c } from 'react/compiler-runtime';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import { useEffect } from 'react';
|
|
3
|
+
import { useEffectEvent, useEffect } from 'react';
|
|
4
4
|
import classNames from 'classnames';
|
|
5
5
|
import Heading, { Levels } from '../heading/heading.js';
|
|
6
6
|
import { Button } from '../button/button.js';
|
|
7
7
|
import { S as Size, i as inputStyles } from '../_helpers/input.js';
|
|
8
8
|
import getUID from '../global/get-uid.js';
|
|
9
9
|
import Shortcuts from '../shortcuts/shortcuts.js';
|
|
10
|
-
import useEventCallback from '../global/use-event-callback.js';
|
|
11
10
|
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
12
11
|
import 'util-deprecate';
|
|
13
12
|
import '../_helpers/heading.js';
|
|
@@ -40,11 +39,11 @@ function noop() {}
|
|
|
40
39
|
// eslint-disable-next-line complexity
|
|
41
40
|
const EditableHeading = props => {
|
|
42
41
|
const $ = c(129);
|
|
43
|
-
if ($[0] !== "
|
|
42
|
+
if ($[0] !== "7f58f2f72c51c33966552a21e4710894a686c3e1d3b939c62cf38b6b9080fa58") {
|
|
44
43
|
for (let $i = 0; $i < 129; $i += 1) {
|
|
45
44
|
$[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
46
45
|
}
|
|
47
|
-
$[0] = "
|
|
46
|
+
$[0] = "7f58f2f72c51c33966552a21e4710894a686c3e1d3b939c62cf38b6b9080fa58";
|
|
48
47
|
}
|
|
49
48
|
let children;
|
|
50
49
|
let className;
|
|
@@ -326,7 +325,7 @@ const EditableHeading = props => {
|
|
|
326
325
|
} else {
|
|
327
326
|
t25 = $[62];
|
|
328
327
|
}
|
|
329
|
-
const onMouseMove =
|
|
328
|
+
const onMouseMove = useEffectEvent(t25);
|
|
330
329
|
let t26;
|
|
331
330
|
if ($[63] !== disabled || $[64] !== isInSelectionMode || $[65] !== isMouseDown || $[66] !== onEdit) {
|
|
332
331
|
t26 = () => {
|
|
@@ -344,7 +343,7 @@ const EditableHeading = props => {
|
|
|
344
343
|
} else {
|
|
345
344
|
t26 = $[67];
|
|
346
345
|
}
|
|
347
|
-
const onMouseUp =
|
|
346
|
+
const onMouseUp = useEffectEvent(t26);
|
|
348
347
|
let t27;
|
|
349
348
|
if ($[68] !== checkValue || $[69] !== onFocus) {
|
|
350
349
|
t27 = e => {
|
|
@@ -399,7 +398,6 @@ const EditableHeading = props => {
|
|
|
399
398
|
}
|
|
400
399
|
const onInputBlur = t30;
|
|
401
400
|
let t31;
|
|
402
|
-
let t32;
|
|
403
401
|
if ($[78] !== onMouseMove || $[79] !== onMouseUp) {
|
|
404
402
|
t31 = () => {
|
|
405
403
|
window.addEventListener("mousemove", onMouseMove);
|
|
@@ -409,13 +407,17 @@ const EditableHeading = props => {
|
|
|
409
407
|
window.removeEventListener("mouseup", onMouseUp);
|
|
410
408
|
};
|
|
411
409
|
};
|
|
412
|
-
t32 = [onMouseMove, onMouseUp];
|
|
413
410
|
$[78] = onMouseMove;
|
|
414
411
|
$[79] = onMouseUp;
|
|
415
412
|
$[80] = t31;
|
|
416
|
-
$[81] = t32;
|
|
417
413
|
} else {
|
|
418
414
|
t31 = $[80];
|
|
415
|
+
}
|
|
416
|
+
let t32;
|
|
417
|
+
if ($[81] === Symbol.for("react.memo_cache_sentinel")) {
|
|
418
|
+
t32 = [];
|
|
419
|
+
$[81] = t32;
|
|
420
|
+
} else {
|
|
419
421
|
t32 = $[81];
|
|
420
422
|
}
|
|
421
423
|
useEffect(t31, t32);
|
|
@@ -572,7 +574,6 @@ const EditableHeading = props => {
|
|
|
572
574
|
}
|
|
573
575
|
return t38;
|
|
574
576
|
};
|
|
575
|
-
var editableHeading = /*#__PURE__*/React.memo(EditableHeading);
|
|
576
577
|
function _temp() {
|
|
577
578
|
return null;
|
|
578
579
|
}
|
|
@@ -588,4 +589,4 @@ function _temp2(el) {
|
|
|
588
589
|
el.style.height = `${el.scrollHeight - parseFloat(paddingTop) - parseFloat(paddingBottom)}px`;
|
|
589
590
|
}
|
|
590
591
|
|
|
591
|
-
export { EditableHeading, Levels, Size,
|
|
592
|
+
export { EditableHeading, Levels, Size, EditableHeading as default };
|
|
@@ -15,7 +15,7 @@ import '../global/sniffer.js';
|
|
|
15
15
|
import 'sniffr';
|
|
16
16
|
import '../global/data-tests.js';
|
|
17
17
|
import '../tab-trap/tab-trap.js';
|
|
18
|
-
import 'react
|
|
18
|
+
import 'react/compiler-runtime';
|
|
19
19
|
import '../global/configuration.js';
|
|
20
20
|
import '../popup/position.js';
|
|
21
21
|
import '../popup/popup.target.js';
|
|
@@ -6,7 +6,7 @@ import joinDataTestAttributes from '../global/data-tests.js';
|
|
|
6
6
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
7
7
|
import 'util-deprecate';
|
|
8
8
|
import '../_helpers/icon-svg.js';
|
|
9
|
-
import 'react
|
|
9
|
+
import 'react/compiler-runtime';
|
|
10
10
|
import '../global/memoize.js';
|
|
11
11
|
|
|
12
12
|
var styles = {"errorMessage":"ring-error-message-errorMessage","title":"ring-error-message-title","description":"ring-error-message-description","content":"ring-error-message-content","icon":"ring-error-message-icon"};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
export interface CollapsibleGroupProps {
|
|
3
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
3
4
|
avatar?: React.ReactNode;
|
|
4
5
|
title: React.ReactNode;
|
|
5
6
|
subtitle?: React.ReactNode;
|
|
@@ -12,5 +13,8 @@ export interface CollapsibleGroupProps {
|
|
|
12
13
|
interactive?: boolean;
|
|
13
14
|
'data-test'?: string | null | undefined;
|
|
14
15
|
}
|
|
15
|
-
declare const CollapsibleGroup:
|
|
16
|
+
declare const CollapsibleGroup: {
|
|
17
|
+
({ ref, avatar, title, subtitle, children, className, defaultExpanded, expanded, onChange, disableAnimation, interactive, "data-test": dataTest, }: CollapsibleGroupProps): React.JSX.Element;
|
|
18
|
+
displayName: string;
|
|
19
|
+
};
|
|
16
20
|
export default CollapsibleGroup;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c } from 'react
|
|
2
|
-
import {
|
|
1
|
+
import { c } from 'react/compiler-runtime';
|
|
2
|
+
import { useState, use } from 'react';
|
|
3
3
|
import classNames from 'classnames';
|
|
4
4
|
import chevronRightIcon from '@jetbrains/icons/chevron-12px-right';
|
|
5
5
|
import chevron12pxDown from '@jetbrains/icons/chevron-12px-down';
|
|
@@ -21,11 +21,11 @@ var styles = {"expand":"ring-collapsible-group-expand","collapseRoot":"ring-coll
|
|
|
21
21
|
|
|
22
22
|
function CollapsibleGroupHeaderContent(t0) {
|
|
23
23
|
const $ = c(16);
|
|
24
|
-
if ($[0] !== "
|
|
24
|
+
if ($[0] !== "0b0104270833ca27f2118e72fd68547a84ef5bf33921c0d276e95941f6f80768") {
|
|
25
25
|
for (let $i = 0; $i < 16; $i += 1) {
|
|
26
26
|
$[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
27
27
|
}
|
|
28
|
-
$[0] = "
|
|
28
|
+
$[0] = "0b0104270833ca27f2118e72fd68547a84ef5bf33921c0d276e95941f6f80768";
|
|
29
29
|
}
|
|
30
30
|
const {
|
|
31
31
|
avatar,
|
|
@@ -34,7 +34,7 @@ function CollapsibleGroupHeaderContent(t0) {
|
|
|
34
34
|
} = t0;
|
|
35
35
|
const {
|
|
36
36
|
collapsed
|
|
37
|
-
} =
|
|
37
|
+
} = use(CollapseContext);
|
|
38
38
|
let t1;
|
|
39
39
|
if ($[1] !== titleContent) {
|
|
40
40
|
t1 = /*#__PURE__*/jsx("span", {
|
|
@@ -120,11 +120,11 @@ function CollapsibleGroupHeaderContent(t0) {
|
|
|
120
120
|
}
|
|
121
121
|
function CollapsibleGroupHeader(t0) {
|
|
122
122
|
const $ = c(16);
|
|
123
|
-
if ($[0] !== "
|
|
123
|
+
if ($[0] !== "0b0104270833ca27f2118e72fd68547a84ef5bf33921c0d276e95941f6f80768") {
|
|
124
124
|
for (let $i = 0; $i < 16; $i += 1) {
|
|
125
125
|
$[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
126
126
|
}
|
|
127
|
-
$[0] = "
|
|
127
|
+
$[0] = "0b0104270833ca27f2118e72fd68547a84ef5bf33921c0d276e95941f6f80768";
|
|
128
128
|
}
|
|
129
129
|
let avatar;
|
|
130
130
|
let buttonProps;
|
|
@@ -152,7 +152,7 @@ function CollapsibleGroupHeader(t0) {
|
|
|
152
152
|
setCollapsed,
|
|
153
153
|
collapsed,
|
|
154
154
|
id
|
|
155
|
-
} =
|
|
155
|
+
} = use(CollapseContext);
|
|
156
156
|
const t1 = `collapse-content-${id}`;
|
|
157
157
|
const t2 = !collapsed;
|
|
158
158
|
let t3;
|
|
@@ -193,11 +193,11 @@ function CollapsibleGroupHeader(t0) {
|
|
|
193
193
|
}
|
|
194
194
|
function CollapsibleGroupHeaderStatic(t0) {
|
|
195
195
|
const $ = c(5);
|
|
196
|
-
if ($[0] !== "
|
|
196
|
+
if ($[0] !== "0b0104270833ca27f2118e72fd68547a84ef5bf33921c0d276e95941f6f80768") {
|
|
197
197
|
for (let $i = 0; $i < 5; $i += 1) {
|
|
198
198
|
$[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
199
199
|
}
|
|
200
|
-
$[0] = "
|
|
200
|
+
$[0] = "0b0104270833ca27f2118e72fd68547a84ef5bf33921c0d276e95941f6f80768";
|
|
201
201
|
}
|
|
202
202
|
const {
|
|
203
203
|
avatar,
|
|
@@ -223,15 +223,16 @@ function CollapsibleGroupHeaderStatic(t0) {
|
|
|
223
223
|
}
|
|
224
224
|
return t1;
|
|
225
225
|
}
|
|
226
|
-
const CollapsibleGroup =
|
|
226
|
+
const CollapsibleGroup = t0 => {
|
|
227
227
|
const $ = c(29);
|
|
228
|
-
if ($[0] !== "
|
|
228
|
+
if ($[0] !== "0b0104270833ca27f2118e72fd68547a84ef5bf33921c0d276e95941f6f80768") {
|
|
229
229
|
for (let $i = 0; $i < 29; $i += 1) {
|
|
230
230
|
$[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
231
231
|
}
|
|
232
|
-
$[0] = "
|
|
232
|
+
$[0] = "0b0104270833ca27f2118e72fd68547a84ef5bf33921c0d276e95941f6f80768";
|
|
233
233
|
}
|
|
234
234
|
const {
|
|
235
|
+
ref,
|
|
235
236
|
avatar,
|
|
236
237
|
title,
|
|
237
238
|
subtitle,
|
|
@@ -374,7 +375,7 @@ const CollapsibleGroup = /*#__PURE__*/forwardRef((t0, ref) => {
|
|
|
374
375
|
t14 = $[28];
|
|
375
376
|
}
|
|
376
377
|
return t14;
|
|
377
|
-
}
|
|
378
|
+
};
|
|
378
379
|
CollapsibleGroup.displayName = 'CollapsibleGroup';
|
|
379
380
|
function _temp() {}
|
|
380
381
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c } from 'react
|
|
2
|
-
import { memo, createContext, useState,
|
|
1
|
+
import { c } from 'react/compiler-runtime';
|
|
2
|
+
import { memo, createContext, useState, use, useEffect } from 'react';
|
|
3
3
|
import { jsx } from 'react/jsx-runtime';
|
|
4
4
|
|
|
5
5
|
function createStatefulContext(initialValue, name = '') {
|
|
@@ -7,11 +7,11 @@ function createStatefulContext(initialValue, name = '') {
|
|
|
7
7
|
const UpdateContext = /*#__PURE__*/createContext(() => {});
|
|
8
8
|
function Provider(t0) {
|
|
9
9
|
const $ = c(6);
|
|
10
|
-
if ($[0] !== "
|
|
10
|
+
if ($[0] !== "c32a3d1ce094187d9e31020169cf0e12fc089d2172bbc5ca2c801f434f79cb38") {
|
|
11
11
|
for (let $i = 0; $i < 6; $i += 1) {
|
|
12
12
|
$[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
13
13
|
}
|
|
14
|
-
$[0] = "
|
|
14
|
+
$[0] = "c32a3d1ce094187d9e31020169cf0e12fc089d2172bbc5ca2c801f434f79cb38";
|
|
15
15
|
}
|
|
16
16
|
const {
|
|
17
17
|
children
|
|
@@ -19,7 +19,7 @@ function createStatefulContext(initialValue, name = '') {
|
|
|
19
19
|
const [value, update] = useState(initialValue);
|
|
20
20
|
let t1;
|
|
21
21
|
if ($[1] !== children) {
|
|
22
|
-
t1 = /*#__PURE__*/jsx(UpdateContext
|
|
22
|
+
t1 = /*#__PURE__*/jsx(UpdateContext, {
|
|
23
23
|
value: update,
|
|
24
24
|
children: children
|
|
25
25
|
});
|
|
@@ -30,7 +30,7 @@ function createStatefulContext(initialValue, name = '') {
|
|
|
30
30
|
}
|
|
31
31
|
let t2;
|
|
32
32
|
if ($[3] !== t1 || $[4] !== value) {
|
|
33
|
-
t2 = /*#__PURE__*/jsx(ValueContext
|
|
33
|
+
t2 = /*#__PURE__*/jsx(ValueContext, {
|
|
34
34
|
value: value,
|
|
35
35
|
children: t1
|
|
36
36
|
});
|
|
@@ -45,13 +45,13 @@ function createStatefulContext(initialValue, name = '') {
|
|
|
45
45
|
Provider.displayName = `${name}Provider`;
|
|
46
46
|
function useUpdate(value, skipUpdate) {
|
|
47
47
|
const $ = c(6);
|
|
48
|
-
if ($[0] !== "
|
|
48
|
+
if ($[0] !== "c32a3d1ce094187d9e31020169cf0e12fc089d2172bbc5ca2c801f434f79cb38") {
|
|
49
49
|
for (let $i = 0; $i < 6; $i += 1) {
|
|
50
50
|
$[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
51
51
|
}
|
|
52
|
-
$[0] = "
|
|
52
|
+
$[0] = "c32a3d1ce094187d9e31020169cf0e12fc089d2172bbc5ca2c801f434f79cb38";
|
|
53
53
|
}
|
|
54
|
-
const update =
|
|
54
|
+
const update = use(UpdateContext);
|
|
55
55
|
let t0;
|
|
56
56
|
let t1;
|
|
57
57
|
if ($[1] !== skipUpdate || $[2] !== update || $[3] !== value) {
|
|
@@ -74,11 +74,11 @@ function createStatefulContext(initialValue, name = '') {
|
|
|
74
74
|
}
|
|
75
75
|
function Updater(t0) {
|
|
76
76
|
const $ = c(1);
|
|
77
|
-
if ($[0] !== "
|
|
77
|
+
if ($[0] !== "c32a3d1ce094187d9e31020169cf0e12fc089d2172bbc5ca2c801f434f79cb38") {
|
|
78
78
|
for (let $i = 0; $i < 1; $i += 1) {
|
|
79
79
|
$[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
80
80
|
}
|
|
81
|
-
$[0] = "
|
|
81
|
+
$[0] = "c32a3d1ce094187d9e31020169cf0e12fc089d2172bbc5ca2c801f434f79cb38";
|
|
82
82
|
}
|
|
83
83
|
const {
|
|
84
84
|
value,
|
|
@@ -3,9 +3,9 @@ import { type RefObject } from 'react';
|
|
|
3
3
|
* Usage:
|
|
4
4
|
*
|
|
5
5
|
* ```tsx
|
|
6
|
-
* <IntersectionObserverContext
|
|
6
|
+
* <IntersectionObserverContext value={useIntersectionObserverHandle()}>
|
|
7
7
|
* <YourComponent />
|
|
8
|
-
* </IntersectionObserverContext
|
|
8
|
+
* </IntersectionObserverContext>
|
|
9
9
|
*
|
|
10
10
|
* function YourComponent() {
|
|
11
11
|
* // Contains the current isIntersecting value
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { c } from 'react
|
|
2
|
-
import { useState, useEffect,
|
|
1
|
+
import { c } from 'react/compiler-runtime';
|
|
2
|
+
import { useState, useEffect, use, createContext } from 'react';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Usage:
|
|
6
6
|
*
|
|
7
7
|
* ```tsx
|
|
8
|
-
* <IntersectionObserverContext
|
|
8
|
+
* <IntersectionObserverContext value={useIntersectionObserverHandle()}>
|
|
9
9
|
* <YourComponent />
|
|
10
|
-
* </IntersectionObserverContext
|
|
10
|
+
* </IntersectionObserverContext>
|
|
11
11
|
*
|
|
12
12
|
* function YourComponent() {
|
|
13
13
|
* // Contains the current isIntersecting value
|
|
@@ -22,11 +22,11 @@ import { useState, useEffect, createContext, useContext } from 'react';
|
|
|
22
22
|
const IntersectionObserverContext = /*#__PURE__*/createContext(null);
|
|
23
23
|
function useIntersectionObserverHandle(rootRef, rootMargin, scrollMargin) {
|
|
24
24
|
const $ = c(6);
|
|
25
|
-
if ($[0] !== "
|
|
25
|
+
if ($[0] !== "dfabcb1b8108e1a7f2a2e74a1ab9f1d1069e1f7ab04eda46b950789426c929c9") {
|
|
26
26
|
for (let $i = 0; $i < 6; $i += 1) {
|
|
27
27
|
$[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
28
28
|
}
|
|
29
|
-
$[0] = "
|
|
29
|
+
$[0] = "dfabcb1b8108e1a7f2a2e74a1ab9f1d1069e1f7ab04eda46b950789426c929c9";
|
|
30
30
|
}
|
|
31
31
|
const [handle, setHandle] = useState(null);
|
|
32
32
|
let t0;
|
|
@@ -75,13 +75,13 @@ function useIntersectionObserverHandle(rootRef, rootMargin, scrollMargin) {
|
|
|
75
75
|
}
|
|
76
76
|
function useIsIntersecting(elementRef) {
|
|
77
77
|
const $ = c(5);
|
|
78
|
-
if ($[0] !== "
|
|
78
|
+
if ($[0] !== "dfabcb1b8108e1a7f2a2e74a1ab9f1d1069e1f7ab04eda46b950789426c929c9") {
|
|
79
79
|
for (let $i = 0; $i < 5; $i += 1) {
|
|
80
80
|
$[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
81
81
|
}
|
|
82
|
-
$[0] = "
|
|
82
|
+
$[0] = "dfabcb1b8108e1a7f2a2e74a1ab9f1d1069e1f7ab04eda46b950789426c929c9";
|
|
83
83
|
}
|
|
84
|
-
const handle =
|
|
84
|
+
const handle = use(IntersectionObserverContext);
|
|
85
85
|
const [isIntersecting, setIsIntersecting] = useState(false);
|
|
86
86
|
let t0;
|
|
87
87
|
let t1;
|
|
@@ -107,13 +107,13 @@ function useIsIntersecting(elementRef) {
|
|
|
107
107
|
}
|
|
108
108
|
function useIsIntersectingListener(elementRef, onChange) {
|
|
109
109
|
const $ = c(6);
|
|
110
|
-
if ($[0] !== "
|
|
110
|
+
if ($[0] !== "dfabcb1b8108e1a7f2a2e74a1ab9f1d1069e1f7ab04eda46b950789426c929c9") {
|
|
111
111
|
for (let $i = 0; $i < 6; $i += 1) {
|
|
112
112
|
$[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
113
113
|
}
|
|
114
|
-
$[0] = "
|
|
114
|
+
$[0] = "dfabcb1b8108e1a7f2a2e74a1ab9f1d1069e1f7ab04eda46b950789426c929c9";
|
|
115
115
|
}
|
|
116
|
-
const handle =
|
|
116
|
+
const handle = use(IntersectionObserverContext);
|
|
117
117
|
let t0;
|
|
118
118
|
let t1;
|
|
119
119
|
if ($[1] !== elementRef || $[2] !== handle || $[3] !== onChange) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Component, type PropsWithoutRef } from 'react';
|
|
1
|
+
import { Component, type Ref, type PropsWithoutRef } from 'react';
|
|
2
2
|
export interface RerenderableComponent<P, S> extends Component<P, S> {
|
|
3
3
|
node?: HTMLElement | null;
|
|
4
4
|
}
|
|
@@ -7,4 +7,6 @@ export interface RerenderableComponentClass<P, S> {
|
|
|
7
7
|
}
|
|
8
8
|
export default function rerenderHOC<P extends {}, C extends Component<P, unknown>>(ComposedComponent: {
|
|
9
9
|
new (props: P): C;
|
|
10
|
-
}):
|
|
10
|
+
}): ({ ref, ...props }: PropsWithoutRef<P> & {
|
|
11
|
+
ref?: Ref<C>;
|
|
12
|
+
}) => import("react").JSX.Element;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { forwardRef, Component } from 'react';
|
|
1
|
+
import { Component } from 'react';
|
|
3
2
|
import { createComposedRef } from './compose-refs.js';
|
|
4
3
|
import { jsx } from 'react/jsx-runtime';
|
|
5
4
|
import 'memoize-one';
|
|
@@ -19,28 +18,15 @@ function rerenderHOC(ComposedComponent) {
|
|
|
19
18
|
});
|
|
20
19
|
}
|
|
21
20
|
}
|
|
22
|
-
return
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
if ($[1] !== props || $[2] !== ref) {
|
|
32
|
-
t0 = /*#__PURE__*/jsx(Rerenderer, {
|
|
33
|
-
props: props,
|
|
34
|
-
forwardedRef: ref
|
|
35
|
-
});
|
|
36
|
-
$[1] = props;
|
|
37
|
-
$[2] = ref;
|
|
38
|
-
$[3] = t0;
|
|
39
|
-
} else {
|
|
40
|
-
t0 = $[3];
|
|
41
|
-
}
|
|
42
|
-
return t0;
|
|
43
|
-
});
|
|
21
|
+
return function RerendererForwardRef({
|
|
22
|
+
ref,
|
|
23
|
+
...props
|
|
24
|
+
}) {
|
|
25
|
+
return /*#__PURE__*/jsx(Rerenderer, {
|
|
26
|
+
props: props,
|
|
27
|
+
forwardedRef: ref !== null && ref !== void 0 ? ref : null
|
|
28
|
+
});
|
|
29
|
+
};
|
|
44
30
|
}
|
|
45
31
|
|
|
46
32
|
export { rerenderHOC as default };
|
|
@@ -17,7 +17,7 @@ export interface CloneWithConfig<T> {
|
|
|
17
17
|
selected?: Set<T> | readonly T[] | null | undefined;
|
|
18
18
|
focused?: T | null | undefined;
|
|
19
19
|
}
|
|
20
|
-
export default class
|
|
20
|
+
export default class TableSelection<T> {
|
|
21
21
|
protected _rawData: readonly T[];
|
|
22
22
|
protected _getChildren: (item: T) => readonly T[];
|
|
23
23
|
protected _data: Set<T>;
|
|
@@ -28,19 +28,19 @@ export default class Selection<T> {
|
|
|
28
28
|
constructor({ data, selected, focused, getKey, getChildren, isItemSelectable, }?: TableSelectionConfig<T>);
|
|
29
29
|
protected _buildData(data: readonly T[] | null | undefined): Set<T>;
|
|
30
30
|
protected _buildSelected(data: Set<T>, selected: Set<T>): Set<T>;
|
|
31
|
-
cloneWith({ data, selected, focused }: CloneWithConfig<T>):
|
|
32
|
-
focus(value: T | null | undefined):
|
|
33
|
-
moveUp():
|
|
34
|
-
moveDown():
|
|
35
|
-
moveStart():
|
|
36
|
-
moveEnd():
|
|
37
|
-
select(value?: T | null):
|
|
38
|
-
deselect(value?: T | null):
|
|
39
|
-
toggleSelection(value?: T | null):
|
|
40
|
-
selectAll():
|
|
41
|
-
resetFocus():
|
|
42
|
-
resetSelection():
|
|
43
|
-
reset():
|
|
31
|
+
cloneWith({ data, selected, focused }: CloneWithConfig<T>): TableSelection<T>;
|
|
32
|
+
focus(value: T | null | undefined): TableSelection<T>;
|
|
33
|
+
moveUp(): TableSelection<T> | undefined;
|
|
34
|
+
moveDown(): TableSelection<T> | undefined;
|
|
35
|
+
moveStart(): TableSelection<T> | undefined;
|
|
36
|
+
moveEnd(): TableSelection<T> | undefined;
|
|
37
|
+
select(value?: T | null): TableSelection<T>;
|
|
38
|
+
deselect(value?: T | null): TableSelection<T>;
|
|
39
|
+
toggleSelection(value?: T | null): TableSelection<T>;
|
|
40
|
+
selectAll(): TableSelection<T>;
|
|
41
|
+
resetFocus(): TableSelection<T>;
|
|
42
|
+
resetSelection(): TableSelection<T>;
|
|
43
|
+
reset(): TableSelection<T>;
|
|
44
44
|
isFocused(value: T | null): boolean;
|
|
45
45
|
isSelected(value: T | null): boolean;
|
|
46
46
|
getFocused(): T | null;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @deprecated SelectionItem is deprecated. Use your own item type and provide a `getKey` function instead if there is no `id` identifier in your item type.
|
|
3
3
|
*/
|
|
4
|
-
|
|
4
|
+
class TableSelection {
|
|
5
5
|
_rawData;
|
|
6
6
|
_getChildren;
|
|
7
7
|
_data;
|
|
@@ -185,6 +185,6 @@ let Selection$1 = class Selection {
|
|
|
185
185
|
}
|
|
186
186
|
return new Set();
|
|
187
187
|
}
|
|
188
|
-
}
|
|
188
|
+
}
|
|
189
189
|
|
|
190
|
-
export {
|
|
190
|
+
export { TableSelection as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type HTMLAttributes, type ReactElement, type FunctionComponent } from 'react';
|
|
1
|
+
import { type HTMLAttributes, type Ref, type ReactElement, type FunctionComponent } from 'react';
|
|
2
2
|
declare enum Theme {
|
|
3
3
|
AUTO = "auto",
|
|
4
4
|
LIGHT = "light",
|
|
@@ -18,11 +18,12 @@ export interface WithThemeClassesProps {
|
|
|
18
18
|
export declare function WithThemeClasses({ theme, children }: WithThemeClassesProps): ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
19
19
|
export declare function applyTheme(theme: Theme.DARK | Theme.LIGHT, container: HTMLElement): void;
|
|
20
20
|
type WrapperType = FunctionComponent<HTMLAttributes<HTMLElement> & React.RefAttributes<HTMLElement>>;
|
|
21
|
-
export interface ThemeProviderProps extends HTMLAttributes<
|
|
21
|
+
export interface ThemeProviderProps extends HTMLAttributes<HTMLElement> {
|
|
22
|
+
ref?: Ref<HTMLElement>;
|
|
22
23
|
theme?: Theme;
|
|
23
24
|
passToPopups?: boolean;
|
|
24
25
|
WrapperComponent?: WrapperType;
|
|
25
26
|
target?: HTMLElement;
|
|
26
27
|
}
|
|
27
|
-
export declare
|
|
28
|
+
export declare function ThemeProvider({ ref, ...props }: ThemeProviderProps): import("react").JSX.Element;
|
|
28
29
|
export default Theme;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import 'react
|
|
1
|
+
import 'react/compiler-runtime';
|
|
2
2
|
import 'react';
|
|
3
3
|
import 'classnames';
|
|
4
4
|
export { G as GLOBAL_DARK_CLASS_NAME, a as ThemeContext, b as ThemeProvider, W as WithThemeClasses, c as applyTheme, T as default, u as useTheme, e as useThemeClasses } from '../_helpers/theme.js';
|
|
@@ -9,7 +9,7 @@ import 'util-deprecate';
|
|
|
9
9
|
import '../icon/icon.js';
|
|
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
|
import '../link/clickable-link.js';
|
|
15
15
|
import '../global/controls-height.js';
|
|
@@ -10,7 +10,7 @@ export { default as Profile } from './profile.js';
|
|
|
10
10
|
export { default as SmartProfile } from './smart-profile.js';
|
|
11
11
|
export { default as Services } from './services.js';
|
|
12
12
|
export { default as SmartServices } from './smart-services.js';
|
|
13
|
-
import 'react
|
|
13
|
+
import 'react/compiler-runtime';
|
|
14
14
|
import '../icon/icon.js';
|
|
15
15
|
import 'util-deprecate';
|
|
16
16
|
import '../icon/icon.constants.js';
|
|
@@ -6,7 +6,7 @@ import { jsx } from 'react/jsx-runtime';
|
|
|
6
6
|
import { Size } from '../icon/icon.constants.js';
|
|
7
7
|
import 'util-deprecate';
|
|
8
8
|
import '../_helpers/icon-svg.js';
|
|
9
|
-
import 'react
|
|
9
|
+
import 'react/compiler-runtime';
|
|
10
10
|
import '../global/memoize.js';
|
|
11
11
|
|
|
12
12
|
class Logo extends PureComponent {
|
|
@@ -15,7 +15,7 @@ import '../global/url.js';
|
|
|
15
15
|
import '../global/dom.js';
|
|
16
16
|
import '../global/memoize.js';
|
|
17
17
|
import '../avatar/fallback-avatar.js';
|
|
18
|
-
import 'react
|
|
18
|
+
import 'react/compiler-runtime';
|
|
19
19
|
import '../global/get-uid.js';
|
|
20
20
|
import '../_helpers/avatar-info.js';
|
|
21
21
|
import '@jetbrains/icons/chevron-down';
|
|
@@ -10,7 +10,7 @@ import { jsx, jsxs } from 'react/jsx-runtime';
|
|
|
10
10
|
import '../global/data-tests.js';
|
|
11
11
|
import '../global/typescript-utils.js';
|
|
12
12
|
import '../_helpers/anchor.js';
|
|
13
|
-
import 'react
|
|
13
|
+
import 'react/compiler-runtime';
|
|
14
14
|
import '../button/button.js';
|
|
15
15
|
import '@jetbrains/icons/chevron-down';
|
|
16
16
|
import '@jetbrains/icons/chevron-12px-down';
|
|
@@ -16,7 +16,7 @@ import '../icon/icon.js';
|
|
|
16
16
|
import 'util-deprecate';
|
|
17
17
|
import '../icon/icon.constants.js';
|
|
18
18
|
import '../_helpers/icon-svg.js';
|
|
19
|
-
import 'react
|
|
19
|
+
import 'react/compiler-runtime';
|
|
20
20
|
import '../global/memoize.js';
|
|
21
21
|
import '../loader-inline/loader-inline.js';
|
|
22
22
|
import '../global/data-tests.js';
|
|
@@ -9,7 +9,7 @@ import '../dropdown/dropdown.js';
|
|
|
9
9
|
import '../global/data-tests.js';
|
|
10
10
|
import '../global/typescript-utils.js';
|
|
11
11
|
import '../_helpers/anchor.js';
|
|
12
|
-
import 'react
|
|
12
|
+
import 'react/compiler-runtime';
|
|
13
13
|
import '../button/button.js';
|
|
14
14
|
import '@jetbrains/icons/chevron-down';
|
|
15
15
|
import '@jetbrains/icons/chevron-12px-down';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c } from 'react
|
|
1
|
+
import { c } from 'react/compiler-runtime';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { useEffect } from 'react';
|
|
4
4
|
import { translate, getTranslations, setTranslations } from './i18n.js';
|
|
@@ -10,11 +10,11 @@ const I18nContext = /*#__PURE__*/React.createContext({
|
|
|
10
10
|
});
|
|
11
11
|
const I18nContextHolder = t0 => {
|
|
12
12
|
const $ = c(9);
|
|
13
|
-
if ($[0] !== "
|
|
13
|
+
if ($[0] !== "a2018c2c34e104bb25f29b4f924dc1f30d92611151a999bc264d56ee3cdb5c56") {
|
|
14
14
|
for (let $i = 0; $i < 9; $i += 1) {
|
|
15
15
|
$[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
16
16
|
}
|
|
17
|
-
$[0] = "
|
|
17
|
+
$[0] = "a2018c2c34e104bb25f29b4f924dc1f30d92611151a999bc264d56ee3cdb5c56";
|
|
18
18
|
}
|
|
19
19
|
const {
|
|
20
20
|
children,
|
|
@@ -48,7 +48,7 @@ const I18nContextHolder = t0 => {
|
|
|
48
48
|
}
|
|
49
49
|
let t4;
|
|
50
50
|
if ($[6] !== children || $[7] !== t3) {
|
|
51
|
-
t4 = /*#__PURE__*/jsx(I18nContext
|
|
51
|
+
t4 = /*#__PURE__*/jsx(I18nContext, {
|
|
52
52
|
value: t3,
|
|
53
53
|
children: children
|
|
54
54
|
});
|