@jetbrains/ring-ui-built 7.0.124 → 8.0.0-beta.10

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 (262) hide show
  1. package/components/_helpers/anchor.js +1 -1
  2. package/components/_helpers/avatar-info.js +3 -5
  3. package/components/_helpers/caption.js +1 -1
  4. package/components/_helpers/icon-svg.js +37 -52
  5. package/components/_helpers/legacy-table.js +3 -0
  6. package/components/_helpers/tab-link.js +1 -1
  7. package/components/_helpers/table.js +2 -2
  8. package/components/_helpers/theme.js +49 -37
  9. package/components/alert/alert-actions.js +1 -1
  10. package/components/alert/alert-heading.js +1 -1
  11. package/components/alert/alert.js +2 -2
  12. package/components/alert-service/alert-service.js +2 -2
  13. package/components/auth/auth-core.js +2 -2
  14. package/components/auth/auth.js +2 -2
  15. package/components/auth/down-notification.js +2 -2
  16. package/components/auth/iframe-flow.js +1 -1
  17. package/components/auth/storage.js +2 -2
  18. package/components/auth-dialog/auth-dialog.js +2 -2
  19. package/components/auth-dialog-service/auth-dialog-service.js +2 -2
  20. package/components/avatar/avatar-info.js +1 -1
  21. package/components/avatar/avatar-size.d.ts +0 -4
  22. package/components/avatar/avatar-size.js +0 -4
  23. package/components/avatar/avatar.js +1 -8
  24. package/components/avatar/fallback-avatar.js +3 -48
  25. package/components/avatar-stack/avatar-stack.js +5 -5
  26. package/components/banner/banner.js +2 -2
  27. package/components/button/button.d.ts +0 -4
  28. package/components/button/button.js +4 -10
  29. package/components/button-group/button-group.js +1 -1
  30. package/components/button-toolbar/button-toolbar.js +1 -1
  31. package/components/checkbox/checkbox.d.ts +1 -1
  32. package/components/checkbox/checkbox.js +1 -2
  33. package/components/clipboard/clipboard.js +2 -2
  34. package/components/collapse/collapse-content.js +35 -43
  35. package/components/collapse/collapse-context.d.ts +1 -0
  36. package/components/collapse/collapse-context.js +1 -0
  37. package/components/collapse/collapse-control.js +5 -5
  38. package/components/collapse/collapse.js +34 -25
  39. package/components/collapsible-group/collapsible-group.d.ts +5 -1
  40. package/components/collapsible-group/collapsible-group.js +80 -98
  41. package/components/components/util-stories.js +63 -1
  42. package/components/confirm/confirm.js +2 -2
  43. package/components/confirm-service/confirm-service.js +4 -4
  44. package/components/contenteditable/contenteditable.js +4 -5
  45. package/components/control-help/control-help.js +1 -1
  46. package/components/control-label/control-label.js +1 -1
  47. package/components/data-list/data-list.d.ts +4 -4
  48. package/components/data-list/data-list.js +5 -5
  49. package/components/data-list/data-list.mock.d.ts +1 -1
  50. package/components/data-list/data-list.mock.js +2 -2
  51. package/components/data-list/item.d.ts +1 -1
  52. package/components/data-list/item.js +3 -3
  53. package/components/data-list/selection.d.ts +1 -1
  54. package/components/data-list/selection.js +2 -2
  55. package/components/data-list/title.js +1 -2
  56. package/components/date-picker/date-input.js +2 -2
  57. package/components/date-picker/date-picker.js +2 -3
  58. package/components/date-picker/date-popup.js +4 -5
  59. package/components/date-picker/month-names.js +1 -1
  60. package/components/date-picker/month-slider.js +1 -1
  61. package/components/date-picker/month.d.ts +0 -2
  62. package/components/date-picker/month.js +17 -18
  63. package/components/date-picker/months.js +43 -36
  64. package/components/date-picker/use-scroll-behavior.js +45 -45
  65. package/components/date-picker/weekdays.js +1 -1
  66. package/components/date-picker/years.js +61 -55
  67. package/components/dialog/dialog.d.ts +2 -2
  68. package/components/dialog/dialog.js +5 -5
  69. package/components/dropdown/anchor.js +3 -3
  70. package/components/dropdown/dropdown.js +3 -3
  71. package/components/dropdown-menu/dropdown-menu.d.ts +4 -4
  72. package/components/dropdown-menu/dropdown-menu.js +63 -58
  73. package/components/editable-heading/editable-heading.d.ts +1 -2
  74. package/components/editable-heading/editable-heading.js +14 -13
  75. package/components/error-bubble/error-bubble.js +1 -1
  76. package/components/error-message/error-message.js +1 -2
  77. package/components/footer/footer.js +1 -1
  78. package/components/global/compose-refs.d.ts +2 -1
  79. package/components/global/compose-refs.js +44 -8
  80. package/components/global/configuration.d.ts +0 -5
  81. package/components/global/configuration.js +2 -10
  82. package/components/global/controls-height.js +1 -1
  83. package/components/global/create-stateful-context.js +11 -11
  84. package/components/global/focus-sensor-hoc.js +1 -0
  85. package/components/global/focus-with-temporary-tabindex.d.ts +11 -0
  86. package/components/global/focus-with-temporary-tabindex.js +23 -0
  87. package/components/global/intersection-observer-context.d.ts +46 -0
  88. package/components/global/intersection-observer-context.js +138 -0
  89. package/components/global/is-within-interactive-element.d.ts +6 -0
  90. package/components/global/is-within-interactive-element.js +11 -0
  91. package/components/global/is-within-navigable-element.d.ts +6 -0
  92. package/components/global/is-within-navigable-element.js +11 -0
  93. package/components/global/parse-css-duration.d.ts +5 -0
  94. package/components/global/parse-css-duration.js +14 -0
  95. package/components/global/rerender-hoc.d.ts +4 -2
  96. package/components/global/rerender-hoc.js +11 -24
  97. package/components/global/schedule-with-cleanup.d.ts +12 -0
  98. package/components/global/schedule-with-cleanup.js +36 -0
  99. package/components/{table/selection.d.ts → global/table-selection.d.ts} +15 -15
  100. package/components/{table/selection.js → global/table-selection.js} +5 -5
  101. package/components/global/theme.d.ts +4 -3
  102. package/components/global/theme.js +1 -1
  103. package/components/global/variables.interface.d.ts +0 -4
  104. package/components/header/header-icon.js +3 -3
  105. package/components/header/header.js +3 -3
  106. package/components/header/links.js +1 -1
  107. package/components/header/logo.js +1 -2
  108. package/components/header/profile.js +5 -5
  109. package/components/header/services.js +3 -3
  110. package/components/header/smart-profile.js +3 -3
  111. package/components/header/smart-services.js +3 -3
  112. package/components/heading/heading.js +1 -1
  113. package/components/i18n/i18n-context.js +4 -4
  114. package/components/icon/icon-svg.js +1 -2
  115. package/components/icon/icon.d.ts +0 -1
  116. package/components/icon/icon.js +2 -6
  117. package/components/icon/index.js +1 -2
  118. package/components/input/input.d.ts +1 -1
  119. package/components/input/input.js +3 -3
  120. package/components/internal/reorder-animation-context.js +159 -0
  121. package/components/internal/reorder-handle.js +750 -0
  122. package/components/internal/reorder-layout-context.js +141 -0
  123. package/components/internal/table-header.js +685 -0
  124. package/components/internal/virtualization.js +368 -0
  125. package/components/island/adaptive-island-hoc.js +3 -3
  126. package/components/island/content.d.ts +7 -2
  127. package/components/island/content.js +27 -18
  128. package/components/island/header.js +1 -1
  129. package/components/island/island.js +1 -1
  130. package/components/{table → legacy-table}/cell.js +1 -1
  131. package/components/{table → legacy-table}/header-cell.js +2 -3
  132. package/components/{table → legacy-table}/header.js +2 -3
  133. package/components/{table → legacy-table}/multitable.d.ts +1 -1
  134. package/components/{table → legacy-table}/row-with-focus-sensor.js +3 -3
  135. package/components/{table → legacy-table}/row.d.ts +1 -1
  136. package/components/{table → legacy-table}/row.js +5 -5
  137. package/components/legacy-table/selection-adapter.d.ts +6 -0
  138. package/components/{table → legacy-table}/selection-shortcuts-hoc.d.ts +5 -5
  139. package/components/{table → legacy-table}/simple-table.d.ts +2 -2
  140. package/components/{table → legacy-table}/simple-table.js +5 -5
  141. package/components/{table → legacy-table}/smart-table.d.ts +5 -5
  142. package/components/{table → legacy-table}/smart-table.js +6 -6
  143. package/components/legacy-table/table.d.ts +109 -0
  144. package/components/legacy-table/table.js +369 -0
  145. package/components/list/consts.d.ts +0 -1
  146. package/components/list/consts.js +0 -1
  147. package/components/list/list-item.js +3 -5
  148. package/components/list/list-users-groups-source.js +1 -2
  149. package/components/list/list.d.ts +0 -4
  150. package/components/list/list.js +1 -2
  151. package/components/login-dialog/login-dialog.js +3 -3
  152. package/components/login-dialog/service.js +2 -2
  153. package/components/message/message.js +1 -1
  154. package/components/pager/pager.js +3 -3
  155. package/components/popup/popup.js +1 -1
  156. package/components/popup/popup.target.d.ts +3 -2
  157. package/components/popup/popup.target.js +32 -28
  158. package/components/popup-menu/popup-menu.js +1 -1
  159. package/components/query-assist/query-assist-suggestions.js +1 -2
  160. package/components/query-assist/query-assist.d.ts +3 -1
  161. package/components/query-assist/query-assist.js +2 -2
  162. package/components/radio/radio-item.d.ts +3 -3
  163. package/components/radio/radio-item.js +33 -19
  164. package/components/radio/radio.d.ts +2 -2
  165. package/components/radio/radio.js +2 -2
  166. package/components/scrollable-section/scrollable-section.js +1 -1
  167. package/components/select/chevron-button.js +3 -3
  168. package/components/select/select-filter.js +3 -3
  169. package/components/select/select-popup.d.ts +3 -2
  170. package/components/select/select-popup.js +9 -4
  171. package/components/select/select.d.ts +6 -2
  172. package/components/select/select.js +5 -4
  173. package/components/selection-toolbar/selection-toolbar.d.ts +11 -0
  174. package/components/selection-toolbar/selection-toolbar.js +200 -0
  175. package/components/slider/slider.js +100 -97
  176. package/components/storage/storage-local.js +2 -2
  177. package/components/storage/storage.js +2 -2
  178. package/components/style.css +1 -1
  179. package/components/tab-trap/tab-trap.d.ts +3 -3
  180. package/components/tab-trap/tab-trap.js +83 -80
  181. package/components/table/default-item-renderer.d.ts +55 -0
  182. package/components/table/default-item-renderer.js +240 -0
  183. package/components/table/internal/reorder-animation-context.d.ts +21 -0
  184. package/components/table/internal/reorder-handle.d.ts +9 -0
  185. package/components/table/internal/reorder-layout-context.d.ts +16 -0
  186. package/components/table/internal/table-header.d.ts +1 -0
  187. package/components/table/internal/virtualization.d.ts +41 -0
  188. package/components/table/item-virtualization.d.ts +37 -0
  189. package/components/table/item-virtualization.js +73 -0
  190. package/components/table/reorder-animation.d.ts +37 -0
  191. package/components/table/reorder-animation.js +18 -0
  192. package/components/table/reorder-item-layout.d.ts +32 -0
  193. package/components/table/reorder-item-layout.js +57 -0
  194. package/components/table/table-const.d.ts +10 -0
  195. package/components/table/table-const.js +13 -0
  196. package/components/table/table-primitives.d.ts +64 -0
  197. package/components/table/table-primitives.js +180 -0
  198. package/components/table/table-props.d.ts +304 -0
  199. package/components/table/table-props.js +1 -0
  200. package/components/table/table.d.ts +231 -107
  201. package/components/table/table.js +351 -346
  202. package/components/tabs/collapsible-more.js +1 -1
  203. package/components/tabs/collapsible-tab.js +1 -1
  204. package/components/tabs/collapsible-tabs.js +1 -1
  205. package/components/tabs/dumb-tabs.js +1 -1
  206. package/components/tabs/smart-tabs.js +1 -1
  207. package/components/tabs/tab-link.js +1 -1
  208. package/components/tabs/tabs.js +1 -1
  209. package/components/tag/tag.js +1 -1
  210. package/components/tags-input/tags-input.d.ts +3 -1
  211. package/components/tags-input/tags-input.js +4 -4
  212. package/components/tags-list/tags-list.js +2 -2
  213. package/components/toggle/toggle.js +1 -1
  214. package/components/tooltip/tooltip.d.ts +2 -1
  215. package/components/tooltip/tooltip.js +5 -3
  216. package/components/upload/upload.d.ts +4 -3
  217. package/components/upload/upload.js +7 -30
  218. package/components/user-agreement/service.js +3 -3
  219. package/components/user-agreement/user-agreement.js +2 -2
  220. package/components/user-card/card.js +4 -4
  221. package/components/user-card/smart-user-card-tooltip.js +3 -3
  222. package/components/user-card/tooltip.js +3 -3
  223. package/components/user-card/user-card.js +5 -5
  224. package/components/util-stories.d.ts +26 -0
  225. package/package.json +8 -9
  226. package/components/__mocks__/old-browsers-message.js +0 -3
  227. package/components/_helpers/grid.js +0 -3
  228. package/components/_helpers/sidebar.js +0 -110
  229. package/components/content-layout/content-layout.d.ts +0 -20
  230. package/components/content-layout/content-layout.js +0 -50
  231. package/components/content-layout/sidebar.d.ts +0 -26
  232. package/components/content-layout/sidebar.js +0 -5
  233. package/components/date-picker/use-intersection-observer.d.ts +0 -6
  234. package/components/date-picker/use-intersection-observer.js +0 -93
  235. package/components/expand/collapsible-group.d.ts +0 -8
  236. package/components/expand/collapsible-group.js +0 -52
  237. package/components/global/composeRefs.d.ts +0 -6
  238. package/components/global/composeRefs.js +0 -9
  239. package/components/global/use-event-callback.d.ts +0 -4
  240. package/components/global/use-event-callback.js +0 -49
  241. package/components/grid/col.d.ts +0 -16
  242. package/components/grid/col.js +0 -63
  243. package/components/grid/grid.d.ts +0 -13
  244. package/components/grid/grid.js +0 -27
  245. package/components/grid/row.d.ts +0 -21
  246. package/components/grid/row.js +0 -72
  247. package/components/old-browsers-message/old-browsers-message-stop.d.ts +0 -1
  248. package/components/old-browsers-message/old-browsers-message-stop.js +0 -5
  249. package/components/old-browsers-message/old-browsers-message.d.ts +0 -5
  250. package/components/old-browsers-message/old-browsers-message.js +0 -89
  251. package/components/old-browsers-message/white-list.d.ts +0 -2
  252. package/components/old-browsers-message/white-list.js +0 -30
  253. package/components/table/selection-adapter.d.ts +0 -6
  254. /package/components/{table → legacy-table}/cell.d.ts +0 -0
  255. /package/components/{table → legacy-table}/disable-hover-hoc.d.ts +0 -0
  256. /package/components/{table → legacy-table}/disable-hover-hoc.js +0 -0
  257. /package/components/{table → legacy-table}/header-cell.d.ts +0 -0
  258. /package/components/{table → legacy-table}/header.d.ts +0 -0
  259. /package/components/{table → legacy-table}/multitable.js +0 -0
  260. /package/components/{table → legacy-table}/row-with-focus-sensor.d.ts +0 -0
  261. /package/components/{table → legacy-table}/selection-adapter.js +0 -0
  262. /package/components/{table → legacy-table}/selection-shortcuts-hoc.js +0 -0
@@ -1,5 +1,5 @@
1
- import { c } from 'react-compiler-runtime';
2
- import React__default, { forwardRef, useState, useContext } from 'react';
1
+ import { c } from 'react/compiler-runtime';
2
+ import React__default, { 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';
@@ -11,22 +11,22 @@ import { jsx, jsxs } from 'react/jsx-runtime';
11
11
  import 'util-deprecate';
12
12
  import '../icon/icon.constants.js';
13
13
  import '../_helpers/icon-svg.js';
14
- import '../global/configuration.js';
15
14
  import '../global/memoize.js';
16
15
  import '../collapse/consts.js';
17
16
  import '../global/data-tests.js';
18
17
  import '../global/dom.js';
18
+ import '../global/parse-css-duration.js';
19
19
  import '../collapse/utils.js';
20
20
 
21
- var styles = {"expand":"ring-collapsible-group-expand","collapseRoot":"ring-collapsible-group-collapseRoot","hovered":"ring-collapsible-group-hovered","expanded":"ring-collapsible-group-expanded","focused":"ring-collapsible-group-focused","header":"ring-collapsible-group-header","heading":"ring-collapsible-group-heading","headerButton":"ring-collapsible-group-headerButton","headerStatic":"ring-collapsible-group-headerStatic","headerContent":"ring-collapsible-group-headerContent","avatarGroup":"ring-collapsible-group-avatarGroup","title":"ring-collapsible-group-title","subtitleGroup":"ring-collapsible-group-subtitleGroup","subtitle":"ring-collapsible-group-subtitle","subtitleChevron":"ring-collapsible-group-subtitleChevron","toggle":"ring-collapsible-group-toggle","toggleIcon":"ring-collapsible-group-toggleIcon","body":"ring-collapsible-group-body"};
21
+ var styles = {"expand":"ring-collapsible-group-expand","collapseRoot":"ring-collapsible-group-collapseRoot","hovered":"ring-collapsible-group-hovered","expanded":"ring-collapsible-group-expanded","headerButton":"ring-collapsible-group-headerButton","header":"ring-collapsible-group-header","heading":"ring-collapsible-group-heading","headerStatic":"ring-collapsible-group-headerStatic","headerContent":"ring-collapsible-group-headerContent","avatarGroup":"ring-collapsible-group-avatarGroup","title":"ring-collapsible-group-title","subtitleGroup":"ring-collapsible-group-subtitleGroup","subtitle":"ring-collapsible-group-subtitle","subtitleChevron":"ring-collapsible-group-subtitleChevron","toggle":"ring-collapsible-group-toggle","toggleIcon":"ring-collapsible-group-toggleIcon","body":"ring-collapsible-group-body"};
22
22
 
23
23
  function CollapsibleGroupHeaderContent(t0) {
24
24
  const $ = c(16);
25
- if ($[0] !== "cbe0597c73ab62ed991f87044cb9b2d934802c6afcf5a086cbdf67a67a6010fa") {
25
+ if ($[0] !== "1f361c2ded768218a0a90f8cd47ebb79eb0ef7a40f501eb82fe1f1443b14d037") {
26
26
  for (let $i = 0; $i < 16; $i += 1) {
27
27
  $[$i] = Symbol.for("react.memo_cache_sentinel");
28
28
  }
29
- $[0] = "cbe0597c73ab62ed991f87044cb9b2d934802c6afcf5a086cbdf67a67a6010fa";
29
+ $[0] = "1f361c2ded768218a0a90f8cd47ebb79eb0ef7a40f501eb82fe1f1443b14d037";
30
30
  }
31
31
  const {
32
32
  avatar,
@@ -35,7 +35,7 @@ function CollapsibleGroupHeaderContent(t0) {
35
35
  } = t0;
36
36
  const {
37
37
  collapsed
38
- } = useContext(CollapseContext);
38
+ } = use(CollapseContext);
39
39
  let t1;
40
40
  if ($[1] !== titleContent) {
41
41
  t1 = /*#__PURE__*/jsx("span", {
@@ -121,11 +121,11 @@ function CollapsibleGroupHeaderContent(t0) {
121
121
  }
122
122
  function CollapsibleGroupHeader(t0) {
123
123
  const $ = c(16);
124
- if ($[0] !== "cbe0597c73ab62ed991f87044cb9b2d934802c6afcf5a086cbdf67a67a6010fa") {
124
+ if ($[0] !== "1f361c2ded768218a0a90f8cd47ebb79eb0ef7a40f501eb82fe1f1443b14d037") {
125
125
  for (let $i = 0; $i < 16; $i += 1) {
126
126
  $[$i] = Symbol.for("react.memo_cache_sentinel");
127
127
  }
128
- $[0] = "cbe0597c73ab62ed991f87044cb9b2d934802c6afcf5a086cbdf67a67a6010fa";
128
+ $[0] = "1f361c2ded768218a0a90f8cd47ebb79eb0ef7a40f501eb82fe1f1443b14d037";
129
129
  }
130
130
  let avatar;
131
131
  let buttonProps;
@@ -153,7 +153,7 @@ function CollapsibleGroupHeader(t0) {
153
153
  setCollapsed,
154
154
  collapsed,
155
155
  id
156
- } = useContext(CollapseContext);
156
+ } = use(CollapseContext);
157
157
  const t1 = `collapse-content-${id}`;
158
158
  const t2 = !collapsed;
159
159
  let t3;
@@ -194,11 +194,11 @@ function CollapsibleGroupHeader(t0) {
194
194
  }
195
195
  function CollapsibleGroupHeaderStatic(t0) {
196
196
  const $ = c(5);
197
- if ($[0] !== "cbe0597c73ab62ed991f87044cb9b2d934802c6afcf5a086cbdf67a67a6010fa") {
197
+ if ($[0] !== "1f361c2ded768218a0a90f8cd47ebb79eb0ef7a40f501eb82fe1f1443b14d037") {
198
198
  for (let $i = 0; $i < 5; $i += 1) {
199
199
  $[$i] = Symbol.for("react.memo_cache_sentinel");
200
200
  }
201
- $[0] = "cbe0597c73ab62ed991f87044cb9b2d934802c6afcf5a086cbdf67a67a6010fa";
201
+ $[0] = "1f361c2ded768218a0a90f8cd47ebb79eb0ef7a40f501eb82fe1f1443b14d037";
202
202
  }
203
203
  const {
204
204
  avatar,
@@ -224,15 +224,16 @@ function CollapsibleGroupHeaderStatic(t0) {
224
224
  }
225
225
  return t1;
226
226
  }
227
- const CollapsibleGroup = /*#__PURE__*/forwardRef((t0, ref) => {
228
- const $ = c(33);
229
- if ($[0] !== "cbe0597c73ab62ed991f87044cb9b2d934802c6afcf5a086cbdf67a67a6010fa") {
230
- for (let $i = 0; $i < 33; $i += 1) {
227
+ const CollapsibleGroup = t0 => {
228
+ const $ = c(31);
229
+ if ($[0] !== "1f361c2ded768218a0a90f8cd47ebb79eb0ef7a40f501eb82fe1f1443b14d037") {
230
+ for (let $i = 0; $i < 31; $i += 1) {
231
231
  $[$i] = Symbol.for("react.memo_cache_sentinel");
232
232
  }
233
- $[0] = "cbe0597c73ab62ed991f87044cb9b2d934802c6afcf5a086cbdf67a67a6010fa";
233
+ $[0] = "1f361c2ded768218a0a90f8cd47ebb79eb0ef7a40f501eb82fe1f1443b14d037";
234
234
  }
235
235
  const {
236
+ ref,
236
237
  avatar,
237
238
  title,
238
239
  subtitle,
@@ -255,7 +256,6 @@ const CollapsibleGroup = /*#__PURE__*/forwardRef((t0, ref) => {
255
256
  const keepMounted = t6 === undefined ? false : t6;
256
257
  const [innerExpanded, setInnerExpanded] = useState(defaultExpanded);
257
258
  const [hovered, setHovered] = useState(false);
258
- const [focused, setFocused] = useState(false);
259
259
  const isExpanded = expanded !== null && expanded !== void 0 ? expanded : innerExpanded;
260
260
  let t7;
261
261
  if ($[1] !== expanded || $[2] !== onChange) {
@@ -274,125 +274,107 @@ const CollapsibleGroup = /*#__PURE__*/forwardRef((t0, ref) => {
274
274
  }
275
275
  const handleChange = t7;
276
276
  let t8;
277
- if ($[4] === Symbol.for("react.memo_cache_sentinel")) {
278
- t8 = event => {
279
- const nextTarget = event.relatedTarget;
280
- if (nextTarget instanceof Node && event.currentTarget.contains(nextTarget)) {
281
- return;
282
- }
283
- setFocused(false);
284
- };
285
- $[4] = t8;
286
- } else {
287
- t8 = $[4];
288
- }
289
- const onBlur = t8;
290
- let t9;
291
- if ($[5] !== className || $[6] !== focused || $[7] !== hovered || $[8] !== isExpanded) {
292
- t9 = classNames(styles.expand, className, {
277
+ if ($[4] !== className || $[5] !== hovered || $[6] !== isExpanded) {
278
+ t8 = classNames(styles.expand, className, {
293
279
  [styles.hovered]: hovered,
294
- [styles.expanded]: isExpanded,
295
- [styles.focused]: focused
280
+ [styles.expanded]: isExpanded
296
281
  });
297
- $[5] = className;
298
- $[6] = focused;
299
- $[7] = hovered;
300
- $[8] = isExpanded;
301
- $[9] = t9;
282
+ $[4] = className;
283
+ $[5] = hovered;
284
+ $[6] = isExpanded;
285
+ $[7] = t8;
302
286
  } else {
303
- t9 = $[9];
287
+ t8 = $[7];
304
288
  }
305
- const classes = t9;
306
- let t10;
307
- if ($[10] !== avatar || $[11] !== interactive || $[12] !== subtitle || $[13] !== title) {
308
- t10 = interactive ? /*#__PURE__*/jsx(CollapsibleGroupHeader, {
289
+ const classes = t8;
290
+ let t9;
291
+ if ($[8] !== avatar || $[9] !== interactive || $[10] !== subtitle || $[11] !== title) {
292
+ t9 = interactive ? /*#__PURE__*/jsx(CollapsibleGroupHeader, {
309
293
  avatar: avatar,
310
294
  titleContent: title,
311
295
  subtitle: subtitle,
312
296
  onMouseEnter: () => setHovered(true),
313
- onMouseLeave: () => setHovered(false),
314
- onFocus: () => setFocused(true),
315
- onBlur: onBlur
297
+ onMouseLeave: () => setHovered(false)
316
298
  }) : /*#__PURE__*/jsx(CollapsibleGroupHeaderStatic, {
317
299
  avatar: avatar,
318
300
  titleContent: title,
319
301
  subtitle: subtitle
320
302
  });
321
- $[10] = avatar;
322
- $[11] = interactive;
323
- $[12] = subtitle;
324
- $[13] = title;
325
- $[14] = t10;
303
+ $[8] = avatar;
304
+ $[9] = interactive;
305
+ $[10] = subtitle;
306
+ $[11] = title;
307
+ $[12] = t9;
326
308
  } else {
327
- t10 = $[14];
309
+ t9 = $[12];
328
310
  }
329
- const header = t10;
330
- const t11 = !defaultExpanded;
331
- const t12 = expanded == null ? null : !expanded;
332
- let t13;
333
- if ($[15] !== header || $[16] !== headingLevel) {
334
- t13 = headingLevel != null ? /*#__PURE__*/React__default.createElement(`h${headingLevel}`, {
311
+ const header = t9;
312
+ const t10 = !defaultExpanded;
313
+ const t11 = expanded == null ? null : !expanded;
314
+ let t12;
315
+ if ($[13] !== header || $[14] !== headingLevel) {
316
+ t12 = headingLevel != null ? /*#__PURE__*/React__default.createElement(`h${headingLevel}`, {
335
317
  className: styles.heading
336
318
  }, header) : header;
337
- $[15] = header;
338
- $[16] = headingLevel;
339
- $[17] = t13;
319
+ $[13] = header;
320
+ $[14] = headingLevel;
321
+ $[15] = t12;
340
322
  } else {
341
- t13 = $[17];
323
+ t12 = $[15];
342
324
  }
343
- let t14;
344
- if ($[18] !== children) {
345
- t14 = /*#__PURE__*/jsx(CollapseContent, {
325
+ let t13;
326
+ if ($[16] !== children) {
327
+ t13 = /*#__PURE__*/jsx(CollapseContent, {
346
328
  children: /*#__PURE__*/jsx("div", {
347
329
  className: styles.body,
348
330
  children: children
349
331
  })
350
332
  });
351
- $[18] = children;
352
- $[19] = t14;
333
+ $[16] = children;
334
+ $[17] = t13;
353
335
  } else {
354
- t14 = $[19];
336
+ t13 = $[17];
355
337
  }
356
- let t15;
357
- if ($[20] !== disableAnimation || $[21] !== handleChange || $[22] !== keepMounted || $[23] !== t11 || $[24] !== t12 || $[25] !== t13 || $[26] !== t14) {
358
- t15 = /*#__PURE__*/jsxs(Collapse, {
359
- defaultCollapsed: t11,
360
- collapsed: t12,
338
+ let t14;
339
+ if ($[18] !== disableAnimation || $[19] !== handleChange || $[20] !== keepMounted || $[21] !== t10 || $[22] !== t11 || $[23] !== t12 || $[24] !== t13) {
340
+ t14 = /*#__PURE__*/jsxs(Collapse, {
341
+ defaultCollapsed: t10,
342
+ collapsed: t11,
361
343
  onChange: handleChange,
362
344
  disableAnimation: disableAnimation,
363
345
  keepMounted: keepMounted,
364
346
  className: styles.collapseRoot,
365
- children: [t13, t14]
347
+ children: [t12, t13]
366
348
  });
367
- $[20] = disableAnimation;
368
- $[21] = handleChange;
369
- $[22] = keepMounted;
370
- $[23] = t11;
371
- $[24] = t12;
372
- $[25] = t13;
373
- $[26] = t14;
374
- $[27] = t15;
349
+ $[18] = disableAnimation;
350
+ $[19] = handleChange;
351
+ $[20] = keepMounted;
352
+ $[21] = t10;
353
+ $[22] = t11;
354
+ $[23] = t12;
355
+ $[24] = t13;
356
+ $[25] = t14;
375
357
  } else {
376
- t15 = $[27];
358
+ t14 = $[25];
377
359
  }
378
- let t16;
379
- if ($[28] !== classes || $[29] !== dataTest || $[30] !== ref || $[31] !== t15) {
380
- t16 = /*#__PURE__*/jsx("div", {
360
+ let t15;
361
+ if ($[26] !== classes || $[27] !== dataTest || $[28] !== ref || $[29] !== t14) {
362
+ t15 = /*#__PURE__*/jsx("div", {
381
363
  ref: ref,
382
364
  className: classes,
383
365
  "data-test": dataTest,
384
- children: t15
366
+ children: t14
385
367
  });
386
- $[28] = classes;
387
- $[29] = dataTest;
388
- $[30] = ref;
389
- $[31] = t15;
390
- $[32] = t16;
368
+ $[26] = classes;
369
+ $[27] = dataTest;
370
+ $[28] = ref;
371
+ $[29] = t14;
372
+ $[30] = t15;
391
373
  } else {
392
- t16 = $[32];
374
+ t15 = $[30];
393
375
  }
394
- return t16;
395
- });
376
+ return t15;
377
+ };
396
378
  CollapsibleGroup.displayName = 'CollapsibleGroup';
397
379
  function _temp() {}
398
380
 
@@ -1,3 +1,65 @@
1
+ /* eslint-disable no-magic-numbers */
1
2
  const hideAddonsPanelParam = 'hideAddonsPanel';
3
+ function createRandom(seed) {
4
+ const u64Mask = 2n ** 64n - 1n;
5
+ const u64Range = 2n ** 64n;
6
+ const scrambleConst = 2685821657736338717n;
7
+ let x = seed & u64Mask;
8
+ if (!x) throw new Error('Seed must be non-zero');
9
+ function nextFractional() {
10
+ x ^= x >> 12n;
11
+ x ^= x << 25n & u64Mask;
12
+ x ^= x >> 27n;
13
+ const scrambled = x * scrambleConst & u64Mask;
14
+ return Number(scrambled) / Number(u64Range);
15
+ }
16
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
17
+ return (...args) => {
18
+ if (!args.length) {
19
+ return nextFractional();
20
+ }
21
+ if (args.length === 1) {
22
+ const [a] = args;
23
+ if (typeof a === 'number') {
24
+ return Math.floor(nextFractional() * a);
25
+ }
26
+ if (Array.isArray(a)) {
27
+ return a[Math.floor(nextFractional() * a.length)];
28
+ }
29
+ }
30
+ if (args.length === 2) {
31
+ const [a, b] = args;
32
+ let fromNum;
33
+ let toNum;
34
+ let isDate = false;
35
+ if (typeof a === 'number' && typeof b === 'number') {
36
+ fromNum = a;
37
+ toNum = b;
38
+ }
39
+ if (a instanceof Date && b instanceof Date) {
40
+ fromNum = a.getTime();
41
+ toNum = b.getTime();
42
+ isDate = true;
43
+ }
44
+ if (fromNum != null && toNum != null && fromNum < toNum) {
45
+ const r = Math.floor(nextFractional() * (toNum - fromNum)) + fromNum;
46
+ return isDate ? new Date(r) : r;
47
+ }
48
+ if (Array.isArray(a) && typeof b === 'number') {
49
+ const aIndices = Array.from({
50
+ length: a.length
51
+ }, (_, i) => i);
52
+ const sample = [];
53
+ for (let i = 0; i < b && aIndices.length; i++) {
54
+ const indexIndex = Math.floor(nextFractional() * aIndices.length);
55
+ const [aIndex] = aIndices.splice(indexIndex, 1);
56
+ sample.push(a[aIndex]);
57
+ }
58
+ return sample;
59
+ }
60
+ }
61
+ throw new Error(`Bad args: ${JSON.stringify(args)}`);
62
+ };
63
+ }
2
64
 
3
- export { hideAddonsPanelParam };
65
+ export { createRandom, hideAddonsPanelParam };
@@ -13,7 +13,7 @@ import '../island/island.js';
13
13
  import '../global/data-tests.js';
14
14
  import '../island/adaptive-island-hoc.js';
15
15
  import '../global/linear-function.js';
16
- import 'react-compiler-runtime';
16
+ import 'react/compiler-runtime';
17
17
  import 'element-resize-detector';
18
18
  import '../global/schedule-raf.js';
19
19
  import '../global/get-uid.js';
@@ -36,8 +36,8 @@ import '../_helpers/dialog-body-scroll-preventer.js';
36
36
  import 'scrollbar-width';
37
37
  import '@jetbrains/icons/chevron-down';
38
38
  import '@jetbrains/icons/chevron-12px-down';
39
- import 'util-deprecate';
40
39
  import '../icon/icon.js';
40
+ import 'util-deprecate';
41
41
  import '../icon/icon.constants.js';
42
42
  import '../_helpers/icon-svg.js';
43
43
  import '../global/memoize.js';
@@ -13,7 +13,7 @@ import '../island/adaptive-island-hoc.js';
13
13
  import '../global/linear-function.js';
14
14
  import '../_helpers/island.js';
15
15
  import '../island/header.js';
16
- import 'react-compiler-runtime';
16
+ import 'react/compiler-runtime';
17
17
  import '../island/content.js';
18
18
  import 'element-resize-detector';
19
19
  import '../global/schedule-raf.js';
@@ -29,14 +29,14 @@ import '../global/dom.js';
29
29
  import '../button/button.js';
30
30
  import '@jetbrains/icons/chevron-down';
31
31
  import '@jetbrains/icons/chevron-12px-down';
32
- import 'util-deprecate';
33
32
  import '../icon/icon.js';
33
+ import 'util-deprecate';
34
34
  import '../icon/icon.constants.js';
35
35
  import '../_helpers/icon-svg.js';
36
- import '../global/configuration.js';
37
36
  import '../global/memoize.js';
38
37
  import '../link/clickable-link.js';
39
38
  import '../_helpers/button.classes.js';
39
+ import '../global/configuration.js';
40
40
  import '../popup/popup.target.js';
41
41
  import '../popup/popup.js';
42
42
  import '../popup/position.js';
@@ -57,7 +57,7 @@ function renderConfirm(props) {
57
57
  buttonsHeight = getGlobalControlsHeight(),
58
58
  ...restProps
59
59
  } = props;
60
- reactRoot.render(/*#__PURE__*/jsx(ControlsHeightContext.Provider, {
60
+ reactRoot.render(/*#__PURE__*/jsx(ControlsHeightContext, {
61
61
  value: buttonsHeight,
62
62
  children: /*#__PURE__*/jsx(Confirm, {
63
63
  ...restProps
@@ -1,7 +1,6 @@
1
- import { c } from 'react-compiler-runtime';
1
+ import { c } from 'react/compiler-runtime';
2
2
  import { Component } from 'react';
3
3
  import { renderToStaticMarkup } from 'react-dom/server';
4
- import { getTrustedHTML } from '../global/configuration.js';
5
4
  import { jsx } from 'react/jsx-runtime';
6
5
 
7
6
  function noop() {}
@@ -39,18 +38,18 @@ class ContentEditableBase extends Component {
39
38
  tabIndex: disabled ? undefined : tabIndex,
40
39
  contentEditable: !this.props.disabled,
41
40
  dangerouslySetInnerHTML: {
42
- __html: getTrustedHTML(__html)
41
+ __html
43
42
  }
44
43
  });
45
44
  }
46
45
  }
47
46
  const ContentEditable = t0 => {
48
47
  const $ = c(9);
49
- if ($[0] !== "519bd5d3c982a9dc3ea1661e2f5c619dfe9b6f54aba8af79cd253dbdccafd7d6") {
48
+ if ($[0] !== "a16faaa5b9814b3292a3bdccbd3ed2550092bea3ba98e71aa85f18aa005eb348") {
50
49
  for (let $i = 0; $i < 9; $i += 1) {
51
50
  $[$i] = Symbol.for("react.memo_cache_sentinel");
52
51
  }
53
- $[0] = "519bd5d3c982a9dc3ea1661e2f5c619dfe9b6f54aba8af79cd253dbdccafd7d6";
52
+ $[0] = "a16faaa5b9814b3292a3bdccbd3ed2550092bea3ba98e71aa85f18aa005eb348";
54
53
  }
55
54
  let children;
56
55
  let props;
@@ -1,4 +1,4 @@
1
- import { c } from 'react-compiler-runtime';
1
+ import { c } from 'react/compiler-runtime';
2
2
  import classNames from 'classnames';
3
3
  import { jsx } from 'react/jsx-runtime';
4
4
 
@@ -1,4 +1,4 @@
1
- import { c } from 'react-compiler-runtime';
1
+ import { c } from 'react/compiler-runtime';
2
2
  import 'react';
3
3
  import classNames from 'classnames';
4
4
  import { jsx } from 'react/jsx-runtime';
@@ -3,9 +3,9 @@
3
3
  */
4
4
  import { Component } from 'react';
5
5
  import { type FocusSensorOuterProps } from '../global/focus-sensor-hoc';
6
- import { type SelectionShortcutsAddProps, type SelectionShortcutsOuterProps } from '../table/selection-shortcuts-hoc';
7
- import { type DisableHoverAddProps } from '../table/disable-hover-hoc';
8
- import { type SelectionItem } from '../table/selection';
6
+ import { type SelectionShortcutsAddProps, type SelectionShortcutsOuterProps } from '../legacy-table/selection-shortcuts-hoc';
7
+ import { type DisableHoverAddProps } from '../legacy-table/disable-hover-hoc';
8
+ import { type SelectionItem } from '../global/table-selection';
9
9
  import { type FormattedItem, moreLessButtonStates } from './item';
10
10
  export interface DataListBaseProps<T extends SelectionItem> {
11
11
  data: readonly T[];
@@ -20,7 +20,7 @@ export interface DataListBaseProps<T extends SelectionItem> {
20
20
  type FocusableProps<T extends SelectionItem> = DataListBaseProps<T> & DisableHoverAddProps & FocusSensorOuterProps<HTMLDivElement> & SelectionShortcutsAddProps<T>;
21
21
  export type DataListContainerProps<T extends SelectionItem> = DataListBaseProps<T> & FocusSensorOuterProps<HTMLDivElement> & SelectionShortcutsOuterProps<T>;
22
22
  export default class DataListContainer<T extends SelectionItem> extends Component<DataListContainerProps<T>> {
23
- DataList: import("react").ComponentClass<import("../table/disable-hover-hoc").DisableHoverProps<import("../table/selection-shortcuts-hoc").SelectionShortcutsProps<T, FocusableProps<T>>>, any>;
23
+ DataList: import("react").ComponentClass<import("../legacy-table/disable-hover-hoc").DisableHoverProps<import("../legacy-table/selection-shortcuts-hoc").SelectionShortcutsProps<T, FocusableProps<T>>>, any>;
24
24
  render(): import("react").JSX.Element;
25
25
  }
26
26
  export {};
@@ -1,8 +1,8 @@
1
1
  import { Component, PureComponent } from 'react';
2
2
  import classNames from 'classnames';
3
3
  import focusSensorHOC from '../global/focus-sensor-hoc.js';
4
- import selectionShortcutsHOC from '../table/selection-shortcuts-hoc.js';
5
- import disableHoverHOC from '../table/disable-hover-hoc.js';
4
+ import selectionShortcutsHOC from '../legacy-table/selection-shortcuts-hoc.js';
5
+ import disableHoverHOC from '../legacy-table/disable-hover-hoc.js';
6
6
  import getUID from '../global/get-uid.js';
7
7
  import Shortcuts from '../shortcuts/shortcuts.js';
8
8
  import Loader from '../loader/loader.js';
@@ -10,6 +10,7 @@ import Item, { moreLessButtonStates } from './item.js';
10
10
  import { s as styles } from '../_helpers/title.js';
11
11
  import { jsx, jsxs } from 'react/jsx-runtime';
12
12
  import '../global/compose-refs.js';
13
+ import 'react/compiler-runtime';
13
14
  import 'memoize-one';
14
15
  import 'core-js/modules/es.array.includes.js';
15
16
  import '../shortcuts/core.js';
@@ -28,14 +29,13 @@ import '../text/text.js';
28
29
  import '../loader-inline/loader-inline.js';
29
30
  import '../button/button.js';
30
31
  import '@jetbrains/icons/chevron-12px-down';
31
- import 'util-deprecate';
32
32
  import '../icon/icon.js';
33
+ import 'util-deprecate';
33
34
  import '../icon/icon.constants.js';
34
35
  import '../_helpers/icon-svg.js';
35
- import 'react-compiler-runtime';
36
- import '../global/configuration.js';
37
36
  import '../global/memoize.js';
38
37
  import '../global/controls-height.js';
38
+ import '../global/configuration.js';
39
39
  import '../_helpers/button.classes.js';
40
40
  import '../checkbox/checkbox.js';
41
41
  import '@jetbrains/icons/checkmark-12px';
@@ -1,5 +1,5 @@
1
1
  import { type ReactNode } from 'react';
2
- import { type SelectionItem } from '../table/selection';
2
+ import { type SelectionItem } from '../global/table-selection';
3
3
  export interface Item extends SelectionItem {
4
4
  title: ReactNode;
5
5
  collapsible?: boolean;
@@ -11,13 +11,13 @@ 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';
15
- import '../global/configuration.js';
14
+ import 'react/compiler-runtime';
16
15
  import '../global/memoize.js';
17
16
  import '../button/button.js';
18
17
  import '@jetbrains/icons/chevron-down';
19
18
  import '@jetbrains/icons/chevron-12px-down';
20
19
  import '../global/controls-height.js';
20
+ import '../global/configuration.js';
21
21
  import '../_helpers/button.classes.js';
22
22
 
23
23
  const items = [{
@@ -1,5 +1,5 @@
1
1
  import { PureComponent, type ReactNode } from 'react';
2
- import { type SelectionItem } from '../table/selection';
2
+ import { type SelectionItem } from '../global/table-selection';
3
3
  import type Selection from './selection';
4
4
  export declare enum moreLessButtonStates {
5
5
  UNUSED = 0,
@@ -12,14 +12,14 @@ import '../global/data-tests.js';
12
12
  import '../link/clickable-link.js';
13
13
  import '../_helpers/link.js';
14
14
  import '@jetbrains/icons/chevron-12px-down';
15
- import 'util-deprecate';
16
15
  import '../icon/icon.js';
16
+ import 'util-deprecate';
17
17
  import '../icon/icon.constants.js';
18
18
  import '../_helpers/icon-svg.js';
19
- import 'react-compiler-runtime';
20
- import '../global/configuration.js';
19
+ import 'react/compiler-runtime';
21
20
  import '../global/memoize.js';
22
21
  import '../global/controls-height.js';
22
+ import '../global/configuration.js';
23
23
  import '../_helpers/button.classes.js';
24
24
  import '../global/focus-sensor-hoc.js';
25
25
  import '../global/compose-refs.js';
@@ -1,4 +1,4 @@
1
- import TableSelection, { type CloneWithConfig, type SelectionItem, type TableSelectionConfig } from '../table/selection';
1
+ import TableSelection, { type CloneWithConfig, type SelectionItem, type TableSelectionConfig } from '../global/table-selection';
2
2
  interface DataListSelectionConfig<T extends SelectionItem> extends TableSelectionConfig<T> {
3
3
  partialSelected?: Set<T> | undefined;
4
4
  }
@@ -1,7 +1,7 @@
1
1
  import 'core-js/modules/es.array.includes.js';
2
- import Selection$1 from '../table/selection.js';
2
+ import TableSelection from '../global/table-selection.js';
3
3
 
4
- class Selection extends Selection$1 {
4
+ class Selection extends TableSelection {
5
5
  _partialSelected;
6
6
  constructor({
7
7
  partialSelected = new Set(),
@@ -6,6 +6,7 @@ import '../global/get-uid.js';
6
6
  export { T as default } from '../_helpers/title.js';
7
7
  import 'react/jsx-runtime';
8
8
  import '../global/compose-refs.js';
9
+ import 'react/compiler-runtime';
9
10
  import 'memoize-one';
10
11
  import '@jetbrains/icons/checkmark-12px';
11
12
  import '@jetbrains/icons/remove-12px';
@@ -13,8 +14,6 @@ import '../icon/icon.js';
13
14
  import 'util-deprecate';
14
15
  import '../icon/icon.constants.js';
15
16
  import '../_helpers/icon-svg.js';
16
- import 'react-compiler-runtime';
17
- import '../global/configuration.js';
18
17
  import '../global/memoize.js';
19
18
  import '../control-help/control-help.js';
20
19
  import '../global/data-tests.js';
@@ -10,11 +10,11 @@ import '@jetbrains/icons/close-12px';
10
10
  import '../button/button.js';
11
11
  import '@jetbrains/icons/chevron-down';
12
12
  import '@jetbrains/icons/chevron-12px-down';
13
- import 'util-deprecate';
14
13
  import '../icon/icon.js';
14
+ import 'util-deprecate';
15
15
  import '../icon/icon.constants.js';
16
16
  import '../_helpers/icon-svg.js';
17
- import 'react-compiler-runtime';
17
+ import 'react/compiler-runtime';
18
18
  import '../global/memoize.js';
19
19
  import '../link/clickable-link.js';
20
20
  import '../_helpers/button.classes.js';
@@ -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 { format } from 'date-fns/format';
@@ -72,10 +72,9 @@ import 'date-fns/getDate';
72
72
  import 'date-fns/isToday';
73
73
  import './consts.js';
74
74
  import 'date-fns/add';
75
- import './use-intersection-observer.js';
75
+ import '../global/intersection-observer-context.js';
76
76
  import './scroll-arith.js';
77
77
  import './use-scroll-behavior.js';
78
- import '../global/use-event-callback.js';
79
78
  import './years.js';
80
79
  import 'date-fns/addYears';
81
80
  import 'date-fns/getYear';