@jetbrains/ring-ui-built 8.0.0-beta.2 → 8.0.0-beta.4

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 (214) hide show
  1. package/components/_helpers/anchor.js +1 -1
  2. package/components/_helpers/avatar-info.js +1 -1
  3. package/components/_helpers/heading.js +2 -2
  4. package/components/_helpers/icon-svg.js +1 -1
  5. package/components/_helpers/legacy-table.js +3 -0
  6. package/components/_helpers/tab-link.js +1 -1
  7. package/components/_helpers/table.js +1 -1
  8. package/components/_helpers/theme.js +50 -38
  9. package/components/alert/alert.js +2 -2
  10. package/components/alert-service/alert-service.js +1 -1
  11. package/components/auth/auth-core.js +1 -1
  12. package/components/auth/auth.js +1 -1
  13. package/components/auth/down-notification.js +1 -1
  14. package/components/auth/iframe-flow.js +2 -2
  15. package/components/auth/storage.js +1 -1
  16. package/components/auth-dialog/auth-dialog.js +1 -1
  17. package/components/auth-dialog-service/auth-dialog-service.js +2 -2
  18. package/components/avatar/avatar-info.js +1 -1
  19. package/components/avatar/avatar.js +1 -1
  20. package/components/avatar/fallback-avatar.js +1 -1
  21. package/components/avatar-stack/avatar-stack.js +1 -1
  22. package/components/banner/banner.js +1 -1
  23. package/components/button/button.js +1 -1
  24. package/components/button-group/button-group.js +1 -1
  25. package/components/checkbox/checkbox.d.ts +1 -1
  26. package/components/checkbox/checkbox.js +1 -1
  27. package/components/clipboard/clipboard.js +1 -1
  28. package/components/collapse/collapse-content.js +5 -5
  29. package/components/collapse/collapse-control.js +5 -5
  30. package/components/collapse/collapse.js +4 -4
  31. package/components/collapsible-group/collapsible-group.d.ts +20 -0
  32. package/components/collapsible-group/collapsible-group.js +382 -0
  33. package/components/components/util-stories.js +63 -1
  34. package/components/confirm/confirm.js +1 -1
  35. package/components/confirm-service/confirm-service.js +2 -2
  36. package/components/contenteditable/contenteditable.js +1 -1
  37. package/components/control-help/control-help.js +1 -1
  38. package/components/control-label/control-label.js +1 -1
  39. package/components/data-list/data-list.d.ts +1 -1
  40. package/components/data-list/data-list.js +1 -1
  41. package/components/data-list/data-list.mock.d.ts +1 -1
  42. package/components/data-list/data-list.mock.js +1 -1
  43. package/components/data-list/item.d.ts +1 -1
  44. package/components/data-list/item.js +1 -1
  45. package/components/data-list/selection.d.ts +1 -1
  46. package/components/data-list/selection.js +2 -2
  47. package/components/data-list/title.js +1 -1
  48. package/components/date-picker/date-input.js +1 -1
  49. package/components/date-picker/date-picker.js +1 -2
  50. package/components/date-picker/date-popup.js +4 -5
  51. package/components/date-picker/month-names.js +1 -1
  52. package/components/date-picker/month-slider.js +1 -1
  53. package/components/date-picker/month.js +1 -1
  54. package/components/date-picker/months.js +4 -5
  55. package/components/date-picker/use-scroll-behavior.js +45 -44
  56. package/components/date-picker/weekdays.js +1 -1
  57. package/components/date-picker/years.js +6 -7
  58. package/components/dialog/dialog.d.ts +2 -2
  59. package/components/dialog/dialog.js +3 -3
  60. package/components/dropdown/anchor.js +1 -1
  61. package/components/dropdown/dropdown.js +1 -1
  62. package/components/dropdown-menu/dropdown-menu.d.ts +4 -4
  63. package/components/dropdown-menu/dropdown-menu.js +68 -63
  64. package/components/editable-heading/editable-heading.d.ts +1 -2
  65. package/components/editable-heading/editable-heading.js +127 -113
  66. package/components/error-bubble/error-bubble.js +1 -1
  67. package/components/error-message/error-message.js +1 -1
  68. package/components/expand/collapsible-group.d.ts +8 -16
  69. package/components/expand/collapsible-group.js +34 -364
  70. package/components/footer/footer.js +1 -1
  71. package/components/global/compose-refs.d.ts +2 -1
  72. package/components/global/compose-refs.js +44 -8
  73. package/components/global/create-stateful-context.js +11 -11
  74. package/components/global/focus-sensor-hoc.js +1 -0
  75. package/components/global/focus-with-temporary-tabindex.d.ts +11 -0
  76. package/components/global/focus-with-temporary-tabindex.js +23 -0
  77. package/components/global/intersection-observer-context.d.ts +31 -11
  78. package/components/global/intersection-observer-context.js +55 -57
  79. package/components/global/is-within-interactive-element.d.ts +6 -0
  80. package/components/global/is-within-interactive-element.js +11 -0
  81. package/components/global/is-within-navigable-element.d.ts +6 -0
  82. package/components/global/is-within-navigable-element.js +11 -0
  83. package/components/global/parse-css-duration.d.ts +5 -0
  84. package/components/global/parse-css-duration.js +14 -0
  85. package/components/global/rerender-hoc.d.ts +4 -2
  86. package/components/global/rerender-hoc.js +11 -24
  87. package/components/global/schedule-with-cleanup.d.ts +12 -0
  88. package/components/global/schedule-with-cleanup.js +36 -0
  89. package/components/{legacy-table/selection.d.ts → global/table-selection.d.ts} +14 -14
  90. package/components/{legacy-table/selection.js → global/table-selection.js} +4 -4
  91. package/components/global/theme.d.ts +4 -3
  92. package/components/global/theme.js +2 -2
  93. package/components/header/header-icon.js +1 -1
  94. package/components/header/header.js +2 -2
  95. package/components/header/links.js +1 -1
  96. package/components/header/logo.js +1 -1
  97. package/components/header/profile.js +1 -1
  98. package/components/header/services.js +1 -1
  99. package/components/header/smart-profile.js +1 -1
  100. package/components/header/smart-services.js +1 -1
  101. package/components/heading/heading.js +4 -4
  102. package/components/i18n/i18n-context.js +4 -4
  103. package/components/icon/icon-svg.js +1 -1
  104. package/components/icon/icon.js +1 -1
  105. package/components/icon/index.js +1 -1
  106. package/components/input/input.d.ts +1 -1
  107. package/components/input/input.js +1 -1
  108. package/components/internal/column-animation.js +133 -0
  109. package/components/internal/table-header.js +1109 -0
  110. package/components/internal/virtual-items.js +353 -0
  111. package/components/island/adaptive-island-hoc.js +3 -3
  112. package/components/island/content.d.ts +7 -2
  113. package/components/island/content.js +27 -18
  114. package/components/island/header.js +1 -1
  115. package/components/island/island.js +1 -1
  116. package/components/legacy-table/cell.js +1 -1
  117. package/components/legacy-table/header-cell.js +4 -4
  118. package/components/legacy-table/header.js +2 -2
  119. package/components/legacy-table/multitable.d.ts +1 -1
  120. package/components/legacy-table/row-with-focus-sensor.js +2 -2
  121. package/components/legacy-table/row.d.ts +1 -1
  122. package/components/legacy-table/row.js +4 -4
  123. package/components/legacy-table/selection-adapter.d.ts +3 -3
  124. package/components/legacy-table/selection-shortcuts-hoc.d.ts +5 -5
  125. package/components/legacy-table/simple-table.d.ts +2 -2
  126. package/components/legacy-table/simple-table.js +4 -4
  127. package/components/legacy-table/smart-table.d.ts +5 -5
  128. package/components/legacy-table/smart-table.js +5 -5
  129. package/components/legacy-table/table.js +2 -2
  130. package/components/list/list-item.js +1 -1
  131. package/components/list/list-users-groups-source.js +1 -1
  132. package/components/list/list.js +1 -1
  133. package/components/login-dialog/login-dialog.js +1 -1
  134. package/components/login-dialog/service.js +2 -2
  135. package/components/markdown/markdown.js +2 -2
  136. package/components/message/message.js +2 -2
  137. package/components/old-browsers-message/white-list.js +2 -2
  138. package/components/pager/pager.js +1 -1
  139. package/components/popup/popup.d.ts +2 -0
  140. package/components/popup/popup.js +6 -2
  141. package/components/popup/popup.target.d.ts +3 -2
  142. package/components/popup/popup.target.js +32 -28
  143. package/components/popup-menu/popup-menu.js +1 -1
  144. package/components/query-assist/query-assist-suggestions.js +1 -1
  145. package/components/query-assist/query-assist.d.ts +3 -1
  146. package/components/query-assist/query-assist.js +2 -2
  147. package/components/radio/radio-item.d.ts +3 -3
  148. package/components/radio/radio-item.js +32 -18
  149. package/components/radio/radio.d.ts +2 -2
  150. package/components/radio/radio.js +2 -2
  151. package/components/scrollable-section/scrollable-section.js +1 -1
  152. package/components/select/chevron-button.js +1 -1
  153. package/components/select/select-filter.js +1 -1
  154. package/components/select/select-popup.d.ts +1 -1
  155. package/components/select/select-popup.js +1 -1
  156. package/components/select/select.d.ts +4 -2
  157. package/components/select/select.js +1 -1
  158. package/components/slider/slider.js +100 -96
  159. package/components/storage/storage-local.js +1 -1
  160. package/components/storage/storage.js +1 -1
  161. package/components/style.css +1 -1
  162. package/components/tab-trap/tab-trap.d.ts +3 -3
  163. package/components/tab-trap/tab-trap.js +83 -80
  164. package/components/table/default-item-renderer.d.ts +35 -11
  165. package/components/table/default-item-renderer.js +118 -171
  166. package/components/table/internal/column-animation.d.ts +16 -0
  167. package/components/table/internal/table-header.d.ts +4 -0
  168. package/components/table/internal/virtual-items.d.ts +34 -0
  169. package/components/table/item-virtualization.d.ts +35 -0
  170. package/components/table/item-virtualization.js +71 -0
  171. package/components/table/table-const.d.ts +40 -6
  172. package/components/table/table-const.js +15 -6
  173. package/components/table/table-primitives.d.ts +21 -0
  174. package/components/table/table-primitives.js +123 -0
  175. package/components/table/table-props.d.ts +280 -0
  176. package/components/table/table-props.js +1 -0
  177. package/components/table/table.d.ts +205 -224
  178. package/components/table/table.js +356 -14
  179. package/components/tabs/collapsible-more.js +1 -1
  180. package/components/tabs/collapsible-tab.js +1 -1
  181. package/components/tabs/collapsible-tabs.js +1 -1
  182. package/components/tabs/dumb-tabs.js +1 -1
  183. package/components/tabs/smart-tabs.js +1 -1
  184. package/components/tabs/tab-link.js +1 -1
  185. package/components/tabs/tabs.js +1 -1
  186. package/components/tag/tag.js +1 -1
  187. package/components/tags-input/tags-input.d.ts +3 -1
  188. package/components/tags-input/tags-input.js +1 -1
  189. package/components/tags-list/tags-list.js +1 -1
  190. package/components/toggle/toggle.js +1 -1
  191. package/components/tooltip/tooltip.js +3 -3
  192. package/components/upload/upload.d.ts +4 -3
  193. package/components/upload/upload.js +7 -29
  194. package/components/user-agreement/service.js +8 -8
  195. package/components/user-agreement/user-agreement.js +1 -1
  196. package/components/user-card/card.js +1 -1
  197. package/components/user-card/smart-user-card-tooltip.js +1 -1
  198. package/components/user-card/tooltip.js +1 -1
  199. package/components/user-card/user-card.js +1 -1
  200. package/components/util-stories.d.ts +26 -0
  201. package/package.json +7 -7
  202. package/components/_helpers/table2.js +0 -3
  203. package/components/date-picker/use-intersection-observer.d.ts +0 -6
  204. package/components/date-picker/use-intersection-observer.js +0 -93
  205. package/components/global/composeRefs.d.ts +0 -6
  206. package/components/global/composeRefs.js +0 -9
  207. package/components/global/use-event-callback.d.ts +0 -1
  208. package/components/global/use-event-callback.js +0 -44
  209. package/components/table/table-base.d.ts +0 -24
  210. package/components/table/table-base.js +0 -311
  211. package/components/table/table-component.d.ts +0 -53
  212. package/components/table/table-component.js +0 -316
  213. package/components/table/table-virtualize.d.ts +0 -32
  214. package/components/table/table-virtualize.js +0 -330
@@ -0,0 +1,382 @@
1
+ import { c } from 'react/compiler-runtime';
2
+ import { useState, use } from 'react';
3
+ import classNames from 'classnames';
4
+ import chevronRightIcon from '@jetbrains/icons/chevron-12px-right';
5
+ import chevron12pxDown from '@jetbrains/icons/chevron-12px-down';
6
+ import Icon from '../icon/icon.js';
7
+ import { Collapse } from '../collapse/collapse.js';
8
+ import { CollapseContent } from '../collapse/collapse-content.js';
9
+ import { CollapseContext } from '../collapse/collapse-context.js';
10
+ import { jsx, jsxs } from 'react/jsx-runtime';
11
+ import 'util-deprecate';
12
+ import '../icon/icon.constants.js';
13
+ import '../_helpers/icon-svg.js';
14
+ import '../global/memoize.js';
15
+ import '../collapse/consts.js';
16
+ import '../global/data-tests.js';
17
+ import '../global/dom.js';
18
+ import '../collapse/utils.js';
19
+
20
+ 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","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
+
22
+ function CollapsibleGroupHeaderContent(t0) {
23
+ const $ = c(16);
24
+ if ($[0] !== "0b0104270833ca27f2118e72fd68547a84ef5bf33921c0d276e95941f6f80768") {
25
+ for (let $i = 0; $i < 16; $i += 1) {
26
+ $[$i] = Symbol.for("react.memo_cache_sentinel");
27
+ }
28
+ $[0] = "0b0104270833ca27f2118e72fd68547a84ef5bf33921c0d276e95941f6f80768";
29
+ }
30
+ const {
31
+ avatar,
32
+ titleContent,
33
+ subtitle
34
+ } = t0;
35
+ const {
36
+ collapsed
37
+ } = use(CollapseContext);
38
+ let t1;
39
+ if ($[1] !== titleContent) {
40
+ t1 = /*#__PURE__*/jsx("span", {
41
+ className: styles.title,
42
+ children: titleContent
43
+ });
44
+ $[1] = titleContent;
45
+ $[2] = t1;
46
+ } else {
47
+ t1 = $[2];
48
+ }
49
+ let t2;
50
+ if ($[3] !== avatar || $[4] !== t1) {
51
+ t2 = /*#__PURE__*/jsxs("span", {
52
+ className: styles.avatarGroup,
53
+ children: [avatar, t1]
54
+ });
55
+ $[3] = avatar;
56
+ $[4] = t1;
57
+ $[5] = t2;
58
+ } else {
59
+ t2 = $[5];
60
+ }
61
+ let t3;
62
+ if ($[6] !== subtitle) {
63
+ t3 = subtitle ? /*#__PURE__*/jsxs("span", {
64
+ className: styles.subtitleGroup,
65
+ children: [/*#__PURE__*/jsx(Icon, {
66
+ className: styles.subtitleChevron,
67
+ glyph: chevronRightIcon,
68
+ "aria-hidden": true
69
+ }), /*#__PURE__*/jsx("span", {
70
+ className: styles.subtitle,
71
+ children: subtitle
72
+ })]
73
+ }) : null;
74
+ $[6] = subtitle;
75
+ $[7] = t3;
76
+ } else {
77
+ t3 = $[7];
78
+ }
79
+ let t4;
80
+ if ($[8] !== t2 || $[9] !== t3) {
81
+ t4 = /*#__PURE__*/jsxs("span", {
82
+ className: styles.headerContent,
83
+ children: [t2, t3]
84
+ });
85
+ $[8] = t2;
86
+ $[9] = t3;
87
+ $[10] = t4;
88
+ } else {
89
+ t4 = $[10];
90
+ }
91
+ const t5 = collapsed ? chevronRightIcon : chevron12pxDown;
92
+ let t6;
93
+ if ($[11] !== t5) {
94
+ t6 = /*#__PURE__*/jsx("span", {
95
+ className: styles.toggle,
96
+ "aria-hidden": true,
97
+ children: /*#__PURE__*/jsx(Icon, {
98
+ className: styles.toggleIcon,
99
+ glyph: t5
100
+ })
101
+ });
102
+ $[11] = t5;
103
+ $[12] = t6;
104
+ } else {
105
+ t6 = $[12];
106
+ }
107
+ let t7;
108
+ if ($[13] !== t4 || $[14] !== t6) {
109
+ t7 = /*#__PURE__*/jsxs("span", {
110
+ className: styles.header,
111
+ children: [t4, t6]
112
+ });
113
+ $[13] = t4;
114
+ $[14] = t6;
115
+ $[15] = t7;
116
+ } else {
117
+ t7 = $[15];
118
+ }
119
+ return t7;
120
+ }
121
+ function CollapsibleGroupHeader(t0) {
122
+ const $ = c(16);
123
+ if ($[0] !== "0b0104270833ca27f2118e72fd68547a84ef5bf33921c0d276e95941f6f80768") {
124
+ for (let $i = 0; $i < 16; $i += 1) {
125
+ $[$i] = Symbol.for("react.memo_cache_sentinel");
126
+ }
127
+ $[0] = "0b0104270833ca27f2118e72fd68547a84ef5bf33921c0d276e95941f6f80768";
128
+ }
129
+ let avatar;
130
+ let buttonProps;
131
+ let subtitle;
132
+ let titleContent;
133
+ if ($[1] !== t0) {
134
+ ({
135
+ avatar,
136
+ titleContent,
137
+ subtitle,
138
+ ...buttonProps
139
+ } = t0);
140
+ $[1] = t0;
141
+ $[2] = avatar;
142
+ $[3] = buttonProps;
143
+ $[4] = subtitle;
144
+ $[5] = titleContent;
145
+ } else {
146
+ avatar = $[2];
147
+ buttonProps = $[3];
148
+ subtitle = $[4];
149
+ titleContent = $[5];
150
+ }
151
+ const {
152
+ setCollapsed,
153
+ collapsed,
154
+ id
155
+ } = use(CollapseContext);
156
+ const t1 = `collapse-content-${id}`;
157
+ const t2 = !collapsed;
158
+ let t3;
159
+ if ($[6] !== avatar || $[7] !== subtitle || $[8] !== titleContent) {
160
+ t3 = /*#__PURE__*/jsx(CollapsibleGroupHeaderContent, {
161
+ avatar: avatar,
162
+ titleContent: titleContent,
163
+ subtitle: subtitle
164
+ });
165
+ $[6] = avatar;
166
+ $[7] = subtitle;
167
+ $[8] = titleContent;
168
+ $[9] = t3;
169
+ } else {
170
+ t3 = $[9];
171
+ }
172
+ let t4;
173
+ if ($[10] !== buttonProps || $[11] !== setCollapsed || $[12] !== t1 || $[13] !== t2 || $[14] !== t3) {
174
+ t4 = /*#__PURE__*/jsx("button", {
175
+ type: "button",
176
+ ...buttonProps,
177
+ className: styles.headerButton,
178
+ onClick: setCollapsed,
179
+ "aria-controls": t1,
180
+ "aria-expanded": t2,
181
+ children: t3
182
+ });
183
+ $[10] = buttonProps;
184
+ $[11] = setCollapsed;
185
+ $[12] = t1;
186
+ $[13] = t2;
187
+ $[14] = t3;
188
+ $[15] = t4;
189
+ } else {
190
+ t4 = $[15];
191
+ }
192
+ return t4;
193
+ }
194
+ function CollapsibleGroupHeaderStatic(t0) {
195
+ const $ = c(5);
196
+ if ($[0] !== "0b0104270833ca27f2118e72fd68547a84ef5bf33921c0d276e95941f6f80768") {
197
+ for (let $i = 0; $i < 5; $i += 1) {
198
+ $[$i] = Symbol.for("react.memo_cache_sentinel");
199
+ }
200
+ $[0] = "0b0104270833ca27f2118e72fd68547a84ef5bf33921c0d276e95941f6f80768";
201
+ }
202
+ const {
203
+ avatar,
204
+ titleContent,
205
+ subtitle
206
+ } = t0;
207
+ let t1;
208
+ if ($[1] !== avatar || $[2] !== subtitle || $[3] !== titleContent) {
209
+ t1 = /*#__PURE__*/jsx("span", {
210
+ className: styles.headerStatic,
211
+ children: /*#__PURE__*/jsx(CollapsibleGroupHeaderContent, {
212
+ avatar: avatar,
213
+ titleContent: titleContent,
214
+ subtitle: subtitle
215
+ })
216
+ });
217
+ $[1] = avatar;
218
+ $[2] = subtitle;
219
+ $[3] = titleContent;
220
+ $[4] = t1;
221
+ } else {
222
+ t1 = $[4];
223
+ }
224
+ return t1;
225
+ }
226
+ const CollapsibleGroup = t0 => {
227
+ const $ = c(29);
228
+ if ($[0] !== "0b0104270833ca27f2118e72fd68547a84ef5bf33921c0d276e95941f6f80768") {
229
+ for (let $i = 0; $i < 29; $i += 1) {
230
+ $[$i] = Symbol.for("react.memo_cache_sentinel");
231
+ }
232
+ $[0] = "0b0104270833ca27f2118e72fd68547a84ef5bf33921c0d276e95941f6f80768";
233
+ }
234
+ const {
235
+ ref,
236
+ avatar,
237
+ title,
238
+ subtitle,
239
+ children,
240
+ className,
241
+ defaultExpanded: t1,
242
+ expanded: t2,
243
+ onChange: t3,
244
+ disableAnimation: t4,
245
+ interactive: t5,
246
+ "data-test": dataTest
247
+ } = t0;
248
+ const defaultExpanded = t1 === undefined ? false : t1;
249
+ const expanded = t2 === undefined ? null : t2;
250
+ const onChange = t3 === undefined ? _temp : t3;
251
+ const disableAnimation = t4 === undefined ? false : t4;
252
+ const interactive = t5 === undefined ? true : t5;
253
+ const [innerExpanded, setInnerExpanded] = useState(defaultExpanded);
254
+ const [hovered, setHovered] = useState(false);
255
+ const [focused, setFocused] = useState(false);
256
+ const isExpanded = expanded !== null && expanded !== void 0 ? expanded : innerExpanded;
257
+ let t6;
258
+ if ($[1] !== expanded || $[2] !== onChange) {
259
+ t6 = collapsed => {
260
+ const nextExpanded = !collapsed;
261
+ if (expanded == null) {
262
+ setInnerExpanded(nextExpanded);
263
+ }
264
+ onChange(nextExpanded);
265
+ };
266
+ $[1] = expanded;
267
+ $[2] = onChange;
268
+ $[3] = t6;
269
+ } else {
270
+ t6 = $[3];
271
+ }
272
+ const handleChange = t6;
273
+ let t7;
274
+ if ($[4] === Symbol.for("react.memo_cache_sentinel")) {
275
+ t7 = event => {
276
+ const nextTarget = event.relatedTarget;
277
+ if (nextTarget instanceof Node && event.currentTarget.contains(nextTarget)) {
278
+ return;
279
+ }
280
+ setFocused(false);
281
+ };
282
+ $[4] = t7;
283
+ } else {
284
+ t7 = $[4];
285
+ }
286
+ const onBlur = t7;
287
+ let t8;
288
+ if ($[5] !== className || $[6] !== focused || $[7] !== hovered || $[8] !== isExpanded) {
289
+ t8 = classNames(styles.expand, className, {
290
+ [styles.hovered]: hovered,
291
+ [styles.expanded]: isExpanded,
292
+ [styles.focused]: focused
293
+ });
294
+ $[5] = className;
295
+ $[6] = focused;
296
+ $[7] = hovered;
297
+ $[8] = isExpanded;
298
+ $[9] = t8;
299
+ } else {
300
+ t8 = $[9];
301
+ }
302
+ const classes = t8;
303
+ const t9 = !defaultExpanded;
304
+ const t10 = expanded == null ? null : !expanded;
305
+ let t11;
306
+ if ($[10] !== avatar || $[11] !== interactive || $[12] !== subtitle || $[13] !== title) {
307
+ t11 = interactive ? /*#__PURE__*/jsx(CollapsibleGroupHeader, {
308
+ avatar: avatar,
309
+ titleContent: title,
310
+ subtitle: subtitle,
311
+ onMouseEnter: () => setHovered(true),
312
+ onMouseLeave: () => setHovered(false),
313
+ onFocus: () => setFocused(true),
314
+ onBlur: onBlur
315
+ }) : /*#__PURE__*/jsx(CollapsibleGroupHeaderStatic, {
316
+ avatar: avatar,
317
+ titleContent: title,
318
+ subtitle: subtitle
319
+ });
320
+ $[10] = avatar;
321
+ $[11] = interactive;
322
+ $[12] = subtitle;
323
+ $[13] = title;
324
+ $[14] = t11;
325
+ } else {
326
+ t11 = $[14];
327
+ }
328
+ let t12;
329
+ if ($[15] !== children) {
330
+ t12 = /*#__PURE__*/jsx(CollapseContent, {
331
+ children: /*#__PURE__*/jsx("div", {
332
+ className: styles.body,
333
+ children: children
334
+ })
335
+ });
336
+ $[15] = children;
337
+ $[16] = t12;
338
+ } else {
339
+ t12 = $[16];
340
+ }
341
+ let t13;
342
+ if ($[17] !== disableAnimation || $[18] !== handleChange || $[19] !== t10 || $[20] !== t11 || $[21] !== t12 || $[22] !== t9) {
343
+ t13 = /*#__PURE__*/jsxs(Collapse, {
344
+ defaultCollapsed: t9,
345
+ collapsed: t10,
346
+ onChange: handleChange,
347
+ disableAnimation: disableAnimation,
348
+ className: styles.collapseRoot,
349
+ children: [t11, t12]
350
+ });
351
+ $[17] = disableAnimation;
352
+ $[18] = handleChange;
353
+ $[19] = t10;
354
+ $[20] = t11;
355
+ $[21] = t12;
356
+ $[22] = t9;
357
+ $[23] = t13;
358
+ } else {
359
+ t13 = $[23];
360
+ }
361
+ let t14;
362
+ if ($[24] !== classes || $[25] !== dataTest || $[26] !== ref || $[27] !== t13) {
363
+ t14 = /*#__PURE__*/jsx("div", {
364
+ ref: ref,
365
+ className: classes,
366
+ "data-test": dataTest,
367
+ children: t13
368
+ });
369
+ $[24] = classes;
370
+ $[25] = dataTest;
371
+ $[26] = ref;
372
+ $[27] = t13;
373
+ $[28] = t14;
374
+ } else {
375
+ t14 = $[28];
376
+ }
377
+ return t14;
378
+ };
379
+ CollapsibleGroup.displayName = 'CollapsibleGroup';
380
+ function _temp() {}
381
+
382
+ export { CollapsibleGroup as default };
@@ -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';
@@ -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';
@@ -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,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 { renderToStaticMarkup } from 'react-dom/server';
4
4
  import { jsx } from 'react/jsx-runtime';
@@ -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';
@@ -5,7 +5,7 @@ import { Component } from 'react';
5
5
  import { type FocusSensorOuterProps } from '../global/focus-sensor-hoc';
6
6
  import { type SelectionShortcutsAddProps, type SelectionShortcutsOuterProps } from '../legacy-table/selection-shortcuts-hoc';
7
7
  import { type DisableHoverAddProps } from '../legacy-table/disable-hover-hoc';
8
- import { type SelectionItem } from '../legacy-table/selection';
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[];
@@ -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';
@@ -32,7 +33,6 @@ import 'util-deprecate';
32
33
  import '../icon/icon.js';
33
34
  import '../icon/icon.constants.js';
34
35
  import '../_helpers/icon-svg.js';
35
- import 'react-compiler-runtime';
36
36
  import '../global/memoize.js';
37
37
  import '../global/controls-height.js';
38
38
  import '../global/configuration.js';
@@ -1,5 +1,5 @@
1
1
  import { type ReactNode } from 'react';
2
- import { type SelectionItem } from '../legacy-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,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 '../button/button.js';
17
17
  import '@jetbrains/icons/chevron-down';
@@ -1,5 +1,5 @@
1
1
  import { PureComponent, type ReactNode } from 'react';
2
- import { type SelectionItem } from '../legacy-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,
@@ -16,7 +16,7 @@ import 'util-deprecate';
16
16
  import '../icon/icon.js';
17
17
  import '../icon/icon.constants.js';
18
18
  import '../_helpers/icon-svg.js';
19
- import 'react-compiler-runtime';
19
+ import 'react/compiler-runtime';
20
20
  import '../global/memoize.js';
21
21
  import '../global/controls-height.js';
22
22
  import '../global/configuration.js';
@@ -1,4 +1,4 @@
1
- import TableSelection, { type CloneWithConfig, type SelectionItem, type TableSelectionConfig } from '../legacy-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 '../legacy-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,7 +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
17
  import '../global/memoize.js';
18
18
  import '../control-help/control-help.js';
19
19
  import '../global/data-tests.js';
@@ -14,7 +14,7 @@ import 'util-deprecate';
14
14
  import '../icon/icon.js';
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';
@@ -75,7 +75,6 @@ import 'date-fns/add';
75
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';
@@ -24,7 +24,7 @@ import 'util-deprecate';
24
24
  import '../icon/icon.js';
25
25
  import '../icon/icon.constants.js';
26
26
  import '../_helpers/icon-svg.js';
27
- import 'react-compiler-runtime';
27
+ import 'react/compiler-runtime';
28
28
  import '../link/clickable-link.js';
29
29
  import '../global/controls-height.js';
30
30
  import '../global/configuration.js';
@@ -47,13 +47,9 @@ import 'date-fns/addDays';
47
47
  import 'date-fns/getDate';
48
48
  import 'date-fns/isSameDay';
49
49
  import 'date-fns/isToday';
50
- import 'date-fns/add';
51
- import '../global/sniffer.js';
52
- import 'sniffr';
53
50
  import '../global/intersection-observer-context.js';
54
51
  import './scroll-arith.js';
55
52
  import './use-scroll-behavior.js';
56
- import '../global/use-event-callback.js';
57
53
  import '../global/schedule-raf.js';
58
54
  import 'date-fns/addYears';
59
55
  import 'date-fns/getYear';
@@ -62,6 +58,9 @@ import 'date-fns/isThisYear';
62
58
  import 'date-fns/setYear';
63
59
  import 'date-fns/startOfYear';
64
60
  import 'date-fns/setDay';
61
+ import 'date-fns/add';
62
+ import '../global/sniffer.js';
63
+ import 'sniffr';
65
64
  import 'date-fns/isThisMonth';
66
65
  import '../global/linear-function.js';
67
66
  import './month-slider.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';
@@ -1,4 +1,4 @@
1
- import { c } from 'react-compiler-runtime';
1
+ import { c } from 'react/compiler-runtime';
2
2
  import { useState } from 'react';
3
3
  import classNames from 'classnames';
4
4
  import { addYears } from 'date-fns/addYears';
@@ -1,4 +1,4 @@
1
- import { c } from 'react-compiler-runtime';
1
+ import { c } from 'react/compiler-runtime';
2
2
  import { format } from 'date-fns/format';
3
3
  import { getDay } from 'date-fns/getDay';
4
4
  import { getDaysInMonth, setDate } from 'date-fns';