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

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 (65) hide show
  1. package/components/_helpers/alert.js +3 -0
  2. package/components/_helpers/caption.js +1 -1
  3. package/components/_helpers/header.js +1 -1
  4. package/components/_helpers/table.js +1 -1
  5. package/components/alert/alert-actions.d.ts +4 -0
  6. package/components/alert/alert-actions.js +51 -0
  7. package/components/alert/alert-heading.d.ts +4 -0
  8. package/components/alert/alert-heading.js +62 -0
  9. package/components/alert/alert.d.ts +14 -1
  10. package/components/alert/alert.js +43 -25
  11. package/components/alert-service/alert-service.d.ts +2 -1
  12. package/components/alert-service/alert-service.js +15 -5
  13. package/components/auth/auth-core.d.ts +5 -9
  14. package/components/auth/auth-core.js +71 -17
  15. package/components/auth/auth.js +7 -1
  16. package/components/auth/down-notification.js +7 -1
  17. package/components/auth/storage.js +7 -1
  18. package/components/clipboard/clipboard.js +7 -1
  19. package/components/date-picker/consts.d.ts +1 -0
  20. package/components/date-picker/date-input.js +3 -2
  21. package/components/header/header.js +7 -1
  22. package/components/header/smart-profile.js +7 -1
  23. package/components/http/http.d.ts +2 -2
  24. package/components/http/http.js +2 -2
  25. package/components/i18n/i18n.d.ts +1 -0
  26. package/components/i18n/i18n.js +2 -0
  27. package/components/internal/reorder-animation-context.js +159 -0
  28. package/components/internal/reorder-handle.js +750 -0
  29. package/components/internal/reorder-layout-context.js +141 -0
  30. package/components/internal/table-header.js +221 -645
  31. package/components/internal/{virtual-items.js → virtualization.js} +29 -14
  32. package/components/old-browsers-message/white-list.js +2 -2
  33. package/components/storage/storage-local.js +7 -1
  34. package/components/storage/storage.js +7 -1
  35. package/components/style.css +1 -1
  36. package/components/table/default-item-renderer.d.ts +7 -1
  37. package/components/table/default-item-renderer.js +119 -67
  38. package/components/table/internal/reorder-animation-context.d.ts +21 -0
  39. package/components/table/internal/reorder-handle.d.ts +9 -0
  40. package/components/table/internal/reorder-layout-context.d.ts +16 -0
  41. package/components/table/internal/table-header.d.ts +1 -4
  42. package/components/table/internal/{virtual-items.d.ts → virtualization.d.ts} +10 -3
  43. package/components/table/item-virtualization.d.ts +5 -3
  44. package/components/table/item-virtualization.js +13 -11
  45. package/components/table/reorder-animation.d.ts +37 -0
  46. package/components/table/reorder-animation.js +18 -0
  47. package/components/table/reorder-item-layout.d.ts +32 -0
  48. package/components/table/reorder-item-layout.js +57 -0
  49. package/components/table/table-const.d.ts +0 -32
  50. package/components/table/table-const.js +1 -8
  51. package/components/table/table-primitives.d.ts +43 -0
  52. package/components/table/table-primitives.js +62 -5
  53. package/components/table/table-props.d.ts +29 -5
  54. package/components/table/table.d.ts +31 -5
  55. package/components/table/table.js +177 -170
  56. package/components/user-agreement/service.js +7 -1
  57. package/components/user-card/card.js +7 -1
  58. package/components/user-card/smart-user-card-tooltip.d.ts +1 -1
  59. package/components/user-card/smart-user-card-tooltip.js +7 -1
  60. package/components/user-card/tooltip.js +7 -1
  61. package/components/user-card/user-card.js +7 -1
  62. package/components/util-stories.d.ts +2 -2
  63. package/package.json +2 -2
  64. package/components/internal/column-animation.js +0 -133
  65. package/components/table/internal/column-animation.d.ts +0 -16
@@ -1,48 +1,52 @@
1
1
  import { c } from 'react/compiler-runtime';
2
2
  import { useRef, Fragment } from 'react';
3
3
  import classNames from 'classnames';
4
- import { IntersectionObserverContext } from '../global/intersection-observer-context.js';
5
- import { useVirtualItems, SpacerRow, CollapseItemIntoSpacerContext } from '../internal/virtual-items.js';
4
+ import { useVirtualItems, SpacerRow, VirtualizationContext } from '../internal/virtualization.js';
6
5
  import { DefaultItemRenderer } from './default-item-renderer.js';
7
- import { ColumnAnimationContext, TablePropsContext, defaultRowHeight } from './table-const.js';
6
+ import { TablePropsContext, defaultRowHeight } from './table-const.js';
8
7
  import { focusWithTemporaryTabIndex } from '../global/focus-with-temporary-tabindex.js';
9
- import { useColumnAnimation } from '../internal/column-animation.js';
8
+ import { useReorderAnimationContextValue, ReorderAnimationContext } from '../internal/reorder-animation-context.js';
10
9
  import { useComposedRef } from '../global/compose-refs.js';
11
10
  import { TableHeader } from '../internal/table-header.js';
12
11
  import { keyboardFocusableAttrName } from './table-primitives.js';
13
12
  import { isWithinNavigableElement } from '../global/is-within-navigable-element.js';
13
+ import { useReorderLayoutContextValue, ReorderLayoutContext } from '../internal/reorder-layout-context.js';
14
14
  import { s as styles } from '../_helpers/table.js';
15
15
  import { jsxs, jsx } from 'react/jsx-runtime';
16
+ import '../global/intersection-observer-context.js';
16
17
  import '../global/schedule-with-cleanup.js';
17
18
  import './item-virtualization.js';
19
+ import './reorder-item-layout.js';
18
20
  import 'memoize-one';
19
- import '../global/parse-css-duration.js';
20
- import '@jetbrains/icons/arrow-12px-down';
21
- import '@jetbrains/icons/arrow-12px-up';
21
+ import '../internal/reorder-handle.js';
22
22
  import '@jetbrains/icons/drag-12px';
23
- import '@jetbrains/icons/settings-12px';
24
- import '@jetbrains/icons/trash-12px';
25
- import '@jetbrains/icons/unsorted-12px';
26
23
  import '../icon/icon.js';
27
24
  import 'util-deprecate';
28
25
  import '../icon/icon.constants.js';
29
26
  import '../_helpers/icon-svg.js';
30
27
  import '../global/memoize.js';
28
+ import '../global/parse-css-duration.js';
29
+ import '@jetbrains/icons/arrow-12px-down';
30
+ import '@jetbrains/icons/arrow-12px-up';
31
+ import '@jetbrains/icons/settings-12px';
32
+ import '@jetbrains/icons/trash-12px';
33
+ import '@jetbrains/icons/unsorted-12px';
31
34
  import '../global/is-within-interactive-element.js';
32
35
 
33
36
  function Table(props) {
34
- const $ = c(67);
35
- if ($[0] !== "1440c2302382a13607fbec3a1414b9f71b4289aa94d28f71036161709e9e4ef7") {
36
- for (let $i = 0; $i < 67; $i += 1) {
37
+ const $ = c(68);
38
+ if ($[0] !== "0b2671256cf6184450b7f5a987c20b706c8cb7e8a0bf848df36efecc0eb647dc") {
39
+ for (let $i = 0; $i < 68; $i += 1) {
37
40
  $[$i] = Symbol.for("react.memo_cache_sentinel");
38
41
  }
39
- $[0] = "1440c2302382a13607fbec3a1414b9f71b4289aa94d28f71036161709e9e4ef7";
42
+ $[0] = "0b2671256cf6184450b7f5a987c20b706c8cb7e8a0bf848df36efecc0eb647dc";
40
43
  }
41
44
  let className;
42
45
  let columns;
43
46
  let data;
44
47
  let getKey;
45
48
  let noColumnReorderAnimation;
49
+ let noItemReorderAnimation;
46
50
  let renderItem;
47
51
  let restProps;
48
52
  let scrollerRef;
@@ -64,70 +68,76 @@ function Table(props) {
64
68
  onColumnDelete,
65
69
  onColumnReorder,
66
70
  noColumnReorderAnimation: t8,
67
- renderItem: t9,
68
- virtualizeRows: t10,
69
- scrollerRef: t11,
70
- estimateHeight: t12,
71
- lookaheadPx: t13,
72
- retentionMarginPx: t14,
73
- minScrollAndResizeDeltaPx: t15,
71
+ canReorderItem,
72
+ onItemReorder,
73
+ noItemReorderAnimation: t9,
74
+ renderItem: t10,
75
+ virtualizeRows: t11,
76
+ scrollerRef: t12,
77
+ estimateHeight: t13,
78
+ lookaheadPx: t14,
79
+ retentionMarginPx: t15,
80
+ minScrollAndResizeDeltaPx: t16,
74
81
  columnEditing,
75
82
  onColumnEditingRequest,
76
83
  columnEditButton,
77
84
  theadClassName,
78
85
  theadTrClassName,
79
- tbodyClassName: t16,
80
- ref: t17,
81
- className: t18,
82
- ...t19
86
+ tbodyClassName: t17,
87
+ ref: t18,
88
+ className: t19,
89
+ ...t20
83
90
  } = props;
84
91
  data = t5;
85
92
  columns = t6;
86
93
  getKey = t7;
87
94
  noColumnReorderAnimation = t8;
88
- renderItem = t9;
89
- t0 = t10;
90
- scrollerRef = t11;
91
- t1 = t12;
92
- t2 = t13;
93
- t3 = t14;
94
- t4 = t15;
95
- tbodyClassName = t16;
96
- userRef = t17;
97
- className = t18;
98
- restProps = t19;
95
+ noItemReorderAnimation = t9;
96
+ renderItem = t10;
97
+ t0 = t11;
98
+ scrollerRef = t12;
99
+ t1 = t13;
100
+ t2 = t14;
101
+ t3 = t15;
102
+ t4 = t16;
103
+ tbodyClassName = t17;
104
+ userRef = t18;
105
+ className = t19;
106
+ restProps = t20;
99
107
  $[1] = props;
100
108
  $[2] = className;
101
109
  $[3] = columns;
102
110
  $[4] = data;
103
111
  $[5] = getKey;
104
112
  $[6] = noColumnReorderAnimation;
105
- $[7] = renderItem;
106
- $[8] = restProps;
107
- $[9] = scrollerRef;
108
- $[10] = t0;
109
- $[11] = t1;
110
- $[12] = t2;
111
- $[13] = t3;
112
- $[14] = t4;
113
- $[15] = tbodyClassName;
114
- $[16] = userRef;
113
+ $[7] = noItemReorderAnimation;
114
+ $[8] = renderItem;
115
+ $[9] = restProps;
116
+ $[10] = scrollerRef;
117
+ $[11] = t0;
118
+ $[12] = t1;
119
+ $[13] = t2;
120
+ $[14] = t3;
121
+ $[15] = t4;
122
+ $[16] = tbodyClassName;
123
+ $[17] = userRef;
115
124
  } else {
116
125
  className = $[2];
117
126
  columns = $[3];
118
127
  data = $[4];
119
128
  getKey = $[5];
120
129
  noColumnReorderAnimation = $[6];
121
- renderItem = $[7];
122
- restProps = $[8];
123
- scrollerRef = $[9];
124
- t0 = $[10];
125
- t1 = $[11];
126
- t2 = $[12];
127
- t3 = $[13];
128
- t4 = $[14];
129
- tbodyClassName = $[15];
130
- userRef = $[16];
130
+ noItemReorderAnimation = $[7];
131
+ renderItem = $[8];
132
+ restProps = $[9];
133
+ scrollerRef = $[10];
134
+ t0 = $[11];
135
+ t1 = $[12];
136
+ t2 = $[13];
137
+ t3 = $[14];
138
+ t4 = $[15];
139
+ tbodyClassName = $[16];
140
+ userRef = $[17];
131
141
  }
132
142
  const virtualizeRows = t0 === undefined ? false : t0;
133
143
  const estimateHeight = t1 === undefined ? _temp : t1;
@@ -136,53 +146,26 @@ function Table(props) {
136
146
  const minScrollAndResizeDeltaPx = t4 === undefined ? 50 : t4;
137
147
  const localRef = useRef(null);
138
148
  let t5;
139
- if ($[17] !== data || $[18] !== estimateHeight || $[19] !== lookaheadPx || $[20] !== minScrollAndResizeDeltaPx || $[21] !== retentionMarginPx || $[22] !== scrollerRef || $[23] !== virtualizeRows) {
149
+ if ($[18] !== columns || $[19] !== data || $[20] !== noColumnReorderAnimation || $[21] !== noItemReorderAnimation) {
140
150
  t5 = {
141
- enabled: virtualizeRows,
142
- data,
143
- scrollerRef,
144
- tableRef: localRef,
145
- estimateHeight,
146
- lookaheadPx,
147
- retentionMarginPx,
148
- minScrollAndResizeDeltaPx
149
- };
150
- $[17] = data;
151
- $[18] = estimateHeight;
152
- $[19] = lookaheadPx;
153
- $[20] = minScrollAndResizeDeltaPx;
154
- $[21] = retentionMarginPx;
155
- $[22] = scrollerRef;
156
- $[23] = virtualizeRows;
157
- $[24] = t5;
158
- } else {
159
- t5 = $[24];
160
- }
161
- const {
162
- virtualItems,
163
- intersectionObserverHandle,
164
- collapseItemIntoSpacer
165
- } = useVirtualItems(t5);
166
- let t6;
167
- if ($[25] !== columns || $[26] !== noColumnReorderAnimation) {
168
- t6 = {
169
- disabled: noColumnReorderAnimation,
151
+ noColumnReorderAnimation,
152
+ noItemReorderAnimation,
170
153
  tableRef: localRef,
154
+ data,
171
155
  columns
172
156
  };
173
- $[25] = columns;
174
- $[26] = noColumnReorderAnimation;
175
- $[27] = t6;
157
+ $[18] = columns;
158
+ $[19] = data;
159
+ $[20] = noColumnReorderAnimation;
160
+ $[21] = noItemReorderAnimation;
161
+ $[22] = t5;
176
162
  } else {
177
- t6 = $[27];
163
+ t5 = $[22];
178
164
  }
179
- const {
180
- columnAnimation,
181
- expectColumnReorder
182
- } = useColumnAnimation(t6);
183
- let t7;
184
- if ($[28] === Symbol.for("react.memo_cache_sentinel")) {
185
- t7 = e => {
165
+ const reorderAnimationContextValue = useReorderAnimationContextValue(t5);
166
+ let t6;
167
+ if ($[23] === Symbol.for("react.memo_cache_sentinel")) {
168
+ t6 = function handleRowNavigation(e) {
186
169
  if (e.defaultPrevented || isWithinNavigableElement(e.target)) {
187
170
  return;
188
171
  }
@@ -205,35 +188,60 @@ function Table(props) {
205
188
  }
206
189
  }
207
190
  };
208
- $[28] = t7;
191
+ $[23] = t6;
192
+ } else {
193
+ t6 = $[23];
194
+ }
195
+ const handleRowNavigation = t6;
196
+ let t7;
197
+ if ($[24] !== data || $[25] !== estimateHeight || $[26] !== lookaheadPx || $[27] !== minScrollAndResizeDeltaPx || $[28] !== retentionMarginPx || $[29] !== scrollerRef || $[30] !== virtualizeRows) {
198
+ t7 = {
199
+ enabled: virtualizeRows,
200
+ data,
201
+ scrollerRef,
202
+ tableRef: localRef,
203
+ estimateHeight,
204
+ lookaheadPx,
205
+ retentionMarginPx,
206
+ minScrollAndResizeDeltaPx
207
+ };
208
+ $[24] = data;
209
+ $[25] = estimateHeight;
210
+ $[26] = lookaheadPx;
211
+ $[27] = minScrollAndResizeDeltaPx;
212
+ $[28] = retentionMarginPx;
213
+ $[29] = scrollerRef;
214
+ $[30] = virtualizeRows;
215
+ $[31] = t7;
209
216
  } else {
210
- t7 = $[28];
217
+ t7 = $[31];
211
218
  }
212
- const handleRowNavigation = t7;
219
+ const {
220
+ virtualItems,
221
+ virtualizationContextValue
222
+ } = useVirtualItems(t7);
223
+ const itemReorderLayoutContextValue = useReorderLayoutContextValue();
213
224
  let t8;
214
- if ($[29] !== className) {
225
+ if ($[32] !== className) {
215
226
  t8 = classNames(styles.table, className);
216
- $[29] = className;
217
- $[30] = t8;
227
+ $[32] = className;
228
+ $[33] = t8;
218
229
  } else {
219
- t8 = $[30];
230
+ t8 = $[33];
220
231
  }
221
232
  const t9 = useComposedRef(userRef, localRef);
222
233
  let t10;
223
- if ($[31] !== expectColumnReorder) {
224
- t10 = /*#__PURE__*/jsx(TableHeader, {
225
- expectColumnReorder: expectColumnReorder
226
- });
227
- $[31] = expectColumnReorder;
228
- $[32] = t10;
234
+ if ($[34] === Symbol.for("react.memo_cache_sentinel")) {
235
+ t10 = /*#__PURE__*/jsx(TableHeader, {});
236
+ $[34] = t10;
229
237
  } else {
230
- t10 = $[32];
238
+ t10 = $[34];
231
239
  }
232
240
  const t11 = virtualizeRows ? virtualItems : data;
233
241
  let t12;
234
- if ($[33] !== columns || $[34] !== data || $[35] !== getKey || $[36] !== renderItem || $[37] !== t11 || $[38] !== virtualizeRows) {
242
+ if ($[35] !== columns || $[36] !== data || $[37] !== getKey || $[38] !== renderItem || $[39] !== t11 || $[40] !== virtualizeRows) {
235
243
  let t13;
236
- if ($[40] !== columns || $[41] !== data || $[42] !== getKey || $[43] !== renderItem || $[44] !== virtualizeRows) {
244
+ if ($[42] !== columns || $[43] !== data || $[44] !== getKey || $[45] !== renderItem || $[46] !== virtualizeRows) {
237
245
  t13 = (item, index) => {
238
246
  let dataItem;
239
247
  let dataItemIndex;
@@ -260,103 +268,102 @@ function Table(props) {
260
268
  })
261
269
  }, getKey(dataItem, dataItemIndex, data));
262
270
  };
263
- $[40] = columns;
264
- $[41] = data;
265
- $[42] = getKey;
266
- $[43] = renderItem;
267
- $[44] = virtualizeRows;
268
- $[45] = t13;
271
+ $[42] = columns;
272
+ $[43] = data;
273
+ $[44] = getKey;
274
+ $[45] = renderItem;
275
+ $[46] = virtualizeRows;
276
+ $[47] = t13;
269
277
  } else {
270
- t13 = $[45];
278
+ t13 = $[47];
271
279
  }
272
280
  t12 = t11.map(t13);
273
- $[33] = columns;
274
- $[34] = data;
275
- $[35] = getKey;
276
- $[36] = renderItem;
277
- $[37] = t11;
278
- $[38] = virtualizeRows;
279
- $[39] = t12;
281
+ $[35] = columns;
282
+ $[36] = data;
283
+ $[37] = getKey;
284
+ $[38] = renderItem;
285
+ $[39] = t11;
286
+ $[40] = virtualizeRows;
287
+ $[41] = t12;
280
288
  } else {
281
- t12 = $[39];
289
+ t12 = $[41];
282
290
  }
283
291
  let t13;
284
- if ($[46] !== t12 || $[47] !== tbodyClassName) {
285
- t13 = /*#__PURE__*/jsx("tbody", {
286
- className: tbodyClassName,
287
- onKeyDown: handleRowNavigation,
292
+ if ($[48] !== itemReorderLayoutContextValue || $[49] !== t12) {
293
+ t13 = /*#__PURE__*/jsx(ReorderLayoutContext, {
294
+ value: itemReorderLayoutContextValue,
288
295
  children: t12
289
296
  });
290
- $[46] = t12;
291
- $[47] = tbodyClassName;
292
- $[48] = t13;
297
+ $[48] = itemReorderLayoutContextValue;
298
+ $[49] = t12;
299
+ $[50] = t13;
293
300
  } else {
294
- t13 = $[48];
301
+ t13 = $[50];
295
302
  }
296
303
  let t14;
297
- if ($[49] !== collapseItemIntoSpacer || $[50] !== t13) {
298
- t14 = /*#__PURE__*/jsx(CollapseItemIntoSpacerContext, {
299
- value: collapseItemIntoSpacer,
304
+ if ($[51] !== t13 || $[52] !== virtualizationContextValue) {
305
+ t14 = /*#__PURE__*/jsx(VirtualizationContext, {
306
+ value: virtualizationContextValue,
300
307
  children: t13
301
308
  });
302
- $[49] = collapseItemIntoSpacer;
303
- $[50] = t13;
304
- $[51] = t14;
309
+ $[51] = t13;
310
+ $[52] = virtualizationContextValue;
311
+ $[53] = t14;
305
312
  } else {
306
- t14 = $[51];
313
+ t14 = $[53];
307
314
  }
308
315
  let t15;
309
- if ($[52] !== intersectionObserverHandle || $[53] !== t14) {
310
- t15 = /*#__PURE__*/jsx(IntersectionObserverContext, {
311
- value: intersectionObserverHandle,
316
+ if ($[54] !== t14 || $[55] !== tbodyClassName) {
317
+ t15 = /*#__PURE__*/jsx("tbody", {
318
+ className: tbodyClassName,
319
+ onKeyDown: handleRowNavigation,
312
320
  children: t14
313
321
  });
314
- $[52] = intersectionObserverHandle;
315
- $[53] = t14;
316
- $[54] = t15;
322
+ $[54] = t14;
323
+ $[55] = tbodyClassName;
324
+ $[56] = t15;
317
325
  } else {
318
- t15 = $[54];
326
+ t15 = $[56];
319
327
  }
320
328
  let t16;
321
- if ($[55] !== restProps || $[56] !== t10 || $[57] !== t15 || $[58] !== t8 || $[59] !== t9) {
329
+ if ($[57] !== restProps || $[58] !== t15 || $[59] !== t8 || $[60] !== t9) {
322
330
  t16 = /*#__PURE__*/jsxs("table", {
323
331
  className: t8,
324
332
  ref: t9,
325
333
  ...restProps,
326
334
  children: [t10, t15]
327
335
  });
328
- $[55] = restProps;
329
- $[56] = t10;
330
- $[57] = t15;
331
- $[58] = t8;
332
- $[59] = t9;
333
- $[60] = t16;
336
+ $[57] = restProps;
337
+ $[58] = t15;
338
+ $[59] = t8;
339
+ $[60] = t9;
340
+ $[61] = t16;
334
341
  } else {
335
- t16 = $[60];
342
+ t16 = $[61];
336
343
  }
337
344
  let t17;
338
- if ($[61] !== columnAnimation || $[62] !== t16) {
339
- t17 = /*#__PURE__*/jsx(ColumnAnimationContext, {
340
- value: columnAnimation,
345
+ if ($[62] !== reorderAnimationContextValue || $[63] !== t16) {
346
+ t17 = /*#__PURE__*/jsx(ReorderAnimationContext, {
347
+ value: reorderAnimationContextValue,
341
348
  children: t16
342
349
  });
343
- $[61] = columnAnimation;
344
- $[62] = t16;
345
- $[63] = t17;
350
+ $[62] = reorderAnimationContextValue;
351
+ $[63] = t16;
352
+ $[64] = t17;
346
353
  } else {
347
- t17 = $[63];
354
+ t17 = $[64];
348
355
  }
349
356
  let t18;
350
- if ($[64] !== props || $[65] !== t17) {
357
+ if ($[65] !== props || $[66] !== t17) {
351
358
  t18 = /*#__PURE__*/jsx(TablePropsContext, {
352
359
  value: props,
353
360
  children: t17
354
361
  });
355
- $[64] = props;
356
- $[65] = t17;
357
- $[66] = t18;
362
+ $[65] = props;
363
+ $[66] = t17;
364
+ $[67] = t18;
358
365
  } else {
359
- t18 = $[66];
366
+ t18 = $[67];
360
367
  }
361
368
  return t18;
362
369
  }
@@ -11,8 +11,9 @@ import '../global/get-uid.js';
11
11
  import 'react';
12
12
  import 'classnames';
13
13
  import '@jetbrains/icons/exception';
14
- import '@jetbrains/icons/checkmark';
14
+ import '@jetbrains/icons/success';
15
15
  import '@jetbrains/icons/warning';
16
+ import '@jetbrains/icons/info-filled';
16
17
  import '@jetbrains/icons/close';
17
18
  import '../icon/icon.js';
18
19
  import 'util-deprecate';
@@ -30,6 +31,11 @@ import '../link/clickable-link.js';
30
31
  import '../_helpers/button.classes.js';
31
32
  import '../global/configuration.js';
32
33
  import '../_helpers/theme.js';
34
+ import '../alert/alert-heading.js';
35
+ import '../heading/heading.js';
36
+ import '../_helpers/heading.js';
37
+ import '../_helpers/alert.js';
38
+ import '../alert/alert-actions.js';
33
39
  import '../alert/container.js';
34
40
  import 'react-dom';
35
41
  import '../_helpers/link.js';
@@ -28,8 +28,9 @@ import '../alert-service/alert-service.js';
28
28
  import 'react-dom/client';
29
29
  import '../alert/alert.js';
30
30
  import '@jetbrains/icons/exception';
31
- import '@jetbrains/icons/checkmark';
31
+ import '@jetbrains/icons/success';
32
32
  import '@jetbrains/icons/warning';
33
+ import '@jetbrains/icons/info-filled';
33
34
  import '@jetbrains/icons/close';
34
35
  import '../loader-inline/loader-inline.js';
35
36
  import '../button/button.js';
@@ -40,6 +41,11 @@ import '../global/configuration.js';
40
41
  import '../_helpers/button.classes.js';
41
42
  import '../_helpers/icon-svg.js';
42
43
  import '../_helpers/theme.js';
44
+ import '../alert/alert-heading.js';
45
+ import '../heading/heading.js';
46
+ import '../_helpers/heading.js';
47
+ import '../_helpers/alert.js';
48
+ import '../alert/alert-actions.js';
43
49
  import '../alert/container.js';
44
50
  import 'react-dom';
45
51
  import '../clipboard/clipboard-fallback.js';
@@ -10,6 +10,6 @@ export default class SmartUserCardTooltip extends Component<SmartUserCardTooltip
10
10
  loading: boolean;
11
11
  };
12
12
  loadUser: () => Promise<void>;
13
- renderNoUser: () => "" | import("react").JSX.Element;
13
+ renderNoUser: () => import("react").JSX.Element | "";
14
14
  render(): import("react").JSX.Element;
15
15
  }
@@ -51,9 +51,15 @@ import '../alert-service/alert-service.js';
51
51
  import 'react-dom/client';
52
52
  import '../alert/alert.js';
53
53
  import '@jetbrains/icons/exception';
54
- import '@jetbrains/icons/checkmark';
54
+ import '@jetbrains/icons/success';
55
55
  import '@jetbrains/icons/warning';
56
+ import '@jetbrains/icons/info-filled';
56
57
  import '@jetbrains/icons/close';
58
+ import '../alert/alert-heading.js';
59
+ import '../heading/heading.js';
60
+ import '../_helpers/heading.js';
61
+ import '../_helpers/alert.js';
62
+ import '../alert/alert-actions.js';
57
63
  import '../alert/container.js';
58
64
  import '../clipboard/clipboard-fallback.js';
59
65
  import '../tag/tag.js';
@@ -49,10 +49,16 @@ import '../alert-service/alert-service.js';
49
49
  import 'react-dom/client';
50
50
  import '../alert/alert.js';
51
51
  import '@jetbrains/icons/exception';
52
- import '@jetbrains/icons/checkmark';
52
+ import '@jetbrains/icons/success';
53
53
  import '@jetbrains/icons/warning';
54
+ import '@jetbrains/icons/info-filled';
54
55
  import '@jetbrains/icons/close';
55
56
  import '../loader-inline/loader-inline.js';
57
+ import '../alert/alert-heading.js';
58
+ import '../heading/heading.js';
59
+ import '../_helpers/heading.js';
60
+ import '../_helpers/alert.js';
61
+ import '../alert/alert-actions.js';
56
62
  import '../alert/container.js';
57
63
  import '../clipboard/clipboard-fallback.js';
58
64
  import '../tag/tag.js';
@@ -25,8 +25,9 @@ import '../alert-service/alert-service.js';
25
25
  import 'react-dom/client';
26
26
  import '../alert/alert.js';
27
27
  import '@jetbrains/icons/exception';
28
- import '@jetbrains/icons/checkmark';
28
+ import '@jetbrains/icons/success';
29
29
  import '@jetbrains/icons/warning';
30
+ import '@jetbrains/icons/info-filled';
30
31
  import '@jetbrains/icons/close';
31
32
  import '../icon/icon.js';
32
33
  import '../icon/icon.constants.js';
@@ -39,6 +40,11 @@ import '../global/controls-height.js';
39
40
  import '../global/configuration.js';
40
41
  import '../_helpers/button.classes.js';
41
42
  import '../_helpers/theme.js';
43
+ import '../alert/alert-heading.js';
44
+ import '../heading/heading.js';
45
+ import '../_helpers/heading.js';
46
+ import '../_helpers/alert.js';
47
+ import '../alert/alert-actions.js';
42
48
  import '../alert/container.js';
43
49
  import 'react-dom';
44
50
  import '../clipboard/clipboard-fallback.js';
@@ -19,9 +19,9 @@ export declare function createRandom(seed: bigint): {
19
19
  /**
20
20
  * Up to random n items (in random order) from the array
21
21
  */
22
- <T>(array: T[], n: number): T[];
22
+ <T>(array: readonly T[], n: number): T[];
23
23
  /**
24
24
  * Random item from the array
25
25
  */
26
- <T>(array: T[]): T;
26
+ <T>(array: readonly T[]): T;
27
27
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jetbrains/ring-ui-built",
3
- "version": "8.0.0-beta.4",
3
+ "version": "8.0.0-beta.5",
4
4
  "description": "JetBrains UI library",
5
5
  "author": {
6
6
  "name": "JetBrains"
@@ -120,7 +120,7 @@
120
120
  "dequal": "^2.0.3",
121
121
  "element-resize-detector": "^1.2.4",
122
122
  "fastdom": "^1.0.12",
123
- "focus-trap": "^8.2.1",
123
+ "focus-trap": "^8.2.2",
124
124
  "highlight.js": "^10.7.2",
125
125
  "just-debounce-it": "^3.2.0",
126
126
  "memoize-one": "^6.0.0",