@jetbrains/ring-ui-built 8.0.0-beta.5 → 8.0.0-beta.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/_helpers/avatar-info.js +2 -4
- package/components/_helpers/icon-svg.js +1 -1
- package/components/auth-dialog/auth-dialog.js +1 -1
- package/components/avatar/avatar-size.d.ts +0 -4
- package/components/avatar/avatar-size.js +0 -4
- package/components/avatar/avatar.js +0 -7
- package/components/avatar/fallback-avatar.js +2 -47
- package/components/avatar-stack/avatar-stack.js +3 -3
- package/components/button/button.d.ts +0 -4
- package/components/button/button.js +2 -8
- package/components/collapse/collapse-content.d.ts +7 -0
- package/components/collapse/collapse-content.js +67 -35
- package/components/collapse/collapse-context.d.ts +1 -0
- package/components/collapse/collapse-context.js +1 -0
- package/components/collapse/collapse.d.ts +9 -0
- package/components/collapse/collapse.js +42 -38
- package/components/collapsible-group/collapsible-group.d.ts +14 -1
- package/components/collapsible-group/collapsible-group.js +82 -64
- package/components/confirm/confirm.js +1 -1
- package/components/confirm-service/confirm-service.js +1 -1
- package/components/data-list/data-list.js +1 -1
- package/components/data-list/item.js +1 -1
- package/components/date-picker/date-input.js +1 -1
- package/components/date-picker/date-popup.js +1 -1
- package/components/dialog/dialog.js +1 -1
- package/components/dropdown/anchor.js +1 -1
- package/components/dropdown/dropdown.js +1 -1
- package/components/global/variables.interface.d.ts +0 -4
- package/components/header/header-icon.js +1 -1
- package/components/header/header.js +1 -1
- package/components/header/profile.js +3 -3
- package/components/header/services.js +1 -1
- package/components/header/smart-profile.js +1 -1
- package/components/header/smart-services.js +1 -1
- package/components/icon/icon.d.ts +0 -1
- package/components/icon/icon.js +1 -4
- package/components/input/input.js +1 -1
- package/components/list/consts.d.ts +0 -1
- package/components/list/consts.js +0 -1
- package/components/list/list-item.js +2 -3
- package/components/list/list.d.ts +0 -4
- package/components/login-dialog/login-dialog.js +1 -1
- package/components/pager/pager.js +2 -2
- package/components/select/chevron-button.js +1 -1
- package/components/select/select-filter.js +1 -1
- package/components/select/select.js +3 -3
- package/components/style.css +1 -1
- package/components/tags-input/tags-input.js +2 -2
- package/components/user-agreement/user-agreement.js +1 -1
- package/components/user-card/card.js +3 -3
- package/components/user-card/smart-user-card-tooltip.js +1 -1
- package/components/user-card/tooltip.js +1 -1
- package/components/user-card/user-card.js +3 -3
- package/package.json +1 -2
- package/components/__mocks__/old-browsers-message.js +0 -3
- package/components/_helpers/grid.js +0 -3
- package/components/_helpers/sidebar.js +0 -110
- package/components/content-layout/content-layout.d.ts +0 -20
- package/components/content-layout/content-layout.js +0 -50
- package/components/content-layout/sidebar.d.ts +0 -26
- package/components/content-layout/sidebar.js +0 -5
- package/components/expand/collapsible-group.d.ts +0 -8
- package/components/expand/collapsible-group.js +0 -51
- package/components/grid/col.d.ts +0 -16
- package/components/grid/col.js +0 -63
- package/components/grid/grid.d.ts +0 -13
- package/components/grid/grid.js +0 -27
- package/components/grid/row.d.ts +0 -21
- package/components/grid/row.js +0 -72
- package/components/old-browsers-message/old-browsers-message-stop.d.ts +0 -1
- package/components/old-browsers-message/old-browsers-message-stop.js +0 -5
- package/components/old-browsers-message/old-browsers-message.d.ts +0 -5
- package/components/old-browsers-message/old-browsers-message.js +0 -89
- package/components/old-browsers-message/white-list.d.ts +0 -2
- package/components/old-browsers-message/white-list.js +0 -30
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { c } from 'react/compiler-runtime';
|
|
2
|
-
import { useState, use } from 'react';
|
|
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';
|
|
@@ -15,17 +15,18 @@ import '../global/memoize.js';
|
|
|
15
15
|
import '../collapse/consts.js';
|
|
16
16
|
import '../global/data-tests.js';
|
|
17
17
|
import '../global/dom.js';
|
|
18
|
+
import '../global/parse-css-duration.js';
|
|
18
19
|
import '../collapse/utils.js';
|
|
19
20
|
|
|
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
|
+
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
22
|
|
|
22
23
|
function CollapsibleGroupHeaderContent(t0) {
|
|
23
24
|
const $ = c(16);
|
|
24
|
-
if ($[0] !== "
|
|
25
|
+
if ($[0] !== "541af245e7b946a00fb862bbdbeef43dd124294e4c71865b955620d61a2591dd") {
|
|
25
26
|
for (let $i = 0; $i < 16; $i += 1) {
|
|
26
27
|
$[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
27
28
|
}
|
|
28
|
-
$[0] = "
|
|
29
|
+
$[0] = "541af245e7b946a00fb862bbdbeef43dd124294e4c71865b955620d61a2591dd";
|
|
29
30
|
}
|
|
30
31
|
const {
|
|
31
32
|
avatar,
|
|
@@ -120,11 +121,11 @@ function CollapsibleGroupHeaderContent(t0) {
|
|
|
120
121
|
}
|
|
121
122
|
function CollapsibleGroupHeader(t0) {
|
|
122
123
|
const $ = c(16);
|
|
123
|
-
if ($[0] !== "
|
|
124
|
+
if ($[0] !== "541af245e7b946a00fb862bbdbeef43dd124294e4c71865b955620d61a2591dd") {
|
|
124
125
|
for (let $i = 0; $i < 16; $i += 1) {
|
|
125
126
|
$[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
126
127
|
}
|
|
127
|
-
$[0] = "
|
|
128
|
+
$[0] = "541af245e7b946a00fb862bbdbeef43dd124294e4c71865b955620d61a2591dd";
|
|
128
129
|
}
|
|
129
130
|
let avatar;
|
|
130
131
|
let buttonProps;
|
|
@@ -193,11 +194,11 @@ function CollapsibleGroupHeader(t0) {
|
|
|
193
194
|
}
|
|
194
195
|
function CollapsibleGroupHeaderStatic(t0) {
|
|
195
196
|
const $ = c(5);
|
|
196
|
-
if ($[0] !== "
|
|
197
|
+
if ($[0] !== "541af245e7b946a00fb862bbdbeef43dd124294e4c71865b955620d61a2591dd") {
|
|
197
198
|
for (let $i = 0; $i < 5; $i += 1) {
|
|
198
199
|
$[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
199
200
|
}
|
|
200
|
-
$[0] = "
|
|
201
|
+
$[0] = "541af245e7b946a00fb862bbdbeef43dd124294e4c71865b955620d61a2591dd";
|
|
201
202
|
}
|
|
202
203
|
const {
|
|
203
204
|
avatar,
|
|
@@ -224,12 +225,12 @@ function CollapsibleGroupHeaderStatic(t0) {
|
|
|
224
225
|
return t1;
|
|
225
226
|
}
|
|
226
227
|
const CollapsibleGroup = t0 => {
|
|
227
|
-
const $ = c(
|
|
228
|
-
if ($[0] !== "
|
|
229
|
-
for (let $i = 0; $i <
|
|
228
|
+
const $ = c(33);
|
|
229
|
+
if ($[0] !== "541af245e7b946a00fb862bbdbeef43dd124294e4c71865b955620d61a2591dd") {
|
|
230
|
+
for (let $i = 0; $i < 33; $i += 1) {
|
|
230
231
|
$[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
231
232
|
}
|
|
232
|
-
$[0] = "
|
|
233
|
+
$[0] = "541af245e7b946a00fb862bbdbeef43dd124294e4c71865b955620d61a2591dd";
|
|
233
234
|
}
|
|
234
235
|
const {
|
|
235
236
|
ref,
|
|
@@ -243,6 +244,8 @@ const CollapsibleGroup = t0 => {
|
|
|
243
244
|
onChange: t3,
|
|
244
245
|
disableAnimation: t4,
|
|
245
246
|
interactive: t5,
|
|
247
|
+
keepMounted: t6,
|
|
248
|
+
headingLevel,
|
|
246
249
|
"data-test": dataTest
|
|
247
250
|
} = t0;
|
|
248
251
|
const defaultExpanded = t1 === undefined ? false : t1;
|
|
@@ -250,13 +253,14 @@ const CollapsibleGroup = t0 => {
|
|
|
250
253
|
const onChange = t3 === undefined ? _temp : t3;
|
|
251
254
|
const disableAnimation = t4 === undefined ? false : t4;
|
|
252
255
|
const interactive = t5 === undefined ? true : t5;
|
|
256
|
+
const keepMounted = t6 === undefined ? false : t6;
|
|
253
257
|
const [innerExpanded, setInnerExpanded] = useState(defaultExpanded);
|
|
254
258
|
const [hovered, setHovered] = useState(false);
|
|
255
259
|
const [focused, setFocused] = useState(false);
|
|
256
260
|
const isExpanded = expanded !== null && expanded !== void 0 ? expanded : innerExpanded;
|
|
257
|
-
let
|
|
261
|
+
let t7;
|
|
258
262
|
if ($[1] !== expanded || $[2] !== onChange) {
|
|
259
|
-
|
|
263
|
+
t7 = collapsed => {
|
|
260
264
|
const nextExpanded = !collapsed;
|
|
261
265
|
if (expanded == null) {
|
|
262
266
|
setInnerExpanded(nextExpanded);
|
|
@@ -265,28 +269,28 @@ const CollapsibleGroup = t0 => {
|
|
|
265
269
|
};
|
|
266
270
|
$[1] = expanded;
|
|
267
271
|
$[2] = onChange;
|
|
268
|
-
$[3] =
|
|
272
|
+
$[3] = t7;
|
|
269
273
|
} else {
|
|
270
|
-
|
|
274
|
+
t7 = $[3];
|
|
271
275
|
}
|
|
272
|
-
const handleChange =
|
|
273
|
-
let
|
|
276
|
+
const handleChange = t7;
|
|
277
|
+
let t8;
|
|
274
278
|
if ($[4] === Symbol.for("react.memo_cache_sentinel")) {
|
|
275
|
-
|
|
279
|
+
t8 = event => {
|
|
276
280
|
const nextTarget = event.relatedTarget;
|
|
277
281
|
if (nextTarget instanceof Node && event.currentTarget.contains(nextTarget)) {
|
|
278
282
|
return;
|
|
279
283
|
}
|
|
280
284
|
setFocused(false);
|
|
281
285
|
};
|
|
282
|
-
$[4] =
|
|
286
|
+
$[4] = t8;
|
|
283
287
|
} else {
|
|
284
|
-
|
|
288
|
+
t8 = $[4];
|
|
285
289
|
}
|
|
286
|
-
const onBlur =
|
|
287
|
-
let
|
|
290
|
+
const onBlur = t8;
|
|
291
|
+
let t9;
|
|
288
292
|
if ($[5] !== className || $[6] !== focused || $[7] !== hovered || $[8] !== isExpanded) {
|
|
289
|
-
|
|
293
|
+
t9 = classNames(styles.expand, className, {
|
|
290
294
|
[styles.hovered]: hovered,
|
|
291
295
|
[styles.expanded]: isExpanded,
|
|
292
296
|
[styles.focused]: focused
|
|
@@ -295,16 +299,14 @@ const CollapsibleGroup = t0 => {
|
|
|
295
299
|
$[6] = focused;
|
|
296
300
|
$[7] = hovered;
|
|
297
301
|
$[8] = isExpanded;
|
|
298
|
-
$[9] =
|
|
302
|
+
$[9] = t9;
|
|
299
303
|
} else {
|
|
300
|
-
|
|
304
|
+
t9 = $[9];
|
|
301
305
|
}
|
|
302
|
-
const classes =
|
|
303
|
-
|
|
304
|
-
const t10 = expanded == null ? null : !expanded;
|
|
305
|
-
let t11;
|
|
306
|
+
const classes = t9;
|
|
307
|
+
let t10;
|
|
306
308
|
if ($[10] !== avatar || $[11] !== interactive || $[12] !== subtitle || $[13] !== title) {
|
|
307
|
-
|
|
309
|
+
t10 = interactive ? /*#__PURE__*/jsx(CollapsibleGroupHeader, {
|
|
308
310
|
avatar: avatar,
|
|
309
311
|
titleContent: title,
|
|
310
312
|
subtitle: subtitle,
|
|
@@ -321,60 +323,76 @@ const CollapsibleGroup = t0 => {
|
|
|
321
323
|
$[11] = interactive;
|
|
322
324
|
$[12] = subtitle;
|
|
323
325
|
$[13] = title;
|
|
324
|
-
$[14] =
|
|
326
|
+
$[14] = t10;
|
|
325
327
|
} else {
|
|
326
|
-
|
|
328
|
+
t10 = $[14];
|
|
327
329
|
}
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
330
|
+
const header = t10;
|
|
331
|
+
const t11 = !defaultExpanded;
|
|
332
|
+
const t12 = expanded == null ? null : !expanded;
|
|
333
|
+
let t13;
|
|
334
|
+
if ($[15] !== header || $[16] !== headingLevel) {
|
|
335
|
+
t13 = headingLevel != null ? /*#__PURE__*/React__default.createElement(`h${headingLevel}`, {
|
|
336
|
+
className: styles.heading
|
|
337
|
+
}, header) : header;
|
|
338
|
+
$[15] = header;
|
|
339
|
+
$[16] = headingLevel;
|
|
340
|
+
$[17] = t13;
|
|
341
|
+
} else {
|
|
342
|
+
t13 = $[17];
|
|
343
|
+
}
|
|
344
|
+
let t14;
|
|
345
|
+
if ($[18] !== children) {
|
|
346
|
+
t14 = /*#__PURE__*/jsx(CollapseContent, {
|
|
331
347
|
children: /*#__PURE__*/jsx("div", {
|
|
332
348
|
className: styles.body,
|
|
333
349
|
children: children
|
|
334
350
|
})
|
|
335
351
|
});
|
|
336
|
-
$[
|
|
337
|
-
$[
|
|
352
|
+
$[18] = children;
|
|
353
|
+
$[19] = t14;
|
|
338
354
|
} else {
|
|
339
|
-
|
|
355
|
+
t14 = $[19];
|
|
340
356
|
}
|
|
341
|
-
let
|
|
342
|
-
if ($[
|
|
343
|
-
|
|
344
|
-
defaultCollapsed:
|
|
345
|
-
collapsed:
|
|
357
|
+
let t15;
|
|
358
|
+
if ($[20] !== disableAnimation || $[21] !== handleChange || $[22] !== keepMounted || $[23] !== t11 || $[24] !== t12 || $[25] !== t13 || $[26] !== t14) {
|
|
359
|
+
t15 = /*#__PURE__*/jsxs(Collapse, {
|
|
360
|
+
defaultCollapsed: t11,
|
|
361
|
+
collapsed: t12,
|
|
346
362
|
onChange: handleChange,
|
|
347
363
|
disableAnimation: disableAnimation,
|
|
364
|
+
keepMounted: keepMounted,
|
|
348
365
|
className: styles.collapseRoot,
|
|
349
|
-
children: [
|
|
366
|
+
children: [t13, t14]
|
|
350
367
|
});
|
|
351
|
-
$[
|
|
352
|
-
$[
|
|
353
|
-
$[
|
|
354
|
-
$[
|
|
355
|
-
$[
|
|
356
|
-
$[
|
|
357
|
-
$[
|
|
368
|
+
$[20] = disableAnimation;
|
|
369
|
+
$[21] = handleChange;
|
|
370
|
+
$[22] = keepMounted;
|
|
371
|
+
$[23] = t11;
|
|
372
|
+
$[24] = t12;
|
|
373
|
+
$[25] = t13;
|
|
374
|
+
$[26] = t14;
|
|
375
|
+
$[27] = t15;
|
|
358
376
|
} else {
|
|
359
|
-
|
|
377
|
+
t15 = $[27];
|
|
360
378
|
}
|
|
361
|
-
let
|
|
362
|
-
if ($[
|
|
363
|
-
|
|
379
|
+
let t16;
|
|
380
|
+
if ($[28] !== classes || $[29] !== dataTest || $[30] !== ref || $[31] !== t15) {
|
|
381
|
+
t16 = /*#__PURE__*/jsx("div", {
|
|
364
382
|
ref: ref,
|
|
365
383
|
className: classes,
|
|
366
384
|
"data-test": dataTest,
|
|
367
|
-
children:
|
|
385
|
+
children: t15
|
|
368
386
|
});
|
|
369
|
-
$[
|
|
370
|
-
$[
|
|
371
|
-
$[
|
|
372
|
-
$[
|
|
373
|
-
$[
|
|
387
|
+
$[28] = classes;
|
|
388
|
+
$[29] = dataTest;
|
|
389
|
+
$[30] = ref;
|
|
390
|
+
$[31] = t15;
|
|
391
|
+
$[32] = t16;
|
|
374
392
|
} else {
|
|
375
|
-
|
|
393
|
+
t16 = $[32];
|
|
376
394
|
}
|
|
377
|
-
return
|
|
395
|
+
return t16;
|
|
378
396
|
};
|
|
379
397
|
CollapsibleGroup.displayName = 'CollapsibleGroup';
|
|
380
398
|
function _temp() {}
|
|
@@ -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';
|
|
@@ -29,8 +29,8 @@ 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
36
|
import '../global/memoize.js';
|
|
@@ -29,8 +29,8 @@ import '../text/text.js';
|
|
|
29
29
|
import '../loader-inline/loader-inline.js';
|
|
30
30
|
import '../button/button.js';
|
|
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
36
|
import '../global/memoize.js';
|
|
@@ -12,8 +12,8 @@ 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
19
|
import 'react/compiler-runtime';
|
|
@@ -10,8 +10,8 @@ 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
17
|
import 'react/compiler-runtime';
|
|
@@ -20,8 +20,8 @@ import '@jetbrains/icons/close-12px';
|
|
|
20
20
|
import '../button/button.js';
|
|
21
21
|
import '@jetbrains/icons/chevron-down';
|
|
22
22
|
import '@jetbrains/icons/chevron-12px-down';
|
|
23
|
-
import 'util-deprecate';
|
|
24
23
|
import '../icon/icon.js';
|
|
24
|
+
import 'util-deprecate';
|
|
25
25
|
import '../icon/icon.constants.js';
|
|
26
26
|
import '../_helpers/icon-svg.js';
|
|
27
27
|
import 'react/compiler-runtime';
|
|
@@ -28,8 +28,8 @@ import 'sniffr';
|
|
|
28
28
|
import '../global/dom.js';
|
|
29
29
|
import '@jetbrains/icons/chevron-down';
|
|
30
30
|
import '@jetbrains/icons/chevron-12px-down';
|
|
31
|
-
import 'util-deprecate';
|
|
32
31
|
import '../icon/icon.js';
|
|
32
|
+
import 'util-deprecate';
|
|
33
33
|
import '../icon/icon.constants.js';
|
|
34
34
|
import '../_helpers/icon-svg.js';
|
|
35
35
|
import '../global/memoize.js';
|
|
@@ -6,8 +6,8 @@ export { A as default } from '../_helpers/anchor.js';
|
|
|
6
6
|
import 'react/jsx-runtime';
|
|
7
7
|
import '@jetbrains/icons/chevron-down';
|
|
8
8
|
import '@jetbrains/icons/chevron-12px-down';
|
|
9
|
-
import 'util-deprecate';
|
|
10
9
|
import '../icon/icon.js';
|
|
10
|
+
import 'util-deprecate';
|
|
11
11
|
import '../icon/icon.constants.js';
|
|
12
12
|
import '../_helpers/icon-svg.js';
|
|
13
13
|
import '../global/memoize.js';
|
|
@@ -8,8 +8,8 @@ import 'react/compiler-runtime';
|
|
|
8
8
|
import '../button/button.js';
|
|
9
9
|
import '@jetbrains/icons/chevron-down';
|
|
10
10
|
import '@jetbrains/icons/chevron-12px-down';
|
|
11
|
-
import 'util-deprecate';
|
|
12
11
|
import '../icon/icon.js';
|
|
12
|
+
import 'util-deprecate';
|
|
13
13
|
import '../icon/icon.constants.js';
|
|
14
14
|
import '../_helpers/icon-svg.js';
|
|
15
15
|
import '../global/memoize.js';
|
|
@@ -19,11 +19,9 @@ export interface RingCSSProperties {
|
|
|
19
19
|
'--ring-popup-border-color'?: Property.BorderColor;
|
|
20
20
|
'--ring-popup-shadow-color'?: Property.Color;
|
|
21
21
|
'--ring-message-shadow-color'?: Property.Color;
|
|
22
|
-
'--ring-pinned-shadow-color'?: Property.Color;
|
|
23
22
|
'--ring-button-danger-hover-color'?: Property.Color;
|
|
24
23
|
'--ring-button-primary-border-color'?: Property.Color;
|
|
25
24
|
'--ring-search-color'?: Property.Color;
|
|
26
|
-
'--ring-hint-color'?: Property.Color;
|
|
27
25
|
'--ring-link-color'?: Property.Color;
|
|
28
26
|
'--ring-link-hover-color'?: Property.Color;
|
|
29
27
|
'--ring-error-color'?: Property.Color;
|
|
@@ -49,8 +47,6 @@ export interface RingCSSProperties {
|
|
|
49
47
|
'--ring-disabled-background-color'?: Property.BackgroundColor;
|
|
50
48
|
'--ring-disabled-selected-background-color'?: Property.BackgroundColor;
|
|
51
49
|
'--ring-button-danger-active-color'?: Property.BackgroundColor;
|
|
52
|
-
'--ring-button-loader-background'?: Property.BackgroundColor;
|
|
53
|
-
'--ring-button-primary-background-color'?: Property.BackgroundColor;
|
|
54
50
|
'--ring-code-background-color'?: Property.BackgroundColor;
|
|
55
51
|
'--ring-code-color'?: Property.Color;
|
|
56
52
|
'--ring-code-comment-color'?: Property.Color;
|
|
@@ -5,8 +5,8 @@ import { s as styles } from '../_helpers/header.js';
|
|
|
5
5
|
import { jsx } from 'react/jsx-runtime';
|
|
6
6
|
import '@jetbrains/icons/chevron-down';
|
|
7
7
|
import '@jetbrains/icons/chevron-12px-down';
|
|
8
|
-
import 'util-deprecate';
|
|
9
8
|
import '../icon/icon.js';
|
|
9
|
+
import 'util-deprecate';
|
|
10
10
|
import '../icon/icon.constants.js';
|
|
11
11
|
import '../_helpers/icon-svg.js';
|
|
12
12
|
import 'react/compiler-runtime';
|
|
@@ -24,7 +24,6 @@ import '../global/controls-height.js';
|
|
|
24
24
|
import '../global/configuration.js';
|
|
25
25
|
import '../_helpers/button.classes.js';
|
|
26
26
|
import '../avatar/avatar.js';
|
|
27
|
-
import 'core-js/modules/es.array.includes.js';
|
|
28
27
|
import '../global/url.js';
|
|
29
28
|
import '../global/dom.js';
|
|
30
29
|
import '../avatar/fallback-avatar.js';
|
|
@@ -33,6 +32,7 @@ import '../avatar/avatar-size.js';
|
|
|
33
32
|
import '../_helpers/avatar-info.js';
|
|
34
33
|
import '../dropdown-menu/dropdown-menu.js';
|
|
35
34
|
import '../list/list.js';
|
|
35
|
+
import 'core-js/modules/es.array.includes.js';
|
|
36
36
|
import 'react-virtualized/dist/es/List';
|
|
37
37
|
import 'react-virtualized/dist/es/AutoSizer';
|
|
38
38
|
import 'react-virtualized/dist/es/WindowScroller';
|
|
@@ -9,11 +9,8 @@ import { isTruthy } from '../global/typescript-utils.js';
|
|
|
9
9
|
import { s as styles } from '../_helpers/header.js';
|
|
10
10
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
11
11
|
import { Size } from '../avatar/avatar-size.js';
|
|
12
|
-
import 'core-js/modules/es.array.includes.js';
|
|
13
|
-
import 'util-deprecate';
|
|
14
12
|
import '../global/url.js';
|
|
15
13
|
import '../global/dom.js';
|
|
16
|
-
import '../global/memoize.js';
|
|
17
14
|
import '../avatar/fallback-avatar.js';
|
|
18
15
|
import 'react/compiler-runtime';
|
|
19
16
|
import '../global/get-uid.js';
|
|
@@ -21,13 +18,16 @@ import '../_helpers/avatar-info.js';
|
|
|
21
18
|
import '@jetbrains/icons/chevron-down';
|
|
22
19
|
import '@jetbrains/icons/chevron-12px-down';
|
|
23
20
|
import '../icon/icon.js';
|
|
21
|
+
import 'util-deprecate';
|
|
24
22
|
import '../icon/icon.constants.js';
|
|
25
23
|
import '../_helpers/icon-svg.js';
|
|
24
|
+
import '../global/memoize.js';
|
|
26
25
|
import '../link/clickable-link.js';
|
|
27
26
|
import '../global/controls-height.js';
|
|
28
27
|
import '../global/configuration.js';
|
|
29
28
|
import '../_helpers/button.classes.js';
|
|
30
29
|
import '../list/list.js';
|
|
30
|
+
import 'core-js/modules/es.array.includes.js';
|
|
31
31
|
import 'react-virtualized/dist/es/List';
|
|
32
32
|
import 'react-virtualized/dist/es/AutoSizer';
|
|
33
33
|
import 'react-virtualized/dist/es/WindowScroller';
|
|
@@ -14,8 +14,8 @@ import 'react/compiler-runtime';
|
|
|
14
14
|
import '../button/button.js';
|
|
15
15
|
import '@jetbrains/icons/chevron-down';
|
|
16
16
|
import '@jetbrains/icons/chevron-12px-down';
|
|
17
|
-
import 'util-deprecate';
|
|
18
17
|
import '../icon/icon.js';
|
|
18
|
+
import 'util-deprecate';
|
|
19
19
|
import '../icon/icon.constants.js';
|
|
20
20
|
import '../_helpers/icon-svg.js';
|
|
21
21
|
import '../global/memoize.js';
|
|
@@ -38,13 +38,13 @@ import '../alert/alert-actions.js';
|
|
|
38
38
|
import '../alert/container.js';
|
|
39
39
|
import 'react-dom';
|
|
40
40
|
import '../avatar/avatar.js';
|
|
41
|
-
import 'core-js/modules/es.array.includes.js';
|
|
42
41
|
import '../global/url.js';
|
|
43
42
|
import '../avatar/fallback-avatar.js';
|
|
44
43
|
import '../avatar/avatar-size.js';
|
|
45
44
|
import '../_helpers/avatar-info.js';
|
|
46
45
|
import '../dropdown-menu/dropdown-menu.js';
|
|
47
46
|
import '../list/list.js';
|
|
47
|
+
import 'core-js/modules/es.array.includes.js';
|
|
48
48
|
import 'react-virtualized/dist/es/List';
|
|
49
49
|
import 'react-virtualized/dist/es/AutoSizer';
|
|
50
50
|
import 'react-virtualized/dist/es/WindowScroller';
|
|
@@ -13,8 +13,8 @@ import 'react/compiler-runtime';
|
|
|
13
13
|
import '../button/button.js';
|
|
14
14
|
import '@jetbrains/icons/chevron-down';
|
|
15
15
|
import '@jetbrains/icons/chevron-12px-down';
|
|
16
|
-
import 'util-deprecate';
|
|
17
16
|
import '../icon/icon.js';
|
|
17
|
+
import 'util-deprecate';
|
|
18
18
|
import '../icon/icon.constants.js';
|
|
19
19
|
import '../_helpers/icon-svg.js';
|
|
20
20
|
import '../global/memoize.js';
|
|
@@ -19,7 +19,6 @@ export interface IconProps extends HTMLAttributes<HTMLElement> {
|
|
|
19
19
|
* @deprecated Use icons with appropriate intrinsic sizes instead
|
|
20
20
|
*/
|
|
21
21
|
width?: number | undefined;
|
|
22
|
-
loading?: boolean | null | undefined;
|
|
23
22
|
suppressSizeWarning?: boolean | null | undefined;
|
|
24
23
|
}
|
|
25
24
|
export default class Icon extends PureComponent<IconProps> {
|
package/components/icon/icon.js
CHANGED
|
@@ -54,7 +54,6 @@ class Icon extends PureComponent {
|
|
|
54
54
|
className,
|
|
55
55
|
size,
|
|
56
56
|
color,
|
|
57
|
-
loading,
|
|
58
57
|
glyph: Glyph,
|
|
59
58
|
width,
|
|
60
59
|
height,
|
|
@@ -64,9 +63,7 @@ class Icon extends PureComponent {
|
|
|
64
63
|
if (!Glyph) {
|
|
65
64
|
return null;
|
|
66
65
|
}
|
|
67
|
-
const classes = classNames(styles.icon, color && styles[color],
|
|
68
|
-
[styles.loading]: loading
|
|
69
|
-
}, className);
|
|
66
|
+
const classes = classNames(styles.icon, color && styles[color], className);
|
|
70
67
|
return /*#__PURE__*/jsx("span", {
|
|
71
68
|
"data-test": "ring-icon",
|
|
72
69
|
...restProps,
|
|
@@ -13,10 +13,10 @@ export { I as Input, S as Size, I as default } from '../_helpers/input.js';
|
|
|
13
13
|
import 'react/jsx-runtime';
|
|
14
14
|
import '@jetbrains/icons/chevron-down';
|
|
15
15
|
import '@jetbrains/icons/chevron-12px-down';
|
|
16
|
-
import 'util-deprecate';
|
|
17
16
|
import '../link/clickable-link.js';
|
|
18
17
|
import '../_helpers/button.classes.js';
|
|
19
18
|
import '../icon/icon.constants.js';
|
|
19
|
+
import 'util-deprecate';
|
|
20
20
|
import '../_helpers/icon-svg.js';
|
|
21
21
|
import 'react/compiler-runtime';
|
|
22
22
|
import '../global/memoize.js';
|
|
@@ -6,7 +6,6 @@ var Type;
|
|
|
6
6
|
Type[Type["SEPARATOR"] = 0] = "SEPARATOR";
|
|
7
7
|
Type[Type["LINK"] = 1] = "LINK";
|
|
8
8
|
Type[Type["ITEM"] = 2] = "ITEM";
|
|
9
|
-
Type[Type["HINT"] = 3] = "HINT";
|
|
10
9
|
Type[Type["CUSTOM"] = 4] = "CUSTOM";
|
|
11
10
|
Type[Type["TITLE"] = 5] = "TITLE";
|
|
12
11
|
Type[Type["MARGIN"] = 6] = "MARGIN";
|
|
@@ -11,11 +11,8 @@ import { getListClasses } from './list.classes.js';
|
|
|
11
11
|
import { s as styles } from '../_helpers/list.js';
|
|
12
12
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
13
13
|
import { Size } from '../avatar/avatar-size.js';
|
|
14
|
-
import 'core-js/modules/es.array.includes.js';
|
|
15
|
-
import 'util-deprecate';
|
|
16
14
|
import '../global/url.js';
|
|
17
15
|
import '../global/dom.js';
|
|
18
|
-
import '../global/memoize.js';
|
|
19
16
|
import '../avatar/fallback-avatar.js';
|
|
20
17
|
import 'react/compiler-runtime';
|
|
21
18
|
import '../_helpers/avatar-info.js';
|
|
@@ -24,8 +21,10 @@ import '@jetbrains/icons/remove-12px';
|
|
|
24
21
|
import '../global/compose-refs.js';
|
|
25
22
|
import 'memoize-one';
|
|
26
23
|
import '../control-help/control-help.js';
|
|
24
|
+
import 'util-deprecate';
|
|
27
25
|
import '../icon/icon.constants.js';
|
|
28
26
|
import '../_helpers/icon-svg.js';
|
|
27
|
+
import '../global/memoize.js';
|
|
29
28
|
import '../link/clickable-link.js';
|
|
30
29
|
import '../_helpers/link.js';
|
|
31
30
|
|
|
@@ -43,10 +43,6 @@ export interface ListProps<T = unknown> {
|
|
|
43
43
|
maxHeight?: number | null | undefined;
|
|
44
44
|
activeIndex?: number | null | undefined;
|
|
45
45
|
useMouseUp?: boolean | null | undefined;
|
|
46
|
-
/**
|
|
47
|
-
* @deprecated No longer used. Visibility is detected automatically via IntersectionObserver. Will be removed in Ring UI 8.0.
|
|
48
|
-
*/
|
|
49
|
-
visible?: boolean | null | undefined;
|
|
50
46
|
disableMoveOverflow?: boolean | null | undefined;
|
|
51
47
|
compact?: boolean | null | undefined;
|
|
52
48
|
disableScrollToActive?: boolean | null | undefined;
|
|
@@ -28,8 +28,8 @@ import '../global/dom.js';
|
|
|
28
28
|
import '../button/button.js';
|
|
29
29
|
import '@jetbrains/icons/chevron-down';
|
|
30
30
|
import '@jetbrains/icons/chevron-12px-down';
|
|
31
|
-
import 'util-deprecate';
|
|
32
31
|
import '../icon/icon.js';
|
|
32
|
+
import 'util-deprecate';
|
|
33
33
|
import '../icon/icon.constants.js';
|
|
34
34
|
import '../_helpers/icon-svg.js';
|
|
35
35
|
import '../global/memoize.js';
|
|
@@ -13,9 +13,9 @@ import { I18nContext } from '../i18n/i18n-context.js';
|
|
|
13
13
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
14
14
|
import '@jetbrains/icons/chevron-down';
|
|
15
15
|
import '@jetbrains/icons/chevron-12px-down';
|
|
16
|
-
import 'util-deprecate';
|
|
17
16
|
import '../link/clickable-link.js';
|
|
18
17
|
import '../global/controls-height.js';
|
|
18
|
+
import 'util-deprecate';
|
|
19
19
|
import '../global/configuration.js';
|
|
20
20
|
import '../_helpers/button.classes.js';
|
|
21
21
|
import '../icon/icon.constants.js';
|
|
@@ -30,7 +30,6 @@ import 'dequal';
|
|
|
30
30
|
import '../global/typescript-utils.js';
|
|
31
31
|
import '../_helpers/anchor.js';
|
|
32
32
|
import '../avatar/avatar.js';
|
|
33
|
-
import 'core-js/modules/es.array.includes.js';
|
|
34
33
|
import '../global/url.js';
|
|
35
34
|
import '../global/dom.js';
|
|
36
35
|
import '../avatar/fallback-avatar.js';
|
|
@@ -42,6 +41,7 @@ import 'react-dom';
|
|
|
42
41
|
import '../global/schedule-raf.js';
|
|
43
42
|
import '../shortcuts/shortcuts.js';
|
|
44
43
|
import '../shortcuts/core.js';
|
|
44
|
+
import 'core-js/modules/es.array.includes.js';
|
|
45
45
|
import 'combokeys';
|
|
46
46
|
import '../global/sniffer.js';
|
|
47
47
|
import 'sniffr';
|
|
@@ -5,8 +5,8 @@ import { Button } from '../button/button.js';
|
|
|
5
5
|
import { jsx } from 'react/jsx-runtime';
|
|
6
6
|
import 'react';
|
|
7
7
|
import '@jetbrains/icons/chevron-12px-down';
|
|
8
|
-
import 'util-deprecate';
|
|
9
8
|
import '../icon/icon.js';
|
|
9
|
+
import 'util-deprecate';
|
|
10
10
|
import '../icon/icon.constants.js';
|
|
11
11
|
import '../_helpers/icon-svg.js';
|
|
12
12
|
import '../global/memoize.js';
|
|
@@ -10,8 +10,8 @@ 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
17
|
import 'react/compiler-runtime';
|