@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.
Files changed (174) hide show
  1. package/components/_helpers/anchor.js +1 -1
  2. package/components/_helpers/avatar-info.js +1 -1
  3. package/components/_helpers/icon-svg.js +1 -1
  4. package/components/_helpers/legacy-table.js +3 -0
  5. package/components/_helpers/tab-link.js +1 -1
  6. package/components/_helpers/theme.js +49 -37
  7. package/components/alert/alert.js +1 -1
  8. package/components/alert-service/alert-service.js +1 -1
  9. package/components/auth/auth-core.js +1 -1
  10. package/components/auth/auth.js +1 -1
  11. package/components/auth/down-notification.js +1 -1
  12. package/components/auth/iframe-flow.js +1 -1
  13. package/components/auth/storage.js +1 -1
  14. package/components/auth-dialog/auth-dialog.js +1 -1
  15. package/components/auth-dialog-service/auth-dialog-service.js +2 -2
  16. package/components/avatar/avatar-info.js +1 -1
  17. package/components/avatar/avatar.js +1 -1
  18. package/components/avatar/fallback-avatar.js +1 -1
  19. package/components/avatar-stack/avatar-stack.js +1 -1
  20. package/components/banner/banner.js +1 -1
  21. package/components/button/button.js +1 -1
  22. package/components/button-group/button-group.js +1 -1
  23. package/components/checkbox/checkbox.js +1 -1
  24. package/components/clipboard/clipboard.js +1 -1
  25. package/components/collapse/collapse-content.js +5 -5
  26. package/components/collapse/collapse-control.js +5 -5
  27. package/components/collapse/collapse.js +4 -4
  28. package/components/confirm/confirm.js +1 -1
  29. package/components/confirm-service/confirm-service.js +2 -2
  30. package/components/contenteditable/contenteditable.js +1 -1
  31. package/components/control-help/control-help.js +1 -1
  32. package/components/control-label/control-label.js +1 -1
  33. package/components/data-list/data-list.d.ts +1 -1
  34. package/components/data-list/data-list.js +1 -1
  35. package/components/data-list/data-list.mock.d.ts +1 -1
  36. package/components/data-list/data-list.mock.js +1 -1
  37. package/components/data-list/item.d.ts +1 -1
  38. package/components/data-list/item.js +1 -1
  39. package/components/data-list/selection.d.ts +1 -1
  40. package/components/data-list/selection.js +2 -2
  41. package/components/data-list/title.js +1 -1
  42. package/components/date-picker/date-input.js +1 -1
  43. package/components/date-picker/date-picker.js +1 -2
  44. package/components/date-picker/date-popup.js +1 -2
  45. package/components/date-picker/month-names.js +1 -1
  46. package/components/date-picker/month-slider.js +1 -1
  47. package/components/date-picker/month.js +1 -1
  48. package/components/date-picker/months.js +4 -5
  49. package/components/date-picker/use-intersection-observer.js +1 -1
  50. package/components/date-picker/use-scroll-behavior.js +45 -44
  51. package/components/date-picker/weekdays.js +1 -1
  52. package/components/date-picker/years.js +6 -7
  53. package/components/dialog/dialog.d.ts +2 -2
  54. package/components/dialog/dialog.js +3 -3
  55. package/components/dropdown/anchor.js +1 -1
  56. package/components/dropdown/dropdown.js +1 -1
  57. package/components/dropdown-menu/dropdown-menu.d.ts +4 -4
  58. package/components/dropdown-menu/dropdown-menu.js +62 -57
  59. package/components/editable-heading/editable-heading.d.ts +1 -2
  60. package/components/editable-heading/editable-heading.js +13 -12
  61. package/components/error-bubble/error-bubble.js +1 -1
  62. package/components/error-message/error-message.js +1 -1
  63. package/components/expand/collapsible-group.d.ts +5 -1
  64. package/components/expand/collapsible-group.js +15 -14
  65. package/components/footer/footer.js +1 -1
  66. package/components/global/create-stateful-context.js +11 -11
  67. package/components/global/intersection-observer-context.d.ts +2 -2
  68. package/components/global/intersection-observer-context.js +12 -12
  69. package/components/global/rerender-hoc.d.ts +4 -2
  70. package/components/global/rerender-hoc.js +10 -24
  71. package/components/{legacy-table/selection.d.ts → global/table-selection.d.ts} +14 -14
  72. package/components/{legacy-table/selection.js → global/table-selection.js} +3 -3
  73. package/components/global/theme.d.ts +4 -3
  74. package/components/global/theme.js +1 -1
  75. package/components/header/header-icon.js +1 -1
  76. package/components/header/header.js +1 -1
  77. package/components/header/links.js +1 -1
  78. package/components/header/logo.js +1 -1
  79. package/components/header/profile.js +1 -1
  80. package/components/header/services.js +1 -1
  81. package/components/header/smart-profile.js +1 -1
  82. package/components/header/smart-services.js +1 -1
  83. package/components/heading/heading.js +1 -1
  84. package/components/i18n/i18n-context.js +4 -4
  85. package/components/icon/icon-svg.js +1 -1
  86. package/components/icon/icon.js +1 -1
  87. package/components/icon/index.js +1 -1
  88. package/components/input/input.js +1 -1
  89. package/components/island/adaptive-island-hoc.js +3 -3
  90. package/components/island/content.d.ts +7 -2
  91. package/components/island/content.js +27 -18
  92. package/components/island/header.js +1 -1
  93. package/components/island/island.js +1 -1
  94. package/components/legacy-table/cell.js +1 -1
  95. package/components/legacy-table/header-cell.js +2 -2
  96. package/components/legacy-table/header.js +2 -2
  97. package/components/legacy-table/multitable.d.ts +1 -1
  98. package/components/legacy-table/row-with-focus-sensor.js +2 -2
  99. package/components/legacy-table/row.js +4 -4
  100. package/components/legacy-table/selection-adapter.d.ts +3 -3
  101. package/components/legacy-table/selection-shortcuts-hoc.d.ts +5 -5
  102. package/components/legacy-table/simple-table.d.ts +2 -2
  103. package/components/legacy-table/simple-table.js +4 -4
  104. package/components/legacy-table/smart-table.d.ts +5 -5
  105. package/components/legacy-table/smart-table.js +5 -5
  106. package/components/legacy-table/table.js +2 -2
  107. package/components/list/list-item.js +1 -1
  108. package/components/list/list-users-groups-source.js +1 -1
  109. package/components/list/list.js +1 -1
  110. package/components/login-dialog/login-dialog.js +1 -1
  111. package/components/login-dialog/service.js +2 -2
  112. package/components/message/message.js +1 -1
  113. package/components/pager/pager.js +1 -1
  114. package/components/popup/popup.js +1 -1
  115. package/components/popup/popup.target.d.ts +3 -2
  116. package/components/popup/popup.target.js +32 -28
  117. package/components/popup-menu/popup-menu.js +1 -1
  118. package/components/query-assist/query-assist-suggestions.js +1 -1
  119. package/components/query-assist/query-assist.d.ts +3 -1
  120. package/components/query-assist/query-assist.js +2 -2
  121. package/components/radio/radio-item.d.ts +3 -3
  122. package/components/radio/radio-item.js +32 -18
  123. package/components/radio/radio.d.ts +2 -2
  124. package/components/radio/radio.js +2 -2
  125. package/components/scrollable-section/scrollable-section.js +1 -1
  126. package/components/select/chevron-button.js +1 -1
  127. package/components/select/select-filter.js +1 -1
  128. package/components/select/select-popup.js +1 -1
  129. package/components/select/select.d.ts +3 -1
  130. package/components/select/select.js +1 -1
  131. package/components/slider/slider.js +100 -96
  132. package/components/storage/storage-local.js +1 -1
  133. package/components/storage/storage.js +1 -1
  134. package/components/style.css +1 -1
  135. package/components/tab-trap/tab-trap.d.ts +3 -3
  136. package/components/tab-trap/tab-trap.js +83 -80
  137. package/components/table/default-item-renderer.d.ts +20 -9
  138. package/components/table/default-item-renderer.js +83 -142
  139. package/components/table/table-component.d.ts +43 -16
  140. package/components/table/table-component.js +162 -188
  141. package/components/table/table-primitives.d.ts +28 -0
  142. package/components/table/{table-base.js → table-primitives.js} +110 -98
  143. package/components/table/table-row-focus.d.ts +4 -0
  144. package/components/table/table-row-focus.js +41 -0
  145. package/components/table/table-virtualize.d.ts +3 -3
  146. package/components/table/table-virtualize.js +111 -112
  147. package/components/table/table.d.ts +9 -24
  148. package/components/table/table.js +4 -3
  149. package/components/tabs/collapsible-more.js +1 -1
  150. package/components/tabs/collapsible-tab.js +1 -1
  151. package/components/tabs/collapsible-tabs.js +1 -1
  152. package/components/tabs/dumb-tabs.js +1 -1
  153. package/components/tabs/smart-tabs.js +1 -1
  154. package/components/tabs/tab-link.js +1 -1
  155. package/components/tabs/tabs.js +1 -1
  156. package/components/tag/tag.js +1 -1
  157. package/components/tags-input/tags-input.d.ts +3 -1
  158. package/components/tags-input/tags-input.js +1 -1
  159. package/components/tags-list/tags-list.js +1 -1
  160. package/components/toggle/toggle.js +1 -1
  161. package/components/tooltip/tooltip.js +2 -2
  162. package/components/upload/upload.d.ts +4 -3
  163. package/components/upload/upload.js +7 -29
  164. package/components/user-agreement/service.js +2 -2
  165. package/components/user-agreement/user-agreement.js +1 -1
  166. package/components/user-card/card.js +1 -1
  167. package/components/user-card/smart-user-card-tooltip.js +1 -1
  168. package/components/user-card/tooltip.js +1 -1
  169. package/components/user-card/user-card.js +1 -1
  170. package/package.json +6 -6
  171. package/components/_helpers/table2.js +0 -3
  172. package/components/global/use-event-callback.d.ts +0 -1
  173. package/components/global/use-event-callback.js +0 -44
  174. package/components/table/table-base.d.ts +0 -24
@@ -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-compiler-runtime';
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.
@@ -4,6 +4,6 @@ import 'react';
4
4
  import 'classnames';
5
5
  import 'util-deprecate';
6
6
  import '../_helpers/icon-svg.js';
7
- import 'react-compiler-runtime';
7
+ import 'react/compiler-runtime';
8
8
  import '../global/memoize.js';
9
9
  import 'react/jsx-runtime';
@@ -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-compiler-runtime';
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 { createContext, Component } from 'react';
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.Provider, {
28
+ return /*#__PURE__*/jsx(PhaseContext, {
29
29
  value: this.state.phase,
30
- children: /*#__PURE__*/jsx(ScrollHandlerContext.Provider, {
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: import("react").ForwardRefExoticComponent<IslandContentProps & import("react").RefAttributes<Content>>;
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-compiler-runtime';
2
- import { forwardRef, Component } from 'react';
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 = /*#__PURE__*/forwardRef((props, ref) => {
115
- const $ = c(4);
116
- if ($[0] !== "c32a71969444a48a67d8737ca30be3eaf2fe1249949706470667058a052ec377") {
117
- for (let $i = 0; $i < 4; $i += 1) {
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] = "c32a71969444a48a67d8737ca30be3eaf2fe1249949706470667058a052ec377";
121
+ $[0] = "e4db06b946c16f75a9eac1dc4434adb1fda7cf8013533176d779915994c312c4";
121
122
  }
122
- let t0;
123
- if ($[1] !== props || $[2] !== ref) {
124
- t0 = /*#__PURE__*/jsx(ScrollHandlerContext.Consumer, {
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
- $[1] = props;
138
- $[2] = ref;
139
- $[3] = t0;
147
+ $[3] = props;
148
+ $[4] = t1;
140
149
  } else {
141
- t0 = $[3];
150
+ t1 = $[4];
142
151
  }
143
- return t0;
144
- });
152
+ return t1;
153
+ };
145
154
  ContentWrapper.displayName = 'ContentWrapper';
146
155
 
147
156
  export { ContentWrapper as default };
@@ -1,4 +1,4 @@
1
- import { c } from 'react-compiler-runtime';
1
+ import { c } from 'react/compiler-runtime';
2
2
  import { Component } from 'react';
3
3
  import classNames from 'classnames';
4
4
  import { interpolateLinear } from '../global/linear-function.js';
@@ -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-compiler-runtime';
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/table2.js';
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/table2.js';
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-compiler-runtime';
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/table2.js';
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-compiler-runtime';
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 './selection';
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-compiler-runtime';
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/table2.js';
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-compiler-runtime';
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/table2.js';
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] !== "55dd4b764fc7ce682e91a4f9ed76700dd0c03ecdbbc71fc25d11ed30dc931312") {
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] = "55dd4b764fc7ce682e91a4f9ed76700dd0c03ecdbbc71fc25d11ed30dc931312";
53
+ $[0] = "6d181a7b79d6c43c9efeb4fa43b5ac2047952f3bf582e26f319cda89e9e36280";
54
54
  }
55
55
  const {
56
56
  alwaysShowDragHandle,
@@ -1,6 +1,6 @@
1
- import type Selection from './selection';
2
- import type { SelectionItem } from './selection';
3
- export default function selectionAdapter(getSelection: () => Selection<SelectionItem>): {
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 Selection from './selection';
3
+ import type TableSelection from '../global/table-selection';
4
4
  export interface SelectionShortcutsOuterProps<T extends object> {
5
- selection: Selection<T>;
5
+ selection: TableSelection<T>;
6
6
  selectable?: boolean | undefined;
7
- onSelect?: ((selection: Selection<T>) => void) | undefined;
7
+ onSelect?: ((selection: TableSelection<T>) => void) | undefined;
8
8
  shortcuts?: ShortcutsMap | undefined;
9
9
  }
10
10
  export interface SelectionShortcutsAddProps<T extends object> {
11
- selection: Selection<T>;
11
+ selection: TableSelection<T>;
12
12
  selectable: boolean;
13
- onSelect: (selection: Selection<T>) => void;
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 Selection, { type SelectionItem } from './selection';
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: Selection<T>;
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 Selection$1 from './selection.js';
5
- import { s as style } from '../_helpers/table2.js';
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-compiler-runtime';
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 Selection$1({
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 Selection, { type SelectionItem } from './selection';
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: Selection<T>) => void;
6
- selection?: Selection<T>;
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: Selection<T>;
13
+ selection: TableSelection<T>;
14
14
  };
15
15
  UNSAFE_componentWillReceiveProps(nextProps: SmartTableProps<T>): void;
16
- onSelect: (selection: Selection<T>) => void;
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 Selection$1 from './selection.js';
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-compiler-runtime';
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/table2.js';
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 Selection$1({
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 Selection$1({
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/table2.js';
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-compiler-runtime';
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-compiler-runtime';
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-compiler-runtime';
25
+ import 'react/compiler-runtime';
26
26
  import 'react/jsx-runtime';
27
27
  import './list-item.js';
28
28
  import '../avatar/avatar.js';
@@ -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-compiler-runtime';
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-compiler-runtime';
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-compiler-runtime';
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.Provider, {
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-compiler-runtime';
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-compiler-runtime';
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-compiler-runtime';
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 const PopupTarget: import("react").ForwardRefExoticComponent<PopupTargetProps & import("react").RefAttributes<HTMLDivElement>>;
13
+ export declare function PopupTarget({ ref, id, children, ...restProps }: PopupTargetProps): import("react").JSX.Element;
13
14
  export {};